@remkoj/optimizely-graph-functions 2.0.0-pre1 → 2.0.0-pre3
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 +28 -106
- package/dist/documents.js.map +1 -1
- package/package.json +8 -8
package/dist/documents.js
CHANGED
|
@@ -11,11 +11,18 @@ 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
|
|
18
|
+
template: displayTemplateKey
|
|
19
|
+
settings: displaySettings {
|
|
20
|
+
key
|
|
21
|
+
value
|
|
22
|
+
}
|
|
16
23
|
... on ICompositionStructureNode {
|
|
17
|
-
nodes @recursive(depth:
|
|
18
|
-
name
|
|
24
|
+
nodes @recursive(depth: 10) {
|
|
25
|
+
name: displayName
|
|
19
26
|
}
|
|
20
27
|
}
|
|
21
28
|
... on ICompositionElementNode {
|
|
@@ -46,7 +53,6 @@ exports.fragments = [
|
|
|
46
53
|
}`,
|
|
47
54
|
`fragment ReferenceData on ContentReference {
|
|
48
55
|
key
|
|
49
|
-
locale
|
|
50
56
|
url {
|
|
51
57
|
...LinkData
|
|
52
58
|
}
|
|
@@ -63,105 +69,24 @@ exports.fragments = [
|
|
|
63
69
|
}`,
|
|
64
70
|
`fragment IContentListItem on IContent {
|
|
65
71
|
...IContentData
|
|
72
|
+
}`,
|
|
73
|
+
`fragment ExperienceData on IExperience {
|
|
74
|
+
experience: _metadata {
|
|
75
|
+
... on CompositionMetadata {
|
|
76
|
+
composition {
|
|
77
|
+
...CompositionData
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}`,
|
|
82
|
+
`fragment LinkItemData on Link {
|
|
83
|
+
title
|
|
84
|
+
text
|
|
85
|
+
target
|
|
86
|
+
url {
|
|
87
|
+
...LinkData
|
|
88
|
+
}
|
|
66
89
|
}`
|
|
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
90
|
];
|
|
166
91
|
exports.queries = [
|
|
167
92
|
`query getContentById($key: String!, $version: String, $locale: [Locales!], $path: String, $domain: String) {
|
|
@@ -176,7 +101,6 @@ exports.queries = [
|
|
|
176
101
|
) {
|
|
177
102
|
total
|
|
178
103
|
items {
|
|
179
|
-
...IContentData
|
|
180
104
|
...BlockData
|
|
181
105
|
...PageData
|
|
182
106
|
}
|
|
@@ -185,14 +109,12 @@ exports.queries = [
|
|
|
185
109
|
`query getContentByPath($path: String!, $version: String, $locale: [Locales!], $domain: String) {
|
|
186
110
|
content: Content(
|
|
187
111
|
where: {
|
|
188
|
-
_metadata: { url: {
|
|
112
|
+
_metadata: { url: { default: { eq: $path }, base: { eq: $domain } }, version: { eq: $version }}
|
|
189
113
|
}
|
|
190
114
|
locale: $locale
|
|
191
115
|
) {
|
|
192
116
|
total
|
|
193
117
|
items {
|
|
194
|
-
...IContentData
|
|
195
|
-
...BlockData
|
|
196
118
|
...PageData
|
|
197
119
|
}
|
|
198
120
|
}
|
package/dist/documents.js.map
CHANGED
|
@@ -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
|
|
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;;;;;;;;;;;;;;;;;;;;EAoBE;IACF;;;;;EAKE;IACF;;EAEE;IACF;;EAEE;IACF;;EAEE;IACF;;;;EAIE;IACF;;;;;EAKE;IACF;;;;;;;;;EASE;IACF;;EAEE;IACF;;;;;;;;EAQE;IACF;;;;;;;EAOE;CACD,CAAA;AACY,QAAA,OAAO,GAAG;IACvB;;;;;;;;;;;;;;;;EAgBE;IACF;;;;;;;;;;;;EAYE;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-
|
|
4
|
+
"version": "2.0.0-pre3",
|
|
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.
|
|
38
|
+
"@types/node": "^20.12.12",
|
|
39
39
|
"graphql": "^16.8.1",
|
|
40
40
|
"graphql-request": "^6.1.0",
|
|
41
41
|
"graphql-tag": "^2.12.6",
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@graphql-codegen/add": "^5.0.2",
|
|
46
|
-
"@graphql-codegen/client-preset": "^4.2.
|
|
47
|
-
"@graphql-codegen/plugin-helpers": "^5.0.
|
|
48
|
-
"@graphql-codegen/typescript": "^4.0.
|
|
46
|
+
"@graphql-codegen/client-preset": "^4.2.6",
|
|
47
|
+
"@graphql-codegen/plugin-helpers": "^5.0.4",
|
|
48
|
+
"@graphql-codegen/typescript": "^4.0.7",
|
|
49
49
|
"@graphql-codegen/typescript-graphql-request": "^6.2.0",
|
|
50
|
-
"@graphql-codegen/typescript-operations": "^4.2.
|
|
50
|
+
"@graphql-codegen/typescript-operations": "^4.2.1",
|
|
51
51
|
"tslib": "^2.6.2"
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
@@ -59,11 +59,11 @@
|
|
|
59
59
|
"peerDependencies": {
|
|
60
60
|
"@graphql-typed-document-node/core": "*",
|
|
61
61
|
"graphql": "*",
|
|
62
|
-
"graphql-request": "
|
|
62
|
+
"graphql-request": "^6.1.0",
|
|
63
63
|
"graphql-tag": "*"
|
|
64
64
|
},
|
|
65
65
|
"optionalDependencies": {
|
|
66
|
-
"@remkoj/optimizely-graph-client": "2.0.0-
|
|
66
|
+
"@remkoj/optimizely-graph-client": "2.0.0-pre3"
|
|
67
67
|
},
|
|
68
68
|
"stableVersion": "1.0.4"
|
|
69
69
|
}
|