@dgpholdings/greatoak-shared 1.0.37 → 1.0.39
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.
- package/dist/types/TApiExercise.d.ts +1 -0
- package/dist/types/TApiExerciseRecord.d.ts +0 -3
- package/dist/types/TApiExerciseRecord.js +0 -7
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +15 -0
- package/dist/types/typeGuards/recordTypeGuards.d.ts +4 -0
- package/dist/types/typeGuards/recordTypeGuards.js +9 -0
- package/package.json +1 -1
|
@@ -26,9 +26,6 @@ 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;
|
|
32
29
|
export type TApiExerciseRecordUpdateReq = {
|
|
33
30
|
templateId: string;
|
|
34
31
|
records: {
|
|
@@ -1,9 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isRecordBodyWeightTypeGuard = exports.isRecordDurationTypeGuard = exports.isRecordWeightTypeGuard = void 0;
|
|
4
|
-
const isRecordWeightTypeGuard = (param) => param.type === "weight-reps";
|
|
5
|
-
exports.isRecordWeightTypeGuard = isRecordWeightTypeGuard;
|
|
6
|
-
const isRecordDurationTypeGuard = (param) => param.type === "duration";
|
|
7
|
-
exports.isRecordDurationTypeGuard = isRecordDurationTypeGuard;
|
|
8
|
-
const isRecordBodyWeightTypeGuard = (param) => param.type === "reps-only";
|
|
9
|
-
exports.isRecordBodyWeightTypeGuard = isRecordBodyWeightTypeGuard;
|
package/dist/types/index.d.ts
CHANGED
package/dist/types/index.js
CHANGED
|
@@ -1,2 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./typeGuards/recordTypeGuards"), exports);
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { TRecord, TRecordBodyWeight, TRecordDuration, TRecordWeight } from "../TApiExerciseRecord";
|
|
2
|
+
export declare const isRecordWeightTypeGuard: (param: TRecord[]) => param is TRecordWeight[];
|
|
3
|
+
export declare const isRecordDurationTypeGuard: (param: TRecord[]) => param is TRecordDuration[];
|
|
4
|
+
export declare const isRecordBodyWeightTypeGuard: (param: TRecord[]) => param is TRecordBodyWeight[];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isRecordBodyWeightTypeGuard = exports.isRecordDurationTypeGuard = exports.isRecordWeightTypeGuard = void 0;
|
|
4
|
+
const isRecordWeightTypeGuard = (param) => param[0].type === "weight-reps";
|
|
5
|
+
exports.isRecordWeightTypeGuard = isRecordWeightTypeGuard;
|
|
6
|
+
const isRecordDurationTypeGuard = (param) => param[0].type === "duration";
|
|
7
|
+
exports.isRecordDurationTypeGuard = isRecordDurationTypeGuard;
|
|
8
|
+
const isRecordBodyWeightTypeGuard = (param) => param[0].type === "reps-only";
|
|
9
|
+
exports.isRecordBodyWeightTypeGuard = isRecordBodyWeightTypeGuard;
|