@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
|
@@ -1196,6 +1196,51 @@ var Customers = class {
|
|
|
1196
1196
|
constructor(request) {
|
|
1197
1197
|
this.request = request;
|
|
1198
1198
|
}
|
|
1199
|
+
/**
|
|
1200
|
+
* Check identity import rows (email addresses, names, handles) and say what an import would do
|
|
1201
|
+
* with each. Writes nothing. Merchant-wide callers only.
|
|
1202
|
+
*/
|
|
1203
|
+
async previewIdentityImport(params, options) {
|
|
1204
|
+
return this.request("POST", "/customers/identity-history/import/preview", {
|
|
1205
|
+
body: params,
|
|
1206
|
+
...options
|
|
1207
|
+
});
|
|
1208
|
+
}
|
|
1209
|
+
/**
|
|
1210
|
+
* Record identity import rows in the customers' identity history, apart from their current
|
|
1211
|
+
* details. Idempotent per `idempotency_key`; the same key with different rows is refused (400, `IR_38`).
|
|
1212
|
+
* A transient failure is retried with the unchanged key when client retries are enabled.
|
|
1213
|
+
*/
|
|
1214
|
+
async importIdentityHistory(params, options) {
|
|
1215
|
+
return this.request("POST", "/customers/identity-history/import", {
|
|
1216
|
+
body: params,
|
|
1217
|
+
...options,
|
|
1218
|
+
bodyIdempotencyKey: params.idempotency_key
|
|
1219
|
+
});
|
|
1220
|
+
}
|
|
1221
|
+
/** Read an identity import back: its rows and the history entries they map to. */
|
|
1222
|
+
async retrieveIdentityImport(runId, options) {
|
|
1223
|
+
return this.request("GET", `/customers/identity-history/import/${encodeURIComponent(runId)}`, {
|
|
1224
|
+
...options
|
|
1225
|
+
});
|
|
1226
|
+
}
|
|
1227
|
+
/** The identity history of up to 1,000 customers. */
|
|
1228
|
+
async listIdentityHistory(params, options) {
|
|
1229
|
+
return this.request("POST", "/customers/identity-history/list", {
|
|
1230
|
+
body: params,
|
|
1231
|
+
...options
|
|
1232
|
+
});
|
|
1233
|
+
}
|
|
1234
|
+
/**
|
|
1235
|
+
* Search the merchant's identity history for email addresses, names and handles containing a
|
|
1236
|
+
* text of at least three characters. The text travels in the body, never in the URL.
|
|
1237
|
+
*/
|
|
1238
|
+
async searchIdentityHistory(params, options) {
|
|
1239
|
+
return this.request("POST", "/customers/identity-history/search", {
|
|
1240
|
+
body: params,
|
|
1241
|
+
...options
|
|
1242
|
+
});
|
|
1243
|
+
}
|
|
1199
1244
|
/** Issue a shop-scoped buyer portal link for this customer. */
|
|
1200
1245
|
async createPortalLink(customerId, params, options) {
|
|
1201
1246
|
return this.request("POST", `/customers/${encodeURIComponent(customerId)}/portal-links`, {
|
|
@@ -5375,10 +5420,30 @@ var Users = class {
|
|
|
5375
5420
|
query: params
|
|
5376
5421
|
});
|
|
5377
5422
|
}
|
|
5378
|
-
/**
|
|
5423
|
+
/**
|
|
5424
|
+
* Send a pending member a new invitation link. `POST /user/resend-invite`
|
|
5425
|
+
*
|
|
5426
|
+
* The new link replaces the one before it, which stops working. It works
|
|
5427
|
+
* for `link_valid_for_days` days, 7 by default. Works for any pending member
|
|
5428
|
+
* `listUsersInLineage` shows you. A refusal is a `UR_68` error
|
|
5429
|
+
* (`no_pending_invitation`, `invite_link_validity_out_of_range`) or a
|
|
5430
|
+
* `UR_70` `invitation_expired` when the access the invitation offers has
|
|
5431
|
+
* ended.
|
|
5432
|
+
*/
|
|
5379
5433
|
async resendInvite(params) {
|
|
5380
5434
|
return this.request("POST", "/user/resend-invite", { body: params });
|
|
5381
5435
|
}
|
|
5436
|
+
/**
|
|
5437
|
+
* A pending member's current invitation link, or why it is not shown.
|
|
5438
|
+
* `GET /user/employees/{user_id}/invite-link`
|
|
5439
|
+
*
|
|
5440
|
+
* Only the link of an account the invitation created, that nobody has used
|
|
5441
|
+
* since, is returned: the link signs its holder in without a password. Every
|
|
5442
|
+
* link returned is audited. Needs team write access.
|
|
5443
|
+
*/
|
|
5444
|
+
async getInviteLink(userId) {
|
|
5445
|
+
return this.request("GET", `/user/employees/${encodeURIComponent(userId)}/invite-link`);
|
|
5446
|
+
}
|
|
5382
5447
|
/**
|
|
5383
5448
|
* Get the caller's parent permission groups + scopes.
|
|
5384
5449
|
*
|
|
@@ -15954,4 +16019,4 @@ export {
|
|
|
15954
16019
|
decodeNativePanes,
|
|
15955
16020
|
encodeNativePanes
|
|
15956
16021
|
};
|
|
15957
|
-
//# sourceMappingURL=chunk-
|
|
16022
|
+
//# sourceMappingURL=chunk-FAUZMLOT.js.map
|