@wix/crm 1.0.84 → 1.0.86

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