@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 {
|
|
@@ -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[
|
|
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: (
|
|
1293
|
-
const args = [
|
|
1293
|
+
requestTransformer: (query2) => {
|
|
1294
|
+
const args = [query2, query2, options];
|
|
1294
1295
|
return renameKeysFromSDKRequestToRESTRequest({
|
|
1295
|
-
|
|
1296
|
-
|
|
1296
|
+
query: args?.[0],
|
|
1297
|
+
...args?.[2]
|
|
1297
1298
|
});
|
|
1298
1299
|
},
|
|
1299
1300
|
responseTransformer: ({ data }) => {
|