-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
40 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import {IDatasheetCreateRo, INodeItem, IRecord, Vika} from "../lib"; | ||
import {Buffer} from "buffer"; | ||
import fs from "fs"; | ||
import path from "path"; | ||
import {IAddOpenSingleTextFieldProperty} from "../lib/interface/field.create.property"; | ||
import {IDatasheetFieldCreateRo} from "../lib/interface/datasheet.field.create.ro"; | ||
import {EmbedLinkTheme, PermissionType} from "../lib/interface/embed.link"; | ||
|
||
jest.setTimeout(300000); | ||
describe('full pipeline', () => { | ||
const host = `https://integration.vika.ltd/fusion/v1`; | ||
const token = 'uskM9c6MzfkHMeCJVipM1zv'; | ||
const datasheetId = 'dstVrj2y9AMx1YJ5Jy'; | ||
const folderId = process.env.FOLDER_ID as string; | ||
const spaceId = process.env.SPACE_ID as string; | ||
const viewId = process.env.VIEW_ID as string; | ||
|
||
const apitable = new Vika({ | ||
token, | ||
host, | ||
}); | ||
|
||
const datasheet = apitable.datasheet(datasheetId); | ||
|
||
let records: IRecord[]; | ||
let spaceIds: string[]; | ||
let nodes: INodeItem[]; | ||
let createdDatasheetId: string; | ||
let createdFieldId: string; | ||
|
||
it('get records', async () => { | ||
const allRecords = await datasheet.records.query({ | ||
isV3: true | ||
}); | ||
const allRecords2 = await datasheet.records.query(); | ||
console.log(' see result', allRecords); | ||
console.log(' see result2', allRecords2); | ||
}); | ||
|
||
}); |