@wix/auto_sdk_benefit-programs_pools 1.0.25 → 1.0.27

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,70 @@ declare enum WebhookIdentityType {
1592
1596
  }
1593
1597
  /** @enumType */
1594
1598
  type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
1599
+ /** @docsIgnore */
1600
+ type RedeemBenefitApplicationErrors = {
1601
+ code?: 'NOT_ENOUGH_BALANCE';
1602
+ description?: string;
1603
+ data?: NotEnoughBalance;
1604
+ } | {
1605
+ code?: 'POLICY_EXPRESSION_EVALUATED_TO_FALSE';
1606
+ description?: string;
1607
+ data?: PolicyExpressionEvaluatedToFalse;
1608
+ } | {
1609
+ code?: 'POOL_NOT_ACTIVE';
1610
+ description?: string;
1611
+ data?: PoolNotActive;
1612
+ } | {
1613
+ code?: 'POOL_NOT_FOUND';
1614
+ description?: string;
1615
+ data?: PoolNotFound;
1616
+ } | {
1617
+ code?: 'BENEFIT_ALREADY_REDEEMED';
1618
+ description?: string;
1619
+ data?: BenefitAlreadyRedeemed;
1620
+ } | {
1621
+ code?: 'BENEFIT_NOT_FOUND';
1622
+ description?: string;
1623
+ data?: BenefitNotFound;
1624
+ };
1625
+ /** @docsIgnore */
1626
+ type GetEligibleBenefitsApplicationErrors = {
1627
+ code?: 'INVALID_ITEM_REFERENCE';
1628
+ description?: string;
1629
+ data?: Record<string, any>;
1630
+ };
1631
+ /**
1632
+ * Retrieves a pool.
1633
+ * @param poolId - ID of the pool to retrieve.
1634
+ * @public
1635
+ * @documentationMaturity preview
1636
+ * @requiredField poolId
1637
+ * @permissionId BENEFIT_PROGRAMS.POOL_READ
1638
+ * @applicableIdentity APP
1639
+ * @returns Retrieved pool.
1640
+ * @fqn wix.benefit_programs.v1.pool.PoolService.GetPool
1641
+ */
1642
+ 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>>;
1643
+ /**
1644
+ * Updates a pool.
1645
+ *
1646
+ * Each time the pool is updated,
1647
+ * `revision` increments by 1.
1648
+ * The current `revision` must be passed when updating the pool.
1649
+ * This ensures you're working with the latest pool
1650
+ * and prevents unintended overwrites.
1651
+ * @param _id - Pool ID.
1652
+ * @public
1653
+ * @documentationMaturity preview
1654
+ * @requiredField _id
1655
+ * @requiredField pool
1656
+ * @requiredField pool.revision
1657
+ * @permissionId BENEFIT_PROGRAMS.POOL_UPDATE
1658
+ * @applicableIdentity APP
1659
+ * @returns Updated pool.
1660
+ * @fqn wix.benefit_programs.v1.pool.PoolService.UpdatePool
1661
+ */
1662
+ 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
1663
  interface UpdatePool {
1596
1664
  /**
1597
1665
  * Pool ID.
@@ -1694,6 +1762,25 @@ interface UpdatePool {
1694
1762
  */
1695
1763
  renewalCount?: number | null;
1696
1764
  }
