@literary-universe/sdk 0.1.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,13 +20,17 @@ export type AuthorDraftSaveInput = {
20
20
  language?: string | null | undefined;
21
21
  expectedVersion: string;
22
22
  operationId: string | number;
23
- content: JsonValue;
23
+ /** Tiptap JSON. Provide exactly one of content and markdown. */
24
+ content?: JsonValue | null | undefined;
25
+ /** Markdown converted on the server with the editor's own Markdown extension. Provide exactly one of content and markdown. Rejected with MARKDOWN_UNSUPPORTED if the stored draft has nodes, marks or attributes Markdown cannot preserve; use content instead. */
26
+ markdown?: string | null | undefined;
24
27
  };
25
28
  export type AuthorChapterCreateInput = {
26
29
  storyId: string | number;
27
30
  operationId: string | number;
28
31
  title?: string | null | undefined;
29
32
  content?: JsonValue | null | undefined;
33
+ markdown?: string | null | undefined;
30
34
  isAIGenerated?: boolean | null | undefined;
31
35
  };
32
36
  export type AuthorPublicationAudience = 'BETA' | 'READERS';
@@ -38,6 +42,108 @@ export type AuthorChapterPublishInput = {
38
42
  publishAt?: string | null | undefined;
39
43
  audience?: AuthorPublicationAudience | null | undefined;
40
44
  };
45
+ export type AuthorStoryVisibility = 'PUBLIC' | 'PRIVATE';
46
+ export type AuthorChapterRenameInput = {
47
+ id: string | number;
48
+ /** A translation's language renames that edition; the original otherwise. */
49
+ language?: string | null | undefined;
50
+ title: string;
51
+ };
52
+ export type AuthorChapterRemoveInput = {
53
+ id: string | number;
54
+ };
55
+ export type AuthorChapterReorderInput = {
56
+ storyId: string | number;
57
+ /** Every chapter of the story, each once, in the new reading order. */
58
+ chapterIds: Array<string | number>;
59
+ };
60
+ /** Only the given fields change. */
61
+ export type AuthorUniverseUpdateInput = {
62
+ title?: string | null | undefined;
63
+ /** The address segment: lowercase letters, digits and single hyphens. */
64
+ slug?: string | null | undefined;
65
+ description?: string | null | undefined;
66
+ /** A genre value, as the genre list names it. */
67
+ genre?: string | null | undefined;
68
+ rating?: string | null | undefined;
69
+ license?: string | null | undefined;
70
+ language?: string | null | undefined;
71
+ };
72
+ /** A field by its title; a new title adds a text field. */
73
+ export type AuthorEncyclopediaTextFieldInput = {
74
+ title: string;
75
+ text: string;
76
+ };
77
+ /** A date like 1402-03-01, or HH:MM in a clock field. */
78
+ export type AuthorEncyclopediaTimeFieldInput = {
79
+ title: string;
80
+ value: string;
81
+ };
82
+ /** Only the given values change. Entries are named by their names. */
83
+ export type AuthorEncyclopediaEntryChangesInput = {
84
+ name?: string | null | undefined;
85
+ pronunciation?: string | null | undefined;
86
+ tags?: Array<string> | null | undefined;
87
+ categoryTitle?: string | null | undefined;
88
+ /** null removes the parent. */
89
+ parentName?: string | null | undefined;
90
+ relatedAdd?: Array<string> | null | undefined;
91
+ relatedRemove?: Array<string> | null | undefined;
92
+ summary?: string | null | undefined;
93
+ fields?: Array<AuthorEncyclopediaTextFieldInput> | null | undefined;
94
+ timeFields?: Array<AuthorEncyclopediaTimeFieldInput> | null | undefined;
95
+ };
96
+ export type AuthorEncyclopediaEntryCreateInput = {
97
+ universeId: string | number;
98
+ name: string;
99
+ /** A category available in the universe, by title. */
100
+ categoryTitle: string;
101
+ pronunciation?: string | null | undefined;
102
+ tags?: Array<string> | null | undefined;
103
+ parentName?: string | null | undefined;
104
+ relatedAdd?: Array<string> | null | undefined;
105
+ summary?: string | null | undefined;
106
+ fields?: Array<AuthorEncyclopediaTextFieldInput> | null | undefined;
107
+ timeFields?: Array<AuthorEncyclopediaTimeFieldInput> | null | undefined;
108
+ };
109
+ export type AuthorEncyclopediaFieldTranslationInput = {
110
+ /** The field's title in the original language. */
111
+ title: string;
112
+ translatedTitle?: string | null | undefined;
113
+ text: string;
114
+ };
115
+ export type AuthorEncyclopediaEntryTranslationInput = {
116
+ id: string | number;
117
+ /** A language the universe is translated into. */
118
+ language: string;
119
+ name?: string | null | undefined;
120
+ pronunciation?: string | null | undefined;
121
+ summary?: string | null | undefined;
122
+ fields?: Array<AuthorEncyclopediaFieldTranslationInput> | null | undefined;
123
+ };
124
+ export type AuthorSeriesSaveInput = {
125
+ universeId: string | number;
126
+ /** Leave out to create a series. */
127
+ seriesId?: string | number | null | undefined;
128
+ /** The version read with the series; 0 for a new one. */
129
+ expectedVersion: number;
130
+ title: string;
131
+ /** Stories of the universe, not fan fiction, in reading order. */
132
+ storyIds: Array<string | number>;
133
+ };
134
+ /** Only the given fields change. */
135
+ export type AuthorStoryUpdateInput = {
136
+ title?: string | null | undefined;
137
+ description?: string | null | undefined;
138
+ /** Genre values, as the genre list names them. */
139
+ genres?: Array<string> | null | undefined;
140
+ tags?: Array<string> | null | undefined;
141
+ rating?: string | null | undefined;
142
+ license?: string | null | undefined;
143
+ language?: string | null | undefined;
144
+ /** Another universe needs edit rights on it; null makes the story standalone. */
145
+ universeId?: string | number | null | undefined;
146
+ };
41
147
  export type LuIdentityQueryVariables = Exact<{
42
148
  [key: string]: never;
43
149
  }>;
