apirocket 0.18.8 → 0.19.0
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/README.md +24 -24
- package/dist/ecommerce.js +2 -2
- package/dist/services/customer.service.d.ts +3 -2
- package/dist/types/ecommerce.type.d.ts +0 -8
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -45,12 +45,14 @@ export declare class CustomerService implements Authentication {
|
|
|
45
45
|
get isB2B(): boolean;
|
|
46
46
|
get isContact(): boolean;
|
|
47
47
|
get isLogged(): boolean;
|
|
48
|
+
get lastAuth(): CustomerAuthEvent | null;
|
|
48
49
|
constructor();
|
|
49
50
|
private changeCustomer;
|
|
50
51
|
createBillingAddress(input: Omit<BillingAddress, 'id'>): Promise<any>;
|
|
51
52
|
createShippingAddress(input: Omit<ShippingAddress, 'id'>): Promise<any>;
|
|
52
53
|
deleteBillingAddress(id: number): Promise<any>;
|
|
53
54
|
deleteShippingAddress(id: number): Promise<any>;
|
|
55
|
+
private emitAuth;
|
|
54
56
|
myAccount(): Promise<CustomerAccount>;
|
|
55
57
|
orders(filter?: Partial<OrdersFilter>): Promise<CustomerOrders>;
|
|
56
58
|
rememberPassword(email: string): Promise<number>;
|
|
@@ -73,7 +75,6 @@ export declare class CustomerService implements Authentication {
|
|
|
73
75
|
}>;
|
|
74
76
|
login(email: string, password: string): Promise<{
|
|
75
77
|
status: number;
|
|
76
|
-
token?: string;
|
|
77
78
|
customer?: CustomerData;
|
|
78
79
|
}>;
|
|
79
80
|
updateToken(data: LoginData): void;
|
|
@@ -100,13 +101,13 @@ export declare function customerProxy(customer: CustomerService): {
|
|
|
100
101
|
deleteBillingAddress: (id: number) => Promise<any>;
|
|
101
102
|
login: (email: string, password: string) => Promise<{
|
|
102
103
|
status: number;
|
|
103
|
-
token?: string;
|
|
104
104
|
customer?: CustomerData;
|
|
105
105
|
}>;
|
|
106
106
|
logout: () => Promise<{
|
|
107
107
|
status: number;
|
|
108
108
|
}>;
|
|
109
109
|
myAccount: () => Promise<CustomerAccount>;
|
|
110
|
+
onAuthChange: (cb: (event: CustomerAuthEvent) => void) => () => void;
|
|
110
111
|
order: (id: number) => Promise<Order>;
|
|
111
112
|
orders: (filter?: Partial<OrdersFilter>) => Promise<CustomerOrders>;
|
|
112
113
|
price: (productId: number) => Promise<any>;
|
|
@@ -20,14 +20,6 @@ export declare enum EcommerceStatus {
|
|
|
20
20
|
SALES_REMEMBER_PASSWORD = "#/sales-remember-password",
|
|
21
21
|
SALES_RESET_PASSWORD = "#/sales-reset-password"
|
|
22
22
|
}
|
|
23
|
-
export declare class CustomerLoginEvent extends Event {
|
|
24
|
-
readonly login: {
|
|
25
|
-
token?: string;
|
|
26
|
-
};
|
|
27
|
-
constructor(type: string, login: {
|
|
28
|
-
token?: string;
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
23
|
export declare class EcommerceReadyEvent extends Event {
|
|
32
24
|
readonly ecommerce: PublicEcommerceService;
|
|
33
25
|
constructor(type: string, ecommerce: PublicEcommerceService);
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.19.0";
|