@wirechunk/cli 0.0.3 → 0.0.4
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/src/core-api/api.ts
CHANGED
|
@@ -83,6 +83,7 @@ export type AddressInput = {
|
|
|
83
83
|
*/
|
|
84
84
|
export type AdminUser = {
|
|
85
85
|
__typename?: 'AdminUser';
|
|
86
|
+
apiTokens: PersonalApiTokensList;
|
|
86
87
|
displayName: Scalars['String']['output'];
|
|
87
88
|
email: Scalars['String']['output'];
|
|
88
89
|
emailVerified: Scalars['Boolean']['output'];
|
|
@@ -114,22 +115,9 @@ export type AgreementsList = {
|
|
|
114
115
|
totalCount: Scalars['Int']['output'];
|
|
115
116
|
};
|
|
116
117
|
|
|
117
|
-
export type ApiToken =
|
|
118
|
-
__typename?: 'ApiToken';
|
|
119
|
-
createdAt: Scalars['Date']['output'];
|
|
120
|
-
id: Scalars['String']['output'];
|
|
121
|
-
invalidatedAt?: Maybe<Scalars['Date']['output']>;
|
|
122
|
-
name: Scalars['String']['output'];
|
|
123
|
-
};
|
|
124
|
-
|
|
125
|
-
export type ApiTokensList = ListResult & {
|
|
126
|
-
__typename?: 'ApiTokensList';
|
|
127
|
-
apiTokens: Array<ApiToken>;
|
|
128
|
-
limit: Scalars['Int']['output'];
|
|
129
|
-
totalCount: Scalars['Int']['output'];
|
|
130
|
-
};
|
|
118
|
+
export type ApiToken = PersonalApiToken | PlatformApiToken;
|
|
131
119
|
|
|
132
|
-
export type ApplyCustomPromoCodeResult = ApplyCustomPromoCodeSuccessResult |
|
|
120
|
+
export type ApplyCustomPromoCodeResult = ApplyCustomPromoCodeSuccessResult | InternalError;
|
|
133
121
|
|
|
134
122
|
export type ApplyCustomPromoCodeSuccessResult = {
|
|
135
123
|
__typename?: 'ApplyCustomPromoCodeSuccessResult';
|
|
@@ -139,7 +127,7 @@ export type ApplyCustomPromoCodeSuccessResult = {
|
|
|
139
127
|
valid: Scalars['Boolean']['output'];
|
|
140
128
|
};
|
|
141
129
|
|
|
142
|
-
export type ArchiveComponentResult = ArchiveComponentSuccessResult |
|
|
130
|
+
export type ArchiveComponentResult = ArchiveComponentSuccessResult | UserError;
|
|
143
131
|
|
|
144
132
|
export type ArchiveComponentSuccessResult = {
|
|
145
133
|
__typename?: 'ArchiveComponentSuccessResult';
|
|
@@ -291,33 +279,20 @@ export type CreateAdminUserInput = {
|
|
|
291
279
|
platformId: Scalars['String']['input'];
|
|
292
280
|
};
|
|
293
281
|
|
|
294
|
-
export type CreateAdminUserResult = CreateAdminUserSuccessResult |
|
|
282
|
+
export type CreateAdminUserResult = CreateAdminUserSuccessResult | UserError;
|
|
295
283
|
|
|
296
284
|
export type CreateAdminUserSuccessResult = {
|
|
297
285
|
__typename?: 'CreateAdminUserSuccessResult';
|
|
298
286
|
platformAdminUser: PlatformAdminUser;
|
|
299
287
|
};
|
|
300
288
|
|
|
301
|
-
export type CreateApiTokenInput = {
|
|
302
|
-
name: Scalars['String']['input'];
|
|
303
|
-
};
|
|
304
|
-
|
|
305
|
-
export type CreateApiTokenResult = CreateApiTokenSuccessResult | GenericUserError;
|
|
306
|
-
|
|
307
|
-
export type CreateApiTokenSuccessResult = {
|
|
308
|
-
__typename?: 'CreateApiTokenSuccessResult';
|
|
309
|
-
apiToken: ApiToken;
|
|
310
|
-
/** A JWT. */
|
|
311
|
-
token: Scalars['String']['output'];
|
|
312
|
-
};
|
|
313
|
-
|
|
314
289
|
export type CreateComponentInput = {
|
|
315
290
|
components?: InputMaybe<Scalars['String']['input']>;
|
|
316
291
|
name: Scalars['String']['input'];
|
|
317
292
|
platformId: Scalars['String']['input'];
|
|
318
293
|
};
|
|
319
294
|
|
|
320
|
-
export type CreateComponentResult = CreateComponentSuccessResult |
|
|
295
|
+
export type CreateComponentResult = CreateComponentSuccessResult | UserError;
|
|
321
296
|
|
|
322
297
|
export type CreateComponentSuccessResult = {
|
|
323
298
|
__typename?: 'CreateComponentSuccessResult';
|
|
@@ -329,13 +304,28 @@ export type CreateCourseInput = {
|
|
|
329
304
|
title: Scalars['String']['input'];
|
|
330
305
|
};
|
|
331
306
|
|
|
332
|
-
export type CreateCourseResult = CreateCourseSuccessResult |
|
|
307
|
+
export type CreateCourseResult = CreateCourseSuccessResult | UserError;
|
|
333
308
|
|
|
334
309
|
export type CreateCourseSuccessResult = {
|
|
335
310
|
__typename?: 'CreateCourseSuccessResult';
|
|
336
311
|
course: Course;
|
|
337
312
|
};
|
|
338
313
|
|
|
314
|
+
export type CreateCustomTableEditorFormVersionInput = {
|
|
315
|
+
components: Scalars['String']['input'];
|
|
316
|
+
customTableId: Scalars['String']['input'];
|
|
317
|
+
};
|
|
318
|
+
|
|
319
|
+
export type CreateCustomTableEditorFormVersionResult =
|
|
320
|
+
| AuthorizationError
|
|
321
|
+
| CreateCustomTableEditorFormVersionSuccessResult
|
|
322
|
+
| UserError;
|
|
323
|
+
|
|
324
|
+
export type CreateCustomTableEditorFormVersionSuccessResult = {
|
|
325
|
+
__typename?: 'CreateCustomTableEditorFormVersionSuccessResult';
|
|
326
|
+
customTableEditorFormVersion: CustomTableEditorFormVersion;
|
|
327
|
+
};
|
|
328
|
+
|
|
339
329
|
export type CreateExtensionInput = {
|
|
340
330
|
/** A JSON object. */
|
|
341
331
|
config?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -344,10 +334,7 @@ export type CreateExtensionInput = {
|
|
|
344
334
|
platformId: Scalars['String']['input'];
|
|
345
335
|
};
|
|
346
336
|
|
|
347
|
-
export type CreateExtensionResult =
|
|
348
|
-
| CreateExtensionSuccessResult
|
|
349
|
-
| GenericInternalError
|
|
350
|
-
| GenericUserError;
|
|
337
|
+
export type CreateExtensionResult = CreateExtensionSuccessResult | InternalError | UserError;
|
|
351
338
|
|
|
352
339
|
export type CreateExtensionSuccessResult = {
|
|
353
340
|
__typename?: 'CreateExtensionSuccessResult';
|
|
@@ -372,8 +359,8 @@ export type CreateExtensionVersionInput = {
|
|
|
372
359
|
export type CreateExtensionVersionResult =
|
|
373
360
|
| AuthorizationError
|
|
374
361
|
| CreateExtensionVersionSuccessResult
|
|
375
|
-
|
|
|
376
|
-
|
|
|
362
|
+
| InternalError
|
|
363
|
+
| UserError;
|
|
377
364
|
|
|
378
365
|
export type CreateExtensionVersionSuccessResult = {
|
|
379
366
|
__typename?: 'CreateExtensionVersionSuccessResult';
|
|
@@ -390,7 +377,7 @@ export type CreateLayoutInput = {
|
|
|
390
377
|
siteId: Scalars['String']['input'];
|
|
391
378
|
};
|
|
392
379
|
|
|
393
|
-
export type CreateLayoutResult = CreateLayoutSuccessResult |
|
|
380
|
+
export type CreateLayoutResult = CreateLayoutSuccessResult | UserError;
|
|
394
381
|
|
|
395
382
|
export type CreateLayoutSuccessResult = {
|
|
396
383
|
__typename?: 'CreateLayoutSuccessResult';
|
|
@@ -407,7 +394,7 @@ export type CreateLayoutTemplateInput = {
|
|
|
407
394
|
export type CreateLayoutTemplateResult =
|
|
408
395
|
| AuthorizationError
|
|
409
396
|
| CreateLayoutTemplateSuccessResult
|
|
410
|
-
|
|
|
397
|
+
| UserError;
|
|
411
398
|
|
|
412
399
|
export type CreateLayoutTemplateSuccessResult = {
|
|
413
400
|
__typename?: 'CreateLayoutTemplateSuccessResult';
|
|
@@ -421,7 +408,7 @@ export type CreateLessonInput = {
|
|
|
421
408
|
title: Scalars['String']['input'];
|
|
422
409
|
};
|
|
423
410
|
|
|
424
|
-
export type CreateLessonResult = CreateLessonSuccessResult |
|
|
411
|
+
export type CreateLessonResult = CreateLessonSuccessResult | UserError;
|
|
425
412
|
|
|
426
413
|
export type CreateLessonSuccessResult = {
|
|
427
414
|
__typename?: 'CreateLessonSuccessResult';
|
|
@@ -433,7 +420,7 @@ export type CreateLessonUserInput = {
|
|
|
433
420
|
userId: Scalars['String']['input'];
|
|
434
421
|
};
|
|
435
422
|
|
|
436
|
-
export type CreateLessonUserResult = CreateLessonUserSuccessResult |
|
|
423
|
+
export type CreateLessonUserResult = CreateLessonUserSuccessResult | UserError;
|
|
437
424
|
|
|
438
425
|
export type CreateLessonUserSuccessResult = {
|
|
439
426
|
__typename?: 'CreateLessonUserSuccessResult';
|
|
@@ -441,7 +428,35 @@ export type CreateLessonUserSuccessResult = {
|
|
|
441
428
|
lessonUser: LessonUser;
|
|
442
429
|
};
|
|
443
430
|
|
|
444
|
-
export type
|
|
431
|
+
export type CreatePersonalApiTokenInput = {
|
|
432
|
+
name: Scalars['String']['input'];
|
|
433
|
+
};
|
|
434
|
+
|
|
435
|
+
export type CreatePersonalApiTokenResult = CreatePersonalApiTokenSuccessResult | UserError;
|
|
436
|
+
|
|
437
|
+
export type CreatePersonalApiTokenSuccessResult = {
|
|
438
|
+
__typename?: 'CreatePersonalApiTokenSuccessResult';
|
|
439
|
+
apiToken: PersonalApiToken;
|
|
440
|
+
/** A JWT. */
|
|
441
|
+
token: Scalars['String']['output'];
|
|
442
|
+
};
|
|
443
|
+
|
|
444
|
+
export type CreatePlatformApiTokenInput = {
|
|
445
|
+
name: Scalars['String']['input'];
|
|
446
|
+
permissions: Array<PermissionInput>;
|
|
447
|
+
platformId: Scalars['String']['input'];
|
|
448
|
+
};
|
|
449
|
+
|
|
450
|
+
export type CreatePlatformApiTokenResult = CreatePlatformApiTokenSuccessResult | UserError;
|
|
451
|
+
|
|
452
|
+
export type CreatePlatformApiTokenSuccessResult = {
|
|
453
|
+
__typename?: 'CreatePlatformApiTokenSuccessResult';
|
|
454
|
+
apiToken: PlatformApiToken;
|
|
455
|
+
/** A JWT. */
|
|
456
|
+
token: Scalars['String']['output'];
|
|
457
|
+
};
|
|
458
|
+
|
|
459
|
+
export type CreateProductResult = CreateProductSuccessResult | UserError;
|
|
445
460
|
|
|
446
461
|
export type CreateProductSuccessResult = {
|
|
447
462
|
__typename?: 'CreateProductSuccessResult';
|
|
@@ -454,7 +469,7 @@ export type CreateSequenceInput = {
|
|
|
454
469
|
title: Scalars['String']['input'];
|
|
455
470
|
};
|
|
456
471
|
|
|
457
|
-
export type CreateSequenceResult = CreateSequenceSuccessResult |
|
|
472
|
+
export type CreateSequenceResult = CreateSequenceSuccessResult | UserError;
|
|
458
473
|
|
|
459
474
|
export type CreateSequenceSuccessResult = {
|
|
460
475
|
__typename?: 'CreateSequenceSuccessResult';
|
|
@@ -480,8 +495,8 @@ export type CreateSiteInput = {
|
|
|
480
495
|
export type CreateSiteResult =
|
|
481
496
|
| AuthorizationError
|
|
482
497
|
| CreateSiteSuccessResult
|
|
483
|
-
|
|
|
484
|
-
|
|
|
498
|
+
| InternalError
|
|
499
|
+
| UserError;
|
|
485
500
|
|
|
486
501
|
export type CreateSiteSuccessResult = {
|
|
487
502
|
__typename?: 'CreateSiteSuccessResult';
|
|
@@ -495,7 +510,7 @@ export type CreateSiteTemplateInput = {
|
|
|
495
510
|
|
|
496
511
|
export type CreateSiteTemplateLayoutTemplatesResult =
|
|
497
512
|
| CreateSiteTemplateLayoutTemplatesSuccessResult
|
|
498
|
-
|
|
|
513
|
+
| UserError;
|
|
499
514
|
|
|
500
515
|
export type CreateSiteTemplateLayoutTemplatesSuccessResult = {
|
|
501
516
|
__typename?: 'CreateSiteTemplateLayoutTemplatesSuccessResult';
|
|
@@ -504,14 +519,14 @@ export type CreateSiteTemplateLayoutTemplatesSuccessResult = {
|
|
|
504
519
|
|
|
505
520
|
export type CreateSiteTemplatePageTemplatesResult =
|
|
506
521
|
| CreateSiteTemplatePageTemplatesSuccessResult
|
|
507
|
-
|
|
|
522
|
+
| UserError;
|
|
508
523
|
|
|
509
524
|
export type CreateSiteTemplatePageTemplatesSuccessResult = {
|
|
510
525
|
__typename?: 'CreateSiteTemplatePageTemplatesSuccessResult';
|
|
511
526
|
siteTemplate: SiteTemplate;
|
|
512
527
|
};
|
|
513
528
|
|
|
514
|
-
export type CreateSiteTemplateResult = CreateSiteTemplateSuccessResult |
|
|
529
|
+
export type CreateSiteTemplateResult = CreateSiteTemplateSuccessResult | UserError;
|
|
515
530
|
|
|
516
531
|
export type CreateSiteTemplateSuccessResult = {
|
|
517
532
|
__typename?: 'CreateSiteTemplateSuccessResult';
|
|
@@ -536,8 +551,8 @@ export type CreateUserInput = {
|
|
|
536
551
|
export type CreateUserResult =
|
|
537
552
|
| AuthorizationError
|
|
538
553
|
| CreateUserSuccessResult
|
|
539
|
-
|
|
|
540
|
-
|
|
|
554
|
+
| InternalError
|
|
555
|
+
| UserError;
|
|
541
556
|
|
|
542
557
|
export type CreateUserSuccessResult = {
|
|
543
558
|
__typename?: 'CreateUserSuccessResult';
|
|
@@ -635,6 +650,7 @@ export type CustomFieldsList = ListResult & {
|
|
|
635
650
|
|
|
636
651
|
export type CustomTable = {
|
|
637
652
|
__typename?: 'CustomTable';
|
|
653
|
+
currentEditorFormVersion?: Maybe<CustomTableEditorFormVersion>;
|
|
638
654
|
editorFormVersions: CustomTableEditorFormVersionsList;
|
|
639
655
|
fields: CustomFieldsList;
|
|
640
656
|
id: Scalars['String']['output'];
|
|
@@ -655,6 +671,7 @@ export type CustomTableVersionsArgs = {
|
|
|
655
671
|
|
|
656
672
|
export type CustomTableEditorFormVersion = {
|
|
657
673
|
__typename?: 'CustomTableEditorFormVersion';
|
|
674
|
+
byUser: UserProfile;
|
|
658
675
|
components: Scalars['String']['output'];
|
|
659
676
|
createdAt: Scalars['Date']['output'];
|
|
660
677
|
id: Scalars['String']['output'];
|
|
@@ -743,7 +760,7 @@ export type CustomTablesList = ListResult & {
|
|
|
743
760
|
export type DeleteExtensionVersionResult =
|
|
744
761
|
| AuthorizationError
|
|
745
762
|
| DeleteExtensionVersionSuccessResult
|
|
746
|
-
|
|
|
763
|
+
| UserError;
|
|
747
764
|
|
|
748
765
|
export type DeleteExtensionVersionSuccessResult = {
|
|
749
766
|
__typename?: 'DeleteExtensionVersionSuccessResult';
|
|
@@ -752,7 +769,7 @@ export type DeleteExtensionVersionSuccessResult = {
|
|
|
752
769
|
|
|
753
770
|
export type DeleteSiteTemplateLayoutTemplatesResult =
|
|
754
771
|
| DeleteSiteTemplateLayoutTemplatesSuccessResult
|
|
755
|
-
|
|
|
772
|
+
| UserError;
|
|
756
773
|
|
|
757
774
|
export type DeleteSiteTemplateLayoutTemplatesSuccessResult = {
|
|
758
775
|
__typename?: 'DeleteSiteTemplateLayoutTemplatesSuccessResult';
|
|
@@ -761,7 +778,7 @@ export type DeleteSiteTemplateLayoutTemplatesSuccessResult = {
|
|
|
761
778
|
|
|
762
779
|
export type DeleteSiteTemplatePageTemplatesResult =
|
|
763
780
|
| DeleteSiteTemplatePageTemplatesSuccessResult
|
|
764
|
-
|
|
|
781
|
+
| UserError;
|
|
765
782
|
|
|
766
783
|
export type DeleteSiteTemplatePageTemplatesSuccessResult = {
|
|
767
784
|
__typename?: 'DeleteSiteTemplatePageTemplatesSuccessResult';
|
|
@@ -810,10 +827,7 @@ export type DuplicateComponentInput = {
|
|
|
810
827
|
name: Scalars['String']['input'];
|
|
811
828
|
};
|
|
812
829
|
|
|
813
|
-
export type DuplicateComponentResult =
|
|
814
|
-
| DuplicateComponentSuccessResult
|
|
815
|
-
| GenericInternalError
|
|
816
|
-
| GenericUserError;
|
|
830
|
+
export type DuplicateComponentResult = DuplicateComponentSuccessResult | InternalError | UserError;
|
|
817
831
|
|
|
818
832
|
export type DuplicateComponentSuccessResult = {
|
|
819
833
|
__typename?: 'DuplicateComponentSuccessResult';
|
|
@@ -825,7 +839,7 @@ export type DuplicateCourseInput = {
|
|
|
825
839
|
title: Scalars['String']['input'];
|
|
826
840
|
};
|
|
827
841
|
|
|
828
|
-
export type DuplicateCourseResult = DuplicateCourseSuccessResult |
|
|
842
|
+
export type DuplicateCourseResult = DuplicateCourseSuccessResult | UserError;
|
|
829
843
|
|
|
830
844
|
export type DuplicateCourseSuccessResult = {
|
|
831
845
|
__typename?: 'DuplicateCourseSuccessResult';
|
|
@@ -839,14 +853,14 @@ export type DuplicateLessonInput = {
|
|
|
839
853
|
title: Scalars['String']['input'];
|
|
840
854
|
};
|
|
841
855
|
|
|
842
|
-
export type DuplicateLessonResult = DuplicateLessonSuccessResult |
|
|
856
|
+
export type DuplicateLessonResult = DuplicateLessonSuccessResult | UserError;
|
|
843
857
|
|
|
844
858
|
export type DuplicateLessonSuccessResult = {
|
|
845
859
|
__typename?: 'DuplicateLessonSuccessResult';
|
|
846
860
|
lesson: Lesson;
|
|
847
861
|
};
|
|
848
862
|
|
|
849
|
-
export type DuplicateSequenceResult = DuplicateSequenceSuccessResult |
|
|
863
|
+
export type DuplicateSequenceResult = DuplicateSequenceSuccessResult | UserError;
|
|
850
864
|
|
|
851
865
|
export type DuplicateSequenceSuccessResult = {
|
|
852
866
|
__typename?: 'DuplicateSequenceSuccessResult';
|
|
@@ -861,7 +875,7 @@ export type EditComponentInput = {
|
|
|
861
875
|
propsSetupComponents?: InputMaybe<OptionalComponentsUpdate>;
|
|
862
876
|
};
|
|
863
877
|
|
|
864
|
-
export type EditComponentResult = EditComponentSuccessResult |
|
|
878
|
+
export type EditComponentResult = EditComponentSuccessResult | UserError;
|
|
865
879
|
|
|
866
880
|
export type EditComponentSuccessResult = {
|
|
867
881
|
__typename?: 'EditComponentSuccessResult';
|
|
@@ -878,7 +892,7 @@ export type EditCourseInput = {
|
|
|
878
892
|
title?: InputMaybe<StringUpdate>;
|
|
879
893
|
};
|
|
880
894
|
|
|
881
|
-
export type EditCourseResult = EditCourseSuccessResult |
|
|
895
|
+
export type EditCourseResult = EditCourseSuccessResult | UserError;
|
|
882
896
|
|
|
883
897
|
export type EditCourseSuccessResult = {
|
|
884
898
|
__typename?: 'EditCourseSuccessResult';
|
|
@@ -892,12 +906,14 @@ export type EditCustomTableInput = {
|
|
|
892
906
|
* accidentally overwrite changes made asynchronously.
|
|
893
907
|
*/
|
|
894
908
|
consistencyKeyCurrentTableVersionId?: InputMaybe<Scalars['String']['input']>;
|
|
895
|
-
|
|
909
|
+
currentEditorFormVersionId?: InputMaybe<StringUpdate>;
|
|
910
|
+
/** The new set of fields. If null or omitted, no changes are made to the fields. */
|
|
911
|
+
fields?: InputMaybe<Array<CustomFieldInput>>;
|
|
896
912
|
object: CustomTableObject;
|
|
897
913
|
platformId: Scalars['String']['input'];
|
|
898
914
|
};
|
|
899
915
|
|
|
900
|
-
export type EditCustomTableResult = EditCustomTableSuccessResult |
|
|
916
|
+
export type EditCustomTableResult = EditCustomTableSuccessResult | UserError;
|
|
901
917
|
|
|
902
918
|
export type EditCustomTableSuccessResult = {
|
|
903
919
|
__typename?: 'EditCustomTableSuccessResult';
|
|
@@ -912,10 +928,7 @@ export type EditExtensionInput = {
|
|
|
912
928
|
id: Scalars['String']['input'];
|
|
913
929
|
};
|
|
914
930
|
|
|
915
|
-
export type EditExtensionResult =
|
|
916
|
-
| AuthorizationError
|
|
917
|
-
| EditExtensionSuccessResult
|
|
918
|
-
| GenericUserError;
|
|
931
|
+
export type EditExtensionResult = AuthorizationError | EditExtensionSuccessResult | UserError;
|
|
919
932
|
|
|
920
933
|
export type EditExtensionSuccessResult = {
|
|
921
934
|
__typename?: 'EditExtensionSuccessResult';
|
|
@@ -925,8 +938,8 @@ export type EditExtensionSuccessResult = {
|
|
|
925
938
|
export type EditFormStepPositionResult =
|
|
926
939
|
| AuthorizationError
|
|
927
940
|
| EditFormStepPositionSuccessResult
|
|
928
|
-
|
|
|
929
|
-
|
|
|
941
|
+
| InternalError
|
|
942
|
+
| UserError;
|
|
930
943
|
|
|
931
944
|
export type EditFormStepPositionSuccessResult = {
|
|
932
945
|
__typename?: 'EditFormStepPositionSuccessResult';
|
|
@@ -941,28 +954,13 @@ export type EditFormTemplateEmailTemplateInput = {
|
|
|
941
954
|
|
|
942
955
|
export type EditFormTemplateEmailTemplateResult =
|
|
943
956
|
| EditFormTemplateEmailTemplateSuccessResult
|
|
944
|
-
|
|
|
957
|
+
| UserError;
|
|
945
958
|
|
|
946
959
|
export type EditFormTemplateEmailTemplateSuccessResult = {
|
|
947
960
|
__typename?: 'EditFormTemplateEmailTemplateSuccessResult';
|
|
948
961
|
formTemplate: FormTemplate;
|
|
949
962
|
};
|
|
950
963
|
|
|
951
|
-
export type EditFormTemplateFormattedDataTemplateInput = {
|
|
952
|
-
formTemplateId: Scalars['String']['input'];
|
|
953
|
-
formattedDataTemplate?: InputMaybe<OptionalStringUpdate>;
|
|
954
|
-
useFormattedDataTemplate: Scalars['Boolean']['input'];
|
|
955
|
-
};
|
|
956
|
-
|
|
957
|
-
export type EditFormTemplateFormattedDataTemplateResult =
|
|
958
|
-
| EditFormTemplateFormattedDataTemplateSuccessResult
|
|
959
|
-
| GenericUserError;
|
|
960
|
-
|
|
961
|
-
export type EditFormTemplateFormattedDataTemplateSuccessResult = {
|
|
962
|
-
__typename?: 'EditFormTemplateFormattedDataTemplateSuccessResult';
|
|
963
|
-
formTemplate: FormTemplate;
|
|
964
|
-
};
|
|
965
|
-
|
|
966
964
|
export type EditFormTemplateInput = {
|
|
967
965
|
components?: InputMaybe<ComponentsUpdate>;
|
|
968
966
|
emailBodyTemplate?: InputMaybe<OptionalStringUpdate>;
|
|
@@ -974,10 +972,7 @@ export type EditFormTemplateInput = {
|
|
|
974
972
|
useEmailSubjectTemplate?: InputMaybe<BooleanUpdate>;
|
|
975
973
|
};
|
|
976
974
|
|
|
977
|
-
export type EditFormTemplateResult =
|
|
978
|
-
| AuthorizationError
|
|
979
|
-
| EditFormTemplateSuccessResult
|
|
980
|
-
| GenericUserError;
|
|
975
|
+
export type EditFormTemplateResult = AuthorizationError | EditFormTemplateSuccessResult | UserError;
|
|
981
976
|
|
|
982
977
|
export type EditFormTemplateSuccessResult = {
|
|
983
978
|
__typename?: 'EditFormTemplateSuccessResult';
|
|
@@ -992,7 +987,7 @@ export type EditLayoutInput = {
|
|
|
992
987
|
status?: InputMaybe<PublishStatusUpdate>;
|
|
993
988
|
};
|
|
994
989
|
|
|
995
|
-
export type EditLayoutResult = EditLayoutSuccessResult |
|
|
990
|
+
export type EditLayoutResult = EditLayoutSuccessResult | UserError;
|
|
996
991
|
|
|
997
992
|
export type EditLayoutSuccessResult = {
|
|
998
993
|
__typename?: 'EditLayoutSuccessResult';
|
|
@@ -1010,7 +1005,7 @@ export type EditLayoutTemplateInput = {
|
|
|
1010
1005
|
export type EditLayoutTemplateResult =
|
|
1011
1006
|
| AuthorizationError
|
|
1012
1007
|
| EditLayoutTemplateSuccessResult
|
|
1013
|
-
|
|
|
1008
|
+
| UserError;
|
|
1014
1009
|
|
|
1015
1010
|
export type EditLayoutTemplateSuccessResult = {
|
|
1016
1011
|
__typename?: 'EditLayoutTemplateSuccessResult';
|
|
@@ -1028,7 +1023,7 @@ export type EditLessonInput = {
|
|
|
1028
1023
|
title?: InputMaybe<StringUpdate>;
|
|
1029
1024
|
};
|
|
1030
1025
|
|
|
1031
|
-
export type EditLessonResult = EditLessonSuccessResult |
|
|
1026
|
+
export type EditLessonResult = EditLessonSuccessResult | UserError;
|
|
1032
1027
|
|
|
1033
1028
|
export type EditLessonSuccessResult = {
|
|
1034
1029
|
__typename?: 'EditLessonSuccessResult';
|
|
@@ -1042,7 +1037,7 @@ export type EditLessonUserInput = {
|
|
|
1042
1037
|
state?: InputMaybe<StringUpdate>;
|
|
1043
1038
|
};
|
|
1044
1039
|
|
|
1045
|
-
export type EditLessonUserResult = EditLessonUserSuccessResult |
|
|
1040
|
+
export type EditLessonUserResult = EditLessonUserSuccessResult | UserError;
|
|
1046
1041
|
|
|
1047
1042
|
export type EditLessonUserSuccessResult = {
|
|
1048
1043
|
__typename?: 'EditLessonUserSuccessResult';
|
|
@@ -1059,11 +1054,11 @@ export type EditOrgPrimaryUserInput = {
|
|
|
1059
1054
|
userId: Scalars['String']['input'];
|
|
1060
1055
|
};
|
|
1061
1056
|
|
|
1062
|
-
export type EditOrgPrimaryUserResult = EditOrgPrimaryUserSuccessResult |
|
|
1057
|
+
export type EditOrgPrimaryUserResult = EditOrgPrimaryUserSuccessResult | UserError;
|
|
1063
1058
|
|
|
1064
1059
|
export type EditOrgPrimaryUserSuccessResult = {
|
|
1065
1060
|
__typename?: 'EditOrgPrimaryUserSuccessResult';
|
|
1066
|
-
org:
|
|
1061
|
+
org: Org;
|
|
1067
1062
|
previousPrimaryUser?: Maybe<User>;
|
|
1068
1063
|
};
|
|
1069
1064
|
|
|
@@ -1085,7 +1080,7 @@ export type EditPageInput = {
|
|
|
1085
1080
|
title?: InputMaybe<StringUpdate>;
|
|
1086
1081
|
};
|
|
1087
1082
|
|
|
1088
|
-
export type EditPageResult = AuthorizationError | EditPageSuccessResult |
|
|
1083
|
+
export type EditPageResult = AuthorizationError | EditPageSuccessResult | UserError;
|
|
1089
1084
|
|
|
1090
1085
|
export type EditPageSuccessResult = {
|
|
1091
1086
|
__typename?: 'EditPageSuccessResult';
|
|
@@ -1109,10 +1104,7 @@ export type EditPageTemplateInput = {
|
|
|
1109
1104
|
title?: InputMaybe<StringUpdate>;
|
|
1110
1105
|
};
|
|
1111
1106
|
|
|
1112
|
-
export type EditPageTemplateResult =
|
|
1113
|
-
| AuthorizationError
|
|
1114
|
-
| EditPageTemplateSuccessResult
|
|
1115
|
-
| GenericUserError;
|
|
1107
|
+
export type EditPageTemplateResult = AuthorizationError | EditPageTemplateSuccessResult | UserError;
|
|
1116
1108
|
|
|
1117
1109
|
export type EditPageTemplateSuccessResult = {
|
|
1118
1110
|
__typename?: 'EditPageTemplateSuccessResult';
|
|
@@ -1123,13 +1115,13 @@ export type EditPlatformAdminUserInput = {
|
|
|
1123
1115
|
active?: InputMaybe<BooleanUpdate>;
|
|
1124
1116
|
id: Scalars['String']['input'];
|
|
1125
1117
|
owner?: InputMaybe<BooleanUpdate>;
|
|
1126
|
-
|
|
1118
|
+
permissions?: InputMaybe<PermissionListUpdate>;
|
|
1127
1119
|
};
|
|
1128
1120
|
|
|
1129
1121
|
export type EditPlatformAdminUserResult =
|
|
1130
1122
|
| AuthorizationError
|
|
1131
1123
|
| EditPlatformAdminUserSuccessResult
|
|
1132
|
-
|
|
|
1124
|
+
| UserError;
|
|
1133
1125
|
|
|
1134
1126
|
export type EditPlatformAdminUserSuccessResult = {
|
|
1135
1127
|
__typename?: 'EditPlatformAdminUserSuccessResult';
|
|
@@ -1145,21 +1137,21 @@ export type EditPlatformInput = {
|
|
|
1145
1137
|
stripeWebhookSigningSecret?: InputMaybe<OptionalStringUpdate>;
|
|
1146
1138
|
};
|
|
1147
1139
|
|
|
1148
|
-
export type EditPlatformResult = EditPlatformSuccessResult |
|
|
1140
|
+
export type EditPlatformResult = EditPlatformSuccessResult | UserError;
|
|
1149
1141
|
|
|
1150
1142
|
export type EditPlatformSuccessResult = {
|
|
1151
1143
|
__typename?: 'EditPlatformSuccessResult';
|
|
1152
1144
|
platform: Platform;
|
|
1153
1145
|
};
|
|
1154
1146
|
|
|
1155
|
-
export type EditProductResult = EditProductSuccessResult |
|
|
1147
|
+
export type EditProductResult = EditProductSuccessResult | UserError;
|
|
1156
1148
|
|
|
1157
1149
|
export type EditProductSuccessResult = {
|
|
1158
1150
|
__typename?: 'EditProductSuccessResult';
|
|
1159
1151
|
product: SubscriptionPlan;
|
|
1160
1152
|
};
|
|
1161
1153
|
|
|
1162
|
-
export type EditSequenceResult = EditSequenceSuccessResult |
|
|
1154
|
+
export type EditSequenceResult = EditSequenceSuccessResult | UserError;
|
|
1163
1155
|
|
|
1164
1156
|
export type EditSequenceSuccessResult = {
|
|
1165
1157
|
__typename?: 'EditSequenceSuccessResult';
|
|
@@ -1172,7 +1164,7 @@ export type EditSequenceUserInput = {
|
|
|
1172
1164
|
userId: Scalars['String']['input'];
|
|
1173
1165
|
};
|
|
1174
1166
|
|
|
1175
|
-
export type EditSequenceUserResult = EditSequenceUserSuccessResult |
|
|
1167
|
+
export type EditSequenceUserResult = EditSequenceUserSuccessResult | UserError;
|
|
1176
1168
|
|
|
1177
1169
|
export type EditSequenceUserSuccessResult = {
|
|
1178
1170
|
__typename?: 'EditSequenceUserSuccessResult';
|
|
@@ -1197,11 +1189,7 @@ export type EditSiteInput = {
|
|
|
1197
1189
|
zendeskChatKey?: InputMaybe<OptionalStringUpdate>;
|
|
1198
1190
|
};
|
|
1199
1191
|
|
|
1200
|
-
export type EditSiteResult =
|
|
1201
|
-
| AuthorizationError
|
|
1202
|
-
| EditSiteSuccessResult
|
|
1203
|
-
| GenericInternalError
|
|
1204
|
-
| GenericUserError;
|
|
1192
|
+
export type EditSiteResult = AuthorizationError | EditSiteSuccessResult | InternalError | UserError;
|
|
1205
1193
|
|
|
1206
1194
|
export type EditSiteSuccessResult = {
|
|
1207
1195
|
__typename?: 'EditSiteSuccessResult';
|
|
@@ -1215,7 +1203,7 @@ export type EditUserInput = {
|
|
|
1215
1203
|
id: Scalars['String']['input'];
|
|
1216
1204
|
};
|
|
1217
1205
|
|
|
1218
|
-
export type EditUserResult = EditUserSuccessResult |
|
|
1206
|
+
export type EditUserResult = EditUserSuccessResult | UserError;
|
|
1219
1207
|
|
|
1220
1208
|
export type EditUserSuccessResult = {
|
|
1221
1209
|
__typename?: 'EditUserSuccessResult';
|
|
@@ -1345,14 +1333,12 @@ export type Form = {
|
|
|
1345
1333
|
emailBodyTemplate?: Maybe<Scalars['String']['output']>;
|
|
1346
1334
|
emailSubjectTemplate?: Maybe<Scalars['String']['output']>;
|
|
1347
1335
|
entriesTotalCount: Scalars['Int']['output'];
|
|
1348
|
-
formattedDataTemplate?: Maybe<Scalars['String']['output']>;
|
|
1349
1336
|
id: Scalars['String']['output'];
|
|
1350
1337
|
steps: Array<FormStep>;
|
|
1351
1338
|
submissionActions: Array<FormSubmissionAction>;
|
|
1352
1339
|
title: Scalars['String']['output'];
|
|
1353
1340
|
useEmailBodyTemplate: Scalars['Boolean']['output'];
|
|
1354
1341
|
useEmailSubjectTemplate: Scalars['Boolean']['output'];
|
|
1355
|
-
useFormattedDataTemplate: Scalars['Boolean']['output'];
|
|
1356
1342
|
};
|
|
1357
1343
|
|
|
1358
1344
|
export type FormConfirmationRedirectUrlParameter = {
|
|
@@ -1424,14 +1410,12 @@ export type FormTemplate = {
|
|
|
1424
1410
|
confirmationRedirectUrl?: Maybe<Scalars['String']['output']>;
|
|
1425
1411
|
emailBodyTemplate?: Maybe<Scalars['String']['output']>;
|
|
1426
1412
|
emailSubjectTemplate?: Maybe<Scalars['String']['output']>;
|
|
1427
|
-
formattedDataTemplate?: Maybe<Scalars['String']['output']>;
|
|
1428
1413
|
id: Scalars['String']['output'];
|
|
1429
1414
|
status: PublishStatus;
|
|
1430
1415
|
steps: Array<FormTemplateStep>;
|
|
1431
1416
|
title: Scalars['String']['output'];
|
|
1432
1417
|
useEmailBodyTemplate: Scalars['Boolean']['output'];
|
|
1433
1418
|
useEmailSubjectTemplate: Scalars['Boolean']['output'];
|
|
1434
|
-
useFormattedDataTemplate: Scalars['Boolean']['output'];
|
|
1435
1419
|
};
|
|
1436
1420
|
|
|
1437
1421
|
export type FormTemplateStep = {
|
|
@@ -1461,16 +1445,6 @@ export const GCloudCertificateState = {
|
|
|
1461
1445
|
|
|
1462
1446
|
export type GCloudCertificateState =
|
|
1463
1447
|
(typeof GCloudCertificateState)[keyof typeof GCloudCertificateState];
|
|
1464
|
-
export type GenericInternalError = Error & {
|
|
1465
|
-
__typename?: 'GenericInternalError';
|
|
1466
|
-
message: Scalars['String']['output'];
|
|
1467
|
-
};
|
|
1468
|
-
|
|
1469
|
-
export type GenericUserError = Error & {
|
|
1470
|
-
__typename?: 'GenericUserError';
|
|
1471
|
-
message: Scalars['String']['output'];
|
|
1472
|
-
};
|
|
1473
|
-
|
|
1474
1448
|
export type HelpTicket = {
|
|
1475
1449
|
__typename?: 'HelpTicket';
|
|
1476
1450
|
createdAt: Scalars['Date']['output'];
|
|
@@ -1528,7 +1502,12 @@ export type IntUpdate = {
|
|
|
1528
1502
|
value: Scalars['Int']['input'];
|
|
1529
1503
|
};
|
|
1530
1504
|
|
|
1531
|
-
export type
|
|
1505
|
+
export type InternalError = Error & {
|
|
1506
|
+
__typename?: 'InternalError';
|
|
1507
|
+
message: Scalars['String']['output'];
|
|
1508
|
+
};
|
|
1509
|
+
|
|
1510
|
+
export type InvalidateApiTokenResult = InvalidateApiTokenSuccessResult | UserError;
|
|
1532
1511
|
|
|
1533
1512
|
export type InvalidateApiTokenSuccessResult = {
|
|
1534
1513
|
__typename?: 'InvalidateApiTokenSuccessResult';
|
|
@@ -1587,6 +1566,7 @@ export type Lesson = {
|
|
|
1587
1566
|
__typename?: 'Lesson';
|
|
1588
1567
|
completionSpec?: Maybe<Scalars['String']['output']>;
|
|
1589
1568
|
components: Scalars['String']['output'];
|
|
1569
|
+
course: Course;
|
|
1590
1570
|
/**
|
|
1591
1571
|
* Whether to enable lesson content when the lesson has at least one published sub-lesson.
|
|
1592
1572
|
* This field is ignored when a lesson does not have any published sub-lessons as content is automatically enabled.
|
|
@@ -1594,6 +1574,10 @@ export type Lesson = {
|
|
|
1594
1574
|
*/
|
|
1595
1575
|
enableContent: Scalars['Boolean']['output'];
|
|
1596
1576
|
id: Scalars['String']['output'];
|
|
1577
|
+
/**
|
|
1578
|
+
* The user's lesson state. The userId field is null for unauthenticated users, in which case the field is resolved as null.
|
|
1579
|
+
* This API makes it more ergonomic for a client to query a course with lessons when a user may or may not be authenticated.
|
|
1580
|
+
*/
|
|
1597
1581
|
lessonUser?: Maybe<LessonUser>;
|
|
1598
1582
|
parentLesson?: Maybe<Lesson>;
|
|
1599
1583
|
parentLessonId?: Maybe<Scalars['String']['output']>;
|
|
@@ -1607,7 +1591,7 @@ export type Lesson = {
|
|
|
1607
1591
|
};
|
|
1608
1592
|
|
|
1609
1593
|
export type LessonLessonUserArgs = {
|
|
1610
|
-
userId
|
|
1594
|
+
userId?: InputMaybe<Scalars['String']['input']>;
|
|
1611
1595
|
};
|
|
1612
1596
|
|
|
1613
1597
|
export type LessonSubLessonsArgs = {
|
|
@@ -1692,12 +1676,15 @@ export type ListResult = {
|
|
|
1692
1676
|
|
|
1693
1677
|
export type Me = AdminUser | User;
|
|
1694
1678
|
|
|
1695
|
-
export type MoveUserToOrgResult =
|
|
1679
|
+
export type MoveUserToOrgResult = MoveUserToOrgSuccessResult | UserError;
|
|
1696
1680
|
|
|
1697
1681
|
export type MoveUserToOrgSuccessResult = {
|
|
1698
1682
|
__typename?: 'MoveUserToOrgSuccessResult';
|
|
1699
|
-
|
|
1700
|
-
|
|
1683
|
+
/** The source org that the user was moved from. This will be null if the user was not previously in an org. */
|
|
1684
|
+
sourceOrg?: Maybe<Org>;
|
|
1685
|
+
/** The target org that the user was moved to. */
|
|
1686
|
+
targetOrg: Org;
|
|
1687
|
+
/** The updated user. */
|
|
1701
1688
|
user: User;
|
|
1702
1689
|
};
|
|
1703
1690
|
|
|
@@ -1711,9 +1698,9 @@ export type Mutation = {
|
|
|
1711
1698
|
* Requires the requesting user to be an owner of the platform.
|
|
1712
1699
|
*/
|
|
1713
1700
|
createAdminUser: CreateAdminUserResult;
|
|
1714
|
-
createApiToken: CreateApiTokenResult;
|
|
1715
1701
|
createComponent: CreateComponentResult;
|
|
1716
1702
|
createCourse: CreateCourseResult;
|
|
1703
|
+
createCustomTableEditorFormVersion: CreateCustomTableEditorFormVersionResult;
|
|
1717
1704
|
createDocument: Document;
|
|
1718
1705
|
createDocumentDownloadPrompt: DocumentDownloadPrompt;
|
|
1719
1706
|
createExtension: CreateExtensionResult;
|
|
@@ -1731,6 +1718,8 @@ export type Mutation = {
|
|
|
1731
1718
|
createPage: Page;
|
|
1732
1719
|
createPageFromTemplate: Page;
|
|
1733
1720
|
createPageTemplate: PageTemplate;
|
|
1721
|
+
createPersonalApiToken: CreatePersonalApiTokenResult;
|
|
1722
|
+
createPlatformApiToken: CreatePlatformApiTokenResult;
|
|
1734
1723
|
createProduct: CreateProductResult;
|
|
1735
1724
|
createSequence: CreateSequenceResult;
|
|
1736
1725
|
createSite: CreateSiteResult;
|
|
@@ -1743,16 +1732,6 @@ export type Mutation = {
|
|
|
1743
1732
|
createSubscriptionOrg: SubscriptionOrganization;
|
|
1744
1733
|
createTlsCertificate: TlsCertificate;
|
|
1745
1734
|
createTlsCertificateMapEntry: TlsCertificate;
|
|
1746
|
-
/**
|
|
1747
|
-
* To create a user in an org that belongs to one's platform, the requester must have PermissionName.CreateUser.
|
|
1748
|
-
* The request may specify the role (assuming the requester has PermissionName.EditUserRole) and status (assuming the
|
|
1749
|
-
* requester has PermissionName.EditUserStatus) for the new user
|
|
1750
|
-
*
|
|
1751
|
-
* When adding a user to one's own org, the requester must have the OrganizationOwner role.
|
|
1752
|
-
* TODO: Change that to be configurable.
|
|
1753
|
-
* Neither a role nor a status may be specified in this case.
|
|
1754
|
-
*/
|
|
1755
|
-
createUser: User;
|
|
1756
1735
|
/**
|
|
1757
1736
|
* For platform admins, the CreateUser permission is required. To set the status to something other than the
|
|
1758
1737
|
* default (Pending), the EditUserStatus permission is required. To set the role to something other than the
|
|
@@ -1762,6 +1741,7 @@ export type Mutation = {
|
|
|
1762
1741
|
* user’s own org ID. The status field is ignored and the default is used.
|
|
1763
1742
|
* Currently the requester needs to have the OrganizationOwner role, but that will become configurable.
|
|
1764
1743
|
*/
|
|
1744
|
+
createUser: CreateUserResult;
|
|
1765
1745
|
createUser2: CreateUserResult;
|
|
1766
1746
|
deleteExtensionVersion: DeleteExtensionVersionResult;
|
|
1767
1747
|
deleteFormStep: Scalars['Boolean']['output'];
|
|
@@ -1799,7 +1779,6 @@ export type Mutation = {
|
|
|
1799
1779
|
editFormTemplate2: EditFormTemplateResult;
|
|
1800
1780
|
editFormTemplateConfirmation: FormTemplate;
|
|
1801
1781
|
editFormTemplateEmailTemplate: EditFormTemplateEmailTemplateResult;
|
|
1802
|
-
editFormTemplateFormattedDataTemplate: EditFormTemplateFormattedDataTemplateResult;
|
|
1803
1782
|
editFormTemplateStep: FormTemplateStep;
|
|
1804
1783
|
editFormTemplateStepPosition: FormTemplateStep;
|
|
1805
1784
|
editHelpTicketStatus: HelpTicket;
|
|
@@ -1808,7 +1787,7 @@ export type Mutation = {
|
|
|
1808
1787
|
editLesson: EditLessonResult;
|
|
1809
1788
|
editLessonUser: EditLessonUserResult;
|
|
1810
1789
|
editOrgPrimaryUser: EditOrgPrimaryUserResult;
|
|
1811
|
-
editOrganization:
|
|
1790
|
+
editOrganization: Org;
|
|
1812
1791
|
editPage: EditPageResult;
|
|
1813
1792
|
editPage2: EditPageResult;
|
|
1814
1793
|
editPageMetadata: Page;
|
|
@@ -1835,7 +1814,9 @@ export type Mutation = {
|
|
|
1835
1814
|
editUserPlan: UserPlan;
|
|
1836
1815
|
editUserRole: User;
|
|
1837
1816
|
editUserStatus: User;
|
|
1817
|
+
/** Finds or creates a Stripe customer for the current user. */
|
|
1838
1818
|
findOrCreateStripeCustomer: StripeCustomer;
|
|
1819
|
+
/** Finds or creates a Stripe subscription for the current user. An existing subscription is returned only if it is active. */
|
|
1839
1820
|
findOrCreateStripeSubscription: FindOrCreateStripeSubscriptionResult;
|
|
1840
1821
|
invalidateApiToken: InvalidateApiTokenResult;
|
|
1841
1822
|
moveUserToOrg: MoveUserToOrgResult;
|
|
@@ -1879,10 +1860,6 @@ export type MutationCreateAdminUserArgs = {
|
|
|
1879
1860
|
input: CreateAdminUserInput;
|
|
1880
1861
|
};
|
|
1881
1862
|
|
|
1882
|
-
export type MutationCreateApiTokenArgs = {
|
|
1883
|
-
input: CreateApiTokenInput;
|
|
1884
|
-
};
|
|
1885
|
-
|
|
1886
1863
|
export type MutationCreateComponentArgs = {
|
|
1887
1864
|
input: CreateComponentInput;
|
|
1888
1865
|
};
|
|
@@ -1891,6 +1868,10 @@ export type MutationCreateCourseArgs = {
|
|
|
1891
1868
|
input: CreateCourseInput;
|
|
1892
1869
|
};
|
|
1893
1870
|
|
|
1871
|
+
export type MutationCreateCustomTableEditorFormVersionArgs = {
|
|
1872
|
+
input: CreateCustomTableEditorFormVersionInput;
|
|
1873
|
+
};
|
|
1874
|
+
|
|
1894
1875
|
export type MutationCreateDocumentArgs = {
|
|
1895
1876
|
name: Scalars['String']['input'];
|
|
1896
1877
|
platformId: Scalars['String']['input'];
|
|
@@ -1985,6 +1966,14 @@ export type MutationCreatePageTemplateArgs = {
|
|
|
1985
1966
|
title: Scalars['String']['input'];
|
|
1986
1967
|
};
|
|
1987
1968
|
|
|
1969
|
+
export type MutationCreatePersonalApiTokenArgs = {
|
|
1970
|
+
input: CreatePersonalApiTokenInput;
|
|
1971
|
+
};
|
|
1972
|
+
|
|
1973
|
+
export type MutationCreatePlatformApiTokenArgs = {
|
|
1974
|
+
input: CreatePlatformApiTokenInput;
|
|
1975
|
+
};
|
|
1976
|
+
|
|
1988
1977
|
export type MutationCreateProductArgs = {
|
|
1989
1978
|
alternativeStripePriceIds: Array<Scalars['String']['input']>;
|
|
1990
1979
|
description: Scalars['String']['input'];
|
|
@@ -2058,13 +2047,7 @@ export type MutationCreateTlsCertificateMapEntryArgs = {
|
|
|
2058
2047
|
};
|
|
2059
2048
|
|
|
2060
2049
|
export type MutationCreateUserArgs = {
|
|
2061
|
-
|
|
2062
|
-
firstName: Scalars['String']['input'];
|
|
2063
|
-
lastName: Scalars['String']['input'];
|
|
2064
|
-
orgId?: InputMaybe<Scalars['String']['input']>;
|
|
2065
|
-
platformId: Scalars['String']['input'];
|
|
2066
|
-
role?: InputMaybe<Scalars['String']['input']>;
|
|
2067
|
-
status?: InputMaybe<UserStatus>;
|
|
2050
|
+
input: CreateUserInput;
|
|
2068
2051
|
};
|
|
2069
2052
|
|
|
2070
2053
|
export type MutationCreateUser2Args = {
|
|
@@ -2251,10 +2234,6 @@ export type MutationEditFormTemplateEmailTemplateArgs = {
|
|
|
2251
2234
|
input: EditFormTemplateEmailTemplateInput;
|
|
2252
2235
|
};
|
|
2253
2236
|
|
|
2254
|
-
export type MutationEditFormTemplateFormattedDataTemplateArgs = {
|
|
2255
|
-
input: EditFormTemplateFormattedDataTemplateInput;
|
|
2256
|
-
};
|
|
2257
|
-
|
|
2258
2237
|
export type MutationEditFormTemplateStepArgs = {
|
|
2259
2238
|
components: Scalars['String']['input'];
|
|
2260
2239
|
enabled: Scalars['Boolean']['input'];
|
|
@@ -2605,8 +2584,8 @@ export type OptionalStringUpdate = {
|
|
|
2605
2584
|
value?: InputMaybe<Scalars['String']['input']>;
|
|
2606
2585
|
};
|
|
2607
2586
|
|
|
2608
|
-
export type
|
|
2609
|
-
__typename?: '
|
|
2587
|
+
export type Org = {
|
|
2588
|
+
__typename?: 'Org';
|
|
2610
2589
|
id: Scalars['String']['output'];
|
|
2611
2590
|
members: Array<User>;
|
|
2612
2591
|
membersCount: Scalars['Int']['output'];
|
|
@@ -2616,22 +2595,22 @@ export type Organization = {
|
|
|
2616
2595
|
subscriptionOrganizations: Array<SubscriptionOrganization>;
|
|
2617
2596
|
};
|
|
2618
2597
|
|
|
2619
|
-
export type
|
|
2598
|
+
export type OrgMembersArgs = {
|
|
2620
2599
|
status?: InputMaybe<Array<UserStatus>>;
|
|
2621
2600
|
};
|
|
2622
2601
|
|
|
2623
2602
|
/** A subtype of Org to limit the exposed fields. */
|
|
2624
|
-
export type
|
|
2625
|
-
__typename?: '
|
|
2603
|
+
export type OrgProfile = {
|
|
2604
|
+
__typename?: 'OrgProfile';
|
|
2626
2605
|
id: Scalars['String']['output'];
|
|
2627
2606
|
name?: Maybe<Scalars['String']['output']>;
|
|
2628
2607
|
primaryUser?: Maybe<UserProfile>;
|
|
2629
2608
|
};
|
|
2630
2609
|
|
|
2631
|
-
export type
|
|
2632
|
-
__typename?: '
|
|
2610
|
+
export type OrgsList = ListResult & {
|
|
2611
|
+
__typename?: 'OrgsList';
|
|
2633
2612
|
limit: Scalars['Int']['output'];
|
|
2634
|
-
organizations: Array<
|
|
2613
|
+
organizations: Array<Org>;
|
|
2635
2614
|
totalCount: Scalars['Int']['output'];
|
|
2636
2615
|
};
|
|
2637
2616
|
|
|
@@ -2676,6 +2655,8 @@ export type PageTemplate = {
|
|
|
2676
2655
|
components: Scalars['String']['output'];
|
|
2677
2656
|
description?: Maybe<Scalars['String']['output']>;
|
|
2678
2657
|
id: Scalars['String']['output'];
|
|
2658
|
+
metaDescription?: Maybe<Scalars['String']['output']>;
|
|
2659
|
+
metaRobots: Array<Scalars['String']['output']>;
|
|
2679
2660
|
metaTitle?: Maybe<Scalars['String']['output']>;
|
|
2680
2661
|
path: Scalars['String']['output'];
|
|
2681
2662
|
previewImageUrl?: Maybe<Scalars['String']['output']>;
|
|
@@ -2781,6 +2762,22 @@ export const PasswordStatus = {
|
|
|
2781
2762
|
} as const;
|
|
2782
2763
|
|
|
2783
2764
|
export type PasswordStatus = (typeof PasswordStatus)[keyof typeof PasswordStatus];
|
|
2765
|
+
export type Permission = {
|
|
2766
|
+
__typename?: 'Permission';
|
|
2767
|
+
action: Scalars['String']['output'];
|
|
2768
|
+
id: Scalars['String']['output'];
|
|
2769
|
+
object: Scalars['String']['output'];
|
|
2770
|
+
};
|
|
2771
|
+
|
|
2772
|
+
export type PermissionInput = {
|
|
2773
|
+
action: Scalars['String']['input'];
|
|
2774
|
+
object: Scalars['String']['input'];
|
|
2775
|
+
};
|
|
2776
|
+
|
|
2777
|
+
export type PermissionListUpdate = {
|
|
2778
|
+
value: Array<PermissionInput>;
|
|
2779
|
+
};
|
|
2780
|
+
|
|
2784
2781
|
/** Temporary for the rename. */
|
|
2785
2782
|
export const PermissionName = {
|
|
2786
2783
|
/** Create (i.e., add) extensions. */
|
|
@@ -2852,8 +2849,19 @@ export const PermissionName = {
|
|
|
2852
2849
|
} as const;
|
|
2853
2850
|
|
|
2854
2851
|
export type PermissionName = (typeof PermissionName)[keyof typeof PermissionName];
|
|
2855
|
-
export type
|
|
2856
|
-
|
|
2852
|
+
export type PersonalApiToken = {
|
|
2853
|
+
__typename?: 'PersonalApiToken';
|
|
2854
|
+
createdAt: Scalars['Date']['output'];
|
|
2855
|
+
id: Scalars['String']['output'];
|
|
2856
|
+
invalidatedAt?: Maybe<Scalars['Date']['output']>;
|
|
2857
|
+
name: Scalars['String']['output'];
|
|
2858
|
+
};
|
|
2859
|
+
|
|
2860
|
+
export type PersonalApiTokensList = ListResult & {
|
|
2861
|
+
__typename?: 'PersonalApiTokensList';
|
|
2862
|
+
apiTokens: Array<PersonalApiToken>;
|
|
2863
|
+
limit: Scalars['Int']['output'];
|
|
2864
|
+
totalCount: Scalars['Int']['output'];
|
|
2857
2865
|
};
|
|
2858
2866
|
|
|
2859
2867
|
export type Platform = {
|
|
@@ -2863,7 +2871,7 @@ export type Platform = {
|
|
|
2863
2871
|
activeCampaignApiUrl?: Maybe<Scalars['String']['output']>;
|
|
2864
2872
|
activeCampaignTagsSyncConfig?: Maybe<Array<ActiveCampaignTagsSyncConfig>>;
|
|
2865
2873
|
admins: PlatformAdminUsersList;
|
|
2866
|
-
|
|
2874
|
+
apiTokens: PlatformApiTokensList;
|
|
2867
2875
|
defaultFormNotificationEmailBodyTemplate: Scalars['String']['output'];
|
|
2868
2876
|
emailReplyToAddress?: Maybe<Scalars['String']['output']>;
|
|
2869
2877
|
emailSendFromAddress: Scalars['String']['output'];
|
|
@@ -2896,16 +2904,10 @@ export type PlatformAdminUser = {
|
|
|
2896
2904
|
adminUser: AdminUser;
|
|
2897
2905
|
id: Scalars['String']['output'];
|
|
2898
2906
|
owner: Scalars['Boolean']['output'];
|
|
2899
|
-
permissions: Array<
|
|
2907
|
+
permissions: Array<Permission>;
|
|
2900
2908
|
platform: Platform;
|
|
2901
2909
|
};
|
|
2902
2910
|
|
|
2903
|
-
export type PlatformAdminUserPermission = {
|
|
2904
|
-
__typename?: 'PlatformAdminUserPermission';
|
|
2905
|
-
id: Scalars['String']['output'];
|
|
2906
|
-
permission: PermissionName;
|
|
2907
|
-
};
|
|
2908
|
-
|
|
2909
2911
|
export type PlatformAdminUsersList = ListResult & {
|
|
2910
2912
|
__typename?: 'PlatformAdminUsersList';
|
|
2911
2913
|
limit: Scalars['Int']['output'];
|
|
@@ -2913,6 +2915,22 @@ export type PlatformAdminUsersList = ListResult & {
|
|
|
2913
2915
|
totalCount: Scalars['Int']['output'];
|
|
2914
2916
|
};
|
|
2915
2917
|
|
|
2918
|
+
export type PlatformApiToken = {
|
|
2919
|
+
__typename?: 'PlatformApiToken';
|
|
2920
|
+
createdAt: Scalars['Date']['output'];
|
|
2921
|
+
id: Scalars['String']['output'];
|
|
2922
|
+
invalidatedAt?: Maybe<Scalars['Date']['output']>;
|
|
2923
|
+
name: Scalars['String']['output'];
|
|
2924
|
+
permissions: Array<Permission>;
|
|
2925
|
+
};
|
|
2926
|
+
|
|
2927
|
+
export type PlatformApiTokensList = ListResult & {
|
|
2928
|
+
__typename?: 'PlatformApiTokensList';
|
|
2929
|
+
apiTokens: Array<PlatformApiToken>;
|
|
2930
|
+
limit: Scalars['Int']['output'];
|
|
2931
|
+
totalCount: Scalars['Int']['output'];
|
|
2932
|
+
};
|
|
2933
|
+
|
|
2916
2934
|
export type PreviewStripeCoupon = {
|
|
2917
2935
|
__typename?: 'PreviewStripeCoupon';
|
|
2918
2936
|
amountOff?: Maybe<Scalars['String']['output']>;
|
|
@@ -3107,7 +3125,6 @@ export type PublishStatusUpdate = {
|
|
|
3107
3125
|
|
|
3108
3126
|
export type Query = {
|
|
3109
3127
|
__typename?: 'Query';
|
|
3110
|
-
apiTokens: ApiTokensList;
|
|
3111
3128
|
applyCustomPromoCode: ApplyCustomPromoCodeResult;
|
|
3112
3129
|
/**
|
|
3113
3130
|
* Get active components that can be used for the visual builder on a platform. Results include built-in,
|
|
@@ -3148,9 +3165,10 @@ export type Query = {
|
|
|
3148
3165
|
liveCustomFields: Array<CustomField>;
|
|
3149
3166
|
me?: Maybe<User>;
|
|
3150
3167
|
me2?: Maybe<Me>;
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3168
|
+
/** TODO: This should also take a productId to filter on. */
|
|
3169
|
+
multiOrgView: Array<Org>;
|
|
3170
|
+
organization: Org;
|
|
3171
|
+
organizations: OrgsList;
|
|
3154
3172
|
page: Page;
|
|
3155
3173
|
/** Get a page template. For unauthenticated requests, a template is returned only if it's published. */
|
|
3156
3174
|
pageTemplate: PageTemplate;
|
|
@@ -3512,9 +3530,9 @@ export type RestoreCourseVersionChangesInput = {
|
|
|
3512
3530
|
|
|
3513
3531
|
export type RestoreCourseVersionChangesResult =
|
|
3514
3532
|
| AuthorizationError
|
|
3515
|
-
|
|
|
3516
|
-
|
|
|
3517
|
-
|
|
|
3533
|
+
| InternalError
|
|
3534
|
+
| RestoreCourseVersionChangesSuccessResult
|
|
3535
|
+
| UserError;
|
|
3518
3536
|
|
|
3519
3537
|
export type RestoreCourseVersionChangesSuccessResult = {
|
|
3520
3538
|
__typename?: 'RestoreCourseVersionChangesSuccessResult';
|
|
@@ -3528,9 +3546,9 @@ export type RestoreLessonVersionChangesInput = {
|
|
|
3528
3546
|
|
|
3529
3547
|
export type RestoreLessonVersionChangesResult =
|
|
3530
3548
|
| AuthorizationError
|
|
3531
|
-
|
|
|
3532
|
-
|
|
|
3533
|
-
|
|
|
3549
|
+
| InternalError
|
|
3550
|
+
| RestoreLessonVersionChangesSuccessResult
|
|
3551
|
+
| UserError;
|
|
3534
3552
|
|
|
3535
3553
|
export type RestoreLessonVersionChangesSuccessResult = {
|
|
3536
3554
|
__typename?: 'RestoreLessonVersionChangesSuccessResult';
|
|
@@ -3544,9 +3562,9 @@ export type RestorePageVersionChangesInput = {
|
|
|
3544
3562
|
|
|
3545
3563
|
export type RestorePageVersionChangesResult =
|
|
3546
3564
|
| AuthorizationError
|
|
3547
|
-
|
|
|
3548
|
-
|
|
|
3549
|
-
|
|
|
3565
|
+
| InternalError
|
|
3566
|
+
| RestorePageVersionChangesSuccessResult
|
|
3567
|
+
| UserError;
|
|
3550
3568
|
|
|
3551
3569
|
export type RestorePageVersionChangesSuccessResult = {
|
|
3552
3570
|
__typename?: 'RestorePageVersionChangesSuccessResult';
|
|
@@ -3652,12 +3670,11 @@ export type Site = {
|
|
|
3652
3670
|
mixpanelToken?: Maybe<Scalars['String']['output']>;
|
|
3653
3671
|
name: Scalars['String']['output'];
|
|
3654
3672
|
/** The org that owns the site. */
|
|
3655
|
-
org?: Maybe<
|
|
3673
|
+
org?: Maybe<Org>;
|
|
3656
3674
|
orgId?: Maybe<Scalars['String']['output']>;
|
|
3657
3675
|
pages: PagesList;
|
|
3658
3676
|
pages2: PagesList;
|
|
3659
3677
|
platformId: Scalars['String']['output'];
|
|
3660
|
-
radixThemeColorName?: Maybe<Scalars['String']['output']>;
|
|
3661
3678
|
siteTemplate?: Maybe<SiteTemplate>;
|
|
3662
3679
|
siteTemplateId?: Maybe<Scalars['String']['output']>;
|
|
3663
3680
|
stripePublishableKey?: Maybe<Scalars['String']['output']>;
|
|
@@ -3726,7 +3743,7 @@ export type SitesList = ListResult & {
|
|
|
3726
3743
|
totalCount: Scalars['Int']['output'];
|
|
3727
3744
|
};
|
|
3728
3745
|
|
|
3729
|
-
export type SplitUserToNewOrgResult =
|
|
3746
|
+
export type SplitUserToNewOrgResult = SplitUserToNewOrgSuccessResult | UserError;
|
|
3730
3747
|
|
|
3731
3748
|
export type SplitUserToNewOrgSuccessResult = {
|
|
3732
3749
|
__typename?: 'SplitUserToNewOrgSuccessResult';
|
|
@@ -3835,8 +3852,10 @@ export type Sub = {
|
|
|
3835
3852
|
endAt?: Maybe<Scalars['Date']['output']>;
|
|
3836
3853
|
id: Scalars['String']['output'];
|
|
3837
3854
|
invoiceFrequency?: Maybe<InvoiceFrequency>;
|
|
3838
|
-
|
|
3855
|
+
/** TODO: Rename to ownerOrg. */
|
|
3856
|
+
managerOrganization?: Maybe<OrgProfile>;
|
|
3839
3857
|
notes: Array<SubscriptionNote>;
|
|
3858
|
+
ownerOrg?: Maybe<OrgProfile>;
|
|
3840
3859
|
plan: SubscriptionPlan;
|
|
3841
3860
|
planId: Scalars['String']['output'];
|
|
3842
3861
|
planProfile: SubscriptionPlanProfile;
|
|
@@ -3877,7 +3896,7 @@ export type SubscriptionAuditLog = {
|
|
|
3877
3896
|
actionByUser: UserProfile;
|
|
3878
3897
|
createdAt: Scalars['Date']['output'];
|
|
3879
3898
|
id: Scalars['String']['output'];
|
|
3880
|
-
organization?: Maybe<
|
|
3899
|
+
organization?: Maybe<Org>;
|
|
3881
3900
|
subscription: Sub;
|
|
3882
3901
|
};
|
|
3883
3902
|
|
|
@@ -3911,7 +3930,7 @@ export type SubscriptionNote = {
|
|
|
3911
3930
|
export type SubscriptionOrganization = {
|
|
3912
3931
|
__typename?: 'SubscriptionOrganization';
|
|
3913
3932
|
id: Scalars['String']['output'];
|
|
3914
|
-
org:
|
|
3933
|
+
org: Org;
|
|
3915
3934
|
subscription: Sub;
|
|
3916
3935
|
subscriptionId: Scalars['String']['output'];
|
|
3917
3936
|
subscriptionOwner: Scalars['Boolean']['output'];
|
|
@@ -3975,8 +3994,8 @@ export type SyncLayoutTemplateToLayoutsInput = {
|
|
|
3975
3994
|
|
|
3976
3995
|
export type SyncLayoutTemplateToLayoutsResult =
|
|
3977
3996
|
| AuthorizationError
|
|
3978
|
-
|
|
|
3979
|
-
|
|
|
3997
|
+
| SyncLayoutTemplateToLayoutsSuccessResult
|
|
3998
|
+
| UserError;
|
|
3980
3999
|
|
|
3981
4000
|
export type SyncLayoutTemplateToLayoutsSuccessResult = {
|
|
3982
4001
|
__typename?: 'SyncLayoutTemplateToLayoutsSuccessResult';
|
|
@@ -4002,8 +4021,8 @@ export type SyncPageTemplateToPagesInput = {
|
|
|
4002
4021
|
|
|
4003
4022
|
export type SyncPageTemplateToPagesResult =
|
|
4004
4023
|
| AuthorizationError
|
|
4005
|
-
|
|
|
4006
|
-
|
|
|
4024
|
+
| SyncPageTemplateToPagesSuccessResult
|
|
4025
|
+
| UserError;
|
|
4007
4026
|
|
|
4008
4027
|
export const SyncPageTemplateToPagesSelection = {
|
|
4009
4028
|
All: 'All',
|
|
@@ -4079,9 +4098,9 @@ export type UploadFilePurposeSiteLogo = {
|
|
|
4079
4098
|
|
|
4080
4099
|
export type UploadFileResult =
|
|
4081
4100
|
| AuthorizationError
|
|
4082
|
-
|
|
|
4083
|
-
|
|
|
4084
|
-
|
|
|
4101
|
+
| InternalError
|
|
4102
|
+
| UploadFileSuccessResult
|
|
4103
|
+
| UserError;
|
|
4085
4104
|
|
|
4086
4105
|
export type UploadFileSuccessResult = {
|
|
4087
4106
|
__typename?: 'UploadFileSuccessResult';
|
|
@@ -4091,6 +4110,7 @@ export type UploadFileSuccessResult = {
|
|
|
4091
4110
|
|
|
4092
4111
|
export type User = {
|
|
4093
4112
|
__typename?: 'User';
|
|
4113
|
+
apiTokens: PersonalApiTokensList;
|
|
4094
4114
|
/** The latest agreement types on the current site (based on request host) to which the user has given consent. */
|
|
4095
4115
|
currentAgreementsSigned: Array<AgreementType>;
|
|
4096
4116
|
custom: CustomFieldValuesList;
|
|
@@ -4101,17 +4121,11 @@ export type User = {
|
|
|
4101
4121
|
firstName: Scalars['String']['output'];
|
|
4102
4122
|
id: Scalars['String']['output'];
|
|
4103
4123
|
lastName: Scalars['String']['output'];
|
|
4104
|
-
org
|
|
4105
|
-
orgId
|
|
4124
|
+
org?: Maybe<Org>;
|
|
4125
|
+
orgId?: Maybe<Scalars['String']['output']>;
|
|
4106
4126
|
orgPrimary: Scalars['Boolean']['output'];
|
|
4107
4127
|
passwordExpiresAt?: Maybe<Scalars['Date']['output']>;
|
|
4108
4128
|
passwordStatus: PasswordStatus;
|
|
4109
|
-
/**
|
|
4110
|
-
* Find or create this user's UserPlan for the specified Plan. Any user can access this field for themselves with the
|
|
4111
|
-
* ID of a Plan owned by the platform they belong to. A user can also access this field with the ID of a Plan owned by
|
|
4112
|
-
* a platform on which they have PermissionName.EditSequenceUser.
|
|
4113
|
-
*/
|
|
4114
|
-
plan: UserPlan;
|
|
4115
4129
|
planProgress: Array<UserPlanProgress>;
|
|
4116
4130
|
plans: Array<UserPlan>;
|
|
4117
4131
|
/** This user’s platforms where the user is an admin. */
|
|
@@ -4130,10 +4144,6 @@ export type User = {
|
|
|
4130
4144
|
zendeskChatToken?: Maybe<Scalars['String']['output']>;
|
|
4131
4145
|
};
|
|
4132
4146
|
|
|
4133
|
-
export type UserPlanArgs = {
|
|
4134
|
-
planId: Scalars['String']['input'];
|
|
4135
|
-
};
|
|
4136
|
-
|
|
4137
4147
|
export type UserPlanProgressArgs = {
|
|
4138
4148
|
contentPlanIds: Array<Scalars['String']['input']>;
|
|
4139
4149
|
};
|
|
@@ -4203,6 +4213,11 @@ export type UserCourseProgressesList = ListResult & {
|
|
|
4203
4213
|
userCourseProgresses: Array<UserCourseProgress>;
|
|
4204
4214
|
};
|
|
4205
4215
|
|
|
4216
|
+
export type UserError = Error & {
|
|
4217
|
+
__typename?: 'UserError';
|
|
4218
|
+
message: Scalars['String']['output'];
|
|
4219
|
+
};
|
|
4220
|
+
|
|
4206
4221
|
export type UserPlan = {
|
|
4207
4222
|
__typename?: 'UserPlan';
|
|
4208
4223
|
id: Scalars['String']['output'];
|