@wix/crm 1.0.80 → 1.0.82

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 (194) hide show
  1. package/build/cjs/context.d.ts +5 -0
  2. package/build/cjs/context.js +32 -0
  3. package/build/cjs/context.js.map +1 -0
  4. package/build/cjs/index.d.ts +1 -0
  5. package/build/cjs/index.js +7 -2
  6. package/build/cjs/index.js.map +1 -1
  7. package/build/cjs/index.typings.d.ts +1 -0
  8. package/build/cjs/index.typings.js +7 -2
  9. package/build/cjs/index.typings.js.map +1 -1
  10. package/build/cjs/meta.d.ts +1 -0
  11. package/build/cjs/meta.js +7 -2
  12. package/build/cjs/meta.js.map +1 -1
  13. package/build/cjs/src/contacts-v4-contact.context.d.ts +9 -0
  14. package/build/cjs/src/contacts-v4-contact.context.js +82 -0
  15. package/build/cjs/src/contacts-v4-contact.context.js.map +1 -0
  16. package/build/cjs/src/contacts-v4-contact.http.d.ts +20 -94
  17. package/build/cjs/src/contacts-v4-contact.http.js +211 -249
  18. package/build/cjs/src/contacts-v4-contact.http.js.map +1 -1
  19. package/build/cjs/src/contacts-v4-contact.meta.d.ts +1 -1
  20. package/build/cjs/src/contacts-v4-contact.meta.js +5 -1
  21. package/build/cjs/src/contacts-v4-contact.meta.js.map +1 -1
  22. package/build/cjs/src/contacts-v4-contact.public.d.ts +7 -6
  23. package/build/cjs/src/contacts-v4-contact.public.js +10 -2
  24. package/build/cjs/src/contacts-v4-contact.public.js.map +1 -1
  25. package/build/cjs/src/contacts-v4-contact.types.d.ts +265 -5
  26. package/build/cjs/src/contacts-v4-contact.types.js +40 -19
  27. package/build/cjs/src/contacts-v4-contact.types.js.map +1 -1
  28. package/build/cjs/src/contacts-v4-contact.universal.d.ts +234 -155
  29. package/build/cjs/src/contacts-v4-contact.universal.js +145 -168
  30. package/build/cjs/src/contacts-v4-contact.universal.js.map +1 -1
  31. package/build/cjs/src/contacts-v4-extended-field.context.d.ts +7 -0
  32. package/build/cjs/src/contacts-v4-extended-field.context.js +60 -0
  33. package/build/cjs/src/contacts-v4-extended-field.context.js.map +1 -0
  34. package/build/cjs/src/contacts-v4-extended-field.http.d.ts +7 -14
  35. package/build/cjs/src/contacts-v4-extended-field.http.js +60 -70
  36. package/build/cjs/src/contacts-v4-extended-field.http.js.map +1 -1
  37. package/build/cjs/src/contacts-v4-extended-field.meta.d.ts +1 -1
  38. package/build/cjs/src/contacts-v4-extended-field.meta.js +5 -1
  39. package/build/cjs/src/contacts-v4-extended-field.meta.js.map +1 -1
  40. package/build/cjs/src/contacts-v4-extended-field.public.d.ts +2 -1
  41. package/build/cjs/src/contacts-v4-extended-field.public.js +5 -1
  42. package/build/cjs/src/contacts-v4-extended-field.public.js.map +1 -1
  43. package/build/cjs/src/contacts-v4-extended-field.types.d.ts +68 -1
  44. package/build/cjs/src/contacts-v4-extended-field.types.js +3 -3
  45. package/build/cjs/src/contacts-v4-extended-field.types.js.map +1 -1
  46. package/build/cjs/src/contacts-v4-extended-field.universal.d.ts +116 -30
  47. package/build/cjs/src/contacts-v4-extended-field.universal.js +62 -51
  48. package/build/cjs/src/contacts-v4-extended-field.universal.js.map +1 -1
  49. package/build/cjs/src/contacts-v4-label.context.d.ts +7 -0
  50. package/build/cjs/src/contacts-v4-label.context.js +60 -0
  51. package/build/cjs/src/contacts-v4-label.context.js.map +1 -0
  52. package/build/cjs/src/contacts-v4-label.http.d.ts +13 -14
  53. package/build/cjs/src/contacts-v4-label.http.js +66 -72
  54. package/build/cjs/src/contacts-v4-label.http.js.map +1 -1
  55. package/build/cjs/src/contacts-v4-label.meta.d.ts +1 -1
  56. package/build/cjs/src/contacts-v4-label.meta.js +5 -1
  57. package/build/cjs/src/contacts-v4-label.meta.js.map +1 -1
  58. package/build/cjs/src/contacts-v4-label.public.d.ts +6 -5
  59. package/build/cjs/src/contacts-v4-label.public.js +5 -1
  60. package/build/cjs/src/contacts-v4-label.public.js.map +1 -1
  61. package/build/cjs/src/contacts-v4-label.types.d.ts +76 -9
  62. package/build/cjs/src/contacts-v4-label.types.js +2 -2
  63. package/build/cjs/src/contacts-v4-label.types.js.map +1 -1
  64. package/build/cjs/src/contacts-v4-label.universal.d.ts +125 -40
  65. package/build/cjs/src/contacts-v4-label.universal.js +76 -62
  66. package/build/cjs/src/contacts-v4-label.universal.js.map +1 -1
  67. package/build/cjs/src/contacts-v4-submit-contact.context.d.ts +3 -0
  68. package/build/cjs/src/contacts-v4-submit-contact.context.js +16 -0
  69. package/build/cjs/src/contacts-v4-submit-contact.context.js.map +1 -0
  70. package/build/cjs/src/contacts-v4-submit-contact.http.js +20 -34
  71. package/build/cjs/src/contacts-v4-submit-contact.http.js.map +1 -1
  72. package/build/cjs/src/contacts-v4-submit-contact.meta.d.ts +1 -1
  73. package/build/cjs/src/contacts-v4-submit-contact.meta.js +5 -1
  74. package/build/cjs/src/contacts-v4-submit-contact.meta.js.map +1 -1
  75. package/build/cjs/src/contacts-v4-submit-contact.public.d.ts +2 -2
  76. package/build/cjs/src/contacts-v4-submit-contact.types.d.ts +8 -3
  77. package/build/cjs/src/contacts-v4-submit-contact.types.js +9 -9
  78. package/build/cjs/src/contacts-v4-submit-contact.types.js.map +1 -1
  79. package/build/cjs/src/contacts-v4-submit-contact.universal.d.ts +8 -9
  80. package/build/cjs/src/contacts-v4-submit-contact.universal.js +25 -28
  81. package/build/cjs/src/contacts-v4-submit-contact.universal.js.map +1 -1
  82. package/build/cjs/src/crm-tasks-v2-task.context.d.ts +9 -0
  83. package/build/cjs/src/crm-tasks-v2-task.context.js +82 -0
  84. package/build/cjs/src/crm-tasks-v2-task.context.js.map +1 -0
  85. package/build/cjs/src/crm-tasks-v2-task.http.d.ts +60 -0
  86. package/build/cjs/src/crm-tasks-v2-task.http.js +268 -0
  87. package/build/cjs/src/crm-tasks-v2-task.http.js.map +1 -0
  88. package/build/cjs/src/crm-tasks-v2-task.meta.d.ts +27 -0
  89. package/build/cjs/src/crm-tasks-v2-task.meta.js +161 -0
  90. package/build/cjs/src/crm-tasks-v2-task.meta.js.map +1 -0
  91. package/build/cjs/src/crm-tasks-v2-task.public.d.ts +30 -0
  92. package/build/cjs/src/crm-tasks-v2-task.public.js +58 -0
  93. package/build/cjs/src/crm-tasks-v2-task.public.js.map +1 -0
  94. package/build/cjs/src/crm-tasks-v2-task.types.d.ts +430 -0
  95. package/build/cjs/src/crm-tasks-v2-task.types.js +29 -0
  96. package/build/cjs/src/crm-tasks-v2-task.types.js.map +1 -0
  97. package/build/cjs/src/crm-tasks-v2-task.universal.d.ts +678 -0
  98. package/build/cjs/src/crm-tasks-v2-task.universal.js +520 -0
  99. package/build/cjs/src/crm-tasks-v2-task.universal.js.map +1 -0
  100. package/build/cjs/src/ping-notifications-v3-notification.public.d.ts +1 -1
  101. package/build/cjs/src/ping-notifications-v3-notification.types.js +1 -1
  102. package/build/cjs/src/ping-notifications-v3-notification.types.js.map +1 -1
  103. package/build/cjs/src/ping-notifications-v3-notification.universal.js +6 -2
  104. package/build/cjs/src/ping-notifications-v3-notification.universal.js.map +1 -1
  105. package/build/es/context.d.ts +5 -0
  106. package/build/es/context.js +6 -0
  107. package/build/es/context.js.map +1 -0
  108. package/build/es/index.d.ts +1 -0
  109. package/build/es/index.js +1 -0
  110. package/build/es/index.js.map +1 -1
  111. package/build/es/index.typings.d.ts +1 -0
  112. package/build/es/index.typings.js +1 -0
  113. package/build/es/index.typings.js.map +1 -1
  114. package/build/es/meta.d.ts +1 -0
  115. package/build/es/meta.js +1 -0
  116. package/build/es/meta.js.map +1 -1
  117. package/build/es/src/contacts-v4-contact.context.d.ts +9 -0
  118. package/build/es/src/contacts-v4-contact.context.js +72 -0
  119. package/build/es/src/contacts-v4-contact.context.js.map +1 -0
  120. package/build/es/src/contacts-v4-contact.http.d.ts +20 -94
  121. package/build/es/src/contacts-v4-contact.http.js +211 -249
  122. package/build/es/src/contacts-v4-contact.http.js.map +1 -1
  123. package/build/es/src/contacts-v4-contact.meta.d.ts +1 -1
  124. package/build/es/src/contacts-v4-contact.public.d.ts +7 -6
  125. package/build/es/src/contacts-v4-contact.public.js +3 -2
  126. package/build/es/src/contacts-v4-contact.public.js.map +1 -1
  127. package/build/es/src/contacts-v4-contact.types.d.ts +265 -5
  128. package/build/es/src/contacts-v4-contact.types.js +21 -0
  129. package/build/es/src/contacts-v4-contact.types.js.map +1 -1
  130. package/build/es/src/contacts-v4-contact.universal.d.ts +234 -155
  131. package/build/es/src/contacts-v4-contact.universal.js +122 -149
  132. package/build/es/src/contacts-v4-contact.universal.js.map +1 -1
  133. package/build/es/src/contacts-v4-extended-field.context.d.ts +7 -0
  134. package/build/es/src/contacts-v4-extended-field.context.js +52 -0
  135. package/build/es/src/contacts-v4-extended-field.context.js.map +1 -0
  136. package/build/es/src/contacts-v4-extended-field.http.d.ts +7 -14
  137. package/build/es/src/contacts-v4-extended-field.http.js +60 -70
  138. package/build/es/src/contacts-v4-extended-field.http.js.map +1 -1
  139. package/build/es/src/contacts-v4-extended-field.meta.d.ts +1 -1
  140. package/build/es/src/contacts-v4-extended-field.public.d.ts +2 -1
  141. package/build/es/src/contacts-v4-extended-field.public.js +1 -0
  142. package/build/es/src/contacts-v4-extended-field.public.js.map +1 -1
  143. package/build/es/src/contacts-v4-extended-field.types.d.ts +68 -1
  144. package/build/es/src/contacts-v4-extended-field.universal.d.ts +116 -30
  145. package/build/es/src/contacts-v4-extended-field.universal.js +53 -46
  146. package/build/es/src/contacts-v4-extended-field.universal.js.map +1 -1
  147. package/build/es/src/contacts-v4-label.context.d.ts +7 -0
  148. package/build/es/src/contacts-v4-label.context.js +52 -0
  149. package/build/es/src/contacts-v4-label.context.js.map +1 -0
  150. package/build/es/src/contacts-v4-label.http.d.ts +13 -14
  151. package/build/es/src/contacts-v4-label.http.js +66 -72
  152. package/build/es/src/contacts-v4-label.http.js.map +1 -1
  153. package/build/es/src/contacts-v4-label.meta.d.ts +1 -1
  154. package/build/es/src/contacts-v4-label.public.d.ts +6 -5
  155. package/build/es/src/contacts-v4-label.public.js +1 -0
  156. package/build/es/src/contacts-v4-label.public.js.map +1 -1
  157. package/build/es/src/contacts-v4-label.types.d.ts +76 -9
  158. package/build/es/src/contacts-v4-label.universal.d.ts +125 -40
  159. package/build/es/src/contacts-v4-label.universal.js +68 -58
  160. package/build/es/src/contacts-v4-label.universal.js.map +1 -1
  161. package/build/es/src/contacts-v4-submit-contact.context.d.ts +3 -0
  162. package/build/es/src/contacts-v4-submit-contact.context.js +12 -0
  163. package/build/es/src/contacts-v4-submit-contact.context.js.map +1 -0
  164. package/build/es/src/contacts-v4-submit-contact.http.js +20 -34
  165. package/build/es/src/contacts-v4-submit-contact.http.js.map +1 -1
  166. package/build/es/src/contacts-v4-submit-contact.meta.d.ts +1 -1
  167. package/build/es/src/contacts-v4-submit-contact.public.d.ts +2 -2
  168. package/build/es/src/contacts-v4-submit-contact.types.d.ts +8 -3
  169. package/build/es/src/contacts-v4-submit-contact.types.js.map +1 -1
  170. package/build/es/src/contacts-v4-submit-contact.universal.d.ts +8 -9
  171. package/build/es/src/contacts-v4-submit-contact.universal.js +11 -18
  172. package/build/es/src/contacts-v4-submit-contact.universal.js.map +1 -1
  173. package/build/es/src/crm-tasks-v2-task.context.d.ts +9 -0
  174. package/build/es/src/crm-tasks-v2-task.context.js +72 -0
  175. package/build/es/src/crm-tasks-v2-task.context.js.map +1 -0
  176. package/build/es/src/crm-tasks-v2-task.http.d.ts +60 -0
  177. package/build/es/src/crm-tasks-v2-task.http.js +258 -0
  178. package/build/es/src/crm-tasks-v2-task.http.js.map +1 -0
  179. package/build/es/src/crm-tasks-v2-task.meta.d.ts +27 -0
  180. package/build/es/src/crm-tasks-v2-task.meta.js +128 -0
  181. package/build/es/src/crm-tasks-v2-task.meta.js.map +1 -0
  182. package/build/es/src/crm-tasks-v2-task.public.d.ts +30 -0
  183. package/build/es/src/crm-tasks-v2-task.public.js +40 -0
  184. package/build/es/src/crm-tasks-v2-task.public.js.map +1 -0
  185. package/build/es/src/crm-tasks-v2-task.types.d.ts +430 -0
  186. package/build/es/src/crm-tasks-v2-task.types.js +26 -0
  187. package/build/es/src/crm-tasks-v2-task.types.js.map +1 -0
  188. package/build/es/src/crm-tasks-v2-task.universal.d.ts +678 -0
  189. package/build/es/src/crm-tasks-v2-task.universal.js +487 -0
  190. package/build/es/src/crm-tasks-v2-task.universal.js.map +1 -0
  191. package/build/es/src/ping-notifications-v3-notification.public.d.ts +1 -1
  192. package/build/es/src/ping-notifications-v3-notification.universal.js.map +1 -1
  193. package/context/package.json +6 -0
  194. package/package.json +12 -6
