@dgpholdings/greatoak-shared 1.2.88 → 1.2.90

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.
@@ -47,6 +47,6 @@ export interface TAiUserInjury {
47
47
  }
48
48
  export declare const AI_ENERGY_LEVEL_OPTIONS: readonly ["fresh", "normal", "tired", "exhausted"];
49
49
  export type TAiEnergyLevel = (typeof AI_ENERGY_LEVEL_OPTIONS)[number];
50
- export declare const AI_INTENT_CHIPS: readonly ["leg-day", "upper-body", "full-body", "push-day", "pull-day", "cardio-focused", "back-and-biceps", "chest-and-triceps", "legs-and-glutes", "core-and-abs", "mobility-and-flexibility", "Surprise me"];
51
- export type TAiIntentChip = (typeof AI_INTENT_CHIPS)[number];
50
+ export declare const HARDCODED_INTENTS: readonly ["push", "pull", "legs", "core", "upper", "lower", "arms", "back", "full-body", "cardio", "strength", "mobility", "fatburn", "unstructured"];
51
+ export type TWorkoutIntent = (typeof HARDCODED_INTENTS)[number];
52
52
  export {};
@@ -7,7 +7,7 @@
7
7
  // Verified against 701 active exercises from exercises-v2_3_PURE.json
8
8
  // Do not add values here without also ensuring they exist in the data.
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.AI_INTENT_CHIPS = exports.AI_ENERGY_LEVEL_OPTIONS = exports.AI_INJURY_DURATION_LABELS = exports.AI_INJURY_DURATION = exports.AI_INJURY_SEVERITY = exports.AI_POPULAR_THRESHOLD = exports.AI_BODY_ISSUE_TYPES = exports.AI_BODY_AREAS = exports.AI_MET_THRESHOLDS = exports.AI_SLEEP_TO_MAX_CNS = exports.AI_INTENSITY_LEVELS = exports.AI_DIFFICULTY_FILTER = exports.AI_FITNESS_LEVELS = exports.AI_SESSION_ORDER = exports.AI_WORKOUT_PLACEMENTS = exports.AI_CORE_PATTERNS = exports.AI_LEG_PATTERNS = exports.AI_PULL_PATTERNS = exports.AI_PUSH_PATTERNS = exports.AI_MOVEMENT_PATTERNS = exports.AI_QUICKSTART_EQUIPMENT_GROUPS = exports.AI_QUICKSTART_EQUIPMENT_GROUPS_LIST = exports.AI_HOME_EQUIPMENT = exports.AI_EQUIPMENT_TYPES = exports.AI_FITNESS_GOALS = void 0;
10
+ exports.HARDCODED_INTENTS = exports.AI_ENERGY_LEVEL_OPTIONS = exports.AI_INJURY_DURATION_LABELS = exports.AI_INJURY_DURATION = exports.AI_INJURY_SEVERITY = exports.AI_POPULAR_THRESHOLD = exports.AI_BODY_ISSUE_TYPES = exports.AI_BODY_AREAS = exports.AI_MET_THRESHOLDS = exports.AI_SLEEP_TO_MAX_CNS = exports.AI_INTENSITY_LEVELS = exports.AI_DIFFICULTY_FILTER = exports.AI_FITNESS_LEVELS = exports.AI_SESSION_ORDER = exports.AI_WORKOUT_PLACEMENTS = exports.AI_CORE_PATTERNS = exports.AI_LEG_PATTERNS = exports.AI_PULL_PATTERNS = exports.AI_PUSH_PATTERNS = exports.AI_MOVEMENT_PATTERNS = exports.AI_QUICKSTART_EQUIPMENT_GROUPS = exports.AI_QUICKSTART_EQUIPMENT_GROUPS_LIST = exports.AI_HOME_EQUIPMENT = exports.AI_EQUIPMENT_TYPES = exports.AI_FITNESS_GOALS = void 0;
11
11
  exports.AI_FITNESS_GOALS = [
12
12
  "strength",
13
13
  "hypertrophy",
@@ -212,17 +212,19 @@ exports.AI_ENERGY_LEVEL_OPTIONS = [
212
212
  "tired",
213
213
  "exhausted",
214
214
  ];
215
- exports.AI_INTENT_CHIPS = [
216
- "leg-day",
217
- "upper-body",
215
+ exports.HARDCODED_INTENTS = [
216
+ "push",
217
+ "pull",
218
+ "legs",
219
+ "core",
220
+ "upper",
221
+ "lower",
222
+ "arms",
223
+ "back",
218
224
  "full-body",
219
- "push-day",
220
- "pull-day",
221
- "cardio-focused",
222
- "back-and-biceps",
223
- "chest-and-triceps",
224
- "legs-and-glutes",
225
- "core-and-abs",
226
- "mobility-and-flexibility",
227
- "Surprise me",
225
+ "cardio",
226
+ "strength",
227
+ "mobility",
228
+ "fatburn",
229
+ "unstructured",
228
230
  ];
@@ -42,8 +42,8 @@ export type TUserMetric = TUserPreferences & {
42
42
  createdAt: Date;
43
43
  updatedAt?: Date;
44
44
  };
45
- export type TApiUserUpdateReq = Omit<TUserMetric, "userId" | "subscriptionStatus" | "subscriptionType" | "subscriptionTier" | "subscriptionExpiresAt" | "subscriptionStartedAt" | "subscriptionWillRenew" | "subscriptionStore" | "subscriptionLastUpdatedAt" | "createdAt" | "gdpr"> & {
46
- gdpr: Pick<TGdprData, "dataSharing">;
45
+ export type TApiUserUpdateReq = Partial<Omit<TUserMetric, "userId" | "subscriptionStatus" | "subscriptionType" | "subscriptionTier" | "subscriptionExpiresAt" | "subscriptionStartedAt" | "subscriptionWillRenew" | "subscriptionStore" | "subscriptionLastUpdatedAt" | "createdAt" | "gdpr">> & {
46
+ gdpr?: Pick<TGdprData, "dataSharing">;
47
47
  };
48
48
  export type TApiUserUpdateRes = {
49
49
  status: 400 | 500;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dgpholdings/greatoak-shared",
3
- "version": "1.2.88",
3
+ "version": "1.2.90",
4
4
  "description": "Shared TypeScript types and utilities for @dgpholdings projects",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",