@@ -352,6 +458,333 @@ export type LuUpdateUniverseTranslationMutation = {
352
458
  revision: number;
353
459
  };
354
460
  };
461
+ export type LuUpdateStoryMutationVariables = Exact<{
462
+ storyId: string | number;
463
+ input: AuthorStoryUpdateInput;
464
+ }>;
465
+ export type LuUpdateStoryMutation = {
466
+ result: {
467
+ id: string;
468
+ title: string;
469
+ slug: string | null;
470
+ language: string;
471
+ universeId: string | null;
472
+ organizationId: string | null;
473
+ createdAt: string | null;
474
+ updatedAt: string | null;
475
+ publishedAt: string | null;
476
+ privateAt: string | null;
477
+ state: AuthorWorkState;
478
+ };
479
+ };
480
+ export type LuSetStoryVisibilityMutationVariables = Exact<{
481
+ storyId: string | number;
482
+ visibility: AuthorStoryVisibility;
483
+ }>;
484
+ export type LuSetStoryVisibilityMutation = {
485
+ result: {
486
+ id: string;
487
+ title: string;
488
+ slug: string | null;
489
+ language: string;
490
+ universeId: string | null;
491
+ organizationId: string | null;
492
+ createdAt: string | null;
493
+ updatedAt: string | null;
494
+ publishedAt: string | null;
495
+ privateAt: string | null;
496
+ state: AuthorWorkState;
497
+ };
498
+ };
499
+ export type LuRenameChapterMutationVariables = Exact<{
500
+ input: AuthorChapterRenameInput;
501
+ }>;
502
+ export type LuRenameChapterMutation = {
503
+ result: {
504
+ id: string;
505
+ storyId: string;
506
+ sequence: number;
507
+ title: string;
508
+ language: string;
509
+ hasDraft: boolean;
510
+ updatedAt: string | null;
511
+ publishedAt: string | null;
512
+ };
513
+ };
514
+ export type LuRemoveChapterMutationVariables = Exact<{
515
+ input: AuthorChapterRemoveInput;
516
+ }>;
517
+ export type LuRemoveChapterMutation = {
518
+ result: {
519
+ id: string;
520
+ storyId: string;
521
+ };
522
+ };
523
+ export type LuReorderChaptersMutationVariables = Exact<{
524
+ input: AuthorChapterReorderInput;
525
+ }>;
526
+ export type LuReorderChaptersMutation = {
527
+ result: {
528
+ storyId: string;
529
+ chapterIds: Array<string>;
530
+ };
531
+ };
532
+ export type LuUpdateUniverseMutationVariables = Exact<{
533
+ universeId: string | number;
534
+ input: AuthorUniverseUpdateInput;
535
+ }>;
536
+ export type LuUpdateUniverseMutation = {
537
+ result: {
538
+ id: string;
539
+ title: string;
540
+ slug: string | null;
541
+ language: string;
542
+ organizationId: string | null;
543
+ createdAt: string | null;
544
+ updatedAt: string | null;
545
+ publishedAt: string | null;
546
+ privateAt: string | null;
547
+ state: AuthorWorkState;
548
+ };
549
+ };
550
+ export type LuEncyclopediaEntriesQueryVariables = Exact<{
551
+ universeId: string | number;
552
+ first?: number | null | undefined;
553
+ after?: string | null | undefined;
554
+ }>;
555
+ export type LuEncyclopediaEntriesQuery = {
556
+ result: {
557
+ nodes: Array<{
558
+ id: string;
559
+ universeId: string;
560
+ name: string;
561
+ categoryId: string;
562
+ categoryTitle: string | null;
563
+ language: string;
564
+ wip: boolean;
565
+ publishedAt: string | null;
566
+ updatedAt: string | null;
567
+ translations: Array<string>;
568
+ }>;
569
+ pageInfo: {
570
+ endCursor: string | null;
571
+ hasNextPage: boolean;
572
+ };
573
+ };
574
+ };
575
+ export type LuEncyclopediaEntryQueryVariables = Exact<{
576
+ id: string | number;
577
+ language?: string | null | undefined;
578
+ }>;
579
+ export type LuEncyclopediaEntryQuery = {
580
+ result: {
581
+ id: string;
582
+ universeId: string;
583
+ name: string;
584
+ categoryId: string;
585
+ categoryTitle: string | null;
586
+ language: string;
587
+ wip: boolean;
588
+ publishedAt: string | null;
589
+ updatedAt: string | null;
590
+ translations: Array<string>;
591
+ pronunciation: string | null;
592
+ tags: Array<string>;
593
+ summary: string | null;
594
+ parent: {
595
+ id: string | null;
596
+ name: string;
597
+ } | null;
598
+ related: Array<{
599
+ id: string | null;
600
+ name: string;
601
+ }>;
602
+ fields: Array<{
603
+ id: string;
604
+ title: string;
605
+ type: string;
606
+ private: boolean;
607
+ text: string | null;
608
+ }>;
609
+ } | null;
610
+ };
611
+ export type LuCreateEncyclopediaEntryMutationVariables = Exact<{
612
+ input: AuthorEncyclopediaEntryCreateInput;
613
+ }>;
614
+ export type LuCreateEncyclopediaEntryMutation = {
615
+ result: {
616
+ id: string;
617
+ universeId: string;
618
+ name: string;
619
+ categoryId: string;
620
+ categoryTitle: string | null;
621
+ language: string;
622
+ wip: boolean;
623
+ publishedAt: string | null;
624
+ updatedAt: string | null;
625
+ translations: Array<string>;
626
+ pronunciation: string | null;
627
+ tags: Array<string>;
628
+ summary: string | null;
629
+ parent: {
630
+ id: string | null;
631
+ name: string;
632
+ } | null;
633
+ related: Array<{
634
+ id: string | null;
635
+ name: string;
636
+ }>;
637
+ fields: Array<{
638
+ id: string;
639
+ title: string;
640
+ type: string;
641
+ private: boolean;
642
+ text: string | null;
643
+ }>;
644
+ };
645
+ };
646
+ export type LuUpdateEncyclopediaEntryMutationVariables = Exact<{
647
+ id: string | number;
648
+ changes: AuthorEncyclopediaEntryChangesInput;
649
+ }>;
650
+ export type LuUpdateEncyclopediaEntryMutation = {
651
+ result: {
652
+ id: string;
653
+ universeId: string;
654
+ name: string;
655
+ categoryId: string;
656
+ categoryTitle: string | null;
657
+ language: string;
658
+ wip: boolean;
659
+ publishedAt: string | null;
660
+ updatedAt: string | null;
661
+ translations: Array<string>;
662
+ pronunciation: string | null;
663
+ tags: Array<string>;
664
+ summary: string | null;
665
+ parent: {
666
+ id: string | null;
667
+ name: string;
668
+ } | null;
669
+ related: Array<{
670
+ id: string | null;
671
+ name: string;
672
+ }>;
673
+ fields: Array<{
674
+ id: string;
675
+ title: string;
676
+ type: string;
677
+ private: boolean;
678
+ text: string | null;
679
+ }>;
680
+ };
681
+ };
682
+ export type LuTranslateEncyclopediaEntryMutationVariables = Exact<{
683
+ input: AuthorEncyclopediaEntryTranslationInput;
684
+ }>;
685
+ export type LuTranslateEncyclopediaEntryMutation = {
686
+ result: {
687
+ id: string;
688
+ universeId: string;
689
+ name: string;
690
+ categoryId: string;
691
+ categoryTitle: string | null;
692
+ language: string;
693
+ wip: boolean;
694
+ publishedAt: string | null;
695
+ updatedAt: string | null;
696
+ translations: Array<string>;
697
+ pronunciation: string | null;
698
+ tags: Array<string>;
699
+ summary: string | null;
700
+ parent: {
701
+ id: string | null;
702
+ name: string;
703
+ } | null;
704
+ related: Array<{
705
+ id: string | null;
706
+ name: string;
707
+ }>;
708
+ fields: Array<{
709
+ id: string;
710
+ title: string;
711
+ type: string;
712
+ private: boolean;
713
+ text: string | null;
714
+ }>;
715
+ };
716
+ };
717
+ export type LuSetEncyclopediaEntryPublicationMutationVariables = Exact<{
718
+ id: string | number;
719
+ published: boolean;
720
+ }>;
721
+ export type LuSetEncyclopediaEntryPublicationMutation = {
722
+ result: {
723
+ id: string;
724
+ universeId: string;
725
+ name: string;
726
+ categoryId: string;
727
+ categoryTitle: string | null;
728
+ language: string;
729
+ wip: boolean;
730
+ publishedAt: string | null;
731
+ updatedAt: string | null;
732
+ translations: Array<string>;
733
+ pronunciation: string | null;
734
+ tags: Array<string>;
735
+ summary: string | null;
736
+ parent: {
737
+ id: string | null;
738
+ name: string;
739
+ } | null;
740
+ related: Array<{
741
+ id: string | null;
742
+ name: string;
743
+ }>;
744
+ fields: Array<{
745
+ id: string;
746
+ title: string;
747
+ type: string;
748
+ private: boolean;
749
+ text: string | null;
750
+ }>;
751
+ };
752
+ };
753
+ export type LuDeleteEncyclopediaEntryMutationVariables = Exact<{
754
+ id: string | number;
755
+ }>;
756
+ export type LuDeleteEncyclopediaEntryMutation = {
757
+ result: {
758
+ id: string;
759
+ universeId: string;
760
+ };
761
+ };
762
+ export type LuSeriesQueryVariables = Exact<{
763
+ universeId: string | number;
764
+ }>;
765
+ export type LuSeriesQuery = {
766
+ result: Array<{
767
+ id: string;
768
+ universeId: string;
769
+ title: string;
770
+ version: number;
771
+ storyIds: Array<string>;
772
+ updatedAt: string | null;
773
+ }>;
774
+ };
775
+ export type LuSaveSeriesMutationVariables = Exact<{
776
+ input: AuthorSeriesSaveInput;
777
+ }>;
778
+ export type LuSaveSeriesMutation = {
779
+ result: {
780
+ id: string;
781
+ universeId: string;
782
+ title: string;
783
+ version: number;
784
+ storyIds: Array<string>;
785
+ updatedAt: string | null;
786
+ };
787
+ };
355
788
  export type LuImagePolicyQueryVariables = Exact<{
356
789
  [key: string]: never;
357
790
  }>;
