@wix/auto_sdk_loyalty_programs 1.0.39 → 1.0.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +6 -1
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +6 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +6 -1
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +6 -1
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +6 -1
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +6 -1
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +6 -1
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +6 -1
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +3 -3
package/build/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../index.ts","../../src/loyalty-v1-program-programs.public.ts","../../src/loyalty-v1-program-programs.universal.ts","../../src/loyalty-v1-program-programs.http.ts","../../src/loyalty-v1-program-programs.context.ts"],"sourcesContent":["export * from './src/loyalty-v1-program-programs.context.js';\n","import { renameKeysFromRESTResponseToSDKResponse } from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { transformRESTImageToSDKImage } from '@wix/sdk-runtime/transformations/image';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { EventDefinition, HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n ActivateLoyaltyProgramResponse,\n BulkGetLoyaltyProgramResponse,\n DisablePointsExpirationResponse,\n EnablePointsExpirationResponse,\n GetLoyaltyProgramPremiumFeaturesResponse,\n GetLoyaltyProgramResponse,\n LoyaltyProgram,\n PauseLoyaltyProgramResponse,\n ProgramUpdatedEnvelope,\n UpdateLoyaltyProgramResponse,\n activateLoyaltyProgram as universalActivateLoyaltyProgram,\n bulkGetLoyaltyProgram as universalBulkGetLoyaltyProgram,\n disablePointsExpiration as universalDisablePointsExpiration,\n enablePointsExpiration as universalEnablePointsExpiration,\n getLoyaltyProgram as universalGetLoyaltyProgram,\n getLoyaltyProgramPremiumFeatures as universalGetLoyaltyProgramPremiumFeatures,\n pauseLoyaltyProgram as universalPauseLoyaltyProgram,\n updateLoyaltyProgram as universalUpdateLoyaltyProgram,\n} from './loyalty-v1-program-programs.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/loyalty' };\n\nexport function getLoyaltyProgram(\n httpClient: HttpClient\n): GetLoyaltyProgramSignature {\n return () =>\n universalGetLoyaltyProgram(\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetLoyaltyProgramSignature {\n /**\n * Retrieves the loyalty program.\n */\n (): Promise<\n NonNullablePaths<\n GetLoyaltyProgramResponse,\n | `loyaltyProgram.status`\n | `loyaltyProgram.pointsExpiration.status`\n | `loyaltyProgram.pointsExpiration.monthsOfInactivity`\n | `loyaltyProgram.pointsExpiration.expiringPointsPercentage`\n | `loyaltyProgram.premiumFeatures.loyaltyProgram`\n | `loyaltyProgram.premiumFeatures.tiers`\n | `loyaltyProgram.premiumFeatures.pointsExpiration`,\n 4\n >\n >;\n}\n\nexport function bulkGetLoyaltyProgram(\n httpClient: HttpClient\n): BulkGetLoyaltyProgramSignature {\n return () =>\n universalBulkGetLoyaltyProgram(\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkGetLoyaltyProgramSignature {\n /**\n * Retrieves loyalty programs for all metasites that the caller is a member of.\n *\n * Must be called with user identity.\n */\n (): Promise<\n NonNullablePaths<\n BulkGetLoyaltyProgramResponse,\n | `programInSites`\n | `programInSites.${number}.metaSiteId`\n | `programInSites.${number}.loyaltyProgram.status`\n | `programInSites.${number}.loyaltyProgram.pointsExpiration.status`\n | `programInSites.${number}.loyaltyProgram.pointsExpiration.monthsOfInactivity`\n | `programInSites.${number}.loyaltyProgram.pointsExpiration.expiringPointsPercentage`\n | `programInSites.${number}.loyaltyProgram.premiumFeatures.loyaltyProgram`\n | `programInSites.${number}.loyaltyProgram.premiumFeatures.tiers`\n | `programInSites.${number}.loyaltyProgram.premiumFeatures.pointsExpiration`,\n 6\n >\n >;\n}\n\nexport function updateLoyaltyProgram(\n httpClient: HttpClient\n): UpdateLoyaltyProgramSignature {\n return (loyaltyProgram: LoyaltyProgram) =>\n universalUpdateLoyaltyProgram(\n loyaltyProgram,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface UpdateLoyaltyProgramSignature {\n /**\n * Updates a site's loyalty program.\n *\n * This method updates the name of the loyalty program and the details of the collectible points unit.\n * To activate the loyalty program, call Activate Loyalty Program.\n * @param - Loyalty program fields to update.\n */\n (loyaltyProgram: LoyaltyProgram): Promise<\n NonNullablePaths<\n UpdateLoyaltyProgramResponse,\n | `loyaltyProgram.status`\n | `loyaltyProgram.pointsExpiration.status`\n | `loyaltyProgram.pointsExpiration.monthsOfInactivity`\n | `loyaltyProgram.pointsExpiration.expiringPointsPercentage`\n | `loyaltyProgram.premiumFeatures.loyaltyProgram`\n | `loyaltyProgram.premiumFeatures.tiers`\n | `loyaltyProgram.premiumFeatures.pointsExpiration`,\n 4\n >\n >;\n}\n\nexport function activateLoyaltyProgram(\n httpClient: HttpClient\n): ActivateLoyaltyProgramSignature {\n return () =>\n universalActivateLoyaltyProgram(\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ActivateLoyaltyProgramSignature {\n /**\n * Activates a loyalty program.\n *\n * Initially, when a loyalty program is installed, the status is set to `\"DRAFT\"`.\n * You can change the program's status to `\"ACTIVE\"` with this method or through the [dashboard](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Floyalty-accounts/wizard/).\n * A site's customers can only earn or redeem points while the program is `\"ACTIVE\"`.\n *\n * This method only updates the status of a loyalty program. To make other updates to the program, call Update Loyalty Program.\n *\n * To temporarily pause your loyalty program, call Pause Loyalty Program and see [Pausing Your Loyalty Program](https://support.wix.com/en/article/wix-loyalty-program-pausing-your-loyalty-program) for more information.\n */\n (): Promise<\n NonNullablePaths<\n ActivateLoyaltyProgramResponse,\n | `loyaltyProgram.status`\n | `loyaltyProgram.pointsExpiration.status`\n | `loyaltyProgram.pointsExpiration.monthsOfInactivity`\n | `loyaltyProgram.pointsExpiration.expiringPointsPercentage`\n | `loyaltyProgram.premiumFeatures.loyaltyProgram`\n | `loyaltyProgram.premiumFeatures.tiers`\n | `loyaltyProgram.premiumFeatures.pointsExpiration`,\n 4\n >\n >;\n}\n\nexport function pauseLoyaltyProgram(\n httpClient: HttpClient\n): PauseLoyaltyProgramSignature {\n return () =>\n universalPauseLoyaltyProgram(\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface PauseLoyaltyProgramSignature {\n /**\n * Changes the program status to `\"PAUSED\"`.\n *\n * See [Pausing Your Loyalty Program](https://support.wix.com/en/article/wix-loyalty-program-pausing-your-loyalty-program) for more information.\n */\n (): Promise<\n NonNullablePaths<\n PauseLoyaltyProgramResponse,\n | `loyaltyProgram.status`\n | `loyaltyProgram.pointsExpiration.status`\n | `loyaltyProgram.pointsExpiration.monthsOfInactivity`\n | `loyaltyProgram.pointsExpiration.expiringPointsPercentage`\n | `loyaltyProgram.premiumFeatures.loyaltyProgram`\n | `loyaltyProgram.premiumFeatures.tiers`\n | `loyaltyProgram.premiumFeatures.pointsExpiration`,\n 4\n >\n >;\n}\n\nexport function getLoyaltyProgramPremiumFeatures(\n httpClient: HttpClient\n): GetLoyaltyProgramPremiumFeaturesSignature {\n return () =>\n universalGetLoyaltyProgramPremiumFeatures(\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetLoyaltyProgramPremiumFeaturesSignature {\n /**\n * Retrieves information about the available loyalty program premium features.\n */\n (): Promise<\n NonNullablePaths<\n GetLoyaltyProgramPremiumFeaturesResponse,\n `loyaltyProgram` | `tiers` | `pointsExpiration`,\n 2\n >\n >;\n}\n\nexport function enablePointsExpiration(\n httpClient: HttpClient\n): EnablePointsExpirationSignature {\n return () =>\n universalEnablePointsExpiration(\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface EnablePointsExpirationSignature {\n /**\n * Updates the `pointsExpiration` status to `\"ENABLED\"`.\n */\n (): Promise<\n NonNullablePaths<\n EnablePointsExpirationResponse,\n | `loyaltyProgram.status`\n | `loyaltyProgram.pointsExpiration.status`\n | `loyaltyProgram.pointsExpiration.monthsOfInactivity`\n | `loyaltyProgram.pointsExpiration.expiringPointsPercentage`\n | `loyaltyProgram.premiumFeatures.loyaltyProgram`\n | `loyaltyProgram.premiumFeatures.tiers`\n | `loyaltyProgram.premiumFeatures.pointsExpiration`,\n 4\n >\n >;\n}\n\nexport function disablePointsExpiration(\n httpClient: HttpClient\n): DisablePointsExpirationSignature {\n return () =>\n universalDisablePointsExpiration(\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface DisablePointsExpirationSignature {\n /**\n * Updates the `pointsExpiration` status to `\"DISABLED\"`.\n */\n (): Promise<\n NonNullablePaths<\n DisablePointsExpirationResponse,\n | `loyaltyProgram.status`\n | `loyaltyProgram.pointsExpiration.status`\n | `loyaltyProgram.pointsExpiration.monthsOfInactivity`\n | `loyaltyProgram.pointsExpiration.expiringPointsPercentage`\n | `loyaltyProgram.premiumFeatures.loyaltyProgram`\n | `loyaltyProgram.premiumFeatures.tiers`\n | `loyaltyProgram.premiumFeatures.pointsExpiration`,\n 4\n >\n >;\n}\n\nexport const onProgramUpdated = EventDefinition(\n 'wix.loyalty.v1.program_updated',\n true,\n (event: ProgramUpdatedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'entity.createdDate' },\n { path: 'entity.updatedDate' },\n { path: 'metadata.eventTime' },\n ],\n },\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [{ path: 'entity.pointDefinition.icon' }],\n },\n ])\n )\n)<ProgramUpdatedEnvelope>();\n\nexport {\n ActionEvent,\n ActivateLoyaltyProgramRequest,\n ActivateLoyaltyProgramResponse,\n AssignedFromFloatingReason,\n BaseEventMetadata,\n BooleanFeature,\n BulkGetLoyaltyProgramRequest,\n BulkGetLoyaltyProgramResponse,\n CancelRequestedReason,\n ContractSwitchedReason,\n DisablePointsExpirationRequest,\n DisablePointsExpirationResponse,\n DomainEvent,\n DomainEventBodyOneOf,\n Empty,\n EnablePointsExpirationRequest,\n EnablePointsExpirationResponse,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityUpdatedEvent,\n EventMetadata,\n Feature,\n FeatureCancelled,\n FeatureCancelledReasonOneOf,\n FeatureContext,\n FeatureDisabled,\n FeatureDisabledReasonOneOf,\n FeatureEnabled,\n FeatureEnabledReasonOneOf,\n FeatureEvent,\n FeatureEventEventOneOf,\n FeaturePeriod,\n FeatureQuantityInfoOneOf,\n FeatureUpdated,\n FeatureUpdatedPreviousQuantityInfoOneOf,\n FeatureUpdatedReasonOneOf,\n FocalPoint,\n GetLoyaltyProgramDescriptionRequest,\n GetLoyaltyProgramDescriptionResponse,\n GetLoyaltyProgramPremiumFeaturesRequest,\n GetLoyaltyProgramPremiumFeaturesResponse,\n GetLoyaltyProgramRequest,\n GetLoyaltyProgramResponse,\n IdentificationData,\n IdentificationDataIdOneOf,\n LoyaltyAppInstallation,\n LoyaltyProgram,\n LoyaltyProgramActivated,\n LoyaltyProgramDescriptionUpdated,\n ManualFeatureCreationReason,\n MessageEnvelope,\n MigratedFromLegacyReason,\n NewFeatureReason,\n PauseLoyaltyProgramRequest,\n PauseLoyaltyProgramResponse,\n PointDefinition,\n PointsExpiration,\n PointsExpirationChanges,\n PointsExpirationConfigurationChanged,\n PointsExpirationDisabled,\n PointsExpirationEnabled,\n PremiumFeatures,\n ProgramInSite,\n ProgramStatus,\n ProgramUpdatedEnvelope,\n QuotaFeature,\n QuotaInfo,\n QuotaInfoEntry,\n ReassignedFromSiteReason,\n ReassignedToAnotherSiteReason,\n ReplacedByAnotherSubscriptionReason,\n RestoreInfo,\n SocialMediaChannel,\n SocialMediaSettings,\n Status,\n TransferredFromAnotherAccountReason,\n TransferredToAnotherAccountReason,\n Type,\n UnAssingedToFloatingReason,\n UpdateLoyaltyProgramDescriptionRequest,\n UpdateLoyaltyProgramDescriptionResponse,\n UpdateLoyaltyProgramRequest,\n UpdateLoyaltyProgramResponse,\n V1Type,\n WebhookIdentityType,\n} from './loyalty-v1-program-programs.universal.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixLoyaltyV1Program from './loyalty-v1-program-programs.http.js';\nimport { transformSDKImageToRESTImage } from '@wix/sdk-runtime/transformations/image';\nimport { transformRESTImageToSDKImage } from '@wix/sdk-runtime/transformations/image';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\n\n/**\n * A loyalty program allows sites to maintain customer reward accounts. Wix users can create a\n * loyalty program to increase customer retention. Read more about the [loyalty program](https://support.wix.com/en/article/wix-loyalty-program-an-overview).\n */\nexport interface LoyaltyProgram {\n /**\n * Program name.\n * @minLength 2\n * @maxLength 50\n */\n name?: string | null;\n /** Information about the program's collectible entity. */\n pointDefinition?: PointDefinition;\n /**\n * Program status.\n * Customers can only earn or redeem points while the program is `\"ACTIVE\"`.\n *\n * Default: `\"DRAFT\"`\n * @readonly\n */\n status?: ProgramStatusWithLiterals;\n /**\n * Date and time the program was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the program was updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /** Configuration for the points expiration feature. */\n pointsExpiration?: PointsExpiration;\n /**\n * Information about the available program premium features.\n * @readonly\n */\n premiumFeatures?: PremiumFeatures;\n}\n\nexport interface PointDefinition {\n /**\n * Display name for the program's collectible unit.\n *\n * It's recommended to use a plural, for example `\"Stars\"`.\n *\n * In contrast to a custom name, the default `\"Points\"` name is translated and adjusted to singular based on circumstances.\n *\n * Default: `\"Points\"`.\n * @maxLength 20\n */\n customName?: string | null;\n /** Image URL. */\n icon?: string;\n}\n\nexport interface FocalPoint {\n /** X-coordinate of the focal point. */\n x?: number;\n /** Y-coordinate of the focal point. */\n y?: number;\n /** crop by height */\n height?: number | null;\n /** crop by width */\n width?: number | null;\n}\n\nexport enum ProgramStatus {\n /** Unknown program status. */\n UNKNOWN = 'UNKNOWN',\n /** Program is in draft mode. Customers can't earn or redeem points. */\n DRAFT = 'DRAFT',\n /** Program is active. Customers can earn and redeem points. */\n ACTIVE = 'ACTIVE',\n /**\n * Program is paused. Customers can't earn or redeem points while the program is paused.\n *\n * Set the program to `\"ACTIVE\"` to resume earning and redeeming points.\n */\n PAUSED = 'PAUSED',\n}\n\n/** @enumType */\nexport type ProgramStatusWithLiterals =\n | ProgramStatus\n | 'UNKNOWN'\n | 'DRAFT'\n | 'ACTIVE'\n | 'PAUSED';\n\nexport interface PointsExpiration {\n /**\n * Status of the points expiration feature.\n * @readonly\n */\n status?: StatusWithLiterals;\n /**\n * How many months a member should be inactive to lose the collected points.\n * @min 1\n * @max 12\n */\n monthsOfInactivity?: number;\n /**\n * Percentage of points that a member loses after being inactive.\n * @min 1\n * @max 100\n */\n expiringPointsPercentage?: number;\n}\n\nexport enum Status {\n /** Unknown points expiration status. This value is not used. */\n UNKNOWN_STATUS = 'UNKNOWN_STATUS',\n /** Points expiration feature is disabled. */\n DISABLED = 'DISABLED',\n /** Points expiration feature is enabled. */\n ENABLED = 'ENABLED',\n}\n\n/** @enumType */\nexport type StatusWithLiterals =\n | Status\n | 'UNKNOWN_STATUS'\n | 'DISABLED'\n | 'ENABLED';\n\nexport interface PremiumFeatures {\n /**\n * Whether there are any loyalty program premium features.\n * @readonly\n */\n loyaltyProgram?: boolean;\n /**\n * Whether this loyalty program includes tiers.\n * @readonly\n */\n tiers?: boolean;\n /**\n * Whether this loyalty program includes point expiration.\n * @readonly\n */\n pointsExpiration?: boolean;\n}\n\nexport interface SocialMediaSettings {\n /**\n * List of social media channels\n * @maxSize 5\n */\n channels?: SocialMediaChannel[];\n}\n\nexport interface SocialMediaChannel {\n /** Social media channel type */\n type?: TypeWithLiterals;\n /** Enable or disable social media channel */\n enabled?: boolean;\n /**\n * Social media channel ID. For example, Instagram username.\n * @minLength 1\n * @maxLength 255\n */\n _id?: string;\n /**\n * Social media channel URL\n * @readonly\n * @format WEB_URL\n */\n url?: string | null;\n}\n\nexport enum Type {\n /** Unknown social media channel type. */\n UNKNOWN_CHANNEL = 'UNKNOWN_CHANNEL',\n /** Facebook social media channel. */\n FACEBOOK = 'FACEBOOK',\n /** Instagram social media channel. */\n INSTAGRAM = 'INSTAGRAM',\n /** LinkedIn social media channel. */\n LINKEDIN = 'LINKEDIN',\n /** X social media channel. */\n X = 'X',\n /** TikTok social media channel. */\n TIKTOK = 'TIKTOK',\n}\n\n/** @enumType */\nexport type TypeWithLiterals =\n | Type\n | 'UNKNOWN_CHANNEL'\n | 'FACEBOOK'\n | 'INSTAGRAM'\n | 'LINKEDIN'\n | 'X'\n | 'TIKTOK';\n\nexport interface GetLoyaltyProgramRequest {}\n\nexport interface GetLoyaltyProgramResponse {\n /** Retrieved loyalty program. */\n loyaltyProgram?: LoyaltyProgram;\n}\n\nexport interface BulkGetLoyaltyProgramRequest {}\n\nexport interface BulkGetLoyaltyProgramResponse {\n /** Retrieved loyalty programs. */\n programInSites?: ProgramInSite[];\n}\n\nexport interface ProgramInSite {\n /**\n * Metasite ID.\n * @format GUID\n */\n metaSiteId?: string;\n /** Loyalty program. */\n loyaltyProgram?: LoyaltyProgram;\n}\n\nexport interface UpdateLoyaltyProgramRequest {\n /** Loyalty program fields to update. */\n loyaltyProgram: LoyaltyProgram;\n}\n\nexport interface UpdateLoyaltyProgramResponse {\n /** Updated loyalty program. */\n loyaltyProgram?: LoyaltyProgram;\n}\n\nexport interface PointsExpirationConfigurationChanged {\n /** Loyalty program. */\n loyaltyProgram?: LoyaltyProgram;\n /** Points expiration configuration changes */\n pointsExpirationChanges?: PointsExpirationChanges;\n}\n\nexport interface PointsExpirationChanges {\n monthsOfInactivity?: number | null;\n expiringPointsPercentage?: number | null;\n}\n\nexport interface ActivateLoyaltyProgramRequest {}\n\nexport interface ActivateLoyaltyProgramResponse {\n /** Activated loyalty program. */\n loyaltyProgram?: LoyaltyProgram;\n}\n\nexport interface LoyaltyProgramActivated {\n /** Activated loyalty program. */\n loyaltyProgram?: LoyaltyProgram;\n}\n\nexport interface PauseLoyaltyProgramRequest {}\n\nexport interface PauseLoyaltyProgramResponse {\n /** Paused loyalty program. */\n loyaltyProgram?: LoyaltyProgram;\n}\n\nexport interface GetLoyaltyProgramDescriptionRequest {\n /**\n * List of description fields to retrieve. Supported values: `description`, `updatedDate`.\n * @maxSize 2\n */\n fields?: string[];\n}\n\nexport interface GetLoyaltyProgramDescriptionResponse {\n /** Retrieved loyalty program description. */\n description?: string | null;\n /** Date and time of the latest description update. */\n _updatedDate?: Date | null;\n}\n\nexport interface UpdateLoyaltyProgramDescriptionRequest {\n /**\n * Loyalty program description to update.\n * @minLength 1\n * @maxLength 1000000\n */\n description?: string;\n}\n\nexport interface UpdateLoyaltyProgramDescriptionResponse {}\n\nexport interface LoyaltyProgramDescriptionUpdated {}\n\nexport interface GetLoyaltyProgramPremiumFeaturesRequest {}\n\nexport interface GetLoyaltyProgramPremiumFeaturesResponse {\n /**\n * Whether there are any loyalty program premium features.\n * @readonly\n */\n loyaltyProgram?: boolean;\n /**\n * Whether this loyalty program includes tiers.\n * @readonly\n */\n tiers?: boolean;\n /**\n * Whether this loyalty program includes point expiration.\n * @readonly\n */\n pointsExpiration?: boolean;\n}\n\nexport interface EnablePointsExpirationRequest {}\n\nexport interface EnablePointsExpirationResponse {\n /** Loyalty program with enabled points expiration feature. */\n loyaltyProgram?: LoyaltyProgram;\n}\n\nexport interface PointsExpirationEnabled {\n /** Loyalty program. */\n loyaltyProgram?: LoyaltyProgram;\n}\n\nexport interface DisablePointsExpirationRequest {}\n\nexport interface DisablePointsExpirationResponse {\n /** Loyalty program with disabled points expiration feature. */\n loyaltyProgram?: LoyaltyProgram;\n}\n\nexport interface PointsExpirationDisabled {\n /** Loyalty program. */\n loyaltyProgram?: LoyaltyProgram;\n}\n\nexport interface FeatureEvent extends FeatureEventEventOneOf {\n /**\n * Information about an event that makes a feature eligible to the user.\n * Triggered for example, for new features or when a feature is reassigned\n * to an account or a site.\n */\n enabled?: FeatureEnabled;\n /**\n * Information about an event that disables a feature for the user.\n * Triggered for example, when a feature is unassigned from a site,\n * reassigned to a different site, or the user switched to a different contract.\n */\n disabled?: FeatureDisabled;\n /**\n * Information about an event that updates a feature. An `updated` event\n * is triggered for example by the\n * [Report Quota Usage](https://bo.wix.com/wix-docs/rest/premium/premium-features-manager/report-quota-usage)\n * and [Reset Usage Counter](https://bo.wix.com/wix-docs/rest/premium/premium-features-manager/reset-usage-counter)\n * endpoints.\n */\n updated?: FeatureUpdated;\n /**\n * Information about an event that cancels a feature for the user.\n * Triggered for example, when a feature is canceled, transferred to\n * another account, or the user switched to a different contract.\n */\n cancelled?: FeatureCancelled;\n /**\n * Timestamp of the event in\n * [UTC time](https://en.wikipedia.org/wiki/Coordinated_Universal_Time).\n */\n timestamp?: Date | null;\n}\n\n/** @oneof */\nexport interface FeatureEventEventOneOf {\n /**\n * Information about an event that makes a feature eligible to the user.\n * Triggered for example, for new features or when a feature is reassigned\n * to an account or a site.\n */\n enabled?: FeatureEnabled;\n /**\n * Information about an event that disables a feature for the user.\n * Triggered for example, when a feature is unassigned from a site,\n * reassigned to a different site, or the user switched to a different contract.\n */\n disabled?: FeatureDisabled;\n /**\n * Information about an event that updates a feature. An `updated` event\n * is triggered for example by the\n * [Report Quota Usage](https://bo.wix.com/wix-docs/rest/premium/premium-features-manager/report-quota-usage)\n * and [Reset Usage Counter](https://bo.wix.com/wix-docs/rest/premium/premium-features-manager/reset-usage-counter)\n * endpoints.\n */\n updated?: FeatureUpdated;\n /**\n * Information about an event that cancels a feature for the user.\n * Triggered for example, when a feature is canceled, transferred to\n * another account, or the user switched to a different contract.\n */\n cancelled?: FeatureCancelled;\n}\n\n/** Feature created or enabled after disabled state */\nexport interface FeatureEnabled extends FeatureEnabledReasonOneOf {\n /** Information about a transfer from another account. */\n transferredFromAnotherAccount?: TransferredFromAnotherAccountReason;\n /** Information about a transfer from another site. */\n reassignedFromSite?: ReassignedFromSiteReason;\n /** Information about a feature that hadn't been assigned to site. */\n assignedFromFloating?: AssignedFromFloatingReason;\n /** Information about the new feature. */\n newFeature?: NewFeatureReason;\n /** Information about the contract switch. */\n contractSwitched?: ContractSwitchedReason;\n /** Information about the manually created features. */\n manualFeatureCreation?: ManualFeatureCreationReason;\n /** Information about a feature that was migrated from legacy. */\n migratedFromLegacy?: MigratedFromLegacyReason;\n /** Enabled feature. */\n feature?: Feature;\n /**\n * Information about a transfer from another account.\n * __Deprecated__. Use `reason.transferred_from_another_account` instead.\n * @format GUID\n */\n transferredFromAccount?: string | null;\n /**\n * Information about a transfer from another site.\n * __Deprecated__. Use `reason.reassigned_from_site` instead.\n * @format GUID\n */\n reassignedFromMetasite?: string | null;\n}\n\n/** @oneof */\nexport interface FeatureEnabledReasonOneOf {\n /** Information about a transfer from another account. */\n transferredFromAnotherAccount?: TransferredFromAnotherAccountReason;\n /** Information about a transfer from another site. */\n reassignedFromSite?: ReassignedFromSiteReason;\n /** Information about a feature that hadn't been assigned to site. */\n assignedFromFloating?: AssignedFromFloatingReason;\n /** Information about the new feature. */\n newFeature?: NewFeatureReason;\n /** Information about the contract switch. */\n contractSwitched?: ContractSwitchedReason;\n /** Information about the manually created features. */\n manualFeatureCreation?: ManualFeatureCreationReason;\n /** Information about a feature that was migrated from legacy. */\n migratedFromLegacy?: MigratedFromLegacyReason;\n}\n\nexport interface Feature extends FeatureQuantityInfoOneOf {\n /**\n * Deprecated. Use `enabled` instead.\n * @deprecated\n */\n booleanFeature?: BooleanFeature;\n /**\n * Deprecated. Use `quotaInfo` instead.\n * @deprecated\n */\n quotaFeature?: QuotaFeature;\n /**\n * ID of the feature. __Note:__ Isn't unique. For example, all features that\n * are available to free Wix accounts or site in some capacity have\n * `{\"id\": \"DEFAULT\"}`. Use `uniqueName` as unique identifier for a feature.\n * @readonly\n */\n _id?: string;\n /**\n * Unique name of the feature. Only lower case letters, numbers, and dashes\n * `-` are supported. Used in the endpoints of the\n * [Features Manager API](https://bo.wix.com/wix-docs/rest/premium/premium-features-manager/introduction)\n * to specify the feature. Not visible to customers. We recommend to start\n * the unique name with a prefix describing your organization or Wix company.\n * For example, `bookings` or `crm`.\n *\n * Min: 2 characters\n * Max: 50 characters\n * @minLength 2\n * @maxLength 50\n */\n uniqueName?: string;\n /**\n * Information about whether the feature belongs to a Wix account or site.\n * Account features have `context.userId`. Site features have `context.metaSiteId` in case\n * they're assigned to a specific site. Site features that aren't assigned to\n * a specific site have neither ID.\n */\n context?: FeatureContext;\n /**\n * Deprecated.\n * @readonly\n * @deprecated\n */\n createdAt?: Date | null;\n /**\n * Deprecated.\n * @readonly\n * @deprecated\n */\n updatedAt?: Date | null;\n /**\n * Aggregated information about how often customers can use the feature.\n * Available only for quota features.\n */\n quotaInfo?: QuotaInfo;\n /**\n * Whether the customer is currently allowed to use the feature.\n * `true` means that the customer can use the feature. This means a boolean\n * feature is active or a quota feature has remaining usage.\n * `false` means that the customer can't use the feature.\n * This means a boolean feature isn't active or a quota feature doesn't\n * have remaining usage.\n */\n enabled?: boolean;\n /**\n * ID of the [subscription](https://bo.wix.com/wix-docs/rest/premium/premium-subscriptions-manager/subscription-object)\n * to which the feature instance belongs.\n * @format GUID\n */\n subscriptionId?: string | null;\n /**\n * Metadata of the feature. Wix Premium uses the metadata object to indicate\n * that customers who purchase a product with the feature also get\n * access to an additional product. For these bundled products `metadata`\n * looks like this: `{\"tpa\": \"{\"appDefId\": \"sample-app-def-id-1234567890\", \"vendorProductId\": \"sample-productId\"}}\"`.\n * But you can use the `metadata` property for other purposes, too.\n */\n metadata?: Record<string, string>;\n}\n\n/** @oneof */\nexport interface FeatureQuantityInfoOneOf {\n /**\n * Deprecated. Use `enabled` instead.\n * @deprecated\n */\n booleanFeature?: BooleanFeature;\n /**\n * Deprecated. Use `quotaInfo` instead.\n * @deprecated\n */\n quotaFeature?: QuotaFeature;\n}\n\n/**\n * Context this feature is currently connected to.\n * Note: Do not confuse with feature scope which is configured in the product catalog\n * and defines in which context the product can be used\n */\nexport interface FeatureContext {\n /**\n * ID of the Wix account that the feature instance belongs to.\n * Available for both site and account level feature instances.\n * @format GUID\n */\n userId?: string;\n /**\n * ID of the meta site that the feature instance is assigned to.\n * Only available for site level feature instances that are assigned to a Wix\n * site. Not available for account level and unassigned site level feature\n * instances.\n * @format GUID\n */\n metaSiteId?: string | null;\n}\n\n/**\n * A feature that can be either \"enabled\" or \"disabled\". The default/freemium setting is always OFF, and the premium setting is always ON (meaning, unlimited usage without tracking).\n * A boolean feature is similar to a quantitive feature with a default limit of 0 and UNLIMITED premium limit (although a bit simplified).\n */\nexport interface BooleanFeature {}\n\n/** A feature with a periodic usage limitation. The default limit is defined in the Feature Spec, the Premium limits are defined in the respective ProductFeature. */\nexport interface QuotaFeature {\n /** Default (or Freemium) quota limitation. if left undefined the free feature has unlimited amount. */\n limit?: string | null;\n /** Periodic time-frame to reset the usage counter. You may use NO_PERIOD if counter shouldn't be reset. */\n period?: FeaturePeriodWithLiterals;\n /** Usage measurement units (seconds? MBs? unitless?). Usage reported will be counted in multiples of this basic unit. */\n units?: string | null;\n}\n\n/** Determines the reset cycle of the feature usage. */\nexport enum FeaturePeriod {\n NO_PERIOD = 'NO_PERIOD',\n MILLISECOND = 'MILLISECOND',\n SECOND = 'SECOND',\n MINUTE = 'MINUTE',\n HOUR = 'HOUR',\n DAY = 'DAY',\n WEEK = 'WEEK',\n MONTH = 'MONTH',\n YEAR = 'YEAR',\n}\n\n/** @enumType */\nexport type FeaturePeriodWithLiterals =\n | FeaturePeriod\n | 'NO_PERIOD'\n | 'MILLISECOND'\n | 'SECOND'\n | 'MINUTE'\n | 'HOUR'\n | 'DAY'\n | 'WEEK'\n | 'MONTH'\n | 'YEAR';\n\nexport interface QuotaInfo {\n /**\n * Aggregation of how often the customer is allowed to use the feature at the time of the request.\n * `null` means that the customer has unlimited access to the feature.\n */\n limit?: string | null;\n /**\n * Deprecated because a feature can have multiple periods defined. Use `period` in `breakdown` entries instead.\n * Time frame for the usage limitation. `NO_PERIOD` means that `remainingUsage`\n * isn't automatically reset to the feature's `limit` after a specific period.\n * You may still manually call\n * [Reset Usage Counter](https://bo.wix.com/wix-docs/rest/premium/premium-features-manager/reset-usage-counter).\n * @deprecated\n * @replacedBy breakdown.period\n * @targetRemovalDate 2026-03-31\n */\n period?: FeaturePeriodWithLiterals;\n /**\n * Aggregation of how often the customer has used the feature.\n * This value is retrieved from the Quota Manager/Rate Limiter system. If the\n * `exclude_quota_usage` field in the `ListFeaturesRequest` was set to `true`,\n * this field will contain the value `-1`.\n */\n currentUsage?: string;\n /**\n * Aggregation of how often the customer can still use the feature.\n * `null` means that the customer has unlimited access to the feature.\n * This value is retrieved from the Quota Manager/Rate Limiter system. If the\n * `exclude_quota_usage` field in the `ListFeaturesRequest` was set to `true`,\n * this field will not be populated.\n */\n remainingUsage?: string | null;\n /**\n * Breakdown of quota information entries, entry per feature instance.\n * @maxSize 100\n */\n breakdown?: QuotaInfoEntry[];\n}\n\nexport interface QuotaInfoEntry {\n /**\n * If quota is of free feature, the id would be empty (None).\n * If quota is of premium feature, this is the ID of the feature instance.\n * @format GUID\n */\n featureInstanceId?: string | null;\n /**\n * How often the customer is allowed to use the feature during the specified\n * period. `null` means that the customer has unlimited access to the feature.\n */\n limit?: string | null;\n /**\n * Time frame for the usage limitation. `NO_PERIOD` means that `remainingUsage`\n * isn't automatically reset to the feature's `limit` after a specific period.\n * You may still manually call\n * [Reset Usage Counter](https://bo.wix.com/wix-docs/rest/premium/premium-features-manager/reset-usage-counter).\n */\n period?: FeaturePeriodWithLiterals;\n /**\n * How often the customer has used the feature during the current\n * period.\n * This value is retrieved from the Quota Manager/Rate Limiter system. If the\n * `exclude_quota_usage` field in the `ListFeaturesRequest` was set to `true`,\n * this field will contain the value `-1`.\n */\n currentUsage?: string;\n /**\n * How often the customer can still use the feature during the current\n * period. `null` means that the customer has unlimited access to the feature.\n * This value is retrieved from the Quota Manager/Rate Limiter system. If the\n * `exclude_quota_usage` field in the `ListFeaturesRequest` was set to `true`,\n * this field will not be populated.\n */\n remainingUsage?: string | null;\n /**\n * ID of the subscription to which the feature instance belongs.\n * @format GUID\n */\n subscriptionId?: string | null;\n}\n\n/** Subscription transferred from another account, features on the current account were enabled. */\nexport interface TransferredFromAnotherAccountReason {\n /**\n * Information about a transfer from another account.\n * @format GUID\n */\n transferredFromAccount?: string;\n}\n\n/** Subscription moved from one site to another in the same account, features enabled on the target site */\nexport interface ReassignedFromSiteReason {\n /**\n * Information about a transfer from another site.\n * @format GUID\n */\n reassignedFromMetasite?: string;\n}\n\n/** Subscription was floating and assigned to site, features enabled on the target site */\nexport interface AssignedFromFloatingReason {}\n\n/** New subscription created and features created as enabled */\nexport interface NewFeatureReason {}\n\n/** Subscription was upgraded or downgraded, as a result new features enabled, missing features disabled , quantities are updated */\nexport interface ContractSwitchedReason {}\n\n/** a call to CreateFeature in features-writer, creates feature that is not attached to subscription */\nexport interface ManualFeatureCreationReason {}\n\n/** Subscription created due to migration from old premium model */\nexport interface MigratedFromLegacyReason {}\n\n/** Feature disabled and can be enabled in the future */\nexport interface FeatureDisabled extends FeatureDisabledReasonOneOf {\n /** Information about a feature that's no longer assigned to a site. */\n unassingedToFloating?: UnAssingedToFloatingReason;\n /**\n * Information about a feature that's been replaced by a feature from a\n * different subscription.\n */\n replacedByAnotherSubscription?: ReplacedByAnotherSubscriptionReason;\n /**\n * Information about a feature that's been reassigned to a different\n * site.\n */\n reassignedToAnotherSite?: ReassignedToAnotherSiteReason;\n /**\n * Disabled feature. Includes information about the feature's new state,\n * possibly its new context.\n */\n feature?: Feature;\n /**\n * ID of the meta site for which the feature has been disabled.\n * @format GUID\n */\n metaSiteId?: string | null;\n}\n\n/** @oneof */\nexport interface FeatureDisabledReasonOneOf {\n /** Information about a feature that's no longer assigned to a site. */\n unassingedToFloating?: UnAssingedToFloatingReason;\n /**\n * Information about a feature that's been replaced by a feature from a\n * different subscription.\n */\n replacedByAnotherSubscription?: ReplacedByAnotherSubscriptionReason;\n /**\n * Information about a feature that's been reassigned to a different\n * site.\n */\n reassignedToAnotherSite?: ReassignedToAnotherSiteReason;\n}\n\n/** Subscription was unassigned from the site and moved into floating state */\nexport interface UnAssingedToFloatingReason {}\n\n/** Another subscription was assigned to the site, causing existing features on this site to be disabled */\nexport interface ReplacedByAnotherSubscriptionReason {}\n\n/** Subscription was assigned to another site, causing features on the origin site to be disabled. */\nexport interface ReassignedToAnotherSiteReason {\n /**\n * Information about a transfer to the site.\n * @format GUID\n */\n reassignedToMetasite?: string;\n}\n\n/** Feature updated, for example Quota was increased due to upgrade */\nexport interface FeatureUpdated\n extends FeatureUpdatedPreviousQuantityInfoOneOf,\n FeatureUpdatedReasonOneOf {\n /** Information about a feature that doesn't have a usage quota. */\n booleanFeature?: BooleanFeature;\n /** Information about a feature that has a usage quota. */\n quotaFeature?: QuotaFeature;\n /** Information about the contract switch. */\n contractSwitched?: ContractSwitchedReason;\n /**\n * Updated feature. Includes information about the feature's new state and\n * possibly its new context.\n */\n feature?: Feature;\n}\n\n/** @oneof */\nexport interface FeatureUpdatedPreviousQuantityInfoOneOf {\n /** Information about a feature that doesn't have a usage quota. */\n booleanFeature?: BooleanFeature;\n /** Information about a feature that has a usage quota. */\n quotaFeature?: QuotaFeature;\n}\n\n/** @oneof */\nexport interface FeatureUpdatedReasonOneOf {\n /** Information about the contract switch. */\n contractSwitched?: ContractSwitchedReason;\n}\n\n/** Feature was permanently cancelled */\nexport interface FeatureCancelled extends FeatureCancelledReasonOneOf {\n /** Information about a transfer to the account. */\n transferredToAnotherAccount?: TransferredToAnotherAccountReason;\n /** Information about the contract switch. */\n contractSwitched?: ContractSwitchedReason;\n /** Information about the feature cancellation. */\n cancelRequest?: CancelRequestedReason;\n /** Canceled feature. */\n feature?: Feature;\n /**\n * Information about a transfer to the account.\n * __Deprecated__. Use `reason.transferred_to_account` instead.\n * @format GUID\n */\n transferredToAccount?: string | null;\n}\n\n/** @oneof */\nexport interface FeatureCancelledReasonOneOf {\n /** Information about a transfer to the account. */\n transferredToAnotherAccount?: TransferredToAnotherAccountReason;\n /** Information about the contract switch. */\n contractSwitched?: ContractSwitchedReason;\n /** Information about the feature cancellation. */\n cancelRequest?: CancelRequestedReason;\n}\n\n/** Subscription was transferred to another account, features in the origin account were cancelled */\nexport interface TransferredToAnotherAccountReason {\n /**\n * Information about a transfer to the account.\n * @format GUID\n */\n transferredToAccount?: string;\n}\n\n/** Cancellation was requested from the subscription manager api, might be a result of billing event, or direct call */\nexport interface CancelRequestedReason {}\n\nexport interface Empty {}\n\nexport interface LoyaltyAppInstallation {\n type?: V1TypeWithLiterals;\n}\n\nexport enum V1Type {\n UNSPECIFIED = 'UNSPECIFIED',\n INSTALLED = 'INSTALLED',\n DELETED = 'DELETED',\n}\n\n/** @enumType */\nexport type V1TypeWithLiterals =\n | V1Type\n | 'UNSPECIFIED'\n | 'INSTALLED'\n | 'DELETED';\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * 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.\n * 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.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entity?: string;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface BaseEventMetadata {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n}\n\nexport interface EventMetadata extends BaseEventMetadata {\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * 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.\n * 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.\n */\n entityEventSequence?: string | null;\n}\n\nexport interface ProgramUpdatedEnvelope {\n entity: LoyaltyProgram;\n metadata: EventMetadata;\n}\n\n/**\n * Triggered when a loyalty program is updated.\n * @permissionScope Read Loyalty\n * @permissionScopeId SCOPE.DC-LOYALTY.READ-LOYALTY\n * @permissionScope Manage Loyalty\n * @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY\n * @permissionScope Manage Restaurants - all permissions\n * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES\n * @permissionId LOYALTY.READ_PROGRAM\n * @webhook\n * @eventType wix.loyalty.v1.program_updated\n * @serviceIdentifier com.wixpress.loyalty.program.LoyaltyPrograms\n * @slug updated\n */\nexport declare function onProgramUpdated(\n handler: (event: ProgramUpdatedEnvelope) => void | Promise<void>\n): void;\n\n/**\n * Retrieves the loyalty program.\n * @public\n * @permissionId LOYALTY.READ_PROGRAM\n * @applicableIdentity APP\n * @fqn com.wixpress.loyalty.program.LoyaltyPrograms.GetLoyaltyProgram\n */\nexport async function getLoyaltyProgram(): Promise<\n NonNullablePaths<\n GetLoyaltyProgramResponse,\n | `loyaltyProgram.status`\n | `loyaltyProgram.pointsExpiration.status`\n | `loyaltyProgram.pointsExpiration.monthsOfInactivity`\n | `loyaltyProgram.pointsExpiration.expiringPointsPercentage`\n | `loyaltyProgram.premiumFeatures.loyaltyProgram`\n | `loyaltyProgram.premiumFeatures.tiers`\n | `loyaltyProgram.premiumFeatures.pointsExpiration`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({});\n\n const reqOpts = ambassadorWixLoyaltyV1Program.getLoyaltyProgram(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [{ path: 'loyaltyProgram.pointDefinition.icon' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {},\n singleArgumentUnchanged: false,\n },\n []\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves loyalty programs for all metasites that the caller is a member of.\n *\n * Must be called with user identity.\n * @public\n * @permissionId LOYALTY.PROGRAM_BULK_READ\n * @fqn com.wixpress.loyalty.program.LoyaltyPrograms.BulkGetLoyaltyProgram\n */\nexport async function bulkGetLoyaltyProgram(): Promise<\n NonNullablePaths<\n BulkGetLoyaltyProgramResponse,\n | `programInSites`\n | `programInSites.${number}.metaSiteId`\n | `programInSites.${number}.loyaltyProgram.status`\n | `programInSites.${number}.loyaltyProgram.pointsExpiration.status`\n | `programInSites.${number}.loyaltyProgram.pointsExpiration.monthsOfInactivity`\n | `programInSites.${number}.loyaltyProgram.pointsExpiration.expiringPointsPercentage`\n | `programInSites.${number}.loyaltyProgram.premiumFeatures.loyaltyProgram`\n | `programInSites.${number}.loyaltyProgram.premiumFeatures.tiers`\n | `programInSites.${number}.loyaltyProgram.premiumFeatures.pointsExpiration`,\n 6\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({});\n\n const reqOpts = ambassadorWixLoyaltyV1Program.bulkGetLoyaltyProgram(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'programInSites.loyaltyProgram.pointDefinition.icon' },\n ],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {},\n singleArgumentUnchanged: false,\n },\n []\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Updates a site's loyalty program.\n *\n * This method updates the name of the loyalty program and the details of the collectible points unit.\n * To activate the loyalty program, call Activate Loyalty Program.\n * @param loyaltyProgram - Loyalty program fields to update.\n * @public\n * @requiredField loyaltyProgram\n * @permissionId LOYALTY.MANAGE_PROGRAM\n * @applicableIdentity APP\n * @fqn com.wixpress.loyalty.program.LoyaltyPrograms.UpdateLoyaltyProgram\n */\nexport async function updateLoyaltyProgram(\n loyaltyProgram: LoyaltyProgram\n): Promise<\n NonNullablePaths<\n UpdateLoyaltyProgramResponse,\n | `loyaltyProgram.status`\n | `loyaltyProgram.pointsExpiration.status`\n | `loyaltyProgram.pointsExpiration.monthsOfInactivity`\n | `loyaltyProgram.pointsExpiration.expiringPointsPercentage`\n | `loyaltyProgram.premiumFeatures.loyaltyProgram`\n | `loyaltyProgram.premiumFeatures.tiers`\n | `loyaltyProgram.premiumFeatures.pointsExpiration`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = transformPaths(\n renameKeysFromSDKRequestToRESTRequest({ loyaltyProgram: loyaltyProgram }),\n [\n {\n transformFn: transformSDKImageToRESTImage,\n paths: [{ path: 'loyaltyProgram.pointDefinition.icon' }],\n },\n ]\n );\n\n const reqOpts = ambassadorWixLoyaltyV1Program.updateLoyaltyProgram(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [{ path: 'loyaltyProgram.pointDefinition.icon' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { loyaltyProgram: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['loyaltyProgram']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Activates a loyalty program.\n *\n * Initially, when a loyalty program is installed, the status is set to `\"DRAFT\"`.\n * You can change the program's status to `\"ACTIVE\"` with this method or through the [dashboard](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Floyalty-accounts/wizard/).\n * A site's customers can only earn or redeem points while the program is `\"ACTIVE\"`.\n *\n * This method only updates the status of a loyalty program. To make other updates to the program, call Update Loyalty Program.\n *\n * To temporarily pause your loyalty program, call Pause Loyalty Program and see [Pausing Your Loyalty Program](https://support.wix.com/en/article/wix-loyalty-program-pausing-your-loyalty-program) for more information.\n * @public\n * @permissionId LOYALTY.MANAGE_PROGRAM\n * @applicableIdentity APP\n * @fqn com.wixpress.loyalty.program.LoyaltyPrograms.ActivateLoyaltyProgram\n */\nexport async function activateLoyaltyProgram(): Promise<\n NonNullablePaths<\n ActivateLoyaltyProgramResponse,\n | `loyaltyProgram.status`\n | `loyaltyProgram.pointsExpiration.status`\n | `loyaltyProgram.pointsExpiration.monthsOfInactivity`\n | `loyaltyProgram.pointsExpiration.expiringPointsPercentage`\n | `loyaltyProgram.premiumFeatures.loyaltyProgram`\n | `loyaltyProgram.premiumFeatures.tiers`\n | `loyaltyProgram.premiumFeatures.pointsExpiration`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({});\n\n const reqOpts = ambassadorWixLoyaltyV1Program.activateLoyaltyProgram(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [{ path: 'loyaltyProgram.pointDefinition.icon' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {},\n singleArgumentUnchanged: false,\n },\n []\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Changes the program status to `\"PAUSED\"`.\n *\n * See [Pausing Your Loyalty Program](https://support.wix.com/en/article/wix-loyalty-program-pausing-your-loyalty-program) for more information.\n * @public\n * @permissionId LOYALTY.MANAGE_PROGRAM\n * @applicableIdentity APP\n * @fqn com.wixpress.loyalty.program.LoyaltyPrograms.PauseLoyaltyProgram\n */\nexport async function pauseLoyaltyProgram(): Promise<\n NonNullablePaths<\n PauseLoyaltyProgramResponse,\n | `loyaltyProgram.status`\n | `loyaltyProgram.pointsExpiration.status`\n | `loyaltyProgram.pointsExpiration.monthsOfInactivity`\n | `loyaltyProgram.pointsExpiration.expiringPointsPercentage`\n | `loyaltyProgram.premiumFeatures.loyaltyProgram`\n | `loyaltyProgram.premiumFeatures.tiers`\n | `loyaltyProgram.premiumFeatures.pointsExpiration`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({});\n\n const reqOpts = ambassadorWixLoyaltyV1Program.pauseLoyaltyProgram(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [{ path: 'loyaltyProgram.pointDefinition.icon' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {},\n singleArgumentUnchanged: false,\n },\n []\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves information about the available loyalty program premium features.\n * @public\n * @permissionId LOYALTY.READ_PROGRAM\n * @applicableIdentity APP\n * @fqn com.wixpress.loyalty.program.LoyaltyPrograms.GetLoyaltyProgramPremiumFeatures\n */\nexport async function getLoyaltyProgramPremiumFeatures(): Promise<\n NonNullablePaths<\n GetLoyaltyProgramPremiumFeaturesResponse,\n `loyaltyProgram` | `tiers` | `pointsExpiration`,\n 2\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({});\n\n const reqOpts =\n ambassadorWixLoyaltyV1Program.getLoyaltyProgramPremiumFeatures(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {},\n singleArgumentUnchanged: false,\n },\n []\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Updates the `pointsExpiration` status to `\"ENABLED\"`.\n * @public\n * @permissionId LOYALTY.MANAGE_PROGRAM\n * @applicableIdentity APP\n * @fqn com.wixpress.loyalty.program.LoyaltyPrograms.EnablePointsExpiration\n */\nexport async function enablePointsExpiration(): Promise<\n NonNullablePaths<\n EnablePointsExpirationResponse,\n | `loyaltyProgram.status`\n | `loyaltyProgram.pointsExpiration.status`\n | `loyaltyProgram.pointsExpiration.monthsOfInactivity`\n | `loyaltyProgram.pointsExpiration.expiringPointsPercentage`\n | `loyaltyProgram.premiumFeatures.loyaltyProgram`\n | `loyaltyProgram.premiumFeatures.tiers`\n | `loyaltyProgram.premiumFeatures.pointsExpiration`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({});\n\n const reqOpts = ambassadorWixLoyaltyV1Program.enablePointsExpiration(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [{ path: 'loyaltyProgram.pointDefinition.icon' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {},\n singleArgumentUnchanged: false,\n },\n []\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Updates the `pointsExpiration` status to `\"DISABLED\"`.\n * @public\n * @permissionId LOYALTY.MANAGE_PROGRAM\n * @applicableIdentity APP\n * @fqn com.wixpress.loyalty.program.LoyaltyPrograms.DisablePointsExpiration\n */\nexport async function disablePointsExpiration(): Promise<\n NonNullablePaths<\n DisablePointsExpirationResponse,\n | `loyaltyProgram.status`\n | `loyaltyProgram.pointsExpiration.status`\n | `loyaltyProgram.pointsExpiration.monthsOfInactivity`\n | `loyaltyProgram.pointsExpiration.expiringPointsPercentage`\n | `loyaltyProgram.premiumFeatures.loyaltyProgram`\n | `loyaltyProgram.premiumFeatures.tiers`\n | `loyaltyProgram.premiumFeatures.pointsExpiration`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({});\n\n const reqOpts =\n ambassadorWixLoyaltyV1Program.disablePointsExpiration(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [{ path: 'loyaltyProgram.pointDefinition.icon' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {},\n singleArgumentUnchanged: false,\n },\n []\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveComWixpressLoyaltyProgramLoyaltyProgramsUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/_api/loyalty-programs',\n destPath: '',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/loyalty-programs',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/_api/loyalty-programs',\n destPath: '',\n },\n ],\n 'editor.wixapps.net': [\n {\n srcPath: '/_api/loyalty-programs',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/loyalty-programs',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/loyalty-programs',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/loyalty-programs',\n destPath: '',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/loyalty-programs',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/loyalty-programs',\n destPath: '',\n },\n ],\n '*.pub.wix-code.com': [\n {\n srcPath: '/_api/loyalty-programs',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/loyalty-programs',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_loyalty_programs';\n\n/** Retrieves the loyalty program. */\nexport function getLoyaltyProgram(payload: object): RequestOptionsFactory<any> {\n function __getLoyaltyProgram({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.loyalty.v1.program',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.loyalty.program.LoyaltyPrograms.GetLoyaltyProgram',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressLoyaltyProgramLoyaltyProgramsUrl({\n protoPath: '/v1/program',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'loyaltyProgram.createdDate' },\n { path: 'loyaltyProgram.updatedDate' },\n { path: 'loyaltyProgram.pointDefinition.icon.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'loyaltyProgram.pointDefinition.icon.focalPoint.x' },\n { path: 'loyaltyProgram.pointDefinition.icon.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getLoyaltyProgram;\n}\n\n/**\n * Retrieves loyalty programs for all metasites that the caller is a member of.\n *\n * Must be called with user identity.\n */\nexport function bulkGetLoyaltyProgram(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkGetLoyaltyProgram({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.loyalty.v1.program',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.loyalty.program.LoyaltyPrograms.BulkGetLoyaltyProgram',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressLoyaltyProgramLoyaltyProgramsUrl({\n protoPath: '/v1/bulk/programs',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'programInSites.loyaltyProgram.createdDate' },\n { path: 'programInSites.loyaltyProgram.updatedDate' },\n {\n path: 'programInSites.loyaltyProgram.pointDefinition.icon.urlExpirationDate',\n },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n {\n path: 'programInSites.loyaltyProgram.pointDefinition.icon.focalPoint.x',\n },\n {\n path: 'programInSites.loyaltyProgram.pointDefinition.icon.focalPoint.y',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkGetLoyaltyProgram;\n}\n\n/**\n * Updates a site's loyalty program.\n *\n * This method updates the name of the loyalty program and the details of the collectible points unit.\n * To activate the loyalty program, call Activate Loyalty Program.\n */\nexport function updateLoyaltyProgram(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateLoyaltyProgram({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'loyaltyProgram.createdDate' },\n { path: 'loyaltyProgram.updatedDate' },\n { path: 'loyaltyProgram.pointDefinition.icon.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'loyaltyProgram.pointDefinition.icon.focalPoint.x' },\n { path: 'loyaltyProgram.pointDefinition.icon.focalPoint.y' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.loyalty.v1.program',\n method: 'PATCH' as any,\n methodFqn:\n 'com.wixpress.loyalty.program.LoyaltyPrograms.UpdateLoyaltyProgram',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressLoyaltyProgramLoyaltyProgramsUrl({\n protoPath: '/v1/program',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'loyaltyProgram.createdDate' },\n { path: 'loyaltyProgram.updatedDate' },\n { path: 'loyaltyProgram.pointDefinition.icon.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'loyaltyProgram.pointDefinition.icon.focalPoint.x' },\n { path: 'loyaltyProgram.pointDefinition.icon.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateLoyaltyProgram;\n}\n\n/**\n * Activates a loyalty program.\n *\n * Initially, when a loyalty program is installed, the status is set to `\"DRAFT\"`.\n * You can change the program's status to `\"ACTIVE\"` with this method or through the [dashboard](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Floyalty-accounts/wizard/).\n * A site's customers can only earn or redeem points while the program is `\"ACTIVE\"`.\n *\n * This method only updates the status of a loyalty program. To make other updates to the program, call Update Loyalty Program.\n *\n * To temporarily pause your loyalty program, call Pause Loyalty Program and see [Pausing Your Loyalty Program](https://support.wix.com/en/article/wix-loyalty-program-pausing-your-loyalty-program) for more information.\n */\nexport function activateLoyaltyProgram(\n payload: object\n): RequestOptionsFactory<any> {\n function __activateLoyaltyProgram({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.loyalty.v1.program',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.loyalty.program.LoyaltyPrograms.ActivateLoyaltyProgram',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressLoyaltyProgramLoyaltyProgramsUrl({\n protoPath: '/v1/program/activate',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'loyaltyProgram.createdDate' },\n { path: 'loyaltyProgram.updatedDate' },\n { path: 'loyaltyProgram.pointDefinition.icon.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'loyaltyProgram.pointDefinition.icon.focalPoint.x' },\n { path: 'loyaltyProgram.pointDefinition.icon.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __activateLoyaltyProgram;\n}\n\n/**\n * Changes the program status to `\"PAUSED\"`.\n *\n * See [Pausing Your Loyalty Program](https://support.wix.com/en/article/wix-loyalty-program-pausing-your-loyalty-program) for more information.\n */\nexport function pauseLoyaltyProgram(\n payload: object\n): RequestOptionsFactory<any> {\n function __pauseLoyaltyProgram({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.loyalty.v1.program',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.loyalty.program.LoyaltyPrograms.PauseLoyaltyProgram',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressLoyaltyProgramLoyaltyProgramsUrl({\n protoPath: '/v1/program/pause',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'loyaltyProgram.createdDate' },\n { path: 'loyaltyProgram.updatedDate' },\n { path: 'loyaltyProgram.pointDefinition.icon.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'loyaltyProgram.pointDefinition.icon.focalPoint.x' },\n { path: 'loyaltyProgram.pointDefinition.icon.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __pauseLoyaltyProgram;\n}\n\n/** Retrieves information about the available loyalty program premium features. */\nexport function getLoyaltyProgramPremiumFeatures(\n payload: object\n): RequestOptionsFactory<any> {\n function __getLoyaltyProgramPremiumFeatures({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.loyalty.v1.program',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.loyalty.program.LoyaltyPrograms.GetLoyaltyProgramPremiumFeatures',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressLoyaltyProgramLoyaltyProgramsUrl({\n protoPath: '/v1/program/premium-features',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getLoyaltyProgramPremiumFeatures;\n}\n\n/** Updates the `pointsExpiration` status to `\"ENABLED\"`. */\nexport function enablePointsExpiration(\n payload: object\n): RequestOptionsFactory<any> {\n function __enablePointsExpiration({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.loyalty.v1.program',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.loyalty.program.LoyaltyPrograms.EnablePointsExpiration',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressLoyaltyProgramLoyaltyProgramsUrl({\n protoPath: '/v1/program/points-expiration/enable',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'loyaltyProgram.createdDate' },\n { path: 'loyaltyProgram.updatedDate' },\n { path: 'loyaltyProgram.pointDefinition.icon.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'loyaltyProgram.pointDefinition.icon.focalPoint.x' },\n { path: 'loyaltyProgram.pointDefinition.icon.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __enablePointsExpiration;\n}\n\n/** Updates the `pointsExpiration` status to `\"DISABLED\"`. */\nexport function disablePointsExpiration(\n payload: object\n): RequestOptionsFactory<any> {\n function __disablePointsExpiration({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.loyalty.v1.program',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.loyalty.program.LoyaltyPrograms.DisablePointsExpiration',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressLoyaltyProgramLoyaltyProgramsUrl({\n protoPath: '/v1/program/points-expiration/disable',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'loyaltyProgram.createdDate' },\n { path: 'loyaltyProgram.updatedDate' },\n { path: 'loyaltyProgram.pointDefinition.icon.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'loyaltyProgram.pointDefinition.icon.focalPoint.x' },\n { path: 'loyaltyProgram.pointDefinition.icon.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __disablePointsExpiration;\n}\n","import {\n getLoyaltyProgram as publicGetLoyaltyProgram,\n bulkGetLoyaltyProgram as publicBulkGetLoyaltyProgram,\n updateLoyaltyProgram as publicUpdateLoyaltyProgram,\n activateLoyaltyProgram as publicActivateLoyaltyProgram,\n pauseLoyaltyProgram as publicPauseLoyaltyProgram,\n getLoyaltyProgramPremiumFeatures as publicGetLoyaltyProgramPremiumFeatures,\n enablePointsExpiration as publicEnablePointsExpiration,\n disablePointsExpiration as publicDisablePointsExpiration,\n} from './loyalty-v1-program-programs.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { createEventModule } from '@wix/sdk-runtime/event-definition-modules';\nimport {\n BuildRESTFunction,\n MaybeContext,\n BuildEventDefinition,\n} from '@wix/sdk-types';\nimport { onProgramUpdated as publicOnProgramUpdated } from './loyalty-v1-program-programs.public.js';\n\nexport const getLoyaltyProgram: MaybeContext<\n BuildRESTFunction<typeof publicGetLoyaltyProgram> &\n typeof publicGetLoyaltyProgram\n> = /*#__PURE__*/ createRESTModule(publicGetLoyaltyProgram);\nexport const bulkGetLoyaltyProgram: MaybeContext<\n BuildRESTFunction<typeof publicBulkGetLoyaltyProgram> &\n typeof publicBulkGetLoyaltyProgram\n> = /*#__PURE__*/ createRESTModule(publicBulkGetLoyaltyProgram);\nexport const updateLoyaltyProgram: MaybeContext<\n BuildRESTFunction<typeof publicUpdateLoyaltyProgram> &\n typeof publicUpdateLoyaltyProgram\n> = /*#__PURE__*/ createRESTModule(publicUpdateLoyaltyProgram);\nexport const activateLoyaltyProgram: MaybeContext<\n BuildRESTFunction<typeof publicActivateLoyaltyProgram> &\n typeof publicActivateLoyaltyProgram\n> = /*#__PURE__*/ createRESTModule(publicActivateLoyaltyProgram);\nexport const pauseLoyaltyProgram: MaybeContext<\n BuildRESTFunction<typeof publicPauseLoyaltyProgram> &\n typeof publicPauseLoyaltyProgram\n> = /*#__PURE__*/ createRESTModule(publicPauseLoyaltyProgram);\nexport const getLoyaltyProgramPremiumFeatures: MaybeContext<\n BuildRESTFunction<typeof publicGetLoyaltyProgramPremiumFeatures> &\n typeof publicGetLoyaltyProgramPremiumFeatures\n> = /*#__PURE__*/ createRESTModule(publicGetLoyaltyProgramPremiumFeatures);\nexport const enablePointsExpiration: MaybeContext<\n BuildRESTFunction<typeof publicEnablePointsExpiration> &\n typeof publicEnablePointsExpiration\n> = /*#__PURE__*/ createRESTModule(publicEnablePointsExpiration);\nexport const disablePointsExpiration: MaybeContext<\n BuildRESTFunction<typeof publicDisablePointsExpiration> &\n typeof publicDisablePointsExpiration\n> = /*#__PURE__*/ createRESTModule(publicDisablePointsExpiration);\n/**\n * Triggered when a loyalty program is updated.\n */\nexport const onProgramUpdated: BuildEventDefinition<\n typeof publicOnProgramUpdated\n> &\n typeof publicOnProgramUpdated = createEventModule(publicOnProgramUpdated);\n\nexport {\n ProgramStatus,\n Status,\n Type,\n FeaturePeriod,\n V1Type,\n WebhookIdentityType,\n} from './loyalty-v1-program-programs.universal.js';\nexport {\n LoyaltyProgram,\n PointDefinition,\n FocalPoint,\n PointsExpiration,\n PremiumFeatures,\n SocialMediaSettings,\n SocialMediaChannel,\n GetLoyaltyProgramRequest,\n GetLoyaltyProgramResponse,\n BulkGetLoyaltyProgramRequest,\n BulkGetLoyaltyProgramResponse,\n ProgramInSite,\n UpdateLoyaltyProgramRequest,\n UpdateLoyaltyProgramResponse,\n PointsExpirationConfigurationChanged,\n PointsExpirationChanges,\n ActivateLoyaltyProgramRequest,\n ActivateLoyaltyProgramResponse,\n LoyaltyProgramActivated,\n PauseLoyaltyProgramRequest,\n PauseLoyaltyProgramResponse,\n GetLoyaltyProgramDescriptionRequest,\n GetLoyaltyProgramDescriptionResponse,\n UpdateLoyaltyProgramDescriptionRequest,\n UpdateLoyaltyProgramDescriptionResponse,\n LoyaltyProgramDescriptionUpdated,\n GetLoyaltyProgramPremiumFeaturesRequest,\n GetLoyaltyProgramPremiumFeaturesResponse,\n EnablePointsExpirationRequest,\n EnablePointsExpirationResponse,\n PointsExpirationEnabled,\n DisablePointsExpirationRequest,\n DisablePointsExpirationResponse,\n PointsExpirationDisabled,\n FeatureEvent,\n FeatureEventEventOneOf,\n FeatureEnabled,\n FeatureEnabledReasonOneOf,\n Feature,\n FeatureQuantityInfoOneOf,\n FeatureContext,\n BooleanFeature,\n QuotaFeature,\n QuotaInfo,\n QuotaInfoEntry,\n TransferredFromAnotherAccountReason,\n ReassignedFromSiteReason,\n AssignedFromFloatingReason,\n NewFeatureReason,\n ContractSwitchedReason,\n ManualFeatureCreationReason,\n MigratedFromLegacyReason,\n FeatureDisabled,\n FeatureDisabledReasonOneOf,\n UnAssingedToFloatingReason,\n ReplacedByAnotherSubscriptionReason,\n ReassignedToAnotherSiteReason,\n FeatureUpdated,\n FeatureUpdatedPreviousQuantityInfoOneOf,\n FeatureUpdatedReasonOneOf,\n FeatureCancelled,\n FeatureCancelledReasonOneOf,\n TransferredToAnotherAccountReason,\n CancelRequestedReason,\n Empty,\n LoyaltyAppInstallation,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n RestoreInfo,\n EntityUpdatedEvent,\n EntityDeletedEvent,\n ActionEvent,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n BaseEventMetadata,\n EventMetadata,\n ProgramUpdatedEnvelope,\n} from './loyalty-v1-program-programs.universal.js';\nexport {\n ProgramStatusWithLiterals,\n StatusWithLiterals,\n TypeWithLiterals,\n FeaturePeriodWithLiterals,\n V1TypeWithLiterals,\n WebhookIdentityTypeWithLiterals,\n} from './loyalty-v1-program-programs.universal.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gCAAAA;AAAA,EAAA,6BAAAC;AAAA,EAAA,+BAAAC;AAAA,EAAA,8BAAAC;AAAA,EAAA,yBAAAC;AAAA,EAAA,wCAAAC;AAAA,EAAA,wBAAAC;AAAA,EAAA,2BAAAC;AAAA,EAAA,4BAAAC;AA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;AAAA,EACH;AACJ,EAA0B;;;AG3R1B,IAAAC,uBAAiC;AACjC,sCAAkC;AAQ3B,IAAMC,qBAGK,2DAAiBA,kBAAuB;AACnD,IAAMC,yBAGK,2DAAiBA,sBAA2B;AACvD,IAAMC,wBAGK,2DAAiBA,qBAA0B;AACtD,IAAMC,0BAGK,2DAAiBA,uBAA4B;AACxD,IAAMC,uBAGK,2DAAiBA,oBAAyB;AACrD,IAAMC,oCAGK,2DAAiBA,iCAAsC;AAClE,IAAMC,0BAGK,2DAAiBA,uBAA4B;AACxD,IAAMC,2BAGK,2DAAiBA,wBAA6B;AAIzD,IAAMC,wBAGqB,mDAAkB,gBAAsB;","names":["activateLoyaltyProgram","bulkGetLoyaltyProgram","disablePointsExpiration","enablePointsExpiration","getLoyaltyProgram","getLoyaltyProgramPremiumFeatures","onProgramUpdated","pauseLoyaltyProgram","updateLoyaltyProgram","import_rename_all_nested_keys","import_image","import_timestamp","import_transform_paths","import_float","import_timestamp","import_rest_modules","payload","import_image","import_transform_paths","ProgramStatus","Status","Type","FeaturePeriod","V1Type","WebhookIdentityType","getLoyaltyProgram","sdkTransformError","bulkGetLoyaltyProgram","updateLoyaltyProgram","activateLoyaltyProgram","pauseLoyaltyProgram","getLoyaltyProgramPremiumFeatures","enablePointsExpiration","disablePointsExpiration","getLoyaltyProgram","bulkGetLoyaltyProgram","updateLoyaltyProgram","activateLoyaltyProgram","pauseLoyaltyProgram","getLoyaltyProgramPremiumFeatures","enablePointsExpiration","disablePointsExpiration","import_rest_modules","getLoyaltyProgram","bulkGetLoyaltyProgram","updateLoyaltyProgram","activateLoyaltyProgram","pauseLoyaltyProgram","getLoyaltyProgramPremiumFeatures","enablePointsExpiration","disablePointsExpiration","onProgramUpdated"]}
|
|
1
|
+
{"version":3,"sources":["../../index.ts","../../src/loyalty-v1-program-programs.public.ts","../../src/loyalty-v1-program-programs.universal.ts","../../src/loyalty-v1-program-programs.http.ts","../../src/loyalty-v1-program-programs.context.ts"],"sourcesContent":["export * from './src/loyalty-v1-program-programs.context.js';\n","import { renameKeysFromRESTResponseToSDKResponse } from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { transformRESTImageToSDKImage } from '@wix/sdk-runtime/transformations/image';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { EventDefinition, HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n ActivateLoyaltyProgramResponse,\n BulkGetLoyaltyProgramResponse,\n DisablePointsExpirationResponse,\n EnablePointsExpirationResponse,\n GetLoyaltyProgramPremiumFeaturesResponse,\n GetLoyaltyProgramResponse,\n LoyaltyProgram,\n PauseLoyaltyProgramResponse,\n ProgramUpdatedEnvelope,\n UpdateLoyaltyProgramResponse,\n activateLoyaltyProgram as universalActivateLoyaltyProgram,\n bulkGetLoyaltyProgram as universalBulkGetLoyaltyProgram,\n disablePointsExpiration as universalDisablePointsExpiration,\n enablePointsExpiration as universalEnablePointsExpiration,\n getLoyaltyProgram as universalGetLoyaltyProgram,\n getLoyaltyProgramPremiumFeatures as universalGetLoyaltyProgramPremiumFeatures,\n pauseLoyaltyProgram as universalPauseLoyaltyProgram,\n updateLoyaltyProgram as universalUpdateLoyaltyProgram,\n} from './loyalty-v1-program-programs.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/loyalty' };\n\nexport function getLoyaltyProgram(\n httpClient: HttpClient\n): GetLoyaltyProgramSignature {\n return () =>\n universalGetLoyaltyProgram(\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetLoyaltyProgramSignature {\n /**\n * Retrieves the loyalty program.\n */\n (): Promise<\n NonNullablePaths<\n GetLoyaltyProgramResponse,\n | `loyaltyProgram.status`\n | `loyaltyProgram.pointsExpiration.status`\n | `loyaltyProgram.pointsExpiration.monthsOfInactivity`\n | `loyaltyProgram.pointsExpiration.expiringPointsPercentage`\n | `loyaltyProgram.premiumFeatures.loyaltyProgram`\n | `loyaltyProgram.premiumFeatures.tiers`\n | `loyaltyProgram.premiumFeatures.pointsExpiration`,\n 4\n >\n >;\n}\n\nexport function bulkGetLoyaltyProgram(\n httpClient: HttpClient\n): BulkGetLoyaltyProgramSignature {\n return () =>\n universalBulkGetLoyaltyProgram(\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkGetLoyaltyProgramSignature {\n /**\n * Retrieves loyalty programs for all metasites that the caller is a member of.\n *\n * Must be called with user identity.\n */\n (): Promise<\n NonNullablePaths<\n BulkGetLoyaltyProgramResponse,\n | `programInSites`\n | `programInSites.${number}.metaSiteId`\n | `programInSites.${number}.loyaltyProgram.status`\n | `programInSites.${number}.loyaltyProgram.pointsExpiration.status`\n | `programInSites.${number}.loyaltyProgram.pointsExpiration.monthsOfInactivity`\n | `programInSites.${number}.loyaltyProgram.pointsExpiration.expiringPointsPercentage`\n | `programInSites.${number}.loyaltyProgram.premiumFeatures.loyaltyProgram`\n | `programInSites.${number}.loyaltyProgram.premiumFeatures.tiers`\n | `programInSites.${number}.loyaltyProgram.premiumFeatures.pointsExpiration`,\n 6\n >\n >;\n}\n\nexport function updateLoyaltyProgram(\n httpClient: HttpClient\n): UpdateLoyaltyProgramSignature {\n return (loyaltyProgram: LoyaltyProgram) =>\n universalUpdateLoyaltyProgram(\n loyaltyProgram,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface UpdateLoyaltyProgramSignature {\n /**\n * Updates a site's loyalty program.\n *\n * This method updates the name of the loyalty program and the details of the collectible points unit.\n * To activate the loyalty program, call Activate Loyalty Program.\n * @param - Loyalty program fields to update.\n */\n (loyaltyProgram: LoyaltyProgram): Promise<\n NonNullablePaths<\n UpdateLoyaltyProgramResponse,\n | `loyaltyProgram.status`\n | `loyaltyProgram.pointsExpiration.status`\n | `loyaltyProgram.pointsExpiration.monthsOfInactivity`\n | `loyaltyProgram.pointsExpiration.expiringPointsPercentage`\n | `loyaltyProgram.premiumFeatures.loyaltyProgram`\n | `loyaltyProgram.premiumFeatures.tiers`\n | `loyaltyProgram.premiumFeatures.pointsExpiration`,\n 4\n >\n >;\n}\n\nexport function activateLoyaltyProgram(\n httpClient: HttpClient\n): ActivateLoyaltyProgramSignature {\n return () =>\n universalActivateLoyaltyProgram(\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ActivateLoyaltyProgramSignature {\n /**\n * Activates a loyalty program.\n *\n * Initially, when a loyalty program is installed, the status is set to `\"DRAFT\"`.\n * You can change the program's status to `\"ACTIVE\"` with this method or through the [dashboard](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Floyalty-accounts/wizard/).\n * A site's customers can only earn or redeem points while the program is `\"ACTIVE\"`.\n *\n * This method only updates the status of a loyalty program. To make other updates to the program, call Update Loyalty Program.\n *\n * To temporarily pause your loyalty program, call Pause Loyalty Program and see [Pausing Your Loyalty Program](https://support.wix.com/en/article/wix-loyalty-program-pausing-your-loyalty-program) for more information.\n */\n (): Promise<\n NonNullablePaths<\n ActivateLoyaltyProgramResponse,\n | `loyaltyProgram.status`\n | `loyaltyProgram.pointsExpiration.status`\n | `loyaltyProgram.pointsExpiration.monthsOfInactivity`\n | `loyaltyProgram.pointsExpiration.expiringPointsPercentage`\n | `loyaltyProgram.premiumFeatures.loyaltyProgram`\n | `loyaltyProgram.premiumFeatures.tiers`\n | `loyaltyProgram.premiumFeatures.pointsExpiration`,\n 4\n >\n >;\n}\n\nexport function pauseLoyaltyProgram(\n httpClient: HttpClient\n): PauseLoyaltyProgramSignature {\n return () =>\n universalPauseLoyaltyProgram(\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface PauseLoyaltyProgramSignature {\n /**\n * Changes the program status to `\"PAUSED\"`.\n *\n * See [Pausing Your Loyalty Program](https://support.wix.com/en/article/wix-loyalty-program-pausing-your-loyalty-program) for more information.\n */\n (): Promise<\n NonNullablePaths<\n PauseLoyaltyProgramResponse,\n | `loyaltyProgram.status`\n | `loyaltyProgram.pointsExpiration.status`\n | `loyaltyProgram.pointsExpiration.monthsOfInactivity`\n | `loyaltyProgram.pointsExpiration.expiringPointsPercentage`\n | `loyaltyProgram.premiumFeatures.loyaltyProgram`\n | `loyaltyProgram.premiumFeatures.tiers`\n | `loyaltyProgram.premiumFeatures.pointsExpiration`,\n 4\n >\n >;\n}\n\nexport function getLoyaltyProgramPremiumFeatures(\n httpClient: HttpClient\n): GetLoyaltyProgramPremiumFeaturesSignature {\n return () =>\n universalGetLoyaltyProgramPremiumFeatures(\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetLoyaltyProgramPremiumFeaturesSignature {\n /**\n * Retrieves information about the available loyalty program premium features.\n */\n (): Promise<\n NonNullablePaths<\n GetLoyaltyProgramPremiumFeaturesResponse,\n `loyaltyProgram` | `tiers` | `pointsExpiration`,\n 2\n >\n >;\n}\n\nexport function enablePointsExpiration(\n httpClient: HttpClient\n): EnablePointsExpirationSignature {\n return () =>\n universalEnablePointsExpiration(\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface EnablePointsExpirationSignature {\n /**\n * Updates the `pointsExpiration` status to `\"ENABLED\"`.\n */\n (): Promise<\n NonNullablePaths<\n EnablePointsExpirationResponse,\n | `loyaltyProgram.status`\n | `loyaltyProgram.pointsExpiration.status`\n | `loyaltyProgram.pointsExpiration.monthsOfInactivity`\n | `loyaltyProgram.pointsExpiration.expiringPointsPercentage`\n | `loyaltyProgram.premiumFeatures.loyaltyProgram`\n | `loyaltyProgram.premiumFeatures.tiers`\n | `loyaltyProgram.premiumFeatures.pointsExpiration`,\n 4\n >\n >;\n}\n\nexport function disablePointsExpiration(\n httpClient: HttpClient\n): DisablePointsExpirationSignature {\n return () =>\n universalDisablePointsExpiration(\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface DisablePointsExpirationSignature {\n /**\n * Updates the `pointsExpiration` status to `\"DISABLED\"`.\n */\n (): Promise<\n NonNullablePaths<\n DisablePointsExpirationResponse,\n | `loyaltyProgram.status`\n | `loyaltyProgram.pointsExpiration.status`\n | `loyaltyProgram.pointsExpiration.monthsOfInactivity`\n | `loyaltyProgram.pointsExpiration.expiringPointsPercentage`\n | `loyaltyProgram.premiumFeatures.loyaltyProgram`\n | `loyaltyProgram.premiumFeatures.tiers`\n | `loyaltyProgram.premiumFeatures.pointsExpiration`,\n 4\n >\n >;\n}\n\nexport const onProgramUpdated = EventDefinition(\n 'wix.loyalty.v1.program_updated',\n true,\n (event: ProgramUpdatedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'entity.createdDate' },\n { path: 'entity.updatedDate' },\n { path: 'metadata.eventTime' },\n ],\n },\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [{ path: 'entity.pointDefinition.icon' }],\n },\n ])\n )\n)<ProgramUpdatedEnvelope>();\n\nexport {\n ActionEvent,\n ActivateLoyaltyProgramRequest,\n ActivateLoyaltyProgramResponse,\n AssignedFromFloatingReason,\n BaseEventMetadata,\n BooleanFeature,\n BulkGetLoyaltyProgramRequest,\n BulkGetLoyaltyProgramResponse,\n CancelRequestedReason,\n ContractSwitchedReason,\n DisablePointsExpirationRequest,\n DisablePointsExpirationResponse,\n DomainEvent,\n DomainEventBodyOneOf,\n Empty,\n EnablePointsExpirationRequest,\n EnablePointsExpirationResponse,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityUpdatedEvent,\n EventMetadata,\n Feature,\n FeatureCancelled,\n FeatureCancelledReasonOneOf,\n FeatureContext,\n FeatureDisabled,\n FeatureDisabledReasonOneOf,\n FeatureEnabled,\n FeatureEnabledReasonOneOf,\n FeatureEvent,\n FeatureEventEventOneOf,\n FeaturePeriod,\n FeatureQuantityInfoOneOf,\n FeatureUpdated,\n FeatureUpdatedPreviousQuantityInfoOneOf,\n FeatureUpdatedReasonOneOf,\n FocalPoint,\n GetLoyaltyProgramDescriptionRequest,\n GetLoyaltyProgramDescriptionResponse,\n GetLoyaltyProgramPremiumFeaturesRequest,\n GetLoyaltyProgramPremiumFeaturesResponse,\n GetLoyaltyProgramRequest,\n GetLoyaltyProgramResponse,\n IdentificationData,\n IdentificationDataIdOneOf,\n LoyaltyAppInstallation,\n LoyaltyProgram,\n LoyaltyProgramActivated,\n LoyaltyProgramDescriptionUpdated,\n ManualFeatureCreationReason,\n MessageEnvelope,\n MigratedFromLegacyReason,\n NewFeatureReason,\n PauseLoyaltyProgramRequest,\n PauseLoyaltyProgramResponse,\n PointDefinition,\n PointsExpiration,\n PointsExpirationChanges,\n PointsExpirationConfigurationChanged,\n PointsExpirationDisabled,\n PointsExpirationEnabled,\n PremiumFeatures,\n ProgramInSite,\n ProgramStatus,\n ProgramUpdatedEnvelope,\n QuotaFeature,\n QuotaInfo,\n QuotaInfoEntry,\n ReassignedFromSiteReason,\n ReassignedToAnotherSiteReason,\n ReplacedByAnotherSubscriptionReason,\n RestoreInfo,\n SocialMediaChannel,\n SocialMediaSettings,\n Status,\n TransferredFromAnotherAccountReason,\n TransferredToAnotherAccountReason,\n Type,\n UnAssingedToFloatingReason,\n UpdateLoyaltyProgramDescriptionRequest,\n UpdateLoyaltyProgramDescriptionResponse,\n UpdateLoyaltyProgramRequest,\n UpdateLoyaltyProgramResponse,\n V1Type,\n WebhookIdentityType,\n} from './loyalty-v1-program-programs.universal.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixLoyaltyV1Program from './loyalty-v1-program-programs.http.js';\nimport { transformSDKImageToRESTImage } from '@wix/sdk-runtime/transformations/image';\nimport { transformRESTImageToSDKImage } from '@wix/sdk-runtime/transformations/image';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\n\n/**\n * A loyalty program allows sites to maintain customer reward accounts. Wix users can create a\n * loyalty program to increase customer retention. Read more about the [loyalty program](https://support.wix.com/en/article/wix-loyalty-program-an-overview).\n */\nexport interface LoyaltyProgram {\n /**\n * Program name.\n * @minLength 2\n * @maxLength 50\n */\n name?: string | null;\n /** Information about the program's collectible entity. */\n pointDefinition?: PointDefinition;\n /**\n * Program status.\n * Customers can only earn or redeem points while the program is `\"ACTIVE\"`.\n *\n * Default: `\"DRAFT\"`\n * @readonly\n */\n status?: ProgramStatusWithLiterals;\n /**\n * Date and time the program was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the program was updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /** Configuration for the points expiration feature. */\n pointsExpiration?: PointsExpiration;\n /**\n * Information about the available program premium features.\n * @readonly\n */\n premiumFeatures?: PremiumFeatures;\n}\n\nexport interface PointDefinition {\n /**\n * Display name for the program's collectible unit.\n *\n * It's recommended to use a plural, for example `\"Stars\"`.\n *\n * In contrast to a custom name, the default `\"Points\"` name is translated and adjusted to singular based on circumstances.\n *\n * Default: `\"Points\"`.\n * @maxLength 20\n */\n customName?: string | null;\n /** Image URL. */\n icon?: string;\n}\n\nexport interface FocalPoint {\n /** X-coordinate of the focal point. */\n x?: number;\n /** Y-coordinate of the focal point. */\n y?: number;\n /** crop by height */\n height?: number | null;\n /** crop by width */\n width?: number | null;\n}\n\nexport enum ProgramStatus {\n /** Unknown program status. */\n UNKNOWN = 'UNKNOWN',\n /** Program is in draft mode. Customers can't earn or redeem points. */\n DRAFT = 'DRAFT',\n /** Program is active. Customers can earn and redeem points. */\n ACTIVE = 'ACTIVE',\n /**\n * Program is paused. Customers can't earn or redeem points while the program is paused.\n *\n * Set the program to `\"ACTIVE\"` to resume earning and redeeming points.\n */\n PAUSED = 'PAUSED',\n}\n\n/** @enumType */\nexport type ProgramStatusWithLiterals =\n | ProgramStatus\n | 'UNKNOWN'\n | 'DRAFT'\n | 'ACTIVE'\n | 'PAUSED';\n\nexport interface PointsExpiration {\n /**\n * Status of the points expiration feature.\n * @readonly\n */\n status?: StatusWithLiterals;\n /**\n * How many months a member should be inactive to lose the collected points.\n * @min 1\n * @max 12\n */\n monthsOfInactivity?: number;\n /**\n * Percentage of points that a member loses after being inactive.\n * @min 1\n * @max 100\n */\n expiringPointsPercentage?: number;\n}\n\nexport enum Status {\n /** Unknown points expiration status. This value is not used. */\n UNKNOWN_STATUS = 'UNKNOWN_STATUS',\n /** Points expiration feature is disabled. */\n DISABLED = 'DISABLED',\n /** Points expiration feature is enabled. */\n ENABLED = 'ENABLED',\n}\n\n/** @enumType */\nexport type StatusWithLiterals =\n | Status\n | 'UNKNOWN_STATUS'\n | 'DISABLED'\n | 'ENABLED';\n\nexport interface PremiumFeatures {\n /**\n * Whether there are any loyalty program premium features.\n * @readonly\n */\n loyaltyProgram?: boolean;\n /**\n * Whether this loyalty program includes tiers.\n * @readonly\n */\n tiers?: boolean;\n /**\n * Whether this loyalty program includes point expiration.\n * @readonly\n */\n pointsExpiration?: boolean;\n}\n\nexport interface SocialMediaSettings {\n /**\n * List of social media channels\n * @maxSize 5\n */\n channels?: SocialMediaChannel[];\n}\n\nexport interface SocialMediaChannel {\n /** Social media channel type */\n type?: TypeWithLiterals;\n /** Enable or disable social media channel */\n enabled?: boolean;\n /**\n * Social media channel ID. For example, Instagram username.\n * @minLength 1\n * @maxLength 255\n */\n _id?: string;\n /**\n * Social media channel URL\n * @readonly\n * @format WEB_URL\n */\n url?: string | null;\n}\n\nexport enum Type {\n /** Unknown social media channel type. */\n UNKNOWN_CHANNEL = 'UNKNOWN_CHANNEL',\n /** Facebook social media channel. */\n FACEBOOK = 'FACEBOOK',\n /** Instagram social media channel. */\n INSTAGRAM = 'INSTAGRAM',\n /** LinkedIn social media channel. */\n LINKEDIN = 'LINKEDIN',\n /** X social media channel. */\n X = 'X',\n /** TikTok social media channel. */\n TIKTOK = 'TIKTOK',\n}\n\n/** @enumType */\nexport type TypeWithLiterals =\n | Type\n | 'UNKNOWN_CHANNEL'\n | 'FACEBOOK'\n | 'INSTAGRAM'\n | 'LINKEDIN'\n | 'X'\n | 'TIKTOK';\n\nexport interface GetLoyaltyProgramRequest {}\n\nexport interface GetLoyaltyProgramResponse {\n /** Retrieved loyalty program. */\n loyaltyProgram?: LoyaltyProgram;\n}\n\nexport interface BulkGetLoyaltyProgramRequest {}\n\nexport interface BulkGetLoyaltyProgramResponse {\n /** Retrieved loyalty programs. */\n programInSites?: ProgramInSite[];\n}\n\nexport interface ProgramInSite {\n /**\n * Metasite ID.\n * @format GUID\n */\n metaSiteId?: string;\n /** Loyalty program. */\n loyaltyProgram?: LoyaltyProgram;\n}\n\nexport interface UpdateLoyaltyProgramRequest {\n /** Loyalty program fields to update. */\n loyaltyProgram: LoyaltyProgram;\n}\n\nexport interface UpdateLoyaltyProgramResponse {\n /** Updated loyalty program. */\n loyaltyProgram?: LoyaltyProgram;\n}\n\nexport interface PointsExpirationConfigurationChanged {\n /** Loyalty program. */\n loyaltyProgram?: LoyaltyProgram;\n /** Points expiration configuration changes */\n pointsExpirationChanges?: PointsExpirationChanges;\n}\n\nexport interface PointsExpirationChanges {\n monthsOfInactivity?: number | null;\n expiringPointsPercentage?: number | null;\n}\n\nexport interface ActivateLoyaltyProgramRequest {}\n\nexport interface ActivateLoyaltyProgramResponse {\n /** Activated loyalty program. */\n loyaltyProgram?: LoyaltyProgram;\n}\n\nexport interface LoyaltyProgramActivated {\n /** Activated loyalty program. */\n loyaltyProgram?: LoyaltyProgram;\n}\n\nexport interface PauseLoyaltyProgramRequest {}\n\nexport interface PauseLoyaltyProgramResponse {\n /** Paused loyalty program. */\n loyaltyProgram?: LoyaltyProgram;\n}\n\nexport interface GetLoyaltyProgramDescriptionRequest {\n /**\n * List of description fields to retrieve. Supported values: `description`, `updatedDate`.\n * @maxSize 2\n */\n fields?: string[];\n}\n\nexport interface GetLoyaltyProgramDescriptionResponse {\n /** Retrieved loyalty program description. */\n description?: string | null;\n /** Date and time of the latest description update. */\n _updatedDate?: Date | null;\n}\n\nexport interface UpdateLoyaltyProgramDescriptionRequest {\n /**\n * Loyalty program description to update.\n * @minLength 1\n * @maxLength 1000000\n */\n description?: string;\n}\n\nexport interface UpdateLoyaltyProgramDescriptionResponse {}\n\nexport interface LoyaltyProgramDescriptionUpdated {}\n\nexport interface GetLoyaltyProgramPremiumFeaturesRequest {}\n\nexport interface GetLoyaltyProgramPremiumFeaturesResponse {\n /**\n * Whether there are any loyalty program premium features.\n * @readonly\n */\n loyaltyProgram?: boolean;\n /**\n * Whether this loyalty program includes tiers.\n * @readonly\n */\n tiers?: boolean;\n /**\n * Whether this loyalty program includes point expiration.\n * @readonly\n */\n pointsExpiration?: boolean;\n}\n\nexport interface EnablePointsExpirationRequest {}\n\nexport interface EnablePointsExpirationResponse {\n /** Loyalty program with enabled points expiration feature. */\n loyaltyProgram?: LoyaltyProgram;\n}\n\nexport interface PointsExpirationEnabled {\n /** Loyalty program. */\n loyaltyProgram?: LoyaltyProgram;\n}\n\nexport interface DisablePointsExpirationRequest {}\n\nexport interface DisablePointsExpirationResponse {\n /** Loyalty program with disabled points expiration feature. */\n loyaltyProgram?: LoyaltyProgram;\n}\n\nexport interface PointsExpirationDisabled {\n /** Loyalty program. */\n loyaltyProgram?: LoyaltyProgram;\n}\n\nexport interface FeatureEvent extends FeatureEventEventOneOf {\n /**\n * Information about an event that makes a feature eligible to the user.\n * Triggered for example, for new features or when a feature is reassigned\n * to an account or a site.\n */\n enabled?: FeatureEnabled;\n /**\n * Information about an event that disables a feature for the user.\n * Triggered for example, when a feature is unassigned from a site,\n * reassigned to a different site, or the user switched to a different contract.\n */\n disabled?: FeatureDisabled;\n /**\n * Information about an event that updates a feature. An `updated` event\n * is triggered for example by the\n * [Report Quota Usage](https://bo.wix.com/wix-docs/rest/premium/premium-features-manager/report-quota-usage)\n * and [Reset Usage Counter](https://bo.wix.com/wix-docs/rest/premium/premium-features-manager/reset-usage-counter)\n * endpoints.\n */\n updated?: FeatureUpdated;\n /**\n * Information about an event that cancels a feature for the user.\n * Triggered for example, when a feature is canceled, transferred to\n * another account, or the user switched to a different contract.\n */\n cancelled?: FeatureCancelled;\n /**\n * Timestamp of the event in\n * [UTC time](https://en.wikipedia.org/wiki/Coordinated_Universal_Time).\n */\n timestamp?: Date | null;\n}\n\n/** @oneof */\nexport interface FeatureEventEventOneOf {\n /**\n * Information about an event that makes a feature eligible to the user.\n * Triggered for example, for new features or when a feature is reassigned\n * to an account or a site.\n */\n enabled?: FeatureEnabled;\n /**\n * Information about an event that disables a feature for the user.\n * Triggered for example, when a feature is unassigned from a site,\n * reassigned to a different site, or the user switched to a different contract.\n */\n disabled?: FeatureDisabled;\n /**\n * Information about an event that updates a feature. An `updated` event\n * is triggered for example by the\n * [Report Quota Usage](https://bo.wix.com/wix-docs/rest/premium/premium-features-manager/report-quota-usage)\n * and [Reset Usage Counter](https://bo.wix.com/wix-docs/rest/premium/premium-features-manager/reset-usage-counter)\n * endpoints.\n */\n updated?: FeatureUpdated;\n /**\n * Information about an event that cancels a feature for the user.\n * Triggered for example, when a feature is canceled, transferred to\n * another account, or the user switched to a different contract.\n */\n cancelled?: FeatureCancelled;\n}\n\n/** Feature created or enabled after disabled state */\nexport interface FeatureEnabled extends FeatureEnabledReasonOneOf {\n /** Information about a transfer from another account. */\n transferredFromAnotherAccount?: TransferredFromAnotherAccountReason;\n /** Information about a transfer from another site. */\n reassignedFromSite?: ReassignedFromSiteReason;\n /** Information about a feature that hadn't been assigned to site. */\n assignedFromFloating?: AssignedFromFloatingReason;\n /** Information about the new feature. */\n newFeature?: NewFeatureReason;\n /** Information about the contract switch. */\n contractSwitched?: ContractSwitchedReason;\n /** Information about the manually created features. */\n manualFeatureCreation?: ManualFeatureCreationReason;\n /** Information about a feature that was migrated from legacy. */\n migratedFromLegacy?: MigratedFromLegacyReason;\n /** Enabled feature. */\n feature?: Feature;\n /**\n * Information about a transfer from another account.\n * __Deprecated__. Use `reason.transferred_from_another_account` instead.\n * @format GUID\n */\n transferredFromAccount?: string | null;\n /**\n * Information about a transfer from another site.\n * __Deprecated__. Use `reason.reassigned_from_site` instead.\n * @format GUID\n */\n reassignedFromMetasite?: string | null;\n}\n\n/** @oneof */\nexport interface FeatureEnabledReasonOneOf {\n /** Information about a transfer from another account. */\n transferredFromAnotherAccount?: TransferredFromAnotherAccountReason;\n /** Information about a transfer from another site. */\n reassignedFromSite?: ReassignedFromSiteReason;\n /** Information about a feature that hadn't been assigned to site. */\n assignedFromFloating?: AssignedFromFloatingReason;\n /** Information about the new feature. */\n newFeature?: NewFeatureReason;\n /** Information about the contract switch. */\n contractSwitched?: ContractSwitchedReason;\n /** Information about the manually created features. */\n manualFeatureCreation?: ManualFeatureCreationReason;\n /** Information about a feature that was migrated from legacy. */\n migratedFromLegacy?: MigratedFromLegacyReason;\n}\n\nexport interface Feature extends FeatureQuantityInfoOneOf {\n /**\n * Deprecated. Use `enabled` instead.\n * @deprecated\n */\n booleanFeature?: BooleanFeature;\n /**\n * Deprecated. Use `quotaInfo` instead.\n * @deprecated\n */\n quotaFeature?: QuotaFeature;\n /**\n * ID of the feature. __Note:__ Isn't unique. For example, all features that\n * are available to free Wix accounts or site in some capacity have\n * `{\"id\": \"DEFAULT\"}`. Use `uniqueName` as unique identifier for a feature.\n * @readonly\n */\n _id?: string;\n /**\n * Unique name of the feature. Only lower case letters, numbers, and dashes\n * `-` are supported. Used in the endpoints of the\n * [Features Manager API](https://bo.wix.com/wix-docs/rest/premium/premium-features-manager/introduction)\n * to specify the feature. Not visible to customers. We recommend to start\n * the unique name with a prefix describing your organization or Wix company.\n * For example, `bookings` or `crm`.\n *\n * Min: 2 characters\n * Max: 50 characters\n * @minLength 2\n * @maxLength 50\n */\n uniqueName?: string;\n /**\n * Information about whether the feature belongs to a Wix account or site.\n * Account features have `context.userId`. Site features have `context.metaSiteId` in case\n * they're assigned to a specific site. Site features that aren't assigned to\n * a specific site have neither ID.\n */\n context?: FeatureContext;\n /**\n * Deprecated.\n * @readonly\n * @deprecated\n */\n createdAt?: Date | null;\n /**\n * Deprecated.\n * @readonly\n * @deprecated\n */\n updatedAt?: Date | null;\n /**\n * Aggregated information about how often customers can use the feature.\n * Available only for quota features.\n */\n quotaInfo?: QuotaInfo;\n /**\n * Whether the customer is currently allowed to use the feature.\n * `true` means that the customer can use the feature. This means a boolean\n * feature is active or a quota feature has remaining usage.\n * `false` means that the customer can't use the feature.\n * This means a boolean feature isn't active or a quota feature doesn't\n * have remaining usage.\n */\n enabled?: boolean;\n /**\n * ID of the [subscription](https://bo.wix.com/wix-docs/rest/premium/premium-subscriptions-manager/subscription-object)\n * to which the feature instance belongs.\n * @format GUID\n */\n subscriptionId?: string | null;\n /**\n * Metadata of the feature. Wix Premium uses the metadata object to indicate\n * that customers who purchase a product with the feature also get\n * access to an additional product. For these bundled products `metadata`\n * looks like this: `{\"tpa\": \"{\"appDefId\": \"sample-app-def-id-1234567890\", \"vendorProductId\": \"sample-productId\"}}\"`.\n * But you can use the `metadata` property for other purposes, too.\n */\n metadata?: Record<string, string>;\n}\n\n/** @oneof */\nexport interface FeatureQuantityInfoOneOf {\n /**\n * Deprecated. Use `enabled` instead.\n * @deprecated\n */\n booleanFeature?: BooleanFeature;\n /**\n * Deprecated. Use `quotaInfo` instead.\n * @deprecated\n */\n quotaFeature?: QuotaFeature;\n}\n\n/**\n * Context this feature is currently connected to.\n * Note: Do not confuse with feature scope which is configured in the product catalog\n * and defines in which context the product can be used\n */\nexport interface FeatureContext {\n /**\n * ID of the Wix account that the feature instance belongs to.\n * Available for both site and account level feature instances.\n * @format GUID\n */\n userId?: string;\n /**\n * ID of the meta site that the feature instance is assigned to.\n * Only available for site level feature instances that are assigned to a Wix\n * site. Not available for account level and unassigned site level feature\n * instances.\n * @format GUID\n */\n metaSiteId?: string | null;\n}\n\n/**\n * A feature that can be either \"enabled\" or \"disabled\". The default/freemium setting is always OFF, and the premium setting is always ON (meaning, unlimited usage without tracking).\n * A boolean feature is similar to a quantitive feature with a default limit of 0 and UNLIMITED premium limit (although a bit simplified).\n */\nexport interface BooleanFeature {}\n\n/** A feature with a periodic usage limitation. The default limit is defined in the Feature Spec, the Premium limits are defined in the respective ProductFeature. */\nexport interface QuotaFeature {\n /** Default (or Freemium) quota limitation. if left undefined the free feature has unlimited amount. */\n limit?: string | null;\n /** Periodic time-frame to reset the usage counter. You may use NO_PERIOD if counter shouldn't be reset. */\n period?: FeaturePeriodWithLiterals;\n /** Usage measurement units (seconds? MBs? unitless?). Usage reported will be counted in multiples of this basic unit. */\n units?: string | null;\n}\n\n/** Determines the reset cycle of the feature usage. */\nexport enum FeaturePeriod {\n NO_PERIOD = 'NO_PERIOD',\n MILLISECOND = 'MILLISECOND',\n SECOND = 'SECOND',\n MINUTE = 'MINUTE',\n HOUR = 'HOUR',\n DAY = 'DAY',\n WEEK = 'WEEK',\n MONTH = 'MONTH',\n YEAR = 'YEAR',\n}\n\n/** @enumType */\nexport type FeaturePeriodWithLiterals =\n | FeaturePeriod\n | 'NO_PERIOD'\n | 'MILLISECOND'\n | 'SECOND'\n | 'MINUTE'\n | 'HOUR'\n | 'DAY'\n | 'WEEK'\n | 'MONTH'\n | 'YEAR';\n\nexport interface QuotaInfo {\n /**\n * Aggregation of how often the customer is allowed to use the feature at the time of the request.\n * `null` means that the customer has unlimited access to the feature.\n */\n limit?: string | null;\n /**\n * Deprecated because a feature can have multiple periods defined. Use `period` in `breakdown` entries instead.\n * Time frame for the usage limitation. `NO_PERIOD` means that `remainingUsage`\n * isn't automatically reset to the feature's `limit` after a specific period.\n * You may still manually call\n * [Reset Usage Counter](https://bo.wix.com/wix-docs/rest/premium/premium-features-manager/reset-usage-counter).\n * @deprecated\n * @replacedBy breakdown.period\n * @targetRemovalDate 2026-03-31\n */\n period?: FeaturePeriodWithLiterals;\n /**\n * Aggregation of how often the customer has used the feature.\n * This value is retrieved from the Quota Manager/Rate Limiter system. If the\n * `exclude_quota_usage` field in the `ListFeaturesRequest` was set to `true`,\n * this field will contain the value `-1`.\n */\n currentUsage?: string;\n /**\n * Aggregation of how often the customer can still use the feature.\n * `null` means that the customer has unlimited access to the feature.\n * This value is retrieved from the Quota Manager/Rate Limiter system. If the\n * `exclude_quota_usage` field in the `ListFeaturesRequest` was set to `true`,\n * this field will not be populated.\n */\n remainingUsage?: string | null;\n /**\n * Breakdown of quota information entries, entry per feature instance.\n * @maxSize 1000\n */\n breakdown?: QuotaInfoEntry[];\n}\n\nexport interface QuotaInfoEntry {\n /**\n * If quota is of free feature, the id would be empty (None).\n * If quota is of premium feature, this is the ID of the feature instance.\n * @format GUID\n */\n featureInstanceId?: string | null;\n /**\n * How often the customer is allowed to use the feature during the specified\n * period. `null` means that the customer has unlimited access to the feature.\n */\n limit?: string | null;\n /**\n * Time frame for the usage limitation. `NO_PERIOD` means that `remainingUsage`\n * isn't automatically reset to the feature's `limit` after a specific period.\n * You may still manually call\n * [Reset Usage Counter](https://bo.wix.com/wix-docs/rest/premium/premium-features-manager/reset-usage-counter).\n */\n period?: FeaturePeriodWithLiterals;\n /**\n * How often the customer has used the feature during the current\n * period.\n * This value is retrieved from the Quota Manager/Rate Limiter system. If the\n * `exclude_quota_usage` field in the `ListFeaturesRequest` was set to `true`,\n * this field will contain the value `-1`.\n */\n currentUsage?: string;\n /**\n * How often the customer can still use the feature during the current\n * period. `null` means that the customer has unlimited access to the feature.\n * This value is retrieved from the Quota Manager/Rate Limiter system. If the\n * `exclude_quota_usage` field in the `ListFeaturesRequest` was set to `true`,\n * this field will not be populated.\n */\n remainingUsage?: string | null;\n /**\n * ID of the subscription to which the feature instance belongs.\n * @format GUID\n */\n subscriptionId?: string | null;\n /**\n * Reset date of the quota.\n * Relevant only for features with a period that is not `NO_PERIOD`, and only for features that are managed by the Quota Manager system.\n */\n resetDate?: Date | null;\n}\n\n/** Subscription transferred from another account, features on the current account were enabled. */\nexport interface TransferredFromAnotherAccountReason {\n /**\n * Information about a transfer from another account.\n * @format GUID\n */\n transferredFromAccount?: string;\n}\n\n/** Subscription moved from one site to another in the same account, features enabled on the target site */\nexport interface ReassignedFromSiteReason {\n /**\n * Information about a transfer from another site.\n * @format GUID\n */\n reassignedFromMetasite?: string;\n}\n\n/** Subscription was floating and assigned to site, features enabled on the target site */\nexport interface AssignedFromFloatingReason {}\n\n/** New subscription created and features created as enabled */\nexport interface NewFeatureReason {}\n\n/** Subscription was upgraded or downgraded, as a result new features enabled, missing features disabled , quantities are updated */\nexport interface ContractSwitchedReason {}\n\n/** a call to CreateFeature in features-writer, creates feature that is not attached to subscription */\nexport interface ManualFeatureCreationReason {}\n\n/** Subscription created due to migration from old premium model */\nexport interface MigratedFromLegacyReason {}\n\n/** Feature disabled and can be enabled in the future */\nexport interface FeatureDisabled extends FeatureDisabledReasonOneOf {\n /** Information about a feature that's no longer assigned to a site. */\n unassingedToFloating?: UnAssingedToFloatingReason;\n /**\n * Information about a feature that's been replaced by a feature from a\n * different subscription.\n */\n replacedByAnotherSubscription?: ReplacedByAnotherSubscriptionReason;\n /**\n * Information about a feature that's been reassigned to a different\n * site.\n */\n reassignedToAnotherSite?: ReassignedToAnotherSiteReason;\n /**\n * Disabled feature. Includes information about the feature's new state,\n * possibly its new context.\n */\n feature?: Feature;\n /**\n * ID of the meta site for which the feature has been disabled.\n * @format GUID\n */\n metaSiteId?: string | null;\n}\n\n/** @oneof */\nexport interface FeatureDisabledReasonOneOf {\n /** Information about a feature that's no longer assigned to a site. */\n unassingedToFloating?: UnAssingedToFloatingReason;\n /**\n * Information about a feature that's been replaced by a feature from a\n * different subscription.\n */\n replacedByAnotherSubscription?: ReplacedByAnotherSubscriptionReason;\n /**\n * Information about a feature that's been reassigned to a different\n * site.\n */\n reassignedToAnotherSite?: ReassignedToAnotherSiteReason;\n}\n\n/** Subscription was unassigned from the site and moved into floating state */\nexport interface UnAssingedToFloatingReason {}\n\n/** Another subscription was assigned to the site, causing existing features on this site to be disabled */\nexport interface ReplacedByAnotherSubscriptionReason {}\n\n/** Subscription was assigned to another site, causing features on the origin site to be disabled. */\nexport interface ReassignedToAnotherSiteReason {\n /**\n * Information about a transfer to the site.\n * @format GUID\n */\n reassignedToMetasite?: string;\n}\n\n/** Feature updated, for example Quota was increased due to upgrade */\nexport interface FeatureUpdated\n extends FeatureUpdatedPreviousQuantityInfoOneOf,\n FeatureUpdatedReasonOneOf {\n /** Information about a feature that doesn't have a usage quota. */\n booleanFeature?: BooleanFeature;\n /** Information about a feature that has a usage quota. */\n quotaFeature?: QuotaFeature;\n /** Information about the contract switch. */\n contractSwitched?: ContractSwitchedReason;\n /**\n * Updated feature. Includes information about the feature's new state and\n * possibly its new context.\n */\n feature?: Feature;\n}\n\n/** @oneof */\nexport interface FeatureUpdatedPreviousQuantityInfoOneOf {\n /** Information about a feature that doesn't have a usage quota. */\n booleanFeature?: BooleanFeature;\n /** Information about a feature that has a usage quota. */\n quotaFeature?: QuotaFeature;\n}\n\n/** @oneof */\nexport interface FeatureUpdatedReasonOneOf {\n /** Information about the contract switch. */\n contractSwitched?: ContractSwitchedReason;\n}\n\n/** Feature was permanently cancelled */\nexport interface FeatureCancelled extends FeatureCancelledReasonOneOf {\n /** Information about a transfer to the account. */\n transferredToAnotherAccount?: TransferredToAnotherAccountReason;\n /** Information about the contract switch. */\n contractSwitched?: ContractSwitchedReason;\n /** Information about the feature cancellation. */\n cancelRequest?: CancelRequestedReason;\n /** Canceled feature. */\n feature?: Feature;\n /**\n * Information about a transfer to the account.\n * __Deprecated__. Use `reason.transferred_to_account` instead.\n * @format GUID\n */\n transferredToAccount?: string | null;\n}\n\n/** @oneof */\nexport interface FeatureCancelledReasonOneOf {\n /** Information about a transfer to the account. */\n transferredToAnotherAccount?: TransferredToAnotherAccountReason;\n /** Information about the contract switch. */\n contractSwitched?: ContractSwitchedReason;\n /** Information about the feature cancellation. */\n cancelRequest?: CancelRequestedReason;\n}\n\n/** Subscription was transferred to another account, features in the origin account were cancelled */\nexport interface TransferredToAnotherAccountReason {\n /**\n * Information about a transfer to the account.\n * @format GUID\n */\n transferredToAccount?: string;\n}\n\n/** Cancellation was requested from the subscription manager api, might be a result of billing event, or direct call */\nexport interface CancelRequestedReason {}\n\nexport interface Empty {}\n\nexport interface LoyaltyAppInstallation {\n type?: V1TypeWithLiterals;\n}\n\nexport enum V1Type {\n UNSPECIFIED = 'UNSPECIFIED',\n INSTALLED = 'INSTALLED',\n DELETED = 'DELETED',\n}\n\n/** @enumType */\nexport type V1TypeWithLiterals =\n | V1Type\n | 'UNSPECIFIED'\n | 'INSTALLED'\n | 'DELETED';\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * 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.\n * 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.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entity?: string;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface BaseEventMetadata {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n}\n\nexport interface EventMetadata extends BaseEventMetadata {\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * 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.\n * 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.\n */\n entityEventSequence?: string | null;\n}\n\nexport interface ProgramUpdatedEnvelope {\n entity: LoyaltyProgram;\n metadata: EventMetadata;\n}\n\n/**\n * Triggered when a loyalty program is updated.\n * @permissionScope Read Loyalty\n * @permissionScopeId SCOPE.DC-LOYALTY.READ-LOYALTY\n * @permissionScope Manage Loyalty\n * @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY\n * @permissionScope Manage Restaurants - all permissions\n * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES\n * @permissionId LOYALTY.READ_PROGRAM\n * @webhook\n * @eventType wix.loyalty.v1.program_updated\n * @serviceIdentifier com.wixpress.loyalty.program.LoyaltyPrograms\n * @slug updated\n */\nexport declare function onProgramUpdated(\n handler: (event: ProgramUpdatedEnvelope) => void | Promise<void>\n): void;\n\n/**\n * Retrieves the loyalty program.\n * @public\n * @permissionId LOYALTY.READ_PROGRAM\n * @applicableIdentity APP\n * @fqn com.wixpress.loyalty.program.LoyaltyPrograms.GetLoyaltyProgram\n */\nexport async function getLoyaltyProgram(): Promise<\n NonNullablePaths<\n GetLoyaltyProgramResponse,\n | `loyaltyProgram.status`\n | `loyaltyProgram.pointsExpiration.status`\n | `loyaltyProgram.pointsExpiration.monthsOfInactivity`\n | `loyaltyProgram.pointsExpiration.expiringPointsPercentage`\n | `loyaltyProgram.premiumFeatures.loyaltyProgram`\n | `loyaltyProgram.premiumFeatures.tiers`\n | `loyaltyProgram.premiumFeatures.pointsExpiration`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({});\n\n const reqOpts = ambassadorWixLoyaltyV1Program.getLoyaltyProgram(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [{ path: 'loyaltyProgram.pointDefinition.icon' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {},\n singleArgumentUnchanged: false,\n },\n []\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves loyalty programs for all metasites that the caller is a member of.\n *\n * Must be called with user identity.\n * @public\n * @permissionId LOYALTY.PROGRAM_BULK_READ\n * @fqn com.wixpress.loyalty.program.LoyaltyPrograms.BulkGetLoyaltyProgram\n */\nexport async function bulkGetLoyaltyProgram(): Promise<\n NonNullablePaths<\n BulkGetLoyaltyProgramResponse,\n | `programInSites`\n | `programInSites.${number}.metaSiteId`\n | `programInSites.${number}.loyaltyProgram.status`\n | `programInSites.${number}.loyaltyProgram.pointsExpiration.status`\n | `programInSites.${number}.loyaltyProgram.pointsExpiration.monthsOfInactivity`\n | `programInSites.${number}.loyaltyProgram.pointsExpiration.expiringPointsPercentage`\n | `programInSites.${number}.loyaltyProgram.premiumFeatures.loyaltyProgram`\n | `programInSites.${number}.loyaltyProgram.premiumFeatures.tiers`\n | `programInSites.${number}.loyaltyProgram.premiumFeatures.pointsExpiration`,\n 6\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({});\n\n const reqOpts = ambassadorWixLoyaltyV1Program.bulkGetLoyaltyProgram(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'programInSites.loyaltyProgram.pointDefinition.icon' },\n ],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {},\n singleArgumentUnchanged: false,\n },\n []\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Updates a site's loyalty program.\n *\n * This method updates the name of the loyalty program and the details of the collectible points unit.\n * To activate the loyalty program, call Activate Loyalty Program.\n * @param loyaltyProgram - Loyalty program fields to update.\n * @public\n * @requiredField loyaltyProgram\n * @permissionId LOYALTY.MANAGE_PROGRAM\n * @applicableIdentity APP\n * @fqn com.wixpress.loyalty.program.LoyaltyPrograms.UpdateLoyaltyProgram\n */\nexport async function updateLoyaltyProgram(\n loyaltyProgram: LoyaltyProgram\n): Promise<\n NonNullablePaths<\n UpdateLoyaltyProgramResponse,\n | `loyaltyProgram.status`\n | `loyaltyProgram.pointsExpiration.status`\n | `loyaltyProgram.pointsExpiration.monthsOfInactivity`\n | `loyaltyProgram.pointsExpiration.expiringPointsPercentage`\n | `loyaltyProgram.premiumFeatures.loyaltyProgram`\n | `loyaltyProgram.premiumFeatures.tiers`\n | `loyaltyProgram.premiumFeatures.pointsExpiration`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = transformPaths(\n renameKeysFromSDKRequestToRESTRequest({ loyaltyProgram: loyaltyProgram }),\n [\n {\n transformFn: transformSDKImageToRESTImage,\n paths: [{ path: 'loyaltyProgram.pointDefinition.icon' }],\n },\n ]\n );\n\n const reqOpts = ambassadorWixLoyaltyV1Program.updateLoyaltyProgram(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [{ path: 'loyaltyProgram.pointDefinition.icon' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { loyaltyProgram: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['loyaltyProgram']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Activates a loyalty program.\n *\n * Initially, when a loyalty program is installed, the status is set to `\"DRAFT\"`.\n * You can change the program's status to `\"ACTIVE\"` with this method or through the [dashboard](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Floyalty-accounts/wizard/).\n * A site's customers can only earn or redeem points while the program is `\"ACTIVE\"`.\n *\n * This method only updates the status of a loyalty program. To make other updates to the program, call Update Loyalty Program.\n *\n * To temporarily pause your loyalty program, call Pause Loyalty Program and see [Pausing Your Loyalty Program](https://support.wix.com/en/article/wix-loyalty-program-pausing-your-loyalty-program) for more information.\n * @public\n * @permissionId LOYALTY.MANAGE_PROGRAM\n * @applicableIdentity APP\n * @fqn com.wixpress.loyalty.program.LoyaltyPrograms.ActivateLoyaltyProgram\n */\nexport async function activateLoyaltyProgram(): Promise<\n NonNullablePaths<\n ActivateLoyaltyProgramResponse,\n | `loyaltyProgram.status`\n | `loyaltyProgram.pointsExpiration.status`\n | `loyaltyProgram.pointsExpiration.monthsOfInactivity`\n | `loyaltyProgram.pointsExpiration.expiringPointsPercentage`\n | `loyaltyProgram.premiumFeatures.loyaltyProgram`\n | `loyaltyProgram.premiumFeatures.tiers`\n | `loyaltyProgram.premiumFeatures.pointsExpiration`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({});\n\n const reqOpts = ambassadorWixLoyaltyV1Program.activateLoyaltyProgram(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [{ path: 'loyaltyProgram.pointDefinition.icon' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {},\n singleArgumentUnchanged: false,\n },\n []\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Changes the program status to `\"PAUSED\"`.\n *\n * See [Pausing Your Loyalty Program](https://support.wix.com/en/article/wix-loyalty-program-pausing-your-loyalty-program) for more information.\n * @public\n * @permissionId LOYALTY.MANAGE_PROGRAM\n * @applicableIdentity APP\n * @fqn com.wixpress.loyalty.program.LoyaltyPrograms.PauseLoyaltyProgram\n */\nexport async function pauseLoyaltyProgram(): Promise<\n NonNullablePaths<\n PauseLoyaltyProgramResponse,\n | `loyaltyProgram.status`\n | `loyaltyProgram.pointsExpiration.status`\n | `loyaltyProgram.pointsExpiration.monthsOfInactivity`\n | `loyaltyProgram.pointsExpiration.expiringPointsPercentage`\n | `loyaltyProgram.premiumFeatures.loyaltyProgram`\n | `loyaltyProgram.premiumFeatures.tiers`\n | `loyaltyProgram.premiumFeatures.pointsExpiration`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({});\n\n const reqOpts = ambassadorWixLoyaltyV1Program.pauseLoyaltyProgram(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [{ path: 'loyaltyProgram.pointDefinition.icon' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {},\n singleArgumentUnchanged: false,\n },\n []\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves information about the available loyalty program premium features.\n * @public\n * @permissionId LOYALTY.READ_PROGRAM\n * @applicableIdentity APP\n * @fqn com.wixpress.loyalty.program.LoyaltyPrograms.GetLoyaltyProgramPremiumFeatures\n */\nexport async function getLoyaltyProgramPremiumFeatures(): Promise<\n NonNullablePaths<\n GetLoyaltyProgramPremiumFeaturesResponse,\n `loyaltyProgram` | `tiers` | `pointsExpiration`,\n 2\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({});\n\n const reqOpts =\n ambassadorWixLoyaltyV1Program.getLoyaltyProgramPremiumFeatures(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {},\n singleArgumentUnchanged: false,\n },\n []\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Updates the `pointsExpiration` status to `\"ENABLED\"`.\n * @public\n * @permissionId LOYALTY.MANAGE_PROGRAM\n * @applicableIdentity APP\n * @fqn com.wixpress.loyalty.program.LoyaltyPrograms.EnablePointsExpiration\n */\nexport async function enablePointsExpiration(): Promise<\n NonNullablePaths<\n EnablePointsExpirationResponse,\n | `loyaltyProgram.status`\n | `loyaltyProgram.pointsExpiration.status`\n | `loyaltyProgram.pointsExpiration.monthsOfInactivity`\n | `loyaltyProgram.pointsExpiration.expiringPointsPercentage`\n | `loyaltyProgram.premiumFeatures.loyaltyProgram`\n | `loyaltyProgram.premiumFeatures.tiers`\n | `loyaltyProgram.premiumFeatures.pointsExpiration`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({});\n\n const reqOpts = ambassadorWixLoyaltyV1Program.enablePointsExpiration(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [{ path: 'loyaltyProgram.pointDefinition.icon' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {},\n singleArgumentUnchanged: false,\n },\n []\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Updates the `pointsExpiration` status to `\"DISABLED\"`.\n * @public\n * @permissionId LOYALTY.MANAGE_PROGRAM\n * @applicableIdentity APP\n * @fqn com.wixpress.loyalty.program.LoyaltyPrograms.DisablePointsExpiration\n */\nexport async function disablePointsExpiration(): Promise<\n NonNullablePaths<\n DisablePointsExpirationResponse,\n | `loyaltyProgram.status`\n | `loyaltyProgram.pointsExpiration.status`\n | `loyaltyProgram.pointsExpiration.monthsOfInactivity`\n | `loyaltyProgram.pointsExpiration.expiringPointsPercentage`\n | `loyaltyProgram.premiumFeatures.loyaltyProgram`\n | `loyaltyProgram.premiumFeatures.tiers`\n | `loyaltyProgram.premiumFeatures.pointsExpiration`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({});\n\n const reqOpts =\n ambassadorWixLoyaltyV1Program.disablePointsExpiration(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [{ path: 'loyaltyProgram.pointDefinition.icon' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {},\n singleArgumentUnchanged: false,\n },\n []\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveComWixpressLoyaltyProgramLoyaltyProgramsUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/_api/loyalty-programs',\n destPath: '',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/loyalty-programs',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/_api/loyalty-programs',\n destPath: '',\n },\n ],\n 'editor.wixapps.net': [\n {\n srcPath: '/_api/loyalty-programs',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/loyalty-programs',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/loyalty-programs',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/loyalty-programs',\n destPath: '',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/loyalty-programs',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/loyalty-programs',\n destPath: '',\n },\n ],\n '*.pub.wix-code.com': [\n {\n srcPath: '/_api/loyalty-programs',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/loyalty-programs',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_loyalty_programs';\n\n/** Retrieves the loyalty program. */\nexport function getLoyaltyProgram(payload: object): RequestOptionsFactory<any> {\n function __getLoyaltyProgram({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.loyalty.v1.program',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.loyalty.program.LoyaltyPrograms.GetLoyaltyProgram',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressLoyaltyProgramLoyaltyProgramsUrl({\n protoPath: '/v1/program',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'loyaltyProgram.createdDate' },\n { path: 'loyaltyProgram.updatedDate' },\n { path: 'loyaltyProgram.pointDefinition.icon.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'loyaltyProgram.pointDefinition.icon.focalPoint.x' },\n { path: 'loyaltyProgram.pointDefinition.icon.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getLoyaltyProgram;\n}\n\n/**\n * Retrieves loyalty programs for all metasites that the caller is a member of.\n *\n * Must be called with user identity.\n */\nexport function bulkGetLoyaltyProgram(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkGetLoyaltyProgram({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.loyalty.v1.program',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.loyalty.program.LoyaltyPrograms.BulkGetLoyaltyProgram',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressLoyaltyProgramLoyaltyProgramsUrl({\n protoPath: '/v1/bulk/programs',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'programInSites.loyaltyProgram.createdDate' },\n { path: 'programInSites.loyaltyProgram.updatedDate' },\n {\n path: 'programInSites.loyaltyProgram.pointDefinition.icon.urlExpirationDate',\n },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n {\n path: 'programInSites.loyaltyProgram.pointDefinition.icon.focalPoint.x',\n },\n {\n path: 'programInSites.loyaltyProgram.pointDefinition.icon.focalPoint.y',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkGetLoyaltyProgram;\n}\n\n/**\n * Updates a site's loyalty program.\n *\n * This method updates the name of the loyalty program and the details of the collectible points unit.\n * To activate the loyalty program, call Activate Loyalty Program.\n */\nexport function updateLoyaltyProgram(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateLoyaltyProgram({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'loyaltyProgram.createdDate' },\n { path: 'loyaltyProgram.updatedDate' },\n { path: 'loyaltyProgram.pointDefinition.icon.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'loyaltyProgram.pointDefinition.icon.focalPoint.x' },\n { path: 'loyaltyProgram.pointDefinition.icon.focalPoint.y' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.loyalty.v1.program',\n method: 'PATCH' as any,\n methodFqn:\n 'com.wixpress.loyalty.program.LoyaltyPrograms.UpdateLoyaltyProgram',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressLoyaltyProgramLoyaltyProgramsUrl({\n protoPath: '/v1/program',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'loyaltyProgram.createdDate' },\n { path: 'loyaltyProgram.updatedDate' },\n { path: 'loyaltyProgram.pointDefinition.icon.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'loyaltyProgram.pointDefinition.icon.focalPoint.x' },\n { path: 'loyaltyProgram.pointDefinition.icon.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateLoyaltyProgram;\n}\n\n/**\n * Activates a loyalty program.\n *\n * Initially, when a loyalty program is installed, the status is set to `\"DRAFT\"`.\n * You can change the program's status to `\"ACTIVE\"` with this method or through the [dashboard](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Floyalty-accounts/wizard/).\n * A site's customers can only earn or redeem points while the program is `\"ACTIVE\"`.\n *\n * This method only updates the status of a loyalty program. To make other updates to the program, call Update Loyalty Program.\n *\n * To temporarily pause your loyalty program, call Pause Loyalty Program and see [Pausing Your Loyalty Program](https://support.wix.com/en/article/wix-loyalty-program-pausing-your-loyalty-program) for more information.\n */\nexport function activateLoyaltyProgram(\n payload: object\n): RequestOptionsFactory<any> {\n function __activateLoyaltyProgram({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.loyalty.v1.program',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.loyalty.program.LoyaltyPrograms.ActivateLoyaltyProgram',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressLoyaltyProgramLoyaltyProgramsUrl({\n protoPath: '/v1/program/activate',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'loyaltyProgram.createdDate' },\n { path: 'loyaltyProgram.updatedDate' },\n { path: 'loyaltyProgram.pointDefinition.icon.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'loyaltyProgram.pointDefinition.icon.focalPoint.x' },\n { path: 'loyaltyProgram.pointDefinition.icon.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __activateLoyaltyProgram;\n}\n\n/**\n * Changes the program status to `\"PAUSED\"`.\n *\n * See [Pausing Your Loyalty Program](https://support.wix.com/en/article/wix-loyalty-program-pausing-your-loyalty-program) for more information.\n */\nexport function pauseLoyaltyProgram(\n payload: object\n): RequestOptionsFactory<any> {\n function __pauseLoyaltyProgram({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.loyalty.v1.program',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.loyalty.program.LoyaltyPrograms.PauseLoyaltyProgram',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressLoyaltyProgramLoyaltyProgramsUrl({\n protoPath: '/v1/program/pause',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'loyaltyProgram.createdDate' },\n { path: 'loyaltyProgram.updatedDate' },\n { path: 'loyaltyProgram.pointDefinition.icon.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'loyaltyProgram.pointDefinition.icon.focalPoint.x' },\n { path: 'loyaltyProgram.pointDefinition.icon.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __pauseLoyaltyProgram;\n}\n\n/** Retrieves information about the available loyalty program premium features. */\nexport function getLoyaltyProgramPremiumFeatures(\n payload: object\n): RequestOptionsFactory<any> {\n function __getLoyaltyProgramPremiumFeatures({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.loyalty.v1.program',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.loyalty.program.LoyaltyPrograms.GetLoyaltyProgramPremiumFeatures',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressLoyaltyProgramLoyaltyProgramsUrl({\n protoPath: '/v1/program/premium-features',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getLoyaltyProgramPremiumFeatures;\n}\n\n/** Updates the `pointsExpiration` status to `\"ENABLED\"`. */\nexport function enablePointsExpiration(\n payload: object\n): RequestOptionsFactory<any> {\n function __enablePointsExpiration({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.loyalty.v1.program',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.loyalty.program.LoyaltyPrograms.EnablePointsExpiration',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressLoyaltyProgramLoyaltyProgramsUrl({\n protoPath: '/v1/program/points-expiration/enable',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'loyaltyProgram.createdDate' },\n { path: 'loyaltyProgram.updatedDate' },\n { path: 'loyaltyProgram.pointDefinition.icon.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'loyaltyProgram.pointDefinition.icon.focalPoint.x' },\n { path: 'loyaltyProgram.pointDefinition.icon.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __enablePointsExpiration;\n}\n\n/** Updates the `pointsExpiration` status to `\"DISABLED\"`. */\nexport function disablePointsExpiration(\n payload: object\n): RequestOptionsFactory<any> {\n function __disablePointsExpiration({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.loyalty.v1.program',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.loyalty.program.LoyaltyPrograms.DisablePointsExpiration',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressLoyaltyProgramLoyaltyProgramsUrl({\n protoPath: '/v1/program/points-expiration/disable',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'loyaltyProgram.createdDate' },\n { path: 'loyaltyProgram.updatedDate' },\n { path: 'loyaltyProgram.pointDefinition.icon.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'loyaltyProgram.pointDefinition.icon.focalPoint.x' },\n { path: 'loyaltyProgram.pointDefinition.icon.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __disablePointsExpiration;\n}\n","import {\n getLoyaltyProgram as publicGetLoyaltyProgram,\n bulkGetLoyaltyProgram as publicBulkGetLoyaltyProgram,\n updateLoyaltyProgram as publicUpdateLoyaltyProgram,\n activateLoyaltyProgram as publicActivateLoyaltyProgram,\n pauseLoyaltyProgram as publicPauseLoyaltyProgram,\n getLoyaltyProgramPremiumFeatures as publicGetLoyaltyProgramPremiumFeatures,\n enablePointsExpiration as publicEnablePointsExpiration,\n disablePointsExpiration as publicDisablePointsExpiration,\n} from './loyalty-v1-program-programs.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { createEventModule } from '@wix/sdk-runtime/event-definition-modules';\nimport {\n BuildRESTFunction,\n MaybeContext,\n BuildEventDefinition,\n} from '@wix/sdk-types';\nimport { onProgramUpdated as publicOnProgramUpdated } from './loyalty-v1-program-programs.public.js';\n\nexport const getLoyaltyProgram: MaybeContext<\n BuildRESTFunction<typeof publicGetLoyaltyProgram> &\n typeof publicGetLoyaltyProgram\n> = /*#__PURE__*/ createRESTModule(publicGetLoyaltyProgram);\nexport const bulkGetLoyaltyProgram: MaybeContext<\n BuildRESTFunction<typeof publicBulkGetLoyaltyProgram> &\n typeof publicBulkGetLoyaltyProgram\n> = /*#__PURE__*/ createRESTModule(publicBulkGetLoyaltyProgram);\nexport const updateLoyaltyProgram: MaybeContext<\n BuildRESTFunction<typeof publicUpdateLoyaltyProgram> &\n typeof publicUpdateLoyaltyProgram\n> = /*#__PURE__*/ createRESTModule(publicUpdateLoyaltyProgram);\nexport const activateLoyaltyProgram: MaybeContext<\n BuildRESTFunction<typeof publicActivateLoyaltyProgram> &\n typeof publicActivateLoyaltyProgram\n> = /*#__PURE__*/ createRESTModule(publicActivateLoyaltyProgram);\nexport const pauseLoyaltyProgram: MaybeContext<\n BuildRESTFunction<typeof publicPauseLoyaltyProgram> &\n typeof publicPauseLoyaltyProgram\n> = /*#__PURE__*/ createRESTModule(publicPauseLoyaltyProgram);\nexport const getLoyaltyProgramPremiumFeatures: MaybeContext<\n BuildRESTFunction<typeof publicGetLoyaltyProgramPremiumFeatures> &\n typeof publicGetLoyaltyProgramPremiumFeatures\n> = /*#__PURE__*/ createRESTModule(publicGetLoyaltyProgramPremiumFeatures);\nexport const enablePointsExpiration: MaybeContext<\n BuildRESTFunction<typeof publicEnablePointsExpiration> &\n typeof publicEnablePointsExpiration\n> = /*#__PURE__*/ createRESTModule(publicEnablePointsExpiration);\nexport const disablePointsExpiration: MaybeContext<\n BuildRESTFunction<typeof publicDisablePointsExpiration> &\n typeof publicDisablePointsExpiration\n> = /*#__PURE__*/ createRESTModule(publicDisablePointsExpiration);\n/**\n * Triggered when a loyalty program is updated.\n */\nexport const onProgramUpdated: BuildEventDefinition<\n typeof publicOnProgramUpdated\n> &\n typeof publicOnProgramUpdated = createEventModule(publicOnProgramUpdated);\n\nexport {\n ProgramStatus,\n Status,\n Type,\n FeaturePeriod,\n V1Type,\n WebhookIdentityType,\n} from './loyalty-v1-program-programs.universal.js';\nexport {\n LoyaltyProgram,\n PointDefinition,\n FocalPoint,\n PointsExpiration,\n PremiumFeatures,\n SocialMediaSettings,\n SocialMediaChannel,\n GetLoyaltyProgramRequest,\n GetLoyaltyProgramResponse,\n BulkGetLoyaltyProgramRequest,\n BulkGetLoyaltyProgramResponse,\n ProgramInSite,\n UpdateLoyaltyProgramRequest,\n UpdateLoyaltyProgramResponse,\n PointsExpirationConfigurationChanged,\n PointsExpirationChanges,\n ActivateLoyaltyProgramRequest,\n ActivateLoyaltyProgramResponse,\n LoyaltyProgramActivated,\n PauseLoyaltyProgramRequest,\n PauseLoyaltyProgramResponse,\n GetLoyaltyProgramDescriptionRequest,\n GetLoyaltyProgramDescriptionResponse,\n UpdateLoyaltyProgramDescriptionRequest,\n UpdateLoyaltyProgramDescriptionResponse,\n LoyaltyProgramDescriptionUpdated,\n GetLoyaltyProgramPremiumFeaturesRequest,\n GetLoyaltyProgramPremiumFeaturesResponse,\n EnablePointsExpirationRequest,\n EnablePointsExpirationResponse,\n PointsExpirationEnabled,\n DisablePointsExpirationRequest,\n DisablePointsExpirationResponse,\n PointsExpirationDisabled,\n FeatureEvent,\n FeatureEventEventOneOf,\n FeatureEnabled,\n FeatureEnabledReasonOneOf,\n Feature,\n FeatureQuantityInfoOneOf,\n FeatureContext,\n BooleanFeature,\n QuotaFeature,\n QuotaInfo,\n QuotaInfoEntry,\n TransferredFromAnotherAccountReason,\n ReassignedFromSiteReason,\n AssignedFromFloatingReason,\n NewFeatureReason,\n ContractSwitchedReason,\n ManualFeatureCreationReason,\n MigratedFromLegacyReason,\n FeatureDisabled,\n FeatureDisabledReasonOneOf,\n UnAssingedToFloatingReason,\n ReplacedByAnotherSubscriptionReason,\n ReassignedToAnotherSiteReason,\n FeatureUpdated,\n FeatureUpdatedPreviousQuantityInfoOneOf,\n FeatureUpdatedReasonOneOf,\n FeatureCancelled,\n FeatureCancelledReasonOneOf,\n TransferredToAnotherAccountReason,\n CancelRequestedReason,\n Empty,\n LoyaltyAppInstallation,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n RestoreInfo,\n EntityUpdatedEvent,\n EntityDeletedEvent,\n ActionEvent,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n BaseEventMetadata,\n EventMetadata,\n ProgramUpdatedEnvelope,\n} from './loyalty-v1-program-programs.universal.js';\nexport {\n ProgramStatusWithLiterals,\n StatusWithLiterals,\n TypeWithLiterals,\n FeaturePeriodWithLiterals,\n V1TypeWithLiterals,\n WebhookIdentityTypeWithLiterals,\n} from './loyalty-v1-program-programs.universal.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gCAAAA;AAAA,EAAA,6BAAAC;AAAA,EAAA,+BAAAC;AAAA,EAAA,8BAAAC;AAAA,EAAA,yBAAAC;AAAA,EAAA,wCAAAC;AAAA,EAAA,wBAAAC;AAAA,EAAA,2BAAAC;AAAA,EAAA,4BAAAC;AAAA;AAAA;;;ACAA,IAAAC,iCAAwD;AACxD,IAAAC,gBAA6C;AAC7C,IAAAC,oBAAqD;AACrD,IAAAC,0BAA+B;AAC/B,uBAA8D;;;ACJ9D,6BAAoD;AACpD,oCAGO;;;ACJP,0BAAkC;AAClC,mBAA6C;AAC7C,IAAAC,gBAA6C;AAC7C,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,mDACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,GAAG;AAAA,MACD;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA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ACd,YACkC;AAClC,SAAO,MACLA;AAAA;AAAA,IAEE,EAAE,WAAW;AAAA,EACf;AACJ;AAqBO,IAAM,uBAAmB;AAAA,EAC9B;AAAA,EACA;AAAA,EACA,CAAC,cACC;AAAA,QACE,wCAAe,OAAO;AAAA,MACpB;AAAA,QACE,aAAa;AAAA,QACb,OAAO;AAAA,UACL,EAAE,MAAM,qBAAqB;AAAA,UAC7B,EAAE,MAAM,qBAAqB;AAAA,UAC7B,EAAE,MAAM,qBAAqB;AAAA,QAC/B;AAAA,MACF;AAAA,MACA;AAAA,QACE,aAAa;AAAA,QACb,OAAO,CAAC,EAAE,MAAM,8BAA8B,CAAC;AAAA,MACjD;AAAA,IACF,CAAC;AAAA,EACH;AACJ,EAA0B;;;AG3R1B,IAAAC,uBAAiC;AACjC,sCAAkC;AAQ3B,IAAMC,qBAGK,2DAAiBA,kBAAuB;AACnD,IAAMC,yBAGK,2DAAiBA,sBAA2B;AACvD,IAAMC,wBAGK,2DAAiBA,qBAA0B;AACtD,IAAMC,0BAGK,2DAAiBA,uBAA4B;AACxD,IAAMC,uBAGK,2DAAiBA,oBAAyB;AACrD,IAAMC,oCAGK,2DAAiBA,iCAAsC;AAClE,IAAMC,0BAGK,2DAAiBA,uBAA4B;AACxD,IAAMC,2BAGK,2DAAiBA,wBAA6B;AAIzD,IAAMC,wBAGqB,mDAAkB,gBAAsB;","names":["activateLoyaltyProgram","bulkGetLoyaltyProgram","disablePointsExpiration","enablePointsExpiration","getLoyaltyProgram","getLoyaltyProgramPremiumFeatures","onProgramUpdated","pauseLoyaltyProgram","updateLoyaltyProgram","import_rename_all_nested_keys","import_image","import_timestamp","import_transform_paths","import_float","import_timestamp","import_rest_modules","payload","import_image","import_transform_paths","ProgramStatus","Status","Type","FeaturePeriod","V1Type","WebhookIdentityType","getLoyaltyProgram","sdkTransformError","bulkGetLoyaltyProgram","updateLoyaltyProgram","activateLoyaltyProgram","pauseLoyaltyProgram","getLoyaltyProgramPremiumFeatures","enablePointsExpiration","disablePointsExpiration","getLoyaltyProgram","bulkGetLoyaltyProgram","updateLoyaltyProgram","activateLoyaltyProgram","pauseLoyaltyProgram","getLoyaltyProgramPremiumFeatures","enablePointsExpiration","disablePointsExpiration","import_rest_modules","getLoyaltyProgram","bulkGetLoyaltyProgram","updateLoyaltyProgram","activateLoyaltyProgram","pauseLoyaltyProgram","getLoyaltyProgramPremiumFeatures","enablePointsExpiration","disablePointsExpiration","onProgramUpdated"]}
|
|
@@ -573,7 +573,7 @@ interface QuotaInfo {
|
|
|
573
573
|
remainingUsage?: string | null;
|
|
574
574
|
/**
|
|
575
575
|
* Breakdown of quota information entries, entry per feature instance.
|
|
576
|
-
* @maxSize
|
|
576
|
+
* @maxSize 1000
|
|
577
577
|
*/
|
|
578
578
|
breakdown?: QuotaInfoEntry[];
|
|
579
579
|
}
|
|
@@ -617,6 +617,11 @@ interface QuotaInfoEntry {
|
|
|
617
617
|
* @format GUID
|
|
618
618
|
*/
|
|
619
619
|
subscriptionId?: string | null;
|
|
620
|
+
/**
|
|
621
|
+
* Reset date of the quota.
|
|
622
|
+
* Relevant only for features with a period that is not `NO_PERIOD`, and only for features that are managed by the Quota Manager system.
|
|
623
|
+
*/
|
|
624
|
+
resetDate?: Date | null;
|
|
620
625
|
}
|
|
621
626
|
/** Subscription transferred from another account, features on the current account were enabled. */
|
|
622
627
|
interface TransferredFromAnotherAccountReason {
|