@wix/auto_sdk_benefit-programs_pools 1.0.42 → 1.0.44

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 (37) hide show
  1. package/build/cjs/index.d.ts +1 -1
  2. package/build/cjs/index.js +9 -8
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +26 -24
  5. package/build/cjs/index.typings.js +9 -8
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +24 -22
  8. package/build/cjs/meta.js +9 -8
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +1 -1
  11. package/build/es/index.mjs +8 -7
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +26 -24
  14. package/build/es/index.typings.mjs +8 -7
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +24 -22
  17. package/build/es/meta.mjs +8 -7
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +2 -2
  20. package/build/internal/cjs/index.js +9 -8
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +27 -26
  23. package/build/internal/cjs/index.typings.js +9 -8
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +24 -22
  26. package/build/internal/cjs/meta.js +9 -8
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +2 -2
  29. package/build/internal/es/index.mjs +8 -7
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +27 -26
  32. package/build/internal/es/index.typings.mjs +8 -7
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +24 -22
  35. package/build/internal/es/meta.mjs +8 -7
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -362,29 +362,31 @@ declare enum WeekDay {
362
362
  }
363
363
  /** @enumType */
364
364
  type WeekDayWithLiterals = WeekDay | 'UNKNOWN' | 'MONDAY' | 'TUESDAY' | 'WEDNESDAY' | 'THURSDAY' | 'FRIDAY' | 'SATURDAY' | 'SUNDAY';
365
- interface RateLimitedPolicy extends RateLimitedPolicyPeriodOneOf {
366
- /** Fixed interval used to limit benefit redemption. */
367
- fixedIntervalOptions?: FixedIntervalPolicy;
365
+ interface RateLimitedPolicy {
368
366
  /** Maximum number of times a benefit can be redeemed per specified time period. */
369
367
  times?: number;
370
- /** Time period type. */
371
- type?: RateLimitedPolicyTypeWithLiterals;
372
- }
373
- /** @oneof */
374
- interface RateLimitedPolicyPeriodOneOf {
375
- /** Fixed interval used to limit benefit redemption. */
376
- fixedIntervalOptions?: FixedIntervalPolicy;
368
+ /** Time period for the rate limit, resets at the start of each period. */
369
+ timePeriod?: TimePeriodWithLiterals;
370
+ /**
371
+ * Unique identifier for the quota resource. Set during creation and immutable afterwards.
372
+ * @format GUID
373
+ * @immutable
374
+ * @readonly
375
+ */
376
+ quotaId?: string | null;
377
377
  }
378
- declare enum RateLimitedPolicyType {
379
- /** Unknown rate limit method. */
380
- UNKNOWN = "UNKNOWN",
381
- /** Time period is defined using `fixedIntervalOptions`. */
382
- FIXED_INTERVAL = "FIXED_INTERVAL",
383
- /** Time period is from one program renewal to the next. */
384
- PER_CYCLE = "PER_CYCLE"
378
+ declare enum TimePeriod {
379
+ /** Unknown time period. */
380
+ UNKNOWN_TIME_PERIOD = "UNKNOWN_TIME_PERIOD",
381
+ /** Day, starting at midnight. */
382
+ DAY = "DAY",
383
+ /** Calendar week, starting day depending on locale. */
384
+ WEEK = "WEEK",
385
+ /** Calendar month, starting on the first day of the month. */
386
+ MONTH = "MONTH"
385
387
  }
386
388
  /** @enumType */
387
- type RateLimitedPolicyTypeWithLiterals = RateLimitedPolicyType | 'UNKNOWN' | 'FIXED_INTERVAL' | 'PER_CYCLE';
389
+ type TimePeriodWithLiterals = TimePeriod | 'UNKNOWN_TIME_PERIOD' | 'DAY' | 'WEEK' | 'MONTH';
388
390
  /** Custom policy as implemented by the Entitlement Policy Provider */
389
391
  interface CustomPolicy {
390
392
  /**
@@ -1241,7 +1243,7 @@ interface BenefitSelector {
1241
1243
  /**
1242
1244
  * Amount of items to check.
1243
1245
  *
1244
- * Ensures the balance is high enough to redeem this many it
1246
+ * Ensures the balance is high enough to redeem this many items.
1245
1247
  * @min 1
1246
1248
  */
1247
1249
  count?: number;
@@ -1601,7 +1603,7 @@ interface CheckEligibilityByFilterRequest {
1601
1603
  /**
1602
1604
  * Amount of items to check.
1603
1605
  *
1604
- * Ensures the balance is high enough to redeem this many it
1606
+ * Ensures the balance is high enough to redeem this many items.
1605
1607
  * @min 1
1606
1608
  */
1607
1609
  count: number;
@@ -1612,7 +1614,7 @@ interface CheckEligibilityByFilterRequest {
1612
1614
  */
1613
1615
  targetDate?: Date | null;
1614
1616
  /** Pool beneficiary. */
1615
- beneficiary: CommonIdentificationData;
1617
+ beneficiary?: CommonIdentificationData;
1616
1618
  /** Additional information. */
1617
1619
  additionalData?: Record<string, any> | null;
1618
1620
  }
@@ -2230,7 +2232,7 @@ interface CheckEligibilityByFilterOptions {
2230
2232
  /**
2231
2233
  * Amount of items to check.
2232
2234
  *
2233
- * Ensures the balance is high enough to redeem this many it
2235
+ * Ensures the balance is high enough to redeem this many items.
2234
2236
  * @min 1
2235
2237
  */
2236
2238
  count: number;
@@ -2241,9 +2243,9 @@ interface CheckEligibilityByFilterOptions {
2241
2243
  */
2242
2244
  targetDate?: Date | null;
2243
2245
  /** Pool beneficiary. */
2244
- beneficiary: CommonIdentificationData;
2246
+ beneficiary?: CommonIdentificationData;
2245
2247
  /** Additional information. */
2246
2248
  additionalData?: Record<string, any> | null;
2247
2249
  }
2248
2250
 
2249
- 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 CheckEligibilityByFilterOptions, type CheckEligibilityByFilterRequest, type CheckEligibilityByFilterResponse, 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 PoolFilter, 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, typedQueryPools, updatePool };
2251
+ 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 CheckEligibilityByFilterOptions, type CheckEligibilityByFilterRequest, type CheckEligibilityByFilterResponse, 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 PoolFilter, 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 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, TimePeriod, type TimePeriodWithLiterals, 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, typedQueryPools, updatePool };
@@ -539,12 +539,13 @@ var WeekDay = /* @__PURE__ */ ((WeekDay2) => {
539
539
  WeekDay2["SUNDAY"] = "SUNDAY";
540
540
  return WeekDay2;
541
541
  })(WeekDay || {});
542
- var RateLimitedPolicyType = /* @__PURE__ */ ((RateLimitedPolicyType2) => {
543
- RateLimitedPolicyType2["UNKNOWN"] = "UNKNOWN";
544
- RateLimitedPolicyType2["FIXED_INTERVAL"] = "FIXED_INTERVAL";
545
- RateLimitedPolicyType2["PER_CYCLE"] = "PER_CYCLE";
546
- return RateLimitedPolicyType2;
547
- })(RateLimitedPolicyType || {});
542
+ var TimePeriod = /* @__PURE__ */ ((TimePeriod2) => {
543
+ TimePeriod2["UNKNOWN_TIME_PERIOD"] = "UNKNOWN_TIME_PERIOD";
544
+ TimePeriod2["DAY"] = "DAY";
545
+ TimePeriod2["WEEK"] = "WEEK";
546
+ TimePeriod2["MONTH"] = "MONTH";
547
+ return TimePeriod2;
548
+ })(TimePeriod || {});
548
549
  var PoolOrigin = /* @__PURE__ */ ((PoolOrigin2) => {
549
550
  PoolOrigin2["UNKNOWN"] = "UNKNOWN";
550
551
  PoolOrigin2["PROVISION"] = "PROVISION";
@@ -940,8 +941,8 @@ export {
940
941
  PoolSelectorType,
941
942
  PoolStatus,
942
943
  ProvisionPoolsForProgramResponseType,
943
- RateLimitedPolicyType,
944
944
  SortOrder,
945
+ TimePeriod,
945
946
  Type,
946
947
  WebhookIdentityType,
947
948
  WeekDay,