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.
- package/dist/cli/args.d.ts +12 -0
- package/dist/cli/args.js +909 -0
- package/dist/cli/commands/activity-record.d.ts +2 -0
- package/dist/cli/commands/activity-record.js +47 -0
- package/dist/cli/commands/expand.d.ts +16 -0
- package/dist/cli/commands/expand.js +89 -0
- package/dist/cli/commands/foundation.d.ts +11 -0
- package/dist/cli/commands/foundation.js +82 -0
- package/dist/cli/commands/hr-zones.d.ts +14 -0
- package/dist/cli/commands/hr-zones.js +62 -0
- package/dist/cli/commands/interview-persistence.d.ts +3 -0
- package/dist/cli/commands/interview-persistence.js +71 -0
- package/dist/cli/commands/interview.d.ts +2 -0
- package/dist/cli/commands/interview.js +306 -0
- package/dist/cli/commands/interviews.d.ts +16 -0
- package/dist/cli/commands/interviews.js +73 -0
- package/dist/cli/commands/modify.d.ts +23 -0
- package/dist/cli/commands/modify.js +251 -0
- package/dist/cli/commands/query.d.ts +7 -0
- package/dist/cli/commands/query.js +23 -0
- package/dist/cli/commands/render.d.ts +18 -0
- package/dist/cli/commands/render.js +132 -0
- package/dist/cli/commands/schedule-preferences.d.ts +13 -0
- package/dist/cli/commands/schedule-preferences.js +78 -0
- package/dist/cli/commands/schema.d.ts +6 -0
- package/dist/cli/commands/schema.js +94 -0
- package/dist/cli/commands/stats.d.ts +13 -0
- package/dist/cli/commands/stats.js +78 -0
- package/dist/cli/commands/strava.d.ts +45 -0
- package/dist/cli/commands/strava.js +254 -0
- package/dist/cli/commands/strength.d.ts +15 -0
- package/dist/cli/commands/strength.js +114 -0
- package/dist/cli/commands/templates.d.ts +13 -0
- package/dist/cli/commands/templates.js +782 -0
- package/dist/cli/commands/training-load.d.ts +9 -0
- package/dist/cli/commands/training-load.js +41 -0
- package/dist/cli/commands/triggers.d.ts +2 -0
- package/dist/cli/commands/triggers.js +114 -0
- package/dist/cli/commands/validate.d.ts +13 -0
- package/dist/cli/commands/validate.js +77 -0
- package/dist/cli/help.d.ts +8 -0
- package/dist/cli/help.js +181 -0
- package/dist/cli/index.d.ts +1 -0
- package/dist/cli/index.js +136 -0
- package/dist/cli/utils/colors.d.ts +8 -0
- package/dist/cli/utils/colors.js +8 -0
- package/dist/cli/utils/format-table.d.ts +9 -0
- package/dist/cli/utils/format-table.js +24 -0
- package/dist/cli/utils/number-utils.d.ts +8 -0
- package/dist/cli/utils/number-utils.js +13 -0
- package/dist/cli/utils/printSection.d.ts +10 -0
- package/dist/cli/utils/printSection.js +14 -0
- package/dist/cli.d.ts +9 -6
- package/dist/cli.js +7 -1220
- package/dist/db/client.d.ts +15 -0
- package/dist/db/client.js +63 -76
- package/dist/db/migrate.d.ts +1 -1
- package/dist/db/migrate.js +12 -10
- package/dist/db/migrations/001_initial_schema.sql +139 -0
- package/dist/db/migrations/002_interview_tables.sql +51 -0
- package/dist/db/migrations/003_add_activity_source.sql +4 -0
- package/dist/db/migrations/migrations/001_initial_schema.sql +139 -0
- package/dist/db/migrations/migrations/002_interview_tables.sql +51 -0
- package/dist/db/migrations/migrations/003_add_activity_source.sql +4 -0
- package/dist/db/migrations.d.ts +21 -0
- package/dist/db/migrations.js +125 -0
- package/dist/db/storage.d.ts +30 -0
- package/dist/db/storage.js +43 -0
- package/dist/expander/expander.d.ts +30 -3
- package/dist/expander/expander.js +53 -25
- package/dist/expander/index.d.ts +2 -1
- package/dist/expander/index.js +3 -1
- package/dist/expander/types.d.ts +4 -0
- package/dist/expander/validation.d.ts +84 -0
- package/dist/expander/validation.js +193 -0
- package/dist/expander/zones.js +4 -4
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -0
- package/dist/lib/config.js +21 -17
- package/dist/lib/freshness.d.ts +36 -0
- package/dist/lib/freshness.js +141 -0
- package/dist/lib/triggers.d.ts +27 -0
- package/dist/lib/triggers.js +215 -0
- package/dist/schema/compact-plan.d.ts +17 -10
- package/dist/schema/compact-plan.js +11 -5
- package/dist/schema/compact-plan.schema.d.ts +8 -18
- package/dist/schema/compact-plan.schema.js +12 -8
- package/dist/schema/training-plan.d.ts +7 -0
- package/dist/schema/training-plan.js +1 -1
- package/dist/schema/training-plan.schema.d.ts +33 -53
- package/dist/schema/training-plan.schema.js +11 -11
- package/dist/strava/api.d.ts +28 -1
- package/dist/strava/api.js +50 -10
- package/dist/strava/types.d.ts +33 -0
- package/dist/templates/converter.d.ts +62 -0
- package/dist/templates/converter.js +293 -0
- package/dist/templates/index.d.ts +2 -1
- package/dist/templates/index.js +3 -1
- package/dist/templates/loader.d.ts +51 -1
- package/dist/templates/loader.js +149 -20
- package/dist/templates/template.schema.d.ts +29 -33
- package/dist/templates/template.schema.js +5 -5
- package/dist/templates/template.types.d.ts +4 -0
- package/dist/viewer/lib/UpdatePlan.js +49 -31
- package/dist/viewer/lib/export/fit.d.ts +11 -2
- package/dist/viewer/lib/export/fit.js +99 -38
- package/dist/viewer/lib/export/index.d.ts +8 -2
- package/dist/viewer/lib/export/index.js +9 -3
- package/package.json +32 -14
- package/templates/bike/hills.yaml +1 -1
- package/templates/plan-viewer.html +23 -23
- package/templates/run/easy.yaml +1 -1
- package/templates/run/fartlek.yaml +29 -2
- package/templates/run/hills.yaml +26 -1
- package/templates/run/intervals.1k.yaml +1 -1
- package/templates/run/intervals.400.yaml +1 -1
- package/templates/run/intervals.800.yaml +1 -1
- package/templates/run/intervals.mile.yaml +1 -1
- package/templates/run/long.yaml +1 -1
- package/templates/run/progression.yaml +1 -1
- package/templates/run/race.5k.yaml +2 -2
- package/templates/run/recovery.yaml +1 -1
- package/templates/run/rest.yaml +2 -2
- package/templates/run/strides.yaml +14 -1
- package/templates/run/tempo.yaml +1 -1
- package/templates/run/threshold.yaml +1 -1
- package/templates/strength/rest.yaml +16 -0
- package/templates/swim/endurance.yaml +2 -2
- 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;
|