@wix/auto_sdk_benefit-programs_pools 1.0.1 → 1.0.3

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 (33) hide show
  1. package/build/cjs/src/benefit-programs-v1-pool-pools.context.d.ts +1 -1
  2. package/build/cjs/src/benefit-programs-v1-pool-pools.public.d.ts +1 -1
  3. package/build/cjs/src/benefit-programs-v1-pool-pools.public.js.map +1 -1
  4. package/build/cjs/src/benefit-programs-v1-pool-pools.types.d.ts +496 -103
  5. package/build/cjs/src/benefit-programs-v1-pool-pools.types.js.map +1 -1
  6. package/build/cjs/src/benefit-programs-v1-pool-pools.universal.d.ts +541 -108
  7. package/build/cjs/src/benefit-programs-v1-pool-pools.universal.js +6 -0
  8. package/build/cjs/src/benefit-programs-v1-pool-pools.universal.js.map +1 -1
  9. package/build/es/src/benefit-programs-v1-pool-pools.context.d.ts +1 -1
  10. package/build/es/src/benefit-programs-v1-pool-pools.public.d.ts +1 -1
  11. package/build/es/src/benefit-programs-v1-pool-pools.public.js.map +1 -1
  12. package/build/es/src/benefit-programs-v1-pool-pools.types.d.ts +496 -103
  13. package/build/es/src/benefit-programs-v1-pool-pools.types.js.map +1 -1
  14. package/build/es/src/benefit-programs-v1-pool-pools.universal.d.ts +541 -108
  15. package/build/es/src/benefit-programs-v1-pool-pools.universal.js +6 -0
  16. package/build/es/src/benefit-programs-v1-pool-pools.universal.js.map +1 -1
  17. package/build/internal/cjs/src/benefit-programs-v1-pool-pools.context.d.ts +1 -1
  18. package/build/internal/cjs/src/benefit-programs-v1-pool-pools.public.d.ts +1 -1
  19. package/build/internal/cjs/src/benefit-programs-v1-pool-pools.public.js.map +1 -1
  20. package/build/internal/cjs/src/benefit-programs-v1-pool-pools.types.d.ts +496 -103
  21. package/build/internal/cjs/src/benefit-programs-v1-pool-pools.types.js.map +1 -1
  22. package/build/internal/cjs/src/benefit-programs-v1-pool-pools.universal.d.ts +541 -108
  23. package/build/internal/cjs/src/benefit-programs-v1-pool-pools.universal.js +6 -0
  24. package/build/internal/cjs/src/benefit-programs-v1-pool-pools.universal.js.map +1 -1
  25. package/build/internal/es/src/benefit-programs-v1-pool-pools.context.d.ts +1 -1
  26. package/build/internal/es/src/benefit-programs-v1-pool-pools.public.d.ts +1 -1
  27. package/build/internal/es/src/benefit-programs-v1-pool-pools.public.js.map +1 -1
  28. package/build/internal/es/src/benefit-programs-v1-pool-pools.types.d.ts +496 -103
  29. package/build/internal/es/src/benefit-programs-v1-pool-pools.types.js.map +1 -1
  30. package/build/internal/es/src/benefit-programs-v1-pool-pools.universal.d.ts +541 -108
  31. package/build/internal/es/src/benefit-programs-v1-pool-pools.universal.js +6 -0
  32. package/build/internal/es/src/benefit-programs-v1-pool-pools.universal.js.map +1 -1
  33. package/package.json +2 -2