@@ -1,9 +1,3 @@
1
- export declare const __debug: {
2
- verboseLogging: {
3
- on: () => boolean;
4
- off: () => boolean;
5
- };
6
- };
7
1
  /** Dummy message for fqdn validation */
8
2
  export interface SubmitContact {
9
3
  /** Submit Contact Id */
@@ -143,15 +137,14 @@ export interface ContactPhone {
143
137
  /**
144
138
  * [ITU E.164-formatted](https://www.itu.int/rec/T-REC-E.164/)
145
139
  * phone number.
146
- * Automatically generated using `phone` and `countryCode`,
147
- * as long as both of those values are valid.
140
+ * Automatically generated using `phone` and `countryCode`, pending both values are valid.
148
141
  * @readonly
149
142
  */
150
143
  e164Phone?: string | null;
151
144
  /**
152
145
  * Whether this is the contact's primary phone number.
153
146
  * When changing `primary` to `true` for a phone,
154
- * the contact's other phones become `false`.
147
+ * the contact's `primary` field for other phones becomes `false`.
155
148
  * It also affects the subscription status to SMS messages that are decided based on the primary phone.
156
149
  */
157
150
  primary?: boolean | null;
@@ -397,6 +390,12 @@ export declare enum ContactActivityType {
397
390
  /** "contact/phone-subscription-unsubscribe" */
398
391
  PHONE_SUBSCRIPTION_UNSUBSCRIBE = "PHONE_SUBSCRIPTION_UNSUBSCRIBE"
399
392
  }
393
+ export interface ActivityIcon {
394
+ /** Icon name */
395
+ name?: string | null;
396
+ /** Icon url */
397
+ url?: string | null;
398
+ }
400
399
  export interface SubmitContactOptions {
401
400
  /**
402
401
  * Overrides `visitorId`
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -28,22 +32,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
28
32
  });
29
33
  };
30
34
  Object.defineProperty(exports, "__esModule", { value: true });
31
- exports.appendOrCreateContact = exports.ContactSourceType = exports.SubmitOperation = exports.IdentityType = exports.ContactActivityType = exports.ImageProvider = exports.SubdivisionType = exports.AddressTag = exports.PhoneTag = exports.EmailTag = exports.__debug = void 0;
35
+ exports.appendOrCreateContact = exports.ContactSourceType = exports.SubmitOperation = exports.IdentityType = exports.ContactActivityType = exports.ImageProvider = exports.SubdivisionType = exports.AddressTag = exports.PhoneTag = exports.EmailTag = void 0;
32
36
  const velo_1 = require("@wix/metro-runtime/velo");
37
+ const transform_error_1 = require("@wix/sdk-runtime/transform-error");
33
38
  const ambassadorWixContactsV4SubmitContact = __importStar(require("./contacts-v4-submit-contact.http"));
34
- let __verbose = false;
35
- function __log(...args) {
36
- __verbose && console.log(...args);
37
- }
38
- function __inspect(obj) {
39
- return obj;
40
- }
41
- exports.__debug = {
42
- verboseLogging: {
43
- on: () => (__verbose = true),
44
- off: () => (__verbose = false),
45
- },
46
- };
47
39
  const _toVeloEntity = '$';
48
40
  const _fromVeloEntity = '$';
49
41
  var EmailTag;
@@ -52,7 +44,7 @@ var EmailTag;
52
44
  EmailTag["MAIN"] = "MAIN";
53
45
  EmailTag["HOME"] = "HOME";
54
46
  EmailTag["WORK"] = "WORK";
55
- })(EmailTag = exports.EmailTag || (exports.EmailTag = {}));
47
+ })(EmailTag || (exports.EmailTag = EmailTag = {}));
56
48
  var PhoneTag;
57
49
  (function (PhoneTag) {
58
50
  PhoneTag["UNTAGGED"] = "UNTAGGED";
@@ -61,7 +53,7 @@ var PhoneTag;
61
53
  PhoneTag["MOBILE"] = "MOBILE";
62
54
  PhoneTag["WORK"] = "WORK";
63
55
  PhoneTag["FAX"] = "FAX";
64
- })(PhoneTag = exports.PhoneTag || (exports.PhoneTag = {}));
56
+ })(PhoneTag || (exports.PhoneTag = PhoneTag = {}));
65
57
  var AddressTag;
66
58
  (function (AddressTag) {
67
59
  AddressTag["UNTAGGED"] = "UNTAGGED";
@@ -69,7 +61,7 @@ var AddressTag;
69
61
  AddressTag["WORK"] = "WORK";
70
62
  AddressTag["BILLING"] = "BILLING";
71
63
  AddressTag["SHIPPING"] = "SHIPPING";
72
- })(AddressTag = exports.AddressTag || (exports.AddressTag = {}));
64
+ })(AddressTag || (exports.AddressTag = AddressTag = {}));
73
65
  var SubdivisionType;
74
66
  (function (SubdivisionType) {
75
67
  SubdivisionType["UNKNOWN_SUBDIVISION_TYPE"] = "UNKNOWN_SUBDIVISION_TYPE";
@@ -85,7 +77,7 @@ var SubdivisionType;
85
77
  SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_5"] = "ADMINISTRATIVE_AREA_LEVEL_5";
86
78
  /** ADMINISTRATIVE_AREA_LEVEL_0. Indicates the national political entity, and is typically the highest order type returned by the Geocoder. */
87
79
  SubdivisionType["COUNTRY"] = "COUNTRY";
88
- })(SubdivisionType = exports.SubdivisionType || (exports.SubdivisionType = {}));
80
+ })(SubdivisionType || (exports.SubdivisionType = SubdivisionType = {}));
89
81
  var ImageProvider;
