@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
|
@@ -2095,8 +2095,6 @@ interface ContactCreatedEnvelope {
|
|
|
2095
2095
|
* @permissionScopeId SCOPE.DC-CONTACTS.READ-CONTACTS
|
|
2096
2096
|
* @permissionScope Read Members and Contacts - all read permissions
|
|
2097
2097
|
* @permissionScopeId SCOPE.DC-CONTACTS-MEGA.READ-MEMBERS-CONTACTS
|
|
2098
|
-
* @permissionScope Manage Restaurants - all permissions
|
|
2099
|
-
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
2100
2098
|
* @permissionScope Manage Contacts
|
|
2101
2099
|
* @permissionScopeId SCOPE.DC-CONTACTS.MANAGE-CONTACTS
|
|
2102
2100
|
* @permissionScope Set Up Automations
|
|
@@ -2128,8 +2126,6 @@ interface ContactDeletedEnvelope {
|
|
|
2128
2126
|
* @permissionScopeId SCOPE.DC-CONTACTS.READ-CONTACTS
|
|
2129
2127
|
* @permissionScope Read Members and Contacts - all read permissions
|
|
2130
2128
|
* @permissionScopeId SCOPE.DC-CONTACTS-MEGA.READ-MEMBERS-CONTACTS
|
|
2131
|
-
* @permissionScope Manage Restaurants - all permissions
|
|
2132
|
-
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
2133
2129
|
* @permissionScope Manage Contacts
|
|
2134
2130
|
* @permissionScopeId SCOPE.DC-CONTACTS.MANAGE-CONTACTS
|
|
2135
2131
|
* @permissionScope Set Up Automations
|
|
@@ -2159,8 +2155,6 @@ interface ContactMergedEnvelope {
|
|
|
2159
2155
|
* @permissionScopeId SCOPE.DC-CONTACTS.READ-CONTACTS
|
|
2160
2156
|
* @permissionScope Read Members and Contacts - all read permissions
|
|
2161
2157
|
* @permissionScopeId SCOPE.DC-CONTACTS-MEGA.READ-MEMBERS-CONTACTS
|
|
2162
|
-
* @permissionScope Manage Restaurants - all permissions
|
|
2163
|
-
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
2164
2158
|
* @permissionScope Manage Contacts
|
|
2165
2159
|
* @permissionScopeId SCOPE.DC-CONTACTS.MANAGE-CONTACTS
|
|
2166
2160
|
* @permissionScope Set Up Automations
|
|
@@ -2190,8 +2184,6 @@ interface ContactUpdatedEnvelope {
|
|
|
2190
2184
|
* @permissionScopeId SCOPE.DC-CONTACTS.READ-CONTACTS
|
|
2191
2185
|
* @permissionScope Read Members and Contacts - all read permissions
|
|
2192
2186
|
* @permissionScopeId SCOPE.DC-CONTACTS-MEGA.READ-MEMBERS-CONTACTS
|
|
2193
|
-
* @permissionScope Manage Restaurants - all permissions
|
|
2194
|
-
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
2195
2187
|
* @permissionScope Manage Contacts
|
|
2196
2188
|
* @permissionScopeId SCOPE.DC-CONTACTS.MANAGE-CONTACTS
|
|
2197
2189
|
* @permissionScope Set Up Automations
|
|
@@ -2493,12 +2485,14 @@ interface ListContactsOptions {
|
|
|
2493
2485
|
*
|
|
2494
2486
|
* 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.
|
|
2495
2487
|
* @public
|
|
2488
|
+
* @requiredField query
|
|
2496
2489
|
* @param options - Query contact options.
|
|
2490
|
+
* @param query - Query options.
|
|
2497
2491
|
* @permissionId CONTACTS.VIEW
|
|
2498
2492
|
* @applicableIdentity APP
|
|
2499
2493
|
* @fqn com.wixpress.contacts.core.api.v4.ContactsServiceV4.QueryContacts
|
|
2500
2494
|
*/
|
|
2501
|
-
declare function queryContacts(options?: QueryContactsOptions): ContactsQueryBuilder;
|
|
2495
|
+
declare function queryContacts(query: Query, options?: QueryContactsOptions): ContactsQueryBuilder;
|
|
2502
2496
|
interface QueryContactsOptions {
|
|
2503
2497
|
}
|
|
2504
2498
|
interface QueryOffsetResult {
|
|
@@ -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 }) => {
|