@eliasrrosa/tutorhub-public-assets 0.9.18 → 0.9.19
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
|
+
CreateUserDateTimeSlotFormSchema: () => CreateUserDateTimeSlotFormSchema,
|
|
45
46
|
EditClassFormSchema: () => EditClassFormSchema,
|
|
46
47
|
FreeDateTimeSlot: () => FreeDateTimeSlot,
|
|
47
48
|
ISO8601Date: () => ISO8601Date,
|
|
@@ -682,10 +683,21 @@ var EditClassFormSchema = import_zod4.z.object({
|
|
|
682
683
|
id: import_zod4.z.string().uuid().optional(),
|
|
683
684
|
meetingLink: import_zod4.z.string().url().optional()
|
|
684
685
|
});
|
|
686
|
+
|
|
687
|
+
// src/infrastructure/restful/requests/forms/CreateUserDateTimeSlotForm.ts
|
|
688
|
+
var import_zod5 = require("zod");
|
|
689
|
+
var CreateUserDateTimeSlotFormSchema = import_zod5.z.object({
|
|
690
|
+
startDateTime: import_zod5.z.string().datetime(),
|
|
691
|
+
endDateTime: import_zod5.z.string().datetime(),
|
|
692
|
+
recurrenceEndDate: import_zod5.z.string().datetime().optional(),
|
|
693
|
+
recurrenceRule: ClassCreationRecurrenceRuleSchema.optional(),
|
|
694
|
+
isAvailableTime: import_zod5.z.boolean().optional()
|
|
695
|
+
});
|
|
685
696
|
// Annotate the CommonJS export names for ESM import in node:
|
|
686
697
|
0 && (module.exports = {
|
|
687
698
|
ClassCreationRecurrenceRuleSchema,
|
|
688
699
|
ClassStatusSchema,
|
|
700
|
+
CreateUserDateTimeSlotFormSchema,
|
|
689
701
|
EditClassFormSchema,
|
|
690
702
|
FreeDateTimeSlot,
|
|
691
703
|
ISO8601Date,
|
package/dist/index.d.ts
CHANGED
|
@@ -25,4 +25,5 @@ import { PutStudentToTeacherConnectionConfirmationRequestUrlQueryParams } from "
|
|
|
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
|
-
|
|
28
|
+
import { CreateUserDateTimeSlotForm, CreateUserDateTimeSlotFormSchema } from "./infrastructure/restful/requests/forms/CreateUserDateTimeSlotForm.js";
|
|
29
|
+
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, CreateUserDateTimeSlotForm, CreateUserDateTimeSlotFormSchema, };
|
package/dist/index.js
CHANGED
|
@@ -645,9 +645,20 @@ var EditClassFormSchema = z4.object({
|
|
|
645
645
|
id: z4.string().uuid().optional(),
|
|
646
646
|
meetingLink: z4.string().url().optional()
|
|
647
647
|
});
|
|
648
|
+
|
|
649
|
+
// src/infrastructure/restful/requests/forms/CreateUserDateTimeSlotForm.ts
|
|
650
|
+
import { z as z5 } from "zod";
|
|
651
|
+
var CreateUserDateTimeSlotFormSchema = z5.object({
|
|
652
|
+
startDateTime: z5.string().datetime(),
|
|
653
|
+
endDateTime: z5.string().datetime(),
|
|
654
|
+
recurrenceEndDate: z5.string().datetime().optional(),
|
|
655
|
+
recurrenceRule: ClassCreationRecurrenceRuleSchema.optional(),
|
|
656
|
+
isAvailableTime: z5.boolean().optional()
|
|
657
|
+
});
|
|
648
658
|
export {
|
|
649
659
|
ClassCreationRecurrenceRuleSchema,
|
|
650
660
|
ClassStatusSchema,
|
|
661
|
+
CreateUserDateTimeSlotFormSchema,
|
|
651
662
|
EditClassFormSchema,
|
|
652
663
|
FreeDateTimeSlot,
|
|
653
664
|
ISO8601Date,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const CreateUserDateTimeSlotFormSchema: z.ZodObject<{
|
|
3
|
+
startDateTime: z.ZodString;
|
|
4
|
+
endDateTime: z.ZodString;
|
|
5
|
+
recurrenceEndDate: z.ZodOptional<z.ZodString>;
|
|
6
|
+
recurrenceRule: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"daily">, z.ZodLiteral<"weekly">]>, z.ZodLiteral<"week days">]>>;
|
|
7
|
+
isAvailableTime: z.ZodOptional<z.ZodBoolean>;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
startDateTime: string;
|
|
10
|
+
endDateTime: string;
|
|
11
|
+
recurrenceEndDate?: string | undefined;
|
|
12
|
+
recurrenceRule?: "daily" | "weekly" | "week days" | undefined;
|
|
13
|
+
isAvailableTime?: boolean | undefined;
|
|
14
|
+
}, {
|
|
15
|
+
startDateTime: string;
|
|
16
|
+
endDateTime: string;
|
|
17
|
+
recurrenceEndDate?: string | undefined;
|
|
18
|
+
recurrenceRule?: "daily" | "weekly" | "week days" | undefined;
|
|
19
|
+
isAvailableTime?: boolean | undefined;
|
|
20
|
+
}>;
|
|
21
|
+
export type CreateUserDateTimeSlotForm = z.infer<typeof CreateUserDateTimeSlotFormSchema>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateUserDateTimeSlotFormSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const ClassCreationRecurrenceRule_1 = require("../../../../domain/types/ClassCreationRecurrenceRule");
|
|
6
|
+
exports.CreateUserDateTimeSlotFormSchema = zod_1.z.object({
|
|
7
|
+
startDateTime: zod_1.z.string().datetime(),
|
|
8
|
+
endDateTime: zod_1.z.string().datetime(),
|
|
9
|
+
recurrenceEndDate: zod_1.z.string().datetime().optional(),
|
|
10
|
+
recurrenceRule: ClassCreationRecurrenceRule_1.ClassCreationRecurrenceRuleSchema.optional(),
|
|
11
|
+
isAvailableTime: zod_1.z.boolean().optional(),
|
|
12
|
+
});
|
package/package.json
CHANGED