@membranehq/sdk 0.4.0 → 0.5.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/dist/bundle.d.ts +16299 -1303
- package/dist/bundle.js +3980 -3701
- package/dist/bundle.js.map +1 -1
- package/dist/dts/accessors/connections-accessors.d.ts +78 -1
- package/dist/dts/accessors/integrations-accessors.d.ts +78 -1
- package/dist/dts/api-client.d.ts +1 -0
- package/dist/dts/client.d.ts +1 -0
- package/dist/dts/data-schema/index.d.ts +0 -1
- package/dist/dts/data-schema/types.d.ts +4 -3
- package/dist/dts/entity-repository.d.ts +88 -20
- package/dist/dts/formulas/dataSchemaRef.d.ts +2 -2
- package/dist/dts/http-requests.d.ts +20 -6
- package/dist/dts/iframe.d.ts +12 -4
- package/dist/dts/index.d.ts +2 -1
- package/dist/dts/sse/index.d.ts +1 -0
- package/dist/dts/sse/workspace-elements.d.ts +9 -0
- package/dist/dts/workspace-elements/api/action-instances-api.d.ts +269 -8
- package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +529 -10
- package/dist/dts/workspace-elements/api/actions-api.d.ts +1010 -45
- package/dist/dts/workspace-elements/api/app-data-schema-instances-api.d.ts +203 -8
- package/dist/dts/workspace-elements/api/app-data-schemas-api.d.ts +49 -3
- package/dist/dts/workspace-elements/api/app-event-log-records-api.d.ts +376 -0
- package/dist/dts/workspace-elements/api/app-event-subscriptions-api.d.ts +293 -8
- package/dist/dts/workspace-elements/api/app-event-types-api.d.ts +88 -3
- package/dist/dts/workspace-elements/api/connections-api.d.ts +993 -42
- package/dist/dts/workspace-elements/api/customers-api.d.ts +92 -16
- package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +541 -12
- package/dist/dts/workspace-elements/api/data-link-tables-api.d.ts +43 -2
- package/dist/dts/workspace-elements/api/data-source-instances-api.d.ts +1590 -12
- package/dist/dts/workspace-elements/api/data-sources-api.d.ts +1113 -78
- package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +696 -19
- package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +702 -19
- package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +559 -10
- package/dist/dts/workspace-elements/api/external-events-api.d.ts +582 -6
- package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +2786 -14
- package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +885 -7
- package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +1652 -47
- package/dist/dts/workspace-elements/api/flows-api.d.ts +3202 -52
- package/dist/dts/workspace-elements/api/index.d.ts +1 -1
- package/dist/dts/workspace-elements/api/integrations-api.d.ts +339 -26
- package/dist/dts/workspace-elements/api/scenarios-api.d.ts +523 -35
- package/dist/dts/workspace-elements/api/screens-api.d.ts +35 -15
- package/dist/dts/workspace-elements/base/action-instances/types.d.ts +78 -15
- package/dist/dts/workspace-elements/base/action-run-log-records/types.d.ts +37 -12
- package/dist/dts/workspace-elements/base/actions/types.d.ts +78 -18
- package/dist/dts/workspace-elements/base/app-data-schema-instances/types.d.ts +59 -7
- package/dist/dts/workspace-elements/base/app-data-schemas/types.d.ts +49 -7
- package/dist/dts/workspace-elements/base/app-event-subscriptions/types.d.ts +92 -9
- package/dist/dts/workspace-elements/base/app-event-types/types.d.ts +84 -7
- package/dist/dts/workspace-elements/base/connections/types.d.ts +82 -20
- package/dist/dts/workspace-elements/base/connectors/types.d.ts +14 -2
- package/dist/dts/workspace-elements/base/customers/index.d.ts +32 -6
- package/dist/dts/workspace-elements/base/data-collections/schemas.d.ts +93 -92
- package/dist/dts/workspace-elements/base/data-link-table-instances/types.d.ts +78 -11
- package/dist/dts/workspace-elements/base/data-link-tables/types.d.ts +43 -4
- package/dist/dts/workspace-elements/base/data-source-instances/types.d.ts +1048 -19
- package/dist/dts/workspace-elements/base/data-sources/types.d.ts +97 -22
- package/dist/dts/workspace-elements/base/external-event-log-records/types.d.ts +31 -8
- package/dist/dts/workspace-elements/base/external-event-pulls/types.d.ts +35 -8
- package/dist/dts/workspace-elements/base/external-event-subscriptions/types.d.ts +197 -24
- package/dist/dts/workspace-elements/base/external-events/types.d.ts +145 -5
- package/dist/dts/workspace-elements/base/field-mapping-instances/types.d.ts +92 -16
- package/dist/dts/workspace-elements/base/field-mappings/types.d.ts +105 -14
- package/dist/dts/workspace-elements/base/flow-instances/schemas.d.ts +43 -43
- package/dist/dts/workspace-elements/base/flow-instances/types.d.ts +170 -24
- package/dist/dts/workspace-elements/base/flow-runs/flow-node-runs.d.ts +20 -20
- package/dist/dts/workspace-elements/base/flow-runs/types.d.ts +127 -19
- package/dist/dts/workspace-elements/base/flows/types.d.ts +234 -26
- package/dist/dts/workspace-elements/base/integrations/types.d.ts +988 -25
- package/dist/dts/workspace-elements/base/scenarios/types.d.ts +740 -23
- package/dist/dts/workspace-elements/base/screens/types.d.ts +48 -6
- package/dist/dts/workspace-elements/types.d.ts +25 -3
- package/dist/dts/workspaces/types.d.ts +4 -3
- package/dist/index.d.ts +26481 -3080
- package/dist/index.js +1717 -535
- package/dist/index.js.map +1 -1
- package/dist/index.module.d.mts +26481 -3080
- package/dist/index.module.mjs +1550 -502
- package/dist/index.module.mjs.map +1 -1
- package/package.json +3 -2
- package/dist/dts/data-schema/schemas.d.ts +0 -4
- package/dist/dts/workspace-elements/api/app-events-api.d.ts +0 -17
|
@@ -1,27 +1,102 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
3
|
-
key
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const DataSourceUnitConfig: z.ZodObject<{
|
|
3
|
+
key: z.ZodOptional<z.ZodString>;
|
|
4
|
+
collectionKey: z.ZodOptional<z.ZodAny>;
|
|
5
|
+
collectionParameters: z.ZodOptional<z.ZodAny>;
|
|
6
|
+
udm: z.ZodOptional<z.ZodAny>;
|
|
7
|
+
path: z.ZodOptional<z.ZodString>;
|
|
8
|
+
pullUpdatesIntervalSeconds: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
fullSyncIntervalSeconds: z.ZodOptional<z.ZodNumber>;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
key?: string | undefined;
|
|
12
|
+
path?: string | undefined;
|
|
13
|
+
udm?: any;
|
|
4
14
|
collectionKey?: any;
|
|
5
15
|
collectionParameters?: any;
|
|
16
|
+
pullUpdatesIntervalSeconds?: number | undefined;
|
|
17
|
+
fullSyncIntervalSeconds?: number | undefined;
|
|
18
|
+
}, {
|
|
19
|
+
key?: string | undefined;
|
|
20
|
+
path?: string | undefined;
|
|
6
21
|
udm?: any;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
22
|
+
collectionKey?: any;
|
|
23
|
+
collectionParameters?: any;
|
|
24
|
+
pullUpdatesIntervalSeconds?: number | undefined;
|
|
25
|
+
fullSyncIntervalSeconds?: number | undefined;
|
|
26
|
+
}>;
|
|
27
|
+
export type DataSourceUnitConfig = z.infer<typeof DataSourceUnitConfig>;
|
|
28
|
+
export declare const BaseDataSource: z.ZodObject<{
|
|
29
|
+
id: z.ZodString;
|
|
30
|
+
name: z.ZodString;
|
|
31
|
+
key: z.ZodOptional<z.ZodString>;
|
|
32
|
+
uuid: z.ZodOptional<z.ZodString>;
|
|
33
|
+
description: z.ZodOptional<z.ZodString>;
|
|
34
|
+
state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
|
|
35
|
+
errors: z.ZodOptional<z.ZodArray<any, "many">>;
|
|
36
|
+
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
37
|
+
} & {
|
|
38
|
+
revision: z.ZodString;
|
|
39
|
+
publishedRevision: z.ZodOptional<z.ZodString>;
|
|
40
|
+
integrationId: z.ZodOptional<z.ZodString>;
|
|
41
|
+
universalDataSourceId: z.ZodOptional<z.ZodString>;
|
|
42
|
+
universalDataSourceRevision: z.ZodOptional<z.ZodString>;
|
|
43
|
+
udm: z.ZodOptional<z.ZodString>;
|
|
44
|
+
pullUpdatesIntervalSeconds: z.ZodOptional<z.ZodNumber>;
|
|
45
|
+
fullSyncIntervalSeconds: z.ZodOptional<z.ZodNumber>;
|
|
46
|
+
collectionKey: z.ZodOptional<z.ZodString>;
|
|
47
|
+
collectionParameters: z.ZodOptional<z.ZodAny>;
|
|
48
|
+
archivedAt: z.ZodOptional<z.ZodString>;
|
|
49
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
50
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
51
|
+
customized: z.ZodOptional<z.ZodBoolean>;
|
|
52
|
+
defaultPath: z.ZodOptional<z.ZodString>;
|
|
53
|
+
}, "strip", z.ZodTypeAny, {
|
|
54
|
+
id: string;
|
|
55
|
+
name: string;
|
|
56
|
+
revision: string;
|
|
57
|
+
key?: string | undefined;
|
|
58
|
+
uuid?: string | undefined;
|
|
59
|
+
description?: string | undefined;
|
|
60
|
+
state?: import("../../types").WorkspaceElementState | undefined;
|
|
61
|
+
errors?: any[] | undefined;
|
|
62
|
+
isDeactivated?: boolean | undefined;
|
|
63
|
+
createdAt?: string | undefined;
|
|
64
|
+
updatedAt?: string | undefined;
|
|
65
|
+
archivedAt?: string | undefined;
|
|
66
|
+
integrationId?: string | undefined;
|
|
67
|
+
udm?: string | undefined;
|
|
68
|
+
publishedRevision?: string | undefined;
|
|
69
|
+
customized?: boolean | undefined;
|
|
70
|
+
universalDataSourceId?: string | undefined;
|
|
71
|
+
collectionKey?: string | undefined;
|
|
72
|
+
collectionParameters?: any;
|
|
73
|
+
pullUpdatesIntervalSeconds?: number | undefined;
|
|
74
|
+
fullSyncIntervalSeconds?: number | undefined;
|
|
75
|
+
defaultPath?: string | undefined;
|
|
76
|
+
universalDataSourceRevision?: string | undefined;
|
|
77
|
+
}, {
|
|
78
|
+
id: string;
|
|
79
|
+
name: string;
|
|
12
80
|
revision: string;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
81
|
+
key?: string | undefined;
|
|
82
|
+
uuid?: string | undefined;
|
|
83
|
+
description?: string | undefined;
|
|
84
|
+
state?: import("../../types").WorkspaceElementState | undefined;
|
|
85
|
+
errors?: any[] | undefined;
|
|
86
|
+
isDeactivated?: boolean | undefined;
|
|
87
|
+
createdAt?: string | undefined;
|
|
88
|
+
updatedAt?: string | undefined;
|
|
89
|
+
archivedAt?: string | undefined;
|
|
90
|
+
integrationId?: string | undefined;
|
|
91
|
+
udm?: string | undefined;
|
|
92
|
+
publishedRevision?: string | undefined;
|
|
93
|
+
customized?: boolean | undefined;
|
|
94
|
+
universalDataSourceId?: string | undefined;
|
|
95
|
+
collectionKey?: string | undefined;
|
|
21
96
|
collectionParameters?: any;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
97
|
+
pullUpdatesIntervalSeconds?: number | undefined;
|
|
98
|
+
fullSyncIntervalSeconds?: number | undefined;
|
|
99
|
+
defaultPath?: string | undefined;
|
|
100
|
+
universalDataSourceRevision?: string | undefined;
|
|
101
|
+
}>;
|
|
102
|
+
export type BaseDataSource = z.infer<typeof BaseDataSource>;
|
|
@@ -1,18 +1,41 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { z } from 'zod';
|
|
2
2
|
export declare enum ExternalEventLogStatus {
|
|
3
3
|
CREATED = "created",
|
|
4
4
|
ERROR = "error",
|
|
5
5
|
SUCCESS = "success"
|
|
6
6
|
}
|
|
7
|
-
export
|
|
7
|
+
export declare const BaseExternalEventLogRecord: z.ZodObject<{
|
|
8
|
+
id: z.ZodString;
|
|
9
|
+
userId: z.ZodString;
|
|
10
|
+
name: z.ZodOptional<z.ZodString>;
|
|
11
|
+
externalEventSubscriptionId: z.ZodString;
|
|
12
|
+
integrationId: z.ZodString;
|
|
13
|
+
connectionId: z.ZodString;
|
|
14
|
+
payload: z.ZodOptional<z.ZodAny>;
|
|
15
|
+
launchedFlowRunIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
16
|
+
status: z.ZodNativeEnum<typeof ExternalEventLogStatus>;
|
|
17
|
+
error: any;
|
|
18
|
+
}, "strip", z.ZodTypeAny, {
|
|
19
|
+
status: ExternalEventLogStatus;
|
|
8
20
|
id: string;
|
|
9
21
|
userId: string;
|
|
10
|
-
name?: string;
|
|
11
|
-
externalEventSubscriptionId: string;
|
|
12
|
-
integrationId: string;
|
|
13
22
|
connectionId: string;
|
|
23
|
+
integrationId: string;
|
|
24
|
+
externalEventSubscriptionId: string;
|
|
25
|
+
error?: any;
|
|
26
|
+
name?: string | undefined;
|
|
14
27
|
payload?: any;
|
|
15
|
-
launchedFlowRunIds?: string[];
|
|
28
|
+
launchedFlowRunIds?: string[] | undefined;
|
|
29
|
+
}, {
|
|
16
30
|
status: ExternalEventLogStatus;
|
|
17
|
-
|
|
18
|
-
|
|
31
|
+
id: string;
|
|
32
|
+
userId: string;
|
|
33
|
+
connectionId: string;
|
|
34
|
+
integrationId: string;
|
|
35
|
+
externalEventSubscriptionId: string;
|
|
36
|
+
error?: any;
|
|
37
|
+
name?: string | undefined;
|
|
38
|
+
payload?: any;
|
|
39
|
+
launchedFlowRunIds?: string[] | undefined;
|
|
40
|
+
}>;
|
|
41
|
+
export type BaseExternalEventLogRecord = z.infer<typeof BaseExternalEventLogRecord>;
|
|
@@ -1,21 +1,48 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { z } from 'zod';
|
|
2
2
|
export declare enum ExternalEventPullStatus {
|
|
3
3
|
RUNNING = "running",
|
|
4
4
|
SUCCESS = "success",
|
|
5
5
|
ERROR = "error",
|
|
6
6
|
QUEUED = "queued"
|
|
7
7
|
}
|
|
8
|
-
export
|
|
8
|
+
export declare const BaseExternalEventPull: z.ZodObject<{
|
|
9
|
+
id: z.ZodString;
|
|
10
|
+
name: z.ZodOptional<z.ZodString>;
|
|
11
|
+
userId: z.ZodString;
|
|
12
|
+
externalEventSubscriptionId: z.ZodString;
|
|
13
|
+
integrationId: z.ZodString;
|
|
14
|
+
connectionId: z.ZodString;
|
|
15
|
+
startDatetime: z.ZodString;
|
|
16
|
+
endDatetime: z.ZodString;
|
|
17
|
+
isFullScan: z.ZodOptional<z.ZodBoolean>;
|
|
18
|
+
status: z.ZodNativeEnum<typeof ExternalEventPullStatus>;
|
|
19
|
+
collectedEventIds: z.ZodArray<z.ZodString, "many">;
|
|
20
|
+
error: any;
|
|
21
|
+
}, "strip", z.ZodTypeAny, {
|
|
22
|
+
status: ExternalEventPullStatus;
|
|
9
23
|
id: string;
|
|
10
|
-
name?: string;
|
|
11
24
|
userId: string;
|
|
12
|
-
externalEventSubscriptionId: string;
|
|
13
|
-
integrationId: string;
|
|
14
25
|
connectionId: string;
|
|
26
|
+
integrationId: string;
|
|
15
27
|
startDatetime: string;
|
|
16
28
|
endDatetime: string;
|
|
17
|
-
|
|
29
|
+
externalEventSubscriptionId: string;
|
|
30
|
+
collectedEventIds: string[];
|
|
31
|
+
error?: any;
|
|
32
|
+
name?: string | undefined;
|
|
33
|
+
isFullScan?: boolean | undefined;
|
|
34
|
+
}, {
|
|
18
35
|
status: ExternalEventPullStatus;
|
|
36
|
+
id: string;
|
|
37
|
+
userId: string;
|
|
38
|
+
connectionId: string;
|
|
39
|
+
integrationId: string;
|
|
40
|
+
startDatetime: string;
|
|
41
|
+
endDatetime: string;
|
|
42
|
+
externalEventSubscriptionId: string;
|
|
19
43
|
collectedEventIds: string[];
|
|
20
|
-
error?:
|
|
21
|
-
|
|
44
|
+
error?: any;
|
|
45
|
+
name?: string | undefined;
|
|
46
|
+
isFullScan?: boolean | undefined;
|
|
47
|
+
}>;
|
|
48
|
+
export type BaseExternalEventPull = z.infer<typeof BaseExternalEventPull>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { DataSourceUnitConfig } from '../data-sources';
|
|
1
|
+
import { z } from 'zod';
|
|
3
2
|
export declare enum ExternalEventSubscriptionStatus {
|
|
4
3
|
Subscribed = "subscribed",
|
|
5
4
|
Unsubscribed = "unsubscribed",
|
|
@@ -11,32 +10,206 @@ export declare enum ExternalEventSubscriptionType {
|
|
|
11
10
|
DataRecordDeleted = "data-record-deleted",
|
|
12
11
|
ConnectorEvent = "connector-event"
|
|
13
12
|
}
|
|
14
|
-
export
|
|
13
|
+
export declare const ExternalEventSubscriptionConfig: z.ZodObject<{
|
|
14
|
+
type: z.ZodNativeEnum<typeof ExternalEventSubscriptionType>;
|
|
15
|
+
dataSource: z.ZodOptional<z.ZodObject<{
|
|
16
|
+
key: z.ZodOptional<z.ZodString>;
|
|
17
|
+
collectionKey: z.ZodOptional<z.ZodAny>;
|
|
18
|
+
collectionParameters: z.ZodOptional<z.ZodAny>;
|
|
19
|
+
udm: z.ZodOptional<z.ZodAny>;
|
|
20
|
+
path: z.ZodOptional<z.ZodString>;
|
|
21
|
+
pullUpdatesIntervalSeconds: z.ZodOptional<z.ZodNumber>;
|
|
22
|
+
fullSyncIntervalSeconds: z.ZodOptional<z.ZodNumber>;
|
|
23
|
+
}, "strip", z.ZodTypeAny, {
|
|
24
|
+
key?: string | undefined;
|
|
25
|
+
path?: string | undefined;
|
|
26
|
+
udm?: any;
|
|
27
|
+
collectionKey?: any;
|
|
28
|
+
collectionParameters?: any;
|
|
29
|
+
pullUpdatesIntervalSeconds?: number | undefined;
|
|
30
|
+
fullSyncIntervalSeconds?: number | undefined;
|
|
31
|
+
}, {
|
|
32
|
+
key?: string | undefined;
|
|
33
|
+
path?: string | undefined;
|
|
34
|
+
udm?: any;
|
|
35
|
+
collectionKey?: any;
|
|
36
|
+
collectionParameters?: any;
|
|
37
|
+
pullUpdatesIntervalSeconds?: number | undefined;
|
|
38
|
+
fullSyncIntervalSeconds?: number | undefined;
|
|
39
|
+
}>>;
|
|
40
|
+
eventKey: z.ZodOptional<z.ZodString>;
|
|
41
|
+
eventParameters: z.ZodOptional<z.ZodAny>;
|
|
42
|
+
}, "strip", z.ZodTypeAny, {
|
|
15
43
|
type: ExternalEventSubscriptionType;
|
|
16
|
-
|
|
17
|
-
eventKey?: string;
|
|
44
|
+
eventKey?: string | undefined;
|
|
18
45
|
eventParameters?: any;
|
|
19
|
-
|
|
20
|
-
|
|
46
|
+
dataSource?: {
|
|
47
|
+
key?: string | undefined;
|
|
48
|
+
path?: string | undefined;
|
|
49
|
+
udm?: any;
|
|
50
|
+
collectionKey?: any;
|
|
51
|
+
collectionParameters?: any;
|
|
52
|
+
pullUpdatesIntervalSeconds?: number | undefined;
|
|
53
|
+
fullSyncIntervalSeconds?: number | undefined;
|
|
54
|
+
} | undefined;
|
|
55
|
+
}, {
|
|
56
|
+
type: ExternalEventSubscriptionType;
|
|
57
|
+
eventKey?: string | undefined;
|
|
58
|
+
eventParameters?: any;
|
|
59
|
+
dataSource?: {
|
|
60
|
+
key?: string | undefined;
|
|
61
|
+
path?: string | undefined;
|
|
62
|
+
udm?: any;
|
|
63
|
+
collectionKey?: any;
|
|
64
|
+
collectionParameters?: any;
|
|
65
|
+
pullUpdatesIntervalSeconds?: number | undefined;
|
|
66
|
+
fullSyncIntervalSeconds?: number | undefined;
|
|
67
|
+
} | undefined;
|
|
68
|
+
}>;
|
|
69
|
+
export type ExternalEventSubscriptionConfig = z.infer<typeof ExternalEventSubscriptionConfig>;
|
|
70
|
+
export declare const BaseExternalEventSubscription: z.ZodObject<{
|
|
71
|
+
id: z.ZodString;
|
|
72
|
+
name: z.ZodOptional<z.ZodString>;
|
|
73
|
+
userId: z.ZodString;
|
|
74
|
+
connectionId: z.ZodString;
|
|
75
|
+
integrationId: z.ZodString;
|
|
76
|
+
config: z.ZodOptional<z.ZodObject<{
|
|
77
|
+
type: z.ZodNativeEnum<typeof ExternalEventSubscriptionType>;
|
|
78
|
+
dataSource: z.ZodOptional<z.ZodObject<{
|
|
79
|
+
key: z.ZodOptional<z.ZodString>;
|
|
80
|
+
collectionKey: z.ZodOptional<z.ZodAny>;
|
|
81
|
+
collectionParameters: z.ZodOptional<z.ZodAny>;
|
|
82
|
+
udm: z.ZodOptional<z.ZodAny>;
|
|
83
|
+
path: z.ZodOptional<z.ZodString>;
|
|
84
|
+
pullUpdatesIntervalSeconds: z.ZodOptional<z.ZodNumber>;
|
|
85
|
+
fullSyncIntervalSeconds: z.ZodOptional<z.ZodNumber>;
|
|
86
|
+
}, "strip", z.ZodTypeAny, {
|
|
87
|
+
key?: string | undefined;
|
|
88
|
+
path?: string | undefined;
|
|
89
|
+
udm?: any;
|
|
90
|
+
collectionKey?: any;
|
|
91
|
+
collectionParameters?: any;
|
|
92
|
+
pullUpdatesIntervalSeconds?: number | undefined;
|
|
93
|
+
fullSyncIntervalSeconds?: number | undefined;
|
|
94
|
+
}, {
|
|
95
|
+
key?: string | undefined;
|
|
96
|
+
path?: string | undefined;
|
|
97
|
+
udm?: any;
|
|
98
|
+
collectionKey?: any;
|
|
99
|
+
collectionParameters?: any;
|
|
100
|
+
pullUpdatesIntervalSeconds?: number | undefined;
|
|
101
|
+
fullSyncIntervalSeconds?: number | undefined;
|
|
102
|
+
}>>;
|
|
103
|
+
eventKey: z.ZodOptional<z.ZodString>;
|
|
104
|
+
eventParameters: z.ZodOptional<z.ZodAny>;
|
|
105
|
+
}, "strip", z.ZodTypeAny, {
|
|
106
|
+
type: ExternalEventSubscriptionType;
|
|
107
|
+
eventKey?: string | undefined;
|
|
108
|
+
eventParameters?: any;
|
|
109
|
+
dataSource?: {
|
|
110
|
+
key?: string | undefined;
|
|
111
|
+
path?: string | undefined;
|
|
112
|
+
udm?: any;
|
|
113
|
+
collectionKey?: any;
|
|
114
|
+
collectionParameters?: any;
|
|
115
|
+
pullUpdatesIntervalSeconds?: number | undefined;
|
|
116
|
+
fullSyncIntervalSeconds?: number | undefined;
|
|
117
|
+
} | undefined;
|
|
118
|
+
}, {
|
|
119
|
+
type: ExternalEventSubscriptionType;
|
|
120
|
+
eventKey?: string | undefined;
|
|
121
|
+
eventParameters?: any;
|
|
122
|
+
dataSource?: {
|
|
123
|
+
key?: string | undefined;
|
|
124
|
+
path?: string | undefined;
|
|
125
|
+
udm?: any;
|
|
126
|
+
collectionKey?: any;
|
|
127
|
+
collectionParameters?: any;
|
|
128
|
+
pullUpdatesIntervalSeconds?: number | undefined;
|
|
129
|
+
fullSyncIntervalSeconds?: number | undefined;
|
|
130
|
+
} | undefined;
|
|
131
|
+
}>>;
|
|
132
|
+
status: z.ZodOptional<z.ZodNativeEnum<typeof ExternalEventSubscriptionStatus>>;
|
|
133
|
+
error: any;
|
|
134
|
+
isRealTime: z.ZodOptional<z.ZodBoolean>;
|
|
135
|
+
requiresPull: z.ZodOptional<z.ZodBoolean>;
|
|
136
|
+
requiresFullSync: z.ZodOptional<z.ZodBoolean>;
|
|
137
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
138
|
+
archivedAt: z.ZodOptional<z.ZodString>;
|
|
139
|
+
stateData: z.ZodOptional<z.ZodAny>;
|
|
140
|
+
nextPullEventsTimestamp: z.ZodOptional<z.ZodNumber>;
|
|
141
|
+
pullUpdatesIntervalSeconds: z.ZodOptional<z.ZodNumber>;
|
|
142
|
+
fullSyncIntervalSeconds: z.ZodOptional<z.ZodNumber>;
|
|
143
|
+
nextRefreshTimestamp: z.ZodOptional<z.ZodNumber>;
|
|
144
|
+
globalWebhookKey: z.ZodOptional<z.ZodString>;
|
|
145
|
+
globalWebhookEventSelector: z.ZodOptional<z.ZodString>;
|
|
146
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
147
|
id: string;
|
|
22
|
-
name?: string;
|
|
23
148
|
userId: string;
|
|
24
149
|
connectionId: string;
|
|
25
150
|
integrationId: string;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
151
|
+
status?: ExternalEventSubscriptionStatus | undefined;
|
|
152
|
+
error?: any;
|
|
153
|
+
name?: string | undefined;
|
|
154
|
+
createdAt?: string | undefined;
|
|
155
|
+
archivedAt?: string | undefined;
|
|
156
|
+
nextRefreshTimestamp?: number | undefined;
|
|
157
|
+
config?: {
|
|
158
|
+
type: ExternalEventSubscriptionType;
|
|
159
|
+
eventKey?: string | undefined;
|
|
160
|
+
eventParameters?: any;
|
|
161
|
+
dataSource?: {
|
|
162
|
+
key?: string | undefined;
|
|
163
|
+
path?: string | undefined;
|
|
164
|
+
udm?: any;
|
|
165
|
+
collectionKey?: any;
|
|
166
|
+
collectionParameters?: any;
|
|
167
|
+
pullUpdatesIntervalSeconds?: number | undefined;
|
|
168
|
+
fullSyncIntervalSeconds?: number | undefined;
|
|
169
|
+
} | undefined;
|
|
170
|
+
} | undefined;
|
|
171
|
+
pullUpdatesIntervalSeconds?: number | undefined;
|
|
172
|
+
fullSyncIntervalSeconds?: number | undefined;
|
|
173
|
+
isRealTime?: boolean | undefined;
|
|
174
|
+
requiresPull?: boolean | undefined;
|
|
175
|
+
requiresFullSync?: boolean | undefined;
|
|
35
176
|
stateData?: any;
|
|
36
|
-
nextPullEventsTimestamp?: number;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
177
|
+
nextPullEventsTimestamp?: number | undefined;
|
|
178
|
+
globalWebhookKey?: string | undefined;
|
|
179
|
+
globalWebhookEventSelector?: string | undefined;
|
|
180
|
+
}, {
|
|
181
|
+
id: string;
|
|
182
|
+
userId: string;
|
|
183
|
+
connectionId: string;
|
|
184
|
+
integrationId: string;
|
|
185
|
+
status?: ExternalEventSubscriptionStatus | undefined;
|
|
186
|
+
error?: any;
|
|
187
|
+
name?: string | undefined;
|
|
188
|
+
createdAt?: string | undefined;
|
|
189
|
+
archivedAt?: string | undefined;
|
|
190
|
+
nextRefreshTimestamp?: number | undefined;
|
|
191
|
+
config?: {
|
|
192
|
+
type: ExternalEventSubscriptionType;
|
|
193
|
+
eventKey?: string | undefined;
|
|
194
|
+
eventParameters?: any;
|
|
195
|
+
dataSource?: {
|
|
196
|
+
key?: string | undefined;
|
|
197
|
+
path?: string | undefined;
|
|
198
|
+
udm?: any;
|
|
199
|
+
collectionKey?: any;
|
|
200
|
+
collectionParameters?: any;
|
|
201
|
+
pullUpdatesIntervalSeconds?: number | undefined;
|
|
202
|
+
fullSyncIntervalSeconds?: number | undefined;
|
|
203
|
+
} | undefined;
|
|
204
|
+
} | undefined;
|
|
205
|
+
pullUpdatesIntervalSeconds?: number | undefined;
|
|
206
|
+
fullSyncIntervalSeconds?: number | undefined;
|
|
207
|
+
isRealTime?: boolean | undefined;
|
|
208
|
+
requiresPull?: boolean | undefined;
|
|
209
|
+
requiresFullSync?: boolean | undefined;
|
|
210
|
+
stateData?: any;
|
|
211
|
+
nextPullEventsTimestamp?: number | undefined;
|
|
212
|
+
globalWebhookKey?: string | undefined;
|
|
213
|
+
globalWebhookEventSelector?: string | undefined;
|
|
214
|
+
}>;
|
|
215
|
+
export type BaseExternalEventSubscription = z.infer<typeof BaseExternalEventSubscription>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { z } from 'zod';
|
|
2
2
|
export declare enum ExternalEventType {
|
|
3
3
|
DataRecordCreated = "data-record-created",
|
|
4
4
|
DataRecordUpdated = "data-record-updated",
|
|
@@ -9,9 +9,149 @@ export declare enum IncomingWebhooksState {
|
|
|
9
9
|
SUCCESS = "success",
|
|
10
10
|
ERROR = "error"
|
|
11
11
|
}
|
|
12
|
-
export
|
|
12
|
+
export declare const ExternalEventUnitConfig: z.ZodObject<{
|
|
13
|
+
type: z.ZodNativeEnum<typeof ExternalEventType>;
|
|
14
|
+
dataSource: z.ZodOptional<z.ZodObject<{
|
|
15
|
+
key: z.ZodOptional<z.ZodString>;
|
|
16
|
+
collectionKey: z.ZodOptional<z.ZodAny>;
|
|
17
|
+
collectionParameters: z.ZodOptional<z.ZodAny>;
|
|
18
|
+
udm: z.ZodOptional<z.ZodAny>;
|
|
19
|
+
path: z.ZodOptional<z.ZodString>;
|
|
20
|
+
pullUpdatesIntervalSeconds: z.ZodOptional<z.ZodNumber>;
|
|
21
|
+
fullSyncIntervalSeconds: z.ZodOptional<z.ZodNumber>;
|
|
22
|
+
}, "strip", z.ZodTypeAny, {
|
|
23
|
+
key?: string | undefined;
|
|
24
|
+
path?: string | undefined;
|
|
25
|
+
udm?: any;
|
|
26
|
+
collectionKey?: any;
|
|
27
|
+
collectionParameters?: any;
|
|
28
|
+
pullUpdatesIntervalSeconds?: number | undefined;
|
|
29
|
+
fullSyncIntervalSeconds?: number | undefined;
|
|
30
|
+
}, {
|
|
31
|
+
key?: string | undefined;
|
|
32
|
+
path?: string | undefined;
|
|
33
|
+
udm?: any;
|
|
34
|
+
collectionKey?: any;
|
|
35
|
+
collectionParameters?: any;
|
|
36
|
+
pullUpdatesIntervalSeconds?: number | undefined;
|
|
37
|
+
fullSyncIntervalSeconds?: number | undefined;
|
|
38
|
+
}>>;
|
|
39
|
+
eventKey: z.ZodOptional<z.ZodString>;
|
|
40
|
+
eventParameters: z.ZodOptional<z.ZodAny>;
|
|
41
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
42
|
type: ExternalEventType;
|
|
14
|
-
|
|
15
|
-
eventKey?: string;
|
|
43
|
+
eventKey?: string | undefined;
|
|
16
44
|
eventParameters?: any;
|
|
17
|
-
|
|
45
|
+
dataSource?: {
|
|
46
|
+
key?: string | undefined;
|
|
47
|
+
path?: string | undefined;
|
|
48
|
+
udm?: any;
|
|
49
|
+
collectionKey?: any;
|
|
50
|
+
collectionParameters?: any;
|
|
51
|
+
pullUpdatesIntervalSeconds?: number | undefined;
|
|
52
|
+
fullSyncIntervalSeconds?: number | undefined;
|
|
53
|
+
} | undefined;
|
|
54
|
+
}, {
|
|
55
|
+
type: ExternalEventType;
|
|
56
|
+
eventKey?: string | undefined;
|
|
57
|
+
eventParameters?: any;
|
|
58
|
+
dataSource?: {
|
|
59
|
+
key?: string | undefined;
|
|
60
|
+
path?: string | undefined;
|
|
61
|
+
udm?: any;
|
|
62
|
+
collectionKey?: any;
|
|
63
|
+
collectionParameters?: any;
|
|
64
|
+
pullUpdatesIntervalSeconds?: number | undefined;
|
|
65
|
+
fullSyncIntervalSeconds?: number | undefined;
|
|
66
|
+
} | undefined;
|
|
67
|
+
}>;
|
|
68
|
+
export type ExternalEventUnitConfig = z.infer<typeof ExternalEventUnitConfig>;
|
|
69
|
+
export declare const BaseExternalEvent: z.ZodObject<{
|
|
70
|
+
config: z.ZodOptional<z.ZodObject<{
|
|
71
|
+
type: z.ZodNativeEnum<typeof ExternalEventType>;
|
|
72
|
+
dataSource: z.ZodOptional<z.ZodObject<{
|
|
73
|
+
key: z.ZodOptional<z.ZodString>;
|
|
74
|
+
collectionKey: z.ZodOptional<z.ZodAny>;
|
|
75
|
+
collectionParameters: z.ZodOptional<z.ZodAny>;
|
|
76
|
+
udm: z.ZodOptional<z.ZodAny>;
|
|
77
|
+
path: z.ZodOptional<z.ZodString>;
|
|
78
|
+
pullUpdatesIntervalSeconds: z.ZodOptional<z.ZodNumber>;
|
|
79
|
+
fullSyncIntervalSeconds: z.ZodOptional<z.ZodNumber>;
|
|
80
|
+
}, "strip", z.ZodTypeAny, {
|
|
81
|
+
key?: string | undefined;
|
|
82
|
+
path?: string | undefined;
|
|
83
|
+
udm?: any;
|
|
84
|
+
collectionKey?: any;
|
|
85
|
+
collectionParameters?: any;
|
|
86
|
+
pullUpdatesIntervalSeconds?: number | undefined;
|
|
87
|
+
fullSyncIntervalSeconds?: number | undefined;
|
|
88
|
+
}, {
|
|
89
|
+
key?: string | undefined;
|
|
90
|
+
path?: string | undefined;
|
|
91
|
+
udm?: any;
|
|
92
|
+
collectionKey?: any;
|
|
93
|
+
collectionParameters?: any;
|
|
94
|
+
pullUpdatesIntervalSeconds?: number | undefined;
|
|
95
|
+
fullSyncIntervalSeconds?: number | undefined;
|
|
96
|
+
}>>;
|
|
97
|
+
eventKey: z.ZodOptional<z.ZodString>;
|
|
98
|
+
eventParameters: z.ZodOptional<z.ZodAny>;
|
|
99
|
+
}, "strip", z.ZodTypeAny, {
|
|
100
|
+
type: ExternalEventType;
|
|
101
|
+
eventKey?: string | undefined;
|
|
102
|
+
eventParameters?: any;
|
|
103
|
+
dataSource?: {
|
|
104
|
+
key?: string | undefined;
|
|
105
|
+
path?: string | undefined;
|
|
106
|
+
udm?: any;
|
|
107
|
+
collectionKey?: any;
|
|
108
|
+
collectionParameters?: any;
|
|
109
|
+
pullUpdatesIntervalSeconds?: number | undefined;
|
|
110
|
+
fullSyncIntervalSeconds?: number | undefined;
|
|
111
|
+
} | undefined;
|
|
112
|
+
}, {
|
|
113
|
+
type: ExternalEventType;
|
|
114
|
+
eventKey?: string | undefined;
|
|
115
|
+
eventParameters?: any;
|
|
116
|
+
dataSource?: {
|
|
117
|
+
key?: string | undefined;
|
|
118
|
+
path?: string | undefined;
|
|
119
|
+
udm?: any;
|
|
120
|
+
collectionKey?: any;
|
|
121
|
+
collectionParameters?: any;
|
|
122
|
+
pullUpdatesIntervalSeconds?: number | undefined;
|
|
123
|
+
fullSyncIntervalSeconds?: number | undefined;
|
|
124
|
+
} | undefined;
|
|
125
|
+
}>>;
|
|
126
|
+
}, "strip", z.ZodTypeAny, {
|
|
127
|
+
config?: {
|
|
128
|
+
type: ExternalEventType;
|
|
129
|
+
eventKey?: string | undefined;
|
|
130
|
+
eventParameters?: any;
|
|
131
|
+
dataSource?: {
|
|
132
|
+
key?: string | undefined;
|
|
133
|
+
path?: string | undefined;
|
|
134
|
+
udm?: any;
|
|
135
|
+
collectionKey?: any;
|
|
136
|
+
collectionParameters?: any;
|
|
137
|
+
pullUpdatesIntervalSeconds?: number | undefined;
|
|
138
|
+
fullSyncIntervalSeconds?: number | undefined;
|
|
139
|
+
} | undefined;
|
|
140
|
+
} | undefined;
|
|
141
|
+
}, {
|
|
142
|
+
config?: {
|
|
143
|
+
type: ExternalEventType;
|
|
144
|
+
eventKey?: string | undefined;
|
|
145
|
+
eventParameters?: any;
|
|
146
|
+
dataSource?: {
|
|
147
|
+
key?: string | undefined;
|
|
148
|
+
path?: string | undefined;
|
|
149
|
+
udm?: any;
|
|
150
|
+
collectionKey?: any;
|
|
151
|
+
collectionParameters?: any;
|
|
152
|
+
pullUpdatesIntervalSeconds?: number | undefined;
|
|
153
|
+
fullSyncIntervalSeconds?: number | undefined;
|
|
154
|
+
} | undefined;
|
|
155
|
+
} | undefined;
|
|
156
|
+
}>;
|
|
157
|
+
export type BaseExternalEvent = z.infer<typeof BaseExternalEvent>;
|