@workingdevshero/olympia-ait-adapter 1.0.0 → 1.1.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/README.md +35 -7
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/reader/parse-day-sheet.d.ts.map +1 -1
- package/dist/reader/parse-day-sheet.js +98 -29
- package/dist/reader/parse-day-sheet.js.map +1 -1
- package/dist/schema/program.d.ts +363 -19
- package/dist/schema/program.d.ts.map +1 -1
- package/dist/schema/program.js +110 -14
- package/dist/schema/program.js.map +1 -1
- package/dist/server.js +1 -1
- package/dist/server.js.map +1 -1
- package/dist/writer/build-workbook.d.ts +1 -1
- package/dist/writer/build-workbook.d.ts.map +1 -1
- package/dist/writer/build-workbook.js +18 -12
- package/dist/writer/build-workbook.js.map +1 -1
- package/dist/writer/layout.d.ts +19 -7
- package/dist/writer/layout.d.ts.map +1 -1
- package/dist/writer/layout.js +40 -21
- package/dist/writer/layout.js.map +1 -1
- package/dist/writer/stamp-exercise.d.ts +13 -5
- package/dist/writer/stamp-exercise.d.ts.map +1 -1
- package/dist/writer/stamp-exercise.js +25 -18
- package/dist/writer/stamp-exercise.js.map +1 -1
- package/dist/writer/supplemental-template.d.ts +3 -2
- package/dist/writer/supplemental-template.d.ts.map +1 -1
- package/dist/writer/supplemental-template.js +15 -15
- package/dist/writer/supplemental-template.js.map +1 -1
- package/package.json +1 -1
- package/skills/olympia-authoring/SKILL.md +25 -9
package/dist/schema/program.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
/**
|
|
3
|
-
* A single prescription cell for one set in one week
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* encoded by notation in the cell text:
|
|
3
|
+
* A single prescription cell for one set in one week: the "Reps" column of
|
|
4
|
+
* that week. The unit is reps, time, or breaths, encoded by notation in the
|
|
5
|
+
* cell text:
|
|
7
6
|
*
|
|
8
7
|
* "12" → 12 reps
|
|
9
8
|
* "10E" → 10 reps each side
|
|
@@ -18,41 +17,79 @@ import { z } from "zod";
|
|
|
18
17
|
* not validated at the schema level.
|
|
19
18
|
*/
|
|
20
19
|
export declare const Cell: z.ZodNullable<z.ZodString>;
|
|
20
|
+
/**
|
|
21
|
+
* The "Weight" column cell beside a prescription. Coaches use it for a load
|
|
22
|
+
* ("25"), and just as often for an equipment setting: a band colour ("Yel"),
|
|
23
|
+
* a box height ('12" + 2 Pads'), a rack position ("#10"). It is free text
|
|
24
|
+
* and is never interpreted.
|
|
25
|
+
*/
|
|
26
|
+
export declare const WeightCell: z.ZodNullable<z.ZodString>;
|
|
27
|
+
export declare const WeightRow: z.ZodArray<z.ZodNullable<z.ZodString>, "many">;
|
|
21
28
|
export declare const SetRow: z.ZodArray<z.ZodNullable<z.ZodString>, "many">;
|
|
22
|
-
export declare const Exercise: z.ZodObject<{
|
|
29
|
+
export declare const Exercise: z.ZodEffects<z.ZodObject<{
|
|
23
30
|
name: z.ZodString;
|
|
24
31
|
groupLabel: z.ZodOptional<z.ZodString>;
|
|
25
32
|
notes: z.ZodOptional<z.ZodString>;
|
|
26
33
|
sets: z.ZodArray<z.ZodArray<z.ZodNullable<z.ZodString>, "many">, "many">;
|
|
34
|
+
weights: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodNullable<z.ZodString>, "many">, "many">>;
|
|
27
35
|
}, "strict", z.ZodTypeAny, {
|
|
28
36
|
name: string;
|
|
29
37
|
sets: (string | null)[][];
|
|
30
38
|
groupLabel?: string | undefined;
|
|
31
39
|
notes?: string | undefined;
|
|
40
|
+
weights?: (string | null)[][] | undefined;
|
|
41
|
+
}, {
|
|
42
|
+
name: string;
|
|
43
|
+
sets: (string | null)[][];
|
|
44
|
+
groupLabel?: string | undefined;
|
|
45
|
+
notes?: string | undefined;
|
|
46
|
+
weights?: (string | null)[][] | undefined;
|
|
47
|
+
}>, {
|
|
48
|
+
name: string;
|
|
49
|
+
sets: (string | null)[][];
|
|
50
|
+
groupLabel?: string | undefined;
|
|
51
|
+
notes?: string | undefined;
|
|
52
|
+
weights?: (string | null)[][] | undefined;
|
|
32
53
|
}, {
|
|
33
54
|
name: string;
|
|
34
55
|
sets: (string | null)[][];
|
|
35
56
|
groupLabel?: string | undefined;
|
|
36
57
|
notes?: string | undefined;
|
|
58
|
+
weights?: (string | null)[][] | undefined;
|
|
37
59
|
}>;
|
|
38
60
|
export declare const SectionKind: z.ZodEnum<["warmup", "main", "sportSpecific", "supplemental", "conditioning"]>;
|
|
39
|
-
export declare const Section: z.ZodObject<{
|
|
61
|
+
export declare const Section: z.ZodEffects<z.ZodObject<{
|
|
40
62
|
kind: z.ZodEnum<["warmup", "main", "sportSpecific", "supplemental", "conditioning"]>;
|
|
41
|
-
exercises: z.ZodArray<z.ZodObject<{
|
|
63
|
+
exercises: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
42
64
|
name: z.ZodString;
|
|
43
65
|
groupLabel: z.ZodOptional<z.ZodString>;
|
|
44
66
|
notes: z.ZodOptional<z.ZodString>;
|
|
45
67
|
sets: z.ZodArray<z.ZodArray<z.ZodNullable<z.ZodString>, "many">, "many">;
|
|
68
|
+
weights: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodNullable<z.ZodString>, "many">, "many">>;
|
|
46
69
|
}, "strict", z.ZodTypeAny, {
|
|
47
70
|
name: string;
|
|
48
71
|
sets: (string | null)[][];
|
|
49
72
|
groupLabel?: string | undefined;
|
|
50
73
|
notes?: string | undefined;
|
|
74
|
+
weights?: (string | null)[][] | undefined;
|
|
75
|
+
}, {
|
|
76
|
+
name: string;
|
|
77
|
+
sets: (string | null)[][];
|
|
78
|
+
groupLabel?: string | undefined;
|
|
79
|
+
notes?: string | undefined;
|
|
80
|
+
weights?: (string | null)[][] | undefined;
|
|
81
|
+
}>, {
|
|
82
|
+
name: string;
|
|
83
|
+
sets: (string | null)[][];
|
|
84
|
+
groupLabel?: string | undefined;
|
|
85
|
+
notes?: string | undefined;
|
|
86
|
+
weights?: (string | null)[][] | undefined;
|
|
51
87
|
}, {
|
|
52
88
|
name: string;
|
|
53
89
|
sets: (string | null)[][];
|
|
54
90
|
groupLabel?: string | undefined;
|
|
55
91
|
notes?: string | undefined;
|
|
92
|
+
weights?: (string | null)[][] | undefined;
|
|
56
93
|
}>, "many">;
|
|
57
94
|
}, "strict", z.ZodTypeAny, {
|
|
58
95
|
kind: "warmup" | "main" | "sportSpecific" | "supplemental" | "conditioning";
|
|
@@ -61,6 +98,7 @@ export declare const Section: z.ZodObject<{
|
|
|
61
98
|
sets: (string | null)[][];
|
|
62
99
|
groupLabel?: string | undefined;
|
|
63
100
|
notes?: string | undefined;
|
|
101
|
+
weights?: (string | null)[][] | undefined;
|
|
64
102
|
}[];
|
|
65
103
|
}, {
|
|
66
104
|
kind: "warmup" | "main" | "sportSpecific" | "supplemental" | "conditioning";
|
|
@@ -69,6 +107,25 @@ export declare const Section: z.ZodObject<{
|
|
|
69
107
|
sets: (string | null)[][];
|
|
70
108
|
groupLabel?: string | undefined;
|
|
71
109
|
notes?: string | undefined;
|
|
110
|
+
weights?: (string | null)[][] | undefined;
|
|
111
|
+
}[];
|
|
112
|
+
}>, {
|
|
113
|
+
kind: "warmup" | "main" | "sportSpecific" | "supplemental" | "conditioning";
|
|
114
|
+
exercises: {
|
|
115
|
+
name: string;
|
|
116
|
+
sets: (string | null)[][];
|
|
117
|
+
groupLabel?: string | undefined;
|
|
118
|
+
notes?: string | undefined;
|
|
119
|
+
weights?: (string | null)[][] | undefined;
|
|
120
|
+
}[];
|
|
121
|
+
}, {
|
|
122
|
+
kind: "warmup" | "main" | "sportSpecific" | "supplemental" | "conditioning";
|
|
123
|
+
exercises: {
|
|
124
|
+
name: string;
|
|
125
|
+
sets: (string | null)[][];
|
|
126
|
+
groupLabel?: string | undefined;
|
|
127
|
+
notes?: string | undefined;
|
|
128
|
+
weights?: (string | null)[][] | undefined;
|
|
72
129
|
}[];
|
|
73
130
|
}>;
|
|
74
131
|
export declare const SupplementalNote: z.ZodObject<{
|
|
@@ -86,23 +143,38 @@ export declare const SupplementalNote: z.ZodObject<{
|
|
|
86
143
|
}>;
|
|
87
144
|
export declare const Day: z.ZodObject<{
|
|
88
145
|
name: z.ZodString;
|
|
89
|
-
sections: z.ZodArray<z.ZodObject<{
|
|
146
|
+
sections: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
90
147
|
kind: z.ZodEnum<["warmup", "main", "sportSpecific", "supplemental", "conditioning"]>;
|
|
91
|
-
exercises: z.ZodArray<z.ZodObject<{
|
|
148
|
+
exercises: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
92
149
|
name: z.ZodString;
|
|
93
150
|
groupLabel: z.ZodOptional<z.ZodString>;
|
|
94
151
|
notes: z.ZodOptional<z.ZodString>;
|
|
95
152
|
sets: z.ZodArray<z.ZodArray<z.ZodNullable<z.ZodString>, "many">, "many">;
|
|
153
|
+
weights: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodNullable<z.ZodString>, "many">, "many">>;
|
|
96
154
|
}, "strict", z.ZodTypeAny, {
|
|
97
155
|
name: string;
|
|
98
156
|
sets: (string | null)[][];
|
|
99
157
|
groupLabel?: string | undefined;
|
|
100
158
|
notes?: string | undefined;
|
|
159
|
+
weights?: (string | null)[][] | undefined;
|
|
160
|
+
}, {
|
|
161
|
+
name: string;
|
|
162
|
+
sets: (string | null)[][];
|
|
163
|
+
groupLabel?: string | undefined;
|
|
164
|
+
notes?: string | undefined;
|
|
165
|
+
weights?: (string | null)[][] | undefined;
|
|
166
|
+
}>, {
|
|
167
|
+
name: string;
|
|
168
|
+
sets: (string | null)[][];
|
|
169
|
+
groupLabel?: string | undefined;
|
|
170
|
+
notes?: string | undefined;
|
|
171
|
+
weights?: (string | null)[][] | undefined;
|
|
101
172
|
}, {
|
|
102
173
|
name: string;
|
|
103
174
|
sets: (string | null)[][];
|
|
104
175
|
groupLabel?: string | undefined;
|
|
105
176
|
notes?: string | undefined;
|
|
177
|
+
weights?: (string | null)[][] | undefined;
|
|
106
178
|
}>, "many">;
|
|
107
179
|
}, "strict", z.ZodTypeAny, {
|
|
108
180
|
kind: "warmup" | "main" | "sportSpecific" | "supplemental" | "conditioning";
|
|
@@ -111,6 +183,7 @@ export declare const Day: z.ZodObject<{
|
|
|
111
183
|
sets: (string | null)[][];
|
|
112
184
|
groupLabel?: string | undefined;
|
|
113
185
|
notes?: string | undefined;
|
|
186
|
+
weights?: (string | null)[][] | undefined;
|
|
114
187
|
}[];
|
|
115
188
|
}, {
|
|
116
189
|
kind: "warmup" | "main" | "sportSpecific" | "supplemental" | "conditioning";
|
|
@@ -119,6 +192,25 @@ export declare const Day: z.ZodObject<{
|
|
|
119
192
|
sets: (string | null)[][];
|
|
120
193
|
groupLabel?: string | undefined;
|
|
121
194
|
notes?: string | undefined;
|
|
195
|
+
weights?: (string | null)[][] | undefined;
|
|
196
|
+
}[];
|
|
197
|
+
}>, {
|
|
198
|
+
kind: "warmup" | "main" | "sportSpecific" | "supplemental" | "conditioning";
|
|
199
|
+
exercises: {
|
|
200
|
+
name: string;
|
|
201
|
+
sets: (string | null)[][];
|
|
202
|
+
groupLabel?: string | undefined;
|
|
203
|
+
notes?: string | undefined;
|
|
204
|
+
weights?: (string | null)[][] | undefined;
|
|
205
|
+
}[];
|
|
206
|
+
}, {
|
|
207
|
+
kind: "warmup" | "main" | "sportSpecific" | "supplemental" | "conditioning";
|
|
208
|
+
exercises: {
|
|
209
|
+
name: string;
|
|
210
|
+
sets: (string | null)[][];
|
|
211
|
+
groupLabel?: string | undefined;
|
|
212
|
+
notes?: string | undefined;
|
|
213
|
+
weights?: (string | null)[][] | undefined;
|
|
122
214
|
}[];
|
|
123
215
|
}>, "many">;
|
|
124
216
|
supplementalNotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -143,6 +235,7 @@ export declare const Day: z.ZodObject<{
|
|
|
143
235
|
sets: (string | null)[][];
|
|
144
236
|
groupLabel?: string | undefined;
|
|
145
237
|
notes?: string | undefined;
|
|
238
|
+
weights?: (string | null)[][] | undefined;
|
|
146
239
|
}[];
|
|
147
240
|
}[];
|
|
148
241
|
supplementalNotes?: {
|
|
@@ -159,6 +252,7 @@ export declare const Day: z.ZodObject<{
|
|
|
159
252
|
sets: (string | null)[][];
|
|
160
253
|
groupLabel?: string | undefined;
|
|
161
254
|
notes?: string | undefined;
|
|
255
|
+
weights?: (string | null)[][] | undefined;
|
|
162
256
|
}[];
|
|
163
257
|
}[];
|
|
164
258
|
supplementalNotes?: {
|
|
@@ -167,28 +261,43 @@ export declare const Day: z.ZodObject<{
|
|
|
167
261
|
col: string;
|
|
168
262
|
}[] | undefined;
|
|
169
263
|
}>;
|
|
170
|
-
export declare const Program: z.ZodObject<{
|
|
264
|
+
export declare const Program: z.ZodEffects<z.ZodObject<{
|
|
171
265
|
client: z.ZodString;
|
|
172
266
|
programDate: z.ZodString;
|
|
173
267
|
days: z.ZodArray<z.ZodObject<{
|
|
174
268
|
name: z.ZodString;
|
|
175
|
-
sections: z.ZodArray<z.ZodObject<{
|
|
269
|
+
sections: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
176
270
|
kind: z.ZodEnum<["warmup", "main", "sportSpecific", "supplemental", "conditioning"]>;
|
|
177
|
-
exercises: z.ZodArray<z.ZodObject<{
|
|
271
|
+
exercises: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
178
272
|
name: z.ZodString;
|
|
179
273
|
groupLabel: z.ZodOptional<z.ZodString>;
|
|
180
274
|
notes: z.ZodOptional<z.ZodString>;
|
|
181
275
|
sets: z.ZodArray<z.ZodArray<z.ZodNullable<z.ZodString>, "many">, "many">;
|
|
276
|
+
weights: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodNullable<z.ZodString>, "many">, "many">>;
|
|
182
277
|
}, "strict", z.ZodTypeAny, {
|
|
183
278
|
name: string;
|
|
184
279
|
sets: (string | null)[][];
|
|
185
280
|
groupLabel?: string | undefined;
|
|
186
281
|
notes?: string | undefined;
|
|
282
|
+
weights?: (string | null)[][] | undefined;
|
|
187
283
|
}, {
|
|
188
284
|
name: string;
|
|
189
285
|
sets: (string | null)[][];
|
|
190
286
|
groupLabel?: string | undefined;
|
|
191
287
|
notes?: string | undefined;
|
|
288
|
+
weights?: (string | null)[][] | undefined;
|
|
289
|
+
}>, {
|
|
290
|
+
name: string;
|
|
291
|
+
sets: (string | null)[][];
|
|
292
|
+
groupLabel?: string | undefined;
|
|
293
|
+
notes?: string | undefined;
|
|
294
|
+
weights?: (string | null)[][] | undefined;
|
|
295
|
+
}, {
|
|
296
|
+
name: string;
|
|
297
|
+
sets: (string | null)[][];
|
|
298
|
+
groupLabel?: string | undefined;
|
|
299
|
+
notes?: string | undefined;
|
|
300
|
+
weights?: (string | null)[][] | undefined;
|
|
192
301
|
}>, "many">;
|
|
193
302
|
}, "strict", z.ZodTypeAny, {
|
|
194
303
|
kind: "warmup" | "main" | "sportSpecific" | "supplemental" | "conditioning";
|
|
@@ -197,6 +306,7 @@ export declare const Program: z.ZodObject<{
|
|
|
197
306
|
sets: (string | null)[][];
|
|
198
307
|
groupLabel?: string | undefined;
|
|
199
308
|
notes?: string | undefined;
|
|
309
|
+
weights?: (string | null)[][] | undefined;
|
|
200
310
|
}[];
|
|
201
311
|
}, {
|
|
202
312
|
kind: "warmup" | "main" | "sportSpecific" | "supplemental" | "conditioning";
|
|
@@ -205,6 +315,25 @@ export declare const Program: z.ZodObject<{
|
|
|
205
315
|
sets: (string | null)[][];
|
|
206
316
|
groupLabel?: string | undefined;
|
|
207
317
|
notes?: string | undefined;
|
|
318
|
+
weights?: (string | null)[][] | undefined;
|
|
319
|
+
}[];
|
|
320
|
+
}>, {
|
|
321
|
+
kind: "warmup" | "main" | "sportSpecific" | "supplemental" | "conditioning";
|
|
322
|
+
exercises: {
|
|
323
|
+
name: string;
|
|
324
|
+
sets: (string | null)[][];
|
|
325
|
+
groupLabel?: string | undefined;
|
|
326
|
+
notes?: string | undefined;
|
|
327
|
+
weights?: (string | null)[][] | undefined;
|
|
328
|
+
}[];
|
|
329
|
+
}, {
|
|
330
|
+
kind: "warmup" | "main" | "sportSpecific" | "supplemental" | "conditioning";
|
|
331
|
+
exercises: {
|
|
332
|
+
name: string;
|
|
333
|
+
sets: (string | null)[][];
|
|
334
|
+
groupLabel?: string | undefined;
|
|
335
|
+
notes?: string | undefined;
|
|
336
|
+
weights?: (string | null)[][] | undefined;
|
|
208
337
|
}[];
|
|
209
338
|
}>, "many">;
|
|
210
339
|
supplementalNotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -229,6 +358,7 @@ export declare const Program: z.ZodObject<{
|
|
|
229
358
|
sets: (string | null)[][];
|
|
230
359
|
groupLabel?: string | undefined;
|
|
231
360
|
notes?: string | undefined;
|
|
361
|
+
weights?: (string | null)[][] | undefined;
|
|
232
362
|
}[];
|
|
233
363
|
}[];
|
|
234
364
|
supplementalNotes?: {
|
|
@@ -245,6 +375,7 @@ export declare const Program: z.ZodObject<{
|
|
|
245
375
|
sets: (string | null)[][];
|
|
246
376
|
groupLabel?: string | undefined;
|
|
247
377
|
notes?: string | undefined;
|
|
378
|
+
weights?: (string | null)[][] | undefined;
|
|
248
379
|
}[];
|
|
249
380
|
}[];
|
|
250
381
|
supplementalNotes?: {
|
|
@@ -265,6 +396,49 @@ export declare const Program: z.ZodObject<{
|
|
|
265
396
|
sets: (string | null)[][];
|
|
266
397
|
groupLabel?: string | undefined;
|
|
267
398
|
notes?: string | undefined;
|
|
399
|
+
weights?: (string | null)[][] | undefined;
|
|
400
|
+
}[];
|
|
401
|
+
}[];
|
|
402
|
+
supplementalNotes?: {
|
|
403
|
+
value: string;
|
|
404
|
+
row: number;
|
|
405
|
+
col: string;
|
|
406
|
+
}[] | undefined;
|
|
407
|
+
}[];
|
|
408
|
+
}, {
|
|
409
|
+
client: string;
|
|
410
|
+
programDate: string;
|
|
411
|
+
days: {
|
|
412
|
+
name: string;
|
|
413
|
+
sections: {
|
|
414
|
+
kind: "warmup" | "main" | "sportSpecific" | "supplemental" | "conditioning";
|
|
415
|
+
exercises: {
|
|
416
|
+
name: string;
|
|
417
|
+
sets: (string | null)[][];
|
|
418
|
+
groupLabel?: string | undefined;
|
|
419
|
+
notes?: string | undefined;
|
|
420
|
+
weights?: (string | null)[][] | undefined;
|
|
421
|
+
}[];
|
|
422
|
+
}[];
|
|
423
|
+
supplementalNotes?: {
|
|
424
|
+
value: string;
|
|
425
|
+
row: number;
|
|
426
|
+
col: string;
|
|
427
|
+
}[] | undefined;
|
|
428
|
+
}[];
|
|
429
|
+
}>, {
|
|
430
|
+
client: string;
|
|
431
|
+
programDate: string;
|
|
432
|
+
days: {
|
|
433
|
+
name: string;
|
|
434
|
+
sections: {
|
|
435
|
+
kind: "warmup" | "main" | "sportSpecific" | "supplemental" | "conditioning";
|
|
436
|
+
exercises: {
|
|
437
|
+
name: string;
|
|
438
|
+
sets: (string | null)[][];
|
|
439
|
+
groupLabel?: string | undefined;
|
|
440
|
+
notes?: string | undefined;
|
|
441
|
+
weights?: (string | null)[][] | undefined;
|
|
268
442
|
}[];
|
|
269
443
|
}[];
|
|
270
444
|
supplementalNotes?: {
|
|
@@ -285,6 +459,7 @@ export declare const Program: z.ZodObject<{
|
|
|
285
459
|
sets: (string | null)[][];
|
|
286
460
|
groupLabel?: string | undefined;
|
|
287
461
|
notes?: string | undefined;
|
|
462
|
+
weights?: (string | null)[][] | undefined;
|
|
288
463
|
}[];
|
|
289
464
|
}[];
|
|
290
465
|
supplementalNotes?: {
|
|
@@ -296,6 +471,7 @@ export declare const Program: z.ZodObject<{
|
|
|
296
471
|
}>;
|
|
297
472
|
export type Cell = z.infer<typeof Cell>;
|
|
298
473
|
export type SetRow = z.infer<typeof SetRow>;
|
|
474
|
+
export type WeightCell = z.infer<typeof WeightCell>;
|
|
299
475
|
export type Exercise = z.infer<typeof Exercise>;
|
|
300
476
|
export type SectionKind = z.infer<typeof SectionKind>;
|
|
301
477
|
export type Section = z.infer<typeof Section>;
|
|
@@ -310,28 +486,43 @@ export declare const ProgramXlsxToJsonInput: z.ZodObject<{
|
|
|
310
486
|
xlsxPath: string;
|
|
311
487
|
}>;
|
|
312
488
|
export declare const ProgramXlsxToJsonOutput: z.ZodObject<{
|
|
313
|
-
program: z.ZodObject<{
|
|
489
|
+
program: z.ZodEffects<z.ZodObject<{
|
|
314
490
|
client: z.ZodString;
|
|
315
491
|
programDate: z.ZodString;
|
|
316
492
|
days: z.ZodArray<z.ZodObject<{
|
|
317
493
|
name: z.ZodString;
|
|
318
|
-
sections: z.ZodArray<z.ZodObject<{
|
|
494
|
+
sections: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
319
495
|
kind: z.ZodEnum<["warmup", "main", "sportSpecific", "supplemental", "conditioning"]>;
|
|
320
|
-
exercises: z.ZodArray<z.ZodObject<{
|
|
496
|
+
exercises: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
321
497
|
name: z.ZodString;
|
|
322
498
|
groupLabel: z.ZodOptional<z.ZodString>;
|
|
323
499
|
notes: z.ZodOptional<z.ZodString>;
|
|
324
500
|
sets: z.ZodArray<z.ZodArray<z.ZodNullable<z.ZodString>, "many">, "many">;
|
|
501
|
+
weights: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodNullable<z.ZodString>, "many">, "many">>;
|
|
325
502
|
}, "strict", z.ZodTypeAny, {
|
|
326
503
|
name: string;
|
|
327
504
|
sets: (string | null)[][];
|
|
328
505
|
groupLabel?: string | undefined;
|
|
329
506
|
notes?: string | undefined;
|
|
507
|
+
weights?: (string | null)[][] | undefined;
|
|
330
508
|
}, {
|
|
331
509
|
name: string;
|
|
332
510
|
sets: (string | null)[][];
|
|
333
511
|
groupLabel?: string | undefined;
|
|
334
512
|
notes?: string | undefined;
|
|
513
|
+
weights?: (string | null)[][] | undefined;
|
|
514
|
+
}>, {
|
|
515
|
+
name: string;
|
|
516
|
+
sets: (string | null)[][];
|
|
517
|
+
groupLabel?: string | undefined;
|
|
518
|
+
notes?: string | undefined;
|
|
519
|
+
weights?: (string | null)[][] | undefined;
|
|
520
|
+
}, {
|
|
521
|
+
name: string;
|
|
522
|
+
sets: (string | null)[][];
|
|
523
|
+
groupLabel?: string | undefined;
|
|
524
|
+
notes?: string | undefined;
|
|
525
|
+
weights?: (string | null)[][] | undefined;
|
|
335
526
|
}>, "many">;
|
|
336
527
|
}, "strict", z.ZodTypeAny, {
|
|
337
528
|
kind: "warmup" | "main" | "sportSpecific" | "supplemental" | "conditioning";
|
|
@@ -340,6 +531,7 @@ export declare const ProgramXlsxToJsonOutput: z.ZodObject<{
|
|
|
340
531
|
sets: (string | null)[][];
|
|
341
532
|
groupLabel?: string | undefined;
|
|
342
533
|
notes?: string | undefined;
|
|
534
|
+
weights?: (string | null)[][] | undefined;
|
|
343
535
|
}[];
|
|
344
536
|
}, {
|
|
345
537
|
kind: "warmup" | "main" | "sportSpecific" | "supplemental" | "conditioning";
|
|
@@ -348,6 +540,25 @@ export declare const ProgramXlsxToJsonOutput: z.ZodObject<{
|
|
|
348
540
|
sets: (string | null)[][];
|
|
349
541
|
groupLabel?: string | undefined;
|
|
350
542
|
notes?: string | undefined;
|
|
543
|
+
weights?: (string | null)[][] | undefined;
|
|
544
|
+
}[];
|
|
545
|
+
}>, {
|
|
546
|
+
kind: "warmup" | "main" | "sportSpecific" | "supplemental" | "conditioning";
|
|
547
|
+
exercises: {
|
|
548
|
+
name: string;
|
|
549
|
+
sets: (string | null)[][];
|
|
550
|
+
groupLabel?: string | undefined;
|
|
551
|
+
notes?: string | undefined;
|
|
552
|
+
weights?: (string | null)[][] | undefined;
|
|
553
|
+
}[];
|
|
554
|
+
}, {
|
|
555
|
+
kind: "warmup" | "main" | "sportSpecific" | "supplemental" | "conditioning";
|
|
556
|
+
exercises: {
|
|
557
|
+
name: string;
|
|
558
|
+
sets: (string | null)[][];
|
|
559
|
+
groupLabel?: string | undefined;
|
|
560
|
+
notes?: string | undefined;
|
|
561
|
+
weights?: (string | null)[][] | undefined;
|
|
351
562
|
}[];
|
|
352
563
|
}>, "many">;
|
|
353
564
|
supplementalNotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -372,6 +583,7 @@ export declare const ProgramXlsxToJsonOutput: z.ZodObject<{
|
|
|
372
583
|
sets: (string | null)[][];
|
|
373
584
|
groupLabel?: string | undefined;
|
|
374
585
|
notes?: string | undefined;
|
|
586
|
+
weights?: (string | null)[][] | undefined;
|
|
375
587
|
}[];
|
|
376
588
|
}[];
|
|
377
589
|
supplementalNotes?: {
|
|
@@ -388,6 +600,7 @@ export declare const ProgramXlsxToJsonOutput: z.ZodObject<{
|
|
|
388
600
|
sets: (string | null)[][];
|
|
389
601
|
groupLabel?: string | undefined;
|
|
390
602
|
notes?: string | undefined;
|
|
603
|
+
weights?: (string | null)[][] | undefined;
|
|
391
604
|
}[];
|
|
392
605
|
}[];
|
|
393
606
|
supplementalNotes?: {
|
|
@@ -408,6 +621,49 @@ export declare const ProgramXlsxToJsonOutput: z.ZodObject<{
|
|
|
408
621
|
sets: (string | null)[][];
|
|
409
622
|
groupLabel?: string | undefined;
|
|
410
623
|
notes?: string | undefined;
|
|
624
|
+
weights?: (string | null)[][] | undefined;
|
|
625
|
+
}[];
|
|
626
|
+
}[];
|
|
627
|
+
supplementalNotes?: {
|
|
628
|
+
value: string;
|
|
629
|
+
row: number;
|
|
630
|
+
col: string;
|
|
631
|
+
}[] | undefined;
|
|
632
|
+
}[];
|
|
633
|
+
}, {
|
|
634
|
+
client: string;
|
|
635
|
+
programDate: string;
|
|
636
|
+
days: {
|
|
637
|
+
name: string;
|
|
638
|
+
sections: {
|
|
639
|
+
kind: "warmup" | "main" | "sportSpecific" | "supplemental" | "conditioning";
|
|
640
|
+
exercises: {
|
|
641
|
+
name: string;
|
|
642
|
+
sets: (string | null)[][];
|
|
643
|
+
groupLabel?: string | undefined;
|
|
644
|
+
notes?: string | undefined;
|
|
645
|
+
weights?: (string | null)[][] | undefined;
|
|
646
|
+
}[];
|
|
647
|
+
}[];
|
|
648
|
+
supplementalNotes?: {
|
|
649
|
+
value: string;
|
|
650
|
+
row: number;
|
|
651
|
+
col: string;
|
|
652
|
+
}[] | undefined;
|
|
653
|
+
}[];
|
|
654
|
+
}>, {
|
|
655
|
+
client: string;
|
|
656
|
+
programDate: string;
|
|
657
|
+
days: {
|
|
658
|
+
name: string;
|
|
659
|
+
sections: {
|
|
660
|
+
kind: "warmup" | "main" | "sportSpecific" | "supplemental" | "conditioning";
|
|
661
|
+
exercises: {
|
|
662
|
+
name: string;
|
|
663
|
+
sets: (string | null)[][];
|
|
664
|
+
groupLabel?: string | undefined;
|
|
665
|
+
notes?: string | undefined;
|
|
666
|
+
weights?: (string | null)[][] | undefined;
|
|
411
667
|
}[];
|
|
412
668
|
}[];
|
|
413
669
|
supplementalNotes?: {
|
|
@@ -428,6 +684,7 @@ export declare const ProgramXlsxToJsonOutput: z.ZodObject<{
|
|
|
428
684
|
sets: (string | null)[][];
|
|
429
685
|
groupLabel?: string | undefined;
|
|
430
686
|
notes?: string | undefined;
|
|
687
|
+
weights?: (string | null)[][] | undefined;
|
|
431
688
|
}[];
|
|
432
689
|
}[];
|
|
433
690
|
supplementalNotes?: {
|
|
@@ -451,6 +708,7 @@ export declare const ProgramXlsxToJsonOutput: z.ZodObject<{
|
|
|
451
708
|
sets: (string | null)[][];
|
|
452
709
|
groupLabel?: string | undefined;
|
|
453
710
|
notes?: string | undefined;
|
|
711
|
+
weights?: (string | null)[][] | undefined;
|
|
454
712
|
}[];
|
|
455
713
|
}[];
|
|
456
714
|
supplementalNotes?: {
|
|
@@ -474,6 +732,7 @@ export declare const ProgramXlsxToJsonOutput: z.ZodObject<{
|
|
|
474
732
|
sets: (string | null)[][];
|
|
475
733
|
groupLabel?: string | undefined;
|
|
476
734
|
notes?: string | undefined;
|
|
735
|
+
weights?: (string | null)[][] | undefined;
|
|
477
736
|
}[];
|
|
478
737
|
}[];
|
|
479
738
|
supplementalNotes?: {
|
|
@@ -486,28 +745,43 @@ export declare const ProgramXlsxToJsonOutput: z.ZodObject<{
|
|
|
486
745
|
warnings: string[];
|
|
487
746
|
}>;
|
|
488
747
|
export declare const ProgramJsonToXlsxInput: z.ZodObject<{
|
|
489
|
-
program: z.ZodObject<{
|
|
748
|
+
program: z.ZodEffects<z.ZodObject<{
|
|
490
749
|
client: z.ZodString;
|
|
491
750
|
programDate: z.ZodString;
|
|
492
751
|
days: z.ZodArray<z.ZodObject<{
|
|
493
752
|
name: z.ZodString;
|
|
494
|
-
sections: z.ZodArray<z.ZodObject<{
|
|
753
|
+
sections: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
495
754
|
kind: z.ZodEnum<["warmup", "main", "sportSpecific", "supplemental", "conditioning"]>;
|
|
496
|
-
exercises: z.ZodArray<z.ZodObject<{
|
|
755
|
+
exercises: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
497
756
|
name: z.ZodString;
|
|
498
757
|
groupLabel: z.ZodOptional<z.ZodString>;
|
|
499
758
|
notes: z.ZodOptional<z.ZodString>;
|
|
500
759
|
sets: z.ZodArray<z.ZodArray<z.ZodNullable<z.ZodString>, "many">, "many">;
|
|
760
|
+
weights: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodNullable<z.ZodString>, "many">, "many">>;
|
|
501
761
|
}, "strict", z.ZodTypeAny, {
|
|
502
762
|
name: string;
|
|
503
763
|
sets: (string | null)[][];
|
|
504
764
|
groupLabel?: string | undefined;
|
|
505
765
|
notes?: string | undefined;
|
|
766
|
+
weights?: (string | null)[][] | undefined;
|
|
767
|
+
}, {
|
|
768
|
+
name: string;
|
|
769
|
+
sets: (string | null)[][];
|
|
770
|
+
groupLabel?: string | undefined;
|
|
771
|
+
notes?: string | undefined;
|
|
772
|
+
weights?: (string | null)[][] | undefined;
|
|
773
|
+
}>, {
|
|
774
|
+
name: string;
|
|
775
|
+
sets: (string | null)[][];
|
|
776
|
+
groupLabel?: string | undefined;
|
|
777
|
+
notes?: string | undefined;
|
|
778
|
+
weights?: (string | null)[][] | undefined;
|
|
506
779
|
}, {
|
|
507
780
|
name: string;
|
|
508
781
|
sets: (string | null)[][];
|
|
509
782
|
groupLabel?: string | undefined;
|
|
510
783
|
notes?: string | undefined;
|
|
784
|
+
weights?: (string | null)[][] | undefined;
|
|
511
785
|
}>, "many">;
|
|
512
786
|
}, "strict", z.ZodTypeAny, {
|
|
513
787
|
kind: "warmup" | "main" | "sportSpecific" | "supplemental" | "conditioning";
|
|
@@ -516,6 +790,7 @@ export declare const ProgramJsonToXlsxInput: z.ZodObject<{
|
|
|
516
790
|
sets: (string | null)[][];
|
|
517
791
|
groupLabel?: string | undefined;
|
|
518
792
|
notes?: string | undefined;
|
|
793
|
+
weights?: (string | null)[][] | undefined;
|
|
519
794
|
}[];
|
|
520
795
|
}, {
|
|
521
796
|
kind: "warmup" | "main" | "sportSpecific" | "supplemental" | "conditioning";
|
|
@@ -524,6 +799,25 @@ export declare const ProgramJsonToXlsxInput: z.ZodObject<{
|
|
|
524
799
|
sets: (string | null)[][];
|
|
525
800
|
groupLabel?: string | undefined;
|
|
526
801
|
notes?: string | undefined;
|
|
802
|
+
weights?: (string | null)[][] | undefined;
|
|
803
|
+
}[];
|
|
804
|
+
}>, {
|
|
805
|
+
kind: "warmup" | "main" | "sportSpecific" | "supplemental" | "conditioning";
|
|
806
|
+
exercises: {
|
|
807
|
+
name: string;
|
|
808
|
+
sets: (string | null)[][];
|
|
809
|
+
groupLabel?: string | undefined;
|
|
810
|
+
notes?: string | undefined;
|
|
811
|
+
weights?: (string | null)[][] | undefined;
|
|
812
|
+
}[];
|
|
813
|
+
}, {
|
|
814
|
+
kind: "warmup" | "main" | "sportSpecific" | "supplemental" | "conditioning";
|
|
815
|
+
exercises: {
|
|
816
|
+
name: string;
|
|
817
|
+
sets: (string | null)[][];
|
|
818
|
+
groupLabel?: string | undefined;
|
|
819
|
+
notes?: string | undefined;
|
|
820
|
+
weights?: (string | null)[][] | undefined;
|
|
527
821
|
}[];
|
|
528
822
|
}>, "many">;
|
|
529
823
|
supplementalNotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -548,6 +842,7 @@ export declare const ProgramJsonToXlsxInput: z.ZodObject<{
|
|
|
548
842
|
sets: (string | null)[][];
|
|
549
843
|
groupLabel?: string | undefined;
|
|
550
844
|
notes?: string | undefined;
|
|
845
|
+
weights?: (string | null)[][] | undefined;
|
|
551
846
|
}[];
|
|
552
847
|
}[];
|
|
553
848
|
supplementalNotes?: {
|
|
@@ -564,6 +859,7 @@ export declare const ProgramJsonToXlsxInput: z.ZodObject<{
|
|
|
564
859
|
sets: (string | null)[][];
|
|
565
860
|
groupLabel?: string | undefined;
|
|
566
861
|
notes?: string | undefined;
|
|
862
|
+
weights?: (string | null)[][] | undefined;
|
|
567
863
|
}[];
|
|
568
864
|
}[];
|
|
569
865
|
supplementalNotes?: {
|
|
@@ -584,6 +880,49 @@ export declare const ProgramJsonToXlsxInput: z.ZodObject<{
|
|
|
584
880
|
sets: (string | null)[][];
|
|
585
881
|
groupLabel?: string | undefined;
|
|
586
882
|
notes?: string | undefined;
|
|
883
|
+
weights?: (string | null)[][] | undefined;
|
|
884
|
+
}[];
|
|
885
|
+
}[];
|
|
886
|
+
supplementalNotes?: {
|
|
887
|
+
value: string;
|
|
888
|
+
row: number;
|
|
889
|
+
col: string;
|
|
890
|
+
}[] | undefined;
|
|
891
|
+
}[];
|
|
892
|
+
}, {
|
|
893
|
+
client: string;
|
|
894
|
+
programDate: string;
|
|
895
|
+
days: {
|
|
896
|
+
name: string;
|
|
897
|
+
sections: {
|
|
898
|
+
kind: "warmup" | "main" | "sportSpecific" | "supplemental" | "conditioning";
|
|
899
|
+
exercises: {
|
|
900
|
+
name: string;
|
|
901
|
+
sets: (string | null)[][];
|
|
902
|
+
groupLabel?: string | undefined;
|
|
903
|
+
notes?: string | undefined;
|
|
904
|
+
weights?: (string | null)[][] | undefined;
|
|
905
|
+
}[];
|
|
906
|
+
}[];
|
|
907
|
+
supplementalNotes?: {
|
|
908
|
+
value: string;
|
|
909
|
+
row: number;
|
|
910
|
+
col: string;
|
|
911
|
+
}[] | undefined;
|
|
912
|
+
}[];
|
|
913
|
+
}>, {
|
|
914
|
+
client: string;
|
|
915
|
+
programDate: string;
|
|
916
|
+
days: {
|
|
917
|
+
name: string;
|
|
918
|
+
sections: {
|
|
919
|
+
kind: "warmup" | "main" | "sportSpecific" | "supplemental" | "conditioning";
|
|
920
|
+
exercises: {
|
|
921
|
+
name: string;
|
|
922
|
+
sets: (string | null)[][];
|
|
923
|
+
groupLabel?: string | undefined;
|
|
924
|
+
notes?: string | undefined;
|
|
925
|
+
weights?: (string | null)[][] | undefined;
|
|
587
926
|
}[];
|
|
588
927
|
}[];
|
|
589
928
|
supplementalNotes?: {
|
|
@@ -604,6 +943,7 @@ export declare const ProgramJsonToXlsxInput: z.ZodObject<{
|
|
|
604
943
|
sets: (string | null)[][];
|
|
605
944
|
groupLabel?: string | undefined;
|
|
606
945
|
notes?: string | undefined;
|
|
946
|
+
weights?: (string | null)[][] | undefined;
|
|
607
947
|
}[];
|
|
608
948
|
}[];
|
|
609
949
|
supplementalNotes?: {
|
|
@@ -627,6 +967,7 @@ export declare const ProgramJsonToXlsxInput: z.ZodObject<{
|
|
|
627
967
|
sets: (string | null)[][];
|
|
628
968
|
groupLabel?: string | undefined;
|
|
629
969
|
notes?: string | undefined;
|
|
970
|
+
weights?: (string | null)[][] | undefined;
|
|
630
971
|
}[];
|
|
631
972
|
}[];
|
|
632
973
|
supplementalNotes?: {
|
|
@@ -650,6 +991,7 @@ export declare const ProgramJsonToXlsxInput: z.ZodObject<{
|
|
|
650
991
|
sets: (string | null)[][];
|
|
651
992
|
groupLabel?: string | undefined;
|
|
652
993
|
notes?: string | undefined;
|
|
994
|
+
weights?: (string | null)[][] | undefined;
|
|
653
995
|
}[];
|
|
654
996
|
}[];
|
|
655
997
|
supplementalNotes?: {
|
|
@@ -675,5 +1017,7 @@ export type ProgramXlsxToJsonInput = z.infer<typeof ProgramXlsxToJsonInput>;
|
|
|
675
1017
|
export type ProgramXlsxToJsonOutput = z.infer<typeof ProgramXlsxToJsonOutput>;
|
|
676
1018
|
export type ProgramJsonToXlsxInput = z.infer<typeof ProgramJsonToXlsxInput>;
|
|
677
1019
|
export type ProgramJsonToXlsxOutput = z.infer<typeof ProgramJsonToXlsxOutput>;
|
|
678
|
-
export declare const
|
|
1020
|
+
export declare const DEFAULT_WEEK_COUNT = 6;
|
|
1021
|
+
/** The number of weeks a program covers: the length of its set rows. */
|
|
1022
|
+
export declare function programWeekCount(program: Program): number;
|
|
679
1023
|
//# sourceMappingURL=program.d.ts.map
|