apirocket 0.13.4 → 0.13.5

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 CHANGED
@@ -94,11 +94,13 @@ interface ReadOnly <CustomerService> {
94
94
  type: 'B2B' | 'B2C';
95
95
  isLogged: boolean;
96
96
 
97
+ countries: () => Promise <Array <Countries>>;
97
98
  createShippingAddress: (input: Omit <ShippingAddress, 'id'>) => Promise <ShippingAddress>;
98
99
  myAccount: () => Promise <CustomerAccount>;
99
100
  price: (productId: number) => Promise <ProductPrice>;
100
101
  orders: (filter: OrdersFilter = {}) => Promise <Array <Order>>;
101
102
  order: (id: number) => Promise <Order>;
103
+ states: (countryId: number) => Promise <Array <State>>;
102
104
  subscribe: (cb: (customer: CustomerService) => void);
103
105
  updateMyAccount: (input: InputUpdateAccount) => Promise <boolean>;
104
106
  updatePassword: (oldPassword: string, newPassword: string) => Promise <boolean>;
@@ -121,10 +123,14 @@ type ShippingAddress {
121
123
  lastName: string;
122
124
  phone: string;
123
125
  postalCode?: string;
124
- state: {
125
- name?: string;
126
- id: number;
127
- }
126
+ state: State
127
+ }
128
+ ```
129
+
130
+ ```javascript
131
+ type State = {
132
+ name?: string;
133
+ id: number;
128
134
  }
129
135
  ```
130
136
 
@@ -180,7 +186,7 @@ interface AccountShippingAddress {
180
186
  address: string;
181
187
  address2: string;
182
188
  city: string;
183
- country: CountryRecord;
189
+ country: Country;
184
190
  default: boolean;
185
191
  description: string;
186
192
  firstName: string;
@@ -240,7 +246,7 @@ interface OrderBillindAddress {
240
246
  address?: string;
241
247
  address2?: string;
242
248
  city?: string;
243
- country?: CountryRecord;
249
+ country?: Country;
244
250
  description?: string;
245
251
  id?: number;
246
252
  name?: string;
@@ -356,7 +362,7 @@ interface OrderShippingAddress {
356
362
  address?: string;
357
363
  address2?: string;
358
364
  city?: string;
359
- country?: CountryRecord;
365
+ country?: Country;
360
366
  description?: string;
361
367
  email?: string;
362
368
  firstName?: string;