@wix/auto_sdk_crm_contacts 1.0.960 → 1.0.962
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/index.d.ts +5 -4
- package/build/cjs/index.js +10 -8
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +3 -9
- package/build/cjs/index.typings.js +8 -7
- package/build/cjs/index.typings.js.map +1 -1
- package/build/es/index.d.mts +5 -4
- package/build/es/index.mjs +10 -8
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +3 -9
- package/build/es/index.typings.mjs +8 -7
- package/build/es/index.typings.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +5 -4
- package/build/internal/cjs/index.js +10 -8
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +3 -9
- package/build/internal/cjs/index.typings.js +8 -7
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/es/index.d.mts +5 -4
- package/build/internal/es/index.mjs +10 -8
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +3 -9
- package/build/internal/es/index.typings.mjs +8 -7
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -2101,8 +2101,6 @@ interface ContactCreatedEnvelope {
|
|
|
2101
2101
|
* @permissionScopeId SCOPE.DC-CONTACTS.READ-CONTACTS
|
|
2102
2102
|
* @permissionScope Read Members and Contacts - all read permissions
|
|
2103
2103
|
* @permissionScopeId SCOPE.DC-CONTACTS-MEGA.READ-MEMBERS-CONTACTS
|
|
2104
|
-
* @permissionScope Manage Restaurants - all permissions
|
|
2105
|
-
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
2106
2104
|
* @permissionScope Manage Contacts
|
|
2107
2105
|
* @permissionScopeId SCOPE.DC-CONTACTS.MANAGE-CONTACTS
|
|
2108
2106
|
* @permissionScope Set Up Automations
|
|
@@ -2134,8 +2132,6 @@ interface ContactDeletedEnvelope {
|
|
|
2134
2132
|
* @permissionScopeId SCOPE.DC-CONTACTS.READ-CONTACTS
|
|
2135
2133
|
* @permissionScope Read Members and Contacts - all read permissions
|
|
2136
2134
|
* @permissionScopeId SCOPE.DC-CONTACTS-MEGA.READ-MEMBERS-CONTACTS
|
|
2137
|
-
* @permissionScope Manage Restaurants - all permissions
|
|
2138
|
-
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
2139
2135
|
* @permissionScope Manage Contacts
|
|
2140
2136
|
* @permissionScopeId SCOPE.DC-CONTACTS.MANAGE-CONTACTS
|
|
2141
2137
|
* @permissionScope Set Up Automations
|
|
@@ -2165,8 +2161,6 @@ interface ContactMergedEnvelope {
|
|
|
2165
2161
|
* @permissionScopeId SCOPE.DC-CONTACTS.READ-CONTACTS
|
|
2166
2162
|
* @permissionScope Read Members and Contacts - all read permissions
|
|
2167
2163
|
* @permissionScopeId SCOPE.DC-CONTACTS-MEGA.READ-MEMBERS-CONTACTS
|
|
2168
|
-
* @permissionScope Manage Restaurants - all permissions
|
|
2169
|
-
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
2170
2164
|
* @permissionScope Manage Contacts
|
|
2171
2165
|
* @permissionScopeId SCOPE.DC-CONTACTS.MANAGE-CONTACTS
|
|
2172
2166
|
* @permissionScope Set Up Automations
|
|
@@ -2196,8 +2190,6 @@ interface ContactUpdatedEnvelope {
|
|
|
2196
2190
|
* @permissionScopeId SCOPE.DC-CONTACTS.READ-CONTACTS
|
|
2197
2191
|
* @permissionScope Read Members and Contacts - all read permissions
|
|
2198
2192
|
* @permissionScopeId SCOPE.DC-CONTACTS-MEGA.READ-MEMBERS-CONTACTS
|
|
2199
|
-
* @permissionScope Manage Restaurants - all permissions
|
|
2200
|
-
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
2201
2193
|
* @permissionScope Manage Contacts
|
|
2202
2194
|
* @permissionScopeId SCOPE.DC-CONTACTS.MANAGE-CONTACTS
|
|
2203
2195
|
* @permissionScope Set Up Automations
|
|
@@ -2499,12 +2491,14 @@ interface ListContactsOptions {
|
|
|
2499
2491
|
*
|
|
2500
2492
|
* 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
2493
|
* @public
|
|
2494
|
+
* @requiredField query
|
|
2502
2495
|
* @param options - Query contact options.
|
|
2496
|
+
* @param query - Query options.
|
|
2503
2497
|
* @permissionId CONTACTS.VIEW
|
|
2504
2498
|
* @applicableIdentity APP
|
|
2505
2499
|
* @fqn com.wixpress.contacts.core.api.v4.ContactsServiceV4.QueryContacts
|
|
2506
2500
|
*/
|
|
2507
|
-
declare function queryContacts(options?: QueryContactsOptions): ContactsQueryBuilder;
|
|
2501
|
+
declare function queryContacts(query: Query, options?: QueryContactsOptions): ContactsQueryBuilder;
|
|
2508
2502
|
interface QueryContactsOptions {
|
|
2509
2503
|
/**
|
|
2510
2504
|
* @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[
|
|
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: (
|
|
1352
|
-
const args = [
|
|
1352
|
+
requestTransformer: (query2) => {
|
|
1353
|
+
const args = [query2, query2, options];
|
|
1353
1354
|
return (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1354
|
-
|
|
1355
|
-
|
|
1355
|
+
query: args?.[0],
|
|
1356
|
+
...args?.[2]
|
|
1356
1357
|
});
|
|
1357
1358
|
},
|
|
1358
1359
|
responseTransformer: ({ data }) => {
|