@ikas/storefront-api 4.0.0-beta.2 → 4.0.0-beta.21

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.
Files changed (53) hide show
  1. package/build/__api/models/CheckoutSettings.d.ts +1 -1
  2. package/build/__api/models/CustomerReviewSummary.d.ts +1 -0
  3. package/build/__api/models/OrderLineVariant.d.ts +1 -0
  4. package/build/__api/models/SaveCartInput.d.ts +0 -2
  5. package/build/__api/models/SaveCartInput.js +1 -1
  6. package/build/__api/models/SearchInput.d.ts +1 -0
  7. package/build/__api/mutations/addCouponCodeToCheckout.d.ts +1 -0
  8. package/build/__api/mutations/addItemToCart.d.ts +1 -0
  9. package/build/__api/mutations/addItemToCart.js +1 -1
  10. package/build/__api/mutations/createOrderRefundRequest.d.ts +1 -0
  11. package/build/__api/mutations/createOrderRefundRequest.js +1 -1
  12. package/build/__api/mutations/saveCart.d.ts +1 -0
  13. package/build/__api/mutations/saveCart.js +1 -1
  14. package/build/__api/mutations/saveCartCouponCode.d.ts +1 -0
  15. package/build/__api/mutations/saveCartCouponCode.js +1 -1
  16. package/build/__api/mutations/saveCheckout.d.ts +1 -0
  17. package/build/__api/mutations/saveItemToCart.d.ts +1 -0
  18. package/build/__api/mutations/updateCartCampaignOffer.d.ts +1 -0
  19. package/build/__api/mutations/updateCartCampaignOffer.js +1 -1
  20. package/build/__api/queries/getCart.d.ts +1 -0
  21. package/build/__api/queries/getCartById.d.ts +1 -0
  22. package/build/__api/queries/getCartById.js +1 -1
  23. package/build/__api/queries/getCheckoutByCartId.d.ts +1 -0
  24. package/build/__api/queries/getCheckoutById.d.ts +1 -0
  25. package/build/__api/queries/getCustomerOrders.d.ts +1 -0
  26. package/build/__api/queries/getCustomerOrders.js +1 -1
  27. package/build/__api/queries/getOrder.d.ts +1 -0
  28. package/build/__api/queries/getOrderByEmail.d.ts +1 -0
  29. package/build/__api/queries/getOrderByEmail.js +1 -1
  30. package/build/__api/queries/getRelatedProducts.d.ts +1 -0
  31. package/build/__api/queries/getRelatedProducts.js +1 -1
  32. package/build/__api/queries/listCheckoutSettings.d.ts +1 -1
  33. package/build/__api/queries/listCheckoutSettings.js +1 -1
  34. package/build/__api/queries/listCustomerReviewSummary.d.ts +2 -0
  35. package/build/__api/queries/listCustomerReviewSummary.js +1 -1
  36. package/build/__api/queries/listCustomerSettings.d.ts +1 -1
  37. package/build/__api/queries/listCustomerSettings.js +1 -0
  38. package/build/__api/queries/listPaymentGateway.d.ts +1 -0
  39. package/build/__api/queries/listPaymentGateway.js +1 -1
  40. package/build/__api/types/index.d.ts +4 -2
  41. package/build/api/category/index.d.ts +1 -1
  42. package/build/api/category/index.js +1 -1
  43. package/build/api/checkout/index.js +1 -1
  44. package/build/api/customer/index.d.ts +71 -1
  45. package/build/api/customer/index.js +1 -1
  46. package/build/api/product/index.d.ts +7 -7
  47. package/build/api/product/index.js +1 -1
  48. package/build/api/raffle/index.d.ts +2 -2
  49. package/build/api/raffle/index.js +1 -1
  50. package/build/index.js +1 -1
  51. package/build/index2.js +1 -1
  52. package/package.json +7 -7
  53. package/build/__api/models/OrderAdjustmentInput.js +0 -1
@@ -914,8 +914,8 @@ export interface CheckoutSettings {
914
914
  id: string;
915
915
  identityNumberRequirement: CheckoutRequirementEnum;
916
916
  isAccountRequired: boolean;
917
- isActiveQuickRegistration: boolean | null;
918
917
  isGiftPackageEnabled: boolean | null;
918
+ isQuickRegistrationEnabled: boolean | null;
919
919
  isShowPostalCode: boolean | null;
920
920
  isTermsAndConditionsDefaultChecked: boolean | null;
921
921
  options: CheckoutOption[] | null;
@@ -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
  }
