@riocrypto/common-server 1.0.1810 → 1.0.1811

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,4 +1,4 @@
1
- import { Country, Fees, Fiat, LiquidityProvider, OrderStatus, PaymentMethod, PayoutMethod, Processor, Side, Crypto, Partner, ExchangeRateOrder, OrderSubstatus } from "@riocrypto/common";
1
+ import { Country, Fees, Fiat, LiquidityProvider, OrderStatus, PaymentMethod, PayoutMethod, Processor, Side, Crypto, Partner, ExchangeRateOrder, OrderSubstatus, OrderAttributes } from "@riocrypto/common";
2
2
  import { Mongoose, Model, Document } from "mongoose";
3
3
  interface OrderAttrs {
4
4
  quoteId: string;
@@ -49,6 +49,7 @@ interface OrderAttrs {
49
49
  paymentAddressId?: string;
50
50
  payoutAddressId?: string;
51
51
  payoutBankAccountId?: string;
52
+ attributes?: OrderAttributes[];
52
53
  }
53
54
  interface OrderDoc extends Document {
54
55
  quoteId: string;
@@ -99,6 +100,7 @@ interface OrderDoc extends Document {
99
100
  paymentAddressId?: string;
100
101
  payoutAddressId?: string;
101
102
  payoutBankAccountId?: string;
103
+ attributes?: OrderAttributes[];
102
104
  }
103
105
  interface OrderModel extends Model<OrderDoc> {
104
106
  build(attrs: OrderAttrs): OrderDoc;
@@ -214,6 +214,11 @@ const buildOrder = (mongoose) => {
214
214
  payoutBankAccountId: {
215
215
  type: String,
216
216
  },
217
+ attributes: [
218
+ {
219
+ type: String,
220
+ },
221
+ ],
217
222
  }, {
218
223
  toJSON: {
219
224
  transform(doc, ret) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.1810",
3
+ "version": "1.0.1811",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -26,7 +26,7 @@
26
26
  "@google-cloud/secret-manager": "^5.3.0",
27
27
  "@google-cloud/storage": "^6.9.5",
28
28
  "@hyperdx/node-opentelemetry": "^0.4.2",
29
- "@riocrypto/common": "^1.0.1611",
29
+ "@riocrypto/common": "^1.0.1615",
30
30
  "@types/express": "^4.17.13",
31
31
  "axios": "^1.6.0",
32
32
  "crypto-js": "^4.2.0",