@kissflow/lowcode-client-sdk 1.0.26 → 1.0.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +7 -2
- package/dist/lowcode.d.ts +9 -6
- package/dist/lowcode.types.d.ts +9 -5
- package/dist/nocode.d.ts +9 -6
- package/dist/nocode.types.d.ts +9 -5
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -139,6 +139,11 @@ declare module "types/external" {
|
|
|
139
139
|
_id: string;
|
|
140
140
|
_activity_instance_id: string;
|
|
141
141
|
};
|
|
142
|
+
export type FetchOptions = {
|
|
143
|
+
method?: string;
|
|
144
|
+
body?: string | object;
|
|
145
|
+
headers?: object;
|
|
146
|
+
};
|
|
142
147
|
}
|
|
143
148
|
declare module "types/internal" {
|
|
144
149
|
import { userObject, accountObject, environmentObject } from "types/external";
|
|
@@ -330,9 +335,9 @@ declare module "form/index" {
|
|
|
330
335
|
getRows(): TableForm[];
|
|
331
336
|
getRow(rowId: string): TableForm;
|
|
332
337
|
addRow(rowObject: object): any;
|
|
333
|
-
addRows(rows: [
|
|
338
|
+
addRows(rows: object[]): any;
|
|
334
339
|
deleteRow(rowId: string): any;
|
|
335
|
-
deleteRows(rows: [
|
|
340
|
+
deleteRows(rows: string[]): any;
|
|
336
341
|
}
|
|
337
342
|
export class TableForm extends BaseSDK {
|
|
338
343
|
private instanceId;
|
package/dist/lowcode.d.ts
CHANGED
|
@@ -98,9 +98,9 @@ declare module "form/index" {
|
|
|
98
98
|
getRows(): TableForm[];
|
|
99
99
|
getRow(rowId: string): TableForm;
|
|
100
100
|
addRow(rowObject: object): any;
|
|
101
|
-
addRows(rows: [
|
|
101
|
+
addRows(rows: object[]): any;
|
|
102
102
|
deleteRow(rowId: string): any;
|
|
103
|
-
deleteRows(rows: [
|
|
103
|
+
deleteRows(rows: string[]): any;
|
|
104
104
|
}
|
|
105
105
|
export class TableForm extends BaseSDK {
|
|
106
106
|
private instanceId;
|
|
@@ -174,6 +174,11 @@ declare module "types/external" {
|
|
|
174
174
|
_id: string;
|
|
175
175
|
_activity_instance_id: string;
|
|
176
176
|
};
|
|
177
|
+
export type FetchOptions = {
|
|
178
|
+
method?: string;
|
|
179
|
+
body?: string | object;
|
|
180
|
+
headers?: object;
|
|
181
|
+
};
|
|
177
182
|
}
|
|
178
183
|
declare module "types/internal" {
|
|
179
184
|
import { userObject, accountObject, environmentObject } from "types/external";
|
|
@@ -349,7 +354,7 @@ declare module "lowcode" {
|
|
|
349
354
|
import { Application, Page, Component, Popup } from "app/index";
|
|
350
355
|
import { window } from "window/index";
|
|
351
356
|
import { SDKContext } from "types/internal";
|
|
352
|
-
import { userObject, accountObject, environmentObject } from "types/external";
|
|
357
|
+
import { userObject, accountObject, environmentObject, FetchOptions } from "types/external";
|
|
353
358
|
class LowcodeSDK extends BaseSDK {
|
|
354
359
|
#private;
|
|
355
360
|
context: Component | Form | TableForm | Page | Popup;
|
|
@@ -361,9 +366,7 @@ declare module "lowcode" {
|
|
|
361
366
|
account: accountObject;
|
|
362
367
|
eventParameters: any;
|
|
363
368
|
constructor(props: SDKContext);
|
|
364
|
-
api(url: string, args?:
|
|
365
|
-
headers: object;
|
|
366
|
-
}): Promise<any>;
|
|
369
|
+
api(url: string, args?: FetchOptions): Promise<any>;
|
|
367
370
|
}
|
|
368
371
|
function initSDK(config: SDKContext): LowcodeSDK;
|
|
369
372
|
export { window, initSDK as default };
|
package/dist/lowcode.types.d.ts
CHANGED
|
@@ -11,9 +11,9 @@ declare class Table {
|
|
|
11
11
|
getRows(): TableForm[];
|
|
12
12
|
getRow(rowId: string): TableForm;
|
|
13
13
|
addRow(rowObject: object): any;
|
|
14
|
-
addRows(rows: [
|
|
14
|
+
addRows(rows: object[]): any;
|
|
15
15
|
deleteRow(rowId: string): any;
|
|
16
|
-
deleteRows(rows: [
|
|
16
|
+
deleteRows(rows: string[]): any;
|
|
17
17
|
}
|
|
18
18
|
declare class TableForm {
|
|
19
19
|
type: string
|
|
@@ -100,9 +100,7 @@ declare class kf {
|
|
|
100
100
|
static env: environmentObject
|
|
101
101
|
static account: accountObject
|
|
102
102
|
static eventParameters: any
|
|
103
|
-
static api(url: string, args?:
|
|
104
|
-
headers: object;
|
|
105
|
-
}): Promise<any>;
|
|
103
|
+
static api(url: string, args?: FetchOptions): Promise<any>;
|
|
106
104
|
}
|
|
107
105
|
declare type userObject = {
|
|
108
106
|
_id: string;
|
|
@@ -130,4 +128,10 @@ declare type DataformItem = {
|
|
|
130
128
|
declare type ProcessItem = {
|
|
131
129
|
_id: string;
|
|
132
130
|
_activity_instance_id: string;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
declare type FetchOptions = {
|
|
134
|
+
method?: string,
|
|
135
|
+
body?: string | object;
|
|
136
|
+
headers?: object;
|
|
133
137
|
}
|
package/dist/nocode.d.ts
CHANGED
|
@@ -98,9 +98,9 @@ declare module "form/index" {
|
|
|
98
98
|
getRows(): TableForm[];
|
|
99
99
|
getRow(rowId: string): TableForm;
|
|
100
100
|
addRow(rowObject: object): any;
|
|
101
|
-
addRows(rows: [
|
|
101
|
+
addRows(rows: object[]): any;
|
|
102
102
|
deleteRow(rowId: string): any;
|
|
103
|
-
deleteRows(rows: [
|
|
103
|
+
deleteRows(rows: string[]): any;
|
|
104
104
|
}
|
|
105
105
|
export class TableForm extends BaseSDK {
|
|
106
106
|
private instanceId;
|
|
@@ -183,6 +183,11 @@ declare module "types/external" {
|
|
|
183
183
|
_id: string;
|
|
184
184
|
_activity_instance_id: string;
|
|
185
185
|
};
|
|
186
|
+
export type FetchOptions = {
|
|
187
|
+
method?: string;
|
|
188
|
+
body?: string | object;
|
|
189
|
+
headers?: object;
|
|
190
|
+
};
|
|
186
191
|
}
|
|
187
192
|
declare module "types/internal" {
|
|
188
193
|
import { userObject, accountObject, environmentObject } from "types/external";
|
|
@@ -226,7 +231,7 @@ declare module "nocode" {
|
|
|
226
231
|
import { Client, Formatter } from "utils/index";
|
|
227
232
|
import { window } from "window/index";
|
|
228
233
|
import { SDKContext } from "types/internal";
|
|
229
|
-
import { userObject, accountObject } from "types/external";
|
|
234
|
+
import { userObject, accountObject, FetchOptions } from "types/external";
|
|
230
235
|
class NocodeSDK extends BaseSDK {
|
|
231
236
|
#private;
|
|
232
237
|
context: Form | TableForm;
|
|
@@ -236,9 +241,7 @@ declare module "nocode" {
|
|
|
236
241
|
account: accountObject;
|
|
237
242
|
eventParameters: any;
|
|
238
243
|
constructor(props: SDKContext);
|
|
239
|
-
api(url: string, args?:
|
|
240
|
-
headers: object;
|
|
241
|
-
}): Promise<any>;
|
|
244
|
+
api(url: string, args?: FetchOptions): Promise<any>;
|
|
242
245
|
}
|
|
243
246
|
function initSDK(config: SDKContext): NocodeSDK;
|
|
244
247
|
export { window, initSDK as default };
|
package/dist/nocode.types.d.ts
CHANGED
|
@@ -11,9 +11,9 @@ declare class Table {
|
|
|
11
11
|
getRows(): TableForm[];
|
|
12
12
|
getRow(rowId: string): TableForm;
|
|
13
13
|
addRow(rowObject: object): any;
|
|
14
|
-
addRows(rows: [
|
|
14
|
+
addRows(rows: object[]): any;
|
|
15
15
|
deleteRow(rowId: string): any;
|
|
16
|
-
deleteRows(rows: [
|
|
16
|
+
deleteRows(rows: string[]): any;
|
|
17
17
|
}
|
|
18
18
|
declare class TableForm {
|
|
19
19
|
type: string
|
|
@@ -46,9 +46,7 @@ declare class kf {
|
|
|
46
46
|
static user: userObject
|
|
47
47
|
static account: accountObject
|
|
48
48
|
static eventParameters: any
|
|
49
|
-
static api(url: string, args?:
|
|
50
|
-
headers: object;
|
|
51
|
-
}): Promise<any>;
|
|
49
|
+
static api(url: string, args?: FetchOptions): Promise<any>;
|
|
52
50
|
}
|
|
53
51
|
declare type userObject = {
|
|
54
52
|
_id: string;
|
|
@@ -76,4 +74,10 @@ declare type DataformItem = {
|
|
|
76
74
|
declare type ProcessItem = {
|
|
77
75
|
_id: string;
|
|
78
76
|
_activity_instance_id: string;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
declare type FetchOptions = {
|
|
80
|
+
method?: string,
|
|
81
|
+
body?: string | object;
|
|
82
|
+
headers?: object;
|
|
79
83
|
}
|