@riocrypto/common 1.0.527 → 1.0.529

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.
@@ -4,12 +4,14 @@ exports.MissingKYCApprovalError = void 0;
4
4
  const custom_error_1 = require("./custom-error");
5
5
  class MissingKYCApprovalError extends custom_error_1.CustomError {
6
6
  constructor() {
7
- super("KYC status is not approved");
7
+ super("KYC status is not approved for this user");
8
8
  this.statusCode = 401;
9
9
  Object.setPrototypeOf(this, MissingKYCApprovalError.prototype);
10
10
  }
11
11
  serializeErrors() {
12
- return [{ message: "KYC status is not approved" }];
12
+ return [
13
+ { message: "KYC status is not approved is not approved for this user" },
14
+ ];
13
15
  }
14
16
  }
15
17
  exports.MissingKYCApprovalError = MissingKYCApprovalError;
@@ -10,7 +10,7 @@ class NotBrokerError extends custom_error_1.CustomError {
10
10
  }
11
11
  serializeErrors() {
12
12
  return [
13
- { message: "To call this endpoint as a user, you must be a broker" },
13
+ { message: "To do this operation as a user, you must be a broker" },
14
14
  ];
15
15
  }
16
16
  }
@@ -1,256 +1,61 @@
1
1
  "use strict";
2
- // Currently only has countries supported
3
- // by Wyre
4
2
  Object.defineProperty(exports, "__esModule", { value: true });
5
3
  exports.Country = void 0;
6
4
  var Country;
