@riocrypto/common-server 1.0.1543 → 1.0.1546

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.
@@ -169,11 +169,13 @@ class BridgeClient {
169
169
  }
170
170
  getExternalAccount(bridgeCustomerId, externalAccountId) {
171
171
  return __awaiter(this, void 0, void 0, function* () {
172
+ console.log("getting external account", `${this.baseUrl}/v0/customers/${bridgeCustomerId}/external_accounts/${externalAccountId}`);
172
173
  const { data } = yield axios_1.default.get(`${this.baseUrl}/v0/customers/${bridgeCustomerId}/external_accounts/${externalAccountId}`, {
173
174
  headers: {
174
175
  "Api-Key": this.apiKey,
175
176
  },
176
177
  });
178
+ console.log("returning data", data);
177
179
  return data.data;
178
180
  });
179
181
  }
@@ -2,6 +2,7 @@ import { Mongoose, Model, Document } from "mongoose";
2
2
  interface BridgeExternalAccountAttrs {
3
3
  userId: string;
4
4
  bridgeExternalAccountId: string;
5
+ createdAt: Date;
5
6
  }
6
7
  interface BridgeExternalAccountModel extends Model<BridgeExternalAccountDoc> {
7
8
  build(attrs: BridgeExternalAccountAttrs): BridgeExternalAccountDoc;
@@ -10,6 +11,7 @@ interface BridgeExternalAccountDoc extends Document {
10
11
  _id: string;
11
12
  userId: string;
12
13
  bridgeExternalAccountId: string;
14
+ createdAt: Date;
13
15
  }
14
16
  declare const buildBridgeExternalAccount: (mongoose: Mongoose) => BridgeExternalAccountModel;
15
17
  export { buildBridgeExternalAccount, BridgeExternalAccountDoc };
@@ -15,6 +15,9 @@ const buildBridgeExternalAccount = (mongoose) => {
15
15
  type: String,
16
16
  required: true,
17
17
  },
18
+ createdAt: {
19
+ type: Date,
20
+ },
18
21
  }, {
19
22
  toJSON: {
20
23
  transform(doc, ret) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.1543",
3
+ "version": "1.0.1546",
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.1379",
31
+ "@riocrypto/common": "^1.0.1381",
32
32
  "@types/express": "^4.17.13",
33
33
  "axios": "^1.6.0",
34
34
  "ccxt": "^3.0.30",