@ikas/storefront 3.0.0-alpha.30 → 3.0.0-alpha.32
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/__api/models/{MasterpassTokenResponse.d.ts → MasterPassTokenResponse.d.ts} +0 -0
- package/build/__api/mutations/addCouponCodeToCheckout.d.ts +1 -1
- package/build/__api/mutations/addItemToCart.d.ts +1 -1
- package/build/__api/mutations/createCustomerEmailSubscription.d.ts +1 -1
- package/build/__api/mutations/createCustomerReview.d.ts +1 -1
- package/build/__api/mutations/createOrderRefundRequest.d.ts +1 -1
- package/build/__api/mutations/createSaleTransactionWithCart.d.ts +1 -1
- package/build/__api/mutations/createSaleTransactionWithCheckout.d.ts +1 -1
- package/build/__api/mutations/createStripePaymentIntent.d.ts +1 -1
- package/build/__api/mutations/customerLogin.d.ts +1 -1
- package/build/__api/mutations/customerRefreshToken.d.ts +1 -1
- package/build/__api/mutations/getOrderLineFile.d.ts +1 -1
- package/build/__api/mutations/registerCustomer.d.ts +1 -1
- package/build/__api/mutations/retrieveInstallmentInfo.d.ts +1 -1
- package/build/__api/mutations/saveCart.d.ts +1 -1
- package/build/__api/mutations/saveCartCouponCode.d.ts +1 -1
- package/build/__api/mutations/saveCheckout.d.ts +1 -1
- package/build/__api/mutations/saveItemToCart.d.ts +1 -1
- package/build/__api/mutations/saveLastViewedProducts.d.ts +1 -1
- package/build/__api/mutations/saveMyCustomer.d.ts +1 -1
- package/build/__api/mutations/saveProductBackInStockRemind.d.ts +1 -1
- package/build/__api/mutations/saveRaffleParticipant.d.ts +1 -1
- package/build/__api/mutations/updateRaffleParticipant.d.ts +1 -1
- package/build/__api/queries/checkCustomerEmail.d.ts +1 -1
- package/build/__api/queries/checkStocks.d.ts +1 -1
- package/build/__api/queries/customerSocialLogin.d.ts +1 -1
- package/build/__api/queries/getAvailableShippingCountries.d.ts +1 -1
- package/build/__api/queries/getAvailableStockLocations.d.ts +1 -1
- package/build/__api/queries/getCart.d.ts +1 -1
- package/build/__api/queries/getCartById.d.ts +1 -1
- package/build/__api/queries/getCheckoutByCartId.d.ts +1 -1
- package/build/__api/queries/getCheckoutById.d.ts +1 -1
- package/build/__api/queries/getCurrencyRate.d.ts +1 -1
- package/build/__api/queries/getCustomerOrders.d.ts +1 -1
- package/build/__api/queries/getLastViewedProducts.d.ts +1 -1
- package/build/__api/queries/getMasterpassRequestToken.d.ts +1 -1
- package/build/__api/queries/getMasterpassRequestToken.js +1 -0
- package/build/__api/queries/getMyCountry.d.ts +1 -1
- package/build/__api/queries/getMyCustomer.d.ts +1 -1
- package/build/__api/queries/getOrder.d.ts +1 -1
- package/build/__api/queries/getOrderByEmail.d.ts +1 -1
- package/build/__api/queries/getProductCampaigns.d.ts +1 -1
- package/build/__api/queries/getProductFilterData.d.ts +1 -1
- package/build/__api/queries/getProductOptionFileUrl.d.ts +1 -1
- package/build/__api/queries/getRaffleParticipants.d.ts +1 -1
- package/build/__api/queries/getRafflesByCustomerId.d.ts +1 -1
- package/build/__api/queries/getStorefront.d.ts +1 -1
- package/build/__api/queries/getVariantStockLocations.d.ts +1 -1
- package/build/__api/queries/listBlog.d.ts +1 -1
- package/build/__api/queries/listBlogCategory.d.ts +1 -1
- package/build/__api/queries/listBlogMetadata.d.ts +1 -1
- package/build/__api/queries/listCampaignOffer.d.ts +1 -1
- package/build/__api/queries/listCategory.d.ts +1 -1
- package/build/__api/queries/listCheckoutSettings.d.ts +1 -1
- package/build/__api/queries/listCity.d.ts +1 -1
- package/build/__api/queries/listCountry.d.ts +1 -1
- package/build/__api/queries/listCustomerAttribute.d.ts +1 -1
- package/build/__api/queries/listCustomerReviewSummary.d.ts +1 -1
- package/build/__api/queries/listCustomerReviews.d.ts +1 -1
- package/build/__api/queries/listDistrict.d.ts +1 -1
- package/build/__api/queries/listFavoriteProducts.d.ts +1 -1
- package/build/__api/queries/listHTMLMetaData.d.ts +1 -1
- package/build/__api/queries/listMerchantSettings.d.ts +1 -1
- package/build/__api/queries/listOrderRefundSettings.d.ts +1 -1
- package/build/__api/queries/listOrderTransactions.d.ts +1 -1
- package/build/__api/queries/listPaymentGateway.d.ts +1 -1
- package/build/__api/queries/listProduct.d.ts +1 -1
- package/build/__api/queries/listProductAttribute.d.ts +1 -1
- package/build/__api/queries/listProductBackInStockRemind.d.ts +1 -1
- package/build/__api/queries/listProductBrand.d.ts +1 -1
- package/build/__api/queries/listProductOptionSet.d.ts +1 -1
- package/build/__api/queries/listProductStockLocation.d.ts +1 -1
- package/build/__api/queries/listRaffle.d.ts +1 -1
- package/build/__api/queries/listRaffleMetadata.d.ts +1 -1
- package/build/__api/queries/listState.d.ts +1 -1
- package/build/__api/queries/listStockLocation.d.ts +1 -1
- package/build/__api/queries/listTown.d.ts +1 -1
- package/build/__api/queries/listVariantType.d.ts +1 -1
- package/build/__api/queries/searchProducts.d.ts +1 -1
- package/build/_virtual/index.js_commonjs-proxy13.js +1 -1
- package/build/_virtual/index.js_commonjs-proxy14.js +1 -1
- package/build/_virtual/index.js_commonjs-proxy2.js +1 -1
- package/build/_virtual/index.js_commonjs-proxy3.js +1 -1
- package/build/_virtual/index.js_commonjs-proxy4.js +1 -1
- package/build/assets/translations/checkout/en.js +1 -1
- package/build/assets/translations/checkout/tr.js +1 -1
- package/build/components/checkout/components/button/index.d.ts +2 -1
- package/build/components/checkout/components/button/index.js +1 -1
- package/build/components/checkout/components/checkbox/index.d.ts +1 -1
- package/build/components/checkout/components/credit-card-form/index.js +1 -1
- package/build/components/checkout/components/master-pass/index.d.ts +9 -0
- package/build/components/checkout/components/master-pass/index.js +1 -0
- package/build/components/checkout/components/master-pass/modal/index.d.ts +11 -0
- package/build/components/checkout/components/master-pass/modal/index.js +1 -0
- package/build/components/checkout/components/master-pass/modal/style.module.scss.js +1 -0
- package/build/components/checkout/components/master-pass/modal/svg/modal-close.d.ts +3 -0
- package/build/components/checkout/components/master-pass/modal/svg/modal-close.js +1 -0
- package/build/components/checkout/components/master-pass/modal-link-card-to-client/index.d.ts +10 -0
- package/build/components/checkout/components/master-pass/modal-link-card-to-client/index.js +1 -0
- package/build/components/checkout/components/master-pass/modal-link-card-to-client/style.module.scss.js +1 -0
- package/build/components/checkout/components/master-pass/modal-link-card-to-client/svg/info-mark.d.ts +3 -0
- package/build/components/checkout/components/master-pass/modal-link-card-to-client/svg/info-mark.js +1 -0
- package/build/components/checkout/components/master-pass/modal-link-card-to-client/svg/master-pass-by-master-card-big.d.ts +3 -0
- package/build/components/checkout/components/master-pass/modal-link-card-to-client/svg/master-pass-by-master-card-big.js +1 -0
- package/build/components/checkout/components/master-pass/modal-otp/index.d.ts +18 -0
- package/build/components/checkout/components/master-pass/modal-otp/index.js +1 -0
- package/build/components/checkout/components/master-pass/modal-otp/style.module.scss.js +1 -0
- package/build/components/checkout/components/master-pass/modal-otp/svg/master-pass-by-master-card-small.d.ts +3 -0
- package/build/components/checkout/components/master-pass/modal-otp/svg/master-pass-by-master-card-small.js +1 -0
- package/build/components/checkout/components/master-pass/modal-otp/svg/master-pass.d.ts +3 -0
- package/build/components/checkout/components/master-pass/modal-otp/svg/master-pass.js +1 -0
- package/build/components/checkout/components/master-pass/modal-otp/svg/success.d.ts +3 -0
- package/build/components/checkout/components/master-pass/modal-otp/svg/success.js +1 -0
- package/build/components/checkout/components/master-pass/modal-response/index.d.ts +10 -0
- package/build/components/checkout/components/master-pass/modal-response/index.js +1 -0
- package/build/components/checkout/components/master-pass/modal-response/style.module.scss.js +1 -0
- package/build/components/checkout/components/master-pass/payment-gateway/svg/master-card.d.ts +3 -0
- package/build/components/checkout/components/master-pass/payment-gateway/svg/master-card.js +1 -0
- package/build/components/checkout/components/master-pass/style.module.scss.js +1 -0
- package/build/components/checkout/components/master-pass/svg/master-pass-by-master-card.d.ts +3 -0
- package/build/components/checkout/components/master-pass/svg/master-pass-by-master-card.js +1 -0
- package/build/components/checkout/components/modal/index.js +1 -1
- package/build/components/checkout/components/modal/useEscape.d.ts +5 -0
- package/build/components/checkout/components/modal/useEscape.js +1 -0
- package/build/components/checkout/components/select-box/index.d.ts +2 -2
- package/build/components/checkout/components/stripe/checkout-form.js +1 -1
- package/build/components/checkout/components/stripe/style.module.scss.js +1 -0
- package/build/components/checkout/components/toggle/index.d.ts +1 -1
- package/build/components/checkout/index.d.ts +1 -1
- package/build/components/checkout/index.js +1 -1
- package/build/components/checkout/model.d.ts +4 -0
- package/build/components/checkout/model.js +1 -1
- package/build/components/checkout/modelMasterPass.d.ts +139 -0
- package/build/components/checkout/modelMasterPass.js +1 -0
- package/build/components/checkout/steps/step-payment/payment-gateways/index.js +1 -1
- package/build/components/checkout/steps/step-payment/payment-gateways/style.module.scss.js +1 -1
- package/build/ikas.cjs +1 -1
- package/build/models/data/checkout/index.d.ts +1 -0
- package/build/models/data/checkout/index.js +1 -1
- package/build/models/data/payment-gateway/index.d.ts +1 -0
- package/build/models/data/payment-gateway/index.js +1 -1
- package/build/models/ui/product-list/index.d.ts +1 -1
- package/build/scripts/generators/config/content.js +1 -1
- package/build/store/checkout/index.d.ts +1 -1
- package/build/store/customer/api.d.ts +5 -5
- package/build/store/location/index.d.ts +1 -1
- package/build/store/product/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -3,6 +3,7 @@ import { IkasPaymentGateway } from "../payment-gateway";
|
|
|
3
3
|
export default class IkasCheckout extends IkasCart {
|
|
4
4
|
appliedCouponCode?: string | null;
|
|
5
5
|
selectedPaymentGateway?: IkasPaymentGateway | null;
|
|
6
|
+
masterPassPaymentGateway?: IkasPaymentGateway | null;
|
|
6
7
|
constructor(data?: Partial<IkasCheckout>);
|
|
7
8
|
get isComplete(): boolean;
|
|
8
9
|
get shippingTotal(): number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__extends as e}from'../../../ext/tslib/tslib.es6.js';import{makeObservable as t,observable as i,computed as r}from"mobx";import{validateEmail as o,formatDate as n}from"../../../utils/helper.js";import"../../../storefront/index.js";import"../../../utils/i18n.js";import"../blog/index.js";import"../brand/index.js";import"../cart/campaign-offer/index.js";import{IkasCart as
|
|
1
|
+
import{__extends as e}from'../../../ext/tslib/tslib.es6.js';import{makeObservable as t,observable as i,computed as r}from"mobx";import{validateEmail as o,formatDate as n}from"../../../utils/helper.js";import"../../../storefront/index.js";import"../../../utils/i18n.js";import"../blog/index.js";import"../brand/index.js";import"../cart/campaign-offer/index.js";import{IkasCart as a}from"../cart/index.js";import"../category/index.js";import"../city/index.js";import"../country/index.js";import"../customer/address/index.js";import"../customer/attribute-value/index.js";import"../customer/index.js";import"../customer-attribute/customer-attribute-option/index.js";import"../customer-attribute/customer-attribute-sales-channel/index.js";import"../customer-attribute/index.js";import"../customer-review/index.js";import"../customer-review-summary/index.js";import"../district/index.js";import"../favorite-product/index.js";import"../html-meta-data/index.js";import"../image/index.js";import"../merchant-settings/index.js";import"../order/address/index.js";import"../order/adjustment/index.js";import"../order/gift-line/index.js";import"../order/invoice/index.js";import"../order/line-item/discount/index.js";import"../order/line-item/option/value/index.js";import"../order/line-item/option/index.js";import"../order/line-item/variant/index.js";import"../order/line-item/index.js";import"../order/package/tracking-info/index.js";import"../order/package/index.js";import"../order/payment-method/index.js";import"../order/refund/line-item/index.js";import"../order/shipping-line/index.js";import"../order/tax-line/index.js";import"../order/transaction/index.js";import"../order/index.js";import"../product/attribute-value/index.js";import"../product/variant/price/index.js";import"../product/variant/index.js";import"../variant-type/index.js";import"../product/index.js";import"../product-attribute/index.js";import"../product-filter/index.js";import"../product-campaign/campaign/index.js";import"../product-campaign/filter/index.js";import"../product-option-set/index.js";import"../raffle/index.js";import"../state/index.js";import"../variant-type/variant-value/index.js";import"../payment-gateway/index.js";import{PaymentGatewayAdditionalPriceTypeEnum as s}from"../../../__api/types/index.js";var d=function(a){function d(e){void 0===e&&(e={});var o=a.call(this,e)||this;return o.appliedCouponCode=null,o.selectedPaymentGateway=null,o.masterPassPaymentGateway=null,o.appliedCouponCode=e.couponCode,o.selectedPaymentGateway=e.selectedPaymentGateway,o.masterPassPaymentGateway=e.masterPassPaymentGateway,t(o,{appliedCouponCode:i,selectedPaymentGateway:i,masterPassPaymentGateway:i,isComplete:r,shippingTotal:r,hasCustomer:r,hasValidCustomerEmail:r,customerFullName:r,customerEmail:r,dateStr:r,$totalFinalPrice:r,couponAdjustment:r,nonCouponAdjustments:r}),o}return e(d,a),Object.defineProperty(d.prototype,"isComplete",{get:function(){return!!this.orderNumber},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"shippingTotal",{get:function(){var e;return(null===(e=this.shippingLines)||void 0===e?void 0:e.reduce((function(e,t){return e+t.price}),0))||0},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"hasCustomer",{get:function(){var e;return!!(null===(e=this.customer)||void 0===e?void 0:e.id)},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"hasValidCustomerEmail",{get:function(){var e;return!!(null===(e=this.customer)||void 0===e?void 0:e.email)&&o(this.customer.email)},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"customerFullName",{get:function(){var e,t;return"".concat((null===(e=this.customer)||void 0===e?void 0:e.firstName)||""," ").concat((null===(t=this.customer)||void 0===t?void 0:t.lastName)||"")},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"customerEmail",{get:function(){var e;return"".concat((null===(e=this.customer)||void 0===e?void 0:e.email)||"")},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"dateStr",{get:function(){var e=new Date;return e.setTime(this.updatedAt),n(e)},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"$totalFinalPrice",{get:function(){var e,t=null===(e=this.selectedPaymentGateway)||void 0===e?void 0:e.getCalculatedAdditionalPrices(this.totalFinalPrice||0,this.shippingLines||null),i=this.totalFinalPrice||0;return null==t||t.forEach((function(e){e.type===s.DECREMENT?i-=e.amount:i+=e.amount})),i},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"couponAdjustment",{get:function(){var e;return null===(e=this.orderAdjustments)||void 0===e?void 0:e.find((function(e){return!!e.couponId}))},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"nonCouponAdjustments",{get:function(){var e;return null===(e=this.orderAdjustments)||void 0===e?void 0:e.filter((function(e){return!e.couponId}))},enumerable:!1,configurable:!0}),d}(a);export{d as default};
|
|
@@ -10,6 +10,7 @@ export declare class IkasPaymentGateway extends PaymentGateway {
|
|
|
10
10
|
code: string;
|
|
11
11
|
type: IkasPaymentGatewayType;
|
|
12
12
|
logoUrl: string | null;
|
|
13
|
+
masterPassClientId: string | null;
|
|
13
14
|
testMode: boolean | null;
|
|
14
15
|
description: string | null;
|
|
15
16
|
additionalPrices: IkasPaymentGatewayAdditionalPrice[] | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__extends as e}from'../../../ext/tslib/tslib.es6.js';import{PaymentGateway as t}from"../../../__api/models/PaymentGateway.js";import{IkasStorefrontConfig as n}from"../../../storefront/index.js";import{IkasPaymentGatewayAdditionalPrice as a}from"./additional-price/index.js";import{PaymentGatewayTransactionFeeTypeEnum as i,PaymentGatewayAdditionalPriceTypeEnum as o,PaymentMethodEnum as r,PaymentGatewayTypeEnum as s}from"../../../__api/types/index.js";export{PaymentGatewayAdditionalPriceTypeEnum as IkasPaymentGatewayAdditionalPriceType,PaymentGatewayTransactionFeeTypeEnum as IkasPaymentGatewayTransactionFeeType,PaymentGatewayTypeEnum as IkasPaymentGatewayType,PaymentMethodEnum as IkasPaymentMethodType}from"../../../__api/types/index.js";var l=function(t){function l(e){var n,i=t.call(this,e)||this;return i.supportedCurrencies=[],i.availableCountries=[],i.paymentMethods=e.paymentMethods||[],i.paymentMethodType=e.paymentMethodType||r.OTHER,i.id=e.id||"",i.name=e.name||"",i.code=e.code||"",i.type=e.type||s.INTERNAL,i.logoUrl=e.logoUrl||null,i.testMode=e.testMode||null,i.description=e.description||null,i.additionalPrices=(null===(n=e.additionalPrices)||void 0===n?void 0:n.map((function(e){return new a(e)})))||null,i.translations=e.translations||null,i.supportedCurrencies=e.supportedCurrencies||[],i.availableCountries=e.availableCountries||[],i.setTranslations(),i}return e(l,t),l.prototype.getCalculatedAdditionalPrices=function(e,t){var n=this;if(this.additionalPrices){var a=(null==t?void 0:t.reduce((function(e,t){return e+t.price}),0))||0;return e-=a,this.additionalPrices.map((function(t){var a=0;return a=t.amountType===i.RATIO?(e||0)*t.amount/100:t.amount,t.type===o.DECREMENT?e-=a:e+=a,{name:t.name||n.name,amount:a,type:t.type}}))}},l.prototype.setTranslations=function(){if(this.translations&&this.translations.some((function(e){return e.locale===n.getCurrentLocale()}))){var e=this.translations.find((function(e){return e.locale===n.getCurrentLocale()}));(null==e?void 0:e.name)&&(this.name=e.name),(null==e?void 0:e.description)&&(this.description=e.description)}},l}(t);export{l as IkasPaymentGateway};
|
|
1
|
+
import{__extends as e}from'../../../ext/tslib/tslib.es6.js';import{PaymentGateway as t}from"../../../__api/models/PaymentGateway.js";import{IkasStorefrontConfig as n}from"../../../storefront/index.js";import{IkasPaymentGatewayAdditionalPrice as a}from"./additional-price/index.js";import{PaymentGatewayTransactionFeeTypeEnum as i,PaymentGatewayAdditionalPriceTypeEnum as o,PaymentMethodEnum as r,PaymentGatewayTypeEnum as s}from"../../../__api/types/index.js";export{PaymentGatewayAdditionalPriceTypeEnum as IkasPaymentGatewayAdditionalPriceType,PaymentGatewayTransactionFeeTypeEnum as IkasPaymentGatewayTransactionFeeType,PaymentGatewayTypeEnum as IkasPaymentGatewayType,PaymentMethodEnum as IkasPaymentMethodType}from"../../../__api/types/index.js";var l=function(t){function l(e){var n,i=t.call(this,e)||this;return i.supportedCurrencies=[],i.availableCountries=[],i.paymentMethods=e.paymentMethods||[],i.paymentMethodType=e.paymentMethodType||r.OTHER,i.id=e.id||"",i.name=e.name||"",i.code=e.code||"",i.type=e.type||s.INTERNAL,i.logoUrl=e.logoUrl||null,i.masterPassClientId=e.masterPassClientId||null,i.testMode=e.testMode||null,i.description=e.description||null,i.additionalPrices=(null===(n=e.additionalPrices)||void 0===n?void 0:n.map((function(e){return new a(e)})))||null,i.translations=e.translations||null,i.supportedCurrencies=e.supportedCurrencies||[],i.availableCountries=e.availableCountries||[],i.setTranslations(),i}return e(l,t),l.prototype.getCalculatedAdditionalPrices=function(e,t){var n=this;if(this.additionalPrices){var a=(null==t?void 0:t.reduce((function(e,t){return e+t.price}),0))||0;return e-=a,this.additionalPrices.map((function(t){var a=0;return a=t.amountType===i.RATIO?(e||0)*t.amount/100:t.amount,t.type===o.DECREMENT?e-=a:e+=a,{name:t.name||n.name,amount:a,type:t.type}}))}},l.prototype.setTranslations=function(){if(this.translations&&this.translations.some((function(e){return e.locale===n.getCurrentLocale()}))){var e=this.translations.find((function(e){return e.locale===n.getCurrentLocale()}));(null==e?void 0:e.name)&&(this.name=e.name),(null==e?void 0:e.description)&&(this.description=e.description)}},l}(t);export{l as IkasPaymentGateway};
|
|
@@ -85,7 +85,7 @@ export declare class IkasProductList {
|
|
|
85
85
|
filters: IkasProductFilter[] | null | undefined;
|
|
86
86
|
recommendFor: string | null | undefined;
|
|
87
87
|
productListPropValue: IkasProductListPropValue;
|
|
88
|
-
pageSpecificData:
|
|
88
|
+
pageSpecificData: IkasCategory | IkasBrand | null | undefined;
|
|
89
89
|
};
|
|
90
90
|
setVisibleInfiniteScrollPage: (page: number) => void;
|
|
91
91
|
private restoreInfiniteScrollPage;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e={next:"12.0.7",react:"17.0.2","react-dom":"17.0.2",mobx:"^6.1.3","mobx-react-lite":"^3.1.5","next-transpile-modules":"^9.0.0","@ikas/storefront-utils":"^3.0.0-alpha.
|
|
1
|
+
var e={next:"12.0.7",react:"17.0.2","react-dom":"17.0.2",mobx:"^6.1.3","mobx-react-lite":"^3.1.5","next-transpile-modules":"^9.0.0","@ikas/storefront-utils":"^3.0.0-alpha.32"},n={"@types/node":"^14.14.6","@types/react":"^17.0.2","@types/react-dom":"^17.0.2","@typescript-eslint/eslint-plugin":"^2.10.0","@typescript-eslint/parser":"^2.10.0",eslint:"^6.6.0","eslint-config-react-app":"^5.2.1","eslint-loader":"3.0.3","eslint-plugin-flowtype":"4.6.0","eslint-plugin-import":"2.20.1","eslint-plugin-jsx-a11y":"6.2.3","eslint-plugin-react":"7.19.0","eslint-plugin-react-hooks":"^1.6.1",sass:"^1.43.4",typescript:"^4.5.2"},t={"@types/react":"17.0.2","@types/react-dom":"17.0.2"},s={upgradeDependencies:"yarn upgrade @ikas/storefront @ikas/storefront-utils",dev:"next dev -p 3333",build:"next build",start:"next start",generate:"ikas --generate","prettier:all":"npx prettier@^2.1 './**/src/**/*.(ts|tsx|css|scss)' --write"},i='{\n "compilerOptions": {\n "target": "esnext",\n "lib": [\n "dom",\n "dom.iterable",\n "esnext"\n ],\n "allowJs": true,\n "skipLibCheck": true,\n "strict": true,\n "forceConsistentCasingInFileNames": true,\n "experimentalDecorators": true,\n "noEmit": true,\n "esModuleInterop": true,\n "module": "esnext",\n "moduleResolution": "node",\n "resolveJsonModule": true,\n "isolatedModules": true,\n "jsx": "preserve",\n "baseUrl": ".",\n "useUnknownInCatchVariables": false,\n "incremental": true\n },\n "typeRoots": [\n "./node_modules/@types"\n ],\n "include": [\n "next-env.d.ts",\n "**/*.ts",\n "**/*.tsx",\n "**/typings/global.d.ts",\n ],\n "exclude": [\n "node_modules",\n "./src/pages/api",\n ]\n}',a='const withTM = require("next-transpile-modules")(["@ikas/storefront"]);\n\nconst config = {\n i18n: {\n defaultLocale: "en",\n locales: ["en"],\n localeDetection: false,\n },\n basePath: process.env.NEXTJS_BASE_PATH || "",\n\n images: {\n deviceSizes: [\n 180,\n 360,\n 540,\n 720,\n 900,\n 1080,\n 1296,\n 1512,\n 1728,\n 1950,\n 2560,\n 3840,\n ],\n },\n\n webpack: (config, { buildId, dev, isServer, defaultLoaders, webpack }) => {\n if (!isServer) {\n config.resolve.fallback.fs = false;\n }\n return config;\n },\n};\n\nmodule.exports = withTM(config);',r="NEXT_PUBLIC_ENV=local\nNEXT_PUBLIC_BASE_URL=https://api.myikas.dev/api/sf\nNEXT_PUBLIC_IMG_BASE_URL=https://cdn.myikas.dev/\nNEXT_PUBLIC_UPLOAD_GQL_URL=https://api.myikas.dev/api/admin/graphql\nNEXT_PUBLIC_GQL_URL=https://api.myikas.dev/api/sf/graphql\n",l="NEXT_PUBLIC_ENV=local\nNEXT_PUBLIC_BASE_URL=https://api.myikas.com/api/sf\nNEXT_PUBLIC_IMG_BASE_URL=https://cdn.myikas.com/\nNEXT_PUBLIC_UPLOAD_GQL_URL=https://api.myikas.com/api/admin/graphql\nNEXT_PUBLIC_GQL_URL=https://api.myikas.com/api/sf/graphql\n";export{e as DEPENDENCIES,n as DEV_DEPENDENCIES,r as DEV_ENV,a as NEXT_CONFIG,l as PROD_ENV,t as RESOLUTIONS,s as SCRIPTS,i as TS_CONFIG};
|
|
@@ -14,7 +14,7 @@ import { StockLocation } from "../../__api/models/StockLocation";
|
|
|
14
14
|
import { GetAvailableStockLocation } from "../../__api/models/GetAvailableStockLocation";
|
|
15
15
|
import { CreateStripePaymentIntentResponse } from "../../__api/models/CreateStripePaymentIntentResponse";
|
|
16
16
|
export default class CheckoutStore {
|
|
17
|
-
static createSaleTransactionWithCart(params: CreateSaleTransaction): Promise<APIResponse<
|
|
17
|
+
static createSaleTransactionWithCart(params: CreateSaleTransaction): Promise<APIResponse<import("../../__api/types").TransactionResponse> | APIResponse<undefined>>;
|
|
18
18
|
static listPaymentGateway(params: ListPaymentGatewayQueryParams): Promise<APIResponse<IkasPaymentGateway[]>>;
|
|
19
19
|
static retrieveInstallmentInfo(params: RetrieveInstallmentInfoQueryParams): Promise<APIResponse<undefined> | APIResponse<import("../../__api/types").RetrieveInstallmentInfoResponse>>;
|
|
20
20
|
static checkStocks(params: CheckStocksQueryParams): Promise<APIResponse<undefined> | APIResponse<import("../../__api/types").CheckStocksResponse>>;
|
|
@@ -46,8 +46,8 @@ export default class CustomerStoreAPI {
|
|
|
46
46
|
tokenExpiry: number;
|
|
47
47
|
} | null>>;
|
|
48
48
|
static refreshToken(params: CustomerRefreshTokenQueryParams): Promise<APIResponse<undefined> | APIResponse<import("../../__api/types").CustomerRefreshTokenResponse>>;
|
|
49
|
-
static forgotPassword(params: CustomerForgotPasswordQueryParams): Promise<APIResponse<
|
|
50
|
-
static recoverPassword(params: CustomerRecoverPasswordQueryParams): Promise<APIResponse<
|
|
49
|
+
static forgotPassword(params: CustomerForgotPasswordQueryParams): Promise<APIResponse<undefined> | APIResponse<boolean>>;
|
|
50
|
+
static recoverPassword(params: CustomerRecoverPasswordQueryParams): Promise<APIResponse<undefined> | APIResponse<boolean>>;
|
|
51
51
|
static checkEmail(params: CheckCustomerEmailQueryParams): Promise<APIResponse<undefined> | APIResponse<import("../../__api/types").CustomerCheckResponse>>;
|
|
52
52
|
static getCustomer(): Promise<APIResponse<IkasCustomer | null>>;
|
|
53
53
|
static saveCustomer(params: SaveMyCustomerQueryParams): Promise<APIResponse<IkasCustomer | null>>;
|
|
@@ -59,10 +59,10 @@ export default class CustomerStoreAPI {
|
|
|
59
59
|
static getLastViewedProducts(params: GetLastViewedProductsQueryParams): Promise<APIResponse<import("../../__api/types").ProductItem[]>>;
|
|
60
60
|
static saveLastViewedProducts(params: SaveLastViewedProductsQueryParams): Promise<APIResponse<undefined> | APIResponse<import("../../__api/types").ProductLastViewed>>;
|
|
61
61
|
static listOrderRefundSettings(params: ListOrderRefundSettingsQueryParams): Promise<APIResponse<IkasOrderRefundSettings[]>>;
|
|
62
|
-
static sendContactFormToMerchant(params: SendContactFormToMerchantQueryParams): Promise<APIResponse<
|
|
62
|
+
static sendContactFormToMerchant(params: SendContactFormToMerchantQueryParams): Promise<APIResponse<undefined> | APIResponse<boolean>>;
|
|
63
63
|
static listFavoriteProducts(): Promise<APIResponse<IkasFavoriteProduct[]>>;
|
|
64
|
-
static saveFavoriteProduct(params: SaveFavoriteProductQueryParams): Promise<APIResponse<
|
|
65
|
-
static isFavoriteProduct(params: IsFavoriteProductQueryParams): Promise<APIResponse<
|
|
64
|
+
static saveFavoriteProduct(params: SaveFavoriteProductQueryParams): Promise<APIResponse<undefined> | APIResponse<boolean>>;
|
|
65
|
+
static isFavoriteProduct(params: IsFavoriteProductQueryParams): Promise<APIResponse<undefined> | APIResponse<boolean>>;
|
|
66
66
|
static createCustomerReview(params: CreateCustomerReviewQueryParams): Promise<APIResponse<IkasCustomerReview | null>>;
|
|
67
67
|
static listCustomerReviews(params: ListCustomerReviewsQueryParams): Promise<APIResponse<{
|
|
68
68
|
data: IkasCustomerReview[];
|
|
@@ -5,7 +5,7 @@ import { QueryParams as ListStateQueryParams } from "src/__api/queries/listState
|
|
|
5
5
|
import { APIResponse } from "@ikas/fe-api-client";
|
|
6
6
|
import { IkasCity, IkasCountry, IkasDistrict, IkasState } from "src/models";
|
|
7
7
|
export default class LocationStore {
|
|
8
|
-
static getMyCountry(): Promise<APIResponse<
|
|
8
|
+
static getMyCountry(): Promise<APIResponse<string> | APIResponse<undefined>>;
|
|
9
9
|
static listCountry(params: ListCountryQueryParams): Promise<APIResponse<IkasCountry[]>>;
|
|
10
10
|
static listCity(params: ListCityQueryParams): Promise<APIResponse<IkasCity[]>>;
|
|
11
11
|
static listDistrict(params: ListDistrictQueryParams): Promise<APIResponse<IkasDistrict[]>>;
|
|
@@ -15,7 +15,7 @@ import { IkasProductAttribute } from "src/models/data/product-attribute";
|
|
|
15
15
|
import { IkasProductCampaign } from "src/models/data/product-campaign";
|
|
16
16
|
import { IkasProductOptionSet } from "src/models/data/product-option-set";
|
|
17
17
|
export default class ProductStore {
|
|
18
|
-
static listProductBackInStockRemind(params: ListProductBackInStockRemind): Promise<APIResponse<
|
|
18
|
+
static listProductBackInStockRemind(params: ListProductBackInStockRemind): Promise<APIResponse<import("../../__api/types").ProductBackInStockRemind[]> | APIResponse<undefined>>;
|
|
19
19
|
static saveProductBackInStockRemind(params: SaveProductBackInStockRemindQueryParams): Promise<APIResponse<undefined> | APIResponse<import("../../__api/types").ProductBackInStockRemind>>;
|
|
20
20
|
static searchProducts(params: SearchProductsQueryParams): Promise<APIResponse<{
|
|
21
21
|
data: IkasProduct[] | undefined;
|