@wix/auto_sdk_crm_tasks 1.0.6 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/{internal/cjs/src/crm-tasks-v2-task-tasks.universal.d.ts → crm-tasks-v2-task-tasks.universal-DHOV27KP.d.mts} +67 -238
- package/build/{cjs/src/crm-tasks-v2-task-tasks.universal.d.ts → crm-tasks-v2-task-tasks.universal-DHOV27KP.d.ts} +67 -238
- package/build/index.d.mts +115 -0
- package/build/index.d.ts +115 -0
- package/build/index.js +640 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +601 -0
- package/build/index.mjs.map +1 -0
- package/build/{es/src/crm-tasks-v2-task-tasks.universal.d.ts → internal/crm-tasks-v2-task-tasks.universal-DHOV27KP.d.mts} +67 -238
- package/build/internal/{es/src/crm-tasks-v2-task-tasks.universal.d.ts → crm-tasks-v2-task-tasks.universal-DHOV27KP.d.ts} +67 -238
- package/build/internal/index.d.mts +115 -0
- package/build/internal/index.d.ts +115 -0
- package/build/internal/index.js +640 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +601 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/internal/meta.d.mts +290 -0
- package/build/internal/meta.d.ts +290 -0
- package/build/internal/meta.js +386 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +353 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/meta.d.mts +290 -0
- package/build/meta.d.ts +290 -0
- package/build/meta.js +386 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +353 -0
- package/build/meta.mjs.map +1 -0
- package/package.json +13 -12
- package/build/cjs/index.d.ts +0 -1
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/meta.d.ts +0 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.js.map +0 -1
- package/build/cjs/src/crm-tasks-v2-task-tasks.context.d.ts +0 -32
- package/build/cjs/src/crm-tasks-v2-task-tasks.context.js +0 -40
- package/build/cjs/src/crm-tasks-v2-task-tasks.context.js.map +0 -1
- package/build/cjs/src/crm-tasks-v2-task-tasks.http.d.ts +0 -47
- package/build/cjs/src/crm-tasks-v2-task-tasks.http.js +0 -264
- package/build/cjs/src/crm-tasks-v2-task-tasks.http.js.map +0 -1
- package/build/cjs/src/crm-tasks-v2-task-tasks.meta.d.ts +0 -27
- package/build/cjs/src/crm-tasks-v2-task-tasks.meta.js +0 -161
- package/build/cjs/src/crm-tasks-v2-task-tasks.meta.js.map +0 -1
- package/build/cjs/src/crm-tasks-v2-task-tasks.public.d.ts +0 -94
- package/build/cjs/src/crm-tasks-v2-task-tasks.public.js +0 -102
- package/build/cjs/src/crm-tasks-v2-task-tasks.public.js.map +0 -1
- package/build/cjs/src/crm-tasks-v2-task-tasks.types.d.ts +0 -528
- package/build/cjs/src/crm-tasks-v2-task-tasks.types.js +0 -41
- package/build/cjs/src/crm-tasks-v2-task-tasks.types.js.map +0 -1
- package/build/cjs/src/crm-tasks-v2-task-tasks.universal.js +0 -363
- package/build/cjs/src/crm-tasks-v2-task-tasks.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/package.json +0 -3
- package/build/es/src/crm-tasks-v2-task-tasks.context.d.ts +0 -32
- package/build/es/src/crm-tasks-v2-task-tasks.context.js +0 -32
- package/build/es/src/crm-tasks-v2-task-tasks.context.js.map +0 -1
- package/build/es/src/crm-tasks-v2-task-tasks.http.d.ts +0 -47
- package/build/es/src/crm-tasks-v2-task-tasks.http.js +0 -254
- package/build/es/src/crm-tasks-v2-task-tasks.http.js.map +0 -1
- package/build/es/src/crm-tasks-v2-task-tasks.meta.d.ts +0 -27
- package/build/es/src/crm-tasks-v2-task-tasks.meta.js +0 -128
- package/build/es/src/crm-tasks-v2-task-tasks.meta.js.map +0 -1
- package/build/es/src/crm-tasks-v2-task-tasks.public.d.ts +0 -94
- package/build/es/src/crm-tasks-v2-task-tasks.public.js +0 -87
- package/build/es/src/crm-tasks-v2-task-tasks.public.js.map +0 -1
- package/build/es/src/crm-tasks-v2-task-tasks.types.d.ts +0 -528
- package/build/es/src/crm-tasks-v2-task-tasks.types.js +0 -38
- package/build/es/src/crm-tasks-v2-task-tasks.types.js.map +0 -1
- package/build/es/src/crm-tasks-v2-task-tasks.universal.js +0 -330
- package/build/es/src/crm-tasks-v2-task-tasks.universal.js.map +0 -1
- package/build/internal/cjs/index.d.ts +0 -1
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.d.ts +0 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/src/crm-tasks-v2-task-tasks.context.d.ts +0 -32
- package/build/internal/cjs/src/crm-tasks-v2-task-tasks.context.js +0 -40
- package/build/internal/cjs/src/crm-tasks-v2-task-tasks.context.js.map +0 -1
- package/build/internal/cjs/src/crm-tasks-v2-task-tasks.http.d.ts +0 -47
- package/build/internal/cjs/src/crm-tasks-v2-task-tasks.http.js +0 -264
- package/build/internal/cjs/src/crm-tasks-v2-task-tasks.http.js.map +0 -1
- package/build/internal/cjs/src/crm-tasks-v2-task-tasks.meta.d.ts +0 -27
- package/build/internal/cjs/src/crm-tasks-v2-task-tasks.meta.js +0 -161
- package/build/internal/cjs/src/crm-tasks-v2-task-tasks.meta.js.map +0 -1
- package/build/internal/cjs/src/crm-tasks-v2-task-tasks.public.d.ts +0 -94
- package/build/internal/cjs/src/crm-tasks-v2-task-tasks.public.js +0 -102
- package/build/internal/cjs/src/crm-tasks-v2-task-tasks.public.js.map +0 -1
- package/build/internal/cjs/src/crm-tasks-v2-task-tasks.types.d.ts +0 -528
- package/build/internal/cjs/src/crm-tasks-v2-task-tasks.types.js +0 -41
- package/build/internal/cjs/src/crm-tasks-v2-task-tasks.types.js.map +0 -1
- package/build/internal/cjs/src/crm-tasks-v2-task-tasks.universal.js +0 -363
- package/build/internal/cjs/src/crm-tasks-v2-task-tasks.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/crm-tasks-v2-task-tasks.context.d.ts +0 -32
- package/build/internal/es/src/crm-tasks-v2-task-tasks.context.js +0 -32
- package/build/internal/es/src/crm-tasks-v2-task-tasks.context.js.map +0 -1
- package/build/internal/es/src/crm-tasks-v2-task-tasks.http.d.ts +0 -47
- package/build/internal/es/src/crm-tasks-v2-task-tasks.http.js +0 -254
- package/build/internal/es/src/crm-tasks-v2-task-tasks.http.js.map +0 -1
- package/build/internal/es/src/crm-tasks-v2-task-tasks.meta.d.ts +0 -27
- package/build/internal/es/src/crm-tasks-v2-task-tasks.meta.js +0 -128
- package/build/internal/es/src/crm-tasks-v2-task-tasks.meta.js.map +0 -1
- package/build/internal/es/src/crm-tasks-v2-task-tasks.public.d.ts +0 -94
- package/build/internal/es/src/crm-tasks-v2-task-tasks.public.js +0 -87
- package/build/internal/es/src/crm-tasks-v2-task-tasks.public.js.map +0 -1
- package/build/internal/es/src/crm-tasks-v2-task-tasks.types.d.ts +0 -528
- package/build/internal/es/src/crm-tasks-v2-task-tasks.types.js +0 -38
- package/build/internal/es/src/crm-tasks-v2-task-tasks.types.js.map +0 -1
- package/build/internal/es/src/crm-tasks-v2-task-tasks.universal.js +0 -330
- package/build/internal/es/src/crm-tasks-v2-task-tasks.universal.js.map +0 -1
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
+
import { T as Task, U as UpdateTask, a as TasksQueryBuilder, C as CountTasksOptions, b as CountTasksResponse, M as MoveTaskAfterOptions } from './crm-tasks-v2-task-tasks.universal-DHOV27KP.mjs';
|
|
3
|
+
export { Y as ActionEvent, a4 as BaseEventMetadata, f as ContactInfo, l as ContactNotFoundError, x as CountTasksRequest, j as CreateTaskRequest, k as CreateTaskResponse, t as CursorPaging, v as CursorPagingMetadata, q as CursorQuery, r as CursorQueryPagingMethodOneOf, w as Cursors, a0 as DeleteCompletedTasksRequest, a1 as DeleteCompletedTasksResponse, D as DeleteTaskRequest, p as DeleteTaskResponse, K as DomainEvent, L as DomainEventBodyOneOf, J as Empty, N as EntityCreatedEvent, X as EntityDeletedEvent, V as EntityUpdatedEvent, a5 as EventMetadata, G as GetTaskRequest, m as GetTaskResponse, _ as IdentificationData, $ as IdentificationDataIdOneOf, Z as MessageEnvelope, F as MoveTaskAfterRequest, H as MoveTaskAfterResponse, P as Paging, E as PagingMetadataV2, y as QueryTasksInternalRequest, B as QueryTasksInternalResponse, Q as QueryTasksRequest, u as QueryTasksResponse, z as QueryV2, A as QueryV2PagingMethodOneOf, R as ReminderType, g as RepositionTask, O as RestoreInfo, a2 as SendTasksReminderRequest, a3 as SendTasksReminderResponse, d as SortOrder, s as Sorting, S as SourceType, i as TaskAssigned, a6 as TaskCreatedEnvelope, a7 as TaskDeletedEnvelope, I as TaskNotFoundError, h as TaskOverdue, a8 as TaskOverdueEnvelope, e as TaskSource, c as TaskStatus, a9 as TaskUpdatedEnvelope, aa as TasksQueryResult, n as UpdateTaskRequest, o as UpdateTaskResponse, W as WebhookIdentityType } from './crm-tasks-v2-task-tasks.universal-DHOV27KP.mjs';
|
|
4
|
+
import { createEventModule } from '@wix/sdk-runtime/event-definition-modules';
|
|
5
|
+
|
|
6
|
+
declare function createTask$1(httpClient: HttpClient): CreateTaskSignature;
|
|
7
|
+
interface CreateTaskSignature {
|
|
8
|
+
/**
|
|
9
|
+
* Creates a new task.
|
|
10
|
+
* @param - Task to create.
|
|
11
|
+
* @returns The created task.
|
|
12
|
+
*/
|
|
13
|
+
(task: Task): Promise<Task>;
|
|
14
|
+
}
|
|
15
|
+
declare function getTask$1(httpClient: HttpClient): GetTaskSignature;
|
|
16
|
+
interface GetTaskSignature {
|
|
17
|
+
/**
|
|
18
|
+
* Retrieves a task by ID.
|
|
19
|
+
* @param - ID of the task to retrieve.
|
|
20
|
+
* @returns The retrieved task.
|
|
21
|
+
*/
|
|
22
|
+
(taskId: string): Promise<Task>;
|
|
23
|
+
}
|
|
24
|
+
declare function updateTask$1(httpClient: HttpClient): UpdateTaskSignature;
|
|
25
|
+
interface UpdateTaskSignature {
|
|
26
|
+
/**
|
|
27
|
+
* Updates a task.
|
|
28
|
+
*
|
|
29
|
+
* Each time the task is updated, `revision` increments by 1.
|
|
30
|
+
* The existing `revision` must be included when updating the task.
|
|
31
|
+
* This ensures you're working with the latest task
|
|
32
|
+
* and prevents unintended overwrites.
|
|
33
|
+
* @param - Task ID.
|
|
34
|
+
* @param - Task to update.
|
|
35
|
+
* @returns The updated task.
|
|
36
|
+
*/
|
|
37
|
+
(_id: string, task: UpdateTask): Promise<Task>;
|
|
38
|
+
}
|
|
39
|
+
declare function deleteTask$1(httpClient: HttpClient): DeleteTaskSignature;
|
|
40
|
+
interface DeleteTaskSignature {
|
|
41
|
+
/**
|
|
42
|
+
* Deletes a task by ID.
|
|
43
|
+
* @param - ID of the task to delete.
|
|
44
|
+
*/
|
|
45
|
+
(taskId: string): Promise<void>;
|
|
46
|
+
}
|
|
47
|
+
declare function queryTasks$1(httpClient: HttpClient): QueryTasksSignature;
|
|
48
|
+
interface QueryTasksSignature {
|
|
49
|
+
/**
|
|
50
|
+
* Creates a query to retrieve a list of tasks.
|
|
51
|
+
*
|
|
52
|
+
* The `queryTasks()` method builds a query to retrieve a list of tasks and returns a `TasksQueryBuilder` object.
|
|
53
|
+
*
|
|
54
|
+
* 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.
|
|
55
|
+
*
|
|
56
|
+
* `queryTasks()` runs with these `TasksQueryBuilder` defaults, which you can override:
|
|
57
|
+
* - `limit(50)`
|
|
58
|
+
* - `descending('_createdDate')`
|
|
59
|
+
*
|
|
60
|
+
* 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.
|
|
61
|
+
*
|
|
62
|
+
* 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`.
|
|
63
|
+
*/
|
|
64
|
+
(): TasksQueryBuilder;
|
|
65
|
+
}
|
|
66
|
+
declare function countTasks$1(httpClient: HttpClient): CountTasksSignature;
|
|
67
|
+
interface CountTasksSignature {
|
|
68
|
+
/**
|
|
69
|
+
* Counts the number of tasks.
|
|
70
|
+
*
|
|
71
|
+
*
|
|
72
|
+
* This method returns the count of all tasks regardless of their `status`.
|
|
73
|
+
*
|
|
74
|
+
* Optionally, you can specify a filter to count only tasks that meet certain criteria.
|
|
75
|
+
* @param - Filtering options.
|
|
76
|
+
*/
|
|
77
|
+
(options?: CountTasksOptions | undefined): Promise<CountTasksResponse>;
|
|
78
|
+
}
|
|
79
|
+
declare function moveTaskAfter$1(httpClient: HttpClient): MoveTaskAfterSignature;
|
|
80
|
+
interface MoveTaskAfterSignature {
|
|
81
|
+
/**
|
|
82
|
+
* Moves a task specified by ID to be placed after another task in the task display.
|
|
83
|
+
*
|
|
84
|
+
* You can reposition a task to be first in the display by omitting `beforeTaskId`.
|
|
85
|
+
* @param - ID of the task to move.
|
|
86
|
+
* @param - Options for moving the task.
|
|
87
|
+
*/
|
|
88
|
+
(taskId: string, options?: MoveTaskAfterOptions | undefined): Promise<void>;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
declare const createTask: MaybeContext<BuildRESTFunction<typeof createTask$1> & typeof createTask$1>;
|
|
92
|
+
declare const getTask: MaybeContext<BuildRESTFunction<typeof getTask$1> & typeof getTask$1>;
|
|
93
|
+
declare const updateTask: MaybeContext<BuildRESTFunction<typeof updateTask$1> & typeof updateTask$1>;
|
|
94
|
+
declare const deleteTask: MaybeContext<BuildRESTFunction<typeof deleteTask$1> & typeof deleteTask$1>;
|
|
95
|
+
declare const queryTasks: MaybeContext<BuildRESTFunction<typeof queryTasks$1> & typeof queryTasks$1>;
|
|
96
|
+
declare const countTasks: MaybeContext<BuildRESTFunction<typeof countTasks$1> & typeof countTasks$1>;
|
|
97
|
+
declare const moveTaskAfter: MaybeContext<BuildRESTFunction<typeof moveTaskAfter$1> & typeof moveTaskAfter$1>;
|
|
98
|
+
/**
|
|
99
|
+
* Triggered when a task is created.
|
|
100
|
+
*/
|
|
101
|
+
declare const onTaskCreated: ReturnType<typeof createEventModule<typeof publicOnTaskCreated>>;
|
|
102
|
+
/**
|
|
103
|
+
* Triggered when a task is deleted.
|
|
104
|
+
*/
|
|
105
|
+
declare const onTaskDeleted: ReturnType<typeof createEventModule<typeof publicOnTaskDeleted>>;
|
|
106
|
+
/**
|
|
107
|
+
* Triggered when a task reaches its due date.
|
|
108
|
+
*/
|
|
109
|
+
declare const onTaskOverdue: ReturnType<typeof createEventModule<typeof publicOnTaskOverdue>>;
|
|
110
|
+
/**
|
|
111
|
+
* Triggered when a task is updated.
|
|
112
|
+
*/
|
|
113
|
+
declare const onTaskUpdated: ReturnType<typeof createEventModule<typeof publicOnTaskUpdated>>;
|
|
114
|
+
|
|
115
|
+
export { CountTasksOptions, CountTasksResponse, MoveTaskAfterOptions, Task, TasksQueryBuilder, UpdateTask, countTasks, createTask, deleteTask, getTask, moveTaskAfter, onTaskCreated, onTaskDeleted, onTaskOverdue, onTaskUpdated, queryTasks, updateTask };
|
package/build/index.d.ts
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
+
import { T as Task, U as UpdateTask, a as TasksQueryBuilder, C as CountTasksOptions, b as CountTasksResponse, M as MoveTaskAfterOptions } from './crm-tasks-v2-task-tasks.universal-DHOV27KP.js';
|
|
3
|
+
export { Y as ActionEvent, a4 as BaseEventMetadata, f as ContactInfo, l as ContactNotFoundError, x as CountTasksRequest, j as CreateTaskRequest, k as CreateTaskResponse, t as CursorPaging, v as CursorPagingMetadata, q as CursorQuery, r as CursorQueryPagingMethodOneOf, w as Cursors, a0 as DeleteCompletedTasksRequest, a1 as DeleteCompletedTasksResponse, D as DeleteTaskRequest, p as DeleteTaskResponse, K as DomainEvent, L as DomainEventBodyOneOf, J as Empty, N as EntityCreatedEvent, X as EntityDeletedEvent, V as EntityUpdatedEvent, a5 as EventMetadata, G as GetTaskRequest, m as GetTaskResponse, _ as IdentificationData, $ as IdentificationDataIdOneOf, Z as MessageEnvelope, F as MoveTaskAfterRequest, H as MoveTaskAfterResponse, P as Paging, E as PagingMetadataV2, y as QueryTasksInternalRequest, B as QueryTasksInternalResponse, Q as QueryTasksRequest, u as QueryTasksResponse, z as QueryV2, A as QueryV2PagingMethodOneOf, R as ReminderType, g as RepositionTask, O as RestoreInfo, a2 as SendTasksReminderRequest, a3 as SendTasksReminderResponse, d as SortOrder, s as Sorting, S as SourceType, i as TaskAssigned, a6 as TaskCreatedEnvelope, a7 as TaskDeletedEnvelope, I as TaskNotFoundError, h as TaskOverdue, a8 as TaskOverdueEnvelope, e as TaskSource, c as TaskStatus, a9 as TaskUpdatedEnvelope, aa as TasksQueryResult, n as UpdateTaskRequest, o as UpdateTaskResponse, W as WebhookIdentityType } from './crm-tasks-v2-task-tasks.universal-DHOV27KP.js';
|
|
4
|
+
import { createEventModule } from '@wix/sdk-runtime/event-definition-modules';
|
|
5
|
+
|
|
6
|
+
declare function createTask$1(httpClient: HttpClient): CreateTaskSignature;
|
|
7
|
+
interface CreateTaskSignature {
|
|
8
|
+
/**
|
|
9
|
+
* Creates a new task.
|
|
10
|
+
* @param - Task to create.
|
|
11
|
+
* @returns The created task.
|
|
12
|
+
*/
|
|
13
|
+
(task: Task): Promise<Task>;
|
|
14
|
+
}
|
|
15
|
+
declare function getTask$1(httpClient: HttpClient): GetTaskSignature;
|
|
16
|
+
interface GetTaskSignature {
|
|
17
|
+
/**
|
|
18
|
+
* Retrieves a task by ID.
|
|
19
|
+
* @param - ID of the task to retrieve.
|
|
20
|
+
* @returns The retrieved task.
|
|
21
|
+
*/
|
|
22
|
+
(taskId: string): Promise<Task>;
|
|
23
|
+
}
|
|
24
|
+
declare function updateTask$1(httpClient: HttpClient): UpdateTaskSignature;
|
|
25
|
+
interface UpdateTaskSignature {
|
|
26
|
+
/**
|
|
27
|
+
* Updates a task.
|
|
28
|
+
*
|
|
29
|
+
* Each time the task is updated, `revision` increments by 1.
|
|
30
|
+
* The existing `revision` must be included when updating the task.
|
|
31
|
+
* This ensures you're working with the latest task
|
|
32
|
+
* and prevents unintended overwrites.
|
|
33
|
+
* @param - Task ID.
|
|
34
|
+
* @param - Task to update.
|
|
35
|
+
* @returns The updated task.
|
|
36
|
+
*/
|
|
37
|
+
(_id: string, task: UpdateTask): Promise<Task>;
|
|
38
|
+
}
|
|
39
|
+
declare function deleteTask$1(httpClient: HttpClient): DeleteTaskSignature;
|
|
40
|
+
interface DeleteTaskSignature {
|
|
41
|
+
/**
|
|
42
|
+
* Deletes a task by ID.
|
|
43
|
+
* @param - ID of the task to delete.
|
|
44
|
+
*/
|
|
45
|
+
(taskId: string): Promise<void>;
|
|
46
|
+
}
|
|
47
|
+
declare function queryTasks$1(httpClient: HttpClient): QueryTasksSignature;
|
|
48
|
+
interface QueryTasksSignature {
|
|
49
|
+
/**
|
|
50
|
+
* Creates a query to retrieve a list of tasks.
|
|
51
|
+
*
|
|
52
|
+
* The `queryTasks()` method builds a query to retrieve a list of tasks and returns a `TasksQueryBuilder` object.
|
|
53
|
+
*
|
|
54
|
+
* 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.
|
|
55
|
+
*
|
|
56
|
+
* `queryTasks()` runs with these `TasksQueryBuilder` defaults, which you can override:
|
|
57
|
+
* - `limit(50)`
|
|
58
|
+
* - `descending('_createdDate')`
|
|
59
|
+
*
|
|
60
|
+
* 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.
|
|
61
|
+
*
|
|
62
|
+
* 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`.
|
|
63
|
+
*/
|
|
64
|
+
(): TasksQueryBuilder;
|
|
65
|
+
}
|
|
66
|
+
declare function countTasks$1(httpClient: HttpClient): CountTasksSignature;
|
|
67
|
+
interface CountTasksSignature {
|
|
68
|
+
/**
|
|
69
|
+
* Counts the number of tasks.
|
|
70
|
+
*
|
|
71
|
+
*
|
|
72
|
+
* This method returns the count of all tasks regardless of their `status`.
|
|
73
|
+
*
|
|
74
|
+
* Optionally, you can specify a filter to count only tasks that meet certain criteria.
|
|
75
|
+
* @param - Filtering options.
|
|
76
|
+
*/
|
|
77
|
+
(options?: CountTasksOptions | undefined): Promise<CountTasksResponse>;
|
|
78
|
+
}
|
|
79
|
+
declare function moveTaskAfter$1(httpClient: HttpClient): MoveTaskAfterSignature;
|
|
80
|
+
interface MoveTaskAfterSignature {
|
|
81
|
+
/**
|
|
82
|
+
* Moves a task specified by ID to be placed after another task in the task display.
|
|
83
|
+
*
|
|
84
|
+
* You can reposition a task to be first in the display by omitting `beforeTaskId`.
|
|
85
|
+
* @param - ID of the task to move.
|
|
86
|
+
* @param - Options for moving the task.
|
|
87
|
+
*/
|
|
88
|
+
(taskId: string, options?: MoveTaskAfterOptions | undefined): Promise<void>;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
declare const createTask: MaybeContext<BuildRESTFunction<typeof createTask$1> & typeof createTask$1>;
|
|
92
|
+
declare const getTask: MaybeContext<BuildRESTFunction<typeof getTask$1> & typeof getTask$1>;
|
|
93
|
+
declare const updateTask: MaybeContext<BuildRESTFunction<typeof updateTask$1> & typeof updateTask$1>;
|
|
94
|
+
declare const deleteTask: MaybeContext<BuildRESTFunction<typeof deleteTask$1> & typeof deleteTask$1>;
|
|
95
|
+
declare const queryTasks: MaybeContext<BuildRESTFunction<typeof queryTasks$1> & typeof queryTasks$1>;
|
|
96
|
+
declare const countTasks: MaybeContext<BuildRESTFunction<typeof countTasks$1> & typeof countTasks$1>;
|
|
97
|
+
declare const moveTaskAfter: MaybeContext<BuildRESTFunction<typeof moveTaskAfter$1> & typeof moveTaskAfter$1>;
|
|
98
|
+
/**
|
|
99
|
+
* Triggered when a task is created.
|
|
100
|
+
*/
|
|
101
|
+
declare const onTaskCreated: ReturnType<typeof createEventModule<typeof publicOnTaskCreated>>;
|
|
102
|
+
/**
|
|
103
|
+
* Triggered when a task is deleted.
|
|
104
|
+
*/
|
|
105
|
+
declare const onTaskDeleted: ReturnType<typeof createEventModule<typeof publicOnTaskDeleted>>;
|
|
106
|
+
/**
|
|
107
|
+
* Triggered when a task reaches its due date.
|
|
108
|
+
*/
|
|
109
|
+
declare const onTaskOverdue: ReturnType<typeof createEventModule<typeof publicOnTaskOverdue>>;
|
|
110
|
+
/**
|
|
111
|
+
* Triggered when a task is updated.
|
|
112
|
+
*/
|
|
113
|
+
declare const onTaskUpdated: ReturnType<typeof createEventModule<typeof publicOnTaskUpdated>>;
|
|
114
|
+
|
|
115
|
+
export { CountTasksOptions, CountTasksResponse, MoveTaskAfterOptions, Task, TasksQueryBuilder, UpdateTask, countTasks, createTask, deleteTask, getTask, moveTaskAfter, onTaskCreated, onTaskDeleted, onTaskOverdue, onTaskUpdated, queryTasks, updateTask };
|