@delopay/sdk 0.20.0 → 0.20.1
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-QGQR2OBR.js → chunk-4FTI5GO7.js} +21 -1
- package/dist/chunk-4FTI5GO7.js.map +1 -0
- package/dist/index.cjs +20 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +74 -1
- package/dist/index.d.ts +74 -1
- package/dist/index.js +1 -1
- package/dist/internal.cjs +20 -0
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +1 -1
- package/dist/internal.d.ts +1 -1
- package/dist/internal.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-QGQR2OBR.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1947,6 +1947,26 @@ var Users = class {
|
|
|
1947
1947
|
async signOut() {
|
|
1948
1948
|
return this.request("POST", "/user/signout");
|
|
1949
1949
|
}
|
|
1950
|
+
/**
|
|
1951
|
+
* Paginated login history for the authenticated user — IP, User-Agent,
|
|
1952
|
+
* country / city / lat-lon (when GeoIP is enabled in backend), success
|
|
1953
|
+
* and failure events with their reasons. Strictly scoped to the JWT
|
|
1954
|
+
* subject; a user can only see their own activity.
|
|
1955
|
+
*
|
|
1956
|
+
* `GET /user/me/login-activity`. Requires a logged-in JWT.
|
|
1957
|
+
*
|
|
1958
|
+
* The backend returns an empty page when a Delopay admin is impersonating
|
|
1959
|
+
* a non-admin merchant, so the admin's metadata never renders inside the
|
|
1960
|
+
* merchant dashboard.
|
|
1961
|
+
*/
|
|
1962
|
+
async listLoginActivity(params) {
|
|
1963
|
+
if (params === void 0) {
|
|
1964
|
+
return this.request("GET", "/user/me/login-activity");
|
|
1965
|
+
}
|
|
1966
|
+
return this.request("GET", "/user/me/login-activity", {
|
|
1967
|
+
query: params
|
|
1968
|
+
});
|
|
1969
|
+
}
|
|
1950
1970
|
async getDetails() {
|
|
1951
1971
|
return this.request("GET", "/user");
|
|
1952
1972
|
}
|