@ikas/storefront-api 4.3.2 → 4.3.4
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.
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { DeepReadonly } from "ts-essentials";
|
|
2
2
|
import BaseModelData from "./_base";
|
|
3
|
+
import { LocationTranslationsData } from "./LocationTranslations";
|
|
3
4
|
export declare class StateData extends BaseModelData {
|
|
4
5
|
countryId: string;
|
|
6
|
+
locationTranslations: LocationTranslationsData | null;
|
|
5
7
|
name: string;
|
|
8
|
+
native: string | null;
|
|
6
9
|
stateCode: string | null;
|
|
7
10
|
constructor(data?: Partial<StateData>);
|
|
8
11
|
}
|
|
@@ -6,6 +6,7 @@ export declare type QueryParams = {
|
|
|
6
6
|
countryId: StringFilterInput;
|
|
7
7
|
id?: StringFilterInput | null;
|
|
8
8
|
includeDeleted?: boolean | null;
|
|
9
|
+
locale?: string | null;
|
|
9
10
|
search?: string | null;
|
|
10
11
|
updatedAt?: DateFilterInput | null;
|
|
11
12
|
};
|
|
@@ -14,7 +15,11 @@ export declare enum ResponseField {
|
|
|
14
15
|
CREATED_AT = "createdAt",
|
|
15
16
|
DELETED = "deleted",
|
|
16
17
|
ID = "id",
|
|
18
|
+
LOCATION_TRANSLATIONS__DE = "locationTranslations.de",
|
|
19
|
+
LOCATION_TRANSLATIONS__EN = "locationTranslations.en",
|
|
20
|
+
LOCATION_TRANSLATIONS__TR = "locationTranslations.tr",
|
|
17
21
|
NAME = "name",
|
|
22
|
+
NATIVE = "native",
|
|
18
23
|
STATE_CODE = "stateCode",
|
|
19
24
|
UPDATED_AT = "updatedAt"
|
|
20
25
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as t,__generator as e}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as n,APIResponse as
|
|
1
|
+
import{__awaiter as t,__generator as e}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as n,APIResponse as a,fetchQuery as r}from"@ikas/fe-api-client";var i,d=function(i,d,l){return t(void 0,void 0,void 0,(function(){var t,s,u,c;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,r({operationName:"listState",config:l,variables:i,allReturnFields:o,fields:d,query:function(t){return"\n\t\t\t\tquery listState (\n\t\t\t\t\t$countryId: StringFilterInput!,\n\t\t\t\t\t$id: StringFilterInput,\n\t\t\t\t\t$includeDeleted: Boolean,\n\t\t\t\t\t$locale: String,\n\t\t\t\t\t$search: String,\n\t\t\t\t\t$updatedAt: DateFilterInput,\n\t\t\t\t) {\n\t\t\t\t\tlistState (\n\t\t\t\t\t\tcountryId: $countryId,\n\t\t\t\t\t\tid: $id,\n\t\t\t\t\t\tincludeDeleted: $includeDeleted,\n\t\t\t\t\t\tlocale: $locale,\n\t\t\t\t\t\tsearch: $search,\n\t\t\t\t\t\tupdatedAt: $updatedAt,\n\t\t\t\t\t) ".concat(t,"\n\t\t\t\t}\n\t\t\t")}})];case 1:return t=e.sent(),s=t.data,u=t.errors,[2,new a(null==s?void 0:s.listState,u)];case 2:return c=e.sent(),[2,n(c)];case 3:return[2]}}))}))},o="{countryId createdAt deleted id locationTranslations {de en tr } name native stateCode updatedAt }";!function(t){t.COUNTRY_ID="countryId",t.CREATED_AT="createdAt",t.DELETED="deleted",t.ID="id",t.LOCATION_TRANSLATIONS__DE="locationTranslations.de",t.LOCATION_TRANSLATIONS__EN="locationTranslations.en",t.LOCATION_TRANSLATIONS__TR="locationTranslations.tr",t.NAME="name",t.NATIVE="native",t.STATE_CODE="stateCode",t.UPDATED_AT="updatedAt"}(i||(i={}));export{i as ResponseField,d as default};
|
|
@@ -2228,7 +2228,9 @@ export interface State {
|
|
|
2228
2228
|
createdAt: any | null;
|
|
2229
2229
|
deleted: boolean | null;
|
|
2230
2230
|
id: string;
|
|
2231
|
+
locationTranslations: LocationTranslations | null;
|
|
2231
2232
|
name: string;
|
|
2233
|
+
native: string | null;
|
|
2232
2234
|
stateCode: string | null;
|
|
2233
2235
|
updatedAt: any | null;
|
|
2234
2236
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as t,__generator as r,__assign as e}from'./../../ext/tslib/tslib.es6.js';import{APIResponse as n}from"@ikas/fe-api-client";import{initIkasCountry as i}from"@ikas/storefront-models";import{IkasStorefrontConfig as
|
|
1
|
+
import{__awaiter as t,__generator as r,__assign as e}from'./../../ext/tslib/tslib.es6.js';import{APIResponse as n}from"@ikas/fe-api-client";import{initIkasCountry as i,initIkasState as s}from"@ikas/storefront-models";import{IkasStorefrontConfig as o}from"@ikas/storefront-config";function a(){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/queries/getMyCountry.js")];case 1:return[4,(0,t.sent().default)()];case 2:return[2,t.sent()]}}))}))}function u(s){return t(this,void 0,void 0,(function(){var t,a;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/listCountry.js")];case 1:return[4,(0,r.sent().default)(e(e({},s),{locale:s.locale||o.getCurrentLocale()}))];case 2:return t=r.sent(),(a=t.data).forEach((function(t){return i(t,o.getCurrentLocale())})),[2,new n(a,t.graphQLErrors)]}}))}))}function c(e){return t(this,void 0,void 0,(function(){var t;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/listCity.js")];case 1:return[4,(0,r.sent().default)(e)];case 2:return t=r.sent(),[2,new n(t.data,t.graphQLErrors)]}}))}))}function l(e){return t(this,void 0,void 0,(function(){var t;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/listDistrict.js")];case 1:return[4,(0,r.sent().default)(e)];case 2:return t=r.sent(),[2,new n(t.data,t.graphQLErrors)]}}))}))}function f(i){return t(this,void 0,void 0,(function(){var t,a;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/listState.js")];case 1:return[4,(0,r.sent().default)(e(e({},i),{locale:i.locale||o.getCurrentLocale()}))];case 2:return t=r.sent(),(a=t.data).forEach((function(t){return s(t,o.getCurrentLocale())})),[2,new n(a,t.graphQLErrors)]}}))}))}export{a as getMyCountry,c as listCity,u as listCountry,l as listDistrict,f as listState};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ikas/storefront-api",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.4",
|
|
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": "^4.3.
|
|
21
|
-
"@ikas/storefront-models": "^4.3.
|
|
20
|
+
"@ikas/storefront-config": "^4.3.4",
|
|
21
|
+
"@ikas/storefront-models": "^4.3.4",
|
|
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": "^4.3.
|
|
38
|
-
"@ikas/storefront-models": "^4.3.
|
|
37
|
+
"@ikas/storefront-config": "^4.3.4",
|
|
38
|
+
"@ikas/storefront-models": "^4.3.4",
|
|
39
39
|
"@ikas/fe-api-client": "^1.0.18",
|
|
40
40
|
"axios": "^0.26.0",
|
|
41
41
|
"ts-essentials": "^7.0.1"
|