@ikas/storefront-api 4.15.0-beta.2 → 4.15.0-beta.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.
@@ -7,6 +7,7 @@ export declare type QueryParams = {
7
7
  id?: StringFilterInput | null;
8
8
  includeDeleted?: boolean | null;
9
9
  input: ListCustomerReviewInput;
10
+ locale?: string | null;
10
11
  pagination?: PaginationInput | null;
11
12
  productId?: string | null;
12
13
  };
@@ -21,6 +22,7 @@ export declare enum ResponseField {
21
22
  DATA__ID = "data.id",
22
23
  DATA__IMAGE_IDS = "data.imageIds",
23
24
  DATA__LAST_NAME = "data.lastName",
25
+ DATA__LOCALE = "data.locale",
24
26
  DATA__ORDER_ID = "data.orderId",
25
27
  DATA__ORDER_NUMBER = "data.orderNumber",
26
28
  DATA__PRODUCT_ID = "data.productId",
@@ -1 +1 @@
1
- import{__awaiter as t,__generator as e}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as a,APIResponse as n,fetchQuery as d}from"@ikas/fe-api-client";var i,r=function(i,r,A){return t(void 0,void 0,void 0,(function(){var t,o,_,u;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,d({operationName:"listCustomerReviews",config:A,variables:i,allReturnFields:s,fields:r,query:function(t){return"\n\t\t\t\tquery listCustomerReviews (\n\t\t\t\t\t$hasImage: Boolean,\n\t\t\t\t\t$id: StringFilterInput,\n\t\t\t\t\t$includeDeleted: Boolean,\n\t\t\t\t\t$input: ListCustomerReviewInput!,\n\t\t\t\t\t$pagination: PaginationInput,\n\t\t\t\t\t$productId: String,\n\t\t\t\t) {\n\t\t\t\t\tlistCustomerReviews (\n\t\t\t\t\t\thasImage: $hasImage,\n\t\t\t\t\t\tid: $id,\n\t\t\t\t\t\tincludeDeleted: $includeDeleted,\n\t\t\t\t\t\tinput: $input,\n\t\t\t\t\t\tpagination: $pagination,\n\t\t\t\t\t\tproductId: $productId,\n\t\t\t\t\t) ".concat(t,"\n\t\t\t\t}\n\t\t\t")}})];case 1:return t=e.sent(),o=t.data,_=t.errors,[2,new n(null==o?void 0:o.listCustomerReviews,_)];case 2:return u=e.sent(),[2,a(u)];case 3:return[2]}}))}))},s="{count data {comment createdAt customerId deleted email firstName id imageIds lastName orderId orderNumber productId reply salesChannelId star status storefrontId title updatedAt } hasNext limit page }";!function(t){t.COUNT="count",t.DATA__COMMENT="data.comment",t.DATA__CREATED_AT="data.createdAt",t.DATA__CUSTOMER_ID="data.customerId",t.DATA__DELETED="data.deleted",t.DATA__EMAIL="data.email",t.DATA__FIRST_NAME="data.firstName",t.DATA__ID="data.id",t.DATA__IMAGE_IDS="data.imageIds",t.DATA__LAST_NAME="data.lastName",t.DATA__ORDER_ID="data.orderId",t.DATA__ORDER_NUMBER="data.orderNumber",t.DATA__PRODUCT_ID="data.productId",t.DATA__REPLY="data.reply",t.DATA__SALES_CHANNEL_ID="data.salesChannelId",t.DATA__STAR="data.star",t.DATA__STATUS="data.status",t.DATA__STOREFRONT_ID="data.storefrontId",t.DATA__TITLE="data.title",t.DATA__UPDATED_AT="data.updatedAt",t.HAS_NEXT="hasNext",t.LIMIT="limit",t.PAGE="page"}(i||(i={}));export{i as ResponseField,r as default};
1
+ import{__awaiter as t,__generator as e}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as a,APIResponse as n,fetchQuery as d}from"@ikas/fe-api-client";var i,r=function(i,r,A){return t(void 0,void 0,void 0,(function(){var t,o,_,l;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,d({operationName:"listCustomerReviews",config:A,variables:i,allReturnFields:s,fields:r,query:function(t){return"\n\t\t\t\tquery listCustomerReviews (\n\t\t\t\t\t$hasImage: Boolean,\n\t\t\t\t\t$id: StringFilterInput,\n\t\t\t\t\t$includeDeleted: Boolean,\n\t\t\t\t\t$input: ListCustomerReviewInput!,\n\t\t\t\t\t$locale: String,\n\t\t\t\t\t$pagination: PaginationInput,\n\t\t\t\t\t$productId: String,\n\t\t\t\t) {\n\t\t\t\t\tlistCustomerReviews (\n\t\t\t\t\t\thasImage: $hasImage,\n\t\t\t\t\t\tid: $id,\n\t\t\t\t\t\tincludeDeleted: $includeDeleted,\n\t\t\t\t\t\tinput: $input,\n\t\t\t\t\t\tlocale: $locale,\n\t\t\t\t\t\tpagination: $pagination,\n\t\t\t\t\t\tproductId: $productId,\n\t\t\t\t\t) ".concat(t,"\n\t\t\t\t}\n\t\t\t")}})];case 1:return t=e.sent(),o=t.data,_=t.errors,[2,new n(null==o?void 0:o.listCustomerReviews,_)];case 2:return l=e.sent(),[2,a(l)];case 3:return[2]}}))}))},s="{count data {comment createdAt customerId deleted email firstName id imageIds lastName locale orderId orderNumber productId reply salesChannelId star status storefrontId title updatedAt } hasNext limit page }";!function(t){t.COUNT="count",t.DATA__COMMENT="data.comment",t.DATA__CREATED_AT="data.createdAt",t.DATA__CUSTOMER_ID="data.customerId",t.DATA__DELETED="data.deleted",t.DATA__EMAIL="data.email",t.DATA__FIRST_NAME="data.firstName",t.DATA__ID="data.id",t.DATA__IMAGE_IDS="data.imageIds",t.DATA__LAST_NAME="data.lastName",t.DATA__LOCALE="data.locale",t.DATA__ORDER_ID="data.orderId",t.DATA__ORDER_NUMBER="data.orderNumber",t.DATA__PRODUCT_ID="data.productId",t.DATA__REPLY="data.reply",t.DATA__SALES_CHANNEL_ID="data.salesChannelId",t.DATA__STAR="data.star",t.DATA__STATUS="data.status",t.DATA__STOREFRONT_ID="data.storefrontId",t.DATA__TITLE="data.title",t.DATA__UPDATED_AT="data.updatedAt",t.HAS_NEXT="hasNext",t.LIMIT="limit",t.PAGE="page"}(i||(i={}));export{i as ResponseField,r as default};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/storefront-api",
3
- "version": "4.15.0-beta.2",
3
+ "version": "4.15.0-beta.3",
4
4
  "author": "ikas",