@@ -373,5 +806,20 @@ export declare const LuCreateChapterDocument: "mutation LuCreateChapter($input:
373
806
  export declare const LuPublishChapterDocument: "mutation LuPublishChapter($input: AuthorChapterPublishInput!) {\n result: authorPublishChapter(input: $input) {\n id\n storyId\n language\n revisionId\n version\n audience\n publishedAt\n chapterPublishedAt\n warnings {\n code\n path\n message\n }\n }\n}";
374
807
  export declare const LuCreateUniverseTranslationDocument: "mutation LuCreateUniverseTranslation($universeId: ID!, $language: Locale!, $input: AuthorUniverseTranslationInput) {\n result: createAuthorUniverseTranslation(\n universeId: $universeId\n language: $language\n input: $input\n ) {\n created\n translation {\n language\n title\n description\n revision\n }\n }\n}";
375
808
  export declare const LuUpdateUniverseTranslationDocument: "mutation LuUpdateUniverseTranslation($universeId: ID!, $language: Locale!, $expectedRevision: Int!, $input: AuthorUniverseTranslationInput!) {\n result: updateAuthorUniverseTranslation(\n universeId: $universeId\n language: $language\n expectedRevision: $expectedRevision\n input: $input\n ) {\n language\n title\n description\n revision\n }\n}";
