@wix/auto_sdk_crm_tasks 1.0.56 → 1.0.58

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.
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../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":["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 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\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](https://dev.wix.com/docs/rest/api-reference/crm/tasks/task-v2/filter-and-sort).\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 /** Details related to the account */\n accountInfo?: AccountInfo;\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 AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\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 DeleteCompletedTasksRequest as DeleteCompletedTasksRequestOriginal,\n DeleteCompletedTasksResponse as DeleteCompletedTasksResponseOriginal,\n SendTasksReminderRequest as SendTasksReminderRequestOriginal,\n ReminderType as ReminderTypeOriginal,\n ReminderTypeWithLiterals as ReminderTypeWithLiteralsOriginal,\n SendTasksReminderResponse as SendTasksReminderResponseOriginal,\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 AccountInfo as AccountInfoOriginal,\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,SAAS,yBAAyB;AAClC,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;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,SAAO,WAAW,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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dentityType","createTask","getTask","updateTask","deleteTask","queryTasks","countTasks","moveTaskAfter"]}
1
+ {"version":3,"sources":["../../../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":["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 [Query Tasks](https://dev.wix.com/docs/rest/api-reference/crm/tasks/task-v2/query-tasks) for a list of supported filters.\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 /** Details related to the account */\n accountInfo?: AccountInfo;\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 AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\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 AccountInfo as AccountInfoOriginal,\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,SAAS,yBAAyB;AAClC,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;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,SAAO,WAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,IAAM,eAAe;AAGd,SAAS,WAAW,SAA6C;AACtE,WAAS,aAAa,EAAE,KAAK,GAAQ;AACnC,UAAM,iBAAiB,eAAe,SAAS;AAAA,MAC7C;AAAA,QACE,aAAa;AAAA,QACb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AAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,cAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBAAgD,WAAW,OAAO;AAExE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,cAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBAAgD,WAAW,OAAO;AAExE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,iBAOd;AACA,QAAM,UAAU,EAAE,QAAQ,UAAU;AAEpC,QAAM,oBAAgD,cAAc,OAAO;AAE3E,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,QAAQ,SAAS;AAAA,IAC/B,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["payload","TaskStatus","SourceType","SortOrder","WebhookIdentityType","ReminderType","createTask","getTask","updateTask","deleteTask","queryTasks","countTasks","moveTaskAfter"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/auto_sdk_crm_tasks",
3
- "version": "1.0.56",
3
+ "version": "1.0.58",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",
@@ -50,5 +50,5 @@
50
50
  "fqdn": "wix.crm.tasks.v2.task"
51
51
  }
52
52
  },
53
- "falconPackageHash": "8b7dd473f0b799f4a4f3151deb793c62099b3310099ca47623dc124c"
53
+ "falconPackageHash": "7c069a9262364cf4803c7c4dc22e5b4f281059b861bb2644417fd5e6"
54
54
  }