@riocrypto/common-server 1.0.2774 → 1.0.2776
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/build/middlewares/require-min-admin-role.js +1 -1
- package/build/models/CEP.d.ts +2 -0
- package/build/models/CEP.js +3 -0
- package/build/models/address-verification.d.ts +2 -0
- package/build/models/address-verification.js +3 -0
- package/build/models/bank-account-verification.d.ts +4 -0
- package/build/models/bank-account-verification.js +8 -0
- package/package.json +2 -2
|
@@ -20,7 +20,7 @@ const requireMinAdminRole = (req, res, next, minRole, requiredSpecialPermissions
|
|
|
20
20
|
var _a;
|
|
21
21
|
if (req.adminAuth) {
|
|
22
22
|
if (adminRoleOrder.indexOf(req.adminAuth.role) < adminRoleOrder.indexOf(minRole)) {
|
|
23
|
-
throw new common_1.GenericInputError(`Insufficient permissions
|
|
23
|
+
throw new common_1.GenericInputError(`Insufficient permissions`);
|
|
24
24
|
}
|
|
25
25
|
if (requiredSpecialPermissions.length > 0) {
|
|
26
26
|
if (!((_a = req.adminAuth.permissions) === null || _a === void 0 ? void 0 : _a.some((permission) => requiredSpecialPermissions.includes(permission)))) {
|
package/build/models/CEP.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ interface CEPAttrs {
|
|
|
5
5
|
orderId?: string;
|
|
6
6
|
bulkBankPayoutId?: string;
|
|
7
7
|
internalTransferId?: string;
|
|
8
|
+
bankAccountVerificationId?: string;
|
|
8
9
|
SPEITrackingNumber: string;
|
|
9
10
|
senderCLABE: string;
|
|
10
11
|
receiverCLABE: string;
|
|
@@ -19,6 +20,7 @@ interface CEPDoc extends Document {
|
|
|
19
20
|
orderId?: string;
|
|
20
21
|
bulkBankPayoutId?: string;
|
|
21
22
|
internalTransferId?: string;
|
|
23
|
+
bankAccountVerificationId?: string;
|
|
22
24
|
SPEITrackingNumber: string;
|
|
23
25
|
senderCLABE: string;
|
|
24
26
|
receiverCLABE: string;
|
package/build/models/CEP.js
CHANGED
|
@@ -6,6 +6,7 @@ interface AddressVerificationAttrs {
|
|
|
6
6
|
addressId: string;
|
|
7
7
|
status: AddressVerificationStatus;
|
|
8
8
|
amount: number;
|
|
9
|
+
blockchainTxId?: string;
|
|
9
10
|
}
|
|
10
11
|
interface AddressVerificationModel extends Model<AddressVerificationDoc> {
|
|
11
12
|
build(attrs: AddressVerificationAttrs): HydratedDocument<AddressVerificationDoc>;
|
|
@@ -16,6 +17,7 @@ interface AddressVerificationDoc extends Document {
|
|
|
16
17
|
addressId: string;
|
|
17
18
|
status: AddressVerificationStatus;
|
|
18
19
|
amount: number;
|
|
20
|
+
blockchainTxId?: string;
|
|
19
21
|
}
|
|
20
22
|
declare const buildAddressVerification: (mongoose: Mongoose) => AddressVerificationModel;
|
|
21
23
|
export { buildAddressVerification, AddressVerificationDoc, AddressVerificationAttrs, };
|
|
@@ -8,6 +8,8 @@ interface BankAccountVerificationAttrs {
|
|
|
8
8
|
amount: number;
|
|
9
9
|
provider?: Processor.SPEI_STP | Processor.SPEI_NVIO;
|
|
10
10
|
providerWithdrawalId?: string;
|
|
11
|
+
SPEITrackingNumber?: string;
|
|
12
|
+
CEPLink?: string;
|
|
11
13
|
}
|
|
12
14
|
interface BankAccountVerificationModel extends Model<BankAccountVerificationDoc> {
|
|
13
15
|
build(attrs: BankAccountVerificationAttrs): HydratedDocument<BankAccountVerificationDoc>;
|
|
@@ -20,6 +22,8 @@ interface BankAccountVerificationDoc extends Document {
|
|
|
20
22
|
amount: number;
|
|
21
23
|
provider?: Processor.SPEI_STP | Processor.SPEI_NVIO;
|
|
22
24
|
providerWithdrawalId?: string;
|
|
25
|
+
SPEITrackingNumber?: string;
|
|
26
|
+
CEPLink?: string;
|
|
23
27
|
}
|
|
24
28
|
declare const buildBankAccountVerification: (mongoose: Mongoose) => BankAccountVerificationModel;
|
|
25
29
|
export { buildBankAccountVerification, BankAccountVerificationDoc, BankAccountVerificationAttrs, };
|
|
@@ -33,6 +33,14 @@ const buildBankAccountVerification = (mongoose) => {
|
|
|
33
33
|
type: String,
|
|
34
34
|
required: false,
|
|
35
35
|
},
|
|
36
|
+
SPEITrackingNumber: {
|
|
37
|
+
type: String,
|
|
38
|
+
required: false,
|
|
39
|
+
},
|
|
40
|
+
CEPLink: {
|
|
41
|
+
type: String,
|
|
42
|
+
required: false,
|
|
43
|
+
},
|
|
36
44
|
}, {
|
|
37
45
|
toJSON: {
|
|
38
46
|
transform(doc, ret) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riocrypto/common-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2776",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"types": "./build/index.d.ts",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@google-cloud/secret-manager": "^5.6.0",
|
|
25
25
|
"@google-cloud/storage": "^7.19.0",
|
|
26
26
|
"@hyperdx/node-opentelemetry": "^0.10.3",
|
|
27
|
-
"@riocrypto/common": "1.0.
|
|
27
|
+
"@riocrypto/common": "1.0.2570",
|
|
28
28
|
"@slack/web-api": "^7.15.0",
|
|
29
29
|
"@types/express": "^4.17.25",
|
|
30
30
|
"axios": "1.13.6",
|