@delopay/sdk 0.98.0 → 0.100.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-JBBUTXXY.js → chunk-HK4S2SQB.js} +67 -1
- package/dist/chunk-HK4S2SQB.js.map +1 -0
- package/dist/index.cjs +66 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +210 -5
- package/dist/index.d.ts +210 -5
- package/dist/index.js +1 -1
- package/dist/internal.cjs +86 -0
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +15 -3
- package/dist/internal.d.ts +15 -3
- package/dist/internal.js +21 -1
- package/dist/internal.js.map +1 -1
- package/package.json +18 -17
- package/dist/chunk-JBBUTXXY.js.map +0 -1
|
@@ -3134,6 +3134,45 @@ var Users = class {
|
|
|
3134
3134
|
async deleteRole(roleId) {
|
|
3135
3135
|
return this.request("DELETE", `/user/role/${encodeURIComponent(roleId)}`);
|
|
3136
3136
|
}
|
|
3137
|
+
/**
|
|
3138
|
+
* Read which individual connector accounts a role may see.
|
|
3139
|
+
*
|
|
3140
|
+
* `GET /user/role/{roleId}/connectors`
|
|
3141
|
+
*
|
|
3142
|
+
* **Check `restricted` before reading `connectors`.** An empty list is
|
|
3143
|
+
* ambiguous by itself, so the backend states which case it is: `false` means
|
|
3144
|
+
* the role holds no grant and sees whatever its entity and profile scope
|
|
3145
|
+
* already allowed. Rendering an empty `connectors` array as "this role sees
|
|
3146
|
+
* nothing" inverts the meaning.
|
|
3147
|
+
*
|
|
3148
|
+
* Requires the permission that *edits a role*, not a connector permission.
|
|
3149
|
+
*/
|
|
3150
|
+
async getRoleConnectors(roleId) {
|
|
3151
|
+
return this.request("GET", `/user/role/${encodeURIComponent(roleId)}/connectors`);
|
|
3152
|
+
}
|
|
3153
|
+
/**
|
|
3154
|
+
* Replace the set of connector accounts a role may see.
|
|
3155
|
+
*
|
|
3156
|
+
* `PUT /user/role/{roleId}/connectors`
|
|
3157
|
+
*
|
|
3158
|
+
* The call **replaces** the whole set rather than adding to it, so send the
|
|
3159
|
+
* complete list every time. An empty `merchant_connector_ids` clears the
|
|
3160
|
+
* grant and returns the role to unrestricted.
|
|
3161
|
+
*
|
|
3162
|
+
* The backend refuses an id that is not a connector account of the caller's
|
|
3163
|
+
* own merchant, an `Organization`-scoped role (a connector account belongs to
|
|
3164
|
+
* exactly one merchant, so an org-spanning role cannot hold one coherently),
|
|
3165
|
+
* and any predefined role (one static entry shared by every tenant).
|
|
3166
|
+
*
|
|
3167
|
+
* Editing a grant invalidates the role cache and blacklists tokens minted
|
|
3168
|
+
* before the edit, so **users holding this role must sign in again**. Worth
|
|
3169
|
+
* saying in the UI before the save, not after.
|
|
3170
|
+
*/
|
|
3171
|
+
async updateRoleConnectors(roleId, params) {
|
|
3172
|
+
return this.request("PUT", `/user/role/${encodeURIComponent(roleId)}/connectors`, {
|
|
3173
|
+
body: params
|
|
3174
|
+
});
|
|
3175
|
+
}
|
|
3137
3176
|
};
|
|
3138
3177
|
|
|
3139
3178
|
// src/resources/verification.ts
|
|
@@ -3286,6 +3325,33 @@ var Analytics = class {
|
|
|
3286
3325
|
query: params
|
|
3287
3326
|
});
|
|
3288
3327
|
}
|
|
3328
|
+
/**
|
|
3329
|
+
* The recent payments behind one clicked geo target: a map country (in the
|
|
3330
|
+
* active claim mode), optionally narrowed to an IP-resolved city, or one
|
|
3331
|
+
* buyer-local heatmap cell (`dow` + `hour`, paid sessions only). Same
|
|
3332
|
+
* window/scope/filter and gating contract as `geo`; capped at 50 rows,
|
|
3333
|
+
* newest first, with the full match count alongside.
|
|
3334
|
+
* `GET /analytics/geo/transactions`
|
|
3335
|
+
*/
|
|
3336
|
+
async geoTransactions(params) {
|
|
3337
|
+
return this.request("GET", "/analytics/geo/transactions", {
|
|
3338
|
+
query: params
|
|
3339
|
+
});
|
|
3340
|
+
}
|
|
3341
|
+
/**
|
|
3342
|
+
* The recent payments behind one clicked device target: exactly one of a
|
|
3343
|
+
* browser family, a platform family, an identified device-model label, or
|
|
3344
|
+
* a device class. Family/model targets are resolved server-side with the
|
|
3345
|
+
* same classifiers the cards use. Same window/scope/filter and gating
|
|
3346
|
+
* contract as `devices`; 50 rows per page (`offset` for the next page),
|
|
3347
|
+
* newest first, with the full match count alongside.
|
|
3348
|
+
* `GET /analytics/devices/transactions`
|
|
3349
|
+
*/
|
|
3350
|
+
async deviceTransactions(params) {
|
|
3351
|
+
return this.request("GET", "/analytics/devices/transactions", {
|
|
3352
|
+
query: params
|
|
3353
|
+
});
|
|
3354
|
+
}
|
|
3289
3355
|
/** Global search. `POST /analytics/search` */
|
|
3290
3356
|
async search(params) {
|
|
3291
3357
|
return this.request("POST", "/analytics/search", { body: params });
|
|
@@ -6102,4 +6168,4 @@ export {
|
|
|
6102
6168
|
focusedCheckoutUrl,
|
|
6103
6169
|
CHECKOUT_EVENT_KINDS
|
|
6104
6170
|
};
|
|
6105
|
-
//# sourceMappingURL=chunk-
|
|
6171
|
+
//# sourceMappingURL=chunk-HK4S2SQB.js.map
|