apirocket 0.16.13 → 0.17.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 +15 -1
- package/dist/ecommerce.js +2 -2
- package/dist/lib/i18n.d.ts +1 -0
- package/dist/locales/de.d.ts +2 -0
- package/dist/locales/en.d.ts +2 -0
- package/dist/locales/es.d.ts +2 -0
- package/dist/services/customer.service.d.ts +14 -0
- package/dist/services/ecommerce.service.d.ts +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function i18n(config: I18NConfig): Readonly<I18N>;
|
|
@@ -4,6 +4,15 @@ import type { CartService } from "./cart.service";
|
|
|
4
4
|
import type { AccountService } from "./account.service";
|
|
5
5
|
import type { CheckoutService } from "./checkout.service";
|
|
6
6
|
import type { BillingAddress, ShippingAddress } from "@src/models/addresses-models";
|
|
7
|
+
type CustomerData = {
|
|
8
|
+
acceptEmailMarketing: boolean;
|
|
9
|
+
email: string;
|
|
10
|
+
firstName: string;
|
|
11
|
+
id: number;
|
|
12
|
+
lastName: string;
|
|
13
|
+
phone: string;
|
|
14
|
+
type: CustomerType;
|
|
15
|
+
};
|
|
7
16
|
export declare class CustomerService implements Authentication {
|
|
8
17
|
#private;
|
|
9
18
|
readonly change$: Observable<CustomerService>;
|
|
@@ -45,6 +54,8 @@ export declare class CustomerService implements Authentication {
|
|
|
45
54
|
}>;
|
|
46
55
|
login(email: string, password: string): Promise<{
|
|
47
56
|
status: number;
|
|
57
|
+
token?: string;
|
|
58
|
+
customer?: CustomerData;
|
|
48
59
|
}>;
|
|
49
60
|
updateToken(data: LoginData): void;
|
|
50
61
|
createAccount(form: FormControl): Promise<CreateAccountResponse>;
|
|
@@ -70,6 +81,8 @@ export declare function customerProxy(customer: CustomerService): {
|
|
|
70
81
|
deleteBillingAddress: (id: number) => Promise<unknown>;
|
|
71
82
|
login: (email: string, password: string) => Promise<{
|
|
72
83
|
status: number;
|
|
84
|
+
token?: string;
|
|
85
|
+
customer?: CustomerData;
|
|
73
86
|
}>;
|
|
74
87
|
logout: () => Promise<{
|
|
75
88
|
status: number;
|
|
@@ -85,3 +98,4 @@ export declare function customerProxy(customer: CustomerService): {
|
|
|
85
98
|
updateBillingAddress: (input: BillingAddress) => Promise<unknown>;
|
|
86
99
|
updateShippingAddress: (input: ShippingAddress) => Promise<unknown>;
|
|
87
100
|
};
|
|
101
|
+
export {};
|
|
@@ -11,7 +11,9 @@ export declare class EcommerceService {
|
|
|
11
11
|
get cart(): CartService;
|
|
12
12
|
get checkout(): CheckoutService;
|
|
13
13
|
get customer(): CustomerService;
|
|
14
|
+
get locale(): string;
|
|
14
15
|
get logo(): string;
|
|
16
|
+
get i18n(): I18N;
|
|
15
17
|
get sales(): SalesService;
|
|
16
18
|
get status(): EcommerceStatus;
|
|
17
19
|
constructor();
|