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