@wix/crm 1.0.29 → 1.0.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/src/contacts-v4-extended-field.http.d.ts +8 -8
- package/build/cjs/src/contacts-v4-extended-field.http.js +8 -8
- package/build/cjs/src/contacts-v4-extended-field.public.d.ts +3 -3
- package/build/cjs/src/contacts-v4-extended-field.public.js +1 -1
- package/build/cjs/src/contacts-v4-extended-field.public.js.map +1 -1
- package/build/cjs/src/contacts-v4-extended-field.universal.d.ts +28 -34
- package/build/cjs/src/contacts-v4-extended-field.universal.js +29 -27
- package/build/cjs/src/contacts-v4-extended-field.universal.js.map +1 -1
- package/build/cjs/src/crm-tasks-v1-task.http.d.ts +2 -2
- package/build/cjs/src/crm-tasks-v1-task.http.js +2 -2
- package/build/cjs/src/crm-tasks-v1-task.universal.d.ts +36 -24
- package/build/cjs/src/crm-tasks-v1-task.universal.js +10 -6
- package/build/cjs/src/crm-tasks-v1-task.universal.js.map +1 -1
- package/build/es/src/contacts-v4-extended-field.http.d.ts +8 -8
- package/build/es/src/contacts-v4-extended-field.http.js +8 -8
- package/build/es/src/contacts-v4-extended-field.public.d.ts +3 -3
- package/build/es/src/contacts-v4-extended-field.public.js +1 -1
- package/build/es/src/contacts-v4-extended-field.public.js.map +1 -1
- package/build/es/src/contacts-v4-extended-field.universal.d.ts +28 -34
- package/build/es/src/contacts-v4-extended-field.universal.js +29 -27
- package/build/es/src/contacts-v4-extended-field.universal.js.map +1 -1
- package/build/es/src/crm-tasks-v1-task.http.d.ts +2 -2
- package/build/es/src/crm-tasks-v1-task.http.js +2 -2
- package/build/es/src/crm-tasks-v1-task.universal.d.ts +36 -24
- package/build/es/src/crm-tasks-v1-task.universal.js +10 -6
- package/build/es/src/crm-tasks-v1-task.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -81,6 +81,7 @@ const _updateTaskResponse = {};
|
|
|
81
81
|
*
|
|
82
82
|
* This function is not a universal function and runs only on the backend.
|
|
83
83
|
* @public
|
|
84
|
+
* @documentationMaturity preview
|
|
84
85
|
* @requiredField _id
|
|
85
86
|
* @param _id - Task ID.
|
|
86
87
|
*/
|
|
@@ -132,14 +133,15 @@ exports.getTask = getTask;
|
|
|
132
133
|
* Creates a new task.
|
|
133
134
|
*
|
|
134
135
|
*
|
|
135
|
-
* The `createTask()` function returns a Promise that resolves to the ID of the
|
|
136
|
+
* The `createTask()` function returns a Promise that resolves to the ID of the created task.
|
|
136
137
|
*
|
|
137
138
|
* When creating a new task, the specified `task` object must contain a `title` value.
|
|
138
139
|
*
|
|
139
140
|
* This function is not a universal function and runs only on the backend.
|
|
140
|
-
* @param task - Task object with the creation data
|
|
141
141
|
* @public
|
|
142
|
+
* @documentationMaturity preview
|
|
142
143
|
* @requiredField task
|
|
144
|
+
* @param task - Task information.
|
|
143
145
|
*/
|
|
144
146
|
function createTask(task) {
|
|
145
147
|
var _a, _b, _c;
|
|
@@ -191,18 +193,19 @@ exports.createTask = createTask;
|
|
|
191
193
|
*
|
|
192
194
|
* The `updateTaskFields()` function returns a Promise that resolves to the ID of the the updated task after it has been successfully updated.
|
|
193
195
|
*
|
|
194
|
-
* Only the properties
|
|
196
|
+
* Only the properties in the `task` object are updated. All other properties remain the same.
|
|
195
197
|
*
|
|
196
198
|
* To remove a value from the task, pass its corresponding property with a value of `null`.
|
|
197
199
|
*
|
|
198
200
|
* This function is not a universal function and runs only on the backend.
|
|
199
|
-
* @param fields - Set of desired fields.
|
|
200
|
-
* @param task - Task object with the updated data
|
|
201
201
|
* @public
|
|
202
|
+
* @documentationMaturity preview
|
|
202
203
|
* @requiredField _id
|
|
203
204
|
* @requiredField fields
|
|
204
205
|
* @requiredField task
|
|
205
206
|
* @param _id - Task ID.
|
|
207
|
+
* @param task - Task information.
|
|
208
|
+
* @param fields - Required fields.
|
|
206
209
|
*/
|
|
207
210
|
function updateTaskFields(_id, fields, task) {
|
|
208
211
|
var _a, _b, _c;
|
|
@@ -257,12 +260,12 @@ exports.updateTaskFields = updateTaskFields;
|
|
|
257
260
|
* The `updateTaskStatus()` function returns a Promise that resolves to the ID of the task whose completed status was updated.
|
|
258
261
|
*
|
|
259
262
|
* This function is not a universal function and runs only on the backend.
|
|
260
|
-
* @param isCompleted - Indication whether the task is completed
|
|
261
263
|
* @public
|
|
262
264
|
* @documentationMaturity preview
|
|
263
265
|
* @requiredField _id
|
|
264
266
|
* @requiredField isCompleted
|
|
265
267
|
* @param _id - Task ID.
|
|
268
|
+
* @param isCompleted - Indicates whether the task is completed.
|
|
266
269
|
*/
|
|
267
270
|
function updateTaskStatus(_id, isCompleted) {
|
|
268
271
|
var _a, _b, _c;
|
|
@@ -317,6 +320,7 @@ exports.updateTaskStatus = updateTaskStatus;
|
|
|
317
320
|
*
|
|
318
321
|
* This function is not a universal function and runs only on the backend.
|
|
319
322
|
* @public
|
|
323
|
+
* @documentationMaturity preview
|
|
320
324
|
* @requiredField _id
|
|
321
325
|
* @param _id - Task ID.
|
|
322
326
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"crm-tasks-v1-task.universal.js","sourceRoot":"","sources":["../../../src/crm-tasks-v1-task.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAqE;AAErE,sFAAwE;AAExE,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;AAEY,QAAA,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,CAA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gBACT,cAAc,EAAE,aAAa;aAC9B;YACD,oBAAoB,EAAE,sBAAsB;SAC7C,CAAC,CAAC;QAEH,MAAM,OAAO,GAAG,mBAAmB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;QAE3C,MAAM,OAAO,GAAG,2BAA2B,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;QAEhE,KAAK,CAAC,sCAAsC,SAAS,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QAElE,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,KAAK;aACN,CAAC,CAAC;YACH,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,+CAApB,WAAW,EAAY,GAAG,CAAC,CAAC;YAE5B,MAAM,gBAAgB,CAAC;SACxB;;CACF;AAlDD,gCAkDC"}
|
|
@@ -42,19 +42,19 @@ export declare function deleteExtendedField(payload: DeleteExtendedFieldRequest)
|
|
|
42
42
|
/**
|
|
43
43
|
* Creates a query to retrieve a list of extended fields.
|
|
44
44
|
*
|
|
45
|
-
* The `queryExtendedFields()` function builds a query to retrieve a list of extended fields and returns an [`
|
|
45
|
+
* The `queryExtendedFields()` function builds a query to retrieve a list of extended fields and returns an [`FieldsQueryBuilder`](#fieldsquerybuilder) object.
|
|
46
46
|
*
|
|
47
|
-
* The returned object contains the query definition, which is used to run the query using the [`find()`](#
|
|
47
|
+
* The returned object contains the query definition, which is used to run the query using the [`find()`](#fieldsquerybuilder/find) function.
|
|
48
48
|
*
|
|
49
|
-
* You can refine the query by chaining `
|
|
49
|
+
* You can refine the query by chaining `FieldsQueryBuilder` functions onto the query. `FieldsQueryBuilder` functions enable you to filter, sort, and control the results that `queryExtendedFields()` returns.
|
|
50
50
|
*
|
|
51
|
-
* `queryExtendedFields()` runs with these `
|
|
52
|
-
* - [`skip()`](#
|
|
53
|
-
* - [`limit(50)`](#
|
|
54
|
-
* - [`descending('_createdDate')`](#
|
|
51
|
+
* `queryExtendedFields()` runs with these `FieldsQueryBuilder` defaults, which you can override:
|
|
52
|
+
* - [`skip()`](#fieldsquerybuilder/skip)
|
|
53
|
+
* - [`limit(50)`](#fieldsquerybuilder/limit)
|
|
54
|
+
* - [`descending('_createdDate')`](#fieldsquerybuilder/descending)
|
|
55
55
|
*
|
|
56
56
|
* > **Note:** Only visitors with **Manage Contacts** permissions can query extended fields.
|
|
57
57
|
*
|
|
58
|
-
* The following `
|
|
58
|
+
* The following `FieldsQueryBuilder` functions are supported for `queryExtendedFields()`. For a full description of the `Extended Field` object, see the object returned for the [`items`](#fieldsqueryresult/items) property in [`FieldsQueryResult`](#fieldsqueryresult).
|
|
59
59
|
*/
|
|
60
60
|
export declare function queryExtendedFields(payload: QueryExtendedFieldsRequest): RequestOptionsFactory<QueryExtendedFieldsResponse>;
|
|
@@ -194,20 +194,20 @@ export function deleteExtendedField(payload) {
|
|
|
194
194
|
/**
|
|
195
195
|
* Creates a query to retrieve a list of extended fields.
|
|
196
196
|
*
|
|
197
|
-
* The `queryExtendedFields()` function builds a query to retrieve a list of extended fields and returns an [`
|
|
197
|
+
* The `queryExtendedFields()` function builds a query to retrieve a list of extended fields and returns an [`FieldsQueryBuilder`](#fieldsquerybuilder) object.
|
|
198
198
|
*
|
|
199
|
-
* The returned object contains the query definition, which is used to run the query using the [`find()`](#
|
|
199
|
+
* The returned object contains the query definition, which is used to run the query using the [`find()`](#fieldsquerybuilder/find) function.
|
|
200
200
|
*
|
|
201
|
-
* You can refine the query by chaining `
|
|
201
|
+
* You can refine the query by chaining `FieldsQueryBuilder` functions onto the query. `FieldsQueryBuilder` functions enable you to filter, sort, and control the results that `queryExtendedFields()` returns.
|
|
202
202
|
*
|
|
203
|
-
* `queryExtendedFields()` runs with these `
|
|
204
|
-
* - [`skip()`](#
|
|
205
|
-
* - [`limit(50)`](#
|
|
206
|
-
* - [`descending('_createdDate')`](#
|
|
203
|
+
* `queryExtendedFields()` runs with these `FieldsQueryBuilder` defaults, which you can override:
|
|
204
|
+
* - [`skip()`](#fieldsquerybuilder/skip)
|
|
205
|
+
* - [`limit(50)`](#fieldsquerybuilder/limit)
|
|
206
|
+
* - [`descending('_createdDate')`](#fieldsquerybuilder/descending)
|
|
207
207
|
*
|
|
208
208
|
* > **Note:** Only visitors with **Manage Contacts** permissions can query extended fields.
|
|
209
209
|
*
|
|
210
|
-
* The following `
|
|
210
|
+
* The following `FieldsQueryBuilder` functions are supported for `queryExtendedFields()`. For a full description of the `Extended Field` object, see the object returned for the [`items`](#fieldsqueryresult/items) property in [`FieldsQueryResult`](#fieldsqueryresult).
|
|
211
211
|
*/
|
|
212
212
|
export function queryExtendedFields(payload) {
|
|
213
213
|
const { toJSON: toReq, fromJSON: fromReq } = serializer(_queryExtendedFieldsRequest, {});
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { HttpClient } from '@wix/sdk-types';
|
|
2
|
-
import {
|
|
2
|
+
import { RenameExtendedField, FieldDataType } from './contacts-v4-extended-field.universal';
|
|
3
3
|
export declare const __metadata: {
|
|
4
4
|
PACKAGE_NAME: string;
|
|
5
5
|
};
|
|
6
|
-
export declare function findOrCreateExtendedField(httpClient: HttpClient): (
|
|
6
|
+
export declare function findOrCreateExtendedField(httpClient: HttpClient): (displayName: string, dataType: FieldDataType) => Promise<import("./contacts-v4-extended-field.universal").FindOrCreateExtendedFieldResponse>;
|
|
7
7
|
export declare function getExtendedField(httpClient: HttpClient): (key: string) => Promise<import("./contacts-v4-extended-field.universal").ExtendedField>;
|
|
8
8
|
export declare function renameExtendedField(httpClient: HttpClient): (key: string, field: RenameExtendedField) => Promise<import("./contacts-v4-extended-field.universal").ExtendedField>;
|
|
9
9
|
export declare function deleteExtendedField(httpClient: HttpClient): (key: string) => Promise<void>;
|
|
10
10
|
export declare function queryExtendedFields(httpClient: HttpClient): () => import("./contacts-v4-extended-field.universal").FieldsQueryBuilder;
|
|
11
11
|
export { FieldDataType, FieldType, SortOrder, } from './contacts-v4-extended-field.universal';
|
|
12
|
-
export { ExtendedField, ListExtendedFieldsRequest, Sorting, Paging, ListExtendedFieldsResponse, PagingMetadata, FindOrCreateExtendedFieldRequest, FindOrCreateExtendedFieldResponse, GetExtendedFieldRequest, GetExtendedFieldResponse, GetExtendedFieldByLegacyIdRequest, GetExtendedFieldByLegacyIdResponse, UpdateExtendedFieldRequest, UpdateExtendedFieldResponse, DeleteExtendedFieldRequest, DeleteExtendedFieldResponse, PurgeRequest, PurgeResponse, GdprListRequest, GdprListResponse, QueryExtendedFieldsRequest, Query, QueryExtendedFieldsResponse,
|
|
12
|
+
export { ExtendedField, ListExtendedFieldsRequest, Sorting, Paging, ListExtendedFieldsResponse, PagingMetadata, FindOrCreateExtendedFieldRequest, FindOrCreateExtendedFieldResponse, GetExtendedFieldRequest, GetExtendedFieldResponse, GetExtendedFieldByLegacyIdRequest, GetExtendedFieldByLegacyIdResponse, UpdateExtendedFieldRequest, UpdateExtendedFieldResponse, DeleteExtendedFieldRequest, DeleteExtendedFieldResponse, PurgeRequest, PurgeResponse, GdprListRequest, GdprListResponse, QueryExtendedFieldsRequest, Query, QueryExtendedFieldsResponse, RenameExtendedField, FieldsQueryResult, FieldsQueryBuilder, } from './contacts-v4-extended-field.universal';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { findOrCreateExtendedField as universalFindOrCreateExtendedField, getExtendedField as universalGetExtendedField, renameExtendedField as universalRenameExtendedField, deleteExtendedField as universalDeleteExtendedField, queryExtendedFields as universalQueryExtendedFields, } from './contacts-v4-extended-field.universal';
|
|
2
2
|
export const __metadata = { PACKAGE_NAME: '@wix/crm' };
|
|
3
3
|
export function findOrCreateExtendedField(httpClient) {
|
|
4
|
-
return (
|
|
4
|
+
return (displayName, dataType) => universalFindOrCreateExtendedField(displayName, dataType,
|
|
5
5
|
// @ts-ignore
|
|
6
6
|
{ httpClient });
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contacts-v4-extended-field.public.js","sourceRoot":"","sources":["../../../src/contacts-v4-extended-field.public.ts"],"names":[],"mappings":"AACA,OAAO,EACL,yBAAyB,IAAI,kCAAkC,EAC/D,gBAAgB,IAAI,yBAAyB,EAC7C,mBAAmB,IAAI,4BAA4B,EACnD,mBAAmB,IAAI,4BAA4B,EACnD,mBAAmB,IAAI,4BAA4B,
|
|
1
|
+
{"version":3,"file":"contacts-v4-extended-field.public.js","sourceRoot":"","sources":["../../../src/contacts-v4-extended-field.public.ts"],"names":[],"mappings":"AACA,OAAO,EACL,yBAAyB,IAAI,kCAAkC,EAC/D,gBAAgB,IAAI,yBAAyB,EAC7C,mBAAmB,IAAI,4BAA4B,EACnD,mBAAmB,IAAI,4BAA4B,EACnD,mBAAmB,IAAI,4BAA4B,GAGpD,MAAM,wCAAwC,CAAC;AAEhD,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,YAAY,EAAE,UAAU,EAAE,CAAC;AAEvD,MAAM,UAAU,yBAAyB,CAAC,UAAsB;IAC9D,OAAO,CAAC,WAAmB,EAAE,QAAuB,EAAE,EAAE,CACtD,kCAAkC,CAChC,WAAW,EACX,QAAQ;IACR,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,UAAsB;IACrD,OAAO,CAAC,GAAW,EAAE,EAAE,CACrB,yBAAyB,CACvB,GAAG;IACH,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,UAAsB;IACxD,OAAO,CAAC,GAAW,EAAE,KAA0B,EAAE,EAAE,CACjD,4BAA4B,CAC1B,GAAG,EACH,KAAK;IACL,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,UAAsB;IACxD,OAAO,CAAC,GAAW,EAAE,EAAE,CACrB,4BAA4B,CAC1B,GAAG;IACH,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,UAAsB;IACxD,OAAO,GAAG,EAAE,CACV,4BAA4B;IAC1B,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,OAAO,EACL,aAAa,EACb,SAAS,EACT,SAAS,GACV,MAAM,wCAAwC,CAAC"}
|
|
@@ -18,7 +18,7 @@ export interface ExtendedField {
|
|
|
18
18
|
* Extended field key.
|
|
19
19
|
*
|
|
20
20
|
* When accessing contact data,
|
|
21
|
-
* extended field data is available at `
|
|
21
|
+
* extended field data is available at `fields[key]`.
|
|
22
22
|
* For example, if the key is "custom.notes",
|
|
23
23
|
* the value can be accessed at `fields["custom.notes"]`.
|
|
24
24
|
*
|
|
@@ -182,7 +182,7 @@ export interface GetExtendedFieldRequest {
|
|
|
182
182
|
* Extended field key.
|
|
183
183
|
*
|
|
184
184
|
* When accessing contact data,
|
|
185
|
-
* extended field values are available at `
|
|
185
|
+
* extended field values are available at `fields[key]`.
|
|
186
186
|
* For example, if the key is "custom.notes",
|
|
187
187
|
* the value can be accessed at `fields["custom.notes"]`.
|
|
188
188
|
*
|
|
@@ -276,6 +276,12 @@ export interface QueryExtendedFieldsResponse {
|
|
|
276
276
|
*
|
|
277
277
|
*
|
|
278
278
|
* This function is not a universal function and runs only on the backend.
|
|
279
|
+
* @param displayName - Display name to find or create.
|
|
280
|
+
*
|
|
281
|
+
* If an existing custom field is an exact match
|
|
282
|
+
* for the specified `displayName`,
|
|
283
|
+
* the existing field is returned.
|
|
284
|
+
* If not, a new field is created and returned.
|
|
279
285
|
* @param dataType - Type of data the field holds.
|
|
280
286
|
* Ignored if an existing field is an exact match
|
|
281
287
|
* for the specified display name. One of:
|
|
@@ -286,24 +292,12 @@ export interface QueryExtendedFieldsResponse {
|
|
|
286
292
|
* - `"URL"`: Accepts strings. Prepends `https://` if no protocol is included.
|
|
287
293
|
* @public
|
|
288
294
|
* @requiredField dataType
|
|
289
|
-
* @requiredField
|
|
290
|
-
* @requiredField options.displayName
|
|
295
|
+
* @requiredField displayName
|
|
291
296
|
* @permissionScope Manage Contact Extended Fields
|
|
292
297
|
* @applicableIdentity APP
|
|
293
298
|
* @returns Extended field that was found or created.
|
|
294
299
|
*/
|
|
295
|
-
export declare function findOrCreateExtendedField(
|
|
296
|
-
export interface FindOrCreateExtendedFieldOptions {
|
|
297
|
-
/**
|
|
298
|
-
* Display name to find or create.
|
|
299
|
-
*
|
|
300
|
-
* If an existing custom field is an exact match
|
|
301
|
-
* for the specified `displayName`,
|
|
302
|
-
* the existing field is returned.
|
|
303
|
-
* If not, a new field is created and returned.
|
|
304
|
-
*/
|
|
305
|
-
displayName: string;
|
|
306
|
-
}
|
|
300
|
+
export declare function findOrCreateExtendedField(displayName: string, dataType: FieldDataType): Promise<FindOrCreateExtendedFieldResponse>;
|
|
307
301
|
/**
|
|
308
302
|
* Retrieves an extended field.
|
|
309
303
|
*
|
|
@@ -312,16 +306,16 @@ export interface FindOrCreateExtendedFieldOptions {
|
|
|
312
306
|
* >**Note:** Only visitors with **Manage Contacts** permissions can retrieve extended fields.
|
|
313
307
|
*
|
|
314
308
|
* This function is not a universal function and runs only on the backend.
|
|
309
|
+
* @public
|
|
310
|
+
* @requiredField key
|
|
315
311
|
* @param key - Extended field key.
|
|
316
312
|
*
|
|
317
313
|
* When accessing contact data,
|
|
318
|
-
* extended field values are available at `
|
|
314
|
+
* extended field values are available at `fields[key]`.
|
|
319
315
|
* For example, if the key is "custom.notes",
|
|
320
316
|
* the value can be accessed at `fields["custom.notes"]`.
|
|
321
317
|
*
|
|
322
318
|
* Once set, `key` cannot be modified, even if `displayName` changes.
|
|
323
|
-
* @public
|
|
324
|
-
* @requiredField key
|
|
325
319
|
* @permissionScope Manage Contact Extended Fields
|
|
326
320
|
* @applicableIdentity APP
|
|
327
321
|
* @returns The specified field.
|
|
@@ -335,19 +329,19 @@ export declare function getExtendedField(key: string): Promise<ExtendedField>;
|
|
|
335
329
|
* > **Note:** Only visitors with **Manage Contacts** permissions can rename extended fields.
|
|
336
330
|
*
|
|
337
331
|
* This function is not a universal function and runs only on the backend.
|
|
332
|
+
* @public
|
|
333
|
+
* @requiredField field
|
|
334
|
+
* @requiredField field.displayName
|
|
335
|
+
* @requiredField key
|
|
338
336
|
* @param key - Extended field key.
|
|
339
337
|
*
|
|
340
338
|
* When accessing contact data,
|
|
341
|
-
* extended field
|
|
339
|
+
* extended field values are available at `fields[key]`.
|
|
342
340
|
* For example, if the key is "custom.notes",
|
|
343
341
|
* the value can be accessed at `fields["custom.notes"]`.
|
|
344
342
|
*
|
|
345
|
-
* `key`
|
|
346
|
-
*
|
|
347
|
-
* @public
|
|
348
|
-
* @requiredField field
|
|
349
|
-
* @requiredField field.displayName
|
|
350
|
-
* @requiredField key
|
|
343
|
+
* Once set, `key` cannot be modified, even if `displayName` changes.
|
|
344
|
+
* @param options - Extended field display name to rename.
|
|
351
345
|
* @permissionScope Manage Contact Extended Fields
|
|
352
346
|
* @applicableIdentity APP
|
|
353
347
|
* @returns Updated extended field.
|
|
@@ -420,20 +414,20 @@ export declare function deleteExtendedField(key: string): Promise<void>;
|
|
|
420
414
|
/**
|
|
421
415
|
* Creates a query to retrieve a list of extended fields.
|
|
422
416
|
*
|
|
423
|
-
* The `queryExtendedFields()` function builds a query to retrieve a list of extended fields and returns an [`
|
|
417
|
+
* The `queryExtendedFields()` function builds a query to retrieve a list of extended fields and returns an [`FieldsQueryBuilder`](#fieldsquerybuilder) object.
|
|
424
418
|
*
|
|
425
|
-
* The returned object contains the query definition, which is used to run the query using the [`find()`](#
|
|
419
|
+
* The returned object contains the query definition, which is used to run the query using the [`find()`](#fieldsquerybuilder/find) function.
|
|
426
420
|
*
|
|
427
|
-
* You can refine the query by chaining `
|
|
421
|
+
* You can refine the query by chaining `FieldsQueryBuilder` functions onto the query. `FieldsQueryBuilder` functions enable you to filter, sort, and control the results that `queryExtendedFields()` returns.
|
|
428
422
|
*
|
|
429
|
-
* `queryExtendedFields()` runs with these `
|
|
430
|
-
* - [`skip()`](#
|
|
431
|
-
* - [`limit(50)`](#
|
|
432
|
-
* - [`descending('_createdDate')`](#
|
|
423
|
+
* `queryExtendedFields()` runs with these `FieldsQueryBuilder` defaults, which you can override:
|
|
424
|
+
* - [`skip()`](#fieldsquerybuilder/skip)
|
|
425
|
+
* - [`limit(50)`](#fieldsquerybuilder/limit)
|
|
426
|
+
* - [`descending('_createdDate')`](#fieldsquerybuilder/descending)
|
|
433
427
|
*
|
|
434
428
|
* > **Note:** Only visitors with **Manage Contacts** permissions can query extended fields.
|
|
435
429
|
*
|
|
436
|
-
* The following `
|
|
430
|
+
* The following `FieldsQueryBuilder` functions are supported for `queryExtendedFields()`. For a full description of the `Extended Field` object, see the object returned for the [`items`](#fieldsqueryresult/items) property in [`FieldsQueryResult`](#fieldsqueryresult).
|
|
437
431
|
*
|
|
438
432
|
* This function is not a universal function and runs only on the backend.
|
|
439
433
|
* @public
|
|
@@ -68,6 +68,12 @@ const _updateExtendedFieldResponse = {};
|
|
|
68
68
|
*
|
|
69
69
|
*
|
|
70
70
|
* This function is not a universal function and runs only on the backend.
|
|
71
|
+
* @param displayName - Display name to find or create.
|
|
72
|
+
*
|
|
73
|
+
* If an existing custom field is an exact match
|
|
74
|
+
* for the specified `displayName`,
|
|
75
|
+
* the existing field is returned.
|
|
76
|
+
* If not, a new field is created and returned.
|
|
71
77
|
* @param dataType - Type of data the field holds.
|
|
72
78
|
* Ignored if an existing field is an exact match
|
|
73
79
|
* for the specified display name. One of:
|
|
@@ -78,19 +84,15 @@ const _updateExtendedFieldResponse = {};
|
|
|
78
84
|
* - `"URL"`: Accepts strings. Prepends `https://` if no protocol is included.
|
|
79
85
|
* @public
|
|
80
86
|
* @requiredField dataType
|
|
81
|
-
* @requiredField
|
|
82
|
-
* @requiredField options.displayName
|
|
87
|
+
* @requiredField displayName
|
|
83
88
|
* @permissionScope Manage Contact Extended Fields
|
|
84
89
|
* @applicableIdentity APP
|
|
85
90
|
* @returns Extended field that was found or created.
|
|
86
91
|
*/
|
|
87
|
-
export function findOrCreateExtendedField(
|
|
92
|
+
export function findOrCreateExtendedField(displayName, dataType) {
|
|
88
93
|
var _a, _b, _c;
|
|
89
94
|
return __awaiter(this, arguments, void 0, function* () {
|
|
90
|
-
const requestTransformation = {
|
|
91
|
-
dataType: '$[0]',
|
|
92
|
-
displayName: '$[1].displayName',
|
|
93
|
-
};
|
|
95
|
+
const requestTransformation = { displayName: '$[0]', dataType: '$[1]' };
|
|
94
96
|
const responseTransformation = '$';
|
|
95
97
|
// @ts-ignore
|
|
96
98
|
const { httpClient, sideEffects } = arguments[2];
|
|
@@ -112,7 +114,7 @@ export function findOrCreateExtendedField(dataType, options) {
|
|
|
112
114
|
},
|
|
113
115
|
customTransformation: responseTransformation,
|
|
114
116
|
});
|
|
115
|
-
const payload = toAmbassadorRequest([
|
|
117
|
+
const payload = toAmbassadorRequest([displayName, dataType]);
|
|
116
118
|
const reqOpts = ambassadorWixContactsV4ExtendedField.findOrCreateExtendedField(payload);
|
|
117
119
|
__log(`"FindOrCreateExtendedField" sending request with: ${__inspect(reqOpts)}`);
|
|
118
120
|
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
@@ -123,8 +125,8 @@ export function findOrCreateExtendedField(dataType, options) {
|
|
|
123
125
|
}
|
|
124
126
|
catch (err) {
|
|
125
127
|
const transformedError = transformError(err, requestTransformation, [
|
|
128
|
+
'displayName',
|
|
126
129
|
'dataType',
|
|
127
|
-
'options',
|
|
128
130
|
]);
|
|
129
131
|
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
130
132
|
throw transformedError;
|
|
@@ -139,16 +141,16 @@ export function findOrCreateExtendedField(dataType, options) {
|
|
|
139
141
|
* >**Note:** Only visitors with **Manage Contacts** permissions can retrieve extended fields.
|
|
140
142
|
*
|
|
141
143
|
* This function is not a universal function and runs only on the backend.
|
|
144
|
+
* @public
|
|
145
|
+
* @requiredField key
|
|
142
146
|
* @param key - Extended field key.
|
|
143
147
|
*
|
|
144
148
|
* When accessing contact data,
|
|
145
|
-
* extended field values are available at `
|
|
149
|
+
* extended field values are available at `fields[key]`.
|
|
146
150
|
* For example, if the key is "custom.notes",
|
|
147
151
|
* the value can be accessed at `fields["custom.notes"]`.
|
|
148
152
|
*
|
|
149
153
|
* Once set, `key` cannot be modified, even if `displayName` changes.
|
|
150
|
-
* @public
|
|
151
|
-
* @requiredField key
|
|
152
154
|
* @permissionScope Manage Contact Extended Fields
|
|
153
155
|
* @applicableIdentity APP
|
|
154
156
|
* @returns The specified field.
|
|
@@ -204,19 +206,19 @@ export function getExtendedField(key) {
|
|
|
204
206
|
* > **Note:** Only visitors with **Manage Contacts** permissions can rename extended fields.
|
|
205
207
|
*
|
|
206
208
|
* This function is not a universal function and runs only on the backend.
|
|
209
|
+
* @public
|
|
210
|
+
* @requiredField field
|
|
211
|
+
* @requiredField field.displayName
|
|
212
|
+
* @requiredField key
|
|
207
213
|
* @param key - Extended field key.
|
|
208
214
|
*
|
|
209
215
|
* When accessing contact data,
|
|
210
|
-
* extended field
|
|
216
|
+
* extended field values are available at `fields[key]`.
|
|
211
217
|
* For example, if the key is "custom.notes",
|
|
212
218
|
* the value can be accessed at `fields["custom.notes"]`.
|
|
213
219
|
*
|
|
214
|
-
* `key`
|
|
215
|
-
*
|
|
216
|
-
* @public
|
|
217
|
-
* @requiredField field
|
|
218
|
-
* @requiredField field.displayName
|
|
219
|
-
* @requiredField key
|
|
220
|
+
* Once set, `key` cannot be modified, even if `displayName` changes.
|
|
221
|
+
* @param options - Extended field display name to rename.
|
|
220
222
|
* @permissionScope Manage Contact Extended Fields
|
|
221
223
|
* @applicableIdentity APP
|
|
222
224
|
* @returns Updated extended field.
|
|
@@ -327,20 +329,20 @@ export function deleteExtendedField(key) {
|
|
|
327
329
|
/**
|
|
328
330
|
* Creates a query to retrieve a list of extended fields.
|
|
329
331
|
*
|
|
330
|
-
* The `queryExtendedFields()` function builds a query to retrieve a list of extended fields and returns an [`
|
|
332
|
+
* The `queryExtendedFields()` function builds a query to retrieve a list of extended fields and returns an [`FieldsQueryBuilder`](#fieldsquerybuilder) object.
|
|
331
333
|
*
|
|
332
|
-
* The returned object contains the query definition, which is used to run the query using the [`find()`](#
|
|
334
|
+
* The returned object contains the query definition, which is used to run the query using the [`find()`](#fieldsquerybuilder/find) function.
|
|
333
335
|
*
|
|
334
|
-
* You can refine the query by chaining `
|
|
336
|
+
* You can refine the query by chaining `FieldsQueryBuilder` functions onto the query. `FieldsQueryBuilder` functions enable you to filter, sort, and control the results that `queryExtendedFields()` returns.
|
|
335
337
|
*
|
|
336
|
-
* `queryExtendedFields()` runs with these `
|
|
337
|
-
* - [`skip()`](#
|
|
338
|
-
* - [`limit(50)`](#
|
|
339
|
-
* - [`descending('_createdDate')`](#
|
|
338
|
+
* `queryExtendedFields()` runs with these `FieldsQueryBuilder` defaults, which you can override:
|
|
339
|
+
* - [`skip()`](#fieldsquerybuilder/skip)
|
|
340
|
+
* - [`limit(50)`](#fieldsquerybuilder/limit)
|
|
341
|
+
* - [`descending('_createdDate')`](#fieldsquerybuilder/descending)
|
|
340
342
|
*
|
|
341
343
|
* > **Note:** Only visitors with **Manage Contacts** permissions can query extended fields.
|
|
342
344
|
*
|
|
343
|
-
* The following `
|
|
345
|
+
* The following `FieldsQueryBuilder` functions are supported for `queryExtendedFields()`. For a full description of the `Extended Field` object, see the object returned for the [`items`](#fieldsqueryresult/items) property in [`FieldsQueryResult`](#fieldsqueryresult).
|
|
344
346
|
*
|
|
345
347
|
* This function is not a universal function and runs only on the backend.
|
|
346
348
|
* @public
|
|
@@ -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;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;IACnB,gCAAmB,CAAA;IACnB,8BAAiB,CAAA;IACjB,0CAA6B,CAAA;AAC/B,CAAC,EAJW,SAAS,KAAT,SAAS,QAIpB;AA+BD,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;AAgLD,MAAM,2BAA2B,GAAG,EAAE,CAAC;AACvC,MAAM,4BAA4B,GAAG,EAAE,CAAC;AACxC,MAAM,iCAAiC,GAAG,EAAE,CAAC;AAC7C,MAAM,kCAAkC,GAAG,EAAE,CAAC;AAC9C,MAAM,wBAAwB,GAAG,EAAE,CAAC;AACpC,MAAM,yBAAyB,GAAG,EAAE,CAAC;AACrC,MAAM,2BAA2B,GAAG,EAAE,CAAC;AACvC,MAAM,4BAA4B,GAAG,EAAE,CAAC;AACxC,MAAM,2BAA2B,GAAG,EAAE,CAAC;AACvC,MAAM,4BAA4B,GAAG,EAAE,CAAC;AAExC
|
|
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,EAA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AO,GAAG,EAAE;gBACZ,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,+CAApB,WAAW,EAAY,GAAG,CAAC,CAAC;gBAC5B,MAAM,GAAG,CAAC;aACX;QACH,CAAC,CAAA;QACD,kBAAkB,EAAE,CAAC,GAAG,IAAW,EAAE,EAAE,CAAC,mBAAmB,CAAC,IAAI,CAAC;QACjE,mBAAmB,EAAE,CAAC,EAAE,IAAI,EAAO,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC;QACtD,gBAAgB,EAAE,CAAC,GAAQ,EAAE,EAAE;YAC7B,MAAM,gBAAgB,GAAG,cAAc,CAAC,GAAG,EAAE,qBAAqB,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"}
|
|
@@ -11,7 +11,7 @@ export declare function getTask(payload: GetTaskRequest): RequestOptionsFactory<
|
|
|
11
11
|
* Creates a new task.
|
|
12
12
|
*
|
|
13
13
|
*
|
|
14
|
-
* The `createTask()` function returns a Promise that resolves to the ID of the
|
|
14
|
+
* The `createTask()` function returns a Promise that resolves to the ID of the created task.
|
|
15
15
|
*
|
|
16
16
|
* When creating a new task, the specified `task` object must contain a `title` value.
|
|
17
17
|
*/
|
|
@@ -22,7 +22,7 @@ export declare function createTask(payload: CreateTaskRequest): RequestOptionsFa
|
|
|
22
22
|
*
|
|
23
23
|
* The `updateTaskFields()` function returns a Promise that resolves to the ID of the the updated task after it has been successfully updated.
|
|
24
24
|
*
|
|
25
|
-
* Only the properties
|
|
25
|
+
* Only the properties in the `task` object are updated. All other properties remain the same.
|
|
26
26
|
*
|
|
27
27
|
* To remove a value from the task, pass its corresponding property with a value of `null`.
|
|
28
28
|
*/
|
|
@@ -71,7 +71,7 @@ export function getTask(payload) {
|
|
|
71
71
|
* Creates a new task.
|
|
72
72
|
*
|
|
73
73
|
*
|
|
74
|
-
* The `createTask()` function returns a Promise that resolves to the ID of the
|
|
74
|
+
* The `createTask()` function returns a Promise that resolves to the ID of the created task.
|
|
75
75
|
*
|
|
76
76
|
* When creating a new task, the specified `task` object must contain a `title` value.
|
|
77
77
|
*/
|
|
@@ -105,7 +105,7 @@ export function createTask(payload) {
|
|
|
105
105
|
*
|
|
106
106
|
* The `updateTaskFields()` function returns a Promise that resolves to the ID of the the updated task after it has been successfully updated.
|
|
107
107
|
*
|
|
108
|
-
* Only the properties
|
|
108
|
+
* Only the properties in the `task` object are updated. All other properties remain the same.
|
|
109
109
|
*
|
|
110
110
|
* To remove a value from the task, pass its corresponding property with a value of `null`.
|
|
111
111
|
*/
|