import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types'; import { C as CreateAccountResponse, E as EarnPointsOptions, a as EarnPointsResponse, A as AdjustPointsOptions, b as AdjustPointsResponse, L as LoyaltyAccount, G as GetProgramTotalsResponse, c as GetCurrentMemberAccountResponse, d as GetAccountBySecondaryIdOptions, e as GetAccountBySecondaryIdResponse, f as ListAccountsOptions, g as ListAccountsResponse, h as LoyaltyAccountSearch, S as SearchAccountsResponse, i as CountAccountsOptions, j as CountAccountsResponse, B as BulkAdjustPointsOptions, k as BulkAdjustPointsResponse, l as AccountCreatedEnvelope, m as AccountPointsUpdatedEnvelope, n as AccountRewardAvailabilityUpdatedEnvelope, o as AccountUpdatedEnvelope, p as LoyaltyAccountsQueryBuilder, q as LoyaltyAccountQuery, t as typedQueryLoyaltyAccounts } from './loyalty-v1-account-accounts.universal-5fyrt13l.js'; export { c6 as AccountInfo, c9 as AccountInfoMetadata, bZ as AccountToUpsert, br as ActionEvent, cb as AdjustPointsOptionsTypeOneOf, a6 as AdjustPointsRequest, a7 as AdjustPointsRequestTypeOneOf, aD as Aggregation, aS as AggregationData, aE as AggregationKindOneOf, bb as AggregationResults, bc as AggregationResultsResultOneOf, ba as AggregationResultsScalarDateResult, aZ as AggregationResultsScalarResult, w as AggregationType, cq as AggregationTypeWithLiterals, c1 as ApplicationError, c7 as BaseEventMetadata, bE as BillingReference, b$ as BulkAccountResult, c2 as BulkActionMetadata, cg as BulkAdjustPointsOptionsTypeOneOf, bj as BulkAdjustPointsRequest, bk as BulkAdjustPointsRequestTypeOneOf, bY as BulkUpsertAccountsRequest, b_ as BulkUpsertAccountsResponse, bM as CancellationDetails, cF as CommonQueryWithEntityContext, cG as CommonSearchWithEntityContext, Y as Contact, bX as ContactSyncRequest, O as ContractSwitchReason, cB as ContractSwitchReasonWithLiterals, K as ContractSwitchType, cA as ContractSwitchTypeWithLiterals, bS as ContractSwitched, bi as CountAccountsRequest, a0 as CreateAccountRequest, am as CursorPaging, ao as CursorPagingMetadata, aj as CursorQuery, ak as CursorQueryPagingMethodOneOf, aB as CursorSearch, aC as CursorSearchPagingMethodOneOf, ap as Cursors, bF as Cycle, bG as CycleCycleSelectorOneOf, aL as DateHistogramAggregation, D as DateHistogramAggregationInterval, cp as DateHistogramAggregationIntervalWithLiterals, b6 as DateHistogramResult, b8 as DateHistogramResults, a8 as DeductPointsRequest, a9 as DeductPointsResponse, bl as DomainEvent, bm as DomainEventBodyOneOf, ca as EarnPointsOptionsActivityDetailsOneOf, a1 as EarnPointsRequest, a2 as EarnPointsRequestActivityDetailsOneOf, bs as Empty, bn as EntityCreatedEvent, bq as EntityDeletedEvent, bp as EntityUpdatedEvent, c8 as EventMetadata, bd as ExportAccountsRequest, bh as ExportAccountsResponse, a5 as FirstTransaction, by as FocalPoint, a3 as FollowedSocialMedia, ce as GetAccountBySecondaryIdOptionsIdOneOf, aw as GetAccountBySecondaryIdRequest, ax as GetAccountBySecondaryIdRequestIdOneOf, ag as GetAccountRequest, ah as GetAccountResponse, av as GetCurrentMemberAccountRequest, at as GetProgramTotalsRequest, aP as GroupByAggregation, aQ as GroupByAggregationKindOneOf, b7 as GroupByValueResults, c4 as IdentificationData, c5 as IdentificationDataIdOneOf, Z as Image, aG as IncludeMissingValuesOptions, F as Initiator, cx as InitiatorWithLiterals, bH as Interval, I as IntervalUnit, cu as IntervalUnitWithLiterals, c0 as ItemMetadata, ay as ListAccountsRequest, aq as ListUserAccountsRequest, ar as ListUserAccountsResponse, as as LoyaltyAccountForMetaSite, cd as LoyaltyAccountQuerySpec, cf as LoyaltyAccountSearchSpec, cc as LoyaltyAccountsQueryResult, c3 as MessageEnvelope, M as MissingValues, cm as MissingValuesWithLiterals, x as Mode, cr as ModeWithLiterals, aO as NestedAggregation, aM as NestedAggregationItem, aN as NestedAggregationItemKindOneOf, aV as NestedAggregationResults, aW as NestedAggregationResultsResultOneOf, N as NestedAggregationType, co as NestedAggregationTypeWithLiterals, b3 as NestedResultValue, b4 as NestedResultValueResultOneOf, b9 as NestedResults, a_ as NestedValueAggregationResult, bI as OneTime, bg as Paging, az as PagingMetadataV2, V as Points, _ as PointsExpiration, a4 as PointsUpdated, Q as PriceIncreaseTrigger, cC as PriceIncreaseTriggerWithLiterals, T as ProductAdjustment, cD as ProductAdjustmentWithLiterals, bT as ProductPriceIncreaseData, P as ProviderName, ct as ProviderNameWithLiterals, ai as QueryLoyaltyAccountsRequest, an as QueryLoyaltyAccountsResponse, be as QueryV2, bf as QueryV2PagingMethodOneOf, aJ as RangeAggregation, aU as RangeAggregationResult, aF as RangeBucket, b0 as RangeResult, aY as RangeResults, bJ as ReactivationData, R as ReactivationReasonEnum, cw as ReactivationReasonEnumWithLiterals, bW as RecurringChargeAttemptFailed, bR as RecurringChargeSucceeded, ac as RedeemDeterminedAmountOfPointsRequest, ad as RedeemDeterminedAmountOfPointsResponse, aa as RedeemPointsRequest, ab as RedeemPointsResponse, ae as RefundTransactionRequest, af as RefundTransactionResponse, H as RefundType, cy as RefundTypeWithLiterals, bo as RestoreInfo, b5 as Results, $ as RewardAvailabilityUpdated, bz as RollingWindow, aK as ScalarAggregation, b2 as ScalarDateResult, b1 as ScalarResult, v as ScalarType, cn as ScalarTypeWithLiterals, aA as SearchAccountsRequest, aR as SearchDetails, u as SortDirection, cl as SortDirectionWithLiterals, r as SortOrder, cj as SortOrderWithLiterals, s as SortType, ck as SortTypeWithLiterals, al as Sorting, y as Status, cs as StatusWithLiterals, bD as Subscription, bK as SubscriptionAssigned, bO as SubscriptionAutoRenewTurnedOff, bN as SubscriptionAutoRenewTurnedOn, bL as SubscriptionCancelled, bC as SubscriptionCreated, bA as SubscriptionEvent, bB as SubscriptionEventEventOneOf, bU as SubscriptionNearEndOfPeriod, bV as SubscriptionPendingChange, z as SubscriptionStatus, cv as SubscriptionStatusWithLiterals, bQ as SubscriptionTransferred, bP as SubscriptionUnassigned, X as Tier, bx as TierDefinition, au as TierTotal, bv as TiersProgramSettings, bu as TiersProgramSettingsChanged, bw as TiersProgramSettingsPeriodOneOf, bt as TiersRollingUpdate, J as UnassignReason, cz as UnassignReasonWithLiterals, U as UpdateTrigger, ci as UpdateTriggerWithLiterals, aH as ValueAggregation, aI as ValueAggregationOptionsOneOf, aT as ValueAggregationResult, a$ as ValueResult, aX as ValueResults, W as WebhookIdentityType, cE as WebhookIdentityTypeWithLiterals, ch as utils } from './loyalty-v1-account-accounts.universal-5fyrt13l.js'; declare function createAccount$1(httpClient: HttpClient): CreateAccountSignature; interface CreateAccountSignature { /** * Creates a loyalty account for a site contact. * * To create a new loyalty account, a customer must first be a site contact with a contact ID, see the Contacts API. * The site must also have an [active loyalty program](https://dev.wix.com/docs/rest/crm/loyalty-program/program/activate-loyalty-program) * before loyalty accounts can be created. * @param - Contact ID for a site's contact. See the Contacts API for more information. */ (contactId: string): Promise>; } declare function earnPoints$1(httpClient: HttpClient): EarnPointsSignature; interface EarnPointsSignature { /** * Adds points to a loyalty account. * * Only a positive amount can be added using this method. To adjust an account's balance * for a negative amount, use Adjust Points. * * This method allows customers to manually earn points to their loyalty accounts. To use this method you must include an `appId` and an `idempotencyKey`. * Any string can be set as the `appId` or `idempotencyKey`. In contrast to when an account earns points through an action taken on your site, then, * the `appId` automatically sets to the source app that generates the points. In both cases, the transaction `type` is `"EARN"`. * @param - Loyalty account ID. * @param - Earn points info. */ (accountId: string, options?: NonNullablePaths): Promise>; } declare function adjustPoints$1(httpClient: HttpClient): AdjustPointsSignature; interface AdjustPointsSignature { /** * Adjusts the point balance of a loyalty account. * * You can adjust the balance in two ways: * - `balance` allows you to set the total points balance to this new amount. The transaction `type` will return as `"ADJUST"`. * - `amount` allows you to adjust the points balance by this amount. This amount can be a positive number to increase the points balance or a negative number to decrease the balance. The transaction `type` will return as `"GIVE"`. * * An account may not be adjusted to result in a negative balance. If you pass an integer in both the `balance` and the `amount` parameters then the `balance` adjustment takes effect and the * `amount` adjustment is ignored. * @param - Loyalty account ID. * @param - Options to use when adjusting points. */ (accountId: string, options?: AdjustPointsOptions): Promise>; } declare function getAccount$1(httpClient: HttpClient): GetAccountSignature; interface GetAccountSignature { /** * Retrieves a loyalty account by ID. * * You can also retrieve an account using a secondary ID, such as a contact ID or a member ID by calling * Get Account by Secondary ID. * @param - ID of the account to retrieve. * @returns Retrieved loyalty account. */ (_id: string): Promise>; } declare function getProgramTotals$1(httpClient: HttpClient): GetProgramTotalsSignature; interface GetProgramTotalsSignature { /** * Retrieves the total amount of points earned, redeemed, and adjusted for the entire loyalty program. * * The `balance` is the current total of points outstanding, while the `earned`, `adjusted`, and `redeemed` amounts * are the all-time accumulated amounts. The totals include the amounts for all loyalty accounts. */ (): Promise>; } declare function getCurrentMemberAccount$1(httpClient: HttpClient): GetCurrentMemberAccountSignature; interface GetCurrentMemberAccountSignature { /** * Retrieves the current member's loyalty account. */ (): Promise>; } declare function getAccountBySecondaryId$1(httpClient: HttpClient): GetAccountBySecondaryIdSignature; interface GetAccountBySecondaryIdSignature { /** * Retrieves the account belonging to the specified contact or member. * * This method retrieves loyalty accounts using either a customer's contact ID or member ID. You can also retrieve an account * using the loyalty account ID with Get Account. * @param - ID of the customer to retrieve loyalty account for. */ (options: GetAccountBySecondaryIdOptions): Promise>; } declare function listAccounts$1(httpClient: HttpClient): ListAccountsSignature; interface ListAccountsSignature { /** * Retrieves a list of accounts, given the provided filters. * * You can retrieve selected loyalty accounts with an array of `contactIds` or retrieve a list of all of a site's loyalty accounts * with an empty request parameter. Use the `cursorPaging` parameters to limit how many items load at a time. * * Deprecated method, please use Query Loyalty Accounts or Search Accounts instead. * @param - Options to use when retrieving a list of loyalty accounts. * @deprecated */ (options?: ListAccountsOptions): Promise>; } declare function searchAccounts$1(httpClient: HttpClient): SearchAccountsSignature; interface SearchAccountsSignature { /** * Retrieves a list of accounts, given the provided filters and search capabilities. * Search is executed on the account's name and email values. * @param - Search options. * @returns Accounts found through provided search capabilities, along with paging and aggregation data of the results. */ (search: LoyaltyAccountSearch): Promise>; } declare function countAccounts$1(httpClient: HttpClient): CountAccountsSignature; interface CountAccountsSignature { /** * Retrieves the count of found accounts, given the provided filters and search capabilities. * * Use with Search Accounts to retrieve the total amount of loyalty accounts on a site. * @returns Amount of accounts found for the given search query */ (options?: CountAccountsOptions): Promise>; } declare function bulkAdjustPoints$1(httpClient: HttpClient): BulkAdjustPointsSignature; interface BulkAdjustPointsSignature { /** * Updates the points balance of multiple accounts. * * You can adjust the balance in two ways: * - `balance` allows you to set the total points balance to this new amount. The transaction `type` will return as `"ADJUST"`. * - `amount` allows you to adjust the points balance by this amount. This amount can be a positive number to increase the points balance or a negative number to decrease the balance. The transaction `type` will return as `"GIVE"`. * * You can use the job ID from the response to call [Get Async Job](https://dev.wix.com/docs/api-reference/business-management/async-job/get-async-job) * to retrieve the job details and metadata. */ (options?: BulkAdjustPointsOptions): Promise; } declare const onAccountCreated$1: EventDefinition; declare const onAccountPointsUpdated$1: EventDefinition; declare const onAccountRewardAvailabilityUpdated$1: EventDefinition; declare const onAccountUpdated$1: EventDefinition; declare function customQueryLoyaltyAccounts(httpClient: HttpClient): { (): LoyaltyAccountsQueryBuilder; (query: LoyaltyAccountQuery): ReturnType; }; declare const createAccount: MaybeContext & typeof createAccount$1>; declare const earnPoints: MaybeContext & typeof earnPoints$1>; declare const adjustPoints: MaybeContext & typeof adjustPoints$1>; declare const getAccount: MaybeContext & typeof getAccount$1>; declare const getProgramTotals: MaybeContext & typeof getProgramTotals$1>; declare const getCurrentMemberAccount: MaybeContext & typeof getCurrentMemberAccount$1>; declare const getAccountBySecondaryId: MaybeContext & typeof getAccountBySecondaryId$1>; declare const listAccounts: MaybeContext & typeof listAccounts$1>; declare const searchAccounts: MaybeContext & typeof searchAccounts$1>; declare const countAccounts: MaybeContext & typeof countAccounts$1>; declare const bulkAdjustPoints: MaybeContext & typeof bulkAdjustPoints$1>; declare const queryLoyaltyAccounts: MaybeContext & typeof customQueryLoyaltyAccounts>; /** * Triggered when a loyalty account is created. */ declare const onAccountCreated: BuildEventDefinition & typeof onAccountCreated$1; /** * Triggered when the points of a loyalty account are adjusted, earned, or redeemed. */ declare const onAccountPointsUpdated: BuildEventDefinition & typeof onAccountPointsUpdated$1; /** * Triggered when `rewardAvailable` updates on a loyalty account. */ declare const onAccountRewardAvailabilityUpdated: BuildEventDefinition & typeof onAccountRewardAvailabilityUpdated$1; /** * Triggered when a loyalty account is updated, including when points are adjusted, earned, or redeemed. */ declare const onAccountUpdated: BuildEventDefinition & typeof onAccountUpdated$1; export { AccountCreatedEnvelope, AccountPointsUpdatedEnvelope, AccountRewardAvailabilityUpdatedEnvelope, AccountUpdatedEnvelope, AdjustPointsOptions, AdjustPointsResponse, BulkAdjustPointsOptions, BulkAdjustPointsResponse, CountAccountsOptions, CountAccountsResponse, CreateAccountResponse, EarnPointsOptions, EarnPointsResponse, GetAccountBySecondaryIdOptions, GetAccountBySecondaryIdResponse, GetCurrentMemberAccountResponse, GetProgramTotalsResponse, ListAccountsOptions, ListAccountsResponse, LoyaltyAccount, LoyaltyAccountQuery, LoyaltyAccountSearch, LoyaltyAccountsQueryBuilder, SearchAccountsResponse, adjustPoints, bulkAdjustPoints, countAccounts, createAccount, earnPoints, getAccount, getAccountBySecondaryId, getCurrentMemberAccount, getProgramTotals, listAccounts, onAccountCreated, onAccountPointsUpdated, onAccountRewardAvailabilityUpdated, onAccountUpdated, queryLoyaltyAccounts, searchAccounts };