@eliasrrosa/tutorhub-public-assets 0.9.16 → 0.9.18
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/index.cjs
CHANGED
|
@@ -42,6 +42,7 @@ var index_exports = {};
|
|
|
42
42
|
__export(index_exports, {
|
|
43
43
|
ClassCreationRecurrenceRuleSchema: () => ClassCreationRecurrenceRuleSchema,
|
|
44
44
|
ClassStatusSchema: () => ClassStatusSchema,
|
|
45
|
+
EditClassFormSchema: () => EditClassFormSchema,
|
|
45
46
|
FreeDateTimeSlot: () => FreeDateTimeSlot,
|
|
46
47
|
ISO8601Date: () => ISO8601Date,
|
|
47
48
|
ISO8601DateTime: () => ISO8601DateTime,
|
|
@@ -664,10 +665,28 @@ function filterAsync(arr, predicate) {
|
|
|
664
665
|
return arr.filter((_v, index) => results[index]);
|
|
665
666
|
});
|
|
666
667
|
}
|
|
668
|
+
|
|
669
|
+
// src/infrastructure/restful/requests/forms/EditClassForm.ts
|
|
670
|
+
var import_zod4 = require("zod");
|
|
671
|
+
var EditClassFormSchema = import_zod4.z.object({
|
|
672
|
+
courseId: import_zod4.z.string().uuid().optional(),
|
|
673
|
+
title: import_zod4.z.string().min(1).max(255).optional(),
|
|
674
|
+
description: import_zod4.z.string().max(255).optional(),
|
|
675
|
+
status: ClassStatusSchema.optional(),
|
|
676
|
+
startDateTime: import_zod4.z.string().datetime().optional(),
|
|
677
|
+
endDateTime: import_zod4.z.string().datetime().optional(),
|
|
678
|
+
recurrenceRule: ClassCreationRecurrenceRuleSchema.optional(),
|
|
679
|
+
recurrenceEndDate: import_zod4.z.string().datetime().optional(),
|
|
680
|
+
students: import_zod4.z.array(import_zod4.z.object({ id: import_zod4.z.string().uuid() })).optional(),
|
|
681
|
+
groupId: import_zod4.z.string().uuid().optional(),
|
|
682
|
+
id: import_zod4.z.string().uuid().optional(),
|
|
683
|
+
meetingLink: import_zod4.z.string().url().optional()
|
|
684
|
+
});
|
|
667
685
|
// Annotate the CommonJS export names for ESM import in node:
|
|
668
686
|
0 && (module.exports = {
|
|
669
687
|
ClassCreationRecurrenceRuleSchema,
|
|
670
688
|
ClassStatusSchema,
|
|
689
|
+
EditClassFormSchema,
|
|
671
690
|
FreeDateTimeSlot,
|
|
672
691
|
ISO8601Date,
|
|
673
692
|
ISO8601DateTime,
|
package/dist/index.d.ts
CHANGED
|
@@ -24,4 +24,5 @@ import { GetReceivedStudentToTeacherConnectionConfirmationResponseBody } from ".
|
|
|
24
24
|
import { PutStudentToTeacherConnectionConfirmationRequestUrlQueryParams } from "./infrastructure/restful/requests/queryParams/PutStudentToTeacherConnectionConfirmationExpressRequestUrlQueryParams.js";
|
|
25
25
|
import { GetReceivedStudentToTeacherConnectionConfirmationsQueryParams } from "./infrastructure/restful/requests/queryParams/GetReceivedStudentToTeacherConnectionConfirmationsQueryParams.js";
|
|
26
26
|
import { RescheduleClassForm } from "./infrastructure/restful/requests/forms/RescheduleClassForm.js";
|
|
27
|
-
|
|
27
|
+
import { EditClassForm, EditClassFormSchema } from "./infrastructure/restful/requests/forms/EditClassForm.js";
|
|
28
|
+
export { filterAsync, tryCatchAsync, tryCatch, ClassStatus, IDate, IDateTimeSlot, IFreeDateTimeSlot, FreeDateTimeSlot, IDateValidator, ISO8601Date, IDateTime, ISO8601DateValidator, ISO8601Time, ISO8601TimeValidator, ITime, ITimeSlot, ITimeValidator, GetFixedAvailableTimeResponseBody, ISO8601DateTime, ScheduleClassForm, ClassCreationRecurrenceRule, ScheduleClassFormSchema, ClassCreationRecurrenceRuleSchema, ClassStatusSchema, PublicTeacherDTO, GetPublicTeachersResponseBody, ConnectStudentToTeacherQueryParams, StudentToTeacherConnectionConfirmationDTO, GetReceivedStudentToTeacherConnectionConfirmationResponseBody, PutStudentToTeacherConnectionConfirmationRequestUrlQueryParams, GetReceivedStudentToTeacherConnectionConfirmationsQueryParams, RescheduleClassForm, EditClassForm, EditClassFormSchema };
|
package/dist/index.js
CHANGED
|
@@ -628,9 +628,27 @@ function filterAsync(arr, predicate) {
|
|
|
628
628
|
return arr.filter((_v, index) => results[index]);
|
|
629
629
|
});
|
|
630
630
|
}
|
|
631
|
+
|
|
632
|
+
// src/infrastructure/restful/requests/forms/EditClassForm.ts
|
|
633
|
+
import { z as z4 } from "zod";
|
|
634
|
+
var EditClassFormSchema = z4.object({
|
|
635
|
+
courseId: z4.string().uuid().optional(),
|
|
636
|
+
title: z4.string().min(1).max(255).optional(),
|
|
637
|
+
description: z4.string().max(255).optional(),
|
|
638
|
+
status: ClassStatusSchema.optional(),
|
|
639
|
+
startDateTime: z4.string().datetime().optional(),
|
|
640
|
+
endDateTime: z4.string().datetime().optional(),
|
|
641
|
+
recurrenceRule: ClassCreationRecurrenceRuleSchema.optional(),
|
|
642
|
+
recurrenceEndDate: z4.string().datetime().optional(),
|
|
643
|
+
students: z4.array(z4.object({ id: z4.string().uuid() })).optional(),
|
|
644
|
+
groupId: z4.string().uuid().optional(),
|
|
645
|
+
id: z4.string().uuid().optional(),
|
|
646
|
+
meetingLink: z4.string().url().optional()
|
|
647
|
+
});
|
|
631
648
|
export {
|
|
632
649
|
ClassCreationRecurrenceRuleSchema,
|
|
633
650
|
ClassStatusSchema,
|
|
651
|
+
EditClassFormSchema,
|
|
634
652
|
FreeDateTimeSlot,
|
|
635
653
|
ISO8601Date,
|
|
636
654
|
ISO8601DateTime,
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const EditClassFormSchema: z.ZodObject<{
|
|
3
|
+
courseId: z.ZodOptional<z.ZodString>;
|
|
4
|
+
title: z.ZodOptional<z.ZodString>;
|
|
5
|
+
description: z.ZodOptional<z.ZodString>;
|
|
6
|
+
status: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"pending">, z.ZodLiteral<"done">]>, z.ZodLiteral<"canceled">]>, z.ZodLiteral<"to reschedule">]>>;
|
|
7
|
+
startDateTime: z.ZodOptional<z.ZodString>;
|
|
8
|
+
endDateTime: z.ZodOptional<z.ZodString>;
|
|
9
|
+
recurrenceRule: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"daily">, z.ZodLiteral<"weekly">]>, z.ZodLiteral<"week days">]>>;
|
|
10
|
+
recurrenceEndDate: z.ZodOptional<z.ZodString>;
|
|
11
|
+
students: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
12
|
+
id: z.ZodString;
|
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
id: string;
|
|
15
|
+
}, {
|
|
16
|
+
id: string;
|
|
17
|
+
}>, "many">>;
|
|
18
|
+
groupId: z.ZodOptional<z.ZodString>;
|
|
19
|
+
id: z.ZodOptional<z.ZodString>;
|
|
20
|
+
meetingLink: z.ZodOptional<z.ZodString>;
|
|
21
|
+
}, "strip", z.ZodTypeAny, {
|
|
22
|
+
status?: "pending" | "done" | "canceled" | "to reschedule" | undefined;
|
|
23
|
+
title?: string | undefined;
|
|
24
|
+
startDateTime?: string | undefined;
|
|
25
|
+
endDateTime?: string | undefined;
|
|
26
|
+
courseId?: string | undefined;
|
|
27
|
+
description?: string | undefined;
|
|
28
|
+
meetingLink?: string | undefined;
|
|
29
|
+
groupId?: string | undefined;
|
|
30
|
+
recurrenceEndDate?: string | undefined;
|
|
31
|
+
recurrenceRule?: "daily" | "weekly" | "week days" | undefined;
|
|
32
|
+
id?: string | undefined;
|
|
33
|
+
students?: {
|
|
34
|
+
id: string;
|
|
35
|
+
}[] | undefined;
|
|
36
|
+
}, {
|
|
37
|
+
status?: "pending" | "done" | "canceled" | "to reschedule" | undefined;
|
|
38
|
+
title?: string | undefined;
|
|
39
|
+
startDateTime?: string | undefined;
|
|
40
|
+
endDateTime?: string | undefined;
|
|
41
|
+
courseId?: string | undefined;
|
|
42
|
+
description?: string | undefined;
|
|
43
|
+
meetingLink?: string | undefined;
|
|
44
|
+
groupId?: string | undefined;
|
|
45
|
+
recurrenceEndDate?: string | undefined;
|
|
46
|
+
recurrenceRule?: "daily" | "weekly" | "week days" | undefined;
|
|
47
|
+
id?: string | undefined;
|
|
48
|
+
students?: {
|
|
49
|
+
id: string;
|
|
50
|
+
}[] | undefined;
|
|
51
|
+
}>;
|
|
52
|
+
export type EditClassForm = z.infer<typeof EditClassFormSchema>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EditClassFormSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const ClassStatus_1 = require("../../../../domain/types/ClassStatus");
|
|
6
|
+
const ClassCreationRecurrenceRule_1 = require("../../../../domain/types/ClassCreationRecurrenceRule");
|
|
7
|
+
exports.EditClassFormSchema = zod_1.z.object({
|
|
8
|
+
courseId: zod_1.z.string().uuid().optional(),
|
|
9
|
+
title: zod_1.z.string().min(1).max(255).optional(),
|
|
10
|
+
description: zod_1.z.string().max(255).optional(),
|
|
11
|
+
status: ClassStatus_1.ClassStatusSchema.optional(),
|
|
12
|
+
startDateTime: zod_1.z.string().datetime().optional(),
|
|
13
|
+
endDateTime: zod_1.z.string().datetime().optional(),
|
|
14
|
+
recurrenceRule: ClassCreationRecurrenceRule_1.ClassCreationRecurrenceRuleSchema.optional(),
|
|
15
|
+
recurrenceEndDate: zod_1.z.string().datetime().optional(),
|
|
16
|
+
students: zod_1.z.array(zod_1.z.object({ id: zod_1.z.string().uuid() })).optional(),
|
|
17
|
+
groupId: zod_1.z.string().uuid().optional(),
|
|
18
|
+
id: zod_1.z.string().uuid().optional(),
|
|
19
|
+
meetingLink: zod_1.z.string().url().optional(),
|
|
20
|
+
});
|
package/package.json
CHANGED