@pronto-tools-and-more/api 12.41.0 → 12.43.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/package.json
CHANGED
@@ -209,7 +209,7 @@ fragment TaxonomySummaryFragment on Taxonomy {
|
|
209
209
|
export const bottom = {
|
210
210
|
filter: {
|
211
211
|
id: {
|
212
|
-
value: "
|
212
|
+
value: "",
|
213
213
|
},
|
214
214
|
},
|
215
215
|
first: 1,
|
@@ -221,7 +221,7 @@ export const bottom = {
|
|
221
221
|
includeHtml: false,
|
222
222
|
includeContentSeoMetadata: false,
|
223
223
|
appInfo: {
|
224
|
-
appId: "
|
224
|
+
appId: "",
|
225
225
|
appVersion: "1.0-SNAPSHOT",
|
226
226
|
preview: true,
|
227
227
|
},
|
@@ -1,43 +1,225 @@
|
|
1
|
-
export const top = `query
|
1
|
+
export const top = `query CatalogTaxonomiesQuery($appInfo: AppInfo!, $deviceInfo: DeviceInfo!, $authorization: Authorization!, $filter: TaxonomyFilter, $sort: [TaxonomyComparator!], $first: Int, $after: String, $includeTaxonomySeoMetadata: Boolean!, $includeContents: Boolean!, $contentFilter: ContentFilter, $contentSort: [ContentComparator!], $contentFirst: Int, $contentAfter: String, $includeBundledContent: Boolean!, $includeResources: Boolean!, $includeBlocks: Boolean!, $includeHtml: Boolean!, $includeContentSeoMetadata: Boolean!, $propertyFilter: PropertyFilter) {
|
2
2
|
catalog(
|
3
3
|
appInfo: $appInfo
|
4
4
|
deviceInfo: $deviceInfo
|
5
5
|
authorization: $authorization
|
6
6
|
) {
|
7
|
-
taxonomiesConnection(first: $first, after: $after, filter:{
|
8
|
-
value:"author"
|
9
|
-
}}) {
|
7
|
+
taxonomiesConnection(first: $first, after: $after, sort: $sort, filter: $filter) {
|
10
8
|
pageInfo {
|
11
9
|
hasNextPage
|
12
|
-
|
10
|
+
endCursor
|
13
11
|
}
|
14
|
-
totalCount
|
15
12
|
edges {
|
16
|
-
cursor
|
17
13
|
node {
|
18
|
-
name
|
19
|
-
properties {
|
20
|
-
key
|
21
|
-
value
|
22
|
-
}
|
23
|
-
thumbnails {
|
24
|
-
properties {
|
25
|
-
key
|
26
|
-
value
|
27
|
-
}
|
28
|
-
}
|
29
|
-
|
30
14
|
__typename
|
15
|
+
...TaxonomyFragment
|
31
16
|
}
|
32
|
-
__typename
|
33
17
|
}
|
34
|
-
__typename
|
35
18
|
}
|
36
|
-
|
19
|
+
}
|
20
|
+
}
|
21
|
+
|
22
|
+
fragment TaxonomyFragment on Taxonomy {
|
23
|
+
id
|
24
|
+
internalId
|
25
|
+
name
|
26
|
+
description
|
27
|
+
type
|
28
|
+
parentId
|
29
|
+
seoMetadata @include(if: $includeTaxonomySeoMetadata) {
|
30
|
+
key
|
31
|
+
value
|
32
|
+
}
|
33
|
+
properties {
|
34
|
+
key
|
35
|
+
value
|
36
|
+
}
|
37
|
+
thumbnails {
|
38
|
+
kind
|
39
|
+
url
|
40
|
+
properties {
|
41
|
+
key
|
42
|
+
value
|
43
|
+
}
|
44
|
+
}
|
45
|
+
contentsConnection(
|
46
|
+
filter: $contentFilter
|
47
|
+
sort: $contentSort
|
48
|
+
first: $contentFirst
|
49
|
+
after: $contentAfter
|
50
|
+
) @include(if: $includeContents) {
|
51
|
+
pageInfo {
|
52
|
+
hasNextPage
|
53
|
+
endCursor
|
54
|
+
}
|
55
|
+
edges {
|
56
|
+
node {
|
57
|
+
...ContentFragment
|
58
|
+
...IssueFragment
|
59
|
+
...PostFragment
|
60
|
+
...BundleFragment
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
|
66
|
+
fragment ContentFragment on Content {
|
67
|
+
__typename
|
68
|
+
id
|
69
|
+
version
|
70
|
+
name
|
71
|
+
description
|
72
|
+
index
|
73
|
+
alias
|
74
|
+
externalId
|
75
|
+
publicationDate
|
76
|
+
unpublishDate
|
77
|
+
lastModified
|
78
|
+
access
|
79
|
+
productId
|
80
|
+
purchaseData {
|
81
|
+
purchased
|
82
|
+
purchasedBy
|
83
|
+
}
|
84
|
+
publication {
|
85
|
+
id
|
86
|
+
}
|
87
|
+
properties(filter: $propertyFilter) {
|
88
|
+
key
|
89
|
+
value
|
90
|
+
}
|
91
|
+
seoMetadata @include(if: $includeContentSeoMetadata) {
|
92
|
+
key
|
93
|
+
value
|
94
|
+
}
|
95
|
+
thumbnails {
|
96
|
+
kind
|
97
|
+
url
|
98
|
+
properties {
|
99
|
+
key
|
100
|
+
value
|
101
|
+
}
|
102
|
+
}
|
103
|
+
categories
|
104
|
+
tags
|
105
|
+
}
|
106
|
+
|
107
|
+
fragment IssueFragment on Issue {
|
108
|
+
contentLength
|
109
|
+
numberOfPages
|
110
|
+
previewContentLength
|
111
|
+
resources @include(if: $includeResources) {
|
112
|
+
id
|
113
|
+
url
|
114
|
+
type
|
115
|
+
contentLength
|
116
|
+
properties {
|
117
|
+
key
|
118
|
+
value
|
119
|
+
type
|
120
|
+
}
|
121
|
+
}
|
122
|
+
}
|
123
|
+
|
124
|
+
fragment PostFragment on Post {
|
125
|
+
postType
|
126
|
+
bundleId
|
127
|
+
bundles {
|
128
|
+
id
|
129
|
+
bundleType
|
130
|
+
}
|
131
|
+
taxonomies {
|
132
|
+
...TaxonomySummaryFragment
|
133
|
+
}
|
134
|
+
authors {
|
135
|
+
name
|
136
|
+
email
|
137
|
+
}
|
138
|
+
bundleId
|
139
|
+
content @include(if: $includeBlocks) {
|
140
|
+
...ContentBlockFragment
|
141
|
+
}
|
142
|
+
previewContentBlocks @include(if: $includeBlocks) {
|
143
|
+
...ContentBlockFragment
|
144
|
+
}
|
145
|
+
contentHtml @include(if: $includeHtml)
|
146
|
+
previewContentHtml @include(if: $includeHtml)
|
147
|
+
resources @include(if: $includeResources) {
|
148
|
+
id
|
149
|
+
url
|
150
|
+
type
|
151
|
+
contentLength
|
152
|
+
properties {
|
153
|
+
key
|
154
|
+
value
|
155
|
+
type
|
156
|
+
}
|
157
|
+
}
|
158
|
+
}
|
159
|
+
|
160
|
+
fragment ContentBlockFragment on ContentBlock {
|
161
|
+
id
|
162
|
+
type
|
163
|
+
parentId
|
164
|
+
children
|
165
|
+
sequence
|
166
|
+
html
|
167
|
+
level
|
168
|
+
properties {
|
169
|
+
key
|
170
|
+
value
|
171
|
+
type
|
172
|
+
}
|
173
|
+
}
|
174
|
+
|
175
|
+
fragment BundleFragment on Bundle {
|
176
|
+
bundleType
|
177
|
+
taxonomies {
|
178
|
+
...TaxonomySummaryFragment
|
179
|
+
}
|
180
|
+
authors {
|
181
|
+
name
|
182
|
+
email
|
183
|
+
}
|
184
|
+
contents @include(if: $includeBundledContent) {
|
185
|
+
id
|
186
|
+
content {
|
187
|
+
...ContentFragment
|
188
|
+
...PostFragment
|
189
|
+
}
|
190
|
+
}
|
191
|
+
}
|
192
|
+
|
193
|
+
fragment TaxonomySummaryFragment on Taxonomy {
|
194
|
+
id
|
195
|
+
internalId
|
196
|
+
name
|
197
|
+
type
|
198
|
+
parentId
|
199
|
+
seoMetadata @include(if: $includeContentSeoMetadata) {
|
200
|
+
key
|
201
|
+
value
|
202
|
+
}
|
203
|
+
properties {
|
204
|
+
key
|
205
|
+
value
|
37
206
|
}
|
38
207
|
}`;
|
39
208
|
|
40
209
|
export const bottom = {
|
210
|
+
filter: {
|
211
|
+
type: {
|
212
|
+
value: "author",
|
213
|
+
},
|
214
|
+
},
|
215
|
+
first: 9999,
|
216
|
+
includeTaxonomySeoMetadata: false,
|
217
|
+
includeContents: false,
|
218
|
+
includeBundledContent: false,
|
219
|
+
includeResources: false,
|
220
|
+
includeBlocks: false,
|
221
|
+
includeHtml: false,
|
222
|
+
includeContentSeoMetadata: false,
|
41
223
|
appInfo: {
|
42
224
|
appId: "",
|
43
225
|
appVersion: "1.0-SNAPSHOT",
|
@@ -47,20 +229,13 @@ export const bottom = {
|
|
47
229
|
deviceId: "editor-preview",
|
48
230
|
deviceModel: "web",
|
49
231
|
locale: "de_DE",
|
232
|
+
smallestScreenWidthDp: 0,
|
50
233
|
deviceOs: "web",
|
51
234
|
platform: "WEB",
|
52
235
|
},
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
direction: "DESC",
|
57
|
-
},
|
58
|
-
},
|
59
|
-
],
|
60
|
-
first: 99999,
|
61
|
-
includeBlocks: false,
|
62
|
-
includeHtml: false,
|
63
|
-
includeResources: false,
|
64
|
-
includeBundledContent: false,
|
65
|
-
authorization: {},
|
236
|
+
authorization: {
|
237
|
+
subscriptionCodes: [],
|
238
|
+
},
|
66
239
|
};
|
240
|
+
|
241
|
+
export const operationName = "CatalogTaxonomiesQuery";
|
@@ -15,13 +15,18 @@ export const handleAuthors = async ({ appId, apiUrl, req }) => {
|
|
15
15
|
"Content-Type": "application/json",
|
16
16
|
},
|
17
17
|
body: JSON.stringify({
|
18
|
-
operationName:
|
18
|
+
operationName: GraphQlQueryAuthors.operationName,
|
19
19
|
query: GraphQlQueryAuthors.top,
|
20
20
|
variables: realBottom,
|
21
21
|
}),
|
22
22
|
});
|
23
23
|
const result = await response.json();
|
24
24
|
// @ts-ignore
|
25
|
+
if (result.errors) {
|
26
|
+
// @ts-ignore
|
27
|
+
throw new Error(result.errors[0].message);
|
28
|
+
}
|
29
|
+
// @ts-ignore
|
25
30
|
const realData = result.data.catalog.taxonomiesConnection.edges
|
26
31
|
.map((edge) => edge.node)
|
27
32
|
.map((node) => {
|