@wix/crm 1.0.164 → 1.0.166

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/crm",
3
- "version": "1.0.164",
3
+ "version": "1.0.166",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -23,10 +23,10 @@
23
23
  "dependencies": {
24
24
  "@wix/crm_attachments": "1.0.24",
25
25
  "@wix/crm_contacts": "1.0.70",
26
- "@wix/crm_extended-fields": "1.0.49",
26
+ "@wix/crm_extended-fields": "1.0.50",
27
27
  "@wix/crm_labels": "1.0.48",
28
28
  "@wix/crm_submitted-contact": "1.0.44",
29
- "@wix/crm_tasks": "1.0.51"
29
+ "@wix/crm_tasks": "1.0.52"
30
30
  },
31
31
  "devDependencies": {
32
32
  "glob": "^10.4.1",
@@ -51,5 +51,5 @@
51
51
  "fqdn": ""
52
52
  }
53
53
  },
54
- "falconPackageHash": "eb4a24b6cd939879067c8c86c3b3b1da26799464454a52842e524b67"
54
+ "falconPackageHash": "836a3b910015981e98fbc15eff4261f492ccfbbcb59126d7b39a931b"
55
55
  }
@@ -3239,7 +3239,7 @@ interface ExtendedField {
3239
3239
  /**
3240
3240
  * Extended field namespace.
3241
3241
  *
3242
- * Extended fields created by site collaborators or 3rd-party apps
3242
+ * Extended fields created through by calling the Find Or Create Extended Field method
3243
3243
  * are automatically assigned to the `custom` namespace.
3244
3244
  * @readonly
3245
3245
  */
@@ -3248,34 +3248,24 @@ interface ExtendedField {
3248
3248
  * Extended field key.
3249
3249
  *
3250
3250
  * When accessing contact data,
3251
- * extended field data is available at `fields[key]`.
3251
+ * extended field data is available at `extendedFields[key]`.
3252
3252
  * For example, if the key is "custom.notes",
3253
- * the value can be accessed at `fields["custom.notes"]`.
3253
+ * the value can be accessed at `extendedFields["custom.notes"]`.
3254
3254
  *
3255
3255
  * `key` is generated when the extended field is created
3256
- * and cannot be modified, even if `displayName` changes.
3256
+ * and can't be modified, even if `displayName` changes.
3257
3257
  * @readonly
3258
3258
  */
3259
3259
  key?: string;
3260
- /** Display name shown in the Contact List. */
3260
+ /** Display name shown in the contact list. */
3261
3261
  displayName?: string;
3262
3262
  /**
3263
3263
  * Type of data the field holds.
3264
- *
3265
- * One of:
3266
- * - `"TEXT"`: Accepts strings.
3267
- * - `"NUMBER"`: Accepts floats.
3268
- * - `"DATE"`: Accepts dates formatted as `YYYY-MM-DD`.
3269
- * - `"URL"`: Accepts strings. Prepends `https://` if no protocol is included.
3270
3264
  * @readonly
3271
3265
  */
3272
3266
  dataType?: FieldDataType;
3273
3267
  /**
3274
3268
  * Indicates whether the extended field is a system field or custom field.
3275
- *
3276
- * One of:
3277
- * - `"SYSTEM"`: System field managed by Wix. System fields cannot be modified by 3rd-party apps or site contributors.
3278
- * - `"USER_DEFINED"`: Custom field that can be modified by 3rd-party apps or site admins.
3279
3269
  * @readonly
3280
3270
  */
3281
3271
  fieldType?: FieldType;
@@ -3306,9 +3296,9 @@ declare enum FieldDataType {
3306
3296
  URL = "URL"
3307
3297
  }
3308
3298
  declare enum FieldType {
3309
- /** The field is a system field managed by Wix. System fields cannot be modified by 3rd-party apps or site contributors. */
3299
+ /** Field is a system field managed by Wix. System fields can't be modified by calling the Update Extended Field method. */
3310
3300
  SYSTEM = "SYSTEM",
3311
- /** The field is a custom field and can be modified by 3rd-party apps or site contributors. */
3301
+ /** Field is a custom field and can be modified by calling the Update Extended Field method. */
3312
3302
  USER_DEFINED = "USER_DEFINED"
3313
3303
  }
3314
3304
  /** Extended field filter options. */
@@ -3317,7 +3307,7 @@ interface ListExtendedFieldsRequest {
3317
3307
  fieldType?: FieldType;
3318
3308
  /**
3319
3309
  * Filter for fields in the specified namespace.
3320
- * Fields created by site contributors or 3rd-party apps
3310
+ * Fields created by calling the Find Or Create Extended Field method
3321
3311
  * are automatically assigned to the `custom` namespace.
3322
3312
  */
3323
3313
  namespace?: string | null;
@@ -3381,10 +3371,10 @@ interface PagingMetadata$1 {
3381
3371
  /** Custom field to find or create. */
3382
3372
  interface FindOrCreateExtendedFieldRequest {
3383
3373
  /**
3384
- * Display name to find or create.
3374
+ * Display name to retrieve or create.
3385
3375
  *
3386
3376
  * If an existing custom field is an exact match
3387
- * for the specified `displayName`,
3377
+ * for the specified display name,
3388
3378
  * the existing field is returned.
3389
3379
  * If not, a new field is created and returned.
3390
3380
  */
@@ -3392,12 +3382,7 @@ interface FindOrCreateExtendedFieldRequest {
3392
3382
  /**
3393
3383
  * Type of data the field holds.
3394
3384
  * Ignored if an existing field is an exact match
3395
- * for the specified display name. One of:
3396
- *
3397
- * - `"TEXT"`: Accepts strings.
3398
- * - `"NUMBER"`: Accepts floats.
3399
- * - `"DATE"`: Accepts dates formatted as `YYYY-MM-DD`.
3400
- * - `"URL"`: Accepts strings. Prepends `https://` if no protocol is included.
3385
+ * for the specified display name.
3401
3386
  */
3402
3387
  dataType?: FieldDataType;
3403
3388
  }
@@ -3408,8 +3393,7 @@ interface FindOrCreateExtendedFieldResponse {
3408
3393
  /**
3409
3394
  * Indicates whether the extended field was just created or already existed.
3410
3395
  *
3411
- * If the field was just created, returns `true`.
3412
- * If the field already existed, returns `false`.
3396
+ * Returns `true` if the field was just created.
3413
3397
  */
3414
3398
  newField?: boolean;
3415
3399
  }
@@ -3418,11 +3402,12 @@ interface GetExtendedFieldRequest {
3418
3402
  * Extended field key.
3419
3403
  *
3420
3404
  * When accessing contact data,
3421
- * extended field values are available at `fields[key]`.
3422
- * For example, if the key is "custom.notes",
3423
- * the value can be accessed at `fields["custom.notes"]`.
3405
+ * extended field values are available at `info.extendedFields.items[key]`.
3406
+ * For example, if the key is "custom.patronus",
3407
+ * the value can be accessed at `info.extendedFields.items["custom.patronus"]`.
3424
3408
  *
3425
- * Once set, `key` cannot be modified, even if `displayName` changes.
3409
+ * `key` is generated when the extended field is created.
3410
+ * It can't be modified, even if `displayName` is updated.
3426
3411
  */
3427
3412
  key: string;
3428
3413
  }
@@ -3440,12 +3425,12 @@ interface GetExtendedFieldByLegacyIdResponse {
3440
3425
  field?: ExtendedField;
3441
3426
  }
3442
3427
  interface UpdateExtendedFieldRequest {
3443
- /** Field to update. */
3428
+ /** Extended field to rename. */
3444
3429
  field?: ExtendedField;
3445
3430
  }
3446
3431
  /** Updated extended field. */
3447
3432
  interface UpdateExtendedFieldResponse {
3448
- /** Updated extended field. */
3433
+ /** Renamed extended field. */
3449
3434
  field?: ExtendedField;
3450
3435
  }
3451
3436
  interface DeleteExtendedFieldRequest {
@@ -3695,30 +3680,20 @@ interface RenameExtendedField {
3695
3680
  /**
3696
3681
  * Extended field namespace.
3697
3682
  *
3698
- * Extended fields created by site collaborators or 3rd-party apps
3683
+ * Extended fields created through by calling the Find Or Create Extended Field method
3699
3684
  * are automatically assigned to the `custom` namespace.
3700
3685
  * @readonly
3701
3686
  */
3702
3687
  namespace?: string | null;
3703
- /** Display name shown in the Contact List. */
3688
+ /** Display name shown in the contact list. */
3704
3689
  displayName?: string;
3705
3690
  /**
3706
3691
  * Type of data the field holds.
3707
- *
3708
- * One of:
3709
- * - `"TEXT"`: Accepts strings.
3710
- * - `"NUMBER"`: Accepts floats.
3711
- * - `"DATE"`: Accepts dates formatted as `YYYY-MM-DD`.
3712
- * - `"URL"`: Accepts strings. Prepends `https://` if no protocol is included.
3713
3692
  * @readonly
3714
3693
  */
3715
3694
  dataType?: FieldDataType;
3716
3695
  /**
3717
3696
  * Indicates whether the extended field is a system field or custom field.
3718
- *
3719
- * One of:
3720
- * - `"SYSTEM"`: System field managed by Wix. System fields cannot be modified by 3rd-party apps or site contributors.
3721
- * - `"USER_DEFINED"`: Custom field that can be modified by 3rd-party apps or site admins.
3722
3697
  * @readonly
3723
3698
  */
3724
3699
  fieldType?: FieldType;
@@ -3814,28 +3789,23 @@ interface FieldsQueryBuilder {
3814
3789
  declare function findOrCreateExtendedField$1(httpClient: HttpClient): FindOrCreateExtendedFieldSignature;
3815
3790
  interface FindOrCreateExtendedFieldSignature {
3816
3791
  /**
3817
- * Retrieves a custom field with a given name, or creates one if it doesn't exist.
3792
+ * Retrieves a custom field with a specified name, or creates one if it doesn't exist.
3793
+ * The number of custom fields is limited to 100.
3818
3794
  *
3819
- * The `findOrCreateExtendedField()` function returns a Promise that resolves when the specified custom field is found or created.
3795
+ * Successful calls to this method always return a field,
3796
+ * which can be specified in subsequent calls.
3820
3797
  *
3821
- * Successful calls to `findOrCreateExtendedField()` always return an extended field, which can be passed to subsequent function calls.
3822
- *
3823
- * To find an existing extended field without potentially creating a new one, use `getExtendedField()` or `queryExtendedFields()`.
3824
- *
3825
- * @param - Display name to find or create.
3798
+ * To find an existing custom field without potentially creating a new one, call Get Extended Field or
3799
+ * Query Extended Fields.
3800
+ * @param - Display name to retrieve or create.
3826
3801
  *
3827
3802
  * If an existing custom field is an exact match
3828
- * for the specified `displayName`,
3803
+ * for the specified display name,
3829
3804
  * the existing field is returned.
3830
3805
  * If not, a new field is created and returned.
3831
3806
  * @param - Type of data the field holds.
3832
3807
  * Ignored if an existing field is an exact match
3833
- * for the specified display name. One of:
3834
- *
3835
- * - `"TEXT"`: Accepts strings.
3836
- * - `"NUMBER"`: Accepts floats.
3837
- * - `"DATE"`: Accepts dates formatted as `YYYY-MM-DD`.
3838
- * - `"URL"`: Accepts strings. Prepends `https://` if no protocol is included.
3808
+ * for the specified display name.
3839
3809
  * @returns Extended field that was found or created.
3840
3810
  */
3841
3811
  (displayName: string, dataType: FieldDataType): Promise<FindOrCreateExtendedFieldResponse & FindOrCreateExtendedFieldResponseNonNullableFields>;
@@ -3843,18 +3813,8 @@ interface FindOrCreateExtendedFieldSignature {
3843
3813
  declare function getExtendedField$1(httpClient: HttpClient): GetExtendedFieldSignature;
3844
3814
  interface GetExtendedFieldSignature {
3845
3815
  /**
3846
- * Retrieves an extended field.
3847
- *
3848
- * The `getExtendedField()` function returns a Promise that resolves when the extended field is retrieved.
3849
- *
3850
- * @param - Extended field key.
3851
- *
3852
- * When accessing contact data,
3853
- * extended field values are available at `fields[key]`.
3854
- * For example, if the key is "custom.notes",
3855
- * the value can be accessed at `fields["custom.notes"]`.
3856
- *
3857
- * Once set, `key` cannot be modified, even if `displayName` changes.
3816
+ * Retrieves an extended field by the specified extended field key.
3817
+ * @param - null
3858
3818
  * @returns The specified field.
3859
3819
  */
3860
3820
  (key: string): Promise<ExtendedField & ExtendedFieldNonNullableFields>;
@@ -3863,19 +3823,9 @@ declare function renameExtendedField$1(httpClient: HttpClient): RenameExtendedFi
3863
3823
  interface RenameExtendedFieldSignature {
3864
3824
  /**
3865
3825
  * Renames an extended field.
3866
- *
3867
- * The `renameExtendedField()` function returns a Promise that resolves when the specified extended field's display name is changed
3868
- *
3869
- * @param - Extended field key.
3870
- *
3871
- * When accessing contact data,
3872
- * extended field values are available at `fields[key]`.
3873
- * For example, if the key is "custom.notes",
3874
- * the value can be accessed at `fields["custom.notes"]`.
3875
- *
3876
- * Once set, `key` cannot be modified, even if `displayName` changes.
3877
- * @param - Extended field to rename.
3878
- * @returns Updated extended field.
3826
+ * @param - null
3827
+ * @param - null
3828
+ * @returns Renamed extended field.
3879
3829
  */
3880
3830
  (key: string, field: RenameExtendedField): Promise<ExtendedField & ExtendedFieldNonNullableFields>;
3881
3831
  }
@@ -3884,10 +3834,8 @@ interface DeleteExtendedFieldSignature {
3884
3834
  /**
3885
3835
  * Deletes an extended field.
3886
3836
  *
3887
- * The `deleteExtendedField()` function returns a Promise that resolves when the specified extended field is deleted.
3888
- *
3889
- * When an extended field is deleted, any contact data stored in the field is permanently deleted as well.
3890
- *
3837
+ * When an extended field is deleted,
3838
+ * any contact data stored in the field is also permanently deleted.
3891
3839
  * @param - Extended field key.
3892
3840
  */
3893
3841
  (key: string): Promise<void>;
@@ -3897,18 +3845,18 @@ interface QueryExtendedFieldsSignature {
3897
3845
  /**
3898
3846
  * Creates a query to retrieve a list of extended fields.
3899
3847
  *
3900
- * The `queryExtendedFields()` function builds a query to retrieve a list of extended fields and returns an `FieldsQueryBuilder` object.
3848
+ * The `queryExtendedFields()` method builds a query to retrieve a list of extended fields and returns an `FieldsQueryBuilder` object.
3901
3849
  *
3902
- * The returned object contains the query definition, which is used to run the query using the `find()` function.
3850
+ * The returned object contains the query definition, which is used to run the query using the `find()` method.
3903
3851
  *
3904
- * 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.
3852
+ * You can refine the query by chaining `FieldsQueryBuilder` methods onto the query. `FieldsQueryBuilder` methods enable you to filter, sort, and control the results that `queryExtendedFields()` returns.
3905
3853
  *
3906
3854
  * `queryExtendedFields()` runs with these `FieldsQueryBuilder` defaults, which you can override:
3907
3855
  * - `skip()`
3908
3856
  * - `limit(50)`
3909
3857
  * - `descending('_createdDate')`
3910
3858
  *
3911
- * The following `FieldsQueryBuilder` functions are supported for `queryExtendedFields()`. For a full description of the `Extended Field` object, see the object returned for the `items` property in `FieldsQueryResult`.
3859
+ * The following `FieldsQueryBuilder` methods are supported for `queryExtendedFields()`. For a full description of the `Extended Field` object, see the object returned for the `items` property in `FieldsQueryResult`.
3912
3860
  */
3913
3861
  (): FieldsQueryBuilder;
3914
3862
  }
@@ -5451,7 +5399,7 @@ interface TaskSource {
5451
5399
  */
5452
5400
  appId?: string | null;
5453
5401
  /**
5454
- * User ID, if the task was created by a user.
5402
+ * User ID, if the task was created by a Wix user.
5455
5403
  * @readonly
5456
5404
  */
5457
5405
  userId?: string | null;
@@ -5460,7 +5408,7 @@ interface TaskSource {
5460
5408
  declare enum SourceType {
5461
5409
  /** Task was created by an app. */
5462
5410
  APP = "APP",
5463
- /** Task was created by a user. */
5411
+ /** Task was created by a Wix user. */
5464
5412
  USER = "USER"
5465
5413
  }
5466
5414
  interface ContactInfo {
@@ -5477,7 +5425,7 @@ interface ContactInfo {
5477
5425
  */
5478
5426
  lastName?: string | null;
5479
5427
  /**
5480
- * Contact's image url.
5428
+ * Contact's image URL.
5481
5429
  * @readonly
5482
5430
  */
5483
5431
  imageUrl?: string | null;
@@ -5652,7 +5600,7 @@ interface CountTasksRequest {
5652
5600
  filter?: Record<string, any> | null;
5653
5601
  }
5654
5602
  interface CountTasksResponse {
5655
- /** The number of tasks that match the provided filter. */
5603
+ /** The number of tasks that match the specified filter. */
5656
5604
  count?: number;
5657
5605
  }
5658
5606
  interface QueryTasksInternalRequest {
@@ -5697,7 +5645,7 @@ interface Paging {
5697
5645
  offset?: number | null;
5698
5646
  }
5699
5647
  interface QueryTasksInternalResponse {
5700
- /** The retrieved Tasks */
5648
+ /** The retrieved tasks. */
5701
5649
  tasks?: Task[];
5702
5650
  /** Details on the paged set of results returned. */
5703
5651
  pagingMetadata?: PagingMetadataV2;
@@ -5715,11 +5663,11 @@ interface PagingMetadataV2 {
5715
5663
  cursors?: Cursors;
5716
5664
  }
5717
5665
  interface MoveTaskAfterRequest {
5718
- /** The task ID to move. */
5666
+ /** ID of the task to move. */
5719
5667
  taskId: string;
5720
5668
  /**
5721
- * The task ID after which the moved task is positioned in the display.
5722
- * If `beforeTaskId` is not provided, the moved task is positioned first in the display of tasks.
5669
+ * The ID of the task after which the moved task is positioned in the task display.
5670
+ * If `beforeTaskId` is not specified, the moved task is positioned first in the task display.
5723
5671
  */
5724
5672
  beforeTaskId?: string | null;
5725
5673
  }
@@ -6028,8 +5976,8 @@ interface CountTasksOptions {
6028
5976
  }
6029
5977
  interface MoveTaskAfterOptions {
6030
5978
  /**
6031
- * The task ID after which the moved task is positioned in the display.
6032
- * If `beforeTaskId` is not provided, the moved task is positioned first in the display of tasks.
5979
+ * The ID of the task after which the moved task is positioned in the task display.
5980
+ * If `beforeTaskId` is not specified, the moved task is positioned first in the task display.
6033
5981
  */
6034
5982
  beforeTaskId?: string | null;
6035
5983
  }
@@ -6109,10 +6057,9 @@ interface CountTasksSignature {
6109
6057
  * Counts the number of tasks.
6110
6058
  *
6111
6059
  *
6112
- * This endpoint returns the count of all tasks regardless of the task `status`.
6060
+ * This method returns the count of all tasks regardless of their `status`.
6113
6061
  *
6114
- * Optionally, you can pass a filter to count only tasks based
6115
- * on specified criteria.
6062
+ * Optionally, you can specify a filter to count only tasks that meet certain criteria.
6116
6063
  * @param - Filtering options.
6117
6064
  */
6118
6065
  (options?: CountTasksOptions | undefined): Promise<CountTasksResponse & CountTasksResponseNonNullableFields>;
@@ -6120,10 +6067,10 @@ interface CountTasksSignature {
6120
6067
  declare function moveTaskAfter$1(httpClient: HttpClient): MoveTaskAfterSignature;
6121
6068
  interface MoveTaskAfterSignature {
6122
6069
  /**
6123
- * Moves a task specified by ID to be placed after another task in the display.
6070
+ * Moves a task specified by ID to be placed after another task in the task display.
6124
6071
  *
6125
- * You can reposition a task to be first in the display by ommitting `beforeTaskId`.
6126
- * @param - The task ID to move.
6072
+ * You can reposition a task to be first in the display by omitting `beforeTaskId`.
6073
+ * @param - ID of the task to move.
6127
6074
  * @param - Options for moving the task.
6128
6075
  */
6129
6076
  (taskId: string, options?: MoveTaskAfterOptions | undefined): Promise<void>;
@@ -3239,7 +3239,7 @@ interface ExtendedField {
3239
3239
  /**
3240
3240
  * Extended field namespace.
3241
3241
  *
3242
- * Extended fields created by site collaborators or 3rd-party apps
3242
+ * Extended fields created through by calling the Find Or Create Extended Field method
3243
3243
  * are automatically assigned to the `custom` namespace.
3244
3244
  * @readonly
3245
3245
  */
@@ -3248,34 +3248,24 @@ interface ExtendedField {
3248
3248
  * Extended field key.
3249
3249
  *
3250
3250
  * When accessing contact data,
3251
- * extended field data is available at `fields[key]`.
3251
+ * extended field data is available at `extendedFields[key]`.
3252
3252
  * For example, if the key is "custom.notes",
3253
- * the value can be accessed at `fields["custom.notes"]`.
3253
+ * the value can be accessed at `extendedFields["custom.notes"]`.
3254
3254
  *
3255
3255
  * `key` is generated when the extended field is created
3256
- * and cannot be modified, even if `displayName` changes.
3256
+ * and can't be modified, even if `displayName` changes.
3257
3257
  * @readonly
3258
3258
  */
3259
3259
  key?: string;
3260
- /** Display name shown in the Contact List. */
3260
+ /** Display name shown in the contact list. */
3261
3261
  displayName?: string;
3262
3262
  /**
3263
3263
  * Type of data the field holds.
3264
- *
3265
- * One of:
3266
- * - `"TEXT"`: Accepts strings.
3267
- * - `"NUMBER"`: Accepts floats.
3268
- * - `"DATE"`: Accepts dates formatted as `YYYY-MM-DD`.
3269
- * - `"URL"`: Accepts strings. Prepends `https://` if no protocol is included.
3270
3264
  * @readonly
3271
3265
  */
3272
3266
  dataType?: FieldDataType;
3273
3267
  /**
3274
3268
  * Indicates whether the extended field is a system field or custom field.
3275
- *
3276
- * One of:
3277
- * - `"SYSTEM"`: System field managed by Wix. System fields cannot be modified by 3rd-party apps or site contributors.
3278
- * - `"USER_DEFINED"`: Custom field that can be modified by 3rd-party apps or site admins.
3279
3269
  * @readonly
3280
3270
  */
3281
3271
  fieldType?: FieldType;
@@ -3306,9 +3296,9 @@ declare enum FieldDataType {
3306
3296
  URL = "URL"
3307
3297
  }
3308
3298
  declare enum FieldType {
3309
- /** The field is a system field managed by Wix. System fields cannot be modified by 3rd-party apps or site contributors. */
3299
+ /** Field is a system field managed by Wix. System fields can't be modified by calling the Update Extended Field method. */
3310
3300
  SYSTEM = "SYSTEM",
3311
- /** The field is a custom field and can be modified by 3rd-party apps or site contributors. */
3301
+ /** Field is a custom field and can be modified by calling the Update Extended Field method. */
3312
3302
  USER_DEFINED = "USER_DEFINED"
3313
3303
  }
3314
3304
  /** Extended field filter options. */
@@ -3317,7 +3307,7 @@ interface ListExtendedFieldsRequest {
3317
3307
  fieldType?: FieldType;
3318
3308
  /**
3319
3309
  * Filter for fields in the specified namespace.
3320
- * Fields created by site contributors or 3rd-party apps
3310
+ * Fields created by calling the Find Or Create Extended Field method
3321
3311
  * are automatically assigned to the `custom` namespace.
3322
3312
  */
3323
3313
  namespace?: string | null;
@@ -3381,10 +3371,10 @@ interface PagingMetadata$1 {
3381
3371
  /** Custom field to find or create. */
3382
3372
  interface FindOrCreateExtendedFieldRequest {
3383
3373
  /**
3384
- * Display name to find or create.
3374
+ * Display name to retrieve or create.
3385
3375
  *
3386
3376
  * If an existing custom field is an exact match
3387
- * for the specified `displayName`,
3377
+ * for the specified display name,
3388
3378
  * the existing field is returned.
3389
3379
  * If not, a new field is created and returned.
3390
3380
  */
@@ -3392,12 +3382,7 @@ interface FindOrCreateExtendedFieldRequest {
3392
3382
  /**
3393
3383
  * Type of data the field holds.
3394
3384
  * Ignored if an existing field is an exact match
3395
- * for the specified display name. One of:
3396
- *
3397
- * - `"TEXT"`: Accepts strings.
3398
- * - `"NUMBER"`: Accepts floats.
3399
- * - `"DATE"`: Accepts dates formatted as `YYYY-MM-DD`.
3400
- * - `"URL"`: Accepts strings. Prepends `https://` if no protocol is included.
3385
+ * for the specified display name.
3401
3386
  */
3402
3387
  dataType?: FieldDataType;
3403
3388
  }
@@ -3408,8 +3393,7 @@ interface FindOrCreateExtendedFieldResponse {
3408
3393
  /**
3409
3394
  * Indicates whether the extended field was just created or already existed.
3410
3395
  *
3411
- * If the field was just created, returns `true`.
3412
- * If the field already existed, returns `false`.
3396
+ * Returns `true` if the field was just created.
3413
3397
  */
3414
3398
  newField?: boolean;
3415
3399
  }
@@ -3418,11 +3402,12 @@ interface GetExtendedFieldRequest {
3418
3402
  * Extended field key.
3419
3403
  *
3420
3404
  * When accessing contact data,
3421
- * extended field values are available at `fields[key]`.
3422
- * For example, if the key is "custom.notes",
3423
- * the value can be accessed at `fields["custom.notes"]`.
3405
+ * extended field values are available at `info.extendedFields.items[key]`.
3406
+ * For example, if the key is "custom.patronus",
3407
+ * the value can be accessed at `info.extendedFields.items["custom.patronus"]`.
3424
3408
  *
3425
- * Once set, `key` cannot be modified, even if `displayName` changes.
3409
+ * `key` is generated when the extended field is created.
3410
+ * It can't be modified, even if `displayName` is updated.
3426
3411
  */
3427
3412
  key: string;
3428
3413
  }
@@ -3440,12 +3425,12 @@ interface GetExtendedFieldByLegacyIdResponse {
3440
3425
  field?: ExtendedField;
3441
3426
  }
3442
3427
  interface UpdateExtendedFieldRequest {
3443
- /** Field to update. */
3428
+ /** Extended field to rename. */
3444
3429
  field?: ExtendedField;
3445
3430
  }
3446
3431
  /** Updated extended field. */
3447
3432
  interface UpdateExtendedFieldResponse {
3448
- /** Updated extended field. */
3433
+ /** Renamed extended field. */
3449
3434
  field?: ExtendedField;
3450
3435
  }
3451
3436
  interface DeleteExtendedFieldRequest {
@@ -3695,30 +3680,20 @@ interface RenameExtendedField {
3695
3680
  /**
3696
3681
  * Extended field namespace.
3697
3682
  *
3698
- * Extended fields created by site collaborators or 3rd-party apps
3683
+ * Extended fields created through by calling the Find Or Create Extended Field method
3699
3684
  * are automatically assigned to the `custom` namespace.
3700
3685
  * @readonly
3701
3686
  */
3702
3687
  namespace?: string | null;
3703
- /** Display name shown in the Contact List. */
3688
+ /** Display name shown in the contact list. */
3704
3689
  displayName?: string;
3705
3690
  /**
3706
3691
  * Type of data the field holds.
3707
- *
3708
- * One of:
3709
- * - `"TEXT"`: Accepts strings.
3710
- * - `"NUMBER"`: Accepts floats.
3711
- * - `"DATE"`: Accepts dates formatted as `YYYY-MM-DD`.
3712
- * - `"URL"`: Accepts strings. Prepends `https://` if no protocol is included.
3713
3692
  * @readonly
3714
3693
  */
3715
3694
  dataType?: FieldDataType;
3716
3695
  /**
3717
3696
  * Indicates whether the extended field is a system field or custom field.
3718
- *
3719
- * One of:
3720
- * - `"SYSTEM"`: System field managed by Wix. System fields cannot be modified by 3rd-party apps or site contributors.
3721
- * - `"USER_DEFINED"`: Custom field that can be modified by 3rd-party apps or site admins.
3722
3697
  * @readonly
3723
3698
  */
3724
3699
  fieldType?: FieldType;
@@ -3814,28 +3789,23 @@ interface FieldsQueryBuilder {
3814
3789
  declare function findOrCreateExtendedField$1(httpClient: HttpClient): FindOrCreateExtendedFieldSignature;
3815
3790
  interface FindOrCreateExtendedFieldSignature {
3816
3791
  /**
3817
- * Retrieves a custom field with a given name, or creates one if it doesn't exist.
3792
+ * Retrieves a custom field with a specified name, or creates one if it doesn't exist.
3793
+ * The number of custom fields is limited to 100.
3818
3794
  *
3819
- * The `findOrCreateExtendedField()` function returns a Promise that resolves when the specified custom field is found or created.
3795
+ * Successful calls to this method always return a field,
3796
+ * which can be specified in subsequent calls.
3820
3797
  *
3821
- * Successful calls to `findOrCreateExtendedField()` always return an extended field, which can be passed to subsequent function calls.
3822
- *
3823
- * To find an existing extended field without potentially creating a new one, use `getExtendedField()` or `queryExtendedFields()`.
3824
- *
3825
- * @param - Display name to find or create.
3798
+ * To find an existing custom field without potentially creating a new one, call Get Extended Field or
3799
+ * Query Extended Fields.
3800
+ * @param - Display name to retrieve or create.
3826
3801
  *
3827
3802
  * If an existing custom field is an exact match
3828
- * for the specified `displayName`,
3803
+ * for the specified display name,
3829
3804
  * the existing field is returned.
3830
3805
  * If not, a new field is created and returned.
3831
3806
  * @param - Type of data the field holds.
3832
3807
  * Ignored if an existing field is an exact match
3833
- * for the specified display name. One of:
3834
- *
3835
- * - `"TEXT"`: Accepts strings.
3836
- * - `"NUMBER"`: Accepts floats.
3837
- * - `"DATE"`: Accepts dates formatted as `YYYY-MM-DD`.
3838
- * - `"URL"`: Accepts strings. Prepends `https://` if no protocol is included.
3808
+ * for the specified display name.
3839
3809
  * @returns Extended field that was found or created.
3840
3810
  */
3841
3811
  (displayName: string, dataType: FieldDataType): Promise<FindOrCreateExtendedFieldResponse & FindOrCreateExtendedFieldResponseNonNullableFields>;
@@ -3843,18 +3813,8 @@ interface FindOrCreateExtendedFieldSignature {
3843
3813
  declare function getExtendedField$1(httpClient: HttpClient): GetExtendedFieldSignature;
3844
3814
  interface GetExtendedFieldSignature {
3845
3815
  /**
3846
- * Retrieves an extended field.
3847
- *
3848
- * The `getExtendedField()` function returns a Promise that resolves when the extended field is retrieved.
3849
- *
3850
- * @param - Extended field key.
3851
- *
3852
- * When accessing contact data,
3853
- * extended field values are available at `fields[key]`.
3854
- * For example, if the key is "custom.notes",
3855
- * the value can be accessed at `fields["custom.notes"]`.
3856
- *
3857
- * Once set, `key` cannot be modified, even if `displayName` changes.
3816
+ * Retrieves an extended field by the specified extended field key.
3817
+ * @param - null
3858
3818
  * @returns The specified field.
3859
3819
  */
3860
3820
  (key: string): Promise<ExtendedField & ExtendedFieldNonNullableFields>;
@@ -3863,19 +3823,9 @@ declare function renameExtendedField$1(httpClient: HttpClient): RenameExtendedFi
3863
3823
  interface RenameExtendedFieldSignature {
3864
3824
  /**
3865
3825
  * Renames an extended field.
3866
- *
3867
- * The `renameExtendedField()` function returns a Promise that resolves when the specified extended field's display name is changed
3868
- *
3869
- * @param - Extended field key.
3870
- *
3871
- * When accessing contact data,
3872
- * extended field values are available at `fields[key]`.
3873
- * For example, if the key is "custom.notes",
3874
- * the value can be accessed at `fields["custom.notes"]`.
3875
- *
3876
- * Once set, `key` cannot be modified, even if `displayName` changes.
3877
- * @param - Extended field to rename.
3878
- * @returns Updated extended field.
3826
+ * @param - null
3827
+ * @param - null
3828
+ * @returns Renamed extended field.
3879
3829
  */
3880
3830
  (key: string, field: RenameExtendedField): Promise<ExtendedField & ExtendedFieldNonNullableFields>;
3881
3831
  }
@@ -3884,10 +3834,8 @@ interface DeleteExtendedFieldSignature {
3884
3834
  /**
3885
3835
  * Deletes an extended field.
3886
3836
  *
3887
- * The `deleteExtendedField()` function returns a Promise that resolves when the specified extended field is deleted.
3888
- *
3889
- * When an extended field is deleted, any contact data stored in the field is permanently deleted as well.
3890
- *
3837
+ * When an extended field is deleted,
3838
+ * any contact data stored in the field is also permanently deleted.
3891
3839
  * @param - Extended field key.
3892
3840
  */
3893
3841
  (key: string): Promise<void>;
@@ -3897,18 +3845,18 @@ interface QueryExtendedFieldsSignature {
3897
3845
  /**
3898
3846
  * Creates a query to retrieve a list of extended fields.
3899
3847
  *
3900
- * The `queryExtendedFields()` function builds a query to retrieve a list of extended fields and returns an `FieldsQueryBuilder` object.
3848
+ * The `queryExtendedFields()` method builds a query to retrieve a list of extended fields and returns an `FieldsQueryBuilder` object.
3901
3849
  *
3902
- * The returned object contains the query definition, which is used to run the query using the `find()` function.
3850
+ * The returned object contains the query definition, which is used to run the query using the `find()` method.
3903
3851
  *
3904
- * 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.
3852
+ * You can refine the query by chaining `FieldsQueryBuilder` methods onto the query. `FieldsQueryBuilder` methods enable you to filter, sort, and control the results that `queryExtendedFields()` returns.
3905
3853
  *
3906
3854
  * `queryExtendedFields()` runs with these `FieldsQueryBuilder` defaults, which you can override:
3907
3855
  * - `skip()`
3908
3856
  * - `limit(50)`
3909
3857
  * - `descending('_createdDate')`
3910
3858
  *
3911
- * The following `FieldsQueryBuilder` functions are supported for `queryExtendedFields()`. For a full description of the `Extended Field` object, see the object returned for the `items` property in `FieldsQueryResult`.
3859
+ * The following `FieldsQueryBuilder` methods are supported for `queryExtendedFields()`. For a full description of the `Extended Field` object, see the object returned for the `items` property in `FieldsQueryResult`.
3912
3860
  */
3913
3861
  (): FieldsQueryBuilder;
3914
3862
  }
@@ -5451,7 +5399,7 @@ interface TaskSource {
5451
5399
  */
5452
5400
  appId?: string | null;
5453
5401
  /**
5454
- * User ID, if the task was created by a user.
5402
+ * User ID, if the task was created by a Wix user.
5455
5403
  * @readonly
5456
5404
  */
5457
5405
  userId?: string | null;
@@ -5460,7 +5408,7 @@ interface TaskSource {
5460
5408
  declare enum SourceType {
5461
5409
  /** Task was created by an app. */
5462
5410
  APP = "APP",
5463
- /** Task was created by a user. */
5411
+ /** Task was created by a Wix user. */
5464
5412
  USER = "USER"
5465
5413
  }
5466
5414
  interface ContactInfo {
@@ -5477,7 +5425,7 @@ interface ContactInfo {
5477
5425
  */
5478
5426
  lastName?: string | null;
5479
5427
  /**
5480
- * Contact's image url.
5428
+ * Contact's image URL.
5481
5429
  * @readonly
5482
5430
  */
5483
5431
  imageUrl?: string | null;
@@ -5652,7 +5600,7 @@ interface CountTasksRequest {
5652
5600
  filter?: Record<string, any> | null;
5653
5601
  }
5654
5602
  interface CountTasksResponse {
5655
- /** The number of tasks that match the provided filter. */
5603
+ /** The number of tasks that match the specified filter. */
5656
5604
  count?: number;
5657
5605
  }
5658
5606
  interface QueryTasksInternalRequest {
@@ -5697,7 +5645,7 @@ interface Paging {
5697
5645
  offset?: number | null;
5698
5646
  }
5699
5647
  interface QueryTasksInternalResponse {
5700
- /** The retrieved Tasks */
5648
+ /** The retrieved tasks. */
5701
5649
  tasks?: Task[];
5702
5650
  /** Details on the paged set of results returned. */
5703
5651
  pagingMetadata?: PagingMetadataV2;
@@ -5715,11 +5663,11 @@ interface PagingMetadataV2 {
5715
5663
  cursors?: Cursors;
5716
5664
  }
5717
5665
  interface MoveTaskAfterRequest {
5718
- /** The task ID to move. */
5666
+ /** ID of the task to move. */
5719
5667
  taskId: string;
5720
5668
  /**
5721
- * The task ID after which the moved task is positioned in the display.
5722
- * If `beforeTaskId` is not provided, the moved task is positioned first in the display of tasks.
5669
+ * The ID of the task after which the moved task is positioned in the task display.
5670
+ * If `beforeTaskId` is not specified, the moved task is positioned first in the task display.
5723
5671
  */
5724
5672
  beforeTaskId?: string | null;
5725
5673
  }
@@ -6028,8 +5976,8 @@ interface CountTasksOptions {
6028
5976
  }
6029
5977
  interface MoveTaskAfterOptions {
6030
5978
  /**
6031
- * The task ID after which the moved task is positioned in the display.
6032
- * If `beforeTaskId` is not provided, the moved task is positioned first in the display of tasks.
5979
+ * The ID of the task after which the moved task is positioned in the task display.
5980
+ * If `beforeTaskId` is not specified, the moved task is positioned first in the task display.
6033
5981
  */
6034
5982
  beforeTaskId?: string | null;
6035
5983
  }
@@ -6109,10 +6057,9 @@ interface CountTasksSignature {
6109
6057
  * Counts the number of tasks.
6110
6058
  *
6111
6059
  *
6112
- * This endpoint returns the count of all tasks regardless of the task `status`.
6060
+ * This method returns the count of all tasks regardless of their `status`.
6113
6061
  *
6114
- * Optionally, you can pass a filter to count only tasks based
6115
- * on specified criteria.
6062
+ * Optionally, you can specify a filter to count only tasks that meet certain criteria.
6116
6063
  * @param - Filtering options.
6117
6064
  */
6118
6065
  (options?: CountTasksOptions | undefined): Promise<CountTasksResponse & CountTasksResponseNonNullableFields>;
@@ -6120,10 +6067,10 @@ interface CountTasksSignature {
6120
6067
  declare function moveTaskAfter$1(httpClient: HttpClient): MoveTaskAfterSignature;
6121
6068
  interface MoveTaskAfterSignature {
6122
6069
  /**
6123
- * Moves a task specified by ID to be placed after another task in the display.
6070
+ * Moves a task specified by ID to be placed after another task in the task display.
6124
6071
  *
6125
- * You can reposition a task to be first in the display by ommitting `beforeTaskId`.
6126
- * @param - The task ID to move.
6072
+ * You can reposition a task to be first in the display by omitting `beforeTaskId`.
6073
+ * @param - ID of the task to move.
6127
6074
  * @param - Options for moving the task.
6128
6075
  */
6129
6076
  (taskId: string, options?: MoveTaskAfterOptions | undefined): Promise<void>;
@@ -2095,7 +2095,7 @@ interface ExtendedField$1 {
2095
2095
  /**
2096
2096
  * Extended field namespace.
2097
2097
  *
2098
- * Extended fields created by site collaborators or 3rd-party apps
2098
+ * Extended fields created through by calling the Find Or Create Extended Field method
2099
2099
  * are automatically assigned to the `custom` namespace.
2100
2100
  * @readonly
2101
2101
  */
@@ -2109,11 +2109,11 @@ interface ExtendedField$1 {
2109
2109
  * the value can be accessed at `extendedFields["custom.notes"]`.
2110
2110
  *
2111
2111
  * `key` is generated when the extended field is created
2112
- * and cannot be modified, even if `displayName` changes.
2112
+ * and can't be modified, even if `displayName` changes.
2113
2113
  * @readonly
2114
2114
  */
2115
2115
  key?: string;
2116
- /** Display name shown in the Contact List. */
2116
+ /** Display name shown in the contact list. */
2117
2117
  displayName?: string;
2118
2118
  /**
2119
2119
  * Type of data the field holds.
@@ -2152,9 +2152,9 @@ declare enum FieldDataType$1 {
2152
2152
  URL = "URL"
2153
2153
  }
2154
2154
  declare enum FieldType$1 {
2155
- /** The field is a system field managed by Wix. System fields cannot be modified by 3rd-party apps or site contributors. */
2155
+ /** Field is a system field managed by Wix. System fields can't be modified by calling the Update Extended Field method. */
2156
2156
  SYSTEM = "SYSTEM",
2157
- /** The field is a custom field and can be modified by 3rd-party apps or site contributors. */
2157
+ /** Field is a custom field and can be modified by calling the Update Extended Field method. */
2158
2158
  USER_DEFINED = "USER_DEFINED"
2159
2159
  }
2160
2160
  interface Sorting$5 {
@@ -2203,10 +2203,10 @@ interface PagingMetadata$3 {
2203
2203
  /** Custom field to find or create. */
2204
2204
  interface FindOrCreateExtendedFieldRequest$1 {
2205
2205
  /**
2206
- * Display name to find or create.
2206
+ * Display name to retrieve or create.
2207
2207
  *
2208
2208
  * If an existing custom field is an exact match
2209
- * for the specified `displayName`,
2209
+ * for the specified display name,
2210
2210
  * the existing field is returned.
2211
2211
  * If not, a new field is created and returned.
2212
2212
  */
@@ -2215,11 +2215,6 @@ interface FindOrCreateExtendedFieldRequest$1 {
2215
2215
  * Type of data the field holds.
2216
2216
  * Ignored if an existing field is an exact match
2217
2217
  * for the specified display name.
2218
- *
2219
- * - `TEXT`: Accepts strings.
2220
- * - `NUMBER`: Accepts floats.
2221
- * - `DATE`: Accepts dates formatted as `YYYY-MM-DD`.
2222
- * - `URL`: Accepts strings. Prepends `https://` if no protocol is included.
2223
2218
  */
2224
2219
  dataType?: FieldDataType$1;
2225
2220
  }
@@ -2230,8 +2225,7 @@ interface FindOrCreateExtendedFieldResponse$1 {
2230
2225
  /**
2231
2226
  * Indicates whether the extended field was just created or already existed.
2232
2227
  *
2233
- * If the field was just created, returns `true`.
2234
- * If the field already existed, returns `false`.
2228
+ * Returns `true` if the field was just created.
2235
2229
  */
2236
2230
  newField?: boolean;
2237
2231
  }
@@ -2244,7 +2238,8 @@ interface GetExtendedFieldRequest$1 {
2244
2238
  * For example, if the key is "custom.patronus",
2245
2239
  * the value can be accessed at `info.extendedFields.items["custom.patronus"]`.
2246
2240
  *
2247
- * Once set, `key` cannot be modified, even if `displayName` changes.
2241
+ * `key` is generated when the extended field is created.
2242
+ * It can't be modified, even if `displayName` is updated.
2248
2243
  */
2249
2244
  key: string;
2250
2245
  }
@@ -2254,12 +2249,12 @@ interface GetExtendedFieldResponse$1 {
2254
2249
  field?: ExtendedField$1;
2255
2250
  }
2256
2251
  interface UpdateExtendedFieldRequest$1 {
2257
- /** Field to update. */
2252
+ /** Extended field to rename. */
2258
2253
  field?: ExtendedField$1;
2259
2254
  }
2260
2255
  /** Updated extended field. */
2261
2256
  interface UpdateExtendedFieldResponse$1 {
2262
- /** Updated extended field. */
2257
+ /** Renamed extended field. */
2263
2258
  field?: ExtendedField$1;
2264
2259
  }
2265
2260
  interface DeleteExtendedFieldRequest$1 {
@@ -2328,7 +2323,7 @@ interface ExtendedField {
2328
2323
  /**
2329
2324
  * Extended field namespace.
2330
2325
  *
2331
- * Extended fields created by site collaborators or 3rd-party apps
2326
+ * Extended fields created through by calling the Find Or Create Extended Field method
2332
2327
  * are automatically assigned to the `custom` namespace.
2333
2328
  * @readonly
2334
2329
  */
@@ -2337,34 +2332,24 @@ interface ExtendedField {
2337
2332
  * Extended field key.
2338
2333
  *
2339
2334
  * When accessing contact data,
2340
- * extended field data is available at `fields[key]`.
2335
+ * extended field data is available at `extendedFields[key]`.
2341
2336
  * For example, if the key is "custom.notes",
2342
- * the value can be accessed at `fields["custom.notes"]`.
2337
+ * the value can be accessed at `extendedFields["custom.notes"]`.
2343
2338
  *
2344
2339
  * `key` is generated when the extended field is created
2345
- * and cannot be modified, even if `displayName` changes.
2340
+ * and can't be modified, even if `displayName` changes.
2346
2341
  * @readonly
2347
2342
  */
2348
2343
  key?: string;
2349
- /** Display name shown in the Contact List. */
2344
+ /** Display name shown in the contact list. */
2350
2345
  displayName?: string;
2351
2346
  /**
2352
2347
  * Type of data the field holds.
2353
- *
2354
- * One of:
2355
- * - `"TEXT"`: Accepts strings.
2356
- * - `"NUMBER"`: Accepts floats.
2357
- * - `"DATE"`: Accepts dates formatted as `YYYY-MM-DD`.
2358
- * - `"URL"`: Accepts strings. Prepends `https://` if no protocol is included.
2359
2348
  * @readonly
2360
2349
  */
2361
2350
  dataType?: FieldDataType;
2362
2351
  /**
2363
2352
  * Indicates whether the extended field is a system field or custom field.
2364
- *
2365
- * One of:
2366
- * - `"SYSTEM"`: System field managed by Wix. System fields cannot be modified by 3rd-party apps or site contributors.
2367
- * - `"USER_DEFINED"`: Custom field that can be modified by 3rd-party apps or site admins.
2368
2353
  * @readonly
2369
2354
  */
2370
2355
  fieldType?: FieldType;
@@ -2395,9 +2380,9 @@ declare enum FieldDataType {
2395
2380
  URL = "URL"
2396
2381
  }
2397
2382
  declare enum FieldType {
2398
- /** The field is a system field managed by Wix. System fields cannot be modified by 3rd-party apps or site contributors. */
2383
+ /** Field is a system field managed by Wix. System fields can't be modified by calling the Update Extended Field method. */
2399
2384
  SYSTEM = "SYSTEM",
2400
- /** The field is a custom field and can be modified by 3rd-party apps or site contributors. */
2385
+ /** Field is a custom field and can be modified by calling the Update Extended Field method. */
2401
2386
  USER_DEFINED = "USER_DEFINED"
2402
2387
  }
2403
2388
  interface Sorting$4 {
@@ -2446,10 +2431,10 @@ interface PagingMetadata$2 {
2446
2431
  /** Custom field to find or create. */
2447
2432
  interface FindOrCreateExtendedFieldRequest {
2448
2433
  /**
2449
- * Display name to find or create.
2434
+ * Display name to retrieve or create.
2450
2435
  *
2451
2436
  * If an existing custom field is an exact match
2452
- * for the specified `displayName`,
2437
+ * for the specified display name,
2453
2438
  * the existing field is returned.
2454
2439
  * If not, a new field is created and returned.
2455
2440
  */
@@ -2457,12 +2442,7 @@ interface FindOrCreateExtendedFieldRequest {
2457
2442
  /**
2458
2443
  * Type of data the field holds.
2459
2444
  * Ignored if an existing field is an exact match
2460
- * for the specified display name. One of:
2461
- *
2462
- * - `"TEXT"`: Accepts strings.
2463
- * - `"NUMBER"`: Accepts floats.
2464
- * - `"DATE"`: Accepts dates formatted as `YYYY-MM-DD`.
2465
- * - `"URL"`: Accepts strings. Prepends `https://` if no protocol is included.
2445
+ * for the specified display name.
2466
2446
  */
2467
2447
  dataType?: FieldDataType;
2468
2448
  }
@@ -2473,8 +2453,7 @@ interface FindOrCreateExtendedFieldResponse {
2473
2453
  /**
2474
2454
  * Indicates whether the extended field was just created or already existed.
2475
2455
  *
2476
- * If the field was just created, returns `true`.
2477
- * If the field already existed, returns `false`.
2456
+ * Returns `true` if the field was just created.
2478
2457
  */
2479
2458
  newField?: boolean;
2480
2459
  }
@@ -2483,11 +2462,12 @@ interface GetExtendedFieldRequest {
2483
2462
  * Extended field key.
2484
2463
  *
2485
2464
  * When accessing contact data,
2486
- * extended field values are available at `fields[key]`.
2487
- * For example, if the key is "custom.notes",
2488
- * the value can be accessed at `fields["custom.notes"]`.
2465
+ * extended field values are available at `info.extendedFields.items[key]`.
2466
+ * For example, if the key is "custom.patronus",
2467
+ * the value can be accessed at `info.extendedFields.items["custom.patronus"]`.
2489
2468
  *
2490
- * Once set, `key` cannot be modified, even if `displayName` changes.
2469
+ * `key` is generated when the extended field is created.
2470
+ * It can't be modified, even if `displayName` is updated.
2491
2471
  */
2492
2472
  key: string;
2493
2473
  }
@@ -2497,12 +2477,12 @@ interface GetExtendedFieldResponse {
2497
2477
  field?: ExtendedField;
2498
2478
  }
2499
2479
  interface UpdateExtendedFieldRequest {
2500
- /** Field to update. */
2480
+ /** Extended field to rename. */
2501
2481
  field?: ExtendedField;
2502
2482
  }
2503
2483
  /** Updated extended field. */
2504
2484
  interface UpdateExtendedFieldResponse {
2505
- /** Updated extended field. */
2485
+ /** Renamed extended field. */
2506
2486
  field?: ExtendedField;
2507
2487
  }
2508
2488
  interface DeleteExtendedFieldRequest {
@@ -3676,7 +3656,7 @@ interface TaskSource$1 {
3676
3656
  */
3677
3657
  appId?: string | null;
3678
3658
  /**
3679
- * User ID, if the task was created by a user.
3659
+ * User ID, if the task was created by a Wix user.
3680
3660
  * @readonly
3681
3661
  */
3682
3662
  userId?: string | null;
@@ -3685,7 +3665,7 @@ interface TaskSource$1 {
3685
3665
  declare enum SourceType$1 {
3686
3666
  /** Task was created by an app. */
3687
3667
  APP = "APP",
3688
- /** Task was created by a user. */
3668
+ /** Task was created by a Wix user. */
3689
3669
  USER = "USER"
3690
3670
  }
3691
3671
  interface ContactInfo$1 {
@@ -3702,7 +3682,7 @@ interface ContactInfo$1 {
3702
3682
  */
3703
3683
  lastName?: string | null;
3704
3684
  /**
3705
- * Contact's image url.
3685
+ * Contact's image URL.
3706
3686
  * @readonly
3707
3687
  */
3708
3688
  imageUrl?: string | null;
@@ -3824,27 +3804,29 @@ interface Cursors$1 {
3824
3804
  }
3825
3805
  interface CountTasksRequest$1 {
3826
3806
  /**
3827
- * Filter tasks to count. See [Supported Filters and Sorting](https://dev.wix.com/docs/rest/api-reference/crm/tasks/task-v2/filter-and-sort) for supported filters.
3807
+ * Filter which tasks to count. See supported filters ([REST](https://dev.wix.com/docs/rest/api-reference/crm/tasks/task-v2/filter-and-sort)| [SDK](https://dev.wix.com/docs/sdk/backend-modules/crm/tasks/query-tasks)).
3828
3808
  *
3829
3809
  * Filter tasks in the following format:
3810
+ *
3830
3811
  * `"filter" : {
3831
3812
  * "fieldName1": "value1",
3832
3813
  * "fieldName2":{"$operator":"value2"}
3833
3814
  * }`
3815
+ *
3834
3816
  * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`.
3835
3817
  */
3836
3818
  filter?: Record<string, any> | null;
3837
3819
  }
3838
3820
  interface CountTasksResponse$1 {
3839
- /** The number of tasks that match the provided filter. */
3821
+ /** The number of tasks that match the specified filter. */
3840
3822
  count?: number;
3841
3823
  }
3842
3824
  interface MoveTaskAfterRequest$1 {
3843
- /** The task ID to move. */
3825
+ /** ID of the task to move. */
3844
3826
  taskId: string;
3845
3827
  /**
3846
- * The task ID after which the moved task is positioned in the display.
3847
- * If `beforeTaskId` is not provided, the moved task is positioned first in the display of tasks.
3828
+ * The ID of the task after which the moved task is positioned in the task display.
3829
+ * If `beforeTaskId` is not specified, the moved task is positioned first in the task display.
3848
3830
  */
3849
3831
  beforeTaskId?: string | null;
3850
3832
  }
@@ -3930,7 +3912,7 @@ interface TaskSource {
3930
3912
  */
3931
3913
  appId?: string | null;
3932
3914
  /**
3933
- * User ID, if the task was created by a user.
3915
+ * User ID, if the task was created by a Wix user.
3934
3916
  * @readonly
3935
3917
  */
3936
3918
  userId?: string | null;
@@ -3939,7 +3921,7 @@ interface TaskSource {
3939
3921
  declare enum SourceType {
3940
3922
  /** Task was created by an app. */
3941
3923
  APP = "APP",
3942
- /** Task was created by a user. */
3924
+ /** Task was created by a Wix user. */
3943
3925
  USER = "USER"
3944
3926
  }
3945
3927
  interface ContactInfo {
@@ -3956,7 +3938,7 @@ interface ContactInfo {
3956
3938
  */
3957
3939
  lastName?: string | null;
3958
3940
  /**
3959
- * Contact's image url.
3941
+ * Contact's image URL.
3960
3942
  * @readonly
3961
3943
  */
3962
3944
  imageUrl?: string | null;
@@ -4091,15 +4073,15 @@ interface CountTasksRequest {
4091
4073
  filter?: Record<string, any> | null;
4092
4074
  }
4093
4075
  interface CountTasksResponse {
4094
- /** The number of tasks that match the provided filter. */
4076
+ /** The number of tasks that match the specified filter. */
4095
4077
  count?: number;
4096
4078
  }
4097
4079
  interface MoveTaskAfterRequest {
4098
- /** The task ID to move. */
4080
+ /** ID of the task to move. */
4099
4081
  taskId: string;
4100
4082
  /**
4101
- * The task ID after which the moved task is positioned in the display.
4102
- * If `beforeTaskId` is not provided, the moved task is positioned first in the display of tasks.
4083
+ * The ID of the task after which the moved task is positioned in the task display.
4084
+ * If `beforeTaskId` is not specified, the moved task is positioned first in the task display.
4103
4085
  */
4104
4086
  beforeTaskId?: string | null;
4105
4087
  }