@axium/tasks 0.1.1 → 0.1.2

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/common.d.ts CHANGED
@@ -3,11 +3,11 @@ import type { WithRequired } from 'utilium';
3
3
  import * as z from 'zod';
4
4
  export declare const TaskInit: z.ZodObject<{
5
5
  summary: z.ZodOptional<z.ZodString>;
6
- description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
6
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
7
  listId: z.ZodUUID;
8
- parentId: z.ZodNullable<z.ZodOptional<z.ZodUUID>>;
8
+ parentId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
9
9
  completed: z.ZodOptional<z.ZodBoolean>;
10
- due: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
10
+ due: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
11
11
  }, z.core.$strip>;
12
12
  export type TaskInit = z.infer<typeof TaskInit>;
13
13
  export interface Task extends TaskInit {
@@ -16,7 +16,7 @@ export interface Task extends TaskInit {
16
16
  }
17
17
  export declare const TaskListInit: z.ZodObject<{
18
18
  name: z.ZodString;
19
- description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
19
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
20
  }, z.core.$strip>;
21
21
  export type TaskListInit = z.infer<typeof TaskListInit>;
22
22
  export interface TaskList extends TaskListInit {
package/dist/common.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import * as z from 'zod';
2
2
  export const TaskInit = z.object({
3
3
  summary: z.string().max(100).optional(),
4
- description: z.string().max(500).optional().nullable(),
4
+ description: z.string().max(500).nullish(),
5
5
  listId: z.uuid(),
6
- parentId: z.uuid().optional().nullable(),
6
+ parentId: z.uuid().nullish(),
7
7
  completed: z.boolean().optional(),
8
- due: z.date().optional().nullable(),
8
+ due: z.date().nullish(),
9
9
  });
10
10
  export const TaskListInit = z.object({
11
11
  name: z.string().min(1).max(50),
12
- description: z.string().max(500).optional().nullable(),
12
+ description: z.string().max(500).nullish(),
13
13
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axium/tasks",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "author": "James Prevett <axium@jamespre.dev> (https://jamespre.dev)",
5
5
  "description": "",
6
6
  "funding": {
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import { fetchAPI } from '@axium/client/requests';
3
- import { Dialog, FormDialog, Icon } from '@axium/server/components';
3
+ import { FormDialog, Icon } from '@axium/server/components';
4
4
  import { parseList } from '@axium/tasks/client';
5
5
  import { TaskListInit } from '@axium/tasks/common';
6
6
  import { TaskList } from '@axium/tasks/components';