@vharapuendava/psst-tasks-sdk 1.1.0 → 1.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/types.gen.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export declare const zBaseTask: z.ZodObject<{
|
|
|
16
16
|
recurring: "recurring";
|
|
17
17
|
}>;
|
|
18
18
|
dueDate: z.ZodOptional<z.ZodISODateTime>;
|
|
19
|
-
}, z.core.$
|
|
19
|
+
}, z.core.$strip>;
|
|
20
20
|
export declare const zNewTask: z.ZodObject<{
|
|
21
21
|
title: z.ZodString;
|
|
22
22
|
taskType: z.ZodEnum<{
|
|
@@ -24,7 +24,7 @@ export declare const zNewTask: z.ZodObject<{
|
|
|
24
24
|
recurring: "recurring";
|
|
25
25
|
}>;
|
|
26
26
|
dueDate: z.ZodOptional<z.ZodISODateTime>;
|
|
27
|
-
}, z.core.$
|
|
27
|
+
}, z.core.$strip>;
|
|
28
28
|
export declare const zUpdateTask: z.ZodObject<{
|
|
29
29
|
title: z.ZodOptional<z.ZodString>;
|
|
30
30
|
taskType: z.ZodOptional<z.ZodEnum<{
|
|
@@ -36,7 +36,7 @@ export declare const zUpdateTask: z.ZodObject<{
|
|
|
36
36
|
pending: "pending";
|
|
37
37
|
completed: "completed";
|
|
38
38
|
}>>;
|
|
39
|
-
}, z.core.$
|
|
39
|
+
}, z.core.$strip>;
|
|
40
40
|
export declare const zTask: z.ZodIntersection<z.ZodObject<{
|
|
41
41
|
title: z.ZodString;
|
|
42
42
|
taskType: z.ZodEnum<{
|
|
@@ -44,18 +44,18 @@ export declare const zTask: z.ZodIntersection<z.ZodObject<{
|
|
|
44
44
|
recurring: "recurring";
|
|
45
45
|
}>;
|
|
46
46
|
dueDate: z.ZodOptional<z.ZodISODateTime>;
|
|
47
|
-
}, z.core.$
|
|
47
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
48
48
|
taskId: z.ZodString;
|
|
49
|
-
status: z.
|
|
49
|
+
status: z.ZodEnum<{
|
|
50
50
|
pending: "pending";
|
|
51
51
|
completed: "completed";
|
|
52
|
-
}
|
|
53
|
-
}, z.core.$
|
|
52
|
+
}>;
|
|
53
|
+
}, z.core.$strip>>;
|
|
54
54
|
export declare const zListTasksData: z.ZodObject<{
|
|
55
55
|
body: z.ZodOptional<z.ZodNever>;
|
|
56
56
|
path: z.ZodOptional<z.ZodNever>;
|
|
57
57
|
query: z.ZodOptional<z.ZodNever>;
|
|
58
|
-
}, z.core.$
|
|
58
|
+
}, z.core.$strip>;
|
|
59
59
|
/**
|
|
60
60
|
* Successful response
|
|
61
61
|
*/
|
|
@@ -66,13 +66,13 @@ export declare const zListTasksResponse: z.ZodArray<z.ZodIntersection<z.ZodObjec
|
|
|
66
66
|
recurring: "recurring";
|
|
67
67
|
}>;
|
|
68
68
|
dueDate: z.ZodOptional<z.ZodISODateTime>;
|
|
69
|
-
}, z.core.$
|
|
69
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
70
70
|
taskId: z.ZodString;
|
|
71
|
-
status: z.
|
|
71
|
+
status: z.ZodEnum<{
|
|
72
72
|
pending: "pending";
|
|
73
73
|
completed: "completed";
|
|
74
|
-
}
|
|
75
|
-
}, z.core.$
|
|
74
|
+
}>;
|
|
75
|
+
}, z.core.$strip>>>;
|
|
76
76
|
export declare const zCreateTaskData: z.ZodObject<{
|
|
77
77
|
body: z.ZodObject<{
|
|
78
78
|
title: z.ZodString;
|
|
@@ -81,10 +81,10 @@ export declare const zCreateTaskData: z.ZodObject<{
|
|
|
81
81
|
recurring: "recurring";
|
|
82
82
|
}>;
|
|
83
83
|
dueDate: z.ZodOptional<z.ZodISODateTime>;
|
|
84
|
-
}, z.core.$
|
|
84
|
+
}, z.core.$strip>;
|
|
85
85
|
path: z.ZodOptional<z.ZodNever>;
|
|
86
86
|
query: z.ZodOptional<z.ZodNever>;
|
|
87
|
-
}, z.core.$
|
|
87
|
+
}, z.core.$strip>;
|
|
88
88
|
/**
|
|
89
89
|
* Task created
|
|
90
90
|
*/
|
|
@@ -95,20 +95,20 @@ export declare const zCreateTaskResponse: z.ZodIntersection<z.ZodObject<{
|
|
|
95
95
|
recurring: "recurring";
|
|
96
96
|
}>;
|
|
97
97
|
dueDate: z.ZodOptional<z.ZodISODateTime>;
|
|
98
|
-
}, z.core.$
|
|
98
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
99
99
|
taskId: z.ZodString;
|
|
100
|
-
status: z.
|
|
100
|
+
status: z.ZodEnum<{
|
|
101
101
|
pending: "pending";
|
|
102
102
|
completed: "completed";
|
|
103
|
-
}
|
|
104
|
-
}, z.core.$
|
|
103
|
+
}>;
|
|
104
|
+
}, z.core.$strip>>;
|
|
105
105
|
export declare const zDeleteTaskByIdData: z.ZodObject<{
|
|
106
106
|
body: z.ZodOptional<z.ZodNever>;
|
|
107
107
|
path: z.ZodObject<{
|
|
108
108
|
taskId: z.ZodString;
|
|
109
|
-
}, z.core.$
|
|
109
|
+
}, z.core.$strip>;
|
|
110
110
|
query: z.ZodOptional<z.ZodNever>;
|
|
111
|
-
}, z.core.$
|
|
111
|
+
}, z.core.$strip>;
|
|
112
112
|
/**
|
|
113
113
|
* Task deleted successfully
|
|
114
114
|
*/
|
|
@@ -117,9 +117,9 @@ export declare const zGetTaskByIdData: z.ZodObject<{
|
|
|
117
117
|
body: z.ZodOptional<z.ZodNever>;
|
|
118
118
|
path: z.ZodObject<{
|
|
119
119
|
taskId: z.ZodString;
|
|
120
|
-
}, z.core.$
|
|
120
|
+
}, z.core.$strip>;
|
|
121
121
|
query: z.ZodOptional<z.ZodNever>;
|
|
122
|
-
}, z.core.$
|
|
122
|
+
}, z.core.$strip>;
|
|
123
123
|
/**
|
|
124
124
|
* Successful response
|
|
125
125
|
*/
|
|
@@ -130,13 +130,13 @@ export declare const zGetTaskByIdResponse: z.ZodIntersection<z.ZodObject<{
|
|
|
130
130
|
recurring: "recurring";
|
|
131
131
|
}>;
|
|
132
132
|
dueDate: z.ZodOptional<z.ZodISODateTime>;
|
|
133
|
-
}, z.core.$
|
|
133
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
134
134
|
taskId: z.ZodString;
|
|
135
|
-
status: z.
|
|
135
|
+
status: z.ZodEnum<{
|
|
136
136
|
pending: "pending";
|
|
137
137
|
completed: "completed";
|
|
138
|
-
}
|
|
139
|
-
}, z.core.$
|
|
138
|
+
}>;
|
|
139
|
+
}, z.core.$strip>>;
|
|
140
140
|
export declare const zUpdateTaskByIdData: z.ZodObject<{
|
|
141
141
|
body: z.ZodObject<{
|
|
142
142
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -149,12 +149,12 @@ export declare const zUpdateTaskByIdData: z.ZodObject<{
|
|
|
149
149
|
pending: "pending";
|
|
150
150
|
completed: "completed";
|
|
151
151
|
}>>;
|
|
152
|
-
}, z.core.$
|
|
152
|
+
}, z.core.$strip>;
|
|
153
153
|
path: z.ZodObject<{
|
|
154
154
|
taskId: z.ZodString;
|
|
155
|
-
}, z.core.$
|
|
155
|
+
}, z.core.$strip>;
|
|
156
156
|
query: z.ZodOptional<z.ZodNever>;
|
|
157
|
-
}, z.core.$
|
|
157
|
+
}, z.core.$strip>;
|
|
158
158
|
/**
|
|
159
159
|
* Task updated
|
|
160
160
|
*/
|
|
@@ -165,10 +165,10 @@ export declare const zUpdateTaskByIdResponse: z.ZodIntersection<z.ZodObject<{
|
|
|
165
165
|
recurring: "recurring";
|
|
166
166
|
}>;
|
|
167
167
|
dueDate: z.ZodOptional<z.ZodISODateTime>;
|
|
168
|
-
}, z.core.$
|
|
168
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
169
169
|
taskId: z.ZodString;
|
|
170
|
-
status: z.
|
|
170
|
+
status: z.ZodEnum<{
|
|
171
171
|
pending: "pending";
|
|
172
172
|
completed: "completed";
|
|
173
|
-
}
|
|
174
|
-
}, z.core.$
|
|
173
|
+
}>;
|
|
174
|
+
}, z.core.$strip>>;
|
|
@@ -8,23 +8,23 @@ export const zBaseTask = z.object({
|
|
|
8
8
|
title: zTaskTitle,
|
|
9
9
|
taskType: zTaskType,
|
|
10
10
|
dueDate: z.optional(zBasicDateTime)
|
|
11
|
-
})
|
|
11
|
+
});
|
|
12
12
|
export const zNewTask = zBaseTask;
|
|
13
13
|
export const zUpdateTask = z.object({
|
|
14
14
|
title: z.optional(zTaskTitle),
|
|
15
15
|
taskType: z.optional(zTaskType),
|
|
16
16
|
dueDate: z.optional(zBasicDateTime),
|
|
17
17
|
status: z.optional(zTaskStatus)
|
|
18
|
-
})
|
|
18
|
+
});
|
|
19
19
|
export const zTask = zBaseTask.and(z.object({
|
|
20
20
|
taskId: z.string(),
|
|
21
|
-
status:
|
|
22
|
-
})
|
|
21
|
+
status: zTaskStatus
|
|
22
|
+
}));
|
|
23
23
|
export const zListTasksData = z.object({
|
|
24
24
|
body: z.optional(z.never()),
|
|
25
25
|
path: z.optional(z.never()),
|
|
26
26
|
query: z.optional(z.never())
|
|
27
|
-
})
|
|
27
|
+
});
|
|
28
28
|
/**
|
|
29
29
|
* Successful response
|
|
30
30
|
*/
|
|
@@ -33,7 +33,7 @@ export const zCreateTaskData = z.object({
|
|
|
33
33
|
body: zNewTask,
|
|
34
34
|
path: z.optional(z.never()),
|
|
35
35
|
query: z.optional(z.never())
|
|
36
|
-
})
|
|
36
|
+
});
|
|
37
37
|
/**
|
|
38
38
|
* Task created
|
|
39
39
|
*/
|
|
@@ -42,9 +42,9 @@ export const zDeleteTaskByIdData = z.object({
|
|
|
42
42
|
body: z.optional(z.never()),
|
|
43
43
|
path: z.object({
|
|
44
44
|
taskId: z.string()
|
|
45
|
-
})
|
|
45
|
+
}),
|
|
46
46
|
query: z.optional(z.never())
|
|
47
|
-
})
|
|
47
|
+
});
|
|
48
48
|
/**
|
|
49
49
|
* Task deleted successfully
|
|
50
50
|
*/
|
|
@@ -53,9 +53,9 @@ export const zGetTaskByIdData = z.object({
|
|
|
53
53
|
body: z.optional(z.never()),
|
|
54
54
|
path: z.object({
|
|
55
55
|
taskId: z.string()
|
|
56
|
-
})
|
|
56
|
+
}),
|
|
57
57
|
query: z.optional(z.never())
|
|
58
|
-
})
|
|
58
|
+
});
|
|
59
59
|
/**
|
|
60
60
|
* Successful response
|
|
61
61
|
*/
|
|
@@ -64,9 +64,9 @@ export const zUpdateTaskByIdData = z.object({
|
|
|
64
64
|
body: zUpdateTask,
|
|
65
65
|
path: z.object({
|
|
66
66
|
taskId: z.string()
|
|
67
|
-
})
|
|
67
|
+
}),
|
|
68
68
|
query: z.optional(z.never())
|
|
69
|
-
})
|
|
69
|
+
});
|
|
70
70
|
/**
|
|
71
71
|
* Task updated
|
|
72
72
|
*/
|