@kissflow/lowcode-client-sdk 1.0.26 → 1.0.28-beta.1
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 +13 -2
- package/dist/lowcode.d.ts +15 -6
- package/dist/lowcode.types.d.ts +30 -19
- package/dist/nocode.d.ts +15 -6
- package/dist/nocode.types.d.ts +30 -19
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -121,7 +121,13 @@ declare module "types/external" {
|
|
|
121
121
|
_id: string;
|
|
122
122
|
Name: string;
|
|
123
123
|
Email: string;
|
|
124
|
+
/** @deprecated Use AppRoles instead. */
|
|
124
125
|
Role: string;
|
|
126
|
+
AppRoles: rolesObject[];
|
|
127
|
+
};
|
|
128
|
+
export type rolesObject = {
|
|
129
|
+
_id: string;
|
|
130
|
+
Name: string;
|
|
125
131
|
};
|
|
126
132
|
export type accountObject = {
|
|
127
133
|
_id: string;
|
|
@@ -139,6 +145,11 @@ declare module "types/external" {
|
|
|
139
145
|
_id: string;
|
|
140
146
|
_activity_instance_id: string;
|
|
141
147
|
};
|
|
148
|
+
export type FetchOptions = {
|
|
149
|
+
method?: string;
|
|
150
|
+
body?: string | object;
|
|
151
|
+
headers?: object;
|
|
152
|
+
};
|
|
142
153
|
}
|
|
143
154
|
declare module "types/internal" {
|
|
144
155
|
import { userObject, accountObject, environmentObject } from "types/external";
|
|
@@ -330,9 +341,9 @@ declare module "form/index" {
|
|
|
330
341
|
getRows(): TableForm[];
|
|
331
342
|
getRow(rowId: string): TableForm;
|
|
332
343
|
addRow(rowObject: object): any;
|
|
333
|
-
addRows(rows: [
|
|
344
|
+
addRows(rows: object[]): any;
|
|
334
345
|
deleteRow(rowId: string): any;
|
|
335
|
-
deleteRows(rows: [
|
|
346
|
+
deleteRows(rows: string[]): any;
|
|
336
347
|
}
|
|
337
348
|
export class TableForm extends BaseSDK {
|
|
338
349
|
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;
|
|
@@ -156,7 +156,13 @@ declare module "types/external" {
|
|
|
156
156
|
_id: string;
|
|
157
157
|
Name: string;
|
|
158
158
|
Email: string;
|
|
159
|
+
/** @deprecated Use AppRoles instead. */
|
|
159
160
|
Role: string;
|
|
161
|
+
AppRoles: rolesObject[];
|
|
162
|
+
};
|
|
163
|
+
export type rolesObject = {
|
|
164
|
+
_id: string;
|
|
165
|
+
Name: string;
|
|
160
166
|
};
|
|
161
167
|
export type accountObject = {
|
|
162
168
|
_id: string;
|
|
@@ -174,6 +180,11 @@ declare module "types/external" {
|
|
|
174
180
|
_id: string;
|
|
175
181
|
_activity_instance_id: string;
|
|
176
182
|
};
|
|
183
|
+
export type FetchOptions = {
|
|
184
|
+
method?: string;
|
|
185
|
+
body?: string | object;
|
|
186
|
+
headers?: object;
|
|
187
|
+
};
|
|
177
188
|
}
|
|
178
189
|
declare module "types/internal" {
|
|
179
190
|
import { userObject, accountObject, environmentObject } from "types/external";
|
|
@@ -349,7 +360,7 @@ declare module "lowcode" {
|
|
|
349
360
|
import { Application, Page, Component, Popup } from "app/index";
|
|
350
361
|
import { window } from "window/index";
|
|
351
362
|
import { SDKContext } from "types/internal";
|
|
352
|
-
import { userObject, accountObject, environmentObject } from "types/external";
|
|
363
|
+
import { userObject, accountObject, environmentObject, FetchOptions } from "types/external";
|
|
353
364
|
class LowcodeSDK extends BaseSDK {
|
|
354
365
|
#private;
|
|
355
366
|
context: Component | Form | TableForm | Page | Popup;
|
|
@@ -361,9 +372,7 @@ declare module "lowcode" {
|
|
|
361
372
|
account: accountObject;
|
|
362
373
|
eventParameters: any;
|
|
363
374
|
constructor(props: SDKContext);
|
|
364
|
-
api(url: string, args?:
|
|
365
|
-
headers: object;
|
|
366
|
-
}): Promise<any>;
|
|
375
|
+
api(url: string, args?: FetchOptions): Promise<any>;
|
|
367
376
|
}
|
|
368
377
|
function initSDK(config: SDKContext): LowcodeSDK;
|
|
369
378
|
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,34 +100,45 @@ 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
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
106
|
+
_id: string;
|
|
107
|
+
Name: string;
|
|
108
|
+
Email: string;
|
|
109
|
+
/** @deprecated Use AppRoles instead. */
|
|
110
|
+
Role: string;
|
|
111
|
+
AppRoles: rolesObject[];
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
declare type rolesObject = {
|
|
115
|
+
_id: string;
|
|
116
|
+
Name: string;
|
|
112
117
|
};
|
|
113
118
|
|
|
114
119
|
declare type accountObject = {
|
|
115
|
-
|
|
120
|
+
_id: string;
|
|
116
121
|
};
|
|
117
122
|
|
|
118
123
|
declare type environmentObject = {
|
|
119
|
-
|
|
120
|
-
}
|
|
124
|
+
isMobile: boolean;
|
|
125
|
+
};
|
|
121
126
|
|
|
122
127
|
declare type BoardItem = {
|
|
123
|
-
|
|
124
|
-
}
|
|
128
|
+
_id: string;
|
|
129
|
+
};
|
|
125
130
|
|
|
126
131
|
declare type DataformItem = {
|
|
127
|
-
|
|
128
|
-
}
|
|
132
|
+
_id: string;
|
|
133
|
+
};
|
|
129
134
|
|
|
130
135
|
declare type ProcessItem = {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
}
|
|
136
|
+
_id: string;
|
|
137
|
+
_activity_instance_id: string;
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
declare type FetchOptions = {
|
|
141
|
+
method?: string;
|
|
142
|
+
body?: string | object;
|
|
143
|
+
headers?: object;
|
|
144
|
+
};
|
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;
|
|
@@ -165,7 +165,13 @@ declare module "types/external" {
|
|
|
165
165
|
_id: string;
|
|
166
166
|
Name: string;
|
|
167
167
|
Email: string;
|
|
168
|
+
/** @deprecated Use AppRoles instead. */
|
|
168
169
|
Role: string;
|
|
170
|
+
AppRoles: rolesObject[];
|
|
171
|
+
};
|
|
172
|
+
export type rolesObject = {
|
|
173
|
+
_id: string;
|
|
174
|
+
Name: string;
|
|
169
175
|
};
|
|
170
176
|
export type accountObject = {
|
|
171
177
|
_id: string;
|
|
@@ -183,6 +189,11 @@ declare module "types/external" {
|
|
|
183
189
|
_id: string;
|
|
184
190
|
_activity_instance_id: string;
|
|
185
191
|
};
|
|
192
|
+
export type FetchOptions = {
|
|
193
|
+
method?: string;
|
|
194
|
+
body?: string | object;
|
|
195
|
+
headers?: object;
|
|
196
|
+
};
|
|
186
197
|
}
|
|
187
198
|
declare module "types/internal" {
|
|
188
199
|
import { userObject, accountObject, environmentObject } from "types/external";
|
|
@@ -226,7 +237,7 @@ declare module "nocode" {
|
|
|
226
237
|
import { Client, Formatter } from "utils/index";
|
|
227
238
|
import { window } from "window/index";
|
|
228
239
|
import { SDKContext } from "types/internal";
|
|
229
|
-
import { userObject, accountObject } from "types/external";
|
|
240
|
+
import { userObject, accountObject, FetchOptions } from "types/external";
|
|
230
241
|
class NocodeSDK extends BaseSDK {
|
|
231
242
|
#private;
|
|
232
243
|
context: Form | TableForm;
|
|
@@ -236,9 +247,7 @@ declare module "nocode" {
|
|
|
236
247
|
account: accountObject;
|
|
237
248
|
eventParameters: any;
|
|
238
249
|
constructor(props: SDKContext);
|
|
239
|
-
api(url: string, args?:
|
|
240
|
-
headers: object;
|
|
241
|
-
}): Promise<any>;
|
|
250
|
+
api(url: string, args?: FetchOptions): Promise<any>;
|
|
242
251
|
}
|
|
243
252
|
function initSDK(config: SDKContext): NocodeSDK;
|
|
244
253
|
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,34 +46,45 @@ 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
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
52
|
+
_id: string;
|
|
53
|
+
Name: string;
|
|
54
|
+
Email: string;
|
|
55
|
+
/** @deprecated Use AppRoles instead. */
|
|
56
|
+
Role: string;
|
|
57
|
+
AppRoles: rolesObject[];
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
declare type rolesObject = {
|
|
61
|
+
_id: string;
|
|
62
|
+
Name: string;
|
|
58
63
|
};
|
|
59
64
|
|
|
60
65
|
declare type accountObject = {
|
|
61
|
-
|
|
66
|
+
_id: string;
|
|
62
67
|
};
|
|
63
68
|
|
|
64
69
|
declare type environmentObject = {
|
|
65
|
-
|
|
66
|
-
}
|
|
70
|
+
isMobile: boolean;
|
|
71
|
+
};
|
|
67
72
|
|
|
68
73
|
declare type BoardItem = {
|
|
69
|
-
|
|
70
|
-
}
|
|
74
|
+
_id: string;
|
|
75
|
+
};
|
|
71
76
|
|
|
72
77
|
declare type DataformItem = {
|
|
73
|
-
|
|
74
|
-
}
|
|
78
|
+
_id: string;
|
|
79
|
+
};
|
|
75
80
|
|
|
76
81
|
declare type ProcessItem = {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
}
|
|
82
|
+
_id: string;
|
|
83
|
+
_activity_instance_id: string;
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
declare type FetchOptions = {
|
|
87
|
+
method?: string;
|
|
88
|
+
body?: string | object;
|
|
89
|
+
headers?: object;
|
|
90
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kissflow/lowcode-client-sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.28-beta.1",
|
|
4
4
|
"description": "JavaScript SDK for developing over the Kissflow lowcode platform",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -41,6 +41,6 @@
|
|
|
41
41
|
"customBuild": "node custom.build.mjs",
|
|
42
42
|
"build": "pnpm run customBuild",
|
|
43
43
|
"serve": "http-server -p 8080",
|
|
44
|
-
"publish
|
|
44
|
+
"publish:canary": "pnpm publish --tag canary --no-git-checks"
|
|
45
45
|
}
|
|
46
46
|
}
|