ingeniuscliq-core 0.3.13 → 0.3.14

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.
@@ -1,5 +1,5 @@
1
1
  import { BaseService } from '../../../services/base';
2
- import { CoreShippingAddress, CoreShippingMethod } from '../types/CoreShipment';
2
+ import { CoreShippingAddress, CoreShippingAddressForm, CoreShippingMethod } from '../types/CoreShipment';
3
3
  import { BaseApiResponse, BaseApiResponsePagination } from '../../../types';
4
4
  /**
5
5
  * Base class that can be extended by concrete services
@@ -8,6 +8,6 @@ export declare class CoreShipmentBaseService<T extends CoreShippingMethod, K ext
8
8
  constructor();
9
9
  getShippingMethods(): Promise<import('axios').AxiosResponse<BaseApiResponse<T[]>, any>>;
10
10
  getShippingAddresses(): Promise<import('axios').AxiosResponse<BaseApiResponsePagination<K>, any>>;
11
- addShippingAddress(newAddress: K): Promise<import('axios').AxiosResponse<BaseApiResponse<K>, any>>;
11
+ addShippingAddress<T extends CoreShippingAddressForm>(newAddress: T): Promise<import('axios').AxiosResponse<BaseApiResponse<K>, any>>;
12
12
  updateShippingAddress(addressId: Pick<K, 'id'>, updateAddress: Partial<K>): Promise<import('axios').AxiosResponse<BaseApiResponse<K>, any>>;
13
13
  }
@@ -33,3 +33,10 @@ export interface CoreShippingAddress extends BaseType {
33
33
  municipality: string;
34
34
  is_default: boolean;
35
35
  }
36
+ export interface CoreShippingAddressForm extends BaseType {
37
+ label: string;
38
+ address: string;
39
+ province: string;
40
+ municipality: string;
41
+ is_default: boolean;
42
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ingeniuscliq-core",
3
- "version": "0.3.13",
3
+ "version": "0.3.14",
4
4
  "description": "IngeniusCliq Core UI y lógica compartida",
5
5
  "license": "MIT",
6
6
  "type": "module",