apirocket 0.18.9 → 0.19.1
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 +5 -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,8 +75,8 @@ 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;
|
|
79
|
+
customerRole?: string;
|
|
78
80
|
}>;
|
|
79
81
|
updateToken(data: LoginData): void;
|
|
80
82
|
createAccount(form: FormControl): Promise<CreateAccountResponse>;
|
|
@@ -100,13 +102,14 @@ export declare function customerProxy(customer: CustomerService): {
|
|
|
100
102
|
deleteBillingAddress: (id: number) => Promise<any>;
|
|
101
103
|
login: (email: string, password: string) => Promise<{
|
|
102
104
|
status: number;
|
|
103
|
-
token?: string;
|
|
104
105
|
customer?: CustomerData;
|
|
106
|
+
customerRole?: string;
|
|
105
107
|
}>;
|
|
106
108
|
logout: () => Promise<{
|
|
107
109
|
status: number;
|
|
108
110
|
}>;
|
|
109
111
|
myAccount: () => Promise<CustomerAccount>;
|
|
112
|
+
onAuthChange: (cb: (event: CustomerAuthEvent) => void) => () => void;
|
|
110
113
|
order: (id: number) => Promise<Order>;
|
|
111
114
|
orders: (filter?: Partial<OrdersFilter>) => Promise<CustomerOrders>;
|
|
112
115
|
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.1";
|