@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
@@ -1271,13 +1271,14 @@ async function listContacts2(options) {
1271
1271
  throw transformedError;
1272
1272
  }
1273
1273
  }
1274
- function queryContacts2(options) {
1275
- const { httpClient, sideEffects } = arguments[1];
1274
+ function queryContacts2(query, options) {
1275
+ const { httpClient, sideEffects } = arguments[2];
1276
1276
  return queryBuilder({
1277
1277
  func: async (payload) => {
1278
1278
  const reqOpts = queryContacts({
1279
1279
  ...payload,
1280
- ...options ?? {}
1280
+ ...options ?? {},
1281
+ query
1281
1282
  });
1282
1283
  sideEffects?.onSiteCall?.();
1283
1284
  try {
@@ -1289,11 +1290,11 @@ function queryContacts2(options) {
1289
1290
  throw err;
1290
1291
  }
1291
1292
  },
1292
- requestTransformer: (query) => {
1293
- const args = [query, options];
1293
+ requestTransformer: (query2) => {
1294
+ const args = [query2, query2, options];
1294
1295
  return renameKeysFromSDKRequestToRESTRequest({
1295
- ...args?.[1],
1296
- query: args?.[0]
1296
+ query: args?.[0],
1297
+ ...args?.[2]
1297
1298
  });
1298
1299
  },
1299
1300
  responseTransformer: ({ data }) => {