@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.
@@ -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;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="node" />
2
+ /// <reference types="node" />
2
3
  import { Mongoose, Model, Document } from "mongoose";
3
4
  import { AdminAuthDoc } from "./admin-auth";
4
5
  export interface AdminWebAuthnCredentialAttrs {
@@ -33,7 +33,6 @@ interface AlertModel extends Model<AlertDoc> {
33
33
  build(attrs: AlertAttrs): AlertDoc;
34
34
  }
35
35
  interface AlertDoc extends Document {
36
- _id: string;
37
36
  createdAt: Date;
38
37
  userId?: string;
39
38
  adminAuthId?: string;
@@ -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;
@@ -14,7 +14,6 @@ interface ArbitrageAlertModel extends Model<ArbitrageAlertDoc> {
14
14
  build(attrs: ArbitrageAlertAttrs): ArbitrageAlertDoc;
15
15
  }
16
16
  interface ArbitrageAlertDoc extends Document {
17
- _id: string;
18
17
  createdAt: Date;
19
18
  asset: ArbitrageAsset;
20
19
  fiat: Fiat.MXN;
@@ -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;
@@ -10,7 +10,6 @@ interface BridgeCustomerModel extends Model<BridgeCustomerDoc> {
10
10
  build(attrs: BridgeCustomerAttrs): BridgeCustomerDoc;
11
11
  }
12
12
  interface BridgeCustomerDoc extends Document {
13
- _id: string;
14
13
  userId: string;
15
14
  kycLinkId?: string;
16
15
  kycLink?: 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;
@@ -7,7 +7,6 @@ interface BridgeTransferModel extends Model<BridgeTransferDoc> {
7
7
  build(attrs: BridgeTransferAttrs): BridgeTransferDoc;
8
8
  }
9
9
  interface BridgeTransferDoc extends Document {
10
- _id: string;
11
10
  orderId: string;
12
11
  bridgeTransferId: string;
13
12
  }
@@ -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;
@@ -63,7 +63,6 @@ interface MarketDataModel extends Model<MarketDataDoc> {
63
63
  build(attrs: MarketDataAttrs): MarketDataDoc;
64
64
  }
65
65
  interface MarketDataDoc extends Document {
66
- _id: string;
67
66
  conversionRatesToUSD: {
68
67
  [key: string]: {
69
68
  value: number;
@@ -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;
@@ -135,7 +135,6 @@ interface UserModel extends Model<UserDoc> {
135
135
  build(attrs: UserAttrs): UserDoc;
136
136
  }
137
137
  interface UserDoc extends Document {
138
- _id: string;
139
138
  createdAt: Date;
140
139
  authIds?: string[];
141
140
  attioRecordId?: string;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="node" />
2
+ /// <reference types="node" />
2
3
  import { Mongoose, Model, Document } from "mongoose";
3
4
  import { AuthDoc } from "./auth";
4
5
  export interface WebAuthnCredentialAttrs {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.2751",
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.1.1",
18
+ "@types/crypto-js": "^4.2.2",
19
19
  "@types/csurf": "^1.11.5",
20
- "@types/he": "^1.2.0",
21
- "@types/jsonwebtoken": "^8.5.8",
22
- "@types/lodash": "^4.17.12",
23
- "@types/uuid": "^9.0.1",
24
- "del-cli": "^5.0.0",
25
- "typescript": "^4.7.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.3.0",
29
- "@google-cloud/storage": "^6.9.5",
30
- "@hyperdx/node-opentelemetry": "^0.7.0",
31
- "@riocrypto/common": "^1.0.2542",
32
- "@slack/web-api": "^7.9.2",
33
- "@types/express": "^4.17.13",
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
- "csurf": "^1.11.0",
37
- "express": "^4.21.1",
38
- "express-rate-limit": "^7.5.0",
39
- "express-validator": "^6.14.2",
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.1",
45
- "lodash": "^4.17.21",
46
- "mongoose": "8.7.2",
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.0",
49
- "winston": "^3.11.0",
47
+ "uuid": "^9.0.1",
48
+ "winston": "^3.19.0",
50
49
  "xss": "^1.0.15"
51
50
  }
52
51
  }