@ikas/storefront 3.0.0-alpha.23 → 3.0.0-alpha.25
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/GetAvailableStockLocation.js +1 -0
- package/build/__api/models/GetAvailableStockLocationAddress.js +1 -0
- package/build/__api/models/GetAvailableStockLocationAddressCity.js +1 -0
- package/build/__api/queries/getAvailableStockLocations.js +1 -0
- 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/customer-addresses/index.js +1 -1
- package/build/components/checkout/model.d.ts +3 -0
- package/build/components/checkout/model.js +1 -1
- package/build/ikas.cjs +1 -1
- package/build/scripts/generators/config/content.js +1 -1
- package/build/store/checkout/index.d.ts +3 -0
- package/build/store/checkout/index.js +1 -1
- package/package.json +1 -1
|
@@ -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.25"},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};
|
|
@@ -5,10 +5,12 @@ import { QueryParams as CheckStocksQueryParams } from "src/__api/queries/checkSt
|
|
|
5
5
|
import { QueryParams as ListCheckoutSettingsQueryParams } from "src/__api/queries/listCheckoutSettings";
|
|
6
6
|
import { QueryParams as GetAvailableShippingCountriesQueryParams } from "src/__api/queries/getAvailableShippingCountries";
|
|
7
7
|
import { QueryParams as ListStockLocationQueryParams } from "src/__api/queries/listStockLocation";
|
|
8
|
+
import { QueryParams as GetAvailableStockLocationQueryParams } from "src/__api/queries/getAvailableStockLocations";
|
|
8
9
|
import { APIResponse } from "@ikas/fe-api-client";
|
|
9
10
|
import { IkasCheckoutSettings } from "src/models/data/checkout-settings";
|
|
10
11
|
import { IkasPaymentGateway } from "src/models/data/payment-gateway";
|
|
11
12
|
import { StockLocation } from "../../__api/models/StockLocation";
|
|
13
|
+
import { GetAvailableStockLocation } from "../../__api/models/GetAvailableStockLocation";
|
|
12
14
|
export default class CheckoutStore {
|
|
13
15
|
static createSaleTransactionWithCart(params: CreateSaleTransaction): Promise<APIResponse<undefined> | APIResponse<import("../../__api/types").TransactionResponse>>;
|
|
14
16
|
static listPaymentGateway(params: ListPaymentGatewayQueryParams): Promise<APIResponse<IkasPaymentGateway[]>>;
|
|
@@ -17,4 +19,5 @@ export default class CheckoutStore {
|
|
|
17
19
|
static listCheckoutSettings(params: ListCheckoutSettingsQueryParams): Promise<APIResponse<IkasCheckoutSettings[]>>;
|
|
18
20
|
static getAvailableShippingCountries(params: GetAvailableShippingCountriesQueryParams): Promise<APIResponse<undefined> | APIResponse<string[]>>;
|
|
19
21
|
static listStockLocation(params: ListStockLocationQueryParams): Promise<APIResponse<StockLocation[]>>;
|
|
22
|
+
static getAvailableStockLocations(params: GetAvailableStockLocationQueryParams): Promise<APIResponse<GetAvailableStockLocation[]>>;
|
|
20
23
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as t,__generator as i}from'../../ext/tslib/tslib.es6.js';import e from"../../__api/mutations/createSaleTransactionWithCart.js";import n from"../../__api/queries/listPaymentGateway.js";import r from"../../__api/mutations/retrieveInstallmentInfo.js";import o from"../../__api/queries/checkStocks.js";import s from"../../__api/queries/listCheckoutSettings.js";import a from"../../__api/queries/getAvailableShippingCountries.js";import u from"../../__api/queries/listStockLocation.js";import{APIResponse as
|
|
1
|
+
import{__awaiter as t,__generator as i}from'../../ext/tslib/tslib.es6.js';import e from"../../__api/mutations/createSaleTransactionWithCart.js";import n from"../../__api/queries/listPaymentGateway.js";import r from"../../__api/mutations/retrieveInstallmentInfo.js";import o from"../../__api/queries/checkStocks.js";import s from"../../__api/queries/listCheckoutSettings.js";import a from"../../__api/queries/getAvailableShippingCountries.js";import u from"../../__api/queries/listStockLocation.js";import c from"../../__api/queries/getAvailableStockLocations.js";import{APIResponse as l}from'../../ext/@ikas/fe-api-client/build/utils/api.js';import'../../ext/axios/lib/axios.js';import'../../ext/@ikas/fe-api-client/build/ext/lodash/_defineProperty.js';import'../../ext/@ikas/fe-api-client/build/ext/lodash/_baseGetTag.js';import'../../ext/@ikas/fe-api-client/build/ext/lodash/_stringToPath.js';import'../../ext/@ikas/fe-api-client/build/ext/lodash/_baseToString.js';import{IkasCheckoutSettings as d}from"../../models/data/checkout-settings/index.js";import{IkasPaymentGateway as m}from"../../models/data/payment-gateway/index.js";import{StockLocation as f}from"../../__api/models/StockLocation.js";import{GetAvailableStockLocation as p}from"../../__api/models/GetAvailableStockLocation.js";var h=function(){function h(){}return h.createSaleTransactionWithCart=function(n){return t(this,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return[4,e(n)];case 1:return[2,t.sent()]}}))}))},h.listPaymentGateway=function(e){var r;return t(this,void 0,void 0,(function(){var t;return i(this,(function(i){switch(i.label){case 0:return[4,n(e)];case 1:return t=i.sent(),[2,new l(null===(r=t.data)||void 0===r?void 0:r.map((function(t){return new m(t)})),t.graphQLErrors)]}}))}))},h.retrieveInstallmentInfo=function(e){return t(this,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return[4,r(e)];case 1:return[2,t.sent()]}}))}))},h.checkStocks=function(e){return t(this,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return[4,o(e)];case 1:return[2,t.sent()]}}))}))},h.listCheckoutSettings=function(e){var n;return t(this,void 0,void 0,(function(){var t;return i(this,(function(i){switch(i.label){case 0:return[4,s(e)];case 1:return t=i.sent(),[2,new l(null===(n=t.data)||void 0===n?void 0:n.map((function(t){return new d(t)})),t.graphQLErrors)]}}))}))},h.getAvailableShippingCountries=function(e){return t(this,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return[4,a(e)];case 1:return[2,t.sent()]}}))}))},h.listStockLocation=function(e){var n;return t(this,void 0,void 0,(function(){var t;return i(this,(function(i){switch(i.label){case 0:return[4,u(e)];case 1:return t=i.sent(),[2,new l(null===(n=t.data)||void 0===n?void 0:n.map((function(t){return new f(t)})),t.graphQLErrors)]}}))}))},h.getAvailableStockLocations=function(e){var n;return t(this,void 0,void 0,(function(){var t;return i(this,(function(i){switch(i.label){case 0:return[4,c(e)];case 1:return t=i.sent(),[2,new l(null===(n=t.data)||void 0===n?void 0:n.stockLocations.map((function(t){return new p(t)})),t.graphQLErrors)]}}))}))},h}();export{h as default};
|