@wix/auto_sdk_crm_tasks 1.0.76 → 1.0.77

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.
@@ -263,330 +263,6 @@ function moveTaskAfter(payload) {
263
263
 
264
264
  // src/crm-tasks-v2-task-tasks.universal.ts
265
265
  import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
266
-
267
- // src/crm-tasks-v2-task-tasks.schemas.ts
268
- import * as z from "zod";
269
- var CreateTaskRequest = z.object({
270
- task: z.object({
271
- _id: z.string().describe("Task ID.").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
- revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
276
- "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."
277
- ).optional().nullable(),
278
- title: z.string().describe("Title of the task.").min(1).max(250).optional().nullable(),
279
- description: z.string().describe("Description of the task.").min(1).max(500).optional().nullable(),
280
- _createdDate: z.date().describe("Date and time the task was created.").optional().nullable(),
281
- _updatedDate: z.date().describe("Date and time the task was last updated.").optional().nullable(),
282
- dueDate: z.date().describe("Due date for the task.").optional().nullable(),
283
- status: z.enum(["ACTION_NEEDED", "COMPLETED"]).optional(),
284
- source: z.object({
285
- sourceType: z.enum(["APP", "USER"]).optional(),
286
- appId: z.string().describe("App ID, if the task was created by an app.").regex(
287
- /^[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}$/,
288
- "Must be a valid GUID"
289
- ).optional().nullable(),
290
- userId: z.string().describe("User ID, if the task was created by a Wix user.").regex(
291
- /^[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}$/,
292
- "Must be a valid GUID"
293
- ).optional().nullable()
294
- }).describe("Details about the task source.").optional(),
295
- contact: z.object({
296
- _id: z.string().describe("ID of the contact associated with the task.").regex(
297
- /^[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}$/,
298
- "Must be a valid GUID"
299
- ).optional().nullable(),
300
- firstName: z.string().describe("Contact's first name.").optional().nullable(),
301
- lastName: z.string().describe("Contact's last name.").optional().nullable(),
302
- imageUrl: z.string().describe("Contact's image URL.").optional().nullable(),
303
- email: z.string().describe("Contact's primary email.").optional().nullable(),
304
- phone: z.string().describe("Contact's primary phone.").optional().nullable(),
305
- imageUrlExpirationDate: z.date().describe("Image URL expiration date.").optional().nullable()
306
- }).describe("Information about the contact associated with the task.").optional()
307
- }).describe("Task to create.")
308
- });
309
- var CreateTaskResponse = z.object({
310
- _id: z.string().describe("Task ID.").regex(
311
- /^[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}$/,
312
- "Must be a valid GUID"
313
- ).optional().nullable(),
314
- revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
315
- "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."
316
- ).optional().nullable(),
317
- title: z.string().describe("Title of the task.").min(1).max(250).optional().nullable(),
318
- description: z.string().describe("Description of the task.").min(1).max(500).optional().nullable(),
319
- _createdDate: z.date().describe("Date and time the task was created.").optional().nullable(),
320
- _updatedDate: z.date().describe("Date and time the task was last updated.").optional().nullable(),
321
- dueDate: z.date().describe("Due date for the task.").optional().nullable(),
322
- status: z.enum(["ACTION_NEEDED", "COMPLETED"]).describe("Status of the task.\n\nDefault: `ACTION_NEEDED`").optional(),
323
- source: z.object({
324
- sourceType: z.enum(["APP", "USER"]).describe("How the task was created.").optional(),
325
- appId: z.string().describe("App ID, if the task was created by an app.").regex(
326
- /^[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}$/,
327
- "Must be a valid GUID"
328
- ).optional().nullable(),
329
- userId: z.string().describe("User ID, if the task was created by a Wix user.").regex(
330
- /^[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}$/,
331
- "Must be a valid GUID"
332
- ).optional().nullable()
333
- }).describe("Details about the task source.").optional(),
334
- contact: z.object({
335
- _id: z.string().describe("ID of the contact associated with the task.").regex(
336
- /^[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}$/,
337
- "Must be a valid GUID"
338
- ).optional().nullable(),
339
- firstName: z.string().describe("Contact's first name.").optional().nullable(),
340
- lastName: z.string().describe("Contact's last name.").optional().nullable(),
341
- imageUrl: z.string().describe("Contact's image URL.").optional().nullable(),
342
- email: z.string().describe("Contact's primary email.").optional().nullable(),
343
- phone: z.string().describe("Contact's primary phone.").optional().nullable(),
344
- imageUrlExpirationDate: z.date().describe("Image URL expiration date.").optional().nullable()
345
- }).describe("Information about the contact associated with the task.").optional()
346
- });
347
- var GetTaskRequest = z.object({
348
- taskId: z.string().describe("ID of the task to retrieve.").regex(
349
- /^[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}$/,
350
- "Must be a valid GUID"
351
- )
352
- });
353
- var GetTaskResponse = z.object({
354
- _id: z.string().describe("Task ID.").regex(
355
- /^[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}$/,
356
- "Must be a valid GUID"
357
- ).optional().nullable(),
358
- revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
359
- "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."
360
- ).optional().nullable(),
361
- title: z.string().describe("Title of the task.").min(1).max(250).optional().nullable(),
362
- description: z.string().describe("Description of the task.").min(1).max(500).optional().nullable(),
363
- _createdDate: z.date().describe("Date and time the task was created.").optional().nullable(),
364
- _updatedDate: z.date().describe("Date and time the task was last updated.").optional().nullable(),
365
- dueDate: z.date().describe("Due date for the task.").optional().nullable(),
366
- status: z.enum(["ACTION_NEEDED", "COMPLETED"]).describe("Status of the task.\n\nDefault: `ACTION_NEEDED`").optional(),
367
- source: z.object({
368
- sourceType: z.enum(["APP", "USER"]).describe("How the task was created.").optional(),
369
- appId: z.string().describe("App ID, if the task was created by an app.").regex(
370
- /^[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}$/,
371
- "Must be a valid GUID"
372
- ).optional().nullable(),
373
- userId: z.string().describe("User ID, if the task was created by a Wix user.").regex(
374
- /^[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}$/,
375
- "Must be a valid GUID"
376
- ).optional().nullable()
377
- }).describe("Details about the task source.").optional(),
378
- contact: z.object({
379
- _id: z.string().describe("ID of the contact associated with the task.").regex(
380
- /^[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}$/,
381
- "Must be a valid GUID"
382
- ).optional().nullable(),
383
- firstName: z.string().describe("Contact's first name.").optional().nullable(),
384
- lastName: z.string().describe("Contact's last name.").optional().nullable(),
385
- imageUrl: z.string().describe("Contact's image URL.").optional().nullable(),
386
- email: z.string().describe("Contact's primary email.").optional().nullable(),
387
- phone: z.string().describe("Contact's primary phone.").optional().nullable(),
388
- imageUrlExpirationDate: z.date().describe("Image URL expiration date.").optional().nullable()
389
- }).describe("Information about the contact associated with the task.").optional()
390
- });
391
- var UpdateTaskRequest = z.object({
392
- _id: z.string().describe("Task ID.").regex(
393
- /^[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}$/,
394
- "Must be a valid GUID"
395
- ),
396
- task: z.object({
397
- _id: z.string().describe("Task ID.").regex(
398
- /^[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}$/,
399
- "Must be a valid GUID"
400
- ).optional().nullable(),
401
- revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
402
- "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."
403
- ),
404
- title: z.string().describe("Title of the task.").min(1).max(250).optional().nullable(),
405
- description: z.string().describe("Description of the task.").min(1).max(500).optional().nullable(),
406
- _createdDate: z.date().describe("Date and time the task was created.").optional().nullable(),
407
- _updatedDate: z.date().describe("Date and time the task was last updated.").optional().nullable(),
408
- dueDate: z.date().describe("Due date for the task.").optional().nullable(),
409
- status: z.enum(["ACTION_NEEDED", "COMPLETED"]).optional(),
410
- source: z.object({
411
- sourceType: z.enum(["APP", "USER"]).optional(),
412
- appId: z.string().describe("App ID, if the task was created by an app.").regex(
413
- /^[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}$/,
414
- "Must be a valid GUID"
415
- ).optional().nullable(),
416
- userId: z.string().describe("User ID, if the task was created by a Wix user.").regex(
417
- /^[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}$/,
418
- "Must be a valid GUID"
419
- ).optional().nullable()
420
- }).describe("Details about the task source.").optional(),
421
- contact: z.object({
422
- _id: z.string().describe("ID of the contact associated with the task.").regex(
423
- /^[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}$/,
424
- "Must be a valid GUID"
425
- ).optional().nullable(),
426
- firstName: z.string().describe("Contact's first name.").optional().nullable(),
427
- lastName: z.string().describe("Contact's last name.").optional().nullable(),
428
- imageUrl: z.string().describe("Contact's image URL.").optional().nullable(),
429
- email: z.string().describe("Contact's primary email.").optional().nullable(),
430
- phone: z.string().describe("Contact's primary phone.").optional().nullable(),
431
- imageUrlExpirationDate: z.date().describe("Image URL expiration date.").optional().nullable()
432
- }).describe("Information about the contact associated with the task.").optional()
433
- }).describe("Task to update.")
434
- });
435
- var UpdateTaskResponse = z.object({
436
- _id: z.string().describe("Task ID.").regex(
437
- /^[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}$/,
438
- "Must be a valid GUID"
439
- ).optional().nullable(),
440
- revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
441
- "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."
442
- ).optional().nullable(),
443
- title: z.string().describe("Title of the task.").min(1).max(250).optional().nullable(),
444
- description: z.string().describe("Description of the task.").min(1).max(500).optional().nullable(),
445
- _createdDate: z.date().describe("Date and time the task was created.").optional().nullable(),
446
- _updatedDate: z.date().describe("Date and time the task was last updated.").optional().nullable(),
447
- dueDate: z.date().describe("Due date for the task.").optional().nullable(),
448
- status: z.enum(["ACTION_NEEDED", "COMPLETED"]).describe("Status of the task.\n\nDefault: `ACTION_NEEDED`").optional(),
449
- source: z.object({
450
- sourceType: z.enum(["APP", "USER"]).describe("How the task was created.").optional(),
451
- appId: z.string().describe("App ID, if the task was created by an app.").regex(
452
- /^[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}$/,
453
- "Must be a valid GUID"
454
- ).optional().nullable(),
455
- userId: z.string().describe("User ID, if the task was created by a Wix user.").regex(
456
- /^[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}$/,
457
- "Must be a valid GUID"
458
- ).optional().nullable()
459
- }).describe("Details about the task source.").optional(),
460
- contact: z.object({
461
- _id: z.string().describe("ID of the contact associated with the task.").regex(
462
- /^[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}$/,
463
- "Must be a valid GUID"
464
- ).optional().nullable(),
465
- firstName: z.string().describe("Contact's first name.").optional().nullable(),
466
- lastName: z.string().describe("Contact's last name.").optional().nullable(),
467
- imageUrl: z.string().describe("Contact's image URL.").optional().nullable(),
468
- email: z.string().describe("Contact's primary email.").optional().nullable(),
469
- phone: z.string().describe("Contact's primary phone.").optional().nullable(),
470
- imageUrlExpirationDate: z.date().describe("Image URL expiration date.").optional().nullable()
471
- }).describe("Information about the contact associated with the task.").optional()
472
- });
473
- var DeleteTaskRequest = z.object({
474
- taskId: z.string().describe("ID of the task to delete.").regex(
475
- /^[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}$/,
476
- "Must be a valid GUID"
477
- )
478
- });
479
- var DeleteTaskResponse = z.object({});
480
- var QueryTasksRequest = z.object({
481
- query: z.object({
482
- filter: z.object({
483
- dueDate: z.object({
484
- $eq: z.string(),
485
- $gt: z.string(),
486
- $gte: z.string(),
487
- $lt: z.string(),
488
- $lte: z.string(),
489
- $ne: z.string()
490
- }).partial().strict().optional(),
491
- status: z.object({
492
- $eq: z.string(),
493
- $in: z.array(z.string()),
494
- $ne: z.string(),
495
- $nin: z.array(z.string())
496
- }).partial().strict().optional(),
497
- $and: z.array(z.any()).optional(),
498
- $or: z.array(z.any()).optional(),
499
- $not: z.any().optional()
500
- }).strict().optional(),
501
- sort: z.array(
502
- z.object({
503
- fieldName: z.enum(["dueDate"]).optional(),
504
- order: z.enum(["ASC", "DESC"]).optional()
505
- })
506
- ).optional()
507
- }).catchall(z.any()).describe("Query options.")
508
- });
509
- var QueryTasksResponse = z.object({
510
- tasks: z.array(
511
- z.object({
512
- _id: z.string().describe("Task ID.").regex(
513
- /^[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}$/,
514
- "Must be a valid GUID"
515
- ).optional().nullable(),
516
- revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
517
- "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."
518
- ).optional().nullable(),
519
- title: z.string().describe("Title of the task.").min(1).max(250).optional().nullable(),
520
- description: z.string().describe("Description of the task.").min(1).max(500).optional().nullable(),
521
- _createdDate: z.date().describe("Date and time the task was created.").optional().nullable(),
522
- _updatedDate: z.date().describe("Date and time the task was last updated.").optional().nullable(),
523
- dueDate: z.date().describe("Due date for the task.").optional().nullable(),
524
- status: z.enum(["ACTION_NEEDED", "COMPLETED"]).describe("Status of the task.\n\nDefault: `ACTION_NEEDED`").optional(),
525
- source: z.object({
526
- sourceType: z.enum(["APP", "USER"]).describe("How the task was created.").optional(),
527
- appId: z.string().describe("App ID, if the task was created by an app.").regex(
528
- /^[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}$/,
529
- "Must be a valid GUID"
530
- ).optional().nullable(),
531
- userId: z.string().describe("User ID, if the task was created by a Wix user.").regex(
532
- /^[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}$/,
533
- "Must be a valid GUID"
534
- ).optional().nullable()
535
- }).describe("Details about the task source.").optional(),
536
- contact: z.object({
537
- _id: z.string().describe("ID of the contact associated with the task.").regex(
538
- /^[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}$/,
539
- "Must be a valid GUID"
540
- ).optional().nullable(),
541
- firstName: z.string().describe("Contact's first name.").optional().nullable(),
542
- lastName: z.string().describe("Contact's last name.").optional().nullable(),
543
- imageUrl: z.string().describe("Contact's image URL.").optional().nullable(),
544
- email: z.string().describe("Contact's primary email.").optional().nullable(),
545
- phone: z.string().describe("Contact's primary phone.").optional().nullable(),
546
- imageUrlExpirationDate: z.date().describe("Image URL expiration date.").optional().nullable()
547
- }).describe("Information about the contact associated with the task.").optional()
548
- })
549
- ).optional(),
550
- pagingMetadata: z.object({
551
- count: z.number().int().describe("Number of items returned in the response.").optional().nullable(),
552
- cursors: z.object({
553
- next: z.string().describe("Cursor pointing to next page in the list of results.").optional().nullable(),
554
- prev: z.string().describe(
555
- "Cursor pointing to previous page in the list of results."
556
- ).optional().nullable()
557
- }).describe("Offset that was requested.").optional(),
558
- hasNext: z.boolean().describe(
559
- "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."
560
- ).optional().nullable()
561
- }).describe("Paging metadata.").optional()
562
- });
563
- var CountTasksRequest = z.object({
564
- options: z.object({
565
- filter: z.record(z.string(), z.any()).describe(
566
- '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`.'
567
- ).optional().nullable()
568
- }).describe("Filtering options.").optional()
569
- });
570
- var CountTasksResponse = z.object({
571
- count: z.number().int().describe("The number of tasks that match the specified filter.").optional()
572
- });
573
- var MoveTaskAfterRequest = z.object({
574
- taskId: z.string().describe("ID of the task to move.").regex(
575
- /^[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}$/,
576
- "Must be a valid GUID"
577
- ),
578
- options: z.object({
579
- beforeTaskId: z.string().describe(
580
- "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."
581
- ).regex(
582
- /^[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}$/,
583
- "Must be a valid GUID"
584
- ).optional().nullable()
585
- }).describe("Options for moving the task.").optional()
586
- });
587
- var MoveTaskAfterResponse = z.object({});
588
-
589
- // src/crm-tasks-v2-task-tasks.universal.ts
590
266
  import { createQueryUtils } from "@wix/sdk-runtime/query-builder-utils";
