eh-commons 0.0.1-testing.38 → 0.0.1-testing.39

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.
@@ -26,13 +26,13 @@
26
26
  import { HydratedDocument, Schema as MongooseSchema, ObjectId } from 'mongoose';
27
27
  import { ClientType } from '../enums/client-type.enum';
28
28
  import { IClient } from '../interfaces/client.interface';
29
- import { ClientDictionary } from '../embedded/client-dictionary.embedded';
30
- import { Address } from '../../../models/util/embedded/address.embedded';
31
- import { Contact } from '../../../models/util/embedded/contact.embedded';
32
29
  import { I18n } from '../../../models/util/embedded/i18n.embedded';
30
+ import { Contact } from '../../../models/util/embedded/contact.embedded';
31
+ import { Address } from '../../../models/util/embedded/address.embedded';
33
32
  import { Record } from '../../../models/util/embedded/record.embedded';
33
+ import { ClientDictionary } from '../embedded/client-dictionary.embedded';
34
34
  export declare class Client implements IClient {
35
- _id: ObjectId;
35
+ _id: MongooseSchema.Types.ObjectId;
36
36
  originId: ObjectId;
37
37
  type: ClientType;
38
38
  parentId: ObjectId;
@@ -13,17 +13,17 @@ exports.ClientSchema = exports.Client = void 0;
13
13
  const mongoose_1 = require("mongoose");
14
14
  const client_type_enum_1 = require("../enums/client-type.enum");
15
15
  const mongoose_2 = require("@nestjs/mongoose");
16
- const client_dictionary_embedded_1 = require("../embedded/client-dictionary.embedded");
17
- const address_embedded_1 = require("../../../models/util/embedded/address.embedded");
18
- const contact_embedded_1 = require("../../../models/util/embedded/contact.embedded");
19
16
  const i18n_embedded_1 = require("../../../models/util/embedded/i18n.embedded");
17
+ const contact_embedded_1 = require("../../../models/util/embedded/contact.embedded");
18
+ const address_embedded_1 = require("../../../models/util/embedded/address.embedded");
20
19
  const record_embedded_1 = require("../../../models/util/embedded/record.embedded");
20
+ const client_dictionary_embedded_1 = require("../embedded/client-dictionary.embedded");
21
21
  let Client = class Client {
22
22
  };
23
23
  exports.Client = Client;
24
24
  __decorate([
25
25
  (0, mongoose_2.Prop)({ type: mongoose_1.Schema.Types.ObjectId, auto: true }),
26
- __metadata("design:type", Object)
26
+ __metadata("design:type", mongoose_1.Schema.Types.ObjectId)
27
27
  ], Client.prototype, "_id", void 0);
28
28
  __decorate([
29
29
  (0, mongoose_2.Prop)({ type: mongoose_1.Schema.Types.ObjectId, required: false }),
@@ -39,7 +39,7 @@ __decorate([
39
39
  ], Client.prototype, "type", void 0);
40
40
  __decorate([
41
41
  (0, mongoose_2.Prop)({
42
- type: mongoose_1.Schema.Types,
42
+ type: mongoose_1.Schema.Types.ObjectId,
43
43
  ref: 'Client',
44
44
  default: {},
45
45
  required: false,
@@ -47,27 +47,27 @@ __decorate([
47
47
  __metadata("design:type", Object)
48
48
  ], Client.prototype, "parentId", void 0);
49
49
  __decorate([
50
- (0, mongoose_2.Prop)({ type: i18n_embedded_1.I18nSchema, required: true }),
50
+ (0, mongoose_2.Prop)({ type: i18n_embedded_1.I18n, required: true }),
51
51
  __metadata("design:type", i18n_embedded_1.I18n)
52
52
  ], Client.prototype, "name", void 0);
53
53
  __decorate([
54
- (0, mongoose_2.Prop)({ type: address_embedded_1.AddressSchema, required: false }),
54
+ (0, mongoose_2.Prop)({ type: address_embedded_1.Address, required: false }),
55
55
  __metadata("design:type", address_embedded_1.Address)
56
56
  ], Client.prototype, "address", void 0);
57
57
  __decorate([
58
- (0, mongoose_2.Prop)({ type: [contact_embedded_1.ContactSchema], required: false }),
58
+ (0, mongoose_2.Prop)({ type: [contact_embedded_1.Contact], required: false }),
59
59
  __metadata("design:type", Array)
60
60
  ], Client.prototype, "contacts", void 0);
61
61
  __decorate([
62
- (0, mongoose_2.Prop)({ type: record_embedded_1.RecordSchema, required: true }),
62
+ (0, mongoose_2.Prop)({ type: record_embedded_1.Record, required: true }),
63
63
  __metadata("design:type", record_embedded_1.Record)
64
64
  ], Client.prototype, "record", void 0);
65
65
  __decorate([
66
- (0, mongoose_2.Prop)({ type: client_dictionary_embedded_1.ClientDictionarySchema, required: false }),
66
+ (0, mongoose_2.Prop)({ type: client_dictionary_embedded_1.ClientDictionary, required: false }),
67
67
  __metadata("design:type", client_dictionary_embedded_1.ClientDictionary)
68
68
  ], Client.prototype, "region", void 0);
69
69
  __decorate([
70
- (0, mongoose_2.Prop)({ type: client_dictionary_embedded_1.ClientDictionarySchema, required: false }),
70
+ (0, mongoose_2.Prop)({ type: client_dictionary_embedded_1.ClientDictionary, required: false }),
71
71
  __metadata("design:type", client_dictionary_embedded_1.ClientDictionary)
72
72
  ], Client.prototype, "district", void 0);
73
73
  exports.Client = Client = __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"client.schema.js","sourceRoot":"","sources":["../../../../src/models/um/schemas/client.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAAgF;AAChF,gEAAuD;AAEvD,+CAA+D;AAC/D,uFAAkG;AAClG,qFAAwF;AACxF,qFAAwF;AACxF,+EAA+E;AAC/E,mFAAqF;AAG9E,IAAM,MAAM,GAAZ,MAAM,MAAM;CAuClB,CAAA;AAvCY,wBAAM;AAEjB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,iBAAc,CAAC,KAAK,CAAC,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;mCAC5C;AAGd;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,iBAAc,CAAC,KAAK,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;wCAC5C;AAOnB;IALC,IAAA,eAAI,EAAC;QACJ,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,6BAAU;QAChB,QAAQ,EAAE,IAAI;KACf,CAAC;;oCACe;AAQjB;IANC,IAAA,eAAI,EAAC;QACJ,IAAI,EAAE,iBAAc,CAAC,KAAK;QAC1B,GAAG,EAAE,QAAQ;QACb,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,KAAK;KAChB,CAAC;;wCACiB;AAGnB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,0BAAU,EA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