Skip to content

Commit bcd2180

Browse files
auto: apply newest APITable commit
1 parent ccd25d4 commit bcd2180

File tree

4 files changed

+4
-213
lines changed

4 files changed

+4
-213
lines changed

lib/apitable.ts

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { IHttpResponse, IVikaClientConfig } from './interface';
77
import { NodeManager } from './node';
88
import { SpaceManager } from './space';
99
import { mergeConfig, QPSController, isBrowser } from './utils';
10-
import { IframeManager } from './iframe';
1110

1211
// axios.defaults.adapter = mpAdapter;
1312
export class Vika {
@@ -26,8 +25,8 @@ export class Vika {
2625
headers: {
2726
common: {
2827
...(
29-
this.config.disableClientUserAgent ? {} :
30-
(isBrowser ? { 'X-Vika-User-Agent': 'VikaJSSDK' } : { 'User-Agent': 'VikaJSSDK' })
28+
this.config.disableClientUserAgent ? {} :
29+
(isBrowser ? { 'X-Vika-User-Agent': 'VikaJSSDK' } : { 'User-Agent': 'VikaJSSDK' })
3130
),
3231
Authorization: 'Bearer ' + config.token,
3332
}
@@ -102,12 +101,12 @@ export class Vika {
102101
/**
103102
* Resources - Number Table Management.
104103
* @param datasheetId Datasheet ID
105-
* @returns
104+
* @returns
106105
*/
107106
datasheet(datasheetId: string) {
108107
if (!datasheetId) {
109108
throw new Error(
110-
'Please pass the dimension datasheet id, which can be retrieved from the dimension datasheet url, ' +
109+
'Please pass the dimension datasheet id, which can be retrieved from the dimension datasheet url, ' +
111110
'the dimension datasheet id usually starts with dst'
112111
);
113112
}
@@ -134,11 +133,4 @@ export class Vika {
134133
space(spaceId: string) {
135134
return new SpaceManager(this, spaceId);
136135
}
137-
138-
/**
139-
* 获取 iframe 通信
140-
*/
141-
getIframe() {
142-
return new IframeManager();
143-
}
144136
}

lib/enums.ts

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -70,27 +70,3 @@ export enum APIMetaFieldPropertyFormatEnums {
7070
Percent = 'Percent',
7171
Currency = 'Currency',
7272
}
73-
74-
export enum IframeMessageName {
75-
Collaborators = "collaborators",
76-
SocketStatus = "socketStatus",
77-
SocketError = "socketError",
78-
ChangeView = "changeView",
79-
ChangeNodeName = 'changeNodeName',
80-
PageLoaded = 'pageLoaded',
81-
EmbedLinkFail = 'embedLinkFail',
82-
PageCrash = 'pageCrash',
83-
ChangeViewName = 'changeViewName',
84-
TriggerEventResult = 'triggerEventResult',
85-
}
86-
87-
export enum TriggerIframeMessageName {
88-
ExportData = "exportData",
89-
}
90-
91-
export enum Network {
92-
Online = "online",
93-
Offline = "offline",
94-
Sync = "sync",
95-
Loading = "loading"
96-
}

lib/iframe.ts

Lines changed: 0 additions & 76 deletions
This file was deleted.

lib/interface/iframe.ts

Lines changed: 0 additions & 101 deletions
This file was deleted.

0 commit comments

Comments
 (0)