@things-factory/fav-base 7.0.1-alpha.94 → 7.0.1-alpha.96
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.
|
@@ -24,7 +24,7 @@ tslib_1.__decorate([
|
|
|
24
24
|
], Favorite.prototype, "domainId", void 0);
|
|
25
25
|
tslib_1.__decorate([
|
|
26
26
|
(0, typeorm_1.ManyToOne)(type => auth_base_1.User),
|
|
27
|
-
(0, type_graphql_1.Field)(),
|
|
27
|
+
(0, type_graphql_1.Field)(type => auth_base_1.User),
|
|
28
28
|
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
29
29
|
], Favorite.prototype, "user", void 0);
|
|
30
30
|
tslib_1.__decorate([
|
|
@@ -47,10 +47,8 @@ tslib_1.__decorate([
|
|
|
47
47
|
tslib_1.__metadata("design:type", Date)
|
|
48
48
|
], Favorite.prototype, "updatedAt", void 0);
|
|
49
49
|
tslib_1.__decorate([
|
|
50
|
-
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, {
|
|
51
|
-
|
|
52
|
-
}),
|
|
53
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
50
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
51
|
+
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
|
|
54
52
|
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
55
53
|
], Favorite.prototype, "creator", void 0);
|
|
56
54
|
tslib_1.__decorate([
|
|
@@ -58,10 +56,8 @@ tslib_1.__decorate([
|
|
|
58
56
|
tslib_1.__metadata("design:type", String)
|
|
59
57
|
], Favorite.prototype, "creatorId", void 0);
|
|
60
58
|
tslib_1.__decorate([
|
|
61
|
-
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, {
|
|
62
|
-
|
|
63
|
-
}),
|
|
64
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
59
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
60
|
+
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
|
|
65
61
|
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
66
62
|
], Favorite.prototype, "updater", void 0);
|
|
67
63
|
tslib_1.__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"favorite.js","sourceRoot":"","sources":["../../../server/service/favorite/favorite.ts"],"names":[],"mappings":";;;;AAAA,qCASgB;AAChB,+CAAoD;AAEpD,iDAA8C;AAC9C,yDAAgD;AAKzC,IAAM,QAAQ,GAAd,MAAM,QAAQ;
|
|
1
|
+
{"version":3,"file":"favorite.js","sourceRoot":"","sources":["../../../server/service/favorite/favorite.ts"],"names":[],"mappings":";;;;AAAA,qCASgB;AAChB,+CAAoD;AAEpD,iDAA8C;AAC9C,yDAAgD;AAKzC,IAAM,QAAQ,GAAd,MAAM,QAAQ;CA4CpB,CAAA;AA3CC;IAAC,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;oCACC;AAEnB;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;IACzB,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;sCACb,cAAM;wCAAA;AAEf;IAAC,IAAA,oBAAU,EAAC,CAAC,QAAkB,EAAE,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC;;0CACnC;AAEjB;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACvB,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;sCACd,gBAAI;sCAAA;AAEV;IAAC,IAAA,oBAAU,EAAC,CAAC,QAAkB,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC;;wCACnC;AAEf;IAAC,IAAA,gBAAM,GAAE;IACR,IAAA,o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","sourcesContent":["import {\n CreateDateColumn,\n UpdateDateColumn,\n Entity,\n Index,\n Column,\n RelationId,\n ManyToOne,\n PrimaryGeneratedColumn\n} from 'typeorm'\nimport { ObjectType, Field, ID } from 'type-graphql'\n\nimport { Domain } from '@things-factory/shell'\nimport { User } from '@things-factory/auth-base'\n\n@Entity()\n@Index('ix_favorite_0', (favorite: Favorite) => [favorite.domain, favorite.user, favorite.routing], { unique: true })\n@ObjectType({ description: 'Entity for Favorite' })\nexport class Favorite {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @ManyToOne(type => Domain)\n @Field(type => Domain)\n domain?: Domain\n\n @RelationId((favorite: Favorite) => favorite.domain)\n domainId?: string\n\n @ManyToOne(type => User)\n @Field(type => User)\n user: User\n\n @RelationId((favorite: Favorite) => favorite.user)\n userId?: string\n\n @Column()\n @Field()\n routing: string\n\n @CreateDateColumn()\n @Field({ nullable: true })\n createdAt?: Date\n\n @UpdateDateColumn()\n @Field({ nullable: true })\n updatedAt?: Date\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n creator?: User\n\n @RelationId((favorite: Favorite) => favorite.creator)\n creatorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n updater?: User\n\n @RelationId((favorite: Favorite) => favorite.updater)\n updaterId?: string\n}\n"]}
|