@artu-ai/compliance-sdk 0.0.4 → 0.0.6
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/{ComplianceSDK-DzmqGCLF.d.cts → ComplianceSDK-BgzIwSsY.d.cts} +1 -1
- package/dist/{ComplianceSDK-CsFkAge8.d.ts → ComplianceSDK-DoIZOSJq.d.ts} +1 -1
- package/dist/{chunk-U3W5OO7I.cjs → chunk-2CIR32CT.cjs} +263 -2
- package/dist/chunk-2CIR32CT.cjs.map +1 -0
- package/dist/{chunk-MNPRPINS.js → chunk-5FXVLHD3.js} +3 -3
- package/dist/{chunk-MNPRPINS.js.map → chunk-5FXVLHD3.js.map} +1 -1
- package/dist/{chunk-NQWTMQQL.js → chunk-62M35I6I.js} +6 -6
- package/dist/{chunk-NQWTMQQL.js.map → chunk-62M35I6I.js.map} +1 -1
- package/dist/{chunk-E36XEOE2.js → chunk-ARI5WM5X.js} +263 -2
- package/dist/chunk-ARI5WM5X.js.map +1 -0
- package/dist/chunk-B75YW6BN.cjs +26 -0
- package/dist/{chunk-IS3YJ7Y5.cjs.map → chunk-B75YW6BN.cjs.map} +1 -1
- package/dist/chunk-F6THYYF5.cjs +26 -0
- package/dist/{chunk-F5LRN233.cjs.map → chunk-F6THYYF5.cjs.map} +1 -1
- package/dist/{chunk-C4Y56E4V.js → chunk-HAEBRF5N.js} +3 -3
- package/dist/{chunk-C4Y56E4V.js.map → chunk-HAEBRF5N.js.map} +1 -1
- package/dist/chunk-HEGTPUIS.cjs +26 -0
- package/dist/{chunk-EO7ANPLK.cjs.map → chunk-HEGTPUIS.cjs.map} +1 -1
- package/dist/{chunk-Q3J7CQWL.js → chunk-TYXYZ3WV.js} +3 -3
- package/dist/{chunk-Q3J7CQWL.js.map → chunk-TYXYZ3WV.js.map} +1 -1
- package/dist/chunk-ZFW24DFL.cjs +261 -0
- package/dist/{chunk-UVM75OVG.cjs.map → chunk-ZFW24DFL.cjs.map} +1 -1
- package/dist/{filters-CEVr2pEJ.d.cts → filters-UX1_wF2Z.d.cts} +92 -0
- package/dist/{filters-CEVr2pEJ.d.ts → filters-UX1_wF2Z.d.ts} +92 -0
- package/dist/{index-FBXIzHa9.d.cts → index-6dNlw8uP.d.cts} +1 -1
- package/dist/{index-CWAflRhP.d.ts → index-CUIwWk-y.d.ts} +1 -1
- package/dist/index.cjs +85 -85
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +7 -7
- package/dist/mexico/actividad-vulnerable/avi.cjs +80 -80
- package/dist/mexico/actividad-vulnerable/avi.d.cts +3 -3
- package/dist/mexico/actividad-vulnerable/avi.d.ts +3 -3
- package/dist/mexico/actividad-vulnerable/avi.js +3 -3
- package/dist/mexico/actividad-vulnerable/jys.cjs +80 -80
- package/dist/mexico/actividad-vulnerable/jys.d.cts +3 -3
- package/dist/mexico/actividad-vulnerable/jys.d.ts +3 -3
- package/dist/mexico/actividad-vulnerable/jys.js +3 -3
- package/dist/mexico/actividad-vulnerable/tsc.cjs +80 -80
- package/dist/mexico/actividad-vulnerable/tsc.d.cts +3 -3
- package/dist/mexico/actividad-vulnerable/tsc.d.ts +3 -3
- package/dist/mexico/actividad-vulnerable/tsc.js +3 -3
- package/dist/mexico/index.cjs +98 -98
- package/dist/mexico/index.d.cts +4 -4
- package/dist/mexico/index.d.ts +4 -4
- package/dist/mexico/index.js +5 -5
- package/package.json +2 -2
- package/dist/chunk-E36XEOE2.js.map +0 -1
- package/dist/chunk-EO7ANPLK.cjs +0 -26
- package/dist/chunk-F5LRN233.cjs +0 -26
- package/dist/chunk-IS3YJ7Y5.cjs +0 -26
- package/dist/chunk-U3W5OO7I.cjs.map +0 -1
- package/dist/chunk-UVM75OVG.cjs +0 -261
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as ComplianceSDKImpl, E as EBRResource, a as ComplianceSDKOptionsMexico, M as MexicoScopedSDKOptions } from './filters-
|
|
1
|
+
import { C as ComplianceSDKImpl, E as EBRResource, a as ComplianceSDKOptionsMexico, M as MexicoScopedSDKOptions } from './filters-UX1_wF2Z.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Mexico-scoped ComplianceSDK
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as ComplianceSDKImpl, E as EBRResource, a as ComplianceSDKOptionsMexico, M as MexicoScopedSDKOptions } from './filters-
|
|
1
|
+
import { C as ComplianceSDKImpl, E as EBRResource, a as ComplianceSDKOptionsMexico, M as MexicoScopedSDKOptions } from './filters-UX1_wF2Z.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Mexico-scoped ComplianceSDK
|
|
@@ -17428,6 +17428,33 @@ var ClientsResource = class extends BaseResource {
|
|
|
17428
17428
|
);
|
|
17429
17429
|
return this.instantiate(response);
|
|
17430
17430
|
}
|
|
17431
|
+
/**
|
|
17432
|
+
* Retrieves a client by metadata key/value.
|
|
17433
|
+
*/
|
|
17434
|
+
async retrieveByMetadata(key, value) {
|
|
17435
|
+
const response = await this.execute(
|
|
17436
|
+
() => this.trpc.clients.retrieveByMetadata.query({ key, value })
|
|
17437
|
+
);
|
|
17438
|
+
return this.instantiate(response);
|
|
17439
|
+
}
|
|
17440
|
+
/**
|
|
17441
|
+
* Retrieves a client by externalId.
|
|
17442
|
+
*
|
|
17443
|
+
* @param externalId - External identifier assigned by your system
|
|
17444
|
+
* @returns The client model
|
|
17445
|
+
*
|
|
17446
|
+
* @example
|
|
17447
|
+
* ```typescript
|
|
17448
|
+
* const client = await sdk.clients.retrieveByExternalId("external-123");
|
|
17449
|
+
* console.log(client.name);
|
|
17450
|
+
* ```
|
|
17451
|
+
*/
|
|
17452
|
+
async retrieveByExternalId(externalId) {
|
|
17453
|
+
const response = await this.execute(
|
|
17454
|
+
() => this.trpc.clients.retrieveByExternalId.query({ externalId })
|
|
17455
|
+
);
|
|
17456
|
+
return this.instantiate(response);
|
|
17457
|
+
}
|
|
17431
17458
|
/**
|
|
17432
17459
|
* Updates a client.
|
|
17433
17460
|
*
|
|
@@ -17719,6 +17746,24 @@ var TransactionsResource = class extends BaseResource {
|
|
|
17719
17746
|
);
|
|
17720
17747
|
return this.instantiate(response);
|
|
17721
17748
|
}
|
|
17749
|
+
/**
|
|
17750
|
+
* Retrieves a transaction by metadata key/value.
|
|
17751
|
+
*/
|
|
17752
|
+
async retrieveByMetadata(key, value) {
|
|
17753
|
+
const response = await this.execute(
|
|
17754
|
+
() => this.trpc.transactions.retrieveByMetadata.query({ key, value })
|
|
17755
|
+
);
|
|
17756
|
+
return this.instantiate(response);
|
|
17757
|
+
}
|
|
17758
|
+
/**
|
|
17759
|
+
* Retrieves a transaction by externalId.
|
|
17760
|
+
*/
|
|
17761
|
+
async retrieveByExternalId(externalId) {
|
|
17762
|
+
const response = await this.execute(
|
|
17763
|
+
() => this.trpc.transactions.retrieveByExternalId.query({ externalId })
|
|
17764
|
+
);
|
|
17765
|
+
return this.instantiate(response);
|
|
17766
|
+
}
|
|
17722
17767
|
/**
|
|
17723
17768
|
* Updates a transaction.
|
|
17724
17769
|
*/
|
|
@@ -17900,6 +17945,24 @@ var ReportsResource = class extends BaseResource {
|
|
|
17900
17945
|
);
|
|
17901
17946
|
return this.instantiate(response);
|
|
17902
17947
|
}
|
|
17948
|
+
/**
|
|
17949
|
+
* Retrieves a report by metadata key/value.
|
|
17950
|
+
*/
|
|
17951
|
+
async retrieveByMetadata(key, value) {
|
|
17952
|
+
const response = await this.execute(
|
|
17953
|
+
() => this.trpc.reports.retrieveByMetadata.query({ key, value })
|
|
17954
|
+
);
|
|
17955
|
+
return this.instantiate(response);
|
|
17956
|
+
}
|
|
17957
|
+
/**
|
|
17958
|
+
* Retrieves a report by externalId.
|
|
17959
|
+
*/
|
|
17960
|
+
async retrieveByExternalId(externalId) {
|
|
17961
|
+
const response = await this.execute(
|
|
17962
|
+
() => this.trpc.reports.retrieveByExternalId.query({ externalId })
|
|
17963
|
+
);
|
|
17964
|
+
return this.instantiate(response);
|
|
17965
|
+
}
|
|
17903
17966
|
/**
|
|
17904
17967
|
* Updates a report.
|
|
17905
17968
|
*/
|
|
@@ -18174,6 +18237,24 @@ var AddressesResource = class extends BaseResource {
|
|
|
18174
18237
|
);
|
|
18175
18238
|
return this.instantiate(response);
|
|
18176
18239
|
}
|
|
18240
|
+
/**
|
|
18241
|
+
* Retrieves an address by metadata key/value.
|
|
18242
|
+
*/
|
|
18243
|
+
async retrieveByMetadata(key, value) {
|
|
18244
|
+
const response = await this.execute(
|
|
18245
|
+
() => this.trpc.addresses.retrieveByMetadata.query({ key, value })
|
|
18246
|
+
);
|
|
18247
|
+
return this.instantiate(response);
|
|
18248
|
+
}
|
|
18249
|
+
/**
|
|
18250
|
+
* Retrieves an address by externalId
|
|
18251
|
+
*/
|
|
18252
|
+
async retrieveByExternalId(externalId) {
|
|
18253
|
+
const response = await this.execute(
|
|
18254
|
+
() => this.trpc.addresses.retrieveByExternalId.query({ externalId })
|
|
18255
|
+
);
|
|
18256
|
+
return this.instantiate(response);
|
|
18257
|
+
}
|
|
18177
18258
|
/**
|
|
18178
18259
|
* Updates an address
|
|
18179
18260
|
*
|
|
@@ -18339,6 +18420,24 @@ var ContactMethodsResource = class extends BaseResource {
|
|
|
18339
18420
|
);
|
|
18340
18421
|
return this.instantiate(response);
|
|
18341
18422
|
}
|
|
18423
|
+
/**
|
|
18424
|
+
* Retrieves a contact method by metadata key/value.
|
|
18425
|
+
*/
|
|
18426
|
+
async retrieveByMetadata(key, value) {
|
|
18427
|
+
const response = await this.execute(
|
|
18428
|
+
() => this.trpc.contactMethods.retrieveByMetadata.query({ key, value })
|
|
18429
|
+
);
|
|
18430
|
+
return this.instantiate(response);
|
|
18431
|
+
}
|
|
18432
|
+
/**
|
|
18433
|
+
* Retrieves a contact method by externalId.
|
|
18434
|
+
*/
|
|
18435
|
+
async retrieveByExternalId(externalId) {
|
|
18436
|
+
const response = await this.execute(
|
|
18437
|
+
() => this.trpc.contactMethods.retrieveByExternalId.query({ externalId })
|
|
18438
|
+
);
|
|
18439
|
+
return this.instantiate(response);
|
|
18440
|
+
}
|
|
18342
18441
|
/**
|
|
18343
18442
|
* Updates a contact method
|
|
18344
18443
|
*
|
|
@@ -18513,6 +18612,24 @@ var BankAccountsResource = class extends BaseResource {
|
|
|
18513
18612
|
);
|
|
18514
18613
|
return this.instantiate(response);
|
|
18515
18614
|
}
|
|
18615
|
+
/**
|
|
18616
|
+
* Retrieves a bank account by metadata key/value.
|
|
18617
|
+
*/
|
|
18618
|
+
async retrieveByMetadata(key, value) {
|
|
18619
|
+
const response = await this.execute(
|
|
18620
|
+
() => this.trpc.bankAccounts.retrieveByMetadata.query({ key, value })
|
|
18621
|
+
);
|
|
18622
|
+
return this.instantiate(response);
|
|
18623
|
+
}
|
|
18624
|
+
/**
|
|
18625
|
+
* Retrieves a bank account by externalId.
|
|
18626
|
+
*/
|
|
18627
|
+
async retrieveByExternalId(externalId) {
|
|
18628
|
+
const response = await this.execute(
|
|
18629
|
+
() => this.trpc.bankAccounts.retrieveByExternalId.query({ externalId })
|
|
18630
|
+
);
|
|
18631
|
+
return this.instantiate(response);
|
|
18632
|
+
}
|
|
18516
18633
|
/**
|
|
18517
18634
|
* Updates a bank account.
|
|
18518
18635
|
*/
|
|
@@ -18701,6 +18818,24 @@ var DocumentsResource = class extends BaseResource {
|
|
|
18701
18818
|
);
|
|
18702
18819
|
return this.instantiate(response);
|
|
18703
18820
|
}
|
|
18821
|
+
/**
|
|
18822
|
+
* Retrieves a document by metadata key/value.
|
|
18823
|
+
*/
|
|
18824
|
+
async retrieveByMetadata(key, value) {
|
|
18825
|
+
const response = await this.execute(
|
|
18826
|
+
() => this.trpc.documents.retrieveByMetadata.query({ key, value })
|
|
18827
|
+
);
|
|
18828
|
+
return this.instantiate(response);
|
|
18829
|
+
}
|
|
18830
|
+
/**
|
|
18831
|
+
* Retrieves a document by externalId
|
|
18832
|
+
*/
|
|
18833
|
+
async retrieveByExternalId(externalId) {
|
|
18834
|
+
const response = await this.execute(
|
|
18835
|
+
() => this.trpc.documents.retrieveByExternalId.query({ externalId })
|
|
18836
|
+
);
|
|
18837
|
+
return this.instantiate(response);
|
|
18838
|
+
}
|
|
18704
18839
|
// ─────────────────────────────────────────────────────────────────
|
|
18705
18840
|
// Update
|
|
18706
18841
|
// ─────────────────────────────────────────────────────────────────
|
|
@@ -18925,6 +19060,15 @@ var MexClientsResource = class extends ClientsResource {
|
|
|
18925
19060
|
);
|
|
18926
19061
|
return this.instantiate(response);
|
|
18927
19062
|
}
|
|
19063
|
+
/**
|
|
19064
|
+
* Retrieves a Mexico client by externalId.
|
|
19065
|
+
*/
|
|
19066
|
+
async retrieveByExternalId(externalId) {
|
|
19067
|
+
const response = await this.execute(
|
|
19068
|
+
() => this.trpc.clients.retrieveByExternalId.query({ externalId })
|
|
19069
|
+
);
|
|
19070
|
+
return this.instantiate(response);
|
|
19071
|
+
}
|
|
18928
19072
|
/**
|
|
18929
19073
|
* Updates a Mexico client with flattened input.
|
|
18930
19074
|
*/
|
|
@@ -19126,6 +19270,18 @@ var MexTransactionsResource = class extends TransactionsResource {
|
|
|
19126
19270
|
);
|
|
19127
19271
|
return this.instantiate(response);
|
|
19128
19272
|
}
|
|
19273
|
+
async retrieveByMetadata(key, value) {
|
|
19274
|
+
const response = await this.execute(
|
|
19275
|
+
() => this.trpc.transactions.retrieveByMetadata.query({ key, value })
|
|
19276
|
+
);
|
|
19277
|
+
return this.instantiate(response);
|
|
19278
|
+
}
|
|
19279
|
+
async retrieveByExternalId(externalId) {
|
|
19280
|
+
const response = await this.execute(
|
|
19281
|
+
() => this.trpc.transactions.retrieveByExternalId.query({ externalId })
|
|
19282
|
+
);
|
|
19283
|
+
return this.instantiate(response);
|
|
19284
|
+
}
|
|
19129
19285
|
/**
|
|
19130
19286
|
* Updates a Mexico transaction with flattened input.
|
|
19131
19287
|
*/
|
|
@@ -19285,6 +19441,12 @@ var MexBankAccountsResource = class extends BankAccountsResource {
|
|
|
19285
19441
|
async retrieve(id) {
|
|
19286
19442
|
return super.retrieve(id);
|
|
19287
19443
|
}
|
|
19444
|
+
async retrieveByMetadata(key, value) {
|
|
19445
|
+
return super.retrieveByMetadata(key, value);
|
|
19446
|
+
}
|
|
19447
|
+
async retrieveByExternalId(externalId) {
|
|
19448
|
+
return super.retrieveByExternalId(externalId);
|
|
19449
|
+
}
|
|
19288
19450
|
async update(id, data) {
|
|
19289
19451
|
return super.update(id, data);
|
|
19290
19452
|
}
|
|
@@ -19352,6 +19514,18 @@ var MexReportsResource = class extends ReportsResource {
|
|
|
19352
19514
|
);
|
|
19353
19515
|
return this.instantiate(response);
|
|
19354
19516
|
}
|
|
19517
|
+
async retrieveByMetadata(key, value) {
|
|
19518
|
+
const response = await this.execute(
|
|
19519
|
+
() => this.trpc.reports.retrieveByMetadata.query({ key, value })
|
|
19520
|
+
);
|
|
19521
|
+
return this.instantiate(response);
|
|
19522
|
+
}
|
|
19523
|
+
async retrieveByExternalId(externalId) {
|
|
19524
|
+
const response = await this.execute(
|
|
19525
|
+
() => this.trpc.reports.retrieveByExternalId.query({ externalId })
|
|
19526
|
+
);
|
|
19527
|
+
return this.instantiate(response);
|
|
19528
|
+
}
|
|
19355
19529
|
/**
|
|
19356
19530
|
* Updates a Mexico report with flattened input.
|
|
19357
19531
|
*/
|
|
@@ -19718,6 +19892,15 @@ var AVIClientsResource = class extends MexClientsResource {
|
|
|
19718
19892
|
);
|
|
19719
19893
|
return this.instantiate(response);
|
|
19720
19894
|
}
|
|
19895
|
+
/**
|
|
19896
|
+
* Retrieves an AVI client by externalId.
|
|
19897
|
+
*/
|
|
19898
|
+
async retrieveByExternalId(externalId) {
|
|
19899
|
+
const response = await this.execute(
|
|
19900
|
+
() => this.trpc.clients.retrieveByExternalId.query({ externalId })
|
|
19901
|
+
);
|
|
19902
|
+
return this.instantiate(response);
|
|
19903
|
+
}
|
|
19721
19904
|
/**
|
|
19722
19905
|
* Updates an AVI client with flattened input.
|
|
19723
19906
|
*/
|
|
@@ -19880,6 +20063,12 @@ var AVITransactionsResource = class extends MexTransactionsResource {
|
|
|
19880
20063
|
);
|
|
19881
20064
|
return this.instantiate(response);
|
|
19882
20065
|
}
|
|
20066
|
+
async retrieveByMetadata(key, value) {
|
|
20067
|
+
const response = await this.execute(
|
|
20068
|
+
() => this.trpc.transactions.retrieveByMetadata.query({ key, value })
|
|
20069
|
+
);
|
|
20070
|
+
return this.instantiate(response);
|
|
20071
|
+
}
|
|
19883
20072
|
async update(id, data) {
|
|
19884
20073
|
const validated = this.validate(shared.updateAVITransactionInputSchema, data);
|
|
19885
20074
|
const nestedData = this.transformUpdateToNested(validated);
|
|
@@ -20024,6 +20213,18 @@ var AVIReportsResource = class extends MexReportsResource {
|
|
|
20024
20213
|
);
|
|
20025
20214
|
return this.instantiate(response);
|
|
20026
20215
|
}
|
|
20216
|
+
async retrieveByMetadata(key, value) {
|
|
20217
|
+
const response = await this.execute(
|
|
20218
|
+
() => this.trpc.reports.retrieveByMetadata.query({ key, value })
|
|
20219
|
+
);
|
|
20220
|
+
return this.instantiate(response);
|
|
20221
|
+
}
|
|
20222
|
+
async retrieveByExternalId(externalId) {
|
|
20223
|
+
const response = await this.execute(
|
|
20224
|
+
() => this.trpc.reports.retrieveByExternalId.query({ externalId })
|
|
20225
|
+
);
|
|
20226
|
+
return this.instantiate(response);
|
|
20227
|
+
}
|
|
20027
20228
|
async update(id, data) {
|
|
20028
20229
|
const validated = this.validate(shared.updateAVIReportInputSchema, data);
|
|
20029
20230
|
const nestedData = this.transformUpdateToNested(validated);
|
|
@@ -20324,6 +20525,12 @@ var JYSClientsResource = class extends MexClientsResource {
|
|
|
20324
20525
|
);
|
|
20325
20526
|
return this.instantiate(response);
|
|
20326
20527
|
}
|
|
20528
|
+
async retrieveByExternalId(externalId) {
|
|
20529
|
+
const response = await this.execute(
|
|
20530
|
+
() => this.trpc.clients.retrieveByExternalId.query({ externalId })
|
|
20531
|
+
);
|
|
20532
|
+
return this.instantiate(response);
|
|
20533
|
+
}
|
|
20327
20534
|
async update(id, data) {
|
|
20328
20535
|
const validated = this.validate(shared.updateJYSClientInputSchema, data);
|
|
20329
20536
|
const nestedData = this.transformUpdateToNested(validated);
|
|
@@ -20459,6 +20666,12 @@ var JYSTransactionsResource = class extends MexTransactionsResource {
|
|
|
20459
20666
|
);
|
|
20460
20667
|
return this.instantiate(response);
|
|
20461
20668
|
}
|
|
20669
|
+
async retrieveByMetadata(key, value) {
|
|
20670
|
+
const response = await this.execute(
|
|
20671
|
+
() => this.trpc.transactions.retrieveByMetadata.query({ key, value })
|
|
20672
|
+
);
|
|
20673
|
+
return this.instantiate(response);
|
|
20674
|
+
}
|
|
20462
20675
|
async update(id, data) {
|
|
20463
20676
|
const validated = this.validate(shared.updateJYSTransactionInputSchema, data);
|
|
20464
20677
|
const nestedData = this.transformUpdateToNested(validated);
|
|
@@ -20603,6 +20816,18 @@ var JYSReportsResource = class extends MexReportsResource {
|
|
|
20603
20816
|
);
|
|
20604
20817
|
return this.instantiate(response);
|
|
20605
20818
|
}
|
|
20819
|
+
async retrieveByMetadata(key, value) {
|
|
20820
|
+
const response = await this.execute(
|
|
20821
|
+
() => this.trpc.reports.retrieveByMetadata.query({ key, value })
|
|
20822
|
+
);
|
|
20823
|
+
return this.instantiate(response);
|
|
20824
|
+
}
|
|
20825
|
+
async retrieveByExternalId(externalId) {
|
|
20826
|
+
const response = await this.execute(
|
|
20827
|
+
() => this.trpc.reports.retrieveByExternalId.query({ externalId })
|
|
20828
|
+
);
|
|
20829
|
+
return this.instantiate(response);
|
|
20830
|
+
}
|
|
20606
20831
|
async update(id, data) {
|
|
20607
20832
|
const validated = this.validate(shared.updateJYSReportInputSchema, data);
|
|
20608
20833
|
const nestedData = this.transformUpdateToNested(validated);
|
|
@@ -20879,6 +21104,12 @@ var TSCClientsResource = class extends MexClientsResource {
|
|
|
20879
21104
|
);
|
|
20880
21105
|
return this.instantiate(response);
|
|
20881
21106
|
}
|
|
21107
|
+
async retrieveByExternalId(externalId) {
|
|
21108
|
+
const response = await this.execute(
|
|
21109
|
+
() => this.trpc.clients.retrieveByExternalId.query({ externalId })
|
|
21110
|
+
);
|
|
21111
|
+
return this.instantiate(response);
|
|
21112
|
+
}
|
|
20882
21113
|
async update(id, data) {
|
|
20883
21114
|
const validated = this.validate(shared.updateTSCClientInputSchema, data);
|
|
20884
21115
|
const nestedData = this.transformUpdateToNested(validated);
|
|
@@ -21014,6 +21245,12 @@ var TSCTransactionsResource = class extends MexTransactionsResource {
|
|
|
21014
21245
|
);
|
|
21015
21246
|
return this.instantiate(response);
|
|
21016
21247
|
}
|
|
21248
|
+
async retrieveByMetadata(key, value) {
|
|
21249
|
+
const response = await this.execute(
|
|
21250
|
+
() => this.trpc.transactions.retrieveByMetadata.query({ key, value })
|
|
21251
|
+
);
|
|
21252
|
+
return this.instantiate(response);
|
|
21253
|
+
}
|
|
21017
21254
|
async update(id, data) {
|
|
21018
21255
|
const validated = this.validate(shared.updateTSCTransactionInputSchema, data);
|
|
21019
21256
|
const nestedData = this.transformUpdateToNested(validated);
|
|
@@ -21165,6 +21402,18 @@ var TSCReportsResource = class extends MexReportsResource {
|
|
|
21165
21402
|
);
|
|
21166
21403
|
return this.instantiate(response);
|
|
21167
21404
|
}
|
|
21405
|
+
async retrieveByMetadata(key, value) {
|
|
21406
|
+
const response = await this.execute(
|
|
21407
|
+
() => this.trpc.reports.retrieveByMetadata.query({ key, value })
|
|
21408
|
+
);
|
|
21409
|
+
return this.instantiate(response);
|
|
21410
|
+
}
|
|
21411
|
+
async retrieveByExternalId(externalId) {
|
|
21412
|
+
const response = await this.execute(
|
|
21413
|
+
() => this.trpc.reports.retrieveByExternalId.query({ externalId })
|
|
21414
|
+
);
|
|
21415
|
+
return this.instantiate(response);
|
|
21416
|
+
}
|
|
21168
21417
|
async update(id, data) {
|
|
21169
21418
|
const validated = this.validate(shared.updateTSCReportInputSchema, data);
|
|
21170
21419
|
const nestedData = this.transformUpdateToNested(validated);
|
|
@@ -21447,6 +21696,18 @@ var MexAddressesResource = class extends AddressesResource {
|
|
|
21447
21696
|
);
|
|
21448
21697
|
return this.instantiate(response);
|
|
21449
21698
|
}
|
|
21699
|
+
async retrieveByMetadata(key, value) {
|
|
21700
|
+
const response = await this.execute(
|
|
21701
|
+
() => this.trpc.addresses.retrieveByMetadata.query({ key, value })
|
|
21702
|
+
);
|
|
21703
|
+
return this.instantiate(response);
|
|
21704
|
+
}
|
|
21705
|
+
async retrieveByExternalId(externalId) {
|
|
21706
|
+
const response = await this.execute(
|
|
21707
|
+
() => this.trpc.addresses.retrieveByExternalId.query({ externalId })
|
|
21708
|
+
);
|
|
21709
|
+
return this.instantiate(response);
|
|
21710
|
+
}
|
|
21450
21711
|
/**
|
|
21451
21712
|
* Updates an address with Mexico-format fields.
|
|
21452
21713
|
*/
|
|
@@ -22707,5 +22968,5 @@ exports.oneOf = oneOf;
|
|
|
22707
22968
|
exports.registerSDKClass = registerSDKClass;
|
|
22708
22969
|
exports.registerScope = registerScope;
|
|
22709
22970
|
exports.startsWith = startsWith;
|
|
22710
|
-
//# sourceMappingURL=chunk-
|
|
22711
|
-
//# sourceMappingURL=chunk-
|
|
22971
|
+
//# sourceMappingURL=chunk-2CIR32CT.cjs.map
|
|
22972
|
+
//# sourceMappingURL=chunk-2CIR32CT.cjs.map
|