@membranehq/sdk 0.9.11 → 0.11.0
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/bundle.d.ts +75 -34
- package/dist/bundle.js +34 -17
- package/dist/bundle.js.map +1 -1
- package/dist/dts/accessors/connections-accessors.d.ts +18 -12
- package/dist/dts/accessors/integrations-accessors.d.ts +15 -11
- package/dist/dts/agent/session.d.ts +10 -0
- package/dist/dts/alerts/index.d.ts +1 -0
- package/dist/dts/alerts/types.d.ts +106 -13
- package/dist/dts/alerts/utils.d.ts +8 -0
- package/dist/dts/config/index.d.ts +1 -0
- package/dist/dts/dto/index.d.ts +3 -0
- package/dist/dts/functions/base.d.ts +2 -2
- package/dist/dts/index.browser.d.ts +1 -0
- package/dist/dts/logging/index.d.ts +9 -0
- package/dist/dts/orgs/types.d.ts +68 -1
- package/dist/dts/platform-users.d.ts +17 -2
- package/dist/dts/usage/types.d.ts +1 -0
- package/dist/dts/webhooks/types.d.ts +4 -2
- package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +6 -2
- package/dist/dts/workspace-elements/api/connections-api.d.ts +19 -4
- package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +3 -1
- package/dist/dts/workspace-elements/api/data-source-instances-api.d.ts +3 -1
- package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +3 -1
- package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +3 -1
- package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +3 -1
- package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +6 -2
- package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +6 -2
- package/dist/dts/workspace-elements/api/flows-api.d.ts +6 -2
- package/dist/dts/workspace-elements/api/integrations-api.d.ts +5 -4
- package/dist/dts/workspace-elements/api/packages-api.d.ts +2 -0
- package/dist/dts/workspace-elements/base/actions/index.d.ts +1 -1
- package/dist/dts/workspace-elements/base/connections/types.d.ts +3 -1
- package/dist/dts/workspace-elements/base/connectors/auth.d.ts +20 -0
- package/dist/dts/workspace-elements/base/connectors/functions.d.ts +12 -490
- package/dist/dts/workspace-elements/base/connectors/functions.test.d.ts +1 -0
- package/dist/dts/workspace-elements/base/connectors/index.d.ts +1 -0
- package/dist/dts/workspace-elements/base/connectors/types.d.ts +922 -478
- package/dist/dts/workspace-elements/base/data-collections/data-locations/collections/methods/base.d.ts +1 -2
- package/dist/dts/workspace-elements/base/integrations/index.d.ts +0 -2
- package/dist/dts/workspace-elements/base/packages/index.d.ts +2 -0
- package/dist/dts/workspace-elements/element-utils.d.ts +2 -0
- package/dist/dts/workspace-elements/element-utils.test.d.ts +1 -0
- package/dist/dts/workspace-elements/index.d.ts +1 -0
- package/dist/dts/workspace-elements/types.d.ts +9 -3
- package/dist/dts/workspaces/types.d.ts +39 -1
- package/dist/index.browser.d.mts +1420 -641
- package/dist/index.browser.d.ts +1420 -641
- package/dist/index.browser.js +608 -122
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.mjs +584 -123
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.node.d.mts +1370 -590
- package/dist/index.node.d.ts +1370 -590
- package/dist/index.node.js +615 -122
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.mjs +591 -123
- package/dist/index.node.mjs.map +1 -1
- package/package.json +2 -1
package/dist/bundle.d.ts
CHANGED
|
@@ -344,9 +344,11 @@ declare const ConnectorSpec: z.ZodObject<{
|
|
|
344
344
|
helpUri: z.ZodOptional<z.ZodString>;
|
|
345
345
|
test: z.ZodOptional<z.ZodBoolean>;
|
|
346
346
|
}, z.core.$strip>>;
|
|
347
|
+
inputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
347
348
|
auth: z.ZodOptional<z.ZodIntersection<z.ZodUnion<readonly [z.ZodObject<{
|
|
348
349
|
title: z.ZodOptional<z.ZodString>;
|
|
349
350
|
description: z.ZodOptional<z.ZodString>;
|
|
351
|
+
inputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
350
352
|
ui: z.ZodOptional<z.ZodObject<{
|
|
351
353
|
schema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
352
354
|
helpUri: z.ZodOptional<z.ZodString>;
|
|
@@ -619,6 +621,7 @@ declare const ConnectorSpec: z.ZodObject<{
|
|
|
619
621
|
}, z.core.$strip>, z.ZodObject<{
|
|
620
622
|
title: z.ZodOptional<z.ZodString>;
|
|
621
623
|
description: z.ZodOptional<z.ZodString>;
|
|
624
|
+
inputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
622
625
|
ui: z.ZodOptional<z.ZodObject<{
|
|
623
626
|
schema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
624
627
|
helpUri: z.ZodOptional<z.ZodString>;
|
|
@@ -699,6 +702,7 @@ declare const ConnectorSpec: z.ZodObject<{
|
|
|
699
702
|
}, z.core.$strip>, z.ZodObject<{
|
|
700
703
|
title: z.ZodOptional<z.ZodString>;
|
|
701
704
|
description: z.ZodOptional<z.ZodString>;
|
|
705
|
+
inputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
702
706
|
ui: z.ZodOptional<z.ZodObject<{
|
|
703
707
|
schema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
704
708
|
helpUri: z.ZodOptional<z.ZodString>;
|
|
@@ -738,6 +742,7 @@ declare const ConnectorSpec: z.ZodObject<{
|
|
|
738
742
|
}, z.core.$strip>, z.ZodObject<{
|
|
739
743
|
title: z.ZodOptional<z.ZodString>;
|
|
740
744
|
description: z.ZodOptional<z.ZodString>;
|
|
745
|
+
inputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
741
746
|
ui: z.ZodOptional<z.ZodObject<{
|
|
742
747
|
schema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
743
748
|
helpUri: z.ZodOptional<z.ZodString>;
|
|
@@ -770,6 +775,7 @@ declare const ConnectorSpec: z.ZodObject<{
|
|
|
770
775
|
}, z.core.$strip>, z.ZodObject<{
|
|
771
776
|
title: z.ZodOptional<z.ZodString>;
|
|
772
777
|
description: z.ZodOptional<z.ZodString>;
|
|
778
|
+
inputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
773
779
|
ui: z.ZodOptional<z.ZodObject<{
|
|
774
780
|
schema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
775
781
|
helpUri: z.ZodOptional<z.ZodString>;
|
|
@@ -802,6 +808,7 @@ declare const ConnectorSpec: z.ZodObject<{
|
|
|
802
808
|
}, z.core.$strip>, z.ZodObject<{
|
|
803
809
|
title: z.ZodOptional<z.ZodString>;
|
|
804
810
|
description: z.ZodOptional<z.ZodString>;
|
|
811
|
+
inputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
805
812
|
ui: z.ZodOptional<z.ZodObject<{
|
|
806
813
|
schema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
807
814
|
helpUri: z.ZodOptional<z.ZodString>;
|
|
@@ -836,6 +843,7 @@ declare const ConnectorSpec: z.ZodObject<{
|
|
|
836
843
|
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
837
844
|
title: z.ZodOptional<z.ZodString>;
|
|
838
845
|
description: z.ZodOptional<z.ZodString>;
|
|
846
|
+
inputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
839
847
|
ui: z.ZodOptional<z.ZodObject<{
|
|
840
848
|
schema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
841
849
|
helpUri: z.ZodOptional<z.ZodString>;
|
|
@@ -1108,6 +1116,7 @@ declare const ConnectorSpec: z.ZodObject<{
|
|
|
1108
1116
|
}, z.core.$strip>, z.ZodObject<{
|
|
1109
1117
|
title: z.ZodOptional<z.ZodString>;
|
|
1110
1118
|
description: z.ZodOptional<z.ZodString>;
|
|
1119
|
+
inputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
1111
1120
|
ui: z.ZodOptional<z.ZodObject<{
|
|
1112
1121
|
schema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
1113
1122
|
helpUri: z.ZodOptional<z.ZodString>;
|
|
@@ -1188,6 +1197,7 @@ declare const ConnectorSpec: z.ZodObject<{
|
|
|
1188
1197
|
}, z.core.$strip>, z.ZodObject<{
|
|
1189
1198
|
title: z.ZodOptional<z.ZodString>;
|
|
1190
1199
|
description: z.ZodOptional<z.ZodString>;
|
|
1200
|
+
inputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
1191
1201
|
ui: z.ZodOptional<z.ZodObject<{
|
|
1192
1202
|
schema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
1193
1203
|
helpUri: z.ZodOptional<z.ZodString>;
|
|
@@ -1227,6 +1237,7 @@ declare const ConnectorSpec: z.ZodObject<{
|
|
|
1227
1237
|
}, z.core.$strip>, z.ZodObject<{
|
|
1228
1238
|
title: z.ZodOptional<z.ZodString>;
|
|
1229
1239
|
description: z.ZodOptional<z.ZodString>;
|
|
1240
|
+
inputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
1230
1241
|
ui: z.ZodOptional<z.ZodObject<{
|
|
1231
1242
|
schema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
1232
1243
|
helpUri: z.ZodOptional<z.ZodString>;
|
|
@@ -1259,6 +1270,7 @@ declare const ConnectorSpec: z.ZodObject<{
|
|
|
1259
1270
|
}, z.core.$strip>, z.ZodObject<{
|
|
1260
1271
|
title: z.ZodOptional<z.ZodString>;
|
|
1261
1272
|
description: z.ZodOptional<z.ZodString>;
|
|
1273
|
+
inputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
1262
1274
|
ui: z.ZodOptional<z.ZodObject<{
|
|
1263
1275
|
schema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
1264
1276
|
helpUri: z.ZodOptional<z.ZodString>;
|
|
@@ -1291,6 +1303,7 @@ declare const ConnectorSpec: z.ZodObject<{
|
|
|
1291
1303
|
}, z.core.$strip>, z.ZodObject<{
|
|
1292
1304
|
title: z.ZodOptional<z.ZodString>;
|
|
1293
1305
|
description: z.ZodOptional<z.ZodString>;
|
|
1306
|
+
inputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
1294
1307
|
ui: z.ZodOptional<z.ZodObject<{
|
|
1295
1308
|
schema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
1296
1309
|
helpUri: z.ZodOptional<z.ZodString>;
|
|
@@ -2084,7 +2097,9 @@ declare const DataSourceInstanceApiResponse: z.ZodObject<{
|
|
|
2084
2097
|
isDefunct: z.ZodOptional<z.ZodBoolean>;
|
|
2085
2098
|
state: z.ZodOptional<z.ZodEnum<typeof WorkspaceElementState>>;
|
|
2086
2099
|
error: z.ZodOptional<z.ZodType<ErrorDataSchema, unknown, z.core.$ZodTypeInternals<ErrorDataSchema, unknown>>>;
|
|
2087
|
-
integrationId: z.ZodString
|
|
2100
|
+
integrationId: z.ZodOptional<z.ZodString>;
|
|
2101
|
+
connectorId: z.ZodOptional<z.ZodString>;
|
|
2102
|
+
connectorVersion: z.ZodOptional<z.ZodString>;
|
|
2088
2103
|
authOptionKey: z.ZodOptional<z.ZodString>;
|
|
2089
2104
|
createdAt: z.ZodString;
|
|
2090
2105
|
updatedAt: z.ZodString;
|
|
@@ -2226,7 +2241,9 @@ declare const FlowRunApiResponse: z.ZodObject<{
|
|
|
2226
2241
|
isDefunct: z.ZodOptional<z.ZodBoolean>;
|
|
2227
2242
|
state: z.ZodOptional<z.ZodEnum<typeof WorkspaceElementState>>;
|
|
2228
2243
|
error: z.ZodOptional<z.ZodType<ErrorDataSchema, unknown, z.core.$ZodTypeInternals<ErrorDataSchema, unknown>>>;
|
|
2229
|
-
integrationId: z.ZodString
|
|
2244
|
+
integrationId: z.ZodOptional<z.ZodString>;
|
|
2245
|
+
connectorId: z.ZodOptional<z.ZodString>;
|
|
2246
|
+
connectorVersion: z.ZodOptional<z.ZodString>;
|
|
2230
2247
|
authOptionKey: z.ZodOptional<z.ZodString>;
|
|
2231
2248
|
createdAt: z.ZodString;
|
|
2232
2249
|
updatedAt: z.ZodString;
|
|
@@ -2357,7 +2374,9 @@ declare const FindFlowRunsResponse: z.ZodObject<{
|
|
|
2357
2374
|
isDefunct: z.ZodOptional<z.ZodBoolean>;
|
|
2358
2375
|
state: z.ZodOptional<z.ZodEnum<typeof WorkspaceElementState>>;
|
|
2359
2376
|
error: z.ZodOptional<z.ZodType<ErrorDataSchema, unknown, z.core.$ZodTypeInternals<ErrorDataSchema, unknown>>>;
|
|
2360
|
-
integrationId: z.ZodString
|
|
2377
|
+
integrationId: z.ZodOptional<z.ZodString>;
|
|
2378
|
+
connectorId: z.ZodOptional<z.ZodString>;
|
|
2379
|
+
connectorVersion: z.ZodOptional<z.ZodString>;
|
|
2361
2380
|
authOptionKey: z.ZodOptional<z.ZodString>;
|
|
2362
2381
|
createdAt: z.ZodString;
|
|
2363
2382
|
updatedAt: z.ZodString;
|
|
@@ -2821,7 +2840,6 @@ declare const FlowInstanceApiResponse: z.ZodObject<{
|
|
|
2821
2840
|
id: string;
|
|
2822
2841
|
name: string;
|
|
2823
2842
|
userId: string;
|
|
2824
|
-
integrationId: string;
|
|
2825
2843
|
createdAt: string;
|
|
2826
2844
|
updatedAt: string;
|
|
2827
2845
|
isTest?: boolean | undefined;
|
|
@@ -2829,6 +2847,9 @@ declare const FlowInstanceApiResponse: z.ZodObject<{
|
|
|
2829
2847
|
isDefunct?: boolean | undefined;
|
|
2830
2848
|
state?: WorkspaceElementState | undefined;
|
|
2831
2849
|
error?: ErrorDataSchema | undefined;
|
|
2850
|
+
integrationId?: string | undefined;
|
|
2851
|
+
connectorId?: string | undefined;
|
|
2852
|
+
connectorVersion?: string | undefined;
|
|
2832
2853
|
authOptionKey?: string | undefined;
|
|
2833
2854
|
lastActiveAt?: string | undefined;
|
|
2834
2855
|
nextCredentialsRefreshAt?: string | undefined;
|
|
@@ -2841,7 +2862,6 @@ declare const FlowInstanceApiResponse: z.ZodObject<{
|
|
|
2841
2862
|
id: string;
|
|
2842
2863
|
name: string;
|
|
2843
2864
|
userId: string;
|
|
2844
|
-
integrationId: string;
|
|
2845
2865
|
createdAt: string;
|
|
2846
2866
|
updatedAt: string;
|
|
2847
2867
|
isTest?: boolean | undefined;
|
|
@@ -2849,6 +2869,9 @@ declare const FlowInstanceApiResponse: z.ZodObject<{
|
|
|
2849
2869
|
isDefunct?: boolean | undefined;
|
|
2850
2870
|
state?: WorkspaceElementState | undefined;
|
|
2851
2871
|
error?: ErrorDataSchema | undefined;
|
|
2872
|
+
integrationId?: string | undefined;
|
|
2873
|
+
connectorId?: string | undefined;
|
|
2874
|
+
connectorVersion?: string | undefined;
|
|
2852
2875
|
authOptionKey?: string | undefined;
|
|
2853
2876
|
lastActiveAt?: string | undefined;
|
|
2854
2877
|
nextCredentialsRefreshAt?: string | undefined;
|
|
@@ -3378,7 +3401,6 @@ declare const CreateIntegrationRequest: z.ZodObject<{
|
|
|
3378
3401
|
name: z.ZodOptional<z.ZodString>;
|
|
3379
3402
|
description: z.ZodOptional<z.ZodString>;
|
|
3380
3403
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
3381
|
-
baseUri: z.ZodOptional<z.ZodString>;
|
|
3382
3404
|
logoUri: z.ZodOptional<z.ZodString>;
|
|
3383
3405
|
appUuid: z.ZodOptional<z.ZodString>;
|
|
3384
3406
|
oAuthCallbackUri: z.ZodOptional<z.ZodUnion<[z.ZodURL, z.ZodLiteral<"">]>>;
|
|
@@ -3394,7 +3416,6 @@ declare const UpdateIntegrationRequest: z.ZodObject<{
|
|
|
3394
3416
|
name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
3395
3417
|
description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
3396
3418
|
meta: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
3397
|
-
baseUri: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
3398
3419
|
logoUri: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
3399
3420
|
appUuid: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
3400
3421
|
oAuthCallbackUri: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodURL, z.ZodLiteral<"">]>>>;
|
|
@@ -3463,7 +3484,9 @@ declare const IntegrationApiResponse: z.ZodObject<{
|
|
|
3463
3484
|
isDefunct: z.ZodOptional<z.ZodBoolean>;
|
|
3464
3485
|
state: z.ZodOptional<z.ZodEnum<typeof WorkspaceElementState>>;
|
|
3465
3486
|
error: z.ZodOptional<z.ZodType<ErrorDataSchema, unknown, z.core.$ZodTypeInternals<ErrorDataSchema, unknown>>>;
|
|
3466
|
-
integrationId: z.ZodString
|
|
3487
|
+
integrationId: z.ZodOptional<z.ZodString>;
|
|
3488
|
+
connectorId: z.ZodOptional<z.ZodString>;
|
|
3489
|
+
connectorVersion: z.ZodOptional<z.ZodString>;
|
|
3467
3490
|
authOptionKey: z.ZodOptional<z.ZodString>;
|
|
3468
3491
|
createdAt: z.ZodString;
|
|
3469
3492
|
updatedAt: z.ZodString;
|
|
@@ -3488,15 +3511,14 @@ declare const IntegrationApiResponse: z.ZodObject<{
|
|
|
3488
3511
|
}>;
|
|
3489
3512
|
title: z.ZodOptional<z.ZodString>;
|
|
3490
3513
|
description: z.ZodOptional<z.ZodString>;
|
|
3514
|
+
inputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
3491
3515
|
ui: z.ZodOptional<z.ZodObject<{
|
|
3492
3516
|
schema: z.ZodOptional<z.ZodAny>;
|
|
3493
3517
|
helpUri: z.ZodOptional<z.ZodString>;
|
|
3494
3518
|
}, z.core.$strip>>;
|
|
3495
3519
|
}, z.core.$strip>>>;
|
|
3496
|
-
parametersSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
3497
3520
|
}, z.core.$strip>;
|
|
3498
3521
|
type IntegrationApiResponse = z.infer<typeof IntegrationApiResponse>;
|
|
3499
|
-
type Integration = IntegrationApiResponse;
|
|
3500
3522
|
|
|
3501
3523
|
declare const FindPackagesQuery: z.ZodObject<{
|
|
3502
3524
|
layer: z.ZodOptional<z.ZodEnum<{
|
|
@@ -3541,6 +3563,7 @@ declare const PackageApiResponse: z.ZodObject<{
|
|
|
3541
3563
|
key: z.ZodString;
|
|
3542
3564
|
name: z.ZodString;
|
|
3543
3565
|
isCustomized: z.ZodOptional<z.ZodBoolean>;
|
|
3566
|
+
isPublic: z.ZodOptional<z.ZodBoolean>;
|
|
3544
3567
|
elements: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3545
3568
|
id: z.ZodString;
|
|
3546
3569
|
type: z.ZodEnum<typeof WorkspaceElementType>;
|
|
@@ -3578,6 +3601,7 @@ declare const PackageApiResponse: z.ZodObject<{
|
|
|
3578
3601
|
key: z.ZodString;
|
|
3579
3602
|
name: z.ZodString;
|
|
3580
3603
|
isCustomized: z.ZodOptional<z.ZodBoolean>;
|
|
3604
|
+
isPublic: z.ZodOptional<z.ZodBoolean>;
|
|
3581
3605
|
}, z.core.$strip>;
|
|
3582
3606
|
integration: z.ZodObject<{
|
|
3583
3607
|
id: z.ZodString;
|
|
@@ -4006,7 +4030,9 @@ declare const FieldMappingInstanceApiResponse: z.ZodObject<{
|
|
|
4006
4030
|
isDefunct: z.ZodOptional<z.ZodBoolean>;
|
|
4007
4031
|
state: z.ZodOptional<z.ZodEnum<typeof WorkspaceElementState>>;
|
|
4008
4032
|
error: z.ZodOptional<z.ZodType<ErrorDataSchema, unknown, z.core.$ZodTypeInternals<ErrorDataSchema, unknown>>>;
|
|
4009
|
-
integrationId: z.ZodString
|
|
4033
|
+
integrationId: z.ZodOptional<z.ZodString>;
|
|
4034
|
+
connectorId: z.ZodOptional<z.ZodString>;
|
|
4035
|
+
connectorVersion: z.ZodOptional<z.ZodString>;
|
|
4010
4036
|
authOptionKey: z.ZodOptional<z.ZodString>;
|
|
4011
4037
|
createdAt: z.ZodString;
|
|
4012
4038
|
updatedAt: z.ZodString;
|
|
@@ -4282,7 +4308,9 @@ declare const FieldMappingInstanceApiResponse: z.ZodObject<{
|
|
|
4282
4308
|
isDefunct: z.ZodOptional<z.ZodBoolean>;
|
|
4283
4309
|
state: z.ZodOptional<z.ZodEnum<typeof WorkspaceElementState>>;
|
|
4284
4310
|
error: z.ZodOptional<z.ZodType<ErrorDataSchema, unknown, z.core.$ZodTypeInternals<ErrorDataSchema, unknown>>>;
|
|
4285
|
-
integrationId: z.ZodString
|
|
4311
|
+
integrationId: z.ZodOptional<z.ZodString>;
|
|
4312
|
+
connectorId: z.ZodOptional<z.ZodString>;
|
|
4313
|
+
connectorVersion: z.ZodOptional<z.ZodString>;
|
|
4286
4314
|
authOptionKey: z.ZodOptional<z.ZodString>;
|
|
4287
4315
|
createdAt: z.ZodString;
|
|
4288
4316
|
updatedAt: z.ZodString;
|
|
@@ -4454,7 +4482,9 @@ declare const DataLinkTableInstanceApiResponse: z.ZodObject<{
|
|
|
4454
4482
|
isDefunct: z.ZodOptional<z.ZodBoolean>;
|
|
4455
4483
|
state: z.ZodOptional<z.ZodEnum<typeof WorkspaceElementState>>;
|
|
4456
4484
|
error: z.ZodOptional<z.ZodType<ErrorDataSchema, unknown, z.core.$ZodTypeInternals<ErrorDataSchema, unknown>>>;
|
|
4457
|
-
integrationId: z.ZodString
|
|
4485
|
+
integrationId: z.ZodOptional<z.ZodString>;
|
|
4486
|
+
connectorId: z.ZodOptional<z.ZodString>;
|
|
4487
|
+
connectorVersion: z.ZodOptional<z.ZodString>;
|
|
4458
4488
|
authOptionKey: z.ZodOptional<z.ZodString>;
|
|
4459
4489
|
createdAt: z.ZodString;
|
|
4460
4490
|
updatedAt: z.ZodString;
|
|
@@ -4782,7 +4812,9 @@ declare const ExternalEventSubscriptionApiResponse: z.ZodObject<{
|
|
|
4782
4812
|
isDefunct: z.ZodOptional<z.ZodBoolean>;
|
|
4783
4813
|
state: z.ZodOptional<z.ZodEnum<typeof WorkspaceElementState>>;
|
|
4784
4814
|
error: z.ZodOptional<z.ZodType<ErrorDataSchema, unknown, z.core.$ZodTypeInternals<ErrorDataSchema, unknown>>>;
|
|
4785
|
-
integrationId: z.ZodString
|
|
4815
|
+
integrationId: z.ZodOptional<z.ZodString>;
|
|
4816
|
+
connectorId: z.ZodOptional<z.ZodString>;
|
|
4817
|
+
connectorVersion: z.ZodOptional<z.ZodString>;
|
|
4786
4818
|
authOptionKey: z.ZodOptional<z.ZodString>;
|
|
4787
4819
|
createdAt: z.ZodString;
|
|
4788
4820
|
updatedAt: z.ZodString;
|
|
@@ -4844,6 +4876,7 @@ declare const FindConnectionsQuery: z.ZodObject<{
|
|
|
4844
4876
|
search: z.ZodOptional<z.ZodString>;
|
|
4845
4877
|
includeArchived: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
|
|
4846
4878
|
connectorId: z.ZodOptional<z.ZodString>;
|
|
4879
|
+
connectorVersion: z.ZodOptional<z.ZodString>;
|
|
4847
4880
|
id: z.ZodOptional<z.ZodString>;
|
|
4848
4881
|
userId: z.ZodOptional<z.ZodString>;
|
|
4849
4882
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -4882,7 +4915,9 @@ declare const ConnectionApiResponse: z.ZodObject<{
|
|
|
4882
4915
|
isDefunct: z.ZodOptional<z.ZodBoolean>;
|
|
4883
4916
|
state: z.ZodOptional<z.ZodEnum<typeof WorkspaceElementState>>;
|
|
4884
4917
|
error: z.ZodOptional<z.ZodType<ErrorDataSchema, unknown, z.core.$ZodTypeInternals<ErrorDataSchema, unknown>>>;
|
|
4885
|
-
integrationId: z.ZodString
|
|
4918
|
+
integrationId: z.ZodOptional<z.ZodString>;
|
|
4919
|
+
connectorId: z.ZodOptional<z.ZodString>;
|
|
4920
|
+
connectorVersion: z.ZodOptional<z.ZodString>;
|
|
4886
4921
|
authOptionKey: z.ZodOptional<z.ZodString>;
|
|
4887
4922
|
createdAt: z.ZodString;
|
|
4888
4923
|
updatedAt: z.ZodString;
|
|
@@ -4948,7 +4983,6 @@ declare const ConnectionApiResponse: z.ZodObject<{
|
|
|
4948
4983
|
}, z.core.$strip>>;
|
|
4949
4984
|
}, z.core.$strip>;
|
|
4950
4985
|
type ConnectionApiResponse = z.infer<typeof ConnectionApiResponse>;
|
|
4951
|
-
type Connection = ConnectionApiResponse;
|
|
4952
4986
|
|
|
4953
4987
|
declare const ActionApiResponse: z.ZodObject<{
|
|
4954
4988
|
id: z.ZodString;
|
|
@@ -5621,9 +5655,9 @@ declare class ConnectionLevelFlowsAccessor extends ConnectionLevelElementsListAc
|
|
|
5621
5655
|
constructor(client: MembraneApiClient, connectionSelector: string);
|
|
5622
5656
|
}
|
|
5623
5657
|
|
|
5624
|
-
declare class ConnectionsAccessor extends ElementInstanceListAccessor<
|
|
5658
|
+
declare class ConnectionsAccessor extends ElementInstanceListAccessor<ConnectionApiResponse, FindConnectionsQuery> {
|
|
5625
5659
|
constructor(client: MembraneApiClient);
|
|
5626
|
-
create(data: CreateConnectionRequest): Promise<
|
|
5660
|
+
create(data: CreateConnectionRequest): Promise<ConnectionApiResponse>;
|
|
5627
5661
|
}
|
|
5628
5662
|
declare class ConnectionAccessor {
|
|
5629
5663
|
client: MembraneApiClient;
|
|
@@ -5639,23 +5673,23 @@ declare class ConnectionAccessor {
|
|
|
5639
5673
|
fieldMapping(fieldMappingSelector: string, query?: InstanceKeyQuery): ConnectionLevelFieldMappingAccessor;
|
|
5640
5674
|
get(query?: {
|
|
5641
5675
|
includeSecrets?: boolean;
|
|
5642
|
-
}): Promise<
|
|
5643
|
-
patch(data: UpdateConnectionRequest): Promise<
|
|
5644
|
-
put(data: UpdateConnectionRequest): Promise<
|
|
5676
|
+
}): Promise<ConnectionApiResponse>;
|
|
5677
|
+
patch(data: UpdateConnectionRequest): Promise<ConnectionApiResponse>;
|
|
5678
|
+
put(data: UpdateConnectionRequest): Promise<ConnectionApiResponse>;
|
|
5645
5679
|
archive(): Promise<void>;
|
|
5646
5680
|
request(path: string, data?: any): Promise<any>;
|
|
5647
5681
|
get proxy(): ConnectionProxy;
|
|
5648
5682
|
operation(key: string): ConnectionOperationAccessor;
|
|
5649
5683
|
dataCollection(key: string, parameters?: Record<string, any>): ConnectionDataCollectionAccessor;
|
|
5650
|
-
reconnect({ parameters, authOptionKey, connectorParameters, }?: {
|
|
5684
|
+
reconnect({ parameters, authOptionKey, connectorParameters, onPopupClosed, }?: {
|
|
5651
5685
|
parameters?: any;
|
|
5652
5686
|
authOptionKey?: string;
|
|
5653
5687
|
connectorParameters?: any;
|
|
5688
|
+
onPopupClosed?: () => void;
|
|
5654
5689
|
}): Promise<{
|
|
5655
5690
|
id: string;
|
|
5656
5691
|
name: string;
|
|
5657
5692
|
userId: string;
|
|
5658
|
-
integrationId: string;
|
|
5659
5693
|
createdAt: string;
|
|
5660
5694
|
updatedAt: string;
|
|
5661
5695
|
isTest?: boolean | undefined;
|
|
@@ -5663,6 +5697,9 @@ declare class ConnectionAccessor {
|
|
|
5663
5697
|
isDefunct?: boolean | undefined;
|
|
5664
5698
|
state?: WorkspaceElementState | undefined;
|
|
5665
5699
|
error?: ErrorDataSchema | undefined;
|
|
5700
|
+
integrationId?: string | undefined;
|
|
5701
|
+
connectorId?: string | undefined;
|
|
5702
|
+
connectorVersion?: string | undefined;
|
|
5666
5703
|
authOptionKey?: string | undefined;
|
|
5667
5704
|
lastActiveAt?: string | undefined;
|
|
5668
5705
|
nextCredentialsRefreshAt?: string | undefined;
|
|
@@ -5717,8 +5754,8 @@ declare class ConnectionAccessor {
|
|
|
5717
5754
|
isDeactivated?: boolean | undefined;
|
|
5718
5755
|
authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
|
|
5719
5756
|
} | undefined;
|
|
5720
|
-
} |
|
|
5721
|
-
openReconnectUI({}?: OpenConfigurationOptions): Promise<
|
|
5757
|
+
} | null>;
|
|
5758
|
+
openReconnectUI({}?: OpenConfigurationOptions): Promise<ConnectionApiResponse | null>;
|
|
5722
5759
|
refreshCredentials(): Promise<void>;
|
|
5723
5760
|
getPath(subpath?: string, query?: Record<string, any>): string;
|
|
5724
5761
|
}
|
|
@@ -5829,10 +5866,10 @@ declare class IntegrationLevelFieldMappingsListAccessor extends IntegrationLevel
|
|
|
5829
5866
|
|
|
5830
5867
|
interface OpenIntegrationUIIntegrationConfigurationOptions extends OpenConfigurationOptions {
|
|
5831
5868
|
}
|
|
5832
|
-
declare class IntegrationsAccessor extends ElementListAccessor<
|
|
5869
|
+
declare class IntegrationsAccessor extends ElementListAccessor<IntegrationApiResponse, FindIntegrationsQuery, CreateIntegrationRequest> {
|
|
5833
5870
|
constructor(client: MembraneApiClient);
|
|
5834
5871
|
}
|
|
5835
|
-
declare class IntegrationAccessor extends ElementAccessor<
|
|
5872
|
+
declare class IntegrationAccessor extends ElementAccessor<IntegrationApiResponse, UpdateIntegrationRequest> {
|
|
5836
5873
|
private client;
|
|
5837
5874
|
private integrationSelector;
|
|
5838
5875
|
baseUri: string;
|
|
@@ -5845,16 +5882,18 @@ declare class IntegrationAccessor extends ElementAccessor<Integration, UpdateInt
|
|
|
5845
5882
|
dataSource(dataSourceSelector: string): IntegrationLevelDataSourceAccessor;
|
|
5846
5883
|
get fieldMappings(): IntegrationLevelFieldMappingsListAccessor;
|
|
5847
5884
|
fieldMapping(fieldMappingSelector: string): IntegrationLevelFieldMappingAccessor;
|
|
5848
|
-
setup(): Promise<
|
|
5885
|
+
setup(): Promise<IntegrationApiResponse>;
|
|
5849
5886
|
getConnectorSpec(): Promise<ConnectionSpec>;
|
|
5850
5887
|
open({ onClose }?: OpenIntegrationUIIntegrationConfigurationOptions): Promise<void>;
|
|
5851
|
-
openNewConnection({ allowMultipleConnections, name, connectorParameters, }?: OpenNewConnectionOptions): Promise<
|
|
5852
|
-
connect({ name, parameters, connectorParameters, authOptionKey, allowMultipleConnections, redirectUri, sameWindow, }?: {
|
|
5888
|
+
openNewConnection({ allowMultipleConnections, name, connectorParameters, }?: OpenNewConnectionOptions): Promise<ConnectionApiResponse | null>;
|
|
5889
|
+
connect({ name, input, parameters, connectorParameters, authOptionKey, allowMultipleConnections, redirectUri, sameWindow, onPopupClosed, }?: {
|
|
5853
5890
|
name?: string;
|
|
5891
|
+
input?: any;
|
|
5854
5892
|
parameters?: any;
|
|
5855
5893
|
connectorParameters?: any;
|
|
5856
5894
|
authOptionKey?: string;
|
|
5857
5895
|
allowMultipleConnections?: boolean;
|
|
5896
|
+
onPopupClosed?: () => void;
|
|
5858
5897
|
} & ({
|
|
5859
5898
|
sameWindow: true;
|
|
5860
5899
|
redirectUri: string;
|
|
@@ -5865,7 +5904,6 @@ declare class IntegrationAccessor extends ElementAccessor<Integration, UpdateInt
|
|
|
5865
5904
|
id: string;
|
|
5866
5905
|
name: string;
|
|
5867
5906
|
userId: string;
|
|
5868
|
-
integrationId: string;
|
|
5869
5907
|
createdAt: string;
|
|
5870
5908
|
updatedAt: string;
|
|
5871
5909
|
isTest?: boolean | undefined;
|
|
@@ -5873,6 +5911,9 @@ declare class IntegrationAccessor extends ElementAccessor<Integration, UpdateInt
|
|
|
5873
5911
|
isDefunct?: boolean | undefined;
|
|
5874
5912
|
state?: WorkspaceElementState | undefined;
|
|
5875
5913
|
error?: ErrorDataSchema | undefined;
|
|
5914
|
+
integrationId?: string | undefined;
|
|
5915
|
+
connectorId?: string | undefined;
|
|
5916
|
+
connectorVersion?: string | undefined;
|
|
5876
5917
|
authOptionKey?: string | undefined;
|
|
5877
5918
|
lastActiveAt?: string | undefined;
|
|
5878
5919
|
nextCredentialsRefreshAt?: string | undefined;
|
|
@@ -5927,11 +5968,11 @@ declare class IntegrationAccessor extends ElementAccessor<Integration, UpdateInt
|
|
|
5927
5968
|
isDeactivated?: boolean | undefined;
|
|
5928
5969
|
authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
|
|
5929
5970
|
} | undefined;
|
|
5930
|
-
} |
|
|
5931
|
-
createConnection({ parameters, name }: {
|
|
5971
|
+
} | null>;
|
|
5972
|
+
createConnection({ parameters, name, }: {
|
|
5932
5973
|
parameters?: any;
|
|
5933
5974
|
name?: string;
|
|
5934
|
-
}): Promise<
|
|
5975
|
+
}): Promise<ConnectionApiResponse | null>;
|
|
5935
5976
|
getOperations(): Promise<OperationListItem[]>;
|
|
5936
5977
|
getOperation(key: string): Promise<OperationSpec>;
|
|
5937
5978
|
getDataCollections(): Promise<DataCollectionListItem[]>;
|
package/dist/bundle.js
CHANGED
|
@@ -20048,6 +20048,7 @@
|
|
|
20048
20048
|
WorkspaceEventType["FlowRunCompleted"] = "flowRun.completed";
|
|
20049
20049
|
WorkspaceEventType["FlowRunFailed"] = "flowRun.failed";
|
|
20050
20050
|
WorkspaceEventType["FlowRunStopped"] = "flowRun.stopped";
|
|
20051
|
+
WorkspaceEventType["AlertCreated"] = "alert.created";
|
|
20051
20052
|
})(WorkspaceEventType || (WorkspaceEventType = {}));
|
|
20052
20053
|
var WorkspaceElementState;
|
|
20053
20054
|
(function (WorkspaceElementState) {
|
|
@@ -20098,8 +20099,9 @@
|
|
|
20098
20099
|
parentUuid: string$1().optional(),
|
|
20099
20100
|
isCustomized: boolean$1().optional(),
|
|
20100
20101
|
});
|
|
20102
|
+
const MembraneElementLayer = _enum(['universal', 'integration', 'connection']);
|
|
20101
20103
|
const IntegrationLevelMembraneInterfaceSelectorQuery = object({
|
|
20102
|
-
layer:
|
|
20104
|
+
layer: MembraneElementLayer.optional(),
|
|
20103
20105
|
integrationKey: string$1().optional(),
|
|
20104
20106
|
integrationId: string$1().optional(),
|
|
20105
20107
|
connectionId: string$1().optional(),
|
|
@@ -20119,8 +20121,7 @@
|
|
|
20119
20121
|
});
|
|
20120
20122
|
object({
|
|
20121
20123
|
elementType: _enum(WorkspaceElementType),
|
|
20122
|
-
|
|
20123
|
-
name: string$1(),
|
|
20124
|
+
element: any(),
|
|
20124
20125
|
});
|
|
20125
20126
|
|
|
20126
20127
|
const MAX_POLLING_ERRORS = 10;
|
|
@@ -20393,17 +20394,18 @@
|
|
|
20393
20394
|
dataCollection(key, parameters) {
|
|
20394
20395
|
return new ConnectionDataCollectionAccessor(this.client, this, key, parameters);
|
|
20395
20396
|
}
|
|
20396
|
-
async reconnect({ parameters, authOptionKey, connectorParameters, } = {}) {
|
|
20397
|
+
async reconnect({ parameters, authOptionKey, connectorParameters, onPopupClosed, } = {}) {
|
|
20397
20398
|
const connection = await this.get();
|
|
20398
20399
|
const connectorSpec = await this.client.get(`/integrations/${connection.integrationId}/connector-spec`);
|
|
20399
20400
|
return createOrUpdateConnection({
|
|
20400
20401
|
connectionId: connection.id,
|
|
20401
20402
|
connectorSpec,
|
|
20402
|
-
parameters,
|
|
20403
|
+
input: parameters,
|
|
20403
20404
|
authOptionKey,
|
|
20404
20405
|
connectorParameters,
|
|
20405
20406
|
apiUri: this.client.apiUri,
|
|
20406
20407
|
token: await this.client.getToken(),
|
|
20408
|
+
onPopupClosed,
|
|
20407
20409
|
});
|
|
20408
20410
|
}
|
|
20409
20411
|
async openReconnectUI({} = {}) {
|
|
@@ -20492,21 +20494,31 @@
|
|
|
20492
20494
|
}
|
|
20493
20495
|
}
|
|
20494
20496
|
async function createOrUpdateConnection(options) {
|
|
20495
|
-
const { connectionId, integrationId, name,
|
|
20497
|
+
const { connectionId, integrationId, connectorId, connectorVersion, name, input, connectorParameters, allowMultipleConnections, authOptionKey, connectorSpec, apiUri, token, redirectUri, onPopupClosed, } = options !== null && options !== void 0 ? options : {};
|
|
20496
20498
|
const connectionType = getConnectionType({
|
|
20497
20499
|
connectorSpec,
|
|
20498
20500
|
authOptionKey,
|
|
20499
20501
|
redirectUri,
|
|
20500
20502
|
});
|
|
20501
|
-
|
|
20502
|
-
|
|
20503
|
-
|
|
20503
|
+
let popupPath;
|
|
20504
|
+
if (connectionId) {
|
|
20505
|
+
popupPath = `connection-popup?connectionId=${connectionId}`;
|
|
20506
|
+
}
|
|
20507
|
+
else if (connectorId) {
|
|
20508
|
+
const versionParam = connectorVersion ? `&connectorVersion=${connectorVersion}` : '';
|
|
20509
|
+
popupPath = `connection-popup?connectorId=${connectorId}${versionParam}`;
|
|
20510
|
+
}
|
|
20511
|
+
else {
|
|
20512
|
+
popupPath = `connection-popup?integrationId=${integrationId}`;
|
|
20513
|
+
}
|
|
20504
20514
|
return new Promise((resolve, reject) => {
|
|
20505
20515
|
const requestId = simpleUniqueId() + simpleUniqueId();
|
|
20506
20516
|
const payload = {
|
|
20507
20517
|
token,
|
|
20508
|
-
|
|
20518
|
+
input,
|
|
20509
20519
|
connectorParameters,
|
|
20520
|
+
connectorId,
|
|
20521
|
+
connectorVersion,
|
|
20510
20522
|
name,
|
|
20511
20523
|
authOptionKey,
|
|
20512
20524
|
allowMultipleConnections,
|
|
@@ -20552,10 +20564,10 @@
|
|
|
20552
20564
|
iframeElement.id = targetElementId;
|
|
20553
20565
|
iframeElement.name = targetElementId;
|
|
20554
20566
|
iframeElement.style.position = 'absolute';
|
|
20555
|
-
iframeElement.style.top = '-
|
|
20556
|
-
iframeElement.style.left = '-
|
|
20557
|
-
iframeElement.style.width = '
|
|
20558
|
-
iframeElement.style.height = '
|
|
20567
|
+
iframeElement.style.top = '-100px';
|
|
20568
|
+
iframeElement.style.left = '-100px';
|
|
20569
|
+
iframeElement.style.width = '1px';
|
|
20570
|
+
iframeElement.style.height = '1px';
|
|
20559
20571
|
iframeElement.style.border = 'none';
|
|
20560
20572
|
iframeElement.style.backgroundColor = 'transparent';
|
|
20561
20573
|
document.body.appendChild(iframeElement);
|
|
@@ -20589,6 +20601,7 @@
|
|
|
20589
20601
|
cancelCheckInterval = setInterval(() => {
|
|
20590
20602
|
if (popup === null || popup === void 0 ? void 0 : popup.closed) {
|
|
20591
20603
|
cleanup();
|
|
20604
|
+
onPopupClosed === null || onPopupClosed === void 0 ? void 0 : onPopupClosed();
|
|
20592
20605
|
resolve(null);
|
|
20593
20606
|
}
|
|
20594
20607
|
}, 1000);
|
|
@@ -20620,6 +20633,9 @@
|
|
|
20620
20633
|
}
|
|
20621
20634
|
if (message.type == 'newConnectionFailure') {
|
|
20622
20635
|
const error = new MembraneError((_a = message.errorData) !== null && _a !== void 0 ? _a : message.error);
|
|
20636
|
+
if (message.connectionId) {
|
|
20637
|
+
error.data.data = { ...error.data.data, connectionId: message.connectionId };
|
|
20638
|
+
}
|
|
20623
20639
|
onReject(error);
|
|
20624
20640
|
}
|
|
20625
20641
|
onFinally();
|
|
@@ -20799,23 +20815,24 @@
|
|
|
20799
20815
|
});
|
|
20800
20816
|
});
|
|
20801
20817
|
}
|
|
20802
|
-
async connect({ name, parameters, connectorParameters, authOptionKey, allowMultipleConnections, redirectUri, sameWindow, } = {}) {
|
|
20818
|
+
async connect({ name, input, parameters, connectorParameters, authOptionKey, allowMultipleConnections, redirectUri, sameWindow, onPopupClosed, } = {}) {
|
|
20803
20819
|
const integration = await this.get();
|
|
20804
20820
|
const connectorSpec = await this.getConnectorSpec();
|
|
20805
20821
|
return createOrUpdateConnection({
|
|
20806
20822
|
integrationId: integration.id,
|
|
20807
20823
|
connectorSpec,
|
|
20808
20824
|
name,
|
|
20809
|
-
parameters,
|
|
20825
|
+
input: input !== null && input !== void 0 ? input : parameters,
|
|
20810
20826
|
connectorParameters,
|
|
20811
20827
|
authOptionKey,
|
|
20812
20828
|
allowMultipleConnections,
|
|
20813
20829
|
apiUri: this.client.apiUri,
|
|
20814
20830
|
token: await this.client.getToken(),
|
|
20815
20831
|
redirectUri: sameWindow ? redirectUri : undefined,
|
|
20832
|
+
onPopupClosed,
|
|
20816
20833
|
});
|
|
20817
20834
|
}
|
|
20818
|
-
async createConnection({ parameters, name }) {
|
|
20835
|
+
async createConnection({ parameters, name, }) {
|
|
20819
20836
|
return this.connect({ parameters, name });
|
|
20820
20837
|
}
|
|
20821
20838
|
async getOperations() {
|