@wix/auto_sdk_pricing-plans_plans 1.0.79 → 1.0.80

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.
@@ -170,6 +170,32 @@ interface Money {
170
170
  */
171
171
  currency?: string;
172
172
  }
173
+ interface FeeConfig {
174
+ /** Fee configuration. */
175
+ fee?: Fee;
176
+ /** The time this fee will be charged. */
177
+ appliedAt?: AppliedAtWithLiterals;
178
+ }
179
+ interface Fee {
180
+ /**
181
+ * Fee name
182
+ * @minLength 1
183
+ * @maxLength 40
184
+ */
185
+ name?: string;
186
+ /**
187
+ * Amount of fee to be charged
188
+ * @decimalValue options { lt:1000000000000, gt:0.000, maxScale:3 }
189
+ */
190
+ amount?: string;
191
+ }
192
+ declare enum AppliedAt {
193
+ UNKNOWN_CHARGE_EVENT = "UNKNOWN_CHARGE_EVENT",
194
+ /** Will charge the fee on the first payment. If the order has a free trial, it will charge after the free trial. */
195
+ FIRST_PAYMENT = "FIRST_PAYMENT"
196
+ }
197
+ /** @enumType */
198
+ type AppliedAtWithLiterals = AppliedAt | 'UNKNOWN_CHARGE_EVENT' | 'FIRST_PAYMENT';
173
199
  interface ListPublicPlansRequest {
174
200
  /**
175
201
  * Number of items to list. Defaults to `75`. See limits ([SDK](https://dev.wix.com/docs/sdk/backend-modules/pricing-plans/plans/list-public-plans) | [REST](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#paging)).
@@ -383,6 +409,10 @@ interface UpdatePlanResponse {
383
409
  /** Updated plan. */
384
410
  plan?: Plan;
385
411
  }
412
+ interface BuyerCanCancelUpdated {
413
+ /** Pricing plan. */
414
+ plan?: Plan;
415
+ }
386
416
  interface SetPlanVisibilityRequest {
387
417
  /**
388
418
  * The ID of the plan to either display or hide on a site page.
@@ -422,6 +452,408 @@ interface ArchivePlanResponse {
422
452
  /** Archived plan. */
423
453
  plan?: Plan;
424
454
  }
