@wix/auto_sdk_benefit-programs_pools 1.0.76 → 1.0.78

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 (45) hide show
  1. package/build/cjs/index.d.ts +1 -1
  2. package/build/cjs/index.js +14 -6
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +16 -13
  5. package/build/cjs/index.typings.js +13 -5
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +12 -1
  8. package/build/cjs/meta.js +8 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/schemas.js +18 -18
  11. package/build/cjs/schemas.js.map +1 -1
  12. package/build/es/index.d.mts +1 -1
  13. package/build/es/index.mjs +13 -6
  14. package/build/es/index.mjs.map +1 -1
  15. package/build/es/index.typings.d.mts +16 -13
  16. package/build/es/index.typings.mjs +12 -5
  17. package/build/es/index.typings.mjs.map +1 -1
  18. package/build/es/meta.d.mts +12 -1
  19. package/build/es/meta.mjs +7 -0
  20. package/build/es/meta.mjs.map +1 -1
  21. package/build/es/schemas.mjs +18 -18
  22. package/build/es/schemas.mjs.map +1 -1
  23. package/build/internal/cjs/index.d.ts +1 -1
  24. package/build/internal/cjs/index.js +14 -6
  25. package/build/internal/cjs/index.js.map +1 -1
  26. package/build/internal/cjs/index.typings.d.ts +164 -13
  27. package/build/internal/cjs/index.typings.js +13 -5
  28. package/build/internal/cjs/index.typings.js.map +1 -1
  29. package/build/internal/cjs/meta.d.ts +258 -1
  30. package/build/internal/cjs/meta.js +8 -0
  31. package/build/internal/cjs/meta.js.map +1 -1
  32. package/build/internal/cjs/schemas.js +18 -18
  33. package/build/internal/cjs/schemas.js.map +1 -1
  34. package/build/internal/es/index.d.mts +1 -1
  35. package/build/internal/es/index.mjs +13 -6
  36. package/build/internal/es/index.mjs.map +1 -1
  37. package/build/internal/es/index.typings.d.mts +164 -13
  38. package/build/internal/es/index.typings.mjs +12 -5
  39. package/build/internal/es/index.typings.mjs.map +1 -1
  40. package/build/internal/es/meta.d.mts +258 -1
  41. package/build/internal/es/meta.mjs +7 -0
  42. package/build/internal/es/meta.mjs.map +1 -1
  43. package/build/internal/es/schemas.mjs +18 -18
  44. package/build/internal/es/schemas.mjs.map +1 -1
  45. package/package.json +4 -4
@@ -102,6 +102,37 @@ interface Pool {
102
102
  * @readonly
103
103
  */
104
104
  renewalCount?: number | null;
105
+ /**
106
+ * Previous status of the benefit pool.
107
+ * @internal
108
+ * @readonly
109
+ */
110
+ previousStatus?: PoolStatusWithLiterals;
111
+ /**
112
+ * Origin of the benefit pool.
113
+ * @internal
114
+ * @readonly
115
+ * @immutable
116
+ */
117
+ origin?: PoolOriginWithLiterals;
118
+ /**
119
+ * Action to be performed on pool renewal
120
+ * @internal
121
+ * @readonly
122
+ */
123
+ renewalAction?: PoolRenewalAction;
124
+ /**
125
+ * Pool description.
126
+ * @internal
127
+ * @maxLength 450
128
+ */
129
+ description?: string | null;
130
+ /**
131
+ * Monotonic counter incremented on every change, including system/materialization updates that do not bump revision.
132
+ * @internal
133
+ * @readonly
134
+ */
135
+ changesCounter?: string | null;
105
136
  }
