@nicefer/types 1.0.83 → 1.0.84
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/countries.js +0 -1
- package/dist/types/countries.d.ts +0 -14
- package/dist/types/warehouses.d.ts +15 -2
- package/dist/warehouses.js +1 -0
- package/package.json +1 -1
package/dist/countries.js
CHANGED
|
@@ -2,20 +2,6 @@ export interface Country {
|
|
|
2
2
|
id: 'HN' | 'US' | 'SV';
|
|
3
3
|
name: string;
|
|
4
4
|
code: number | null | undefined;
|
|
5
|
-
/**
|
|
6
|
-
* `key` es el id del país al que se entrega. Ej. `US`
|
|
7
|
-
*/
|
|
8
|
-
shipmentsTo?: {
|
|
9
|
-
[key: string]: DeliveryTime;
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Tiempo de entrega en días hábiles de un país a otro.
|
|
14
|
-
*/
|
|
15
|
-
export interface DeliveryTime {
|
|
16
|
-
countryId: string;
|
|
17
|
-
countryName: string;
|
|
18
|
-
inBusinessDays: number;
|
|
19
5
|
}
|
|
20
6
|
export interface City {
|
|
21
7
|
id: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Country,
|
|
1
|
+
import { Country, Region } from "./countries";
|
|
2
2
|
export interface WarehouseInDB {
|
|
3
3
|
id?: string;
|
|
4
4
|
name: string;
|
|
@@ -9,6 +9,19 @@ export interface WarehouseInDB {
|
|
|
9
9
|
zipcode: number;
|
|
10
10
|
country: Country;
|
|
11
11
|
status: 'active' | 'tmpClosed' | 'closed';
|
|
12
|
-
|
|
12
|
+
/**
|
|
13
|
+
* `key` es el id del país al que se entrega. Ej. `US`
|
|
14
|
+
*/
|
|
15
|
+
shipmentsTo?: {
|
|
16
|
+
[key: string]: WarehouseDeliveryTime;
|
|
17
|
+
};
|
|
13
18
|
createdAt: string;
|
|
14
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* Tiempo de entrega en días hábiles de un país a otro.
|
|
22
|
+
*/
|
|
23
|
+
export interface WarehouseDeliveryTime {
|
|
24
|
+
countryId: string;
|
|
25
|
+
countryName: string;
|
|
26
|
+
inBusinessDays: number;
|
|
27
|
+
}
|
package/dist/warehouses.js
CHANGED