@wix/crm 1.0.28 → 1.0.30
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 +6 -2
- package/build/cjs/src/crm-tasks-v1-task.universal.js +6 -2
- 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 +6 -2
- package/build/es/src/crm-tasks-v1-task.universal.js +6 -2
- package/build/es/src/crm-tasks-v1-task.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -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>;
|
|
@@ -201,20 +201,20 @@ exports.deleteExtendedField = deleteExtendedField;
|
|
|
201
201
|
/**
|
|
202
202
|
* Creates a query to retrieve a list of extended fields.
|
|
203
203
|
*
|
|
204
|
-
* The `queryExtendedFields()` function builds a query to retrieve a list of extended fields and returns an [`
|
|
204
|
+
* The `queryExtendedFields()` function builds a query to retrieve a list of extended fields and returns an [`FieldsQueryBuilder`](#fieldsquerybuilder) object.
|
|
205
205
|
*
|
|
206
|
-
* The returned object contains the query definition, which is used to run the query using the [`find()`](#
|
|
206
|
+
* The returned object contains the query definition, which is used to run the query using the [`find()`](#fieldsquerybuilder/find) function.
|
|
207
207
|
*
|
|
208
|
-
* You can refine the query by chaining `
|
|
208
|
+
* 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.
|
|
209
209
|
*
|
|
210
|
-
* `queryExtendedFields()` runs with these `
|
|
211
|
-
* - [`skip()`](#
|
|
212
|
-
* - [`limit(50)`](#
|
|
213
|
-
* - [`descending('_createdDate')`](#
|
|
210
|
+
* `queryExtendedFields()` runs with these `FieldsQueryBuilder` defaults, which you can override:
|
|
211
|
+
* - [`skip()`](#fieldsquerybuilder/skip)
|
|
212
|
+
* - [`limit(50)`](#fieldsquerybuilder/limit)
|
|
213
|
+
* - [`descending('_createdDate')`](#fieldsquerybuilder/descending)
|
|
214
214
|
*
|
|
215
215
|
* > **Note:** Only visitors with **Manage Contacts** permissions can query extended fields.
|
|
216
216
|
*
|
|
217
|
-
* The following `
|
|
217
|
+
* 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).
|
|
218
218
|
*/
|
|
219
219
|
function queryExtendedFields(payload) {
|
|
220
220
|
const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.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';
|
|
@@ -4,7 +4,7 @@ exports.SortOrder = exports.FieldType = exports.FieldDataType = exports.queryExt
|
|
|
4
4
|
const contacts_v4_extended_field_universal_1 = require("./contacts-v4-extended-field.universal");
|
|
5
5
|
exports.__metadata = { PACKAGE_NAME: '@wix/crm' };
|
|
6
6
|
function findOrCreateExtendedField(httpClient) {
|
|
7
|
-
return (
|
|
7
|
+
return (displayName, dataType) => (0, contacts_v4_extended_field_universal_1.findOrCreateExtendedField)(displayName, dataType,
|
|
8
8
|
// @ts-ignore
|
|
9
9
|
{ httpClient });
|
|
10
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contacts-v4-extended-field.public.js","sourceRoot":"","sources":["../../../src/contacts-v4-extended-field.public.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"contacts-v4-extended-field.public.js","sourceRoot":"","sources":["../../../src/contacts-v4-extended-field.public.ts"],"names":[],"mappings":";;;AACA,iGAQgD;AAEnC,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,UAAU,EAAE,CAAC;AAEvD,SAAgB,yBAAyB,CAAC,UAAsB;IAC9D,OAAO,CAAC,WAAmB,EAAE,QAAuB,EAAE,EAAE,CACtD,IAAA,gEAAkC,EAChC,WAAW,EACX,QAAQ;IACR,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,8DAQC;AAED,SAAgB,gBAAgB,CAAC,UAAsB;IACrD,OAAO,CAAC,GAAW,EAAE,EAAE,CACrB,IAAA,uDAAyB,EACvB,GAAG;IACH,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,4CAOC;AAED,SAAgB,mBAAmB,CAAC,UAAsB;IACxD,OAAO,CAAC,GAAW,EAAE,KAA0B,EAAE,EAAE,CACjD,IAAA,0DAA4B,EAC1B,GAAG,EACH,KAAK;IACL,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,kDAQC;AAED,SAAgB,mBAAmB,CAAC,UAAsB;IACxD,OAAO,CAAC,GAAW,EAAE,EAAE,CACrB,IAAA,0DAA4B,EAC1B,GAAG;IACH,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,kDAOC;AAED,SAAgB,mBAAmB,CAAC,UAAsB;IACxD,OAAO,GAAG,EAAE,CACV,IAAA,0DAA4B;IAC1B,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAND,kDAMC;AAED,+FAIgD;AAH9C,qIAAA,aAAa,OAAA;AACb,iIAAA,SAAS,OAAA;AACT,iIAAA,SAAS,OAAA"}
|
|
@@ -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
|
|
@@ -90,6 +90,12 @@ const _updateExtendedFieldResponse = {};
|
|
|
90
90
|
*
|
|
91
91
|
*
|
|
92
92
|
* This function is not a universal function and runs only on the backend.
|
|
93
|
+
* @param displayName - Display name to find or create.
|
|
94
|
+
*
|
|
95
|
+
* If an existing custom field is an exact match
|
|
96
|
+
* for the specified `displayName`,
|
|
97
|
+
* the existing field is returned.
|
|
98
|
+
* If not, a new field is created and returned.
|
|
93
99
|
* @param dataType - Type of data the field holds.
|
|
94
100
|
* Ignored if an existing field is an exact match
|
|
95
101
|
* for the specified display name. One of:
|
|
@@ -100,19 +106,15 @@ const _updateExtendedFieldResponse = {};
|
|
|
100
106
|
* - `"URL"`: Accepts strings. Prepends `https://` if no protocol is included.
|
|
101
107
|
* @public
|
|
102
108
|
* @requiredField dataType
|
|
103
|
-
* @requiredField
|
|
104
|
-
* @requiredField options.displayName
|
|
109
|
+
* @requiredField displayName
|
|
105
110
|
* @permissionScope Manage Contact Extended Fields
|
|
106
111
|
* @applicableIdentity APP
|
|
107
112
|
* @returns Extended field that was found or created.
|
|
108
113
|
*/
|
|
109
|
-
function findOrCreateExtendedField(
|
|
114
|
+
function findOrCreateExtendedField(displayName, dataType) {
|
|
110
115
|
var _a, _b, _c;
|
|
111
116
|
return __awaiter(this, arguments, void 0, function* () {
|
|
112
|
-
const requestTransformation = {
|
|
113
|
-
dataType: '$[0]',
|
|
114
|
-
displayName: '$[1].displayName',
|
|
115
|
-
};
|
|
117
|
+
const requestTransformation = { displayName: '$[0]', dataType: '$[1]' };
|
|
116
118
|
const responseTransformation = '$';
|
|
117
119
|
// @ts-ignore
|
|
118
120
|
const { httpClient, sideEffects } = arguments[2];
|
|
@@ -134,7 +136,7 @@ function findOrCreateExtendedField(dataType, options) {
|
|
|
134
136
|
},
|
|
135
137
|
customTransformation: responseTransformation,
|
|
136
138
|
});
|
|
137
|
-
const payload = toAmbassadorRequest([
|
|
139
|
+
const payload = toAmbassadorRequest([displayName, dataType]);
|
|
138
140
|
const reqOpts = ambassadorWixContactsV4ExtendedField.findOrCreateExtendedField(payload);
|
|
139
141
|
__log(`"FindOrCreateExtendedField" sending request with: ${__inspect(reqOpts)}`);
|
|
140
142
|
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
@@ -145,8 +147,8 @@ function findOrCreateExtendedField(dataType, options) {
|
|
|
145
147
|
}
|
|
146
148
|
catch (err) {
|
|
147
149
|
const transformedError = (0, velo_1.transformError)(err, requestTransformation, [
|
|
150
|
+
'displayName',
|
|
148
151
|
'dataType',
|
|
149
|
-
'options',
|
|
150
152
|
]);
|
|
151
153
|
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
152
154
|
throw transformedError;
|
|
@@ -162,16 +164,16 @@ exports.findOrCreateExtendedField = findOrCreateExtendedField;
|
|
|
162
164
|
* >**Note:** Only visitors with **Manage Contacts** permissions can retrieve extended fields.
|
|
163
165
|
*
|
|
164
166
|
* This function is not a universal function and runs only on the backend.
|
|
167
|
+
* @public
|
|
168
|
+
* @requiredField key
|
|
165
169
|
* @param key - Extended field key.
|
|
166
170
|
*
|
|
167
171
|
* When accessing contact data,
|
|
168
|
-
* extended field values are available at `
|
|
172
|
+
* extended field values are available at `fields[key]`.
|
|
169
173
|
* For example, if the key is "custom.notes",
|
|
170
174
|
* the value can be accessed at `fields["custom.notes"]`.
|
|
171
175
|
*
|
|
172
176
|
* Once set, `key` cannot be modified, even if `displayName` changes.
|
|
173
|
-
* @public
|
|
174
|
-
* @requiredField key
|
|
175
177
|
* @permissionScope Manage Contact Extended Fields
|
|
176
178
|
* @applicableIdentity APP
|
|
177
179
|
* @returns The specified field.
|
|
@@ -228,19 +230,19 @@ exports.getExtendedField = getExtendedField;
|
|
|
228
230
|
* > **Note:** Only visitors with **Manage Contacts** permissions can rename extended fields.
|
|
229
231
|
*
|
|
230
232
|
* This function is not a universal function and runs only on the backend.
|
|
233
|
+
* @public
|
|
234
|
+
* @requiredField field
|
|
235
|
+
* @requiredField field.displayName
|
|
236
|
+
* @requiredField key
|
|
231
237
|
* @param key - Extended field key.
|
|
232
238
|
*
|
|
233
239
|
* When accessing contact data,
|
|
234
|
-
* extended field
|
|
240
|
+
* extended field values are available at `fields[key]`.
|
|
235
241
|
* For example, if the key is "custom.notes",
|
|
236
242
|
* the value can be accessed at `fields["custom.notes"]`.
|
|
237
243
|
*
|
|
238
|
-
* `key`
|
|
239
|
-
*
|
|
240
|
-
* @public
|
|
241
|
-
* @requiredField field
|
|
242
|
-
* @requiredField field.displayName
|
|
243
|
-
* @requiredField key
|
|
244
|
+
* Once set, `key` cannot be modified, even if `displayName` changes.
|
|
245
|
+
* @param options - Extended field display name to rename.
|
|
244
246
|
* @permissionScope Manage Contact Extended Fields
|
|
245
247
|
* @applicableIdentity APP
|
|
246
248
|
* @returns Updated extended field.
|
|
@@ -353,20 +355,20 @@ exports.deleteExtendedField = deleteExtendedField;
|
|
|
353
355
|
/**
|
|
354
356
|
* Creates a query to retrieve a list of extended fields.
|
|
355
357
|
*
|
|
356
|
-
* The `queryExtendedFields()` function builds a query to retrieve a list of extended fields and returns an [`
|
|
358
|
+
* The `queryExtendedFields()` function builds a query to retrieve a list of extended fields and returns an [`FieldsQueryBuilder`](#fieldsquerybuilder) object.
|
|
357
359
|
*
|
|
358
|
-
* The returned object contains the query definition, which is used to run the query using the [`find()`](#
|
|
360
|
+
* The returned object contains the query definition, which is used to run the query using the [`find()`](#fieldsquerybuilder/find) function.
|
|
359
361
|
*
|
|
360
|
-
* You can refine the query by chaining `
|
|
362
|
+
* 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.
|
|
361
363
|
*
|
|
362
|
-
* `queryExtendedFields()` runs with these `
|
|
363
|
-
* - [`skip()`](#
|
|
364
|
-
* - [`limit(50)`](#
|
|
365
|
-
* - [`descending('_createdDate')`](#
|
|
364
|
+
* `queryExtendedFields()` runs with these `FieldsQueryBuilder` defaults, which you can override:
|
|
365
|
+
* - [`skip()`](#fieldsquerybuilder/skip)
|
|
366
|
+
* - [`limit(50)`](#fieldsquerybuilder/limit)
|
|
367
|
+
* - [`descending('_createdDate')`](#fieldsquerybuilder/descending)
|
|
366
368
|
*
|
|
367
369
|
* > **Note:** Only visitors with **Manage Contacts** permissions can query extended fields.
|
|
368
370
|
*
|
|
369
|
-
* The following `
|
|
371
|
+
* 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).
|
|
370
372
|
*
|
|
371
373
|
* This function is not a universal function and runs only on the backend.
|
|
372
374
|
* @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,kDAIiC;AAEjC,wGAA0F;AAC1F,aAAa;AACb,4FAA6E;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;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,CAAC;AACF,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,eAAe,GAAG,GAAG,CAAC;AAgE5B,IAAY,aAMX;AAND,WAAY,aAAa;IACvB,wDAAuC,CAAA;IACvC,8BAAa,CAAA;IACb,kCAAiB,CAAA;IACjB,8BAAa,CAAA;IACb,4BAAW,CAAA;AACb,CAAC,EANW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAMxB;AAED,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,gCAAmB,CAAA;IACnB,8BAAiB,CAAA;IACjB,0CAA6B,CAAA;AAC/B,CAAC,EAJW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAIpB;AA+BD,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,GAAT,iBAAS,KAAT,iBAAS,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,kDAIiC;AAEjC,wGAA0F;AAC1F,aAAa;AACb,4FAA6E;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;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,CAAC;AACF,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,e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AW,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,IAAA,qBAAc,EAAC,GAAG,EAAE,qBAAqB,CAAC,CAAC;YAEpE,MAAM,gBAAgB,CAAC;QACzB,CAAC;QACD,YAAY,EAAE,QAAQ;QACtB,mBAAmB,EAAE,IAAA,4CAAqC,EAAC,aAAa,CAAC;KAC1E,CAAC,CAAC,EAAE,4BAA4B,EAAE,IAAI,EAAE,CAAC,CAAC;AAC7C,CAAC;AA1DD,kDA0DC"}
|
|
@@ -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 newly created task after it has been successfully created.
|
|
15
15
|
*
|
|
16
16
|
* When creating a new task, the specified `task` object must contain a `title` value.
|
|
17
17
|
*/
|
|
@@ -38,6 +38,6 @@ export declare function setCompletedStatus(payload: CompleteTaskRequest): Reques
|
|
|
38
38
|
* Removes an existing task.
|
|
39
39
|
*
|
|
40
40
|
*
|
|
41
|
-
* The `removeTask()` function returns a Promise that resolves to the ID of the
|
|
41
|
+
* The `removeTask()` function returns a Promise that resolves to the ID of the removed task after it has been successfully removed.
|
|
42
42
|
*/
|
|
43
43
|
export declare function deleteTask(payload: DeleteTaskRequest): RequestOptionsFactory<DeleteTaskResponse>;
|
|
@@ -75,7 +75,7 @@ exports.getTask = getTask;
|
|
|
75
75
|
* Creates a new task.
|
|
76
76
|
*
|
|
77
77
|
*
|
|
78
|
-
* The `createTask()` function returns a Promise that resolves to the ID of the
|
|
78
|
+
* The `createTask()` function returns a Promise that resolves to the ID of the newly created task after it has been successfully created.
|
|
79
79
|
*
|
|
80
80
|
* When creating a new task, the specified `task` object must contain a `title` value.
|
|
81
81
|
*/
|
|
@@ -172,7 +172,7 @@ exports.setCompletedStatus = setCompletedStatus;
|
|
|
172
172
|
* Removes an existing task.
|
|
173
173
|
*
|
|
174
174
|
*
|
|
175
|
-
* The `removeTask()` function returns a Promise that resolves to the ID of the
|
|
175
|
+
* The `removeTask()` function returns a Promise that resolves to the ID of the removed task after it has been successfully removed.
|
|
176
176
|
*/
|
|
177
177
|
function deleteTask(payload) {
|
|
178
178
|
const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_deleteTaskRequest, {});
|
|
@@ -246,6 +246,7 @@ export interface DeleteCompletedResponse {
|
|
|
246
246
|
*
|
|
247
247
|
* This function is not a universal function and runs only on the backend.
|
|
248
248
|
* @public
|
|
249
|
+
* @documentationMaturity preview
|
|
249
250
|
* @requiredField _id
|
|
250
251
|
* @param _id - Task ID.
|
|
251
252
|
*/
|
|
@@ -254,13 +255,14 @@ export declare function getTask(_id: string): Promise<GetTaskResponse>;
|
|
|
254
255
|
* Creates a new task.
|
|
255
256
|
*
|
|
256
257
|
*
|
|
257
|
-
* The `createTask()` function returns a Promise that resolves to the ID of the
|
|
258
|
+
* The `createTask()` function returns a Promise that resolves to the ID of the newly created task after it has been successfully created.
|
|
258
259
|
*
|
|
259
260
|
* When creating a new task, the specified `task` object must contain a `title` value.
|
|
260
261
|
*
|
|
261
262
|
* This function is not a universal function and runs only on the backend.
|
|
262
263
|
* @param task - Task object with the creation data
|
|
263
264
|
* @public
|
|
265
|
+
* @documentationMaturity preview
|
|
264
266
|
* @requiredField task
|
|
265
267
|
*/
|
|
266
268
|
export declare function createTask(task: TaskData): Promise<CreateTaskResponse>;
|
|
@@ -278,6 +280,7 @@ export declare function createTask(task: TaskData): Promise<CreateTaskResponse>;
|
|
|
278
280
|
* @param fields - Set of desired fields.
|
|
279
281
|
* @param task - Task object with the updated data
|
|
280
282
|
* @public
|
|
283
|
+
* @documentationMaturity preview
|
|
281
284
|
* @requiredField _id
|
|
282
285
|
* @requiredField fields
|
|
283
286
|
* @requiredField task
|
|
@@ -303,10 +306,11 @@ export declare function updateTaskStatus(_id: string, isCompleted: boolean | nul
|
|
|
303
306
|
* Removes an existing task.
|
|
304
307
|
*
|
|
305
308
|
*
|
|
306
|
-
* The `removeTask()` function returns a Promise that resolves to the ID of the
|
|
309
|
+
* The `removeTask()` function returns a Promise that resolves to the ID of the removed task after it has been successfully removed.
|
|
307
310
|
*
|
|
308
311
|
* This function is not a universal function and runs only on the backend.
|
|
309
312
|
* @public
|
|
313
|
+
* @documentationMaturity preview
|
|
310
314
|
* @requiredField _id
|
|
311
315
|
* @param _id - Task ID.
|
|
312
316
|
*/
|
|
@@ -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,13 +133,14 @@ 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 newly created task after it has been successfully created.
|
|
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
141
|
* @param task - Task object with the creation data
|
|
141
142
|
* @public
|
|
143
|
+
* @documentationMaturity preview
|
|
142
144
|
* @requiredField task
|
|
143
145
|
*/
|
|
144
146
|
function createTask(task) {
|
|
@@ -199,6 +201,7 @@ exports.createTask = createTask;
|
|
|
199
201
|
* @param fields - Set of desired fields.
|
|
200
202
|
* @param task - Task object with the updated data
|
|
201
203
|
* @public
|
|
204
|
+
* @documentationMaturity preview
|
|
202
205
|
* @requiredField _id
|
|
203
206
|
* @requiredField fields
|
|
204
207
|
* @requiredField task
|
|
@@ -313,10 +316,11 @@ exports.updateTaskStatus = updateTaskStatus;
|
|
|
313
316
|
* Removes an existing task.
|
|
314
317
|
*
|
|
315
318
|
*
|
|
316
|
-
* The `removeTask()` function returns a Promise that resolves to the ID of the
|
|
319
|
+
* The `removeTask()` function returns a Promise that resolves to the ID of the removed task after it has been successfully removed.
|
|
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,CAAC;AACF,MAA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jC,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,GAA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,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,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,QAIp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AAC;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 newly created task after it has been successfully created.
|
|
15
15
|
*
|
|
16
16
|
* When creating a new task, the specified `task` object must contain a `title` value.
|
|
17
17
|
*/
|
|
@@ -38,6 +38,6 @@ export declare function setCompletedStatus(payload: CompleteTaskRequest): Reques
|
|
|
38
38
|
* Removes an existing task.
|
|
39
39
|
*
|
|
40
40
|
*
|
|
41
|
-
* The `removeTask()` function returns a Promise that resolves to the ID of the
|
|
41
|
+
* The `removeTask()` function returns a Promise that resolves to the ID of the removed task after it has been successfully removed.
|
|
42
42
|
*/
|
|
43
43
|
export declare function deleteTask(payload: DeleteTaskRequest): RequestOptionsFactory<DeleteTaskResponse>;
|
|
@@ -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 newly created task after it has been successfully created.
|
|
75
75
|
*
|
|
76
76
|
* When creating a new task, the specified `task` object must contain a `title` value.
|
|
77
77
|
*/
|
|
@@ -165,7 +165,7 @@ export function setCompletedStatus(payload) {
|
|
|
165
165
|
* Removes an existing task.
|
|
166
166
|
*
|
|
167
167
|
*
|
|
168
|
-
* The `removeTask()` function returns a Promise that resolves to the ID of the
|
|
168
|
+
* The `removeTask()` function returns a Promise that resolves to the ID of the removed task after it has been successfully removed.
|
|
169
169
|
*/
|
|
170
170
|
export function deleteTask(payload) {
|
|
171
171
|
const { toJSON: toReq, fromJSON: fromReq } = serializer(_deleteTaskRequest, {});
|
|
@@ -246,6 +246,7 @@ export interface DeleteCompletedResponse {
|
|
|
246
246
|
*
|
|
247
247
|
* This function is not a universal function and runs only on the backend.
|
|
248
248
|
* @public
|
|
249
|
+
* @documentationMaturity preview
|
|
249
250
|
* @requiredField _id
|
|
250
251
|
* @param _id - Task ID.
|
|
251
252
|
*/
|
|
@@ -254,13 +255,14 @@ export declare function getTask(_id: string): Promise<GetTaskResponse>;
|
|
|
254
255
|
* Creates a new task.
|
|
255
256
|
*
|
|
256
257
|
*
|
|
257
|
-
* The `createTask()` function returns a Promise that resolves to the ID of the
|
|
258
|
+
* The `createTask()` function returns a Promise that resolves to the ID of the newly created task after it has been successfully created.
|
|
258
259
|
*
|
|
259
260
|
* When creating a new task, the specified `task` object must contain a `title` value.
|
|
260
261
|
*
|
|
261
262
|
* This function is not a universal function and runs only on the backend.
|
|
262
263
|
* @param task - Task object with the creation data
|
|
263
264
|
* @public
|
|
265
|
+
* @documentationMaturity preview
|
|
264
266
|
* @requiredField task
|
|
265
267
|
*/
|
|
266
268
|
export declare function createTask(task: TaskData): Promise<CreateTaskResponse>;
|
|
@@ -278,6 +280,7 @@ export declare function createTask(task: TaskData): Promise<CreateTaskResponse>;
|
|
|
278
280
|
* @param fields - Set of desired fields.
|
|
279
281
|
* @param task - Task object with the updated data
|
|
280
282
|
* @public
|
|
283
|
+
* @documentationMaturity preview
|
|
281
284
|
* @requiredField _id
|
|
282
285
|
* @requiredField fields
|
|
283
286
|
* @requiredField task
|
|
@@ -303,10 +306,11 @@ export declare function updateTaskStatus(_id: string, isCompleted: boolean | nul
|
|
|
303
306
|
* Removes an existing task.
|
|
304
307
|
*
|
|
305
308
|
*
|
|
306
|
-
* The `removeTask()` function returns a Promise that resolves to the ID of the
|
|
309
|
+
* The `removeTask()` function returns a Promise that resolves to the ID of the removed task after it has been successfully removed.
|
|
307
310
|
*
|
|
308
311
|
* This function is not a universal function and runs only on the backend.
|
|
309
312
|
* @public
|
|
313
|
+
* @documentationMaturity preview
|
|
310
314
|
* @requiredField _id
|
|
311
315
|
* @param _id - Task ID.
|
|
312
316
|
*/
|
|
@@ -59,6 +59,7 @@ const _updateTaskResponse = {};
|
|
|
59
59
|
*
|
|
60
60
|
* This function is not a universal function and runs only on the backend.
|
|
61
61
|
* @public
|
|
62
|
+
* @documentationMaturity preview
|
|
62
63
|
* @requiredField _id
|
|
63
64
|
* @param _id - Task ID.
|
|
64
65
|
*/
|
|
@@ -109,13 +110,14 @@ export function getTask(_id) {
|
|
|
109
110
|
* Creates a new task.
|
|
110
111
|
*
|
|
111
112
|
*
|
|
112
|
-
* The `createTask()` function returns a Promise that resolves to the ID of the
|
|
113
|
+
* The `createTask()` function returns a Promise that resolves to the ID of the newly created task after it has been successfully created.
|
|
113
114
|
*
|
|
114
115
|
* When creating a new task, the specified `task` object must contain a `title` value.
|
|
115
116
|
*
|
|
116
117
|
* This function is not a universal function and runs only on the backend.
|
|
117
118
|
* @param task - Task object with the creation data
|
|
118
119
|
* @public
|
|
120
|
+
* @documentationMaturity preview
|
|
119
121
|
* @requiredField task
|
|
120
122
|
*/
|
|
121
123
|
export function createTask(task) {
|
|
@@ -175,6 +177,7 @@ export function createTask(task) {
|
|
|
175
177
|
* @param fields - Set of desired fields.
|
|
176
178
|
* @param task - Task object with the updated data
|
|
177
179
|
* @public
|
|
180
|
+
* @documentationMaturity preview
|
|
178
181
|
* @requiredField _id
|
|
179
182
|
* @requiredField fields
|
|
180
183
|
* @requiredField task
|
|
@@ -287,10 +290,11 @@ export function updateTaskStatus(_id, isCompleted) {
|
|
|
287
290
|
* Removes an existing task.
|
|
288
291
|
*
|
|
289
292
|
*
|
|
290
|
-
* The `removeTask()` function returns a Promise that resolves to the ID of the
|
|
293
|
+
* The `removeTask()` function returns a Promise that resolves to the ID of the removed task after it has been successfully removed.
|
|
291
294
|
*
|
|
292
295
|
* This function is not a universal function and runs only on the backend.
|
|
293
296
|
* @public
|
|
297
|
+
* @documentationMaturity preview
|
|
294
298
|
* @requiredField _id
|
|
295
299
|
* @param _id - Task ID.
|
|
296
300
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"crm-tasks-v1-task.universal.js","sourceRoot":"","sources":["../../../src/crm-tasks-v1-task.universal.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAErE,OAAO,KAAK,2BAA2B,MAAM,0BAA0B,CAAC;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;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;AAoC5B,MAAM,CAAN,IAAY,WAGX;AAHD,WAAY,WAAW;IACrB,4BAAa,CAAA;IACb,0BAAW,CAAA;AACb,CAAC,EAHW,WAAW,KAAX,WAAW,QAGtB;AA+BD,MAAM,CAAN,IAAY,OAKX;AALD,WAAY,OAAO;IACjB,uBAAuB;IACvB,gCAAqB,CAAA;IACrB,2BAA2B;IAC3B,sCAA2B,CAAA;AAC7B,CAAC,EALW,OAAO,KAAP,OAAO,QAKlB;AA+ED,MAAM,CAAN,IAAY,OAGX;AAHD,WAAY,OAAO;IACjB,0BAAe,CAAA;IACf,kCAAuB,CAAA;AACzB,CAAC,EAHW,OAAO,KAAP,OAAO,QAGlB;AA8GD,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AG,UAAU,CAAC;YAC9B,UAAU,EAAE,mBAAmB;YAC/B,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,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,cAAc,CAAC,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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/crm",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.30",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"groupId": "com.wixpress.public-sdk-autogen"
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
|
-
"falconPackageHash": "
|
|
36
|
+
"falconPackageHash": "dbbd8e4fcc737bc234b7f40ae3d2fcc59e3ec6af49ad5eaf6a2ccc6b"
|
|
37
37
|
}
|