@ikas/storefront 0.0.158-alpha.8 → 0.0.158
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 +0 -24
- package/build/api/customer/__generated__/customerLogin.d.ts +1 -2
- package/build/api/customer/index.d.ts +1 -13
- package/build/index.es.js +72 -354
- package/build/index.js +72 -354
- package/build/models/data/order/line-item/index.d.ts +0 -1
- package/build/models/ui/product-list/index.d.ts +4 -8
- package/build/store/base.d.ts +1 -0
- package/build/store/customer.d.ts +6 -19
- package/package.json +1 -1
- package/build/api/customer/__generated__/getLastViewedProducts.d.ts +0 -15
- package/build/api/customer/__generated__/saveLastViewedProducts.d.ts +0 -11
|
@@ -73,14 +73,6 @@ 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
|
-
}
|
|
84
76
|
/**
|
|
85
77
|
* Url Slug Target Type Enum Codes
|
|
86
78
|
*/
|
|
@@ -454,22 +446,6 @@ export interface PaymentMethodDetailInput {
|
|
|
454
446
|
installmentCount: number;
|
|
455
447
|
threeDSecure: boolean;
|
|
456
448
|
}
|
|
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
|
-
}
|
|
473
449
|
export interface RetrieveInstallmentInfoInput {
|
|
474
450
|
binNumber: string;
|
|
475
451
|
paymentGatewayId: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CustomerAccountStatusesEnum
|
|
1
|
+
import { CustomerAccountStatusesEnum } from "../../../__generated__/global-types";
|
|
2
2
|
export interface customerLogin_customerLogin_customer_addresses_city {
|
|
3
3
|
__typename: "CustomerAddressCity";
|
|
4
4
|
code: string | null;
|
|
@@ -53,7 +53,6 @@ export interface customerLogin_customerLogin_customer {
|
|
|
53
53
|
accountStatus: CustomerAccountStatusesEnum | null;
|
|
54
54
|
email: string | null;
|
|
55
55
|
firstName: string;
|
|
56
|
-
subscriptionStatus: CustomerEmailSubscriptionStatusesEnum | null;
|
|
57
56
|
}
|
|
58
57
|
export interface customerLogin_customerLogin {
|
|
59
58
|
__typename: "CustomerLoginResponse";
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { IkasCustomer, IkasOrder } from "../../models/index";
|
|
2
|
-
import { IkasRefund } from "../../models/data/order/refund/index";
|
|
3
2
|
import * as RefreshTokenTypes from "./__generated__/customerRefreshToken";
|
|
4
|
-
import
|
|
3
|
+
import { IkasRefund } from "../../models/data/order/refund/index";
|
|
5
4
|
export declare class IkasCustomerAPI {
|
|
6
5
|
static login(email: string, password: string): Promise<{
|
|
7
6
|
customer: IkasCustomer;
|
|
@@ -29,15 +28,4 @@ export declare class IkasCustomerAPI {
|
|
|
29
28
|
}): Promise<any>;
|
|
30
29
|
static saveIkasOrderRefund(input: IkasRefund): Promise<IkasOrder | undefined>;
|
|
31
30
|
static createCustomerEmailSubscription(email: string): Promise<boolean>;
|
|
32
|
-
static getLastViewedProducts(customerId: string): Promise<GetLastViewedProductsTypes.getLastViewedProducts_getLastViewedProducts_products[]>;
|
|
33
|
-
static saveLastViewedProducts(input: LastViewedProductInput): Promise<boolean>;
|
|
34
31
|
}
|
|
35
|
-
declare type LastViewedProduct = {
|
|
36
|
-
productId: string;
|
|
37
|
-
variantId: string;
|
|
38
|
-
};
|
|
39
|
-
declare type LastViewedProductInput = {
|
|
40
|
-
customerId: string;
|
|
41
|
-
products: LastViewedProduct[];
|
|
42
|
-
};
|
|
43
|
-
export {};
|