@kissflow/lowcode-client-sdk 1.0.44 → 1.0.49
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 +558 -155
- package/dist/kf.lowcodeworkersdk.es.js +291 -14
- package/dist/kfsdk.es.js +406 -5
- package/dist/kfsdk.umd.js +1 -1
- package/dist/lowcode.d.ts +527 -124
- package/dist/lowcode.types.d.ts +356 -1
- package/dist/nocode.d.ts +536 -133
- package/dist/nocode.types.d.ts +197 -0
- package/package.json +4 -1
- package/dist/kf.nocodeworkersdk.es.js +0 -573
package/dist/lowcode.types.d.ts
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
|
|
2
2
|
declare class Form {
|
|
3
3
|
type: string
|
|
4
|
+
instanceId: string
|
|
5
|
+
activityInstanceId: string
|
|
4
6
|
toJSON(): any;
|
|
5
7
|
getField(fieldId: string): any;
|
|
6
8
|
updateField(args: object): any;
|
|
9
|
+
getValidationErrors(): any;
|
|
10
|
+
getFormConfiguration(): any;
|
|
11
|
+
getFieldState(): any;
|
|
7
12
|
getTable(tableId: string): Table;
|
|
8
13
|
}
|
|
9
14
|
declare class Table {
|
|
@@ -87,6 +92,121 @@ declare class Client {
|
|
|
87
92
|
* document.querySelector("#avatar").src = dataUrl;
|
|
88
93
|
*/
|
|
89
94
|
getImageUrl(imageValue: Record<string, unknown>): any;
|
|
95
|
+
/**
|
|
96
|
+
* Open the platform's file picker, upload the selected file(s), and resolve
|
|
97
|
+
* with their metadata.
|
|
98
|
+
*
|
|
99
|
+
* Custom components (iframes) cannot access the platform's authenticated upload
|
|
100
|
+
* endpoints directly. This method opens the file picker in the parent window
|
|
101
|
+
* (which has the required session), runs the full select → upload flow, and
|
|
102
|
+
* resolves once all uploads settle with an array of the uploaded files'
|
|
103
|
+
* metadata (each including `key`, `name`, `size`, `photos`, etc. — the same
|
|
104
|
+
* shape consumed by `getImageUrl`).
|
|
105
|
+
*
|
|
106
|
+
* Always resolves with an array — a single-element array for single-file
|
|
107
|
+
* pickers (e.g. `maxCount: 1` for `Image`), one entry per uploaded file for
|
|
108
|
+
* multi-file pickers (e.g. `Attachment`). Resolves with `[]` if the user closes
|
|
109
|
+
* the picker without completing any upload.
|
|
110
|
+
*
|
|
111
|
+
* @param options - File picker configuration (e.g. `fileExtensions`, `maxSize`,
|
|
112
|
+
* `maxCount`, `imageProps`).
|
|
113
|
+
* @returns A promise that resolves with an array of uploaded file metadata
|
|
114
|
+
* objects (empty if the picker was closed without uploading anything).
|
|
115
|
+
*
|
|
116
|
+
* @example
|
|
117
|
+
* const files = await kf.client.openFilePicker({ fileExtensions: ["JPG", "PNG"] });
|
|
118
|
+
* if (files.length) onChange(files[0]); // single-file consumer (Image)
|
|
119
|
+
*
|
|
120
|
+
* @example
|
|
121
|
+
* const files = await kf.client.openFilePicker({ maxCount: 10 });
|
|
122
|
+
* if (files.length) onChange([...existing, ...files]); // multi-file consumer (Attachment)
|
|
123
|
+
*/
|
|
124
|
+
openFilePicker(options: FilePickerOptions): any;
|
|
125
|
+
/**
|
|
126
|
+
* Open the platform's barcode/QR scanner and resolve with the decoded text.
|
|
127
|
+
*
|
|
128
|
+
* The scanner UI (camera stream + decoding) runs in the parent window, which
|
|
129
|
+
* owns the camera permission — the iframe itself never accesses the camera.
|
|
130
|
+
* Camera-permission prompts and denials are handled inside the scanner UI;
|
|
131
|
+
* they are not surfaced as errors here.
|
|
132
|
+
*
|
|
133
|
+
* Resolves with `null` if the user closes the scanner without a successful
|
|
134
|
+
* scan (including the scanner's own inactivity timeout).
|
|
135
|
+
*
|
|
136
|
+
* Note: currently supported in web custom app UIs; the mobile (PWA) custom
|
|
137
|
+
* UI does not host the scanner portal yet.
|
|
138
|
+
*
|
|
139
|
+
* @param options - Scanner configuration (e.g. `localFileScan` to allow
|
|
140
|
+
* decoding from an uploaded image instead of the camera).
|
|
141
|
+
* @returns A promise that resolves with the decoded string, or `null` if the
|
|
142
|
+
* scanner was closed without scanning.
|
|
143
|
+
*
|
|
144
|
+
* @example
|
|
145
|
+
* const code = await kf.client.openScanner({ localFileScan: true });
|
|
146
|
+
* if (code) onChange(code);
|
|
147
|
+
*/
|
|
148
|
+
openScanner(options?: ScannerOptions): any;
|
|
149
|
+
/**
|
|
150
|
+
* Open the platform's native Geolocation map picker (search, current-location
|
|
151
|
+
* detection, marker drag, reverse-geocoding) in a modal over the custom
|
|
152
|
+
* form/component. Runs in the parent window, which owns the Google Maps API
|
|
153
|
+
* key — the iframe itself never needs one.
|
|
154
|
+
*
|
|
155
|
+
* Resolves with `null` if the user closes the picker without selecting a
|
|
156
|
+
* location.
|
|
157
|
+
*
|
|
158
|
+
* @param value - Optional current geolocation value to pre-select on the map.
|
|
159
|
+
* @returns A promise that resolves with the picked location object, or
|
|
160
|
+
* `null` if the picker was closed without a selection.
|
|
161
|
+
*
|
|
162
|
+
* @example
|
|
163
|
+
* const location = await kf.client.pickLocation();
|
|
164
|
+
* if (location) onChange(location);
|
|
165
|
+
*/
|
|
166
|
+
pickLocation(value?: GeolocationValue): any;
|
|
167
|
+
/**
|
|
168
|
+
* Upload a File object to Kissflow's S3 storage and resolve with its metadata.
|
|
169
|
+
*
|
|
170
|
+
* Use this when you have a File/Blob already in memory (e.g. a canvas drawing
|
|
171
|
+
* converted to a PNG blob) and need to upload it without opening a file picker UI.
|
|
172
|
+
* The platform runs the upload in the parent window (which has the required session)
|
|
173
|
+
* and resolves with the uploaded file's `{ key, name, ... }` metadata — the same
|
|
174
|
+
* shape returned by `openFilePicker`.
|
|
175
|
+
*
|
|
176
|
+
* Resolves with `null` if the upload fails.
|
|
177
|
+
*
|
|
178
|
+
* @param file - The File or Blob to upload.
|
|
179
|
+
* @param fileName - Optional file name override (defaults to `file.name`).
|
|
180
|
+
* @returns A promise that resolves with the uploaded file metadata, or `null` on failure.
|
|
181
|
+
*
|
|
182
|
+
* @example
|
|
183
|
+
* const blob = await new Promise<Blob>(res => canvas.toBlob(res, 'image/png'));
|
|
184
|
+
* const file = new File([blob], 'signature.png', { type: 'image/png' });
|
|
185
|
+
* const result = await kf.client.uploadFile(file);
|
|
186
|
+
* if (result) onChange(result);
|
|
187
|
+
*/
|
|
188
|
+
uploadFile(file: UploadableFile, fileName?: string): any;
|
|
189
|
+
/**
|
|
190
|
+
* Open the platform's file preview (lightbox) for one or more files.
|
|
191
|
+
*
|
|
192
|
+
* `files` always accepts an array — pass a single-element array for fields like
|
|
193
|
+
* `Image`, or the full list for multi-file fields like `Attachment`. The host's
|
|
194
|
+
* preview UI natively renders next/prev navigation across the array; the SDK
|
|
195
|
+
* just passes the file list through, no extra navigation surface is needed here.
|
|
196
|
+
*
|
|
197
|
+
* @param args - Preview configuration.
|
|
198
|
+
* @param args.files - Array of file metadata objects to preview.
|
|
199
|
+
* @param args.indexOfFile - Index of the file to open the preview on (default: 0).
|
|
200
|
+
* @returns A promise that resolves once the user closes the preview.
|
|
201
|
+
*
|
|
202
|
+
* @example
|
|
203
|
+
* await kf.client.openFilePreview({ files: [imageFieldValue] });
|
|
204
|
+
* await kf.client.openFilePreview({ files: attachmentFieldValue, indexOfFile: 2 });
|
|
205
|
+
*/
|
|
206
|
+
openFilePreview(args: {
|
|
207
|
+
files: Record<string, unknown>[];
|
|
208
|
+
indexOfFile?: number;
|
|
209
|
+
}): any;
|
|
90
210
|
}
|
|
91
211
|
declare class Formatter {
|
|
92
212
|
toDate(date: string): any;
|
|
@@ -117,12 +237,20 @@ declare class Page {
|
|
|
117
237
|
_id: string
|
|
118
238
|
popup: Popup
|
|
119
239
|
type: string
|
|
240
|
+
_route: string
|
|
120
241
|
getParameter(key: string): any;
|
|
121
242
|
getAllParameters(): any;
|
|
122
243
|
getVariable(key: string): any;
|
|
123
244
|
setVariable(key: string | object, value?: any): any;
|
|
124
245
|
openPopup(popupId: string, popupParams?: object): any;
|
|
125
246
|
getComponent(componentId: string): Component;
|
|
247
|
+
/**
|
|
248
|
+
* Notify the Kissflow host that the custom UI navigated to `path`,
|
|
249
|
+
* so the parent browser URL mirrors the route. Used by the App UI framework.
|
|
250
|
+
*/
|
|
251
|
+
setRoute(path: string): void;
|
|
252
|
+
/** Returns the initial deep-link route the page was opened with. */
|
|
253
|
+
getRoute(): string;
|
|
126
254
|
}
|
|
127
255
|
declare class DecisionTable {
|
|
128
256
|
evaluate(payload?: object): any;
|
|
@@ -193,6 +321,30 @@ declare class Dataform {
|
|
|
193
321
|
getFields(options?: {
|
|
194
322
|
viewId?: string;
|
|
195
323
|
}): Promise<any>;
|
|
324
|
+
/**
|
|
325
|
+
* Initialize a form with all necessary data (schema, item data, form store)
|
|
326
|
+
* This is the recommended way to create a custom form for dataform records
|
|
327
|
+
* It automatically handles fetching schema, item data, and initializing the form store
|
|
328
|
+
*
|
|
329
|
+
* @param instanceId - Optional instance ID of the dataform record. If omitted, creates a new record
|
|
330
|
+
* @param viewId - Optional view ID to scope the form's schema/permissions to a specific view
|
|
331
|
+
* @returns Promise with Form instance ready to use
|
|
332
|
+
*
|
|
333
|
+
* @example
|
|
334
|
+
* // Load existing record
|
|
335
|
+
* const dataform = kf.app.getDataform("EmpMaster");
|
|
336
|
+
* const form = await dataform.initForm("emp_123");
|
|
337
|
+
* const data = await form.toJSON();
|
|
338
|
+
*
|
|
339
|
+
* // Load existing record scoped to a view
|
|
340
|
+
* const form = await dataform.initForm("emp_123", "EmpMaster_View");
|
|
341
|
+
*
|
|
342
|
+
* // Create new record
|
|
343
|
+
* const form = await dataform.initForm();
|
|
344
|
+
* await form.updateField({ firstName: "John" });
|
|
345
|
+
*/
|
|
346
|
+
initForm(instanceId?: string, viewId?: string): Promise<Form>;
|
|
347
|
+
getFieldOptions(options?: DataformFieldOptions): Promise<DataformQueryResponse>;
|
|
196
348
|
}
|
|
197
349
|
declare class Board {
|
|
198
350
|
/**
|
|
@@ -271,6 +423,41 @@ declare class Board {
|
|
|
271
423
|
getFields(options?: {
|
|
272
424
|
viewId?: string;
|
|
273
425
|
}): Promise<any>;
|
|
426
|
+
/**
|
|
427
|
+
* Initialize a form for a board item with all necessary setup
|
|
428
|
+
* Fetches schema, item data, creates and initializes the form store
|
|
429
|
+
*
|
|
430
|
+
* @param instanceId - Optional instance ID. If omitted, creates a new board item
|
|
431
|
+
* @param viewId - Optional view ID to scope the form's schema/permissions to a specific view
|
|
432
|
+
* @returns Promise with Form instance ready to use
|
|
433
|
+
*
|
|
434
|
+
* @example
|
|
435
|
+
* // Create new board item
|
|
436
|
+
* const board = kf.app.getBoard("Inventory");
|
|
437
|
+
* const form = await board.initForm();
|
|
438
|
+
* await form.updateField({ Name: "New Item" });
|
|
439
|
+
*
|
|
440
|
+
* // Edit existing board item
|
|
441
|
+
* const form = await board.initForm("item_123");
|
|
442
|
+
* const data = await form.toJSON();
|
|
443
|
+
*
|
|
444
|
+
* // Edit existing board item scoped to a view
|
|
445
|
+
* const form = await board.initForm("item_123", "Inventory_View");
|
|
446
|
+
*/
|
|
447
|
+
initForm(instanceId?: string, viewId?: string): Promise<Form>;
|
|
448
|
+
/**
|
|
449
|
+
* Get field options for dropdown/lookup fields
|
|
450
|
+
* @param options - Field options (instanceId, fieldId)
|
|
451
|
+
* @returns Promise containing the field options
|
|
452
|
+
*
|
|
453
|
+
* @example
|
|
454
|
+
* const board = kf.app.getBoard("Inventory");
|
|
455
|
+
* const options = await board.getFieldOptions({
|
|
456
|
+
* instanceId: "item_123",
|
|
457
|
+
* fieldId: "Category"
|
|
458
|
+
* });
|
|
459
|
+
*/
|
|
460
|
+
getFieldOptions(options: BoardFieldOptions): Promise<any>;
|
|
274
461
|
}
|
|
275
462
|
declare class Process {
|
|
276
463
|
/**
|
|
@@ -321,7 +508,7 @@ declare class Process {
|
|
|
321
508
|
getAdminItems(options?: ProcessAdminOptions): Promise<ProcessQueryResponse>;
|
|
322
509
|
/**
|
|
323
510
|
* Get a single process instance by ID
|
|
324
|
-
* @param options - instanceId (required)
|
|
511
|
+
* @param options - instanceId, activityInstanceId (both required)
|
|
325
512
|
* @returns Promise containing the instance data
|
|
326
513
|
*/
|
|
327
514
|
getItem(options: ProcessGetItemOptions): Promise<ProcessItem>;
|
|
@@ -359,6 +546,26 @@ declare class Process {
|
|
|
359
546
|
* await process.deleteItem({ instanceId: "item_123" });
|
|
360
547
|
*/
|
|
361
548
|
deleteItem(options: ProcessDeleteItemOptions): Promise<void>;
|
|
549
|
+
/**
|
|
550
|
+
* Get a single process instance as admin (requires admin access)
|
|
551
|
+
* @param options - instanceId (required)
|
|
552
|
+
* @returns Promise containing the instance data
|
|
553
|
+
*
|
|
554
|
+
* @example
|
|
555
|
+
* const process = kf.app.getProcess("LeaveRequest");
|
|
556
|
+
* const item = await process.getAdminItem({ instanceId: "item_123" });
|
|
557
|
+
*/
|
|
558
|
+
getAdminItem(options: ProcessGetAdminItemOptions): Promise<ProcessItem>;
|
|
559
|
+
/**
|
|
560
|
+
* Update a process instance as admin (requires admin access)
|
|
561
|
+
* @param options - instanceId, data (required)
|
|
562
|
+
* @returns Promise containing the updated item
|
|
563
|
+
*
|
|
564
|
+
* @example
|
|
565
|
+
* const process = kf.app.getProcess("LeaveRequest");
|
|
566
|
+
* await process.updateAdminItem({ instanceId: "item_123", data: { LeaveType: "Sick" } });
|
|
567
|
+
*/
|
|
568
|
+
updateAdminItem(options: ProcessUpdateAdminItemOptions): Promise<ProcessItem>;
|
|
362
569
|
/**
|
|
363
570
|
* Open the form UI for a process instance
|
|
364
571
|
* @param item - Process item with _id and _activity_instance_id
|
|
@@ -457,6 +664,40 @@ declare class Process {
|
|
|
457
664
|
getProgress(options: {
|
|
458
665
|
instanceId: string;
|
|
459
666
|
}): Promise<any>;
|
|
667
|
+
/**
|
|
668
|
+
* Initialize a form with all necessary data (schema, item data, form store)
|
|
669
|
+
* This is the recommended way to create a custom form for dataform records
|
|
670
|
+
* It automatically handles fetching schema, item data, and initializing the form store
|
|
671
|
+
*
|
|
672
|
+
* @param instanceId - Optional instance ID of the dataform record. If omitted, creates a new record
|
|
673
|
+
* @returns Promise with Form instance ready to use
|
|
674
|
+
*
|
|
675
|
+
* @example
|
|
676
|
+
* // Load existing record
|
|
677
|
+
* const dataform = kf.app.getDataform("EmpMaster");
|
|
678
|
+
* const form = await dataform.initForm("emp_123");
|
|
679
|
+
* const data = await form.toJSON();
|
|
680
|
+
*
|
|
681
|
+
* // Create new record
|
|
682
|
+
* const form = await dataform.initForm();
|
|
683
|
+
* await form.updateField({ firstName: "John" });
|
|
684
|
+
*/
|
|
685
|
+
initForm(instanceId?: string, activityInstanceId?: string): Promise<Form>;
|
|
686
|
+
getFieldOptions(options?: ProcessFieldOptions): Promise<ProcessQueryResponse>;
|
|
687
|
+
/**
|
|
688
|
+
* Trigger AI document parsing on an uploaded file for a Smart Attachment field.
|
|
689
|
+
* Matches native platform behavior: matching empty fields are auto-filled directly
|
|
690
|
+
* into the form store (respecting field permissions) — no separate apply step needed.
|
|
691
|
+
* Call `form.toJSON()` afterward to read the updated values.
|
|
692
|
+
*
|
|
693
|
+
* @example
|
|
694
|
+
* const form = await process.initForm();
|
|
695
|
+
* const files = await kf.client.openFilePicker({ fileExtensions: ["pdf"], maxCount: 1 });
|
|
696
|
+
* await form.updateField({ [fieldId]: files });
|
|
697
|
+
* await process.parseAttachment({ instanceId: form.instanceId, fieldId, file: files[0] });
|
|
698
|
+
* const updated = await form.toJSON(); // other fields now auto-filled
|
|
699
|
+
*/
|
|
700
|
+
parseAttachment(options: ProcessParseAttachmentOptions): Promise<ProcessAttachmentParseResult>;
|
|
460
701
|
}
|
|
461
702
|
declare class Application {
|
|
462
703
|
page: Page
|
|
@@ -468,6 +709,43 @@ declare class Application {
|
|
|
468
709
|
getDataform(flowId: string): Dataform;
|
|
469
710
|
getBoard(flowId: string): Board;
|
|
470
711
|
getProcess(flowId: string): Process;
|
|
712
|
+
/**
|
|
713
|
+
* List the app's roles and which of them the current user is a member of.
|
|
714
|
+
*
|
|
715
|
+
* Only available in a Development account - use this to build a role
|
|
716
|
+
* picker UI inside the component, then pass the chosen role to
|
|
717
|
+
* {@link switchRole}.
|
|
718
|
+
*
|
|
719
|
+
* @returns A promise that resolves with `{ roles, currentRoles }` - the
|
|
720
|
+
* full list of app roles and the subset the current user belongs to.
|
|
721
|
+
*
|
|
722
|
+
* @example
|
|
723
|
+
* const { roles, currentRoles } = await kf.app.getRoles();
|
|
724
|
+
*/
|
|
725
|
+
getRoles(): Promise<{
|
|
726
|
+
roles: rolesObject[];
|
|
727
|
+
currentRoles: rolesObject[];
|
|
728
|
+
}>;
|
|
729
|
+
/**
|
|
730
|
+
* Switch the current user's active role in a Development account.
|
|
731
|
+
*
|
|
732
|
+
* This performs a real role change - it removes the user from their
|
|
733
|
+
* current role(s) and adds them to the target role. The platform's app
|
|
734
|
+
* shell (top nav, other widgets) picks up the new role on its own; no
|
|
735
|
+
* page reload happens. Only available in a Development account.
|
|
736
|
+
*
|
|
737
|
+
* @param args - Either `roleId` or `roleName` identifying the target role
|
|
738
|
+
* (use the values returned by {@link getRoles}).
|
|
739
|
+
* @returns A promise that resolves with the switched-to role.
|
|
740
|
+
*
|
|
741
|
+
* @example
|
|
742
|
+
* const { roles } = await kf.app.getRoles();
|
|
743
|
+
* await kf.app.switchRole({ roleId: roles[1]._id });
|
|
744
|
+
*/
|
|
745
|
+
switchRole(args: {
|
|
746
|
+
roleId?: string;
|
|
747
|
+
roleName?: string;
|
|
748
|
+
}): Promise<rolesObject>;
|
|
471
749
|
}
|
|
472
750
|
declare class kf {
|
|
473
751
|
static context: Component
|
|
@@ -556,6 +834,25 @@ declare type ProcessItem = {
|
|
|
556
834
|
_activity_instance_id: string;
|
|
557
835
|
};
|
|
558
836
|
|
|
837
|
+
// ============================================
|
|
838
|
+
// Form Field Value Types
|
|
839
|
+
// ============================================
|
|
840
|
+
|
|
841
|
+
// The value shape a Geolocation field is stored/read as across the platform
|
|
842
|
+
// (native forms and custom forms alike) — Latitude/Longitude are stringified
|
|
843
|
+
// on save, matching the native Geolocation field's saved representation.
|
|
844
|
+
declare type GeolocationValue = {
|
|
845
|
+
Address?: string;
|
|
846
|
+
Latitude: string;
|
|
847
|
+
Longitude: string;
|
|
848
|
+
City?: string;
|
|
849
|
+
State?: string;
|
|
850
|
+
Country?: string;
|
|
851
|
+
ZipCode?: string;
|
|
852
|
+
Area?: string;
|
|
853
|
+
PlaceId?: string;
|
|
854
|
+
};
|
|
855
|
+
|
|
559
856
|
// ============================================
|
|
560
857
|
// Process Types
|
|
561
858
|
// ============================================
|
|
@@ -589,6 +886,7 @@ declare type ProcessQueryResponse = QueryResponse;
|
|
|
589
886
|
|
|
590
887
|
declare type ProcessGetItemOptions = {
|
|
591
888
|
instanceId: string;
|
|
889
|
+
activityInstanceId: string;
|
|
592
890
|
};
|
|
593
891
|
|
|
594
892
|
declare type ProcessCreateItemOptions = {
|
|
@@ -605,6 +903,15 @@ declare type ProcessDeleteItemOptions = {
|
|
|
605
903
|
instanceId: string;
|
|
606
904
|
};
|
|
607
905
|
|
|
906
|
+
declare type ProcessGetAdminItemOptions = {
|
|
907
|
+
instanceId: string;
|
|
908
|
+
};
|
|
909
|
+
|
|
910
|
+
declare type ProcessUpdateAdminItemOptions = {
|
|
911
|
+
instanceId: string;
|
|
912
|
+
data: object;
|
|
913
|
+
};
|
|
914
|
+
|
|
608
915
|
declare type ProcessSubmitItemOptions = {
|
|
609
916
|
instanceId: string;
|
|
610
917
|
activityInstanceId: string;
|
|
@@ -655,6 +962,36 @@ declare type ProcessDiscardItemOptions = {
|
|
|
655
962
|
instanceId: string;
|
|
656
963
|
};
|
|
657
964
|
|
|
965
|
+
declare type ProcessFieldOptions = {
|
|
966
|
+
instanceId: string;
|
|
967
|
+
activityInstanceId: string;
|
|
968
|
+
fieldId: string;
|
|
969
|
+
/** Skip the server-side model lookup by supplying the field's type directly. */
|
|
970
|
+
fieldType?: string;
|
|
971
|
+
tableId?: string;
|
|
972
|
+
tableRowId?: string;
|
|
973
|
+
};
|
|
974
|
+
|
|
975
|
+
declare type ProcessAttachmentFile = {
|
|
976
|
+
id: string;
|
|
977
|
+
name: string;
|
|
978
|
+
key: string;
|
|
979
|
+
size?: number;
|
|
980
|
+
fileExtension?: string;
|
|
981
|
+
};
|
|
982
|
+
|
|
983
|
+
declare type ProcessParseAttachmentOptions = {
|
|
984
|
+
instanceId: string; // form.instanceId (process record id)
|
|
985
|
+
activityInstanceId: string;
|
|
986
|
+
fieldId: string;
|
|
987
|
+
file: ProcessAttachmentFile;
|
|
988
|
+
};
|
|
989
|
+
|
|
990
|
+
declare type ProcessAttachmentParseResult = {
|
|
991
|
+
appliedFields: string[]; // field IDs auto-filled into the form store
|
|
992
|
+
suggestedBy: string; // name of the parsed file
|
|
993
|
+
};
|
|
994
|
+
|
|
658
995
|
declare type FetchOptions = {
|
|
659
996
|
method?: string;
|
|
660
997
|
body?: string | object;
|
|
@@ -703,6 +1040,15 @@ declare type DataformSubmitItemOptions = {
|
|
|
703
1040
|
viewId?: string;
|
|
704
1041
|
};
|
|
705
1042
|
|
|
1043
|
+
declare type DataformFieldOptions = {
|
|
1044
|
+
instanceId: string;
|
|
1045
|
+
fieldId: string;
|
|
1046
|
+
/** Skip the server-side model lookup by supplying the field's type directly. */
|
|
1047
|
+
fieldType?: string;
|
|
1048
|
+
tableId?: string;
|
|
1049
|
+
tableRowId?: string;
|
|
1050
|
+
};
|
|
1051
|
+
|
|
706
1052
|
// ============================================
|
|
707
1053
|
// Board Types
|
|
708
1054
|
// ============================================
|
|
@@ -739,3 +1085,12 @@ declare type BoardSubmitItemOptions = {
|
|
|
739
1085
|
declare type BoardDiscardItemOptions = {
|
|
740
1086
|
instanceId: string;
|
|
741
1087
|
};
|
|
1088
|
+
|
|
1089
|
+
declare type BoardFieldOptions = {
|
|
1090
|
+
instanceId: string;
|
|
1091
|
+
fieldId: string;
|
|
1092
|
+
/** Skip the server-side model lookup by supplying the field's type directly. */
|
|
1093
|
+
fieldType?: string;
|
|
1094
|
+
tableId?: string;
|
|
1095
|
+
tableRowId?: string;
|
|
1096
|
+
};
|