@wix/auto_sdk_benefit-programs_balances 1.0.29 → 1.0.31

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.
@@ -88,6 +88,18 @@ interface CommonIdentificationDataIdOneOf {
88
88
  */
89
89
  wixUserId?: string;
90
90
  }
91
+ declare enum IdentityType {
92
+ /** Unknown type. This value is not used. */
93
+ UNKNOWN = "UNKNOWN",
94
+ /** A site visitor who has not logged in. */
95
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
96
+ /** A logged-in site member. */
97
+ MEMBER = "MEMBER",
98
+ /** A Wix account holder, such as a site owner or contributor. */
99
+ WIX_USER = "WIX_USER"
100
+ }
101
+ /** @enumType */
102
+ type IdentityTypeWithLiterals = IdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER';
91
103
  interface BalanceAmount {
92
104
  /**
93
105
  * number of available credits.
@@ -188,10 +200,12 @@ declare enum PoolStatus {
188
200
  /** Pool provisioning is in progress. This status exists for a short time during processing. */
189
201
  PROVISIONING = "PROVISIONING",
190
202
  /** Pool renewing is in progress. This status exists for a short time during processing. */
191
- RENEWING = "RENEWING"
203
+ RENEWING = "RENEWING",
204
+ /** Pool is pending */
205
+ PENDING = "PENDING"
192
206
  }
193
207
  /** @enumType */
194
- type PoolStatusWithLiterals = PoolStatus | 'UNDEFINED' | 'ACTIVE' | 'PAUSED' | 'ENDED' | 'PROVISIONING' | 'RENEWING';
208
+ type PoolStatusWithLiterals = PoolStatus | 'UNDEFINED' | 'ACTIVE' | 'PAUSED' | 'ENDED' | 'PROVISIONING' | 'RENEWING' | 'PENDING';
195
209
  interface ExtendedFields {
196
210
  /**
197
211
  * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
@@ -375,6 +389,27 @@ interface AdjustOptions {
375
389
  /** Beneficiary of the associated pool. */
376
390
  beneficiary?: CommonIdentificationData;
377
391
  }
392
+ declare enum LimitRule {
393
+ /** Unknown limit rule */
394
+ UNKNOWN_LIMIT_RULE = "UNKNOWN_LIMIT_RULE",
395
+ /** If the limit is exceeded, the operation will fail */
396
+ FAIL = "FAIL",
397
+ /** If the limit is exceeded, the operation will succeed but the balance never goes beyond the provided limits. For balance that was already outside of provided limits, it will not be changed. */
398
+ SOFT_ENFORCE = "SOFT_ENFORCE",
399
+ /** If the limit is exceeded, the operation will succeed but the balance will be adjusted so that it satisfies the provided limits. If the resulting balance is below the lower_limit, it will be set to the lower_limit. If the resulting balance is above the upper_limit, it will be set to the upper_limit. */
400
+ HARD_ENFORCE = "HARD_ENFORCE"
401
+ }
402
+ /** @enumType */
403
+ type LimitRuleWithLiterals = LimitRule | 'UNKNOWN_LIMIT_RULE' | 'FAIL' | 'SOFT_ENFORCE' | 'HARD_ENFORCE';
404
+ declare enum BalanceType {
405
+ UNDEFINED = "UNDEFINED",
406
+ /** In a pool's balance. */
407
+ AVAILABLE = "AVAILABLE",
408
+ /** Outside a pool's balance. */
409
+ EXTERNAL = "EXTERNAL"
410
+ }
411
+ /** @enumType */
412
+ type BalanceTypeWithLiterals = BalanceType | 'UNDEFINED' | 'AVAILABLE' | 'EXTERNAL';
378
413
  interface SetOptions {
379
414
  /**
380
415
  * Amount to set the balance's available credits to.
@@ -386,6 +421,15 @@ interface SetOptions {
386
421
  /** Beneficiary of the associated pool. */
387
422
  beneficiary?: CommonIdentificationData;
388
423
  }
424
+ interface SetInitialOptions {
425
+ /**
426
+ * Set the available balance to the provided amount.
427
+ * @decimalValue options { maxScale:4 }
428
+ */
429
+ value?: string;
430
+ /** Benefit pool owner associated with this balance. */
431
+ beneficiary?: CommonIdentificationData;
432
+ }
389
433
  interface TransactionDetails {
390
434
  /**
391
435
  * Item associated with the transaction.
@@ -459,6 +503,115 @@ interface ChangeBalanceResponse {
459
503
  */
460
504
  transactionId?: string | null;
461
505
  }
