90dc-core 1.14.0 → 1.14.1

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.
@@ -19,6 +19,7 @@ export declare class ProgressEntry extends Model<ProgressEntry> {
19
19
  recordedAt: Date;
20
20
  setNumber: number;
21
21
  fields: ProgressFieldValue[];
22
+ metricSystem?: 'Metric' | 'Imperial' | null;
22
23
  exercise: Exercise;
23
24
  }
24
25
  //# sourceMappingURL=ProgressEntry.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProgressEntry.d.ts","sourceRoot":"","sources":["../../../../src/lib/dbmodels/program/ProgressEntry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,EAAkD,MAAM,sBAAsB,CAAC;AAC3G,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AAEvC,oBAAY,iBAAiB;IACzB,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,OAAO,YAAY;CACtB;AAED,MAAM,WAAW,kBAAkB;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,iBAAiB,CAAC;IAC7B,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IACjC,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB;AAED,qBACa,aAAc,SAAQ,KAAK,CAAC,aAAa,CAAC;IAM3C,IAAI,EAAE,MAAM,CAAC;IAQb,YAAY,EAAE,MAAM,CAAC;IAOrB,UAAU,EAAE,IAAI,CAAC;IAOjB,SAAS,EAAE,MAAM,CAAC;IAOlB,MAAM,EAAE,kBAAkB,EAAE,CAAC;IAG7B,QAAQ,EAAE,QAAQ,CAAC;CAC9B"}
1
+ {"version":3,"file":"ProgressEntry.d.ts","sourceRoot":"","sources":["../../../../src/lib/dbmodels/program/ProgressEntry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,EAAkD,MAAM,sBAAsB,CAAC;AAC3G,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AAEvC,oBAAY,iBAAiB;IACzB,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,OAAO,YAAY;CACtB;AAED,MAAM,WAAW,kBAAkB;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,iBAAiB,CAAC;IAC7B,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IACjC,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB;AAED,qBACa,aAAc,SAAQ,KAAK,CAAC,aAAa,CAAC;IAM3C,IAAI,EAAE,MAAM,CAAC;IAQb,YAAY,EAAE,MAAM,CAAC;IAOrB,UAAU,EAAE,IAAI,CAAC;IAOjB,SAAS,EAAE,MAAM,CAAC;IAOlB,MAAM,EAAE,kBAAkB,EAAE,CAAC;IAM7B,YAAY,CAAC,EAAE,QAAQ,GAAG,UAAU,GAAG,IAAI,CAAC;IAG5C,QAAQ,EAAE,QAAQ,CAAC;CAC9B"}
@@ -52,6 +52,12 @@ _ts_decorate([
52
52
  defaultValue: []
53
53
  })
54
54
  ], ProgressEntry.prototype, "fields", void 0);
