90dc-core 1.2.14 → 1.2.16

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.
@@ -1,15 +1,17 @@
1
- import { Model } from "sequelize-typescript";
1
+ import { Model } from 'sequelize-typescript';
2
2
  export declare class PersistedUser extends Model {
3
3
  userUuid: string;
4
4
  email: string;
5
5
  password: string;
6
- firstName: string;
7
- lastName: string;
6
+ firstName?: string;
7
+ lastName?: string;
8
8
  avatar: string;
9
9
  sex: string;
10
10
  goal: string;
11
+ isFreeVersion: boolean;
12
+ allowsEmail: boolean;
11
13
  weightGoal: string;
12
- role: "default" | "admin";
14
+ role: 'default' | 'admin';
13
15
  level: string;
14
16
  type: string;
15
17
  days: number;
@@ -19,7 +21,7 @@ export declare class PersistedUser extends Model {
19
21
  weight: string;
20
22
  activeProgramId: string;
21
23
  registrationDate: string;
22
- registrationService: "apple" | "google" | "facebook" | "native";
24
+ registrationService: 'apple' | 'google' | 'facebook' | 'native';
23
25
  utilityEmail: string;
24
26
  emailConfirmed: boolean;
25
27
  utilityEmailConfirmed: boolean;
@@ -7,19 +7,19 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
7
7
  var __metadata = (this && this.__metadata) || function (k, v) {
8
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
9
  };
10
- import { Column, DataType, Default, Model, Table } from "sequelize-typescript";
11
- import { UsersFriends } from "./UsersFriends";
10
+ import { Column, DataType, Default, Model, Table } from 'sequelize-typescript';
11
+ import { UsersFriends } from './UsersFriends';
12
12
  let PersistedUser = class PersistedUser extends Model {
13
13
  async $addFriend(friendUuid) {
14
14
  await UsersFriends.create({
15
15
  userId: this.userUuid,
16
16
  friendId: friendUuid,
17
- createDate: new Date(),
17
+ createDate: new Date()
18
18
  });
19
19
  await UsersFriends.create({
20
20
  userId: friendUuid,
21
21
  friendId: this.userUuid,
22
- createDate: new Date(),
22
+ createDate: new Date()
23
23
  });
24
24
  }
25
25
  };
@@ -29,7 +29,7 @@ __decorate([
29
29
  type: DataType.UUID,
30
30
  defaultValue: DataType.UUID,
31
31
  allowNull: false,
32
- primaryKey: true,
32
+ primaryKey: true
33
33
  }),
34
34
  __metadata("design:type", String)
35
35
  ], PersistedUser.prototype, "userUuid", void 0);
@@ -61,6 +61,14 @@ __decorate([
61
61
  Column({ type: DataType.TEXT, allowNull: true }),
62
62
  __metadata("design:type", String)
63
63
  ], PersistedUser.prototype, "goal", void 0);
64
+ __decorate([
65
+ Column({ type: DataType.BOOLEAN, allowNull: true }),
66
+ __metadata("design:type", Boolean)
67
+ ], PersistedUser.prototype, "isFreeVersion", void 0);
68
+ __decorate([
69
+ Column({ type: DataType.BOOLEAN, allowNull: true }),
70
+ __metadata("design:type", Boolean)
71
+ ], PersistedUser.prototype, "allowsEmail", void 0);
64
72
  __decorate([
65
73
  Column({ type: DataType.TEXT, allowNull: true }),
66
74
  __metadata("design:type", String)
@@ -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.BOOLEAN, allowNull: true })\n declare changeEmail: 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,QAA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QAAEL,WAAW,IAAI;IAAC;GAlFrCb;AAAAA;IADZF;GACYE"}
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.BOOLEAN, allowNull: true })\n declare isFreeVersion: boolean;\n\n @Column({ type: DataType.BOOLEAN, allowNull: true })\n declare allowsEmail: boolean;\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 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;IA2FjC,MAAMI,WAAWC,UAAkB,EAAE;QACnC,MAAMH,aAAaI,MAAM,CAAC;YACxBC,QAAQ,IAAI,CAACC,QAAQ;YACrBC,UAAUJ;YACVK,YAAY,IAAIC;QAClB;QAEA,MAAMT,aAAaI,MAAM,CAAC;YACxBC,QAAQF;YACRI,UAAU,IAAI,CAACD,QAAQ;YACvBE,YAAY,IAAIC;QAClB;IACF;AACF,EAAC;;IAvGEZ,QAAQD,SAASc,MAAM;IACvBf,OAAO;QACNgB,MAAMf,SAASgB,IAAI;QACnBC,cAAcjB,SAASgB,IAAI;QAC3BE,WAAW,KA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AC;GApDpCb;;IAuDVN,OAAO;QAAEgB,MAAMf,SAASoB,IAAI;QAAEF,WAAW,IAAI;IAAC;GAvDpCb;;IA0DVN,OAAO;QAAEgB,MAAMf,SAASoB,IAAI;QAAEF,WAAW,IAAI;IAAC;GA1DpCb;;IA6DVN,OAAO;QAAEgB,MAAMf,SAASoB,IAAI;QAAEF,WAAW,IAAI;IAAC;GA7DpCb;;IAgEVN,OAAO;QAAEgB,MAAMf,SAASoB,IAAI;QAAEF,WAAW,IAAI;IAAC;GAhEpCb;;IAmEVN,OAAO;QAAEgB,MAAMf,SAASoB,IAAI;QAAEF,WAAW,IAAI;IAAC;GAnEpCb;;IAsEVN,OAAO;QAAEgB,MAAMf,SAASoB,IAAI;QAAEF,WAAW,IAAI;IAAC;GAtEpCb;;IAyEVN,OAAO;QAAEgB,MAAMf,SAASoB,IAAI;QAAEF,WAAW,IAAI;IAAC;GAzEpCb;;IA4EVN,OAAO;QAAEgB,MAAMf,SAASsB,OAAO;QAAEJ,WAAW,IAAI;IAAC;GA5EvCb;;IA+EVN,OAAO;QAAEgB,MAAMf,SAASsB,OAAO;QAAEJ,WAAW,IAAI;IAAC;GA/EvCb;;IAkFVN,OAAO;QAAEgB,MAAMf,SAASsB,OAAO;QAAEJ,WAAW,IAAI;IAAC;GAlFvCb;;IAqFVN,OAAO;QAAEgB,MAAMf,SAASsB,OAAO;QAAEJ,WAAW,IAAI;IAAC;GArFvCb;;IAwFVN,OAAO;QAAEgB,MAAMf,SAASuB,KAAK;QAAEL,WAAW,IAAI;IAAC;GAxFrCb;AAAAA;IADZF;GACYE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "90dc-core",
3
- "version": "1.2.14",
3
+ "version": "1.2.16",
4
4
  "description": "A package that contains utils and interfaces used to create 90dc",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -1,5 +1,5 @@
