@wix/auto_sdk_benefit-programs_pools 1.0.28 → 1.0.29

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.
@@ -154,6 +154,18 @@ interface CommonIdentificationDataIdOneOf {
154
154
  */
155
155
  wixUserId?: string;
156
156
  }
157
+ declare enum IdentityType {
158
+ /** Unknown type. This value is not used. */
159
+ UNKNOWN = "UNKNOWN",
160
+ /** A site visitor who has not logged in. */
161
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
162
+ /** A logged-in site member. */
163
+ MEMBER = "MEMBER",
164
+ /** A Wix account holder, such as a site owner or contributor. */
165
+ WIX_USER = "WIX_USER"
166
+ }
167
+ /** @enumType */
168
+ type IdentityTypeWithLiterals = IdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER';
157
169
  interface Details {
158
170
  /**
159
171
  * List of benefits.
@@ -208,6 +220,185 @@ interface Benefit {
208
220
  */
209
221
  description?: string | null;
210
222
  }
223
+ interface PolicyExpression extends PolicyExpressionExpressionOneOf {
224
+ /** Benefits can be redeemed if the expression in this object is not fulfilled. */
225
+ operatorNotOptions?: PolicyExpressionNot;
226
+ /** Benefits can be redeemed if all the expression in this object's array are fulfilled. */
227
+ operatorAndOptions?: PolicyExpressionAnd;
228
+ /** Benefits can be redeemed if at least one of the expressions in this object's array is fulfilled. */
229
+ operatorOrOptions?: PolicyExpressionOr;
230
+ /** Defines when benefits can be redeemed or how many benefits can be redeemed in a specific time period. */
231
+ policyOptions?: Policy;
232
+ /** Policy expression type. */
233
+ type?: PolicyExpressionTypeWithLiterals;
234
+ }
235
+ /** @oneof */
236
+ interface PolicyExpressionExpressionOneOf {
237
+ /** Benefits can be redeemed if the expression in this object is not fulfilled. */
238
+ operatorNotOptions?: PolicyExpressionNot;
239
+ /** Benefits can be redeemed if all the expression in this object's array are fulfilled. */
240
+ operatorAndOptions?: PolicyExpressionAnd;
241
+ /** Benefits can be redeemed if at least one of the expressions in this object's array is fulfilled. */
242
+ operatorOrOptions?: PolicyExpressionOr;
243
+ /** Defines when benefits can be redeemed or how many benefits can be redeemed in a specific time period. */
244
+ policyOptions?: Policy;
245
+ }
246
+ declare enum PolicyExpressionType {
247
+ UNKNOWN = "UNKNOWN",
248
+ /** Use with `operatorNotOptions`. */
249
+ OPERATOR_NOT = "OPERATOR_NOT",
250
+ /** Use with `operatorAndOptions`. */
251
+ OPERATOR_AND = "OPERATOR_AND",
252
+ /** Use with `operatorOrOptions`. */
253
+ OPERATOR_OR = "OPERATOR_OR",
254
+ /** Use with `policyOptions`. */
255
+ POLICY = "POLICY"
256
+ }
257
+ /** @enumType */
258
+ type PolicyExpressionTypeWithLiterals = PolicyExpressionType | 'UNKNOWN' | 'OPERATOR_NOT' | 'OPERATOR_AND' | 'OPERATOR_OR' | 'POLICY';
259
+ interface PolicyExpressionNot {
260
+ /** Policy expression. If this expression is not fulfilled, benefits can be redeemed. */
261
+ expression?: PolicyExpression;
262
+ }
263
+ interface PolicyExpressionAnd {
264
+ /**
265
+ * Array of policy expressions. If all expressions are fulfilled, benefits can be redeemed.
266
+ * @minSize 2
267
+ * @maxSize 10
268
+ */
269
+ expressions?: PolicyExpression[];
270
+ }
271
+ interface PolicyExpressionOr {
272
+ /**
273
+ * Array of policy expressions. If at least one expression is fulfilled, benefits can be redeemed.
274
+ * @minSize 2
275
+ * @maxSize 10
276
+ */
277
+ expressions?: PolicyExpression[];
278
+ }
279
+ interface Policy extends PolicyPolicyOneOf {
280
+ /**
281
+ * Defines an interval during which the policy expression is fulfilled.
282
+ *
283
+ * If `fromWeekDay` and `toWeekDay` are defined, this interval applies weekly. Otherwise, it applies daily.
284
+ */
285
+ fixedIntervalOptions?: FixedIntervalPolicy;
286
+ /** Maximum amount of times a benefit can be redeemed during a specified time period. */
287
+ rateLimitedOptions?: RateLimitedPolicy;
288
+ /** Custom policy defined by a different app. */
289
+ customOptions?: CustomPolicy;
290
+ /** Policy type. */
291
+ type?: TypeWithLiterals;
292
+ }
293
+ /** @oneof */
294
+ interface PolicyPolicyOneOf {
295
+ /**
296
+ * Defines an interval during which the policy expression is fulfilled.
297
+ *
298
+ * If `fromWeekDay` and `toWeekDay` are defined, this interval applies weekly. Otherwise, it applies daily.
299
+ */
300
+ fixedIntervalOptions?: FixedIntervalPolicy;
301
+ /** Maximum amount of times a benefit can be redeemed during a specified time period. */
302
+ rateLimitedOptions?: RateLimitedPolicy;
303
+ /** Custom policy defined by a different app. */
304
+ customOptions?: CustomPolicy;
305
+ }
306
+ declare enum Type {
307
+ /** Unknown policy type. */
308
+ UNKNOWN = "UNKNOWN",
309
+ /** Use with `fixedIntervalOptions`. */
310
+ FIXED_INTERVAL = "FIXED_INTERVAL",
311
+ /** Use with `rateLimitedOptions`. */
312
+ RATE_LIMITED = "RATE_LIMITED",
313
+ /** Use with `customOptions`. */
314
+ CUSTOM = "CUSTOM"
315
+ }
316
+ /** @enumType */
317
+ type TypeWithLiterals = Type | 'UNKNOWN' | 'FIXED_INTERVAL' | 'RATE_LIMITED' | 'CUSTOM';
318
+ interface FixedIntervalPolicy {
319
+ /** Weekday that this interval starts from. If this field is defined, then `toWeekDay` is required. */
320
+ fromWeekDay?: WeekDayWithLiterals;
321
+ /** Weekday that this interval ends at. If this field is defined, then `fromWeekDay` is required. */
322
+ toWeekDay?: WeekDayWithLiterals;
323
+ /**
324
+ * Hour that this interval starts from. If this field is defined, then `toHour` is required.
325
+ * @max 23
326
+ */
327
+ fromHour?: number | null;
328
+ /**
329
+ * Hour that this interval ends at. If this field is defined, then `fromHour` is required.
330
+ * @max 23
331
+ */
332
+ toHour?: number | null;
333
+ /**
334
+ * Minute that this interval starts from. If this field is defined, then `toMinute` is required.
335
+ * @max 59
336
+ */
337
+ fromMinute?: number | null;
338
+ /**
339
+ * Minute that this interval ends at. If this field is defined, then `fromMinute` is required.
340
+ * @max 59
341
+ */
342
+ toMinute?: number | null;
343
+ }
344
+ declare enum WeekDay {
345
+ /** Unknown weekday. */
346
+ UNKNOWN = "UNKNOWN",
347
+ /** Monday. */
348
+ MONDAY = "MONDAY",
349
+ /** Tuesday. */
350
+ TUESDAY = "TUESDAY",
351
+ /** Wednesday. */
352
+ WEDNESDAY = "WEDNESDAY",
353
+ /** Thursday. */
354
+ THURSDAY = "THURSDAY",
355
+ /** Friday. */
356
+ FRIDAY = "FRIDAY",
357
+ /** Saturday. */
358
+ SATURDAY = "SATURDAY",
359
+ /** Sunday. */
360
+ SUNDAY = "SUNDAY"
361
+ }
362
+ /** @enumType */
363
+ type WeekDayWithLiterals = WeekDay | 'UNKNOWN' | 'MONDAY' | 'TUESDAY' | 'WEDNESDAY' | 'THURSDAY' | 'FRIDAY' | 'SATURDAY' | 'SUNDAY';
364
+ interface RateLimitedPolicy extends RateLimitedPolicyPeriodOneOf {
365
+ /** Fixed interval used to limit benefit redemption. */
366
+ fixedIntervalOptions?: FixedIntervalPolicy;
367
+ /** Maximum number of times a benefit can be redeemed per specified time period. */
368
+ times?: number;
369
+ /** Time period type. */
370
+ type?: RateLimitedPolicyTypeWithLiterals;
371
+ }
372
+ /** @oneof */
373
+ interface RateLimitedPolicyPeriodOneOf {
374
+ /** Fixed interval used to limit benefit redemption. */
375
+ fixedIntervalOptions?: FixedIntervalPolicy;
376
+ }
377
+ declare enum RateLimitedPolicyType {
378
+ /** Unknown rate limit method. */
379
+ UNKNOWN = "UNKNOWN",
380
+ /** Time period is defined using `fixedIntervalOptions`. */
381
+ FIXED_INTERVAL = "FIXED_INTERVAL",
382
+ /** Time period is from one program renewal to the next. */
383
+ PER_CYCLE = "PER_CYCLE"
384
+ }
385
+ /** @enumType */
386
+ type RateLimitedPolicyTypeWithLiterals = RateLimitedPolicyType | 'UNKNOWN' | 'FIXED_INTERVAL' | 'PER_CYCLE';
387
+ /** Custom policy as implemented by the Entitlement Policy Provider */
388
+ interface CustomPolicy {
389
+ /**
390
+ * Policy ID.
391
+ * @format GUID
392
+ */
393
+ id?: string;
394
+ /**
395
+ * ID of the app providing the policy.
396
+ * @format GUID
397
+ */
398
+ appId?: string | null;
399
+ /** Additional information for this custom policy. */
400
+ additionalData?: Record<string, any> | null;
401
+ }
211
402
  interface CreditConfiguration {
212
403
  /**
213
404
  * Initial available amount for associated balances.
@@ -270,6 +461,58 @@ interface PoolProgramInfo {
270
461
  */
271
462
  externalId?: string | null;
272
463
  }
