@ikas/storefront-api 4.0.0-beta.13 → 4.0.0-beta.14
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/CustomerReviewSummary.d.ts +1 -0
- package/build/__api/models/SaveCartInput.d.ts +0 -2
- package/build/__api/models/SaveCartInput.js +1 -1
- package/build/__api/queries/listCustomerReviewSummary.d.ts +2 -0
- package/build/__api/queries/listCustomerReviewSummary.js +1 -1
- package/build/__api/queries/listCustomerSettings.d.ts +1 -1
- package/build/__api/queries/listCustomerSettings.js +1 -0
- package/build/__api/types/index.d.ts +1 -1
- package/build/api/checkout/index.js +1 -1
- package/build/api/customer/index.d.ts +71 -1
- package/build/api/customer/index.js +1 -1
- package/build/index.js +1 -1
- package/package.json +5 -5
- package/build/__api/models/OrderAdjustmentInput.js +0 -1
|
@@ -5,6 +5,7 @@ export declare class CustomerReviewSummaryData extends BaseModelData {
|
|
|
5
5
|
averageStar: number;
|
|
6
6
|
productId: string;
|
|
7
7
|
stars: CustomerReviewSummaryStarData[];
|
|
8
|
+
storefrontId: string | null;
|
|
8
9
|
totalReview: number;
|
|
9
10
|
constructor(data?: Partial<CustomerReviewSummaryData>);
|
|
10
11
|
}
|
|
@@ -2,7 +2,6 @@ import { DeepReadonly } from "ts-essentials";
|
|
|
2
2
|
import BaseModelData from "./_base";
|
|
3
3
|
import { OrderAddressInputData } from "./OrderAddressInput";
|
|
4
4
|
import { CheckoutCustomerInputData } from "./CheckoutCustomerInput";
|
|
5
|
-
import { OrderAdjustmentInputData } from "./OrderAdjustmentInput";
|
|
6
5
|
export declare class SaveCartInputData extends BaseModelData {
|
|
7
6
|
billingAddress: OrderAddressInputData | null;
|
|
8
7
|
couponCode: string | null;
|
|
@@ -10,7 +9,6 @@ export declare class SaveCartInputData extends BaseModelData {
|
|
|
10
9
|
giftPackageNote: string | null;
|
|
11
10
|
isGiftPackage: boolean | null;
|
|
12
11
|
note: string | null;
|
|
13
|
-
orderAdjustments: OrderAdjustmentInputData[] | null;
|
|
14
12
|
shippingAddress: OrderAddressInputData | null;
|
|
15
13
|
shippingSettingsId: string | null;
|
|
16
14
|
shippingZoneRateId: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__extends as
|
|
1
|
+
import{__extends as i}from'./../../ext/tslib/tslib.es6.js';import n from"./_base.js";import{OrderAddressInputData as s}from"./OrderAddressInput.js";import{CheckoutCustomerInputData as t}from"./CheckoutCustomerInput.js";var e=function(n){function e(i){void 0===i&&(i={});var e=n.call(this,i)||this;return e.billingAddress=i.billingAddress?new s(i.billingAddress):null,e.couponCode=i.couponCode||null,e.customer=i.customer?new t(i.customer):null,e.giftPackageNote=i.giftPackageNote||null,e.isGiftPackage=void 0!==i.isGiftPackage&&null!==i.isGiftPackage?i.isGiftPackage:null,e.note=i.note||null,e.shippingAddress=i.shippingAddress?new s(i.shippingAddress):null,e.shippingSettingsId=i.shippingSettingsId||null,e.shippingZoneRateId=i.shippingZoneRateId||null,e.stockLocationId=i.stockLocationId||null,e}return i(e,n),e}(n),o=function(n){function s(){return null!==n&&n.apply(this,arguments)||this}return i(s,n),s}(e);export{o as SaveCartInput,e as SaveCartInputData};
|
|
@@ -5,6 +5,7 @@ export default listCustomerReviewSummary;
|
|
|
5
5
|
export declare type QueryParams = {
|
|
6
6
|
pagination?: PaginationInput | null;
|
|
7
7
|
productId?: StringFilterInput | null;
|
|
8
|
+
storefrontId?: StringFilterInput | null;
|
|
8
9
|
};
|
|
9
10
|
export declare enum ResponseField {
|
|
10
11
|
COUNT = "count",
|
|
@@ -15,6 +16,7 @@ export declare enum ResponseField {
|
|
|
15
16
|
DATA__PRODUCT_ID = "data.productId",
|
|
16
17
|
DATA__STARS__COUNT = "data.stars.count",
|
|
17
18
|
DATA__STARS__STAR = "data.stars.star",
|
|
19
|
+
DATA__STOREFRONT_ID = "data.storefrontId",
|
|
18
20
|
DATA__TOTAL_REVIEW = "data.totalReview",
|
|
19
21
|
DATA__UPDATED_AT = "data.updatedAt",
|
|
20
22
|
HAS_NEXT = "hasNext",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as t,__generator as a}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as e,APIResponse as r,fetchQuery as n}from"@ikas/fe-api-client";var i,
|
|
1
|
+
import{__awaiter as t,__generator as a}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as e,APIResponse as r,fetchQuery as n}from"@ikas/fe-api-client";var i,o=function(i,o,s){return t(void 0,void 0,void 0,(function(){var t,u,A,_;return a(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,n({operationName:"listCustomerReviewSummary",config:s,variables:i,allReturnFields:d,fields:o,query:function(t){return"\n\t\t\t\tquery listCustomerReviewSummary (\n\t\t\t\t\t$pagination: PaginationInput,\n\t\t\t\t\t$productId: StringFilterInput,\n\t\t\t\t\t$storefrontId: StringFilterInput,\n\t\t\t\t) {\n\t\t\t\t\tlistCustomerReviewSummary (\n\t\t\t\t\t\tpagination: $pagination,\n\t\t\t\t\t\tproductId: $productId,\n\t\t\t\t\t\tstorefrontId: $storefrontId,\n\t\t\t\t\t) ".concat(t,"\n\t\t\t\t}\n\t\t\t")}})];case 1:return t=a.sent(),u=t.data,A=t.errors,[2,new r(null==u?void 0:u.listCustomerReviewSummary,A)];case 2:return _=a.sent(),[2,e(_)];case 3:return[2]}}))}))},d="{count data {averageStar createdAt deleted id productId stars {count star } storefrontId totalReview updatedAt } hasNext limit page }";!function(t){t.COUNT="count",t.DATA__AVERAGE_STAR="data.averageStar",t.DATA__CREATED_AT="data.createdAt",t.DATA__DELETED="data.deleted",t.DATA__ID="data.id",t.DATA__PRODUCT_ID="data.productId",t.DATA__STARS__COUNT="data.stars.count",t.DATA__STARS__STAR="data.stars.star",t.DATA__STOREFRONT_ID="data.storefrontId",t.DATA__TOTAL_REVIEW="data.totalReview",t.DATA__UPDATED_AT="data.updatedAt",t.HAS_NEXT="hasNext",t.LIMIT="limit",t.PAGE="page"}(i||(i={}));export{i as ResponseField,o as default};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ConfigType, APIResponse } from "@ikas/fe-api-client";
|
|
2
2
|
import { StringFilterInput, CustomerSettings } from "../types";
|
|
3
|
-
declare const listCustomerSettings: (variables: QueryParams, fields?: string[], config?: ConfigType) => Promise<APIResponse<
|
|
3
|
+
declare const listCustomerSettings: (variables: QueryParams, fields?: string[], config?: ConfigType) => Promise<APIResponse<CustomerSettings[]> | APIResponse<undefined>>;
|
|
4
4
|
export default listCustomerSettings;
|
|
5
5
|
export declare type QueryParams = {
|
|
6
6
|
id?: StringFilterInput | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__awaiter as t,__generator as e}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as n,APIResponse as r,fetchQuery as i}from"@ikas/fe-api-client";var s,a=function(s,a,d){return t(void 0,void 0,void 0,(function(){var t,l,u,I;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,i({operationName:"listCustomerSettings",config:d,variables:s,allReturnFields:o,fields:a,query:function(t){return"\n\t\t\t\tquery listCustomerSettings (\n\t\t\t\t\t$id: StringFilterInput,\n\t\t\t\t\t$storefrontId: StringFilterInput,\n\t\t\t\t) {\n\t\t\t\t\tlistCustomerSettings (\n\t\t\t\t\t\tid: $id,\n\t\t\t\t\t\tstorefrontId: $storefrontId,\n\t\t\t\t\t) ".concat(t,"\n\t\t\t\t}\n\t\t\t")}})];case 1:return t=e.sent(),l=t.data,u=t.errors,[2,new r(null==l?void 0:l.listCustomerSettings,u)];case 2:return I=e.sent(),[2,n(I)];case 3:return[2]}}))}))},o="{createdAt deleted id requireCaptchaValidation requireEmailValidation salesChannelId storefrontId updatedAt }";!function(t){t.CREATED_AT="createdAt",t.DELETED="deleted",t.ID="id",t.REQUIRE_CAPTCHA_VALIDATION="requireCaptchaValidation",t.REQUIRE_EMAIL_VALIDATION="requireEmailValidation",t.SALES_CHANNEL_ID="salesChannelId",t.STOREFRONT_ID="storefrontId",t.UPDATED_AT="updatedAt"}(s||(s={}));export{s as ResponseField,a as default};
|
|
@@ -1166,6 +1166,7 @@ export interface CustomerReviewSummary {
|
|
|
1166
1166
|
id: string;
|
|
1167
1167
|
productId: string;
|
|
1168
1168
|
stars: CustomerReviewSummaryStar[];
|
|
1169
|
+
storefrontId: string | null;
|
|
1169
1170
|
totalReview: number;
|
|
1170
1171
|
updatedAt: any | null;
|
|
1171
1172
|
}
|
|
@@ -2756,7 +2757,6 @@ export interface SaveCartInput {
|
|
|
2756
2757
|
id?: string | null;
|
|
2757
2758
|
isGiftPackage?: boolean | null;
|
|
2758
2759
|
note?: string | null;
|
|
2759
|
-
orderAdjustments?: OrderAdjustmentInput[] | null;
|
|
2760
2760
|
shippingAddress?: OrderAddressInput | null;
|
|
2761
2761
|
shippingSettingsId?: string | null;
|
|
2762
2762
|
shippingZoneRateId?: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as t,__generator as e}from'./../../ext/tslib/tslib.es6.js';import{APIResponse as
|
|
1
|
+
import{__awaiter as t,__generator as e}from'./../../ext/tslib/tslib.es6.js';import{APIResponse as n}from"@ikas/fe-api-client";function r(n){return t(this,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/createSaleTransactionWithCart.js")];case 1:return[4,(0,t.sent().default)(n)];case 2:return[2,t.sent()]}}))}))}function i(r){return t(this,void 0,void 0,(function(){var t,i;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/listPaymentGateway.js")];case 1:return[4,(0,e.sent().default)(r)];case 2:return t=e.sent(),i=t.data||[],[2,new n(i,t.graphQLErrors)]}}))}))}function s(n){return t(this,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/retrieveInstallmentInfo.js")];case 1:return[4,(0,t.sent().default)(n)];case 2:return[2,t.sent()]}}))}))}function a(n){return t(this,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/queries/checkStocks.js")];case 1:return[4,(0,t.sent().default)(n)];case 2:return[2,t.sent()]}}))}))}function u(r){return t(this,void 0,void 0,(function(){var t,i,s,a,u;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/listCheckoutSettings.js")];case 1:return t=e.sent().default,s=t,a=[r],[4,h()];case 2:return[4,s.apply(void 0,a.concat([e.sent()]))];case 3:return i=e.sent(),u=i.data||[],[2,new n(u,i.graphQLErrors)]}}))}))}function o(n){return t(this,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/queries/getAvailableShippingCountries.js")];case 1:return[4,(0,t.sent().default)(n)];case 2:return[2,t.sent()]}}))}))}function c(r){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/listStockLocation.js")];case 1:return[4,(0,e.sent().default)(r)];case 2:return t=e.sent(),[2,new n(t.data,t.graphQLErrors)]}}))}))}function l(r){var i;return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/getAvailableStockLocations.js")];case 1:return[4,(0,e.sent().default)(r)];case 2:return t=e.sent(),[2,new n(null===(i=t.data)||void 0===i?void 0:i.stockLocations,t.graphQLErrors)]}}))}))}function f(r){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/mutations/createStripePaymentIntent.js")];case 1:return[4,(0,e.sent().default)(r)];case 2:return t=e.sent(),[2,new n(t.data,t.graphQLErrors)]}}))}))}function d(r){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/mutations/createKlarnaClientToken.js")];case 1:return[4,(0,e.sent().default)(r)];case 2:return t=e.sent(),[2,new n(t.data,t.graphQLErrors)]}}))}))}function h(){return t(this,void 0,void 0,(function(){var t,n;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/listCheckoutSettings.js")];case 1:return t=e.sent().ResponseField,n=["IS_SHOW_POSTAL_CODE"],[2,Object.entries(t).filter((function(t){var e=t[0];return!n.includes(e)})).map((function(t){return t[1]}))]}}))}))}export{a as checkStocks,d as createKlarnaClientToken,r as createSaleTransactionWithCart,f as createStripePaymentIntent,o as getAvailableShippingCountries,l as getAvailableStockLocations,u as listCheckoutSettings,i as listPaymentGateway,c as listStockLocations,s as retrieveInstallmentInfo};
|
|
@@ -21,7 +21,8 @@ import { QueryParams as IsFavoriteProductQueryParams } from "../../__api/queries
|
|
|
21
21
|
import { QueryParams as CreateCustomerReviewQueryParams } from "../../__api/mutations/createCustomerReview";
|
|
22
22
|
import { QueryParams as ListCustomerReviewsQueryParams } from "../../__api/queries/listCustomerReviews";
|
|
23
23
|
import { QueryParams as ListCustomerReviewSummaryQueryParams } from "../../__api/queries/listCustomerReviewSummary";
|
|
24
|
-
import {
|
|
24
|
+
import { QueryParams as ListCustomerSettingsQueryParams } from "../../__api/queries/listCustomerSettings";
|
|
25
|
+
import { IkasCustomer, IkasCustomerAttribute, IkasCustomerReview, IkasCustomerReviewSummary, IkasFavoriteProduct, IkasLastViewedProduct, IkasOrder, IkasOrderRefundSettings, IkasOrderTransaction, IkasCustomerSettings } from "@ikas/storefront-models";
|
|
25
26
|
export type { CustomerLoginQueryParams, CustomerSocialLoginQueryParams, RegisterCustomerQueryParams, CustomerRefreshTokenQueryParams, CustomerForgotPasswordQueryParams, CustomerRecoverPasswordQueryParams, CheckCustomerEmailQueryParams, SaveMyCustomerQueryParams, GetCustomerOrdersQueryParams, GetOrderByEmailQueryParams, ListOrderTransactionsQueryParams, CreateOrderRefundRequestQueryParams, SubscribeToMarketingNotificationsQueryParams, GetLastViewedProductsQueryParams, SaveLastViewedProductsQueryParams, ListOrderRefundSettingsQueryParams, SendContactFormToMerchantQueryParams, SaveFavoriteProductQueryParams, IsFavoriteProductQueryParams, CreateCustomerReviewQueryParams, ListCustomerReviewsQueryParams, ListCustomerReviewSummaryQueryParams, };
|
|
26
27
|
export declare function login(params: CustomerLoginQueryParams): Promise<APIResponse<{
|
|
27
28
|
customer: IkasCustomer | null;
|
|
@@ -128,3 +129,72 @@ export declare function listCustomerReviewSummary(params: ListCustomerReviewSumm
|
|
|
128
129
|
page?: number | undefined;
|
|
129
130
|
}>>;
|
|
130
131
|
export declare function listCustomerAttribute(): Promise<APIResponse<IkasCustomerAttribute[]>>;
|
|
132
|
+
export declare function listCustomerSettings(params: ListCustomerSettingsQueryParams): Promise<APIResponse<{
|
|
133
|
+
data: IkasCustomerSettings[];
|
|
134
|
+
length?: number | undefined;
|
|
135
|
+
toString?: (() => string) | undefined;
|
|
136
|
+
toLocaleString?: (() => string) | undefined;
|
|
137
|
+
pop?: (() => import("../../__api/types").CustomerSettings | undefined) | undefined;
|
|
138
|
+
push?: ((...items: import("../../__api/types").CustomerSettings[]) => number) | undefined;
|
|
139
|
+
concat?: {
|
|
140
|
+
(...items: ConcatArray<import("../../__api/types").CustomerSettings>[]): import("../../__api/types").CustomerSettings[];
|
|
141
|
+
(...items: (import("../../__api/types").CustomerSettings | ConcatArray<import("../../__api/types").CustomerSettings>)[]): import("../../__api/types").CustomerSettings[];
|
|
142
|
+
} | undefined;
|
|
143
|
+
join?: ((separator?: string | undefined) => string) | undefined;
|
|
144
|
+
reverse?: (() => import("../../__api/types").CustomerSettings[]) | undefined;
|
|
145
|
+
shift?: (() => import("../../__api/types").CustomerSettings | undefined) | undefined;
|
|
146
|
+
slice?: ((start?: number | undefined, end?: number | undefined) => import("../../__api/types").CustomerSettings[]) | undefined;
|
|
147
|
+
sort?: ((compareFn?: ((a: import("../../__api/types").CustomerSettings, b: import("../../__api/types").CustomerSettings) => number) | undefined) => import("../../__api/types").CustomerSettings[]) | undefined;
|
|
148
|
+
splice?: {
|
|
149
|
+
(start: number, deleteCount?: number | undefined): import("../../__api/types").CustomerSettings[];
|
|
150
|
+
(start: number, deleteCount: number, ...items: import("../../__api/types").CustomerSettings[]): import("../../__api/types").CustomerSettings[];
|
|
151
|
+
} | undefined;
|
|
152
|
+
unshift?: ((...items: import("../../__api/types").CustomerSettings[]) => number) | undefined;
|
|
153
|
+
indexOf?: ((searchElement: import("../../__api/types").CustomerSettings, fromIndex?: number | undefined) => number) | undefined;
|
|
154
|
+
lastIndexOf?: ((searchElement: import("../../__api/types").CustomerSettings, fromIndex?: number | undefined) => number) | undefined;
|
|
155
|
+
every?: {
|
|
156
|
+
<S extends import("../../__api/types").CustomerSettings>(predicate: (value: import("../../__api/types").CustomerSettings, index: number, array: import("../../__api/types").CustomerSettings[]) => value is S, thisArg?: any): this is S[];
|
|
157
|
+
(predicate: (value: import("../../__api/types").CustomerSettings, index: number, array: import("../../__api/types").CustomerSettings[]) => unknown, thisArg?: any): boolean;
|
|
158
|
+
} | undefined;
|
|
159
|
+
some?: ((predicate: (value: import("../../__api/types").CustomerSettings, index: number, array: import("../../__api/types").CustomerSettings[]) => unknown, thisArg?: any) => boolean) | undefined;
|
|
160
|
+
forEach?: ((callbackfn: (value: import("../../__api/types").CustomerSettings, index: number, array: import("../../__api/types").CustomerSettings[]) => void, thisArg?: any) => void) | undefined;
|
|
161
|
+
map?: (<U>(callbackfn: (value: import("../../__api/types").CustomerSettings, index: number, array: import("../../__api/types").CustomerSettings[]) => U, thisArg?: any) => U[]) | undefined;
|
|
162
|
+
filter?: {
|
|
163
|
+
<S_1 extends import("../../__api/types").CustomerSettings>(predicate: (value: import("../../__api/types").CustomerSettings, index: number, array: import("../../__api/types").CustomerSettings[]) => value is S_1, thisArg?: any): S_1[];
|
|
164
|
+
(predicate: (value: import("../../__api/types").CustomerSettings, index: number, array: import("../../__api/types").CustomerSettings[]) => unknown, thisArg?: any): import("../../__api/types").CustomerSettings[];
|
|
165
|
+
} | undefined;
|
|
166
|
+
reduce?: {
|
|
167
|
+
(callbackfn: (previousValue: import("../../__api/types").CustomerSettings, currentValue: import("../../__api/types").CustomerSettings, currentIndex: number, array: import("../../__api/types").CustomerSettings[]) => import("../../__api/types").CustomerSettings): import("../../__api/types").CustomerSettings;
|
|
168
|
+
(callbackfn: (previousValue: import("../../__api/types").CustomerSettings, currentValue: import("../../__api/types").CustomerSettings, currentIndex: number, array: import("../../__api/types").CustomerSettings[]) => import("../../__api/types").CustomerSettings, initialValue: import("../../__api/types").CustomerSettings): import("../../__api/types").CustomerSettings;
|
|
169
|
+
<U_1>(callbackfn: (previousValue: U_1, currentValue: import("../../__api/types").CustomerSettings, currentIndex: number, array: import("../../__api/types").CustomerSettings[]) => U_1, initialValue: U_1): U_1;
|
|
170
|
+
} | undefined;
|
|
171
|
+
reduceRight?: {
|
|
172
|
+
(callbackfn: (previousValue: import("../../__api/types").CustomerSettings, currentValue: import("../../__api/types").CustomerSettings, currentIndex: number, array: import("../../__api/types").CustomerSettings[]) => import("../../__api/types").CustomerSettings): import("../../__api/types").CustomerSettings;
|
|
173
|
+
(callbackfn: (previousValue: import("../../__api/types").CustomerSettings, currentValue: import("../../__api/types").CustomerSettings, currentIndex: number, array: import("../../__api/types").CustomerSettings[]) => import("../../__api/types").CustomerSettings, initialValue: import("../../__api/types").CustomerSettings): import("../../__api/types").CustomerSettings;
|
|
174
|
+
<U_2>(callbackfn: (previousValue: U_2, currentValue: import("../../__api/types").CustomerSettings, currentIndex: number, array: import("../../__api/types").CustomerSettings[]) => U_2, initialValue: U_2): U_2;
|
|
175
|
+
} | undefined;
|
|
176
|
+
find?: {
|
|
177
|
+
<S_2 extends import("../../__api/types").CustomerSettings>(predicate: (this: void, value: import("../../__api/types").CustomerSettings, index: number, obj: import("../../__api/types").CustomerSettings[]) => value is S_2, thisArg?: any): S_2 | undefined;
|
|
178
|
+
(predicate: (value: import("../../__api/types").CustomerSettings, index: number, obj: import("../../__api/types").CustomerSettings[]) => unknown, thisArg?: any): import("../../__api/types").CustomerSettings | undefined;
|
|
179
|
+
} | undefined;
|
|
180
|
+
findIndex?: ((predicate: (value: import("../../__api/types").CustomerSettings, index: number, obj: import("../../__api/types").CustomerSettings[]) => unknown, thisArg?: any) => number) | undefined;
|
|
181
|
+
fill?: ((value: import("../../__api/types").CustomerSettings, start?: number | undefined, end?: number | undefined) => import("../../__api/types").CustomerSettings[]) | undefined;
|
|
182
|
+
copyWithin?: ((target: number, start: number, end?: number | undefined) => import("../../__api/types").CustomerSettings[]) | undefined;
|
|
183
|
+
entries?: (() => IterableIterator<[number, import("../../__api/types").CustomerSettings]>) | undefined;
|
|
184
|
+
keys?: (() => IterableIterator<number>) | undefined;
|
|
185
|
+
values?: (() => IterableIterator<import("../../__api/types").CustomerSettings>) | undefined;
|
|
186
|
+
includes?: ((searchElement: import("../../__api/types").CustomerSettings, fromIndex?: number | undefined) => boolean) | undefined;
|
|
187
|
+
flatMap?: (<U_3, This = undefined>(callback: (this: This, value: import("../../__api/types").CustomerSettings, index: number, array: import("../../__api/types").CustomerSettings[]) => U_3 | readonly U_3[], thisArg?: This | undefined) => U_3[]) | undefined;
|
|
188
|
+
flat?: (<A, D extends number = 1>(this: A, depth?: D | undefined) => FlatArray<A, D>[]) | undefined;
|
|
189
|
+
[Symbol.iterator]?: (() => IterableIterator<import("../../__api/types").CustomerSettings>) | undefined;
|
|
190
|
+
[Symbol.unscopables]?: (() => {
|
|
191
|
+
copyWithin: boolean;
|
|
192
|
+
entries: boolean;
|
|
193
|
+
fill: boolean;
|
|
194
|
+
find: boolean;
|
|
195
|
+
findIndex: boolean;
|
|
196
|
+
keys: boolean;
|
|
197
|
+
values: boolean;
|
|
198
|
+
}) | undefined;
|
|
199
|
+
at?: ((index: number) => import("../../__api/types").CustomerSettings | undefined) | undefined;
|
|
200
|
+
}>>;
|
|
@@ -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{initIkasCustomerReview as i,initIkasCustomerAttribute as s}from"@ikas/storefront-models";import{IkasStorefrontConfig as u}from"@ikas/storefront-config";function a(i){var s;return t(this,void 0,void 0,(function(){var t,u;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/mutations/customerLogin.js")];case 1:return[4,(0,r.sent().default)(i)];case 2:return t=r.sent(),u=(null===(s=t.data)||void 0===s?void 0:s.customer)||null,[2,new n(t.data?e(e({},t.data),{customer:u}):null,t.graphQLErrors)]}}))}))}function o(i){var s;return t(this,void 0,void 0,(function(){var t,u;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/customerSocialLogin.js")];case 1:return[4,(0,r.sent().default)(i)];case 2:return t=r.sent(),u=(null===(s=t.data)||void 0===s?void 0:s.customer)||null,[2,new n(t.data?e(e({},t.data),{customer:u}):null,t.graphQLErrors)]}}))}))}function c(i){var s;return t(this,void 0,void 0,(function(){var t,u;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/mutations/registerCustomer.js")];case 1:return[4,(0,r.sent().default)(i)];case 2:return t=r.sent(),u=(null===(s=t.data)||void 0===s?void 0:s.customer)||null,[2,new n(t.data?e(e({},t.data),{customer:u}):null,t.graphQLErrors)]}}))}))}function d(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/customerRefreshToken.js")];case 1:return[4,(0,t.sent().default)(e)];case 2:return[2,t.sent()]}}))}))}function l(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/customerForgotPassword.js")];case 1:return[4,(0,t.sent().default)(e)];case 2:return[2,t.sent()]}}))}))}function f(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/customerRecoverPassword.js")];case 1:return[4,(0,t.sent().default)(e)];case 2:return[2,t.sent()]}}))}))}function v(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/queries/checkCustomerEmail.js")];case 1:return[4,(0,t.sent().default)(e)];case 2:return[2,t.sent()]}}))}))}function h(){return t(this,void 0,void 0,(function(){var t,i,s,u;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/getMyCustomer.js")];case 1:return t=r.sent().default,s=t,[4,I()];case 2:return[4,s.apply(void 0,[r.sent()])];case 3:return i=r.sent(),u=i.data||null,[2,new n(i.data?e(e({},i.data),{customer:u}):null,i.graphQLErrors)]}}))}))}function p(i){return t(this,void 0,void 0,(function(){var t,s,u,a,o;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/mutations/saveMyCustomer.js")];case 1:return t=r.sent().default,u=t,a=[i],[4,I()];case 2:return[4,u.apply(void 0,a.concat([r.sent()]))];case 3:return s=r.sent(),o=s.data||null,[2,new n(s.data?e(e({},s.data),{customer:o}):null,s.graphQLErrors)]}}))}))}function m(e){return t(this,void 0,void 0,(function(){var t,i;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/getCustomerOrders.js")];case 1:return[4,(0,r.sent().default)(e)];case 2:return t=r.sent(),null==(i=t.data)||i.forEach((function(t){var r;(null===(r=t.orderLineItems)||void 0===r?void 0:r.length)&&(t.orderLineItems=t.orderLineItems.filter((function(t){return!t.deleted})))})),[2,new n(i,t.graphQLErrors)]}}))}))}function _(e){return t(this,void 0,void 0,(function(){var t,i;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/getOrderByEmail.js")];case 1:return[4,(0,r.sent().default)(e)];case 2:return t=r.sent(),i=t.data,[2,new n(i,t.graphQLErrors)]}}))}))}function w(e){return t(this,void 0,void 0,(function(){var t,i;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/listOrderTransactions.js")];case 1:return[4,(0,r.sent().default)(e)];case 2:return t=r.sent(),i=t.data,[2,new n(i,t.graphQLErrors)]}}))}))}function b(e){return t(this,void 0,void 0,(function(){var t,i;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/mutations/createOrderRefundRequest.js")];case 1:return[4,(0,r.sent().default)(e)];case 2:return t=r.sent(),i=t.data,[2,new n(i,t.graphQLErrors)]}}))}))}function E(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/subscribeToMarketingNotifications.js")];case 1:return[4,(0,t.sent().default)(e)];case 2:return[2,t.sent()]}}))}))}function g(e){var i;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/getLastViewedProducts.js")];case 1:return[4,(0,r.sent().default)(e)];case 2:return t=r.sent(),[2,new n(null===(i=t.data)||void 0===i?void 0:i.products,t.graphQLErrors)]}}))}))}function j(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/saveLastViewedProducts.js")];case 1:return[4,(0,t.sent().default)(e)];case 2:return[2,t.sent()]}}))}))}function L(i){var s;return t(this,void 0,void 0,(function(){var t,u;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/listOrderRefundSettings.js")];case 1:return[4,(0,r.sent().default)(i)];case 2:return t=r.sent(),u=(null===(s=t.data)||void 0===s?void 0:s.map((function(t){return e({},t)})))||null,[2,new n(u,t.graphQLErrors)]}}))}))}function
|
|
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{initIkasCustomerReview as i,initIkasCustomerAttribute as s}from"@ikas/storefront-models";import{IkasStorefrontConfig as u}from"@ikas/storefront-config";function a(i){var s;return t(this,void 0,void 0,(function(){var t,u;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/mutations/customerLogin.js")];case 1:return[4,(0,r.sent().default)(i)];case 2:return t=r.sent(),u=(null===(s=t.data)||void 0===s?void 0:s.customer)||null,[2,new n(t.data?e(e({},t.data),{customer:u}):null,t.graphQLErrors)]}}))}))}function o(i){var s;return t(this,void 0,void 0,(function(){var t,u;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/customerSocialLogin.js")];case 1:return[4,(0,r.sent().default)(i)];case 2:return t=r.sent(),u=(null===(s=t.data)||void 0===s?void 0:s.customer)||null,[2,new n(t.data?e(e({},t.data),{customer:u}):null,t.graphQLErrors)]}}))}))}function c(i){var s;return t(this,void 0,void 0,(function(){var t,u;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/mutations/registerCustomer.js")];case 1:return[4,(0,r.sent().default)(i)];case 2:return t=r.sent(),u=(null===(s=t.data)||void 0===s?void 0:s.customer)||null,[2,new n(t.data?e(e({},t.data),{customer:u}):null,t.graphQLErrors)]}}))}))}function d(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/customerRefreshToken.js")];case 1:return[4,(0,t.sent().default)(e)];case 2:return[2,t.sent()]}}))}))}function l(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/customerForgotPassword.js")];case 1:return[4,(0,t.sent().default)(e)];case 2:return[2,t.sent()]}}))}))}function f(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/customerRecoverPassword.js")];case 1:return[4,(0,t.sent().default)(e)];case 2:return[2,t.sent()]}}))}))}function v(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/queries/checkCustomerEmail.js")];case 1:return[4,(0,t.sent().default)(e)];case 2:return[2,t.sent()]}}))}))}function h(){return t(this,void 0,void 0,(function(){var t,i,s,u;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/getMyCustomer.js")];case 1:return t=r.sent().default,s=t,[4,I()];case 2:return[4,s.apply(void 0,[r.sent()])];case 3:return i=r.sent(),u=i.data||null,[2,new n(i.data?e(e({},i.data),{customer:u}):null,i.graphQLErrors)]}}))}))}function p(i){return t(this,void 0,void 0,(function(){var t,s,u,a,o;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/mutations/saveMyCustomer.js")];case 1:return t=r.sent().default,u=t,a=[i],[4,I()];case 2:return[4,u.apply(void 0,a.concat([r.sent()]))];case 3:return s=r.sent(),o=s.data||null,[2,new n(s.data?e(e({},s.data),{customer:o}):null,s.graphQLErrors)]}}))}))}function m(e){return t(this,void 0,void 0,(function(){var t,i;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/getCustomerOrders.js")];case 1:return[4,(0,r.sent().default)(e)];case 2:return t=r.sent(),null==(i=t.data)||i.forEach((function(t){var r;(null===(r=t.orderLineItems)||void 0===r?void 0:r.length)&&(t.orderLineItems=t.orderLineItems.filter((function(t){return!t.deleted})))})),[2,new n(i,t.graphQLErrors)]}}))}))}function _(e){return t(this,void 0,void 0,(function(){var t,i;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/getOrderByEmail.js")];case 1:return[4,(0,r.sent().default)(e)];case 2:return t=r.sent(),i=t.data,[2,new n(i,t.graphQLErrors)]}}))}))}function w(e){return t(this,void 0,void 0,(function(){var t,i;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/listOrderTransactions.js")];case 1:return[4,(0,r.sent().default)(e)];case 2:return t=r.sent(),i=t.data,[2,new n(i,t.graphQLErrors)]}}))}))}function b(e){return t(this,void 0,void 0,(function(){var t,i;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/mutations/createOrderRefundRequest.js")];case 1:return[4,(0,r.sent().default)(e)];case 2:return t=r.sent(),i=t.data,[2,new n(i,t.graphQLErrors)]}}))}))}function E(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/subscribeToMarketingNotifications.js")];case 1:return[4,(0,t.sent().default)(e)];case 2:return[2,t.sent()]}}))}))}function g(e){var i;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/getLastViewedProducts.js")];case 1:return[4,(0,r.sent().default)(e)];case 2:return t=r.sent(),[2,new n(null===(i=t.data)||void 0===i?void 0:i.products,t.graphQLErrors)]}}))}))}function j(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/saveLastViewedProducts.js")];case 1:return[4,(0,t.sent().default)(e)];case 2:return[2,t.sent()]}}))}))}function L(i){var s;return t(this,void 0,void 0,(function(){var t,u;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/listOrderRefundSettings.js")];case 1:return[4,(0,r.sent().default)(i)];case 2:return t=r.sent(),u=(null===(s=t.data)||void 0===s?void 0:s.map((function(t){return e({},t)})))||null,[2,new n(u,t.graphQLErrors)]}}))}))}function C(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/sendContactFormToMerchant.js")];case 1:return[4,(0,t.sent().default)(e)];case 2:return[2,t.sent()]}}))}))}function Q(){return t(this,void 0,void 0,(function(){var t,e;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/listFavoriteProducts.js")];case 1:return[4,(0,r.sent().default)()];case 2:return t=r.sent(),e=t.data||null,[2,new n(e,t.graphQLErrors)]}}))}))}function R(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/saveFavoriteProduct.js")];case 1:return[4,(0,t.sent().default)(e)];case 2:return[2,t.sent()]}}))}))}function q(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/queries/isFavoriteProduct.js")];case 1:return[4,(0,t.sent().default)({productId:e.productId})];case 2:return[2,t.sent()]}}))}))}function O(e){return t(this,void 0,void 0,(function(){var t,s;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/mutations/createCustomerReview.js")];case 1:return[4,(0,r.sent().default)(e)];case 2:return t=r.sent(),(s=t.data)&&i(s),[2,new n(s,t.graphQLErrors)]}}))}))}function S(s){var u;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/listCustomerReviews.js")];case 1:return[4,(0,r.sent().default)(s)];case 2:return t=r.sent(),(a=(null===(u=t.data)||void 0===u?void 0:u.data)||[]).forEach(i),[2,new n(t.data?e(e({},t.data),{data:a}):null,t.graphQLErrors)]}}))}))}function T(i){var s;return t(this,void 0,void 0,(function(){var t,u;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/listCustomerReviewSummary.js")];case 1:return[4,(0,r.sent().default)(i)];case 2:return t=r.sent(),u=(null===(s=t.data)||void 0===s?void 0:s.data)||[],[2,new n(e(e({},t.data),{data:u}),t.graphQLErrors)]}}))}))}function P(){return t(this,void 0,void 0,(function(){var t,e;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/listCustomerAttribute.js")];case 1:return[4,(0,r.sent().default)()];case 2:return t=r.sent(),(e=t.data||[]).forEach((function(t){return s(t,u.getCurrentLocale())})),[2,new n(e,t.graphQLErrors)]}}))}))}function I(){return t(this,void 0,void 0,(function(){var t,e;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/getMyCustomer.js")];case 1:return t=r.sent().ResponseField,e=["NOTE","TAG_IDS","CUSTOMER_GROUP_IDS","PASSWORD_UPDATE_DATE","ORDER_COUNT","REGISTRATION_SOURCE","CUSTOMER_SEQUENCE"],[2,Object.entries(t).filter((function(t){var r=t[0];return!e.includes(r)})).map((function(t){return t[1]}))]}}))}))}function y(i){return t(this,void 0,void 0,(function(){var t,s;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/listCustomerSettings.js")];case 1:return[4,(0,r.sent().default)(i)];case 2:return t=r.sent(),s=t.data||[],[2,new n(e(e({},t.data),{data:s}),t.graphQLErrors)]}}))}))}export{v as checkEmail,O as createCustomerReview,b as createOrderRefundRequest,l as forgotPassword,h as getCustomer,g as getLastViewedProducts,_ as getOrderByEmail,m as getOrders,q as isFavoriteProduct,P as listCustomerAttribute,T as listCustomerReviewSummary,S as listCustomerReviews,y as listCustomerSettings,Q as listFavoriteProducts,L as listOrderRefundSettings,w as listOrderTransactions,a as login,f as recoverPassword,d as refreshToken,c as register,p as saveCustomer,R as saveFavoriteProduct,j as saveLastViewedProducts,C as sendContactFormToMerchant,o as socialLogin,E as subscribeToMarketingNotifications};
|
package/build/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{setAPIClientConfig}from"./index2.js";export{SaveMyCustomerInput}from"./__api/models/SaveMyCustomerInput.js";export{SaveCartInput}from"./__api/models/SaveCartInput.js";export{CheckStocksLineInput}from"./__api/models/CheckStocksLineInput.js";export{MasterPassOperationTypeEnum,SortByDirectionEnum,SortByTypeEnum}from"./__api/types/index.js";export{APIResponse,Config as IkasAPIClientConfig}from"@ikas/fe-api-client";export{listBlog,listBlogCategory,listBlogMetaData}from"./api/blog/index.js";export{listProductBrand}from"./api/brand/index.js";export{addItemToCart,getCartById,saveCart,saveCartCouponCode,updateCartCampaignOffer}from"./api/cart/index.js";export{listCategory}from"./api/category/index.js";export{checkStocks,createKlarnaClientToken,createSaleTransactionWithCart,createStripePaymentIntent,getAvailableShippingCountries,getAvailableStockLocations,listCheckoutSettings,listPaymentGateway,listStockLocations,retrieveInstallmentInfo}from"./api/checkout/index.js";export{checkEmail,createCustomerReview,createOrderRefundRequest,forgotPassword,getCustomer,getLastViewedProducts,getOrderByEmail,getOrders,isFavoriteProduct,listCustomerAttribute,listCustomerReviewSummary,listCustomerReviews,listFavoriteProducts,listOrderRefundSettings,listOrderTransactions,login,recoverPassword,refreshToken,register,saveCustomer,saveFavoriteProduct,saveLastViewedProducts,sendContactFormToMerchant,socialLogin,subscribeToMarketingNotifications}from"./api/customer/index.js";export{getProductOptionFileUrl,uploadFile}from"./api/file-upload/index.js";export{listHTMLMetaData}from"./api/html-meta-data/index.js";export{getMyCountry,listCity,listCountry,listDistrict,listState}from"./api/location/index.js";export{getMasterPassRequestToken}from"./api/masterpass/index.js";export{listMerchantSettings}from"./api/merchant/index.js";export{getOrderLineFile,getProductCampaigns,getProductFilterData,getRelatedProducts,listProductAttribute,listProductBackInStockRemind,listProductOptionSet,saveProductBackInStockRemind,searchProducts}from"./api/product/index.js";export{listRaffleMetaData,listRaffleParticipants,listStorefrontRaffle,saveRaffleParticipant}from"./api/raffle/index.js";export{getStorefrontSettings}from"./api/storefront/index.js";
|
|
1
|
+
export{setAPIClientConfig}from"./index2.js";export{SaveMyCustomerInput}from"./__api/models/SaveMyCustomerInput.js";export{SaveCartInput}from"./__api/models/SaveCartInput.js";export{CheckStocksLineInput}from"./__api/models/CheckStocksLineInput.js";export{MasterPassOperationTypeEnum,SortByDirectionEnum,SortByTypeEnum}from"./__api/types/index.js";export{APIResponse,Config as IkasAPIClientConfig}from"@ikas/fe-api-client";export{listBlog,listBlogCategory,listBlogMetaData}from"./api/blog/index.js";export{listProductBrand}from"./api/brand/index.js";export{addItemToCart,getCartById,saveCart,saveCartCouponCode,updateCartCampaignOffer}from"./api/cart/index.js";export{listCategory}from"./api/category/index.js";export{checkStocks,createKlarnaClientToken,createSaleTransactionWithCart,createStripePaymentIntent,getAvailableShippingCountries,getAvailableStockLocations,listCheckoutSettings,listPaymentGateway,listStockLocations,retrieveInstallmentInfo}from"./api/checkout/index.js";export{checkEmail,createCustomerReview,createOrderRefundRequest,forgotPassword,getCustomer,getLastViewedProducts,getOrderByEmail,getOrders,isFavoriteProduct,listCustomerAttribute,listCustomerReviewSummary,listCustomerReviews,listCustomerSettings,listFavoriteProducts,listOrderRefundSettings,listOrderTransactions,login,recoverPassword,refreshToken,register,saveCustomer,saveFavoriteProduct,saveLastViewedProducts,sendContactFormToMerchant,socialLogin,subscribeToMarketingNotifications}from"./api/customer/index.js";export{getProductOptionFileUrl,uploadFile}from"./api/file-upload/index.js";export{listHTMLMetaData}from"./api/html-meta-data/index.js";export{getMyCountry,listCity,listCountry,listDistrict,listState}from"./api/location/index.js";export{getMasterPassRequestToken}from"./api/masterpass/index.js";export{listMerchantSettings}from"./api/merchant/index.js";export{getOrderLineFile,getProductCampaigns,getProductFilterData,getRelatedProducts,listProductAttribute,listProductBackInStockRemind,listProductOptionSet,saveProductBackInStockRemind,searchProducts}from"./api/product/index.js";export{listRaffleMetaData,listRaffleParticipants,listStorefrontRaffle,saveRaffleParticipant}from"./api/raffle/index.js";export{getStorefrontSettings}from"./api/storefront/index.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ikas/storefront-api",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.14",
|
|
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.0.0-beta.
|
|
21
|
-
"@ikas/storefront-models": "^4.0.0-beta.
|
|
20
|
+
"@ikas/storefront-config": "^4.0.0-beta.14",
|
|
21
|
+
"@ikas/storefront-models": "^4.0.0-beta.14",
|
|
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.18"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"@ikas/storefront-config": "^4.0.0-beta.
|
|
38
|
-
"@ikas/storefront-models": "^4.0.0-beta.
|
|
37
|
+
"@ikas/storefront-config": "^4.0.0-beta.14",
|
|
38
|
+
"@ikas/storefront-models": "^4.0.0-beta.14",
|
|
39
39
|
"@ikas/fe-api-client": "^1.0.18",
|
|
40
40
|
"axios": "^0.26.0",
|
|
41
41
|
"ts-essentials": "^7.0.1"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__extends as t}from'./../../ext/tslib/tslib.es6.js';import{AmountTypeEnum as n,AdjustmentEnum as o}from"../types/index.js";var i=function(t){void 0===t&&(t={}),this.amount=t.amount||0,this.amountType=t.amountType||n.AMOUNT,this.campaignId=t.campaignId||null,this.couponId=t.couponId||null,this.name=t.name||"",this.order=t.order||0,this.type=t.type||o.DECREMENT};!function(n){function o(){return null!==n&&n.apply(this,arguments)||this}t(o,n)}(i);export{i as OrderAdjustmentInputData};
|