@aldb2b/common 1.0.524 → 1.0.525

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.
@@ -0,0 +1,60 @@
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 * as mongoose from 'mongoose';
52
+ import { CustomModel } from '../../../db/CustomModel';
53
+ export declare class ContactTest {
54
+ _id: string;
55
+ title: string;
56
+ }
57
+ export type ContactTestModel = CustomModel<ContactTest>;
58
+ export declare const ContactTestSchema: mongoose.Schema<ContactTest, ContactTestModel, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, ContactTest, mongoose.Document<unknown, {}, mongoose.FlatRecord<ContactTest>> & mongoose.FlatRecord<ContactTest> & Required<{
59
+ _id: string;
60
+ }>>;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ContactTestSchema = exports.ContactTest = void 0;
4
+ const mongoose = require("mongoose");
5
+ class ContactTest {
6
+ }
7
+ exports.ContactTest = ContactTest;
8
+ exports.ContactTestSchema = new mongoose.Schema({
9
+ title: { type: String },
10
+ });
11
+ //# sourceMappingURL=contact-test.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contact-test.entity.js","sourceRoot":"","sources":["../../../../src/entities/models/companies/contact-test.entity.ts"],"names":[],"mappings":";;;AAAA,qCAAoC;AAGpC,MAAa,WAAW;CAGvB;AAHD,kCAGC;AAEY,QAAA,iBAAiB,GAAG,IAAI,QAAQ,CAAC,MAAM,CAGlD;IACA,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;CACxB,CAAC,CAAA"}
@@ -1,2 +1,3 @@
1
1
  export * from './company.entity';
2
2
  export * from './contact.entity';
3
+ export * from './contact-test.entity';
@@ -16,4 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./company.entity"), exports);
18
18
  __exportStar(require("./contact.entity"), exports);
19
+ __exportStar(require("./contact-test.entity"), exports);
19
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/entities/models/companies/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAgC;AAChC,mDAAgC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/entities/models/companies/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAgC;AAChC,mDAAgC;AAChC,wDAAqC"}
@@ -50,9 +50,8 @@
50
50
  /// <reference types="@aldb2b/common/node_modules/mongoose/types/inferschematype" />
51
51
  import { Connection } from 'mongoose';
52
52
  import { DatabaseConnection } from '../../enums/database-connection.enum';
53
- import { DatabaseModel } from '../../enums/database-model.enum';
54
53
  export declare const modelProviders: {
55
- provide: DatabaseModel;
54
+ provide: string;
56
55
  useFactory: (connection: Connection) => unknown;
57
56
  inject: DatabaseConnection[];
58
57
  }[];
@@ -17,6 +17,11 @@ exports.modelProviders = [
17
17
  useFactory: (connection) => connection.model('Contact', companies_1.ContactSchema),
18
18
  inject: [database_connection_enum_1.DatabaseConnection.COMPANY_CONNECTION],
19
19
  },
