@platecms/delta-client 1.0.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -2
- package/package.json +17 -7
- package/src/__generated__/fragment-masking.ts +87 -0
- package/src/__generated__/gql.ts +142 -0
- package/src/__generated__/graphql.ts +3745 -0
- package/src/__generated__/{index.d.ts → index.ts} +1 -1
- package/src/api/fetchContentExperiences.spec.ts +82 -0
- package/src/api/fetchContentExperiences.ts +42 -0
- package/src/api/fetchContentItems.spec.ts +62 -0
- package/src/api/fetchContentItems.ts +42 -0
- package/src/api/fetchPathParts.spec.ts +62 -0
- package/src/api/fetchPathParts.ts +42 -0
- package/src/api/fetchTags.spec.ts +61 -0
- package/src/api/fetchTags.ts +38 -0
- package/src/api/index.ts +4 -0
- package/src/api/types.ts +35 -0
- package/src/apollo/index.ts +69 -0
- package/src/app/utils/paginated-response.type.ts +19 -0
- package/src/factories/BaseFactory.ts +19 -0
- package/src/factories/ChannelFactory.ts +19 -0
- package/src/factories/ContentExperienceFactory.ts +54 -0
- package/src/factories/PathPartFactory.ts +26 -0
- package/src/factories/TagFactory.ts +30 -0
- package/src/graphql/content-experiences/content-experiences.query.gql +82 -0
- package/src/graphql/content-items/content-items.query.gql +47 -0
- package/src/graphql/fragments/asset.fragment.gql +10 -0
- package/src/graphql/fragments/asset.fragments.gql +10 -0
- package/src/graphql/fragments/building-block-field-fullfillment.fragments.gql +45 -0
- package/src/graphql/fragments/building-block-field.fragments.gql +8 -0
- package/src/graphql/fragments/building-block.fragments.gql +11 -0
- package/src/graphql/fragments/content-experience.fragments.gql +8 -0
- package/src/graphql/fragments/content-field.fragments.gql +7 -0
- package/src/graphql/fragments/content-item.fragments.gql +11 -0
- package/src/graphql/fragments/content-type.fragments.gql +11 -0
- package/src/graphql/fragments/content-values.fragments.gql +33 -0
- package/src/graphql/fragments/experience-component.fragments.gql +13 -0
- package/src/graphql/fragments/grid-placement.fragments.gql +7 -0
- package/src/graphql/fragments/path-part.fragments.gql +8 -0
- package/src/graphql/fragments/tag.fragment.gql +17 -0
- package/src/graphql/path-parts/path-parts.query.gql +52 -0
- package/src/graphql/tags/tag.query.gql +17 -0
- package/src/graphql/tags/tags.fragments.gql +17 -0
- package/src/index.ts +1 -0
- package/src/schema/index.spec.ts +211 -0
- package/src/schema/{index.d.ts → index.ts} +4 -0
- package/src/schema/lib/schemas/array.spec.ts +126 -0
- package/src/schema/lib/schemas/array.ts +46 -0
- package/src/schema/lib/schemas/asset.spec.ts +101 -0
- package/src/schema/lib/schemas/asset.ts +13 -0
- package/src/schema/lib/schemas/baseSchema.ts +42 -0
- package/src/schema/lib/schemas/boolean.spec.ts +65 -0
- package/src/schema/lib/schemas/boolean.ts +12 -0
- package/src/schema/lib/schemas/buildingBlock.spec.ts +56 -0
- package/src/schema/lib/schemas/buildingBlock.ts +39 -0
- package/src/schema/lib/schemas/contentItem.spec.ts +61 -0
- package/src/schema/lib/schemas/contentItem.ts +39 -0
- package/src/schema/lib/schemas/contentType.spec.ts +113 -0
- package/src/schema/lib/schemas/contentType.ts +13 -0
- package/src/schema/lib/schemas/date.spec.ts +82 -0
- package/src/schema/lib/schemas/date.ts +17 -0
- package/src/schema/lib/schemas/gridPlacement.spec.ts +77 -0
- package/src/schema/lib/schemas/gridPlacement.ts +13 -0
- package/src/schema/lib/schemas/index.ts +66 -0
- package/src/schema/lib/schemas/number.spec.ts +65 -0
- package/src/schema/lib/schemas/number.ts +12 -0
- package/src/schema/lib/schemas/pathPart.spec.ts +120 -0
- package/src/schema/lib/schemas/pathPart.ts +13 -0
- package/src/schema/lib/schemas/smartText.spec.ts +105 -0
- package/src/schema/lib/schemas/smartText.ts +13 -0
- package/src/schema/lib/schemas/string.spec.ts +65 -0
- package/src/schema/lib/schemas/string.ts +12 -0
- package/src/schema/lib/schemas/tag.spec.ts +89 -0
- package/src/schema/lib/schemas/tag.ts +13 -0
- package/src/schema/lib/utils/index.spec.ts +160 -0
- package/src/schema/lib/utils/index.ts +11 -0
- package/src/schema/lib/utils/isContentValue.spec.ts +111 -0
- package/src/schema/lib/utils/isContentValue.ts +17 -0
- package/src/schema/lib/utils/isPrimitiveValue.spec.ts +38 -0
- package/src/schema/lib/utils/isPrimitiveValue.ts +7 -0
- package/src/slate/index.ts +102 -0
- package/src/utils/index.ts +15 -0
- package/src/utils/lib/connectors/BaseConnector.ts +26 -0
- package/src/utils/lib/connectors/WindowConnector.ts +70 -0
- package/src/utils/lib/events/ConnectorEvents.ts +89 -0
- package/src/utils/lib/events/EventEmitter.ts +19 -0
- package/src/__generated__/fragment-masking.d.ts +0 -19
- package/src/__generated__/fragment-masking.js +0 -22
- package/src/__generated__/fragment-masking.js.map +0 -1
- package/src/__generated__/gql.d.ts +0 -12
- package/src/__generated__/gql.js +0 -13
- package/src/__generated__/gql.js.map +0 -1
- package/src/__generated__/graphql.d.ts +0 -2157
- package/src/__generated__/graphql.js +0 -70
- package/src/__generated__/graphql.js.map +0 -1
- package/src/__generated__/index.js +0 -6
- package/src/__generated__/index.js.map +0 -1
- package/src/api/index.d.ts +0 -2
- package/src/api/index.js +0 -4
- package/src/api/index.js.map +0 -1
- package/src/apollo/index.d.ts +0 -7
- package/src/apollo/index.js +0 -40
- package/src/apollo/index.js.map +0 -1
- package/src/index.d.ts +0 -1
- package/src/index.js +0 -3
- package/src/index.js.map +0 -1
- package/src/schema/index.js +0 -18
- package/src/schema/index.js.map +0 -1
- package/src/schema/lib/schemas/array.d.ts +0 -6
- package/src/schema/lib/schemas/array.js +0 -20
- package/src/schema/lib/schemas/array.js.map +0 -1
- package/src/schema/lib/schemas/asset.d.ts +0 -5
- package/src/schema/lib/schemas/asset.js +0 -14
- package/src/schema/lib/schemas/asset.js.map +0 -1
- package/src/schema/lib/schemas/baseSchema.d.ts +0 -10
- package/src/schema/lib/schemas/baseSchema.js +0 -36
- package/src/schema/lib/schemas/baseSchema.js.map +0 -1
- package/src/schema/lib/schemas/boolean.d.ts +0 -4
- package/src/schema/lib/schemas/boolean.js +0 -15
- package/src/schema/lib/schemas/boolean.js.map +0 -1
- package/src/schema/lib/schemas/buildingBlock.d.ts +0 -7
- package/src/schema/lib/schemas/buildingBlock.js +0 -26
- package/src/schema/lib/schemas/buildingBlock.js.map +0 -1
- package/src/schema/lib/schemas/contentItem.d.ts +0 -6
- package/src/schema/lib/schemas/contentItem.js +0 -26
- package/src/schema/lib/schemas/contentItem.js.map +0 -1
- package/src/schema/lib/schemas/contentType.d.ts +0 -5
- package/src/schema/lib/schemas/contentType.js +0 -14
- package/src/schema/lib/schemas/contentType.js.map +0 -1
- package/src/schema/lib/schemas/date.d.ts +0 -5
- package/src/schema/lib/schemas/date.js +0 -19
- package/src/schema/lib/schemas/date.js.map +0 -1
- package/src/schema/lib/schemas/gridPlacement.d.ts +0 -5
- package/src/schema/lib/schemas/gridPlacement.js +0 -14
- package/src/schema/lib/schemas/gridPlacement.js.map +0 -1
- package/src/schema/lib/schemas/index.d.ts +0 -55
- package/src/schema/lib/schemas/index.js +0 -33
- package/src/schema/lib/schemas/index.js.map +0 -1
- package/src/schema/lib/schemas/number.d.ts +0 -4
- package/src/schema/lib/schemas/number.js +0 -15
- package/src/schema/lib/schemas/number.js.map +0 -1
- package/src/schema/lib/schemas/pathPart.d.ts +0 -5
- package/src/schema/lib/schemas/pathPart.js +0 -14
- package/src/schema/lib/schemas/pathPart.js.map +0 -1
- package/src/schema/lib/schemas/smartText.d.ts +0 -5
- package/src/schema/lib/schemas/smartText.js +0 -14
- package/src/schema/lib/schemas/smartText.js.map +0 -1
- package/src/schema/lib/schemas/string.d.ts +0 -4
- package/src/schema/lib/schemas/string.js +0 -15
- package/src/schema/lib/schemas/string.js.map +0 -1
- package/src/schema/lib/schemas/tag.d.ts +0 -5
- package/src/schema/lib/schemas/tag.js +0 -14
- package/src/schema/lib/schemas/tag.js.map +0 -1
- package/src/schema/lib/utils/isContentValue.d.ts +0 -2
- package/src/schema/lib/utils/isContentValue.js +0 -17
- package/src/schema/lib/utils/isContentValue.js.map +0 -1
- package/src/schema/lib/utils/isPrimitiveValue.d.ts +0 -5
- package/src/schema/lib/utils/isPrimitiveValue.js +0 -8
- package/src/schema/lib/utils/isPrimitiveValue.js.map +0 -1
- package/src/slate/index.d.ts +0 -65
- package/src/slate/index.js +0 -3
- package/src/slate/index.js.map +0 -1
- package/src/utils/index.d.ts +0 -6
- package/src/utils/index.js +0 -6
- package/src/utils/index.js.map +0 -1
- package/src/utils/lib/connectors/BaseConnector.d.ts +0 -16
- package/src/utils/lib/connectors/BaseConnector.js +0 -17
- package/src/utils/lib/connectors/BaseConnector.js.map +0 -1
- package/src/utils/lib/connectors/WindowConnector.d.ts +0 -10
- package/src/utils/lib/connectors/WindowConnector.js +0 -53
- package/src/utils/lib/connectors/WindowConnector.js.map +0 -1
- package/src/utils/lib/events/ConnectorEvents.d.ts +0 -63
- package/src/utils/lib/events/ConnectorEvents.js +0 -24
- package/src/utils/lib/events/ConnectorEvents.js.map +0 -1
- package/src/utils/lib/events/EventEmitter.d.ts +0 -7
- package/src/utils/lib/events/EventEmitter.js +0 -21
- package/src/utils/lib/events/EventEmitter.js.map +0 -1
package/README.md
CHANGED
|
@@ -111,6 +111,11 @@ const schema = schema.contentItem({
|
|
|
111
111
|
// Array handling
|
|
112
112
|
const tagsSchema = schema.array(schema.tag());
|
|
113
113
|
|
|
114
|
+
// Array handling with placeholders
|
|
115
|
+
const tagsSchema = schema.array(
|
|
116
|
+
schema.string().placeholder('placeholder')
|
|
117
|
+
).placeholder({ minLength: 1 });
|
|
118
|
+
|
|
114
119
|
// Nested structures
|
|
115
120
|
const pageSchema = schema.buildingBlock({
|
|
116
121
|
hero: schema.contentItem({
|
|
@@ -277,7 +282,9 @@ const blogPostSchema = schema.contentItem({
|
|
|
277
282
|
name: schema.string(),
|
|
278
283
|
avatar: schema.asset(),
|
|
279
284
|
}),
|
|
280
|
-
tags: schema.array(schema.tag())
|
|
285
|
+
tags: schema.array(schema.tag()).placeholder({
|
|
286
|
+
minLength: 1
|
|
287
|
+
}),
|
|
281
288
|
publishedAt: schema.date(),
|
|
282
289
|
featured: schema.boolean().placeholder(false),
|
|
283
290
|
});
|
|
@@ -319,7 +326,6 @@ const MyEditor = () => {
|
|
|
319
326
|
- `@platecms/delta-cast` - Core casting utilities
|
|
320
327
|
- `@graphql-typed-document-node/core` - GraphQL type safety
|
|
321
328
|
- `graphql` - GraphQL implementation
|
|
322
|
-
- `lodash` - Utility functions
|
|
323
329
|
- `slate` - Rich text editor framework
|
|
324
330
|
- `slate-react` - React integration for Slate
|
|
325
331
|
- `tslib` - TypeScript runtime library
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platecms/delta-client",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Utilities and functions to interact with the Delta CMS.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"publishConfig": {
|
|
@@ -18,24 +18,25 @@
|
|
|
18
18
|
"src/**/*"
|
|
19
19
|
],
|
|
20
20
|
"peerDependencies": {
|
|
21
|
-
"@platecms/delta-cast": "1.
|
|
21
|
+
"@platecms/delta-cast": "1.2.0",
|
|
22
22
|
"@graphql-typed-document-node/core": "3.2.0",
|
|
23
23
|
"graphql": "16.11.0",
|
|
24
|
-
"lodash": "4.17.21",
|
|
25
24
|
"slate": "0.118.0",
|
|
26
25
|
"slate-react": "0.117.4",
|
|
27
26
|
"tslib": "2.8.1",
|
|
28
27
|
"class-transformer": "0.5.1",
|
|
29
28
|
"reflect-metadata": "0.2.2",
|
|
30
29
|
"@apollo/client": "3.13.9",
|
|
31
|
-
"defu": "6.1.4"
|
|
30
|
+
"defu": "6.1.4",
|
|
31
|
+
"axios": "1.11.0",
|
|
32
|
+
"uuid": "11.1.0",
|
|
33
|
+
"@faker-js/faker": "9.9.0"
|
|
32
34
|
},
|
|
33
35
|
"exports": {
|
|
34
36
|
"./package.json": "./package.json",
|
|
35
37
|
".": {
|
|
36
38
|
"import": "./index.esm.js",
|
|
37
|
-
"default": "./index.cjs.js"
|
|
38
|
-
"types": "./src/index.d.ts"
|
|
39
|
+
"default": "./index.cjs.js"
|
|
39
40
|
},
|
|
40
41
|
"./slate": {
|
|
41
42
|
"types": "./src/slate/index.d.ts",
|
|
@@ -52,7 +53,16 @@
|
|
|
52
53
|
"import": "./src/apollo/index.js",
|
|
53
54
|
"default": "./src/apollo/index.cjs.js"
|
|
54
55
|
},
|
|
55
|
-
"./
|
|
56
|
+
"./utils": {
|
|
57
|
+
"types": "./src/utils/index.d.ts",
|
|
58
|
+
"import": "./src/utils/index.js",
|
|
59
|
+
"default": "./src/utils/index.cjs.js"
|
|
60
|
+
},
|
|
61
|
+
"./api": {
|
|
62
|
+
"types": "./src/api/index.d.ts",
|
|
63
|
+
"import": "./src/api/index.js",
|
|
64
|
+
"default": "./src/api/index.cjs.js"
|
|
65
|
+
}
|
|
56
66
|
},
|
|
57
67
|
"module": "./index.esm.js"
|
|
58
68
|
}
|
|
@@ -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,142 @@
|
|
|
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
|
+
"query contentExperiences($paginate: PaginationOptionsInput!, $where: [ContentExperiencesFilterInput!], $orderBy: OrderOptionsInput, $optionsList: [ProcessedAssetOptionsInput!]!) {\n contentExperiences(paginate: $paginate, where: $where, orderBy: $orderBy) {\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n totalCount\n edges {\n cursor\n node {\n ...contentExperienceFragment\n preview {\n ...assetFragment\n processedUrls(optionsList: $optionsList)\n }\n pathPart {\n ...pathPartFragment\n }\n experienceComponent {\n ...experienceComponentFragment\n buildingBlock {\n ...buildingBlockFragment\n }\n buildingBlockFieldFulfillments {\n ...buildingBlockFieldFulfillmentFragment\n buildingBlockField {\n ...buildingBlockFieldFragment\n }\n contentValue {\n ...comprehensiveContentValueFragment\n contentItem {\n prn\n }\n relatedAsset {\n ...assetFragment\n processedUrls(optionsList: $optionsList)\n }\n linkedGridPlacement {\n ...gridPlacementFragment\n experienceComponent {\n ...experienceComponentFragment\n buildingBlock {\n ...buildingBlockFragment\n }\n }\n }\n relatedContentItem {\n ...contentItemFragment\n contentType {\n ...contentTypeFragment\n contentFields {\n ...contentFieldFragment\n }\n }\n contentValues {\n ...comprehensiveContentValueFragment\n contentField {\n ...contentFieldFragment\n }\n relatedAsset {\n ...assetFragment\n processedUrls(optionsList: $optionsList)\n }\n }\n }\n }\n }\n }\n tags {\n ...tagFragment\n }\n }\n }\n }\n}": typeof types.ContentExperiencesDocument,
|
|
18
|
+
"query contentItems($paginate: PaginationOptionsInput!, $where: [ContentItemsFilterInput!], $orderBy: OrderOptionsInput, $optionsList: [ProcessedAssetOptionsInput!]!) {\n contentItems(paginate: $paginate, where: $where, orderBy: $orderBy) {\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n totalCount\n edges {\n cursor\n node {\n ...contentItemFragment\n contentValues {\n ...contentValueFragment\n contentField {\n ...contentFieldFragment\n }\n relatedAsset {\n ...assetFragment\n processedUrls(optionsList: $optionsList)\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.ContentItemsDocument,
|
|
19
|
+
"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,
|
|
20
|
+
"fragment buildingBlockFieldFulfillmentFragment on BuildingBlockFieldFulfillment {\n _id: prn\n prn\n contentValue {\n ...contentValueFragment\n contentItem {\n prn\n }\n relatedAsset {\n ...assetFragment\n }\n linkedPathPart {\n ...pathPartFragment\n }\n linkedGridPlacement {\n ...gridPlacementFragment\n experienceComponent {\n ...experienceComponentFragment\n buildingBlock {\n ...buildingBlockFragment\n }\n }\n }\n relatedContentItem {\n ...contentItemFragment\n contentType {\n ...contentTypeFragment\n contentFields {\n ...contentFieldFragment\n }\n }\n contentValues {\n ...contentValueFragment\n contentField {\n ...contentFieldFragment\n }\n relatedAsset {\n ...assetFragment\n }\n }\n }\n }\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 contentExperienceFragment on ContentExperience {\n _id: prn\n slug\n prn\n title\n createdAt\n updatedAt\n}": typeof types.ContentExperienceFragmentFragmentDoc,
|
|
24
|
+
"fragment contentFieldFragment on ContentField {\n _id: prn\n prn\n name\n createdAt\n updatedAt\n}": typeof types.ContentFieldFragmentFragmentDoc,
|
|
25
|
+
"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,
|
|
26
|
+
"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,
|
|
27
|
+
"fragment contentValueFragment on ContentValue {\n _id: prn\n prn\n primitiveValue\n interpolatedSmartText\n createdAt\n updatedAt\n}\n\nfragment comprehensiveContentValueFragment on ContentValue {\n ...contentValueFragment\n contentField {\n ...contentFieldFragment\n }\n relatedAsset {\n ...assetFragment\n }\n linkedPathPart {\n ...pathPartFragment\n }\n linkedGridPlacement {\n ...gridPlacementFragment\n }\n linkedContentType {\n ...contentTypeFragment\n }\n linkedTag {\n ...tagFragment\n }\n relatedContentItem {\n ...contentItemFragment\n }\n}": typeof types.ContentValueFragmentFragmentDoc,
|
|
28
|
+
"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,
|
|
29
|
+
"fragment gridPlacementFragment on GridPlacement {\n _id: prn\n prn\n row\n updatedAt\n createdAt\n}": typeof types.GridPlacementFragmentFragmentDoc,
|
|
30
|
+
"fragment pathPartFragment on PathPart {\n _id: prn\n prn\n slug\n path\n createdAt\n updatedAt\n}": typeof types.PathPartFragmentFragmentDoc,
|
|
31
|
+
"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,
|
|
32
|
+
"query pathParts($paginate: PaginationOptionsInput!, $where: [PathPartsFilterInput!], $orderBy: OrderOptionsInput, $optionsList: [ProcessedAssetOptionsInput!]!) {\n pathParts(paginate: $paginate, where: $where, orderBy: $orderBy) {\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n totalCount\n edges {\n cursor\n node {\n ...pathPartFragment\n contentExperience {\n ...contentExperienceFragment\n preview {\n ...assetFragment\n processedUrls(optionsList: $optionsList)\n }\n experienceComponent {\n ...experienceComponentFragment\n buildingBlock {\n ...buildingBlockFragment\n }\n buildingBlockFieldFulfillments {\n buildingBlockField {\n ...buildingBlockFieldFragment\n }\n contentValue {\n ...contentValueFragment\n contentItem {\n prn\n }\n relatedAsset {\n ...assetFragment\n }\n }\n }\n }\n }\n children {\n ...pathPartFragment\n }\n }\n }\n }\n}": typeof types.PathPartsDocument,
|
|
33
|
+
"query tags($paginate: PaginationOptionsInput!, $where: [TagsFilterInput!], $orderBy: OrderOptionsInput) {\n tags(paginate: $paginate, where: $where, orderBy: $orderBy) {\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n totalCount\n edges {\n cursor\n node {\n ...tagFragment\n }\n }\n }\n}": typeof types.TagsDocument,
|
|
34
|
+
};
|
|
35
|
+
const documents: Documents = {
|
|
36
|
+
"query contentExperiences($paginate: PaginationOptionsInput!, $where: [ContentExperiencesFilterInput!], $orderBy: OrderOptionsInput, $optionsList: [ProcessedAssetOptionsInput!]!) {\n contentExperiences(paginate: $paginate, where: $where, orderBy: $orderBy) {\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n totalCount\n edges {\n cursor\n node {\n ...contentExperienceFragment\n preview {\n ...assetFragment\n processedUrls(optionsList: $optionsList)\n }\n pathPart {\n ...pathPartFragment\n }\n experienceComponent {\n ...experienceComponentFragment\n buildingBlock {\n ...buildingBlockFragment\n }\n buildingBlockFieldFulfillments {\n ...buildingBlockFieldFulfillmentFragment\n buildingBlockField {\n ...buildingBlockFieldFragment\n }\n contentValue {\n ...comprehensiveContentValueFragment\n contentItem {\n prn\n }\n relatedAsset {\n ...assetFragment\n processedUrls(optionsList: $optionsList)\n }\n linkedGridPlacement {\n ...gridPlacementFragment\n experienceComponent {\n ...experienceComponentFragment\n buildingBlock {\n ...buildingBlockFragment\n }\n }\n }\n relatedContentItem {\n ...contentItemFragment\n contentType {\n ...contentTypeFragment\n contentFields {\n ...contentFieldFragment\n }\n }\n contentValues {\n ...comprehensiveContentValueFragment\n contentField {\n ...contentFieldFragment\n }\n relatedAsset {\n ...assetFragment\n processedUrls(optionsList: $optionsList)\n }\n }\n }\n }\n }\n }\n tags {\n ...tagFragment\n }\n }\n }\n }\n}": types.ContentExperiencesDocument,
|
|
37
|
+
"query contentItems($paginate: PaginationOptionsInput!, $where: [ContentItemsFilterInput!], $orderBy: OrderOptionsInput, $optionsList: [ProcessedAssetOptionsInput!]!) {\n contentItems(paginate: $paginate, where: $where, orderBy: $orderBy) {\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n totalCount\n edges {\n cursor\n node {\n ...contentItemFragment\n contentValues {\n ...contentValueFragment\n contentField {\n ...contentFieldFragment\n }\n relatedAsset {\n ...assetFragment\n processedUrls(optionsList: $optionsList)\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.ContentItemsDocument,
|
|
38
|
+
"fragment assetFragment on Asset {\n _id: prn\n prn\n fileName\n fileSize\n mimeType\n url\n createdAt\n updatedAt\n}": types.AssetFragmentFragmentDoc,
|
|
39
|
+
"fragment buildingBlockFieldFulfillmentFragment on BuildingBlockFieldFulfillment {\n _id: prn\n prn\n contentValue {\n ...contentValueFragment\n contentItem {\n prn\n }\n relatedAsset {\n ...assetFragment\n }\n linkedPathPart {\n ...pathPartFragment\n }\n linkedGridPlacement {\n ...gridPlacementFragment\n experienceComponent {\n ...experienceComponentFragment\n buildingBlock {\n ...buildingBlockFragment\n }\n }\n }\n relatedContentItem {\n ...contentItemFragment\n contentType {\n ...contentTypeFragment\n contentFields {\n ...contentFieldFragment\n }\n }\n contentValues {\n ...contentValueFragment\n contentField {\n ...contentFieldFragment\n }\n relatedAsset {\n ...assetFragment\n }\n }\n }\n }\n createdAt\n updatedAt\n}": types.BuildingBlockFieldFulfillmentFragmentFragmentDoc,
|
|
40
|
+
"fragment buildingBlockFieldFragment on BuildingBlockField {\n _id: prn\n prn\n slug\n title\n createdAt\n updatedAt\n}": types.BuildingBlockFieldFragmentFragmentDoc,
|
|
41
|
+
"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,
|
|
42
|
+
"fragment contentExperienceFragment on ContentExperience {\n _id: prn\n slug\n prn\n title\n createdAt\n updatedAt\n}": types.ContentExperienceFragmentFragmentDoc,
|
|
43
|
+
"fragment contentFieldFragment on ContentField {\n _id: prn\n prn\n name\n createdAt\n updatedAt\n}": types.ContentFieldFragmentFragmentDoc,
|
|
44
|
+
"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,
|
|
45
|
+
"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,
|
|
46
|
+
"fragment contentValueFragment on ContentValue {\n _id: prn\n prn\n primitiveValue\n interpolatedSmartText\n createdAt\n updatedAt\n}\n\nfragment comprehensiveContentValueFragment on ContentValue {\n ...contentValueFragment\n contentField {\n ...contentFieldFragment\n }\n relatedAsset {\n ...assetFragment\n }\n linkedPathPart {\n ...pathPartFragment\n }\n linkedGridPlacement {\n ...gridPlacementFragment\n }\n linkedContentType {\n ...contentTypeFragment\n }\n linkedTag {\n ...tagFragment\n }\n relatedContentItem {\n ...contentItemFragment\n }\n}": types.ContentValueFragmentFragmentDoc,
|
|
47
|
+
"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,
|
|
48
|
+
"fragment gridPlacementFragment on GridPlacement {\n _id: prn\n prn\n row\n updatedAt\n createdAt\n}": types.GridPlacementFragmentFragmentDoc,
|
|
49
|
+
"fragment pathPartFragment on PathPart {\n _id: prn\n prn\n slug\n path\n createdAt\n updatedAt\n}": types.PathPartFragmentFragmentDoc,
|
|
50
|
+
"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,
|
|
51
|
+
"query pathParts($paginate: PaginationOptionsInput!, $where: [PathPartsFilterInput!], $orderBy: OrderOptionsInput, $optionsList: [ProcessedAssetOptionsInput!]!) {\n pathParts(paginate: $paginate, where: $where, orderBy: $orderBy) {\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n totalCount\n edges {\n cursor\n node {\n ...pathPartFragment\n contentExperience {\n ...contentExperienceFragment\n preview {\n ...assetFragment\n processedUrls(optionsList: $optionsList)\n }\n experienceComponent {\n ...experienceComponentFragment\n buildingBlock {\n ...buildingBlockFragment\n }\n buildingBlockFieldFulfillments {\n buildingBlockField {\n ...buildingBlockFieldFragment\n }\n contentValue {\n ...contentValueFragment\n contentItem {\n prn\n }\n relatedAsset {\n ...assetFragment\n }\n }\n }\n }\n }\n children {\n ...pathPartFragment\n }\n }\n }\n }\n}": types.PathPartsDocument,
|
|
52
|
+
"query tags($paginate: PaginationOptionsInput!, $where: [TagsFilterInput!], $orderBy: OrderOptionsInput) {\n tags(paginate: $paginate, where: $where, orderBy: $orderBy) {\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n totalCount\n edges {\n cursor\n node {\n ...tagFragment\n }\n }\n }\n}": types.TagsDocument,
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
57
|
+
*
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* ```ts
|
|
61
|
+
* const query = graphql(`query GetUser($id: ID!) { user(id: $id) { name } }`);
|
|
62
|
+
* ```
|
|
63
|
+
*
|
|
64
|
+
* The query argument is unknown!
|
|
65
|
+
* Please regenerate the types.
|
|
66
|
+
*/
|
|
67
|
+
export function graphql(source: string): unknown;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
71
|
+
*/
|
|
72
|
+
export function graphql(source: "query contentExperiences($paginate: PaginationOptionsInput!, $where: [ContentExperiencesFilterInput!], $orderBy: OrderOptionsInput, $optionsList: [ProcessedAssetOptionsInput!]!) {\n contentExperiences(paginate: $paginate, where: $where, orderBy: $orderBy) {\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n totalCount\n edges {\n cursor\n node {\n ...contentExperienceFragment\n preview {\n ...assetFragment\n processedUrls(optionsList: $optionsList)\n }\n pathPart {\n ...pathPartFragment\n }\n experienceComponent {\n ...experienceComponentFragment\n buildingBlock {\n ...buildingBlockFragment\n }\n buildingBlockFieldFulfillments {\n ...buildingBlockFieldFulfillmentFragment\n buildingBlockField {\n ...buildingBlockFieldFragment\n }\n contentValue {\n ...comprehensiveContentValueFragment\n contentItem {\n prn\n }\n relatedAsset {\n ...assetFragment\n processedUrls(optionsList: $optionsList)\n }\n linkedGridPlacement {\n ...gridPlacementFragment\n experienceComponent {\n ...experienceComponentFragment\n buildingBlock {\n ...buildingBlockFragment\n }\n }\n }\n relatedContentItem {\n ...contentItemFragment\n contentType {\n ...contentTypeFragment\n contentFields {\n ...contentFieldFragment\n }\n }\n contentValues {\n ...comprehensiveContentValueFragment\n contentField {\n ...contentFieldFragment\n }\n relatedAsset {\n ...assetFragment\n processedUrls(optionsList: $optionsList)\n }\n }\n }\n }\n }\n }\n tags {\n ...tagFragment\n }\n }\n }\n }\n}"): (typeof documents)["query contentExperiences($paginate: PaginationOptionsInput!, $where: [ContentExperiencesFilterInput!], $orderBy: OrderOptionsInput, $optionsList: [ProcessedAssetOptionsInput!]!) {\n contentExperiences(paginate: $paginate, where: $where, orderBy: $orderBy) {\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n totalCount\n edges {\n cursor\n node {\n ...contentExperienceFragment\n preview {\n ...assetFragment\n processedUrls(optionsList: $optionsList)\n }\n pathPart {\n ...pathPartFragment\n }\n experienceComponent {\n ...experienceComponentFragment\n buildingBlock {\n ...buildingBlockFragment\n }\n buildingBlockFieldFulfillments {\n ...buildingBlockFieldFulfillmentFragment\n buildingBlockField {\n ...buildingBlockFieldFragment\n }\n contentValue {\n ...comprehensiveContentValueFragment\n contentItem {\n prn\n }\n relatedAsset {\n ...assetFragment\n processedUrls(optionsList: $optionsList)\n }\n linkedGridPlacement {\n ...gridPlacementFragment\n experienceComponent {\n ...experienceComponentFragment\n buildingBlock {\n ...buildingBlockFragment\n }\n }\n }\n relatedContentItem {\n ...contentItemFragment\n contentType {\n ...contentTypeFragment\n contentFields {\n ...contentFieldFragment\n }\n }\n contentValues {\n ...comprehensiveContentValueFragment\n contentField {\n ...contentFieldFragment\n }\n relatedAsset {\n ...assetFragment\n processedUrls(optionsList: $optionsList)\n }\n }\n }\n }\n }\n }\n tags {\n ...tagFragment\n }\n }\n }\n }\n}"];
|
|
73
|
+
/**
|
|
74
|
+
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
75
|
+
*/
|
|
76
|
+
export function graphql(source: "query contentItems($paginate: PaginationOptionsInput!, $where: [ContentItemsFilterInput!], $orderBy: OrderOptionsInput, $optionsList: [ProcessedAssetOptionsInput!]!) {\n contentItems(paginate: $paginate, where: $where, orderBy: $orderBy) {\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n totalCount\n edges {\n cursor\n node {\n ...contentItemFragment\n contentValues {\n ...contentValueFragment\n contentField {\n ...contentFieldFragment\n }\n relatedAsset {\n ...assetFragment\n processedUrls(optionsList: $optionsList)\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 contentItems($paginate: PaginationOptionsInput!, $where: [ContentItemsFilterInput!], $orderBy: OrderOptionsInput, $optionsList: [ProcessedAssetOptionsInput!]!) {\n contentItems(paginate: $paginate, where: $where, orderBy: $orderBy) {\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n totalCount\n edges {\n cursor\n node {\n ...contentItemFragment\n contentValues {\n ...contentValueFragment\n contentField {\n ...contentFieldFragment\n }\n relatedAsset {\n ...assetFragment\n processedUrls(optionsList: $optionsList)\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}"];
|
|
77
|
+
/**
|
|
78
|
+
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
79
|
+
*/
|
|
80
|
+
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}"];
|
|
81
|
+
/**
|
|
82
|
+
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
83
|
+
*/
|
|
84
|
+
export function graphql(source: "fragment buildingBlockFieldFulfillmentFragment on BuildingBlockFieldFulfillment {\n _id: prn\n prn\n contentValue {\n ...contentValueFragment\n contentItem {\n prn\n }\n relatedAsset {\n ...assetFragment\n }\n linkedPathPart {\n ...pathPartFragment\n }\n linkedGridPlacement {\n ...gridPlacementFragment\n experienceComponent {\n ...experienceComponentFragment\n buildingBlock {\n ...buildingBlockFragment\n }\n }\n }\n relatedContentItem {\n ...contentItemFragment\n contentType {\n ...contentTypeFragment\n contentFields {\n ...contentFieldFragment\n }\n }\n contentValues {\n ...contentValueFragment\n contentField {\n ...contentFieldFragment\n }\n relatedAsset {\n ...assetFragment\n }\n }\n }\n }\n createdAt\n updatedAt\n}"): (typeof documents)["fragment buildingBlockFieldFulfillmentFragment on BuildingBlockFieldFulfillment {\n _id: prn\n prn\n contentValue {\n ...contentValueFragment\n contentItem {\n prn\n }\n relatedAsset {\n ...assetFragment\n }\n linkedPathPart {\n ...pathPartFragment\n }\n linkedGridPlacement {\n ...gridPlacementFragment\n experienceComponent {\n ...experienceComponentFragment\n buildingBlock {\n ...buildingBlockFragment\n }\n }\n }\n relatedContentItem {\n ...contentItemFragment\n contentType {\n ...contentTypeFragment\n contentFields {\n ...contentFieldFragment\n }\n }\n contentValues {\n ...contentValueFragment\n contentField {\n ...contentFieldFragment\n }\n relatedAsset {\n ...assetFragment\n }\n }\n }\n }\n createdAt\n updatedAt\n}"];
|
|
85
|
+
/**
|
|
86
|
+
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
87
|
+
*/
|
|
88
|
+
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}"];
|
|
89
|
+
/**
|
|
90
|
+
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
91
|
+
*/
|
|
92
|
+
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}"];
|
|
93
|
+
/**
|
|
94
|
+
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
95
|
+
*/
|
|
96
|
+
export function graphql(source: "fragment contentExperienceFragment on ContentExperience {\n _id: prn\n slug\n prn\n title\n createdAt\n updatedAt\n}"): (typeof documents)["fragment contentExperienceFragment on ContentExperience {\n _id: prn\n slug\n prn\n title\n createdAt\n updatedAt\n}"];
|
|
97
|
+
/**
|
|
98
|
+
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
99
|
+
*/
|
|
100
|
+
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}"];
|
|
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 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}"];
|
|
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 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}"];
|
|
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 contentValueFragment on ContentValue {\n _id: prn\n prn\n primitiveValue\n interpolatedSmartText\n createdAt\n updatedAt\n}\n\nfragment comprehensiveContentValueFragment on ContentValue {\n ...contentValueFragment\n contentField {\n ...contentFieldFragment\n }\n relatedAsset {\n ...assetFragment\n }\n linkedPathPart {\n ...pathPartFragment\n }\n linkedGridPlacement {\n ...gridPlacementFragment\n }\n linkedContentType {\n ...contentTypeFragment\n }\n linkedTag {\n ...tagFragment\n }\n relatedContentItem {\n ...contentItemFragment\n }\n}"): (typeof documents)["fragment contentValueFragment on ContentValue {\n _id: prn\n prn\n primitiveValue\n interpolatedSmartText\n createdAt\n updatedAt\n}\n\nfragment comprehensiveContentValueFragment on ContentValue {\n ...contentValueFragment\n contentField {\n ...contentFieldFragment\n }\n relatedAsset {\n ...assetFragment\n }\n linkedPathPart {\n ...pathPartFragment\n }\n linkedGridPlacement {\n ...gridPlacementFragment\n }\n linkedContentType {\n ...contentTypeFragment\n }\n linkedTag {\n ...tagFragment\n }\n relatedContentItem {\n ...contentItemFragment\n }\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 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}"];
|
|
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 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}"];
|
|
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 pathPartFragment on PathPart {\n _id: prn\n prn\n slug\n path\n createdAt\n updatedAt\n}"): (typeof documents)["fragment pathPartFragment on PathPart {\n _id: prn\n prn\n slug\n path\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 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}"];
|
|
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 pathParts($paginate: PaginationOptionsInput!, $where: [PathPartsFilterInput!], $orderBy: OrderOptionsInput, $optionsList: [ProcessedAssetOptionsInput!]!) {\n pathParts(paginate: $paginate, where: $where, orderBy: $orderBy) {\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n totalCount\n edges {\n cursor\n node {\n ...pathPartFragment\n contentExperience {\n ...contentExperienceFragment\n preview {\n ...assetFragment\n processedUrls(optionsList: $optionsList)\n }\n experienceComponent {\n ...experienceComponentFragment\n buildingBlock {\n ...buildingBlockFragment\n }\n buildingBlockFieldFulfillments {\n buildingBlockField {\n ...buildingBlockFieldFragment\n }\n contentValue {\n ...contentValueFragment\n contentItem {\n prn\n }\n relatedAsset {\n ...assetFragment\n }\n }\n }\n }\n }\n children {\n ...pathPartFragment\n }\n }\n }\n }\n}"): (typeof documents)["query pathParts($paginate: PaginationOptionsInput!, $where: [PathPartsFilterInput!], $orderBy: OrderOptionsInput, $optionsList: [ProcessedAssetOptionsInput!]!) {\n pathParts(paginate: $paginate, where: $where, orderBy: $orderBy) {\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n totalCount\n edges {\n cursor\n node {\n ...pathPartFragment\n contentExperience {\n ...contentExperienceFragment\n preview {\n ...assetFragment\n processedUrls(optionsList: $optionsList)\n }\n experienceComponent {\n ...experienceComponentFragment\n buildingBlock {\n ...buildingBlockFragment\n }\n buildingBlockFieldFulfillments {\n buildingBlockField {\n ...buildingBlockFieldFragment\n }\n contentValue {\n ...contentValueFragment\n contentItem {\n prn\n }\n relatedAsset {\n ...assetFragment\n }\n }\n }\n }\n }\n children {\n ...pathPartFragment\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 tags($paginate: PaginationOptionsInput!, $where: [TagsFilterInput!], $orderBy: OrderOptionsInput) {\n tags(paginate: $paginate, where: $where, orderBy: $orderBy) {\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n totalCount\n edges {\n cursor\n node {\n ...tagFragment\n }\n }\n }\n}"): (typeof documents)["query tags($paginate: PaginationOptionsInput!, $where: [TagsFilterInput!], $orderBy: OrderOptionsInput) {\n tags(paginate: $paginate, where: $where, orderBy: $orderBy) {\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n totalCount\n edges {\n cursor\n node {\n ...tagFragment\n }\n }\n }\n}"];
|
|
137
|
+
|
|
138
|
+
export function graphql(source: string) {
|
|
139
|
+
return (documents as any)[source] ?? {};
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export type DocumentType<TDocumentNode extends DocumentNode<any, any>> = TDocumentNode extends DocumentNode< infer TType, any> ? TType : never;
|