809
+ export declare const LuUpdateStoryDocument: "mutation LuUpdateStory($storyId: ID!, $input: AuthorStoryUpdateInput!) {\n result: updateAuthorStory(storyId: $storyId, input: $input) {\n id\n title\n slug\n language\n universeId\n organizationId\n createdAt\n updatedAt\n publishedAt\n privateAt\n state\n }\n}";
810
+ export declare const LuSetStoryVisibilityDocument: "mutation LuSetStoryVisibility($storyId: ID!, $visibility: AuthorStoryVisibility!) {\n result: setAuthorStoryVisibility(storyId: $storyId, visibility: $visibility) {\n id\n title\n slug\n language\n universeId\n organizationId\n createdAt\n updatedAt\n publishedAt\n privateAt\n state\n }\n}";
811
+ export declare const LuRenameChapterDocument: "mutation LuRenameChapter($input: AuthorChapterRenameInput!) {\n result: renameAuthorChapter(input: $input) {\n id\n storyId\n sequence\n title\n language\n hasDraft\n updatedAt\n publishedAt\n }\n}";
812
+ export declare const LuRemoveChapterDocument: "mutation LuRemoveChapter($input: AuthorChapterRemoveInput!) {\n result: removeAuthorChapter(input: $input) {\n id\n storyId\n }\n}";
813
+ export declare const LuReorderChaptersDocument: "mutation LuReorderChapters($input: AuthorChapterReorderInput!) {\n result: reorderAuthorChapters(input: $input) {\n storyId\n chapterIds\n }\n}";
814
+ export declare const LuUpdateUniverseDocument: "mutation LuUpdateUniverse($universeId: ID!, $input: AuthorUniverseUpdateInput!) {\n result: updateAuthorUniverse(universeId: $universeId, input: $input) {\n id\n title\n slug\n language\n organizationId\n createdAt\n updatedAt\n publishedAt\n privateAt\n state\n }\n}";
815
+ export declare const LuEncyclopediaEntriesDocument: "query LuEncyclopediaEntries($universeId: ID!, $first: Int, $after: String) {\n result: authorEncyclopediaEntries(\n universeId: $universeId\n first: $first\n after: $after\n ) {\n nodes {\n id\n universeId\n name\n categoryId\n categoryTitle\n language\n wip\n publishedAt\n updatedAt\n translations\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n}";
816
+ export declare const LuEncyclopediaEntryDocument: "query LuEncyclopediaEntry($id: ID!, $language: Locale) {\n result: authorEncyclopediaEntry(id: $id, language: $language) {\n id\n universeId\n name\n categoryId\n categoryTitle\n language\n wip\n publishedAt\n updatedAt\n translations\n pronunciation\n tags\n summary\n parent {\n id\n name\n }\n related {\n id\n name\n }\n fields {\n id\n title\n type\n private\n text\n }\n }\n}";
817
+ export declare const LuCreateEncyclopediaEntryDocument: "mutation LuCreateEncyclopediaEntry($input: AuthorEncyclopediaEntryCreateInput!) {\n result: createAuthorEncyclopediaEntry(input: $input) {\n id\n universeId\n name\n categoryId\n categoryTitle\n language\n wip\n publishedAt\n updatedAt\n translations\n pronunciation\n tags\n summary\n parent {\n id\n name\n }\n related {\n id\n name\n }\n fields {\n id\n title\n type\n private\n text\n }\n }\n}";
818
+ export declare const LuUpdateEncyclopediaEntryDocument: "mutation LuUpdateEncyclopediaEntry($id: ID!, $changes: AuthorEncyclopediaEntryChangesInput!) {\n result: updateAuthorEncyclopediaEntry(id: $id, changes: $changes) {\n id\n universeId\n name\n categoryId\n categoryTitle\n language\n wip\n publishedAt\n updatedAt\n translations\n pronunciation\n tags\n summary\n parent {\n id\n name\n }\n related {\n id\n name\n }\n fields {\n id\n title\n type\n private\n text\n }\n }\n}";
819
+ export declare const LuTranslateEncyclopediaEntryDocument: "mutation LuTranslateEncyclopediaEntry($input: AuthorEncyclopediaEntryTranslationInput!) {\n result: translateAuthorEncyclopediaEntry(input: $input) {\n id\n universeId\n name\n categoryId\n categoryTitle\n language\n wip\n publishedAt\n updatedAt\n translations\n pronunciation\n tags\n summary\n parent {\n id\n name\n }\n related {\n id\n name\n }\n fields {\n id\n title\n type\n private\n text\n }\n }\n}";
820
+ export declare const LuSetEncyclopediaEntryPublicationDocument: "mutation LuSetEncyclopediaEntryPublication($id: ID!, $published: Boolean!) {\n result: setAuthorEncyclopediaEntryPublication(id: $id, published: $published) {\n id\n universeId\n name\n categoryId\n categoryTitle\n language\n wip\n publishedAt\n updatedAt\n translations\n pronunciation\n tags\n summary\n parent {\n id\n name\n }\n related {\n id\n name\n }\n fields {\n id\n title\n type\n private\n text\n }\n }\n}";
821
+ export declare const LuDeleteEncyclopediaEntryDocument: "mutation LuDeleteEncyclopediaEntry($id: ID!) {\n result: deleteAuthorEncyclopediaEntry(id: $id) {\n id\n universeId\n }\n}";
822
+ export declare const LuSeriesDocument: "query LuSeries($universeId: ID!) {\n result: authorSeries(universeId: $universeId) {\n id\n universeId\n title\n version\n storyIds\n updatedAt\n }\n}";
823
+ export declare const LuSaveSeriesDocument: "mutation LuSaveSeries($input: AuthorSeriesSaveInput!) {\n result: saveAuthorSeries(input: $input) {\n id\n universeId\n title\n version\n storyIds\n updatedAt\n }\n}";
376
824
  export declare const LuImagePolicyDocument: "query LuImagePolicy {\n result: authorImagePolicy\n}";
