@riocrypto/common-server 1.0.1506 → 1.0.1508

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.
@@ -70,7 +70,10 @@ class AiPriseClient {
70
70
  }
71
71
  createVerificationLinkWithoutName() {
72
72
  return __awaiter(this, void 0, void 0, function* () {
73
- const response = yield axios_1.default.post(`https://${this.baseUrl}.aiprise.com/api/v1/verify/get_user_verification_url`, undefined, {
73
+ const response = yield axios_1.default.post(`https://${this.baseUrl}.aiprise.com/api/v1/verify/get_user_verification_url`, {
74
+ template_id: "15cd1203-5c60-470b-8cbc-4d806433c7b7",
75
+ redirect_uri: this.getRedirectUrl(process.env.RIO_ENV),
76
+ }, {
74
77
  headers: {
75
78
  "X-API-KEY": this.apiKey,
76
79
  },
@@ -5,12 +5,16 @@ interface BidAttrs {
5
5
  userId: string;
6
6
  quoteId: string;
7
7
  status: BidStatus;
8
+ message?: string;
9
+ file?: string;
8
10
  }
9
11
  interface BidDoc extends Document {
10
12
  createdAt: Date;
11
13
  userId: string;
12
14
  quoteId: string;
13
15
  status: BidStatus;
16
+ message?: string;
17
+ file?: string;
14
18
  }
15
19
  interface BidModel extends Model<BidDoc> {
16
20
  build(attrs: BidAttrs): BidDoc;
@@ -23,6 +23,12 @@ const buildBid = (mongoose) => {
23
23
  type: String,
24
24
  required: true,
25
25
  },
26
+ message: {
27
+ type: String,
28
+ },
29
+ file: {
30
+ type: String,
31
+ },
26
32
  }, {
27
33
  toJSON: {
28
34
  transform(doc, ret) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.1506",
3
+ "version": "1.0.1508",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -28,7 +28,7 @@
28
28
  "@google-cloud/storage": "^6.9.5",
29
29
  "@google-cloud/vision": "^4.0.2",
30
30
  "@hyperdx/node-opentelemetry": "^0.4.2",
31
- "@riocrypto/common": "^1.0.1348",
31
+ "@riocrypto/common": "^1.0.1351",
32
32
  "@types/express": "^4.17.13",
33
33
  "axios": "^0.27.2",
34
34
  "ccxt": "^3.0.30",