@riocrypto/common 1.0.920 → 1.0.922

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.
@@ -0,0 +1,266 @@
1
+ export declare const MexicanBanks: {
2
+ BANAMEX: {
3
+ bitsoCode: string;
4
+ };
5
+ "BBVA BANCOMER": {
6
+ bitsoCode: string;
7
+ };
8
+ SANTANDER: {
9
+ bitsoCode: string;
10
+ };
11
+ HSBC: {
12
+ bitsoCode: string;
13
+ };
14
+ BAJIO: {
15
+ bitsoCode: string;
16
+ };
17
+ INBURSA: {
18
+ bitsoCode: string;
19
+ };
20
+ MIFEL: {
21
+ bitsoCode: string;
22
+ };
23
+ SCOTIABANK: {
24
+ bitsoCode: string;
25
+ };
26
+ BANREGIO: {
27
+ bitsoCode: string;
28
+ };
29
+ BANSI: {
30
+ bitsoCode: string;
31
+ };
32
+ BANORTE: {
33
+ bitsoCode: string;
34
+ };
35
+ "ACCENDO BANCO": {
36
+ bitsoCode: string;
37
+ };
38
+ "AMERICAN EXPRESS": {
39
+ bitsoCode: string;
40
+ };
41
+ "BANK OF AMERICA": {
42
+ bitsoCode: string;
43
+ };
44
+ MUFG: {
45
+ bitsoCode: string;
46
+ };
47
+ "JP MORGAN": {
48
+ bitsoCode: string;
49
+ };
50
+ BMONEX: {
51
+ bitsoCode: string;
52
+ };
53
+ "VE POR MAS": {
54
+ bitsoCode: string;
55
+ };
56
+ DEUTSCHE: {
57
+ bitsoCode: string;
58
+ };
59
+ "CREDIT SUISSE": {
60
+ bitsoCode: string;
61
+ };
62
+ AZTECA: {
63
+ bitsoCode: string;
64
+ };
65
+ AUTOFIN: {
66
+ bitsoCode: string;
67
+ };
68
+ BARCLAYS: {
69
+ bitsoCode: string;
70
+ };
71
+ COMPARTAMOS: {
72
+ bitsoCode: string;
73
+ };
74
+ "MULTIVA BANCO": {
75
+ bitsoCode: string;
76
+ };
77
+ ACTINVER: {
78
+ bitsoCode: string;
79
+ };
80
+ "INTERCAM BANCO": {
81
+ bitsoCode: string;
82
+ };
83
+ BANCOPPEL: {
84
+ bitsoCode: string;
85
+ };
86
+ "ABC CAPITAL": {
87
+ bitsoCode: string;
88
+ };
89
+ CONSUBANCO: {
90
+ bitsoCode: string;
91
+ };
92
+ VOLKSWAGEN: {
93
+ bitsoCode: string;
94
+ };
95
+ CIBANCO: {
96
+ bitsoCode: string;
97
+ };
98
+ BBASE: {
99
+ bitsoCode: string;
100
+ };
101
+ BANKAOOL: {
102
+ bitsoCode: string;
103
+ };
104
+ PAGATODO: {
105
+ bitsoCode: string;
106
+ };
107
+ INMOBILIARIO: {
108
+ bitsoCode: string;
109
+ };
110
+ DONDE: {
111
+ bitsoCode: string;
112
+ };
113
+ BANCREA: {
114
+ bitsoCode: string;
115
+ };
116
+ ICBC: {
117
+ bitsoCode: string;
118
+ };
119
+ SABADELL: {
120
+ bitsoCode: string;
121
+ };
122
+ SHINHAN: {
123
+ bitsoCode: string;
124
+ };
125
+ "MIZUHO BANK": {
126
+ bitsoCode: string;
127
+ };
128
+ "BANCO S3": {
129
+ bitsoCode: string;
130
+ };
131
+ MONEXCB: {
132
+ bitsoCode: string;
133
+ };
134
+ GBM: {
135
+ bitsoCode: string;
136
+ };
137
+ MASARI: {
138
+ bitsoCode: string;
139
+ };
140
+ VALUE: {
141
+ bitsoCode: string;
142
+ };
143
+ ESTRUCTURADORES: {
144
+ bitsoCode: string;
145
+ };
146
+ VECTOR: {
147
+ bitsoCode: string;
148
+ };
149
+ "MULTIVA CBOLSA": {
150
+ bitsoCode: string;
151
+ };
152
+ FINAMEX: {
153
+ bitsoCode: string;
154
+ };
155
+ VALMEX: {
156
+ bitsoCode: string;
157
+ };
158
+ PROFUTURO: {
159
+ bitsoCode: string;
160
+ };
161
+ "CB INTERCAM": {
162
+ bitsoCode: string;
163
+ };
164
+ "CI BOLSA": {
165
+ bitsoCode: string;
166
+ };
167
+ FINCOMUN: {
168
+ bitsoCode: string;
169
+ };
170
+ "HDI SEGUROS": {
171
+ bitsoCode: string;
172
+ };
173
+ REFORMA: {
174
+ bitsoCode: string;
175
+ };
176
+ STP: {
177
+ bitsoCode: string;
178
+ };
179
+ EVERCORE: {
180
+ bitsoCode: string;
181
+ };
182
+ CREDICAPITAL: {
183
+ bitsoCode: string;
184
+ };
185
+ KUSPIT: {
186
+ bitsoCode: string;
187
+ };
188
+ UNAGRA: {
189
+ bitsoCode: string;
190
+ };
191
+ "ASP INTEGRA OPC": {
192
+ bitsoCode: string;
193
+ };
194
+ LIBERTAD: {
195
+ bitsoCode: string;
196
+ };
197
+ "CAJA POP MEXICA": {
198
+ bitsoCode: string;
199
+ };
200
+ "CRISTOBAL COLON": {
201
+ bitsoCode: string;
202
+ };
203
+ "CAJA TELEFONIST": {
204
+ bitsoCode: string;
205
+ };
206
+ "FONDO (FIRA)": {
207
+ bitsoCode: string;
208
+ };
209
+ INVERCAP: {
210
+ bitsoCode: string;
211
+ };
212
+ FOMPED: {
213
+ bitsoCode: string;
214
+ };
215
+ SANTANDER2: {
216
+ bitsoCode: string;
217
+ };
218
+ CLS: {
219
+ bitsoCode: string;
220
+ };
221
+ INDEVAL: {
222
+ bitsoCode: string;
223
+ };
224
+ BBVA_BANCOMER2: {
225
+ bitsoCode: string;
226
+ };
227
+ HSBC2: {
228
+ bitsoCode: string;
229
+ };
230
+ ZURICH: {
231
+ bitsoCode: string;
232
+ };
233
+ ARCUS: {
234
+ bitsoCode: string;
235
+ };
236
+ "NU MEXICO": {
237
+ bitsoCode: string;
238
+ };
239
+ BABIEN: {
240
+ bitsoCode: string;
241
+ };
242
+ "BANOBRAS - Updated Name ": {
243
+ bitsoCode: string;
244
+ };
245
+ "BANCOMEXT - Updated": {
246
+ bitsoCode: string;
247
+ };
248
+ BANJERCITO: {
249
+ bitsoCode: string;
250
+ };
251
+ "BANCO COVALTO": {
252
+ bitsoCode: string;
253
+ };
254
+ OPM: {
255
+ bitsoCode: string;
256
+ };
257
+ AFIRME: {
258
+ bitsoCode: string;
259
+ };
260
+ "INVEX ": {
261
+ bitsoCode: string;
262
+ };
263
+ "HIPOTECARIA FED": {
264
+ bitsoCode: string;
265
+ };
266
+ };
@@ -0,0 +1,269 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MexicanBanks = void 0;
4
+ exports.MexicanBanks = {
5
+ BANAMEX: {
6
+ bitsoCode: "40002",
7
+ },
8
+ "BBVA BANCOMER": {
9
+ bitsoCode: "40012",
10
+ },
11
+ SANTANDER: {
12
+ bitsoCode: "40014",
13
+ },
14
+ HSBC: {
15
+ bitsoCode: "40021",
16
+ },
17
+ BAJIO: {
18
+ bitsoCode: "40030",
19
+ },
20
+ INBURSA: {
21
+ bitsoCode: "40036",
22
+ },
23
+ MIFEL: {
24
+ bitsoCode: "40042",
25
+ },
26
+ SCOTIABANK: {
27
+ bitsoCode: "40044",
28
+ },
29
+ BANREGIO: {
30
+ bitsoCode: "40058",
31
+ },
32
+ BANSI: {
33
+ bitsoCode: "40060",
34
+ },
35
+ BANORTE: {
36
+ bitsoCode: "40072",
37
+ },
38
+ "ACCENDO BANCO": {
39
+ bitsoCode: "40102",
40
+ },
41
+ "AMERICAN EXPRESS": {
42
+ bitsoCode: "40103",
43
+ },
44
+ "BANK OF AMERICA": {
45
+ bitsoCode: "40106",
46
+ },
47
+ MUFG: {
48
+ bitsoCode: "40108",
49
+ },
50
+ "JP MORGAN": {
51
+ bitsoCode: "40110",
52
+ },
53
+ BMONEX: {
54
+ bitsoCode: "40112",
55
+ },
56
+ "VE POR MAS": {
57
+ bitsoCode: "40113",
58
+ },
59
+ DEUTSCHE: {
60
+ bitsoCode: "40124",
61
+ },
62
+ "CREDIT SUISSE": {
63
+ bitsoCode: "40126",
64
+ },
65
+ AZTECA: {
66
+ bitsoCode: "40127",
67
+ },
68
+ AUTOFIN: {
69
+ bitsoCode: "40128",
70
+ },
71
+ BARCLAYS: {
72
+ bitsoCode: "40129",
73
+ },
74
+ COMPARTAMOS: {
75
+ bitsoCode: "40130",
76
+ },
77
+ "MULTIVA BANCO": {
78
+ bitsoCode: "40132",
79
+ },
80
+ ACTINVER: {
81
+ bitsoCode: "40133",
82
+ },
83
+ "INTERCAM BANCO": {
84
+ bitsoCode: "40136",
85
+ },
86
+ BANCOPPEL: {
87
+ bitsoCode: "40137",
88
+ },
89
+ "ABC CAPITAL": {
90
+ bitsoCode: "40138",
91
+ },
92
+ CONSUBANCO: {
93
+ bitsoCode: "40140",
94
+ },
95
+ VOLKSWAGEN: {
96
+ bitsoCode: "40141",
97
+ },
98
+ CIBANCO: {
99
+ bitsoCode: "40143",
100
+ },
101
+ BBASE: {
102
+ bitsoCode: "40145",
103
+ },
104
+ BANKAOOL: {
105
+ bitsoCode: "40147",
106
+ },
107
+ PAGATODO: {
108
+ bitsoCode: "40148",
109
+ },
110
+ INMOBILIARIO: {
111
+ bitsoCode: "40150",
112
+ },
113
+ DONDE: {
114
+ bitsoCode: "40151",
115
+ },
116
+ BANCREA: {
117
+ bitsoCode: "40152",
118
+ },
119
+ ICBC: {
120
+ bitsoCode: "40155",
121
+ },
122
+ SABADELL: {
123
+ bitsoCode: "40156",
124
+ },
125
+ SHINHAN: {
126
+ bitsoCode: "40157",
127
+ },
128
+ "MIZUHO BANK": {
129
+ bitsoCode: "40158",
130
+ },
131
+ "BANCO S3": {
132
+ bitsoCode: "40160",
133
+ },
134
+ MONEXCB: {
135
+ bitsoCode: "90600",
136
+ },
137
+ GBM: {
138
+ bitsoCode: "90601",
139
+ },
140
+ MASARI: {
141
+ bitsoCode: "90602",
142
+ },
143
+ VALUE: {
144
+ bitsoCode: "90605",
145
+ },
146
+ ESTRUCTURADORES: {
147
+ bitsoCode: "90606",
148
+ },
149
+ VECTOR: {
150
+ bitsoCode: "90608",
151
+ },
152
+ "MULTIVA CBOLSA": {
153
+ bitsoCode: "90613",
154
+ },
155
+ FINAMEX: {
156
+ bitsoCode: "90616",
157
+ },
158
+ VALMEX: {
159
+ bitsoCode: "90617",
160
+ },
161
+ PROFUTURO: {
162
+ bitsoCode: "90620",
163
+ },
164
+ "CB INTERCAM": {
165
+ bitsoCode: "90630",
166
+ },
167
+ "CI BOLSA": {
168
+ bitsoCode: "90631",
169
+ },
170
+ FINCOMUN: {
171
+ bitsoCode: "90634",
172
+ },
173
+ "HDI SEGUROS": {
174
+ bitsoCode: "90636",
175
+ },
176
+ REFORMA: {
177
+ bitsoCode: "90642",
178
+ },
179
+ STP: {
180
+ bitsoCode: "90646",
181
+ },
182
+ EVERCORE: {
183
+ bitsoCode: "90648",
184
+ },
185
+ CREDICAPITAL: {
186
+ bitsoCode: "90652",
187
+ },
188
+ KUSPIT: {
189
+ bitsoCode: "90653",
190
+ },
191
+ UNAGRA: {
192
+ bitsoCode: "90656",
193
+ },
194
+ "ASP INTEGRA OPC": {
195
+ bitsoCode: "90659",
196
+ },
197
+ LIBERTAD: {
198
+ bitsoCode: "90670",
199
+ },
200
+ "CAJA POP MEXICA": {
201
+ bitsoCode: "90677",
202
+ },
203
+ "CRISTOBAL COLON": {
204
+ bitsoCode: "90680",
205
+ },
206
+ "CAJA TELEFONIST": {
207
+ bitsoCode: "90683",
208
+ },
209
+ "FONDO (FIRA)": {
210
+ bitsoCode: "90685",
211
+ },
212
+ INVERCAP: {
213
+ bitsoCode: "90686",
214
+ },
215
+ FOMPED: {
216
+ bitsoCode: "90689",
217
+ },
218
+ SANTANDER2: {
219
+ bitsoCode: "90814",
220
+ },
221
+ CLS: {
222
+ bitsoCode: "90901",
223
+ },
224
+ INDEVAL: {
225
+ bitsoCode: "90902",
226
+ },
227
+ BBVA_BANCOMER2: {
228
+ bitsoCode: "91812",
229
+ },
230
+ HSBC2: {
231
+ bitsoCode: "91821",
232
+ },
233
+ ZURICH: {
234
+ bitsoCode: "90627",
235
+ },
236
+ ARCUS: {
237
+ bitsoCode: "90706",
238
+ },
239
+ "NU MEXICO": {
240
+ bitsoCode: "90638",
241
+ },
242
+ BABIEN: {
243
+ bitsoCode: "37166",
244
+ },
245
+ "BANOBRAS - Updated Name ": {
246
+ bitsoCode: "37009",
247
+ },
248
+ "BANCOMEXT - Updated": {
249
+ bitsoCode: "37006",
250
+ },
251
+ BANJERCITO: {
252
+ bitsoCode: "37019",
253
+ },
254
+ "BANCO COVALTO": {
255
+ bitsoCode: "40154",
256
+ },
257
+ OPM: {
258
+ bitsoCode: "90684",
259
+ },
260
+ AFIRME: {
261
+ bitsoCode: "40062",
262
+ },
263
+ "INVEX ": {
264
+ bitsoCode: "40059",
265
+ },
266
+ "HIPOTECARIA FED": {
267
+ bitsoCode: "37168",
268
+ },
269
+ };
@@ -19,8 +19,14 @@ class Listener {
19
19
  const subscription = this.client.subscribe(this.subject, this.queueGroupName, this.subscriptionOptions());
20
20
  subscription.on("message", (msg) => {
21
21
  console.log(`Message received: ${this.subject} / ${this.queueGroupName}`);
22
- const parsedMessage = this.parseMessage(msg);
23
- this.onMessage(parsedMessage, msg);
22
+ if (msg.getTimestamp() >= this.listenerStartTime) {
23
+ const parsedMessage = this.parseMessage(msg);
24
+ this.onMessage(parsedMessage, msg);
25
+ }
26
+ else {
27
+ console.log("Ignoring old message");
28
+ msg.ack;
29
+ }
24
30
  });
25
31
  }
26
32
  parseMessage(msg) {
package/build/index.d.ts CHANGED
@@ -183,3 +183,4 @@ export * from "./helpers/number-with-commas";
183
183
  export * from "./clients/rio-client";
184
184
  export * from "./clients/rio-admin-client";
185
185
  export * from "./constants/mexico-fiscal-regimens";
186
+ export * from "./constants/mexican-banks";
package/build/index.js CHANGED
@@ -199,3 +199,4 @@ __exportStar(require("./helpers/number-with-commas"), exports);
199
199
  __exportStar(require("./clients/rio-client"), exports);
200
200
  __exportStar(require("./clients/rio-admin-client"), exports);
201
201
  __exportStar(require("./constants/mexico-fiscal-regimens"), exports);
202
+ __exportStar(require("./constants/mexican-banks"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.920",
3
+ "version": "1.0.922",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",