eh-commons 0.0.1-testing.34 → 0.0.1-testing.35
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/dist/models/um/embedded/user-client.embedded.d.ts +3 -3
- package/dist/models/um/embedded/user-client.embedded.js +1 -1
- package/dist/models/um/embedded/user-client.embedded.js.map +1 -1
- package/dist/models/um/schemas/client.schema.d.ts +6 -6
- package/dist/models/um/schemas/client.schema.js +6 -6
- package/dist/models/um/schemas/client.schema.js.map +1 -1
- package/dist/models/um/schemas/user.schema.d.ts +2 -2
- package/dist/models/um/schemas/user.schema.js +1 -1
- package/dist/models/um/schemas/user.schema.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/models/um/embedded/user-client.embedded.ts +2 -2
- package/src/models/um/schemas/client.schema.ts +6 -6
- package/src/models/um/schemas/user.schema.ts +1 -1
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
25
|
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
26
|
-
import {
|
|
26
|
+
import { Schema as MongooseSchema, HydratedDocument } from 'mongoose';
|
|
27
27
|
import { IUserClient } from '../interfaces/user-client.interface';
|
|
28
28
|
import { ClientDictionary } from './client-dictionary.embedded';
|
|
29
29
|
export declare class UserClient implements IUserClient {
|
|
30
|
-
clientId: ObjectId;
|
|
31
|
-
roleIds: ObjectId[];
|
|
30
|
+
clientId: MongooseSchema.Types.ObjectId;
|
|
31
|
+
roleIds: MongooseSchema.Types.ObjectId[];
|
|
32
32
|
subjects: ClientDictionary[];
|
|
33
33
|
}
|
|
34
34
|
export declare const UserClientSchema: MongooseSchema<UserClient, import("mongoose").Model<UserClient, any, any, any, import("mongoose").Document<unknown, any, UserClient> & UserClient & {
|
|
@@ -18,7 +18,7 @@ let UserClient = class UserClient {
|
|
|
18
18
|
exports.UserClient = UserClient;
|
|
19
19
|
__decorate([
|
|
20
20
|
(0, mongoose_2.Prop)({ type: mongoose_1.Schema.Types.ObjectId, required: false }),
|
|
21
|
-
__metadata("design:type",
|
|
21
|
+
__metadata("design:type", mongoose_1.Schema.Types.ObjectId)
|
|
22
22
|
], UserClient.prototype, "clientId", void 0);
|
|
23
23
|
__decorate([
|
|
24
24
|
(0, mongoose_2.Prop)({ type: [mongoose_1.Schema.Types.ObjectId], required: false }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-client.embedded.js","sourceRoot":"","sources":["../../../../src/models/um/embedded/user-client.embedded.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAAgF;AAChF,+CAA+D;AAE/D,6EAAwF;AAGjF,IAAM,UAAU,GAAhB,MAAM,UAAU;CAStB,CAAA;AATY,gCAAU;AAErB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,iBAAc,CAAC,KAAK,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC
|
|
1
|
+
{"version":3,"file":"user-client.embedded.js","sourceRoot":"","sources":["../../../../src/models/um/embedded/user-client.embedded.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAAgF;AAChF,+CAA+D;AAE/D,6EAAwF;AAGjF,IAAM,UAAU,GAAhB,MAAM,UAAU;CAStB,CAAA;AATY,gCAAU;AAErB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,iBAAc,CAAC,KAAK,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;8BACrD,iBAAc,CAAC,KAAK,CAAC,QAAQ;4CAAC;AAGxC;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,CAAC,iBAAc,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;2CACxB;AAGzC;IADC,IAAA,eAAI,EAAC,EAAC,IAAI,EAAE,CAAC,mDAAsB,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAC,CAAC;;4CAC3B;qBARlB,UAAU;IADtB,IAAA,iBAAM,EAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;GACV,UAAU,CAStB;AAEY,QAAA,gBAAgB,GAAG,wBAAa,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC"}
|
|
@@ -26,14 +26,14 @@
|
|
|
26
26
|
import { HydratedDocument, ObjectId, Schema as MongooseSchema } from 'mongoose';
|
|
27
27
|
import { ClientType } from '../enums/client-type.enum';
|
|
28
28
|
import { IClient } from '../interfaces/client.interface';
|
|
29
|
-
import { I18n } from '
|
|
30
|
-
import { Contact } from '
|
|
31
|
-
import { Address } from '
|
|
32
|
-
import { Record } from '
|
|
29
|
+
import { I18n } from '../../util/embedded/i18n.embedded';
|
|
30
|
+
import { Contact } from '../../util/embedded/contact.embedded';
|
|
31
|
+
import { Address } from '../../util/embedded/address.embedded';
|
|
32
|
+
import { Record } from '../../util/embedded/record.embedded';
|
|
33
33
|
import { ClientDictionary } from '../embedded/client-dictionary.embedded';
|
|
34
34
|
export declare class Client implements IClient {
|
|
35
|
-
_id: ObjectId;
|
|
36
|
-
originId: ObjectId;
|
|
35
|
+
_id: MongooseSchema.Types.ObjectId;
|
|
36
|
+
originId: MongooseSchema.Types.ObjectId;
|
|
37
37
|
type: ClientType;
|
|
38
38
|
parentId: ObjectId;
|
|
39
39
|
name: I18n;
|
|
@@ -13,21 +13,21 @@ 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 i18n_embedded_1 = require("
|
|
17
|
-
const contact_embedded_1 = require("
|
|
18
|
-
const address_embedded_1 = require("
|
|
19
|
-
const record_embedded_1 = require("
|
|
16
|
+
const i18n_embedded_1 = require("../../util/embedded/i18n.embedded");
|
|
17
|
+
const contact_embedded_1 = require("../../util/embedded/contact.embedded");
|
|
18
|
+
const address_embedded_1 = require("../../util/embedded/address.embedded");
|
|
19
|
+
const record_embedded_1 = require("../../util/embedded/record.embedded");
|
|
20
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",
|
|
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 }),
|
|
30
|
-
__metadata("design:type",
|
|
30
|
+
__metadata("design:type", mongoose_1.Schema.Types.ObjectId)
|
|
31
31
|
], Client.prototype, "originId", void 0);
|
|
32
32
|
__decorate([
|
|
33
33
|
(0, mongoose_2.Prop)({
|
|
@@ -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
|
|
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,qEAAqE;AACrE,2EAA8E;AAC9E,2EAA8E;AAC9E,yEAA2E;AAC3E,uFAAkG;AAG3F,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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GACI,MAAM,CAuClB;AAEY,QAAA,YAAY,GAAG,wBAAa,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
25
|
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
26
|
-
import { HydratedDocument, Schema as MongooseSchema
|
|
26
|
+
import { HydratedDocument, Schema as MongooseSchema } from 'mongoose';
|
|
27
27
|
import { IUser } from '../interfaces/user.interface';
|
|
28
28
|
import { UserClient } from '../embedded/user-client.embedded';
|
|
29
29
|
import { Person } from '../../../models/util/embedded/person.embedded';
|
|
@@ -32,7 +32,7 @@ import { Record } from '../../../models/util/embedded/record.embedded';
|
|
|
32
32
|
import { ProfInfo } from '../embedded/prof-info.embedded';
|
|
33
33
|
import { Credentials } from '../embedded/credentials.embedded';
|
|
34
34
|
export declare class User implements IUser {
|
|
35
|
-
_id: ObjectId;
|
|
35
|
+
_id: MongooseSchema.Types.ObjectId;
|
|
36
36
|
person: Person;
|
|
37
37
|
contacts: Contact[];
|
|
38
38
|
clients: UserClient[];
|
|
@@ -23,7 +23,7 @@ let User = class User {
|
|
|
23
23
|
exports.User = User;
|
|
24
24
|
__decorate([
|
|
25
25
|
(0, mongoose_2.Prop)({ type: mongoose_1.Schema.Types.ObjectId, auto: true }),
|
|
26
|
-
__metadata("design:type",
|
|
26
|
+
__metadata("design:type", mongoose_1.Schema.Types.ObjectId)
|
|
27
27
|
], User.prototype, "_id", void 0);
|
|
28
28
|
__decorate([
|
|
29
29
|
(0, mongoose_2.Prop)({ type: person_embedded_1.PersonSchema, required: false }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.schema.js","sourceRoot":"","sources":["../../../../src/models/um/schemas/user.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAAgF;AAEhF,+CAA+D;AAC/D,2EAAgF;AAChF,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