@integry/sdk 4.3.50 → 4.4.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/.vscode/launch.json +2 -2
- package/dist/esm/index.csm.d.ts +34 -8
- package/dist/esm/index.csm.js +1 -1
- package/dist/umd/index.umd.d.ts +31 -7
- package/dist/umd/index.umd.js +1 -1
- package/package.json +1 -1
package/.vscode/launch.json
CHANGED
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
// "url": "file:////Users/yasir/Downloads/Flows%20-%20Integry%20SDK%20sample-23.html",
|
|
14
14
|
// "url": "file:////Users/yasir/Downloads/Flows%20-%20Integry%20SDK%20sample%20(33).html",
|
|
15
15
|
// "url": "file:////Users/yasir/Downloads/Flows%20-%20Integry%20SDK%20sample%20(34).html",
|
|
16
|
-
|
|
17
|
-
"url": "file:////Users/yasir/Downloads/FunctionsPrototype.html",
|
|
16
|
+
"url": "file:////Users/yasir/Downloads/Flows - Integry SDK sample (41).html",
|
|
17
|
+
// "url": "file:////Users/yasir/Downloads/FunctionsPrototype.html",
|
|
18
18
|
"webRoot": "${workspaceFolder}/src"
|
|
19
19
|
}
|
|
20
20
|
]
|
package/dist/esm/index.csm.d.ts
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { html } from 'htm/preact';
|
|
2
2
|
import { VNode } from "preact";
|
|
3
|
-
type IntegrySDKEventType = "authorizations" | "did-add-authorization" | "did-begin-remove-authorization" | "did-change-step" | "did-fail-authorization-verification" | "did-load-flow" | "did-load-flows" | "did-load-integration" | "did-load-integrations" | "did-load-preview" | "did-remove-authorization" | "did-save-integration" | "did-delete-integration" | "did-select-authorization" | "ready" | "should-load-flow" | "did-click-close-button" | "did-app-load" | "did-enable-integration" | "did-disable-integration" | "did-rename-integration" | "did-raise-sdk-embed-warning";
|
|
3
|
+
type IntegrySDKEventType = "authorizations" | "did-add-authorization" | "did-begin-remove-authorization" | "did-change-step" | "did-fail-authorization-verification" | "did-load-flow" | "did-load-flows" | "did-load-integration" | "did-load-integrations" | "did-load-preview" | "did-remove-authorization" | "did-save-integration" | "did-delete-integration" | "did-select-authorization" | "ready" | "should-load-flow" | "did-click-close-button" | "did-app-load" | "did-enable-integration" | "did-disable-integration" | "did-rename-integration" | "did-raise-sdk-embed-warning" | "app-connected" | "app-disconnected";
|
|
4
|
+
type ConnectedAccount = {
|
|
5
|
+
id: string;
|
|
6
|
+
display_name: string;
|
|
7
|
+
modified_at: string;
|
|
8
|
+
};
|
|
4
9
|
type IntegrySDKEventPayloads = {
|
|
5
10
|
ready: {
|
|
6
11
|
isReady: boolean;
|
|
@@ -45,7 +50,9 @@ type IntegrySDKEventPayloads = {
|
|
|
45
50
|
callbackUrlArray: {
|
|
46
51
|
templateStepId: number;
|
|
47
52
|
activityId: number;
|
|
48
|
-
callbackUrl: string
|
|
53
|
+
callbackUrl: string /**
|
|
54
|
+
* Integry JS SDK
|
|
55
|
+
*/ | null;
|
|
49
56
|
}[];
|
|
50
57
|
authorizations: {
|
|
51
58
|
authorizationId: number;
|
|
@@ -109,6 +116,22 @@ type IntegrySDKEventPayloads = {
|
|
|
109
116
|
type: string;
|
|
110
117
|
message: string;
|
|
111
118
|
};
|
|
119
|
+
"app-connected": {
|
|
120
|
+
id: number;
|
|
121
|
+
name: string;
|
|
122
|
+
title: string;
|
|
123
|
+
connected_accounts?: ConnectedAccount[];
|
|
124
|
+
icon_url: string;
|
|
125
|
+
docs_url: string;
|
|
126
|
+
} | null;
|
|
127
|
+
"app-disconnected": {
|
|
128
|
+
id: number;
|
|
129
|
+
name: string;
|
|
130
|
+
title: string;
|
|
131
|
+
connected_accounts?: ConnectedAccount[];
|
|
132
|
+
icon_url: string;
|
|
133
|
+
docs_url: string;
|
|
134
|
+
} | null;
|
|
112
135
|
};
|
|
113
136
|
type EventCallback<P extends IntegrySDKEventType> = (
|
|
114
137
|
// @ts-expect-error P can index IntegrySDKEventPayloads
|
|
@@ -136,6 +159,8 @@ type IntegrySDKEvents = {
|
|
|
136
159
|
"did-disable-integration": EventCallback<"did-disable-integration">;
|
|
137
160
|
"did-rename-integration": EventCallback<"did-rename-integration">;
|
|
138
161
|
"did-raise-sdk-embed-warning": EventCallback<"did-raise-sdk-embed-warning">;
|
|
162
|
+
"app-connected": EventCallback<"app-connected">;
|
|
163
|
+
"app-disconnected": EventCallback<"app-disconnected">;
|
|
139
164
|
};
|
|
140
165
|
declare enum ViewStyles {
|
|
141
166
|
COMPACT = "COMPACT",
|
|
@@ -430,6 +455,11 @@ interface PreviewPayload {
|
|
|
430
455
|
metadata: PreviewMetadata;
|
|
431
456
|
previewContainerId: string;
|
|
432
457
|
}
|
|
458
|
+
interface ConnectedAccount$0 {
|
|
459
|
+
id: string;
|
|
460
|
+
display_name: string;
|
|
461
|
+
modified_at: string;
|
|
462
|
+
}
|
|
433
463
|
// interface for app flows
|
|
434
464
|
interface Instance {
|
|
435
465
|
status: string;
|
|
@@ -477,11 +507,6 @@ interface MultipurposeFieldType {
|
|
|
477
507
|
fieldId?: string;
|
|
478
508
|
enableTagify?: boolean;
|
|
479
509
|
}
|
|
480
|
-
interface ConnectedAccount {
|
|
481
|
-
id: string;
|
|
482
|
-
display_name: string;
|
|
483
|
-
modified_at: string;
|
|
484
|
-
}
|
|
485
510
|
/**
|
|
486
511
|
*
|
|
487
512
|
* @param key Key to sign hash
|
|
@@ -572,7 +597,8 @@ declare class IntegryJS {
|
|
|
572
597
|
disconnectApp: (appName: string, connectedAccountId?: string | undefined) => Promise<any>;
|
|
573
598
|
isAppConnected: (appName: string) => Promise<any>;
|
|
574
599
|
getFunction: (functionName: string) => Promise<any>;
|
|
575
|
-
getConnectedAccounts: (appName: string) => Promise<ConnectedAccount[] | null>;
|
|
600
|
+
getConnectedAccounts: (appName: string) => Promise<ConnectedAccount$0[] | null>;
|
|
601
|
+
private getApp;
|
|
576
602
|
/**
|
|
577
603
|
* Render the template form we ship
|
|
578
604
|
* @param data
|