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