90dc-core 1.2.13 → 1.2.15
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.
|
@@ -23,6 +23,9 @@ export declare class PersistedUser extends Model {
|
|
|
23
23
|
utilityEmail: string;
|
|
24
24
|
emailConfirmed: boolean;
|
|
25
25
|
utilityEmailConfirmed: boolean;
|
|
26
|
+
changeEmail: boolean;
|
|
27
|
+
allowsEmail: boolean;
|
|
28
|
+
changeUtilityEmail: boolean;
|
|
26
29
|
subscription: object;
|
|
27
30
|
$addFriend(friendUuid: string): Promise<void>;
|
|
28
31
|
}
|
|
@@ -121,6 +121,18 @@ __decorate([
|
|
|
121
121
|
Column({ type: DataType.BOOLEAN, allowNull: true }),
|
|
122
122
|
__metadata("design:type", Boolean)
|
|
123
123
|
], PersistedUser.prototype, "utilityEmailConfirmed", void 0);
|
|
124
|
+
__decorate([
|
|
125
|
+
Column({ type: DataType.BOOLEAN, allowNull: true }),
|
|
126
|
+
__metadata("design:type", Boolean)
|
|
127
|
+
], PersistedUser.prototype, "changeEmail", void 0);
|
|
128
|
+
__decorate([
|
|
129
|
+
Column({ type: DataType.BOOLEAN, allowNull: true }),
|
|
130
|
+
__metadata("design:type", Boolean)
|
|
131
|
+
], PersistedUser.prototype, "allowsEmail", void 0);
|
|
132
|
+
__decorate([
|
|
133
|
+
Column({ type: DataType.BOOLEAN, allowNull: true }),
|
|
134
|
+
__metadata("design:type", Boolean)
|
|
135
|
+
], PersistedUser.prototype, "changeUtilityEmail", void 0);
|
|
124
136
|
__decorate([
|
|
125
137
|
Column({ type: DataType.JSONB, allowNull: true }),
|
|
126
138
|
__metadata("design:type", Object)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/lib/dbmodels/PersistedUser.ts"],"sourcesContent":["import { Column, DataType, Default, Model, Table } from \"sequelize-typescript\";\nimport { UsersFriends } from \"./UsersFriends\";\n\n@Table\nexport class PersistedUser extends Model {\n @Default(DataType.UUIDV4)\n @Column({\n type: DataType.UUID,\n defaultValue: DataType.UUID,\n allowNull: false,\n primaryKey: true,\n })\n declare userUuid: string;\n\n @Column({ type: DataType.TEXT, allowNull: false, unique: false })\n declare email: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare password: string;\n\n @Column({ type: DataType.TEXT, allowNull: true })\n declare firstName: string;\n\n @Column({ type: DataType.TEXT, allowNull: true })\n declare lastName: string;\n\n @Column({ type: DataType.TEXT, allowNull: true })\n declare avatar: string;\n\n @Column({ type: DataType.TEXT, allowNull: true })\n declare sex: string;\n\n @Column({ type: DataType.TEXT, allowNull: true })\n declare goal: string;\n\n @Column({ type: DataType.TEXT, allowNull: true })\n declare weightGoal: string;\n\n @Column({ type: DataType.TEXT, allowNull: true })\n declare role: \"default\" | \"admin\";\n\n @Column({ type: DataType.TEXT, allowNull: true })\n declare level: string;\n\n @Column({ type: DataType.TEXT, allowNull: true })\n declare type: string;\n\n @Column({ type: DataType.TEXT, allowNull: true })\n declare days: number;\n\n @Column({ type: DataType.TEXT, allowNull: true })\n declare dateOfBirth: string;\n\n @Column({ type: DataType.TEXT, allowNull: true })\n declare metricSystem: string;\n\n @Column({ type: DataType.TEXT, allowNull: true })\n declare height: string;\n\n @Column({ type: DataType.TEXT, allowNull: true })\n declare weight: string;\n\n @Column({ type: DataType.TEXT, allowNull: true })\n declare activeProgramId: string;\n\n @Column({ type: DataType.TEXT, allowNull: true })\n declare registrationDate: string;\n\n @Column({ type: DataType.TEXT, allowNull: true })\n declare registrationService: \"apple\" | \"google\" | \"facebook\" | \"native\";\n\n @Column({ type: DataType.TEXT, allowNull: true })\n declare utilityEmail: string;\n\n @Column({ type: DataType.BOOLEAN, allowNull: true })\n declare emailConfirmed: boolean;\n\n @Column({ type: DataType.BOOLEAN, allowNull: true })\n declare utilityEmailConfirmed: boolean;\n\n @Column({ type: DataType.JSONB, allowNull: true })\n declare subscription: object;\n\n async $addFriend(friendUuid: string) {\n await UsersFriends.create({\n userId: this.userUuid,\n friendId: friendUuid,\n createDate: new Date(),\n });\n\n await UsersFriends.create({\n userId: friendUuid,\n friendId: this.userUuid,\n createDate: new Date(),\n });\n }\n}\n"],"names":["Column","DataType","Default","Model","Table","UsersFriends","PersistedUser","$addFriend","friendUuid","create","userId","userUuid","friendId","createDate","Date","UUIDV4","type","UUID","defaultValue","allowNull","primaryKey","TEXT","unique","BOOLEAN","JSONB"],"mappings":";;;;;;AAAA,SAASA,MAAM,EAAEC,QAAQ,EAAEC,OAAO,EAAEC,KAAK,EAAEC,KAAK,QAAQ,uBAAuB;AAC/E,SAASC,YAAY,QAAQ,iBAAiB;AAG9C,WAAaC,gBAAN,4BAA4BH;
|
|
1
|
+
{"version":3,"sources":["../../../src/lib/dbmodels/PersistedUser.ts"],"sourcesContent":["import { Column, DataType, Default, Model, Table } from \"sequelize-typescript\";\nimport { UsersFriends } from \"./UsersFriends\";\n\n@Table\nexport class PersistedUser extends Model {\n @Default(DataType.UUIDV4)\n @Column({\n type: DataType.UUID,\n defaultValue: DataType.UUID,\n allowNull: false,\n primaryKey: true,\n })\n declare userUuid: string;\n\n @Column({ type: DataType.TEXT, allowNull: false, unique: false })\n declare email: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare password: string;\n\n @Column({ type: DataType.TEXT, allowNull: true })\n declare firstName: string;\n\n @Column({ type: DataType.TEXT, allowNull: true })\n declare lastName: string;\n\n @Column({ type: DataType.TEXT, allowNull: true })\n declare avatar: string;\n\n @Column({ type: DataType.TEXT, allowNull: true })\n declare sex: string;\n\n @Column({ type: DataType.TEXT, allowNull: true })\n declare goal: string;\n\n @Column({ type: DataType.TEXT, allowNull: true })\n declare weightGoal: string;\n\n @Column({ type: DataType.TEXT, allowNull: true })\n declare role: \"default\" | \"admin\";\n\n @Column({ type: DataType.TEXT, allowNull: true })\n declare level: string;\n\n @Column({ type: DataType.TEXT, allowNull: true })\n declare type: string;\n\n @Column({ type: DataType.TEXT, allowNull: true })\n declare days: number;\n\n @Column({ type: DataType.TEXT, allowNull: true })\n declare dateOfBirth: string;\n\n @Column({ type: DataType.TEXT, allowNull: true })\n declare metricSystem: string;\n\n @Column({ type: DataType.TEXT, allowNull: true })\n declare height: string;\n\n @Column({ type: DataType.TEXT, allowNull: true })\n declare weight: string;\n\n @Column({ type: DataType.TEXT, allowNull: true })\n declare activeProgramId: string;\n\n @Column({ type: DataType.TEXT, allowNull: true })\n declare registrationDate: string;\n\n @Column({ type: DataType.TEXT, allowNull: true })\n declare registrationService: \"apple\" | \"google\" | \"facebook\" | \"native\";\n\n @Column({ type: DataType.TEXT, allowNull: true })\n declare utilityEmail: string;\n\n @Column({ type: DataType.BOOLEAN, allowNull: true })\n declare emailConfirmed: boolean;\n\n @Column({ type: DataType.BOOLEAN, allowNull: true })\n declare utilityEmailConfirmed: boolean;\n\n @Column({ type: DataType.BOOLEAN, allowNull: true })\n declare changeEmail: boolean;\n\n @Column({ type: DataType.BOOLEAN, allowNull: true })\n declare allowsEmail: boolean;\n\n @Column({ type: DataType.BOOLEAN, allowNull: true })\n declare changeUtilityEmail: boolean;\n\n @Column({ type: DataType.JSONB, allowNull: true })\n declare subscription: object;\n\n async $addFriend(friendUuid: string) {\n await UsersFriends.create({\n userId: this.userUuid,\n friendId: friendUuid,\n createDate: new Date(),\n });\n\n await UsersFriends.create({\n userId: friendUuid,\n friendId: this.userUuid,\n createDate: new Date(),\n });\n }\n}\n"],"names":["Column","DataType","Default","Model","Table","UsersFriends","PersistedUser","$addFriend","friendUuid","create","userId","userUuid","friendId","createDate","Date","UUIDV4","type","UUID","defaultValue","allowNull","primaryKey","TEXT","unique","BOOLEAN","JSONB"],"mappings":";;;;;;AAAA,SAASA,MAAM,EAAEC,QAAQ,EAAEC,OAAO,EAAEC,KAAK,EAAEC,KAAK,QAAQ,uBAAuB;AAC/E,SAASC,YAAY,QAAQ,iBAAiB;AAG9C,WAAaC,gBAAN,4BAA4BH;IAwFjC,MAAMI,WAAWC,UAAkB,EAAE;QACnC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;IADZF;GACYE"}
|
package/package.json
CHANGED
|
@@ -78,6 +78,15 @@ export class PersistedUser extends Model {
|
|
|
78
78
|
@Column({ type: DataType.BOOLEAN, allowNull: true })
|
|
79
79
|
declare utilityEmailConfirmed: boolean;
|
|
80
80
|
|
|
81
|
+
@Column({ type: DataType.BOOLEAN, allowNull: true })
|
|
82
|
+
declare changeEmail: boolean;
|
|
83
|
+
|
|
84
|
+
@Column({ type: DataType.BOOLEAN, allowNull: true })
|
|
85
|
+
declare allowsEmail: boolean;
|
|
86
|
+
|
|
87
|
+
@Column({ type: DataType.BOOLEAN, allowNull: true })
|
|
88
|
+
declare changeUtilityEmail: boolean;
|
|
89
|
+
|
|
81
90
|
@Column({ type: DataType.JSONB, allowNull: true })
|
|
82
91
|
declare subscription: object;
|
|
83
92
|
|