591
267
  var TaskStatus = /* @__PURE__ */ ((TaskStatus2) => {
592
268
  TaskStatus2["ACTION_NEEDED"] = "ACTION_NEEDED";
@@ -618,10 +294,7 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
618
294
  return WebhookIdentityType2;
619
295
  })(WebhookIdentityType || {});
620
296
  async function createTask2(task) {
621
- const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
622
- if (validateRequestSchema) {
623
- CreateTaskRequest.parse({ task });
624
- }
297
+ const { httpClient, sideEffects } = arguments[1];
625
298
  const payload = renameKeysFromSDKRequestToRESTRequest({ task });
626
299
  const reqOpts = createTask(payload);
627
300
  sideEffects?.onSiteCall?.();
@@ -644,10 +317,7 @@ async function createTask2(task) {
644
317
  }
645
318
  }
646
319
  async function getTask2(taskId) {
647
- const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
648
- if (validateRequestSchema) {
649
- GetTaskRequest.parse({ taskId });
650
- }
320
+ const { httpClient, sideEffects } = arguments[1];
651
321
  const payload = renameKeysFromSDKRequestToRESTRequest({ taskId });
652
322
  const reqOpts = getTask(payload);
653
323
  sideEffects?.onSiteCall?.();
@@ -670,10 +340,7 @@ async function getTask2(taskId) {
670
340
  }
671
341
  }