5
5
  "license": "ISC",
6
6
  "description": "API functions that returns models from the ikas-storefront-models package.",
@@ -17,8 +17,8 @@
17
17
  },
18
18
  "devDependencies": {
19
19
  "@rollup/plugin-commonjs": "^22.0.0",
20
- "@ikas/storefront-config": "^4.15.0-beta.2",
21
- "@ikas/storefront-models": "^4.15.0-beta.2",
20
+ "@ikas/storefront-config": "^4.15.0-beta.3",
21
+ "@ikas/storefront-models": "^4.15.0-beta.3",
22
22
  "@rollup/plugin-node-resolve": "^13.3.0",
23
23
  "rollup-plugin-rename-node-modules": "^1.2.0",
24
24
  "prettier": "^2.2.1",
@@ -34,8 +34,8 @@
34
34
  "@ikas/fe-api-client": "^1.0.19"
35
35
  },
36
36
  "peerDependencies": {
37
- "@ikas/storefront-config": "^4.15.0-beta.2",
38
- "@ikas/storefront-models": "^4.15.0-beta.2",
37
+ "@ikas/storefront-config": "^4.15.0-beta.3",
38
+ "@ikas/storefront-models": "^4.15.0-beta.3",
39
39
  "@ikas/fe-api-client": "^1.0.18",
40
40
  "axios": "^0.26.0",
41
41
  "ts-essentials": "^7.0.1"