455
+ interface PlanArchived {
456
+ /** Pricing plan. */
457
+ plan?: Plan;
458
+ }
459
+ interface BulkArchivePlanRequest {
460
+ /**
461
+ * List of Plan IDs to archive.
462
+ * @format GUID
463
+ * @minSize 1
464
+ * @maxSize 100
465
+ */
466
+ ids?: string[];
467
+ /** Set to `true` to return the `Plan` entity in the response. */
468
+ returnFullEntity?: boolean;
469
+ }
470
+ interface BulkArchivePlanResponse {
471
+ /** Plans to be archived. */
472
+ results?: BulkPlanResult[];
473
+ /** Bulk action metadata. */
474
+ bulkActionMetadata?: BulkActionMetadata;
475
+ }
476
+ interface BulkPlanResult {
477
+ /** Item metadata. */
478
+ itemMetadata?: ItemMetadata;
479
+ /** Pricing plan. */
480
+ plan?: Plan;
481
+ }
482
+ interface ItemMetadata {
483
+ /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
484
+ id?: string | null;
485
+ /** Index of the item within the request array. Allows for correlation between request and response items. */
486
+ originalIndex?: number;
487
+ /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
488
+ success?: boolean;
489
+ /** Details about the error in case of failure. */
490
+ error?: ApplicationError;
491
+ }
492
+ interface ApplicationError {
493
+ /** Error code. */
494
+ code?: string;
495
+ /** Description of the error. */
496
+ description?: string;
497
+ /** Data related to the error. */
498
+ data?: Record<string, any> | null;
499
+ }
500
+ interface BulkActionMetadata {
501
+ /** Number of items that were successfully processed. */
502
+ totalSuccesses?: number;
503
+ /** Number of items that couldn't be processed. */
504
+ totalFailures?: number;
505
+ /** Number of failures without details because detailed failure threshold was exceeded. */
506
+ undetailedFailures?: number;
507
+ }
508
+ interface ArrangePlansRequest {
509
+ /**
510
+ * IDs of all non-archived plans in the order you want them arranged.
511
+ * @format GUID
512
+ * @minSize 1
513
+ */
514
+ ids?: string[];
515
+ }
516
+ interface ArrangePlansResponse {
517
+ }
518
+ interface CountPlansRequest {
519
+ /** The filter. */
520
+ filter?: Record<string, any> | null;
521
+ /** If true, counts only visible plans (visible and not archived). If no value is specified, all plans are counted. */
522
+ visibility?: boolean | null;
523
+ }
524
+ interface CountPlansResponse {
525
+ /** Number of plans in the response. */
526
+ count?: number;
527
+ }
528
+ interface GetPlansPremiumStatusRequest {
529
+ }
530
+ interface GetPlansPremiumStatusResponse {
531
+ /** True if a site has non-free, non-template plans. */
532
+ hasPaidPlans?: boolean;
533
+ /** True if a site has plans that were created before Pricing Plans became a premium app. */
534
+ hasOldPlans?: boolean;
535
+ }
536
+ interface SearchPlansRequest {
537
+ /** Query options. */
538
+ query?: QueryV2;
539
+ /**
540
+ * Search phrase for the plan name.
541
+ * @maxLength 50
542
+ */
543
+ searchPhrase?: string | null;
544
+ }
545
+ interface SearchPlansResponse {
546
+ /** List of pricing plans that match the specified filter and search phrase. */
547
+ plans?: Plan[];
548
+ /** Object containing paging-related data (such as the number of plans returned, the offset, and so on). */
549
+ pagingMetadata?: PagingMetadataV2;
550
+ }
551
+ interface DomainEvent extends DomainEventBodyOneOf {
552
+ createdEvent?: EntityCreatedEvent;
553
+ updatedEvent?: EntityUpdatedEvent;
554
+ deletedEvent?: EntityDeletedEvent;
555
+ actionEvent?: ActionEvent;
556
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
557
+ id?: string;
558
+ /**
559
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
560
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
561
+ */
562
+ entityFqdn?: string;
563
+ /**
564
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
565
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
566
+ */
567
+ slug?: string;
568
+ /** ID of the entity associated with the event. */
569
+ entityId?: string;
570
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
571
+ eventTime?: Date | null;
572
+ /**
573
+ * Whether the event was triggered as a result of a privacy regulation application
574
+ * (for example, GDPR).
575
+ */
576
+ triggeredByAnonymizeRequest?: boolean | null;
577
+ /** If present, indicates the action that triggered the event. */
578
+ originatedFrom?: string | null;
579
+ /**
580
+ * 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.
581
+ * 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.
582
+ */
583
+ entityEventSequence?: string | null;
584
+ }
585
+ /** @oneof */
586
+ interface DomainEventBodyOneOf {
587
+ createdEvent?: EntityCreatedEvent;
588
+ updatedEvent?: EntityUpdatedEvent;
589
+ deletedEvent?: EntityDeletedEvent;
590
+ actionEvent?: ActionEvent;
591
+ }
592
+ interface EntityCreatedEvent {
593
+ entityAsJson?: string;
594
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
595
+ restoreInfo?: RestoreInfo;
596
+ }
597
+ interface RestoreInfo {
598
+ deletedDate?: Date | null;
599
+ }
600
+ interface EntityUpdatedEvent {
601
+ /**
602
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
603
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
604
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
605
+ */
606
+ currentEntityAsJson?: string;
607
+ }
608
+ interface EntityDeletedEvent {
609
+ /** Entity that was deleted. */
610
+ deletedEntityAsJson?: string | null;
611
+ }
612
+ interface ActionEvent {
613
+ bodyAsJson?: string;
614
+ }
615
+ interface MessageEnvelope {
616
+ /**
617
+ * App instance ID.
618
+ * @format GUID
619
+ */
620
+ instanceId?: string | null;
621
+ /**
622
+ * Event type.
623
+ * @maxLength 150
624
+ */
625
+ eventType?: string;
626
+ /** The identification type and identity data. */
627
+ identity?: IdentificationData;
628
+ /** Stringify payload. */
629
+ data?: string;
630
+ }
631
+ interface IdentificationData extends IdentificationDataIdOneOf {
632
+ /**
633
+ * ID of a site visitor that has not logged in to the site.
634
+ * @format GUID
635
+ */
636
+ anonymousVisitorId?: string;
637
+ /**
638
+ * ID of a site visitor that has logged in to the site.
639
+ * @format GUID
640
+ */
641
+ memberId?: string;
642
+ /**
643
+ * ID of a Wix user (site owner, contributor, etc.).
644
+ * @format GUID
645
+ */
646
+ wixUserId?: string;
647
+ /**
648
+ * ID of an app.
649
+ * @format GUID
650
+ */
651
+ appId?: string;
652
+ /** @readonly */
653
+ identityType?: WebhookIdentityTypeWithLiterals;
654
+ }
655
+ /** @oneof */
656
+ interface IdentificationDataIdOneOf {
657
+ /**
658
+ * ID of a site visitor that has not logged in to the site.
659
+ * @format GUID
660
+ */
661
+ anonymousVisitorId?: string;
662
+ /**
663
+ * ID of a site visitor that has logged in to the site.
664
+ * @format GUID
665
+ */
666
+ memberId?: string;
667
+ /**
668
+ * ID of a Wix user (site owner, contributor, etc.).
669
+ * @format GUID
670
+ */
671
+ wixUserId?: string;
672
+ /**
673
+ * ID of an app.
674
+ * @format GUID
675
+ */
676
+ appId?: string;
677
+ }
678
+ declare enum WebhookIdentityType {
679
+ UNKNOWN = "UNKNOWN",
680
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
681
+ MEMBER = "MEMBER",
682
+ WIX_USER = "WIX_USER",
683
+ APP = "APP"
684
+ }
685
+ /** @enumType */
686
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
687
+ /** @docsIgnore */
688
+ type ListPublicPlansApplicationErrors = {
689
+ code?: 'PRICING_PLANS_NOT_INSTALLED';
690
+ description?: string;
691
+ data?: Record<string, any>;
692
+ };
693
+ /** @docsIgnore */
694
+ type QueryPublicPlansApplicationErrors = {
695
+ code?: 'PRICING_PLANS_NOT_INSTALLED';
696
+ description?: string;
697
+ data?: Record<string, any>;
698
+ };
699
+ /** @docsIgnore */
700
+ type QueryPublicPlansValidationErrors = {
701
+ ruleName?: 'PAGING_LIMIT_OUT_OF_RANGE';
702
+ };
703
+ /** @docsIgnore */
704
+ type GetPlanApplicationErrors = {
705
+ code?: 'plan_not_found';
706
+ description?: string;
707
+ data?: Record<string, any>;
708
+ } | {
709
+ code?: 'PRICING_PLANS_NOT_INSTALLED';
710
+ description?: string;
711
+ data?: Record<string, any>;
712
+ };
713
+ /** @docsIgnore */
714
+ type ListPlansApplicationErrors = {
715
+ code?: 'PRICING_PLANS_NOT_INSTALLED';
716
+ description?: string;
717
+ data?: Record<string, any>;
718
+ };
719
+ /** @docsIgnore */
720
+ type ListPlansValidationErrors = {
721
+ ruleName?: 'INVALID_ARCHIVE_FILTER';
722
+ } | {
723
+ ruleName?: 'INVALID_VISIBLE_FILTER';
724
+ };
725
+ /** @docsIgnore */
726
+ type GetPlanStatsApplicationErrors = {
727
+ code?: 'PRICING_PLANS_NOT_INSTALLED';
728
+ description?: string;
729
+ data?: Record<string, any>;
730
+ };
731
+ /** @docsIgnore */
732
+ type CreatePlanApplicationErrors = {
733
+ code?: 'PRICING_PLANS_NOT_INSTALLED';
734
+ description?: string;
735
+ data?: Record<string, any>;
736
+ };
737
+ /** @docsIgnore */
738
+ type CreatePlanValidationErrors = {
739
+ ruleName?: 'PLAN_NAME_BLANK';
740
+ } | {
741
+ ruleName?: 'PLAN_FEE_NAME_BLANK';
742
+ } | {
743
+ ruleName?: 'PERIOD_AMOUNT_OUT_OF_RANGE';
744
+ } | {
745
+ ruleName?: 'RECURRING_PLAN_PAYMENT_PRICE_MISSING';
746
+ } | {
747
+ ruleName?: 'RECURRING_PLAN_CYCLE_DURATION_TOO_SHORT';
748
+ } | {
749
+ ruleName?: 'RECURRING_PLAN_CYCLE_COUNT_INVALID';
750
+ } | {
751
+ ruleName?: 'SINGLE_PAYMENT_DURATION_TOO_SHORT';
752
+ } | {
753
+ ruleName?: 'SINGLE_PAYMENT_CYCLE_COUNT_INVALID';
754
+ } | {
755
+ ruleName?: 'SINGLE_PAYMENT_FREE_TRIAL_UNSUPPORTED';
756
+ } | {
757
+ ruleName?: 'INVALID_SINGLE_PAYMENT_WITHOUT_DURATION';
758
+ } | {
759
+ ruleName?: 'invalid_duration_unit';
760
+ } | {
761
+ ruleName?: 'client_data_is_invalid';
762
+ };
763
+ /** @docsIgnore */
764
+ type UpdatePlanApplicationErrors = {
765
+ code?: 'plan_not_found';
766
+ description?: string;
767
+ data?: Record<string, any>;
768
+ } | {
769
+ code?: 'PRICING_PLANS_NOT_INSTALLED';
770
+ description?: string;
771
+ data?: Record<string, any>;
772
+ };
773
+ /** @docsIgnore */
774
+ type UpdatePlanValidationErrors = {
775
+ ruleName?: 'MISSING_PLAN_ID';
776
+ } | {
777
+ ruleName?: 'PLAN_NAME_BLANK';
778
+ } | {
779
+ ruleName?: 'PLAN_FEE_NAME_BLANK';
780
+ } | {
781
+ ruleName?: 'PERIOD_AMOUNT_OUT_OF_RANGE';
782
+ } | {
783
+ ruleName?: 'RECURRING_PLAN_PAYMENT_PRICE_MISSING';
784
+ } | {
785
+ ruleName?: 'RECURRING_PLAN_CYCLE_DURATION_TOO_SHORT';
786
+ } | {
787
+ ruleName?: 'RECURRING_PLAN_CYCLE_COUNT_INVALID';
788
+ } | {
789
+ ruleName?: 'SINGLE_PAYMENT_CYCLE_COUNT_INVALID';
790
+ } | {
791
+ ruleName?: 'SINGLE_PAYMENT_FREE_TRIAL_UNSUPPORTED';
792
+ } | {
793
+ ruleName?: 'INVALID_SINGLE_PAYMENT_WITHOUT_DURATION';
794
+ } | {
795
+ ruleName?: 'INVALID_DURATION_UNIT';
796
+ } | {
797
+ ruleName?: 'update_not_supported';
798
+ } | {
799
+ ruleName?: 'invalid_period_amount';
800
+ } | {
801
+ ruleName?: 'price_missing';
802
+ } | {
803
+ ruleName?: 'duration_missing';
804
+ } | {
805
+ ruleName?: 'free_trial_not_supported';
806
+ } | {
807
+ ruleName?: 'client_data_is_invalid';
808
+ };
809
+ /** @docsIgnore */
810
+ type SetPlanVisibilityApplicationErrors = {
811
+ code?: 'PRICING_PLANS_NOT_INSTALLED';
812
+ description?: string;
813
+ data?: Record<string, any>;
814
+ } | {
815
+ code?: 'plan_not_found';
816
+ description?: string;
817
+ data?: Record<string, any>;
818
+ } | {
819
+ code?: 'set_visibility_not_supported';
820
+ description?: string;
821
+ data?: Record<string, any>;
822
+ };
823
+ /** @docsIgnore */
824
+ type MakePlanPrimaryApplicationErrors = {
825
+ code?: 'PRICING_PLANS_NOT_INSTALLED';
826
+ description?: string;
827
+ data?: Record<string, any>;
828
+ } | {
829
+ code?: 'plan_not_found';
830
+ description?: string;
831
+ data?: Record<string, any>;
832
+ } | {
833
+ code?: 'set_primary_not_supported';
834
+ description?: string;
835
+ data?: Record<string, any>;
836
+ };
837
+ /** @docsIgnore */
838
+ type ClearPrimaryApplicationErrors = {
839
+ code?: 'PRICING_PLANS_NOT_INSTALLED';
840
+ description?: string;
841
+ data?: Record<string, any>;
842
+ };
843
+ /** @docsIgnore */
844
+ type ArchivePlanApplicationErrors = {
845
+ code?: 'PRICING_PLANS_NOT_INSTALLED';
846
+ description?: string;
847
+ data?: Record<string, any>;
848
+ } | {
849
+ code?: 'plan_not_found';
850
+ description?: string;
851
+ data?: Record<string, any>;
852
+ } | {
853
+ code?: 'already_archived';
854
+ description?: string;
855
+ data?: Record<string, any>;
856
+ };
425
857
 
