90dc-core 1.12.22 → 1.12.24

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.
@@ -38,7 +38,9 @@ _ts_decorate([
38
38
  })
39
39
  ], ClientNote.prototype, "note", void 0);
40
40
  ClientNote = _ts_decorate([
41
- Table,
41
+ Table({
42
+ timestamps: true
43
+ }),
42
44
  Index([
43
45
  'clientUuid'
44
46
  ]),
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/lib/dbmodels/coaching/ClientNote.ts"],"sourcesContent":["import { Column, DataType, Default, ForeignKey, Model, Table, Index } from 'sequelize-typescript';\nimport { PersistedUser } from '../user/PersistedUser.js';\n\n@Table\n@Index(['clientUuid'])\n@Index(['coachUuid'])\nexport class ClientNote extends Model {\n\t@Default(DataType.UUIDV4)\n\t@Column({\n\t\ttype: DataType.UUID,\n\t\tdefaultValue: DataType.UUIDV4,\n\t\tallowNull: false,\n\t\tprimaryKey: true\n\t})\n\tdeclare uuid: string;\n\n\t@ForeignKey(() => PersistedUser)\n\t@Column({ type: DataType.UUID, allowNull: false })\n\tdeclare clientUuid: string;\n\n\t@ForeignKey(() => PersistedUser)\n\t@Column({ type: DataType.UUID, allowNull: false })\n\tdeclare coachUuid: string;\n\n\t@Column({ type: DataType.TEXT, allowNull: false })\n\tdeclare note: string;\n}\n"],"names":["Column","DataType","Default","ForeignKey","Model","Table","Index","PersistedUser","ClientNote","UUIDV4","type","UUID","defaultValue","allowNull","primaryKey","TEXT"],"mappings":";;;;;;AAAA,SAASA,MAAM,EAAEC,QAAQ,EAAEC,OAAO,EAAEC,UAAU,EAAEC,KAAK,EAAEC,KAAK,EAAEC,KAAK,QAAQ,uBAAuB;AAClG,SAASC,aAAa,QAAQ,2BAA2B;AAKzD,OAAO,MAAMC,mBAAmBJ;AAoBhC;;qBAnBmBK;;QAEjBC,MAAMT,SAASU,IAAI;QACnBC,cAAcX,SAASQ,MAAM;QAC7BI,WAAW;QACXC,YAAY;;;;mBAIKP;;QACRG,MAAMT,SAASU,IAAI;QAAEE,WAAW;;;;mBAGxBN;;QACRG,MAAMT,SAASU,IAAI;QAAEE,WAAW;;;;;QAGhCH,MAAMT,SAASc,IAAI;QAAEF,WAAW;;;;;;QApBnC;;;QACA"}
1
+ {"version":3,"sources":["../../../../src/lib/dbmodels/coaching/ClientNote.ts"],"sourcesContent":["import { Column, DataType, Default, ForeignKey, Model, Table, Index } from 'sequelize-typescript';\nimport { PersistedUser } from '../user/PersistedUser.js';\n\n@Table({timestamps: true})\n@Index(['clientUuid'])\n@Index(['coachUuid'])\nexport class ClientNote extends Model {\n\t@Default(DataType.UUIDV4)\n\t@Column({\n\t\ttype: DataType.UUID,\n\t\tdefaultValue: DataType.UUIDV4,\n\t\tallowNull: false,\n\t\tprimaryKey: true\n\t})\n\tdeclare uuid: string;\n\n\t@ForeignKey(() => PersistedUser)\n\t@Column({ type: DataType.UUID, allowNull: false })\n\tdeclare clientUuid: string;\n\n\t@ForeignKey(() => PersistedUser)\n\t@Column({ type: DataType.UUID, allowNull: false })\n\tdeclare coachUuid: string;\n\n\t@Column({ type: DataType.TEXT, allowNull: false })\n\tdeclare note: string;\n}\n"],"names":["Column","DataType","Default","ForeignKey","Model","Table","Index","PersistedUser","ClientNote","UUIDV4","type","UUID","defaultValue","allowNull","primaryKey","TEXT","timestamps"],"mappings":";;;;;;AAAA,SAASA,MAAM,EAAEC,QAAQ,EAAEC,OAAO,EAAEC,UAAU,EAAEC,KAAK,EAAEC,KAAK,EAAEC,KAAK,QAAQ,uBAAuB;AAClG,SAASC,aAAa,QAAQ,2BAA2B;AAKzD,OAAO,MAAMC,mBAAmBJ;AAoBhC;;qBAnBmBK;;QAEjBC,MAAMT,SAASU,IAAI;QACnBC,cAAcX,SAASQ,MAAM;QAC7BI,WAAW;QACXC,YAAY;;;;mBAIKP;;QACRG,MAAMT,SAASU,IAAI;QAAEE,WAAW;;;;mBAGxBN;;QACRG,MAAMT,SAASU,IAAI;QAAEE,WAAW;;;;;QAGhCH,MAAMT,SAASc,IAAI;QAAEF,WAAW;;;;;QArBnCG,YAAY;;;QACZ;;;QACA"}
@@ -31,7 +31,9 @@ _ts_decorate([
31
31
  })
32
32
  ], ClientTag.prototype, "tag", void 0);
