@platecms/delta-smart-text 0.6.0 → 0.7.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.
Files changed (142) hide show
  1. package/.env.example +7 -0
  2. package/__generated__/fragment-masking.ts +87 -0
  3. package/__generated__/gql.ts +238 -0
  4. package/__generated__/graphql.ts +3441 -0
  5. package/__generated__/index.ts +2 -0
  6. package/codegen.config.ts +24 -0
  7. package/eslint.config.mjs +43 -0
  8. package/i18n.js +28 -0
  9. package/package.json +5 -5
  10. package/project.json +54 -0
  11. package/src/components/DeltaSlateEditor.vue +74 -0
  12. package/src/components/icon/FontAwesomeIcon.vue +21 -0
  13. package/src/graphql/apiTokens/apiTokens.fragments.gql +8 -0
  14. package/src/graphql/assets/assets.fragments.gql +10 -0
  15. package/src/graphql/blueprints/blueprints.fragments.gql +52 -0
  16. package/src/graphql/buildingBlockFieldFulfillments/buildingBlockFieldFullfillment.fragements.gql +6 -0
  17. package/src/graphql/buildingBlockFields/buildingBlockField.fragments.gql +8 -0
  18. package/src/graphql/buildingBlocks/buildingBlocks.fragments.gql +11 -0
  19. package/src/graphql/channels/channels.fragments.gql +9 -0
  20. package/src/graphql/contentExperiences/allContentExperiences.query.gql +24 -0
  21. package/src/graphql/contentExperiences/contentExperience.query.gql +20 -0
  22. package/src/graphql/contentExperiences/contentExperiences.fragments.gql +14 -0
  23. package/src/graphql/contentFields/contentFields.fragments.gql +7 -0
  24. package/src/graphql/contentItems/allContentItems.query.gql +48 -0
  25. package/src/graphql/contentItems/contentItems.fragments.gql +11 -0
  26. package/src/graphql/contentTypes/allContentTypes.query.gql +26 -0
  27. package/src/graphql/contentTypes/contentTypes.fragments.gql +11 -0
  28. package/src/graphql/contentValidations/contentValidationRule.fragments.gql +34 -0
  29. package/src/graphql/contentValues/allContentValues.query.gql +41 -0
  30. package/src/graphql/contentValues/contentValues.fragments.gql +9 -0
  31. package/src/graphql/contentValues/createContentValue.mutation.gql +17 -0
  32. package/src/graphql/experienceComponents/experienceComponent.fragments.gql +13 -0
  33. package/src/graphql/fragments.gql +6 -0
  34. package/src/graphql/gridDefinition/gridDefinition.fragments.gql +5 -0
  35. package/src/graphql/gridPlacements/gridPlacement.fragments.gql +7 -0
  36. package/src/graphql/grids/grid.fragments.gql +7 -0
  37. package/src/graphql/invitations/invitations.fragments.gql +7 -0
  38. package/src/graphql/organizations/organizations.fragments.gql +13 -0
  39. package/src/graphql/pathParts/pathParts.fragments.gql +19 -0
  40. package/src/graphql/plateMaintainers/plateMaintainer.fragements.gql +10 -0
  41. package/src/graphql/roleAssignments/roleAssignment.fragments.gql +9 -0
  42. package/src/graphql/roles/roles.fragments.gql +7 -0
  43. package/src/graphql/subject/subject.fragments.gql +8 -0
  44. package/src/graphql/tags/tags.fragments.gql +17 -0
  45. package/src/graphql/themes/themes.fragments.gql +8 -0
  46. package/src/index.css +1 -0
  47. package/src/index.ts +21 -0
  48. package/src/locales/en.json +52 -0
  49. package/src/locales/nl.json +52 -0
  50. package/src/react/components/DeltaSlateEditor.tsx +243 -0
  51. package/src/react/components/DeltaSlateEditorConnector.tsx +50 -0
  52. package/src/react/components/Element.spec.tsx +244 -0
  53. package/src/react/components/Element.tsx +151 -0
  54. package/src/react/components/FontAwesomeIcon.tsx +17 -0
  55. package/src/react/components/Leaf.spec.tsx +61 -0
  56. package/src/react/components/Leaf.tsx +22 -0
  57. package/src/react/components/elements/CodeElement.tsx +16 -0
  58. package/src/react/components/elements/ContentValueElement.tsx +33 -0
  59. package/src/react/components/elements/LinkElement.tsx +44 -0
  60. package/src/react/components/inputs/SearchInput.tsx +22 -0
  61. package/src/react/components/inputs/TextInput.tsx +30 -0
  62. package/src/react/components/menus/ContentAndFormatMenu.tsx +272 -0
  63. package/src/react/components/menus/ContentLibraryMenu.tsx +48 -0
  64. package/src/react/components/menus/ReusableContentMenu.tsx +190 -0
  65. package/src/react/components/menus/content/ContentItemsMenu.tsx +215 -0
  66. package/src/react/components/menus/content/ContentTypesMenu.tsx +129 -0
  67. package/src/react/components/menus/content/partials/ContentFieldMenuItem.tsx +11 -0
  68. package/src/react/components/menus/content/partials/ContentValueMenuItem.tsx +58 -0
  69. package/src/react/components/menus/link/AnchorInput.tsx +123 -0
  70. package/src/react/components/menus/link/LinkInput.tsx +195 -0
  71. package/src/react/components/menus/link/LinkMenu.spec.tsx +145 -0
  72. package/src/react/components/menus/link/LinkMenu.tsx +289 -0
  73. package/src/react/components/menus/partials/MenuButton.tsx +52 -0
  74. package/src/react/components/menus/partials/MenuContainer.tsx +9 -0
  75. package/src/react/components/menus/partials/MenuHeader.tsx +11 -0
  76. package/src/react/components/toolbar/Toolbar.tsx +249 -0
  77. package/src/react/components/toolbar/ToolbarBlockButton.tsx +31 -0
  78. package/src/react/components/toolbar/ToolbarHeadingDropdownButton.tsx +76 -0
  79. package/src/react/components/toolbar/ToolbarLinkButton.tsx +33 -0
  80. package/src/react/components/toolbar/ToolbarMarkButton.tsx +25 -0
  81. package/src/react/components/toolbar/content/ContentExtractToolbarButton.tsx +68 -0
  82. package/src/react/components/toolbar/content/ContentLibraryToolbarButton.tsx +43 -0
  83. package/src/react/components/toolbar/content/ContentToolbar.tsx +37 -0
  84. package/src/react/components/toolbar/link/ToolbarDisplayLink.tsx +36 -0
  85. package/src/react/components/toolbar/link/UnlinkButton.tsx +25 -0
  86. package/src/react/config/hotkeys.ts +8 -0
  87. package/src/react/plugins/index.ts +59 -0
  88. package/src/react/store/editorSlice.ts +124 -0
  89. package/src/react/store/store.ts +12 -0
  90. package/src/react/types.ts +87 -0
  91. package/src/react/utils/decorator.ts +61 -0
  92. package/src/react/utils/index.ts +110 -0
  93. package/src/vue-shims.d.ts +5 -0
  94. package/tsconfig.json +26 -0
  95. package/tsconfig.lib.json +25 -0
  96. package/tsconfig.spec.json +22 -0
  97. package/vite.config.ts +67 -0
  98. package/components/DeltaSlateEditor.vue.d.ts +0 -26
  99. package/index.cjs +0 -381
  100. package/index.css +0 -1
  101. package/index.d.ts +0 -12
  102. package/index.js +0 -49254
  103. package/react/components/DeltaSlateEditor.d.ts +0 -7
  104. package/react/components/DeltaSlateEditorConnector.d.ts +0 -12
  105. package/react/components/Element.d.ts +0 -8
  106. package/react/components/FontAwesomeIcon.d.ts +0 -6
  107. package/react/components/Leaf.d.ts +0 -3
  108. package/react/components/elements/CodeElement.d.ts +0 -8
  109. package/react/components/elements/ContentValueElement.d.ts +0 -8
  110. package/react/components/elements/LinkElement.d.ts +0 -8
  111. package/react/components/inputs/SearchInput.d.ts +0 -5
  112. package/react/components/inputs/TextInput.d.ts +0 -7
  113. package/react/components/menus/ContentAndFormatMenu.d.ts +0 -10
  114. package/react/components/menus/ContentLibraryMenu.d.ts +0 -4
  115. package/react/components/menus/ReusableContentMenu.d.ts +0 -3
  116. package/react/components/menus/content/ContentItemsMenu.d.ts +0 -5
  117. package/react/components/menus/content/ContentTypesMenu.d.ts +0 -6
  118. package/react/components/menus/content/partials/ContentFieldMenuItem.d.ts +0 -6
  119. package/react/components/menus/content/partials/ContentValueMenuItem.d.ts +0 -7
  120. package/react/components/menus/link/AnchorInput.d.ts +0 -8
  121. package/react/components/menus/link/LinkInput.d.ts +0 -11
  122. package/react/components/menus/link/LinkMenu.d.ts +0 -18
  123. package/react/components/menus/partials/MenuButton.d.ts +0 -7
  124. package/react/components/menus/partials/MenuContainer.d.ts +0 -4
  125. package/react/components/menus/partials/MenuHeader.d.ts +0 -5
  126. package/react/components/toolbar/Toolbar.d.ts +0 -6
  127. package/react/components/toolbar/ToolbarBlockButton.d.ts +0 -12
  128. package/react/components/toolbar/ToolbarHeadingDropdownButton.d.ts +0 -2
  129. package/react/components/toolbar/ToolbarLinkButton.d.ts +0 -6
  130. package/react/components/toolbar/ToolbarMarkButton.d.ts +0 -6
  131. package/react/components/toolbar/content/ContentExtractToolbarButton.d.ts +0 -2
  132. package/react/components/toolbar/content/ContentLibraryToolbarButton.d.ts +0 -5
  133. package/react/components/toolbar/content/ContentToolbar.d.ts +0 -4
  134. package/react/components/toolbar/link/ToolbarDisplayLink.d.ts +0 -2
  135. package/react/components/toolbar/link/UnlinkButton.d.ts +0 -2
  136. package/react/config/hotkeys.d.ts +0 -2
  137. package/react/plugins/index.d.ts +0 -3
  138. package/react/store/editorSlice.d.ts +0 -169
  139. package/react/store/store.d.ts +0 -5
  140. package/react/types.d.ts +0 -65
  141. package/react/utils/decorator.d.ts +0 -15
  142. package/react/utils/index.d.ts +0 -17
