@wix/auto_sdk_crm_tasks 1.0.0
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/cjs/index.d.ts +1 -0
- package/build/cjs/index.js +18 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +18 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1 -0
- package/build/cjs/meta.js +18 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/src/crm-tasks-v2-task-tasks.context.d.ts +32 -0
- package/build/cjs/src/crm-tasks-v2-task-tasks.context.js +40 -0
- package/build/cjs/src/crm-tasks-v2-task-tasks.context.js.map +1 -0
- package/build/cjs/src/crm-tasks-v2-task-tasks.http.d.ts +58 -0
- package/build/cjs/src/crm-tasks-v2-task-tasks.http.js +275 -0
- package/build/cjs/src/crm-tasks-v2-task-tasks.http.js.map +1 -0
- package/build/cjs/src/crm-tasks-v2-task-tasks.meta.d.ts +27 -0
- package/build/cjs/src/crm-tasks-v2-task-tasks.meta.js +161 -0
- package/build/cjs/src/crm-tasks-v2-task-tasks.meta.js.map +1 -0
- package/build/cjs/src/crm-tasks-v2-task-tasks.public.d.ts +103 -0
- package/build/cjs/src/crm-tasks-v2-task-tasks.public.js +102 -0
- package/build/cjs/src/crm-tasks-v2-task-tasks.public.js.map +1 -0
- package/build/cjs/src/crm-tasks-v2-task-tasks.types.d.ts +473 -0
- package/build/cjs/src/crm-tasks-v2-task-tasks.types.js +41 -0
- package/build/cjs/src/crm-tasks-v2-task-tasks.types.js.map +1 -0
- package/build/cjs/src/crm-tasks-v2-task-tasks.universal.d.ts +811 -0
- package/build/cjs/src/crm-tasks-v2-task-tasks.universal.js +372 -0
- package/build/cjs/src/crm-tasks-v2-task-tasks.universal.js.map +1 -0
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +2 -0
- package/build/es/index.js.map +1 -0
- package/build/es/index.typings.d.ts +1 -0
- package/build/es/index.typings.js +2 -0
- package/build/es/index.typings.js.map +1 -0
- package/build/es/meta.d.ts +1 -0
- package/build/es/meta.js +2 -0
- package/build/es/meta.js.map +1 -0
- package/build/es/package.json +3 -0
- package/build/es/src/crm-tasks-v2-task-tasks.context.d.ts +32 -0
- package/build/es/src/crm-tasks-v2-task-tasks.context.js +32 -0
- package/build/es/src/crm-tasks-v2-task-tasks.context.js.map +1 -0
- package/build/es/src/crm-tasks-v2-task-tasks.http.d.ts +58 -0
- package/build/es/src/crm-tasks-v2-task-tasks.http.js +265 -0
- package/build/es/src/crm-tasks-v2-task-tasks.http.js.map +1 -0
- package/build/es/src/crm-tasks-v2-task-tasks.meta.d.ts +27 -0
- package/build/es/src/crm-tasks-v2-task-tasks.meta.js +128 -0
- package/build/es/src/crm-tasks-v2-task-tasks.meta.js.map +1 -0
- package/build/es/src/crm-tasks-v2-task-tasks.public.d.ts +103 -0
- package/build/es/src/crm-tasks-v2-task-tasks.public.js +87 -0
- package/build/es/src/crm-tasks-v2-task-tasks.public.js.map +1 -0
- package/build/es/src/crm-tasks-v2-task-tasks.types.d.ts +473 -0
- package/build/es/src/crm-tasks-v2-task-tasks.types.js +38 -0
- package/build/es/src/crm-tasks-v2-task-tasks.types.js.map +1 -0
- package/build/es/src/crm-tasks-v2-task-tasks.universal.d.ts +811 -0
- package/build/es/src/crm-tasks-v2-task-tasks.universal.js +339 -0
- package/build/es/src/crm-tasks-v2-task-tasks.universal.js.map +1 -0
- package/build/internal/cjs/index.d.ts +1 -0
- package/build/internal/cjs/index.js +18 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +1 -0
- package/build/internal/cjs/index.typings.js +18 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +1 -0
- package/build/internal/cjs/meta.js +18 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/src/crm-tasks-v2-task-tasks.context.d.ts +32 -0
- package/build/internal/cjs/src/crm-tasks-v2-task-tasks.context.js +40 -0
- package/build/internal/cjs/src/crm-tasks-v2-task-tasks.context.js.map +1 -0
- package/build/internal/cjs/src/crm-tasks-v2-task-tasks.http.d.ts +58 -0
- package/build/internal/cjs/src/crm-tasks-v2-task-tasks.http.js +275 -0
- package/build/internal/cjs/src/crm-tasks-v2-task-tasks.http.js.map +1 -0
- package/build/internal/cjs/src/crm-tasks-v2-task-tasks.meta.d.ts +27 -0
- package/build/internal/cjs/src/crm-tasks-v2-task-tasks.meta.js +161 -0
- package/build/internal/cjs/src/crm-tasks-v2-task-tasks.meta.js.map +1 -0
- package/build/internal/cjs/src/crm-tasks-v2-task-tasks.public.d.ts +103 -0
- package/build/internal/cjs/src/crm-tasks-v2-task-tasks.public.js +102 -0
- package/build/internal/cjs/src/crm-tasks-v2-task-tasks.public.js.map +1 -0
- package/build/internal/cjs/src/crm-tasks-v2-task-tasks.types.d.ts +473 -0
- package/build/internal/cjs/src/crm-tasks-v2-task-tasks.types.js +41 -0
- package/build/internal/cjs/src/crm-tasks-v2-task-tasks.types.js.map +1 -0
- package/build/internal/cjs/src/crm-tasks-v2-task-tasks.universal.d.ts +811 -0
- package/build/internal/cjs/src/crm-tasks-v2-task-tasks.universal.js +372 -0
- package/build/internal/cjs/src/crm-tasks-v2-task-tasks.universal.js.map +1 -0
- package/build/internal/es/index.d.ts +1 -0
- package/build/internal/es/index.js +2 -0
- package/build/internal/es/index.js.map +1 -0
- package/build/internal/es/index.typings.d.ts +1 -0
- package/build/internal/es/index.typings.js +2 -0
- package/build/internal/es/index.typings.js.map +1 -0
- package/build/internal/es/meta.d.ts +1 -0
- package/build/internal/es/meta.js +2 -0
- package/build/internal/es/meta.js.map +1 -0
- package/build/internal/es/src/crm-tasks-v2-task-tasks.context.d.ts +32 -0
- package/build/internal/es/src/crm-tasks-v2-task-tasks.context.js +32 -0
- package/build/internal/es/src/crm-tasks-v2-task-tasks.context.js.map +1 -0
- package/build/internal/es/src/crm-tasks-v2-task-tasks.http.d.ts +58 -0
- package/build/internal/es/src/crm-tasks-v2-task-tasks.http.js +265 -0
- package/build/internal/es/src/crm-tasks-v2-task-tasks.http.js.map +1 -0
- package/build/internal/es/src/crm-tasks-v2-task-tasks.meta.d.ts +27 -0
- package/build/internal/es/src/crm-tasks-v2-task-tasks.meta.js +128 -0
- package/build/internal/es/src/crm-tasks-v2-task-tasks.meta.js.map +1 -0
- package/build/internal/es/src/crm-tasks-v2-task-tasks.public.d.ts +103 -0
- package/build/internal/es/src/crm-tasks-v2-task-tasks.public.js +87 -0
- package/build/internal/es/src/crm-tasks-v2-task-tasks.public.js.map +1 -0
- package/build/internal/es/src/crm-tasks-v2-task-tasks.types.d.ts +473 -0
- package/build/internal/es/src/crm-tasks-v2-task-tasks.types.js +38 -0
- package/build/internal/es/src/crm-tasks-v2-task-tasks.types.js.map +1 -0
- package/build/internal/es/src/crm-tasks-v2-task-tasks.universal.d.ts +811 -0
- package/build/internal/es/src/crm-tasks-v2-task-tasks.universal.js +339 -0
- package/build/internal/es/src/crm-tasks-v2-task-tasks.universal.js.map +1 -0
- package/meta/package.json +3 -0
- package/package.json +52 -0
|
@@ -0,0 +1,473 @@
|
|
|
1
|
+
export interface Task {
|
|
2
|
+
/**
|
|
3
|
+
* Task ID.
|
|
4
|
+
* @readonly
|
|
5
|
+
*/
|
|
6
|
+
id?: string | null;
|
|
7
|
+
/**
|
|
8
|
+
* 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.
|
|
9
|
+
* @readonly
|
|
10
|
+
*/
|
|
11
|
+
revision?: string | null;
|
|
12
|
+
/** Title of the task. */
|
|
13
|
+
title?: string | null;
|
|
14
|
+
/** Description of the task. */
|
|
15
|
+
description?: string | null;
|
|
16
|
+
/**
|
|
17
|
+
* Date and time the task was created.
|
|
18
|
+
* @readonly
|
|
19
|
+
*/
|
|
20
|
+
createdDate?: Date | null;
|
|
21
|
+
/**
|
|
22
|
+
* Date and time the task was last updated.
|
|
23
|
+
* @readonly
|
|
24
|
+
*/
|
|
25
|
+
updatedDate?: Date | null;
|
|
26
|
+
/** Due date for the task. */
|
|
27
|
+
dueDate?: Date | null;
|
|
28
|
+
/**
|
|
29
|
+
* Status of the task.
|
|
30
|
+
*
|
|
31
|
+
* Default: `ACTION_NEEDED`
|
|
32
|
+
*/
|
|
33
|
+
status?: TaskStatus;
|
|
34
|
+
/** Details about the task source. */
|
|
35
|
+
source?: TaskSource;
|
|
36
|
+
/** Information about the contact associated with the task. */
|
|
37
|
+
contact?: ContactInfo;
|
|
38
|
+
}
|
|
39
|
+
/** Possible statuses in which the task may be. */
|
|
40
|
+
export declare enum TaskStatus {
|
|
41
|
+
/** Action needed. */
|
|
42
|
+
ACTION_NEEDED = "ACTION_NEEDED",
|
|
43
|
+
/** Task completed. */
|
|
44
|
+
COMPLETED = "COMPLETED"
|
|
45
|
+
}
|
|
46
|
+
export interface TaskSource {
|
|
47
|
+
/**
|
|
48
|
+
* How the task was created.
|
|
49
|
+
* @readonly
|
|
50
|
+
*/
|
|
51
|
+
sourceType?: SourceType;
|
|
52
|
+
/**
|
|
53
|
+
* App ID, if the task was created by an app.
|
|
54
|
+
* @readonly
|
|
55
|
+
*/
|
|
56
|
+
appId?: string | null;
|
|
57
|
+
/**
|
|
58
|
+
* User ID, if the task was created by a Wix user.
|
|
59
|
+
* @readonly
|
|
60
|
+
*/
|
|
61
|
+
userId?: string | null;
|
|
62
|
+
}
|
|
63
|
+
/** Possible sources that can create tasks. */
|
|
64
|
+
export declare enum SourceType {
|
|
65
|
+
/** Task was created by an app. */
|
|
66
|
+
APP = "APP",
|
|
67
|
+
/** Task was created by a Wix user. */
|
|
68
|
+
USER = "USER"
|
|
69
|
+
}
|
|
70
|
+
export interface ContactInfo {
|
|
71
|
+
/** ID of the contact associated with the task. */
|
|
72
|
+
id?: string | null;
|
|
73
|
+
/**
|
|
74
|
+
* Contact's first name.
|
|
75
|
+
* @readonly
|
|
76
|
+
*/
|
|
77
|
+
firstName?: string | null;
|
|
78
|
+
/**
|
|
79
|
+
* Contact's last name.
|
|
80
|
+
* @readonly
|
|
81
|
+
*/
|
|
82
|
+
lastName?: string | null;
|
|
83
|
+
/**
|
|
84
|
+
* Contact's image URL.
|
|
85
|
+
* @readonly
|
|
86
|
+
*/
|
|
87
|
+
imageUrl?: string | null;
|
|
88
|
+
/**
|
|
89
|
+
* Contact's primary email.
|
|
90
|
+
* @readonly
|
|
91
|
+
*/
|
|
92
|
+
email?: string | null;
|
|
93
|
+
/**
|
|
94
|
+
* Contact's primary phone.
|
|
95
|
+
* @readonly
|
|
96
|
+
*/
|
|
97
|
+
phone?: string | null;
|
|
98
|
+
}
|
|
99
|
+
export interface DeleteCompletedTasksRequest {
|
|
100
|
+
/** Optional list of tasks ids of the tasks to delete. If the list is not provided the filter is used. */
|
|
101
|
+
taskIds?: string[];
|
|
102
|
+
/** An optional filter of tasks to count. See 'queryTasks' for supported filter options. */
|
|
103
|
+
filter?: Record<string, any> | null;
|
|
104
|
+
}
|
|
105
|
+
export interface DeleteCompletedTasksResponse {
|
|
106
|
+
}
|
|
107
|
+
export interface SendTasksReminderRequest {
|
|
108
|
+
/** Ids of the tasks to remind */
|
|
109
|
+
taskIds?: string[];
|
|
110
|
+
/** The reminder type */
|
|
111
|
+
reminderType?: ReminderType;
|
|
112
|
+
}
|
|
113
|
+
export declare enum ReminderType {
|
|
114
|
+
UNKNOWN_REMINDER_TYPE = "UNKNOWN_REMINDER_TYPE",
|
|
115
|
+
FIRST_REMINDER = "FIRST_REMINDER",
|
|
116
|
+
LAST_REMINDER = "LAST_REMINDER"
|
|
117
|
+
}
|
|
118
|
+
export interface SendTasksReminderResponse {
|
|
119
|
+
}
|
|
120
|
+
export interface RepositionTask {
|
|
121
|
+
/** The id of the last task that was re-positioned */
|
|
122
|
+
taskId?: string | null;
|
|
123
|
+
/** The position of the last task that was re-positioned */
|
|
124
|
+
position?: string | null;
|
|
125
|
+
}
|
|
126
|
+
export interface TaskOverdue {
|
|
127
|
+
/** The overdue task. */
|
|
128
|
+
task?: Task;
|
|
129
|
+
}
|
|
130
|
+
export interface TaskAssigned {
|
|
131
|
+
/** The id of the assignee */
|
|
132
|
+
assigneeId?: string;
|
|
133
|
+
/** The task that was assigned */
|
|
134
|
+
task?: Task;
|
|
135
|
+
}
|
|
136
|
+
export interface CreateTaskRequest {
|
|
137
|
+
/** Task to create. */
|
|
138
|
+
task: Task;
|
|
139
|
+
}
|
|
140
|
+
export interface CreateTaskResponse {
|
|
141
|
+
/** The created task. */
|
|
142
|
+
task?: Task;
|
|
143
|
+
}
|
|
144
|
+
export interface ContactNotFoundError {
|
|
145
|
+
contactId?: string;
|
|
146
|
+
}
|
|
147
|
+
export interface GetTaskRequest {
|
|
148
|
+
/** ID of the task to retrieve. */
|
|
149
|
+
taskId: string;
|
|
150
|
+
}
|
|
151
|
+
export interface GetTaskResponse {
|
|
152
|
+
/** The retrieved task. */
|
|
153
|
+
task?: Task;
|
|
154
|
+
}
|
|
155
|
+
export interface UpdateTaskRequest {
|
|
156
|
+
/** Task to update. */
|
|
157
|
+
task: Task;
|
|
158
|
+
}
|
|
159
|
+
export interface UpdateTaskResponse {
|
|
160
|
+
/** The updated task. */
|
|
161
|
+
task?: Task;
|
|
162
|
+
}
|
|
163
|
+
export interface DeleteTaskRequest {
|
|
164
|
+
/** ID of the task to delete. */
|
|
165
|
+
taskId: string;
|
|
166
|
+
}
|
|
167
|
+
export interface DeleteTaskResponse {
|
|
168
|
+
}
|
|
169
|
+
export interface QueryTasksRequest {
|
|
170
|
+
/** Query options. */
|
|
171
|
+
query?: CursorQuery;
|
|
172
|
+
}
|
|
173
|
+
export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
174
|
+
/** 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`. */
|
|
175
|
+
cursorPaging?: CursorPaging;
|
|
176
|
+
/**
|
|
177
|
+
* Filter object in the following format:
|
|
178
|
+
* `"filter" : {
|
|
179
|
+
* "fieldName1": "value1",
|
|
180
|
+
* "fieldName2":{"$operator":"value2"}
|
|
181
|
+
* }`
|
|
182
|
+
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
|
183
|
+
*/
|
|
184
|
+
filter?: Record<string, any> | null;
|
|
185
|
+
/**
|
|
186
|
+
* Sort object in the following format:
|
|
187
|
+
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
188
|
+
*/
|
|
189
|
+
sort?: Sorting[];
|
|
190
|
+
}
|
|
191
|
+
/** @oneof */
|
|
192
|
+
export interface CursorQueryPagingMethodOneOf {
|
|
193
|
+
/** 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`. */
|
|
194
|
+
cursorPaging?: CursorPaging;
|
|
195
|
+
}
|
|
196
|
+
export interface Sorting {
|
|
197
|
+
/** Name of the field to sort by. */
|
|
198
|
+
fieldName?: string;
|
|
199
|
+
/** Sort order. */
|
|
200
|
+
order?: SortOrder;
|
|
201
|
+
}
|
|
202
|
+
export declare enum SortOrder {
|
|
203
|
+
/** Sort by ascending order. */
|
|
204
|
+
ASC = "ASC",
|
|
205
|
+
/** Sort by descending order. */
|
|
206
|
+
DESC = "DESC"
|
|
207
|
+
}
|
|
208
|
+
export interface CursorPaging {
|
|
209
|
+
/** Number of items to load. */
|
|
210
|
+
limit?: number | null;
|
|
211
|
+
/**
|
|
212
|
+
* Pointer to the next or previous page in the list of results.
|
|
213
|
+
*
|
|
214
|
+
* You can get the relevant cursor token
|
|
215
|
+
* from the `pagingMetadata` object in the previous call's response.
|
|
216
|
+
* Not relevant for the first request.
|
|
217
|
+
*/
|
|
218
|
+
cursor?: string | null;
|
|
219
|
+
}
|
|
220
|
+
export interface QueryTasksResponse {
|
|
221
|
+
/** The retrieved tasks. */
|
|
222
|
+
tasks?: Task[];
|
|
223
|
+
/** Paging metadata. */
|
|
224
|
+
pagingMetadata?: CursorPagingMetadata;
|
|
225
|
+
}
|
|
226
|
+
export interface CursorPagingMetadata {
|
|
227
|
+
/** Number of items returned in the response. */
|
|
228
|
+
count?: number | null;
|
|
229
|
+
/** Offset that was requested. */
|
|
230
|
+
cursors?: Cursors;
|
|
231
|
+
/**
|
|
232
|
+
* Indicates if there are more results after the current page.
|
|
233
|
+
* If `true`, another page of results can be retrieved.
|
|
234
|
+
* If `false`, this is the last page.
|
|
235
|
+
*/
|
|
236
|
+
hasNext?: boolean | null;
|
|
237
|
+
}
|
|
238
|
+
export interface Cursors {
|
|
239
|
+
/** Cursor pointing to next page in the list of results. */
|
|
240
|
+
next?: string | null;
|
|
241
|
+
/** Cursor pointing to previous page in the list of results. */
|
|
242
|
+
prev?: string | null;
|
|
243
|
+
}
|
|
244
|
+
export interface CountTasksRequest {
|
|
245
|
+
/**
|
|
246
|
+
* 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)).
|
|
247
|
+
*
|
|
248
|
+
* Filter tasks in the following format:
|
|
249
|
+
*
|
|
250
|
+
* `"filter" : {
|
|
251
|
+
* "fieldName1": "value1",
|
|
252
|
+
* "fieldName2":{"$operator":"value2"}
|
|
253
|
+
* }`
|
|
254
|
+
*
|
|
255
|
+
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`.
|
|
256
|
+
*/
|
|
257
|
+
filter?: Record<string, any> | null;
|
|
258
|
+
}
|
|
259
|
+
export interface CountTasksResponse {
|
|
260
|
+
/** The number of tasks that match the specified filter. */
|
|
261
|
+
count?: number;
|
|
262
|
+
}
|
|
263
|
+
export interface QueryTasksInternalRequest {
|
|
264
|
+
/** WQL expression */
|
|
265
|
+
query?: QueryV2;
|
|
266
|
+
}
|
|
267
|
+
export interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
268
|
+
/** Paging options to limit and skip the number of items. */
|
|
269
|
+
paging?: Paging;
|
|
270
|
+
/** 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`. */
|
|
271
|
+
cursorPaging?: CursorPaging;
|
|
272
|
+
/**
|
|
273
|
+
* Filter object in the following format:
|
|
274
|
+
* `"filter" : {
|
|
275
|
+
* "fieldName1": "value1",
|
|
276
|
+
* "fieldName2":{"$operator":"value2"}
|
|
277
|
+
* }`
|
|
278
|
+
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
|
279
|
+
*/
|
|
280
|
+
filter?: Record<string, any> | null;
|
|
281
|
+
/**
|
|
282
|
+
* Sort object in the following format:
|
|
283
|
+
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
284
|
+
*/
|
|
285
|
+
sort?: Sorting[];
|
|
286
|
+
/** 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. */
|
|
287
|
+
fields?: string[];
|
|
288
|
+
/** 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. */
|
|
289
|
+
fieldsets?: string[];
|
|
290
|
+
}
|
|
291
|
+
/** @oneof */
|
|
292
|
+
export interface QueryV2PagingMethodOneOf {
|
|
293
|
+
/** Paging options to limit and skip the number of items. */
|
|
294
|
+
paging?: Paging;
|
|
295
|
+
/** 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`. */
|
|
296
|
+
cursorPaging?: CursorPaging;
|
|
297
|
+
}
|
|
298
|
+
export interface Paging {
|
|
299
|
+
/** Number of items to load. */
|
|
300
|
+
limit?: number | null;
|
|
301
|
+
/** Number of items to skip in the current sort order. */
|
|
302
|
+
offset?: number | null;
|
|
303
|
+
}
|
|
304
|
+
export interface QueryTasksInternalResponse {
|
|
305
|
+
/** The retrieved tasks. */
|
|
306
|
+
tasks?: Task[];
|
|
307
|
+
/** Details on the paged set of results returned. */
|
|
308
|
+
pagingMetadata?: PagingMetadataV2;
|
|
309
|
+
}
|
|
310
|
+
export interface PagingMetadataV2 {
|
|
311
|
+
/** Number of items returned in the response. */
|
|
312
|
+
count?: number | null;
|
|
313
|
+
/** Offset that was requested. */
|
|
314
|
+
offset?: number | null;
|
|
315
|
+
/** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
|
|
316
|
+
total?: number | null;
|
|
317
|
+
/** Flag that indicates the server failed to calculate the `total` field. */
|
|
318
|
+
tooManyToCount?: boolean | null;
|
|
319
|
+
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
320
|
+
cursors?: Cursors;
|
|
321
|
+
}
|
|
322
|
+
export interface MoveTaskAfterRequest {
|
|
323
|
+
/** ID of the task to move. */
|
|
324
|
+
taskId: string;
|
|
325
|
+
/**
|
|
326
|
+
* The ID of the task after which the moved task is positioned in the task display.
|
|
327
|
+
* If `beforeTaskId` is not specified, the moved task is positioned first in the task display.
|
|
328
|
+
*/
|
|
329
|
+
beforeTaskId?: string | null;
|
|
330
|
+
}
|
|
331
|
+
export interface MoveTaskAfterResponse {
|
|
332
|
+
}
|
|
333
|
+
export interface TaskNotFoundError {
|
|
334
|
+
/** The task id that was not found */
|
|
335
|
+
taskId?: string;
|
|
336
|
+
}
|
|
337
|
+
export interface Empty {
|
|
338
|
+
}
|
|
339
|
+
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
340
|
+
createdEvent?: EntityCreatedEvent;
|
|
341
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
342
|
+
deletedEvent?: EntityDeletedEvent;
|
|
343
|
+
actionEvent?: ActionEvent;
|
|
344
|
+
/**
|
|
345
|
+
* Unique event ID.
|
|
346
|
+
* Allows clients to ignore duplicate webhooks.
|
|
347
|
+
*/
|
|
348
|
+
id?: string;
|
|
349
|
+
/**
|
|
350
|
+
* Assumes actions are also always typed to an entity_type
|
|
351
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
352
|
+
*/
|
|
353
|
+
entityFqdn?: string;
|
|
354
|
+
/**
|
|
355
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
356
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
357
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
358
|
+
*/
|
|
359
|
+
slug?: string;
|
|
360
|
+
/** ID of the entity associated with the event. */
|
|
361
|
+
entityId?: string;
|
|
362
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
363
|
+
eventTime?: Date | null;
|
|
364
|
+
/**
|
|
365
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
366
|
+
* (for example, GDPR).
|
|
367
|
+
*/
|
|
368
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
369
|
+
/** If present, indicates the action that triggered the event. */
|
|
370
|
+
originatedFrom?: string | null;
|
|
371
|
+
/**
|
|
372
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
373
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
374
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
375
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
376
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
377
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
378
|
+
*/
|
|
379
|
+
entityEventSequence?: string | null;
|
|
380
|
+
}
|
|
381
|
+
/** @oneof */
|
|
382
|
+
export interface DomainEventBodyOneOf {
|
|
383
|
+
createdEvent?: EntityCreatedEvent;
|
|
384
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
385
|
+
deletedEvent?: EntityDeletedEvent;
|
|
386
|
+
actionEvent?: ActionEvent;
|
|
387
|
+
}
|
|
388
|
+
export interface EntityCreatedEvent {
|
|
389
|
+
entityAsJson?: string;
|
|
390
|
+
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
391
|
+
restoreInfo?: RestoreInfo;
|
|
392
|
+
}
|
|
393
|
+
export interface RestoreInfo {
|
|
394
|
+
deletedDate?: Date | null;
|
|
395
|
+
}
|
|
396
|
+
export interface EntityUpdatedEvent {
|
|
397
|
+
/**
|
|
398
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
399
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
400
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
401
|
+
*/
|
|
402
|
+
currentEntityAsJson?: string;
|
|
403
|
+
}
|
|
404
|
+
export interface EntityDeletedEvent {
|
|
405
|
+
/** Entity that was deleted */
|
|
406
|
+
deletedEntityAsJson?: string | null;
|
|
407
|
+
}
|
|
408
|
+
export interface ActionEvent {
|
|
409
|
+
bodyAsJson?: string;
|
|
410
|
+
}
|
|
411
|
+
export interface MessageEnvelope {
|
|
412
|
+
/** App instance ID. */
|
|
413
|
+
instanceId?: string | null;
|
|
414
|
+
/** Event type. */
|
|
415
|
+
eventType?: string;
|
|
416
|
+
/** The identification type and identity data. */
|
|
417
|
+
identity?: IdentificationData;
|
|
418
|
+
/** Stringify payload. */
|
|
419
|
+
data?: string;
|
|
420
|
+
}
|
|
421
|
+
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
422
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
423
|
+
anonymousVisitorId?: string;
|
|
424
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
425
|
+
memberId?: string;
|
|
426
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
427
|
+
wixUserId?: string;
|
|
428
|
+
/** ID of an app. */
|
|
429
|
+
appId?: string;
|
|
430
|
+
/** @readonly */
|
|
431
|
+
identityType?: WebhookIdentityType;
|
|
432
|
+
}
|
|
433
|
+
/** @oneof */
|
|
434
|
+
export interface IdentificationDataIdOneOf {
|
|
435
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
436
|
+
anonymousVisitorId?: string;
|
|
437
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
438
|
+
memberId?: string;
|
|
439
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
440
|
+
wixUserId?: string;
|
|
441
|
+
/** ID of an app. */
|
|
442
|
+
appId?: string;
|
|
443
|
+
}
|
|
444
|
+
export declare enum WebhookIdentityType {
|
|
445
|
+
UNKNOWN = "UNKNOWN",
|
|
446
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
447
|
+
MEMBER = "MEMBER",
|
|
448
|
+
WIX_USER = "WIX_USER",
|
|
449
|
+
APP = "APP"
|
|
450
|
+
}
|
|
451
|
+
interface TaskSourceNonNullableFields {
|
|
452
|
+
sourceType: SourceType;
|
|
453
|
+
}
|
|
454
|
+
interface TaskNonNullableFields {
|
|
455
|
+
status: TaskStatus;
|
|
456
|
+
source?: TaskSourceNonNullableFields;
|
|
457
|
+
}
|
|
458
|
+
export interface CreateTaskResponseNonNullableFields {
|
|
459
|
+
task?: TaskNonNullableFields;
|
|
460
|
+
}
|
|
461
|
+
export interface GetTaskResponseNonNullableFields {
|
|
462
|
+
task?: TaskNonNullableFields;
|
|
463
|
+
}
|
|
464
|
+
export interface UpdateTaskResponseNonNullableFields {
|
|
465
|
+
task?: TaskNonNullableFields;
|
|
466
|
+
}
|
|
467
|
+
export interface QueryTasksResponseNonNullableFields {
|
|
468
|
+
tasks: TaskNonNullableFields[];
|
|
469
|
+
}
|
|
470
|
+
export interface CountTasksResponseNonNullableFields {
|
|
471
|
+
count: number;
|
|
472
|
+
}
|
|
473
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebhookIdentityType = exports.SortOrder = exports.ReminderType = exports.SourceType = exports.TaskStatus = void 0;
|
|
4
|
+
/** Possible statuses in which the task may be. */
|
|
5
|
+
var TaskStatus;
|
|
6
|
+
(function (TaskStatus) {
|
|
7
|
+
/** Action needed. */
|
|
8
|
+
TaskStatus["ACTION_NEEDED"] = "ACTION_NEEDED";
|
|
9
|
+
/** Task completed. */
|
|
10
|
+
TaskStatus["COMPLETED"] = "COMPLETED";
|
|
11
|
+
})(TaskStatus || (exports.TaskStatus = TaskStatus = {}));
|
|
12
|
+
/** Possible sources that can create tasks. */
|
|
13
|
+
var SourceType;
|
|
14
|
+
(function (SourceType) {
|
|
15
|
+
/** Task was created by an app. */
|
|
16
|
+
SourceType["APP"] = "APP";
|
|
17
|
+
/** Task was created by a Wix user. */
|
|
18
|
+
SourceType["USER"] = "USER";
|
|
19
|
+
})(SourceType || (exports.SourceType = SourceType = {}));
|
|
20
|
+
var ReminderType;
|
|
21
|
+
(function (ReminderType) {
|
|
22
|
+
ReminderType["UNKNOWN_REMINDER_TYPE"] = "UNKNOWN_REMINDER_TYPE";
|
|
23
|
+
ReminderType["FIRST_REMINDER"] = "FIRST_REMINDER";
|
|
24
|
+
ReminderType["LAST_REMINDER"] = "LAST_REMINDER";
|
|
25
|
+
})(ReminderType || (exports.ReminderType = ReminderType = {}));
|
|
26
|
+
var SortOrder;
|
|
27
|
+
(function (SortOrder) {
|
|
28
|
+
/** Sort by ascending order. */
|
|
29
|
+
SortOrder["ASC"] = "ASC";
|
|
30
|
+
/** Sort by descending order. */
|
|
31
|
+
SortOrder["DESC"] = "DESC";
|
|
32
|
+
})(SortOrder || (exports.SortOrder = SortOrder = {}));
|
|
33
|
+
var WebhookIdentityType;
|
|
34
|
+
(function (WebhookIdentityType) {
|
|
35
|
+
WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
|
|
36
|
+
WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
37
|
+
WebhookIdentityType["MEMBER"] = "MEMBER";
|
|
38
|
+
WebhookIdentityType["WIX_USER"] = "WIX_USER";
|
|
39
|
+
WebhookIdentityType["APP"] = "APP";
|
|
40
|
+
})(WebhookIdentityType || (exports.WebhookIdentityType = WebhookIdentityType = {}));
|
|
41
|
+
//# sourceMappingURL=crm-tasks-v2-task-tasks.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"crm-tasks-v2-task-tasks.types.js","sourceRoot":"","sources":["../../../src/crm-tasks-v2-task-tasks.types.ts"],"names":[],"mappings":";;;AAuCA,kDAAkD;AAClD,IAAY,UAKX;AALD,WAAY,UAAU;IACpB,qBAAqB;IACrB,6CAA+B,CAAA;IAC/B,sBAAsB;IACtB,qCAAuB,CAAA;AACzB,CAAC,EALW,UAAU,0BAAV,UAAU,QAKrB;AAoBD,8CAA8C;AAC9C,IAAY,UAKX;AALD,WAAY,UAAU;IACpB,kCAAkC;IAClC,yBAAW,CAAA;IACX,sCAAsC;IACtC,2BAAa,CAAA;AACf,CAAC,EALW,UAAU,0BAAV,UAAU,QAKrB;AAgDD,IAAY,YAIX;AAJD,WAAY,YAAY;IACtB,+DAA+C,CAAA;IAC/C,iDAAiC,CAAA;IACjC,+CAA+B,CAAA;AACjC,CAAC,EAJW,YAAY,4BAAZ,YAAY,QAIvB;AAqGD,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,+BAA+B;IAC/B,wBAAW,CAAA;IACX,gCAAgC;IAChC,0BAAa,CAAA;AACf,CAAC,EALW,SAAS,yBAAT,SAAS,QAKpB;AAsQD,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B"}
|