55
+ _ts_decorate([
56
+ Column({
57
+ type: DataType.STRING,
58
+ allowNull: true
59
+ })
60
+ ], ProgressEntry.prototype, "metricSystem", void 0);
55
61
  _ts_decorate([
56
62
  BelongsTo(()=>Exercise)
57
63
  ], ProgressEntry.prototype, "exercise", void 0);
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/lib/dbmodels/program/ProgressEntry.ts"],"sourcesContent":["import {Table, Column, Model, ForeignKey, Index, DataType, Default, BelongsTo} from 'sequelize-typescript';\nimport {Exercise} from \"./Exercise.js\";\n\nexport enum ProgressFieldType {\n NUMBER = 'number',\n TEXT = 'text',\n SELECT = 'select',\n TIME = 'time',\n BOOLEAN = 'boolean'\n}\n\nexport interface ProgressFieldValue {\n fieldName: string;\n fieldType: ProgressFieldType;\n value: string | number | boolean;\n options?: string[];\n}\n\n@Table({ timestamps: true })\nexport class ProgressEntry extends Model<ProgressEntry> {\n @Default(DataType.UUIDV4)\n @Column({\n type: DataType.UUID,\n primaryKey: true,\n })\n declare uuid: string;\n\n @Index\n @ForeignKey(() => Exercise)\n @Column({\n type: DataType.UUID,\n allowNull: false,\n })\n declare exerciseUuid: string;\n\n @Index\n @Column({\n type: DataType.DATE,\n allowNull: false,\n })\n declare recordedAt: Date;\n\n @Column({\n type: DataType.INTEGER,\n allowNull: false,\n defaultValue: 1,\n })\n declare setNumber: number;\n\n @Column({\n type: DataType.JSONB,\n allowNull: false,\n defaultValue: [],\n })\n declare fields: ProgressFieldValue[];\n\n @BelongsTo(() => Exercise)\n declare exercise: Exercise;\n}\n"],"names":["Table","Column","Model","ForeignKey","Index","DataType","Default","BelongsTo","Exercise","ProgressFieldType","ProgressEntry","UUIDV4","type","UUID","primaryKey","allowNull","DATE","INTEGER","defaultValue","JSONB","timestamps"],"mappings":";;;;;;AAAA,SAAQA,KAAK,EAAEC,MAAM,EAAEC,KAAK,EAAEC,UAAU,EAAEC,KAAK,EAAEC,QAAQ,EAAEC,OAAO,EAAEC,SAAS,QAAO,uBAAuB;AAC3G,SAAQC,QAAQ,QAAO,gBAAgB;AAEvC,OAAO,IAAA,AAAKC,2CAAAA;;;;;;WAAAA;MAMX;AAUD,OAAO,MAAMC,sBAAsBR;AAuCnC;;qBAtCsBS;;QAEdC,MAAMP,SAASQ,IAAI;QACnBC,YAAY;;;;;mBAKEN;;QAEdI,MAAMP,SAASQ,IAAI;QACnBE,WAAW;;;;;;QAMXH,MAAMP,SAASW,IAAI;QACnBD,WAAW;;;;;QAKXH,MAAMP,SAASY,OAAO;QACtBF,WAAW;QACXG,cAAc;;;;;QAKdN,MAAMP,SAASc,KAAK;QACpBJ,WAAW;QACXG,cAAc,EAAE;;;;kBAIHV;;;;QAtCZY,YAAY"}
1
+ {"version":3,"sources":["../../../../src/lib/dbmodels/program/ProgressEntry.ts"],"sourcesContent":["import {Table, Column, Model, ForeignKey, Index, DataType, Default, BelongsTo} from 'sequelize-typescript';\nimport {Exercise} from \"./Exercise.js\";\n\nexport enum ProgressFieldType {\n NUMBER = 'number',\n TEXT = 'text',\n SELECT = 'select',\n TIME = 'time',\n BOOLEAN = 'boolean'\n}\n\nexport interface ProgressFieldValue {\n fieldName: string;\n fieldType: ProgressFieldType;\n value: string | number | boolean;\n options?: string[];\n}\n\n@Table({ timestamps: true })\nexport class ProgressEntry extends Model<ProgressEntry> {\n @Default(DataType.UUIDV4)\n @Column({\n type: DataType.UUID,\n primaryKey: true,\n })\n declare uuid: string;\n\n @Index\n @ForeignKey(() => Exercise)\n @Column({\n type: DataType.UUID,\n allowNull: false,\n })\n declare exerciseUuid: string;\n\n @Index\n @Column({\n type: DataType.DATE,\n allowNull: false,\n })\n declare recordedAt: Date;\n\n @Column({\n type: DataType.INTEGER,\n allowNull: false,\n defaultValue: 1,\n })\n declare setNumber: number;\n\n @Column({\n type: DataType.JSONB,\n allowNull: false,\n defaultValue: [],\n })\n declare fields: ProgressFieldValue[];\n\n @Column({\n type: DataType.STRING,\n allowNull: true,\n })\n declare metricSystem?: 'Metric' | 'Imperial' | null;\n\n @BelongsTo(() => Exercise)\n declare exercise: Exercise;\n}\n"],"names":["Table","Column","Model","ForeignKey","Index","DataType","Default","BelongsTo","Exercise","ProgressFieldType","ProgressEntry","UUIDV4","type","UUID","primaryKey","allowNull","DATE","INTEGER","defaultValue","JSONB","STRING","timestamps"],"mappings":";;;;;;AAAA,SAAQA,KAAK,EAAEC,MAAM,EAAEC,KAAK,EAAEC,UAAU,EAAEC,KAAK,EAAEC,QAAQ,EAAEC,OAAO,EAAEC,SAAS,QAAO,uBAAuB;AAC3G,SAAQC,QAAQ,QAAO,gBAAgB;AAEvC,OAAO,IAAA,AAAKC,2CAAAA;;;;;;WAAAA;MAMX;AAUD,OAAO,MAAMC,sBAAsBR;AA6CnC;;qBA5CsBS;;QAEdC,MAAMP,SAASQ,IAAI;QACnBC,YAAY;;;;;mBAKEN;;QAEdI,MAAMP,SAASQ,IAAI;QACnBE,WAAW;;;;;;QAMXH,MAAMP,SAASW,IAAI;QACnBD,WAAW;;;;;QAKXH,MAAMP,SAASY,OAAO;QACtBF,WAAW;QACXG,cAAc;;;;;QAKdN,MAAMP,SAASc,KAAK;QACpBJ,WAAW;QACXG,cAAc,EAAE;;;;;QAKhBN,MAAMP,SAASe,MAAM;QACrBL,WAAW;;;;kBAIEP;;;;QA5CZa,YAAY"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "90dc-core",
3
- "version": "1.14.0",
3
+ "version": "1.14.1",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",