apirocket 0.6.8 → 0.6.10

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.
@@ -0,0 +1,2 @@
1
+ declare const proxyReadOnly: (target: any) => any;
2
+ export { proxyReadOnly };
@@ -2,6 +2,7 @@ import type { Observable } from 'rxjs/internal/Observable';
2
2
  import type { FormControl } from "@e-xisto/form-control";
3
3
  import type { CartService } from "./cart.service";
4
4
  import type { CustomerType } from "@src/types/types";
5
+ import type { AccountService } from "./account.service";
5
6
  export declare class CustomerService {
6
7
  #private;
7
8
  readonly change$: Observable<CustomerService>;
@@ -10,16 +11,18 @@ export declare class CustomerService {
10
11
  get firstName(): string;
11
12
  get id(): number;
12
13
  get lastName(): string;
14
+ get myAccount(): Promise<CustomerAccount>;
13
15
  get phone(): string;
14
16
  get refreshToken(): string;
15
17
  get token(): string;
16
18
  get type(): CustomerType;
17
- get verified(): boolean;
19
+ get isLogged(): boolean;
18
20
  constructor();
19
21
  private changeCustomer;
20
22
  rememberPassword(form: FormControl): Promise<any>;
21
23
  private restoreState;
22
24
  private saveState;
25
+ setAccountService(account: AccountService): void;
23
26
  setCartService(cart: CartService): void;
24
27
  subscribe(cb: (customer: CustomerService) => void): () => void;
25
28
  price(productId: number): Promise<any>;
@@ -32,4 +35,5 @@ export declare class CustomerService {
32
35
  }>;
33
36
  private updateState;
34
37
  updateToken(data: LoginData): void;
38
+ private getMyAccount;
35
39
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apirocket",
3
- "version": "0.6.8",
3
+ "version": "0.6.10",
4
4
  "description": " ",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",