@ikas/storefront-api 5.0.8 → 5.0.10
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/GetAvailableStockLocationAddress.d.ts +2 -1
- package/build/__api/models/GetAvailableStockLocationAddressCountry.d.ts +13 -0
- package/build/__api/queries/getAvailableStockLocations.d.ts +2 -0
- package/build/__api/queries/getAvailableStockLocations.js +1 -1
- package/build/__api/types/index.d.ts +9 -1
- package/package.json +5 -5
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { DeepReadonly } from "ts-essentials";
|
|
2
2
|
import { GetAvailableStockLocationAddressCityData } from "./GetAvailableStockLocationAddressCity";
|
|
3
|
+
import { GetAvailableStockLocationAddressCountryData } from "./GetAvailableStockLocationAddressCountry";
|
|
3
4
|
export declare class GetAvailableStockLocationAddressData {
|
|
4
5
|
address: string | null;
|
|
5
6
|
city: GetAvailableStockLocationAddressCityData | null;
|
|
6
|
-
country:
|
|
7
|
+
country: GetAvailableStockLocationAddressCountryData | null;
|
|
7
8
|
district: GetAvailableStockLocationAddressCityData | null;
|
|
8
9
|
phone: string | null;
|
|
9
10
|
postalCode: string | null;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
export declare class GetAvailableStockLocationAddressCountryData {
|
|
3
|
+
code: string | null;
|
|
4
|
+
id: string | null;
|
|
5
|
+
iso2: string | null;
|
|
6
|
+
iso3: string | null;
|
|
7
|
+
name: string | null;
|
|
8
|
+
constructor(data?: Partial<GetAvailableStockLocationAddressCountryData>);
|
|
9
|
+
}
|
|
10
|
+
export declare class GetAvailableStockLocationAddressCountry extends GetAvailableStockLocationAddressCountryData {
|
|
11
|
+
}
|
|
12
|
+
export declare type PartialGetAvailableStockLocationAddressCountry = Partial<GetAvailableStockLocationAddressCountry>;
|
|
13
|
+
export declare type ReadOnlyGetAvailableStockLocationAddressCountry = DeepReadonly<GetAvailableStockLocationAddressCountry>;
|
|
@@ -13,6 +13,8 @@ export declare enum ResponseField {
|
|
|
13
13
|
STOCK_LOCATIONS__ADDRESS__CITY__NAME = "stockLocations.address.city.name",
|
|
14
14
|
STOCK_LOCATIONS__ADDRESS__COUNTRY__CODE = "stockLocations.address.country.code",
|
|
15
15
|
STOCK_LOCATIONS__ADDRESS__COUNTRY__ID = "stockLocations.address.country.id",
|
|
16
|
+
STOCK_LOCATIONS__ADDRESS__COUNTRY__ISO2 = "stockLocations.address.country.iso2",
|
|
17
|
+
STOCK_LOCATIONS__ADDRESS__COUNTRY__ISO3 = "stockLocations.address.country.iso3",
|
|
16
18
|
STOCK_LOCATIONS__ADDRESS__COUNTRY__NAME = "stockLocations.address.country.name",
|
|
17
19
|
STOCK_LOCATIONS__ADDRESS__DISTRICT__CODE = "stockLocations.address.district.code",
|
|
18
20
|
STOCK_LOCATIONS__ADDRESS__DISTRICT__ID = "stockLocations.address.district.id",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as t,__generator as s}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as o,APIResponse as _,fetchQuery as
|
|
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};
|
|
@@ -1407,7 +1407,7 @@ export interface GetAvailableStockLocation {
|
|
|
1407
1407
|
export interface GetAvailableStockLocationAddress {
|
|
1408
1408
|
address: string | null;
|
|
1409
1409
|
city: GetAvailableStockLocationAddressCity | null;
|
|
1410
|
-
country:
|
|
1410
|
+
country: GetAvailableStockLocationAddressCountry | null;
|
|
1411
1411
|
district: GetAvailableStockLocationAddressCity | null;
|
|
1412
1412
|
phone: string | null;
|
|
1413
1413
|
postalCode: string | null;
|
|
@@ -1418,6 +1418,13 @@ export interface GetAvailableStockLocationAddressCity {
|
|
|
1418
1418
|
id: string | null;
|
|
1419
1419
|
name: string | null;
|
|
1420
1420
|
}
|
|
1421
|
+
export interface GetAvailableStockLocationAddressCountry {
|
|
1422
|
+
code: string | null;
|
|
1423
|
+
id: string | null;
|
|
1424
|
+
iso2: string | null;
|
|
1425
|
+
iso3: string | null;
|
|
1426
|
+
name: string | null;
|
|
1427
|
+
}
|
|
1421
1428
|
export interface GetAvailableStockLocationsResponse {
|
|
1422
1429
|
stockLocations: GetAvailableStockLocation[];
|
|
1423
1430
|
}
|
|
@@ -3164,6 +3171,7 @@ export interface RaffleParticipantsInput {
|
|
|
3164
3171
|
export interface RetrieveInstallmentInfoInput {
|
|
3165
3172
|
binNumber: string;
|
|
3166
3173
|
currencyCode?: string | null;
|
|
3174
|
+
orderId?: string | null;
|
|
3167
3175
|
paymentGatewayId: string;
|
|
3168
3176
|
price: number;
|
|
3169
3177
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ikas/storefront-api",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.10",
|
|
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": "^5.0.
|
|
21
|
-
"@ikas/storefront-models": "^5.0.
|
|
20
|
+
"@ikas/storefront-config": "^5.0.10",
|
|
21
|
+
"@ikas/storefront-models": "^5.0.10",
|
|
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": "^5.0.
|
|
38
|
-
"@ikas/storefront-models": "^5.0.
|
|
37
|
+
"@ikas/storefront-config": "^5.0.10",
|
|
38
|
+
"@ikas/storefront-models": "^5.0.10",
|
|
39
39
|
"@ikas/fe-api-client": "^1.0.18",
|
|
40
40
|
"axios": "^0.26.0",
|
|
41
41
|
"ts-essentials": "^7.0.1"
|