90dc-core 1.12.26 → 1.13.0

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.
@@ -2,7 +2,6 @@ import { Model } from "sequelize-typescript";
2
2
  import type { Optional } from "sequelize";
3
3
  interface CoachSelectedMacros {
4
4
  dailyCalories: number;
5
- mealsPerDay: number;
6
5
  mealOrder: string[];
7
6
  dailyMacros: {
8
7
  proteinPercent: number;
@@ -27,6 +26,7 @@ interface UserDietPreferencesAttributes {
27
26
  dislikedFoods: string[];
28
27
  preferredCuisines: string[];
29
28
  healthConditions: string[];
29
+ maxRecipesPerMeal?: number;
30
30
  coachSelectedMacros?: CoachSelectedMacros | null;
31
31
  createdAt?: Date;
32
32
  updatedAt?: Date;
@@ -42,6 +42,7 @@ export declare class UserDietPreferences extends Model<UserDietPreferencesAttrib
42
42
  dislikedFoods: string[];
43
43
  preferredCuisines: string[];
44
44
  healthConditions: string[];
45
+ maxRecipesPerMeal: number;
45
46
  coachSelectedMacros: CoachSelectedMacros | null;
46
47
  }
47
48
  export type { CoachSelectedMacros };
@@ -1 +1 @@
1
- {"version":3,"file":"UserDietPreferences.d.ts","sourceRoot":"","sources":["../../../../src/lib/dbmodels/diet/UserDietPreferences.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,EAMN,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAG1C,UAAU,mBAAmB;IAC3B,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,WAAW,EAAE;QACX,cAAc,EAAE,MAAM,CAAC;QACvB,YAAY,EAAE,MAAM,CAAC;QACrB,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,gBAAgB,EAAE;QAChB,CAAC,QAAQ,EAAE,MAAM,GAAG;YAClB,eAAe,EAAE,MAAM,CAAC;YACx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M,EAAE,CAAC;IAI7B,mBAAmB,EAAE,MAAM,EAAE,CAAC;IAI9B,SAAS,EAAE,MAAM,EAAE,CAAC;IAIpB,aAAa,EAAE,MAAM,EAAE,CAAC;IAIxB,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAI5B,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAI3B,iBAAiB,EAAE,MAAM,CAAC;IAG1B,mBAAmB,EAAE,mBAAmB,GAAG,IAAI,CAAC;CACzD;AAED,YAAY,EAAE,mBAAmB,EAAE,CAAC"}
@@ -63,6 +63,13 @@ _ts_decorate([
63
63
  allowNull: false
64
64
  })
65
65
  ], UserDietPreferences.prototype, "healthConditions", void 0);
66
+ _ts_decorate([
67
+ Default(3),
68
+ Column({
69
+ type: DataType.INTEGER,
70
+ allowNull: false
71
+ })
72
+ ], UserDietPreferences.prototype, "maxRecipesPerMeal", void 0);
66
73
  _ts_decorate([
67
74
  Column({
68
75
  type: DataType.JSONB,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/lib/dbmodels/diet/UserDietPreferences.ts"],"sourcesContent":["import {\n Table,\n Model,\n Column,\n DataType,\n Default,\n PrimaryKey,\n ForeignKey,\n} from \"sequelize-typescript\";\nimport type { Optional } from \"sequelize\";\nimport { PersistedUser } from \"../user/PersistedUser.js\";\n\ninterface CoachSelectedMacros {\n dailyCalories: number;\n mealsPerDay: number;\n mealOrder: string[]; // Order of meals e.g. ['breakfast', 'snack', 'lunch', 'snack_2', 'dinner']\n dailyMacros: {\n proteinPercent: number;\n carbsPercent: number;\n fatsPercent: number;\n };\n mealDistribution: {\n [mealType: string]: {\n caloriesPercent: number;\n proteinPercent: number;\n carbsPercent: number;\n fatsPercent: number;\n };\n };\n}\n\ninterface UserDietPreferencesAttributes {\n uuid: string;\n userUuid: string;\n excludeIngredients: string[];\n dietaryRestrictions: string[];\n allergens: string[];\n dislikedFoods: string[];\n preferredCuisines: string[];\n healthConditions: string[];\n coachSelectedMacros?: CoachSelectedMacros | null;\n createdAt?: Date;\n updatedAt?: Date;\n}\n\ninterface UserDietPreferencesCreationAttributes\n extends Optional<UserDietPreferencesAttributes, \"uuid\" | \"createdAt\" | \"updatedAt\"> {}\n\n@Table({\n timestamps: true,\n})\nexport class UserDietPreferences extends Model<\n UserDietPreferencesAttributes,\n UserDietPreferencesCreationAttributes\n> {\n @PrimaryKey\n @Default(DataType.UUIDV4)\n @Column(DataType.UUID)\n declare uuid: string;\n\n @ForeignKey(() => PersistedUser)\n @Column({ type: DataType.UUID, allowNull: false, unique: true })\n declare userUuid: string;\n\n @Default([])\n @Column({ type: DataType.ARRAY(DataType.STRING), allowNull: false })\n declare excludeIngredients: string[];\n\n @Default([])\n @Column({ type: DataType.ARRAY(DataType.STRING), allowNull: false })\n declare dietaryRestrictions: string[];\n\n @Default([])\n @Column({ type: DataType.ARRAY(DataType.STRING), allowNull: false })\n declare allergens: string[];\n\n @Default([])\n @Column({ type: DataType.ARRAY(DataType.STRING), allowNull: false })\n declare dislikedFoods: string[];\n\n @Default([])\n @Column({ type: DataType.ARRAY(DataType.STRING), allowNull: false })\n declare preferredCuisines: string[];\n\n @Default([])\n @Column({ type: DataType.ARRAY(DataType.STRING), allowNull: false })\n declare healthConditions: string[];\n\n @Column({ type: DataType.JSONB, allowNull: true })\n declare coachSelectedMacros: CoachSelectedMacros | null;\n}\n\nexport type { CoachSelectedMacros };\n"],"names":["Table","Model","Column","DataType","Default","PrimaryKey","ForeignKey","PersistedUser","UserDietPreferences","UUIDV4","UUID","type","allowNull","unique","ARRAY","STRING","JSONB","timestamps"],"mappings":";;;;;;AAAA,SACEA,KAAK,EACLC,KAAK,EACLC,MAAM,EACNC,QAAQ,EACRC,OAAO,EACPC,UAAU,EACVC,UAAU,QACL,uBAAuB;AAE9B,SAASC,aAAa,QAAQ,2BAA2B;AAyCzD,OAAO,MAAMC,4BAA4BP;AAuCzC;;;qBAlCoBQ;oBACDC;;;mBAGCH;;QACRI,MAAMR,SAASO,IAAI;QAAEE,WAAW;QAAOC,QAAQ;;;;;;QAI/CF,MAAMR,SAASW,KAAK,CAACX,SAASY,MAAM;QAAGH,WAAW;;;;;;QAIlDD,MAAMR,SAASW,KAAK,CAACX,SAASY,MAAM;QAAGH,WAAW;;;;;;QAIlDD,MAAMR,SAASW,KAAK,CAACX,SAASY,MAAM;QAAGH,WAAW;;;;;;QAIlDD,MAAMR,SAASW,KAAK,CAACX,SAASY,MAAM;QAAGH,WAAW;;;;;;QAIlDD,MAAMR,SAASW,KAAK,CAACX,SAASY,MAAM;QAAGH,WAAW;;;;;;QAIlDD,MAAMR,SAASW,KAAK,CAACX,SAASY,MAAM;QAAGH,WAAW;;;;;QAGlDD,MAAMR,SAASa,KAAK;QAAEJ,WAAW;;;;;QAvC3CK,YAAY"}
1
+ {"version":3,"sources":["../../../../src/lib/dbmodels/diet/UserDietPreferences.ts"],"sourcesContent":["import {\n Table,\n Model,\n Column,\n DataType,\n Default,\n PrimaryKey,\n ForeignKey,\n} from \"sequelize-typescript\";\nimport type { Optional } from \"sequelize\";\nimport { PersistedUser } from \"../user/PersistedUser.js\";\n\ninterface CoachSelectedMacros {\n dailyCalories: number;\n mealOrder: string[]; // Order of meals e.g. ['breakfast', 'snack', 'lunch', 'snack_2', 'dinner']\n dailyMacros: {\n proteinPercent: number;\n carbsPercent: number;\n fatsPercent: number;\n };\n mealDistribution: {\n [mealType: string]: {\n caloriesPercent: number;\n proteinPercent: number;\n carbsPercent: number;\n fatsPercent: number;\n };\n };\n}\n\ninterface UserDietPreferencesAttributes {\n uuid: string;\n userUuid: string;\n excludeIngredients: string[];\n dietaryRestrictions: string[];\n allergens: string[];\n dislikedFoods: string[];\n preferredCuisines: string[];\n healthConditions: string[];\n maxRecipesPerMeal?: number;\n coachSelectedMacros?: CoachSelectedMacros | null;\n createdAt?: Date;\n updatedAt?: Date;\n}\n\ninterface UserDietPreferencesCreationAttributes\n extends Optional<UserDietPreferencesAttributes, \"uuid\" | \"createdAt\" | \"updatedAt\"> {}\n\n@Table({\n timestamps: true,\n})\nexport class UserDietPreferences extends Model<\n UserDietPreferencesAttributes,\n UserDietPreferencesCreationAttributes\n> {\n @PrimaryKey\n @Default(DataType.UUIDV4)\n @Column(DataType.UUID)\n declare uuid: string;\n\n @ForeignKey(() => PersistedUser)\n @Column({ type: DataType.UUID, allowNull: false, unique: true })\n declare userUuid: string;\n\n @Default([])\n @Column({ type: DataType.ARRAY(DataType.STRING), allowNull: false })\n declare excludeIngredients: string[];\n\n @Default([])\n @Column({ type: DataType.ARRAY(DataType.STRING), allowNull: false })\n declare dietaryRestrictions: string[];\n\n @Default([])\n @Column({ type: DataType.ARRAY(DataType.STRING), allowNull: false })\n declare allergens: string[];\n\n @Default([])\n @Column({ type: DataType.ARRAY(DataType.STRING), allowNull: false })\n declare dislikedFoods: string[];\n\n @Default([])\n @Column({ type: DataType.ARRAY(DataType.STRING), allowNull: false })\n declare preferredCuisines: string[];\n\n @Default([])\n @Column({ type: DataType.ARRAY(DataType.STRING), allowNull: false })\n declare healthConditions: string[];\n\n @Default(3)\n @Column({ type: DataType.INTEGER, allowNull: false })\n declare maxRecipesPerMeal: number;\n\n @Column({ type: DataType.JSONB, allowNull: true })\n declare coachSelectedMacros: CoachSelectedMacros | null;\n}\n\nexport type { CoachSelectedMacros };\n"],"names":["Table","Model","Column","DataType","Default","PrimaryKey","ForeignKey","PersistedUser","UserDietPreferences","UUIDV4","UUID","type","allowNull","unique","ARRAY","STRING","INTEGER","JSONB","timestamps"],"mappings":";;;;;;AAAA,SACEA,KAAK,EACLC,KAAK,EACLC,MAAM,EACNC,QAAQ,EACRC,OAAO,EACPC,UAAU,EACVC,UAAU,QACL,uBAAuB;AAE9B,SAASC,aAAa,QAAQ,2BAA2B;AAyCzD,OAAO,MAAMC,4BAA4BP;AA2CzC;;;qBAtCoBQ;oBACDC;;;mBAGCH;;QACRI,MAAMR,SAASO,IAAI;QAAEE,WAAW;QAAOC,QAAQ;;;;;;QAI/CF,MAAMR,SAASW,KAAK,CAACX,SAASY,MAAM;QAAGH,WAAW;;;;;;QAIlDD,MAAMR,SAASW,KAAK,CAACX,SAASY,MAAM;QAAGH,WAAW;;;;;;QAIlDD,MAAMR,SAASW,KAAK,CAACX,SAASY,MAAM;QAAGH,WAAW;;;;;;QAIlDD,MAAMR,SAASW,KAAK,CAACX,SAASY,MAAM;QAAGH,WAAW;;;;;;QAIlDD,MAAMR,SAASW,KAAK,CAACX,SAASY,MAAM;QAAGH,WAAW;;;;;;QAIlDD,MAAMR,SAASW,KAAK,CAACX,SAASY,MAAM;QAAGH,WAAW;;;;;;QAIlDD,MAAMR,SAASa,OAAO;QAAEJ,WAAW;;;;;QAGnCD,MAAMR,SAASc,KAAK;QAAEL,WAAW;;;;;QA3C3CM,YAAY"}
@@ -36,6 +36,8 @@ export { CustomProgramBlueprint } from "./program/CustomProgramBlueprint.js";
36
36
  export { CustomWorkoutBlueprint } from "./program/CustomWorkoutBlueprint.js";
37
37
  export { CustomStrengthTest } from "./program/CustomStrengthTest.js";
38
38
  export { CustomStrengthTestExercise } from "./program/CustomStrengthTestExercises.js";
39
+ export { WorkoutCompletion } from "./program/WorkoutCompletion.js";
40
+ export type { ExerciseSnapshot } from "./program/WorkoutCompletion.js";
39
41
  export { NonConsumableProgram } from "./nonconsprogram/NonConsumableProgram.js";
40
42
  export { NonConsumableProgramWebContent } from "./nonconsprogram/NonConsumableProgramWebContent.js";
41
43
  export { UserPrograms } from "./nonconsprogram/UserNonConsumableProgram.js";
@@ -111,6 +113,7 @@ import { TranslatedExerciseModel } from "./program/TranslatedExerciseModel.js";
111
113
  import { CustomProgramBlueprint } from "./program/CustomProgramBlueprint.js";
112
114
  import { CustomWorkoutBlueprint } from "./program/CustomWorkoutBlueprint.js";
113
115
  import { CustomStrengthTestExercise } from "./program/CustomStrengthTestExercises.js";
116
+ import { WorkoutCompletion } from "./program/WorkoutCompletion.js";
114
117
  import { NonConsumableProgram } from "./nonconsprogram/NonConsumableProgram.js";
115
118
  import { NonConsumableProgramWebContent } from "./nonconsprogram/NonConsumableProgramWebContent.js";
116
119
  import { UserPrograms } from "./nonconsprogram/UserNonConsumableProgram.js";
@@ -154,11 +157,11 @@ import { TranslatedNotification } from "./notifications/TranslatedNotification.j
154
157
  import { SubscriptionRefund } from "./subscription/SubscriptionRefund.js";
155
158
  export declare const USER_MODELS: (typeof PersistedUser | typeof UserBadges | typeof UserStreak | typeof UsersFriends | typeof UserCoach | typeof UserDiscount | typeof UserOptions | typeof UserAddons | typeof DeviceTokens)[];
156
159
  export declare const SUBSCRIPTION_MODELS: (typeof SubscriptionLog | typeof Subscription | typeof SubscriptionRefund)[];
157
- export declare const PROGRAM_MODELS: (typeof TranslatedChallenge | typeof Challenge | typeof ProgressEntry | typeof Exercise | typeof UserChallenge | typeof TranslatedStrengthTestExercise | typeof StrengthTestExercise | typeof UserStrengthTests | typeof TranslatedExerciseModel | typeof ExercisesModels | typeof Workout | typeof Superset | typeof Program | typeof TranslatedStrengthTest | typeof StrengthTest | typeof ChallengeBlueprint | typeof CustomProgramBlueprint | typeof CustomStrengthTestExercise | typeof CustomWorkoutBlueprint | typeof RestDay | typeof WorkoutSession | typeof ThirtyDayChallenge | typeof ThirtyDayChallengeStrengthTest | typeof StrengthTestSession)[];
160
+ export declare const PROGRAM_MODELS: (typeof TranslatedChallenge | typeof Challenge | typeof ProgressEntry | typeof Exercise | typeof UserChallenge | typeof TranslatedStrengthTestExercise | typeof StrengthTestExercise | typeof UserStrengthTests | typeof TranslatedExerciseModel | typeof ExercisesModels | typeof Workout | typeof Superset | typeof Program | typeof TranslatedStrengthTest | typeof StrengthTest | typeof ChallengeBlueprint | typeof CustomProgramBlueprint | typeof CustomStrengthTestExercise | typeof CustomWorkoutBlueprint | typeof RestDay | typeof WorkoutSession | typeof ThirtyDayChallenge | typeof ThirtyDayChallengeStrengthTest | typeof StrengthTestSession | typeof WorkoutCompletion)[];
158
161
  export declare const NON_CONSUMABLE_PROGRAM_MODELS: (typeof TranslatedConsumableProgram | typeof NonConsumableProgram | typeof UserPrograms | typeof TranslatedNonConsumableProgramWebContent | typeof NonConsumableProgramWebContent)[];
159
162
  export declare const DIET_MODELS: (typeof RecipeTags | typeof Recipe | typeof RecipeTag | typeof TranslatedRecipeTag | typeof TranslatedRecipeTags | typeof TranslatedRecipe | typeof IngredientTags | typeof Ingredient | typeof IngredientTag | typeof RecipeIngredient | typeof DietMealRecipeIngredient | typeof DietMealRecipe | typeof DietMeal | typeof DietDay | typeof DietProgram | typeof ShoppingListItem | typeof ShoppingList | typeof DietMealCompletion | typeof UserDietPreferences)[];
160
163
  export declare const COACHING_MODELS: (typeof WeeklyCheckin | typeof WeightRecord | typeof Question | typeof Questionnaire | typeof Answer | typeof QuestionnaireResponse | typeof ClientTag | typeof ClientNote)[];
161
164
  export declare const GAMIFICATION_MODELS: (typeof TranslatedBadge | typeof Badge | typeof StreaksLog | typeof XpEvent | typeof XpTransaction | typeof UserRankHistory)[];
162
165
  export declare const NOTIFICATION_MODELS: (typeof TranslatedNotification | typeof NotificationModels)[];
163
- export declare const ALL_CORE_MODELS: (typeof TranslatedChallenge | typeof Challenge | typeof ProgressEntry | typeof Exercise | typeof UserChallenge | typeof TranslatedStrengthTestExercise | typeof StrengthTestExercise | typeof UserStrengthTests | typeof TranslatedExerciseModel | typeof ExercisesModels | typeof Workout | typeof Superset | typeof Program | typeof TranslatedConsumableProgram | typeof NonConsumableProgram | typeof SubscriptionLog | typeof Subscription | typeof PersistedUser | typeof UserPrograms | typeof TranslatedNonConsumableProgramWebContent | typeof NonConsumableProgramWebContent | typeof TranslatedStrengthTest | typeof StrengthTest | typeof TranslatedBadge | typeof Badge | typeof UserBadges | typeof UserStreak | typeof UsersFriends | typeof UserCoach | typeof UserDiscount | typeof UserOptions | typeof UserAddons | typeof DeviceTokens | typeof SubscriptionRefund | typeof ChallengeBlueprint | typeof CustomProgramBlueprint | typeof CustomStrengthTestExercise | typeof CustomWorkoutBlueprint | typeof RestDay | typeof WorkoutSession | typeof ThirtyDayChallenge | typeof ThirtyDayChallengeStrengthTest | typeof StrengthTestSession | typeof RecipeTags | typeof Recipe | typeof RecipeTag | typeof TranslatedRecipeTag | typeof TranslatedRecipeTags | typeof TranslatedRecipe | typeof IngredientTags | typeof Ingredient | typeof IngredientTag | typeof RecipeIngredient | typeof DietMealRecipeIngredient | typeof DietMealRecipe | typeof DietMeal | typeof DietDay | typeof DietProgram | typeof ShoppingListItem | typeof ShoppingList | typeof DietMealCompletion | typeof UserDietPreferences | typeof WeeklyCheckin | typeof WeightRecord | typeof Question | typeof Questionnaire | typeof Answer | typeof QuestionnaireResponse | typeof ClientTag | typeof ClientNote | typeof StreaksLog | typeof XpEvent | typeof XpTransaction | typeof UserRankHistory | typeof TranslatedNotification | typeof NotificationModels)[];
166
+ export declare const ALL_CORE_MODELS: (typeof TranslatedChallenge | typeof Challenge | typeof ProgressEntry | typeof Exercise | typeof UserChallenge | typeof TranslatedStrengthTestExercise | typeof StrengthTestExercise | typeof UserStrengthTests | typeof TranslatedExerciseModel | typeof ExercisesModels | typeof Workout | typeof Superset | typeof Program | typeof TranslatedConsumableProgram | typeof NonConsumableProgram | typeof SubscriptionLog | typeof Subscription | typeof PersistedUser | typeof UserPrograms | typeof TranslatedNonConsumableProgramWebContent | typeof NonConsumableProgramWebContent | typeof TranslatedStrengthTest | typeof StrengthTest | typeof TranslatedBadge | typeof Badge | typeof UserBadges | typeof UserStreak | typeof UsersFriends | typeof UserCoach | typeof UserDiscount | typeof UserOptions | typeof UserAddons | typeof DeviceTokens | typeof SubscriptionRefund | typeof ChallengeBlueprint | typeof CustomProgramBlueprint | typeof CustomStrengthTestExercise | typeof CustomWorkoutBlueprint | typeof RestDay | typeof WorkoutSession | typeof ThirtyDayChallenge | typeof ThirtyDayChallengeStrengthTest | typeof StrengthTestSession | typeof WorkoutCompletion | typeof RecipeTags | typeof Recipe | typeof RecipeTag | typeof TranslatedRecipeTag | typeof TranslatedRecipeTags | typeof TranslatedRecipe | typeof IngredientTags | typeof Ingredient | typeof IngredientTag | typeof RecipeIngredient | typeof DietMealRecipeIngredient | typeof DietMealRecipe | typeof DietMeal | typeof DietDay | typeof DietProgram | typeof ShoppingListItem | typeof ShoppingList | typeof DietMealCompletion | typeof UserDietPreferences | typeof WeeklyCheckin | typeof WeightRecord | typeof Question | typeof Questionnaire | typeof Answer | typeof QuestionnaireResponse | typeof ClientTag | typeof ClientNote | typeof StreaksLog | typeof XpEvent | typeof XpTransaction | typeof UserRankHistory | typeof TranslatedNotification | typeof NotificationModels)[];
164
167
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/dbmodels/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAGtD,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAG1E,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,QAA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BA2B1B,CAAC;AAEF,eAAO,MAAM,6BAA6B,sLAMzC,CAAC;AAEF,eAAO,MAAM,WAAW,ucAoBvB,CAAC;AAEF,eAAO,MAAM,eAAe,+KAS3B,CAAC;AAEF,eAAO,MAAM,mBAAmB,gIAO/B,CAAC;AAEF,eAAO,MAAM,mBAAmB,+DAA+C,CAAC;AAGhF,eAAO,MAAM,eAAe,i4DAS3B,CAAC"}
@@ -40,6 +40,7 @@ export { CustomProgramBlueprint } from "./program/CustomProgramBlueprint.js";
40
40
  export { CustomWorkoutBlueprint } from "./program/CustomWorkoutBlueprint.js";
41
41
  export { CustomStrengthTest } from "./program/CustomStrengthTest.js";
42
42
  export { CustomStrengthTestExercise } from "./program/CustomStrengthTestExercises.js";
43
+ export { WorkoutCompletion } from "./program/WorkoutCompletion.js";
43
44
  // Non-Consumable Program Models
44
45
  export { NonConsumableProgram } from "./nonconsprogram/NonConsumableProgram.js";
45
46
  export { NonConsumableProgramWebContent } from "./nonconsprogram/NonConsumableProgramWebContent.js";
@@ -122,6 +123,7 @@ import { CustomProgramBlueprint } from "./program/CustomProgramBlueprint.js";
122
123
  import { CustomWorkoutBlueprint } from "./program/CustomWorkoutBlueprint.js";
123
124
  import { CustomStrengthTest } from "./program/CustomStrengthTest.js";
124
125
  import { CustomStrengthTestExercise } from "./program/CustomStrengthTestExercises.js";
126
+ import { WorkoutCompletion } from "./program/WorkoutCompletion.js";
125
127
  import { NonConsumableProgram } from "./nonconsprogram/NonConsumableProgram.js";
126
128
  import { NonConsumableProgramWebContent } from "./nonconsprogram/NonConsumableProgramWebContent.js";
127
129
  import { UserPrograms } from "./nonconsprogram/UserNonConsumableProgram.js";
@@ -206,7 +208,8 @@ export const PROGRAM_MODELS = [
206
208
  CustomProgramBlueprint,
207
209
  CustomWorkoutBlueprint,
208
210
  CustomStrengthTest,
209
- CustomStrengthTestExercise
211
+ CustomStrengthTestExercise,
212
+ WorkoutCompletion
210
213
  ];
211
214
  export const NON_CONSUMABLE_PROGRAM_MODELS = [
212
215
  NonConsumableProgram,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/lib/dbmodels/index.ts"],"sourcesContent":["// User Models\nimport {SubscriptionEvent} from \"./subscription/SubscriptionEvent.js\";\n\nexport { PersistedUser } from \"./user/PersistedUser.js\";\nexport { UserBadges } from \"./user/UserBadges.js\";\nexport { UserStreak } from \"./user/UserStreaks.js\";\nexport { UsersFriends } from \"./user/UsersFriends.js\";\nexport { UserCoach } from \"./user/UserCoach.js\";\nexport { UserDiscount } from \"./user/UserDiscount.js\";\nexport { UserOptions } from \"./user/UserOptions.js\";\nexport { UserAddons } from \"./user/UserAddons.js\";\nexport { DeviceTokens } from \"./user/DeviceTokens.js\";\n\n// Subscription Models\nexport { Subscription } from \"./subscription/Subscription.js\";\nexport { SubscriptionLog } from \"./subscription/SubscriptionLog.js\";\nexport { SubscriptionEvent } from \"./subscription/SubscriptionEvent.js\";\nexport { SubscriptionRefund } from \"./subscription/SubscriptionRefund.js\";\n\n// Program Models\nexport { Program } from \"./program/Program.js\";\nexport { Workout } from \"./program/Workout.js\";\nexport { Exercise } from \"./program/Exercise.js\";\nexport { ExercisesModels } from \"./program/ExerciseModels.js\";\nexport { Superset } from \"./program/Superset.js\";\nexport { ProgressEntry } from \"./program/ProgressEntry.js\";\nexport { RestDay } from \"./program/RestDay.js\";\nexport { WorkoutSession } from \"./program/WorkoutSession.js\";\nexport { Challenge } from \"./program/Challenge.js\";\nexport { ChallengeBlueprint } from \"./program/ChallengeBlueprint.js\";\nexport { UserChallenge } from \"./program/UserChallenge.js\";\nexport { TranslatedChallenge } from \"./program/TranslatedChallenge.js\";\nexport { ThirtyDayChallenge } from \"./program/ThirtyDayChallenge.js\";\nexport { ThirtyDayChallengeStrengthTest } from \"./program/ThirtyDayChallengeStrengthTest.js\";\nexport { StrengthTest } from \"./program/StrengthTest.js\";\nexport { StrengthTestExercise } from \"./program/StrengthTestExercise.js\";\nexport { StrengthTestSession } from \"./program/StrengthTestSession.js\";\nexport { UserStrengthTests } from \"./program/UserStrengthTests.js\";\nexport { TranslatedStrengthTest } from \"./program/TranslatedStrengthTest.js\";\nexport { TranslatedStrengthTestExercise } from \"./program/TranslatedStrengthTestExercise.js\";\nexport { TranslatedExerciseModel } from \"./program/TranslatedExerciseModel.js\";\nexport { CustomProgramBlueprint } from \"./program/CustomProgramBlueprint.js\";\nexport { CustomWorkoutBlueprint } from \"./program/CustomWorkoutBlueprint.js\";\nexport { CustomStrengthTest } from \"./program/CustomStrengthTest.js\";\nexport { CustomStrengthTestExercise } from \"./program/CustomStrengthTestExercises.js\";\n\n// Non-Consumable Program Models\nexport { NonConsumableProgram } from \"./nonconsprogram/NonConsumableProgram.js\";\nexport { NonConsumableProgramWebContent } from \"./nonconsprogram/NonConsumableProgramWebContent.js\";\nexport { UserPrograms } from \"./nonconsprogram/UserNonConsumableProgram.js\";\nexport { TranslatedConsumableProgram } from \"./nonconsprogram/TranslatedConsumableProgram.js\";\nexport { TranslatedNonConsumableProgramWebContent } from \"./nonconsprogram/TranslatedNonConsumableProgramWebContent.js\";\n\n// Diet & Nutrition Models\nexport { DietProgram } from \"./diet/DietProgram.js\";\nexport { DietDay } from \"./diet/DietDay.js\";\nexport { DietMeal } from \"./diet/DietMeal.js\";\nexport { DietMealRecipe } from \"./diet/DietMealRecipe.js\";\nexport { DietMealRecipeIngredient } from \"./diet/DietMealRecipeIngredient.js\";\nexport { DietMealCompletion } from \"./diet/DietMealCompletion.js\";\nexport { Recipe } from \"./diet/Recipe.js\";\nexport { TranslatedRecipe } from \"./diet/TranslatedRecipe.js\";\nexport { RecipeTag } from \"./diet/RecipeTag.js\";\nexport { TranslatedRecipeTag } from \"./diet/TranslatedRecipeTag.js\";\nexport { RecipeTags } from \"./diet/RecipeTags.js\";\nexport { TranslatedRecipeTags } from \"./diet/TranslatedRecipeTags.js\";\nexport { ShoppingList } from \"./diet/ShoppingList.js\";\nexport { ShoppingListItem } from \"./diet/ShoppingListItem.js\";\nexport { UserDietPreferences } from \"./diet/UserDietPreferences.js\";\nexport { Ingredient } from \"./diet/Ingredient.js\";\nexport { IngredientTag } from \"./diet/IngredientTag.js\";\nexport { IngredientTags } from \"./diet/IngredientTags.js\";\nexport { RecipeIngredient } from \"./diet/RecipeIngredient.js\";\n\n// Coaching Models\nexport { WeeklyCheckin } from \"./coaching/WeeklyCheckIn.js\";\nexport { WeightRecord } from \"./coaching/WeightRecord.js\";\nexport { Questionnaire, QuestionnaireType } from \"./coaching/Questionnaire.js\";\nexport { Question, QuestionType } from \"./coaching/Question.js\";\nexport { Answer } from \"./coaching/Answer.js\";\nexport { QuestionnaireResponse } from \"./coaching/QuestionnaireResponse.js\";\nexport { ClientTag } from \"./coaching/ClientTag.js\";\nexport { ClientNote } from \"./coaching/ClientNote.js\";\n\n// Gamification Models\nexport { Badge } from \"./gamification/Badge.js\";\nexport { TranslatedBadge } from \"./gamification/TranslatedBadge.js\";\nexport { StreaksLog } from \"./gamification/StreaksLog.js\";\nexport { XpEvent } from \"./gamification/xpAndLeaderboards/XpEvent.js\";\nexport { XpTransaction } from \"./gamification/xpAndLeaderboards/XpTransaction.js\";\nexport { UserRankHistory } from \"./gamification/xpAndLeaderboards/UserRankHistory.js\";\n\n// Notification Models\nexport { NotificationModels } from \"./notifications/NotificationModels.js\";\nexport { TranslatedNotification } from \"./notifications/TranslatedNotification.js\";\n\n// Import for model arrays\nimport { PersistedUser } from \"./user/PersistedUser.js\";\nimport { UserBadges } from \"./user/UserBadges.js\";\nimport { UserStreak } from \"./user/UserStreaks.js\";\nimport { UsersFriends } from \"./user/UsersFriends.js\";\nimport { UserCoach } from \"./user/UserCoach.js\";\nimport { UserDiscount } from \"./user/UserDiscount.js\";\nimport { UserOptions } from \"./user/UserOptions.js\";\nimport { UserAddons } from \"./user/UserAddons.js\";\nimport { DeviceTokens } from \"./user/DeviceTokens.js\";\nimport { Subscription } from \"./subscription/Subscription.js\";\nimport { SubscriptionLog } from \"./subscription/SubscriptionLog.js\";\nimport { Program } from \"./program/Program.js\";\nimport { Workout } from \"./program/Workout.js\";\nimport { Exercise } from \"./program/Exercise.js\";\nimport { ExercisesModels } from \"./program/ExerciseModels.js\";\nimport { Superset } from \"./program/Superset.js\";\nimport { ProgressEntry } from \"./program/ProgressEntry.js\";\nimport { RestDay } from \"./program/RestDay.js\";\nimport { WorkoutSession } from \"./program/WorkoutSession.js\";\nimport { Challenge } from \"./program/Challenge.js\";\nimport { ChallengeBlueprint } from \"./program/ChallengeBlueprint.js\";\nimport { UserChallenge } from \"./program/UserChallenge.js\";\nimport { TranslatedChallenge } from \"./program/TranslatedChallenge.js\";\nimport { ThirtyDayChallenge } from \"./program/ThirtyDayChallenge.js\";\nimport { ThirtyDayChallengeStrengthTest } from \"./program/ThirtyDayChallengeStrengthTest.js\";\nimport { StrengthTest } from \"./program/StrengthTest.js\";\nimport { StrengthTestExercise } from \"./program/StrengthTestExercise.js\";\nimport { StrengthTestSession } from \"./program/StrengthTestSession.js\";\nimport { UserStrengthTests } from \"./program/UserStrengthTests.js\";\nimport { TranslatedStrengthTest } from \"./program/TranslatedStrengthTest.js\";\nimport { TranslatedStrengthTestExercise } from \"./program/TranslatedStrengthTestExercise.js\";\nimport { TranslatedExerciseModel } from \"./program/TranslatedExerciseModel.js\";\nimport { CustomProgramBlueprint } from \"./program/CustomProgramBlueprint.js\";\nimport { CustomWorkoutBlueprint } from \"./program/CustomWorkoutBlueprint.js\";\nimport { CustomStrengthTest } from \"./program/CustomStrengthTest.js\";\nimport { CustomStrengthTestExercise } from \"./program/CustomStrengthTestExercises.js\";\nimport { NonConsumableProgram } from \"./nonconsprogram/NonConsumableProgram.js\";\nimport { NonConsumableProgramWebContent } from \"./nonconsprogram/NonConsumableProgramWebContent.js\";\nimport { UserPrograms } from \"./nonconsprogram/UserNonConsumableProgram.js\";\nimport { TranslatedConsumableProgram } from \"./nonconsprogram/TranslatedConsumableProgram.js\";\nimport { TranslatedNonConsumableProgramWebContent } from \"./nonconsprogram/TranslatedNonConsumableProgramWebContent.js\";\nimport { DietProgram } from \"./diet/DietProgram.js\";\nimport { DietDay } from \"./diet/DietDay.js\";\nimport { DietMeal } from \"./diet/DietMeal.js\";\nimport { DietMealRecipe } from \"./diet/DietMealRecipe.js\";\nimport { DietMealRecipeIngredient } from \"./diet/DietMealRecipeIngredient.js\";\nimport { DietMealCompletion } from \"./diet/DietMealCompletion.js\";\nimport { Recipe } from \"./diet/Recipe.js\";\nimport { TranslatedRecipe } from \"./diet/TranslatedRecipe.js\";\nimport { RecipeTag } from \"./diet/RecipeTag.js\";\nimport { TranslatedRecipeTag } from \"./diet/TranslatedRecipeTag.js\";\nimport { RecipeTags } from \"./diet/RecipeTags.js\";\nimport { TranslatedRecipeTags } from \"./diet/TranslatedRecipeTags.js\";\nimport { ShoppingList } from \"./diet/ShoppingList.js\";\nimport { ShoppingListItem } from \"./diet/ShoppingListItem.js\";\nimport { UserDietPreferences } from \"./diet/UserDietPreferences.js\";\nimport { Ingredient } from \"./diet/Ingredient.js\";\nimport { IngredientTag } from \"./diet/IngredientTag.js\";\nimport { IngredientTags } from \"./diet/IngredientTags.js\";\nimport { RecipeIngredient } from \"./diet/RecipeIngredient.js\";\nimport { WeeklyCheckin } from \"./coaching/WeeklyCheckIn.js\";\nimport { WeightRecord } from \"./coaching/WeightRecord.js\";\nimport { Questionnaire } from \"./coaching/Questionnaire.js\";\nimport { Question } from \"./coaching/Question.js\";\nimport { Answer } from \"./coaching/Answer.js\";\nimport { QuestionnaireResponse } from \"./coaching/QuestionnaireResponse.js\";\nimport { ClientTag } from \"./coaching/ClientTag.js\";\nimport { ClientNote } from \"./coaching/ClientNote.js\";\nimport { Badge } from \"./gamification/Badge.js\";\nimport { TranslatedBadge } from \"./gamification/TranslatedBadge.js\";\nimport { StreaksLog } from \"./gamification/StreaksLog.js\";\nimport { XpEvent } from \"./gamification/xpAndLeaderboards/XpEvent.js\";\nimport { XpTransaction } from \"./gamification/xpAndLeaderboards/XpTransaction.js\";\nimport { UserRankHistory } from \"./gamification/xpAndLeaderboards/UserRankHistory.js\";\nimport { NotificationModels } from \"./notifications/NotificationModels.js\";\nimport { TranslatedNotification } from \"./notifications/TranslatedNotification.js\";\nimport {SubscriptionRefund} from \"./subscription/SubscriptionRefund.js\";\n\n\n// Model Arrays - grouped by domain\nexport const USER_MODELS = [\n PersistedUser,\n UserBadges,\n UserStreak,\n UsersFriends,\n UserCoach,\n UserDiscount,\n UserOptions,\n UserAddons,\n DeviceTokens,\n];\n\nexport const SUBSCRIPTION_MODELS = [Subscription, SubscriptionLog ,SubscriptionEvent, SubscriptionRefund];\n\nexport const PROGRAM_MODELS = [\n Program,\n Workout,\n Exercise,\n ExercisesModels,\n Superset,\n ProgressEntry,\n RestDay,\n WorkoutSession,\n Challenge,\n ChallengeBlueprint,\n UserChallenge,\n TranslatedChallenge,\n ThirtyDayChallenge,\n ThirtyDayChallengeStrengthTest,\n StrengthTest,\n StrengthTestExercise,\n StrengthTestSession,\n UserStrengthTests,\n TranslatedStrengthTest,\n TranslatedStrengthTestExercise,\n TranslatedExerciseModel,\n CustomProgramBlueprint,\n CustomWorkoutBlueprint,\n CustomStrengthTest,\n CustomStrengthTestExercise,\n];\n\nexport const NON_CONSUMABLE_PROGRAM_MODELS = [\n NonConsumableProgram,\n NonConsumableProgramWebContent,\n UserPrograms,\n TranslatedConsumableProgram,\n TranslatedNonConsumableProgramWebContent,\n];\n\nexport const DIET_MODELS = [\n DietProgram,\n DietDay,\n DietMeal,\n DietMealRecipe,\n DietMealRecipeIngredient,\n DietMealCompletion,\n Recipe,\n TranslatedRecipe,\n RecipeTag,\n TranslatedRecipeTag,\n RecipeTags,\n TranslatedRecipeTags,\n ShoppingList,\n ShoppingListItem,\n UserDietPreferences,\n Ingredient,\n IngredientTag,\n IngredientTags,\n RecipeIngredient,\n];\n\nexport const COACHING_MODELS = [\n WeeklyCheckin,\n WeightRecord,\n Questionnaire,\n Question,\n Answer,\n QuestionnaireResponse,\n ClientTag,\n ClientNote,\n];\n\nexport const GAMIFICATION_MODELS = [\n Badge,\n TranslatedBadge,\n StreaksLog,\n XpEvent,\n XpTransaction,\n UserRankHistory,\n];\n\nexport const NOTIFICATION_MODELS = [NotificationModels, TranslatedNotification];\n\n// All core models combined\nexport const ALL_CORE_MODELS = [\n ...USER_MODELS,\n ...SUBSCRIPTION_MODELS,\n ...PROGRAM_MODELS,\n ...NON_CONSUMABLE_PROGRAM_MODELS,\n ...DIET_MODELS,\n ...COACHING_MODELS,\n ...GAMIFICATION_MODELS,\n ...NOTIFICATION_MODELS,\n];\n"],"names":["SubscriptionEvent","PersistedUser","UserBadges","UserStreak","UsersFriends","UserCoach","UserDiscount","UserOptions","UserAddons","DeviceTokens","Subscription","SubscriptionLog","SubscriptionRefund","Program","Workout","Exercise","ExercisesModels","Superset","ProgressEntry","RestDay","WorkoutSession","Challenge","ChallengeBlueprint","UserChallenge","TranslatedChallenge","ThirtyDayChallenge","ThirtyDayChallengeStrengthTest","StrengthTest","StrengthTestExercise","StrengthTestSession","UserStrengthTests","TranslatedStrengthTest","TranslatedStrengthTestExercise","TranslatedExerciseModel","CustomProgramBlueprint","CustomWorkoutBlueprint","CustomStrengthTest","CustomStrengthTestExercise","NonConsumableProgram","NonConsumableProgramWebContent","UserPrograms","TranslatedConsumableProgram","TranslatedNonConsumableProgramWebContent","DietProgram","DietDay","DietMeal","DietMealRecipe","DietMealRecipeIngredient","DietMealCompletion","Recipe","TranslatedRecipe","RecipeTag","TranslatedRecipeTag","RecipeTags","TranslatedRecipeTags","ShoppingList","ShoppingListItem","UserDietPreferences","Ingredient","IngredientTag","IngredientTags","RecipeIngredient","WeeklyCheckin","WeightRecord","Questionnaire","QuestionnaireType","Question","QuestionType","Answer","QuestionnaireResponse","ClientTag","ClientNote","Badge","TranslatedBadge","StreaksLog","XpEvent","XpTransaction","UserRankHistory","NotificationModels","TranslatedNotification","USER_MODELS","SUBSCRIPTION_MODELS","PROGRAM_MODELS","NON_CONSUMABLE_PROGRAM_MODELS","DIET_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AC;IACAC;IACAC;CACH,CAAC;AAEF,OAAO,MAAM0C,cAAc;IACvBzC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAC;CACH,CAAC;AAEF,OAAO,MAAMwB,kBAAkB;IAC3BvB;IACAC;IACAC;IACAE;IACAE;IACAC;IACAC;IACAC;CACH,CAAC;AAEF,OAAO,MAAMe,sBAAsB;IAC/Bd;IACAC;IACAC;IACAC;IACAC;IACAC;CACH,CAAC;AAEF,OAAO,MAAMU,sBAAsB;IAACT;IAAoBC;CAAuB,CAAC;AAEhF,2BAA2B;AAC3B,OAAO,MAAMS,kBAAkB;OACxBR;OACAC;OACAC;OACAC;OACAC;OACAC;OACAC;OACAC;CACN,CAAC"}
1
+ {"version":3,"sources":["../../../src/lib/dbmodels/index.ts"],"sourcesContent":["// User Models\nimport {SubscriptionEvent} from \"./subscription/SubscriptionEvent.js\";\n\nexport { PersistedUser } from \"./user/PersistedUser.js\";\nexport { UserBadges } from \"./user/UserBadges.js\";\nexport { UserStreak } from \"./user/UserStreaks.js\";\nexport { UsersFriends } from \"./user/UsersFriends.js\";\nexport { UserCoach } from \"./user/UserCoach.js\";\nexport { UserDiscount } from \"./user/UserDiscount.js\";\nexport { UserOptions } from \"./user/UserOptions.js\";\nexport { UserAddons } from \"./user/UserAddons.js\";\nexport { DeviceTokens } from \"./user/DeviceTokens.js\";\n\n// Subscription Models\nexport { Subscription } from \"./subscription/Subscription.js\";\nexport { SubscriptionLog } from \"./subscription/SubscriptionLog.js\";\nexport { SubscriptionEvent } from \"./subscription/SubscriptionEvent.js\";\nexport { SubscriptionRefund } from \"./subscription/SubscriptionRefund.js\";\n\n// Program Models\nexport { Program } from \"./program/Program.js\";\nexport { Workout } from \"./program/Workout.js\";\nexport { Exercise } from \"./program/Exercise.js\";\nexport { ExercisesModels } from \"./program/ExerciseModels.js\";\nexport { Superset } from \"./program/Superset.js\";\nexport { ProgressEntry } from \"./program/ProgressEntry.js\";\nexport { RestDay } from \"./program/RestDay.js\";\nexport { WorkoutSession } from \"./program/WorkoutSession.js\";\nexport { Challenge } from \"./program/Challenge.js\";\nexport { ChallengeBlueprint } from \"./program/ChallengeBlueprint.js\";\nexport { UserChallenge } from \"./program/UserChallenge.js\";\nexport { TranslatedChallenge } from \"./program/TranslatedChallenge.js\";\nexport { ThirtyDayChallenge } from \"./program/ThirtyDayChallenge.js\";\nexport { ThirtyDayChallengeStrengthTest } from \"./program/ThirtyDayChallengeStrengthTest.js\";\nexport { StrengthTest } from \"./program/StrengthTest.js\";\nexport { StrengthTestExercise } from \"./program/StrengthTestExercise.js\";\nexport { StrengthTestSession } from \"./program/StrengthTestSession.js\";\nexport { UserStrengthTests } from \"./program/UserStrengthTests.js\";\nexport { TranslatedStrengthTest } from \"./program/TranslatedStrengthTest.js\";\nexport { TranslatedStrengthTestExercise } from \"./program/TranslatedStrengthTestExercise.js\";\nexport { TranslatedExerciseModel } from \"./program/TranslatedExerciseModel.js\";\nexport { CustomProgramBlueprint } from \"./program/CustomProgramBlueprint.js\";\nexport { CustomWorkoutBlueprint } from \"./program/CustomWorkoutBlueprint.js\";\nexport { CustomStrengthTest } from \"./program/CustomStrengthTest.js\";\nexport { CustomStrengthTestExercise } from \"./program/CustomStrengthTestExercises.js\";\nexport { WorkoutCompletion } from \"./program/WorkoutCompletion.js\";\nexport type { ExerciseSnapshot } from \"./program/WorkoutCompletion.js\";\n\n// Non-Consumable Program Models\nexport { NonConsumableProgram } from \"./nonconsprogram/NonConsumableProgram.js\";\nexport { NonConsumableProgramWebContent } from \"./nonconsprogram/NonConsumableProgramWebContent.js\";\nexport { UserPrograms } from \"./nonconsprogram/UserNonConsumableProgram.js\";\nexport { TranslatedConsumableProgram } from \"./nonconsprogram/TranslatedConsumableProgram.js\";\nexport { TranslatedNonConsumableProgramWebContent } from \"./nonconsprogram/TranslatedNonConsumableProgramWebContent.js\";\n\n// Diet & Nutrition Models\nexport { DietProgram } from \"./diet/DietProgram.js\";\nexport { DietDay } from \"./diet/DietDay.js\";\nexport { DietMeal } from \"./diet/DietMeal.js\";\nexport { DietMealRecipe } from \"./diet/DietMealRecipe.js\";\nexport { DietMealRecipeIngredient } from \"./diet/DietMealRecipeIngredient.js\";\nexport { DietMealCompletion } from \"./diet/DietMealCompletion.js\";\nexport { Recipe } from \"./diet/Recipe.js\";\nexport { TranslatedRecipe } from \"./diet/TranslatedRecipe.js\";\nexport { RecipeTag } from \"./diet/RecipeTag.js\";\nexport { TranslatedRecipeTag } from \"./diet/TranslatedRecipeTag.js\";\nexport { RecipeTags } from \"./diet/RecipeTags.js\";\nexport { TranslatedRecipeTags } from \"./diet/TranslatedRecipeTags.js\";\nexport { ShoppingList } from \"./diet/ShoppingList.js\";\nexport { ShoppingListItem } from \"./diet/ShoppingListItem.js\";\nexport { UserDietPreferences } from \"./diet/UserDietPreferences.js\";\nexport { Ingredient } from \"./diet/Ingredient.js\";\nexport { IngredientTag } from \"./diet/IngredientTag.js\";\nexport { IngredientTags } from \"./diet/IngredientTags.js\";\nexport { RecipeIngredient } from \"./diet/RecipeIngredient.js\";\n\n// Coaching Models\nexport { WeeklyCheckin } from \"./coaching/WeeklyCheckIn.js\";\nexport { WeightRecord } from \"./coaching/WeightRecord.js\";\nexport { Questionnaire, QuestionnaireType } from \"./coaching/Questionnaire.js\";\nexport { Question, QuestionType } from \"./coaching/Question.js\";\nexport { Answer } from \"./coaching/Answer.js\";\nexport { QuestionnaireResponse } from \"./coaching/QuestionnaireResponse.js\";\nexport { ClientTag } from \"./coaching/ClientTag.js\";\nexport { ClientNote } from \"./coaching/ClientNote.js\";\n\n// Gamification Models\nexport { Badge } from \"./gamification/Badge.js\";\nexport { TranslatedBadge } from \"./gamification/TranslatedBadge.js\";\nexport { StreaksLog } from \"./gamification/StreaksLog.js\";\nexport { XpEvent } from \"./gamification/xpAndLeaderboards/XpEvent.js\";\nexport { XpTransaction } from \"./gamification/xpAndLeaderboards/XpTransaction.js\";\nexport { UserRankHistory } from \"./gamification/xpAndLeaderboards/UserRankHistory.js\";\n\n// Notification Models\nexport { NotificationModels } from \"./notifications/NotificationModels.js\";\nexport { TranslatedNotification } from \"./notifications/TranslatedNotification.js\";\n\n// Import for model arrays\nimport { PersistedUser } from \"./user/PersistedUser.js\";\nimport { UserBadges } from \"./user/UserBadges.js\";\nimport { UserStreak } from \"./user/UserStreaks.js\";\nimport { UsersFriends } from \"./user/UsersFriends.js\";\nimport { UserCoach } from \"./user/UserCoach.js\";\nimport { UserDiscount } from \"./user/UserDiscount.js\";\nimport { UserOptions } from \"./user/UserOptions.js\";\nimport { UserAddons } from \"./user/UserAddons.js\";\nimport { DeviceTokens } from \"./user/DeviceTokens.js\";\nimport { Subscription } from \"./subscription/Subscription.js\";\nimport { SubscriptionLog } from \"./subscription/SubscriptionLog.js\";\nimport { Program } from \"./program/Program.js\";\nimport { Workout } from \"./program/Workout.js\";\nimport { Exercise } from \"./program/Exercise.js\";\nimport { ExercisesModels } from \"./program/ExerciseModels.js\";\nimport { Superset } from \"./program/Superset.js\";\nimport { ProgressEntry } from \"./program/ProgressEntry.js\";\nimport { RestDay } from \"./program/RestDay.js\";\nimport { WorkoutSession } from \"./program/WorkoutSession.js\";\nimport { Challenge } from \"./program/Challenge.js\";\nimport { ChallengeBlueprint } from \"./program/ChallengeBlueprint.js\";\nimport { UserChallenge } from \"./program/UserChallenge.js\";\nimport { TranslatedChallenge } from \"./program/TranslatedChallenge.js\";\nimport { ThirtyDayChallenge } from \"./program/ThirtyDayChallenge.js\";\nimport { ThirtyDayChallengeStrengthTest } from \"./program/ThirtyDayChallengeStrengthTest.js\";\nimport { StrengthTest } from \"./program/StrengthTest.js\";\nimport { StrengthTestExercise } from \"./program/StrengthTestExercise.js\";\nimport { StrengthTestSession } from \"./program/StrengthTestSession.js\";\nimport { UserStrengthTests } from \"./program/UserStrengthTests.js\";\nimport { TranslatedStrengthTest } from \"./program/TranslatedStrengthTest.js\";\nimport { TranslatedStrengthTestExercise } from \"./program/TranslatedStrengthTestExercise.js\";\nimport { TranslatedExerciseModel } from \"./program/TranslatedExerciseModel.js\";\nimport { CustomProgramBlueprint } from \"./program/CustomProgramBlueprint.js\";\nimport { CustomWorkoutBlueprint } from \"./program/CustomWorkoutBlueprint.js\";\nimport { CustomStrengthTest } from \"./program/CustomStrengthTest.js\";\nimport { CustomStrengthTestExercise } from \"./program/CustomStrengthTestExercises.js\";\nimport { WorkoutCompletion } from \"./program/WorkoutCompletion.js\";\nimport { NonConsumableProgram } from \"./nonconsprogram/NonConsumableProgram.js\";\nimport { NonConsumableProgramWebContent } from \"./nonconsprogram/NonConsumableProgramWebContent.js\";\nimport { UserPrograms } from \"./nonconsprogram/UserNonConsumableProgram.js\";\nimport { TranslatedConsumableProgram } from \"./nonconsprogram/TranslatedConsumableProgram.js\";\nimport { TranslatedNonConsumableProgramWebContent } from \"./nonconsprogram/TranslatedNonConsumableProgramWebContent.js\";\nimport { DietProgram } from \"./diet/DietProgram.js\";\nimport { DietDay } from \"./diet/DietDay.js\";\nimport { DietMeal } from \"./diet/DietMeal.js\";\nimport { DietMealRecipe } from \"./diet/DietMealRecipe.js\";\nimport { DietMealRecipeIngredient } from \"./diet/DietMealRecipeIngredient.js\";\nimport { DietMealCompletion } from \"./diet/DietMealCompletion.js\";\nimport { Recipe } from \"./diet/Recipe.js\";\nimport { TranslatedRecipe } from \"./diet/TranslatedRecipe.js\";\nimport { RecipeTag } from \"./diet/RecipeTag.js\";\nimport { TranslatedRecipeTag } from \"./diet/TranslatedRecipeTag.js\";\nimport { RecipeTags } from \"./diet/RecipeTags.js\";\nimport { TranslatedRecipeTags } from \"./diet/TranslatedRecipeTags.js\";\nimport { ShoppingList } from \"./diet/ShoppingList.js\";\nimport { ShoppingListItem } from \"./diet/ShoppingListItem.js\";\nimport { UserDietPreferences } from \"./diet/UserDietPreferences.js\";\nimport { Ingredient } from \"./diet/Ingredient.js\";\nimport { IngredientTag } from \"./diet/IngredientTag.js\";\nimport { IngredientTags } from \"./diet/IngredientTags.js\";\nimport { RecipeIngredient } from \"./diet/RecipeIngredient.js\";\nimport { WeeklyCheckin } from \"./coaching/WeeklyCheckIn.js\";\nimport { WeightRecord } from \"./coaching/WeightRecord.js\";\nimport { Questionnaire } from \"./coaching/Questionnaire.js\";\nimport { Question } from \"./coaching/Question.js\";\nimport { Answer } from \"./coaching/Answer.js\";\nimport { QuestionnaireResponse } from \"./coaching/QuestionnaireResponse.js\";\nimport { ClientTag } from \"./coaching/ClientTag.js\";\nimport { ClientNote } from \"./coaching/ClientNote.js\";\nimport { Badge } from \"./gamification/Badge.js\";\nimport { TranslatedBadge } from \"./gamification/TranslatedBadge.js\";\nimport { StreaksLog } from \"./gamification/StreaksLog.js\";\nimport { XpEvent } from \"./gamification/xpAndLeaderboards/XpEvent.js\";\nimport { XpTransaction } from \"./gamification/xpAndLeaderboards/XpTransaction.js\";\nimport { UserRankHistory } from \"./gamification/xpAndLeaderboards/UserRankHistory.js\";\nimport { NotificationModels } from \"./notifications/NotificationModels.js\";\nimport { TranslatedNotification } from \"./notifications/TranslatedNotification.js\";\nimport {SubscriptionRefund} from \"./subscription/SubscriptionRefund.js\";\n\n\n// Model Arrays - grouped by domain\nexport const USER_MODELS = [\n PersistedUser,\n UserBadges,\n UserStreak,\n UsersFriends,\n UserCoach,\n UserDiscount,\n UserOptions,\n UserAddons,\n DeviceTokens,\n];\n\nexport const SUBSCRIPTION_MODELS = [Subscription, SubscriptionLog ,SubscriptionEvent, SubscriptionRefund];\n\nexport const PROGRAM_MODELS = [\n Program,\n Workout,\n Exercise,\n ExercisesModels,\n Superset,\n ProgressEntry,\n RestDay,\n WorkoutSession,\n Challenge,\n ChallengeBlueprint,\n UserChallenge,\n TranslatedChallenge,\n ThirtyDayChallenge,\n ThirtyDayChallengeStrengthTest,\n StrengthTest,\n StrengthTestExercise,\n StrengthTestSession,\n UserStrengthTests,\n TranslatedStrengthTest,\n TranslatedStrengthTestExercise,\n TranslatedExerciseModel,\n CustomProgramBlueprint,\n CustomWorkoutBlueprint,\n CustomStrengthTest,\n CustomStrengthTestExercise,\n WorkoutCompletion,\n];\n\nexport const NON_CONSUMABLE_PROGRAM_MODELS = [\n NonConsumableProgram,\n NonConsumableProgramWebContent,\n UserPrograms,\n TranslatedConsumableProgram,\n TranslatedNonConsumableProgramWebContent,\n];\n\nexport const DIET_MODELS = [\n DietProgram,\n DietDay,\n DietMeal,\n DietMealRecipe,\n DietMealRecipeIngredient,\n DietMealCompletion,\n Recipe,\n TranslatedRecipe,\n RecipeTag,\n TranslatedRecipeTag,\n RecipeTags,\n TranslatedRecipeTags,\n ShoppingList,\n ShoppingListItem,\n UserDietPreferences,\n Ingredient,\n IngredientTag,\n IngredientTags,\n RecipeIngredient,\n];\n\nexport const COACHING_MODELS = [\n WeeklyCheckin,\n WeightRecord,\n Questionnaire,\n Question,\n Answer,\n QuestionnaireResponse,\n ClientTag,\n ClientNote,\n];\n\nexport const GAMIFICATION_MODELS = [\n Badge,\n TranslatedBadge,\n StreaksLog,\n XpEvent,\n XpTransaction,\n UserRankHistory,\n];\n\nexport const NOTIFICATION_MODELS = [NotificationModels, TranslatedNotification];\n\n// All core models combined\nexport const ALL_CORE_MODELS = [\n ...USER_MODELS,\n ...SUBSCRIPTION_MODELS,\n ...PROGRAM_MODELS,\n ...NON_CONSUMABLE_PROGRAM_MODELS,\n ...DIET_MODELS,\n ...COACHING_MODELS,\n ...GAMIFICATION_MODELS,\n ...NOTIFICATION_MODELS,\n];\n"],"names":["SubscriptionEvent","PersistedUser","UserBadges","UserStreak","UsersFriends","UserCoach","UserDiscount","UserOptions","UserAddons","DeviceTokens","Subscription","SubscriptionLog","SubscriptionRefund","Program","Workout","Exercise","ExercisesModels","Superset","ProgressEntry","RestDay","WorkoutSession","Challenge","ChallengeBlueprint","UserChallenge","TranslatedChallenge","ThirtyDayChallenge","ThirtyDayChallengeStrengthTest","StrengthTest","StrengthTestExercise","StrengthTestSession","UserStrengthTests","TranslatedStrengthTest","TranslatedStrengthTestExercise","TranslatedExerciseModel","CustomProgramBlueprint","CustomWorkoutBlueprint","CustomStrengthTest","CustomStrengthTestExercise","WorkoutCompletion","NonConsumableProgram","NonConsumableProgramWebContent","UserPrograms","TranslatedConsumableProgram","TranslatedNonConsumableProgramWebContent","DietProgram","DietDay","DietMeal","DietMealRecipe","DietMealRecipeIngredient","DietMealCompletion","Recipe","TranslatedRecipe","RecipeTag","TranslatedRecipeTag","RecipeTags","TranslatedRecipeTags","ShoppingList","ShoppingListItem","UserDietPreferences","Ingredient","IngredientTag","IngredientTags","RecipeIngredient","WeeklyCheckin","WeightRecord","Questionnaire","QuestionnaireType","Question","QuestionType","Answer","QuestionnaireResponse","ClientTag","ClientNote","Badge","TranslatedBadge","StreaksLog","XpEvent","XpTransaction","UserRankHistory","NotificationModels","TranslatedNotification","USER_MODELS","SUBSCRIPTION_MODELS","PROGRAM_MODELS","NON_CONSUMABLE_PROGRAM_MODELS","DIET_MODELS","COACHING_MODELS","GAMIFICATION_MODELS","NOTIFICATION_MODELS","ALL_CORE_MODELS"],"mappings":"AAAA,cAAc;AACd,SAAQA,iBAAiB,QAAO,sCAAsC;AAEtE,SAASC,aAAa,QAAQ,0BAA0B;AACxD,SAASC,UAAU,QAAQ,uBAAuB;AAClD,SAASC,UAAU,QAAQ,wBAAwB;AACnD,SAASC,YAAY,QAAQ,yBAAyB;AACtD,SAASC,SAAS,QAAQ,sBAAsB;AAChD,SAASC,YAAY,QAAQ,yBAAyB;AACtD,SAASC,WAAW,QAAQ,wBAAwB;AACpD,SAASC,UAAU,QAAQ,uBAAuB;AAClD,SAASC,YAAY,QAAQ,yBAAyB;AAEtD,sBAAsB;AACtB,SAASC,YAAY,QAAQ,iCAAiC;AAC9D,SAASC,eAAe,QAAQ,oCAAoC;AACpE,SAASX,iBAAiB,QAAQ,sCAAsC;AACxE,SAASY,kBAAkB,QAAQ,uCAAuC;AAE1E,iBAAiB;AACjB,SAASC,O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+ import { Model } from "sequelize-typescript";
2
+ export interface ExerciseSnapshot {
3
+ name: string;
4
+ sets: string;
5
+ reps: string;
6
+ order: number;
7
+ restTime?: string;
8
+ supersetUuid?: string;
9
+ }
10
+ export declare class WorkoutCompletion extends Model {
11
+ uuid: string;
12
+ programId: string;
13
+ userUuid: string;
14
+ dayOrder: number;
15
+ cycleNumber: number;
16
+ absoluteDayNumber: number;
17
+ completedAt: Date;
18
+ dayType: string;
19
+ dayUuid: string;
20
+ exercisesSnapshot: ExerciseSnapshot[];
21
+ workoutTitle: string;
22
+ workoutDuration: string;
23
+ createdAt: Date;
24
+ updatedAt: Date;
25
+ }
26
+ //# sourceMappingURL=WorkoutCompletion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WorkoutCompletion.d.ts","sourceRoot":"","sources":["../../../../src/lib/dbmodels/program/WorkoutCompletion.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,EAGN,MAAM,sBAAsB,CAAC;AAG9B,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,qBACa,iBAAkB,SAAQ,KAAK;IAIlC,IAAI,EAAE,MAAM,CAAC;IAKb,SAAS,EAAE,MAAM,CAAC;IAIlB,QAAQ,EAAE,MAAM,CAAC;IAIjB,QAAQ,EAAE,MAAM,CAAC;IAIjB,WAAW,EAAE,MAAM,CAAC;IAKpB,iBAAiB,EAAE,MAAM,CAAC;IAG1B,WAAW,EAAE,IAAI,CAAC;IAIlB,OAAO,EAAE,MAAM,CAAC;IAIhB,OAAO,EAAE,MAAM,CAAC;IAIhB,iBAAiB,EAAE,gBAAgB,EAAE,CAAC;IAItC,YAAY,EAAE,MAAM,CAAC;IAGrB,eAAe,EAAE,MAAM,CAAC;IAGxB,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;CACzB"}
@@ -0,0 +1,65 @@
1
+ function _ts_decorate(decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ }
7
+ import { Column, DataType, Default, ForeignKey, Index, Model, PrimaryKey, Table } from "sequelize-typescript";
8
+ import { Program } from "./Program.js";
9
+ export class WorkoutCompletion extends Model {
10
+ }
11
+ _ts_decorate([
12
+ PrimaryKey,
13
+ Default(DataType.UUIDV4),
14
+ Column(DataType.UUID)
15
+ ], WorkoutCompletion.prototype, "uuid", void 0);
16
+ _ts_decorate([
17
+ ForeignKey(()=>Program),
18
+ Index,
19
+ Column(DataType.UUID)
20
+ ], WorkoutCompletion.prototype, "programId", void 0);
21
+ _ts_decorate([
22
+ Index,
23
+ Column(DataType.UUID)
24
+ ], WorkoutCompletion.prototype, "userUuid", void 0);
25
+ _ts_decorate([
26
+ Column(DataType.INTEGER)
27
+ ], WorkoutCompletion.prototype, "dayOrder", void 0);
28
+ _ts_decorate([
29
+ Column(DataType.INTEGER)
30
+ ], WorkoutCompletion.prototype, "cycleNumber", void 0);
31
+ _ts_decorate([
32
+ Index,
33
+ Column(DataType.INTEGER)
34
+ ], WorkoutCompletion.prototype, "absoluteDayNumber", void 0);
35
+ _ts_decorate([
36
+ Column(DataType.DATE)
37
+ ], WorkoutCompletion.prototype, "completedAt", void 0);
38
+ _ts_decorate([
39
+ Column(DataType.STRING)
40
+ ], WorkoutCompletion.prototype, "dayType", void 0);
41
+ _ts_decorate([
42
+ Column(DataType.UUID)
43
+ ], WorkoutCompletion.prototype, "dayUuid", void 0);
44
+ _ts_decorate([
45
+ Column(DataType.JSONB)
46
+ ], WorkoutCompletion.prototype, "exercisesSnapshot", void 0);
47
+ _ts_decorate([
48
+ Column(DataType.STRING)
49
+ ], WorkoutCompletion.prototype, "workoutTitle", void 0);
50
+ _ts_decorate([
51
+ Column(DataType.STRING)
52
+ ], WorkoutCompletion.prototype, "workoutDuration", void 0);
53
+ _ts_decorate([
54
+ Column(DataType.DATE)
55
+ ], WorkoutCompletion.prototype, "createdAt", void 0);
56
+ _ts_decorate([
57
+ Column(DataType.DATE)
58
+ ], WorkoutCompletion.prototype, "updatedAt", void 0);
59
+ WorkoutCompletion = _ts_decorate([
60
+ Table({
61
+ timestamps: true
62
+ })
63
+ ], WorkoutCompletion);
64
+
65
+ //# sourceMappingURL=WorkoutCompletion.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/lib/dbmodels/program/WorkoutCompletion.ts"],"sourcesContent":["import {\n Column,\n DataType,\n Default,\n ForeignKey,\n Index,\n Model,\n PrimaryKey,\n Table,\n} from \"sequelize-typescript\";\nimport { Program } from \"./Program.js\";\n\nexport interface ExerciseSnapshot {\n name: string;\n sets: string;\n reps: string;\n order: number;\n restTime?: string;\n supersetUuid?: string;\n}\n\n@Table({ timestamps: true })\nexport class WorkoutCompletion extends Model {\n @PrimaryKey\n @Default(DataType.UUIDV4)\n @Column(DataType.UUID)\n declare uuid: string;\n\n @ForeignKey(() => Program)\n @Index\n @Column(DataType.UUID)\n declare programId: string;\n\n @Index\n @Column(DataType.UUID)\n declare userUuid: string;\n\n // Which day in the cycle (1-7)\n @Column(DataType.INTEGER)\n declare dayOrder: number;\n\n // Which cycle/week (0 = first week, 1 = second week, etc.)\n @Column(DataType.INTEGER)\n declare cycleNumber: number;\n\n // Absolute day since program start (0 = day 1, 1 = day 2, etc.)\n @Index\n @Column(DataType.INTEGER)\n declare absoluteDayNumber: number;\n\n @Column(DataType.DATE)\n declare completedAt: Date;\n\n // Type of day: 'workout', 'rest_day', 'strength_test', 'challenge'\n @Column(DataType.STRING)\n declare dayType: string;\n\n // UUID of the workout/rest day/strength test/challenge\n @Column(DataType.UUID)\n declare dayUuid: string;\n\n // Snapshot of exercises as they were when completed\n @Column(DataType.JSONB)\n declare exercisesSnapshot: ExerciseSnapshot[];\n\n // Basic workout info\n @Column(DataType.STRING)\n declare workoutTitle: string;\n\n @Column(DataType.STRING)\n declare workoutDuration: string;\n\n @Column(DataType.DATE)\n declare createdAt: Date;\n\n @Column(DataType.DATE)\n declare updatedAt: Date;\n}\n"],"names":["Column","DataType","Default","ForeignKey","Index","Model","PrimaryKey","Table","Program","WorkoutCompletion","UUIDV4","UUID","INTEGER","DATE","STRING","JSONB","timestamps"],"mappings":";;;;;;AAAA,SACEA,MAAM,EACNC,QAAQ,EACRC,OAAO,EACPC,UAAU,EACVC,KAAK,EACLC,KAAK,EACLC,UAAU,EACVC,KAAK,QACA,uBAAuB;AAC9B,SAASC,OAAO,QAAQ,eAAe;AAYvC,OAAO,MAAMC,0BAA0BJ;AAuDvC;;;qBArDoBK;oBACDC;;;mBAGCH;;oBAEDG;;;;oBAIAA;;;oBAIAC;;;oBAIAA;;;;oBAKAA;;;oBAGAC;;;oBAIAC;;;oBAIAH;;;oBAIAI;;;oBAIAD;;;oBAGAA;;;oBAGAD;;;oBAGAA;;;;QAtDVG,YAAY"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "90dc-core",
3
- "version": "1.12.26",
3
+ "version": "1.13.0",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",