@wix/crm 1.0.24 → 1.0.26
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.public.d.ts +4 -4
- package/build/cjs/src/contacts-v4-extended-field.public.js +2 -2
- package/build/cjs/src/contacts-v4-extended-field.public.js.map +1 -1
- package/build/cjs/src/contacts-v4-extended-field.universal.d.ts +69 -63
- package/build/cjs/src/contacts-v4-extended-field.universal.js +26 -16
- package/build/cjs/src/contacts-v4-extended-field.universal.js.map +1 -1
- package/build/es/src/contacts-v4-extended-field.public.d.ts +4 -4
- package/build/es/src/contacts-v4-extended-field.public.js +2 -2
- package/build/es/src/contacts-v4-extended-field.public.js.map +1 -1
- package/build/es/src/contacts-v4-extended-field.universal.d.ts +69 -63
- package/build/es/src/contacts-v4-extended-field.universal.js +26 -16
- package/build/es/src/contacts-v4-extended-field.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { HttpClient } from '@wix/sdk-types';
|
|
2
|
-
import { FindOrCreateExtendedFieldOptions,
|
|
2
|
+
import { FindOrCreateExtendedFieldOptions, 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): (dataType: FieldDataType, options: FindOrCreateExtendedFieldOptions) => 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
|
-
export declare function renameExtendedField(httpClient: HttpClient): (key: string,
|
|
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, FindOrCreateExtendedFieldOptions,
|
|
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, FindOrCreateExtendedFieldOptions, 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 (dataType, options) => (0, contacts_v4_extended_field_universal_1.findOrCreateExtendedField)(dataType, options,
|
|
8
8
|
// @ts-ignore
|
|
9
9
|
{ httpClient });
|
|
10
10
|
}
|
|
@@ -16,7 +16,7 @@ function getExtendedField(httpClient) {
|
|
|
16
16
|
}
|
|
17
17
|
exports.getExtendedField = getExtendedField;
|
|
18
18
|
function renameExtendedField(httpClient) {
|
|
19
|
-
return (key,
|
|
19
|
+
return (key, field) => (0, contacts_v4_extended_field_universal_1.renameExtendedField)(key, field,
|
|
20
20
|
// @ts-ignore
|
|
21
21
|
{ httpClient });
|
|
22
22
|
}
|
|
@@ -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,iGASgD;AAEnC,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,UAAU,EAAE,CAAC;AAEvD,SAAgB,yBAAyB,CAAC,UAAsB;IAC9D,OAAO,CAAC,QAAuB,EAAE,OAAyC,EAAE,EAAE,CAC5E,IAAA,gEAAkC,EAChC,QAAQ,EACR,OAAO;IACP,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"}
|
|
@@ -272,31 +272,34 @@ export interface QueryExtendedFieldsResponse {
|
|
|
272
272
|
* [List Extended Fields](https:dev.wix.com/api/rest/contacts/extended-fields/list-extended-fields).
|
|
273
273
|
*
|
|
274
274
|
* This function is not a universal function and runs only on the backend.
|
|
275
|
-
* @param
|
|
275
|
+
* @param dataType - Type of data the field holds.
|
|
276
|
+
* Ignored if an existing field is an exact match
|
|
277
|
+
* for the specified display name.
|
|
276
278
|
*
|
|
277
|
-
*
|
|
278
|
-
*
|
|
279
|
-
*
|
|
280
|
-
*
|
|
279
|
+
* - `TEXT`: Accepts strings.
|
|
280
|
+
* - `NUMBER`: Accepts floats.
|
|
281
|
+
* - `DATE`: Accepts dates formatted as `YYYY-MM-DD`.
|
|
282
|
+
* - `URL`: Accepts strings. Prepends `https://` if no protocol is included.
|
|
281
283
|
* @public
|
|
282
284
|
* @documentationMaturity preview
|
|
283
|
-
* @requiredField
|
|
285
|
+
* @requiredField dataType
|
|
286
|
+
* @requiredField options
|
|
287
|
+
* @requiredField options.displayName
|
|
284
288
|
* @permissionScope Manage Contact Extended Fields
|
|
289
|
+
* @applicableIdentity APP
|
|
285
290
|
* @returns Extended field that was found or created.
|
|
286
291
|
*/
|
|
287
|
-
export declare function findOrCreateExtendedField(
|
|
292
|
+
export declare function findOrCreateExtendedField(dataType: FieldDataType, options: FindOrCreateExtendedFieldOptions): Promise<FindOrCreateExtendedFieldResponse>;
|
|
288
293
|
export interface FindOrCreateExtendedFieldOptions {
|
|
289
294
|
/**
|
|
290
|
-
*
|
|
291
|
-
* Ignored if an existing field is an exact match
|
|
292
|
-
* for the specified display name.
|
|
295
|
+
* Display name to find or create.
|
|
293
296
|
*
|
|
294
|
-
*
|
|
295
|
-
*
|
|
296
|
-
*
|
|
297
|
-
*
|
|
297
|
+
* If an existing custom field is an exact match
|
|
298
|
+
* for the specified `displayName`,
|
|
299
|
+
* the existing field is returned.
|
|
300
|
+
* If not, a new field is created and returned.
|
|
298
301
|
*/
|
|
299
|
-
|
|
302
|
+
displayName: string;
|
|
300
303
|
}
|
|
301
304
|
/**
|
|
302
305
|
* Retrieves an extended field.
|
|
@@ -314,6 +317,7 @@ export interface FindOrCreateExtendedFieldOptions {
|
|
|
314
317
|
* @documentationMaturity preview
|
|
315
318
|
* @requiredField key
|
|
316
319
|
* @permissionScope Manage Contact Extended Fields
|
|
320
|
+
* @applicableIdentity APP
|
|
317
321
|
* @returns The specified field.
|
|
318
322
|
*/
|
|
319
323
|
export declare function getExtendedField(key: string): Promise<ExtendedField>;
|
|
@@ -332,58 +336,58 @@ export declare function getExtendedField(key: string): Promise<ExtendedField>;
|
|
|
332
336
|
* and cannot be modified, even if `displayName` changes.
|
|
333
337
|
* @public
|
|
334
338
|
* @documentationMaturity preview
|
|
339
|
+
* @requiredField field
|
|
340
|
+
* @requiredField field.displayName
|
|
335
341
|
* @requiredField key
|
|
336
|
-
* @requiredField options.field.displayName
|
|
337
342
|
* @permissionScope Manage Contact Extended Fields
|
|
343
|
+
* @applicableIdentity APP
|
|
338
344
|
* @returns Updated extended field.
|
|
339
345
|
*/
|
|
340
|
-
export declare function renameExtendedField(key: string,
|
|
341
|
-
export interface
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
description?: string | null;
|
|
386
|
-
};
|
|
346
|
+
export declare function renameExtendedField(key: string, field: RenameExtendedField): Promise<ExtendedField>;
|
|
347
|
+
export interface RenameExtendedField {
|
|
348
|
+
/**
|
|
349
|
+
* Extended field namespace.
|
|
350
|
+
*
|
|
351
|
+
* Extended fields created by site contributors or 3rd-party apps
|
|
352
|
+
* are automatically assigned to the `custom` namespace.
|
|
353
|
+
* @readonly
|
|
354
|
+
*/
|
|
355
|
+
namespace?: string | null;
|
|
356
|
+
/** Display name shown in the Contact List. */
|
|
357
|
+
displayName?: string;
|
|
358
|
+
/**
|
|
359
|
+
* Type of data the field holds.
|
|
360
|
+
*
|
|
361
|
+
* - `TEXT`: Accepts strings.
|
|
362
|
+
* - `NUMBER`: Accepts floats.
|
|
363
|
+
* - `DATE`: Accepts dates formatted as `YYYY-MM-DD`.
|
|
364
|
+
* - `URL`: Accepts strings. Prepends `https://` if no protocol is included.
|
|
365
|
+
* @readonly
|
|
366
|
+
*/
|
|
367
|
+
dataType?: FieldDataType;
|
|
368
|
+
/**
|
|
369
|
+
* Indicates whether the extended field is a system field or custom field.
|
|
370
|
+
*
|
|
371
|
+
* - `SYSTEM`: The field is a system field managed by Wix. System fields cannot be modified by 3rd-party apps or site contributors.
|
|
372
|
+
* - `USER_DEFINED`: The field is a custom field and can be modified by 3rd-party apps or site contributors.
|
|
373
|
+
* @readonly
|
|
374
|
+
*/
|
|
375
|
+
fieldType?: FieldType;
|
|
376
|
+
/**
|
|
377
|
+
* Date and time the field was created.
|
|
378
|
+
* @readonly
|
|
379
|
+
*/
|
|
380
|
+
_createdDate?: Date;
|
|
381
|
+
/**
|
|
382
|
+
* Date and time the field was last updated.
|
|
383
|
+
* @readonly
|
|
384
|
+
*/
|
|
385
|
+
_updatedDate?: Date;
|
|
386
|
+
/**
|
|
387
|
+
* Field description, if the field is a system field.
|
|
388
|
+
* @readonly
|
|
389
|
+
*/
|
|
390
|
+
description?: string | null;
|
|
387
391
|
}
|
|
388
392
|
/**
|
|
389
393
|
* Deletes an extended field.
|
|
@@ -397,6 +401,7 @@ export interface RenameExtendedFieldOptions {
|
|
|
397
401
|
* @documentationMaturity preview
|
|
398
402
|
* @requiredField key
|
|
399
403
|
* @permissionScope Manage Contact Extended Fields
|
|
404
|
+
* @applicableIdentity APP
|
|
400
405
|
*/
|
|
401
406
|
export declare function deleteExtendedField(key: string): Promise<void>;
|
|
402
407
|
/**
|
|
@@ -409,6 +414,7 @@ export declare function deleteExtendedField(key: string): Promise<void>;
|
|
|
409
414
|
* @public
|
|
410
415
|
* @documentationMaturity preview
|
|
411
416
|
* @permissionScope Manage Contact Extended Fields
|
|
417
|
+
* @applicableIdentity APP
|
|
412
418
|
*/
|
|
413
419
|
export declare function queryExtendedFields(): FieldsQueryBuilder;
|
|
414
420
|
interface QueryOffsetResult {
|
|
@@ -88,24 +88,29 @@ const _updateExtendedFieldResponse = {};
|
|
|
88
88
|
* [List Extended Fields](https:dev.wix.com/api/rest/contacts/extended-fields/list-extended-fields).
|
|
89
89
|
*
|
|
90
90
|
* This function is not a universal function and runs only on the backend.
|
|
91
|
-
* @param
|
|
91
|
+
* @param dataType - Type of data the field holds.
|
|
92
|
+
* Ignored if an existing field is an exact match
|
|
93
|
+
* for the specified display name.
|
|
92
94
|
*
|
|
93
|
-
*
|
|
94
|
-
*
|
|
95
|
-
*
|
|
96
|
-
*
|
|
95
|
+
* - `TEXT`: Accepts strings.
|
|
96
|
+
* - `NUMBER`: Accepts floats.
|
|
97
|
+
* - `DATE`: Accepts dates formatted as `YYYY-MM-DD`.
|
|
98
|
+
* - `URL`: Accepts strings. Prepends `https://` if no protocol is included.
|
|
97
99
|
* @public
|
|
98
100
|
* @documentationMaturity preview
|
|
99
|
-
* @requiredField
|
|
101
|
+
* @requiredField dataType
|
|
102
|
+
* @requiredField options
|
|
103
|
+
* @requiredField options.displayName
|
|
100
104
|
* @permissionScope Manage Contact Extended Fields
|
|
105
|
+
* @applicableIdentity APP
|
|
101
106
|
* @returns Extended field that was found or created.
|
|
102
107
|
*/
|
|
103
|
-
function findOrCreateExtendedField(
|
|
108
|
+
function findOrCreateExtendedField(dataType, options) {
|
|
104
109
|
var _a, _b, _c;
|
|
105
110
|
return __awaiter(this, arguments, void 0, function* () {
|
|
106
111
|
const requestTransformation = {
|
|
107
|
-
|
|
108
|
-
|
|
112
|
+
dataType: '$[0]',
|
|
113
|
+
displayName: '$[1].displayName',
|
|
109
114
|
};
|
|
110
115
|
const responseTransformation = '$';
|
|
111
116
|
// @ts-ignore
|
|
@@ -128,7 +133,7 @@ function findOrCreateExtendedField(displayName, options) {
|
|
|
128
133
|
},
|
|
129
134
|
customTransformation: responseTransformation,
|
|
130
135
|
});
|
|
131
|
-
const payload = toAmbassadorRequest([
|
|
136
|
+
const payload = toAmbassadorRequest([dataType, options]);
|
|
132
137
|
const reqOpts = ambassadorWixContactsV4ExtendedField.findOrCreateExtendedField(payload);
|
|
133
138
|
__log(`"FindOrCreateExtendedField" sending request with: ${__inspect(reqOpts)}`);
|
|
134
139
|
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
@@ -139,7 +144,7 @@ function findOrCreateExtendedField(displayName, options) {
|
|
|
139
144
|
}
|
|
140
145
|
catch (err) {
|
|
141
146
|
const transformedError = (0, velo_1.transformError)(err, requestTransformation, [
|
|
142
|
-
'
|
|
147
|
+
'dataType',
|
|
143
148
|
'options',
|
|
144
149
|
]);
|
|
145
150
|
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
@@ -164,6 +169,7 @@ exports.findOrCreateExtendedField = findOrCreateExtendedField;
|
|
|
164
169
|
* @documentationMaturity preview
|
|
165
170
|
* @requiredField key
|
|
166
171
|
* @permissionScope Manage Contact Extended Fields
|
|
172
|
+
* @applicableIdentity APP
|
|
167
173
|
* @returns The specified field.
|
|
168
174
|
*/
|
|
169
175
|
function getExtendedField(key) {
|
|
@@ -225,15 +231,17 @@ exports.getExtendedField = getExtendedField;
|
|
|
225
231
|
* and cannot be modified, even if `displayName` changes.
|
|
226
232
|
* @public
|
|
227
233
|
* @documentationMaturity preview
|
|
234
|
+
* @requiredField field
|
|
235
|
+
* @requiredField field.displayName
|
|
228
236
|
* @requiredField key
|
|
229
|
-
* @requiredField options.field.displayName
|
|
230
237
|
* @permissionScope Manage Contact Extended Fields
|
|
238
|
+
* @applicableIdentity APP
|
|
231
239
|
* @returns Updated extended field.
|
|
232
240
|
*/
|
|
233
|
-
function renameExtendedField(key,
|
|
241
|
+
function renameExtendedField(key, field) {
|
|
234
242
|
var _a, _b, _c;
|
|
235
243
|
return __awaiter(this, arguments, void 0, function* () {
|
|
236
|
-
const requestTransformation = { field: { '*': '$[1]
|
|
244
|
+
const requestTransformation = { field: { '*': '$[1]', key: '$[0]' } };
|
|
237
245
|
const responseTransformation = '$.field';
|
|
238
246
|
// @ts-ignore
|
|
239
247
|
const { httpClient, sideEffects } = arguments[2];
|
|
@@ -255,7 +263,7 @@ function renameExtendedField(key, options) {
|
|
|
255
263
|
},
|
|
256
264
|
customTransformation: responseTransformation,
|
|
257
265
|
});
|
|
258
|
-
const payload = toAmbassadorRequest([key,
|
|
266
|
+
const payload = toAmbassadorRequest([key, field]);
|
|
259
267
|
const reqOpts = ambassadorWixContactsV4ExtendedField.updateExtendedField(payload);
|
|
260
268
|
__log(`"UpdateExtendedField" sending request with: ${__inspect(reqOpts)}`);
|
|
261
269
|
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
@@ -267,7 +275,7 @@ function renameExtendedField(key, options) {
|
|
|
267
275
|
catch (err) {
|
|
268
276
|
const transformedError = (0, velo_1.transformError)(err, requestTransformation, [
|
|
269
277
|
'key',
|
|
270
|
-
'
|
|
278
|
+
'field',
|
|
271
279
|
]);
|
|
272
280
|
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
273
281
|
throw transformedError;
|
|
@@ -287,6 +295,7 @@ exports.renameExtendedField = renameExtendedField;
|
|
|
287
295
|
* @documentationMaturity preview
|
|
288
296
|
* @requiredField key
|
|
289
297
|
* @permissionScope Manage Contact Extended Fields
|
|
298
|
+
* @applicableIdentity APP
|
|
290
299
|
*/
|
|
291
300
|
function deleteExtendedField(key) {
|
|
292
301
|
var _a, _b, _c;
|
|
@@ -342,6 +351,7 @@ exports.deleteExtendedField = deleteExtendedField;
|
|
|
342
351
|
* @public
|
|
343
352
|
* @documentationMaturity preview
|
|
344
353
|
* @permissionScope Manage Contact Extended Fields
|
|
354
|
+
* @applicableIdentity APP
|
|
345
355
|
*/
|
|
346
356
|
function queryExtendedFields() {
|
|
347
357
|
const requestTransformation = { '*': '$[1]', query: '$[0]' };
|
|
@@ -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;AAE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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,eAAe,GAAG,GAAG,CAAC;AA8D5B,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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AAC;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"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { HttpClient } from '@wix/sdk-types';
|
|
2
|
-
import { FindOrCreateExtendedFieldOptions,
|
|
2
|
+
import { FindOrCreateExtendedFieldOptions, 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): (dataType: FieldDataType, options: FindOrCreateExtendedFieldOptions) => 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
|
-
export declare function renameExtendedField(httpClient: HttpClient): (key: string,
|
|
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, FindOrCreateExtendedFieldOptions,
|
|
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, FindOrCreateExtendedFieldOptions, 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 (dataType, options) => universalFindOrCreateExtendedField(dataType, options,
|
|
5
5
|
// @ts-ignore
|
|
6
6
|
{ httpClient });
|
|
7
7
|
}
|
|
@@ -11,7 +11,7 @@ export function getExtendedField(httpClient) {
|
|
|
11
11
|
{ httpClient });
|
|
12
12
|
}
|
|
13
13
|
export function renameExtendedField(httpClient) {
|
|
14
|
-
return (key,
|
|
14
|
+
return (key, field) => universalRenameExtendedField(key, field,
|
|
15
15
|
// @ts-ignore
|
|
16
16
|
{ httpClient });
|
|
17
17
|
}
|
|
@@ -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,GAIpD,MAAM,wCAAwC,CAAC;AAEhD,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,YAAY,EAAE,UAAU,EAAE,CAAC;AAEvD,MAAM,UAAU,yBAAyB,CAAC,UAAsB;IAC9D,OAAO,CAAC,QAAuB,EAAE,OAAyC,EAAE,EAAE,CAC5E,kCAAkC,CAChC,QAAQ,EACR,OAAO;IACP,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"}
|
|
@@ -272,31 +272,34 @@ export interface QueryExtendedFieldsResponse {
|
|
|
272
272
|
* [List Extended Fields](https:dev.wix.com/api/rest/contacts/extended-fields/list-extended-fields).
|
|
273
273
|
*
|
|
274
274
|
* This function is not a universal function and runs only on the backend.
|
|
275
|
-
* @param
|
|
275
|
+
* @param dataType - Type of data the field holds.
|
|
276
|
+
* Ignored if an existing field is an exact match
|
|
277
|
+
* for the specified display name.
|
|
276
278
|
*
|
|
277
|
-
*
|
|
278
|
-
*
|
|
279
|
-
*
|
|
280
|
-
*
|
|
279
|
+
* - `TEXT`: Accepts strings.
|
|
280
|
+
* - `NUMBER`: Accepts floats.
|
|
281
|
+
* - `DATE`: Accepts dates formatted as `YYYY-MM-DD`.
|
|
282
|
+
* - `URL`: Accepts strings. Prepends `https://` if no protocol is included.
|
|
281
283
|
* @public
|
|
282
284
|
* @documentationMaturity preview
|
|
283
|
-
* @requiredField
|
|
285
|
+
* @requiredField dataType
|
|
286
|
+
* @requiredField options
|
|
287
|
+
* @requiredField options.displayName
|
|
284
288
|
* @permissionScope Manage Contact Extended Fields
|
|
289
|
+
* @applicableIdentity APP
|
|
285
290
|
* @returns Extended field that was found or created.
|
|
286
291
|
*/
|
|
287
|
-
export declare function findOrCreateExtendedField(
|
|
292
|
+
export declare function findOrCreateExtendedField(dataType: FieldDataType, options: FindOrCreateExtendedFieldOptions): Promise<FindOrCreateExtendedFieldResponse>;
|
|
288
293
|
export interface FindOrCreateExtendedFieldOptions {
|
|
289
294
|
/**
|
|
290
|
-
*
|
|
291
|
-
* Ignored if an existing field is an exact match
|
|
292
|
-
* for the specified display name.
|
|
295
|
+
* Display name to find or create.
|
|
293
296
|
*
|
|
294
|
-
*
|
|
295
|
-
*
|
|
296
|
-
*
|
|
297
|
-
*
|
|
297
|
+
* If an existing custom field is an exact match
|
|
298
|
+
* for the specified `displayName`,
|
|
299
|
+
* the existing field is returned.
|
|
300
|
+
* If not, a new field is created and returned.
|
|
298
301
|
*/
|
|
299
|
-
|
|
302
|
+
displayName: string;
|
|
300
303
|
}
|
|
301
304
|
/**
|
|
302
305
|
* Retrieves an extended field.
|
|
@@ -314,6 +317,7 @@ export interface FindOrCreateExtendedFieldOptions {
|
|
|
314
317
|
* @documentationMaturity preview
|
|
315
318
|
* @requiredField key
|
|
316
319
|
* @permissionScope Manage Contact Extended Fields
|
|
320
|
+
* @applicableIdentity APP
|
|
317
321
|
* @returns The specified field.
|
|
318
322
|
*/
|
|
319
323
|
export declare function getExtendedField(key: string): Promise<ExtendedField>;
|
|
@@ -332,58 +336,58 @@ export declare function getExtendedField(key: string): Promise<ExtendedField>;
|
|
|
332
336
|
* and cannot be modified, even if `displayName` changes.
|
|
333
337
|
* @public
|
|
334
338
|
* @documentationMaturity preview
|
|
339
|
+
* @requiredField field
|
|
340
|
+
* @requiredField field.displayName
|
|
335
341
|
* @requiredField key
|
|
336
|
-
* @requiredField options.field.displayName
|
|
337
342
|
* @permissionScope Manage Contact Extended Fields
|
|
343
|
+
* @applicableIdentity APP
|
|
338
344
|
* @returns Updated extended field.
|
|
339
345
|
*/
|
|
340
|
-
export declare function renameExtendedField(key: string,
|
|
341
|
-
export interface
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
description?: string | null;
|
|
386
|
-
};
|
|
346
|
+
export declare function renameExtendedField(key: string, field: RenameExtendedField): Promise<ExtendedField>;
|
|
347
|
+
export interface RenameExtendedField {
|
|
348
|
+
/**
|
|
349
|
+
* Extended field namespace.
|
|
350
|
+
*
|
|
351
|
+
* Extended fields created by site contributors or 3rd-party apps
|
|
352
|
+
* are automatically assigned to the `custom` namespace.
|
|
353
|
+
* @readonly
|
|
354
|
+
*/
|
|
355
|
+
namespace?: string | null;
|
|
356
|
+
/** Display name shown in the Contact List. */
|
|
357
|
+
displayName?: string;
|
|
358
|
+
/**
|
|
359
|
+
* Type of data the field holds.
|
|
360
|
+
*
|
|
361
|
+
* - `TEXT`: Accepts strings.
|
|
362
|
+
* - `NUMBER`: Accepts floats.
|
|
363
|
+
* - `DATE`: Accepts dates formatted as `YYYY-MM-DD`.
|
|
364
|
+
* - `URL`: Accepts strings. Prepends `https://` if no protocol is included.
|
|
365
|
+
* @readonly
|
|
366
|
+
*/
|
|
367
|
+
dataType?: FieldDataType;
|
|
368
|
+
/**
|
|
369
|
+
* Indicates whether the extended field is a system field or custom field.
|
|
370
|
+
*
|
|
371
|
+
* - `SYSTEM`: The field is a system field managed by Wix. System fields cannot be modified by 3rd-party apps or site contributors.
|
|
372
|
+
* - `USER_DEFINED`: The field is a custom field and can be modified by 3rd-party apps or site contributors.
|
|
373
|
+
* @readonly
|
|
374
|
+
*/
|
|
375
|
+
fieldType?: FieldType;
|
|
376
|
+
/**
|
|
377
|
+
* Date and time the field was created.
|
|
378
|
+
* @readonly
|
|
379
|
+
*/
|
|
380
|
+
_createdDate?: Date;
|
|
381
|
+
/**
|
|
382
|
+
* Date and time the field was last updated.
|
|
383
|
+
* @readonly
|
|
384
|
+
*/
|
|
385
|
+
_updatedDate?: Date;
|
|
386
|
+
/**
|
|
387
|
+
* Field description, if the field is a system field.
|
|
388
|
+
* @readonly
|
|
389
|
+
*/
|
|
390
|
+
description?: string | null;
|
|
387
391
|
}
|
|
388
392
|
/**
|
|
389
393
|
* Deletes an extended field.
|
|
@@ -397,6 +401,7 @@ export interface RenameExtendedFieldOptions {
|
|
|
397
401
|
* @documentationMaturity preview
|
|
398
402
|
* @requiredField key
|
|
399
403
|
* @permissionScope Manage Contact Extended Fields
|
|
404
|
+
* @applicableIdentity APP
|
|
400
405
|
*/
|
|
401
406
|
export declare function deleteExtendedField(key: string): Promise<void>;
|
|
402
407
|
/**
|
|
@@ -409,6 +414,7 @@ export declare function deleteExtendedField(key: string): Promise<void>;
|
|
|
409
414
|
* @public
|
|
410
415
|
* @documentationMaturity preview
|
|
411
416
|
* @permissionScope Manage Contact Extended Fields
|
|
417
|
+
* @applicableIdentity APP
|
|
412
418
|
*/
|
|
413
419
|
export declare function queryExtendedFields(): FieldsQueryBuilder;
|
|
414
420
|
interface QueryOffsetResult {
|
|
@@ -66,24 +66,29 @@ const _updateExtendedFieldResponse = {};
|
|
|
66
66
|
* [List Extended Fields](https:dev.wix.com/api/rest/contacts/extended-fields/list-extended-fields).
|
|
67
67
|
*
|
|
68
68
|
* This function is not a universal function and runs only on the backend.
|
|
69
|
-
* @param
|
|
69
|
+
* @param dataType - Type of data the field holds.
|
|
70
|
+
* Ignored if an existing field is an exact match
|
|
71
|
+
* for the specified display name.
|
|
70
72
|
*
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
*
|
|
73
|
+
* - `TEXT`: Accepts strings.
|
|
74
|
+
* - `NUMBER`: Accepts floats.
|
|
75
|
+
* - `DATE`: Accepts dates formatted as `YYYY-MM-DD`.
|
|
76
|
+
* - `URL`: Accepts strings. Prepends `https://` if no protocol is included.
|
|
75
77
|
* @public
|
|
76
78
|
* @documentationMaturity preview
|
|
77
|
-
* @requiredField
|
|
79
|
+
* @requiredField dataType
|
|
80
|
+
* @requiredField options
|
|
81
|
+
* @requiredField options.displayName
|
|
78
82
|
* @permissionScope Manage Contact Extended Fields
|
|
83
|
+
* @applicableIdentity APP
|
|
79
84
|
* @returns Extended field that was found or created.
|
|
80
85
|
*/
|
|
81
|
-
export function findOrCreateExtendedField(
|
|
86
|
+
export function findOrCreateExtendedField(dataType, options) {
|
|
82
87
|
var _a, _b, _c;
|
|
83
88
|
return __awaiter(this, arguments, void 0, function* () {
|
|
84
89
|
const requestTransformation = {
|
|
85
|
-
|
|
86
|
-
|
|
90
|
+
dataType: '$[0]',
|
|
91
|
+
displayName: '$[1].displayName',
|
|
87
92
|
};
|
|
88
93
|
const responseTransformation = '$';
|
|
89
94
|
// @ts-ignore
|
|
@@ -106,7 +111,7 @@ export function findOrCreateExtendedField(displayName, options) {
|
|
|
106
111
|
},
|
|
107
112
|
customTransformation: responseTransformation,
|
|
108
113
|
});
|
|
109
|
-
const payload = toAmbassadorRequest([
|
|
114
|
+
const payload = toAmbassadorRequest([dataType, options]);
|
|
110
115
|
const reqOpts = ambassadorWixContactsV4ExtendedField.findOrCreateExtendedField(payload);
|
|
111
116
|
__log(`"FindOrCreateExtendedField" sending request with: ${__inspect(reqOpts)}`);
|
|
112
117
|
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
@@ -117,7 +122,7 @@ export function findOrCreateExtendedField(displayName, options) {
|
|
|
117
122
|
}
|
|
118
123
|
catch (err) {
|
|
119
124
|
const transformedError = transformError(err, requestTransformation, [
|
|
120
|
-
'
|
|
125
|
+
'dataType',
|
|
121
126
|
'options',
|
|
122
127
|
]);
|
|
123
128
|
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
@@ -141,6 +146,7 @@ export function findOrCreateExtendedField(displayName, options) {
|
|
|
141
146
|
* @documentationMaturity preview
|
|
142
147
|
* @requiredField key
|
|
143
148
|
* @permissionScope Manage Contact Extended Fields
|
|
149
|
+
* @applicableIdentity APP
|
|
144
150
|
* @returns The specified field.
|
|
145
151
|
*/
|
|
146
152
|
export function getExtendedField(key) {
|
|
@@ -201,15 +207,17 @@ export function getExtendedField(key) {
|
|
|
201
207
|
* and cannot be modified, even if `displayName` changes.
|
|
202
208
|
* @public
|
|
203
209
|
* @documentationMaturity preview
|
|
210
|
+
* @requiredField field
|
|
211
|
+
* @requiredField field.displayName
|
|
204
212
|
* @requiredField key
|
|
205
|
-
* @requiredField options.field.displayName
|
|
206
213
|
* @permissionScope Manage Contact Extended Fields
|
|
214
|
+
* @applicableIdentity APP
|
|
207
215
|
* @returns Updated extended field.
|
|
208
216
|
*/
|
|
209
|
-
export function renameExtendedField(key,
|
|
217
|
+
export function renameExtendedField(key, field) {
|
|
210
218
|
var _a, _b, _c;
|
|
211
219
|
return __awaiter(this, arguments, void 0, function* () {
|
|
212
|
-
const requestTransformation = { field: { '*': '$[1]
|
|
220
|
+
const requestTransformation = { field: { '*': '$[1]', key: '$[0]' } };
|
|
213
221
|
const responseTransformation = '$.field';
|
|
214
222
|
// @ts-ignore
|
|
215
223
|
const { httpClient, sideEffects } = arguments[2];
|
|
@@ -231,7 +239,7 @@ export function renameExtendedField(key, options) {
|
|
|
231
239
|
},
|
|
232
240
|
customTransformation: responseTransformation,
|
|
233
241
|
});
|
|
234
|
-
const payload = toAmbassadorRequest([key,
|
|
242
|
+
const payload = toAmbassadorRequest([key, field]);
|
|
235
243
|
const reqOpts = ambassadorWixContactsV4ExtendedField.updateExtendedField(payload);
|
|
236
244
|
__log(`"UpdateExtendedField" sending request with: ${__inspect(reqOpts)}`);
|
|
237
245
|
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
@@ -243,7 +251,7 @@ export function renameExtendedField(key, options) {
|
|
|
243
251
|
catch (err) {
|
|
244
252
|
const transformedError = transformError(err, requestTransformation, [
|
|
245
253
|
'key',
|
|
246
|
-
'
|
|
254
|
+
'field',
|
|
247
255
|
]);
|
|
248
256
|
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
249
257
|
throw transformedError;
|
|
@@ -262,6 +270,7 @@ export function renameExtendedField(key, options) {
|
|
|
262
270
|
* @documentationMaturity preview
|
|
263
271
|
* @requiredField key
|
|
264
272
|
* @permissionScope Manage Contact Extended Fields
|
|
273
|
+
* @applicableIdentity APP
|
|
265
274
|
*/
|
|
266
275
|
export function deleteExtendedField(key) {
|
|
267
276
|
var _a, _b, _c;
|
|
@@ -316,6 +325,7 @@ export function deleteExtendedField(key) {
|
|
|
316
325
|
* @public
|
|
317
326
|
* @documentationMaturity preview
|
|
318
327
|
* @permissionScope Manage Contact Extended Fields
|
|
328
|
+
* @applicableIdentity APP
|
|
319
329
|
*/
|
|
320
330
|
export function queryExtendedFields() {
|
|
321
331
|
const requestTransformation = { '*': '$[1]', query: '$[0]' };
|
|
@@ -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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,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;AA8D5B,MAAM,CAAN,IAAY,aAMX;AAND,WAAY,aAAa;IACvB,wDAAuC,CAAA;IACvC,8BAAa,CAAA;IACb,kCAAiB,CAAA;IACjB,8BAAa,CAAA;IACb,4BAAW,CAAA;AACb,CAAC,EANW,aAAa,KAAb,aAAa,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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C;AAC7C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/crm",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.26",
|
|
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": "9de9bbfd427f9703504f826ff0c6bfbe0f3f20d505ceb3f22db99300"
|
|
37
37
|
}
|