@nicefer/types 1.0.98 → 1.0.100

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 CHANGED
@@ -19,6 +19,12 @@ exports.Countries = [
19
19
  id: 'US',
20
20
  name: 'Estados Unidos',
21
21
  code: 1,
22
+ ccy: 'USD',
23
+ },
24
+ {
25
+ id: 'CN',
26
+ name: 'China',
27
+ code: 56,
22
28
  ccy: 'USD'
23
29
  },
24
30
  ];
@@ -176,7 +182,8 @@ exports.Regions = {
176
182
  { id: "SA", name: "Santa Ana" },
177
183
  { id: "SO", name: "Sonsonate" },
178
184
  { id: "US", name: "Usulutan" }
179
- ]
185
+ ],
186
+ CN: []
180
187
  };
181
188
  function getRegionsByCountryId(id) {
182
189
  return exports.Regions[id];
@@ -1,6 +1,6 @@
1
1
  import { PaymentInDB } from "./payments";
2
2
  export interface Country {
3
- id: 'HN' | 'US' | 'SV';
3
+ id: 'HN' | 'US' | 'SV' | 'CN';
4
4
  name: string;
5
5
  ccy: PaymentInDB['ccy'];
6
6
  code: number | null | undefined;
@@ -17,9 +17,7 @@ export interface Region {
17
17
  }
18
18
  export declare const Countries: Country[];
19
19
  export declare const Regions: {
20
- HN: Region[];
21
- US: Region[];
22
- SV: Region[];
20
+ [countryId in Country['id']]: Region[];
23
21
  };
24
22
  export declare function getRegionsByCountryId(id: 'HN' | 'US' | 'SV'): Region[] | any[];
25
23
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nicefer/types",
3
- "version": "1.0.98",
3
+ "version": "1.0.100",
4
4
  "description": "Tipos compartidos para Nicefer",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",