@nicefer/types 1.0.170 → 1.0.171
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/api.js +2 -1
- package/dist/bag.js +2 -1
- package/dist/branch.js +2 -1
- package/dist/company.js +2 -1
- package/dist/countries.js +12 -6
- package/dist/index.js +30 -14
- package/dist/orders.js +2 -1
- package/dist/org/event.js +2 -1
- package/dist/org/index.js +18 -2
- package/dist/org/radar.js +2 -1
- package/dist/payments.js +2 -1
- package/dist/product-category.js +2 -1
- package/dist/products.js +2 -1
- package/dist/replenishment.js +2 -1
- package/dist/stats.js +2 -1
- package/dist/translations.js +2 -1
- package/dist/users.js +2 -1
- package/dist/warehouses.js +2 -1
- package/package.json +1 -1
package/dist/api.js
CHANGED
package/dist/bag.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/dist/branch.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/dist/company.js
CHANGED
package/dist/countries.js
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.compareRegions = exports.compareCountries = exports.Regions = exports.Countries = void 0;
|
|
4
|
+
exports.getRegionsByCountryId = getRegionsByCountryId;
|
|
5
|
+
exports.Countries = [
|
|
2
6
|
{
|
|
3
7
|
id: 'HN',
|
|
4
8
|
name: 'Honduras',
|
|
@@ -24,7 +28,7 @@ export const Countries = [
|
|
|
24
28
|
ccy: 'USD'
|
|
25
29
|
},
|
|
26
30
|
];
|
|
27
|
-
|
|
31
|
+
exports.Regions = {
|
|
28
32
|
HN: [
|
|
29
33
|
{
|
|
30
34
|
id: "AT",
|
|
@@ -181,8 +185,8 @@ export const Regions = {
|
|
|
181
185
|
],
|
|
182
186
|
CN: []
|
|
183
187
|
};
|
|
184
|
-
|
|
185
|
-
return Regions[id];
|
|
188
|
+
function getRegionsByCountryId(id) {
|
|
189
|
+
return exports.Regions[id];
|
|
186
190
|
}
|
|
187
191
|
/**
|
|
188
192
|
* Usado en el atributo [compareWith] de los mat-select's
|
|
@@ -191,5 +195,7 @@ export function getRegionsByCountryId(id) {
|
|
|
191
195
|
* @param c2
|
|
192
196
|
* @returns
|
|
193
197
|
*/
|
|
194
|
-
|
|
195
|
-
|
|
198
|
+
const compareCountries = (c1, c2) => c1 && c2 ? c1.id === c2.id : false;
|
|
199
|
+
exports.compareCountries = compareCountries;
|
|
200
|
+
const compareRegions = (r1, r2) => r1 && r2 ? r1.id === r2.id : false;
|
|
201
|
+
exports.compareRegions = compareRegions;
|
package/dist/index.js
CHANGED
|
@@ -1,17 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
// src/index.ts
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
|
+
};
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
18
|
/** ID único para un usuario */
|
|
3
19
|
// export type UserId = string & { __brand: 'UserId' };
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
20
|
+
__exportStar(require("./api"), exports);
|
|
21
|
+
__exportStar(require("./bag"), exports);
|
|
22
|
+
__exportStar(require("./branch"), exports);
|
|
23
|
+
__exportStar(require("./countries"), exports);
|
|
24
|
+
__exportStar(require("./orders"), exports);
|
|
25
|
+
__exportStar(require("./stats"), exports);
|
|
26
|
+
__exportStar(require("./payments"), exports);
|
|
27
|
+
__exportStar(require("./product-category"), exports);
|
|
28
|
+
__exportStar(require("./products"), exports);
|
|
29
|
+
__exportStar(require("./replenishment"), exports);
|
|
30
|
+
__exportStar(require("./users"), exports);
|
|
31
|
+
__exportStar(require("./warehouses"), exports);
|
|
32
|
+
__exportStar(require("./translations"), exports);
|
|
33
|
+
__exportStar(require("./company"), exports);
|
package/dist/orders.js
CHANGED
package/dist/org/event.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/dist/org/index.js
CHANGED
|
@@ -1,2 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./radar"), exports);
|
|
18
|
+
__exportStar(require("./event"), exports);
|
package/dist/org/radar.js
CHANGED
package/dist/payments.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/dist/product-category.js
CHANGED
package/dist/products.js
CHANGED
package/dist/replenishment.js
CHANGED
package/dist/stats.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/dist/translations.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/dist/users.js
CHANGED
package/dist/warehouses.js
CHANGED