@wix/crm 1.0.26 → 1.0.28

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 (27) hide show
  1. package/build/cjs/src/contacts-v4-extended-field.http.d.ts +41 -12
  2. package/build/cjs/src/contacts-v4-extended-field.http.js +41 -12
  3. package/build/cjs/src/contacts-v4-extended-field.http.js.map +1 -1
  4. package/build/cjs/src/contacts-v4-extended-field.types.d.ts +1 -1
  5. package/build/cjs/src/contacts-v4-extended-field.universal.d.ts +73 -65
  6. package/build/cjs/src/contacts-v4-extended-field.universal.js +44 -24
  7. package/build/cjs/src/contacts-v4-extended-field.universal.js.map +1 -1
  8. package/build/cjs/src/contacts-v4-label.universal.d.ts +4 -24
  9. package/build/cjs/src/contacts-v4-label.universal.js +0 -4
  10. package/build/cjs/src/contacts-v4-label.universal.js.map +1 -1
  11. package/build/cjs/src/crm-tasks-v1-task.universal.d.ts +33 -32
  12. package/build/cjs/src/crm-tasks-v1-task.universal.js +5 -4
  13. package/build/cjs/src/crm-tasks-v1-task.universal.js.map +1 -1
  14. package/build/es/src/contacts-v4-extended-field.http.d.ts +41 -12
  15. package/build/es/src/contacts-v4-extended-field.http.js +41 -12
  16. package/build/es/src/contacts-v4-extended-field.http.js.map +1 -1
  17. package/build/es/src/contacts-v4-extended-field.types.d.ts +1 -1
  18. package/build/es/src/contacts-v4-extended-field.universal.d.ts +73 -65
  19. package/build/es/src/contacts-v4-extended-field.universal.js +44 -24
  20. package/build/es/src/contacts-v4-extended-field.universal.js.map +1 -1
  21. package/build/es/src/contacts-v4-label.universal.d.ts +4 -24
  22. package/build/es/src/contacts-v4-label.universal.js +0 -4
  23. package/build/es/src/contacts-v4-label.universal.js.map +1 -1
  24. package/build/es/src/crm-tasks-v1-task.universal.d.ts +33 -32
  25. package/build/es/src/crm-tasks-v1-task.universal.js +5 -4
  26. package/build/es/src/crm-tasks-v1-task.universal.js.map +1 -1
  27. package/package.json +2 -2
