import { GetReferralEventRequest as GetReferralEventRequest$1, GetReferralEventResponse as GetReferralEventResponse$1, QueryReferralEventRequest as QueryReferralEventRequest$1, QueryReferralEventResponse as QueryReferralEventResponse$1, GetReferralStatisticsRequest as GetReferralStatisticsRequest$1, GetReferralStatisticsResponse as GetReferralStatisticsResponse$1, QueryReferringCustomerTotalsRequest as QueryReferringCustomerTotalsRequest$1, QueryReferringCustomerTotalsResponse as QueryReferringCustomerTotalsResponse$1, QueryReferredFriendActionsRequest as QueryReferredFriendActionsRequest$1, QueryReferredFriendActionsResponse as QueryReferredFriendActionsResponse$1 } from './index.typings.js'; import '@wix/sdk-types'; interface ReferralEvent extends ReferralEventEventTypeOneOf { /** Event triggered when a referred friend signs up. */ referredFriendSignupEvent?: ReferredFriendSignupEvent; /** Event triggered when a referral is successful. For example, customer places and pays for an order. */ successfulReferralEvent?: V1SuccessfulReferralEvent; /** Event triggered when an action is performed. For example, placing an order. */ actionEvent?: V1ActionEvent; /** Event triggered when a reward is given. */ rewardEvent?: RewardEvent; /** * Referral event ID. * @format GUID * @readonly */ id?: string | null; /** * Revision number, which increments by 1 each time the referral event is updated. * To prevent conflicting changes, the current revision must be passed when updating the referral event. * @immutable */ revision?: string | null; /** * Date and time the referral event was created. * @readonly */ createdDate?: Date | null; /** * Date and time the referral event was last updated. * @readonly */ updatedDate?: Date | null; } /** @oneof */ interface ReferralEventEventTypeOneOf { /** Event triggered when a referred friend signs up. */ referredFriendSignupEvent?: ReferredFriendSignupEvent; /** Event triggered when a referral is successful. For example, customer places and pays for an order. */ successfulReferralEvent?: V1SuccessfulReferralEvent; /** Event triggered when an action is performed. For example, placing an order. */ actionEvent?: V1ActionEvent; /** Event triggered when a reward is given. */ rewardEvent?: RewardEvent; } interface ReferredFriendSignupEvent { /** * ID of the referred friend. * @format GUID */ referredFriendId?: string; } interface V1SuccessfulReferralEvent { /** * ID of the referred friend. * @format GUID */ referredFriendId?: string; /** * ID of the referring customer. * @format GUID */ referringCustomerId?: string; } interface V1ActionEvent { /** * ID of the referred friend. * @format GUID */ referredFriendId?: string; /** * ID of the referring customer. * @format GUID */ referringCustomerId?: string; /** Trigger for the action. */ trigger?: V1Trigger; /** Amount associated with the action. */ amount?: string | null; /** Currency of the amount. */ currency?: string | null; /** ID of the associated order. */ orderId?: string | null; } interface V1Trigger { /** ID of the app that triggered the event. */ appId?: string; /** Type of activity that triggered the event. */ activityType?: string; } interface RewardEvent extends RewardEventReceiverOneOf { /** * ID of the rewarded referring customer. * @format GUID * @readonly */ rewardedReferringCustomerId?: string; /** * ID of the rewarded referred friend. * @format GUID * @readonly */ rewardedReferredFriendId?: string; /** * ID of the referral reward. * @format GUID */ referralRewardId?: string; /** Type of reward. */ rewardType?: RewardWithLiterals; } /** @oneof */ interface RewardEventReceiverOneOf { /** * ID of the rewarded referring customer. * @format GUID * @readonly */ rewardedReferringCustomerId?: string; /** * ID of the rewarded referred friend. * @format GUID * @readonly */ rewardedReferredFriendId?: string; } declare enum Reward { /** Unknown reward. This field is not used. */ UNKNOWN = "UNKNOWN", /** Reward is a coupon. */ COUPON = "COUPON", /** Reward is loyalty points. */ LOYALTY_POINTS = "LOYALTY_POINTS", /** No reward. */ NOTHING = "NOTHING" } /** @enumType */ type RewardWithLiterals = Reward | 'UNKNOWN' | 'COUPON' | 'LOYALTY_POINTS' | 'NOTHING'; interface CreateReferralEventRequest { /** Referral event to create. */ referralEvent?: ReferralEvent; } interface CreateReferralEventResponse { /** Created referral event. */ referralEvent?: ReferralEvent; } interface GetReferralEventRequest { /** * ID of the referral event to retrieve. * @format GUID */ referralEventId: string; } interface GetReferralEventResponse { /** Retrieved referral event. */ referralEvent?: ReferralEvent; } interface QueryReferralEventRequest { /** Query to filter referral events. */ 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; } declare enum SortOrder { ASC = "ASC", DESC = "DESC" } /** @enumType */ type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC'; 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 QueryReferralEventResponse { /** List of referral events. */ referralEvents?: ReferralEvent[]; /** Metadata for the paginated results. */ 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 GetReferralStatisticsRequest { } interface GetReferralStatisticsResponse { /** Total number of sign-ups completed by referred friends. */ totalSignUpsCompleted?: number; /** Total number of actions completed by referred friends. */ totalActionsCompleted?: number; /** Total amount of purchases made by referred friends. */ totalAmountGenerated?: string; } interface QueryReferringCustomerTotalsRequest { /** Query to filter referring customer totals. */ query?: CursorQuery; /** * List of contact IDs to filter referring customer totals. * @format GUID */ contactIds?: string[]; } interface QueryReferringCustomerTotalsResponse { referringCustomerTotals?: ReferringCustomerTotal[]; /** Paging metadata. */ metadata?: CursorPagingMetadata; } interface ReferringCustomerTotal { /** * ID of the referring customer. * @format GUID * @readonly */ referringCustomerId?: string; /** * Contact ID. * @format GUID * @readonly */ contactId?: string; /** * Date and time of the last successful referral. * @readonly */ lastSuccessfulReferral?: Date | null; /** * Total number of successful referrals made by this customer. * @readonly */ totalSuccessfulReferrals?: number; /** * Total amount of revenue generated by friends referred by this customer. * @readonly */ totalAmountGenerated?: string; /** * Date and time of the last friend action. * @readonly */ lastFriendAction?: Date | null; /** * Number of friends who have completed actions. * @readonly */ totalFriendsWithActions?: number; } interface QueryReferredFriendActionsRequest { /** Query to filter referred friend actions. */ query?: CursorQuery; /** * List of contact IDs to filter referred friend actions. * @format GUID */ contactIds?: string[]; } interface QueryReferredFriendActionsResponse { /** List of referred friend actions matching the query. */ referredFriendActions?: ReferredFriendAction[]; /** Paging metadata. */ metadata?: CursorPagingMetadata; } interface ReferredFriendAction extends ReferredFriendActionRewardTypeOptionsOneOf { /** Coupon reward type options. */ coupon?: V1Coupon; /** Loyalty points reward type options. */ loyaltyPoints?: LoyaltyPoints; /** * Referred friend ID. * @format GUID * @readonly */ referredFriendId?: string; /** * Contact ID. * @format GUID * @readonly */ contactId?: string; /** * Trigger for the first action. * @readonly */ trigger?: V1Trigger; /** * Date and time of the first action. * @readonly */ actionDate?: Date | null; /** Type of issued reward. */ rewardType?: RewardWithLiterals; /** Number of actions completed. */ totalActions?: number; /** * Total amount spent by this referred friend. * @readonly */ totalAmountSpent?: string; /** * Date and time of friend signup. * @readonly */ signupDate?: Date | null; } /** @oneof */ interface ReferredFriendActionRewardTypeOptionsOneOf { /** Coupon reward type options. */ coupon?: V1Coupon; /** Loyalty points reward type options. */ loyaltyPoints?: LoyaltyPoints; } interface V1Coupon { /** * Coupon ID. Example: `8934b045-7052-4a90-be2b-832c70afc9da`. * @format GUID * @readonly */ id?: string; /** * The code that customers can use to apply the coupon. Example: `6RFD2A3HSPXW`. * @readonly */ code?: string; /** * Current status of the coupon. * @readonly */ status?: StatusWithLiterals; /** * Detailed specifications of the coupon. * @readonly */ couponSpecification?: Coupon; } declare enum Status { /** Coupon status is unknown or not specified. */ UNKNOWN = "UNKNOWN", /** Coupon is active and can be applied to purchases. */ ACTIVE = "ACTIVE", /** Coupon was applied and can't be used again. */ APPLIED = "APPLIED", /** Coupon was deleted and is no longer valid. */ DELETED = "DELETED" } /** @enumType */ type StatusWithLiterals = Status | 'UNKNOWN' | 'ACTIVE' | 'APPLIED' | 'DELETED'; interface Coupon extends CouponDiscountTypeOptionsOneOf, CouponScopeOrMinSubtotalOneOf { /** Options for fixed amount discount. */ fixedAmountOptions?: FixedAmountDiscount; /** Options for percentage discounts. */ percentageOptions?: PercentageDiscount; /** Limit the coupon to carts with a subtotal above this number. */ minimumSubtotal?: number; /** Specifies the type of line items this coupon will apply to. See [valid scope values](https://dev.wix.com/api/rest/coupons/coupons/valid-scope-values). */ scope?: CouponScope; /** * Coupon name. * @minLength 1 * @maxLength 50 */ name?: string; /** Coupon discount type. */ discountType?: DiscountTypeWithLiterals; /** * Whether the coupon is limited to one item. * If `true` and a customer pays for multiple items, the discount applies to only the lowest priced item. * Coupons with a bookings `scope.namespace` are always limited to one item. */ limitedToOneItem?: boolean | null; /** Whether the coupon applies to subscription products. */ appliesToSubscriptions?: boolean | null; /** * Specifies the amount of discounted cycles for a subscription item. * * - Can only be set when `scope.namespace = pricingPlans`. * - If `discountedCycleCount` is empty, the coupon applies to all available cycles. * - `discountedCycleCount` is ignored if `appliesToSubscriptions = true`. * * Max: `999` */ discountedCycleCount?: number | null; } /** @oneof */ interface CouponDiscountTypeOptionsOneOf { /** Options for fixed amount discount. */ fixedAmountOptions?: FixedAmountDiscount; /** Options for percentage discounts. */ percentageOptions?: PercentageDiscount; } /** @oneof */ interface CouponScopeOrMinSubtotalOneOf { /** Limit the coupon to carts with a subtotal above this number. */ minimumSubtotal?: number; /** Specifies the type of line items this coupon will apply to. See [valid scope values](https://dev.wix.com/api/rest/coupons/coupons/valid-scope-values). */ scope?: CouponScope; } declare enum DiscountType { /** Unknown discount type. */ UNKNOWN = "UNKNOWN", /** Discount as a fixed amount. */ FIXED_AMOUNT = "FIXED_AMOUNT", /** Discount as a percentage. */ PERCENTAGE = "PERCENTAGE", /** Free shipping. If `true`, the coupon applies to all items in all `namespaces`. */ FREE_SHIPPING = "FREE_SHIPPING" } /** @enumType */ type DiscountTypeWithLiterals = DiscountType | 'UNKNOWN' | 'FIXED_AMOUNT' | 'PERCENTAGE' | 'FREE_SHIPPING'; interface FixedAmountDiscount { /** * Amount of the discount as a fixed value. * @min 0.01 */ amount?: number; } interface PercentageDiscount { /** * Percentage of discount. * @max 100 */ percentage?: number; } interface CouponScope { /** Scope namespace (Wix Stores, Wix Bookings, Wix Events, Wix Pricing Plans) */ namespace?: string; /** Coupon scope's applied group, for example, Event or ticket in Wix Events. */ group?: Group; } interface Group { /** Name of the group. */ name?: string; /** Entity ID of the group. */ entityId?: string | null; } interface LoyaltyPoints { /** * Loyalty transaction ID. * @format GUID * @readonly */ transactionId?: string; /** * The number of loyalty points awarded. * @readonly */ amount?: number; } interface ReprocessReferralEventsRequest extends ReprocessReferralEventsRequestEntityOneOf { /** * ID of the referring customer. * @format GUID */ referringCustomerId?: string; /** * ID of the referred friend. * @format GUID */ referredFriendId?: string; } /** @oneof */ interface ReprocessReferralEventsRequestEntityOneOf { /** * ID of the referring customer. * @format GUID */ referringCustomerId?: string; /** * ID of the referred friend. * @format GUID */ referredFriendId?: string; } interface ReprocessReferralEventsResponse { } 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 { entityAsJson?: string; /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */ restoreInfo?: RestoreInfo; } 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. */ currentEntityAsJson?: string; } interface EntityDeletedEvent { /** Entity that was deleted. */ deletedEntityAsJson?: string | null; } interface ActionEvent { bodyAsJson?: 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 ReferredFriendActionEvent { /** Details of the referred friend. */ referredFriendDetails?: ReferredFriendDetails; /** Details of the trigger. */ trigger?: Trigger; /** Amount of the referral reward. */ amount?: string | null; /** Currency of the referral reward. */ currency?: string | null; /** ID of the order associated with the referral. */ orderId?: string | null; } interface Trigger { /** ID of the app associated with the referral activity. */ appId?: string; /** Type of referral activity. */ activityType?: 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; } type __PublicMethodMetaInfo = { getUrl: (context: any) => string; httpMethod: K; path: string; pathParams: M; __requestType: T; __originalRequestType: S; __responseType: Q; __originalResponseType: R; }; declare function getReferralEvent(): __PublicMethodMetaInfo<'GET', { referralEventId: string; }, GetReferralEventRequest$1, GetReferralEventRequest, GetReferralEventResponse$1, GetReferralEventResponse>; declare function queryReferralEvent(): __PublicMethodMetaInfo<'POST', {}, QueryReferralEventRequest$1, QueryReferralEventRequest, QueryReferralEventResponse$1, QueryReferralEventResponse>; declare function getReferralStatistics(): __PublicMethodMetaInfo<'GET', {}, GetReferralStatisticsRequest$1, GetReferralStatisticsRequest, GetReferralStatisticsResponse$1, GetReferralStatisticsResponse>; declare function queryReferringCustomerTotals(): __PublicMethodMetaInfo<'POST', {}, QueryReferringCustomerTotalsRequest$1, QueryReferringCustomerTotalsRequest, QueryReferringCustomerTotalsResponse$1, QueryReferringCustomerTotalsResponse>; declare function queryReferredFriendActions(): __PublicMethodMetaInfo<'POST', {}, QueryReferredFriendActionsRequest$1, QueryReferredFriendActionsRequest, QueryReferredFriendActionsResponse$1, QueryReferredFriendActionsResponse>; export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type CouponDiscountTypeOptionsOneOf as CouponDiscountTypeOptionsOneOfOriginal, type Coupon as CouponOriginal, type CouponScopeOrMinSubtotalOneOf as CouponScopeOrMinSubtotalOneOfOriginal, type CouponScope as CouponScopeOriginal, type CreateReferralEventRequest as CreateReferralEventRequestOriginal, type CreateReferralEventResponse as CreateReferralEventResponseOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, DiscountType as DiscountTypeOriginal, type DiscountTypeWithLiterals as DiscountTypeWithLiteralsOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type FixedAmountDiscount as FixedAmountDiscountOriginal, type GetReferralEventRequest as GetReferralEventRequestOriginal, type GetReferralEventResponse as GetReferralEventResponseOriginal, type GetReferralStatisticsRequest as GetReferralStatisticsRequestOriginal, type GetReferralStatisticsResponse as GetReferralStatisticsResponseOriginal, type Group as GroupOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type LoyaltyPoints as LoyaltyPointsOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type PercentageDiscount as PercentageDiscountOriginal, type QueryReferralEventRequest as QueryReferralEventRequestOriginal, type QueryReferralEventResponse as QueryReferralEventResponseOriginal, type QueryReferredFriendActionsRequest as QueryReferredFriendActionsRequestOriginal, type QueryReferredFriendActionsResponse as QueryReferredFriendActionsResponseOriginal, type QueryReferringCustomerTotalsRequest as QueryReferringCustomerTotalsRequestOriginal, type QueryReferringCustomerTotalsResponse as QueryReferringCustomerTotalsResponseOriginal, type ReferralEventEventTypeOneOf as ReferralEventEventTypeOneOfOriginal, type ReferralEvent as ReferralEventOriginal, type ReferredFriendActionEvent as ReferredFriendActionEventOriginal, type ReferredFriendAction as ReferredFriendActionOriginal, type ReferredFriendActionRewardTypeOptionsOneOf as ReferredFriendActionRewardTypeOptionsOneOfOriginal, type ReferredFriendDetails as ReferredFriendDetailsOriginal, type ReferredFriendSignupEvent as ReferredFriendSignupEventOriginal, type ReferringCustomerTotal as ReferringCustomerTotalOriginal, type ReprocessReferralEventsRequestEntityOneOf as ReprocessReferralEventsRequestEntityOneOfOriginal, type ReprocessReferralEventsRequest as ReprocessReferralEventsRequestOriginal, type ReprocessReferralEventsResponse as ReprocessReferralEventsResponseOriginal, type RestoreInfo as RestoreInfoOriginal, type RewardEvent as RewardEventOriginal, type RewardEventReceiverOneOf as RewardEventReceiverOneOfOriginal, Reward as RewardOriginal, type RewardWithLiterals as RewardWithLiteralsOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, Status as StatusOriginal, type StatusWithLiterals as StatusWithLiteralsOriginal, type SuccessfulReferralEvent as SuccessfulReferralEventOriginal, type Trigger as TriggerOriginal, type V1ActionEvent as V1ActionEventOriginal, type V1Coupon as V1CouponOriginal, type V1SuccessfulReferralEvent as V1SuccessfulReferralEventOriginal, type V1Trigger as V1TriggerOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, getReferralEvent, getReferralStatistics, queryReferralEvent, queryReferredFriendActions, queryReferringCustomerTotals };