106
137
  declare enum PoolStatus {
107
138
  /** Pool is active. */
@@ -135,6 +166,12 @@ interface CommonIdentificationData extends CommonIdentificationDataIdOneOf {
135
166
  * @format GUID
136
167
  */
137
168
  wixUserId?: string;
169
+ /**
170
+ * Identity type.
171
+ * @internal
172
+ * @readonly
173
+ */
174
+ identityType?: IdentityTypeWithLiterals;
138
175
  }
139
176
  /** @oneof */
140
177
  interface CommonIdentificationDataIdOneOf {
@@ -178,6 +215,19 @@ interface Details {
178
215
  * If this object is empty, you can't set a price for the benefit.
179
216
  */
180
217
  creditConfiguration?: CreditConfiguration;
218
+ /**
219
+ * Defines when benefits can be redeemed.
220
+ *
221
+ * Benefit redemption can be limited by:
222
+ * - **Fixed intervals**: Benefits can be redeemed during specific times of the day or week.
223
+ * - **Rate limited**: Up to a maximum amount of benefits can be redeemed in a specified time period.
224
+ *
225
+ * Expressions can be combined using the *not*, *and*, and *or* operators.
226
+ *
227
+ * Each benefit can override this policy.
228
+ * @internal
229
+ */
230
+ policyExpression?: PolicyExpression;
181
231
  /** Additional information relating to this object. */
182
232
  additionalData?: Record<string, any> | null;
183
233
  }
@@ -201,6 +251,11 @@ interface Benefit {
201
251
  * @decimalValue options { gte:0, maxScale:4 }
202
252
  */
203
253
  price?: string | null;
254
+ /**
255
+ * Overrides the default policy expression in `benefit.details`.
256
+ * @internal
257
+ */
258
+ policyExpression?: PolicyExpression;
204
259
  /** Additional information for this benefit. */
205
260
  additionalData?: Record<string, any> | null;
206
261
  /**
@@ -408,6 +463,12 @@ interface CreditConfiguration {
408
463
  * @maxLength 32
409
464
  */
410
465
  unitDisplayName?: string | null;
466
+ /**
467
+ * Credit unit type.
468
+ * @internal
469
+ * @maxLength 16
470
+ */
471
+ unitType?: string | null;
411
472
  }
412
473
  interface RolloverConfiguration {
413
474
  /** Whether unused credits roll over to a new cycle when a program renews. */
@@ -713,6 +774,11 @@ interface GetPoolResponse {
713
774
  interface UpdatePoolRequest {
714
775
  /** Pool to update. */
715
776
  pool: Pool;
777
+ /**
778
+ * Explicit list of fields to update.
779
+ * @internal
780
+ */
781
+ fieldMask?: string[];
716
782
  }
717
783
  interface UpdatePoolResponse {
718
784
  /** Updated pool. */
@@ -730,6 +796,11 @@ interface DeletePoolResponse {
730
796
  interface QueryPoolsRequest {
731
797
  /** Filter, sort, and paging to apply to the query. */
732
798
  query?: CursorQuery;
799
+ /**
800
+ * If true, the response will reflect a consistent snapshot of the data as of the time the request was received.
801
+ * @internal
802
+ */
803
+ consistent?: boolean | null;
733
804
  }
734
805
  interface CursorQuery extends CursorQueryPagingMethodOneOf {
735
806
  /** 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`. */
@@ -763,6 +834,20 @@ interface Sorting {
763
834
  * Default: `ASC`
764
835
  */
765
836
  order?: SortOrderWithLiterals;
837
+ /**
838
+ * When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by
839
+ * a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.
840
+ *
841
+ * If multiple filters are provided, they are combined with AND operator.
842
+ *
843
+ * Example:
844
+ * Given we have document like {"id": "1", "nestedField": [{"price": 10, "region": "EU"}, {"price": 20, "region": "US"}]}
845
+ * and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be
846
+ * { fieldName: "nestedField.price", "select_items_by": [{"nestedField.region": "US"}] }
847
+ * @internal
848
+ * @maxSize 10
849
+ */
850
+ selectItemsBy?: Record<string, any>[] | null;
766
851
  }
767
852
  declare enum SortOrder {
768
853
  /** Ascending sort order. */
@@ -884,6 +969,26 @@ interface NotEnoughBalance {
884
969
  * @decimalValue options { maxScale:4 }
885
970
  */
886
971
  requestedBalance?: string;
972
+ /**
973
+ * Pool information.
974
+ * @internal
975
+ */
976
+ poolInfo?: PoolInfo;
977
+ /**
978
+ * Program definition information.
979
+ * @internal
980
+ */
981
+ programDefinitionInfo?: ProgramDefinitionInfo;
982
+ /**
983
+ * Program information.
984
+ * @internal
985
+ */
986
+ programInfo?: PoolProgramInfo;
987
+ /**
988
+ * Benefit information.
989
+ * @internal
990
+ */
991
+ benefitInfo?: BenefitInfo;
887
992
  }
888
993
  interface PoolInfo {
889
994
  /** Current pool balance */
@@ -908,6 +1013,12 @@ interface PoolInfo {
908
1013
  * @format GUID
909
1014
  */
910
1015
  poolDefinitionId?: string;
1016
+ /**
1017
+ * Credit unit type.
1018
+ * @internal
1019
+ * @maxLength 16
1020
+ */
1021
+ creditUnitType?: string | null;
911
1022
  }
912
1023
  interface BalanceAmount {
913
1024
  /**
@@ -939,6 +1050,12 @@ interface BenefitInfo {
939
1050
  * @maxLength 64
940
1051
  */
941
1052
  benefitKey?: string;
1053
+ /**
1054
+ * Price of the benefit in credits.
1055
+ * @internal
1056
+ * @decimalValue options { gte:0, maxScale:4 }
1057
+ */
1058
+ price?: string | null;
942
1059
  }
943
1060
  interface PolicyExpressionEvaluatedToFalse {
944
1061
  /**
@@ -953,6 +1070,26 @@ interface PolicyExpressionEvaluatedToFalse {
953
1070
  * @maxSize 10
954
1071
  */
955
1072
  failureDetails?: FailureDetails[];
1073
+ /**
1074
+ * Pool information.
1075
+ * @internal
1076
+ */
1077
+ poolInfo?: PoolInfo;
1078
+ /**
1079
+ * Program definition information.
1080
+ * @internal
1081
+ */
1082
+ programDefinitionInfo?: ProgramDefinitionInfo;
1083
+ /**
1084
+ * Program information.
1085
+ * @internal
1086
+ */
1087
+ programInfo?: PoolProgramInfo;
1088
+ /**
1089
+ * Benefit information.
1090
+ * @internal
1091
+ */
1092
+ benefitInfo?: BenefitInfo;
956
1093
  }
957
1094
  interface FailureDetails {
958
1095
  /**
@@ -987,6 +1124,26 @@ interface PoolNotActive {
987
1124
  poolId?: string;
988
1125
  /** Pool status. */
989
1126
  poolStatus?: PoolStatusWithLiterals;
1127
+ /**
1128
+ * Pool information.
1129
+ * @internal
1130
+ */
1131
+ poolInfo?: PoolInfo;
1132
+ /**
1133
+ * Program definition information.
1134
+ * @internal
1135
+ */
1136
+ programDefinitionInfo?: ProgramDefinitionInfo;
1137
+ /**
1138
+ * Program information.
1139
+ * @internal
1140
+ */
1141
+ programInfo?: PoolProgramInfo;
1142
+ /**
1143
+ * Benefit information.
1144
+ * @internal
1145
+ */
1146
+ benefitInfo?: BenefitInfo;
990
1147
  }
991
1148
  interface PoolNotFound {
992
1149
  /**
@@ -1018,6 +1175,21 @@ interface BenefitNotFound {
1018
1175
  * @maxLength 64
1019
1176
  */
1020
1177
  benefitKey?: string | null;
1178
+ /**
1179
+ * Pool information.
1180
+ * @internal
1181
+ */
1182
+ poolInfo?: PoolInfo;
1183
+ /**
1184
+ * Program definition information.
1185
+ * @internal
1186
+ */
1187
+ programDefinitionInfo?: ProgramDefinitionInfo;
1188
+ /**
1189
+ * Program information.
1190
+ * @internal
1191
+ */
1192
+ programInfo?: PoolProgramInfo;
1021
1193
  }
1022
1194
  interface ReserveBenefitRequest {
1023
1195
  /**
@@ -1140,7 +1312,25 @@ interface CheckBenefitEligibilityRequest {
1140
1312
  * @maxLength 20
1141
1313
  */
1142
1314
  namespace: string;
1315
+ /**
1316
+ * Intent of the eligibility check.
1317
+ *
1318
+ * If not provided, `REDEMPTION` is used by default.
1319
+ * @internal
1320
+ */
1321
+ intent?: IntentWithLiterals;
1322
+ }
1323
+ declare enum Intent {
1324
+ /** Check whether the benefit can be redeemed. */
1325
+ REDEMPTION = "REDEMPTION",
1326
+ /**
1327
+ * Check whether an already redeemed benefit can be reallocated to the target date.
1328
+ * The redeemed credits are kept, so the balance check is skipped.
1329
+ */
1330
+ REALLOCATION = "REALLOCATION"
1143
1331
  }
1332
+ /** @enumType */
1333
+ type IntentWithLiterals = Intent | 'REDEMPTION' | 'REALLOCATION';
1144
1334
  interface CheckBenefitEligibilityResponse {
1145
1335
  /** Result of the eligibility check. */
1146
1336
  result?: EligibilityCheckResult;
@@ -1157,6 +1347,11 @@ declare enum BenefitResultType {
1157
1347
  ELIGIBLE_BENEFIT = "ELIGIBLE_BENEFIT",
1158
1348
  /** Balance is lower than the cost of redeeming the items. */
1159
1349
  NOT_ENOUGH_BALANCE = "NOT_ENOUGH_BALANCE",
1350
+ /**
1351
+ * Policy is false.
1352
+ * @internal
1353
+ */
1354
+ POLICY_EXPRESSION_EVALUATED_TO_FALSE = "POLICY_EXPRESSION_EVALUATED_TO_FALSE",
1160
1355
  /** Pool isn't active. */
1161
1356
  POOL_NOT_ACTIVE = "POOL_NOT_ACTIVE",
1162
1357
  /** Invalid benefit details provided. */
@@ -1185,6 +1380,26 @@ interface EligibleBenefit {
1185
1380
  * @decimalValue options { gte:0, maxScale:4 }
1186
1381
  */
1187
1382
  price?: string | null;
1383
+ /**
1384
+ * Pool information.
1385
+ * @internal
1386
+ */
1387
+ poolInfo?: PoolInfo;
1388
+ /**
1389
+ * Benefit information.
1390
+ * @internal
1391
+ */
1392
+ benefitInfo?: BenefitInfo;
1393
+ /**
1394
+ * Program definition information.
1395
+ * @internal
1396
+ */
1397
+ programDefinitionInfo?: ProgramDefinitionInfo;
1398
+ /**
1399
+ * Program information.
1400
+ * @internal
1401
+ */
1402
+ programInfo?: PoolProgramInfo;
1188
1403
  }
1189
1404
  interface BenefitResult extends BenefitResultResultOneOf {
1190
1405
  /** Returned when item is eligible to be redeemed. */
@@ -1667,8 +1882,18 @@ interface DomainEventBodyOneOf {
1667
1882
  }
1668
1883
  interface EntityCreatedEvent {
1669
1884
  entityAsJson?: string;
1885
+ /**
1886
+ * Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity
1887
+ * @internal
1888
+ */
1889
+ triggeredByUndelete?: boolean | null;
1670
1890
  /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
1671
1891
  restoreInfo?: RestoreInfo;
1892
+ /**
1893
+ * Optional domain-specific metadata defined by the API owner, encoded as JSON.
1894
+ * @internal
1895
+ */
1896
+ additionalMetadataAsJson?: string | null;
1672
1897
  }
1673
1898
  interface RestoreInfo {
1674
1899
  deletedDate?: Date | null;
@@ -1680,10 +1905,42 @@ interface EntityUpdatedEvent {
1680
1905
  * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
1681
1906
  */
1682
1907
  currentEntityAsJson?: string;
1908
+ /**
1909
+ * This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard
1910
+ * wont populate it / have any reference to it in the API.
1911
+ * 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,
1912
+ * the developer should send only the new (current) entity.
1913
+ * An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big
1914
+ * Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.
1915
+ * @internal
1916
+ * @deprecated
1917
+ */
1918
+ previousEntityAsJson?: string | null;
1919
+ /**
1920
+ * Map of fully qualified field paths to their previous values for fields that changed.
1921
+ * 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)
1922
+ * @internal
1923
+ */
1924
+ modifiedFields?: Record<string, any>;
1925
+ /**
1926
+ * Optional domain-specific metadata defined by the API owner, encoded as JSON.
1927
+ * @internal
1928
+ */
1929
+ additionalMetadataAsJson?: string | null;
1683
1930
  }
1684
1931
  interface EntityDeletedEvent {
1932
+ /**
1933
+ * Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled
1934
+ * @internal
1935
+ */
1936
+ movedToTrash?: boolean | null;
1685
1937
  /** Entity that was deleted. */
1686
1938
  deletedEntityAsJson?: string | null;
1939
+ /**
1940
+ * Optional domain-specific metadata defined by the API owner, encoded as JSON.
1941
+ * @internal
1942
+ */
1943
+ additionalMetadataAsJson?: string | null;
1687
1944
  }
1688
1945
  interface ActionEvent {
1689
1946
  bodyAsJson?: string;
@@ -1846,4 +2103,4 @@ declare function getEligibleBenefits(): __PublicMethodMetaInfo<'POST', {}, GetEl
1846
2103
  declare function bulkUpdatePools(): __PublicMethodMetaInfo<'POST', {}, BulkUpdatePoolsRequest$1, BulkUpdatePoolsRequest, BulkUpdatePoolsResponse$1, BulkUpdatePoolsResponse>;
1847
2104
  declare function checkBenefitEligibilityByFilter(): __PublicMethodMetaInfo<'POST', {}, CheckBenefitEligibilityByFilterRequest$1, CheckBenefitEligibilityByFilterRequest, CheckBenefitEligibilityByFilterResponse$1, CheckBenefitEligibilityByFilterResponse>;
1848
2105
 
1849
- export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type ApplicationError as ApplicationErrorOriginal, type AsyncResult as AsyncResultOriginal, type BalanceAmount as BalanceAmountOriginal, type BenefitAlreadyRedeemed as BenefitAlreadyRedeemedOriginal, type BenefitInfo as BenefitInfoOriginal, type BenefitNotFound as BenefitNotFoundOriginal, type Benefit as BenefitOriginal, type BenefitRedeemed as BenefitRedeemedOriginal, type BenefitReservationCanceled as BenefitReservationCanceledOriginal, type BenefitReservationReleased as BenefitReservationReleasedOriginal, type BenefitReserved as BenefitReservedOriginal, type BenefitResult as BenefitResultOriginal, type BenefitResultResultOneOf as BenefitResultResultOneOfOriginal, BenefitResultType as BenefitResultTypeOriginal, type BenefitResultTypeWithLiterals as BenefitResultTypeWithLiteralsOriginal, type BenefitSelector as BenefitSelectorOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, type BulkCheckBenefitEligibilityRequest as BulkCheckBenefitEligibilityRequestOriginal, type BulkCheckBenefitEligibilityResponse as BulkCheckBenefitEligibilityResponseOriginal, type BulkEligibilityCheckResult as BulkEligibilityCheckResultOriginal, type BulkPoolResult as BulkPoolResultOriginal, type BulkUpdatePoolsRequest as BulkUpdatePoolsRequestOriginal, type BulkUpdatePoolsResponse as BulkUpdatePoolsResponseOriginal, type ByPoolDefinitionIdAndProgramDefinitionIdOptions as ByPoolDefinitionIdAndProgramDefinitionIdOptionsOriginal, type ByProgramIdOptions as ByProgramIdOptionsOriginal, type CancelBenefitReservationRequest as CancelBenefitReservationRequestOriginal, type CancelBenefitReservationResponse as CancelBenefitReservationResponseOriginal, type CheckBenefitEligibilityByFilterApplicationErrors as CheckBenefitEligibilityByFilterApplicationErrorsOriginal, type CheckBenefitEligibilityByFilterRequest as CheckBenefitEligibilityByFilterRequestOriginal, type CheckBenefitEligibilityByFilterResponse as CheckBenefitEligibilityByFilterResponseOriginal, type CheckBenefitEligibilityRequest as CheckBenefitEligibilityRequestOriginal, type CheckBenefitEligibilityResponse as CheckBenefitEligibilityResponseOriginal, type CommonIdentificationDataIdOneOf as CommonIdentificationDataIdOneOfOriginal, type CommonIdentificationData as CommonIdentificationDataOriginal, type CountNumberOfPoolsInProvisioningStatusRequest as CountNumberOfPoolsInProvisioningStatusRequestOriginal, type CountNumberOfPoolsInProvisioningStatusResponse as CountNumberOfPoolsInProvisioningStatusResponseOriginal, type CreatePoolRequest as CreatePoolRequestOriginal, type CreatePoolResponse as CreatePoolResponseOriginal, type CreditConfiguration as CreditConfigurationOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, type CustomPolicy as CustomPolicyOriginal, type DeletePoolRequest as DeletePoolRequestOriginal, type DeletePoolResponse as DeletePoolResponseOriginal, type Details as DetailsOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type EligibilityCheckResult as EligibilityCheckResultOriginal, type EligibleBenefit as EligibleBenefitOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type ExtendedFields as ExtendedFieldsOriginal, type FailureDetails as FailureDetailsOriginal, type FixedIntervalPolicy as FixedIntervalPolicyOriginal, type GetEligibleBenefitsApplicationErrors as GetEligibleBenefitsApplicationErrorsOriginal, type GetEligibleBenefitsRequest as GetEligibleBenefitsRequestOriginal, type GetEligibleBenefitsResponse as GetEligibleBenefitsResponseOriginal, type GetPoolRequest as GetPoolRequestOriginal, type GetPoolResponse as GetPoolResponseOriginal, type HealPoolRequest as HealPoolRequestOriginal, type HealPoolResponse as HealPoolResponseOriginal, type HealPoolTenantRequest as HealPoolTenantRequestOriginal, type HealPoolTenantResponse as HealPoolTenantResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, IdentityType as IdentityTypeOriginal, type IdentityTypeWithLiterals as IdentityTypeWithLiteralsOriginal, type InvalidPoolDefinitionReference as InvalidPoolDefinitionReferenceOriginal, type ItemMetadata as ItemMetadataOriginal, type ItemReference as ItemReferenceOriginal, type MaskedPool as MaskedPoolOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type NotEnoughBalance as NotEnoughBalanceOriginal, type PolicyExpressionAnd as PolicyExpressionAndOriginal, type PolicyExpressionEvaluatedToFalse as PolicyExpressionEvaluatedToFalseOriginal, type PolicyExpressionExpressionOneOf as PolicyExpressionExpressionOneOfOriginal, type PolicyExpressionNot as PolicyExpressionNotOriginal, type PolicyExpressionOr as PolicyExpressionOrOriginal, type PolicyExpression as PolicyExpressionOriginal, PolicyExpressionType as PolicyExpressionTypeOriginal, type PolicyExpressionTypeWithLiterals as PolicyExpressionTypeWithLiteralsOriginal, type Policy as PolicyOriginal, type PolicyPolicyOneOf as PolicyPolicyOneOfOriginal, type PoolDefinitionAndProgramDefinition as PoolDefinitionAndProgramDefinitionOriginal, type PoolDefinitionLookupIdIdOneOf as PoolDefinitionLookupIdIdOneOfOriginal, type PoolDefinitionLookupId as PoolDefinitionLookupIdOriginal, type PoolEnded as PoolEndedOriginal, type PoolFilter as PoolFilterOriginal, type PoolInfo as PoolInfoOriginal, type PoolNotActive as PoolNotActiveOriginal, type PoolNotFound as PoolNotFoundOriginal, PoolOrigin as PoolOriginOriginal, type PoolOriginWithLiterals as PoolOriginWithLiteralsOriginal, type Pool as PoolOriginal, type PoolPaused as PoolPausedOriginal, type PoolProgramInfo as PoolProgramInfoOriginal, type PoolProvisionJobFinished as PoolProvisionJobFinishedOriginal, type PoolProvisioned as PoolProvisionedOriginal, type PoolRenewalActionActionOneOf as PoolRenewalActionActionOneOfOriginal, type PoolRenewalAction as PoolRenewalActionOriginal, PoolRenewalActionType as PoolRenewalActionTypeOriginal, type PoolRenewalActionTypeWithLiterals as PoolRenewalActionTypeWithLiteralsOriginal, type PoolRenewed as PoolRenewedOriginal, type PoolResumed as PoolResumedOriginal, type PoolSelector as PoolSelectorOriginal, PoolSelectorType as PoolSelectorTypeOriginal, type PoolSelectorTypeWithLiterals as PoolSelectorTypeWithLiteralsOriginal, PoolStatus as PoolStatusOriginal, type PoolStatusUpdateJobFinishedContextOneOf as PoolStatusUpdateJobFinishedContextOneOfOriginal, type PoolStatusUpdateJobFinished as PoolStatusUpdateJobFinishedOriginal, type PoolStatusUpdateParamsPoolInfo as PoolStatusUpdateParamsPoolInfoOriginal, type PoolStatusWithLiterals as PoolStatusWithLiteralsOriginal, type ProgramDefinitionInfo as ProgramDefinitionInfoOriginal, type ProgramInfo as ProgramInfoOriginal, type ProvisionPoolsForProgramRequest as ProvisionPoolsForProgramRequestOriginal, type ProvisionPoolsForProgramResponse as ProvisionPoolsForProgramResponseOriginal, type ProvisionPoolsForProgramResponseResultOneOf as ProvisionPoolsForProgramResponseResultOneOfOriginal, ProvisionPoolsForProgramResponseType as ProvisionPoolsForProgramResponseTypeOriginal, type ProvisionPoolsForProgramResponseTypeWithLiterals as ProvisionPoolsForProgramResponseTypeWithLiteralsOriginal, type QueryPoolsRequest as QueryPoolsRequestOriginal, type QueryPoolsResponse as QueryPoolsResponseOriginal, type RateLimitedPolicy as RateLimitedPolicyOriginal, type RedeemBenefitApplicationErrors as RedeemBenefitApplicationErrorsOriginal, type RedeemBenefitRequest as RedeemBenefitRequestOriginal, type RedeemBenefitResponse as RedeemBenefitResponseOriginal, type RedemptionDetails as RedemptionDetailsOriginal, type ReleaseBenefitReservationRequest as ReleaseBenefitReservationRequestOriginal, type ReleaseBenefitReservationResponse as ReleaseBenefitReservationResponseOriginal, type RenewPoolsForProgramRequest as RenewPoolsForProgramRequestOriginal, type RenewPoolsForProgramResponse as RenewPoolsForProgramResponseOriginal, type ReserveBenefitRequest as ReserveBenefitRequestOriginal, type ReserveBenefitResponse as ReserveBenefitResponseOriginal, type RestoreInfo as RestoreInfoOriginal, type RolloverConfiguration as RolloverConfigurationOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, type SyncResult as SyncResultOriginal, TimePeriod as TimePeriodOriginal, type TimePeriodWithLiterals as TimePeriodWithLiteralsOriginal, Type as TypeOriginal, type TypeWithLiterals as TypeWithLiteralsOriginal, type Update as UpdateOriginal, type UpdatePoolRequest as UpdatePoolRequestOriginal, type UpdatePoolResponse as UpdatePoolResponseOriginal, type UpdatePoolStatusRequest as UpdatePoolStatusRequestOriginal, type UpdatePoolStatusRequestPoolSelectorOneOf as UpdatePoolStatusRequestPoolSelectorOneOfOriginal, type UpdatePoolStatusResponse as UpdatePoolStatusResponseOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, WeekDay as WeekDayOriginal, type WeekDayWithLiterals as WeekDayWithLiteralsOriginal, type __PublicMethodMetaInfo, bulkCheckBenefitEligibility, bulkUpdatePools, checkBenefitEligibility, checkBenefitEligibilityByFilter, getEligibleBenefits, getPool, queryPools, redeemBenefit, updatePool };
2106
+ export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type ApplicationError as ApplicationErrorOriginal, type AsyncResult as AsyncResultOriginal, type BalanceAmount as BalanceAmountOriginal, type BenefitAlreadyRedeemed as BenefitAlreadyRedeemedOriginal, type BenefitInfo as BenefitInfoOriginal, type BenefitNotFound as BenefitNotFoundOriginal, type Benefit as BenefitOriginal, type BenefitRedeemed as BenefitRedeemedOriginal, type BenefitReservationCanceled as BenefitReservationCanceledOriginal, type BenefitReservationReleased as BenefitReservationReleasedOriginal, type BenefitReserved as BenefitReservedOriginal, type BenefitResult as BenefitResultOriginal, type BenefitResultResultOneOf as BenefitResultResultOneOfOriginal, BenefitResultType as BenefitResultTypeOriginal, type BenefitResultTypeWithLiterals as BenefitResultTypeWithLiteralsOriginal, type BenefitSelector as BenefitSelectorOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, type BulkCheckBenefitEligibilityRequest as BulkCheckBenefitEligibilityRequestOriginal, type BulkCheckBenefitEligibilityResponse as BulkCheckBenefitEligibilityResponseOriginal, type BulkEligibilityCheckResult as BulkEligibilityCheckResultOriginal, type BulkPoolResult as BulkPoolResultOriginal, type BulkUpdatePoolsRequest as BulkUpdatePoolsRequestOriginal, type BulkUpdatePoolsResponse as BulkUpdatePoolsResponseOriginal, type ByPoolDefinitionIdAndProgramDefinitionIdOptions as ByPoolDefinitionIdAndProgramDefinitionIdOptionsOriginal, type ByProgramIdOptions as ByProgramIdOptionsOriginal, type CancelBenefitReservationRequest as CancelBenefitReservationRequestOriginal, type CancelBenefitReservationResponse as CancelBenefitReservationResponseOriginal, type CheckBenefitEligibilityByFilterApplicationErrors as CheckBenefitEligibilityByFilterApplicationErrorsOriginal, type CheckBenefitEligibilityByFilterRequest as CheckBenefitEligibilityByFilterRequestOriginal, type CheckBenefitEligibilityByFilterResponse as CheckBenefitEligibilityByFilterResponseOriginal, type CheckBenefitEligibilityRequest as CheckBenefitEligibilityRequestOriginal, type CheckBenefitEligibilityResponse as CheckBenefitEligibilityResponseOriginal, type CommonIdentificationDataIdOneOf as CommonIdentificationDataIdOneOfOriginal, type CommonIdentificationData as CommonIdentificationDataOriginal, type CountNumberOfPoolsInProvisioningStatusRequest as CountNumberOfPoolsInProvisioningStatusRequestOriginal, type CountNumberOfPoolsInProvisioningStatusResponse as CountNumberOfPoolsInProvisioningStatusResponseOriginal, type CreatePoolRequest as CreatePoolRequestOriginal, type CreatePoolResponse as CreatePoolResponseOriginal, type CreditConfiguration as CreditConfigurationOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, type CustomPolicy as CustomPolicyOriginal, type DeletePoolRequest as DeletePoolRequestOriginal, type DeletePoolResponse as DeletePoolResponseOriginal, type Details as DetailsOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type EligibilityCheckResult as EligibilityCheckResultOriginal, type EligibleBenefit as EligibleBenefitOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type ExtendedFields as ExtendedFieldsOriginal, type FailureDetails as FailureDetailsOriginal, type FixedIntervalPolicy as FixedIntervalPolicyOriginal, type GetEligibleBenefitsApplicationErrors as GetEligibleBenefitsApplicationErrorsOriginal, type GetEligibleBenefitsRequest as GetEligibleBenefitsRequestOriginal, type GetEligibleBenefitsResponse as GetEligibleBenefitsResponseOriginal, type GetPoolRequest as GetPoolRequestOriginal, type GetPoolResponse as GetPoolResponseOriginal, type HealPoolRequest as HealPoolRequestOriginal, type HealPoolResponse as HealPoolResponseOriginal, type HealPoolTenantRequest as HealPoolTenantRequestOriginal, type HealPoolTenantResponse as HealPoolTenantResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, IdentityType as IdentityTypeOriginal, type IdentityTypeWithLiterals as IdentityTypeWithLiteralsOriginal, Intent as IntentOriginal, type IntentWithLiterals as IntentWithLiteralsOriginal, type InvalidPoolDefinitionReference as InvalidPoolDefinitionReferenceOriginal, type ItemMetadata as ItemMetadataOriginal, type ItemReference as ItemReferenceOriginal, type MaskedPool as MaskedPoolOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type NotEnoughBalance as NotEnoughBalanceOriginal, type PolicyExpressionAnd as PolicyExpressionAndOriginal, type PolicyExpressionEvaluatedToFalse as PolicyExpressionEvaluatedToFalseOriginal, type PolicyExpressionExpressionOneOf as PolicyExpressionExpressionOneOfOriginal, type PolicyExpressionNot as PolicyExpressionNotOriginal, type PolicyExpressionOr as PolicyExpressionOrOriginal, type PolicyExpression as PolicyExpressionOriginal, PolicyExpressionType as PolicyExpressionTypeOriginal, type PolicyExpressionTypeWithLiterals as PolicyExpressionTypeWithLiteralsOriginal, type Policy as PolicyOriginal, type PolicyPolicyOneOf as PolicyPolicyOneOfOriginal, type PoolDefinitionAndProgramDefinition as PoolDefinitionAndProgramDefinitionOriginal, type PoolDefinitionLookupIdIdOneOf as PoolDefinitionLookupIdIdOneOfOriginal, type PoolDefinitionLookupId as PoolDefinitionLookupIdOriginal, type PoolEnded as PoolEndedOriginal, type PoolFilter as PoolFilterOriginal, type PoolInfo as PoolInfoOriginal, type PoolNotActive as PoolNotActiveOriginal, type PoolNotFound as PoolNotFoundOriginal, PoolOrigin as PoolOriginOriginal, type PoolOriginWithLiterals as PoolOriginWithLiteralsOriginal, type Pool as PoolOriginal, type PoolPaused as PoolPausedOriginal, type PoolProgramInfo as PoolProgramInfoOriginal, type PoolProvisionJobFinished as PoolProvisionJobFinishedOriginal, type PoolProvisioned as PoolProvisionedOriginal, type PoolRenewalActionActionOneOf as PoolRenewalActionActionOneOfOriginal, type PoolRenewalAction as PoolRenewalActionOriginal, PoolRenewalActionType as PoolRenewalActionTypeOriginal, type PoolRenewalActionTypeWithLiterals as PoolRenewalActionTypeWithLiteralsOriginal, type PoolRenewed as PoolRenewedOriginal, type PoolResumed as PoolResumedOriginal, type PoolSelector as PoolSelectorOriginal, PoolSelectorType as PoolSelectorTypeOriginal, type PoolSelectorTypeWithLiterals as PoolSelectorTypeWithLiteralsOriginal, PoolStatus as PoolStatusOriginal, type PoolStatusUpdateJobFinishedContextOneOf as PoolStatusUpdateJobFinishedContextOneOfOriginal, type PoolStatusUpdateJobFinished as PoolStatusUpdateJobFinishedOriginal, type PoolStatusUpdateParamsPoolInfo as PoolStatusUpdateParamsPoolInfoOriginal, type PoolStatusWithLiterals as PoolStatusWithLiteralsOriginal, type ProgramDefinitionInfo as ProgramDefinitionInfoOriginal, type ProgramInfo as ProgramInfoOriginal, type ProvisionPoolsForProgramRequest as ProvisionPoolsForProgramRequestOriginal, type ProvisionPoolsForProgramResponse as ProvisionPoolsForProgramResponseOriginal, type ProvisionPoolsForProgramResponseResultOneOf as ProvisionPoolsForProgramResponseResultOneOfOriginal, ProvisionPoolsForProgramResponseType as ProvisionPoolsForProgramResponseTypeOriginal, type ProvisionPoolsForProgramResponseTypeWithLiterals as ProvisionPoolsForProgramResponseTypeWithLiteralsOriginal, type QueryPoolsRequest as QueryPoolsRequestOriginal, type QueryPoolsResponse as QueryPoolsResponseOriginal, type RateLimitedPolicy as RateLimitedPolicyOriginal, type RedeemBenefitApplicationErrors as RedeemBenefitApplicationErrorsOriginal, type RedeemBenefitRequest as RedeemBenefitRequestOriginal, type RedeemBenefitResponse as RedeemBenefitResponseOriginal, type RedemptionDetails as RedemptionDetailsOriginal, type ReleaseBenefitReservationRequest as ReleaseBenefitReservationRequestOriginal, type ReleaseBenefitReservationResponse as ReleaseBenefitReservationResponseOriginal, type RenewPoolsForProgramRequest as RenewPoolsForProgramRequestOriginal, type RenewPoolsForProgramResponse as RenewPoolsForProgramResponseOriginal, type ReserveBenefitRequest as ReserveBenefitRequestOriginal, type ReserveBenefitResponse as ReserveBenefitResponseOriginal, type RestoreInfo as RestoreInfoOriginal, type RolloverConfiguration as RolloverConfigurationOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, type SyncResult as SyncResultOriginal, TimePeriod as TimePeriodOriginal, type TimePeriodWithLiterals as TimePeriodWithLiteralsOriginal, Type as TypeOriginal, type TypeWithLiterals as TypeWithLiteralsOriginal, type Update as UpdateOriginal, type UpdatePoolRequest as UpdatePoolRequestOriginal, type UpdatePoolResponse as UpdatePoolResponseOriginal, type UpdatePoolStatusRequest as UpdatePoolStatusRequestOriginal, type UpdatePoolStatusRequestPoolSelectorOneOf as UpdatePoolStatusRequestPoolSelectorOneOfOriginal, type UpdatePoolStatusResponse as UpdatePoolStatusResponseOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, WeekDay as WeekDayOriginal, type WeekDayWithLiterals as WeekDayWithLiteralsOriginal, type __PublicMethodMetaInfo, bulkCheckBenefitEligibility, bulkUpdatePools, checkBenefitEligibility, checkBenefitEligibilityByFilter, getEligibleBenefits, getPool, queryPools, redeemBenefit, updatePool };
@@ -22,6 +22,7 @@ var meta_exports = {};
22
22
  __export(meta_exports, {
23
23
  BenefitResultTypeOriginal: () => BenefitResultType,
24
24
  IdentityTypeOriginal: () => IdentityType,
25
+ IntentOriginal: () => Intent,
25
26
  PolicyExpressionTypeOriginal: () => PolicyExpressionType,
26
27
  PoolOriginOriginal: () => PoolOrigin,
27
28
  PoolRenewalActionTypeOriginal: () => PoolRenewalActionType,
@@ -594,9 +595,15 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
594
595
  SortOrder2["DESC"] = "DESC";
595
596
  return SortOrder2;
596
597
  })(SortOrder || {});
598
+ var Intent = /* @__PURE__ */ ((Intent2) => {
599
+ Intent2["REDEMPTION"] = "REDEMPTION";
600
+ Intent2["REALLOCATION"] = "REALLOCATION";
601
+ return Intent2;
602
+ })(Intent || {});
597
603
  var BenefitResultType = /* @__PURE__ */ ((BenefitResultType2) => {
598
604
  BenefitResultType2["ELIGIBLE_BENEFIT"] = "ELIGIBLE_BENEFIT";
599
605
  BenefitResultType2["NOT_ENOUGH_BALANCE"] = "NOT_ENOUGH_BALANCE";
606
+ BenefitResultType2["POLICY_EXPRESSION_EVALUATED_TO_FALSE"] = "POLICY_EXPRESSION_EVALUATED_TO_FALSE";
600
607
  BenefitResultType2["POOL_NOT_ACTIVE"] = "POOL_NOT_ACTIVE";
601
608
  BenefitResultType2["BENEFIT_NOT_FOUND"] = "BENEFIT_NOT_FOUND";
602
609
  BenefitResultType2["POOL_NOT_FOUND"] = "POOL_NOT_FOUND";
@@ -788,6 +795,7 @@ function checkBenefitEligibilityByFilter2() {
788
795
  0 && (module.exports = {
789
796
  BenefitResultTypeOriginal,
790
797
  IdentityTypeOriginal,
798
+ IntentOriginal,
791
799
  PolicyExpressionTypeOriginal,
792
800
  PoolOriginOriginal,
793
801
  PoolRenewalActionTypeOriginal,