@wix/auto_sdk_crm_tasks 1.0.33 → 1.0.34

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.
@@ -122,6 +122,28 @@ interface ContactInfo {
122
122
  */
123
123
  imageUrlExpirationDate?: Date | null;
124
124
  }
125
+ interface RepositionTask {
126
+ /**
127
+ * The id of the last task that was re-positioned
128
+ * @format GUID
129
+ */
130
+ taskId?: string | null;
131
+ /** The position of the last task that was re-positioned */
132
+ position?: string | null;
133
+ }
134
+ interface TaskOverdue {
135
+ /** The overdue task. */
136
+ task?: Task;
137
+ }
138
+ interface TaskAssigned {
139
+ /**
140
+ * The id of the assignee
141
+ * @format GUID
142
+ */
143
+ assigneeId?: string;
144
+ /** The task that was assigned */
145
+ task?: Task;
146
+ }
125
147
  interface CreateTaskRequest {
126
148
  /** Task to create. */
127
149
  task: Task;
@@ -130,6 +152,10 @@ interface CreateTaskResponse {
130
152
  /** The created task. */
131
153
  task?: Task;
132
154
  }
155
+ interface ContactNotFoundError {
156
+ /** @format GUID */
157
+ contactId?: string;
158
+ }
133
159
  interface GetTaskRequest {
134
160
  /**
135
161
  * ID of the task to retrieve.
@@ -257,6 +283,68 @@ interface CountTasksResponse {
257
283
  /** The number of tasks that match the specified filter. */
258
284
  count?: number;
259
285
  }
286
+ interface QueryTasksInternalRequest {
287
+ /** WQL expression */
288
+ query?: QueryV2;
289
+ }
290
+ interface QueryV2 extends QueryV2PagingMethodOneOf {
291
+ /** Paging options to limit and skip the number of items. */
292
+ paging?: Paging;
293
+ /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
294
+ cursorPaging?: CursorPaging;
295
+ /**
296
+ * Filter object in the following format:
297
+ * `"filter" : {
298
+ * "fieldName1": "value1",
299
+ * "fieldName2":{"$operator":"value2"}
300
+ * }`
301
+ * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
302
+ */
303
+ filter?: Record<string, any> | null;
304
+ /**
305
+ * Sort object in the following format:
306
+ * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
307
+ */
308
+ sort?: Sorting[];
309
+ /** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */
310
+ fields?: string[];
311
+ /** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */
312
+ fieldsets?: string[];
313
+ }
314
+ /** @oneof */
315
+ interface QueryV2PagingMethodOneOf {
316
+ /** Paging options to limit and skip the number of items. */
317
+ paging?: Paging;
318
+ /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
319
+ cursorPaging?: CursorPaging;
320
+ }
321
+ interface Paging {
322
+ /**
323
+ * Number of items to load.
324
+ * @max 1000
325
+ */
326
+ limit?: number | null;
327
+ /** Number of items to skip in the current sort order. */
328
+ offset?: number | null;
329
+ }
330
+ interface QueryTasksInternalResponse {
331
+ /** The retrieved tasks. */
332
+ tasks?: Task[];
333
+ /** Details on the paged set of results returned. */
334
+ pagingMetadata?: PagingMetadataV2;
335
+ }
336
+ interface PagingMetadataV2 {
337
+ /** Number of items returned in the response. */
338
+ count?: number | null;
339
+ /** Offset that was requested. */
340
+ offset?: number | null;
341
+ /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
342
+ total?: number | null;
343
+ /** Flag that indicates the server failed to calculate the `total` field. */
344
+ tooManyToCount?: boolean | null;
345
+ /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
346
+ cursors?: Cursors;
347
+ }
260
348
  interface MoveTaskAfterRequest {
261
349
  /**
262
350
  * ID of the task to move.
@@ -272,6 +360,206 @@ interface MoveTaskAfterRequest {
272
360
  }
273
361
  interface MoveTaskAfterResponse {
274
362
  }
363
+ interface TaskNotFoundError {
364
+ /**
365
+ * The task id that was not found
366
+ * @format GUID
367
+ */
368
+ taskId?: string;
369
+ }
370
+ interface Empty {
371
+ }
372
+ interface DomainEvent extends DomainEventBodyOneOf {
373
+ createdEvent?: EntityCreatedEvent;
374
+ updatedEvent?: EntityUpdatedEvent;
375
+ deletedEvent?: EntityDeletedEvent;
376
+ actionEvent?: ActionEvent;
377
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
378
+ id?: string;
379
+ /**
380
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
381
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
382
+ */
383
+ entityFqdn?: string;
384
+ /**
385
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
386
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
387
+ */
388
+ slug?: string;
389
+ /** ID of the entity associated with the event. */
390
+ entityId?: string;
391
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
392
+ eventTime?: Date | null;
393
+ /**
394
+ * Whether the event was triggered as a result of a privacy regulation application
395
+ * (for example, GDPR).
396
+ */
397
+ triggeredByAnonymizeRequest?: boolean | null;
398
+ /** If present, indicates the action that triggered the event. */
399
+ originatedFrom?: string | null;
400
+ /**
401
+ * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
402
+ * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
403
+ */
404
+ entityEventSequence?: string | null;
405
+ }
406
+ /** @oneof */
407
+ interface DomainEventBodyOneOf {
408
+ createdEvent?: EntityCreatedEvent;
409
+ updatedEvent?: EntityUpdatedEvent;
410
+ deletedEvent?: EntityDeletedEvent;
411
+ actionEvent?: ActionEvent;
412
+ }
413
+ interface EntityCreatedEvent {
414
+ entityAsJson?: string;
415
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
416
+ restoreInfo?: RestoreInfo;
417
+ }
418
+ interface RestoreInfo {
419
+ deletedDate?: Date | null;
420
+ }
421
+ interface EntityUpdatedEvent {
422
+ /**
423
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
424
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
425
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
426
+ */
427
+ currentEntityAsJson?: string;
428
+ }
429
+ interface EntityDeletedEvent {
430
+ /** Entity that was deleted. */
431
+ deletedEntityAsJson?: string | null;
432
+ }
433
+ interface ActionEvent {
434
+ bodyAsJson?: string;
435
+ }
436
+ interface MessageEnvelope {
437
+ /**
438
+ * App instance ID.
439
+ * @format GUID
440
+ */
441
+ instanceId?: string | null;
442
+ /**
443
+ * Event type.
444
+ * @maxLength 150
445
+ */
446
+ eventType?: string;
447
+ /** The identification type and identity data. */
448
+ identity?: IdentificationData;
449
+ /** Stringify payload. */
450
+ data?: string;
451
+ }
452
+ interface IdentificationData extends IdentificationDataIdOneOf {
453
+ /**
454
+ * ID of a site visitor that has not logged in to the site.
455
+ * @format GUID
456
+ */
457
+ anonymousVisitorId?: string;
458
+ /**
459
+ * ID of a site visitor that has logged in to the site.
460
+ * @format GUID
461
+ */
462
+ memberId?: string;
463
+ /**
464
+ * ID of a Wix user (site owner, contributor, etc.).
465
+ * @format GUID
466
+ */
467
+ wixUserId?: string;
468
+ /**
469
+ * ID of an app.
470
+ * @format GUID
471
+ */
472
+ appId?: string;
473
+ /** @readonly */
474
+ identityType?: WebhookIdentityTypeWithLiterals;
475
+ }
476
+ /** @oneof */
477
+ interface IdentificationDataIdOneOf {
478
+ /**
479
+ * ID of a site visitor that has not logged in to the site.
480
+ * @format GUID
481
+ */
482
+ anonymousVisitorId?: string;
483
+ /**
484
+ * ID of a site visitor that has logged in to the site.
485
+ * @format GUID
486
+ */
487
+ memberId?: string;
488
+ /**
489
+ * ID of a Wix user (site owner, contributor, etc.).
490
+ * @format GUID
491
+ */
492
+ wixUserId?: string;
493
+ /**
494
+ * ID of an app.
495
+ * @format GUID
496
+ */
497
+ appId?: string;
498
+ }
499
+ declare enum WebhookIdentityType {
500
+ UNKNOWN = "UNKNOWN",
501
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
502
+ MEMBER = "MEMBER",
503
+ WIX_USER = "WIX_USER",
504
+ APP = "APP"
505
+ }
506
+ /** @enumType */
507
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
508
+ interface DeleteCompletedTasksRequest {
509
+ /**
510
+ * Optional list of tasks ids of the tasks to delete. If the list is not provided the filter is used.
511
+ * @format GUID
512
+ * @maxSize 1000
513
+ */
514
+ taskIds?: string[];
515
+ /** An optional filter of tasks to count. See 'queryTasks' for supported filter options. */
516
+ filter?: Record<string, any> | null;
517
+ }
518
+ interface DeleteCompletedTasksResponse {
519
+ }
520
+ interface SendTasksReminderRequest {
521
+ /**
522
+ * Ids of the tasks to remind
523
+ * @format GUID
524
+ * @maxSize 50
525
+ */
526
+ taskIds?: string[];
527
+ /** The reminder type */
528
+ reminderType?: ReminderTypeWithLiterals;
529
+ }
530
+ declare enum ReminderType {
531
+ UNKNOWN_REMINDER_TYPE = "UNKNOWN_REMINDER_TYPE",
532
+ FIRST_REMINDER = "FIRST_REMINDER",
533
+ LAST_REMINDER = "LAST_REMINDER"
534
+ }
535
+ /** @enumType */
536
+ type ReminderTypeWithLiterals = ReminderType | 'UNKNOWN_REMINDER_TYPE' | 'FIRST_REMINDER' | 'LAST_REMINDER';
537
+ interface SendTasksReminderResponse {
538
+ }
539
+ /** @docsIgnore */
540
+ type CreateTaskApplicationErrors = {
541
+ code?: 'CONTACT_NOT_FOUND';
542
+ description?: string;
543
+ data?: ContactNotFoundError;
544
+ };
545
+ /** @docsIgnore */
546
+ type UpdateTaskApplicationErrors = {
547
+ code?: 'CONTACT_NOT_FOUND';
548
+ description?: string;
549
+ data?: ContactNotFoundError;
550
+ };
551
+ /** @docsIgnore */
552
+ type CountTasksApplicationErrors = {
553
+ code?: 'TOO_MANY_TO_COUNT';
554
+ description?: string;
555
+ data?: Record<string, any>;
556
+ };
557
+ /** @docsIgnore */
558
+ type MoveTaskAfterApplicationErrors = {
559
+ code?: 'TASK_NOT_FOUND';
560
+ description?: string;
561
+ data?: TaskNotFoundError;
562
+ };
275
563
 
276
564
  type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
277
565
  getUrl: (context: any) => string;
@@ -299,4 +587,4 @@ declare function moveTaskAfter(): __PublicMethodMetaInfo<'POST', {
299
587
  taskId: string;
300
588
  }, MoveTaskAfterRequest$1, MoveTaskAfterRequest, MoveTaskAfterResponse$1, MoveTaskAfterResponse>;
301
589
 
302
- export { type __PublicMethodMetaInfo, countTasks, createTask, deleteTask, getTask, moveTaskAfter, queryTasks, updateTask };
590
+ export { type ActionEvent as ActionEventOriginal, type ContactInfo as ContactInfoOriginal, type ContactNotFoundError as ContactNotFoundErrorOriginal, type CountTasksApplicationErrors as CountTasksApplicationErrorsOriginal, type CountTasksRequest as CountTasksRequestOriginal, type CountTasksResponse as CountTasksResponseOriginal, type CreateTaskApplicationErrors as CreateTaskApplicationErrorsOriginal, type CreateTaskRequest as CreateTaskRequestOriginal, type CreateTaskResponse as CreateTaskResponseOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, type DeleteCompletedTasksRequest as DeleteCompletedTasksRequestOriginal, type DeleteCompletedTasksResponse as DeleteCompletedTasksResponseOriginal, type DeleteTaskRequest as DeleteTaskRequestOriginal, type DeleteTaskResponse as DeleteTaskResponseOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type GetTaskRequest as GetTaskRequestOriginal, type GetTaskResponse as GetTaskResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type MoveTaskAfterApplicationErrors as MoveTaskAfterApplicationErrorsOriginal, type MoveTaskAfterRequest as MoveTaskAfterRequestOriginal, type MoveTaskAfterResponse as MoveTaskAfterResponseOriginal, type PagingMetadataV2 as PagingMetadataV2Original, type Paging as PagingOriginal, type QueryTasksInternalRequest as QueryTasksInternalRequestOriginal, type QueryTasksInternalResponse as QueryTasksInternalResponseOriginal, type QueryTasksRequest as QueryTasksRequestOriginal, type QueryTasksResponse as QueryTasksResponseOriginal, type QueryV2 as QueryV2Original, type QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOfOriginal, ReminderType as ReminderTypeOriginal, type ReminderTypeWithLiterals as ReminderTypeWithLiteralsOriginal, type RepositionTask as RepositionTaskOriginal, type RestoreInfo as RestoreInfoOriginal, type SendTasksReminderRequest as SendTasksReminderRequestOriginal, type SendTasksReminderResponse as SendTasksReminderResponseOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, SourceType as SourceTypeOriginal, type SourceTypeWithLiterals as SourceTypeWithLiteralsOriginal, type TaskAssigned as TaskAssignedOriginal, type TaskNotFoundError as TaskNotFoundErrorOriginal, type Task as TaskOriginal, type TaskOverdue as TaskOverdueOriginal, type TaskSource as TaskSourceOriginal, TaskStatus as TaskStatusOriginal, type TaskStatusWithLiterals as TaskStatusWithLiteralsOriginal, type UpdateTaskApplicationErrors as UpdateTaskApplicationErrorsOriginal, type UpdateTaskRequest as UpdateTaskRequestOriginal, type UpdateTaskResponse as UpdateTaskResponseOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, countTasks, createTask, deleteTask, getTask, moveTaskAfter, queryTasks, updateTask };
package/build/cjs/meta.js CHANGED
@@ -20,6 +20,11 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // meta.ts
21
21
  var meta_exports = {};
22
22
  __export(meta_exports, {
23
+ ReminderTypeOriginal: () => ReminderType,
24
+ SortOrderOriginal: () => SortOrder,
25
+ SourceTypeOriginal: () => SourceType,
26
+ TaskStatusOriginal: () => TaskStatus,
27
+ WebhookIdentityTypeOriginal: () => WebhookIdentityType,
23
28
  countTasks: () => countTasks2,
24
29
  createTask: () => createTask2,
25
30
  deleteTask: () => deleteTask2,
@@ -285,6 +290,37 @@ function moveTaskAfter(payload) {
285
290
  return __moveTaskAfter;
286
291
  }
287
292
 
293
+ // src/crm-tasks-v2-task-tasks.types.ts
294
+ var TaskStatus = /* @__PURE__ */ ((TaskStatus2) => {
295
+ TaskStatus2["ACTION_NEEDED"] = "ACTION_NEEDED";
296
+ TaskStatus2["COMPLETED"] = "COMPLETED";
297
+ return TaskStatus2;
298
+ })(TaskStatus || {});
299
+ var SourceType = /* @__PURE__ */ ((SourceType2) => {
300
+ SourceType2["APP"] = "APP";
301
+ SourceType2["USER"] = "USER";
302
+ return SourceType2;
303
+ })(SourceType || {});
304
+ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
305
+ SortOrder2["ASC"] = "ASC";
306
+ SortOrder2["DESC"] = "DESC";
307
+ return SortOrder2;
308
+ })(SortOrder || {});
309
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
310
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
311
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
312
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
313
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
314
+ WebhookIdentityType2["APP"] = "APP";
315
+ return WebhookIdentityType2;
316
+ })(WebhookIdentityType || {});
317
+ var ReminderType = /* @__PURE__ */ ((ReminderType2) => {
318
+ ReminderType2["UNKNOWN_REMINDER_TYPE"] = "UNKNOWN_REMINDER_TYPE";
319
+ ReminderType2["FIRST_REMINDER"] = "FIRST_REMINDER";
320
+ ReminderType2["LAST_REMINDER"] = "LAST_REMINDER";
321
+ return ReminderType2;
322
+ })(ReminderType || {});
323
+
288
324
  // src/crm-tasks-v2-task-tasks.meta.ts