464
+ declare enum PoolOrigin {
465
+ /** Unknown pool origin. */
466
+ UNKNOWN = "UNKNOWN",
467
+ /** Benefit pool created by a program provision. */
468
+ PROVISION = "PROVISION",
469
+ /** Benefit pool was created when pool definition was added to program definition. */
470
+ CASCADE = "CASCADE"
471
+ }
472
+ /** @enumType */
473
+ type PoolOriginWithLiterals = PoolOrigin | 'UNKNOWN' | 'PROVISION' | 'CASCADE';
474
+ interface PoolProvisioned {
475
+ /** Pool which has been provisioned */
476
+ pool?: Pool;
477
+ }
478
+ interface PoolRenewed {
479
+ /** Pool which has been granted */
480
+ pool?: Pool;
481
+ }
482
+ interface BenefitRedeemed {
483
+ /** Pool which has been redeemed */
484
+ pool?: Pool;
485
+ /** Details of the redemption */
486
+ redemptionDetails?: RedemptionDetails;
487
+ }
488
+ interface RedemptionDetails {
489
+ /**
490
+ * Id of the redemption transaction
491
+ * @format GUID
492
+ */
493
+ transactionId?: string;
494
+ /** Reference of the item that is being redeemed */
495
+ itemReference?: ItemReference;
496
+ /**
497
+ * Number of of items to redeem
498
+ * @min 1
499
+ */
500
+ itemCount?: number;
501
+ /**
502
+ * Date at which the item will be used. Target date does not necessarily equal the redemption date. Credits are redeemed immediately.
503
+ * This date is only used for validations that may be performed by entitlement providers
504
+ */
505
+ targetDate?: Date | null;
506
+ /**
507
+ * Idempotency key
508
+ * @maxLength 200
509
+ */
510
+ idempotencyKey?: string;
511
+ /** Additional info provided during redemption */
512
+ additionalData?: Record<string, any> | null;
513
+ /** Beneficiary of the entitlement */
514
+ beneficiary?: CommonIdentificationData;
515
+ }
273
516
  interface ItemReference {
274
517
  /**
275
518
  * External ID of the item.
@@ -287,6 +530,100 @@ interface ItemReference {
287
530
  */
288
531
  providerAppId?: string;
289
532
  }
