gemcap-be-common 1.3.138 → 1.3.140
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.
- package/microservice/event-map.d.ts +1 -0
- package/microservice/event-map.js +1 -0
- package/microservice/event-map.ts +1 -0
- package/models/ExternalUserAccess.model.d.ts +33 -0
- package/models/ExternalUserAccess.model.js +22 -0
- package/models/ExternalUserAccess.model.ts +32 -0
- package/models/_models.d.ts +1 -0
- package/models/_models.js +1 -0
- package/models/_models.ts +1 -0
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -17,6 +17,7 @@ export declare const EventMap: {
|
|
|
17
17
|
readonly CREATE_PROSPECT_SUMMARY: "crm#CREATE_PROSPECT_SUMMARY";
|
|
18
18
|
readonly INITIAL_YIELD_CALCULATION: "crm#INITIAL_YIELD_CALCULATION";
|
|
19
19
|
readonly CALCULATE_YIELD_CALCULATION: "crm#CALCULATE_YIELD_CALCULATION";
|
|
20
|
+
readonly PASSWORD_RESET: "crm#PASSWORD_RESET";
|
|
20
21
|
};
|
|
21
22
|
readonly report: {
|
|
22
23
|
readonly DETAILED_PORTFOLIO: "report#DETAILED_PORTFOLIO";
|
|
@@ -20,6 +20,7 @@ exports.EventMap = {
|
|
|
20
20
|
CREATE_PROSPECT_SUMMARY: 'crm#CREATE_PROSPECT_SUMMARY',
|
|
21
21
|
INITIAL_YIELD_CALCULATION: 'crm#INITIAL_YIELD_CALCULATION',
|
|
22
22
|
CALCULATE_YIELD_CALCULATION: 'crm#CALCULATE_YIELD_CALCULATION',
|
|
23
|
+
PASSWORD_RESET: 'crm#PASSWORD_RESET',
|
|
23
24
|
},
|
|
24
25
|
report: {
|
|
25
26
|
DETAILED_PORTFOLIO: 'report#DETAILED_PORTFOLIO',
|
|
@@ -17,6 +17,7 @@ export const EventMap = {
|
|
|
17
17
|
CREATE_PROSPECT_SUMMARY: 'crm#CREATE_PROSPECT_SUMMARY',
|
|
18
18
|
INITIAL_YIELD_CALCULATION: 'crm#INITIAL_YIELD_CALCULATION',
|
|
19
19
|
CALCULATE_YIELD_CALCULATION: 'crm#CALCULATE_YIELD_CALCULATION',
|
|
20
|
+
PASSWORD_RESET: 'crm#PASSWORD_RESET',
|
|
20
21
|
},
|
|
21
22
|
report: {
|
|
22
23
|
DETAILED_PORTFOLIO: 'report#DETAILED_PORTFOLIO',
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
+
/// <reference types="mongoose/types/callback" />
|
|
3
|
+
/// <reference types="mongoose/types/collection" />
|
|
4
|
+
/// <reference types="mongoose/types/connection" />
|
|
5
|
+
/// <reference types="mongoose/types/cursor" />
|
|
6
|
+
/// <reference types="mongoose/types/document" />
|
|
7
|
+
/// <reference types="mongoose/types/error" />
|
|
8
|
+
/// <reference types="mongoose/types/expressions" />
|
|
9
|
+
/// <reference types="mongoose/types/helpers" />
|
|
10
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
+
/// <reference types="mongoose/types/indexes" />
|
|
12
|
+
/// <reference types="mongoose/types/models" />
|
|
13
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
+
/// <reference types="mongoose/types/populate" />
|
|
16
|
+
/// <reference types="mongoose/types/query" />
|
|
17
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
+
/// <reference types="mongoose/types/session" />
|
|
20
|
+
/// <reference types="mongoose/types/types" />
|
|
21
|
+
/// <reference types="mongoose/types/utility" />
|
|
22
|
+
/// <reference types="mongoose/types/validation" />
|
|
23
|
+
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
import { Document, Model } from 'mongoose';
|
|
26
|
+
export interface IExternalUserAccess {
|
|
27
|
+
email: string;
|
|
28
|
+
hashedPassword: string;
|
|
29
|
+
}
|
|
30
|
+
export interface IExternalUserAccessDoc extends IExternalUserAccess, Document {
|
|
31
|
+
}
|
|
32
|
+
export type ExternalUserAccessModel = Model<IExternalUserAccess>;
|
|
33
|
+
export declare const ExternalUserAccess: ExternalUserAccessModel;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ExternalUserAccess = void 0;
|
|
7
|
+
const mongoose_1 = __importDefault(require("mongoose"));
|
|
8
|
+
const _models_1 = require("./_models");
|
|
9
|
+
const ExternalUserAccessSchema = new mongoose_1.default.Schema({
|
|
10
|
+
email: {
|
|
11
|
+
type: String,
|
|
12
|
+
lowercase: true,
|
|
13
|
+
unique: true,
|
|
14
|
+
},
|
|
15
|
+
hashedPassword: {
|
|
16
|
+
type: String,
|
|
17
|
+
},
|
|
18
|
+
}, {
|
|
19
|
+
timestamps: { createdAt: true, updatedAt: true },
|
|
20
|
+
versionKey: false,
|
|
21
|
+
});
|
|
22
|
+
exports.ExternalUserAccess = mongoose_1.default.model(_models_1.MODEL_NAMES.externalUserAccess, ExternalUserAccessSchema);
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import mongoose, { Document, Model } from 'mongoose';
|
|
2
|
+
|
|
3
|
+
import { MODEL_NAMES } from './_models';
|
|
4
|
+
|
|
5
|
+
export interface IExternalUserAccess {
|
|
6
|
+
email: string;
|
|
7
|
+
hashedPassword: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface IExternalUserAccessDoc extends IExternalUserAccess, Document {
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type ExternalUserAccessModel = Model<IExternalUserAccess>;
|
|
14
|
+
|
|
15
|
+
const ExternalUserAccessSchema = new mongoose.Schema<IExternalUserAccess, ExternalUserAccessModel>(
|
|
16
|
+
{
|
|
17
|
+
email: {
|
|
18
|
+
type: String,
|
|
19
|
+
lowercase: true,
|
|
20
|
+
unique: true,
|
|
21
|
+
},
|
|
22
|
+
hashedPassword: {
|
|
23
|
+
type: String,
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
timestamps: { createdAt: true, updatedAt: true },
|
|
28
|
+
versionKey: false,
|
|
29
|
+
},
|
|
30
|
+
);
|
|
31
|
+
|
|
32
|
+
export const ExternalUserAccess = mongoose.model<IExternalUserAccess, ExternalUserAccessModel>(MODEL_NAMES.externalUserAccess, ExternalUserAccessSchema);
|
package/models/_models.d.ts
CHANGED
package/models/_models.js
CHANGED
|
@@ -57,6 +57,7 @@ exports.MODEL_NAMES = {
|
|
|
57
57
|
deletedRecords: 'deleted_records',
|
|
58
58
|
equipment: 'equipment',
|
|
59
59
|
earlyPayments: 'early_payments',
|
|
60
|
+
externalUserAccess: 'external_user_access',
|
|
60
61
|
financialComplianceBorrowers: 'financialComplianceBorrowers',
|
|
61
62
|
financialComplianceSettings: 'financialComplianceSettings',
|
|
62
63
|
financialIndexes: 'financial_indexes',
|
package/models/_models.ts
CHANGED
|
@@ -54,6 +54,7 @@ export const MODEL_NAMES = {
|
|
|
54
54
|
deletedRecords: 'deleted_records',
|
|
55
55
|
equipment: 'equipment',
|
|
56
56
|
earlyPayments : 'early_payments',
|
|
57
|
+
externalUserAccess: 'external_user_access',
|
|
57
58
|
financialComplianceBorrowers: 'financialComplianceBorrowers',
|
|
58
59
|
financialComplianceSettings: 'financialComplianceSettings',
|
|
59
60
|
financialIndexes: 'financial_indexes',
|