@wix/blog 1.0.118 → 1.0.119
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/build/cjs/src/blog-v3-category.types.d.ts +60 -32
- package/build/cjs/src/blog-v3-category.types.js.map +1 -1
- package/build/cjs/src/blog-v3-category.universal.d.ts +51 -34
- package/build/cjs/src/blog-v3-category.universal.js.map +1 -1
- package/build/cjs/src/blog-v3-post.types.d.ts +97 -29
- package/build/cjs/src/blog-v3-post.types.js.map +1 -1
- package/build/cjs/src/blog-v3-post.universal.d.ts +59 -10
- package/build/cjs/src/blog-v3-post.universal.js.map +1 -1
- package/build/cjs/src/blog-v3-tag.http.d.ts +1 -1
- package/build/cjs/src/blog-v3-tag.http.js +1 -1
- package/build/cjs/src/blog-v3-tag.http.js.map +1 -1
- package/build/cjs/src/blog-v3-tag.types.d.ts +57 -25
- package/build/cjs/src/blog-v3-tag.types.js.map +1 -1
- package/build/cjs/src/blog-v3-tag.universal.d.ts +70 -30
- package/build/cjs/src/blog-v3-tag.universal.js +1 -1
- package/build/cjs/src/blog-v3-tag.universal.js.map +1 -1
- package/build/es/src/blog-v3-category.types.d.ts +60 -32
- package/build/es/src/blog-v3-category.types.js.map +1 -1
- package/build/es/src/blog-v3-category.universal.d.ts +51 -34
- package/build/es/src/blog-v3-category.universal.js.map +1 -1
- package/build/es/src/blog-v3-post.types.d.ts +97 -29
- package/build/es/src/blog-v3-post.types.js.map +1 -1
- package/build/es/src/blog-v3-post.universal.d.ts +59 -10
- package/build/es/src/blog-v3-post.universal.js.map +1 -1
- package/build/es/src/blog-v3-tag.http.d.ts +1 -1
- package/build/es/src/blog-v3-tag.http.js +1 -1
- package/build/es/src/blog-v3-tag.http.js.map +1 -1
- package/build/es/src/blog-v3-tag.types.d.ts +57 -25
- package/build/es/src/blog-v3-tag.types.js.map +1 -1
- package/build/es/src/blog-v3-tag.universal.d.ts +70 -30
- package/build/es/src/blog-v3-tag.universal.js +1 -1
- package/build/es/src/blog-v3-tag.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -20,7 +20,12 @@ export interface Category {
|
|
|
20
20
|
description?: string | null;
|
|
21
21
|
/** Category title. */
|
|
22
22
|
title?: string;
|
|
23
|
-
/**
|
|
23
|
+
/**
|
|
24
|
+
* __Deprecated.__ Use `coverImage` instead.
|
|
25
|
+
* This property will be removed on June 30, 2023.
|
|
26
|
+
*
|
|
27
|
+
* Category cover image or video.
|
|
28
|
+
*/
|
|
24
29
|
coverMedia?: CoverMedia;
|
|
25
30
|
/**
|
|
26
31
|
* Reserved for internal use.
|
|
@@ -28,19 +33,25 @@ export interface Category {
|
|
|
28
33
|
*/
|
|
29
34
|
oldRank?: number;
|
|
30
35
|
/**
|
|
36
|
+
* __Deprecated.__ Use `displayPosition` instead.
|
|
37
|
+
* This property will be removed on June 30, 2023.
|
|
38
|
+
*
|
|
31
39
|
* Category position in sequence.
|
|
32
|
-
* Reserved for internal use.
|
|
33
40
|
*/
|
|
34
41
|
rank?: number | null;
|
|
35
42
|
/**
|
|
36
|
-
* Category position in sequence. Categories with lower display position are displayed first. A position of `-1`
|
|
43
|
+
* Category position in sequence. Categories with a lower display position are displayed first. A position of `-1` appears at the end of the sequence.
|
|
37
44
|
*
|
|
38
45
|
* Default: `-1`
|
|
39
46
|
*/
|
|
40
47
|
displayPosition?: number | null;
|
|
41
48
|
/** ID of the category's translations. All translations of a single category will share the same `translationId`. */
|
|
42
49
|
translationId?: string | null;
|
|
43
|
-
/**
|
|
50
|
+
/**
|
|
51
|
+
* Category language.
|
|
52
|
+
*
|
|
53
|
+
* Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.
|
|
54
|
+
*/
|
|
44
55
|
language?: string;
|
|
45
56
|
/** Category slug. For example, 'category-slug'. */
|
|
46
57
|
slug?: string;
|
|
@@ -158,9 +169,9 @@ export interface CreateCategoryRequest {
|
|
|
158
169
|
/** Category info. */
|
|
159
170
|
category: Category;
|
|
160
171
|
/**
|
|
161
|
-
* List of category fields to be included if entities are present
|
|
162
|
-
* Base fieldset
|
|
163
|
-
*
|
|
172
|
+
* List of category fields to be included in the response if the entities are present.
|
|
173
|
+
* Base default fieldset returns all core category properties (all properties that are not a supported fieldset value).
|
|
174
|
+
* For example, when `URL` fieldset is selected, returned category will include the set of base properties and the category's preview url.
|
|
164
175
|
*/
|
|
165
176
|
fieldsets?: Field[];
|
|
166
177
|
}
|
|
@@ -186,9 +197,9 @@ export interface BulkCreateCategoriesRequest {
|
|
|
186
197
|
/** Whether to return the full created category entities in the response. */
|
|
187
198
|
returnFullEntity?: boolean;
|
|
188
199
|
/**
|
|
189
|
-
* List of category fields to be included if entities are present
|
|
190
|
-
* Base fieldset
|
|
191
|
-
*
|
|
200
|
+
* List of category fields to be included in the response if the entities are present.
|
|
201
|
+
* Base default fieldset returns all core category properties (all properties that are not a supported fieldset value).
|
|
202
|
+
* For example, when `URL` fieldset is selected, returned category will include the set of base properties and the category's preview url.
|
|
192
203
|
*/
|
|
193
204
|
fieldsets?: Field[];
|
|
194
205
|
}
|
|
@@ -233,9 +244,9 @@ export interface UpdateCategoryRequest {
|
|
|
233
244
|
/** Field mask of fields to update. */
|
|
234
245
|
fieldMask?: string[];
|
|
235
246
|
/**
|
|
236
|
-
* List of category fields to be included if entities are present
|
|
237
|
-
* Base fieldset
|
|
238
|
-
*
|
|
247
|
+
* List of category fields to be included in the response if the entities are present.
|
|
248
|
+
* Base default fieldset returns all core category properties (all properties that are not a supported fieldset value).
|
|
249
|
+
* For example, when `URL` fieldset is selected, returned category will include the set of base properties and the category's preview url.
|
|
239
250
|
*/
|
|
240
251
|
fieldsets?: Field[];
|
|
241
252
|
}
|
|
@@ -247,9 +258,9 @@ export interface GetCategoryRequest {
|
|
|
247
258
|
/** Category ID. */
|
|
248
259
|
categoryId: string;
|
|
249
260
|
/**
|
|
250
|
-
* List of category fields to be included if entities are present
|
|
251
|
-
* Base fieldset
|
|
252
|
-
*
|
|
261
|
+
* List of category fields to be included in the response if the entities are present.
|
|
262
|
+
* Base default fieldset returns all core category properties (all properties that are not a supported fieldset value).
|
|
263
|
+
* For example, when `URL` fieldset is selected, returned category will include the set of base properties and the category's preview url.
|
|
253
264
|
*/
|
|
254
265
|
fieldsets?: Field[];
|
|
255
266
|
}
|
|
@@ -261,9 +272,9 @@ export interface GetCategoryBySlugRequest {
|
|
|
261
272
|
/** Slug of the category to retrieve. */
|
|
262
273
|
slug: string;
|
|
263
274
|
/**
|
|
264
|
-
* List of category fields to be included if entities are present
|
|
265
|
-
* Base fieldset
|
|
266
|
-
*
|
|
275
|
+
* List of category fields to be included in the response if the entities are present.
|
|
276
|
+
* Base default fieldset returns all core category properties (all properties that are not a supported fieldset value).
|
|
277
|
+
* For example, when `URL` fieldset is selected, returned category will include the set of base properties and the category's preview url.
|
|
267
278
|
*/
|
|
268
279
|
fieldsets?: Field[];
|
|
269
280
|
}
|
|
@@ -275,9 +286,9 @@ export interface ListCategoriesRequest {
|
|
|
275
286
|
/** Pagination options. */
|
|
276
287
|
paging?: BlogPaging;
|
|
277
288
|
/**
|
|
278
|
-
* List of category fields to be included if entities are present
|
|
279
|
-
* Base fieldset
|
|
280
|
-
*
|
|
289
|
+
* List of category fields to be included in the response if the entities are present.
|
|
290
|
+
* Base default fieldset returns all core category properties (all properties that are not a supported fieldset value).
|
|
291
|
+
* For example, when `URL` fieldset is selected, returned category will include the set of base properties and the category's preview url.
|
|
281
292
|
*/
|
|
282
293
|
fieldsets?: Field[];
|
|
283
294
|
}
|
|
@@ -311,23 +322,35 @@ export interface MetaData {
|
|
|
311
322
|
cursor?: string | null;
|
|
312
323
|
}
|
|
313
324
|
export interface QueryCategoriesRequest {
|
|
314
|
-
/** Pagination options. */
|
|
315
|
-
paging?: BlogPaging;
|
|
316
325
|
/**
|
|
317
|
-
*
|
|
318
|
-
*
|
|
326
|
+
* __Deprecated.__ Use `query` instead.
|
|
327
|
+
* This parameter will be removed on June 30, 2023.
|
|
328
|
+
*
|
|
329
|
+
* Pagination options.
|
|
319
330
|
*/
|
|
331
|
+
paging?: BlogPaging;
|
|
332
|
+
/** For a detailed list of supported filters, see [Field Support for Filtering and Sorting](https://dev.wix.com/api/rest/wix-blog/blog/filter-and-sort). */
|
|
320
333
|
filter?: Record<string, any> | null;
|
|
321
|
-
/**
|
|
334
|
+
/**
|
|
335
|
+
* __Deprecated.__ Use `query` instead.
|
|
336
|
+
* This parameter will be removed on June 3, 2023.
|
|
337
|
+
*
|
|
338
|
+
* Sorting options. For a list of sortable fields, see [Field Support for Filtering and Sorting](https://dev.wix.com/api/rest/wix-blog/blog/filter-and-sort).
|
|
339
|
+
*/
|
|
322
340
|
sort?: Sorting[];
|
|
323
|
-
/**
|
|
341
|
+
/**
|
|
342
|
+
* __Deprecated.__ Use `fieldsets` instead.
|
|
343
|
+
* This parameter will be removed on June 30, 2023.
|
|
344
|
+
*
|
|
345
|
+
* List of category fields to be included in the response.
|
|
346
|
+
*/
|
|
324
347
|
fieldsToInclude?: Field[];
|
|
325
348
|
/** Query options. */
|
|
326
349
|
query?: PlatformQuery;
|
|
327
350
|
/**
|
|
328
|
-
* List of category fields to be included if entities are present
|
|
329
|
-
* Base fieldset
|
|
330
|
-
*
|
|
351
|
+
* List of category fields to be included in the response if the entities are present.
|
|
352
|
+
* Base default fieldset returns all core category properties (all properties that are not a supported fieldset value).
|
|
353
|
+
* For example, when `URL` fieldset is selected, returned category will include the set of base properties and the category's preview url.
|
|
331
354
|
*/
|
|
332
355
|
fieldsets?: Field[];
|
|
333
356
|
}
|
|
@@ -389,7 +412,12 @@ export interface CursorPaging {
|
|
|
389
412
|
export interface QueryCategoriesResponse {
|
|
390
413
|
/** List of categories. */
|
|
391
414
|
categories?: Category[];
|
|
392
|
-
/**
|
|
415
|
+
/**
|
|
416
|
+
* __Deprecated.__ Use `pagingMetadata` instead.
|
|
417
|
+
* This property will be removed on June 30, 2023.
|
|
418
|
+
*
|
|
419
|
+
* Details on the paged set of results returned.
|
|
420
|
+
*/
|
|
393
421
|
metaData?: MetaData;
|
|
394
422
|
/** Details on the paged set of results returned. */
|
|
395
423
|
pagingMetadata?: PagingMetadataV2;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blog-v3-category.types.js","sourceRoot":"","sources":["../../../src/blog-v3-category.types.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"blog-v3-category.types.js","sourceRoot":"","sources":["../../../src/blog-v3-category.types.ts"],"names":[],"mappings":";;;AA2LA,IAAY,KAWX;AAXD,WAAY,KAAK;IACf,4BAAmB,CAAA;IACnB,6BAA6B;IAC7B,oBAAW,CAAA;IACX;;;OAGG;IACH,oCAA2B,CAAA;IAC3B,yBAAyB;IACzB,oBAAW,CAAA;AACb,CAAC,EAXW,KAAK,GAAL,aAAK,KAAL,aAAK,QAWhB;AAkMD,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAGpB"}
|
|
@@ -122,9 +122,9 @@ export interface CreateCategoryRequest {
|
|
|
122
122
|
/** Category info. */
|
|
123
123
|
category: Category;
|
|
124
124
|
/**
|
|
125
|
-
* List of category fields to be included if entities are present
|
|
126
|
-
* Base fieldset
|
|
127
|
-
*
|
|
125
|
+
* List of category fields to be included in the response if the entities are present.
|
|
126
|
+
* Base default fieldset returns all core category properties (all properties that are not a supported fieldset value).
|
|
127
|
+
* For example, when `URL` fieldset is selected, returned category will include the set of base properties and the category's preview url.
|
|
128
128
|
*/
|
|
129
129
|
fieldsets?: Field[];
|
|
130
130
|
}
|
|
@@ -150,9 +150,9 @@ export interface BulkCreateCategoriesRequest {
|
|
|
150
150
|
/** Whether to return the full created category entities in the response. */
|
|
151
151
|
returnFullEntity?: boolean;
|
|
152
152
|
/**
|
|
153
|
-
* List of category fields to be included if entities are present
|
|
154
|
-
* Base fieldset
|
|
155
|
-
*
|
|
153
|
+
* List of category fields to be included in the response if the entities are present.
|
|
154
|
+
* Base default fieldset returns all core category properties (all properties that are not a supported fieldset value).
|
|
155
|
+
* For example, when `URL` fieldset is selected, returned category will include the set of base properties and the category's preview url.
|
|
156
156
|
*/
|
|
157
157
|
fieldsets?: Field[];
|
|
158
158
|
}
|
|
@@ -197,9 +197,9 @@ export interface UpdateCategoryRequest {
|
|
|
197
197
|
/** Field mask of fields to update. */
|
|
198
198
|
fieldMask?: string[];
|
|
199
199
|
/**
|
|
200
|
-
* List of category fields to be included if entities are present
|
|
201
|
-
* Base fieldset
|
|
202
|
-
*
|
|
200
|
+
* List of category fields to be included in the response if the entities are present.
|
|
201
|
+
* Base default fieldset returns all core category properties (all properties that are not a supported fieldset value).
|
|
202
|
+
* For example, when `URL` fieldset is selected, returned category will include the set of base properties and the category's preview url.
|
|
203
203
|
*/
|
|
204
204
|
fieldsets?: Field[];
|
|
205
205
|
}
|
|
@@ -211,9 +211,9 @@ export interface GetCategoryRequest {
|
|
|
211
211
|
/** Category ID. */
|
|
212
212
|
categoryId: string;
|
|
213
213
|
/**
|
|
214
|
-
* List of category fields to be included if entities are present
|
|
215
|
-
* Base fieldset
|
|
216
|
-
*
|
|
214
|
+
* List of category fields to be included in the response if the entities are present.
|
|
215
|
+
* Base default fieldset returns all core category properties (all properties that are not a supported fieldset value).
|
|
216
|
+
* For example, when `URL` fieldset is selected, returned category will include the set of base properties and the category's preview url.
|
|
217
217
|
*/
|
|
218
218
|
fieldsets?: Field[];
|
|
219
219
|
}
|
|
@@ -225,9 +225,9 @@ export interface GetCategoryBySlugRequest {
|
|
|
225
225
|
/** Slug of the category to retrieve. */
|
|
226
226
|
slug: string;
|
|
227
227
|
/**
|
|
228
|
-
* List of category fields to be included if entities are present
|
|
229
|
-
* Base fieldset
|
|
230
|
-
*
|
|
228
|
+
* List of category fields to be included in the response if the entities are present.
|
|
229
|
+
* Base default fieldset returns all core category properties (all properties that are not a supported fieldset value).
|
|
230
|
+
* For example, when `URL` fieldset is selected, returned category will include the set of base properties and the category's preview url.
|
|
231
231
|
*/
|
|
232
232
|
fieldsets?: Field[];
|
|
233
233
|
}
|
|
@@ -239,9 +239,9 @@ export interface ListCategoriesRequest {
|
|
|
239
239
|
/** Pagination options. */
|
|
240
240
|
paging?: BlogPaging;
|
|
241
241
|
/**
|
|
242
|
-
* List of category fields to be included if entities are present
|
|
243
|
-
* Base fieldset
|
|
244
|
-
*
|
|
242
|
+
* List of category fields to be included in the response if the entities are present.
|
|
243
|
+
* Base default fieldset returns all core category properties (all properties that are not a supported fieldset value).
|
|
244
|
+
* For example, when `URL` fieldset is selected, returned category will include the set of base properties and the category's preview url.
|
|
245
245
|
*/
|
|
246
246
|
fieldsets?: Field[];
|
|
247
247
|
}
|
|
@@ -276,23 +276,35 @@ export interface MetaData {
|
|
|
276
276
|
cursor?: string | null;
|
|
277
277
|
}
|
|
278
278
|
export interface QueryCategoriesRequest {
|
|
279
|
-
/** Pagination options. */
|
|
280
|
-
paging?: BlogPaging;
|
|
281
279
|
/**
|
|
282
|
-
*
|
|
283
|
-
*
|
|
280
|
+
* __Deprecated.__ Use `query` instead.
|
|
281
|
+
* This parameter will be removed on June 30, 2023.
|
|
282
|
+
*
|
|
283
|
+
* Pagination options.
|
|
284
284
|
*/
|
|
285
|
+
paging?: BlogPaging;
|
|
286
|
+
/** For a detailed list of supported filters, see [Field Support for Filtering and Sorting](https://dev.wix.com/api/rest/wix-blog/blog/filter-and-sort). */
|
|
285
287
|
filter?: Record<string, any> | null;
|
|
286
|
-
/**
|
|
288
|
+
/**
|
|
289
|
+
* __Deprecated.__ Use `query` instead.
|
|
290
|
+
* This parameter will be removed on June 3, 2023.
|
|
291
|
+
*
|
|
292
|
+
* Sorting options. For a list of sortable fields, see [Field Support for Filtering and Sorting](https://dev.wix.com/api/rest/wix-blog/blog/filter-and-sort).
|
|
293
|
+
*/
|
|
287
294
|
sort?: Sorting[];
|
|
288
|
-
/**
|
|
295
|
+
/**
|
|
296
|
+
* __Deprecated.__ Use `fieldsets` instead.
|
|
297
|
+
* This parameter will be removed on June 30, 2023.
|
|
298
|
+
*
|
|
299
|
+
* List of category fields to be included in the response.
|
|
300
|
+
*/
|
|
289
301
|
fieldsToInclude?: Field[];
|
|
290
302
|
/** Query options. */
|
|
291
303
|
query?: PlatformQuery;
|
|
292
304
|
/**
|
|
293
|
-
* List of category fields to be included if entities are present
|
|
294
|
-
* Base fieldset
|
|
295
|
-
*
|
|
305
|
+
* List of category fields to be included in the response if the entities are present.
|
|
306
|
+
* Base default fieldset returns all core category properties (all properties that are not a supported fieldset value).
|
|
307
|
+
* For example, when `URL` fieldset is selected, returned category will include the set of base properties and the category's preview url.
|
|
296
308
|
*/
|
|
297
309
|
fieldsets?: Field[];
|
|
298
310
|
}
|
|
@@ -354,7 +366,12 @@ export interface CursorPaging {
|
|
|
354
366
|
export interface QueryCategoriesResponse {
|
|
355
367
|
/** List of categories. */
|
|
356
368
|
categories?: Category[];
|
|
357
|
-
/**
|
|
369
|
+
/**
|
|
370
|
+
* __Deprecated.__ Use `pagingMetadata` instead.
|
|
371
|
+
* This property will be removed on June 30, 2023.
|
|
372
|
+
*
|
|
373
|
+
* Details on the paged set of results returned.
|
|
374
|
+
*/
|
|
358
375
|
metaData?: MetaData;
|
|
359
376
|
/** Details on the paged set of results returned. */
|
|
360
377
|
pagingMetadata?: PagingMetadataV2;
|
|
@@ -393,9 +410,9 @@ export interface DeleteCategoryResponse {
|
|
|
393
410
|
export declare function createCategory(category: Category, options?: CreateCategoryOptions): Promise<CreateCategoryResponse>;
|
|
394
411
|
export interface CreateCategoryOptions {
|
|
395
412
|
/**
|
|
396
|
-
* List of category fields to be included if entities are present
|
|
397
|
-
* Base fieldset
|
|
398
|
-
*
|
|
413
|
+
* List of category fields to be included in the response if the entities are present.
|
|
414
|
+
* Base default fieldset returns all core category properties (all properties that are not a supported fieldset value).
|
|
415
|
+
* For example, when `URL` fieldset is selected, returned category will include the set of base properties and the category's preview url.
|
|
399
416
|
*/
|
|
400
417
|
fieldsets?: Field[];
|
|
401
418
|
}
|
|
@@ -474,9 +491,9 @@ export interface UpdateCategoryOptions {
|
|
|
474
491
|
/** Field mask of fields to update. */
|
|
475
492
|
fieldMask?: string[];
|
|
476
493
|
/**
|
|
477
|
-
* List of category fields to be included if entities are present
|
|
478
|
-
* Base fieldset
|
|
479
|
-
*
|
|
494
|
+
* List of category fields to be included in the response if the entities are present.
|
|
495
|
+
* Base default fieldset returns all core category properties (all properties that are not a supported fieldset value).
|
|
496
|
+
* For example, when `URL` fieldset is selected, returned category will include the set of base properties and the category's preview url.
|
|
480
497
|
*/
|
|
481
498
|
fieldsets?: Field[];
|
|
482
499
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blog-v3-category.universal.js","sourceRoot":"","sources":["../../../src/blog-v3-category.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAIiC;AAEjC,qFAAuE;AACvE,aAAa;AACb,4FAA6E;AAE7E,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAAK,CAAC,GAAG,IAAW;IAC3B,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,SAAS,CAAC,GAAQ;IACzB,OAAO,GAAG,CAAC;AACb,CAAC;AAEY,QAAA,OAAO,GAAG;IACrB,cAAc,EAAE;QACd,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,IAAI,CAAC;QAC5B,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,KAAK,CAAC;KAC/B;CACF,CAAC;AACF,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,eAAe,GAAG,GAAG,CAAC;AAqI5B,IAAY,KAWX;AAXD,WAAY,KAAK;IACf,4BAAmB,CAAA;IACnB,6BAA6B;IAC7B,oBAAW,CAAA;IACX;;;OAGG;IACH,oCAA2B,CAAA;IAC3B,yBAAyB;IACzB,oBAAW,CAAA;AACb,CAAC,EAXW,KAAK,GAAL,aAAK,KAAL,aAAK,QAWhB;
|
|
1
|
+
{"version":3,"file":"blog-v3-category.universal.js","sourceRoot":"","sources":["../../../src/blog-v3-category.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAIiC;AAEjC,qFAAuE;AACvE,aAAa;AACb,4FAA6E;AAE7E,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAAK,CAAC,GAAG,IAAW;IAC3B,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,SAAS,CAAC,GAAQ;IACzB,OAAO,GAAG,CAAC;AACb,CAAC;AAEY,QAAA,OAAO,GAAG;IACrB,cAAc,EAAE;QACd,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,IAAI,CAAC;QAC5B,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,KAAK,CAAC;KAC/B;CACF,CAAC;AACF,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,eAAe,GAAG,GAAG,CAAC;AAqI5B,IAAY,KAWX;AAXD,WAAY,KAAK;IACf,4BAAmB,CAAA;IACnB,6BAA6B;IAC7B,oBAAW,CAAA;IACX;;;OAGG;IACH,oCAA2B,CAAA;IAC3B,yBAAyB;IACzB,oBAAW,CAAA;AACb,CAAC,EAXW,KAAK,GAAL,aAAK,KAAL,aAAK,QAWhB;AAmMD,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAGpB;AA4FD,MAAM,SAAS,GAAG;IAChB,GAAG,EAAE,oBAAoB;IACzB,UAAU,EAAE,kBAAkB;IAC9B,UAAU,EAAE,aAAa;CAC1B,CA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kB,EAAE;gBAClB,KAAK,EAAE,EAAE;gBACT,cAAc,EAAE,aAAa;aAC9B;YACD,oBAAoB,EAAE,sBAAsB;SAC7C,CAAC,CAAC;QAEH,MAAM,OAAO,GAAG,mBAAmB,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC;QAElD,MAAM,OAAO,GAAG,2BAA2B,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;QAEpE,KAAK,CAAC,0CAA0C,SAAS,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QAEtE,IAAI;YACF,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;YAEnD,OAAO,QAAQ,CAAC,IAAI,CAAQ,CAAC;SAC9B;QAAC,OAAO,GAAQ,EAAE;YACjB,MAAM,gBAAgB,GAAG,qBAAc,CAAC,GAAG,EAAE,qBAAqB,EAAE;gBAClE,YAAY;aACb,CAAC,CAAC;YAEH,MAAM,gBAAgB,CAAC;SACxB;IACH,CAAC;CAAA;AA5CD,wCA4CC"}
|
|
@@ -35,7 +35,12 @@ export interface Post {
|
|
|
35
35
|
pinned?: boolean;
|
|
36
36
|
/** [Category IDs](https://www.wix.com/velo/reference/wix-blog-backend/category) of the post. */
|
|
37
37
|
categoryIds?: string[];
|
|
38
|
-
/**
|
|
38
|
+
/**
|
|
39
|
+
* __Deprecated.__ Use `media` instead.
|
|
40
|
+
* This property will be removed on June 30, 2023.
|
|
41
|
+
*
|
|
42
|
+
* Post cover media.
|
|
43
|
+
*/
|
|
39
44
|
coverMedia?: CoverMedia;
|
|
40
45
|
/** Post owner's [member ID](https://www.wix.com/velo/reference/wix-members-backend). */
|
|
41
46
|
memberId?: string;
|
|
@@ -67,9 +72,13 @@ export interface Post {
|
|
|
67
72
|
* @readonly
|
|
68
73
|
*/
|
|
69
74
|
pricingPlanIds?: string[];
|
|
70
|
-
/** ID of the translations of this post. */
|
|
75
|
+
/** ID of the translations of this post. All translations of a single post will share the same `translationId`. */
|
|
71
76
|
translationId?: string | null;
|
|
72
|
-
/**
|
|
77
|
+
/**
|
|
78
|
+
* Language the post is written in.
|
|
79
|
+
*
|
|
80
|
+
* 2-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.
|
|
81
|
+
*/
|
|
73
82
|
language?: string | null;
|
|
74
83
|
/** SEO data. */
|
|
75
84
|
seoData?: SeoSchema;
|
|
@@ -1601,7 +1610,12 @@ export interface Category {
|
|
|
1601
1610
|
description?: string | null;
|
|
1602
1611
|
/** Category title. */
|
|
1603
1612
|
title?: string;
|
|
1604
|
-
/**
|
|
1613
|
+
/**
|
|
1614
|
+
* __Deprecated.__ Use `coverImage` instead.
|
|
1615
|
+
* This property will be removed on June 30, 2023.
|
|
1616
|
+
*
|
|
1617
|
+
* Category cover image or video.
|
|
1618
|
+
*/
|
|
1605
1619
|
coverMedia?: CoverMedia;
|
|
1606
1620
|
/**
|
|
1607
1621
|
* Reserved for internal use.
|
|
@@ -1609,19 +1623,25 @@ export interface Category {
|
|
|
1609
1623
|
*/
|
|
1610
1624
|
oldRank?: number;
|
|
1611
1625
|
/**
|
|
1626
|
+
* __Deprecated.__ Use `displayPosition` instead.
|
|
1627
|
+
* This property will be removed on June 30, 2023.
|
|
1628
|
+
*
|
|
1612
1629
|
* Category position in sequence.
|
|
1613
|
-
* Reserved for internal use.
|
|
1614
1630
|
*/
|
|
1615
1631
|
rank?: number | null;
|
|
1616
1632
|
/**
|
|
1617
|
-
* Category position in sequence. Categories with lower display position are displayed first. A position of `-1`
|
|
1633
|
+
* Category position in sequence. Categories with a lower display position are displayed first. A position of `-1` appears at the end of the sequence.
|
|
1618
1634
|
*
|
|
1619
1635
|
* Default: `-1`
|
|
1620
1636
|
*/
|
|
1621
1637
|
displayPosition?: number | null;
|
|
1622
1638
|
/** ID of the category's translations. All translations of a single category will share the same `translationId`. */
|
|
1623
1639
|
translationId?: string | null;
|
|
1624
|
-
/**
|
|
1640
|
+
/**
|
|
1641
|
+
* Category language.
|
|
1642
|
+
*
|
|
1643
|
+
* Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.
|
|
1644
|
+
*/
|
|
1625
1645
|
language?: string;
|
|
1626
1646
|
/** Category slug. For example, 'category-slug'. */
|
|
1627
1647
|
slug?: string;
|
|
@@ -1974,11 +1994,6 @@ export interface PostOwnerChanged {
|
|
|
1974
1994
|
export interface GetPostRequest {
|
|
1975
1995
|
/** Post ID. */
|
|
1976
1996
|
postId: string;
|
|
1977
|
-
/**
|
|
1978
|
-
* List of post fields to be included if entities are present in the response.
|
|
1979
|
-
* Base fieldset, which is default, will return all core post properties.
|
|
1980
|
-
* Example: When URL fieldset is selected, returned post will have a set of base properties and post url.
|
|
1981
|
-
*/
|
|
1982
1997
|
fieldsets?: PostFieldField[];
|
|
1983
1998
|
}
|
|
1984
1999
|
export declare enum PostFieldField {
|
|
@@ -2016,9 +2031,9 @@ export interface GetPostBySlugRequest {
|
|
|
2016
2031
|
/** Slug of the post to retrieve. */
|
|
2017
2032
|
slug: string;
|
|
2018
2033
|
/**
|
|
2019
|
-
* List of post fields to be included if entities are present
|
|
2020
|
-
* Base fieldset
|
|
2021
|
-
*
|
|
2034
|
+
* List of post fields to be included in the response if the entities are present.
|
|
2035
|
+
* Base default fieldset returns all core post properties (all properties that are not a supported fieldset value).
|
|
2036
|
+
* For example, when `URL` fieldset is selected, returned post will include the set of base properties and the post's preview url.
|
|
2022
2037
|
*/
|
|
2023
2038
|
fieldsets?: PostFieldField[];
|
|
2024
2039
|
}
|
|
@@ -2031,34 +2046,55 @@ export interface ListPostsRequest {
|
|
|
2031
2046
|
featured?: boolean;
|
|
2032
2047
|
/**
|
|
2033
2048
|
* Hashtag filter.
|
|
2049
|
+
*
|
|
2034
2050
|
* Pass an array of hashtags to return posts with any of the provided hashtags (anywhere in the post content).
|
|
2051
|
+
* If omitted, all posts with or without hashtags are returned.
|
|
2035
2052
|
*/
|
|
2036
2053
|
hashtags?: string[];
|
|
2037
2054
|
/**
|
|
2038
2055
|
* Category filter.
|
|
2056
|
+
*
|
|
2039
2057
|
* Pass an array of category IDs to return posts with any of the provided categories.
|
|
2058
|
+
* If omitted, all posts with or without category IDs are returned.
|
|
2040
2059
|
*/
|
|
2041
2060
|
categoryIds?: string[];
|
|
2042
2061
|
/**
|
|
2043
2062
|
* Tag filter.
|
|
2063
|
+
*
|
|
2044
2064
|
* Pass an array of tag IDs to return posts with any of the provided tags.
|
|
2065
|
+
* If omitted, all posts with or without tag IDs are returned.
|
|
2045
2066
|
*/
|
|
2046
2067
|
tagIds?: string[];
|
|
2047
|
-
/**
|
|
2068
|
+
/**
|
|
2069
|
+
* Sort.
|
|
2070
|
+
*
|
|
2071
|
+
* - `FEED`: `firstPublishedDate` in descending order with pinned posts first.
|
|
2072
|
+
* - `VIEW_COUNT`: total amount of views in descending order.
|
|
2073
|
+
* - `LIKE_COUNT`: total amount of likes in descending order.
|
|
2074
|
+
* - `PUBLISHED_DATE_ASC`: `firstPublishedDate` in ascending order.
|
|
2075
|
+
* - `PUBLISHED_DATE_DESC`: `firstPublishedDate` in descending order.
|
|
2076
|
+
* - `TITLE_ASC`: `title` in ascening order.
|
|
2077
|
+
* - `TITLE_DESC`: `title` in descending order.
|
|
2078
|
+
* `RATING` is reserved for internal use.
|
|
2079
|
+
*
|
|
2080
|
+
* Default: `FEED`
|
|
2081
|
+
*/
|
|
2048
2082
|
sort?: GetPostsSort;
|
|
2049
2083
|
/** Pagination options. */
|
|
2050
2084
|
paging?: BlogPaging;
|
|
2051
2085
|
/**
|
|
2052
2086
|
* Language filter.
|
|
2053
|
-
* Pass language to only receive posts that are in that language.
|
|
2087
|
+
* Pass language to only receive posts that are in that specified language.
|
|
2088
|
+
*
|
|
2089
|
+
* 2-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.
|
|
2054
2090
|
*/
|
|
2055
2091
|
language?: string | null;
|
|
2056
2092
|
/** Post owner's member ID. */
|
|
2057
2093
|
memberId?: string | null;
|
|
2058
2094
|
/**
|
|
2059
|
-
* List of post fields to be included if entities are present
|
|
2060
|
-
* Base fieldset
|
|
2061
|
-
*
|
|
2095
|
+
* List of post fields to be included in the response if the entities are present.
|
|
2096
|
+
* Base default fieldset returns all core post properties (all properties that are not a supported fieldset value).
|
|
2097
|
+
* For example, when `URL` fieldset is selected, returned post will include the set of base properties and the post's preview url.
|
|
2062
2098
|
*/
|
|
2063
2099
|
fieldsets?: PostFieldField[];
|
|
2064
2100
|
}
|
|
@@ -2087,23 +2123,41 @@ export interface ListPostsResponse {
|
|
|
2087
2123
|
metaData?: MetaData;
|
|
2088
2124
|
}
|
|
2089
2125
|
export interface QueryPostsRequest {
|
|
2090
|
-
/**
|
|
2126
|
+
/**
|
|
2127
|
+
* __Deprecated.__ Use `query` instead.
|
|
2128
|
+
* This parameter will be removed on June 30, 2023.
|
|
2129
|
+
*
|
|
2130
|
+
* Pagination options.
|
|
2131
|
+
*/
|
|
2091
2132
|
paging?: BlogPaging;
|
|
2092
2133
|
/**
|
|
2134
|
+
* __Deprecated.__ Use `query` instead.
|
|
2135
|
+
* This parameter will be removed on June 30, 2023.
|
|
2136
|
+
*
|
|
2093
2137
|
* Filter object.
|
|
2094
2138
|
* For a detailed list of supported filters, see [Field Support for Filtering and Sorting](https://dev.wix.com/api/rest/wix-blog/blog/filter-and-sort).
|
|
2095
2139
|
*/
|
|
2096
2140
|
filter?: Record<string, any> | null;
|
|
2097
|
-
/**
|
|
2141
|
+
/**
|
|
2142
|
+
* __Deprecated.__ Use `query` instead.
|
|
2143
|
+
* This parameter will be removed on June 30, 2023.
|
|
2144
|
+
*
|
|
2145
|
+
* Sorting options. For a list of sortable fields, see [Field Support for Filtering and Sorting](https://dev.wix.com/api/rest/wix-blog/blog/filter-and-sort).
|
|
2146
|
+
*/
|
|
2098
2147
|
sort?: Sorting[];
|
|
2099
|
-
/**
|
|
2148
|
+
/**
|
|
2149
|
+
* __Deprecated.__ Use `fieldsets` instead.
|
|
2150
|
+
* This parameter will be removed on June 30, 2023.
|
|
2151
|
+
*
|
|
2152
|
+
* List of post fields to be included in the response.
|
|
2153
|
+
*/
|
|
2100
2154
|
fieldsToInclude?: PostFieldField[];
|
|
2101
2155
|
/** Query options. */
|
|
2102
2156
|
query?: PlatformQuery;
|
|
2103
2157
|
/**
|
|
2104
|
-
* List of post fields to be included if entities are present
|
|
2105
|
-
* Base fieldset
|
|
2106
|
-
*
|
|
2158
|
+
* List of post fields to be included in the response if the entities are present.
|
|
2159
|
+
* Base default fieldset returns all core post properties (all properties that are not a supported fieldset value).
|
|
2160
|
+
* For example, when `URL` fieldset is selected, returned post will include the set of base properties and the post's preview url.
|
|
2107
2161
|
*/
|
|
2108
2162
|
fieldsets?: PostFieldField[];
|
|
2109
2163
|
}
|
|
@@ -2165,7 +2219,12 @@ export interface CursorPaging {
|
|
|
2165
2219
|
export interface QueryPostsResponse {
|
|
2166
2220
|
/** List of posts. */
|
|
2167
2221
|
posts?: Post[];
|
|
2168
|
-
/**
|
|
2222
|
+
/**
|
|
2223
|
+
* __Deprecated.__ Use `pagingMetadata` instead.
|
|
2224
|
+
* This property will be removed on June 30, 2023.
|
|
2225
|
+
*
|
|
2226
|
+
* Details on the paged set of results returned.
|
|
2227
|
+
*/
|
|
2169
2228
|
metaData?: MetaData;
|
|
2170
2229
|
/** Details on the paged set of results returned. */
|
|
2171
2230
|
pagingMetadata?: PagingMetadataV2;
|
|
@@ -2295,13 +2354,22 @@ export interface PeriodPublicationsCount {
|
|
|
2295
2354
|
export interface QueryPostCountStatsRequest {
|
|
2296
2355
|
/** Start of time range to return, in ISO 8601 date and time format. */
|
|
2297
2356
|
rangeStart?: Date;
|
|
2298
|
-
/**
|
|
2357
|
+
/**
|
|
2358
|
+
* __Deprecated.__ Use `months` instead.
|
|
2359
|
+
* This property will be removed on June 30, YEAR.
|
|
2360
|
+
*
|
|
2361
|
+
* Non-inclusive end of time range to return, in ISO 8601 date and time format.
|
|
2362
|
+
*/
|
|
2299
2363
|
rangeEnd?: Date;
|
|
2300
2364
|
/** Order of returned results. */
|
|
2301
2365
|
order?: Order;
|
|
2302
2366
|
/** Number of months to include in response. */
|
|
2303
2367
|
months?: number;
|
|
2304
|
-
/**
|
|
2368
|
+
/**
|
|
2369
|
+
* Language filter.
|
|
2370
|
+
*
|
|
2371
|
+
* 2-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.
|
|
2372
|
+
*/
|
|
2305
2373
|
language?: string | null;
|
|
2306
2374
|
/** Time zone of the client. */
|
|
2307
2375
|
timeZone?: string | null;
|