@delopay/sdk 0.1.5 → 0.1.7
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/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -154,12 +154,12 @@ var AuditLogs = class {
|
|
|
154
154
|
this.request = request;
|
|
155
155
|
}
|
|
156
156
|
async list(params) {
|
|
157
|
-
return this.request("GET", "/audit", {
|
|
157
|
+
return this.request("GET", "/admin-portal/audit", {
|
|
158
158
|
query: params
|
|
159
159
|
});
|
|
160
160
|
}
|
|
161
161
|
async retrieve(logId) {
|
|
162
|
-
return this.request("GET", `/audit/${logId}`);
|
|
162
|
+
return this.request("GET", `/admin-portal/audit/${logId}`);
|
|
163
163
|
}
|
|
164
164
|
};
|
|
165
165
|
|
|
@@ -2128,7 +2128,7 @@ var AnalyticsDomain = class {
|
|
|
2128
2128
|
/** Get metrics. `POST /analytics/v1/metrics/{domain}` */
|
|
2129
2129
|
async metrics(params, scope) {
|
|
2130
2130
|
const prefix = scope ? `/analytics/v1/${scope}` : "/analytics/v1";
|
|
2131
|
-
return this.request("POST", `${prefix}/metrics/${this.domain}`, { body: params });
|
|
2131
|
+
return this.request("POST", `${prefix}/metrics/${this.domain}`, { body: [params] });
|
|
2132
2132
|
}
|
|
2133
2133
|
/** Get filters. `POST /analytics/v1/filters/{domain}` */
|
|
2134
2134
|
async filters(params, scope) {
|