import * as _wix_sdk_types from '@wix/sdk-types'; import { QuerySpec, Query, NonNullablePaths } from '@wix/sdk-types'; interface ReferredFriend { /** * ID of the referred friend. * @format GUID * @readonly */ _id?: string; /** * Contact ID of the referred friend. * @format GUID * @readonly */ contactId?: string; /** * ID of the customer who referred this friend. * @format GUID * @readonly */ referringCustomerId?: string; /** Status of the referred friend. */ status?: StatusWithLiterals; /** * Revision number, which increments by 1 each time the referred friend is updated. * To prevent conflicting changes, the current revision must be passed when updating the referred friend. * @readonly * @immutable */ revision?: string | null; /** * Date and time the referred friend was created. * @readonly */ _createdDate?: Date | null; /** * Date and time the referred friend was last updated. * @readonly */ _updatedDate?: Date | null; } declare enum Status { /** Unknown status. */ UNKNOWN = "UNKNOWN", /** Initial status when the referred friend joins the site as a member. */ SIGN_UP_COMPLETED = "SIGN_UP_COMPLETED", /** Status after the referred friend completes a specific action, such as making a purchase. */ ACTIONS_COMPLETED = "ACTIONS_COMPLETED" } /** @enumType */ type StatusWithLiterals = Status | 'UNKNOWN' | 'SIGN_UP_COMPLETED' | 'ACTIONS_COMPLETED'; interface CreateReferredFriendRequest { /** * Referral code for the referred friend. * @minLength 12 * @maxLength 12 */ referralCode?: string | null; } interface CreateReferredFriendResponse { /** Created referred friend. */ referredFriend?: ReferredFriend; } interface GetReferredFriendRequest { /** * ID of the referred friend to retrieve. * @format GUID */ referredFriendId: string; } interface GetReferredFriendResponse { /** Retrieved referred friend. */ referredFriend?: ReferredFriend; } interface GetReferredFriendByContactIdRequest { /** * Contact ID or "me" to get the current identity's contact. * @minLength 2 */ contactId: string; } interface GetReferredFriendByContactIdResponse { /** Retrieved referred friend. */ referredFriend?: ReferredFriend; } interface UpdateReferredFriendRequest { /** Referred friend to be updated. May be partial. */ referredFriend: ReferredFriend; } interface UpdateReferredFriendResponse { /** Updated referred friend. */ referredFriend?: ReferredFriend; } interface DeleteReferredFriendRequest { /** * ID of the referred friend to delete. * @format GUID */ referredFriendId: string; /** * Revision number, which increments by 1 each time the referred friend is updated. * To prevent conflicting changes, the current revision must be passed when deleting the referred friend. */ revision?: string; } interface DeleteReferredFriendResponse { } interface QueryReferredFriendRequest { /** Query options. */ query: CursorQuery; } interface CursorQuery extends CursorQueryPagingMethodOneOf { /** * Cursor paging options. * * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging). */ cursorPaging?: CursorPaging; /** * Filter object. * * Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters). */ filter?: Record | null; /** * Sort object. * * Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting). * @maxSize 5 */ sort?: Sorting[]; } /** @oneof */ interface CursorQueryPagingMethodOneOf { /** * Cursor paging options. * * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging). */ cursorPaging?: CursorPaging; } interface Sorting { /** * Name of the field to sort by. * @maxLength 512 */ fieldName?: string; /** Sort order. */ order?: SortOrderWithLiterals; /** * Origin point for geo-distance sorting on a GEO field * results are ordered by distance from this point (ASC = nearest first, DESC = farthest first). */ origin?: AddressLocation; } declare enum SortOrder { ASC = "ASC", DESC = "DESC" } /** @enumType */ type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC'; interface AddressLocation { /** Address latitude. */ latitude?: number | null; /** Address longitude. */ longitude?: number | null; } interface CursorPaging { /** * Maximum number of items to return in the results. * @max 100 */ limit?: number | null; /** * Pointer to the next or previous page in the list of results. * * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response. * Not relevant for the first request. * @maxLength 16000 */ cursor?: string | null; } interface QueryReferredFriendResponse { /** Retrieved referred friends. */ referredFriends?: ReferredFriend[]; /** Cursor paging metadata. */ metadata?: CursorPagingMetadata; } interface CursorPagingMetadata { /** Number of items returned in current page. */ count?: number | null; /** Cursor strings that point to the next page, previous page, or both. */ cursors?: Cursors; /** * Whether there are more pages to retrieve following the current page. * * + `true`: Another page of results can be retrieved. * + `false`: This is the last page. */ hasNext?: boolean | null; } interface Cursors { /** * Cursor string pointing to the next page in the list of results. * @maxLength 16000 */ next?: string | null; /** * Cursor pointing to the previous page in the list of results. * @maxLength 16000 */ prev?: string | null; } interface DomainEvent extends DomainEventBodyOneOf { createdEvent?: EntityCreatedEvent; updatedEvent?: EntityUpdatedEvent; deletedEvent?: EntityDeletedEvent; actionEvent?: ActionEvent; /** Event ID. With this ID you can easily spot duplicated events and ignore them. */ _id?: string; /** * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities. * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`. */ entityFqdn?: string; /** * Event action name, placed at the top level to make it easier for users to dispatch messages. * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`. */ slug?: string; /** ID of the entity associated with the event. */ entityId?: string; /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */ eventTime?: Date | null; /** * Whether the event was triggered as a result of a privacy regulation application * (for example, GDPR). */ triggeredByAnonymizeRequest?: boolean | null; /** If present, indicates the action that triggered the event. */ originatedFrom?: string | null; /** * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number. * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it. */ entityEventSequence?: string | null; } /** @oneof */ interface DomainEventBodyOneOf { createdEvent?: EntityCreatedEvent; updatedEvent?: EntityUpdatedEvent; deletedEvent?: EntityDeletedEvent; actionEvent?: ActionEvent; } interface EntityCreatedEvent { entity?: string; } interface RestoreInfo { deletedDate?: Date | null; } interface EntityUpdatedEvent { /** * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff. * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects. * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it. */ currentEntity?: string; } interface EntityDeletedEvent { /** Entity that was deleted. */ deletedEntity?: string | null; } interface ActionEvent { body?: string; } interface Empty { } interface SuccessfulReferralEvent { /** Details of the referred friend who completed their referral. */ referredFriendDetails?: ReferredFriendDetails; } interface ReferredFriendDetails { /** * ID of the referred friend. * @format GUID * @readonly */ referredFriendId?: string; /** * Contact ID of the referred friend. * @format GUID * @readonly */ contactId?: string; /** * ID of the customer who referred this friend. * @format GUID * @readonly */ referringCustomerId?: string; } interface MessageEnvelope { /** * App instance ID. * @format GUID */ instanceId?: string | null; /** * Event type. * @maxLength 150 */ eventType?: string; /** The identification type and identity data. */ identity?: IdentificationData; /** Stringify payload. */ data?: string; /** Details related to the account */ accountInfo?: AccountInfo; } interface IdentificationData extends IdentificationDataIdOneOf { /** * ID of a site visitor that has not logged in to the site. * @format GUID */ anonymousVisitorId?: string; /** * ID of a site visitor that has logged in to the site. * @format GUID */ memberId?: string; /** * ID of a Wix user (site owner, contributor, etc.). * @format GUID */ wixUserId?: string; /** * ID of an app. * @format GUID */ appId?: string; /** @readonly */ identityType?: WebhookIdentityTypeWithLiterals; } /** @oneof */ interface IdentificationDataIdOneOf { /** * ID of a site visitor that has not logged in to the site. * @format GUID */ anonymousVisitorId?: string; /** * ID of a site visitor that has logged in to the site. * @format GUID */ memberId?: string; /** * ID of a Wix user (site owner, contributor, etc.). * @format GUID */ wixUserId?: string; /** * ID of an app. * @format GUID */ appId?: string; } declare enum WebhookIdentityType { UNKNOWN = "UNKNOWN", ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR", MEMBER = "MEMBER", WIX_USER = "WIX_USER", APP = "APP" } /** @enumType */ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP'; interface AccountInfo { /** * ID of the Wix account associated with the event. * @format GUID */ accountId?: string | null; /** * ID of the parent Wix account. Only included when accountId belongs to a child account. * @format GUID */ parentAccountId?: string | null; /** * ID of the Wix site associated with the event. Only included when the event is tied to a specific site. * @format GUID */ siteId?: string | null; } /** @docsIgnore */ type CreateReferredFriendApplicationErrors = { code?: 'MEMBER_NOT_ELIGIBLE'; description?: string; data?: Record; }; interface BaseEventMetadata { /** * App instance ID. * @format GUID */ instanceId?: string | null; /** * Event type. * @maxLength 150 */ eventType?: string; /** The identification type and identity data. */ identity?: IdentificationData; /** Details related to the account */ accountInfo?: AccountInfo; } interface EventMetadata extends BaseEventMetadata { /** Event ID. With this ID you can easily spot duplicated events and ignore them. */ _id?: string; /** * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities. * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`. */ entityFqdn?: string; /** * Event action name, placed at the top level to make it easier for users to dispatch messages. * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`. */ slug?: string; /** ID of the entity associated with the event. */ entityId?: string; /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */ eventTime?: Date | null; /** * Whether the event was triggered as a result of a privacy regulation application * (for example, GDPR). */ triggeredByAnonymizeRequest?: boolean | null; /** If present, indicates the action that triggered the event. */ originatedFrom?: string | null; /** * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number. * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it. */ entityEventSequence?: string | null; accountInfo?: AccountInfoMetadata; } interface AccountInfoMetadata { /** ID of the Wix account associated with the event */ accountId: string; /** ID of the Wix site associated with the event. Only included when the event is tied to a specific site. */ siteId?: string; /** ID of the parent Wix account. Only included when 'accountId' belongs to a child account. */ parentAccountId?: string; } interface ReferredFriendCreatedEnvelope { entity: ReferredFriend; metadata: EventMetadata; } /** * Triggered when a referred friend is created. * @permissionScope Manage Restaurants - all permissions * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES * @permissionScope Manage Referrals * @permissionScopeId SCOPE.DC-REFERRALS.MANAGE-REFERRALS * @permissionId REFERRALS.READ_REFERRED_FRIENDS * @webhook * @eventType wix.loyalty.referral.v1.referred_friend_created * @serviceIdentifier wix.loyalty.referral.friend.v1.ReferredFriends * @slug created */ declare function onReferredFriendCreated(handler: (event: ReferredFriendCreatedEnvelope) => void | Promise): void; interface ReferredFriendDeletedEnvelope { metadata: EventMetadata; } /** * Triggered when a referred friend is deleted. * @permissionScope Manage Restaurants - all permissions * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES * @permissionScope Manage Referrals * @permissionScopeId SCOPE.DC-REFERRALS.MANAGE-REFERRALS * @permissionId REFERRALS.MANAGE_REFERRED_FRIENDS * @webhook * @eventType wix.loyalty.referral.v1.referred_friend_deleted * @serviceIdentifier wix.loyalty.referral.friend.v1.ReferredFriends * @slug deleted */ declare function onReferredFriendDeleted(handler: (event: ReferredFriendDeletedEnvelope) => void | Promise): void; interface ReferredFriendUpdatedEnvelope { entity: ReferredFriend; metadata: EventMetadata; } /** * Triggered when a referred friend is updated. * @permissionScope Manage Restaurants - all permissions * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES * @permissionScope Manage Referrals * @permissionScopeId SCOPE.DC-REFERRALS.MANAGE-REFERRALS * @permissionId REFERRALS.MANAGE_REFERRED_FRIENDS * @webhook * @eventType wix.loyalty.referral.v1.referred_friend_updated * @serviceIdentifier wix.loyalty.referral.friend.v1.ReferredFriends * @slug updated */ declare function onReferredFriendUpdated(handler: (event: ReferredFriendUpdatedEnvelope) => void | Promise): void; /** * Creates a new referred friend or returns an existing entity if it already exists. * * This method must be called with a [member identity](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities#site-members). * * A referral code must be provided either in the request or via scope. * * The member must be eligible to become a referred friend. * @public * @permissionId REFERRALS.CREATE_OWN_REFERRED_FRIEND * @applicableIdentity APP * @applicableIdentity MEMBER * @fqn wix.loyalty.referral.friend.v1.ReferredFriends.CreateReferredFriend */ declare function createReferredFriend(options?: CreateReferredFriendOptions): Promise & { __applicationErrorsType?: CreateReferredFriendApplicationErrors; }>; interface CreateReferredFriendOptions { /** * Referral code for the referred friend. * @minLength 12 * @maxLength 12 */ referralCode?: string | null; } /** * Retrieves a referred friend by ID. * @param referredFriendId - ID of the referred friend to retrieve. * @public * @requiredField referredFriendId * @permissionId REFERRALS.READ_REFERRED_FRIENDS * @applicableIdentity APP * @returns Retrieved referred friend. * @fqn wix.loyalty.referral.friend.v1.ReferredFriends.GetReferredFriend */ declare function getReferredFriend(referredFriendId: string): Promise>; /** * Retrieves a referred friend by contact ID. * * You can use `me` instead of a specific contact ID to get the referred friend for the current identity's contact. * @param contactId - Contact ID or "me" to get the current identity's contact. * @public * @requiredField contactId * @permissionId REFERRALS.READ_REFERRED_FRIENDS * @applicableIdentity APP * @fqn wix.loyalty.referral.friend.v1.ReferredFriends.GetReferredFriendByContactId */ declare function getReferredFriendByContactId(contactId: string): Promise>; /** * Updates a referred friend. Supports partial updates. * * You must pass the latest `revision` for a successful update. * @param _id - ID of the referred friend. * @public * @requiredField _id * @requiredField referredFriend * @requiredField referredFriend.contactId * @requiredField referredFriend.referringCustomerId * @requiredField referredFriend.revision * @permissionId REFERRALS.MANAGE_REFERRED_FRIENDS * @applicableIdentity APP * @returns Updated referred friend. * @fqn wix.loyalty.referral.friend.v1.ReferredFriends.UpdateReferredFriend */ declare function updateReferredFriend(_id: string, referredFriend: NonNullablePaths): Promise>; interface UpdateReferredFriend { /** * ID of the referred friend. * @format GUID * @readonly */ _id?: string; /** * Contact ID of the referred friend. * @format GUID * @readonly */ contactId?: string; /** * ID of the customer who referred this friend. * @format GUID * @readonly */ referringCustomerId?: string; /** Status of the referred friend. */ status?: StatusWithLiterals; /** * Revision number, which increments by 1 each time the referred friend is updated. * To prevent conflicting changes, the current revision must be passed when updating the referred friend. * @readonly * @immutable */ revision?: string | null; /** * Date and time the referred friend was created. * @readonly */ _createdDate?: Date | null; /** * Date and time the referred friend was last updated. * @readonly */ _updatedDate?: Date | null; } /** * Deletes a referred friend. * @param referredFriendId - ID of the referred friend to delete. * @public * @requiredField referredFriendId * @permissionId REFERRALS.MANAGE_REFERRED_FRIENDS * @applicableIdentity APP * @fqn wix.loyalty.referral.friend.v1.ReferredFriends.DeleteReferredFriend */ declare function deleteReferredFriend(referredFriendId: string, options?: DeleteReferredFriendOptions): Promise; interface DeleteReferredFriendOptions { /** * Revision number, which increments by 1 each time the referred friend is updated. * To prevent conflicting changes, the current revision must be passed when deleting the referred friend. */ revision?: string; } /** * Creates a query to retrieve a list of referred friends. * * The `queryReferredFriend()` function builds a query to retrieve a list of events and returns a `ReferredFriendsQueryBuilder` object. * * The returned object contains the query definition, which is typically used to run the query using the `find()` function. * * You can refine the query by chaining `ReferredFriendsQueryBuilder` functions onto the query. `ReferredFriendsQueryBuilder` functions enable you to sort, filter, and control the results `queryReferredFriend()` returns. * * `queryReferredFriend()` runs with these `ReferredFriendQueryBuilder` defaults, which you can override: * * - `limit(50)` * - `descending("_createdDate")` * * The functions that are chained to `queryReferredFriend()` are applied in the order they're called. For example, if you apply ascending('status') and then descending('referringCustomerId'), the results are sorted first by the status, and then, if there are multiple results with the same status, the items are sorted by referring customer ID. * @public * @permissionId REFERRALS.READ_REFERRED_FRIENDS * @applicableIdentity APP * @fqn wix.loyalty.referral.friend.v1.ReferredFriends.QueryReferredFriend */ declare function queryReferredFriend(): ReferredFriendsQueryBuilder; interface QueryCursorResult { cursors: Cursors; hasNext: () => boolean; hasPrev: () => boolean; length: number; pageSize: number; } interface ReferredFriendsQueryResult extends QueryCursorResult { items: ReferredFriend[]; query: ReferredFriendsQueryBuilder; next: () => Promise; prev: () => Promise; } interface ReferredFriendsQueryBuilder { /** @param propertyName - Property whose value is compared with `value`. * @param value - Value to compare against. */ eq: (propertyName: 'referringCustomerId' | 'status' | '_createdDate' | '_updatedDate', value: any) => ReferredFriendsQueryBuilder; /** @param propertyName - Property whose value is compared with `value`. * @param value - Value to compare against. */ ne: (propertyName: 'referringCustomerId' | 'status' | '_createdDate' | '_updatedDate', value: any) => ReferredFriendsQueryBuilder; /** @param propertyName - Property whose value is compared with `value`. * @param value - Value to compare against. */ ge: (propertyName: 'referringCustomerId' | '_createdDate' | '_updatedDate', value: any) => ReferredFriendsQueryBuilder; /** @param propertyName - Property whose value is compared with `value`. * @param value - Value to compare against. */ gt: (propertyName: 'referringCustomerId' | '_createdDate' | '_updatedDate', value: any) => ReferredFriendsQueryBuilder; /** @param propertyName - Property whose value is compared with `value`. * @param value - Value to compare against. */ le: (propertyName: 'referringCustomerId' | '_createdDate' | '_updatedDate', value: any) => ReferredFriendsQueryBuilder; /** @param propertyName - Property whose value is compared with `value`. * @param value - Value to compare against. */ lt: (propertyName: 'referringCustomerId' | '_createdDate' | '_updatedDate', value: any) => ReferredFriendsQueryBuilder; /** @param propertyName - Property whose value is compared with `string`. * @param string - String to compare against. Case-insensitive. */ startsWith: (propertyName: 'referringCustomerId', value: string) => ReferredFriendsQueryBuilder; in: (propertyName: 'referringCustomerId' | 'status' | '_createdDate' | '_updatedDate', value: any) => ReferredFriendsQueryBuilder; exists: (propertyName: 'referringCustomerId' | 'status' | '_createdDate' | '_updatedDate', value: boolean) => ReferredFriendsQueryBuilder; /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */ ascending: (...propertyNames: Array<'referringCustomerId' | 'status' | '_createdDate' | '_updatedDate'>) => ReferredFriendsQueryBuilder; /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */ descending: (...propertyNames: Array<'referringCustomerId' | 'status' | '_createdDate' | '_updatedDate'>) => ReferredFriendsQueryBuilder; /** @param limit - Number of items to return, which is also the `pageSize` of the results object. */ limit: (limit: number) => ReferredFriendsQueryBuilder; /** @param cursor - A pointer to specific record */ skipTo: (cursor: string) => ReferredFriendsQueryBuilder; find: () => Promise; } /** * @hidden * @fqn wix.loyalty.referral.friend.v1.ReferredFriends.QueryReferredFriend * @requiredField query */ declare function typedQueryReferredFriend(query: ReferredFriendQuery): Promise>; interface ReferredFriendQuerySpec extends QuerySpec { paging: 'cursor'; wql: [ { fields: ['_createdDate', '_updatedDate', 'referringCustomerId', 'status']; operators: '*'; sort: 'BOTH'; } ]; } type CommonQueryWithEntityContext = Query; type ReferredFriendQuery = { /** Cursor paging options. Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging). */ cursorPaging?: { /** Maximum number of items to return in the results. @max: 100 */ limit?: NonNullable['limit'] | null; /** Pointer to the next or previous page in the list of results. Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response. Not relevant for the first request. @maxLength: 16000 */ cursor?: NonNullable['cursor'] | null; }; /** Filter object. Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters). */ filter?: CommonQueryWithEntityContext['filter'] | null; /** Sort object. Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting). @maxSize: 5 */ sort?: { /** Name of the field to sort by. @maxLength: 512 */ fieldName?: NonNullable[number]['fieldName']; /** Sort order. */ order?: NonNullable[number]['order']; /** Origin point for geo-distance sorting on a GEO field results are ordered by distance from this point (ASC = nearest first, DESC = farthest first). */ origin?: NonNullable[number]['origin']; }[]; }; declare const utils: { query: _wix_sdk_types.QueryHelpers; }; export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, type AddressLocation, type BaseEventMetadata, type CommonQueryWithEntityContext, type CreateReferredFriendApplicationErrors, type CreateReferredFriendOptions, type CreateReferredFriendRequest, type CreateReferredFriendResponse, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type DeleteReferredFriendOptions, type DeleteReferredFriendRequest, type DeleteReferredFriendResponse, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type GetReferredFriendByContactIdRequest, type GetReferredFriendByContactIdResponse, type GetReferredFriendRequest, type GetReferredFriendResponse, type IdentificationData, type IdentificationDataIdOneOf, type MessageEnvelope, type QueryReferredFriendRequest, type QueryReferredFriendResponse, type ReferredFriend, type ReferredFriendCreatedEnvelope, type ReferredFriendDeletedEnvelope, type ReferredFriendDetails, type ReferredFriendQuery, type ReferredFriendQuerySpec, type ReferredFriendUpdatedEnvelope, type ReferredFriendsQueryBuilder, type ReferredFriendsQueryResult, type RestoreInfo, SortOrder, type SortOrderWithLiterals, type Sorting, Status, type StatusWithLiterals, type SuccessfulReferralEvent, type UpdateReferredFriend, type UpdateReferredFriendRequest, type UpdateReferredFriendResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, createReferredFriend, deleteReferredFriend, getReferredFriend, getReferredFriendByContactId, onReferredFriendCreated, onReferredFriendDeleted, onReferredFriendUpdated, queryReferredFriend, typedQueryReferredFriend, updateReferredFriend, utils };