@ikas/storefront 2.0.13 → 2.0.14-alpha.2
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/__generated__/global-types.d.ts +7 -1
- package/build/api/customer-review/__generated__/listCustomerReviews.d.ts +1 -0
- package/build/api/customer-review/index.js +1 -1
- package/build/api/product-option-set/__generated__/ListProductOptionSet.d.ts +2 -0
- package/build/ikas.js +2 -2
- package/build/models/data/customer-review/index.d.ts +3 -0
- package/build/models/data/customer-review/index.js +1 -1
- package/build/models/data/product-option-set/index.d.ts +4 -0
- package/build/models/data/product-option-set/index.js +1 -1
- package/package.json +1 -1
|
@@ -366,6 +366,11 @@ export interface BlogMetadataTargetTypeEnumFilter {
|
|
|
366
366
|
eq?: BlogMetadataTargetTypeEnum | null;
|
|
367
367
|
in?: BlogMetadataTargetTypeEnum[] | null;
|
|
368
368
|
}
|
|
369
|
+
export interface CartCampaignOfferInput {
|
|
370
|
+
accepted: boolean;
|
|
371
|
+
campaignOfferId: string;
|
|
372
|
+
campaignOfferProductId: string;
|
|
373
|
+
}
|
|
369
374
|
export interface CartLineItemInput {
|
|
370
375
|
id?: string | null;
|
|
371
376
|
quantity: number;
|
|
@@ -377,7 +382,7 @@ export interface CartLineOptionInput {
|
|
|
377
382
|
values: string[];
|
|
378
383
|
}
|
|
379
384
|
export interface CartLineVariantInput {
|
|
380
|
-
id
|
|
385
|
+
id: string;
|
|
381
386
|
name?: string | null;
|
|
382
387
|
}
|
|
383
388
|
export interface CheckStocksLineInput {
|
|
@@ -589,6 +594,7 @@ export interface SaveCheckoutInput {
|
|
|
589
594
|
updatedAt?: any | null;
|
|
590
595
|
}
|
|
591
596
|
export interface SaveItemToCartInput {
|
|
597
|
+
campaignOffer?: CartCampaignOfferInput | null;
|
|
592
598
|
cartId?: string | null;
|
|
593
599
|
customerId?: string | null;
|
|
594
600
|
item: CartLineItemInput;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as t,__generator as e,__makeTemplateObject as i,__assign as o}from'../../ext/tslib/tslib.es6.js';import n from'../../ext/graphql-tag/src/index.js';import{apollo as r}from"../apollo.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{IkasCustomerReview as s}from"../../models/data/customer-review/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"../../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/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/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";var a,d,m=function(){function m(){}return m.listCustomerReviews=function(o){return t(this,void 0,void 0,(function(){var t,d,m,u,l;return e(this,(function(e){switch(e.label){case 0:t=n(a||(a=i(["\n query listCustomerReviews(\n $input: ListCustomerReviewInput!\n $productId: String\n $pagination: PaginationInput\n ) {\n listCustomerReviews(\n input: $input\n productId: $productId\n pagination: $pagination\n ) {\n count\n data {\n comment\n createdAt\n id\n star\n title\n }\n hasNext\n limit\n page\n }\n }\n "],["\n query listCustomerReviews(\n $input: ListCustomerReviewInput!\n $productId: String\n $pagination: PaginationInput\n ) {\n listCustomerReviews(\n input: $input\n productId: $productId\n pagination: $pagination\n ) {\n count\n data {\n comment\n createdAt\n id\n star\n title\n }\n hasNext\n limit\n page\n }\n }\n "]))),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,r.getClient().query({query:t,variables:{input:{salesChannelId:o.salesChannelId},productId:o.productId,pagination:{page:o.page,limit:o.limit}}})];case 2:return d=e.sent(),m=d.data,(u=d.errors)&&u.length?[2,{data:[],count:0}]:[2,{data:m.listCustomerReviews.data.map((function(t){return new s(t)})),count:m.listCustomerReviews.count}];case 3:return l=e.sent(),console.log(l),[2,{data:[],count:0}];case 4:return[2]}}))}))},m.createCustomerReview=function(s){return t(this,void 0,void 0,(function(){var t,a,m,u,l;return e(this,(function(e){switch(e.label){case 0:t=n(d||(d=i(["\n mutation createCustomerReview($input: CreateCustomerReviewInput!) {\n createCustomerReview(input: $input) {\n id\n }\n }\n "],["\n mutation createCustomerReview($input: CreateCustomerReviewInput!) {\n createCustomerReview(input: $input) {\n id\n }\n }\n "]))),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,r.getClient().mutate({mutation:t,variables:{input:o({},s)}})];case 2:return a=e.sent(),m=a.data,(u=a.errors)&&u.length?[2,!1]:[2,null==m?void 0:m.createCustomerReview];case 3:return l=e.sent(),console.log(l),[3,4];case 4:return[2]}}))}))},m}();export{m as IkasCustomerReviewAPI};
|
|
1
|
+
import{__awaiter as t,__generator as e,__makeTemplateObject as i,__assign as o}from'../../ext/tslib/tslib.es6.js';import n from'../../ext/graphql-tag/src/index.js';import{apollo as r}from"../apollo.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{IkasCustomerReview as s}from"../../models/data/customer-review/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"../../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/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/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";var a,d,m=function(){function m(){}return m.listCustomerReviews=function(o){return t(this,void 0,void 0,(function(){var t,d,m,u,l;return e(this,(function(e){switch(e.label){case 0:t=n(a||(a=i(["\n query listCustomerReviews(\n $input: ListCustomerReviewInput!\n $productId: String\n $pagination: PaginationInput\n ) {\n listCustomerReviews(\n input: $input\n productId: $productId\n pagination: $pagination\n ) {\n count\n data {\n comment\n createdAt\n id\n star\n title\n imageIds\n }\n hasNext\n limit\n page\n }\n }\n "],["\n query listCustomerReviews(\n $input: ListCustomerReviewInput!\n $productId: String\n $pagination: PaginationInput\n ) {\n listCustomerReviews(\n input: $input\n productId: $productId\n pagination: $pagination\n ) {\n count\n data {\n comment\n createdAt\n id\n star\n title\n imageIds\n }\n hasNext\n limit\n page\n }\n }\n "]))),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,r.getClient().query({query:t,variables:{input:{salesChannelId:o.salesChannelId},productId:o.productId,pagination:{page:o.page,limit:o.limit}}})];case 2:return d=e.sent(),m=d.data,(u=d.errors)&&u.length?[2,{data:[],count:0}]:[2,{data:m.listCustomerReviews.data.map((function(t){return new s(t)})),count:m.listCustomerReviews.count}];case 3:return l=e.sent(),console.log(l),[2,{data:[],count:0}];case 4:return[2]}}))}))},m.createCustomerReview=function(s){return t(this,void 0,void 0,(function(){var t,a,m,u,l;return e(this,(function(e){switch(e.label){case 0:t=n(d||(d=i(["\n mutation createCustomerReview($input: CreateCustomerReviewInput!) {\n createCustomerReview(input: $input) {\n id\n }\n }\n "],["\n mutation createCustomerReview($input: CreateCustomerReviewInput!) {\n createCustomerReview(input: $input) {\n id\n }\n }\n "]))),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,r.getClient().mutate({mutation:t,variables:{input:o({},s)}})];case 2:return a=e.sent(),m=a.data,(u=a.errors)&&u.length?[2,!1]:[2,null==m?void 0:m.createCustomerReview];case 3:return l=e.sent(),console.log(l),[3,4];case 4:return[2]}}))}))},m}();export{m as IkasCustomerReviewAPI};
|
|
@@ -3,6 +3,8 @@ export interface ListProductOptionSet_listProductOptionSet_options_dateSettings
|
|
|
3
3
|
__typename: "ProductOptionDateSettings";
|
|
4
4
|
max: any | null;
|
|
5
5
|
min: any | null;
|
|
6
|
+
minRelativeNextDate: number | null;
|
|
7
|
+
maxRelativeNextDate: number | null;
|
|
6
8
|
}
|
|
7
9
|
export interface ListProductOptionSet_listProductOptionSet_options_fileSettings {
|
|
8
10
|
__typename: "ProductOptionFileSettings";
|