@wix/blog 1.0.150 → 1.0.152
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.http.d.ts +5 -5
- package/build/cjs/src/blog-v3-category.http.js +5 -5
- package/build/cjs/src/blog-v3-category.universal.d.ts +28 -10
- package/build/cjs/src/blog-v3-category.universal.js +6 -5
- package/build/cjs/src/blog-v3-category.universal.js.map +1 -1
- package/build/cjs/src/blog-v3-post.http.d.ts +5 -5
- package/build/cjs/src/blog-v3-post.http.js +5 -5
- package/build/cjs/src/blog-v3-post.universal.d.ts +30 -11
- package/build/cjs/src/blog-v3-post.universal.js +6 -5
- package/build/cjs/src/blog-v3-post.universal.js.map +1 -1
- package/build/cjs/src/blog-v3-tag.http.d.ts +5 -5
- package/build/cjs/src/blog-v3-tag.http.js +5 -5
- package/build/cjs/src/blog-v3-tag.universal.d.ts +27 -9
- package/build/cjs/src/blog-v3-tag.universal.js +6 -5
- package/build/cjs/src/blog-v3-tag.universal.js.map +1 -1
- package/build/es/src/blog-v3-category.http.d.ts +5 -5
- package/build/es/src/blog-v3-category.http.js +5 -5
- package/build/es/src/blog-v3-category.universal.d.ts +28 -10
- package/build/es/src/blog-v3-category.universal.js +6 -5
- package/build/es/src/blog-v3-category.universal.js.map +1 -1
- package/build/es/src/blog-v3-post.http.d.ts +5 -5
- package/build/es/src/blog-v3-post.http.js +5 -5
- package/build/es/src/blog-v3-post.universal.d.ts +30 -11
- package/build/es/src/blog-v3-post.universal.js +6 -5
- package/build/es/src/blog-v3-post.universal.js.map +1 -1
- package/build/es/src/blog-v3-tag.http.d.ts +5 -5
- package/build/es/src/blog-v3-tag.http.js +5 -5
- package/build/es/src/blog-v3-tag.universal.d.ts +27 -9
- package/build/es/src/blog-v3-tag.universal.js +6 -5
- package/build/es/src/blog-v3-tag.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -549,18 +549,19 @@ export interface GetTagBySlugOptions {
|
|
|
549
549
|
* Creates a query to retrieve a list of tags.
|
|
550
550
|
*
|
|
551
551
|
*
|
|
552
|
-
* The `queryTags()` function builds a query to retrieve a list of up to 4,000 tags per language, and returns a [`TagsQueryBuilder`](https://www.wix.com/velo/reference/wix-blog-backend/
|
|
552
|
+
* The `queryTags()` function builds a query to retrieve a list of up to 4,000 tags per language, and returns a [`TagsQueryBuilder`](https://www.wix.com/velo/reference/wix-blog-backend/tags/tagsquerybuilder) object.
|
|
553
553
|
*
|
|
554
|
-
* The returned object contains the query definition, which is typically used to run the query using the [`find()`](https://www.wix.com/velo/reference/wix-blog-backend/
|
|
554
|
+
* The returned object contains the query definition, which is typically used to run the query using the [`find()`](https://www.wix.com/velo/reference/wix-blog-backend/tags/tagsquerybuilder/find) function.
|
|
555
555
|
*
|
|
556
556
|
* You can refine the query by chaining `TagsQueryBuilder` functions onto the query. `TagsQueryBuilder` functions enable you to sort, filter, and control the results that `queryTags()` returns.
|
|
557
557
|
*
|
|
558
558
|
* `queryTags()` runs with these `TagsQueryBuilder` defaults that can be overridden:
|
|
559
|
-
* - `limit(50)`
|
|
560
|
-
* - `ascending('_id')`
|
|
559
|
+
* - [`limit(50)`](https://www.wix.com/velo/reference/wix-blog-backend/tags/tagsquerybuilder/limit)
|
|
560
|
+
* - [`ascending('_id')`](https://www.wix.com/velo/reference/wix-blog-backend/tags/tagsquerybuilder/ascending)
|
|
561
561
|
*
|
|
562
|
-
* The following `TagQueryBuilder` functions are supported for `queryTags()`. For a full description of the Tags object, see the object returned for the [`items`](https://www.wix.com/velo/reference/wix-blog-backend/
|
|
562
|
+
* The following `TagQueryBuilder` functions are supported for `queryTags()`. For a full description of the Tags object, see the object returned for the [`items`](https://www.wix.com/velo/reference/wix-blog-backend/tags/tagsqueryresult/items) property in [`TagsQueryResult`](https://www.wix.com/velo/reference/wix-blog-backend/tags/tagsqueryresult).
|
|
563
563
|
* @public
|
|
564
|
+
* @documentationMaturity preview
|
|
564
565
|
* @param options - Options specifying which fields to return.
|
|
565
566
|
*/
|
|
566
567
|
export declare function queryTags(options?: QueryTagsOptions): TagsQueryBuilder;
|
|
@@ -599,44 +600,61 @@ export interface TagsQueryResult extends QueryOffsetResult {
|
|
|
599
600
|
export interface TagsQueryBuilder {
|
|
600
601
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
601
602
|
* @param value - Value to compare against.
|
|
603
|
+
* @documentationMaturity preview
|
|
602
604
|
*/
|
|
603
605
|
eq: (propertyName: string, value: any) => TagsQueryBuilder;
|
|
604
606
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
605
607
|
* @param value - Value to compare against.
|
|
608
|
+
* @documentationMaturity preview
|
|
606
609
|
*/
|
|
607
610
|
ne: (propertyName: string, value: any) => TagsQueryBuilder;
|
|
608
611
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
609
612
|
* @param value - Value to compare against.
|
|
613
|
+
* @documentationMaturity preview
|
|
610
614
|
*/
|
|
611
615
|
ge: (propertyName: string, value: any) => TagsQueryBuilder;
|
|
612
616
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
613
617
|
* @param value - Value to compare against.
|
|
618
|
+
* @documentationMaturity preview
|
|
614
619
|
*/
|
|
615
620
|
gt: (propertyName: string, value: any) => TagsQueryBuilder;
|
|
616
621
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
617
622
|
* @param value - Value to compare against.
|
|
623
|
+
* @documentationMaturity preview
|
|
618
624
|
*/
|
|
619
625
|
le: (propertyName: string, value: any) => TagsQueryBuilder;
|
|
620
626
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
621
627
|
* @param value - Value to compare against.
|
|
628
|
+
* @documentationMaturity preview
|
|
622
629
|
*/
|
|
623
630
|
lt: (propertyName: string, value: any) => TagsQueryBuilder;
|
|
624
631
|
/** @param propertyName - Property whose value is compared with `string`.
|
|
625
632
|
* @param string - String to compare against. Case-insensitive.
|
|
633
|
+
* @documentationMaturity preview
|
|
626
634
|
*/
|
|
627
635
|
startsWith: (propertyName: string, value: string) => TagsQueryBuilder;
|
|
628
636
|
/** @param propertyName - Property whose value is compared with `values`.
|
|
629
637
|
* @param values - List of values to compare against.
|
|
638
|
+
* @documentationMaturity preview
|
|
630
639
|
*/
|
|
631
640
|
hasSome: (propertyName: string, value: any[]) => TagsQueryBuilder;
|
|
632
|
-
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
641
|
+
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
642
|
+
* @documentationMaturity preview
|
|
643
|
+
*/
|
|
633
644
|
ascending: (...propertyNames: string[]) => TagsQueryBuilder;
|
|
634
|
-
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
645
|
+
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
646
|
+
* @documentationMaturity preview
|
|
647
|
+
*/
|
|
635
648
|
descending: (...propertyNames: string[]) => TagsQueryBuilder;
|
|
636
|
-
/** @param limit - Number of items to return, which is also the `pageSize` of the results object.
|
|
649
|
+
/** @param limit - Number of items to return, which is also the `pageSize` of the results object.
|
|
650
|
+
* @documentationMaturity preview
|
|
651
|
+
*/
|
|
637
652
|
limit: (limit: number) => TagsQueryBuilder;
|
|
638
|
-
/** @param skip - Number of items to skip in the query results before returning the results.
|
|
653
|
+
/** @param skip - Number of items to skip in the query results before returning the results.
|
|
654
|
+
* @documentationMaturity preview
|
|
655
|
+
*/
|
|
639
656
|
skip: (skip: number) => TagsQueryBuilder;
|
|
657
|
+
/** @documentationMaturity preview */
|
|
640
658
|
find: () => Promise<TagsQueryResult>;
|
|
641
659
|
}
|
|
642
660
|
export {};
|
|
@@ -257,18 +257,19 @@ exports.getTagBySlug = getTagBySlug;
|
|
|
257
257
|
* Creates a query to retrieve a list of tags.
|
|
258
258
|
*
|
|
259
259
|
*
|
|
260
|
-
* The `queryTags()` function builds a query to retrieve a list of up to 4,000 tags per language, and returns a [`TagsQueryBuilder`](https://www.wix.com/velo/reference/wix-blog-backend/
|
|
260
|
+
* The `queryTags()` function builds a query to retrieve a list of up to 4,000 tags per language, and returns a [`TagsQueryBuilder`](https://www.wix.com/velo/reference/wix-blog-backend/tags/tagsquerybuilder) object.
|
|
261
261
|
*
|
|
262
|
-
* The returned object contains the query definition, which is typically used to run the query using the [`find()`](https://www.wix.com/velo/reference/wix-blog-backend/
|
|
262
|
+
* The returned object contains the query definition, which is typically used to run the query using the [`find()`](https://www.wix.com/velo/reference/wix-blog-backend/tags/tagsquerybuilder/find) function.
|
|
263
263
|
*
|
|
264
264
|
* You can refine the query by chaining `TagsQueryBuilder` functions onto the query. `TagsQueryBuilder` functions enable you to sort, filter, and control the results that `queryTags()` returns.
|
|
265
265
|
*
|
|
266
266
|
* `queryTags()` runs with these `TagsQueryBuilder` defaults that can be overridden:
|
|
267
|
-
* - `limit(50)`
|
|
268
|
-
* - `ascending('_id')`
|
|
267
|
+
* - [`limit(50)`](https://www.wix.com/velo/reference/wix-blog-backend/tags/tagsquerybuilder/limit)
|
|
268
|
+
* - [`ascending('_id')`](https://www.wix.com/velo/reference/wix-blog-backend/tags/tagsquerybuilder/ascending)
|
|
269
269
|
*
|
|
270
|
-
* The following `TagQueryBuilder` functions are supported for `queryTags()`. For a full description of the Tags object, see the object returned for the [`items`](https://www.wix.com/velo/reference/wix-blog-backend/
|
|
270
|
+
* The following `TagQueryBuilder` functions are supported for `queryTags()`. For a full description of the Tags object, see the object returned for the [`items`](https://www.wix.com/velo/reference/wix-blog-backend/tags/tagsqueryresult/items) property in [`TagsQueryResult`](https://www.wix.com/velo/reference/wix-blog-backend/tags/tagsqueryresult).
|
|
271
271
|
* @public
|
|
272
|
+
* @documentationMaturity preview
|
|
272
273
|
* @param options - Options specifying which fields to return.
|
|
273
274
|
*/
|
|
274
275
|
function queryTags(options) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blog-v3-tag.universal.js","sourceRoot":"","sources":["../../../src/blog-v3-tag.univers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EAAE,CAAO,OAAY,EAAE,EAAE;;YAC3B,MAAM,OAAO,GAAG,sBAAsB,CAAC,SAAS,iCAC3C,OAAO,GACP,CAAC,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,EAAE,CAAC,EAClB,CAAC;YAEH,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,UAAU,+CAAvB,WAAW,CAAgB,CAAC;YAC5B,IAAI;gBACF,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;gBACjD,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,SAAS,+CAAtB,WAAW,EAAc,MAAM,CAAC,CAAC;gBACjC,OAAO,MAAM,CAAC;aACf;YAAC,OAAO,GAAG,EAAE;gBACZ,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,+CAApB,WAAW,EAAY,GAAG,CAAC,CAAC;gBAC5B,MAAM,GAAG,CAAC;aACX;QACH,CAAC,CAAA;QACD,kBAAkB,EAAE,CAAC,GAAG,IAAW,EAAE,EAAE,CAAC,mBAAmB,CAAC,IAAI,CAAC;QACjE,mBAAmB,EAAE,CAAC,EAAE,IAAI,EAAO,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC;QACtD,gBAAgB,EAAE,CAAC,GAAQ,EAAE,EAAE;YAC7B,MAAM,gBAAgB,GAAG,qBAAc,CAAC,GAAG,EAAE,qBAAqB,CAAC,CAAC;YAEpE,MAAM,gBAAgB,CAAC;QACzB,CAAC;QACD,YAAY,EAAE,QAAQ;QACtB,mBAAmB,EAAE,4CAAqC,CAAC,aAAa,CAAC;KAC1E,CAAC,CAAC,EAAE,4BAA4B,EAAE,IAAI,EAAE,CAAC,CAAC;AAC7C,CAAC;AA5DD,8BA4DC"}
|
|
@@ -29,16 +29,16 @@ export declare function listCategories(payload: ListCategoriesRequest): RequestO
|
|
|
29
29
|
* Creates a query to retrieve a list of categories.
|
|
30
30
|
*
|
|
31
31
|
*
|
|
32
|
-
* The `queryCategories()` function builds a query to retrieve a list of up to 100 categories per language, and returns a [`CategoriesQueryBuilder`](https://www.wix.com/velo/reference/wix-blog-backend/
|
|
32
|
+
* The `queryCategories()` function builds a query to retrieve a list of up to 100 categories per language, and returns a [`CategoriesQueryBuilder`](https://www.wix.com/velo/reference/wix-blog-backend/categories/categoriesquerybuilder) object.
|
|
33
33
|
*
|
|
34
|
-
* The returned object contains the query definition, which is typically used to run the query using the [`find()`](https://www.wix.com/velo/reference/wix-blog-backend/
|
|
34
|
+
* The returned object contains the query definition, which is typically used to run the query using the [`find()`](https://www.wix.com/velo/reference/wix-blog-backend/categories/categoriesquerybuilder/find) function.
|
|
35
35
|
*
|
|
36
36
|
* You can refine the query by chaining `CategoriesQueryBuilder` functions to the query. `CategoriesQueryBuilder` functions enable you to sort, filter, and control the results that `queryCategories` returns. Any functions chained to the `queryCategories()` function are applied in the order that they are called.
|
|
37
37
|
*
|
|
38
38
|
* `queryCategories()` runs with these `CategoriesQueryBuilder` defaults, which you can override.
|
|
39
|
-
* - [`limit(100)`](https://www.wix.com/velo/reference/wix-blog-backend/
|
|
40
|
-
* - [`ascending(displayPosition)`](https://www.wix.com/velo/reference/wix-blog-backend/
|
|
39
|
+
* - [`limit(100)`](https://www.wix.com/velo/reference/wix-blog-backend/categories/categoriesquerybuilder/limit)
|
|
40
|
+
* - [`ascending(displayPosition)`](https://www.wix.com/velo/reference/wix-blog-backend/categories/categoriesquerybuilder/ascending)
|
|
41
41
|
*
|
|
42
|
-
* The following `CategoriesQueryBuilder` functions are supported for `queryCategories()`. For a full description of the `Categories` object, see the object returned for the [`items`](https://www.wix.com/velo/reference/wix-blog-backend/
|
|
42
|
+
* The following `CategoriesQueryBuilder` functions are supported for `queryCategories()`. For a full description of the `Categories` object, see the object returned for the [`items`](https://www.wix.com/velo/reference/wix-blog-backend/categories/categoriesqueryresult/items) property in [`CategoriesQueryResult`](https://www.wix.com/velo/reference/wix-blog-backend/categories/categoriesqueryresult).
|
|
43
43
|
*/
|
|
44
44
|
export declare function queryCategories(payload: QueryCategoriesRequest): RequestOptionsFactory<QueryCategoriesResponse>;
|
|
@@ -301,17 +301,17 @@ export function listCategories(payload) {
|
|
|
301
301
|
* Creates a query to retrieve a list of categories.
|
|
302
302
|
*
|
|
303
303
|
*
|
|
304
|
-
* The `queryCategories()` function builds a query to retrieve a list of up to 100 categories per language, and returns a [`CategoriesQueryBuilder`](https://www.wix.com/velo/reference/wix-blog-backend/
|
|
304
|
+
* The `queryCategories()` function builds a query to retrieve a list of up to 100 categories per language, and returns a [`CategoriesQueryBuilder`](https://www.wix.com/velo/reference/wix-blog-backend/categories/categoriesquerybuilder) object.
|
|
305
305
|
*
|
|
306
|
-
* The returned object contains the query definition, which is typically used to run the query using the [`find()`](https://www.wix.com/velo/reference/wix-blog-backend/
|
|
306
|
+
* The returned object contains the query definition, which is typically used to run the query using the [`find()`](https://www.wix.com/velo/reference/wix-blog-backend/categories/categoriesquerybuilder/find) function.
|
|
307
307
|
*
|
|
308
308
|
* You can refine the query by chaining `CategoriesQueryBuilder` functions to the query. `CategoriesQueryBuilder` functions enable you to sort, filter, and control the results that `queryCategories` returns. Any functions chained to the `queryCategories()` function are applied in the order that they are called.
|
|
309
309
|
*
|
|
310
310
|
* `queryCategories()` runs with these `CategoriesQueryBuilder` defaults, which you can override.
|
|
311
|
-
* - [`limit(100)`](https://www.wix.com/velo/reference/wix-blog-backend/
|
|
312
|
-
* - [`ascending(displayPosition)`](https://www.wix.com/velo/reference/wix-blog-backend/
|
|
311
|
+
* - [`limit(100)`](https://www.wix.com/velo/reference/wix-blog-backend/categories/categoriesquerybuilder/limit)
|
|
312
|
+
* - [`ascending(displayPosition)`](https://www.wix.com/velo/reference/wix-blog-backend/categories/categoriesquerybuilder/ascending)
|
|
313
313
|
*
|
|
314
|
-
* The following `CategoriesQueryBuilder` functions are supported for `queryCategories()`. For a full description of the `Categories` object, see the object returned for the [`items`](https://www.wix.com/velo/reference/wix-blog-backend/
|
|
314
|
+
* The following `CategoriesQueryBuilder` functions are supported for `queryCategories()`. For a full description of the `Categories` object, see the object returned for the [`items`](https://www.wix.com/velo/reference/wix-blog-backend/categories/categoriesqueryresult/items) property in [`CategoriesQueryResult`](https://www.wix.com/velo/reference/wix-blog-backend/categories/categoriesqueryresult).
|
|
315
315
|
*/
|
|
316
316
|
export function queryCategories(payload) {
|
|
317
317
|
const { toJSON: toReq, fromJSON: fromReq } = serializer(_queryCategoriesRequest, {});
|
|
@@ -42,7 +42,7 @@ export interface Category {
|
|
|
42
42
|
/** Position of the category in the [Category Menu](https://support.wix.com/en/article/wix-blog-adding-and-customizing-a-category-menu). Categories with lower display position are displayed first. */
|
|
43
43
|
displayPosition?: number | null;
|
|
44
44
|
/**
|
|
45
|
-
* ID of the category's translations when [Wix Multilingual](https://wix.
|
|
45
|
+
* ID of the category's translations when [Wix Multilingual](https://support.wix.com/en/article/wix-multilingual-translating-your-blog) is installed on a site. All translations of a single category will share the same `translationId`.
|
|
46
46
|
* @readonly
|
|
47
47
|
*/
|
|
48
48
|
translationId?: string | null;
|
|
@@ -550,18 +550,19 @@ export interface ListCategoriesOptions {
|
|
|
550
550
|
* Creates a query to retrieve a list of categories.
|
|
551
551
|
*
|
|
552
552
|
*
|
|
553
|
-
* The `queryCategories()` function builds a query to retrieve a list of up to 100 categories per language, and returns a [`CategoriesQueryBuilder`](https://www.wix.com/velo/reference/wix-blog-backend/
|
|
553
|
+
* The `queryCategories()` function builds a query to retrieve a list of up to 100 categories per language, and returns a [`CategoriesQueryBuilder`](https://www.wix.com/velo/reference/wix-blog-backend/categories/categoriesquerybuilder) object.
|
|
554
554
|
*
|
|
555
|
-
* The returned object contains the query definition, which is typically used to run the query using the [`find()`](https://www.wix.com/velo/reference/wix-blog-backend/
|
|
555
|
+
* The returned object contains the query definition, which is typically used to run the query using the [`find()`](https://www.wix.com/velo/reference/wix-blog-backend/categories/categoriesquerybuilder/find) function.
|
|
556
556
|
*
|
|
557
557
|
* You can refine the query by chaining `CategoriesQueryBuilder` functions to the query. `CategoriesQueryBuilder` functions enable you to sort, filter, and control the results that `queryCategories` returns. Any functions chained to the `queryCategories()` function are applied in the order that they are called.
|
|
558
558
|
*
|
|
559
559
|
* `queryCategories()` runs with these `CategoriesQueryBuilder` defaults, which you can override.
|
|
560
|
-
* - [`limit(100)`](https://www.wix.com/velo/reference/wix-blog-backend/
|
|
561
|
-
* - [`ascending(displayPosition)`](https://www.wix.com/velo/reference/wix-blog-backend/
|
|
560
|
+
* - [`limit(100)`](https://www.wix.com/velo/reference/wix-blog-backend/categories/categoriesquerybuilder/limit)
|
|
561
|
+
* - [`ascending(displayPosition)`](https://www.wix.com/velo/reference/wix-blog-backend/categories/categoriesquerybuilder/ascending)
|
|
562
562
|
*
|
|
563
|
-
* The following `CategoriesQueryBuilder` functions are supported for `queryCategories()`. For a full description of the `Categories` object, see the object returned for the [`items`](https://www.wix.com/velo/reference/wix-blog-backend/
|
|
563
|
+
* The following `CategoriesQueryBuilder` functions are supported for `queryCategories()`. For a full description of the `Categories` object, see the object returned for the [`items`](https://www.wix.com/velo/reference/wix-blog-backend/categories/categoriesqueryresult/items) property in [`CategoriesQueryResult`](https://www.wix.com/velo/reference/wix-blog-backend/categories/categoriesqueryresult).
|
|
564
564
|
* @public
|
|
565
|
+
* @documentationMaturity preview
|
|
565
566
|
* @param options - Options specifying which fields to return.
|
|
566
567
|
*/
|
|
567
568
|
export declare function queryCategories(options?: QueryCategoriesOptions): CategoriesQueryBuilder;
|
|
@@ -600,44 +601,61 @@ export interface CategoriesQueryResult extends QueryOffsetResult {
|
|
|
600
601
|
export interface CategoriesQueryBuilder {
|
|
601
602
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
602
603
|
* @param value - Value to compare against.
|
|
604
|
+
* @documentationMaturity preview
|
|
603
605
|
*/
|
|
604
606
|
eq: (propertyName: string, value: any) => CategoriesQueryBuilder;
|
|
605
607
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
606
608
|
* @param value - Value to compare against.
|
|
609
|
+
* @documentationMaturity preview
|
|
607
610
|
*/
|
|
608
611
|
ne: (propertyName: string, value: any) => CategoriesQueryBuilder;
|
|
609
612
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
610
613
|
* @param value - Value to compare against.
|
|
614
|
+
* @documentationMaturity preview
|
|
611
615
|
*/
|
|
612
616
|
ge: (propertyName: string, value: any) => CategoriesQueryBuilder;
|
|
613
617
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
614
618
|
* @param value - Value to compare against.
|
|
619
|
+
* @documentationMaturity preview
|
|
615
620
|
*/
|
|
616
621
|
gt: (propertyName: string, value: any) => CategoriesQueryBuilder;
|
|
617
622
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
618
623
|
* @param value - Value to compare against.
|
|
624
|
+
* @documentationMaturity preview
|
|
619
625
|
*/
|
|
620
626
|
le: (propertyName: string, value: any) => CategoriesQueryBuilder;
|
|
621
627
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
622
628
|
* @param value - Value to compare against.
|
|
629
|
+
* @documentationMaturity preview
|
|
623
630
|
*/
|
|
624
631
|
lt: (propertyName: string, value: any) => CategoriesQueryBuilder;
|
|
625
632
|
/** @param propertyName - Property whose value is compared with `string`.
|
|
626
633
|
* @param string - String to compare against. Case-insensitive.
|
|
634
|
+
* @documentationMaturity preview
|
|
627
635
|
*/
|
|
628
636
|
startsWith: (propertyName: string, value: string) => CategoriesQueryBuilder;
|
|
629
637
|
/** @param propertyName - Property whose value is compared with `values`.
|
|
630
638
|
* @param values - List of values to compare against.
|
|
639
|
+
* @documentationMaturity preview
|
|
631
640
|
*/
|
|
632
641
|
hasSome: (propertyName: string, value: any[]) => CategoriesQueryBuilder;
|
|
633
|
-
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
642
|
+
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
643
|
+
* @documentationMaturity preview
|
|
644
|
+
*/
|
|
634
645
|
ascending: (...propertyNames: string[]) => CategoriesQueryBuilder;
|
|
635
|
-
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
646
|
+
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
647
|
+
* @documentationMaturity preview
|
|
648
|
+
*/
|
|
636
649
|
descending: (...propertyNames: string[]) => CategoriesQueryBuilder;
|
|
637
|
-
/** @param limit - Number of items to return, which is also the `pageSize` of the results object.
|
|
650
|
+
/** @param limit - Number of items to return, which is also the `pageSize` of the results object.
|
|
651
|
+
* @documentationMaturity preview
|
|
652
|
+
*/
|
|
638
653
|
limit: (limit: number) => CategoriesQueryBuilder;
|
|
639
|
-
/** @param skip - Number of items to skip in the query results before returning the results.
|
|
654
|
+
/** @param skip - Number of items to skip in the query results before returning the results.
|
|
655
|
+
* @documentationMaturity preview
|
|
656
|
+
*/
|
|
640
657
|
skip: (skip: number) => CategoriesQueryBuilder;
|
|
658
|
+
/** @documentationMaturity preview */
|
|
641
659
|
find: () => Promise<CategoriesQueryResult>;
|
|
642
660
|
}
|
|
643
661
|
export {};
|
|
@@ -243,18 +243,19 @@ export function listCategories(options) {
|
|
|
243
243
|
* Creates a query to retrieve a list of categories.
|
|
244
244
|
*
|
|
245
245
|
*
|
|
246
|
-
* The `queryCategories()` function builds a query to retrieve a list of up to 100 categories per language, and returns a [`CategoriesQueryBuilder`](https://www.wix.com/velo/reference/wix-blog-backend/
|
|
246
|
+
* The `queryCategories()` function builds a query to retrieve a list of up to 100 categories per language, and returns a [`CategoriesQueryBuilder`](https://www.wix.com/velo/reference/wix-blog-backend/categories/categoriesquerybuilder) object.
|
|
247
247
|
*
|
|
248
|
-
* The returned object contains the query definition, which is typically used to run the query using the [`find()`](https://www.wix.com/velo/reference/wix-blog-backend/
|
|
248
|
+
* The returned object contains the query definition, which is typically used to run the query using the [`find()`](https://www.wix.com/velo/reference/wix-blog-backend/categories/categoriesquerybuilder/find) function.
|
|
249
249
|
*
|
|
250
250
|
* You can refine the query by chaining `CategoriesQueryBuilder` functions to the query. `CategoriesQueryBuilder` functions enable you to sort, filter, and control the results that `queryCategories` returns. Any functions chained to the `queryCategories()` function are applied in the order that they are called.
|
|
251
251
|
*
|
|
252
252
|
* `queryCategories()` runs with these `CategoriesQueryBuilder` defaults, which you can override.
|
|
253
|
-
* - [`limit(100)`](https://www.wix.com/velo/reference/wix-blog-backend/
|
|
254
|
-
* - [`ascending(displayPosition)`](https://www.wix.com/velo/reference/wix-blog-backend/
|
|
253
|
+
* - [`limit(100)`](https://www.wix.com/velo/reference/wix-blog-backend/categories/categoriesquerybuilder/limit)
|
|
254
|
+
* - [`ascending(displayPosition)`](https://www.wix.com/velo/reference/wix-blog-backend/categories/categoriesquerybuilder/ascending)
|
|
255
255
|
*
|
|
256
|
-
* The following `CategoriesQueryBuilder` functions are supported for `queryCategories()`. For a full description of the `Categories` object, see the object returned for the [`items`](https://www.wix.com/velo/reference/wix-blog-backend/
|
|
256
|
+
* The following `CategoriesQueryBuilder` functions are supported for `queryCategories()`. For a full description of the `Categories` object, see the object returned for the [`items`](https://www.wix.com/velo/reference/wix-blog-backend/categories/categoriesqueryresult/items) property in [`CategoriesQueryResult`](https://www.wix.com/velo/reference/wix-blog-backend/categories/categoriesqueryresult).
|
|
257
257
|
* @public
|
|
258
|
+
* @documentationMaturity preview
|
|
258
259
|
* @param options - Options specifying which fields to return.
|
|
259
260
|
*/
|
|
260
261
|
export function queryCategories(options) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blog-v3-category.universal.js","sourceRoot":"","sources":["../../../src/blog-v3-category.universal.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,UAAU,EACV,cAAc,EACd,qCAAqC,GACtC,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,2BAA2B,MAAM,yBAAyB,CAAC;AACvE,aAAa;AACb,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCA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AAC,GAAG,EAAE,qBAAqB,EAAE;gBAClE,SAAS;aACV,CAAC,CAAC;YACH,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,+CAApB,WAAW,EAAY,GAAG,CAAC,CAAC;YAE5B,MAAM,gBAAgB,CAAC;SACxB;;CACF;AAgBD
|
|
1
|
+
{"version":3,"file":"blog-v3-category.universal.js","sourceRoot":"","sources":["../../../src/blog-v3-category.universal.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,UAAU,EACV,cAAc,EACd,qCAAqC,GACtC,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,2BAA2B,MAAM,yBAAyB,CAAC;AACvE,aAAa;AACb,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;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;AAED,MAAM,CAAC,MAAM,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;AAyJ5B,MAAM,CAAN,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,KAAL,KAAK,QAWhB;AAyPD,MAAM,CAAN,IAAY,SAGX;AAH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E,MAAM,gBAAgB,CAAC;QACzB,CAAC;QACD,YAAY,EAAE,QAAQ;QACtB,mBAAmB,EAAE,qCAAqC,CAAC,aAAa,CAAC;KAC1E,CAAC,CAAC,EAAE,4BAA4B,EAAE,IAAI,EAAE,CAAC,CAAC;AAC7C,CAAC"}
|
|
@@ -32,21 +32,21 @@ export declare function listPosts(payload: ListPostsRequest): RequestOptionsFact
|
|
|
32
32
|
* Creates a query to retrieve a list of posts.
|
|
33
33
|
*
|
|
34
34
|
*
|
|
35
|
-
* The `queryPosts()` function builds a query to retrieve a list of up to 100 posts, and returns a [`PostsQueryBuilder`](https://www.wix.com/velo/reference/wix-blog-backend/
|
|
35
|
+
* The `queryPosts()` function builds a query to retrieve a list of up to 100 posts, and returns a [`PostsQueryBuilder`](https://www.wix.com/velo/reference/wix-blog-backend/posts/postsquerybuilder) object.
|
|
36
36
|
*
|
|
37
|
-
* The returned object contains the query definition which is typically used to run the query using the [`find()`](https://www.wix.com/velo/reference/wix-blog-backend/
|
|
37
|
+
* The returned object contains the query definition which is typically used to run the query using the [`find()`](https://www.wix.com/velo/reference/wix-blog-backend/posts/postsquerybuilder/find) function.
|
|
38
38
|
*
|
|
39
39
|
* You can refine the query by chaining `PostsQueryBuilder` functions onto the query. `PostsQueryBuilder` functions enable you to sort, filter, and control the results that `queryPosts()` returns.
|
|
40
40
|
*
|
|
41
41
|
* `queryPosts()` runs with these `PostsQueryBuilder` defaults that can be overridden:
|
|
42
|
-
* + `limit(50)`
|
|
43
|
-
* + `descending('firstPublishedDate')`
|
|
42
|
+
* + [`limit(50)`](https://www.wix.com/velo/reference/wix-blog-backend/posts/postsquerybuilder/limit)
|
|
43
|
+
* + [`descending('firstPublishedDate')`](https://www.wix.com/velo/reference/wix-blog-backend/posts/postsquerybuilder/descending)
|
|
44
44
|
*
|
|
45
45
|
* Note that the default limit is `'50'`, but the max limit is `'100'`.
|
|
46
46
|
*
|
|
47
47
|
* To learn how to query posts, refer to the table below.
|
|
48
48
|
*
|
|
49
|
-
* The following `PostsQueryBuilder` functions are supported for the `queryPosts()` function. For a full description of the Posts object, see the object returned for the `items` property in `PostsQueryResult
|
|
49
|
+
* The following `PostsQueryBuilder` functions are supported for the `queryPosts()` function. For a full description of the Posts object, see the object returned for the [`items`](https://www.wix.com/velo/reference/wix-blog-backend/posts/postsqueryresult/items) property in [`PostsQueryResult`](https://www.wix.com/velo/reference/wix-blog-backend/posts/postsqueryresult).
|
|
50
50
|
*/
|
|
51
51
|
export declare function queryPosts(payload: QueryPostsRequest): RequestOptionsFactory<QueryPostsResponse>;
|
|
52
52
|
/**
|
|
@@ -671,21 +671,21 @@ export function listPosts(payload) {
|
|
|
671
671
|
* Creates a query to retrieve a list of posts.
|
|
672
672
|
*
|
|
673
673
|
*
|
|
674
|
-
* The `queryPosts()` function builds a query to retrieve a list of up to 100 posts, and returns a [`PostsQueryBuilder`](https://www.wix.com/velo/reference/wix-blog-backend/
|
|
674
|
+
* The `queryPosts()` function builds a query to retrieve a list of up to 100 posts, and returns a [`PostsQueryBuilder`](https://www.wix.com/velo/reference/wix-blog-backend/posts/postsquerybuilder) object.
|
|
675
675
|
*
|
|
676
|
-
* The returned object contains the query definition which is typically used to run the query using the [`find()`](https://www.wix.com/velo/reference/wix-blog-backend/
|
|
676
|
+
* The returned object contains the query definition which is typically used to run the query using the [`find()`](https://www.wix.com/velo/reference/wix-blog-backend/posts/postsquerybuilder/find) function.
|
|
677
677
|
*
|
|
678
678
|
* You can refine the query by chaining `PostsQueryBuilder` functions onto the query. `PostsQueryBuilder` functions enable you to sort, filter, and control the results that `queryPosts()` returns.
|
|
679
679
|
*
|
|
680
680
|
* `queryPosts()` runs with these `PostsQueryBuilder` defaults that can be overridden:
|
|
681
|
-
* + `limit(50)`
|
|
682
|
-
* + `descending('firstPublishedDate')`
|
|
681
|
+
* + [`limit(50)`](https://www.wix.com/velo/reference/wix-blog-backend/posts/postsquerybuilder/limit)
|
|
682
|
+
* + [`descending('firstPublishedDate')`](https://www.wix.com/velo/reference/wix-blog-backend/posts/postsquerybuilder/descending)
|
|
683
683
|
*
|
|
684
684
|
* Note that the default limit is `'50'`, but the max limit is `'100'`.
|
|
685
685
|
*
|
|
686
686
|
* To learn how to query posts, refer to the table below.
|
|
687
687
|
*
|
|
688
|
-
* The following `PostsQueryBuilder` functions are supported for the `queryPosts()` function. For a full description of the Posts object, see the object returned for the `items` property in `PostsQueryResult
|
|
688
|
+
* The following `PostsQueryBuilder` functions are supported for the `queryPosts()` function. For a full description of the Posts object, see the object returned for the [`items`](https://www.wix.com/velo/reference/wix-blog-backend/posts/postsqueryresult/items) property in [`PostsQueryResult`](https://www.wix.com/velo/reference/wix-blog-backend/posts/postsqueryresult).
|
|
689
689
|
*/
|
|
690
690
|
export function queryPosts(payload) {
|
|
691
691
|
const { toJSON: toReq, fromJSON: fromReq } = serializer(_queryPostsRequest, {});
|
|
@@ -46,7 +46,7 @@ export interface Post {
|
|
|
46
46
|
/** Whether the post is pinned. If `true`, the post is placed at the top of the post list. */
|
|
47
47
|
pinned?: boolean;
|
|
48
48
|
/**
|
|
49
|
-
* [Category IDs](https://www.wix.com/velo/reference/wix-blog-backend/
|
|
49
|
+
* [Category IDs](https://www.wix.com/velo/reference/wix-blog-backend/categories) of the post.
|
|
50
50
|
*
|
|
51
51
|
*/
|
|
52
52
|
categoryIds?: string[];
|
|
@@ -2495,7 +2495,7 @@ export interface ListPostsOptions {
|
|
|
2495
2495
|
*/
|
|
2496
2496
|
categoryIds?: string[];
|
|
2497
2497
|
/**
|
|
2498
|
-
* List of tag IDs to filter for.
|
|
2498
|
+
* List of [tag IDs](https://www.wix.com/velo/reference/wix-blog-backend/tags) to filter for.
|
|
2499
2499
|
*
|
|
2500
2500
|
*
|
|
2501
2501
|
* Default: All tags
|
|
@@ -2545,22 +2545,23 @@ export interface ListPostsOptions {
|
|
|
2545
2545
|
* Creates a query to retrieve a list of posts.
|
|
2546
2546
|
*
|
|
2547
2547
|
*
|
|
2548
|
-
* The `queryPosts()` function builds a query to retrieve a list of up to 100 posts, and returns a [`PostsQueryBuilder`](https://www.wix.com/velo/reference/wix-blog-backend/
|
|
2548
|
+
* The `queryPosts()` function builds a query to retrieve a list of up to 100 posts, and returns a [`PostsQueryBuilder`](https://www.wix.com/velo/reference/wix-blog-backend/posts/postsquerybuilder) object.
|
|
2549
2549
|
*
|
|
2550
|
-
* The returned object contains the query definition which is typically used to run the query using the [`find()`](https://www.wix.com/velo/reference/wix-blog-backend/
|
|
2550
|
+
* The returned object contains the query definition which is typically used to run the query using the [`find()`](https://www.wix.com/velo/reference/wix-blog-backend/posts/postsquerybuilder/find) function.
|
|
2551
2551
|
*
|
|
2552
2552
|
* You can refine the query by chaining `PostsQueryBuilder` functions onto the query. `PostsQueryBuilder` functions enable you to sort, filter, and control the results that `queryPosts()` returns.
|
|
2553
2553
|
*
|
|
2554
2554
|
* `queryPosts()` runs with these `PostsQueryBuilder` defaults that can be overridden:
|
|
2555
|
-
* + `limit(50)`
|
|
2556
|
-
* + `descending('firstPublishedDate')`
|
|
2555
|
+
* + [`limit(50)`](https://www.wix.com/velo/reference/wix-blog-backend/posts/postsquerybuilder/limit)
|
|
2556
|
+
* + [`descending('firstPublishedDate')`](https://www.wix.com/velo/reference/wix-blog-backend/posts/postsquerybuilder/descending)
|
|
2557
2557
|
*
|
|
2558
2558
|
* Note that the default limit is `'50'`, but the max limit is `'100'`.
|
|
2559
2559
|
*
|
|
2560
2560
|
* To learn how to query posts, refer to the table below.
|
|
2561
2561
|
*
|
|
2562
|
-
* The following `PostsQueryBuilder` functions are supported for the `queryPosts()` function. For a full description of the Posts object, see the object returned for the `items` property in `PostsQueryResult
|
|
2562
|
+
* The following `PostsQueryBuilder` functions are supported for the `queryPosts()` function. For a full description of the Posts object, see the object returned for the [`items`](https://www.wix.com/velo/reference/wix-blog-backend/posts/postsqueryresult/items) property in [`PostsQueryResult`](https://www.wix.com/velo/reference/wix-blog-backend/posts/postsqueryresult).
|
|
2563
2563
|
* @public
|
|
2564
|
+
* @documentationMaturity preview
|
|
2564
2565
|
* @param options - Options specifying which fields to return.
|
|
2565
2566
|
*/
|
|
2566
2567
|
export declare function queryPosts(options?: QueryPostsOptions): PostsQueryBuilder;
|
|
@@ -2599,48 +2600,66 @@ export interface PostsQueryResult extends QueryOffsetResult {
|
|
|
2599
2600
|
export interface PostsQueryBuilder {
|
|
2600
2601
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
2601
2602
|
* @param value - Value to compare against.
|
|
2603
|
+
* @documentationMaturity preview
|
|
2602
2604
|
*/
|
|
2603
2605
|
eq: (propertyName: string, value: any) => PostsQueryBuilder;
|
|
2604
2606
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
2605
2607
|
* @param value - Value to compare against.
|
|
2608
|
+
* @documentationMaturity preview
|
|
2606
2609
|
*/
|
|
2607
2610
|
ne: (propertyName: string, value: any) => PostsQueryBuilder;
|
|
2608
2611
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
2609
2612
|
* @param value - Value to compare against.
|
|
2613
|
+
* @documentationMaturity preview
|
|
2610
2614
|
*/
|
|
2611
2615
|
ge: (propertyName: string, value: any) => PostsQueryBuilder;
|
|
2612
2616
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
2613
2617
|
* @param value - Value to compare against.
|
|
2618
|
+
* @documentationMaturity preview
|
|
2614
2619
|
*/
|
|
2615
2620
|
gt: (propertyName: string, value: any) => PostsQueryBuilder;
|
|
2616
2621
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
2617
2622
|
* @param value - Value to compare against.
|
|
2623
|
+
* @documentationMaturity preview
|
|
2618
2624
|
*/
|
|
2619
2625
|
le: (propertyName: string, value: any) => PostsQueryBuilder;
|
|
2620
2626
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
2621
2627
|
* @param value - Value to compare against.
|
|
2628
|
+
* @documentationMaturity preview
|
|
2622
2629
|
*/
|
|
2623
2630
|
lt: (propertyName: string, value: any) => PostsQueryBuilder;
|
|
2624
2631
|
/** @param propertyName - Property whose value is compared with `string`.
|
|
2625
2632
|
* @param string - String to compare against. Case-insensitive.
|
|
2633
|
+
* @documentationMaturity preview
|
|
2626
2634
|
*/
|
|
2627
2635
|
startsWith: (propertyName: string, value: string) => PostsQueryBuilder;
|
|
2628
2636
|
/** @param propertyName - Property whose value is compared with `values`.
|
|
2629
2637
|
* @param values - List of values to compare against.
|
|
2638
|
+
* @documentationMaturity preview
|
|
2630
2639
|
*/
|
|
2631
2640
|
hasSome: (propertyName: string, value: any[]) => PostsQueryBuilder;
|
|
2632
2641
|
/** @param propertyName - Property whose value is compared with `values`.
|
|
2633
2642
|
* @param values - List of values to compare against.
|
|
2643
|
+
* @documentationMaturity preview
|
|
2634
2644
|
*/
|
|
2635
2645
|
hasAll: (propertyName: string, value: any[]) => PostsQueryBuilder;
|
|
2636
|
-
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
2646
|
+
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
2647
|
+
* @documentationMaturity preview
|
|
2648
|
+
*/
|
|
2637
2649
|
ascending: (...propertyNames: string[]) => PostsQueryBuilder;
|
|
2638
|
-
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
2650
|
+
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
2651
|
+
* @documentationMaturity preview
|
|
2652
|
+
*/
|
|
2639
2653
|
descending: (...propertyNames: string[]) => PostsQueryBuilder;
|
|
2640
|
-
/** @param limit - Number of items to return, which is also the `pageSize` of the results object.
|
|
2654
|
+
/** @param limit - Number of items to return, which is also the `pageSize` of the results object.
|
|
2655
|
+
* @documentationMaturity preview
|
|
2656
|
+
*/
|
|
2641
2657
|
limit: (limit: number) => PostsQueryBuilder;
|
|
2642
|
-
/** @param skip - Number of items to skip in the query results before returning the results.
|
|
2658
|
+
/** @param skip - Number of items to skip in the query results before returning the results.
|
|
2659
|
+
* @documentationMaturity preview
|
|
2660
|
+
*/
|
|
2643
2661
|
skip: (skip: number) => PostsQueryBuilder;
|
|
2662
|
+
/** @documentationMaturity preview */
|
|
2644
2663
|
find: () => Promise<PostsQueryResult>;
|
|
2645
2664
|
}
|
|
2646
2665
|
/**
|
|
@@ -714,22 +714,23 @@ export function listPosts(options) {
|
|
|
714
714
|
* Creates a query to retrieve a list of posts.
|
|
715
715
|
*
|
|
716
716
|
*
|
|
717
|
-
* The `queryPosts()` function builds a query to retrieve a list of up to 100 posts, and returns a [`PostsQueryBuilder`](https://www.wix.com/velo/reference/wix-blog-backend/
|
|
717
|
+
* The `queryPosts()` function builds a query to retrieve a list of up to 100 posts, and returns a [`PostsQueryBuilder`](https://www.wix.com/velo/reference/wix-blog-backend/posts/postsquerybuilder) object.
|
|
718
718
|
*
|
|
719
|
-
* The returned object contains the query definition which is typically used to run the query using the [`find()`](https://www.wix.com/velo/reference/wix-blog-backend/
|
|
719
|
+
* The returned object contains the query definition which is typically used to run the query using the [`find()`](https://www.wix.com/velo/reference/wix-blog-backend/posts/postsquerybuilder/find) function.
|
|
720
720
|
*
|
|
721
721
|
* You can refine the query by chaining `PostsQueryBuilder` functions onto the query. `PostsQueryBuilder` functions enable you to sort, filter, and control the results that `queryPosts()` returns.
|
|
722
722
|
*
|
|
723
723
|
* `queryPosts()` runs with these `PostsQueryBuilder` defaults that can be overridden:
|
|
724
|
-
* + `limit(50)`
|
|
725
|
-
* + `descending('firstPublishedDate')`
|
|
724
|
+
* + [`limit(50)`](https://www.wix.com/velo/reference/wix-blog-backend/posts/postsquerybuilder/limit)
|
|
725
|
+
* + [`descending('firstPublishedDate')`](https://www.wix.com/velo/reference/wix-blog-backend/posts/postsquerybuilder/descending)
|
|
726
726
|
*
|
|
727
727
|
* Note that the default limit is `'50'`, but the max limit is `'100'`.
|
|
728
728
|
*
|
|
729
729
|
* To learn how to query posts, refer to the table below.
|
|
730
730
|
*
|
|
731
|
-
* The following `PostsQueryBuilder` functions are supported for the `queryPosts()` function. For a full description of the Posts object, see the object returned for the `items` property in `PostsQueryResult
|
|
731
|
+
* The following `PostsQueryBuilder` functions are supported for the `queryPosts()` function. For a full description of the Posts object, see the object returned for the [`items`](https://www.wix.com/velo/reference/wix-blog-backend/posts/postsqueryresult/items) property in [`PostsQueryResult`](https://www.wix.com/velo/reference/wix-blog-backend/posts/postsqueryresult).
|
|
732
732
|
* @public
|
|
733
|
+
* @documentationMaturity preview
|
|
733
734
|
* @param options - Options specifying which fields to return.
|
|
734
735
|
*/
|
|
735
736
|
export function queryPosts(options) {
|