@remkoj/optimizely-graph-functions 2.0.0-pre1 → 2.0.0-pre2

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/dist/documents.js CHANGED
@@ -11,11 +11,13 @@ exports.fragments = [
11
11
  _type: __typename
12
12
  }`,
13
13
  `fragment CompositionData on ICompositionNode {
14
- name
14
+ name: displayName
15
+ layoutType
15
16
  type
17
+ key
16
18
  ... on ICompositionStructureNode {
17
19
  nodes @recursive(depth: 5) {
18
- name
20
+ name: displayName
19
21
  }
20
22
  }
21
23
  ... on ICompositionElementNode {
@@ -46,7 +48,6 @@ exports.fragments = [
46
48
  }`,
47
49
  `fragment ReferenceData on ContentReference {
48
50
  key
49
- locale
50
51
  url {
51
52
  ...LinkData
52
53
  }
@@ -63,105 +64,21 @@ exports.fragments = [
63
64
  }`,
64
65
  `fragment IContentListItem on IContent {
65
66
  ...IContentData
67
+ }`,
68
+ `fragment ExperienceData on IExperience {
69
+ experience: _metadata {
70
+ ... on CompositionMetadata {
71
+ composition {
72
+ key
73
+ layoutType
74
+ type
75
+ nodes {
76
+ ...CompositionData
77
+ }
78
+ }
79
+ }
80
+ }
66
81
  }`
67
- /*
68
- `fragment ContentLink on ContentModelReference {
69
- id: Id,
70
- workId: WorkId,
71
- guidValue: GuidValue
72
- }`,
73
- `fragment ContentLinkSearch on ContentModelReferenceSearch {
74
- id: Id,
75
- workId: WorkId,
76
- guidValue: GuidValue
77
- }`,
78
- `fragment IContentData on IContent {
79
- contentType: ContentType
80
- id: ContentLink {
81
- ...ContentLink
82
- }
83
- locale: Language {
84
- name: Name
85
- }
86
- path:RelativePath
87
- }`,
88
- `fragment ContentAreaItemData on ContentAreaItemModelSearch {
89
- item: ContentLink {
90
- ...ContentLinkSearch
91
- data: Expanded {
92
- ...BlockData
93
- }
94
- }
95
- displayOption:DisplayOption
96
- }`,
97
- `fragment BlockContentAreaItemSearchData on ContentAreaItemModelSearch {
98
- item: ContentLink {
99
- ...ContentLinkSearch
100
- data: Expanded {
101
- ...IContentData
102
- }
103
- }
104
- displayOption:DisplayOption
105
- }`,
106
- `fragment BlockContentAreaItemData on ContentAreaItemModel {
107
- item: ContentLink {
108
- ...ContentLink
109
- data: Expanded {
110
- ...IContentData
111
- }
112
- }
113
- displayOption:DisplayOption
114
- }`,
115
- `fragment LinkItemData on LinkItemNode {
116
- children: Text
117
- title: Title
118
- href: Href
119
- target: Target
120
- content: ContentLink {
121
- href: Url
122
- data: Expanded {
123
- path: RelativePath
124
- }
125
- }
126
- }`,
127
- `fragment ImageData on ContentModelReference {
128
- ...ContentLink
129
- url: Url
130
- data: Expanded {
131
- ...IContentData
132
- url: Url
133
- alt: Name
134
- path: RelativePath
135
- }
136
- }`,
137
- `fragment ImageDataSearch on ContentModelReferenceSearch {
138
- ...ContentLinkSearch
139
- url: Url
140
- data: Expanded {
141
- ...IContentData
142
- url: Url
143
- alt: Name
144
- path: RelativePath
145
- }
146
- }`,
147
- `fragment BlockData on IContent {
148
- ...IContentData
149
- }`,
150
- `fragment PageData on IContent {
151
- ...IContentData
152
- }`,
153
- `fragment ContentAreaItemBase on ContentAreaItemModelSearch {
154
- contentLink:ContentLink {
155
- id:Id
156
- workId:WorkId
157
- guidValue:GuidValue
158
- component:Expanded {
159
- path:RelativePath
160
- type:ContentType
161
- }
162
- }
163
- displayOption:DisplayOption
164
- }`*/
165
82
  ];
166
83
  exports.queries = [
167
84
  `query getContentById($key: String!, $version: String, $locale: [Locales!], $path: String, $domain: String) {
@@ -185,7 +102,7 @@ exports.queries = [
185
102
  `query getContentByPath($path: String!, $version: String, $locale: [Locales!], $domain: String) {
186
103
  content: Content(
187
104
  where: {
188
- _metadata: { url: { hierarchical: { eq: $path }, base: { eq: $domain } } version: { eq: $version }}
105
+ _metadata: { url: { default: { eq: $path }, base: { eq: $domain } }, version: { eq: $version }}
189
106
  }
190
107
  locale: $locale
191
108
  ) {
@@ -1 +1 @@
1
- {"version":3,"file":"documents.js","sourceRoot":"","sources":["../src/documents.ts"],"names":[],"mappings":";;;AAAa,QAAA,iBAAiB,GAAG,CAAC,aAAa,EAAC,IAAI,EAAC,QAAQ,EAAC,MAAM,EAAC,YAAY,CAAC,CAAA;AAErE,QAAA,SAAS,GAAG;IACzB;;;;;;EAME;IACF;;;;;;;;;;;;;EAaE;IACF;;;;;EAKE;IACF;;EAEE;IACF;;EAEE;IACF;;EAEE;IACF;;;;EAIE;IACF;;;;;;EAME;IACF;;;;;;;;;EASE;IACF;;EAEE;IACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAiGM;CACP,CAAA;AACY,QAAA,OAAO,GAAG;IACvB;;;;;;;;;;;;;;;;;EAiBE;IACF;;;;;;;;;;;;;;EAcE;IACF;;;;;;;;;;;;;;;;;EAiBE;CACD,CAAA;AAEY,QAAA,gBAAgB,GAAG,CAAC,gBAAgB,EAAC,kBAAkB,EAAC,gBAAgB,CAAC,CAAA"}
1
+ {"version":3,"file":"documents.js","sourceRoot":"","sources":["../src/documents.ts"],"names":[],"mappings":";;;AAAa,QAAA,iBAAiB,GAAG,CAAC,aAAa,EAAC,IAAI,EAAC,QAAQ,EAAC,MAAM,EAAC,YAAY,CAAC,CAAA;AAErE,QAAA,SAAS,GAAG;IACzB;;;;;;EAME;IACF;;;;;;;;;;;;;;;EAeE;IACF;;;;;EAKE;IACF;;EAEE;IACF;;EAEE;IACF;;EAEE;IACF;;;;EAIE;IACF;;;;;EAKE;IACF;;;;;;;;;EASE;IACF;;EAEE;IACF;;;;;;;;;;;;;EAaE;CACD,CAAA;AACY,QAAA,OAAO,GAAG;IACvB;;;;;;;;;;;;;;;;;EAiBE;IACF;;;;;;;;;;;;;;EAcE;IACF;;;;;;;;;;;;;;;;;EAiBE;CACD,CAAA;AAEY,QAAA,gBAAgB,GAAG,CAAC,gBAAgB,EAAC,kBAAkB,EAAC,gBAAgB,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@remkoj/optimizely-graph-functions",
3
3
  "license": "Apache-2.0",
4
- "version": "2.0.0-pre1",
4
+ "version": "2.0.0-pre2",
5
5
  "packageManager": "yarn@4.1.1",
6
6
  "repository": "https://github.com/remkoj/optimizely-dxp-clients.git",
7
7
  "author": "Remko Jantzen <693172+remkoj@users.noreply.github.com>",
@@ -35,7 +35,7 @@
35
35
  }
36
36
  },
37
37
  "devDependencies": {
38
- "@types/node": "^20.12.7",
38
+ "@types/node": "^20.12.10",
39
39
  "graphql": "^16.8.1",
40
40
  "graphql-request": "^6.1.0",
41
41
  "graphql-tag": "^2.12.6",
@@ -63,7 +63,7 @@
63
63
  "graphql-tag": "*"
64
64
  },
65
65
  "optionalDependencies": {
66
- "@remkoj/optimizely-graph-client": "2.0.0-pre1"
66
+ "@remkoj/optimizely-graph-client": "2.0.0-pre2"
67
67
  },
68
68
  "stableVersion": "1.0.4"
69
69
  }