533
+ interface PoolPaused {
534
+ /** Pool which has been paused */
535
+ pool?: Pool;
536
+ }
537
+ interface PoolResumed {
538
+ /** Pool which has been resumed */
539
+ pool?: Pool;
540
+ }
541
+ interface PoolEnded {
542
+ /** Pool which has been ended */
543
+ pool?: Pool;
544
+ }
545
+ interface BenefitReserved {
546
+ /** Pool which was used to perform this transaction */
547
+ pool?: Pool;
548
+ /** Details of the redemption */
549
+ redemptionDetails?: RedemptionDetails;
550
+ }
551
+ interface BenefitReservationCanceled {
552
+ /** Pool which was used to perform this transaction */
553
+ pool?: Pool;
554
+ /**
555
+ * Id of the canceled reservation transaction
556
+ * @format GUID
557
+ */
558
+ transactionId?: string;
559
+ }
560
+ interface BenefitReservationReleased {
561
+ /** Pool which was used to perform this transaction */
562
+ pool?: Pool;
563
+ /**
564
+ * Id of the released reservation transaction
565
+ * @format GUID
566
+ */
567
+ transactionId?: string;
568
+ }
569
+ interface PoolProvisionJobFinished {
570
+ /**
571
+ * Program id
572
+ * @format GUID
573
+ */
574
+ programId?: string;
575
+ /** Processed item count */
576
+ processedItemCount?: number;
577
+ /** Origin of the pool */
578
+ origin?: PoolOriginWithLiterals;
579
+ }
580
+ interface PoolStatusUpdateJobFinished extends PoolStatusUpdateJobFinishedContextOneOf {
581
+ /** The id of the pool definition that is being updated */
582
+ poolDefinitionAndProgramDefinition?: PoolDefinitionAndProgramDefinition;
583
+ /** Update the status of all pools in the program */
584
+ programInfo?: ProgramInfo;
585
+ /** Target status of the pool */
586
+ targetStatus?: PoolStatusWithLiterals;
587
+ /** The total number of items that were processed */
588
+ processedItemCount?: number;
589
+ }
590
+ /** @oneof */
591
+ interface PoolStatusUpdateJobFinishedContextOneOf {
592
+ /** The id of the pool definition that is being updated */
593
+ poolDefinitionAndProgramDefinition?: PoolDefinitionAndProgramDefinition;
594
+ /** Update the status of all pools in the program */
595
+ programInfo?: ProgramInfo;
596
+ }
597
+ interface PoolDefinitionAndProgramDefinition {
598
+ /**
599
+ * The id of the pool definition that is being updated
600
+ * @format GUID
601
+ * @readonly
602
+ */
603
+ poolDefinitionId?: string;
604
+ /**
605
+ * The key of the program that is being updated
606
+ * @format GUID
607
+ */
608
+ programDefinitionId?: string | null;
609
+ }
610
+ interface ProgramInfo {
611
+ /**
612
+ * The key of the program that is being updated
613
+ * @format GUID
614
+ */
615
+ programId?: string;
616
+ /** Additional data that was provided when the job was submitted */
617
+ additionalData?: Record<string, any> | null;
618
+ }
619
+ interface CreatePoolRequest {
620
+ /** Pool to be created. */
621
+ pool?: Pool;
622
+ }
623
+ interface CreatePoolResponse {
624
+ /** Created pool. */
625
+ pool?: Pool;
626
+ }
290
627
  interface GetPoolRequest {
291
628
  /**
292
629
  * ID of the pool to retrieve.
@@ -306,6 +643,15 @@ interface UpdatePoolResponse {
306
643
  /** Updated pool. */
307
644
  pool?: Pool;
308
645
  }
