@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.
@@ -1,6 +1,6 @@
1
1
  import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
- import { ContactInfo, CreateContactOptions, CreateContactResponse, CreateContactApplicationErrors, UpdateContactOptions, UpdateContactResponse, UpdateContactApplicationErrors, MergeContactsOptions, MergeContactsResponse, MergeContactsApplicationErrors, PreviewMergeContactsOptions, PreviewMergeContactsResponse, PreviewMergeContactsApplicationErrors, DeleteContactApplicationErrors, LabelContactResponse, LabelContactApplicationErrors, UnlabelContactResponse, UnlabelContactApplicationErrors, ListContactsOptions, ListContactsResponse, ListContactsApplicationErrors, QueryContactsOptions, ContactsQueryBuilder, ListFacetsOptions, ListFacetsResponse, QueryFacetsOptions, QueryFacetsResponse, BulkDeleteContactsOptions, BulkDeleteContactsResponse, BulkDeleteContactsApplicationErrors, BulkUpdateContactsOptions, BulkUpdateContactsResponse, BulkLabelAndUnlabelContactsOptions, BulkLabelAndUnlabelContactsResponse, BulkLabelAndUnlabelContactsApplicationErrors, GetContactOptions, Contact, GetContactApplicationErrors, ContactCreatedEnvelope, ContactDeletedEnvelope, ContactMergedEnvelope, ContactUpdatedEnvelope } from './index.typings.js';
3
- export { Action, ActionEvent, ActionWithLiterals, ActivityIcon, Address, AddressLocation, AddressStreetOneOf, AddressTag, AddressTagWithLiterals, ApplicationError, AssigneesWrapper, BaseEventMetadata, BulkActionMetadata, BulkAddSegmentToContactsRequest, BulkAddSegmentToContactsResponse, BulkDeleteContactsRequest, BulkLabelAndUnlabelContactsRequest, BulkRemoveSegmentFromContactsRequest, BulkRemoveSegmentFromContactsResponse, BulkUpdateContactsRequest, BulkUpsertContactsRequest, BulkUpsertContactsResponse, BulkUpsertContactsResponseMetadata, ContactActivity, ContactActivityType, ContactActivityTypeWithLiterals, ContactAddedToSegment, ContactAddress, ContactAddressesWrapper, ContactChanged, ContactEmail, ContactEmailSubscriptionUpdated, ContactEmailsWrapper, ContactFieldSet, ContactFieldSetWithLiterals, ContactMerged, ContactName, ContactPhone, ContactPhoneSubscriptionUpdated, ContactPhonesWrapper, ContactPicture, ContactPrimaryInfoUpdated, ContactRemovedFromSegment, ContactSource, ContactSourceType, ContactSourceTypeWithLiterals, ContactSubmitted, ContactsFacet, ContactsFacetType, ContactsFacetTypeWithLiterals, ContactsQueryResult, CountContactsRequest, CountContactsResponse, CreateContactRequest, CursorPaging, CursorPagingMetadata, Cursors, DeleteContactRequest, DeleteContactResponse, DomainEvent, DomainEventBodyOneOf, DuplicateContactExists, EmailDeliverabilityStatus, EmailDeliverabilityStatusWithLiterals, EmailTag, EmailTagWithLiterals, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, Error, EventMetadata, ExtendedFieldsWrapper, GeneratePictureUploadUrlRequest, GeneratePictureUploadUrlResponse, GetContactRequest, GetContactResponse, GetContactResponseType, GetContactResponseTypeWithLiterals, GroupInfo, IdentificationData, IdentificationDataIdOneOf, ImageProvider, ImageProviderWithLiterals, Item, ItemMetadata, LabelAndUnlabelContactRequest, LabelAndUnlabelContactResponse, LabelContactRequest, LabelsWrapper, LastActivityUpdate, ListContactIdsBySegmentRequest, ListContactIdsBySegmentResponse, ListContactsRequest, ListFacetsRequest, LocationsWrapper, MemberInfo, MemberStatus, MemberStatusWithLiterals, MergeContactsRequest, MessageEnvelope, Metadata, Mode, ModeWithLiterals, Paging, PagingMetadata, PhoneDeliverabilityStatus, PhoneDeliverabilityStatusWithLiterals, PhoneTag, PhoneTagWithLiterals, PreviewMergeContactsRequest, PrimaryContactInfo, PrimaryEmail, PrimaryPhone, PrimarySubscriptionStatus, PrivacyStatus, PrivacyStatusWithLiterals, ProfileInfo, Query, QueryContactsApplicationErrors, QueryContactsRequest, QueryContactsResponse, QueryFacetsRequest, RestoreInfo, Role, RoleWithLiterals, Search, SearchContactsRequest, SearchContactsResponse, SearchDetails, SearchPagingMethodOneOf, SegmentsWrapper, SessionInfo, SortOrder, SortOrderWithLiterals, Sorting, StreetAddress, Subdivision, SubdivisionType, SubdivisionTypeWithLiterals, SubmitOperation, SubmitOperationWithLiterals, SubscriptionStatus, SubscriptionStatusWithLiterals, SyncSubmitContactRequest, SyncSubmitContactResponse, UnlabelContactRequest, UpdateContactRequest, UpsertContactRequest, UpsertContactResponse, UpsertContactResponseAction, UpsertContactResponseActionWithLiterals, UserInfo, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.js';
2
+ import { ContactInfo, CreateContactOptions, CreateContactResponse, CreateContactApplicationErrors, UpdateContactOptions, UpdateContactResponse, UpdateContactApplicationErrors, MergeContactsOptions, MergeContactsResponse, MergeContactsApplicationErrors, PreviewMergeContactsOptions, PreviewMergeContactsResponse, PreviewMergeContactsApplicationErrors, DeleteContactApplicationErrors, LabelContactResponse, LabelContactApplicationErrors, UnlabelContactResponse, UnlabelContactApplicationErrors, ListContactsOptions, ListContactsResponse, ListContactsApplicationErrors, Query, QueryContactsOptions, ContactsQueryBuilder, ListFacetsOptions, ListFacetsResponse, QueryFacetsOptions, QueryFacetsResponse, BulkDeleteContactsOptions, BulkDeleteContactsResponse, BulkDeleteContactsApplicationErrors, BulkUpdateContactsOptions, BulkUpdateContactsResponse, BulkLabelAndUnlabelContactsOptions, BulkLabelAndUnlabelContactsResponse, BulkLabelAndUnlabelContactsApplicationErrors, GetContactOptions, Contact, GetContactApplicationErrors, ContactCreatedEnvelope, ContactDeletedEnvelope, ContactMergedEnvelope, ContactUpdatedEnvelope } from './index.typings.js';
3
+ export { Action, ActionEvent, ActionWithLiterals, ActivityIcon, Address, AddressLocation, AddressStreetOneOf, AddressTag, AddressTagWithLiterals, ApplicationError, AssigneesWrapper, BaseEventMetadata, BulkActionMetadata, BulkAddSegmentToContactsRequest, BulkAddSegmentToContactsResponse, BulkDeleteContactsRequest, BulkLabelAndUnlabelContactsRequest, BulkRemoveSegmentFromContactsRequest, BulkRemoveSegmentFromContactsResponse, BulkUpdateContactsRequest, BulkUpsertContactsRequest, BulkUpsertContactsResponse, BulkUpsertContactsResponseMetadata, ContactActivity, ContactActivityType, ContactActivityTypeWithLiterals, ContactAddedToSegment, ContactAddress, ContactAddressesWrapper, ContactChanged, ContactEmail, ContactEmailSubscriptionUpdated, ContactEmailsWrapper, ContactFieldSet, ContactFieldSetWithLiterals, ContactMerged, ContactName, ContactPhone, ContactPhoneSubscriptionUpdated, ContactPhonesWrapper, ContactPicture, ContactPrimaryInfoUpdated, ContactRemovedFromSegment, ContactSource, ContactSourceType, ContactSourceTypeWithLiterals, ContactSubmitted, ContactsFacet, ContactsFacetType, ContactsFacetTypeWithLiterals, ContactsQueryResult, CountContactsRequest, CountContactsResponse, CreateContactRequest, CursorPaging, CursorPagingMetadata, Cursors, DeleteContactRequest, DeleteContactResponse, DomainEvent, DomainEventBodyOneOf, DuplicateContactExists, EmailDeliverabilityStatus, EmailDeliverabilityStatusWithLiterals, EmailTag, EmailTagWithLiterals, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, Error, EventMetadata, ExtendedFieldsWrapper, GeneratePictureUploadUrlRequest, GeneratePictureUploadUrlResponse, GetContactRequest, GetContactResponse, GetContactResponseType, GetContactResponseTypeWithLiterals, GroupInfo, IdentificationData, IdentificationDataIdOneOf, ImageProvider, ImageProviderWithLiterals, Item, ItemMetadata, LabelAndUnlabelContactRequest, LabelAndUnlabelContactResponse, LabelContactRequest, LabelsWrapper, LastActivityUpdate, ListContactIdsBySegmentRequest, ListContactIdsBySegmentResponse, ListContactsRequest, ListFacetsRequest, LocationsWrapper, MemberInfo, MemberStatus, MemberStatusWithLiterals, MergeContactsRequest, MessageEnvelope, Metadata, Mode, ModeWithLiterals, Paging, PagingMetadata, PhoneDeliverabilityStatus, PhoneDeliverabilityStatusWithLiterals, PhoneTag, PhoneTagWithLiterals, PreviewMergeContactsRequest, PrimaryContactInfo, PrimaryEmail, PrimaryPhone, PrimarySubscriptionStatus, PrivacyStatus, PrivacyStatusWithLiterals, ProfileInfo, QueryContactsApplicationErrors, QueryContactsRequest, QueryContactsResponse, QueryFacetsRequest, RestoreInfo, Role, RoleWithLiterals, Search, SearchContactsRequest, SearchContactsResponse, SearchDetails, SearchPagingMethodOneOf, SegmentsWrapper, SessionInfo, SortOrder, SortOrderWithLiterals, Sorting, StreetAddress, Subdivision, SubdivisionType, SubdivisionTypeWithLiterals, SubmitOperation, SubmitOperationWithLiterals, SubscriptionStatus, SubscriptionStatusWithLiterals, SyncSubmitContactRequest, SyncSubmitContactResponse, UnlabelContactRequest, UpdateContactRequest, UpsertContactRequest, UpsertContactResponse, UpsertContactResponseAction, UpsertContactResponseActionWithLiterals, UserInfo, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.js';
4
4
 
5
5
  declare function createContact$1(httpClient: HttpClient): CreateContactSignature;
6
6
  interface CreateContactSignature {
@@ -196,8 +196,9 @@ interface QueryContactsSignature {
196
196
  *
197
197
  * 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.
198
198
  * @param - Query contact options.
199
+ * @param - Query options.
199
200
  */
200
- (options?: QueryContactsOptions): ContactsQueryBuilder;
201
+ (query: Query, options?: QueryContactsOptions): ContactsQueryBuilder;
201
202
  }
202
203
  declare function listFacets$1(httpClient: HttpClient): ListFacetsSignature;
203
204
  interface ListFacetsSignature {
@@ -341,4 +342,4 @@ declare const onContactMerged: BuildEventDefinition<typeof onContactMerged$1> &
341
342
  */
342
343
  declare const onContactUpdated: BuildEventDefinition<typeof onContactUpdated$1> & typeof onContactUpdated$1;
343
344
 
344
- export { BulkDeleteContactsApplicationErrors, BulkDeleteContactsOptions, BulkDeleteContactsResponse, BulkLabelAndUnlabelContactsApplicationErrors, BulkLabelAndUnlabelContactsOptions, BulkLabelAndUnlabelContactsResponse, BulkUpdateContactsOptions, BulkUpdateContactsResponse, Contact, ContactCreatedEnvelope, ContactDeletedEnvelope, ContactInfo, ContactMergedEnvelope, ContactUpdatedEnvelope, ContactsQueryBuilder, CreateContactApplicationErrors, CreateContactOptions, CreateContactResponse, DeleteContactApplicationErrors, GetContactApplicationErrors, GetContactOptions, LabelContactApplicationErrors, LabelContactResponse, ListContactsApplicationErrors, ListContactsOptions, ListContactsResponse, ListFacetsOptions, ListFacetsResponse, MergeContactsApplicationErrors, MergeContactsOptions, MergeContactsResponse, PreviewMergeContactsApplicationErrors, PreviewMergeContactsOptions, PreviewMergeContactsResponse, QueryContactsOptions, QueryFacetsOptions, QueryFacetsResponse, UnlabelContactApplicationErrors, UnlabelContactResponse, UpdateContactApplicationErrors, UpdateContactOptions, UpdateContactResponse, bulkDeleteContacts, bulkLabelAndUnlabelContacts, bulkUpdateContacts, createContact, deleteContact, getContact, labelContact, listContacts, listFacets, mergeContacts, onContactCreated, onContactDeleted, onContactMerged, onContactUpdated, previewMergeContacts, queryContacts, queryFacets, unlabelContact, updateContact };
345
+ export { BulkDeleteContactsApplicationErrors, BulkDeleteContactsOptions, BulkDeleteContactsResponse, BulkLabelAndUnlabelContactsApplicationErrors, BulkLabelAndUnlabelContactsOptions, BulkLabelAndUnlabelContactsResponse, BulkUpdateContactsOptions, BulkUpdateContactsResponse, Contact, ContactCreatedEnvelope, ContactDeletedEnvelope, ContactInfo, ContactMergedEnvelope, ContactUpdatedEnvelope, ContactsQueryBuilder, CreateContactApplicationErrors, CreateContactOptions, CreateContactResponse, DeleteContactApplicationErrors, GetContactApplicationErrors, GetContactOptions, LabelContactApplicationErrors, LabelContactResponse, ListContactsApplicationErrors, ListContactsOptions, ListContactsResponse, ListFacetsOptions, ListFacetsResponse, MergeContactsApplicationErrors, MergeContactsOptions, MergeContactsResponse, PreviewMergeContactsApplicationErrors, PreviewMergeContactsOptions, PreviewMergeContactsResponse, Query, QueryContactsOptions, QueryFacetsOptions, QueryFacetsResponse, UnlabelContactApplicationErrors, UnlabelContactResponse, UpdateContactApplicationErrors, UpdateContactOptions, UpdateContactResponse, bulkDeleteContacts, bulkLabelAndUnlabelContacts, bulkUpdateContacts, createContact, deleteContact, getContact, labelContact, listContacts, listFacets, mergeContacts, onContactCreated, onContactDeleted, onContactMerged, onContactUpdated, previewMergeContacts, queryContacts, queryFacets, unlabelContact, updateContact };
@@ -1342,13 +1342,14 @@ async function listContacts2(options) {
1342
1342
  throw transformedError;
1343
1343
  }
1344
1344
  }
1345
- function queryContacts2(options) {
1346
- const { httpClient, sideEffects } = arguments[1];
1345
+ function queryContacts2(query, options) {
1346
+ const { httpClient, sideEffects } = arguments[2];
1347
1347
  return (0, import_query_builder.queryBuilder)({
1348
1348
  func: async (payload) => {
1349
1349
  const reqOpts = queryContacts({
1350
1350
  ...payload,
1351
- ...options ?? {}
1351
+ ...options ?? {},
1352
+ query
1352
1353
  });
1353
1354
  sideEffects?.onSiteCall?.();
1354
1355
  try {
@@ -1360,11 +1361,11 @@ function queryContacts2(options) {
1360
1361
  throw err;
1361
1362
  }
1362
1363
  },
1363
- requestTransformer: (query) => {
1364
- const args = [query, options];
1364
+ requestTransformer: (query2) => {
1365
+ const args = [query2, query2, options];
1365
1366
  return (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1366
- ...args?.[1],
1367
- query: args?.[0]
1367
+ query: args?.[0],
1368
+ ...args?.[2]
1368
1369
  });
1369
1370
  },
1370
1371
  responseTransformer: ({ data }) => {
@@ -1680,7 +1681,8 @@ function listContacts3(httpClient) {
1680
1681
  );
1681
1682
  }
1682
1683
  function queryContacts3(httpClient) {
1683
- return (options) => queryContacts2(
1684
+ return (query, options) => queryContacts2(
1685
+ query,
1684
1686
  options,
1685
1687
  // @ts-ignore
1686
1688
  { httpClient }