@aldb2b/common 1.0.945 → 1.0.946
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/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 +4 -0
- 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
|
@@ -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,CAAC,kBAAkB;YACrC,6CAAkB,CAAC,kBAAkB;YACrC,6CAAkB,CAAC,gBAAgB;SACpC;KACF;IACD;QACE,OAAO,EAAE,mCAAa,CAAC,aAAa;QACpC,UAAU,EAAE,yBAAc;QAC1B,MAAM,EAAE;YACN,6CAAkB,CAAC,kBA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AC/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"}
|
|
@@ -139,6 +139,10 @@ export declare const modelProviders: ({
|
|
|
139
139
|
provide: import("../..").RepositoryProvider;
|
|
140
140
|
inject: import("../..").DatabaseModel[];
|
|
141
141
|
useFactory: (meetingModel: import("../..").CustomModel<import("./meetings").Meeting>) => import("./meetings").MeetingCommonRepository;
|
|
142
|
+
} | {
|
|
143
|
+
provide: import("../..").RepositoryProvider;
|
|
144
|
+
inject: import("../..").DatabaseModel[];
|
|
145
|
+
useFactory: (contactModel: import("../..").CustomModel<import("./companies").ContactModel>) => import("./companies").ContactCommonRepository;
|
|
142
146
|
} | {
|
|
143
147
|
provide: import("../..").ServiceProvider;
|
|
144
148
|
inject: import("../..").RepositoryProvider[];
|
|
@@ -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"}
|