@riocrypto/common 1.0.2105 → 1.0.2107
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.
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { BankPayoutFailureReason } from "../types/bank-payout-failure-reason";
|
|
1
2
|
import { Subjects } from "./subjects";
|
|
2
3
|
export interface STPWithdrawalFailedEvent {
|
|
3
4
|
subject: Subjects.STPWithdrawalFailed;
|
|
4
5
|
data: {
|
|
5
6
|
orderId: string;
|
|
7
|
+
reason: BankPayoutFailureReason;
|
|
6
8
|
};
|
|
7
9
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { BankPayoutFailureReason } from "../types/bank-payout-failure-reason";
|
|
1
2
|
import { Subjects } from "./subjects";
|
|
2
3
|
export interface BitsoWithdrawalFailedEvent {
|
|
3
4
|
subject: Subjects.BitsoWithdrawalFailed;
|
|
4
5
|
data: {
|
|
5
6
|
orderId: string;
|
|
7
|
+
reason: BankPayoutFailureReason;
|
|
6
8
|
};
|
|
7
9
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare enum AuthPermission {
|
|
2
|
+
CreateAndModifyOrders = "createAndModifyOrders",
|
|
3
|
+
CreateAndModifyUsers = "createAndModifyUsers",
|
|
4
|
+
CreateAndModifyBankAccounts = "createAndModifyBankAccounts",
|
|
5
|
+
CreateAndModifyCryptoAddresses = "createAndModifyCryptoAddresses",
|
|
6
|
+
CreateAndModifyTeamMembers = "createAndModifyTeamMembers"
|
|
7
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AuthPermission = void 0;
|
|
4
|
+
var AuthPermission;
|
|
5
|
+
(function (AuthPermission) {
|
|
6
|
+
AuthPermission["CreateAndModifyOrders"] = "createAndModifyOrders";
|
|
7
|
+
AuthPermission["CreateAndModifyUsers"] = "createAndModifyUsers";
|
|
8
|
+
AuthPermission["CreateAndModifyBankAccounts"] = "createAndModifyBankAccounts";
|
|
9
|
+
AuthPermission["CreateAndModifyCryptoAddresses"] = "createAndModifyCryptoAddresses";
|
|
10
|
+
AuthPermission["CreateAndModifyTeamMembers"] = "createAndModifyTeamMembers";
|
|
11
|
+
})(AuthPermission = exports.AuthPermission || (exports.AuthPermission = {}));
|
package/build/types/auth.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { APIKey } from "./api-key";
|
|
2
|
+
import { AuthPermission } from "./auth-permission";
|
|
2
3
|
import { AuthRole } from "./auth-role";
|
|
3
4
|
import { SecurityQuestion } from "./security-question";
|
|
4
5
|
export interface Auth {
|
|
@@ -25,5 +26,6 @@ export interface Auth {
|
|
|
25
26
|
middleName?: string;
|
|
26
27
|
lastName?: string;
|
|
27
28
|
secondLastName?: string;
|
|
28
|
-
role
|
|
29
|
+
role?: AuthRole;
|
|
30
|
+
permissions?: AuthPermission[];
|
|
29
31
|
}
|