@mbanq/core-sdk-js 0.3.0 → 0.4.1

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,4 +1,4 @@
1
- import { C as Config, b as CreatePaymentInput, U as UpdatePaymentInput, D as CreateClientRequest, E as UpdateClientRequest, F as ProcessOutput, G as UpdateClientIdentifierRequest, z as UpdateAccountRequest, a as Command } from '../client-z_1PDcj6.js';
1
+ import { C as Config, b as CreatePaymentInput, U as UpdatePaymentInput, D as CreateClientRequest, E as UpdateClientRequest, F as ProcessOutput, G as UpdateClientIdentifierRequest, z as UpdateAccountRequest, H as CreateRecipientRequest, I as UpdateRecipientRequest, R as Recipient, a as Command } from '../client-BUCNGFJy.js';
2
2
  import * as z from 'zod';
3
3
  import 'graphql';
4
4
  import 'axios';
@@ -621,16 +621,110 @@ declare const createClient: (initialConfig: Config) => {
621
621
  delete: (accountId: number) => {
622
622
  execute: () => Promise<ProcessOutput | undefined>;
623
623
  };
624
- where: () => {
625
- eq: () => {
624
+ where: (field: string) => {
625
+ eq: (value: any) => {
626
+ where: (nextField: string) => /*elided*/ any;
626
627
  list: () => {
627
- where: any;
628
+ where: (field: string) => /*elided*/ any;
628
629
  execute: () => Promise<unknown>;
629
630
  };
630
631
  };
631
632
  };
632
633
  list: () => {
633
- where: any;
634
+ where: (field: string) => {
635
+ eq: (value: any) => {
636
+ where: (nextField: string) => /*elided*/ any;
637
+ list: () => /*elided*/ any;
638
+ };
639
+ };
640
+ execute: () => Promise<unknown>;
641
+ };
642
+ };
643
+ recipients: {
644
+ create: (data: CreateRecipientRequest) => {
645
+ execute: () => Promise<{
646
+ clientId: number;
647
+ paymentRail: string;
648
+ recipientType: string;
649
+ address: {
650
+ line1: string;
651
+ line2: string;
652
+ stateCode: string;
653
+ countryCode: string;
654
+ postalCode: string;
655
+ city: string;
656
+ };
657
+ id: number;
658
+ emailAddress: string;
659
+ nickName: string;
660
+ firstName: string;
661
+ lastName: string;
662
+ businessName: string;
663
+ phoneNumber: string;
664
+ isOwnAccount: boolean;
665
+ accountDetailsData: {
666
+ accountNumber: string;
667
+ bankInformation: {
668
+ routingNumber: string;
669
+ swiftCode: string;
670
+ };
671
+ };
672
+ } | undefined>;
673
+ };
674
+ get: (recipientId: number) => {
675
+ readonly execute: () => Promise<{
676
+ clientId: number;
677
+ paymentRail: string;
678
+ recipientType: string;
679
+ address: {
680
+ line1: string;
681
+ line2: string;
682
+ stateCode: string;
683
+ countryCode: string;
684
+ postalCode: string;
685
+ city: string;
686
+ };
687
+ id: number;
688
+ emailAddress: string;
689
+ nickName: string;
690
+ firstName: string;
691
+ lastName: string;
692
+ businessName: string;
693
+ phoneNumber: string;
694
+ isOwnAccount: boolean;
695
+ accountDetailsData: {
696
+ accountNumber: string;
697
+ bankInformation: {
698
+ routingNumber: string;
699
+ swiftCode: string;
700
+ };
701
+ };
702
+ } | undefined>;
703
+ };
704
+ update: (recipientId: number, updates: UpdateRecipientRequest) => {
705
+ execute: () => Promise<{
706
+ updateRecipient: Recipient;
707
+ } | undefined>;
708
+ };
709
+ delete: (recipientId: number) => {
710
+ execute: () => Promise<ProcessOutput | undefined>;
711
+ };
712
+ where: (field: string) => {
713
+ eq: (value: any) => {
714
+ where: (nextField: string) => /*elided*/ any;
715
+ list: () => {
716
+ where: (field: string) => /*elided*/ any;
717
+ execute: () => Promise<unknown>;
718
+ };
719
+ };
720
+ };
721
+ list: () => {
722
+ where: (field: string) => {
723
+ eq: (value: any) => {
724
+ where: (nextField: string) => /*elided*/ any;
725
+ list: () => /*elided*/ any;
726
+ };
727
+ };
634
728
  execute: () => Promise<unknown>;
635
729
  };
636
730
  };
@@ -1265,16 +1359,110 @@ declare const createClient: (initialConfig: Config) => {
1265
1359
  delete: (accountId: number) => {
1266
1360
  execute: () => Promise<ProcessOutput | undefined>;
1267
1361
  };
1268
- where: () => {
1269
- eq: () => {
1362
+ where: (field: string) => {
1363
+ eq: (value: any) => {
1364
+ where: (nextField: string) => /*elided*/ any;
1270
1365
  list: () => {
1271
- where: any;
1366
+ where: (field: string) => /*elided*/ any;
1272
1367
  execute: () => Promise<unknown>;
1273
1368
  };
1274
1369
  };
1275
1370
  };
1276
1371
  list: () => {
1277
- where: any;
1372
+ where: (field: string) => {
1373
+ eq: (value: any) => {
1374
+ where: (nextField: string) => /*elided*/ any;
1375
+ list: () => /*elided*/ any;
1376
+ };
1377
+ };
1378
+ execute: () => Promise<unknown>;
1379
+ };
1380
+ };
1381
+ recipients: {
1382
+ create: (data: CreateRecipientRequest) => {
1383
+ execute: () => Promise<{
1384
+ clientId: number;
1385
+ paymentRail: string;
1386
+ recipientType: string;
1387
+ address: {
1388
+ line1: string;
1389
+ line2: string;
1390
+ stateCode: string;
1391
+ countryCode: string;
1392
+ postalCode: string;
1393
+ city: string;
1394
+ };
1395
+ id: number;
1396
+ emailAddress: string;
1397
+ nickName: string;
1398
+ firstName: string;
1399
+ lastName: string;
1400
+ businessName: string;
1401
+ phoneNumber: string;
1402
+ isOwnAccount: boolean;
1403
+ accountDetailsData: {
1404
+ accountNumber: string;
1405
+ bankInformation: {
1406
+ routingNumber: string;
1407
+ swiftCode: string;
1408
+ };
1409
+ };
1410
+ } | undefined>;
1411
+ };
1412
+ get: (recipientId: number) => {
1413
+ readonly execute: () => Promise<{
1414
+ clientId: number;
1415
+ paymentRail: string;
1416
+ recipientType: string;
1417
+ address: {
1418
+ line1: string;
1419
+ line2: string;
1420
+ stateCode: string;
1421
+ countryCode: string;
1422
+ postalCode: string;
1423
+ city: string;
1424
+ };
1425
+ id: number;
1426
+ emailAddress: string;
1427
+ nickName: string;
1428
+ firstName: string;
1429
+ lastName: string;
1430
+ businessName: string;
1431
+ phoneNumber: string;
1432
+ isOwnAccount: boolean;
1433
+ accountDetailsData: {
1434
+ accountNumber: string;
1435
+ bankInformation: {
1436
+ routingNumber: string;
1437
+ swiftCode: string;
1438
+ };
1439
+ };
1440
+ } | undefined>;
1441
+ };
1442
+ update: (recipientId: number, updates: UpdateRecipientRequest) => {
1443
+ execute: () => Promise<{
1444
+ updateRecipient: Recipient;
1445
+ } | undefined>;
1446
+ };
1447
+ delete: (recipientId: number) => {
1448
+ execute: () => Promise<ProcessOutput | undefined>;
1449
+ };
1450
+ where: (field: string) => {
1451
+ eq: (value: any) => {
1452
+ where: (nextField: string) => /*elided*/ any;
1453
+ list: () => {
1454
+ where: (field: string) => /*elided*/ any;
1455
+ execute: () => Promise<unknown>;
1456
+ };
1457
+ };
1458
+ };
1459
+ list: () => {
1460
+ where: (field: string) => {
1461
+ eq: (value: any) => {
1462
+ where: (nextField: string) => /*elided*/ any;
1463
+ list: () => /*elided*/ any;
1464
+ };
1465
+ };
1278
1466
  execute: () => Promise<unknown>;
1279
1467
  };
1280
1468
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkC5426MUQjs = require('../chunk-C5426MUQ.js');require('../chunk-BYLL2GK4.js');exports.createClient = _chunkC5426MUQjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk5DOBPPELjs = require('../chunk-5DOBPPEL.js');require('../chunk-AVRYYGRQ.js');exports.createClient = _chunk5DOBPPELjs.a;
@@ -1 +1 @@
1
- import{a}from"../chunk-I22UNKNA.mjs";import"../chunk-ZPWW7X3U.mjs";export{a as createClient};
1
+ import{a}from"../chunk-67S4CQFY.mjs";import"../chunk-ZRBPB43P.mjs";export{a as createClient};