@riocrypto/common 1.0.1520 → 1.0.1522

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.
@@ -1036,10 +1036,9 @@ class RioAdminClient {
1036
1036
  }
1037
1037
  createWebhookRegistration({ userId, brokerId, type, url, }) {
1038
1038
  return __awaiter(this, void 0, void 0, function* () {
1039
- const { data } = yield this.axios.post("/api/webhooks", {
1039
+ const { data } = yield this.axios.post(`/api/webhooks/${type}`, {
1040
1040
  userId,
1041
1041
  brokerId,
1042
- type,
1043
1042
  url,
1044
1043
  });
1045
1044
  return data;
@@ -812,10 +812,9 @@ class RioClient {
812
812
  }
813
813
  createWebhookRegistration({ userId, brokerId, type, url, }) {
814
814
  return __awaiter(this, void 0, void 0, function* () {
815
- const { data } = yield this.axios.post("/api/webhooks", {
815
+ const { data } = yield this.axios.post(`/api/webhooks/${type}`, {
816
816
  userId,
817
817
  brokerId,
818
- type,
819
818
  url,
820
819
  });
821
820
  return data;
package/build/index.d.ts CHANGED
@@ -243,6 +243,9 @@ export * from "./types/onboarding";
243
243
  export * from "./types/alert";
244
244
  export * from "./types/alert-type";
245
245
  export * from "./types/alert-trigger-condition";
246
+ export * from "./types/admin-action";
247
+ export * from "./types/admin-action-type";
248
+ export * from "./types/admin-action-status";
246
249
  export * from "./classes/Asset";
247
250
  export * from "./classes/KYCFieldClass";
248
251
  export * from "./classes/KYCFileClass";
package/build/index.js CHANGED
@@ -259,6 +259,9 @@ __exportStar(require("./types/onboarding"), exports);
259
259
  __exportStar(require("./types/alert"), exports);
260
260
  __exportStar(require("./types/alert-type"), exports);
261
261
  __exportStar(require("./types/alert-trigger-condition"), exports);
262
+ __exportStar(require("./types/admin-action"), exports);
263
+ __exportStar(require("./types/admin-action-type"), exports);
264
+ __exportStar(require("./types/admin-action-status"), exports);
262
265
  __exportStar(require("./classes/Asset"), exports);
263
266
  __exportStar(require("./classes/KYCFieldClass"), exports);
264
267
  __exportStar(require("./classes/KYCFileClass"), exports);
@@ -0,0 +1,7 @@
1
+ export declare enum AdminActionStatus {
2
+ Created = "created",
3
+ Running = "running",
4
+ Completed = "completed",
5
+ Cancelled = "cancelled",
6
+ Failed = "failed"
7
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AdminActionStatus = void 0;
4
+ var AdminActionStatus;
5
+ (function (AdminActionStatus) {
6
+ AdminActionStatus["Created"] = "created";
7
+ AdminActionStatus["Running"] = "running";
8
+ AdminActionStatus["Completed"] = "completed";
9
+ AdminActionStatus["Cancelled"] = "cancelled";
10
+ AdminActionStatus["Failed"] = "failed";
11
+ })(AdminActionStatus = exports.AdminActionStatus || (exports.AdminActionStatus = {}));
@@ -0,0 +1,3 @@
1
+ export declare enum AdminActionType {
2
+ BulkFXRegistration = "bulkFXRegistration"
3
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AdminActionType = void 0;
4
+ var AdminActionType;
5
+ (function (AdminActionType) {
6
+ AdminActionType["BulkFXRegistration"] = "bulkFXRegistration";
7
+ })(AdminActionType = exports.AdminActionType || (exports.AdminActionType = {}));
@@ -0,0 +1,8 @@
1
+ import { AdminActionType } from "./admin-action-type";
2
+ export interface AdminAction {
3
+ id: string;
4
+ type: AdminActionType;
5
+ createdAt: Date;
6
+ status: AdminActionType;
7
+ adminAuthId: string;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1520",
3
+ "version": "1.0.1522",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",