@dgpholdings/greatoak-shared 1.0.37 → 1.0.38

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.
@@ -58,4 +58,5 @@ export type TApiGetOneExerciseReq = {
58
58
  export type TApiGetOneExerciseRes = TExercise & {
59
59
  isActive: boolean;
60
60
  records: TRecord[];
61
+ exerciseNote: string;
61
62
  };
@@ -26,9 +26,9 @@ export type TExerciseRecord = {
26
26
  templateId: string;
27
27
  exerciseNote: string;
28
28
  } & TRecord;
29
- export declare const isRecordWeightTypeGuard: (param: TRecord) => param is TRecordWeight;
30
- export declare const isRecordDurationTypeGuard: (param: TRecord) => param is TRecordDuration;
31
- export declare const isRecordBodyWeightTypeGuard: (param: TRecord) => param is TRecordDuration;
29
+ export declare const isRecordWeightTypeGuard: (param: TRecord[]) => param is TRecordWeight[];
30
+ export declare const isRecordDurationTypeGuard: (param: TRecord[]) => param is TRecordDuration[];
31
+ export declare const isRecordBodyWeightTypeGuard: (param: TRecord[]) => param is TRecordBodyWeight[];
32
32
  export type TApiExerciseRecordUpdateReq = {
33
33
  templateId: string;
34
34
  records: {
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.isRecordBodyWeightTypeGuard = exports.isRecordDurationTypeGuard = exports.isRecordWeightTypeGuard = void 0;
4
- const isRecordWeightTypeGuard = (param) => param.type === "weight-reps";
4
+ const isRecordWeightTypeGuard = (param) => param[0].type === "weight-reps";
5
5
  exports.isRecordWeightTypeGuard = isRecordWeightTypeGuard;
6
- const isRecordDurationTypeGuard = (param) => param.type === "duration";
6
+ const isRecordDurationTypeGuard = (param) => param[0].type === "duration";
7
7
  exports.isRecordDurationTypeGuard = isRecordDurationTypeGuard;
8
- const isRecordBodyWeightTypeGuard = (param) => param.type === "reps-only";
8
+ const isRecordBodyWeightTypeGuard = (param) => param[0].type === "reps-only";
9
9
  exports.isRecordBodyWeightTypeGuard = isRecordBodyWeightTypeGuard;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dgpholdings/greatoak-shared",
3
- "version": "1.0.37",
3
+ "version": "1.0.38",
4
4
  "description": "Shared TypeScript types and utilities for @dgpholdings projects",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",