@@ -65,12 +65,14 @@ function resolveComWixpressContactsFieldsV4ContactExtendedFieldsServiceV4Url(opt
65
65
  /**
66
66
  * Retrieves a custom field with a given name, or creates one if it doesn't exist.
67
67
  *
68
- * Successful calls to this endpoint always return a field,
69
- * which can be passed to subsequent requests.
68
+ * The `findOrCreateExtendedField()` function returns a Promise that resolves when the specified custom field is found or created.
69
+ *
70
+ * Successful calls to `findOrCreateExtendedField()` always return an extended field, which can be passed to subsequent function calls.
71
+ *
72
+ * To find an existing extended field without potentially creating a new one, use [`getExtendedField()`](#getextendedfield) or [`queryExtendedFields()`](#queryextendedfields).
73
+ *
74
+ * >**Note:** Only visitors with **Manage Contacts** permissions can find or create extended fields.
70
75
  *
71
- * To find an existing custom field without potentially creating a new one, use
72
- * [Get Extended Field](https:dev.wix.com/api/rest/contacts/extended-fields/get-extended-field) or
73
- * [List Extended Fields](https:dev.wix.com/api/rest/contacts/extended-fields/list-extended-fields).
74
76
  */
75
77
  export function findOrCreateExtendedField(payload) {
76
78
  const { toJSON: toReq, fromJSON: fromReq } = serializer(_findOrCreateExtendedFieldRequest, {});
@@ -96,7 +98,13 @@ export function findOrCreateExtendedField(payload) {
96
98
  __findOrCreateExtendedField.fromReq = fromReq;
97
99
  return __findOrCreateExtendedField;
98
100
  }
99
- /** Retrieves an extended field. */
101
+ /**
102
+ * Retrieves an extended field.
103
+ *
104
+ * The `getExtendedField()` function returns a Promise that resolves when the extended field is retrieved.
105
+ *
106
+ * >**Note:** Only visitors with **Manage Contacts** permissions can retrieve extended fields.
107
+ */
100
108
  export function getExtendedField(payload) {
101
109
  const { toJSON: toReq, fromJSON: fromReq } = serializer(_getExtendedFieldRequest, {});
102
110
  const { fromJSON: fromRes } = serializer(_getExtendedFieldResponse, {
@@ -121,7 +129,13 @@ export function getExtendedField(payload) {
121
129
  __getExtendedField.fromReq = fromReq;
122
130
  return __getExtendedField;
123
131
  }
124
- /** Updates an extended field's specified properties. */
132
+ /**
133
+ * Renames an extended field.
134
+ *
135
+ * The `renameExtendedField()` function returns a Promise that resolves when the specified extended field's display name is changed
136
+ *
137
+ * > **Note:** Only visitors with **Manage Contacts** permissions can rename extended fields.
138
+ */
125
139
  export function updateExtendedField(payload) {
126
140
  const { toJSON: toReq, fromJSON: fromReq } = serializer(_updateExtendedFieldRequest, { _extendedField });
127
141
  const { fromJSON: fromRes } = serializer(_updateExtendedFieldResponse, {
@@ -149,8 +163,11 @@ export function updateExtendedField(payload) {
149
163
  /**
150
164
  * Deletes an extended field.
151
165
  *
152
- * When an extended field is deleted,
153
- * any contact data stored in the field is permanently deleted as well.
166
+ * The `deleteExtendedField()` function returns a Promise that resolves when the specified extended field is deleted.
167
+ *
168
+ * When an extended field is deleted, any contact data stored in the field is permanently deleted as well.
169
+ *
170
+ * >**Note:** Only visitors with **Manage Contacts** permissions can delete extended fields.
154
171
  */
155
172
  export function deleteExtendedField(payload) {
156
173
  const { toJSON: toReq, fromJSON: fromReq } = serializer(_deleteExtendedFieldRequest, {});
@@ -175,10 +192,22 @@ export function deleteExtendedField(payload) {
175
192
  return __deleteExtendedField;
176
193
  }
177
194
  /**
178
- * Retrieves a list of extended fields.
195
+ * Creates a query to retrieve a list of extended fields.
196
+ *
197
+ * The `queryExtendedFields()` function builds a query to retrieve a list of extended fields and returns an [`ExtendedFieldsQueryBuilder`](#extendedfieldsquerybuilder) object.
198
+ *
199
+ * The returned object contains the query definition, which is used to run the query using the [`find()`](#extendedfieldsquerybuilder/find) function.
200
+ *
201
+ * You can refine the query by chaining `ExtendedFieldsQueryBuilder` functions onto the query. `ExtendedFieldsQueryBuilder` functions enable you to filter, sort, and control the results that `queryExtendedFields()` returns.
202
+ *
203
+ * `queryExtendedFields()` runs with these `ExtendedFieldsQueryBuilder` defaults, which you can override:
204
+ * - [`skip()`](#extendedfieldsquerybuilder/skip)
205
+ * - [`limit(50)`](#extendedfieldsquerybuilder/limit)
206
+ * - [`descending('_createdDate')`](#extendedfieldsquerybuilder/descending)
207
+ *
208
+ * > **Note:** Only visitors with **Manage Contacts** permissions can query extended fields.
179
209
  *
180
- * For a detailed list of supported operations, see [sorting and filtering for extended fields](https://dev.wix.com/api/rest/contacts/extended-fields/sort-and-filter). To learn more about query language, see
181
- * [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language).
210
+ * The following `ExtendedFieldsQueryBuilder` functions are supported for `queryExtendedFields()`. For a full description of the `Extended Field` object, see the object returned for the [`items`](#extendedfieldsqueryresult/items) property in [`ExtendedFieldsQueryResult`](#extendedfieldsqueryresult).
182
211
  */
183
212
  export function queryExtendedFields(payload) {
184
213
  const { toJSON: toReq, fromJSON: fromReq } = serializer(_queryExtendedFieldsRequest, {});
@@ -1 +1 @@
1
- {"version":3,"file":"contacts-v4-extended-field.http.js","sourceRoot":"","sources":["../../../src/contacts-v4-extended-field.http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAgBhD,MAAM,2BAA2B,GAAG,EAAE,CAAC;AACvC,MAAM,4BAA4B,GAAG,EAAE,CAAC;AACxC,MAAM,cAAc,GAAG;IACrB,WAAW,EAAE,2BAA2B;IACxC,WAAW,EAAE,2BAA2B;CACzC,CAAC;AACF,MAAM,iCAAiC,GAAG,EAAE,CAAC;AAC7C,MAAM,kCAAkC,GAAG,EAAE,KAAK,EAAE,gBAAgB,EAAE,CAAC;AACvE,MAAM,wBAAwB,GAAG,EAAE,CAAC;AACpC,MAAM,yBAAyB,GAAG,EAAE,KAAK,EAAE,gBAAgB,EAAE,CAAC;AAC9D,MAAM,2BAA2B,GAAG,EAAE,CAAC;AACvC,MAAM,4BAA4B,GAAG,EAAE,MAAM,EAAE,gBAAgB,EAAE,CAAC;AAClE,MAAM,2BAA2B,GAAG,EAAE,KAAK,EAAE,gBAAgB,EAAE,CAAC;AAChE,MAAM,4BAA4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,GAAG,EAAE,mEAAmE,CAAC;gBACvE,SAAS,EAAE,2BAA2B;gBACtC,IAAI,EAAE,cAAc;gBACpB,IAAI;aACL,CAAC;YACF,MAAM,EAAE,iBAAiB,CAAC,cAAc,CAAC;YACzC,iBAAiB,EAAE,OAAO;SAC3B,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,qBAAqB,CAAC,OAAO,GAAG,OAAO,CAAC;IAExC,OAAO,qBAAqB,CAAC;AAC/B,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,mBAAmB,CACjC,OAAmC;IAEnC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,UAAU,CACrD,2BAA2B,EAC3B,EAAE,CACH,CAAC;IACF,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,UAAU,CAAC,4BAA4B,EAAE;QACrE,cAAc;KACf,CAAC,CAAC;IAEH,SAAS,qBAAqB,CAAC,EAAE,IAAI,EAAO;QAC1C,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,gCAAgC;YAC5C,MAAM,EAAE,MAAa;YACrB,SAAS,EACP,oFAAoF;YACtF,GAAG,EAAE,mEAAmE,CAAC;gBACvE,SAAS,EAAE,2BAA2B;gBACtC,IAAI,EAAE,cAAc;gBACpB,IAAI;aACL,CAAC;YACF,IAAI,EAAE,cAAc;YACpB,iBAAiB,EAAE,OAAO;SAC3B,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,qBAAqB,CAAC,OAAO,GAAG,OAAO,CAAC;IAExC,OAAO,qBAAqB,CAAC;AAC/B,CAAC"}
1
+ {"version":3,"file":"contacts-v4-extended-field.http.js","sourceRoot":"","sources":["../../../src/contacts-v4-extended-field.http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,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A4B,EAAE;QACrE,cAAc;KACf,CAAC,CAAC;IAEH,SAAS,qBAAqB,CAAC,EAAE,IAAI,EAAO;QAC1C,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,gCAAgC;YAC5C,MAAM,EAAE,MAAa;YACrB,SAAS,EACP,oFAAoF;YACtF,GAAG,EAAE,mEAAmE,CAAC;gBACvE,SAAS,EAAE,2BAA2B;gBACtC,IAAI,EAAE,cAAc;gBACpB,IAAI;aACL,CAAC;YACF,IAAI,EAAE,cAAc;YACpB,iBAAiB,EAAE,OAAO;SAC3B,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,qBAAqB,CAAC,OAAO,GAAG,OAAO,CAAC;IAExC,OAAO,qBAAqB,CAAC;AAC/B,CAAC"}
@@ -165,7 +165,7 @@ export interface FindOrCreateExtendedFieldResponse {
165
165
  * Indicates whether the extended field was just created or already existed.
166
166
  *
167
167
  * If the field was just created, returns `true`.
168
- * If it already existed, returns `false`.
168
+ * If the field already existed, returns `false`.
169
169
  */
170
170
  newField?: boolean;
171
171
  }
@@ -20,7 +20,7 @@ export interface ExtendedField {
20
20
  * When accessing contact data,
21
21
  * extended field data is available at `extendedFields[key]`.
22
22
  * For example, if the key is "custom.notes",
23
- * the value can be accessed at `extendedFields["custom.notes"]`.
23
+ * the value can be accessed at `fields["custom.notes"]`.
24
24
  *
25
25
  * `key` is generated when the extended field is created
26
26
  * and cannot be modified, even if `displayName` changes.
@@ -32,18 +32,20 @@ export interface ExtendedField {
32
32
  /**
33
33
  * Type of data the field holds.
34
34
  *
35
- * - `TEXT`: Accepts strings.
36
- * - `NUMBER`: Accepts floats.
37
- * - `DATE`: Accepts dates formatted as `YYYY-MM-DD`.
38
- * - `URL`: Accepts strings. Prepends `https://` if no protocol is included.
35
+ * One of:
36
+ * - `"TEXT"`: Accepts strings.
37
+ * - `"NUMBER"`: Accepts floats.
38
+ * - `"DATE"`: Accepts dates formatted as `YYYY-MM-DD`.
39
+ * - `"URL"`: Accepts strings. Prepends `https://` if no protocol is included.
39
40
  * @readonly
40
41
  */
41
42
  dataType?: FieldDataType;
42
43
  /**
43
44
  * Indicates whether the extended field is a system field or custom field.
44
45
  *
45
- * - `SYSTEM`: The field is a system field managed by Wix. System fields cannot be modified by 3rd-party apps or site contributors.
46
- * - `USER_DEFINED`: The field is a custom field and can be modified by 3rd-party apps or site contributors.
46
+ * One of:
47
+ * - `"SYSTEM"`: The field is a system field managed by Wix. System fields cannot be modified by 3rd-party apps or site contributors.
48
+ * - `"USER_DEFINED"`: The field is a custom field and can be modified by 3rd-party apps or site contributors.
47
49
  * @readonly
48
50
  */
49
51
  fieldType?: FieldType;
@@ -154,12 +156,12 @@ export interface FindOrCreateExtendedFieldRequest {
154
156
  /**
155
157
  * Type of data the field holds.
156
158
  * Ignored if an existing field is an exact match
157
- * for the specified display name.
159
+ * for the specified display name. One of:
158
160
  *
159
- * - `TEXT`: Accepts strings.
160
- * - `NUMBER`: Accepts floats.
161
- * - `DATE`: Accepts dates formatted as `YYYY-MM-DD`.
162
- * - `URL`: Accepts strings. Prepends `https://` if no protocol is included.
161
+ * - `"TEXT"`: Accepts strings.
162
+ * - `"NUMBER"`: Accepts floats.
163
+ * - `"DATE"`: Accepts dates formatted as `YYYY-MM-DD`.
164
+ * - `"URL"`: Accepts strings. Prepends `https://` if no protocol is included.
163
165
  */
164
166
  dataType?: FieldDataType;
165
167
  }
@@ -171,7 +173,7 @@ export interface FindOrCreateExtendedFieldResponse {
171
173
  * Indicates whether the extended field was just created or already existed.
172
174
  *
173
175
  * If the field was just created, returns `true`.
174
- * If it already existed, returns `false`.
176
+ * If the field already existed, returns `false`.
175
177
  */
176
178
  newField?: boolean;
177
179
  }
@@ -181,8 +183,8 @@ export interface GetExtendedFieldRequest {
181
183
  *
182
184
  * When accessing contact data,
183
185
  * extended field values are available at `info.extendedFields.items[key]`.
184
- * For example, if the key is "custom.patronus",
185
- * the value can be accessed at `info.extendedFields.items["custom.patronus"]`.
186
+ * For example, if the key is "custom.notes",
187
+ * the value can be accessed at `fields["custom.notes"]`.
186
188
  *
187
189
  * Once set, `key` cannot be modified, even if `displayName` changes.
188
190
  */
@@ -264,24 +266,25 @@ export interface QueryExtendedFieldsResponse {
264
266
  /**
265
267
  * Retrieves a custom field with a given name, or creates one if it doesn't exist.
266
268
  *
267
- * Successful calls to this endpoint always return a field,
268
- * which can be passed to subsequent requests.
269
+ * The `findOrCreateExtendedField()` function returns a Promise that resolves when the specified custom field is found or created.
270
+ *
271
+ * Successful calls to `findOrCreateExtendedField()` always return an extended field, which can be passed to subsequent function calls.
272
+ *
273
+ * To find an existing extended field without potentially creating a new one, use [`getExtendedField()`](#getextendedfield) or [`queryExtendedFields()`](#queryextendedfields).
274
+ *
275
+ * >**Note:** Only visitors with **Manage Contacts** permissions can find or create extended fields.
269
276
  *
270
- * To find an existing custom field without potentially creating a new one, use
271
- * [Get Extended Field](https:dev.wix.com/api/rest/contacts/extended-fields/get-extended-field) or
272
- * [List Extended Fields](https:dev.wix.com/api/rest/contacts/extended-fields/list-extended-fields).
273
277
  *
274
278
  * This function is not a universal function and runs only on the backend.
275
279
  * @param dataType - Type of data the field holds.
276
280
  * Ignored if an existing field is an exact match
277
- * for the specified display name.
281
+ * for the specified display name. One of:
278
282
  *
279
- * - `TEXT`: Accepts strings.
280
- * - `NUMBER`: Accepts floats.
281
- * - `DATE`: Accepts dates formatted as `YYYY-MM-DD`.
282
- * - `URL`: Accepts strings. Prepends `https://` if no protocol is included.
283
+ * - `"TEXT"`: Accepts strings.
284
+ * - `"NUMBER"`: Accepts floats.
285
+ * - `"DATE"`: Accepts dates formatted as `YYYY-MM-DD`.
286
+ * - `"URL"`: Accepts strings. Prepends `https://` if no protocol is included.
283
287
  * @public
284
- * @documentationMaturity preview
285
288
  * @requiredField dataType
286
289
  * @requiredField options
287
290
  * @requiredField options.displayName
@@ -304,17 +307,20 @@ export interface FindOrCreateExtendedFieldOptions {
304
307
  /**
305
308
  * Retrieves an extended field.
306
309
  *
310
+ * The `getExtendedField()` function returns a Promise that resolves when the extended field is retrieved.
311
+ *
312
+ * >**Note:** Only visitors with **Manage Contacts** permissions can retrieve extended fields.
313
+ *
307
314
  * This function is not a universal function and runs only on the backend.
308
315
  * @param key - Extended field key.
309
316
  *
310
317
  * When accessing contact data,
311
318
  * extended field values are available at `info.extendedFields.items[key]`.
312
- * For example, if the key is "custom.patronus",
313
- * the value can be accessed at `info.extendedFields.items["custom.patronus"]`.
319
+ * For example, if the key is "custom.notes",
320
+ * the value can be accessed at `fields["custom.notes"]`.
314
321
  *
315
322
  * Once set, `key` cannot be modified, even if `displayName` changes.
316
323
  * @public
317
- * @documentationMaturity preview
318
324
  * @requiredField key
319
325
  * @permissionScope Manage Contact Extended Fields
320
326
  * @applicableIdentity APP
@@ -322,7 +328,11 @@ export interface FindOrCreateExtendedFieldOptions {
322
328
  */
323
329
  export declare function getExtendedField(key: string): Promise<ExtendedField>;
324
330
  /**
325
- * Updates an extended field's specified properties.
331
+ * Renames an extended field.
332
+ *
333
+ * The `renameExtendedField()` function returns a Promise that resolves when the specified extended field's display name is changed
334
+ *
335
+ * > **Note:** Only visitors with **Manage Contacts** permissions can rename extended fields.
326
336
  *
327
337
  * This function is not a universal function and runs only on the backend.
328
338
  * @param key - Extended field key.
@@ -330,12 +340,11 @@ export declare function getExtendedField(key: string): Promise<ExtendedField>;
330
340
  * When accessing contact data,
331
341
  * extended field data is available at `extendedFields[key]`.
332
342
  * For example, if the key is "custom.notes",
333
- * the value can be accessed at `extendedFields["custom.notes"]`.
343
+ * the value can be accessed at `fields["custom.notes"]`.
334
344
  *
335
345
  * `key` is generated when the extended field is created
336
346
  * and cannot be modified, even if `displayName` changes.
337
347
  * @public
338
- * @documentationMaturity preview
339
348
  * @requiredField field
340
349
  * @requiredField field.displayName
341
350
  * @requiredField key
@@ -358,18 +367,20 @@ export interface RenameExtendedField {
358
367
  /**
359
368
  * Type of data the field holds.
360
369
  *
361
- * - `TEXT`: Accepts strings.
362
- * - `NUMBER`: Accepts floats.
363
- * - `DATE`: Accepts dates formatted as `YYYY-MM-DD`.
364
- * - `URL`: Accepts strings. Prepends `https://` if no protocol is included.
370
+ * One of:
371
+ * - `"TEXT"`: Accepts strings.
372
+ * - `"NUMBER"`: Accepts floats.
373
+ * - `"DATE"`: Accepts dates formatted as `YYYY-MM-DD`.
374
+ * - `"URL"`: Accepts strings. Prepends `https://` if no protocol is included.
365
375
  * @readonly
366
376
  */
367
377
  dataType?: FieldDataType;
368
378
  /**
369
379
  * Indicates whether the extended field is a system field or custom field.
370
380
  *
371
- * - `SYSTEM`: The field is a system field managed by Wix. System fields cannot be modified by 3rd-party apps or site contributors.
372
- * - `USER_DEFINED`: The field is a custom field and can be modified by 3rd-party apps or site contributors.
381
+ * One of:
382
+ * - `"SYSTEM"`: The field is a system field managed by Wix. System fields cannot be modified by 3rd-party apps or site contributors.
383
+ * - `"USER_DEFINED"`: The field is a custom field and can be modified by 3rd-party apps or site contributors.
373
384
  * @readonly
374
385
  */
375
386
  fieldType?: FieldType;
@@ -392,27 +403,40 @@ export interface RenameExtendedField {
392
403
  /**
393
404
  * Deletes an extended field.
394
405
  *
395
- * When an extended field is deleted,
396
- * any contact data stored in the field is permanently deleted as well.
406
+ * The `deleteExtendedField()` function returns a Promise that resolves when the specified extended field is deleted.
407
+ *
408
+ * When an extended field is deleted, any contact data stored in the field is permanently deleted as well.
409
+ *
410
+ * >**Note:** Only visitors with **Manage Contacts** permissions can delete extended fields.
397
411
  *
398
412
  * This function is not a universal function and runs only on the backend.
399
413
  * @param key - Extended field key.
400
414
  * @public
401
- * @documentationMaturity preview
402
415
  * @requiredField key
403
416
  * @permissionScope Manage Contact Extended Fields
404
417
  * @applicableIdentity APP
405
418
  */
406
419
  export declare function deleteExtendedField(key: string): Promise<void>;
407
420
  /**
408
- * Retrieves a list of extended fields.
421
+ * Creates a query to retrieve a list of extended fields.
422
+ *
423
+ * The `queryExtendedFields()` function builds a query to retrieve a list of extended fields and returns an [`ExtendedFieldsQueryBuilder`](#extendedfieldsquerybuilder) object.
424
+ *
425
+ * The returned object contains the query definition, which is used to run the query using the [`find()`](#extendedfieldsquerybuilder/find) function.
426
+ *
427
+ * You can refine the query by chaining `ExtendedFieldsQueryBuilder` functions onto the query. `ExtendedFieldsQueryBuilder` functions enable you to filter, sort, and control the results that `queryExtendedFields()` returns.
428
+ *
429
+ * `queryExtendedFields()` runs with these `ExtendedFieldsQueryBuilder` defaults, which you can override:
430
+ * - [`skip()`](#extendedfieldsquerybuilder/skip)
431
+ * - [`limit(50)`](#extendedfieldsquerybuilder/limit)
432
+ * - [`descending('_createdDate')`](#extendedfieldsquerybuilder/descending)
409
433
  *
410
- * For a detailed list of supported operations, see [sorting and filtering for extended fields](https://dev.wix.com/api/rest/contacts/extended-fields/sort-and-filter). To learn more about query language, see
411
- * [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language).
434
+ * > **Note:** Only visitors with **Manage Contacts** permissions can query extended fields.
435
+ *
436
+ * The following `ExtendedFieldsQueryBuilder` functions are supported for `queryExtendedFields()`. For a full description of the `Extended Field` object, see the object returned for the [`items`](#extendedfieldsqueryresult/items) property in [`ExtendedFieldsQueryResult`](#extendedfieldsqueryresult).
412
437
  *
413
438
  * This function is not a universal function and runs only on the backend.
414
439
  * @public
415
- * @documentationMaturity preview
416
440
  * @permissionScope Manage Contact Extended Fields
417
441
  * @applicableIdentity APP
418
442
  */
@@ -435,53 +459,37 @@ export interface FieldsQueryResult extends QueryOffsetResult {
435
459
  export interface FieldsQueryBuilder {
436
460
  /** @param propertyName - Property whose value is compared with `value`.
437
461
  * @param value - Value to compare against.
438
- * @documentationMaturity preview
439
462
  */
440
463
  eq: (propertyName: 'namespace' | 'key' | 'displayName' | 'dataType' | 'fieldType' | '_createdDate' | '_updatedDate', value: any) => FieldsQueryBuilder;
441
464
  /** @param propertyName - Property whose value is compared with `value`.
442
465
  * @param value - Value to compare against.
443
- * @documentationMaturity preview
444
466
  */
445
467
  ne: (propertyName: 'namespace' | 'key' | 'displayName' | 'dataType' | '_createdDate' | '_updatedDate', value: any) => FieldsQueryBuilder;
446
468
  /** @param propertyName - Property whose value is compared with `value`.
447
469
  * @param value - Value to compare against.
448
- * @documentationMaturity preview
449
470
  */
450
471
  gt: (propertyName: '_createdDate' | '_updatedDate', value: any) => FieldsQueryBuilder;
451
472
  /** @param propertyName - Property whose value is compared with `value`.
452
473
  * @param value - Value to compare against.
453
- * @documentationMaturity preview
454
474
  */
455
475
  le: (propertyName: '_createdDate' | '_updatedDate', value: any) => FieldsQueryBuilder;
456
476
  /** @param propertyName - Property whose value is compared with `value`.
457
477
  * @param value - Value to compare against.
458
- * @documentationMaturity preview
459
478
  */
460
479
  lt: (propertyName: '_createdDate' | '_updatedDate', value: any) => FieldsQueryBuilder;
461
480
  /** @param propertyName - Property whose value is compared with `string`.
462
481
  * @param string - String to compare against. Case-insensitive.
463
- * @documentationMaturity preview
464
482
  */
465
483
  startsWith: (propertyName: 'displayName', value: string) => FieldsQueryBuilder;
466
- /** @documentationMaturity preview */
467
484
  in: (propertyName: 'key' | 'displayName', value: any) => FieldsQueryBuilder;
468
- /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
469
- * @documentationMaturity preview
470
- */
485
+ /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */
471
486
  ascending: (...propertyNames: Array<'displayName' | '_createdDate' | '_updatedDate'>) => FieldsQueryBuilder;
472
- /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
473
- * @documentationMaturity preview
474
- */
487
+ /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */
475
488
  descending: (...propertyNames: Array<'displayName' | '_createdDate' | '_updatedDate'>) => FieldsQueryBuilder;
476
- /** @param limit - Number of items to return, which is also the `pageSize` of the results object.
477
- * @documentationMaturity preview
478
- */
489
+ /** @param limit - Number of items to return, which is also the `pageSize` of the results object. */
479
490
  limit: (limit: number) => FieldsQueryBuilder;
480
- /** @param skip - Number of items to skip in the query results before returning the results.
481
- * @documentationMaturity preview
482
- */
491
+ /** @param skip - Number of items to skip in the query results before returning the results. */
483
492
  skip: (skip: number) => FieldsQueryBuilder;
484
- /** @documentationMaturity preview */
485
493
  find: () => Promise<FieldsQueryResult>;
486
494
  }
487
495
  export {};
@@ -58,24 +58,25 @@ const _updateExtendedFieldResponse = {};
58
58
  /**
59
59
  * Retrieves a custom field with a given name, or creates one if it doesn't exist.
60
60
  *
61
- * Successful calls to this endpoint always return a field,
62
- * which can be passed to subsequent requests.
61
+ * The `findOrCreateExtendedField()` function returns a Promise that resolves when the specified custom field is found or created.
62
+ *
63
+ * Successful calls to `findOrCreateExtendedField()` always return an extended field, which can be passed to subsequent function calls.
64
+ *
65
+ * To find an existing extended field without potentially creating a new one, use [`getExtendedField()`](#getextendedfield) or [`queryExtendedFields()`](#queryextendedfields).
66
+ *
67
+ * >**Note:** Only visitors with **Manage Contacts** permissions can find or create extended fields.
63
68
  *
64
- * To find an existing custom field without potentially creating a new one, use
65
- * [Get Extended Field](https:dev.wix.com/api/rest/contacts/extended-fields/get-extended-field) or
66
- * [List Extended Fields](https:dev.wix.com/api/rest/contacts/extended-fields/list-extended-fields).
67
69
  *
68
70
  * This function is not a universal function and runs only on the backend.
69
71
  * @param dataType - Type of data the field holds.
70
72
  * Ignored if an existing field is an exact match
71
- * for the specified display name.
73
+ * for the specified display name. One of:
72
74
  *
73
- * - `TEXT`: Accepts strings.
74
- * - `NUMBER`: Accepts floats.
75
- * - `DATE`: Accepts dates formatted as `YYYY-MM-DD`.
76
- * - `URL`: Accepts strings. Prepends `https://` if no protocol is included.
75
+ * - `"TEXT"`: Accepts strings.
76
+ * - `"NUMBER"`: Accepts floats.
77
+ * - `"DATE"`: Accepts dates formatted as `YYYY-MM-DD`.
78
+ * - `"URL"`: Accepts strings. Prepends `https://` if no protocol is included.
77
79
  * @public
78
- * @documentationMaturity preview
79
80
  * @requiredField dataType
80
81
  * @requiredField options
81
82
  * @requiredField options.displayName
@@ -133,17 +134,20 @@ export function findOrCreateExtendedField(dataType, options) {
133
134
  /**
134
135
  * Retrieves an extended field.
135
136
  *
137
+ * The `getExtendedField()` function returns a Promise that resolves when the extended field is retrieved.
138
+ *
139
+ * >**Note:** Only visitors with **Manage Contacts** permissions can retrieve extended fields.
140
+ *
136
141
  * This function is not a universal function and runs only on the backend.
137
142
  * @param key - Extended field key.
138
143
  *
139
144
  * When accessing contact data,
140
145
  * extended field values are available at `info.extendedFields.items[key]`.
141
- * For example, if the key is "custom.patronus",
142
- * the value can be accessed at `info.extendedFields.items["custom.patronus"]`.
146
+ * For example, if the key is "custom.notes",
147
+ * the value can be accessed at `fields["custom.notes"]`.
143
148
  *
144
149
  * Once set, `key` cannot be modified, even if `displayName` changes.
145
150
  * @public
146
- * @documentationMaturity preview
147
151
  * @requiredField key
148
152
  * @permissionScope Manage Contact Extended Fields
149
153
  * @applicableIdentity APP
@@ -193,7 +197,11 @@ export function getExtendedField(key) {
193
197
  });
194
198
  }
195
199
  /**
196
- * Updates an extended field's specified properties.
200
+ * Renames an extended field.
201
+ *
202
+ * The `renameExtendedField()` function returns a Promise that resolves when the specified extended field's display name is changed
203
+ *
204
+ * > **Note:** Only visitors with **Manage Contacts** permissions can rename extended fields.
197
205
  *
198
206
  * This function is not a universal function and runs only on the backend.
199
207
  * @param key - Extended field key.
@@ -201,12 +209,11 @@ export function getExtendedField(key) {
201
209
  * When accessing contact data,
202
210
  * extended field data is available at `extendedFields[key]`.
203
211
  * For example, if the key is "custom.notes",
204
- * the value can be accessed at `extendedFields["custom.notes"]`.
212
+ * the value can be accessed at `fields["custom.notes"]`.
205
213
  *
206
214
  * `key` is generated when the extended field is created
207
215
  * and cannot be modified, even if `displayName` changes.
208
216
  * @public
209
- * @documentationMaturity preview
210
217
  * @requiredField field
211
218
  * @requiredField field.displayName
212
219
  * @requiredField key
@@ -261,13 +268,15 @@ export function renameExtendedField(key, field) {
261
268
  /**
262
269
  * Deletes an extended field.
263
270
  *
264
- * When an extended field is deleted,
265
- * any contact data stored in the field is permanently deleted as well.
271
+ * The `deleteExtendedField()` function returns a Promise that resolves when the specified extended field is deleted.
272
+ *
273
+ * When an extended field is deleted, any contact data stored in the field is permanently deleted as well.
274
+ *
275
+ * >**Note:** Only visitors with **Manage Contacts** permissions can delete extended fields.
266
276
  *
267
277
  * This function is not a universal function and runs only on the backend.
268
278
  * @param key - Extended field key.
269
279
  * @public
270
- * @documentationMaturity preview
271
280
  * @requiredField key
272
281
  * @permissionScope Manage Contact Extended Fields
273
282
  * @applicableIdentity APP
@@ -316,14 +325,25 @@ export function deleteExtendedField(key) {
316
325
  });
317
326
  }
318
327
  /**
319
- * Retrieves a list of extended fields.
328
+ * Creates a query to retrieve a list of extended fields.
329
+ *
330
+ * The `queryExtendedFields()` function builds a query to retrieve a list of extended fields and returns an [`ExtendedFieldsQueryBuilder`](#extendedfieldsquerybuilder) object.
331
+ *
332
+ * The returned object contains the query definition, which is used to run the query using the [`find()`](#extendedfieldsquerybuilder/find) function.
333
+ *
334
+ * You can refine the query by chaining `ExtendedFieldsQueryBuilder` functions onto the query. `ExtendedFieldsQueryBuilder` functions enable you to filter, sort, and control the results that `queryExtendedFields()` returns.
335
+ *
336
+ * `queryExtendedFields()` runs with these `ExtendedFieldsQueryBuilder` defaults, which you can override:
337
+ * - [`skip()`](#extendedfieldsquerybuilder/skip)
338
+ * - [`limit(50)`](#extendedfieldsquerybuilder/limit)
339
+ * - [`descending('_createdDate')`](#extendedfieldsquerybuilder/descending)
340
+ *
341
+ * > **Note:** Only visitors with **Manage Contacts** permissions can query extended fields.
320
342
  *
321
- * For a detailed list of supported operations, see [sorting and filtering for extended fields](https://dev.wix.com/api/rest/contacts/extended-fields/sort-and-filter). To learn more about query language, see
322
- * [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language).
343
+ * The following `ExtendedFieldsQueryBuilder` functions are supported for `queryExtendedFields()`. For a full description of the `Extended Field` object, see the object returned for the [`items`](#extendedfieldsqueryresult/items) property in [`ExtendedFieldsQueryResult`](#extendedfieldsqueryresult).
323
344
  *
324
345
  * This function is not a universal function and runs only on the backend.
325
346
  * @public
326
- * @documentationMaturity preview
327
347
  * @permissionScope Manage Contact Extended Fields
328
348
  * @applicableIdentity APP
329
349
  */
@@ -1 +1 @@
1
- {"version":3,"file":"contacts-v4-extended-field.universal.js","sourceRoot":"","sources":["../../../src/contacts-v4-extended-field.universal.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,UAAU,EACV,cAAc,EACd,qCAAqC,GACtC,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,oCAAoC,MAAM,mCAAmC,CAAC;AAC1F,aAAa;AACb,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAE7E,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAAK,CAAC,GAAG,IAAW;IAC3B,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,SAAS,CAAC,GAAQ;IACzB,OAAO,GAAG,CAAC;AACb,CAAC;AAED,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,cAAc,EAAE;QACd,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,IAAI,CAAC;QAC5B,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,KAAK,CAAC;KAC/B;CACF,CAAC;AACF,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,eAAe,GAAG,GAAG,CAAC;AA8D5B,MAAM,CAAN,IAAY,aAMX;AAND,WAAY,aAAa;IACvB,wDAAuC,CAAA;IACvC,8BAAa,CAAA;IACb,kCAAiB,CAAA;IACjB,8BAAa,CAAA;IACb,4BAAW,CAAA;AACb,CAAC,EANW,aAAa,KAAb,aAAa,QAMx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BAAqB,CAAC,CAAC;YAEpE,MAAM,gBAAgB,CAAC;QACzB,CAAC;QACD,YAAY,EAAE,QAAQ;QACtB,mBAAmB,EAAE,qCAAqC,CAAC,aAAa,CAAC;KAC1E,CAAC,CAAC,EAAE,4BAA4B,EAAE,IAAI,EAAE,CAAC,CAAC;AAC7C,CAAC"}
1
+ {"version":3,"file":"contacts-v4-extended-field.universal.js","sourceRoot":"","sources":["../../../src/contacts-v4-extended-field.universal.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,UAAU,EACV,cAAc,EACd,qCAAqC,GACtC,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,oCAAoC,MAAM,mCAAmC,CAAC;AAC1F,aAAa;AACb,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAE7E,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAAK,CAAC,GAAG,IAAW;IAC3B,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,SAAS,CAAC,GAAQ;IACzB,OAAO,GAAG,CAAC;AACb,CAAC;AAED,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,cAAc,EAAE;QACd,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,IAAI,CAAC;QAC5B,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,KAAK,CAAC;KAC/B;CACF,CAAC;AACF,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,eAAe,GAAG,GAAG,CAAC;AAgE5B,MAAM,CAAN,IAAY,aAMX;AAND,WAAY,aAAa;IACvB,wDAAuC,CAAA;IACvC,8BAAa,CAAA;IACb,kCAAiB,CAAA;IACjB,8BAAa,CAAA;IACb,4BAAW,CAAA;AACb,CAAC,EANW,aAAa,KAAb,aAAa,QAMxB;AAED,MAAM,CAAN,IAAY,SAIX;AAJD,WAAY,SAAS;IACn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