@wix/auto_sdk_crm_contacts-v-5 1.0.16 → 1.0.17
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/{contacts-v5-contact-contacts-v-5.universal-DOguhHP-.d.ts → contacts-v5-contact-contacts-v-5.universal-Cfa-5S-r.d.ts} +35 -4
- package/build/cjs/index.d.ts +4 -5
- package/build/cjs/index.js +3 -3
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js +3 -3
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +2 -2
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.js +3441 -3147
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/{contacts-v5-contact-contacts-v-5.universal-DOguhHP-.d.mts → contacts-v5-contact-contacts-v-5.universal-Cfa-5S-r.d.mts} +35 -4
- package/build/es/index.d.mts +4 -5
- package/build/es/index.mjs +3 -3
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs +3 -3
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +2 -2
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.mjs +3441 -3147
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/{contacts-v5-contact-contacts-v-5.universal-C_52Luws.d.ts → contacts-v5-contact-contacts-v-5.universal-DSwS1DMP.d.ts} +35 -4
- package/build/internal/cjs/index.d.ts +4 -5
- package/build/internal/cjs/index.typings.d.ts +2 -2
- package/build/internal/cjs/meta.d.ts +2 -2
- package/build/internal/es/{contacts-v5-contact-contacts-v-5.universal-C_52Luws.d.mts → contacts-v5-contact-contacts-v-5.universal-DSwS1DMP.d.mts} +35 -4
- package/build/internal/es/index.d.mts +4 -5
- package/build/internal/es/index.typings.d.mts +2 -2
- package/build/internal/es/meta.d.mts +2 -2
- package/package.json +2 -2
- package/build/internal/cjs/index.js +0 -3690
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.js +0 -3386
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.js +0 -2501
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/schemas.js +0 -8521
- package/build/internal/cjs/schemas.js.map +0 -1
- package/build/internal/es/index.mjs +0 -3607
- package/build/internal/es/index.mjs.map +0 -1
- package/build/internal/es/index.typings.mjs +0 -3302
- package/build/internal/es/index.typings.mjs.map +0 -1
- package/build/internal/es/meta.mjs +0 -2416
- package/build/internal/es/meta.mjs.map +0 -1
- package/build/internal/es/schemas.mjs +0 -8421
- package/build/internal/es/schemas.mjs.map +0 -1
|
@@ -334,7 +334,7 @@ interface ContactAddress {
|
|
|
334
334
|
* Address ID.
|
|
335
335
|
* @format GUID
|
|
336
336
|
*/
|
|
337
|
-
|
|
337
|
+
_id?: string | null;
|
|
338
338
|
/** Address recipient information for delivery purposes. */
|
|
339
339
|
recipient?: Recipient;
|
|
340
340
|
}
|
|
@@ -3869,10 +3869,10 @@ interface DeleteContactAddressIdentifiers {
|
|
|
3869
3869
|
* Updates an address on a contact.
|
|
3870
3870
|
*
|
|
3871
3871
|
* Each time the contact is updated, `revision` increments by 1. The current `revision` must be passed. This ensures you're working with the latest contact and prevents unintended overwrites.
|
|
3872
|
-
* @param address - Address to update. Must include `address.id`.
|
|
3873
3872
|
* @public
|
|
3874
3873
|
* @requiredField address
|
|
3875
3874
|
* @requiredField identifiers
|
|
3875
|
+
* @requiredField identifiers.addressId
|
|
3876
3876
|
* @requiredField identifiers.contactId
|
|
3877
3877
|
* @requiredField options
|
|
3878
3878
|
* @requiredField options.revision
|
|
@@ -3880,7 +3880,7 @@ interface DeleteContactAddressIdentifiers {
|
|
|
3880
3880
|
* @applicableIdentity APP
|
|
3881
3881
|
* @fqn wix.contacts.v5.Contacts.UpdateContactAddress
|
|
3882
3882
|
*/
|
|
3883
|
-
declare function updateContactAddress(identifiers: NonNullablePaths<UpdateContactAddressIdentifiers, `contactId`, 2>, address:
|
|
3883
|
+
declare function updateContactAddress(identifiers: NonNullablePaths<UpdateContactAddressIdentifiers, `addressId` | `contactId`, 2>, address: UpdateContactAddress, options: NonNullablePaths<UpdateContactAddressOptions, `revision`, 2>): Promise<NonNullablePaths<UpdateContactAddressResponse, `contact.email.email` | `contact.email.subscriptionStatus.status` | `contact.email.deliverabilityStatus` | `contact.additionalEmails` | `contact.additionalEmails.${number}.email` | `contact.phone.tag` | `contact.phone.phone` | `contact.phone.deliverabilityStatus` | `contact.additionalPhones` | `contact.additionalPhones.${number}.tag` | `contact.additionalPhones.${number}.phone` | `contact.addresses` | `contact.addresses.${number}.tag` | `contact.addresses.${number}.address.streetAddress.number` | `contact.addresses.${number}.address.streetAddress.name` | `contact.addresses.${number}.address.streetAddress.apt` | `contact.locationIds` | `contact.segmentIds` | `contact.memberInfo.status` | `contact.memberInfo.profileInfo.privacyStatus` | `contact.memberInfo.userInfo.userId` | `contact.memberInfo.userInfo.role` | `contact.memberInfo.sessionInfo.mobileAppNames` | `contact.memberInfo.groupInfo.groupIds` | `contact.tags.privateTags.tagIds`, 7> & {
|
|
3884
3884
|
__applicationErrorsType?: UpdateContactAddressApplicationErrors;
|
|
3885
3885
|
}>;
|
|
3886
3886
|
interface UpdateContactAddressIdentifiers {
|
|
@@ -3889,6 +3889,37 @@ interface UpdateContactAddressIdentifiers {
|
|
|
3889
3889
|
* @format GUID
|
|
3890
3890
|
*/
|
|
3891
3891
|
contactId: string;
|
|
3892
|
+
/**
|
|
3893
|
+
* Address ID.
|
|
3894
|
+
* @format GUID
|
|
3895
|
+
*/
|
|
3896
|
+
addressId?: string | null;
|
|
3897
|
+
}
|
|
3898
|
+
interface UpdateContactAddress {
|
|
3899
|
+
/**
|
|
3900
|
+
* Address type classification. Helps categorize the address purpose.
|
|
3901
|
+
*
|
|
3902
|
+
* Default: `OTHER`
|
|
3903
|
+
*/
|
|
3904
|
+
tag?: AddressTagWithLiterals;
|
|
3905
|
+
/**
|
|
3906
|
+
* Physical address information including street, city, country, and postal code.
|
|
3907
|
+
* Contains structured address data following common address formatting standards.
|
|
3908
|
+
*/
|
|
3909
|
+
address?: Address;
|
|
3910
|
+
/**
|
|
3911
|
+
* Whether this address is the contact's default address.
|
|
3912
|
+
* Only one address can be designated as default per contact.
|
|
3913
|
+
* If no address is explicitly set as default, the first address automatically becomes the default.
|
|
3914
|
+
*/
|
|
3915
|
+
defaultAddress?: boolean | null;
|
|
3916
|
+
/**
|
|
3917
|
+
* Address ID.
|
|
3918
|
+
* @format GUID
|
|
3919
|
+
*/
|
|
3920
|
+
_id?: string | null;
|
|
3921
|
+
/** Address recipient information for delivery purposes. */
|
|
3922
|
+
recipient?: Recipient;
|
|
3892
3923
|
}
|
|
3893
3924
|
interface UpdateContactAddressOptions {
|
|
3894
3925
|
/** Contact revision number. */
|
|
@@ -4235,4 +4266,4 @@ interface BulkUpdatePhoneCountryCodeByFilterOptions {
|
|
|
4235
4266
|
countryCode: string;
|
|
4236
4267
|
}
|
|
4237
4268
|
|
|
4238
|
-
export { type BulkUpdateContactsOptions as $, type AdditionalEmail as A, type BulkUpdateContactSubscriptionsOptions as B, type Contact as C, type DeleteContactOptions as D, type AdditionalPhone as E, type FindMatchingContactsOptions as F, type GenerateContactImageUploadUrlOptions as G, type AddContactAdditionalPhoneOptions as H, type AddContactAdditionalPhoneResponse as I, type AddContactAdditionalPhoneApplicationErrors as J, type ContactAddress as K, type AddContactAddressOptions as L, type MergeContactsOptions as M, type AddContactAddressResponse as N, type AddContactAddressApplicationErrors as O, type DeleteContactAddressIdentifiers as P, type DeleteContactAddressResponse as Q, type DeleteContactAddressApplicationErrors as R, type SearchContactsOptions as S, type UpdateContactAddressIdentifiers as T, type UpdateContact as U, type UpdateContactAddressOptions as V, type UpdateContactAddressResponse as W, type UpdateContactAddressApplicationErrors as X, type BulkCreateContactsOptions as Y, type BulkCreateContactsResponse as Z, type MaskedContact as _, type BulkUpdateContactSubscriptionsResponse as a, type StreetAddress as a$, type BulkUpdateContactsResponse as a0, type BulkUpdateContactTagsOptions as a1, type BulkUpdateContactTagsResponse as a2, type BulkUpdateContactTagsApplicationErrors as a3, type BulkUpdateContactTagsByFilterOptions as a4, type BulkUpdateContactTagsByFilterResponse as a5, type BulkUpdateContactTagsByFilterApplicationErrors as a6, type BulkUpsertContactsRequestMaskedContact as a7, type BulkUpsertContactsOptions as a8, type BulkUpsertContactsResponse as a9, MemberStatus as aA, PrivacyStatus as aB, Role as aC, WebhookIdentityType as aD, Mode as aE, V5SubscriptionStatus as aF, MatchType as aG, UpsertMode as aH, UpsertContactResponseAction as aI, SortOrder as aJ, SortType as aK, SortDirection as aL, MissingValues as aM, ScalarType as aN, NestedAggregationType as aO, Interval as aP, AggregationType as aQ, NameFormat as aR, Action as aS, QueryContactsByOffsetInternalRequestNameFormat as aT, ImageUploadStatus as aU, type ContactName as aV, type ContactEmail as aW, type ContactSubscription as aX, type ContactPhone as aY, type Address as aZ, type AddressStreetOneOf as a_, type BulkDeleteContactsOptions as aa, type BulkDeleteContactsResponse as ab, type BulkDeleteContactsApplicationErrors as ac, type BulkDeleteContactsByFilterOptions as ad, type BulkDeleteContactsByFilterResponse as ae, type BulkDeleteContactsByFilterApplicationErrors as af, type RestoreContactFromTrashBinResponse as ag, type BulkRestoreContactsFromTrashBinOptions as ah, type BulkRestoreContactsFromTrashBinResponse as ai, type GetDeletedContactResponse as aj, type ListDeletedContactsOptions as ak, type ListDeletedContactsResponse as al, type GetContactImageUploadStatusIdentifiers as am, type GetContactImageUploadStatusResponse as an, type GetContactImageUploadStatusApplicationErrors as ao, type BulkUpdatePhoneCountryCodeByFilterOptions as ap, type BulkUpdatePhoneCountryCodeByFilterResponse as aq, type ContactsQueryBuilder as ar, type ContactQuery as as, typedQueryContacts as at, SubscriptionStatus as au, EmailDeliverabilityStatus as av, PhoneTag as aw, PhoneDeliverabilityStatus as ax, AddressTag as ay, SubdivisionType as az, type BulkUpdateContactSubscriptionsApplicationErrors as b, type QueryContactsResponse as b$, type AddressLocation as b0, type Subdivision as b1, type StandardDetails as b2, type Recipient as b3, type ContactCompany as b4, type ContactSource as b5, type ContactActivity as b6, type MemberInfo as b7, type ProfileInfo as b8, type UserInfo as b9, type SearchDetails as bA, type ReindexEntityForFQDN as bB, type ReindexEntityForFQDNActionOneOf as bC, type Index as bD, type Delete as bE, type ReportBatchCompleted as bF, type BulkIndex as bG, type BulkDelete as bH, type CreateContactRequest as bI, type CreateContactResponse as bJ, type DuplicateContactExists as bK, type GetContactRequest as bL, type GetContactResponse as bM, type UpdateContactRequest as bN, type UpdateContactResponse as bO, type UpsertContactRequest as bP, type FailedMemberUpdate as bQ, type UpdateContactTagsRequest as bR, type MergeContactsRequest as bS, type DeleteContactRequest as bT, type DeleteContactResponse as bU, type FindMatchingContactsRequest as bV, type QueryContactsRequest as bW, type CursorQuery as bX, type CursorQueryPagingMethodOneOf as bY, type Sorting as bZ, type CursorPaging as b_, type SessionInfo as ba, type GroupInfo as bb, type PrivateTags as bc, type TagList as bd, type ExtendedFields as be, type ReindexMessage as bf, type ReindexMessageActionOneOf as bg, type Upsert as bh, type ReindexMessageDelete as bi, type Schema as bj, type ContactMerged as bk, type ContactEmailSubscriptionUpdated as bl, type ContactPhoneSubscriptionUpdated as bm, type ContactImageUploaded as bn, type DomainEvent as bo, type DomainEventBodyOneOf as bp, type EntityCreatedEvent as bq, type RestoreInfo as br, type EntityUpdatedEvent as bs, type EntityDeletedEvent as bt, type ActionEvent as bu, type MessageEnvelope as bv, type IdentificationData as bw, type IdentificationDataIdOneOf as bx, type AccountInfo as by, type BulkUpdateContactSubscriptionsRequest as bz, type CreateContactOptions as c, type BulkAddSegmentToContactsRequest as c$, type CursorPagingMetadata as c0, type Cursors as c1, type SearchContactsRequest as c2, type CursorSearch as c3, type CursorSearchPagingMethodOneOf as c4, type Aggregation as c5, type AggregationKindOneOf as c6, type RangeBucket as c7, type IncludeMissingValuesOptions as c8, type ValueAggregation as c9, type AddContactAdditionalEmailRequest as cA, type AddContactAdditionalPhoneRequest as cB, type AddContactAddressRequest as cC, type DeleteContactAddressRequest as cD, type UpdateContactAddressRequest as cE, type BulkCreateContactsRequest as cF, type ItemMetadata as cG, type ApplicationError as cH, type BulkContactResult as cI, type BulkActionMetadata as cJ, type BulkUpdateContactsRequest as cK, type BulkUpdateContactsResponseBulkContactResult as cL, type BulkUpdateContactTagsRequest as cM, type BulkUpdateContactTagsResult as cN, type BulkUpdateContactTagsByFilterRequest as cO, type BulkUpsertContactsRequest as cP, type BulkUpsertContactsResponseBulkContactResult as cQ, type BulkDeleteContactsRequest as cR, type BulkDeleteContactsResponseBulkContactResult as cS, type BulkDeleteContactsByFilterRequest as cT, type RemoveContactFromTrashBinRequest as cU, type RemoveContactFromTrashBinResponse as cV, type RestoreContactFromTrashBinRequest as cW, type BulkRestoreContactsFromTrashBinRequest as cX, type BulkRestoreContactsFromTrashBinResponseBulkContactResult as cY, type GetDeletedContactRequest as cZ, type ListDeletedContactsRequest as c_, type ValueAggregationOptionsOneOf as ca, type RangeAggregation as cb, type ScalarAggregation as cc, type DateHistogramAggregation as cd, type NestedAggregationItem as ce, type NestedAggregationItemKindOneOf as cf, type NestedAggregation as cg, type AggregationData as ch, type ValueAggregationResult as ci, type RangeAggregationResult as cj, type ValueResults as ck, type RangeResults as cl, type AggregationResultsScalarResult as cm, type ValueResult as cn, type RangeResult as co, type ScalarResult as cp, type NestedResultValue as cq, type NestedResultValueResultOneOf as cr, type Results as cs, type DateHistogramResult as ct, type DateHistogramResults as cu, type NestedResults as cv, type AggregationResults as cw, type AggregationResultsResultOneOf as cx, type CountContactsRequest as cy, type GenerateContactImageUploadUrlRequest as cz, type CreateContactApplicationErrors as d, updateContactAddress as d$, type BulkAddSegmentToContactsResponse as d0, type BulkRemoveSegmentFromContactsRequest as d1, type BulkRemoveSegmentFromContactsResponse as d2, type QueryContactsByOffsetInternalRequest as d3, type QueryV2 as d4, type QueryV2PagingMethodOneOf as d5, type Paging as d6, type QueryContactsByOffsetInternalResponse as d7, type PagingMetadataV2 as d8, type GetContactImageUploadStatusRequest as d9, type MissingValuesWithLiterals as dA, type ScalarTypeWithLiterals as dB, type NestedAggregationTypeWithLiterals as dC, type IntervalWithLiterals as dD, type AggregationTypeWithLiterals as dE, type NameFormatWithLiterals as dF, type ActionWithLiterals as dG, type QueryContactsByOffsetInternalRequestNameFormatWithLiterals as dH, type ImageUploadStatusWithLiterals as dI, type CommonQueryWithEntityContext as dJ, type CommonSearchWithEntityContext as dK, bulkUpdateContactSubscriptions as dL, createContact as dM, getContact as dN, updateContact as dO, upsertContact as dP, updateContactTags as dQ, mergeContacts as dR, deleteContact as dS, findMatchingContacts as dT, queryContacts as dU, countContacts as dV, generateContactImageUploadUrl as dW, addContactAdditionalEmail as dX, addContactAdditionalPhone as dY, addContactAddress as dZ, deleteContactAddress as d_, type BulkUpdatePhoneCountryCodeByFilterRequest as da, type Empty as db, type MediaFileUploadedEvent as dc, type ContactsQueryResult as dd, type ContactQuerySpec as de, type ContactSearchSpec as df, utils as dg, type SubscriptionStatusWithLiterals as dh, type EmailDeliverabilityStatusWithLiterals as di, type PhoneTagWithLiterals as dj, type PhoneDeliverabilityStatusWithLiterals as dk, type AddressTagWithLiterals as dl, type SubdivisionTypeWithLiterals as dm, type MemberStatusWithLiterals as dn, type PrivacyStatusWithLiterals as dp, type RoleWithLiterals as dq, type WebhookIdentityTypeWithLiterals as dr, type ModeWithLiterals as ds, type V5SubscriptionStatusWithLiterals as dt, type MatchTypeWithLiterals as du, type UpsertModeWithLiterals as dv, type UpsertContactResponseActionWithLiterals as dw, type SortOrderWithLiterals as dx, type SortTypeWithLiterals as dy, type SortDirectionWithLiterals as dz, type UpdateContactOptions as e, bulkCreateContacts as e0, bulkUpdateContacts as e1, bulkUpdateContactTags as e2, bulkUpdateContactTagsByFilter as e3, bulkUpsertContacts as e4, bulkDeleteContacts as e5, bulkDeleteContactsByFilter as e6, removeContactFromTrashBin as e7, restoreContactFromTrashBin as e8, bulkRestoreContactsFromTrashBin as e9, getDeletedContact as ea, listDeletedContacts as eb, getContactImageUploadStatus as ec, bulkUpdatePhoneCountryCodeByFilter as ed, type UpdateContactApplicationErrors as f, type UpsertContactOptions as g, type UpsertContactResponse as h, type UpsertContactApplicationErrors as i, type UpdateContactTagsOptions as j, type UpdateContactTagsResponse as k, type UpdateContactTagsApplicationErrors as l, type MergeContactsResponse as m, type MergeContactsApplicationErrors as n, type DeleteContactApplicationErrors as o, type FindMatchingContactsResponse as p, type FindMatchingContactsApplicationErrors as q, type ContactSearch as r, type SearchContactsResponse as s, type CountContactsOptions as t, type CountContactsResponse as u, type GenerateContactImageUploadUrlResponse as v, type GenerateContactImageUploadUrlApplicationErrors as w, type AddContactAdditionalEmailOptions as x, type AddContactAdditionalEmailResponse as y, type AddContactAdditionalEmailApplicationErrors as z };
|
|
4269
|
+
export { type MaskedContact as $, type AdditionalEmail as A, type BulkUpdateContactSubscriptionsOptions as B, type Contact as C, type DeleteContactOptions as D, type AdditionalPhone as E, type FindMatchingContactsOptions as F, type GenerateContactImageUploadUrlOptions as G, type AddContactAdditionalPhoneOptions as H, type AddContactAdditionalPhoneResponse as I, type AddContactAdditionalPhoneApplicationErrors as J, type ContactAddress as K, type AddContactAddressOptions as L, type MergeContactsOptions as M, type AddContactAddressResponse as N, type AddContactAddressApplicationErrors as O, type DeleteContactAddressIdentifiers as P, type DeleteContactAddressResponse as Q, type DeleteContactAddressApplicationErrors as R, type SearchContactsOptions as S, type UpdateContactAddressIdentifiers as T, type UpdateContact as U, type UpdateContactAddress as V, type UpdateContactAddressOptions as W, type UpdateContactAddressResponse as X, type UpdateContactAddressApplicationErrors as Y, type BulkCreateContactsOptions as Z, type BulkCreateContactsResponse as _, type BulkUpdateContactSubscriptionsResponse as a, type AddressStreetOneOf as a$, type BulkUpdateContactsOptions as a0, type BulkUpdateContactsResponse as a1, type BulkUpdateContactTagsOptions as a2, type BulkUpdateContactTagsResponse as a3, type BulkUpdateContactTagsApplicationErrors as a4, type BulkUpdateContactTagsByFilterOptions as a5, type BulkUpdateContactTagsByFilterResponse as a6, type BulkUpdateContactTagsByFilterApplicationErrors as a7, type BulkUpsertContactsRequestMaskedContact as a8, type BulkUpsertContactsOptions as a9, SubdivisionType as aA, MemberStatus as aB, PrivacyStatus as aC, Role as aD, WebhookIdentityType as aE, Mode as aF, V5SubscriptionStatus as aG, MatchType as aH, UpsertMode as aI, UpsertContactResponseAction as aJ, SortOrder as aK, SortType as aL, SortDirection as aM, MissingValues as aN, ScalarType as aO, NestedAggregationType as aP, Interval as aQ, AggregationType as aR, NameFormat as aS, Action as aT, QueryContactsByOffsetInternalRequestNameFormat as aU, ImageUploadStatus as aV, type ContactName as aW, type ContactEmail as aX, type ContactSubscription as aY, type ContactPhone as aZ, type Address as a_, type BulkUpsertContactsResponse as aa, type BulkDeleteContactsOptions as ab, type BulkDeleteContactsResponse as ac, type BulkDeleteContactsApplicationErrors as ad, type BulkDeleteContactsByFilterOptions as ae, type BulkDeleteContactsByFilterResponse as af, type BulkDeleteContactsByFilterApplicationErrors as ag, type RestoreContactFromTrashBinResponse as ah, type BulkRestoreContactsFromTrashBinOptions as ai, type BulkRestoreContactsFromTrashBinResponse as aj, type GetDeletedContactResponse as ak, type ListDeletedContactsOptions as al, type ListDeletedContactsResponse as am, type GetContactImageUploadStatusIdentifiers as an, type GetContactImageUploadStatusResponse as ao, type GetContactImageUploadStatusApplicationErrors as ap, type BulkUpdatePhoneCountryCodeByFilterOptions as aq, type BulkUpdatePhoneCountryCodeByFilterResponse as ar, type ContactsQueryBuilder as as, type ContactQuery as at, typedQueryContacts as au, SubscriptionStatus as av, EmailDeliverabilityStatus as aw, PhoneTag as ax, PhoneDeliverabilityStatus as ay, AddressTag as az, type BulkUpdateContactSubscriptionsApplicationErrors as b, type CursorPaging as b$, type StreetAddress as b0, type AddressLocation as b1, type Subdivision as b2, type StandardDetails as b3, type Recipient as b4, type ContactCompany as b5, type ContactSource as b6, type ContactActivity as b7, type MemberInfo as b8, type ProfileInfo as b9, type BulkUpdateContactSubscriptionsRequest as bA, type SearchDetails as bB, type ReindexEntityForFQDN as bC, type ReindexEntityForFQDNActionOneOf as bD, type Index as bE, type Delete as bF, type ReportBatchCompleted as bG, type BulkIndex as bH, type BulkDelete as bI, type CreateContactRequest as bJ, type CreateContactResponse as bK, type DuplicateContactExists as bL, type GetContactRequest as bM, type GetContactResponse as bN, type UpdateContactRequest as bO, type UpdateContactResponse as bP, type UpsertContactRequest as bQ, type FailedMemberUpdate as bR, type UpdateContactTagsRequest as bS, type MergeContactsRequest as bT, type DeleteContactRequest as bU, type DeleteContactResponse as bV, type FindMatchingContactsRequest as bW, type QueryContactsRequest as bX, type CursorQuery as bY, type CursorQueryPagingMethodOneOf as bZ, type Sorting as b_, type UserInfo as ba, type SessionInfo as bb, type GroupInfo as bc, type PrivateTags as bd, type TagList as be, type ExtendedFields as bf, type ReindexMessage as bg, type ReindexMessageActionOneOf as bh, type Upsert as bi, type ReindexMessageDelete as bj, type Schema as bk, type ContactMerged as bl, type ContactEmailSubscriptionUpdated as bm, type ContactPhoneSubscriptionUpdated as bn, type ContactImageUploaded as bo, type DomainEvent as bp, type DomainEventBodyOneOf as bq, type EntityCreatedEvent as br, type RestoreInfo as bs, type EntityUpdatedEvent as bt, type EntityDeletedEvent as bu, type ActionEvent as bv, type MessageEnvelope as bw, type IdentificationData as bx, type IdentificationDataIdOneOf as by, type AccountInfo as bz, type CreateContactOptions as c, type ListDeletedContactsRequest as c$, type QueryContactsResponse as c0, type CursorPagingMetadata as c1, type Cursors as c2, type SearchContactsRequest as c3, type CursorSearch as c4, type CursorSearchPagingMethodOneOf as c5, type Aggregation as c6, type AggregationKindOneOf as c7, type RangeBucket as c8, type IncludeMissingValuesOptions as c9, type GenerateContactImageUploadUrlRequest as cA, type AddContactAdditionalEmailRequest as cB, type AddContactAdditionalPhoneRequest as cC, type AddContactAddressRequest as cD, type DeleteContactAddressRequest as cE, type UpdateContactAddressRequest as cF, type BulkCreateContactsRequest as cG, type ItemMetadata as cH, type ApplicationError as cI, type BulkContactResult as cJ, type BulkActionMetadata as cK, type BulkUpdateContactsRequest as cL, type BulkUpdateContactsResponseBulkContactResult as cM, type BulkUpdateContactTagsRequest as cN, type BulkUpdateContactTagsResult as cO, type BulkUpdateContactTagsByFilterRequest as cP, type BulkUpsertContactsRequest as cQ, type BulkUpsertContactsResponseBulkContactResult as cR, type BulkDeleteContactsRequest as cS, type BulkDeleteContactsResponseBulkContactResult as cT, type BulkDeleteContactsByFilterRequest as cU, type RemoveContactFromTrashBinRequest as cV, type RemoveContactFromTrashBinResponse as cW, type RestoreContactFromTrashBinRequest as cX, type BulkRestoreContactsFromTrashBinRequest as cY, type BulkRestoreContactsFromTrashBinResponseBulkContactResult as cZ, type GetDeletedContactRequest as c_, type ValueAggregation as ca, type ValueAggregationOptionsOneOf as cb, type RangeAggregation as cc, type ScalarAggregation as cd, type DateHistogramAggregation as ce, type NestedAggregationItem as cf, type NestedAggregationItemKindOneOf as cg, type NestedAggregation as ch, type AggregationData as ci, type ValueAggregationResult as cj, type RangeAggregationResult as ck, type ValueResults as cl, type RangeResults as cm, type AggregationResultsScalarResult as cn, type ValueResult as co, type RangeResult as cp, type ScalarResult as cq, type NestedResultValue as cr, type NestedResultValueResultOneOf as cs, type Results as ct, type DateHistogramResult as cu, type DateHistogramResults as cv, type NestedResults as cw, type AggregationResults as cx, type AggregationResultsResultOneOf as cy, type CountContactsRequest as cz, type CreateContactApplicationErrors as d, deleteContactAddress as d$, type BulkAddSegmentToContactsRequest as d0, type BulkAddSegmentToContactsResponse as d1, type BulkRemoveSegmentFromContactsRequest as d2, type BulkRemoveSegmentFromContactsResponse as d3, type QueryContactsByOffsetInternalRequest as d4, type QueryV2 as d5, type QueryV2PagingMethodOneOf as d6, type Paging as d7, type QueryContactsByOffsetInternalResponse as d8, type PagingMetadataV2 as d9, type SortDirectionWithLiterals as dA, type MissingValuesWithLiterals as dB, type ScalarTypeWithLiterals as dC, type NestedAggregationTypeWithLiterals as dD, type IntervalWithLiterals as dE, type AggregationTypeWithLiterals as dF, type NameFormatWithLiterals as dG, type ActionWithLiterals as dH, type QueryContactsByOffsetInternalRequestNameFormatWithLiterals as dI, type ImageUploadStatusWithLiterals as dJ, type CommonQueryWithEntityContext as dK, type CommonSearchWithEntityContext as dL, bulkUpdateContactSubscriptions as dM, createContact as dN, getContact as dO, updateContact as dP, upsertContact as dQ, updateContactTags as dR, mergeContacts as dS, deleteContact as dT, findMatchingContacts as dU, queryContacts as dV, countContacts as dW, generateContactImageUploadUrl as dX, addContactAdditionalEmail as dY, addContactAdditionalPhone as dZ, addContactAddress as d_, type GetContactImageUploadStatusRequest as da, type BulkUpdatePhoneCountryCodeByFilterRequest as db, type Empty as dc, type MediaFileUploadedEvent as dd, type ContactsQueryResult as de, type ContactQuerySpec as df, type ContactSearchSpec as dg, utils as dh, type SubscriptionStatusWithLiterals as di, type EmailDeliverabilityStatusWithLiterals as dj, type PhoneTagWithLiterals as dk, type PhoneDeliverabilityStatusWithLiterals as dl, type AddressTagWithLiterals as dm, type SubdivisionTypeWithLiterals as dn, type MemberStatusWithLiterals as dp, type PrivacyStatusWithLiterals as dq, type RoleWithLiterals as dr, type WebhookIdentityTypeWithLiterals as ds, type ModeWithLiterals as dt, type V5SubscriptionStatusWithLiterals as du, type MatchTypeWithLiterals as dv, type UpsertModeWithLiterals as dw, type UpsertContactResponseActionWithLiterals as dx, type SortOrderWithLiterals as dy, type SortTypeWithLiterals as dz, type UpdateContactOptions as e, updateContactAddress as e0, bulkCreateContacts as e1, bulkUpdateContacts as e2, bulkUpdateContactTags as e3, bulkUpdateContactTagsByFilter as e4, bulkUpsertContacts as e5, bulkDeleteContacts as e6, bulkDeleteContactsByFilter as e7, removeContactFromTrashBin as e8, restoreContactFromTrashBin as e9, bulkRestoreContactsFromTrashBin as ea, getDeletedContact as eb, listDeletedContacts as ec, getContactImageUploadStatus as ed, bulkUpdatePhoneCountryCodeByFilter as ee, type UpdateContactApplicationErrors as f, type UpsertContactOptions as g, type UpsertContactResponse as h, type UpsertContactApplicationErrors as i, type UpdateContactTagsOptions as j, type UpdateContactTagsResponse as k, type UpdateContactTagsApplicationErrors as l, type MergeContactsResponse as m, type MergeContactsApplicationErrors as n, type DeleteContactApplicationErrors as o, type FindMatchingContactsResponse as p, type FindMatchingContactsApplicationErrors as q, type ContactSearch as r, type SearchContactsResponse as s, type CountContactsOptions as t, type CountContactsResponse as u, type GenerateContactImageUploadUrlResponse as v, type GenerateContactImageUploadUrlApplicationErrors as w, type AddContactAdditionalEmailOptions as x, type AddContactAdditionalEmailResponse as y, type AddContactAdditionalEmailApplicationErrors as z };
|
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
-
import { B as BulkUpdateContactSubscriptionsOptions, a as BulkUpdateContactSubscriptionsResponse, b as BulkUpdateContactSubscriptionsApplicationErrors, C as Contact, c as CreateContactOptions, d as CreateContactApplicationErrors, U as UpdateContact, e as UpdateContactOptions, f as UpdateContactApplicationErrors, g as UpsertContactOptions, h as UpsertContactResponse, i as UpsertContactApplicationErrors, j as UpdateContactTagsOptions, k as UpdateContactTagsResponse, l as UpdateContactTagsApplicationErrors, M as MergeContactsOptions, m as MergeContactsResponse, n as MergeContactsApplicationErrors, D as DeleteContactOptions, o as DeleteContactApplicationErrors, F as FindMatchingContactsOptions, p as FindMatchingContactsResponse, q as FindMatchingContactsApplicationErrors, r as ContactSearch, S as SearchContactsOptions, s as SearchContactsResponse, t as CountContactsOptions, u as CountContactsResponse, G as GenerateContactImageUploadUrlOptions, v as GenerateContactImageUploadUrlResponse, w as GenerateContactImageUploadUrlApplicationErrors, A as AdditionalEmail, x as AddContactAdditionalEmailOptions, y as AddContactAdditionalEmailResponse, z as AddContactAdditionalEmailApplicationErrors, E as AdditionalPhone, H as AddContactAdditionalPhoneOptions, I as AddContactAdditionalPhoneResponse, J as AddContactAdditionalPhoneApplicationErrors, K as ContactAddress, L as AddContactAddressOptions, N as AddContactAddressResponse, O as AddContactAddressApplicationErrors, P as DeleteContactAddressIdentifiers, Q as DeleteContactAddressResponse, R as DeleteContactAddressApplicationErrors, T as UpdateContactAddressIdentifiers, V as
|
|
3
|
-
export {
|
|
2
|
+
import { B as BulkUpdateContactSubscriptionsOptions, a as BulkUpdateContactSubscriptionsResponse, b as BulkUpdateContactSubscriptionsApplicationErrors, C as Contact, c as CreateContactOptions, d as CreateContactApplicationErrors, U as UpdateContact, e as UpdateContactOptions, f as UpdateContactApplicationErrors, g as UpsertContactOptions, h as UpsertContactResponse, i as UpsertContactApplicationErrors, j as UpdateContactTagsOptions, k as UpdateContactTagsResponse, l as UpdateContactTagsApplicationErrors, M as MergeContactsOptions, m as MergeContactsResponse, n as MergeContactsApplicationErrors, D as DeleteContactOptions, o as DeleteContactApplicationErrors, F as FindMatchingContactsOptions, p as FindMatchingContactsResponse, q as FindMatchingContactsApplicationErrors, r as ContactSearch, S as SearchContactsOptions, s as SearchContactsResponse, t as CountContactsOptions, u as CountContactsResponse, G as GenerateContactImageUploadUrlOptions, v as GenerateContactImageUploadUrlResponse, w as GenerateContactImageUploadUrlApplicationErrors, A as AdditionalEmail, x as AddContactAdditionalEmailOptions, y as AddContactAdditionalEmailResponse, z as AddContactAdditionalEmailApplicationErrors, E as AdditionalPhone, H as AddContactAdditionalPhoneOptions, I as AddContactAdditionalPhoneResponse, J as AddContactAdditionalPhoneApplicationErrors, K as ContactAddress, L as AddContactAddressOptions, N as AddContactAddressResponse, O as AddContactAddressApplicationErrors, P as DeleteContactAddressIdentifiers, Q as DeleteContactAddressResponse, R as DeleteContactAddressApplicationErrors, T as UpdateContactAddressIdentifiers, V as UpdateContactAddress, W as UpdateContactAddressOptions, X as UpdateContactAddressResponse, Y as UpdateContactAddressApplicationErrors, Z as BulkCreateContactsOptions, _ as BulkCreateContactsResponse, $ as MaskedContact, a0 as BulkUpdateContactsOptions, a1 as BulkUpdateContactsResponse, a2 as BulkUpdateContactTagsOptions, a3 as BulkUpdateContactTagsResponse, a4 as BulkUpdateContactTagsApplicationErrors, a5 as BulkUpdateContactTagsByFilterOptions, a6 as BulkUpdateContactTagsByFilterResponse, a7 as BulkUpdateContactTagsByFilterApplicationErrors, a8 as BulkUpsertContactsRequestMaskedContact, a9 as BulkUpsertContactsOptions, aa as BulkUpsertContactsResponse, ab as BulkDeleteContactsOptions, ac as BulkDeleteContactsResponse, ad as BulkDeleteContactsApplicationErrors, ae as BulkDeleteContactsByFilterOptions, af as BulkDeleteContactsByFilterResponse, ag as BulkDeleteContactsByFilterApplicationErrors, ah as RestoreContactFromTrashBinResponse, ai as BulkRestoreContactsFromTrashBinOptions, aj as BulkRestoreContactsFromTrashBinResponse, ak as GetDeletedContactResponse, al as ListDeletedContactsOptions, am as ListDeletedContactsResponse, an as GetContactImageUploadStatusIdentifiers, ao as GetContactImageUploadStatusResponse, ap as GetContactImageUploadStatusApplicationErrors, aq as BulkUpdatePhoneCountryCodeByFilterOptions, ar as BulkUpdatePhoneCountryCodeByFilterResponse, as as ContactsQueryBuilder, at as ContactQuery, au as typedQueryContacts } from './contacts-v5-contact-contacts-v-5.universal-Cfa-5S-r.js';
|
|
3
|
+
export { bz as AccountInfo, aT as Action, bv as ActionEvent, dH as ActionWithLiterals, cB as AddContactAdditionalEmailRequest, cC as AddContactAdditionalPhoneRequest, cD as AddContactAddressRequest, a_ as Address, b1 as AddressLocation, a$ as AddressStreetOneOf, az as AddressTag, dm as AddressTagWithLiterals, c6 as Aggregation, ci as AggregationData, c7 as AggregationKindOneOf, cx as AggregationResults, cy as AggregationResultsResultOneOf, cn as AggregationResultsScalarResult, aR as AggregationType, dF as AggregationTypeWithLiterals, cI as ApplicationError, cK as BulkActionMetadata, d0 as BulkAddSegmentToContactsRequest, d1 as BulkAddSegmentToContactsResponse, cJ as BulkContactResult, cG as BulkCreateContactsRequest, bI as BulkDelete, cU as BulkDeleteContactsByFilterRequest, cS as BulkDeleteContactsRequest, cT as BulkDeleteContactsResponseBulkContactResult, bH as BulkIndex, d2 as BulkRemoveSegmentFromContactsRequest, d3 as BulkRemoveSegmentFromContactsResponse, cY as BulkRestoreContactsFromTrashBinRequest, cZ as BulkRestoreContactsFromTrashBinResponseBulkContactResult, bA as BulkUpdateContactSubscriptionsRequest, cP as BulkUpdateContactTagsByFilterRequest, cN as BulkUpdateContactTagsRequest, cO as BulkUpdateContactTagsResult, cL as BulkUpdateContactsRequest, cM as BulkUpdateContactsResponseBulkContactResult, db as BulkUpdatePhoneCountryCodeByFilterRequest, cQ as BulkUpsertContactsRequest, cR as BulkUpsertContactsResponseBulkContactResult, dK as CommonQueryWithEntityContext, dL as CommonSearchWithEntityContext, b7 as ContactActivity, b5 as ContactCompany, aX as ContactEmail, bm as ContactEmailSubscriptionUpdated, bo as ContactImageUploaded, bl as ContactMerged, aW as ContactName, aZ as ContactPhone, bn as ContactPhoneSubscriptionUpdated, df as ContactQuerySpec, dg as ContactSearchSpec, b6 as ContactSource, aY as ContactSubscription, de as ContactsQueryResult, cz as CountContactsRequest, bJ as CreateContactRequest, bK as CreateContactResponse, b$ as CursorPaging, c1 as CursorPagingMetadata, bY as CursorQuery, bZ as CursorQueryPagingMethodOneOf, c4 as CursorSearch, c5 as CursorSearchPagingMethodOneOf, c2 as Cursors, ce as DateHistogramAggregation, cu as DateHistogramResult, cv as DateHistogramResults, bF as Delete, cE as DeleteContactAddressRequest, bU as DeleteContactRequest, bV as DeleteContactResponse, bp as DomainEvent, bq as DomainEventBodyOneOf, bL as DuplicateContactExists, aw as EmailDeliverabilityStatus, dj as EmailDeliverabilityStatusWithLiterals, dc as Empty, br as EntityCreatedEvent, bu as EntityDeletedEvent, bt as EntityUpdatedEvent, bf as ExtendedFields, bR as FailedMemberUpdate, bW as FindMatchingContactsRequest, cA as GenerateContactImageUploadUrlRequest, da as GetContactImageUploadStatusRequest, bM as GetContactRequest, bN as GetContactResponse, c_ as GetDeletedContactRequest, bc as GroupInfo, bx as IdentificationData, by as IdentificationDataIdOneOf, aV as ImageUploadStatus, dJ as ImageUploadStatusWithLiterals, c9 as IncludeMissingValuesOptions, bE as Index, aQ as Interval, dE as IntervalWithLiterals, cH as ItemMetadata, c$ as ListDeletedContactsRequest, aH as MatchType, dv as MatchTypeWithLiterals, dd as MediaFileUploadedEvent, b8 as MemberInfo, aB as MemberStatus, dp as MemberStatusWithLiterals, bT as MergeContactsRequest, bw as MessageEnvelope, aN as MissingValues, dB as MissingValuesWithLiterals, aF as Mode, dt as ModeWithLiterals, aS as NameFormat, dG as NameFormatWithLiterals, ch as NestedAggregation, cf as NestedAggregationItem, cg as NestedAggregationItemKindOneOf, aP as NestedAggregationType, dD as NestedAggregationTypeWithLiterals, cr as NestedResultValue, cs as NestedResultValueResultOneOf, cw as NestedResults, d7 as Paging, d9 as PagingMetadataV2, ay as PhoneDeliverabilityStatus, dl as PhoneDeliverabilityStatusWithLiterals, ax as PhoneTag, dk as PhoneTagWithLiterals, aC as PrivacyStatus, dq as PrivacyStatusWithLiterals, bd as PrivateTags, b9 as ProfileInfo, d4 as QueryContactsByOffsetInternalRequest, aU as QueryContactsByOffsetInternalRequestNameFormat, dI as QueryContactsByOffsetInternalRequestNameFormatWithLiterals, d8 as QueryContactsByOffsetInternalResponse, bX as QueryContactsRequest, c0 as QueryContactsResponse, d5 as QueryV2, d6 as QueryV2PagingMethodOneOf, cc as RangeAggregation, ck as RangeAggregationResult, c8 as RangeBucket, cp as RangeResult, cm as RangeResults, b4 as Recipient, bC as ReindexEntityForFQDN, bD as ReindexEntityForFQDNActionOneOf, bg as ReindexMessage, bh as ReindexMessageActionOneOf, bj as ReindexMessageDelete, cV as RemoveContactFromTrashBinRequest, cW as RemoveContactFromTrashBinResponse, bG as ReportBatchCompleted, cX as RestoreContactFromTrashBinRequest, bs as RestoreInfo, ct as Results, aD as Role, dr as RoleWithLiterals, cd as ScalarAggregation, cq as ScalarResult, aO as ScalarType, dC as ScalarTypeWithLiterals, bk as Schema, c3 as SearchContactsRequest, bB as SearchDetails, bb as SessionInfo, aM as SortDirection, dA as SortDirectionWithLiterals, aK as SortOrder, dy as SortOrderWithLiterals, aL as SortType, dz as SortTypeWithLiterals, b_ as Sorting, b3 as StandardDetails, b0 as StreetAddress, b2 as Subdivision, aA as SubdivisionType, dn as SubdivisionTypeWithLiterals, av as SubscriptionStatus, di as SubscriptionStatusWithLiterals, be as TagList, cF as UpdateContactAddressRequest, bO as UpdateContactRequest, bP as UpdateContactResponse, bS as UpdateContactTagsRequest, bi as Upsert, bQ as UpsertContactRequest, aJ as UpsertContactResponseAction, dx as UpsertContactResponseActionWithLiterals, aI as UpsertMode, dw as UpsertModeWithLiterals, ba as UserInfo, aG as V5SubscriptionStatus, du as V5SubscriptionStatusWithLiterals, ca as ValueAggregation, cb as ValueAggregationOptionsOneOf, cj as ValueAggregationResult, co as ValueResult, cl as ValueResults, aE as WebhookIdentityType, ds as WebhookIdentityTypeWithLiterals, dh as utils } from './contacts-v5-contact-contacts-v-5.universal-Cfa-5S-r.js';
|
|
4
4
|
|
|
5
5
|
declare function bulkUpdateContactSubscriptions$1(httpClient: HttpClient): BulkUpdateContactSubscriptionsSignature;
|
|
6
6
|
interface BulkUpdateContactSubscriptionsSignature {
|
|
@@ -271,9 +271,8 @@ interface UpdateContactAddressSignature {
|
|
|
271
271
|
* Updates an address on a contact.
|
|
272
272
|
*
|
|
273
273
|
* Each time the contact is updated, `revision` increments by 1. The current `revision` must be passed. This ensures you're working with the latest contact and prevents unintended overwrites.
|
|
274
|
-
* @param - Address to update. Must include `address.id`.
|
|
275
274
|
*/
|
|
276
|
-
(identifiers: NonNullablePaths<UpdateContactAddressIdentifiers, `contactId`, 2>, address:
|
|
275
|
+
(identifiers: NonNullablePaths<UpdateContactAddressIdentifiers, `addressId` | `contactId`, 2>, address: UpdateContactAddress, options: NonNullablePaths<UpdateContactAddressOptions, `revision`, 2>): Promise<NonNullablePaths<UpdateContactAddressResponse, `contact.email.email` | `contact.email.subscriptionStatus.status` | `contact.email.deliverabilityStatus` | `contact.additionalEmails` | `contact.additionalEmails.${number}.email` | `contact.phone.tag` | `contact.phone.phone` | `contact.phone.deliverabilityStatus` | `contact.additionalPhones` | `contact.additionalPhones.${number}.tag` | `contact.additionalPhones.${number}.phone` | `contact.addresses` | `contact.addresses.${number}.tag` | `contact.addresses.${number}.address.streetAddress.number` | `contact.addresses.${number}.address.streetAddress.name` | `contact.addresses.${number}.address.streetAddress.apt` | `contact.locationIds` | `contact.segmentIds` | `contact.memberInfo.status` | `contact.memberInfo.profileInfo.privacyStatus` | `contact.memberInfo.userInfo.userId` | `contact.memberInfo.userInfo.role` | `contact.memberInfo.sessionInfo.mobileAppNames` | `contact.memberInfo.groupInfo.groupIds` | `contact.tags.privateTags.tagIds`, 7> & {
|
|
277
276
|
__applicationErrorsType?: UpdateContactAddressApplicationErrors;
|
|
278
277
|
}>;
|
|
279
278
|
}
|
|
@@ -496,4 +495,4 @@ declare const getContactImageUploadStatus: MaybeContext<BuildRESTFunction<typeof
|
|
|
496
495
|
declare const bulkUpdatePhoneCountryCodeByFilter: MaybeContext<BuildRESTFunction<typeof bulkUpdatePhoneCountryCodeByFilter$1> & typeof bulkUpdatePhoneCountryCodeByFilter$1>;
|
|
497
496
|
declare const queryContacts: MaybeContext<BuildRESTFunction<typeof customQueryContacts> & typeof customQueryContacts>;
|
|
498
497
|
|
|
499
|
-
export { AddContactAdditionalEmailApplicationErrors, AddContactAdditionalEmailOptions, AddContactAdditionalEmailResponse, AddContactAdditionalPhoneApplicationErrors, AddContactAdditionalPhoneOptions, AddContactAdditionalPhoneResponse, AddContactAddressApplicationErrors, AddContactAddressOptions, AddContactAddressResponse, AdditionalEmail, AdditionalPhone, BulkCreateContactsOptions, BulkCreateContactsResponse, BulkDeleteContactsApplicationErrors, BulkDeleteContactsByFilterApplicationErrors, BulkDeleteContactsByFilterOptions, BulkDeleteContactsByFilterResponse, BulkDeleteContactsOptions, BulkDeleteContactsResponse, BulkRestoreContactsFromTrashBinOptions, BulkRestoreContactsFromTrashBinResponse, BulkUpdateContactSubscriptionsApplicationErrors, BulkUpdateContactSubscriptionsOptions, BulkUpdateContactSubscriptionsResponse, BulkUpdateContactTagsApplicationErrors, BulkUpdateContactTagsByFilterApplicationErrors, BulkUpdateContactTagsByFilterOptions, BulkUpdateContactTagsByFilterResponse, BulkUpdateContactTagsOptions, BulkUpdateContactTagsResponse, BulkUpdateContactsOptions, BulkUpdateContactsResponse, BulkUpdatePhoneCountryCodeByFilterOptions, BulkUpdatePhoneCountryCodeByFilterResponse, BulkUpsertContactsOptions, BulkUpsertContactsRequestMaskedContact, BulkUpsertContactsResponse, Contact, ContactAddress, ContactQuery, ContactSearch, ContactsQueryBuilder, CountContactsOptions, CountContactsResponse, CreateContactApplicationErrors, CreateContactOptions, DeleteContactAddressApplicationErrors, DeleteContactAddressIdentifiers, DeleteContactAddressResponse, DeleteContactApplicationErrors, DeleteContactOptions, FindMatchingContactsApplicationErrors, FindMatchingContactsOptions, FindMatchingContactsResponse, GenerateContactImageUploadUrlApplicationErrors, GenerateContactImageUploadUrlOptions, GenerateContactImageUploadUrlResponse, GetContactImageUploadStatusApplicationErrors, GetContactImageUploadStatusIdentifiers, GetContactImageUploadStatusResponse, GetDeletedContactResponse, ListDeletedContactsOptions, ListDeletedContactsResponse, MaskedContact, MergeContactsApplicationErrors, MergeContactsOptions, MergeContactsResponse, RestoreContactFromTrashBinResponse, SearchContactsOptions, SearchContactsResponse, UpdateContact, UpdateContactAddressApplicationErrors, UpdateContactAddressIdentifiers, UpdateContactAddressOptions, UpdateContactAddressResponse, UpdateContactApplicationErrors, UpdateContactOptions, UpdateContactTagsApplicationErrors, UpdateContactTagsOptions, UpdateContactTagsResponse, UpsertContactApplicationErrors, UpsertContactOptions, UpsertContactResponse, addContactAdditionalEmail, addContactAdditionalPhone, addContactAddress, bulkCreateContacts, bulkDeleteContacts, bulkDeleteContactsByFilter, bulkRestoreContactsFromTrashBin, bulkUpdateContactSubscriptions, bulkUpdateContactTags, bulkUpdateContactTagsByFilter, bulkUpdateContacts, bulkUpdatePhoneCountryCodeByFilter, bulkUpsertContacts, countContacts, createContact, deleteContact, deleteContactAddress, findMatchingContacts, generateContactImageUploadUrl, getContact, getContactImageUploadStatus, getDeletedContact, listDeletedContacts, mergeContacts, queryContacts, removeContactFromTrashBin, restoreContactFromTrashBin, searchContacts, updateContact, updateContactAddress, updateContactTags, upsertContact };
|
|
498
|
+
export { AddContactAdditionalEmailApplicationErrors, AddContactAdditionalEmailOptions, AddContactAdditionalEmailResponse, AddContactAdditionalPhoneApplicationErrors, AddContactAdditionalPhoneOptions, AddContactAdditionalPhoneResponse, AddContactAddressApplicationErrors, AddContactAddressOptions, AddContactAddressResponse, AdditionalEmail, AdditionalPhone, BulkCreateContactsOptions, BulkCreateContactsResponse, BulkDeleteContactsApplicationErrors, BulkDeleteContactsByFilterApplicationErrors, BulkDeleteContactsByFilterOptions, BulkDeleteContactsByFilterResponse, BulkDeleteContactsOptions, BulkDeleteContactsResponse, BulkRestoreContactsFromTrashBinOptions, BulkRestoreContactsFromTrashBinResponse, BulkUpdateContactSubscriptionsApplicationErrors, BulkUpdateContactSubscriptionsOptions, BulkUpdateContactSubscriptionsResponse, BulkUpdateContactTagsApplicationErrors, BulkUpdateContactTagsByFilterApplicationErrors, BulkUpdateContactTagsByFilterOptions, BulkUpdateContactTagsByFilterResponse, BulkUpdateContactTagsOptions, BulkUpdateContactTagsResponse, BulkUpdateContactsOptions, BulkUpdateContactsResponse, BulkUpdatePhoneCountryCodeByFilterOptions, BulkUpdatePhoneCountryCodeByFilterResponse, BulkUpsertContactsOptions, BulkUpsertContactsRequestMaskedContact, BulkUpsertContactsResponse, Contact, ContactAddress, ContactQuery, ContactSearch, ContactsQueryBuilder, CountContactsOptions, CountContactsResponse, CreateContactApplicationErrors, CreateContactOptions, DeleteContactAddressApplicationErrors, DeleteContactAddressIdentifiers, DeleteContactAddressResponse, DeleteContactApplicationErrors, DeleteContactOptions, FindMatchingContactsApplicationErrors, FindMatchingContactsOptions, FindMatchingContactsResponse, GenerateContactImageUploadUrlApplicationErrors, GenerateContactImageUploadUrlOptions, GenerateContactImageUploadUrlResponse, GetContactImageUploadStatusApplicationErrors, GetContactImageUploadStatusIdentifiers, GetContactImageUploadStatusResponse, GetDeletedContactResponse, ListDeletedContactsOptions, ListDeletedContactsResponse, MaskedContact, MergeContactsApplicationErrors, MergeContactsOptions, MergeContactsResponse, RestoreContactFromTrashBinResponse, SearchContactsOptions, SearchContactsResponse, UpdateContact, UpdateContactAddress, UpdateContactAddressApplicationErrors, UpdateContactAddressIdentifiers, UpdateContactAddressOptions, UpdateContactAddressResponse, UpdateContactApplicationErrors, UpdateContactOptions, UpdateContactTagsApplicationErrors, UpdateContactTagsOptions, UpdateContactTagsResponse, UpsertContactApplicationErrors, UpsertContactOptions, UpsertContactResponse, addContactAdditionalEmail, addContactAdditionalPhone, addContactAddress, bulkCreateContacts, bulkDeleteContacts, bulkDeleteContactsByFilter, bulkRestoreContactsFromTrashBin, bulkUpdateContactSubscriptions, bulkUpdateContactTags, bulkUpdateContactTagsByFilter, bulkUpdateContacts, bulkUpdatePhoneCountryCodeByFilter, bulkUpsertContacts, countContacts, createContact, deleteContact, deleteContactAddress, findMatchingContacts, generateContactImageUploadUrl, getContact, getContactImageUploadStatus, getDeletedContact, listDeletedContacts, mergeContacts, queryContacts, removeContactFromTrashBin, restoreContactFromTrashBin, searchContacts, updateContact, updateContactAddress, updateContactTags, upsertContact };
|
package/build/cjs/index.js
CHANGED
|
@@ -2690,7 +2690,7 @@ async function updateContactAddress2(identifiers, address, options) {
|
|
|
2690
2690
|
const payload = (0, import_transform_paths2.transformPaths)(
|
|
2691
2691
|
(0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2692
2692
|
contactId: identifiers?.contactId,
|
|
2693
|
-
address,
|
|
2693
|
+
address: { ...address, id: identifiers?.addressId },
|
|
2694
2694
|
revision: options?.revision
|
|
2695
2695
|
}),
|
|
2696
2696
|
[
|
|
@@ -2724,10 +2724,10 @@ async function updateContactAddress2(identifiers, address, options) {
|
|
|
2724
2724
|
const transformedError = (0, import_transform_error.transformError)(
|
|
2725
2725
|
err,
|
|
2726
2726
|
{
|
|
2727
|
-
spreadPathsToArguments: {},
|
|
2727
|
+
spreadPathsToArguments: { address: "$[1]" },
|
|
2728
2728
|
explicitPathsToArguments: {
|
|
2729
2729
|
contactId: "$[0].contactId",
|
|
2730
|
-
address: "$[
|
|
2730
|
+
"address.id": "$[0].addressId",
|
|
2731
2731
|
revision: "$[2].revision"
|
|
2732
2732
|
},
|
|
2733
2733
|
singleArgumentUnchanged: false
|