eh-commons 0.0.1-testing.30 → 0.0.1-testing.31
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/user-client.embedded.d.ts +7 -7
- package/dist/models/um/embedded/user-client.embedded.js +3 -3
- 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/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/user-client.embedded.ts +5 -5
- 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/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 +7 -7
- 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 +6 -8
|
@@ -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 { HydratedDocument
|
|
26
|
+
import mongoose, { HydratedDocument } 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: mongoose.Types.ObjectId;
|
|
31
|
+
dictionaryId: mongoose.Types.ObjectId;
|
|
32
32
|
remoteId: string;
|
|
33
33
|
name: I18n;
|
|
34
34
|
}
|
|
35
|
-
export declare const ClientDictionarySchema:
|
|
36
|
-
_id:
|
|
37
|
-
}, any>, {}, {}, {}, {},
|
|
38
|
-
_id:
|
|
35
|
+
export declare const ClientDictionarySchema: mongoose.Schema<ClientDictionary, mongoose.Model<ClientDictionary, any, any, any, mongoose.Document<unknown, any, ClientDictionary> & ClientDictionary & {
|
|
36
|
+
_id: mongoose.Types.ObjectId;
|
|
37
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, ClientDictionary, mongoose.Document<unknown, {}, mongoose.FlatRecord<ClientDictionary>> & mongoose.FlatRecord<ClientDictionary> & {
|
|
38
|
+
_id: 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.default.Types.ObjectId, required: false }),
|
|
21
|
+
__metadata("design:type", mongoose_2.default.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.default.Types.ObjectId, required: false }),
|
|
25
|
+
__metadata("design:type", mongoose_2.default.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,uCAAsD;AAEtD,qEAAyD;AAGlD,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;CAS5B,CAAA;AATY,4CAAgB;AAE3B;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,kBAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;8BAC/C,kBAAQ,CAAC,KAAK,CAAC,QAAQ;kDAAC;AAElC;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,kBAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;8BAC3C,kBAAQ,CAAC,KAAK,CAAC,QAAQ;sDAAC;AAEtC;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"}
|
|
@@ -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 mongoose, { 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: mongoose.Types.ObjectId;
|
|
31
|
+
roleIds: mongoose.Types.ObjectId[];
|
|
32
32
|
subjects: ClientDictionary[];
|
|
33
33
|
}
|
|
34
|
-
export declare const UserClientSchema:
|
|
35
|
-
_id:
|
|
36
|
-
}, any>, {}, {}, {}, {},
|
|
37
|
-
_id:
|
|
34
|
+
export declare const UserClientSchema: mongoose.Schema<UserClient, mongoose.Model<UserClient, any, any, any, mongoose.Document<unknown, any, UserClient> & UserClient & {
|
|
35
|
+
_id: mongoose.Types.ObjectId;
|
|
36
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, UserClient, mongoose.Document<unknown, {}, mongoose.FlatRecord<UserClient>> & mongoose.FlatRecord<UserClient> & {
|
|
37
|
+
_id: mongoose.Types.ObjectId;
|
|
38
38
|
}>;
|
|
39
39
|
export type UserClientDocument = HydratedDocument<UserClient>;
|
|
@@ -17,11 +17,11 @@ 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.default.Types.ObjectId, required: false }),
|
|
21
|
+
__metadata("design:type", mongoose_1.default.Types.ObjectId)
|
|
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.default.Types.ObjectId], required: false }),
|
|
25
25
|
__metadata("design:type", Array)
|
|
26
26
|
], UserClient.prototype, "roleIds", void 0);
|
|
27
27
|
__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,uCAAgE;AAChE,+CAA+D;AAE/D,6EAAgE;AAGzD,IAAM,UAAU,GAAhB,MAAM,UAAU;CAStB,CAAA;AATY,gCAAU;AAErB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,kBAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;8BAC/C,kBAAQ,CAAC,KAAK,CAAC,QAAQ;4CAAC;AAGlC;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,CAAC,kBAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;2CACxB;AAGnC;IADC,IAAA,eAAI,EAAC,EAAC,IAAI,EAAE,6CAAgB,EAAE,QAAQ,EAAE,KAAK,EAAC,CAAC;;4CACnB;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 mongoose from 'mongoose';
|
|
27
27
|
import { II18n } from '../../util/interfaces/i18n.interface';
|
|
28
28
|
export interface IClientDictionary {
|
|
29
|
-
originId: ObjectId;
|
|
30
|
-
dictionaryId: ObjectId;
|
|
29
|
+
originId: mongoose.Types.ObjectId;
|
|
30
|
+
dictionaryId: mongoose.Types.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 mongoose 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: ObjectId;
|
|
35
|
-
originId: ObjectId;
|
|
34
|
+
_id: mongoose.Types.ObjectId;
|
|
35
|
+
originId: mongoose.Types.ObjectId;
|
|
36
36
|
type: ClientType;
|
|
37
|
-
parentId: ObjectId;
|
|
37
|
+
parentId: mongoose.Types.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 mongoose 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: ObjectId;
|
|
30
|
+
_id: mongoose.Types.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 mongoose 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: ObjectId;
|
|
31
|
+
_id: mongoose.Types.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 mongoose from 'mongoose';
|
|
27
27
|
import { IClientDictionary } from './client.dictionary.interface';
|
|
28
28
|
export interface IUserClient {
|
|
29
|
-
clientId: ObjectId;
|
|
30
|
-
roleIds: ObjectId[];
|
|
29
|
+
clientId: mongoose.Types.ObjectId;
|
|
30
|
+
roleIds: mongoose.Types.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 mongoose 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: ObjectId;
|
|
34
|
+
_id: mongoose.Types.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 { HydratedDocument
|
|
26
|
+
import mongoose, { HydratedDocument } 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: ObjectId;
|
|
35
|
+
_id: mongoose.Types.ObjectId;
|
|
36
|
+
originId: mongoose.Types.ObjectId;
|
|
37
37
|
type: ClientType;
|
|
38
|
-
parentId: ObjectId;
|
|
38
|
+
parentId: mongoose.Types.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>, {}, {}, {}, {},
|
|
49
|
-
_id:
|
|
46
|
+
export declare const ClientSchema: mongoose.Schema<Client, mongoose.Model<Client, any, any, any, mongoose.Document<unknown, any, Client> & Client & Required<{
|
|
47
|
+
_id: mongoose.Types.ObjectId;
|
|
48
|
+
}>, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, Client, mongoose.Document<unknown, {}, mongoose.FlatRecord<Client>> & mongoose.FlatRecord<Client> & Required<{
|
|
49
|
+
_id: mongoose.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", mongoose_1.
|
|
25
|
+
(0, mongoose_2.Prop)({ type: mongoose_1.default.Types.ObjectId, auto: true }),
|
|
26
|
+
__metadata("design:type", mongoose_1.default.Types.ObjectId)
|
|
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.default.Types.ObjectId, required: false }),
|
|
30
|
+
__metadata("design:type", mongoose_1.default.Types.ObjectId)
|
|
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.default.Types.ObjectId,
|
|
43
43
|
ref: 'Client',
|
|
44
44
|
default: {},
|
|
45
45
|
required: false,
|
|
46
46
|
}),
|
|
47
|
-
__metadata("design:type",
|
|
47
|
+
__metadata("design:type", mongoose_1.default.Types.ObjectId)
|
|
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,uCAAqD;AACrD,gEAAuD;AAEvD,+CAA+D;AAC/D,+EAAmE;AACnE,qFAAyE;AACzE,qFAAyE;AACzE,mFAAuE;AACvE,uFAA0E;AAKnE,IAAM,MAAM,GAAZ,MAAM,MAAM;CAuClB,CAAA;AAvCY,wBAAM;AAEjB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,kBAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;8BAC/C,kBAAQ,CAAC,KAAK,CAAC,QAAQ;mCAAC;AAG7B;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,kBAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;8BAC/C,kBAAQ,CAAC,KAAK,CAAC,QAAQ;wCAAC;AAOlC;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,kBAAQ,CAAC,KAAK,CAAC,QAAQ;QAC7B,GAAG,EAAE,QAAQ;QACb,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,KAAK;KAChB,CAAC;8BACQ,kBAAQ,CAAC,KAAK,CAAC,QAAQ;wCAAC;AAGlC;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,EAAC,IAAI,EAAE,6CAAgB,EAAE,QAAQ,EAAE,KAAK,EAAC,CAAC;8BACxC,6CAAgB;sCAAC;AAGzB;IADC,IAAA,eAAI,EAAC,EAAC,IAAI,EAAE,6CAAgB,EAAE,QAAQ,EAAE,KAAK,EAAC,CAAC;8BACtC,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 { HydratedDocument
|
|
26
|
+
import mongoose, { HydratedDocument } 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: mongoose.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>, {}, {}, {}, {},
|
|
40
|
-
_id:
|
|
37
|
+
export declare const PermissionSchema: mongoose.Schema<Permission, mongoose.Model<Permission, any, any, any, mongoose.Document<unknown, any, Permission> & Permission & Required<{
|
|
38
|
+
_id: mongoose.Types.ObjectId;
|
|
39
|
+
}>, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, Permission, mongoose.Document<unknown, {}, mongoose.FlatRecord<Permission>> & mongoose.FlatRecord<Permission> & Required<{
|
|
40
|
+
_id: mongoose.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.default.Types.ObjectId, auto: true }),
|
|
22
|
+
__metadata("design:type", mongoose_1.default.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,uCAAgF;AAEhF,+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,kBAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;8BAC/C,kBAAQ,CAAC,KAAK,CAAC,QAAQ;uCAAC;AAG7B;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 { HydratedDocument
|
|
26
|
+
import mongoose, { HydratedDocument } 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: mongoose.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>, {}, {}, {}, {},
|
|
41
|
-
_id:
|
|
38
|
+
export declare const RoleSchema: mongoose.Schema<Role, mongoose.Model<Role, any, any, any, mongoose.Document<unknown, any, Role> & Role & Required<{
|
|
39
|
+
_id: mongoose.Types.ObjectId;
|
|
40
|
+
}>, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, Role, mongoose.Document<unknown, {}, mongoose.FlatRecord<Role>> & mongoose.FlatRecord<Role> & Required<{
|
|
41
|
+
_id: mongoose.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.default.Types.ObjectId, auto: true }),
|
|
22
|
+
__metadata("design:type", mongoose_1.default.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,uCAAgF;AAEhF,+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,kBAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;8BAC/C,kBAAQ,CAAC,KAAK,CAAC,QAAQ;iCAAC;AAG7B;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 { HydratedDocument
|
|
26
|
+
import mongoose, { HydratedDocument } 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: mongoose.Types.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>, {}, {}, {}, {},
|
|
47
|
-
_id:
|
|
44
|
+
export declare const UserSchema: mongoose.Schema<User, mongoose.Model<User, any, any, any, mongoose.Document<unknown, any, User> & User & Required<{
|
|
45
|
+
_id: mongoose.Types.ObjectId;
|
|
46
|
+
}>, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, User, mongoose.Document<unknown, {}, mongoose.FlatRecord<User>> & mongoose.FlatRecord<User> & Required<{
|
|
47
|
+
_id: mongoose.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.default.Types.ObjectId, auto: true }),
|
|
26
|
+
__metadata("design:type", mongoose_1.default.Types.ObjectId)
|
|
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,uCAAsD;AAEtD,+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,kBAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;8BAC/C,kBAAQ,CAAC,KAAK,CAAC,QAAQ;iCAAC;AAG7B;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"}
|