@platecms/delta-client 0.13.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.
Files changed (41) hide show
  1. package/package.json +5 -3
  2. package/src/__generated__/gql.ts +93 -3
  3. package/src/__generated__/graphql.ts +679 -82
  4. package/src/api/fetchContentExperiences.spec.ts +82 -0
  5. package/src/api/fetchContentExperiences.ts +42 -0
  6. package/src/api/fetchContentItems.spec.ts +62 -0
  7. package/src/api/fetchContentItems.ts +42 -0
  8. package/src/api/fetchPathParts.spec.ts +62 -0
  9. package/src/api/fetchPathParts.ts +42 -0
  10. package/src/api/fetchTags.spec.ts +61 -0
  11. package/src/api/fetchTags.ts +38 -0
  12. package/src/api/index.ts +4 -1
  13. package/src/api/types.ts +35 -0
  14. package/src/apollo/index.ts +1 -1
  15. package/src/app/utils/paginated-response.type.ts +19 -0
  16. package/src/factories/BaseFactory.ts +19 -0
  17. package/src/factories/ChannelFactory.ts +19 -0
  18. package/src/factories/ContentExperienceFactory.ts +54 -0
  19. package/src/factories/PathPartFactory.ts +26 -0
  20. package/src/factories/TagFactory.ts +30 -0
  21. package/src/graphql/content-experiences/content-experiences.query.gql +82 -0
  22. package/src/graphql/content-items/content-items.query.gql +47 -0
  23. package/src/graphql/fragments/asset.fragment.gql +10 -0
  24. package/src/graphql/fragments/asset.fragments.gql +10 -0
  25. package/src/graphql/fragments/building-block-field-fullfillment.fragments.gql +45 -0
  26. package/src/graphql/fragments/building-block-field.fragments.gql +8 -0
  27. package/src/graphql/fragments/building-block.fragments.gql +11 -0
  28. package/src/graphql/fragments/content-experience.fragments.gql +8 -0
  29. package/src/graphql/fragments/content-field.fragments.gql +7 -0
  30. package/src/graphql/fragments/content-item.fragments.gql +11 -0
  31. package/src/graphql/fragments/content-type.fragments.gql +11 -0
  32. package/src/graphql/fragments/content-values.fragments.gql +33 -0
  33. package/src/graphql/fragments/experience-component.fragments.gql +13 -0
  34. package/src/graphql/fragments/grid-placement.fragments.gql +7 -0
  35. package/src/graphql/fragments/path-part.fragments.gql +8 -0
  36. package/src/graphql/fragments/tag.fragment.gql +17 -0
  37. package/src/graphql/path-parts/path-parts.query.gql +52 -0
  38. package/src/graphql/tags/tag.query.gql +15 -3
  39. package/src/index.ts +1 -1
  40. package/src/slate/index.ts +21 -3
  41. package/src/utils/index.ts +8 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platecms/delta-client",
3
- "version": "0.13.0",
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,7 +18,7 @@
18
18
  "src/**/*"
19
19
  ],
20
20
  "peerDependencies": {
21
- "@platecms/delta-cast": "0.13.0",
21
+ "@platecms/delta-cast": "1.2.0",
22
22
  "@graphql-typed-document-node/core": "3.2.0",
23
23
  "graphql": "16.11.0",
24
24
  "slate": "0.118.0",
@@ -28,7 +28,9 @@
28
28
  "reflect-metadata": "0.2.2",
29
29
  "@apollo/client": "3.13.9",
30
30
  "defu": "6.1.4",
31
- "lodash": "4.17.21"
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",
@@ -14,12 +14,42 @@ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/
14
14
  * Learn more about it here: https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#reducing-bundle-size
15
15
  */
16
16
  type Documents = {
17
- "query tag($prn: [PRN!]!) {\n tag(prn: $prn) {\n ...tagFragment\n }\n}": typeof types.TagDocument,
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,
18
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,
19
34
  };
20
35
  const documents: Documents = {
21
- "query tag($prn: [PRN!]!) {\n tag(prn: $prn) {\n ...tagFragment\n }\n}": types.TagDocument,
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,
22
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,
23
53
  };
24
54
 
25
55
  /**
@@ -39,11 +69,71 @@ export function graphql(source: string): unknown;
39
69
  /**
40
70
  * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
41
71
  */
42
- export function graphql(source: "query tag($prn: [PRN!]!) {\n tag(prn: $prn) {\n ...tagFragment\n }\n}"): (typeof documents)["query tag($prn: [PRN!]!) {\n tag(prn: $prn) {\n ...tagFragment\n }\n}"];
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}"];
43
125
  /**
44
126
  * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
45
127
  */
46
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}"];
47
137
 
48
138
  export function graphql(source: string) {
49
139
  return (documents as any)[source] ?? {};