@ikas/storefront 0.0.157 → 0.0.158-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/__generated__/global-types.d.ts +24 -0
- package/build/api/customer/__generated__/customerLogin.d.ts +2 -1
- package/build/api/customer/__generated__/getLastViewedProducts.d.ts +15 -0
- package/build/api/customer/__generated__/saveLastViewedProducts.d.ts +11 -0
- package/build/api/customer/index.d.ts +13 -1
- package/build/index.es.js +381 -82
- package/build/index.js +381 -82
- package/build/models/data/category/index.d.ts +5 -0
- package/build/models/data/order/line-item/index.d.ts +1 -0
- package/build/models/ui/product-list/index.d.ts +8 -4
- package/build/store/base.d.ts +0 -1
- package/build/store/customer.d.ts +19 -6
- package/package.json +1 -1
|
@@ -73,6 +73,14 @@ export declare enum CustomerAccountStatusesEnum {
|
|
|
73
73
|
DISABLED_ACCOUNT = "DISABLED_ACCOUNT",
|
|
74
74
|
INVITED_TO_CREATE_ACCOUNT = "INVITED_TO_CREATE_ACCOUNT"
|
|
75
75
|
}
|
|
76
|
+
/**
|
|
77
|
+
* Customer Email Subscription Statuses
|
|
78
|
+
*/
|
|
79
|
+
export declare enum CustomerEmailSubscriptionStatusesEnum {
|
|
80
|
+
NOT_SUBSCRIBED = "NOT_SUBSCRIBED",
|
|
81
|
+
PENDING_CONFIRMATION = "PENDING_CONFIRMATION",
|
|
82
|
+
SUBSCRIBED = "SUBSCRIBED"
|
|
83
|
+
}
|
|
76
84
|
/**
|
|
77
85
|
* Url Slug Target Type Enum Codes
|
|
78
86
|
*/
|
|
@@ -446,6 +454,22 @@ export interface PaymentMethodDetailInput {
|
|
|
446
454
|
installmentCount: number;
|
|
447
455
|
threeDSecure: boolean;
|
|
448
456
|
}
|
|
457
|
+
export interface ProductItemInput {
|
|
458
|
+
createdAt?: any | null;
|
|
459
|
+
deleted?: boolean | null;
|
|
460
|
+
id?: string | null;
|
|
461
|
+
productId: string;
|
|
462
|
+
updatedAt?: any | null;
|
|
463
|
+
variantId: string;
|
|
464
|
+
}
|
|
465
|
+
export interface ProductLastViewedInput {
|
|
466
|
+
createdAt?: any | null;
|
|
467
|
+
customerId: string;
|
|
468
|
+
deleted?: boolean | null;
|
|
469
|
+
id?: string | null;
|
|
470
|
+
products: ProductItemInput[];
|
|
471
|
+
updatedAt?: any | null;
|
|
472
|
+
}
|
|
449
473
|
export interface RetrieveInstallmentInfoInput {
|
|
450
474
|
binNumber: string;
|
|
451
475
|
paymentGatewayId: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CustomerAccountStatusesEnum } from "../../../__generated__/global-types";
|
|
1
|
+
import { CustomerAccountStatusesEnum, CustomerEmailSubscriptionStatusesEnum } from "../../../__generated__/global-types";
|
|
2
2
|
export interface customerLogin_customerLogin_customer_addresses_city {
|
|
3
3
|
__typename: "CustomerAddressCity";
|
|
4
4
|
code: string | null;
|
|
@@ -53,6 +53,7 @@ export interface customerLogin_customerLogin_customer {
|
|
|
53
53
|
accountStatus: CustomerAccountStatusesEnum | null;
|
|
54
54
|
email: string | null;
|
|
55
55
|
firstName: string;
|
|
56
|
+
subscriptionStatus: CustomerEmailSubscriptionStatusesEnum | null;
|
|
56
57
|
}
|
|
57
58
|
export interface customerLogin_customerLogin {
|
|
58
59
|
__typename: "CustomerLoginResponse";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface getLastViewedProducts_getLastViewedProducts_products {
|
|
2
|
+
__typename: "ProductItem";
|
|
3
|
+
productId: string;
|
|
4
|
+
variantId: string;
|
|
5
|
+
}
|
|
6
|
+
export interface getLastViewedProducts_getLastViewedProducts {
|
|
7
|
+
__typename: "ProductLastViewed";
|
|
8
|
+
products: getLastViewedProducts_getLastViewedProducts_products[];
|
|
9
|
+
}
|
|
10
|
+
export interface getLastViewedProducts {
|
|
11
|
+
getLastViewedProducts: getLastViewedProducts_getLastViewedProducts;
|
|
12
|
+
}
|
|
13
|
+
export interface getLastViewedProductsVariables {
|
|
14
|
+
customerId?: string | null;
|
|
15
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ProductLastViewedInput } from "../../../__generated__/global-types";
|
|
2
|
+
export interface saveLastViewedProducts_saveLastViewedProducts {
|
|
3
|
+
__typename: "ProductLastViewed";
|
|
4
|
+
id: string;
|
|
5
|
+
}
|
|
6
|
+
export interface saveLastViewedProducts {
|
|
7
|
+
saveLastViewedProducts: saveLastViewedProducts_saveLastViewedProducts;
|
|
8
|
+
}
|
|
9
|
+
export interface saveLastViewedProductsVariables {
|
|
10
|
+
input: ProductLastViewedInput;
|
|
11
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { IkasCustomer, IkasOrder } from "../../models/index";
|
|
2
|
-
import * as RefreshTokenTypes from "./__generated__/customerRefreshToken";
|
|
3
2
|
import { IkasRefund } from "../../models/data/order/refund/index";
|
|
3
|
+
import * as RefreshTokenTypes from "./__generated__/customerRefreshToken";
|
|
4
|
+
import * as GetLastViewedProductsTypes from "./__generated__/getLastViewedProducts";
|
|
4
5
|
export declare class IkasCustomerAPI {
|
|
5
6
|
static login(email: string, password: string): Promise<{
|
|
6
7
|
customer: IkasCustomer;
|
|
@@ -28,4 +29,15 @@ export declare class IkasCustomerAPI {
|
|
|
28
29
|
}): Promise<any>;
|
|
29
30
|
static saveIkasOrderRefund(input: IkasRefund): Promise<IkasOrder | undefined>;
|
|
30
31
|
static createCustomerEmailSubscription(email: string): Promise<boolean>;
|
|
32
|
+
static getLastViewedProducts(customerId: string): Promise<GetLastViewedProductsTypes.getLastViewedProducts_getLastViewedProducts_products[]>;
|
|
33
|
+
static saveLastViewedProducts(input: LastViewedProductInput): Promise<boolean>;
|
|
31
34
|
}
|
|
35
|
+
declare type LastViewedProduct = {
|
|
36
|
+
productId: string;
|
|
37
|
+
variantId: string;
|
|
38
|
+
};
|
|
39
|
+
declare type LastViewedProductInput = {
|
|
40
|
+
customerId: string;
|
|
41
|
+
products: LastViewedProduct[];
|
|
42
|
+
};
|
|
43
|
+
export {};
|