@composable-os/pack-courses 0.0.0-stage → 0.1.0-beta.10
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/automations.d.ts +12 -0
- package/dist/automations.js +84 -0
- package/dist/blocks/courses-builder/course-builder.d.ts +5 -0
- package/dist/blocks/courses-builder/course-builder.js +69 -0
- package/dist/blocks/courses-catalogue/catalogue.d.ts +6 -0
- package/dist/blocks/courses-catalogue/catalogue.js +21 -0
- package/dist/blocks/courses-course/course-page.d.ts +10 -0
- package/dist/blocks/courses-course/course-page.js +51 -0
- package/dist/blocks/courses-my-courses/my-courses.d.ts +5 -0
- package/dist/blocks/courses-my-courses/my-courses.js +20 -0
- package/dist/blocks/courses-native-catalogue/catalogue-screen.d.ts +6 -0
- package/dist/blocks/courses-native-catalogue/catalogue-screen.js +15 -0
- package/dist/blocks/courses-native-course/course-screen.d.ts +7 -0
- package/dist/blocks/courses-native-course/course-screen.js +18 -0
- package/dist/blocks/courses-native-my-courses/my-courses-screen.d.ts +5 -0
- package/dist/blocks/courses-native-my-courses/my-courses-screen.js +9 -0
- package/dist/blocks/courses-native-player/lesson-screen.d.ts +19 -0
- package/dist/blocks/courses-native-player/lesson-screen.js +11 -0
- package/dist/blocks/courses-native-subscription/subscription-screen.d.ts +4 -0
- package/dist/blocks/courses-native-subscription/subscription-screen.js +17 -0
- package/dist/blocks/courses-player/player.d.ts +12 -0
- package/dist/blocks/courses-player/player.js +51 -0
- package/dist/blocks/courses-subscribe/subscribe.d.ts +28 -0
- package/dist/blocks/courses-subscribe/subscribe.js +146 -0
- package/dist/blocks/courses-subscription/my-subscription.d.ts +6 -0
- package/dist/blocks/courses-subscription/my-subscription.js +50 -0
- package/dist/client/index.d.ts +1319 -0
- package/dist/client/index.js +414 -0
- package/dist/dashboards.d.ts +5 -0
- package/dist/dashboards.js +119 -0
- package/dist/index.d.ts +809 -0
- package/dist/index.js +427 -0
- package/dist/outline.d.ts +85 -0
- package/dist/outline.js +188 -0
- package/dist/tools.d.ts +255 -0
- package/dist/tools.js +826 -0
- package/package.json +36 -4
- package/README.md +0 -3
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,809 @@
|
|
|
1
|
+
declare const _default: import("@composable-os/sdk").Extension<{
|
|
2
|
+
readonly id: "courses";
|
|
3
|
+
readonly version: "0.1.0";
|
|
4
|
+
readonly contractVersion: 1;
|
|
5
|
+
readonly label: "Courses";
|
|
6
|
+
readonly description: string;
|
|
7
|
+
readonly requires: readonly ["programs"];
|
|
8
|
+
readonly permissions: {
|
|
9
|
+
readonly read: ["person", "programs.program", "programs.assignment", "programs.session"];
|
|
10
|
+
readonly write: ["programs.assignment", "programs.session"];
|
|
11
|
+
readonly operations: ["public.list", "public.get", "access.check", "order.start", "media.list", "order.settings.get", "query.sql", "x.programs.assign"];
|
|
12
|
+
readonly modules: ["ops", "ai"];
|
|
13
|
+
};
|
|
14
|
+
readonly objects: {
|
|
15
|
+
readonly theme: {
|
|
16
|
+
readonly label: "Theme";
|
|
17
|
+
readonly plural: "Themes";
|
|
18
|
+
readonly icon: "shapes";
|
|
19
|
+
readonly titleField: "name";
|
|
20
|
+
readonly description: "What courses are grouped by in the catalogue: handstands, mobility.";
|
|
21
|
+
readonly navigation: "settings";
|
|
22
|
+
readonly fields: {
|
|
23
|
+
readonly name: {
|
|
24
|
+
readonly type: "text";
|
|
25
|
+
readonly label: "Name";
|
|
26
|
+
readonly required: true;
|
|
27
|
+
};
|
|
28
|
+
readonly slug: {
|
|
29
|
+
readonly type: "slug";
|
|
30
|
+
readonly label: "Slug";
|
|
31
|
+
};
|
|
32
|
+
readonly order: {
|
|
33
|
+
readonly type: "number";
|
|
34
|
+
readonly label: "Order";
|
|
35
|
+
readonly min: 0;
|
|
36
|
+
readonly max: 1000;
|
|
37
|
+
readonly step: 1;
|
|
38
|
+
};
|
|
39
|
+
readonly summary: {
|
|
40
|
+
readonly type: "text";
|
|
41
|
+
readonly label: "Short description";
|
|
42
|
+
};
|
|
43
|
+
readonly picture: {
|
|
44
|
+
readonly type: "image";
|
|
45
|
+
readonly label: "Picture";
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
readonly public: {
|
|
49
|
+
readonly read: readonly ["name", "slug", "order", "summary", "picture"];
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
readonly course: {
|
|
53
|
+
readonly label: "Course";
|
|
54
|
+
readonly plural: "Courses";
|
|
55
|
+
readonly icon: "graduation-cap";
|
|
56
|
+
readonly titleField: "title";
|
|
57
|
+
readonly description: "A course of lessons a studio sells: its outline, price, trailer and cover.";
|
|
58
|
+
readonly navigation: "main";
|
|
59
|
+
readonly navigationOrder: 15;
|
|
60
|
+
readonly fields: {
|
|
61
|
+
readonly title: {
|
|
62
|
+
readonly type: "text";
|
|
63
|
+
readonly label: "Title";
|
|
64
|
+
readonly required: true;
|
|
65
|
+
};
|
|
66
|
+
readonly slug: {
|
|
67
|
+
readonly type: "slug";
|
|
68
|
+
readonly label: "Slug";
|
|
69
|
+
};
|
|
70
|
+
readonly theme: {
|
|
71
|
+
readonly type: "relation";
|
|
72
|
+
readonly label: "Theme";
|
|
73
|
+
readonly to: "courses.theme";
|
|
74
|
+
};
|
|
75
|
+
readonly level: {
|
|
76
|
+
readonly type: "number";
|
|
77
|
+
readonly label: "Level";
|
|
78
|
+
readonly min: 1;
|
|
79
|
+
readonly max: 3;
|
|
80
|
+
readonly step: 1;
|
|
81
|
+
readonly description: "1 to 3: beginner, intermediate, advanced.";
|
|
82
|
+
};
|
|
83
|
+
readonly summary: {
|
|
84
|
+
readonly type: "text";
|
|
85
|
+
readonly label: "Summary";
|
|
86
|
+
};
|
|
87
|
+
readonly description: {
|
|
88
|
+
readonly type: "richText";
|
|
89
|
+
readonly label: "Description";
|
|
90
|
+
};
|
|
91
|
+
readonly cover: {
|
|
92
|
+
readonly type: "image";
|
|
93
|
+
readonly label: "Cover";
|
|
94
|
+
};
|
|
95
|
+
readonly trailer: {
|
|
96
|
+
readonly type: "video";
|
|
97
|
+
readonly label: "Trailer";
|
|
98
|
+
};
|
|
99
|
+
readonly price: {
|
|
100
|
+
readonly type: "currency";
|
|
101
|
+
readonly label: "Price";
|
|
102
|
+
readonly required: true;
|
|
103
|
+
};
|
|
104
|
+
readonly onSaleFrom: {
|
|
105
|
+
readonly type: "datetime";
|
|
106
|
+
readonly label: "On sale from";
|
|
107
|
+
};
|
|
108
|
+
readonly outline: {
|
|
109
|
+
readonly type: "document";
|
|
110
|
+
readonly label: "Outline";
|
|
111
|
+
readonly schema: never;
|
|
112
|
+
readonly maxBytes: 524288;
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
readonly publishable: {
|
|
116
|
+
readonly content: readonly ["title", "theme", "level", "summary", "description", "cover", "trailer", "outline"];
|
|
117
|
+
readonly slug: "slug";
|
|
118
|
+
};
|
|
119
|
+
readonly public: {
|
|
120
|
+
readonly read: readonly ["title", "slug", "theme", "level", "summary", "description", "cover", "trailer", "price", "onSaleFrom", "outline"];
|
|
121
|
+
};
|
|
122
|
+
readonly sellable: {
|
|
123
|
+
readonly price: "price";
|
|
124
|
+
readonly saleWindow: {
|
|
125
|
+
readonly from: "onSaleFrom";
|
|
126
|
+
};
|
|
127
|
+
readonly tax: {
|
|
128
|
+
readonly code: "txcd_20060158";
|
|
129
|
+
};
|
|
130
|
+
readonly grants: {
|
|
131
|
+
readonly object: "enrolment";
|
|
132
|
+
readonly set: {
|
|
133
|
+
readonly holder: "order.person";
|
|
134
|
+
readonly course: "item";
|
|
135
|
+
readonly order: "order";
|
|
136
|
+
readonly code: "code";
|
|
137
|
+
};
|
|
138
|
+
readonly void: "void";
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
readonly access: {
|
|
142
|
+
readonly sources: readonly [{
|
|
143
|
+
readonly states: string[];
|
|
144
|
+
readonly until: string;
|
|
145
|
+
readonly via: "courses.enrolment";
|
|
146
|
+
readonly field: "course";
|
|
147
|
+
}, {
|
|
148
|
+
readonly states: string[];
|
|
149
|
+
readonly until: string;
|
|
150
|
+
readonly via: "courses.enrolment";
|
|
151
|
+
readonly field: "bundle";
|
|
152
|
+
readonly through: "courses";
|
|
153
|
+
}, {
|
|
154
|
+
readonly kind: "subscription";
|
|
155
|
+
readonly options: {
|
|
156
|
+
readonly plans: "courses.plan";
|
|
157
|
+
readonly covers: "all";
|
|
158
|
+
};
|
|
159
|
+
}];
|
|
160
|
+
};
|
|
161
|
+
readonly indexes: readonly [readonly ["theme"]];
|
|
162
|
+
};
|
|
163
|
+
readonly bundle: {
|
|
164
|
+
readonly label: "Bundle";
|
|
165
|
+
readonly plural: "Bundles";
|
|
166
|
+
readonly icon: "package";
|
|
167
|
+
readonly titleField: "title";
|
|
168
|
+
readonly description: "A fixed set of courses sold together at one price.";
|
|
169
|
+
readonly navigation: "main";
|
|
170
|
+
readonly navigationOrder: 16;
|
|
171
|
+
readonly fields: {
|
|
172
|
+
readonly title: {
|
|
173
|
+
readonly type: "text";
|
|
174
|
+
readonly label: "Title";
|
|
175
|
+
readonly required: true;
|
|
176
|
+
};
|
|
177
|
+
readonly slug: {
|
|
178
|
+
readonly type: "slug";
|
|
179
|
+
readonly label: "Slug";
|
|
180
|
+
};
|
|
181
|
+
readonly summary: {
|
|
182
|
+
readonly type: "text";
|
|
183
|
+
readonly label: "Summary";
|
|
184
|
+
};
|
|
185
|
+
readonly description: {
|
|
186
|
+
readonly type: "richText";
|
|
187
|
+
readonly label: "Description";
|
|
188
|
+
};
|
|
189
|
+
readonly cover: {
|
|
190
|
+
readonly type: "image";
|
|
191
|
+
readonly label: "Cover";
|
|
192
|
+
};
|
|
193
|
+
readonly courses: {
|
|
194
|
+
readonly type: "document";
|
|
195
|
+
readonly label: "Courses";
|
|
196
|
+
readonly schema: never;
|
|
197
|
+
};
|
|
198
|
+
readonly price: {
|
|
199
|
+
readonly type: "currency";
|
|
200
|
+
readonly label: "Price";
|
|
201
|
+
readonly required: true;
|
|
202
|
+
};
|
|
203
|
+
};
|
|
204
|
+
readonly publishable: {
|
|
205
|
+
readonly content: readonly ["title", "summary", "description", "cover", "courses"];
|
|
206
|
+
readonly slug: "slug";
|
|
207
|
+
};
|
|
208
|
+
readonly public: {
|
|
209
|
+
readonly read: readonly ["title", "slug", "summary", "description", "cover", "courses", "price"];
|
|
210
|
+
};
|
|
211
|
+
readonly sellable: {
|
|
212
|
+
readonly price: "price";
|
|
213
|
+
readonly tax: {
|
|
214
|
+
readonly code: "txcd_20060158";
|
|
215
|
+
};
|
|
216
|
+
readonly grants: {
|
|
217
|
+
readonly object: "enrolment";
|
|
218
|
+
readonly set: {
|
|
219
|
+
readonly holder: "order.person";
|
|
220
|
+
readonly bundle: "item";
|
|
221
|
+
readonly order: "order";
|
|
222
|
+
readonly code: "code";
|
|
223
|
+
};
|
|
224
|
+
readonly void: "void";
|
|
225
|
+
};
|
|
226
|
+
};
|
|
227
|
+
};
|
|
228
|
+
readonly plan: {
|
|
229
|
+
readonly label: "Course plan";
|
|
230
|
+
readonly plural: "Course plans";
|
|
231
|
+
readonly icon: "repeat";
|
|
232
|
+
readonly titleField: "title";
|
|
233
|
+
readonly description: string;
|
|
234
|
+
readonly navigation: "main";
|
|
235
|
+
readonly navigationOrder: 18;
|
|
236
|
+
readonly fields: {
|
|
237
|
+
readonly title: {
|
|
238
|
+
readonly type: "text";
|
|
239
|
+
readonly label: "Title";
|
|
240
|
+
readonly required: true;
|
|
241
|
+
};
|
|
242
|
+
readonly description: {
|
|
243
|
+
readonly type: "text";
|
|
244
|
+
readonly label: "Description";
|
|
245
|
+
};
|
|
246
|
+
readonly price: {
|
|
247
|
+
readonly type: "currency";
|
|
248
|
+
readonly label: "Price per month";
|
|
249
|
+
readonly required: true;
|
|
250
|
+
};
|
|
251
|
+
readonly trialDays: {
|
|
252
|
+
readonly type: "number";
|
|
253
|
+
readonly label: "Free trial (days)";
|
|
254
|
+
readonly min: 0;
|
|
255
|
+
readonly max: 90;
|
|
256
|
+
readonly step: 1;
|
|
257
|
+
readonly description: "Empty or 0: charged from the start. A person gets one trial on any plan.";
|
|
258
|
+
};
|
|
259
|
+
};
|
|
260
|
+
readonly public: {
|
|
261
|
+
readonly read: readonly ["title", "description", "price", "trialDays"];
|
|
262
|
+
};
|
|
263
|
+
readonly sellable: {
|
|
264
|
+
readonly price: "price";
|
|
265
|
+
readonly tax: {
|
|
266
|
+
readonly code: "txcd_20060158";
|
|
267
|
+
};
|
|
268
|
+
readonly recurring: {
|
|
269
|
+
readonly interval: "month";
|
|
270
|
+
readonly trialDays: "trialDays";
|
|
271
|
+
};
|
|
272
|
+
};
|
|
273
|
+
};
|
|
274
|
+
readonly enrolment: {
|
|
275
|
+
readonly label: "Enrolment";
|
|
276
|
+
readonly plural: "Enrolments";
|
|
277
|
+
readonly icon: "badge-check";
|
|
278
|
+
readonly titleField: "code";
|
|
279
|
+
readonly description: string;
|
|
280
|
+
readonly navigation: "main";
|
|
281
|
+
readonly navigationOrder: 17;
|
|
282
|
+
readonly fields: {
|
|
283
|
+
readonly code: {
|
|
284
|
+
readonly type: "text";
|
|
285
|
+
readonly label: "Code";
|
|
286
|
+
readonly readOnly: true;
|
|
287
|
+
};
|
|
288
|
+
readonly holder: {
|
|
289
|
+
readonly type: "relation";
|
|
290
|
+
readonly label: "Student";
|
|
291
|
+
readonly to: "person";
|
|
292
|
+
};
|
|
293
|
+
readonly course: {
|
|
294
|
+
readonly type: "relation";
|
|
295
|
+
readonly label: "Course";
|
|
296
|
+
readonly to: "courses.course";
|
|
297
|
+
};
|
|
298
|
+
readonly bundle: {
|
|
299
|
+
readonly type: "relation";
|
|
300
|
+
readonly label: "Bundle";
|
|
301
|
+
readonly to: "courses.bundle";
|
|
302
|
+
};
|
|
303
|
+
readonly order: {
|
|
304
|
+
readonly type: "text";
|
|
305
|
+
readonly label: "Order";
|
|
306
|
+
};
|
|
307
|
+
readonly source: {
|
|
308
|
+
readonly type: "select";
|
|
309
|
+
readonly label: "Where it came from";
|
|
310
|
+
readonly default: "purchase";
|
|
311
|
+
readonly options: readonly [{
|
|
312
|
+
readonly value: "purchase";
|
|
313
|
+
readonly label: "Bought";
|
|
314
|
+
}, {
|
|
315
|
+
readonly value: "staff";
|
|
316
|
+
readonly label: "Given by staff";
|
|
317
|
+
}, {
|
|
318
|
+
readonly value: "import";
|
|
319
|
+
readonly label: "Imported";
|
|
320
|
+
}];
|
|
321
|
+
};
|
|
322
|
+
readonly reason: {
|
|
323
|
+
readonly type: "text";
|
|
324
|
+
readonly label: "Why it was given or ended";
|
|
325
|
+
};
|
|
326
|
+
readonly from: {
|
|
327
|
+
readonly type: "datetime";
|
|
328
|
+
readonly label: "From";
|
|
329
|
+
};
|
|
330
|
+
readonly until: {
|
|
331
|
+
readonly type: "datetime";
|
|
332
|
+
readonly label: "Until";
|
|
333
|
+
readonly description: "Empty: for as long as the course is offered.";
|
|
334
|
+
};
|
|
335
|
+
readonly completed: {
|
|
336
|
+
readonly type: "boolean";
|
|
337
|
+
readonly label: "Completed (imported)";
|
|
338
|
+
readonly description: "Marked done on the old platform: the course shows as complete.";
|
|
339
|
+
};
|
|
340
|
+
readonly status: {
|
|
341
|
+
readonly type: "select";
|
|
342
|
+
readonly label: "Status";
|
|
343
|
+
readonly track: "timeline";
|
|
344
|
+
readonly options: readonly [{
|
|
345
|
+
readonly value: "active";
|
|
346
|
+
readonly label: "Active";
|
|
347
|
+
}, {
|
|
348
|
+
readonly value: "ended";
|
|
349
|
+
readonly label: "Ended";
|
|
350
|
+
}, {
|
|
351
|
+
readonly value: "void";
|
|
352
|
+
readonly label: "Void";
|
|
353
|
+
}];
|
|
354
|
+
};
|
|
355
|
+
};
|
|
356
|
+
readonly states: {
|
|
357
|
+
readonly field: "status";
|
|
358
|
+
readonly initial: "active";
|
|
359
|
+
readonly moves: readonly [{
|
|
360
|
+
readonly from: "active";
|
|
361
|
+
readonly to: "ended";
|
|
362
|
+
readonly by: readonly ["staff"];
|
|
363
|
+
}, {
|
|
364
|
+
readonly from: "ended";
|
|
365
|
+
readonly to: "active";
|
|
366
|
+
readonly by: readonly ["staff"];
|
|
367
|
+
}, {
|
|
368
|
+
readonly from: readonly ["active", "ended"];
|
|
369
|
+
readonly to: "void";
|
|
370
|
+
readonly by: readonly ["host"];
|
|
371
|
+
readonly final: true;
|
|
372
|
+
}];
|
|
373
|
+
};
|
|
374
|
+
readonly customer: {
|
|
375
|
+
readonly field: "holder";
|
|
376
|
+
readonly read: readonly ["course", "bundle", "source", "from", "until", "completed", "status"];
|
|
377
|
+
readonly write: readonly [];
|
|
378
|
+
};
|
|
379
|
+
readonly timelineLinks: readonly ["holder"];
|
|
380
|
+
readonly indexes: readonly [readonly ["holder"], readonly ["course"], readonly ["bundle"], readonly ["order"]];
|
|
381
|
+
};
|
|
382
|
+
readonly progress: {
|
|
383
|
+
readonly label: "Progress";
|
|
384
|
+
readonly plural: "Progress";
|
|
385
|
+
readonly icon: "list-checks";
|
|
386
|
+
readonly titleField: "lessonKey";
|
|
387
|
+
readonly description: "One student's progress on one lesson: started or done, and where a video was left.";
|
|
388
|
+
readonly navigation: "settings";
|
|
389
|
+
readonly fields: {
|
|
390
|
+
readonly holder: {
|
|
391
|
+
readonly type: "relation";
|
|
392
|
+
readonly label: "Student";
|
|
393
|
+
readonly to: "person";
|
|
394
|
+
readonly required: true;
|
|
395
|
+
};
|
|
396
|
+
readonly course: {
|
|
397
|
+
readonly type: "relation";
|
|
398
|
+
readonly label: "Course";
|
|
399
|
+
readonly to: "courses.course";
|
|
400
|
+
readonly required: true;
|
|
401
|
+
};
|
|
402
|
+
readonly lessonKey: {
|
|
403
|
+
readonly type: "text";
|
|
404
|
+
readonly label: "Lesson";
|
|
405
|
+
readonly required: true;
|
|
406
|
+
};
|
|
407
|
+
readonly state: {
|
|
408
|
+
readonly type: "select";
|
|
409
|
+
readonly label: "State";
|
|
410
|
+
readonly options: readonly [{
|
|
411
|
+
readonly value: "started";
|
|
412
|
+
readonly label: "Started";
|
|
413
|
+
}, {
|
|
414
|
+
readonly value: "done";
|
|
415
|
+
readonly label: "Done";
|
|
416
|
+
}];
|
|
417
|
+
};
|
|
418
|
+
readonly startedAt: {
|
|
419
|
+
readonly type: "datetime";
|
|
420
|
+
readonly label: "Started";
|
|
421
|
+
};
|
|
422
|
+
readonly doneAt: {
|
|
423
|
+
readonly type: "datetime";
|
|
424
|
+
readonly label: "Done";
|
|
425
|
+
};
|
|
426
|
+
readonly position: {
|
|
427
|
+
readonly type: "number";
|
|
428
|
+
readonly label: "Position (seconds)";
|
|
429
|
+
readonly min: 0;
|
|
430
|
+
readonly max: 86400;
|
|
431
|
+
readonly description: "Where the video was left, so the player resumes there.";
|
|
432
|
+
};
|
|
433
|
+
readonly source: {
|
|
434
|
+
readonly type: "select";
|
|
435
|
+
readonly label: "Where it came from";
|
|
436
|
+
readonly default: "self";
|
|
437
|
+
readonly options: readonly [{
|
|
438
|
+
readonly value: "self";
|
|
439
|
+
readonly label: "The student";
|
|
440
|
+
}, {
|
|
441
|
+
readonly value: "import";
|
|
442
|
+
readonly label: "Imported";
|
|
443
|
+
}];
|
|
444
|
+
};
|
|
445
|
+
};
|
|
446
|
+
readonly customer: {
|
|
447
|
+
readonly field: "holder";
|
|
448
|
+
readonly read: readonly ["course", "lessonKey", "state", "startedAt", "doneAt", "position", "source"];
|
|
449
|
+
readonly write: readonly ["course", "lessonKey", "state", "startedAt", "doneAt", "position"];
|
|
450
|
+
readonly requireAccess: readonly ["course"];
|
|
451
|
+
};
|
|
452
|
+
readonly indexes: readonly [readonly ["holder", "course"], readonly ["course", "lessonKey"]];
|
|
453
|
+
};
|
|
454
|
+
};
|
|
455
|
+
readonly views: {
|
|
456
|
+
readonly published: {
|
|
457
|
+
readonly label: "Published courses";
|
|
458
|
+
readonly object: "courses.course";
|
|
459
|
+
readonly filter: {
|
|
460
|
+
readonly field: "publishState";
|
|
461
|
+
readonly op: "eq";
|
|
462
|
+
readonly value: "published";
|
|
463
|
+
};
|
|
464
|
+
readonly sort: {
|
|
465
|
+
readonly field: "title";
|
|
466
|
+
readonly direction: "asc";
|
|
467
|
+
};
|
|
468
|
+
readonly columns: ["title", "theme", "level", "price", "publishedAt"];
|
|
469
|
+
};
|
|
470
|
+
readonly drafts: {
|
|
471
|
+
readonly label: "Drafts";
|
|
472
|
+
readonly object: "courses.course";
|
|
473
|
+
readonly filter: {
|
|
474
|
+
readonly field: "publishState";
|
|
475
|
+
readonly op: "eq";
|
|
476
|
+
readonly value: "draft";
|
|
477
|
+
};
|
|
478
|
+
readonly sort: {
|
|
479
|
+
readonly field: "updatedAt";
|
|
480
|
+
readonly direction: "desc";
|
|
481
|
+
};
|
|
482
|
+
readonly columns: ["title", "theme", "level", "updatedAt"];
|
|
483
|
+
};
|
|
484
|
+
readonly enrolmentsThisMonth: {
|
|
485
|
+
readonly label: "Enrolments this month";
|
|
486
|
+
readonly object: "courses.enrolment";
|
|
487
|
+
readonly filter: {
|
|
488
|
+
readonly field: "createdAt";
|
|
489
|
+
readonly op: "gte";
|
|
490
|
+
readonly value: {
|
|
491
|
+
readonly $relative: "startOfMonth";
|
|
492
|
+
};
|
|
493
|
+
};
|
|
494
|
+
readonly sort: {
|
|
495
|
+
readonly field: "createdAt";
|
|
496
|
+
readonly direction: "desc";
|
|
497
|
+
};
|
|
498
|
+
readonly columns: ["holder", "course", "bundle", "source", "status", "createdAt"];
|
|
499
|
+
};
|
|
500
|
+
readonly importedEnrolments: {
|
|
501
|
+
readonly label: "Imported enrolments";
|
|
502
|
+
readonly object: "courses.enrolment";
|
|
503
|
+
readonly filter: {
|
|
504
|
+
readonly field: "source";
|
|
505
|
+
readonly op: "eq";
|
|
506
|
+
readonly value: "import";
|
|
507
|
+
};
|
|
508
|
+
readonly sort: {
|
|
509
|
+
readonly field: "createdAt";
|
|
510
|
+
readonly direction: "desc";
|
|
511
|
+
};
|
|
512
|
+
readonly columns: ["holder", "course", "bundle", "completed", "until", "createdAt"];
|
|
513
|
+
};
|
|
514
|
+
};
|
|
515
|
+
readonly dashboards: {
|
|
516
|
+
courses: import("@composable-os/sdk").DashboardDeclaration;
|
|
517
|
+
};
|
|
518
|
+
readonly recordTabs: {
|
|
519
|
+
readonly personCourses: {
|
|
520
|
+
readonly label: "Courses";
|
|
521
|
+
readonly on: "person";
|
|
522
|
+
readonly view: {
|
|
523
|
+
readonly type: "table";
|
|
524
|
+
readonly object: "courses.enrolment";
|
|
525
|
+
readonly relation: "holder";
|
|
526
|
+
readonly columns: ["course", "bundle", "source", "status", "until", "createdAt"];
|
|
527
|
+
readonly sort: {
|
|
528
|
+
readonly field: "createdAt";
|
|
529
|
+
readonly direction: "desc";
|
|
530
|
+
};
|
|
531
|
+
};
|
|
532
|
+
readonly order: 35;
|
|
533
|
+
};
|
|
534
|
+
readonly personProgress: {
|
|
535
|
+
readonly label: "Lessons";
|
|
536
|
+
readonly on: "person";
|
|
537
|
+
readonly view: {
|
|
538
|
+
readonly type: "table";
|
|
539
|
+
readonly object: "courses.progress";
|
|
540
|
+
readonly relation: "holder";
|
|
541
|
+
readonly columns: ["course", "lessonKey", "state", "doneAt", "position"];
|
|
542
|
+
readonly sort: {
|
|
543
|
+
readonly field: "updatedAt";
|
|
544
|
+
readonly direction: "desc";
|
|
545
|
+
};
|
|
546
|
+
};
|
|
547
|
+
readonly order: 36;
|
|
548
|
+
};
|
|
549
|
+
};
|
|
550
|
+
readonly automations: {
|
|
551
|
+
assignSessions: import("@composable-os/sdk").AutomationSpec<{
|
|
552
|
+
readonly type: "record";
|
|
553
|
+
readonly object: "courses.progress";
|
|
554
|
+
readonly on: readonly ["created"];
|
|
555
|
+
}>;
|
|
556
|
+
};
|
|
557
|
+
readonly grantable: readonly ["courses:enrol"];
|
|
558
|
+
readonly tools: {
|
|
559
|
+
readonly catalogue: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
|
|
560
|
+
theme: import("zod").ZodOptional<import("zod").ZodString>;
|
|
561
|
+
level: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
562
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
563
|
+
themes: import("zod").ZodArray<import("zod").ZodObject<{
|
|
564
|
+
id: import("zod").ZodString;
|
|
565
|
+
name: import("zod").ZodNullable<import("zod").ZodString>;
|
|
566
|
+
slug: import("zod").ZodNullable<import("zod").ZodString>;
|
|
567
|
+
summary: import("zod").ZodNullable<import("zod").ZodString>;
|
|
568
|
+
picture: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
569
|
+
media: import("zod").ZodString;
|
|
570
|
+
alt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
571
|
+
}, import("zod/v4/core").$loose>>;
|
|
572
|
+
}, import("zod/v4/core").$strip>>;
|
|
573
|
+
courses: import("zod").ZodArray<import("zod").ZodObject<{
|
|
574
|
+
id: import("zod").ZodString;
|
|
575
|
+
title: import("zod").ZodNullable<import("zod").ZodString>;
|
|
576
|
+
slug: import("zod").ZodNullable<import("zod").ZodString>;
|
|
577
|
+
theme: import("zod").ZodNullable<import("zod").ZodString>;
|
|
578
|
+
level: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
579
|
+
summary: import("zod").ZodNullable<import("zod").ZodString>;
|
|
580
|
+
cover: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
581
|
+
media: import("zod").ZodString;
|
|
582
|
+
alt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
583
|
+
}, import("zod/v4/core").$loose>>;
|
|
584
|
+
trailer: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
585
|
+
media: import("zod").ZodString;
|
|
586
|
+
poster: import("zod").ZodOptional<import("zod").ZodString>;
|
|
587
|
+
}, import("zod/v4/core").$strip>>;
|
|
588
|
+
price: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
589
|
+
lessons: import("zod").ZodNumber;
|
|
590
|
+
}, import("zod/v4/core").$strip>>;
|
|
591
|
+
bundles: import("zod").ZodArray<import("zod").ZodObject<{
|
|
592
|
+
id: import("zod").ZodString;
|
|
593
|
+
title: import("zod").ZodNullable<import("zod").ZodString>;
|
|
594
|
+
slug: import("zod").ZodNullable<import("zod").ZodString>;
|
|
595
|
+
summary: import("zod").ZodNullable<import("zod").ZodString>;
|
|
596
|
+
cover: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
597
|
+
media: import("zod").ZodString;
|
|
598
|
+
alt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
599
|
+
}, import("zod/v4/core").$loose>>;
|
|
600
|
+
courses: import("zod").ZodArray<import("zod").ZodString>;
|
|
601
|
+
price: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
602
|
+
}, import("zod/v4/core").$strip>>;
|
|
603
|
+
currency: import("zod").ZodNullable<import("zod").ZodString>;
|
|
604
|
+
}, import("zod/v4/core").$strip>>;
|
|
605
|
+
readonly course: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
|
|
606
|
+
slug: import("zod").ZodString;
|
|
607
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
608
|
+
id: import("zod").ZodString;
|
|
609
|
+
title: import("zod").ZodNullable<import("zod").ZodString>;
|
|
610
|
+
slug: import("zod").ZodNullable<import("zod").ZodString>;
|
|
611
|
+
theme: import("zod").ZodNullable<import("zod").ZodString>;
|
|
612
|
+
level: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
613
|
+
summary: import("zod").ZodNullable<import("zod").ZodString>;
|
|
614
|
+
cover: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
615
|
+
media: import("zod").ZodString;
|
|
616
|
+
alt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
617
|
+
}, import("zod/v4/core").$loose>>;
|
|
618
|
+
trailer: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
619
|
+
media: import("zod").ZodString;
|
|
620
|
+
poster: import("zod").ZodOptional<import("zod").ZodString>;
|
|
621
|
+
}, import("zod/v4/core").$strip>>;
|
|
622
|
+
price: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
623
|
+
lessons: import("zod").ZodNumber;
|
|
624
|
+
description: import("zod").ZodUnknown;
|
|
625
|
+
sections: import("zod").ZodArray<import("zod").ZodObject<{
|
|
626
|
+
key: import("zod").ZodString;
|
|
627
|
+
title: import("zod").ZodString;
|
|
628
|
+
lessons: import("zod").ZodArray<import("zod").ZodObject<{
|
|
629
|
+
key: import("zod").ZodString;
|
|
630
|
+
title: import("zod").ZodString;
|
|
631
|
+
kind: import("zod").ZodEnum<{
|
|
632
|
+
video: "video";
|
|
633
|
+
text: "text";
|
|
634
|
+
session: "session";
|
|
635
|
+
download: "download";
|
|
636
|
+
}>;
|
|
637
|
+
duration: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
638
|
+
preview: import("zod").ZodBoolean;
|
|
639
|
+
}, import("zod/v4/core").$strip>>;
|
|
640
|
+
}, import("zod/v4/core").$strip>>;
|
|
641
|
+
currency: import("zod").ZodNullable<import("zod").ZodString>;
|
|
642
|
+
holds: import("zod").ZodBoolean;
|
|
643
|
+
done: import("zod").ZodArray<import("zod").ZodString>;
|
|
644
|
+
complete: import("zod").ZodBoolean;
|
|
645
|
+
}, import("zod/v4/core").$strip>>;
|
|
646
|
+
readonly lesson: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
|
|
647
|
+
courseId: import("zod").ZodString;
|
|
648
|
+
lessonKey: import("zod").ZodString;
|
|
649
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
650
|
+
courseId: import("zod").ZodString;
|
|
651
|
+
lesson: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
|
|
652
|
+
video: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
653
|
+
media: import("zod").ZodString;
|
|
654
|
+
poster: import("zod").ZodNullable<import("zod").ZodString>;
|
|
655
|
+
record: import("zod").ZodObject<{
|
|
656
|
+
object: import("zod").ZodString;
|
|
657
|
+
id: import("zod").ZodString;
|
|
658
|
+
}, import("zod/v4/core").$strip>;
|
|
659
|
+
field: import("zod").ZodString;
|
|
660
|
+
}, import("zod/v4/core").$strip>>;
|
|
661
|
+
position: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
662
|
+
state: import("zod").ZodNullable<import("zod").ZodEnum<{
|
|
663
|
+
done: "done";
|
|
664
|
+
started: "started";
|
|
665
|
+
}>>;
|
|
666
|
+
next: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
667
|
+
key: import("zod").ZodString;
|
|
668
|
+
title: import("zod").ZodString;
|
|
669
|
+
kind: import("zod").ZodEnum<{
|
|
670
|
+
video: "video";
|
|
671
|
+
text: "text";
|
|
672
|
+
session: "session";
|
|
673
|
+
download: "download";
|
|
674
|
+
}>;
|
|
675
|
+
duration: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
676
|
+
preview: import("zod").ZodBoolean;
|
|
677
|
+
}, import("zod/v4/core").$strip>>;
|
|
678
|
+
}, import("zod/v4/core").$strip>>;
|
|
679
|
+
readonly progress: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
|
|
680
|
+
courseId: import("zod").ZodString;
|
|
681
|
+
lessonKey: import("zod").ZodString;
|
|
682
|
+
state: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
683
|
+
done: "done";
|
|
684
|
+
started: "started";
|
|
685
|
+
}>>;
|
|
686
|
+
position: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
687
|
+
duration: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
688
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
689
|
+
lessonKey: import("zod").ZodString;
|
|
690
|
+
state: import("zod").ZodEnum<{
|
|
691
|
+
done: "done";
|
|
692
|
+
started: "started";
|
|
693
|
+
}>;
|
|
694
|
+
position: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
695
|
+
done: import("zod").ZodNumber;
|
|
696
|
+
counted: import("zod").ZodNumber;
|
|
697
|
+
complete: import("zod").ZodBoolean;
|
|
698
|
+
}, import("zod/v4/core").$strip>>;
|
|
699
|
+
readonly myCourses: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
700
|
+
courses: import("zod").ZodArray<import("zod").ZodObject<{
|
|
701
|
+
id: import("zod").ZodString;
|
|
702
|
+
title: import("zod").ZodNullable<import("zod").ZodString>;
|
|
703
|
+
slug: import("zod").ZodNullable<import("zod").ZodString>;
|
|
704
|
+
theme: import("zod").ZodNullable<import("zod").ZodString>;
|
|
705
|
+
level: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
706
|
+
summary: import("zod").ZodNullable<import("zod").ZodString>;
|
|
707
|
+
cover: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
708
|
+
media: import("zod").ZodString;
|
|
709
|
+
alt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
710
|
+
}, import("zod/v4/core").$loose>>;
|
|
711
|
+
trailer: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
712
|
+
media: import("zod").ZodString;
|
|
713
|
+
poster: import("zod").ZodOptional<import("zod").ZodString>;
|
|
714
|
+
}, import("zod/v4/core").$strip>>;
|
|
715
|
+
price: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
716
|
+
lessons: import("zod").ZodNumber;
|
|
717
|
+
why: import("zod").ZodEnum<{
|
|
718
|
+
bought: "bought";
|
|
719
|
+
bundle: "bundle";
|
|
720
|
+
given: "given";
|
|
721
|
+
imported: "imported";
|
|
722
|
+
subscription: "subscription";
|
|
723
|
+
}>;
|
|
724
|
+
done: import("zod").ZodNumber;
|
|
725
|
+
counted: import("zod").ZodNumber;
|
|
726
|
+
complete: import("zod").ZodBoolean;
|
|
727
|
+
continueWith: import("zod").ZodNullable<import("zod").ZodString>;
|
|
728
|
+
}, import("zod/v4/core").$strip>>;
|
|
729
|
+
}, import("zod/v4/core").$strip>>;
|
|
730
|
+
readonly plans: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
731
|
+
plans: import("zod").ZodArray<import("zod").ZodObject<{
|
|
732
|
+
id: import("zod").ZodString;
|
|
733
|
+
title: import("zod").ZodNullable<import("zod").ZodString>;
|
|
734
|
+
description: import("zod").ZodNullable<import("zod").ZodString>;
|
|
735
|
+
price: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
736
|
+
trialDays: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
737
|
+
}, import("zod/v4/core").$strip>>;
|
|
738
|
+
currency: import("zod").ZodNullable<import("zod").ZodString>;
|
|
739
|
+
}, import("zod/v4/core").$strip>>;
|
|
740
|
+
readonly buy: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
|
|
741
|
+
courseId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
742
|
+
bundleId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
743
|
+
email: import("zod").ZodOptional<import("zod").ZodString>;
|
|
744
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
745
|
+
id: import("zod").ZodString;
|
|
746
|
+
state: import("zod").ZodString;
|
|
747
|
+
currency: import("zod").ZodString;
|
|
748
|
+
total: import("zod").ZodNumber;
|
|
749
|
+
token: import("zod").ZodNullable<import("zod").ZodString>;
|
|
750
|
+
}, import("zod/v4/core").$strip>>;
|
|
751
|
+
readonly enrol: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
|
|
752
|
+
personId: import("zod").ZodString;
|
|
753
|
+
courseId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
754
|
+
bundleId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
755
|
+
until: import("zod").ZodOptional<import("zod").ZodString>;
|
|
756
|
+
reason: import("zod").ZodString;
|
|
757
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
758
|
+
enrolmentId: import("zod").ZodString;
|
|
759
|
+
status: import("zod").ZodString;
|
|
760
|
+
source: import("zod").ZodString;
|
|
761
|
+
}, import("zod/v4/core").$strip>>;
|
|
762
|
+
readonly endEnrolment: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
|
|
763
|
+
enrolmentId: import("zod").ZodString;
|
|
764
|
+
reason: import("zod").ZodString;
|
|
765
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
766
|
+
enrolmentId: import("zod").ZodString;
|
|
767
|
+
status: import("zod").ZodString;
|
|
768
|
+
source: import("zod").ZodString;
|
|
769
|
+
}, import("zod/v4/core").$strip>>;
|
|
770
|
+
readonly stats: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
|
|
771
|
+
courseId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
772
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
773
|
+
courses: import("zod").ZodArray<import("zod").ZodObject<{
|
|
774
|
+
courseId: import("zod").ZodString;
|
|
775
|
+
title: import("zod").ZodNullable<import("zod").ZodString>;
|
|
776
|
+
active: import("zod").ZodNumber;
|
|
777
|
+
ended: import("zod").ZodNumber;
|
|
778
|
+
void: import("zod").ZodNumber;
|
|
779
|
+
lessonsDone: import("zod").ZodNumber;
|
|
780
|
+
}, import("zod/v4/core").$strip>>;
|
|
781
|
+
byWeek: import("zod").ZodArray<import("zod").ZodObject<{
|
|
782
|
+
week: import("zod").ZodString;
|
|
783
|
+
done: import("zod").ZodNumber;
|
|
784
|
+
}, import("zod/v4/core").$strip>>;
|
|
785
|
+
}, import("zod/v4/core").$strip>>;
|
|
786
|
+
readonly draft: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
|
|
787
|
+
brief: import("zod").ZodString;
|
|
788
|
+
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
789
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
790
|
+
courseId: import("zod").ZodString;
|
|
791
|
+
title: import("zod").ZodString;
|
|
792
|
+
sections: import("zod").ZodNumber;
|
|
793
|
+
lessons: import("zod").ZodNumber;
|
|
794
|
+
videos: import("zod").ZodArray<import("zod").ZodString>;
|
|
795
|
+
programs: import("zod").ZodArray<import("zod").ZodString>;
|
|
796
|
+
published: import("zod").ZodLiteral<false>;
|
|
797
|
+
}, import("zod/v4/core").$strip>>;
|
|
798
|
+
readonly startSession: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
|
|
799
|
+
courseId: import("zod").ZodString;
|
|
800
|
+
lessonKey: import("zod").ZodString;
|
|
801
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
802
|
+
preparing: import("zod").ZodBoolean;
|
|
803
|
+
sessionId: import("zod").ZodNullable<import("zod").ZodString>;
|
|
804
|
+
date: import("zod").ZodNullable<import("zod").ZodString>;
|
|
805
|
+
programId: import("zod").ZodNullable<import("zod").ZodString>;
|
|
806
|
+
}, import("zod/v4/core").$strip>>;
|
|
807
|
+
};
|
|
808
|
+
}>;
|
|
809
|
+
export default _default;
|