377
825
  export {};
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LuImagePolicyDocument = exports.LuUpdateUniverseTranslationDocument = exports.LuCreateUniverseTranslationDocument = exports.LuPublishChapterDocument = exports.LuCreateChapterDocument = exports.LuDraftRecoveryDocument = exports.LuValidateDraftDocument = exports.LuSaveDraftDocument = exports.LuDraftDocument = exports.LuChaptersDocument = exports.LuUniverseDocument = exports.LuUniversesDocument = exports.LuStoryDocument = exports.LuStoriesDocument = exports.LuProfileDocument = exports.LuIdentityDocument = void 0;
3
+ exports.LuImagePolicyDocument = exports.LuSaveSeriesDocument = exports.LuSeriesDocument = exports.LuDeleteEncyclopediaEntryDocument = exports.LuSetEncyclopediaEntryPublicationDocument = exports.LuTranslateEncyclopediaEntryDocument = exports.LuUpdateEncyclopediaEntryDocument = exports.LuCreateEncyclopediaEntryDocument = exports.LuEncyclopediaEntryDocument = exports.LuEncyclopediaEntriesDocument = exports.LuUpdateUniverseDocument = exports.LuReorderChaptersDocument = exports.LuRemoveChapterDocument = exports.LuRenameChapterDocument = exports.LuSetStoryVisibilityDocument = exports.LuUpdateStoryDocument = exports.LuUpdateUniverseTranslationDocument = exports.LuCreateUniverseTranslationDocument = exports.LuPublishChapterDocument = exports.LuCreateChapterDocument = exports.LuDraftRecoveryDocument = exports.LuValidateDraftDocument = exports.LuSaveDraftDocument = exports.LuDraftDocument = exports.LuChaptersDocument = exports.LuUniverseDocument = exports.LuUniversesDocument = exports.LuStoryDocument = exports.LuStoriesDocument = exports.LuProfileDocument = exports.LuIdentityDocument = void 0;
4
4
  exports.LuIdentityDocument = "query LuIdentity {\n result: apiIdentity {\n version\n kind\n userId\n organizationId\n credentialId\n scopes\n expiresAt\n resourceRestrictions {\n universeIds\n storyIds\n }\n deploymentUrl\n environment\n limits {\n defaultPageSize\n maxPageSize\n maxRequestBytes\n maxDraftBytes\n maxResponseBytes\n }\n }\n}";
