@aldb2b/common 1.0.444 → 1.0.448
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/build/db/MongooseNestedModel.d.ts +10 -0
- package/build/db/MongooseNestedModel.js +67 -0
- package/build/db/MongooseNestedModel.js.map +1 -0
- package/build/db/mongoose-nested-option.d.ts +4 -0
- package/build/db/mongoose-nested-option.js +7 -0
- package/build/db/mongoose-nested-option.js.map +1 -0
- package/build/events/get-event-profile.interface.d.ts +10 -0
- package/build/events/get-event-profile.interface.js +3 -0
- package/build/events/get-event-profile.interface.js.map +1 -0
- package/build/events/subjects.d.ts +2 -1
- package/build/events/subjects.js +1 -0
- package/build/events/subjects.js.map +1 -1
- package/build/index.d.ts +3 -1
- package/build/index.js +3 -1
- package/build/index.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +43 -12
- package/package.json +1 -1
- package/build/enums/event-profile-type.enum.d.ts +0 -3
- package/build/enums/event-profile-type.enum.js +0 -8
- package/build/enums/event-profile-type.enum.js.map +0 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CustomModel } from './CustomModel';
|
|
2
|
+
import { MongooseNestedOption } from './mongoose-nested-option';
|
|
3
|
+
export declare class MongooseNestedModel<T> {
|
|
4
|
+
private dbModelInstance;
|
|
5
|
+
private nestedField;
|
|
6
|
+
private projectionOnCreateResult;
|
|
7
|
+
constructor(dbModelInstance: CustomModel<T>, nestedField: string);
|
|
8
|
+
create(inputParams: MongooseNestedOption): Promise<any>;
|
|
9
|
+
update(inputParams: MongooseNestedOption): Promise<any>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MongooseNestedModel = void 0;
|
|
4
|
+
const common_1 = require("@nestjs/common");
|
|
5
|
+
class MongooseNestedModel {
|
|
6
|
+
constructor(dbModelInstance, nestedField) {
|
|
7
|
+
this.projectionOnCreateResult = true;
|
|
8
|
+
this.dbModelInstance = dbModelInstance;
|
|
9
|
+
this.nestedField = nestedField;
|
|
10
|
+
}
|
|
11
|
+
async create(inputParams) {
|
|
12
|
+
try {
|
|
13
|
+
const validatedNestedNewItem = await this.dbModelInstance.validatedNestedNewItem(inputParams.data, this.nestedField);
|
|
14
|
+
const createObj = {};
|
|
15
|
+
createObj[this.nestedField] = validatedNestedNewItem;
|
|
16
|
+
const queryResult = await this.dbModelInstance.findOneAndUpdate(inputParams.query, {
|
|
17
|
+
$push: createObj,
|
|
18
|
+
}, {
|
|
19
|
+
runValidators: true,
|
|
20
|
+
new: true,
|
|
21
|
+
projection: ['_id', this.nestedField],
|
|
22
|
+
});
|
|
23
|
+
if (!queryResult) {
|
|
24
|
+
throw common_1.BadRequestException;
|
|
25
|
+
}
|
|
26
|
+
const createdItem = queryResult[this.nestedField].pop();
|
|
27
|
+
let pruningCreatedItem = this.projectionOnCreateResult
|
|
28
|
+
? this.dbModelInstance.validatedNestedProjectionResult(createdItem, this.nestedField)
|
|
29
|
+
: createdItem;
|
|
30
|
+
return pruningCreatedItem;
|
|
31
|
+
}
|
|
32
|
+
catch (err) {
|
|
33
|
+
throw err;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
async update(inputParams) {
|
|
37
|
+
try {
|
|
38
|
+
const validatedNestedUpdateItem = await this.dbModelInstance.validatedNestedUpdateItem(inputParams.data, this.nestedField);
|
|
39
|
+
const updateItemEntries = Object.entries(validatedNestedUpdateItem);
|
|
40
|
+
const validatedNestedUpdateItemSetQuery = {};
|
|
41
|
+
for (const entry of updateItemEntries) {
|
|
42
|
+
validatedNestedUpdateItemSetQuery[`${this.nestedField}.$.${entry[0]}`] =
|
|
43
|
+
entry[1];
|
|
44
|
+
}
|
|
45
|
+
const queryResult = await this.dbModelInstance.findOneAndUpdate(inputParams.query, {
|
|
46
|
+
$set: validatedNestedUpdateItemSetQuery,
|
|
47
|
+
}, {
|
|
48
|
+
runValidators: true,
|
|
49
|
+
new: true,
|
|
50
|
+
projection: ['_id', this.nestedField],
|
|
51
|
+
});
|
|
52
|
+
if (!queryResult || !queryResult[this.nestedField].length) {
|
|
53
|
+
throw common_1.BadRequestException;
|
|
54
|
+
}
|
|
55
|
+
const createdItem = queryResult[this.nestedField].find(obj => obj._id.toString() === inputParams.query[`${this.nestedField}._id`]);
|
|
56
|
+
let pruningCreatedItem = this.projectionOnCreateResult
|
|
57
|
+
? await this.dbModelInstance.validatedNestedProjectionResult(createdItem, this.nestedField)
|
|
58
|
+
: createdItem;
|
|
59
|
+
return pruningCreatedItem;
|
|
60
|
+
}
|
|
61
|
+
catch (err) {
|
|
62
|
+
throw err;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
exports.MongooseNestedModel = MongooseNestedModel;
|
|
67
|
+
//# sourceMappingURL=MongooseNestedModel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MongooseNestedModel.js","sourceRoot":"","sources":["../../src/db/MongooseNestedModel.ts"],"names":[],"mappings":";;;AACA,2CAAoD;AAGpD,MAAa,mBAAmB;IAK9B,YAAY,eAA+B,EAAE,WAAmB;QAFxD,6BAAwB,GAAG,IAAI,CAAA;QAGrC,IAAI,CAAC,eAAe,GAAG,eAAe,CAAA;QACtC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAA;IAChC,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,WAAiC;QAC5C,IAAI;YACF,MAAM,sBAAsB,GAC1B,MAAM,IAAI,CAAC,eAAe,CAAC,sBAAsB,CAC/C,WAAW,CAAC,IAAI,EAChB,IAAI,CAAC,WAAW,CACjB,CAAA;YACH,MAAM,SAAS,GAAG,EAAE,CAAA;YACpB,SAAS,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,sBAAsB,CAAA;YACpD,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,gBAAgB,CAC7D,WAAW,CAAC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T,UAAU,EAAE,CAAC,KAAK,EAAE,IAAI,CAAC,WAAW,CAAC;aACtC,CACF,CAAA;YAED,IAAI,CAAC,WAAW,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,MAAM,EAAE;gBACzD,MAAM,4BAAmB,CAAA;aAC1B;YAED,MAAM,WAAW,GAAG,WAAW,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,IAAI,CACpD,GAAG,CAAC,EAAE,CACJ,GAAG,CAAC,GAAG,CAAC,QAAQ,EAAE,KAAK,WAAW,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,WAAW,MAAM,CAAC,CACtE,CAAA;YAED,IAAI,kBAAkB,GAAG,IAAI,CAAC,wBAAwB;gBACpD,CAAC,CAAC,MAAM,IAAI,CAAC,eAAe,CAAC,+BAA+B,CACxD,WAAW,EACX,IAAI,CAAC,WAAW,CACjB;gBACH,CAAC,CAAC,WAAW,CAAA;YAEf,OAAO,kBAAkB,CAAA;SAC1B;QAAC,OAAO,GAAG,EAAE;YACZ,MAAM,GAAG,CAAA;SACV;IACH,CAAC;CAEF;AAnGD,kDAmGC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mongoose-nested-option.js","sourceRoot":"","sources":["../../src/db/mongoose-nested-option.ts"],"names":[],"mappings":";;;AAAA,MAAa,oBAAoB;CAGhC;AAHD,oDAGC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-event-profile.interface.js","sourceRoot":"","sources":["../../src/events/get-event-profile.interface.ts"],"names":[],"mappings":""}
|
|
@@ -117,5 +117,6 @@ export declare enum Subjects {
|
|
|
117
117
|
GetCompanyStates = "GetCompanyStates",
|
|
118
118
|
CreateRating = "createRating",
|
|
119
119
|
ElasticSearchSubject = "elasticSearchSubject",
|
|
120
|
-
GetCompanyProperties = "getCompanyProperties"
|
|
120
|
+
GetCompanyProperties = "getCompanyProperties",
|
|
121
|
+
GetEventProfile = "getEventProfile"
|
|
121
122
|
}
|
package/build/events/subjects.js
CHANGED
|
@@ -122,5 +122,6 @@ var Subjects;
|
|
|
122
122
|
Subjects["CreateRating"] = "createRating";
|
|
123
123
|
Subjects["ElasticSearchSubject"] = "elasticSearchSubject";
|
|
124
124
|
Subjects["GetCompanyProperties"] = "getCompanyProperties";
|
|
125
|
+
Subjects["GetEventProfile"] = "getEventProfile";
|
|
125
126
|
})(Subjects = exports.Subjects || (exports.Subjects = {}));
|
|
126
127
|
//# sourceMappingURL=subjects.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subjects.js","sourceRoot":"","sources":["../../src/events/subjects.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"subjects.js","sourceRoot":"","sources":["../../src/events/subjects.ts"],"names":[],"mappings":";;;AAAA,IAAY,QAyHX;AAzHD,WAAY,QAAQ;IAClB,yCAA6B,CAAA;IAC7B,mCAAuB,CAAA;IACvB,4CAAgC,CAAA;IAChC,iCAAqB,CAAA;IACrB,uCAA2B,CAAA;IAC3B,+CAAmC,CAAA;IACnC,+CAAmC,CAAA;IACnC,6CAAiC,CAAA;IACjC,4CAAgC,CAAA;IAChC,4CAAgC,CAAA;IAChC,gDAAoC,CAAA;IACpC,4EAAgE,CAAA;IAChE,wDAA4C,CAAA;IAC5C,yDAA6C,CAAA;IAC7C,qCAAyB,CAAA;IACzB,4CAAgC,CAAA;IAChC,4CAAgC,CAAA;IAChC,2DAA+C,CAAA;IAC/C,2DAA+C,CAAA;IAC/C,2DAA+C,CAAA;IAC/C,2DAA+C,CAAA;IAC/C,qDAAyC,CAAA;IACzC,qDAAyC,CAAA;IACzC,iDAAqC,CAAA;IACrC,mDAAuC,CAAA;IACvC,mDAAuC,CAAA;IACvC,yCAA6B,CAAA;IAC7B,2DAA+C,CAAA;IAC/C,yCAA6B,CAAA;IAC7B,2CAA+B,CAAA;IAC/B,oDAAwC,CAAA;IACxC,mDAAuC,CAAA;IAC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DAAyC,CAAA;IACzC,mEAAuD,CAAA;IACvD,qDAAyC,CAAA;IACzC,+CAAmC,CAAA;IACnC,+DAAmD,CAAA;IACnD,uDAA2C,CAAA;IAC3C,+CAAmC,CAAA;IACnC,yDAA6C,CAAA;IAC7C,yDAA6C,CAAA;IAC7C,mDAAuC,CAAA;IACvC,mEAAuD,CAAA;IACvD,mEAAuD,CAAA;IACvD,yDAA6C,CAAA;IAC7C,mEAAuD,CAAA;IACvD,oEAAwD,CAAA;IACxD,sEAA0D,CAAA;IAC1D,yCAA6B,CAAA;IAC7B,2CAA+B,CAAA;IAC/B,yDAA6C,CAAA;IAC7C,mDAAuC,CAAA;IACvC,6CAAiC,CAAA;IACjC,6CAAiC,CAAA;IACjC,yCAA6B,CAAA;IAC7B,2CAA+B,CAAA;IAC/B,iDAAqC,CAAA;IACrC,yCAA6B,CAAA;IAC7B,yDAA6C,CAAA;IAC7C,yDAA6C,CAAA;IAC7C,+CAAmC,CAAA;AACrC,CAAC,EAzHW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAyHnB"}
|
package/build/index.d.ts
CHANGED
|
@@ -119,6 +119,7 @@ export * from './events/delete-property.interface';
|
|
|
119
119
|
export * from './events/get-company-states.interface';
|
|
120
120
|
export * from './events/elastic-search-event.interface';
|
|
121
121
|
export * from './events/get-company-properties.interface';
|
|
122
|
+
export * from './events/get-event-profile.interface';
|
|
122
123
|
export * from './validators/conditional-required';
|
|
123
124
|
export * from './validators/date-validator';
|
|
124
125
|
export * from './validators/validateNewItem';
|
|
@@ -147,6 +148,8 @@ export * from './db/MongooseBase';
|
|
|
147
148
|
export * from './db/mongoose-find-options';
|
|
148
149
|
export * from './db/aggregate/AggregateConvertor';
|
|
149
150
|
export * from './db/aggregate/createAggregateResponse';
|
|
151
|
+
export * from './db/MongooseNestedModel';
|
|
152
|
+
export * from './db/mongoose-nested-option';
|
|
150
153
|
export * from './types/read-result.interface';
|
|
151
154
|
export * from './types/update-input-data.interface';
|
|
152
155
|
export * from './types/user-role.enum';
|
|
@@ -210,7 +213,6 @@ export * from './utils/encryptor';
|
|
|
210
213
|
export * from './enums/elastic-search-action.enum';
|
|
211
214
|
export * from './enums/elastic-sort-order.enum';
|
|
212
215
|
export * from './enums/event-profile-status.enum';
|
|
213
|
-
export * from './enums/event-profile-type.enum';
|
|
214
216
|
export * from './elastic/elastic-find-options';
|
|
215
217
|
export * from './elastic/elastic-sort.interface';
|
|
216
218
|
export * from './elastic/elastic-search-index';
|
package/build/index.js
CHANGED
|
@@ -131,6 +131,7 @@ __exportStar(require("./events/delete-property.interface"), exports);
|
|
|
131
131
|
__exportStar(require("./events/get-company-states.interface"), exports);
|
|
132
132
|
__exportStar(require("./events/elastic-search-event.interface"), exports);
|
|
133
133
|
__exportStar(require("./events/get-company-properties.interface"), exports);
|
|
134
|
+
__exportStar(require("./events/get-event-profile.interface"), exports);
|
|
134
135
|
__exportStar(require("./validators/conditional-required"), exports);
|
|
135
136
|
__exportStar(require("./validators/date-validator"), exports);
|
|
136
137
|
__exportStar(require("./validators/validateNewItem"), exports);
|
|
@@ -159,6 +160,8 @@ __exportStar(require("./db/MongooseBase"), exports);
|
|
|
159
160
|
__exportStar(require("./db/mongoose-find-options"), exports);
|
|
160
161
|
__exportStar(require("./db/aggregate/AggregateConvertor"), exports);
|
|
161
162
|
__exportStar(require("./db/aggregate/createAggregateResponse"), exports);
|
|
163
|
+
__exportStar(require("./db/MongooseNestedModel"), exports);
|
|
164
|
+
__exportStar(require("./db/mongoose-nested-option"), exports);
|
|
162
165
|
__exportStar(require("./types/read-result.interface"), exports);
|
|
163
166
|
__exportStar(require("./types/update-input-data.interface"), exports);
|
|
164
167
|
__exportStar(require("./types/user-role.enum"), exports);
|
|
@@ -222,7 +225,6 @@ __exportStar(require("./utils/encryptor"), exports);
|
|
|
222
225
|
__exportStar(require("./enums/elastic-search-action.enum"), exports);
|
|
223
226
|
__exportStar(require("./enums/elastic-sort-order.enum"), exports);
|
|
224
227
|
__exportStar(require("./enums/event-profile-status.enum"), exports);
|
|
225
|
-
__exportStar(require("./enums/event-profile-type.enum"), exports);
|
|
226
228
|
__exportStar(require("./elastic/elastic-find-options"), exports);
|
|
227
229
|
__exportStar(require("./elastic/elastic-sort.interface"), exports);
|
|
228
230
|
__exportStar(require("./elastic/elastic-search-index"), exports);
|
package/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oEAAiD;AACjD,oDAAiC;AACjC,iEAA8C;AAC9C,mEAAgD;AAChD,+DAA4C;AAC5C,oEAAiD;AACjD,qEAAkD;AAClD,oEAAiD;AACjD,sEAAmD;AACnD,6EAA0D;AAC1D,uEAAoD;AACpD,sEAAmD;AACnD,6EAA0D;AAC1D,2EAAwD;AACxD,4EAAyD;AACzD,iEAA8C;AAC9C,4EAAyD;AACzD,4EAAyD;AACzD,wEAAqD;AACrD,yEAAsD;AACtD,yEAAsD;AACtD,oEAAiD;AACjD,6EAA0D;AAC1D,2EAAwD;AACxD,8EAA2D;AAC3D,mEAAgD;AAChD,oEAAiD;AACjD,oEAAiD;AACjD,oEAAiD;AACjD,wEAAqD;AACrD,2EAAwD;AACxD,0EAAuD;AACvD,mEAAgD;AAChD,kDAA+B;AAC/B,oEAAiD;AACjD,2EAAwD;AACxD,oEAAiD;AACjD,qEAAkD;AAClD,qEAAkD;AAClD,wEAAqD;AACrD,sEAAmD;AACnD,0EAAuD;AACvD,wEAAqD;AACrD,4EAAyD;AACzD,oEAAiD;AACjD,oEAAiD;AACjD,wEAAqD;AACrD,0EAAuD;AACvD,2EAAwD;AACxD,yEAAsD;AACtD,kFAA+D;AAC/D,qEAAkD;AAClD,qEAAkD;AAClD,qEAAkD;AAClD,qEAAkD;AAClD,mEAAgD;AAChD,mEAAgD;AAChD,qEAAkD;AAClD,6EAA0D;AAC1D,qEAAkD;AAClD,qEAAkD;AAClD,qEAAkD;AAClD,uEAAoD;AACpD,uEAAoD;AACpD,iEAA8C;AAC9C,iEAA8C;AAC9C,qEAAkD;AAClD,qEAAkD;AAClD,4EAAyD;AACzD,4EAAyD;AACzD,qDAAkC;AAClC,yEAAsD;AACtD,iFAA8D;AAC9D,sFAAmE;AACnE,sEAAmD;AACnD,iFAA8D;AAC9D,iFAA8D;AAC9D,kFAA+D;AAC/D,yEAAsD;AACtD,wEAAqD;AACrD,8EAA2D;AAC3D,uEAAoD;AACpD,yEAAsD;AACtD,yEAAsD;AACtD,uEAAoD;AACpD,kFAA+D;AAC/D,2EAAwD;AACxD,kFAA+D;AAC/D,2EAAwD;AACxD,2EAAwD;AACxD,kFAA+D;AAC/D,0EAAuD;AACvD,uEAAoD;AACpD,+EAA4D;AAC5D,2EAAwD;AACxD,uEAAoD;AACpD,mEAAgD;AAChD,0EAAuD;AACvD,0EAAuD;AACvD,uEAAoD;AACpD,6EAA0D;AAC1D,+EAA4D;AAC5D,6EAA0D;AAC1D,kFAA+D;AAC/D,qFAAkE;AAClE,sFAAmE;AACnE,4EAAyD;AACzD,4EAAyD;AACzD,mEAAgD;AAChD,yEAAsD;AACtD,yEAAsD;AACtD,qEAAkD;AAClD,8EAA2D;AAC3D,0EAAuD;AACvD,qEAAkD;AAClD,oEAAiD;AACjD,mEAAgD;AAChD,qEAAkD;AAClD,wEAAqD;AACrD,0EAAuD;AACvD,4EAAyD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oEAAiD;AACjD,oDAAiC;AACjC,iEAA8C;AAC9C,mEAAgD;AAChD,+DAA4C;AAC5C,oEAAiD;AACjD,qEAAkD;AAClD,oEAAiD;AACjD,sEAAmD;AACnD,6EAA0D;AAC1D,uEAAoD;AACpD,sEAAmD;AACnD,6EAA0D;AAC1D,2EAAwD;AACxD,4EAAyD;AACzD,iEAA8C;AAC9C,4EAAyD;AACzD,4EAAyD;AACzD,wEAAqD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A2C;AAC3C,wDAAqC;AACrC,oEAAiD;AACjD,iFAA8D;AAC9D,kEAA+C;AAC/C,iEAA8C;AAE9C,+DAA4C;AAC5C,sEAAmD;AACnD,mFAAgE;AAChE,kFAA+D;AAC/D,wEAAqD;AAErD,qEAAkD;AAClD,6DAA0C;AAC1C,uDAAoC;AACpC,sDAAmC;AACnC,qDAAkC;AAClC,mDAAgC;AAChC,4DAAyC;AACzC,2DAAwC;AACxC,oDAAiC;AACjC,uDAAoC;AACpC,yDAAsC;AACtC,sDAAmC;AACnC,wDAAqC;AACrC,mDAAgC;AAChC,kEAA+C;AAC/C,oDAAiC;AAEjC,qEAAkD;AAClD,kEAA+C;AAC/C,oEAAiD;AAEjD,iEAA8C;AAC9C,mEAAgD;AAChD,iEAA8C"}
|
|
@@ -167,8 +167,8 @@
|
|
|
167
167
|
"affectsGlobalScope": false
|
|
168
168
|
},
|
|
169
169
|
"../src/events/subjects.ts": {
|
|
170
|
-
"version": "
|
|
171
|
-
"signature": "
|
|
170
|
+
"version": "540b9178bce56edf5ec27e139b03d80cb691cbe9e77c4fe872d7b4b5d5fd6b96",
|
|
171
|
+
"signature": "b17106c851f4200b99ce7c0c21d8ff643deea810fbadef159877a5e99295b6ad",
|
|
172
172
|
"affectsGlobalScope": false
|
|
173
173
|
},
|
|
174
174
|
"../src/events/email-specs.interface.ts": {
|
|
@@ -861,6 +861,11 @@
|
|
|
861
861
|
"signature": "47ad6d33cb9b7c93707e6bf460fc01a5428e0d749adf3057cf6bdfbc26f1baa8",
|
|
862
862
|
"affectsGlobalScope": false
|
|
863
863
|
},
|
|
864
|
+
"../src/events/get-event-profile.interface.ts": {
|
|
865
|
+
"version": "1160f85ede2c381bb9683d92d6b3297f1d5ca814f9163be445dfb36f456a89fd",
|
|
866
|
+
"signature": "f04b7879a65a2fa7c661f2599eaa15283100f5a94f6df082164d24a54580028a",
|
|
867
|
+
"affectsGlobalScope": false
|
|
868
|
+
},
|
|
864
869
|
"../node_modules/class-validator/types/validation/validationerror.d.ts": {
|
|
865
870
|
"version": "e69d0b59db23f59172cb087ee44a71438f809bd214d4f4105abd6090b341cbdc",
|
|
866
871
|
"signature": "e69d0b59db23f59172cb087ee44a71438f809bd214d4f4105abd6090b341cbdc",
|
|
@@ -3941,6 +3946,16 @@
|
|
|
3941
3946
|
"signature": "a1b65c90841b5f22f9f922c61fafd17b5319becd9af1dad7fab7b5bfcc6f877e",
|
|
3942
3947
|
"affectsGlobalScope": false
|
|
3943
3948
|
},
|
|
3949
|
+
"../src/db/mongoose-nested-option.ts": {
|
|
3950
|
+
"version": "3cd8413d887834df5b8fd0d97706d629aa02f9d2bc37b6ee328d847dd0ffcd09",
|
|
3951
|
+
"signature": "0bb686b01f9b31b4ac4d871f3e926a66634abceca4d97b63477d5d493e7052cc",
|
|
3952
|
+
"affectsGlobalScope": false
|
|
3953
|
+
},
|
|
3954
|
+
"../src/db/mongoosenestedmodel.ts": {
|
|
3955
|
+
"version": "59fefdcbaa09e5ff85728e90ad35d4ddda6e3156e6d483c628c708eaff0f2573",
|
|
3956
|
+
"signature": "4f4f74bb04417322a6f0ddd46b87f9a1ebb858c6fed2dbe87b32a6ac1de522c2",
|
|
3957
|
+
"affectsGlobalScope": false
|
|
3958
|
+
},
|
|
3944
3959
|
"../src/types/user-role.enum.ts": {
|
|
3945
3960
|
"version": "bcbc5e2c2d2110879ddfaf218d220d0ca366bff247cb8904da5d757c727efaac",
|
|
3946
3961
|
"signature": "fb36403fa633f32b8f55c5ba2129d17d77617bedcce76da1c278173e323e1619",
|
|
@@ -6921,11 +6936,6 @@
|
|
|
6921
6936
|
"signature": "190ff334ca36adb09d687e89c1b83dce9d370341ecab52c7d2439f5d5c7d128d",
|
|
6922
6937
|
"affectsGlobalScope": false
|
|
6923
6938
|
},
|
|
6924
|
-
"../src/enums/event-profile-type.enum.ts": {
|
|
6925
|
-
"version": "c01510e6a01e77a8b893a419b736c517e1b8822a8be6c336d7f1f59a9e9f4c8e",
|
|
6926
|
-
"signature": "24bc87d9f63adb5b4411f21cb4705248f2db6545aa046ce7b5db094f24830d28",
|
|
6927
|
-
"affectsGlobalScope": false
|
|
6928
|
-
},
|
|
6929
6939
|
"../src/elastic/elastic-sort.interface.ts": {
|
|
6930
6940
|
"version": "a76dba958a985f73301a9dcc4aba9903a53187c0e699322f828cbc98096cdcb4",
|
|
6931
6941
|
"signature": "400653ab547c678193ef59b2a1abe8d009e4da9d614a3ec93ea5d0e39f0991ad",
|
|
@@ -6942,8 +6952,8 @@
|
|
|
6942
6952
|
"affectsGlobalScope": false
|
|
6943
6953
|
},
|
|
6944
6954
|
"../src/index.ts": {
|
|
6945
|
-
"version": "
|
|
6946
|
-
"signature": "
|
|
6955
|
+
"version": "0030582778085c10693712233b4b858365a3ee80650ddd02725a1aa1e565ca1e",
|
|
6956
|
+
"signature": "c0d130d2d692b058d76b771c9000c5d5c17aec39035cefa46f49d842b33c6577",
|
|
6947
6957
|
"affectsGlobalScope": false
|
|
6948
6958
|
},
|
|
6949
6959
|
"../src/events/meeting-request-updated.interface.ts": {
|
|
@@ -11779,6 +11789,11 @@
|
|
|
11779
11789
|
"../src/types/update-input-data.interface.ts",
|
|
11780
11790
|
"../src/utils/projection.ts"
|
|
11781
11791
|
],
|
|
11792
|
+
"../src/db/mongoosenestedmodel.ts": [
|
|
11793
|
+
"../node_modules/@nestjs/common/index.d.ts",
|
|
11794
|
+
"../src/db/custommodel.ts",
|
|
11795
|
+
"../src/db/mongoose-nested-option.ts"
|
|
11796
|
+
],
|
|
11782
11797
|
"../src/decorators/get-event-id-decorator.ts": [
|
|
11783
11798
|
"../node_modules/@nestjs/common/index.d.ts"
|
|
11784
11799
|
],
|
|
@@ -11971,6 +11986,9 @@
|
|
|
11971
11986
|
"../src/events/get-contacts-by-query.interface.ts": [
|
|
11972
11987
|
"../src/events/subjects.ts"
|
|
11973
11988
|
],
|
|
11989
|
+
"../src/events/get-event-profile.interface.ts": [
|
|
11990
|
+
"../src/events/subjects.ts"
|
|
11991
|
+
],
|
|
11974
11992
|
"../src/events/get-event.interface.ts": [
|
|
11975
11993
|
"../src/events/subjects.ts"
|
|
11976
11994
|
],
|
|
@@ -12188,7 +12206,9 @@
|
|
|
12188
12206
|
"../src/db/aggregate/createaggregateresponse.ts",
|
|
12189
12207
|
"../src/db/custommodel.ts",
|
|
12190
12208
|
"../src/db/mongoose-find-options.ts",
|
|
12209
|
+
"../src/db/mongoose-nested-option.ts",
|
|
12191
12210
|
"../src/db/mongoosebase.ts",
|
|
12211
|
+
"../src/db/mongoosenestedmodel.ts",
|
|
12192
12212
|
"../src/decorators/get-event-id-decorator.ts",
|
|
12193
12213
|
"../src/decorators/get-user-decorator.ts",
|
|
12194
12214
|
"../src/elastic/elastic-find-options.ts",
|
|
@@ -12197,7 +12217,6 @@
|
|
|
12197
12217
|
"../src/enums/elastic-search-action.enum.ts",
|
|
12198
12218
|
"../src/enums/elastic-sort-order.enum.ts",
|
|
12199
12219
|
"../src/enums/event-profile-status.enum.ts",
|
|
12200
|
-
"../src/enums/event-profile-type.enum.ts",
|
|
12201
12220
|
"../src/events/add-company-crm.interface.ts",
|
|
12202
12221
|
"../src/events/add-contact-crm.interface.ts",
|
|
12203
12222
|
"../src/events/attendee-contact.interface.ts",
|
|
@@ -12253,6 +12272,7 @@
|
|
|
12253
12272
|
"../src/events/get-contact-by-id.interface.ts",
|
|
12254
12273
|
"../src/events/get-contacts-by-email.interface.ts",
|
|
12255
12274
|
"../src/events/get-contacts-by-query.interface.ts",
|
|
12275
|
+
"../src/events/get-event-profile.interface.ts",
|
|
12256
12276
|
"../src/events/get-event.interface.ts",
|
|
12257
12277
|
"../src/events/get-hall-event-topic.interface.ts",
|
|
12258
12278
|
"../src/events/get-meeting-by-query.interface.ts",
|
|
@@ -17338,6 +17358,10 @@
|
|
|
17338
17358
|
"../src/types/read-result.interface.ts",
|
|
17339
17359
|
"../src/types/update-input-data.interface.ts"
|
|
17340
17360
|
],
|
|
17361
|
+
"../src/db/mongoosenestedmodel.ts": [
|
|
17362
|
+
"../src/db/custommodel.ts",
|
|
17363
|
+
"../src/db/mongoose-nested-option.ts"
|
|
17364
|
+
],
|
|
17341
17365
|
"../src/elastic/elastic-find-options.ts": [
|
|
17342
17366
|
"../src/elastic/elastic-sort.interface.ts"
|
|
17343
17367
|
],
|
|
@@ -17520,6 +17544,9 @@
|
|
|
17520
17544
|
"../src/events/get-contacts-by-query.interface.ts": [
|
|
17521
17545
|
"../src/events/subjects.ts"
|
|
17522
17546
|
],
|
|
17547
|
+
"../src/events/get-event-profile.interface.ts": [
|
|
17548
|
+
"../src/events/subjects.ts"
|
|
17549
|
+
],
|
|
17523
17550
|
"../src/events/get-event.interface.ts": [
|
|
17524
17551
|
"../src/events/subjects.ts"
|
|
17525
17552
|
],
|
|
@@ -17737,7 +17764,9 @@
|
|
|
17737
17764
|
"../src/db/aggregate/createaggregateresponse.ts",
|
|
17738
17765
|
"../src/db/custommodel.ts",
|
|
17739
17766
|
"../src/db/mongoose-find-options.ts",
|
|
17767
|
+
"../src/db/mongoose-nested-option.ts",
|
|
17740
17768
|
"../src/db/mongoosebase.ts",
|
|
17769
|
+
"../src/db/mongoosenestedmodel.ts",
|
|
17741
17770
|
"../src/decorators/get-event-id-decorator.ts",
|
|
17742
17771
|
"../src/decorators/get-user-decorator.ts",
|
|
17743
17772
|
"../src/elastic/elastic-find-options.ts",
|
|
@@ -17746,7 +17775,6 @@
|
|
|
17746
17775
|
"../src/enums/elastic-search-action.enum.ts",
|
|
17747
17776
|
"../src/enums/elastic-sort-order.enum.ts",
|
|
17748
17777
|
"../src/enums/event-profile-status.enum.ts",
|
|
17749
|
-
"../src/enums/event-profile-type.enum.ts",
|
|
17750
17778
|
"../src/events/add-company-crm.interface.ts",
|
|
17751
17779
|
"../src/events/add-contact-crm.interface.ts",
|
|
17752
17780
|
"../src/events/attendee-contact.interface.ts",
|
|
@@ -17802,6 +17830,7 @@
|
|
|
17802
17830
|
"../src/events/get-contact-by-id.interface.ts",
|
|
17803
17831
|
"../src/events/get-contacts-by-email.interface.ts",
|
|
17804
17832
|
"../src/events/get-contacts-by-query.interface.ts",
|
|
17833
|
+
"../src/events/get-event-profile.interface.ts",
|
|
17805
17834
|
"../src/events/get-event.interface.ts",
|
|
17806
17835
|
"../src/events/get-hall-event-topic.interface.ts",
|
|
17807
17836
|
"../src/events/get-meeting-by-query.interface.ts",
|
|
@@ -19245,7 +19274,9 @@
|
|
|
19245
19274
|
"../src/db/aggregate/createaggregateresponse.ts",
|
|
19246
19275
|
"../src/db/custommodel.ts",
|
|
19247
19276
|
"../src/db/mongoose-find-options.ts",
|
|
19277
|
+
"../src/db/mongoose-nested-option.ts",
|
|
19248
19278
|
"../src/db/mongoosebase.ts",
|
|
19279
|
+
"../src/db/mongoosenestedmodel.ts",
|
|
19249
19280
|
"../src/decorators/get-event-id-decorator.ts",
|
|
19250
19281
|
"../src/decorators/get-user-decorator.ts",
|
|
19251
19282
|
"../src/elastic/elastic-find-options.ts",
|
|
@@ -19254,7 +19285,6 @@
|
|
|
19254
19285
|
"../src/enums/elastic-search-action.enum.ts",
|
|
19255
19286
|
"../src/enums/elastic-sort-order.enum.ts",
|
|
19256
19287
|
"../src/enums/event-profile-status.enum.ts",
|
|
19257
|
-
"../src/enums/event-profile-type.enum.ts",
|
|
19258
19288
|
"../src/events/add-company-crm.interface.ts",
|
|
19259
19289
|
"../src/events/add-contact-crm.interface.ts",
|
|
19260
19290
|
"../src/events/attendee-contact.interface.ts",
|
|
@@ -19310,6 +19340,7 @@
|
|
|
19310
19340
|
"../src/events/get-contact-by-id.interface.ts",
|
|
19311
19341
|
"../src/events/get-contacts-by-email.interface.ts",
|
|
19312
19342
|
"../src/events/get-contacts-by-query.interface.ts",
|
|
19343
|
+
"../src/events/get-event-profile.interface.ts",
|
|
19313
19344
|
"../src/events/get-event.interface.ts",
|
|
19314
19345
|
"../src/events/get-hall-event-topic.interface.ts",
|
|
19315
19346
|
"../src/events/get-meeting-by-query.interface.ts",
|
package/package.json
CHANGED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EventProfileType = void 0;
|
|
4
|
-
var EventProfileType;
|
|
5
|
-
(function (EventProfileType) {
|
|
6
|
-
EventProfileType["COMPANY"] = "Company";
|
|
7
|
-
})(EventProfileType = exports.EventProfileType || (exports.EventProfileType = {}));
|
|
8
|
-
//# sourceMappingURL=event-profile-type.enum.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"event-profile-type.enum.js","sourceRoot":"","sources":["../../src/enums/event-profile-type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAEX;AAFD,WAAY,gBAAgB;IAC1B,uCAAmB,CAAA;AACrB,CAAC,EAFW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAE3B"}
|