426
858
  type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
427
859
  getUrl: (context: any) => string;
@@ -455,4 +887,4 @@ declare function archivePlan(): __PublicMethodMetaInfo<'POST', {
455
887
  id: string;
456
888
  }, ArchivePlanRequest$1, ArchivePlanRequest, ArchivePlanResponse$1, ArchivePlanResponse>;
457
889
 
458
- export { type __PublicMethodMetaInfo, archivePlan, clearPrimary, createPlan, getPlan, getPlanStats, listPlans, listPublicPlans, makePlanPrimary, queryPublicPlans, setPlanVisibility, updatePlan };
890
+ export { type ActionEvent as ActionEventOriginal, type ApplicationError as ApplicationErrorOriginal, AppliedAt as AppliedAtOriginal, type AppliedAtWithLiterals as AppliedAtWithLiteralsOriginal, type ArchivePlanApplicationErrors as ArchivePlanApplicationErrorsOriginal, type ArchivePlanRequest as ArchivePlanRequestOriginal, type ArchivePlanResponse as ArchivePlanResponseOriginal, ArchivedFilter as ArchivedFilterOriginal, type ArchivedFilterWithLiterals as ArchivedFilterWithLiteralsOriginal, type ArrangePlansRequest as ArrangePlansRequestOriginal, type ArrangePlansResponse as ArrangePlansResponseOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, type BulkArchivePlanRequest as BulkArchivePlanRequestOriginal, type BulkArchivePlanResponse as BulkArchivePlanResponseOriginal, type BulkPlanResult as BulkPlanResultOriginal, type BuyerCanCancelUpdated as BuyerCanCancelUpdatedOriginal, type ClearPrimaryApplicationErrors as ClearPrimaryApplicationErrorsOriginal, type ClearPrimaryRequest as ClearPrimaryRequestOriginal, type ClearPrimaryResponse as ClearPrimaryResponseOriginal, type CountPlansRequest as CountPlansRequestOriginal, type CountPlansResponse as CountPlansResponseOriginal, type CreatePlanApplicationErrors as CreatePlanApplicationErrorsOriginal, type CreatePlanRequest as CreatePlanRequestOriginal, type CreatePlanResponse as CreatePlanResponseOriginal, type CreatePlanValidationErrors as CreatePlanValidationErrorsOriginal, type Cursors as CursorsOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type Duration as DurationOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type FeeConfig as FeeConfigOriginal, type Fee as FeeOriginal, type GetPlanApplicationErrors as GetPlanApplicationErrorsOriginal, type GetPlanRequest as GetPlanRequestOriginal, type GetPlanResponse as GetPlanResponseOriginal, type GetPlanStatsApplicationErrors as GetPlanStatsApplicationErrorsOriginal, type GetPlanStatsRequest as GetPlanStatsRequestOriginal, type GetPlanStatsResponse as GetPlanStatsResponseOriginal, type GetPlansPremiumStatusRequest as GetPlansPremiumStatusRequestOriginal, type GetPlansPremiumStatusResponse as GetPlansPremiumStatusResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type ItemMetadata as ItemMetadataOriginal, type ListPlansApplicationErrors as ListPlansApplicationErrorsOriginal, type ListPlansRequest as ListPlansRequestOriginal, type ListPlansResponse as ListPlansResponseOriginal, type ListPlansValidationErrors as ListPlansValidationErrorsOriginal, type ListPublicPlansApplicationErrors as ListPublicPlansApplicationErrorsOriginal, type ListPublicPlansRequest as ListPublicPlansRequestOriginal, type ListPublicPlansResponse as ListPublicPlansResponseOriginal, type MakePlanPrimaryApplicationErrors as MakePlanPrimaryApplicationErrorsOriginal, type MakePlanPrimaryRequest as MakePlanPrimaryRequestOriginal, type MakePlanPrimaryResponse as MakePlanPrimaryResponseOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type Money as MoneyOriginal, type PagingMetadataV2 as PagingMetadataV2Original, type Paging as PagingOriginal, PeriodUnit as PeriodUnitOriginal, type PeriodUnitWithLiterals as PeriodUnitWithLiteralsOriginal, type PlanArchived as PlanArchivedOriginal, type Plan as PlanOriginal, type Pricing as PricingOriginal, type PricingPricingModelOneOf as PricingPricingModelOneOfOriginal, PublicFilter as PublicFilterOriginal, type PublicFilterWithLiterals as PublicFilterWithLiteralsOriginal, type PublicPlan as PublicPlanOriginal, type QueryPublicPlansApplicationErrors as QueryPublicPlansApplicationErrorsOriginal, type QueryPublicPlansRequest as QueryPublicPlansRequestOriginal, type QueryPublicPlansResponse as QueryPublicPlansResponseOriginal, type QueryPublicPlansValidationErrors as QueryPublicPlansValidationErrorsOriginal, type QueryV2 as QueryV2Original, type Recurrence as RecurrenceOriginal, type RestoreInfo as RestoreInfoOriginal, type SearchPlansRequest as SearchPlansRequestOriginal, type SearchPlansResponse as SearchPlansResponseOriginal, type SetPlanVisibilityApplicationErrors as SetPlanVisibilityApplicationErrorsOriginal, type SetPlanVisibilityRequest as SetPlanVisibilityRequestOriginal, type SetPlanVisibilityResponse as SetPlanVisibilityResponseOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, type StringList as StringListOriginal, type UpdatePlanApplicationErrors as UpdatePlanApplicationErrorsOriginal, type UpdatePlanRequest as UpdatePlanRequestOriginal, type UpdatePlanResponse as UpdatePlanResponseOriginal, type UpdatePlanValidationErrors as UpdatePlanValidationErrorsOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, archivePlan, clearPrimary, createPlan, getPlan, getPlanStats, listPlans, listPublicPlans, makePlanPrimary, queryPublicPlans, setPlanVisibility, updatePlan };
package/build/cjs/meta.js CHANGED
@@ -20,6 +20,12 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // meta.ts
21
21
  var meta_exports = {};
