eh-commons 0.0.1-testing.49 → 0.0.1-testing.51
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/dictionary/embedded/dictionary.embedded.d.ts +3 -3
- package/dist/models/dictionary/embedded/dictionary.embedded.js +2 -2
- package/dist/models/dictionary/embedded/dictionary.embedded.js.map +1 -1
- package/dist/models/dictionary/interfaces/dictionary-embedded.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 +4 -2
- package/dist/models/um/interfaces/user-client.interface.d.ts +4 -3
- package/dist/models/um/interfaces/user.interface.d.ts +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/models/dictionary/embedded/dictionary.embedded.ts +3 -3
- package/src/models/dictionary/interfaces/dictionary-embedded.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 +4 -2
- package/src/models/um/interfaces/user-client.interface.ts +4 -2
- package/src/models/um/interfaces/user.interface.ts +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HydratedDocument } from 'mongoose';
|
|
2
|
-
import {
|
|
2
|
+
import { mongo, Schema as MongooseSchema } from 'mongoose';
|
|
3
3
|
import { I18n } from '../../util/embedded/i18n.embedded';
|
|
4
4
|
import { IDictionaryEmbedded } from '../interfaces/dictionary-embedded.interface';
|
|
5
5
|
import { RecordState } from '../../util/enums/record-state.enum';
|
|
@@ -7,8 +7,8 @@ export declare class DictionaryEmbedded implements IDictionaryEmbedded {
|
|
|
7
7
|
title: I18n;
|
|
8
8
|
keyword: string;
|
|
9
9
|
record: RecordState;
|
|
10
|
-
originId: ObjectId;
|
|
11
|
-
dictionaryId: ObjectId;
|
|
10
|
+
originId: mongo.ObjectId;
|
|
11
|
+
dictionaryId: mongo.ObjectId;
|
|
12
12
|
}
|
|
13
13
|
export declare const DictionaryEmbeddedSchema: MongooseSchema<DictionaryEmbedded, import("mongoose").Model<DictionaryEmbedded, any, any, any, import("mongoose").Document<unknown, any, DictionaryEmbedded> & DictionaryEmbedded & {
|
|
14
14
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -31,11 +31,11 @@ __decorate([
|
|
|
31
31
|
], DictionaryEmbedded.prototype, "record", void 0);
|
|
32
32
|
__decorate([
|
|
33
33
|
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.ObjectId, required: false }),
|
|
34
|
-
__metadata("design:type",
|
|
34
|
+
__metadata("design:type", mongoose_2.mongo.ObjectId)
|
|
35
35
|
], DictionaryEmbedded.prototype, "originId", void 0);
|
|
36
36
|
__decorate([
|
|
37
37
|
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.ObjectId, required: false }),
|
|
38
|
-
__metadata("design:type",
|
|
38
|
+
__metadata("design:type", mongoose_2.mongo.ObjectId)
|
|
39
39
|
], DictionaryEmbedded.prototype, "dictionaryId", void 0);
|
|
40
40
|
exports.DictionaryEmbedded = DictionaryEmbedded = __decorate([
|
|
41
41
|
(0, mongoose_1.Schema)({ _id: false })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dictionary.embedded.js","sourceRoot":"","sources":["../../../../src/models/dictionary/embedded/dictionary.embedded.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAE/D,
|
|
1
|
+
{"version":3,"file":"dictionary.embedded.js","sourceRoot":"","sources":["../../../../src/models/dictionary/embedded/dictionary.embedded.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAE/D,uCAA2D;AAC3D,qEAAqE;AAErE,0EAAiE;AAG1D,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CAe9B,CAAA;AAfY,gDAAkB;AAE7B;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,0BAAU,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;8BACrC,oBAAI;iDAAC;AAGZ;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;mDACxB;AAGhB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,+BAAW,EAAE,CAAC;;kDACvC;AAGpB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,iBAAc,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;8BAC/C,gBAAK,CAAC,QAAQ;oDAAC;AAGzB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,iBAAc,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;8BAC3C,gBAAK,CAAC,QAAQ;wDAAC;6BAdlB,kBAAkB;IAD9B,IAAA,iBAAM,EAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;GACV,kBAAkB,CAe9B;AAEY,QAAA,wBAAwB,GACnC,wBAAa,CAAC,cAAc,CAAC,kBAAkB,CAAC,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { mongo } from 'mongoose';
|
|
2
2
|
import { II18n } from '../../util/interfaces/i18n.interface';
|
|
3
3
|
import { RecordState } from '../../util/enums/record-state.enum';
|
|
4
4
|
export interface IDictionaryEmbedded {
|
|
5
|
-
originId: ObjectId;
|
|
6
|
-
dictionaryId: ObjectId;
|
|
5
|
+
originId: mongo.ObjectId;
|
|
6
|
+
dictionaryId: mongo.ObjectId;
|
|
7
7
|
title: II18n;
|
|
8
8
|
keyword: string;
|
|
9
9
|
record: RecordState;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { mongo } from 'mongoose';
|
|
2
2
|
import { II18n } from '../../util/interfaces/i18n.interface';
|
|
3
3
|
import { IRecord } from '../../../models/util/interfaces/record.interface';
|
|
4
4
|
import { IAddress } from '../../../models/util/interfaces/address.interface';
|
|
5
5
|
import { IContact } from '../../../models/util/interfaces/contact.interface';
|
|
6
6
|
import { IDictionaryEmbedded } from '../../dictionary/interfaces/dictionary-embedded.interface';
|
|
7
7
|
export interface IClient {
|
|
8
|
-
_id: ObjectId;
|
|
9
|
-
originId: ObjectId;
|
|
8
|
+
_id: mongo.ObjectId;
|
|
9
|
+
originId: mongo.ObjectId;
|
|
10
10
|
type: IDictionaryEmbedded;
|
|
11
|
-
parentId: ObjectId;
|
|
11
|
+
parentId: mongo.ObjectId;
|
|
12
12
|
name: II18n;
|
|
13
13
|
address: IAddress;
|
|
14
14
|
highland: boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { mongo } from 'mongoose';
|
|
2
2
|
import { II18n } from '../../util/interfaces/i18n.interface';
|
|
3
3
|
import { IRecord } from '../../util/interfaces/record.interface';
|
|
4
4
|
export interface IPermission {
|
|
5
|
-
_id: ObjectId;
|
|
5
|
+
_id: mongo.ObjectId;
|
|
6
6
|
name: II18n;
|
|
7
7
|
description: II18n;
|
|
8
8
|
keyword: string;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { mongo } from 'mongoose';
|
|
2
2
|
import { II18n } from '../../util/interfaces/i18n.interface';
|
|
3
3
|
import { IPermission } from './permission.interface';
|
|
4
4
|
import { IRecord } from '../../util/interfaces/record.interface';
|
|
5
5
|
export interface IRole {
|
|
6
|
-
_id: ObjectId;
|
|
6
|
+
_id: mongo.ObjectId;
|
|
7
|
+
keyword: string;
|
|
7
8
|
name: II18n;
|
|
8
9
|
description: II18n;
|
|
9
10
|
permissions: IPermission[];
|
|
10
11
|
record: IRecord;
|
|
12
|
+
default: boolean;
|
|
11
13
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { ObjectId } from 'mongoose';
|
|
2
1
|
import { IDictionaryEmbedded } from '../../dictionary/interfaces/dictionary-embedded.interface';
|
|
2
|
+
import { IClient } from './client.interface';
|
|
3
|
+
import { IRole } from './role.interface';
|
|
3
4
|
export interface IUserClient {
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
client: IClient;
|
|
6
|
+
roles: IRole[];
|
|
6
7
|
subjects: IDictionaryEmbedded[];
|
|
7
8
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { mongo } from 'mongoose';
|
|
2
2
|
import { IPerson } from '../../util/interfaces/person.interface';
|
|
3
3
|
import { IContact } from '../../util/interfaces/contact.interface';
|
|
4
4
|
import { IUserClient } from './user-client.interface';
|
|
@@ -6,7 +6,7 @@ import { IRecord } from '../../util/interfaces/record.interface';
|
|
|
6
6
|
import { IProfInfo } from './prof-info.interface';
|
|
7
7
|
import { ICredentials } from './credentials.interface';
|
|
8
8
|
export interface IUser {
|
|
9
|
-
_id: ObjectId;
|
|
9
|
+
_id: mongo.ObjectId;
|
|
10
10
|
person: IPerson;
|
|
11
11
|
contacts: IContact[];
|
|
12
12
|
clients: IUserClient[];
|