5
5
  exports.LuProfileDocument = "query LuProfile {\n result: apiIdentity {\n userId\n username\n }\n}";
6
6
  exports.LuStoriesDocument = "query LuStories($first: Int, $after: String) {\n result: authorStories(first: $first, after: $after) {\n nodes {\n id\n title\n slug\n language\n universeId\n organizationId\n createdAt\n updatedAt\n publishedAt\n privateAt\n state\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n}";
@@ -16,4 +16,19 @@ exports.LuCreateChapterDocument = "mutation LuCreateChapter($input: AuthorChapte
16
16
  exports.LuPublishChapterDocument = "mutation LuPublishChapter($input: AuthorChapterPublishInput!) {\n result: authorPublishChapter(input: $input) {\n id\n storyId\n language\n revisionId\n version\n audience\n publishedAt\n chapterPublishedAt\n warnings {\n code\n path\n message\n }\n }\n}";
17
17
  exports.LuCreateUniverseTranslationDocument = "mutation LuCreateUniverseTranslation($universeId: ID!, $language: Locale!, $input: AuthorUniverseTranslationInput) {\n result: createAuthorUniverseTranslation(\n universeId: $universeId\n language: $language\n input: $input\n ) {\n created\n translation {\n language\n title\n description\n revision\n }\n }\n}";