7
5
  (function (Country) {
8
- // Afghanistan = "AF",
9
- // AlandIslands = "AX",
10
- // Albania = "AL",
11
6
  Country["Algeria"] = "DZ";
12
- // AmericanSamoa = "AS",
13
- // Andorra = "AD",
14
- // Angola = "AO",
15
- // Anguilla = "AI",
16
- // Antarctica = "AQ",
17
- // AntiguaAndBarbuda = "AG",
18
7
  Country["Argentina"] = "AR";
19
- // Armenia = "AM",
20
- // Aruba = "AW",
21
8
  Country["Australia"] = "AU";
22
9
  Country["Austria"] = "AT";
23
- // Azerbaijan = "AZ",
24
- // Bahamas = "BS",
25
- // Bahrain = "BH",
26
- // Bangladesh = "BD",
27
- // Barbados = "BB",
28
- // Belarus = "BY",
29
10
  Country["Belgium"] = "BE";
30
- // Belize = "BZ",
31
- // Benin = "BJ",
32
- // Bermuda = "BM",
33
- // Bhutan = "BT",
34
11
  Country["Bolivia"] = "BO";
35
- // BonaireSintEustatiusSaba = "BQ",
36
- // BosniaAndHerzegovina = "BA",
37
- // Botswana = "BW",
38
- // BouvetIsland = "BV",
39
12
  Country["Brazil"] = "BR";
40
- // BritishIndianOceanTerritory = "IO",
41
- // BruneiDarussalam = "BN",
42
- // Bulgaria = "BG",
43
- // BurkinaFaso = "BF",
44
- // Burundi = "BI",
45
- // Cambodia = "KH",
46
- // Cameroon = "CM",
47
13
  Country["Canada"] = "CA";
48
- // CapeVerde = "CV",
49
- // CaymanIslands = "KY",
50
- // CentralAfricanRepublic = "CF",
51
- // Chad = "TD",
52
14
  Country["Chile"] = "CL";
53
- // China = "CN",
54
- // ChristmasIsland = "CX",
55
- // CocosKeelingIslands = "CC",
56
15
  Country["Colombia"] = "CO";
57
- // Comoros = "KM",
58
- // Congo = "CG",
59
- // CongoDemocraticRepublic = "CD",
60
- // CookIslands = "CK",
61
16
  Country["CostaRica"] = "CR";
62
- // CoteDIvoire = "CI",
63
- // Croatia = "HR",
64
- // Cuba = "CU",
65
- // Curaçao = "CW",
66
17
  Country["Cyprus"] = "CY";
67
18
  Country["CzechRepublic"] = "CZ";
68
19
  Country["Denmark"] = "DK";
69
- // Djibouti = "DJ",
70
- // Dominica = "DM",
71
20
  Country["DominicanRepublic"] = "DO";
72
- // Ecuador = "EC",
73
- // Egypt = "EG",
74
- // ElSalvador = "SV",
75
- // EquatorialGuinea = "GQ",
76
- // Eritrea = "ER",
77
21
  Country["Estonia"] = "EE";
78
- // Ethiopia = "ET",
79
- // FalklandIslands = "FK",
80
- // FaroeIslands = "FO",
81
22
  Country["Fiji"] = "FJ";
82
- // Finland = "FI",
83
23
  Country["France"] = "FR";
84
- // FrenchGuiana = "GF",
85
- // FrenchPolynesia = "PF",
86
- // FrenchSouthernTerritories = "TF",
87
- // Gabon = "GA",
88
- // Gambia = "GM",
89
- // Georgia = "GE",
90
24
  Country["Germany"] = "DE";
91
- // Ghana = "GH",
92
- // Gibraltar = "GI",
93
25
  Country["Greece"] = "GR";
94
- // Greenland = "GL",
95
- // Grenada = "GD",
96
- // Guadeloupe = "GP",
97
- // Guam = "GU",
98
- // Guatemala = "GT",
99
- // Guernsey = "GG",
100
- // Guinea = "GN",
101
- // GuineaBissau = "GW",
102
- // Guyana = "GY",
103
- // Haiti = "HT",
104
- // HeardIslandMcdonaldIslands = "HM",
105
- // HolySeeVaticanCityState = "VA",
106
- // Honduras = "HN",
107
26
  Country["HongKong"] = "HK";
108
- // Hungary = "HU",
109
27
  Country["Iceland"] = "IS";
110
28
  Country["India"] = "IN";
111
29
  Country["Indonesia"] = "ID";
112
- // Iran = "IR",
113
- // Iraq = "IQ",
114
30
  Country["Ireland"] = "IE";
115
- // IsleOfMan = "IM",
116
31
  Country["Israel"] = "IL";
117
32
  Country["Italy"] = "IT";
118
- // Jamaica = "JM",
119
33
  Country["Japan"] = "JP";
120
- // Jersey = "JE",
121
- // Jordan = "JO",
122
- // Kazakhstan = "KZ",
123
- // Kenya = "KE",
124
- // Kiribati = "KI",
125
34
  Country["Korea"] = "KR";
126
- // KoreaDemocraticPeoplesRepublic = "KP",
127
- // Kuwait = "KW",
128
- // Kyrgyzstan = "KG",
129
- // LaoPeoplesDemocraticRepublic = "LA",
130
35
  Country["Latvia"] = "LV";
131
- // Lebanon = "LB",
132
- // Lesotho = "LS",
133
- // Liberia = "LR",
134
- // LibyanArabJamahiriya = "LY",
135
- // Liechtenstein = "LI",
136
36
  Country["Lithuania"] = "LT";
137
37
  Country["Luxembourg"] = "LU";
138
- // Macao = "MO",
139
- // Macedonia = "MK",
140
- // Madagascar = "MG",
141
- // Malawi = "MW",
142
38
  Country["Malaysia"] = "MY";
143
- // Maldives = "MV",
144
- // Mali = "ML",
145
- // Malta = "MT",
146
- // MarshallIslands = "MH",
147
- // Martinique = "MQ",
148
- // Mauritania = "MR",
149
- // Mauritius = "MU",
150
- // Mayotte = "YT",
151
39
  Country["Mexico"] = "MX";
152
- // Micronesia = "FM",
153
- // Moldova = "MD",
154
- // Monaco = "MC",
155
- // Mongolia = "MN",
156
- // Montenegro = "ME",
157
- // Montserrat = "MS",
158
- // Morocco = "MA",
159
- // Mozambique = "MZ",
160
- // Myanmar = "MM",
161
- // Namibia = "NA",
162
- // Nauru = "NR",
163
40
  Country["Nepal"] = "NP";
164
41
  Country["Netherlands"] = "NL";
165
- // NewCaledonia = "NC",
166
42
  Country["NewZealand"] = "NZ";
167
- // Nicaragua = "NI",
168
- // Niger = "NE",
169
- // Nigeria = "NG",
170
- // Niue = "NU",
171
- // NorfolkIsland = "NF",
172
- // NorthernMarianaIslands = "MP",
173
43
  Country["Norway"] = "NO";
174
- // Oman = "OM",
175
- // Pakistan = "PK",
176
- // Palau = "PW",
177
- // PalestinianTerritory = "PS",
178
- // Panama = "PA",
179
- // PapuaNewGuinea = "PG",
180
44
  Country["Paraguay"] = "PY";
181
45
  Country["Peru"] = "PE";
182
46
  Country["Philippines"] = "PH";
183
- // Pitcairn = "PN",
184
47
  Country["Poland"] = "PL";
185
48
  Country["Portugal"] = "PT";
186
- // PuertoRico = "PR",
187
- // Qatar = "QA",
188
- // Reunion = "RE",
189
- // Romania = "RO",
190
- // RussianFederation = "RU",
191
- // Rwanda = "RW",
192
- // SaintBarthelemy = "BL",
193
- // SaintHelena = "SH",
194
- // SaintKittsAndNevis = "KN",
195
- // SaintLucia = "LC",
196
- // SaintMartin = "MF",
197
- // SaintPierreAndMiquelon = "PM",
198
- // SaintVincentAndGrenadines = "VC",
199
- // Samoa = "WS",
200
- // SanMarino = "SM",
201
- // SaoTomeAndPrincipe = "ST",
202
- // SaudiArabia = "SA",
203
- // Senegal = "SN",
204
- // Serbia = "RS",
205
- // Seychelles = "SC",
206
- // SierraLeone = "SL",
207
49
  Country["Singapore"] = "SG";
208
- // SintMaarten = "SX",
209
50
  Country["Slovakia"] = "SK";
210
51
  Country["Slovenia"] = "SI";
211
- // SolomonIslands = "SB",
212
- // Somalia = "SO",
213
52
  Country["SouthAfrica"] = "ZA";
214
- // SouthGeorgiaAndSandwichIsl = "GS",
215
- // SouthSudan = "SS",
216
53
  Country["Spain"] = "ES";
217
- // SriLanka = "LK",
218
- // Sudan = "SD",
219
- // Suriname = "SR",
220
- // SvalbardAndJanMayen = "SJ",
221
- // Swaziland = "SZ",
222
54
  Country["Sweden"] = "SE";
223
55
  Country["Switzerland"] = "CH";
224
- // SyrianArabRepublic = "SY",
225
- // Taiwan = "TW",
226
- // Tajikistan = "TJ",
227
56
  Country["Tanzania"] = "TZ";
228
57
  Country["Thailand"] = "TH";
229
- // TimorLeste = "TL",
230
- // Togo = "TG",
231
- // Tokelau = "TK",
232
- // Tonga = "TO",
233
- // TrinidadAndTobago = "TT",
234
- // Tunisia = "TN",
235
58
  Country["Turkey"] = "TR";
236
- // Turkmenistan = "TM",
237
- // TurksAndCaicosIslands = "TC",
238
- // Tuvalu = "TV",
239
- // Uganda = "UG",
240
- // Ukraine = "UA",
241
- // UnitedArabEmirates = "AE",
242
59
  Country["UnitedKingdom"] = "GB";
243
- // UnitedStatesOutlyingIslands = "UM",
244
- // Uruguay = "UY",
245
- // Uzbekistan = "UZ",
246
- // Vanuatu = "VU",
247
- // Venezuela = "VE",
248
60
  Country["Vietnam"] = "VN";
249
- // VirginIslandsBritish = "VG",
250
- // VirginIslandsUS = "VI",
251
- // WallisAndFutuna = "WF",
252
- // WesternSahara = "EH",
253
- // Yemen = "YE",
254
- // Zambia = "ZM",
255
- // Zimbabwe = "ZW",
256
61
  })(Country = exports.Country || (exports.Country = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.527",
3
+ "version": "1.0.529",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",