90
82
  (function (ImageProvider) {
91
83
  ImageProvider["UNKNOWN"] = "UNKNOWN";
@@ -93,7 +85,7 @@ var ImageProvider;
93
85
  ImageProvider["EXTERNAL"] = "EXTERNAL";
94
86
  /** Stored in wix media platform, Must be uploaded by using `GeneratePictureUploadUrl` */
95
87
  ImageProvider["WIX_MEDIA"] = "WIX_MEDIA";
96
- })(ImageProvider = exports.ImageProvider || (exports.ImageProvider = {}));
88
+ })(ImageProvider || (exports.ImageProvider = ImageProvider = {}));
97
89
  var ContactActivityType;
98
90
  (function (ContactActivityType) {
99
91
  /** Last visit to your site (any unknown activity) */
@@ -177,7 +169,7 @@ var ContactActivityType;
177
169
  ContactActivityType["PHONE_SUBSCRIPTION_NOT_SET"] = "PHONE_SUBSCRIPTION_NOT_SET";
178
170
  /** "contact/phone-subscription-unsubscribe" */
179
171
  ContactActivityType["PHONE_SUBSCRIPTION_UNSUBSCRIBE"] = "PHONE_SUBSCRIPTION_UNSUBSCRIBE";
180
- })(ContactActivityType = exports.ContactActivityType || (exports.ContactActivityType = {}));
172
+ })(ContactActivityType || (exports.ContactActivityType = ContactActivityType = {}));
181
173
  var IdentityType;
