@riocrypto/common-server 1.0.2491 → 1.0.2492

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.
@@ -31,13 +31,15 @@ declare class ClusterClient {
31
31
  timeInForceEndsAt?: Date;
32
32
  }): Promise<Quote>;
33
33
  getCryptoAddresses(userId: string, crypto: Crypto): Promise<CryptoAddress[]>;
34
- createOrder({ quoteId, userAddressId, payoutBankAccountId, parentOrderId, notes, isAxeTaker, bulkCryptoPayoutId, bulkBankPayoutId, }: {
34
+ createOrder({ quoteId, userAddressId, payoutBankAccountId, parentOrderId, notes, isAxeTaker, bulkCryptoPaymentId, bulkBankPaymentId, bulkCryptoPayoutId, bulkBankPayoutId, }: {
35
35
  quoteId: string;
36
36
  userAddressId?: string;
37
37
  payoutBankAccountId?: string;
38
38
  parentOrderId?: string;
39
39
  notes?: string;
40
40
  isAxeTaker?: boolean;
41
+ bulkCryptoPaymentId?: string;
42
+ bulkBankPaymentId?: string;
41
43
  bulkCryptoPayoutId?: string;
42
44
  bulkBankPayoutId?: string;
43
45
  }): Promise<Order>;
@@ -113,7 +113,7 @@ class ClusterClient {
113
113
  return response.data;
114
114
  });
115
115
  }
116
- createOrder({ quoteId, userAddressId, payoutBankAccountId, parentOrderId, notes, isAxeTaker, bulkCryptoPayoutId, bulkBankPayoutId, }) {
116
+ createOrder({ quoteId, userAddressId, payoutBankAccountId, parentOrderId, notes, isAxeTaker, bulkCryptoPaymentId, bulkBankPaymentId, bulkCryptoPayoutId, bulkBankPayoutId, }) {
117
117
  return __awaiter(this, void 0, void 0, function* () {
118
118
  const response = yield this.axios.post(`${this.baseUrl}/api/orders`, {
119
119
  quoteId,
@@ -16,11 +16,17 @@ interface TWAPSessionAttrs {
16
16
  clipSize: number;
17
17
  interval: number;
18
18
  isRunning: boolean;
19
- bulkBankPayoutId?: string;
20
- bulkCryptoPayoutId?: string;
21
19
  deferredPaymentType: DeferredPaymentType;
22
20
  twoWaySettlementType: TwoWaySettlementType;
23
21
  twoWaySettlementDateOffset: number;
22
+ activeBulkBankPayoutId?: string;
23
+ activeBulkCryptoPayoutId?: string;
24
+ completedBulkBankPayoutIds?: string[];
25
+ completedBulkCryptoPayoutIds?: string[];
26
+ activeBulkBankPaymentId?: string;
27
+ activeBulkCryptoPaymentId?: string;
28
+ completedBulkBankPaymentIds?: string[];
29
+ completedBulkCryptoPaymentIds?: string[];
24
30
  lastRanAt?: Date;
25
31
  }
26
32
  interface TWAPSessionModel extends Model<TWAPSessionDoc> {
@@ -43,12 +49,18 @@ interface TWAPSessionDoc extends Document {
43
49
  clipSize: number;
44
50
  interval: number;
45
51
  isRunning: boolean;
46
- bulkBankPayoutId?: string;
47
- bulkCryptoPayoutId?: string;
48
52
  deferredPaymentType: DeferredPaymentType;
49
53
  twoWaySettlementType: TwoWaySettlementType;
50
54
  twoWaySettlementDateOffset: number;
51
55
  lastRanAt?: Date;
56
+ activeBulkBankPayoutId?: string;
57
+ activeBulkCryptoPayoutId?: string;
58
+ completedBulkBankPayoutIds?: string[];
59
+ completedBulkCryptoPayoutIds?: string[];
60
+ activeBulkBankPaymentId?: string;
61
+ activeBulkCryptoPaymentId?: string;
62
+ completedBulkBankPaymentIds?: string[];
63
+ completedBulkCryptoPaymentIds?: string[];
52
64
  }
53
65
  declare const buildTWAPSession: (mongoose: Mongoose) => TWAPSessionModel;
54
66
  export { buildTWAPSession, TWAPSessionDoc, TWAPSessionAttrs };
@@ -69,12 +69,6 @@ const buildTWAPSession = (mongoose) => {
69
69
  lastRanAt: {
70
70
  type: Date,
71
71
  },
72
- bulkBankPayoutId: {
73
- type: String,
74
- },
75
- bulkCryptoPayoutId: {
76
- type: String,
77
- },
78
72
  deferredPaymentType: {
79
73
  type: String,
80
74
  required: true,
@@ -87,6 +81,30 @@ const buildTWAPSession = (mongoose) => {
87
81
  type: Number,
88
82
  required: true,
89
83
  },
84
+ activeBulkBankPayoutId: {
85
+ type: String,
86
+ },
87
+ activeBulkCryptoPayoutId: {
88
+ type: String,
89
+ },
90
+ completedBulkBankPayoutIds: {
91
+ type: [String],
92
+ },
93
+ completedBulkCryptoPayoutIds: {
94
+ type: [String],
95
+ },
96
+ activeBulkBankPaymentId: {
97
+ type: String,
98
+ },
99
+ activeBulkCryptoPaymentId: {
100
+ type: String,
101
+ },
102
+ completedBulkBankPaymentIds: {
103
+ type: [String],
104
+ },
105
+ completedBulkCryptoPaymentIds: {
106
+ type: [String],
107
+ },
90
108
  }, {
91
109
  toJSON: {
92
110
  transform(doc, ret) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.2491",
3
+ "version": "1.0.2492",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -28,7 +28,7 @@
28
28
  "@google-cloud/secret-manager": "^5.3.0",
29
29
  "@google-cloud/storage": "^6.9.5",
30
30
  "@hyperdx/node-opentelemetry": "^0.7.0",
31
- "@riocrypto/common": "^1.0.2258",
31
+ "@riocrypto/common": "^1.0.2259",
32
32
  "@types/express": "^4.17.13",
33
33
  "axios": "^1.7.4",
34
34
  "crypto-js": "^4.2.0",