@acosmi/sdk-ts 1.9.0 → 2.0.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.
@@ -6343,6 +6343,15 @@ Client.prototype.listLegalSKUs = async function(region, signal) {
6343
6343
  );
6344
6344
  return resp.data ?? [];
6345
6345
  };
6346
+ Client.prototype.getMyLawyerCredentialStatus = async function(signal) {
6347
+ const resp = await this.doJSON(
6348
+ "GET",
6349
+ `/api/casehall/lawyer-credentials/my`,
6350
+ null,
6351
+ signal
6352
+ );
6353
+ return resp.data ?? [];
6354
+ };
6346
6355
 
6347
6356
  // src/enterprise/client.ts
6348
6357
  Client.prototype.listMyEnterprises = async function(signal) {
@@ -6438,6 +6447,15 @@ Client.prototype.getOrgConsumeReport = async function(enterpriseId, signal) {
6438
6447
  }
6439
6448
  return resp.data;
6440
6449
  };
6450
+ Client.prototype.getMyEnterpriseKycStatus = async function(signal) {
6451
+ const resp = await this.doJSON(
6452
+ "GET",
6453
+ `/api/distribution/enterprise/kyc/my`,
6454
+ null,
6455
+ signal
6456
+ );
6457
+ return resp.data ?? {};
6458
+ };
6441
6459
 
6442
6460
  // src/finance/client.ts
6443
6461
  Client.prototype.requestRefund = async function(req, signal) {
@@ -6489,13 +6507,8 @@ Client.prototype.initiateCorporateTransfer = async function(req, signal) {
6489
6507
  return resp.data;
6490
6508
  };
6491
6509
  Client.prototype.uploadCorporateTransferProof = async function(id, proofUrl, signal) {
6492
- const qs = new URLSearchParams({ proofUrl });
6493
- const resp = await this.doJSON(
6494
- "POST",
6495
- `/api/distribution/finance/corporate-transfer/${id}/upload-proof?${qs.toString()}`,
6496
- null,
6497
- signal
6498
- );
6510
+ const path = `/api/distribution/finance/corporate-transfer/${encodeURIComponent(String(id))}/upload-proof?proofUrl=${encodeURIComponent(proofUrl)}`;
6511
+ const resp = await this.doJSON("POST", path, null, signal);
6499
6512
  return resp.data ?? false;
6500
6513
  };
6501
6514
  Client.prototype.listMyCorporateTransfers = async function(signal) {