506
+ interface BalanceExceededLimits {
507
+ /** Current balance */
508
+ balance?: BalanceAmount;
509
+ /**
510
+ * The requested amount
511
+ * @decimalValue options { maxScale:4 }
512
+ * @readonly
513
+ */
514
+ requested?: string;
515
+ /**
516
+ * Lower limit
517
+ * @decimalValue options { maxScale:4 }
518
+ * @readonly
519
+ */
520
+ lowerLimit?: string | null;
521
+ /**
522
+ * Upper limit
523
+ * @decimalValue options { maxScale:4 }
524
+ * @readonly
525
+ */
526
+ upperLimit?: string | null;
527
+ /** Source balance type */
528
+ sourceBalanceType?: BalanceTypeWithLiterals;
529
+ /** Target balance type */
530
+ targetBalanceType?: BalanceTypeWithLiterals;
531
+ }
532
+ interface BulkChangeBalancesRequest {
533
+ /**
534
+ * List of balances to change.
535
+ * @minSize 1
536
+ * @maxSize 100
537
+ */
538
+ requests?: ChangeBalanceRequest[];
539
+ /**
540
+ * Unique identifier, generated by the client.
541
+ * Used to recognize repeated attempts to make the same request.
542
+ * @maxLength 200
543
+ */
544
+ idempotencyKey?: string;
545
+ /** Whether to return the full balance entities in the response. */
546
+ returnEntity?: boolean;
547
+ }
548
+ declare enum Type {
549
+ /** Unknown balance change type. */
550
+ UNKNOWN_OPERATION = "UNKNOWN_OPERATION"
551
+ }
552
+ /** @enumType */
553
+ type TypeWithLiterals = Type | 'UNKNOWN_OPERATION';
554
+ interface ChangeBalanceRequest extends ChangeBalanceRequestOperationOneOf {
555
+ /**
556
+ * ID of the pool associated with the balance to change. This is also the ID of the balance.
557
+ * @format GUID
558
+ */
559
+ poolId?: string;
560
+ /** Identity changing the balance. */
561
+ instructingParty?: CommonIdentificationData;
562
+ /** Balance change type. */
563
+ type?: TypeWithLiterals;
564
+ /** Details to send to the transaction created from this balance change. */
565
+ transactionDetails?: TransactionDetails;
566
+ }
567
+ /** @oneof */
568
+ interface ChangeBalanceRequestOperationOneOf {
569
+ }
570
+ interface BulkChangeBalancesResponse {
571
+ /**
572
+ * Updated item and associated metadata.
573
+ * @minSize 1
574
+ * @maxSize 100
575
+ */
576
+ results?: BulkChangeBalanceResult[];
577
+ /** Metadata. */
578
+ bulkActionMetadata?: BulkActionMetadata;
579
+ }
580
+ interface ItemMetadata {
581
+ /**
582
+ * Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).
583
+ * @format GUID
584
+ */
585
+ id?: string | null;
586
+ /** Index of the item within the request array. Allows for correlation between request and response items. */
587
+ originalIndex?: number;
588
+ /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
589
+ success?: boolean;
590
+ /** Details about the error in case of failure. */
591
+ error?: ApplicationError;
592
+ }
593
+ interface ApplicationError {
594
+ /** Error code. */
595
+ code?: string;
596
+ /** Description of the error. */
597
+ description?: string;
598
+ /** Data related to the error. */
599
+ data?: Record<string, any> | null;
600
+ }
601
+ interface BulkChangeBalanceResult {
602
+ /** Item metadata. */
603
+ itemMetadata?: ItemMetadata;
604
+ /** Updated item. */
605
+ balance?: Balance;
606
+ }
607
+ interface BulkActionMetadata {
608
+ /** Number of items that were successfully processed. */
609
+ totalSuccesses?: number;
610
+ /** Number of items that couldn't be processed. */
611
+ totalFailures?: number;
612
+ /** Number of failures without details because detailed failure threshold was exceeded. */
613
+ undetailedFailures?: number;
614
+ }
462
615
  interface RevertBalanceChangeRequest {
463
616
  /**
464
617
  * ID of the transaction associated with the balance change to revert.
@@ -482,6 +635,208 @@ interface RevertBalanceChangeResponse {
482
635
  */
483
636
  transactionId?: string | null;
484
637
  }
