@nikthegeek/dreamsforlittles-shared 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/admin.d.ts +955 -110
- package/dist/admin.js +59 -1
- package/dist/admin.js.map +1 -1
- package/dist/analysis.d.ts +24 -24
- package/dist/api.d.ts +5 -5
- package/dist/client-notices.d.ts +587 -587
- package/dist/coach-activity-notifications.d.ts +610 -0
- package/dist/coach-activity-notifications.js +179 -0
- package/dist/coach-activity-notifications.js.map +1 -0
- package/dist/coach-private-notes.d.ts +169 -0
- package/dist/coach-private-notes.js +28 -0
- package/dist/coach-private-notes.js.map +1 -0
- package/dist/coach.d.ts +796 -788
- package/dist/coach.js +2 -1
- package/dist/coach.js.map +1 -1
- package/dist/enums.d.ts +1 -1
- package/dist/enums.js +5 -0
- package/dist/enums.js.map +1 -1
- package/dist/errors.d.ts +7 -4
- package/dist/errors.js +9 -0
- package/dist/errors.js.map +1 -1
- package/dist/family-profile-artifacts.d.ts +85 -3
- package/dist/family-profile-artifacts.js +18 -14
- package/dist/family-profile-artifacts.js.map +1 -1
- package/dist/family.d.ts +915 -526
- package/dist/family.js +3 -1
- package/dist/family.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/notification-banners.d.ts +16 -16
- package/dist/product-analytics.d.ts +74 -74
- package/dist/push-devices.d.ts +6 -6
- package/dist/support-tickets.d.ts +18 -18
- package/package.json +1 -1
|
@@ -18,6 +18,7 @@ export type QuestionnaireChoice = z.infer<typeof questionnaireChoiceSchema>;
|
|
|
18
18
|
export declare const questionnaireQuestionSchema: z.ZodObject<{
|
|
19
19
|
id: z.ZodString;
|
|
20
20
|
section: z.ZodString;
|
|
21
|
+
sectionDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
22
|
label: z.ZodString;
|
|
22
23
|
helpText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
24
|
type: z.ZodEnum<["shortText", "longText", "singleChoice", "multiChoice", "yesNo", "number"]>;
|
|
@@ -48,6 +49,7 @@ export declare const questionnaireQuestionSchema: z.ZodObject<{
|
|
|
48
49
|
section: string;
|
|
49
50
|
required: boolean;
|
|
50
51
|
sortOrder: number;
|
|
52
|
+
sectionDescription?: string | null | undefined;
|
|
51
53
|
helpText?: string | null | undefined;
|
|
52
54
|
}, {
|
|
53
55
|
type: "number" | "shortText" | "longText" | "singleChoice" | "multiChoice" | "yesNo";
|
|
@@ -59,6 +61,7 @@ export declare const questionnaireQuestionSchema: z.ZodObject<{
|
|
|
59
61
|
label: string;
|
|
60
62
|
allowFreeText?: boolean | undefined;
|
|
61
63
|
}[] | undefined;
|
|
64
|
+
sectionDescription?: string | null | undefined;
|
|
62
65
|
helpText?: string | null | undefined;
|
|
63
66
|
required?: boolean | undefined;
|
|
64
67
|
sortOrder?: number | undefined;
|
|
@@ -109,6 +112,7 @@ export declare const coachQuestionnaireTemplateSchema: z.ZodObject<{
|
|
|
109
112
|
questions: z.ZodArray<z.ZodObject<{
|
|
110
113
|
id: z.ZodString;
|
|
111
114
|
section: z.ZodString;
|
|
115
|
+
sectionDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
112
116
|
label: z.ZodString;
|
|
113
117
|
helpText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
114
118
|
type: z.ZodEnum<["shortText", "longText", "singleChoice", "multiChoice", "yesNo", "number"]>;
|
|
@@ -139,6 +143,7 @@ export declare const coachQuestionnaireTemplateSchema: z.ZodObject<{
|
|
|
139
143
|
section: string;
|
|
140
144
|
required: boolean;
|
|
141
145
|
sortOrder: number;
|
|
146
|
+
sectionDescription?: string | null | undefined;
|
|
142
147
|
helpText?: string | null | undefined;
|
|
143
148
|
}, {
|
|
144
149
|
type: "number" | "shortText" | "longText" | "singleChoice" | "multiChoice" | "yesNo";
|
|
@@ -150,6 +155,7 @@ export declare const coachQuestionnaireTemplateSchema: z.ZodObject<{
|
|
|
150
155
|
label: string;
|
|
151
156
|
allowFreeText?: boolean | undefined;
|
|
152
157
|
}[] | undefined;
|
|
158
|
+
sectionDescription?: string | null | undefined;
|
|
153
159
|
helpText?: string | null | undefined;
|
|
154
160
|
required?: boolean | undefined;
|
|
155
161
|
sortOrder?: number | undefined;
|
|
@@ -179,6 +185,7 @@ export declare const coachQuestionnaireTemplateSchema: z.ZodObject<{
|
|
|
179
185
|
section: string;
|
|
180
186
|
required: boolean;
|
|
181
187
|
sortOrder: number;
|
|
188
|
+
sectionDescription?: string | null | undefined;
|
|
182
189
|
helpText?: string | null | undefined;
|
|
183
190
|
}[];
|
|
184
191
|
isDefault: boolean;
|
|
@@ -203,6 +210,7 @@ export declare const coachQuestionnaireTemplateSchema: z.ZodObject<{
|
|
|
203
210
|
label: string;
|
|
204
211
|
allowFreeText?: boolean | undefined;
|
|
205
212
|
}[] | undefined;
|
|
213
|
+
sectionDescription?: string | null | undefined;
|
|
206
214
|
helpText?: string | null | undefined;
|
|
207
215
|
required?: boolean | undefined;
|
|
208
216
|
sortOrder?: number | undefined;
|
|
@@ -220,6 +228,7 @@ export declare const coachQuestionnaireTemplateWriteRequestSchema: z.ZodObject<{
|
|
|
220
228
|
questions: z.ZodArray<z.ZodObject<{
|
|
221
229
|
id: z.ZodString;
|
|
222
230
|
section: z.ZodString;
|
|
231
|
+
sectionDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
223
232
|
label: z.ZodString;
|
|
224
233
|
helpText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
225
234
|
type: z.ZodEnum<["shortText", "longText", "singleChoice", "multiChoice", "yesNo", "number"]>;
|
|
@@ -250,6 +259,7 @@ export declare const coachQuestionnaireTemplateWriteRequestSchema: z.ZodObject<{
|
|
|
250
259
|
section: string;
|
|
251
260
|
required: boolean;
|
|
252
261
|
sortOrder: number;
|
|
262
|
+
sectionDescription?: string | null | undefined;
|
|
253
263
|
helpText?: string | null | undefined;
|
|
254
264
|
}, {
|
|
255
265
|
type: "number" | "shortText" | "longText" | "singleChoice" | "multiChoice" | "yesNo";
|
|
@@ -261,6 +271,7 @@ export declare const coachQuestionnaireTemplateWriteRequestSchema: z.ZodObject<{
|
|
|
261
271
|
label: string;
|
|
262
272
|
allowFreeText?: boolean | undefined;
|
|
263
273
|
}[] | undefined;
|
|
274
|
+
sectionDescription?: string | null | undefined;
|
|
264
275
|
helpText?: string | null | undefined;
|
|
265
276
|
required?: boolean | undefined;
|
|
266
277
|
sortOrder?: number | undefined;
|
|
@@ -279,6 +290,7 @@ export declare const coachQuestionnaireTemplateWriteRequestSchema: z.ZodObject<{
|
|
|
279
290
|
section: string;
|
|
280
291
|
required: boolean;
|
|
281
292
|
sortOrder: number;
|
|
293
|
+
sectionDescription?: string | null | undefined;
|
|
282
294
|
helpText?: string | null | undefined;
|
|
283
295
|
}[];
|
|
284
296
|
name?: string | undefined;
|
|
@@ -295,6 +307,7 @@ export declare const coachQuestionnaireTemplateWriteRequestSchema: z.ZodObject<{
|
|
|
295
307
|
label: string;
|
|
296
308
|
allowFreeText?: boolean | undefined;
|
|
297
309
|
}[] | undefined;
|
|
310
|
+
sectionDescription?: string | null | undefined;
|
|
298
311
|
helpText?: string | null | undefined;
|
|
299
312
|
required?: boolean | undefined;
|
|
300
313
|
sortOrder?: number | undefined;
|
|
@@ -310,6 +323,7 @@ export declare const coachQuestionnaireTemplateCreateRequestSchema: z.ZodObject<
|
|
|
310
323
|
questions: z.ZodArray<z.ZodObject<{
|
|
311
324
|
id: z.ZodString;
|
|
312
325
|
section: z.ZodString;
|
|
326
|
+
sectionDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
313
327
|
label: z.ZodString;
|
|
314
328
|
helpText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
315
329
|
type: z.ZodEnum<["shortText", "longText", "singleChoice", "multiChoice", "yesNo", "number"]>;
|
|
@@ -340,6 +354,7 @@ export declare const coachQuestionnaireTemplateCreateRequestSchema: z.ZodObject<
|
|
|
340
354
|
section: string;
|
|
341
355
|
required: boolean;
|
|
342
356
|
sortOrder: number;
|
|
357
|
+
sectionDescription?: string | null | undefined;
|
|
343
358
|
helpText?: string | null | undefined;
|
|
344
359
|
}, {
|
|
345
360
|
type: "number" | "shortText" | "longText" | "singleChoice" | "multiChoice" | "yesNo";
|
|
@@ -351,6 +366,7 @@ export declare const coachQuestionnaireTemplateCreateRequestSchema: z.ZodObject<
|
|
|
351
366
|
label: string;
|
|
352
367
|
allowFreeText?: boolean | undefined;
|
|
353
368
|
}[] | undefined;
|
|
369
|
+
sectionDescription?: string | null | undefined;
|
|
354
370
|
helpText?: string | null | undefined;
|
|
355
371
|
required?: boolean | undefined;
|
|
356
372
|
sortOrder?: number | undefined;
|
|
@@ -370,6 +386,7 @@ export declare const coachQuestionnaireTemplateCreateRequestSchema: z.ZodObject<
|
|
|
370
386
|
section: string;
|
|
371
387
|
required: boolean;
|
|
372
388
|
sortOrder: number;
|
|
389
|
+
sectionDescription?: string | null | undefined;
|
|
373
390
|
helpText?: string | null | undefined;
|
|
374
391
|
}[];
|
|
375
392
|
description?: string | null | undefined;
|
|
@@ -386,6 +403,7 @@ export declare const coachQuestionnaireTemplateCreateRequestSchema: z.ZodObject<
|
|
|
386
403
|
label: string;
|
|
387
404
|
allowFreeText?: boolean | undefined;
|
|
388
405
|
}[] | undefined;
|
|
406
|
+
sectionDescription?: string | null | undefined;
|
|
389
407
|
helpText?: string | null | undefined;
|
|
390
408
|
required?: boolean | undefined;
|
|
391
409
|
sortOrder?: number | undefined;
|
|
@@ -400,6 +418,7 @@ export declare const coachQuestionnaireTemplateUpdateRequestSchema: z.ZodObject<
|
|
|
400
418
|
questions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
401
419
|
id: z.ZodString;
|
|
402
420
|
section: z.ZodString;
|
|
421
|
+
sectionDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
403
422
|
label: z.ZodString;
|
|
404
423
|
helpText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
405
424
|
type: z.ZodEnum<["shortText", "longText", "singleChoice", "multiChoice", "yesNo", "number"]>;
|
|
@@ -430,6 +449,7 @@ export declare const coachQuestionnaireTemplateUpdateRequestSchema: z.ZodObject<
|
|
|
430
449
|
section: string;
|
|
431
450
|
required: boolean;
|
|
432
451
|
sortOrder: number;
|
|
452
|
+
sectionDescription?: string | null | undefined;
|
|
433
453
|
helpText?: string | null | undefined;
|
|
434
454
|
}, {
|
|
435
455
|
type: "number" | "shortText" | "longText" | "singleChoice" | "multiChoice" | "yesNo";
|
|
@@ -441,6 +461,7 @@ export declare const coachQuestionnaireTemplateUpdateRequestSchema: z.ZodObject<
|
|
|
441
461
|
label: string;
|
|
442
462
|
allowFreeText?: boolean | undefined;
|
|
443
463
|
}[] | undefined;
|
|
464
|
+
sectionDescription?: string | null | undefined;
|
|
444
465
|
helpText?: string | null | undefined;
|
|
445
466
|
required?: boolean | undefined;
|
|
446
467
|
sortOrder?: number | undefined;
|
|
@@ -463,6 +484,7 @@ export declare const coachQuestionnaireTemplateUpdateRequestSchema: z.ZodObject<
|
|
|
463
484
|
section: string;
|
|
464
485
|
required: boolean;
|
|
465
486
|
sortOrder: number;
|
|
487
|
+
sectionDescription?: string | null | undefined;
|
|
466
488
|
helpText?: string | null | undefined;
|
|
467
489
|
}[] | undefined;
|
|
468
490
|
}, {
|
|
@@ -480,6 +502,7 @@ export declare const coachQuestionnaireTemplateUpdateRequestSchema: z.ZodObject<
|
|
|
480
502
|
label: string;
|
|
481
503
|
allowFreeText?: boolean | undefined;
|
|
482
504
|
}[] | undefined;
|
|
505
|
+
sectionDescription?: string | null | undefined;
|
|
483
506
|
helpText?: string | null | undefined;
|
|
484
507
|
required?: boolean | undefined;
|
|
485
508
|
sortOrder?: number | undefined;
|
|
@@ -497,6 +520,7 @@ export declare const coachQuestionnaireTemplateResponseSchema: z.ZodObject<{
|
|
|
497
520
|
questions: z.ZodArray<z.ZodObject<{
|
|
498
521
|
id: z.ZodString;
|
|
499
522
|
section: z.ZodString;
|
|
523
|
+
sectionDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
500
524
|
label: z.ZodString;
|
|
501
525
|
helpText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
502
526
|
type: z.ZodEnum<["shortText", "longText", "singleChoice", "multiChoice", "yesNo", "number"]>;
|
|
@@ -527,6 +551,7 @@ export declare const coachQuestionnaireTemplateResponseSchema: z.ZodObject<{
|
|
|
527
551
|
section: string;
|
|
528
552
|
required: boolean;
|
|
529
553
|
sortOrder: number;
|
|
554
|
+
sectionDescription?: string | null | undefined;
|
|
530
555
|
helpText?: string | null | undefined;
|
|
531
556
|
}, {
|
|
532
557
|
type: "number" | "shortText" | "longText" | "singleChoice" | "multiChoice" | "yesNo";
|
|
@@ -538,6 +563,7 @@ export declare const coachQuestionnaireTemplateResponseSchema: z.ZodObject<{
|
|
|
538
563
|
label: string;
|
|
539
564
|
allowFreeText?: boolean | undefined;
|
|
540
565
|
}[] | undefined;
|
|
566
|
+
sectionDescription?: string | null | undefined;
|
|
541
567
|
helpText?: string | null | undefined;
|
|
542
568
|
required?: boolean | undefined;
|
|
543
569
|
sortOrder?: number | undefined;
|
|
@@ -567,6 +593,7 @@ export declare const coachQuestionnaireTemplateResponseSchema: z.ZodObject<{
|
|
|
567
593
|
section: string;
|
|
568
594
|
required: boolean;
|
|
569
595
|
sortOrder: number;
|
|
596
|
+
sectionDescription?: string | null | undefined;
|
|
570
597
|
helpText?: string | null | undefined;
|
|
571
598
|
}[];
|
|
572
599
|
isDefault: boolean;
|
|
@@ -591,6 +618,7 @@ export declare const coachQuestionnaireTemplateResponseSchema: z.ZodObject<{
|
|
|
591
618
|
label: string;
|
|
592
619
|
allowFreeText?: boolean | undefined;
|
|
593
620
|
}[] | undefined;
|
|
621
|
+
sectionDescription?: string | null | undefined;
|
|
594
622
|
helpText?: string | null | undefined;
|
|
595
623
|
required?: boolean | undefined;
|
|
596
624
|
sortOrder?: number | undefined;
|
|
@@ -621,6 +649,7 @@ export declare const coachQuestionnaireTemplateResponseSchema: z.ZodObject<{
|
|
|
621
649
|
section: string;
|
|
622
650
|
required: boolean;
|
|
623
651
|
sortOrder: number;
|
|
652
|
+
sectionDescription?: string | null | undefined;
|
|
624
653
|
helpText?: string | null | undefined;
|
|
625
654
|
}[];
|
|
626
655
|
isDefault: boolean;
|
|
@@ -647,6 +676,7 @@ export declare const coachQuestionnaireTemplateResponseSchema: z.ZodObject<{
|
|
|
647
676
|
label: string;
|
|
648
677
|
allowFreeText?: boolean | undefined;
|
|
649
678
|
}[] | undefined;
|
|
679
|
+
sectionDescription?: string | null | undefined;
|
|
650
680
|
helpText?: string | null | undefined;
|
|
651
681
|
required?: boolean | undefined;
|
|
652
682
|
sortOrder?: number | undefined;
|
|
@@ -669,6 +699,7 @@ export declare const coachQuestionnaireTemplatesResponseSchema: z.ZodObject<{
|
|
|
669
699
|
questions: z.ZodArray<z.ZodObject<{
|
|
670
700
|
id: z.ZodString;
|
|
671
701
|
section: z.ZodString;
|
|
702
|
+
sectionDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
672
703
|
label: z.ZodString;
|
|
673
704
|
helpText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
674
705
|
type: z.ZodEnum<["shortText", "longText", "singleChoice", "multiChoice", "yesNo", "number"]>;
|
|
@@ -699,6 +730,7 @@ export declare const coachQuestionnaireTemplatesResponseSchema: z.ZodObject<{
|
|
|
699
730
|
section: string;
|
|
700
731
|
required: boolean;
|
|
701
732
|
sortOrder: number;
|
|
733
|
+
sectionDescription?: string | null | undefined;
|
|
702
734
|
helpText?: string | null | undefined;
|
|
703
735
|
}, {
|
|
704
736
|
type: "number" | "shortText" | "longText" | "singleChoice" | "multiChoice" | "yesNo";
|
|
@@ -710,6 +742,7 @@ export declare const coachQuestionnaireTemplatesResponseSchema: z.ZodObject<{
|
|
|
710
742
|
label: string;
|
|
711
743
|
allowFreeText?: boolean | undefined;
|
|
712
744
|
}[] | undefined;
|
|
745
|
+
sectionDescription?: string | null | undefined;
|
|
713
746
|
helpText?: string | null | undefined;
|
|
714
747
|
required?: boolean | undefined;
|
|
715
748
|
sortOrder?: number | undefined;
|
|
@@ -739,6 +772,7 @@ export declare const coachQuestionnaireTemplatesResponseSchema: z.ZodObject<{
|
|
|
739
772
|
section: string;
|
|
740
773
|
required: boolean;
|
|
741
774
|
sortOrder: number;
|
|
775
|
+
sectionDescription?: string | null | undefined;
|
|
742
776
|
helpText?: string | null | undefined;
|
|
743
777
|
}[];
|
|
744
778
|
isDefault: boolean;
|
|
@@ -763,6 +797,7 @@ export declare const coachQuestionnaireTemplatesResponseSchema: z.ZodObject<{
|
|
|
763
797
|
label: string;
|
|
764
798
|
allowFreeText?: boolean | undefined;
|
|
765
799
|
}[] | undefined;
|
|
800
|
+
sectionDescription?: string | null | undefined;
|
|
766
801
|
helpText?: string | null | undefined;
|
|
767
802
|
required?: boolean | undefined;
|
|
768
803
|
sortOrder?: number | undefined;
|
|
@@ -793,6 +828,7 @@ export declare const coachQuestionnaireTemplatesResponseSchema: z.ZodObject<{
|
|
|
793
828
|
section: string;
|
|
794
829
|
required: boolean;
|
|
795
830
|
sortOrder: number;
|
|
831
|
+
sectionDescription?: string | null | undefined;
|
|
796
832
|
helpText?: string | null | undefined;
|
|
797
833
|
}[];
|
|
798
834
|
isDefault: boolean;
|
|
@@ -819,6 +855,7 @@ export declare const coachQuestionnaireTemplatesResponseSchema: z.ZodObject<{
|
|
|
819
855
|
label: string;
|
|
820
856
|
allowFreeText?: boolean | undefined;
|
|
821
857
|
}[] | undefined;
|
|
858
|
+
sectionDescription?: string | null | undefined;
|
|
822
859
|
helpText?: string | null | undefined;
|
|
823
860
|
required?: boolean | undefined;
|
|
824
861
|
sortOrder?: number | undefined;
|
|
@@ -842,6 +879,7 @@ export declare const coachQuestionnaireTemplateRemoveResponseSchema: z.ZodObject
|
|
|
842
879
|
questions: z.ZodArray<z.ZodObject<{
|
|
843
880
|
id: z.ZodString;
|
|
844
881
|
section: z.ZodString;
|
|
882
|
+
sectionDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
845
883
|
label: z.ZodString;
|
|
846
884
|
helpText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
847
885
|
type: z.ZodEnum<["shortText", "longText", "singleChoice", "multiChoice", "yesNo", "number"]>;
|
|
@@ -872,6 +910,7 @@ export declare const coachQuestionnaireTemplateRemoveResponseSchema: z.ZodObject
|
|
|
872
910
|
section: string;
|
|
873
911
|
required: boolean;
|
|
874
912
|
sortOrder: number;
|
|
913
|
+
sectionDescription?: string | null | undefined;
|
|
875
914
|
helpText?: string | null | undefined;
|
|
876
915
|
}, {
|
|
877
916
|
type: "number" | "shortText" | "longText" | "singleChoice" | "multiChoice" | "yesNo";
|
|
@@ -883,6 +922,7 @@ export declare const coachQuestionnaireTemplateRemoveResponseSchema: z.ZodObject
|
|
|
883
922
|
label: string;
|
|
884
923
|
allowFreeText?: boolean | undefined;
|
|
885
924
|
}[] | undefined;
|
|
925
|
+
sectionDescription?: string | null | undefined;
|
|
886
926
|
helpText?: string | null | undefined;
|
|
887
927
|
required?: boolean | undefined;
|
|
888
928
|
sortOrder?: number | undefined;
|
|
@@ -912,6 +952,7 @@ export declare const coachQuestionnaireTemplateRemoveResponseSchema: z.ZodObject
|
|
|
912
952
|
section: string;
|
|
913
953
|
required: boolean;
|
|
914
954
|
sortOrder: number;
|
|
955
|
+
sectionDescription?: string | null | undefined;
|
|
915
956
|
helpText?: string | null | undefined;
|
|
916
957
|
}[];
|
|
917
958
|
isDefault: boolean;
|
|
@@ -936,6 +977,7 @@ export declare const coachQuestionnaireTemplateRemoveResponseSchema: z.ZodObject
|
|
|
936
977
|
label: string;
|
|
937
978
|
allowFreeText?: boolean | undefined;
|
|
938
979
|
}[] | undefined;
|
|
980
|
+
sectionDescription?: string | null | undefined;
|
|
939
981
|
helpText?: string | null | undefined;
|
|
940
982
|
required?: boolean | undefined;
|
|
941
983
|
sortOrder?: number | undefined;
|
|
@@ -945,7 +987,9 @@ export declare const coachQuestionnaireTemplateRemoveResponseSchema: z.ZodObject
|
|
|
945
987
|
isDefault?: boolean | undefined;
|
|
946
988
|
assignedFamilyQuestionnaireCount?: number | undefined;
|
|
947
989
|
}>;
|
|
948
|
-
|
|
990
|
+
retainedFamilyQuestionnaireCount: z.ZodNumber;
|
|
991
|
+
/** @deprecated Historical family questionnaires are retained, not reassigned. */
|
|
992
|
+
reassignedFamilyQuestionnaireCount: z.ZodLiteral<0>;
|
|
949
993
|
}, "strip", z.ZodTypeAny, {
|
|
950
994
|
removedTemplateId: string;
|
|
951
995
|
defaultTemplate: {
|
|
@@ -968,6 +1012,7 @@ export declare const coachQuestionnaireTemplateRemoveResponseSchema: z.ZodObject
|
|
|
968
1012
|
section: string;
|
|
969
1013
|
required: boolean;
|
|
970
1014
|
sortOrder: number;
|
|
1015
|
+
sectionDescription?: string | null | undefined;
|
|
971
1016
|
helpText?: string | null | undefined;
|
|
972
1017
|
}[];
|
|
973
1018
|
isDefault: boolean;
|
|
@@ -975,7 +1020,8 @@ export declare const coachQuestionnaireTemplateRemoveResponseSchema: z.ZodObject
|
|
|
975
1020
|
archivedAt?: string | null | undefined;
|
|
976
1021
|
assignedFamilyQuestionnaireCount?: number | undefined;
|
|
977
1022
|
};
|
|
978
|
-
|
|
1023
|
+
retainedFamilyQuestionnaireCount: number;
|
|
1024
|
+
reassignedFamilyQuestionnaireCount: 0;
|
|
979
1025
|
}, {
|
|
980
1026
|
removedTemplateId: string;
|
|
981
1027
|
defaultTemplate: {
|
|
@@ -996,6 +1042,7 @@ export declare const coachQuestionnaireTemplateRemoveResponseSchema: z.ZodObject
|
|
|
996
1042
|
label: string;
|
|
997
1043
|
allowFreeText?: boolean | undefined;
|
|
998
1044
|
}[] | undefined;
|
|
1045
|
+
sectionDescription?: string | null | undefined;
|
|
999
1046
|
helpText?: string | null | undefined;
|
|
1000
1047
|
required?: boolean | undefined;
|
|
1001
1048
|
sortOrder?: number | undefined;
|
|
@@ -1005,7 +1052,8 @@ export declare const coachQuestionnaireTemplateRemoveResponseSchema: z.ZodObject
|
|
|
1005
1052
|
isDefault?: boolean | undefined;
|
|
1006
1053
|
assignedFamilyQuestionnaireCount?: number | undefined;
|
|
1007
1054
|
};
|
|
1008
|
-
|
|
1055
|
+
retainedFamilyQuestionnaireCount: number;
|
|
1056
|
+
reassignedFamilyQuestionnaireCount: 0;
|
|
1009
1057
|
}>;
|
|
1010
1058
|
export type CoachQuestionnaireTemplateRemoveResponse = z.infer<typeof coachQuestionnaireTemplateRemoveResponseSchema>;
|
|
1011
1059
|
export declare const familyQuestionnaireTemplateSelectionRequestSchema: z.ZodObject<{
|
|
@@ -1016,6 +1064,14 @@ export declare const familyQuestionnaireTemplateSelectionRequestSchema: z.ZodObj
|
|
|
1016
1064
|
templateId: string;
|
|
1017
1065
|
}>;
|
|
1018
1066
|
export type FamilyQuestionnaireTemplateSelectionRequest = z.infer<typeof familyQuestionnaireTemplateSelectionRequestSchema>;
|
|
1067
|
+
export declare const coachFamilyQuestionnaireCreateRequestSchema: z.ZodObject<{
|
|
1068
|
+
templateId: z.ZodString;
|
|
1069
|
+
}, "strip", z.ZodTypeAny, {
|
|
1070
|
+
templateId: string;
|
|
1071
|
+
}, {
|
|
1072
|
+
templateId: string;
|
|
1073
|
+
}>;
|
|
1074
|
+
export type CoachFamilyQuestionnaireCreateRequest = z.infer<typeof coachFamilyQuestionnaireCreateRequestSchema>;
|
|
1019
1075
|
export declare const familyQuestionnaireSchema: z.ZodObject<{
|
|
1020
1076
|
id: z.ZodString;
|
|
1021
1077
|
organizationId: z.ZodString;
|
|
@@ -1119,6 +1175,7 @@ export declare const familyQuestionnaireSchema: z.ZodObject<{
|
|
|
1119
1175
|
questions: z.ZodArray<z.ZodObject<{
|
|
1120
1176
|
id: z.ZodString;
|
|
1121
1177
|
section: z.ZodString;
|
|
1178
|
+
sectionDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1122
1179
|
label: z.ZodString;
|
|
1123
1180
|
helpText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1124
1181
|
type: z.ZodEnum<["shortText", "longText", "singleChoice", "multiChoice", "yesNo", "number"]>;
|
|
@@ -1149,6 +1206,7 @@ export declare const familyQuestionnaireSchema: z.ZodObject<{
|
|
|
1149
1206
|
section: string;
|
|
1150
1207
|
required: boolean;
|
|
1151
1208
|
sortOrder: number;
|
|
1209
|
+
sectionDescription?: string | null | undefined;
|
|
1152
1210
|
helpText?: string | null | undefined;
|
|
1153
1211
|
}, {
|
|
1154
1212
|
type: "number" | "shortText" | "longText" | "singleChoice" | "multiChoice" | "yesNo";
|
|
@@ -1160,6 +1218,7 @@ export declare const familyQuestionnaireSchema: z.ZodObject<{
|
|
|
1160
1218
|
label: string;
|
|
1161
1219
|
allowFreeText?: boolean | undefined;
|
|
1162
1220
|
}[] | undefined;
|
|
1221
|
+
sectionDescription?: string | null | undefined;
|
|
1163
1222
|
helpText?: string | null | undefined;
|
|
1164
1223
|
required?: boolean | undefined;
|
|
1165
1224
|
sortOrder?: number | undefined;
|
|
@@ -1199,6 +1258,7 @@ export declare const familyQuestionnaireSchema: z.ZodObject<{
|
|
|
1199
1258
|
section: string;
|
|
1200
1259
|
required: boolean;
|
|
1201
1260
|
sortOrder: number;
|
|
1261
|
+
sectionDescription?: string | null | undefined;
|
|
1202
1262
|
helpText?: string | null | undefined;
|
|
1203
1263
|
}[];
|
|
1204
1264
|
answers: Record<string, string | number | boolean | string[] | {
|
|
@@ -1251,6 +1311,7 @@ export declare const familyQuestionnaireSchema: z.ZodObject<{
|
|
|
1251
1311
|
label: string;
|
|
1252
1312
|
allowFreeText?: boolean | undefined;
|
|
1253
1313
|
}[] | undefined;
|
|
1314
|
+
sectionDescription?: string | null | undefined;
|
|
1254
1315
|
helpText?: string | null | undefined;
|
|
1255
1316
|
required?: boolean | undefined;
|
|
1256
1317
|
sortOrder?: number | undefined;
|
|
@@ -1392,6 +1453,7 @@ export declare const familyQuestionnaireResponseSchema: z.ZodObject<{
|
|
|
1392
1453
|
questions: z.ZodArray<z.ZodObject<{
|
|
1393
1454
|
id: z.ZodString;
|
|
1394
1455
|
section: z.ZodString;
|
|
1456
|
+
sectionDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1395
1457
|
label: z.ZodString;
|
|
1396
1458
|
helpText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1397
1459
|
type: z.ZodEnum<["shortText", "longText", "singleChoice", "multiChoice", "yesNo", "number"]>;
|
|
@@ -1422,6 +1484,7 @@ export declare const familyQuestionnaireResponseSchema: z.ZodObject<{
|
|
|
1422
1484
|
section: string;
|
|
1423
1485
|
required: boolean;
|
|
1424
1486
|
sortOrder: number;
|
|
1487
|
+
sectionDescription?: string | null | undefined;
|
|
1425
1488
|
helpText?: string | null | undefined;
|
|
1426
1489
|
}, {
|
|
1427
1490
|
type: "number" | "shortText" | "longText" | "singleChoice" | "multiChoice" | "yesNo";
|
|
@@ -1433,6 +1496,7 @@ export declare const familyQuestionnaireResponseSchema: z.ZodObject<{
|
|
|
1433
1496
|
label: string;
|
|
1434
1497
|
allowFreeText?: boolean | undefined;
|
|
1435
1498
|
}[] | undefined;
|
|
1499
|
+
sectionDescription?: string | null | undefined;
|
|
1436
1500
|
helpText?: string | null | undefined;
|
|
1437
1501
|
required?: boolean | undefined;
|
|
1438
1502
|
sortOrder?: number | undefined;
|
|
@@ -1472,6 +1536,7 @@ export declare const familyQuestionnaireResponseSchema: z.ZodObject<{
|
|
|
1472
1536
|
section: string;
|
|
1473
1537
|
required: boolean;
|
|
1474
1538
|
sortOrder: number;
|
|
1539
|
+
sectionDescription?: string | null | undefined;
|
|
1475
1540
|
helpText?: string | null | undefined;
|
|
1476
1541
|
}[];
|
|
1477
1542
|
answers: Record<string, string | number | boolean | string[] | {
|
|
@@ -1524,6 +1589,7 @@ export declare const familyQuestionnaireResponseSchema: z.ZodObject<{
|
|
|
1524
1589
|
label: string;
|
|
1525
1590
|
allowFreeText?: boolean | undefined;
|
|
1526
1591
|
}[] | undefined;
|
|
1592
|
+
sectionDescription?: string | null | undefined;
|
|
1527
1593
|
helpText?: string | null | undefined;
|
|
1528
1594
|
required?: boolean | undefined;
|
|
1529
1595
|
sortOrder?: number | undefined;
|
|
@@ -1582,6 +1648,7 @@ export declare const familyQuestionnaireResponseSchema: z.ZodObject<{
|
|
|
1582
1648
|
section: string;
|
|
1583
1649
|
required: boolean;
|
|
1584
1650
|
sortOrder: number;
|
|
1651
|
+
sectionDescription?: string | null | undefined;
|
|
1585
1652
|
helpText?: string | null | undefined;
|
|
1586
1653
|
}[];
|
|
1587
1654
|
answers: Record<string, string | number | boolean | string[] | {
|
|
@@ -1636,6 +1703,7 @@ export declare const familyQuestionnaireResponseSchema: z.ZodObject<{
|
|
|
1636
1703
|
label: string;
|
|
1637
1704
|
allowFreeText?: boolean | undefined;
|
|
1638
1705
|
}[] | undefined;
|
|
1706
|
+
sectionDescription?: string | null | undefined;
|
|
1639
1707
|
helpText?: string | null | undefined;
|
|
1640
1708
|
required?: boolean | undefined;
|
|
1641
1709
|
sortOrder?: number | undefined;
|
|
@@ -1778,6 +1846,7 @@ export declare const familyQuestionnaireReadResponseSchema: z.ZodObject<{
|
|
|
1778
1846
|
questions: z.ZodArray<z.ZodObject<{
|
|
1779
1847
|
id: z.ZodString;
|
|
1780
1848
|
section: z.ZodString;
|
|
1849
|
+
sectionDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1781
1850
|
label: z.ZodString;
|
|
1782
1851
|
helpText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1783
1852
|
type: z.ZodEnum<["shortText", "longText", "singleChoice", "multiChoice", "yesNo", "number"]>;
|
|
@@ -1808,6 +1877,7 @@ export declare const familyQuestionnaireReadResponseSchema: z.ZodObject<{
|
|
|
1808
1877
|
section: string;
|
|
1809
1878
|
required: boolean;
|
|
1810
1879
|
sortOrder: number;
|
|
1880
|
+
sectionDescription?: string | null | undefined;
|
|
1811
1881
|
helpText?: string | null | undefined;
|
|
1812
1882
|
}, {
|
|
1813
1883
|
type: "number" | "shortText" | "longText" | "singleChoice" | "multiChoice" | "yesNo";
|
|
@@ -1819,6 +1889,7 @@ export declare const familyQuestionnaireReadResponseSchema: z.ZodObject<{
|
|
|
1819
1889
|
label: string;
|
|
1820
1890
|
allowFreeText?: boolean | undefined;
|
|
1821
1891
|
}[] | undefined;
|
|
1892
|
+
sectionDescription?: string | null | undefined;
|
|
1822
1893
|
helpText?: string | null | undefined;
|
|
1823
1894
|
required?: boolean | undefined;
|
|
1824
1895
|
sortOrder?: number | undefined;
|
|
@@ -1858,6 +1929,7 @@ export declare const familyQuestionnaireReadResponseSchema: z.ZodObject<{
|
|
|
1858
1929
|
section: string;
|
|
1859
1930
|
required: boolean;
|
|
1860
1931
|
sortOrder: number;
|
|
1932
|
+
sectionDescription?: string | null | undefined;
|
|
1861
1933
|
helpText?: string | null | undefined;
|
|
1862
1934
|
}[];
|
|
1863
1935
|
answers: Record<string, string | number | boolean | string[] | {
|
|
@@ -1910,6 +1982,7 @@ export declare const familyQuestionnaireReadResponseSchema: z.ZodObject<{
|
|
|
1910
1982
|
label: string;
|
|
1911
1983
|
allowFreeText?: boolean | undefined;
|
|
1912
1984
|
}[] | undefined;
|
|
1985
|
+
sectionDescription?: string | null | undefined;
|
|
1913
1986
|
helpText?: string | null | undefined;
|
|
1914
1987
|
required?: boolean | undefined;
|
|
1915
1988
|
sortOrder?: number | undefined;
|
|
@@ -1968,6 +2041,7 @@ export declare const familyQuestionnaireReadResponseSchema: z.ZodObject<{
|
|
|
1968
2041
|
section: string;
|
|
1969
2042
|
required: boolean;
|
|
1970
2043
|
sortOrder: number;
|
|
2044
|
+
sectionDescription?: string | null | undefined;
|
|
1971
2045
|
helpText?: string | null | undefined;
|
|
1972
2046
|
}[];
|
|
1973
2047
|
answers: Record<string, string | number | boolean | string[] | {
|
|
@@ -2022,6 +2096,7 @@ export declare const familyQuestionnaireReadResponseSchema: z.ZodObject<{
|
|
|
2022
2096
|
label: string;
|
|
2023
2097
|
allowFreeText?: boolean | undefined;
|
|
2024
2098
|
}[] | undefined;
|
|
2099
|
+
sectionDescription?: string | null | undefined;
|
|
2025
2100
|
helpText?: string | null | undefined;
|
|
2026
2101
|
required?: boolean | undefined;
|
|
2027
2102
|
sortOrder?: number | undefined;
|
|
@@ -2172,6 +2247,7 @@ export declare const familyQuestionnairesResponseSchema: z.ZodObject<{
|
|
|
2172
2247
|
questions: z.ZodArray<z.ZodObject<{
|
|
2173
2248
|
id: z.ZodString;
|
|
2174
2249
|
section: z.ZodString;
|
|
2250
|
+
sectionDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2175
2251
|
label: z.ZodString;
|
|
2176
2252
|
helpText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2177
2253
|
type: z.ZodEnum<["shortText", "longText", "singleChoice", "multiChoice", "yesNo", "number"]>;
|
|
@@ -2202,6 +2278,7 @@ export declare const familyQuestionnairesResponseSchema: z.ZodObject<{
|
|
|
2202
2278
|
section: string;
|
|
2203
2279
|
required: boolean;
|
|
2204
2280
|
sortOrder: number;
|
|
2281
|
+
sectionDescription?: string | null | undefined;
|
|
2205
2282
|
helpText?: string | null | undefined;
|
|
2206
2283
|
}, {
|
|
2207
2284
|
type: "number" | "shortText" | "longText" | "singleChoice" | "multiChoice" | "yesNo";
|
|
@@ -2213,6 +2290,7 @@ export declare const familyQuestionnairesResponseSchema: z.ZodObject<{
|
|
|
2213
2290
|
label: string;
|
|
2214
2291
|
allowFreeText?: boolean | undefined;
|
|
2215
2292
|
}[] | undefined;
|
|
2293
|
+
sectionDescription?: string | null | undefined;
|
|
2216
2294
|
helpText?: string | null | undefined;
|
|
2217
2295
|
required?: boolean | undefined;
|
|
2218
2296
|
sortOrder?: number | undefined;
|
|
@@ -2252,6 +2330,7 @@ export declare const familyQuestionnairesResponseSchema: z.ZodObject<{
|
|
|
2252
2330
|
section: string;
|
|
2253
2331
|
required: boolean;
|
|
2254
2332
|
sortOrder: number;
|
|
2333
|
+
sectionDescription?: string | null | undefined;
|
|
2255
2334
|
helpText?: string | null | undefined;
|
|
2256
2335
|
}[];
|
|
2257
2336
|
answers: Record<string, string | number | boolean | string[] | {
|
|
@@ -2304,6 +2383,7 @@ export declare const familyQuestionnairesResponseSchema: z.ZodObject<{
|
|
|
2304
2383
|
label: string;
|
|
2305
2384
|
allowFreeText?: boolean | undefined;
|
|
2306
2385
|
}[] | undefined;
|
|
2386
|
+
sectionDescription?: string | null | undefined;
|
|
2307
2387
|
helpText?: string | null | undefined;
|
|
2308
2388
|
required?: boolean | undefined;
|
|
2309
2389
|
sortOrder?: number | undefined;
|
|
@@ -2362,6 +2442,7 @@ export declare const familyQuestionnairesResponseSchema: z.ZodObject<{
|
|
|
2362
2442
|
section: string;
|
|
2363
2443
|
required: boolean;
|
|
2364
2444
|
sortOrder: number;
|
|
2445
|
+
sectionDescription?: string | null | undefined;
|
|
2365
2446
|
helpText?: string | null | undefined;
|
|
2366
2447
|
}[];
|
|
2367
2448
|
answers: Record<string, string | number | boolean | string[] | {
|
|
@@ -2416,6 +2497,7 @@ export declare const familyQuestionnairesResponseSchema: z.ZodObject<{
|
|
|
2416
2497
|
label: string;
|
|
2417
2498
|
allowFreeText?: boolean | undefined;
|
|
2418
2499
|
}[] | undefined;
|
|
2500
|
+
sectionDescription?: string | null | undefined;
|
|
2419
2501
|
helpText?: string | null | undefined;
|
|
2420
2502
|
required?: boolean | undefined;
|
|
2421
2503
|
sortOrder?: number | undefined;
|
|
@@ -10,14 +10,15 @@ export const questionnaireQuestionTypeSchema = z.enum([
|
|
|
10
10
|
]);
|
|
11
11
|
export const questionnaireChoiceSchema = z.object({
|
|
12
12
|
id: z.string().trim().min(1).max(80),
|
|
13
|
-
label: z.string().trim().min(1)
|
|
13
|
+
label: z.string().trim().min(1),
|
|
14
14
|
allowFreeText: z.boolean().optional()
|
|
15
15
|
});
|
|
16
16
|
export const questionnaireQuestionSchema = z.object({
|
|
17
17
|
id: z.string().trim().min(1).max(80),
|
|
18
|
-
section: z.string().trim().min(1)
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
section: z.string().trim().min(1),
|
|
19
|
+
sectionDescription: z.string().trim().nullable().optional(),
|
|
20
|
+
label: z.string().trim().min(1),
|
|
21
|
+
helpText: z.string().trim().nullable().optional(),
|
|
21
22
|
type: questionnaireQuestionTypeSchema,
|
|
22
23
|
required: z.boolean().default(false),
|
|
23
24
|
options: z.array(questionnaireChoiceSchema).max(30).default([]),
|
|
@@ -56,21 +57,21 @@ export const coachQuestionnaireTemplateSchema = z.object({
|
|
|
56
57
|
updatedAt: z.string()
|
|
57
58
|
});
|
|
58
59
|
export const coachQuestionnaireTemplateWriteRequestSchema = z.object({
|
|
59
|
-
name: z.string().trim().min(1).
|
|
60
|
-
title: z.string().trim().min(1)
|
|
61
|
-
description: z.string().trim().
|
|
60
|
+
name: z.string().trim().min(1).optional(),
|
|
61
|
+
title: z.string().trim().min(1),
|
|
62
|
+
description: z.string().trim().nullable().optional(),
|
|
62
63
|
questions: z.array(questionnaireQuestionSchema).min(1).max(80)
|
|
63
64
|
});
|
|
64
65
|
export const coachQuestionnaireTemplateCreateRequestSchema = z.object({
|
|
65
|
-
name: z.string().trim().min(1)
|
|
66
|
-
title: z.string().trim().min(1)
|
|
67
|
-
description: z.string().trim().
|
|
66
|
+
name: z.string().trim().min(1),
|
|
67
|
+
title: z.string().trim().min(1),
|
|
68
|
+
description: z.string().trim().nullable().optional(),
|
|
68
69
|
questions: z.array(questionnaireQuestionSchema).min(1).max(80)
|
|
69
70
|
});
|
|
70
71
|
export const coachQuestionnaireTemplateUpdateRequestSchema = z.object({
|
|
71
|
-
name: z.string().trim().min(1).
|
|
72
|
-
title: z.string().trim().min(1).
|
|
73
|
-
description: z.string().trim().
|
|
72
|
+
name: z.string().trim().min(1).optional(),
|
|
73
|
+
title: z.string().trim().min(1).optional(),
|
|
74
|
+
description: z.string().trim().nullable().optional(),
|
|
74
75
|
questions: z.array(questionnaireQuestionSchema).min(1).max(80).optional(),
|
|
75
76
|
archived: z.boolean().optional()
|
|
76
77
|
});
|
|
@@ -83,11 +84,14 @@ export const coachQuestionnaireTemplatesResponseSchema = z.object({
|
|
|
83
84
|
export const coachQuestionnaireTemplateRemoveResponseSchema = z.object({
|
|
84
85
|
removedTemplateId: z.string(),
|
|
85
86
|
defaultTemplate: coachQuestionnaireTemplateSchema,
|
|
86
|
-
|
|
87
|
+
retainedFamilyQuestionnaireCount: z.number().int().nonnegative(),
|
|
88
|
+
/** @deprecated Historical family questionnaires are retained, not reassigned. */
|
|
89
|
+
reassignedFamilyQuestionnaireCount: z.literal(0)
|
|
87
90
|
});
|
|
88
91
|
export const familyQuestionnaireTemplateSelectionRequestSchema = z.object({
|
|
89
92
|
templateId: z.string().trim().min(1).max(160)
|
|
90
93
|
});
|
|
94
|
+
export const coachFamilyQuestionnaireCreateRequestSchema = familyQuestionnaireTemplateSelectionRequestSchema;
|
|
91
95
|
export const familyQuestionnaireSchema = z.object({
|
|
92
96
|
id: z.string(),
|
|
93
97
|
organizationId: z.string(),
|