672
342
  async function updateTask2(_id, task) {
673
- const { httpClient, sideEffects, validateRequestSchema } = arguments[2];
674
- if (validateRequestSchema) {
675
- UpdateTaskRequest.parse({ _id, task });
676
- }
343
+ const { httpClient, sideEffects } = arguments[2];
677
344
  const payload = renameKeysFromSDKRequestToRESTRequest({
678
345
  task: { ...task, id: _id }
679
346
  });
@@ -698,10 +365,7 @@ async function updateTask2(_id, task) {
698
365
  }
699
366
  }
700
367
  async function deleteTask2(taskId) {
701
- const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
702
- if (validateRequestSchema) {
703
- DeleteTaskRequest.parse({ taskId });
704
- }
368
+ const { httpClient, sideEffects } = arguments[1];
705
369
  const payload = renameKeysFromSDKRequestToRESTRequest({ taskId });
706
370
  const reqOpts = deleteTask(payload);
707
371
  sideEffects?.onSiteCall?.();
@@ -766,10 +430,7 @@ function queryTasks2() {
766
430
  });
767
431
  }
768
432
  async function typedQueryTasks(query) {
769
- const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
770
- if (validateRequestSchema) {
771
- QueryTasksRequest.parse({ query });
772
- }
433
+ const { httpClient, sideEffects } = arguments[1];
773
434
  const payload = renameKeysFromSDKRequestToRESTRequest({ query });
774
435
  const reqOpts = queryTasks(payload);
775
436
  sideEffects?.onSiteCall?.();
@@ -797,10 +458,7 @@ var utils = {
797
458
  }
798
459
  };
799
460
  async function countTasks2(options) {
800
- const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
801
- if (validateRequestSchema) {
802
- CountTasksRequest.parse({ options });
803
- }
461
+ const { httpClient, sideEffects } = arguments[1];
804
462
  const payload = renameKeysFromSDKRequestToRESTRequest({
805
463
  filter: options?.filter
806
464
  });
@@ -825,10 +483,7 @@ async function countTasks2(options) {
825
483
  }
826
484
  }
827
485
  async function moveTaskAfter2(taskId, options) {
828
- const { httpClient, sideEffects, validateRequestSchema } = arguments[2];
829
- if (validateRequestSchema) {
830
- MoveTaskAfterRequest.parse({ taskId, options });
831
- }
486
+ const { httpClient, sideEffects } = arguments[2];
832
487
  const payload = renameKeysFromSDKRequestToRESTRequest({
833
488
  taskId,
834
489
  beforeTaskId: options?.beforeTaskId