638
+ interface ChangeAlreadyReverted {
639
+ /**
640
+ * The id of the transaction which was already reverted
641
+ * @format GUID
642
+ */
643
+ originalTransactionId?: string;
644
+ /**
645
+ * The id of the transaction which reverted the original transaction
646
+ * @format GUID
647
+ */
648
+ revertedTransactionId?: string;
649
+ }
650
+ interface NotEnoughBalance {
651
+ /** Current balance */
652
+ balance?: BalanceAmount;
653
+ /**
654
+ * The requested amount
655
+ * @decimalValue options { maxScale:4 }
656
+ * @readonly
657
+ */
658
+ requested?: string;
659
+ }
660
+ interface GetTransactionReversibilityRequest {
661
+ /**
662
+ * Id of the transaction to get the reversibility
663
+ * @format GUID
664
+ */
665
+ transactionId?: string;
666
+ }
667
+ interface GetTransactionReversibilityResponse {
668
+ /** The result of transaction reversibility validation */
669
+ transactionReversibility?: TransactionReversibilityWithLiterals;
670
+ }
671
+ /** Transaction reversibility results */
672
+ declare enum TransactionReversibility {
673
+ /** Transaction is allowed to be reverted */
674
+ TRANSACTION_IS_REVERSIBLE = "TRANSACTION_IS_REVERSIBLE",
675
+ /** Transaction isn't allowed to be reverted, because it was already reverted */
676
+ TRANSACTION_ALREADY_REVERSED = "TRANSACTION_ALREADY_REVERSED"
677
+ }
678
+ /** @enumType */
679
+ type TransactionReversibilityWithLiterals = TransactionReversibility | 'TRANSACTION_IS_REVERSIBLE' | 'TRANSACTION_ALREADY_REVERSED';
680
+ interface DomainEvent extends DomainEventBodyOneOf {
681
+ createdEvent?: EntityCreatedEvent;
682
+ updatedEvent?: EntityUpdatedEvent;
683
+ deletedEvent?: EntityDeletedEvent;
684
+ actionEvent?: ActionEvent;
685
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
686
+ id?: string;
687
+ /**
688
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
689
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
690
+ */
691
+ entityFqdn?: string;
692
+ /**
693
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
694
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
695
+ */
696
+ slug?: string;
697
+ /** ID of the entity associated with the event. */
698
+ entityId?: string;
699
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
700
+ eventTime?: Date | null;
701
+ /**
702
+ * Whether the event was triggered as a result of a privacy regulation application
703
+ * (for example, GDPR).
704
+ */
705
+ triggeredByAnonymizeRequest?: boolean | null;
706
+ /** If present, indicates the action that triggered the event. */
707
+ originatedFrom?: string | null;
708
+ /**
709
+ * 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.
710
+ * 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.
711
+ */
712
+ entityEventSequence?: string | null;
713
+ }
714
+ /** @oneof */
715
+ interface DomainEventBodyOneOf {
716
+ createdEvent?: EntityCreatedEvent;
717
+ updatedEvent?: EntityUpdatedEvent;
718
+ deletedEvent?: EntityDeletedEvent;
719
+ actionEvent?: ActionEvent;
720
+ }
721
+ interface EntityCreatedEvent {
722
+ entityAsJson?: string;
723
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
724
+ restoreInfo?: RestoreInfo;
725
+ }
726
+ interface RestoreInfo {
727
+ deletedDate?: Date | null;
728
+ }
729
+ interface EntityUpdatedEvent {
730
+ /**
731
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
732
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
733
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
734
+ */
735
+ currentEntityAsJson?: string;
736
+ }
737
+ interface EntityDeletedEvent {
738
+ /** Entity that was deleted. */
739
+ deletedEntityAsJson?: string | null;
740
+ }
741
+ interface ActionEvent {
742
+ bodyAsJson?: string;
743
+ }
744
+ interface MessageEnvelope {
745
+ /**
746
+ * App instance ID.
747
+ * @format GUID
748
+ */
749
+ instanceId?: string | null;
750
+ /**
751
+ * Event type.
752
+ * @maxLength 150
753
+ */
754
+ eventType?: string;
755
+ /** The identification type and identity data. */
756
+ identity?: IdentificationData;
757
+ /** Stringify payload. */
758
+ data?: string;
759
+ }
760
+ interface IdentificationData extends IdentificationDataIdOneOf {
761
+ /**
762
+ * ID of a site visitor that has not logged in to the site.
763
+ * @format GUID
764
+ */
765
+ anonymousVisitorId?: string;
766
+ /**
767
+ * ID of a site visitor that has logged in to the site.
768
+ * @format GUID
769
+ */
770
+ memberId?: string;
771
+ /**
772
+ * ID of a Wix user (site owner, contributor, etc.).
773
+ * @format GUID
774
+ */
775
+ wixUserId?: string;
776
+ /**
777
+ * ID of an app.
778
+ * @format GUID
779
+ */
780
+ appId?: string;
781
+ /** @readonly */
782
+ identityType?: WebhookIdentityTypeWithLiterals;
783
+ }
784
+ /** @oneof */
785
+ interface IdentificationDataIdOneOf {
786
+ /**
787
+ * ID of a site visitor that has not logged in to the site.
788
+ * @format GUID
789
+ */
790
+ anonymousVisitorId?: string;
791
+ /**
792
+ * ID of a site visitor that has logged in to the site.
793
+ * @format GUID
794
+ */
795
+ memberId?: string;
796
+ /**
797
+ * ID of a Wix user (site owner, contributor, etc.).
798
+ * @format GUID
799
+ */
800
+ wixUserId?: string;
801
+ /**
802
+ * ID of an app.
803
+ * @format GUID
804
+ */
805
+ appId?: string;
806
+ }
807
+ declare enum WebhookIdentityType {
808
+ UNKNOWN = "UNKNOWN",
809
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
810
+ MEMBER = "MEMBER",
811
+ WIX_USER = "WIX_USER",
812
+ APP = "APP"
813
+ }
814
+ /** @enumType */
815
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
816
+ /** @docsIgnore */
817
+ type ChangeBalanceApplicationErrors = {
818
+ code?: 'ALREADY_EXECUTED';
819
+ description?: string;
820
+ data?: Record<string, any>;
821
+ } | {
822
+ code?: 'BALANCE_EXCEEDED_LIMITS';
823
+ description?: string;
824
+ data?: BalanceExceededLimits;
825
+ };
826
+ /** @docsIgnore */
827
+ type RevertBalanceChangeApplicationErrors = {
828
+ code?: 'CHANGE_ALREADY_REVERTED';
829
+ description?: string;
830
+ data?: ChangeAlreadyReverted;
831
+ } | {
832
+ code?: 'NOT_ENOUGH_BALANCE';
833
+ description?: string;
834
+ data?: NotEnoughBalance;
835
+ } | {
836
+ code?: 'TRANSACTION_NOT_FOUND';
837
+ description?: string;
838
+ data?: Record<string, any>;
839
+ };
485
840
 