22
22
  __export(meta_exports, {
23
+ AppliedAtOriginal: () => AppliedAt,
24
+ ArchivedFilterOriginal: () => ArchivedFilter,
25
+ PeriodUnitOriginal: () => PeriodUnit,
26
+ PublicFilterOriginal: () => PublicFilter,
27
+ SortOrderOriginal: () => SortOrder,
28
+ WebhookIdentityTypeOriginal: () => WebhookIdentityType,
23
29
  archivePlan: () => archivePlan2,
24
30
  clearPrimary: () => clearPrimary2,
25
31
  createPlan: () => createPlan2,
@@ -452,6 +458,46 @@ function archivePlan(payload) {
452
458
  return __archivePlan;
453
459
  }
454
460
 
461
+ // src/pricing-plans-v2-plan-plans.types.ts
462
+ var PeriodUnit = /* @__PURE__ */ ((PeriodUnit2) => {
463
+ PeriodUnit2["UNDEFINED"] = "UNDEFINED";
464
+ PeriodUnit2["DAY"] = "DAY";
465
+ PeriodUnit2["WEEK"] = "WEEK";
466
+ PeriodUnit2["MONTH"] = "MONTH";
467
+ PeriodUnit2["YEAR"] = "YEAR";
468
+ return PeriodUnit2;
469
+ })(PeriodUnit || {});
470
+ var AppliedAt = /* @__PURE__ */ ((AppliedAt2) => {
471
+ AppliedAt2["UNKNOWN_CHARGE_EVENT"] = "UNKNOWN_CHARGE_EVENT";
472
+ AppliedAt2["FIRST_PAYMENT"] = "FIRST_PAYMENT";
473
+ return AppliedAt2;
474
+ })(AppliedAt || {});
475
+ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
476
+ SortOrder2["ASC"] = "ASC";
477
+ SortOrder2["DESC"] = "DESC";
478
+ return SortOrder2;
479
+ })(SortOrder || {});
480
+ var ArchivedFilter = /* @__PURE__ */ ((ArchivedFilter2) => {
481
+ ArchivedFilter2["ACTIVE"] = "ACTIVE";
482
+ ArchivedFilter2["ARCHIVED"] = "ARCHIVED";
483
+ ArchivedFilter2["ARCHIVED_AND_ACTIVE"] = "ARCHIVED_AND_ACTIVE";
484
+ return ArchivedFilter2;
485
+ })(ArchivedFilter || {});
486
+ var PublicFilter = /* @__PURE__ */ ((PublicFilter2) => {
487
+ PublicFilter2["PUBLIC_AND_HIDDEN"] = "PUBLIC_AND_HIDDEN";
488
+ PublicFilter2["PUBLIC"] = "PUBLIC";
489
+ PublicFilter2["HIDDEN"] = "HIDDEN";
490
+ return PublicFilter2;
491
+ })(PublicFilter || {});
492
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
493
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
494
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
495
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
496
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
497
+ WebhookIdentityType2["APP"] = "APP";
498
+ return WebhookIdentityType2;
499
+ })(WebhookIdentityType || {});
500
+
455
501
  // src/pricing-plans-v2-plan-plans.meta.ts
456
502
  function listPublicPlans2() {
457
503
  const payload = {};
@@ -653,6 +699,12 @@ function archivePlan2() {
653
699
  }
654
700
  // Annotate the CommonJS export names for ESM import in node:
655
701
  0 && (module.exports = {
702
+ AppliedAtOriginal,
703
+ ArchivedFilterOriginal,
704
+ PeriodUnitOriginal,
705
+ PublicFilterOriginal,
706
+ SortOrderOriginal,
707
+ WebhookIdentityTypeOriginal,
656
708
  archivePlan,
657
709
  clearPrimary,
658
710
  createPlan,