@nicefer/types 1.0.171 → 1.0.172

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 CHANGED
@@ -1,4 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
1
  ;
4
2
  ;
3
+ export {};
package/dist/bag.js CHANGED
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
package/dist/branch.js CHANGED
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
package/dist/company.js CHANGED
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
1
  ;
2
+ export {};
package/dist/countries.js CHANGED
@@ -1,8 +1,4 @@
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 = [
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
- exports.Regions = {
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 exports.Regions[id];
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
- 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;
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
- __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);
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
@@ -1,5 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
1
  ;
4
2
  ;
5
3
  ;
@@ -8,3 +6,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
8
6
  ;
9
7
  ;
10
8
  ;
9
+ export {};
package/dist/org/event.js CHANGED
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
package/dist/org/index.js CHANGED
@@ -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);
1
+ export * from './radar';
2
+ export * from './event';
package/dist/org/radar.js CHANGED
@@ -1,4 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
1
  ;
4
2
  ;
3
+ export {};
package/dist/payments.js CHANGED
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
1
  ;
2
+ export {};
package/dist/products.js CHANGED
@@ -1,7 +1,6 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
1
  ;
4
2
  ;
5
3
  ;
6
4
  ;
7
5
  ;
6
+ export {};
@@ -1,6 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
1
  ;
4
2
  ;
5
3
  ;
6
4
  ;
5
+ export {};
package/dist/stats.js CHANGED
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
package/dist/users.js CHANGED
@@ -1,4 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
1
  ;
4
2
  ;
3
+ export {};
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
1
  ;
2
+ export {};
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@nicefer/types",
3
- "version": "1.0.171",
3
+ "version": "1.0.172",
4
4
  "description": "Tipos compartidos para Nicefer",
5
5
  "main": "./dist/index.js",
6
- "types": "./dist/types/index.d.ts",
6
+ "types": "./dist/index.d.ts",
7
7
  "files": [
8
8
  "dist"
9
9
  ],
@@ -25,7 +25,7 @@
25
25
  "keywords": [],
26
26
  "author": "Alejandro Villatoro",
27
27
  "license": "ISC",
28
- "type": "commonjs",
28
+ "type": "module",
29
29
  "devDependencies": {
30
30
  "@stripe/stripe-js": "^7.8.0",
31
31
  "typescript": "^5.9.2"