great 1.1.0 → 1.2.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/README.md +137 -43
- package/dist/accounts/create.d.ts +1 -1
- package/dist/accounts/create.js +2 -4
- package/dist/accounts/create.js.map +1 -1
- package/dist/accounts/index.d.ts +1 -1
- package/dist/accounts/index.js +2 -4
- package/dist/accounts/index.js.map +1 -1
- package/dist/clone/index.d.ts +4 -2
- package/dist/clone/index.js +19 -43
- package/dist/clone/index.js.map +1 -1
- package/dist/config/index.js +4 -30
- package/dist/config/index.js.map +1 -1
- package/dist/deploy/index.d.ts +1 -1
- package/dist/deploy/index.js +54 -14
- package/dist/deploy/index.js.map +1 -1
- package/dist/env/index.d.ts +12 -0
- package/dist/env/index.js +131 -0
- package/dist/env/index.js.map +1 -0
- package/dist/explode/transform.d.ts +1 -1
- package/dist/explode/transform.js +3 -1
- package/dist/explode/transform.js.map +1 -1
- package/dist/generated/operations.d.ts +615 -0
- package/dist/generated/operations.js +2 -0
- package/dist/generated/operations.js.map +1 -0
- package/dist/generated/schema.d.ts +965 -0
- package/dist/generated/{graphql.js → schema.js} +13 -1
- package/dist/generated/schema.js.map +1 -0
- package/dist/implode/index.js +22 -43
- package/dist/implode/index.js.map +1 -1
- package/dist/implode/transform.d.ts +3 -5
- package/dist/implode/transform.js +10 -10
- package/dist/implode/transform.js.map +1 -1
- package/dist/{integrations/describe.d.ts → import/index.d.ts} +4 -1
- package/dist/import/index.js +40 -0
- package/dist/import/index.js.map +1 -0
- package/dist/include/index.d.ts +10 -0
- package/dist/include/index.js +38 -0
- package/dist/include/index.js.map +1 -0
- package/dist/index.js +13 -2
- package/dist/index.js.map +1 -1
- package/dist/init/index.js +8 -16
- package/dist/init/index.js.map +1 -1
- package/dist/integrations/create.d.ts +1 -1
- package/dist/integrations/create.js +2 -4
- package/dist/integrations/create.js.map +1 -1
- package/dist/integrations/list.d.ts +1 -1
- package/dist/integrations/list.js +2 -4
- package/dist/integrations/list.js.map +1 -1
- package/dist/migrate/index.d.ts +5 -0
- package/dist/migrate/index.js +101 -0
- package/dist/migrate/index.js.map +1 -0
- package/dist/pull/index.d.ts +4 -2
- package/dist/pull/index.js +25 -44
- package/dist/pull/index.js.map +1 -1
- package/dist/push/index.d.ts +1 -1
- package/dist/push/index.js +340 -97
- package/dist/push/index.js.map +1 -1
- package/dist/rename/index.d.ts +8 -0
- package/dist/rename/index.js +109 -0
- package/dist/rename/index.js.map +1 -0
- package/dist/repl/dispatch.d.ts +8 -2
- package/dist/repl/dispatch.js +43 -29
- package/dist/repl/dispatch.js.map +1 -1
- package/dist/repl/dispatchAndLoad.d.ts +7 -0
- package/dist/repl/dispatchAndLoad.js +35 -0
- package/dist/repl/dispatchAndLoad.js.map +1 -0
- package/dist/repl/help.js +8 -1
- package/dist/repl/help.js.map +1 -1
- package/dist/repl/index.d.ts +1 -1
- package/dist/repl/index.js +29 -9
- package/dist/repl/index.js.map +1 -1
- package/dist/repl/load.d.ts +8 -0
- package/dist/repl/load.js +53 -0
- package/dist/repl/load.js.map +1 -0
- package/dist/run/index.d.ts +4 -5
- package/dist/run/index.js +4 -6
- package/dist/run/index.js.map +1 -1
- package/dist/status/index.d.ts +1 -1
- package/dist/status/index.js +5 -7
- package/dist/status/index.js.map +1 -1
- package/dist/utils/config.d.ts +9 -2
- package/dist/utils/config.js +39 -6
- package/dist/utils/config.js.map +1 -1
- package/dist/utils/createIntegrationFromFile.d.ts +2 -0
- package/dist/utils/createIntegrationFromFile.js +14 -33
- package/dist/utils/createIntegrationFromFile.js.map +1 -1
- package/dist/utils/detectPullConflicts.d.ts +8 -0
- package/dist/utils/detectPullConflicts.js +65 -0
- package/dist/utils/detectPullConflicts.js.map +1 -0
- package/dist/utils/dispatch.d.ts +1 -1
- package/dist/utils/dispatch.js +3 -2
- package/dist/utils/dispatch.js.map +1 -1
- package/dist/utils/elementFiles.d.ts +13 -0
- package/dist/utils/elementFiles.js +76 -0
- package/dist/utils/elementFiles.js.map +1 -0
- package/dist/utils/fetchIntegrationDefinition.d.ts +8 -0
- package/dist/utils/fetchIntegrationDefinition.js +58 -0
- package/dist/utils/fetchIntegrationDefinition.js.map +1 -0
- package/dist/utils/fetchLocal.d.ts +3 -1
- package/dist/utils/fetchLocal.js +11 -9
- package/dist/utils/fetchLocal.js.map +1 -1
- package/dist/utils/fetchSession.d.ts +1 -1
- package/dist/utils/fetchSession.js +2 -1
- package/dist/utils/fetchSession.js.map +1 -1
- package/dist/utils/graphqlClient.d.ts +3 -0
- package/dist/utils/graphqlClient.js +3 -0
- package/dist/utils/graphqlClient.js.map +1 -1
- package/dist/utils/graphqlError.d.ts +1 -0
- package/dist/utils/graphqlError.js +13 -1
- package/dist/utils/graphqlError.js.map +1 -1
- package/dist/utils/greatFile.d.ts +40 -0
- package/dist/utils/greatFile.js +66 -0
- package/dist/utils/greatFile.js.map +1 -0
- package/dist/utils/hashContent.js +1 -1
- package/dist/utils/hashContent.js.map +1 -1
- package/dist/utils/integrationType.d.ts +3 -0
- package/dist/utils/integrationType.js +15 -0
- package/dist/utils/integrationType.js.map +1 -0
- package/dist/utils/resolveAccount.d.ts +3 -2
- package/dist/utils/resolveAccount.js +11 -1
- package/dist/utils/resolveAccount.js.map +1 -1
- package/dist/utils/resolveElement.d.ts +1 -1
- package/dist/utils/resolveElementInclude.d.ts +3 -0
- package/dist/utils/resolveElementInclude.js +27 -0
- package/dist/utils/resolveElementInclude.js.map +1 -0
- package/dist/utils/resolveIntegration.d.ts +4 -2
- package/dist/utils/resolveIntegration.js +7 -3
- package/dist/utils/resolveIntegration.js.map +1 -1
- package/dist/utils/resolveTemplateImport.d.ts +3 -0
- package/dist/utils/resolveTemplateImport.js +30 -0
- package/dist/utils/resolveTemplateImport.js.map +1 -0
- package/dist/utils/response.d.ts +3 -0
- package/dist/utils/response.js +24 -0
- package/dist/utils/response.js.map +1 -0
- package/dist/utils/saveIntegration.d.ts +8 -4
- package/dist/utils/saveIntegration.js +76 -34
- package/dist/utils/saveIntegration.js.map +1 -1
- package/dist/utils/token.js +1 -1
- package/dist/utils/token.js.map +1 -1
- package/dist/utils/url.d.ts +1 -0
- package/dist/utils/url.js +10 -0
- package/dist/utils/url.js.map +1 -0
- package/dist/utils/writeShadowElement.d.ts +25 -0
- package/dist/utils/writeShadowElement.js +119 -0
- package/dist/utils/writeShadowElement.js.map +1 -0
- package/dist/{value → values}/get.d.ts +1 -1
- package/dist/{value → values}/get.js +7 -8
- package/dist/values/get.js.map +1 -0
- package/dist/{value → values}/index.js +13 -1
- package/dist/values/index.js.map +1 -0
- package/dist/{value → values}/list.js +10 -9
- package/dist/values/list.js.map +1 -0
- package/dist/{value → values}/set.d.ts +1 -1
- package/dist/{value → values}/set.js +9 -9
- package/dist/values/set.js.map +1 -0
- package/dist/values/unset.d.ts +8 -0
- package/dist/values/unset.js +61 -0
- package/dist/values/unset.js.map +1 -0
- package/dist/whoami/fetchSession.d.ts +3 -3
- package/dist/whoami/fetchSession.js +2 -4
- package/dist/whoami/fetchSession.js.map +1 -1
- package/dist/whoami/index.d.ts +1 -1
- package/package.json +14 -14
- package/dist/create/account.d.ts +0 -2
- package/dist/create/account.js +0 -40
- package/dist/create/account.js.map +0 -1
- package/dist/create/integration.d.ts +0 -4
- package/dist/create/integration.js +0 -73
- package/dist/create/integration.js.map +0 -1
- package/dist/create/utils.d.ts +0 -4
- package/dist/create/utils.js +0 -8
- package/dist/create/utils.js.map +0 -1
- package/dist/generated/graphql.d.ts +0 -1867
- package/dist/generated/graphql.js.map +0 -1
- package/dist/integrations/describe.js +0 -51
- package/dist/integrations/describe.js.map +0 -1
- package/dist/projects/describe.d.ts +0 -5
- package/dist/projects/describe.js +0 -51
- package/dist/projects/describe.js.map +0 -1
- package/dist/projects/index.d.ts +0 -5
- package/dist/projects/index.js +0 -83
- package/dist/projects/index.js.map +0 -1
- package/dist/repl/fetchUserAndIntegration.d.ts +0 -10
- package/dist/repl/fetchUserAndIntegration.js +0 -73
- package/dist/repl/fetchUserAndIntegration.js.map +0 -1
- package/dist/utils/apiUrl.d.ts +0 -1
- package/dist/utils/apiUrl.js +0 -7
- package/dist/utils/apiUrl.js.map +0 -1
- package/dist/utils/callApi.d.ts +0 -5
- package/dist/utils/callApi.js +0 -17
- package/dist/utils/callApi.js.map +0 -1
- package/dist/utils/fetchAccount.d.ts +0 -10
- package/dist/utils/fetchAccount.js +0 -60
- package/dist/utils/fetchAccount.js.map +0 -1
- package/dist/utils/fetchLocalProject.d.ts +0 -1
- package/dist/utils/fetchLocalProject.js +0 -12
- package/dist/utils/fetchLocalProject.js.map +0 -1
- package/dist/utils/fetchUserAndIntegration.d.ts +0 -9
- package/dist/utils/fetchUserAndIntegration.js +0 -48
- package/dist/utils/fetchUserAndIntegration.js.map +0 -1
- package/dist/utils/graphqlRequestClient.d.ts +0 -10
- package/dist/utils/graphqlRequestClient.js +0 -20
- package/dist/utils/graphqlRequestClient.js.map +0 -1
- package/dist/utils/saveProject.d.ts +0 -8
- package/dist/utils/saveProject.js +0 -93
- package/dist/utils/saveProject.js.map +0 -1
- package/dist/utils/session.d.ts +0 -9
- package/dist/utils/session.js +0 -17
- package/dist/utils/session.js.map +0 -1
- package/dist/value/get.js.map +0 -1
- package/dist/value/index.js.map +0 -1
- package/dist/value/list.js.map +0 -1
- package/dist/value/set.js.map +0 -1
- /package/dist/{value → values}/index.d.ts +0 -0
- /package/dist/{value → values}/list.d.ts +0 -0
|
@@ -0,0 +1,615 @@
|
|
|
1
|
+
type Exact<T extends {
|
|
2
|
+
[key: string]: unknown;
|
|
3
|
+
}> = {
|
|
4
|
+
[K in keyof T]: T[K];
|
|
5
|
+
};
|
|
6
|
+
export type Incremental<T> = T | {
|
|
7
|
+
[P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never;
|
|
8
|
+
};
|
|
9
|
+
import type * as Types from './schema.js';
|
|
10
|
+
export type CreateAccountMutationVariables = Exact<{
|
|
11
|
+
name: string;
|
|
12
|
+
key?: string | number | null | undefined;
|
|
13
|
+
}>;
|
|
14
|
+
export type CreateAccountMutation = {
|
|
15
|
+
createAccount: {
|
|
16
|
+
id: string;
|
|
17
|
+
key: string;
|
|
18
|
+
name: string;
|
|
19
|
+
createdAt: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export type AccountsQueryVariables = Exact<{
|
|
23
|
+
[key: string]: never;
|
|
24
|
+
}>;
|
|
25
|
+
export type AccountsQuery = {
|
|
26
|
+
accounts: {
|
|
27
|
+
totalCount: number;
|
|
28
|
+
nodes: Array<{
|
|
29
|
+
id: string;
|
|
30
|
+
name: string;
|
|
31
|
+
key: string;
|
|
32
|
+
}>;
|
|
33
|
+
} | null;
|
|
34
|
+
};
|
|
35
|
+
export type CreateVersionMutationVariables = Exact<{
|
|
36
|
+
integrationId: string | number;
|
|
37
|
+
name?: string | null | undefined;
|
|
38
|
+
timestamp?: string | null | undefined;
|
|
39
|
+
}>;
|
|
40
|
+
export type CreateVersionMutation = {
|
|
41
|
+
createVersion: {
|
|
42
|
+
id: string;
|
|
43
|
+
name: string | null;
|
|
44
|
+
timestamp: string;
|
|
45
|
+
isActive: boolean;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
export type ActivateVersionMutationVariables = Exact<{
|
|
49
|
+
versionId: string | number;
|
|
50
|
+
}>;
|
|
51
|
+
export type ActivateVersionMutation = {
|
|
52
|
+
activateVersion: {
|
|
53
|
+
id: string;
|
|
54
|
+
name: string;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
export type StartIntegrationMutationVariables = Exact<{
|
|
58
|
+
id: string | number;
|
|
59
|
+
}>;
|
|
60
|
+
export type StartIntegrationMutation = {
|
|
61
|
+
startIntegration: {
|
|
62
|
+
id: string;
|
|
63
|
+
name: string;
|
|
64
|
+
status: Types.Status;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
export type ValuesListKeyValueQueryVariables = Exact<{
|
|
68
|
+
id: string | number;
|
|
69
|
+
}>;
|
|
70
|
+
export type ValuesListKeyValueQuery = {
|
|
71
|
+
integration: {
|
|
72
|
+
id: string;
|
|
73
|
+
latest: {
|
|
74
|
+
elements: Array<{
|
|
75
|
+
__typename: 'Auth' | 'ConfigElement' | 'Dictionary' | 'Flow' | 'Job' | 'RetryRule' | 'Schema' | 'SchemaMutation' | 'Service';
|
|
76
|
+
} | ({
|
|
77
|
+
key: string;
|
|
78
|
+
value: unknown;
|
|
79
|
+
} & {
|
|
80
|
+
__typename: 'Value';
|
|
81
|
+
})>;
|
|
82
|
+
};
|
|
83
|
+
} | null;
|
|
84
|
+
};
|
|
85
|
+
export type SecretRefQueryVariables = Exact<{
|
|
86
|
+
id: string | number;
|
|
87
|
+
}>;
|
|
88
|
+
export type SecretRefQuery = {
|
|
89
|
+
secretRef: string | null;
|
|
90
|
+
};
|
|
91
|
+
export type CreateIntegrationMutationVariables = Exact<{
|
|
92
|
+
accountId: string | number;
|
|
93
|
+
name: string;
|
|
94
|
+
key?: string | number | null | undefined;
|
|
95
|
+
description?: string | null | undefined;
|
|
96
|
+
}>;
|
|
97
|
+
export type CreateIntegrationMutation = {
|
|
98
|
+
createIntegration: {
|
|
99
|
+
id: string;
|
|
100
|
+
key: string;
|
|
101
|
+
name: string;
|
|
102
|
+
createdAt: string;
|
|
103
|
+
description: string | null;
|
|
104
|
+
status: Types.Status;
|
|
105
|
+
account: {
|
|
106
|
+
id: string;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
export type IntegrationsQueryVariables = Exact<{
|
|
111
|
+
[key: string]: never;
|
|
112
|
+
}>;
|
|
113
|
+
export type IntegrationsQuery = {
|
|
114
|
+
integrations: {
|
|
115
|
+
totalCount: number;
|
|
116
|
+
nodes: Array<{
|
|
117
|
+
id: string;
|
|
118
|
+
name: string;
|
|
119
|
+
key: string;
|
|
120
|
+
}>;
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
export type IntegrationsForAccountQueryVariables = Exact<{
|
|
124
|
+
accountId: string | number;
|
|
125
|
+
}>;
|
|
126
|
+
export type IntegrationsForAccountQuery = {
|
|
127
|
+
account: {
|
|
128
|
+
name: string;
|
|
129
|
+
integrations: {
|
|
130
|
+
totalCount: number;
|
|
131
|
+
nodes: Array<{
|
|
132
|
+
id: string;
|
|
133
|
+
name: string;
|
|
134
|
+
key: string;
|
|
135
|
+
}>;
|
|
136
|
+
};
|
|
137
|
+
} | null;
|
|
138
|
+
};
|
|
139
|
+
export type IntegrationForPushQueryVariables = Exact<{
|
|
140
|
+
id: string | number;
|
|
141
|
+
}>;
|
|
142
|
+
export type IntegrationForPushQuery = {
|
|
143
|
+
integration: {
|
|
144
|
+
id: string;
|
|
145
|
+
key: string;
|
|
146
|
+
name: string;
|
|
147
|
+
type: Types.IntegrationType;
|
|
148
|
+
templateImports: Array<{
|
|
149
|
+
id: string;
|
|
150
|
+
timestamp: string;
|
|
151
|
+
template: {
|
|
152
|
+
id: string;
|
|
153
|
+
} | null;
|
|
154
|
+
}>;
|
|
155
|
+
latest: {
|
|
156
|
+
timestamp: string;
|
|
157
|
+
elements: Array<({
|
|
158
|
+
id: string;
|
|
159
|
+
key: string;
|
|
160
|
+
name: string;
|
|
161
|
+
description: string | null;
|
|
162
|
+
createdAt: string;
|
|
163
|
+
content: {
|
|
164
|
+
checksum: string | null;
|
|
165
|
+
createdAt: string;
|
|
166
|
+
sourceTimestamp: string | null;
|
|
167
|
+
provenance: Array<string>;
|
|
168
|
+
} | null;
|
|
169
|
+
} & {
|
|
170
|
+
__typename: 'Auth' | 'ConfigElement' | 'Dictionary' | 'Flow' | 'Job' | 'RetryRule' | 'Schema' | 'SchemaMutation' | 'Service' | 'Value';
|
|
171
|
+
})>;
|
|
172
|
+
};
|
|
173
|
+
} | null;
|
|
174
|
+
};
|
|
175
|
+
export type UpdateIntegrationTypeMutationVariables = Exact<{
|
|
176
|
+
id: string | number;
|
|
177
|
+
type: Types.IntegrationType;
|
|
178
|
+
}>;
|
|
179
|
+
export type UpdateIntegrationTypeMutation = {
|
|
180
|
+
updateIntegrationType: {
|
|
181
|
+
id: string;
|
|
182
|
+
type: Types.IntegrationType;
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
export type CreateElementMutationVariables = Exact<{
|
|
186
|
+
integrationId: string | number;
|
|
187
|
+
key: string | number;
|
|
188
|
+
name: string;
|
|
189
|
+
type: Types.ElementType;
|
|
190
|
+
description?: string | null | undefined;
|
|
191
|
+
}>;
|
|
192
|
+
export type CreateElementMutation = {
|
|
193
|
+
createElement: {
|
|
194
|
+
id: string;
|
|
195
|
+
key: string;
|
|
196
|
+
};
|
|
197
|
+
};
|
|
198
|
+
export type IncludeElementMutationVariables = Exact<{
|
|
199
|
+
integrationId: string | number;
|
|
200
|
+
elementId: string | number;
|
|
201
|
+
sourceTimestamp?: string | null | undefined;
|
|
202
|
+
provenance?: Array<string | number> | string | number | null | undefined;
|
|
203
|
+
}>;
|
|
204
|
+
export type IncludeElementMutation = {
|
|
205
|
+
includeElement: {
|
|
206
|
+
id: string;
|
|
207
|
+
name: string;
|
|
208
|
+
description: string | null;
|
|
209
|
+
content: {
|
|
210
|
+
data: Record<string, unknown> | null;
|
|
211
|
+
checksum: string | null;
|
|
212
|
+
createdAt: string;
|
|
213
|
+
} | null;
|
|
214
|
+
};
|
|
215
|
+
};
|
|
216
|
+
export type RegisterTemplateImportMutationVariables = Exact<{
|
|
217
|
+
integrationId: string | number;
|
|
218
|
+
templateId: string | number;
|
|
219
|
+
timestamp: string;
|
|
220
|
+
}>;
|
|
221
|
+
export type RegisterTemplateImportMutation = {
|
|
222
|
+
registerTemplateImport: {
|
|
223
|
+
id: string;
|
|
224
|
+
templateImports: Array<{
|
|
225
|
+
id: string;
|
|
226
|
+
timestamp: string;
|
|
227
|
+
template: {
|
|
228
|
+
id: string;
|
|
229
|
+
} | null;
|
|
230
|
+
}>;
|
|
231
|
+
};
|
|
232
|
+
};
|
|
233
|
+
export type UpdateElementMutationVariables = Exact<{
|
|
234
|
+
id: string | number;
|
|
235
|
+
name?: string | null | undefined;
|
|
236
|
+
description?: string | null | undefined;
|
|
237
|
+
}>;
|
|
238
|
+
export type UpdateElementMutation = {
|
|
239
|
+
updateElement: {
|
|
240
|
+
id: string;
|
|
241
|
+
name: string;
|
|
242
|
+
description: string | null;
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
|
+
export type SetElementContentMutationVariables = Exact<{
|
|
246
|
+
id: string | number;
|
|
247
|
+
content?: Record<string, unknown> | null | undefined;
|
|
248
|
+
}>;
|
|
249
|
+
export type SetElementContentMutation = {
|
|
250
|
+
setElementContent: {
|
|
251
|
+
id: string;
|
|
252
|
+
content: {
|
|
253
|
+
createdAt: string;
|
|
254
|
+
checksum: string | null;
|
|
255
|
+
} | null;
|
|
256
|
+
};
|
|
257
|
+
};
|
|
258
|
+
export type DeleteElementMutationVariables = Exact<{
|
|
259
|
+
id: string | number;
|
|
260
|
+
}>;
|
|
261
|
+
export type DeleteElementMutation = {
|
|
262
|
+
deleteElement: {
|
|
263
|
+
id: string;
|
|
264
|
+
key: string;
|
|
265
|
+
};
|
|
266
|
+
};
|
|
267
|
+
export type SetSecretRefMutationVariables = Exact<{
|
|
268
|
+
id: string | number;
|
|
269
|
+
secretRef: string;
|
|
270
|
+
}>;
|
|
271
|
+
export type SetSecretRefMutation = {
|
|
272
|
+
setSecretRef: boolean;
|
|
273
|
+
};
|
|
274
|
+
export type UpdateElementKeyMutationVariables = Exact<{
|
|
275
|
+
id: string | number;
|
|
276
|
+
key: string | number;
|
|
277
|
+
}>;
|
|
278
|
+
export type UpdateElementKeyMutation = {
|
|
279
|
+
updateElementKey: {
|
|
280
|
+
id: string;
|
|
281
|
+
key: string;
|
|
282
|
+
};
|
|
283
|
+
};
|
|
284
|
+
export type UpdateAccountKeyMutationVariables = Exact<{
|
|
285
|
+
id: string | number;
|
|
286
|
+
key: string | number;
|
|
287
|
+
}>;
|
|
288
|
+
export type UpdateAccountKeyMutation = {
|
|
289
|
+
updateAccountKey: {
|
|
290
|
+
id: string;
|
|
291
|
+
key: string;
|
|
292
|
+
};
|
|
293
|
+
};
|
|
294
|
+
export type IntegrationElementsQueryVariables = Exact<{
|
|
295
|
+
id: string | number;
|
|
296
|
+
}>;
|
|
297
|
+
export type IntegrationElementsQuery = {
|
|
298
|
+
integration: {
|
|
299
|
+
active: {
|
|
300
|
+
elements: Array<({
|
|
301
|
+
id: string;
|
|
302
|
+
key: string;
|
|
303
|
+
name: string;
|
|
304
|
+
description: string | null;
|
|
305
|
+
} & {
|
|
306
|
+
__typename: 'Auth' | 'ConfigElement' | 'Dictionary' | 'RetryRule' | 'Schema' | 'SchemaMutation' | 'Service' | 'Value';
|
|
307
|
+
}) | ({
|
|
308
|
+
sort: number | null;
|
|
309
|
+
id: string;
|
|
310
|
+
key: string;
|
|
311
|
+
name: string;
|
|
312
|
+
description: string | null;
|
|
313
|
+
} & {
|
|
314
|
+
__typename: 'Flow';
|
|
315
|
+
}) | ({
|
|
316
|
+
sort: number | null;
|
|
317
|
+
isSubJob: boolean | null;
|
|
318
|
+
id: string;
|
|
319
|
+
key: string;
|
|
320
|
+
name: string;
|
|
321
|
+
description: string | null;
|
|
322
|
+
} & {
|
|
323
|
+
__typename: 'Job';
|
|
324
|
+
})>;
|
|
325
|
+
} | null;
|
|
326
|
+
} | null;
|
|
327
|
+
};
|
|
328
|
+
export type IntegrationStatusQueryVariables = Exact<{
|
|
329
|
+
id: string | number;
|
|
330
|
+
}>;
|
|
331
|
+
export type IntegrationStatusQuery = {
|
|
332
|
+
integration: {
|
|
333
|
+
id: string;
|
|
334
|
+
key: string;
|
|
335
|
+
name: string;
|
|
336
|
+
status: Types.Status;
|
|
337
|
+
active: {
|
|
338
|
+
id: string;
|
|
339
|
+
name: string | null;
|
|
340
|
+
timestamp: string;
|
|
341
|
+
} | null;
|
|
342
|
+
} | null;
|
|
343
|
+
};
|
|
344
|
+
export type CreateIntegrationFromFileMutationVariables = Exact<{
|
|
345
|
+
accountId: string | number;
|
|
346
|
+
name: string;
|
|
347
|
+
key?: string | number | null | undefined;
|
|
348
|
+
description?: string | null | undefined;
|
|
349
|
+
type?: Types.IntegrationType | null | undefined;
|
|
350
|
+
}>;
|
|
351
|
+
export type CreateIntegrationFromFileMutation = {
|
|
352
|
+
createIntegration: {
|
|
353
|
+
id: string;
|
|
354
|
+
key: string;
|
|
355
|
+
name: string;
|
|
356
|
+
createdAt: string;
|
|
357
|
+
description: string | null;
|
|
358
|
+
status: Types.Status;
|
|
359
|
+
type: Types.IntegrationType;
|
|
360
|
+
account: {
|
|
361
|
+
id: string;
|
|
362
|
+
key: string;
|
|
363
|
+
name: string;
|
|
364
|
+
};
|
|
365
|
+
};
|
|
366
|
+
};
|
|
367
|
+
export type DispatchMutationVariables = Exact<{
|
|
368
|
+
integrationId: string | number;
|
|
369
|
+
type: string;
|
|
370
|
+
payload: Record<string, unknown>;
|
|
371
|
+
waitForResponse?: boolean | null | undefined;
|
|
372
|
+
}>;
|
|
373
|
+
export type DispatchMutation = {
|
|
374
|
+
dispatch: {
|
|
375
|
+
id: string;
|
|
376
|
+
status: string;
|
|
377
|
+
error: string | null;
|
|
378
|
+
warning: string | null;
|
|
379
|
+
itemCount: number | null;
|
|
380
|
+
};
|
|
381
|
+
};
|
|
382
|
+
export type IntegrationDefinitionQueryVariables = Exact<{
|
|
383
|
+
id: string | number;
|
|
384
|
+
}>;
|
|
385
|
+
export type IntegrationDefinitionQuery = {
|
|
386
|
+
integration: {
|
|
387
|
+
id: string;
|
|
388
|
+
key: string;
|
|
389
|
+
name: string;
|
|
390
|
+
description: string | null;
|
|
391
|
+
status: Types.Status;
|
|
392
|
+
type: Types.IntegrationType;
|
|
393
|
+
account: {
|
|
394
|
+
id: string;
|
|
395
|
+
key: string;
|
|
396
|
+
name: string;
|
|
397
|
+
};
|
|
398
|
+
templateImports: Array<{
|
|
399
|
+
id: string;
|
|
400
|
+
timestamp: string;
|
|
401
|
+
template: {
|
|
402
|
+
id: string;
|
|
403
|
+
} | null;
|
|
404
|
+
}>;
|
|
405
|
+
latest: {
|
|
406
|
+
timestamp: string;
|
|
407
|
+
elements: Array<({
|
|
408
|
+
id: string;
|
|
409
|
+
key: string;
|
|
410
|
+
name: string;
|
|
411
|
+
description: string | null;
|
|
412
|
+
content: {
|
|
413
|
+
createdAt: string;
|
|
414
|
+
data: Record<string, unknown> | null;
|
|
415
|
+
sourceId: string | null;
|
|
416
|
+
sourceTimestamp: string | null;
|
|
417
|
+
provenance: Array<string>;
|
|
418
|
+
} | null;
|
|
419
|
+
} & {
|
|
420
|
+
__typename: 'Auth' | 'ConfigElement' | 'Dictionary' | 'Flow' | 'Job' | 'RetryRule' | 'Schema' | 'SchemaMutation' | 'Service' | 'Value';
|
|
421
|
+
})>;
|
|
422
|
+
};
|
|
423
|
+
} | null;
|
|
424
|
+
};
|
|
425
|
+
export type SessionQueryVariables = Exact<{
|
|
426
|
+
[key: string]: never;
|
|
427
|
+
}>;
|
|
428
|
+
export type SessionQuery = {
|
|
429
|
+
session: {
|
|
430
|
+
user: {
|
|
431
|
+
id: string;
|
|
432
|
+
name: string;
|
|
433
|
+
} | null;
|
|
434
|
+
};
|
|
435
|
+
};
|
|
436
|
+
export type AccountByIdQueryVariables = Exact<{
|
|
437
|
+
id: string | number;
|
|
438
|
+
}>;
|
|
439
|
+
export type AccountByIdQuery = {
|
|
440
|
+
account: {
|
|
441
|
+
id: string;
|
|
442
|
+
name: string;
|
|
443
|
+
key: string;
|
|
444
|
+
} | null;
|
|
445
|
+
};
|
|
446
|
+
export type AccountByKeyQueryVariables = Exact<{
|
|
447
|
+
key: string | number;
|
|
448
|
+
}>;
|
|
449
|
+
export type AccountByKeyQuery = {
|
|
450
|
+
accountByKey: {
|
|
451
|
+
id: string;
|
|
452
|
+
name: string;
|
|
453
|
+
key: string;
|
|
454
|
+
} | null;
|
|
455
|
+
};
|
|
456
|
+
export type ElementByIdQueryVariables = Exact<{
|
|
457
|
+
id: string | number;
|
|
458
|
+
}>;
|
|
459
|
+
export type ElementByIdQuery = {
|
|
460
|
+
element: ({
|
|
461
|
+
id: string;
|
|
462
|
+
key: string;
|
|
463
|
+
content: {
|
|
464
|
+
data: Record<string, unknown> | null;
|
|
465
|
+
} | null;
|
|
466
|
+
} & {
|
|
467
|
+
__typename: 'Auth' | 'ConfigElement' | 'Dictionary' | 'Flow' | 'Job' | 'RetryRule' | 'Schema' | 'SchemaMutation' | 'Service';
|
|
468
|
+
}) | ({
|
|
469
|
+
value: unknown;
|
|
470
|
+
id: string;
|
|
471
|
+
key: string;
|
|
472
|
+
content: {
|
|
473
|
+
data: Record<string, unknown> | null;
|
|
474
|
+
} | null;
|
|
475
|
+
} & {
|
|
476
|
+
__typename: 'Value';
|
|
477
|
+
});
|
|
478
|
+
};
|
|
479
|
+
export type ElementByKeyQueryVariables = Exact<{
|
|
480
|
+
integrationId: string | number;
|
|
481
|
+
key: string | number;
|
|
482
|
+
type: Types.ElementType;
|
|
483
|
+
}>;
|
|
484
|
+
export type ElementByKeyQuery = {
|
|
485
|
+
elementByKey: ({
|
|
486
|
+
id: string;
|
|
487
|
+
key: string;
|
|
488
|
+
content: {
|
|
489
|
+
data: Record<string, unknown> | null;
|
|
490
|
+
} | null;
|
|
491
|
+
} & {
|
|
492
|
+
__typename: 'Auth' | 'ConfigElement' | 'Dictionary' | 'Flow' | 'Job' | 'RetryRule' | 'Schema' | 'SchemaMutation' | 'Service';
|
|
493
|
+
}) | ({
|
|
494
|
+
value: unknown;
|
|
495
|
+
id: string;
|
|
496
|
+
key: string;
|
|
497
|
+
content: {
|
|
498
|
+
data: Record<string, unknown> | null;
|
|
499
|
+
} | null;
|
|
500
|
+
} & {
|
|
501
|
+
__typename: 'Value';
|
|
502
|
+
});
|
|
503
|
+
};
|
|
504
|
+
export type ResolveElementIncludeQueryVariables = Exact<{
|
|
505
|
+
elementId: string | number;
|
|
506
|
+
sourceTimestamp?: string | null | undefined;
|
|
507
|
+
}>;
|
|
508
|
+
export type ResolveElementIncludeQuery = {
|
|
509
|
+
resolveElementInclude: {
|
|
510
|
+
key: string;
|
|
511
|
+
name: string;
|
|
512
|
+
description: string | null;
|
|
513
|
+
type: Types.ElementType;
|
|
514
|
+
content: {
|
|
515
|
+
sourceId: string | null;
|
|
516
|
+
sourceTimestamp: string | null;
|
|
517
|
+
provenance: Array<string>;
|
|
518
|
+
data: Record<string, unknown> | null;
|
|
519
|
+
} | null;
|
|
520
|
+
};
|
|
521
|
+
};
|
|
522
|
+
export type IntegrationQueryVariables = Exact<{
|
|
523
|
+
id: string | number;
|
|
524
|
+
}>;
|
|
525
|
+
export type IntegrationQuery = {
|
|
526
|
+
integration: {
|
|
527
|
+
id: string;
|
|
528
|
+
name: string;
|
|
529
|
+
type: Types.IntegrationType;
|
|
530
|
+
} | null;
|
|
531
|
+
};
|
|
532
|
+
export type IntegrationByKeyQueryVariables = Exact<{
|
|
533
|
+
accountId: string | number;
|
|
534
|
+
key: string | number;
|
|
535
|
+
}>;
|
|
536
|
+
export type IntegrationByKeyQuery = {
|
|
537
|
+
integrationByKey: {
|
|
538
|
+
id: string;
|
|
539
|
+
name: string;
|
|
540
|
+
type: Types.IntegrationType;
|
|
541
|
+
} | null;
|
|
542
|
+
};
|
|
543
|
+
export type ResolveTemplateImportQueryVariables = Exact<{
|
|
544
|
+
templateId: string | number;
|
|
545
|
+
}>;
|
|
546
|
+
export type ResolveTemplateImportQuery = {
|
|
547
|
+
resolveTemplateImport: {
|
|
548
|
+
timestamp: string;
|
|
549
|
+
elements: Array<{
|
|
550
|
+
key: string;
|
|
551
|
+
name: string;
|
|
552
|
+
description: string | null;
|
|
553
|
+
type: Types.ElementType;
|
|
554
|
+
content: {
|
|
555
|
+
sourceId: string | null;
|
|
556
|
+
sourceTimestamp: string | null;
|
|
557
|
+
provenance: Array<string>;
|
|
558
|
+
data: Record<string, unknown> | null;
|
|
559
|
+
} | null;
|
|
560
|
+
}>;
|
|
561
|
+
};
|
|
562
|
+
};
|
|
563
|
+
export type ResponseQueryVariables = Exact<{
|
|
564
|
+
actionId: string | number;
|
|
565
|
+
}>;
|
|
566
|
+
export type ResponseQuery = {
|
|
567
|
+
response: {
|
|
568
|
+
id: string;
|
|
569
|
+
status: string;
|
|
570
|
+
error: string | null;
|
|
571
|
+
warning: string | null;
|
|
572
|
+
itemCount: number | null;
|
|
573
|
+
data: Record<string, unknown> | null;
|
|
574
|
+
} | null;
|
|
575
|
+
};
|
|
576
|
+
export type ValuesListQueryVariables = Exact<{
|
|
577
|
+
id: string | number;
|
|
578
|
+
}>;
|
|
579
|
+
export type ValuesListQuery = {
|
|
580
|
+
integration: {
|
|
581
|
+
id: string;
|
|
582
|
+
key: string;
|
|
583
|
+
name: string;
|
|
584
|
+
latest: {
|
|
585
|
+
elements: Array<{
|
|
586
|
+
__typename: 'Auth' | 'ConfigElement' | 'Dictionary' | 'Flow' | 'Job' | 'RetryRule' | 'Schema' | 'SchemaMutation' | 'Service';
|
|
587
|
+
} | ({
|
|
588
|
+
id: string;
|
|
589
|
+
key: string;
|
|
590
|
+
name: string;
|
|
591
|
+
value: unknown;
|
|
592
|
+
hasValue: boolean;
|
|
593
|
+
content: {
|
|
594
|
+
data: Record<string, unknown> | null;
|
|
595
|
+
} | null;
|
|
596
|
+
} & {
|
|
597
|
+
__typename: 'Value';
|
|
598
|
+
})>;
|
|
599
|
+
};
|
|
600
|
+
} | null;
|
|
601
|
+
};
|
|
602
|
+
export type SetValueMutationVariables = Exact<{
|
|
603
|
+
id: string | number;
|
|
604
|
+
value: unknown;
|
|
605
|
+
}>;
|
|
606
|
+
export type SetValueMutation = {
|
|
607
|
+
setValue: boolean;
|
|
608
|
+
};
|
|
609
|
+
export type ClearValueMutationVariables = Exact<{
|
|
610
|
+
id: string | number;
|
|
611
|
+
}>;
|
|
612
|
+
export type ClearValueMutation = {
|
|
613
|
+
clearValue: boolean;
|
|
614
|
+
};
|
|
615
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../src/generated/operations.ts"],"names":[],"mappings":""}
|