@aldb2b/common 1.0.945 → 1.0.947
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/entities/entities.module.js +2 -1
- package/build/entities/entities.module.js.map +1 -1
- package/build/entities/models/companies/companies.provider.d.ts +6 -0
- package/build/entities/models/companies/companies.provider.js +6 -0
- package/build/entities/models/companies/companies.provider.js.map +1 -1
- package/build/entities/models/model.providers.d.ts +28 -0
- package/build/entities/models/model.providers.js +2 -0
- package/build/entities/models/model.providers.js.map +1 -1
- package/build/enums/repository-provider.enum.d.ts +1 -0
- package/build/enums/repository-provider.enum.js +1 -0
- package/build/enums/repository-provider.enum.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -11,6 +11,7 @@ const common_1 = require("@nestjs/common");
|
|
|
11
11
|
const mongoose_providers_1 = require("./mongoose.providers");
|
|
12
12
|
const model_providers_1 = require("./models/model.providers");
|
|
13
13
|
const config_1 = require("@nestjs/config");
|
|
14
|
+
const common_2 = require("./models/common");
|
|
14
15
|
let EntitiesModule = class EntitiesModule {
|
|
15
16
|
};
|
|
16
17
|
exports.EntitiesModule = EntitiesModule;
|
|
@@ -22,7 +23,7 @@ exports.EntitiesModule = EntitiesModule = __decorate([
|
|
|
22
23
|
isGlobal: true,
|
|
23
24
|
}),
|
|
24
25
|
],
|
|
25
|
-
controllers: [],
|
|
26
|
+
controllers: [common_2.PreferenceCustomizationController],
|
|
26
27
|
providers: [...mongoose_providers_1.mongooseProviders, ...model_providers_1.modelProviders],
|
|
27
28
|
exports: [...mongoose_providers_1.mongooseProviders, ...model_providers_1.modelProviders],
|
|
28
29
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entities.module.js","sourceRoot":"","sources":["../../src/entities/entities.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA+C;AAC/C,6DAAwD;AACxD,8DAAyD;AACzD,2CAA6C;
|
|
1
|
+
{"version":3,"file":"entities.module.js","sourceRoot":"","sources":["../../src/entities/entities.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA+C;AAC/C,6DAAwD;AACxD,8DAAyD;AACzD,2CAA6C;AAC7C,4CAAoE;AAc7D,IAAM,cAAc,GAApB,MAAM,cAAc;CAAG,CAAA;AAAjB,wCAAc;yBAAd,cAAc;IAX1B,IAAA,eAAM,GAAE;IACR,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,qBAAY,CAAC,OAAO,CAAC;gBACnB,QAAQ,EAAE,IAAI;aACf,CAAC;SACH;QACD,WAAW,EAAE,CAAC,0CAAiC,CAAC;QAChD,SAAS,EAAE,CAAC,GAAG,sCAAiB,EAAE,GAAG,gCAAc,CAAC;QACpD,OAAO,EAAE,CAAC,GAAG,sCAAiB,EAAE,GAAG,gCAAc,CAAC;KACnD,CAAC;GACW,cAAc,CAAG"}
|
|
@@ -52,6 +52,7 @@
|
|
|
52
52
|
import { Company } from './entities/companies/company.entity';
|
|
53
53
|
import { DatabaseModel } from '../../../enums/database-model.enum';
|
|
54
54
|
import { DatabaseConnection } from '../../../enums/database-connection.enum';
|
|
55
|
+
import { ContactModel } from './entities/contacts/contact.entity';
|
|
55
56
|
import { ServiceProvider } from '../../../enums/service-provider.enum';
|
|
56
57
|
import { RepositoryProvider } from '../../../enums/repository-provider.enum';
|
|
57
58
|
import { MeetingRequestCommonRepository } from '../meetings/repositories/meeting-request-common.repository';
|
|
@@ -61,6 +62,7 @@ import { CompanyCommonRepository } from './repositories/company-common.repositor
|
|
|
61
62
|
import { SubscriptionLogRepository } from '../subscriptions/repositories/subscription-log.repository';
|
|
62
63
|
import { CustomModel } from '../../../db/CustomModel';
|
|
63
64
|
import { SubscriptionLog } from '../subscriptions';
|
|
65
|
+
import { ContactCommonRepository } from "./repositories/contact-common.repository";
|
|
64
66
|
export declare const companiesProviders: ({
|
|
65
67
|
provide: DatabaseModel;
|
|
66
68
|
useFactory: (connection: import("mongoose").Connection) => import("mongoose").Model<import("./entities/countries/country.schema").Country, {}, {}, {}, import("mongoose").Document<unknown, {}, import("./entities/countries/country.schema").Country> & import("./entities/countries/country.schema").Country & Required<{
|
|
@@ -119,6 +121,10 @@ export declare const companiesProviders: ({
|
|
|
119
121
|
provide: RepositoryProvider;
|
|
120
122
|
inject: DatabaseModel[];
|
|
121
123
|
useFactory: (subscriptionLogModel: CustomModel<SubscriptionLog>) => SubscriptionLogRepository;
|
|
124
|
+
} | {
|
|
125
|
+
provide: RepositoryProvider;
|
|
126
|
+
inject: DatabaseModel[];
|
|
127
|
+
useFactory: (contactModel: CustomModel<ContactModel>) => ContactCommonRepository;
|
|
122
128
|
} | {
|
|
123
129
|
provide: ServiceProvider;
|
|
124
130
|
inject: RepositoryProvider[];
|
|
@@ -15,6 +15,7 @@ const subscription_log_repository_1 = require("../subscriptions/repositories/sub
|
|
|
15
15
|
const subscriptions_1 = require("../subscriptions");
|
|
16
16
|
const country_schema_1 = require("./entities/countries/country.schema");
|
|
17
17
|
const city_schema_1 = require("./entities/cities/city.schema");
|
|
18
|
+
const contact_common_repository_1 = require("./repositories/contact-common.repository");
|
|
18
19
|
exports.companiesProviders = [
|
|
19
20
|
{
|
|
20
21
|
provide: database_model_enum_1.DatabaseModel.COUNTRY_MODEL,
|
|
@@ -89,6 +90,11 @@ exports.companiesProviders = [
|
|
|
89
90
|
inject: [database_model_enum_1.DatabaseModel.SUBSCRIPTION_LOG_MODEL],
|
|
90
91
|
useFactory: (subscriptionLogModel) => new subscription_log_repository_1.SubscriptionLogRepository(subscriptionLogModel),
|
|
91
92
|
},
|
|
93
|
+
{
|
|
94
|
+
provide: repository_provider_enum_1.RepositoryProvider.CONTACT_COMMON_REPOSITORY,
|
|
95
|
+
inject: [database_model_enum_1.DatabaseModel.CONTACT_MODEL],
|
|
96
|
+
useFactory: (contactModel) => new contact_common_repository_1.ContactCommonRepository(contactModel),
|
|
97
|
+
},
|
|
92
98
|
{
|
|
93
99
|
provide: service_provider_enum_1.ServiceProvider.COMPANY_COMMON_SERVICE,
|
|
94
100
|
inject: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"companies.provider.js","sourceRoot":"","sources":["../../../../src/entities/models/companies/companies.provider.ts"],"names":[],"mappings":";;;AAAA,wEAA6E;AAC7E,4EAAkE;AAClE,sFAA4E;AAC5E,
|
|
1
|
+
{"version":3,"file":"companies.provider.js","sourceRoot":"","sources":["../../../../src/entities/models/companies/companies.provider.ts"],"names":[],"mappings":";;;AAAA,wEAA6E;AAC7E,4EAAkE;AAClE,sFAA4E;AAC5E,uEAA+E;AAC/E,gFAAsE;AACtE,sFAA4E;AAC5E,kHAA2G;AAC3G,0CAMoB;AACpB,8EAAwE;AACxE,wFAAkF;AAClF,2GAAqG;AAErG,oDAA0E;AAC1E,wEAAoE;AACpE,+DAA2D;AAC3D,wFAAiF;AAEpE,QAAA,kBAAkB,GAAG;IAChC;QACE,OAAO,EAAE,mCAAa,CAAC,aAAa;QACpC,UAAU,EAAE,+BAAc;QAC1B,MAAM,EAAE,CAAC,6CAAkB,CAAC,kBAAkB,CAAC;KAChD;IACD;QACE,OAAO,EAAE,mCAAa,CAAC,UAAU;QACjC,UAAU,EAAE,yBAAW;QACvB,MAAM,EAAE,CAAC,6CAAkB,CAAC,kBAAkB,CAAC;KAChD;IACD;QACE,OAAO,EAAE,mCAAa,CAAC,aAAa;QACpC,UAAU,EAAE,+BAAc;QAC1B,MAAM,EAAE;YACN,6CAAkB,CAAC,kBAAkB;YACrC,6CAAkB,CAAC,gBAAgB;SACpC;KACF;IACD;QACE,OAAO,EAAE,mCAAa,CAAC,aAAa;QACpC,UAAU,EAAE,+BAAc;QAC1B,MAAM,EAAE;YACN,6CAAkB,CAAC,kBAAkB;YACrC,6CAAkB,CAAC,gBAAgB;SACpC;KACF;IACD;QACE,OAAO,EAAE,mCAAa,CAAC,qBAAqB;QAC5C,UAAU,EAAE,gCAAqB;QACjC,MAAM,EAAE;YACN,6CAAkB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,yBAAyB;QACrD,MAAM,EAAE,CAAC,mCAAa,CAAC,aAAa,CAAC;QACrC,UAAU,EAAE,CAAC,YAAuC,EAAE,EAAE,CACtD,IAAI,mDAAuB,CAAC,YAAY,CAAC;KAC5C;IACD;QACE,OAAO,EAAE,uCAAe,CAAC,sBAAsB;QAC/C,MAAM,EAAE;YACN,6CAAkB,CAAC,yBAAyB;YAC5C,6CAAkB,CAAC,iCAAiC;YACpD,6CAAkB,CAAC,yBAAyB;YAC5C,6CAAkB,CAAC,2BAA2B;SAC/C;QACD,UAAU,EAAE,CACV,uBAAgD,EAChD,8BAA8D,EAC9D,uBAAgD,EAChD,yBAAoD,EACpD,EAAE,CACF,IAAI,6CAAoB,CACtB,uBAAuB,EACvB,8BAA8B,EAC9B,uBAAuB,EACvB,yBAAyB,CAC1B;KACJ;CACF,CAAA"}
|
|
@@ -50,6 +50,30 @@
|
|
|
50
50
|
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
51
51
|
/// <reference types="@aldb2b/common/node_modules/mongoose/types/inferschematype" />
|
|
52
52
|
export declare const modelProviders: ({
|
|
53
|
+
provide: import("../..").DatabaseModel;
|
|
54
|
+
useFactory: (connection: import("mongoose").Connection, eventConnection: import("mongoose").Connection, userConnection: import("mongoose").Connection) => import("mongoose").Model<import("./common").AuditTrail, {}, {}, {}, import("mongoose").Document<unknown, {}, import("./common").AuditTrail> & import("./common").AuditTrail & Required<{
|
|
55
|
+
_id: string;
|
|
56
|
+
}>, any>;
|
|
57
|
+
inject: import("../..").DatabaseConnection[];
|
|
58
|
+
} | {
|
|
59
|
+
provide: import("../..").RepositoryProvider;
|
|
60
|
+
inject: import("../..").DatabaseModel[];
|
|
61
|
+
useFactory: (auditModel: import("../..").CustomModel<import("./common").AuditTrail>) => import("./common").AuditTrailRepository;
|
|
62
|
+
} | {
|
|
63
|
+
provide: import("../..").ServiceProvider;
|
|
64
|
+
inject: (import("../..").DatabaseModel | import("../..").RepositoryProvider)[];
|
|
65
|
+
useFactory: (auditLogRepository: import("./common").AuditTrailRepository, userModel: import("../..").CustomModel<import("./users").User>) => import("./common").AuditTrailService;
|
|
66
|
+
} | {
|
|
67
|
+
provide: import("../..").DatabaseModel;
|
|
68
|
+
useFactory: (connection: import("mongoose").Connection, eventConnection: import("mongoose").Connection, companyConnection: import("mongoose").Connection) => import("mongoose").Model<import("./common").PreferenceCustomization, {}, {}, {}, import("mongoose").Document<unknown, {}, import("./common").PreferenceCustomization> & import("./common").PreferenceCustomization & Required<{
|
|
69
|
+
_id: string;
|
|
70
|
+
}>, any>;
|
|
71
|
+
inject: import("../..").DatabaseConnection[];
|
|
72
|
+
} | {
|
|
73
|
+
provide: import("../..").RepositoryProvider;
|
|
74
|
+
inject: import("../..").DatabaseModel[];
|
|
75
|
+
useFactory: (preferenceCustomizationModel: import("../..").CustomModel<import("./common").PreferenceCustomization>) => import("./common").PreferenceCustomizationRepository;
|
|
76
|
+
} | {
|
|
53
77
|
provide: import("../..").DatabaseModel;
|
|
54
78
|
useFactory: (connection: import("mongoose").Connection, companyConnection: import("mongoose").Connection, eventConnection: import("mongoose").Connection) => import("mongoose").Model<import("./meetings").Meeting, {}, {}, {}, import("mongoose").Document<unknown, {}, import("./meetings").Meeting> & import("./meetings").Meeting & Required<{
|
|
55
79
|
_id: string;
|
|
@@ -139,6 +163,10 @@ export declare const modelProviders: ({
|
|
|
139
163
|
provide: import("../..").RepositoryProvider;
|
|
140
164
|
inject: import("../..").DatabaseModel[];
|
|
141
165
|
useFactory: (meetingModel: import("../..").CustomModel<import("./meetings").Meeting>) => import("./meetings").MeetingCommonRepository;
|
|
166
|
+
} | {
|
|
167
|
+
provide: import("../..").RepositoryProvider;
|
|
168
|
+
inject: import("../..").DatabaseModel[];
|
|
169
|
+
useFactory: (contactModel: import("../..").CustomModel<import("./companies").ContactModel>) => import("./companies").ContactCommonRepository;
|
|
142
170
|
} | {
|
|
143
171
|
provide: import("../..").ServiceProvider;
|
|
144
172
|
inject: import("../..").RepositoryProvider[];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.modelProviders = void 0;
|
|
4
|
+
const common_provider_1 = require("./common/common.provider");
|
|
4
5
|
const companies_1 = require("./companies");
|
|
5
6
|
const events_provider_1 = require("./events/events.provider");
|
|
6
7
|
const meetings_1 = require("./meetings");
|
|
@@ -12,5 +13,6 @@ exports.modelProviders = [
|
|
|
12
13
|
...users_provider_1.userProviders,
|
|
13
14
|
...meetings_1.meetingProviders,
|
|
14
15
|
...subscriptions_provider_1.subscriptionProviders,
|
|
16
|
+
...common_provider_1.commonProviders,
|
|
15
17
|
];
|
|
16
18
|
//# sourceMappingURL=model.providers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.providers.js","sourceRoot":"","sources":["../../../src/entities/models/model.providers.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"model.providers.js","sourceRoot":"","sources":["../../../src/entities/models/model.providers.ts"],"names":[],"mappings":";;;AAAA,8DAA0D;AAC1D,2CAAgD;AAChD,8DAAyD;AACzD,yCAA6C;AAC7C,mFAA8E;AAC9E,2DAAsD;AAEzC,QAAA,cAAc,GAAG;IAC5B,GAAG,gCAAc;IACjB,GAAG,8BAAkB;IACrB,GAAG,8BAAa;IAChB,GAAG,2BAAgB;IACnB,GAAG,8CAAqB;IACxB,GAAG,iCAAe;CACnB,CAAA"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export declare enum RepositoryProvider {
|
|
2
2
|
AUDIT_TRAIL_REPOSITORY = "AuditTrailRepository",
|
|
3
3
|
COMPANY_COMMON_REPOSITORY = "CompanyCommonRepository",
|
|
4
|
+
CONTACT_COMMON_REPOSITORY = "ContactCommonRepository",
|
|
4
5
|
MEETING_COMMON_REPOSITORY = "MeetingCommonRepository",
|
|
5
6
|
MEETING_REQUEST_COMMON_REPOSITORY = "MeetingRequestCommonRepository",
|
|
6
7
|
SUBSCRIPTION_LOG_REPOSITORY = "SubscriptioLogRepository",
|
|
@@ -5,6 +5,7 @@ var RepositoryProvider;
|
|
|
5
5
|
(function (RepositoryProvider) {
|
|
6
6
|
RepositoryProvider["AUDIT_TRAIL_REPOSITORY"] = "AuditTrailRepository";
|
|
7
7
|
RepositoryProvider["COMPANY_COMMON_REPOSITORY"] = "CompanyCommonRepository";
|
|
8
|
+
RepositoryProvider["CONTACT_COMMON_REPOSITORY"] = "ContactCommonRepository";
|
|
8
9
|
RepositoryProvider["MEETING_COMMON_REPOSITORY"] = "MeetingCommonRepository";
|
|
9
10
|
RepositoryProvider["MEETING_REQUEST_COMMON_REPOSITORY"] = "MeetingRequestCommonRepository";
|
|
10
11
|
RepositoryProvider["SUBSCRIPTION_LOG_REPOSITORY"] = "SubscriptioLogRepository";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repository-provider.enum.js","sourceRoot":"","sources":["../../src/enums/repository-provider.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"repository-provider.enum.js","sourceRoot":"","sources":["../../src/enums/repository-provider.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,kBAUX;AAVD,WAAY,kBAAkB;IAC5B,qEAA+C,CAAA;IAC/C,2EAAqD,CAAA;IACrD,2EAAqD,CAAA;IACrD,2EAAqD,CAAA;IACrD,0FAAoE,CAAA;IACpE,8EAAwD,CAAA;IACxD,mGAA6E,CAAA;IAC7E,+FAAyE,CAAA;IACzE,+FAAyE,CAAA;AAC3E,CAAC,EAVW,kBAAkB,kCAAlB,kBAAkB,QAU7B"}
|