endurance-coach 1.2.0 → 1.4.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.
Files changed (129) hide show
  1. package/dist/cli/args.d.ts +12 -0
  2. package/dist/cli/args.js +909 -0
  3. package/dist/cli/commands/activity-record.d.ts +2 -0
  4. package/dist/cli/commands/activity-record.js +47 -0
  5. package/dist/cli/commands/expand.d.ts +16 -0
  6. package/dist/cli/commands/expand.js +89 -0
  7. package/dist/cli/commands/foundation.d.ts +11 -0
  8. package/dist/cli/commands/foundation.js +82 -0
  9. package/dist/cli/commands/hr-zones.d.ts +14 -0
  10. package/dist/cli/commands/hr-zones.js +62 -0
  11. package/dist/cli/commands/interview-persistence.d.ts +3 -0
  12. package/dist/cli/commands/interview-persistence.js +71 -0
  13. package/dist/cli/commands/interview.d.ts +2 -0
  14. package/dist/cli/commands/interview.js +306 -0
  15. package/dist/cli/commands/interviews.d.ts +16 -0
  16. package/dist/cli/commands/interviews.js +73 -0
  17. package/dist/cli/commands/modify.d.ts +23 -0
  18. package/dist/cli/commands/modify.js +251 -0
  19. package/dist/cli/commands/query.d.ts +7 -0
  20. package/dist/cli/commands/query.js +23 -0
  21. package/dist/cli/commands/render.d.ts +18 -0
  22. package/dist/cli/commands/render.js +132 -0
  23. package/dist/cli/commands/schedule-preferences.d.ts +13 -0
  24. package/dist/cli/commands/schedule-preferences.js +78 -0
  25. package/dist/cli/commands/schema.d.ts +6 -0
  26. package/dist/cli/commands/schema.js +94 -0
  27. package/dist/cli/commands/stats.d.ts +13 -0
  28. package/dist/cli/commands/stats.js +78 -0
  29. package/dist/cli/commands/strava.d.ts +45 -0
  30. package/dist/cli/commands/strava.js +254 -0
  31. package/dist/cli/commands/strength.d.ts +15 -0
  32. package/dist/cli/commands/strength.js +114 -0
  33. package/dist/cli/commands/templates.d.ts +13 -0
  34. package/dist/cli/commands/templates.js +782 -0
  35. package/dist/cli/commands/training-load.d.ts +9 -0
  36. package/dist/cli/commands/training-load.js +41 -0
  37. package/dist/cli/commands/triggers.d.ts +2 -0
  38. package/dist/cli/commands/triggers.js +114 -0
  39. package/dist/cli/commands/validate.d.ts +13 -0
  40. package/dist/cli/commands/validate.js +77 -0
  41. package/dist/cli/help.d.ts +8 -0
  42. package/dist/cli/help.js +181 -0
  43. package/dist/cli/index.d.ts +1 -0
  44. package/dist/cli/index.js +136 -0
  45. package/dist/cli/utils/colors.d.ts +8 -0
  46. package/dist/cli/utils/colors.js +8 -0
  47. package/dist/cli/utils/format-table.d.ts +9 -0
  48. package/dist/cli/utils/format-table.js +24 -0
  49. package/dist/cli/utils/number-utils.d.ts +8 -0
  50. package/dist/cli/utils/number-utils.js +13 -0
  51. package/dist/cli/utils/printSection.d.ts +10 -0
  52. package/dist/cli/utils/printSection.js +14 -0
  53. package/dist/cli.d.ts +9 -6
  54. package/dist/cli.js +7 -1220
  55. package/dist/db/client.d.ts +15 -0
  56. package/dist/db/client.js +63 -76
  57. package/dist/db/migrate.d.ts +1 -1
  58. package/dist/db/migrate.js +12 -10
  59. package/dist/db/migrations/001_initial_schema.sql +139 -0
  60. package/dist/db/migrations/002_interview_tables.sql +51 -0
  61. package/dist/db/migrations/003_add_activity_source.sql +4 -0
  62. package/dist/db/migrations/migrations/001_initial_schema.sql +139 -0
  63. package/dist/db/migrations/migrations/002_interview_tables.sql +51 -0
  64. package/dist/db/migrations/migrations/003_add_activity_source.sql +4 -0
  65. package/dist/db/migrations.d.ts +21 -0
  66. package/dist/db/migrations.js +125 -0
  67. package/dist/db/storage.d.ts +30 -0
  68. package/dist/db/storage.js +43 -0
  69. package/dist/expander/expander.d.ts +30 -3
  70. package/dist/expander/expander.js +53 -25
  71. package/dist/expander/index.d.ts +2 -1
  72. package/dist/expander/index.js +3 -1
  73. package/dist/expander/types.d.ts +4 -0
  74. package/dist/expander/validation.d.ts +84 -0
  75. package/dist/expander/validation.js +193 -0
  76. package/dist/expander/zones.js +4 -4
  77. package/dist/index.d.ts +1 -0
  78. package/dist/index.js +2 -0
  79. package/dist/lib/config.js +21 -17
  80. package/dist/lib/freshness.d.ts +36 -0
  81. package/dist/lib/freshness.js +141 -0
  82. package/dist/lib/triggers.d.ts +27 -0
  83. package/dist/lib/triggers.js +215 -0
  84. package/dist/schema/compact-plan.d.ts +17 -10
  85. package/dist/schema/compact-plan.js +11 -5
  86. package/dist/schema/compact-plan.schema.d.ts +8 -18
  87. package/dist/schema/compact-plan.schema.js +12 -8
  88. package/dist/schema/training-plan.d.ts +7 -0
  89. package/dist/schema/training-plan.js +1 -1
  90. package/dist/schema/training-plan.schema.d.ts +33 -53
  91. package/dist/schema/training-plan.schema.js +11 -11
  92. package/dist/strava/api.d.ts +28 -1
  93. package/dist/strava/api.js +50 -10
  94. package/dist/strava/types.d.ts +33 -0
  95. package/dist/templates/converter.d.ts +62 -0
  96. package/dist/templates/converter.js +293 -0
  97. package/dist/templates/index.d.ts +2 -1
  98. package/dist/templates/index.js +3 -1
  99. package/dist/templates/loader.d.ts +51 -1
  100. package/dist/templates/loader.js +149 -20
  101. package/dist/templates/template.schema.d.ts +29 -33
  102. package/dist/templates/template.schema.js +5 -5
  103. package/dist/templates/template.types.d.ts +4 -0
  104. package/dist/viewer/lib/UpdatePlan.js +49 -31
  105. package/dist/viewer/lib/export/fit.d.ts +11 -2
  106. package/dist/viewer/lib/export/fit.js +99 -38
  107. package/dist/viewer/lib/export/index.d.ts +8 -2
  108. package/dist/viewer/lib/export/index.js +9 -3
  109. package/package.json +32 -14
  110. package/templates/bike/hills.yaml +1 -1
  111. package/templates/plan-viewer.html +23 -23
  112. package/templates/run/easy.yaml +1 -1
  113. package/templates/run/fartlek.yaml +29 -2
  114. package/templates/run/hills.yaml +26 -1
  115. package/templates/run/intervals.1k.yaml +1 -1
  116. package/templates/run/intervals.400.yaml +1 -1
  117. package/templates/run/intervals.800.yaml +1 -1
  118. package/templates/run/intervals.mile.yaml +1 -1
  119. package/templates/run/long.yaml +1 -1
  120. package/templates/run/progression.yaml +1 -1
  121. package/templates/run/race.5k.yaml +2 -2
  122. package/templates/run/recovery.yaml +1 -1
  123. package/templates/run/rest.yaml +2 -2
  124. package/templates/run/strides.yaml +14 -1
  125. package/templates/run/tempo.yaml +1 -1
  126. package/templates/run/threshold.yaml +1 -1
  127. package/templates/strength/rest.yaml +16 -0
  128. package/templates/swim/endurance.yaml +2 -2
  129. package/templates/swim/technique.yaml +2 -2
