@mbanq/core-sdk-js 0.3.0 → 0.4.0

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.
@@ -1,6 +1,569 @@
1
+ import z__default, { z } from 'zod';
1
2
  import { DocumentNode } from 'graphql';
2
3
  import { AxiosInstance } from 'axios';
3
- import z__default, { z } from 'zod';
4
+
5
+ declare const RecipientSchema: z.ZodObject<{
6
+ id: z.ZodNumber;
7
+ clientId: z.ZodNumber;
8
+ nickName: z.ZodString;
9
+ firstName: z.ZodString;
10
+ lastName: z.ZodString;
11
+ businessName: z.ZodString;
12
+ emailAddress: z.ZodString;
13
+ phoneNumber: z.ZodString;
14
+ recipientType: z.ZodString;
15
+ paymentRail: z.ZodString;
16
+ isOwnAccount: z.ZodBoolean;
17
+ address: z.ZodObject<{
18
+ line1: z.ZodString;
19
+ line2: z.ZodString;
20
+ city: z.ZodString;
21
+ stateCode: z.ZodString;
22
+ countryCode: z.ZodString;
23
+ postalCode: z.ZodString;
24
+ }, "strip", z.ZodTypeAny, {
25
+ line1: string;
26
+ line2: string;
27
+ stateCode: string;
28
+ countryCode: string;
29
+ postalCode: string;
30
+ city: string;
31
+ }, {
32
+ line1: string;
33
+ line2: string;
34
+ stateCode: string;
35
+ countryCode: string;
36
+ postalCode: string;
37
+ city: string;
38
+ }>;
39
+ accountDetailsData: z.ZodObject<{
40
+ accountNumber: z.ZodString;
41
+ bankInformation: z.ZodObject<{
42
+ routingNumber: z.ZodString;
43
+ swiftCode: z.ZodString;
44
+ }, "strip", z.ZodTypeAny, {
45
+ routingNumber: string;
46
+ swiftCode: string;
47
+ }, {
48
+ routingNumber: string;
49
+ swiftCode: string;
50
+ }>;
51
+ }, "strip", z.ZodTypeAny, {
52
+ accountNumber: string;
53
+ bankInformation: {
54
+ routingNumber: string;
55
+ swiftCode: string;
56
+ };
57
+ }, {
58
+ accountNumber: string;
59
+ bankInformation: {
60
+ routingNumber: string;
61
+ swiftCode: string;
62
+ };
63
+ }>;
64
+ }, "strip", z.ZodTypeAny, {
65
+ clientId: number;
66
+ paymentRail: string;
67
+ recipientType: string;
68
+ address: {
69
+ line1: string;
70
+ line2: string;
71
+ stateCode: string;
72
+ countryCode: string;
73
+ postalCode: string;
74
+ city: string;
75
+ };
76
+ id: number;
77
+ emailAddress: string;
78
+ nickName: string;
79
+ firstName: string;
80
+ lastName: string;
81
+ businessName: string;
82
+ phoneNumber: string;
83
+ isOwnAccount: boolean;
84
+ accountDetailsData: {
85
+ accountNumber: string;
86
+ bankInformation: {
87
+ routingNumber: string;
88
+ swiftCode: string;
89
+ };
90
+ };
91
+ }, {
92
+ clientId: number;
93
+ paymentRail: string;
94
+ recipientType: string;
95
+ address: {
96
+ line1: string;
97
+ line2: string;
98
+ stateCode: string;
99
+ countryCode: string;
100
+ postalCode: string;
101
+ city: string;
102
+ };
103
+ id: number;
104
+ emailAddress: string;
105
+ nickName: string;
106
+ firstName: string;
107
+ lastName: string;
108
+ businessName: string;
109
+ phoneNumber: string;
110
+ isOwnAccount: boolean;
111
+ accountDetailsData: {
112
+ accountNumber: string;
113
+ bankInformation: {
114
+ routingNumber: string;
115
+ swiftCode: string;
116
+ };
117
+ };
118
+ }>;
119
+ declare const RecipientsSchema: z.ZodArray<z.ZodObject<{
120
+ id: z.ZodNumber;
121
+ clientId: z.ZodNumber;
122
+ nickName: z.ZodString;
123
+ firstName: z.ZodString;
124
+ lastName: z.ZodString;
125
+ businessName: z.ZodString;
126
+ emailAddress: z.ZodString;
127
+ phoneNumber: z.ZodString;
128
+ recipientType: z.ZodString;
129
+ paymentRail: z.ZodString;
130
+ isOwnAccount: z.ZodBoolean;
131
+ address: z.ZodObject<{
132
+ line1: z.ZodString;
133
+ line2: z.ZodString;
134
+ city: z.ZodString;
135
+ stateCode: z.ZodString;
136
+ countryCode: z.ZodString;
137
+ postalCode: z.ZodString;
138
+ }, "strip", z.ZodTypeAny, {
139
+ line1: string;
140
+ line2: string;
141
+ stateCode: string;
142
+ countryCode: string;
143
+ postalCode: string;
144
+ city: string;
145
+ }, {
146
+ line1: string;
147
+ line2: string;
148
+ stateCode: string;
149
+ countryCode: string;
150
+ postalCode: string;
151
+ city: string;
152
+ }>;
153
+ accountDetailsData: z.ZodObject<{
154
+ accountNumber: z.ZodString;
155
+ bankInformation: z.ZodObject<{
156
+ routingNumber: z.ZodString;
157
+ swiftCode: z.ZodString;
158
+ }, "strip", z.ZodTypeAny, {
159
+ routingNumber: string;
160
+ swiftCode: string;
161
+ }, {
162
+ routingNumber: string;
163
+ swiftCode: string;
164
+ }>;
165
+ }, "strip", z.ZodTypeAny, {
166
+ accountNumber: string;
167
+ bankInformation: {
168
+ routingNumber: string;
169
+ swiftCode: string;
170
+ };
171
+ }, {
172
+ accountNumber: string;
173
+ bankInformation: {
174
+ routingNumber: string;
175
+ swiftCode: string;
176
+ };
177
+ }>;
178
+ }, "strip", z.ZodTypeAny, {
179
+ clientId: number;
180
+ paymentRail: string;
181
+ recipientType: string;
182
+ address: {
183
+ line1: string;
184
+ line2: string;
185
+ stateCode: string;
186
+ countryCode: string;
187
+ postalCode: string;
188
+ city: string;
189
+ };
190
+ id: number;
191
+ emailAddress: string;
192
+ nickName: string;
193
+ firstName: string;
194
+ lastName: string;
195
+ businessName: string;
196
+ phoneNumber: string;
197
+ isOwnAccount: boolean;
198
+ accountDetailsData: {
199
+ accountNumber: string;
200
+ bankInformation: {
201
+ routingNumber: string;
202
+ swiftCode: string;
203
+ };
204
+ };
205
+ }, {
206
+ clientId: number;
207
+ paymentRail: string;
208
+ recipientType: string;
209
+ address: {
210
+ line1: string;
211
+ line2: string;
212
+ stateCode: string;
213
+ countryCode: string;
214
+ postalCode: string;
215
+ city: string;
216
+ };
217
+ id: number;
218
+ emailAddress: string;
219
+ nickName: string;
220
+ firstName: string;
221
+ lastName: string;
222
+ businessName: string;
223
+ phoneNumber: string;
224
+ isOwnAccount: boolean;
225
+ accountDetailsData: {
226
+ accountNumber: string;
227
+ bankInformation: {
228
+ routingNumber: string;
229
+ swiftCode: string;
230
+ };
231
+ };
232
+ }>, "many">;
233
+ declare const RecipientRequestSchema: z.ZodObject<{
234
+ limit: z.ZodOptional<z.ZodNumber>;
235
+ offset: z.ZodOptional<z.ZodNumber>;
236
+ name: z.ZodOptional<z.ZodString>;
237
+ }, "strip", z.ZodTypeAny, {
238
+ limit?: number | undefined;
239
+ offset?: number | undefined;
240
+ name?: string | undefined;
241
+ }, {
242
+ limit?: number | undefined;
243
+ offset?: number | undefined;
244
+ name?: string | undefined;
245
+ }>;
246
+ declare const CreateRecipientRequestSchema: z.ZodEffects<z.ZodObject<{
247
+ nickName: z.ZodString;
248
+ firstName: z.ZodString;
249
+ lastName: z.ZodString;
250
+ businessName: z.ZodOptional<z.ZodString>;
251
+ emailAddress: z.ZodString;
252
+ phoneNumber: z.ZodString;
253
+ recipientType: z.ZodString;
254
+ paymentRail: z.ZodEnum<["ACH", "SAMEDAYACH", "WIRE", "SWIFT", "INTERNAL", "FXPAY", "CARD"]>;
255
+ isOwnAccount: z.ZodOptional<z.ZodBoolean>;
256
+ address: z.ZodOptional<z.ZodObject<{
257
+ line1: z.ZodString;
258
+ line2: z.ZodString;
259
+ city: z.ZodString;
260
+ stateCode: z.ZodString;
261
+ countryCode: z.ZodString;
262
+ postalCode: z.ZodString;
263
+ }, "strip", z.ZodTypeAny, {
264
+ line1: string;
265
+ line2: string;
266
+ stateCode: string;
267
+ countryCode: string;
268
+ postalCode: string;
269
+ city: string;
270
+ }, {
271
+ line1: string;
272
+ line2: string;
273
+ stateCode: string;
274
+ countryCode: string;
275
+ postalCode: string;
276
+ city: string;
277
+ }>>;
278
+ accountDetailsData: z.ZodObject<{
279
+ accountNumber: z.ZodString;
280
+ bankInformation: z.ZodObject<{
281
+ routingNumber: z.ZodString;
282
+ swiftCode: z.ZodString;
283
+ }, "strip", z.ZodTypeAny, {
284
+ routingNumber: string;
285
+ swiftCode: string;
286
+ }, {
287
+ routingNumber: string;
288
+ swiftCode: string;
289
+ }>;
290
+ }, "strip", z.ZodTypeAny, {
291
+ accountNumber: string;
292
+ bankInformation: {
293
+ routingNumber: string;
294
+ swiftCode: string;
295
+ };
296
+ }, {
297
+ accountNumber: string;
298
+ bankInformation: {
299
+ routingNumber: string;
300
+ swiftCode: string;
301
+ };
302
+ }>;
303
+ }, "strip", z.ZodTypeAny, {
304
+ paymentRail: "ACH" | "SAMEDAYACH" | "WIRE" | "SWIFT" | "INTERNAL" | "FXPAY" | "CARD";
305
+ recipientType: string;
306
+ emailAddress: string;
307
+ nickName: string;
308
+ firstName: string;
309
+ lastName: string;
310
+ phoneNumber: string;
311
+ accountDetailsData: {
312
+ accountNumber: string;
313
+ bankInformation: {
314
+ routingNumber: string;
315
+ swiftCode: string;
316
+ };
317
+ };
318
+ address?: {
319
+ line1: string;
320
+ line2: string;
321
+ stateCode: string;
322
+ countryCode: string;
323
+ postalCode: string;
324
+ city: string;
325
+ } | undefined;
326
+ businessName?: string | undefined;
327
+ isOwnAccount?: boolean | undefined;
328
+ }, {
329
+ paymentRail: "ACH" | "SAMEDAYACH" | "WIRE" | "SWIFT" | "INTERNAL" | "FXPAY" | "CARD";
330
+ recipientType: string;
331
+ emailAddress: string;
332
+ nickName: string;
333
+ firstName: string;
334
+ lastName: string;
335
+ phoneNumber: string;
336
+ accountDetailsData: {
337
+ accountNumber: string;
338
+ bankInformation: {
339
+ routingNumber: string;
340
+ swiftCode: string;
341
+ };
342
+ };
343
+ address?: {
344
+ line1: string;
345
+ line2: string;
346
+ stateCode: string;
347
+ countryCode: string;
348
+ postalCode: string;
349
+ city: string;
350
+ } | undefined;
351
+ businessName?: string | undefined;
352
+ isOwnAccount?: boolean | undefined;
353
+ }>, {
354
+ paymentRail: "ACH" | "SAMEDAYACH" | "WIRE" | "SWIFT" | "INTERNAL" | "FXPAY" | "CARD";
355
+ recipientType: string;
356
+ emailAddress: string;
357
+ nickName: string;
358
+ firstName: string;
359
+ lastName: string;
360
+ phoneNumber: string;
361
+ accountDetailsData: {
362
+ accountNumber: string;
363
+ bankInformation: {
364
+ routingNumber: string;
365
+ swiftCode: string;
366
+ };
367
+ };
368
+ address?: {
369
+ line1: string;
370
+ line2: string;
371
+ stateCode: string;
372
+ countryCode: string;
373
+ postalCode: string;
374
+ city: string;
375
+ } | undefined;
376
+ businessName?: string | undefined;
377
+ isOwnAccount?: boolean | undefined;
378
+ }, {
379
+ paymentRail: "ACH" | "SAMEDAYACH" | "WIRE" | "SWIFT" | "INTERNAL" | "FXPAY" | "CARD";
380
+ recipientType: string;
381
+ emailAddress: string;
382
+ nickName: string;
383
+ firstName: string;
384
+ lastName: string;
385
+ phoneNumber: string;
386
+ accountDetailsData: {
387
+ accountNumber: string;
388
+ bankInformation: {
389
+ routingNumber: string;
390
+ swiftCode: string;
391
+ };
392
+ };
393
+ address?: {
394
+ line1: string;
395
+ line2: string;
396
+ stateCode: string;
397
+ countryCode: string;
398
+ postalCode: string;
399
+ city: string;
400
+ } | undefined;
401
+ businessName?: string | undefined;
402
+ isOwnAccount?: boolean | undefined;
403
+ }>;
404
+ declare const UpdateRecipientRequestSchema: z.ZodEffects<z.ZodObject<{
405
+ nickName: z.ZodOptional<z.ZodString>;
406
+ firstName: z.ZodOptional<z.ZodString>;
407
+ lastName: z.ZodOptional<z.ZodString>;
408
+ businessName: z.ZodOptional<z.ZodString>;
409
+ emailAddress: z.ZodOptional<z.ZodString>;
410
+ phoneNumber: z.ZodOptional<z.ZodString>;
411
+ recipientType: z.ZodOptional<z.ZodString>;
412
+ paymentRail: z.ZodOptional<z.ZodEnum<["ACH", "SAMEDAYACH", "WIRE", "SWIFT", "INTERNAL", "FXPAY", "CARD"]>>;
413
+ isOwnAccount: z.ZodOptional<z.ZodBoolean>;
414
+ address: z.ZodOptional<z.ZodObject<{
415
+ line1: z.ZodString;
416
+ line2: z.ZodString;
417
+ city: z.ZodString;
418
+ stateCode: z.ZodString;
419
+ countryCode: z.ZodString;
420
+ postalCode: z.ZodString;
421
+ }, "strip", z.ZodTypeAny, {
422
+ line1: string;
423
+ line2: string;
424
+ stateCode: string;
425
+ countryCode: string;
426
+ postalCode: string;
427
+ city: string;
428
+ }, {
429
+ line1: string;
430
+ line2: string;
431
+ stateCode: string;
432
+ countryCode: string;
433
+ postalCode: string;
434
+ city: string;
435
+ }>>;
436
+ accountDetailsData: z.ZodOptional<z.ZodObject<{
437
+ accountNumber: z.ZodString;
438
+ bankInformation: z.ZodObject<{
439
+ routingNumber: z.ZodString;
440
+ swiftCode: z.ZodString;
441
+ }, "strip", z.ZodTypeAny, {
442
+ routingNumber: string;
443
+ swiftCode: string;
444
+ }, {
445
+ routingNumber: string;
446
+ swiftCode: string;
447
+ }>;
448
+ }, "strip", z.ZodTypeAny, {
449
+ accountNumber: string;
450
+ bankInformation: {
451
+ routingNumber: string;
452
+ swiftCode: string;
453
+ };
454
+ }, {
455
+ accountNumber: string;
456
+ bankInformation: {
457
+ routingNumber: string;
458
+ swiftCode: string;
459
+ };
460
+ }>>;
461
+ }, "strip", z.ZodTypeAny, {
462
+ paymentRail?: "ACH" | "SAMEDAYACH" | "WIRE" | "SWIFT" | "INTERNAL" | "FXPAY" | "CARD" | undefined;
463
+ recipientType?: string | undefined;
464
+ address?: {
465
+ line1: string;
466
+ line2: string;
467
+ stateCode: string;
468
+ countryCode: string;
469
+ postalCode: string;
470
+ city: string;
471
+ } | undefined;
472
+ emailAddress?: string | undefined;
473
+ nickName?: string | undefined;
474
+ firstName?: string | undefined;
475
+ lastName?: string | undefined;
476
+ businessName?: string | undefined;
477
+ phoneNumber?: string | undefined;
478
+ isOwnAccount?: boolean | undefined;
479
+ accountDetailsData?: {
480
+ accountNumber: string;
481
+ bankInformation: {
482
+ routingNumber: string;
483
+ swiftCode: string;
484
+ };
485
+ } | undefined;
486
+ }, {
487
+ paymentRail?: "ACH" | "SAMEDAYACH" | "WIRE" | "SWIFT" | "INTERNAL" | "FXPAY" | "CARD" | undefined;
488
+ recipientType?: string | undefined;
489
+ address?: {
490
+ line1: string;
491
+ line2: string;
492
+ stateCode: string;
493
+ countryCode: string;
494
+ postalCode: string;
495
+ city: string;
496
+ } | undefined;
497
+ emailAddress?: string | undefined;
498
+ nickName?: string | undefined;
499
+ firstName?: string | undefined;
500
+ lastName?: string | undefined;
501
+ businessName?: string | undefined;
502
+ phoneNumber?: string | undefined;
503
+ isOwnAccount?: boolean | undefined;
504
+ accountDetailsData?: {
505
+ accountNumber: string;
506
+ bankInformation: {
507
+ routingNumber: string;
508
+ swiftCode: string;
509
+ };
510
+ } | undefined;
511
+ }>, {
512
+ paymentRail?: "ACH" | "SAMEDAYACH" | "WIRE" | "SWIFT" | "INTERNAL" | "FXPAY" | "CARD" | undefined;
513
+ recipientType?: string | undefined;
514
+ address?: {
515
+ line1: string;
516
+ line2: string;
517
+ stateCode: string;
518
+ countryCode: string;
519
+ postalCode: string;
520
+ city: string;
521
+ } | undefined;
522
+ emailAddress?: string | undefined;
523
+ nickName?: string | undefined;
524
+ firstName?: string | undefined;
525
+ lastName?: string | undefined;
526
+ businessName?: string | undefined;
527
+ phoneNumber?: string | undefined;
528
+ isOwnAccount?: boolean | undefined;
529
+ accountDetailsData?: {
530
+ accountNumber: string;
531
+ bankInformation: {
532
+ routingNumber: string;
533
+ swiftCode: string;
534
+ };
535
+ } | undefined;
536
+ }, {
537
+ paymentRail?: "ACH" | "SAMEDAYACH" | "WIRE" | "SWIFT" | "INTERNAL" | "FXPAY" | "CARD" | undefined;
538
+ recipientType?: string | undefined;
539
+ address?: {
540
+ line1: string;
541
+ line2: string;
542
+ stateCode: string;
543
+ countryCode: string;
544
+ postalCode: string;
545
+ city: string;
546
+ } | undefined;
547
+ emailAddress?: string | undefined;
548
+ nickName?: string | undefined;
549
+ firstName?: string | undefined;
550
+ lastName?: string | undefined;
551
+ businessName?: string | undefined;
552
+ phoneNumber?: string | undefined;
553
+ isOwnAccount?: boolean | undefined;
554
+ accountDetailsData?: {
555
+ accountNumber: string;
556
+ bankInformation: {
557
+ routingNumber: string;
558
+ swiftCode: string;
559
+ };
560
+ } | undefined;
561
+ }>;
562
+ type Recipient = z.infer<typeof RecipientSchema>;
563
+ type Recipients = z.infer<typeof RecipientsSchema>;
564
+ type RecipientRequest = z.infer<typeof RecipientRequestSchema>;
565
+ type CreateRecipientRequest = z.infer<typeof CreateRecipientRequestSchema>;
566
+ type UpdateRecipientRequest = z.infer<typeof UpdateRecipientRequestSchema>;
4
567
 