486
841
  type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
487
842
  getUrl: (context: any) => string;
@@ -505,4 +860,4 @@ declare function revertBalanceChange(): __PublicMethodMetaInfo<'POST', {
505
860
  transactionId: string;
506
861
  }, RevertBalanceChangeRequest$1, RevertBalanceChangeRequest, RevertBalanceChangeResponse$1, RevertBalanceChangeResponse>;
507
862
 
508
- export { type __PublicMethodMetaInfo, changeBalance, getBalance, listBalances, queryBalances, revertBalanceChange };
863
+ export { type ActionEvent as ActionEventOriginal, type AdjustOptions as AdjustOptionsOriginal, type ApplicationError as ApplicationErrorOriginal, type BalanceAmount as BalanceAmountOriginal, type BalanceChangeBalanceRequestOperationOneOf as BalanceChangeBalanceRequestOperationOneOfOriginal, type BalanceChangeBalanceRequest as BalanceChangeBalanceRequestOriginal, type BalanceExceededLimits as BalanceExceededLimitsOriginal, type Balance as BalanceOriginal, BalanceType as BalanceTypeOriginal, type BalanceTypeWithLiterals as BalanceTypeWithLiteralsOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, type BulkChangeBalanceResult as BulkChangeBalanceResultOriginal, type BulkChangeBalancesRequest as BulkChangeBalancesRequestOriginal, type BulkChangeBalancesResponse as BulkChangeBalancesResponseOriginal, type ChangeAlreadyReverted as ChangeAlreadyRevertedOriginal, type ChangeBalanceApplicationErrors as ChangeBalanceApplicationErrorsOriginal, type ChangeBalanceRequestOperationOneOf as ChangeBalanceRequestOperationOneOfOriginal, type ChangeBalanceRequest as ChangeBalanceRequestOriginal, ChangeBalanceRequestType as ChangeBalanceRequestTypeOriginal, type ChangeBalanceRequestTypeWithLiterals as ChangeBalanceRequestTypeWithLiteralsOriginal, type ChangeBalanceResponse as ChangeBalanceResponseOriginal, type CommonIdentificationDataIdOneOf as CommonIdentificationDataIdOneOfOriginal, type CommonIdentificationData as CommonIdentificationDataOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type ExtendedFields as ExtendedFieldsOriginal, type GetBalanceRequest as GetBalanceRequestOriginal, type GetBalanceResponse as GetBalanceResponseOriginal, type GetTransactionReversibilityRequest as GetTransactionReversibilityRequestOriginal, type GetTransactionReversibilityResponse as GetTransactionReversibilityResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, IdentityType as IdentityTypeOriginal, type IdentityTypeWithLiterals as IdentityTypeWithLiteralsOriginal, type ItemMetadata as ItemMetadataOriginal, type Item as ItemOriginal, LimitRule as LimitRuleOriginal, type LimitRuleWithLiterals as LimitRuleWithLiteralsOriginal, type ListBalancesRequest as ListBalancesRequestOriginal, type ListBalancesResponse as ListBalancesResponseOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type NotEnoughBalance as NotEnoughBalanceOriginal, type PoolInfo as PoolInfoOriginal, PoolStatus as PoolStatusOriginal, type PoolStatusWithLiterals as PoolStatusWithLiteralsOriginal, type QueryBalancesRequest as QueryBalancesRequestOriginal, type QueryBalancesResponse as QueryBalancesResponseOriginal, type RestoreInfo as RestoreInfoOriginal, type RevertBalanceChangeApplicationErrors as RevertBalanceChangeApplicationErrorsOriginal, type RevertBalanceChangeRequest as RevertBalanceChangeRequestOriginal, type RevertBalanceChangeResponse as RevertBalanceChangeResponseOriginal, type RolloverConfigurationInfo as RolloverConfigurationInfoOriginal, type SetInitialOptions as SetInitialOptionsOriginal, type SetOptions as SetOptionsOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, type TransactionDetails as TransactionDetailsOriginal, TransactionReversibility as TransactionReversibilityOriginal, type TransactionReversibilityWithLiterals as TransactionReversibilityWithLiteralsOriginal, Type as TypeOriginal, type TypeWithLiterals as TypeWithLiteralsOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, changeBalance, getBalance, listBalances, queryBalances, revertBalanceChange };
@@ -20,6 +20,15 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // meta.ts
21
21
  var meta_exports = {};
