@timothyw/pat-common 1.0.79 → 1.0.81
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/types/api/items/complete-item-types.d.ts +2 -7
- package/dist/types/api/items/create-item-types.d.ts +2 -10
- package/dist/types/api/items/update-item-types.d.ts +2 -10
- package/dist/types/api/misc/version-types.d.ts +4 -3
- package/dist/types/models/item-data.d.ts +4 -4
- package/dist/types/models/program-config.d.ts +4 -0
- package/dist/types/models/task-data.d.ts +1 -1
- package/package.json +1 -1
- package/src/types/api/items/complete-item-types.ts +2 -7
- package/src/types/api/items/create-item-types.ts +2 -10
- package/src/types/api/items/update-item-types.ts +2 -10
- package/src/types/api/misc/version-types.ts +4 -3
- package/src/types/models/item-data.ts +4 -4
- package/src/types/models/program-config.ts +4 -0
- package/src/types/models/task-data.ts +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { ItemData } from "../../models";
|
|
2
3
|
export declare const completeItemRequestSchema: z.ZodObject<{
|
|
3
4
|
completed: z.ZodBoolean;
|
|
4
5
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -8,11 +9,5 @@ export declare const completeItemRequestSchema: z.ZodObject<{
|
|
|
8
9
|
}>;
|
|
9
10
|
export type CompleteItemRequest = z.infer<typeof completeItemRequestSchema>;
|
|
10
11
|
export interface CompleteItemResponse {
|
|
11
|
-
item:
|
|
12
|
-
id: string;
|
|
13
|
-
name: string;
|
|
14
|
-
completed: boolean;
|
|
15
|
-
dueDate?: string;
|
|
16
|
-
notes?: string;
|
|
17
|
-
};
|
|
12
|
+
item: ItemData;
|
|
18
13
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { ItemData } from "../../models";
|
|
2
3
|
export declare const createItemRequestSchema: z.ZodObject<{
|
|
3
4
|
name: z.ZodString;
|
|
4
5
|
dueDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -23,14 +24,5 @@ export declare const createItemRequestSchema: z.ZodObject<{
|
|
|
23
24
|
}>;
|
|
24
25
|
export type CreateItemRequest = z.infer<typeof createItemRequestSchema>;
|
|
25
26
|
export interface CreateItemResponse {
|
|
26
|
-
item:
|
|
27
|
-
id: string;
|
|
28
|
-
name: string;
|
|
29
|
-
dueDate?: string;
|
|
30
|
-
notes?: string;
|
|
31
|
-
completed: boolean;
|
|
32
|
-
urgent: boolean;
|
|
33
|
-
category?: string;
|
|
34
|
-
type?: string;
|
|
35
|
-
};
|
|
27
|
+
item: ItemData;
|
|
36
28
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { ItemData } from "../../models";
|
|
2
3
|
export declare const updateItemRequestSchema: z.ZodObject<{
|
|
3
4
|
name: z.ZodOptional<z.ZodString>;
|
|
4
5
|
dueDate: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>>;
|
|
@@ -23,14 +24,5 @@ export declare const updateItemRequestSchema: z.ZodObject<{
|
|
|
23
24
|
}>;
|
|
24
25
|
export type UpdateItemRequest = z.infer<typeof updateItemRequestSchema>;
|
|
25
26
|
export interface UpdateItemResponse {
|
|
26
|
-
item:
|
|
27
|
-
id: string;
|
|
28
|
-
name: string;
|
|
29
|
-
dueDate?: string;
|
|
30
|
-
notes?: string;
|
|
31
|
-
completed: boolean;
|
|
32
|
-
urgent: boolean;
|
|
33
|
-
category?: string;
|
|
34
|
-
type?: string;
|
|
35
|
-
};
|
|
27
|
+
item: ItemData;
|
|
36
28
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export interface VersionQuery {
|
|
2
|
-
|
|
2
|
+
iOSBuildVersion?: number;
|
|
3
|
+
androidBuildVersion?: number;
|
|
3
4
|
}
|
|
4
5
|
export interface VersionResponse {
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
minIOSBuildVersion: number;
|
|
7
|
+
minAndroidBuildVersion: number;
|
|
7
8
|
updateRequired: boolean;
|
|
8
9
|
}
|
|
@@ -5,10 +5,10 @@ export interface ItemData {
|
|
|
5
5
|
createdAt: Date;
|
|
6
6
|
updatedAt: Date;
|
|
7
7
|
name: string;
|
|
8
|
-
dueDate?: Date
|
|
9
|
-
notes?: string
|
|
8
|
+
dueDate?: Date;
|
|
9
|
+
notes?: string;
|
|
10
10
|
completed: boolean;
|
|
11
11
|
urgent: boolean;
|
|
12
|
-
category?: string
|
|
13
|
-
type?: string
|
|
12
|
+
category?: string;
|
|
13
|
+
type?: string;
|
|
14
14
|
}
|
package/package.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { ItemData } from "../../models";
|
|
2
3
|
|
|
3
4
|
export const completeItemRequestSchema = z.object({
|
|
4
5
|
completed: z.boolean()
|
|
@@ -7,11 +8,5 @@ export const completeItemRequestSchema = z.object({
|
|
|
7
8
|
export type CompleteItemRequest = z.infer<typeof completeItemRequestSchema>;
|
|
8
9
|
|
|
9
10
|
export interface CompleteItemResponse {
|
|
10
|
-
item:
|
|
11
|
-
id: string;
|
|
12
|
-
name: string;
|
|
13
|
-
completed: boolean;
|
|
14
|
-
dueDate?: string;
|
|
15
|
-
notes?: string;
|
|
16
|
-
};
|
|
11
|
+
item: ItemData;
|
|
17
12
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { ItemData } from "../../models";
|
|
2
3
|
|
|
3
4
|
export const createItemRequestSchema = z.object({
|
|
4
5
|
name: z.string().min(1),
|
|
@@ -12,14 +13,5 @@ export const createItemRequestSchema = z.object({
|
|
|
12
13
|
export type CreateItemRequest = z.infer<typeof createItemRequestSchema>;
|
|
13
14
|
|
|
14
15
|
export interface CreateItemResponse {
|
|
15
|
-
item:
|
|
16
|
-
id: string;
|
|
17
|
-
name: string;
|
|
18
|
-
dueDate?: string;
|
|
19
|
-
notes?: string;
|
|
20
|
-
completed: boolean;
|
|
21
|
-
urgent: boolean;
|
|
22
|
-
category?: string;
|
|
23
|
-
type?: string;
|
|
24
|
-
};
|
|
16
|
+
item: ItemData;
|
|
25
17
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { ItemData } from "../../models";
|
|
2
3
|
|
|
3
4
|
export const updateItemRequestSchema = z.object({
|
|
4
5
|
name: z.string().min(1).optional(),
|
|
@@ -12,14 +13,5 @@ export const updateItemRequestSchema = z.object({
|
|
|
12
13
|
export type UpdateItemRequest = z.infer<typeof updateItemRequestSchema>;
|
|
13
14
|
|
|
14
15
|
export interface UpdateItemResponse {
|
|
15
|
-
item:
|
|
16
|
-
id: string;
|
|
17
|
-
name: string;
|
|
18
|
-
dueDate?: string;
|
|
19
|
-
notes?: string;
|
|
20
|
-
completed: boolean;
|
|
21
|
-
urgent: boolean;
|
|
22
|
-
category?: string;
|
|
23
|
-
type?: string;
|
|
24
|
-
};
|
|
16
|
+
item: ItemData;
|
|
25
17
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
export interface VersionQuery {
|
|
2
|
-
|
|
2
|
+
iOSBuildVersion?: number;
|
|
3
|
+
androidBuildVersion?: number;
|
|
3
4
|
}
|
|
4
5
|
|
|
5
6
|
export interface VersionResponse {
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
minIOSBuildVersion: number;
|
|
8
|
+
minAndroidBuildVersion: number;
|
|
8
9
|
updateRequired: boolean;
|
|
9
10
|
}
|
|
@@ -7,10 +7,10 @@ export interface ItemData {
|
|
|
7
7
|
updatedAt: Date;
|
|
8
8
|
|
|
9
9
|
name: string;
|
|
10
|
-
dueDate?: Date
|
|
11
|
-
notes?: string
|
|
10
|
+
dueDate?: Date;
|
|
11
|
+
notes?: string;
|
|
12
12
|
completed: boolean;
|
|
13
13
|
urgent: boolean;
|
|
14
|
-
category?: string
|
|
15
|
-
type?: string
|
|
14
|
+
category?: string;
|
|
15
|
+
type?: string;
|
|
16
16
|
}
|