@riocrypto/common-server 1.0.2751 → 1.0.2754
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/helpers/sanitize-bank-account-doc.d.ts +6 -2
- package/build/helpers/sanitize-crypto-address-doc.d.ts +6 -2
- package/build/helpers/sanitize-order-doc.d.ts +6 -2
- package/build/helpers/sanitize-user-doc.d.ts +6 -2
- package/build/models/address-verification.d.ts +0 -1
- package/build/models/admin-webauthn-credential.d.ts +1 -0
- package/build/models/alert.d.ts +0 -1
- package/build/models/approved-alternative-bank-account-holder-name.d.ts +0 -1
- package/build/models/arbitrage-alert.d.ts +0 -1
- package/build/models/arbitrage-opportunity.d.ts +0 -1
- package/build/models/arbitrage-settings.d.ts +0 -1
- package/build/models/bank-account-verification.d.ts +0 -1
- package/build/models/bridge-customer.d.ts +0 -1
- package/build/models/bridge-external-account.d.ts +0 -1
- package/build/models/bridge-liquidation-address.d.ts +0 -1
- package/build/models/bridge-transfer.d.ts +0 -1
- package/build/models/coincover-transaction.d.ts +0 -1
- package/build/models/indicative-quote-page-verification.d.ts +0 -1
- package/build/models/indicative-quote-page.d.ts +0 -1
- package/build/models/market-data.d.ts +0 -1
- package/build/models/mismatched-bank-payment.d.ts +0 -1
- package/build/models/user.d.ts +0 -1
- package/build/models/webauthn-credential.d.ts +1 -0
- package/package.json +23 -24
|
@@ -15,14 +15,18 @@
|
|
|
15
15
|
/// <reference types="mongoose/types/populate" />
|
|
16
16
|
/// <reference types="mongoose/types/query" />
|
|
17
17
|
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
-
/// <reference types="mongoose/types/schematypes" />
|
|
19
18
|
/// <reference types="mongoose/types/session" />
|
|
20
19
|
/// <reference types="mongoose/types/types" />
|
|
21
20
|
/// <reference types="mongoose/types/utility" />
|
|
22
21
|
/// <reference types="mongoose/types/validation" />
|
|
23
22
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
23
|
/// <reference types="mongoose" />
|
|
24
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
25
25
|
/// <reference types="mongoose/types/inferschematype" />
|
|
26
26
|
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
27
27
|
import { BankAccountDoc } from "../models/bank-account";
|
|
28
|
-
export declare const sanitizeBankAccountDoc: (doc: BankAccountDoc) => import("mongoose").FlattenMaps<any
|
|
28
|
+
export declare const sanitizeBankAccountDoc: (doc: BankAccountDoc) => import("mongoose").FlattenMaps<any> & Required<{
|
|
29
|
+
_id: unknown;
|
|
30
|
+
}> & {
|
|
31
|
+
__v: number;
|
|
32
|
+
};
|
|
@@ -15,14 +15,18 @@
|
|
|
15
15
|
/// <reference types="mongoose/types/populate" />
|
|
16
16
|
/// <reference types="mongoose/types/query" />
|
|
17
17
|
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
-
/// <reference types="mongoose/types/schematypes" />
|
|
19
18
|
/// <reference types="mongoose/types/session" />
|
|
20
19
|
/// <reference types="mongoose/types/types" />
|
|
21
20
|
/// <reference types="mongoose/types/utility" />
|
|
22
21
|
/// <reference types="mongoose/types/validation" />
|
|
23
22
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
23
|
/// <reference types="mongoose" />
|
|
24
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
25
25
|
/// <reference types="mongoose/types/inferschematype" />
|
|
26
26
|
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
27
27
|
import { CryptoAddressDoc } from "../models/crypto-address";
|
|
28
|
-
export declare const sanitizeCryptoAddressDoc: (doc: CryptoAddressDoc) => import("mongoose").FlattenMaps<any
|
|
28
|
+
export declare const sanitizeCryptoAddressDoc: (doc: CryptoAddressDoc) => import("mongoose").FlattenMaps<any> & Required<{
|
|
29
|
+
_id: unknown;
|
|
30
|
+
}> & {
|
|
31
|
+
__v: number;
|
|
32
|
+
};
|
|
@@ -15,14 +15,18 @@
|
|
|
15
15
|
/// <reference types="mongoose/types/populate" />
|
|
16
16
|
/// <reference types="mongoose/types/query" />
|
|
17
17
|
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
-
/// <reference types="mongoose/types/schematypes" />
|
|
19
18
|
/// <reference types="mongoose/types/session" />
|
|
20
19
|
/// <reference types="mongoose/types/types" />
|
|
21
20
|
/// <reference types="mongoose/types/utility" />
|
|
22
21
|
/// <reference types="mongoose/types/validation" />
|
|
23
22
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
23
|
/// <reference types="mongoose" />
|
|
24
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
25
25
|
/// <reference types="mongoose/types/inferschematype" />
|
|
26
26
|
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
27
27
|
import { OrderDoc } from "../models/order";
|
|
28
|
-
export declare const sanitizeOrderDoc: (doc: OrderDoc) => import("mongoose").FlattenMaps<any
|
|
28
|
+
export declare const sanitizeOrderDoc: (doc: OrderDoc) => import("mongoose").FlattenMaps<any> & Required<{
|
|
29
|
+
_id: unknown;
|
|
30
|
+
}> & {
|
|
31
|
+
__v: number;
|
|
32
|
+
};
|
|
@@ -15,14 +15,18 @@
|
|
|
15
15
|
/// <reference types="mongoose/types/populate" />
|
|
16
16
|
/// <reference types="mongoose/types/query" />
|
|
17
17
|
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
-
/// <reference types="mongoose/types/schematypes" />
|
|
19
18
|
/// <reference types="mongoose/types/session" />
|
|
20
19
|
/// <reference types="mongoose/types/types" />
|
|
21
20
|
/// <reference types="mongoose/types/utility" />
|
|
22
21
|
/// <reference types="mongoose/types/validation" />
|
|
23
22
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
23
|
/// <reference types="mongoose" />
|
|
24
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
25
25
|
/// <reference types="mongoose/types/inferschematype" />
|
|
26
26
|
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
27
27
|
import { UserDoc } from "../models/user";
|
|
28
|
-
export declare const sanitizeUserDoc: (doc: UserDoc) => import("mongoose").FlattenMaps<any
|
|
28
|
+
export declare const sanitizeUserDoc: (doc: UserDoc) => import("mongoose").FlattenMaps<any> & Required<{
|
|
29
|
+
_id: unknown;
|
|
30
|
+
}> & {
|
|
31
|
+
__v: number;
|
|
32
|
+
};
|
|
@@ -11,7 +11,6 @@ interface AddressVerificationModel extends Model<AddressVerificationDoc> {
|
|
|
11
11
|
build(attrs: AddressVerificationAttrs): AddressVerificationDoc;
|
|
12
12
|
}
|
|
13
13
|
interface AddressVerificationDoc extends Document {
|
|
14
|
-
_id: string;
|
|
15
14
|
createdAt: Date;
|
|
16
15
|
userId: string;
|
|
17
16
|
addressId: string;
|
package/build/models/alert.d.ts
CHANGED
|
@@ -8,7 +8,6 @@ interface ApprovedAlternativeBankAccountHolderNameModel extends Model<ApprovedAl
|
|
|
8
8
|
build(attrs: ApprovedAlternativeBankAccountHolderNameAttrs): ApprovedAlternativeBankAccountHolderNameDoc;
|
|
9
9
|
}
|
|
10
10
|
interface ApprovedAlternativeBankAccountHolderNameDoc extends Document {
|
|
11
|
-
_id: string;
|
|
12
11
|
createdAt: Date;
|
|
13
12
|
userId: string;
|
|
14
13
|
alternativeAccountHolderName: string;
|
|
@@ -22,7 +22,6 @@ interface ArbitrageOpportunityModel extends Model<ArbitrageOpportunityDoc> {
|
|
|
22
22
|
build(attrs: ArbitrageOpportunityAttrs): ArbitrageOpportunityDoc;
|
|
23
23
|
}
|
|
24
24
|
interface ArbitrageOpportunityDoc extends Document {
|
|
25
|
-
_id: string;
|
|
26
25
|
createdAt: Date;
|
|
27
26
|
recipe: "BuyUSDTAtBitsoSellUSDAtBBVA";
|
|
28
27
|
minProfit: {
|
|
@@ -45,7 +45,6 @@ interface ArbitrageSettingsModel extends Model<ArbitrageSettingsDoc> {
|
|
|
45
45
|
build(attrs: ArbitrageSettingsAttrs): ArbitrageSettingsDoc;
|
|
46
46
|
}
|
|
47
47
|
interface ArbitrageSettingsDoc extends Document {
|
|
48
|
-
_id: string;
|
|
49
48
|
buyMXNBinanceSellMXNEmarkets: {
|
|
50
49
|
autoDetectOpportunity: boolean;
|
|
51
50
|
defaultLimitPriceDifference: number;
|
|
@@ -13,7 +13,6 @@ interface BankAccountVerificationModel extends Model<BankAccountVerificationDoc>
|
|
|
13
13
|
build(attrs: BankAccountVerificationAttrs): BankAccountVerificationDoc;
|
|
14
14
|
}
|
|
15
15
|
interface BankAccountVerificationDoc extends Document {
|
|
16
|
-
_id: string;
|
|
17
16
|
createdAt: Date;
|
|
18
17
|
userId: string;
|
|
19
18
|
bankAccountId: string;
|
|
@@ -8,7 +8,6 @@ interface BridgeExternalAccountModel extends Model<BridgeExternalAccountDoc> {
|
|
|
8
8
|
build(attrs: BridgeExternalAccountAttrs): BridgeExternalAccountDoc;
|
|
9
9
|
}
|
|
10
10
|
interface BridgeExternalAccountDoc extends Document {
|
|
11
|
-
_id: string;
|
|
12
11
|
userId: string;
|
|
13
12
|
bridgeExternalAccountId: string;
|
|
14
13
|
createdAt: Date;
|
|
@@ -11,7 +11,6 @@ interface BridgeLiquidationAddressModel extends Model<BridgeLiquidationAddressDo
|
|
|
11
11
|
build(attrs: BridgeLiquidationAddressAttrs): BridgeLiquidationAddressDoc;
|
|
12
12
|
}
|
|
13
13
|
interface BridgeLiquidationAddressDoc extends Document {
|
|
14
|
-
_id: string;
|
|
15
14
|
userId: string;
|
|
16
15
|
crypto: Crypto;
|
|
17
16
|
bridgeCustomerId: string;
|
|
@@ -12,7 +12,6 @@ interface CoincoverTransactionModel extends Model<CoincoverTransactionDoc> {
|
|
|
12
12
|
build(attrs: CoincoverTransactionAttrs): CoincoverTransactionDoc;
|
|
13
13
|
}
|
|
14
14
|
interface CoincoverTransactionDoc extends Document {
|
|
15
|
-
_id: string;
|
|
16
15
|
coincoverTransactionId: string;
|
|
17
16
|
status: "GREEN" | "RED";
|
|
18
17
|
rejectionCode?: string;
|
|
@@ -11,7 +11,6 @@ interface IndicativeQuotePageVerificationModel extends Model<IndicativeQuotePage
|
|
|
11
11
|
build(attrs: IndicativeQuotePageVerificationAttrs): IndicativeQuotePageVerificationDoc;
|
|
12
12
|
}
|
|
13
13
|
interface IndicativeQuotePageVerificationDoc extends Document {
|
|
14
|
-
_id: string;
|
|
15
14
|
pageId: string;
|
|
16
15
|
email: string;
|
|
17
16
|
verificationCode: string;
|
|
@@ -11,7 +11,6 @@ interface IndicativeQuotePageModel extends Model<IndicativeQuotePageDoc> {
|
|
|
11
11
|
build(attrs: IndicativeQuotePageAttrs): IndicativeQuotePageDoc;
|
|
12
12
|
}
|
|
13
13
|
interface IndicativeQuotePageDoc extends Document {
|
|
14
|
-
_id: string;
|
|
15
14
|
quotes: IndicativeQuotePageQuoteConfig[];
|
|
16
15
|
allowedEmails: string[];
|
|
17
16
|
createdBy: string;
|
|
@@ -18,7 +18,6 @@ interface MismatchedBankPaymentModel extends Model<MismatchedBankPaymentDoc> {
|
|
|
18
18
|
build(attrs: MismatchedBankPaymentAttrs): MismatchedBankPaymentDoc;
|
|
19
19
|
}
|
|
20
20
|
interface MismatchedBankPaymentDoc extends Document {
|
|
21
|
-
_id: string;
|
|
22
21
|
createdAt: Date;
|
|
23
22
|
status: "notAccepted" | "accepted";
|
|
24
23
|
orderId?: string;
|
package/build/models/user.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riocrypto/common-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2754",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"types": "./build/index.d.ts",
|
|
@@ -15,38 +15,37 @@
|
|
|
15
15
|
"author": "",
|
|
16
16
|
"license": "ISC",
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@types/crypto-js": "^4.
|
|
18
|
+
"@types/crypto-js": "^4.2.2",
|
|
19
19
|
"@types/csurf": "^1.11.5",
|
|
20
|
-
"@types/he": "^1.2.
|
|
21
|
-
"@types/jsonwebtoken": "^8.5.
|
|
22
|
-
"@types/lodash": "^4.17.
|
|
23
|
-
"@types/uuid": "^9.0.
|
|
24
|
-
"del-cli": "^5.
|
|
25
|
-
"typescript": "^4.
|
|
20
|
+
"@types/he": "^1.2.3",
|
|
21
|
+
"@types/jsonwebtoken": "^8.5.9",
|
|
22
|
+
"@types/lodash": "^4.17.24",
|
|
23
|
+
"@types/uuid": "^9.0.8",
|
|
24
|
+
"del-cli": "^5.1.0",
|
|
25
|
+
"typescript": "^4.9.5"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@google-cloud/secret-manager": "^5.
|
|
29
|
-
"@google-cloud/storage": "^6.
|
|
30
|
-
"@hyperdx/node-opentelemetry": "^0.
|
|
31
|
-
"@riocrypto/common": "^1.0.
|
|
32
|
-
"@slack/web-api": "^7.
|
|
33
|
-
"@types/express": "^4.17.
|
|
28
|
+
"@google-cloud/secret-manager": "^5.6.0",
|
|
29
|
+
"@google-cloud/storage": "^6.12.0",
|
|
30
|
+
"@hyperdx/node-opentelemetry": "^0.10.3",
|
|
31
|
+
"@riocrypto/common": "^1.0.2545",
|
|
32
|
+
"@slack/web-api": "^7.15.0",
|
|
33
|
+
"@types/express": "^4.17.25",
|
|
34
34
|
"axios": "1.13.6",
|
|
35
35
|
"crypto-js": "^4.2.0",
|
|
36
|
-
"
|
|
37
|
-
"express": "^
|
|
38
|
-
"express-
|
|
39
|
-
"
|
|
40
|
-
"fireblocks-sdk": "^5.13.0",
|
|
36
|
+
"express": "^4.22.1",
|
|
37
|
+
"express-rate-limit": "^7.5.1",
|
|
38
|
+
"express-validator": "^6.15.0",
|
|
39
|
+
"fireblocks-sdk": "^5.38.0",
|
|
41
40
|
"googleapis": "^135.1.0",
|
|
42
41
|
"he": "^1.2.0",
|
|
43
42
|
"jose": "^6.2.2",
|
|
44
|
-
"jsonwebtoken": "^9.0.
|
|
45
|
-
"lodash": "^4.17.
|
|
46
|
-
"mongoose": "8.
|
|
43
|
+
"jsonwebtoken": "^9.0.3",
|
|
44
|
+
"lodash": "^4.17.23",
|
|
45
|
+
"mongoose": "^8.23.0",
|
|
47
46
|
"node-cache": "^5.1.2",
|
|
48
|
-
"uuid": "^9.0.
|
|
49
|
-
"winston": "^3.
|
|
47
|
+
"uuid": "^9.0.1",
|
|
48
|
+
"winston": "^3.19.0",
|
|
50
49
|
"xss": "^1.0.15"
|
|
51
50
|
}
|
|
52
51
|
}
|