@nicefer/types 1.0.168 → 1.0.170
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 +1 -2
- package/dist/bag.js +1 -2
- package/dist/branch.js +1 -2
- package/dist/company.js +1 -2
- package/dist/countries.js +6 -12
- package/dist/index.js +14 -30
- package/dist/orders.js +1 -2
- package/dist/org/event.js +1 -2
- package/dist/org/index.js +2 -18
- package/dist/org/radar.js +1 -2
- package/dist/payments.js +1 -2
- package/dist/product-category.js +1 -2
- package/dist/products.js +1 -2
- package/dist/replenishment.js +1 -2
- package/dist/stats.js +1 -2
- package/dist/translations.js +1 -2
- package/dist/users.js +1 -2
- package/dist/warehouses.js +1 -2
- package/package.json +5 -3
package/dist/api.js
CHANGED
package/dist/bag.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
package/dist/branch.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
package/dist/company.js
CHANGED
package/dist/countries.js
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
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 = [
|
|
1
|
+
export const Countries = [
|
|
6
2
|
{
|
|
7
3
|
id: 'HN',
|
|
8
4
|
name: 'Honduras',
|
|
@@ -28,7 +24,7 @@ exports.Countries = [
|
|
|
28
24
|
ccy: 'USD'
|
|
29
25
|
},
|
|
30
26
|
];
|
|
31
|
-
|
|
27
|
+
export const Regions = {
|
|
32
28
|
HN: [
|
|
33
29
|
{
|
|
34
30
|
id: "AT",
|
|
@@ -185,8 +181,8 @@ exports.Regions = {
|
|
|
185
181
|
],
|
|
186
182
|
CN: []
|
|
187
183
|
};
|
|
188
|
-
function getRegionsByCountryId(id) {
|
|
189
|
-
return
|
|
184
|
+
export function getRegionsByCountryId(id) {
|
|
185
|
+
return Regions[id];
|
|
190
186
|
}
|
|
191
187
|
/**
|
|
192
188
|
* Usado en el atributo [compareWith] de los mat-select's
|
|
@@ -195,7 +191,5 @@ function getRegionsByCountryId(id) {
|
|
|
195
191
|
* @param c2
|
|
196
192
|
* @returns
|
|
197
193
|
*/
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
var compareRegions = function (r1, r2) { return r1 && r2 ? r1.id === r2.id : false; };
|
|
201
|
-
exports.compareRegions = compareRegions;
|
|
194
|
+
export const compareCountries = (c1, c2) => c1 && c2 ? c1.id === c2.id : false;
|
|
195
|
+
export const compareRegions = (r1, r2) => r1 && r2 ? r1.id === r2.id : false;
|
package/dist/index.js
CHANGED
|
@@ -1,33 +1,17 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// 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 });
|
|
18
2
|
/** ID único para un usuario */
|
|
19
3
|
// export type UserId = string & { __brand: 'UserId' };
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
4
|
+
export * from './api';
|
|
5
|
+
export * from './bag';
|
|
6
|
+
export * from './branch';
|
|
7
|
+
export * from './countries';
|
|
8
|
+
export * from './orders';
|
|
9
|
+
export * from './stats';
|
|
10
|
+
export * from './payments';
|
|
11
|
+
export * from './product-category';
|
|
12
|
+
export * from './products';
|
|
13
|
+
export * from './replenishment';
|
|
14
|
+
export * from './users';
|
|
15
|
+
export * from './warehouses';
|
|
16
|
+
export * from './translations';
|
|
17
|
+
export * from './company';
|
package/dist/orders.js
CHANGED
package/dist/org/event.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
package/dist/org/index.js
CHANGED
|
@@ -1,18 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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);
|
|
1
|
+
export * from './radar';
|
|
2
|
+
export * from './event';
|
package/dist/org/radar.js
CHANGED
package/dist/payments.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
package/dist/product-category.js
CHANGED
package/dist/products.js
CHANGED
package/dist/replenishment.js
CHANGED
package/dist/stats.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
package/dist/translations.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
package/dist/users.js
CHANGED
package/dist/warehouses.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nicefer/types",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.170",
|
|
4
4
|
"description": "Tipos compartidos para Nicefer",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/types/index.d.ts",
|
|
@@ -9,10 +9,12 @@
|
|
|
9
9
|
],
|
|
10
10
|
"exports": {
|
|
11
11
|
".": {
|
|
12
|
-
"
|
|
12
|
+
"import": "./dist/index.js",
|
|
13
|
+
"types": "./dist/index.d.ts"
|
|
13
14
|
},
|
|
14
15
|
"./org": {
|
|
15
|
-
"
|
|
16
|
+
"import": "./dist/org/index.js",
|
|
17
|
+
"types": "./dist/org/index.d.ts"
|
|
16
18
|
}
|
|
17
19
|
},
|
|
18
20
|
"scripts": {
|