@wix/auto_sdk_benefit-programs_pools 1.0.25 → 1.0.26

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.
@@ -1,3 +1,5 @@
1
+ import { NonNullablePaths } from '@wix/sdk-types';
2
+
1
3
  interface Pool {
2
4
  /**
3
5
  * Pool ID.
@@ -161,6 +163,8 @@ declare enum IdentityType {
161
163
  /** A Wix account holder, such as a site owner or contributor. */
162
164
  WIX_USER = "WIX_USER"
163
165
  }
166
+ /** @enumType */
167
+ type IdentityTypeWithLiterals = IdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER';
164
168
  interface Details {
165
169
  /**
166
170
  * List of benefits.
@@ -1592,6 +1596,68 @@ declare enum WebhookIdentityType {
1592
1596
  }
1593
1597
  /** @enumType */
1594
1598
  type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
1599
+ type RedeemBenefitApplicationErrors = {
1600
+ code?: 'NOT_ENOUGH_BALANCE';
1601
+ description?: string;
1602
+ data?: NotEnoughBalance;
1603
+ } | {
1604
+ code?: 'POLICY_EXPRESSION_EVALUATED_TO_FALSE';
1605
+ description?: string;
1606
+ data?: PolicyExpressionEvaluatedToFalse;
1607
+ } | {
1608
+ code?: 'POOL_NOT_ACTIVE';
1609
+ description?: string;
1610
+ data?: PoolNotActive;
1611
+ } | {
1612
+ code?: 'POOL_NOT_FOUND';
1613
+ description?: string;
1614
+ data?: PoolNotFound;
1615
+ } | {
1616
+ code?: 'BENEFIT_ALREADY_REDEEMED';
1617
+ description?: string;
1618
+ data?: BenefitAlreadyRedeemed;
1619
+ } | {
1620
+ code?: 'BENEFIT_NOT_FOUND';
1621
+ description?: string;
1622
+ data?: BenefitNotFound;
1623
+ };
1624
+ type GetEligibleBenefitsApplicationErrors = {
1625
+ code?: 'INVALID_ITEM_REFERENCE';
1626
+ description?: string;
1627
+ data?: Record<string, any>;
1628
+ };
1629
+ /**
1630
+ * Retrieves a pool.
1631
+ * @param poolId - ID of the pool to retrieve.
1632
+ * @public
1633
+ * @documentationMaturity preview
1634
+ * @requiredField poolId
1635
+ * @permissionId BENEFIT_PROGRAMS.POOL_READ
1636
+ * @applicableIdentity APP
1637
+ * @returns Retrieved pool.
1638
+ * @fqn wix.benefit_programs.v1.pool.PoolService.GetPool
1639
+ */
1640
+ declare function getPool(poolId: string): Promise<NonNullablePaths<Pool, `status` | `beneficiary.anonymousVisitorId` | `beneficiary.memberId` | `beneficiary.wixUserId` | `details.benefits` | `details.benefits.${number}.benefitKey` | `details.creditConfiguration.amount` | `displayName` | `programDefinition._id` | `program._id`, 5>>;
1641
+ /**
1642
+ * Updates a pool.
1643
+ *
1644
+ * Each time the pool is updated,
1645
+ * `revision` increments by 1.
1646
+ * The current `revision` must be passed when updating the pool.
1647
+ * This ensures you're working with the latest pool
1648
+ * and prevents unintended overwrites.
1649
+ * @param _id - Pool ID.
1650
+ * @public
1651
+ * @documentationMaturity preview
1652
+ * @requiredField _id
1653
+ * @requiredField pool
1654
+ * @requiredField pool.revision
1655
+ * @permissionId BENEFIT_PROGRAMS.POOL_UPDATE
1656
+ * @applicableIdentity APP
1657
+ * @returns Updated pool.
1658
+ * @fqn wix.benefit_programs.v1.pool.PoolService.UpdatePool
1659
+ */
1660
+ declare function updatePool(_id: string, pool: NonNullablePaths<UpdatePool, `revision`, 2>): Promise<NonNullablePaths<Pool, `status` | `beneficiary.anonymousVisitorId` | `beneficiary.memberId` | `beneficiary.wixUserId` | `details.benefits` | `details.benefits.${number}.benefitKey` | `details.creditConfiguration.amount` | `displayName` | `programDefinition._id` | `program._id`, 5>>;
1595
1661
  interface UpdatePool {
1596
1662
  /**
1597
1663
  * Pool ID.
@@ -1694,6 +1760,25 @@ interface UpdatePool {
1694
1760
  */
1695
1761
  renewalCount?: number | null;
1696
1762
  }
1763
+ /**
1764
+ * Creates a query to retrieve a list of pools.
1765
+ *
1766
+ * The Query Pools method builds a query to retrieve a list of pools and returns a `PoolsQueryBuilder` object.
1767
+ *
1768
+ * The returned object contains the query definition, which is used to run the query using the `find()` method.
1769
+ *
1770
+ * 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.
1771
+ *
1772
+ * Query Pools has a default paging limit of 50, which you can override.
1773
+ *
1774
+ * For a full description of the item object, see the object returned for the `items` property in `PoolsQueryResult`.
1775
+ * @public
1776
+ * @documentationMaturity preview
1777
+ * @permissionId BENEFIT_PROGRAMS.POOL_READ
1778
+ * @applicableIdentity APP
1779
+ * @fqn wix.benefit_programs.v1.pool.PoolService.QueryPools
1780
+ */
1781
+ declare function queryPools(): PoolsQueryBuilder;
1697
1782
  interface QueryCursorResult {
1698
1783
  cursors: Cursors;
1699
1784
  hasNext: () => boolean;
@@ -1771,6 +1856,27 @@ interface PoolsQueryBuilder {
1771
1856
  /** @documentationMaturity preview */
1772
1857
  find: () => Promise<PoolsQueryResult>;
1773
1858
  }
1859
+ /**
1860
+ * Redeems a specified benefit.
1861
+ *
1862
+ * 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.
1863
+ * @param poolId - ID of the pool that contains the benefit to redeem.
1864
+ * @public
1865
+ * @documentationMaturity preview
1866
+ * @requiredField options.benefitKey
1867
+ * @requiredField options.idempotencyKey
1868
+ * @requiredField options.itemReference
1869
+ * @requiredField options.itemReference.externalId
1870
+ * @requiredField options.itemReference.providerAppId
1871
+ * @requiredField options.namespace
1872
+ * @requiredField poolId
1873
+ * @permissionId BENEFIT_PROGRAMS.POOL_REDEEM
1874
+ * @applicableIdentity APP
1875
+ * @fqn wix.benefit_programs.v1.pool.PoolService.RedeemBenefit
1876
+ */
1877
+ declare function redeemBenefit(poolId: string, options?: NonNullablePaths<RedeemBenefitOptions, `benefitKey` | `idempotencyKey` | `itemReference` | `itemReference.externalId` | `itemReference.providerAppId` | `namespace`, 3>): Promise<NonNullablePaths<RedeemBenefitResponse, `transactionId`, 2> & {
1878
+ __applicationErrorsType?: RedeemBenefitApplicationErrors;
1879
+ }>;
1774
1880
  interface RedeemBenefitOptions {
1775
1881
  /** Information about the item to redeem. */
1776
1882
  itemReference: ItemReference;
@@ -1807,6 +1913,23 @@ interface RedeemBenefitOptions {
1807
1913
  */
1808
1914
  namespace: string;
1809
1915
  }
1916
+ /**
1917
+ * Checks if a benefit can currently be redeemed.
1918
+ *
1919
+ * To be redeemed, a benefit's pool must be active and the associated balance must be greater than the cost of the benefit.
1920
+ * @param poolId - ID of the pool that the benefit to check belongs to.
1921
+ * @public
1922
+ * @documentationMaturity preview
1923
+ * @requiredField options.itemReference
1924
+ * @requiredField options.itemReference.externalId
1925
+ * @requiredField options.itemReference.providerAppId
1926
+ * @requiredField options.namespace
1927
+ * @requiredField poolId
1928
+ * @permissionId BENEFIT_PROGRAMS.POOL_REDEEM
1929
+ * @applicableIdentity APP
1930
+ * @fqn wix.benefit_programs.v1.pool.PoolService.CheckBenefitEligibility
1931
+ */
1932
+ declare function checkBenefitEligibility(poolId: string, options?: NonNullablePaths<CheckBenefitEligibilityOptions, `itemReference` | `itemReference.externalId` | `itemReference.providerAppId` | `namespace`, 3>): Promise<NonNullablePaths<CheckBenefitEligibilityResponse, `result.eligibleOptions.eligibleBenefits` | `result.eligibleOptions.eligibleBenefits.${number}.poolId` | `result.eligibleOptions.eligibleBenefits.${number}.benefitKey` | `result.eligibleOptions.eligibleBenefits.${number}.itemReference.externalId` | `result.eligibleOptions.eligibleBenefits.${number}.itemReference.category` | `result.eligibleOptions.eligibleBenefits.${number}.itemReference.providerAppId` | `result.notEnoughBalanceOptions.poolId` | `result.notEnoughBalanceOptions.availableBalance` | `result.notEnoughBalanceOptions.requestedBalance` | `result.poolNotActiveOptions.poolId` | `result.poolNotActiveOptions.poolStatus` | `result.benefitNotFoundOptions.poolId` | `result.poolNotFoundOptions.poolId` | `result.type`, 7>>;
1810
1933
  interface CheckBenefitEligibilityOptions {
1811
1934
  /**
1812
1935
  * Key of the benefit to check.
@@ -1839,6 +1962,24 @@ interface CheckBenefitEligibilityOptions {
1839
1962
  */
1840
1963
  namespace: string;
1841
1964
  }
1965
+ /**
1966
+ * Checks if benefits can currently be redeemed.
1967
+ *
1968
+ * To be redeemed, a benefit's pool must be active and the associated balance must greater be than the cost of the benefit.
1969
+ *
1970
+ * 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.
1971
+ * @public
1972
+ * @documentationMaturity preview
1973
+ * @requiredField options.benefitSelectors.itemReference
1974
+ * @requiredField options.benefitSelectors.itemReference.externalId
1975
+ * @requiredField options.benefitSelectors.itemReference.providerAppId
1976
+ * @requiredField options.benefitSelectors.poolId
1977
+ * @requiredField options.namespace
1978
+ * @permissionId BENEFIT_PROGRAMS.POOL_REDEEM
1979
+ * @applicableIdentity APP
1980
+ * @fqn wix.benefit_programs.v1.pool.PoolService.BulkCheckBenefitEligibility
1981
+ */
1982
+ declare function bulkCheckBenefitEligibility(options?: NonNullablePaths<BulkCheckBenefitEligibilityOptions, `benefitSelectors.${number}.itemReference` | `benefitSelectors.${number}.itemReference.externalId` | `benefitSelectors.${number}.itemReference.providerAppId` | `benefitSelectors.${number}.poolId` | `namespace`, 5>): Promise<NonNullablePaths<BulkCheckBenefitEligibilityResponse, `results` | `results.${number}.benefitSelector.poolId` | `results.${number}.benefitSelector.itemReference.externalId` | `results.${number}.benefitSelector.itemReference.category` | `results.${number}.benefitSelector.itemReference.providerAppId` | `results.${number}.benefitSelector.count` | `results.${number}.result.notEnoughBalanceOptions.poolId` | `results.${number}.result.notEnoughBalanceOptions.availableBalance` | `results.${number}.result.notEnoughBalanceOptions.requestedBalance` | `results.${number}.result.poolNotActiveOptions.poolId` | `results.${number}.result.poolNotActiveOptions.poolStatus` | `results.${number}.result.benefitNotFoundOptions.poolId` | `results.${number}.result.poolNotFoundOptions.poolId` | `results.${number}.result.type`, 6>>;
1842
1983
  interface BulkCheckBenefitEligibilityOptions {
1843
1984
  /**
1844
1985
  * List of benefits to check.
@@ -1855,6 +1996,25 @@ interface BulkCheckBenefitEligibilityOptions {
1855
1996
  /** Pool beneficiary. */
1856
1997
  beneficiary?: CommonIdentificationData;
1857
1998
  }
1999
+ /**
2000
+ * Retrieves benefits that can be redeemed for a specific benefit item.
2001
+ *
2002
+ * 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.
2003
+ * This method checks each pool containing a benefit with this benefit item, and returns the benefits that can be redeemed.
2004
+ * @param itemReference - Item reference.
2005
+ * @public
2006
+ * @documentationMaturity preview
2007
+ * @requiredField itemReference
2008
+ * @requiredField itemReference.externalId
2009
+ * @requiredField itemReference.providerAppId
2010
+ * @requiredField options.namespace
2011
+ * @permissionId BENEFIT_PROGRAMS.POOL_READ
2012
+ * @applicableIdentity APP
2013
+ * @fqn wix.benefit_programs.v1.pool.PoolService.GetEligibleBenefits
2014
+ */
2015
+ declare function getEligibleBenefits(itemReference: NonNullablePaths<ItemReference, `externalId` | `providerAppId`, 2>, options?: NonNullablePaths<GetEligibleBenefitsOptions, `namespace`, 2>): Promise<NonNullablePaths<GetEligibleBenefitsResponse, `eligibleBenefits` | `eligibleBenefits.${number}.poolId` | `eligibleBenefits.${number}.benefitKey` | `eligibleBenefits.${number}.itemReference.externalId` | `eligibleBenefits.${number}.itemReference.category` | `eligibleBenefits.${number}.itemReference.providerAppId`, 5> & {
2016
+ __applicationErrorsType?: GetEligibleBenefitsApplicationErrors;
2017
+ }>;
1858
2018
  interface GetEligibleBenefitsOptions {
1859
2019
  /**
1860
2020
  * Amount of items to check. This ensures the balance is high enough to redeem this many items.
@@ -1878,6 +2038,18 @@ interface GetEligibleBenefitsOptions {
1878
2038
  */
1879
2039
  namespace: string;
1880
2040
  }
2041
+ /**
2042
+ * Updates pools.
2043
+ * @public
2044
+ * @documentationMaturity preview
2045
+ * @requiredField options.pools.pool
2046
+ * @requiredField options.pools.pool._id
2047
+ * @requiredField options.pools.pool.revision
2048
+ * @permissionId BENEFIT_PROGRAMS.POOL_UPDATE
2049
+ * @applicableIdentity APP
2050
+ * @fqn wix.benefit_programs.v1.pool.PoolService.BulkUpdatePools
2051
+ */
2052
+ declare function bulkUpdatePools(options?: NonNullablePaths<BulkUpdatePoolsOptions, `pools.${number}.pool` | `pools.${number}.pool._id` | `pools.${number}.pool.revision`, 5>): Promise<NonNullablePaths<BulkUpdatePoolsResponse, `results` | `results.${number}.poolMetadata.originalIndex` | `results.${number}.poolMetadata.success` | `results.${number}.poolMetadata.error.code` | `results.${number}.poolMetadata.error.description` | `results.${number}.pool.status` | `results.${number}.pool.beneficiary.anonymousVisitorId` | `results.${number}.pool.beneficiary.memberId` | `results.${number}.pool.beneficiary.wixUserId` | `results.${number}.pool.displayName` | `results.${number}.pool.programDefinition._id` | `results.${number}.pool.program._id` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6>>;
1881
2053
  interface BulkUpdatePoolsOptions {
1882
2054
  /**
1883
2055
  * Pools to update.
@@ -1893,4 +2065,4 @@ interface BulkUpdatePoolsOptions {
1893
2065
  returnEntity?: boolean;
1894
2066
  }
1895
2067
 
1896
- export { type PoolEnded as $, type RateLimitedPolicyPeriodOneOf as A, type BulkCheckBenefitEligibilityOptions as B, type CheckBenefitEligibilityOptions as C, type Details as D, EligibilityCheckResultType as E, type FixedIntervalPolicy as F, type GetEligibleBenefitsOptions as G, type CustomPolicy as H, type ItemReference as I, type CreditConfiguration as J, type RolloverConfiguration as K, ListPoolsRequestType as L, type ExtendedFields as M, type ProgramDefinitionInfo as N, type PoolProgramInfo as O, type Pool as P, type PoolProvisioned as Q, type RedeemBenefitOptions as R, SortOrder as S, Type as T, type UpdatePool as U, type PoolRenewed as V, WeekDay as W, type BenefitRedeemed as X, type RedemptionDetails as Y, type PoolPaused as Z, type PoolResumed as _, type PoolsQueryBuilder as a, type ProvisionPoolsForProgramResponse as a$, type BenefitReserved as a0, type BenefitReservationCanceled as a1, type BenefitReservationReleased as a2, type PoolProvisionJobFinished as a3, type PoolStatusUpdateJobFinished as a4, type PoolStatusUpdateJobFinishedContextOneOf as a5, type PoolDefinitionAndProgramDefinition as a6, type ProgramInfo as a7, type CreatePoolRequest as a8, type CreatePoolResponse as a9, type ReleaseBenefitReservationRequest as aA, type ReleaseBenefitReservationResponse as aB, type CheckBenefitEligibilityRequest as aC, type EligibilityCheckResult as aD, type EligibilityCheckResultResultOneOf as aE, type EligibleBenefit as aF, type Eligible as aG, type BulkCheckBenefitEligibilityRequest as aH, type BenefitSelector as aI, type BulkEligibilityCheckResult as aJ, type GetEligibleBenefitsRequest as aK, type ListPoolsRequest as aL, type ByItemReference as aM, type ByItemReferenceFilter as aN, type Filter as aO, type FilterFilterOneOf as aP, type ListPoolsResponse as aQ, type PoolWithItems as aR, type BulkUpdatePoolsRequest as aS, type MaskedPool as aT, type BulkPoolResult as aU, type ItemMetadata as aV, type ApplicationError as aW, type BulkActionMetadata as aX, type ProvisionPoolsForProgramRequest as aY, type PoolDefinitionLookupId as aZ, type PoolDefinitionLookupIdIdOneOf as a_, type GetPoolRequest as aa, type GetPoolResponse as ab, type UpdatePoolRequest as ac, type UpdatePoolResponse as ad, type DeletePoolRequest as ae, type DeletePoolResponse as af, type QueryPoolsRequest as ag, type CursorQuery as ah, type CursorQueryPagingMethodOneOf as ai, type Sorting as aj, type CursorPaging as ak, type QueryPoolsResponse as al, type CursorPagingMetadata as am, type Cursors as an, type RedeemBenefitRequest as ao, type NotEnoughBalance as ap, type PolicyExpressionEvaluatedToFalse as aq, type FailureDetails as ar, type PoolNotActive as as, type PoolNotFound as at, type BenefitAlreadyRedeemed as au, type BenefitNotFound as av, type ReserveBenefitRequest as aw, type ReserveBenefitResponse as ax, type CancelBenefitReservationRequest as ay, type CancelBenefitReservationResponse as az, type RedeemBenefitResponse as b, type ProvisionPoolsForProgramResponseResultOneOf as b0, type SyncResult as b1, type AsyncResult as b2, type InvalidPoolDefinitionReference as b3, type RenewPoolsForProgramRequest as b4, type RenewPoolsForProgramResponse as b5, type UpdatePoolStatusRequest as b6, type UpdatePoolStatusRequestPoolSelectorOneOf as b7, type ByPoolDefinitionIdAndProgramDefinitionIdOptions as b8, type ByProgramIdOptions as b9, type UpdatePoolStatusResponse as ba, type CountNumberOfPoolsInProvisioningStatusRequest as bb, type CountNumberOfPoolsInProvisioningStatusResponse as bc, type DomainEvent as bd, type DomainEventBodyOneOf as be, type EntityCreatedEvent as bf, type RestoreInfo as bg, type EntityUpdatedEvent as bh, type EntityDeletedEvent as bi, type ActionEvent as bj, type MessageEnvelope as bk, type IdentificationData as bl, type IdentificationDataIdOneOf as bm, type PoolsQueryResult as bn, type CheckBenefitEligibilityResponse as c, type BulkCheckBenefitEligibilityResponse as d, type GetEligibleBenefitsResponse as e, type BulkUpdatePoolsOptions as f, type BulkUpdatePoolsResponse as g, PoolStatus as h, IdentityType as i, PolicyExpressionType as j, RateLimitedPolicyType as k, PoolOrigin as l, ProvisionPoolsForProgramResponseType as m, PoolSelectorType as n, WebhookIdentityType as o, type CommonIdentificationData as p, type CommonIdentificationDataIdOneOf as q, type Benefit as r, type PolicyExpression as s, type PolicyExpressionExpressionOneOf as t, type PolicyExpressionNot as u, type PolicyExpressionAnd as v, type PolicyExpressionOr as w, type Policy as x, type PolicyPolicyOneOf as y, type RateLimitedPolicy as z };
2068
+ export { type ActionEvent, type ApplicationError, type AsyncResult, type Benefit, type BenefitAlreadyRedeemed, type BenefitNotFound, type BenefitRedeemed, type BenefitReservationCanceled, type BenefitReservationReleased, type BenefitReserved, type BenefitSelector, type BulkActionMetadata, type BulkCheckBenefitEligibilityOptions, type BulkCheckBenefitEligibilityRequest, type BulkCheckBenefitEligibilityResponse, type BulkEligibilityCheckResult, type BulkPoolResult, type BulkUpdatePoolsOptions, type BulkUpdatePoolsRequest, type BulkUpdatePoolsResponse, type ByItemReference, type ByItemReferenceFilter, type ByPoolDefinitionIdAndProgramDefinitionIdOptions, type ByProgramIdOptions, type CancelBenefitReservationRequest, type CancelBenefitReservationResponse, type CheckBenefitEligibilityOptions, type CheckBenefitEligibilityRequest, type CheckBenefitEligibilityResponse, type CommonIdentificationData, type CommonIdentificationDataIdOneOf, type CountNumberOfPoolsInProvisioningStatusRequest, type CountNumberOfPoolsInProvisioningStatusResponse, type CreatePoolRequest, type CreatePoolResponse, type CreditConfiguration, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type CustomPolicy, type DeletePoolRequest, type DeletePoolResponse, type Details, type DomainEvent, type DomainEventBodyOneOf, type EligibilityCheckResult, type EligibilityCheckResultResultOneOf, EligibilityCheckResultType, type EligibilityCheckResultTypeWithLiterals, type Eligible, type EligibleBenefit, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type ExtendedFields, type FailureDetails, type Filter, type FilterFilterOneOf, type FixedIntervalPolicy, type GetEligibleBenefitsApplicationErrors, type GetEligibleBenefitsOptions, type GetEligibleBenefitsRequest, type GetEligibleBenefitsResponse, type GetPoolRequest, type GetPoolResponse, type IdentificationData, type IdentificationDataIdOneOf, IdentityType, type IdentityTypeWithLiterals, type InvalidPoolDefinitionReference, type ItemMetadata, type ItemReference, type ListPoolsRequest, ListPoolsRequestType, type ListPoolsRequestTypeWithLiterals, type ListPoolsResponse, type MaskedPool, type MessageEnvelope, type NotEnoughBalance, type Policy, type PolicyExpression, type PolicyExpressionAnd, type PolicyExpressionEvaluatedToFalse, type PolicyExpressionExpressionOneOf, type PolicyExpressionNot, type PolicyExpressionOr, PolicyExpressionType, type PolicyExpressionTypeWithLiterals, type PolicyPolicyOneOf, type Pool, type PoolDefinitionAndProgramDefinition, type PoolDefinitionLookupId, type PoolDefinitionLookupIdIdOneOf, type PoolEnded, type PoolNotActive, type PoolNotFound, PoolOrigin, type PoolOriginWithLiterals, type PoolPaused, type PoolProgramInfo, type PoolProvisionJobFinished, type PoolProvisioned, type PoolRenewed, type PoolResumed, PoolSelectorType, type PoolSelectorTypeWithLiterals, PoolStatus, type PoolStatusUpdateJobFinished, type PoolStatusUpdateJobFinishedContextOneOf, type PoolStatusWithLiterals, type PoolWithItems, type PoolsQueryBuilder, type PoolsQueryResult, type ProgramDefinitionInfo, type ProgramInfo, type ProvisionPoolsForProgramRequest, type ProvisionPoolsForProgramResponse, type ProvisionPoolsForProgramResponseResultOneOf, ProvisionPoolsForProgramResponseType, type ProvisionPoolsForProgramResponseTypeWithLiterals, type QueryPoolsRequest, type QueryPoolsResponse, type RateLimitedPolicy, type RateLimitedPolicyPeriodOneOf, RateLimitedPolicyType, type RateLimitedPolicyTypeWithLiterals, type RedeemBenefitApplicationErrors, type RedeemBenefitOptions, type RedeemBenefitRequest, type RedeemBenefitResponse, type RedemptionDetails, type ReleaseBenefitReservationRequest, type ReleaseBenefitReservationResponse, type RenewPoolsForProgramRequest, type RenewPoolsForProgramResponse, type ReserveBenefitRequest, type ReserveBenefitResponse, type RestoreInfo, type RolloverConfiguration, SortOrder, type SortOrderWithLiterals, type Sorting, type SyncResult, Type, type TypeWithLiterals, type UpdatePool, type UpdatePoolRequest, type UpdatePoolResponse, type UpdatePoolStatusRequest, type UpdatePoolStatusRequestPoolSelectorOneOf, type UpdatePoolStatusResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, WeekDay, type WeekDayWithLiterals, bulkCheckBenefitEligibility, bulkUpdatePools, checkBenefitEligibility, getEligibleBenefits, getPool, queryPools, redeemBenefit, updatePool };