1
- import { Column, DataType, Default, Model, Table } from "sequelize-typescript";
2
- import { UsersFriends } from "./UsersFriends";
1
+ import { Column, DataType, Default, Model, Table } from 'sequelize-typescript';
2
+ import { UsersFriends } from './UsersFriends';
3
3
 
4
4
  @Table
5
5
  export class PersistedUser extends Model {
@@ -8,7 +8,7 @@ export class PersistedUser extends Model {
8
8
  type: DataType.UUID,
9
9
  defaultValue: DataType.UUID,
10
10
  allowNull: false,
11
- primaryKey: true,
11
+ primaryKey: true
12
12
  })
13
13
  declare userUuid: string;
14
14
 
@@ -19,10 +19,10 @@ export class PersistedUser extends Model {
19
19
  declare password: string;
20
20
 
21
21
  @Column({ type: DataType.TEXT, allowNull: true })
22
- declare firstName: string;
22
+ declare firstName?: string;
23
23
 
24
24
  @Column({ type: DataType.TEXT, allowNull: true })
25
- declare lastName: string;
25
+ declare lastName?: string;
26
26
 
27
27
  @Column({ type: DataType.TEXT, allowNull: true })
28
28
  declare avatar: string;
@@ -33,11 +33,17 @@ export class PersistedUser extends Model {
33
33
  @Column({ type: DataType.TEXT, allowNull: true })
34
34
  declare goal: string;
35
35
 
36
+ @Column({ type: DataType.BOOLEAN, allowNull: true })
37
+ declare isFreeVersion: boolean;
38
+
39
+ @Column({ type: DataType.BOOLEAN, allowNull: true })
40
+ declare allowsEmail: boolean;
41
+
36
42
  @Column({ type: DataType.TEXT, allowNull: true })
37
43
  declare weightGoal: string;
38
44
 
39
45
  @Column({ type: DataType.TEXT, allowNull: true })
40
- declare role: "default" | "admin";
46
+ declare role: 'default' | 'admin';
41
47
 
42
48
  @Column({ type: DataType.TEXT, allowNull: true })
43
49
  declare level: string;
@@ -67,7 +73,7 @@ export class PersistedUser extends Model {
67
73
  declare registrationDate: string;
68
74
 
69
75
  @Column({ type: DataType.TEXT, allowNull: true })
70
- declare registrationService: "apple" | "google" | "facebook" | "native";
76
+ declare registrationService: 'apple' | 'google' | 'facebook' | 'native';
71
77
 
72
78
  @Column({ type: DataType.TEXT, allowNull: true })
73
79
  declare utilityEmail: string;
@@ -91,13 +97,13 @@ export class PersistedUser extends Model {
91
97
  await UsersFriends.create({
92
98
  userId: this.userUuid,
93
99
  friendId: friendUuid,
94
- createDate: new Date(),
100
+ createDate: new Date()
95
101
  });
96
102
 
97
103
  await UsersFriends.create({
98
104
  userId: friendUuid,
99
105
  friendId: this.userUuid,
100
- createDate: new Date(),
106
+ createDate: new Date()
101
107
  });
102
108
  }
103
109
  }