@wix/auto_sdk_crm_contacts 1.0.960 → 1.0.961

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.
@@ -2499,12 +2499,14 @@ interface ListContactsOptions {
2499
2499
  *
2500
2500
  * The functions that are chained to `queryContacts()` are applied in the order they are called. For example, if you apply `ascending('info.company')` and then `descending('info.name.last')`, the results are sorted first by the company name, and then, if there are multiple results with the same company, the items are sorted by last name.
2501
2501
  * @public
2502
+ * @requiredField query
2502
2503
  * @param options - Query contact options.
2504
+ * @param query - Query options.
2503
2505
  * @permissionId CONTACTS.VIEW
2504
2506
  * @applicableIdentity APP
2505
2507
  * @fqn com.wixpress.contacts.core.api.v4.ContactsServiceV4.QueryContacts
2506
2508
  */
2507
- declare function queryContacts(options?: QueryContactsOptions): ContactsQueryBuilder;
2509
+ declare function queryContacts(query: Query, options?: QueryContactsOptions): ContactsQueryBuilder;
2508
2510
  interface QueryContactsOptions {
2509
2511
  /**
2510
2512
  * @internal
@@ -1330,13 +1330,14 @@ async function listContacts2(options) {
1330
1330
  throw transformedError;
1331
1331
  }
1332
1332
  }
1333
- function queryContacts2(options) {
1334
- const { httpClient, sideEffects } = arguments[1];
1333
+ function queryContacts2(query, options) {
1334
+ const { httpClient, sideEffects } = arguments[2];
1335
1335
  return (0, import_query_builder.queryBuilder)({
1336
1336
  func: async (payload) => {
1337
1337
  const reqOpts = queryContacts({
1338
1338
  ...payload,
1339
- ...options ?? {}
1339
+ ...options ?? {},
1340
+ query
1340
1341
  });
1341
1342
  sideEffects?.onSiteCall?.();
1342
1343
  try {
@@ -1348,11 +1349,11 @@ function queryContacts2(options) {
1348
1349
  throw err;
1349
1350
  }
1350
1351
  },
1351
- requestTransformer: (query) => {
1352
- const args = [query, options];
1352
+ requestTransformer: (query2) => {
1353
+ const args = [query2, query2, options];
1353
1354
  return (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1354
- ...args?.[1],
1355
- query: args?.[0]
1355
+ query: args?.[0],
1356
+ ...args?.[2]
1356
1357
  });
1357
1358
  },
1358
1359
  responseTransformer: ({ data }) => {