import { CreateLoyaltyEarningRuleRequest as CreateLoyaltyEarningRuleRequest$1, CreateLoyaltyEarningRuleResponse as CreateLoyaltyEarningRuleResponse$1, BulkCreateLoyaltyEarningRulesRequest as BulkCreateLoyaltyEarningRulesRequest$1, BulkCreateLoyaltyEarningRulesResponse as BulkCreateLoyaltyEarningRulesResponse$1, CreateCustomLoyaltyEarningRuleRequest as CreateCustomLoyaltyEarningRuleRequest$1, CreateCustomLoyaltyEarningRuleResponse as CreateCustomLoyaltyEarningRuleResponse$1, GetLoyaltyEarningRuleRequest as GetLoyaltyEarningRuleRequest$1, GetLoyaltyEarningRuleResponse as GetLoyaltyEarningRuleResponse$1, UpdateLoyaltyEarningRuleRequest as UpdateLoyaltyEarningRuleRequest$1, UpdateLoyaltyEarningRuleResponse as UpdateLoyaltyEarningRuleResponse$1, DeleteLoyaltyEarningRuleRequest as DeleteLoyaltyEarningRuleRequest$1, DeleteLoyaltyEarningRuleResponse as DeleteLoyaltyEarningRuleResponse$1, DeleteAutomationEarningRuleRequest as DeleteAutomationEarningRuleRequest$1, DeleteAutomationEarningRuleResponse as DeleteAutomationEarningRuleResponse$1, ListEarningRulesRequest as ListEarningRulesRequest$1, ListEarningRulesResponse as ListEarningRulesResponse$1 } from './index.typings.js'; import '@wix/sdk-types'; /** * A loyalty earning rule defines how customers earn points in a loyalty program. * You can create rules for different activities, such as making purchases. */ interface LoyaltyEarningRule extends LoyaltyEarningRuleTypeOneOf { /** Fixed amount of points awarded for each qualifying activity. */ fixedAmount?: FixedAmount; /** Points awarded based on a conversion rate formula: `(amount spent) / (money_amount * points)`. */ conversionRate?: ConversionRate; /** * Loyalty earning rule ID. * @format GUID * @readonly */ id?: string | null; /** * ID of the app managing the earning rule. Can be a loyalty app ID or a Wix automations app ID. * @format GUID */ sourceAppId?: string; /** * ID of the app that triggers point assignment. Examples: Wix Stores, Wix Bookings, Wix Events. * @minLength 1 * @maxLength 80 */ triggerAppId?: string; /** * Type of activity that triggers point assignment. For example, `wix-restaurants/orderSubmitted` or `birthday`. * @minLength 1 * @maxLength 80 */ triggerActivityType?: string; /** * Name of the earning rule. * @minLength 1 * @maxLength 50 */ title?: string; /** Current status of the earning rule. */ status?: StatusWithLiterals; /** * Revision number, incremented by 1 each time the earning rule is updated. * Pass the latest `revision` when updating to prevent conflicting changes. */ revision?: string | null; /** * Date and time the earning rule was created. * @readonly */ createdDate?: Date | null; /** * Date and time the earning rule was last updated. * @readonly */ updatedDate?: Date | null; /** * Additional metadata about the earning rule. * @readonly */ metadata?: Metadata; /** * Trigger filters parsed from automation configuration. Only present for automation-based rules with filters. * @readonly * @maxSize 100 */ triggerFilters?: AutomationTriggerFilter[]; } /** @oneof */ interface LoyaltyEarningRuleTypeOneOf { /** Fixed amount of points awarded for each qualifying activity. */ fixedAmount?: FixedAmount; /** Points awarded based on a conversion rate formula: `(amount spent) / (money_amount * points)`. */ conversionRate?: ConversionRate; } /** Fixed amount type of earning rule. */ interface FixedAmount { /** * Fixed amount configurations for each tier. * @maxSize 21 */ configs?: FixedAmountConfig[]; } interface FixedAmountConfig { /** * Tier ID. If empty, the base tier is used. See the Tiers API for more information. * @format GUID * @readonly */ tierId?: string | null; /** Number of points to award. */ points?: number; } /** * Conversion rate type of earning rule. * Customers earn points based on the amount spent. * For example, for every $10 spent, a customer might earn 1 point. */ interface ConversionRate { /** * Conversion rate configurations for each tier. * * Points are awarded proportionally to the amount spent. * * Formula: `(amount spent) / (money_amount * points)`. * @maxSize 21 */ configs?: ConversionRateConfig[]; /** * Specifies which field in the Wix automations trigger payload [REST](https://dev.wix.com/docs/rest/business-management/automations/introduction#how-do-automations-work)|[SDK](https://dev.wix.com/docs/sdk/backend-modules/automations/triggered-events/reporting-and-canceling-events) to use for calculating points in conversion rate rules. * For example, if set to "priceSummary.totalAmount", the rule uses the total order amount to calculate loyalty points to be awarded. * This field is only applicable for automated earning rules. */ field?: string | null; } interface ConversionRateConfig { /** * Tier ID. If empty, the base tier is used. See the Tiers API for more information. * @format GUID * @readonly */ tierId?: string | null; /** * The amount of money used as a reference for point calculation. * Points are awarded proportionally to the amount spent. * * For example, if set to 10, 1 point is awarded for every 10 units of currency spent (assuming `points` is set to 1). * * Formula for points is: `(amount spent) / (money_amount * points)`. */ moneyAmount?: number; /** * Points given for the specified `money_amount`. * Works in conjunction with `money_amount` to define the earning rule. * * For example: If `money_amount` is 20 and `points` is 10: * - Spending 10 units of currency earns 5 points * - Spending 20 units of currency earns 10 points * - Spending 30 units of currency earns 15 points */ points?: number; } declare enum Status { /** Status is unknown or not specified. */ UNKNOWN = "UNKNOWN", /** Earning rule is active and can assign points. */ ACTIVE = "ACTIVE", /** Earning rule is paused and can't assign points. */ PAUSED = "PAUSED" } /** @enumType */ type StatusWithLiterals = Status | 'UNKNOWN' | 'ACTIVE' | 'PAUSED'; interface Metadata { /** Whether the earning rule can be deleted. */ canBeDeleted?: boolean; } interface LoyaltyEarningRuleTypeTag { /** Type of custom earning rule. */ ruleType?: LoyaltyEarningRuleTypeTagTypeWithLiterals; } declare enum LoyaltyEarningRuleTypeTagType { /** Type is unknown or not specified. */ UNKNOWN_TYPE = "UNKNOWN_TYPE", /** Earning rule for a customer's birthday. */ BIRTHDAY = "BIRTHDAY" } /** @enumType */ type LoyaltyEarningRuleTypeTagTypeWithLiterals = LoyaltyEarningRuleTypeTagType | 'UNKNOWN_TYPE' | 'BIRTHDAY'; interface AutomationTriggerFilter { /** * Key identifying the field in the trigger payload (e.g., "service_id", "eventId", "programId"). * @maxLength 110 */ fieldKey?: string; /** * Parsed entity IDs that the filter matches against. * @maxLength 256 * @maxSize 100 */ values?: string[]; } interface CacheInvalidated { } interface EarningRuleDisabled { } interface CreateLoyaltyEarningRuleRequest { /** Earning rule to create. */ earningRule: LoyaltyEarningRule; } interface CreateLoyaltyEarningRuleResponse { /** Created earning rule. */ earningRule?: LoyaltyEarningRule; } interface BulkCreateLoyaltyEarningRulesRequest { /** * Earning rules to create. * @minSize 1 * @maxSize 100 */ earningRules: LoyaltyEarningRule[]; } interface BulkCreateLoyaltyEarningRulesResponse { /** Created earning rules. */ results?: BulkLoyaltyEarningRuleResult[]; /** Additional metadata for the created earning rules. */ bulkActionMetadata?: BulkActionMetadata; } interface BulkLoyaltyEarningRuleResult { /** Additional metadata for the created earning rules. */ itemMetadata?: ItemMetadata; /** Created earning rule. */ item?: LoyaltyEarningRule; } interface ItemMetadata { /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */ id?: string | null; /** Index of the item within the request array. Allows for correlation between request and response items. */ originalIndex?: number; /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */ success?: boolean; /** Details about the error in case of failure. */ error?: ApplicationError; } interface ApplicationError { /** Error code. */ code?: string; /** Description of the error. */ description?: string; /** Data related to the error. */ data?: Record | null; } interface BulkActionMetadata { /** Number of items that were successfully processed. */ totalSuccesses?: number; /** Number of items that couldn't be processed. */ totalFailures?: number; /** Number of failures without details because detailed failure threshold was exceeded. */ undetailedFailures?: number; } interface CreateCustomLoyaltyEarningRuleRequest { /** Type of the custom earning rule. */ type: TypeWithLiterals; /** Custom earning rule to create. */ earningRule?: CustomLoyaltyEarningRule; } declare enum Type { /** Earning rule for social media. */ SOCIAL_MEDIA = "SOCIAL_MEDIA", /** Earning rule for birthdays. */ BIRTHDAY = "BIRTHDAY" } /** @enumType */ type TypeWithLiterals = Type | 'SOCIAL_MEDIA' | 'BIRTHDAY'; /** Used in CreateCustomLoyaltyEarningRuleRequest */ interface CustomLoyaltyEarningRule extends CustomLoyaltyEarningRuleTypeOneOf { /** Fixed amount of points awarded for each qualifying activity. */ fixedAmount?: FixedAmount; /** Points awarded based on a conversion rate formula: `(amount spent) / (money_amount * points)`. */ conversionRate?: ConversionRate; /** * Name of the earning rule. * @minLength 1 * @maxLength 50 */ title?: string; } /** @oneof */ interface CustomLoyaltyEarningRuleTypeOneOf { /** Fixed amount of points awarded for each qualifying activity. */ fixedAmount?: FixedAmount; /** Points awarded based on a conversion rate formula: `(amount spent) / (money_amount * points)`. */ conversionRate?: ConversionRate; } interface CreateCustomLoyaltyEarningRuleResponse { /** Created earning rule. */ earningRule?: LoyaltyEarningRule; } interface GetLoyaltyEarningRuleRequest { /** * ID of the earning rule to retrieve. * @format GUID */ id: string; } interface GetLoyaltyEarningRuleResponse { /** Retrieved earning rule. */ earningRule?: LoyaltyEarningRule; } interface UpdateLoyaltyEarningRuleRequest { /** Earning rule to update. */ earningRule: LoyaltyEarningRule; } interface UpdateLoyaltyEarningRuleResponse { /** The updated earning rule. */ earningRule?: LoyaltyEarningRule; } interface DeleteLoyaltyEarningRuleRequest { /** * ID of the earning rule to delete. * @format GUID */ id: string; /** * Revision of the earning rule. Incremented by 1 each time the earning rule is updated. * Pass the latest `revision` when updating to prevent conflicting changes. */ revision?: string; } interface DeleteLoyaltyEarningRuleResponse { } interface DeleteAutomationEarningRuleRequest { /** * ID of the earning rule to delete. * @format GUID */ id: string; } interface DeleteAutomationEarningRuleResponse { } interface ListEarningRulesRequest { /** App ID that triggers the point assignment. For example, `9a5d83fd-8570-482e-81ab-cfa88942ee60`. */ triggerAppId?: string | null; /** Type of activity that triggers the point assignment. For example, `restaurants-order-is-pending`. */ triggerActivityType?: string | null; } interface ListEarningRulesResponse { /** Retrieved earning rules. */ earningRules?: LoyaltyEarningRule[]; } interface ListEarningRulesInTierRequest { /** * ID of the tier for which the earning rules will be returned. * @format GUID */ tierId?: string | null; /** Pagination options. */ paging?: CursorPaging; } 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 ListEarningRulesInTierResponse { /** Retrieved earning rules. */ earningRules?: LoyaltyEarningRule[]; /** Details on the paged set of results returned. */ pagingMetadata?: PagingMetadataV2; } interface PagingMetadataV2 { /** Number of items returned in the response. */ count?: number | null; /** Offset that was requested. */ offset?: number | null; /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */ total?: number | null; /** Flag that indicates the server failed to calculate the `total` field. */ tooManyToCount?: boolean | null; /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */ cursors?: Cursors; } 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 { 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 InvalidateEarningRuleCacheRequest { } interface InvalidateEarningRuleCacheResponse { } interface AppInstallationInLoyaltySite { /** @format GUID */ appDefId?: string; type?: V1TypeWithLiterals; } declare enum V1Type { UNSPECIFIED = "UNSPECIFIED", INSTALLED = "INSTALLED", DELETED = "DELETED" } /** @enumType */ type V1TypeWithLiterals = V1Type | 'UNSPECIFIED' | 'INSTALLED' | 'DELETED'; 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 createLoyaltyEarningRule(): __PublicMethodMetaInfo<'POST', {}, CreateLoyaltyEarningRuleRequest$1, CreateLoyaltyEarningRuleRequest, CreateLoyaltyEarningRuleResponse$1, CreateLoyaltyEarningRuleResponse>; declare function bulkCreateLoyaltyEarningRules(): __PublicMethodMetaInfo<'POST', {}, BulkCreateLoyaltyEarningRulesRequest$1, BulkCreateLoyaltyEarningRulesRequest, BulkCreateLoyaltyEarningRulesResponse$1, BulkCreateLoyaltyEarningRulesResponse>; declare function createCustomLoyaltyEarningRule(): __PublicMethodMetaInfo<'POST', {}, CreateCustomLoyaltyEarningRuleRequest$1, CreateCustomLoyaltyEarningRuleRequest, CreateCustomLoyaltyEarningRuleResponse$1, CreateCustomLoyaltyEarningRuleResponse>; declare function getLoyaltyEarningRule(): __PublicMethodMetaInfo<'GET', { id: string; }, GetLoyaltyEarningRuleRequest$1, GetLoyaltyEarningRuleRequest, GetLoyaltyEarningRuleResponse$1, GetLoyaltyEarningRuleResponse>; declare function updateLoyaltyEarningRule(): __PublicMethodMetaInfo<'PUT', { earningRuleId: string; }, UpdateLoyaltyEarningRuleRequest$1, UpdateLoyaltyEarningRuleRequest, UpdateLoyaltyEarningRuleResponse$1, UpdateLoyaltyEarningRuleResponse>; declare function deleteLoyaltyEarningRule(): __PublicMethodMetaInfo<'DELETE', { id: string; }, DeleteLoyaltyEarningRuleRequest$1, DeleteLoyaltyEarningRuleRequest, DeleteLoyaltyEarningRuleResponse$1, DeleteLoyaltyEarningRuleResponse>; declare function deleteAutomationEarningRule(): __PublicMethodMetaInfo<'DELETE', { id: string; }, DeleteAutomationEarningRuleRequest$1, DeleteAutomationEarningRuleRequest, DeleteAutomationEarningRuleResponse$1, DeleteAutomationEarningRuleResponse>; declare function listEarningRules(): __PublicMethodMetaInfo<'GET', {}, ListEarningRulesRequest$1, ListEarningRulesRequest, ListEarningRulesResponse$1, ListEarningRulesResponse>; export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type AppInstallationInLoyaltySite as AppInstallationInLoyaltySiteOriginal, type ApplicationError as ApplicationErrorOriginal, type AutomationTriggerFilter as AutomationTriggerFilterOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, type BulkCreateLoyaltyEarningRulesRequest as BulkCreateLoyaltyEarningRulesRequestOriginal, type BulkCreateLoyaltyEarningRulesResponse as BulkCreateLoyaltyEarningRulesResponseOriginal, type BulkLoyaltyEarningRuleResult as BulkLoyaltyEarningRuleResultOriginal, type CacheInvalidated as CacheInvalidatedOriginal, type ConversionRateConfig as ConversionRateConfigOriginal, type ConversionRate as ConversionRateOriginal, type CreateCustomLoyaltyEarningRuleRequest as CreateCustomLoyaltyEarningRuleRequestOriginal, type CreateCustomLoyaltyEarningRuleResponse as CreateCustomLoyaltyEarningRuleResponseOriginal, type CreateLoyaltyEarningRuleRequest as CreateLoyaltyEarningRuleRequestOriginal, type CreateLoyaltyEarningRuleResponse as CreateLoyaltyEarningRuleResponseOriginal, type CursorPaging as CursorPagingOriginal, type Cursors as CursorsOriginal, type CustomLoyaltyEarningRule as CustomLoyaltyEarningRuleOriginal, type CustomLoyaltyEarningRuleTypeOneOf as CustomLoyaltyEarningRuleTypeOneOfOriginal, type DeleteAutomationEarningRuleRequest as DeleteAutomationEarningRuleRequestOriginal, type DeleteAutomationEarningRuleResponse as DeleteAutomationEarningRuleResponseOriginal, type DeleteLoyaltyEarningRuleRequest as DeleteLoyaltyEarningRuleRequestOriginal, type DeleteLoyaltyEarningRuleResponse as DeleteLoyaltyEarningRuleResponseOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type EarningRuleDisabled as EarningRuleDisabledOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type FixedAmountConfig as FixedAmountConfigOriginal, type FixedAmount as FixedAmountOriginal, type GetLoyaltyEarningRuleRequest as GetLoyaltyEarningRuleRequestOriginal, type GetLoyaltyEarningRuleResponse as GetLoyaltyEarningRuleResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type InvalidateEarningRuleCacheRequest as InvalidateEarningRuleCacheRequestOriginal, type InvalidateEarningRuleCacheResponse as InvalidateEarningRuleCacheResponseOriginal, type ItemMetadata as ItemMetadataOriginal, type ListEarningRulesInTierRequest as ListEarningRulesInTierRequestOriginal, type ListEarningRulesInTierResponse as ListEarningRulesInTierResponseOriginal, type ListEarningRulesRequest as ListEarningRulesRequestOriginal, type ListEarningRulesResponse as ListEarningRulesResponseOriginal, type LoyaltyEarningRule as LoyaltyEarningRuleOriginal, type LoyaltyEarningRuleTypeOneOf as LoyaltyEarningRuleTypeOneOfOriginal, type LoyaltyEarningRuleTypeTag as LoyaltyEarningRuleTypeTagOriginal, LoyaltyEarningRuleTypeTagType as LoyaltyEarningRuleTypeTagTypeOriginal, type LoyaltyEarningRuleTypeTagTypeWithLiterals as LoyaltyEarningRuleTypeTagTypeWithLiteralsOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type Metadata as MetadataOriginal, type PagingMetadataV2 as PagingMetadataV2Original, type RestoreInfo as RestoreInfoOriginal, Status as StatusOriginal, type StatusWithLiterals as StatusWithLiteralsOriginal, Type as TypeOriginal, type TypeWithLiterals as TypeWithLiteralsOriginal, type UpdateLoyaltyEarningRuleRequest as UpdateLoyaltyEarningRuleRequestOriginal, type UpdateLoyaltyEarningRuleResponse as UpdateLoyaltyEarningRuleResponseOriginal, V1Type as V1TypeOriginal, type V1TypeWithLiterals as V1TypeWithLiteralsOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, bulkCreateLoyaltyEarningRules, createCustomLoyaltyEarningRule, createLoyaltyEarningRule, deleteAutomationEarningRule, deleteLoyaltyEarningRule, getLoyaltyEarningRule, listEarningRules, updateLoyaltyEarningRule };