289
325
  function createTask2() {
290
326
  const payload = {};
@@ -414,6 +450,11 @@ function moveTaskAfter2() {
414
450
  }
415
451
  // Annotate the CommonJS export names for ESM import in node:
416
452
  0 && (module.exports = {
453
+ ReminderTypeOriginal,
454
+ SortOrderOriginal,
455
+ SourceTypeOriginal,
456
+ TaskStatusOriginal,
457
+ WebhookIdentityTypeOriginal,
417
458
  countTasks,
418
459
  createTask,
419
460
  deleteTask,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../meta.ts","../../src/crm-tasks-v2-task-tasks.http.ts","../../src/crm-tasks-v2-task-tasks.meta.ts"],"sourcesContent":["export * from './src/crm-tasks-v2-task-tasks.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixCrmTasksV2TasksUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/_api/tasks-app',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/crm/tasks/v2/tasks',\n destPath: '/v2/tasks',\n },\n ],\n _: [\n {\n srcPath: '/_api/tasks-app',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/tasks-app',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_crm_tasks';\n\n/** Creates a new task. */\nexport function createTask(payload: object): RequestOptionsFactory<any> {\n function __createTask({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'task.createdDate' },\n { path: 'task.updatedDate' },\n { path: 'task.dueDate' },\n { path: 'task.contact.imageUrlExpirationDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.crm.tasks.v2.task',\n method: 'POST' as any,\n methodFqn: 'wix.crm.tasks.v2.Tasks.CreateTask',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCrmTasksV2TasksUrl({\n protoPath: '/v2/tasks',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'task.createdDate' },\n { path: 'task.updatedDate' },\n { path: 'task.dueDate' },\n { path: 'task.contact.imageUrlExpirationDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createTask;\n}\n\n/** Retrieves a task by ID. */\nexport function getTask(payload: object): RequestOptionsFactory<any> {\n function __getTask({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.crm.tasks.v2.task',\n method: 'GET' as any,\n methodFqn: 'wix.crm.tasks.v2.Tasks.GetTask',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCrmTasksV2TasksUrl({\n protoPath: '/v2/tasks/{taskId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'task.createdDate' },\n { path: 'task.updatedDate' },\n { path: 'task.dueDate' },\n { path: 'task.contact.imageUrlExpirationDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getTask;\n}\n\n/**\n * Updates a task.\n *\n * Each time the task is updated, `revision` increments by 1.\n * The existing `revision` must be included when updating the task.\n * This ensures you're working with the latest task\n * and prevents unintended overwrites.\n */\nexport function updateTask(payload: object): RequestOptionsFactory<any> {\n function __updateTask({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'mask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'task.createdDate' },\n { path: 'task.updatedDate' },\n { path: 'task.dueDate' },\n { path: 'task.contact.imageUrlExpirationDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.crm.tasks.v2.task',\n method: 'PATCH' as any,\n methodFqn: 'wix.crm.tasks.v2.Tasks.UpdateTask',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCrmTasksV2TasksUrl({\n protoPath: '/v2/tasks/{task.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'task.createdDate' },\n { path: 'task.updatedDate' },\n { path: 'task.dueDate' },\n { path: 'task.contact.imageUrlExpirationDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateTask;\n}\n\n/** Deletes a task by ID. */\nexport function deleteTask(payload: object): RequestOptionsFactory<any> {\n function __deleteTask({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.crm.tasks.v2.task',\n method: 'DELETE' as any,\n methodFqn: 'wix.crm.tasks.v2.Tasks.DeleteTask',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCrmTasksV2TasksUrl({\n protoPath: '/v2/tasks/{taskId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteTask;\n}\n\n/**\n * Creates a query to retrieve a list of tasks.\n *\n * The `queryTasks()` method builds a query to retrieve a list of tasks and returns a `TasksQueryBuilder` object.\n *\n * The returned object contains the query definition which is typically used to run the query using the `find()` method. You can refine the query by chaining `TasksQueryBuilder` methods onto the query. `TasksQueryBuilder` methods enable you to sort, filter, and control the results that `queryTasks()` returns.\n *\n * `queryTasks()` runs with these `TasksQueryBuilder` defaults, which you can override:\n * - `limit(50)`\n * - `descending('_createdDate')`\n *\n * The methods that are chained to `queryTasks()` are applied in the order they are called. For example, if you apply `ascending('_createdDate')` and then `descending('_updatedDate')`, the results are sorted first by the created date and then, if there are multiple results with the same date, the items are sorted by the updated date.\n *\n * The following `TasksQueryBuilder` methods are supported for `queryTasks()`. For a full description of the `task` object, see the object returned for the `items` property in `TasksQueryResult`.\n */\nexport function queryTasks(payload: object): RequestOptionsFactory<any> {\n function __queryTasks({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.crm.tasks.v2.task',\n method: 'POST' as any,\n methodFqn: 'wix.crm.tasks.v2.Tasks.QueryTasks',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCrmTasksV2TasksUrl({\n protoPath: '/v2/tasks/query',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'tasks.createdDate' },\n { path: 'tasks.updatedDate' },\n { path: 'tasks.dueDate' },\n { path: 'tasks.contact.imageUrlExpirationDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryTasks;\n}\n\n/**\n * Counts the number of tasks.\n *\n *\n * This method returns the count of all tasks regardless of their `status`.\n *\n * Optionally, you can specify a filter to count only tasks that meet certain criteria.\n */\nexport function countTasks(payload: object): RequestOptionsFactory<any> {\n function __countTasks({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.crm.tasks.v2.task',\n method: 'POST' as any,\n methodFqn: 'wix.crm.tasks.v2.Tasks.CountTasks',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCrmTasksV2TasksUrl({\n protoPath: '/v2/tasks/count',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __countTasks;\n}\n\n/**\n * Moves a task specified by ID to be placed after another task in the task display.\n *\n * You can reposition a task to be first in the display by omitting `beforeTaskId`.\n */\nexport function moveTaskAfter(payload: object): RequestOptionsFactory<any> {\n function __moveTaskAfter({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.crm.tasks.v2.task',\n method: 'POST' as any,\n methodFqn: 'wix.crm.tasks.v2.Tasks.MoveTaskAfter',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCrmTasksV2TasksUrl({\n protoPath: '/v2/tasks/{taskId}/move-after',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __moveTaskAfter;\n}\n","import * as ambassadorWixCrmTasksV2Task from './crm-tasks-v2-task-tasks.http.js';\nimport * as ambassadorWixCrmTasksV2TaskTypes from './crm-tasks-v2-task-tasks.types.js';\nimport * as ambassadorWixCrmTasksV2TaskUniversalTypes from './crm-tasks-v2-task-tasks.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function createTask(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixCrmTasksV2TaskUniversalTypes.CreateTaskRequest,\n ambassadorWixCrmTasksV2TaskTypes.CreateTaskRequest,\n ambassadorWixCrmTasksV2TaskUniversalTypes.CreateTaskResponse,\n ambassadorWixCrmTasksV2TaskTypes.CreateTaskResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions = ambassadorWixCrmTasksV2Task.createTask(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/tasks',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getTask(): __PublicMethodMetaInfo<\n 'GET',\n { taskId: string },\n ambassadorWixCrmTasksV2TaskUniversalTypes.GetTaskRequest,\n ambassadorWixCrmTasksV2TaskTypes.GetTaskRequest,\n ambassadorWixCrmTasksV2TaskUniversalTypes.GetTaskResponse,\n ambassadorWixCrmTasksV2TaskTypes.GetTaskResponse\n> {\n const payload = { taskId: ':taskId' } as any;\n\n const getRequestOptions = ambassadorWixCrmTasksV2Task.getTask(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v2/tasks/{taskId}',\n pathParams: { taskId: 'taskId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateTask(): __PublicMethodMetaInfo<\n 'PATCH',\n { taskId: string },\n ambassadorWixCrmTasksV2TaskUniversalTypes.UpdateTaskRequest,\n ambassadorWixCrmTasksV2TaskTypes.UpdateTaskRequest,\n ambassadorWixCrmTasksV2TaskUniversalTypes.UpdateTaskResponse,\n ambassadorWixCrmTasksV2TaskTypes.UpdateTaskResponse\n> {\n const payload = { task: { id: ':taskId' } } as any;\n\n const getRequestOptions = ambassadorWixCrmTasksV2Task.updateTask(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v2/tasks/{task.id}',\n pathParams: { taskId: 'taskId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function deleteTask(): __PublicMethodMetaInfo<\n 'DELETE',\n { taskId: string },\n ambassadorWixCrmTasksV2TaskUniversalTypes.DeleteTaskRequest,\n ambassadorWixCrmTasksV2TaskTypes.DeleteTaskRequest,\n ambassadorWixCrmTasksV2TaskUniversalTypes.DeleteTaskResponse,\n ambassadorWixCrmTasksV2TaskTypes.DeleteTaskResponse\n> {\n const payload = { taskId: ':taskId' } as any;\n\n const getRequestOptions = ambassadorWixCrmTasksV2Task.deleteTask(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/v2/tasks/{taskId}',\n pathParams: { taskId: 'taskId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function queryTasks(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixCrmTasksV2TaskUniversalTypes.QueryTasksRequest,\n ambassadorWixCrmTasksV2TaskTypes.QueryTasksRequest,\n ambassadorWixCrmTasksV2TaskUniversalTypes.QueryTasksResponse,\n ambassadorWixCrmTasksV2TaskTypes.QueryTasksResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions = ambassadorWixCrmTasksV2Task.queryTasks(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/tasks/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function countTasks(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixCrmTasksV2TaskUniversalTypes.CountTasksRequest,\n ambassadorWixCrmTasksV2TaskTypes.CountTasksRequest,\n ambassadorWixCrmTasksV2TaskUniversalTypes.CountTasksResponse,\n ambassadorWixCrmTasksV2TaskTypes.CountTasksResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions = ambassadorWixCrmTasksV2Task.countTasks(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/tasks/count',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function moveTaskAfter(): __PublicMethodMetaInfo<\n 'POST',\n { taskId: string },\n ambassadorWixCrmTasksV2TaskUniversalTypes.MoveTaskAfterRequest,\n ambassadorWixCrmTasksV2TaskTypes.MoveTaskAfterRequest,\n ambassadorWixCrmTasksV2TaskUniversalTypes.MoveTaskAfterResponse,\n ambassadorWixCrmTasksV2TaskTypes.MoveTaskAfterResponse\n> {\n const payload = { taskId: ':taskId' } as any;\n\n const getRequestOptions = ambassadorWixCrmTasksV2Task.moveTaskAfter(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/tasks/{taskId}/move-after',\n pathParams: { taskId: 'taskId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,oBAAAA;AAAA,EAAA,kBAAAC;AAAA,EAAA,kBAAAC;AAAA,EAAA,eAAAC;AAAA,EAAA,qBAAAC;AAAA,EAAA,kBAAAC;AAAA,EAA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Task","deleteTask","getTask","moveTaskAfter","queryTasks","updateTask","import_timestamp","import_rest_modules","payload","createTask","getTask","updateTask","deleteTask","queryTasks","countTasks","moveTaskAfter"]}
1
+ {"version":3,"sources":["../../meta.ts","../../src/crm-tasks-v2-task-tasks.http.ts","../../src/crm-tasks-v2-task-tasks.types.ts","../../src/crm-tasks-v2-task-tasks.meta.ts"],"sourcesContent":["export * from './src/crm-tasks-v2-task-tasks.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixCrmTasksV2TasksUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/_api/tasks-app',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/crm/tasks/v2/tasks',\n destPath: '/v2/tasks',\n },\n ],\n _: [\n {\n srcPath: '/_api/tasks-app',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/tasks-app',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_crm_tasks';\n\n/** Creates a new task. */\nexport function createTask(payload: object): RequestOptionsFactory<any> {\n function __createTask({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'task.createdDate' },\n { path: 'task.updatedDate' },\n { path: 'task.dueDate' },\n { path: 'task.contact.imageUrlExpirationDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.crm.tasks.v2.task',\n method: 'POST' as any,\n methodFqn: 'wix.crm.tasks.v2.Tasks.CreateTask',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCrmTasksV2TasksUrl({\n protoPath: '/v2/tasks',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'task.createdDate' },\n { path: 'task.updatedDate' },\n { path: 'task.dueDate' },\n { path: 'task.contact.imageUrlExpirationDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createTask;\n}\n\n/** Retrieves a task by ID. */\nexport function getTask(payload: object): RequestOptionsFactory<any> {\n function __getTask({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.crm.tasks.v2.task',\n method: 'GET' as any,\n methodFqn: 'wix.crm.tasks.v2.Tasks.GetTask',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCrmTasksV2TasksUrl({\n protoPath: '/v2/tasks/{taskId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'task.createdDate' },\n { path: 'task.updatedDate' },\n { path: 'task.dueDate' },\n { path: 'task.contact.imageUrlExpirationDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getTask;\n}\n\n/**\n * Updates a task.\n *\n * Each time the task is updated, `revision` increments by 1.\n * The existing `revision` must be included when updating the task.\n * This ensures you're working with the latest task\n * and prevents unintended overwrites.\n */\nexport function updateTask(payload: object): RequestOptionsFactory<any> {\n function __updateTask({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'mask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'task.createdDate' },\n { path: 'task.updatedDate' },\n { path: 'task.dueDate' },\n { path: 'task.contact.imageUrlExpirationDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.crm.tasks.v2.task',\n method: 'PATCH' as any,\n methodFqn: 'wix.crm.tasks.v2.Tasks.UpdateTask',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCrmTasksV2TasksUrl({\n protoPath: '/v2/tasks/{task.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'task.createdDate' },\n { path: 'task.updatedDate' },\n { path: 'task.dueDate' },\n { path: 'task.contact.imageUrlExpirationDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateTask;\n}\n\n/** Deletes a task by ID. */\nexport function deleteTask(payload: object): RequestOptionsFactory<any> {\n function __deleteTask({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.crm.tasks.v2.task',\n method: 'DELETE' as any,\n methodFqn: 'wix.crm.tasks.v2.Tasks.DeleteTask',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCrmTasksV2TasksUrl({\n protoPath: '/v2/tasks/{taskId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteTask;\n}\n\n/**\n * Creates a query to retrieve a list of tasks.\n *\n * The `queryTasks()` method builds a query to retrieve a list of tasks and returns a `TasksQueryBuilder` object.\n *\n * The returned object contains the query definition which is typically used to run the query using the `find()` method. You can refine the query by chaining `TasksQueryBuilder` methods onto the query. `TasksQueryBuilder` methods enable you to sort, filter, and control the results that `queryTasks()` returns.\n *\n * `queryTasks()` runs with these `TasksQueryBuilder` defaults, which you can override:\n * - `limit(50)`\n * - `descending('_createdDate')`\n *\n * The methods that are chained to `queryTasks()` are applied in the order they are called. For example, if you apply `ascending('_createdDate')` and then `descending('_updatedDate')`, the results are sorted first by the created date and then, if there are multiple results with the same date, the items are sorted by the updated date.\n *\n * The following `TasksQueryBuilder` methods are supported for `queryTasks()`. For a full description of the `task` object, see the object returned for the `items` property in `TasksQueryResult`.\n */\nexport function queryTasks(payload: object): RequestOptionsFactory<any> {\n function __queryTasks({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.crm.tasks.v2.task',\n method: 'POST' as any,\n methodFqn: 'wix.crm.tasks.v2.Tasks.QueryTasks',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCrmTasksV2TasksUrl({\n protoPath: '/v2/tasks/query',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'tasks.createdDate' },\n { path: 'tasks.updatedDate' },\n { path: 'tasks.dueDate' },\n { path: 'tasks.contact.imageUrlExpirationDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryTasks;\n}\n\n/**\n * Counts the number of tasks.\n *\n *\n * This method returns the count of all tasks regardless of their `status`.\n *\n * Optionally, you can specify a filter to count only tasks that meet certain criteria.\n */\nexport function countTasks(payload: object): RequestOptionsFactory<any> {\n function __countTasks({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.crm.tasks.v2.task',\n method: 'POST' as any,\n methodFqn: 'wix.crm.tasks.v2.Tasks.CountTasks',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCrmTasksV2TasksUrl({\n protoPath: '/v2/tasks/count',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __countTasks;\n}\n\n/**\n * Moves a task specified by ID to be placed after another task in the task display.\n *\n * You can reposition a task to be first in the display by omitting `beforeTaskId`.\n */\nexport function moveTaskAfter(payload: object): RequestOptionsFactory<any> {\n function __moveTaskAfter({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.crm.tasks.v2.task',\n method: 'POST' as any,\n methodFqn: 'wix.crm.tasks.v2.Tasks.MoveTaskAfter',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCrmTasksV2TasksUrl({\n protoPath: '/v2/tasks/{taskId}/move-after',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __moveTaskAfter;\n}\n","export interface Task {\n /**\n * Task ID.\n * @format GUID\n * @readonly\n */\n id?: string | null;\n /**\n * 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.\n * @readonly\n */\n revision?: string | null;\n /**\n * Title of the task.\n * @minLength 1\n * @maxLength 250\n */\n title?: string | null;\n /**\n * Description of the task.\n * @minLength 1\n * @maxLength 500\n */\n description?: string | null;\n /**\n * Date and time the task was created.\n * @readonly\n */\n createdDate?: Date | null;\n /**\n * Date and time the task was last updated.\n * @readonly\n */\n updatedDate?: Date | null;\n /** Due date for the task. */\n dueDate?: Date | null;\n /**\n * Status of the task.\n *\n * Default: `ACTION_NEEDED`\n */\n status?: TaskStatusWithLiterals;\n /** Details about the task source. */\n source?: TaskSource;\n /** Information about the contact associated with the task. */\n contact?: ContactInfo;\n}\n\n/** Possible statuses in which the task may be. */\nexport enum TaskStatus {\n /** Action needed. */\n ACTION_NEEDED = 'ACTION_NEEDED',\n /** Task completed. */\n COMPLETED = 'COMPLETED',\n}\n\n/** @enumType */\nexport type TaskStatusWithLiterals = TaskStatus | 'ACTION_NEEDED' | 'COMPLETED';\n\nexport interface TaskSource {\n /**\n * How the task was created.\n * @readonly\n */\n sourceType?: SourceTypeWithLiterals;\n /**\n * App ID, if the task was created by an app.\n * @format GUID\n * @readonly\n */\n appId?: string | null;\n /**\n * User ID, if the task was created by a Wix user.\n * @format GUID\n * @readonly\n */\n userId?: string | null;\n}\n\n/** Possible sources that can create tasks. */\nexport enum SourceType {\n /** Task was created by an app. */\n APP = 'APP',\n /** Task was created by a Wix user. */\n USER = 'USER',\n}\n\n/** @enumType */\nexport type SourceTypeWithLiterals = SourceType | 'APP' | 'USER';\n\nexport interface ContactInfo {\n /**\n * ID of the contact associated with the task.\n * @format GUID\n */\n id?: string | null;\n /**\n * Contact's first name.\n * @readonly\n */\n firstName?: string | null;\n /**\n * Contact's last name.\n * @readonly\n */\n lastName?: string | null;\n /**\n * Contact's image URL.\n * @readonly\n */\n imageUrl?: string | null;\n /**\n * Contact's primary email.\n * @readonly\n */\n email?: string | null;\n /**\n * Contact's primary phone.\n * @readonly\n */\n phone?: string | null;\n /**\n * Image URL expiration date.\n * @readonly\n */\n imageUrlExpirationDate?: Date | null;\n}\n\nexport interface RepositionTask {\n /**\n * The id of the last task that was re-positioned\n * @format GUID\n */\n taskId?: string | null;\n /** The position of the last task that was re-positioned */\n position?: string | null;\n}\n\nexport interface TaskOverdue {\n /** The overdue task. */\n task?: Task;\n}\n\nexport interface TaskAssigned {\n /**\n * The id of the assignee\n * @format GUID\n */\n assigneeId?: string;\n /** The task that was assigned */\n task?: Task;\n}\n\nexport interface CreateTaskRequest {\n /** Task to create. */\n task: Task;\n}\n\nexport interface CreateTaskResponse {\n /** The created task. */\n task?: Task;\n}\n\nexport interface ContactNotFoundError {\n /** @format GUID */\n contactId?: string;\n}\n\nexport interface GetTaskRequest {\n /**\n * ID of the task to retrieve.\n * @format GUID\n */\n taskId: string;\n}\n\nexport interface GetTaskResponse {\n /** The retrieved task. */\n task?: Task;\n}\n\nexport interface UpdateTaskRequest {\n /** Task to update. */\n task: Task;\n}\n\nexport interface UpdateTaskResponse {\n /** The updated task. */\n task?: Task;\n}\n\nexport interface DeleteTaskRequest {\n /**\n * ID of the task to delete.\n * @format GUID\n */\n taskId: string;\n}\n\nexport interface DeleteTaskResponse {}\n\nexport interface QueryTasksRequest {\n /** Query options. */\n query?: CursorQuery;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n /**\n * Filter object in the following format:\n * `\"filter\" : {\n * \"fieldName1\": \"value1\",\n * \"fieldName2\":{\"$operator\":\"value2\"}\n * }`\n * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object in the following format:\n * `[{\"fieldName\":\"sortField1\",\"order\":\"ASC\"},{\"fieldName\":\"sortField2\",\"order\":\"DESC\"}]`\n */\n sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n /** Name of the field to sort by. */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n /** Sort by ascending order. */\n ASC = 'ASC',\n /** Sort by descending order. */\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface CursorPaging {\n /**\n * Number of items to load.\n * @max 1000\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * You can get the relevant cursor token\n * from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n */\n cursor?: string | null;\n}\n\nexport interface QueryTasksResponse {\n /** The retrieved tasks. */\n tasks?: Task[];\n /** Paging metadata. */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Offset that was requested. */\n cursors?: Cursors;\n /**\n * Indicates if there are more results after the current page.\n * If `true`, another page of results can be retrieved.\n * If `false`, this is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /** Cursor pointing to next page in the list of results. */\n next?: string | null;\n /** Cursor pointing to previous page in the list of results. */\n prev?: string | null;\n}\n\nexport interface CountTasksRequest {\n /**\n * Filter which tasks to count. See supported filters ([REST](https://dev.wix.com/docs/rest/api-reference/crm/tasks/task-v2/filter-and-sort)| [SDK](https://dev.wix.com/docs/sdk/backend-modules/crm/tasks/query-tasks)).\n *\n * Filter tasks in the following format:\n *\n * `\"filter\" : {\n * \"fieldName1\": \"value1\",\n * \"fieldName2\":{\"$operator\":\"value2\"}\n * }`\n *\n * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`.\n */\n filter?: Record<string, any> | null;\n}\n\nexport interface CountTasksResponse {\n /** The number of tasks that match the specified filter. */\n count?: number;\n}\n\nexport interface QueryTasksInternalRequest {\n /** WQL expression */\n query?: QueryV2;\n}\n\nexport interface QueryV2 extends QueryV2PagingMethodOneOf {\n /** Paging options to limit and skip the number of items. */\n paging?: Paging;\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n /**\n * Filter object in the following format:\n * `\"filter\" : {\n * \"fieldName1\": \"value1\",\n * \"fieldName2\":{\"$operator\":\"value2\"}\n * }`\n * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object in the following format:\n * `[{\"fieldName\":\"sortField1\",\"order\":\"ASC\"},{\"fieldName\":\"sortField2\",\"order\":\"DESC\"}]`\n */\n sort?: Sorting[];\n /** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */\n fields?: string[];\n /** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */\n fieldsets?: string[];\n}\n\n/** @oneof */\nexport interface QueryV2PagingMethodOneOf {\n /** Paging options to limit and skip the number of items. */\n paging?: Paging;\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Paging {\n /**\n * Number of items to load.\n * @max 1000\n */\n limit?: number | null;\n /** Number of items to skip in the current sort order. */\n offset?: number | null;\n}\n\nexport interface QueryTasksInternalResponse {\n /** The retrieved tasks. */\n tasks?: Task[];\n /** Details on the paged set of results returned. */\n pagingMetadata?: PagingMetadataV2;\n}\n\nexport interface PagingMetadataV2 {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Offset that was requested. */\n offset?: number | null;\n /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */\n total?: number | null;\n /** Flag that indicates the server failed to calculate the `total` field. */\n tooManyToCount?: boolean | null;\n /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */\n cursors?: Cursors;\n}\n\nexport interface MoveTaskAfterRequest {\n /**\n * ID of the task to move.\n * @format GUID\n */\n taskId: string;\n /**\n * The ID of the task after which the moved task is positioned in the task display.\n * If `beforeTaskId` is not specified, the moved task is positioned first in the task display.\n * @format GUID\n */\n beforeTaskId?: string | null;\n}\n\nexport interface MoveTaskAfterResponse {}\n\nexport interface TaskNotFoundError {\n /**\n * The task id that was not found\n * @format GUID\n */\n taskId?: string;\n}\n\nexport interface Empty {}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entityAsJson?: string;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntityAsJson?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface DeleteCompletedTasksRequest {\n /**\n * Optional list of tasks ids of the tasks to delete. If the list is not provided the filter is used.\n * @format GUID\n * @maxSize 1000\n */\n taskIds?: string[];\n /** An optional filter of tasks to count. See 'queryTasks' for supported filter options. */\n filter?: Record<string, any> | null;\n}\n\nexport interface DeleteCompletedTasksResponse {}\n\nexport interface SendTasksReminderRequest {\n /**\n * Ids of the tasks to remind\n * @format GUID\n * @maxSize 50\n */\n taskIds?: string[];\n /** The reminder type */\n reminderType?: ReminderTypeWithLiterals;\n}\n\nexport enum ReminderType {\n UNKNOWN_REMINDER_TYPE = 'UNKNOWN_REMINDER_TYPE',\n FIRST_REMINDER = 'FIRST_REMINDER',\n LAST_REMINDER = 'LAST_REMINDER',\n}\n\n/** @enumType */\nexport type ReminderTypeWithLiterals =\n | ReminderType\n | 'UNKNOWN_REMINDER_TYPE'\n | 'FIRST_REMINDER'\n | 'LAST_REMINDER';\n\nexport interface SendTasksReminderResponse {}\n\n/** @docsIgnore */\nexport type CreateTaskApplicationErrors = {\n code?: 'CONTACT_NOT_FOUND';\n description?: string;\n data?: ContactNotFoundError;\n};\n/** @docsIgnore */\nexport type UpdateTaskApplicationErrors = {\n code?: 'CONTACT_NOT_FOUND';\n description?: string;\n data?: ContactNotFoundError;\n};\n/** @docsIgnore */\nexport type CountTasksApplicationErrors = {\n code?: 'TOO_MANY_TO_COUNT';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type MoveTaskAfterApplicationErrors = {\n code?: 'TASK_NOT_FOUND';\n description?: string;\n data?: TaskNotFoundError;\n};\n","import * as ambassadorWixCrmTasksV2Task from './crm-tasks-v2-task-tasks.http.js';\nimport * as ambassadorWixCrmTasksV2TaskTypes from './crm-tasks-v2-task-tasks.types.js';\nimport * as ambassadorWixCrmTasksV2TaskUniversalTypes from './crm-tasks-v2-task-tasks.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function createTask(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixCrmTasksV2TaskUniversalTypes.CreateTaskRequest,\n ambassadorWixCrmTasksV2TaskTypes.CreateTaskRequest,\n ambassadorWixCrmTasksV2TaskUniversalTypes.CreateTaskResponse,\n ambassadorWixCrmTasksV2TaskTypes.CreateTaskResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions = ambassadorWixCrmTasksV2Task.createTask(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/tasks',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getTask(): __PublicMethodMetaInfo<\n 'GET',\n { taskId: string },\n ambassadorWixCrmTasksV2TaskUniversalTypes.GetTaskRequest,\n ambassadorWixCrmTasksV2TaskTypes.GetTaskRequest,\n ambassadorWixCrmTasksV2TaskUniversalTypes.GetTaskResponse,\n ambassadorWixCrmTasksV2TaskTypes.GetTaskResponse\n> {\n const payload = { taskId: ':taskId' } as any;\n\n const getRequestOptions = ambassadorWixCrmTasksV2Task.getTask(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v2/tasks/{taskId}',\n pathParams: { taskId: 'taskId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateTask(): __PublicMethodMetaInfo<\n 'PATCH',\n { taskId: string },\n ambassadorWixCrmTasksV2TaskUniversalTypes.UpdateTaskRequest,\n ambassadorWixCrmTasksV2TaskTypes.UpdateTaskRequest,\n ambassadorWixCrmTasksV2TaskUniversalTypes.UpdateTaskResponse,\n ambassadorWixCrmTasksV2TaskTypes.UpdateTaskResponse\n> {\n const payload = { task: { id: ':taskId' } } as any;\n\n const getRequestOptions = ambassadorWixCrmTasksV2Task.updateTask(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v2/tasks/{task.id}',\n pathParams: { taskId: 'taskId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function deleteTask(): __PublicMethodMetaInfo<\n 'DELETE',\n { taskId: string },\n ambassadorWixCrmTasksV2TaskUniversalTypes.DeleteTaskRequest,\n ambassadorWixCrmTasksV2TaskTypes.DeleteTaskRequest,\n ambassadorWixCrmTasksV2TaskUniversalTypes.DeleteTaskResponse,\n ambassadorWixCrmTasksV2TaskTypes.DeleteTaskResponse\n> {\n const payload = { taskId: ':taskId' } as any;\n\n const getRequestOptions = ambassadorWixCrmTasksV2Task.deleteTask(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/v2/tasks/{taskId}',\n pathParams: { taskId: 'taskId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function queryTasks(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixCrmTasksV2TaskUniversalTypes.QueryTasksRequest,\n ambassadorWixCrmTasksV2TaskTypes.QueryTasksRequest,\n ambassadorWixCrmTasksV2TaskUniversalTypes.QueryTasksResponse,\n ambassadorWixCrmTasksV2TaskTypes.QueryTasksResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions = ambassadorWixCrmTasksV2Task.queryTasks(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/tasks/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function countTasks(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixCrmTasksV2TaskUniversalTypes.CountTasksRequest,\n ambassadorWixCrmTasksV2TaskTypes.CountTasksRequest,\n ambassadorWixCrmTasksV2TaskUniversalTypes.CountTasksResponse,\n ambassadorWixCrmTasksV2TaskTypes.CountTasksResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions = ambassadorWixCrmTasksV2Task.countTasks(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/tasks/count',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function moveTaskAfter(): __PublicMethodMetaInfo<\n 'POST',\n { taskId: string },\n ambassadorWixCrmTasksV2TaskUniversalTypes.MoveTaskAfterRequest,\n ambassadorWixCrmTasksV2TaskTypes.MoveTaskAfterRequest,\n ambassadorWixCrmTasksV2TaskUniversalTypes.MoveTaskAfterResponse,\n ambassadorWixCrmTasksV2TaskTypes.MoveTaskAfterResponse\n> {\n const payload = { taskId: ':taskId' } as any;\n\n const getRequestOptions = ambassadorWixCrmTasksV2Task.moveTaskAfter(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/tasks/{taskId}/move-after',\n pathParams: { taskId: 'taskId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n Task as TaskOriginal,\n TaskStatus as TaskStatusOriginal,\n TaskStatusWithLiterals as TaskStatusWithLiteralsOriginal,\n TaskSource as TaskSourceOriginal,\n SourceType as SourceTypeOriginal,\n SourceTypeWithLiterals as SourceTypeWithLiteralsOriginal,\n ContactInfo as ContactInfoOriginal,\n RepositionTask as RepositionTaskOriginal,\n TaskOverdue as TaskOverdueOriginal,\n TaskAssigned as TaskAssignedOriginal,\n CreateTaskRequest as CreateTaskRequestOriginal,\n CreateTaskResponse as CreateTaskResponseOriginal,\n ContactNotFoundError as ContactNotFoundErrorOriginal,\n GetTaskRequest as GetTaskRequestOriginal,\n GetTaskResponse as GetTaskResponseOriginal,\n UpdateTaskRequest as UpdateTaskRequestOriginal,\n UpdateTaskResponse as UpdateTaskResponseOriginal,\n DeleteTaskRequest as DeleteTaskRequestOriginal,\n DeleteTaskResponse as DeleteTaskResponseOriginal,\n QueryTasksRequest as QueryTasksRequestOriginal,\n CursorQuery as CursorQueryOriginal,\n CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal,\n Sorting as SortingOriginal,\n SortOrder as SortOrderOriginal,\n SortOrderWithLiterals as SortOrderWithLiteralsOriginal,\n CursorPaging as CursorPagingOriginal,\n QueryTasksResponse as QueryTasksResponseOriginal,\n CursorPagingMetadata as CursorPagingMetadataOriginal,\n Cursors as CursorsOriginal,\n CountTasksRequest as CountTasksRequestOriginal,\n CountTasksResponse as CountTasksResponseOriginal,\n QueryTasksInternalRequest as QueryTasksInternalRequestOriginal,\n QueryV2 as QueryV2Original,\n QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOfOriginal,\n Paging as PagingOriginal,\n QueryTasksInternalResponse as QueryTasksInternalResponseOriginal,\n PagingMetadataV2 as PagingMetadataV2Original,\n MoveTaskAfterRequest as MoveTaskAfterRequestOriginal,\n MoveTaskAfterResponse as MoveTaskAfterResponseOriginal,\n TaskNotFoundError as TaskNotFoundErrorOriginal,\n Empty as EmptyOriginal,\n DomainEvent as DomainEventOriginal,\n DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n EntityCreatedEvent as EntityCreatedEventOriginal,\n RestoreInfo as RestoreInfoOriginal,\n EntityUpdatedEvent as EntityUpdatedEventOriginal,\n EntityDeletedEvent as EntityDeletedEventOriginal,\n ActionEvent as ActionEventOriginal,\n MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n DeleteCompletedTasksRequest as DeleteCompletedTasksRequestOriginal,\n DeleteCompletedTasksResponse as DeleteCompletedTasksResponseOriginal,\n SendTasksReminderRequest as SendTasksReminderRequestOriginal,\n ReminderType as ReminderTypeOriginal,\n ReminderTypeWithLiterals as ReminderTypeWithLiteralsOriginal,\n SendTasksReminderResponse as SendTasksReminderResponseOriginal,\n CreateTaskApplicationErrors as CreateTaskApplicationErrorsOriginal,\n UpdateTaskApplicationErrors as UpdateTaskApplicationErrorsOriginal,\n CountTasksApplicationErrors as CountTasksApplicationErrorsOriginal,\n MoveTaskAfterApplicationErrors as MoveTaskAfterApplicationErrorsOriginal,\n} from './crm-tasks-v2-task-tasks.types.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAAAA;AAAA,EAAA,kBAAAC;AAAA,EAAA,kBAAAC;AAAA,EAAA,eAAAC;AAAA,EAAA,qBAAAC;AAAA,EAAA,kBAAAC;AAAA,EAAA,kBAAAC;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,wBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,6BACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,GAAG;AAAA,MACD;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,EACF;AAEA,aAAO,iCAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,IAAM,eAAe;AAGd,SAAS,WAAW,SAA6C;AACtE,WAAS,aAAa,EAAE,KAAK,GAAQ;AACnC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askAfter","queryTasks","updateTask","import_timestamp","import_rest_modules","payload","TaskStatus","SourceType","SortOrder","WebhookIdentityType","ReminderType","createTask","getTask","updateTask","deleteTask","queryTasks","countTasks","moveTaskAfter"]}