@@ -1486,6 +1487,7 @@ export interface OrderLineVariant {
1486
1487
  baseUnit: OrderLineBaseUnit | null;
1487
1488
  brand: OrderLineVariantBrand | null;
1488
1489
  categories: OrderLineVariantCategory[] | null;
1490
+ hsCode: string | null;
1489
1491
  id: string | null;
1490
1492
  mainImageId: string | null;
1491
1493
  name: string;
@@ -2756,7 +2758,6 @@ export interface SaveCartInput {
2756
2758
  id?: string | null;
2757
2759
  isGiftPackage?: boolean | null;
2758
2760
  note?: string | null;
2759
- orderAdjustments?: OrderAdjustmentInput[] | null;
2760
2761
  shippingAddress?: OrderAddressInput | null;
2761
2762
  shippingSettingsId?: string | null;
2762
2763
  shippingZoneRateId?: string | null;
@@ -2845,6 +2846,7 @@ export interface SearchInput {
2845
2846
  salesChannelId?: string | null;
2846
2847
  showStockOption?: ProductSearchShowStockOptionEnum | null;
2847
2848
  slug?: string | null;
2849
+ storefrontId?: string | null;
2848
2850
  tagIdList?: string[] | null;
2849
2851
  vendorIdList?: string[] | null;
2850
2852
  }
@@ -3,7 +3,7 @@ import { IkasCategory } from "@ikas/storefront-models";
3
3
  import { QueryParams as ListCategoryQueryParams } from "../../__api/queries/listCategory";
4
4
  export type { ListCategoryQueryParams };
5
5
  export declare function listCategory(params: ListCategoryQueryParams): Promise<APIResponse<{
6
- data: IkasCategory[];
6
+ data: IkasCategory[] | undefined;
7
7
  count?: number | undefined;
8
8
  hasNext?: boolean | undefined;
9
9
  limit?: number | undefined;
@@ -1 +1 @@
1
- import{__awaiter as r,__generator as t,__assign as o}from'./../../ext/tslib/tslib.es6.js';import{APIResponse as e}from"@ikas/fe-api-client";import{IkasStorefrontConfig as i}from"@ikas/storefront-config";import{initIkasCategory as a}from"@ikas/storefront-models";function n(n){var s;return r(this,void 0,void 0,(function(){var r,u;return t(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/queries/listCategory.js")];case 1:return[4,(0,t.sent().default)(n)];case 2:return r=t.sent(),(u=null===(s=r.data)||void 0===s?void 0:s.data).forEach((function(r){return a(r,i.getCurrentLocale())})),[2,new e(o(o({},r.data),{data:u}),r.graphQLErrors)]}}))}))}export{n as listCategory};
1
+ import{__awaiter as r,__generator as t,__assign as o}from'./../../ext/tslib/tslib.es6.js';import{APIResponse as e}from"@ikas/fe-api-client";import{IkasStorefrontConfig as i}from"@ikas/storefront-config";import{initIkasCategory as n}from"@ikas/storefront-models";function a(a){var s;return r(this,void 0,void 0,(function(){var r,u;return t(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/queries/listCategory.js")];case 1:return[4,(0,t.sent().default)(a)];case 2:return r=t.sent(),null==(u=null===(s=r.data)||void 0===s?void 0:s.data)||u.forEach((function(r){return n(r,i.getCurrentLocale())})),[2,new e(o(o({},r.data),{data:u}),r.graphQLErrors)]}}))}))}export{a as listCategory};
@@ -1 +1 @@
1
- import{__awaiter as t,__generator as e}from'./../../ext/tslib/tslib.es6.js';import{APIResponse as r}from"@ikas/fe-api-client";function n(r){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)(r)];case 2:return[2,t.sent()]}}))}))}function i(n){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)(n)];case 2:return t=e.sent(),i=t.data||[],[2,new r(i,t.graphQLErrors)]}}))}))}function s(r){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)(r)];case 2:return[2,t.sent()]}}))}))}function a(r){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)(r)];case 2:return[2,t.sent()]}}))}))}function u(n){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/listCheckoutSettings.js")];case 1:return[4,(0,e.sent().default)(n)];case 2:return t=e.sent(),i=t.data||[],[2,new r(i,t.graphQLErrors)]}}))}))}function o(r){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)(r)];case 2:return[2,t.sent()]}}))}))}function c(n){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)(n)];case 2:return t=e.sent(),[2,new r(t.data,t.graphQLErrors)]}}))}))}function l(n){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)(n)];case 2:return t=e.sent(),[2,new r(null===(i=t.data)||void 0===i?void 0:i.stockLocations,t.graphQLErrors)]}}))}))}function f(n){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)(n)];case 2:return t=e.sent(),[2,new r(t.data,t.graphQLErrors)]}}))}))}function d(n){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)(n)];case 2:return t=e.sent(),[2,new r(t.data,t.graphQLErrors)]}}))}))}export{a as checkStocks,d as createKlarnaClientToken,n as createSaleTransactionWithCart,f as createStripePaymentIntent,o as getAvailableShippingCountries,l as getAvailableStockLocations,u as listCheckoutSettings,i as listPaymentGateway,c as listStockLocations,s as retrieveInstallmentInfo};
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 { IkasCustomer, IkasCustomerAttribute, IkasCustomerReview, IkasCustomerReviewSummary, IkasFavoriteProduct, IkasLastViewedProduct, IkasOrder, IkasOrderRefundSettings, IkasOrderTransaction } from "@ikas/storefront-models";
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 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/sendContactFormToMerchant.js")];case 1:return[4,(0,t.sent().default)(e)];case 2:return[2,t.sent()]}}))}))}function C(){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 Q(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 T(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 S(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]}))]}}))}))}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,S as listCustomerReviewSummary,T as listCustomerReviews,C as listFavoriteProducts,L as listOrderRefundSettings,w as listOrderTransactions,a as login,f as recoverPassword,d as refreshToken,c as register,p as saveCustomer,Q as saveFavoriteProduct,j as saveLastViewedProducts,R as sendContactFormToMerchant,o as socialLogin,E as subscribeToMarketingNotifications};
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};
@@ -15,13 +15,13 @@ export declare function listProductBackInStockRemind(params: ListProductBackInSt
15
15
  export declare function saveProductBackInStockRemind(params: SaveProductBackInStockRemindQueryParams): Promise<APIResponse<undefined> | APIResponse<import("../../__api/types").ProductBackInStockRemind>>;
16
16
  export declare function searchProducts(params: SearchProductsQueryParams): Promise<APIResponse<{
17
17
  data: IkasProduct[] | undefined;
18
- count?: number | undefined;
19
- facets?: import("../../__api/types").ProductFacetCount[] | null | undefined;
20
- limit?: number | undefined;
21
- page?: number | undefined;
22
- results?: SearchProduct[] | undefined;
23
- totalCount?: number | undefined;
24
- }>>;
18
+ count: number;
19
+ facets: import("../../__api/types").ProductFacetCount[] | null;
20
+ limit: number;
21
+ page: number;
22
+ results: SearchProduct[];
23
+ totalCount: number;
24
+ } | null>>;
25
25
  export declare function getProductFilterData(params: GetProductFilterDataQueryParams): Promise<APIResponse<{
26
26
  filters: IkasProductFilter[];
27
27
  categories: IkasFilterCategory[] | null;
@@ -1 +1 @@
1
- import{__awaiter as t,__generator as e,__assign as r}from'./../../ext/tslib/tslib.es6.js';import{APIResponse as i}from"@ikas/fe-api-client";import{IkasStorefrontConfig as n}from"@ikas/storefront-config";import{initIkasProduct as u,IkasBrandOrderType as a,IkasCategoryProductsOrderType as o,initIkasProductAttribute as d,initIkasProductOptionSet as l}from"@ikas/storefront-models";function s(r){return t(this,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/queries/listProductBackInStockRemind.js")];case 1:return[4,(0,t.sent().default)(r)];case 2:return[2,t.sent()]}}))}))}function c(r){return t(this,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/saveProductBackInStockRemind.js")];case 1:return[4,(0,t.sent().default)(r)];case 2:return[2,t.sent()]}}))}))}function p(a){var o;return t(this,void 0,void 0,(function(){var t,d,l,s,c;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/searchProducts.js")];case 1:return t=e.sent().default,l=t,s=[a],[4,I()];case 2:return[4,l.apply(void 0,s.concat([e.sent()]))];case 3:return d=e.sent(),null==(c=null===(o=d.data)||void 0===o?void 0:o.results.map(A))||c.forEach((function(t){return u(t,n.getCurrentLocale())})),[2,new i(r(r({},d.data),{data:c}))]}}))}))}function v(r){var n,u;return t(this,void 0,void 0,(function(){var t,a,o;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/getProductFilterData.js")];case 1:return[4,(0,e.sent().default)(r)];case 2:return t=e.sent(),a=null===(n=t.data)||void 0===n?void 0:n.filters,o=(null===(u=t.data)||void 0===u?void 0:u.categories)||null,[2,new i(t.data?{filters:a,categories:o}:null,t.graphQLErrors)]}}))}))}function f(r){return t(this,void 0,void 0,(function(){var t,a;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/getRelatedProducts.js")];case 1:return[4,(0,e.sent().default)(r)];case 2:return t=e.sent(),(a=t.data.map((function(t){return A(t)}))).forEach((function(t){return u(t,n.getCurrentLocale())})),[2,new i(t.data?{data:a,count:t.data.length,facets:null,limit:20,page:1,totalCount:t.data.length}:null,t.graphQLErrors)]}}))}))}function m(r){return t(this,void 0,void 0,(function(){var t,u;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/listProductAttribute.js")];case 1:return[4,(0,e.sent().default)(r)];case 2:return t=e.sent(),null==(u=t.data)||u.forEach((function(t){return d(t,n.getCurrentLocale())})),[2,new i(u,t.graphQLErrors)]}}))}))}function b(r){var n;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/getProductCampaigns.js")];case 1:return[4,(0,e.sent().default)(r)];case 2:return t=e.sent(),[2,new i(null===(n=t.data)||void 0===n?void 0:n.map((function(t){return t})),t.graphQLErrors)]}}))}))}function h(r){return t(this,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/getOrderLineFile.js")];case 1:return[4,(0,t.sent().default)(r)];case 2:return[2,t.sent()]}}))}))}function g(r){return t(this,void 0,void 0,(function(){var t,u;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/listProductOptionSet.js")];case 1:return[4,(0,e.sent().default)(r)];case 2:return t=e.sent(),null==(u=t.data)||u.forEach((function(t){return l(t,n.getCurrentLocale())})),[2,new i(u,t.graphQLErrors)]}}))}))}function I(){return t(this,void 0,void 0,(function(){var t,r;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/searchProducts.js")];case 1:return t=e.sent().ResponseField,r=["DATA"],[2,Object.entries(t).filter((function(t){var e=t[0];return!r.includes(e)})).map((function(t){return t[1]}))]}}))}))}function A(t){var e,i,u,d="local"===process.env.NEXT_PUBLIC_ENV;return{id:t.id,type:t.type,attributes:(null===(e=t.attributes)||void 0===e?void 0:e.map((function(t){var e,i,n,u,a,o;return r(r({},t),{value:t.value,productAttributeId:(null===(e=t.productAttribute)||void 0===e?void 0:e.id)||null,productAttributeOptionId:(null===(i=t.productAttributeOption)||void 0===i?void 0:i.id)||null,productAttribute:{id:(null===(n=t.productAttribute)||void 0===n?void 0:n.id)||"",name:(null===(u=t.productAttribute)||void 0===u?void 0:u.name)||"",description:null,type:null===(a=t.productAttribute)||void 0===a?void 0:a.type,tableTemplate:(null===(o=t.productAttribute)||void 0===o?void 0:o.tableTemplate)?t.productAttribute.tableTemplate:null,options:null},productAttributeOption:t.productAttributeOption})})))||[],brand:t.brand?r(r({},t.brand),{id:t.brand.id,name:t.brand.name,createdAt:0,updatedAt:0,description:null,imageId:null,orderType:a.BEST_SELLER,metaData:{id:"",createdAt:0,updatedAt:0,slug:t.brand.slug||""}}):null,categories:(null===(i=t.categories)||void 0===i?void 0:i.map((function(t){return r(r({},t),{categoryPath:null,description:null,imageId:null,parentId:null,metaData:t.slug?{id:"",createdAt:0,updatedAt:0,name:t.name||"",slug:t.slug}:null,categoryPathItems:[],createdAt:0,updatedAt:0,orderType:o.BEST_SELLER})})))||[],tags:t.tags||[],description:t.description||"",averageRating:t.averageRating,reviewCount:t.reviewCount,baseUnit:t.baseUnit,metaData:r(r({},t.metaData),{id:"",createdAt:0,updatedAt:0,slug:(null===(u=t.metaData)||void 0===u?void 0:u.slug)||""})||null,name:t.name,shortDescription:t.shortDescription||"",productOptionSetId:t.productOptionSetId,variantTypes:t.productVariantTypes.map((function(t){return{order:t.order,variantType:{id:t.variantType.id,name:t.variantType.name,selectionType:t.variantType.selectionType,values:t.variantType.values.map((function(e){return{id:e.id,colorCode:e.colorCode,name:e.name,thumbnailImageId:e.thumbnailImageId,variantTypeId:t.variantType.id}})).filter((function(e){return t.variantValueIds.includes(e.id)}))},variantValueIds:t.variantValueIds}})),variants:t.variants.map((function(e){var i,u,a,o,l;return r(r({},e),{id:e.id,productId:t.id,images:(null===(i=e.images)||void 0===i?void 0:i.map((function(t){return{imageId:t.id,isMain:t.isMain||!1,isVideo:t.isVideo,order:t.order}})))||null,sellIfOutOfStock:e.sellIfOutOfStock||!1,unit:e.unit,attributes:(null===(u=e.attributes)||void 0===u?void 0:u.map((function(t){var e,i,n,u,a,o;return r(r({},t),{value:t.value,productAttributeId:(null===(e=t.productAttribute)||void 0===e?void 0:e.id)||null,productAttributeOptionId:(null===(i=t.productAttributeOption)||void 0===i?void 0:i.id)||null,productAttribute:{id:(null===(n=t.productAttribute)||void 0===n?void 0:n.id)||"",name:(null===(u=t.productAttribute)||void 0===u?void 0:u.name)||"",description:"",type:null===(a=t.productAttribute)||void 0===a?void 0:a.type,tableTemplate:(null===(o=t.productAttribute)||void 0===o?void 0:o.tableTemplate)?t.productAttribute.tableTemplate:null,options:null},productAttributeOption:t.productAttributeOption})})))||[],sku:e.sku,barcodeList:e.barcodeList||null,price:null===(a=e.prices)||void 0===a?void 0:a.find((function(t){return n.getPriceListId()?t.priceListId===n.getPriceListId():null===t.priceListId})),stock:(null===(o=e.stocks)||void 0===o?void 0:o.filter((function(t){var e;return d||n.getIsEditor()||(null===(e=n.getStockLocationIds())||void 0===e?void 0:e.includes(t.stockLocationId))})).reduce((function(t,e){return e.stockCount+t}),0))||0,variantValues:(null===(l=e.variantValues)||void 0===l?void 0:l.map((function(e){var r=t.productVariantTypes.find((function(t){return t.variantType.id===e.variantTypeId})),i=null==r?void 0:r.variantType.values.find((function(t){return t.id===e.variantValueId}));return{id:e.variantValueId,name:(null==i?void 0:i.name)||"",colorCode:(null==i?void 0:i.colorCode)||"",thumbnailImageId:(null==i?void 0:i.thumbnailImageId)||"",variantTypeId:(null==r?void 0:r.variantType.id)||""}})))||[],isActive:e.isActive||!1})}))}}export{h as getOrderLineFile,b as getProductCampaigns,v as getProductFilterData,f as getRelatedProducts,m as listProductAttribute,s as listProductBackInStockRemind,g as listProductOptionSet,c as saveProductBackInStockRemind,p as searchProducts};
1
+ import{__awaiter as t,__generator as e,__assign as r}from'./../../ext/tslib/tslib.es6.js';import{APIResponse as n}from"@ikas/fe-api-client";import{IkasStorefrontConfig as i}from"@ikas/storefront-config";import{initIkasProduct as a,IkasBrandOrderType as u,IkasCategoryProductsOrderType as o,initIkasProductAttribute as d,initIkasProductOptionSet as l}from"@ikas/storefront-models";function s(r){return t(this,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/queries/listProductBackInStockRemind.js")];case 1:return[4,(0,t.sent().default)(r)];case 2:return[2,t.sent()]}}))}))}function c(r){return t(this,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/saveProductBackInStockRemind.js")];case 1:return[4,(0,t.sent().default)(r)];case 2:return[2,t.sent()]}}))}))}function p(u){var o;return t(this,void 0,void 0,(function(){var t,d,l,s,c;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/searchProducts.js")];case 1:return t=e.sent().default,l=t,s=[u],[4,A()];case 2:return[4,l.apply(void 0,s.concat([e.sent()]))];case 3:return d=e.sent(),null==(c=null===(o=d.data)||void 0===o?void 0:o.results.map(I))||c.forEach((function(t){return a(t,i.getCurrentLocale())})),[2,new n(d.data?r(r({},d.data),{data:c}):null,d.graphQLErrors)]}}))}))}function v(r){var i,a;return t(this,void 0,void 0,(function(){var t,u,o;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/getProductFilterData.js")];case 1:return[4,(0,e.sent().default)(r)];case 2:return t=e.sent(),u=null===(i=t.data)||void 0===i?void 0:i.filters,o=(null===(a=t.data)||void 0===a?void 0:a.categories)||null,[2,new n(t.data?{filters:u,categories:o}:null,t.graphQLErrors)]}}))}))}function f(r){var u;return t(this,void 0,void 0,(function(){var t,o;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/getRelatedProducts.js")];case 1:return[4,(0,e.sent().default)(r)];case 2:return t=e.sent(),(o=(null===(u=null==t?void 0:t.data)||void 0===u?void 0:u.map((function(t){return I(t)})))||[]).forEach((function(t){return a(t,i.getCurrentLocale())})),[2,new n(t.data?{data:o,count:t.data.length,facets:null,limit:20,page:1,totalCount:t.data.length}:null,t.graphQLErrors)]}}))}))}function m(r){return t(this,void 0,void 0,(function(){var t,a;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/listProductAttribute.js")];case 1:return[4,(0,e.sent().default)(r)];case 2:return t=e.sent(),null==(a=t.data)||a.forEach((function(t){return d(t,i.getCurrentLocale())})),[2,new n(a,t.graphQLErrors)]}}))}))}function b(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/getProductCampaigns.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.map((function(t){return t})),t.graphQLErrors)]}}))}))}function g(r){return t(this,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/getOrderLineFile.js")];case 1:return[4,(0,t.sent().default)(r)];case 2:return[2,t.sent()]}}))}))}function h(r){return t(this,void 0,void 0,(function(){var t,a;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/listProductOptionSet.js")];case 1:return[4,(0,e.sent().default)(r)];case 2:return t=e.sent(),null==(a=t.data)||a.forEach((function(t){return l(t,i.getCurrentLocale())})),[2,new n(a,t.graphQLErrors)]}}))}))}function A(){return t(this,void 0,void 0,(function(){var t,r;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/searchProducts.js")];case 1:return t=e.sent().ResponseField,r=["DATA"],[2,Object.entries(t).filter((function(t){var e=t[0];return!r.includes(e)})).map((function(t){return t[1]}))]}}))}))}function I(t){var e,n,a,d="local"===process.env.NEXT_PUBLIC_ENV;return{id:t.id,type:t.type,attributes:(null===(e=t.attributes)||void 0===e?void 0:e.map((function(t){var e,n,i,a,u,o;return r(r({},t),{value:t.value,productAttributeId:(null===(e=t.productAttribute)||void 0===e?void 0:e.id)||null,productAttributeOptionId:(null===(n=t.productAttributeOption)||void 0===n?void 0:n.id)||null,productAttribute:{id:(null===(i=t.productAttribute)||void 0===i?void 0:i.id)||"",name:(null===(a=t.productAttribute)||void 0===a?void 0:a.name)||"",description:null,type:null===(u=t.productAttribute)||void 0===u?void 0:u.type,tableTemplate:(null===(o=t.productAttribute)||void 0===o?void 0:o.tableTemplate)?t.productAttribute.tableTemplate:null,options:null},productAttributeOption:t.productAttributeOption})})))||[],brand:t.brand?r(r({},t.brand),{id:t.brand.id,name:t.brand.name,createdAt:0,updatedAt:0,description:null,imageId:null,orderType:u.BEST_SELLER,metaData:{id:"",createdAt:0,updatedAt:0,slug:t.brand.slug||""}}):null,categories:(null===(n=t.categories)||void 0===n?void 0:n.map((function(t){return r(r({},t),{categoryPath:t.path.map((function(t){return t.name})),description:null,imageId:null,parentId:null,metaData:t.slug?{id:"",createdAt:0,updatedAt:0,name:t.name||"",slug:t.slug}:null,categoryPathItems:t.path.map((function(t){return{metaData:{id:"",createdAt:0,updatedAt:0,name:t.name||"",slug:t.slug||""},description:null,name:t.name,translations:t.translations,imageId:null,id:t.id,createdAt:0,updatedAt:0}})),createdAt:0,updatedAt:0,orderType:o.BEST_SELLER})})))||[],tags:t.tags||[],description:t.description||"",averageRating:t.averageRating,reviewCount:t.reviewCount,baseUnit:t.baseUnit,metaData:r(r({},t.metaData),{id:"",createdAt:0,updatedAt:0,slug:(null===(a=t.metaData)||void 0===a?void 0:a.slug)||""})||null,name:t.name,shortDescription:t.shortDescription||"",productOptionSetId:t.productOptionSetId,variantTypes:t.productVariantTypes.map((function(t){return{order:t.order,variantType:{id:t.variantType.id,name:t.variantType.name,selectionType:t.variantType.selectionType,values:t.variantType.values.map((function(e){return{id:e.id,colorCode:e.colorCode,name:e.name,thumbnailImageId:e.thumbnailImageId,variantTypeId:t.variantType.id}})).filter((function(e){return t.variantValueIds.includes(e.id)}))},variantValueIds:t.variantValueIds}})),variants:t.variants.map((function(e){var n,a,u,o,l;return r(r({},e),{id:e.id,productId:t.id,images:(null===(n=e.images)||void 0===n?void 0:n.map((function(t){return{imageId:t.id,isMain:t.isMain||!1,isVideo:t.isVideo,order:t.order}})))||null,sellIfOutOfStock:e.sellIfOutOfStock||!1,unit:e.unit,attributes:(null===(a=e.attributes)||void 0===a?void 0:a.map((function(t){var e,n,i,a,u,o;return r(r({},t),{value:t.value,productAttributeId:(null===(e=t.productAttribute)||void 0===e?void 0:e.id)||null,productAttributeOptionId:(null===(n=t.productAttributeOption)||void 0===n?void 0:n.id)||null,productAttribute:{id:(null===(i=t.productAttribute)||void 0===i?void 0:i.id)||"",name:(null===(a=t.productAttribute)||void 0===a?void 0:a.name)||"",description:"",type:null===(u=t.productAttribute)||void 0===u?void 0:u.type,tableTemplate:(null===(o=t.productAttribute)||void 0===o?void 0:o.tableTemplate)?t.productAttribute.tableTemplate:null,options:null},productAttributeOption:t.productAttributeOption})})))||[],sku:e.sku,barcodeList:e.barcodeList||null,price:null===(u=e.prices)||void 0===u?void 0:u.find((function(t){return i.getPriceListId()?t.priceListId===i.getPriceListId():null===t.priceListId})),stock:(null===(o=e.stocks)||void 0===o?void 0:o.filter((function(t){var e;return d||i.getIsEditor()||(null===(e=i.getStockLocationIds())||void 0===e?void 0:e.includes(t.stockLocationId))})).reduce((function(t,e){return e.stockCount+t}),0))||0,variantValues:(null===(l=e.variantValues)||void 0===l?void 0:l.map((function(e){var r=t.productVariantTypes.find((function(t){return t.variantType.id===e.variantTypeId})),n=null==r?void 0:r.variantType.values.find((function(t){return t.id===e.variantValueId}));return{id:e.variantValueId,name:(null==n?void 0:n.name)||"",colorCode:(null==n?void 0:n.colorCode)||"",thumbnailImageId:(null==n?void 0:n.thumbnailImageId)||"",variantTypeId:(null==r?void 0:r.variantType.id)||""}})))||[],isActive:e.isActive||!1})}))}}export{g as getOrderLineFile,b as getProductCampaigns,v as getProductFilterData,f as getRelatedProducts,m as listProductAttribute,s as listProductBackInStockRemind,h as listProductOptionSet,c as saveProductBackInStockRemind,p as searchProducts};
@@ -5,7 +5,7 @@ import { QueryParams as SaveRaffleParticipantQueryParams } from "../../__api/mut
5
5
  import { QueryParams as ListRaffleMetadataQueryParams } from "../../__api/queries/listRaffleMetadata";
6
6
  export type { ListStorefrontRaffleParams, SaveRaffleParticipantQueryParams, ListRaffleMetadataQueryParams, };
7
7
  export declare function listStorefrontRaffle(params: ListStorefrontRaffleParams): Promise<APIResponse<{
8
- data: IkasRaffle[] | undefined;
8
+ data: IkasRaffle[];
9
9
  count?: number | undefined;
10
10
  hasNext?: boolean | undefined;
11
11
  limit?: number | undefined;
@@ -13,4 +13,4 @@ export declare function listStorefrontRaffle(params: ListStorefrontRaffleParams)
13
13
  }>>;
14
14
  export declare function saveRaffleParticipant(params: SaveRaffleParticipantQueryParams): Promise<APIResponse<IkasRaffleParticipant | null>>;
15
15
  export declare function listRaffleMetaData(params: ListRaffleMetadataQueryParams): Promise<APIResponse<IkasRaffleMetaData[]>>;
16
- export declare function listRaffleParticipants(): Promise<APIResponse<IkasRaffle[]>>;
16
+ export declare function listRaffleParticipants(): Promise<APIResponse<IkasRaffleParticipant[]>>;
@@ -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{initIkasRaffle as a}from"@ikas/storefront-models";import{IkasStorefrontConfig as i}from"@ikas/storefront-config";function s(s){return t(this,void 0,void 0,(function(){var t,o;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/listStorefrontRaffle.js")];case 1:return[4,(0,r.sent().default)(s)];case 2:return t=r.sent(),null==(o=t.data)||o.forEach((function(t){return a(t,i.getCurrentLocale())})),[2,new n(e(e({},t.data),{data:o}),t.graphQLErrors)]}}))}))}function o(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/mutations/saveRaffleParticipant.js")];case 1:return[4,(0,r.sent().default)(e)];case 2:return t=r.sent(),[2,new n(t.data?t.data:null,t.graphQLErrors)]}}))}))}function u(e){var a;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/listRaffleMetadata.js")];case 1:return[4,(0,r.sent().default)(e)];case 2:return t=r.sent(),[2,new n(null===(a=t.data)||void 0===a?void 0:a.map((function(t){return t})),t.graphQLErrors)]}}))}))}function c(){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/listRaffleParticipants.js")];case 1:return[4,(0,r.sent().default)()];case 2:return t=r.sent(),null==(e=t.data)||e.forEach((function(t){return a(t,i.getCurrentLocale())})),[2,new n(e,t.graphQLErrors)]}}))}))}export{u as listRaffleMetaData,c as listRaffleParticipants,s as listStorefrontRaffle,o as saveRaffleParticipant};
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{initIkasRaffle as a}from"@ikas/storefront-models";import{IkasStorefrontConfig as i}from"@ikas/storefront-config";function s(a){var 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/listStorefrontRaffle.js")];case 1:return[4,(0,r.sent().default)(a)];case 2:return t=r.sent(),s=null===(i=t.data)||void 0===i?void 0:i.data,[2,new n(e(e({},t.data),{data:s}),t.graphQLErrors)]}}))}))}function o(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/mutations/saveRaffleParticipant.js")];case 1:return[4,(0,r.sent().default)(e)];case 2:return t=r.sent(),[2,new n(t.data?t.data:null,t.graphQLErrors)]}}))}))}function u(e){var a;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/listRaffleMetadata.js")];case 1:return[4,(0,r.sent().default)(e)];case 2:return t=r.sent(),[2,new n(null===(a=t.data)||void 0===a?void 0:a.map((function(t){return t})),t.graphQLErrors)]}}))}))}function f(){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/listRaffleParticipants.js")];case 1:return[4,(0,r.sent().default)()];case 2:return t=r.sent(),null==(e=t.data)||e.forEach((function(t){t.raffle&&a(t.raffle,i.getCurrentLocale())})),[2,new n(e,t.graphQLErrors)]}}))}))}export{u as listRaffleMetaData,f as listRaffleParticipants,s as listStorefrontRaffle,o as saveRaffleParticipant};
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/build/index2.js CHANGED
@@ -1 +1 @@
1
- import{Config as e,APIErrorCode as o}from"@ikas/fe-api-client";export{APIResponse,Config as IkasAPIClientConfig}from"@ikas/fe-api-client";import{IkasStorefrontConfig as t}from"@ikas/storefront-config";import"@ikas/storefront-models";import"axios";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";function r(){e.URL=t.getApiUrl()||"",e.HEADERS={"x-api-key":t.getApiKey()||"","x-sfid":t.getStorefrontId()||"","x-sfrid":t.getStorefrontRoutingId()||"","x-sid":t.getSessionId()||"","x-vid":t.getVisitorId()||""},t.getCustomerToken()&&(e.TOKEN=t.getCustomerToken()||""),t.getLoginRequiredCallback()&&(e.ON_ERROR={errors:[{errorCode:o.LOGIN_REQUIRED,callback:t.getLoginRequiredCallback()}]})}t.addObserver({id:"ikas-storefront-api",callback:r});export{r as setAPIClientConfig};
1
+ import{Config as e,APIErrorCode as o}from"@ikas/fe-api-client";export{APIResponse,Config as IkasAPIClientConfig}from"@ikas/fe-api-client";import{IkasStorefrontConfig as t}from"@ikas/storefront-config";import"@ikas/storefront-models";import"axios";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";function r(){e.URL=t.getApiUrl()||"",e.HEADERS={"x-api-key":t.getApiKey()||"","x-sfid":t.getStorefrontId()||"","x-sfrid":t.getStorefrontRoutingId()||"","x-sid":t.getSessionId()||"","x-vid":t.getVisitorId()||""},e.TOKEN=t.getCustomerToken()||"",t.getLoginRequiredCallback()&&(e.ON_ERROR={errorCodes:[{errorCode:o.LOGIN_REQUIRED,callback:t.getLoginRequiredCallback()}]})}t.addObserver({id:"ikas-storefront-api",callback:r});export{r as setAPIClientConfig};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/storefront-api",
3
- "version": "4.0.0-beta.2",
3
+ "version": "4.0.0-beta.21",
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.2",
21
- "@ikas/storefront-models": "^4.0.0-beta.2",
20
+ "@ikas/storefront-config": "^4.0.0-beta.21",
21
+ "@ikas/storefront-models": "^4.0.0-beta.21",
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",
@@ -31,12 +31,12 @@
31
31
  "typescript-transform-paths": "^2.2.2",
32
32
  "axios": "^0.26.0",
33
33
  "ts-essentials": "^7.0.1",
34
- "@ikas/fe-api-client": "^1.0.16"
34
+ "@ikas/fe-api-client": "^1.0.19"
35
35
  },
36
36
  "peerDependencies": {
37
- "@ikas/storefront-config": "^4.0.0-beta.2",
38
- "@ikas/storefront-models": "^4.0.0-beta.2",
39
- "@ikas/fe-api-client": "^1.0.16",
37
+ "@ikas/storefront-config": "^4.0.0-beta.21",
38
+ "@ikas/storefront-models": "^4.0.0-beta.21",
39
+ "@ikas/fe-api-client": "^1.0.19",
40
40
  "axios": "^0.26.0",
41
41
  "ts-essentials": "^7.0.1"
42
42
  }
@@ -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};