@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
package/build/meta.d.mts
ADDED
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
import { j as CreateTaskRequest$1, k as CreateTaskResponse$1, G as GetTaskRequest$1, m as GetTaskResponse$1, n as UpdateTaskRequest$1, o as UpdateTaskResponse$1, D as DeleteTaskRequest$1, p as DeleteTaskResponse$1, Q as QueryTasksRequest$1, u as QueryTasksResponse$1, x as CountTasksRequest$1, b as CountTasksResponse$1, F as MoveTaskAfterRequest$1, H as MoveTaskAfterResponse$1 } from './crm-tasks-v2-task-tasks.universal-DHOV27KP.mjs';
|
|
2
|
+
|
|
3
|
+
interface Task {
|
|
4
|
+
/**
|
|
5
|
+
* Task ID.
|
|
6
|
+
* @format GUID
|
|
7
|
+
* @readonly
|
|
8
|
+
*/
|
|
9
|
+
id?: string | null;
|
|
10
|
+
/**
|
|
11
|
+
* 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.
|
|
12
|
+
* @readonly
|
|
13
|
+
*/
|
|
14
|
+
revision?: string | null;
|
|
15
|
+
/**
|
|
16
|
+
* Title of the task.
|
|
17
|
+
* @minLength 1
|
|
18
|
+
* @maxLength 250
|
|
19
|
+
*/
|
|
20
|
+
title?: string | null;
|
|
21
|
+
/**
|
|
22
|
+
* Description of the task.
|
|
23
|
+
* @minLength 1
|
|
24
|
+
* @maxLength 500
|
|
25
|
+
*/
|
|
26
|
+
description?: string | null;
|
|
27
|
+
/**
|
|
28
|
+
* Date and time the task was created.
|
|
29
|
+
* @readonly
|
|
30
|
+
*/
|
|
31
|
+
createdDate?: Date | null;
|
|
32
|
+
/**
|
|
33
|
+
* Date and time the task was last updated.
|
|
34
|
+
* @readonly
|
|
35
|
+
*/
|
|
36
|
+
updatedDate?: Date | null;
|
|
37
|
+
/** Due date for the task. */
|
|
38
|
+
dueDate?: Date | null;
|
|
39
|
+
/**
|
|
40
|
+
* Status of the task.
|
|
41
|
+
*
|
|
42
|
+
* Default: `ACTION_NEEDED`
|
|
43
|
+
*/
|
|
44
|
+
status?: TaskStatus;
|
|
45
|
+
/** Details about the task source. */
|
|
46
|
+
source?: TaskSource;
|
|
47
|
+
/** Information about the contact associated with the task. */
|
|
48
|
+
contact?: ContactInfo;
|
|
49
|
+
}
|
|
50
|
+
/** Possible statuses in which the task may be. */
|
|
51
|
+
declare enum TaskStatus {
|
|
52
|
+
/** Action needed. */
|
|
53
|
+
ACTION_NEEDED = "ACTION_NEEDED",
|
|
54
|
+
/** Task completed. */
|
|
55
|
+
COMPLETED = "COMPLETED"
|
|
56
|
+
}
|
|
57
|
+
interface TaskSource {
|
|
58
|
+
/**
|
|
59
|
+
* How the task was created.
|
|
60
|
+
* @readonly
|
|
61
|
+
*/
|
|
62
|
+
sourceType?: SourceType;
|
|
63
|
+
/**
|
|
64
|
+
* App ID, if the task was created by an app.
|
|
65
|
+
* @format GUID
|
|
66
|
+
* @readonly
|
|
67
|
+
*/
|
|
68
|
+
appId?: string | null;
|
|
69
|
+
/**
|
|
70
|
+
* User ID, if the task was created by a Wix user.
|
|
71
|
+
* @format GUID
|
|
72
|
+
* @readonly
|
|
73
|
+
*/
|
|
74
|
+
userId?: string | null;
|
|
75
|
+
}
|
|
76
|
+
/** Possible sources that can create tasks. */
|
|
77
|
+
declare enum SourceType {
|
|
78
|
+
/** Task was created by an app. */
|
|
79
|
+
APP = "APP",
|
|
80
|
+
/** Task was created by a Wix user. */
|
|
81
|
+
USER = "USER"
|
|
82
|
+
}
|
|
83
|
+
interface ContactInfo {
|
|
84
|
+
/**
|
|
85
|
+
* ID of the contact associated with the task.
|
|
86
|
+
* @format GUID
|
|
87
|
+
*/
|
|
88
|
+
id?: string | null;
|
|
89
|
+
/**
|
|
90
|
+
* Contact's first name.
|
|
91
|
+
* @readonly
|
|
92
|
+
*/
|
|
93
|
+
firstName?: string | null;
|
|
94
|
+
/**
|
|
95
|
+
* Contact's last name.
|
|
96
|
+
* @readonly
|
|
97
|
+
*/
|
|
98
|
+
lastName?: string | null;
|
|
99
|
+
/**
|
|
100
|
+
* Contact's image URL.
|
|
101
|
+
* @readonly
|
|
102
|
+
*/
|
|
103
|
+
imageUrl?: string | null;
|
|
104
|
+
/**
|
|
105
|
+
* Contact's primary email.
|
|
106
|
+
* @readonly
|
|
107
|
+
*/
|
|
108
|
+
email?: string | null;
|
|
109
|
+
/**
|
|
110
|
+
* Contact's primary phone.
|
|
111
|
+
* @readonly
|
|
112
|
+
*/
|
|
113
|
+
phone?: string | null;
|
|
114
|
+
}
|
|
115
|
+
interface CreateTaskRequest {
|
|
116
|
+
/** Task to create. */
|
|
117
|
+
task: Task;
|
|
118
|
+
}
|
|
119
|
+
interface CreateTaskResponse {
|
|
120
|
+
/** The created task. */
|
|
121
|
+
task?: Task;
|
|
122
|
+
}
|
|
123
|
+
interface GetTaskRequest {
|
|
124
|
+
/**
|
|
125
|
+
* ID of the task to retrieve.
|
|
126
|
+
* @format GUID
|
|
127
|
+
*/
|
|
128
|
+
taskId: string;
|
|
129
|
+
}
|
|
130
|
+
interface GetTaskResponse {
|
|
131
|
+
/** The retrieved task. */
|
|
132
|
+
task?: Task;
|
|
133
|
+
}
|
|
134
|
+
interface UpdateTaskRequest {
|
|
135
|
+
/** Task to update. */
|
|
136
|
+
task: Task;
|
|
137
|
+
}
|
|
138
|
+
interface UpdateTaskResponse {
|
|
139
|
+
/** The updated task. */
|
|
140
|
+
task?: Task;
|
|
141
|
+
}
|
|
142
|
+
interface DeleteTaskRequest {
|
|
143
|
+
/**
|
|
144
|
+
* ID of the task to delete.
|
|
145
|
+
* @format GUID
|
|
146
|
+
*/
|
|
147
|
+
taskId: string;
|
|
148
|
+
}
|
|
149
|
+
interface DeleteTaskResponse {
|
|
150
|
+
}
|
|
151
|
+
interface QueryTasksRequest {
|
|
152
|
+
/** Query options. */
|
|
153
|
+
query?: CursorQuery;
|
|
154
|
+
}
|
|
155
|
+
interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
156
|
+
/** 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`. */
|
|
157
|
+
cursorPaging?: CursorPaging;
|
|
158
|
+
/**
|
|
159
|
+
* Filter object in the following format:
|
|
160
|
+
* `"filter" : {
|
|
161
|
+
* "fieldName1": "value1",
|
|
162
|
+
* "fieldName2":{"$operator":"value2"}
|
|
163
|
+
* }`
|
|
164
|
+
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
|
165
|
+
*/
|
|
166
|
+
filter?: Record<string, any> | null;
|
|
167
|
+
/**
|
|
168
|
+
* Sort object in the following format:
|
|
169
|
+
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
170
|
+
*/
|
|
171
|
+
sort?: Sorting[];
|
|
172
|
+
}
|
|
173
|
+
/** @oneof */
|
|
174
|
+
interface CursorQueryPagingMethodOneOf {
|
|
175
|
+
/** 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`. */
|
|
176
|
+
cursorPaging?: CursorPaging;
|
|
177
|
+
}
|
|
178
|
+
interface Sorting {
|
|
179
|
+
/** Name of the field to sort by. */
|
|
180
|
+
fieldName?: string;
|
|
181
|
+
/** Sort order. */
|
|
182
|
+
order?: SortOrder;
|
|
183
|
+
}
|
|
184
|
+
declare enum SortOrder {
|
|
185
|
+
/** Sort by ascending order. */
|
|
186
|
+
ASC = "ASC",
|
|
187
|
+
/** Sort by descending order. */
|
|
188
|
+
DESC = "DESC"
|
|
189
|
+
}
|
|
190
|
+
interface CursorPaging {
|
|
191
|
+
/**
|
|
192
|
+
* Number of items to load.
|
|
193
|
+
* @max 1000
|
|
194
|
+
*/
|
|
195
|
+
limit?: number | null;
|
|
196
|
+
/**
|
|
197
|
+
* Pointer to the next or previous page in the list of results.
|
|
198
|
+
*
|
|
199
|
+
* You can get the relevant cursor token
|
|
200
|
+
* from the `pagingMetadata` object in the previous call's response.
|
|
201
|
+
* Not relevant for the first request.
|
|
202
|
+
*/
|
|
203
|
+
cursor?: string | null;
|
|
204
|
+
}
|
|
205
|
+
interface QueryTasksResponse {
|
|
206
|
+
/** The retrieved tasks. */
|
|
207
|
+
tasks?: Task[];
|
|
208
|
+
/** Paging metadata. */
|
|
209
|
+
pagingMetadata?: CursorPagingMetadata;
|
|
210
|
+
}
|
|
211
|
+
interface CursorPagingMetadata {
|
|
212
|
+
/** Number of items returned in the response. */
|
|
213
|
+
count?: number | null;
|
|
214
|
+
/** Offset that was requested. */
|
|
215
|
+
cursors?: Cursors;
|
|
216
|
+
/**
|
|
217
|
+
* Indicates if there are more results after the current page.
|
|
218
|
+
* If `true`, another page of results can be retrieved.
|
|
219
|
+
* If `false`, this is the last page.
|
|
220
|
+
*/
|
|
221
|
+
hasNext?: boolean | null;
|
|
222
|
+
}
|
|
223
|
+
interface Cursors {
|
|
224
|
+
/** Cursor pointing to next page in the list of results. */
|
|
225
|
+
next?: string | null;
|
|
226
|
+
/** Cursor pointing to previous page in the list of results. */
|
|
227
|
+
prev?: string | null;
|
|
228
|
+
}
|
|
229
|
+
interface CountTasksRequest {
|
|
230
|
+
/**
|
|
231
|
+
* Filter which tasks to count. See supported filters ([REST](https://dev.wix.com/docs/rest/api-reference/crm/tasks/task-v2/filter-and-sort)| [SDK](https://dev.wix.com/docs/sdk/backend-modules/crm/tasks/query-tasks)).
|
|
232
|
+
*
|
|
233
|
+
* Filter tasks in the following format:
|
|
234
|
+
*
|
|
235
|
+
* `"filter" : {
|
|
236
|
+
* "fieldName1": "value1",
|
|
237
|
+
* "fieldName2":{"$operator":"value2"}
|
|
238
|
+
* }`
|
|
239
|
+
*
|
|
240
|
+
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`.
|
|
241
|
+
*/
|
|
242
|
+
filter?: Record<string, any> | null;
|
|
243
|
+
}
|
|
244
|
+
interface CountTasksResponse {
|
|
245
|
+
/** The number of tasks that match the specified filter. */
|
|
246
|
+
count?: number;
|
|
247
|
+
}
|
|
248
|
+
interface MoveTaskAfterRequest {
|
|
249
|
+
/**
|
|
250
|
+
* ID of the task to move.
|
|
251
|
+
* @format GUID
|
|
252
|
+
*/
|
|
253
|
+
taskId: string;
|
|
254
|
+
/**
|
|
255
|
+
* The ID of the task after which the moved task is positioned in the task display.
|
|
256
|
+
* If `beforeTaskId` is not specified, the moved task is positioned first in the task display.
|
|
257
|
+
* @format GUID
|
|
258
|
+
*/
|
|
259
|
+
beforeTaskId?: string | null;
|
|
260
|
+
}
|
|
261
|
+
interface MoveTaskAfterResponse {
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
265
|
+
getUrl: (context: any) => string;
|
|
266
|
+
httpMethod: K;
|
|
267
|
+
path: string;
|
|
268
|
+
pathParams: M;
|
|
269
|
+
__requestType: T;
|
|
270
|
+
__originalRequestType: S;
|
|
271
|
+
__responseType: Q;
|
|
272
|
+
__originalResponseType: R;
|
|
273
|
+
};
|
|
274
|
+
declare function createTask(): __PublicMethodMetaInfo<'POST', {}, CreateTaskRequest$1, CreateTaskRequest, CreateTaskResponse$1, CreateTaskResponse>;
|
|
275
|
+
declare function getTask(): __PublicMethodMetaInfo<'GET', {
|
|
276
|
+
taskId: string;
|
|
277
|
+
}, GetTaskRequest$1, GetTaskRequest, GetTaskResponse$1, GetTaskResponse>;
|
|
278
|
+
declare function updateTask(): __PublicMethodMetaInfo<'PATCH', {
|
|
279
|
+
taskId: string;
|
|
280
|
+
}, UpdateTaskRequest$1, UpdateTaskRequest, UpdateTaskResponse$1, UpdateTaskResponse>;
|
|
281
|
+
declare function deleteTask(): __PublicMethodMetaInfo<'DELETE', {
|
|
282
|
+
taskId: string;
|
|
283
|
+
}, DeleteTaskRequest$1, DeleteTaskRequest, DeleteTaskResponse$1, DeleteTaskResponse>;
|
|
284
|
+
declare function queryTasks(): __PublicMethodMetaInfo<'POST', {}, QueryTasksRequest$1, QueryTasksRequest, QueryTasksResponse$1, QueryTasksResponse>;
|
|
285
|
+
declare function countTasks(): __PublicMethodMetaInfo<'POST', {}, CountTasksRequest$1, CountTasksRequest, CountTasksResponse$1, CountTasksResponse>;
|
|
286
|
+
declare function moveTaskAfter(): __PublicMethodMetaInfo<'POST', {
|
|
287
|
+
taskId: string;
|
|
288
|
+
}, MoveTaskAfterRequest$1, MoveTaskAfterRequest, MoveTaskAfterResponse$1, MoveTaskAfterResponse>;
|
|
289
|
+
|
|
290
|
+
export { type __PublicMethodMetaInfo, countTasks, createTask, deleteTask, getTask, moveTaskAfter, queryTasks, updateTask };
|
package/build/meta.d.ts
ADDED
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
import { j as CreateTaskRequest$1, k as CreateTaskResponse$1, G as GetTaskRequest$1, m as GetTaskResponse$1, n as UpdateTaskRequest$1, o as UpdateTaskResponse$1, D as DeleteTaskRequest$1, p as DeleteTaskResponse$1, Q as QueryTasksRequest$1, u as QueryTasksResponse$1, x as CountTasksRequest$1, b as CountTasksResponse$1, F as MoveTaskAfterRequest$1, H as MoveTaskAfterResponse$1 } from './crm-tasks-v2-task-tasks.universal-DHOV27KP.js';
|
|
2
|
+
|
|
3
|
+
interface Task {
|
|
4
|
+
/**
|
|
5
|
+
* Task ID.
|
|
6
|
+
* @format GUID
|
|
7
|
+
* @readonly
|
|
8
|
+
*/
|
|
9
|
+
id?: string | null;
|
|
10
|
+
/**
|
|
11
|
+
* 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.
|
|
12
|
+
* @readonly
|
|
13
|
+
*/
|
|
14
|
+
revision?: string | null;
|
|
15
|
+
/**
|
|
16
|
+
* Title of the task.
|
|
17
|
+
* @minLength 1
|
|
18
|
+
* @maxLength 250
|
|
19
|
+
*/
|
|
20
|
+
title?: string | null;
|
|
21
|
+
/**
|
|
22
|
+
* Description of the task.
|
|
23
|
+
* @minLength 1
|
|
24
|
+
* @maxLength 500
|
|
25
|
+
*/
|
|
26
|
+
description?: string | null;
|
|
27
|
+
/**
|
|
28
|
+
* Date and time the task was created.
|
|
29
|
+
* @readonly
|
|
30
|
+
*/
|
|
31
|
+
createdDate?: Date | null;
|
|
32
|
+
/**
|
|
33
|
+
* Date and time the task was last updated.
|
|
34
|
+
* @readonly
|
|
35
|
+
*/
|
|
36
|
+
updatedDate?: Date | null;
|
|
37
|
+
/** Due date for the task. */
|
|
38
|
+
dueDate?: Date | null;
|
|
39
|
+
/**
|
|
40
|
+
* Status of the task.
|
|
41
|
+
*
|
|
42
|
+
* Default: `ACTION_NEEDED`
|
|
43
|
+
*/
|
|
44
|
+
status?: TaskStatus;
|
|
45
|
+
/** Details about the task source. */
|
|
46
|
+
source?: TaskSource;
|
|
47
|
+
/** Information about the contact associated with the task. */
|
|
48
|
+
contact?: ContactInfo;
|
|
49
|
+
}
|
|
50
|
+
/** Possible statuses in which the task may be. */
|
|
51
|
+
declare enum TaskStatus {
|
|
52
|
+
/** Action needed. */
|
|
53
|
+
ACTION_NEEDED = "ACTION_NEEDED",
|
|
54
|
+
/** Task completed. */
|
|
55
|
+
COMPLETED = "COMPLETED"
|
|
56
|
+
}
|
|
57
|
+
interface TaskSource {
|
|
58
|
+
/**
|
|
59
|
+
* How the task was created.
|
|
60
|
+
* @readonly
|
|
61
|
+
*/
|
|
62
|
+
sourceType?: SourceType;
|
|
63
|
+
/**
|
|
64
|
+
* App ID, if the task was created by an app.
|
|
65
|
+
* @format GUID
|
|
66
|
+
* @readonly
|
|
67
|
+
*/
|
|
68
|
+
appId?: string | null;
|
|
69
|
+
/**
|
|
70
|
+
* User ID, if the task was created by a Wix user.
|
|
71
|
+
* @format GUID
|
|
72
|
+
* @readonly
|
|
73
|
+
*/
|
|
74
|
+
userId?: string | null;
|
|
75
|
+
}
|
|
76
|
+
/** Possible sources that can create tasks. */
|
|
77
|
+
declare enum SourceType {
|
|
78
|
+
/** Task was created by an app. */
|
|
79
|
+
APP = "APP",
|
|
80
|
+
/** Task was created by a Wix user. */
|
|
81
|
+
USER = "USER"
|
|
82
|
+
}
|
|
83
|
+
interface ContactInfo {
|
|
84
|
+
/**
|
|
85
|
+
* ID of the contact associated with the task.
|
|
86
|
+
* @format GUID
|
|
87
|
+
*/
|
|
88
|
+
id?: string | null;
|
|
89
|
+
/**
|
|
90
|
+
* Contact's first name.
|
|
91
|
+
* @readonly
|
|
92
|
+
*/
|
|
93
|
+
firstName?: string | null;
|
|
94
|
+
/**
|
|
95
|
+
* Contact's last name.
|
|
96
|
+
* @readonly
|
|
97
|
+
*/
|
|
98
|
+
lastName?: string | null;
|
|
99
|
+
/**
|
|
100
|
+
* Contact's image URL.
|
|
101
|
+
* @readonly
|
|
102
|
+
*/
|
|
103
|
+
imageUrl?: string | null;
|
|
104
|
+
/**
|
|
105
|
+
* Contact's primary email.
|
|
106
|
+
* @readonly
|
|
107
|
+
*/
|
|
108
|
+
email?: string | null;
|
|
109
|
+
/**
|
|
110
|
+
* Contact's primary phone.
|
|
111
|
+
* @readonly
|
|
112
|
+
*/
|
|
113
|
+
phone?: string | null;
|
|
114
|
+
}
|
|
115
|
+
interface CreateTaskRequest {
|
|
116
|
+
/** Task to create. */
|
|
117
|
+
task: Task;
|
|
118
|
+
}
|
|
119
|
+
interface CreateTaskResponse {
|
|
120
|
+
/** The created task. */
|
|
121
|
+
task?: Task;
|
|
122
|
+
}
|
|
123
|
+
interface GetTaskRequest {
|
|
124
|
+
/**
|
|
125
|
+
* ID of the task to retrieve.
|
|
126
|
+
* @format GUID
|
|
127
|
+
*/
|
|
128
|
+
taskId: string;
|
|
129
|
+
}
|
|
130
|
+
interface GetTaskResponse {
|
|
131
|
+
/** The retrieved task. */
|
|
132
|
+
task?: Task;
|
|
133
|
+
}
|
|
134
|
+
interface UpdateTaskRequest {
|
|
135
|
+
/** Task to update. */
|
|
136
|
+
task: Task;
|
|
137
|
+
}
|
|
138
|
+
interface UpdateTaskResponse {
|
|
139
|
+
/** The updated task. */
|
|
140
|
+
task?: Task;
|
|
141
|
+
}
|
|
142
|
+
interface DeleteTaskRequest {
|
|
143
|
+
/**
|
|
144
|
+
* ID of the task to delete.
|
|
145
|
+
* @format GUID
|
|
146
|
+
*/
|
|
147
|
+
taskId: string;
|
|
148
|
+
}
|
|
149
|
+
interface DeleteTaskResponse {
|
|
150
|
+
}
|
|
151
|
+
interface QueryTasksRequest {
|
|
152
|
+
/** Query options. */
|
|
153
|
+
query?: CursorQuery;
|
|
154
|
+
}
|
|
155
|
+
interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
156
|
+
/** 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`. */
|
|
157
|
+
cursorPaging?: CursorPaging;
|
|
158
|
+
/**
|
|
159
|
+
* Filter object in the following format:
|
|
160
|
+
* `"filter" : {
|
|
161
|
+
* "fieldName1": "value1",
|
|
162
|
+
* "fieldName2":{"$operator":"value2"}
|
|
163
|
+
* }`
|
|
164
|
+
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
|
165
|
+
*/
|
|
166
|
+
filter?: Record<string, any> | null;
|
|
167
|
+
/**
|
|
168
|
+
* Sort object in the following format:
|
|
169
|
+
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
170
|
+
*/
|
|
171
|
+
sort?: Sorting[];
|
|
172
|
+
}
|
|
173
|
+
/** @oneof */
|
|
174
|
+
interface CursorQueryPagingMethodOneOf {
|
|
175
|
+
/** 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`. */
|
|
176
|
+
cursorPaging?: CursorPaging;
|
|
177
|
+
}
|
|
178
|
+
interface Sorting {
|
|
179
|
+
/** Name of the field to sort by. */
|
|
180
|
+
fieldName?: string;
|
|
181
|
+
/** Sort order. */
|
|
182
|
+
order?: SortOrder;
|
|
183
|
+
}
|
|
184
|
+
declare enum SortOrder {
|
|
185
|
+
/** Sort by ascending order. */
|
|
186
|
+
ASC = "ASC",
|
|
187
|
+
/** Sort by descending order. */
|
|
188
|
+
DESC = "DESC"
|
|
189
|
+
}
|
|
190
|
+
interface CursorPaging {
|
|
191
|
+
/**
|
|
192
|
+
* Number of items to load.
|
|
193
|
+
* @max 1000
|
|
194
|
+
*/
|
|
195
|
+
limit?: number | null;
|
|
196
|
+
/**
|
|
197
|
+
* Pointer to the next or previous page in the list of results.
|
|
198
|
+
*
|
|
199
|
+
* You can get the relevant cursor token
|
|
200
|
+
* from the `pagingMetadata` object in the previous call's response.
|
|
201
|
+
* Not relevant for the first request.
|
|
202
|
+
*/
|
|
203
|
+
cursor?: string | null;
|
|
204
|
+
}
|
|
205
|
+
interface QueryTasksResponse {
|
|
206
|
+
/** The retrieved tasks. */
|
|
207
|
+
tasks?: Task[];
|
|
208
|
+
/** Paging metadata. */
|
|
209
|
+
pagingMetadata?: CursorPagingMetadata;
|
|
210
|
+
}
|
|
211
|
+
interface CursorPagingMetadata {
|
|
212
|
+
/** Number of items returned in the response. */
|
|
213
|
+
count?: number | null;
|
|
214
|
+
/** Offset that was requested. */
|
|
215
|
+
cursors?: Cursors;
|
|
216
|
+
/**
|
|
217
|
+
* Indicates if there are more results after the current page.
|
|
218
|
+
* If `true`, another page of results can be retrieved.
|
|
219
|
+
* If `false`, this is the last page.
|
|
220
|
+
*/
|
|
221
|
+
hasNext?: boolean | null;
|
|
222
|
+
}
|
|
223
|
+
interface Cursors {
|
|
224
|
+
/** Cursor pointing to next page in the list of results. */
|
|
225
|
+
next?: string | null;
|
|
226
|
+
/** Cursor pointing to previous page in the list of results. */
|
|
227
|
+
prev?: string | null;
|
|
228
|
+
}
|
|
229
|
+
interface CountTasksRequest {
|
|
230
|
+
/**
|
|
231
|
+
* Filter which tasks to count. See supported filters ([REST](https://dev.wix.com/docs/rest/api-reference/crm/tasks/task-v2/filter-and-sort)| [SDK](https://dev.wix.com/docs/sdk/backend-modules/crm/tasks/query-tasks)).
|
|
232
|
+
*
|
|
233
|
+
* Filter tasks in the following format:
|
|
234
|
+
*
|
|
235
|
+
* `"filter" : {
|
|
236
|
+
* "fieldName1": "value1",
|
|
237
|
+
* "fieldName2":{"$operator":"value2"}
|
|
238
|
+
* }`
|
|
239
|
+
*
|
|
240
|
+
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`.
|
|
241
|
+
*/
|
|
242
|
+
filter?: Record<string, any> | null;
|
|
243
|
+
}
|
|
244
|
+
interface CountTasksResponse {
|
|
245
|
+
/** The number of tasks that match the specified filter. */
|
|
246
|
+
count?: number;
|
|
247
|
+
}
|
|
248
|
+
interface MoveTaskAfterRequest {
|
|
249
|
+
/**
|
|
250
|
+
* ID of the task to move.
|
|
251
|
+
* @format GUID
|
|
252
|
+
*/
|
|
253
|
+
taskId: string;
|
|
254
|
+
/**
|
|
255
|
+
* The ID of the task after which the moved task is positioned in the task display.
|
|
256
|
+
* If `beforeTaskId` is not specified, the moved task is positioned first in the task display.
|
|
257
|
+
* @format GUID
|
|
258
|
+
*/
|
|
259
|
+
beforeTaskId?: string | null;
|
|
260
|
+
}
|
|
261
|
+
interface MoveTaskAfterResponse {
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
265
|
+
getUrl: (context: any) => string;
|
|
266
|
+
httpMethod: K;
|
|
267
|
+
path: string;
|
|
268
|
+
pathParams: M;
|
|
269
|
+
__requestType: T;
|
|
270
|
+
__originalRequestType: S;
|
|
271
|
+
__responseType: Q;
|
|
272
|
+
__originalResponseType: R;
|
|
273
|
+
};
|
|
274
|
+
declare function createTask(): __PublicMethodMetaInfo<'POST', {}, CreateTaskRequest$1, CreateTaskRequest, CreateTaskResponse$1, CreateTaskResponse>;
|
|
275
|
+
declare function getTask(): __PublicMethodMetaInfo<'GET', {
|
|
276
|
+
taskId: string;
|
|
277
|
+
}, GetTaskRequest$1, GetTaskRequest, GetTaskResponse$1, GetTaskResponse>;
|
|
278
|
+
declare function updateTask(): __PublicMethodMetaInfo<'PATCH', {
|
|
279
|
+
taskId: string;
|
|
280
|
+
}, UpdateTaskRequest$1, UpdateTaskRequest, UpdateTaskResponse$1, UpdateTaskResponse>;
|
|
281
|
+
declare function deleteTask(): __PublicMethodMetaInfo<'DELETE', {
|
|
282
|
+
taskId: string;
|
|
283
|
+
}, DeleteTaskRequest$1, DeleteTaskRequest, DeleteTaskResponse$1, DeleteTaskResponse>;
|
|
284
|
+
declare function queryTasks(): __PublicMethodMetaInfo<'POST', {}, QueryTasksRequest$1, QueryTasksRequest, QueryTasksResponse$1, QueryTasksResponse>;
|
|
285
|
+
declare function countTasks(): __PublicMethodMetaInfo<'POST', {}, CountTasksRequest$1, CountTasksRequest, CountTasksResponse$1, CountTasksResponse>;
|
|
286
|
+
declare function moveTaskAfter(): __PublicMethodMetaInfo<'POST', {
|
|
287
|
+
taskId: string;
|
|
288
|
+
}, MoveTaskAfterRequest$1, MoveTaskAfterRequest, MoveTaskAfterResponse$1, MoveTaskAfterResponse>;
|
|
289
|
+
|
|
290
|
+
export { type __PublicMethodMetaInfo, countTasks, createTask, deleteTask, getTask, moveTaskAfter, queryTasks, updateTask };
|