@delopay/sdk 0.329.0 → 0.331.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/{chunk-NKAIFOCG.js → chunk-FAUZMLOT.js} +67 -2
- package/dist/chunk-FAUZMLOT.js.map +1 -0
- package/dist/{index-CuVWRoHh.d.cts → index-meHCcgNA.d.cts} +206 -3
- package/dist/{index-CuVWRoHh.d.ts → index-meHCcgNA.d.ts} +206 -3
- package/dist/index.cjs +66 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/internal.cjs +66 -1
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +2 -2
- package/dist/internal.d.ts +2 -2
- package/dist/internal.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-NKAIFOCG.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1484,6 +1484,51 @@ var Customers = class {
|
|
|
1484
1484
|
constructor(request) {
|
|
1485
1485
|
this.request = request;
|
|
1486
1486
|
}
|
|
1487
|
+
/**
|
|
1488
|
+
* Check identity import rows (email addresses, names, handles) and say what an import would do
|
|
1489
|
+
* with each. Writes nothing. Merchant-wide callers only.
|
|
1490
|
+
*/
|
|
1491
|
+
async previewIdentityImport(params, options) {
|
|
1492
|
+
return this.request("POST", "/customers/identity-history/import/preview", {
|
|
1493
|
+
body: params,
|
|
1494
|
+
...options
|
|
1495
|
+
});
|
|
1496
|
+
}
|
|
1497
|
+
/**
|
|
1498
|
+
* Record identity import rows in the customers' identity history, apart from their current
|
|
1499
|
+
* details. Idempotent per `idempotency_key`; the same key with different rows is refused (400, `IR_38`).
|
|
1500
|
+
* A transient failure is retried with the unchanged key when client retries are enabled.
|
|
1501
|
+
*/
|
|
1502
|
+
async importIdentityHistory(params, options) {
|
|
1503
|
+
return this.request("POST", "/customers/identity-history/import", {
|
|
1504
|
+
body: params,
|
|
1505
|
+
...options,
|
|
1506
|
+
bodyIdempotencyKey: params.idempotency_key
|
|
1507
|
+
});
|
|
1508
|
+
}
|
|
1509
|
+
/** Read an identity import back: its rows and the history entries they map to. */
|
|
1510
|
+
async retrieveIdentityImport(runId, options) {
|
|
1511
|
+
return this.request("GET", `/customers/identity-history/import/${encodeURIComponent(runId)}`, {
|
|
1512
|
+
...options
|
|
1513
|
+
});
|
|
1514
|
+
}
|
|
1515
|
+
/** The identity history of up to 1,000 customers. */
|
|
1516
|
+
async listIdentityHistory(params, options) {
|
|
1517
|
+
return this.request("POST", "/customers/identity-history/list", {
|
|
1518
|
+
body: params,
|
|
1519
|
+
...options
|
|
1520
|
+
});
|
|
1521
|
+
}
|
|
1522
|
+
/**
|
|
1523
|
+
* Search the merchant's identity history for email addresses, names and handles containing a
|
|
1524
|
+
* text of at least three characters. The text travels in the body, never in the URL.
|
|
1525
|
+
*/
|
|
1526
|
+
async searchIdentityHistory(params, options) {
|
|
1527
|
+
return this.request("POST", "/customers/identity-history/search", {
|
|
1528
|
+
body: params,
|
|
1529
|
+
...options
|
|
1530
|
+
});
|
|
1531
|
+
}
|
|
1487
1532
|
/** Issue a shop-scoped buyer portal link for this customer. */
|
|
1488
1533
|
async createPortalLink(customerId, params, options) {
|
|
1489
1534
|
return this.request("POST", `/customers/${encodeURIComponent(customerId)}/portal-links`, {
|
|
@@ -5663,10 +5708,30 @@ var Users = class {
|
|
|
5663
5708
|
query: params
|
|
5664
5709
|
});
|
|
5665
5710
|
}
|
|
5666
|
-
/**
|
|
5711
|
+
/**
|
|
5712
|
+
* Send a pending member a new invitation link. `POST /user/resend-invite`
|
|
5713
|
+
*
|
|
5714
|
+
* The new link replaces the one before it, which stops working. It works
|
|
5715
|
+
* for `link_valid_for_days` days, 7 by default. Works for any pending member
|
|
5716
|
+
* `listUsersInLineage` shows you. A refusal is a `UR_68` error
|
|
5717
|
+
* (`no_pending_invitation`, `invite_link_validity_out_of_range`) or a
|
|
5718
|
+
* `UR_70` `invitation_expired` when the access the invitation offers has
|
|
5719
|
+
* ended.
|
|
5720
|
+
*/
|
|
5667
5721
|
async resendInvite(params) {
|
|
5668
5722
|
return this.request("POST", "/user/resend-invite", { body: params });
|
|
5669
5723
|
}
|
|
5724
|
+
/**
|
|
5725
|
+
* A pending member's current invitation link, or why it is not shown.
|
|
5726
|
+
* `GET /user/employees/{user_id}/invite-link`
|
|
5727
|
+
*
|
|
5728
|
+
* Only the link of an account the invitation created, that nobody has used
|
|
5729
|
+
* since, is returned: the link signs its holder in without a password. Every
|
|
5730
|
+
* link returned is audited. Needs team write access.
|
|
5731
|
+
*/
|
|
5732
|
+
async getInviteLink(userId) {
|
|
5733
|
+
return this.request("GET", `/user/employees/${encodeURIComponent(userId)}/invite-link`);
|
|
5734
|
+
}
|
|
5670
5735
|
/**
|
|
5671
5736
|
* Get the caller's parent permission groups + scopes.
|
|
5672
5737
|
*
|