@integry/sdk 4.8.77 → 4.8.79
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/README.md +20 -0
- package/dist/esm/index.csm.d.ts +4 -7
- package/dist/esm/index.csm.js +1 -1
- package/dist/umd/index.umd.d.ts +3 -0
- package/dist/umd/index.umd.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -19,3 +19,23 @@ npm i @integry/sdk
|
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
Get started and learn more using our [documentation.](https://sdk.integry.io)
|
|
22
|
+
|
|
23
|
+
## Activity meta passthrough (renderFunctionForm)
|
|
24
|
+
|
|
25
|
+
When `is_activity: true` is used with `renderFunctionForm`, the saved
|
|
26
|
+
`json_schema.meta` is a verbatim copy of the activity details response meta
|
|
27
|
+
shape (including nested `app` and `ui` fields). For example:
|
|
28
|
+
|
|
29
|
+
```json
|
|
30
|
+
{
|
|
31
|
+
"json_schema": {
|
|
32
|
+
"type": "function",
|
|
33
|
+
"function": { "name": "activities.send_message" }
|
|
34
|
+
},
|
|
35
|
+
"meta": {
|
|
36
|
+
"type": "ACTIVITY",
|
|
37
|
+
"app": { "title": "Slack", "icon_url": "https://..." },
|
|
38
|
+
"ui": { "title": "Send message" }
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
```
|
package/dist/esm/index.csm.d.ts
CHANGED
|
@@ -67,13 +67,7 @@ type IntegrySDKEventPayloads = {
|
|
|
67
67
|
callbackUrlArray: {
|
|
68
68
|
templateStepId: number;
|
|
69
69
|
activityId: number;
|
|
70
|
-
callbackUrl: string
|
|
71
|
-
/**
|
|
72
|
-
* Integry JS SDK
|
|
73
|
-
*/
|
|
74
|
-
| /**
|
|
75
|
-
* Integry JS SDK
|
|
76
|
-
*/ null;
|
|
70
|
+
callbackUrl: string | null;
|
|
77
71
|
}[];
|
|
78
72
|
authorizations: {
|
|
79
73
|
authorizationId: number;
|
|
@@ -306,6 +300,9 @@ type RenderFunctionFormOptions = {
|
|
|
306
300
|
containerId: string;
|
|
307
301
|
functionName: string | null;
|
|
308
302
|
activity_id?: number | string | null;
|
|
303
|
+
/**
|
|
304
|
+
* When true, the saved json_schema.meta mirrors the activity details meta shape.
|
|
305
|
+
*/
|
|
309
306
|
is_activity?: boolean;
|
|
310
307
|
onChange?: (val: any) => void;
|
|
311
308
|
value?: any;
|