gemcap-be-common 1.5.62 → 1.5.64

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.
@@ -32,6 +32,7 @@ export interface IBankIntegrationAccount {
32
32
  currency: string;
33
33
  rawPayload: string;
34
34
  lastSyncAt: Date;
35
+ currentBalance: number;
35
36
  }
36
37
  export type TBankIntegrationAccountCreate = Omit<IBankIntegrationAccount, 'integrationId'> & {
37
38
  integrationId: string;
@@ -32,6 +32,9 @@ exports.BankIntegrationAccountSchema = new mongoose_1.default.Schema({
32
32
  lastSyncAt: {
33
33
  type: Date,
34
34
  },
35
+ currentBalance: {
36
+ type: Number,
37
+ },
35
38
  }, { timestamps: true });
36
39
  exports.BankIntegrationAccountSchema.index({ integrationId: 1, externalAccountId: 1 }, { unique: true });
37
40
  exports.BankIntegrationAccount = mongoose_1.default.model(_models_1.MODEL_NAMES.bankIntegrationAccounts, exports.BankIntegrationAccountSchema);
@@ -11,6 +11,7 @@ export interface IBankIntegrationAccount {
11
11
  currency: string;
12
12
  rawPayload: string;
13
13
  lastSyncAt: Date;
14
+ currentBalance: number;
14
15
  }
15
16
 
16
17
  export type TBankIntegrationAccountCreate = Omit<IBankIntegrationAccount, 'integrationId'> & {
@@ -65,6 +66,9 @@ export const BankIntegrationAccountSchema = new mongoose.Schema<IBankIntegration
65
66
  lastSyncAt: {
66
67
  type: Date,
67
68
  },
69
+ currentBalance: {
70
+ type: Number,
71
+ },
68
72
  },
69
73
  { timestamps: true },
70
74
  );
@@ -26,7 +26,7 @@ import mongoose from 'mongoose';
26
26
  export interface IParticipation {
27
27
  loanProductId: string;
28
28
  settlementFrequency: string;
29
- settlementDate: string;
29
+ settlementDate: string | number | null;
30
30
  }
31
31
  export interface IParticipationMongo extends Omit<IParticipation, 'loanProductId'> {
32
32
  loanProductId: mongoose.Types.ObjectId;
@@ -49,7 +49,7 @@ export declare const ParticipationSchema: mongoose.Schema<any, mongoose.Model<an
49
49
  } & {
50
50
  loanProductId: mongoose.Types.ObjectId;
51
51
  settlementFrequency: string;
52
- settlementDate: string;
52
+ settlementDate: any;
53
53
  __v?: number;
54
54
  }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
55
55
  createdAt: NativeDate;
@@ -57,7 +57,7 @@ export declare const ParticipationSchema: mongoose.Schema<any, mongoose.Model<an
57
57
  } & {
58
58
  loanProductId: mongoose.Types.ObjectId;
59
59
  settlementFrequency: string;
60
- settlementDate: string;
60
+ settlementDate: any;
61
61
  __v?: number;
62
62
  }>> & mongoose.FlatRecord<{
63
63
  createdAt: NativeDate;
@@ -65,7 +65,7 @@ export declare const ParticipationSchema: mongoose.Schema<any, mongoose.Model<an
65
65
  } & {
66
66
  loanProductId: mongoose.Types.ObjectId;
67
67
  settlementFrequency: string;
68
- settlementDate: string;
68
+ settlementDate: any;
69
69
  __v?: number;
70
70
  }> & {
71
71
  _id: mongoose.Types.ObjectId;
@@ -17,7 +17,7 @@ exports.ParticipationSchema = new mongoose_1.default.Schema({
17
17
  required: true,
18
18
  },
19
19
  settlementDate: {
20
- type: String,
20
+ type: mongoose_1.default.Schema.Types.Mixed,
21
21
  required: true,
22
22
  },
23
23
  __v: { type: Number, select: false },
@@ -5,7 +5,7 @@ import { MODEL_NAMES } from './_models';
5
5
  export interface IParticipation {
6
6
  loanProductId: string;
7
7
  settlementFrequency: string;
8
- settlementDate: string;
8
+ settlementDate: string | number | null;
9
9
  }
10
10
 
11
11
  export interface IParticipationMongo extends Omit<IParticipation, 'loanProductId'> {
@@ -38,7 +38,7 @@ export const ParticipationSchema = new mongoose.Schema(
38
38
  required: true,
39
39
  },
40
40
  settlementDate: {
41
- type: String,
41
+ type: mongoose.Schema.Types.Mixed,
42
42
  required: true,
43
43
  },
44
44
  __v: { type: Number, select: false },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gemcap-be-common",
3
- "version": "1.5.62",
3
+ "version": "1.5.64",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {