@composable-os/pack-programs 0.0.0-stage → 0.1.0-beta.11
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/LICENSE +109 -0
- package/dist/authoring.d.ts +47 -0
- package/dist/authoring.js +493 -0
- package/dist/blocks/programs-bank/exercise-bank.d.ts +4 -0
- package/dist/blocks/programs-bank/exercise-bank.js +68 -0
- package/dist/blocks/programs-builder/program-builder.d.ts +26 -0
- package/dist/blocks/programs-builder/program-builder.js +295 -0
- package/dist/blocks/programs-class-today/class-today.d.ts +6 -0
- package/dist/blocks/programs-class-today/class-today.js +15 -0
- package/dist/blocks/programs-coach-client/coach-client.d.ts +5 -0
- package/dist/blocks/programs-coach-client/coach-client.js +10 -0
- package/dist/blocks/programs-native-class-today/class-today-screen.d.ts +6 -0
- package/dist/blocks/programs-native-class-today/class-today-screen.js +14 -0
- package/dist/blocks/programs-native-coach-client/coach-client-screen.d.ts +7 -0
- package/dist/blocks/programs-native-coach-client/coach-client-screen.js +9 -0
- package/dist/blocks/programs-native-progress/progress-screen.d.ts +5 -0
- package/dist/blocks/programs-native-progress/progress-screen.js +31 -0
- package/dist/blocks/programs-native-session/session-screen.d.ts +7 -0
- package/dist/blocks/programs-native-session/session-screen.js +130 -0
- package/dist/blocks/programs-native-today/today-screen.d.ts +7 -0
- package/dist/blocks/programs-native-today/today-screen.js +11 -0
- package/dist/blocks/programs-progress/progress.d.ts +10 -0
- package/dist/blocks/programs-progress/progress.js +40 -0
- package/dist/blocks/programs-session/session-view.d.ts +9 -0
- package/dist/blocks/programs-session/session-view.js +116 -0
- package/dist/blocks/programs-today/today.d.ts +7 -0
- package/dist/blocks/programs-today/today.js +16 -0
- package/dist/client/index.d.ts +1723 -0
- package/dist/client/index.js +779 -0
- package/dist/dashboards.d.ts +5 -0
- package/dist/dashboards.js +145 -0
- package/dist/index.d.ts +1181 -0
- package/dist/index.js +610 -0
- package/dist/layout.d.ts +88 -0
- package/dist/layout.js +268 -0
- package/dist/tools.d.ts +344 -0
- package/dist/tools.js +930 -0
- package/package.json +36 -4
- package/README.md +0 -3
package/dist/layout.d.ts
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import type { DocumentSchema } from "@composable-os/sdk";
|
|
2
|
+
/** The most weeks a program has, and sessions a week: 52 × 14 sessions at most per assignment. */
|
|
3
|
+
export declare const MAX_WEEKS = 52;
|
|
4
|
+
export declare const MAX_SESSIONS_PER_WEEK = 14;
|
|
5
|
+
/** A program's layout: its weeks of sessions. */
|
|
6
|
+
export declare const LAYOUT_SCHEMA: DocumentSchema;
|
|
7
|
+
/** One generated session's plan: a session of the layout, as the version had it. */
|
|
8
|
+
export declare const SESSION_PLAN_SCHEMA: DocumentSchema;
|
|
9
|
+
export type SetTarget = {
|
|
10
|
+
kind: "reps";
|
|
11
|
+
reps: number;
|
|
12
|
+
repsMax?: number;
|
|
13
|
+
load?: number;
|
|
14
|
+
tempo?: string;
|
|
15
|
+
rest?: number;
|
|
16
|
+
} | {
|
|
17
|
+
kind: "time";
|
|
18
|
+
seconds: number;
|
|
19
|
+
load?: number;
|
|
20
|
+
rest?: number;
|
|
21
|
+
} | {
|
|
22
|
+
kind: "hold";
|
|
23
|
+
seconds: number;
|
|
24
|
+
holds?: number;
|
|
25
|
+
load?: number;
|
|
26
|
+
rest?: number;
|
|
27
|
+
};
|
|
28
|
+
export interface Prescription {
|
|
29
|
+
exercise: string;
|
|
30
|
+
sets: SetTarget[];
|
|
31
|
+
note?: string;
|
|
32
|
+
}
|
|
33
|
+
export interface Note {
|
|
34
|
+
text: string;
|
|
35
|
+
members?: boolean;
|
|
36
|
+
}
|
|
37
|
+
export type Level = {
|
|
38
|
+
mode: "one";
|
|
39
|
+
level: number;
|
|
40
|
+
exercise: Prescription;
|
|
41
|
+
} | {
|
|
42
|
+
mode: "together" | "alternatives";
|
|
43
|
+
level: number;
|
|
44
|
+
exercises: Prescription[];
|
|
45
|
+
};
|
|
46
|
+
export type Item = {
|
|
47
|
+
kind: "all";
|
|
48
|
+
label: string;
|
|
49
|
+
exercises: Prescription[];
|
|
50
|
+
notes?: Note[];
|
|
51
|
+
} | {
|
|
52
|
+
kind: "levels";
|
|
53
|
+
label: string;
|
|
54
|
+
levels: Level[];
|
|
55
|
+
notes?: Note[];
|
|
56
|
+
};
|
|
57
|
+
export interface Block {
|
|
58
|
+
label: string;
|
|
59
|
+
rounds?: number;
|
|
60
|
+
items: Item[];
|
|
61
|
+
notes?: Note[];
|
|
62
|
+
}
|
|
63
|
+
export interface Session {
|
|
64
|
+
name: string;
|
|
65
|
+
focus?: string;
|
|
66
|
+
day: number;
|
|
67
|
+
warmup?: {
|
|
68
|
+
text?: string;
|
|
69
|
+
exercises?: Prescription[];
|
|
70
|
+
};
|
|
71
|
+
blocks: Block[];
|
|
72
|
+
notes?: Note[];
|
|
73
|
+
}
|
|
74
|
+
export interface Layout {
|
|
75
|
+
weeks: {
|
|
76
|
+
label?: string;
|
|
77
|
+
sessions: Session[];
|
|
78
|
+
}[];
|
|
79
|
+
notes?: Note[];
|
|
80
|
+
}
|
|
81
|
+
/** The exercises of a level, whatever its mode. */
|
|
82
|
+
export declare function levelExercises(level: Level): Prescription[];
|
|
83
|
+
/** Every prescription of a session, with the item label and level it is under. */
|
|
84
|
+
export declare function prescriptions(session: Session): {
|
|
85
|
+
item: string;
|
|
86
|
+
level: number | null;
|
|
87
|
+
prescription: Prescription;
|
|
88
|
+
}[];
|
package/dist/layout.js
ADDED
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
const LOAD = {
|
|
2
|
+
type: "number",
|
|
3
|
+
min: 0,
|
|
4
|
+
max: 1000,
|
|
5
|
+
step: 0.25,
|
|
6
|
+
optional: true,
|
|
7
|
+
description: "Kilograms, added to the body",
|
|
8
|
+
};
|
|
9
|
+
const TEMPO = {
|
|
10
|
+
type: "text",
|
|
11
|
+
min: 4,
|
|
12
|
+
max: 4,
|
|
13
|
+
chars: "0123456789X",
|
|
14
|
+
optional: true,
|
|
15
|
+
description: "Four characters, down-pause-up-pause: 32X1",
|
|
16
|
+
};
|
|
17
|
+
const REST = {
|
|
18
|
+
type: "number",
|
|
19
|
+
min: 0,
|
|
20
|
+
max: 1800,
|
|
21
|
+
integer: true,
|
|
22
|
+
optional: true,
|
|
23
|
+
description: "Seconds of rest after the set",
|
|
24
|
+
};
|
|
25
|
+
/** One set's target: reps, a time, or holds. */
|
|
26
|
+
const SET = {
|
|
27
|
+
type: "union",
|
|
28
|
+
tag: "kind",
|
|
29
|
+
description: "One set's target",
|
|
30
|
+
variants: {
|
|
31
|
+
reps: {
|
|
32
|
+
type: "object",
|
|
33
|
+
fields: {
|
|
34
|
+
reps: { type: "number", min: 1, max: 999, integer: true },
|
|
35
|
+
repsMax: {
|
|
36
|
+
type: "number",
|
|
37
|
+
min: 1,
|
|
38
|
+
max: 999,
|
|
39
|
+
integer: true,
|
|
40
|
+
optional: true,
|
|
41
|
+
description: "The top of a range: 8 to 12",
|
|
42
|
+
},
|
|
43
|
+
load: LOAD,
|
|
44
|
+
tempo: TEMPO,
|
|
45
|
+
rest: REST,
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
time: {
|
|
49
|
+
type: "object",
|
|
50
|
+
fields: {
|
|
51
|
+
seconds: { type: "number", min: 1, max: 7200, integer: true },
|
|
52
|
+
load: LOAD,
|
|
53
|
+
rest: REST,
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
hold: {
|
|
57
|
+
type: "object",
|
|
58
|
+
fields: {
|
|
59
|
+
seconds: { type: "number", min: 1, max: 600, integer: true, description: "Each hold" },
|
|
60
|
+
holds: {
|
|
61
|
+
type: "number",
|
|
62
|
+
min: 2,
|
|
63
|
+
max: 10,
|
|
64
|
+
integer: true,
|
|
65
|
+
optional: true,
|
|
66
|
+
description: "Holds in the set (one when left out)",
|
|
67
|
+
},
|
|
68
|
+
load: LOAD,
|
|
69
|
+
rest: REST,
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
};
|
|
74
|
+
/** A bank exercise with its sets and the coach's words for it. */
|
|
75
|
+
const PRESCRIPTION = {
|
|
76
|
+
type: "object",
|
|
77
|
+
fields: {
|
|
78
|
+
exercise: { type: "ref", to: "programs.exercise" },
|
|
79
|
+
sets: { type: "array", min: 1, max: 12, of: { type: "use", def: "set" } },
|
|
80
|
+
note: {
|
|
81
|
+
type: "text",
|
|
82
|
+
max: 300,
|
|
83
|
+
optional: true,
|
|
84
|
+
description: "The coach's wording beside the numbers: legs as straight as possible",
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
};
|
|
88
|
+
const NOTE = {
|
|
89
|
+
type: "object",
|
|
90
|
+
description: "For coaches only unless marked as shown to members",
|
|
91
|
+
fields: {
|
|
92
|
+
text: { type: "text", min: 1, max: 800, multiline: true },
|
|
93
|
+
members: { type: "boolean", optional: true, description: "Shown to members" },
|
|
94
|
+
},
|
|
95
|
+
private: { unless: "members" },
|
|
96
|
+
};
|
|
97
|
+
const NOTES = {
|
|
98
|
+
type: "array",
|
|
99
|
+
max: 10,
|
|
100
|
+
optional: true,
|
|
101
|
+
of: { type: "use", def: "note" },
|
|
102
|
+
};
|
|
103
|
+
const EXERCISES = (min) => ({
|
|
104
|
+
type: "array",
|
|
105
|
+
min,
|
|
106
|
+
max: 3,
|
|
107
|
+
of: { type: "use", def: "prescription" },
|
|
108
|
+
});
|
|
109
|
+
const LEVEL = {
|
|
110
|
+
type: "union",
|
|
111
|
+
tag: "mode",
|
|
112
|
+
description: "One exercise, several done together, or alternatives",
|
|
113
|
+
variants: {
|
|
114
|
+
one: {
|
|
115
|
+
type: "object",
|
|
116
|
+
fields: {
|
|
117
|
+
level: { type: "number", min: 1, max: 5, integer: true },
|
|
118
|
+
exercise: { type: "use", def: "prescription" },
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
together: {
|
|
122
|
+
type: "object",
|
|
123
|
+
fields: {
|
|
124
|
+
level: { type: "number", min: 1, max: 5, integer: true },
|
|
125
|
+
exercises: EXERCISES(2),
|
|
126
|
+
},
|
|
127
|
+
},
|
|
128
|
+
alternatives: {
|
|
129
|
+
type: "object",
|
|
130
|
+
fields: {
|
|
131
|
+
level: { type: "number", min: 1, max: 5, integer: true },
|
|
132
|
+
exercises: EXERCISES(2),
|
|
133
|
+
},
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
};
|
|
137
|
+
const ITEM = {
|
|
138
|
+
type: "union",
|
|
139
|
+
tag: "kind",
|
|
140
|
+
variants: {
|
|
141
|
+
all: {
|
|
142
|
+
type: "object",
|
|
143
|
+
description: "For everyone: one exercise, or several done together",
|
|
144
|
+
fields: {
|
|
145
|
+
label: { type: "text", min: 1, max: 6 },
|
|
146
|
+
exercises: EXERCISES(1),
|
|
147
|
+
notes: NOTES,
|
|
148
|
+
},
|
|
149
|
+
},
|
|
150
|
+
levels: {
|
|
151
|
+
type: "object",
|
|
152
|
+
description: "Up to five levels, possibly sparse (only 1 and 5)",
|
|
153
|
+
fields: {
|
|
154
|
+
label: { type: "text", min: 1, max: 6 },
|
|
155
|
+
levels: {
|
|
156
|
+
type: "array",
|
|
157
|
+
min: 1,
|
|
158
|
+
max: 5,
|
|
159
|
+
unique: "level",
|
|
160
|
+
of: { type: "use", def: "level" },
|
|
161
|
+
},
|
|
162
|
+
notes: NOTES,
|
|
163
|
+
},
|
|
164
|
+
},
|
|
165
|
+
},
|
|
166
|
+
};
|
|
167
|
+
const BLOCK = {
|
|
168
|
+
type: "object",
|
|
169
|
+
fields: {
|
|
170
|
+
label: { type: "text", min: 1, max: 4, description: "A, B, …" },
|
|
171
|
+
rounds: { type: "number", min: 1, max: 50, integer: true, optional: true },
|
|
172
|
+
items: { type: "array", min: 1, max: 12, unique: "label", of: { type: "use", def: "item" } },
|
|
173
|
+
notes: NOTES,
|
|
174
|
+
},
|
|
175
|
+
};
|
|
176
|
+
/** A session of a week: what a generated session carries as its plan. */
|
|
177
|
+
const SESSION = {
|
|
178
|
+
type: "object",
|
|
179
|
+
fields: {
|
|
180
|
+
name: { type: "text", min: 1, max: 60 },
|
|
181
|
+
focus: { type: "text", max: 200, optional: true, description: "What the session is about" },
|
|
182
|
+
day: {
|
|
183
|
+
type: "number",
|
|
184
|
+
min: 1,
|
|
185
|
+
max: 7,
|
|
186
|
+
integer: true,
|
|
187
|
+
description: "Day of its week, 1 to 7: a session is dated from the start date with it",
|
|
188
|
+
},
|
|
189
|
+
warmup: {
|
|
190
|
+
type: "object",
|
|
191
|
+
optional: true,
|
|
192
|
+
fields: {
|
|
193
|
+
text: { type: "text", max: 1200, multiline: true, optional: true },
|
|
194
|
+
exercises: {
|
|
195
|
+
type: "array",
|
|
196
|
+
max: 15,
|
|
197
|
+
optional: true,
|
|
198
|
+
of: { type: "use", def: "prescription" },
|
|
199
|
+
},
|
|
200
|
+
},
|
|
201
|
+
},
|
|
202
|
+
blocks: { type: "array", max: 10, unique: "label", of: { type: "use", def: "block" } },
|
|
203
|
+
notes: NOTES,
|
|
204
|
+
},
|
|
205
|
+
};
|
|
206
|
+
const DEFS = {
|
|
207
|
+
set: SET,
|
|
208
|
+
prescription: PRESCRIPTION,
|
|
209
|
+
note: NOTE,
|
|
210
|
+
level: LEVEL,
|
|
211
|
+
item: ITEM,
|
|
212
|
+
block: BLOCK,
|
|
213
|
+
};
|
|
214
|
+
/** The most weeks a program has, and sessions a week: 52 × 14 sessions at most per assignment. */
|
|
215
|
+
export const MAX_WEEKS = 52;
|
|
216
|
+
export const MAX_SESSIONS_PER_WEEK = 14;
|
|
217
|
+
/** A program's layout: its weeks of sessions. */
|
|
218
|
+
export const LAYOUT_SCHEMA = {
|
|
219
|
+
defs: { ...DEFS, session: SESSION },
|
|
220
|
+
root: {
|
|
221
|
+
type: "object",
|
|
222
|
+
fields: {
|
|
223
|
+
weeks: {
|
|
224
|
+
type: "array",
|
|
225
|
+
min: 1,
|
|
226
|
+
max: MAX_WEEKS,
|
|
227
|
+
of: {
|
|
228
|
+
type: "object",
|
|
229
|
+
fields: {
|
|
230
|
+
label: { type: "text", max: 60, optional: true },
|
|
231
|
+
sessions: {
|
|
232
|
+
type: "array",
|
|
233
|
+
max: MAX_SESSIONS_PER_WEEK,
|
|
234
|
+
of: { type: "use", def: "session" },
|
|
235
|
+
},
|
|
236
|
+
},
|
|
237
|
+
},
|
|
238
|
+
},
|
|
239
|
+
notes: NOTES,
|
|
240
|
+
},
|
|
241
|
+
},
|
|
242
|
+
};
|
|
243
|
+
/** One generated session's plan: a session of the layout, as the version had it. */
|
|
244
|
+
export const SESSION_PLAN_SCHEMA = { defs: DEFS, root: SESSION };
|
|
245
|
+
/** The exercises of a level, whatever its mode. */
|
|
246
|
+
export function levelExercises(level) {
|
|
247
|
+
return level.mode === "one" ? [level.exercise] : level.exercises;
|
|
248
|
+
}
|
|
249
|
+
/** Every prescription of a session, with the item label and level it is under. */
|
|
250
|
+
export function prescriptions(session) {
|
|
251
|
+
const out = [];
|
|
252
|
+
for (const block of session.blocks) {
|
|
253
|
+
for (const item of block.items) {
|
|
254
|
+
if (item.kind === "all") {
|
|
255
|
+
for (const p of item.exercises)
|
|
256
|
+
out.push({ item: item.label, level: null, prescription: p });
|
|
257
|
+
}
|
|
258
|
+
else {
|
|
259
|
+
for (const level of item.levels) {
|
|
260
|
+
for (const p of levelExercises(level)) {
|
|
261
|
+
out.push({ item: item.label, level: level.level, prescription: p });
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
return out;
|
|
268
|
+
}
|
package/dist/tools.d.ts
ADDED
|
@@ -0,0 +1,344 @@
|
|
|
1
|
+
import { z } from "@composable-os/sdk";
|
|
2
|
+
export declare const assign: import("@composable-os/sdk").ToolSpec<z.ZodObject<{
|
|
3
|
+
programId: z.ZodString;
|
|
4
|
+
personId: z.ZodOptional<z.ZodString>;
|
|
5
|
+
classTypeId: z.ZodOptional<z.ZodString>;
|
|
6
|
+
startDate: z.ZodString;
|
|
7
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8
|
+
assignmentId: z.ZodString;
|
|
9
|
+
programVersion: z.ZodNumber;
|
|
10
|
+
sessions: z.ZodNumber;
|
|
11
|
+
startDate: z.ZodString;
|
|
12
|
+
endDate: z.ZodString;
|
|
13
|
+
}, z.core.$strip>>;
|
|
14
|
+
export declare const today: import("@composable-os/sdk").ToolSpec<z.ZodObject<{
|
|
15
|
+
date: z.ZodOptional<z.ZodString>;
|
|
16
|
+
personId: z.ZodOptional<z.ZodString>;
|
|
17
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
18
|
+
date: z.ZodString;
|
|
19
|
+
sessions: z.ZodArray<z.ZodObject<{
|
|
20
|
+
id: z.ZodString;
|
|
21
|
+
name: z.ZodNullable<z.ZodString>;
|
|
22
|
+
date: z.ZodNullable<z.ZodString>;
|
|
23
|
+
week: z.ZodNullable<z.ZodNumber>;
|
|
24
|
+
day: z.ZodNullable<z.ZodNumber>;
|
|
25
|
+
kind: z.ZodNullable<z.ZodString>;
|
|
26
|
+
classType: z.ZodNullable<z.ZodString>;
|
|
27
|
+
assignment: z.ZodNullable<z.ZodString>;
|
|
28
|
+
programVersion: z.ZodNullable<z.ZodNumber>;
|
|
29
|
+
programTitle: z.ZodNullable<z.ZodString>;
|
|
30
|
+
classTypeName: z.ZodNullable<z.ZodString>;
|
|
31
|
+
focus: z.ZodNullable<z.ZodString>;
|
|
32
|
+
state: z.ZodNullable<z.ZodString>;
|
|
33
|
+
plan: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
34
|
+
exercises: z.ZodArray<z.ZodObject<{
|
|
35
|
+
id: z.ZodString;
|
|
36
|
+
name: z.ZodNullable<z.ZodString>;
|
|
37
|
+
video: z.ZodNullable<z.ZodString>;
|
|
38
|
+
cues: z.ZodNullable<z.ZodString>;
|
|
39
|
+
measure: z.ZodNullable<z.ZodString>;
|
|
40
|
+
last: z.ZodArray<z.ZodObject<{
|
|
41
|
+
date: z.ZodNullable<z.ZodString>;
|
|
42
|
+
reps: z.ZodNullable<z.ZodNumber>;
|
|
43
|
+
seconds: z.ZodNullable<z.ZodNumber>;
|
|
44
|
+
load: z.ZodNullable<z.ZodNumber>;
|
|
45
|
+
rpe: z.ZodNullable<z.ZodNumber>;
|
|
46
|
+
level: z.ZodNullable<z.ZodNumber>;
|
|
47
|
+
}, z.core.$strip>>;
|
|
48
|
+
}, z.core.$strip>>;
|
|
49
|
+
}, z.core.$strip>>;
|
|
50
|
+
}, z.core.$strip>>;
|
|
51
|
+
export declare const sessionGet: import("@composable-os/sdk").ToolSpec<z.ZodObject<{
|
|
52
|
+
sessionId: z.ZodString;
|
|
53
|
+
personId: z.ZodOptional<z.ZodString>;
|
|
54
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
55
|
+
session: z.ZodObject<{
|
|
56
|
+
id: z.ZodString;
|
|
57
|
+
name: z.ZodNullable<z.ZodString>;
|
|
58
|
+
date: z.ZodNullable<z.ZodString>;
|
|
59
|
+
week: z.ZodNullable<z.ZodNumber>;
|
|
60
|
+
day: z.ZodNullable<z.ZodNumber>;
|
|
61
|
+
kind: z.ZodNullable<z.ZodString>;
|
|
62
|
+
classType: z.ZodNullable<z.ZodString>;
|
|
63
|
+
assignment: z.ZodNullable<z.ZodString>;
|
|
64
|
+
programVersion: z.ZodNullable<z.ZodNumber>;
|
|
65
|
+
programTitle: z.ZodNullable<z.ZodString>;
|
|
66
|
+
classTypeName: z.ZodNullable<z.ZodString>;
|
|
67
|
+
focus: z.ZodNullable<z.ZodString>;
|
|
68
|
+
state: z.ZodNullable<z.ZodString>;
|
|
69
|
+
plan: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
70
|
+
}, z.core.$strip>;
|
|
71
|
+
exercises: z.ZodArray<z.ZodObject<{
|
|
72
|
+
id: z.ZodString;
|
|
73
|
+
name: z.ZodNullable<z.ZodString>;
|
|
74
|
+
video: z.ZodNullable<z.ZodString>;
|
|
75
|
+
cues: z.ZodNullable<z.ZodString>;
|
|
76
|
+
measure: z.ZodNullable<z.ZodString>;
|
|
77
|
+
last: z.ZodArray<z.ZodObject<{
|
|
78
|
+
date: z.ZodNullable<z.ZodString>;
|
|
79
|
+
reps: z.ZodNullable<z.ZodNumber>;
|
|
80
|
+
seconds: z.ZodNullable<z.ZodNumber>;
|
|
81
|
+
load: z.ZodNullable<z.ZodNumber>;
|
|
82
|
+
rpe: z.ZodNullable<z.ZodNumber>;
|
|
83
|
+
level: z.ZodNullable<z.ZodNumber>;
|
|
84
|
+
}, z.core.$strip>>;
|
|
85
|
+
}, z.core.$strip>>;
|
|
86
|
+
logged: z.ZodArray<z.ZodObject<{
|
|
87
|
+
id: z.ZodString;
|
|
88
|
+
item: z.ZodNullable<z.ZodString>;
|
|
89
|
+
exercise: z.ZodNullable<z.ZodString>;
|
|
90
|
+
setNumber: z.ZodNullable<z.ZodNumber>;
|
|
91
|
+
level: z.ZodNullable<z.ZodNumber>;
|
|
92
|
+
target: z.ZodObject<{
|
|
93
|
+
reps: z.ZodNullable<z.ZodNumber>;
|
|
94
|
+
seconds: z.ZodNullable<z.ZodNumber>;
|
|
95
|
+
load: z.ZodNullable<z.ZodNumber>;
|
|
96
|
+
}, z.core.$strip>;
|
|
97
|
+
actual: z.ZodObject<{
|
|
98
|
+
reps: z.ZodNullable<z.ZodNumber>;
|
|
99
|
+
seconds: z.ZodNullable<z.ZodNumber>;
|
|
100
|
+
load: z.ZodNullable<z.ZodNumber>;
|
|
101
|
+
}, z.core.$strip>;
|
|
102
|
+
rpe: z.ZodNullable<z.ZodNumber>;
|
|
103
|
+
note: z.ZodNullable<z.ZodString>;
|
|
104
|
+
recordedAs: z.ZodNullable<z.ZodString>;
|
|
105
|
+
recordedByName: z.ZodNullable<z.ZodString>;
|
|
106
|
+
exerciseName: z.ZodNullable<z.ZodString>;
|
|
107
|
+
}, z.core.$strip>>;
|
|
108
|
+
}, z.core.$strip>>;
|
|
109
|
+
export declare const classToday: import("@composable-os/sdk").ToolSpec<z.ZodObject<{
|
|
110
|
+
classTypeId: z.ZodString;
|
|
111
|
+
date: z.ZodOptional<z.ZodString>;
|
|
112
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
113
|
+
date: z.ZodString;
|
|
114
|
+
sessions: z.ZodArray<z.ZodObject<{
|
|
115
|
+
id: z.ZodString;
|
|
116
|
+
name: z.ZodNullable<z.ZodString>;
|
|
117
|
+
date: z.ZodNullable<z.ZodString>;
|
|
118
|
+
week: z.ZodNullable<z.ZodNumber>;
|
|
119
|
+
day: z.ZodNullable<z.ZodNumber>;
|
|
120
|
+
kind: z.ZodNullable<z.ZodString>;
|
|
121
|
+
classType: z.ZodNullable<z.ZodString>;
|
|
122
|
+
assignment: z.ZodNullable<z.ZodString>;
|
|
123
|
+
programVersion: z.ZodNullable<z.ZodNumber>;
|
|
124
|
+
programTitle: z.ZodNullable<z.ZodString>;
|
|
125
|
+
classTypeName: z.ZodNullable<z.ZodString>;
|
|
126
|
+
focus: z.ZodNullable<z.ZodString>;
|
|
127
|
+
state: z.ZodNullable<z.ZodString>;
|
|
128
|
+
plan: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
129
|
+
exercises: z.ZodArray<z.ZodObject<{
|
|
130
|
+
id: z.ZodString;
|
|
131
|
+
name: z.ZodNullable<z.ZodString>;
|
|
132
|
+
video: z.ZodNullable<z.ZodString>;
|
|
133
|
+
cues: z.ZodNullable<z.ZodString>;
|
|
134
|
+
measure: z.ZodNullable<z.ZodString>;
|
|
135
|
+
last: z.ZodArray<z.ZodObject<{
|
|
136
|
+
date: z.ZodNullable<z.ZodString>;
|
|
137
|
+
reps: z.ZodNullable<z.ZodNumber>;
|
|
138
|
+
seconds: z.ZodNullable<z.ZodNumber>;
|
|
139
|
+
load: z.ZodNullable<z.ZodNumber>;
|
|
140
|
+
rpe: z.ZodNullable<z.ZodNumber>;
|
|
141
|
+
level: z.ZodNullable<z.ZodNumber>;
|
|
142
|
+
}, z.core.$strip>>;
|
|
143
|
+
}, z.core.$strip>>;
|
|
144
|
+
}, z.core.$strip>>;
|
|
145
|
+
}, z.core.$strip>>;
|
|
146
|
+
export declare const logAdd: import("@composable-os/sdk").ToolSpec<z.ZodObject<{
|
|
147
|
+
sessionId: z.ZodString;
|
|
148
|
+
item: z.ZodString;
|
|
149
|
+
exerciseId: z.ZodOptional<z.ZodString>;
|
|
150
|
+
level: z.ZodOptional<z.ZodNumber>;
|
|
151
|
+
setNumber: z.ZodNumber;
|
|
152
|
+
actual: z.ZodObject<{
|
|
153
|
+
reps: z.ZodOptional<z.ZodNumber>;
|
|
154
|
+
seconds: z.ZodOptional<z.ZodNumber>;
|
|
155
|
+
load: z.ZodOptional<z.ZodNumber>;
|
|
156
|
+
}, z.core.$strip>;
|
|
157
|
+
rpe: z.ZodOptional<z.ZodNumber>;
|
|
158
|
+
note: z.ZodOptional<z.ZodString>;
|
|
159
|
+
personId: z.ZodOptional<z.ZodString>;
|
|
160
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
161
|
+
id: z.ZodString;
|
|
162
|
+
item: z.ZodNullable<z.ZodString>;
|
|
163
|
+
exercise: z.ZodNullable<z.ZodString>;
|
|
164
|
+
setNumber: z.ZodNullable<z.ZodNumber>;
|
|
165
|
+
level: z.ZodNullable<z.ZodNumber>;
|
|
166
|
+
target: z.ZodObject<{
|
|
167
|
+
reps: z.ZodNullable<z.ZodNumber>;
|
|
168
|
+
seconds: z.ZodNullable<z.ZodNumber>;
|
|
169
|
+
load: z.ZodNullable<z.ZodNumber>;
|
|
170
|
+
}, z.core.$strip>;
|
|
171
|
+
actual: z.ZodObject<{
|
|
172
|
+
reps: z.ZodNullable<z.ZodNumber>;
|
|
173
|
+
seconds: z.ZodNullable<z.ZodNumber>;
|
|
174
|
+
load: z.ZodNullable<z.ZodNumber>;
|
|
175
|
+
}, z.core.$strip>;
|
|
176
|
+
rpe: z.ZodNullable<z.ZodNumber>;
|
|
177
|
+
note: z.ZodNullable<z.ZodString>;
|
|
178
|
+
recordedAs: z.ZodNullable<z.ZodString>;
|
|
179
|
+
recordedByName: z.ZodNullable<z.ZodString>;
|
|
180
|
+
exerciseName: z.ZodNullable<z.ZodString>;
|
|
181
|
+
}, z.core.$strip>>;
|
|
182
|
+
export declare const logUpdate: import("@composable-os/sdk").ToolSpec<z.ZodObject<{
|
|
183
|
+
logId: z.ZodString;
|
|
184
|
+
actual: z.ZodOptional<z.ZodObject<{
|
|
185
|
+
reps: z.ZodOptional<z.ZodNumber>;
|
|
186
|
+
seconds: z.ZodOptional<z.ZodNumber>;
|
|
187
|
+
load: z.ZodOptional<z.ZodNumber>;
|
|
188
|
+
}, z.core.$strip>>;
|
|
189
|
+
rpe: z.ZodOptional<z.ZodNumber>;
|
|
190
|
+
note: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
191
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
192
|
+
id: z.ZodString;
|
|
193
|
+
item: z.ZodNullable<z.ZodString>;
|
|
194
|
+
exercise: z.ZodNullable<z.ZodString>;
|
|
195
|
+
setNumber: z.ZodNullable<z.ZodNumber>;
|
|
196
|
+
level: z.ZodNullable<z.ZodNumber>;
|
|
197
|
+
target: z.ZodObject<{
|
|
198
|
+
reps: z.ZodNullable<z.ZodNumber>;
|
|
199
|
+
seconds: z.ZodNullable<z.ZodNumber>;
|
|
200
|
+
load: z.ZodNullable<z.ZodNumber>;
|
|
201
|
+
}, z.core.$strip>;
|
|
202
|
+
actual: z.ZodObject<{
|
|
203
|
+
reps: z.ZodNullable<z.ZodNumber>;
|
|
204
|
+
seconds: z.ZodNullable<z.ZodNumber>;
|
|
205
|
+
load: z.ZodNullable<z.ZodNumber>;
|
|
206
|
+
}, z.core.$strip>;
|
|
207
|
+
rpe: z.ZodNullable<z.ZodNumber>;
|
|
208
|
+
note: z.ZodNullable<z.ZodString>;
|
|
209
|
+
recordedAs: z.ZodNullable<z.ZodString>;
|
|
210
|
+
recordedByName: z.ZodNullable<z.ZodString>;
|
|
211
|
+
exerciseName: z.ZodNullable<z.ZodString>;
|
|
212
|
+
}, z.core.$strip>>;
|
|
213
|
+
export declare const sessionComplete: import("@composable-os/sdk").ToolSpec<z.ZodObject<{
|
|
214
|
+
sessionId: z.ZodString;
|
|
215
|
+
state: z.ZodDefault<z.ZodEnum<{
|
|
216
|
+
done: "done";
|
|
217
|
+
skipped: "skipped";
|
|
218
|
+
planned: "planned";
|
|
219
|
+
}>>;
|
|
220
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
221
|
+
changed: z.ZodBoolean;
|
|
222
|
+
session: z.ZodObject<{
|
|
223
|
+
id: z.ZodString;
|
|
224
|
+
name: z.ZodNullable<z.ZodString>;
|
|
225
|
+
date: z.ZodNullable<z.ZodString>;
|
|
226
|
+
week: z.ZodNullable<z.ZodNumber>;
|
|
227
|
+
day: z.ZodNullable<z.ZodNumber>;
|
|
228
|
+
kind: z.ZodNullable<z.ZodString>;
|
|
229
|
+
classType: z.ZodNullable<z.ZodString>;
|
|
230
|
+
assignment: z.ZodNullable<z.ZodString>;
|
|
231
|
+
programVersion: z.ZodNullable<z.ZodNumber>;
|
|
232
|
+
programTitle: z.ZodNullable<z.ZodString>;
|
|
233
|
+
classTypeName: z.ZodNullable<z.ZodString>;
|
|
234
|
+
focus: z.ZodNullable<z.ZodString>;
|
|
235
|
+
state: z.ZodNullable<z.ZodString>;
|
|
236
|
+
plan: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
237
|
+
}, z.core.$strip>;
|
|
238
|
+
}, z.core.$strip>>;
|
|
239
|
+
export declare const history: import("@composable-os/sdk").ToolSpec<z.ZodObject<{
|
|
240
|
+
exerciseId: z.ZodString;
|
|
241
|
+
personId: z.ZodOptional<z.ZodString>;
|
|
242
|
+
from: z.ZodOptional<z.ZodString>;
|
|
243
|
+
until: z.ZodOptional<z.ZodString>;
|
|
244
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
245
|
+
exercise: z.ZodObject<{
|
|
246
|
+
id: z.ZodString;
|
|
247
|
+
name: z.ZodNullable<z.ZodString>;
|
|
248
|
+
}, z.core.$strip>;
|
|
249
|
+
sets: z.ZodArray<z.ZodObject<{
|
|
250
|
+
id: z.ZodString;
|
|
251
|
+
item: z.ZodNullable<z.ZodString>;
|
|
252
|
+
exercise: z.ZodNullable<z.ZodString>;
|
|
253
|
+
setNumber: z.ZodNullable<z.ZodNumber>;
|
|
254
|
+
level: z.ZodNullable<z.ZodNumber>;
|
|
255
|
+
target: z.ZodObject<{
|
|
256
|
+
reps: z.ZodNullable<z.ZodNumber>;
|
|
257
|
+
seconds: z.ZodNullable<z.ZodNumber>;
|
|
258
|
+
load: z.ZodNullable<z.ZodNumber>;
|
|
259
|
+
}, z.core.$strip>;
|
|
260
|
+
actual: z.ZodObject<{
|
|
261
|
+
reps: z.ZodNullable<z.ZodNumber>;
|
|
262
|
+
seconds: z.ZodNullable<z.ZodNumber>;
|
|
263
|
+
load: z.ZodNullable<z.ZodNumber>;
|
|
264
|
+
}, z.core.$strip>;
|
|
265
|
+
rpe: z.ZodNullable<z.ZodNumber>;
|
|
266
|
+
note: z.ZodNullable<z.ZodString>;
|
|
267
|
+
recordedAs: z.ZodNullable<z.ZodString>;
|
|
268
|
+
recordedByName: z.ZodNullable<z.ZodString>;
|
|
269
|
+
exerciseName: z.ZodNullable<z.ZodString>;
|
|
270
|
+
date: z.ZodNullable<z.ZodString>;
|
|
271
|
+
}, z.core.$strip>>;
|
|
272
|
+
best: z.ZodObject<{
|
|
273
|
+
load: z.ZodNullable<z.ZodNumber>;
|
|
274
|
+
reps: z.ZodNullable<z.ZodNumber>;
|
|
275
|
+
seconds: z.ZodNullable<z.ZodNumber>;
|
|
276
|
+
}, z.core.$strip>;
|
|
277
|
+
capped: z.ZodBoolean;
|
|
278
|
+
}, z.core.$strip>>;
|
|
279
|
+
export declare const progress: import("@composable-os/sdk").ToolSpec<z.ZodObject<{
|
|
280
|
+
personId: z.ZodOptional<z.ZodString>;
|
|
281
|
+
assignmentId: z.ZodOptional<z.ZodString>;
|
|
282
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
283
|
+
exercises: z.ZodArray<z.ZodObject<{
|
|
284
|
+
id: z.ZodString;
|
|
285
|
+
name: z.ZodNullable<z.ZodString>;
|
|
286
|
+
sets: z.ZodNumber;
|
|
287
|
+
first: z.ZodNullable<z.ZodString>;
|
|
288
|
+
last: z.ZodNullable<z.ZodString>;
|
|
289
|
+
best: z.ZodObject<{
|
|
290
|
+
load: z.ZodNullable<z.ZodNumber>;
|
|
291
|
+
reps: z.ZodNullable<z.ZodNumber>;
|
|
292
|
+
seconds: z.ZodNullable<z.ZodNumber>;
|
|
293
|
+
}, z.core.$strip>;
|
|
294
|
+
}, z.core.$strip>>;
|
|
295
|
+
assignments: z.ZodArray<z.ZodObject<{
|
|
296
|
+
id: z.ZodString;
|
|
297
|
+
title: z.ZodNullable<z.ZodString>;
|
|
298
|
+
sessions: z.ZodNumber;
|
|
299
|
+
done: z.ZodNumber;
|
|
300
|
+
skipped: z.ZodNumber;
|
|
301
|
+
planned: z.ZodNumber;
|
|
302
|
+
}, z.core.$strip>>;
|
|
303
|
+
capped: z.ZodBoolean;
|
|
304
|
+
}, z.core.$strip>>;
|
|
305
|
+
export declare const draft: import("@composable-os/sdk").ToolSpec<z.ZodObject<{
|
|
306
|
+
brief: z.ZodString;
|
|
307
|
+
title: z.ZodOptional<z.ZodString>;
|
|
308
|
+
kind: z.ZodDefault<z.ZodEnum<{
|
|
309
|
+
class: "class";
|
|
310
|
+
client: "client";
|
|
311
|
+
course: "course";
|
|
312
|
+
}>>;
|
|
313
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
314
|
+
programId: z.ZodString;
|
|
315
|
+
title: z.ZodString;
|
|
316
|
+
weeks: z.ZodNumber;
|
|
317
|
+
sessions: z.ZodNumber;
|
|
318
|
+
published: z.ZodLiteral<false>;
|
|
319
|
+
exercises: z.ZodArray<z.ZodObject<{
|
|
320
|
+
id: z.ZodString;
|
|
321
|
+
name: z.ZodString;
|
|
322
|
+
}, z.core.$strip>>;
|
|
323
|
+
}, z.core.$strip>>;
|
|
324
|
+
export declare const importText: import("@composable-os/sdk").ToolSpec<z.ZodObject<{
|
|
325
|
+
text: z.ZodString;
|
|
326
|
+
title: z.ZodOptional<z.ZodString>;
|
|
327
|
+
kind: z.ZodDefault<z.ZodEnum<{
|
|
328
|
+
class: "class";
|
|
329
|
+
client: "client";
|
|
330
|
+
course: "course";
|
|
331
|
+
}>>;
|
|
332
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
333
|
+
programId: z.ZodString;
|
|
334
|
+
title: z.ZodString;
|
|
335
|
+
weeks: z.ZodNumber;
|
|
336
|
+
sessions: z.ZodNumber;
|
|
337
|
+
published: z.ZodLiteral<false>;
|
|
338
|
+
items: z.ZodNumber;
|
|
339
|
+
unread: z.ZodArray<z.ZodObject<{
|
|
340
|
+
line: z.ZodNumber;
|
|
341
|
+
text: z.ZodString;
|
|
342
|
+
reason: z.ZodString;
|
|
343
|
+
}, z.core.$strip>>;
|
|
344
|
+
}, z.core.$strip>>;
|