@wix/blog 1.0.130 → 1.0.131
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 +33 -27
- package/build/cjs/src/blog-v3-category.types.js.map +1 -1
- package/build/cjs/src/blog-v3-category.universal.d.ts +30 -24
- package/build/cjs/src/blog-v3-category.universal.js.map +1 -1
- package/build/cjs/src/blog-v3-post.http.d.ts +2 -2
- package/build/cjs/src/blog-v3-post.http.js +2 -2
- package/build/cjs/src/blog-v3-post.types.d.ts +54 -48
- package/build/cjs/src/blog-v3-post.types.js.map +1 -1
- package/build/cjs/src/blog-v3-post.universal.d.ts +39 -23
- package/build/cjs/src/blog-v3-post.universal.js +2 -2
- package/build/cjs/src/blog-v3-post.universal.js.map +1 -1
- package/build/cjs/src/blog-v3-tag.types.d.ts +22 -21
- package/build/cjs/src/blog-v3-tag.types.js.map +1 -1
- package/build/cjs/src/blog-v3-tag.universal.d.ts +21 -19
- package/build/cjs/src/blog-v3-tag.universal.js.map +1 -1
- package/build/es/src/blog-v3-category.types.d.ts +33 -27
- package/build/es/src/blog-v3-category.types.js.map +1 -1
- package/build/es/src/blog-v3-category.universal.d.ts +30 -24
- package/build/es/src/blog-v3-category.universal.js.map +1 -1
- package/build/es/src/blog-v3-post.http.d.ts +2 -2
- package/build/es/src/blog-v3-post.http.js +2 -2
- package/build/es/src/blog-v3-post.types.d.ts +54 -48
- package/build/es/src/blog-v3-post.types.js.map +1 -1
- package/build/es/src/blog-v3-post.universal.d.ts +39 -23
- package/build/es/src/blog-v3-post.universal.js +2 -2
- package/build/es/src/blog-v3-post.universal.js.map +1 -1
- package/build/es/src/blog-v3-tag.types.d.ts +22 -21
- package/build/es/src/blog-v3-tag.types.js.map +1 -1
- package/build/es/src/blog-v3-tag.universal.d.ts +21 -19
- package/build/es/src/blog-v3-tag.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -40,12 +40,12 @@ export interface Category {
|
|
|
40
40
|
*/
|
|
41
41
|
rank?: number | null;
|
|
42
42
|
/**
|
|
43
|
-
* Category position in sequence. Categories with a lower display position are displayed first.
|
|
43
|
+
* Category position in sequence. Categories with a lower display position are displayed first. Categories with a position of `-1` appear at the end of the sequence.
|
|
44
44
|
*
|
|
45
45
|
* Default: `-1`
|
|
46
46
|
*/
|
|
47
47
|
displayPosition?: number | null;
|
|
48
|
-
/** ID of the category's translations. All translations of a single category
|
|
48
|
+
/** ID of the category's translations. All translations of a single category share the same `translationId`. */
|
|
49
49
|
translationId?: string | null;
|
|
50
50
|
/**
|
|
51
51
|
* Category language.
|
|
@@ -53,7 +53,7 @@ export interface Category {
|
|
|
53
53
|
* Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.
|
|
54
54
|
*/
|
|
55
55
|
language?: string;
|
|
56
|
-
/** Category slug. For example, 'category-slug'
|
|
56
|
+
/** Category slug. For example, `'category-slug'`. */
|
|
57
57
|
slug?: string;
|
|
58
58
|
/**
|
|
59
59
|
* Reserved for internal use.
|
|
@@ -172,9 +172,9 @@ export interface CreateCategoryRequest {
|
|
|
172
172
|
/** Category info. */
|
|
173
173
|
category?: Category;
|
|
174
174
|
/**
|
|
175
|
-
* List of category fields to
|
|
176
|
-
*
|
|
177
|
-
*
|
|
175
|
+
* List of additional category fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
|
|
176
|
+
* the response in addition to the category’s base fields. Base fields don’t include any of the supported fieldset values. By default
|
|
177
|
+
* only the category’s base fields are returned.
|
|
178
178
|
*/
|
|
179
179
|
fieldsets?: Field[];
|
|
180
180
|
}
|
|
@@ -200,9 +200,9 @@ export interface BulkCreateCategoriesRequest {
|
|
|
200
200
|
/** Whether to return the full created category entities in the response. */
|
|
201
201
|
returnFullEntity?: boolean;
|
|
202
202
|
/**
|
|
203
|
-
* List of category fields to
|
|
204
|
-
*
|
|
205
|
-
*
|
|
203
|
+
* List of additional category fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
|
|
204
|
+
* the response in addition to the category’s base fields. Base fields don’t include any of the supported fieldset values. By default
|
|
205
|
+
* only the category’s base fields are returned.
|
|
206
206
|
*/
|
|
207
207
|
fieldsets?: Field[];
|
|
208
208
|
}
|
|
@@ -247,9 +247,9 @@ export interface UpdateCategoryRequest {
|
|
|
247
247
|
/** Field mask of fields to update. */
|
|
248
248
|
fieldMask?: string[];
|
|
249
249
|
/**
|
|
250
|
-
* List of category fields to
|
|
251
|
-
*
|
|
252
|
-
*
|
|
250
|
+
* List of additional category fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
|
|
251
|
+
* the response in addition to the category’s base fields. Base fields don’t include any of the supported fieldset values. By default
|
|
252
|
+
* only the category’s base fields are returned.
|
|
253
253
|
*/
|
|
254
254
|
fieldsets?: Field[];
|
|
255
255
|
}
|
|
@@ -268,9 +268,9 @@ export interface GetCategoryRequest {
|
|
|
268
268
|
*/
|
|
269
269
|
fieldsToInclude?: Field[];
|
|
270
270
|
/**
|
|
271
|
-
* List of category fields to
|
|
272
|
-
*
|
|
273
|
-
*
|
|
271
|
+
* List of additional category fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
|
|
272
|
+
* the response in addition to the category’s base fields. Base fields don’t include any of the supported fieldset values. By default
|
|
273
|
+
* only the category’s base fields are returned.
|
|
274
274
|
*/
|
|
275
275
|
fieldsets?: Field[];
|
|
276
276
|
}
|
|
@@ -289,9 +289,9 @@ export interface GetCategoryBySlugRequest {
|
|
|
289
289
|
*/
|
|
290
290
|
fieldsToInclude?: Field[];
|
|
291
291
|
/**
|
|
292
|
-
* List of category fields to
|
|
293
|
-
*
|
|
294
|
-
*
|
|
292
|
+
* List of additional category fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
|
|
293
|
+
* the response in addition to the category’s base fields. Base fields don’t include any of the supported fieldset values. By default
|
|
294
|
+
* only the category’s base fields are returned.
|
|
295
295
|
*/
|
|
296
296
|
fieldsets?: Field[];
|
|
297
297
|
}
|
|
@@ -303,16 +303,17 @@ export interface ListCategoriesRequest {
|
|
|
303
303
|
/** Pagination options. */
|
|
304
304
|
paging?: BlogPaging;
|
|
305
305
|
/**
|
|
306
|
-
* List of category fields to be included in the response.
|
|
307
306
|
* __Deprecated.__ Use `fieldsets` instead.
|
|
308
307
|
*
|
|
309
308
|
* This parameter will be removed on June 30, 2023.
|
|
309
|
+
*
|
|
310
|
+
* List of category fields to be included in the response.
|
|
310
311
|
*/
|
|
311
312
|
fieldsToInclude?: Field[];
|
|
312
313
|
/**
|
|
313
|
-
* List of category fields to
|
|
314
|
-
*
|
|
315
|
-
*
|
|
314
|
+
* List of additional category fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
|
|
315
|
+
* the response in addition to the category’s base fields. Base fields don’t include any of the supported fieldset values. By default
|
|
316
|
+
* only the category’s base fields are returned.
|
|
316
317
|
*/
|
|
317
318
|
fieldsets?: Field[];
|
|
318
319
|
}
|
|
@@ -353,13 +354,18 @@ export interface QueryCategoriesRequest {
|
|
|
353
354
|
* Pagination options.
|
|
354
355
|
*/
|
|
355
356
|
paging?: BlogPaging;
|
|
356
|
-
/**
|
|
357
|
+
/**
|
|
358
|
+
* __Deprecated.__ Use `query` instead.
|
|
359
|
+
* This parameter will be removed on June 30, 2023.
|
|
360
|
+
*
|
|
361
|
+
* Filter object.
|
|
362
|
+
*/
|
|
357
363
|
filter?: Record<string, any> | null;
|
|
358
364
|
/**
|
|
359
365
|
* __Deprecated.__ Use `query` instead.
|
|
360
366
|
* This parameter will be removed on June 3, 2023.
|
|
361
367
|
*
|
|
362
|
-
* Sorting options.
|
|
368
|
+
* Sorting options.
|
|
363
369
|
*/
|
|
364
370
|
sort?: Sorting[];
|
|
365
371
|
/**
|
|
@@ -372,9 +378,9 @@ export interface QueryCategoriesRequest {
|
|
|
372
378
|
/** Query options. */
|
|
373
379
|
query?: PlatformQuery;
|
|
374
380
|
/**
|
|
375
|
-
* List of category fields to
|
|
376
|
-
*
|
|
377
|
-
*
|
|
381
|
+
* List of additional category fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
|
|
382
|
+
* the response in addition to the category’s base fields. Base fields don’t include any of the supported fieldset values. By default
|
|
383
|
+
* only the category’s base fields are returned.
|
|
378
384
|
*/
|
|
379
385
|
fieldsets?: Field[];
|
|
380
386
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blog-v3-category.types.js","sourceRoot":"","sources":["../../../src/blog-v3-category.types.ts"],"names":[],"mappings":";;;AA+LA,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.types.js","sourceRoot":"","sources":["../../../src/blog-v3-category.types.ts"],"names":[],"mappings":";;;AA+LA,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;AA6ND,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAGpB"}
|
|
@@ -125,9 +125,9 @@ export interface CreateCategoryRequest {
|
|
|
125
125
|
/** Category info. */
|
|
126
126
|
category?: Category;
|
|
127
127
|
/**
|
|
128
|
-
* List of category fields to
|
|
129
|
-
*
|
|
130
|
-
*
|
|
128
|
+
* List of additional category fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
|
|
129
|
+
* the response in addition to the category’s base fields. Base fields don’t include any of the supported fieldset values. By default
|
|
130
|
+
* only the category’s base fields are returned.
|
|
131
131
|
*/
|
|
132
132
|
fieldsets?: Field[];
|
|
133
133
|
}
|
|
@@ -153,9 +153,9 @@ export interface BulkCreateCategoriesRequest {
|
|
|
153
153
|
/** Whether to return the full created category entities in the response. */
|
|
154
154
|
returnFullEntity?: boolean;
|
|
155
155
|
/**
|
|
156
|
-
* List of category fields to
|
|
157
|
-
*
|
|
158
|
-
*
|
|
156
|
+
* List of additional category fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
|
|
157
|
+
* the response in addition to the category’s base fields. Base fields don’t include any of the supported fieldset values. By default
|
|
158
|
+
* only the category’s base fields are returned.
|
|
159
159
|
*/
|
|
160
160
|
fieldsets?: Field[];
|
|
161
161
|
}
|
|
@@ -200,9 +200,9 @@ export interface UpdateCategoryRequest {
|
|
|
200
200
|
/** Field mask of fields to update. */
|
|
201
201
|
fieldMask?: string[];
|
|
202
202
|
/**
|
|
203
|
-
* List of category fields to
|
|
204
|
-
*
|
|
205
|
-
*
|
|
203
|
+
* List of additional category fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
|
|
204
|
+
* the response in addition to the category’s base fields. Base fields don’t include any of the supported fieldset values. By default
|
|
205
|
+
* only the category’s base fields are returned.
|
|
206
206
|
*/
|
|
207
207
|
fieldsets?: Field[];
|
|
208
208
|
}
|
|
@@ -221,9 +221,9 @@ export interface GetCategoryRequest {
|
|
|
221
221
|
*/
|
|
222
222
|
fieldsToInclude?: Field[];
|
|
223
223
|
/**
|
|
224
|
-
* List of category fields to
|
|
225
|
-
*
|
|
226
|
-
*
|
|
224
|
+
* List of additional category fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
|
|
225
|
+
* the response in addition to the category’s base fields. Base fields don’t include any of the supported fieldset values. By default
|
|
226
|
+
* only the category’s base fields are returned.
|
|
227
227
|
*/
|
|
228
228
|
fieldsets?: Field[];
|
|
229
229
|
}
|
|
@@ -242,9 +242,9 @@ export interface GetCategoryBySlugRequest {
|
|
|
242
242
|
*/
|
|
243
243
|
fieldsToInclude?: Field[];
|
|
244
244
|
/**
|
|
245
|
-
* List of category fields to
|
|
246
|
-
*
|
|
247
|
-
*
|
|
245
|
+
* List of additional category fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
|
|
246
|
+
* the response in addition to the category’s base fields. Base fields don’t include any of the supported fieldset values. By default
|
|
247
|
+
* only the category’s base fields are returned.
|
|
248
248
|
*/
|
|
249
249
|
fieldsets?: Field[];
|
|
250
250
|
}
|
|
@@ -256,16 +256,17 @@ export interface ListCategoriesRequest {
|
|
|
256
256
|
/** Pagination options. */
|
|
257
257
|
paging?: BlogPaging;
|
|
258
258
|
/**
|
|
259
|
-
* List of category fields to be included in the response.
|
|
260
259
|
* __Deprecated.__ Use `fieldsets` instead.
|
|
261
260
|
*
|
|
262
261
|
* This parameter will be removed on June 30, 2023.
|
|
262
|
+
*
|
|
263
|
+
* List of category fields to be included in the response.
|
|
263
264
|
*/
|
|
264
265
|
fieldsToInclude?: Field[];
|
|
265
266
|
/**
|
|
266
|
-
* List of category fields to
|
|
267
|
-
*
|
|
268
|
-
*
|
|
267
|
+
* List of additional category fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
|
|
268
|
+
* the response in addition to the category’s base fields. Base fields don’t include any of the supported fieldset values. By default
|
|
269
|
+
* only the category’s base fields are returned.
|
|
269
270
|
*/
|
|
270
271
|
fieldsets?: Field[];
|
|
271
272
|
}
|
|
@@ -307,13 +308,18 @@ export interface QueryCategoriesRequest {
|
|
|
307
308
|
* Pagination options.
|
|
308
309
|
*/
|
|
309
310
|
paging?: BlogPaging;
|
|
310
|
-
/**
|
|
311
|
+
/**
|
|
312
|
+
* __Deprecated.__ Use `query` instead.
|
|
313
|
+
* This parameter will be removed on June 30, 2023.
|
|
314
|
+
*
|
|
315
|
+
* Filter object.
|
|
316
|
+
*/
|
|
311
317
|
filter?: Record<string, any> | null;
|
|
312
318
|
/**
|
|
313
319
|
* __Deprecated.__ Use `query` instead.
|
|
314
320
|
* This parameter will be removed on June 3, 2023.
|
|
315
321
|
*
|
|
316
|
-
* Sorting options.
|
|
322
|
+
* Sorting options.
|
|
317
323
|
*/
|
|
318
324
|
sort?: Sorting[];
|
|
319
325
|
/**
|
|
@@ -326,9 +332,9 @@ export interface QueryCategoriesRequest {
|
|
|
326
332
|
/** Query options. */
|
|
327
333
|
query?: PlatformQuery;
|
|
328
334
|
/**
|
|
329
|
-
* List of category fields to
|
|
330
|
-
*
|
|
331
|
-
*
|
|
335
|
+
* List of additional category fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
|
|
336
|
+
* the response in addition to the category’s base fields. Base fields don’t include any of the supported fieldset values. By default
|
|
337
|
+
* only the category’s base fields are returned.
|
|
332
338
|
*/
|
|
333
339
|
fieldsets?: Field[];
|
|
334
340
|
}
|
|
@@ -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;AAyI5B,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;AAyI5B,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;AA8ND,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAGpB;AA4FD,MAAM,SAAS,GAA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AqC,CAAC,aAAa,CAAC;KAC1E,CAAC,CAAC,EAAE,4BAA4B,EAAE,IAAI,EAAE,CAAC,CAAC;AAC7C,CAAC;AAnDD,0CAmDC"}
|
|
@@ -64,9 +64,9 @@ export declare function getPostMetrics(payload: GetPostMetricsRequest): RequestO
|
|
|
64
64
|
*
|
|
65
65
|
* The `queryPostCountStats()` function returns a Promise that resolves to the number of posts per month within the specified time range.
|
|
66
66
|
*
|
|
67
|
-
* You can set the time range using the `rangeStart` and `months` properties. The time range always starts on the 1st of the month set in `rangeStart
|
|
67
|
+
* You can set the time range using the `rangeStart` and `months` properties. The time range always starts on the 1st day of the month set in `rangeStart` and includes the number of `months` following `rangeStart`. For example, if `rangeStart` is set to `'2022-03-13'` and `months` is set to `4`, the time range will be from `'2022-03-01'` until `'2022-06-30'`. The time range ends on the last day of the month.
|
|
68
68
|
*
|
|
69
|
-
* >**Note:** If there are no published posts in a specific month, that month is not included in the response. For example, let's say a blog has `0` posts dated in February 2022.
|
|
69
|
+
* >**Note:** If there are no published posts in a specific month, that month is not included in the response. For example, let's say a blog has `0` posts dated in February 2022. If `rangeStart` is set to `'2022-01-01'` and `months` is set to `3`, the response includes `postCount` values for January and March, but not February.
|
|
70
70
|
*/
|
|
71
71
|
export declare function queryPostCountStats(payload: QueryPostCountStatsRequest): RequestOptionsFactory<QueryPostCountStatsResponse>;
|
|
72
72
|
/**
|
|
@@ -784,9 +784,9 @@ exports.getPostMetrics = getPostMetrics;
|
|
|
784
784
|
*
|
|
785
785
|
* The `queryPostCountStats()` function returns a Promise that resolves to the number of posts per month within the specified time range.
|
|
786
786
|
*
|
|
787
|
-
* You can set the time range using the `rangeStart` and `months` properties. The time range always starts on the 1st of the month set in `rangeStart
|
|
787
|
+
* You can set the time range using the `rangeStart` and `months` properties. The time range always starts on the 1st day of the month set in `rangeStart` and includes the number of `months` following `rangeStart`. For example, if `rangeStart` is set to `'2022-03-13'` and `months` is set to `4`, the time range will be from `'2022-03-01'` until `'2022-06-30'`. The time range ends on the last day of the month.
|
|
788
788
|
*
|
|
789
|
-
* >**Note:** If there are no published posts in a specific month, that month is not included in the response. For example, let's say a blog has `0` posts dated in February 2022.
|
|
789
|
+
* >**Note:** If there are no published posts in a specific month, that month is not included in the response. For example, let's say a blog has `0` posts dated in February 2022. If `rangeStart` is set to `'2022-01-01'` and `months` is set to `3`, the response includes `postCount` values for January and March, but not February.
|
|
790
790
|
*/
|
|
791
791
|
function queryPostCountStats(payload) {
|
|
792
792
|
const { toJSON: toReq, fromJSON: fromReq } = ambassador_1.serializer(_queryPostCountStatsRequest, {});
|
|
@@ -27,13 +27,13 @@ export interface Post {
|
|
|
27
27
|
lastPublishedDate?: Date;
|
|
28
28
|
/** Post URL. */
|
|
29
29
|
url?: PageUrl;
|
|
30
|
-
/** Post slug. For example, 'post-slug'
|
|
30
|
+
/** Post slug. For example, `'post-slug'`. */
|
|
31
31
|
slug?: string;
|
|
32
32
|
/** Whether the post is marked as featured. */
|
|
33
33
|
featured?: boolean;
|
|
34
|
-
/** Whether the post is pinned. If `true`, post is placed at the top of the post list. */
|
|
34
|
+
/** Whether the post is pinned. If `true`, the post is placed at the top of the post list. */
|
|
35
35
|
pinned?: boolean;
|
|
36
|
-
/** [Category IDs](https://
|
|
36
|
+
/** [Category IDs](https://dev.wix.com/api/rest/wix-blog/blog/categories) of the post. */
|
|
37
37
|
categoryIds?: string[];
|
|
38
38
|
/**
|
|
39
39
|
* __Deprecated.__ Use `media` instead.
|
|
@@ -42,10 +42,10 @@ export interface Post {
|
|
|
42
42
|
* Post cover media.
|
|
43
43
|
*/
|
|
44
44
|
coverMedia?: CoverMedia;
|
|
45
|
-
/** Post owner's [member ID](https://
|
|
45
|
+
/** Post owner's [member ID](https://dev.wix.com/api/rest/members). */
|
|
46
46
|
memberId?: string;
|
|
47
47
|
/**
|
|
48
|
-
* Hashtags
|
|
48
|
+
* Hashtags in the post.
|
|
49
49
|
* @readonly
|
|
50
50
|
*/
|
|
51
51
|
hashtags?: string[];
|
|
@@ -56,7 +56,7 @@ export interface Post {
|
|
|
56
56
|
/** Image placed at the top of the blog page. */
|
|
57
57
|
heroImage?: Image;
|
|
58
58
|
/**
|
|
59
|
-
* IDs of [tags](https://
|
|
59
|
+
* IDs of [tags](https://dev.wix.com/api/rest/wix-blog/blog/tags) the post is tagged with.
|
|
60
60
|
* @readonly
|
|
61
61
|
*/
|
|
62
62
|
tagIds?: string[];
|
|
@@ -66,11 +66,11 @@ export interface Post {
|
|
|
66
66
|
*/
|
|
67
67
|
relatedPostIds?: string[];
|
|
68
68
|
/**
|
|
69
|
-
* Pricing plan IDs.
|
|
69
|
+
* [Pricing plan IDs](https://dev.wix.com/api/rest/wix-pricing-plans). Only relevant if a post is assigned to a specific pricing plan.
|
|
70
70
|
* @readonly
|
|
71
71
|
*/
|
|
72
72
|
pricingPlanIds?: string[];
|
|
73
|
-
/** ID of the translations of this post. All translations of a single post
|
|
73
|
+
/** ID of the translations of this post. All translations of a single post share the same `translationId`. */
|
|
74
74
|
translationId?: string | null;
|
|
75
75
|
/**
|
|
76
76
|
* Language the post is written in.
|
|
@@ -85,7 +85,7 @@ export interface Post {
|
|
|
85
85
|
* @readonly
|
|
86
86
|
*/
|
|
87
87
|
content?: string | null;
|
|
88
|
-
/** Post owner's [contact ID](https://
|
|
88
|
+
/** Post owner's [contact ID](https://dev.wix.com/api/rest/contacts). */
|
|
89
89
|
contactId?: string | null;
|
|
90
90
|
/**
|
|
91
91
|
* Post rich content
|
|
@@ -1444,13 +1444,13 @@ export interface TextNodeStyle {
|
|
|
1444
1444
|
lineHeight?: string | null;
|
|
1445
1445
|
}
|
|
1446
1446
|
export interface ModerationDetails {
|
|
1447
|
-
/** Member
|
|
1447
|
+
/** Member ID of the person submitting the draft post for review. */
|
|
1448
1448
|
submittedBy?: string;
|
|
1449
|
-
/** Date the post was
|
|
1449
|
+
/** Date the post was submitted for review. */
|
|
1450
1450
|
submittedDate?: Date;
|
|
1451
1451
|
/** Status indicating whether the submission was approved or rejected by the moderator. */
|
|
1452
1452
|
status?: ModerationStatusStatus;
|
|
1453
|
-
/** Member
|
|
1453
|
+
/** Member ID of the person who approved or rejected the post. */
|
|
1454
1454
|
moderatedBy?: string | null;
|
|
1455
1455
|
/** Date the post was approved or rejected. */
|
|
1456
1456
|
moderationDate?: Date;
|
|
@@ -1463,7 +1463,7 @@ export declare enum ModerationStatusStatus {
|
|
|
1463
1463
|
export interface Media extends MediaMediaOneOf {
|
|
1464
1464
|
/** Whether cover media is displayed. */
|
|
1465
1465
|
displayed?: boolean;
|
|
1466
|
-
/** Whether cover media
|
|
1466
|
+
/** Whether custom cover media has been specified. If `false`, the first media item in the post's content serves as cover media. */
|
|
1467
1467
|
custom?: boolean;
|
|
1468
1468
|
/** Wix Media details. */
|
|
1469
1469
|
wixMedia?: WixMedia;
|
|
@@ -1620,12 +1620,12 @@ export interface Category {
|
|
|
1620
1620
|
*/
|
|
1621
1621
|
rank?: number | null;
|
|
1622
1622
|
/**
|
|
1623
|
-
* Category position in sequence. Categories with a lower display position are displayed first.
|
|
1623
|
+
* Category position in sequence. Categories with a lower display position are displayed first. Categories with a position of `-1` appear at the end of the sequence.
|
|
1624
1624
|
*
|
|
1625
1625
|
* Default: `-1`
|
|
1626
1626
|
*/
|
|
1627
1627
|
displayPosition?: number | null;
|
|
1628
|
-
/** ID of the category's translations. All translations of a single category
|
|
1628
|
+
/** ID of the category's translations. All translations of a single category share the same `translationId`. */
|
|
1629
1629
|
translationId?: string | null;
|
|
1630
1630
|
/**
|
|
1631
1631
|
* Category language.
|
|
@@ -1633,7 +1633,7 @@ export interface Category {
|
|
|
1633
1633
|
* Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.
|
|
1634
1634
|
*/
|
|
1635
1635
|
language?: string;
|
|
1636
|
-
/** Category slug. For example, 'category-slug'
|
|
1636
|
+
/** Category slug. For example, `'category-slug'`. */
|
|
1637
1637
|
slug?: string;
|
|
1638
1638
|
/**
|
|
1639
1639
|
* Reserved for internal use.
|
|
@@ -1672,8 +1672,8 @@ export interface DraftPost {
|
|
|
1672
1672
|
/**
|
|
1673
1673
|
* Draft post excerpt.
|
|
1674
1674
|
*
|
|
1675
|
-
*
|
|
1676
|
-
*
|
|
1675
|
+
* If no excerpt has been manually set, an excerpt is automatically generated from the post's text.
|
|
1676
|
+
* This can be retrieved using the `GENERATED_EXCERPT` fieldset.
|
|
1677
1677
|
*/
|
|
1678
1678
|
excerpt?: string | null;
|
|
1679
1679
|
/** Whether the draft post is marked as featured. */
|
|
@@ -1682,7 +1682,7 @@ export interface DraftPost {
|
|
|
1682
1682
|
categoryIds?: string[];
|
|
1683
1683
|
/** Draft post owner's member ID. */
|
|
1684
1684
|
memberId?: string | null;
|
|
1685
|
-
/** Hashtags
|
|
1685
|
+
/** Hashtags in the post. */
|
|
1686
1686
|
hashtags?: string[];
|
|
1687
1687
|
/** Whether commenting on the draft post is enabled. */
|
|
1688
1688
|
commentingEnabled?: boolean | null;
|
|
@@ -1697,7 +1697,7 @@ export interface DraftPost {
|
|
|
1697
1697
|
tagIds?: string[];
|
|
1698
1698
|
/** IDs of posts related to this draft post. */
|
|
1699
1699
|
relatedPostIds?: string[];
|
|
1700
|
-
/** Pricing
|
|
1700
|
+
/** [Pricing plan IDs](https://dev.wix.com/api/rest/wix-pricing-plans). Only relevant if a post is assigned to a specific pricing plan. */
|
|
1701
1701
|
pricingPlanIds?: string[];
|
|
1702
1702
|
/**
|
|
1703
1703
|
* ID of the draft post's translations.
|
|
@@ -1771,7 +1771,7 @@ export interface DraftPost {
|
|
|
1771
1771
|
*/
|
|
1772
1772
|
url?: PageUrl;
|
|
1773
1773
|
/**
|
|
1774
|
-
* Date the post was created.
|
|
1774
|
+
* Date the draft post was first created.
|
|
1775
1775
|
* @readonly
|
|
1776
1776
|
*/
|
|
1777
1777
|
createdDate?: Date;
|
|
@@ -2015,9 +2015,9 @@ export interface GetPostBySlugRequest {
|
|
|
2015
2015
|
*/
|
|
2016
2016
|
fieldsToInclude?: PostFieldField[];
|
|
2017
2017
|
/**
|
|
2018
|
-
* List of post fields to
|
|
2019
|
-
*
|
|
2020
|
-
*
|
|
2018
|
+
* List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
|
|
2019
|
+
* the response in addition to the post’s base fields. Base fields don’t include any of the supported fieldset values. By default
|
|
2020
|
+
* only the post’s base fields are returned.
|
|
2021
2021
|
*/
|
|
2022
2022
|
fieldsets?: PostFieldField[];
|
|
2023
2023
|
}
|
|
@@ -2031,34 +2031,34 @@ export interface ListPostsRequest {
|
|
|
2031
2031
|
/**
|
|
2032
2032
|
* Hashtag filter.
|
|
2033
2033
|
*
|
|
2034
|
-
* Pass an array of hashtags to return posts
|
|
2034
|
+
* Pass an array of hashtags to return only posts containing any of the provided hashtags.
|
|
2035
2035
|
* If omitted, all posts with or without hashtags are returned.
|
|
2036
2036
|
*/
|
|
2037
2037
|
hashtags?: string[];
|
|
2038
2038
|
/**
|
|
2039
2039
|
* Category filter.
|
|
2040
2040
|
*
|
|
2041
|
-
* Pass an array of category IDs to return posts with any of the provided categories.
|
|
2042
|
-
* If omitted, all posts with or without
|
|
2041
|
+
* Pass an array of category IDs to return only posts with any of the provided categories.
|
|
2042
|
+
* If omitted, all posts with or without associated categories are returned.
|
|
2043
2043
|
*/
|
|
2044
2044
|
categoryIds?: string[];
|
|
2045
2045
|
/**
|
|
2046
2046
|
* Tag filter.
|
|
2047
2047
|
*
|
|
2048
|
-
* Pass an array of tag IDs to return posts with any of the provided tags.
|
|
2049
|
-
* If omitted, all posts with or without
|
|
2048
|
+
* Pass an array of tag IDs to return only posts with any of the provided tags.
|
|
2049
|
+
* If omitted, all posts with or without tags are returned.
|
|
2050
2050
|
*/
|
|
2051
2051
|
tagIds?: string[];
|
|
2052
2052
|
/**
|
|
2053
|
-
*
|
|
2053
|
+
* Sorting options.
|
|
2054
2054
|
*
|
|
2055
|
-
* - `FEED`: `firstPublishedDate` in descending order with pinned posts first.
|
|
2056
|
-
* - `VIEW_COUNT`: total
|
|
2057
|
-
* - `LIKE_COUNT`: total
|
|
2058
|
-
* - `PUBLISHED_DATE_ASC`: `firstPublishedDate` in ascending order.
|
|
2059
|
-
* - `PUBLISHED_DATE_DESC`: `firstPublishedDate` in descending order.
|
|
2060
|
-
* - `TITLE_ASC`: `title` in ascening order.
|
|
2061
|
-
* - `TITLE_DESC`: `title` in descending order.
|
|
2055
|
+
* - `FEED`: Ordered by `firstPublishedDate` in descending order with pinned posts first.
|
|
2056
|
+
* - `VIEW_COUNT`: Ordered by total number of views in descending order.
|
|
2057
|
+
* - `LIKE_COUNT`: Ordered by total number of likes in descending order.
|
|
2058
|
+
* - `PUBLISHED_DATE_ASC`: Ordered by `firstPublishedDate` in ascending order.
|
|
2059
|
+
* - `PUBLISHED_DATE_DESC`: Ordered by `firstPublishedDate` in descending order.
|
|
2060
|
+
* - `TITLE_ASC`: Ordered by `title` in ascening order.
|
|
2061
|
+
* - `TITLE_DESC`: Ordered by `title` in descending order.
|
|
2062
2062
|
* - `RATING`: reserved for internal use.
|
|
2063
2063
|
*
|
|
2064
2064
|
* Default: `FEED`
|
|
@@ -2075,7 +2075,7 @@ export interface ListPostsRequest {
|
|
|
2075
2075
|
fieldsToInclude?: PostFieldField[];
|
|
2076
2076
|
/**
|
|
2077
2077
|
* Language filter.
|
|
2078
|
-
* Pass language to only receive posts that are in that
|
|
2078
|
+
* Pass a language to only receive posts that are in that language.
|
|
2079
2079
|
*
|
|
2080
2080
|
* 2-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.
|
|
2081
2081
|
*/
|
|
@@ -2083,9 +2083,9 @@ export interface ListPostsRequest {
|
|
|
2083
2083
|
/** Post owner's member ID. */
|
|
2084
2084
|
memberId?: string | null;
|
|
2085
2085
|
/**
|
|
2086
|
-
* List of post fields to
|
|
2087
|
-
*
|
|
2088
|
-
*
|
|
2086
|
+
* List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
|
|
2087
|
+
* the response in addition to the post’s base fields. Base fields don’t include any of the supported fieldset values. By default
|
|
2088
|
+
* only the post’s base fields are returned.
|
|
2089
2089
|
*/
|
|
2090
2090
|
fieldsets?: PostFieldField[];
|
|
2091
2091
|
}
|
|
@@ -2126,7 +2126,6 @@ export interface QueryPostsRequest {
|
|
|
2126
2126
|
* This parameter will be removed on June 30, 2023.
|
|
2127
2127
|
*
|
|
2128
2128
|
* Filter object.
|
|
2129
|
-
* 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).
|
|
2130
2129
|
*/
|
|
2131
2130
|
filter?: Record<string, any> | null;
|
|
2132
2131
|
/**
|
|
@@ -2146,9 +2145,9 @@ export interface QueryPostsRequest {
|
|
|
2146
2145
|
/** Query options. */
|
|
2147
2146
|
query?: PlatformQuery;
|
|
2148
2147
|
/**
|
|
2149
|
-
* List of post fields to
|
|
2150
|
-
*
|
|
2151
|
-
*
|
|
2148
|
+
* List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
|
|
2149
|
+
* the response in addition to the post’s base fields. Base fields don’t include any of the supported fieldset values. By default
|
|
2150
|
+
* only the post’s base fields are returned.
|
|
2152
2151
|
*/
|
|
2153
2152
|
fieldsets?: PostFieldField[];
|
|
2154
2153
|
}
|
|
@@ -2351,12 +2350,19 @@ export interface QueryPostCountStatsRequest {
|
|
|
2351
2350
|
rangeStart?: Date;
|
|
2352
2351
|
/**
|
|
2353
2352
|
* __Deprecated.__ Use `months` instead.
|
|
2354
|
-
* This property will be removed on June 30,
|
|
2353
|
+
* This property will be removed on June 30, 2023.
|
|
2355
2354
|
*
|
|
2356
2355
|
* Non-inclusive end of time range to return, in ISO 8601 date and time format.
|
|
2357
2356
|
*/
|
|
2358
2357
|
rangeEnd?: Date;
|
|
2359
|
-
/**
|
|
2358
|
+
/**
|
|
2359
|
+
* Order of returned results.
|
|
2360
|
+
*
|
|
2361
|
+
* - `OLDEST`: posts by date in ascending order.
|
|
2362
|
+
* - `NEWEST`: posts by date in descending order.
|
|
2363
|
+
*
|
|
2364
|
+
* Default: `OLDEST`
|
|
2365
|
+
*/
|
|
2360
2366
|
order?: Order;
|
|
2361
2367
|
/** Number of months to include in response. */
|
|
2362
2368
|
months?: number;
|
|
@@ -2380,7 +2386,7 @@ export declare enum Order {
|
|
|
2380
2386
|
}
|
|
2381
2387
|
/** Get Blog Post Count Stats response */
|
|
2382
2388
|
export interface QueryPostCountStatsResponse {
|
|
2383
|
-
/**
|
|
2389
|
+
/** List of published post counts by month. */
|
|
2384
2390
|
stats?: PeriodPostCount[];
|
|
2385
2391
|
}
|
|
2386
2392
|
/** Post count for a specific time period */
|