182
174
  (function (IdentityType) {
183
175
  IdentityType["UNKNOWN"] = "UNKNOWN";
@@ -187,13 +179,13 @@ var IdentityType;
187
179
  IdentityType["MEMBER"] = "MEMBER";
188
180
  /** Matching contact is a member, Merge logic won't be applied */
189
181
  IdentityType["NOT_AUTHENTICATED_MEMBER"] = "NOT_AUTHENTICATED_MEMBER";
190
- })(IdentityType = exports.IdentityType || (exports.IdentityType = {}));
182
+ })(IdentityType || (exports.IdentityType = IdentityType = {}));
191
183
  var SubmitOperation;
192
184
  (function (SubmitOperation) {
193
185
  SubmitOperation["UNKNOWN"] = "UNKNOWN";
194
186
  SubmitOperation["CREATE"] = "CREATE";
195
187
  SubmitOperation["UPDATE"] = "UPDATE";
196
- })(SubmitOperation = exports.SubmitOperation || (exports.SubmitOperation = {}));
188
+ })(SubmitOperation || (exports.SubmitOperation = SubmitOperation = {}));
197
189
  var ContactSourceType;
198
190
  (function (ContactSourceType) {
199
191
  ContactSourceType["OTHER"] = "OTHER";
@@ -215,7 +207,7 @@ var ContactSourceType;
215
207
  ContactSourceType["WIX_STORES"] = "WIX_STORES";
216
208
  ContactSourceType["WIX_CODE"] = "WIX_CODE";
217
209
  ContactSourceType["HOPP"] = "HOPP";
218
- })(ContactSourceType = exports.ContactSourceType || (exports.ContactSourceType = {}));
210
+ })(ContactSourceType || (exports.ContactSourceType = ContactSourceType = {}));
219
211
  const _contactAddress = { address: 'wix.common.Address' };
220
212
  const _contactAddressesWrapper = { items: '_contactAddress' };
221
213
  const _contactInfo = {
@@ -271,7 +263,6 @@ function appendOrCreateContact(options) {
271
263
  });
272
264
  const payload = toAmbassadorRequest([options]);
273
265
  const reqOpts = ambassadorWixContactsV4SubmitContact.submitContact(payload);
