@integry/sdk 4.8.75 → 4.8.77
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/esm/index.csm.d.ts +33 -4
- package/dist/esm/index.csm.js +1 -1
- package/dist/umd/index.umd.d.ts +26 -3
- package/dist/umd/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/esm/index.csm.d.ts
CHANGED
|
@@ -11,6 +11,18 @@ declare enum RenderModes {
|
|
|
11
11
|
MODAL = "MODAL",
|
|
12
12
|
INLINE = "INLINE"
|
|
13
13
|
}
|
|
14
|
+
type CustomFunctionSelection = {
|
|
15
|
+
id: number | string;
|
|
16
|
+
isActivity?: boolean;
|
|
17
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
18
|
+
preloadedValue?: any;
|
|
19
|
+
};
|
|
20
|
+
type CustomFunctionSelectionHandler = {
|
|
21
|
+
(id: number | string,
|
|
22
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
23
|
+
preloadedValue?: any, selectActivity?: boolean): void | Promise<void>;
|
|
24
|
+
(selection: CustomFunctionSelection): void | Promise<void>;
|
|
25
|
+
};
|
|
14
26
|
type IntegrySDKEventPayloads = {
|
|
15
27
|
ready: {
|
|
16
28
|
isReady: boolean;
|
|
@@ -55,7 +67,13 @@ type IntegrySDKEventPayloads = {
|
|
|
55
67
|
callbackUrlArray: {
|
|
56
68
|
templateStepId: number;
|
|
57
69
|
activityId: number;
|
|
58
|
-
callbackUrl: string
|
|
70
|
+
callbackUrl: string
|
|
71
|
+
/**
|
|
72
|
+
* Integry JS SDK
|
|
73
|
+
*/
|
|
74
|
+
| /**
|
|
75
|
+
* Integry JS SDK
|
|
76
|
+
*/ null;
|
|
59
77
|
}[];
|
|
60
78
|
authorizations: {
|
|
61
79
|
authorizationId: number;
|
|
@@ -275,13 +293,20 @@ type RenderFlowStepOptions = {
|
|
|
275
293
|
containerId: string;
|
|
276
294
|
}) => void;
|
|
277
295
|
functionsListContainerId?: string;
|
|
278
|
-
|
|
296
|
+
/**
|
|
297
|
+
* Pass a handler to receive selections from custom function/activity pickers.
|
|
298
|
+
* Clients can call the handler with `(id, preloadedValue?, true)` for activities,
|
|
299
|
+
* or with `{ id, isActivity: true, preloadedValue }`.
|
|
300
|
+
*/
|
|
301
|
+
onCustomFunctionSelect?: (handler: CustomFunctionSelectionHandler) => void;
|
|
279
302
|
enableExpandedTextarea?: boolean;
|
|
280
303
|
requireAuthentication?: boolean;
|
|
281
304
|
};
|
|
282
305
|
type RenderFunctionFormOptions = {
|
|
283
306
|
containerId: string;
|
|
284
|
-
functionName: string;
|
|
307
|
+
functionName: string | null;
|
|
308
|
+
activity_id?: number | string | null;
|
|
309
|
+
is_activity?: boolean;
|
|
285
310
|
onChange?: (val: any) => void;
|
|
286
311
|
value?: any;
|
|
287
312
|
tagsTree?: any;
|
|
@@ -687,7 +712,11 @@ interface FunctionFieldType {
|
|
|
687
712
|
containerId: string;
|
|
688
713
|
}) => void;
|
|
689
714
|
functionsListContainerId?: string;
|
|
690
|
-
|
|
715
|
+
/**
|
|
716
|
+
* Provide a handler that can receive function or activity selections.
|
|
717
|
+
* Call it as `(id, preloadedValue?, true)` or `{ id, isActivity: true, preloadedValue }`.
|
|
718
|
+
*/
|
|
719
|
+
onCustomFunctionSelect?: (handler: CustomFunctionSelectionHandler) => void;
|
|
691
720
|
}
|
|
692
721
|
/**
|
|
693
722
|
*
|