gemcap-be-common 1.5.63 → 1.5.65

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.
@@ -37,6 +37,7 @@ export declare const EVENT_KEYS: {
37
37
  readonly REPORT_CONSOLIDATED_REQUESTED: "finance.report.consolidated.requested";
38
38
  readonly YIELD_RECALCULATION_REQUESTED: "finance.yield.recalculation.requested";
39
39
  readonly INCOMING_PAYMENT_DETECTED: "finance.incoming-payment.detected";
40
+ readonly PARTICIPATION_REPORT_EMAIL_SEND_REQUESTED: "finance.participation.report.email.send.requested";
40
41
  };
41
42
  /**
42
43
  * ========= PORTFOLIO DOMAIN EVENTS =========
@@ -40,6 +40,7 @@ exports.EVENT_KEYS = {
40
40
  REPORT_CONSOLIDATED_REQUESTED: 'finance.report.consolidated.requested',
41
41
  YIELD_RECALCULATION_REQUESTED: 'finance.yield.recalculation.requested',
42
42
  INCOMING_PAYMENT_DETECTED: 'finance.incoming-payment.detected',
43
+ PARTICIPATION_REPORT_EMAIL_SEND_REQUESTED: 'finance.participation.report.email.send.requested',
43
44
  },
44
45
  /**
45
46
  * ========= PORTFOLIO DOMAIN EVENTS =========
@@ -41,6 +41,7 @@ export const EVENT_KEYS = {
41
41
  REPORT_CONSOLIDATED_REQUESTED: 'finance.report.consolidated.requested',
42
42
  YIELD_RECALCULATION_REQUESTED: 'finance.yield.recalculation.requested',
43
43
  INCOMING_PAYMENT_DETECTED: 'finance.incoming-payment.detected',
44
+ PARTICIPATION_REPORT_EMAIL_SEND_REQUESTED: 'finance.participation.report.email.send.requested',
44
45
  },
45
46
 
46
47
  /**
@@ -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.63",
3
+ "version": "1.5.65",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {