@wix/auto_sdk_benefit-programs_pools 1.0.35 → 1.0.37

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.
@@ -630,6 +630,8 @@ interface PoolStatusUpdateJobFinished extends PoolStatusUpdateJobFinishedContext
630
630
  poolDefinitionAndProgramDefinition?: PoolDefinitionAndProgramDefinition;
631
631
  /** Update the status of all pools in the program */
632
632
  programInfo?: ProgramInfo;
633
+ /** Update the status of a specific pool */
634
+ poolInfo?: PoolStatusUpdateParamsPoolInfo;
633
635
  /** Target status of the pool */
634
636
  targetStatus?: PoolStatusWithLiterals;
635
637
  /** The total number of items that were processed */
@@ -641,6 +643,8 @@ interface PoolStatusUpdateJobFinishedContextOneOf {
641
643
  poolDefinitionAndProgramDefinition?: PoolDefinitionAndProgramDefinition;
642
644
  /** Update the status of all pools in the program */
643
645
  programInfo?: ProgramInfo;
646
+ /** Update the status of a specific pool */
647
+ poolInfo?: PoolStatusUpdateParamsPoolInfo;
644
648
  }
645
649
  interface PoolDefinitionAndProgramDefinition {
646
650
  /**
@@ -664,6 +668,15 @@ interface ProgramInfo {
664
668
  /** Additional data that was provided when the job was submitted */
665
669
  additionalData?: Record<string, any> | null;
666
670
  }