22
22
  __export(meta_exports, {
23
+ BalanceTypeOriginal: () => BalanceType,
24
+ ChangeBalanceRequestTypeOriginal: () => ChangeBalanceRequestType,
25
+ IdentityTypeOriginal: () => IdentityType,
26
+ LimitRuleOriginal: () => LimitRule,
27
+ PoolStatusOriginal: () => PoolStatus,
28
+ SortOrderOriginal: () => SortOrder,
29
+ TransactionReversibilityOriginal: () => TransactionReversibility,
30
+ TypeOriginal: () => Type,
31
+ WebhookIdentityTypeOriginal: () => WebhookIdentityType,
23
32
  changeBalance: () => changeBalance2,
24
33
  getBalance: () => getBalance2,
25
34
  listBalances: () => listBalances2,
@@ -304,6 +313,66 @@ function revertBalanceChange(payload) {
304
313
  return __revertBalanceChange;
305
314
  }
306
315
 
316
+ // src/benefit-programs-v1-balance-balances.types.ts
317
+ var IdentityType = /* @__PURE__ */ ((IdentityType2) => {
318
+ IdentityType2["UNKNOWN"] = "UNKNOWN";
319
+ IdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
320
+ IdentityType2["MEMBER"] = "MEMBER";
321
+ IdentityType2["WIX_USER"] = "WIX_USER";
322
+ return IdentityType2;
323
+ })(IdentityType || {});
324
+ var PoolStatus = /* @__PURE__ */ ((PoolStatus2) => {
325
+ PoolStatus2["UNDEFINED"] = "UNDEFINED";
326
+ PoolStatus2["ACTIVE"] = "ACTIVE";
327
+ PoolStatus2["PAUSED"] = "PAUSED";
328
+ PoolStatus2["ENDED"] = "ENDED";
329
+ PoolStatus2["PROVISIONING"] = "PROVISIONING";
330
+ PoolStatus2["RENEWING"] = "RENEWING";
331
+ PoolStatus2["PENDING"] = "PENDING";
332
+ return PoolStatus2;
333
+ })(PoolStatus || {});
334
+ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
335
+ SortOrder2["ASC"] = "ASC";
336
+ SortOrder2["DESC"] = "DESC";
337
+ return SortOrder2;
338
+ })(SortOrder || {});
339
+ var ChangeBalanceRequestType = /* @__PURE__ */ ((ChangeBalanceRequestType2) => {
340
+ ChangeBalanceRequestType2["UNKNOWN_OPERATION"] = "UNKNOWN_OPERATION";
341
+ ChangeBalanceRequestType2["ADJUST"] = "ADJUST";
342
+ ChangeBalanceRequestType2["SET"] = "SET";
343
+ return ChangeBalanceRequestType2;
344
+ })(ChangeBalanceRequestType || {});
345
+ var LimitRule = /* @__PURE__ */ ((LimitRule2) => {
346
+ LimitRule2["UNKNOWN_LIMIT_RULE"] = "UNKNOWN_LIMIT_RULE";
347
+ LimitRule2["FAIL"] = "FAIL";
348
+ LimitRule2["SOFT_ENFORCE"] = "SOFT_ENFORCE";
349
+ LimitRule2["HARD_ENFORCE"] = "HARD_ENFORCE";
350
+ return LimitRule2;
351
+ })(LimitRule || {});
352
+ var BalanceType = /* @__PURE__ */ ((BalanceType2) => {
353
+ BalanceType2["UNDEFINED"] = "UNDEFINED";
354
+ BalanceType2["AVAILABLE"] = "AVAILABLE";
355
+ BalanceType2["EXTERNAL"] = "EXTERNAL";
356
+ return BalanceType2;
357
+ })(BalanceType || {});
358
+ var Type = /* @__PURE__ */ ((Type2) => {
359
+ Type2["UNKNOWN_OPERATION"] = "UNKNOWN_OPERATION";
360
+ return Type2;
361
+ })(Type || {});
362
+ var TransactionReversibility = /* @__PURE__ */ ((TransactionReversibility2) => {
363
+ TransactionReversibility2["TRANSACTION_IS_REVERSIBLE"] = "TRANSACTION_IS_REVERSIBLE";
364
+ TransactionReversibility2["TRANSACTION_ALREADY_REVERSED"] = "TRANSACTION_ALREADY_REVERSED";
365
+ return TransactionReversibility2;
366
+ })(TransactionReversibility || {});
367
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
368
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
369
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
370
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
371
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
372
+ WebhookIdentityType2["APP"] = "APP";
373
+ return WebhookIdentityType2;
374
+ })(WebhookIdentityType || {});
375
+
307
376
  // src/benefit-programs-v1-balance-balances.meta.ts
308
377
  function getBalance2() {
309
378
  const payload = { poolId: ":poolId" };
@@ -397,6 +466,15 @@ function revertBalanceChange2() {
397
466
  }
398
467
  // Annotate the CommonJS export names for ESM import in node:
399
468
  0 && (module.exports = {
469
+ BalanceTypeOriginal,
470
+ ChangeBalanceRequestTypeOriginal,
471
+ IdentityTypeOriginal,
472
+ LimitRuleOriginal,
473
+ PoolStatusOriginal,
474
+ SortOrderOriginal,
475
+ TransactionReversibilityOriginal,
476
+ TypeOriginal,
477
+ WebhookIdentityTypeOriginal,
400
478
  changeBalance,
401
479
  getBalance,
402
480
  listBalances,