18
18
  exports.LuUpdateUniverseTranslationDocument = "mutation LuUpdateUniverseTranslation($universeId: ID!, $language: Locale!, $expectedRevision: Int!, $input: AuthorUniverseTranslationInput!) {\n result: updateAuthorUniverseTranslation(\n universeId: $universeId\n language: $language\n expectedRevision: $expectedRevision\n input: $input\n ) {\n language\n title\n description\n revision\n }\n}";
19
+ exports.LuUpdateStoryDocument = "mutation LuUpdateStory($storyId: ID!, $input: AuthorStoryUpdateInput!) {\n result: updateAuthorStory(storyId: $storyId, input: $input) {\n id\n title\n slug\n language\n universeId\n organizationId\n createdAt\n updatedAt\n publishedAt\n privateAt\n state\n }\n}";
20
+ exports.LuSetStoryVisibilityDocument = "mutation LuSetStoryVisibility($storyId: ID!, $visibility: AuthorStoryVisibility!) {\n result: setAuthorStoryVisibility(storyId: $storyId, visibility: $visibility) {\n id\n title\n slug\n language\n universeId\n organizationId\n createdAt\n updatedAt\n publishedAt\n privateAt\n state\n }\n}";
21
+ exports.LuRenameChapterDocument = "mutation LuRenameChapter($input: AuthorChapterRenameInput!) {\n result: renameAuthorChapter(input: $input) {\n id\n storyId\n sequence\n title\n language\n hasDraft\n updatedAt\n publishedAt\n }\n}";
22
+ exports.LuRemoveChapterDocument = "mutation LuRemoveChapter($input: AuthorChapterRemoveInput!) {\n result: removeAuthorChapter(input: $input) {\n id\n storyId\n }\n}";
23
+ exports.LuReorderChaptersDocument = "mutation LuReorderChapters($input: AuthorChapterReorderInput!) {\n result: reorderAuthorChapters(input: $input) {\n storyId\n chapterIds\n }\n}";
24
+ exports.LuUpdateUniverseDocument = "mutation LuUpdateUniverse($universeId: ID!, $input: AuthorUniverseUpdateInput!) {\n result: updateAuthorUniverse(universeId: $universeId, input: $input) {\n id\n title\n slug\n language\n organizationId\n createdAt\n updatedAt\n publishedAt\n privateAt\n state\n }\n}";
25
+ exports.LuEncyclopediaEntriesDocument = "query LuEncyclopediaEntries($universeId: ID!, $first: Int, $after: String) {\n result: authorEncyclopediaEntries(\n universeId: $universeId\n first: $first\n after: $after\n ) {\n nodes {\n id\n universeId\n name\n categoryId\n categoryTitle\n language\n wip\n publishedAt\n updatedAt\n translations\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n}";
26
+ exports.LuEncyclopediaEntryDocument = "query LuEncyclopediaEntry($id: ID!, $language: Locale) {\n result: authorEncyclopediaEntry(id: $id, language: $language) {\n id\n universeId\n name\n categoryId\n categoryTitle\n language\n wip\n publishedAt\n updatedAt\n translations\n pronunciation\n tags\n summary\n parent {\n id\n name\n }\n related {\n id\n name\n }\n fields {\n id\n title\n type\n private\n text\n }\n }\n}";
27
+ exports.LuCreateEncyclopediaEntryDocument = "mutation LuCreateEncyclopediaEntry($input: AuthorEncyclopediaEntryCreateInput!) {\n result: createAuthorEncyclopediaEntry(input: $input) {\n id\n universeId\n name\n categoryId\n categoryTitle\n language\n wip\n publishedAt\n updatedAt\n translations\n pronunciation\n tags\n summary\n parent {\n id\n name\n }\n related {\n id\n name\n }\n fields {\n id\n title\n type\n private\n text\n }\n }\n}";
28
+ exports.LuUpdateEncyclopediaEntryDocument = "mutation LuUpdateEncyclopediaEntry($id: ID!, $changes: AuthorEncyclopediaEntryChangesInput!) {\n result: updateAuthorEncyclopediaEntry(id: $id, changes: $changes) {\n id\n universeId\n name\n categoryId\n categoryTitle\n language\n wip\n publishedAt\n updatedAt\n translations\n pronunciation\n tags\n summary\n parent {\n id\n name\n }\n related {\n id\n name\n }\n fields {\n id\n title\n type\n private\n text\n }\n }\n}";
29
+ exports.LuTranslateEncyclopediaEntryDocument = "mutation LuTranslateEncyclopediaEntry($input: AuthorEncyclopediaEntryTranslationInput!) {\n result: translateAuthorEncyclopediaEntry(input: $input) {\n id\n universeId\n name\n categoryId\n categoryTitle\n language\n wip\n publishedAt\n updatedAt\n translations\n pronunciation\n tags\n summary\n parent {\n id\n name\n }\n related {\n id\n name\n }\n fields {\n id\n title\n type\n private\n text\n }\n }\n}";
30
+ exports.LuSetEncyclopediaEntryPublicationDocument = "mutation LuSetEncyclopediaEntryPublication($id: ID!, $published: Boolean!) {\n result: setAuthorEncyclopediaEntryPublication(id: $id, published: $published) {\n id\n universeId\n name\n categoryId\n categoryTitle\n language\n wip\n publishedAt\n updatedAt\n translations\n pronunciation\n tags\n summary\n parent {\n id\n name\n }\n related {\n id\n name\n }\n fields {\n id\n title\n type\n private\n text\n }\n }\n}";
31
+ exports.LuDeleteEncyclopediaEntryDocument = "mutation LuDeleteEncyclopediaEntry($id: ID!) {\n result: deleteAuthorEncyclopediaEntry(id: $id) {\n id\n universeId\n }\n}";
32
+ exports.LuSeriesDocument = "query LuSeries($universeId: ID!) {\n result: authorSeries(universeId: $universeId) {\n id\n universeId\n title\n version\n storyIds\n updatedAt\n }\n}";
33
+ exports.LuSaveSeriesDocument = "mutation LuSaveSeries($input: AuthorSeriesSaveInput!) {\n result: saveAuthorSeries(input: $input) {\n id\n universeId\n title\n version\n storyIds\n updatedAt\n }\n}";
19
34
  exports.LuImagePolicyDocument = "query LuImagePolicy {\n result: authorImagePolicy\n}";