@kissflow/lowcode-client-sdk 1.0.39 → 1.0.40
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 +538 -5
- package/dist/kf.lowcodeworkersdk.es.js +429 -16
- package/dist/kf.nocodeworkersdk.es.js +39 -1
- package/dist/kfsdk.es.js +428 -16
- package/dist/kfsdk.umd.js +1 -1
- package/dist/lowcode.d.ts +538 -5
- package/dist/lowcode.types.d.ts +540 -5
- package/dist/nocode.d.ts +546 -13
- package/dist/nocode.types.d.ts +215 -0
- package/package.json +1 -1
package/dist/nocode.types.d.ts
CHANGED
|
@@ -49,6 +49,45 @@ declare class kf {
|
|
|
49
49
|
static eventParameters: any
|
|
50
50
|
static api(url: string, args?: FetchOptions): Promise<any>;
|
|
51
51
|
}
|
|
52
|
+
// ============================================
|
|
53
|
+
// Shared Base Types
|
|
54
|
+
// ============================================
|
|
55
|
+
|
|
56
|
+
declare type QueryResponse = {
|
|
57
|
+
items: any[];
|
|
58
|
+
total: number;
|
|
59
|
+
page?: number;
|
|
60
|
+
pageSize?: number;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
declare type BaseQueryOptions = {
|
|
64
|
+
searchValue?: string;
|
|
65
|
+
pageNumber?: number;
|
|
66
|
+
pageSize?: number;
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
declare type PayloadSortItem = {
|
|
70
|
+
Id: string;
|
|
71
|
+
SortType: "ASC" | "DESC";
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
declare type PayloadOptions = {
|
|
75
|
+
Columns?: any[];
|
|
76
|
+
Filters?: any;
|
|
77
|
+
Sort?: PayloadSortItem[];
|
|
78
|
+
FilterParam?: any;
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
declare type ProcessPayloadOptions = {
|
|
82
|
+
Columns?: any[];
|
|
83
|
+
Filters?: any;
|
|
84
|
+
Sort?: PayloadSortItem[];
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
// ============================================
|
|
88
|
+
// Core Types
|
|
89
|
+
// ============================================
|
|
90
|
+
|
|
52
91
|
declare type userObject = {
|
|
53
92
|
_id: string;
|
|
54
93
|
Name: string;
|
|
@@ -80,13 +119,189 @@ declare type DataformItem = {
|
|
|
80
119
|
_id: string;
|
|
81
120
|
};
|
|
82
121
|
|
|
122
|
+
|
|
83
123
|
declare type ProcessItem = {
|
|
84
124
|
_id: string;
|
|
85
125
|
_activity_instance_id: string;
|
|
86
126
|
};
|
|
87
127
|
|
|
128
|
+
// ============================================
|
|
129
|
+
// Process Types
|
|
130
|
+
// ============================================
|
|
131
|
+
|
|
132
|
+
declare type ProcessMyItemsOptions = BaseQueryOptions & {
|
|
133
|
+
status?: "draft" | "inprogress" | "completed" | "withdrawn" | "rejected" | "all";
|
|
134
|
+
payload?: ProcessPayloadOptions;
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
declare type ProcessMyTasksOptions = BaseQueryOptions & {
|
|
138
|
+
activityId?: string;
|
|
139
|
+
payload?: ProcessPayloadOptions;
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
declare type ProcessParticipatedOptions = BaseQueryOptions & {
|
|
143
|
+
activityId?: string;
|
|
144
|
+
payload?: ProcessPayloadOptions;
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
declare type ProcessAdminOptions = BaseQueryOptions & {
|
|
148
|
+
payload?: ProcessPayloadOptions;
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
declare type ProcessQueryResponse = QueryResponse;
|
|
152
|
+
|
|
153
|
+
declare type ProcessGetItemOptions = {
|
|
154
|
+
instanceId: string;
|
|
155
|
+
};
|
|
156
|
+
|
|
157
|
+
declare type ProcessCreateItemOptions = {
|
|
158
|
+
data?: object;
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
declare type ProcessUpdateItemOptions = {
|
|
162
|
+
instanceId: string;
|
|
163
|
+
activityInstanceId: string;
|
|
164
|
+
data: object;
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
declare type ProcessDeleteItemOptions = {
|
|
168
|
+
instanceId: string;
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
declare type ProcessSubmitItemOptions = {
|
|
172
|
+
instanceId: string;
|
|
173
|
+
activityInstanceId: string;
|
|
174
|
+
comment?: string;
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
declare type ProcessRejectItemOptions = {
|
|
178
|
+
instanceId: string;
|
|
179
|
+
activityInstanceId: string;
|
|
180
|
+
comment: string;
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
declare type ProcessWithdrawItemOptions = {
|
|
184
|
+
instanceId: string;
|
|
185
|
+
comment?: string;
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
declare type ProcessSendbackItemOptions = {
|
|
189
|
+
instanceId: string;
|
|
190
|
+
activityInstanceId: string;
|
|
191
|
+
stepId: string;
|
|
192
|
+
comment: string;
|
|
193
|
+
};
|
|
194
|
+
|
|
195
|
+
declare type ProcessReassignItemOptions = {
|
|
196
|
+
instanceId: string;
|
|
197
|
+
activityInstanceId: string;
|
|
198
|
+
reassignTo: object;
|
|
199
|
+
comment: string;
|
|
200
|
+
reassignType?: "initiator" | "approver" | "admin";
|
|
201
|
+
reassignedFrom?: object[];
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
declare type ProcessGetReassigneesOptions = {
|
|
205
|
+
instanceId: string;
|
|
206
|
+
activityInstanceId: string;
|
|
207
|
+
pageNumber?: number;
|
|
208
|
+
pageSize?: number;
|
|
209
|
+
query?: string;
|
|
210
|
+
};
|
|
211
|
+
|
|
212
|
+
declare type ProcessRestartItemOptions = {
|
|
213
|
+
instanceId: string;
|
|
214
|
+
activityInstanceId: string;
|
|
215
|
+
};
|
|
216
|
+
|
|
217
|
+
declare type ProcessDiscardItemOptions = {
|
|
218
|
+
instanceId: string;
|
|
219
|
+
};
|
|
220
|
+
|
|
88
221
|
declare type FetchOptions = {
|
|
89
222
|
method?: string;
|
|
90
223
|
body?: string | object;
|
|
91
224
|
headers?: object;
|
|
92
225
|
};
|
|
226
|
+
|
|
227
|
+
// ============================================
|
|
228
|
+
// Dataform Types
|
|
229
|
+
// ============================================
|
|
230
|
+
|
|
231
|
+
declare type DataformQueryOptions = BaseQueryOptions & {
|
|
232
|
+
viewId?: string;
|
|
233
|
+
payload?: PayloadOptions;
|
|
234
|
+
};
|
|
235
|
+
|
|
236
|
+
declare type DataformQueryResponse = QueryResponse;
|
|
237
|
+
|
|
238
|
+
declare type DataformCreateItemOptions = {
|
|
239
|
+
data?: object;
|
|
240
|
+
viewId?: string;
|
|
241
|
+
};
|
|
242
|
+
|
|
243
|
+
declare type DataformUpdateItemOptions = {
|
|
244
|
+
itemId: string; // Required: the _id of the item to update
|
|
245
|
+
data: object; // Required: the updated field values
|
|
246
|
+
viewId?: string; // Optional: view ID for view-specific update
|
|
247
|
+
};
|
|
248
|
+
|
|
249
|
+
declare type DataformGetItemOptions = {
|
|
250
|
+
itemId: string;
|
|
251
|
+
viewId?: string;
|
|
252
|
+
};
|
|
253
|
+
|
|
254
|
+
declare type DataformDeleteItemOptions = {
|
|
255
|
+
itemId: string;
|
|
256
|
+
viewId?: string;
|
|
257
|
+
};
|
|
258
|
+
|
|
259
|
+
declare type DataformDiscardItemOptions = {
|
|
260
|
+
viewId?: string;
|
|
261
|
+
};
|
|
262
|
+
|
|
263
|
+
declare type DataformSubmitItemOptions = {
|
|
264
|
+
itemId: string;
|
|
265
|
+
data?: object;
|
|
266
|
+
viewId?: string;
|
|
267
|
+
};
|
|
268
|
+
|
|
269
|
+
// ============================================
|
|
270
|
+
// Board Types
|
|
271
|
+
// ============================================
|
|
272
|
+
|
|
273
|
+
declare type BoardGetItemsOptions = BaseQueryOptions & {
|
|
274
|
+
viewId?: string;
|
|
275
|
+
payload?: PayloadOptions;
|
|
276
|
+
};
|
|
277
|
+
|
|
278
|
+
declare type BoardQueryResponse = QueryResponse;
|
|
279
|
+
|
|
280
|
+
declare type BoardGetItemOptions = {
|
|
281
|
+
instanceId: string;
|
|
282
|
+
};
|
|
283
|
+
|
|
284
|
+
declare type BoardCreateItemOptions = {
|
|
285
|
+
data?: object;
|
|
286
|
+
};
|
|
287
|
+
|
|
288
|
+
declare type BoardUpdateItemOptions = {
|
|
289
|
+
instanceId: string; // Required: the _id of the item to update
|
|
290
|
+
data: object; // Required: the updated field values
|
|
291
|
+
};
|
|
292
|
+
|
|
293
|
+
declare type BoardDeleteItemOptions = {
|
|
294
|
+
instanceId: string; // Required: the _id of the item to delete
|
|
295
|
+
};
|
|
296
|
+
|
|
297
|
+
declare type BoardSubmitItemOptions = {
|
|
298
|
+
instanceId: string;
|
|
299
|
+
comment?: string;
|
|
300
|
+
};
|
|
301
|
+
|
|
302
|
+
declare type BoardDiscardItemOptions = {
|
|
303
|
+
instanceId: string;
|
|
304
|
+
};
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
|