@wix/stores 1.0.2 → 1.0.3
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/stores-poc-v1-collection.universal.d.ts +7 -2
- package/build/cjs/src/stores-poc-v1-collection.universal.js +1 -1
- package/build/cjs/src/stores-poc-v1-product.universal.d.ts +7 -2
- package/build/cjs/src/stores-poc-v1-product.universal.js +1 -1
- package/build/es/src/stores-poc-v1-collection.universal.d.ts +7 -2
- package/build/es/src/stores-poc-v1-collection.universal.js +1 -1
- package/build/es/src/stores-poc-v1-product.universal.d.ts +7 -2
- package/build/es/src/stores-poc-v1-product.universal.js +1 -1
- package/package.json +2 -2
|
@@ -168,13 +168,16 @@ export interface GetCollectionOptions {
|
|
|
168
168
|
}
|
|
169
169
|
/** @public */
|
|
170
170
|
export declare function queryCollections(): CollectionsQueryBuilder;
|
|
171
|
-
interface
|
|
171
|
+
interface QueryOffsetResult {
|
|
172
|
+
currentPage: number;
|
|
173
|
+
totalPages: number;
|
|
174
|
+
totalCount: number;
|
|
172
175
|
hasNext: () => boolean;
|
|
173
176
|
hasPrev: () => boolean;
|
|
174
177
|
length: number;
|
|
175
178
|
pageSize: number;
|
|
176
179
|
}
|
|
177
|
-
export interface CollectionsQueryResult extends
|
|
180
|
+
export interface CollectionsQueryResult extends QueryOffsetResult {
|
|
178
181
|
items: Collection[];
|
|
179
182
|
query: CollectionsQueryBuilder;
|
|
180
183
|
next: () => Promise<CollectionsQueryResult>;
|
|
@@ -205,6 +208,8 @@ export interface CollectionsQueryBuilder {
|
|
|
205
208
|
descending: (...propertyNames: string[]) => CollectionsQueryBuilder;
|
|
206
209
|
/** @param limit - Number of items to return, which is also the `pageSize` of the results object. */
|
|
207
210
|
limit: (limit: number) => CollectionsQueryBuilder;
|
|
211
|
+
/** @param skip - Number of items to skip in the query results before returning the results. */
|
|
212
|
+
skip: (skip: number) => CollectionsQueryBuilder;
|
|
208
213
|
find: () => Promise<CollectionsQueryResult>;
|
|
209
214
|
}
|
|
210
215
|
export {};
|
|
@@ -153,7 +153,7 @@ function queryCollections() {
|
|
|
153
153
|
const transformedError = velo_1.transformError(err, requestTransformation);
|
|
154
154
|
throw transformedError;
|
|
155
155
|
},
|
|
156
|
-
pagingMethod: '
|
|
156
|
+
pagingMethod: 'OFFSET',
|
|
157
157
|
transformationPaths: velo_1.resolveQueryFieldsTransformationPaths(_toVeloEntity),
|
|
158
158
|
})({ cursorWithEmptyFilterAndSort: true });
|
|
159
159
|
}
|
|
@@ -486,13 +486,16 @@ export interface GetProductOptions {
|
|
|
486
486
|
}
|
|
487
487
|
/** @public */
|
|
488
488
|
export declare function queryProducts(): ProductsQueryBuilder;
|
|
489
|
-
interface
|
|
489
|
+
interface QueryOffsetResult {
|
|
490
|
+
currentPage: number;
|
|
491
|
+
totalPages: number;
|
|
492
|
+
totalCount: number;
|
|
490
493
|
hasNext: () => boolean;
|
|
491
494
|
hasPrev: () => boolean;
|
|
492
495
|
length: number;
|
|
493
496
|
pageSize: number;
|
|
494
497
|
}
|
|
495
|
-
export interface ProductsQueryResult extends
|
|
498
|
+
export interface ProductsQueryResult extends QueryOffsetResult {
|
|
496
499
|
items: Product[];
|
|
497
500
|
query: ProductsQueryBuilder;
|
|
498
501
|
next: () => Promise<ProductsQueryResult>;
|
|
@@ -539,6 +542,8 @@ export interface ProductsQueryBuilder {
|
|
|
539
542
|
descending: (...propertyNames: string[]) => ProductsQueryBuilder;
|
|
540
543
|
/** @param limit - Number of items to return, which is also the `pageSize` of the results object. */
|
|
541
544
|
limit: (limit: number) => ProductsQueryBuilder;
|
|
545
|
+
/** @param skip - Number of items to skip in the query results before returning the results. */
|
|
546
|
+
skip: (skip: number) => ProductsQueryBuilder;
|
|
542
547
|
find: () => Promise<ProductsQueryResult>;
|
|
543
548
|
}
|
|
544
549
|
export {};
|
|
@@ -204,7 +204,7 @@ function queryProducts() {
|
|
|
204
204
|
const transformedError = velo_1.transformError(err, requestTransformation);
|
|
205
205
|
throw transformedError;
|
|
206
206
|
},
|
|
207
|
-
pagingMethod: '
|
|
207
|
+
pagingMethod: 'OFFSET',
|
|
208
208
|
transformationPaths: velo_1.resolveQueryFieldsTransformationPaths(_toVeloEntity),
|
|
209
209
|
})({ cursorWithEmptyFilterAndSort: true });
|
|
210
210
|
}
|
|
@@ -168,13 +168,16 @@ export interface GetCollectionOptions {
|
|
|
168
168
|
}
|
|
169
169
|
/** @public */
|
|
170
170
|
export declare function queryCollections(): CollectionsQueryBuilder;
|
|
171
|
-
interface
|
|
171
|
+
interface QueryOffsetResult {
|
|
172
|
+
currentPage: number;
|
|
173
|
+
totalPages: number;
|
|
174
|
+
totalCount: number;
|
|
172
175
|
hasNext: () => boolean;
|
|
173
176
|
hasPrev: () => boolean;
|
|
174
177
|
length: number;
|
|
175
178
|
pageSize: number;
|
|
176
179
|
}
|
|
177
|
-
export interface CollectionsQueryResult extends
|
|
180
|
+
export interface CollectionsQueryResult extends QueryOffsetResult {
|
|
178
181
|
items: Collection[];
|
|
179
182
|
query: CollectionsQueryBuilder;
|
|
180
183
|
next: () => Promise<CollectionsQueryResult>;
|
|
@@ -205,6 +208,8 @@ export interface CollectionsQueryBuilder {
|
|
|
205
208
|
descending: (...propertyNames: string[]) => CollectionsQueryBuilder;
|
|
206
209
|
/** @param limit - Number of items to return, which is also the `pageSize` of the results object. */
|
|
207
210
|
limit: (limit: number) => CollectionsQueryBuilder;
|
|
211
|
+
/** @param skip - Number of items to skip in the query results before returning the results. */
|
|
212
|
+
skip: (skip: number) => CollectionsQueryBuilder;
|
|
208
213
|
find: () => Promise<CollectionsQueryResult>;
|
|
209
214
|
}
|
|
210
215
|
export {};
|
|
@@ -130,7 +130,7 @@ export function queryCollections() {
|
|
|
130
130
|
const transformedError = transformError(err, requestTransformation);
|
|
131
131
|
throw transformedError;
|
|
132
132
|
},
|
|
133
|
-
pagingMethod: '
|
|
133
|
+
pagingMethod: 'OFFSET',
|
|
134
134
|
transformationPaths: resolveQueryFieldsTransformationPaths(_toVeloEntity),
|
|
135
135
|
})({ cursorWithEmptyFilterAndSort: true });
|
|
136
136
|
}
|
|
@@ -486,13 +486,16 @@ export interface GetProductOptions {
|
|
|
486
486
|
}
|
|
487
487
|
/** @public */
|
|
488
488
|
export declare function queryProducts(): ProductsQueryBuilder;
|
|
489
|
-
interface
|
|
489
|
+
interface QueryOffsetResult {
|
|
490
|
+
currentPage: number;
|
|
491
|
+
totalPages: number;
|
|
492
|
+
totalCount: number;
|
|
490
493
|
hasNext: () => boolean;
|
|
491
494
|
hasPrev: () => boolean;
|
|
492
495
|
length: number;
|
|
493
496
|
pageSize: number;
|
|
494
497
|
}
|
|
495
|
-
export interface ProductsQueryResult extends
|
|
498
|
+
export interface ProductsQueryResult extends QueryOffsetResult {
|
|
496
499
|
items: Product[];
|
|
497
500
|
query: ProductsQueryBuilder;
|
|
498
501
|
next: () => Promise<ProductsQueryResult>;
|
|
@@ -539,6 +542,8 @@ export interface ProductsQueryBuilder {
|
|
|
539
542
|
descending: (...propertyNames: string[]) => ProductsQueryBuilder;
|
|
540
543
|
/** @param limit - Number of items to return, which is also the `pageSize` of the results object. */
|
|
541
544
|
limit: (limit: number) => ProductsQueryBuilder;
|
|
545
|
+
/** @param skip - Number of items to skip in the query results before returning the results. */
|
|
546
|
+
skip: (skip: number) => ProductsQueryBuilder;
|
|
542
547
|
find: () => Promise<ProductsQueryResult>;
|
|
543
548
|
}
|
|
544
549
|
export {};
|
|
@@ -181,7 +181,7 @@ export function queryProducts() {
|
|
|
181
181
|
const transformedError = transformError(err, requestTransformation);
|
|
182
182
|
throw transformedError;
|
|
183
183
|
},
|
|
184
|
-
pagingMethod: '
|
|
184
|
+
pagingMethod: 'OFFSET',
|
|
185
185
|
transformationPaths: resolveQueryFieldsTransformationPaths(_toVeloEntity),
|
|
186
186
|
})({ cursorWithEmptyFilterAndSort: true });
|
|
187
187
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/stores",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"groupId": "com.wixpress.public-sdk-autogen"
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
|
-
"falconPackageHash": "
|
|
36
|
+
"falconPackageHash": "83beac66eb91e6a94012ab82e33bd32a3fcbb7917b901000e795b380"
|
|
37
37
|
}
|