274
- __log(`"SubmitContact" sending request with: ${__inspect(reqOpts)}`);
275
266
  (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
276
267
  try {
277
268
  const result = yield httpClient.request(reqOpts);
@@ -279,9 +270,15 @@ function appendOrCreateContact(options) {
279
270
  return fromJSON(result.data);
280
271
  }
281
272
  catch (err) {
282
- const transformedError = (0, velo_1.transformError)(err, requestTransformation, [
283
- 'options',
284
- ]);
273
+ const transformedError = (0, transform_error_1.transformError)(err, {
274
+ spreadPathsToArguments: {},
275
+ explicitPathsToArguments: {
276
+ info: '$[0].info',
277
+ passThroughData: '$[0].passThroughData',
278
+ contactId: '$[0].contactId',
279
+ },
280
+ singleArgumentUnchanged: false,
281
+ }, ['options']);
285
282
  (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
286
283
  throw transformedError;
287
284
  }
@@ -1 +1 @@
1
- {"version":3,"file":"contacts-v4-submit-contact.universal.js","sourceRoot":"","sources":["../../../src/contacts-v4-submit-contact.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAqE;AAErE,wGAA0F;AAE1F,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAA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MAAM,EAAE,QAAQ,EAAE,GAAG,IAAA,iBAAU,EAAC;YAC9B,UAAU,EAAE,sBAAsB;YAClC,UAAU,EAAE,EAAE;YACd,kBAAkB,EAAE;gBAClB,KAAK,EAAE,EAAE;gBACT,cAAc,EAAE,aAAa;aAC9B;YACD,oBAAoB,EAAE,sBAAsB;SAC7C,CAAC,CAAC;QAEH,MAAM,OAAO,GAAG,mBAAmB,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;QAE/C,MAAM,OAAO,GAAG,oCAAoC,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QAE5E,KAAK,CAAC,yCAAyC,SAAS,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QAErE,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,UAAU,+CAAvB,WAAW,CAAgB,CAAC;QAC5B,IAAI;YACF,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;YACjD,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,SAAS,+CAAtB,WAAW,EAAc,MAAM,CAAC,CAAC;YAEjC,OAAO,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAQ,CAAC;SACrC;QAAC,OAAO,GAAQ,EAAE;YACjB,MAAM,gBAAgB,GAAG,IAAA,qBAAc,EAAC,GAAG,EAAE,qBAAqB,EAAE;gBAClE,SAAS;aACV,CAAC,CAAC;YACH,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,+CAApB,WAAW,EAAY,GAAG,CAAC,CAAC;YAE5B,MAAM,gBAAgB,CAAC;SACxB;;CACF;AA7DD,sDA6DC"}
1
+ {"version":3,"file":"contacts-v4-submit-contact.universal.js","sourceRoot":"","sources":["../../../src/contacts-v4-submit-contact.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAqD;AACrD,sEAAuF;AAEvF,wGAA0F;AAE1F,MAAM,a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AAO,CAAC,OAAO,CAAC,CAAC;YACjD,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,SAAS,4DAAG,MAAM,CAAC,CAAC;YAEjC,OAAO,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAQ,CAAC;QACtC,CAAC;QAAC,OAAO,GAAQ,EAAE,CAAC;YAClB,MAAM,gBAAgB,GAAG,IAAA,gCAAiB,EACxC,GAAG,EACH;gBACE,sBAAsB,EAAE,EAAE;gBAC1B,wBAAwB,EAAE;oBACxB,IAAI,EAAE,WAAW;oBACjB,eAAe,EAAE,sBAAsB;oBACvC,SAAS,EAAE,gBAAgB;iBAC5B;gBACD,uBAAuB,EAAE,KAAK;aAC/B,EACD,CAAC,SAAS,CAAC,CACZ,CAAC;YACF,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,4DAAG,GAAG,CAAC,CAAC;YAE5B,MAAM,gBAAgB,CAAC;QACzB,CAAC;;CACF;AArED,sDAqEC"}
@@ -0,0 +1,9 @@
1
+ import { createTask as publicCreateTask, getTask as publicGetTask, updateTask as publicUpdateTask, deleteTask as publicDeleteTask, queryTasks as publicQueryTasks, countTasks as publicCountTasks, moveTaskAfter as publicMoveTaskAfter } from './crm-tasks-v2-task.public';
2
+ import { BuildRESTFunction } from '@wix/sdk-types';
3
+ export declare const createTask: BuildRESTFunction<typeof publicCreateTask>;
4
+ export declare const getTask: BuildRESTFunction<typeof publicGetTask>;
5
+ export declare const updateTask: BuildRESTFunction<typeof publicUpdateTask>;
6
+ export declare const deleteTask: BuildRESTFunction<typeof publicDeleteTask>;
7
+ export declare const queryTasks: BuildRESTFunction<typeof publicQueryTasks>;
8
+ export declare const countTasks: BuildRESTFunction<typeof publicCountTasks>;
9
+ export declare const moveTaskAfter: BuildRESTFunction<typeof publicMoveTaskAfter>;
@@ -0,0 +1,82 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.moveTaskAfter = exports.countTasks = exports.queryTasks = exports.deleteTask = exports.updateTask = exports.getTask = exports.createTask = void 0;
4
+ const crm_tasks_v2_task_public_1 = require("./crm-tasks-v2-task.public");
5
+ const createTask = (...args) => {
6
+ // @ts-expect-error
7
+ if (!globalThis.__wix_context__) {
8
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
9
+ }
10
+ // @ts-expect-error
11
+ return globalThis.__wix_context__
12
+ .initWixModules(crm_tasks_v2_task_public_1.createTask)
13
+ .apply(undefined, args);
14
+ };
15
+ exports.createTask = createTask;
16
+ const getTask = (...args) => {
17
+ // @ts-expect-error
18
+ if (!globalThis.__wix_context__) {
19
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
20
+ }
21
+ // @ts-expect-error
22
+ return globalThis.__wix_context__
23
+ .initWixModules(crm_tasks_v2_task_public_1.getTask)
24
+ .apply(undefined, args);
25
+ };
26
+ exports.getTask = getTask;
27
+ const updateTask = (...args) => {
28
+ // @ts-expect-error
29
+ if (!globalThis.__wix_context__) {
30
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
31
+ }
32
+ // @ts-expect-error
33
+ return globalThis.__wix_context__
34
+ .initWixModules(crm_tasks_v2_task_public_1.updateTask)
35
+ .apply(undefined, args);
36
+ };
37
+ exports.updateTask = updateTask;
38
+ const deleteTask = (...args) => {
39
+ // @ts-expect-error
40
+ if (!globalThis.__wix_context__) {
41
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
42
+ }
43
+ // @ts-expect-error
44
+ return globalThis.__wix_context__
45
+ .initWixModules(crm_tasks_v2_task_public_1.deleteTask)
46
+ .apply(undefined, args);
47
+ };
48
+ exports.deleteTask = deleteTask;
49
+ const queryTasks = (...args) => {
50
+ // @ts-expect-error
51
+ if (!globalThis.__wix_context__) {
52
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
53
+ }
54
+ // @ts-expect-error
55
+ return globalThis.__wix_context__
56
+ .initWixModules(crm_tasks_v2_task_public_1.queryTasks)
57
+ .apply(undefined, args);
58
+ };
59
+ exports.queryTasks = queryTasks;
60
+ const countTasks = (...args) => {
61
+ // @ts-expect-error
62
+ if (!globalThis.__wix_context__) {
63
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
64
+ }
65
+ // @ts-expect-error
66
+ return globalThis.__wix_context__
67
+ .initWixModules(crm_tasks_v2_task_public_1.countTasks)
68
+ .apply(undefined, args);
69
+ };
70
+ exports.countTasks = countTasks;
71
+ const moveTaskAfter = (...args) => {
72
+ // @ts-expect-error
73
+ if (!globalThis.__wix_context__) {
74
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
75
+ }
76
+ // @ts-expect-error
77
+ return globalThis.__wix_context__
78
+ .initWixModules(crm_tasks_v2_task_public_1.moveTaskAfter)
79
+ .apply(undefined, args);
80
+ };
81
+ exports.moveTaskAfter = moveTaskAfter;
82
+ //# sourceMappingURL=crm-tasks-v2-task.context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"crm-tasks-v2-task.context.js","sourceRoot":"","sources":["../../../src/crm-tasks-v2-task.context.ts"],"names":[],"mappings":";;;AAAA,yEAQoC;AAG7B,MAAM,UAAU,GAA+C,CACpE,GAAG,IAAS,EACZ,EAAE;IACF,mBAAmB;IACnB,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,mBAAmB;IACnB,OAAO,UAAU,CAAC,eAAe;SAC9B,cAAc,CAAC,qCAAgB,CAAC;SAChC,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AAbW,QAAA,UAAU,cAarB;AACK,MAAM,OAAO,GAA4C,CAC9D,GAAG,IAAS,EACZ,EAAE;IACF,mBAAmB;IACnB,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK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AAU,cAarB;AACK,MAAM,UAAU,GAA+C,CACpE,GAAG,IAAS,EACZ,EAAE;IACF,mBAAmB;IACnB,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,mBAAmB;IACnB,OAAO,UAAU,CAAC,eAAe;SAC9B,cAAc,CAAC,qCAAgB,CAAC;SAChC,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AAbW,QAAA,UAAU,cAarB;AACK,MAAM,aAAa,GAAkD,CAC1E,GAAG,IAAS,EACZ,EAAE;IACF,mBAAmB;IACnB,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,mBAAmB;IACnB,OAAO,UAAU,CAAC,eAAe;SAC9B,cAAc,CAAC,wCAAmB,CAAC;SACnC,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AAbW,QAAA,aAAa,iBAaxB"}
@@ -0,0 +1,60 @@
1
+ import { RequestOptionsFactory } from '@wix/sdk-types';
2
+ import { CountTasksRequest, CountTasksResponse, CreateTaskRequest, CreateTaskResponse, DeleteTaskRequest, DeleteTaskResponse, GetTaskRequest, GetTaskResponse, MoveTaskAfterRequest, MoveTaskAfterResponse, QueryTasksRequest, QueryTasksResponse, UpdateTaskRequest, UpdateTaskResponse, CreateTaskResponseNonNullableFields, GetTaskResponseNonNullableFields, UpdateTaskResponseNonNullableFields, QueryTasksResponseNonNullableFields, CountTasksResponseNonNullableFields } from './crm-tasks-v2-task.types';
3
+ /**
4
+ * Creates a new task.
5
+ *
6
+ * All fields in the `task` object are optional. If you don't pass any fields in the `task` object, the function returns a task with the following core properties:
7
+ * - `_id`
8
+ * - `_createdDate`
9
+ * - `_updatedDate`
10
+ * - `status`
11
+ * - `source`
12
+ * - `revision`
13
+ *
14
+ */
15
+ export declare function createTask(payload: CreateTaskRequest): RequestOptionsFactory<CreateTaskResponse & CreateTaskResponseNonNullableFields>;
16
+ /** Retrieves a task by ID. */
17
+ export declare function getTask(payload: GetTaskRequest): RequestOptionsFactory<GetTaskResponse & GetTaskResponseNonNullableFields>;
18
+ /**
19
+ * Updates a task.
20
+ *
21
+ * Each time the task is updated, `revision` increments by 1.
22
+ * The existing `revision` must be included when updating the task.
23
+ * This ensures you're working with the latest task
24
+ * and prevents unintended overwrites.
25
+ */
26
+ export declare function updateTask(payload: UpdateTaskRequest): RequestOptionsFactory<UpdateTaskResponse & UpdateTaskResponseNonNullableFields>;
27
+ /** Deletes a task by ID. */
28
+ export declare function deleteTask(payload: DeleteTaskRequest): RequestOptionsFactory<DeleteTaskResponse>;
29
+ /**
30
+ * Creates a query to retrieve a list of tasks.
31
+ *
32
+ * The `queryTasks()` function builds a query to retrieve a list of tasks and returns a `TasksQueryBuilder` object.
33
+ *
34
+ * The returned object contains the query definition which is typically used to run the query using the `find()` function. You can refine the query by chaining `TasksQueryBuilder` functions onto the query. `TasksQueryBuilder` functions enable you to sort, filter, and control the results that `queryTasks()` returns.
35
+ *
36
+ * `queryTasks()` runs with these `TasksQueryBuilder` defaults, which you can override:
37
+ * - `limit(50)`
38
+ * - `descending('_createdDate')`
39
+ *
40
+ * The functions that are chained to `queryTasks()` are applied in the order they are called. For example, if you apply `ascending('_createdDate')` and then `descending('_updatedDate')`, the results are sorted first by the created date and then, if there are multiple results with the same date, the items are sorted by the updated date.
41
+ *
42
+ * The following `TasksQueryBuilder` functions are supported for `queryTasks()`. For a full description of the `task` object, see the object returned for the `items` property in `TasksQueryResult`.
43
+ */
44
+ export declare function queryTasks(payload: QueryTasksRequest): RequestOptionsFactory<QueryTasksResponse & QueryTasksResponseNonNullableFields>;
45
+ /**
46
+ * Counts the number of tasks.
47
+ *
48
+ *
49
+ * This endpoint returns the count of all tasks regardless of the task `status`.
50
+ *
51
+ * Optionally, you can pass a filter to count only tasks based
52
+ * on specified criteria.
53
+ */
54
+ export declare function countTasks(payload: CountTasksRequest): RequestOptionsFactory<CountTasksResponse & CountTasksResponseNonNullableFields>;
55
+ /**
56
+ * Moves a task specified by ID to be placed after another task in the display.
57
+ *
58
+ * You can reposition a task to be first in the display by ommitting `beforeTaskId`.
59
+ */
60
+ export declare function moveTaskAfter(payload: MoveTaskAfterRequest): RequestOptionsFactory<MoveTaskAfterResponse>;
@@ -0,0 +1,268 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.moveTaskAfter = exports.countTasks = exports.queryTasks = exports.deleteTask = exports.updateTask = exports.getTask = exports.createTask = void 0;
4
+ const metro_runtime_1 = require("@wix/metro-runtime");
5
+ const timestamp_1 = require("@wix/sdk-runtime/transformations/timestamp");
6
+ const timestamp_2 = require("@wix/sdk-runtime/transformations/timestamp");
7
+ const field_mask_1 = require("@wix/sdk-runtime/transformations/field-mask");
8
+ const transform_paths_1 = require("@wix/sdk-runtime/transformations/transform-paths");
9
+ const metro_runtime_2 = require("@wix/metro-runtime");
10
+ function resolveWixCrmTasksV2TasksUrl(opts) {
11
+ const domainToMappings = {
12
+ 'manage._base_domain_': [
13
+ {
14
+ srcPath: '/_api/tasks-app',
15
+ destPath: '',
16
+ },
17
+ ],
18
+ 'www.wixapis.com': [
19
+ {
20
+ srcPath: '/crm/tasks/v2/tasks',
21
+ destPath: '/v2/tasks',
22
+ },
23
+ ],
24
+ };
25
+ return (0, metro_runtime_2.resolveUrl)(Object.assign(opts, { domainToMappings }));
26
+ }
27
+ /**
28
+ * Creates a new task.
29
+ *
30
+ * All fields in the `task` object are optional. If you don't pass any fields in the `task` object, the function returns a task with the following core properties:
31
+ * - `_id`
32
+ * - `_createdDate`
33
+ * - `_updatedDate`
34
+ * - `status`
35
+ * - `source`
36
+ * - `revision`
37
+ *
38
+ */
39
+ function createTask(payload) {
40
+ function __createTask({ host }) {
41
+ const serializedData = (0, transform_paths_1.transformPaths)(payload, [
42
+ {
43
+ transformFn: timestamp_1.transformSDKTimestampToRESTTimestamp,
44
+ paths: [
45
+ { path: 'task.createdDate' },
46
+ { path: 'task.updatedDate' },
47
+ { path: 'task.dueDate' },
48
+ ],
49
+ },
50
+ ]);
51
+ const metadata = {
52
+ entityFqdn: 'wix.crm.tasks.v2.task',
53
+ method: 'POST',
54
+ methodFqn: 'wix.crm.tasks.v2.Tasks.CreateTask',
55
+ url: resolveWixCrmTasksV2TasksUrl({
56
+ protoPath: '/v2/tasks',
57
+ data: serializedData,
58
+ host,
59
+ }),
60
+ data: serializedData,
61
+ transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
62
+ {
63
+ transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
64
+ paths: [
65
+ { path: 'task.createdDate' },
66
+ { path: 'task.updatedDate' },
67
+ { path: 'task.dueDate' },
68
+ ],
69
+ },
70
+ ]),
71
+ };
72
+ return metadata;
73
+ }
74
+ return __createTask;
75
+ }
76
+ exports.createTask = createTask;
77
+ /** Retrieves a task by ID. */
78
+ function getTask(payload) {
79
+ function __getTask({ host }) {
80
+ const metadata = {
81
+ entityFqdn: 'wix.crm.tasks.v2.task',
82
+ method: 'GET',
83
+ methodFqn: 'wix.crm.tasks.v2.Tasks.GetTask',
84
+ url: resolveWixCrmTasksV2TasksUrl({
85
+ protoPath: '/v2/tasks/{taskId}',
86
+ data: payload,
87
+ host,
88
+ }),
89
+ params: (0, metro_runtime_1.toURLSearchParams)(payload),
90
+ transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
91
+ {
92
+ transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
93
+ paths: [
94
+ { path: 'task.createdDate' },
95
+ { path: 'task.updatedDate' },
96
+ { path: 'task.dueDate' },
97
+ ],
98
+ },
99
+ ]),
100
+ };
101
+ return metadata;
102
+ }
103
+ return __getTask;
104
+ }
105
+ exports.getTask = getTask;
106
+ /**
107
+ * Updates a task.
108
+ *
109
+ * Each time the task is updated, `revision` increments by 1.
110
+ * The existing `revision` must be included when updating the task.
111
+ * This ensures you're working with the latest task
112
+ * and prevents unintended overwrites.
113
+ */
114
+ function updateTask(payload) {
115
+ function __updateTask({ host }) {
116
+ const serializedData = (0, transform_paths_1.transformPaths)(payload, [
117
+ {
118
+ transformFn: field_mask_1.transformSDKFieldMaskToRESTFieldMask,
119
+ paths: [{ path: 'mask' }],
120
+ },
121
+ {
122
+ transformFn: timestamp_1.transformSDKTimestampToRESTTimestamp,
123
+ paths: [
124
+ { path: 'task.createdDate' },
125
+ { path: 'task.updatedDate' },
126
+ { path: 'task.dueDate' },
127
+ ],
128
+ },
129
+ ]);
130
+ const metadata = {
131
+ entityFqdn: 'wix.crm.tasks.v2.task',
132
+ method: 'PATCH',
133
+ methodFqn: 'wix.crm.tasks.v2.Tasks.UpdateTask',
134
+ url: resolveWixCrmTasksV2TasksUrl({
135
+ protoPath: '/v2/tasks/{task.id}',
136
+ data: serializedData,
137
+ host,
138
+ }),
139
+ data: serializedData,
140
+ transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
141
+ {
142
+ transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
143
+ paths: [
144
+ { path: 'task.createdDate' },
145
+ { path: 'task.updatedDate' },
146
+ { path: 'task.dueDate' },
147
+ ],
148
+ },
149
+ ]),
150
+ };
151
+ return metadata;
152
+ }
153
+ return __updateTask;
154
+ }
155
+ exports.updateTask = updateTask;
156
+ /** Deletes a task by ID. */
157
+ function deleteTask(payload) {
158
+ function __deleteTask({ host }) {
159
+ const metadata = {
160
+ entityFqdn: 'wix.crm.tasks.v2.task',
161
+ method: 'DELETE',
162
+ methodFqn: 'wix.crm.tasks.v2.Tasks.DeleteTask',
163
+ url: resolveWixCrmTasksV2TasksUrl({
164
+ protoPath: '/v2/tasks/{taskId}',
165
+ data: payload,
166
+ host,
167
+ }),
168
+ params: (0, metro_runtime_1.toURLSearchParams)(payload),
169
+ };
170
+ return metadata;
171
+ }
172
+ return __deleteTask;
173
+ }
174
+ exports.deleteTask = deleteTask;
175
+ /**
176
+ * Creates a query to retrieve a list of tasks.
177
+ *
178
+ * The `queryTasks()` function builds a query to retrieve a list of tasks and returns a `TasksQueryBuilder` object.
179
+ *
180
+ * The returned object contains the query definition which is typically used to run the query using the `find()` function. You can refine the query by chaining `TasksQueryBuilder` functions onto the query. `TasksQueryBuilder` functions enable you to sort, filter, and control the results that `queryTasks()` returns.
181
+ *
182
+ * `queryTasks()` runs with these `TasksQueryBuilder` defaults, which you can override:
183
+ * - `limit(50)`
184
+ * - `descending('_createdDate')`
185
+ *
186
+ * The functions that are chained to `queryTasks()` are applied in the order they are called. For example, if you apply `ascending('_createdDate')` and then `descending('_updatedDate')`, the results are sorted first by the created date and then, if there are multiple results with the same date, the items are sorted by the updated date.
187
+ *
188
+ * The following `TasksQueryBuilder` functions are supported for `queryTasks()`. For a full description of the `task` object, see the object returned for the `items` property in `TasksQueryResult`.
189
+ */
190
+ function queryTasks(payload) {
191
+ function __queryTasks({ host }) {
192
+ const metadata = {
193
+ entityFqdn: 'wix.crm.tasks.v2.task',
194
+ method: 'POST',
195
+ methodFqn: 'wix.crm.tasks.v2.Tasks.QueryTasks',
196
+ url: resolveWixCrmTasksV2TasksUrl({
197
+ protoPath: '/v2/tasks/query',
198
+ data: payload,
199
+ host,
200
+ }),
201
+ data: payload,
202
+ transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
203
+ {
204
+ transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
205
+ paths: [
206
+ { path: 'tasks.createdDate' },
207
+ { path: 'tasks.updatedDate' },
208
+ { path: 'tasks.dueDate' },
209
+ ],
210
+ },
211
+ ]),
212
+ };
213
+ return metadata;
214
+ }
215
+ return __queryTasks;
216
+ }
217
+ exports.queryTasks = queryTasks;
218
+ /**
219
+ * Counts the number of tasks.
220
+ *
221
+ *
222
+ * This endpoint returns the count of all tasks regardless of the task `status`.
223
+ *
224
+ * Optionally, you can pass a filter to count only tasks based
225
+ * on specified criteria.
226
+ */
227
+ function countTasks(payload) {
228
+ function __countTasks({ host }) {
229
+ const metadata = {
230
+ entityFqdn: 'wix.crm.tasks.v2.task',
231
+ method: 'POST',
232
+ methodFqn: 'wix.crm.tasks.v2.Tasks.CountTasks',
233
+ url: resolveWixCrmTasksV2TasksUrl({
234
+ protoPath: '/v2/tasks/count',
235
+ data: payload,
236
+ host,
237
+ }),
238
+ data: payload,
239
+ };
240
+ return metadata;
241
+ }
242
+ return __countTasks;
243
+ }
244
+ exports.countTasks = countTasks;
245
+ /**
246
+ * Moves a task specified by ID to be placed after another task in the display.
247
+ *
248
+ * You can reposition a task to be first in the display by ommitting `beforeTaskId`.
249
+ */
250
+ function moveTaskAfter(payload) {
251
+ function __moveTaskAfter({ host }) {
252
+ const metadata = {
253
+ entityFqdn: 'wix.crm.tasks.v2.task',
254
+ method: 'POST',
255
+ methodFqn: 'wix.crm.tasks.v2.Tasks.MoveTaskAfter',
256
+ url: resolveWixCrmTasksV2TasksUrl({
257
+ protoPath: '/v2/tasks/{taskId}/move-after',
258
+ data: payload,
259
+ host,
260
+ }),
261
+ data: payload,
262
+ };
263
+ return metadata;
264
+ }
265
+ return __moveTaskAfter;
266
+ }
267
+ exports.moveTaskAfter = moveTaskAfter;
268
+ //# sourceMappingURL=crm-tasks-v2-task.http.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"crm-tasks-v2-task.http.js","sourceRoot":"","sources":["../../../src/crm-tasks-v2-task.http.ts"],"names":[],"mappings":";;;AAAA,sDAAuD;AACvD,0EAAkG;AAClG,0EAAkG;AAClG,4EAAmG;AACnG,sFAAkF;AAClF,sDAAgD;AAyBhD,SAAS,4BAA4B,CACnC,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,iBAAiB;gBAC1B,QAAQ,EAAE,EAAE;aACb;SACF;QACD,iBAAiB,EAAE;YACjB;gBACE,OA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