eh-commons 0.0.1-testing.31 → 0.0.1-testing.33
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/client-dictionary.embedded.d.ts +7 -7
- package/dist/models/um/embedded/client-dictionary.embedded.js +4 -4
- package/dist/models/um/embedded/client-dictionary.embedded.js.map +1 -1
- package/dist/models/um/embedded/prof-info.embedded.d.ts +1 -1
- package/dist/models/um/embedded/prof-info.embedded.js +2 -2
- package/dist/models/um/embedded/prof-info.embedded.js.map +1 -1
- package/dist/models/um/embedded/user-client.embedded.d.ts +7 -7
- package/dist/models/um/embedded/user-client.embedded.js +4 -4
- package/dist/models/um/embedded/user-client.embedded.js.map +1 -1
- package/dist/models/um/interfaces/client.dictionary.interface.d.ts +3 -3
- package/dist/models/um/interfaces/client.interface.d.ts +4 -4
- package/dist/models/um/interfaces/permission.interface.d.ts +2 -2
- package/dist/models/um/interfaces/prof-info.interface.d.ts +1 -1
- package/dist/models/um/interfaces/role.interface.d.ts +2 -2
- package/dist/models/um/interfaces/user-client.interface.d.ts +3 -3
- package/dist/models/um/interfaces/user.interface.d.ts +2 -2
- package/dist/models/um/schemas/client.schema.d.ts +8 -8
- 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/permission.schema.d.ts +6 -6
- package/dist/models/um/schemas/permission.schema.js +2 -2
- package/dist/models/um/schemas/permission.schema.js.map +1 -1
- package/dist/models/um/schemas/role.schema.d.ts +6 -6
- package/dist/models/um/schemas/role.schema.js +2 -2
- package/dist/models/um/schemas/role.schema.js.map +1 -1
- package/dist/models/um/schemas/user.schema.d.ts +6 -6
- package/dist/models/um/schemas/user.schema.js +2 -2
- 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/client-dictionary.embedded.ts +5 -5
- package/src/models/um/embedded/prof-info.embedded.ts +2 -2
- package/src/models/um/embedded/user-client.embedded.ts +6 -6
- package/src/models/um/interfaces/client.dictionary.interface.ts +3 -3
- package/src/models/um/interfaces/client.interface.ts +4 -4
- package/src/models/um/interfaces/permission.interface.ts +2 -2
- package/src/models/um/interfaces/prof-info.interface.ts +1 -1
- package/src/models/um/interfaces/role.interface.ts +2 -2
- package/src/models/um/interfaces/user-client.interface.ts +3 -3
- package/src/models/um/interfaces/user.interface.ts +2 -2
- package/src/models/um/schemas/client.schema.ts +9 -11
- package/src/models/um/schemas/permission.schema.ts +3 -3
- package/src/models/um/schemas/role.schema.ts +3 -3
- package/src/models/um/schemas/user.schema.ts +3 -3
|
@@ -23,18 +23,18 @@
|
|
|
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 { HydratedDocument, Schema as MongooseSchema } from 'mongoose';
|
|
27
27
|
import { IClientDictionary } from '../interfaces/client.dictionary.interface';
|
|
28
28
|
import { I18n } from '../../util/embedded/i18n.embedded';
|
|
29
29
|
export declare class ClientDictionary implements IClientDictionary {
|
|
30
|
-
originId:
|
|
31
|
-
dictionaryId:
|
|
30
|
+
originId: MongooseSchema.Types.ObjectId;
|
|
31
|
+
dictionaryId: MongooseSchema.Types.ObjectId;
|
|
32
32
|
remoteId: string;
|
|
33
33
|
name: I18n;
|
|
34
34
|
}
|
|
35
|
-
export declare const ClientDictionarySchema:
|
|
36
|
-
_id: mongoose.Types.ObjectId;
|
|
37
|
-
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, ClientDictionary, mongoose.Document<unknown, {}, mongoose.FlatRecord<ClientDictionary>> & mongoose.FlatRecord<ClientDictionary> & {
|
|
38
|
-
_id: mongoose.Types.ObjectId;
|
|
35
|
+
export declare const ClientDictionarySchema: MongooseSchema<ClientDictionary, import("mongoose").Model<ClientDictionary, any, any, any, import("mongoose").Document<unknown, any, ClientDictionary> & ClientDictionary & {
|
|
36
|
+
_id: import("mongoose").Types.ObjectId;
|
|
37
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ClientDictionary, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<ClientDictionary>> & import("mongoose").FlatRecord<ClientDictionary> & {
|
|
38
|
+
_id: import("mongoose").Types.ObjectId;
|
|
39
39
|
}>;
|
|
40
40
|
export type ClientDictionaryDocument = HydratedDocument<ClientDictionary>;
|
|
@@ -17,12 +17,12 @@ let ClientDictionary = class ClientDictionary {
|
|
|
17
17
|
};
|
|
18
18
|
exports.ClientDictionary = ClientDictionary;
|
|
19
19
|
__decorate([
|
|
20
|
-
(0, mongoose_1.Prop)({ type: mongoose_2.
|
|
21
|
-
__metadata("design:type", mongoose_2.
|
|
20
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, required: false }),
|
|
21
|
+
__metadata("design:type", mongoose_2.Schema.Types.ObjectId)
|
|
22
22
|
], ClientDictionary.prototype, "originId", void 0);
|
|
23
23
|
__decorate([
|
|
24
|
-
(0, mongoose_1.Prop)({ type: mongoose_2.
|
|
25
|
-
__metadata("design:type", mongoose_2.
|
|
24
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, required: false }),
|
|
25
|
+
__metadata("design:type", mongoose_2.Schema.Types.ObjectId)
|
|
26
26
|
], ClientDictionary.prototype, "dictionaryId", void 0);
|
|
27
27
|
__decorate([
|
|
28
28
|
(0, mongoose_1.Prop)({ type: String, required: false }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client-dictionary.embedded.js","sourceRoot":"","sources":["../../../../src/models/um/embedded/client-dictionary.embedded.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAC/D,
|
|
1
|
+
{"version":3,"file":"client-dictionary.embedded.js","sourceRoot":"","sources":["../../../../src/models/um/embedded/client-dictionary.embedded.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAC/D,uCAAsE;AAEtE,qEAAyD;AAGlD,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;CAS5B,CAAA;AATY,4CAAgB;AAE3B;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,iBAAc,CAAC,KAAK,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;8BACrD,iBAAc,CAAC,KAAK,CAAC,QAAQ;kDAAC;AAExC;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,iBAAc,CAAC,KAAK,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;8BACjD,iBAAc,CAAC,KAAK,CAAC,QAAQ;sDAAC;AAE5C;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;kDACvB;AAEjB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,oBAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BAC/B,oBAAI;8CAAC;2BARA,gBAAgB;IAD5B,IAAA,iBAAM,EAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;GACV,gBAAgB,CAS5B;AAEY,QAAA,sBAAsB,GACjC,wBAAa,CAAC,cAAc,CAAC,gBAAgB,CAAC,CAAC"}
|
|
@@ -27,7 +27,7 @@ import { IProfInfo } from '../interfaces/prof-info.interface';
|
|
|
27
27
|
import { ClientDictionary } from './client-dictionary.embedded';
|
|
28
28
|
import { HydratedDocument } from 'mongoose';
|
|
29
29
|
export declare class ProfInfo implements IProfInfo {
|
|
30
|
-
subjects: ClientDictionary;
|
|
30
|
+
subjects: ClientDictionary[];
|
|
31
31
|
}
|
|
32
32
|
export declare const ProfInfoSchema: import("mongoose").Schema<ProfInfo, import("mongoose").Model<ProfInfo, any, any, any, import("mongoose").Document<unknown, any, ProfInfo> & ProfInfo & {
|
|
33
33
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -16,8 +16,8 @@ let ProfInfo = class ProfInfo {
|
|
|
16
16
|
};
|
|
17
17
|
exports.ProfInfo = ProfInfo;
|
|
18
18
|
__decorate([
|
|
19
|
-
(0, mongoose_1.Prop)({ type: client_dictionary_embedded_1.ClientDictionary, required: false }),
|
|
20
|
-
__metadata("design:type",
|
|
19
|
+
(0, mongoose_1.Prop)({ type: [client_dictionary_embedded_1.ClientDictionary], required: false }),
|
|
20
|
+
__metadata("design:type", Array)
|
|
21
21
|
], ProfInfo.prototype, "subjects", void 0);
|
|
22
22
|
exports.ProfInfo = ProfInfo = __decorate([
|
|
23
23
|
(0, mongoose_1.Schema)({ _id: false })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prof-info.embedded.js","sourceRoot":"","sources":["../../../../src/models/um/embedded/prof-info.embedded.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAE/D,6EAAgE;AAIzD,IAAM,QAAQ,GAAd,MAAM,QAAQ;CAGpB,CAAA;AAHY,4BAAQ;AAEnB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,6CAAgB,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"prof-info.embedded.js","sourceRoot":"","sources":["../../../../src/models/um/embedded/prof-info.embedded.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAE/D,6EAAgE;AAIzD,IAAM,QAAQ,GAAd,MAAM,QAAQ;CAGpB,CAAA;AAHY,4BAAQ;AAEnB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,CAAC,6CAAgB,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;0CACvB;mBAFlB,QAAQ;IADpB,IAAA,iBAAM,EAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;GACV,QAAQ,CAGpB;AAEY,QAAA,cAAc,GAAG,wBAAa,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC"}
|
|
@@ -23,17 +23,17 @@
|
|
|
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 { ObjectId, 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:
|
|
31
|
-
roleIds:
|
|
30
|
+
clientId: ObjectId;
|
|
31
|
+
roleIds: ObjectId[];
|
|
32
32
|
subjects: ClientDictionary[];
|
|
33
33
|
}
|
|
34
|
-
export declare const UserClientSchema:
|
|
35
|
-
_id: mongoose.Types.ObjectId;
|
|
36
|
-
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, UserClient, mongoose.Document<unknown, {}, mongoose.FlatRecord<UserClient>> & mongoose.FlatRecord<UserClient> & {
|
|
37
|
-
_id: mongoose.Types.ObjectId;
|
|
34
|
+
export declare const UserClientSchema: MongooseSchema<UserClient, import("mongoose").Model<UserClient, any, any, any, import("mongoose").Document<unknown, any, UserClient> & UserClient & {
|
|
35
|
+
_id: import("mongoose").Types.ObjectId;
|
|
36
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, UserClient, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<UserClient>> & import("mongoose").FlatRecord<UserClient> & {
|
|
37
|
+
_id: import("mongoose").Types.ObjectId;
|
|
38
38
|
}>;
|
|
39
39
|
export type UserClientDocument = HydratedDocument<UserClient>;
|
|
@@ -17,15 +17,15 @@ let UserClient = class UserClient {
|
|
|
17
17
|
};
|
|
18
18
|
exports.UserClient = UserClient;
|
|
19
19
|
__decorate([
|
|
20
|
-
(0, mongoose_2.Prop)({ type: mongoose_1.
|
|
21
|
-
__metadata("design:type",
|
|
20
|
+
(0, mongoose_2.Prop)({ type: mongoose_1.Schema.Types.ObjectId, required: false }),
|
|
21
|
+
__metadata("design:type", Object)
|
|
22
22
|
], UserClient.prototype, "clientId", void 0);
|
|
23
23
|
__decorate([
|
|
24
|
-
(0, mongoose_2.Prop)({ type: [mongoose_1.
|
|
24
|
+
(0, mongoose_2.Prop)({ type: [mongoose_1.Schema.Types.ObjectId], required: false }),
|
|
25
25
|
__metadata("design:type", Array)
|
|
26
26
|
], UserClient.prototype, "roleIds", void 0);
|
|
27
27
|
__decorate([
|
|
28
|
-
(0, mongoose_2.Prop)({ type: client_dictionary_embedded_1.ClientDictionary, required: false }),
|
|
28
|
+
(0, mongoose_2.Prop)({ type: [client_dictionary_embedded_1.ClientDictionary], required: false }),
|
|
29
29
|
__metadata("design:type", Array)
|
|
30
30
|
], UserClient.prototype, "subjects", void 0);
|
|
31
31
|
exports.UserClient = UserClient = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-client.embedded.js","sourceRoot":"","sources":["../../../../src/models/um/embedded/user-client.embedded.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
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,6EAAgE;AAGzD,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;;4CAC5C;AAGnB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,CAAC,iBAAc,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;2CAC7C;AAGpB;IADC,IAAA,eAAI,EAAC,EAAC,IAAI,EAAE,CAAC,6CAAgB,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAC,CAAC;;4CACrB;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"}
|
|
@@ -23,11 +23,11 @@
|
|
|
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 { ObjectId } from 'mongoose';
|
|
27
27
|
import { II18n } from '../../util/interfaces/i18n.interface';
|
|
28
28
|
export interface IClientDictionary {
|
|
29
|
-
originId:
|
|
30
|
-
dictionaryId:
|
|
29
|
+
originId: ObjectId;
|
|
30
|
+
dictionaryId: ObjectId;
|
|
31
31
|
remoteId: string;
|
|
32
32
|
name: II18n;
|
|
33
33
|
}
|
|
@@ -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
|
|
26
|
+
import { ObjectId } from 'mongoose';
|
|
27
27
|
import { ClientType } from '../enums/client-type.enum';
|
|
28
28
|
import { II18n } from '../../util/interfaces/i18n.interface';
|
|
29
29
|
import { IRecord } from '../../../models/util/interfaces/record.interface';
|
|
@@ -31,10 +31,10 @@ import { IAddress } from '../../../models/util/interfaces/address.interface';
|
|
|
31
31
|
import { IContact } from '../../../models/util/interfaces/contact.interface';
|
|
32
32
|
import { IClientDictionary } from './client.dictionary.interface';
|
|
33
33
|
export interface IClient {
|
|
34
|
-
_id:
|
|
35
|
-
originId:
|
|
34
|
+
_id: ObjectId;
|
|
35
|
+
originId: ObjectId;
|
|
36
36
|
type: ClientType;
|
|
37
|
-
parentId:
|
|
37
|
+
parentId: ObjectId;
|
|
38
38
|
name: II18n;
|
|
39
39
|
address: IAddress;
|
|
40
40
|
contacts: IContact[];
|
|
@@ -23,11 +23,11 @@
|
|
|
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 { ObjectId } from 'mongoose';
|
|
27
27
|
import { II18n } from '../../util/interfaces/i18n.interface';
|
|
28
28
|
import { IRecord } from '../../util/interfaces/record.interface';
|
|
29
29
|
export interface IPermission {
|
|
30
|
-
_id:
|
|
30
|
+
_id: ObjectId;
|
|
31
31
|
name: II18n;
|
|
32
32
|
description: II18n;
|
|
33
33
|
keyword: string;
|
|
@@ -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 { ObjectId } from 'mongoose';
|
|
27
27
|
import { II18n } from '../../util/interfaces/i18n.interface';
|
|
28
28
|
import { IPermission } from './permission.interface';
|
|
29
29
|
import { IRecord } from '../../util/interfaces/record.interface';
|
|
30
30
|
export interface IRole {
|
|
31
|
-
_id:
|
|
31
|
+
_id: ObjectId;
|
|
32
32
|
name: II18n;
|
|
33
33
|
description: II18n;
|
|
34
34
|
permissions: IPermission[];
|
|
@@ -23,10 +23,10 @@
|
|
|
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 { ObjectId } from 'mongoose';
|
|
27
27
|
import { IClientDictionary } from './client.dictionary.interface';
|
|
28
28
|
export interface IUserClient {
|
|
29
|
-
clientId:
|
|
30
|
-
roleIds:
|
|
29
|
+
clientId: ObjectId;
|
|
30
|
+
roleIds: ObjectId[];
|
|
31
31
|
subjects: IClientDictionary[];
|
|
32
32
|
}
|
|
@@ -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
|
|
26
|
+
import { ObjectId } from 'mongoose';
|
|
27
27
|
import { IPerson } from '../../util/interfaces/person.interface';
|
|
28
28
|
import { IContact } from '../../util/interfaces/contact.interface';
|
|
29
29
|
import { IUserClient } from './user-client.interface';
|
|
@@ -31,7 +31,7 @@ import { IRecord } from '../../util/interfaces/record.interface';
|
|
|
31
31
|
import { IProfInfo } from './prof-info.interface';
|
|
32
32
|
import { ICredentials } from './credentials.interface';
|
|
33
33
|
export interface IUser {
|
|
34
|
-
_id:
|
|
34
|
+
_id: ObjectId;
|
|
35
35
|
person: IPerson;
|
|
36
36
|
contacts: IContact[];
|
|
37
37
|
clients: IUserClient[];
|
|
@@ -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
|
|
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
29
|
import { I18n } from '../../../models/util/embedded/i18n.embedded';
|
|
@@ -32,10 +32,10 @@ import { Address } from '../../../models/util/embedded/address.embedded';
|
|
|
32
32
|
import { Record } from '../../../models/util/embedded/record.embedded';
|
|
33
33
|
import { ClientDictionary } from '../embedded/client-dictionary.embedded';
|
|
34
34
|
export declare class Client implements IClient {
|
|
35
|
-
_id:
|
|
36
|
-
originId:
|
|
35
|
+
_id: ObjectId;
|
|
36
|
+
originId: ObjectId;
|
|
37
37
|
type: ClientType;
|
|
38
|
-
parentId:
|
|
38
|
+
parentId: ObjectId;
|
|
39
39
|
name: I18n;
|
|
40
40
|
address: Address;
|
|
41
41
|
contacts: Contact[];
|
|
@@ -43,9 +43,9 @@ export declare class Client implements IClient {
|
|
|
43
43
|
region: ClientDictionary;
|
|
44
44
|
district: ClientDictionary;
|
|
45
45
|
}
|
|
46
|
-
export declare const ClientSchema:
|
|
47
|
-
_id:
|
|
48
|
-
}>, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, Client, mongoose.Document<unknown, {}, mongoose.FlatRecord<Client>> & mongoose.FlatRecord<Client> & Required<{
|
|
49
|
-
_id:
|
|
46
|
+
export declare const ClientSchema: MongooseSchema<Client, import("mongoose").Model<Client, any, any, any, import("mongoose").Document<unknown, any, Client> & Client & Required<{
|
|
47
|
+
_id: MongooseSchema.Types.ObjectId;
|
|
48
|
+
}>, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Client, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Client>> & import("mongoose").FlatRecord<Client> & Required<{
|
|
49
|
+
_id: MongooseSchema.Types.ObjectId;
|
|
50
50
|
}>>;
|
|
51
51
|
export type ClientDocument = HydratedDocument<Client>;
|
|
@@ -22,12 +22,12 @@ let Client = class Client {
|
|
|
22
22
|
};
|
|
23
23
|
exports.Client = Client;
|
|
24
24
|
__decorate([
|
|
25
|
-
(0, mongoose_2.Prop)({ type: mongoose_1.
|
|
26
|
-
__metadata("design:type",
|
|
25
|
+
(0, mongoose_2.Prop)({ type: mongoose_1.Schema.Types.ObjectId, auto: true }),
|
|
26
|
+
__metadata("design:type", Object)
|
|
27
27
|
], Client.prototype, "_id", void 0);
|
|
28
28
|
__decorate([
|
|
29
|
-
(0, mongoose_2.Prop)({ type: mongoose_1.
|
|
30
|
-
__metadata("design:type",
|
|
29
|
+
(0, mongoose_2.Prop)({ type: mongoose_1.Schema.Types.ObjectId, required: false }),
|
|
30
|
+
__metadata("design:type", Object)
|
|
31
31
|
], Client.prototype, "originId", void 0);
|
|
32
32
|
__decorate([
|
|
33
33
|
(0, mongoose_2.Prop)({
|
|
@@ -39,12 +39,12 @@ __decorate([
|
|
|
39
39
|
], Client.prototype, "type", void 0);
|
|
40
40
|
__decorate([
|
|
41
41
|
(0, mongoose_2.Prop)({
|
|
42
|
-
type: mongoose_1.
|
|
42
|
+
type: mongoose_1.Schema.Types,
|
|
43
43
|
ref: 'Client',
|
|
44
44
|
default: {},
|
|
45
45
|
required: false,
|
|
46
46
|
}),
|
|
47
|
-
__metadata("design:type",
|
|
47
|
+
__metadata("design:type", Object)
|
|
48
48
|
], Client.prototype, "parentId", void 0);
|
|
49
49
|
__decorate([
|
|
50
50
|
(0, mongoose_2.Prop)({ type: i18n_embedded_1.I18n, required: true }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.schema.js","sourceRoot":"","sources":["../../../../src/models/um/schemas/client.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
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,+EAAmE;AACnE,qFAAyE;AACzE,qFAAyE;AACzE,mFAAuE;AACvE,uFAA0E;AAGnE,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,oBAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BAC/B,oBAAI;oCAAC;AAGX;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,0BAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;8BAChC,0BAAO;uCAAC;AAGjB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,CAAC,0BAAO,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;wCACvB;AAGpB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,wBAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BAC/B,wBAAM;sCAAC;AAGf;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,6CAAgB,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;8BAC1C,6CAAgB;sCAAC;AAGzB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,6CAAgB,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;8BACxC,6CAAgB;wCAAC;iBAtChB,MAAM;IADlB,IAAA,iBAAM,GAAE;GACI,MAAM,CAuClB;AAEY,QAAA,YAAY,GAAG,wBAAa,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -23,20 +23,20 @@
|
|
|
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 { HydratedDocument, Schema as MongooseSchema } from 'mongoose';
|
|
27
27
|
import { IPermission } from '../interfaces/permission.interface';
|
|
28
28
|
import { I18n } from '../../util/embedded/i18n.embedded';
|
|
29
29
|
import { Record } from '../../util/embedded/record.embedded';
|
|
30
30
|
export declare class Permission implements IPermission {
|
|
31
|
-
_id:
|
|
31
|
+
_id: MongooseSchema.Types.ObjectId;
|
|
32
32
|
name: I18n;
|
|
33
33
|
description: I18n;
|
|
34
34
|
keyword: string;
|
|
35
35
|
record: Record;
|
|
36
36
|
}
|
|
37
|
-
export declare const PermissionSchema:
|
|
38
|
-
_id:
|
|
39
|
-
}>, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, Permission, mongoose.Document<unknown, {}, mongoose.FlatRecord<Permission>> & mongoose.FlatRecord<Permission> & Required<{
|
|
40
|
-
_id:
|
|
37
|
+
export declare const PermissionSchema: MongooseSchema<Permission, import("mongoose").Model<Permission, any, any, any, import("mongoose").Document<unknown, any, Permission> & Permission & Required<{
|
|
38
|
+
_id: MongooseSchema.Types.ObjectId;
|
|
39
|
+
}>, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Permission, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Permission>> & import("mongoose").FlatRecord<Permission> & Required<{
|
|
40
|
+
_id: MongooseSchema.Types.ObjectId;
|
|
41
41
|
}>>;
|
|
42
42
|
export type PermissionDocument = HydratedDocument<Permission>;
|
|
@@ -18,8 +18,8 @@ let Permission = class Permission {
|
|
|
18
18
|
};
|
|
19
19
|
exports.Permission = Permission;
|
|
20
20
|
__decorate([
|
|
21
|
-
(0, mongoose_2.Prop)({ type: mongoose_1.
|
|
22
|
-
__metadata("design:type", mongoose_1.
|
|
21
|
+
(0, mongoose_2.Prop)({ type: mongoose_1.Schema.Types.ObjectId, auto: true }),
|
|
22
|
+
__metadata("design:type", mongoose_1.Schema.Types.ObjectId)
|
|
23
23
|
], Permission.prototype, "_id", void 0);
|
|
24
24
|
__decorate([
|
|
25
25
|
(0, mongoose_2.Prop)({ type: i18n_embedded_1.I18n, required: true }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permission.schema.js","sourceRoot":"","sources":["../../../../src/models/um/schemas/permission.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"permission.schema.js","sourceRoot":"","sources":["../../../../src/models/um/schemas/permission.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAAsE;AAEtE,+CAA+D;AAE/D,qEAAyD;AACzD,yEAA6D;AAGtD,IAAM,UAAU,GAAhB,MAAM,UAAU;CAetB,CAAA;AAfY,gCAAU;AAErB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,iBAAc,CAAC,KAAK,CAAC,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;8BACrD,iBAAc,CAAC,KAAK,CAAC,QAAQ;uCAAC;AAGnC;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,oBAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BAC/B,oBAAI;wCAAC;AAGX;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,oBAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;8BACzB,oBAAI;+CAAC;AAGlB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CACvB;AAGhB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,wBAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BAC/B,wBAAM;0CAAC;qBAdJ,UAAU;IADtB,IAAA,iBAAM,GAAE;GACI,UAAU,CAetB;AAEY,QAAA,gBAAgB,GAAG,wBAAa,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC"}
|
|
@@ -23,21 +23,21 @@
|
|
|
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 { HydratedDocument, Schema as MongooseSchema } from 'mongoose';
|
|
27
27
|
import { IRole } from '../interfaces/role.interface';
|
|
28
28
|
import { I18n } from '../../util/embedded/i18n.embedded';
|
|
29
29
|
import { Permission } from './permission.schema';
|
|
30
30
|
import { Record } from '../../util/embedded/record.embedded';
|
|
31
31
|
export declare class Role implements IRole {
|
|
32
|
-
_id:
|
|
32
|
+
_id: MongooseSchema.Types.ObjectId;
|
|
33
33
|
name: I18n;
|
|
34
34
|
description: I18n;
|
|
35
35
|
permissions: Permission[];
|
|
36
36
|
record: Record;
|
|
37
37
|
}
|
|
38
|
-
export declare const RoleSchema:
|
|
39
|
-
_id:
|
|
40
|
-
}>, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, Role, mongoose.Document<unknown, {}, mongoose.FlatRecord<Role>> & mongoose.FlatRecord<Role> & Required<{
|
|
41
|
-
_id:
|
|
38
|
+
export declare const RoleSchema: MongooseSchema<Role, import("mongoose").Model<Role, any, any, any, import("mongoose").Document<unknown, any, Role> & Role & Required<{
|
|
39
|
+
_id: MongooseSchema.Types.ObjectId;
|
|
40
|
+
}>, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Role, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Role>> & import("mongoose").FlatRecord<Role> & Required<{
|
|
41
|
+
_id: MongooseSchema.Types.ObjectId;
|
|
42
42
|
}>>;
|
|
43
43
|
export type RoleDocument = HydratedDocument<Role>;
|
|
@@ -18,8 +18,8 @@ let Role = class Role {
|
|
|
18
18
|
};
|
|
19
19
|
exports.Role = Role;
|
|
20
20
|
__decorate([
|
|
21
|
-
(0, mongoose_2.Prop)({ type: mongoose_1.
|
|
22
|
-
__metadata("design:type", mongoose_1.
|
|
21
|
+
(0, mongoose_2.Prop)({ type: mongoose_1.Schema.Types.ObjectId, auto: true }),
|
|
22
|
+
__metadata("design:type", mongoose_1.Schema.Types.ObjectId)
|
|
23
23
|
], Role.prototype, "_id", void 0);
|
|
24
24
|
__decorate([
|
|
25
25
|
(0, mongoose_2.Prop)({ type: i18n_embedded_1.I18n, required: true }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"role.schema.js","sourceRoot":"","sources":["../../../../src/models/um/schemas/role.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"role.schema.js","sourceRoot":"","sources":["../../../../src/models/um/schemas/role.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAAsE;AAEtE,+CAA+D;AAC/D,qEAAyD;AAEzD,yEAA6D;AAGtD,IAAM,IAAI,GAAV,MAAM,IAAI;CAoBhB,CAAA;AApBY,oBAAI;AAEf;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,iBAAc,CAAC,KAAK,CAAC,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;8BACrD,iBAAc,CAAC,KAAK,CAAC,QAAQ;iCAAC;AAGnC;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,oBAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BAC/B,oBAAI;kCAAC;AAGX;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,oBAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;8BACzB,oBAAI;yCAAC;AAQlB;IANC,IAAA,eAAI,EAAC;QACJ,IAAI,EAAE,CAAC,iBAAc,CAAC,KAAK,CAAC,QAAQ,CAAC;QACrC,GAAG,EAAE,YAAY;QACjB,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,EAAE;KACZ,CAAC;;yCACwB;AAG1B;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,wBAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BAC/B,wBAAM;oCAAC;eAnBJ,IAAI;IADhB,IAAA,iBAAM,GAAE;GACI,IAAI,CAoBhB;AAEY,QAAA,UAAU,GAAG,wBAAa,CAAC,cAAc,CAAC,IAAI,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
|
|
26
|
+
import { HydratedDocument, Schema as MongooseSchema, ObjectId } 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:
|
|
35
|
+
_id: ObjectId;
|
|
36
36
|
person: Person;
|
|
37
37
|
contacts: Contact[];
|
|
38
38
|
clients: UserClient[];
|
|
@@ -41,9 +41,9 @@ export declare class User implements IUser {
|
|
|
41
41
|
profInfo: ProfInfo;
|
|
42
42
|
credentials: Credentials;
|
|
43
43
|
}
|
|
44
|
-
export declare const UserSchema:
|
|
45
|
-
_id:
|
|
46
|
-
}>, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, User, mongoose.Document<unknown, {}, mongoose.FlatRecord<User>> & mongoose.FlatRecord<User> & Required<{
|
|
47
|
-
_id:
|
|
44
|
+
export declare const UserSchema: MongooseSchema<User, import("mongoose").Model<User, any, any, any, import("mongoose").Document<unknown, any, User> & User & Required<{
|
|
45
|
+
_id: MongooseSchema.Types.ObjectId;
|
|
46
|
+
}>, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, User, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<User>> & import("mongoose").FlatRecord<User> & Required<{
|
|
47
|
+
_id: MongooseSchema.Types.ObjectId;
|
|
48
48
|
}>>;
|
|
49
49
|
export type UserDocument = HydratedDocument<User>;
|
|
@@ -22,8 +22,8 @@ let User = class User {
|
|
|
22
22
|
};
|
|
23
23
|
exports.User = User;
|
|
24
24
|
__decorate([
|
|
25
|
-
(0, mongoose_2.Prop)({ type: mongoose_1.
|
|
26
|
-
__metadata("design:type",
|
|
25
|
+
(0, mongoose_2.Prop)({ type: mongoose_1.Schema.Types.ObjectId, auto: true }),
|
|
26
|
+
__metadata("design:type", Object)
|
|
27
27
|
], User.prototype, "_id", void 0);
|
|
28
28
|
__decorate([
|
|
29
29
|
(0, mongoose_2.Prop)({ type: person_embedded_1.Person, required: false }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.schema.js","sourceRoot":"","sources":["../../../../src/models/um/schemas/user.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
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,2EAA8D;AAC9D,mFAAuE;AACvE,qFAAyE;AACzE,mFAAuE;AACvE,uEAA0D;AAC1D,2EAA+D;AAGxD,IAAM,IAAI,GAAV,MAAM,IAAI;CAsBhB,CAAA;AAtBY,oBAAI;AAEf;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,iBAAc,CAAC,KAAK,CAAC,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;iCAC5C;AAGd;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,wBAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;8BAChC,wBAAM;oCAAC;AAGf;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,CAAC,0BAAO,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;sCACvB;AAGpB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,CAAC,iCAAU,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;qCACxB;AAItB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,wBAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BAC/B,wBAAM;oCAAC;AAGf;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,6BAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;8BAChC,6BAAQ;sCAAC;AAGnB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,kCAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BAC/B,kCAAW;yCAAC;eArBd,IAAI;IADhB,IAAA,iBAAM,GAAE;GACI,IAAI,CAsBhB;AAEY,QAAA,UAAU,GAAG,wBAAa,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC"}
|