671
+ interface PoolStatusUpdateParamsPoolInfo {
672
+ /**
673
+ * The key of the program that is being updated
674
+ * @format GUID
675
+ */
676
+ poolId?: string;
677
+ /** Additional data that was provided when the job was submitted */
678
+ additionalData?: Record<string, any> | null;
679
+ }
667
680
  interface CreatePoolRequest {
668
681
  /** Pool to be created. */
669
682
  pool?: Pool;
@@ -1726,7 +1739,6 @@ type GetEligibleBenefitsApplicationErrors = {
1726
1739
  * Retrieves a pool.
1727
1740
  * @param poolId - ID of the pool to retrieve.
1728
1741
  * @public
1729
- * @documentationMaturity preview
1730
1742
  * @requiredField poolId
1731
1743
  * @permissionId BENEFIT_PROGRAMS.POOL_READ
1732
1744
  * @applicableIdentity APP
@@ -1744,7 +1756,6 @@ declare function getPool(poolId: string): Promise<NonNullablePaths<Pool, `status
1744
1756
  * and prevents unintended overwrites.
1745
1757
  * @param _id - Pool ID.
1746
1758
  * @public
1747
- * @documentationMaturity preview
1748
1759
  * @requiredField _id
1749
1760
  * @requiredField pool
1750
1761
  * @requiredField pool.revision
@@ -1869,7 +1880,6 @@ interface UpdatePool {
1869
1880
  *
1870
1881
  * For a full description of the item object, see the object returned for the `items` property in `PoolsQueryResult`.
1871
1882
  * @public
1872
- * @documentationMaturity preview
1873
1883
  * @permissionId BENEFIT_PROGRAMS.POOL_READ
1874
1884
  * @applicableIdentity APP
1875
1885
  * @fqn wix.benefit_programs.v1.pool.PoolService.QueryPools
@@ -1891,65 +1901,46 @@ interface PoolsQueryResult extends QueryCursorResult {
1891
1901
  interface PoolsQueryBuilder {
1892
1902
  /** @param propertyName - Property whose value is compared with `value`.
1893
1903
  * @param value - Value to compare against.
1894
- * @documentationMaturity preview
1895
1904
  */
1896
1905
  eq: (propertyName: '_id' | '_createdDate' | 'poolDefinitionId' | 'programDefinitionId' | 'programId' | 'status' | 'beneficiary' | 'beneficiary.memberId' | 'beneficiary.wixUserId' | 'details.benefits.itemSetId' | 'details.benefits.providerAppId' | 'namespace' | 'programDefinition.id' | 'program.id', value: any) => PoolsQueryBuilder;
1897
1906
  /** @param propertyName - Property whose value is compared with `value`.
1898
1907
  * @param value - Value to compare against.
1899
- * @documentationMaturity preview
1900
1908
  */
1901
1909
  ne: (propertyName: '_id' | '_createdDate' | 'poolDefinitionId' | 'programDefinitionId' | 'programId' | 'status' | 'beneficiary' | 'beneficiary.memberId' | 'beneficiary.wixUserId' | 'details.benefits.itemSetId' | 'details.benefits.providerAppId' | 'namespace' | 'programDefinition.id' | 'program.id', value: any) => PoolsQueryBuilder;
1902
1910
  /** @param propertyName - Property whose value is compared with `value`.
1903
1911
  * @param value - Value to compare against.
1904
- * @documentationMaturity preview
1905
1912
  */
1906
1913
  ge: (propertyName: '_id' | '_createdDate' | 'poolDefinitionId' | 'programDefinitionId' | 'programId' | 'beneficiary.memberId' | 'beneficiary.wixUserId' | 'details.benefits.itemSetId' | 'details.benefits.providerAppId' | 'namespace' | 'programDefinition.id' | 'program.id', value: any) => PoolsQueryBuilder;
1907
1914
  /** @param propertyName - Property whose value is compared with `value`.
1908
1915
  * @param value - Value to compare against.
1909
- * @documentationMaturity preview
1910
1916
  */
1911
1917
  gt: (propertyName: '_id' | '_createdDate' | 'poolDefinitionId' | 'programDefinitionId' | 'programId' | 'beneficiary.memberId' | 'beneficiary.wixUserId' | 'details.benefits.itemSetId' | 'details.benefits.providerAppId' | 'namespace' | 'programDefinition.id' | 'program.id', value: any) => PoolsQueryBuilder;
1912
1918
  /** @param propertyName - Property whose value is compared with `value`.
1913
1919
  * @param value - Value to compare against.
1914
- * @documentationMaturity preview
1915
1920
  */
1916
1921
  le: (propertyName: '_id' | '_createdDate' | 'poolDefinitionId' | 'programDefinitionId' | 'programId' | 'beneficiary.memberId' | 'beneficiary.wixUserId' | 'details.benefits.itemSetId' | 'details.benefits.providerAppId' | 'namespace' | 'programDefinition.id' | 'program.id', value: any) => PoolsQueryBuilder;
1917
1922
  /** @param propertyName - Property whose value is compared with `value`.
1918
1923
  * @param value - Value to compare against.
1919
- * @documentationMaturity preview
1920
1924
  */
1921
1925
  lt: (propertyName: '_id' | '_createdDate' | 'poolDefinitionId' | 'programDefinitionId' | 'programId' | 'beneficiary.memberId' | 'beneficiary.wixUserId' | 'details.benefits.itemSetId' | 'details.benefits.providerAppId' | 'namespace' | 'programDefinition.id' | 'program.id', value: any) => PoolsQueryBuilder;
1922
1926
  /** @param propertyName - Property whose value is compared with `string`.
1923
1927
  * @param string - String to compare against. Case-insensitive.
1924
- * @documentationMaturity preview
1925
1928
  */
1926
1929
  startsWith: (propertyName: '_id' | 'poolDefinitionId' | 'programDefinitionId' | 'programId' | 'beneficiary.memberId' | 'beneficiary.wixUserId' | 'details.benefits.itemSetId' | 'details.benefits.providerAppId' | 'namespace' | 'programDefinition.id' | 'program.id', value: string) => PoolsQueryBuilder;
1927
1930
  /** @param propertyName - Property whose value is compared with `values`.
1928
1931
  * @param values - List of values to compare against.
1929
- * @documentationMaturity preview
1930
1932
  */
1931
1933
  hasSome: (propertyName: '_id' | '_createdDate' | 'poolDefinitionId' | 'programDefinitionId' | 'programId' | 'status' | 'beneficiary' | 'beneficiary.memberId' | 'beneficiary.wixUserId' | 'details.benefits.itemSetId' | 'details.benefits.providerAppId' | 'namespace' | 'programDefinition.id' | 'program.id', value: any[]) => PoolsQueryBuilder;
1932
- /** @documentationMaturity preview */
1933
1934
  in: (propertyName: '_id' | '_createdDate' | 'poolDefinitionId' | 'programDefinitionId' | 'programId' | 'status' | 'beneficiary' | 'beneficiary.memberId' | 'beneficiary.wixUserId' | 'details.benefits.itemSetId' | 'details.benefits.providerAppId' | 'namespace' | 'programDefinition.id' | 'program.id', value: any) => PoolsQueryBuilder;
1934
- /** @documentationMaturity preview */
1935
1935
  exists: (propertyName: '_id' | '_createdDate' | 'poolDefinitionId' | 'programDefinitionId' | 'programId' | 'status' | 'beneficiary' | 'beneficiary.memberId' | 'beneficiary.wixUserId' | 'details.benefits.itemSetId' | 'details.benefits.providerAppId' | 'namespace' | 'programDefinition.id' | 'program.id', value: boolean) => PoolsQueryBuilder;
1936
- /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
1937
- * @documentationMaturity preview
1938
- */
1936
+ /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */
1939
1937
  ascending: (...propertyNames: Array<'_id' | '_createdDate' | 'poolDefinitionId' | 'programDefinitionId' | 'programId' | 'status' | 'beneficiary' | 'beneficiary.memberId' | 'beneficiary.wixUserId' | 'details.benefits.itemSetId' | 'details.benefits.providerAppId' | 'namespace' | 'programDefinition.id' | 'program.id'>) => PoolsQueryBuilder;
1940
- /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
1941
- * @documentationMaturity preview
1942
- */
1938
+ /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */
1943
1939
  descending: (...propertyNames: Array<'_id' | '_createdDate' | 'poolDefinitionId' | 'programDefinitionId' | 'programId' | 'status' | 'beneficiary' | 'beneficiary.memberId' | 'beneficiary.wixUserId' | 'details.benefits.itemSetId' | 'details.benefits.providerAppId' | 'namespace' | 'programDefinition.id' | 'program.id'>) => PoolsQueryBuilder;
1944
- /** @param limit - Number of items to return, which is also the `pageSize` of the results object.
1945
- * @documentationMaturity preview
1946
- */
1940
+ /** @param limit - Number of items to return, which is also the `pageSize` of the results object. */
1947
1941
  limit: (limit: number) => PoolsQueryBuilder;
1948
- /** @param cursor - A pointer to specific record
1949
- * @documentationMaturity preview
1950
- */
1942
+ /** @param cursor - A pointer to specific record */
1951
1943
  skipTo: (cursor: string) => PoolsQueryBuilder;
1952
- /** @documentationMaturity preview */
1953
1944
  find: () => Promise<PoolsQueryResult>;
1954
1945
  }
1955
1946
  /**
@@ -1958,7 +1949,6 @@ interface PoolsQueryBuilder {
1958
1949
  * 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.
1959
1950
  * @param poolId - ID of the pool that contains the benefit to redeem.
1960
1951
  * @public
1961
- * @documentationMaturity preview
1962
1952
  * @requiredField options.benefitKey
1963
1953
  * @requiredField options.idempotencyKey
1964
1954
  * @requiredField options.itemReference
@@ -2015,7 +2005,6 @@ interface RedeemBenefitOptions {
2015
2005
  * To be redeemed, a benefit's pool must be active and the associated balance must be greater than the cost of the benefit.
2016
2006
  * @param poolId - ID of the pool that the benefit to check belongs to.
2017
2007
  * @public
2018
- * @documentationMaturity preview
2019
2008
  * @requiredField options.itemReference
2020
2009
  * @requiredField options.itemReference.externalId
2021
2010
  * @requiredField options.itemReference.providerAppId
@@ -2061,11 +2050,10 @@ interface CheckBenefitEligibilityOptions {
2061
2050
  /**
2062
2051
  * Checks if benefits can currently be redeemed.
2063
2052
  *
2064
- * To be redeemed, a benefit's pool must be active and the associated balance must greater be than the cost of the benefit.
2053
+ * To be redeemed, a benefit's pool must be active and the associated balance must be greater than the cost of the benefit.
2065
2054
  *
2066
2055
  * 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.
2067
2056
  * @public
2068
- * @documentationMaturity preview
2069
2057
  * @requiredField options.benefitSelectors.itemReference
2070
2058
  * @requiredField options.benefitSelectors.itemReference.externalId
2071
2059
  * @requiredField options.benefitSelectors.itemReference.providerAppId
@@ -2099,7 +2087,6 @@ interface BulkCheckBenefitEligibilityOptions {
2099
2087
  * This method checks each pool containing a benefit with this benefit item, and returns the benefits that can be redeemed.
2100
2088
  * @param itemReference - Item reference.
2101
2089
  * @public
2102
- * @documentationMaturity preview
2103
2090
  * @requiredField itemReference
2104
2091
  * @requiredField itemReference.externalId
2105
2092
  * @requiredField itemReference.providerAppId
@@ -2137,7 +2124,6 @@ interface GetEligibleBenefitsOptions {
2137
2124
  /**
2138
2125
  * Updates pools.
2139
2126
  * @public
2140
- * @documentationMaturity preview
2141
2127
  * @requiredField options.pools.pool
2142
2128
  * @requiredField options.pools.pool._id
2143
2129
  * @requiredField options.pools.pool.revision
@@ -2161,4 +2147,4 @@ interface BulkUpdatePoolsOptions {
2161
2147
  returnEntity?: boolean;
2162
2148
  }
2163
2149
 
2164
- export { type ActionEvent, type ApplicationError, type AsyncResult, type BalanceAmount, type Benefit, type BenefitAlreadyRedeemed, type BenefitInfo, 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 PoolInfo, type PoolNotActive, type PoolNotFound, PoolOrigin, type PoolOriginWithLiterals, type PoolPaused, type PoolProgramInfo, type PoolProvisionJobFinished, type PoolProvisioned, type PoolRenewalAction, type PoolRenewalActionActionOneOf, PoolRenewalActionType, type PoolRenewalActionTypeWithLiterals, 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 Update, 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 };
2150
+ export { type ActionEvent, type ApplicationError, type AsyncResult, type BalanceAmount, type Benefit, type BenefitAlreadyRedeemed, type BenefitInfo, 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 PoolInfo, type PoolNotActive, type PoolNotFound, PoolOrigin, type PoolOriginWithLiterals, type PoolPaused, type PoolProgramInfo, type PoolProvisionJobFinished, type PoolProvisioned, type PoolRenewalAction, type PoolRenewalActionActionOneOf, PoolRenewalActionType, type PoolRenewalActionTypeWithLiterals, type PoolRenewed, type PoolResumed, PoolSelectorType, type PoolSelectorTypeWithLiterals, PoolStatus, type PoolStatusUpdateJobFinished, type PoolStatusUpdateJobFinishedContextOneOf, type PoolStatusUpdateParamsPoolInfo, 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 Update, 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 };