@@ -1,6 +1,7 @@
1
1
  export interface Pool {
2
2
  /**
3
3
  * Pool ID.
4
+ * @format GUID
4
5
  * @readonly
5
6
  */
6
7
  _id?: string | null;
@@ -24,16 +25,19 @@ export interface Pool {
24
25
  _updatedDate?: Date | null;
25
26
  /**
26
27
  * Pool definition from which this benefit pool was created.
28
+ * @format GUID
27
29
  * @readonly
28
30
  */
29
31
  poolDefinitionId?: string | null;
30
32
  /**
31
33
  * Program definition from which this benefit pool was provisioned.
34
+ * @format GUID
32
35
  * @readonly
33
36
  */
34
37
  programDefinitionId?: string | null;
35
38
  /**
36
39
  * ID of the program to which this benefit pool is associated.
40
+ * @format GUID
37
41
  * @readonly
38
42
  */
39
43
  programId?: string | null;
@@ -54,9 +58,15 @@ export interface Pool {
54
58
  * Pool name.
55
59
  *
56
60
  * It's recommended to keep the same as the associated pool definition's `displayName`.
61
+ * @maxLength 64
57
62
  */
58
63
  displayName?: string;
59
- /** External system that is the source of the program creation. For example, `wix-pricing-plans`, `wix-loyalty`. */
64
+ /**
65
+ * External system that is the source of the program creation. For example, `wix-pricing-plans`, `wix-loyalty`.
66
+ * @immutable
67
+ * @minLength 1
68
+ * @maxLength 50
69
+ */
60
70
  namespace?: string | null;
61
71
  /**
62
72
  * Custom field data for the pool object.
@@ -72,7 +82,7 @@ export interface Pool {
72
82
  * Program information.
73
83
  * @readonly
74
84
  */
75
- program?: ProgramInfo;
85
+ program?: PoolProgramInfo;
76
86
  /**
77
87
  * Version of the associated pool definition at the this benefit pool was created.
78
88
  *
@@ -108,20 +118,38 @@ export declare enum PoolStatus {
108
118
  RENEWING = "RENEWING"
109
119
  }
110
120
  export interface CommonIdentificationData extends CommonIdentificationDataIdOneOf {
111
- /** ID of a site visitor that has not logged in to the site. */
121
+ /**
122
+ * ID of a site visitor that has not logged in to the site.
123
+ * @format GUID
124
+ */
112
125
  anonymousVisitorId?: string;
113
- /** ID of a site visitor that has logged in to the site. */
126
+ /**
127
+ * ID of a site visitor that has logged in to the site.
128
+ * @format GUID
129
+ */
114
130
  memberId?: string;
115
- /** ID of a Wix user (site owner, contributor, etc.). */
131
+ /**
132
+ * ID of a Wix user (site owner, contributor, etc.).
133
+ * @format GUID
134
+ */
116
135
  wixUserId?: string;
117
136
  }
118
137
  /** @oneof */
119
138
  export interface CommonIdentificationDataIdOneOf {
120
- /** ID of a site visitor that has not logged in to the site. */
139
+ /**
140
+ * ID of a site visitor that has not logged in to the site.
141
+ * @format GUID
142
+ */
121
143
  anonymousVisitorId?: string;
122
- /** ID of a site visitor that has logged in to the site. */
144
+ /**
145
+ * ID of a site visitor that has logged in to the site.
146
+ * @format GUID
147
+ */
123
148
  memberId?: string;
124
- /** ID of a Wix user (site owner, contributor, etc.). */
149
+ /**
150
+ * ID of a Wix user (site owner, contributor, etc.).
151
+ * @format GUID
152
+ */
125
153
  wixUserId?: string;
126
154
  }
127
155
  export declare enum IdentityType {
@@ -135,7 +163,10 @@ export declare enum IdentityType {
135
163
  WIX_USER = "WIX_USER"
136
164
  }
137
165
  export interface Details {
138
- /** Array of benefits, each containing price and policy settings specific to that benefit within the pool. */
166
+ /**
167
+ * Array of benefits, each containing price and policy settings specific to that benefit within the pool.
168
+ * @maxSize 10
169
+ */
139
170
  benefits?: Benefit[];
140
171
  /**
141
172
  * Settings that control the initial credits and renewal cycle configurations of the benefit pool.
@@ -165,6 +196,7 @@ export interface Benefit {
165
196
  * An unique identifier for a pool benefit.
166
197
  *
167
198
  * This key is consistent across the pool definition and all its associated benefit pools.
199
+ * @maxLength 64
168
200
  */
169
201
  benefitKey?: string;
170
202
  /**
@@ -173,6 +205,8 @@ export interface Benefit {
173
205
  * This ID is returned when calling Create Item.
174
206
  *
175
207
  * It is used to link the specific benefit item to its corresponding location within the benefit pool, ensuring proper association between the item and the pool definition.
208
+ * @format GUID
209
+ * @immutable
176
210
  * @readonly
177
211
  */
178
212
  itemSetId?: string | null;
@@ -181,6 +215,7 @@ export interface Benefit {
181
215
  * Represents the cost to redeem the benefit.
182
216
  *
183
217
  * Don't set a price if the `details.creditConfiguration` is empty. Since the benefits have an unlimited redemption limit, they can't have an associated price.
218
+ * @decimalValue options { gte:0, maxScale:4 }
184
219
  */
185
220
  price?: string | null;
186
221
  /**
@@ -191,11 +226,21 @@ export interface Benefit {
191
226
  policyExpression?: PolicyExpression;
192
227
  /** Additional info that was set by the benefit provider. */
193
228
  additionalData?: Record<string, any> | null;
194
- /** ID of the app providing the benefit. */
229
+ /**
230
+ * ID of the app providing the benefit.
231
+ * @format GUID
232
+ * @immutable
233
+ */
195
234
  providerAppId?: string | null;
196
- /** Benefit display name. */
235
+ /**
236
+ * Benefit display name.
237
+ * @maxLength 40
238
+ */
197
239
  displayName?: string | null;
198
- /** Benefit description. */
240
+ /**
241
+ * Benefit description.
242
+ * @maxLength 255
243
+ */
199
244
  description?: string | null;
200
245
  }
201
246
  export interface PolicyExpression extends PolicyExpressionExpressionOneOf {
@@ -241,11 +286,19 @@ export interface PolicyExpressionNot {
241
286
  expression?: PolicyExpression;
242
287
  }
243
288
  export interface PolicyExpressionAnd {
244
- /** Specify policy terms where all policy conditions must be met. Must specify an object with an `expressions` property. */
289
+ /**
290
+ * Specify policy terms where all policy conditions must be met. Must specify an object with an `expressions` property.
291
+ * @minSize 2
292
+ * @maxSize 10
293
+ */
245
294
  expressions?: PolicyExpression[];
246
295
  }
247
296
  export interface PolicyExpressionOr {
248
- /** Specify policy terms where at least one of the possible specified policy conditions is met. Must specify an object with an `expressions` property. */
297
+ /**
298
+ * Specify policy terms where at least one of the possible specified policy conditions is met. Must specify an object with an `expressions` property.
299
+ * @minSize 2
300
+ * @maxSize 10
301
+ */
249
302
  expressions?: PolicyExpression[];
250
303
  }
251
304
  export interface Policy extends PolicyPolicyOneOf {
@@ -281,13 +334,25 @@ export interface FixedIntervalPolicy {
281
334
  fromWeekDay?: WeekDay;
282
335
  /** Weekday that this interval ends at. If this field is set, then `fromWeekDay` must also be set. */
283
336
  toWeekDay?: WeekDay;
284
- /** Hour that this interval starts from. If this field is set, then `toHour` must also be set. */
337
+ /**
338
+ * Hour that this interval starts from. If this field is set, then `toHour` must also be set.
339
+ * @max 23
340
+ */
285
341
  fromHour?: number | null;
286
- /** Hour that this interval ends at. If this field is set, then `fromHour` must also be set. */
342
+ /**
343
+ * Hour that this interval ends at. If this field is set, then `fromHour` must also be set.
344
+ * @max 23
345
+ */
287
346
  toHour?: number | null;
288
- /** Minute that this interval starts from. If this field is set, then `toMinute` must also be set. */
347
+ /**
348
+ * Minute that this interval starts from. If this field is set, then `toMinute` must also be set.
349
+ * @max 59
350
+ */
289
351
  fromMinute?: number | null;
290
- /** Minute that this interval ends at. If this field is set, then `fromMinute` must also be set. */
352
+ /**
353
+ * Minute that this interval ends at. If this field is set, then `fromMinute` must also be set.
354
+ * @max 59
355
+ */
291
356
  toMinute?: number | null;
292
357
  }
293
358
  export declare enum WeekDay {
@@ -339,19 +404,31 @@ export declare enum RateLimitedPolicyType {
339
404
  }
340
405
  /** Custom policy as implemented by the Entitlement Policy Provider */
341
406
  export interface CustomPolicy {
342
- /** References a specific custom policy on the provider's system */
407
+ /**
408
+ * References a specific custom policy on the provider's system
409
+ * @format GUID
410
+ */
343
411
  _id?: string;
344
- /** Custom policy provider id */
412
+ /**
413
+ * Custom policy provider id
414
+ * @format GUID
415
+ */
345
416
  appId?: string | null;
346
417
  /** Additional info for this custom policy. It's going to be passed to the policy provider during eligibility checks */
347
418
  additionalData?: Record<string, any> | null;
348
419
  }
349
420
  export interface CreditConfiguration {
350
- /** The initial total amount of credits available in this benefit pool. */
421
+ /**
422
+ * The initial total amount of credits available in this benefit pool.
423
+ * @decimalValue options { gte:0, maxScale:4 }
424
+ */
351
425
  amount?: string;
352
426
  /** Rollover configuration. */
353
427
  rolloverConfiguration?: RolloverConfiguration;
354
- /** Display name of the unit. */
428
+ /**
429
+ * Display name of the unit.
430
+ * @maxLength 32
431
+ */
355
432
  unitDisplayName?: string | null;
356
433
  }
357
434
  export interface RolloverConfiguration {
@@ -361,6 +438,7 @@ export interface RolloverConfiguration {
361
438
  * The maximum amount of credits that can be transferred to the next benefit renewal cycle.
362
439
  *
363
440
  * If current balance exceeds this cap, no credits will transfer into the next renewal cycle until the balance is within the allowable limit.
441
+ * @decimalValue options { gte:0, maxScale:4 }
364
442
  */
365
443
  balanceCap?: string | null;
366
444
  }
@@ -378,6 +456,7 @@ export interface ExtendedFields {
378
456
  export interface ProgramDefinitionInfo {
379
457
  /**
380
458
  * ID of the program definition that provisioned the program associated with this benefit pool.
459
+ * @format GUID
381
460
  * @readonly
382
461
  */
383
462
  _id?: string;
@@ -385,13 +464,15 @@ export interface ProgramDefinitionInfo {
385
464
  * External ID of the program definition that provisioned this program.
386
465
  *
387
466
  * This identifies the source program definition in the external system.
467
+ * @format GUID
388
468
  * @readonly
389
469
  */
390
470
  externalId?: string | null;
391
471
  }
392
- export interface ProgramInfo {
472
+ export interface PoolProgramInfo {
393
473
  /**
394
474
  * ID of the program associated with this benefit pool.
475
+ * @format GUID
395
476
  * @readonly
396
477
  */
397
478
  _id?: string;
@@ -399,6 +480,7 @@ export interface ProgramInfo {
399
480
  * External ID of the program associated with this benefit pool.
400
481
  *
401
482
  * This identifies the source program in the external system.
483
+ * @format GUID
402
484
  * @readonly
403
485
  */
404
486
  externalId?: string | null;
@@ -426,18 +508,27 @@ export interface BenefitRedeemed {
426
508
  redemptionDetails?: RedemptionDetails;
427
509
  }
428
510
  export interface RedemptionDetails {
429
- /** Id of the redemption transaction */
511
+ /**
512
+ * Id of the redemption transaction
513
+ * @format GUID
514
+ */
430
515
  transactionId?: string;
431
516
  /** Reference of the item that is being redeemed */
432
517
  itemReference?: ItemReference;
433
- /** Number of of items to redeem */
518
+ /**
519
+ * Number of of items to redeem
520
+ * @min 1
521
+ */
434
522
  itemCount?: number;
435
523
  /**
436
524
  * Date at which the item will be used. Target date does not necessarily equal the redemption date. Credits are redeemed immediately.
437
525
  * This date is only used for validations that may be performed by entitlement providers
438
526
  */
439
527
  targetDate?: Date | null;
440
- /** Idempotency key */
528
+ /**
529
+ * Idempotency key
530
+ * @maxLength 200
531
+ */
441
532
  idempotencyKey?: string;
442
533
  /** Additional info provided during redemption */
443
534
  additionalData?: Record<string, any> | null;
@@ -445,11 +536,20 @@ export interface RedemptionDetails {
445
536
  beneficiary?: CommonIdentificationData;
446
537
  }
447
538
  export interface ItemReference {
448
- /** External ID of the item. */
539
+ /**
540
+ * External ID of the item.
541
+ * @format GUID
542
+ */
449
543
  externalId?: string;
450
- /** Item category. */
544
+ /**
545
+ * Item category.
546
+ * @maxLength 20
547
+ */
451
548
  category?: string;
452
- /** ID of the application providing the benefits. */
549
+ /**
550
+ * ID of the application providing the benefits.
551
+ * @format GUID
552
+ */
453
553
  providerAppId?: string;
454
554
  }
455
555
  export interface PoolPaused {
@@ -473,15 +573,71 @@ export interface BenefitReserved {
473
573
  export interface BenefitReservationCanceled {
474
574
  /** Pool which was used to perform this transaction */
475
575
  pool?: Pool;
476
- /** Id of the canceled reservation transaction */
576
+ /**
577
+ * Id of the canceled reservation transaction
578
+ * @format GUID
579
+ */
477
580
  transactionId?: string;
478
581
  }
479
582
  export interface BenefitReservationReleased {
480
583
  /** Pool which was used to perform this transaction */
481
584
  pool?: Pool;
482
- /** Id of the released reservation transaction */
585
+ /**
586
+ * Id of the released reservation transaction
587
+ * @format GUID
588
+ */
483
589
  transactionId?: string;
484
590
  }
591
+ export interface PoolProvisionJobFinished {
592
+ /**
593
+ * Program id
594
+ * @format GUID
595
+ */
596
+ programId?: string;
597
+ /** Processed item count */
598
+ processedItemCount?: number;
599
+ /** Origin of the pool */
600
+ origin?: PoolOrigin;
601
+ }
602
+ export interface PoolStatusUpdateJobFinished extends PoolStatusUpdateJobFinishedContextOneOf {
603
+ /** The id of the pool definition that is being updated */
604
+ poolDefinitionAndProgramDefinition?: PoolDefinitionAndProgramDefinition;
605
+ /** Update the status of all pools in the program */
606
+ programInfo?: ProgramInfo;
607
+ /** Target status of the pool */
608
+ targetStatus?: PoolStatus;
609
+ /** The total number of items that were processed */
610
+ processedItemCount?: number;
611
+ }
612
+ /** @oneof */
613
+ export interface PoolStatusUpdateJobFinishedContextOneOf {
614
+ /** The id of the pool definition that is being updated */
615
+ poolDefinitionAndProgramDefinition?: PoolDefinitionAndProgramDefinition;
616
+ /** Update the status of all pools in the program */
617
+ programInfo?: ProgramInfo;
618
+ }
619
+ export interface PoolDefinitionAndProgramDefinition {
620
+ /**
621
+ * The id of the pool definition that is being updated
622
+ * @format GUID
623
+ * @readonly
624
+ */
625
+ poolDefinitionId?: string;
626
+ /**
627
+ * The key of the program that is being updated
628
+ * @format GUID
629
+ */
630
+ programDefinitionId?: string | null;
631
+ }
632
+ export interface ProgramInfo {
633
+ /**
634
+ * The key of the program that is being updated
635
+ * @format GUID
636
+ */
637
+ programId?: string;
638
+ /** Additional data that was provided when the job was submitted */
639
+ additionalData?: Record<string, any> | null;
640
+ }
485
641
  export interface CreatePoolRequest {
486
642
  /** Pool to be created. */
487
643
  pool?: Pool;
@@ -491,7 +647,10 @@ export interface CreatePoolResponse {
491
647
  pool?: Pool;
492
648
  }
493
649
  export interface GetPoolRequest {
494
- /** ID of the pool to retrieve. */
650
+ /**
651
+ * ID of the pool to retrieve.
652
+ * @format GUID
653
+ */
495
654
  poolId: string;
496
655
  }
497
656
  export interface GetPoolResponse {
@@ -507,7 +666,10 @@ export interface UpdatePoolResponse {
507
666
  pool?: Pool;
508
667
  }
509
668
  export interface DeletePoolRequest {
510
- /** ID of the pool to delete. */
669
+ /**
670
+ * ID of the pool to delete.
671
+ * @format GUID
672
+ */
511
673
  poolId?: string;
512
674
  }
513
675
  export interface DeletePoolResponse {
@@ -531,6 +693,7 @@ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
531
693
  /**
532
694
  * Sort object in the following format:
533
695
  * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
696
+ * @maxSize 5
534
697
  */
535
698
  sort?: Sorting[];
536
699
  }
@@ -540,7 +703,10 @@ export interface CursorQueryPagingMethodOneOf {
540
703
  cursorPaging?: CursorPaging;
541
704
  }
542
705
  export interface Sorting {
543
- /** Name of the field to sort by. */
706
+ /**
707
+ * Name of the field to sort by.
708
+ * @maxLength 512
709
+ */
544
710
  fieldName?: string;
545
711
  /** Sort order. */
546
712
  order?: SortOrder;
@@ -552,13 +718,17 @@ export declare enum SortOrder {
552
718
  DESC = "DESC"
553
719
  }
554
720
  export interface CursorPaging {
555
- /** Maximum number of items to return in the results. */
721
+ /**
722
+ * Maximum number of items to return in the results.
723
+ * @max 100
724
+ */
556
725
  limit?: number | null;
557
726
  /**
558
727
  * Pointer to the next or previous page in the list of results.
559
728
  *
560
729
  * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
561
730
  * Not relevant for the first request.
731
+ * @maxLength 16000
562
732
  */
563
733
  cursor?: string | null;
564
734
  }
@@ -582,13 +752,22 @@ export interface CursorPagingMetadata {
582
752
  hasNext?: boolean | null;
583
753
  }
584
754
  export interface Cursors {
585
- /** Cursor string pointing to the next page in the list of results. */
755
+ /**
756
+ * Cursor string pointing to the next page in the list of results.
757
+ * @maxLength 16000
758
+ */
586
759
  next?: string | null;
587
- /** Cursor pointing to the previous page in the list of results. */
760
+ /**
761
+ * Cursor pointing to the previous page in the list of results.
762
+ * @maxLength 16000
763
+ */
588
764
  prev?: string | null;
589
765
  }
590
766
  export interface RedeemBenefitRequest {
591
- /** ID of the benefit pool being redeemed. */
767
+ /**
768
+ * ID of the benefit pool being redeemed.
769
+ * @format GUID
770
+ */
592
771
  poolId: string;
593
772
  /** Reference of the benefit item that is being redeemed. */
594
773
  itemReference: ItemReference;
@@ -596,9 +775,13 @@ export interface RedeemBenefitRequest {
596
775
  * Key of the specific benefit to be redeemed.
597
776
  *
598
777
  * This needs to be specified to ensure the correct benefit is redeemed.
778
+ * @maxLength 64
599
779
  */
600
780
  benefitKey: string;
601
- /** Number of of items to redeem. */
781
+ /**
782
+ * Number of of items to redeem.
783
+ * @min 1
784
+ */
602
785
  count?: number;
603
786
  /**
604
787
  * Date when the benefit item will be used.
@@ -611,6 +794,7 @@ export interface RedeemBenefitRequest {
611
794
  /**
612
795
  * Unique identifier, generated by the client.
613
796
  * Used to recognize repeated attempts to make the same request.
797
+ * @maxLength 200
614
798
  */
615
799
  idempotencyKey: string;
616
800
  /** Additional information. */
@@ -621,67 +805,121 @@ export interface RedeemBenefitRequest {
621
805
  * Module that is the source of the benefit pool creation.
622
806
  *
623
807
  * Must match the previously defined namespace in the associated pool definition.
808
+ * @minLength 1
809
+ * @maxLength 50
624
810
  */
625
811
  namespace: string;
626
812
  }
627
813
  export interface RedeemBenefitResponse {
628
- /** Id of the resulting transaction. */
814
+ /**
815
+ * Id of the resulting transaction.
816
+ * @format GUID
817
+ */
629
818
  transactionId?: string;
630
819
  }
631
820
  export interface NotEnoughBalance {
632
- /** Pool ID */
821
+ /**
822
+ * Pool ID
823
+ * @format GUID
824
+ */
633
825
  poolId?: string;
634
826
  /** Item reference */
635
827
  itemReference?: ItemReference;
636
- /** Price of the item expressed in credits */
828
+ /**
829
+ * Price of the item expressed in credits
830
+ * @decimalValue options { maxScale:4 }
831
+ */
637
832
  availableBalance?: string;
638
- /** Price of the item expressed in credits */
833
+ /**
834
+ * Price of the item expressed in credits
835
+ * @decimalValue options { maxScale:4 }
836
+ */
639
837
  requestedBalance?: string;
640
838
  }
641
839
  export interface PolicyExpressionEvaluatedToFalse {
642
- /** Pool ID */
840
+ /**
841
+ * Pool ID
842
+ * @format GUID
843
+ */
643
844
  poolId?: string;
644
845
  /** Item reference */
645
846
  itemReference?: ItemReference;
646
- /** Failure details */
847
+ /**
848
+ * Failure details
849
+ * @maxSize 10
850
+ */
647
851
  failureDetails?: FailureDetails[];
648
852
  }
649
853
  export interface FailureDetails {
650
- /** Failure code */
854
+ /**
855
+ * Failure code
856
+ * @minLength 1
857
+ * @maxLength 64
858
+ */
651
859
  code?: string;
652
- /** Failure message */
860
+ /**
861
+ * Failure message
862
+ * @maxLength 256
863
+ */
653
864
  message?: string | null;
654
- /** Policy id */
865
+ /**
866
+ * Policy id
867
+ * @format GUID
868
+ */
655
869
  policyId?: string | null;
656
- /** App that owns the policy */
870
+ /**
871
+ * App that owns the policy
872
+ * @format GUID
873
+ */
657
874
  appId?: string | null;
658
875
  /** Information provided by the policy */
659
876
  errorData?: Record<string, any> | null;
660
877
  }
661
878
  export interface PoolNotActive {
662
- /** Pool ID */
879
+ /**
880
+ * Pool ID
881
+ * @format GUID
882
+ */
663
883
  poolId?: string;
664
884
  /** Pool status */
665
885
  poolStatus?: PoolStatus;
666
886
  }
667
887
  export interface PoolNotFound {
668
- /** Pool ID */
888
+ /**
889
+ * Pool ID
890
+ * @format GUID
891
+ */
669
892
  poolId?: string;
670
893
  }
671
894
  export interface BenefitAlreadyRedeemed {
672
- /** Pool ID */
895
+ /**
896
+ * Pool ID
897
+ * @format GUID
898
+ */
673
899
  poolId?: string;
674
- /** Idempotency key of the request that failed */
900
+ /**
901
+ * Idempotency key of the request that failed
902
+ * @maxLength 200
903
+ */
675
904
  idempotencyKey?: string;
676
905
  }
677
906
  export interface BenefitNotFound {
678
- /** Pool ID */
907
+ /**
908
+ * Pool ID
909
+ * @format GUID
910
+ */
679
911
  poolId?: string;
680
- /** Key of the referenced benefit, if provided */
912
+ /**
913
+ * Key of the referenced benefit, if provided
914
+ * @format GUID
915
+ */
681
916
  benefitKey?: string | null;
682
917
  }
683
918
  export interface ReserveBenefitRequest {
684
- /** Id of the pool that is being redeemed from */
919
+ /**
920
+ * Id of the pool that is being redeemed from
921
+ * @format GUID
922
+ */
685
923
  poolId?: string;
686
924
  /** Reference of the item that is being redeemed. */
687
925
  itemReference?: ItemReference;
@@ -691,9 +929,13 @@ export interface ReserveBenefitRequest {
691
929
  * This key must be specified to ensure the correct benefit is redeemed.
692
930
  *
693
931
  * Default: The first eligible benefit in the benefit pool will be redeemed.
932
+ * @maxLength 64
694
933
  */
695
934
  benefitKey?: string | null;
696
- /** Number of items to redeem. */
935
+ /**
936
+ * Number of items to redeem.
937
+ * @min 1
938
+ */
697
939
  count?: number;
698
940
  /**
699
941
  * Date when the benefit item will be used.
@@ -703,7 +945,10 @@ export interface ReserveBenefitRequest {
703
945
  * Used for the app providing the benefit items to manage the logistics associated with the item.
704
946
  */
705
947
  targetDate?: Date | null;
706
- /** Idempotency key */
948
+ /**
949
+ * Idempotency key
950
+ * @maxLength 200
951
+ */
707
952
  idempotencyKey?: string;
708
953
  /** Additional info */
709
954
  additionalData?: Record<string, any> | null;
@@ -715,31 +960,51 @@ export interface ReserveBenefitRequest {
715
960
  * This value must correspond with the previously defined namespace established when creating the associated pool definition.
716
961
  *
717
962
  * It ensures efficient processing and management of pools and benefits.
963
+ * @minLength 1
964
+ * @maxLength 50
718
965
  */
719
966
  namespace?: string;
720
967
  }
721
968
  export interface ReserveBenefitResponse {
722
- /** Id of the transaction that was created as a result of this request */
969
+ /**
970
+ * Id of the transaction that was created as a result of this request
971
+ * @format GUID
972
+ */
723
973
  transactionId?: string;
724
974
  }
725
975
  export interface CancelBenefitReservationRequest {
726
- /** Id of the transaction that was created as a result of this request */
976
+ /**
977
+ * Id of the transaction that was created as a result of this request
978
+ * @format GUID
979
+ */
727
980
  transactionId?: string;
728
981
  }
729
982
  export interface CancelBenefitReservationResponse {
730
- /** Id of the transaction that was created as a result of this request */
983
+ /**
984
+ * Id of the transaction that was created as a result of this request
985
+ * @format GUID
986
+ */
731
987
  transactionId?: string;
732
988
  }
733
989
  export interface ReleaseBenefitReservationRequest {
734
- /** Id of the transaction that was created as a result of this request */
990
+ /**
991
+ * Id of the transaction that was created as a result of this request
992
+ * @format GUID
993
+ */
735
994
  transactionId?: string;
736
995
  }
737
996
  export interface ReleaseBenefitReservationResponse {
738
- /** Id of the transaction that was created as a result of this request */
997
+ /**
998
+ * Id of the transaction that was created as a result of this request
999
+ * @format GUID
1000
+ */
739
1001
  transactionId?: string;
740
1002
  }
741
1003
  export interface CheckBenefitEligibilityRequest {
742
- /** ID of the benefit pool to check eligibility against. */
1004
+ /**
1005
+ * ID of the benefit pool to check eligibility against.
1006
+ * @format GUID
1007
+ */
743
1008
  poolId: string;
744
1009
  /**
745
1010
  * Key of the benefit to be redeemed, associated with a particular benefit.
@@ -747,6 +1012,7 @@ export interface CheckBenefitEligibilityRequest {
747
1012
  * This key must be specified to ensure the correct benefit is redeemed.
748
1013
  *
749
1014
  * Default: The first eligible benefit in the benefit pool will be redeemed.
1015
+ * @maxLength 64
750
1016
  */
751
1017
  benefitKey?: string | null;
752
1018
  /** Reference of the item for which to check benefit's eligibility. */
@@ -755,6 +1021,7 @@ export interface CheckBenefitEligibilityRequest {
755
1021
  * Number of items for which to check eligibility.
756
1022
  *
757
1023
  * This number will be evaluated against the policies and credit balance of the benefit pool to determine if sufficient funds are met for the specified number of items.
1024
+ * @min 1
758
1025
  */
759
1026
  count?: number;
760
1027
  /**
@@ -775,6 +1042,8 @@ export interface CheckBenefitEligibilityRequest {
775
1042
  * This value must correspond with the previously defined namespace established when creating the associated pool definition.
776
1043
  *
777
1044
  * It ensures efficient processing and management of pools and benefits.
1045
+ * @minLength 1
1046
+ * @maxLength 50
778
1047
  */
779
1048
  namespace: string;
780
1049
  }
@@ -820,14 +1089,21 @@ export interface EligibilityCheckResultResultOneOf {
820
1089
  export interface EligibleBenefit {
821
1090
  /**
822
1091
  * Pool ID
1092
+ * @format GUID
823
1093
  * @readonly
824
1094
  */
825
1095
  poolId?: string;
826
- /** Key of the specific benefit. */
1096
+ /**
1097
+ * Key of the specific benefit.
1098
+ * @maxLength 64
1099
+ */
827
1100
  benefitKey?: string;
828
1101
  /** Item reference */
829
1102
  itemReference?: ItemReference;
830
- /** Price of the item expressed in credits */
1103
+ /**
1104
+ * Price of the item expressed in credits
1105
+ * @decimalValue options { gte:0, maxScale:4 }
1106
+ */
831
1107
  price?: string | null;
832
1108
  }
833
1109
  export declare enum EligibilityCheckResultType {
@@ -847,11 +1123,18 @@ export declare enum EligibilityCheckResultType {
847
1123
  POOL_NOT_FOUND = "POOL_NOT_FOUND"
848
1124
  }
849
1125
  export interface Eligible {
850
- /** Eligible benefits. */
1126
+ /**
1127
+ * Eligible benefits.
1128
+ * @maxSize 100
1129
+ */
851
1130
  eligibleBenefits?: EligibleBenefit[];
852
1131
  }
853
1132
  export interface BulkCheckBenefitEligibilityRequest {
854
- /** Benefits to check eligibility. */
1133
+ /**
1134
+ * Benefits to check eligibility.
1135
+ * @minSize 1
1136
+ * @maxSize 100
1137
+ */
855
1138
  benefitSelectors?: BenefitSelector[];
856
1139
  /**
857
1140
  * Module that is the source of the benefit pool creation.
@@ -859,15 +1142,23 @@ export interface BulkCheckBenefitEligibilityRequest {
859
1142
  * This value must correspond with the previously defined namespace established when creating the associated pool definition.
860
1143
  *
861
1144
  * It ensures efficient processing and management of pools and benefits.
1145
+ * @minLength 1
1146
+ * @maxLength 50
862
1147
  */
863
1148
  namespace: string;
864
1149
  /** Benefit pool owner. */
865
1150
  beneficiary?: CommonIdentificationData;
866
1151
  }
867
1152
  export interface BenefitSelector {
868
- /** ID of the pool to check for eligibility. */
1153
+ /**
1154
+ * ID of the pool to check for eligibility.
1155
+ * @format GUID
1156
+ */
869
1157
  poolId?: string;
870
- /** ID of the benefit to check for eligibility. */
1158
+ /**
1159
+ * ID of the benefit to check for eligibility.
1160
+ * @maxLength 64
1161
+ */
871
1162
  benefitKey?: string | null;
872
1163
  /** Reference of the item for which to check benefit's eligibility. */
873
1164
  itemReference?: ItemReference;
@@ -875,6 +1166,7 @@ export interface BenefitSelector {
875
1166
  * Number of items for which to check eligibility.
876
1167
  *
877
1168
  * This number will be evaluated against the policies and credit balance of the benefit pool to determine if sufficient funds are met for the specified number of items.
1169
+ * @min 1
878
1170
  */
879
1171
  count?: number;
880
1172
  /**
@@ -889,7 +1181,11 @@ export interface BenefitSelector {
889
1181
  additionalData?: Record<string, any> | null;
890
1182
  }
891
1183
  export interface BulkCheckBenefitEligibilityResponse {
892
- /** List of results for pool benefit eligibility. */
1184
+ /**
1185
+ * List of results for pool benefit eligibility.
1186
+ * @minSize 1
1187
+ * @maxSize 100
1188
+ */
893
1189
  results?: BulkEligibilityCheckResult[];
894
1190
  }
895
1191
  export interface BulkEligibilityCheckResult {
@@ -905,6 +1201,7 @@ export interface GetEligibleBenefitsRequest {
905
1201
  * Number of items for which to check eligibility.
906
1202
  *
907
1203
  * This number will be evaluated against the policies and credit balance of the benefit pool to determine if sufficient funds are met for the specified number of items.
1204
+ * @min 1
908
1205
  */
909
1206
  count?: number;
910
1207
  /**
@@ -925,6 +1222,8 @@ export interface GetEligibleBenefitsRequest {
925
1222
  * This value must correspond with the previously defined namespace established when creating the associated pool definition.
926
1223
  *
927
1224
  * It ensures efficient processing and management of pools and benefits.
1225
+ * @minLength 1
1226
+ * @maxLength 50
928
1227
  */
929
1228
  namespace: string;
930
1229
  }
@@ -943,11 +1242,17 @@ export declare enum ListPoolsRequestType {
943
1242
  BY_ITEM_REFERENCE = "BY_ITEM_REFERENCE"
944
1243
  }
945
1244
  export interface ByItemReference {
946
- /** A list of filters */
1245
+ /**
1246
+ * A list of filters
1247
+ * @maxSize 100
1248
+ */
947
1249
  filters?: ByItemReferenceFilter[];
948
1250
  /** Beneficiary of the pool */
949
1251
  beneficiary?: CommonIdentificationData;
950
- /** Returns pools that are in the following statuses */
1252
+ /**
1253
+ * Returns pools that are in the following statuses
1254
+ * @maxSize 10
1255
+ */
951
1256
  poolStatuses?: PoolStatus[];
952
1257
  }
953
1258
  export interface ByItemReferenceFilter {
@@ -965,6 +1270,7 @@ export interface Filter extends FilterFilterOneOf {
965
1270
  * This value must correspond with the previously defined namespace established when creating the associated pool definition.
966
1271
  *
967
1272
  * It ensures efficient processing and management of pools and benefits.
1273
+ * @maxLength 50
968
1274
  */
969
1275
  namespace?: string;
970
1276
  }
@@ -974,7 +1280,10 @@ export interface FilterFilterOneOf {
974
1280
  byItemReferenceOptions?: ByItemReference;
975
1281
  }
976
1282
  export interface ListPoolsResponse {
977
- /** The retrieved pools */
1283
+ /**
1284
+ * The retrieved pools
1285
+ * @maxSize 100
1286
+ */
978
1287
  pools?: PoolWithItems[];
979
1288
  /** Paging information */
980
1289
  metadata?: CursorPagingMetadata;
@@ -982,11 +1291,18 @@ export interface ListPoolsResponse {
982
1291
  export interface PoolWithItems {
983
1292
  /** The pool */
984
1293
  pool?: Pool;
985
- /** The items in the pool */
1294
+ /**
1295
+ * The items in the pool
1296
+ * @maxSize 100
1297
+ */
986
1298
  itemReference?: ItemReference[];
987
1299
  }
988
1300
  export interface BulkUpdatePoolsRequest {
989
- /** Pools to update. */
1301
+ /**
1302
+ * Pools to update.
1303
+ * @minSize 1
1304
+ * @maxSize 100
1305
+ */
990
1306
  pools?: MaskedPool[];
991
1307
  /**
992
1308
  * Whether to return the full pool definition entities.
@@ -1006,6 +1322,8 @@ export interface BulkUpdatePoolsResponse {
1006
1322
  * List of results for each pool.
1007
1323
  *
1008
1324
  * Includes the pool, pool metadata, and whether the update was successful.
1325
+ * @minSize 1
1326
+ * @maxSize 100
1009
1327
  */
1010
1328
  results?: BulkPoolResult[];
1011
1329
  /** Bulk action metadata. */
@@ -1018,7 +1336,10 @@ export interface BulkPoolResult {
1018
1336
  pool?: Pool;
1019
1337
  }
1020
1338
  export interface ItemMetadata {
1021
- /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
1339
+ /**
1340
+ * Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).
1341
+ * @format GUID
1342
+ */
1022
1343
  _id?: string | null;
1023
1344
  /** Index of the item within the request array. Allows for correlation between request and response items. */
1024
1345
  originalIndex?: number;
@@ -1046,20 +1367,35 @@ export interface BulkActionMetadata {
1046
1367
  export interface ProvisionPoolsForProgramRequest {
1047
1368
  /** Reference of the template that is used to provision the pools */
1048
1369
  poolDefinitionLookupId?: PoolDefinitionLookupId;
1049
- /** Program that the provisioned pools are part of */
1370
+ /**
1371
+ * Program that the provisioned pools are part of
1372
+ * @format GUID
1373
+ */
1050
1374
  programId?: string;
1051
1375
  }
1052
1376
  export interface PoolDefinitionLookupId extends PoolDefinitionLookupIdIdOneOf {
1053
- /** Pool definition ID. */
1377
+ /**
1378
+ * Pool definition ID.
1379
+ * @format GUID
1380
+ */
1054
1381
  poolDefinitionId?: string;
1055
- /** Program definition ID. */
1382
+ /**
1383
+ * Program definition ID.
1384
+ * @format GUID
1385
+ */
1056
1386
  programDefinitionId?: string;
1057
1387
  }
1058
1388
  /** @oneof */
1059
1389
  export interface PoolDefinitionLookupIdIdOneOf {
1060
- /** Pool definition ID. */
1390
+ /**
1391
+ * Pool definition ID.
1392
+ * @format GUID
1393
+ */
1061
1394
  poolDefinitionId?: string;
1062
- /** Program definition ID. */
1395
+ /**
1396
+ * Program definition ID.
1397
+ * @format GUID
1398
+ */
1063
1399
  programDefinitionId?: string;
1064
1400
  }
1065
1401
  export interface ProvisionPoolsForProgramResponse extends ProvisionPoolsForProgramResponseResultOneOf {
@@ -1067,7 +1403,10 @@ export interface ProvisionPoolsForProgramResponse extends ProvisionPoolsForProgr
1067
1403
  syncOptions?: SyncResult;
1068
1404
  /** Async result */
1069
1405
  asyncOptions?: AsyncResult;
1070
- /** Job ID of the program provision associated with this pool. */
1406
+ /**
1407
+ * Job ID of the program provision associated with this pool.
1408
+ * @format GUID
1409
+ */
1071
1410
  jobId?: string;
1072
1411
  /** Type of the result */
1073
1412
  type?: ProvisionPoolsForProgramResponseType;
@@ -1092,7 +1431,10 @@ export interface SyncResult {
1092
1431
  success?: boolean;
1093
1432
  }
1094
1433
  export interface AsyncResult {
1095
- /** Job ID of the program provision associated with this pool. */
1434
+ /**
1435
+ * Job ID of the program provision associated with this pool.
1436
+ * @format GUID
1437
+ */
1096
1438
  jobId?: string;
1097
1439
  }
1098
1440
  export interface InvalidPoolDefinitionReference {
@@ -1100,11 +1442,17 @@ export interface InvalidPoolDefinitionReference {
1100
1442
  poolDefinitionLookupId?: PoolDefinitionLookupId;
1101
1443
  }
1102
1444
  export interface RenewPoolsForProgramRequest {
1103
- /** Package of pools to grant. Package id should be the same that was used to provision programs. */
1445
+ /**
1446
+ * Package of pools to grant. Package id should be the same that was used to provision programs.
1447
+ * @format GUID
1448
+ */
1104
1449
  programId?: string;
1105
1450
  }
1106
1451
  export interface RenewPoolsForProgramResponse {
1107
- /** Job id of the renewal job */
1452
+ /**
1453
+ * Job id of the renewal job
1454
+ * @format GUID
1455
+ */
1108
1456
  jobId?: string;
1109
1457
  }
1110
1458
  export interface UpdatePoolStatusRequest extends UpdatePoolStatusRequestPoolSelectorOneOf {
@@ -1130,23 +1478,38 @@ export declare enum PoolSelectorType {
1130
1478
  BY_PROGRAM_ID = "BY_PROGRAM_ID"
1131
1479
  }
1132
1480
  export interface ByPoolDefinitionIdAndProgramDefinitionIdOptions {
1133
- /** Pool definition id */
1481
+ /**
1482
+ * Pool definition id
1483
+ * @format GUID
1484
+ */
1134
1485
  poolDefinitionId?: string;
1135
- /** Program definition id */
1486
+ /**
1487
+ * Program definition id
1488
+ * @format GUID
1489
+ */
1136
1490
  programDefinitionId?: string | null;
1137
1491
  }
1138
1492
  export interface ByProgramIdOptions {
1139
- /** Program id */
1493
+ /**
1494
+ * Program id
1495
+ * @format GUID
1496
+ */
1140
1497
  programId?: string;
1141
1498
  /** Additional data that gets added to the event once the async job completes */
1142
1499
  additionalData?: Record<string, any> | null;
1143
1500
  }
1144
1501
  export interface UpdatePoolStatusResponse {
1145
- /** Job ID of the program provision associated with this pool. */
1502
+ /**
1503
+ * Job ID of the program provision associated with this pool.
1504
+ * @format GUID
1505
+ */
1146
1506
  jobId?: string;
1147
1507
  }
1148
1508
  export interface CountNumberOfPoolsInProvisioningStatusRequest {
1149
- /** Program id */
1509
+ /**
1510
+ * Program id
1511
+ * @format GUID
1512
+ */
1150
1513
  programId?: string;
1151
1514
  }
1152
1515
  export interface CountNumberOfPoolsInProvisioningStatusResponse {
@@ -1224,9 +1587,15 @@ export interface ActionEvent {
1224
1587
  body?: string;
1225
1588
  }
1226
1589
  export interface MessageEnvelope {
1227
- /** App instance ID. */
1590
+ /**
1591
+ * App instance ID.
1592
+ * @format GUID
1593
+ */
1228
1594
  instanceId?: string | null;
1229
- /** Event type. */
1595
+ /**
1596
+ * Event type.
1597
+ * @maxLength 150
1598
+ */
1230
1599
  eventType?: string;
1231
1600
  /** The identification type and identity data. */
1232
1601
  identity?: IdentificationData;
@@ -1234,26 +1603,50 @@ export interface MessageEnvelope {
1234
1603
  data?: string;
1235
1604
  }
1236
1605
  export interface IdentificationData extends IdentificationDataIdOneOf {
1237
- /** ID of a site visitor that has not logged in to the site. */
1606
+ /**
1607
+ * ID of a site visitor that has not logged in to the site.
1608
+ * @format GUID
1609
+ */
1238
1610
  anonymousVisitorId?: string;
1239
- /** ID of a site visitor that has logged in to the site. */
1611
+ /**
1612
+ * ID of a site visitor that has logged in to the site.
1613
+ * @format GUID
1614
+ */
1240
1615
  memberId?: string;
1241
- /** ID of a Wix user (site owner, contributor, etc.). */
1616
+ /**
1617
+ * ID of a Wix user (site owner, contributor, etc.).
1618
+ * @format GUID
1619
+ */
1242
1620
  wixUserId?: string;
1243
- /** ID of an app. */
1621
+ /**
1622
+ * ID of an app.
1623
+ * @format GUID
1624
+ */
1244
1625
  appId?: string;
1245
1626
  /** @readonly */
1246
1627
  identityType?: WebhookIdentityType;
1247
1628
  }
1248
1629
  /** @oneof */
1249
1630
  export interface IdentificationDataIdOneOf {
1250
- /** ID of a site visitor that has not logged in to the site. */
1631
+ /**
1632
+ * ID of a site visitor that has not logged in to the site.
1633
+ * @format GUID
1634
+ */
1251
1635
  anonymousVisitorId?: string;
1252
- /** ID of a site visitor that has logged in to the site. */
1636
+ /**
1637
+ * ID of a site visitor that has logged in to the site.
1638
+ * @format GUID
1639
+ */
1253
1640
  memberId?: string;
1254
- /** ID of a Wix user (site owner, contributor, etc.). */
1641
+ /**
1642
+ * ID of a Wix user (site owner, contributor, etc.).
1643
+ * @format GUID
1644
+ */
1255
1645
  wixUserId?: string;
1256
- /** ID of an app. */
1646
+ /**
1647
+ * ID of an app.
1648
+ * @format GUID
1649
+ */
1257
1650
  appId?: string;
1258
1651
  }
1259
1652
  export declare enum WebhookIdentityType {
@@ -1318,7 +1711,7 @@ interface DetailsNonNullableFields {
1318
1711
  interface ProgramDefinitionInfoNonNullableFields {
1319
1712
  _id: string;
1320
1713
  }
1321
- interface ProgramInfoNonNullableFields {
1714
+ interface PoolProgramInfoNonNullableFields {
1322
1715
  _id: string;
1323
1716
  }
1324
1717
  export interface PoolNonNullableFields {
@@ -1327,7 +1720,7 @@ export interface PoolNonNullableFields {
1327
1720
  details?: DetailsNonNullableFields;
1328
1721
  displayName: string;
1329
1722
  programDefinition?: ProgramDefinitionInfoNonNullableFields;
1330
- program?: ProgramInfoNonNullableFields;
1723
+ program?: PoolProgramInfoNonNullableFields;
1331
1724
  previousStatus: PoolStatus;
1332
1725
  origin: PoolOrigin;
1333
1726
  }
@@ -1440,6 +1833,8 @@ export interface BulkUpdatePoolsResponseNonNullableFields {
1440
1833
  * @permissionScopeId SCOPE.BENEFIT_PROGRAMS.MANAGE
1441
1834
  * @permissionScope SCOPE.BENEFIT_PROGRAMS.READ
1442
1835
  * @permissionScopeId SCOPE.BENEFIT_PROGRAMS.READ
1836
+ * @permissionScope Manage Events
1837
+ * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
1443
1838
  * @applicableIdentity APP
1444
1839
  * @returns Retrieved pool.
1445
1840
  * @fqn wix.benefit_programs.v1.pool.PoolService.GetPool
@@ -1470,6 +1865,7 @@ export declare function updatePool(_id: string | null, pool: UpdatePool): Promis
1470
1865
  export interface UpdatePool {
1471
1866
  /**
1472
1867
  * Pool ID.
1868
+ * @format GUID
1473
1869
  * @readonly
1474
1870
  */
1475
1871
  _id?: string | null;
@@ -1493,16 +1889,19 @@ export interface UpdatePool {
1493
1889
  _updatedDate?: Date | null;
1494
1890
  /**
1495
1891
  * Pool definition from which this benefit pool was created.
1892
+ * @format GUID
1496
1893
  * @readonly
1497
1894
  */
1498
1895
  poolDefinitionId?: string | null;
1499
1896
  /**
1500
1897
  * Program definition from which this benefit pool was provisioned.
1898
+ * @format GUID
1501
1899
  * @readonly
1502
1900
  */
1503
1901
  programDefinitionId?: string | null;
1504
1902
  /**
1505
1903
  * ID of the program to which this benefit pool is associated.
1904
+ * @format GUID
1506
1905
  * @readonly
1507
1906
  */
1508
1907
  programId?: string | null;
@@ -1523,9 +1922,15 @@ export interface UpdatePool {
1523
1922
  * Pool name.
1524
1923
  *
1525
1924
  * It's recommended to keep the same as the associated pool definition's `displayName`.
1925
+ * @maxLength 64
1526
1926
  */
1527
1927
  displayName?: string;
1528
- /** External system that is the source of the program creation. For example, `wix-pricing-plans`, `wix-loyalty`. */
1928
+ /**
1929
+ * External system that is the source of the program creation. For example, `wix-pricing-plans`, `wix-loyalty`.
1930
+ * @immutable
1931
+ * @minLength 1
1932
+ * @maxLength 50
1933
+ */
1529
1934
  namespace?: string | null;
1530
1935
  /**
1531
1936
  * Custom field data for the pool object.
@@ -1541,7 +1946,7 @@ export interface UpdatePool {
1541
1946
  * Program information.
1542
1947
  * @readonly
1543
1948
  */
1544
- program?: ProgramInfo;
1949
+ program?: PoolProgramInfo;
1545
1950
  /**
1546
1951
  * Version of the associated pool definition at the this benefit pool was created.
1547
1952
  *
@@ -1571,6 +1976,8 @@ export interface UpdatePool {
1571
1976
  * @permissionScopeId SCOPE.BENEFIT_PROGRAMS.MANAGE
1572
1977
  * @permissionScope SCOPE.BENEFIT_PROGRAMS.READ
1573
1978
  * @permissionScopeId SCOPE.BENEFIT_PROGRAMS.READ
1979
+ * @permissionScope Manage Events
1980
+ * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
1574
1981
  * @permissionId BENEFIT_PROGRAMS.POOL_READ
1575
1982
  * @applicableIdentity APP
1576
1983
  * @fqn wix.benefit_programs.v1.pool.PoolService.QueryPools
@@ -1685,9 +2092,13 @@ export interface RedeemBenefitOptions {
1685
2092
  * Key of the specific benefit to be redeemed.
1686
2093
  *
1687
2094
  * This needs to be specified to ensure the correct benefit is redeemed.
2095
+ * @maxLength 64
1688
2096
  */
1689
2097
  benefitKey: string;
1690
- /** Number of of items to redeem. */
2098
+ /**
2099
+ * Number of of items to redeem.
2100
+ * @min 1
2101
+ */
1691
2102
  count?: number;
1692
2103
  /**
1693
2104
  * Date when the benefit item will be used.
@@ -1700,6 +2111,7 @@ export interface RedeemBenefitOptions {
1700
2111
  /**
1701
2112
  * Unique identifier, generated by the client.
1702
2113
  * Used to recognize repeated attempts to make the same request.
2114
+ * @maxLength 200
1703
2115
  */
1704
2116
  idempotencyKey: string;
1705
2117
  /** Additional information. */
@@ -1710,6 +2122,8 @@ export interface RedeemBenefitOptions {
1710
2122
  * Module that is the source of the benefit pool creation.
1711
2123
  *
1712
2124
  * Must match the previously defined namespace in the associated pool definition.
2125
+ * @minLength 1
2126
+ * @maxLength 50
1713
2127
  */
1714
2128
  namespace: string;
1715
2129
  }
@@ -1739,6 +2153,7 @@ export interface CheckBenefitEligibilityOptions {
1739
2153
  * This key must be specified to ensure the correct benefit is redeemed.
1740
2154
  *
1741
2155
  * Default: The first eligible benefit in the benefit pool will be redeemed.
2156
+ * @maxLength 64
1742
2157
  */
1743
2158
  benefitKey?: string | null;
1744
2159
  /** Reference of the item for which to check benefit's eligibility. */
@@ -1747,6 +2162,7 @@ export interface CheckBenefitEligibilityOptions {
1747
2162
  * Number of items for which to check eligibility.
1748
2163
  *
1749
2164
  * This number will be evaluated against the policies and credit balance of the benefit pool to determine if sufficient funds are met for the specified number of items.
2165
+ * @min 1
1750
2166
  */
1751
2167
  count?: number;
1752
2168
  /**
@@ -1767,6 +2183,8 @@ export interface CheckBenefitEligibilityOptions {
1767
2183
  * This value must correspond with the previously defined namespace established when creating the associated pool definition.
1768
2184
  *
1769
2185
  * It ensures efficient processing and management of pools and benefits.
2186
+ * @minLength 1
2187
+ * @maxLength 50
1770
2188
  */
1771
2189
  namespace: string;
1772
2190
  }
@@ -1789,7 +2207,11 @@ export interface CheckBenefitEligibilityOptions {
1789
2207
  */
1790
2208
  export declare function bulkCheckBenefitEligibility(options?: BulkCheckBenefitEligibilityOptions): Promise<BulkCheckBenefitEligibilityResponse & BulkCheckBenefitEligibilityResponseNonNullableFields>;
1791
2209
  export interface BulkCheckBenefitEligibilityOptions {
1792
- /** Benefits to check eligibility. */
2210
+ /**
2211
+ * Benefits to check eligibility.
2212
+ * @minSize 1
2213
+ * @maxSize 100
2214
+ */
1793
2215
  benefitSelectors?: BenefitSelector[];
1794
2216
  /**
1795
2217
  * Module that is the source of the benefit pool creation.
@@ -1797,6 +2219,8 @@ export interface BulkCheckBenefitEligibilityOptions {
1797
2219
  * This value must correspond with the previously defined namespace established when creating the associated pool definition.
1798
2220
  *
1799
2221
  * It ensures efficient processing and management of pools and benefits.
2222
+ * @minLength 1
2223
+ * @maxLength 50
1800
2224
  */
1801
2225
  namespace: string;
1802
2226
  /** Benefit pool owner. */
@@ -1816,6 +2240,8 @@ export interface BulkCheckBenefitEligibilityOptions {
1816
2240
  * @permissionScopeId SCOPE.BENEFIT_PROGRAMS.MANAGE
1817
2241
  * @permissionScope SCOPE.BENEFIT_PROGRAMS.READ
1818
2242
  * @permissionScopeId SCOPE.BENEFIT_PROGRAMS.READ
2243
+ * @permissionScope Manage Events
2244
+ * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
1819
2245
  * @applicableIdentity APP
1820
2246
  * @fqn wix.benefit_programs.v1.pool.PoolService.GetEligibleBenefits
1821
2247
  */
@@ -1825,6 +2251,7 @@ export interface GetEligibleBenefitsOptions {
1825
2251
  * Number of items for which to check eligibility.
1826
2252
  *
1827
2253
  * This number will be evaluated against the policies and credit balance of the benefit pool to determine if sufficient funds are met for the specified number of items.
2254
+ * @min 1
1828
2255
  */
1829
2256
  count?: number;
1830
2257
  /**
@@ -1845,6 +2272,8 @@ export interface GetEligibleBenefitsOptions {
1845
2272
  * This value must correspond with the previously defined namespace established when creating the associated pool definition.
1846
2273
  *
1847
2274
  * It ensures efficient processing and management of pools and benefits.
2275
+ * @minLength 1
2276
+ * @maxLength 50
1848
2277
  */
1849
2278
  namespace: string;
1850
2279
  }
@@ -1863,7 +2292,11 @@ export interface GetEligibleBenefitsOptions {
1863
2292
  */
1864
2293
  export declare function bulkUpdatePools(options?: BulkUpdatePoolsOptions): Promise<BulkUpdatePoolsResponse & BulkUpdatePoolsResponseNonNullableFields>;
1865
2294
  export interface BulkUpdatePoolsOptions {
1866
- /** Pools to update. */
2295
+ /**
2296
+ * Pools to update.
2297
+ * @minSize 1
2298
+ * @maxSize 100
2299
+ */
1867
2300
  pools?: MaskedPool[];
1868
2301
  /**
1869
2302
  * Whether to return the full pool definition entities.