@ikas/storefront-api 6.1.0-beta.41 → 6.1.0-beta.43

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.
@@ -3,6 +3,7 @@ import { CheckStocksLineInput, GetAvailableStockLocationsResponse } from "../typ
3
3
  declare const getAvailableStockLocations: (variables: QueryParams, fields?: string[], config?: ConfigType) => Promise<APIResponse<GetAvailableStockLocationsResponse> | APIResponse<undefined>>;
4
4
  export default getAvailableStockLocations;
5
5
  export declare type QueryParams = {
6
+ cartId?: string | null;
6
7
  lines: CheckStocksLineInput[];
7
8
  stockLocationIdList?: string[] | null;
8
9
  };
@@ -1 +1 @@
1
- import{__awaiter as t,__generator as s}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as o,APIResponse as _,fetchQuery as c}from"@ikas/fe-api-client";var e,a=function(e,a,i){return t(void 0,void 0,void 0,(function(){var t,n,d,O;return s(this,(function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4,c({operationName:"getAvailableStockLocations",config:i,variables:e,allReturnFields:S,fields:a,query:function(t){return"\n\t\t\t\tquery getAvailableStockLocations (\n\t\t\t\t\t$lines: [CheckStocksLineInput!]!,\n\t\t\t\t\t$stockLocationIdList: [String!],\n\t\t\t\t) {\n\t\t\t\t\tgetAvailableStockLocations (\n\t\t\t\t\t\tlines: $lines,\n\t\t\t\t\t\tstockLocationIdList: $stockLocationIdList,\n\t\t\t\t\t) ".concat(t,"\n\t\t\t\t}\n\t\t\t")}})];case 1:return t=s.sent(),n=t.data,d=t.errors,[2,new _(null==n?void 0:n.getAvailableStockLocations,d)];case 2:return O=s.sent(),[2,o(O)];case 3:return[2]}}))}))},S="{stockLocations {address {address city {code id name } country {code id iso2 iso3 name } district {code id name } phone postalCode state {code id name } } id name type } }";!function(t){t.STOCK_LOCATIONS__ADDRESS__ADDRESS="stockLocations.address.address",t.STOCK_LOCATIONS__ADDRESS__CITY__CODE="stockLocations.address.city.code",t.STOCK_LOCATIONS__ADDRESS__CITY__ID="stockLocations.address.city.id",t.STOCK_LOCATIONS__ADDRESS__CITY__NAME="stockLocations.address.city.name",t.STOCK_LOCATIONS__ADDRESS__COUNTRY__CODE="stockLocations.address.country.code",t.STOCK_LOCATIONS__ADDRESS__COUNTRY__ID="stockLocations.address.country.id",t.STOCK_LOCATIONS__ADDRESS__COUNTRY__ISO2="stockLocations.address.country.iso2",t.STOCK_LOCATIONS__ADDRESS__COUNTRY__ISO3="stockLocations.address.country.iso3",t.STOCK_LOCATIONS__ADDRESS__COUNTRY__NAME="stockLocations.address.country.name",t.STOCK_LOCATIONS__ADDRESS__DISTRICT__CODE="stockLocations.address.district.code",t.STOCK_LOCATIONS__ADDRESS__DISTRICT__ID="stockLocations.address.district.id",t.STOCK_LOCATIONS__ADDRESS__DISTRICT__NAME="stockLocations.address.district.name",t.STOCK_LOCATIONS__ADDRESS__PHONE="stockLocations.address.phone",t.STOCK_LOCATIONS__ADDRESS__POSTAL_CODE="stockLocations.address.postalCode",t.STOCK_LOCATIONS__ADDRESS__STATE__CODE="stockLocations.address.state.code",t.STOCK_LOCATIONS__ADDRESS__STATE__ID="stockLocations.address.state.id",t.STOCK_LOCATIONS__ADDRESS__STATE__NAME="stockLocations.address.state.name",t.STOCK_LOCATIONS__ID="stockLocations.id",t.STOCK_LOCATIONS__NAME="stockLocations.name",t.STOCK_LOCATIONS__TYPE="stockLocations.type"}(e||(e={}));export{e as ResponseField,a as default};
1
+ import{__awaiter as t,__generator as s}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as o,APIResponse as _,fetchQuery as c}from"@ikas/fe-api-client";var a,e=function(a,e,S){return t(void 0,void 0,void 0,(function(){var t,i,d,O;return s(this,(function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4,c({operationName:"getAvailableStockLocations",config:S,variables:a,allReturnFields:n,fields:e,query:function(t){return"\n\t\t\t\tquery getAvailableStockLocations (\n\t\t\t\t\t$cartId: String,\n\t\t\t\t\t$lines: [CheckStocksLineInput!]!,\n\t\t\t\t\t$stockLocationIdList: [String!],\n\t\t\t\t) {\n\t\t\t\t\tgetAvailableStockLocations (\n\t\t\t\t\t\tcartId: $cartId,\n\t\t\t\t\t\tlines: $lines,\n\t\t\t\t\t\tstockLocationIdList: $stockLocationIdList,\n\t\t\t\t\t) ".concat(t,"\n\t\t\t\t}\n\t\t\t")}})];case 1:return t=s.sent(),i=t.data,d=t.errors,[2,new _(null==i?void 0:i.getAvailableStockLocations,d)];case 2:return O=s.sent(),[2,o(O)];case 3:return[2]}}))}))},n="{stockLocations {address {address city {code id name } country {code id iso2 iso3 name } district {code id name } phone postalCode state {code id name } } id name type } }";!function(t){t.STOCK_LOCATIONS__ADDRESS__ADDRESS="stockLocations.address.address",t.STOCK_LOCATIONS__ADDRESS__CITY__CODE="stockLocations.address.city.code",t.STOCK_LOCATIONS__ADDRESS__CITY__ID="stockLocations.address.city.id",t.STOCK_LOCATIONS__ADDRESS__CITY__NAME="stockLocations.address.city.name",t.STOCK_LOCATIONS__ADDRESS__COUNTRY__CODE="stockLocations.address.country.code",t.STOCK_LOCATIONS__ADDRESS__COUNTRY__ID="stockLocations.address.country.id",t.STOCK_LOCATIONS__ADDRESS__COUNTRY__ISO2="stockLocations.address.country.iso2",t.STOCK_LOCATIONS__ADDRESS__COUNTRY__ISO3="stockLocations.address.country.iso3",t.STOCK_LOCATIONS__ADDRESS__COUNTRY__NAME="stockLocations.address.country.name",t.STOCK_LOCATIONS__ADDRESS__DISTRICT__CODE="stockLocations.address.district.code",t.STOCK_LOCATIONS__ADDRESS__DISTRICT__ID="stockLocations.address.district.id",t.STOCK_LOCATIONS__ADDRESS__DISTRICT__NAME="stockLocations.address.district.name",t.STOCK_LOCATIONS__ADDRESS__PHONE="stockLocations.address.phone",t.STOCK_LOCATIONS__ADDRESS__POSTAL_CODE="stockLocations.address.postalCode",t.STOCK_LOCATIONS__ADDRESS__STATE__CODE="stockLocations.address.state.code",t.STOCK_LOCATIONS__ADDRESS__STATE__ID="stockLocations.address.state.id",t.STOCK_LOCATIONS__ADDRESS__STATE__NAME="stockLocations.address.state.name",t.STOCK_LOCATIONS__ID="stockLocations.id",t.STOCK_LOCATIONS__NAME="stockLocations.name",t.STOCK_LOCATIONS__TYPE="stockLocations.type"}(a||(a={}));export{a as ResponseField,e as default};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/storefront-api",
3
- "version": "6.1.0-beta.41",
3
+ "version": "6.1.0-beta.43",
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": "^6.1.0-beta.41",
21
- "@ikas/storefront-models": "^6.1.0-beta.41",
20
+ "@ikas/storefront-config": "^6.1.0-beta.43",
21
+ "@ikas/storefront-models": "^6.1.0-beta.43",
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": "^6.1.0-beta.41",
38
- "@ikas/storefront-models": "^6.1.0-beta.41",
37
+ "@ikas/storefront-config": "^6.1.0-beta.43",
38
+ "@ikas/storefront-models": "^6.1.0-beta.43",
39
39
  "@ikas/fe-api-client": "^1.0.18",
40
40
  "axios": "^0.26.0",
41
41
  "ts-essentials": "^7.0.1"