@eliasrrosa/tutorhub-public-assets 0.9.17 → 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,8 @@ var index_exports = {};
42
42
  __export(index_exports, {
43
43
  ClassCreationRecurrenceRuleSchema: () => ClassCreationRecurrenceRuleSchema,
44
44
  ClassStatusSchema: () => ClassStatusSchema,
45
+ CreateUserDateTimeSlotFormSchema: () => CreateUserDateTimeSlotFormSchema,
46
+ EditClassFormSchema: () => EditClassFormSchema,
45
47
  FreeDateTimeSlot: () => FreeDateTimeSlot,
46
48
  ISO8601Date: () => ISO8601Date,
47
49
  ISO8601DateTime: () => ISO8601DateTime,
@@ -664,10 +666,39 @@ function filterAsync(arr, predicate) {
664
666
  return arr.filter((_v, index) => results[index]);
665
667
  });
666
668
  }
669
+
670
+ // src/infrastructure/restful/requests/forms/EditClassForm.ts
671
+ var import_zod4 = require("zod");
672
+ var EditClassFormSchema = import_zod4.z.object({
673
+ courseId: import_zod4.z.string().uuid().optional(),
674
+ title: import_zod4.z.string().min(1).max(255).optional(),
675
+ description: import_zod4.z.string().max(255).optional(),
676
+ status: ClassStatusSchema.optional(),
677
+ startDateTime: import_zod4.z.string().datetime().optional(),
678
+ endDateTime: import_zod4.z.string().datetime().optional(),
679
+ recurrenceRule: ClassCreationRecurrenceRuleSchema.optional(),
680
+ recurrenceEndDate: import_zod4.z.string().datetime().optional(),
681
+ students: import_zod4.z.array(import_zod4.z.object({ id: import_zod4.z.string().uuid() })).optional(),
682
+ groupId: import_zod4.z.string().uuid().optional(),
683
+ id: import_zod4.z.string().uuid().optional(),
684
+ meetingLink: import_zod4.z.string().url().optional()
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
+ });
667
696
  // Annotate the CommonJS export names for ESM import in node:
668
697
  0 && (module.exports = {
669
698
  ClassCreationRecurrenceRuleSchema,
670
699
  ClassStatusSchema,
700
+ CreateUserDateTimeSlotFormSchema,
701
+ EditClassFormSchema,
671
702
  FreeDateTimeSlot,
672
703
  ISO8601Date,
673
704
  ISO8601DateTime,
package/dist/index.d.ts CHANGED
@@ -24,4 +24,6 @@ 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
- 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, };
27
+ import { EditClassForm, EditClassFormSchema } from "./infrastructure/restful/requests/forms/EditClassForm.js";
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
@@ -628,9 +628,38 @@ 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
+ });
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
+ });
631
658
  export {
632
659
  ClassCreationRecurrenceRuleSchema,
633
660
  ClassStatusSchema,
661
+ CreateUserDateTimeSlotFormSchema,
662
+ EditClassFormSchema,
634
663
  FreeDateTimeSlot,
635
664
  ISO8601Date,
636
665
  ISO8601DateTime,
@@ -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
+ });
@@ -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
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.9.17",
2
+ "version": "0.9.19",
3
3
  "name": "@eliasrrosa/tutorhub-public-assets",
4
4
  "description": "Assets, mainly interfaces, to be shared among different Tutorhub apps.",
5
5
  "type": "module",