@remkoj/optimizely-graph-functions 4.3.1 → 5.0.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.
@@ -2,85 +2,104 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.default = [
4
4
  `fragment IContentData on _IContent
5
- {
6
- _metadata {
7
- ...IContentInfo
8
- }
9
- _type: __typename
10
- }`,
11
- `fragment CompositionData on ICompositionNode {
12
- name: displayName
13
- layoutType: nodeType
14
- type
15
- key
16
- template: displayTemplateKey
17
- settings: displaySettings {
18
- key
19
- value
20
- }
21
- ... on ICompositionStructureNode {
22
- nodes @recursive(depth: 10) {
23
- name: displayName
24
- }
25
- }
26
- ... on ICompositionComponentNode {
27
- component {
28
- ...BlockData
29
- ...ElementData
30
- }
31
- }
32
- }`,
5
+ {
6
+ _metadata {
7
+ ...IContentInfo
8
+ }
9
+ _type: __typename
10
+ }`,
33
11
  `fragment IElementData on _IComponent {
34
- _metadata {
35
- ...IContentInfo
36
- }
37
- _type: __typename
38
- }`,
12
+ _metadata {
13
+ ...IContentInfo
14
+ }
15
+ _type: __typename
16
+ }`,
39
17
  `fragment ElementData on _IComponent {
40
- ...IElementData
41
- }`,
18
+ ...IElementData
19
+ }`,
42
20
  `fragment BlockData on _IComponent {
43
- ...IContentData
44
- }`,
21
+ ...IContentData
22
+ }`,
45
23
  `fragment PageData on _IContent {
46
- ...IContentData
47
- }`,
24
+ ...IContentData
25
+ }`,
48
26
  `fragment LinkData on ContentUrl {
49
- base
50
- hierarchical
51
- default
52
- }`,
27
+ base
28
+ default
29
+ }`,
53
30
  `fragment ReferenceData on ContentReference {
54
- key
55
- url {
56
- ...LinkData
57
- }
58
- }`,
31
+ key
32
+ url {
33
+ ...LinkData
34
+ }
35
+ }`,
59
36
  `fragment IContentInfo on IContentMetadata {
60
- key
61
- locale
62
- types
63
- displayName
64
- version
65
- url {
66
- ...LinkData
67
- }
68
- }`,
37
+ key
38
+ locale
39
+ types
40
+ displayName
41
+ version
42
+ url {
43
+ ...LinkData
44
+ }
45
+ }`,
69
46
  `fragment IContentListItem on _IContent {
70
- ...IContentData
71
- }`,
47
+ ...IContentData
48
+ }`,
72
49
  `fragment ExperienceData on _IExperience {
73
- composition {
74
- ...CompositionData
50
+ composition {
51
+ # Experience level
52
+ ...CompositionNodeData
53
+ nodes {
54
+ # Section level
55
+ ...CompositionNodeData
56
+ ... on ICompositionStructureNode {
57
+ nodes {
58
+ # Row level
59
+ ...CompositionNodeData
60
+ ... on ICompositionStructureNode {
61
+ nodes {
62
+ # Column level
63
+ ...CompositionNodeData
64
+ ... on ICompositionStructureNode {
65
+ nodes {
66
+ # Element level
67
+ ...CompositionNodeData
68
+ ...CompositionComponentNodeData
69
+ }
70
+ }
71
+ }
72
+ }
75
73
  }
76
- }`,
74
+ }
75
+ ...CompositionComponentNodeData
76
+ }
77
+ }
78
+ }`,
79
+ `fragment CompositionNodeData on ICompositionNode {
80
+ name: displayName
81
+ layoutType: nodeType
82
+ type
83
+ key
84
+ template: displayTemplateKey
85
+ settings: displaySettings {
86
+ key
87
+ value
88
+ }
89
+ }`,
90
+ `fragment CompositionComponentNodeData on ICompositionComponentNode {
91
+ component {
92
+ ...BlockData
93
+ ...ElementData
94
+ }
95
+ }`,
77
96
  `fragment LinkItemData on Link {
78
- title
79
- text
80
- target
81
- url {
82
- ...LinkData
83
- }
84
- }`
97
+ title
98
+ text
99
+ target
100
+ url {
101
+ ...LinkData
102
+ }
103
+ }`
85
104
  ];
86
105
  //# sourceMappingURL=fragments.cms13.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"fragments.cms13.js","sourceRoot":"","sources":["../../src/documents/fragments.cms13.ts"],"names":[],"mappings":";;AAAA,kBAAe;IACX;;;;;;MAME;IACF;;;;;;;;;;;;;;;;;;;;;MAqBE;IACF;;;;;MAKE;IACF;;MAEE;IACF;;MAEE;IACF;;MAEE;IACF;;;;MAIE;IACF;;;;;MAKE;IACF;;;;;;;;;MASE;IACF;;MAEE;IACF;;;;MAIE;IACF;;;;;;;MAOE;CACL,CAAA"}
1
+ {"version":3,"file":"fragments.cms13.js","sourceRoot":"","sources":["../../src/documents/fragments.cms13.ts"],"names":[],"mappings":";;AAAA,kBAAe;IACb;;;;;;EAMA;IACA;;;;;EAKA;IACA;;EAEA;IACA;;EAEA;IACA;;EAEA;IACA;;;EAGA;IACA;;;;;EAKA;IACA;;;;;;;;;EASA;IACA;;EAEA;IACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6BA;IACA;;;;;;;;;;EAUA;IACA;;;;;EAKA;IACA;;;;;;;EAOA;CACD,CAAA"}
@@ -14,7 +14,7 @@ exports.default = [
14
14
  locale: $locale
15
15
  ) {
16
16
  total
17
- items {
17
+ item: items {
18
18
  ...IContentData
19
19
  ...PageData
20
20
  ...BlockData
@@ -33,7 +33,7 @@ exports.default = [
33
33
  },
34
34
  locale: $locale
35
35
  ) {
36
- items {
36
+ items: item {
37
37
  ...IContentData
38
38
  ...PageData
39
39
  }
@@ -57,7 +57,7 @@ exports.default = [
57
57
  locale: $locale
58
58
  limit: 1
59
59
  ) {
60
- items {
60
+ item: items {
61
61
  ContentType
62
62
  },
63
63
  total
@@ -1 +1 @@
1
- {"version":3,"file":"queries.cms12.js","sourceRoot":"","sources":["../../src/documents/queries.cms12.ts"],"names":[],"mappings":";;AAAA,kBAAe;IACX;;;;;;;;;;;;;;;;;;;MAmBE;IACF;;;;;;;;;;;;;;;;;MAiBE;IACF;;;;;;;;;;;;;;;;;;;;;;;MAuBE;CACL,CAAA"}
1
+ {"version":3,"file":"queries.cms12.js","sourceRoot":"","sources":["../../src/documents/queries.cms12.ts"],"names":[],"mappings":";;AAAA,kBAAe;IACb;;;;;;;;;;;;;;;;;;;MAmBI;IACJ;;;;;;;;;;;;;;;;;MAiBI;IACJ;;;;;;;;;;;;;;;;;;;;;;;MAuBI;CACL,CAAA"}
@@ -12,7 +12,7 @@ exports.default = [
12
12
  locale: $locale
13
13
  ) {
14
14
  total
15
- items {
15
+ items: item {
16
16
  ...BlockData
17
17
  ...PageData
18
18
  }
@@ -26,7 +26,7 @@ exports.default = [
26
26
  locale: $locale
27
27
  ) {
28
28
  total
29
- items {
29
+ items: item {
30
30
  ...IContentData
31
31
  ...PageData
32
32
  }
@@ -43,7 +43,7 @@ exports.default = [
43
43
  locale: $locale
44
44
  ) {
45
45
  total
46
- items {
46
+ items: item {
47
47
  _metadata {
48
48
  types
49
49
  }
@@ -1 +1 @@
1
- {"version":3,"file":"queries.cms13.js","sourceRoot":"","sources":["../../src/documents/queries.cms13.ts"],"names":[],"mappings":";;AAAA,kBAAe;IACX;;;;;;;;;;;;;;;;MAgBE;IACF;;;;;;;;;;;;;MAaE;IACF;;;;;;;;;;;;;;;;;MAiBE;CACL,CAAA"}
1
+ {"version":3,"file":"queries.cms13.js","sourceRoot":"","sources":["../../src/documents/queries.cms13.ts"],"names":[],"mappings":";;AAAA,kBAAe;IACb;;;;;;;;;;;;;;;;MAgBI;IACJ;;;;;;;;;;;;;MAaI;IACJ;;;;;;;;;;;;;;;;;MAiBI;CACL,CAAA"}
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "repository": "https://github.com/remkoj/optimizely-dxp-clients.git",
4
4
  "author": "Remko Jantzen <693172+remkoj@users.noreply.github.com>",
5
5
  "homepage": "https://github.com/remkoj/optimizely-dxp-clients",
6
- "version": "4.3.1",
6
+ "version": "5.0.0",
7
7
  "license": "Apache-2.0",
8
8
  "type": "commonjs",
9
9
  "description": "GraphQL Codegen preset for Optimizely Graph",
@@ -42,19 +42,20 @@
42
42
  }
43
43
  },
44
44
  "devDependencies": {
45
- "@types/node": "^22.13.5",
45
+ "@types/node": "^22.14.1",
46
46
  "graphql": "^16.10.0",
47
47
  "graphql-request": "^6.1.0",
48
48
  "graphql-tag": "^2.12.6",
49
- "typescript": "^5.7.3"
49
+ "typescript": "^5.8.3"
50
50
  },
51
51
  "dependencies": {
52
52
  "@graphql-codegen/add": "^5.0.3",
53
- "@graphql-codegen/client-preset": "^4.6.4",
53
+ "@graphql-codegen/client-preset": "^4.8.0",
54
54
  "@graphql-codegen/plugin-helpers": "^5.1.0",
55
- "@graphql-codegen/typescript": "^4.1.5",
55
+ "@graphql-codegen/typescript": "^4.1.6",
56
56
  "@graphql-codegen/typescript-graphql-request": "^6.2.0",
57
- "@graphql-codegen/typescript-operations": "^4.5.1",
57
+ "@graphql-codegen/typescript-operations": "^4.6.0",
58
+ "graphql-sock": "^1.0.1",
58
59
  "tslib": "^2.8.1"
59
60
  },
60
61
  "scripts": {
@@ -66,7 +67,7 @@
66
67
  },
67
68
  "peerDependencies": {
68
69
  "@graphql-typed-document-node/core": "^3",
69
- "@remkoj/optimizely-graph-client": "^4",
70
+ "@remkoj/optimizely-graph-client": "^5.0.0",
70
71
  "graphql": "^16",
71
72
  "graphql-request": "^6",
72
73
  "graphql-tag": "^2"