@delopay/sdk 0.28.0 → 0.30.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-U6GMDSVQ.js → chunk-INP6UXMJ.js} +28 -29
- package/dist/chunk-INP6UXMJ.js.map +1 -0
- package/dist/index.cjs +27 -28
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -14
- package/dist/index.d.ts +14 -14
- package/dist/index.js +1 -1
- package/dist/internal.cjs +41 -42
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +4 -4
- package/dist/internal.d.ts +4 -4
- package/dist/internal.js +15 -15
- package/dist/internal.js.map +1 -1
- package/package.json +16 -16
- package/dist/chunk-U6GMDSVQ.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -185,16 +185,21 @@ var Authentication = class {
|
|
|
185
185
|
body: params
|
|
186
186
|
});
|
|
187
187
|
}
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
188
|
+
/** Sync authentication status. `POST /authentication/{merchantId}/{authId}/sync` */
|
|
189
|
+
async sync(merchantId, authId, params) {
|
|
190
|
+
return this.request(
|
|
191
|
+
"POST",
|
|
192
|
+
`/authentication/${encodeURIComponent(merchantId)}/${encodeURIComponent(authId)}/sync`,
|
|
193
|
+
{ body: params }
|
|
194
|
+
);
|
|
192
195
|
}
|
|
193
|
-
/** Redirect after authentication. `POST /authentication/{authId}/redirect` */
|
|
194
|
-
async redirect(authId, params) {
|
|
195
|
-
return this.request(
|
|
196
|
-
|
|
197
|
-
|
|
196
|
+
/** Redirect after authentication. `POST /authentication/{merchantId}/{authId}/redirect` */
|
|
197
|
+
async redirect(merchantId, authId, params) {
|
|
198
|
+
return this.request(
|
|
199
|
+
"POST",
|
|
200
|
+
`/authentication/${encodeURIComponent(merchantId)}/${encodeURIComponent(authId)}/redirect`,
|
|
201
|
+
{ body: params }
|
|
202
|
+
);
|
|
198
203
|
}
|
|
199
204
|
/** Enable authn methods token. `POST /authentication/{authId}/enabled-authn-methods-token` */
|
|
200
205
|
async enabledAuthnMethodsToken(authId, params) {
|
|
@@ -831,11 +836,11 @@ var PaymentLinks = class {
|
|
|
831
836
|
`/payment-link/${encodeURIComponent(merchantId)}/${encodeURIComponent(paymentId)}`
|
|
832
837
|
);
|
|
833
838
|
}
|
|
834
|
-
/** Get payment link status. `GET /payment-
|
|
839
|
+
/** Get payment link status. `GET /payment-link/status/{merchantId}/{paymentId}` */
|
|
835
840
|
async status(merchantId, paymentId) {
|
|
836
841
|
return this.request(
|
|
837
842
|
"GET",
|
|
838
|
-
`/payment-
|
|
843
|
+
`/payment-link/status/${encodeURIComponent(merchantId)}/${encodeURIComponent(paymentId)}`
|
|
839
844
|
);
|
|
840
845
|
}
|
|
841
846
|
};
|
|
@@ -1308,13 +1313,13 @@ var Payouts = class {
|
|
|
1308
1313
|
async listByFilter(params) {
|
|
1309
1314
|
return this.request("POST", "/payouts/list", { body: params });
|
|
1310
1315
|
}
|
|
1311
|
-
/** Get payout filter options. `
|
|
1316
|
+
/** Get payout filter options. `GET /payouts/filter` */
|
|
1312
1317
|
async getFilters(params) {
|
|
1313
|
-
return this.request("
|
|
1318
|
+
return this.request("GET", "/payouts/filter", { query: params });
|
|
1314
1319
|
}
|
|
1315
|
-
/** Get payout filters (profile-scoped). `
|
|
1320
|
+
/** Get payout filters (profile-scoped). `GET /payouts/profile/filter` */
|
|
1316
1321
|
async getFiltersByProfile(params) {
|
|
1317
|
-
return this.request("
|
|
1322
|
+
return this.request("GET", "/payouts/profile/filter", { query: params });
|
|
1318
1323
|
}
|
|
1319
1324
|
/** Get payout aggregates. `GET /payouts/aggregate` */
|
|
1320
1325
|
async aggregate(params) {
|
|
@@ -2088,7 +2093,7 @@ var Users = class {
|
|
|
2088
2093
|
return this.request("POST", "/user/employees/invite", { body: params });
|
|
2089
2094
|
}
|
|
2090
2095
|
async acceptInvitation(params) {
|
|
2091
|
-
return this.request("POST", "/user/invite/accept", { body: params });
|
|
2096
|
+
return this.request("POST", "/user/employees/invite/accept", { body: params });
|
|
2092
2097
|
}
|
|
2093
2098
|
/**
|
|
2094
2099
|
* Accept an invitation via the email-link flow.
|
|
@@ -2212,12 +2217,14 @@ var Users = class {
|
|
|
2212
2217
|
return this.request("POST", "/user/auth/select", { body: params });
|
|
2213
2218
|
}
|
|
2214
2219
|
/** List users in lineage. `GET /user/employees/list` */
|
|
2215
|
-
async listUsersInLineage() {
|
|
2216
|
-
return this.request("GET", "/user/employees/list"
|
|
2220
|
+
async listUsersInLineage(params) {
|
|
2221
|
+
return this.request("GET", "/user/employees/list", {
|
|
2222
|
+
query: params
|
|
2223
|
+
});
|
|
2217
2224
|
}
|
|
2218
|
-
/** Resend invite. `POST /user/
|
|
2225
|
+
/** Resend invite. `POST /user/resend-invite` */
|
|
2219
2226
|
async resendInvite(params) {
|
|
2220
|
-
return this.request("POST", "/user/
|
|
2227
|
+
return this.request("POST", "/user/resend-invite", { body: params });
|
|
2221
2228
|
}
|
|
2222
2229
|
/**
|
|
2223
2230
|
* Get the caller's parent permission groups + scopes.
|
|
@@ -2246,14 +2253,6 @@ var Users = class {
|
|
|
2246
2253
|
async listUpdatableRoles() {
|
|
2247
2254
|
return this.request("GET", "/user/role/list/update");
|
|
2248
2255
|
}
|
|
2249
|
-
/** Get permission info. `GET /user/permission-info` */
|
|
2250
|
-
async getPermissionInfo() {
|
|
2251
|
-
return this.request("GET", "/user/permission-info");
|
|
2252
|
-
}
|
|
2253
|
-
/** Get module list. `GET /user/module/list` */
|
|
2254
|
-
async getModuleList() {
|
|
2255
|
-
return this.request("GET", "/user/module/list");
|
|
2256
|
-
}
|
|
2257
2256
|
/** Get parent list. `GET /user/parent/list` */
|
|
2258
2257
|
async getParentList() {
|
|
2259
2258
|
return this.request("GET", "/user/parent/list");
|