1765
+ /**
1766
+ * Creates a query to retrieve a list of pools.
1767
+ *
1768
+ * The Query Pools method builds a query to retrieve a list of pools and returns a `PoolsQueryBuilder` object.
1769
+ *
1770
+ * The returned object contains the query definition, which is used to run the query using the `find()` method.
1771
+ *
1772
+ * 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.
1773
+ *
1774
+ * Query Pools has a default paging limit of 50, which you can override.
1775
+ *
1776
+ * For a full description of the item object, see the object returned for the `items` property in `PoolsQueryResult`.
1777
+ * @public
1778
+ * @documentationMaturity preview
1779
+ * @permissionId BENEFIT_PROGRAMS.POOL_READ
1780
+ * @applicableIdentity APP
1781
+ * @fqn wix.benefit_programs.v1.pool.PoolService.QueryPools
1782
+ */
1783
+ declare function queryPools(): PoolsQueryBuilder;
1697
1784
  interface QueryCursorResult {
1698
1785
  cursors: Cursors;
1699
1786
  hasNext: () => boolean;
@@ -1771,6 +1858,27 @@ interface PoolsQueryBuilder {
1771
1858
  /** @documentationMaturity preview */
1772
1859
  find: () => Promise<PoolsQueryResult>;
1773
1860
  }
1861
+ /**
1862
+ * Redeems a specified benefit.
1863
+ *
1864
+ * 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.
1865
+ * @param poolId - ID of the pool that contains the benefit to redeem.
1866
+ * @public
1867
+ * @documentationMaturity preview
1868
+ * @requiredField options.benefitKey
1869
+ * @requiredField options.idempotencyKey
1870
+ * @requiredField options.itemReference
1871
+ * @requiredField options.itemReference.externalId
1872
+ * @requiredField options.itemReference.providerAppId
1873
+ * @requiredField options.namespace
1874
+ * @requiredField poolId
1875
+ * @permissionId BENEFIT_PROGRAMS.POOL_REDEEM
1876
+ * @applicableIdentity APP
1877
+ * @fqn wix.benefit_programs.v1.pool.PoolService.RedeemBenefit
1878
+ */
1879
+ declare function redeemBenefit(poolId: string, options?: NonNullablePaths<RedeemBenefitOptions, `benefitKey` | `idempotencyKey` | `itemReference` | `itemReference.externalId` | `itemReference.providerAppId` | `namespace`, 3>): Promise<NonNullablePaths<RedeemBenefitResponse, `transactionId`, 2> & {
1880
+ __applicationErrorsType?: RedeemBenefitApplicationErrors;
1881
+ }>;
1774
1882
  interface RedeemBenefitOptions {
1775
1883
  /** Information about the item to redeem. */
1776
1884
  itemReference: ItemReference;
@@ -1807,6 +1915,23 @@ interface RedeemBenefitOptions {
1807
1915
  */
1808
1916
  namespace: string;
1809
1917
  }
1918
+ /**
1919
+ * Checks if a benefit can currently be redeemed.
1920
+ *
1921
+ * To be redeemed, a benefit's pool must be active and the associated balance must be greater than the cost of the benefit.
1922
+ * @param poolId - ID of the pool that the benefit to check belongs to.
1923
+ * @public
1924
+ * @documentationMaturity preview
1925
+ * @requiredField options.itemReference
1926
+ * @requiredField options.itemReference.externalId
1927
+ * @requiredField options.itemReference.providerAppId
1928
+ * @requiredField options.namespace
1929
+ * @requiredField poolId
1930
+ * @permissionId BENEFIT_PROGRAMS.POOL_REDEEM
1931
+ * @applicableIdentity APP
1932
+ * @fqn wix.benefit_programs.v1.pool.PoolService.CheckBenefitEligibility
1933
+ */
1934
+ 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
1935
  interface CheckBenefitEligibilityOptions {
1811
1936
  /**
1812
1937
  * Key of the benefit to check.
@@ -1839,6 +1964,24 @@ interface CheckBenefitEligibilityOptions {
1839
1964
  */
1840
1965
  namespace: string;
1841
1966
  }
1967
+ /**
1968
+ * Checks if benefits can currently be redeemed.
1969
+ *
1970
+ * To be redeemed, a benefit's pool must be active and the associated balance must greater be than the cost of the benefit.
1971
+ *
1972
+ * 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.
1973
+ * @public
1974
+ * @documentationMaturity preview
1975
+ * @requiredField options.benefitSelectors.itemReference
1976
+ * @requiredField options.benefitSelectors.itemReference.externalId
1977
+ * @requiredField options.benefitSelectors.itemReference.providerAppId
1978
+ * @requiredField options.benefitSelectors.poolId
1979
+ * @requiredField options.namespace
1980
+ * @permissionId BENEFIT_PROGRAMS.POOL_REDEEM
1981
+ * @applicableIdentity APP
1982
+ * @fqn wix.benefit_programs.v1.pool.PoolService.BulkCheckBenefitEligibility
1983
+ */
1984
+ 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
1985
  interface BulkCheckBenefitEligibilityOptions {
1843
1986
  /**
1844
1987
  * List of benefits to check.
@@ -1855,6 +1998,25 @@ interface BulkCheckBenefitEligibilityOptions {
1855
1998
  /** Pool beneficiary. */
1856
1999
  beneficiary?: CommonIdentificationData;
1857
2000
  }
2001
+ /**
2002
+ * Retrieves benefits that can be redeemed for a specific benefit item.
2003
+ *
2004
+ * 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.
2005
+ * This method checks each pool containing a benefit with this benefit item, and returns the benefits that can be redeemed.
2006
+ * @param itemReference - Item reference.
2007
+ * @public
2008
+ * @documentationMaturity preview
2009
+ * @requiredField itemReference
2010
+ * @requiredField itemReference.externalId
2011
+ * @requiredField itemReference.providerAppId
2012
+ * @requiredField options.namespace
2013
+ * @permissionId BENEFIT_PROGRAMS.POOL_READ
2014
+ * @applicableIdentity APP
2015
+ * @fqn wix.benefit_programs.v1.pool.PoolService.GetEligibleBenefits
2016
+ */
2017
+ 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> & {
2018
+ __applicationErrorsType?: GetEligibleBenefitsApplicationErrors;
2019
+ }>;
1858
2020
  interface GetEligibleBenefitsOptions {
1859
2021
  /**
1860
2022
  * Amount of items to check. This ensures the balance is high enough to redeem this many items.
@@ -1878,6 +2040,18 @@ interface GetEligibleBenefitsOptions {
1878
2040
  */
1879
2041
  namespace: string;
1880
2042
  }
2043
+ /**
2044
+ * Updates pools.
2045
+ * @public
2046
+ * @documentationMaturity preview
2047
+ * @requiredField options.pools.pool
2048
+ * @requiredField options.pools.pool._id
2049
+ * @requiredField options.pools.pool.revision
2050
+ * @permissionId BENEFIT_PROGRAMS.POOL_UPDATE
2051
+ * @applicableIdentity APP
2052
+ * @fqn wix.benefit_programs.v1.pool.PoolService.BulkUpdatePools
2053
+ */
2054
+ 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
2055
  interface BulkUpdatePoolsOptions {
1882
2056
  /**
1883
2057
  * Pools to update.
@@ -1893,4 +2067,4 @@ interface BulkUpdatePoolsOptions {
1893
2067
  returnEntity?: boolean;
1894
2068
  }
1895
2069
 
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 };
2070
+ 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 };