20
+ {
21
+ provide: 'ContactTestModel',
22
+ useFactory: (connection) => connection.model('ContactTest', companies_1.ContactTestSchema),
23
+ inject: [database_connection_enum_1.DatabaseConnection.COMPANY_CONNECTION],
24
+ },
20
25
  {
21
26
  provide: database_model_enum_1.DatabaseModel.USER_MODEL,
22
27
  useFactory: (connection) => connection.model('User', users_1.UserSchema),
@@ -1 +1 @@
1
- {"version":3,"file":"model.providers.js","sourceRoot":"","sources":["../../../src/entities/models/model.providers.ts"],"names":[],"mappings":";;;AACA,mFAAyE;AACzE,yEAA+D;AAC/D,2CAKoB;AACpB,qCAAsC;AACtC,mCAA0D;AAE7C,QAAA,cAAc,GAAG;IAC5B;QACE,OAAO,EAAE,mCAAa,CAAC,aAAa;QACpC,UAAU,EAAE,CAAC,UAAsB,EAAE,EAAE,CACrC,UAAU,CAAC,KAAK,CAAwB,SAAS,EAAE,yBAAa,CAAC;QACnE,MAAM,EAAE,CAAC,6CAAkB,CAAC,kBAAkB,CAAC;KAChD;IACD;QACE,OAAO,EAAE,mCAAa,CAAC,aAAa;QACpC,UAAU,EAAE,CAAC,UAAsB,EAAE,EAAE,CACrC,UAAU,CAAC,KAAK,CAAC,SAAS,EAAE,yBAAa,CAAC;QAC5C,MAAM,EAAE,CAAC,6CAAkB,CAAC,kBAAkB,CAAC;KAChD;IACD;QACE,OAAO,EAAE,mCAAa,CAAC,UAAU;QACjC,UAAU,EAAE,CAAC,UAAsB,EAAE,EAAE,CACrC,UAAU,CAAC,KAAK,CAAC,MAAM,EAAE,kBAAU,CAAC;QACtC,MAAM,EAAE,CAAC,6CAAkB,CAAC,eAAe,CAAC;KAC7C;IACD;QACE,OAAO,EAAE,mCAAa,CAAC,qBAAqB;QAC5C,UAAU,EAAE,CAAC,UAAsB,EAAE,EAAE,CACrC,UAAU,CAAC,KAAK,CAAC,gBAAgB,EAAE,4BAAoB,CAAC;QAC1D,MAAM,EAAE,CAAC,6CAAkB,CAAC,eAAe,CAAC;KAC7C;IACD;QACE,OAAO,EAAE,mCAAa,CAAC,WAAW;QAClC,UAAU,EAAE,CAAC,UAAsB,EAAE,EAAE,CACrC,UAAU,CAAC,KAAK,CAAC,OAAO,EAAE,oBAAW,CAAC;QACxC,MAAM,EAAE,CAAC,6CAAkB,CAAC,gBAAgB,CAAC;KAC9C;CAEF,CAAA"}
1
+ {"version":3,"file":"model.providers.js","sourceRoot":"","sources":["../../../src/entities/models/model.providers.ts"],"names":[],"mappings":";;;AACA,mFAAyE;AACzE,yEAA+D;AAC/D,2CAMoB;AACpB,qCAAsC;AACtC,mCAA0D;AAE7C,QAAA,cAAc,GAAG;IAC5B;QACE,OAAO,EAAE,mCAAa,CAAC,aAAa;QACpC,UAAU,EAAE,CAAC,UAAsB,EAAE,EAAE,CACrC,UAAU,CAAC,KAAK,CAAwB,SAAS,EAAE,yBAAa,CAAC;QACnE,MAAM,EAAE,CAAC,6CAAkB,CAAC,kBAAkB,CAAC;KAChD;IACD;QACE,OAAO,EAAE,mCAAa,CAAC,aAAa;QACpC,UAAU,EAAE,CAAC,UAAsB,EAAE,EAAE,CACrC,UAAU,CAAC,KAAK,CAAC,SAAS,EAAE,yBAAa,CAAC;QAC5C,MAAM,EAAE,CAAC,6CAAkB,CAAC,kBAAkB,CAAC;KAChD;IACD;QACE,OAAO,EAAE,kBAAkB;QAC3B,UAAU,EAAE,CAAC,UAAsB,EAAE,EAAE,CACrC,UAAU,CAAC,KAAK,CAAC,aAAa,EAAE,6BAAiB,CAAC;QACpD,MAAM,EAAE,CAAC,6CAAkB,CAAC,kBAAkB,CAAC;KAChD;IACD;QACE,OAAO,EAAE,mCAAa,CAAC,UAAU;QACjC,UAAU,EAAE,CAAC,UAAsB,EAAE,EAAE,CACrC,UAAU,CAAC,KAAK,CAAC,MAAM,EAAE,kBAAU,CAAC;QACtC,MAAM,EAAE,CAAC,6CAAkB,CAAC,eAAe,CAAC;KAC7C;IACD;QACE,OAAO,EAAE,mCAAa,CAAC,qBAAqB;QAC5C,UAAU,EAAE,CAAC,UAAsB,EAAE,EAAE,CACrC,UAAU,CAAC,KAAK,CAAC,gBAAgB,EAAE,4BAAoB,CAAC;QAC1D,MAAM,EAAE,CAAC,6CAAkB,CAAC,eAAe,CAAC;KAC7C;IACD;QACE,OAAO,EAAE,mCAAa,CAAC,WAAW;QAClC,UAAU,EAAE,CAAC,UAAsB,EAAE,EAAE,CACrC,UAAU,CAAC,KAAK,CAAC,OAAO,EAAE,oBAAW,CAAC;QACxC,MAAM,EAAE,CAAC,6CAAkB,CAAC,gBAAgB,CAAC;KAC9C;CAEF,CAAA"}