@dgpholdings/greatoak-shared 1.1.34 → 1.1.35

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.
@@ -28,7 +28,7 @@ export declare enum EBodyParts {
28
28
  "lower-back" = "Lower back"
29
29
  }
30
30
  export type TBodyPartKeys = Array<keyof typeof EBodyParts>;
31
- export type TTrainingType = "band" | "body-weight" | "weight" | "yoga" | "cardio" | "stretching";
31
+ export type TTrainingType = "band" | "body-weight" | "weight" | "yoga" | "cardio" | "stretching" | "plyometric" | "sports-specific" | "rehabilitation" | "balance" | "isometric";
32
32
  export type TExercise = {
33
33
  exerciseId: string;
34
34
  name: string;
@@ -46,6 +46,7 @@ export type TExercise = {
46
46
  flexibilityLevel: number;
47
47
  calorieBurnLevel: number;
48
48
  stabilityLevel: number;
49
+ enduranceLevel: number;
49
50
  youtubeVideoUrl: string[];
50
51
  modelVideoUrl: string;
51
52
  thumbnailUrl: string;
@@ -17,6 +17,11 @@ export type TRecord = {
17
17
  reps: string;
18
18
  auxWeightKg: string;
19
19
  rir?: string;
20
+ } | {
21
+ type: "distance";
22
+ distanceKm: string;
23
+ durationSecs: string;
24
+ avgPaceSecsPerKm?: string;
20
25
  });
21
26
  export type TRecordDuration = Extract<TRecord, {
22
27
  type: "duration";
@@ -27,6 +32,9 @@ export type TRecordWeight = Extract<TRecord, {
27
32
  export type TRecordBodyWeight = Extract<TRecord, {
28
33
  type: "reps-only";
29
34
  }>;
35
+ export type TRecordDistance = Extract<TRecord, {
36
+ type: "distance";
37
+ }>;
30
38
  export type TRecordConfig = {
31
39
  enableAuxWeight?: boolean;
32
40
  enableRir?: boolean;
@@ -1,4 +1,5 @@
1
- import { TRecord, TRecordWeight, TRecordDuration, TRecordBodyWeight } from "../TApiExerciseRecord";
1
+ import { TRecord, TRecordWeight, TRecordDuration, TRecordBodyWeight, TRecordDistance } from "../TApiExerciseRecord";
2
2
  export declare const isRecordWeightTypeGuard: (param: TRecord[]) => param is TRecordWeight[];
3
3
  export declare const isRecordDurationTypeGuard: (param: TRecord[]) => param is TRecordDuration[];
4
4
  export declare const isRecordBodyWeightTypeGuard: (param: TRecord[]) => param is TRecordBodyWeight[];
5
+ export declare const isRecordDistanceTypeGuard: (param: TRecord[]) => param is TRecordDistance[];
@@ -1,9 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isRecordBodyWeightTypeGuard = exports.isRecordDurationTypeGuard = exports.isRecordWeightTypeGuard = void 0;
3
+ exports.isRecordDistanceTypeGuard = exports.isRecordBodyWeightTypeGuard = exports.isRecordDurationTypeGuard = exports.isRecordWeightTypeGuard = void 0;
4
4
  const isRecordWeightTypeGuard = (param) => param[0].type === "weight-reps";
5
5
  exports.isRecordWeightTypeGuard = isRecordWeightTypeGuard;
6
6
  const isRecordDurationTypeGuard = (param) => param[0].type === "duration";
7
7
  exports.isRecordDurationTypeGuard = isRecordDurationTypeGuard;
8
8
  const isRecordBodyWeightTypeGuard = (param) => param[0].type === "reps-only";
9
9
  exports.isRecordBodyWeightTypeGuard = isRecordBodyWeightTypeGuard;
10
+ const isRecordDistanceTypeGuard = (param) => param[0].type === "distance";
11
+ exports.isRecordDistanceTypeGuard = isRecordDistanceTypeGuard;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dgpholdings/greatoak-shared",
3
- "version": "1.1.34",
3
+ "version": "1.1.35",
4
4
  "description": "Shared TypeScript types and utilities for @dgpholdings projects",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",