646
+ interface DeletePoolRequest {
647
+ /**
648
+ * ID of the pool to delete.
649
+ * @format GUID
650
+ */
651
+ poolId?: string;
652
+ }
653
+ interface DeletePoolResponse {
654
+ }
309
655
  interface QueryPoolsRequest {
310
656
  /** Filter, sort, and paging to apply to the query. */
311
657
  query: CursorQuery;
@@ -464,6 +810,45 @@ interface NotEnoughBalance {
464
810
  */
465
811
  requestedBalance?: string;
466
812
  }
813
+ interface PolicyExpressionEvaluatedToFalse {
814
+ /**
815
+ * Pool ID.
816
+ * @format GUID
817
+ */
818
+ poolId?: string;
819
+ /** Item reference. */
820
+ itemReference?: ItemReference;
821
+ /**
822
+ * Failure details.
823
+ * @maxSize 10
824
+ */
825
+ failureDetails?: FailureDetails[];
826
+ }
827
+ interface FailureDetails {
828
+ /**
829
+ * Failure code
830
+ * @minLength 1
831
+ * @maxLength 64
832
+ */
833
+ code?: string;
834
+ /**
835
+ * Failure message
836
+ * @maxLength 256
837
+ */
838
+ message?: string | null;
839
+ /**
840
+ * Policy id
841
+ * @format GUID
842
+ */
843
+ policyId?: string | null;
844
+ /**
845
+ * App that owns the policy
846
+ * @format GUID
847
+ */
848
+ appId?: string | null;
849
+ /** Information provided by the policy */
850
+ errorData?: Record<string, any> | null;
851
+ }
467
852
  interface PoolNotActive {
468
853
  /**
469
854
  * Pool ID.
@@ -480,6 +865,18 @@ interface PoolNotFound {
480
865
  */
481
866
  poolId?: string;
482
867
  }
868
+ interface BenefitAlreadyRedeemed {
869
+ /**
870
+ * Pool ID
871
+ * @format GUID
872
+ */
873
+ poolId?: string;
874
+ /**
875
+ * Idempotency key of the request that failed
876
+ * @maxLength 200
877
+ */
878
+ idempotencyKey?: string;
879
+ }
483
880
  interface BenefitNotFound {
484
881
  /**
485
882
  * Pool ID.
@@ -492,6 +889,91 @@ interface BenefitNotFound {
492
889
  */
493
890
  benefitKey?: string | null;
494
891
  }
892
+ interface ReserveBenefitRequest {
893
+ /**
894
+ * Id of the pool that is being redeemed from
895
+ * @format GUID
896
+ */
897
+ poolId?: string;
898
+ /** Reference of the item that is being redeemed. */
899
+ itemReference?: ItemReference;
900
+ /**
901
+ * Key of the benefit to be redeemed, associated with a particular benefit.
902
+ *
903
+ * This key must be specified to ensure the correct benefit is redeemed.
904
+ *
905
+ * Default: The first eligible benefit in the benefit pool will be redeemed.
906
+ * @maxLength 64
907
+ */
908
+ benefitKey?: string | null;
909
+ /**
910
+ * Number of items to redeem.
911
+ * @min 1
912
+ */
913
+ count?: number;
914
+ /**
915
+ * Date when the benefit item will be used.
916
+ *
917
+ * While the credit balance is adjusted immediately upon the redemption request, the target date may be set for a later time than the date of the request.
918
+ *
919
+ * Used for the app providing the benefit items to manage the logistics associated with the item.
920
+ */
921
+ targetDate?: Date | null;
922
+ /**
923
+ * Idempotency key
924
+ * @maxLength 200
925
+ */
926
+ idempotencyKey?: string;
927
+ /** Additional info */
928
+ additionalData?: Record<string, any> | null;
929
+ /** Benefit pool owner. */
930
+ beneficiary?: CommonIdentificationData;
931
+ /**
932
+ * Module that is the source of the benefit pool creation.
933
+ *
934
+ * This value must correspond with the previously defined namespace established when creating the associated pool definition.
935
+ *
936
+ * It ensures efficient processing and management of pools and benefits.
937
+ * @minLength 1
938
+ * @maxLength 20
939
+ */
940
+ namespace?: string;
941
+ }
942
+ interface ReserveBenefitResponse {
943
+ /**
944
+ * Id of the transaction that was created as a result of this request
945
+ * @format GUID
946
+ */
947
+ transactionId?: string;
948
+ }
949
+ interface CancelBenefitReservationRequest {
950
+ /**
951
+ * Id of the transaction that was created as a result of this request
952
+ * @format GUID
953
+ */
954
+ transactionId?: string;
955
+ }
956
+ interface CancelBenefitReservationResponse {
957
+ /**
958
+ * Id of the transaction that was created as a result of this request
959
+ * @format GUID
960
+ */
961
+ transactionId?: string;
962
+ }
963
+ interface ReleaseBenefitReservationRequest {
964
+ /**
965
+ * Id of the transaction that was created as a result of this request
966
+ * @format GUID
967
+ */
968
+ transactionId?: string;
969
+ }
970
+ interface ReleaseBenefitReservationResponse {
971
+ /**
972
+ * Id of the transaction that was created as a result of this request
973
+ * @format GUID
974
+ */
975
+ transactionId?: string;
976
+ }
495
977
  interface CheckBenefitEligibilityRequest {
496
978
  /**
497
979
  * ID of the pool that the benefit to check belongs to.
@@ -691,6 +1173,75 @@ interface GetEligibleBenefitsResponse {
691
1173
  /** Retrieved benefits that can be redeemed. */
692
1174
  eligibleBenefits?: EligibleBenefit[];
693
1175
  }
1176
+ interface ListPoolsRequest {
1177
+ /** The filter */
1178
+ filter?: Filter;
1179
+ /** Cursor paging */
1180
+ cursorPaging?: CursorPaging;
1181
+ }
1182
+ declare enum ListPoolsRequestType {
1183
+ UNKNOWN_FILTER = "UNKNOWN_FILTER",
1184
+ BY_ITEM_REFERENCE = "BY_ITEM_REFERENCE"
1185
+ }
1186
+ /** @enumType */
1187
+ type ListPoolsRequestTypeWithLiterals = ListPoolsRequestType | 'UNKNOWN_FILTER' | 'BY_ITEM_REFERENCE';
1188
+ interface ByItemReference {
1189
+ /**
1190
+ * A list of filters
1191
+ * @maxSize 100
1192
+ */
1193
+ filters?: ByItemReferenceFilter[];
1194
+ /** Beneficiary of the pool */
1195
+ beneficiary?: CommonIdentificationData;
1196
+ /**
1197
+ * Returns pools that are in the following statuses
1198
+ * @maxSize 10
1199
+ */
1200
+ poolStatuses?: PoolStatusWithLiterals[];
1201
+ }
1202
+ interface ByItemReferenceFilter {
1203
+ /** Reference of the item */
1204
+ itemReference?: ItemReference;
1205
+ }
1206
+ interface Filter extends FilterFilterOneOf {
1207
+ /** A list of filters by reference */
1208
+ byItemReferenceOptions?: ByItemReference;
1209
+ /** Type of the filter */
1210
+ type?: ListPoolsRequestTypeWithLiterals;
1211
+ /**
1212
+ * Module that is the source of the benefit pool creation.
1213
+ *
1214
+ * This value must correspond with the previously defined namespace established when creating the associated pool definition.
1215
+ *
1216
+ * It ensures efficient processing and management of pools and benefits.
1217
+ * @minLength 1
1218
+ * @maxLength 20
1219
+ */
1220
+ namespace?: string;
1221
+ }
1222
+ /** @oneof */
1223
+ interface FilterFilterOneOf {
1224
+ /** A list of filters by reference */
1225
+ byItemReferenceOptions?: ByItemReference;
1226
+ }
1227
+ interface ListPoolsResponse {
1228
+ /**
1229
+ * The retrieved pools
1230
+ * @maxSize 100
1231
+ */
1232
+ pools?: PoolWithItems[];
1233
+ /** Paging information */
1234
+ metadata?: CursorPagingMetadata;
1235
+ }
1236
+ interface PoolWithItems {
1237
+ /** The pool */
1238
+ pool?: Pool;
1239
+ /**
1240
+ * The items in the pool
1241
+ * @maxSize 100
1242
+ */
1243
+ itemReference?: ItemReference[];
1244
+ }
694
1245
  interface BulkUpdatePoolsRequest {
695
1246
  /**
696
1247
  * Pools to update.
@@ -756,6 +1307,330 @@ interface BulkActionMetadata {
756
1307
  /** Number of failures without details because detailed failure threshold was exceeded. */
757
1308
  undetailedFailures?: number;
758
1309
  }
1310
+ interface ProvisionPoolsForProgramRequest {
1311
+ /** Reference of the template that is used to provision the pools */
1312
+ poolDefinitionLookupId?: PoolDefinitionLookupId;
1313
+ /**
1314
+ * Program that the provisioned pools are part of
1315
+ * @format GUID
1316
+ */
1317
+ programId?: string;
1318
+ }
1319
+ interface PoolDefinitionLookupId extends PoolDefinitionLookupIdIdOneOf {
1320
+ /**
1321
+ * Pool definition ID.
1322
+ * @format GUID
1323
+ */
1324
+ poolDefinitionId?: string;
1325
+ /**
1326
+ * Program definition ID.
1327
+ * @format GUID
1328
+ */
1329
+ programDefinitionId?: string;
1330
+ }
1331
+ /** @oneof */
1332
+ interface PoolDefinitionLookupIdIdOneOf {
1333
+ /**
1334
+ * Pool definition ID.
1335
+ * @format GUID
1336
+ */
1337
+ poolDefinitionId?: string;
1338
+ /**
1339
+ * Program definition ID.
1340
+ * @format GUID
1341
+ */
1342
+ programDefinitionId?: string;
1343
+ }
1344
+ interface ProvisionPoolsForProgramResponse extends ProvisionPoolsForProgramResponseResultOneOf {
1345
+ /** Sync result */
1346
+ syncOptions?: SyncResult;
1347
+ /** Async result */
1348
+ asyncOptions?: AsyncResult;
1349
+ /**
1350
+ * Job ID of the program provision associated with this pool. Retrieve job details using the Async Job API ([SDK](https://dev.wix.com/docs/sdk/backend-modules/async-jobs/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/async-job/introduction)).
1351
+ * @format GUID
1352
+ */
1353
+ jobId?: string;
1354
+ /** Type of the result */
1355
+ type?: ProvisionPoolsForProgramResponseTypeWithLiterals;
1356
+ }
1357
+ /** @oneof */
1358
+ interface ProvisionPoolsForProgramResponseResultOneOf {
1359
+ /** Sync result */
1360
+ syncOptions?: SyncResult;
1361
+ /** Async result */
1362
+ asyncOptions?: AsyncResult;
1363
+ }
1364
+ declare enum ProvisionPoolsForProgramResponseType {
1365
+ /** Unknown result type */
1366
+ UNKNOWN = "UNKNOWN",
1367
+ /** Sync result */
1368
+ SYNC = "SYNC",
1369
+ /** Async result */
1370
+ ASYNC = "ASYNC"
1371
+ }
1372
+ /** @enumType */
1373
+ type ProvisionPoolsForProgramResponseTypeWithLiterals = ProvisionPoolsForProgramResponseType | 'UNKNOWN' | 'SYNC' | 'ASYNC';
1374
+ interface SyncResult {
1375
+ /** Indicates if the operation was successful */
1376
+ success?: boolean;
1377
+ }
1378
+ interface AsyncResult {
1379
+ /**
1380
+ * Job ID of the program provision associated with this pool. Retrieve job details using the Async Job API ([SDK](https://dev.wix.com/docs/sdk/backend-modules/async-jobs/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/async-job/introduction)).
1381
+ * @format GUID
1382
+ */
1383
+ jobId?: string;
1384
+ }
1385
+ interface InvalidPoolDefinitionReference {
1386
+ /** Reference of the template that didn't find any pool definitions */
1387
+ poolDefinitionLookupId?: PoolDefinitionLookupId;
1388
+ }
1389
+ interface RenewPoolsForProgramRequest {
1390
+ /**
1391
+ * Package of pools to grant. Package id should be the same that was used to provision programs.
1392
+ * @format GUID
1393
+ */
1394
+ programId?: string;
1395
+ }
1396
+ interface RenewPoolsForProgramResponse {
1397
+ /**
1398
+ * Job id of the renewal job
1399
+ * @format GUID
1400
+ */
1401
+ jobId?: string;
1402
+ }
1403
+ interface UpdatePoolStatusRequest extends UpdatePoolStatusRequestPoolSelectorOneOf {
1404
+ /** Pool selector by pool definition id and program definition id */
1405
+ byPoolDefinitionIdAndProgramDefinitionIdOptions?: ByPoolDefinitionIdAndProgramDefinitionIdOptions;
1406
+ /** Pool selector by program id */
1407
+ byProgramIdOptions?: ByProgramIdOptions;
1408
+ /** New pool status */
1409
+ status?: PoolStatusWithLiterals;
1410
+ /** Pool selector type */
1411
+ poolSelectorType?: PoolSelectorTypeWithLiterals;
1412
+ }
1413
+ /** @oneof */
1414
+ interface UpdatePoolStatusRequestPoolSelectorOneOf {
1415
+ /** Pool selector by pool definition id and program definition id */
1416
+ byPoolDefinitionIdAndProgramDefinitionIdOptions?: ByPoolDefinitionIdAndProgramDefinitionIdOptions;
1417
+ /** Pool selector by program id */
1418
+ byProgramIdOptions?: ByProgramIdOptions;
1419
+ }
1420
+ declare enum PoolSelectorType {
1421
+ UNKNOWN_SELECTOR = "UNKNOWN_SELECTOR",
1422
+ BY_POOL_DEFINITION_ID_AND_PROGRAM_DEFINITION_ID = "BY_POOL_DEFINITION_ID_AND_PROGRAM_DEFINITION_ID",
1423
+ BY_PROGRAM_ID = "BY_PROGRAM_ID"
1424
+ }
1425
+ /** @enumType */
1426
+ type PoolSelectorTypeWithLiterals = PoolSelectorType | 'UNKNOWN_SELECTOR' | 'BY_POOL_DEFINITION_ID_AND_PROGRAM_DEFINITION_ID' | 'BY_PROGRAM_ID';
1427
+ interface ByPoolDefinitionIdAndProgramDefinitionIdOptions {
1428
+ /**
1429
+ * Pool definition id
1430
+ * @format GUID
1431
+ */
1432
+ poolDefinitionId?: string;
1433
+ /**
1434
+ * Program definition id
1435
+ * @format GUID
1436
+ */
1437
+ programDefinitionId?: string | null;
1438
+ }
1439
+ interface ByProgramIdOptions {
1440
+ /**
1441
+ * Program id
1442
+ * @format GUID
1443
+ */
1444
+ programId?: string;
1445
+ /** Additional data that gets added to the event once the async job completes */
1446
+ additionalData?: Record<string, any> | null;
1447
+ }
1448
+ interface UpdatePoolStatusResponse {
1449
+ /**
1450
+ * Job ID of the program provision associated with this pool. Retrieve job details using the Async Job API ([SDK](https://dev.wix.com/docs/sdk/backend-modules/async-jobs/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/async-job/introduction)).
1451
+ * @format GUID
1452
+ */
1453
+ jobId?: string;
1454
+ }
1455
+ interface CountNumberOfPoolsInProvisioningStatusRequest {
1456
+ /**
1457
+ * Program id
1458
+ * @format GUID
1459
+ */
1460
+ programId?: string;
1461
+ }
1462
+ interface CountNumberOfPoolsInProvisioningStatusResponse {
1463
+ /** Number of pools in provisioning status */
1464
+ count?: number;
1465
+ }
1466
+ interface DomainEvent extends DomainEventBodyOneOf {
1467
+ createdEvent?: EntityCreatedEvent;
1468
+ updatedEvent?: EntityUpdatedEvent;
1469
+ deletedEvent?: EntityDeletedEvent;
1470
+ actionEvent?: ActionEvent;
1471
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
1472
+ id?: string;
1473
+ /**
1474
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
1475
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
1476
+ */
1477
+ entityFqdn?: string;
1478
+ /**
1479
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
1480
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
1481
+ */
1482
+ slug?: string;
1483
+ /** ID of the entity associated with the event. */
1484
+ entityId?: string;
1485
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
1486
+ eventTime?: Date | null;
1487
+ /**
1488
+ * Whether the event was triggered as a result of a privacy regulation application
1489
+ * (for example, GDPR).
1490
+ */
1491
+ triggeredByAnonymizeRequest?: boolean | null;
1492
+ /** If present, indicates the action that triggered the event. */
1493
+ originatedFrom?: string | null;
1494
+ /**
1495
+ * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
1496
+ * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
1497
+ */
1498
+ entityEventSequence?: string | null;
1499
+ }
1500
+ /** @oneof */
1501
+ interface DomainEventBodyOneOf {
1502
+ createdEvent?: EntityCreatedEvent;
1503
+ updatedEvent?: EntityUpdatedEvent;
1504
+ deletedEvent?: EntityDeletedEvent;
1505
+ actionEvent?: ActionEvent;
1506
+ }
1507
+ interface EntityCreatedEvent {
1508
+ entityAsJson?: string;
1509
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
1510
+ restoreInfo?: RestoreInfo;
1511
+ }
1512
+ interface RestoreInfo {
1513
+ deletedDate?: Date | null;
1514
+ }
1515
+ interface EntityUpdatedEvent {
1516
+ /**
1517
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
1518
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
1519
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
1520
+ */
1521
+ currentEntityAsJson?: string;
1522
+ }
1523
+ interface EntityDeletedEvent {
1524
+ /** Entity that was deleted. */
1525
+ deletedEntityAsJson?: string | null;
1526
+ }
1527
+ interface ActionEvent {
1528
+ bodyAsJson?: string;
1529
+ }
1530
+ interface MessageEnvelope {
1531
+ /**
1532
+ * App instance ID.
1533
+ * @format GUID
1534
+ */
1535
+ instanceId?: string | null;
1536
+ /**
1537
+ * Event type.
1538
+ * @maxLength 150
1539
+ */
1540
+ eventType?: string;
1541
+ /** The identification type and identity data. */
1542
+ identity?: IdentificationData;
1543
+ /** Stringify payload. */
1544
+ data?: string;
1545
+ }
1546
+ interface IdentificationData extends IdentificationDataIdOneOf {
1547
+ /**
1548
+ * ID of a site visitor that has not logged in to the site.
1549
+ * @format GUID
1550
+ */
1551
+ anonymousVisitorId?: string;
1552
+ /**
1553
+ * ID of a site visitor that has logged in to the site.
1554
+ * @format GUID
1555
+ */
1556
+ memberId?: string;
1557
+ /**
1558
+ * ID of a Wix user (site owner, contributor, etc.).
1559
+ * @format GUID
1560
+ */
1561
+ wixUserId?: string;
1562
+ /**
1563
+ * ID of an app.
1564
+ * @format GUID
1565
+ */
1566
+ appId?: string;
1567
+ /** @readonly */
1568
+ identityType?: WebhookIdentityTypeWithLiterals;
1569
+ }
1570
+ /** @oneof */
1571
+ interface IdentificationDataIdOneOf {
1572
+ /**
1573
+ * ID of a site visitor that has not logged in to the site.
1574
+ * @format GUID
1575
+ */
1576
+ anonymousVisitorId?: string;
1577
+ /**
1578
+ * ID of a site visitor that has logged in to the site.
1579
+ * @format GUID
1580
+ */
1581
+ memberId?: string;
1582
+ /**
1583
+ * ID of a Wix user (site owner, contributor, etc.).
1584
+ * @format GUID
1585
+ */
1586
+ wixUserId?: string;
1587
+ /**
1588
+ * ID of an app.
1589
+ * @format GUID
1590
+ */
1591
+ appId?: string;
1592
+ }
1593
+ declare enum WebhookIdentityType {
1594
+ UNKNOWN = "UNKNOWN",
1595
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
1596
+ MEMBER = "MEMBER",
1597
+ WIX_USER = "WIX_USER",
1598
+ APP = "APP"
1599
+ }
1600
+ /** @enumType */
1601
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
1602
+ /** @docsIgnore */
1603
+ type RedeemBenefitApplicationErrors = {
1604
+ code?: 'NOT_ENOUGH_BALANCE';
1605
+ description?: string;
1606
+ data?: NotEnoughBalance;
1607
+ } | {
1608
+ code?: 'POLICY_EXPRESSION_EVALUATED_TO_FALSE';
1609
+ description?: string;
1610
+ data?: PolicyExpressionEvaluatedToFalse;
1611
+ } | {
1612
+ code?: 'POOL_NOT_ACTIVE';
1613
+ description?: string;
1614
+ data?: PoolNotActive;
1615
+ } | {
1616
+ code?: 'POOL_NOT_FOUND';
1617
+ description?: string;
1618
+ data?: PoolNotFound;
1619
+ } | {
1620
+ code?: 'BENEFIT_ALREADY_REDEEMED';
1621
+ description?: string;
1622
+ data?: BenefitAlreadyRedeemed;
1623
+ } | {
1624
+ code?: 'BENEFIT_NOT_FOUND';
1625
+ description?: string;
1626
+ data?: BenefitNotFound;
1627
+ };
1628
+ /** @docsIgnore */
1629
+ type GetEligibleBenefitsApplicationErrors = {
1630
+ code?: 'INVALID_ITEM_REFERENCE';
1631
+ description?: string;
1632
+ data?: Record<string, any>;
1633
+ };
759
1634
 
760
1635
  type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
761
1636
  getUrl: (context: any) => string;
@@ -780,4 +1655,4 @@ declare function bulkCheckBenefitEligibility(): __PublicMethodMetaInfo<'POST', {
780
1655
  declare function getEligibleBenefits(): __PublicMethodMetaInfo<'POST', {}, GetEligibleBenefitsRequest$1, GetEligibleBenefitsRequest, GetEligibleBenefitsResponse$1, GetEligibleBenefitsResponse>;
781
1656
  declare function bulkUpdatePools(): __PublicMethodMetaInfo<'POST', {}, BulkUpdatePoolsRequest$1, BulkUpdatePoolsRequest, BulkUpdatePoolsResponse$1, BulkUpdatePoolsResponse>;
782
1657
 
783
- export { type __PublicMethodMetaInfo, bulkCheckBenefitEligibility, bulkUpdatePools, checkBenefitEligibility, getEligibleBenefits, getPool, queryPools, redeemBenefit, updatePool };
1658
+ export { type ActionEvent as ActionEventOriginal, type ApplicationError as ApplicationErrorOriginal, type AsyncResult as AsyncResultOriginal, type BenefitAlreadyRedeemed as BenefitAlreadyRedeemedOriginal, 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 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 ByItemReferenceFilter as ByItemReferenceFilterOriginal, type ByItemReference as ByItemReferenceOriginal, type ByPoolDefinitionIdAndProgramDefinitionIdOptions as ByPoolDefinitionIdAndProgramDefinitionIdOptionsOriginal, type ByProgramIdOptions as ByProgramIdOptionsOriginal, type CancelBenefitReservationRequest as CancelBenefitReservationRequestOriginal, type CancelBenefitReservationResponse as CancelBenefitReservationResponseOriginal, 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 EligibilityCheckResultResultOneOf as EligibilityCheckResultResultOneOfOriginal, EligibilityCheckResultType as EligibilityCheckResultTypeOriginal, type EligibilityCheckResultTypeWithLiterals as EligibilityCheckResultTypeWithLiteralsOriginal, type EligibleBenefit as EligibleBenefitOriginal, type Eligible as EligibleOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type ExtendedFields as ExtendedFieldsOriginal, type FailureDetails as FailureDetailsOriginal, type FilterFilterOneOf as FilterFilterOneOfOriginal, type Filter as FilterOriginal, 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 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 ListPoolsRequest as ListPoolsRequestOriginal, ListPoolsRequestType as ListPoolsRequestTypeOriginal, type ListPoolsRequestTypeWithLiterals as ListPoolsRequestTypeWithLiteralsOriginal, type ListPoolsResponse as ListPoolsResponseOriginal, 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 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 PoolRenewed as PoolRenewedOriginal, type PoolResumed as PoolResumedOriginal, PoolSelectorType as PoolSelectorTypeOriginal, type PoolSelectorTypeWithLiterals as PoolSelectorTypeWithLiteralsOriginal, PoolStatus as PoolStatusOriginal, type PoolStatusUpdateJobFinishedContextOneOf as PoolStatusUpdateJobFinishedContextOneOfOriginal, type PoolStatusUpdateJobFinished as PoolStatusUpdateJobFinishedOriginal, type PoolStatusWithLiterals as PoolStatusWithLiteralsOriginal, type PoolWithItems as PoolWithItemsOriginal, 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 RateLimitedPolicyPeriodOneOf as RateLimitedPolicyPeriodOneOfOriginal, RateLimitedPolicyType as RateLimitedPolicyTypeOriginal, type RateLimitedPolicyTypeWithLiterals as RateLimitedPolicyTypeWithLiteralsOriginal, 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, Type as TypeOriginal, type TypeWithLiterals as TypeWithLiteralsOriginal, 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, getEligibleBenefits, getPool, queryPools, redeemBenefit, updatePool };