@things-factory/personalization 7.0.1-alpha.76 → 7.0.1-alpha.78
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.
|
@@ -15,7 +15,7 @@ tslib_1.__decorate([
|
|
|
15
15
|
], PagePreference.prototype, "id", void 0);
|
|
16
16
|
tslib_1.__decorate([
|
|
17
17
|
(0, typeorm_1.ManyToOne)(type => shell_1.Domain),
|
|
18
|
-
(0, type_graphql_1.Field)(
|
|
18
|
+
(0, type_graphql_1.Field)(type => shell_1.Domain),
|
|
19
19
|
tslib_1.__metadata("design:type", shell_1.Domain)
|
|
20
20
|
], PagePreference.prototype, "domain", void 0);
|
|
21
21
|
tslib_1.__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page-preference.js","sourceRoot":"","sources":["../../../server/service/page-preference/page-preference.ts"],"names":[],"mappings":";;;;AAAA,qCASgB;AAChB,+CAAoD;AAEpD,iDAA4D;AAC5D,yDAAgD;AAgBzC,IAAM,cAAc,GAApB,MAAM,cAAc;CAoD1B,CAAA;AAnDC;IAAC,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;0CACC;AAEnB;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;IACzB,IAAA,oBAAK,EAAC,
|
|
1
|
+
{"version":3,"file":"page-preference.js","sourceRoot":"","sources":["../../../server/service/page-preference/page-preference.ts"],"names":[],"mappings":";;;;AAAA,qCASgB;AAChB,+CAAoD;AAEpD,iDAA4D;AAC5D,yDAAgD;AAgBzC,IAAM,cAAc,GAApB,MAAM,cAAc;CAoD1B,CAAA;AAnDC;IAAC,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;0CACC;AAEnB;IAAC,IAAA,mBA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,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC3C,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCAC9B,gBAAI;+CAAA;AAEd;IAAC,IAAA,oBAAU,EAAC,CAAC,cAA8B,EAAE,EAAE,CAAC,cAAc,CAAC,OAAO,CAAC;;iDACrD;AAElB;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC3C,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCAC9B,gBAAI;+CAAA;AAEd;IAAC,IAAA,oBAAU,EAAC,CAAC,cAA8B,EAAE,EAAE,CAAC,cAAc,CAAC,OAAO,CAAC;;iDACrD;AAnDP,cAAc;IAd1B,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EACJ,sBAAsB,EACtB,CAAC,cAA8B,EAAE,EAAE,CAAC;QAClC,cAAc,CAAC,MAAM;QACrB,cAAc,CAAC,IAAI;QACnB,cAAc,CAAC,IAAI;QACnB,cAAc,CAAC,OAAO;KACvB,EACD;QACE,MAAM,EAAE,IAAI;KACb,CACF;IACA,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,2BAA2B,EAAE,CAAC;GAC5C,cAAc,CAoD1B;AApDY,wCAAc","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, ScalarObject } from '@things-factory/shell'\nimport { User } from '@things-factory/auth-base'\n\n@Entity()\n@Index(\n 'ix_page_preference_0',\n (pagePreference: PagePreference) => [\n pagePreference.domain,\n pagePreference.user,\n pagePreference.page,\n pagePreference.element\n ],\n {\n unique: true\n }\n)\n@ObjectType({ description: 'Entity for PagePreference' })\nexport class PagePreference {\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((pagePreference: PagePreference) => pagePreference.domain)\n domainId?: string\n\n @ManyToOne(type => User)\n @Field({ nullable: false })\n user: User\n\n @RelationId((pagePreference: PagePreference) => pagePreference.user)\n userId: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n page: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n element: string\n\n @Column('simple-json', { nullable: true })\n @Field(type => ScalarObject, { nullable: true })\n preference?: { [key: string]: any }\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((pagePreference: PagePreference) => pagePreference.creator)\n creatorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n updater?: User\n\n @RelationId((pagePreference: PagePreference) => pagePreference.updater)\n updaterId?: string\n}\n"]}
|