great 1.2.2 → 1.4.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/README.md +122 -50
- package/dist/clone/index.d.ts +2 -2
- package/dist/clone/index.js.map +1 -1
- package/dist/deploy/index.d.ts +2 -2
- package/dist/deploy/index.js.map +1 -1
- package/dist/explode/index.d.ts +2 -2
- package/dist/explode/index.js.map +1 -1
- package/dist/generated/operations.d.ts +30 -8
- package/dist/generated/schema.d.ts +138 -2
- package/dist/generated/schema.js +15 -0
- package/dist/generated/schema.js.map +1 -1
- package/dist/implode/index.d.ts +2 -2
- package/dist/implode/index.js +1 -0
- package/dist/implode/index.js.map +1 -1
- package/dist/implode/transform.d.ts +1 -0
- package/dist/implode/transform.js +16 -2
- package/dist/implode/transform.js.map +1 -1
- package/dist/import/index.d.ts +4 -2
- package/dist/import/index.js +27 -6
- package/dist/import/index.js.map +1 -1
- package/dist/include/index.d.ts +4 -2
- package/dist/include/index.js +129 -11
- package/dist/include/index.js.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/init/index.d.ts +2 -2
- package/dist/init/index.js +3 -3
- package/dist/init/index.js.map +1 -1
- package/dist/integrations/create.js +1 -1
- package/dist/integrations/create.js.map +1 -1
- package/dist/integrations/index.js +6 -1
- package/dist/integrations/index.js.map +1 -1
- package/dist/integrations/list.d.ts +2 -0
- package/dist/integrations/list.js +30 -16
- package/dist/integrations/list.js.map +1 -1
- package/dist/migrate/index.d.ts +5 -2
- package/dist/migrate/index.js +102 -4
- package/dist/migrate/index.js.map +1 -1
- package/dist/pull/index.d.ts +2 -2
- package/dist/pull/index.js.map +1 -1
- package/dist/push/index.d.ts +3 -2
- package/dist/push/index.js +168 -73
- package/dist/push/index.js.map +1 -1
- package/dist/remove/index.d.ts +5 -0
- package/dist/remove/index.js +71 -0
- package/dist/remove/index.js.map +1 -0
- package/dist/rename/index.d.ts +2 -2
- package/dist/rename/index.js +54 -23
- package/dist/rename/index.js.map +1 -1
- package/dist/run/index.d.ts +29 -2
- package/dist/run/index.js.map +1 -1
- package/dist/status/index.d.ts +2 -2
- package/dist/status/index.js +1 -1
- package/dist/status/index.js.map +1 -1
- package/dist/types.d.ts +4 -0
- package/dist/utils/createIntegrationFromFile.d.ts +2 -2
- package/dist/utils/createIntegrationFromFile.js.map +1 -1
- package/dist/utils/detectPullConflicts.d.ts +2 -2
- package/dist/utils/detectPullConflicts.js +9 -14
- package/dist/utils/detectPullConflicts.js.map +1 -1
- package/dist/utils/elementFiles.d.ts +24 -5
- package/dist/utils/elementFiles.js +147 -8
- package/dist/utils/elementFiles.js.map +1 -1
- package/dist/utils/fetchLocal.d.ts +4 -4
- package/dist/utils/fetchLocal.js.map +1 -1
- package/dist/utils/graphqlError.js +16 -2
- package/dist/utils/graphqlError.js.map +1 -1
- package/dist/utils/greatFile.d.ts +3 -3
- package/dist/utils/greatFile.js.map +1 -1
- package/dist/utils/mergeEndpointLists.d.ts +7 -0
- package/dist/utils/mergeEndpointLists.js +32 -0
- package/dist/utils/mergeEndpointLists.js.map +1 -0
- package/dist/utils/promptForDetach.d.ts +6 -0
- package/dist/utils/promptForDetach.js +15 -0
- package/dist/utils/promptForDetach.js.map +1 -0
- package/dist/utils/promptForEndpoints.d.ts +5 -0
- package/dist/utils/promptForEndpoints.js +37 -0
- package/dist/utils/promptForEndpoints.js.map +1 -0
- package/dist/utils/promptForReplaceLocal.d.ts +5 -0
- package/dist/utils/promptForReplaceLocal.js +18 -0
- package/dist/utils/promptForReplaceLocal.js.map +1 -0
- package/dist/utils/promptForValue.d.ts +1 -0
- package/dist/utils/promptForValue.js +5 -3
- package/dist/utils/promptForValue.js.map +1 -1
- package/dist/utils/resolveAccount.d.ts +2 -2
- package/dist/utils/resolveAccount.js.map +1 -1
- package/dist/utils/resolveElement.d.ts +2 -0
- package/dist/utils/resolveElement.js +8 -0
- package/dist/utils/resolveElement.js.map +1 -1
- package/dist/utils/resolveElementIncludes.d.ts +6 -0
- package/dist/utils/resolveElementIncludes.js +113 -0
- package/dist/utils/resolveElementIncludes.js.map +1 -0
- package/dist/utils/saveIntegration.d.ts +2 -2
- package/dist/utils/saveIntegration.js +54 -30
- package/dist/utils/saveIntegration.js.map +1 -1
- package/dist/utils/serviceFile.d.ts +34 -0
- package/dist/utils/serviceFile.js +95 -0
- package/dist/utils/serviceFile.js.map +1 -0
- package/dist/utils/shadowMarker.d.ts +5 -0
- package/dist/utils/shadowMarker.js +16 -0
- package/dist/utils/shadowMarker.js.map +1 -0
- package/dist/utils/writeShadowElement.d.ts +12 -10
- package/dist/utils/writeShadowElement.js +98 -58
- package/dist/utils/writeShadowElement.js.map +1 -1
- package/dist/values/get.d.ts +2 -2
- package/dist/values/get.js.map +1 -1
- package/dist/values/list.d.ts +2 -2
- package/dist/values/list.js.map +1 -1
- package/dist/values/set.d.ts +2 -2
- package/dist/values/set.js.map +1 -1
- package/dist/values/unset.d.ts +2 -2
- package/dist/values/unset.js.map +1 -1
- package/package.json +16 -17
- package/quality.toml +4 -0
- package/dist/utils/resolveElementInclude.d.ts +0 -3
- package/dist/utils/resolveElementInclude.js +0 -27
- package/dist/utils/resolveElementInclude.js.map +0 -1
|
@@ -56,6 +56,7 @@ export type AccountIntegrationsArgs = {
|
|
|
56
56
|
first?: InputMaybe<Scalars['Int']['input']>;
|
|
57
57
|
last?: InputMaybe<Scalars['Int']['input']>;
|
|
58
58
|
orderBy?: InputMaybe<IntegrationOrderField>;
|
|
59
|
+
type?: InputMaybe<IntegrationType>;
|
|
59
60
|
};
|
|
60
61
|
export type AccountConnection = {
|
|
61
62
|
__typename?: 'AccountConnection';
|
|
@@ -94,7 +95,7 @@ export type Agent = {
|
|
|
94
95
|
key: Scalars['String']['output'];
|
|
95
96
|
prompts: Array<Prompt>;
|
|
96
97
|
updatedAt: Scalars['DateTime']['output'];
|
|
97
|
-
|
|
98
|
+
users: Array<User>;
|
|
98
99
|
};
|
|
99
100
|
export type Auth = Element & {
|
|
100
101
|
__typename?: 'Auth';
|
|
@@ -102,6 +103,7 @@ export type Auth = Element & {
|
|
|
102
103
|
createdAt: Scalars['DateTime']['output'];
|
|
103
104
|
description?: Maybe<Scalars['String']['output']>;
|
|
104
105
|
id: Scalars['ID']['output'];
|
|
106
|
+
integration?: Maybe<Integration>;
|
|
105
107
|
key: Scalars['ID']['output'];
|
|
106
108
|
name: Scalars['String']['output'];
|
|
107
109
|
updatedAt: Scalars['DateTime']['output'];
|
|
@@ -112,6 +114,7 @@ export type ConfigElement = Element & {
|
|
|
112
114
|
createdAt: Scalars['DateTime']['output'];
|
|
113
115
|
description?: Maybe<Scalars['String']['output']>;
|
|
114
116
|
id: Scalars['ID']['output'];
|
|
117
|
+
integration?: Maybe<Integration>;
|
|
115
118
|
key: Scalars['ID']['output'];
|
|
116
119
|
name: Scalars['String']['output'];
|
|
117
120
|
updatedAt: Scalars['DateTime']['output'];
|
|
@@ -122,6 +125,7 @@ export type Dictionary = Element & {
|
|
|
122
125
|
createdAt: Scalars['DateTime']['output'];
|
|
123
126
|
description?: Maybe<Scalars['String']['output']>;
|
|
124
127
|
id: Scalars['ID']['output'];
|
|
128
|
+
integration?: Maybe<Integration>;
|
|
125
129
|
key: Scalars['ID']['output'];
|
|
126
130
|
name: Scalars['String']['output'];
|
|
127
131
|
updatedAt: Scalars['DateTime']['output'];
|
|
@@ -135,6 +139,7 @@ export type Element = {
|
|
|
135
139
|
createdAt: Scalars['DateTime']['output'];
|
|
136
140
|
description?: Maybe<Scalars['String']['output']>;
|
|
137
141
|
id: Scalars['ID']['output'];
|
|
142
|
+
integration?: Maybe<Integration>;
|
|
138
143
|
key: Scalars['ID']['output'];
|
|
139
144
|
name: Scalars['String']['output'];
|
|
140
145
|
updatedAt: Scalars['DateTime']['output'];
|
|
@@ -153,6 +158,8 @@ export declare enum ElementType {
|
|
|
153
158
|
Auth = "auth",
|
|
154
159
|
Config = "config",
|
|
155
160
|
Dictionary = "dictionary",
|
|
161
|
+
Endpoint = "endpoint",
|
|
162
|
+
EndpointList = "endpointList",
|
|
156
163
|
Flow = "flow",
|
|
157
164
|
Job = "job",
|
|
158
165
|
Mutation = "mutation",
|
|
@@ -161,12 +168,44 @@ export declare enum ElementType {
|
|
|
161
168
|
Service = "service",
|
|
162
169
|
Value = "value"
|
|
163
170
|
}
|
|
171
|
+
export type Endpoint = Element & {
|
|
172
|
+
__typename?: 'Endpoint';
|
|
173
|
+
content?: Maybe<ElementContent>;
|
|
174
|
+
createdAt: Scalars['DateTime']['output'];
|
|
175
|
+
description?: Maybe<Scalars['String']['output']>;
|
|
176
|
+
id: Scalars['ID']['output'];
|
|
177
|
+
integration?: Maybe<Integration>;
|
|
178
|
+
key: Scalars['ID']['output'];
|
|
179
|
+
name: Scalars['String']['output'];
|
|
180
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
181
|
+
};
|
|
182
|
+
export type EndpointList = Element & {
|
|
183
|
+
__typename?: 'EndpointList';
|
|
184
|
+
content?: Maybe<ElementContent>;
|
|
185
|
+
createdAt: Scalars['DateTime']['output'];
|
|
186
|
+
description?: Maybe<Scalars['String']['output']>;
|
|
187
|
+
id: Scalars['ID']['output'];
|
|
188
|
+
integration?: Maybe<Integration>;
|
|
189
|
+
key: Scalars['ID']['output'];
|
|
190
|
+
name: Scalars['String']['output'];
|
|
191
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
192
|
+
};
|
|
193
|
+
export type ExternalReference = {
|
|
194
|
+
__typename?: 'ExternalReference';
|
|
195
|
+
createdAt: Scalars['DateTime']['output'];
|
|
196
|
+
externalId: Scalars['String']['output'];
|
|
197
|
+
id: Scalars['ID']['output'];
|
|
198
|
+
integration: Integration;
|
|
199
|
+
namespace: Scalars['String']['output'];
|
|
200
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
201
|
+
};
|
|
164
202
|
export type Flow = Element & {
|
|
165
203
|
__typename?: 'Flow';
|
|
166
204
|
content?: Maybe<ElementContent>;
|
|
167
205
|
createdAt: Scalars['DateTime']['output'];
|
|
168
206
|
description?: Maybe<Scalars['String']['output']>;
|
|
169
207
|
id: Scalars['ID']['output'];
|
|
208
|
+
integration?: Maybe<Integration>;
|
|
170
209
|
key: Scalars['ID']['output'];
|
|
171
210
|
lastRun?: Maybe<Log>;
|
|
172
211
|
name: Scalars['String']['output'];
|
|
@@ -217,6 +256,14 @@ export type IntegrationConnection = {
|
|
|
217
256
|
pageInfo: PageInfo;
|
|
218
257
|
totalCount: Scalars['Int']['output'];
|
|
219
258
|
};
|
|
259
|
+
export type IntegrationModel = {
|
|
260
|
+
__typename?: 'IntegrationModel';
|
|
261
|
+
description?: Maybe<Scalars['String']['output']>;
|
|
262
|
+
flows: Array<ModelFlow>;
|
|
263
|
+
name: Scalars['String']['output'];
|
|
264
|
+
schemas: Array<ModelSchema>;
|
|
265
|
+
services: Array<ModelService>;
|
|
266
|
+
};
|
|
220
267
|
export declare enum IntegrationOrderField {
|
|
221
268
|
Account = "account",
|
|
222
269
|
CreatedAt = "createdAt",
|
|
@@ -236,6 +283,7 @@ export type Job = Element & {
|
|
|
236
283
|
cron?: Maybe<Scalars['String']['output']>;
|
|
237
284
|
description?: Maybe<Scalars['String']['output']>;
|
|
238
285
|
id: Scalars['ID']['output'];
|
|
286
|
+
integration?: Maybe<Integration>;
|
|
239
287
|
isSubJob?: Maybe<Scalars['Boolean']['output']>;
|
|
240
288
|
key: Scalars['ID']['output'];
|
|
241
289
|
lastRun?: Maybe<Log>;
|
|
@@ -250,9 +298,11 @@ export type Log = {
|
|
|
250
298
|
children: LogConnection;
|
|
251
299
|
completedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
252
300
|
correlationId: Scalars['String']['output'];
|
|
301
|
+
entry: LogEntry;
|
|
253
302
|
expireDataAt?: Maybe<Scalars['DateTime']['output']>;
|
|
254
303
|
id: Scalars['ID']['output'];
|
|
255
304
|
identId?: Maybe<Scalars['String']['output']>;
|
|
305
|
+
responses: Array<LogEntry>;
|
|
256
306
|
retryCount: Scalars['Int']['output'];
|
|
257
307
|
startedAt: Scalars['DateTime']['output'];
|
|
258
308
|
status?: Maybe<LogStatus>;
|
|
@@ -319,10 +369,12 @@ export declare enum LogType {
|
|
|
319
369
|
export type Message = {
|
|
320
370
|
__typename?: 'Message';
|
|
321
371
|
createdAt: Scalars['DateTime']['output'];
|
|
372
|
+
highlights?: Maybe<Array<Scalars['String']['output']>>;
|
|
322
373
|
id: Scalars['ID']['output'];
|
|
323
374
|
isComplete: Scalars['Boolean']['output'];
|
|
324
375
|
message: Scalars['String']['output'];
|
|
325
376
|
model?: Maybe<Scalars['JSON']['output']>;
|
|
377
|
+
type: MessageType;
|
|
326
378
|
updatedAt: Scalars['DateTime']['output'];
|
|
327
379
|
user: User;
|
|
328
380
|
};
|
|
@@ -332,6 +384,45 @@ export type MessageConnection = {
|
|
|
332
384
|
pageInfo: PageInfo;
|
|
333
385
|
totalCount: Scalars['Int']['output'];
|
|
334
386
|
};
|
|
387
|
+
export declare enum MessageType {
|
|
388
|
+
Error = "error",
|
|
389
|
+
Message = "message",
|
|
390
|
+
ToolUse = "toolUse"
|
|
391
|
+
}
|
|
392
|
+
export type ModelFlow = {
|
|
393
|
+
__typename?: 'ModelFlow';
|
|
394
|
+
id: Scalars['ID']['output'];
|
|
395
|
+
name: Scalars['String']['output'];
|
|
396
|
+
steps: Array<ModelFlowStep>;
|
|
397
|
+
trigger: Scalars['String']['output'];
|
|
398
|
+
};
|
|
399
|
+
export type ModelFlowStep = {
|
|
400
|
+
__typename?: 'ModelFlowStep';
|
|
401
|
+
description?: Maybe<Scalars['String']['output']>;
|
|
402
|
+
from: Scalars['ID']['output'];
|
|
403
|
+
name: Scalars['String']['output'];
|
|
404
|
+
to: Scalars['ID']['output'];
|
|
405
|
+
type: ModelStepType;
|
|
406
|
+
};
|
|
407
|
+
export type ModelSchema = {
|
|
408
|
+
__typename?: 'ModelSchema';
|
|
409
|
+
description: Scalars['String']['output'];
|
|
410
|
+
id: Scalars['ID']['output'];
|
|
411
|
+
name: Scalars['String']['output'];
|
|
412
|
+
subSchemas: Array<Scalars['ID']['output']>;
|
|
413
|
+
};
|
|
414
|
+
export type ModelService = {
|
|
415
|
+
__typename?: 'ModelService';
|
|
416
|
+
description: Scalars['String']['output'];
|
|
417
|
+
id: Scalars['ID']['output'];
|
|
418
|
+
incoming: Scalars['Boolean']['output'];
|
|
419
|
+
name: Scalars['String']['output'];
|
|
420
|
+
};
|
|
421
|
+
export declare enum ModelStepType {
|
|
422
|
+
Read = "read",
|
|
423
|
+
Transform = "transform",
|
|
424
|
+
Write = "write"
|
|
425
|
+
}
|
|
335
426
|
export type Mutation = {
|
|
336
427
|
__typename?: 'Mutation';
|
|
337
428
|
acknowledgeNotifications: Array<Notification>;
|
|
@@ -340,15 +431,19 @@ export type Mutation = {
|
|
|
340
431
|
clearValue: Scalars['Boolean']['output'];
|
|
341
432
|
createAccount: Account;
|
|
342
433
|
createAgent: Agent;
|
|
434
|
+
createAgentUser: User;
|
|
343
435
|
createElement: Element;
|
|
344
436
|
createIntegration: Integration;
|
|
345
437
|
createPrompt: Prompt;
|
|
346
438
|
createRuleset: Ruleset;
|
|
439
|
+
createServiceUser: User;
|
|
347
440
|
createThread: Thread;
|
|
348
441
|
createUser: User;
|
|
349
442
|
createVersion: Version;
|
|
443
|
+
deactivateUser: User;
|
|
350
444
|
deleteAccount: Scalars['Boolean']['output'];
|
|
351
445
|
deleteElement: Element;
|
|
446
|
+
deleteExternalReference: Scalars['Boolean']['output'];
|
|
352
447
|
deleteIntegration: Scalars['Boolean']['output'];
|
|
353
448
|
deleteRuleset: Scalars['Boolean']['output'];
|
|
354
449
|
deleteThread: Thread;
|
|
@@ -361,9 +456,11 @@ export type Mutation = {
|
|
|
361
456
|
removeParticipant: Participant;
|
|
362
457
|
rollbackPrompt: Agent;
|
|
363
458
|
setElementContent: Element;
|
|
459
|
+
setExternalReference: ExternalReference;
|
|
364
460
|
setSecretRef: Scalars['Boolean']['output'];
|
|
365
461
|
setValue: Scalars['Boolean']['output'];
|
|
366
462
|
startIntegration: Integration;
|
|
463
|
+
stopAgent: Scalars['Boolean']['output'];
|
|
367
464
|
stopIntegration: Integration;
|
|
368
465
|
unacknowledgeNotifications: Array<Notification>;
|
|
369
466
|
updateAccountKey: Account;
|
|
@@ -400,7 +497,10 @@ export type MutationCreateAccountArgs = {
|
|
|
400
497
|
};
|
|
401
498
|
export type MutationCreateAgentArgs = {
|
|
402
499
|
key: Scalars['String']['input'];
|
|
403
|
-
|
|
500
|
+
};
|
|
501
|
+
export type MutationCreateAgentUserArgs = {
|
|
502
|
+
agentKey: Scalars['String']['input'];
|
|
503
|
+
name: Scalars['String']['input'];
|
|
404
504
|
};
|
|
405
505
|
export type MutationCreateElementArgs = {
|
|
406
506
|
description?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -425,6 +525,9 @@ export type MutationCreateRulesetArgs = {
|
|
|
425
525
|
name: Scalars['String']['input'];
|
|
426
526
|
rules?: InputMaybe<Array<RuleInput>>;
|
|
427
527
|
};
|
|
528
|
+
export type MutationCreateServiceUserArgs = {
|
|
529
|
+
name: Scalars['String']['input'];
|
|
530
|
+
};
|
|
428
531
|
export type MutationCreateThreadArgs = {
|
|
429
532
|
title: Scalars['String']['input'];
|
|
430
533
|
};
|
|
@@ -437,12 +540,19 @@ export type MutationCreateVersionArgs = {
|
|
|
437
540
|
name?: InputMaybe<Scalars['String']['input']>;
|
|
438
541
|
timestamp?: InputMaybe<Scalars['DateTime']['input']>;
|
|
439
542
|
};
|
|
543
|
+
export type MutationDeactivateUserArgs = {
|
|
544
|
+
id: Scalars['ID']['input'];
|
|
545
|
+
};
|
|
440
546
|
export type MutationDeleteAccountArgs = {
|
|
441
547
|
id: Scalars['ID']['input'];
|
|
442
548
|
};
|
|
443
549
|
export type MutationDeleteElementArgs = {
|
|
444
550
|
id: Scalars['ID']['input'];
|
|
445
551
|
};
|
|
552
|
+
export type MutationDeleteExternalReferenceArgs = {
|
|
553
|
+
externalId: Scalars['String']['input'];
|
|
554
|
+
namespace: Scalars['String']['input'];
|
|
555
|
+
};
|
|
446
556
|
export type MutationDeleteIntegrationArgs = {
|
|
447
557
|
id: Scalars['ID']['input'];
|
|
448
558
|
};
|
|
@@ -493,6 +603,12 @@ export type MutationRollbackPromptArgs = {
|
|
|
493
603
|
export type MutationSetElementContentArgs = {
|
|
494
604
|
content?: InputMaybe<Scalars['JSON']['input']>;
|
|
495
605
|
id: Scalars['ID']['input'];
|
|
606
|
+
provenance?: InputMaybe<Array<Scalars['ID']['input']>>;
|
|
607
|
+
};
|
|
608
|
+
export type MutationSetExternalReferenceArgs = {
|
|
609
|
+
externalId: Scalars['String']['input'];
|
|
610
|
+
integrationId: Scalars['ID']['input'];
|
|
611
|
+
namespace: Scalars['String']['input'];
|
|
496
612
|
};
|
|
497
613
|
export type MutationSetSecretRefArgs = {
|
|
498
614
|
id: Scalars['ID']['input'];
|
|
@@ -505,6 +621,9 @@ export type MutationSetValueArgs = {
|
|
|
505
621
|
export type MutationStartIntegrationArgs = {
|
|
506
622
|
id: Scalars['ID']['input'];
|
|
507
623
|
};
|
|
624
|
+
export type MutationStopAgentArgs = {
|
|
625
|
+
threadId: Scalars['ID']['input'];
|
|
626
|
+
};
|
|
508
627
|
export type MutationStopIntegrationArgs = {
|
|
509
628
|
id: Scalars['ID']['input'];
|
|
510
629
|
};
|
|
@@ -640,6 +759,7 @@ export type Query = {
|
|
|
640
759
|
element: Element;
|
|
641
760
|
elementByKey: Element;
|
|
642
761
|
integration?: Maybe<Integration>;
|
|
762
|
+
integrationByExternalReference?: Maybe<Integration>;
|
|
643
763
|
integrationByKey?: Maybe<Integration>;
|
|
644
764
|
integrations: IntegrationConnection;
|
|
645
765
|
log: Log;
|
|
@@ -690,6 +810,10 @@ export type QueryElementByKeyArgs = {
|
|
|
690
810
|
export type QueryIntegrationArgs = {
|
|
691
811
|
id: Scalars['ID']['input'];
|
|
692
812
|
};
|
|
813
|
+
export type QueryIntegrationByExternalReferenceArgs = {
|
|
814
|
+
externalId: Scalars['String']['input'];
|
|
815
|
+
namespace: Scalars['String']['input'];
|
|
816
|
+
};
|
|
693
817
|
export type QueryIntegrationByKeyArgs = {
|
|
694
818
|
accountId: Scalars['ID']['input'];
|
|
695
819
|
key: Scalars['ID']['input'];
|
|
@@ -701,6 +825,7 @@ export type QueryIntegrationsArgs = {
|
|
|
701
825
|
first?: InputMaybe<Scalars['Int']['input']>;
|
|
702
826
|
last?: InputMaybe<Scalars['Int']['input']>;
|
|
703
827
|
orderBy?: InputMaybe<IntegrationOrderField>;
|
|
828
|
+
type?: InputMaybe<IntegrationType>;
|
|
704
829
|
};
|
|
705
830
|
export type QueryLogArgs = {
|
|
706
831
|
id: Scalars['ID']['input'];
|
|
@@ -750,6 +875,7 @@ export type ResolvedShadowElement = {
|
|
|
750
875
|
__typename?: 'ResolvedShadowElement';
|
|
751
876
|
content?: Maybe<ElementContent>;
|
|
752
877
|
description?: Maybe<Scalars['String']['output']>;
|
|
878
|
+
integration?: Maybe<Integration>;
|
|
753
879
|
key: Scalars['ID']['output'];
|
|
754
880
|
name: Scalars['String']['output'];
|
|
755
881
|
type: ElementType;
|
|
@@ -797,6 +923,7 @@ export type RetryRule = Element & {
|
|
|
797
923
|
createdAt: Scalars['DateTime']['output'];
|
|
798
924
|
description?: Maybe<Scalars['String']['output']>;
|
|
799
925
|
id: Scalars['ID']['output'];
|
|
926
|
+
integration?: Maybe<Integration>;
|
|
800
927
|
key: Scalars['ID']['output'];
|
|
801
928
|
name: Scalars['String']['output'];
|
|
802
929
|
updatedAt: Scalars['DateTime']['output'];
|
|
@@ -846,6 +973,7 @@ export type Schema = Element & {
|
|
|
846
973
|
createdAt: Scalars['DateTime']['output'];
|
|
847
974
|
description?: Maybe<Scalars['String']['output']>;
|
|
848
975
|
id: Scalars['ID']['output'];
|
|
976
|
+
integration?: Maybe<Integration>;
|
|
849
977
|
key: Scalars['ID']['output'];
|
|
850
978
|
name: Scalars['String']['output'];
|
|
851
979
|
updatedAt: Scalars['DateTime']['output'];
|
|
@@ -856,6 +984,7 @@ export type SchemaMutation = Element & {
|
|
|
856
984
|
createdAt: Scalars['DateTime']['output'];
|
|
857
985
|
description?: Maybe<Scalars['String']['output']>;
|
|
858
986
|
id: Scalars['ID']['output'];
|
|
987
|
+
integration?: Maybe<Integration>;
|
|
859
988
|
key: Scalars['ID']['output'];
|
|
860
989
|
name: Scalars['String']['output'];
|
|
861
990
|
updatedAt: Scalars['DateTime']['output'];
|
|
@@ -866,6 +995,7 @@ export type Service = Element & {
|
|
|
866
995
|
createdAt: Scalars['DateTime']['output'];
|
|
867
996
|
description?: Maybe<Scalars['String']['output']>;
|
|
868
997
|
id: Scalars['ID']['output'];
|
|
998
|
+
integration?: Maybe<Integration>;
|
|
869
999
|
key: Scalars['ID']['output'];
|
|
870
1000
|
name: Scalars['String']['output'];
|
|
871
1001
|
updatedAt: Scalars['DateTime']['output'];
|
|
@@ -928,6 +1058,7 @@ export type UserConnection = {
|
|
|
928
1058
|
};
|
|
929
1059
|
export declare enum UserType {
|
|
930
1060
|
Agent = "agent",
|
|
1061
|
+
Service = "service",
|
|
931
1062
|
Support = "support",
|
|
932
1063
|
User = "user"
|
|
933
1064
|
}
|
|
@@ -938,6 +1069,7 @@ export type Value = Element & {
|
|
|
938
1069
|
description?: Maybe<Scalars['String']['output']>;
|
|
939
1070
|
hasValue: Scalars['Boolean']['output'];
|
|
940
1071
|
id: Scalars['ID']['output'];
|
|
1072
|
+
integration?: Maybe<Integration>;
|
|
941
1073
|
key: Scalars['ID']['output'];
|
|
942
1074
|
name: Scalars['String']['output'];
|
|
943
1075
|
updatedAt: Scalars['DateTime']['output'];
|
|
@@ -947,12 +1079,16 @@ export type Version = {
|
|
|
947
1079
|
__typename?: 'Version';
|
|
948
1080
|
auths: Array<Auth>;
|
|
949
1081
|
config?: Maybe<ConfigElement>;
|
|
1082
|
+
configuration: Scalars['JSON']['output'];
|
|
950
1083
|
dictionaries: Array<Dictionary>;
|
|
951
1084
|
elements: Array<Element>;
|
|
1085
|
+
endpointLists: Array<EndpointList>;
|
|
1086
|
+
endpoints: Array<Endpoint>;
|
|
952
1087
|
flows: Array<Flow>;
|
|
953
1088
|
id: Scalars['ID']['output'];
|
|
954
1089
|
isActive: Scalars['Boolean']['output'];
|
|
955
1090
|
jobs: Array<Job>;
|
|
1091
|
+
model: IntegrationModel;
|
|
956
1092
|
mutations: Array<SchemaMutation>;
|
|
957
1093
|
name?: Maybe<Scalars['String']['output']>;
|
|
958
1094
|
schemas: Array<Schema>;
|
package/dist/generated/schema.js
CHANGED
|
@@ -20,6 +20,8 @@ export var ElementType;
|
|
|
20
20
|
ElementType["Auth"] = "auth";
|
|
21
21
|
ElementType["Config"] = "config";
|
|
22
22
|
ElementType["Dictionary"] = "dictionary";
|
|
23
|
+
ElementType["Endpoint"] = "endpoint";
|
|
24
|
+
ElementType["EndpointList"] = "endpointList";
|
|
23
25
|
ElementType["Flow"] = "flow";
|
|
24
26
|
ElementType["Job"] = "job";
|
|
25
27
|
ElementType["Mutation"] = "mutation";
|
|
@@ -66,6 +68,18 @@ export var LogType;
|
|
|
66
68
|
LogType["Trigger"] = "trigger";
|
|
67
69
|
LogType["Unload"] = "unload";
|
|
68
70
|
})(LogType || (LogType = {}));
|
|
71
|
+
export var MessageType;
|
|
72
|
+
(function (MessageType) {
|
|
73
|
+
MessageType["Error"] = "error";
|
|
74
|
+
MessageType["Message"] = "message";
|
|
75
|
+
MessageType["ToolUse"] = "toolUse";
|
|
76
|
+
})(MessageType || (MessageType = {}));
|
|
77
|
+
export var ModelStepType;
|
|
78
|
+
(function (ModelStepType) {
|
|
79
|
+
ModelStepType["Read"] = "read";
|
|
80
|
+
ModelStepType["Transform"] = "transform";
|
|
81
|
+
ModelStepType["Write"] = "write";
|
|
82
|
+
})(ModelStepType || (ModelStepType = {}));
|
|
69
83
|
export var NotificationType;
|
|
70
84
|
(function (NotificationType) {
|
|
71
85
|
NotificationType["Failure"] = "failure";
|
|
@@ -85,6 +99,7 @@ export var Status;
|
|
|
85
99
|
export var UserType;
|
|
86
100
|
(function (UserType) {
|
|
87
101
|
UserType["Agent"] = "agent";
|
|
102
|
+
UserType["Service"] = "service";
|
|
88
103
|
UserType["Support"] = "support";
|
|
89
104
|
UserType["User"] = "user";
|
|
90
105
|
})(UserType || (UserType = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../src/generated/schema.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../src/generated/schema.ts"],"names":[],"mappings":"AA0DA,MAAM,CAAN,IAAY,iBAOX;AAPD,WAAY,iBAAiB;IAE3B,4CAAuB,CAAA;IAEvB,kCAAa,CAAA;IAEb,4CAAuB,CAAA;AACzB,CAAC,EAPW,iBAAiB,KAAjB,iBAAiB,QAO5B;AAGD,MAAM,CAAN,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,8BAAe,CAAA;IACf,gCAAiB,CAAA;IACjB,8BAAe,CAAA;AACjB,CAAC,EAJW,WAAW,KAAX,WAAW,QAItB;AA+FD,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;AAmCD,MAAM,CAAN,IAAY,WAaX;AAbD,WAAY,WAAW;IACrB,4BAAa,CAAA;IACb,gCAAiB,CAAA;IACjB,wCAAyB,CAAA;IACzB,oCAAqB,CAAA;IACrB,4CAA6B,CAAA;IAC7B,4BAAa,CAAA;IACb,0BAAW,CAAA;IACX,oCAAqB,CAAA;IACrB,sCAAuB,CAAA;IACvB,gCAAiB,CAAA;IACjB,kCAAmB,CAAA;IACnB,8BAAe,CAAA;AACjB,CAAC,EAbW,WAAW,KAAX,WAAW,QAatB;AAsPD,MAAM,CAAN,IAAY,qBASX;AATD,WAAY,qBAAqB;IAE/B,4CAAmB,CAAA;IAEnB,gDAAuB,CAA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B,KAAhB,gBAAgB,QAG3B;AAmeD,MAAM,CAAN,IAAY,iBAOX;AAPD,WAAY,iBAAiB;IAE3B,4CAAuB,CAAA;IAEvB,kCAAa,CAAA;IAEb,4CAAuB,CAAA;AACzB,CAAC,EAPW,iBAAiB,KAAjB,iBAAiB,QAO5B;AA0DD,MAAM,CAAN,IAAY,MAGX;AAHD,WAAY,MAAM;IAChB,2BAAiB,CAAA;IACjB,+BAAqB,CAAA;AACvB,CAAC,EAHW,MAAM,KAAN,MAAM,QAGjB;AAiFD,MAAM,CAAN,IAAY,QASX;AATD,WAAY,QAAQ;IAElB,2BAAe,CAAA;IAEf,+BAAmB,CAAA;IAEnB,+BAAmB,CAAA;IAEnB,yBAAa,CAAA;AACf,CAAC,EATW,QAAQ,KAAR,QAAQ,QASnB"}
|
package/dist/implode/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import fs from 'node:fs';
|
|
2
1
|
import { type GraphQLRequestClient } from '../utils/graphqlClient.js';
|
|
3
2
|
import type { Command } from 'commander';
|
|
4
|
-
|
|
3
|
+
import type { GreatFs } from '../types.js';
|
|
4
|
+
export declare const action: (log: (message: string) => void, apiToken?: string, client?: GraphQLRequestClient, fsImpl?: GreatFs) => (folderPath?: string) => Promise<void>;
|
|
5
5
|
declare const _default: (program: Command, apiToken?: string) => Command;
|
|
6
6
|
export default _default;
|
package/dist/implode/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/implode/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAA;AACxB,OAAO,IAAI,MAAM,WAAW,CAAA;AAC5B,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAA;AACjC,OAAO,SAAS,MAAM,uBAAuB,CAAA;AAC7C,OAAO,EACL,aAAa,EACb,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,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S,CAAC,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,CAAA;QACtE,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,0BAA0B,UAAU,EAAE,CAAC,CAAC,CAAA;IAC1D,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,gCAAgC,KAAK,EAAE,CAAC,CAAC,CAAA;IACzD,CAAC;AACH,CAAC,CAAA;AAEH,eAAe,CAAC,OAAgB,EAAE,QAAiB,EAAE,EAAE,CACrD,OAAO;KACJ,OAAO,CAAC,SAAS,CAAC;KAClB,WAAW,CACV,mEAAmE,CACpE;KACA,QAAQ,CAAC,UAAU,EAAE,mDAAmD,CAAC;KACzE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAA"}
|
|
@@ -1,11 +1,24 @@
|
|
|
1
1
|
import { escapeMongo } from './escapeMongo.js';
|
|
2
|
-
function stripMetaFields({ key, ...rest }) {
|
|
2
|
+
function stripMetaFields({ key, $shadow: _shadow, ...rest }) {
|
|
3
3
|
return rest;
|
|
4
4
|
}
|
|
5
5
|
function transformArrayElement(element) {
|
|
6
6
|
const content = stripMetaFields(element);
|
|
7
7
|
return escapeMongo({ id: element.key, ...content });
|
|
8
8
|
}
|
|
9
|
+
const inlineEndpoint = (key, endpoint) => endpoint ? { id: key, ...stripMetaFields(endpoint) } : { id: key };
|
|
10
|
+
function resolveEndpoints(service, endpointsByKey) {
|
|
11
|
+
const { endpoints } = service;
|
|
12
|
+
if (!Array.isArray(endpoints)) {
|
|
13
|
+
return service;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
...service,
|
|
17
|
+
endpoints: endpoints.map((entry) => typeof entry === 'string'
|
|
18
|
+
? inlineEndpoint(entry, endpointsByKey.get(entry))
|
|
19
|
+
: entry),
|
|
20
|
+
};
|
|
21
|
+
}
|
|
9
22
|
function transformMutationElement(element) {
|
|
10
23
|
const { mutation, ...rest } = stripMetaFields(element);
|
|
11
24
|
return [element.key, escapeMongo(mutation ?? rest)];
|
|
@@ -31,7 +44,8 @@ function transformValueElement(element, fetchedValues, fetchedSecretRefs) {
|
|
|
31
44
|
}
|
|
32
45
|
export function transformToLegacy(integration, elements, fetchedValues = new Map(), fetchedSecretRefs = new Map()) {
|
|
33
46
|
const schemas = elements.schemas.map(transformArrayElement);
|
|
34
|
-
const
|
|
47
|
+
const endpointsByKey = new Map(elements.endpoints.map((endpoint) => [endpoint.key, endpoint]));
|
|
48
|
+
const services = elements.services.map((service) => transformArrayElement(resolveEndpoints(service, endpointsByKey)));
|
|
35
49
|
const auths = elements.auths.map(transformArrayElement);
|
|
36
50
|
const jobs = elements.jobs.map(transformArrayElement);
|
|
37
51
|
const retryRules = elements.retryRules.map(transformArrayElement);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transform.js","sourceRoot":"","sources":["../../src/implode/transform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;
|
|
1
|
+
{"version":3,"file":"transform.js","sourceRoot":"","sources":["../../src/implode/transform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAqC9C,SAAS,eAAe,CAAC,EACvB,GAAG,EACH,OAAO,EAAE,OAAO,EAChB,GAAG,IAAI,EACK;IACZ,OAAO,IAAI,CAAA;AACb,CAAC;AAED,SAAS,qBAAqB,CAAC,OAAoB;IACjD,MAAM,OAAO,GAAG,eAAe,CAAC,OAAO,CAAC,CAAA;IACxC,OAAO,WAAW,CAAC,EAAE,EAAE,EAAE,OAAO,CAAC,GAAG,EAAE,GAAG,OAAO,EAAE,CAAC,CAAA;AACrD,CAAC;AAKD,MAAM,cAAc,GAAG,CACrB,GAAW,EACX,QAAiC,EACR,EAAE,CAC3B,QAAQ,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,GAAG,EAAE,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,MAAM;QAC1B,MAAM;QACN,UAAU;QACV,WAAW,EAAE;YACX,GAAG,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,WAAW,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YAC1D,OAAO;YACP,QAAQ;YACR,KAAK;YACL,SAAS;YACT,YAAY;YACZ,IAAI;SACL;KACF,CAAA;AACH,CAAC"}
|
package/dist/import/index.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import fs from 'node:fs';
|
|
2
1
|
import Conf from 'conf';
|
|
3
2
|
import { type GraphQLRequestClient } from '../utils/graphqlClient.js';
|
|
4
3
|
import type { ConfigSchema } from '../utils/config.js';
|
|
5
4
|
import type { Command } from 'commander';
|
|
6
|
-
|
|
5
|
+
import type { GreatFs } from '../types.js';
|
|
6
|
+
export declare const action: (log: (message: string) => void, apiToken?: string, client?: GraphQLRequestClient, fsImpl?: GreatFs, config?: Conf<ConfigSchema>) => (templateIdOrKey: string, options?: {
|
|
7
|
+
account?: string;
|
|
8
|
+
}) => Promise<void>;
|
|
7
9
|
declare const _default: (program: Command, apiToken?: string) => Command;
|
|
8
10
|
export default _default;
|
package/dist/import/index.js
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import chalk from 'chalk';
|
|
2
2
|
import { getClient } from '../utils/graphqlClient.js';
|
|
3
|
+
import { handleGraphQLError } from '../utils/graphqlError.js';
|
|
3
4
|
import { fetchIntegrationFromFile } from '../utils/fetchLocal.js';
|
|
4
5
|
import { resolveTemplateImport } from '../utils/resolveTemplateImport.js';
|
|
6
|
+
import { resolveAccountId } from '../utils/resolveAccount.js';
|
|
7
|
+
import { resolveIntegration } from '../utils/resolveIntegration.js';
|
|
5
8
|
import { readGreatFile, writeGreatFile, upsertImportRecord, } from '../utils/greatFile.js';
|
|
6
9
|
import { writeShadowElements, logShadowConflicts, } from '../utils/writeShadowElement.js';
|
|
7
|
-
export const action = (log, apiToken, client, fsImpl, config) => async function importTemplate(
|
|
8
|
-
if (!
|
|
9
|
-
log(chalk.red('Template id is required'));
|
|
10
|
-
log(`Usage: ${chalk.bold('great import <template-id>')}`);
|
|
10
|
+
export const action = (log, apiToken, client, fsImpl, config) => async function importTemplate(templateIdOrKey, options) {
|
|
11
|
+
if (!templateIdOrKey) {
|
|
12
|
+
log(chalk.red('Template id or key is required'));
|
|
13
|
+
log(`Usage: ${chalk.bold('great import <template-id-or-key>')}`);
|
|
11
14
|
return;
|
|
12
15
|
}
|
|
13
16
|
if (!fetchIntegrationFromFile(fsImpl)) {
|
|
@@ -16,12 +19,26 @@ export const action = (log, apiToken, client, fsImpl, config) => async function
|
|
|
16
19
|
return;
|
|
17
20
|
}
|
|
18
21
|
const graphqlClient = getClient(apiToken, client, config);
|
|
22
|
+
const { accountId, error: accountError } = await resolveAccountId(options ?? {}, apiToken ?? '', graphqlClient, config, fsImpl);
|
|
23
|
+
if (accountError) {
|
|
24
|
+
handleGraphQLError(accountError, log);
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
const template = await resolveIntegration(templateIdOrKey, accountId, apiToken, graphqlClient);
|
|
28
|
+
if (template.error) {
|
|
29
|
+
handleGraphQLError(new Error(template.error), log);
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
const templateId = template.id;
|
|
19
33
|
const resolved = await resolveTemplateImport(graphqlClient, templateId, log);
|
|
20
34
|
if (!resolved) {
|
|
21
35
|
return;
|
|
22
36
|
}
|
|
23
37
|
const great = readGreatFile(undefined, fsImpl);
|
|
24
|
-
const result = writeShadowElements(great, resolved.elements, {
|
|
38
|
+
const result = writeShadowElements(great, resolved.elements, {
|
|
39
|
+
mode: 'import',
|
|
40
|
+
fsImpl,
|
|
41
|
+
});
|
|
25
42
|
if (result.conflicts.length > 0) {
|
|
26
43
|
logShadowConflicts('Import', result.conflicts, log);
|
|
27
44
|
return;
|
|
@@ -29,12 +46,16 @@ export const action = (log, apiToken, client, fsImpl, config) => async function
|
|
|
29
46
|
upsertImportRecord(great, templateId, resolved.timestamp);
|
|
30
47
|
writeGreatFile(great, undefined, fsImpl);
|
|
31
48
|
log(chalk.green(`Imported ${result.written.length} element(s) from template ${templateId}`));
|
|
49
|
+
for (const merged of result.merged) {
|
|
50
|
+
log(chalk.green(`Merged ${merged.folder}/${merged.key} from template ${templateId} (now a local endpoint list)`));
|
|
51
|
+
}
|
|
32
52
|
if (result.skipped.length > 0) {
|
|
33
53
|
log(chalk.yellow(`Skipped ${result.skipped.length} config element(s)`));
|
|
34
54
|
}
|
|
35
55
|
};
|
|
36
56
|
export default (program, apiToken) => program
|
|
37
57
|
.command('import <template>')
|
|
38
|
-
.description('import a template, creating a shadow file for each element')
|
|
58
|
+
.description('import a template, creating a shadow file for each element, `<template>` can be a template id or key')
|
|
59
|
+
.option('-a, --account <id>', 'account id or key (uses default from config if not provided)')
|
|
39
60
|
.action(action(console.log, apiToken));
|
|
40
61
|
//# sourceMappingURL=index.js.map
|
package/dist/import/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/import/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/import/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,SAAS,EAA6B,MAAM,2BAA2B,CAAA;AAChF,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AAC7D,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAA;AACjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAA;AACzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAA;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAA;AACnE,OAAO,EACL,aAAa,EACb,cAAc,EACd,kBAAkB,GACnB,MAAM,uBAAuB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MAAM,oBAAoB,CAAC,CAAC,CAAA;IACzE,CAAC;AACH,CAAC,CAAA;AAEH,eAAe,CAAC,OAAgB,EAAE,QAAiB,EAAE,EAAE,CACrD,OAAO;KACJ,OAAO,CAAC,mBAAmB,CAAC;KAC5B,WAAW,CACV,sGAAsG,CACvG;KACA,MAAM,CACL,oBAAoB,EACpB,8DAA8D,CAC/D;KACA,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAA"}
|
package/dist/include/index.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import fs from 'node:fs';
|
|
2
1
|
import Conf from 'conf';
|
|
3
2
|
import { type GraphQLRequestClient } from '../utils/graphqlClient.js';
|
|
3
|
+
import promptForEndpoints from '../utils/promptForEndpoints.js';
|
|
4
|
+
import promptForReplaceLocal from '../utils/promptForReplaceLocal.js';
|
|
4
5
|
import type { ConfigSchema } from '../utils/config.js';
|
|
5
6
|
import type { Command } from 'commander';
|
|
6
|
-
|
|
7
|
+
import type { GreatFs } from '../types.js';
|
|
8
|
+
export declare const action: (log: (message: string) => void, apiToken?: string, client?: GraphQLRequestClient, fsImpl?: GreatFs, config?: Conf<ConfigSchema>, promptForEndpointsFn?: typeof promptForEndpoints, promptForReplaceLocalFn?: typeof promptForReplaceLocal) => (elementId: string, options?: {
|
|
7
9
|
pinnedAt?: string;
|
|
8
10
|
}) => Promise<void>;
|
|
9
11
|
declare const _default: (program: Command, apiToken?: string) => Command;
|