apirocket 0.13.2 → 0.13.3

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.
@@ -9,13 +9,13 @@ export declare class AccountService {
9
9
  get myOrders$(): Observable<CustomerOrders>;
10
10
  constructor();
11
11
  private initMyAccountData;
12
- private myAccountData;
13
12
  passwordForm(formElement: HTMLFormElement, canChange: (canChange: boolean) => void): FormControl;
14
13
  personalForm(formElement: HTMLFormElement, ecommerceService: EcommerceService, canUpdate: (canUpdate: boolean) => void): FormControl;
15
14
  setCustomerService(customer: CustomerService): void;
16
- updateMyAccount(form: FormControl, customer: CustomerService): Observable<void>;
15
+ updateMyAccount(form: FormControl): Observable<void>;
17
16
  updateShippingAddress(shippingAddress: ShippingAddress): void;
18
- passwordChange(form: FormControl, customer: CustomerService): Observable<void>;
17
+ passwordChange(form: FormControl): Observable<void>;
19
18
  pdfOrder(orderId: number): Observable<PdfOrder>;
20
19
  private myOrderData;
20
+ private myAccountData;
21
21
  }
@@ -22,17 +22,16 @@ export declare class CustomerService implements Authentication {
22
22
  private _update$;
23
23
  constructor();
24
24
  private changeCustomer;
25
+ myAccount(): Promise<CustomerAccount>;
25
26
  rememberPassword(form: FormControl): Promise<any>;
26
27
  private restoreState;
27
28
  private saveState;
28
29
  setAccountService(account: AccountService): void;
29
30
  setCartService(cart: CartService): void;
30
31
  setData(email: string, phone: string, acceptEmailMarketing: boolean): void;
31
- subscribe(cb: (customer: CustomerService) => void): () => void;
32
32
  logout(): Promise<{
33
33
  status: number;
34
34
  }>;
35
- myAccount(): Promise<CustomerAccount>;
36
35
  login(form: FormControl): Promise<{
37
36
  status: number;
38
37
  }>;
@@ -42,11 +41,15 @@ export declare class CustomerService implements Authentication {
42
41
  updateState(data: LoginData, emitUpdated: boolean): void;
43
42
  orders(filter?: OrdersFilter): Promise<CustomerOrders>;
44
43
  order(id: number): Promise<Order>;
44
+ updateMyAccount(data: InputUpdateAccount): Promise<boolean>;
45
+ updatePassword(oldPassword: string, newPassword: string): Promise<boolean>;
45
46
  }
46
47
  export declare function customerProxy(customer: CustomerService): {
47
48
  acceptEmailMarketing: boolean;
49
+ email: string;
48
50
  firstName: string;
49
51
  id: number;
52
+ lastName: string;
50
53
  phone: string;
51
54
  type: CustomerType;
52
55
  isLogged: boolean;
@@ -55,4 +58,6 @@ export declare function customerProxy(customer: CustomerService): {
55
58
  order: (id: number) => Promise<Order>;
56
59
  orders: (filter?: OrdersFilter) => Promise<CustomerOrders>;
57
60
  subscribe: (cb: (customer: CustomerService) => void) => () => void;
61
+ updateMyAccount: (input: InputUpdateAccount) => Promise<boolean>;
62
+ updatePassword: (oldPassword: string, newPassword: string) => Promise<boolean>;
58
63
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apirocket",
3
- "version": "0.13.2",
3
+ "version": "0.13.3",
4
4
  "description": " ",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",