@laioutr/app-hygraph 1.1.8 → 1.2.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/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/server/client/hygraph.d.ts +7 -1
- package/dist/runtime/server/const/passthroughTokens.d.ts +1 -0
- package/dist/runtime/server/const/passthroughTokens.js +1 -0
- package/dist/runtime/server/generated/graphql.d.ts +8062 -0
- package/dist/runtime/server/generated/graphql.js +367 -0
- package/dist/runtime/server/hygraph-utils/mediaMapper.d.ts +2 -1
- package/dist/runtime/server/hygraph-utils/mediaMapper.js +4 -4
- package/dist/runtime/server/media-library/hygraph.js +2 -2
- package/dist/runtime/server/orchestr/blog/blogCollection.resolver.js +15 -11
- package/dist/runtime/server/orchestr/blog/blogCollectionBySlug.query.js +15 -3
- package/dist/runtime/server/orchestr/blog/blogCollectionBySlug.template.js +8 -6
- package/dist/runtime/server/orchestr/blog/blogCollectionPosts.link.js +14 -9
- package/dist/runtime/server/orchestr/blog/blogPost.resolver.js +7 -3
- package/dist/runtime/server/orchestr/blog/blogPostBySlug.query.js +2 -2
- package/dist/runtime/server/queries/blog.d.ts +4 -2
- package/dist/runtime/server/queries/blog.js +29 -4
- package/dist/runtime/server/queries/mediaLibrary.d.ts +1 -1
- package/dist/runtime/server/queries/mediaLibrary.js +1 -1
- package/package.json +5 -1
|
@@ -0,0 +1,367 @@
|
|
|
1
|
+
export var AssetOrderByInput = /* @__PURE__ */ ((AssetOrderByInput2) => {
|
|
2
|
+
AssetOrderByInput2["CreatedAtAsc"] = "createdAt_ASC";
|
|
3
|
+
AssetOrderByInput2["CreatedAtDesc"] = "createdAt_DESC";
|
|
4
|
+
AssetOrderByInput2["FileNameAsc"] = "fileName_ASC";
|
|
5
|
+
AssetOrderByInput2["FileNameDesc"] = "fileName_DESC";
|
|
6
|
+
AssetOrderByInput2["HandleAsc"] = "handle_ASC";
|
|
7
|
+
AssetOrderByInput2["HandleDesc"] = "handle_DESC";
|
|
8
|
+
AssetOrderByInput2["HeightAsc"] = "height_ASC";
|
|
9
|
+
AssetOrderByInput2["HeightDesc"] = "height_DESC";
|
|
10
|
+
AssetOrderByInput2["IdAsc"] = "id_ASC";
|
|
11
|
+
AssetOrderByInput2["IdDesc"] = "id_DESC";
|
|
12
|
+
AssetOrderByInput2["MimeTypeAsc"] = "mimeType_ASC";
|
|
13
|
+
AssetOrderByInput2["MimeTypeDesc"] = "mimeType_DESC";
|
|
14
|
+
AssetOrderByInput2["PublishedAtAsc"] = "publishedAt_ASC";
|
|
15
|
+
AssetOrderByInput2["PublishedAtDesc"] = "publishedAt_DESC";
|
|
16
|
+
AssetOrderByInput2["SizeAsc"] = "size_ASC";
|
|
17
|
+
AssetOrderByInput2["SizeDesc"] = "size_DESC";
|
|
18
|
+
AssetOrderByInput2["UpdatedAtAsc"] = "updatedAt_ASC";
|
|
19
|
+
AssetOrderByInput2["UpdatedAtDesc"] = "updatedAt_DESC";
|
|
20
|
+
AssetOrderByInput2["WidthAsc"] = "width_ASC";
|
|
21
|
+
AssetOrderByInput2["WidthDesc"] = "width_DESC";
|
|
22
|
+
return AssetOrderByInput2;
|
|
23
|
+
})(AssetOrderByInput || {});
|
|
24
|
+
export var AssetUploadStatus = /* @__PURE__ */ ((AssetUploadStatus2) => {
|
|
25
|
+
AssetUploadStatus2["AssetCreatePending"] = "ASSET_CREATE_PENDING";
|
|
26
|
+
AssetUploadStatus2["AssetErrorUpload"] = "ASSET_ERROR_UPLOAD";
|
|
27
|
+
AssetUploadStatus2["AssetUpdatePending"] = "ASSET_UPDATE_PENDING";
|
|
28
|
+
AssetUploadStatus2["AssetUploadComplete"] = "ASSET_UPLOAD_COMPLETE";
|
|
29
|
+
return AssetUploadStatus2;
|
|
30
|
+
})(AssetUploadStatus || {});
|
|
31
|
+
export var BlogCollectionOrderByInput = /* @__PURE__ */ ((BlogCollectionOrderByInput2) => {
|
|
32
|
+
BlogCollectionOrderByInput2["CreatedAtAsc"] = "createdAt_ASC";
|
|
33
|
+
BlogCollectionOrderByInput2["CreatedAtDesc"] = "createdAt_DESC";
|
|
34
|
+
BlogCollectionOrderByInput2["IdAsc"] = "id_ASC";
|
|
35
|
+
BlogCollectionOrderByInput2["IdDesc"] = "id_DESC";
|
|
36
|
+
BlogCollectionOrderByInput2["PublishedAtAsc"] = "publishedAt_ASC";
|
|
37
|
+
BlogCollectionOrderByInput2["PublishedAtDesc"] = "publishedAt_DESC";
|
|
38
|
+
BlogCollectionOrderByInput2["SlugAsc"] = "slug_ASC";
|
|
39
|
+
BlogCollectionOrderByInput2["SlugDesc"] = "slug_DESC";
|
|
40
|
+
BlogCollectionOrderByInput2["TitleAsc"] = "title_ASC";
|
|
41
|
+
BlogCollectionOrderByInput2["TitleDesc"] = "title_DESC";
|
|
42
|
+
BlogCollectionOrderByInput2["UpdatedAtAsc"] = "updatedAt_ASC";
|
|
43
|
+
BlogCollectionOrderByInput2["UpdatedAtDesc"] = "updatedAt_DESC";
|
|
44
|
+
return BlogCollectionOrderByInput2;
|
|
45
|
+
})(BlogCollectionOrderByInput || {});
|
|
46
|
+
export var BlogOrderByInput = /* @__PURE__ */ ((BlogOrderByInput2) => {
|
|
47
|
+
BlogOrderByInput2["CreatedAtAsc"] = "createdAt_ASC";
|
|
48
|
+
BlogOrderByInput2["CreatedAtDesc"] = "createdAt_DESC";
|
|
49
|
+
BlogOrderByInput2["IdAsc"] = "id_ASC";
|
|
50
|
+
BlogOrderByInput2["IdDesc"] = "id_DESC";
|
|
51
|
+
BlogOrderByInput2["PublishedAtAsc"] = "publishedAt_ASC";
|
|
52
|
+
BlogOrderByInput2["PublishedAtDesc"] = "publishedAt_DESC";
|
|
53
|
+
BlogOrderByInput2["SlugAsc"] = "slug_ASC";
|
|
54
|
+
BlogOrderByInput2["SlugDesc"] = "slug_DESC";
|
|
55
|
+
BlogOrderByInput2["TitleAsc"] = "title_ASC";
|
|
56
|
+
BlogOrderByInput2["TitleDesc"] = "title_DESC";
|
|
57
|
+
BlogOrderByInput2["UpdatedAtAsc"] = "updatedAt_ASC";
|
|
58
|
+
BlogOrderByInput2["UpdatedAtDesc"] = "updatedAt_DESC";
|
|
59
|
+
return BlogOrderByInput2;
|
|
60
|
+
})(BlogOrderByInput || {});
|
|
61
|
+
export var DocumentFileTypes = /* @__PURE__ */ ((DocumentFileTypes2) => {
|
|
62
|
+
DocumentFileTypes2["AutoImage"] = "autoImage";
|
|
63
|
+
DocumentFileTypes2["Avif"] = "avif";
|
|
64
|
+
DocumentFileTypes2["Bmp"] = "bmp";
|
|
65
|
+
DocumentFileTypes2["Gif"] = "gif";
|
|
66
|
+
DocumentFileTypes2["Heic"] = "heic";
|
|
67
|
+
DocumentFileTypes2["Jpg"] = "jpg";
|
|
68
|
+
DocumentFileTypes2["Png"] = "png";
|
|
69
|
+
DocumentFileTypes2["Svg"] = "svg";
|
|
70
|
+
DocumentFileTypes2["Tiff"] = "tiff";
|
|
71
|
+
DocumentFileTypes2["Webp"] = "webp";
|
|
72
|
+
return DocumentFileTypes2;
|
|
73
|
+
})(DocumentFileTypes || {});
|
|
74
|
+
export var EntityTypeName = /* @__PURE__ */ ((EntityTypeName2) => {
|
|
75
|
+
EntityTypeName2["Asset"] = "Asset";
|
|
76
|
+
EntityTypeName2["Blog"] = "Blog";
|
|
77
|
+
EntityTypeName2["BlogCollection"] = "BlogCollection";
|
|
78
|
+
EntityTypeName2["Event"] = "Event";
|
|
79
|
+
EntityTypeName2["EventCollection"] = "EventCollection";
|
|
80
|
+
EntityTypeName2["LearningResource"] = "LearningResource";
|
|
81
|
+
EntityTypeName2["LearningResourceCollection"] = "LearningResourceCollection";
|
|
82
|
+
EntityTypeName2["ScheduledOperation"] = "ScheduledOperation";
|
|
83
|
+
EntityTypeName2["ScheduledRelease"] = "ScheduledRelease";
|
|
84
|
+
EntityTypeName2["Topic"] = "Topic";
|
|
85
|
+
EntityTypeName2["User"] = "User";
|
|
86
|
+
return EntityTypeName2;
|
|
87
|
+
})(EntityTypeName || {});
|
|
88
|
+
export var EventCollectionOrderByInput = /* @__PURE__ */ ((EventCollectionOrderByInput2) => {
|
|
89
|
+
EventCollectionOrderByInput2["CreatedAtAsc"] = "createdAt_ASC";
|
|
90
|
+
EventCollectionOrderByInput2["CreatedAtDesc"] = "createdAt_DESC";
|
|
91
|
+
EventCollectionOrderByInput2["IdAsc"] = "id_ASC";
|
|
92
|
+
EventCollectionOrderByInput2["IdDesc"] = "id_DESC";
|
|
93
|
+
EventCollectionOrderByInput2["PublishedAtAsc"] = "publishedAt_ASC";
|
|
94
|
+
EventCollectionOrderByInput2["PublishedAtDesc"] = "publishedAt_DESC";
|
|
95
|
+
EventCollectionOrderByInput2["SlugAsc"] = "slug_ASC";
|
|
96
|
+
EventCollectionOrderByInput2["SlugDesc"] = "slug_DESC";
|
|
97
|
+
EventCollectionOrderByInput2["TitleAsc"] = "title_ASC";
|
|
98
|
+
EventCollectionOrderByInput2["TitleDesc"] = "title_DESC";
|
|
99
|
+
EventCollectionOrderByInput2["UpdatedAtAsc"] = "updatedAt_ASC";
|
|
100
|
+
EventCollectionOrderByInput2["UpdatedAtDesc"] = "updatedAt_DESC";
|
|
101
|
+
return EventCollectionOrderByInput2;
|
|
102
|
+
})(EventCollectionOrderByInput || {});
|
|
103
|
+
export var EventOrderByInput = /* @__PURE__ */ ((EventOrderByInput2) => {
|
|
104
|
+
EventOrderByInput2["ContentAsc"] = "content_ASC";
|
|
105
|
+
EventOrderByInput2["ContentDesc"] = "content_DESC";
|
|
106
|
+
EventOrderByInput2["CreatedAtAsc"] = "createdAt_ASC";
|
|
107
|
+
EventOrderByInput2["CreatedAtDesc"] = "createdAt_DESC";
|
|
108
|
+
EventOrderByInput2["IdAsc"] = "id_ASC";
|
|
109
|
+
EventOrderByInput2["IdDesc"] = "id_DESC";
|
|
110
|
+
EventOrderByInput2["PublishedAtAsc"] = "publishedAt_ASC";
|
|
111
|
+
EventOrderByInput2["PublishedAtDesc"] = "publishedAt_DESC";
|
|
112
|
+
EventOrderByInput2["SlugAsc"] = "slug_ASC";
|
|
113
|
+
EventOrderByInput2["SlugDesc"] = "slug_DESC";
|
|
114
|
+
EventOrderByInput2["TitleAsc"] = "title_ASC";
|
|
115
|
+
EventOrderByInput2["TitleDesc"] = "title_DESC";
|
|
116
|
+
EventOrderByInput2["UpdatedAtAsc"] = "updatedAt_ASC";
|
|
117
|
+
EventOrderByInput2["UpdatedAtDesc"] = "updatedAt_DESC";
|
|
118
|
+
return EventOrderByInput2;
|
|
119
|
+
})(EventOrderByInput || {});
|
|
120
|
+
export var ImageFit = /* @__PURE__ */ ((ImageFit2) => {
|
|
121
|
+
ImageFit2["Clip"] = "clip";
|
|
122
|
+
ImageFit2["Crop"] = "crop";
|
|
123
|
+
ImageFit2["Max"] = "max";
|
|
124
|
+
ImageFit2["Scale"] = "scale";
|
|
125
|
+
return ImageFit2;
|
|
126
|
+
})(ImageFit || {});
|
|
127
|
+
export var LearningResourceCollectionOrderByInput = /* @__PURE__ */ ((LearningResourceCollectionOrderByInput2) => {
|
|
128
|
+
LearningResourceCollectionOrderByInput2["CreatedAtAsc"] = "createdAt_ASC";
|
|
129
|
+
LearningResourceCollectionOrderByInput2["CreatedAtDesc"] = "createdAt_DESC";
|
|
130
|
+
LearningResourceCollectionOrderByInput2["IdAsc"] = "id_ASC";
|
|
131
|
+
LearningResourceCollectionOrderByInput2["IdDesc"] = "id_DESC";
|
|
132
|
+
LearningResourceCollectionOrderByInput2["PublishedAtAsc"] = "publishedAt_ASC";
|
|
133
|
+
LearningResourceCollectionOrderByInput2["PublishedAtDesc"] = "publishedAt_DESC";
|
|
134
|
+
LearningResourceCollectionOrderByInput2["SlugAsc"] = "slug_ASC";
|
|
135
|
+
LearningResourceCollectionOrderByInput2["SlugDesc"] = "slug_DESC";
|
|
136
|
+
LearningResourceCollectionOrderByInput2["TitleAsc"] = "title_ASC";
|
|
137
|
+
LearningResourceCollectionOrderByInput2["TitleDesc"] = "title_DESC";
|
|
138
|
+
LearningResourceCollectionOrderByInput2["UpdatedAtAsc"] = "updatedAt_ASC";
|
|
139
|
+
LearningResourceCollectionOrderByInput2["UpdatedAtDesc"] = "updatedAt_DESC";
|
|
140
|
+
return LearningResourceCollectionOrderByInput2;
|
|
141
|
+
})(LearningResourceCollectionOrderByInput || {});
|
|
142
|
+
export var LearningResourceOrderByInput = /* @__PURE__ */ ((LearningResourceOrderByInput2) => {
|
|
143
|
+
LearningResourceOrderByInput2["ContentAsc"] = "content_ASC";
|
|
144
|
+
LearningResourceOrderByInput2["ContentDesc"] = "content_DESC";
|
|
145
|
+
LearningResourceOrderByInput2["CreatedAtAsc"] = "createdAt_ASC";
|
|
146
|
+
LearningResourceOrderByInput2["CreatedAtDesc"] = "createdAt_DESC";
|
|
147
|
+
LearningResourceOrderByInput2["IdAsc"] = "id_ASC";
|
|
148
|
+
LearningResourceOrderByInput2["IdDesc"] = "id_DESC";
|
|
149
|
+
LearningResourceOrderByInput2["PublishedAtAsc"] = "publishedAt_ASC";
|
|
150
|
+
LearningResourceOrderByInput2["PublishedAtDesc"] = "publishedAt_DESC";
|
|
151
|
+
LearningResourceOrderByInput2["SlugAsc"] = "slug_ASC";
|
|
152
|
+
LearningResourceOrderByInput2["SlugDesc"] = "slug_DESC";
|
|
153
|
+
LearningResourceOrderByInput2["TitleAsc"] = "title_ASC";
|
|
154
|
+
LearningResourceOrderByInput2["TitleDesc"] = "title_DESC";
|
|
155
|
+
LearningResourceOrderByInput2["UpdatedAtAsc"] = "updatedAt_ASC";
|
|
156
|
+
LearningResourceOrderByInput2["UpdatedAtDesc"] = "updatedAt_DESC";
|
|
157
|
+
return LearningResourceOrderByInput2;
|
|
158
|
+
})(LearningResourceOrderByInput || {});
|
|
159
|
+
export var Locale = /* @__PURE__ */ ((Locale2) => {
|
|
160
|
+
Locale2["De"] = "de";
|
|
161
|
+
Locale2["En"] = "en";
|
|
162
|
+
return Locale2;
|
|
163
|
+
})(Locale || {});
|
|
164
|
+
export var PartnerLevel = /* @__PURE__ */ ((PartnerLevel2) => {
|
|
165
|
+
PartnerLevel2["Bronze"] = "bronze";
|
|
166
|
+
PartnerLevel2["Gold"] = "gold";
|
|
167
|
+
PartnerLevel2["Platinum"] = "platinum";
|
|
168
|
+
PartnerLevel2["Silver"] = "silver";
|
|
169
|
+
return PartnerLevel2;
|
|
170
|
+
})(PartnerLevel || {});
|
|
171
|
+
export var ScheduledOperationOrderByInput = /* @__PURE__ */ ((ScheduledOperationOrderByInput2) => {
|
|
172
|
+
ScheduledOperationOrderByInput2["CreatedAtAsc"] = "createdAt_ASC";
|
|
173
|
+
ScheduledOperationOrderByInput2["CreatedAtDesc"] = "createdAt_DESC";
|
|
174
|
+
ScheduledOperationOrderByInput2["DescriptionAsc"] = "description_ASC";
|
|
175
|
+
ScheduledOperationOrderByInput2["DescriptionDesc"] = "description_DESC";
|
|
176
|
+
ScheduledOperationOrderByInput2["ErrorMessageAsc"] = "errorMessage_ASC";
|
|
177
|
+
ScheduledOperationOrderByInput2["ErrorMessageDesc"] = "errorMessage_DESC";
|
|
178
|
+
ScheduledOperationOrderByInput2["IdAsc"] = "id_ASC";
|
|
179
|
+
ScheduledOperationOrderByInput2["IdDesc"] = "id_DESC";
|
|
180
|
+
ScheduledOperationOrderByInput2["PublishedAtAsc"] = "publishedAt_ASC";
|
|
181
|
+
ScheduledOperationOrderByInput2["PublishedAtDesc"] = "publishedAt_DESC";
|
|
182
|
+
ScheduledOperationOrderByInput2["StatusAsc"] = "status_ASC";
|
|
183
|
+
ScheduledOperationOrderByInput2["StatusDesc"] = "status_DESC";
|
|
184
|
+
ScheduledOperationOrderByInput2["UpdatedAtAsc"] = "updatedAt_ASC";
|
|
185
|
+
ScheduledOperationOrderByInput2["UpdatedAtDesc"] = "updatedAt_DESC";
|
|
186
|
+
return ScheduledOperationOrderByInput2;
|
|
187
|
+
})(ScheduledOperationOrderByInput || {});
|
|
188
|
+
export var ScheduledOperationStatus = /* @__PURE__ */ ((ScheduledOperationStatus2) => {
|
|
189
|
+
ScheduledOperationStatus2["Canceled"] = "CANCELED";
|
|
190
|
+
ScheduledOperationStatus2["Completed"] = "COMPLETED";
|
|
191
|
+
ScheduledOperationStatus2["Failed"] = "FAILED";
|
|
192
|
+
ScheduledOperationStatus2["InProgress"] = "IN_PROGRESS";
|
|
193
|
+
ScheduledOperationStatus2["Pending"] = "PENDING";
|
|
194
|
+
return ScheduledOperationStatus2;
|
|
195
|
+
})(ScheduledOperationStatus || {});
|
|
196
|
+
export var ScheduledReleaseOrderByInput = /* @__PURE__ */ ((ScheduledReleaseOrderByInput2) => {
|
|
197
|
+
ScheduledReleaseOrderByInput2["CreatedAtAsc"] = "createdAt_ASC";
|
|
198
|
+
ScheduledReleaseOrderByInput2["CreatedAtDesc"] = "createdAt_DESC";
|
|
199
|
+
ScheduledReleaseOrderByInput2["DescriptionAsc"] = "description_ASC";
|
|
200
|
+
ScheduledReleaseOrderByInput2["DescriptionDesc"] = "description_DESC";
|
|
201
|
+
ScheduledReleaseOrderByInput2["ErrorMessageAsc"] = "errorMessage_ASC";
|
|
202
|
+
ScheduledReleaseOrderByInput2["ErrorMessageDesc"] = "errorMessage_DESC";
|
|
203
|
+
ScheduledReleaseOrderByInput2["IdAsc"] = "id_ASC";
|
|
204
|
+
ScheduledReleaseOrderByInput2["IdDesc"] = "id_DESC";
|
|
205
|
+
ScheduledReleaseOrderByInput2["IsActiveAsc"] = "isActive_ASC";
|
|
206
|
+
ScheduledReleaseOrderByInput2["IsActiveDesc"] = "isActive_DESC";
|
|
207
|
+
ScheduledReleaseOrderByInput2["IsImplicitAsc"] = "isImplicit_ASC";
|
|
208
|
+
ScheduledReleaseOrderByInput2["IsImplicitDesc"] = "isImplicit_DESC";
|
|
209
|
+
ScheduledReleaseOrderByInput2["PublishedAtAsc"] = "publishedAt_ASC";
|
|
210
|
+
ScheduledReleaseOrderByInput2["PublishedAtDesc"] = "publishedAt_DESC";
|
|
211
|
+
ScheduledReleaseOrderByInput2["ReleaseAtAsc"] = "releaseAt_ASC";
|
|
212
|
+
ScheduledReleaseOrderByInput2["ReleaseAtDesc"] = "releaseAt_DESC";
|
|
213
|
+
ScheduledReleaseOrderByInput2["StatusAsc"] = "status_ASC";
|
|
214
|
+
ScheduledReleaseOrderByInput2["StatusDesc"] = "status_DESC";
|
|
215
|
+
ScheduledReleaseOrderByInput2["TitleAsc"] = "title_ASC";
|
|
216
|
+
ScheduledReleaseOrderByInput2["TitleDesc"] = "title_DESC";
|
|
217
|
+
ScheduledReleaseOrderByInput2["UpdatedAtAsc"] = "updatedAt_ASC";
|
|
218
|
+
ScheduledReleaseOrderByInput2["UpdatedAtDesc"] = "updatedAt_DESC";
|
|
219
|
+
return ScheduledReleaseOrderByInput2;
|
|
220
|
+
})(ScheduledReleaseOrderByInput || {});
|
|
221
|
+
export var ScheduledReleaseStatus = /* @__PURE__ */ ((ScheduledReleaseStatus2) => {
|
|
222
|
+
ScheduledReleaseStatus2["Completed"] = "COMPLETED";
|
|
223
|
+
ScheduledReleaseStatus2["Failed"] = "FAILED";
|
|
224
|
+
ScheduledReleaseStatus2["InProgress"] = "IN_PROGRESS";
|
|
225
|
+
ScheduledReleaseStatus2["Pending"] = "PENDING";
|
|
226
|
+
return ScheduledReleaseStatus2;
|
|
227
|
+
})(ScheduledReleaseStatus || {});
|
|
228
|
+
export var Stage = /* @__PURE__ */ ((Stage2) => {
|
|
229
|
+
Stage2["Draft"] = "DRAFT";
|
|
230
|
+
Stage2["Published"] = "PUBLISHED";
|
|
231
|
+
return Stage2;
|
|
232
|
+
})(Stage || {});
|
|
233
|
+
export var SystemDateTimeFieldVariation = /* @__PURE__ */ ((SystemDateTimeFieldVariation2) => {
|
|
234
|
+
SystemDateTimeFieldVariation2["Base"] = "BASE";
|
|
235
|
+
SystemDateTimeFieldVariation2["Combined"] = "COMBINED";
|
|
236
|
+
SystemDateTimeFieldVariation2["Localization"] = "LOCALIZATION";
|
|
237
|
+
return SystemDateTimeFieldVariation2;
|
|
238
|
+
})(SystemDateTimeFieldVariation || {});
|
|
239
|
+
export var TopicOrderByInput = /* @__PURE__ */ ((TopicOrderByInput2) => {
|
|
240
|
+
TopicOrderByInput2["CreatedAtAsc"] = "createdAt_ASC";
|
|
241
|
+
TopicOrderByInput2["CreatedAtDesc"] = "createdAt_DESC";
|
|
242
|
+
TopicOrderByInput2["IdAsc"] = "id_ASC";
|
|
243
|
+
TopicOrderByInput2["IdDesc"] = "id_DESC";
|
|
244
|
+
TopicOrderByInput2["PublishedAtAsc"] = "publishedAt_ASC";
|
|
245
|
+
TopicOrderByInput2["PublishedAtDesc"] = "publishedAt_DESC";
|
|
246
|
+
TopicOrderByInput2["SlugAsc"] = "slug_ASC";
|
|
247
|
+
TopicOrderByInput2["SlugDesc"] = "slug_DESC";
|
|
248
|
+
TopicOrderByInput2["TitleAsc"] = "title_ASC";
|
|
249
|
+
TopicOrderByInput2["TitleDesc"] = "title_DESC";
|
|
250
|
+
TopicOrderByInput2["UpdatedAtAsc"] = "updatedAt_ASC";
|
|
251
|
+
TopicOrderByInput2["UpdatedAtDesc"] = "updatedAt_DESC";
|
|
252
|
+
return TopicOrderByInput2;
|
|
253
|
+
})(TopicOrderByInput || {});
|
|
254
|
+
export var UserKind = /* @__PURE__ */ ((UserKind2) => {
|
|
255
|
+
UserKind2["AppToken"] = "APP_TOKEN";
|
|
256
|
+
UserKind2["Member"] = "MEMBER";
|
|
257
|
+
UserKind2["Pat"] = "PAT";
|
|
258
|
+
UserKind2["Public"] = "PUBLIC";
|
|
259
|
+
UserKind2["Webhook"] = "WEBHOOK";
|
|
260
|
+
return UserKind2;
|
|
261
|
+
})(UserKind || {});
|
|
262
|
+
export var UserOrderByInput = /* @__PURE__ */ ((UserOrderByInput2) => {
|
|
263
|
+
UserOrderByInput2["CreatedAtAsc"] = "createdAt_ASC";
|
|
264
|
+
UserOrderByInput2["CreatedAtDesc"] = "createdAt_DESC";
|
|
265
|
+
UserOrderByInput2["IdAsc"] = "id_ASC";
|
|
266
|
+
UserOrderByInput2["IdDesc"] = "id_DESC";
|
|
267
|
+
UserOrderByInput2["IsActiveAsc"] = "isActive_ASC";
|
|
268
|
+
UserOrderByInput2["IsActiveDesc"] = "isActive_DESC";
|
|
269
|
+
UserOrderByInput2["KindAsc"] = "kind_ASC";
|
|
270
|
+
UserOrderByInput2["KindDesc"] = "kind_DESC";
|
|
271
|
+
UserOrderByInput2["NameAsc"] = "name_ASC";
|
|
272
|
+
UserOrderByInput2["NameDesc"] = "name_DESC";
|
|
273
|
+
UserOrderByInput2["PictureAsc"] = "picture_ASC";
|
|
274
|
+
UserOrderByInput2["PictureDesc"] = "picture_DESC";
|
|
275
|
+
UserOrderByInput2["PublishedAtAsc"] = "publishedAt_ASC";
|
|
276
|
+
UserOrderByInput2["PublishedAtDesc"] = "publishedAt_DESC";
|
|
277
|
+
UserOrderByInput2["UpdatedAtAsc"] = "updatedAt_ASC";
|
|
278
|
+
UserOrderByInput2["UpdatedAtDesc"] = "updatedAt_DESC";
|
|
279
|
+
return UserOrderByInput2;
|
|
280
|
+
})(UserOrderByInput || {});
|
|
281
|
+
export var _FilterKind = /* @__PURE__ */ ((_FilterKind2) => {
|
|
282
|
+
_FilterKind2["And"] = "AND";
|
|
283
|
+
_FilterKind2["Not"] = "NOT";
|
|
284
|
+
_FilterKind2["Or"] = "OR";
|
|
285
|
+
_FilterKind2["Contains"] = "contains";
|
|
286
|
+
_FilterKind2["ContainsAll"] = "contains_all";
|
|
287
|
+
_FilterKind2["ContainsNone"] = "contains_none";
|
|
288
|
+
_FilterKind2["ContainsSome"] = "contains_some";
|
|
289
|
+
_FilterKind2["DescendantsOf"] = "descendants_of";
|
|
290
|
+
_FilterKind2["EndsWith"] = "ends_with";
|
|
291
|
+
_FilterKind2["Eq"] = "eq";
|
|
292
|
+
_FilterKind2["EqNot"] = "eq_not";
|
|
293
|
+
_FilterKind2["Gt"] = "gt";
|
|
294
|
+
_FilterKind2["Gte"] = "gte";
|
|
295
|
+
_FilterKind2["In"] = "in";
|
|
296
|
+
_FilterKind2["JsonPathExists"] = "json_path_exists";
|
|
297
|
+
_FilterKind2["JsonValueRecursive"] = "json_value_recursive";
|
|
298
|
+
_FilterKind2["Lt"] = "lt";
|
|
299
|
+
_FilterKind2["Lte"] = "lte";
|
|
300
|
+
_FilterKind2["NotContains"] = "not_contains";
|
|
301
|
+
_FilterKind2["NotEndsWith"] = "not_ends_with";
|
|
302
|
+
_FilterKind2["NotIn"] = "not_in";
|
|
303
|
+
_FilterKind2["NotStartsWith"] = "not_starts_with";
|
|
304
|
+
_FilterKind2["RelationalEvery"] = "relational_every";
|
|
305
|
+
_FilterKind2["RelationalNone"] = "relational_none";
|
|
306
|
+
_FilterKind2["RelationalSingle"] = "relational_single";
|
|
307
|
+
_FilterKind2["RelationalSome"] = "relational_some";
|
|
308
|
+
_FilterKind2["Search"] = "search";
|
|
309
|
+
_FilterKind2["StartsWith"] = "starts_with";
|
|
310
|
+
_FilterKind2["UnionEmpty"] = "union_empty";
|
|
311
|
+
_FilterKind2["UnionEvery"] = "union_every";
|
|
312
|
+
_FilterKind2["UnionNone"] = "union_none";
|
|
313
|
+
_FilterKind2["UnionSingle"] = "union_single";
|
|
314
|
+
_FilterKind2["UnionSome"] = "union_some";
|
|
315
|
+
return _FilterKind2;
|
|
316
|
+
})(_FilterKind || {});
|
|
317
|
+
export var _MutationInputFieldKind = /* @__PURE__ */ ((_MutationInputFieldKind2) => {
|
|
318
|
+
_MutationInputFieldKind2["Enum"] = "enum";
|
|
319
|
+
_MutationInputFieldKind2["Relation"] = "relation";
|
|
320
|
+
_MutationInputFieldKind2["RichText"] = "richText";
|
|
321
|
+
_MutationInputFieldKind2["RichTextWithEmbeds"] = "richTextWithEmbeds";
|
|
322
|
+
_MutationInputFieldKind2["Scalar"] = "scalar";
|
|
323
|
+
_MutationInputFieldKind2["Union"] = "union";
|
|
324
|
+
_MutationInputFieldKind2["Virtual"] = "virtual";
|
|
325
|
+
return _MutationInputFieldKind2;
|
|
326
|
+
})(_MutationInputFieldKind || {});
|
|
327
|
+
export var _MutationKind = /* @__PURE__ */ ((_MutationKind2) => {
|
|
328
|
+
_MutationKind2["Create"] = "create";
|
|
329
|
+
_MutationKind2["Delete"] = "delete";
|
|
330
|
+
_MutationKind2["DeleteMany"] = "deleteMany";
|
|
331
|
+
_MutationKind2["Publish"] = "publish";
|
|
332
|
+
_MutationKind2["PublishMany"] = "publishMany";
|
|
333
|
+
_MutationKind2["SchedulePublish"] = "schedulePublish";
|
|
334
|
+
_MutationKind2["ScheduleUnpublish"] = "scheduleUnpublish";
|
|
335
|
+
_MutationKind2["Unpublish"] = "unpublish";
|
|
336
|
+
_MutationKind2["UnpublishMany"] = "unpublishMany";
|
|
337
|
+
_MutationKind2["Update"] = "update";
|
|
338
|
+
_MutationKind2["UpdateMany"] = "updateMany";
|
|
339
|
+
_MutationKind2["Upsert"] = "upsert";
|
|
340
|
+
return _MutationKind2;
|
|
341
|
+
})(_MutationKind || {});
|
|
342
|
+
export var _OrderDirection = /* @__PURE__ */ ((_OrderDirection2) => {
|
|
343
|
+
_OrderDirection2["Asc"] = "asc";
|
|
344
|
+
_OrderDirection2["Desc"] = "desc";
|
|
345
|
+
return _OrderDirection2;
|
|
346
|
+
})(_OrderDirection || {});
|
|
347
|
+
export var _RelationInputCardinality = /* @__PURE__ */ ((_RelationInputCardinality2) => {
|
|
348
|
+
_RelationInputCardinality2["Many"] = "many";
|
|
349
|
+
_RelationInputCardinality2["One"] = "one";
|
|
350
|
+
return _RelationInputCardinality2;
|
|
351
|
+
})(_RelationInputCardinality || {});
|
|
352
|
+
export var _RelationInputKind = /* @__PURE__ */ ((_RelationInputKind2) => {
|
|
353
|
+
_RelationInputKind2["Create"] = "create";
|
|
354
|
+
_RelationInputKind2["Update"] = "update";
|
|
355
|
+
return _RelationInputKind2;
|
|
356
|
+
})(_RelationInputKind || {});
|
|
357
|
+
export var _RelationKind = /* @__PURE__ */ ((_RelationKind2) => {
|
|
358
|
+
_RelationKind2["Regular"] = "regular";
|
|
359
|
+
_RelationKind2["Union"] = "union";
|
|
360
|
+
return _RelationKind2;
|
|
361
|
+
})(_RelationKind || {});
|
|
362
|
+
export var _SystemDateTimeFieldVariation = /* @__PURE__ */ ((_SystemDateTimeFieldVariation2) => {
|
|
363
|
+
_SystemDateTimeFieldVariation2["Base"] = "base";
|
|
364
|
+
_SystemDateTimeFieldVariation2["Combined"] = "combined";
|
|
365
|
+
_SystemDateTimeFieldVariation2["Localization"] = "localization";
|
|
366
|
+
return _SystemDateTimeFieldVariation2;
|
|
367
|
+
})(_SystemDateTimeFieldVariation || {});
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { MediaImage } from '@laioutr-core/core-types/common';
|
|
2
|
+
import type { AssetFragment } from '../generated/graphql.js';
|
|
2
3
|
/**
|
|
3
4
|
* Map a Hygraph asset to a Media object.
|
|
4
5
|
*/
|
|
5
|
-
export declare const mapHygraphMedia: (asset:
|
|
6
|
+
export declare const mapHygraphMedia: (asset: AssetFragment) => MediaImage;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
const stripFileExtension = (fileName) => fileName.replace(/\.[^.]+$/, "");
|
|
2
|
-
const filenameToAlt = (fileName) => stripFileExtension(fileName);
|
|
2
|
+
const filenameToAlt = (fileName) => stripFileExtension(fileName).replace(/([a-z])([A-Z])/g, "$1 $2").replace(/[-_]+/g, " ").replace(/^\w/, (c) => c.toUpperCase()).trim();
|
|
3
3
|
export const mapHygraphMedia = (asset) => ({
|
|
4
4
|
type: "image",
|
|
5
5
|
sources: [
|
|
6
6
|
{
|
|
7
|
-
// SVGs are returned as none so
|
|
7
|
+
// SVGs are returned as none so Nuxt Image won't turn them into PNG file links.
|
|
8
8
|
provider: asset.mimeType === "image/svg+xml" ? "none" : "hygraph",
|
|
9
9
|
src: asset.url,
|
|
10
|
-
width: asset.width,
|
|
11
|
-
height: asset.height,
|
|
10
|
+
width: asset.width ?? void 0,
|
|
11
|
+
height: asset.height ?? void 0,
|
|
12
12
|
responsive: "static"
|
|
13
13
|
}
|
|
14
14
|
],
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineMediaLibraryProvider } from "#imports";
|
|
2
2
|
import { hygraphClientFactory } from "../client/hygraph.js";
|
|
3
3
|
import { mapHygraphMedia } from "../hygraph-utils/mediaMapper.js";
|
|
4
|
-
import {
|
|
4
|
+
import { MEDIA_LIBRARY_LIST_QUERY } from "../queries/mediaLibrary.js";
|
|
5
5
|
export default defineMediaLibraryProvider({
|
|
6
6
|
label: "Hygraph",
|
|
7
7
|
iconSrc: "/app-hygraph/logo.svg",
|
|
8
8
|
name: "hygraph",
|
|
9
9
|
list: async ({ limit, offset, search }) => {
|
|
10
10
|
const client = hygraphClientFactory();
|
|
11
|
-
const result = await client.request(
|
|
11
|
+
const result = await client.request(MEDIA_LIBRARY_LIST_QUERY, {
|
|
12
12
|
skip: offset,
|
|
13
13
|
first: limit,
|
|
14
14
|
search
|
|
@@ -1,18 +1,22 @@
|
|
|
1
1
|
import { BlogCollectionBase } from "@laioutr-core/canonical-types/entity/blog-collection";
|
|
2
|
+
import { blogCollectionToken } from "../../const/passthroughTokens.js";
|
|
2
3
|
import { defineHygraph } from "../../middleware/defineHygraph.js";
|
|
3
4
|
export default defineHygraph.componentResolver({
|
|
4
5
|
entityType: "BlogCollection",
|
|
5
6
|
label: "Blog Collection",
|
|
6
7
|
provides: [BlogCollectionBase],
|
|
7
|
-
resolve: async ({
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
8
|
+
resolve: async ({ passthrough, $entity }) => {
|
|
9
|
+
const collection = passthrough.require(blogCollectionToken);
|
|
10
|
+
return {
|
|
11
|
+
entities: [
|
|
12
|
+
$entity({
|
|
13
|
+
id: collection.id,
|
|
14
|
+
base: {
|
|
15
|
+
slug: collection.slug,
|
|
16
|
+
title: collection.title
|
|
17
|
+
}
|
|
18
|
+
})
|
|
19
|
+
]
|
|
20
|
+
};
|
|
21
|
+
}
|
|
18
22
|
});
|
|
@@ -1,8 +1,20 @@
|
|
|
1
1
|
import { BlogCollectionBySlug } from "@laioutr-core/canonical-types/blog";
|
|
2
|
+
import { blogCollectionToken } from "../../const/passthroughTokens.js";
|
|
2
3
|
import { defineHygraph } from "../../middleware/defineHygraph.js";
|
|
4
|
+
import { BLOG_COLLECTION_BY_SLUG_QUERY } from "../../queries/blog.js";
|
|
3
5
|
export default defineHygraph.queryHandler({
|
|
4
6
|
implements: BlogCollectionBySlug,
|
|
5
|
-
run: async () =>
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
run: async ({ context, input, passthrough }) => {
|
|
8
|
+
const result = await context.hygraph.request(BLOG_COLLECTION_BY_SLUG_QUERY, {
|
|
9
|
+
slug: input.slug
|
|
10
|
+
});
|
|
11
|
+
const collection = result.data.blogCollection;
|
|
12
|
+
if (!collection) {
|
|
13
|
+
throw new Error(`Blog collection with slug "${input.slug}" not found`);
|
|
14
|
+
}
|
|
15
|
+
passthrough.set(blogCollectionToken, collection);
|
|
16
|
+
return {
|
|
17
|
+
id: collection.id
|
|
18
|
+
};
|
|
19
|
+
}
|
|
8
20
|
});
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { BlogCollectionBySlug } from "@laioutr-core/canonical-types/blog";
|
|
2
2
|
import { defineHygraph } from "../../middleware/defineHygraph.js";
|
|
3
|
+
import { BLOG_COLLECTIONS_QUERY } from "../../queries/blog.js";
|
|
3
4
|
export default defineHygraph.queryTemplateProvider({
|
|
4
5
|
for: BlogCollectionBySlug,
|
|
5
|
-
run: async () =>
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
run: async ({ context }) => {
|
|
7
|
+
const result = await context.hygraph.request(BLOG_COLLECTIONS_QUERY);
|
|
8
|
+
return result.data.blogCollections.map((collection) => ({
|
|
9
|
+
input: { slug: collection.slug },
|
|
10
|
+
label: collection.title
|
|
11
|
+
}));
|
|
12
|
+
}
|
|
11
13
|
});
|
|
@@ -1,20 +1,25 @@
|
|
|
1
1
|
import { BlogCollectionPostsLink } from "@laioutr-core/canonical-types/blog";
|
|
2
2
|
import { blogPostsToken } from "../../const/passthroughTokens.js";
|
|
3
3
|
import { defineHygraph } from "../../middleware/defineHygraph.js";
|
|
4
|
-
import {
|
|
4
|
+
import { BLOGS_QUERY } from "../../queries/blog.js";
|
|
5
5
|
export default defineHygraph.linkHandler({
|
|
6
6
|
implements: BlogCollectionPostsLink,
|
|
7
7
|
run: async ({ context, entityIds, pagination, passthrough }) => {
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
const results = await Promise.all(
|
|
9
|
+
entityIds.map(
|
|
10
|
+
(id) => context.hygraph.request(BLOGS_QUERY, {
|
|
11
|
+
skip: pagination.offset,
|
|
12
|
+
first: pagination.limit,
|
|
13
|
+
collectionId: id
|
|
14
|
+
})
|
|
15
|
+
)
|
|
16
|
+
);
|
|
17
|
+
const allPosts = results.flatMap((r) => r.data.blogs);
|
|
18
|
+
passthrough.set(blogPostsToken, allPosts);
|
|
14
19
|
return {
|
|
15
|
-
links: entityIds.map((id) => ({
|
|
20
|
+
links: entityIds.map((id, i) => ({
|
|
16
21
|
sourceId: id,
|
|
17
|
-
targetIds: blogs.map((blog) => blog.id)
|
|
22
|
+
targetIds: results.at(i)?.data.blogs.map((blog) => blog.id) ?? []
|
|
18
23
|
}))
|
|
19
24
|
};
|
|
20
25
|
}
|
|
@@ -15,13 +15,17 @@ export default defineHygraph.componentResolver({
|
|
|
15
15
|
base: {
|
|
16
16
|
slug: post.slug,
|
|
17
17
|
title: post.title,
|
|
18
|
-
publishedAt: new Date(post.publishedAt)
|
|
18
|
+
publishedAt: post.publishedAt ? new Date(post.publishedAt) : void 0
|
|
19
19
|
},
|
|
20
20
|
content: {
|
|
21
21
|
content: { html: post.content.html }
|
|
22
22
|
},
|
|
23
|
-
excerpt: {
|
|
24
|
-
|
|
23
|
+
excerpt: () => {
|
|
24
|
+
const content = post.content.html.replace(/<[^>]*>/g, "");
|
|
25
|
+
const excerpt = content.slice(0, 100) + (content.length > 100 ? "\u2026" : "");
|
|
26
|
+
return {
|
|
27
|
+
excerpt: { html: excerpt }
|
|
28
|
+
};
|
|
25
29
|
},
|
|
26
30
|
media: {
|
|
27
31
|
image: post.image ? mapHygraphMedia(post.image) : { type: "image", sources: [{ provider: "none", src: "/placeholders/1x1.svg" }] }
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { BlogPostBySlug, BlogPostBySlugNotFoundError } from "@laioutr-core/canonical-types/blog";
|
|
2
2
|
import { blogPostsToken } from "../../const/passthroughTokens.js";
|
|
3
3
|
import { defineHygraph } from "../../middleware/defineHygraph.js";
|
|
4
|
-
import {
|
|
4
|
+
import { BLOG_POST_BY_SLUG_QUERY } from "../../queries/blog.js";
|
|
5
5
|
export default defineHygraph.queryHandler({
|
|
6
6
|
implements: BlogPostBySlug,
|
|
7
7
|
run: async ({ context, input, passthrough }) => {
|
|
8
|
-
const result = await context.hygraph.request(
|
|
8
|
+
const result = await context.hygraph.request(BLOG_POST_BY_SLUG_QUERY, {
|
|
9
9
|
slug: input.slug
|
|
10
10
|
});
|
|
11
11
|
const post = result.data.blog;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
export declare const
|
|
1
|
+
export declare const BLOGS_QUERY = "\n #graphql\n \n #graphql\n \n #graphql\n fragment Asset on Asset {\n url\n fileName\n mimeType\n width\n height\n handle\n }\n\n fragment Blog on Blog {\n id\n title\n slug\n content {\n html\n }\n image {\n ...Asset\n }\n publishedAt\n }\n\n query Blogs($skip: Int, $first: Int, $collectionId: ID) {\n blogs(skip: $skip, first: $first, orderBy: createdAt_DESC, where: { blogCollection: { id: $collectionId } }) {\n ...Blog\n }\n }\n";
|
|
2
|
+
export declare const BLOG_POST_BY_SLUG_QUERY = "\n #graphql\n \n #graphql\n \n #graphql\n fragment Asset on Asset {\n url\n fileName\n mimeType\n width\n height\n handle\n }\n\n fragment Blog on Blog {\n id\n title\n slug\n content {\n html\n }\n image {\n ...Asset\n }\n publishedAt\n }\n\n query BlogPostBySlug($slug: String!) {\n blog(where: { slug: $slug }) {\n ...Blog\n }\n }\n";
|
|
3
|
+
export declare const BLOG_COLLECTION_BY_SLUG_QUERY = "\n #graphql\n query BlogCollectionBySlug($slug: String!) {\n blogCollection(where: { slug: $slug }) {\n id\n slug\n title\n }\n }\n";
|
|
4
|
+
export declare const BLOG_COLLECTIONS_QUERY = "\n #graphql\n query BlogCollections {\n blogCollections {\n slug\n title\n }\n }\n";
|
|
@@ -18,19 +18,19 @@ const BlogFragment = (
|
|
|
18
18
|
}
|
|
19
19
|
`
|
|
20
20
|
);
|
|
21
|
-
export const
|
|
21
|
+
export const BLOGS_QUERY = (
|
|
22
22
|
/* GraphQL */
|
|
23
23
|
`
|
|
24
24
|
#graphql
|
|
25
25
|
${BlogFragment}
|
|
26
|
-
query Blogs($skip: Int, $first: Int) {
|
|
27
|
-
blogs(skip: $skip, first: $first, orderBy: createdAt_DESC) {
|
|
26
|
+
query Blogs($skip: Int, $first: Int, $collectionId: ID) {
|
|
27
|
+
blogs(skip: $skip, first: $first, orderBy: createdAt_DESC, where: { blogCollection: { id: $collectionId } }) {
|
|
28
28
|
...Blog
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
`
|
|
32
32
|
);
|
|
33
|
-
export const
|
|
33
|
+
export const BLOG_POST_BY_SLUG_QUERY = (
|
|
34
34
|
/* GraphQL */
|
|
35
35
|
`
|
|
36
36
|
#graphql
|
|
@@ -42,3 +42,28 @@ export const BlogPostBySlugQuery = (
|
|
|
42
42
|
}
|
|
43
43
|
`
|
|
44
44
|
);
|
|
45
|
+
export const BLOG_COLLECTION_BY_SLUG_QUERY = (
|
|
46
|
+
/* GraphQL */
|
|
47
|
+
`
|
|
48
|
+
#graphql
|
|
49
|
+
query BlogCollectionBySlug($slug: String!) {
|
|
50
|
+
blogCollection(where: { slug: $slug }) {
|
|
51
|
+
id
|
|
52
|
+
slug
|
|
53
|
+
title
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
`
|
|
57
|
+
);
|
|
58
|
+
export const BLOG_COLLECTIONS_QUERY = (
|
|
59
|
+
/* GraphQL */
|
|
60
|
+
`
|
|
61
|
+
#graphql
|
|
62
|
+
query BlogCollections {
|
|
63
|
+
blogCollections {
|
|
64
|
+
slug
|
|
65
|
+
title
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
`
|
|
69
|
+
);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const MEDIA_LIBRARY_LIST_QUERY = "\n #graphql\n \n #graphql\n fragment Asset on Asset {\n url\n fileName\n mimeType\n width\n height\n handle\n }\n\n query MediaLibraryList($skip: Int, $first: Int, $search: String) {\n assets(skip: $skip, first: $first, orderBy: createdAt_DESC, where: { _search: $search }) {\n ...Asset\n }\n }\n";
|