@ikas/storefront 2.0.35-alpha.4 → 2.0.35-alpha.5
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.
|
@@ -50,7 +50,6 @@ export interface listCustomerReviewSummary {
|
|
|
50
50
|
listCustomerReviewSummary: listCustomerReviewSummary_listCustomerReviewSummary;
|
|
51
51
|
}
|
|
52
52
|
export interface listCustomerReviewSummaryVariables {
|
|
53
|
-
includeDeleted?: boolean | null;
|
|
54
53
|
pagination?: PaginationInput | null;
|
|
55
54
|
productId?: StringFilterInput | null;
|
|
56
55
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as t,__generator as e,__makeTemplateObject as
|
|
1
|
+
import{__awaiter as t,__generator as e,__makeTemplateObject as o}from'../../ext/tslib/tslib.es6.js';import i from'../../ext/graphql-tag/src/index.js';import"../../models/data/blog/index.js";import"../../models/data/brand/index.js";import"../../models/data/category/index.js";import"../../models/data/checkout/index.js";import"../../models/data/customer/address/index.js";import"../../models/data/customer/index.js";import"../../models/data/customer-review/index.js";import{IkasCustomerReviewSummary as r}from"../../models/data/customer-review-summary/index.js";import"../../models/data/html-meta-data/index.js";import"../../models/data/image/index.js";import"../../models/data/installment-info/index.js";import"../../models/data/order/index.js";import"../../models/data/order/line-item/index.js";import"mobx";import"../product-option-file/index.js";import"../../models/data/product/index.js";import"../../models/data/variant-type/index.js";import"../../models/data/product/variant/index.js";import"../../models/data/product/variant/price/index.js";import"../../models/data/product-attribute/index.js";import"../../models/data/product/attribute-value/index.js";import"../../models/data/product-filter/index.js";import"../../models/data/variant-type/variant-value/index.js";import"../../models/data/order-transaction/index.js";import"../../models/data/product-option-set/index.js";import"../../models/data/raffle/index.js";import"../../models/data/product-campaing/campaign/index.js";import"../../models/data/customer-attribute/index.js";import"../../models/data/customer-attribute/customer-attribute-sales-channel/index.js";import"../../models/theme/theme.js";import"../../models/theme/page/index.js";import"../../models/theme/component/prop/index.js";import"../../models/theme/page/component/prop-value/link.js";import"../../models/ui/brand-list/index.js";import"../../models/ui/blog-list/index.js";import"../../models/ui/blog-category-list/index.js";import"../../models/ui/category-list/index.js";import"../../models/ui/product-detail/index.js";import"../../models/ui/product-list/index.js";import"../../models/ui/product-attribute-detail/index.js";import"../../models/ui/product-attribute-list/index.js";import"../../models/ui/customer-review-list/index.js";import"../../models/ui/customer-review-summary-list/index.js";import"../../models/ui/validator/index.js";import"../../models/ui/validator/rules/index.js";import"../../models/ui/validator/form/login.js";import"../../models/ui/validator/form/address.js";import"../../models/ui/validator/form/register.js";import"../../models/ui/validator/form/contact-form.js";import"../../models/ui/validator/form/forgot-password.js";import"../../models/ui/validator/form/recover-password.js";import"../../models/ui/validator/form/account-info.js";import"../../models/ui/validator/form/raffle-form.js";import"../../models/ui/validator/form/customer-review.js";import"../../models/ui/raffle-list/index.js";import"../../models/theme/settings/index.js";import"../../models/theme/custom-data/index.js";import{apollo as d}from"../apollo.js";var a,n=function(){function n(){}return n.listCustomerReviewSummary=function(n){var s,m;return t(this,void 0,void 0,(function(){var t,l,p,u,c;return e(this,(function(e){switch(e.label){case 0:t=i(a||(a=o(["\n query listCustomerReviewSummary(\n $pagination: PaginationInput\n $productId: StringFilterInput\n ) {\n listCustomerReviewSummary(\n pagination: $pagination\n productId: $productId\n ) {\n count\n data {\n averageStar\n createdAt\n deleted\n id\n productId\n stars {\n count\n star\n }\n totalReview\n updatedAt\n }\n hasNext\n limit\n page\n }\n }\n "],["\n query listCustomerReviewSummary(\n $pagination: PaginationInput\n $productId: StringFilterInput\n ) {\n listCustomerReviewSummary(\n pagination: $pagination\n productId: $productId\n ) {\n count\n data {\n averageStar\n createdAt\n deleted\n id\n productId\n stars {\n count\n star\n }\n totalReview\n updatedAt\n }\n hasNext\n limit\n page\n }\n }\n "]))),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,d.getClient().query({query:t,variables:{productId:n.productId,pagination:n.pagination?{page:null===(s=n.pagination)||void 0===s?void 0:s.page,limit:null===(m=n.pagination)||void 0===m?void 0:m.limit}:void 0}})];case 2:return l=e.sent(),p=l.data,(u=l.errors)&&u.length?[2,{data:[],count:0}]:[2,{data:p.listCustomerReviewSummary.data.map((function(t){return new r(t)})),count:p.listCustomerReviewSummary.count}];case 3:return c=e.sent(),console.log(c),[2,{data:[],count:0}];case 4:return[2]}}))}))},n}();export{n as IkasCustomerReviewSummaryAPI};
|