apirocket 0.12.4 → 0.13.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/dist/lib/proxies.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const proxyReadOnly: (target: any) => any;
|
|
1
|
+
declare const proxyReadOnly: (target: any, properties?: Array<string>) => any;
|
|
2
2
|
export { proxyReadOnly };
|
|
@@ -15,7 +15,7 @@ export declare class AccountService {
|
|
|
15
15
|
setCustomerService(customer: CustomerService): void;
|
|
16
16
|
updateMyAccount(form: FormControl, customer: CustomerService): Observable<void>;
|
|
17
17
|
updateShippingAddress(shippingAddress: ShippingAddress): void;
|
|
18
|
-
private myOrderData;
|
|
19
18
|
passwordChange(form: FormControl, customer: CustomerService): Observable<void>;
|
|
20
19
|
pdfOrder(orderId: number): Observable<PdfOrder>;
|
|
20
|
+
private myOrderData;
|
|
21
21
|
}
|
|
@@ -10,7 +10,6 @@ export declare class CustomerService implements Authentication {
|
|
|
10
10
|
get firstName(): string;
|
|
11
11
|
get id(): number;
|
|
12
12
|
get lastName(): string;
|
|
13
|
-
get myAccount(): Promise<CustomerAccount>;
|
|
14
13
|
get phone(): string;
|
|
15
14
|
get refreshToken(): string;
|
|
16
15
|
get token(): string;
|
|
@@ -28,17 +27,20 @@ export declare class CustomerService implements Authentication {
|
|
|
28
27
|
private saveState;
|
|
29
28
|
setAccountService(account: AccountService): void;
|
|
30
29
|
setCartService(cart: CartService): void;
|
|
30
|
+
setData(email: string, phone: string, acceptEmailMarketing: boolean): void;
|
|
31
31
|
subscribe(cb: (customer: CustomerService) => void): () => void;
|
|
32
32
|
logout(): Promise<{
|
|
33
33
|
status: number;
|
|
34
34
|
}>;
|
|
35
|
-
|
|
35
|
+
myAccount(): Promise<CustomerAccount>;
|
|
36
36
|
login(form: FormControl): Promise<{
|
|
37
37
|
status: number;
|
|
38
38
|
}>;
|
|
39
|
-
private getMyAccount;
|
|
40
39
|
updateToken(data: LoginData): void;
|
|
41
40
|
createAccount(form: FormControl): Promise<CreateAccountResponse>;
|
|
42
41
|
price(productId: number): Promise<any>;
|
|
43
42
|
updateState(data: LoginData, emitUpdated: boolean): void;
|
|
43
|
+
orders(filter?: OrdersFilter): Promise<CustomerOrders>;
|
|
44
|
+
order(id: number): Promise<Order>;
|
|
44
45
|
}
|
|
46
|
+
export declare function customerProxy(customer: CustomerService): any;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -4,34 +4,16 @@ export declare enum AccountStatus {
|
|
|
4
4
|
BILLING = "billing",
|
|
5
5
|
ORDERS = "orders"
|
|
6
6
|
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
priceTaxBase: number;
|
|
11
|
-
product: OrderProduct;
|
|
12
|
-
quantity: number;
|
|
13
|
-
taxes: any;
|
|
14
|
-
};
|
|
15
|
-
export type OrderProduct = {
|
|
16
|
-
barcode: string;
|
|
17
|
-
category: {
|
|
18
|
-
id: number;
|
|
19
|
-
name: string;
|
|
20
|
-
};
|
|
21
|
-
description: string;
|
|
7
|
+
interface InputOrderCustomer {
|
|
8
|
+
acceptEmailMarketing?: boolean;
|
|
9
|
+
email: string;
|
|
22
10
|
id: number;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
noShippingCost: boolean;
|
|
26
|
-
sku: string;
|
|
27
|
-
stockManagement: boolean;
|
|
28
|
-
url?: string;
|
|
29
|
-
weight: number;
|
|
30
|
-
};
|
|
11
|
+
phone: string;
|
|
12
|
+
}
|
|
31
13
|
export interface InputCartToOrder {
|
|
32
14
|
billingAddress?: BillingAddressType;
|
|
33
15
|
cartUuid: string;
|
|
34
|
-
customer:
|
|
16
|
+
customer: InputOrderCustomer;
|
|
35
17
|
customerOrder: string;
|
|
36
18
|
discounts: Discounts;
|
|
37
19
|
geolocation: any;
|
|
@@ -124,3 +106,4 @@ export type OrderPaymentMethodType = {
|
|
|
124
106
|
id: number;
|
|
125
107
|
name: string;
|
|
126
108
|
};
|
|
109
|
+
export {};
|