@wix/auto_sdk_crm_tasks 1.0.71 → 1.0.72
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/build/cjs/index.js +6 -6
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +31 -31
- package/build/cjs/index.typings.js +6 -6
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +31 -31
- package/build/cjs/meta.js +6 -6
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs +6 -6
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +31 -31
- package/build/es/index.typings.mjs +6 -6
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +31 -31
- package/build/es/meta.mjs +6 -6
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.js +6 -6
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +31 -31
- package/build/internal/cjs/index.typings.js +6 -6
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +31 -31
- package/build/internal/cjs/meta.js +6 -6
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.mjs +6 -6
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +31 -31
- package/build/internal/es/index.typings.mjs +6 -6
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +31 -31
- package/build/internal/es/meta.mjs +6 -6
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +4 -11
- package/build/cjs/schemas.d.ts +0 -253
- package/build/cjs/schemas.js +0 -388
- package/build/cjs/schemas.js.map +0 -1
- package/build/es/schemas.d.mts +0 -253
- package/build/es/schemas.mjs +0 -338
- package/build/es/schemas.mjs.map +0 -1
- package/build/internal/cjs/schemas.d.ts +0 -253
- package/build/internal/cjs/schemas.js +0 -388
- package/build/internal/cjs/schemas.js.map +0 -1
- package/build/internal/es/schemas.d.mts +0 -253
- package/build/internal/es/schemas.mjs +0 -338
- package/build/internal/es/schemas.mjs.map +0 -1
- package/schemas/package.json +0 -3
package/build/es/schemas.d.mts
DELETED
|
@@ -1,253 +0,0 @@
|
|
|
1
|
-
import * as z from 'zod';
|
|
2
|
-
|
|
3
|
-
declare const CreateTaskRequest: z.ZodObject<{
|
|
4
|
-
task: z.ZodObject<{
|
|
5
|
-
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
6
|
-
revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
7
|
-
title: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8
|
-
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
9
|
-
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
10
|
-
_updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
11
|
-
dueDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
12
|
-
status: z.ZodOptional<z.ZodEnum<{
|
|
13
|
-
ACTION_NEEDED: "ACTION_NEEDED";
|
|
14
|
-
COMPLETED: "COMPLETED";
|
|
15
|
-
}>>;
|
|
16
|
-
source: z.ZodOptional<z.ZodObject<{
|
|
17
|
-
sourceType: z.ZodOptional<z.ZodEnum<{
|
|
18
|
-
APP: "APP";
|
|
19
|
-
USER: "USER";
|
|
20
|
-
}>>;
|
|
21
|
-
appId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
22
|
-
userId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
23
|
-
}, z.core.$strip>>;
|
|
24
|
-
contact: z.ZodOptional<z.ZodObject<{
|
|
25
|
-
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
26
|
-
firstName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
27
|
-
lastName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
28
|
-
imageUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
29
|
-
email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
30
|
-
phone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
31
|
-
imageUrlExpirationDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
32
|
-
}, z.core.$strip>>;
|
|
33
|
-
}, z.core.$strip>;
|
|
34
|
-
}, z.core.$strip>;
|
|
35
|
-
declare const CreateTaskResponse: z.ZodObject<{
|
|
36
|
-
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
37
|
-
revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
38
|
-
title: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
39
|
-
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
40
|
-
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
41
|
-
_updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
42
|
-
dueDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
43
|
-
status: z.ZodOptional<z.ZodEnum<{
|
|
44
|
-
ACTION_NEEDED: "ACTION_NEEDED";
|
|
45
|
-
COMPLETED: "COMPLETED";
|
|
46
|
-
}>>;
|
|
47
|
-
source: z.ZodOptional<z.ZodObject<{
|
|
48
|
-
sourceType: z.ZodOptional<z.ZodEnum<{
|
|
49
|
-
APP: "APP";
|
|
50
|
-
USER: "USER";
|
|
51
|
-
}>>;
|
|
52
|
-
appId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
53
|
-
userId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
54
|
-
}, z.core.$strip>>;
|
|
55
|
-
contact: z.ZodOptional<z.ZodObject<{
|
|
56
|
-
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
57
|
-
firstName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
58
|
-
lastName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
59
|
-
imageUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
60
|
-
email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
61
|
-
phone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
62
|
-
imageUrlExpirationDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
63
|
-
}, z.core.$strip>>;
|
|
64
|
-
}, z.core.$strip>;
|
|
65
|
-
declare const GetTaskRequest: z.ZodObject<{
|
|
66
|
-
taskId: z.ZodString;
|
|
67
|
-
}, z.core.$strip>;
|
|
68
|
-
declare const GetTaskResponse: z.ZodObject<{
|
|
69
|
-
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
70
|
-
revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
71
|
-
title: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
72
|
-
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
73
|
-
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
74
|
-
_updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
75
|
-
dueDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
76
|
-
status: z.ZodOptional<z.ZodEnum<{
|
|
77
|
-
ACTION_NEEDED: "ACTION_NEEDED";
|
|
78
|
-
COMPLETED: "COMPLETED";
|
|
79
|
-
}>>;
|
|
80
|
-
source: z.ZodOptional<z.ZodObject<{
|
|
81
|
-
sourceType: z.ZodOptional<z.ZodEnum<{
|
|
82
|
-
APP: "APP";
|
|
83
|
-
USER: "USER";
|
|
84
|
-
}>>;
|
|
85
|
-
appId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
86
|
-
userId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
87
|
-
}, z.core.$strip>>;
|
|
88
|
-
contact: z.ZodOptional<z.ZodObject<{
|
|
89
|
-
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
90
|
-
firstName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
91
|
-
lastName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
92
|
-
imageUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
93
|
-
email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
94
|
-
phone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
95
|
-
imageUrlExpirationDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
96
|
-
}, z.core.$strip>>;
|
|
97
|
-
}, z.core.$strip>;
|
|
98
|
-
declare const UpdateTaskRequest: z.ZodObject<{
|
|
99
|
-
_id: z.ZodString;
|
|
100
|
-
task: z.ZodObject<{
|
|
101
|
-
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
102
|
-
revision: z.ZodString;
|
|
103
|
-
title: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
104
|
-
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
105
|
-
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
106
|
-
_updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
107
|
-
dueDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
108
|
-
status: z.ZodOptional<z.ZodEnum<{
|
|
109
|
-
ACTION_NEEDED: "ACTION_NEEDED";
|
|
110
|
-
COMPLETED: "COMPLETED";
|
|
111
|
-
}>>;
|
|
112
|
-
source: z.ZodOptional<z.ZodObject<{
|
|
113
|
-
sourceType: z.ZodOptional<z.ZodEnum<{
|
|
114
|
-
APP: "APP";
|
|
115
|
-
USER: "USER";
|
|
116
|
-
}>>;
|
|
117
|
-
appId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
118
|
-
userId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
119
|
-
}, z.core.$strip>>;
|
|
120
|
-
contact: z.ZodOptional<z.ZodObject<{
|
|
121
|
-
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
122
|
-
firstName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
123
|
-
lastName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
124
|
-
imageUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
125
|
-
email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
126
|
-
phone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
127
|
-
imageUrlExpirationDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
128
|
-
}, z.core.$strip>>;
|
|
129
|
-
}, z.core.$strip>;
|
|
130
|
-
}, z.core.$strip>;
|
|
131
|
-
declare const UpdateTaskResponse: z.ZodObject<{
|
|
132
|
-
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
133
|
-
revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
134
|
-
title: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
135
|
-
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
136
|
-
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
137
|
-
_updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
138
|
-
dueDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
139
|
-
status: z.ZodOptional<z.ZodEnum<{
|
|
140
|
-
ACTION_NEEDED: "ACTION_NEEDED";
|
|
141
|
-
COMPLETED: "COMPLETED";
|
|
142
|
-
}>>;
|
|
143
|
-
source: z.ZodOptional<z.ZodObject<{
|
|
144
|
-
sourceType: z.ZodOptional<z.ZodEnum<{
|
|
145
|
-
APP: "APP";
|
|
146
|
-
USER: "USER";
|
|
147
|
-
}>>;
|
|
148
|
-
appId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
149
|
-
userId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
150
|
-
}, z.core.$strip>>;
|
|
151
|
-
contact: z.ZodOptional<z.ZodObject<{
|
|
152
|
-
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
153
|
-
firstName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
154
|
-
lastName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
155
|
-
imageUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
156
|
-
email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
157
|
-
phone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
158
|
-
imageUrlExpirationDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
159
|
-
}, z.core.$strip>>;
|
|
160
|
-
}, z.core.$strip>;
|
|
161
|
-
declare const DeleteTaskRequest: z.ZodObject<{
|
|
162
|
-
taskId: z.ZodString;
|
|
163
|
-
}, z.core.$strip>;
|
|
164
|
-
declare const DeleteTaskResponse: z.ZodObject<{}, z.core.$strip>;
|
|
165
|
-
declare const QueryTasksRequest: z.ZodObject<{
|
|
166
|
-
query: z.ZodObject<{
|
|
167
|
-
filter: z.ZodOptional<z.ZodObject<{
|
|
168
|
-
dueDate: z.ZodOptional<z.ZodObject<{
|
|
169
|
-
$eq: z.ZodOptional<z.ZodString>;
|
|
170
|
-
$gt: z.ZodOptional<z.ZodString>;
|
|
171
|
-
$gte: z.ZodOptional<z.ZodString>;
|
|
172
|
-
$lt: z.ZodOptional<z.ZodString>;
|
|
173
|
-
$lte: z.ZodOptional<z.ZodString>;
|
|
174
|
-
$ne: z.ZodOptional<z.ZodString>;
|
|
175
|
-
}, z.core.$strict>>;
|
|
176
|
-
status: z.ZodOptional<z.ZodObject<{
|
|
177
|
-
$eq: z.ZodOptional<z.ZodString>;
|
|
178
|
-
$in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
179
|
-
$ne: z.ZodOptional<z.ZodString>;
|
|
180
|
-
$nin: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
181
|
-
}, z.core.$strict>>;
|
|
182
|
-
$and: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
183
|
-
$or: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
184
|
-
$not: z.ZodOptional<z.ZodAny>;
|
|
185
|
-
}, z.core.$strict>>;
|
|
186
|
-
sort: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
187
|
-
fieldName: z.ZodOptional<z.ZodEnum<{
|
|
188
|
-
dueDate: "dueDate";
|
|
189
|
-
}>>;
|
|
190
|
-
order: z.ZodOptional<z.ZodEnum<{
|
|
191
|
-
ASC: "ASC";
|
|
192
|
-
DESC: "DESC";
|
|
193
|
-
}>>;
|
|
194
|
-
}, z.core.$strip>>>;
|
|
195
|
-
}, z.core.$catchall<z.ZodAny>>;
|
|
196
|
-
}, z.core.$strip>;
|
|
197
|
-
declare const QueryTasksResponse: z.ZodObject<{
|
|
198
|
-
tasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
199
|
-
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
200
|
-
revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
201
|
-
title: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
202
|
-
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
203
|
-
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
204
|
-
_updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
205
|
-
dueDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
206
|
-
status: z.ZodOptional<z.ZodEnum<{
|
|
207
|
-
ACTION_NEEDED: "ACTION_NEEDED";
|
|
208
|
-
COMPLETED: "COMPLETED";
|
|
209
|
-
}>>;
|
|
210
|
-
source: z.ZodOptional<z.ZodObject<{
|
|
211
|
-
sourceType: z.ZodOptional<z.ZodEnum<{
|
|
212
|
-
APP: "APP";
|
|
213
|
-
USER: "USER";
|
|
214
|
-
}>>;
|
|
215
|
-
appId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
216
|
-
userId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
217
|
-
}, z.core.$strip>>;
|
|
218
|
-
contact: z.ZodOptional<z.ZodObject<{
|
|
219
|
-
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
220
|
-
firstName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
221
|
-
lastName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
222
|
-
imageUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
223
|
-
email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
224
|
-
phone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
225
|
-
imageUrlExpirationDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
226
|
-
}, z.core.$strip>>;
|
|
227
|
-
}, z.core.$strip>>>;
|
|
228
|
-
pagingMetadata: z.ZodOptional<z.ZodObject<{
|
|
229
|
-
count: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
230
|
-
cursors: z.ZodOptional<z.ZodObject<{
|
|
231
|
-
next: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
232
|
-
prev: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
233
|
-
}, z.core.$strip>>;
|
|
234
|
-
hasNext: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
235
|
-
}, z.core.$strip>>;
|
|
236
|
-
}, z.core.$strip>;
|
|
237
|
-
declare const CountTasksRequest: z.ZodObject<{
|
|
238
|
-
options: z.ZodOptional<z.ZodObject<{
|
|
239
|
-
filter: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
240
|
-
}, z.core.$strip>>;
|
|
241
|
-
}, z.core.$strip>;
|
|
242
|
-
declare const CountTasksResponse: z.ZodObject<{
|
|
243
|
-
count: z.ZodOptional<z.ZodNumber>;
|
|
244
|
-
}, z.core.$strip>;
|
|
245
|
-
declare const MoveTaskAfterRequest: z.ZodObject<{
|
|
246
|
-
taskId: z.ZodString;
|
|
247
|
-
options: z.ZodOptional<z.ZodObject<{
|
|
248
|
-
beforeTaskId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
249
|
-
}, z.core.$strip>>;
|
|
250
|
-
}, z.core.$strip>;
|
|
251
|
-
declare const MoveTaskAfterResponse: z.ZodObject<{}, z.core.$strip>;
|
|
252
|
-
|
|
253
|
-
export { CountTasksRequest, CountTasksResponse, CreateTaskRequest, CreateTaskResponse, DeleteTaskRequest, DeleteTaskResponse, GetTaskRequest, GetTaskResponse, MoveTaskAfterRequest, MoveTaskAfterResponse, QueryTasksRequest, QueryTasksResponse, UpdateTaskRequest, UpdateTaskResponse };
|
package/build/es/schemas.mjs
DELETED
|
@@ -1,338 +0,0 @@
|
|
|
1
|
-
// src/crm-tasks-v2-task-tasks.schemas.ts
|
|
2
|
-
import * as z from "zod";
|
|
3
|
-
var CreateTaskRequest = z.object({
|
|
4
|
-
task: z.object({
|
|
5
|
-
_id: z.string().describe("Task ID.").regex(
|
|
6
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
7
|
-
"Must be a valid GUID"
|
|
8
|
-
).optional().nullable(),
|
|
9
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
10
|
-
"Revision number, which increments by 1 each time the task is updated. To prevent conflicting changes, the existing `revision` must be used when updating a task."
|
|
11
|
-
).optional().nullable(),
|
|
12
|
-
title: z.string().describe("Title of the task.").min(1).max(250).optional().nullable(),
|
|
13
|
-
description: z.string().describe("Description of the task.").min(1).max(500).optional().nullable(),
|
|
14
|
-
_createdDate: z.date().describe("Date and time the task was created.").optional().nullable(),
|
|
15
|
-
_updatedDate: z.date().describe("Date and time the task was last updated.").optional().nullable(),
|
|
16
|
-
dueDate: z.date().describe("Due date for the task.").optional().nullable(),
|
|
17
|
-
status: z.enum(["ACTION_NEEDED", "COMPLETED"]).optional(),
|
|
18
|
-
source: z.object({
|
|
19
|
-
sourceType: z.enum(["APP", "USER"]).optional(),
|
|
20
|
-
appId: z.string().describe("App ID, if the task was created by an app.").regex(
|
|
21
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
22
|
-
"Must be a valid GUID"
|
|
23
|
-
).optional().nullable(),
|
|
24
|
-
userId: z.string().describe("User ID, if the task was created by a Wix user.").regex(
|
|
25
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
26
|
-
"Must be a valid GUID"
|
|
27
|
-
).optional().nullable()
|
|
28
|
-
}).describe("Details about the task source.").optional(),
|
|
29
|
-
contact: z.object({
|
|
30
|
-
_id: z.string().describe("ID of the contact associated with the task.").regex(
|
|
31
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
32
|
-
"Must be a valid GUID"
|
|
33
|
-
).optional().nullable(),
|
|
34
|
-
firstName: z.string().describe("Contact's first name.").optional().nullable(),
|
|
35
|
-
lastName: z.string().describe("Contact's last name.").optional().nullable(),
|
|
36
|
-
imageUrl: z.string().describe("Contact's image URL.").optional().nullable(),
|
|
37
|
-
email: z.string().describe("Contact's primary email.").optional().nullable(),
|
|
38
|
-
phone: z.string().describe("Contact's primary phone.").optional().nullable(),
|
|
39
|
-
imageUrlExpirationDate: z.date().describe("Image URL expiration date.").optional().nullable()
|
|
40
|
-
}).describe("Information about the contact associated with the task.").optional()
|
|
41
|
-
}).describe("Task to create.")
|
|
42
|
-
});
|
|
43
|
-
var CreateTaskResponse = z.object({
|
|
44
|
-
_id: z.string().describe("Task ID.").regex(
|
|
45
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
46
|
-
"Must be a valid GUID"
|
|
47
|
-
).optional().nullable(),
|
|
48
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
49
|
-
"Revision number, which increments by 1 each time the task is updated. To prevent conflicting changes, the existing `revision` must be used when updating a task."
|
|
50
|
-
).optional().nullable(),
|
|
51
|
-
title: z.string().describe("Title of the task.").min(1).max(250).optional().nullable(),
|
|
52
|
-
description: z.string().describe("Description of the task.").min(1).max(500).optional().nullable(),
|
|
53
|
-
_createdDate: z.date().describe("Date and time the task was created.").optional().nullable(),
|
|
54
|
-
_updatedDate: z.date().describe("Date and time the task was last updated.").optional().nullable(),
|
|
55
|
-
dueDate: z.date().describe("Due date for the task.").optional().nullable(),
|
|
56
|
-
status: z.enum(["ACTION_NEEDED", "COMPLETED"]).describe("Status of the task.\n\nDefault: `ACTION_NEEDED`").optional(),
|
|
57
|
-
source: z.object({
|
|
58
|
-
sourceType: z.enum(["APP", "USER"]).describe("How the task was created.").optional(),
|
|
59
|
-
appId: z.string().describe("App ID, if the task was created by an app.").regex(
|
|
60
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
61
|
-
"Must be a valid GUID"
|
|
62
|
-
).optional().nullable(),
|
|
63
|
-
userId: z.string().describe("User ID, if the task was created by a Wix user.").regex(
|
|
64
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
65
|
-
"Must be a valid GUID"
|
|
66
|
-
).optional().nullable()
|
|
67
|
-
}).describe("Details about the task source.").optional(),
|
|
68
|
-
contact: z.object({
|
|
69
|
-
_id: z.string().describe("ID of the contact associated with the task.").regex(
|
|
70
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
71
|
-
"Must be a valid GUID"
|
|
72
|
-
).optional().nullable(),
|
|
73
|
-
firstName: z.string().describe("Contact's first name.").optional().nullable(),
|
|
74
|
-
lastName: z.string().describe("Contact's last name.").optional().nullable(),
|
|
75
|
-
imageUrl: z.string().describe("Contact's image URL.").optional().nullable(),
|
|
76
|
-
email: z.string().describe("Contact's primary email.").optional().nullable(),
|
|
77
|
-
phone: z.string().describe("Contact's primary phone.").optional().nullable(),
|
|
78
|
-
imageUrlExpirationDate: z.date().describe("Image URL expiration date.").optional().nullable()
|
|
79
|
-
}).describe("Information about the contact associated with the task.").optional()
|
|
80
|
-
});
|
|
81
|
-
var GetTaskRequest = z.object({
|
|
82
|
-
taskId: z.string().describe("ID of the task to retrieve.").regex(
|
|
83
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
84
|
-
"Must be a valid GUID"
|
|
85
|
-
)
|
|
86
|
-
});
|
|
87
|
-
var GetTaskResponse = z.object({
|
|
88
|
-
_id: z.string().describe("Task ID.").regex(
|
|
89
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
90
|
-
"Must be a valid GUID"
|
|
91
|
-
).optional().nullable(),
|
|
92
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
93
|
-
"Revision number, which increments by 1 each time the task is updated. To prevent conflicting changes, the existing `revision` must be used when updating a task."
|
|
94
|
-
).optional().nullable(),
|
|
95
|
-
title: z.string().describe("Title of the task.").min(1).max(250).optional().nullable(),
|
|
96
|
-
description: z.string().describe("Description of the task.").min(1).max(500).optional().nullable(),
|
|
97
|
-
_createdDate: z.date().describe("Date and time the task was created.").optional().nullable(),
|
|
98
|
-
_updatedDate: z.date().describe("Date and time the task was last updated.").optional().nullable(),
|
|
99
|
-
dueDate: z.date().describe("Due date for the task.").optional().nullable(),
|
|
100
|
-
status: z.enum(["ACTION_NEEDED", "COMPLETED"]).describe("Status of the task.\n\nDefault: `ACTION_NEEDED`").optional(),
|
|
101
|
-
source: z.object({
|
|
102
|
-
sourceType: z.enum(["APP", "USER"]).describe("How the task was created.").optional(),
|
|
103
|
-
appId: z.string().describe("App ID, if the task was created by an app.").regex(
|
|
104
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
105
|
-
"Must be a valid GUID"
|
|
106
|
-
).optional().nullable(),
|
|
107
|
-
userId: z.string().describe("User ID, if the task was created by a Wix user.").regex(
|
|
108
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
109
|
-
"Must be a valid GUID"
|
|
110
|
-
).optional().nullable()
|
|
111
|
-
}).describe("Details about the task source.").optional(),
|
|
112
|
-
contact: z.object({
|
|
113
|
-
_id: z.string().describe("ID of the contact associated with the task.").regex(
|
|
114
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
115
|
-
"Must be a valid GUID"
|
|
116
|
-
).optional().nullable(),
|
|
117
|
-
firstName: z.string().describe("Contact's first name.").optional().nullable(),
|
|
118
|
-
lastName: z.string().describe("Contact's last name.").optional().nullable(),
|
|
119
|
-
imageUrl: z.string().describe("Contact's image URL.").optional().nullable(),
|
|
120
|
-
email: z.string().describe("Contact's primary email.").optional().nullable(),
|
|
121
|
-
phone: z.string().describe("Contact's primary phone.").optional().nullable(),
|
|
122
|
-
imageUrlExpirationDate: z.date().describe("Image URL expiration date.").optional().nullable()
|
|
123
|
-
}).describe("Information about the contact associated with the task.").optional()
|
|
124
|
-
});
|
|
125
|
-
var UpdateTaskRequest = z.object({
|
|
126
|
-
_id: z.string().describe("Task ID.").regex(
|
|
127
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
128
|
-
"Must be a valid GUID"
|
|
129
|
-
),
|
|
130
|
-
task: z.object({
|
|
131
|
-
_id: z.string().describe("Task ID.").regex(
|
|
132
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
133
|
-
"Must be a valid GUID"
|
|
134
|
-
).optional().nullable(),
|
|
135
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
136
|
-
"Revision number, which increments by 1 each time the task is updated. To prevent conflicting changes, the existing `revision` must be used when updating a task."
|
|
137
|
-
),
|
|
138
|
-
title: z.string().describe("Title of the task.").min(1).max(250).optional().nullable(),
|
|
139
|
-
description: z.string().describe("Description of the task.").min(1).max(500).optional().nullable(),
|
|
140
|
-
_createdDate: z.date().describe("Date and time the task was created.").optional().nullable(),
|
|
141
|
-
_updatedDate: z.date().describe("Date and time the task was last updated.").optional().nullable(),
|
|
142
|
-
dueDate: z.date().describe("Due date for the task.").optional().nullable(),
|
|
143
|
-
status: z.enum(["ACTION_NEEDED", "COMPLETED"]).optional(),
|
|
144
|
-
source: z.object({
|
|
145
|
-
sourceType: z.enum(["APP", "USER"]).optional(),
|
|
146
|
-
appId: z.string().describe("App ID, if the task was created by an app.").regex(
|
|
147
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
148
|
-
"Must be a valid GUID"
|
|
149
|
-
).optional().nullable(),
|
|
150
|
-
userId: z.string().describe("User ID, if the task was created by a Wix user.").regex(
|
|
151
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
152
|
-
"Must be a valid GUID"
|
|
153
|
-
).optional().nullable()
|
|
154
|
-
}).describe("Details about the task source.").optional(),
|
|
155
|
-
contact: z.object({
|
|
156
|
-
_id: z.string().describe("ID of the contact associated with the task.").regex(
|
|
157
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
158
|
-
"Must be a valid GUID"
|
|
159
|
-
).optional().nullable(),
|
|
160
|
-
firstName: z.string().describe("Contact's first name.").optional().nullable(),
|
|
161
|
-
lastName: z.string().describe("Contact's last name.").optional().nullable(),
|
|
162
|
-
imageUrl: z.string().describe("Contact's image URL.").optional().nullable(),
|
|
163
|
-
email: z.string().describe("Contact's primary email.").optional().nullable(),
|
|
164
|
-
phone: z.string().describe("Contact's primary phone.").optional().nullable(),
|
|
165
|
-
imageUrlExpirationDate: z.date().describe("Image URL expiration date.").optional().nullable()
|
|
166
|
-
}).describe("Information about the contact associated with the task.").optional()
|
|
167
|
-
}).describe("Task to update.")
|
|
168
|
-
});
|
|
169
|
-
var UpdateTaskResponse = z.object({
|
|
170
|
-
_id: z.string().describe("Task ID.").regex(
|
|
171
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
172
|
-
"Must be a valid GUID"
|
|
173
|
-
).optional().nullable(),
|
|
174
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
175
|
-
"Revision number, which increments by 1 each time the task is updated. To prevent conflicting changes, the existing `revision` must be used when updating a task."
|
|
176
|
-
).optional().nullable(),
|
|
177
|
-
title: z.string().describe("Title of the task.").min(1).max(250).optional().nullable(),
|
|
178
|
-
description: z.string().describe("Description of the task.").min(1).max(500).optional().nullable(),
|
|
179
|
-
_createdDate: z.date().describe("Date and time the task was created.").optional().nullable(),
|
|
180
|
-
_updatedDate: z.date().describe("Date and time the task was last updated.").optional().nullable(),
|
|
181
|
-
dueDate: z.date().describe("Due date for the task.").optional().nullable(),
|
|
182
|
-
status: z.enum(["ACTION_NEEDED", "COMPLETED"]).describe("Status of the task.\n\nDefault: `ACTION_NEEDED`").optional(),
|
|
183
|
-
source: z.object({
|
|
184
|
-
sourceType: z.enum(["APP", "USER"]).describe("How the task was created.").optional(),
|
|
185
|
-
appId: z.string().describe("App ID, if the task was created by an app.").regex(
|
|
186
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
187
|
-
"Must be a valid GUID"
|
|
188
|
-
).optional().nullable(),
|
|
189
|
-
userId: z.string().describe("User ID, if the task was created by a Wix user.").regex(
|
|
190
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
191
|
-
"Must be a valid GUID"
|
|
192
|
-
).optional().nullable()
|
|
193
|
-
}).describe("Details about the task source.").optional(),
|
|
194
|
-
contact: z.object({
|
|
195
|
-
_id: z.string().describe("ID of the contact associated with the task.").regex(
|
|
196
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
197
|
-
"Must be a valid GUID"
|
|
198
|
-
).optional().nullable(),
|
|
199
|
-
firstName: z.string().describe("Contact's first name.").optional().nullable(),
|
|
200
|
-
lastName: z.string().describe("Contact's last name.").optional().nullable(),
|
|
201
|
-
imageUrl: z.string().describe("Contact's image URL.").optional().nullable(),
|
|
202
|
-
email: z.string().describe("Contact's primary email.").optional().nullable(),
|
|
203
|
-
phone: z.string().describe("Contact's primary phone.").optional().nullable(),
|
|
204
|
-
imageUrlExpirationDate: z.date().describe("Image URL expiration date.").optional().nullable()
|
|
205
|
-
}).describe("Information about the contact associated with the task.").optional()
|
|
206
|
-
});
|
|
207
|
-
var DeleteTaskRequest = z.object({
|
|
208
|
-
taskId: z.string().describe("ID of the task to delete.").regex(
|
|
209
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
210
|
-
"Must be a valid GUID"
|
|
211
|
-
)
|
|
212
|
-
});
|
|
213
|
-
var DeleteTaskResponse = z.object({});
|
|
214
|
-
var QueryTasksRequest = z.object({
|
|
215
|
-
query: z.object({
|
|
216
|
-
filter: z.object({
|
|
217
|
-
dueDate: z.object({
|
|
218
|
-
$eq: z.string(),
|
|
219
|
-
$gt: z.string(),
|
|
220
|
-
$gte: z.string(),
|
|
221
|
-
$lt: z.string(),
|
|
222
|
-
$lte: z.string(),
|
|
223
|
-
$ne: z.string()
|
|
224
|
-
}).partial().strict().optional(),
|
|
225
|
-
status: z.object({
|
|
226
|
-
$eq: z.string(),
|
|
227
|
-
$in: z.array(z.string()),
|
|
228
|
-
$ne: z.string(),
|
|
229
|
-
$nin: z.array(z.string())
|
|
230
|
-
}).partial().strict().optional(),
|
|
231
|
-
$and: z.array(z.any()).optional(),
|
|
232
|
-
$or: z.array(z.any()).optional(),
|
|
233
|
-
$not: z.any().optional()
|
|
234
|
-
}).strict().optional(),
|
|
235
|
-
sort: z.array(
|
|
236
|
-
z.object({
|
|
237
|
-
fieldName: z.enum(["dueDate"]).optional(),
|
|
238
|
-
order: z.enum(["ASC", "DESC"]).optional()
|
|
239
|
-
})
|
|
240
|
-
).optional()
|
|
241
|
-
}).catchall(z.any()).describe("Query options.")
|
|
242
|
-
});
|
|
243
|
-
var QueryTasksResponse = z.object({
|
|
244
|
-
tasks: z.array(
|
|
245
|
-
z.object({
|
|
246
|
-
_id: z.string().describe("Task ID.").regex(
|
|
247
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
248
|
-
"Must be a valid GUID"
|
|
249
|
-
).optional().nullable(),
|
|
250
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
251
|
-
"Revision number, which increments by 1 each time the task is updated. To prevent conflicting changes, the existing `revision` must be used when updating a task."
|
|
252
|
-
).optional().nullable(),
|
|
253
|
-
title: z.string().describe("Title of the task.").min(1).max(250).optional().nullable(),
|
|
254
|
-
description: z.string().describe("Description of the task.").min(1).max(500).optional().nullable(),
|
|
255
|
-
_createdDate: z.date().describe("Date and time the task was created.").optional().nullable(),
|
|
256
|
-
_updatedDate: z.date().describe("Date and time the task was last updated.").optional().nullable(),
|
|
257
|
-
dueDate: z.date().describe("Due date for the task.").optional().nullable(),
|
|
258
|
-
status: z.enum(["ACTION_NEEDED", "COMPLETED"]).describe("Status of the task.\n\nDefault: `ACTION_NEEDED`").optional(),
|
|
259
|
-
source: z.object({
|
|
260
|
-
sourceType: z.enum(["APP", "USER"]).describe("How the task was created.").optional(),
|
|
261
|
-
appId: z.string().describe("App ID, if the task was created by an app.").regex(
|
|
262
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
263
|
-
"Must be a valid GUID"
|
|
264
|
-
).optional().nullable(),
|
|
265
|
-
userId: z.string().describe("User ID, if the task was created by a Wix user.").regex(
|
|
266
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
267
|
-
"Must be a valid GUID"
|
|
268
|
-
).optional().nullable()
|
|
269
|
-
}).describe("Details about the task source.").optional(),
|
|
270
|
-
contact: z.object({
|
|
271
|
-
_id: z.string().describe("ID of the contact associated with the task.").regex(
|
|
272
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
273
|
-
"Must be a valid GUID"
|
|
274
|
-
).optional().nullable(),
|
|
275
|
-
firstName: z.string().describe("Contact's first name.").optional().nullable(),
|
|
276
|
-
lastName: z.string().describe("Contact's last name.").optional().nullable(),
|
|
277
|
-
imageUrl: z.string().describe("Contact's image URL.").optional().nullable(),
|
|
278
|
-
email: z.string().describe("Contact's primary email.").optional().nullable(),
|
|
279
|
-
phone: z.string().describe("Contact's primary phone.").optional().nullable(),
|
|
280
|
-
imageUrlExpirationDate: z.date().describe("Image URL expiration date.").optional().nullable()
|
|
281
|
-
}).describe("Information about the contact associated with the task.").optional()
|
|
282
|
-
})
|
|
283
|
-
).optional(),
|
|
284
|
-
pagingMetadata: z.object({
|
|
285
|
-
count: z.number().int().describe("Number of items returned in the response.").optional().nullable(),
|
|
286
|
-
cursors: z.object({
|
|
287
|
-
next: z.string().describe("Cursor pointing to next page in the list of results.").optional().nullable(),
|
|
288
|
-
prev: z.string().describe(
|
|
289
|
-
"Cursor pointing to previous page in the list of results."
|
|
290
|
-
).optional().nullable()
|
|
291
|
-
}).describe("Offset that was requested.").optional(),
|
|
292
|
-
hasNext: z.boolean().describe(
|
|
293
|
-
"Indicates if there are more results after the current page.\nIf `true`, another page of results can be retrieved.\nIf `false`, this is the last page."
|
|
294
|
-
).optional().nullable()
|
|
295
|
-
}).describe("Paging metadata.").optional()
|
|
296
|
-
});
|
|
297
|
-
var CountTasksRequest = z.object({
|
|
298
|
-
options: z.object({
|
|
299
|
-
filter: z.record(z.string(), z.any()).describe(
|
|
300
|
-
'Filter which tasks to count. See [supported filters](https://dev.wix.com/docs/rest/api-reference/crm/tasks/task-v2/filter-and-sort).\n\nFilter tasks in the following format:\n\n`"filter" : {\n"fieldName1": "value1",\n"fieldName2":{"$operator":"value2"}\n}`\n\nExample of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`.'
|
|
301
|
-
).optional().nullable()
|
|
302
|
-
}).describe("Filtering options.").optional()
|
|
303
|
-
});
|
|
304
|
-
var CountTasksResponse = z.object({
|
|
305
|
-
count: z.number().int().describe("The number of tasks that match the specified filter.").optional()
|
|
306
|
-
});
|
|
307
|
-
var MoveTaskAfterRequest = z.object({
|
|
308
|
-
taskId: z.string().describe("ID of the task to move.").regex(
|
|
309
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
310
|
-
"Must be a valid GUID"
|
|
311
|
-
),
|
|
312
|
-
options: z.object({
|
|
313
|
-
beforeTaskId: z.string().describe(
|
|
314
|
-
"The ID of the task after which the moved task is positioned in the task display.\nIf `beforeTaskId` is not specified, the moved task is positioned first in the task display."
|
|
315
|
-
).regex(
|
|
316
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
317
|
-
"Must be a valid GUID"
|
|
318
|
-
).optional().nullable()
|
|
319
|
-
}).describe("Options for moving the task.").optional()
|
|
320
|
-
});
|
|
321
|
-
var MoveTaskAfterResponse = z.object({});
|
|
322
|
-
export {
|
|
323
|
-
CountTasksRequest,
|
|
324
|
-
CountTasksResponse,
|
|
325
|
-
CreateTaskRequest,
|
|
326
|
-
CreateTaskResponse,
|
|
327
|
-
DeleteTaskRequest,
|
|
328
|
-
DeleteTaskResponse,
|
|
329
|
-
GetTaskRequest,
|
|
330
|
-
GetTaskResponse,
|
|
331
|
-
MoveTaskAfterRequest,
|
|
332
|
-
MoveTaskAfterResponse,
|
|
333
|
-
QueryTasksRequest,
|
|
334
|
-
QueryTasksResponse,
|
|
335
|
-
UpdateTaskRequest,
|
|
336
|
-
UpdateTaskResponse
|
|
337
|
-
};
|
|
338
|
-
//# sourceMappingURL=schemas.mjs.map
|