@wix/auto_sdk_benefit-programs_pools 1.0.79 → 1.0.81

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.
Files changed (50) hide show
  1. package/build/cjs/index.d.ts +1 -1
  2. package/build/cjs/index.js +61 -0
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +88 -1
  5. package/build/cjs/index.typings.js +52 -0
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +82 -2
  8. package/build/cjs/meta.js +41 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +1 -1
  11. package/build/es/index.mjs +60 -0
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +88 -1
  14. package/build/es/index.typings.mjs +51 -0
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +82 -2
  17. package/build/es/meta.mjs +40 -0
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +20 -3
  20. package/build/internal/cjs/index.typings.d.ts +108 -1
  21. package/build/internal/cjs/meta.d.ts +82 -2
  22. package/build/internal/es/index.d.mts +20 -3
  23. package/build/internal/es/index.typings.d.mts +108 -1
  24. package/build/internal/es/meta.d.mts +82 -2
  25. package/package.json +4 -11
  26. package/build/cjs/schemas.d.ts +0 -1033
  27. package/build/cjs/schemas.js +0 -1991
  28. package/build/cjs/schemas.js.map +0 -1
  29. package/build/es/schemas.d.mts +0 -1033
  30. package/build/es/schemas.mjs +0 -1937
  31. package/build/es/schemas.mjs.map +0 -1
  32. package/build/internal/cjs/index.js +0 -1186
  33. package/build/internal/cjs/index.js.map +0 -1
  34. package/build/internal/cjs/index.typings.js +0 -1078
  35. package/build/internal/cjs/index.typings.js.map +0 -1
  36. package/build/internal/cjs/meta.js +0 -867
  37. package/build/internal/cjs/meta.js.map +0 -1
  38. package/build/internal/cjs/schemas.d.ts +0 -1033
  39. package/build/internal/cjs/schemas.js +0 -1991
  40. package/build/internal/cjs/schemas.js.map +0 -1
  41. package/build/internal/es/index.mjs +0 -1138
  42. package/build/internal/es/index.mjs.map +0 -1
  43. package/build/internal/es/index.typings.mjs +0 -1029
  44. package/build/internal/es/index.typings.mjs.map +0 -1
  45. package/build/internal/es/meta.mjs +0 -817
  46. package/build/internal/es/meta.mjs.map +0 -1
  47. package/build/internal/es/schemas.d.mts +0 -1033
  48. package/build/internal/es/schemas.mjs +0 -1937
  49. package/build/internal/es/schemas.mjs.map +0 -1
  50. package/schemas/package.json +0 -3
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/benefit-programs-v1-pool-pools.http.ts","../../src/benefit-programs-v1-pool-pools.types.ts","../../src/benefit-programs-v1-pool-pools.meta.ts"],"sourcesContent":["import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\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 resolveWixBenefitProgramsV1PoolPoolServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'api._api_base_domain_': [\n {\n srcPath: '/pools',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/_api/benefit-programs-pools',\n destPath: '',\n },\n {\n srcPath: '/_api/benefit-programs/v1/bulk/benefits',\n destPath: '/v1/bulk/benefits',\n },\n {\n srcPath: '/_api/benefit-programs/v1/bulk/pools',\n destPath: '/v1/bulk/pools',\n },\n {\n srcPath: '/_api/benefit-programs/v1/pools',\n destPath: '/v1/pools',\n },\n {\n srcPath: '/_api/benefit-programs/v1/benefits',\n destPath: '/v1/benefits',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/benefit-programs-pools',\n destPath: '',\n },\n {\n srcPath: '/_api/benefit-programs/v1/bulk/benefits',\n destPath: '/v1/bulk/benefits',\n },\n {\n srcPath: '/_api/benefit-programs/v1/bulk/pools',\n destPath: '/v1/bulk/pools',\n },\n {\n srcPath: '/_api/benefit-programs/v1/pools',\n destPath: '/v1/pools',\n },\n {\n srcPath: '/_api/benefit-programs/v1/benefits',\n destPath: '/v1/benefits',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/benefit-programs-pools',\n destPath: '',\n },\n {\n srcPath: '/_api/benefit-programs/v1/bulk/benefits',\n destPath: '/v1/bulk/benefits',\n },\n {\n srcPath: '/_api/benefit-programs/v1/bulk/pools',\n destPath: '/v1/bulk/pools',\n },\n {\n srcPath: '/_api/benefit-programs/v1/pools',\n destPath: '/v1/pools',\n },\n {\n srcPath: '/_api/benefit-programs/v1/benefits',\n destPath: '/v1/benefits',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/benefit-programs-pools',\n destPath: '',\n },\n {\n srcPath: '/_api/benefit-programs/v1/bulk/benefits',\n destPath: '/v1/bulk/benefits',\n },\n {\n srcPath: '/_api/benefit-programs/v1/bulk/pools',\n destPath: '/v1/bulk/pools',\n },\n {\n srcPath: '/_api/benefit-programs/v1/pools',\n destPath: '/v1/pools',\n },\n {\n srcPath: '/_api/benefit-programs/v1/benefits',\n destPath: '/v1/benefits',\n },\n ],\n 'editor.wixapps.net': [\n {\n srcPath: '/_api/benefit-programs-pools',\n destPath: '',\n },\n {\n srcPath: '/_api/benefit-programs/v1/bulk/benefits',\n destPath: '/v1/bulk/benefits',\n },\n {\n srcPath: '/_api/benefit-programs/v1/bulk/pools',\n destPath: '/v1/bulk/pools',\n },\n {\n srcPath: '/_api/benefit-programs/v1/pools',\n destPath: '/v1/pools',\n },\n {\n srcPath: '/_api/benefit-programs/v1/benefits',\n destPath: '/v1/benefits',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/benefit-programs-pools',\n destPath: '',\n },\n {\n srcPath: '/_api/benefit-programs/v1/bulk/benefits',\n destPath: '/v1/bulk/benefits',\n },\n {\n srcPath: '/_api/benefit-programs/v1/bulk/pools',\n destPath: '/v1/bulk/pools',\n },\n {\n srcPath: '/_api/benefit-programs/v1/pools',\n destPath: '/v1/pools',\n },\n {\n srcPath: '/_api/benefit-programs/v1/benefits',\n destPath: '/v1/benefits',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/benefit-programs-pools',\n destPath: '',\n },\n {\n srcPath: '/_api/benefit-programs/v1/benefits',\n destPath: '/v1/benefits',\n },\n {\n srcPath: '/_api/benefit-programs/v1/pools',\n destPath: '/v1/pools',\n },\n {\n srcPath: '/_api/benefit-programs/v1/bulk/benefits',\n destPath: '/v1/bulk/benefits',\n },\n {\n srcPath: '/_api/benefit-programs/v1/bulk/pools',\n destPath: '/v1/bulk/pools',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/benefit-programs/v1/bulk/benefits',\n destPath: '/v1/bulk/benefits',\n },\n {\n srcPath: '/_api/benefit-programs/v1/bulk/pools',\n destPath: '/v1/bulk/pools',\n },\n {\n srcPath: '/_api/benefit-programs/v1/pools',\n destPath: '/v1/pools',\n },\n {\n srcPath: '/_api/benefit-programs/v1/benefits',\n destPath: '/v1/benefits',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/benefit-programs/v1/bulk/benefits',\n destPath: '/v1/bulk/benefits',\n },\n {\n srcPath: '/benefit-programs/v1/bulk/pools',\n destPath: '/v1/bulk/pools',\n },\n {\n srcPath: '/benefit-programs/v1/pools',\n destPath: '/v1/pools',\n },\n {\n srcPath: '/benefit-programs/v1/benefits',\n destPath: '/v1/benefits',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_benefit-programs_pools';\n\n/** Retrieves a pool. */\nexport function getPool(payload: object): RequestOptionsFactory<any> {\n function __getPool({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.benefit_programs.v1.pool',\n method: 'GET' as any,\n methodFqn: 'wix.benefit_programs.v1.pool.PoolService.GetPool',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBenefitProgramsV1PoolPoolServiceUrl({\n protoPath: '/v1/pools/{poolId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'pool.createdDate' }, { path: 'pool.updatedDate' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getPool;\n}\n\n/**\n * Updates a pool.\n *\n * Each time the pool is updated,\n * `revision` increments by 1.\n * The current `revision` must be passed when updating the pool.\n * This ensures you're working with the latest pool\n * and prevents unintended overwrites.\n */\nexport function updatePool(payload: object): RequestOptionsFactory<any> {\n function __updatePool({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'pool.createdDate' }, { path: 'pool.updatedDate' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.benefit_programs.v1.pool',\n method: 'PATCH' as any,\n methodFqn: 'wix.benefit_programs.v1.pool.PoolService.UpdatePool',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBenefitProgramsV1PoolPoolServiceUrl({\n protoPath: '/v1/pools/{pool.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'pool.createdDate' }, { path: 'pool.updatedDate' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updatePool;\n}\n\n/**\n * Creates a query to retrieve a list of pools.\n *\n * The Query Pools method builds a query to retrieve a list of pools and returns a `PoolsQueryBuilder` object.\n *\n * The returned object contains the query definition, which is used to run the query using the `find()` method.\n *\n * You can refine the query by chaining `PoolsQueryBuilder` methods onto the query. `PoolsQueryBuilder` methods enable you to filter, sort, and control the results that Query Pools returns.\n *\n * Query Pools has a default paging limit of 50, which you can override.\n *\n * For a full description of the item object, see the object returned for the `items` property in `PoolsQueryResult`.\n */\nexport function queryPools(payload: object): RequestOptionsFactory<any> {\n function __queryPools({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.benefit_programs.v1.pool',\n method: 'POST' as any,\n methodFqn: 'wix.benefit_programs.v1.pool.PoolService.QueryPools',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBenefitProgramsV1PoolPoolServiceUrl({\n protoPath: '/v1/pools/query',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'pools.createdDate' },\n { path: 'pools.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryPools;\n}\n\n/**\n * Redeems a specified benefit.\n *\n * Calling this method records redemption of the benefit and adjusts the pool's associated balance. You still need to handle providing the beneficiary with the item.\n */\nexport function redeemBenefit(payload: object): RequestOptionsFactory<any> {\n function __redeemBenefit({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'targetDate' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.benefit_programs.v1.pool',\n method: 'POST' as any,\n methodFqn: 'wix.benefit_programs.v1.pool.PoolService.RedeemBenefit',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBenefitProgramsV1PoolPoolServiceUrl({\n protoPath: '/v1/benefits/redeem',\n data: serializedData,\n host,\n }),\n data: serializedData,\n };\n\n return metadata;\n }\n\n return __redeemBenefit;\n}\n\n/**\n * Reallocates a redeemed benefit to a new target date.\n *\n * The reallocation is recorded as a new zero-amount transaction that supersedes the specified transaction in the redemption's transaction chain.\n * The specified transaction must be the latest transaction in the chain. The item, count and benefit key are carried over from the original redemption; only the target date changes.\n */\nexport function reallocateBenefit(payload: object): RequestOptionsFactory<any> {\n function __reallocateBenefit({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'targetDate' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.benefit_programs.v1.pool',\n method: 'POST' as any,\n methodFqn: 'wix.benefit_programs.v1.pool.PoolService.ReallocateBenefit',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBenefitProgramsV1PoolPoolServiceUrl({\n protoPath: '/v1/benefits/reallocate',\n data: serializedData,\n host,\n }),\n data: serializedData,\n };\n\n return metadata;\n }\n\n return __reallocateBenefit;\n}\n\n/**\n * Checks if a benefit can currently be redeemed.\n *\n * To be redeemed, a benefit's pool must be active and the associated balance must be greater than the cost of the benefit.\n */\nexport function checkBenefitEligibility(\n payload: object\n): RequestOptionsFactory<any> {\n function __checkBenefitEligibility({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'targetDate' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.benefit_programs.v1.pool',\n method: 'POST' as any,\n methodFqn:\n 'wix.benefit_programs.v1.pool.PoolService.CheckBenefitEligibility',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBenefitProgramsV1PoolPoolServiceUrl({\n protoPath: '/v1/pools/check-eligibility',\n data: serializedData,\n host,\n }),\n data: serializedData,\n };\n\n return metadata;\n }\n\n return __checkBenefitEligibility;\n}\n\n/**\n * Checks if benefits can currently be redeemed.\n *\n * To be redeemed, a benefit's pool must be active and the associated balance must be greater than the cost of the benefit.\n *\n * Each benefit is checked independently. For example, if there is a benefit with a price of 3 credits and a benefit with a price of 4 credits, and there are 5 available credits, both benefits would be returned as eligible, but they can't both be redeemed.\n */\nexport function bulkCheckBenefitEligibility(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkCheckBenefitEligibility({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'benefitSelectors.targetDate' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.benefit_programs.v1.pool',\n method: 'POST' as any,\n methodFqn:\n 'wix.benefit_programs.v1.pool.PoolService.BulkCheckBenefitEligibility',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBenefitProgramsV1PoolPoolServiceUrl({\n protoPath: '/v1/bulk/benefits/check-eligibility',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'results.benefitSelector.targetDate' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkCheckBenefitEligibility;\n}\n\n/**\n * Retrieves benefits that can be redeemed for a specific benefit item.\n *\n * Each benefit item can only be linked to 1 benefit in 1 pool definition. However, each pool created from that pool definition contains the same benefits.\n * This method checks each pool containing a benefit with this benefit item, and returns the benefits that can be redeemed.\n */\nexport function getEligibleBenefits(\n payload: object\n): RequestOptionsFactory<any> {\n function __getEligibleBenefits({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'targetDate' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.benefit_programs.v1.pool',\n method: 'POST' as any,\n methodFqn: 'wix.benefit_programs.v1.pool.PoolService.GetEligibleBenefits',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBenefitProgramsV1PoolPoolServiceUrl({\n protoPath: '/v1/pools/eligible-pools',\n data: serializedData,\n host,\n }),\n data: serializedData,\n };\n\n return metadata;\n }\n\n return __getEligibleBenefits;\n}\n\n/** Updates pools. */\nexport function bulkUpdatePools(payload: object): RequestOptionsFactory<any> {\n function __bulkUpdatePools({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'pools.fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'pools.pool.createdDate' },\n { path: 'pools.pool.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.benefit_programs.v1.pool',\n method: 'POST' as any,\n methodFqn: 'wix.benefit_programs.v1.pool.PoolService.BulkUpdatePools',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBenefitProgramsV1PoolPoolServiceUrl({\n protoPath: '/v1/bulk/pools',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'results.item.createdDate' },\n { path: 'results.item.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkUpdatePools;\n}\n\n/**\n * Checks benefit eligibility across the pools that match the filter.\n *\n * The filter selects pools (not individual benefits), using the same fields supported by Query Pools. For field support, see [Filtering and Sorting](https://dev.wix.com/docs/rest/business-solutions/benefit-programs/pools/filtering-and-sorting).\n *\n * To be redeemed, a benefit's pool must be active and the associated balance must be greater than the cost of the benefit.\n *\n * Each benefit is checked independently. For example, if there is a benefit with a price of 3 credits and a benefit with a price of 4 credits, and there are 5 available credits, both benefits would be returned as eligible, but they can't both be redeemed.\n */\nexport function checkBenefitEligibilityByFilter(\n payload: object\n): RequestOptionsFactory<any> {\n function __checkBenefitEligibilityByFilter({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'targetDate' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.benefit_programs.v1.pool',\n method: 'POST' as any,\n methodFqn:\n 'wix.benefit_programs.v1.pool.PoolService.CheckBenefitEligibilityByFilter',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBenefitProgramsV1PoolPoolServiceUrl({\n protoPath: '/v1/pools/check-benefit-eligibility-by-filter',\n data: serializedData,\n host,\n }),\n data: serializedData,\n };\n\n return metadata;\n }\n\n return __checkBenefitEligibilityByFilter;\n}\n","export interface Pool {\n /**\n * Pool ID.\n * @format GUID\n * @immutable\n * @readonly\n */\n id?: string | null;\n /**\n * Revision number, which increments by 1 each time the pool is updated.\n * To prevent conflicting changes, the current revision must be passed when updating the pool.\n *\n * Ignored when creating a pool.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the pool was created.\n * @readonly\n */\n createdDate?: Date | null;\n /**\n * Date and time the pool was updated.\n * @readonly\n */\n updatedDate?: Date | null;\n /**\n * ID of the associated pool definition.\n * @format GUID\n * @readonly\n * @immutable\n */\n poolDefinitionId?: string | null;\n /**\n * ID of the associated program definition.\n * @format GUID\n * @readonly\n * @immutable\n */\n programDefinitionId?: string | null;\n /**\n * ID of the program that contains this pool.\n * @format GUID\n * @readonly\n * @immutable\n */\n programId?: string | null;\n /**\n * Pool status.\n * @readonly\n */\n status?: PoolStatusWithLiterals;\n /**\n * Pool beneficiary.\n * @readonly\n * @immutable\n */\n beneficiary?: CommonIdentificationData;\n /** Pool benefits and settings. */\n details?: Details;\n /**\n * Pool name.\n *\n * You may want to use the same name that's used in the associated pool definition.\n * @maxLength 64\n */\n displayName?: string;\n /**\n * Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.\n * @readonly\n * @immutable\n * @minLength 1\n * @maxLength 20\n */\n namespace?: string | null;\n /**\n * Custom field data for the pool object.\n *\n * [Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions) must be configured in the app dashboard before they can be accessed with API calls.\n */\n extendedFields?: ExtendedFields;\n /**\n * Associated program definition information.\n * @readonly\n */\n programDefinition?: ProgramDefinitionInfo;\n /**\n * Information about the program containing the pool.\n * @readonly\n */\n program?: PoolProgramInfo;\n /**\n * Version of the pool definition that this pool was created from.\n * @readonly\n */\n poolDefinitionRevision?: string | null;\n /**\n * Number of times this pool has been renewed.\n * @readonly\n */\n renewalCount?: number | null;\n /**\n * Previous status of the benefit pool.\n * @internal\n * @readonly\n */\n previousStatus?: PoolStatusWithLiterals;\n /**\n * Origin of the benefit pool.\n * @internal\n * @readonly\n * @immutable\n */\n origin?: PoolOriginWithLiterals;\n /**\n * Action to be performed on pool renewal\n * @internal\n * @readonly\n */\n renewalAction?: PoolRenewalAction;\n /**\n * Pool description.\n * @internal\n * @maxLength 450\n */\n description?: string | null;\n /**\n * Monotonic counter incremented on every change, including system/materialization updates that do not bump revision.\n * @internal\n * @readonly\n */\n changesCounter?: string | null;\n}\n\nexport enum PoolStatus {\n /** Pool is active. */\n ACTIVE = 'ACTIVE',\n /** Pool is paused. It can be resumed. */\n PAUSED = 'PAUSED',\n /** Pool is ended. It can't be resumed. */\n ENDED = 'ENDED',\n /** Pool provisioning is in progress. This status exists for a short time during processing. */\n PROVISIONING = 'PROVISIONING',\n /** Pool renewing is in progress. This status exists for a short time during processing. */\n RENEWING = 'RENEWING',\n /** Pool is pending */\n PENDING = 'PENDING',\n}\n\n/** @enumType */\nexport type PoolStatusWithLiterals =\n | PoolStatus\n | 'ACTIVE'\n | 'PAUSED'\n | 'ENDED'\n | 'PROVISIONING'\n | 'RENEWING'\n | 'PENDING';\n\nexport interface CommonIdentificationData\n extends CommonIdentificationDataIdOneOf {\n /**\n * ID of a site visitor that hasn't logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site member.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user.\n * @format GUID\n */\n wixUserId?: string;\n /**\n * Identity type.\n * @internal\n * @readonly\n */\n identityType?: IdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface CommonIdentificationDataIdOneOf {\n /**\n * ID of a site visitor that hasn't logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site member.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user.\n * @format GUID\n */\n wixUserId?: string;\n}\n\nexport enum IdentityType {\n /** Unknown type. This value is not used. */\n UNKNOWN = 'UNKNOWN',\n /** A site visitor who has not logged in. */\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n /** A logged-in site member. */\n MEMBER = 'MEMBER',\n /** A Wix account holder, such as a site owner or contributor. */\n WIX_USER = 'WIX_USER',\n}\n\n/** @enumType */\nexport type IdentityTypeWithLiterals =\n | IdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER';\n\nexport interface Details {\n /**\n * List of benefits.\n * @maxSize 10\n */\n benefits?: Benefit[];\n /**\n * Credit settings.\n *\n * If this object is empty, you can't set a price for the benefit.\n */\n creditConfiguration?: CreditConfiguration;\n /**\n * Defines when benefits can be redeemed.\n *\n * Benefit redemption can be limited by:\n * - **Fixed intervals**: Benefits can be redeemed during specific times of the day or week.\n * - **Rate limited**: Up to a maximum amount of benefits can be redeemed in a specified time period.\n *\n * Expressions can be combined using the *not*, *and*, and *or* operators.\n *\n * Each benefit can override this policy.\n * @internal\n */\n policyExpression?: PolicyExpression;\n /** Additional information relating to this object. */\n additionalData?: Record<string, any> | null;\n}\n\nexport interface Benefit {\n /**\n * Unique identifier for this benefit.\n *\n * This key is consistent across the pool definition and all associated pools that contain this benefit.\n * @maxLength 64\n */\n benefitKey?: string;\n /**\n * ID that is used to associated items with this benefit.\n * @format GUID\n * @immutable\n * @readonly\n */\n itemSetId?: string | null;\n /**\n * Price of the benefit in credits. The price is the same for all of this benefit's items.\n * @decimalValue options { gte:0, maxScale:4 }\n */\n price?: string | null;\n /**\n * Overrides the default policy expression in `benefit.details`.\n * @internal\n */\n policyExpression?: PolicyExpression;\n /** Additional information for this benefit. */\n additionalData?: Record<string, any> | null;\n /**\n * ID of the app providing the benefit items.\n * @format GUID\n * @immutable\n */\n providerAppId?: string | null;\n /**\n * Benefit name.\n * @maxLength 40\n */\n displayName?: string | null;\n /**\n * Benefit description.\n * @maxLength 255\n */\n description?: string | null;\n}\n\nexport interface PolicyExpression extends PolicyExpressionExpressionOneOf {\n /** Benefits can be redeemed if the expression in this object is not fulfilled. */\n operatorNotOptions?: PolicyExpressionNot;\n /** Benefits can be redeemed if all the expression in this object's array are fulfilled. */\n operatorAndOptions?: PolicyExpressionAnd;\n /** Benefits can be redeemed if at least one of the expressions in this object's array is fulfilled. */\n operatorOrOptions?: PolicyExpressionOr;\n /** Defines when benefits can be redeemed or how many benefits can be redeemed in a specific time period. */\n policyOptions?: Policy;\n /** Policy expression type. */\n type?: PolicyExpressionTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface PolicyExpressionExpressionOneOf {\n /** Benefits can be redeemed if the expression in this object is not fulfilled. */\n operatorNotOptions?: PolicyExpressionNot;\n /** Benefits can be redeemed if all the expression in this object's array are fulfilled. */\n operatorAndOptions?: PolicyExpressionAnd;\n /** Benefits can be redeemed if at least one of the expressions in this object's array is fulfilled. */\n operatorOrOptions?: PolicyExpressionOr;\n /** Defines when benefits can be redeemed or how many benefits can be redeemed in a specific time period. */\n policyOptions?: Policy;\n}\n\nexport enum PolicyExpressionType {\n /** Use with `operatorNotOptions`. */\n OPERATOR_NOT = 'OPERATOR_NOT',\n /** Use with `operatorAndOptions`. */\n OPERATOR_AND = 'OPERATOR_AND',\n /** Use with `operatorOrOptions`. */\n OPERATOR_OR = 'OPERATOR_OR',\n /** Use with `policyOptions`. */\n POLICY = 'POLICY',\n}\n\n/** @enumType */\nexport type PolicyExpressionTypeWithLiterals =\n | PolicyExpressionType\n | 'OPERATOR_NOT'\n | 'OPERATOR_AND'\n | 'OPERATOR_OR'\n | 'POLICY';\n\nexport interface PolicyExpressionNot {\n /** Policy expression. If this expression is not fulfilled, benefits can be redeemed. */\n expression?: PolicyExpression;\n}\n\nexport interface PolicyExpressionAnd {\n /**\n * Array of policy expressions. If all expressions are fulfilled, benefits can be redeemed.\n * @minSize 2\n * @maxSize 10\n */\n expressions?: PolicyExpression[];\n}\n\nexport interface PolicyExpressionOr {\n /**\n * Array of policy expressions. If at least one expression is fulfilled, benefits can be redeemed.\n * @minSize 2\n * @maxSize 10\n */\n expressions?: PolicyExpression[];\n}\n\nexport interface Policy extends PolicyPolicyOneOf {\n /**\n * Defines an interval during which the policy expression is fulfilled.\n *\n * If `fromWeekDay` and `toWeekDay` are defined, this interval applies weekly. Otherwise, it applies daily.\n */\n fixedIntervalOptions?: FixedIntervalPolicy;\n /** Maximum amount of times a benefit can be redeemed during a specified time period. */\n rateLimitedOptions?: RateLimitedPolicy;\n /** Custom policy defined by a different app. */\n customOptions?: CustomPolicy;\n /** Policy type. */\n type?: TypeWithLiterals;\n}\n\n/** @oneof */\nexport interface PolicyPolicyOneOf {\n /**\n * Defines an interval during which the policy expression is fulfilled.\n *\n * If `fromWeekDay` and `toWeekDay` are defined, this interval applies weekly. Otherwise, it applies daily.\n */\n fixedIntervalOptions?: FixedIntervalPolicy;\n /** Maximum amount of times a benefit can be redeemed during a specified time period. */\n rateLimitedOptions?: RateLimitedPolicy;\n /** Custom policy defined by a different app. */\n customOptions?: CustomPolicy;\n}\n\nexport enum Type {\n /** Use with `fixedIntervalOptions`. */\n FIXED_INTERVAL = 'FIXED_INTERVAL',\n /** Use with `rateLimitedOptions`. */\n RATE_LIMITED = 'RATE_LIMITED',\n /** Use with `customOptions`. */\n CUSTOM = 'CUSTOM',\n}\n\n/** @enumType */\nexport type TypeWithLiterals =\n | Type\n | 'FIXED_INTERVAL'\n | 'RATE_LIMITED'\n | 'CUSTOM';\n\nexport interface FixedIntervalPolicy {\n /** Weekday that this interval starts from. If this field is defined, then `toWeekDay` is required. */\n fromWeekDay?: WeekDayWithLiterals;\n /** Weekday that this interval ends at. If this field is defined, then `fromWeekDay` is required. */\n toWeekDay?: WeekDayWithLiterals;\n /**\n * Hour that this interval starts from. If this field is defined, then `toHour` is required.\n * @max 23\n */\n fromHour?: number | null;\n /**\n * Hour that this interval ends at. If this field is defined, then `fromHour` is required.\n * @max 23\n */\n toHour?: number | null;\n /**\n * Minute that this interval starts from. If this field is defined, then `toMinute` is required.\n * @max 59\n */\n fromMinute?: number | null;\n /**\n * Minute that this interval ends at. If this field is defined, then `fromMinute` is required.\n * @max 59\n */\n toMinute?: number | null;\n}\n\nexport enum WeekDay {\n /** Unknown weekday. */\n UNKNOWN = 'UNKNOWN',\n /** Monday. */\n MONDAY = 'MONDAY',\n /** Tuesday. */\n TUESDAY = 'TUESDAY',\n /** Wednesday. */\n WEDNESDAY = 'WEDNESDAY',\n /** Thursday. */\n THURSDAY = 'THURSDAY',\n /** Friday. */\n FRIDAY = 'FRIDAY',\n /** Saturday. */\n SATURDAY = 'SATURDAY',\n /** Sunday. */\n SUNDAY = 'SUNDAY',\n}\n\n/** @enumType */\nexport type WeekDayWithLiterals =\n | WeekDay\n | 'UNKNOWN'\n | 'MONDAY'\n | 'TUESDAY'\n | 'WEDNESDAY'\n | 'THURSDAY'\n | 'FRIDAY'\n | 'SATURDAY'\n | 'SUNDAY';\n\nexport interface RateLimitedPolicy {\n /** Maximum number of times a benefit can be redeemed per specified time period. */\n times?: number;\n /** Time period for the rate limit, resets at the start of each period. */\n timePeriod?: TimePeriodWithLiterals;\n /**\n * Unique identifier for the quota resource. Set automatically when creating a policy.\n * Updating RateLimitedPolicy `time period` or `times` will result in a quota reset.\n * @immutable\n * @readonly\n * @format GUID\n */\n quotaId?: string | null;\n}\n\nexport enum TimePeriod {\n /** Day, starting at midnight. */\n DAY = 'DAY',\n /** Calendar month, starting on the first day of the month. */\n MONTH = 'MONTH',\n}\n\n/** @enumType */\nexport type TimePeriodWithLiterals = TimePeriod | 'DAY' | 'MONTH';\n\n/** Custom policy as implemented by the Entitlement Policy Provider */\nexport interface CustomPolicy {\n /**\n * Policy ID.\n * @format GUID\n */\n id?: string;\n /**\n * ID of the app providing the policy.\n * @format GUID\n */\n appId?: string | null;\n /** Additional information for this custom policy. */\n additionalData?: Record<string, any> | null;\n}\n\nexport interface CreditConfiguration {\n /**\n * Initial available amount for associated balances.\n * @decimalValue options { gte:0, maxScale:4 }\n */\n amount?: string;\n /** Rollover settings. */\n rolloverConfiguration?: RolloverConfiguration;\n /**\n * Credit unit display name.\n * @maxLength 32\n */\n unitDisplayName?: string | null;\n /**\n * Credit unit type.\n * @internal\n * @maxLength 16\n */\n unitType?: string | null;\n}\n\nexport interface RolloverConfiguration {\n /** Whether unused credits roll over to a new cycle when a program renews. */\n enabled?: boolean | null;\n /**\n * Maximum number of credits that can roll over to the next cycle when a program renews.\n * @decimalValue options { gte:0, maxScale:4 }\n */\n balanceCap?: string | null;\n}\n\nexport interface ExtendedFields {\n /**\n * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\n * The value of each key is structured according to the schema defined when the extended fields were configured.\n *\n * You can only access fields for which you have the appropriate permissions.\n *\n * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).\n */\n namespaces?: Record<string, Record<string, any>>;\n}\n\nexport interface ProgramDefinitionInfo {\n /**\n * Program definition ID.\n * @format GUID\n * @readonly\n */\n id?: string;\n /**\n * Program definition external ID.\n * @format GUID\n * @readonly\n */\n externalId?: string | null;\n /**\n * Display name of the program definition.\n * @readonly\n * @maxLength 64\n */\n displayName?: string | null;\n /**\n * Description of the program definition.\n * @readonly\n * @maxLength 450\n */\n description?: string | null;\n}\n\nexport interface PoolProgramInfo {\n /**\n * Program ID.\n * @format GUID\n * @readonly\n */\n id?: string;\n /**\n * Program external ID.\n * @format GUID\n * @readonly\n */\n externalId?: string | null;\n /**\n * Display name of the program.\n * @readonly\n * @maxLength 64\n */\n displayName?: string | null;\n}\n\nexport enum PoolOrigin {\n /** Benefit pool created by a program provision. */\n PROVISION = 'PROVISION',\n /** Benefit pool was created when pool definition was added to program definition. */\n CASCADE = 'CASCADE',\n}\n\n/** @enumType */\nexport type PoolOriginWithLiterals = PoolOrigin | 'PROVISION' | 'CASCADE';\n\nexport interface PoolRenewalAction extends PoolRenewalActionActionOneOf {\n /**\n * The pool's details (benefits and settings) will be updated to match the details of the specified pool definition revision.\n * @readonly\n */\n updateOptions?: Update;\n /**\n * Version of the pool definition that will be used when the pool is renewed.\n * @readonly\n */\n poolDefinitionRevision?: string | null;\n /**\n * The action that will be taken when the pool is renewed\n * @readonly\n */\n type?: PoolRenewalActionTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface PoolRenewalActionActionOneOf {\n /**\n * The pool's details (benefits and settings) will be updated to match the details of the specified pool definition revision.\n * @readonly\n */\n updateOptions?: Update;\n}\n\nexport enum PoolRenewalActionType {\n /** Pool will end on program renewal */\n END = 'END',\n /** Pool will be updated on program renewal */\n UPDATE = 'UPDATE',\n}\n\n/** @enumType */\nexport type PoolRenewalActionTypeWithLiterals =\n | PoolRenewalActionType\n | 'END'\n | 'UPDATE';\n\nexport interface Update {\n /**\n * The pool's details will be updated to match the details of the specified pool definition revision.\n * @readonly\n */\n details?: Details;\n /**\n * The pool's display name will be updated to match the display name of the specified pool definition revision.\n * @maxLength 64\n */\n displayName?: string;\n /**\n * The pool's description will be updated to match the description of the specified pool definition revision.\n * @maxLength 450\n */\n description?: string | null;\n}\n\nexport interface PoolProvisioned {\n /** Pool which has been provisioned */\n pool?: Pool;\n}\n\nexport interface PoolRenewed {\n /** Pool which has been granted */\n pool?: Pool;\n}\n\nexport interface BenefitRedeemed {\n /** Pool which has been redeemed */\n pool?: Pool;\n /** Details of the redemption */\n redemptionDetails?: RedemptionDetails;\n}\n\nexport interface RedemptionDetails {\n /**\n * Id of the redemption transaction\n * @format GUID\n */\n transactionId?: string;\n /** Reference of the item that is being redeemed */\n itemReference?: ItemReference;\n /**\n * Number of of items to redeem\n * @min 1\n */\n itemCount?: number;\n /**\n * Date at which the item will be used. Target date does not necessarily equal the redemption date. Credits are redeemed immediately.\n * This date is only used for validations that may be performed by entitlement providers\n */\n targetDate?: Date | null;\n /**\n * Idempotency key\n * @maxLength 200\n */\n idempotencyKey?: string;\n /** Additional info provided during redemption */\n additionalData?: Record<string, any> | null;\n /** Beneficiary of the entitlement */\n beneficiary?: CommonIdentificationData;\n}\n\nexport interface ItemReference {\n /**\n * External ID of the item.\n * @format GUID\n */\n externalId?: string;\n /**\n * Item category.\n * @maxLength 20\n */\n category?: string;\n /**\n * ID of the app providing the item.\n * @format GUID\n */\n providerAppId?: string;\n}\n\nexport interface BenefitReallocated {\n /** Pool which the reallocated benefit belongs to */\n pool?: Pool;\n /** Details of the reallocation */\n reallocationDetails?: ReallocationDetails;\n}\n\nexport interface ReallocationDetails {\n /**\n * Id of the reallocation transaction. This is the new latest transaction in the chain\n * @format GUID\n */\n transactionId?: string;\n /**\n * Id of the transaction superseded by the reallocation\n * @format GUID\n */\n previousTransactionId?: string;\n /** Reference of the item that is being reallocated */\n itemReference?: ItemReference;\n /**\n * Number of items that were redeemed\n * @min 1\n */\n itemCount?: number;\n /** New date at which the item will be used */\n targetDate?: Date | null;\n /** Date at which the item would have been used before this reallocation */\n previousTargetDate?: Date | null;\n /**\n * Idempotency key of the reallocation request\n * @maxLength 200\n */\n idempotencyKey?: string;\n /** Beneficiary of the entitlement */\n beneficiary?: CommonIdentificationData;\n}\n\nexport interface PoolPaused {\n /** Pool which has been paused */\n pool?: Pool;\n}\n\nexport interface PoolResumed {\n /** Pool which has been resumed */\n pool?: Pool;\n}\n\nexport interface PoolEnded {\n /** Pool which has been ended */\n pool?: Pool;\n}\n\nexport interface BenefitReserved {\n /** Pool which was used to perform this transaction */\n pool?: Pool;\n /** Details of the redemption */\n redemptionDetails?: RedemptionDetails;\n}\n\nexport interface BenefitReservationCanceled {\n /** Pool which was used to perform this transaction */\n pool?: Pool;\n /**\n * Id of the canceled reservation transaction\n * @format GUID\n */\n transactionId?: string;\n}\n\nexport interface BenefitReservationReleased {\n /** Pool which was used to perform this transaction */\n pool?: Pool;\n /**\n * Id of the released reservation transaction\n * @format GUID\n */\n transactionId?: string;\n}\n\nexport interface PoolProvisionJobFinished {\n /**\n * Program id\n * @format GUID\n */\n programId?: string;\n /** Processed item count */\n processedItemCount?: number;\n /** Origin of the pool */\n origin?: PoolOriginWithLiterals;\n}\n\nexport interface PoolStatusUpdateJobFinished\n extends PoolStatusUpdateJobFinishedContextOneOf {\n /** The id of the pool definition that is being updated */\n poolDefinitionAndProgramDefinition?: PoolDefinitionAndProgramDefinition;\n /** Update the status of all pools in the program */\n programInfo?: ProgramInfo;\n /** Update the status of a specific pool */\n poolInfo?: PoolStatusUpdateParamsPoolInfo;\n /** Target status of the pool */\n targetStatus?: PoolStatusWithLiterals;\n /** The total number of items that were processed */\n processedItemCount?: number;\n}\n\n/** @oneof */\nexport interface PoolStatusUpdateJobFinishedContextOneOf {\n /** The id of the pool definition that is being updated */\n poolDefinitionAndProgramDefinition?: PoolDefinitionAndProgramDefinition;\n /** Update the status of all pools in the program */\n programInfo?: ProgramInfo;\n /** Update the status of a specific pool */\n poolInfo?: PoolStatusUpdateParamsPoolInfo;\n}\n\nexport interface PoolDefinitionAndProgramDefinition {\n /**\n * The id of the pool definition that is being updated\n * @format GUID\n * @readonly\n */\n poolDefinitionId?: string;\n /**\n * The key of the program that is being updated\n * @format GUID\n */\n programDefinitionId?: string | null;\n}\n\nexport interface ProgramInfo {\n /**\n * The key of the program that is being updated\n * @format GUID\n */\n programId?: string;\n /** Additional data that was provided when the job was submitted */\n additionalData?: Record<string, any> | null;\n}\n\nexport interface PoolStatusUpdateParamsPoolInfo {\n /**\n * The key of the program that is being updated\n * @format GUID\n */\n poolId?: string;\n /** Additional data that was provided when the job was submitted */\n additionalData?: Record<string, any> | null;\n}\n\nexport interface CreatePoolRequest {\n /** Pool to be created. */\n pool?: Pool;\n}\n\nexport interface CreatePoolResponse {\n /** Created pool. */\n pool?: Pool;\n}\n\nexport interface GetPoolRequest {\n /**\n * ID of the pool to retrieve.\n * @format GUID\n */\n poolId: string;\n}\n\nexport interface GetPoolResponse {\n /** Retrieved pool. */\n pool?: Pool;\n}\n\nexport interface UpdatePoolRequest {\n /** Pool to update. */\n pool: Pool;\n /**\n * Explicit list of fields to update.\n * @internal\n */\n fieldMask?: string[];\n}\n\nexport interface UpdatePoolResponse {\n /** Updated pool. */\n pool?: Pool;\n}\n\nexport interface DeletePoolRequest {\n /**\n * ID of the pool to delete.\n * @format GUID\n */\n poolId?: string;\n}\n\nexport interface DeletePoolResponse {}\n\nexport interface QueryPoolsRequest {\n /** Filter, sort, and paging to apply to the query. */\n query?: CursorQuery;\n /**\n * If true, the response will reflect a consistent snapshot of the data as of the time the request was received.\n * @internal\n */\n consistent?: boolean | null;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n /**\n * Filter object.\n * See [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language)\n * for more information.\n */\n filter?: Record<string, any> | null;\n /**\n * List of sort objects.\n * @maxSize 5\n */\n sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /**\n * Sort order. Use `ASC` for ascending order or `DESC` for descending order.\n *\n * Default: `ASC`\n */\n order?: SortOrderWithLiterals;\n /**\n * When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by\n * a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.\n *\n * If multiple filters are provided, they are combined with AND operator.\n *\n * Example:\n * Given we have document like {\"id\": \"1\", \"nestedField\": [{\"price\": 10, \"region\": \"EU\"}, {\"price\": 20, \"region\": \"US\"}]}\n * and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be\n * { fieldName: \"nestedField.price\", \"select_items_by\": [{\"nestedField.region\": \"US\"}] }\n * @internal\n * @maxSize 10\n */\n selectItemsBy?: Record<string, any>[] | null;\n}\n\nexport enum SortOrder {\n /** Ascending sort order. */\n ASC = 'ASC',\n /** Descending sort order. */\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface CursorPaging {\n /**\n * Maximum number of items to return.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\nexport interface QueryPoolsResponse {\n /** List of retrieved pools. */\n pools?: Pool[];\n /** Metadata for the paginated results. */\n metadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Cursor strings that point to the next page, previous page, or both. */\n cursors?: Cursors;\n /**\n * Whether there are more pages to retrieve following the current page.\n *\n * + `true`: Another page of results can be retrieved.\n * + `false`: This is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface RedeemBenefitRequest {\n /**\n * ID of the pool that contains the benefit to redeem.\n * @format GUID\n */\n poolId: string;\n /** Information about the item to redeem. */\n itemReference: ItemReference;\n /**\n * Key of the benefit to redeem.\n * @maxLength 64\n */\n benefitKey: string;\n /**\n * Amount of items to redeem.\n * @min 1\n */\n count?: number;\n /**\n * Date that the item will be provided to the beneficiary.\n *\n * The pool's associated balance will update immediately. This parameter should be used to manage the logistics of providing the item.\n */\n targetDate?: Date | null;\n /**\n * Unique identifier, generated by the client.\n * Used to recognize repeated attempts to make the same request.\n * @maxLength 200\n */\n idempotencyKey: string;\n /** Additional information. */\n additionalData?: Record<string, any> | null;\n /** Beneficiary of the pool containing the benefit to redeem. */\n beneficiary?: CommonIdentificationData;\n /**\n * Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.\n * @minLength 1\n * @maxLength 20\n */\n namespace: string;\n}\n\nexport interface RedeemBenefitResponse {\n /**\n * ID of the transaction recording the associated change in balance.\n * @format GUID\n */\n transactionId?: string;\n}\n\nexport interface NotEnoughBalance {\n /**\n * Pool ID.\n * @format GUID\n */\n poolId?: string;\n /** Item reference. */\n itemReference?: ItemReference;\n /**\n * Pool's associated balance amount in credits.\n * @decimalValue options { maxScale:4 }\n */\n availableBalance?: string;\n /**\n * Price of the item in credits.\n * @decimalValue options { maxScale:4 }\n */\n requestedBalance?: string;\n /**\n * Pool information.\n * @internal\n */\n poolInfo?: PoolInfo;\n /**\n * Program definition information.\n * @internal\n */\n programDefinitionInfo?: ProgramDefinitionInfo;\n /**\n * Program information.\n * @internal\n */\n programInfo?: PoolProgramInfo;\n /**\n * Benefit information.\n * @internal\n */\n benefitInfo?: BenefitInfo;\n}\n\nexport interface PoolInfo {\n /** Current pool balance */\n balance?: BalanceAmount;\n /**\n * Initial available amount for associated balances.\n * @decimalValue options { gte:0, maxScale:4 }\n */\n creditAmount?: string | null;\n /**\n * Pool name\n * @maxLength 64\n */\n displayName?: string;\n /**\n * Pool description\n * @maxLength 450\n */\n description?: string | null;\n /**\n * Pool definition id\n * @format GUID\n */\n poolDefinitionId?: string;\n /**\n * Credit unit type.\n * @internal\n * @maxLength 16\n */\n creditUnitType?: string | null;\n}\n\nexport interface BalanceAmount {\n /**\n * number of available credits.\n * @decimalValue options { maxScale:4 }\n * @readonly\n */\n available?: string;\n /**\n * number of reserved credits.\n * @decimalValue options { maxScale:4 }\n * @readonly\n */\n reserved?: string;\n}\n\nexport interface BenefitInfo {\n /**\n * Benefit name\n * @maxLength 64\n */\n displayName?: string | null;\n /**\n * Benefit description\n * @maxLength 256\n */\n description?: string | null;\n /**\n * Benefit key.\n * @maxLength 64\n */\n benefitKey?: string;\n /**\n * Price of the benefit in credits.\n * @internal\n * @decimalValue options { gte:0, maxScale:4 }\n */\n price?: string | null;\n}\n\nexport interface PolicyExpressionEvaluatedToFalse {\n /**\n * Pool ID.\n * @format GUID\n */\n poolId?: string;\n /** Item reference. */\n itemReference?: ItemReference;\n /**\n * Failure details.\n * @maxSize 10\n */\n failureDetails?: FailureDetails[];\n /**\n * Pool information.\n * @internal\n */\n poolInfo?: PoolInfo;\n /**\n * Program definition information.\n * @internal\n */\n programDefinitionInfo?: ProgramDefinitionInfo;\n /**\n * Program information.\n * @internal\n */\n programInfo?: PoolProgramInfo;\n /**\n * Benefit information.\n * @internal\n */\n benefitInfo?: BenefitInfo;\n}\n\nexport interface FailureDetails {\n /**\n * Failure code\n * @minLength 1\n * @maxLength 64\n */\n code?: string;\n /**\n * Failure message\n * @maxLength 256\n */\n message?: string | null;\n /**\n * Policy id\n * @format GUID\n */\n policyId?: string | null;\n /**\n * App that owns the policy\n * @format GUID\n */\n appId?: string | null;\n /** Information provided by the policy */\n errorData?: Record<string, any> | null;\n}\n\nexport interface PoolNotActive {\n /**\n * Pool ID.\n * @format GUID\n */\n poolId?: string;\n /** Pool status. */\n poolStatus?: PoolStatusWithLiterals;\n /**\n * Pool information.\n * @internal\n */\n poolInfo?: PoolInfo;\n /**\n * Program definition information.\n * @internal\n */\n programDefinitionInfo?: ProgramDefinitionInfo;\n /**\n * Program information.\n * @internal\n */\n programInfo?: PoolProgramInfo;\n /**\n * Benefit information.\n * @internal\n */\n benefitInfo?: BenefitInfo;\n}\n\nexport interface PoolNotFound {\n /**\n * Pool ID.\n * @format GUID\n */\n poolId?: string;\n}\n\nexport interface BenefitAlreadyRedeemed {\n /**\n * Pool ID\n * @format GUID\n */\n poolId?: string;\n /**\n * Idempotency key of the request that failed\n * @maxLength 200\n */\n idempotencyKey?: string;\n}\n\nexport interface BenefitNotFound {\n /**\n * Pool ID.\n * @format GUID\n */\n poolId?: string;\n /**\n * Specified benefit key.\n * @maxLength 64\n */\n benefitKey?: string | null;\n /**\n * Pool information.\n * @internal\n */\n poolInfo?: PoolInfo;\n /**\n * Program definition information.\n * @internal\n */\n programDefinitionInfo?: ProgramDefinitionInfo;\n /**\n * Program information.\n * @internal\n */\n programInfo?: PoolProgramInfo;\n}\n\nexport interface ReallocateBenefitRequest {\n /**\n * ID of the latest transaction in the redemption's transaction chain.\n * For a redemption that has never been reallocated, this is the redemption transaction ID.\n * @format GUID\n */\n transactionId: string;\n /** New date that the item will be provided to the beneficiary. */\n targetDate: Date | null;\n /**\n * Unique identifier, generated by the client.\n * Used to recognize repeated attempts to make the same request.\n * @maxLength 200\n */\n idempotencyKey: string;\n /** Beneficiary of the pool containing the benefit to reallocate. Must match the beneficiary of the original redemption. */\n beneficiary?: CommonIdentificationData;\n /**\n * Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.\n * @minLength 1\n * @maxLength 20\n */\n namespace: string;\n}\n\nexport interface ReallocateBenefitResponse {\n /**\n * ID of the reallocation transaction. This is the new latest transaction in the chain.\n * @format GUID\n */\n transactionId?: string;\n}\n\nexport interface TransactionNotFound {\n /**\n * ID of the transaction that wasn't found.\n * @format GUID\n */\n transactionId?: string;\n}\n\nexport interface NotLatestTransaction {\n /**\n * ID of the latest transaction in the chain.\n * @format GUID\n */\n latestTransactionId?: string;\n}\n\nexport interface RedemptionAlreadyCanceled {\n /**\n * ID of the transaction that canceled the redemption.\n * @format GUID\n */\n cancellationTransactionId?: string;\n}\n\nexport interface ChainOperationInProgress {\n /**\n * ID of the pending transaction that hasn't settled yet.\n * @format GUID\n */\n pendingTransactionId?: string;\n}\n\nexport interface AlreadyExecuted {\n /**\n * Idempotency key of the original request.\n * @maxLength 200\n */\n idempotencyKey?: string;\n}\n\nexport interface ReserveBenefitRequest {\n /**\n * Id of the pool that is being redeemed from\n * @format GUID\n */\n poolId?: string;\n /** Reference of the item that is being redeemed. */\n itemReference?: ItemReference;\n /**\n * Key of the benefit to be redeemed, associated with a particular benefit.\n *\n * This key must be specified to ensure the correct benefit is redeemed.\n *\n * Default: The first eligible benefit in the benefit pool will be redeemed.\n * @maxLength 64\n */\n benefitKey?: string | null;\n /**\n * Number of items to redeem.\n * @min 1\n */\n count?: number;\n /**\n * Date when the benefit item will be used.\n *\n * While the credit balance is adjusted immediately upon the redemption request, the target date may be set for a later time than the date of the request.\n *\n * Used for the app providing the benefit items to manage the logistics associated with the item.\n */\n targetDate?: Date | null;\n /**\n * Idempotency key\n * @maxLength 200\n */\n idempotencyKey?: string;\n /** Additional info */\n additionalData?: Record<string, any> | null;\n /** Benefit pool owner. */\n beneficiary?: CommonIdentificationData;\n /**\n * Module that is the source of the benefit pool creation.\n *\n * This value must correspond with the previously defined namespace established when creating the associated pool definition.\n *\n * It ensures efficient processing and management of pools and benefits.\n * @minLength 1\n * @maxLength 20\n */\n namespace?: string;\n}\n\nexport interface ReserveBenefitResponse {\n /**\n * Id of the transaction that was created as a result of this request\n * @format GUID\n */\n transactionId?: string;\n}\n\nexport interface CancelBenefitReservationRequest {\n /**\n * Id of the transaction that was created as a result of this request\n * @format GUID\n */\n transactionId?: string;\n}\n\nexport interface CancelBenefitReservationResponse {\n /**\n * Id of the transaction that was created as a result of this request\n * @format GUID\n */\n transactionId?: string;\n}\n\nexport interface ReleaseBenefitReservationRequest {\n /**\n * Id of the transaction that was created as a result of this request\n * @format GUID\n */\n transactionId?: string;\n}\n\nexport interface ReleaseBenefitReservationResponse {\n /**\n * Id of the transaction that was created as a result of this request\n * @format GUID\n */\n transactionId?: string;\n}\n\nexport interface CheckBenefitEligibilityRequest {\n /**\n * ID of the pool that the benefit to check belongs to.\n * @format GUID\n */\n poolId: string;\n /**\n * Key of the benefit to check.\n * @maxLength 64\n */\n benefitKey?: string | null;\n /** Information about the item to check. */\n itemReference: ItemReference;\n /**\n * Amount of items to check.\n *\n * Ensures the balance is high enough to redeem this many items.\n * @min 1\n */\n count?: number;\n /**\n * Date that the item will be provided to the beneficiary.\n *\n * This parameter should be used to manage the potential logistics of providing the item.\n */\n targetDate?: Date | null;\n /** Additional information. */\n additionalData?: Record<string, any> | null;\n /** Beneficiary of the pool containing the benefit to check. */\n beneficiary?: CommonIdentificationData;\n /**\n * Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.\n * @minLength 1\n * @maxLength 20\n */\n namespace: string;\n /**\n * Intent of the eligibility check.\n *\n * If not provided, `REDEMPTION` is used by default.\n * @internal\n */\n intent?: IntentWithLiterals;\n}\n\nexport enum Intent {\n /** Check whether the benefit can be redeemed. */\n REDEMPTION = 'REDEMPTION',\n /**\n * Check whether an already redeemed benefit can be reallocated to the target date.\n * The redeemed credits are kept, so the balance check is skipped.\n */\n REALLOCATION = 'REALLOCATION',\n}\n\n/** @enumType */\nexport type IntentWithLiterals = Intent | 'REDEMPTION' | 'REALLOCATION';\n\nexport interface CheckBenefitEligibilityResponse {\n /** Result of the eligibility check. */\n result?: EligibilityCheckResult;\n}\n\nexport interface EligibilityCheckResult {\n /**\n * Eligibility status.\n * @maxSize 10\n */\n benefitResults?: BenefitResult[];\n}\n\nexport enum BenefitResultType {\n /** Item is eligible to be redeemed. */\n ELIGIBLE_BENEFIT = 'ELIGIBLE_BENEFIT',\n /** Balance is lower than the cost of redeeming the items. */\n NOT_ENOUGH_BALANCE = 'NOT_ENOUGH_BALANCE',\n /**\n * Policy is false.\n * @internal\n */\n POLICY_EXPRESSION_EVALUATED_TO_FALSE = 'POLICY_EXPRESSION_EVALUATED_TO_FALSE',\n /** Pool isn't active. */\n POOL_NOT_ACTIVE = 'POOL_NOT_ACTIVE',\n /** Invalid benefit details provided. */\n BENEFIT_NOT_FOUND = 'BENEFIT_NOT_FOUND',\n /** Invalid pool details provided. */\n POOL_NOT_FOUND = 'POOL_NOT_FOUND',\n}\n\n/** @enumType */\nexport type BenefitResultTypeWithLiterals =\n | BenefitResultType\n | 'ELIGIBLE_BENEFIT'\n | 'NOT_ENOUGH_BALANCE'\n | 'POOL_NOT_ACTIVE'\n | 'BENEFIT_NOT_FOUND'\n | 'POOL_NOT_FOUND';\n\nexport interface EligibleBenefit {\n /**\n * Pool ID.\n * @format GUID\n * @readonly\n */\n poolId?: string;\n /**\n * Benefit key.\n * @maxLength 64\n */\n benefitKey?: string;\n /** Item reference. */\n itemReference?: ItemReference;\n /**\n * Price of the benefit in credits.\n * @decimalValue options { gte:0, maxScale:4 }\n */\n price?: string | null;\n /**\n * Pool information.\n * @internal\n */\n poolInfo?: PoolInfo;\n /**\n * Benefit information.\n * @internal\n */\n benefitInfo?: BenefitInfo;\n /**\n * Program definition information.\n * @internal\n */\n programDefinitionInfo?: ProgramDefinitionInfo;\n /**\n * Program information.\n * @internal\n */\n programInfo?: PoolProgramInfo;\n}\n\nexport interface BenefitResult extends BenefitResultResultOneOf {\n /** Returned when item is eligible to be redeemed. */\n eligibleBenefitOptions?: EligibleBenefit;\n /** Returned when the pool's associated balance is lower than the cost of redeeming the items. */\n notEnoughBalanceOptions?: NotEnoughBalance;\n /** Returned when the policy is false. */\n policyExpressionEvaluatedToFalseOptions?: PolicyExpressionEvaluatedToFalse;\n /** Returned when the pool isn't active. */\n poolNotActiveOptions?: PoolNotActive;\n /** Returned when invalid benefit details are provided. */\n benefitNotFoundOptions?: BenefitNotFound;\n /** Returned when invalid pool details are provided. */\n poolNotFoundOptions?: PoolNotFound;\n /** Eligibility status. */\n type?: BenefitResultTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface BenefitResultResultOneOf {\n /** Returned when item is eligible to be redeemed. */\n eligibleBenefitOptions?: EligibleBenefit;\n /** Returned when the pool's associated balance is lower than the cost of redeeming the items. */\n notEnoughBalanceOptions?: NotEnoughBalance;\n /** Returned when the policy is false. */\n policyExpressionEvaluatedToFalseOptions?: PolicyExpressionEvaluatedToFalse;\n /** Returned when the pool isn't active. */\n poolNotActiveOptions?: PoolNotActive;\n /** Returned when invalid benefit details are provided. */\n benefitNotFoundOptions?: BenefitNotFound;\n /** Returned when invalid pool details are provided. */\n poolNotFoundOptions?: PoolNotFound;\n}\n\nexport interface BulkCheckBenefitEligibilityRequest {\n /**\n * List of benefits to check.\n * @minSize 1\n * @maxSize 100\n */\n benefitSelectors?: BenefitSelector[];\n /**\n * Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.\n * @minLength 1\n * @maxLength 20\n */\n namespace: string;\n /** Pool beneficiary. */\n beneficiary?: CommonIdentificationData;\n}\n\nexport interface BenefitSelector {\n /**\n * ID of the pool that the benefit to check belongs to.\n * @format GUID\n */\n poolId?: string;\n /**\n * Key of the benefit to check.\n * @maxLength 64\n */\n benefitKey?: string | null;\n /** Information about the item to check. */\n itemReference?: ItemReference;\n /**\n * Amount of items to check.\n *\n * Ensures the balance is high enough to redeem this many items.\n * @min 1\n */\n count?: number;\n /**\n * Date that the item will be provided to the beneficiary.\n *\n * This parameter should be used to manage the potential logistics of providing the item.\n */\n targetDate?: Date | null;\n /** Additional information. */\n additionalData?: Record<string, any> | null;\n}\n\nexport interface BulkCheckBenefitEligibilityResponse {\n /**\n * List of results checking each benefit.\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkEligibilityCheckResult[];\n}\n\nexport interface BulkEligibilityCheckResult {\n /** Benefit information specified in API call. */\n benefitSelector?: BenefitSelector;\n /** Result of the eligibility check. */\n result?: EligibilityCheckResult;\n}\n\nexport interface GetEligibleBenefitsRequest {\n /** Item reference. */\n itemReference: ItemReference;\n /**\n * Amount of items to check. This ensures the balance is high enough to redeem this many items.\n * @min 1\n */\n count?: number;\n /**\n * Date that the item will be provided to the beneficiary.\n *\n * This parameter should be used to manage the potential logistics of providing the item.\n */\n targetDate?: Date | null;\n /** Additional information. */\n additionalData?: Record<string, any> | null;\n /** Filter request by beneficiary. */\n beneficiary?: CommonIdentificationData;\n /**\n * Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.\n * @minLength 1\n * @maxLength 20\n */\n namespace: string;\n}\n\nexport interface GetEligibleBenefitsResponse {\n /** Retrieved benefits that can be redeemed. */\n eligibleBenefits?: EligibleBenefit[];\n}\n\nexport interface BulkUpdatePoolsRequest {\n /**\n * Pools to update.\n * @minSize 1\n * @maxSize 100\n */\n pools?: MaskedPool[];\n /**\n * Whether to return the full pool definition entities.\n *\n * Default: `false`\n */\n returnEntity?: boolean;\n}\n\nexport interface MaskedPool {\n /** Pool to update. */\n pool?: Pool;\n /** Explicit list of fields to update. */\n fieldMask?: string[];\n}\n\nexport interface BulkUpdatePoolsResponse {\n /**\n * List of updated pools and associated metadata.\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkPoolResult[];\n /** Bulk action metadata. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkPoolResult {\n /** Item metadata. */\n itemMetadata?: ItemMetadata;\n /** Pool data. */\n item?: Pool;\n}\n\nexport interface ItemMetadata {\n /**\n * Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).\n * @format GUID\n */\n id?: string | null;\n /** Index of the item within the request array. Allows for correlation between request and response items. */\n originalIndex?: number;\n /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */\n success?: boolean;\n /** Details about the error in case of failure. */\n error?: ApplicationError;\n}\n\nexport interface ApplicationError {\n /** Error code. */\n code?: string;\n /** Description of the error. */\n description?: string;\n /** Data related to the error. */\n data?: Record<string, any> | null;\n}\n\nexport interface BulkActionMetadata {\n /** Number of items that were successfully processed. */\n totalSuccesses?: number;\n /** Number of items that couldn't be processed. */\n totalFailures?: number;\n /** Number of failures without details because detailed failure threshold was exceeded. */\n undetailedFailures?: number;\n}\n\nexport interface ProvisionPoolsForProgramRequest {\n /** Reference of the template that is used to provision the pools */\n poolDefinitionLookupId?: PoolDefinitionLookupId;\n /**\n * Program that the provisioned pools are part of\n * @format GUID\n */\n programId?: string;\n}\n\nexport interface PoolDefinitionLookupId extends PoolDefinitionLookupIdIdOneOf {\n /**\n * Pool definition ID.\n * @format GUID\n */\n poolDefinitionId?: string;\n /**\n * Program definition ID.\n * @format GUID\n */\n programDefinitionId?: string;\n}\n\n/** @oneof */\nexport interface PoolDefinitionLookupIdIdOneOf {\n /**\n * Pool definition ID.\n * @format GUID\n */\n poolDefinitionId?: string;\n /**\n * Program definition ID.\n * @format GUID\n */\n programDefinitionId?: string;\n}\n\nexport interface ProvisionPoolsForProgramResponse\n extends ProvisionPoolsForProgramResponseResultOneOf {\n /** Sync result */\n syncOptions?: SyncResult;\n /** Async result */\n asyncOptions?: AsyncResult;\n /**\n * Job ID of the program provision associated with this pool. Retrieve job details using the [Async Job API](https://dev.wix.com/docs/rest/business-management/async-job/introduction).\n * @format GUID\n */\n jobId?: string;\n /** Type of the result */\n type?: ProvisionPoolsForProgramResponseTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface ProvisionPoolsForProgramResponseResultOneOf {\n /** Sync result */\n syncOptions?: SyncResult;\n /** Async result */\n asyncOptions?: AsyncResult;\n}\n\nexport enum ProvisionPoolsForProgramResponseType {\n /** Sync result */\n SYNC = 'SYNC',\n /** Async result */\n ASYNC = 'ASYNC',\n}\n\n/** @enumType */\nexport type ProvisionPoolsForProgramResponseTypeWithLiterals =\n | ProvisionPoolsForProgramResponseType\n | 'SYNC'\n | 'ASYNC';\n\nexport interface SyncResult {\n /** Indicates if the operation was successful */\n success?: boolean;\n}\n\nexport interface AsyncResult {\n /**\n * Job ID of the program provision associated with this pool. Retrieve job details using the [Async Job API](https://dev.wix.com/docs/rest/business-management/async-job/introduction).\n * @format GUID\n */\n jobId?: string;\n}\n\nexport interface InvalidPoolDefinitionReference {\n /** Reference of the template that didn't find any pool definitions */\n poolDefinitionLookupId?: PoolDefinitionLookupId;\n}\n\nexport interface RenewPoolsForProgramRequest {\n /**\n * Package of pools to grant. Package id should be the same that was used to provision programs.\n * @format GUID\n */\n programId?: string;\n}\n\nexport interface RenewPoolsForProgramResponse {\n /**\n * Job id of the renewal job\n * @format GUID\n */\n jobId?: string;\n}\n\nexport interface UpdatePoolStatusRequest\n extends UpdatePoolStatusRequestPoolSelectorOneOf {\n /** Pool selector by pool definition id and program definition id */\n byPoolDefinitionIdAndProgramDefinitionIdOptions?: ByPoolDefinitionIdAndProgramDefinitionIdOptions;\n /** Pool selector by program id */\n byProgramIdOptions?: ByProgramIdOptions;\n /** New pool status */\n status?: PoolStatusWithLiterals;\n /** Pool selector type */\n poolSelectorType?: PoolSelectorTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface UpdatePoolStatusRequestPoolSelectorOneOf {\n /** Pool selector by pool definition id and program definition id */\n byPoolDefinitionIdAndProgramDefinitionIdOptions?: ByPoolDefinitionIdAndProgramDefinitionIdOptions;\n /** Pool selector by program id */\n byProgramIdOptions?: ByProgramIdOptions;\n}\n\nexport enum PoolSelectorType {\n BY_POOL_DEFINITION_ID_AND_PROGRAM_DEFINITION_ID = 'BY_POOL_DEFINITION_ID_AND_PROGRAM_DEFINITION_ID',\n BY_PROGRAM_ID = 'BY_PROGRAM_ID',\n}\n\n/** @enumType */\nexport type PoolSelectorTypeWithLiterals =\n | PoolSelectorType\n | 'BY_POOL_DEFINITION_ID_AND_PROGRAM_DEFINITION_ID'\n | 'BY_PROGRAM_ID';\n\nexport interface ByPoolDefinitionIdAndProgramDefinitionIdOptions {\n /**\n * Pool definition id\n * @format GUID\n */\n poolDefinitionId?: string;\n /**\n * Program definition id\n * @format GUID\n */\n programDefinitionId?: string | null;\n}\n\nexport interface ByProgramIdOptions {\n /**\n * Program id\n * @format GUID\n */\n programId?: string;\n /** Additional data that gets added to the event once the async job completes */\n additionalData?: Record<string, any> | null;\n}\n\nexport interface UpdatePoolStatusResponse {\n /**\n * Job ID of the program provision associated with this pool. Retrieve job details using the [Async Job API](https://dev.wix.com/docs/rest/business-management/async-job/introduction).\n * @format GUID\n */\n jobId?: string;\n}\n\nexport interface CountNumberOfPoolsInProvisioningStatusRequest {\n /**\n * Program id\n * @format GUID\n */\n programId?: string;\n}\n\nexport interface CountNumberOfPoolsInProvisioningStatusResponse {\n /** Number of pools in provisioning status */\n count?: number;\n}\n\nexport interface CheckBenefitEligibilityByFilterRequest {\n /**\n * Defines filtering and sorting criteria used to select pools when checking eligibility.\n *\n * The filter selects pools using the same fields supported by Query Pools. For field support, see [Filtering and Sorting](https://dev.wix.com/docs/rest/business-solutions/benefit-programs/pools/filtering-and-sorting).\n *\n * When omitted, eligibility is checked across all pools in the namespace that match the provided `beneficiary`. Combined with `beneficiary` and `namespace`, the filter further narrows which pools are checked.\n *\n * Deprecated: use `pool_selector` instead. Can't be combined with `pool_selector`.\n * @deprecated Defines filtering and sorting criteria used to select pools when checking eligibility.\n *\n * The filter selects pools using the same fields supported by Query Pools. For field support, see [Filtering and Sorting](https://dev.wix.com/docs/rest/business-solutions/benefit-programs/pools/filtering-and-sorting).\n *\n * When omitted, eligibility is checked across all pools in the namespace that match the provided `beneficiary`. Combined with `beneficiary` and `namespace`, the filter further narrows which pools are checked.\n *\n * Deprecated: use `pool_selector` instead. Can't be combined with `pool_selector`.\n * @targetRemovalDate 2026-08-01\n */\n poolFilter?: PoolFilter;\n /**\n * Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.\n * @minLength 1\n * @maxLength 20\n */\n namespace: string;\n /** Information about the item to check. */\n itemReference: ItemReference;\n /**\n * Number of items to check.\n *\n * Ensures the balance is high enough to redeem this many items.\n * @min 1\n */\n count: number;\n /**\n * Date that the item will be provided to the beneficiary.\n *\n * This parameter should be used to manage the potential logistics of providing the item.\n */\n targetDate?: Date | null;\n /** Pool beneficiary. When provided, only the beneficiary's pools that also match `pool_filter` are checked. */\n beneficiary?: CommonIdentificationData;\n /** Additional information. */\n additionalData?: Record<string, any> | null;\n /**\n * Predefined attributes used to select the pools to check eligibility in.\n *\n * When omitted, eligibility is checked across all pools in the namespace that match the provided `beneficiary`. Combined with `beneficiary` and `namespace`, the selector further narrows which pools are checked.\n *\n * Can't be combined with `pool_filter`.\n */\n poolSelector?: PoolSelector;\n}\n\nexport interface PoolFilter {\n /**\n * Filter object. See [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language) for more information.\n *\n * For supported filterable and sortable fields, see [Filtering and Sorting](https://dev.wix.com/docs/rest/business-solutions/benefit-programs/pools/filtering-and-sorting).\n */\n filter?: Record<string, any> | null;\n /**\n * Sorting to apply to the matched pools. Determines the order of the returned results, and which results are kept when more than 100 are produced.\n * @maxSize 5\n */\n sort?: Sorting[];\n}\n\n/**\n * Predefined pool-selection attributes used to select the pools to check eligibility in.\n *\n * All provided attributes must match for a pool to be selected, while the values within each attribute are alternatives.\n * An empty selector selects all pools in the namespace that match the provided `beneficiary`.\n */\nexport interface PoolSelector {\n /**\n * Only pools in these statuses are checked. When empty, pools in all statuses are checked.\n * @maxSize 10\n */\n poolStatuses?: PoolStatusWithLiterals[];\n}\n\nexport interface CheckBenefitEligibilityByFilterResponse {\n /**\n * Results of the eligibility check for the benefits in the pools that matched the filter. A pool that contains multiple benefits for the requested item produces one result per benefit.\n *\n * Empty when no pools match the filter. Capped at 100 results. When more than 100 results are produced, only the first 100, in the order specified by `poolFilter.sort`, are returned.\n * @maxSize 100\n */\n results?: EligibilityCheckResult[];\n}\n\nexport interface HealPoolRequest {\n /**\n * ID of the pool whose enrichments should be re-materialized.\n * @format GUID\n */\n poolId?: string;\n}\n\nexport interface HealPoolResponse {}\n\nexport interface HealPoolTenantRequest {}\n\nexport interface HealPoolTenantResponse {}\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 entityAsJson?: string;\n /**\n * Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity\n * @internal\n */\n triggeredByUndelete?: boolean | null;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\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 currentEntityAsJson?: string;\n /**\n * This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard\n * wont populate it / have any reference to it in the API.\n * The main reason for it is that fetching the old entity from the DB will have a performance hit on an update operation so unless truly needed,\n * the developer should send only the new (current) entity.\n * An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big\n * Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.\n * @internal\n * @deprecated\n */\n previousEntityAsJson?: string | null;\n /**\n * Map of fully qualified field paths to their previous values for fields that changed.\n * For more details please see [AIP](https://dev.wix.com/docs/rnd-general/articles/p13n-guidelines-aips/guidance-aips/design-patterns/7016-events#modified-fields-format)\n * @internal\n */\n modifiedFields?: Record<string, any>;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\n}\n\nexport interface EntityDeletedEvent {\n /**\n * Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled\n * @internal\n */\n movedToTrash?: boolean | null;\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: 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 /** Details related to the account */\n accountInfo?: AccountInfo;\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 AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n\n/** @docsIgnore */\nexport type RedeemBenefitApplicationErrors =\n | {\n code?: 'NOT_ENOUGH_BALANCE';\n description?: string;\n data?: NotEnoughBalance;\n }\n | {\n code?: 'POLICY_EXPRESSION_EVALUATED_TO_FALSE';\n description?: string;\n data?: PolicyExpressionEvaluatedToFalse;\n }\n | {\n code?: 'POOL_NOT_ACTIVE';\n description?: string;\n data?: PoolNotActive;\n }\n | {\n code?: 'POOL_NOT_FOUND';\n description?: string;\n data?: PoolNotFound;\n }\n | {\n code?: 'BENEFIT_ALREADY_REDEEMED';\n description?: string;\n data?: BenefitAlreadyRedeemed;\n }\n | {\n code?: 'BENEFIT_NOT_FOUND';\n description?: string;\n data?: BenefitNotFound;\n };\n/** @docsIgnore */\nexport type ReallocateBenefitApplicationErrors =\n | {\n code?: 'TRANSACTION_NOT_FOUND';\n description?: string;\n data?: TransactionNotFound;\n }\n | {\n code?: 'POOL_NOT_FOUND';\n description?: string;\n data?: PoolNotFound;\n }\n | {\n code?: 'NOT_LATEST_TRANSACTION';\n description?: string;\n data?: NotLatestTransaction;\n }\n | {\n code?: 'REDEMPTION_ALREADY_CANCELED';\n description?: string;\n data?: RedemptionAlreadyCanceled;\n }\n | {\n code?: 'TRANSACTION_NOT_REALLOCATABLE';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'POOL_NOT_ACTIVE';\n description?: string;\n data?: PoolNotActive;\n }\n | {\n code?: 'POLICY_EXPRESSION_EVALUATED_TO_FALSE';\n description?: string;\n data?: PolicyExpressionEvaluatedToFalse;\n }\n | {\n code?: 'CHAIN_OPERATION_IN_PROGRESS';\n description?: string;\n data?: ChainOperationInProgress;\n }\n | {\n code?: 'ALREADY_EXECUTED';\n description?: string;\n data?: AlreadyExecuted;\n };\n/** @docsIgnore */\nexport type GetEligibleBenefitsApplicationErrors = {\n code?: 'INVALID_ITEM_REFERENCE';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type CheckBenefitEligibilityByFilterApplicationErrors =\n | {\n code?: 'INVALID_ITEM_REFERENCE';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'POOL_FILTER_AND_POOL_SELECTOR_PROVIDED';\n description?: string;\n data?: Record<string, any>;\n };\n","import * as ambassadorWixBenefitProgramsV1Pool from './benefit-programs-v1-pool-pools.http.js';\nimport * as ambassadorWixBenefitProgramsV1PoolTypes from './benefit-programs-v1-pool-pools.types.js';\nimport * as ambassadorWixBenefitProgramsV1PoolUniversalTypes from './benefit-programs-v1-pool-pools.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function getPool(): __PublicMethodMetaInfo<\n 'GET',\n { poolId: string },\n ambassadorWixBenefitProgramsV1PoolUniversalTypes.GetPoolRequest,\n ambassadorWixBenefitProgramsV1PoolTypes.GetPoolRequest,\n ambassadorWixBenefitProgramsV1PoolUniversalTypes.GetPoolResponse,\n ambassadorWixBenefitProgramsV1PoolTypes.GetPoolResponse\n> {\n const payload = { poolId: ':poolId' } as any;\n\n const getRequestOptions = ambassadorWixBenefitProgramsV1Pool.getPool(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/pools/{poolId}',\n pathParams: { poolId: 'poolId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updatePool(): __PublicMethodMetaInfo<\n 'PATCH',\n { poolId: string },\n ambassadorWixBenefitProgramsV1PoolUniversalTypes.UpdatePoolRequest,\n ambassadorWixBenefitProgramsV1PoolTypes.UpdatePoolRequest,\n ambassadorWixBenefitProgramsV1PoolUniversalTypes.UpdatePoolResponse,\n ambassadorWixBenefitProgramsV1PoolTypes.UpdatePoolResponse\n> {\n const payload = { pool: { id: ':poolId' } } as any;\n\n const getRequestOptions =\n ambassadorWixBenefitProgramsV1Pool.updatePool(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v1/pools/{pool.id}',\n pathParams: { poolId: 'poolId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function queryPools(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBenefitProgramsV1PoolUniversalTypes.QueryPoolsRequest,\n ambassadorWixBenefitProgramsV1PoolTypes.QueryPoolsRequest,\n ambassadorWixBenefitProgramsV1PoolUniversalTypes.QueryPoolsResponse,\n ambassadorWixBenefitProgramsV1PoolTypes.QueryPoolsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBenefitProgramsV1Pool.queryPools(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/pools/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function redeemBenefit(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBenefitProgramsV1PoolUniversalTypes.RedeemBenefitRequest,\n ambassadorWixBenefitProgramsV1PoolTypes.RedeemBenefitRequest,\n ambassadorWixBenefitProgramsV1PoolUniversalTypes.RedeemBenefitResponse,\n ambassadorWixBenefitProgramsV1PoolTypes.RedeemBenefitResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBenefitProgramsV1Pool.redeemBenefit(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/benefits/redeem',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function reallocateBenefit(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBenefitProgramsV1PoolUniversalTypes.ReallocateBenefitRequest,\n ambassadorWixBenefitProgramsV1PoolTypes.ReallocateBenefitRequest,\n ambassadorWixBenefitProgramsV1PoolUniversalTypes.ReallocateBenefitResponse,\n ambassadorWixBenefitProgramsV1PoolTypes.ReallocateBenefitResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBenefitProgramsV1Pool.reallocateBenefit(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/benefits/reallocate',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function checkBenefitEligibility(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBenefitProgramsV1PoolUniversalTypes.CheckBenefitEligibilityRequest,\n ambassadorWixBenefitProgramsV1PoolTypes.CheckBenefitEligibilityRequest,\n ambassadorWixBenefitProgramsV1PoolUniversalTypes.CheckBenefitEligibilityResponse,\n ambassadorWixBenefitProgramsV1PoolTypes.CheckBenefitEligibilityResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBenefitProgramsV1Pool.checkBenefitEligibility(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/pools/check-eligibility',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkCheckBenefitEligibility(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBenefitProgramsV1PoolUniversalTypes.BulkCheckBenefitEligibilityRequest,\n ambassadorWixBenefitProgramsV1PoolTypes.BulkCheckBenefitEligibilityRequest,\n ambassadorWixBenefitProgramsV1PoolUniversalTypes.BulkCheckBenefitEligibilityResponse,\n ambassadorWixBenefitProgramsV1PoolTypes.BulkCheckBenefitEligibilityResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBenefitProgramsV1Pool.bulkCheckBenefitEligibility(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/bulk/benefits/check-eligibility',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getEligibleBenefits(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBenefitProgramsV1PoolUniversalTypes.GetEligibleBenefitsRequest,\n ambassadorWixBenefitProgramsV1PoolTypes.GetEligibleBenefitsRequest,\n ambassadorWixBenefitProgramsV1PoolUniversalTypes.GetEligibleBenefitsResponse,\n ambassadorWixBenefitProgramsV1PoolTypes.GetEligibleBenefitsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBenefitProgramsV1Pool.getEligibleBenefits(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/pools/eligible-pools',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkUpdatePools(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBenefitProgramsV1PoolUniversalTypes.BulkUpdatePoolsRequest,\n ambassadorWixBenefitProgramsV1PoolTypes.BulkUpdatePoolsRequest,\n ambassadorWixBenefitProgramsV1PoolUniversalTypes.BulkUpdatePoolsResponse,\n ambassadorWixBenefitProgramsV1PoolTypes.BulkUpdatePoolsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBenefitProgramsV1Pool.bulkUpdatePools(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/bulk/pools',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function checkBenefitEligibilityByFilter(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBenefitProgramsV1PoolUniversalTypes.CheckBenefitEligibilityByFilterRequest,\n ambassadorWixBenefitProgramsV1PoolTypes.CheckBenefitEligibilityByFilterRequest,\n ambassadorWixBenefitProgramsV1PoolUniversalTypes.CheckBenefitEligibilityByFilterResponse,\n ambassadorWixBenefitProgramsV1PoolTypes.CheckBenefitEligibilityByFilterResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBenefitProgramsV1Pool.checkBenefitEligibilityByFilter(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/pools/check-benefit-eligibility-by-filter',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n Pool as PoolOriginal,\n PoolStatus as PoolStatusOriginal,\n PoolStatusWithLiterals as PoolStatusWithLiteralsOriginal,\n CommonIdentificationData as CommonIdentificationDataOriginal,\n CommonIdentificationDataIdOneOf as CommonIdentificationDataIdOneOfOriginal,\n IdentityType as IdentityTypeOriginal,\n IdentityTypeWithLiterals as IdentityTypeWithLiteralsOriginal,\n Details as DetailsOriginal,\n Benefit as BenefitOriginal,\n PolicyExpression as PolicyExpressionOriginal,\n PolicyExpressionExpressionOneOf as PolicyExpressionExpressionOneOfOriginal,\n PolicyExpressionType as PolicyExpressionTypeOriginal,\n PolicyExpressionTypeWithLiterals as PolicyExpressionTypeWithLiteralsOriginal,\n PolicyExpressionNot as PolicyExpressionNotOriginal,\n PolicyExpressionAnd as PolicyExpressionAndOriginal,\n PolicyExpressionOr as PolicyExpressionOrOriginal,\n Policy as PolicyOriginal,\n PolicyPolicyOneOf as PolicyPolicyOneOfOriginal,\n Type as TypeOriginal,\n TypeWithLiterals as TypeWithLiteralsOriginal,\n FixedIntervalPolicy as FixedIntervalPolicyOriginal,\n WeekDay as WeekDayOriginal,\n WeekDayWithLiterals as WeekDayWithLiteralsOriginal,\n RateLimitedPolicy as RateLimitedPolicyOriginal,\n TimePeriod as TimePeriodOriginal,\n TimePeriodWithLiterals as TimePeriodWithLiteralsOriginal,\n CustomPolicy as CustomPolicyOriginal,\n CreditConfiguration as CreditConfigurationOriginal,\n RolloverConfiguration as RolloverConfigurationOriginal,\n ExtendedFields as ExtendedFieldsOriginal,\n ProgramDefinitionInfo as ProgramDefinitionInfoOriginal,\n PoolProgramInfo as PoolProgramInfoOriginal,\n PoolOrigin as PoolOriginOriginal,\n PoolOriginWithLiterals as PoolOriginWithLiteralsOriginal,\n PoolRenewalAction as PoolRenewalActionOriginal,\n PoolRenewalActionActionOneOf as PoolRenewalActionActionOneOfOriginal,\n PoolRenewalActionType as PoolRenewalActionTypeOriginal,\n PoolRenewalActionTypeWithLiterals as PoolRenewalActionTypeWithLiteralsOriginal,\n Update as UpdateOriginal,\n PoolProvisioned as PoolProvisionedOriginal,\n PoolRenewed as PoolRenewedOriginal,\n BenefitRedeemed as BenefitRedeemedOriginal,\n RedemptionDetails as RedemptionDetailsOriginal,\n ItemReference as ItemReferenceOriginal,\n BenefitReallocated as BenefitReallocatedOriginal,\n ReallocationDetails as ReallocationDetailsOriginal,\n PoolPaused as PoolPausedOriginal,\n PoolResumed as PoolResumedOriginal,\n PoolEnded as PoolEndedOriginal,\n BenefitReserved as BenefitReservedOriginal,\n BenefitReservationCanceled as BenefitReservationCanceledOriginal,\n BenefitReservationReleased as BenefitReservationReleasedOriginal,\n PoolProvisionJobFinished as PoolProvisionJobFinishedOriginal,\n PoolStatusUpdateJobFinished as PoolStatusUpdateJobFinishedOriginal,\n PoolStatusUpdateJobFinishedContextOneOf as PoolStatusUpdateJobFinishedContextOneOfOriginal,\n PoolDefinitionAndProgramDefinition as PoolDefinitionAndProgramDefinitionOriginal,\n ProgramInfo as ProgramInfoOriginal,\n PoolStatusUpdateParamsPoolInfo as PoolStatusUpdateParamsPoolInfoOriginal,\n CreatePoolRequest as CreatePoolRequestOriginal,\n CreatePoolResponse as CreatePoolResponseOriginal,\n GetPoolRequest as GetPoolRequestOriginal,\n GetPoolResponse as GetPoolResponseOriginal,\n UpdatePoolRequest as UpdatePoolRequestOriginal,\n UpdatePoolResponse as UpdatePoolResponseOriginal,\n DeletePoolRequest as DeletePoolRequestOriginal,\n DeletePoolResponse as DeletePoolResponseOriginal,\n QueryPoolsRequest as QueryPoolsRequestOriginal,\n CursorQuery as CursorQueryOriginal,\n CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal,\n Sorting as SortingOriginal,\n SortOrder as SortOrderOriginal,\n SortOrderWithLiterals as SortOrderWithLiteralsOriginal,\n CursorPaging as CursorPagingOriginal,\n QueryPoolsResponse as QueryPoolsResponseOriginal,\n CursorPagingMetadata as CursorPagingMetadataOriginal,\n Cursors as CursorsOriginal,\n RedeemBenefitRequest as RedeemBenefitRequestOriginal,\n RedeemBenefitResponse as RedeemBenefitResponseOriginal,\n NotEnoughBalance as NotEnoughBalanceOriginal,\n PoolInfo as PoolInfoOriginal,\n BalanceAmount as BalanceAmountOriginal,\n BenefitInfo as BenefitInfoOriginal,\n PolicyExpressionEvaluatedToFalse as PolicyExpressionEvaluatedToFalseOriginal,\n FailureDetails as FailureDetailsOriginal,\n PoolNotActive as PoolNotActiveOriginal,\n PoolNotFound as PoolNotFoundOriginal,\n BenefitAlreadyRedeemed as BenefitAlreadyRedeemedOriginal,\n BenefitNotFound as BenefitNotFoundOriginal,\n ReallocateBenefitRequest as ReallocateBenefitRequestOriginal,\n ReallocateBenefitResponse as ReallocateBenefitResponseOriginal,\n TransactionNotFound as TransactionNotFoundOriginal,\n NotLatestTransaction as NotLatestTransactionOriginal,\n RedemptionAlreadyCanceled as RedemptionAlreadyCanceledOriginal,\n ChainOperationInProgress as ChainOperationInProgressOriginal,\n AlreadyExecuted as AlreadyExecutedOriginal,\n ReserveBenefitRequest as ReserveBenefitRequestOriginal,\n ReserveBenefitResponse as ReserveBenefitResponseOriginal,\n CancelBenefitReservationRequest as CancelBenefitReservationRequestOriginal,\n CancelBenefitReservationResponse as CancelBenefitReservationResponseOriginal,\n ReleaseBenefitReservationRequest as ReleaseBenefitReservationRequestOriginal,\n ReleaseBenefitReservationResponse as ReleaseBenefitReservationResponseOriginal,\n CheckBenefitEligibilityRequest as CheckBenefitEligibilityRequestOriginal,\n Intent as IntentOriginal,\n IntentWithLiterals as IntentWithLiteralsOriginal,\n CheckBenefitEligibilityResponse as CheckBenefitEligibilityResponseOriginal,\n EligibilityCheckResult as EligibilityCheckResultOriginal,\n BenefitResultType as BenefitResultTypeOriginal,\n BenefitResultTypeWithLiterals as BenefitResultTypeWithLiteralsOriginal,\n EligibleBenefit as EligibleBenefitOriginal,\n BenefitResult as BenefitResultOriginal,\n BenefitResultResultOneOf as BenefitResultResultOneOfOriginal,\n BulkCheckBenefitEligibilityRequest as BulkCheckBenefitEligibilityRequestOriginal,\n BenefitSelector as BenefitSelectorOriginal,\n BulkCheckBenefitEligibilityResponse as BulkCheckBenefitEligibilityResponseOriginal,\n BulkEligibilityCheckResult as BulkEligibilityCheckResultOriginal,\n GetEligibleBenefitsRequest as GetEligibleBenefitsRequestOriginal,\n GetEligibleBenefitsResponse as GetEligibleBenefitsResponseOriginal,\n BulkUpdatePoolsRequest as BulkUpdatePoolsRequestOriginal,\n MaskedPool as MaskedPoolOriginal,\n BulkUpdatePoolsResponse as BulkUpdatePoolsResponseOriginal,\n BulkPoolResult as BulkPoolResultOriginal,\n ItemMetadata as ItemMetadataOriginal,\n ApplicationError as ApplicationErrorOriginal,\n BulkActionMetadata as BulkActionMetadataOriginal,\n ProvisionPoolsForProgramRequest as ProvisionPoolsForProgramRequestOriginal,\n PoolDefinitionLookupId as PoolDefinitionLookupIdOriginal,\n PoolDefinitionLookupIdIdOneOf as PoolDefinitionLookupIdIdOneOfOriginal,\n ProvisionPoolsForProgramResponse as ProvisionPoolsForProgramResponseOriginal,\n ProvisionPoolsForProgramResponseResultOneOf as ProvisionPoolsForProgramResponseResultOneOfOriginal,\n ProvisionPoolsForProgramResponseType as ProvisionPoolsForProgramResponseTypeOriginal,\n ProvisionPoolsForProgramResponseTypeWithLiterals as ProvisionPoolsForProgramResponseTypeWithLiteralsOriginal,\n SyncResult as SyncResultOriginal,\n AsyncResult as AsyncResultOriginal,\n InvalidPoolDefinitionReference as InvalidPoolDefinitionReferenceOriginal,\n RenewPoolsForProgramRequest as RenewPoolsForProgramRequestOriginal,\n RenewPoolsForProgramResponse as RenewPoolsForProgramResponseOriginal,\n UpdatePoolStatusRequest as UpdatePoolStatusRequestOriginal,\n UpdatePoolStatusRequestPoolSelectorOneOf as UpdatePoolStatusRequestPoolSelectorOneOfOriginal,\n PoolSelectorType as PoolSelectorTypeOriginal,\n PoolSelectorTypeWithLiterals as PoolSelectorTypeWithLiteralsOriginal,\n ByPoolDefinitionIdAndProgramDefinitionIdOptions as ByPoolDefinitionIdAndProgramDefinitionIdOptionsOriginal,\n ByProgramIdOptions as ByProgramIdOptionsOriginal,\n UpdatePoolStatusResponse as UpdatePoolStatusResponseOriginal,\n CountNumberOfPoolsInProvisioningStatusRequest as CountNumberOfPoolsInProvisioningStatusRequestOriginal,\n CountNumberOfPoolsInProvisioningStatusResponse as CountNumberOfPoolsInProvisioningStatusResponseOriginal,\n CheckBenefitEligibilityByFilterRequest as CheckBenefitEligibilityByFilterRequestOriginal,\n PoolFilter as PoolFilterOriginal,\n PoolSelector as PoolSelectorOriginal,\n CheckBenefitEligibilityByFilterResponse as CheckBenefitEligibilityByFilterResponseOriginal,\n HealPoolRequest as HealPoolRequestOriginal,\n HealPoolResponse as HealPoolResponseOriginal,\n HealPoolTenantRequest as HealPoolTenantRequestOriginal,\n HealPoolTenantResponse as HealPoolTenantResponseOriginal,\n DomainEvent as DomainEventOriginal,\n DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n EntityCreatedEvent as EntityCreatedEventOriginal,\n RestoreInfo as RestoreInfoOriginal,\n EntityUpdatedEvent as EntityUpdatedEventOriginal,\n EntityDeletedEvent as EntityDeletedEventOriginal,\n ActionEvent as ActionEventOriginal,\n MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n AccountInfo as AccountInfoOriginal,\n RedeemBenefitApplicationErrors as RedeemBenefitApplicationErrorsOriginal,\n ReallocateBenefitApplicationErrors as ReallocateBenefitApplicationErrorsOriginal,\n GetEligibleBenefitsApplicationErrors as GetEligibleBenefitsApplicationErrorsOriginal,\n CheckBenefitEligibilityByFilterApplicationErrors as CheckBenefitEligibilityByFilterApplicationErrorsOriginal,\n} from './benefit-programs-v1-pool-pools.types.js';\n"],"mappings":";AAAA,SAAS,yBAAyB;AAClC,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,8CACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,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,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,M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AAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,mCAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBAC+B,gCAAgC,OAAO;AAE5E,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["payload","PoolStatus","IdentityType","PolicyExpressionType","Type","WeekDay","TimePeriod","PoolOrigin","PoolRenewalActionType","SortOrder","Intent","BenefitResultType","ProvisionPoolsForProgramResponseType","PoolSelectorType","WebhookIdentityType","getPool","updatePool","queryPools","redeemBenefit","reallocateBenefit","checkBenefitEligibility","bulkCheckBenefitEligibility","getEligibleBenefits","bulkUpdatePools","checkBenefitEligibilityByFilter"]}
1
+ {"version":3,"sources":["../../src/benefit-programs-v1-pool-pools.http.ts","../../src/benefit-programs-v1-pool-pools.types.ts","../../src/benefit-programs-v1-pool-pools.meta.ts"],"sourcesContent":["import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\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 resolveWixBenefitProgramsV1PoolPoolServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'api._api_base_domain_': [\n {\n srcPath: '/pools',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/_api/benefit-programs-pools',\n destPath: '',\n },\n {\n srcPath: '/_api/benefit-programs/v1/bulk/benefits',\n destPath: '/v1/bulk/benefits',\n },\n {\n srcPath: '/_api/benefit-programs/v1/bulk/pools',\n destPath: '/v1/bulk/pools',\n },\n {\n srcPath: '/_api/benefit-programs/v1/pools',\n destPath: '/v1/pools',\n },\n {\n srcPath: '/_api/benefit-programs/v1/benefits',\n destPath: '/v1/benefits',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/benefit-programs-pools',\n destPath: '',\n },\n {\n srcPath: '/_api/benefit-programs/v1/bulk/benefits',\n destPath: '/v1/bulk/benefits',\n },\n {\n srcPath: '/_api/benefit-programs/v1/bulk/pools',\n destPath: '/v1/bulk/pools',\n },\n {\n srcPath: '/_api/benefit-programs/v1/pools',\n destPath: '/v1/pools',\n },\n {\n srcPath: '/_api/benefit-programs/v1/benefits',\n destPath: '/v1/benefits',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/benefit-programs-pools',\n destPath: '',\n },\n {\n srcPath: '/_api/benefit-programs/v1/bulk/benefits',\n destPath: '/v1/bulk/benefits',\n },\n {\n srcPath: '/_api/benefit-programs/v1/bulk/pools',\n destPath: '/v1/bulk/pools',\n },\n {\n srcPath: '/_api/benefit-programs/v1/pools',\n destPath: '/v1/pools',\n },\n {\n srcPath: '/_api/benefit-programs/v1/benefits',\n destPath: '/v1/benefits',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/benefit-programs-pools',\n destPath: '',\n },\n {\n srcPath: '/_api/benefit-programs/v1/bulk/benefits',\n destPath: '/v1/bulk/benefits',\n },\n {\n srcPath: '/_api/benefit-programs/v1/bulk/pools',\n destPath: '/v1/bulk/pools',\n },\n {\n srcPath: '/_api/benefit-programs/v1/pools',\n destPath: '/v1/pools',\n },\n {\n srcPath: '/_api/benefit-programs/v1/benefits',\n destPath: '/v1/benefits',\n },\n ],\n 'editor.wixapps.net': [\n {\n srcPath: '/_api/benefit-programs-pools',\n destPath: '',\n },\n {\n srcPath: '/_api/benefit-programs/v1/bulk/benefits',\n destPath: '/v1/bulk/benefits',\n },\n {\n srcPath: '/_api/benefit-programs/v1/bulk/pools',\n destPath: '/v1/bulk/pools',\n },\n {\n srcPath: '/_api/benefit-programs/v1/pools',\n destPath: '/v1/pools',\n },\n {\n srcPath: '/_api/benefit-programs/v1/benefits',\n destPath: '/v1/benefits',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/benefit-programs-pools',\n destPath: '',\n },\n {\n srcPath: '/_api/benefit-programs/v1/bulk/benefits',\n destPath: '/v1/bulk/benefits',\n },\n {\n srcPath: '/_api/benefit-programs/v1/bulk/pools',\n destPath: '/v1/bulk/pools',\n },\n {\n srcPath: '/_api/benefit-programs/v1/pools',\n destPath: '/v1/pools',\n },\n {\n srcPath: '/_api/benefit-programs/v1/benefits',\n destPath: '/v1/benefits',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/benefit-programs-pools',\n destPath: '',\n },\n {\n srcPath: '/_api/benefit-programs/v1/benefits',\n destPath: '/v1/benefits',\n },\n {\n srcPath: '/_api/benefit-programs/v1/pools',\n destPath: '/v1/pools',\n },\n {\n srcPath: '/_api/benefit-programs/v1/bulk/benefits',\n destPath: '/v1/bulk/benefits',\n },\n {\n srcPath: '/_api/benefit-programs/v1/bulk/pools',\n destPath: '/v1/bulk/pools',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/benefit-programs/v1/bulk/benefits',\n destPath: '/v1/bulk/benefits',\n },\n {\n srcPath: '/_api/benefit-programs/v1/bulk/pools',\n destPath: '/v1/bulk/pools',\n },\n {\n srcPath: '/_api/benefit-programs/v1/pools',\n destPath: '/v1/pools',\n },\n {\n srcPath: '/_api/benefit-programs/v1/benefits',\n destPath: '/v1/benefits',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/benefit-programs/v1/bulk/benefits',\n destPath: '/v1/bulk/benefits',\n },\n {\n srcPath: '/benefit-programs/v1/bulk/pools',\n destPath: '/v1/bulk/pools',\n },\n {\n srcPath: '/benefit-programs/v1/pools',\n destPath: '/v1/pools',\n },\n {\n srcPath: '/benefit-programs/v1/benefits',\n destPath: '/v1/benefits',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_benefit-programs_pools';\n\n/** Retrieves a pool. */\nexport function getPool(payload: object): RequestOptionsFactory<any> {\n function __getPool({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.benefit_programs.v1.pool',\n method: 'GET' as any,\n methodFqn: 'wix.benefit_programs.v1.pool.PoolService.GetPool',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBenefitProgramsV1PoolPoolServiceUrl({\n protoPath: '/v1/pools/{poolId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'pool.createdDate' }, { path: 'pool.updatedDate' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getPool;\n}\n\n/**\n * Updates a pool.\n *\n * Each time the pool is updated,\n * `revision` increments by 1.\n * The current `revision` must be passed when updating the pool.\n * This ensures you're working with the latest pool\n * and prevents unintended overwrites.\n */\nexport function updatePool(payload: object): RequestOptionsFactory<any> {\n function __updatePool({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'pool.createdDate' }, { path: 'pool.updatedDate' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.benefit_programs.v1.pool',\n method: 'PATCH' as any,\n methodFqn: 'wix.benefit_programs.v1.pool.PoolService.UpdatePool',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBenefitProgramsV1PoolPoolServiceUrl({\n protoPath: '/v1/pools/{pool.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'pool.createdDate' }, { path: 'pool.updatedDate' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updatePool;\n}\n\n/**\n * Creates a query to retrieve a list of pools.\n *\n * The Query Pools method builds a query to retrieve a list of pools and returns a `PoolsQueryBuilder` object.\n *\n * The returned object contains the query definition, which is used to run the query using the `find()` method.\n *\n * You can refine the query by chaining `PoolsQueryBuilder` methods onto the query. `PoolsQueryBuilder` methods enable you to filter, sort, and control the results that Query Pools returns.\n *\n * Query Pools has a default paging limit of 50, which you can override.\n *\n * For a full description of the item object, see the object returned for the `items` property in `PoolsQueryResult`.\n */\nexport function queryPools(payload: object): RequestOptionsFactory<any> {\n function __queryPools({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.benefit_programs.v1.pool',\n method: 'POST' as any,\n methodFqn: 'wix.benefit_programs.v1.pool.PoolService.QueryPools',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBenefitProgramsV1PoolPoolServiceUrl({\n protoPath: '/v1/pools/query',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'pools.createdDate' },\n { path: 'pools.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryPools;\n}\n\n/**\n * Redeems a specified benefit.\n *\n * Calling this method records redemption of the benefit and adjusts the pool's associated balance. You still need to handle providing the beneficiary with the item.\n */\nexport function redeemBenefit(payload: object): RequestOptionsFactory<any> {\n function __redeemBenefit({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'targetDate' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.benefit_programs.v1.pool',\n method: 'POST' as any,\n methodFqn: 'wix.benefit_programs.v1.pool.PoolService.RedeemBenefit',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBenefitProgramsV1PoolPoolServiceUrl({\n protoPath: '/v1/benefits/redeem',\n data: serializedData,\n host,\n }),\n data: serializedData,\n };\n\n return metadata;\n }\n\n return __redeemBenefit;\n}\n\n/**\n * Reallocates a redeemed benefit to a new target date.\n *\n * The reallocation is recorded as a new zero-amount transaction that supersedes the specified transaction in the redemption's transaction chain.\n * The specified transaction must be the latest transaction in the chain. The item, count and benefit key are carried over from the original redemption; only the target date changes.\n */\nexport function reallocateBenefit(payload: object): RequestOptionsFactory<any> {\n function __reallocateBenefit({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'targetDate' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.benefit_programs.v1.pool',\n method: 'POST' as any,\n methodFqn: 'wix.benefit_programs.v1.pool.PoolService.ReallocateBenefit',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBenefitProgramsV1PoolPoolServiceUrl({\n protoPath: '/v1/benefits/reallocate',\n data: serializedData,\n host,\n }),\n data: serializedData,\n };\n\n return metadata;\n }\n\n return __reallocateBenefit;\n}\n\n/**\n * Cancels a redemption, crediting the redeemed amount back to the pool's available balance.\n *\n * The cancellation is recorded as a new transaction that supersedes the specified transaction and terminates the redemption's transaction chain.\n * The specified transaction must be the latest transaction in the chain. The credited amount is always the amount of the original redemption, regardless of any reallocations in between.\n */\nexport function cancelRedemption(payload: object): RequestOptionsFactory<any> {\n function __cancelRedemption({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.benefit_programs.v1.pool',\n method: 'POST' as any,\n methodFqn: 'wix.benefit_programs.v1.pool.PoolService.CancelRedemption',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBenefitProgramsV1PoolPoolServiceUrl({\n protoPath: '/v1/benefits/cancel-redemption',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __cancelRedemption;\n}\n\n/**\n * Checks if a benefit can currently be redeemed.\n *\n * To be redeemed, a benefit's pool must be active and the associated balance must be greater than the cost of the benefit.\n */\nexport function checkBenefitEligibility(\n payload: object\n): RequestOptionsFactory<any> {\n function __checkBenefitEligibility({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'targetDate' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.benefit_programs.v1.pool',\n method: 'POST' as any,\n methodFqn:\n 'wix.benefit_programs.v1.pool.PoolService.CheckBenefitEligibility',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBenefitProgramsV1PoolPoolServiceUrl({\n protoPath: '/v1/pools/check-eligibility',\n data: serializedData,\n host,\n }),\n data: serializedData,\n };\n\n return metadata;\n }\n\n return __checkBenefitEligibility;\n}\n\n/**\n * Checks if benefits can currently be redeemed.\n *\n * To be redeemed, a benefit's pool must be active and the associated balance must be greater than the cost of the benefit.\n *\n * Each benefit is checked independently. For example, if there is a benefit with a price of 3 credits and a benefit with a price of 4 credits, and there are 5 available credits, both benefits would be returned as eligible, but they can't both be redeemed.\n */\nexport function bulkCheckBenefitEligibility(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkCheckBenefitEligibility({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'benefitSelectors.targetDate' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.benefit_programs.v1.pool',\n method: 'POST' as any,\n methodFqn:\n 'wix.benefit_programs.v1.pool.PoolService.BulkCheckBenefitEligibility',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBenefitProgramsV1PoolPoolServiceUrl({\n protoPath: '/v1/bulk/benefits/check-eligibility',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'results.benefitSelector.targetDate' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkCheckBenefitEligibility;\n}\n\n/**\n * Retrieves benefits that can be redeemed for a specific benefit item.\n *\n * Each benefit item can only be linked to 1 benefit in 1 pool definition. However, each pool created from that pool definition contains the same benefits.\n * This method checks each pool containing a benefit with this benefit item, and returns the benefits that can be redeemed.\n */\nexport function getEligibleBenefits(\n payload: object\n): RequestOptionsFactory<any> {\n function __getEligibleBenefits({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'targetDate' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.benefit_programs.v1.pool',\n method: 'POST' as any,\n methodFqn: 'wix.benefit_programs.v1.pool.PoolService.GetEligibleBenefits',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBenefitProgramsV1PoolPoolServiceUrl({\n protoPath: '/v1/pools/eligible-pools',\n data: serializedData,\n host,\n }),\n data: serializedData,\n };\n\n return metadata;\n }\n\n return __getEligibleBenefits;\n}\n\n/** Updates pools. */\nexport function bulkUpdatePools(payload: object): RequestOptionsFactory<any> {\n function __bulkUpdatePools({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'pools.fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'pools.pool.createdDate' },\n { path: 'pools.pool.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.benefit_programs.v1.pool',\n method: 'POST' as any,\n methodFqn: 'wix.benefit_programs.v1.pool.PoolService.BulkUpdatePools',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBenefitProgramsV1PoolPoolServiceUrl({\n protoPath: '/v1/bulk/pools',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'results.item.createdDate' },\n { path: 'results.item.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkUpdatePools;\n}\n\n/**\n * Checks benefit eligibility across the pools that match the filter.\n *\n * The filter selects pools (not individual benefits), using the same fields supported by Query Pools. For field support, see [Filtering and Sorting](https://dev.wix.com/docs/rest/business-solutions/benefit-programs/pools/filtering-and-sorting).\n *\n * To be redeemed, a benefit's pool must be active and the associated balance must be greater than the cost of the benefit.\n *\n * Each benefit is checked independently. For example, if there is a benefit with a price of 3 credits and a benefit with a price of 4 credits, and there are 5 available credits, both benefits would be returned as eligible, but they can't both be redeemed.\n */\nexport function checkBenefitEligibilityByFilter(\n payload: object\n): RequestOptionsFactory<any> {\n function __checkBenefitEligibilityByFilter({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'targetDate' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.benefit_programs.v1.pool',\n method: 'POST' as any,\n methodFqn:\n 'wix.benefit_programs.v1.pool.PoolService.CheckBenefitEligibilityByFilter',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBenefitProgramsV1PoolPoolServiceUrl({\n protoPath: '/v1/pools/check-benefit-eligibility-by-filter',\n data: serializedData,\n host,\n }),\n data: serializedData,\n };\n\n return metadata;\n }\n\n return __checkBenefitEligibilityByFilter;\n}\n","export interface Pool {\n /**\n * Pool ID.\n * @format GUID\n * @immutable\n * @readonly\n */\n id?: string | null;\n /**\n * Revision number, which increments by 1 each time the pool is updated.\n * To prevent conflicting changes, the current revision must be passed when updating the pool.\n *\n * Ignored when creating a pool.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the pool was created.\n * @readonly\n */\n createdDate?: Date | null;\n /**\n * Date and time the pool was updated.\n * @readonly\n */\n updatedDate?: Date | null;\n /**\n * ID of the associated pool definition.\n * @format GUID\n * @readonly\n * @immutable\n */\n poolDefinitionId?: string | null;\n /**\n * ID of the associated program definition.\n * @format GUID\n * @readonly\n * @immutable\n */\n programDefinitionId?: string | null;\n /**\n * ID of the program that contains this pool.\n * @format GUID\n * @readonly\n * @immutable\n */\n programId?: string | null;\n /**\n * Pool status.\n * @readonly\n */\n status?: PoolStatusWithLiterals;\n /**\n * Pool beneficiary.\n * @readonly\n * @immutable\n */\n beneficiary?: CommonIdentificationData;\n /** Pool benefits and settings. */\n details?: Details;\n /**\n * Pool name.\n *\n * You may want to use the same name that's used in the associated pool definition.\n * @maxLength 64\n */\n displayName?: string;\n /**\n * Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.\n * @readonly\n * @immutable\n * @minLength 1\n * @maxLength 20\n */\n namespace?: string | null;\n /**\n * Custom field data for the pool object.\n *\n * [Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions) must be configured in the app dashboard before they can be accessed with API calls.\n */\n extendedFields?: ExtendedFields;\n /**\n * Associated program definition information.\n * @readonly\n */\n programDefinition?: ProgramDefinitionInfo;\n /**\n * Information about the program containing the pool.\n * @readonly\n */\n program?: PoolProgramInfo;\n /**\n * Version of the pool definition that this pool was created from.\n * @readonly\n */\n poolDefinitionRevision?: string | null;\n /**\n * Number of times this pool has been renewed.\n * @readonly\n */\n renewalCount?: number | null;\n /**\n * Previous status of the benefit pool.\n * @internal\n * @readonly\n */\n previousStatus?: PoolStatusWithLiterals;\n /**\n * Origin of the benefit pool.\n * @internal\n * @readonly\n * @immutable\n */\n origin?: PoolOriginWithLiterals;\n /**\n * Action to be performed on pool renewal\n * @internal\n * @readonly\n */\n renewalAction?: PoolRenewalAction;\n /**\n * Pool description.\n * @internal\n * @maxLength 450\n */\n description?: string | null;\n /**\n * Monotonic counter incremented on every change, including system/materialization updates that do not bump revision.\n * @internal\n * @readonly\n */\n changesCounter?: string | null;\n}\n\nexport enum PoolStatus {\n /** Pool is active. */\n ACTIVE = 'ACTIVE',\n /** Pool is paused. It can be resumed. */\n PAUSED = 'PAUSED',\n /** Pool is ended. It can't be resumed. */\n ENDED = 'ENDED',\n /** Pool provisioning is in progress. This status exists for a short time during processing. */\n PROVISIONING = 'PROVISIONING',\n /** Pool renewing is in progress. This status exists for a short time during processing. */\n RENEWING = 'RENEWING',\n /** Pool is pending */\n PENDING = 'PENDING',\n}\n\n/** @enumType */\nexport type PoolStatusWithLiterals =\n | PoolStatus\n | 'ACTIVE'\n | 'PAUSED'\n | 'ENDED'\n | 'PROVISIONING'\n | 'RENEWING'\n | 'PENDING';\n\nexport interface CommonIdentificationData\n extends CommonIdentificationDataIdOneOf {\n /**\n * ID of a site visitor that hasn't logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site member.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user.\n * @format GUID\n */\n wixUserId?: string;\n /**\n * Identity type.\n * @internal\n * @readonly\n */\n identityType?: IdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface CommonIdentificationDataIdOneOf {\n /**\n * ID of a site visitor that hasn't logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site member.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user.\n * @format GUID\n */\n wixUserId?: string;\n}\n\nexport enum IdentityType {\n /** Unknown type. This value is not used. */\n UNKNOWN = 'UNKNOWN',\n /** A site visitor who has not logged in. */\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n /** A logged-in site member. */\n MEMBER = 'MEMBER',\n /** A Wix account holder, such as a site owner or contributor. */\n WIX_USER = 'WIX_USER',\n}\n\n/** @enumType */\nexport type IdentityTypeWithLiterals =\n | IdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER';\n\nexport interface Details {\n /**\n * List of benefits.\n * @maxSize 10\n */\n benefits?: Benefit[];\n /**\n * Credit settings.\n *\n * If this object is empty, you can't set a price for the benefit.\n */\n creditConfiguration?: CreditConfiguration;\n /**\n * Defines when benefits can be redeemed.\n *\n * Benefit redemption can be limited by:\n * - **Fixed intervals**: Benefits can be redeemed during specific times of the day or week.\n * - **Rate limited**: Up to a maximum amount of benefits can be redeemed in a specified time period.\n *\n * Expressions can be combined using the *not*, *and*, and *or* operators.\n *\n * Each benefit can override this policy.\n * @internal\n */\n policyExpression?: PolicyExpression;\n /** Additional information relating to this object. */\n additionalData?: Record<string, any> | null;\n}\n\nexport interface Benefit {\n /**\n * Unique identifier for this benefit.\n *\n * This key is consistent across the pool definition and all associated pools that contain this benefit.\n * @maxLength 64\n */\n benefitKey?: string;\n /**\n * ID that is used to associated items with this benefit.\n * @format GUID\n * @immutable\n * @readonly\n */\n itemSetId?: string | null;\n /**\n * Price of the benefit in credits. The price is the same for all of this benefit's items.\n * @decimalValue options { gte:0, maxScale:4 }\n */\n price?: string | null;\n /**\n * Overrides the default policy expression in `benefit.details`.\n * @internal\n */\n policyExpression?: PolicyExpression;\n /** Additional information for this benefit. */\n additionalData?: Record<string, any> | null;\n /**\n * ID of the app providing the benefit items.\n * @format GUID\n * @immutable\n */\n providerAppId?: string | null;\n /**\n * Benefit name.\n * @maxLength 40\n */\n displayName?: string | null;\n /**\n * Benefit description.\n * @maxLength 255\n */\n description?: string | null;\n}\n\nexport interface PolicyExpression extends PolicyExpressionExpressionOneOf {\n /** Benefits can be redeemed if the expression in this object is not fulfilled. */\n operatorNotOptions?: PolicyExpressionNot;\n /** Benefits can be redeemed if all the expression in this object's array are fulfilled. */\n operatorAndOptions?: PolicyExpressionAnd;\n /** Benefits can be redeemed if at least one of the expressions in this object's array is fulfilled. */\n operatorOrOptions?: PolicyExpressionOr;\n /** Defines when benefits can be redeemed or how many benefits can be redeemed in a specific time period. */\n policyOptions?: Policy;\n /** Policy expression type. */\n type?: PolicyExpressionTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface PolicyExpressionExpressionOneOf {\n /** Benefits can be redeemed if the expression in this object is not fulfilled. */\n operatorNotOptions?: PolicyExpressionNot;\n /** Benefits can be redeemed if all the expression in this object's array are fulfilled. */\n operatorAndOptions?: PolicyExpressionAnd;\n /** Benefits can be redeemed if at least one of the expressions in this object's array is fulfilled. */\n operatorOrOptions?: PolicyExpressionOr;\n /** Defines when benefits can be redeemed or how many benefits can be redeemed in a specific time period. */\n policyOptions?: Policy;\n}\n\nexport enum PolicyExpressionType {\n /** Use with `operatorNotOptions`. */\n OPERATOR_NOT = 'OPERATOR_NOT',\n /** Use with `operatorAndOptions`. */\n OPERATOR_AND = 'OPERATOR_AND',\n /** Use with `operatorOrOptions`. */\n OPERATOR_OR = 'OPERATOR_OR',\n /** Use with `policyOptions`. */\n POLICY = 'POLICY',\n}\n\n/** @enumType */\nexport type PolicyExpressionTypeWithLiterals =\n | PolicyExpressionType\n | 'OPERATOR_NOT'\n | 'OPERATOR_AND'\n | 'OPERATOR_OR'\n | 'POLICY';\n\nexport interface PolicyExpressionNot {\n /** Policy expression. If this expression is not fulfilled, benefits can be redeemed. */\n expression?: PolicyExpression;\n}\n\nexport interface PolicyExpressionAnd {\n /**\n * Array of policy expressions. If all expressions are fulfilled, benefits can be redeemed.\n * @minSize 2\n * @maxSize 10\n */\n expressions?: PolicyExpression[];\n}\n\nexport interface PolicyExpressionOr {\n /**\n * Array of policy expressions. If at least one expression is fulfilled, benefits can be redeemed.\n * @minSize 2\n * @maxSize 10\n */\n expressions?: PolicyExpression[];\n}\n\nexport interface Policy extends PolicyPolicyOneOf {\n /**\n * Defines an interval during which the policy expression is fulfilled.\n *\n * If `fromWeekDay` and `toWeekDay` are defined, this interval applies weekly. Otherwise, it applies daily.\n */\n fixedIntervalOptions?: FixedIntervalPolicy;\n /** Maximum amount of times a benefit can be redeemed during a specified time period. */\n rateLimitedOptions?: RateLimitedPolicy;\n /** Custom policy defined by a different app. */\n customOptions?: CustomPolicy;\n /** Policy type. */\n type?: TypeWithLiterals;\n}\n\n/** @oneof */\nexport interface PolicyPolicyOneOf {\n /**\n * Defines an interval during which the policy expression is fulfilled.\n *\n * If `fromWeekDay` and `toWeekDay` are defined, this interval applies weekly. Otherwise, it applies daily.\n */\n fixedIntervalOptions?: FixedIntervalPolicy;\n /** Maximum amount of times a benefit can be redeemed during a specified time period. */\n rateLimitedOptions?: RateLimitedPolicy;\n /** Custom policy defined by a different app. */\n customOptions?: CustomPolicy;\n}\n\nexport enum Type {\n /** Use with `fixedIntervalOptions`. */\n FIXED_INTERVAL = 'FIXED_INTERVAL',\n /** Use with `rateLimitedOptions`. */\n RATE_LIMITED = 'RATE_LIMITED',\n /** Use with `customOptions`. */\n CUSTOM = 'CUSTOM',\n}\n\n/** @enumType */\nexport type TypeWithLiterals =\n | Type\n | 'FIXED_INTERVAL'\n | 'RATE_LIMITED'\n | 'CUSTOM';\n\nexport interface FixedIntervalPolicy {\n /** Weekday that this interval starts from. If this field is defined, then `toWeekDay` is required. */\n fromWeekDay?: WeekDayWithLiterals;\n /** Weekday that this interval ends at. If this field is defined, then `fromWeekDay` is required. */\n toWeekDay?: WeekDayWithLiterals;\n /**\n * Hour that this interval starts from. If this field is defined, then `toHour` is required.\n * @max 23\n */\n fromHour?: number | null;\n /**\n * Hour that this interval ends at. If this field is defined, then `fromHour` is required.\n * @max 23\n */\n toHour?: number | null;\n /**\n * Minute that this interval starts from. If this field is defined, then `toMinute` is required.\n * @max 59\n */\n fromMinute?: number | null;\n /**\n * Minute that this interval ends at. If this field is defined, then `fromMinute` is required.\n * @max 59\n */\n toMinute?: number | null;\n}\n\nexport enum WeekDay {\n /** Unknown weekday. */\n UNKNOWN = 'UNKNOWN',\n /** Monday. */\n MONDAY = 'MONDAY',\n /** Tuesday. */\n TUESDAY = 'TUESDAY',\n /** Wednesday. */\n WEDNESDAY = 'WEDNESDAY',\n /** Thursday. */\n THURSDAY = 'THURSDAY',\n /** Friday. */\n FRIDAY = 'FRIDAY',\n /** Saturday. */\n SATURDAY = 'SATURDAY',\n /** Sunday. */\n SUNDAY = 'SUNDAY',\n}\n\n/** @enumType */\nexport type WeekDayWithLiterals =\n | WeekDay\n | 'UNKNOWN'\n | 'MONDAY'\n | 'TUESDAY'\n | 'WEDNESDAY'\n | 'THURSDAY'\n | 'FRIDAY'\n | 'SATURDAY'\n | 'SUNDAY';\n\nexport interface RateLimitedPolicy {\n /** Maximum number of times a benefit can be redeemed per specified time period. */\n times?: number;\n /** Time period for the rate limit, resets at the start of each period. */\n timePeriod?: TimePeriodWithLiterals;\n /**\n * Unique identifier for the quota resource. Set automatically when creating a policy.\n * Updating RateLimitedPolicy `time period` or `times` will result in a quota reset.\n * @immutable\n * @readonly\n * @format GUID\n */\n quotaId?: string | null;\n}\n\nexport enum TimePeriod {\n /** Day, starting at midnight. */\n DAY = 'DAY',\n /** Calendar month, starting on the first day of the month. */\n MONTH = 'MONTH',\n}\n\n/** @enumType */\nexport type TimePeriodWithLiterals = TimePeriod | 'DAY' | 'MONTH';\n\n/** Custom policy as implemented by the Entitlement Policy Provider */\nexport interface CustomPolicy {\n /**\n * Policy ID.\n * @format GUID\n */\n id?: string;\n /**\n * ID of the app providing the policy.\n * @format GUID\n */\n appId?: string | null;\n /** Additional information for this custom policy. */\n additionalData?: Record<string, any> | null;\n}\n\nexport interface CreditConfiguration {\n /**\n * Initial available amount for associated balances.\n * @decimalValue options { gte:0, maxScale:4 }\n */\n amount?: string;\n /** Rollover settings. */\n rolloverConfiguration?: RolloverConfiguration;\n /**\n * Credit unit display name.\n * @maxLength 32\n */\n unitDisplayName?: string | null;\n /**\n * Credit unit type.\n * @internal\n * @maxLength 16\n */\n unitType?: string | null;\n}\n\nexport interface RolloverConfiguration {\n /** Whether unused credits roll over to a new cycle when a program renews. */\n enabled?: boolean | null;\n /**\n * Maximum number of credits that can roll over to the next cycle when a program renews.\n * @decimalValue options { gte:0, maxScale:4 }\n */\n balanceCap?: string | null;\n}\n\nexport interface ExtendedFields {\n /**\n * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\n * The value of each key is structured according to the schema defined when the extended fields were configured.\n *\n * You can only access fields for which you have the appropriate permissions.\n *\n * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).\n */\n namespaces?: Record<string, Record<string, any>>;\n}\n\nexport interface ProgramDefinitionInfo {\n /**\n * Program definition ID.\n * @format GUID\n * @readonly\n */\n id?: string;\n /**\n * Program definition external ID.\n * @format GUID\n * @readonly\n */\n externalId?: string | null;\n /**\n * Display name of the program definition.\n * @readonly\n * @maxLength 64\n */\n displayName?: string | null;\n /**\n * Description of the program definition.\n * @readonly\n * @maxLength 450\n */\n description?: string | null;\n}\n\nexport interface PoolProgramInfo {\n /**\n * Program ID.\n * @format GUID\n * @readonly\n */\n id?: string;\n /**\n * Program external ID.\n * @format GUID\n * @readonly\n */\n externalId?: string | null;\n /**\n * Display name of the program.\n * @readonly\n * @maxLength 64\n */\n displayName?: string | null;\n}\n\nexport enum PoolOrigin {\n /** Benefit pool created by a program provision. */\n PROVISION = 'PROVISION',\n /** Benefit pool was created when pool definition was added to program definition. */\n CASCADE = 'CASCADE',\n}\n\n/** @enumType */\nexport type PoolOriginWithLiterals = PoolOrigin | 'PROVISION' | 'CASCADE';\n\nexport interface PoolRenewalAction extends PoolRenewalActionActionOneOf {\n /**\n * The pool's details (benefits and settings) will be updated to match the details of the specified pool definition revision.\n * @readonly\n */\n updateOptions?: Update;\n /**\n * Version of the pool definition that will be used when the pool is renewed.\n * @readonly\n */\n poolDefinitionRevision?: string | null;\n /**\n * The action that will be taken when the pool is renewed\n * @readonly\n */\n type?: PoolRenewalActionTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface PoolRenewalActionActionOneOf {\n /**\n * The pool's details (benefits and settings) will be updated to match the details of the specified pool definition revision.\n * @readonly\n */\n updateOptions?: Update;\n}\n\nexport enum PoolRenewalActionType {\n /** Pool will end on program renewal */\n END = 'END',\n /** Pool will be updated on program renewal */\n UPDATE = 'UPDATE',\n}\n\n/** @enumType */\nexport type PoolRenewalActionTypeWithLiterals =\n | PoolRenewalActionType\n | 'END'\n | 'UPDATE';\n\nexport interface Update {\n /**\n * The pool's details will be updated to match the details of the specified pool definition revision.\n * @readonly\n */\n details?: Details;\n /**\n * The pool's display name will be updated to match the display name of the specified pool definition revision.\n * @maxLength 64\n */\n displayName?: string;\n /**\n * The pool's description will be updated to match the description of the specified pool definition revision.\n * @maxLength 450\n */\n description?: string | null;\n}\n\nexport interface PoolProvisioned {\n /** Pool which has been provisioned */\n pool?: Pool;\n}\n\nexport interface PoolRenewed {\n /** Pool which has been granted */\n pool?: Pool;\n}\n\nexport interface BenefitRedeemed {\n /** Pool which has been redeemed */\n pool?: Pool;\n /** Details of the redemption */\n redemptionDetails?: RedemptionDetails;\n}\n\nexport interface RedemptionDetails {\n /**\n * Id of the redemption transaction\n * @format GUID\n */\n transactionId?: string;\n /** Reference of the item that is being redeemed */\n itemReference?: ItemReference;\n /**\n * Number of of items to redeem\n * @min 1\n */\n itemCount?: number;\n /**\n * Date at which the item will be used. Target date does not necessarily equal the redemption date. Credits are redeemed immediately.\n * This date is only used for validations that may be performed by entitlement providers\n */\n targetDate?: Date | null;\n /**\n * Idempotency key\n * @maxLength 200\n */\n idempotencyKey?: string;\n /** Additional info provided during redemption */\n additionalData?: Record<string, any> | null;\n /** Beneficiary of the entitlement */\n beneficiary?: CommonIdentificationData;\n}\n\nexport interface ItemReference {\n /**\n * External ID of the item.\n * @format GUID\n */\n externalId?: string;\n /**\n * Item category.\n * @maxLength 20\n */\n category?: string;\n /**\n * ID of the app providing the item.\n * @format GUID\n */\n providerAppId?: string;\n}\n\nexport interface BenefitReallocated {\n /** Pool which the reallocated benefit belongs to */\n pool?: Pool;\n /** Details of the reallocation */\n reallocationDetails?: ReallocationDetails;\n}\n\nexport interface ReallocationDetails {\n /**\n * Id of the reallocation transaction. This is the new latest transaction in the chain\n * @format GUID\n */\n transactionId?: string;\n /**\n * Id of the transaction superseded by the reallocation\n * @format GUID\n */\n previousTransactionId?: string;\n /** Reference of the item that is being reallocated */\n itemReference?: ItemReference;\n /**\n * Number of items that were redeemed\n * @min 1\n */\n itemCount?: number;\n /** New date at which the item will be used */\n targetDate?: Date | null;\n /** Date at which the item would have been used before this reallocation */\n previousTargetDate?: Date | null;\n /**\n * Idempotency key of the reallocation request\n * @maxLength 200\n */\n idempotencyKey?: string;\n /** Beneficiary of the entitlement */\n beneficiary?: CommonIdentificationData;\n}\n\nexport interface RedemptionCanceled {\n /** Pool which the canceled redemption belongs to */\n pool?: Pool;\n /** Details of the cancellation */\n cancellationDetails?: CancellationDetails;\n}\n\nexport interface CancellationDetails {\n /**\n * Id of the cancellation transaction. This is the terminal transaction of the chain\n * @format GUID\n */\n transactionId?: string;\n /**\n * Id of the transaction superseded by the cancellation\n * @format GUID\n */\n previousTransactionId?: string;\n /** Reference of the item whose redemption was canceled */\n itemReference?: ItemReference;\n /**\n * Number of items that were redeemed\n * @min 1\n */\n itemCount?: number;\n /**\n * Idempotency key of the cancellation request\n * @maxLength 200\n */\n idempotencyKey?: string;\n /** Beneficiary of the entitlement */\n beneficiary?: CommonIdentificationData;\n}\n\nexport interface PoolPaused {\n /** Pool which has been paused */\n pool?: Pool;\n}\n\nexport interface PoolResumed {\n /** Pool which has been resumed */\n pool?: Pool;\n}\n\nexport interface PoolEnded {\n /** Pool which has been ended */\n pool?: Pool;\n}\n\nexport interface BenefitReserved {\n /** Pool which was used to perform this transaction */\n pool?: Pool;\n /** Details of the redemption */\n redemptionDetails?: RedemptionDetails;\n}\n\nexport interface BenefitReservationCanceled {\n /** Pool which was used to perform this transaction */\n pool?: Pool;\n /**\n * Id of the canceled reservation transaction\n * @format GUID\n */\n transactionId?: string;\n}\n\nexport interface BenefitReservationReleased {\n /** Pool which was used to perform this transaction */\n pool?: Pool;\n /**\n * Id of the released reservation transaction\n * @format GUID\n */\n transactionId?: string;\n}\n\nexport interface PoolProvisionJobFinished {\n /**\n * Program id\n * @format GUID\n */\n programId?: string;\n /** Processed item count */\n processedItemCount?: number;\n /** Origin of the pool */\n origin?: PoolOriginWithLiterals;\n}\n\nexport interface PoolStatusUpdateJobFinished\n extends PoolStatusUpdateJobFinishedContextOneOf {\n /** The id of the pool definition that is being updated */\n poolDefinitionAndProgramDefinition?: PoolDefinitionAndProgramDefinition;\n /** Update the status of all pools in the program */\n programInfo?: ProgramInfo;\n /** Update the status of a specific pool */\n poolInfo?: PoolStatusUpdateParamsPoolInfo;\n /** Target status of the pool */\n targetStatus?: PoolStatusWithLiterals;\n /** The total number of items that were processed */\n processedItemCount?: number;\n}\n\n/** @oneof */\nexport interface PoolStatusUpdateJobFinishedContextOneOf {\n /** The id of the pool definition that is being updated */\n poolDefinitionAndProgramDefinition?: PoolDefinitionAndProgramDefinition;\n /** Update the status of all pools in the program */\n programInfo?: ProgramInfo;\n /** Update the status of a specific pool */\n poolInfo?: PoolStatusUpdateParamsPoolInfo;\n}\n\nexport interface PoolDefinitionAndProgramDefinition {\n /**\n * The id of the pool definition that is being updated\n * @format GUID\n * @readonly\n */\n poolDefinitionId?: string;\n /**\n * The key of the program that is being updated\n * @format GUID\n */\n programDefinitionId?: string | null;\n}\n\nexport interface ProgramInfo {\n /**\n * The key of the program that is being updated\n * @format GUID\n */\n programId?: string;\n /** Additional data that was provided when the job was submitted */\n additionalData?: Record<string, any> | null;\n}\n\nexport interface PoolStatusUpdateParamsPoolInfo {\n /**\n * The key of the program that is being updated\n * @format GUID\n */\n poolId?: string;\n /** Additional data that was provided when the job was submitted */\n additionalData?: Record<string, any> | null;\n}\n\nexport interface CreatePoolRequest {\n /** Pool to be created. */\n pool?: Pool;\n}\n\nexport interface CreatePoolResponse {\n /** Created pool. */\n pool?: Pool;\n}\n\nexport interface GetPoolRequest {\n /**\n * ID of the pool to retrieve.\n * @format GUID\n */\n poolId: string;\n}\n\nexport interface GetPoolResponse {\n /** Retrieved pool. */\n pool?: Pool;\n}\n\nexport interface UpdatePoolRequest {\n /** Pool to update. */\n pool: Pool;\n /**\n * Explicit list of fields to update.\n * @internal\n */\n fieldMask?: string[];\n}\n\nexport interface UpdatePoolResponse {\n /** Updated pool. */\n pool?: Pool;\n}\n\nexport interface DeletePoolRequest {\n /**\n * ID of the pool to delete.\n * @format GUID\n */\n poolId?: string;\n}\n\nexport interface DeletePoolResponse {}\n\nexport interface QueryPoolsRequest {\n /** Filter, sort, and paging to apply to the query. */\n query?: CursorQuery;\n /**\n * If true, the response will reflect a consistent snapshot of the data as of the time the request was received.\n * @internal\n */\n consistent?: boolean | null;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n /**\n * Filter object.\n * See [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language)\n * for more information.\n */\n filter?: Record<string, any> | null;\n /**\n * List of sort objects.\n * @maxSize 5\n */\n sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /**\n * Sort order. Use `ASC` for ascending order or `DESC` for descending order.\n *\n * Default: `ASC`\n */\n order?: SortOrderWithLiterals;\n /**\n * When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by\n * a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.\n *\n * If multiple filters are provided, they are combined with AND operator.\n *\n * Example:\n * Given we have document like {\"id\": \"1\", \"nestedField\": [{\"price\": 10, \"region\": \"EU\"}, {\"price\": 20, \"region\": \"US\"}]}\n * and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be\n * { fieldName: \"nestedField.price\", \"select_items_by\": [{\"nestedField.region\": \"US\"}] }\n * @internal\n * @maxSize 10\n */\n selectItemsBy?: Record<string, any>[] | null;\n}\n\nexport enum SortOrder {\n /** Ascending sort order. */\n ASC = 'ASC',\n /** Descending sort order. */\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface CursorPaging {\n /**\n * Maximum number of items to return.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\nexport interface QueryPoolsResponse {\n /** List of retrieved pools. */\n pools?: Pool[];\n /** Metadata for the paginated results. */\n metadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Cursor strings that point to the next page, previous page, or both. */\n cursors?: Cursors;\n /**\n * Whether there are more pages to retrieve following the current page.\n *\n * + `true`: Another page of results can be retrieved.\n * + `false`: This is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface RedeemBenefitRequest {\n /**\n * ID of the pool that contains the benefit to redeem.\n * @format GUID\n */\n poolId: string;\n /** Information about the item to redeem. */\n itemReference: ItemReference;\n /**\n * Key of the benefit to redeem.\n * @maxLength 64\n */\n benefitKey: string;\n /**\n * Amount of items to redeem.\n * @min 1\n */\n count?: number;\n /**\n * Date that the item will be provided to the beneficiary.\n *\n * The pool's associated balance will update immediately. This parameter should be used to manage the logistics of providing the item.\n */\n targetDate?: Date | null;\n /**\n * Unique identifier, generated by the client.\n * Used to recognize repeated attempts to make the same request.\n * @maxLength 200\n */\n idempotencyKey: string;\n /** Additional information. */\n additionalData?: Record<string, any> | null;\n /** Beneficiary of the pool containing the benefit to redeem. */\n beneficiary?: CommonIdentificationData;\n /**\n * Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.\n * @minLength 1\n * @maxLength 20\n */\n namespace: string;\n}\n\nexport interface RedeemBenefitResponse {\n /**\n * ID of the transaction recording the associated change in balance.\n * @format GUID\n */\n transactionId?: string;\n}\n\nexport interface NotEnoughBalance {\n /**\n * Pool ID.\n * @format GUID\n */\n poolId?: string;\n /** Item reference. */\n itemReference?: ItemReference;\n /**\n * Pool's associated balance amount in credits.\n * @decimalValue options { maxScale:4 }\n */\n availableBalance?: string;\n /**\n * Price of the item in credits.\n * @decimalValue options { maxScale:4 }\n */\n requestedBalance?: string;\n /**\n * Pool information.\n * @internal\n */\n poolInfo?: PoolInfo;\n /**\n * Program definition information.\n * @internal\n */\n programDefinitionInfo?: ProgramDefinitionInfo;\n /**\n * Program information.\n * @internal\n */\n programInfo?: PoolProgramInfo;\n /**\n * Benefit information.\n * @internal\n */\n benefitInfo?: BenefitInfo;\n}\n\nexport interface PoolInfo {\n /** Current pool balance */\n balance?: BalanceAmount;\n /**\n * Initial available amount for associated balances.\n * @decimalValue options { gte:0, maxScale:4 }\n */\n creditAmount?: string | null;\n /**\n * Pool name\n * @maxLength 64\n */\n displayName?: string;\n /**\n * Pool description\n * @maxLength 450\n */\n description?: string | null;\n /**\n * Pool definition id\n * @format GUID\n */\n poolDefinitionId?: string;\n /**\n * Credit unit type.\n * @internal\n * @maxLength 16\n */\n creditUnitType?: string | null;\n}\n\nexport interface BalanceAmount {\n /**\n * number of available credits.\n * @decimalValue options { maxScale:4 }\n * @readonly\n */\n available?: string;\n /**\n * number of reserved credits.\n * @decimalValue options { maxScale:4 }\n * @readonly\n */\n reserved?: string;\n}\n\nexport interface BenefitInfo {\n /**\n * Benefit name\n * @maxLength 64\n */\n displayName?: string | null;\n /**\n * Benefit description\n * @maxLength 256\n */\n description?: string | null;\n /**\n * Benefit key.\n * @maxLength 64\n */\n benefitKey?: string;\n /**\n * Price of the benefit in credits.\n * @internal\n * @decimalValue options { gte:0, maxScale:4 }\n */\n price?: string | null;\n}\n\nexport interface PolicyExpressionEvaluatedToFalse {\n /**\n * Pool ID.\n * @format GUID\n */\n poolId?: string;\n /** Item reference. */\n itemReference?: ItemReference;\n /**\n * Failure details.\n * @maxSize 10\n */\n failureDetails?: FailureDetails[];\n /**\n * Pool information.\n * @internal\n */\n poolInfo?: PoolInfo;\n /**\n * Program definition information.\n * @internal\n */\n programDefinitionInfo?: ProgramDefinitionInfo;\n /**\n * Program information.\n * @internal\n */\n programInfo?: PoolProgramInfo;\n /**\n * Benefit information.\n * @internal\n */\n benefitInfo?: BenefitInfo;\n}\n\nexport interface FailureDetails {\n /**\n * Failure code\n * @minLength 1\n * @maxLength 64\n */\n code?: string;\n /**\n * Failure message\n * @maxLength 256\n */\n message?: string | null;\n /**\n * Policy id\n * @format GUID\n */\n policyId?: string | null;\n /**\n * App that owns the policy\n * @format GUID\n */\n appId?: string | null;\n /** Information provided by the policy */\n errorData?: Record<string, any> | null;\n}\n\nexport interface PoolNotActive {\n /**\n * Pool ID.\n * @format GUID\n */\n poolId?: string;\n /** Pool status. */\n poolStatus?: PoolStatusWithLiterals;\n /**\n * Pool information.\n * @internal\n */\n poolInfo?: PoolInfo;\n /**\n * Program definition information.\n * @internal\n */\n programDefinitionInfo?: ProgramDefinitionInfo;\n /**\n * Program information.\n * @internal\n */\n programInfo?: PoolProgramInfo;\n /**\n * Benefit information.\n * @internal\n */\n benefitInfo?: BenefitInfo;\n}\n\nexport interface PoolNotFound {\n /**\n * Pool ID.\n * @format GUID\n */\n poolId?: string;\n}\n\nexport interface BenefitAlreadyRedeemed {\n /**\n * Pool ID\n * @format GUID\n */\n poolId?: string;\n /**\n * Idempotency key of the request that failed\n * @maxLength 200\n */\n idempotencyKey?: string;\n}\n\nexport interface BenefitNotFound {\n /**\n * Pool ID.\n * @format GUID\n */\n poolId?: string;\n /**\n * Specified benefit key.\n * @maxLength 64\n */\n benefitKey?: string | null;\n /**\n * Pool information.\n * @internal\n */\n poolInfo?: PoolInfo;\n /**\n * Program definition information.\n * @internal\n */\n programDefinitionInfo?: ProgramDefinitionInfo;\n /**\n * Program information.\n * @internal\n */\n programInfo?: PoolProgramInfo;\n}\n\nexport interface ReallocateBenefitRequest {\n /**\n * ID of the latest transaction in the redemption's transaction chain.\n * For a redemption that has never been reallocated, this is the redemption transaction ID.\n * @format GUID\n */\n transactionId: string;\n /** New date that the item will be provided to the beneficiary. */\n targetDate: Date | null;\n /**\n * Unique identifier, generated by the client.\n * Used to recognize repeated attempts to make the same request.\n * @maxLength 200\n */\n idempotencyKey: string;\n /** Beneficiary of the pool containing the benefit to reallocate. Must match the beneficiary of the original redemption. */\n beneficiary?: CommonIdentificationData;\n /**\n * Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.\n * @minLength 1\n * @maxLength 20\n */\n namespace: string;\n}\n\nexport interface ReallocateBenefitResponse {\n /**\n * ID of the reallocation transaction. This is the new latest transaction in the chain.\n * @format GUID\n */\n transactionId?: string;\n}\n\nexport interface TransactionNotFound {\n /**\n * ID of the transaction that wasn't found.\n * @format GUID\n */\n transactionId?: string;\n}\n\nexport interface NotLatestTransaction {\n /**\n * ID of the latest transaction in the chain.\n * @format GUID\n */\n latestTransactionId?: string;\n}\n\nexport interface RedemptionAlreadyCanceled {\n /**\n * ID of the transaction that canceled the redemption.\n * @format GUID\n */\n cancellationTransactionId?: string;\n}\n\nexport interface ChainOperationInProgress {\n /**\n * ID of the pending transaction that hasn't settled yet.\n * @format GUID\n */\n pendingTransactionId?: string;\n}\n\nexport interface AlreadyExecuted {\n /**\n * Idempotency key of the original request.\n * @maxLength 200\n */\n idempotencyKey?: string;\n}\n\nexport interface CancelRedemptionRequest {\n /**\n * ID of the latest transaction in the redemption's transaction chain.\n * For a redemption that has never been reallocated, this is the redemption transaction ID.\n * @format GUID\n */\n transactionId: string;\n /**\n * Unique identifier, generated by the client.\n * Used to recognize repeated attempts to make the same request.\n * @maxLength 200\n */\n idempotencyKey: string;\n}\n\nexport interface CancelRedemptionResponse {\n /**\n * ID of the cancellation transaction. This is the terminal transaction of the chain.\n * @format GUID\n */\n transactionId?: string;\n}\n\nexport interface ReserveBenefitRequest {\n /**\n * Id of the pool that is being redeemed from\n * @format GUID\n */\n poolId?: string;\n /** Reference of the item that is being redeemed. */\n itemReference?: ItemReference;\n /**\n * Key of the benefit to be redeemed, associated with a particular benefit.\n *\n * This key must be specified to ensure the correct benefit is redeemed.\n *\n * Default: The first eligible benefit in the benefit pool will be redeemed.\n * @maxLength 64\n */\n benefitKey?: string | null;\n /**\n * Number of items to redeem.\n * @min 1\n */\n count?: number;\n /**\n * Date when the benefit item will be used.\n *\n * While the credit balance is adjusted immediately upon the redemption request, the target date may be set for a later time than the date of the request.\n *\n * Used for the app providing the benefit items to manage the logistics associated with the item.\n */\n targetDate?: Date | null;\n /**\n * Idempotency key\n * @maxLength 200\n */\n idempotencyKey?: string;\n /** Additional info */\n additionalData?: Record<string, any> | null;\n /** Benefit pool owner. */\n beneficiary?: CommonIdentificationData;\n /**\n * Module that is the source of the benefit pool creation.\n *\n * This value must correspond with the previously defined namespace established when creating the associated pool definition.\n *\n * It ensures efficient processing and management of pools and benefits.\n * @minLength 1\n * @maxLength 20\n */\n namespace?: string;\n}\n\nexport interface ReserveBenefitResponse {\n /**\n * Id of the transaction that was created as a result of this request\n * @format GUID\n */\n transactionId?: string;\n}\n\nexport interface CancelBenefitReservationRequest {\n /**\n * Id of the transaction that was created as a result of this request\n * @format GUID\n */\n transactionId?: string;\n}\n\nexport interface CancelBenefitReservationResponse {\n /**\n * Id of the transaction that was created as a result of this request\n * @format GUID\n */\n transactionId?: string;\n}\n\nexport interface ReleaseBenefitReservationRequest {\n /**\n * Id of the transaction that was created as a result of this request\n * @format GUID\n */\n transactionId?: string;\n}\n\nexport interface ReleaseBenefitReservationResponse {\n /**\n * Id of the transaction that was created as a result of this request\n * @format GUID\n */\n transactionId?: string;\n}\n\nexport interface CheckBenefitEligibilityRequest {\n /**\n * ID of the pool that the benefit to check belongs to.\n * @format GUID\n */\n poolId: string;\n /**\n * Key of the benefit to check.\n * @maxLength 64\n */\n benefitKey?: string | null;\n /** Information about the item to check. */\n itemReference: ItemReference;\n /**\n * Amount of items to check.\n *\n * Ensures the balance is high enough to redeem this many items.\n * @min 1\n */\n count?: number;\n /**\n * Date that the item will be provided to the beneficiary.\n *\n * This parameter should be used to manage the potential logistics of providing the item.\n */\n targetDate?: Date | null;\n /** Additional information. */\n additionalData?: Record<string, any> | null;\n /** Beneficiary of the pool containing the benefit to check. */\n beneficiary?: CommonIdentificationData;\n /**\n * Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.\n * @minLength 1\n * @maxLength 20\n */\n namespace: string;\n /**\n * Intent of the eligibility check.\n *\n * If not provided, `REDEMPTION` is used by default.\n * @internal\n */\n intent?: IntentWithLiterals;\n}\n\nexport enum Intent {\n /** Check whether the benefit can be redeemed. */\n REDEMPTION = 'REDEMPTION',\n /**\n * Check whether an already redeemed benefit can be reallocated to the target date.\n * The redeemed credits are kept, so the balance check is skipped.\n */\n REALLOCATION = 'REALLOCATION',\n}\n\n/** @enumType */\nexport type IntentWithLiterals = Intent | 'REDEMPTION' | 'REALLOCATION';\n\nexport interface CheckBenefitEligibilityResponse {\n /** Result of the eligibility check. */\n result?: EligibilityCheckResult;\n}\n\nexport interface EligibilityCheckResult {\n /**\n * Eligibility status.\n * @maxSize 10\n */\n benefitResults?: BenefitResult[];\n}\n\nexport enum BenefitResultType {\n /** Item is eligible to be redeemed. */\n ELIGIBLE_BENEFIT = 'ELIGIBLE_BENEFIT',\n /** Balance is lower than the cost of redeeming the items. */\n NOT_ENOUGH_BALANCE = 'NOT_ENOUGH_BALANCE',\n /**\n * Policy is false.\n * @internal\n */\n POLICY_EXPRESSION_EVALUATED_TO_FALSE = 'POLICY_EXPRESSION_EVALUATED_TO_FALSE',\n /** Pool isn't active. */\n POOL_NOT_ACTIVE = 'POOL_NOT_ACTIVE',\n /** Invalid benefit details provided. */\n BENEFIT_NOT_FOUND = 'BENEFIT_NOT_FOUND',\n /** Invalid pool details provided. */\n POOL_NOT_FOUND = 'POOL_NOT_FOUND',\n}\n\n/** @enumType */\nexport type BenefitResultTypeWithLiterals =\n | BenefitResultType\n | 'ELIGIBLE_BENEFIT'\n | 'NOT_ENOUGH_BALANCE'\n | 'POOL_NOT_ACTIVE'\n | 'BENEFIT_NOT_FOUND'\n | 'POOL_NOT_FOUND';\n\nexport interface EligibleBenefit {\n /**\n * Pool ID.\n * @format GUID\n * @readonly\n */\n poolId?: string;\n /**\n * Benefit key.\n * @maxLength 64\n */\n benefitKey?: string;\n /** Item reference. */\n itemReference?: ItemReference;\n /**\n * Price of the benefit in credits.\n * @decimalValue options { gte:0, maxScale:4 }\n */\n price?: string | null;\n /**\n * Pool information.\n * @internal\n */\n poolInfo?: PoolInfo;\n /**\n * Benefit information.\n * @internal\n */\n benefitInfo?: BenefitInfo;\n /**\n * Program definition information.\n * @internal\n */\n programDefinitionInfo?: ProgramDefinitionInfo;\n /**\n * Program information.\n * @internal\n */\n programInfo?: PoolProgramInfo;\n}\n\nexport interface BenefitResult extends BenefitResultResultOneOf {\n /** Returned when item is eligible to be redeemed. */\n eligibleBenefitOptions?: EligibleBenefit;\n /** Returned when the pool's associated balance is lower than the cost of redeeming the items. */\n notEnoughBalanceOptions?: NotEnoughBalance;\n /** Returned when the policy is false. */\n policyExpressionEvaluatedToFalseOptions?: PolicyExpressionEvaluatedToFalse;\n /** Returned when the pool isn't active. */\n poolNotActiveOptions?: PoolNotActive;\n /** Returned when invalid benefit details are provided. */\n benefitNotFoundOptions?: BenefitNotFound;\n /** Returned when invalid pool details are provided. */\n poolNotFoundOptions?: PoolNotFound;\n /** Eligibility status. */\n type?: BenefitResultTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface BenefitResultResultOneOf {\n /** Returned when item is eligible to be redeemed. */\n eligibleBenefitOptions?: EligibleBenefit;\n /** Returned when the pool's associated balance is lower than the cost of redeeming the items. */\n notEnoughBalanceOptions?: NotEnoughBalance;\n /** Returned when the policy is false. */\n policyExpressionEvaluatedToFalseOptions?: PolicyExpressionEvaluatedToFalse;\n /** Returned when the pool isn't active. */\n poolNotActiveOptions?: PoolNotActive;\n /** Returned when invalid benefit details are provided. */\n benefitNotFoundOptions?: BenefitNotFound;\n /** Returned when invalid pool details are provided. */\n poolNotFoundOptions?: PoolNotFound;\n}\n\nexport interface BulkCheckBenefitEligibilityRequest {\n /**\n * List of benefits to check.\n * @minSize 1\n * @maxSize 100\n */\n benefitSelectors?: BenefitSelector[];\n /**\n * Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.\n * @minLength 1\n * @maxLength 20\n */\n namespace: string;\n /** Pool beneficiary. */\n beneficiary?: CommonIdentificationData;\n}\n\nexport interface BenefitSelector {\n /**\n * ID of the pool that the benefit to check belongs to.\n * @format GUID\n */\n poolId?: string;\n /**\n * Key of the benefit to check.\n * @maxLength 64\n */\n benefitKey?: string | null;\n /** Information about the item to check. */\n itemReference?: ItemReference;\n /**\n * Amount of items to check.\n *\n * Ensures the balance is high enough to redeem this many items.\n * @min 1\n */\n count?: number;\n /**\n * Date that the item will be provided to the beneficiary.\n *\n * This parameter should be used to manage the potential logistics of providing the item.\n */\n targetDate?: Date | null;\n /** Additional information. */\n additionalData?: Record<string, any> | null;\n}\n\nexport interface BulkCheckBenefitEligibilityResponse {\n /**\n * List of results checking each benefit.\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkEligibilityCheckResult[];\n}\n\nexport interface BulkEligibilityCheckResult {\n /** Benefit information specified in API call. */\n benefitSelector?: BenefitSelector;\n /** Result of the eligibility check. */\n result?: EligibilityCheckResult;\n}\n\nexport interface GetEligibleBenefitsRequest {\n /** Item reference. */\n itemReference: ItemReference;\n /**\n * Amount of items to check. This ensures the balance is high enough to redeem this many items.\n * @min 1\n */\n count?: number;\n /**\n * Date that the item will be provided to the beneficiary.\n *\n * This parameter should be used to manage the potential logistics of providing the item.\n */\n targetDate?: Date | null;\n /** Additional information. */\n additionalData?: Record<string, any> | null;\n /** Filter request by beneficiary. */\n beneficiary?: CommonIdentificationData;\n /**\n * Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.\n * @minLength 1\n * @maxLength 20\n */\n namespace: string;\n}\n\nexport interface GetEligibleBenefitsResponse {\n /** Retrieved benefits that can be redeemed. */\n eligibleBenefits?: EligibleBenefit[];\n}\n\nexport interface BulkUpdatePoolsRequest {\n /**\n * Pools to update.\n * @minSize 1\n * @maxSize 100\n */\n pools?: MaskedPool[];\n /**\n * Whether to return the full pool definition entities.\n *\n * Default: `false`\n */\n returnEntity?: boolean;\n}\n\nexport interface MaskedPool {\n /** Pool to update. */\n pool?: Pool;\n /** Explicit list of fields to update. */\n fieldMask?: string[];\n}\n\nexport interface BulkUpdatePoolsResponse {\n /**\n * List of updated pools and associated metadata.\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkPoolResult[];\n /** Bulk action metadata. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkPoolResult {\n /** Item metadata. */\n itemMetadata?: ItemMetadata;\n /** Pool data. */\n item?: Pool;\n}\n\nexport interface ItemMetadata {\n /**\n * Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).\n * @format GUID\n */\n id?: string | null;\n /** Index of the item within the request array. Allows for correlation between request and response items. */\n originalIndex?: number;\n /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */\n success?: boolean;\n /** Details about the error in case of failure. */\n error?: ApplicationError;\n}\n\nexport interface ApplicationError {\n /** Error code. */\n code?: string;\n /** Description of the error. */\n description?: string;\n /** Data related to the error. */\n data?: Record<string, any> | null;\n}\n\nexport interface BulkActionMetadata {\n /** Number of items that were successfully processed. */\n totalSuccesses?: number;\n /** Number of items that couldn't be processed. */\n totalFailures?: number;\n /** Number of failures without details because detailed failure threshold was exceeded. */\n undetailedFailures?: number;\n}\n\nexport interface ProvisionPoolsForProgramRequest {\n /** Reference of the template that is used to provision the pools */\n poolDefinitionLookupId?: PoolDefinitionLookupId;\n /**\n * Program that the provisioned pools are part of\n * @format GUID\n */\n programId?: string;\n}\n\nexport interface PoolDefinitionLookupId extends PoolDefinitionLookupIdIdOneOf {\n /**\n * Pool definition ID.\n * @format GUID\n */\n poolDefinitionId?: string;\n /**\n * Program definition ID.\n * @format GUID\n */\n programDefinitionId?: string;\n}\n\n/** @oneof */\nexport interface PoolDefinitionLookupIdIdOneOf {\n /**\n * Pool definition ID.\n * @format GUID\n */\n poolDefinitionId?: string;\n /**\n * Program definition ID.\n * @format GUID\n */\n programDefinitionId?: string;\n}\n\nexport interface ProvisionPoolsForProgramResponse\n extends ProvisionPoolsForProgramResponseResultOneOf {\n /** Sync result */\n syncOptions?: SyncResult;\n /** Async result */\n asyncOptions?: AsyncResult;\n /**\n * Job ID of the program provision associated with this pool. Retrieve job details using the [Async Job API](https://dev.wix.com/docs/rest/business-management/async-job/introduction).\n * @format GUID\n */\n jobId?: string;\n /** Type of the result */\n type?: ProvisionPoolsForProgramResponseTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface ProvisionPoolsForProgramResponseResultOneOf {\n /** Sync result */\n syncOptions?: SyncResult;\n /** Async result */\n asyncOptions?: AsyncResult;\n}\n\nexport enum ProvisionPoolsForProgramResponseType {\n /** Sync result */\n SYNC = 'SYNC',\n /** Async result */\n ASYNC = 'ASYNC',\n}\n\n/** @enumType */\nexport type ProvisionPoolsForProgramResponseTypeWithLiterals =\n | ProvisionPoolsForProgramResponseType\n | 'SYNC'\n | 'ASYNC';\n\nexport interface SyncResult {\n /** Indicates if the operation was successful */\n success?: boolean;\n}\n\nexport interface AsyncResult {\n /**\n * Job ID of the program provision associated with this pool. Retrieve job details using the [Async Job API](https://dev.wix.com/docs/rest/business-management/async-job/introduction).\n * @format GUID\n */\n jobId?: string;\n}\n\nexport interface InvalidPoolDefinitionReference {\n /** Reference of the template that didn't find any pool definitions */\n poolDefinitionLookupId?: PoolDefinitionLookupId;\n}\n\nexport interface RenewPoolsForProgramRequest {\n /**\n * Package of pools to grant. Package id should be the same that was used to provision programs.\n * @format GUID\n */\n programId?: string;\n}\n\nexport interface RenewPoolsForProgramResponse {\n /**\n * Job id of the renewal job\n * @format GUID\n */\n jobId?: string;\n}\n\nexport interface UpdatePoolStatusRequest\n extends UpdatePoolStatusRequestPoolSelectorOneOf {\n /** Pool selector by pool definition id and program definition id */\n byPoolDefinitionIdAndProgramDefinitionIdOptions?: ByPoolDefinitionIdAndProgramDefinitionIdOptions;\n /** Pool selector by program id */\n byProgramIdOptions?: ByProgramIdOptions;\n /** New pool status */\n status?: PoolStatusWithLiterals;\n /** Pool selector type */\n poolSelectorType?: PoolSelectorTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface UpdatePoolStatusRequestPoolSelectorOneOf {\n /** Pool selector by pool definition id and program definition id */\n byPoolDefinitionIdAndProgramDefinitionIdOptions?: ByPoolDefinitionIdAndProgramDefinitionIdOptions;\n /** Pool selector by program id */\n byProgramIdOptions?: ByProgramIdOptions;\n}\n\nexport enum PoolSelectorType {\n BY_POOL_DEFINITION_ID_AND_PROGRAM_DEFINITION_ID = 'BY_POOL_DEFINITION_ID_AND_PROGRAM_DEFINITION_ID',\n BY_PROGRAM_ID = 'BY_PROGRAM_ID',\n}\n\n/** @enumType */\nexport type PoolSelectorTypeWithLiterals =\n | PoolSelectorType\n | 'BY_POOL_DEFINITION_ID_AND_PROGRAM_DEFINITION_ID'\n | 'BY_PROGRAM_ID';\n\nexport interface ByPoolDefinitionIdAndProgramDefinitionIdOptions {\n /**\n * Pool definition id\n * @format GUID\n */\n poolDefinitionId?: string;\n /**\n * Program definition id\n * @format GUID\n */\n programDefinitionId?: string | null;\n}\n\nexport interface ByProgramIdOptions {\n /**\n * Program id\n * @format GUID\n */\n programId?: string;\n /** Additional data that gets added to the event once the async job completes */\n additionalData?: Record<string, any> | null;\n}\n\nexport interface UpdatePoolStatusResponse {\n /**\n * Job ID of the program provision associated with this pool. Retrieve job details using the [Async Job API](https://dev.wix.com/docs/rest/business-management/async-job/introduction).\n * @format GUID\n */\n jobId?: string;\n}\n\nexport interface CountNumberOfPoolsInProvisioningStatusRequest {\n /**\n * Program id\n * @format GUID\n */\n programId?: string;\n}\n\nexport interface CountNumberOfPoolsInProvisioningStatusResponse {\n /** Number of pools in provisioning status */\n count?: number;\n}\n\nexport interface CheckBenefitEligibilityByFilterRequest {\n /**\n * Defines filtering and sorting criteria used to select pools when checking eligibility.\n *\n * The filter selects pools using the same fields supported by Query Pools. For field support, see [Filtering and Sorting](https://dev.wix.com/docs/rest/business-solutions/benefit-programs/pools/filtering-and-sorting).\n *\n * When omitted, eligibility is checked across all pools in the namespace that match the provided `beneficiary`. Combined with `beneficiary` and `namespace`, the filter further narrows which pools are checked.\n *\n * Deprecated: use `pool_selector` instead. Can't be combined with `pool_selector`.\n * @deprecated Defines filtering and sorting criteria used to select pools when checking eligibility.\n *\n * The filter selects pools using the same fields supported by Query Pools. For field support, see [Filtering and Sorting](https://dev.wix.com/docs/rest/business-solutions/benefit-programs/pools/filtering-and-sorting).\n *\n * When omitted, eligibility is checked across all pools in the namespace that match the provided `beneficiary`. Combined with `beneficiary` and `namespace`, the filter further narrows which pools are checked.\n *\n * Deprecated: use `pool_selector` instead. Can't be combined with `pool_selector`.\n * @targetRemovalDate 2026-08-01\n */\n poolFilter?: PoolFilter;\n /**\n * Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.\n * @minLength 1\n * @maxLength 20\n */\n namespace: string;\n /** Information about the item to check. */\n itemReference: ItemReference;\n /**\n * Number of items to check.\n *\n * Ensures the balance is high enough to redeem this many items.\n * @min 1\n */\n count: number;\n /**\n * Date that the item will be provided to the beneficiary.\n *\n * This parameter should be used to manage the potential logistics of providing the item.\n */\n targetDate?: Date | null;\n /** Pool beneficiary. When provided, only the beneficiary's pools that also match `pool_filter` are checked. */\n beneficiary?: CommonIdentificationData;\n /** Additional information. */\n additionalData?: Record<string, any> | null;\n /**\n * Predefined attributes used to select the pools to check eligibility in.\n *\n * When omitted, eligibility is checked across all pools in the namespace that match the provided `beneficiary`. Combined with `beneficiary` and `namespace`, the selector further narrows which pools are checked.\n *\n * Can't be combined with `pool_filter`.\n */\n poolSelector?: PoolSelector;\n}\n\nexport interface PoolFilter {\n /**\n * Filter object. See [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language) for more information.\n *\n * For supported filterable and sortable fields, see [Filtering and Sorting](https://dev.wix.com/docs/rest/business-solutions/benefit-programs/pools/filtering-and-sorting).\n */\n filter?: Record<string, any> | null;\n /**\n * Sorting to apply to the matched pools. Determines the order of the returned results, and which results are kept when more than 100 are produced.\n * @maxSize 5\n */\n sort?: Sorting[];\n}\n\n/**\n * Predefined pool-selection attributes used to select the pools to check eligibility in.\n *\n * All provided attributes must match for a pool to be selected, while the values within each attribute are alternatives.\n * An empty selector selects all pools in the namespace that match the provided `beneficiary`.\n */\nexport interface PoolSelector {\n /**\n * Only pools in these statuses are checked. When empty, pools in all statuses are checked.\n * @maxSize 10\n */\n poolStatuses?: PoolStatusWithLiterals[];\n}\n\nexport interface CheckBenefitEligibilityByFilterResponse {\n /**\n * Results of the eligibility check for the benefits in the pools that matched the filter. A pool that contains multiple benefits for the requested item produces one result per benefit.\n *\n * Empty when no pools match the filter. Capped at 100 results. When more than 100 results are produced, only the first 100, in the order specified by `poolFilter.sort`, are returned.\n * @maxSize 100\n */\n results?: EligibilityCheckResult[];\n}\n\nexport interface HealPoolRequest {\n /**\n * ID of the pool whose enrichments should be re-materialized.\n * @format GUID\n */\n poolId?: string;\n}\n\nexport interface HealPoolResponse {}\n\nexport interface HealPoolTenantRequest {}\n\nexport interface HealPoolTenantResponse {}\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 entityAsJson?: string;\n /**\n * Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity\n * @internal\n */\n triggeredByUndelete?: boolean | null;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\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 currentEntityAsJson?: string;\n /**\n * This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard\n * wont populate it / have any reference to it in the API.\n * The main reason for it is that fetching the old entity from the DB will have a performance hit on an update operation so unless truly needed,\n * the developer should send only the new (current) entity.\n * An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big\n * Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.\n * @internal\n * @deprecated\n */\n previousEntityAsJson?: string | null;\n /**\n * Map of fully qualified field paths to their previous values for fields that changed.\n * For more details please see [AIP](https://dev.wix.com/docs/rnd-general/articles/p13n-guidelines-aips/guidance-aips/design-patterns/7016-events#modified-fields-format)\n * @internal\n */\n modifiedFields?: Record<string, any>;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\n}\n\nexport interface EntityDeletedEvent {\n /**\n * Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled\n * @internal\n */\n movedToTrash?: boolean | null;\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: 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 /** Details related to the account */\n accountInfo?: AccountInfo;\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 AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n\n/** @docsIgnore */\nexport type RedeemBenefitApplicationErrors =\n | {\n code?: 'NOT_ENOUGH_BALANCE';\n description?: string;\n data?: NotEnoughBalance;\n }\n | {\n code?: 'POLICY_EXPRESSION_EVALUATED_TO_FALSE';\n description?: string;\n data?: PolicyExpressionEvaluatedToFalse;\n }\n | {\n code?: 'POOL_NOT_ACTIVE';\n description?: string;\n data?: PoolNotActive;\n }\n | {\n code?: 'POOL_NOT_FOUND';\n description?: string;\n data?: PoolNotFound;\n }\n | {\n code?: 'BENEFIT_ALREADY_REDEEMED';\n description?: string;\n data?: BenefitAlreadyRedeemed;\n }\n | {\n code?: 'BENEFIT_NOT_FOUND';\n description?: string;\n data?: BenefitNotFound;\n };\n/** @docsIgnore */\nexport type ReallocateBenefitApplicationErrors =\n | {\n code?: 'TRANSACTION_NOT_FOUND';\n description?: string;\n data?: TransactionNotFound;\n }\n | {\n code?: 'POOL_NOT_FOUND';\n description?: string;\n data?: PoolNotFound;\n }\n | {\n code?: 'NOT_LATEST_TRANSACTION';\n description?: string;\n data?: NotLatestTransaction;\n }\n | {\n code?: 'REDEMPTION_ALREADY_CANCELED';\n description?: string;\n data?: RedemptionAlreadyCanceled;\n }\n | {\n code?: 'TRANSACTION_NOT_REALLOCATABLE';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'POOL_NOT_ACTIVE';\n description?: string;\n data?: PoolNotActive;\n }\n | {\n code?: 'POLICY_EXPRESSION_EVALUATED_TO_FALSE';\n description?: string;\n data?: PolicyExpressionEvaluatedToFalse;\n }\n | {\n code?: 'CHAIN_OPERATION_IN_PROGRESS';\n description?: string;\n data?: ChainOperationInProgress;\n }\n | {\n code?: 'ALREADY_EXECUTED';\n description?: string;\n data?: AlreadyExecuted;\n };\n/** @docsIgnore */\nexport type CancelRedemptionApplicationErrors =\n | {\n code?: 'TRANSACTION_NOT_FOUND';\n description?: string;\n data?: TransactionNotFound;\n }\n | {\n code?: 'NOT_LATEST_TRANSACTION';\n description?: string;\n data?: NotLatestTransaction;\n }\n | {\n code?: 'REDEMPTION_ALREADY_CANCELED';\n description?: string;\n data?: RedemptionAlreadyCanceled;\n }\n | {\n code?: 'TRANSACTION_NOT_CANCELABLE';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'CHAIN_OPERATION_IN_PROGRESS';\n description?: string;\n data?: ChainOperationInProgress;\n }\n | {\n code?: 'ALREADY_EXECUTED';\n description?: string;\n data?: AlreadyExecuted;\n };\n/** @docsIgnore */\nexport type GetEligibleBenefitsApplicationErrors = {\n code?: 'INVALID_ITEM_REFERENCE';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type CheckBenefitEligibilityByFilterApplicationErrors =\n | {\n code?: 'INVALID_ITEM_REFERENCE';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'POOL_FILTER_AND_POOL_SELECTOR_PROVIDED';\n description?: string;\n data?: Record<string, any>;\n };\n","import * as ambassadorWixBenefitProgramsV1Pool from './benefit-programs-v1-pool-pools.http.js';\nimport * as ambassadorWixBenefitProgramsV1PoolTypes from './benefit-programs-v1-pool-pools.types.js';\nimport * as ambassadorWixBenefitProgramsV1PoolUniversalTypes from './benefit-programs-v1-pool-pools.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function getPool(): __PublicMethodMetaInfo<\n 'GET',\n { poolId: string },\n ambassadorWixBenefitProgramsV1PoolUniversalTypes.GetPoolRequest,\n ambassadorWixBenefitProgramsV1PoolTypes.GetPoolRequest,\n ambassadorWixBenefitProgramsV1PoolUniversalTypes.GetPoolResponse,\n ambassadorWixBenefitProgramsV1PoolTypes.GetPoolResponse\n> {\n const payload = { poolId: ':poolId' } as any;\n\n const getRequestOptions = ambassadorWixBenefitProgramsV1Pool.getPool(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/pools/{poolId}',\n pathParams: { poolId: 'poolId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updatePool(): __PublicMethodMetaInfo<\n 'PATCH',\n { poolId: string },\n ambassadorWixBenefitProgramsV1PoolUniversalTypes.UpdatePoolRequest,\n ambassadorWixBenefitProgramsV1PoolTypes.UpdatePoolRequest,\n ambassadorWixBenefitProgramsV1PoolUniversalTypes.UpdatePoolResponse,\n ambassadorWixBenefitProgramsV1PoolTypes.UpdatePoolResponse\n> {\n const payload = { pool: { id: ':poolId' } } as any;\n\n const getRequestOptions =\n ambassadorWixBenefitProgramsV1Pool.updatePool(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v1/pools/{pool.id}',\n pathParams: { poolId: 'poolId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function queryPools(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBenefitProgramsV1PoolUniversalTypes.QueryPoolsRequest,\n ambassadorWixBenefitProgramsV1PoolTypes.QueryPoolsRequest,\n ambassadorWixBenefitProgramsV1PoolUniversalTypes.QueryPoolsResponse,\n ambassadorWixBenefitProgramsV1PoolTypes.QueryPoolsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBenefitProgramsV1Pool.queryPools(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/pools/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function redeemBenefit(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBenefitProgramsV1PoolUniversalTypes.RedeemBenefitRequest,\n ambassadorWixBenefitProgramsV1PoolTypes.RedeemBenefitRequest,\n ambassadorWixBenefitProgramsV1PoolUniversalTypes.RedeemBenefitResponse,\n ambassadorWixBenefitProgramsV1PoolTypes.RedeemBenefitResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBenefitProgramsV1Pool.redeemBenefit(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/benefits/redeem',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function reallocateBenefit(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBenefitProgramsV1PoolUniversalTypes.ReallocateBenefitRequest,\n ambassadorWixBenefitProgramsV1PoolTypes.ReallocateBenefitRequest,\n ambassadorWixBenefitProgramsV1PoolUniversalTypes.ReallocateBenefitResponse,\n ambassadorWixBenefitProgramsV1PoolTypes.ReallocateBenefitResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBenefitProgramsV1Pool.reallocateBenefit(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/benefits/reallocate',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function cancelRedemption(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBenefitProgramsV1PoolUniversalTypes.CancelRedemptionRequest,\n ambassadorWixBenefitProgramsV1PoolTypes.CancelRedemptionRequest,\n ambassadorWixBenefitProgramsV1PoolUniversalTypes.CancelRedemptionResponse,\n ambassadorWixBenefitProgramsV1PoolTypes.CancelRedemptionResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBenefitProgramsV1Pool.cancelRedemption(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/benefits/cancel-redemption',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function checkBenefitEligibility(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBenefitProgramsV1PoolUniversalTypes.CheckBenefitEligibilityRequest,\n ambassadorWixBenefitProgramsV1PoolTypes.CheckBenefitEligibilityRequest,\n ambassadorWixBenefitProgramsV1PoolUniversalTypes.CheckBenefitEligibilityResponse,\n ambassadorWixBenefitProgramsV1PoolTypes.CheckBenefitEligibilityResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBenefitProgramsV1Pool.checkBenefitEligibility(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/pools/check-eligibility',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkCheckBenefitEligibility(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBenefitProgramsV1PoolUniversalTypes.BulkCheckBenefitEligibilityRequest,\n ambassadorWixBenefitProgramsV1PoolTypes.BulkCheckBenefitEligibilityRequest,\n ambassadorWixBenefitProgramsV1PoolUniversalTypes.BulkCheckBenefitEligibilityResponse,\n ambassadorWixBenefitProgramsV1PoolTypes.BulkCheckBenefitEligibilityResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBenefitProgramsV1Pool.bulkCheckBenefitEligibility(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/bulk/benefits/check-eligibility',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getEligibleBenefits(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBenefitProgramsV1PoolUniversalTypes.GetEligibleBenefitsRequest,\n ambassadorWixBenefitProgramsV1PoolTypes.GetEligibleBenefitsRequest,\n ambassadorWixBenefitProgramsV1PoolUniversalTypes.GetEligibleBenefitsResponse,\n ambassadorWixBenefitProgramsV1PoolTypes.GetEligibleBenefitsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBenefitProgramsV1Pool.getEligibleBenefits(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/pools/eligible-pools',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkUpdatePools(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBenefitProgramsV1PoolUniversalTypes.BulkUpdatePoolsRequest,\n ambassadorWixBenefitProgramsV1PoolTypes.BulkUpdatePoolsRequest,\n ambassadorWixBenefitProgramsV1PoolUniversalTypes.BulkUpdatePoolsResponse,\n ambassadorWixBenefitProgramsV1PoolTypes.BulkUpdatePoolsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBenefitProgramsV1Pool.bulkUpdatePools(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/bulk/pools',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function checkBenefitEligibilityByFilter(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBenefitProgramsV1PoolUniversalTypes.CheckBenefitEligibilityByFilterRequest,\n ambassadorWixBenefitProgramsV1PoolTypes.CheckBenefitEligibilityByFilterRequest,\n ambassadorWixBenefitProgramsV1PoolUniversalTypes.CheckBenefitEligibilityByFilterResponse,\n ambassadorWixBenefitProgramsV1PoolTypes.CheckBenefitEligibilityByFilterResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBenefitProgramsV1Pool.checkBenefitEligibilityByFilter(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/pools/check-benefit-eligibility-by-filter',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n Pool as PoolOriginal,\n PoolStatus as PoolStatusOriginal,\n PoolStatusWithLiterals as PoolStatusWithLiteralsOriginal,\n CommonIdentificationData as CommonIdentificationDataOriginal,\n CommonIdentificationDataIdOneOf as CommonIdentificationDataIdOneOfOriginal,\n IdentityType as IdentityTypeOriginal,\n IdentityTypeWithLiterals as IdentityTypeWithLiteralsOriginal,\n Details as DetailsOriginal,\n Benefit as BenefitOriginal,\n PolicyExpression as PolicyExpressionOriginal,\n PolicyExpressionExpressionOneOf as PolicyExpressionExpressionOneOfOriginal,\n PolicyExpressionType as PolicyExpressionTypeOriginal,\n PolicyExpressionTypeWithLiterals as PolicyExpressionTypeWithLiteralsOriginal,\n PolicyExpressionNot as PolicyExpressionNotOriginal,\n PolicyExpressionAnd as PolicyExpressionAndOriginal,\n PolicyExpressionOr as PolicyExpressionOrOriginal,\n Policy as PolicyOriginal,\n PolicyPolicyOneOf as PolicyPolicyOneOfOriginal,\n Type as TypeOriginal,\n TypeWithLiterals as TypeWithLiteralsOriginal,\n FixedIntervalPolicy as FixedIntervalPolicyOriginal,\n WeekDay as WeekDayOriginal,\n WeekDayWithLiterals as WeekDayWithLiteralsOriginal,\n RateLimitedPolicy as RateLimitedPolicyOriginal,\n TimePeriod as TimePeriodOriginal,\n TimePeriodWithLiterals as TimePeriodWithLiteralsOriginal,\n CustomPolicy as CustomPolicyOriginal,\n CreditConfiguration as CreditConfigurationOriginal,\n RolloverConfiguration as RolloverConfigurationOriginal,\n ExtendedFields as ExtendedFieldsOriginal,\n ProgramDefinitionInfo as ProgramDefinitionInfoOriginal,\n PoolProgramInfo as PoolProgramInfoOriginal,\n PoolOrigin as PoolOriginOriginal,\n PoolOriginWithLiterals as PoolOriginWithLiteralsOriginal,\n PoolRenewalAction as PoolRenewalActionOriginal,\n PoolRenewalActionActionOneOf as PoolRenewalActionActionOneOfOriginal,\n PoolRenewalActionType as PoolRenewalActionTypeOriginal,\n PoolRenewalActionTypeWithLiterals as PoolRenewalActionTypeWithLiteralsOriginal,\n Update as UpdateOriginal,\n PoolProvisioned as PoolProvisionedOriginal,\n PoolRenewed as PoolRenewedOriginal,\n BenefitRedeemed as BenefitRedeemedOriginal,\n RedemptionDetails as RedemptionDetailsOriginal,\n ItemReference as ItemReferenceOriginal,\n BenefitReallocated as BenefitReallocatedOriginal,\n ReallocationDetails as ReallocationDetailsOriginal,\n RedemptionCanceled as RedemptionCanceledOriginal,\n CancellationDetails as CancellationDetailsOriginal,\n PoolPaused as PoolPausedOriginal,\n PoolResumed as PoolResumedOriginal,\n PoolEnded as PoolEndedOriginal,\n BenefitReserved as BenefitReservedOriginal,\n BenefitReservationCanceled as BenefitReservationCanceledOriginal,\n BenefitReservationReleased as BenefitReservationReleasedOriginal,\n PoolProvisionJobFinished as PoolProvisionJobFinishedOriginal,\n PoolStatusUpdateJobFinished as PoolStatusUpdateJobFinishedOriginal,\n PoolStatusUpdateJobFinishedContextOneOf as PoolStatusUpdateJobFinishedContextOneOfOriginal,\n PoolDefinitionAndProgramDefinition as PoolDefinitionAndProgramDefinitionOriginal,\n ProgramInfo as ProgramInfoOriginal,\n PoolStatusUpdateParamsPoolInfo as PoolStatusUpdateParamsPoolInfoOriginal,\n CreatePoolRequest as CreatePoolRequestOriginal,\n CreatePoolResponse as CreatePoolResponseOriginal,\n GetPoolRequest as GetPoolRequestOriginal,\n GetPoolResponse as GetPoolResponseOriginal,\n UpdatePoolRequest as UpdatePoolRequestOriginal,\n UpdatePoolResponse as UpdatePoolResponseOriginal,\n DeletePoolRequest as DeletePoolRequestOriginal,\n DeletePoolResponse as DeletePoolResponseOriginal,\n QueryPoolsRequest as QueryPoolsRequestOriginal,\n CursorQuery as CursorQueryOriginal,\n CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal,\n Sorting as SortingOriginal,\n SortOrder as SortOrderOriginal,\n SortOrderWithLiterals as SortOrderWithLiteralsOriginal,\n CursorPaging as CursorPagingOriginal,\n QueryPoolsResponse as QueryPoolsResponseOriginal,\n CursorPagingMetadata as CursorPagingMetadataOriginal,\n Cursors as CursorsOriginal,\n RedeemBenefitRequest as RedeemBenefitRequestOriginal,\n RedeemBenefitResponse as RedeemBenefitResponseOriginal,\n NotEnoughBalance as NotEnoughBalanceOriginal,\n PoolInfo as PoolInfoOriginal,\n BalanceAmount as BalanceAmountOriginal,\n BenefitInfo as BenefitInfoOriginal,\n PolicyExpressionEvaluatedToFalse as PolicyExpressionEvaluatedToFalseOriginal,\n FailureDetails as FailureDetailsOriginal,\n PoolNotActive as PoolNotActiveOriginal,\n PoolNotFound as PoolNotFoundOriginal,\n BenefitAlreadyRedeemed as BenefitAlreadyRedeemedOriginal,\n BenefitNotFound as BenefitNotFoundOriginal,\n ReallocateBenefitRequest as ReallocateBenefitRequestOriginal,\n ReallocateBenefitResponse as ReallocateBenefitResponseOriginal,\n TransactionNotFound as TransactionNotFoundOriginal,\n NotLatestTransaction as NotLatestTransactionOriginal,\n RedemptionAlreadyCanceled as RedemptionAlreadyCanceledOriginal,\n ChainOperationInProgress as ChainOperationInProgressOriginal,\n AlreadyExecuted as AlreadyExecutedOriginal,\n CancelRedemptionRequest as CancelRedemptionRequestOriginal,\n CancelRedemptionResponse as CancelRedemptionResponseOriginal,\n ReserveBenefitRequest as ReserveBenefitRequestOriginal,\n ReserveBenefitResponse as ReserveBenefitResponseOriginal,\n CancelBenefitReservationRequest as CancelBenefitReservationRequestOriginal,\n CancelBenefitReservationResponse as CancelBenefitReservationResponseOriginal,\n ReleaseBenefitReservationRequest as ReleaseBenefitReservationRequestOriginal,\n ReleaseBenefitReservationResponse as ReleaseBenefitReservationResponseOriginal,\n CheckBenefitEligibilityRequest as CheckBenefitEligibilityRequestOriginal,\n Intent as IntentOriginal,\n IntentWithLiterals as IntentWithLiteralsOriginal,\n CheckBenefitEligibilityResponse as CheckBenefitEligibilityResponseOriginal,\n EligibilityCheckResult as EligibilityCheckResultOriginal,\n BenefitResultType as BenefitResultTypeOriginal,\n BenefitResultTypeWithLiterals as BenefitResultTypeWithLiteralsOriginal,\n EligibleBenefit as EligibleBenefitOriginal,\n BenefitResult as BenefitResultOriginal,\n BenefitResultResultOneOf as BenefitResultResultOneOfOriginal,\n BulkCheckBenefitEligibilityRequest as BulkCheckBenefitEligibilityRequestOriginal,\n BenefitSelector as BenefitSelectorOriginal,\n BulkCheckBenefitEligibilityResponse as BulkCheckBenefitEligibilityResponseOriginal,\n BulkEligibilityCheckResult as BulkEligibilityCheckResultOriginal,\n GetEligibleBenefitsRequest as GetEligibleBenefitsRequestOriginal,\n GetEligibleBenefitsResponse as GetEligibleBenefitsResponseOriginal,\n BulkUpdatePoolsRequest as BulkUpdatePoolsRequestOriginal,\n MaskedPool as MaskedPoolOriginal,\n BulkUpdatePoolsResponse as BulkUpdatePoolsResponseOriginal,\n BulkPoolResult as BulkPoolResultOriginal,\n ItemMetadata as ItemMetadataOriginal,\n ApplicationError as ApplicationErrorOriginal,\n BulkActionMetadata as BulkActionMetadataOriginal,\n ProvisionPoolsForProgramRequest as ProvisionPoolsForProgramRequestOriginal,\n PoolDefinitionLookupId as PoolDefinitionLookupIdOriginal,\n PoolDefinitionLookupIdIdOneOf as PoolDefinitionLookupIdIdOneOfOriginal,\n ProvisionPoolsForProgramResponse as ProvisionPoolsForProgramResponseOriginal,\n ProvisionPoolsForProgramResponseResultOneOf as ProvisionPoolsForProgramResponseResultOneOfOriginal,\n ProvisionPoolsForProgramResponseType as ProvisionPoolsForProgramResponseTypeOriginal,\n ProvisionPoolsForProgramResponseTypeWithLiterals as ProvisionPoolsForProgramResponseTypeWithLiteralsOriginal,\n SyncResult as SyncResultOriginal,\n AsyncResult as AsyncResultOriginal,\n InvalidPoolDefinitionReference as InvalidPoolDefinitionReferenceOriginal,\n RenewPoolsForProgramRequest as RenewPoolsForProgramRequestOriginal,\n RenewPoolsForProgramResponse as RenewPoolsForProgramResponseOriginal,\n UpdatePoolStatusRequest as UpdatePoolStatusRequestOriginal,\n UpdatePoolStatusRequestPoolSelectorOneOf as UpdatePoolStatusRequestPoolSelectorOneOfOriginal,\n PoolSelectorType as PoolSelectorTypeOriginal,\n PoolSelectorTypeWithLiterals as PoolSelectorTypeWithLiteralsOriginal,\n ByPoolDefinitionIdAndProgramDefinitionIdOptions as ByPoolDefinitionIdAndProgramDefinitionIdOptionsOriginal,\n ByProgramIdOptions as ByProgramIdOptionsOriginal,\n UpdatePoolStatusResponse as UpdatePoolStatusResponseOriginal,\n CountNumberOfPoolsInProvisioningStatusRequest as CountNumberOfPoolsInProvisioningStatusRequestOriginal,\n CountNumberOfPoolsInProvisioningStatusResponse as CountNumberOfPoolsInProvisioningStatusResponseOriginal,\n CheckBenefitEligibilityByFilterRequest as CheckBenefitEligibilityByFilterRequestOriginal,\n PoolFilter as PoolFilterOriginal,\n PoolSelector as PoolSelectorOriginal,\n CheckBenefitEligibilityByFilterResponse as CheckBenefitEligibilityByFilterResponseOriginal,\n HealPoolRequest as HealPoolRequestOriginal,\n HealPoolResponse as HealPoolResponseOriginal,\n HealPoolTenantRequest as HealPoolTenantRequestOriginal,\n HealPoolTenantResponse as HealPoolTenantResponseOriginal,\n DomainEvent as DomainEventOriginal,\n DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n EntityCreatedEvent as EntityCreatedEventOriginal,\n RestoreInfo as RestoreInfoOriginal,\n EntityUpdatedEvent as EntityUpdatedEventOriginal,\n EntityDeletedEvent as EntityDeletedEventOriginal,\n ActionEvent as ActionEventOriginal,\n MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n AccountInfo as AccountInfoOriginal,\n RedeemBenefitApplicationErrors as RedeemBenefitApplicationErrorsOriginal,\n ReallocateBenefitApplicationErrors as ReallocateBenefitApplicationErrorsOriginal,\n CancelRedemptionApplicationErrors as CancelRedemptionApplicationErrorsOriginal,\n GetEligibleBenefitsApplicationErrors as GetEligibleBenefitsApplicationErrorsOriginal,\n CheckBenefitEligibilityByFilterApplicationErrors as CheckBenefitEligibilityByFilterApplicationErrorsOriginal,\n} from './benefit-programs-v1-pool-pools.types.js';\n"],"mappings":";AAAA,SAAS,yBAAyB;AAClC,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,8CACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,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,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAA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AA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["payload","PoolStatus","IdentityType","PolicyExpressionType","Type","WeekDay","TimePeriod","PoolOrigin","PoolRenewalActionType","SortOrder","Intent","BenefitResultType","ProvisionPoolsForProgramResponseType","PoolSelectorType","WebhookIdentityType","getPool","updatePool","queryPools","redeemBenefit","reallocateBenefit","cancelRedemption","checkBenefitEligibility","bulkCheckBenefitEligibility","getEligibleBenefits","bulkUpdatePools","checkBenefitEligibilityByFilter"]}