@strong-together/shared 2.1.0 → 2.3.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.
package/dist/index.cjs CHANGED
@@ -69,14 +69,14 @@ __export(index_exports, {
69
69
  exerciseMapByMuscleRowQueryDtoSchema: () => exerciseMapByMuscleRowQueryDtoSchema,
70
70
  exerciseMetadataQueryDtoSchema: () => exerciseMetadataQueryDtoSchema,
71
71
  exerciseToWorkoutSplitDbSchema: () => exerciseToWorkoutSplitDbSchema,
72
- exerciseToWorkoutSplitExpandedViewDbSchema: () => exerciseToWorkoutSplitExpandedViewDbSchema,
72
+ exerciseToWorkoutSplitSetExpandedViewDbSchema: () => exerciseToWorkoutSplitSetExpandedViewDbSchema,
73
73
  exerciseTrackingAnalysisQueryDtoSchema: () => exerciseTrackingAnalysisQueryDtoSchema,
74
74
  exerciseTrackingAndStatsQueryDtoSchema: () => exerciseTrackingAndStatsQueryDtoSchema,
75
75
  exerciseTrackingAndStatsRowQueryDtoSchema: () => exerciseTrackingAndStatsRowQueryDtoSchema,
76
76
  exerciseTrackingDbSchema: () => exerciseTrackingDbSchema,
77
- exerciseTrackingExpandedViewDbSchema: () => exerciseTrackingExpandedViewDbSchema,
78
77
  exerciseTrackingIdQueryDtoSchema: () => exerciseTrackingIdQueryDtoSchema,
79
78
  exerciseTrackingPrMaxQueryDtoSchema: () => exerciseTrackingPrMaxQueryDtoSchema,
79
+ exerciseTrackingSetExpandedViewDbSchema: () => exerciseTrackingSetExpandedViewDbSchema,
80
80
  exercisesMapByMuscleQueryDtoSchema: () => exercisesMapByMuscleQueryDtoSchema,
81
81
  finishUserWorkoutContract: () => finishUserWorkoutContract,
82
82
  finishUserWorkoutResponseSchema: () => finishUserWorkoutResponseSchema,
@@ -1497,7 +1497,7 @@ var userRelations = (0, import_drizzle_orm27.relations)(user, ({ many, one }) =>
1497
1497
  var import_pg_core31 = require("drizzle-orm/pg-core");
1498
1498
  var import_drizzle_orm28 = require("drizzle-orm");
1499
1499
  var import_pg_core32 = require("drizzle-orm/pg-core");
1500
- var exerciseToWorkoutSplitExpandedView = workoutSchema.view("v_exercise_to_workout_split_expanded", {
1500
+ var exerciseToWorkoutSplitSetExpandedView = workoutSchema.view("v_exercise_to_workout_split_set_expanded", {
1501
1501
  id: (0, import_pg_core31.bigint)("id", {
1502
1502
  mode: "number"
1503
1503
  }),
@@ -1516,7 +1516,7 @@ var exerciseToWorkoutSplitExpandedView = workoutSchema.view("v_exercise_to_worko
1516
1516
  orderIndex: (0, import_pg_core31.bigint)("order_index", {
1517
1517
  mode: "number"
1518
1518
  }),
1519
- setOrderIndex: (0, import_pg_core32.integer)("set_order_index"),
1519
+ setIndex: (0, import_pg_core32.integer)("set_index"),
1520
1520
  createdAt: (0, import_pg_core31.timestamp)("created_at", {
1521
1521
  withTimezone: true
1522
1522
  }),
@@ -1532,7 +1532,7 @@ var exerciseToWorkoutSplitExpandedView = workoutSchema.view("v_exercise_to_worko
1532
1532
  ex.name AS exercise,
1533
1533
  ws.name AS workout_split,
1534
1534
  workout_set.reps AS reps,
1535
- workout_set.order_index AS set_order_index,
1535
+ workout_set.order_index AS set_index,
1536
1536
  ews.order_index,
1537
1537
  ews.created_at,
1538
1538
  ews.is_active
@@ -1559,7 +1559,7 @@ var exerciseToWorkoutSplitExpandedView = workoutSchema.view("v_exercise_to_worko
1559
1559
  var import_drizzle_orm29 = require("drizzle-orm");
1560
1560
  var import_pg_core33 = require("drizzle-orm/pg-core");
1561
1561
  var import_pg_core34 = require("drizzle-orm/pg-core");
1562
- var exerciseTrackingExpandedView = analyticsSchema.view("v_exercise_tracking_expanded", {
1562
+ var exerciseTrackingSetExpandedView = analyticsSchema.view("v_exercise_tracking_set_expanded", {
1563
1563
  id: (0, import_pg_core33.bigint)("id", {
1564
1564
  mode: "number"
1565
1565
  }),
@@ -1586,7 +1586,8 @@ var exerciseTrackingExpandedView = analyticsSchema.view("v_exercise_tracking_exp
1586
1586
  }),
1587
1587
  workoutEndUtc: (0, import_pg_core33.timestamp)("workout_end_utc", {
1588
1588
  withTimezone: true
1589
- })
1589
+ }),
1590
+ isAssignedToSplit: (0, import_pg_core33.boolean)("is_assigned_to_split")
1590
1591
  }).with({
1591
1592
  securityInvoker: true
1592
1593
  }).as(import_drizzle_orm29.sql`
@@ -1603,7 +1604,11 @@ var exerciseTrackingExpandedView = analyticsSchema.view("v_exercise_tracking_exp
1603
1604
  et.notes,
1604
1605
  et.workout_summary_id,
1605
1606
  wsumm.workout_start_utc,
1606
- wsumm.workout_end_utc
1607
+ wsumm.workout_end_utc,
1608
+ CASE
1609
+ WHEN et.exercise_to_split_id IS NOT NULL THEN TRUE
1610
+ WHEN et.exercise_id IS NOT NULL THEN FALSE
1611
+ END AS is_assigned_to_split
1607
1612
  FROM
1608
1613
  tracking.exercise_tracking et
1609
1614
  LEFT JOIN tracking.workout_summary wsumm ON wsumm.id = et.workout_summary_id
@@ -1652,7 +1657,7 @@ var prsView = analyticsSchema.view("v_prs", {
1652
1657
  et.workout_start_utc,
1653
1658
  et.workout_end_utc
1654
1659
  FROM
1655
- analytics.v_exercise_tracking_expanded et
1660
+ analytics.v_exercise_tracking_set_expanded et
1656
1661
  ORDER BY
1657
1662
  et.exercise_id,
1658
1663
  et.weight DESC,
@@ -1670,7 +1675,7 @@ var exerciseDbSchema = (0, import_drizzle_zod.createSelectSchema)(exercise);
1670
1675
  var workoutPlanDbSchema = (0, import_drizzle_zod.createSelectSchema)(workoutPlan);
1671
1676
  var workoutSplitDbSchema = (0, import_drizzle_zod.createSelectSchema)(workoutSplit);
1672
1677
  var exerciseToWorkoutSplitDbSchema = (0, import_drizzle_zod.createSelectSchema)(exerciseToWorkoutSplit);
1673
- var exerciseToWorkoutSplitExpandedViewDbSchema = (0, import_drizzle_zod.createSelectSchema)(exerciseToWorkoutSplitExpandedView);
1678
+ var exerciseToWorkoutSplitSetExpandedViewDbSchema = (0, import_drizzle_zod.createSelectSchema)(exerciseToWorkoutSplitSetExpandedView);
1674
1679
  var workoutSetDbSchema = (0, import_drizzle_zod.createSelectSchema)(workoutSet);
1675
1680
  var workoutSummaryDbSchema = (0, import_drizzle_zod.createSelectSchema)(workoutSummary);
1676
1681
  var exerciseTrackingDbSchema = (0, import_drizzle_zod.createSelectSchema)(exerciseTracking);
@@ -1679,7 +1684,7 @@ var aerobicTrackingDbSchema = (0, import_drizzle_zod.createSelectSchema)(aerobic
1679
1684
  var messageDbSchema = (0, import_drizzle_zod.createSelectSchema)(message);
1680
1685
  var userReminderSettingDbSchema = (0, import_drizzle_zod.createSelectSchema)(userReminderSetting);
1681
1686
  var userSplitInformationDbSchema = (0, import_drizzle_zod.createSelectSchema)(userSplitInformation);
1682
- var exerciseTrackingExpandedViewDbSchema = (0, import_drizzle_zod.createSelectSchema)(exerciseTrackingExpandedView);
1687
+ var exerciseTrackingSetExpandedViewDbSchema = (0, import_drizzle_zod.createSelectSchema)(exerciseTrackingSetExpandedView);
1683
1688
  var prsViewDbSchema = (0, import_drizzle_zod.createSelectSchema)(prsView);
1684
1689
 
1685
1690
  // src/modules/aerobics/aerobics.contracts.ts
@@ -2160,12 +2165,20 @@ var addWorkoutContract = {
2160
2165
 
2161
2166
  // src/modules/workout/tracking/tracking.dtos.ts
2162
2167
  var import_v418 = require("zod/v4");
2163
- var finishedWorkoutEntryQueryDtoSchema = import_v418.z.object({
2164
- exerciseToSplitId: exerciseToWorkoutSplitDbSchema.shape.id,
2165
- weight: import_v418.z.array(trackingSetDbSchema.shape.weight),
2166
- reps: import_v418.z.array(trackingSetDbSchema.shape.reps),
2168
+ var trackedSetQueryDtoSchema = import_v418.z.object({
2169
+ reps: trackingSetDbSchema.shape.reps,
2170
+ weight: trackingSetDbSchema.shape.weight,
2171
+ setIndex: trackingSetDbSchema.shape.setIndex
2172
+ });
2173
+ var finishedWorkoutEntryBaseQueryDtoSchema = import_v418.z.object({
2174
+ trackedSets: import_v418.z.array(trackedSetQueryDtoSchema),
2167
2175
  notes: exerciseTrackingDbSchema.shape.notes.optional()
2168
2176
  });
2177
+ var finishedWorkoutEntryQueryDtoSchema = finishedWorkoutEntryBaseQueryDtoSchema.extend({
2178
+ isExerciseAssignedToSplit: import_v418.z.boolean(),
2179
+ exerciseToSplitId: exerciseTrackingDbSchema.shape.exerciseToSplitId,
2180
+ exerciseId: exerciseTrackingDbSchema.shape.exerciseId
2181
+ });
2169
2182
  var exerciseMetadataQueryDtoSchema = import_v418.z.object({
2170
2183
  targetMuscle: exerciseDbSchema.shape.targetMuscle,
2171
2184
  specificTargetMuscle: exerciseDbSchema.shape.specificTargetMuscle
@@ -2634,14 +2647,14 @@ var finishUserWorkoutContract = {
2634
2647
  exerciseMapByMuscleRowQueryDtoSchema,
2635
2648
  exerciseMetadataQueryDtoSchema,
2636
2649
  exerciseToWorkoutSplitDbSchema,
2637
- exerciseToWorkoutSplitExpandedViewDbSchema,
2650
+ exerciseToWorkoutSplitSetExpandedViewDbSchema,
2638
2651
  exerciseTrackingAnalysisQueryDtoSchema,
2639
2652
  exerciseTrackingAndStatsQueryDtoSchema,
2640
2653
  exerciseTrackingAndStatsRowQueryDtoSchema,
2641
2654
  exerciseTrackingDbSchema,
2642
- exerciseTrackingExpandedViewDbSchema,
2643
2655
  exerciseTrackingIdQueryDtoSchema,
2644
2656
  exerciseTrackingPrMaxQueryDtoSchema,
2657
+ exerciseTrackingSetExpandedViewDbSchema,
2645
2658
  exercisesMapByMuscleQueryDtoSchema,
2646
2659
  finishUserWorkoutContract,
2647
2660
  finishUserWorkoutResponseSchema,
package/dist/index.d.cts CHANGED
@@ -2368,10 +2368,10 @@ declare const exerciseToWorkoutSplitDbSchema: drizzle_zod.BuildSchema<"select",
2368
2368
  generated: undefined;
2369
2369
  }, {}, {}>;
2370
2370
  }, undefined, undefined>;
2371
- declare const exerciseToWorkoutSplitExpandedViewDbSchema: drizzle_zod.BuildSchema<"select", {
2371
+ declare const exerciseToWorkoutSplitSetExpandedViewDbSchema: drizzle_zod.BuildSchema<"select", {
2372
2372
  id: drizzle_orm_pg_core.PgColumn<{
2373
2373
  name: "id";
2374
- tableName: "v_exercise_to_workout_split_expanded";
2374
+ tableName: "v_exercise_to_workout_split_set_expanded";
2375
2375
  dataType: "number";
2376
2376
  columnType: "PgBigInt53";
2377
2377
  data: number;
@@ -2388,7 +2388,7 @@ declare const exerciseToWorkoutSplitExpandedViewDbSchema: drizzle_zod.BuildSchem
2388
2388
  }, {}, {}>;
2389
2389
  workoutSplitId: drizzle_orm_pg_core.PgColumn<{
2390
2390
  name: "workout_split_id";
2391
- tableName: "v_exercise_to_workout_split_expanded";
2391
+ tableName: "v_exercise_to_workout_split_set_expanded";
2392
2392
  dataType: "number";
2393
2393
  columnType: "PgBigInt53";
2394
2394
  data: number;
@@ -2405,7 +2405,7 @@ declare const exerciseToWorkoutSplitExpandedViewDbSchema: drizzle_zod.BuildSchem
2405
2405
  }, {}, {}>;
2406
2406
  workoutId: drizzle_orm_pg_core.PgColumn<{
2407
2407
  name: "workout_id";
2408
- tableName: "v_exercise_to_workout_split_expanded";
2408
+ tableName: "v_exercise_to_workout_split_set_expanded";
2409
2409
  dataType: "number";
2410
2410
  columnType: "PgBigInt53";
2411
2411
  data: number;
@@ -2422,7 +2422,7 @@ declare const exerciseToWorkoutSplitExpandedViewDbSchema: drizzle_zod.BuildSchem
2422
2422
  }, {}, {}>;
2423
2423
  exerciseId: drizzle_orm_pg_core.PgColumn<{
2424
2424
  name: "exercise_id";
2425
- tableName: "v_exercise_to_workout_split_expanded";
2425
+ tableName: "v_exercise_to_workout_split_set_expanded";
2426
2426
  dataType: "number";
2427
2427
  columnType: "PgBigInt53";
2428
2428
  data: number;
@@ -2439,7 +2439,7 @@ declare const exerciseToWorkoutSplitExpandedViewDbSchema: drizzle_zod.BuildSchem
2439
2439
  }, {}, {}>;
2440
2440
  exercise: drizzle_orm_pg_core.PgColumn<{
2441
2441
  name: "exercise";
2442
- tableName: "v_exercise_to_workout_split_expanded";
2442
+ tableName: "v_exercise_to_workout_split_set_expanded";
2443
2443
  dataType: "string";
2444
2444
  columnType: "PgText";
2445
2445
  data: string;
@@ -2456,7 +2456,7 @@ declare const exerciseToWorkoutSplitExpandedViewDbSchema: drizzle_zod.BuildSchem
2456
2456
  }, {}, {}>;
2457
2457
  workoutSplit: drizzle_orm_pg_core.PgColumn<{
2458
2458
  name: "workout_split";
2459
- tableName: "v_exercise_to_workout_split_expanded";
2459
+ tableName: "v_exercise_to_workout_split_set_expanded";
2460
2460
  dataType: "string";
2461
2461
  columnType: "PgText";
2462
2462
  data: string;
@@ -2473,7 +2473,7 @@ declare const exerciseToWorkoutSplitExpandedViewDbSchema: drizzle_zod.BuildSchem
2473
2473
  }, {}, {}>;
2474
2474
  reps: drizzle_orm_pg_core.PgColumn<{
2475
2475
  name: "reps";
2476
- tableName: "v_exercise_to_workout_split_expanded";
2476
+ tableName: "v_exercise_to_workout_split_set_expanded";
2477
2477
  dataType: "number";
2478
2478
  columnType: "PgInteger";
2479
2479
  data: number;
@@ -2490,7 +2490,7 @@ declare const exerciseToWorkoutSplitExpandedViewDbSchema: drizzle_zod.BuildSchem
2490
2490
  }, {}, {}>;
2491
2491
  orderIndex: drizzle_orm_pg_core.PgColumn<{
2492
2492
  name: "order_index";
2493
- tableName: "v_exercise_to_workout_split_expanded";
2493
+ tableName: "v_exercise_to_workout_split_set_expanded";
2494
2494
  dataType: "number";
2495
2495
  columnType: "PgBigInt53";
2496
2496
  data: number;
@@ -2505,9 +2505,9 @@ declare const exerciseToWorkoutSplitExpandedViewDbSchema: drizzle_zod.BuildSchem
2505
2505
  identity: undefined;
2506
2506
  generated: undefined;
2507
2507
  }, {}, {}>;
2508
- setOrderIndex: drizzle_orm_pg_core.PgColumn<{
2509
- name: "set_order_index";
2510
- tableName: "v_exercise_to_workout_split_expanded";
2508
+ setIndex: drizzle_orm_pg_core.PgColumn<{
2509
+ name: "set_index";
2510
+ tableName: "v_exercise_to_workout_split_set_expanded";
2511
2511
  dataType: "number";
2512
2512
  columnType: "PgInteger";
2513
2513
  data: number;
@@ -2524,7 +2524,7 @@ declare const exerciseToWorkoutSplitExpandedViewDbSchema: drizzle_zod.BuildSchem
2524
2524
  }, {}, {}>;
2525
2525
  createdAt: drizzle_orm_pg_core.PgColumn<{
2526
2526
  name: "created_at";
2527
- tableName: "v_exercise_to_workout_split_expanded";
2527
+ tableName: "v_exercise_to_workout_split_set_expanded";
2528
2528
  dataType: "date";
2529
2529
  columnType: "PgTimestamp";
2530
2530
  data: Date;
@@ -2541,7 +2541,7 @@ declare const exerciseToWorkoutSplitExpandedViewDbSchema: drizzle_zod.BuildSchem
2541
2541
  }, {}, {}>;
2542
2542
  isActive: drizzle_orm_pg_core.PgColumn<{
2543
2543
  name: "is_active";
2544
- tableName: "v_exercise_to_workout_split_expanded";
2544
+ tableName: "v_exercise_to_workout_split_set_expanded";
2545
2545
  dataType: "boolean";
2546
2546
  columnType: "PgBoolean";
2547
2547
  data: boolean;
@@ -3321,10 +3321,10 @@ declare const userSplitInformationDbSchema: drizzle_zod.BuildSchema<"select", {
3321
3321
  generated: undefined;
3322
3322
  }, {}, {}>;
3323
3323
  }, undefined, undefined>;
3324
- declare const exerciseTrackingExpandedViewDbSchema: drizzle_zod.BuildSchema<"select", {
3324
+ declare const exerciseTrackingSetExpandedViewDbSchema: drizzle_zod.BuildSchema<"select", {
3325
3325
  id: drizzle_orm_pg_core.PgColumn<{
3326
3326
  name: "id";
3327
- tableName: "v_exercise_tracking_expanded";
3327
+ tableName: "v_exercise_tracking_set_expanded";
3328
3328
  dataType: "number";
3329
3329
  columnType: "PgBigInt53";
3330
3330
  data: number;
@@ -3341,7 +3341,7 @@ declare const exerciseTrackingExpandedViewDbSchema: drizzle_zod.BuildSchema<"sel
3341
3341
  }, {}, {}>;
3342
3342
  exerciseToSplitId: drizzle_orm_pg_core.PgColumn<{
3343
3343
  name: "exercise_to_split_id";
3344
- tableName: "v_exercise_tracking_expanded";
3344
+ tableName: "v_exercise_tracking_set_expanded";
3345
3345
  dataType: "number";
3346
3346
  columnType: "PgBigInt53";
3347
3347
  data: number;
@@ -3358,7 +3358,7 @@ declare const exerciseTrackingExpandedViewDbSchema: drizzle_zod.BuildSchema<"sel
3358
3358
  }, {}, {}>;
3359
3359
  weight: drizzle_orm_pg_core.PgColumn<{
3360
3360
  name: "weight";
3361
- tableName: "v_exercise_tracking_expanded";
3361
+ tableName: "v_exercise_tracking_set_expanded";
3362
3362
  dataType: "number";
3363
3363
  columnType: "PgReal";
3364
3364
  data: number;
@@ -3375,7 +3375,7 @@ declare const exerciseTrackingExpandedViewDbSchema: drizzle_zod.BuildSchema<"sel
3375
3375
  }, {}, {}>;
3376
3376
  reps: drizzle_orm_pg_core.PgColumn<{
3377
3377
  name: "reps";
3378
- tableName: "v_exercise_tracking_expanded";
3378
+ tableName: "v_exercise_tracking_set_expanded";
3379
3379
  dataType: "number";
3380
3380
  columnType: "PgBigInt53";
3381
3381
  data: number;
@@ -3392,7 +3392,7 @@ declare const exerciseTrackingExpandedViewDbSchema: drizzle_zod.BuildSchema<"sel
3392
3392
  }, {}, {}>;
3393
3393
  setIndex: drizzle_orm_pg_core.PgColumn<{
3394
3394
  name: "set_index";
3395
- tableName: "v_exercise_tracking_expanded";
3395
+ tableName: "v_exercise_tracking_set_expanded";
3396
3396
  dataType: "number";
3397
3397
  columnType: "PgInteger";
3398
3398
  data: number;
@@ -3409,7 +3409,7 @@ declare const exerciseTrackingExpandedViewDbSchema: drizzle_zod.BuildSchema<"sel
3409
3409
  }, {}, {}>;
3410
3410
  exerciseId: drizzle_orm_pg_core.PgColumn<{
3411
3411
  name: "exercise_id";
3412
- tableName: "v_exercise_tracking_expanded";
3412
+ tableName: "v_exercise_tracking_set_expanded";
3413
3413
  dataType: "number";
3414
3414
  columnType: "PgBigInt53";
3415
3415
  data: number;
@@ -3426,7 +3426,7 @@ declare const exerciseTrackingExpandedViewDbSchema: drizzle_zod.BuildSchema<"sel
3426
3426
  }, {}, {}>;
3427
3427
  workoutSplitId: drizzle_orm_pg_core.PgColumn<{
3428
3428
  name: "workout_split_id";
3429
- tableName: "v_exercise_tracking_expanded";
3429
+ tableName: "v_exercise_tracking_set_expanded";
3430
3430
  dataType: "number";
3431
3431
  columnType: "PgBigInt53";
3432
3432
  data: number;
@@ -3443,7 +3443,7 @@ declare const exerciseTrackingExpandedViewDbSchema: drizzle_zod.BuildSchema<"sel
3443
3443
  }, {}, {}>;
3444
3444
  splitName: drizzle_orm_pg_core.PgColumn<{
3445
3445
  name: "split_name";
3446
- tableName: "v_exercise_tracking_expanded";
3446
+ tableName: "v_exercise_tracking_set_expanded";
3447
3447
  dataType: "string";
3448
3448
  columnType: "PgText";
3449
3449
  data: string;
@@ -3460,7 +3460,7 @@ declare const exerciseTrackingExpandedViewDbSchema: drizzle_zod.BuildSchema<"sel
3460
3460
  }, {}, {}>;
3461
3461
  exercise: drizzle_orm_pg_core.PgColumn<{
3462
3462
  name: "exercise";
3463
- tableName: "v_exercise_tracking_expanded";
3463
+ tableName: "v_exercise_tracking_set_expanded";
3464
3464
  dataType: "string";
3465
3465
  columnType: "PgText";
3466
3466
  data: string;
@@ -3477,7 +3477,7 @@ declare const exerciseTrackingExpandedViewDbSchema: drizzle_zod.BuildSchema<"sel
3477
3477
  }, {}, {}>;
3478
3478
  notes: drizzle_orm_pg_core.PgColumn<{
3479
3479
  name: "notes";
3480
- tableName: "v_exercise_tracking_expanded";
3480
+ tableName: "v_exercise_tracking_set_expanded";
3481
3481
  dataType: "string";
3482
3482
  columnType: "PgText";
3483
3483
  data: string;
@@ -3494,7 +3494,7 @@ declare const exerciseTrackingExpandedViewDbSchema: drizzle_zod.BuildSchema<"sel
3494
3494
  }, {}, {}>;
3495
3495
  workoutSummaryId: drizzle_orm_pg_core.PgColumn<{
3496
3496
  name: "workout_summary_id";
3497
- tableName: "v_exercise_tracking_expanded";
3497
+ tableName: "v_exercise_tracking_set_expanded";
3498
3498
  dataType: "string";
3499
3499
  columnType: "PgUUID";
3500
3500
  data: string;
@@ -3511,7 +3511,7 @@ declare const exerciseTrackingExpandedViewDbSchema: drizzle_zod.BuildSchema<"sel
3511
3511
  }, {}, {}>;
3512
3512
  workoutStartUtc: drizzle_orm_pg_core.PgColumn<{
3513
3513
  name: "workout_start_utc";
3514
- tableName: "v_exercise_tracking_expanded";
3514
+ tableName: "v_exercise_tracking_set_expanded";
3515
3515
  dataType: "date";
3516
3516
  columnType: "PgTimestamp";
3517
3517
  data: Date;
@@ -3528,7 +3528,7 @@ declare const exerciseTrackingExpandedViewDbSchema: drizzle_zod.BuildSchema<"sel
3528
3528
  }, {}, {}>;
3529
3529
  workoutEndUtc: drizzle_orm_pg_core.PgColumn<{
3530
3530
  name: "workout_end_utc";
3531
- tableName: "v_exercise_tracking_expanded";
3531
+ tableName: "v_exercise_tracking_set_expanded";
3532
3532
  dataType: "date";
3533
3533
  columnType: "PgTimestamp";
3534
3534
  data: Date;
@@ -3543,6 +3543,23 @@ declare const exerciseTrackingExpandedViewDbSchema: drizzle_zod.BuildSchema<"sel
3543
3543
  identity: undefined;
3544
3544
  generated: undefined;
3545
3545
  }, {}, {}>;
3546
+ isAssignedToSplit: drizzle_orm_pg_core.PgColumn<{
3547
+ name: "is_assigned_to_split";
3548
+ tableName: "v_exercise_tracking_set_expanded";
3549
+ dataType: "boolean";
3550
+ columnType: "PgBoolean";
3551
+ data: boolean;
3552
+ driverParam: boolean;
3553
+ notNull: false;
3554
+ hasDefault: false;
3555
+ isPrimaryKey: false;
3556
+ isAutoincrement: false;
3557
+ hasRuntimeDefault: false;
3558
+ enumValues: undefined;
3559
+ baseColumn: never;
3560
+ identity: undefined;
3561
+ generated: undefined;
3562
+ }, {}, {}>;
3546
3563
  }, undefined, undefined>;
3547
3564
  declare const prsViewDbSchema: drizzle_zod.BuildSchema<"select", {
3548
3565
  id: drizzle_orm_pg_core.PgColumn<{
@@ -5793,10 +5810,15 @@ declare const getExerciseTrackingContract: {
5793
5810
  declare const finishWorkoutRequestSchema: z.ZodObject<{
5794
5811
  body: z.ZodObject<{
5795
5812
  workout: z.ZodArray<z.ZodObject<{
5796
- exerciseToSplitId: z.ZodInt;
5797
- weight: z.ZodArray<z.ZodNumber>;
5798
- reps: z.ZodArray<z.ZodInt>;
5813
+ trackedSets: z.ZodArray<z.ZodObject<{
5814
+ reps: z.ZodInt;
5815
+ weight: z.ZodNumber;
5816
+ setIndex: z.ZodInt;
5817
+ }, z.core.$strip>>;
5799
5818
  notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5819
+ isExerciseAssignedToSplit: z.ZodBoolean;
5820
+ exerciseToSplitId: z.ZodNullable<z.ZodInt>;
5821
+ exerciseId: z.ZodNullable<z.ZodInt>;
5800
5822
  }, z.core.$strip>>;
5801
5823
  tz: z.ZodOptional<z.ZodString>;
5802
5824
  workoutStartUtc: z.ZodString;
@@ -5884,10 +5906,15 @@ declare const finishUserWorkoutContract: {
5884
5906
  request: z.ZodObject<{
5885
5907
  body: z.ZodObject<{
5886
5908
  workout: z.ZodArray<z.ZodObject<{
5887
- exerciseToSplitId: z.ZodInt;
5888
- weight: z.ZodArray<z.ZodNumber>;
5889
- reps: z.ZodArray<z.ZodInt>;
5909
+ trackedSets: z.ZodArray<z.ZodObject<{
5910
+ reps: z.ZodInt;
5911
+ weight: z.ZodNumber;
5912
+ setIndex: z.ZodInt;
5913
+ }, z.core.$strip>>;
5890
5914
  notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5915
+ isExerciseAssignedToSplit: z.ZodBoolean;
5916
+ exerciseToSplitId: z.ZodNullable<z.ZodInt>;
5917
+ exerciseId: z.ZodNullable<z.ZodInt>;
5891
5918
  }, z.core.$strip>>;
5892
5919
  tz: z.ZodOptional<z.ZodString>;
5893
5920
  workoutStartUtc: z.ZodString;
@@ -5977,12 +6004,16 @@ type GetExerciseTrackingResponse = ResponseOf<typeof getExerciseTrackingContract
5977
6004
  type FinishUserWorkoutBody = BodyOf<typeof finishUserWorkoutContract>;
5978
6005
  type FinishUserWorkoutResponse = ResponseOf<typeof finishUserWorkoutContract>;
5979
6006
 
5980
- /** Finished exercise entry consumed by the workout-insertion query. */
5981
6007
  declare const finishedWorkoutEntryQueryDtoSchema: z.ZodObject<{
5982
- exerciseToSplitId: z.ZodInt;
5983
- weight: z.ZodArray<z.ZodNumber>;
5984
- reps: z.ZodArray<z.ZodInt>;
6008
+ trackedSets: z.ZodArray<z.ZodObject<{
6009
+ reps: z.ZodInt;
6010
+ weight: z.ZodNumber;
6011
+ setIndex: z.ZodInt;
6012
+ }, z.core.$strip>>;
5985
6013
  notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6014
+ isExerciseAssignedToSplit: z.ZodBoolean;
6015
+ exerciseToSplitId: z.ZodNullable<z.ZodInt>;
6016
+ exerciseId: z.ZodNullable<z.ZodInt>;
5986
6017
  }, z.core.$strip>;
5987
6018
  /** Target-muscle metadata nested in a tracking-map item. */
5988
6019
  declare const exerciseMetadataQueryDtoSchema: z.ZodObject<{
@@ -6256,4 +6287,4 @@ type WorkoutSummaryIdQueryDto = z.infer<typeof workoutSummaryIdQueryDtoSchema>;
6256
6287
  type ExerciseTrackingIdQueryDto = z.infer<typeof exerciseTrackingIdQueryDtoSchema>;
6257
6288
  type FinishedWorkoutEntryQueryDto = z.infer<typeof finishedWorkoutEntryQueryDtoSchema>;
6258
6289
 
6259
- export { type AccessTokenPayloadDto, type AddAerobicInputQueryDto, type AddUserAerobicsBody, type AddWorkoutBody, type AddWorkoutResponse, type AddWorkoutSplitPayloadQueryDto, type AdherenceExerciseStatsQueryDto, type AerobicTrackingRow, type AerobicsDailyRecordQueryDto, type AerobicsWeeklyRecordQueryDto, type AllUserMessageQueryDto, type AnalyzeVideoPayloadDto, type AnalyzeVideoResultPayloadDto, type AppleOAuthBody, type AppleTokenVerificationResultDto, type AuthenticatedUserForUpdateQueryDto, type BodyOf, type BootstrapRequestQuery, type BootstrapResponse, type ChangeEmailAndVerifyBody, type ChangeEmailTokenPayloadDto, type CheckUserVerifyQuery, type Contract, type CreateUserBody, type CreateUserResponse, type CreatedUserQueryDto, type CreatedUserRawQueryDto, type CreatedUserRowQueryDto, type DeleteMessageParams, type DeleteMessageResponse, type DeleteUserProfilePicBody, type DeletedMessageQueryDto, type EmailVerifyPayloadDto, type EnqueueAnalyzeVideoParamsDto, type ExerciseAssignmentIdQueryDto, type ExerciseInPlanQueryDto, type ExerciseMapByMuscleRowQueryDto, type ExerciseMetadataQueryDto, type ExerciseRow, type ExerciseToWorkoutSplitRow, type ExerciseTrackingAnalysisQueryDto, type ExerciseTrackingAndStatsQueryDto, type ExerciseTrackingAndStatsRowQueryDto, type ExerciseTrackingIdQueryDto, type ExerciseTrackingPrMaxQueryDto, type ExerciseTrackingRow, type ExercisesMapByMuscleQueryDto, type FinishUserWorkoutBody, type FinishUserWorkoutResponse, type FinishedWorkoutEntryQueryDto, type ForgotPasswordPayloadDto, type GenerateTicketBody, type GenerateTicketResponse, type GetAllExercisesExerciseQueryDto, type GetAllExercisesResponse, type GetAllUserMessagesQuery, type GetAllUserMessagesResponse, type GetAnalyticsResponse, type GetAuthenticatedUserByIdResponse, type GetExerciseTrackingQuery, type GetExerciseTrackingResponse, type GetPresignedUrlFromS3Body, type GetPresignedUrlFromS3Response, type GetUserAerobicsQuery, type GetWholeUserWorkoutPlanQuery, type GetWholeUserWorkoutPlanResponse, type GoalAdherenceQueryDto, type GoalAdherenceRowQueryDto, type GoogleOAuthBody, type GoogleTokenVerificationResultDto, type LastLoginQueryDto, type LoginRequestBody, type LoginResponse, type LogoutResponse, type MarkMessageAsReadParams, type MarkMessageAsReadResponse, type MessageAfterSendQueryDto, type MessageAsReadQueryDto, type MessageRow, type OAuthCreatedUserRowQueryDto, type OAuthLinkQueryDto, type OAuthLinkRowQueryDto, type OAuthLoginResponse, type OAuthLookupQueryDto, type OAuthLookupRawQueryDto, type OAuthLookupRowQueryDto, type ParamsOf, type QueryOf, type RefreshTokenResponse, type RequestOf, type RequestSchema, type ResetPasswordBody, type ResetPasswordQuery, type ResetPasswordResponse, type ResponseOf, type SaveUserPushTokenBody, type SendChangePassEmailBody, type SendVerificationMailBody, type SetProfilePicAndUpdateDBResponse, type SquatRepetitionDto, type TokenVersionQueryDto, type TrackingByDateItemQueryDto, type TrackingBySplitNameItemQueryDto, type TrackingMapItemQueryDto, type UpdateAuthenticatedUserResponse, type UpdateUserBody, type UserAerobicsQueryDto, type UserAerobicsResponse, type UserAerobicsRowQueryDto, type UserAfterBumpQueryDto, type UserByIdentifierQueryDto, type UserByIdentifierRawQueryDto, type UserByIdentifierRowQueryDto, type UserByUsernameRawQueryDto, type UserByUsernameRowQueryDto, type UserConflictQueryDto, type UserDataQueryDto, type UserDataResponse, type UserDataRowQueryDto, type UserExistsQueryDto, type UserInsert, type UserMessageIdentityQueryDto, type UserProfilePicQueryDto, type UserRow, type UserToHourlyReminderQueryDto, type UserWithNotificationsEnabledQueryDto, type VerifyUserAccountQuery, type WeeklyDataQueryDto, type WholeUserWorkoutPlanQueryDto, type WorkoutExerciseInputQueryDto, type WorkoutExerciseMetadataQueryDto, type WorkoutPlanIdQueryDto, type WorkoutPlanRow, type WorkoutRmRecordQueryDto, type WorkoutRmsQueryDto, type WorkoutRmsRowQueryDto, type WorkoutSplitIdQueryDto, type WorkoutSplitLookupQueryDto, type WorkoutSplitQueryDto, type WorkoutSplitRow, type WorkoutSplitsMapItemQueryDto, type WorkoutSplitsMapQueryDto, type WorkoutSplitsRowQueryDto, type WorkoutSummaryIdQueryDto, type WorkoutSummaryRow, accessTokenPayloadDtoSchema, addAerobicInputQueryDtoSchema, addAerobicsRequestSchema, addUserAerobicsContract, addWorkoutContract, addWorkoutRequestSchema, addWorkoutResponseSchema, addWorkoutSplitPayloadQueryDtoSchema, adherenceExerciseStatsQueryDtoSchema, aerobicTrackingDbSchema, aerobicsDailyRecordQueryDtoSchema, aerobicsWeeklyRecordQueryDtoSchema, allUserMessageQueryDtoSchema, analyzeVideoPayloadDtoSchema, analyzeVideoResultPayloadDtoSchema, appleOAuthContract, appleOAuthRequestSchema, appleTokenVerificationResultDtoSchema, authenticatedUserForUpdateQueryDtoSchema, bootstrapContract, bootstrapRequestSchema, bootstrapResponseSchema, changeEmailAndVerifyContract, changeEmailAndVerifyRequestSchema, changeEmailTokenPayloadDtoSchema, checkUserVerifyContract, checkUserVerifyRequestSchema, createUserContract, createUserRequestSchema, createUserResponseSchema, createUserUserSchema, createdUserQueryDtoSchema, createdUserRawQueryDtoSchema, createdUserRowQueryDtoSchema, deleteMessageContract, deleteMessageRequestSchema, deleteMessageResponseSchema, deleteProfilePicRequestSchema, deleteUserProfilePicContract, deletedMessageQueryDtoSchema, emailVerifyPayloadDtoSchema, enqueueAnalyzeVideoParamsDtoSchema, exerciseAssignmentIdQueryDtoSchema, exerciseDbSchema, exerciseInPlanQueryDtoSchema, exerciseMapByMuscleRowQueryDtoSchema, exerciseMetadataQueryDtoSchema, exerciseToWorkoutSplitDbSchema, exerciseToWorkoutSplitExpandedViewDbSchema, exerciseTrackingAnalysisQueryDtoSchema, exerciseTrackingAndStatsQueryDtoSchema, exerciseTrackingAndStatsRowQueryDtoSchema, exerciseTrackingDbSchema, exerciseTrackingExpandedViewDbSchema, exerciseTrackingIdQueryDtoSchema, exerciseTrackingPrMaxQueryDtoSchema, exercisesMapByMuscleQueryDtoSchema, finishUserWorkoutContract, finishUserWorkoutResponseSchema, finishWorkoutRequestSchema, finishedWorkoutEntryQueryDtoSchema, forgotPasswordPayloadDtoSchema, generateTicketContract, generateTicketRequestSchema, generateTicketResponseSchema, getAerobicsRequestSchema, getAllExercisesContract, getAllExercisesExerciseQueryDtoSchema, getAllExercisesResponseSchema, getAllMessagesRequestSchema, getAllUserMessagesContract, getAllUserMessagesResponseSchema, getAnalyticsContract, getAnalyticsResponseSchema, getAuthenticatedUserByIdContract, getAuthenticatedUserByIdResponseSchema, getExerciseTrackingContract, getExerciseTrackingRequestSchema, getExerciseTrackingResponseSchema, getPresignedUrlFromS3Contract, getPresignedUrlFromS3RequestSchema, getPresignedUrlFromS3ResponseSchema, getUserAerobicsContract, getWholeUserWorkoutPlanContract, getWholeUserWorkoutPlanResponseSchema, getWholeWorkoutPlanRequestSchema, goalAdherenceQueryDtoSchema, goalAdherenceRowQueryDtoSchema, googleOAuthContract, googleOAuthRequestSchema, googleTokenVerificationResultDtoSchema, lastLoginQueryDtoSchema, loginContract, loginRequestSchema, loginResponseSchema, logoutContract, logoutResponseSchema, markMessageAsReadContract, markMessageAsReadRequestSchema, markMessageAsReadResponseSchema, messageAfterSendQueryDtoSchema, messageAsReadQueryDtoSchema, messageDbSchema, oAuthCreatedUserRowQueryDtoSchema, oAuthLinkQueryDtoSchema, oAuthLinkRowQueryDtoSchema, oAuthLoginContract, oAuthLoginResponseSchema, oAuthLookupQueryDtoSchema, oAuthLookupRawQueryDtoSchema, oAuthLookupRowQueryDtoSchema, oauthAccountDbSchema, proceedLoginResponseSchema, prsViewDbSchema, refreshTokenContract, refreshTokenResponseSchema, resetPasswordContract, resetPasswordRequestSchema, resetPasswordResponseSchema, saveUserPushTokenContract, saveUserPushTokenRequestSchema, sendChangePassEmailContract, sendChangePassEmailRequestSchema, sendVerificationMailContract, sendVerificationMailRequestSchema, serializedDateSchema, setProfilePicAndUpdateDBContract, setProfilePicAndUpdateDBResponseSchema, squatRepetitionDtoSchema, timezoneSchema, tokenVersionQueryDtoSchema, trackingByDateItemQueryDtoSchema, trackingBySplitNameItemQueryDtoSchema, trackingMapItemQueryDtoSchema, trackingSetDbSchema, updateAuthenticatedUserContract, updateAuthenticatedUserResponseSchema, updateUserRequestSchema, userAerobicsQueryDtoSchema, userAerobicsResponseSchema, userAerobicsRowQueryDtoSchema, userAfterBumpQueryDtoSchema, userByIdentifierQueryDtoSchema, userByIdentifierRawQueryDtoSchema, userByIdentifierRowQueryDtoSchema, userByUsernameRawQueryDtoSchema, userByUsernameRowQueryDtoSchema, userConflictQueryDtoSchema, userDataContract, userDataQueryDtoSchema, userDataResponseSchema, userDataRowQueryDtoSchema, userDbSchema, userExistsQueryDtoSchema, userInsertDbSchema, userMessageIdentityQueryDtoSchema, userProfilePicQueryDtoSchema, userReminderSettingDbSchema, userSplitInformationDbSchema, userToHourlyReminderQueryDtoSchema, userUpdateDbSchema, userWithNotificationsEnabledQueryDtoSchema, verifyAccountRequestSchema, verifyUserAccountContract, weeklyDataQueryDtoSchema, wholeUserWorkoutPlanQueryDtoSchema, workoutExerciseInputQueryDtoSchema, workoutExerciseMetadataQueryDtoSchema, workoutPlanDbSchema, workoutPlanIdQueryDtoSchema, workoutRmRecordQueryDtoSchema, workoutRmsQueryDtoSchema, workoutRmsRowQueryDtoSchema, workoutSetDbSchema, workoutSplitDbSchema, workoutSplitIdQueryDtoSchema, workoutSplitLookupQueryDtoSchema, workoutSplitQueryDtoSchema, workoutSplitsMapItemQueryDtoSchema, workoutSplitsMapQueryDtoSchema, workoutSplitsRowQueryDtoSchema, workoutSummaryDbSchema, workoutSummaryIdQueryDtoSchema };
6290
+ export { type AccessTokenPayloadDto, type AddAerobicInputQueryDto, type AddUserAerobicsBody, type AddWorkoutBody, type AddWorkoutResponse, type AddWorkoutSplitPayloadQueryDto, type AdherenceExerciseStatsQueryDto, type AerobicTrackingRow, type AerobicsDailyRecordQueryDto, type AerobicsWeeklyRecordQueryDto, type AllUserMessageQueryDto, type AnalyzeVideoPayloadDto, type AnalyzeVideoResultPayloadDto, type AppleOAuthBody, type AppleTokenVerificationResultDto, type AuthenticatedUserForUpdateQueryDto, type BodyOf, type BootstrapRequestQuery, type BootstrapResponse, type ChangeEmailAndVerifyBody, type ChangeEmailTokenPayloadDto, type CheckUserVerifyQuery, type Contract, type CreateUserBody, type CreateUserResponse, type CreatedUserQueryDto, type CreatedUserRawQueryDto, type CreatedUserRowQueryDto, type DeleteMessageParams, type DeleteMessageResponse, type DeleteUserProfilePicBody, type DeletedMessageQueryDto, type EmailVerifyPayloadDto, type EnqueueAnalyzeVideoParamsDto, type ExerciseAssignmentIdQueryDto, type ExerciseInPlanQueryDto, type ExerciseMapByMuscleRowQueryDto, type ExerciseMetadataQueryDto, type ExerciseRow, type ExerciseToWorkoutSplitRow, type ExerciseTrackingAnalysisQueryDto, type ExerciseTrackingAndStatsQueryDto, type ExerciseTrackingAndStatsRowQueryDto, type ExerciseTrackingIdQueryDto, type ExerciseTrackingPrMaxQueryDto, type ExerciseTrackingRow, type ExercisesMapByMuscleQueryDto, type FinishUserWorkoutBody, type FinishUserWorkoutResponse, type FinishedWorkoutEntryQueryDto, type ForgotPasswordPayloadDto, type GenerateTicketBody, type GenerateTicketResponse, type GetAllExercisesExerciseQueryDto, type GetAllExercisesResponse, type GetAllUserMessagesQuery, type GetAllUserMessagesResponse, type GetAnalyticsResponse, type GetAuthenticatedUserByIdResponse, type GetExerciseTrackingQuery, type GetExerciseTrackingResponse, type GetPresignedUrlFromS3Body, type GetPresignedUrlFromS3Response, type GetUserAerobicsQuery, type GetWholeUserWorkoutPlanQuery, type GetWholeUserWorkoutPlanResponse, type GoalAdherenceQueryDto, type GoalAdherenceRowQueryDto, type GoogleOAuthBody, type GoogleTokenVerificationResultDto, type LastLoginQueryDto, type LoginRequestBody, type LoginResponse, type LogoutResponse, type MarkMessageAsReadParams, type MarkMessageAsReadResponse, type MessageAfterSendQueryDto, type MessageAsReadQueryDto, type MessageRow, type OAuthCreatedUserRowQueryDto, type OAuthLinkQueryDto, type OAuthLinkRowQueryDto, type OAuthLoginResponse, type OAuthLookupQueryDto, type OAuthLookupRawQueryDto, type OAuthLookupRowQueryDto, type ParamsOf, type QueryOf, type RefreshTokenResponse, type RequestOf, type RequestSchema, type ResetPasswordBody, type ResetPasswordQuery, type ResetPasswordResponse, type ResponseOf, type SaveUserPushTokenBody, type SendChangePassEmailBody, type SendVerificationMailBody, type SetProfilePicAndUpdateDBResponse, type SquatRepetitionDto, type TokenVersionQueryDto, type TrackingByDateItemQueryDto, type TrackingBySplitNameItemQueryDto, type TrackingMapItemQueryDto, type UpdateAuthenticatedUserResponse, type UpdateUserBody, type UserAerobicsQueryDto, type UserAerobicsResponse, type UserAerobicsRowQueryDto, type UserAfterBumpQueryDto, type UserByIdentifierQueryDto, type UserByIdentifierRawQueryDto, type UserByIdentifierRowQueryDto, type UserByUsernameRawQueryDto, type UserByUsernameRowQueryDto, type UserConflictQueryDto, type UserDataQueryDto, type UserDataResponse, type UserDataRowQueryDto, type UserExistsQueryDto, type UserInsert, type UserMessageIdentityQueryDto, type UserProfilePicQueryDto, type UserRow, type UserToHourlyReminderQueryDto, type UserWithNotificationsEnabledQueryDto, type VerifyUserAccountQuery, type WeeklyDataQueryDto, type WholeUserWorkoutPlanQueryDto, type WorkoutExerciseInputQueryDto, type WorkoutExerciseMetadataQueryDto, type WorkoutPlanIdQueryDto, type WorkoutPlanRow, type WorkoutRmRecordQueryDto, type WorkoutRmsQueryDto, type WorkoutRmsRowQueryDto, type WorkoutSplitIdQueryDto, type WorkoutSplitLookupQueryDto, type WorkoutSplitQueryDto, type WorkoutSplitRow, type WorkoutSplitsMapItemQueryDto, type WorkoutSplitsMapQueryDto, type WorkoutSplitsRowQueryDto, type WorkoutSummaryIdQueryDto, type WorkoutSummaryRow, accessTokenPayloadDtoSchema, addAerobicInputQueryDtoSchema, addAerobicsRequestSchema, addUserAerobicsContract, addWorkoutContract, addWorkoutRequestSchema, addWorkoutResponseSchema, addWorkoutSplitPayloadQueryDtoSchema, adherenceExerciseStatsQueryDtoSchema, aerobicTrackingDbSchema, aerobicsDailyRecordQueryDtoSchema, aerobicsWeeklyRecordQueryDtoSchema, allUserMessageQueryDtoSchema, analyzeVideoPayloadDtoSchema, analyzeVideoResultPayloadDtoSchema, appleOAuthContract, appleOAuthRequestSchema, appleTokenVerificationResultDtoSchema, authenticatedUserForUpdateQueryDtoSchema, bootstrapContract, bootstrapRequestSchema, bootstrapResponseSchema, changeEmailAndVerifyContract, changeEmailAndVerifyRequestSchema, changeEmailTokenPayloadDtoSchema, checkUserVerifyContract, checkUserVerifyRequestSchema, createUserContract, createUserRequestSchema, createUserResponseSchema, createUserUserSchema, createdUserQueryDtoSchema, createdUserRawQueryDtoSchema, createdUserRowQueryDtoSchema, deleteMessageContract, deleteMessageRequestSchema, deleteMessageResponseSchema, deleteProfilePicRequestSchema, deleteUserProfilePicContract, deletedMessageQueryDtoSchema, emailVerifyPayloadDtoSchema, enqueueAnalyzeVideoParamsDtoSchema, exerciseAssignmentIdQueryDtoSchema, exerciseDbSchema, exerciseInPlanQueryDtoSchema, exerciseMapByMuscleRowQueryDtoSchema, exerciseMetadataQueryDtoSchema, exerciseToWorkoutSplitDbSchema, exerciseToWorkoutSplitSetExpandedViewDbSchema, exerciseTrackingAnalysisQueryDtoSchema, exerciseTrackingAndStatsQueryDtoSchema, exerciseTrackingAndStatsRowQueryDtoSchema, exerciseTrackingDbSchema, exerciseTrackingIdQueryDtoSchema, exerciseTrackingPrMaxQueryDtoSchema, exerciseTrackingSetExpandedViewDbSchema, exercisesMapByMuscleQueryDtoSchema, finishUserWorkoutContract, finishUserWorkoutResponseSchema, finishWorkoutRequestSchema, finishedWorkoutEntryQueryDtoSchema, forgotPasswordPayloadDtoSchema, generateTicketContract, generateTicketRequestSchema, generateTicketResponseSchema, getAerobicsRequestSchema, getAllExercisesContract, getAllExercisesExerciseQueryDtoSchema, getAllExercisesResponseSchema, getAllMessagesRequestSchema, getAllUserMessagesContract, getAllUserMessagesResponseSchema, getAnalyticsContract, getAnalyticsResponseSchema, getAuthenticatedUserByIdContract, getAuthenticatedUserByIdResponseSchema, getExerciseTrackingContract, getExerciseTrackingRequestSchema, getExerciseTrackingResponseSchema, getPresignedUrlFromS3Contract, getPresignedUrlFromS3RequestSchema, getPresignedUrlFromS3ResponseSchema, getUserAerobicsContract, getWholeUserWorkoutPlanContract, getWholeUserWorkoutPlanResponseSchema, getWholeWorkoutPlanRequestSchema, goalAdherenceQueryDtoSchema, goalAdherenceRowQueryDtoSchema, googleOAuthContract, googleOAuthRequestSchema, googleTokenVerificationResultDtoSchema, lastLoginQueryDtoSchema, loginContract, loginRequestSchema, loginResponseSchema, logoutContract, logoutResponseSchema, markMessageAsReadContract, markMessageAsReadRequestSchema, markMessageAsReadResponseSchema, messageAfterSendQueryDtoSchema, messageAsReadQueryDtoSchema, messageDbSchema, oAuthCreatedUserRowQueryDtoSchema, oAuthLinkQueryDtoSchema, oAuthLinkRowQueryDtoSchema, oAuthLoginContract, oAuthLoginResponseSchema, oAuthLookupQueryDtoSchema, oAuthLookupRawQueryDtoSchema, oAuthLookupRowQueryDtoSchema, oauthAccountDbSchema, proceedLoginResponseSchema, prsViewDbSchema, refreshTokenContract, refreshTokenResponseSchema, resetPasswordContract, resetPasswordRequestSchema, resetPasswordResponseSchema, saveUserPushTokenContract, saveUserPushTokenRequestSchema, sendChangePassEmailContract, sendChangePassEmailRequestSchema, sendVerificationMailContract, sendVerificationMailRequestSchema, serializedDateSchema, setProfilePicAndUpdateDBContract, setProfilePicAndUpdateDBResponseSchema, squatRepetitionDtoSchema, timezoneSchema, tokenVersionQueryDtoSchema, trackingByDateItemQueryDtoSchema, trackingBySplitNameItemQueryDtoSchema, trackingMapItemQueryDtoSchema, trackingSetDbSchema, updateAuthenticatedUserContract, updateAuthenticatedUserResponseSchema, updateUserRequestSchema, userAerobicsQueryDtoSchema, userAerobicsResponseSchema, userAerobicsRowQueryDtoSchema, userAfterBumpQueryDtoSchema, userByIdentifierQueryDtoSchema, userByIdentifierRawQueryDtoSchema, userByIdentifierRowQueryDtoSchema, userByUsernameRawQueryDtoSchema, userByUsernameRowQueryDtoSchema, userConflictQueryDtoSchema, userDataContract, userDataQueryDtoSchema, userDataResponseSchema, userDataRowQueryDtoSchema, userDbSchema, userExistsQueryDtoSchema, userInsertDbSchema, userMessageIdentityQueryDtoSchema, userProfilePicQueryDtoSchema, userReminderSettingDbSchema, userSplitInformationDbSchema, userToHourlyReminderQueryDtoSchema, userUpdateDbSchema, userWithNotificationsEnabledQueryDtoSchema, verifyAccountRequestSchema, verifyUserAccountContract, weeklyDataQueryDtoSchema, wholeUserWorkoutPlanQueryDtoSchema, workoutExerciseInputQueryDtoSchema, workoutExerciseMetadataQueryDtoSchema, workoutPlanDbSchema, workoutPlanIdQueryDtoSchema, workoutRmRecordQueryDtoSchema, workoutRmsQueryDtoSchema, workoutRmsRowQueryDtoSchema, workoutSetDbSchema, workoutSplitDbSchema, workoutSplitIdQueryDtoSchema, workoutSplitLookupQueryDtoSchema, workoutSplitQueryDtoSchema, workoutSplitsMapItemQueryDtoSchema, workoutSplitsMapQueryDtoSchema, workoutSplitsRowQueryDtoSchema, workoutSummaryDbSchema, workoutSummaryIdQueryDtoSchema };
package/dist/index.d.ts CHANGED
@@ -2368,10 +2368,10 @@ declare const exerciseToWorkoutSplitDbSchema: drizzle_zod.BuildSchema<"select",
2368
2368
  generated: undefined;
2369
2369
  }, {}, {}>;
2370
2370
  }, undefined, undefined>;
2371
- declare const exerciseToWorkoutSplitExpandedViewDbSchema: drizzle_zod.BuildSchema<"select", {
2371
+ declare const exerciseToWorkoutSplitSetExpandedViewDbSchema: drizzle_zod.BuildSchema<"select", {
2372
2372
  id: drizzle_orm_pg_core.PgColumn<{
2373
2373
  name: "id";
2374
- tableName: "v_exercise_to_workout_split_expanded";
2374
+ tableName: "v_exercise_to_workout_split_set_expanded";
2375
2375
  dataType: "number";
2376
2376
  columnType: "PgBigInt53";
2377
2377
  data: number;
@@ -2388,7 +2388,7 @@ declare const exerciseToWorkoutSplitExpandedViewDbSchema: drizzle_zod.BuildSchem
2388
2388
  }, {}, {}>;
2389
2389
  workoutSplitId: drizzle_orm_pg_core.PgColumn<{
2390
2390
  name: "workout_split_id";
2391
- tableName: "v_exercise_to_workout_split_expanded";
2391
+ tableName: "v_exercise_to_workout_split_set_expanded";
2392
2392
  dataType: "number";
2393
2393
  columnType: "PgBigInt53";
2394
2394
  data: number;
@@ -2405,7 +2405,7 @@ declare const exerciseToWorkoutSplitExpandedViewDbSchema: drizzle_zod.BuildSchem
2405
2405
  }, {}, {}>;
2406
2406
  workoutId: drizzle_orm_pg_core.PgColumn<{
2407
2407
  name: "workout_id";
2408
- tableName: "v_exercise_to_workout_split_expanded";
2408
+ tableName: "v_exercise_to_workout_split_set_expanded";
2409
2409
  dataType: "number";
2410
2410
  columnType: "PgBigInt53";
2411
2411
  data: number;
@@ -2422,7 +2422,7 @@ declare const exerciseToWorkoutSplitExpandedViewDbSchema: drizzle_zod.BuildSchem
2422
2422
  }, {}, {}>;
2423
2423
  exerciseId: drizzle_orm_pg_core.PgColumn<{
2424
2424
  name: "exercise_id";
2425
- tableName: "v_exercise_to_workout_split_expanded";
2425
+ tableName: "v_exercise_to_workout_split_set_expanded";
2426
2426
  dataType: "number";
2427
2427
  columnType: "PgBigInt53";
2428
2428
  data: number;
@@ -2439,7 +2439,7 @@ declare const exerciseToWorkoutSplitExpandedViewDbSchema: drizzle_zod.BuildSchem
2439
2439
  }, {}, {}>;
2440
2440
  exercise: drizzle_orm_pg_core.PgColumn<{
2441
2441
  name: "exercise";
2442
- tableName: "v_exercise_to_workout_split_expanded";
2442
+ tableName: "v_exercise_to_workout_split_set_expanded";
2443
2443
  dataType: "string";
2444
2444
  columnType: "PgText";
2445
2445
  data: string;
@@ -2456,7 +2456,7 @@ declare const exerciseToWorkoutSplitExpandedViewDbSchema: drizzle_zod.BuildSchem
2456
2456
  }, {}, {}>;
2457
2457
  workoutSplit: drizzle_orm_pg_core.PgColumn<{
2458
2458
  name: "workout_split";
2459
- tableName: "v_exercise_to_workout_split_expanded";
2459
+ tableName: "v_exercise_to_workout_split_set_expanded";
2460
2460
  dataType: "string";
2461
2461
  columnType: "PgText";
2462
2462
  data: string;
@@ -2473,7 +2473,7 @@ declare const exerciseToWorkoutSplitExpandedViewDbSchema: drizzle_zod.BuildSchem
2473
2473
  }, {}, {}>;
2474
2474
  reps: drizzle_orm_pg_core.PgColumn<{
2475
2475
  name: "reps";
2476
- tableName: "v_exercise_to_workout_split_expanded";
2476
+ tableName: "v_exercise_to_workout_split_set_expanded";
2477
2477
  dataType: "number";
2478
2478
  columnType: "PgInteger";
2479
2479
  data: number;
@@ -2490,7 +2490,7 @@ declare const exerciseToWorkoutSplitExpandedViewDbSchema: drizzle_zod.BuildSchem
2490
2490
  }, {}, {}>;
2491
2491
  orderIndex: drizzle_orm_pg_core.PgColumn<{
2492
2492
  name: "order_index";
2493
- tableName: "v_exercise_to_workout_split_expanded";
2493
+ tableName: "v_exercise_to_workout_split_set_expanded";
2494
2494
  dataType: "number";
2495
2495
  columnType: "PgBigInt53";
2496
2496
  data: number;
@@ -2505,9 +2505,9 @@ declare const exerciseToWorkoutSplitExpandedViewDbSchema: drizzle_zod.BuildSchem
2505
2505
  identity: undefined;
2506
2506
  generated: undefined;
2507
2507
  }, {}, {}>;
2508
- setOrderIndex: drizzle_orm_pg_core.PgColumn<{
2509
- name: "set_order_index";
2510
- tableName: "v_exercise_to_workout_split_expanded";
2508
+ setIndex: drizzle_orm_pg_core.PgColumn<{
2509
+ name: "set_index";
2510
+ tableName: "v_exercise_to_workout_split_set_expanded";
2511
2511
  dataType: "number";
2512
2512
  columnType: "PgInteger";
2513
2513
  data: number;
@@ -2524,7 +2524,7 @@ declare const exerciseToWorkoutSplitExpandedViewDbSchema: drizzle_zod.BuildSchem
2524
2524
  }, {}, {}>;
2525
2525
  createdAt: drizzle_orm_pg_core.PgColumn<{
2526
2526
  name: "created_at";
2527
- tableName: "v_exercise_to_workout_split_expanded";
2527
+ tableName: "v_exercise_to_workout_split_set_expanded";
2528
2528
  dataType: "date";
2529
2529
  columnType: "PgTimestamp";
2530
2530
  data: Date;
@@ -2541,7 +2541,7 @@ declare const exerciseToWorkoutSplitExpandedViewDbSchema: drizzle_zod.BuildSchem
2541
2541
  }, {}, {}>;
2542
2542
  isActive: drizzle_orm_pg_core.PgColumn<{
2543
2543
  name: "is_active";
2544
- tableName: "v_exercise_to_workout_split_expanded";
2544
+ tableName: "v_exercise_to_workout_split_set_expanded";
2545
2545
  dataType: "boolean";
2546
2546
  columnType: "PgBoolean";
2547
2547
  data: boolean;
@@ -3321,10 +3321,10 @@ declare const userSplitInformationDbSchema: drizzle_zod.BuildSchema<"select", {
3321
3321
  generated: undefined;
3322
3322
  }, {}, {}>;
3323
3323
  }, undefined, undefined>;
3324
- declare const exerciseTrackingExpandedViewDbSchema: drizzle_zod.BuildSchema<"select", {
3324
+ declare const exerciseTrackingSetExpandedViewDbSchema: drizzle_zod.BuildSchema<"select", {
3325
3325
  id: drizzle_orm_pg_core.PgColumn<{
3326
3326
  name: "id";
3327
- tableName: "v_exercise_tracking_expanded";
3327
+ tableName: "v_exercise_tracking_set_expanded";
3328
3328
  dataType: "number";
3329
3329
  columnType: "PgBigInt53";
3330
3330
  data: number;
@@ -3341,7 +3341,7 @@ declare const exerciseTrackingExpandedViewDbSchema: drizzle_zod.BuildSchema<"sel
3341
3341
  }, {}, {}>;
3342
3342
  exerciseToSplitId: drizzle_orm_pg_core.PgColumn<{
3343
3343
  name: "exercise_to_split_id";
3344
- tableName: "v_exercise_tracking_expanded";
3344
+ tableName: "v_exercise_tracking_set_expanded";
3345
3345
  dataType: "number";
3346
3346
  columnType: "PgBigInt53";
3347
3347
  data: number;
@@ -3358,7 +3358,7 @@ declare const exerciseTrackingExpandedViewDbSchema: drizzle_zod.BuildSchema<"sel
3358
3358
  }, {}, {}>;
3359
3359
  weight: drizzle_orm_pg_core.PgColumn<{
3360
3360
  name: "weight";
3361
- tableName: "v_exercise_tracking_expanded";
3361
+ tableName: "v_exercise_tracking_set_expanded";
3362
3362
  dataType: "number";
3363
3363
  columnType: "PgReal";
3364
3364
  data: number;
@@ -3375,7 +3375,7 @@ declare const exerciseTrackingExpandedViewDbSchema: drizzle_zod.BuildSchema<"sel
3375
3375
  }, {}, {}>;
3376
3376
  reps: drizzle_orm_pg_core.PgColumn<{
3377
3377
  name: "reps";
3378
- tableName: "v_exercise_tracking_expanded";
3378
+ tableName: "v_exercise_tracking_set_expanded";
3379
3379
  dataType: "number";
3380
3380
  columnType: "PgBigInt53";
3381
3381
  data: number;
@@ -3392,7 +3392,7 @@ declare const exerciseTrackingExpandedViewDbSchema: drizzle_zod.BuildSchema<"sel
3392
3392
  }, {}, {}>;
3393
3393
  setIndex: drizzle_orm_pg_core.PgColumn<{
3394
3394
  name: "set_index";
3395
- tableName: "v_exercise_tracking_expanded";
3395
+ tableName: "v_exercise_tracking_set_expanded";
3396
3396
  dataType: "number";
3397
3397
  columnType: "PgInteger";
3398
3398
  data: number;
@@ -3409,7 +3409,7 @@ declare const exerciseTrackingExpandedViewDbSchema: drizzle_zod.BuildSchema<"sel
3409
3409
  }, {}, {}>;
3410
3410
  exerciseId: drizzle_orm_pg_core.PgColumn<{
3411
3411
  name: "exercise_id";
3412
- tableName: "v_exercise_tracking_expanded";
3412
+ tableName: "v_exercise_tracking_set_expanded";
3413
3413
  dataType: "number";
3414
3414
  columnType: "PgBigInt53";
3415
3415
  data: number;
@@ -3426,7 +3426,7 @@ declare const exerciseTrackingExpandedViewDbSchema: drizzle_zod.BuildSchema<"sel
3426
3426
  }, {}, {}>;
3427
3427
  workoutSplitId: drizzle_orm_pg_core.PgColumn<{
3428
3428
  name: "workout_split_id";
3429
- tableName: "v_exercise_tracking_expanded";
3429
+ tableName: "v_exercise_tracking_set_expanded";
3430
3430
  dataType: "number";
3431
3431
  columnType: "PgBigInt53";
3432
3432
  data: number;
@@ -3443,7 +3443,7 @@ declare const exerciseTrackingExpandedViewDbSchema: drizzle_zod.BuildSchema<"sel
3443
3443
  }, {}, {}>;
3444
3444
  splitName: drizzle_orm_pg_core.PgColumn<{
3445
3445
  name: "split_name";
3446
- tableName: "v_exercise_tracking_expanded";
3446
+ tableName: "v_exercise_tracking_set_expanded";
3447
3447
  dataType: "string";
3448
3448
  columnType: "PgText";
3449
3449
  data: string;
@@ -3460,7 +3460,7 @@ declare const exerciseTrackingExpandedViewDbSchema: drizzle_zod.BuildSchema<"sel
3460
3460
  }, {}, {}>;
3461
3461
  exercise: drizzle_orm_pg_core.PgColumn<{
3462
3462
  name: "exercise";
3463
- tableName: "v_exercise_tracking_expanded";
3463
+ tableName: "v_exercise_tracking_set_expanded";
3464
3464
  dataType: "string";
3465
3465
  columnType: "PgText";
3466
3466
  data: string;
@@ -3477,7 +3477,7 @@ declare const exerciseTrackingExpandedViewDbSchema: drizzle_zod.BuildSchema<"sel
3477
3477
  }, {}, {}>;
3478
3478
  notes: drizzle_orm_pg_core.PgColumn<{
3479
3479
  name: "notes";
3480
- tableName: "v_exercise_tracking_expanded";
3480
+ tableName: "v_exercise_tracking_set_expanded";
3481
3481
  dataType: "string";
3482
3482
  columnType: "PgText";
3483
3483
  data: string;
@@ -3494,7 +3494,7 @@ declare const exerciseTrackingExpandedViewDbSchema: drizzle_zod.BuildSchema<"sel
3494
3494
  }, {}, {}>;
3495
3495
  workoutSummaryId: drizzle_orm_pg_core.PgColumn<{
3496
3496
  name: "workout_summary_id";
3497
- tableName: "v_exercise_tracking_expanded";
3497
+ tableName: "v_exercise_tracking_set_expanded";
3498
3498
  dataType: "string";
3499
3499
  columnType: "PgUUID";
3500
3500
  data: string;
@@ -3511,7 +3511,7 @@ declare const exerciseTrackingExpandedViewDbSchema: drizzle_zod.BuildSchema<"sel
3511
3511
  }, {}, {}>;
3512
3512
  workoutStartUtc: drizzle_orm_pg_core.PgColumn<{
3513
3513
  name: "workout_start_utc";
3514
- tableName: "v_exercise_tracking_expanded";
3514
+ tableName: "v_exercise_tracking_set_expanded";
3515
3515
  dataType: "date";
3516
3516
  columnType: "PgTimestamp";
3517
3517
  data: Date;
@@ -3528,7 +3528,7 @@ declare const exerciseTrackingExpandedViewDbSchema: drizzle_zod.BuildSchema<"sel
3528
3528
  }, {}, {}>;
3529
3529
  workoutEndUtc: drizzle_orm_pg_core.PgColumn<{
3530
3530
  name: "workout_end_utc";
3531
- tableName: "v_exercise_tracking_expanded";
3531
+ tableName: "v_exercise_tracking_set_expanded";
3532
3532
  dataType: "date";
3533
3533
  columnType: "PgTimestamp";
3534
3534
  data: Date;
@@ -3543,6 +3543,23 @@ declare const exerciseTrackingExpandedViewDbSchema: drizzle_zod.BuildSchema<"sel
3543
3543
  identity: undefined;
3544
3544
  generated: undefined;
3545
3545
  }, {}, {}>;
3546
+ isAssignedToSplit: drizzle_orm_pg_core.PgColumn<{
3547
+ name: "is_assigned_to_split";
3548
+ tableName: "v_exercise_tracking_set_expanded";
3549
+ dataType: "boolean";
3550
+ columnType: "PgBoolean";
3551
+ data: boolean;
3552
+ driverParam: boolean;
3553
+ notNull: false;
3554
+ hasDefault: false;
3555
+ isPrimaryKey: false;
3556
+ isAutoincrement: false;
3557
+ hasRuntimeDefault: false;
3558
+ enumValues: undefined;
3559
+ baseColumn: never;
3560
+ identity: undefined;
3561
+ generated: undefined;
3562
+ }, {}, {}>;
3546
3563
  }, undefined, undefined>;
3547
3564
  declare const prsViewDbSchema: drizzle_zod.BuildSchema<"select", {
3548
3565
  id: drizzle_orm_pg_core.PgColumn<{
@@ -5793,10 +5810,15 @@ declare const getExerciseTrackingContract: {
5793
5810
  declare const finishWorkoutRequestSchema: z.ZodObject<{
5794
5811
  body: z.ZodObject<{
5795
5812
  workout: z.ZodArray<z.ZodObject<{
5796
- exerciseToSplitId: z.ZodInt;
5797
- weight: z.ZodArray<z.ZodNumber>;
5798
- reps: z.ZodArray<z.ZodInt>;
5813
+ trackedSets: z.ZodArray<z.ZodObject<{
5814
+ reps: z.ZodInt;
5815
+ weight: z.ZodNumber;
5816
+ setIndex: z.ZodInt;
5817
+ }, z.core.$strip>>;
5799
5818
  notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5819
+ isExerciseAssignedToSplit: z.ZodBoolean;
5820
+ exerciseToSplitId: z.ZodNullable<z.ZodInt>;
5821
+ exerciseId: z.ZodNullable<z.ZodInt>;
5800
5822
  }, z.core.$strip>>;
5801
5823
  tz: z.ZodOptional<z.ZodString>;
5802
5824
  workoutStartUtc: z.ZodString;
@@ -5884,10 +5906,15 @@ declare const finishUserWorkoutContract: {
5884
5906
  request: z.ZodObject<{
5885
5907
  body: z.ZodObject<{
5886
5908
  workout: z.ZodArray<z.ZodObject<{
5887
- exerciseToSplitId: z.ZodInt;
5888
- weight: z.ZodArray<z.ZodNumber>;
5889
- reps: z.ZodArray<z.ZodInt>;
5909
+ trackedSets: z.ZodArray<z.ZodObject<{
5910
+ reps: z.ZodInt;
5911
+ weight: z.ZodNumber;
5912
+ setIndex: z.ZodInt;
5913
+ }, z.core.$strip>>;
5890
5914
  notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5915
+ isExerciseAssignedToSplit: z.ZodBoolean;
5916
+ exerciseToSplitId: z.ZodNullable<z.ZodInt>;
5917
+ exerciseId: z.ZodNullable<z.ZodInt>;
5891
5918
  }, z.core.$strip>>;
5892
5919
  tz: z.ZodOptional<z.ZodString>;
5893
5920
  workoutStartUtc: z.ZodString;
@@ -5977,12 +6004,16 @@ type GetExerciseTrackingResponse = ResponseOf<typeof getExerciseTrackingContract
5977
6004
  type FinishUserWorkoutBody = BodyOf<typeof finishUserWorkoutContract>;
5978
6005
  type FinishUserWorkoutResponse = ResponseOf<typeof finishUserWorkoutContract>;
5979
6006
 
5980
- /** Finished exercise entry consumed by the workout-insertion query. */
5981
6007
  declare const finishedWorkoutEntryQueryDtoSchema: z.ZodObject<{
5982
- exerciseToSplitId: z.ZodInt;
5983
- weight: z.ZodArray<z.ZodNumber>;
5984
- reps: z.ZodArray<z.ZodInt>;
6008
+ trackedSets: z.ZodArray<z.ZodObject<{
6009
+ reps: z.ZodInt;
6010
+ weight: z.ZodNumber;
6011
+ setIndex: z.ZodInt;
6012
+ }, z.core.$strip>>;
5985
6013
  notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6014
+ isExerciseAssignedToSplit: z.ZodBoolean;
6015
+ exerciseToSplitId: z.ZodNullable<z.ZodInt>;
6016
+ exerciseId: z.ZodNullable<z.ZodInt>;
5986
6017
  }, z.core.$strip>;
5987
6018
  /** Target-muscle metadata nested in a tracking-map item. */
5988
6019
  declare const exerciseMetadataQueryDtoSchema: z.ZodObject<{
@@ -6256,4 +6287,4 @@ type WorkoutSummaryIdQueryDto = z.infer<typeof workoutSummaryIdQueryDtoSchema>;
6256
6287
  type ExerciseTrackingIdQueryDto = z.infer<typeof exerciseTrackingIdQueryDtoSchema>;
6257
6288
  type FinishedWorkoutEntryQueryDto = z.infer<typeof finishedWorkoutEntryQueryDtoSchema>;
6258
6289
 
6259
- export { type AccessTokenPayloadDto, type AddAerobicInputQueryDto, type AddUserAerobicsBody, type AddWorkoutBody, type AddWorkoutResponse, type AddWorkoutSplitPayloadQueryDto, type AdherenceExerciseStatsQueryDto, type AerobicTrackingRow, type AerobicsDailyRecordQueryDto, type AerobicsWeeklyRecordQueryDto, type AllUserMessageQueryDto, type AnalyzeVideoPayloadDto, type AnalyzeVideoResultPayloadDto, type AppleOAuthBody, type AppleTokenVerificationResultDto, type AuthenticatedUserForUpdateQueryDto, type BodyOf, type BootstrapRequestQuery, type BootstrapResponse, type ChangeEmailAndVerifyBody, type ChangeEmailTokenPayloadDto, type CheckUserVerifyQuery, type Contract, type CreateUserBody, type CreateUserResponse, type CreatedUserQueryDto, type CreatedUserRawQueryDto, type CreatedUserRowQueryDto, type DeleteMessageParams, type DeleteMessageResponse, type DeleteUserProfilePicBody, type DeletedMessageQueryDto, type EmailVerifyPayloadDto, type EnqueueAnalyzeVideoParamsDto, type ExerciseAssignmentIdQueryDto, type ExerciseInPlanQueryDto, type ExerciseMapByMuscleRowQueryDto, type ExerciseMetadataQueryDto, type ExerciseRow, type ExerciseToWorkoutSplitRow, type ExerciseTrackingAnalysisQueryDto, type ExerciseTrackingAndStatsQueryDto, type ExerciseTrackingAndStatsRowQueryDto, type ExerciseTrackingIdQueryDto, type ExerciseTrackingPrMaxQueryDto, type ExerciseTrackingRow, type ExercisesMapByMuscleQueryDto, type FinishUserWorkoutBody, type FinishUserWorkoutResponse, type FinishedWorkoutEntryQueryDto, type ForgotPasswordPayloadDto, type GenerateTicketBody, type GenerateTicketResponse, type GetAllExercisesExerciseQueryDto, type GetAllExercisesResponse, type GetAllUserMessagesQuery, type GetAllUserMessagesResponse, type GetAnalyticsResponse, type GetAuthenticatedUserByIdResponse, type GetExerciseTrackingQuery, type GetExerciseTrackingResponse, type GetPresignedUrlFromS3Body, type GetPresignedUrlFromS3Response, type GetUserAerobicsQuery, type GetWholeUserWorkoutPlanQuery, type GetWholeUserWorkoutPlanResponse, type GoalAdherenceQueryDto, type GoalAdherenceRowQueryDto, type GoogleOAuthBody, type GoogleTokenVerificationResultDto, type LastLoginQueryDto, type LoginRequestBody, type LoginResponse, type LogoutResponse, type MarkMessageAsReadParams, type MarkMessageAsReadResponse, type MessageAfterSendQueryDto, type MessageAsReadQueryDto, type MessageRow, type OAuthCreatedUserRowQueryDto, type OAuthLinkQueryDto, type OAuthLinkRowQueryDto, type OAuthLoginResponse, type OAuthLookupQueryDto, type OAuthLookupRawQueryDto, type OAuthLookupRowQueryDto, type ParamsOf, type QueryOf, type RefreshTokenResponse, type RequestOf, type RequestSchema, type ResetPasswordBody, type ResetPasswordQuery, type ResetPasswordResponse, type ResponseOf, type SaveUserPushTokenBody, type SendChangePassEmailBody, type SendVerificationMailBody, type SetProfilePicAndUpdateDBResponse, type SquatRepetitionDto, type TokenVersionQueryDto, type TrackingByDateItemQueryDto, type TrackingBySplitNameItemQueryDto, type TrackingMapItemQueryDto, type UpdateAuthenticatedUserResponse, type UpdateUserBody, type UserAerobicsQueryDto, type UserAerobicsResponse, type UserAerobicsRowQueryDto, type UserAfterBumpQueryDto, type UserByIdentifierQueryDto, type UserByIdentifierRawQueryDto, type UserByIdentifierRowQueryDto, type UserByUsernameRawQueryDto, type UserByUsernameRowQueryDto, type UserConflictQueryDto, type UserDataQueryDto, type UserDataResponse, type UserDataRowQueryDto, type UserExistsQueryDto, type UserInsert, type UserMessageIdentityQueryDto, type UserProfilePicQueryDto, type UserRow, type UserToHourlyReminderQueryDto, type UserWithNotificationsEnabledQueryDto, type VerifyUserAccountQuery, type WeeklyDataQueryDto, type WholeUserWorkoutPlanQueryDto, type WorkoutExerciseInputQueryDto, type WorkoutExerciseMetadataQueryDto, type WorkoutPlanIdQueryDto, type WorkoutPlanRow, type WorkoutRmRecordQueryDto, type WorkoutRmsQueryDto, type WorkoutRmsRowQueryDto, type WorkoutSplitIdQueryDto, type WorkoutSplitLookupQueryDto, type WorkoutSplitQueryDto, type WorkoutSplitRow, type WorkoutSplitsMapItemQueryDto, type WorkoutSplitsMapQueryDto, type WorkoutSplitsRowQueryDto, type WorkoutSummaryIdQueryDto, type WorkoutSummaryRow, accessTokenPayloadDtoSchema, addAerobicInputQueryDtoSchema, addAerobicsRequestSchema, addUserAerobicsContract, addWorkoutContract, addWorkoutRequestSchema, addWorkoutResponseSchema, addWorkoutSplitPayloadQueryDtoSchema, adherenceExerciseStatsQueryDtoSchema, aerobicTrackingDbSchema, aerobicsDailyRecordQueryDtoSchema, aerobicsWeeklyRecordQueryDtoSchema, allUserMessageQueryDtoSchema, analyzeVideoPayloadDtoSchema, analyzeVideoResultPayloadDtoSchema, appleOAuthContract, appleOAuthRequestSchema, appleTokenVerificationResultDtoSchema, authenticatedUserForUpdateQueryDtoSchema, bootstrapContract, bootstrapRequestSchema, bootstrapResponseSchema, changeEmailAndVerifyContract, changeEmailAndVerifyRequestSchema, changeEmailTokenPayloadDtoSchema, checkUserVerifyContract, checkUserVerifyRequestSchema, createUserContract, createUserRequestSchema, createUserResponseSchema, createUserUserSchema, createdUserQueryDtoSchema, createdUserRawQueryDtoSchema, createdUserRowQueryDtoSchema, deleteMessageContract, deleteMessageRequestSchema, deleteMessageResponseSchema, deleteProfilePicRequestSchema, deleteUserProfilePicContract, deletedMessageQueryDtoSchema, emailVerifyPayloadDtoSchema, enqueueAnalyzeVideoParamsDtoSchema, exerciseAssignmentIdQueryDtoSchema, exerciseDbSchema, exerciseInPlanQueryDtoSchema, exerciseMapByMuscleRowQueryDtoSchema, exerciseMetadataQueryDtoSchema, exerciseToWorkoutSplitDbSchema, exerciseToWorkoutSplitExpandedViewDbSchema, exerciseTrackingAnalysisQueryDtoSchema, exerciseTrackingAndStatsQueryDtoSchema, exerciseTrackingAndStatsRowQueryDtoSchema, exerciseTrackingDbSchema, exerciseTrackingExpandedViewDbSchema, exerciseTrackingIdQueryDtoSchema, exerciseTrackingPrMaxQueryDtoSchema, exercisesMapByMuscleQueryDtoSchema, finishUserWorkoutContract, finishUserWorkoutResponseSchema, finishWorkoutRequestSchema, finishedWorkoutEntryQueryDtoSchema, forgotPasswordPayloadDtoSchema, generateTicketContract, generateTicketRequestSchema, generateTicketResponseSchema, getAerobicsRequestSchema, getAllExercisesContract, getAllExercisesExerciseQueryDtoSchema, getAllExercisesResponseSchema, getAllMessagesRequestSchema, getAllUserMessagesContract, getAllUserMessagesResponseSchema, getAnalyticsContract, getAnalyticsResponseSchema, getAuthenticatedUserByIdContract, getAuthenticatedUserByIdResponseSchema, getExerciseTrackingContract, getExerciseTrackingRequestSchema, getExerciseTrackingResponseSchema, getPresignedUrlFromS3Contract, getPresignedUrlFromS3RequestSchema, getPresignedUrlFromS3ResponseSchema, getUserAerobicsContract, getWholeUserWorkoutPlanContract, getWholeUserWorkoutPlanResponseSchema, getWholeWorkoutPlanRequestSchema, goalAdherenceQueryDtoSchema, goalAdherenceRowQueryDtoSchema, googleOAuthContract, googleOAuthRequestSchema, googleTokenVerificationResultDtoSchema, lastLoginQueryDtoSchema, loginContract, loginRequestSchema, loginResponseSchema, logoutContract, logoutResponseSchema, markMessageAsReadContract, markMessageAsReadRequestSchema, markMessageAsReadResponseSchema, messageAfterSendQueryDtoSchema, messageAsReadQueryDtoSchema, messageDbSchema, oAuthCreatedUserRowQueryDtoSchema, oAuthLinkQueryDtoSchema, oAuthLinkRowQueryDtoSchema, oAuthLoginContract, oAuthLoginResponseSchema, oAuthLookupQueryDtoSchema, oAuthLookupRawQueryDtoSchema, oAuthLookupRowQueryDtoSchema, oauthAccountDbSchema, proceedLoginResponseSchema, prsViewDbSchema, refreshTokenContract, refreshTokenResponseSchema, resetPasswordContract, resetPasswordRequestSchema, resetPasswordResponseSchema, saveUserPushTokenContract, saveUserPushTokenRequestSchema, sendChangePassEmailContract, sendChangePassEmailRequestSchema, sendVerificationMailContract, sendVerificationMailRequestSchema, serializedDateSchema, setProfilePicAndUpdateDBContract, setProfilePicAndUpdateDBResponseSchema, squatRepetitionDtoSchema, timezoneSchema, tokenVersionQueryDtoSchema, trackingByDateItemQueryDtoSchema, trackingBySplitNameItemQueryDtoSchema, trackingMapItemQueryDtoSchema, trackingSetDbSchema, updateAuthenticatedUserContract, updateAuthenticatedUserResponseSchema, updateUserRequestSchema, userAerobicsQueryDtoSchema, userAerobicsResponseSchema, userAerobicsRowQueryDtoSchema, userAfterBumpQueryDtoSchema, userByIdentifierQueryDtoSchema, userByIdentifierRawQueryDtoSchema, userByIdentifierRowQueryDtoSchema, userByUsernameRawQueryDtoSchema, userByUsernameRowQueryDtoSchema, userConflictQueryDtoSchema, userDataContract, userDataQueryDtoSchema, userDataResponseSchema, userDataRowQueryDtoSchema, userDbSchema, userExistsQueryDtoSchema, userInsertDbSchema, userMessageIdentityQueryDtoSchema, userProfilePicQueryDtoSchema, userReminderSettingDbSchema, userSplitInformationDbSchema, userToHourlyReminderQueryDtoSchema, userUpdateDbSchema, userWithNotificationsEnabledQueryDtoSchema, verifyAccountRequestSchema, verifyUserAccountContract, weeklyDataQueryDtoSchema, wholeUserWorkoutPlanQueryDtoSchema, workoutExerciseInputQueryDtoSchema, workoutExerciseMetadataQueryDtoSchema, workoutPlanDbSchema, workoutPlanIdQueryDtoSchema, workoutRmRecordQueryDtoSchema, workoutRmsQueryDtoSchema, workoutRmsRowQueryDtoSchema, workoutSetDbSchema, workoutSplitDbSchema, workoutSplitIdQueryDtoSchema, workoutSplitLookupQueryDtoSchema, workoutSplitQueryDtoSchema, workoutSplitsMapItemQueryDtoSchema, workoutSplitsMapQueryDtoSchema, workoutSplitsRowQueryDtoSchema, workoutSummaryDbSchema, workoutSummaryIdQueryDtoSchema };
6290
+ export { type AccessTokenPayloadDto, type AddAerobicInputQueryDto, type AddUserAerobicsBody, type AddWorkoutBody, type AddWorkoutResponse, type AddWorkoutSplitPayloadQueryDto, type AdherenceExerciseStatsQueryDto, type AerobicTrackingRow, type AerobicsDailyRecordQueryDto, type AerobicsWeeklyRecordQueryDto, type AllUserMessageQueryDto, type AnalyzeVideoPayloadDto, type AnalyzeVideoResultPayloadDto, type AppleOAuthBody, type AppleTokenVerificationResultDto, type AuthenticatedUserForUpdateQueryDto, type BodyOf, type BootstrapRequestQuery, type BootstrapResponse, type ChangeEmailAndVerifyBody, type ChangeEmailTokenPayloadDto, type CheckUserVerifyQuery, type Contract, type CreateUserBody, type CreateUserResponse, type CreatedUserQueryDto, type CreatedUserRawQueryDto, type CreatedUserRowQueryDto, type DeleteMessageParams, type DeleteMessageResponse, type DeleteUserProfilePicBody, type DeletedMessageQueryDto, type EmailVerifyPayloadDto, type EnqueueAnalyzeVideoParamsDto, type ExerciseAssignmentIdQueryDto, type ExerciseInPlanQueryDto, type ExerciseMapByMuscleRowQueryDto, type ExerciseMetadataQueryDto, type ExerciseRow, type ExerciseToWorkoutSplitRow, type ExerciseTrackingAnalysisQueryDto, type ExerciseTrackingAndStatsQueryDto, type ExerciseTrackingAndStatsRowQueryDto, type ExerciseTrackingIdQueryDto, type ExerciseTrackingPrMaxQueryDto, type ExerciseTrackingRow, type ExercisesMapByMuscleQueryDto, type FinishUserWorkoutBody, type FinishUserWorkoutResponse, type FinishedWorkoutEntryQueryDto, type ForgotPasswordPayloadDto, type GenerateTicketBody, type GenerateTicketResponse, type GetAllExercisesExerciseQueryDto, type GetAllExercisesResponse, type GetAllUserMessagesQuery, type GetAllUserMessagesResponse, type GetAnalyticsResponse, type GetAuthenticatedUserByIdResponse, type GetExerciseTrackingQuery, type GetExerciseTrackingResponse, type GetPresignedUrlFromS3Body, type GetPresignedUrlFromS3Response, type GetUserAerobicsQuery, type GetWholeUserWorkoutPlanQuery, type GetWholeUserWorkoutPlanResponse, type GoalAdherenceQueryDto, type GoalAdherenceRowQueryDto, type GoogleOAuthBody, type GoogleTokenVerificationResultDto, type LastLoginQueryDto, type LoginRequestBody, type LoginResponse, type LogoutResponse, type MarkMessageAsReadParams, type MarkMessageAsReadResponse, type MessageAfterSendQueryDto, type MessageAsReadQueryDto, type MessageRow, type OAuthCreatedUserRowQueryDto, type OAuthLinkQueryDto, type OAuthLinkRowQueryDto, type OAuthLoginResponse, type OAuthLookupQueryDto, type OAuthLookupRawQueryDto, type OAuthLookupRowQueryDto, type ParamsOf, type QueryOf, type RefreshTokenResponse, type RequestOf, type RequestSchema, type ResetPasswordBody, type ResetPasswordQuery, type ResetPasswordResponse, type ResponseOf, type SaveUserPushTokenBody, type SendChangePassEmailBody, type SendVerificationMailBody, type SetProfilePicAndUpdateDBResponse, type SquatRepetitionDto, type TokenVersionQueryDto, type TrackingByDateItemQueryDto, type TrackingBySplitNameItemQueryDto, type TrackingMapItemQueryDto, type UpdateAuthenticatedUserResponse, type UpdateUserBody, type UserAerobicsQueryDto, type UserAerobicsResponse, type UserAerobicsRowQueryDto, type UserAfterBumpQueryDto, type UserByIdentifierQueryDto, type UserByIdentifierRawQueryDto, type UserByIdentifierRowQueryDto, type UserByUsernameRawQueryDto, type UserByUsernameRowQueryDto, type UserConflictQueryDto, type UserDataQueryDto, type UserDataResponse, type UserDataRowQueryDto, type UserExistsQueryDto, type UserInsert, type UserMessageIdentityQueryDto, type UserProfilePicQueryDto, type UserRow, type UserToHourlyReminderQueryDto, type UserWithNotificationsEnabledQueryDto, type VerifyUserAccountQuery, type WeeklyDataQueryDto, type WholeUserWorkoutPlanQueryDto, type WorkoutExerciseInputQueryDto, type WorkoutExerciseMetadataQueryDto, type WorkoutPlanIdQueryDto, type WorkoutPlanRow, type WorkoutRmRecordQueryDto, type WorkoutRmsQueryDto, type WorkoutRmsRowQueryDto, type WorkoutSplitIdQueryDto, type WorkoutSplitLookupQueryDto, type WorkoutSplitQueryDto, type WorkoutSplitRow, type WorkoutSplitsMapItemQueryDto, type WorkoutSplitsMapQueryDto, type WorkoutSplitsRowQueryDto, type WorkoutSummaryIdQueryDto, type WorkoutSummaryRow, accessTokenPayloadDtoSchema, addAerobicInputQueryDtoSchema, addAerobicsRequestSchema, addUserAerobicsContract, addWorkoutContract, addWorkoutRequestSchema, addWorkoutResponseSchema, addWorkoutSplitPayloadQueryDtoSchema, adherenceExerciseStatsQueryDtoSchema, aerobicTrackingDbSchema, aerobicsDailyRecordQueryDtoSchema, aerobicsWeeklyRecordQueryDtoSchema, allUserMessageQueryDtoSchema, analyzeVideoPayloadDtoSchema, analyzeVideoResultPayloadDtoSchema, appleOAuthContract, appleOAuthRequestSchema, appleTokenVerificationResultDtoSchema, authenticatedUserForUpdateQueryDtoSchema, bootstrapContract, bootstrapRequestSchema, bootstrapResponseSchema, changeEmailAndVerifyContract, changeEmailAndVerifyRequestSchema, changeEmailTokenPayloadDtoSchema, checkUserVerifyContract, checkUserVerifyRequestSchema, createUserContract, createUserRequestSchema, createUserResponseSchema, createUserUserSchema, createdUserQueryDtoSchema, createdUserRawQueryDtoSchema, createdUserRowQueryDtoSchema, deleteMessageContract, deleteMessageRequestSchema, deleteMessageResponseSchema, deleteProfilePicRequestSchema, deleteUserProfilePicContract, deletedMessageQueryDtoSchema, emailVerifyPayloadDtoSchema, enqueueAnalyzeVideoParamsDtoSchema, exerciseAssignmentIdQueryDtoSchema, exerciseDbSchema, exerciseInPlanQueryDtoSchema, exerciseMapByMuscleRowQueryDtoSchema, exerciseMetadataQueryDtoSchema, exerciseToWorkoutSplitDbSchema, exerciseToWorkoutSplitSetExpandedViewDbSchema, exerciseTrackingAnalysisQueryDtoSchema, exerciseTrackingAndStatsQueryDtoSchema, exerciseTrackingAndStatsRowQueryDtoSchema, exerciseTrackingDbSchema, exerciseTrackingIdQueryDtoSchema, exerciseTrackingPrMaxQueryDtoSchema, exerciseTrackingSetExpandedViewDbSchema, exercisesMapByMuscleQueryDtoSchema, finishUserWorkoutContract, finishUserWorkoutResponseSchema, finishWorkoutRequestSchema, finishedWorkoutEntryQueryDtoSchema, forgotPasswordPayloadDtoSchema, generateTicketContract, generateTicketRequestSchema, generateTicketResponseSchema, getAerobicsRequestSchema, getAllExercisesContract, getAllExercisesExerciseQueryDtoSchema, getAllExercisesResponseSchema, getAllMessagesRequestSchema, getAllUserMessagesContract, getAllUserMessagesResponseSchema, getAnalyticsContract, getAnalyticsResponseSchema, getAuthenticatedUserByIdContract, getAuthenticatedUserByIdResponseSchema, getExerciseTrackingContract, getExerciseTrackingRequestSchema, getExerciseTrackingResponseSchema, getPresignedUrlFromS3Contract, getPresignedUrlFromS3RequestSchema, getPresignedUrlFromS3ResponseSchema, getUserAerobicsContract, getWholeUserWorkoutPlanContract, getWholeUserWorkoutPlanResponseSchema, getWholeWorkoutPlanRequestSchema, goalAdherenceQueryDtoSchema, goalAdherenceRowQueryDtoSchema, googleOAuthContract, googleOAuthRequestSchema, googleTokenVerificationResultDtoSchema, lastLoginQueryDtoSchema, loginContract, loginRequestSchema, loginResponseSchema, logoutContract, logoutResponseSchema, markMessageAsReadContract, markMessageAsReadRequestSchema, markMessageAsReadResponseSchema, messageAfterSendQueryDtoSchema, messageAsReadQueryDtoSchema, messageDbSchema, oAuthCreatedUserRowQueryDtoSchema, oAuthLinkQueryDtoSchema, oAuthLinkRowQueryDtoSchema, oAuthLoginContract, oAuthLoginResponseSchema, oAuthLookupQueryDtoSchema, oAuthLookupRawQueryDtoSchema, oAuthLookupRowQueryDtoSchema, oauthAccountDbSchema, proceedLoginResponseSchema, prsViewDbSchema, refreshTokenContract, refreshTokenResponseSchema, resetPasswordContract, resetPasswordRequestSchema, resetPasswordResponseSchema, saveUserPushTokenContract, saveUserPushTokenRequestSchema, sendChangePassEmailContract, sendChangePassEmailRequestSchema, sendVerificationMailContract, sendVerificationMailRequestSchema, serializedDateSchema, setProfilePicAndUpdateDBContract, setProfilePicAndUpdateDBResponseSchema, squatRepetitionDtoSchema, timezoneSchema, tokenVersionQueryDtoSchema, trackingByDateItemQueryDtoSchema, trackingBySplitNameItemQueryDtoSchema, trackingMapItemQueryDtoSchema, trackingSetDbSchema, updateAuthenticatedUserContract, updateAuthenticatedUserResponseSchema, updateUserRequestSchema, userAerobicsQueryDtoSchema, userAerobicsResponseSchema, userAerobicsRowQueryDtoSchema, userAfterBumpQueryDtoSchema, userByIdentifierQueryDtoSchema, userByIdentifierRawQueryDtoSchema, userByIdentifierRowQueryDtoSchema, userByUsernameRawQueryDtoSchema, userByUsernameRowQueryDtoSchema, userConflictQueryDtoSchema, userDataContract, userDataQueryDtoSchema, userDataResponseSchema, userDataRowQueryDtoSchema, userDbSchema, userExistsQueryDtoSchema, userInsertDbSchema, userMessageIdentityQueryDtoSchema, userProfilePicQueryDtoSchema, userReminderSettingDbSchema, userSplitInformationDbSchema, userToHourlyReminderQueryDtoSchema, userUpdateDbSchema, userWithNotificationsEnabledQueryDtoSchema, verifyAccountRequestSchema, verifyUserAccountContract, weeklyDataQueryDtoSchema, wholeUserWorkoutPlanQueryDtoSchema, workoutExerciseInputQueryDtoSchema, workoutExerciseMetadataQueryDtoSchema, workoutPlanDbSchema, workoutPlanIdQueryDtoSchema, workoutRmRecordQueryDtoSchema, workoutRmsQueryDtoSchema, workoutRmsRowQueryDtoSchema, workoutSetDbSchema, workoutSplitDbSchema, workoutSplitIdQueryDtoSchema, workoutSplitLookupQueryDtoSchema, workoutSplitQueryDtoSchema, workoutSplitsMapItemQueryDtoSchema, workoutSplitsMapQueryDtoSchema, workoutSplitsRowQueryDtoSchema, workoutSummaryDbSchema, workoutSummaryIdQueryDtoSchema };
package/dist/index.js CHANGED
@@ -1291,7 +1291,7 @@ var userRelations = relations14(user, ({ many, one }) => ({
1291
1291
  import { bigint as bigint12, boolean as boolean7, text as text9, timestamp as timestamp11 } from "drizzle-orm/pg-core";
1292
1292
  import { sql as drizzleSql25 } from "drizzle-orm";
1293
1293
  import { integer as integer5 } from "drizzle-orm/pg-core";
1294
- var exerciseToWorkoutSplitExpandedView = workoutSchema.view("v_exercise_to_workout_split_expanded", {
1294
+ var exerciseToWorkoutSplitSetExpandedView = workoutSchema.view("v_exercise_to_workout_split_set_expanded", {
1295
1295
  id: bigint12("id", {
1296
1296
  mode: "number"
1297
1297
  }),
@@ -1310,7 +1310,7 @@ var exerciseToWorkoutSplitExpandedView = workoutSchema.view("v_exercise_to_worko
1310
1310
  orderIndex: bigint12("order_index", {
1311
1311
  mode: "number"
1312
1312
  }),
1313
- setOrderIndex: integer5("set_order_index"),
1313
+ setIndex: integer5("set_index"),
1314
1314
  createdAt: timestamp11("created_at", {
1315
1315
  withTimezone: true
1316
1316
  }),
@@ -1326,7 +1326,7 @@ var exerciseToWorkoutSplitExpandedView = workoutSchema.view("v_exercise_to_worko
1326
1326
  ex.name AS exercise,
1327
1327
  ws.name AS workout_split,
1328
1328
  workout_set.reps AS reps,
1329
- workout_set.order_index AS set_order_index,
1329
+ workout_set.order_index AS set_index,
1330
1330
  ews.order_index,
1331
1331
  ews.created_at,
1332
1332
  ews.is_active
@@ -1351,9 +1351,9 @@ var exerciseToWorkoutSplitExpandedView = workoutSchema.view("v_exercise_to_worko
1351
1351
 
1352
1352
  // ../../src/infrastructure/db/schema/drizzle/analytics/views/exercise-tracking-expanded.view.ts
1353
1353
  import { sql as drizzleSql26 } from "drizzle-orm";
1354
- import { bigint as bigint13, real as real2, text as text10, timestamp as timestamp12, uuid as uuid12 } from "drizzle-orm/pg-core";
1354
+ import { bigint as bigint13, boolean as boolean8, real as real2, text as text10, timestamp as timestamp12, uuid as uuid12 } from "drizzle-orm/pg-core";
1355
1355
  import { integer as integer6 } from "drizzle-orm/pg-core";
1356
- var exerciseTrackingExpandedView = analyticsSchema.view("v_exercise_tracking_expanded", {
1356
+ var exerciseTrackingSetExpandedView = analyticsSchema.view("v_exercise_tracking_set_expanded", {
1357
1357
  id: bigint13("id", {
1358
1358
  mode: "number"
1359
1359
  }),
@@ -1380,7 +1380,8 @@ var exerciseTrackingExpandedView = analyticsSchema.view("v_exercise_tracking_exp
1380
1380
  }),
1381
1381
  workoutEndUtc: timestamp12("workout_end_utc", {
1382
1382
  withTimezone: true
1383
- })
1383
+ }),
1384
+ isAssignedToSplit: boolean8("is_assigned_to_split")
1384
1385
  }).with({
1385
1386
  securityInvoker: true
1386
1387
  }).as(drizzleSql26`
@@ -1397,7 +1398,11 @@ var exerciseTrackingExpandedView = analyticsSchema.view("v_exercise_tracking_exp
1397
1398
  et.notes,
1398
1399
  et.workout_summary_id,
1399
1400
  wsumm.workout_start_utc,
1400
- wsumm.workout_end_utc
1401
+ wsumm.workout_end_utc,
1402
+ CASE
1403
+ WHEN et.exercise_to_split_id IS NOT NULL THEN TRUE
1404
+ WHEN et.exercise_id IS NOT NULL THEN FALSE
1405
+ END AS is_assigned_to_split
1401
1406
  FROM
1402
1407
  tracking.exercise_tracking et
1403
1408
  LEFT JOIN tracking.workout_summary wsumm ON wsumm.id = et.workout_summary_id
@@ -1446,7 +1451,7 @@ var prsView = analyticsSchema.view("v_prs", {
1446
1451
  et.workout_start_utc,
1447
1452
  et.workout_end_utc
1448
1453
  FROM
1449
- analytics.v_exercise_tracking_expanded et
1454
+ analytics.v_exercise_tracking_set_expanded et
1450
1455
  ORDER BY
1451
1456
  et.exercise_id,
1452
1457
  et.weight DESC,
@@ -1464,7 +1469,7 @@ var exerciseDbSchema = createSelectSchema(exercise);
1464
1469
  var workoutPlanDbSchema = createSelectSchema(workoutPlan);
1465
1470
  var workoutSplitDbSchema = createSelectSchema(workoutSplit);
1466
1471
  var exerciseToWorkoutSplitDbSchema = createSelectSchema(exerciseToWorkoutSplit);
1467
- var exerciseToWorkoutSplitExpandedViewDbSchema = createSelectSchema(exerciseToWorkoutSplitExpandedView);
1472
+ var exerciseToWorkoutSplitSetExpandedViewDbSchema = createSelectSchema(exerciseToWorkoutSplitSetExpandedView);
1468
1473
  var workoutSetDbSchema = createSelectSchema(workoutSet);
1469
1474
  var workoutSummaryDbSchema = createSelectSchema(workoutSummary);
1470
1475
  var exerciseTrackingDbSchema = createSelectSchema(exerciseTracking);
@@ -1473,7 +1478,7 @@ var aerobicTrackingDbSchema = createSelectSchema(aerobicTracking);
1473
1478
  var messageDbSchema = createSelectSchema(message);
1474
1479
  var userReminderSettingDbSchema = createSelectSchema(userReminderSetting);
1475
1480
  var userSplitInformationDbSchema = createSelectSchema(userSplitInformation);
1476
- var exerciseTrackingExpandedViewDbSchema = createSelectSchema(exerciseTrackingExpandedView);
1481
+ var exerciseTrackingSetExpandedViewDbSchema = createSelectSchema(exerciseTrackingSetExpandedView);
1477
1482
  var prsViewDbSchema = createSelectSchema(prsView);
1478
1483
 
1479
1484
  // src/modules/aerobics/aerobics.contracts.ts
@@ -1954,12 +1959,20 @@ var addWorkoutContract = {
1954
1959
 
1955
1960
  // src/modules/workout/tracking/tracking.dtos.ts
1956
1961
  import { z as z18 } from "zod/v4";
1957
- var finishedWorkoutEntryQueryDtoSchema = z18.object({
1958
- exerciseToSplitId: exerciseToWorkoutSplitDbSchema.shape.id,
1959
- weight: z18.array(trackingSetDbSchema.shape.weight),
1960
- reps: z18.array(trackingSetDbSchema.shape.reps),
1962
+ var trackedSetQueryDtoSchema = z18.object({
1963
+ reps: trackingSetDbSchema.shape.reps,
1964
+ weight: trackingSetDbSchema.shape.weight,
1965
+ setIndex: trackingSetDbSchema.shape.setIndex
1966
+ });
1967
+ var finishedWorkoutEntryBaseQueryDtoSchema = z18.object({
1968
+ trackedSets: z18.array(trackedSetQueryDtoSchema),
1961
1969
  notes: exerciseTrackingDbSchema.shape.notes.optional()
1962
1970
  });
1971
+ var finishedWorkoutEntryQueryDtoSchema = finishedWorkoutEntryBaseQueryDtoSchema.extend({
1972
+ isExerciseAssignedToSplit: z18.boolean(),
1973
+ exerciseToSplitId: exerciseTrackingDbSchema.shape.exerciseToSplitId,
1974
+ exerciseId: exerciseTrackingDbSchema.shape.exerciseId
1975
+ });
1963
1976
  var exerciseMetadataQueryDtoSchema = z18.object({
1964
1977
  targetMuscle: exerciseDbSchema.shape.targetMuscle,
1965
1978
  specificTargetMuscle: exerciseDbSchema.shape.specificTargetMuscle
@@ -2427,14 +2440,14 @@ export {
2427
2440
  exerciseMapByMuscleRowQueryDtoSchema,
2428
2441
  exerciseMetadataQueryDtoSchema,
2429
2442
  exerciseToWorkoutSplitDbSchema,
2430
- exerciseToWorkoutSplitExpandedViewDbSchema,
2443
+ exerciseToWorkoutSplitSetExpandedViewDbSchema,
2431
2444
  exerciseTrackingAnalysisQueryDtoSchema,
2432
2445
  exerciseTrackingAndStatsQueryDtoSchema,
2433
2446
  exerciseTrackingAndStatsRowQueryDtoSchema,
2434
2447
  exerciseTrackingDbSchema,
2435
- exerciseTrackingExpandedViewDbSchema,
2436
2448
  exerciseTrackingIdQueryDtoSchema,
2437
2449
  exerciseTrackingPrMaxQueryDtoSchema,
2450
+ exerciseTrackingSetExpandedViewDbSchema,
2438
2451
  exercisesMapByMuscleQueryDtoSchema,
2439
2452
  finishUserWorkoutContract,
2440
2453
  finishUserWorkoutResponseSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strong-together/shared",
3
- "version": "2.1.0",
3
+ "version": "2.3.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",