@@ -0,0 +1,12 @@
1
+ import type { CliArgs, SyncArgs, RenderArgs, StatsArgs, TrainingLoadArgs, FoundationArgs, StrengthArgs, SchedulePreferencesArgs, HrZonesArgs, QueryArgs, AuthArgs, ActivityLapsArgs, HelpArgs, ValidateArgs, ExpandArgs, TemplatesArgs, ModifyArgs, InterviewArgs, InterviewSaveArgs, PreliminaryNoteSaveArgs, ActivityRecordArgs, TriggersArgs, InterviewsListArgs, InterviewsGetArgs } from "./args.types.js";
2
+ export type { CliArgs, SyncArgs, RenderArgs, StatsArgs, TrainingLoadArgs, FoundationArgs, StrengthArgs, SchedulePreferencesArgs, HrZonesArgs, QueryArgs, AuthArgs, ActivityLapsArgs, HelpArgs, ValidateArgs, ExpandArgs, TemplatesArgs, ModifyArgs, InterviewArgs, InterviewSaveArgs, PreliminaryNoteSaveArgs, ActivityRecordArgs, TriggersArgs, InterviewsListArgs, InterviewsGetArgs, };
3
+ /**
4
+ * Parse command-line arguments from process.argv and produce the corresponding CLI command object.
5
+ *
6
+ * The returned object identifies the selected command and any parsed options or flags.
7
+ *
8
+ * Note: for missing required inputs or invalid option values this function logs an error and exits the process with status 1.
9
+ *
10
+ * @returns A `CliArgs` object describing the requested command and its parsed options
11
+ */
12
+ export declare function parseArgs(): CliArgs;