33
33
  ClientTag = _ts_decorate([
34
- Table,
34
+ Table({
35
+ timestamps: true
36
+ }),
35
37
  Index([
36
38
  'clientUuid'
37
39
  ])
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/lib/dbmodels/coaching/ClientTag.ts"],"sourcesContent":["import { Column, DataType, Default, ForeignKey, Model, Table, Index } from 'sequelize-typescript';\nimport { PersistedUser } from '../user/PersistedUser.js';\n\n@Table\n@Index(['clientUuid'])\nexport class ClientTag extends Model {\n\t@Default(DataType.UUIDV4)\n\t@Column({\n\t\ttype: DataType.UUID,\n\t\tdefaultValue: DataType.UUIDV4,\n\t\tallowNull: false,\n\t\tprimaryKey: true\n\t})\n\tdeclare uuid: string;\n\n\t@ForeignKey(() => PersistedUser)\n\t@Column({ type: DataType.UUID, allowNull: false })\n\tdeclare clientUuid: string;\n\n\t@Column({ type: DataType.STRING, allowNull: false })\n\tdeclare tag: string;\n}\n"],"names":["Column","DataType","Default","ForeignKey","Model","Table","Index","PersistedUser","ClientTag","UUIDV4","type","UUID","defaultValue","allowNull","primaryKey","STRING"],"mappings":";;;;;;AAAA,SAASA,MAAM,EAAEC,QAAQ,EAAEC,OAAO,EAAEC,UAAU,EAAEC,KAAK,EAAEC,KAAK,EAAEC,KAAK,QAAQ,uBAAuB;AAClG,SAASC,aAAa,QAAQ,2BAA2B;AAIzD,OAAO,MAAMC,kBAAkBJ;AAgB/B;;qBAfmBK;;QAEjBC,MAAMT,SAASU,IAAI;QACnBC,cAAcX,SAASQ,MAAM;QAC7BI,WAAW;QACXC,YAAY;;;;mBAIKP;;QACRG,MAAMT,SAASU,IAAI;QAAEE,WAAW;;;;;QAGhCH,MAAMT,SAASc,MAAM;QAAEF,WAAW;;;;;;QAfrC"}
1
+ {"version":3,"sources":["../../../../src/lib/dbmodels/coaching/ClientTag.ts"],"sourcesContent":["import { Column, DataType, Default, ForeignKey, Model, Table, Index } from 'sequelize-typescript';\nimport { PersistedUser } from '../user/PersistedUser.js';\n\n@Table({timestamps: true})\n@Index(['clientUuid'])\nexport class ClientTag extends Model {\n\t@Default(DataType.UUIDV4)\n\t@Column({\n\t\ttype: DataType.UUID,\n\t\tdefaultValue: DataType.UUIDV4,\n\t\tallowNull: false,\n\t\tprimaryKey: true\n\t})\n\tdeclare uuid: string;\n\n\t@ForeignKey(() => PersistedUser)\n\t@Column({ type: DataType.UUID, allowNull: false })\n\tdeclare clientUuid: string;\n\n\t@Column({ type: DataType.STRING, allowNull: false })\n\tdeclare tag: string;\n}\n"],"names":["Column","DataType","Default","ForeignKey","Model","Table","Index","PersistedUser","ClientTag","UUIDV4","type","UUID","defaultValue","allowNull","primaryKey","STRING","timestamps"],"mappings":";;;;;;AAAA,SAASA,MAAM,EAAEC,QAAQ,EAAEC,OAAO,EAAEC,UAAU,EAAEC,KAAK,EAAEC,KAAK,EAAEC,KAAK,QAAQ,uBAAuB;AAClG,SAASC,aAAa,QAAQ,2BAA2B;AAIzD,OAAO,MAAMC,kBAAkBJ;AAgB/B;;qBAfmBK;;QAEjBC,MAAMT,SAASU,IAAI;QACnBC,cAAcX,SAASQ,MAAM;QAC7BI,WAAW;QACXC,YAAY;;;;mBAIKP;;QACRG,MAAMT,SAASU,IAAI;QAAEE,WAAW;;;;;QAGhCH,MAAMT,SAASc,MAAM;QAAEF,WAAW;;;;;QAhBrCG,YAAY;;;QACZ"}
@@ -10,6 +10,7 @@ export declare class Subscription extends Model {
10
10
  type: string;
11
11
  expiresOn: Date;
12
12
  startDate: Date;
13
+ delayedStartDays: number | null;
13
14
  user: PersistedUser;
14
15
  subscriptionLogs: SubscriptionLog[];
15
16
  createdAt: CreationOptional<Date> | null;
@@ -1 +1 @@
1
- {"version":3,"file":"Subscription.d.ts","sourceRoot":"","sources":["../../../../src/lib/dbmodels/subscription/Subscription.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,EAGN,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAC,aAAa,EAAC,MAAM,0BAA0B,CAAC;AACvD,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,WAAW,CAAC;AAEhD,qBACa,YAAa,SAAQ,KAAK;IAQ7B,QAAQ,EAAE,MAAM,CAAC;IAGjB,UAAU,EAAE,MAAM,CAAC;IAGnB,QAAQ,EAAE,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;IAGxC,MAAM,EAAE,QAAQ,GAAG,UAAU,GAAG,SAAS,CAAC;IAG1C,IAAI,EAAE,MAAM,CAAC;IAGb,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;IAGhB,IAAI,EAAE,aAAa,CAAC;IAGpB,gBAAgB,EAAE,eAAe,EAAE,CAAC;IAKpC,SAAS,EAAE,gBAAgB,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAKzC,SAAS,EAAE,gBAAgB,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;CAClD"}
1
+ {"version":3,"file":"Subscription.d.ts","sourceRoot":"","sources":["../../../../src/lib/dbmodels/subscription/Subscription.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,EAGN,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAC,aAAa,EAAC,MAAM,0BAA0B,CAAC;AACvD,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,WAAW,CAAC;AAEhD,qBACa,YAAa,SAAQ,KAAK;IAQ7B,QAAQ,EAAE,MAAM,CAAC;IAGjB,UAAU,EAAE,MAAM,CAAC;IAGnB,QAAQ,EAAE,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;IAGxC,MAAM,EAAE,QAAQ,GAAG,UAAU,GAAG,SAAS,CAAC;IAG1C,IAAI,EAAE,MAAM,CAAC;IAGb,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;IAGhB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAGhC,IAAI,EAAE,aAAa,CAAC;IAGpB,gBAAgB,EAAE,eAAe,EAAE,CAAC;IAKpC,SAAS,EAAE,gBAAgB,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAKzC,SAAS,EAAE,gBAAgB,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;CAClD"}
@@ -54,6 +54,12 @@ _ts_decorate([
54
54
  allowNull: false
55
55
  })
56
56
  ], Subscription.prototype, "startDate", void 0);
57
+ _ts_decorate([
58
+ Column({
59
+ type: DataType.INTEGER,
60
+ allowNull: true
61
+ })
62
+ ], Subscription.prototype, "delayedStartDays", void 0);
57
63
  _ts_decorate([
58
64
  BelongsTo(()=>PersistedUser)
59
65
  ], Subscription.prototype, "user", void 0);
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/lib/dbmodels/subscription/Subscription.ts"],"sourcesContent":["import {\n BelongsTo,\n Column, CreatedAt,\n DataType, Default,\n ForeignKey,\n HasMany,\n Model,\n PrimaryKey,\n Table, UpdatedAt,\n} from \"sequelize-typescript\";\nimport { SubscriptionLog } from './SubscriptionLog.js';\nimport {PersistedUser} from '../user/PersistedUser.js';\nimport type {CreationOptional} from \"sequelize\";\n\n@Table\nexport class Subscription extends Model {\n @ForeignKey(() => PersistedUser)\n @PrimaryKey\n @Column({\n type: DataType.UUID,\n allowNull: false,\n primaryKey: true,\n })\n declare userUuid: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare identifier: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare platform: \"google\" | \"apple\" | \"mollie\";\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare status: \"active\" | \"canceled\" | \"expired\";\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare type: string;\n\n @Column({ type: DataType.DATE, allowNull: false })\n declare expiresOn: Date;\n\n @Column({ type: DataType.DATE, allowNull: false })\n declare startDate: Date;\n\n @BelongsTo(() => PersistedUser)\n declare user: PersistedUser;\n\n @HasMany(() => SubscriptionLog)\n declare subscriptionLogs: SubscriptionLog[];\n\n @CreatedAt\n @Default(null) // Set the default value to null\n @Column({ type: DataType.DATE, allowNull: true, defaultValue: new Date() })\n declare createdAt: CreationOptional<Date> | null;\n\n @UpdatedAt\n @Default(null) // Set the default value to null\n @Column({ type: DataType.DATE, allowNull: true, defaultValue: new Date() })\n declare updatedAt: CreationOptional<Date> | null;\n}\n"],"names":["BelongsTo","Column","CreatedAt","DataType","Default","ForeignKey","HasMany","Model","PrimaryKey","Table","UpdatedAt","SubscriptionLog","PersistedUser","Subscription","type","UUID","allowNull","primaryKey","TEXT","DATE","defaultValue","Date"],"mappings":";;;;;;AAAA,SACEA,SAAS,EACTC,MAAM,EAAEC,SAAS,EACjBC,QAAQ,EAAEC,OAAO,EACjBC,UAAU,EACVC,OAAO,EACPC,KAAK,EACLC,UAAU,EACVC,KAAK,EAAEC,SAAS,QACX,uBAAuB;AAC9B,SAASC,eAAe,QAAQ,uBAAuB;AACvD,SAAQC,aAAa,QAAO,2BAA2B;AAIvD,OAAO,MAAMC,qBAAqBN;AA2ClC;;mBA1CoBK;;;QAGhBE,MAAMX,SAASY,IAAI;QACnBC,WAAW;QACXC,YAAY;;;;;QAIJH,MAAMX,SAASe,IAAI;QAAEF,WAAW;;;;;QAGhCF,MAAMX,SAASe,IAAI;QAAEF,WAAW;;;;;QAGhCF,MAAMX,SAASe,IAAI;QAAEF,WAAW;;;;;QAGhCF,MAAMX,SAASe,IAAI;QAAEF,WAAW;;;;;QAGhCF,MAAMX,SAASgB,IAAI;QAAEH,WAAW;;;;;QAGhCF,MAAMX,SAASgB,IAAI;QAAEH,WAAW;;;;kBAGzBJ;;;gBAGFD;;;;;;QAKLG,MAAMX,SAASgB,IAAI;QAAEH,WAAW;QAAMI,cAAc,IAAIC;;;;;;;QAKxDP,MAAMX,SAASgB,IAAI;QAAEH,WAAW;QAAMI,cAAc,IAAIC"}
1
+ {"version":3,"sources":["../../../../src/lib/dbmodels/subscription/Subscription.ts"],"sourcesContent":["import {\n BelongsTo,\n Column, CreatedAt,\n DataType, Default,\n ForeignKey,\n HasMany,\n Model,\n PrimaryKey,\n Table, UpdatedAt,\n} from \"sequelize-typescript\";\nimport { SubscriptionLog } from './SubscriptionLog.js';\nimport {PersistedUser} from '../user/PersistedUser.js';\nimport type {CreationOptional} from \"sequelize\";\n\n@Table\nexport class Subscription extends Model {\n @ForeignKey(() => PersistedUser)\n @PrimaryKey\n @Column({\n type: DataType.UUID,\n allowNull: false,\n primaryKey: true,\n })\n declare userUuid: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare identifier: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare platform: \"google\" | \"apple\" | \"mollie\";\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare status: \"active\" | \"canceled\" | \"expired\";\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare type: string;\n\n @Column({ type: DataType.DATE, allowNull: false })\n declare expiresOn: Date;\n\n @Column({ type: DataType.DATE, allowNull: false })\n declare startDate: Date;\n\n @Column({ type: DataType.INTEGER, allowNull: true })\n declare delayedStartDays: number | null;\n\n @BelongsTo(() => PersistedUser)\n declare user: PersistedUser;\n\n @HasMany(() => SubscriptionLog)\n declare subscriptionLogs: SubscriptionLog[];\n\n @CreatedAt\n @Default(null) // Set the default value to null\n @Column({ type: DataType.DATE, allowNull: true, defaultValue: new Date() })\n declare createdAt: CreationOptional<Date> | null;\n\n @UpdatedAt\n @Default(null) // Set the default value to null\n @Column({ type: DataType.DATE, allowNull: true, defaultValue: new Date() })\n declare updatedAt: CreationOptional<Date> | null;\n}\n"],"names":["BelongsTo","Column","CreatedAt","DataType","Default","ForeignKey","HasMany","Model","PrimaryKey","Table","UpdatedAt","SubscriptionLog","PersistedUser","Subscription","type","UUID","allowNull","primaryKey","TEXT","DATE","INTEGER","defaultValue","Date"],"mappings":";;;;;;AAAA,SACEA,SAAS,EACTC,MAAM,EAAEC,SAAS,EACjBC,QAAQ,EAAEC,OAAO,EACjBC,UAAU,EACVC,OAAO,EACPC,KAAK,EACLC,UAAU,EACVC,KAAK,EAAEC,SAAS,QACX,uBAAuB;AAC9B,SAASC,eAAe,QAAQ,uBAAuB;AACvD,SAAQC,aAAa,QAAO,2BAA2B;AAIvD,OAAO,MAAMC,qBAAqBN;AA8ClC;;mBA7CoBK;;;QAGhBE,MAAMX,SAASY,IAAI;QACnBC,WAAW;QACXC,YAAY;;;;;QAIJH,MAAMX,SAASe,IAAI;QAAEF,WAAW;;;;;QAGhCF,MAAMX,SAASe,IAAI;QAAEF,WAAW;;;;;QAGhCF,MAAMX,SAASe,IAAI;QAAEF,WAAW;;;;;QAGhCF,MAAMX,SAASe,IAAI;QAAEF,WAAW;;;;;QAGhCF,MAAMX,SAASgB,IAAI;QAAEH,WAAW;;;;;QAGhCF,MAAMX,SAASgB,IAAI;QAAEH,WAAW;;;;;QAGhCF,MAAMX,SAASiB,OAAO;QAAEJ,WAAW;;;;kBAG5BJ;;;gBAGFD;;;;;;QAKLG,MAAMX,SAASgB,IAAI;QAAEH,WAAW;QAAMK,cAAc,IAAIC;;;;;;;QAKxDR,MAAMX,SAASgB,IAAI;QAAEH,WAAW;QAAMK,cAAc,IAAIC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "90dc-core",
3
- "version": "1.12.22",
3
+ "version": "1.12.24",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",