@aldb2b/common 1.0.502 → 1.0.508
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/CustomModel.d.ts +1 -0
- package/build/db/MongooseBase.d.ts +1 -0
- package/build/db/aggregate/AggregateConvertor.d.ts +1 -0
- package/build/index.d.ts +4 -2
- package/build/index.js +4 -2
- package/build/index.js.map +1 -1
- package/build/models/{companies/schemas.d.ts → models/companies/company.schema.d.ts} +8 -4
- package/build/models/models/companies/company.schema.js +21 -0
- package/build/models/models/companies/company.schema.js.map +1 -0
- package/build/models/{companies/models.d.ts → models/companies/contact.schema.d.ts} +9 -9
- package/build/models/models/companies/contact.schema.js +21 -0
- package/build/models/models/companies/contact.schema.js.map +1 -0
- package/build/models/models/companies/index.d.ts +2 -0
- package/build/models/{events → models/companies}/index.js +2 -2
- package/build/models/models/companies/index.js.map +1 -0
- package/build/models/{events/models.d.ts → models/events/event.schema.d.ts} +9 -4
- package/build/models/models/events/event.schema.js +21 -0
- package/build/models/models/events/event.schema.js.map +1 -0
- package/build/models/models/events/index.d.ts +1 -0
- package/build/models/{companies → models/events}/index.js +1 -2
- package/build/models/models/events/index.js.map +1 -0
- package/build/models/models/model.providers.d.ts +64 -0
- package/build/models/models/model.providers.js +25 -0
- package/build/models/models/model.providers.js.map +1 -0
- package/build/models/models.module.js +8 -10
- package/build/models/models.module.js.map +1 -1
- package/build/models/{events/schemas.d.ts → mongoose.providers.d.ts} +7 -4
- package/build/models/mongoose.providers.js +20 -0
- package/build/models/mongoose.providers.js.map +1 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -1
- package/build/models/companies/index.d.ts +0 -2
- package/build/models/companies/index.js.map +0 -1
- package/build/models/companies/models.js +0 -10
- package/build/models/companies/models.js.map +0 -1
- package/build/models/companies/schemas.js +0 -7
- package/build/models/companies/schemas.js.map +0 -1
- package/build/models/events/index.d.ts +0 -2
- package/build/models/events/index.js.map +0 -1
- package/build/models/events/models.js +0 -9
- package/build/models/events/models.js.map +0 -1
- package/build/models/events/schemas.js +0 -6
- package/build/models/events/schemas.js.map +0 -1
|
@@ -46,6 +46,7 @@
|
|
|
46
46
|
/// <reference types="@aldb2b/common/node_modules/mongoose/types/virtuals" />
|
|
47
47
|
/// <reference types="@aldb2b/common/node_modules/mongoose" />
|
|
48
48
|
/// <reference types="mongoose/types/inferschematype" />
|
|
49
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
49
50
|
/// <reference types="@aldb2b/common/node_modules/mongoose/types/inferschematype" />
|
|
50
51
|
import { Model } from 'mongoose';
|
|
51
52
|
export declare abstract class CustomModel<T> extends Model {
|
|
@@ -46,6 +46,7 @@
|
|
|
46
46
|
/// <reference types="@aldb2b/common/node_modules/mongoose/types/virtuals" />
|
|
47
47
|
/// <reference types="@aldb2b/common/node_modules/mongoose" />
|
|
48
48
|
/// <reference types="mongoose/types/inferschematype" />
|
|
49
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
49
50
|
/// <reference types="@aldb2b/common/node_modules/mongoose/types/inferschematype" />
|
|
50
51
|
import { QueryOptions } from 'mongoose';
|
|
51
52
|
import { CustomModel } from './CustomModel';
|
|
@@ -46,6 +46,7 @@
|
|
|
46
46
|
/// <reference types="@aldb2b/common/node_modules/mongoose/types/virtuals" />
|
|
47
47
|
/// <reference types="@aldb2b/common/node_modules/mongoose" />
|
|
48
48
|
/// <reference types="mongoose/types/inferschematype" />
|
|
49
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
49
50
|
/// <reference types="@aldb2b/common/node_modules/mongoose/types/inferschematype" />
|
|
50
51
|
import * as mongoose from 'mongoose';
|
|
51
52
|
import { MongooseFindOptions } from '../mongoose-find-options';
|
package/build/index.d.ts
CHANGED
|
@@ -229,5 +229,7 @@ export * from './elastic/elastic-search-index';
|
|
|
229
229
|
export * from './tokens/user-term-token.interface';
|
|
230
230
|
export * from './tokens/user-term-token.interface';
|
|
231
231
|
export * from './models/models.module';
|
|
232
|
-
export * from './models/
|
|
233
|
-
export * from './models/
|
|
232
|
+
export * from './models/mongoose.providers';
|
|
233
|
+
export * from './models/models/companies';
|
|
234
|
+
export * from './models/models/events';
|
|
235
|
+
export * from './models/models/model.providers';
|
package/build/index.js
CHANGED
|
@@ -245,6 +245,8 @@ __exportStar(require("./elastic/elastic-search-index"), exports);
|
|
|
245
245
|
__exportStar(require("./tokens/user-term-token.interface"), exports);
|
|
246
246
|
__exportStar(require("./tokens/user-term-token.interface"), exports);
|
|
247
247
|
__exportStar(require("./models/models.module"), exports);
|
|
248
|
-
__exportStar(require("./models/
|
|
249
|
-
__exportStar(require("./models/
|
|
248
|
+
__exportStar(require("./models/mongoose.providers"), exports);
|
|
249
|
+
__exportStar(require("./models/models/companies"), exports);
|
|
250
|
+
__exportStar(require("./models/models/events"), exports);
|
|
251
|
+
__exportStar(require("./models/models/model.providers"), exports);
|
|
250
252
|
//# sourceMappingURL=index.js.map
|
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;AA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AAuD;AAEvD,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,oDAAiC;AACjC,gDAA6B;AAE7B,qEAAkD;AAClD,kEAA+C;AAC/C,oEAAiD;AACjD,yDAAsC;AACtC,gEAA6C;AAC7C,8DAA2C;AAC3C,gEAA6C;AAC7C,0DAAuC;AAEvC,iEAA8C;AAC9C,mEAAgD;AAChD,iEAA8C;AAE9C,qEAAkD;AAClD,qEAAkD;AAElD,yDAAsC;AACtC,
|
|
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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C,wDAAqC;AACrC,mDAAgC;AAChC,oDAAiC;AACjC,gDAA6B;AAE7B,qEAAkD;AAClD,kEAA+C;AAC/C,oEAAiD;AACjD,yDAAsC;AACtC,gEAA6C;AAC7C,8DAA2C;AAC3C,gEAA6C;AAC7C,0DAAuC;AAEvC,iEAA8C;AAC9C,mEAAgD;AAChD,iEAA8C;AAE9C,qEAAkD;AAClD,qEAAkD;AAElD,yDAAsC;AACtC,8DAA2C;AAC3C,4DAAyC;AACzC,yDAAsC;AACtC,kEAA+C"}
|
|
@@ -46,11 +46,15 @@
|
|
|
46
46
|
/// <reference types="@aldb2b/common/node_modules/mongoose/types/virtuals" />
|
|
47
47
|
/// <reference types="@aldb2b/common/node_modules/mongoose" />
|
|
48
48
|
/// <reference types="mongoose/types/inferschematype" />
|
|
49
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
49
50
|
/// <reference types="@aldb2b/common/node_modules/mongoose/types/inferschematype" />
|
|
50
|
-
import mongoose from 'mongoose';
|
|
51
|
-
|
|
51
|
+
import * as mongoose from 'mongoose';
|
|
52
|
+
declare const Document: typeof mongoose.Document;
|
|
53
|
+
export declare class Company extends Document {
|
|
54
|
+
}
|
|
55
|
+
export declare const CompanySchema: mongoose.Schema<Company, mongoose.Model<Company, any, any, any, mongoose.Document<unknown, any, Company> & Company & Required<{
|
|
52
56
|
_id: unknown;
|
|
53
|
-
}
|
|
54
|
-
export declare const ContactSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{}>> & mongoose.FlatRecord<{}> & Required<{
|
|
57
|
+
}>, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, Company, mongoose.Document<unknown, {}, mongoose.FlatRecord<Company>> & mongoose.FlatRecord<Company> & Required<{
|
|
55
58
|
_id: unknown;
|
|
56
59
|
}>>;
|
|
60
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.CompanySchema = exports.Company = void 0;
|
|
10
|
+
const mongoose = require("mongoose");
|
|
11
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
12
|
+
const Document = mongoose.Document;
|
|
13
|
+
let Company = class Company extends Document {
|
|
14
|
+
};
|
|
15
|
+
exports.Company = Company;
|
|
16
|
+
exports.Company = Company = __decorate([
|
|
17
|
+
(0, mongoose_1.Schema)({ strict: false })
|
|
18
|
+
], Company);
|
|
19
|
+
const InitialCompanySchema = mongoose_1.SchemaFactory.createForClass(Company);
|
|
20
|
+
exports.CompanySchema = InitialCompanySchema;
|
|
21
|
+
//# sourceMappingURL=company.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"company.schema.js","sourceRoot":"","sources":["../../../../src/models/models/companies/company.schema.ts"],"names":[],"mappings":";;;;;;;;;AAAA,qCAAoC;AACpC,+CAAwD;AAExD,MAAM,QAAQ,GAAG,QAAQ,CAAC,QAAQ,CAAA;AAG3B,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,QAAQ;CAAG,CAAA;AAA3B,0BAAO;kBAAP,OAAO;IADnB,IAAA,iBAAM,EAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;GACb,OAAO,CAAoB;AAExC,MAAM,oBAAoB,GAAG,wBAAa,CAAC,cAAc,CAAC,OAAO,CAAC,CAAA;AAErD,QAAA,aAAa,GAAG,oBAAoB,CAAA"}
|
|
@@ -46,15 +46,15 @@
|
|
|
46
46
|
/// <reference types="@aldb2b/common/node_modules/mongoose/types/virtuals" />
|
|
47
47
|
/// <reference types="@aldb2b/common/node_modules/mongoose" />
|
|
48
48
|
/// <reference types="mongoose/types/inferschematype" />
|
|
49
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
49
50
|
/// <reference types="@aldb2b/common/node_modules/mongoose/types/inferschematype" />
|
|
50
|
-
import mongoose from 'mongoose';
|
|
51
|
-
|
|
51
|
+
import * as mongoose from 'mongoose';
|
|
52
|
+
declare const Document: typeof mongoose.Document;
|
|
53
|
+
export declare class Contact extends Document {
|
|
54
|
+
}
|
|
55
|
+
export declare const ContactSchema: mongoose.Schema<Contact, mongoose.Model<Contact, any, any, any, mongoose.Document<unknown, any, Contact> & Contact & Required<{
|
|
52
56
|
_id: unknown;
|
|
53
|
-
}>,
|
|
57
|
+
}>, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, Contact, mongoose.Document<unknown, {}, mongoose.FlatRecord<Contact>> & mongoose.FlatRecord<Contact> & Required<{
|
|
54
58
|
_id: unknown;
|
|
55
|
-
}
|
|
56
|
-
export
|
|
57
|
-
_id: unknown;
|
|
58
|
-
}>, mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{}>> & mongoose.FlatRecord<{}> & Required<{
|
|
59
|
-
_id: unknown;
|
|
60
|
-
}>>>;
|
|
59
|
+
}>>;
|
|
60
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.ContactSchema = exports.Contact = void 0;
|
|
10
|
+
const mongoose = require("mongoose");
|
|
11
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
12
|
+
const Document = mongoose.Document;
|
|
13
|
+
let Contact = class Contact extends Document {
|
|
14
|
+
};
|
|
15
|
+
exports.Contact = Contact;
|
|
16
|
+
exports.Contact = Contact = __decorate([
|
|
17
|
+
(0, mongoose_1.Schema)({ strict: false })
|
|
18
|
+
], Contact);
|
|
19
|
+
const InitialContactSchema = mongoose_1.SchemaFactory.createForClass(Contact);
|
|
20
|
+
exports.ContactSchema = InitialContactSchema;
|
|
21
|
+
//# sourceMappingURL=contact.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contact.schema.js","sourceRoot":"","sources":["../../../../src/models/models/companies/contact.schema.ts"],"names":[],"mappings":";;;;;;;;;AAAA,qCAAoC;AACpC,+CAAwD;AAExD,MAAM,QAAQ,GAAG,QAAQ,CAAC,QAAQ,CAAA;AAG3B,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,QAAQ;CAAG,CAAA;AAA3B,0BAAO;kBAAP,OAAO;IADnB,IAAA,iBAAM,EAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;GACb,OAAO,CAAoB;AAExC,MAAM,oBAAoB,GAAG,wBAAa,CAAC,cAAc,CAAC,OAAO,CAAC,CAAA;AAErD,QAAA,aAAa,GAAG,oBAAoB,CAAA"}
|
|
@@ -14,6 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
18
|
-
__exportStar(require("./
|
|
17
|
+
__exportStar(require("./company.schema"), exports);
|
|
18
|
+
__exportStar(require("./contact.schema"), exports);
|
|
19
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/models/companies/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAgC;AAChC,mDAAgC"}
|
|
@@ -46,10 +46,15 @@
|
|
|
46
46
|
/// <reference types="@aldb2b/common/node_modules/mongoose/types/virtuals" />
|
|
47
47
|
/// <reference types="@aldb2b/common/node_modules/mongoose" />
|
|
48
48
|
/// <reference types="mongoose/types/inferschematype" />
|
|
49
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
49
50
|
/// <reference types="@aldb2b/common/node_modules/mongoose/types/inferschematype" />
|
|
50
|
-
import mongoose from 'mongoose';
|
|
51
|
-
|
|
51
|
+
import * as mongoose from 'mongoose';
|
|
52
|
+
declare const Document: typeof mongoose.Document;
|
|
53
|
+
export declare class Event extends Document {
|
|
54
|
+
}
|
|
55
|
+
export declare const EventSchema: mongoose.Schema<Event, mongoose.Model<Event, any, any, any, mongoose.Document<unknown, any, Event> & Event & Required<{
|
|
52
56
|
_id: unknown;
|
|
53
|
-
}>,
|
|
57
|
+
}>, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, Event, mongoose.Document<unknown, {}, mongoose.FlatRecord<Event>> & mongoose.FlatRecord<Event> & Required<{
|
|
54
58
|
_id: unknown;
|
|
55
|
-
}
|
|
59
|
+
}>>;
|
|
60
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.EventSchema = exports.Event = void 0;
|
|
10
|
+
const mongoose = require("mongoose");
|
|
11
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
12
|
+
const Document = mongoose.Document;
|
|
13
|
+
let Event = class Event extends Document {
|
|
14
|
+
};
|
|
15
|
+
exports.Event = Event;
|
|
16
|
+
exports.Event = Event = __decorate([
|
|
17
|
+
(0, mongoose_1.Schema)({ strict: false })
|
|
18
|
+
], Event);
|
|
19
|
+
const InitialEventSchema = mongoose_1.SchemaFactory.createForClass(Event);
|
|
20
|
+
exports.EventSchema = InitialEventSchema;
|
|
21
|
+
//# sourceMappingURL=event.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"event.schema.js","sourceRoot":"","sources":["../../../../src/models/models/events/event.schema.ts"],"names":[],"mappings":";;;;;;;;;AAAA,qCAAoC;AACpC,+CAAwD;AAExD,MAAM,QAAQ,GAAG,QAAQ,CAAC,QAAQ,CAAA;AAG3B,IAAM,KAAK,GAAX,MAAM,KAAM,SAAQ,QAAQ;CAAG,CAAA;AAAzB,sBAAK;gBAAL,KAAK;IADjB,IAAA,iBAAM,EAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;GACb,KAAK,CAAoB;AAEtC,MAAM,kBAAkB,GAAG,wBAAa,CAAC,cAAc,CAAC,KAAK,CAAC,CAAA;AAEjD,QAAA,WAAW,GAAG,kBAAkB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './event.schema';
|
|
@@ -14,6 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
18
|
-
__exportStar(require("./schemas"), exports);
|
|
17
|
+
__exportStar(require("./event.schema"), exports);
|
|
19
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/models/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA8B"}
|
|
@@ -0,0 +1,64 @@
|
|
|
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="@aldb2b/common/node_modules/mongoose/types/aggregate" />
|
|
25
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/callback" />
|
|
26
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/collection" />
|
|
27
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/connection" />
|
|
28
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/cursor" />
|
|
29
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/document" />
|
|
30
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/error" />
|
|
31
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/expressions" />
|
|
32
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/helpers" />
|
|
33
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/middlewares" />
|
|
34
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/indexes" />
|
|
35
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/models" />
|
|
36
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/mongooseoptions" />
|
|
37
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/pipelinestage" />
|
|
38
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/populate" />
|
|
39
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/query" />
|
|
40
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/schemaoptions" />
|
|
41
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/schematypes" />
|
|
42
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/session" />
|
|
43
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/types" />
|
|
44
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/utility" />
|
|
45
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/validation" />
|
|
46
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/virtuals" />
|
|
47
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose" />
|
|
48
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
49
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
50
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/inferschematype" />
|
|
51
|
+
import { Connection } from 'mongoose';
|
|
52
|
+
import { Company } from './companies/company.schema';
|
|
53
|
+
import { ConnectionEnum } from '../../enums/connection.enum';
|
|
54
|
+
export declare const modelProviders: {
|
|
55
|
+
provide: string;
|
|
56
|
+
useFactory: (connection: Connection) => import("mongoose").Model<Company, {}, {}, {}, import("mongoose").Document<unknown, {}, Company> & Company & Required<{
|
|
57
|
+
_id: unknown;
|
|
58
|
+
}>, import("mongoose").Schema<Company, import("mongoose").Model<Company, any, any, any, import("mongoose").Document<unknown, any, Company> & Company & Required<{
|
|
59
|
+
_id: unknown;
|
|
60
|
+
}>, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Company, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Company>> & import("mongoose").FlatRecord<Company> & Required<{
|
|
61
|
+
_id: unknown;
|
|
62
|
+
}>>>;
|
|
63
|
+
inject: ConnectionEnum[];
|
|
64
|
+
}[];
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.modelProviders = void 0;
|
|
4
|
+
const company_schema_1 = require("./companies/company.schema");
|
|
5
|
+
const contact_schema_1 = require("./companies/contact.schema");
|
|
6
|
+
const event_schema_1 = require("./events/event.schema");
|
|
7
|
+
const connection_enum_1 = require("../../enums/connection.enum");
|
|
8
|
+
exports.modelProviders = [
|
|
9
|
+
{
|
|
10
|
+
provide: 'COMPANY_MODEL',
|
|
11
|
+
useFactory: (connection) => connection.model(company_schema_1.Company.name, company_schema_1.CompanySchema),
|
|
12
|
+
inject: [connection_enum_1.ConnectionEnum.COMPANY_CONNECTION],
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
provide: 'CONTACT_MODEL',
|
|
16
|
+
useFactory: (connection) => connection.model(contact_schema_1.Contact.name, contact_schema_1.ContactSchema),
|
|
17
|
+
inject: [connection_enum_1.ConnectionEnum.COMPANY_CONNECTION],
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
provide: 'EVENT_MODEL',
|
|
21
|
+
useFactory: (connection) => connection.model(event_schema_1.Event.name, event_schema_1.EventSchema),
|
|
22
|
+
inject: [connection_enum_1.ConnectionEnum.EVENT_CONNECTION],
|
|
23
|
+
},
|
|
24
|
+
];
|
|
25
|
+
//# sourceMappingURL=model.providers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model.providers.js","sourceRoot":"","sources":["../../../src/models/models/model.providers.ts"],"names":[],"mappings":";;;AACA,+DAAmE;AACnE,+DAAmE;AACnE,wDAA0D;AAC1D,iEAA4D;AAE/C,QAAA,cAAc,GAAG;IAC5B;QACE,OAAO,EAAE,eAAe;QACxB,UAAU,EAAE,CAAC,UAAsB,EAAE,EAAE,CACrC,UAAU,CAAC,KAAK,CAAC,wBAAO,CAAC,IAAI,EAAE,8BAAa,CAAC;QAC/C,MAAM,EAAE,CAAC,gCAAc,CAAC,kBAAkB,CAAC;KAC5C;IACD;QACE,OAAO,EAAE,eAAe;QACxB,UAAU,EAAE,CAAC,UAAsB,EAAE,EAAE,CACrC,UAAU,CAAC,KAAK,CAAC,wBAAO,CAAC,IAAI,EAAE,8BAAa,CAAC;QAC/C,MAAM,EAAE,CAAC,gCAAc,CAAC,kBAAkB,CAAC;KAC5C;IACD;QACE,OAAO,EAAE,aAAa;QACtB,UAAU,EAAE,CAAC,UAAsB,EAAE,EAAE,CACrC,UAAU,CAAC,KAAK,CAAC,oBAAK,CAAC,IAAI,EAAE,0BAAW,CAAC;QAC3C,MAAM,EAAE,CAAC,gCAAc,CAAC,gBAAgB,CAAC;KAC1C;CACF,CAAA"}
|
|
@@ -8,23 +8,21 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.ModelsModule = void 0;
|
|
10
10
|
const common_1 = require("@nestjs/common");
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
11
|
+
const config_1 = require("@nestjs/config");
|
|
12
|
+
const mongoose_providers_1 = require("./mongoose.providers");
|
|
13
|
+
const model_providers_1 = require("./models/model.providers");
|
|
14
14
|
let ModelsModule = class ModelsModule {
|
|
15
15
|
};
|
|
16
16
|
exports.ModelsModule = ModelsModule;
|
|
17
17
|
exports.ModelsModule = ModelsModule = __decorate([
|
|
18
18
|
(0, common_1.Module)({
|
|
19
19
|
imports: [
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
mongoose_1.MongooseModule.forFeature([
|
|
24
|
-
{ name: companies_1.ContactModel.name, schema: companies_1.ContactSchema },
|
|
25
|
-
]),
|
|
26
|
-
mongoose_1.MongooseModule.forFeature([{ name: events_1.EventModel.name, schema: events_1.EventSchema }]),
|
|
20
|
+
config_1.ConfigModule.forRoot({
|
|
21
|
+
isGlobal: true,
|
|
22
|
+
}),
|
|
27
23
|
],
|
|
24
|
+
providers: [...mongoose_providers_1.mongooseProviders, ...model_providers_1.modelProviders],
|
|
25
|
+
exports: [...mongoose_providers_1.mongooseProviders, ...model_providers_1.modelProviders],
|
|
28
26
|
})
|
|
29
27
|
], ModelsModule);
|
|
30
28
|
//# sourceMappingURL=models.module.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.module.js","sourceRoot":"","sources":["../../src/models/models.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAuC;AACvC
|
|
1
|
+
{"version":3,"file":"models.module.js","sourceRoot":"","sources":["../../src/models/models.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAuC;AACvC,2CAA6C;AAC7C,6DAAwD;AACxD,8DAAyD;AAWlD,IAAM,YAAY,GAAlB,MAAM,YAAY;CAAG,CAAA;AAAf,oCAAY;uBAAZ,YAAY;IATxB,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,qBAAY,CAAC,OAAO,CAAC;gBACnB,QAAQ,EAAE,IAAI;aACf,CAAC;SACH;QACD,SAAS,EAAE,CAAC,GAAG,sCAAiB,EAAE,GAAG,gCAAc,CAAC;QACpD,OAAO,EAAE,CAAC,GAAG,sCAAiB,EAAE,GAAG,gCAAc,CAAC;KACnD,CAAC;GACW,YAAY,CAAG"}
|
|
@@ -46,8 +46,11 @@
|
|
|
46
46
|
/// <reference types="@aldb2b/common/node_modules/mongoose/types/virtuals" />
|
|
47
47
|
/// <reference types="@aldb2b/common/node_modules/mongoose" />
|
|
48
48
|
/// <reference types="mongoose/types/inferschematype" />
|
|
49
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
49
50
|
/// <reference types="@aldb2b/common/node_modules/mongoose/types/inferschematype" />
|
|
50
|
-
import mongoose from 'mongoose';
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
import * as mongoose from 'mongoose';
|
|
52
|
+
import { ConnectionEnum } from '../enums/connection.enum';
|
|
53
|
+
export declare const mongooseProviders: {
|
|
54
|
+
provide: ConnectionEnum;
|
|
55
|
+
useFactory: () => mongoose.Connection;
|
|
56
|
+
}[];
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.mongooseProviders = void 0;
|
|
4
|
+
const mongoose = require("mongoose");
|
|
5
|
+
const connection_enum_1 = require("../enums/connection.enum");
|
|
6
|
+
exports.mongooseProviders = [
|
|
7
|
+
{
|
|
8
|
+
provide: connection_enum_1.ConnectionEnum.COMPANY_CONNECTION,
|
|
9
|
+
useFactory: () => mongoose.createConnection(process.env.MONGO_URI_COMPANY),
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
provide: connection_enum_1.ConnectionEnum.EVENT_CONNECTION,
|
|
13
|
+
useFactory: () => mongoose.createConnection(process.env.MONGO_URI_EVENT),
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
provide: connection_enum_1.ConnectionEnum.USER_CONNECTION,
|
|
17
|
+
useFactory: () => mongoose.createConnection(process.env.MONGO_URI_USER),
|
|
18
|
+
},
|
|
19
|
+
];
|
|
20
|
+
//# sourceMappingURL=mongoose.providers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mongoose.providers.js","sourceRoot":"","sources":["../../src/models/mongoose.providers.ts"],"names":[],"mappings":";;;AAAA,qCAAoC;AACpC,8DAAyD;AAE5C,QAAA,iBAAiB,GAAG;IAC/B;QACE,OAAO,EAAE,gCAAc,CAAC,kBAAkB;QAC1C,UAAU,EAAE,GAAwB,EAAE,CACpC,QAAQ,CAAC,gBAAgB,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC;KAC3D;IACD;QACE,OAAO,EAAE,gCAAc,CAAC,gBAAgB;QACxC,UAAU,EAAE,GAAwB,EAAE,CACpC,QAAQ,CAAC,gBAAgB,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC;KACzD;IACD;QACE,OAAO,EAAE,gCAAc,CAAC,eAAe;QACvC,UAAU,EAAE,GAAwB,EAAE,CACpC,QAAQ,CAAC,gBAAgB,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC;KACxD;CACF,CAAA"}
|