package/.env.example ADDED
@@ -0,0 +1,7 @@
1
+ VITE_ORY_ENDPOINT=http://localhost:4000
2
+ VITE_OATHKEEPER_ENDPOINT=http://localhost:4455/graphql
3
+
4
+ #Used only for codegen when generating types from the GraphqQL API, instructions for getting the cookie can be found in the root readme
5
+ CODEGEN_COOKIE=
6
+
7
+ NODE_ENV=development
@@ -0,0 +1,87 @@
1
+ /* eslint-disable */
2
+ import { ResultOf, DocumentTypeDecoration, TypedDocumentNode } from '@graphql-typed-document-node/core';
3
+ import { FragmentDefinitionNode } from 'graphql';
4
+ import { Incremental } from './graphql';
5
+
6
+
7
+ export type FragmentType<TDocumentType extends DocumentTypeDecoration<any, any>> = TDocumentType extends DocumentTypeDecoration<
8
+ infer TType,
9
+ any
10
+ >
11
+ ? [TType] extends [{ ' $fragmentName'?: infer TKey }]
12
+ ? TKey extends string
13
+ ? { ' $fragmentRefs'?: { [key in TKey]: TType } }
14
+ : never
15
+ : never
16
+ : never;
17
+
18
+ // return non-nullable if `fragmentType` is non-nullable
19
+ export function useFragment<TType>(
20
+ _documentNode: DocumentTypeDecoration<TType, any>,
21
+ fragmentType: FragmentType<DocumentTypeDecoration<TType, any>>
22
+ ): TType;
23
+ // return nullable if `fragmentType` is undefined
24
+ export function useFragment<TType>(
25
+ _documentNode: DocumentTypeDecoration<TType, any>,
26
+ fragmentType: FragmentType<DocumentTypeDecoration<TType, any>> | undefined
27
+ ): TType | undefined;
28
+ // return nullable if `fragmentType` is nullable
29
+ export function useFragment<TType>(
30
+ _documentNode: DocumentTypeDecoration<TType, any>,
31
+ fragmentType: FragmentType<DocumentTypeDecoration<TType, any>> | null
32
+ ): TType | null;
33
+ // return nullable if `fragmentType` is nullable or undefined
34
+ export function useFragment<TType>(
35
+ _documentNode: DocumentTypeDecoration<TType, any>,
36
+ fragmentType: FragmentType<DocumentTypeDecoration<TType, any>> | null | undefined
37
+ ): TType | null | undefined;
38
+ // return array of non-nullable if `fragmentType` is array of non-nullable
39
+ export function useFragment<TType>(
40
+ _documentNode: DocumentTypeDecoration<TType, any>,
41
+ fragmentType: Array<FragmentType<DocumentTypeDecoration<TType, any>>>
42
+ ): Array<TType>;
43
+ // return array of nullable if `fragmentType` is array of nullable
44
+ export function useFragment<TType>(
45
+ _documentNode: DocumentTypeDecoration<TType, any>,
46
+ fragmentType: Array<FragmentType<DocumentTypeDecoration<TType, any>>> | null | undefined
47
+ ): Array<TType> | null | undefined;
48
+ // return readonly array of non-nullable if `fragmentType` is array of non-nullable
49
+ export function useFragment<TType>(
50
+ _documentNode: DocumentTypeDecoration<TType, any>,
51
+ fragmentType: ReadonlyArray<FragmentType<DocumentTypeDecoration<TType, any>>>
52
+ ): ReadonlyArray<TType>;
53
+ // return readonly array of nullable if `fragmentType` is array of nullable
54
+ export function useFragment<TType>(
55
+ _documentNode: DocumentTypeDecoration<TType, any>,
56
+ fragmentType: ReadonlyArray<FragmentType<DocumentTypeDecoration<TType, any>>> | null | undefined
57
+ ): ReadonlyArray<TType> | null | undefined;
58
+ export function useFragment<TType>(
59
+ _documentNode: DocumentTypeDecoration<TType, any>,
60
+ fragmentType: FragmentType<DocumentTypeDecoration<TType, any>> | Array<FragmentType<DocumentTypeDecoration<TType, any>>> | ReadonlyArray<FragmentType<DocumentTypeDecoration<TType, any>>> | null | undefined
61
+ ): TType | Array<TType> | ReadonlyArray<TType> | null | undefined {
62
+ return fragmentType as any;
63
+ }
64
+
65
+
66
+ export function makeFragmentData<
67
+ F extends DocumentTypeDecoration<any, any>,
68
+ FT extends ResultOf<F>
69
+ >(data: FT, _fragment: F): FragmentType<F> {
70
+ return data as FragmentType<F>;
71
+ }
72
+ export function isFragmentReady<TQuery, TFrag>(
73
+ queryNode: DocumentTypeDecoration<TQuery, any>,
74
+ fragmentNode: TypedDocumentNode<TFrag>,
75
+ data: FragmentType<TypedDocumentNode<Incremental<TFrag>, any>> | null | undefined
76
+ ): data is FragmentType<typeof fragmentNode> {
77
+ const deferredFields = (queryNode as { __meta__?: { deferredFields: Record<string, (keyof TFrag)[]> } }).__meta__
78
+ ?.deferredFields;
79
+
80
+ if (!deferredFields) return true;
81
+
82
+ const fragDef = fragmentNode.definitions[0] as FragmentDefinitionNode | undefined;
83
+ const fragName = fragDef?.name?.value;
84
+
85
+ const fields = (fragName && deferredFields[fragName]) || [];
86
+ return fields.length > 0 && fields.every(field => data && field in data);
87
+ }
@@ -0,0 +1,238 @@
1
+ /* eslint-disable */
2
+ import * as types from './graphql';
3
+ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
4
+
5
+ /**
6
+ * Map of all GraphQL operations in the project.
7
+ *
8
+ * This map has several performance disadvantages:
9
+ * 1. It is not tree-shakeable, so it will include all operations in the project.
10
+ * 2. It is not minifiable, so the string of a GraphQL query will be multiple times inside the bundle.
11
+ * 3. It does not support dead code elimination, so it will add unused operations.
12
+ *
13
+ * Therefore it is highly recommended to use the babel or swc plugin for production.
14
+ * Learn more about it here: https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#reducing-bundle-size
15
+ */
16
+ type Documents = {
17
+ "fragment apiTokenFragment on ApiToken {\n _id: prn\n prn\n name\n stage\n createdAt\n updatedAt\n}": typeof types.ApiTokenFragmentFragmentDoc,
18
+ "fragment assetFragment on Asset {\n _id: prn\n prn\n fileName\n fileSize\n mimeType\n url\n createdAt\n updatedAt\n}": typeof types.AssetFragmentFragmentDoc,
19
+ "fragment blueprintFragment on Blueprint {\n _id: prn\n prn\n name\n definedBy {\n prn\n createdAt\n updatedAt\n grid {\n ...gridFragment\n gridPlacements {\n ...gridPlacementFragment\n experienceComponent {\n ...experienceComponentFragment\n buildingBlock {\n ...buildingBlockFragment\n buildingBlockFields {\n ...buildingBlockFieldFragment\n }\n }\n buildingBlockFieldFulfillments {\n ...buildingBlockFieldFulfillmentFragment\n buildingBlockField {\n ...buildingBlockFieldFragment\n }\n contentValue {\n ...contentValueFragment\n relatedAsset {\n ...assetFragment\n }\n relatedContentItem {\n ...contentItemFragment\n contentValues {\n ...contentValueFragment\n contentField {\n ...contentFieldFragment\n }\n }\n }\n contentItem {\n prn\n }\n }\n }\n }\n }\n }\n }\n isFixed\n createdAt\n updatedAt\n}": typeof types.BlueprintFragmentFragmentDoc,
20
+ "fragment buildingBlockFieldFulfillmentFragment on BuildingBlockFieldFulfillment {\n _id: prn\n prn\n createdAt\n updatedAt\n}": typeof types.BuildingBlockFieldFulfillmentFragmentFragmentDoc,
21
+ "fragment buildingBlockFieldFragment on BuildingBlockField {\n _id: prn\n prn\n slug\n title\n createdAt\n updatedAt\n}": typeof types.BuildingBlockFieldFragmentFragmentDoc,
22
+ "fragment buildingBlockFragment on BuildingBlock {\n _id: prn\n prn\n slug\n title\n preview {\n ...assetFragment\n }\n createdAt\n updatedAt\n}": typeof types.BuildingBlockFragmentFragmentDoc,
23
+ "fragment channelFragment on Channel {\n _id: prn\n name\n domain\n slug\n prn\n updatedAt\n createdAt\n}": typeof types.ChannelFragmentFragmentDoc,
24
+ "query allContentExperiences($paginate: PaginationOptionsInput!, $where: [ContentExperiencesFilterInput!], $orderBy: OrderOptionsInput) {\n contentExperiences(paginate: $paginate, where: $where, orderBy: $orderBy) {\n pageInfo {\n ...pagination\n }\n totalCount\n edges {\n cursor\n node {\n ...contentExperienceFragment\n pathPart {\n ...pathPartFragment\n channel {\n ...channelFragment\n }\n }\n }\n }\n }\n}": typeof types.AllContentExperiencesDocument,
25
+ "query contentExperience($prn: [PRN!]!) {\n contentExperience(prn: $prn) {\n ...contentExperienceFragment\n pathPart {\n ...pathPartFragment\n channel {\n ...channelFragment\n }\n }\n experienceComponent {\n ...experienceComponentFragment\n grid {\n ...gridFragment\n gridPlacements {\n ...gridPlacementFragment\n }\n }\n }\n }\n}": typeof types.ContentExperienceDocument,
26
+ "fragment contentExperienceFragment on ContentExperience {\n _id: prn\n slug\n prn\n tags {\n ...tagFragment\n }\n title\n createdAt\n updatedAt\n preview {\n ...assetFragment\n }\n}": typeof types.ContentExperienceFragmentFragmentDoc,
27
+ "fragment contentFieldFragment on ContentField {\n _id: prn\n prn\n name\n createdAt\n updatedAt\n}": typeof types.ContentFieldFragmentFragmentDoc,
28
+ "query allContentItems($paginate: PaginationOptionsInput!, $where: [ContentItemsFilterInput!], $orderBy: OrderOptionsInput) {\n contentItems(paginate: $paginate, where: $where, orderBy: $orderBy) {\n pageInfo {\n ...pagination\n }\n totalCount\n edges {\n cursor\n node {\n ...contentItemFragment\n displayImage {\n ...assetFragment\n }\n contentValues {\n ...contentValueFragment\n contentField {\n ...contentFieldFragment\n contentValidationRules {\n ...contentValidationRuleFragment\n }\n }\n relatedAsset {\n ...assetFragment\n }\n relatedContentItem {\n ...contentItemFragment\n contentValues {\n ...contentValueFragment\n }\n }\n }\n contentType {\n ...contentTypeFragment\n contentFields {\n ...contentFieldFragment\n }\n }\n tags {\n ...tagFragment\n }\n }\n }\n }\n}": typeof types.AllContentItemsDocument,
29
+ "fragment contentItemFragment on ContentItem {\n _id: prn\n prn\n isDraft\n displayName\n displayImage {\n ...assetFragment\n }\n updatedAt\n createdAt\n}": typeof types.ContentItemFragmentFragmentDoc,
30
+ "query allContentTypes($paginate: PaginationOptionsInput!, $where: [ContentTypesFilterInput!], $orderBy: OrderOptionsInput!) {\n contentTypes(paginate: $paginate, where: $where, orderBy: $orderBy) {\n pageInfo {\n ...pagination\n }\n totalCount\n edges {\n cursor\n node {\n ...contentTypeFragment\n contentFields {\n ...contentFieldFragment\n contentValidationRules {\n ...contentValidationRuleFragment\n }\n }\n }\n }\n }\n}": typeof types.AllContentTypesDocument,
31
+ "fragment contentTypeFragment on ContentType {\n _id: prn\n prn\n name\n displayNameTemplate\n displayImageField {\n ...contentFieldFragment\n }\n createdAt\n updatedAt\n}": typeof types.ContentTypeFragmentFragmentDoc,
32
+ "fragment contentValidationRuleFragment on ContentValidationRule {\n _id: prn\n prn\n ruleType\n settings {\n ... on CountContentValidationRuleSettings {\n min\n max\n }\n ... on ValueTypeContentValidationRuleSettings {\n allowedTypes\n }\n ... on AllowedValuesContentValidationRuleSettings {\n allowedValues\n }\n ... on DateBetweenContentValidationRuleSettings {\n start\n end\n }\n ... on DecimalCountContentValidationRuleSettings {\n max\n }\n ... on NumberBetweenContentValidationRuleSettings {\n min\n max\n }\n ... on RelatableContentTypesContentValidationRuleSettings {\n allowedContentTypes\n }\n ... on StringFormatContentValidationRuleSettings {\n allowedFormat\n }\n }\n}": typeof types.ContentValidationRuleFragmentFragmentDoc,
33
+ "query allContentValues($paginate: PaginationOptionsInput!, $where: [ContentValuesFilterInput!], $orderBy: OrderOptionsInput) {\n contentValues(paginate: $paginate, where: $where, orderBy: $orderBy) {\n pageInfo {\n ...pagination\n }\n totalCount\n edges {\n cursor\n node {\n ...contentValueFragment\n contentField {\n ...contentFieldFragment\n }\n contentItem {\n ...contentItemFragment\n contentType {\n ...contentTypeFragment\n }\n }\n relatedAsset {\n ...assetFragment\n }\n linkedGridPlacement {\n ...gridPlacementFragment\n }\n linkedPathPart {\n ...pathPartFragment\n }\n relatedContentItem {\n ...contentItemFragment\n }\n }\n }\n }\n}": typeof types.AllContentValuesDocument,
34
+ "fragment contentValueFragment on ContentValue {\n _id: prn\n prn\n primitiveValue\n interpolatedSmartText\n isReusable\n createdAt\n updatedAt\n}": typeof types.ContentValueFragmentFragmentDoc,
35
+ "mutation createContentValue($createContentValueInput: [CreateContentValueInput!]!) {\n createContentValue(input: $createContentValueInput) {\n ...contentValueFragment\n relatedAsset {\n ...assetFragment\n }\n relatedContentItem {\n ...contentItemFragment\n }\n linkedGridPlacement {\n ...gridPlacementFragment\n }\n linkedPathPart {\n ...pathPartFragment\n }\n }\n}": typeof types.CreateContentValueDocument,
36
+ "fragment experienceComponentFragment on ExperienceComponent {\n _id: prn\n prn\n stage\n name\n isDraft\n preview {\n ...assetFragment\n }\n isGlobal\n createdAt\n updatedAt\n}": typeof types.ExperienceComponentFragmentFragmentDoc,
37
+ "fragment pagination on PageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n}": typeof types.PaginationFragmentDoc,
38
+ "fragment gridDefinitionFragment on GridDefinition {\n _id: prn\n prn\n maxRows\n}": typeof types.GridDefinitionFragmentFragmentDoc,
39
+ "fragment gridPlacementFragment on GridPlacement {\n _id: prn\n prn\n row\n updatedAt\n createdAt\n}": typeof types.GridPlacementFragmentFragmentDoc,
40
+ "fragment gridFragment on Grid {\n _id: prn\n prn\n rows\n updatedAt\n createdAt\n}": typeof types.GridFragmentFragmentDoc,
41
+ "fragment invitationFragment on Invitation {\n _id: prn\n prn\n userEmail\n createdAt\n updatedAt\n}": typeof types.InvitationFragmentFragmentDoc,
42
+ "fragment organizationFragment on Organization {\n _id: prn\n prn\n name\n slug\n logo {\n ...assetFragment\n }\n logoUrl\n seedStatus\n createdAt\n updatedAt\n}": typeof types.OrganizationFragmentFragmentDoc,
43
+ "fragment pathPartFragment on PathPart {\n _id: prn\n prn\n slug\n path\n createdAt\n updatedAt\n channel {\n prn\n }\n hasContentExperience\n amountOfChildren\n amountOfChildrenWithContentExperiences\n amountOfDescendants\n amountOfDescendantsWithContentExperiences\n contentExperience {\n prn\n }\n}": typeof types.PathPartFragmentFragmentDoc,
44
+ "fragment plateMaintainerFragment on Subject {\n _id: id\n id\n name {\n first\n last\n }\n language\n email\n}": typeof types.PlateMaintainerFragmentFragmentDoc,
45
+ "fragment roleAssignmentFragment on RoleAssignment {\n _id: prn\n prn\n subject {\n id\n }\n createdAt\n updatedAt\n}": typeof types.RoleAssignmentFragmentFragmentDoc,
46
+ "fragment roleFragment on Role {\n _id: prn\n prn\n name\n createdAt\n updatedAt\n}": typeof types.RoleFragmentFragmentDoc,
47
+ "fragment subjectFields on Subject {\n _id: id\n email\n name {\n first\n last\n }\n}": typeof types.SubjectFieldsFragmentDoc,
48
+ "fragment tagFragment on Tag {\n _id: prn\n prn\n name\n path\n color\n visibility\n forceVisibilityOnDescendants\n stage\n amountOfChildren\n amountOfContentExperiences\n amountOfContentItems\n hasForcedVisibility\n nestingLevel\n createdAt\n updatedAt\n}": typeof types.TagFragmentFragmentDoc,
49
+ "fragment themeFragment on Theme {\n _id: prn\n prn\n name\n repositoryUrl\n createdAt\n updatedAt\n}": typeof types.ThemeFragmentFragmentDoc,
50
+ };
51
+ const documents: Documents = {
52
+ "fragment apiTokenFragment on ApiToken {\n _id: prn\n prn\n name\n stage\n createdAt\n updatedAt\n}": types.ApiTokenFragmentFragmentDoc,
53
+ "fragment assetFragment on Asset {\n _id: prn\n prn\n fileName\n fileSize\n mimeType\n url\n createdAt\n updatedAt\n}": types.AssetFragmentFragmentDoc,
54
+ "fragment blueprintFragment on Blueprint {\n _id: prn\n prn\n name\n definedBy {\n prn\n createdAt\n updatedAt\n grid {\n ...gridFragment\n gridPlacements {\n ...gridPlacementFragment\n experienceComponent {\n ...experienceComponentFragment\n buildingBlock {\n ...buildingBlockFragment\n buildingBlockFields {\n ...buildingBlockFieldFragment\n }\n }\n buildingBlockFieldFulfillments {\n ...buildingBlockFieldFulfillmentFragment\n buildingBlockField {\n ...buildingBlockFieldFragment\n }\n contentValue {\n ...contentValueFragment\n relatedAsset {\n ...assetFragment\n }\n relatedContentItem {\n ...contentItemFragment\n contentValues {\n ...contentValueFragment\n contentField {\n ...contentFieldFragment\n }\n }\n }\n contentItem {\n prn\n }\n }\n }\n }\n }\n }\n }\n isFixed\n createdAt\n updatedAt\n}": types.BlueprintFragmentFragmentDoc,
55
+ "fragment buildingBlockFieldFulfillmentFragment on BuildingBlockFieldFulfillment {\n _id: prn\n prn\n createdAt\n updatedAt\n}": types.BuildingBlockFieldFulfillmentFragmentFragmentDoc,
56
+ "fragment buildingBlockFieldFragment on BuildingBlockField {\n _id: prn\n prn\n slug\n title\n createdAt\n updatedAt\n}": types.BuildingBlockFieldFragmentFragmentDoc,
57
+ "fragment buildingBlockFragment on BuildingBlock {\n _id: prn\n prn\n slug\n title\n preview {\n ...assetFragment\n }\n createdAt\n updatedAt\n}": types.BuildingBlockFragmentFragmentDoc,
58
+ "fragment channelFragment on Channel {\n _id: prn\n name\n domain\n slug\n prn\n updatedAt\n createdAt\n}": types.ChannelFragmentFragmentDoc,
59
+ "query allContentExperiences($paginate: PaginationOptionsInput!, $where: [ContentExperiencesFilterInput!], $orderBy: OrderOptionsInput) {\n contentExperiences(paginate: $paginate, where: $where, orderBy: $orderBy) {\n pageInfo {\n ...pagination\n }\n totalCount\n edges {\n cursor\n node {\n ...contentExperienceFragment\n pathPart {\n ...pathPartFragment\n channel {\n ...channelFragment\n }\n }\n }\n }\n }\n}": types.AllContentExperiencesDocument,
60
+ "query contentExperience($prn: [PRN!]!) {\n contentExperience(prn: $prn) {\n ...contentExperienceFragment\n pathPart {\n ...pathPartFragment\n channel {\n ...channelFragment\n }\n }\n experienceComponent {\n ...experienceComponentFragment\n grid {\n ...gridFragment\n gridPlacements {\n ...gridPlacementFragment\n }\n }\n }\n }\n}": types.ContentExperienceDocument,
61
+ "fragment contentExperienceFragment on ContentExperience {\n _id: prn\n slug\n prn\n tags {\n ...tagFragment\n }\n title\n createdAt\n updatedAt\n preview {\n ...assetFragment\n }\n}": types.ContentExperienceFragmentFragmentDoc,
62
+ "fragment contentFieldFragment on ContentField {\n _id: prn\n prn\n name\n createdAt\n updatedAt\n}": types.ContentFieldFragmentFragmentDoc,
63
+ "query allContentItems($paginate: PaginationOptionsInput!, $where: [ContentItemsFilterInput!], $orderBy: OrderOptionsInput) {\n contentItems(paginate: $paginate, where: $where, orderBy: $orderBy) {\n pageInfo {\n ...pagination\n }\n totalCount\n edges {\n cursor\n node {\n ...contentItemFragment\n displayImage {\n ...assetFragment\n }\n contentValues {\n ...contentValueFragment\n contentField {\n ...contentFieldFragment\n contentValidationRules {\n ...contentValidationRuleFragment\n }\n }\n relatedAsset {\n ...assetFragment\n }\n relatedContentItem {\n ...contentItemFragment\n contentValues {\n ...contentValueFragment\n }\n }\n }\n contentType {\n ...contentTypeFragment\n contentFields {\n ...contentFieldFragment\n }\n }\n tags {\n ...tagFragment\n }\n }\n }\n }\n}": types.AllContentItemsDocument,
64
+ "fragment contentItemFragment on ContentItem {\n _id: prn\n prn\n isDraft\n displayName\n displayImage {\n ...assetFragment\n }\n updatedAt\n createdAt\n}": types.ContentItemFragmentFragmentDoc,
65
+ "query allContentTypes($paginate: PaginationOptionsInput!, $where: [ContentTypesFilterInput!], $orderBy: OrderOptionsInput!) {\n contentTypes(paginate: $paginate, where: $where, orderBy: $orderBy) {\n pageInfo {\n ...pagination\n }\n totalCount\n edges {\n cursor\n node {\n ...contentTypeFragment\n contentFields {\n ...contentFieldFragment\n contentValidationRules {\n ...contentValidationRuleFragment\n }\n }\n }\n }\n }\n}": types.AllContentTypesDocument,
66
+ "fragment contentTypeFragment on ContentType {\n _id: prn\n prn\n name\n displayNameTemplate\n displayImageField {\n ...contentFieldFragment\n }\n createdAt\n updatedAt\n}": types.ContentTypeFragmentFragmentDoc,
67
+ "fragment contentValidationRuleFragment on ContentValidationRule {\n _id: prn\n prn\n ruleType\n settings {\n ... on CountContentValidationRuleSettings {\n min\n max\n }\n ... on ValueTypeContentValidationRuleSettings {\n allowedTypes\n }\n ... on AllowedValuesContentValidationRuleSettings {\n allowedValues\n }\n ... on DateBetweenContentValidationRuleSettings {\n start\n end\n }\n ... on DecimalCountContentValidationRuleSettings {\n max\n }\n ... on NumberBetweenContentValidationRuleSettings {\n min\n max\n }\n ... on RelatableContentTypesContentValidationRuleSettings {\n allowedContentTypes\n }\n ... on StringFormatContentValidationRuleSettings {\n allowedFormat\n }\n }\n}": types.ContentValidationRuleFragmentFragmentDoc,
68
+ "query allContentValues($paginate: PaginationOptionsInput!, $where: [ContentValuesFilterInput!], $orderBy: OrderOptionsInput) {\n contentValues(paginate: $paginate, where: $where, orderBy: $orderBy) {\n pageInfo {\n ...pagination\n }\n totalCount\n edges {\n cursor\n node {\n ...contentValueFragment\n contentField {\n ...contentFieldFragment\n }\n contentItem {\n ...contentItemFragment\n contentType {\n ...contentTypeFragment\n }\n }\n relatedAsset {\n ...assetFragment\n }\n linkedGridPlacement {\n ...gridPlacementFragment\n }\n linkedPathPart {\n ...pathPartFragment\n }\n relatedContentItem {\n ...contentItemFragment\n }\n }\n }\n }\n}": types.AllContentValuesDocument,
69
+ "fragment contentValueFragment on ContentValue {\n _id: prn\n prn\n primitiveValue\n interpolatedSmartText\n isReusable\n createdAt\n updatedAt\n}": types.ContentValueFragmentFragmentDoc,
70
+ "mutation createContentValue($createContentValueInput: [CreateContentValueInput!]!) {\n createContentValue(input: $createContentValueInput) {\n ...contentValueFragment\n relatedAsset {\n ...assetFragment\n }\n relatedContentItem {\n ...contentItemFragment\n }\n linkedGridPlacement {\n ...gridPlacementFragment\n }\n linkedPathPart {\n ...pathPartFragment\n }\n }\n}": types.CreateContentValueDocument,
71
+ "fragment experienceComponentFragment on ExperienceComponent {\n _id: prn\n prn\n stage\n name\n isDraft\n preview {\n ...assetFragment\n }\n isGlobal\n createdAt\n updatedAt\n}": types.ExperienceComponentFragmentFragmentDoc,
72
+ "fragment pagination on PageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n}": types.PaginationFragmentDoc,
73
+ "fragment gridDefinitionFragment on GridDefinition {\n _id: prn\n prn\n maxRows\n}": types.GridDefinitionFragmentFragmentDoc,
74
+ "fragment gridPlacementFragment on GridPlacement {\n _id: prn\n prn\n row\n updatedAt\n createdAt\n}": types.GridPlacementFragmentFragmentDoc,
75
+ "fragment gridFragment on Grid {\n _id: prn\n prn\n rows\n updatedAt\n createdAt\n}": types.GridFragmentFragmentDoc,
76
+ "fragment invitationFragment on Invitation {\n _id: prn\n prn\n userEmail\n createdAt\n updatedAt\n}": types.InvitationFragmentFragmentDoc,
77
+ "fragment organizationFragment on Organization {\n _id: prn\n prn\n name\n slug\n logo {\n ...assetFragment\n }\n logoUrl\n seedStatus\n createdAt\n updatedAt\n}": types.OrganizationFragmentFragmentDoc,
78
+ "fragment pathPartFragment on PathPart {\n _id: prn\n prn\n slug\n path\n createdAt\n updatedAt\n channel {\n prn\n }\n hasContentExperience\n amountOfChildren\n amountOfChildrenWithContentExperiences\n amountOfDescendants\n amountOfDescendantsWithContentExperiences\n contentExperience {\n prn\n }\n}": types.PathPartFragmentFragmentDoc,
79
+ "fragment plateMaintainerFragment on Subject {\n _id: id\n id\n name {\n first\n last\n }\n language\n email\n}": types.PlateMaintainerFragmentFragmentDoc,
80
+ "fragment roleAssignmentFragment on RoleAssignment {\n _id: prn\n prn\n subject {\n id\n }\n createdAt\n updatedAt\n}": types.RoleAssignmentFragmentFragmentDoc,
81
+ "fragment roleFragment on Role {\n _id: prn\n prn\n name\n createdAt\n updatedAt\n}": types.RoleFragmentFragmentDoc,
82
+ "fragment subjectFields on Subject {\n _id: id\n email\n name {\n first\n last\n }\n}": types.SubjectFieldsFragmentDoc,
83
+ "fragment tagFragment on Tag {\n _id: prn\n prn\n name\n path\n color\n visibility\n forceVisibilityOnDescendants\n stage\n amountOfChildren\n amountOfContentExperiences\n amountOfContentItems\n hasForcedVisibility\n nestingLevel\n createdAt\n updatedAt\n}": types.TagFragmentFragmentDoc,
84
+ "fragment themeFragment on Theme {\n _id: prn\n prn\n name\n repositoryUrl\n createdAt\n updatedAt\n}": types.ThemeFragmentFragmentDoc,
85
+ };
86
+
87
+ /**
88
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
89
+ *
90
+ *
91
+ * @example
92
+ * ```ts
93
+ * const query = graphql(`query GetUser($id: ID!) { user(id: $id) { name } }`);
94
+ * ```
95
+ *
96
+ * The query argument is unknown!
97
+ * Please regenerate the types.
98
+ */
99
+ export function graphql(source: string): unknown;
100
+
101
+ /**
102
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
103
+ */
104
+ export function graphql(source: "fragment apiTokenFragment on ApiToken {\n _id: prn\n prn\n name\n stage\n createdAt\n updatedAt\n}"): (typeof documents)["fragment apiTokenFragment on ApiToken {\n _id: prn\n prn\n name\n stage\n createdAt\n updatedAt\n}"];
105
+ /**
106
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
107
+ */
108
+ export function graphql(source: "fragment assetFragment on Asset {\n _id: prn\n prn\n fileName\n fileSize\n mimeType\n url\n createdAt\n updatedAt\n}"): (typeof documents)["fragment assetFragment on Asset {\n _id: prn\n prn\n fileName\n fileSize\n mimeType\n url\n createdAt\n updatedAt\n}"];
109
+ /**
110
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
111
+ */
112
+ export function graphql(source: "fragment blueprintFragment on Blueprint {\n _id: prn\n prn\n name\n definedBy {\n prn\n createdAt\n updatedAt\n grid {\n ...gridFragment\n gridPlacements {\n ...gridPlacementFragment\n experienceComponent {\n ...experienceComponentFragment\n buildingBlock {\n ...buildingBlockFragment\n buildingBlockFields {\n ...buildingBlockFieldFragment\n }\n }\n buildingBlockFieldFulfillments {\n ...buildingBlockFieldFulfillmentFragment\n buildingBlockField {\n ...buildingBlockFieldFragment\n }\n contentValue {\n ...contentValueFragment\n relatedAsset {\n ...assetFragment\n }\n relatedContentItem {\n ...contentItemFragment\n contentValues {\n ...contentValueFragment\n contentField {\n ...contentFieldFragment\n }\n }\n }\n contentItem {\n prn\n }\n }\n }\n }\n }\n }\n }\n isFixed\n createdAt\n updatedAt\n}"): (typeof documents)["fragment blueprintFragment on Blueprint {\n _id: prn\n prn\n name\n definedBy {\n prn\n createdAt\n updatedAt\n grid {\n ...gridFragment\n gridPlacements {\n ...gridPlacementFragment\n experienceComponent {\n ...experienceComponentFragment\n buildingBlock {\n ...buildingBlockFragment\n buildingBlockFields {\n ...buildingBlockFieldFragment\n }\n }\n buildingBlockFieldFulfillments {\n ...buildingBlockFieldFulfillmentFragment\n buildingBlockField {\n ...buildingBlockFieldFragment\n }\n contentValue {\n ...contentValueFragment\n relatedAsset {\n ...assetFragment\n }\n relatedContentItem {\n ...contentItemFragment\n contentValues {\n ...contentValueFragment\n contentField {\n ...contentFieldFragment\n }\n }\n }\n contentItem {\n prn\n }\n }\n }\n }\n }\n }\n }\n isFixed\n createdAt\n updatedAt\n}"];
113
+ /**
114
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
115
+ */
116
+ export function graphql(source: "fragment buildingBlockFieldFulfillmentFragment on BuildingBlockFieldFulfillment {\n _id: prn\n prn\n createdAt\n updatedAt\n}"): (typeof documents)["fragment buildingBlockFieldFulfillmentFragment on BuildingBlockFieldFulfillment {\n _id: prn\n prn\n createdAt\n updatedAt\n}"];
117
+ /**
118
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
119
+ */
120
+ export function graphql(source: "fragment buildingBlockFieldFragment on BuildingBlockField {\n _id: prn\n prn\n slug\n title\n createdAt\n updatedAt\n}"): (typeof documents)["fragment buildingBlockFieldFragment on BuildingBlockField {\n _id: prn\n prn\n slug\n title\n createdAt\n updatedAt\n}"];
121
+ /**
122
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
123
+ */
124
+ export function graphql(source: "fragment buildingBlockFragment on BuildingBlock {\n _id: prn\n prn\n slug\n title\n preview {\n ...assetFragment\n }\n createdAt\n updatedAt\n}"): (typeof documents)["fragment buildingBlockFragment on BuildingBlock {\n _id: prn\n prn\n slug\n title\n preview {\n ...assetFragment\n }\n createdAt\n updatedAt\n}"];
125
+ /**
126
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
127
+ */
128
+ export function graphql(source: "fragment channelFragment on Channel {\n _id: prn\n name\n domain\n slug\n prn\n updatedAt\n createdAt\n}"): (typeof documents)["fragment channelFragment on Channel {\n _id: prn\n name\n domain\n slug\n prn\n updatedAt\n createdAt\n}"];
129
+ /**
130
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
131
+ */
132
+ export function graphql(source: "query allContentExperiences($paginate: PaginationOptionsInput!, $where: [ContentExperiencesFilterInput!], $orderBy: OrderOptionsInput) {\n contentExperiences(paginate: $paginate, where: $where, orderBy: $orderBy) {\n pageInfo {\n ...pagination\n }\n totalCount\n edges {\n cursor\n node {\n ...contentExperienceFragment\n pathPart {\n ...pathPartFragment\n channel {\n ...channelFragment\n }\n }\n }\n }\n }\n}"): (typeof documents)["query allContentExperiences($paginate: PaginationOptionsInput!, $where: [ContentExperiencesFilterInput!], $orderBy: OrderOptionsInput) {\n contentExperiences(paginate: $paginate, where: $where, orderBy: $orderBy) {\n pageInfo {\n ...pagination\n }\n totalCount\n edges {\n cursor\n node {\n ...contentExperienceFragment\n pathPart {\n ...pathPartFragment\n channel {\n ...channelFragment\n }\n }\n }\n }\n }\n}"];
133
+ /**
134
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
135
+ */
136
+ export function graphql(source: "query contentExperience($prn: [PRN!]!) {\n contentExperience(prn: $prn) {\n ...contentExperienceFragment\n pathPart {\n ...pathPartFragment\n channel {\n ...channelFragment\n }\n }\n experienceComponent {\n ...experienceComponentFragment\n grid {\n ...gridFragment\n gridPlacements {\n ...gridPlacementFragment\n }\n }\n }\n }\n}"): (typeof documents)["query contentExperience($prn: [PRN!]!) {\n contentExperience(prn: $prn) {\n ...contentExperienceFragment\n pathPart {\n ...pathPartFragment\n channel {\n ...channelFragment\n }\n }\n experienceComponent {\n ...experienceComponentFragment\n grid {\n ...gridFragment\n gridPlacements {\n ...gridPlacementFragment\n }\n }\n }\n }\n}"];
137
+ /**
138
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
139
+ */
140
+ export function graphql(source: "fragment contentExperienceFragment on ContentExperience {\n _id: prn\n slug\n prn\n tags {\n ...tagFragment\n }\n title\n createdAt\n updatedAt\n preview {\n ...assetFragment\n }\n}"): (typeof documents)["fragment contentExperienceFragment on ContentExperience {\n _id: prn\n slug\n prn\n tags {\n ...tagFragment\n }\n title\n createdAt\n updatedAt\n preview {\n ...assetFragment\n }\n}"];
141
+ /**
142
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
143
+ */
144
+ export function graphql(source: "fragment contentFieldFragment on ContentField {\n _id: prn\n prn\n name\n createdAt\n updatedAt\n}"): (typeof documents)["fragment contentFieldFragment on ContentField {\n _id: prn\n prn\n name\n createdAt\n updatedAt\n}"];
145
+ /**
146
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
147
+ */
148
+ export function graphql(source: "query allContentItems($paginate: PaginationOptionsInput!, $where: [ContentItemsFilterInput!], $orderBy: OrderOptionsInput) {\n contentItems(paginate: $paginate, where: $where, orderBy: $orderBy) {\n pageInfo {\n ...pagination\n }\n totalCount\n edges {\n cursor\n node {\n ...contentItemFragment\n displayImage {\n ...assetFragment\n }\n contentValues {\n ...contentValueFragment\n contentField {\n ...contentFieldFragment\n contentValidationRules {\n ...contentValidationRuleFragment\n }\n }\n relatedAsset {\n ...assetFragment\n }\n relatedContentItem {\n ...contentItemFragment\n contentValues {\n ...contentValueFragment\n }\n }\n }\n contentType {\n ...contentTypeFragment\n contentFields {\n ...contentFieldFragment\n }\n }\n tags {\n ...tagFragment\n }\n }\n }\n }\n}"): (typeof documents)["query allContentItems($paginate: PaginationOptionsInput!, $where: [ContentItemsFilterInput!], $orderBy: OrderOptionsInput) {\n contentItems(paginate: $paginate, where: $where, orderBy: $orderBy) {\n pageInfo {\n ...pagination\n }\n totalCount\n edges {\n cursor\n node {\n ...contentItemFragment\n displayImage {\n ...assetFragment\n }\n contentValues {\n ...contentValueFragment\n contentField {\n ...contentFieldFragment\n contentValidationRules {\n ...contentValidationRuleFragment\n }\n }\n relatedAsset {\n ...assetFragment\n }\n relatedContentItem {\n ...contentItemFragment\n contentValues {\n ...contentValueFragment\n }\n }\n }\n contentType {\n ...contentTypeFragment\n contentFields {\n ...contentFieldFragment\n }\n }\n tags {\n ...tagFragment\n }\n }\n }\n }\n}"];
149
+ /**
150
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
151
+ */
152
+ export function graphql(source: "fragment contentItemFragment on ContentItem {\n _id: prn\n prn\n isDraft\n displayName\n displayImage {\n ...assetFragment\n }\n updatedAt\n createdAt\n}"): (typeof documents)["fragment contentItemFragment on ContentItem {\n _id: prn\n prn\n isDraft\n displayName\n displayImage {\n ...assetFragment\n }\n updatedAt\n createdAt\n}"];
153
+ /**
154
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
155
+ */
156
+ export function graphql(source: "query allContentTypes($paginate: PaginationOptionsInput!, $where: [ContentTypesFilterInput!], $orderBy: OrderOptionsInput!) {\n contentTypes(paginate: $paginate, where: $where, orderBy: $orderBy) {\n pageInfo {\n ...pagination\n }\n totalCount\n edges {\n cursor\n node {\n ...contentTypeFragment\n contentFields {\n ...contentFieldFragment\n contentValidationRules {\n ...contentValidationRuleFragment\n }\n }\n }\n }\n }\n}"): (typeof documents)["query allContentTypes($paginate: PaginationOptionsInput!, $where: [ContentTypesFilterInput!], $orderBy: OrderOptionsInput!) {\n contentTypes(paginate: $paginate, where: $where, orderBy: $orderBy) {\n pageInfo {\n ...pagination\n }\n totalCount\n edges {\n cursor\n node {\n ...contentTypeFragment\n contentFields {\n ...contentFieldFragment\n contentValidationRules {\n ...contentValidationRuleFragment\n }\n }\n }\n }\n }\n}"];
157
+ /**
158
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
159
+ */
160
+ export function graphql(source: "fragment contentTypeFragment on ContentType {\n _id: prn\n prn\n name\n displayNameTemplate\n displayImageField {\n ...contentFieldFragment\n }\n createdAt\n updatedAt\n}"): (typeof documents)["fragment contentTypeFragment on ContentType {\n _id: prn\n prn\n name\n displayNameTemplate\n displayImageField {\n ...contentFieldFragment\n }\n createdAt\n updatedAt\n}"];
161
+ /**
162
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
163
+ */
164
+ export function graphql(source: "fragment contentValidationRuleFragment on ContentValidationRule {\n _id: prn\n prn\n ruleType\n settings {\n ... on CountContentValidationRuleSettings {\n min\n max\n }\n ... on ValueTypeContentValidationRuleSettings {\n allowedTypes\n }\n ... on AllowedValuesContentValidationRuleSettings {\n allowedValues\n }\n ... on DateBetweenContentValidationRuleSettings {\n start\n end\n }\n ... on DecimalCountContentValidationRuleSettings {\n max\n }\n ... on NumberBetweenContentValidationRuleSettings {\n min\n max\n }\n ... on RelatableContentTypesContentValidationRuleSettings {\n allowedContentTypes\n }\n ... on StringFormatContentValidationRuleSettings {\n allowedFormat\n }\n }\n}"): (typeof documents)["fragment contentValidationRuleFragment on ContentValidationRule {\n _id: prn\n prn\n ruleType\n settings {\n ... on CountContentValidationRuleSettings {\n min\n max\n }\n ... on ValueTypeContentValidationRuleSettings {\n allowedTypes\n }\n ... on AllowedValuesContentValidationRuleSettings {\n allowedValues\n }\n ... on DateBetweenContentValidationRuleSettings {\n start\n end\n }\n ... on DecimalCountContentValidationRuleSettings {\n max\n }\n ... on NumberBetweenContentValidationRuleSettings {\n min\n max\n }\n ... on RelatableContentTypesContentValidationRuleSettings {\n allowedContentTypes\n }\n ... on StringFormatContentValidationRuleSettings {\n allowedFormat\n }\n }\n}"];
165
+ /**
166
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
167
+ */
168
+ export function graphql(source: "query allContentValues($paginate: PaginationOptionsInput!, $where: [ContentValuesFilterInput!], $orderBy: OrderOptionsInput) {\n contentValues(paginate: $paginate, where: $where, orderBy: $orderBy) {\n pageInfo {\n ...pagination\n }\n totalCount\n edges {\n cursor\n node {\n ...contentValueFragment\n contentField {\n ...contentFieldFragment\n }\n contentItem {\n ...contentItemFragment\n contentType {\n ...contentTypeFragment\n }\n }\n relatedAsset {\n ...assetFragment\n }\n linkedGridPlacement {\n ...gridPlacementFragment\n }\n linkedPathPart {\n ...pathPartFragment\n }\n relatedContentItem {\n ...contentItemFragment\n }\n }\n }\n }\n}"): (typeof documents)["query allContentValues($paginate: PaginationOptionsInput!, $where: [ContentValuesFilterInput!], $orderBy: OrderOptionsInput) {\n contentValues(paginate: $paginate, where: $where, orderBy: $orderBy) {\n pageInfo {\n ...pagination\n }\n totalCount\n edges {\n cursor\n node {\n ...contentValueFragment\n contentField {\n ...contentFieldFragment\n }\n contentItem {\n ...contentItemFragment\n contentType {\n ...contentTypeFragment\n }\n }\n relatedAsset {\n ...assetFragment\n }\n linkedGridPlacement {\n ...gridPlacementFragment\n }\n linkedPathPart {\n ...pathPartFragment\n }\n relatedContentItem {\n ...contentItemFragment\n }\n }\n }\n }\n}"];
169
+ /**
170
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
171
+ */
172
+ export function graphql(source: "fragment contentValueFragment on ContentValue {\n _id: prn\n prn\n primitiveValue\n interpolatedSmartText\n isReusable\n createdAt\n updatedAt\n}"): (typeof documents)["fragment contentValueFragment on ContentValue {\n _id: prn\n prn\n primitiveValue\n interpolatedSmartText\n isReusable\n createdAt\n updatedAt\n}"];
173
+ /**
174
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
175
+ */
176
+ export function graphql(source: "mutation createContentValue($createContentValueInput: [CreateContentValueInput!]!) {\n createContentValue(input: $createContentValueInput) {\n ...contentValueFragment\n relatedAsset {\n ...assetFragment\n }\n relatedContentItem {\n ...contentItemFragment\n }\n linkedGridPlacement {\n ...gridPlacementFragment\n }\n linkedPathPart {\n ...pathPartFragment\n }\n }\n}"): (typeof documents)["mutation createContentValue($createContentValueInput: [CreateContentValueInput!]!) {\n createContentValue(input: $createContentValueInput) {\n ...contentValueFragment\n relatedAsset {\n ...assetFragment\n }\n relatedContentItem {\n ...contentItemFragment\n }\n linkedGridPlacement {\n ...gridPlacementFragment\n }\n linkedPathPart {\n ...pathPartFragment\n }\n }\n}"];
177
+ /**
178
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
179
+ */
180
+ export function graphql(source: "fragment experienceComponentFragment on ExperienceComponent {\n _id: prn\n prn\n stage\n name\n isDraft\n preview {\n ...assetFragment\n }\n isGlobal\n createdAt\n updatedAt\n}"): (typeof documents)["fragment experienceComponentFragment on ExperienceComponent {\n _id: prn\n prn\n stage\n name\n isDraft\n preview {\n ...assetFragment\n }\n isGlobal\n createdAt\n updatedAt\n}"];
181
+ /**
182
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
183
+ */
184
+ export function graphql(source: "fragment pagination on PageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n}"): (typeof documents)["fragment pagination on PageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n}"];
185
+ /**
186
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
187
+ */
188
+ export function graphql(source: "fragment gridDefinitionFragment on GridDefinition {\n _id: prn\n prn\n maxRows\n}"): (typeof documents)["fragment gridDefinitionFragment on GridDefinition {\n _id: prn\n prn\n maxRows\n}"];
189
+ /**
190
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
191
+ */
192
+ export function graphql(source: "fragment gridPlacementFragment on GridPlacement {\n _id: prn\n prn\n row\n updatedAt\n createdAt\n}"): (typeof documents)["fragment gridPlacementFragment on GridPlacement {\n _id: prn\n prn\n row\n updatedAt\n createdAt\n}"];
193
+ /**
194
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
195
+ */
196
+ export function graphql(source: "fragment gridFragment on Grid {\n _id: prn\n prn\n rows\n updatedAt\n createdAt\n}"): (typeof documents)["fragment gridFragment on Grid {\n _id: prn\n prn\n rows\n updatedAt\n createdAt\n}"];
197
+ /**
198
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
199
+ */
200
+ export function graphql(source: "fragment invitationFragment on Invitation {\n _id: prn\n prn\n userEmail\n createdAt\n updatedAt\n}"): (typeof documents)["fragment invitationFragment on Invitation {\n _id: prn\n prn\n userEmail\n createdAt\n updatedAt\n}"];
201
+ /**
202
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
203
+ */
204
+ export function graphql(source: "fragment organizationFragment on Organization {\n _id: prn\n prn\n name\n slug\n logo {\n ...assetFragment\n }\n logoUrl\n seedStatus\n createdAt\n updatedAt\n}"): (typeof documents)["fragment organizationFragment on Organization {\n _id: prn\n prn\n name\n slug\n logo {\n ...assetFragment\n }\n logoUrl\n seedStatus\n createdAt\n updatedAt\n}"];
205
+ /**
206
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
207
+ */
208
+ export function graphql(source: "fragment pathPartFragment on PathPart {\n _id: prn\n prn\n slug\n path\n createdAt\n updatedAt\n channel {\n prn\n }\n hasContentExperience\n amountOfChildren\n amountOfChildrenWithContentExperiences\n amountOfDescendants\n amountOfDescendantsWithContentExperiences\n contentExperience {\n prn\n }\n}"): (typeof documents)["fragment pathPartFragment on PathPart {\n _id: prn\n prn\n slug\n path\n createdAt\n updatedAt\n channel {\n prn\n }\n hasContentExperience\n amountOfChildren\n amountOfChildrenWithContentExperiences\n amountOfDescendants\n amountOfDescendantsWithContentExperiences\n contentExperience {\n prn\n }\n}"];
209
+ /**
210
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
211
+ */
212
+ export function graphql(source: "fragment plateMaintainerFragment on Subject {\n _id: id\n id\n name {\n first\n last\n }\n language\n email\n}"): (typeof documents)["fragment plateMaintainerFragment on Subject {\n _id: id\n id\n name {\n first\n last\n }\n language\n email\n}"];
213
+ /**
214
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
215
+ */
216
+ export function graphql(source: "fragment roleAssignmentFragment on RoleAssignment {\n _id: prn\n prn\n subject {\n id\n }\n createdAt\n updatedAt\n}"): (typeof documents)["fragment roleAssignmentFragment on RoleAssignment {\n _id: prn\n prn\n subject {\n id\n }\n createdAt\n updatedAt\n}"];
217
+ /**
218
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
219
+ */
220
+ export function graphql(source: "fragment roleFragment on Role {\n _id: prn\n prn\n name\n createdAt\n updatedAt\n}"): (typeof documents)["fragment roleFragment on Role {\n _id: prn\n prn\n name\n createdAt\n updatedAt\n}"];
221
+ /**
222
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
223
+ */
224
+ export function graphql(source: "fragment subjectFields on Subject {\n _id: id\n email\n name {\n first\n last\n }\n}"): (typeof documents)["fragment subjectFields on Subject {\n _id: id\n email\n name {\n first\n last\n }\n}"];
225
+ /**
226
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
227
+ */
228
+ export function graphql(source: "fragment tagFragment on Tag {\n _id: prn\n prn\n name\n path\n color\n visibility\n forceVisibilityOnDescendants\n stage\n amountOfChildren\n amountOfContentExperiences\n amountOfContentItems\n hasForcedVisibility\n nestingLevel\n createdAt\n updatedAt\n}"): (typeof documents)["fragment tagFragment on Tag {\n _id: prn\n prn\n name\n path\n color\n visibility\n forceVisibilityOnDescendants\n stage\n amountOfChildren\n amountOfContentExperiences\n amountOfContentItems\n hasForcedVisibility\n nestingLevel\n createdAt\n updatedAt\n}"];
229
+ /**
230
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
231
+ */
232
+ export function graphql(source: "fragment themeFragment on Theme {\n _id: prn\n prn\n name\n repositoryUrl\n createdAt\n updatedAt\n}"): (typeof documents)["fragment themeFragment on Theme {\n _id: prn\n prn\n name\n repositoryUrl\n createdAt\n updatedAt\n}"];
233
+
234
+ export function graphql(source: string) {
235
+ return (documents as any)[source] ?? {};
236
+ }
237
+
238
+ export type DocumentType<TDocumentNode extends DocumentNode<any, any>> = TDocumentNode extends DocumentNode< infer TType, any> ? TType : never;