@hugo.ye/common 1.0.101 → 1.0.103
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/build/models/chat-contacts.entity.d.ts +0 -3
- package/build/models/chat-contacts.entity.d.ts.map +1 -1
- package/build/models/chat-contacts.entity.js +0 -10
- package/build/models/chat-contacts.entity.js.map +1 -1
- package/build/models/chat-group.entity.d.ts +1 -2
- package/build/models/chat-group.entity.d.ts.map +1 -1
- package/build/models/chat-group.entity.js +0 -7
- package/build/models/chat-group.entity.js.map +1 -1
- package/build/models/copyright-registration.entity.d.ts +0 -6
- package/build/models/copyright-registration.entity.d.ts.map +1 -1
- package/build/models/copyright-registration.entity.js +1 -42
- package/build/models/copyright-registration.entity.js.map +1 -1
- package/build/models/users.entity.d.ts +1 -3
- package/build/models/users.entity.d.ts.map +1 -1
- package/build/models/users.entity.js +10 -16
- package/build/models/users.entity.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import { type Relation } from 'typeorm';
|
|
2
1
|
import { AbstractEntity } from '../index.js';
|
|
3
|
-
import { UserEntity } from './index.js';
|
|
4
2
|
export declare class ChatContactsEntity extends AbstractEntity<ChatContactsEntity> {
|
|
5
3
|
contactsId: number;
|
|
6
4
|
createdDate: Date;
|
|
7
|
-
user: Relation<UserEntity>;
|
|
8
5
|
}
|
|
9
6
|
//# sourceMappingURL=chat-contacts.entity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat-contacts.entity.d.ts","sourceRoot":"","sources":["../../src/models/chat-contacts.entity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"chat-contacts.entity.d.ts","sourceRoot":"","sources":["../../src/models/chat-contacts.entity.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAG7C,qBAGa,kBAAmB,SAAQ,cAAc,CAAC,kBAAkB,CAAC;IAGxE,UAAU,EAAE,MAAM,CAAC;IAInB,WAAW,EAAE,IAAI,CAAC;CASnB"}
|
|
@@ -14,7 +14,6 @@ import { UserEntity } from './index.js';
|
|
|
14
14
|
let ChatContactsEntity = class ChatContactsEntity extends AbstractEntity {
|
|
15
15
|
contactsId;
|
|
16
16
|
createdDate;
|
|
17
|
-
user;
|
|
18
17
|
};
|
|
19
18
|
__decorate([
|
|
20
19
|
Column(),
|
|
@@ -26,15 +25,6 @@ __decorate([
|
|
|
26
25
|
Field(() => Date, { nullable: true }),
|
|
27
26
|
__metadata("design:type", Date)
|
|
28
27
|
], ChatContactsEntity.prototype, "createdDate", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
ManyToOne(() => UserEntity, (user) => user.contacts, {
|
|
31
|
-
onDelete: 'CASCADE',
|
|
32
|
-
nullable: true,
|
|
33
|
-
}),
|
|
34
|
-
Field(() => UserEntity, { nullable: true }),
|
|
35
|
-
Directive('@shareable'),
|
|
36
|
-
__metadata("design:type", Object)
|
|
37
|
-
], ChatContactsEntity.prototype, "user", void 0);
|
|
38
28
|
ChatContactsEntity = __decorate([
|
|
39
29
|
ObjectType(),
|
|
40
30
|
Entity(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat-contacts.entity.js","sourceRoot":"","sources":["../../src/models/chat-contacts.entity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACpE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAiB,MAAM,SAAS,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAKlC,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,cAAkC;IAGxE,UAAU,CAAS;IAInB,WAAW,CAAO;
|
|
1
|
+
{"version":3,"file":"chat-contacts.entity.js","sourceRoot":"","sources":["../../src/models/chat-contacts.entity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACpE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAiB,MAAM,SAAS,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAKlC,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,cAAkC;IAGxE,UAAU,CAAS;IAInB,WAAW,CAAO;CASnB,CAAA;AAbC;IAFC,MAAM,EAAE;IACR,KAAK,EAAE;;sDACW;AAInB;IAFC,MAAM,EAAE;IACR,KAAK,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACzB,IAAI;uDAAC;AAPP,kBAAkB;IAH9B,UAAU,EAAE;IACZ,MAAM,EAAE;IACR,SAAS,CAAC,0CAA0C,CAAC;GACzC,kBAAkB,CAgB9B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AbstractEntity, ChatEntity
|
|
1
|
+
import { AbstractEntity, ChatEntity } from "../index.js";
|
|
2
2
|
export declare class ChatGroupEntity extends AbstractEntity<ChatGroupEntity> {
|
|
3
3
|
name: string;
|
|
4
4
|
count: number;
|
|
@@ -6,6 +6,5 @@ export declare class ChatGroupEntity extends AbstractEntity<ChatGroupEntity> {
|
|
|
6
6
|
createdDate: Date;
|
|
7
7
|
type: number;
|
|
8
8
|
chats: ChatEntity[];
|
|
9
|
-
users: UserEntity[];
|
|
10
9
|
}
|
|
11
10
|
//# sourceMappingURL=chat-group.entity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat-group.entity.d.ts","sourceRoot":"","sources":["../../src/models/chat-group.entity.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,UAAU,
|
|
1
|
+
{"version":3,"file":"chat-group.entity.d.ts","sourceRoot":"","sources":["../../src/models/chat-group.entity.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAc,MAAM,aAAa,CAAC;AAErE,qBAGa,eAAgB,SAAQ,cAAc,CAAC,eAAe,CAAC;IAIhE,IAAI,EAAE,MAAM,CAAC;IAIb,KAAK,EAAE,MAAM,CAAC;IAId,SAAS,EAAE,MAAM,CAAC;IAIlB,WAAW,EAAE,IAAI,CAAC;IAIlB,IAAI,EAAE,MAAM,CAAC;IAMb,KAAK,EAAE,UAAU,EAAE,CAAA;CAOtB"}
|
|
@@ -17,7 +17,6 @@ let ChatGroupEntity = class ChatGroupEntity extends AbstractEntity {
|
|
|
17
17
|
createdDate;
|
|
18
18
|
type; // 群组类型:0 二人对话(dialog), 1 讨论群(group)
|
|
19
19
|
chats;
|
|
20
|
-
users;
|
|
21
20
|
};
|
|
22
21
|
__decorate([
|
|
23
22
|
Column(),
|
|
@@ -51,12 +50,6 @@ __decorate([
|
|
|
51
50
|
JoinTable(),
|
|
52
51
|
__metadata("design:type", Array)
|
|
53
52
|
], ChatGroupEntity.prototype, "chats", void 0);
|
|
54
|
-
__decorate([
|
|
55
|
-
ManyToMany(() => UserEntity, users => users.chatGroups, { nullable: true }),
|
|
56
|
-
Directive('@shareable'),
|
|
57
|
-
Field(() => [UserEntity], { nullable: true }),
|
|
58
|
-
__metadata("design:type", Array)
|
|
59
|
-
], ChatGroupEntity.prototype, "users", void 0);
|
|
60
53
|
ChatGroupEntity = __decorate([
|
|
61
54
|
Entity(),
|
|
62
55
|
ObjectType(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat-group.entity.js","sourceRoot":"","sources":["../../src/models/chat-group.entity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,G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,MAAM,EAAE;IACR,KAAK,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACzB,IAAI;oDAAC;AAIlB;IAFC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;IACvC,KAAK,CAAC,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC;;6CACd;AAMb;IAJC,SAAS,CAAC,GAAG,EAAE,CAAC,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACpF,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,UAAU,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC7C,SAAS,CAAC,YAAY,CAAC;IACvB,SAAS,EAAE;;8CACO;AA1BV,eAAe;IAH3B,MAAM,EAAE;IACR,UAAU,EAAE;IACZ,SAAS,CAAC,yDAAyD,CAAC;GACxD,eAAe,CAiC3B"}
|
|
@@ -11,12 +11,6 @@ export declare class CopyrightRegistrationEntity extends AbstractEntity<Copyrigh
|
|
|
11
11
|
processingSpeed: string;
|
|
12
12
|
localAttorneyFeeTire: string;
|
|
13
13
|
service: string;
|
|
14
|
-
requestDeferment: boolean;
|
|
15
|
-
drawingsService: boolean;
|
|
16
|
-
changeItem: string;
|
|
17
|
-
changeNewInformation: string;
|
|
18
|
-
assignor: string;
|
|
19
|
-
assignee: string;
|
|
20
14
|
remark: string;
|
|
21
15
|
order: Relation<OrderEntity>;
|
|
22
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"copyright-registration.entity.d.ts","sourceRoot":"","sources":["../../src/models/copyright-registration.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C,OAAO,EAAwC,KAAK,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC9E,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"copyright-registration.entity.d.ts","sourceRoot":"","sources":["../../src/models/copyright-registration.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C,OAAO,EAAwC,KAAK,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC9E,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,qBAKa,2BAA4B,SAAQ,cAAc,CAAC,2BAA2B,CAAC;IAG1F,MAAM,EAAE,MAAM,CAAC;IAIf,yBAAyB,EAAE,MAAM,CAAC;IAIlC,cAAc,EAAE,MAAM,CAAC;IAIvB,MAAM,EAAE,MAAM,CAAC;IAIf,YAAY,EAAE,IAAI,CAAC;IAInB,iBAAiB,EAAE,MAAM,CAAC;IAI1B,eAAe,EAAE,MAAM,CAAC;IAIxB,oBAAoB,EAAE,MAAM,CAAC;IAI7B,OAAO,EAAE,MAAM,CAAC;IAIhB,MAAM,EAAE,MAAM,CAAC;IAMf,KAAK,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAC;CAC9B"}
|
|
@@ -11,7 +11,6 @@ import { AbstractEntity } from '../index.js';
|
|
|
11
11
|
import { Directive, Field, ObjectType } from '@nestjs/graphql';
|
|
12
12
|
import { Column, Entity, JoinColumn, OneToOne } from 'typeorm';
|
|
13
13
|
import { OrderEntity } from './index.js';
|
|
14
|
-
import { Type } from 'class-transformer';
|
|
15
14
|
let CopyrightRegistrationEntity = class CopyrightRegistrationEntity extends AbstractEntity {
|
|
16
15
|
number; // 注册号,新申请时生成
|
|
17
16
|
guidelinesAndRequirements; // 申请指南和要求
|
|
@@ -22,16 +21,6 @@ let CopyrightRegistrationEntity = class CopyrightRegistrationEntity extends Abst
|
|
|
22
21
|
processingSpeed; // 处理速度:标准递交(Standard Filing),加急/优先(Expedited Priority)
|
|
23
22
|
localAttorneyFeeTire; // 本地律师服务费等级,Optimal Bid(最优竞标), Direct Filing(直接递交),Standard Service(标准服务)
|
|
24
23
|
service; // 服务项目:软件(Software)/App = (SA), 美术(Art)、设计(Design)、Logo(Logo) = (ADL) ,文学(Literary) /媒体(Media) = LM
|
|
25
|
-
requestDeferment; // 请求延时公开
|
|
26
|
-
drawingsService; // 专业绘图服务
|
|
27
|
-
// 著录项目变更 ======
|
|
28
|
-
changeItem; // 变更项目:名称(name),地址(address),设计人(designer)
|
|
29
|
-
changeNewInformation; // 新信息
|
|
30
|
-
// 著录项目变更============
|
|
31
|
-
// 转让 ==========
|
|
32
|
-
assignor; // 转让人
|
|
33
|
-
assignee; // 受让人
|
|
34
|
-
// 转让 ==========
|
|
35
24
|
remark; // 备注 / 特别说明
|
|
36
25
|
order;
|
|
37
26
|
};
|
|
@@ -80,36 +69,6 @@ __decorate([
|
|
|
80
69
|
Field(),
|
|
81
70
|
__metadata("design:type", String)
|
|
82
71
|
], CopyrightRegistrationEntity.prototype, "service", void 0);
|
|
83
|
-
__decorate([
|
|
84
|
-
Column({ default: false }),
|
|
85
|
-
Field({ defaultValue: false }),
|
|
86
|
-
__metadata("design:type", Boolean)
|
|
87
|
-
], CopyrightRegistrationEntity.prototype, "requestDeferment", void 0);
|
|
88
|
-
__decorate([
|
|
89
|
-
Column({ default: false }),
|
|
90
|
-
Field({ defaultValue: false }),
|
|
91
|
-
__metadata("design:type", Boolean)
|
|
92
|
-
], CopyrightRegistrationEntity.prototype, "drawingsService", void 0);
|
|
93
|
-
__decorate([
|
|
94
|
-
Column({ nullable: true }),
|
|
95
|
-
Field({ nullable: true }),
|
|
96
|
-
__metadata("design:type", String)
|
|
97
|
-
], CopyrightRegistrationEntity.prototype, "changeItem", void 0);
|
|
98
|
-
__decorate([
|
|
99
|
-
Column({ nullable: true }),
|
|
100
|
-
Field({ nullable: true }),
|
|
101
|
-
__metadata("design:type", String)
|
|
102
|
-
], CopyrightRegistrationEntity.prototype, "changeNewInformation", void 0);
|
|
103
|
-
__decorate([
|
|
104
|
-
Column({ nullable: true }),
|
|
105
|
-
Field({ nullable: true }),
|
|
106
|
-
__metadata("design:type", String)
|
|
107
|
-
], CopyrightRegistrationEntity.prototype, "assignor", void 0);
|
|
108
|
-
__decorate([
|
|
109
|
-
Column({ nullable: true }),
|
|
110
|
-
Field({ nullable: true }),
|
|
111
|
-
__metadata("design:type", String)
|
|
112
|
-
], CopyrightRegistrationEntity.prototype, "assignee", void 0);
|
|
113
72
|
__decorate([
|
|
114
73
|
Column({ nullable: true }),
|
|
115
74
|
Field({ nullable: true }),
|
|
@@ -125,7 +84,7 @@ __decorate([
|
|
|
125
84
|
CopyrightRegistrationEntity = __decorate([
|
|
126
85
|
Entity(),
|
|
127
86
|
ObjectType(),
|
|
128
|
-
Directive('@key(fields:"id,number,guidelinesAndRequirements,titleOfTheWork,author,creationDate,publicationStatus,processingSpeed,localAttorneyFeeTire,service,
|
|
87
|
+
Directive('@key(fields:"id,number,guidelinesAndRequirements,titleOfTheWork,author,creationDate,publicationStatus,processingSpeed,localAttorneyFeeTire,service,remark")')
|
|
129
88
|
], CopyrightRegistrationEntity);
|
|
130
89
|
export { CopyrightRegistrationEntity };
|
|
131
90
|
//# sourceMappingURL=copyright-registration.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"copyright-registration.entity.js","sourceRoot":"","sources":["../../src/models/copyright-registration.entity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAiB,MAAM,SAAS,CAAC;AAC9E,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"copyright-registration.entity.js","sourceRoot":"","sources":["../../src/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E,IAAI,EAAE,OAAO,EAAE,kBAAkB,EAAE,CAAC;IACvD,KAAK,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAE,kBAAkB,EAAE,CAAC;;yEAC/B;AAI7B;IAFC,MAAM,EAAE;IACR,KAAK,EAAE;;4DACQ;AAIhB;IAFC,MAAM,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC1B,KAAK,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2DACX;AAMf;IAJC,QAAQ,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,qBAAqB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACvF,KAAK,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC5C,UAAU,EAAE;IACZ,SAAS,CAAC,YAAY,CAAC;;0DACK;AA7ClB,2BAA2B;IALvC,MAAM,EAAE;IACR,UAAU,EAAE;IACZ,SAAS,CACR,6JAA6J,CAC9J;GACY,2BAA2B,CA8CvC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AbstractEntity } from "../index.js";
|
|
2
2
|
import { type Relation } from "typeorm";
|
|
3
|
-
import { RoleEntity, UserProfileEntity
|
|
3
|
+
import { RoleEntity, UserProfileEntity } from "./index.js";
|
|
4
4
|
export declare class UserEntity extends AbstractEntity<UserEntity> {
|
|
5
5
|
email: string;
|
|
6
6
|
password: string;
|
|
@@ -11,8 +11,6 @@ export declare class UserEntity extends AbstractEntity<UserEntity> {
|
|
|
11
11
|
updatedBy: string;
|
|
12
12
|
updatedDate: Date;
|
|
13
13
|
roles: RoleEntity[];
|
|
14
|
-
chatGroups: ChatGroupEntity[];
|
|
15
|
-
contacts: ChatContactsEntity[];
|
|
16
14
|
profile: Relation<UserProfileEntity>;
|
|
17
15
|
}
|
|
18
16
|
//# sourceMappingURL=users.entity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.entity.d.ts","sourceRoot":"","sources":["../../src/models/users.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C,OAAO,EAAqE,KAAK,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC3G,OAAO,EAAE,UAAU,EAAC,iBAAiB,
|
|
1
|
+
{"version":3,"file":"users.entity.d.ts","sourceRoot":"","sources":["../../src/models/users.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C,OAAO,EAAqE,KAAK,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC3G,OAAO,EAAE,UAAU,EAAC,iBAAiB,EAAsC,MAAM,aAAa,CAAC;AAE/F,qBAGa,UAAW,SAAQ,cAAc,CAAC,UAAU,CAAC;IAKtD,KAAK,EAAE,MAAM,CAAC;IAGd,QAAQ,EAAE,MAAM,CAAC;IAKjB,QAAQ,EAAE,MAAM,CAAC;IAIjB,QAAQ,EAAE,OAAO,CAAC;IAIlB,SAAS,EAAE,MAAM,CAAC;IAIlB,WAAW,EAAE,IAAI,CAAC;IAIlB,SAAS,EAAE,MAAM,CAAC;IAIlB,WAAW,EAAE,IAAI,CAAC;IAMlB,KAAK,EAAE,UAAU,EAAE,CAAC;IAiBpB,OAAO,EAAE,QAAQ,CAAC,iBAAiB,CAAC,CAAA;CAEvC"}
|
|
@@ -21,8 +21,16 @@ let UserEntity = class UserEntity extends AbstractEntity {
|
|
|
21
21
|
updatedBy;
|
|
22
22
|
updatedDate;
|
|
23
23
|
roles;
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
// @ManyToMany(() => ChatGroupEntity, group => group.users, { cascade: true, nullable: true })
|
|
25
|
+
// @JoinTable()
|
|
26
|
+
// @Directive('@shareable')
|
|
27
|
+
// @Field(() => [ChatGroupEntity], { nullable: true })
|
|
28
|
+
// chatGroups: ChatGroupEntity[];
|
|
29
|
+
// @OneToMany(() => ChatContactsEntity, (contacts) => contacts.user, { cascade: true, nullable: true })
|
|
30
|
+
// @JoinTable()
|
|
31
|
+
// @Directive('@shareable')
|
|
32
|
+
// @Field(() => [ChatContactsEntity], { nullable: true })
|
|
33
|
+
// contacts: ChatContactsEntity[]
|
|
26
34
|
profile;
|
|
27
35
|
};
|
|
28
36
|
__decorate([
|
|
@@ -73,20 +81,6 @@ __decorate([
|
|
|
73
81
|
Field(() => [RoleEntity], { nullable: true }),
|
|
74
82
|
__metadata("design:type", Array)
|
|
75
83
|
], UserEntity.prototype, "roles", void 0);
|
|
76
|
-
__decorate([
|
|
77
|
-
ManyToMany(() => ChatGroupEntity, group => group.users, { cascade: true, nullable: true }),
|
|
78
|
-
JoinTable(),
|
|
79
|
-
Directive('@shareable'),
|
|
80
|
-
Field(() => [ChatGroupEntity], { nullable: true }),
|
|
81
|
-
__metadata("design:type", Array)
|
|
82
|
-
], UserEntity.prototype, "chatGroups", void 0);
|
|
83
|
-
__decorate([
|
|
84
|
-
OneToMany(() => ChatContactsEntity, (contacts) => contacts.user, { cascade: true, nullable: true }),
|
|
85
|
-
JoinTable(),
|
|
86
|
-
Directive('@shareable'),
|
|
87
|
-
Field(() => [ChatContactsEntity], { nullable: true }),
|
|
88
|
-
__metadata("design:type", Array)
|
|
89
|
-
], UserEntity.prototype, "contacts", void 0);
|
|
90
84
|
__decorate([
|
|
91
85
|
OneToOne(() => UserProfileEntity, (profile) => profile.user, { cascade: true, nullable: true }),
|
|
92
86
|
Field(() => UserProfileEntity, { nullable: true }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.entity.js","sourceRoot":"","sources":["../../src/models/users.entity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;A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