@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 CHANGED
@@ -187,12 +187,12 @@ var AuditLogs = class {
187
187
  this.request = request;
188
188
  }
189
189
  async list(params) {
190
- return this.request("GET", "/audit", {
190
+ return this.request("GET", "/admin-portal/audit", {
191
191
  query: params
192
192
  });
193
193
  }
194
194
  async retrieve(logId) {
195
- return this.request("GET", `/audit/${logId}`);
195
+ return this.request("GET", `/admin-portal/audit/${logId}`);
196
196
  }
197
197
  };
198
198
 
@@ -2161,7 +2161,7 @@ var AnalyticsDomain = class {
2161
2161
  /** Get metrics. `POST /analytics/v1/metrics/{domain}` */
2162
2162
  async metrics(params, scope) {
2163
2163
  const prefix = scope ? `/analytics/v1/${scope}` : "/analytics/v1";
2164
- return this.request("POST", `${prefix}/metrics/${this.domain}`, { body: params });
2164
+ return this.request("POST", `${prefix}/metrics/${this.domain}`, { body: [params] });
2165
2165
  }
2166
2166
  /** Get filters. `POST /analytics/v1/filters/{domain}` */
2167
2167
  async filters(params, scope) {