@platecms/delta-client 1.0.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -2
- package/package.json +17 -9
- package/src/__generated__/fragment-masking.ts +87 -0
- package/src/__generated__/gql.ts +142 -0
- package/src/__generated__/graphql.ts +3787 -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 +95 -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
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { BaseFactory } from "./BaseFactory";
|
|
2
|
+
import { faker } from "@faker-js/faker";
|
|
3
|
+
import { PathPart } from "../__generated__/graphql";
|
|
4
|
+
|
|
5
|
+
export class PathPartFactory extends BaseFactory<PathPart> {
|
|
6
|
+
public create(input: Partial<PathPart> | undefined = {}): PathPart {
|
|
7
|
+
return {
|
|
8
|
+
prn: this.prn,
|
|
9
|
+
_id: this.prn,
|
|
10
|
+
path: faker.lorem.word(),
|
|
11
|
+
slug: faker.lorem.word(),
|
|
12
|
+
parent: null,
|
|
13
|
+
contentExperience: null,
|
|
14
|
+
hasContentExperience: false,
|
|
15
|
+
amountOfChildren: 0,
|
|
16
|
+
amountOfChildrenWithContentExperiences: 0,
|
|
17
|
+
amountOfDescendants: 0,
|
|
18
|
+
amountOfDescendantsWithContentExperiences: 0,
|
|
19
|
+
children: [],
|
|
20
|
+
createdAt: this.createdAt,
|
|
21
|
+
updatedAt: this.updatedAt,
|
|
22
|
+
__typename: "PathPart",
|
|
23
|
+
...input,
|
|
24
|
+
} as unknown as PathPart;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { BaseFactory } from "./BaseFactory";
|
|
2
|
+
import { Stage, Tag, TagVisibility } from "../../src/__generated__/graphql";
|
|
3
|
+
import { faker } from "@faker-js/faker";
|
|
4
|
+
|
|
5
|
+
export class TagFactory extends BaseFactory<Tag> {
|
|
6
|
+
public create(input?: Partial<Tag>): Tag & { amountOfChildren: number; amountOfUses: number } {
|
|
7
|
+
return {
|
|
8
|
+
prn: this.prn,
|
|
9
|
+
_id: this.prn,
|
|
10
|
+
name: faker.lorem.word(),
|
|
11
|
+
path: faker.lorem.word(),
|
|
12
|
+
nestingLevel: faker.number.int({ min: 0, max: 5 }),
|
|
13
|
+
forceVisibilityOnDescendants: faker.datatype.boolean(),
|
|
14
|
+
hasForcedVisibility: faker.datatype.boolean(),
|
|
15
|
+
visibility: faker.datatype.boolean() ? TagVisibility.Public : TagVisibility.Private,
|
|
16
|
+
stage: faker.datatype.boolean() ? Stage.Production : Stage.Development,
|
|
17
|
+
color: faker.color.rgb(),
|
|
18
|
+
parent: null,
|
|
19
|
+
amountOfContentExperiences: faker.number.int({ min: 0, max: 10 }),
|
|
20
|
+
amountOfContentItems: faker.number.int({ min: 0, max: 10 }),
|
|
21
|
+
amountOfChildren: faker.number.int({ min: 0, max: 10 }),
|
|
22
|
+
amountOfUses: faker.number.int({ min: 0, max: 100 }),
|
|
23
|
+
createdAt: this.createdAt,
|
|
24
|
+
updatedAt: this.updatedAt,
|
|
25
|
+
children: [],
|
|
26
|
+
__typename: "Tag",
|
|
27
|
+
...input,
|
|
28
|
+
} as unknown as Tag & { amountOfChildren: number; amountOfUses: number };
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
query contentExperiences(
|
|
2
|
+
$paginate: PaginationOptionsInput!
|
|
3
|
+
$where: [ContentExperiencesFilterInput!]
|
|
4
|
+
$orderBy: OrderOptionsInput
|
|
5
|
+
$optionsList: [ProcessedAssetOptionsInput!]!
|
|
6
|
+
) {
|
|
7
|
+
contentExperiences(paginate: $paginate, where: $where, orderBy: $orderBy) {
|
|
8
|
+
pageInfo {
|
|
9
|
+
endCursor
|
|
10
|
+
hasNextPage
|
|
11
|
+
hasPreviousPage
|
|
12
|
+
startCursor
|
|
13
|
+
}
|
|
14
|
+
totalCount
|
|
15
|
+
edges {
|
|
16
|
+
cursor
|
|
17
|
+
node {
|
|
18
|
+
...contentExperienceFragment
|
|
19
|
+
preview {
|
|
20
|
+
...assetFragment
|
|
21
|
+
processedUrls(optionsList: $optionsList)
|
|
22
|
+
}
|
|
23
|
+
pathPart {
|
|
24
|
+
...pathPartFragment
|
|
25
|
+
}
|
|
26
|
+
experienceComponent {
|
|
27
|
+
...experienceComponentFragment
|
|
28
|
+
buildingBlock {
|
|
29
|
+
...buildingBlockFragment
|
|
30
|
+
}
|
|
31
|
+
buildingBlockFieldFulfillments {
|
|
32
|
+
...buildingBlockFieldFulfillmentFragment
|
|
33
|
+
buildingBlockField {
|
|
34
|
+
...buildingBlockFieldFragment
|
|
35
|
+
}
|
|
36
|
+
contentValue {
|
|
37
|
+
...comprehensiveContentValueFragment
|
|
38
|
+
contentItem {
|
|
39
|
+
prn
|
|
40
|
+
}
|
|
41
|
+
relatedAsset {
|
|
42
|
+
...assetFragment
|
|
43
|
+
processedUrls(optionsList: $optionsList)
|
|
44
|
+
}
|
|
45
|
+
linkedGridPlacement {
|
|
46
|
+
...gridPlacementFragment
|
|
47
|
+
experienceComponent {
|
|
48
|
+
...experienceComponentFragment
|
|
49
|
+
buildingBlock {
|
|
50
|
+
...buildingBlockFragment
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
relatedContentItem {
|
|
55
|
+
...contentItemFragment
|
|
56
|
+
contentType {
|
|
57
|
+
...contentTypeFragment
|
|
58
|
+
contentFields {
|
|
59
|
+
...contentFieldFragment
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
contentValues {
|
|
63
|
+
...comprehensiveContentValueFragment
|
|
64
|
+
contentField {
|
|
65
|
+
...contentFieldFragment
|
|
66
|
+
}
|
|
67
|
+
relatedAsset {
|
|
68
|
+
...assetFragment
|
|
69
|
+
processedUrls(optionsList: $optionsList)
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
tags {
|
|
77
|
+
...tagFragment
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
query contentItems(
|
|
2
|
+
$paginate: PaginationOptionsInput!
|
|
3
|
+
$where: [ContentItemsFilterInput!]
|
|
4
|
+
$orderBy: OrderOptionsInput
|
|
5
|
+
$optionsList: [ProcessedAssetOptionsInput!]!
|
|
6
|
+
) {
|
|
7
|
+
contentItems(paginate: $paginate, where: $where, orderBy: $orderBy) {
|
|
8
|
+
pageInfo {
|
|
9
|
+
endCursor
|
|
10
|
+
hasNextPage
|
|
11
|
+
hasPreviousPage
|
|
12
|
+
startCursor
|
|
13
|
+
}
|
|
14
|
+
totalCount
|
|
15
|
+
edges {
|
|
16
|
+
cursor
|
|
17
|
+
node {
|
|
18
|
+
...contentItemFragment
|
|
19
|
+
contentValues {
|
|
20
|
+
...contentValueFragment
|
|
21
|
+
contentField {
|
|
22
|
+
...contentFieldFragment
|
|
23
|
+
}
|
|
24
|
+
relatedAsset {
|
|
25
|
+
...assetFragment
|
|
26
|
+
processedUrls(optionsList: $optionsList)
|
|
27
|
+
}
|
|
28
|
+
relatedContentItem {
|
|
29
|
+
...contentItemFragment
|
|
30
|
+
contentValues {
|
|
31
|
+
...contentValueFragment
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
contentType {
|
|
36
|
+
...contentTypeFragment
|
|
37
|
+
contentFields {
|
|
38
|
+
...contentFieldFragment
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
tags {
|
|
42
|
+
...tagFragment
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
fragment buildingBlockFieldFulfillmentFragment on BuildingBlockFieldFulfillment {
|
|
2
|
+
_id: prn
|
|
3
|
+
prn
|
|
4
|
+
contentValue {
|
|
5
|
+
...contentValueFragment
|
|
6
|
+
contentItem {
|
|
7
|
+
prn
|
|
8
|
+
}
|
|
9
|
+
relatedAsset {
|
|
10
|
+
...assetFragment
|
|
11
|
+
}
|
|
12
|
+
linkedPathPart {
|
|
13
|
+
...pathPartFragment
|
|
14
|
+
}
|
|
15
|
+
linkedGridPlacement {
|
|
16
|
+
...gridPlacementFragment
|
|
17
|
+
experienceComponent {
|
|
18
|
+
...experienceComponentFragment
|
|
19
|
+
buildingBlock {
|
|
20
|
+
...buildingBlockFragment
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
relatedContentItem {
|
|
25
|
+
...contentItemFragment
|
|
26
|
+
contentType {
|
|
27
|
+
...contentTypeFragment
|
|
28
|
+
contentFields {
|
|
29
|
+
...contentFieldFragment
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
contentValues {
|
|
33
|
+
...contentValueFragment
|
|
34
|
+
contentField {
|
|
35
|
+
...contentFieldFragment
|
|
36
|
+
}
|
|
37
|
+
relatedAsset {
|
|
38
|
+
...assetFragment
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
createdAt
|
|
44
|
+
updatedAt
|
|
45
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
fragment contentValueFragment on ContentValue {
|
|
2
|
+
_id: prn
|
|
3
|
+
prn
|
|
4
|
+
primitiveValue
|
|
5
|
+
interpolatedSmartText
|
|
6
|
+
createdAt
|
|
7
|
+
updatedAt
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
fragment comprehensiveContentValueFragment on ContentValue {
|
|
11
|
+
...contentValueFragment
|
|
12
|
+
contentField {
|
|
13
|
+
...contentFieldFragment
|
|
14
|
+
}
|
|
15
|
+
relatedAsset {
|
|
16
|
+
...assetFragment
|
|
17
|
+
}
|
|
18
|
+
linkedPathPart {
|
|
19
|
+
...pathPartFragment
|
|
20
|
+
}
|
|
21
|
+
linkedGridPlacement {
|
|
22
|
+
...gridPlacementFragment
|
|
23
|
+
}
|
|
24
|
+
linkedContentType {
|
|
25
|
+
...contentTypeFragment
|
|
26
|
+
}
|
|
27
|
+
linkedTag {
|
|
28
|
+
...tagFragment
|
|
29
|
+
}
|
|
30
|
+
relatedContentItem {
|
|
31
|
+
...contentItemFragment
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
fragment tagFragment on Tag {
|
|
2
|
+
_id: prn
|
|
3
|
+
prn
|
|
4
|
+
name
|
|
5
|
+
path
|
|
6
|
+
color
|
|
7
|
+
visibility
|
|
8
|
+
forceVisibilityOnDescendants
|
|
9
|
+
stage
|
|
10
|
+
amountOfChildren
|
|
11
|
+
amountOfContentExperiences
|
|
12
|
+
amountOfContentItems
|
|
13
|
+
hasForcedVisibility
|
|
14
|
+
nestingLevel
|
|
15
|
+
createdAt
|
|
16
|
+
updatedAt
|
|
17
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
query pathParts(
|
|
2
|
+
$paginate: PaginationOptionsInput!
|
|
3
|
+
$where: [PathPartsFilterInput!]
|
|
4
|
+
$orderBy: OrderOptionsInput
|
|
5
|
+
$optionsList: [ProcessedAssetOptionsInput!]!
|
|
6
|
+
) {
|
|
7
|
+
pathParts(paginate: $paginate, where: $where, orderBy: $orderBy) {
|
|
8
|
+
pageInfo {
|
|
9
|
+
endCursor
|
|
10
|
+
hasNextPage
|
|
11
|
+
hasPreviousPage
|
|
12
|
+
startCursor
|
|
13
|
+
}
|
|
14
|
+
totalCount
|
|
15
|
+
edges {
|
|
16
|
+
cursor
|
|
17
|
+
node {
|
|
18
|
+
...pathPartFragment
|
|
19
|
+
contentExperience {
|
|
20
|
+
...contentExperienceFragment
|
|
21
|
+
preview {
|
|
22
|
+
...assetFragment
|
|
23
|
+
processedUrls(optionsList: $optionsList)
|
|
24
|
+
}
|
|
25
|
+
experienceComponent {
|
|
26
|
+
...experienceComponentFragment
|
|
27
|
+
buildingBlock {
|
|
28
|
+
...buildingBlockFragment
|
|
29
|
+
}
|
|
30
|
+
buildingBlockFieldFulfillments {
|
|
31
|
+
buildingBlockField {
|
|
32
|
+
...buildingBlockFieldFragment
|
|
33
|
+
}
|
|
34
|
+
contentValue {
|
|
35
|
+
...contentValueFragment
|
|
36
|
+
contentItem {
|
|
37
|
+
prn
|
|
38
|
+
}
|
|
39
|
+
relatedAsset {
|
|
40
|
+
...assetFragment
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
children {
|
|
47
|
+
...pathPartFragment
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
query tags($paginate: PaginationOptionsInput!, $where: [TagsFilterInput!], $orderBy: OrderOptionsInput) {
|
|
2
|
+
tags(paginate: $paginate, where: $where, orderBy: $orderBy) {
|
|
3
|
+
pageInfo {
|
|
4
|
+
endCursor
|
|
5
|
+
hasNextPage
|
|
6
|
+
hasPreviousPage
|
|
7
|
+
startCursor
|
|
8
|
+
}
|
|
9
|
+
totalCount
|
|
10
|
+
edges {
|
|
11
|
+
cursor
|
|
12
|
+
node {
|
|
13
|
+
...tagFragment
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
fragment tagFragment on Tag {
|
|
2
|
+
_id: prn
|
|
3
|
+
prn
|
|
4
|
+
name
|
|
5
|
+
path
|
|
6
|
+
color
|
|
7
|
+
visibility
|
|
8
|
+
forceVisibilityOnDescendants
|
|
9
|
+
stage
|
|
10
|
+
amountOfChildren
|
|
11
|
+
amountOfContentExperiences
|
|
12
|
+
amountOfContentItems
|
|
13
|
+
hasForcedVisibility
|
|
14
|
+
nestingLevel
|
|
15
|
+
createdAt
|
|
16
|
+
updatedAt
|
|
17
|
+
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./api";
|