5
568
  interface Config {
6
569
  credential?: Credential;
@@ -7968,4 +8531,4 @@ type UpdateClientIdentifierResponse = z__default.infer<typeof UpdateClientIdenti
7968
8531
  type ListClientsRequest = z__default.infer<typeof ListClientsRequestSchema>;
7969
8532
  type ListClientsResponse = z__default.infer<typeof ListClientsResponseSchema>;
7970
8533
 
7971
- export { UpdateAccountRequestSchema as A, UpdateAccountRequestShape as B, type Config as C, type CreateClientRequest as D, type UpdateClientRequest as E, type ProcessOutput as F, type UpdateClientIdentifierRequest as G, type PaymentRail as H, type MarkAsReturnInput as I, type GetTransferInput as J, type UpdateTraceNumbersInput as K, ListAccountsOfClientResponseShape as L, type Middleware as M, type CreateTransferInput as N, type CreateTransferOutput as O, type Payment as P, type UpdateClientIdentifierResponse as Q, type CreateClientResponse as R, SortOrderSchema as S, type Transfer as T, type UpdatePaymentInput as U, type ListClientsRequest as V, type ListClientsResponse as W, type ListAccountsOfClientRequest as X, type GraphQLRequest as Y, type Command as a, type CreatePaymentInput as b, type PaymentResponse as c, type PaymentStatus as d, type PaymentRailType as e, type PaymentType as f, type PaymentFilters as g, PaymentStatusSchema as h, PaymentFilterKeySchema as i, PaymentRailSchema as j, PaymentTypeSchema as k, CreatePaymentInputSchema as l, UpdatePaymentInputSchema as m, PaymentResponseSchema as n, PaymentFiltersSchema as o, PaymentFilterShape as p, PaymentShape as q, CreatePaymentInputShape as r, UpdatePaymentInputShape as s, SavingAccountSchema as t, SavingAccountShape as u, type SavingAccount as v, ListAccountsOfClientResponseSchema as w, ListAccountsRequestShape as x, ListAccountsRequestSchema as y, type UpdateAccountRequest as z };
8534
+ export { type ListClientsResponse as $, UpdateAccountRequestSchema as A, UpdateAccountRequestShape as B, type Config as C, type CreateClientRequest as D, type UpdateClientRequest as E, type ProcessOutput as F, type UpdateClientIdentifierRequest as G, type CreateRecipientRequest as H, type UpdateRecipientRequest as I, type PaymentRail as J, type MarkAsReturnInput as K, ListAccountsOfClientResponseShape as L, type Middleware as M, type GetTransferInput as N, type UpdateTraceNumbersInput as O, type Payment as P, type CreateTransferInput as Q, type Recipient as R, SortOrderSchema as S, type Transfer as T, type UpdatePaymentInput as U, type CreateTransferOutput as V, type RecipientRequest as W, type Recipients as X, type UpdateClientIdentifierResponse as Y, type CreateClientResponse as Z, type ListClientsRequest as _, type Command as a, type ListAccountsOfClientRequest as a0, type GraphQLRequest as a1, type CreatePaymentInput as b, type PaymentResponse as c, type PaymentStatus as d, type PaymentRailType as e, type PaymentType as f, type PaymentFilters as g, PaymentStatusSchema as h, PaymentFilterKeySchema as i, PaymentRailSchema as j, PaymentTypeSchema as k, CreatePaymentInputSchema as l, UpdatePaymentInputSchema as m, PaymentResponseSchema as n, PaymentFiltersSchema as o, PaymentFilterShape as p, PaymentShape as q, CreatePaymentInputShape as r, UpdatePaymentInputShape as s, SavingAccountSchema as t, SavingAccountShape as u, type SavingAccount as v, ListAccountsOfClientResponseSchema as w, ListAccountsRequestShape as x, ListAccountsRequestSchema as y, type UpdateAccountRequest as z };