@wirechunk/cli 0.0.3 → 0.0.5
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/build/main.js +266 -88
- package/package.json +1 -1
- package/src/commands/bootstrap.ts +18 -14
- package/src/commands/edit-admin.ts +9 -1
- package/src/commands/ext-dev/init-db.ts +2 -2
- package/src/core-api/api.ts +289 -227
- package/src/core-api/mutations/create-extension-version.generated.ts +2 -2
- package/src/users/permissions.ts +6 -7
package/src/core-api/api.ts
CHANGED
|
@@ -76,19 +76,17 @@ export type AddressInput = {
|
|
|
76
76
|
state: Scalars['String']['input'];
|
|
77
77
|
};
|
|
78
78
|
|
|
79
|
-
/**
|
|
80
|
-
* An admin user is a subset of a User. This type is used when the host platform does not have a site and orgs
|
|
81
|
-
* like normal platforms and instead the admin dashboard is displayed on a configured domain where admin users
|
|
82
|
-
* can sign in (in this case features that require a site and orgs are not available).
|
|
83
|
-
*/
|
|
79
|
+
/** A user who could be an admin on platforms. */
|
|
84
80
|
export type AdminUser = {
|
|
85
81
|
__typename?: 'AdminUser';
|
|
82
|
+
apiTokens: PersonalApiTokensList;
|
|
86
83
|
displayName: Scalars['String']['output'];
|
|
87
84
|
email: Scalars['String']['output'];
|
|
88
85
|
emailVerified: Scalars['Boolean']['output'];
|
|
89
86
|
firstName: Scalars['String']['output'];
|
|
90
87
|
id: Scalars['String']['output'];
|
|
91
88
|
lastName: Scalars['String']['output'];
|
|
89
|
+
/** This user’s platforms where the user is an admin (possible inactive). */
|
|
92
90
|
platformAdminUsers: Array<PlatformAdminUser>;
|
|
93
91
|
};
|
|
94
92
|
|
|
@@ -114,22 +112,9 @@ export type AgreementsList = {
|
|
|
114
112
|
totalCount: Scalars['Int']['output'];
|
|
115
113
|
};
|
|
116
114
|
|
|
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
|
-
};
|
|
115
|
+
export type ApiToken = PersonalApiToken | PlatformApiToken;
|
|
131
116
|
|
|
132
|
-
export type ApplyCustomPromoCodeResult = ApplyCustomPromoCodeSuccessResult |
|
|
117
|
+
export type ApplyCustomPromoCodeResult = ApplyCustomPromoCodeSuccessResult | InternalError;
|
|
133
118
|
|
|
134
119
|
export type ApplyCustomPromoCodeSuccessResult = {
|
|
135
120
|
__typename?: 'ApplyCustomPromoCodeSuccessResult';
|
|
@@ -139,7 +124,7 @@ export type ApplyCustomPromoCodeSuccessResult = {
|
|
|
139
124
|
valid: Scalars['Boolean']['output'];
|
|
140
125
|
};
|
|
141
126
|
|
|
142
|
-
export type ArchiveComponentResult = ArchiveComponentSuccessResult |
|
|
127
|
+
export type ArchiveComponentResult = ArchiveComponentSuccessResult | UserError;
|
|
143
128
|
|
|
144
129
|
export type ArchiveComponentSuccessResult = {
|
|
145
130
|
__typename?: 'ArchiveComponentSuccessResult';
|
|
@@ -291,33 +276,20 @@ export type CreateAdminUserInput = {
|
|
|
291
276
|
platformId: Scalars['String']['input'];
|
|
292
277
|
};
|
|
293
278
|
|
|
294
|
-
export type CreateAdminUserResult = CreateAdminUserSuccessResult |
|
|
279
|
+
export type CreateAdminUserResult = CreateAdminUserSuccessResult | UserError;
|
|
295
280
|
|
|
296
281
|
export type CreateAdminUserSuccessResult = {
|
|
297
282
|
__typename?: 'CreateAdminUserSuccessResult';
|
|
298
283
|
platformAdminUser: PlatformAdminUser;
|
|
299
284
|
};
|
|
300
285
|
|
|
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
286
|
export type CreateComponentInput = {
|
|
315
287
|
components?: InputMaybe<Scalars['String']['input']>;
|
|
316
288
|
name: Scalars['String']['input'];
|
|
317
289
|
platformId: Scalars['String']['input'];
|
|
318
290
|
};
|
|
319
291
|
|
|
320
|
-
export type CreateComponentResult = CreateComponentSuccessResult |
|
|
292
|
+
export type CreateComponentResult = CreateComponentSuccessResult | UserError;
|
|
321
293
|
|
|
322
294
|
export type CreateComponentSuccessResult = {
|
|
323
295
|
__typename?: 'CreateComponentSuccessResult';
|
|
@@ -329,13 +301,30 @@ export type CreateCourseInput = {
|
|
|
329
301
|
title: Scalars['String']['input'];
|
|
330
302
|
};
|
|
331
303
|
|
|
332
|
-
export type CreateCourseResult = CreateCourseSuccessResult |
|
|
304
|
+
export type CreateCourseResult = CreateCourseSuccessResult | UserError;
|
|
333
305
|
|
|
334
306
|
export type CreateCourseSuccessResult = {
|
|
335
307
|
__typename?: 'CreateCourseSuccessResult';
|
|
336
308
|
course: Course;
|
|
337
309
|
};
|
|
338
310
|
|
|
311
|
+
export type CreateCustomTableEditorFormVersionInput = {
|
|
312
|
+
components: Scalars['String']['input'];
|
|
313
|
+
customTableId: Scalars['String']['input'];
|
|
314
|
+
setAsCurrent?: Scalars['Boolean']['input'];
|
|
315
|
+
};
|
|
316
|
+
|
|
317
|
+
export type CreateCustomTableEditorFormVersionResult =
|
|
318
|
+
| AuthorizationError
|
|
319
|
+
| CreateCustomTableEditorFormVersionSuccessResult
|
|
320
|
+
| UserError;
|
|
321
|
+
|
|
322
|
+
export type CreateCustomTableEditorFormVersionSuccessResult = {
|
|
323
|
+
__typename?: 'CreateCustomTableEditorFormVersionSuccessResult';
|
|
324
|
+
customTable: CustomTable;
|
|
325
|
+
customTableEditorFormVersion: CustomTableEditorFormVersion;
|
|
326
|
+
};
|
|
327
|
+
|
|
339
328
|
export type CreateExtensionInput = {
|
|
340
329
|
/** A JSON object. */
|
|
341
330
|
config?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -344,10 +333,7 @@ export type CreateExtensionInput = {
|
|
|
344
333
|
platformId: Scalars['String']['input'];
|
|
345
334
|
};
|
|
346
335
|
|
|
347
|
-
export type CreateExtensionResult =
|
|
348
|
-
| CreateExtensionSuccessResult
|
|
349
|
-
| GenericInternalError
|
|
350
|
-
| GenericUserError;
|
|
336
|
+
export type CreateExtensionResult = CreateExtensionSuccessResult | InternalError | UserError;
|
|
351
337
|
|
|
352
338
|
export type CreateExtensionSuccessResult = {
|
|
353
339
|
__typename?: 'CreateExtensionSuccessResult';
|
|
@@ -372,8 +358,8 @@ export type CreateExtensionVersionInput = {
|
|
|
372
358
|
export type CreateExtensionVersionResult =
|
|
373
359
|
| AuthorizationError
|
|
374
360
|
| CreateExtensionVersionSuccessResult
|
|
375
|
-
|
|
|
376
|
-
|
|
|
361
|
+
| InternalError
|
|
362
|
+
| UserError;
|
|
377
363
|
|
|
378
364
|
export type CreateExtensionVersionSuccessResult = {
|
|
379
365
|
__typename?: 'CreateExtensionVersionSuccessResult';
|
|
@@ -390,7 +376,7 @@ export type CreateLayoutInput = {
|
|
|
390
376
|
siteId: Scalars['String']['input'];
|
|
391
377
|
};
|
|
392
378
|
|
|
393
|
-
export type CreateLayoutResult = CreateLayoutSuccessResult |
|
|
379
|
+
export type CreateLayoutResult = CreateLayoutSuccessResult | UserError;
|
|
394
380
|
|
|
395
381
|
export type CreateLayoutSuccessResult = {
|
|
396
382
|
__typename?: 'CreateLayoutSuccessResult';
|
|
@@ -407,7 +393,7 @@ export type CreateLayoutTemplateInput = {
|
|
|
407
393
|
export type CreateLayoutTemplateResult =
|
|
408
394
|
| AuthorizationError
|
|
409
395
|
| CreateLayoutTemplateSuccessResult
|
|
410
|
-
|
|
|
396
|
+
| UserError;
|
|
411
397
|
|
|
412
398
|
export type CreateLayoutTemplateSuccessResult = {
|
|
413
399
|
__typename?: 'CreateLayoutTemplateSuccessResult';
|
|
@@ -421,7 +407,7 @@ export type CreateLessonInput = {
|
|
|
421
407
|
title: Scalars['String']['input'];
|
|
422
408
|
};
|
|
423
409
|
|
|
424
|
-
export type CreateLessonResult = CreateLessonSuccessResult |
|
|
410
|
+
export type CreateLessonResult = CreateLessonSuccessResult | UserError;
|
|
425
411
|
|
|
426
412
|
export type CreateLessonSuccessResult = {
|
|
427
413
|
__typename?: 'CreateLessonSuccessResult';
|
|
@@ -433,7 +419,7 @@ export type CreateLessonUserInput = {
|
|
|
433
419
|
userId: Scalars['String']['input'];
|
|
434
420
|
};
|
|
435
421
|
|
|
436
|
-
export type CreateLessonUserResult = CreateLessonUserSuccessResult |
|
|
422
|
+
export type CreateLessonUserResult = CreateLessonUserSuccessResult | UserError;
|
|
437
423
|
|
|
438
424
|
export type CreateLessonUserSuccessResult = {
|
|
439
425
|
__typename?: 'CreateLessonUserSuccessResult';
|
|
@@ -441,7 +427,48 @@ export type CreateLessonUserSuccessResult = {
|
|
|
441
427
|
lessonUser: LessonUser;
|
|
442
428
|
};
|
|
443
429
|
|
|
444
|
-
export type
|
|
430
|
+
export type CreatePersonalApiTokenInput = {
|
|
431
|
+
name: Scalars['String']['input'];
|
|
432
|
+
};
|
|
433
|
+
|
|
434
|
+
export type CreatePersonalApiTokenResult = CreatePersonalApiTokenSuccessResult | UserError;
|
|
435
|
+
|
|
436
|
+
export type CreatePersonalApiTokenSuccessResult = {
|
|
437
|
+
__typename?: 'CreatePersonalApiTokenSuccessResult';
|
|
438
|
+
apiToken: PersonalApiToken;
|
|
439
|
+
/** A JWT. */
|
|
440
|
+
token: Scalars['String']['output'];
|
|
441
|
+
};
|
|
442
|
+
|
|
443
|
+
export type CreatePlatformApiTokenInput = {
|
|
444
|
+
name: Scalars['String']['input'];
|
|
445
|
+
permissions: Array<PermissionInput>;
|
|
446
|
+
platformId: Scalars['String']['input'];
|
|
447
|
+
};
|
|
448
|
+
|
|
449
|
+
export type CreatePlatformApiTokenResult = CreatePlatformApiTokenSuccessResult | UserError;
|
|
450
|
+
|
|
451
|
+
export type CreatePlatformApiTokenSuccessResult = {
|
|
452
|
+
__typename?: 'CreatePlatformApiTokenSuccessResult';
|
|
453
|
+
apiToken: PlatformApiToken;
|
|
454
|
+
/** A JWT. */
|
|
455
|
+
token: Scalars['String']['output'];
|
|
456
|
+
};
|
|
457
|
+
|
|
458
|
+
export type CreatePlatformInput = {
|
|
459
|
+
handle: Scalars['String']['input'];
|
|
460
|
+
mainSiteDomain?: InputMaybe<Scalars['String']['input']>;
|
|
461
|
+
name: Scalars['String']['input'];
|
|
462
|
+
};
|
|
463
|
+
|
|
464
|
+
export type CreatePlatformResult = CreatePlatformSuccessResult | UserError;
|
|
465
|
+
|
|
466
|
+
export type CreatePlatformSuccessResult = {
|
|
467
|
+
__typename?: 'CreatePlatformSuccessResult';
|
|
468
|
+
platform: Platform;
|
|
469
|
+
};
|
|
470
|
+
|
|
471
|
+
export type CreateProductResult = CreateProductSuccessResult | UserError;
|
|
445
472
|
|
|
446
473
|
export type CreateProductSuccessResult = {
|
|
447
474
|
__typename?: 'CreateProductSuccessResult';
|
|
@@ -454,7 +481,7 @@ export type CreateSequenceInput = {
|
|
|
454
481
|
title: Scalars['String']['input'];
|
|
455
482
|
};
|
|
456
483
|
|
|
457
|
-
export type CreateSequenceResult = CreateSequenceSuccessResult |
|
|
484
|
+
export type CreateSequenceResult = CreateSequenceSuccessResult | UserError;
|
|
458
485
|
|
|
459
486
|
export type CreateSequenceSuccessResult = {
|
|
460
487
|
__typename?: 'CreateSequenceSuccessResult';
|
|
@@ -480,8 +507,8 @@ export type CreateSiteInput = {
|
|
|
480
507
|
export type CreateSiteResult =
|
|
481
508
|
| AuthorizationError
|
|
482
509
|
| CreateSiteSuccessResult
|
|
483
|
-
|
|
|
484
|
-
|
|
|
510
|
+
| InternalError
|
|
511
|
+
| UserError;
|
|
485
512
|
|
|
486
513
|
export type CreateSiteSuccessResult = {
|
|
487
514
|
__typename?: 'CreateSiteSuccessResult';
|
|
@@ -495,7 +522,7 @@ export type CreateSiteTemplateInput = {
|
|
|
495
522
|
|
|
496
523
|
export type CreateSiteTemplateLayoutTemplatesResult =
|
|
497
524
|
| CreateSiteTemplateLayoutTemplatesSuccessResult
|
|
498
|
-
|
|
|
525
|
+
| UserError;
|
|
499
526
|
|
|
500
527
|
export type CreateSiteTemplateLayoutTemplatesSuccessResult = {
|
|
501
528
|
__typename?: 'CreateSiteTemplateLayoutTemplatesSuccessResult';
|
|
@@ -504,14 +531,14 @@ export type CreateSiteTemplateLayoutTemplatesSuccessResult = {
|
|
|
504
531
|
|
|
505
532
|
export type CreateSiteTemplatePageTemplatesResult =
|
|
506
533
|
| CreateSiteTemplatePageTemplatesSuccessResult
|
|
507
|
-
|
|
|
534
|
+
| UserError;
|
|
508
535
|
|
|
509
536
|
export type CreateSiteTemplatePageTemplatesSuccessResult = {
|
|
510
537
|
__typename?: 'CreateSiteTemplatePageTemplatesSuccessResult';
|
|
511
538
|
siteTemplate: SiteTemplate;
|
|
512
539
|
};
|
|
513
540
|
|
|
514
|
-
export type CreateSiteTemplateResult = CreateSiteTemplateSuccessResult |
|
|
541
|
+
export type CreateSiteTemplateResult = CreateSiteTemplateSuccessResult | UserError;
|
|
515
542
|
|
|
516
543
|
export type CreateSiteTemplateSuccessResult = {
|
|
517
544
|
__typename?: 'CreateSiteTemplateSuccessResult';
|
|
@@ -536,8 +563,8 @@ export type CreateUserInput = {
|
|
|
536
563
|
export type CreateUserResult =
|
|
537
564
|
| AuthorizationError
|
|
538
565
|
| CreateUserSuccessResult
|
|
539
|
-
|
|
|
540
|
-
|
|
|
566
|
+
| InternalError
|
|
567
|
+
| UserError;
|
|
541
568
|
|
|
542
569
|
export type CreateUserSuccessResult = {
|
|
543
570
|
__typename?: 'CreateUserSuccessResult';
|
|
@@ -635,6 +662,7 @@ export type CustomFieldsList = ListResult & {
|
|
|
635
662
|
|
|
636
663
|
export type CustomTable = {
|
|
637
664
|
__typename?: 'CustomTable';
|
|
665
|
+
currentEditorFormVersion?: Maybe<CustomTableEditorFormVersion>;
|
|
638
666
|
editorFormVersions: CustomTableEditorFormVersionsList;
|
|
639
667
|
fields: CustomFieldsList;
|
|
640
668
|
id: Scalars['String']['output'];
|
|
@@ -655,6 +683,7 @@ export type CustomTableVersionsArgs = {
|
|
|
655
683
|
|
|
656
684
|
export type CustomTableEditorFormVersion = {
|
|
657
685
|
__typename?: 'CustomTableEditorFormVersion';
|
|
686
|
+
byUser: UserProfile;
|
|
658
687
|
components: Scalars['String']['output'];
|
|
659
688
|
createdAt: Scalars['Date']['output'];
|
|
660
689
|
id: Scalars['String']['output'];
|
|
@@ -743,7 +772,7 @@ export type CustomTablesList = ListResult & {
|
|
|
743
772
|
export type DeleteExtensionVersionResult =
|
|
744
773
|
| AuthorizationError
|
|
745
774
|
| DeleteExtensionVersionSuccessResult
|
|
746
|
-
|
|
|
775
|
+
| UserError;
|
|
747
776
|
|
|
748
777
|
export type DeleteExtensionVersionSuccessResult = {
|
|
749
778
|
__typename?: 'DeleteExtensionVersionSuccessResult';
|
|
@@ -752,7 +781,7 @@ export type DeleteExtensionVersionSuccessResult = {
|
|
|
752
781
|
|
|
753
782
|
export type DeleteSiteTemplateLayoutTemplatesResult =
|
|
754
783
|
| DeleteSiteTemplateLayoutTemplatesSuccessResult
|
|
755
|
-
|
|
|
784
|
+
| UserError;
|
|
756
785
|
|
|
757
786
|
export type DeleteSiteTemplateLayoutTemplatesSuccessResult = {
|
|
758
787
|
__typename?: 'DeleteSiteTemplateLayoutTemplatesSuccessResult';
|
|
@@ -761,7 +790,7 @@ export type DeleteSiteTemplateLayoutTemplatesSuccessResult = {
|
|
|
761
790
|
|
|
762
791
|
export type DeleteSiteTemplatePageTemplatesResult =
|
|
763
792
|
| DeleteSiteTemplatePageTemplatesSuccessResult
|
|
764
|
-
|
|
|
793
|
+
| UserError;
|
|
765
794
|
|
|
766
795
|
export type DeleteSiteTemplatePageTemplatesSuccessResult = {
|
|
767
796
|
__typename?: 'DeleteSiteTemplatePageTemplatesSuccessResult';
|
|
@@ -810,10 +839,7 @@ export type DuplicateComponentInput = {
|
|
|
810
839
|
name: Scalars['String']['input'];
|
|
811
840
|
};
|
|
812
841
|
|
|
813
|
-
export type DuplicateComponentResult =
|
|
814
|
-
| DuplicateComponentSuccessResult
|
|
815
|
-
| GenericInternalError
|
|
816
|
-
| GenericUserError;
|
|
842
|
+
export type DuplicateComponentResult = DuplicateComponentSuccessResult | InternalError | UserError;
|
|
817
843
|
|
|
818
844
|
export type DuplicateComponentSuccessResult = {
|
|
819
845
|
__typename?: 'DuplicateComponentSuccessResult';
|
|
@@ -825,7 +851,7 @@ export type DuplicateCourseInput = {
|
|
|
825
851
|
title: Scalars['String']['input'];
|
|
826
852
|
};
|
|
827
853
|
|
|
828
|
-
export type DuplicateCourseResult = DuplicateCourseSuccessResult |
|
|
854
|
+
export type DuplicateCourseResult = DuplicateCourseSuccessResult | UserError;
|
|
829
855
|
|
|
830
856
|
export type DuplicateCourseSuccessResult = {
|
|
831
857
|
__typename?: 'DuplicateCourseSuccessResult';
|
|
@@ -839,14 +865,14 @@ export type DuplicateLessonInput = {
|
|
|
839
865
|
title: Scalars['String']['input'];
|
|
840
866
|
};
|
|
841
867
|
|
|
842
|
-
export type DuplicateLessonResult = DuplicateLessonSuccessResult |
|
|
868
|
+
export type DuplicateLessonResult = DuplicateLessonSuccessResult | UserError;
|
|
843
869
|
|
|
844
870
|
export type DuplicateLessonSuccessResult = {
|
|
845
871
|
__typename?: 'DuplicateLessonSuccessResult';
|
|
846
872
|
lesson: Lesson;
|
|
847
873
|
};
|
|
848
874
|
|
|
849
|
-
export type DuplicateSequenceResult = DuplicateSequenceSuccessResult |
|
|
875
|
+
export type DuplicateSequenceResult = DuplicateSequenceSuccessResult | UserError;
|
|
850
876
|
|
|
851
877
|
export type DuplicateSequenceSuccessResult = {
|
|
852
878
|
__typename?: 'DuplicateSequenceSuccessResult';
|
|
@@ -861,7 +887,7 @@ export type EditComponentInput = {
|
|
|
861
887
|
propsSetupComponents?: InputMaybe<OptionalComponentsUpdate>;
|
|
862
888
|
};
|
|
863
889
|
|
|
864
|
-
export type EditComponentResult = EditComponentSuccessResult |
|
|
890
|
+
export type EditComponentResult = EditComponentSuccessResult | UserError;
|
|
865
891
|
|
|
866
892
|
export type EditComponentSuccessResult = {
|
|
867
893
|
__typename?: 'EditComponentSuccessResult';
|
|
@@ -878,7 +904,7 @@ export type EditCourseInput = {
|
|
|
878
904
|
title?: InputMaybe<StringUpdate>;
|
|
879
905
|
};
|
|
880
906
|
|
|
881
|
-
export type EditCourseResult = EditCourseSuccessResult |
|
|
907
|
+
export type EditCourseResult = EditCourseSuccessResult | UserError;
|
|
882
908
|
|
|
883
909
|
export type EditCourseSuccessResult = {
|
|
884
910
|
__typename?: 'EditCourseSuccessResult';
|
|
@@ -892,12 +918,14 @@ export type EditCustomTableInput = {
|
|
|
892
918
|
* accidentally overwrite changes made asynchronously.
|
|
893
919
|
*/
|
|
894
920
|
consistencyKeyCurrentTableVersionId?: InputMaybe<Scalars['String']['input']>;
|
|
895
|
-
|
|
921
|
+
currentEditorFormVersionId?: InputMaybe<StringUpdate>;
|
|
922
|
+
/** The new set of fields. If null or omitted, no changes are made to the fields. */
|
|
923
|
+
fields?: InputMaybe<Array<CustomFieldInput>>;
|
|
896
924
|
object: CustomTableObject;
|
|
897
925
|
platformId: Scalars['String']['input'];
|
|
898
926
|
};
|
|
899
927
|
|
|
900
|
-
export type EditCustomTableResult = EditCustomTableSuccessResult |
|
|
928
|
+
export type EditCustomTableResult = EditCustomTableSuccessResult | UserError;
|
|
901
929
|
|
|
902
930
|
export type EditCustomTableSuccessResult = {
|
|
903
931
|
__typename?: 'EditCustomTableSuccessResult';
|
|
@@ -912,10 +940,7 @@ export type EditExtensionInput = {
|
|
|
912
940
|
id: Scalars['String']['input'];
|
|
913
941
|
};
|
|
914
942
|
|
|
915
|
-
export type EditExtensionResult =
|
|
916
|
-
| AuthorizationError
|
|
917
|
-
| EditExtensionSuccessResult
|
|
918
|
-
| GenericUserError;
|
|
943
|
+
export type EditExtensionResult = AuthorizationError | EditExtensionSuccessResult | UserError;
|
|
919
944
|
|
|
920
945
|
export type EditExtensionSuccessResult = {
|
|
921
946
|
__typename?: 'EditExtensionSuccessResult';
|
|
@@ -925,8 +950,8 @@ export type EditExtensionSuccessResult = {
|
|
|
925
950
|
export type EditFormStepPositionResult =
|
|
926
951
|
| AuthorizationError
|
|
927
952
|
| EditFormStepPositionSuccessResult
|
|
928
|
-
|
|
|
929
|
-
|
|
|
953
|
+
| InternalError
|
|
954
|
+
| UserError;
|
|
930
955
|
|
|
931
956
|
export type EditFormStepPositionSuccessResult = {
|
|
932
957
|
__typename?: 'EditFormStepPositionSuccessResult';
|
|
@@ -941,28 +966,13 @@ export type EditFormTemplateEmailTemplateInput = {
|
|
|
941
966
|
|
|
942
967
|
export type EditFormTemplateEmailTemplateResult =
|
|
943
968
|
| EditFormTemplateEmailTemplateSuccessResult
|
|
944
|
-
|
|
|
969
|
+
| UserError;
|
|
945
970
|
|
|
946
971
|
export type EditFormTemplateEmailTemplateSuccessResult = {
|
|
947
972
|
__typename?: 'EditFormTemplateEmailTemplateSuccessResult';
|
|
948
973
|
formTemplate: FormTemplate;
|
|
949
974
|
};
|
|
950
975
|
|
|
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
976
|
export type EditFormTemplateInput = {
|
|
967
977
|
components?: InputMaybe<ComponentsUpdate>;
|
|
968
978
|
emailBodyTemplate?: InputMaybe<OptionalStringUpdate>;
|
|
@@ -974,10 +984,7 @@ export type EditFormTemplateInput = {
|
|
|
974
984
|
useEmailSubjectTemplate?: InputMaybe<BooleanUpdate>;
|
|
975
985
|
};
|
|
976
986
|
|
|
977
|
-
export type EditFormTemplateResult =
|
|
978
|
-
| AuthorizationError
|
|
979
|
-
| EditFormTemplateSuccessResult
|
|
980
|
-
| GenericUserError;
|
|
987
|
+
export type EditFormTemplateResult = AuthorizationError | EditFormTemplateSuccessResult | UserError;
|
|
981
988
|
|
|
982
989
|
export type EditFormTemplateSuccessResult = {
|
|
983
990
|
__typename?: 'EditFormTemplateSuccessResult';
|
|
@@ -992,7 +999,7 @@ export type EditLayoutInput = {
|
|
|
992
999
|
status?: InputMaybe<PublishStatusUpdate>;
|
|
993
1000
|
};
|
|
994
1001
|
|
|
995
|
-
export type EditLayoutResult = EditLayoutSuccessResult |
|
|
1002
|
+
export type EditLayoutResult = EditLayoutSuccessResult | UserError;
|
|
996
1003
|
|
|
997
1004
|
export type EditLayoutSuccessResult = {
|
|
998
1005
|
__typename?: 'EditLayoutSuccessResult';
|
|
@@ -1010,7 +1017,7 @@ export type EditLayoutTemplateInput = {
|
|
|
1010
1017
|
export type EditLayoutTemplateResult =
|
|
1011
1018
|
| AuthorizationError
|
|
1012
1019
|
| EditLayoutTemplateSuccessResult
|
|
1013
|
-
|
|
|
1020
|
+
| UserError;
|
|
1014
1021
|
|
|
1015
1022
|
export type EditLayoutTemplateSuccessResult = {
|
|
1016
1023
|
__typename?: 'EditLayoutTemplateSuccessResult';
|
|
@@ -1028,7 +1035,7 @@ export type EditLessonInput = {
|
|
|
1028
1035
|
title?: InputMaybe<StringUpdate>;
|
|
1029
1036
|
};
|
|
1030
1037
|
|
|
1031
|
-
export type EditLessonResult = EditLessonSuccessResult |
|
|
1038
|
+
export type EditLessonResult = EditLessonSuccessResult | UserError;
|
|
1032
1039
|
|
|
1033
1040
|
export type EditLessonSuccessResult = {
|
|
1034
1041
|
__typename?: 'EditLessonSuccessResult';
|
|
@@ -1042,7 +1049,7 @@ export type EditLessonUserInput = {
|
|
|
1042
1049
|
state?: InputMaybe<StringUpdate>;
|
|
1043
1050
|
};
|
|
1044
1051
|
|
|
1045
|
-
export type EditLessonUserResult = EditLessonUserSuccessResult |
|
|
1052
|
+
export type EditLessonUserResult = EditLessonUserSuccessResult | UserError;
|
|
1046
1053
|
|
|
1047
1054
|
export type EditLessonUserSuccessResult = {
|
|
1048
1055
|
__typename?: 'EditLessonUserSuccessResult';
|
|
@@ -1059,11 +1066,11 @@ export type EditOrgPrimaryUserInput = {
|
|
|
1059
1066
|
userId: Scalars['String']['input'];
|
|
1060
1067
|
};
|
|
1061
1068
|
|
|
1062
|
-
export type EditOrgPrimaryUserResult = EditOrgPrimaryUserSuccessResult |
|
|
1069
|
+
export type EditOrgPrimaryUserResult = EditOrgPrimaryUserSuccessResult | UserError;
|
|
1063
1070
|
|
|
1064
1071
|
export type EditOrgPrimaryUserSuccessResult = {
|
|
1065
1072
|
__typename?: 'EditOrgPrimaryUserSuccessResult';
|
|
1066
|
-
org:
|
|
1073
|
+
org: Org;
|
|
1067
1074
|
previousPrimaryUser?: Maybe<User>;
|
|
1068
1075
|
};
|
|
1069
1076
|
|
|
@@ -1085,7 +1092,7 @@ export type EditPageInput = {
|
|
|
1085
1092
|
title?: InputMaybe<StringUpdate>;
|
|
1086
1093
|
};
|
|
1087
1094
|
|
|
1088
|
-
export type EditPageResult = AuthorizationError | EditPageSuccessResult |
|
|
1095
|
+
export type EditPageResult = AuthorizationError | EditPageSuccessResult | UserError;
|
|
1089
1096
|
|
|
1090
1097
|
export type EditPageSuccessResult = {
|
|
1091
1098
|
__typename?: 'EditPageSuccessResult';
|
|
@@ -1109,10 +1116,7 @@ export type EditPageTemplateInput = {
|
|
|
1109
1116
|
title?: InputMaybe<StringUpdate>;
|
|
1110
1117
|
};
|
|
1111
1118
|
|
|
1112
|
-
export type EditPageTemplateResult =
|
|
1113
|
-
| AuthorizationError
|
|
1114
|
-
| EditPageTemplateSuccessResult
|
|
1115
|
-
| GenericUserError;
|
|
1119
|
+
export type EditPageTemplateResult = AuthorizationError | EditPageTemplateSuccessResult | UserError;
|
|
1116
1120
|
|
|
1117
1121
|
export type EditPageTemplateSuccessResult = {
|
|
1118
1122
|
__typename?: 'EditPageTemplateSuccessResult';
|
|
@@ -1123,13 +1127,13 @@ export type EditPlatformAdminUserInput = {
|
|
|
1123
1127
|
active?: InputMaybe<BooleanUpdate>;
|
|
1124
1128
|
id: Scalars['String']['input'];
|
|
1125
1129
|
owner?: InputMaybe<BooleanUpdate>;
|
|
1126
|
-
|
|
1130
|
+
permissions?: InputMaybe<PermissionListUpdate>;
|
|
1127
1131
|
};
|
|
1128
1132
|
|
|
1129
1133
|
export type EditPlatformAdminUserResult =
|
|
1130
1134
|
| AuthorizationError
|
|
1131
1135
|
| EditPlatformAdminUserSuccessResult
|
|
1132
|
-
|
|
|
1136
|
+
| UserError;
|
|
1133
1137
|
|
|
1134
1138
|
export type EditPlatformAdminUserSuccessResult = {
|
|
1135
1139
|
__typename?: 'EditPlatformAdminUserSuccessResult';
|
|
@@ -1145,21 +1149,21 @@ export type EditPlatformInput = {
|
|
|
1145
1149
|
stripeWebhookSigningSecret?: InputMaybe<OptionalStringUpdate>;
|
|
1146
1150
|
};
|
|
1147
1151
|
|
|
1148
|
-
export type EditPlatformResult = EditPlatformSuccessResult |
|
|
1152
|
+
export type EditPlatformResult = EditPlatformSuccessResult | UserError;
|
|
1149
1153
|
|
|
1150
1154
|
export type EditPlatformSuccessResult = {
|
|
1151
1155
|
__typename?: 'EditPlatformSuccessResult';
|
|
1152
1156
|
platform: Platform;
|
|
1153
1157
|
};
|
|
1154
1158
|
|
|
1155
|
-
export type EditProductResult = EditProductSuccessResult |
|
|
1159
|
+
export type EditProductResult = EditProductSuccessResult | UserError;
|
|
1156
1160
|
|
|
1157
1161
|
export type EditProductSuccessResult = {
|
|
1158
1162
|
__typename?: 'EditProductSuccessResult';
|
|
1159
1163
|
product: SubscriptionPlan;
|
|
1160
1164
|
};
|
|
1161
1165
|
|
|
1162
|
-
export type EditSequenceResult = EditSequenceSuccessResult |
|
|
1166
|
+
export type EditSequenceResult = EditSequenceSuccessResult | UserError;
|
|
1163
1167
|
|
|
1164
1168
|
export type EditSequenceSuccessResult = {
|
|
1165
1169
|
__typename?: 'EditSequenceSuccessResult';
|
|
@@ -1172,7 +1176,7 @@ export type EditSequenceUserInput = {
|
|
|
1172
1176
|
userId: Scalars['String']['input'];
|
|
1173
1177
|
};
|
|
1174
1178
|
|
|
1175
|
-
export type EditSequenceUserResult = EditSequenceUserSuccessResult |
|
|
1179
|
+
export type EditSequenceUserResult = EditSequenceUserSuccessResult | UserError;
|
|
1176
1180
|
|
|
1177
1181
|
export type EditSequenceUserSuccessResult = {
|
|
1178
1182
|
__typename?: 'EditSequenceUserSuccessResult';
|
|
@@ -1197,11 +1201,7 @@ export type EditSiteInput = {
|
|
|
1197
1201
|
zendeskChatKey?: InputMaybe<OptionalStringUpdate>;
|
|
1198
1202
|
};
|
|
1199
1203
|
|
|
1200
|
-
export type EditSiteResult =
|
|
1201
|
-
| AuthorizationError
|
|
1202
|
-
| EditSiteSuccessResult
|
|
1203
|
-
| GenericInternalError
|
|
1204
|
-
| GenericUserError;
|
|
1204
|
+
export type EditSiteResult = AuthorizationError | EditSiteSuccessResult | InternalError | UserError;
|
|
1205
1205
|
|
|
1206
1206
|
export type EditSiteSuccessResult = {
|
|
1207
1207
|
__typename?: 'EditSiteSuccessResult';
|
|
@@ -1213,9 +1213,10 @@ export type EditUserInput = {
|
|
|
1213
1213
|
customFields?: InputMaybe<Array<KeyValueInput>>;
|
|
1214
1214
|
expiresAt?: InputMaybe<OptionalDateUpdate>;
|
|
1215
1215
|
id: Scalars['String']['input'];
|
|
1216
|
+
status?: InputMaybe<UserStatusUpdate>;
|
|
1216
1217
|
};
|
|
1217
1218
|
|
|
1218
|
-
export type EditUserResult = EditUserSuccessResult |
|
|
1219
|
+
export type EditUserResult = EditUserSuccessResult | UserError;
|
|
1219
1220
|
|
|
1220
1221
|
export type EditUserSuccessResult = {
|
|
1221
1222
|
__typename?: 'EditUserSuccessResult';
|
|
@@ -1345,14 +1346,12 @@ export type Form = {
|
|
|
1345
1346
|
emailBodyTemplate?: Maybe<Scalars['String']['output']>;
|
|
1346
1347
|
emailSubjectTemplate?: Maybe<Scalars['String']['output']>;
|
|
1347
1348
|
entriesTotalCount: Scalars['Int']['output'];
|
|
1348
|
-
formattedDataTemplate?: Maybe<Scalars['String']['output']>;
|
|
1349
1349
|
id: Scalars['String']['output'];
|
|
1350
1350
|
steps: Array<FormStep>;
|
|
1351
1351
|
submissionActions: Array<FormSubmissionAction>;
|
|
1352
1352
|
title: Scalars['String']['output'];
|
|
1353
1353
|
useEmailBodyTemplate: Scalars['Boolean']['output'];
|
|
1354
1354
|
useEmailSubjectTemplate: Scalars['Boolean']['output'];
|
|
1355
|
-
useFormattedDataTemplate: Scalars['Boolean']['output'];
|
|
1356
1355
|
};
|
|
1357
1356
|
|
|
1358
1357
|
export type FormConfirmationRedirectUrlParameter = {
|
|
@@ -1424,14 +1423,12 @@ export type FormTemplate = {
|
|
|
1424
1423
|
confirmationRedirectUrl?: Maybe<Scalars['String']['output']>;
|
|
1425
1424
|
emailBodyTemplate?: Maybe<Scalars['String']['output']>;
|
|
1426
1425
|
emailSubjectTemplate?: Maybe<Scalars['String']['output']>;
|
|
1427
|
-
formattedDataTemplate?: Maybe<Scalars['String']['output']>;
|
|
1428
1426
|
id: Scalars['String']['output'];
|
|
1429
1427
|
status: PublishStatus;
|
|
1430
1428
|
steps: Array<FormTemplateStep>;
|
|
1431
1429
|
title: Scalars['String']['output'];
|
|
1432
1430
|
useEmailBodyTemplate: Scalars['Boolean']['output'];
|
|
1433
1431
|
useEmailSubjectTemplate: Scalars['Boolean']['output'];
|
|
1434
|
-
useFormattedDataTemplate: Scalars['Boolean']['output'];
|
|
1435
1432
|
};
|
|
1436
1433
|
|
|
1437
1434
|
export type FormTemplateStep = {
|
|
@@ -1461,14 +1458,17 @@ export const GCloudCertificateState = {
|
|
|
1461
1458
|
|
|
1462
1459
|
export type GCloudCertificateState =
|
|
1463
1460
|
(typeof GCloudCertificateState)[keyof typeof GCloudCertificateState];
|
|
1464
|
-
export type
|
|
1465
|
-
|
|
1466
|
-
|
|
1461
|
+
export type GenerateComponentsInput = {
|
|
1462
|
+
platformId: Scalars['String']['input'];
|
|
1463
|
+
prompt: Scalars['String']['input'];
|
|
1464
|
+
startingComponents: Scalars['String']['input'];
|
|
1467
1465
|
};
|
|
1468
1466
|
|
|
1469
|
-
export type
|
|
1470
|
-
|
|
1471
|
-
|
|
1467
|
+
export type GenerateComponentsResult = GenerateComponentsSuccessResult | InternalError | UserError;
|
|
1468
|
+
|
|
1469
|
+
export type GenerateComponentsSuccessResult = {
|
|
1470
|
+
__typename?: 'GenerateComponentsSuccessResult';
|
|
1471
|
+
components: Scalars['String']['output'];
|
|
1472
1472
|
};
|
|
1473
1473
|
|
|
1474
1474
|
export type HelpTicket = {
|
|
@@ -1528,7 +1528,12 @@ export type IntUpdate = {
|
|
|
1528
1528
|
value: Scalars['Int']['input'];
|
|
1529
1529
|
};
|
|
1530
1530
|
|
|
1531
|
-
export type
|
|
1531
|
+
export type InternalError = Error & {
|
|
1532
|
+
__typename?: 'InternalError';
|
|
1533
|
+
message: Scalars['String']['output'];
|
|
1534
|
+
};
|
|
1535
|
+
|
|
1536
|
+
export type InvalidateApiTokenResult = InvalidateApiTokenSuccessResult | UserError;
|
|
1532
1537
|
|
|
1533
1538
|
export type InvalidateApiTokenSuccessResult = {
|
|
1534
1539
|
__typename?: 'InvalidateApiTokenSuccessResult';
|
|
@@ -1587,6 +1592,7 @@ export type Lesson = {
|
|
|
1587
1592
|
__typename?: 'Lesson';
|
|
1588
1593
|
completionSpec?: Maybe<Scalars['String']['output']>;
|
|
1589
1594
|
components: Scalars['String']['output'];
|
|
1595
|
+
course: Course;
|
|
1590
1596
|
/**
|
|
1591
1597
|
* Whether to enable lesson content when the lesson has at least one published sub-lesson.
|
|
1592
1598
|
* This field is ignored when a lesson does not have any published sub-lessons as content is automatically enabled.
|
|
@@ -1594,6 +1600,10 @@ export type Lesson = {
|
|
|
1594
1600
|
*/
|
|
1595
1601
|
enableContent: Scalars['Boolean']['output'];
|
|
1596
1602
|
id: Scalars['String']['output'];
|
|
1603
|
+
/**
|
|
1604
|
+
* The user's lesson state. The userId field is null for unauthenticated users, in which case the field is resolved as null.
|
|
1605
|
+
* This API makes it more ergonomic for a client to query a course with lessons when a user may or may not be authenticated.
|
|
1606
|
+
*/
|
|
1597
1607
|
lessonUser?: Maybe<LessonUser>;
|
|
1598
1608
|
parentLesson?: Maybe<Lesson>;
|
|
1599
1609
|
parentLessonId?: Maybe<Scalars['String']['output']>;
|
|
@@ -1607,7 +1617,7 @@ export type Lesson = {
|
|
|
1607
1617
|
};
|
|
1608
1618
|
|
|
1609
1619
|
export type LessonLessonUserArgs = {
|
|
1610
|
-
userId
|
|
1620
|
+
userId?: InputMaybe<Scalars['String']['input']>;
|
|
1611
1621
|
};
|
|
1612
1622
|
|
|
1613
1623
|
export type LessonSubLessonsArgs = {
|
|
@@ -1692,12 +1702,15 @@ export type ListResult = {
|
|
|
1692
1702
|
|
|
1693
1703
|
export type Me = AdminUser | User;
|
|
1694
1704
|
|
|
1695
|
-
export type MoveUserToOrgResult =
|
|
1705
|
+
export type MoveUserToOrgResult = MoveUserToOrgSuccessResult | UserError;
|
|
1696
1706
|
|
|
1697
1707
|
export type MoveUserToOrgSuccessResult = {
|
|
1698
1708
|
__typename?: 'MoveUserToOrgSuccessResult';
|
|
1699
|
-
|
|
1700
|
-
|
|
1709
|
+
/** The source org that the user was moved from. This will be null if the user was not previously in an org. */
|
|
1710
|
+
sourceOrg?: Maybe<Org>;
|
|
1711
|
+
/** The target org that the user was moved to. */
|
|
1712
|
+
targetOrg: Org;
|
|
1713
|
+
/** The updated user. */
|
|
1701
1714
|
user: User;
|
|
1702
1715
|
};
|
|
1703
1716
|
|
|
@@ -1711,9 +1724,9 @@ export type Mutation = {
|
|
|
1711
1724
|
* Requires the requesting user to be an owner of the platform.
|
|
1712
1725
|
*/
|
|
1713
1726
|
createAdminUser: CreateAdminUserResult;
|
|
1714
|
-
createApiToken: CreateApiTokenResult;
|
|
1715
1727
|
createComponent: CreateComponentResult;
|
|
1716
1728
|
createCourse: CreateCourseResult;
|
|
1729
|
+
createCustomTableEditorFormVersion: CreateCustomTableEditorFormVersionResult;
|
|
1717
1730
|
createDocument: Document;
|
|
1718
1731
|
createDocumentDownloadPrompt: DocumentDownloadPrompt;
|
|
1719
1732
|
createExtension: CreateExtensionResult;
|
|
@@ -1731,6 +1744,9 @@ export type Mutation = {
|
|
|
1731
1744
|
createPage: Page;
|
|
1732
1745
|
createPageFromTemplate: Page;
|
|
1733
1746
|
createPageTemplate: PageTemplate;
|
|
1747
|
+
createPersonalApiToken: CreatePersonalApiTokenResult;
|
|
1748
|
+
createPlatform: CreatePlatformResult;
|
|
1749
|
+
createPlatformApiToken: CreatePlatformApiTokenResult;
|
|
1734
1750
|
createProduct: CreateProductResult;
|
|
1735
1751
|
createSequence: CreateSequenceResult;
|
|
1736
1752
|
createSite: CreateSiteResult;
|
|
@@ -1743,16 +1759,6 @@ export type Mutation = {
|
|
|
1743
1759
|
createSubscriptionOrg: SubscriptionOrganization;
|
|
1744
1760
|
createTlsCertificate: TlsCertificate;
|
|
1745
1761
|
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
1762
|
/**
|
|
1757
1763
|
* For platform admins, the CreateUser permission is required. To set the status to something other than the
|
|
1758
1764
|
* default (Pending), the EditUserStatus permission is required. To set the role to something other than the
|
|
@@ -1762,6 +1768,7 @@ export type Mutation = {
|
|
|
1762
1768
|
* user’s own org ID. The status field is ignored and the default is used.
|
|
1763
1769
|
* Currently the requester needs to have the OrganizationOwner role, but that will become configurable.
|
|
1764
1770
|
*/
|
|
1771
|
+
createUser: CreateUserResult;
|
|
1765
1772
|
createUser2: CreateUserResult;
|
|
1766
1773
|
deleteExtensionVersion: DeleteExtensionVersionResult;
|
|
1767
1774
|
deleteFormStep: Scalars['Boolean']['output'];
|
|
@@ -1799,7 +1806,6 @@ export type Mutation = {
|
|
|
1799
1806
|
editFormTemplate2: EditFormTemplateResult;
|
|
1800
1807
|
editFormTemplateConfirmation: FormTemplate;
|
|
1801
1808
|
editFormTemplateEmailTemplate: EditFormTemplateEmailTemplateResult;
|
|
1802
|
-
editFormTemplateFormattedDataTemplate: EditFormTemplateFormattedDataTemplateResult;
|
|
1803
1809
|
editFormTemplateStep: FormTemplateStep;
|
|
1804
1810
|
editFormTemplateStepPosition: FormTemplateStep;
|
|
1805
1811
|
editHelpTicketStatus: HelpTicket;
|
|
@@ -1808,7 +1814,7 @@ export type Mutation = {
|
|
|
1808
1814
|
editLesson: EditLessonResult;
|
|
1809
1815
|
editLessonUser: EditLessonUserResult;
|
|
1810
1816
|
editOrgPrimaryUser: EditOrgPrimaryUserResult;
|
|
1811
|
-
editOrganization:
|
|
1817
|
+
editOrganization: Org;
|
|
1812
1818
|
editPage: EditPageResult;
|
|
1813
1819
|
editPage2: EditPageResult;
|
|
1814
1820
|
editPageMetadata: Page;
|
|
@@ -1834,9 +1840,13 @@ export type Mutation = {
|
|
|
1834
1840
|
editUserName: User;
|
|
1835
1841
|
editUserPlan: UserPlan;
|
|
1836
1842
|
editUserRole: User;
|
|
1843
|
+
/** @deprecated Use editUser instead. */
|
|
1837
1844
|
editUserStatus: User;
|
|
1845
|
+
/** Finds or creates a Stripe customer for the current user. */
|
|
1838
1846
|
findOrCreateStripeCustomer: StripeCustomer;
|
|
1847
|
+
/** Finds or creates a Stripe subscription for the current user. An existing subscription is returned only if it is active. */
|
|
1839
1848
|
findOrCreateStripeSubscription: FindOrCreateStripeSubscriptionResult;
|
|
1849
|
+
generateComponents: GenerateComponentsResult;
|
|
1840
1850
|
invalidateApiToken: InvalidateApiTokenResult;
|
|
1841
1851
|
moveUserToOrg: MoveUserToOrgResult;
|
|
1842
1852
|
refreshSession: Scalars['Boolean']['output'];
|
|
@@ -1879,10 +1889,6 @@ export type MutationCreateAdminUserArgs = {
|
|
|
1879
1889
|
input: CreateAdminUserInput;
|
|
1880
1890
|
};
|
|
1881
1891
|
|
|
1882
|
-
export type MutationCreateApiTokenArgs = {
|
|
1883
|
-
input: CreateApiTokenInput;
|
|
1884
|
-
};
|
|
1885
|
-
|
|
1886
1892
|
export type MutationCreateComponentArgs = {
|
|
1887
1893
|
input: CreateComponentInput;
|
|
1888
1894
|
};
|
|
@@ -1891,6 +1897,10 @@ export type MutationCreateCourseArgs = {
|
|
|
1891
1897
|
input: CreateCourseInput;
|
|
1892
1898
|
};
|
|
1893
1899
|
|
|
1900
|
+
export type MutationCreateCustomTableEditorFormVersionArgs = {
|
|
1901
|
+
input: CreateCustomTableEditorFormVersionInput;
|
|
1902
|
+
};
|
|
1903
|
+
|
|
1894
1904
|
export type MutationCreateDocumentArgs = {
|
|
1895
1905
|
name: Scalars['String']['input'];
|
|
1896
1906
|
platformId: Scalars['String']['input'];
|
|
@@ -1985,6 +1995,18 @@ export type MutationCreatePageTemplateArgs = {
|
|
|
1985
1995
|
title: Scalars['String']['input'];
|
|
1986
1996
|
};
|
|
1987
1997
|
|
|
1998
|
+
export type MutationCreatePersonalApiTokenArgs = {
|
|
1999
|
+
input: CreatePersonalApiTokenInput;
|
|
2000
|
+
};
|
|
2001
|
+
|
|
2002
|
+
export type MutationCreatePlatformArgs = {
|
|
2003
|
+
input: CreatePlatformInput;
|
|
2004
|
+
};
|
|
2005
|
+
|
|
2006
|
+
export type MutationCreatePlatformApiTokenArgs = {
|
|
2007
|
+
input: CreatePlatformApiTokenInput;
|
|
2008
|
+
};
|
|
2009
|
+
|
|
1988
2010
|
export type MutationCreateProductArgs = {
|
|
1989
2011
|
alternativeStripePriceIds: Array<Scalars['String']['input']>;
|
|
1990
2012
|
description: Scalars['String']['input'];
|
|
@@ -2058,13 +2080,7 @@ export type MutationCreateTlsCertificateMapEntryArgs = {
|
|
|
2058
2080
|
};
|
|
2059
2081
|
|
|
2060
2082
|
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>;
|
|
2083
|
+
input: CreateUserInput;
|
|
2068
2084
|
};
|
|
2069
2085
|
|
|
2070
2086
|
export type MutationCreateUser2Args = {
|
|
@@ -2251,10 +2267,6 @@ export type MutationEditFormTemplateEmailTemplateArgs = {
|
|
|
2251
2267
|
input: EditFormTemplateEmailTemplateInput;
|
|
2252
2268
|
};
|
|
2253
2269
|
|
|
2254
|
-
export type MutationEditFormTemplateFormattedDataTemplateArgs = {
|
|
2255
|
-
input: EditFormTemplateFormattedDataTemplateInput;
|
|
2256
|
-
};
|
|
2257
|
-
|
|
2258
2270
|
export type MutationEditFormTemplateStepArgs = {
|
|
2259
2271
|
components: Scalars['String']['input'];
|
|
2260
2272
|
enabled: Scalars['Boolean']['input'];
|
|
@@ -2459,6 +2471,10 @@ export type MutationFindOrCreateStripeSubscriptionArgs = {
|
|
|
2459
2471
|
subscriptionPlanId: Scalars['String']['input'];
|
|
2460
2472
|
};
|
|
2461
2473
|
|
|
2474
|
+
export type MutationGenerateComponentsArgs = {
|
|
2475
|
+
input: GenerateComponentsInput;
|
|
2476
|
+
};
|
|
2477
|
+
|
|
2462
2478
|
export type MutationInvalidateApiTokenArgs = {
|
|
2463
2479
|
id: Scalars['String']['input'];
|
|
2464
2480
|
};
|
|
@@ -2605,8 +2621,8 @@ export type OptionalStringUpdate = {
|
|
|
2605
2621
|
value?: InputMaybe<Scalars['String']['input']>;
|
|
2606
2622
|
};
|
|
2607
2623
|
|
|
2608
|
-
export type
|
|
2609
|
-
__typename?: '
|
|
2624
|
+
export type Org = {
|
|
2625
|
+
__typename?: 'Org';
|
|
2610
2626
|
id: Scalars['String']['output'];
|
|
2611
2627
|
members: Array<User>;
|
|
2612
2628
|
membersCount: Scalars['Int']['output'];
|
|
@@ -2616,22 +2632,22 @@ export type Organization = {
|
|
|
2616
2632
|
subscriptionOrganizations: Array<SubscriptionOrganization>;
|
|
2617
2633
|
};
|
|
2618
2634
|
|
|
2619
|
-
export type
|
|
2635
|
+
export type OrgMembersArgs = {
|
|
2620
2636
|
status?: InputMaybe<Array<UserStatus>>;
|
|
2621
2637
|
};
|
|
2622
2638
|
|
|
2623
2639
|
/** A subtype of Org to limit the exposed fields. */
|
|
2624
|
-
export type
|
|
2625
|
-
__typename?: '
|
|
2640
|
+
export type OrgProfile = {
|
|
2641
|
+
__typename?: 'OrgProfile';
|
|
2626
2642
|
id: Scalars['String']['output'];
|
|
2627
2643
|
name?: Maybe<Scalars['String']['output']>;
|
|
2628
2644
|
primaryUser?: Maybe<UserProfile>;
|
|
2629
2645
|
};
|
|
2630
2646
|
|
|
2631
|
-
export type
|
|
2632
|
-
__typename?: '
|
|
2647
|
+
export type OrgsList = ListResult & {
|
|
2648
|
+
__typename?: 'OrgsList';
|
|
2633
2649
|
limit: Scalars['Int']['output'];
|
|
2634
|
-
organizations: Array<
|
|
2650
|
+
organizations: Array<Org>;
|
|
2635
2651
|
totalCount: Scalars['Int']['output'];
|
|
2636
2652
|
};
|
|
2637
2653
|
|
|
@@ -2676,6 +2692,8 @@ export type PageTemplate = {
|
|
|
2676
2692
|
components: Scalars['String']['output'];
|
|
2677
2693
|
description?: Maybe<Scalars['String']['output']>;
|
|
2678
2694
|
id: Scalars['String']['output'];
|
|
2695
|
+
metaDescription?: Maybe<Scalars['String']['output']>;
|
|
2696
|
+
metaRobots: Array<Scalars['String']['output']>;
|
|
2679
2697
|
metaTitle?: Maybe<Scalars['String']['output']>;
|
|
2680
2698
|
path: Scalars['String']['output'];
|
|
2681
2699
|
previewImageUrl?: Maybe<Scalars['String']['output']>;
|
|
@@ -2781,6 +2799,22 @@ export const PasswordStatus = {
|
|
|
2781
2799
|
} as const;
|
|
2782
2800
|
|
|
2783
2801
|
export type PasswordStatus = (typeof PasswordStatus)[keyof typeof PasswordStatus];
|
|
2802
|
+
export type Permission = {
|
|
2803
|
+
__typename?: 'Permission';
|
|
2804
|
+
action: Scalars['String']['output'];
|
|
2805
|
+
id: Scalars['String']['output'];
|
|
2806
|
+
object: Scalars['String']['output'];
|
|
2807
|
+
};
|
|
2808
|
+
|
|
2809
|
+
export type PermissionInput = {
|
|
2810
|
+
action: Scalars['String']['input'];
|
|
2811
|
+
object: Scalars['String']['input'];
|
|
2812
|
+
};
|
|
2813
|
+
|
|
2814
|
+
export type PermissionListUpdate = {
|
|
2815
|
+
value: Array<PermissionInput>;
|
|
2816
|
+
};
|
|
2817
|
+
|
|
2784
2818
|
/** Temporary for the rename. */
|
|
2785
2819
|
export const PermissionName = {
|
|
2786
2820
|
/** Create (i.e., add) extensions. */
|
|
@@ -2825,6 +2859,8 @@ export const PermissionName = {
|
|
|
2825
2859
|
EditSubscription: 'EditSubscription',
|
|
2826
2860
|
/** Edit any page and form template. */
|
|
2827
2861
|
EditTemplate: 'EditTemplate',
|
|
2862
|
+
/** Edit any custom field of any user. */
|
|
2863
|
+
EditUserCustomFields: 'EditUserCustomFields',
|
|
2828
2864
|
/** Edit any user's email address. */
|
|
2829
2865
|
EditUserEmail: 'EditUserEmail',
|
|
2830
2866
|
/** Edit which org any user is in and whether a user is an org owner. */
|
|
@@ -2852,8 +2888,19 @@ export const PermissionName = {
|
|
|
2852
2888
|
} as const;
|
|
2853
2889
|
|
|
2854
2890
|
export type PermissionName = (typeof PermissionName)[keyof typeof PermissionName];
|
|
2855
|
-
export type
|
|
2856
|
-
|
|
2891
|
+
export type PersonalApiToken = {
|
|
2892
|
+
__typename?: 'PersonalApiToken';
|
|
2893
|
+
createdAt: Scalars['Date']['output'];
|
|
2894
|
+
id: Scalars['String']['output'];
|
|
2895
|
+
invalidatedAt?: Maybe<Scalars['Date']['output']>;
|
|
2896
|
+
name: Scalars['String']['output'];
|
|
2897
|
+
};
|
|
2898
|
+
|
|
2899
|
+
export type PersonalApiTokensList = ListResult & {
|
|
2900
|
+
__typename?: 'PersonalApiTokensList';
|
|
2901
|
+
apiTokens: Array<PersonalApiToken>;
|
|
2902
|
+
limit: Scalars['Int']['output'];
|
|
2903
|
+
totalCount: Scalars['Int']['output'];
|
|
2857
2904
|
};
|
|
2858
2905
|
|
|
2859
2906
|
export type Platform = {
|
|
@@ -2863,7 +2910,7 @@ export type Platform = {
|
|
|
2863
2910
|
activeCampaignApiUrl?: Maybe<Scalars['String']['output']>;
|
|
2864
2911
|
activeCampaignTagsSyncConfig?: Maybe<Array<ActiveCampaignTagsSyncConfig>>;
|
|
2865
2912
|
admins: PlatformAdminUsersList;
|
|
2866
|
-
|
|
2913
|
+
apiTokens: PlatformApiTokensList;
|
|
2867
2914
|
defaultFormNotificationEmailBodyTemplate: Scalars['String']['output'];
|
|
2868
2915
|
emailReplyToAddress?: Maybe<Scalars['String']['output']>;
|
|
2869
2916
|
emailSendFromAddress: Scalars['String']['output'];
|
|
@@ -2896,16 +2943,10 @@ export type PlatformAdminUser = {
|
|
|
2896
2943
|
adminUser: AdminUser;
|
|
2897
2944
|
id: Scalars['String']['output'];
|
|
2898
2945
|
owner: Scalars['Boolean']['output'];
|
|
2899
|
-
permissions: Array<
|
|
2946
|
+
permissions: Array<Permission>;
|
|
2900
2947
|
platform: Platform;
|
|
2901
2948
|
};
|
|
2902
2949
|
|
|
2903
|
-
export type PlatformAdminUserPermission = {
|
|
2904
|
-
__typename?: 'PlatformAdminUserPermission';
|
|
2905
|
-
id: Scalars['String']['output'];
|
|
2906
|
-
permission: PermissionName;
|
|
2907
|
-
};
|
|
2908
|
-
|
|
2909
2950
|
export type PlatformAdminUsersList = ListResult & {
|
|
2910
2951
|
__typename?: 'PlatformAdminUsersList';
|
|
2911
2952
|
limit: Scalars['Int']['output'];
|
|
@@ -2913,6 +2954,22 @@ export type PlatformAdminUsersList = ListResult & {
|
|
|
2913
2954
|
totalCount: Scalars['Int']['output'];
|
|
2914
2955
|
};
|
|
2915
2956
|
|
|
2957
|
+
export type PlatformApiToken = {
|
|
2958
|
+
__typename?: 'PlatformApiToken';
|
|
2959
|
+
createdAt: Scalars['Date']['output'];
|
|
2960
|
+
id: Scalars['String']['output'];
|
|
2961
|
+
invalidatedAt?: Maybe<Scalars['Date']['output']>;
|
|
2962
|
+
name: Scalars['String']['output'];
|
|
2963
|
+
permissions: Array<Permission>;
|
|
2964
|
+
};
|
|
2965
|
+
|
|
2966
|
+
export type PlatformApiTokensList = ListResult & {
|
|
2967
|
+
__typename?: 'PlatformApiTokensList';
|
|
2968
|
+
apiTokens: Array<PlatformApiToken>;
|
|
2969
|
+
limit: Scalars['Int']['output'];
|
|
2970
|
+
totalCount: Scalars['Int']['output'];
|
|
2971
|
+
};
|
|
2972
|
+
|
|
2916
2973
|
export type PreviewStripeCoupon = {
|
|
2917
2974
|
__typename?: 'PreviewStripeCoupon';
|
|
2918
2975
|
amountOff?: Maybe<Scalars['String']['output']>;
|
|
@@ -3107,7 +3164,7 @@ export type PublishStatusUpdate = {
|
|
|
3107
3164
|
|
|
3108
3165
|
export type Query = {
|
|
3109
3166
|
__typename?: 'Query';
|
|
3110
|
-
|
|
3167
|
+
adminMe?: Maybe<AdminUser>;
|
|
3111
3168
|
applyCustomPromoCode: ApplyCustomPromoCodeResult;
|
|
3112
3169
|
/**
|
|
3113
3170
|
* Get active components that can be used for the visual builder on a platform. Results include built-in,
|
|
@@ -3118,6 +3175,7 @@ export type Query = {
|
|
|
3118
3175
|
components: ComponentsList;
|
|
3119
3176
|
course: Course;
|
|
3120
3177
|
courses: CoursesList;
|
|
3178
|
+
customTable?: Maybe<CustomTable>;
|
|
3121
3179
|
customTables: CustomTablesList;
|
|
3122
3180
|
document: Document;
|
|
3123
3181
|
documentDownloadPrompts: Array<DocumentDownloadPrompt>;
|
|
@@ -3134,7 +3192,6 @@ export type Query = {
|
|
|
3134
3192
|
* help tickets are returned (and platformId needs to be the user’s own platform ID).
|
|
3135
3193
|
*/
|
|
3136
3194
|
helpTickets: HelpTicketsList;
|
|
3137
|
-
helpTickets2: HelpTicketsList;
|
|
3138
3195
|
/**
|
|
3139
3196
|
* Get an object with the form data with which to initialize the specified form. The result factors
|
|
3140
3197
|
* in the signed in user, if any. The request needs to be sent to the API endpoint of the site on
|
|
@@ -3147,10 +3204,10 @@ export type Query = {
|
|
|
3147
3204
|
lesson: Lesson;
|
|
3148
3205
|
liveCustomFields: Array<CustomField>;
|
|
3149
3206
|
me?: Maybe<User>;
|
|
3150
|
-
|
|
3151
|
-
multiOrgView: Array<
|
|
3152
|
-
organization:
|
|
3153
|
-
organizations:
|
|
3207
|
+
/** TODO: This should also take a productId to filter on. */
|
|
3208
|
+
multiOrgView: Array<Org>;
|
|
3209
|
+
organization: Org;
|
|
3210
|
+
organizations: OrgsList;
|
|
3154
3211
|
page: Page;
|
|
3155
3212
|
/** Get a page template. For unauthenticated requests, a template is returned only if it's published. */
|
|
3156
3213
|
pageTemplate: PageTemplate;
|
|
@@ -3217,6 +3274,11 @@ export type QueryCoursesArgs = {
|
|
|
3217
3274
|
platformId: Scalars['String']['input'];
|
|
3218
3275
|
};
|
|
3219
3276
|
|
|
3277
|
+
export type QueryCustomTableArgs = {
|
|
3278
|
+
object: CustomTableObject;
|
|
3279
|
+
platformId: Scalars['String']['input'];
|
|
3280
|
+
};
|
|
3281
|
+
|
|
3220
3282
|
export type QueryCustomTablesArgs = {
|
|
3221
3283
|
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
3222
3284
|
object?: InputMaybe<CustomTableObject>;
|
|
@@ -3278,12 +3340,6 @@ export type QueryHelpTicketsArgs = {
|
|
|
3278
3340
|
platformId: Scalars['String']['input'];
|
|
3279
3341
|
};
|
|
3280
3342
|
|
|
3281
|
-
export type QueryHelpTickets2Args = {
|
|
3282
|
-
limit?: Scalars['Int']['input'];
|
|
3283
|
-
page?: Scalars['Int']['input'];
|
|
3284
|
-
platformId: Scalars['String']['input'];
|
|
3285
|
-
};
|
|
3286
|
-
|
|
3287
3343
|
export type QueryInitialFormDataArgs = {
|
|
3288
3344
|
formId: Scalars['String']['input'];
|
|
3289
3345
|
pageId?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -3502,6 +3558,7 @@ export type RemoteComponent = {
|
|
|
3502
3558
|
id: Scalars['String']['output'];
|
|
3503
3559
|
name: Scalars['String']['output'];
|
|
3504
3560
|
stylesheetUrls: Array<Scalars['String']['output']>;
|
|
3561
|
+
supportsChildren: Scalars['Boolean']['output'];
|
|
3505
3562
|
url: Scalars['String']['output'];
|
|
3506
3563
|
};
|
|
3507
3564
|
|
|
@@ -3512,9 +3569,9 @@ export type RestoreCourseVersionChangesInput = {
|
|
|
3512
3569
|
|
|
3513
3570
|
export type RestoreCourseVersionChangesResult =
|
|
3514
3571
|
| AuthorizationError
|
|
3515
|
-
|
|
|
3516
|
-
|
|
|
3517
|
-
|
|
|
3572
|
+
| InternalError
|
|
3573
|
+
| RestoreCourseVersionChangesSuccessResult
|
|
3574
|
+
| UserError;
|
|
3518
3575
|
|
|
3519
3576
|
export type RestoreCourseVersionChangesSuccessResult = {
|
|
3520
3577
|
__typename?: 'RestoreCourseVersionChangesSuccessResult';
|
|
@@ -3528,9 +3585,9 @@ export type RestoreLessonVersionChangesInput = {
|
|
|
3528
3585
|
|
|
3529
3586
|
export type RestoreLessonVersionChangesResult =
|
|
3530
3587
|
| AuthorizationError
|
|
3531
|
-
|
|
|
3532
|
-
|
|
|
3533
|
-
|
|
|
3588
|
+
| InternalError
|
|
3589
|
+
| RestoreLessonVersionChangesSuccessResult
|
|
3590
|
+
| UserError;
|
|
3534
3591
|
|
|
3535
3592
|
export type RestoreLessonVersionChangesSuccessResult = {
|
|
3536
3593
|
__typename?: 'RestoreLessonVersionChangesSuccessResult';
|
|
@@ -3544,9 +3601,9 @@ export type RestorePageVersionChangesInput = {
|
|
|
3544
3601
|
|
|
3545
3602
|
export type RestorePageVersionChangesResult =
|
|
3546
3603
|
| AuthorizationError
|
|
3547
|
-
|
|
|
3548
|
-
|
|
|
3549
|
-
|
|
|
3604
|
+
| InternalError
|
|
3605
|
+
| RestorePageVersionChangesSuccessResult
|
|
3606
|
+
| UserError;
|
|
3550
3607
|
|
|
3551
3608
|
export type RestorePageVersionChangesSuccessResult = {
|
|
3552
3609
|
__typename?: 'RestorePageVersionChangesSuccessResult';
|
|
@@ -3638,6 +3695,7 @@ export type Site = {
|
|
|
3638
3695
|
agentPhotoUrl?: Maybe<Scalars['String']['output']>;
|
|
3639
3696
|
agreements: AgreementsList;
|
|
3640
3697
|
bodyEndCode?: Maybe<Scalars['String']['output']>;
|
|
3698
|
+
custom: CustomFieldValuesList;
|
|
3641
3699
|
domain: Scalars['String']['output'];
|
|
3642
3700
|
fontFamily: Scalars['String']['output'];
|
|
3643
3701
|
globalCss?: Maybe<Scalars['String']['output']>;
|
|
@@ -3652,12 +3710,11 @@ export type Site = {
|
|
|
3652
3710
|
mixpanelToken?: Maybe<Scalars['String']['output']>;
|
|
3653
3711
|
name: Scalars['String']['output'];
|
|
3654
3712
|
/** The org that owns the site. */
|
|
3655
|
-
org?: Maybe<
|
|
3713
|
+
org?: Maybe<Org>;
|
|
3656
3714
|
orgId?: Maybe<Scalars['String']['output']>;
|
|
3657
3715
|
pages: PagesList;
|
|
3658
3716
|
pages2: PagesList;
|
|
3659
3717
|
platformId: Scalars['String']['output'];
|
|
3660
|
-
radixThemeColorName?: Maybe<Scalars['String']['output']>;
|
|
3661
3718
|
siteTemplate?: Maybe<SiteTemplate>;
|
|
3662
3719
|
siteTemplateId?: Maybe<Scalars['String']['output']>;
|
|
3663
3720
|
stripePublishableKey?: Maybe<Scalars['String']['output']>;
|
|
@@ -3726,7 +3783,7 @@ export type SitesList = ListResult & {
|
|
|
3726
3783
|
totalCount: Scalars['Int']['output'];
|
|
3727
3784
|
};
|
|
3728
3785
|
|
|
3729
|
-
export type SplitUserToNewOrgResult =
|
|
3786
|
+
export type SplitUserToNewOrgResult = SplitUserToNewOrgSuccessResult | UserError;
|
|
3730
3787
|
|
|
3731
3788
|
export type SplitUserToNewOrgSuccessResult = {
|
|
3732
3789
|
__typename?: 'SplitUserToNewOrgSuccessResult';
|
|
@@ -3835,8 +3892,10 @@ export type Sub = {
|
|
|
3835
3892
|
endAt?: Maybe<Scalars['Date']['output']>;
|
|
3836
3893
|
id: Scalars['String']['output'];
|
|
3837
3894
|
invoiceFrequency?: Maybe<InvoiceFrequency>;
|
|
3838
|
-
|
|
3895
|
+
/** TODO: Rename to ownerOrg. */
|
|
3896
|
+
managerOrganization?: Maybe<OrgProfile>;
|
|
3839
3897
|
notes: Array<SubscriptionNote>;
|
|
3898
|
+
ownerOrg?: Maybe<OrgProfile>;
|
|
3840
3899
|
plan: SubscriptionPlan;
|
|
3841
3900
|
planId: Scalars['String']['output'];
|
|
3842
3901
|
planProfile: SubscriptionPlanProfile;
|
|
@@ -3877,7 +3936,7 @@ export type SubscriptionAuditLog = {
|
|
|
3877
3936
|
actionByUser: UserProfile;
|
|
3878
3937
|
createdAt: Scalars['Date']['output'];
|
|
3879
3938
|
id: Scalars['String']['output'];
|
|
3880
|
-
organization?: Maybe<
|
|
3939
|
+
organization?: Maybe<Org>;
|
|
3881
3940
|
subscription: Sub;
|
|
3882
3941
|
};
|
|
3883
3942
|
|
|
@@ -3911,7 +3970,7 @@ export type SubscriptionNote = {
|
|
|
3911
3970
|
export type SubscriptionOrganization = {
|
|
3912
3971
|
__typename?: 'SubscriptionOrganization';
|
|
3913
3972
|
id: Scalars['String']['output'];
|
|
3914
|
-
org:
|
|
3973
|
+
org: Org;
|
|
3915
3974
|
subscription: Sub;
|
|
3916
3975
|
subscriptionId: Scalars['String']['output'];
|
|
3917
3976
|
subscriptionOwner: Scalars['Boolean']['output'];
|
|
@@ -3975,8 +4034,8 @@ export type SyncLayoutTemplateToLayoutsInput = {
|
|
|
3975
4034
|
|
|
3976
4035
|
export type SyncLayoutTemplateToLayoutsResult =
|
|
3977
4036
|
| AuthorizationError
|
|
3978
|
-
|
|
|
3979
|
-
|
|
|
4037
|
+
| SyncLayoutTemplateToLayoutsSuccessResult
|
|
4038
|
+
| UserError;
|
|
3980
4039
|
|
|
3981
4040
|
export type SyncLayoutTemplateToLayoutsSuccessResult = {
|
|
3982
4041
|
__typename?: 'SyncLayoutTemplateToLayoutsSuccessResult';
|
|
@@ -4002,8 +4061,8 @@ export type SyncPageTemplateToPagesInput = {
|
|
|
4002
4061
|
|
|
4003
4062
|
export type SyncPageTemplateToPagesResult =
|
|
4004
4063
|
| AuthorizationError
|
|
4005
|
-
|
|
|
4006
|
-
|
|
|
4064
|
+
| SyncPageTemplateToPagesSuccessResult
|
|
4065
|
+
| UserError;
|
|
4007
4066
|
|
|
4008
4067
|
export const SyncPageTemplateToPagesSelection = {
|
|
4009
4068
|
All: 'All',
|
|
@@ -4079,9 +4138,9 @@ export type UploadFilePurposeSiteLogo = {
|
|
|
4079
4138
|
|
|
4080
4139
|
export type UploadFileResult =
|
|
4081
4140
|
| AuthorizationError
|
|
4082
|
-
|
|
|
4083
|
-
|
|
|
4084
|
-
|
|
|
4141
|
+
| InternalError
|
|
4142
|
+
| UploadFileSuccessResult
|
|
4143
|
+
| UserError;
|
|
4085
4144
|
|
|
4086
4145
|
export type UploadFileSuccessResult = {
|
|
4087
4146
|
__typename?: 'UploadFileSuccessResult';
|
|
@@ -4091,6 +4150,7 @@ export type UploadFileSuccessResult = {
|
|
|
4091
4150
|
|
|
4092
4151
|
export type User = {
|
|
4093
4152
|
__typename?: 'User';
|
|
4153
|
+
apiTokens: PersonalApiTokensList;
|
|
4094
4154
|
/** The latest agreement types on the current site (based on request host) to which the user has given consent. */
|
|
4095
4155
|
currentAgreementsSigned: Array<AgreementType>;
|
|
4096
4156
|
custom: CustomFieldValuesList;
|
|
@@ -4101,20 +4161,17 @@ export type User = {
|
|
|
4101
4161
|
firstName: Scalars['String']['output'];
|
|
4102
4162
|
id: Scalars['String']['output'];
|
|
4103
4163
|
lastName: Scalars['String']['output'];
|
|
4104
|
-
org
|
|
4105
|
-
orgId
|
|
4164
|
+
org?: Maybe<Org>;
|
|
4165
|
+
orgId?: Maybe<Scalars['String']['output']>;
|
|
4106
4166
|
orgPrimary: Scalars['Boolean']['output'];
|
|
4107
4167
|
passwordExpiresAt?: Maybe<Scalars['Date']['output']>;
|
|
4108
4168
|
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
4169
|
planProgress: Array<UserPlanProgress>;
|
|
4116
4170
|
plans: Array<UserPlan>;
|
|
4117
|
-
/**
|
|
4171
|
+
/**
|
|
4172
|
+
* This user’s platforms where the user is an admin.
|
|
4173
|
+
* @deprecated Use adminMe instead.
|
|
4174
|
+
*/
|
|
4118
4175
|
platformAdminUsers: Array<PlatformAdminUser>;
|
|
4119
4176
|
/** All product items from all of the active subscriptions of the user's org. */
|
|
4120
4177
|
productItems: Array<Scalars['String']['output']>;
|
|
@@ -4130,10 +4187,6 @@ export type User = {
|
|
|
4130
4187
|
zendeskChatToken?: Maybe<Scalars['String']['output']>;
|
|
4131
4188
|
};
|
|
4132
4189
|
|
|
4133
|
-
export type UserPlanArgs = {
|
|
4134
|
-
planId: Scalars['String']['input'];
|
|
4135
|
-
};
|
|
4136
|
-
|
|
4137
4190
|
export type UserPlanProgressArgs = {
|
|
4138
4191
|
contentPlanIds: Array<Scalars['String']['input']>;
|
|
4139
4192
|
};
|
|
@@ -4203,6 +4256,11 @@ export type UserCourseProgressesList = ListResult & {
|
|
|
4203
4256
|
userCourseProgresses: Array<UserCourseProgress>;
|
|
4204
4257
|
};
|
|
4205
4258
|
|
|
4259
|
+
export type UserError = Error & {
|
|
4260
|
+
__typename?: 'UserError';
|
|
4261
|
+
message: Scalars['String']['output'];
|
|
4262
|
+
};
|
|
4263
|
+
|
|
4206
4264
|
export type UserPlan = {
|
|
4207
4265
|
__typename?: 'UserPlan';
|
|
4208
4266
|
id: Scalars['String']['output'];
|
|
@@ -4240,6 +4298,10 @@ export const UserStatus = {
|
|
|
4240
4298
|
} as const;
|
|
4241
4299
|
|
|
4242
4300
|
export type UserStatus = (typeof UserStatus)[keyof typeof UserStatus];
|
|
4301
|
+
export type UserStatusUpdate = {
|
|
4302
|
+
value: UserStatus;
|
|
4303
|
+
};
|
|
4304
|
+
|
|
4243
4305
|
export type UsersList = ListResult & {
|
|
4244
4306
|
__typename?: 'UsersList';
|
|
4245
4307
|
limit: Scalars['Int']['output'];
|