@eliasrrosa/tutorhub-public-assets 0.1.0 → 0.3.0

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.
@@ -4,6 +4,8 @@ import { ITime } from "./Time";
4
4
  export interface IClass {
5
5
  id: string;
6
6
  title: string;
7
+ startDateTime: Date;
8
+ endDateTime: Date;
7
9
  date: IDate;
8
10
  startTime: ITime;
9
11
  endTime: ITime;
@@ -0,0 +1,2 @@
1
+ export interface IUser {
2
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/dist/index.cjs CHANGED
@@ -546,9 +546,8 @@ var ClassStatusSchema = import_zod.z.literal("pending").or(import_zod.z.literal(
546
546
  // src/infrastructure/restful/requests/forms/ClassCreationForm.ts
547
547
  var ClassCreationFormSchema = import_zod2.z.object({
548
548
  title: import_zod2.z.string().min(1).max(255),
549
- date: import_zod2.z.string().date(),
550
- startTime: import_zod2.z.string(),
551
- endTime: import_zod2.z.string(),
549
+ startDateTime: import_zod2.z.string().datetime(),
550
+ endDateTime: import_zod2.z.string().datetime(),
552
551
  courseId: import_zod2.z.string().uuid(),
553
552
  description: import_zod2.z.string().max(255).optional(),
554
553
  status: ClassStatusSchema.optional(),
package/dist/index.js CHANGED
@@ -508,9 +508,8 @@ var ClassStatusSchema = z.literal("pending").or(z.literal("done")).or(z.literal(
508
508
  // src/infrastructure/restful/requests/forms/ClassCreationForm.ts
509
509
  var ClassCreationFormSchema = z2.object({
510
510
  title: z2.string().min(1).max(255),
511
- date: z2.string().date(),
512
- startTime: z2.string(),
513
- endTime: z2.string(),
511
+ startDateTime: z2.string().datetime(),
512
+ endDateTime: z2.string().datetime(),
514
513
  courseId: z2.string().uuid(),
515
514
  description: z2.string().max(255).optional(),
516
515
  status: ClassStatusSchema.optional(),
@@ -1,27 +1,24 @@
1
1
  import { z } from "zod";
2
2
  export declare const ClassCreationFormSchema: z.ZodObject<{
3
3
  title: z.ZodString;
4
- date: z.ZodString;
5
- startTime: z.ZodString;
6
- endTime: z.ZodString;
4
+ startDateTime: z.ZodString;
5
+ endDateTime: z.ZodString;
7
6
  courseId: z.ZodString;
8
7
  description: z.ZodOptional<z.ZodString>;
9
8
  status: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"pending">, z.ZodLiteral<"done">]>, z.ZodLiteral<"canceled">]>, z.ZodLiteral<"to reschedule">]>>;
10
9
  meetingLink: z.ZodOptional<z.ZodString>;
11
10
  }, "strip", z.ZodTypeAny, {
12
- date: string;
13
11
  title: string;
14
- startTime: string;
15
- endTime: string;
12
+ startDateTime: string;
13
+ endDateTime: string;
16
14
  courseId: string;
17
15
  status?: "pending" | "done" | "canceled" | "to reschedule" | undefined;
18
16
  description?: string | undefined;
19
17
  meetingLink?: string | undefined;
20
18
  }, {
21
- date: string;
22
19
  title: string;
23
- startTime: string;
24
- endTime: string;
20
+ startDateTime: string;
21
+ endDateTime: string;
25
22
  courseId: string;
26
23
  status?: "pending" | "done" | "canceled" | "to reschedule" | undefined;
27
24
  description?: string | undefined;
@@ -5,9 +5,8 @@ const zod_1 = require("zod");
5
5
  const ClassStatus_1 = require("../../../../domain/types/ClassStatus");
6
6
  exports.ClassCreationFormSchema = zod_1.z.object({
7
7
  title: zod_1.z.string().min(1).max(255),
8
- date: zod_1.z.string().date(),
9
- startTime: zod_1.z.string(),
10
- endTime: zod_1.z.string(),
8
+ startDateTime: zod_1.z.string().datetime(),
9
+ endDateTime: zod_1.z.string().datetime(),
11
10
  courseId: zod_1.z.string().uuid(),
12
11
  description: zod_1.z.string().max(255).optional(),
13
12
  status: ClassStatus_1.ClassStatusSchema.optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eliasrrosa/tutorhub-public-assets",
3
- "version": "0.1.0",
3
+ "version": "0.3.0",
4
4
  "description": "Assets, mainly interfaces, to be shared among different Tutorhub apps.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",