@lumeweb/portal-sdk 0.1.2 → 0.1.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.
@@ -1,3 +1,6 @@
1
+ import { faker } from "/home/runner/work/web/web/node_modules/.pnpm/@faker-js+faker@9.9.0/node_modules/@faker-js/faker/dist/index.js";
2
+ import { HttpResponse, delay, http } from "/home/runner/work/web/web/node_modules/.pnpm/msw@2.14.6_@types+node@25.9.1_typescript@6.0.3/node_modules/msw/lib/core/index.mjs";
3
+
1
4
  //#region src/account/generated/billing.ts
2
5
  const getGetApiAccountBillingBalanceUrl = () => {
3
6
  return `/api/account/billing/balance`;
@@ -438,7 +441,571 @@ const getApiBillingPlans = async (options) => {
438
441
  headers: res.headers
439
442
  };
440
443
  };
444
+ const getGetApiAccountBillingBalanceResponseMock = (overrideResponse = {}) => ({
445
+ balance: {},
446
+ user_id: faker.number.int(),
447
+ ...overrideResponse
448
+ });
449
+ const getPostApiAccountBillingCancelResponseMock = (overrideResponse = {}) => ({
450
+ action: faker.string.alpha({ length: {
451
+ min: 10,
452
+ max: 20
453
+ } }),
454
+ api_endpoint: faker.helpers.arrayElement([{
455
+ method: faker.string.alpha({ length: {
456
+ min: 10,
457
+ max: 20
458
+ } }),
459
+ path: faker.string.alpha({ length: {
460
+ min: 10,
461
+ max: 20
462
+ } })
463
+ }, void 0]),
464
+ can_abort: faker.datatype.boolean(),
465
+ confirmation_message: faker.helpers.arrayElement([faker.string.alpha({ length: {
466
+ min: 10,
467
+ max: 20
468
+ } }), void 0]),
469
+ effective_time: faker.helpers.arrayElement([faker.date.past().toISOString().slice(0, 19) + "Z", void 0]),
470
+ error_message: faker.helpers.arrayElement([faker.string.alpha({ length: {
471
+ min: 10,
472
+ max: 20
473
+ } }), void 0]),
474
+ requires_confirmation: faker.datatype.boolean(),
475
+ status: faker.string.alpha({ length: {
476
+ min: 10,
477
+ max: 20
478
+ } }),
479
+ url: faker.helpers.arrayElement([faker.string.alpha({ length: {
480
+ min: 10,
481
+ max: 20
482
+ } }), void 0]),
483
+ ...overrideResponse
484
+ });
485
+ const getPostApiAccountBillingCancelAbortResponseMock = (overrideResponse = {}) => ({
486
+ action: faker.string.alpha({ length: {
487
+ min: 10,
488
+ max: 20
489
+ } }),
490
+ api_endpoint: faker.helpers.arrayElement([{
491
+ method: faker.string.alpha({ length: {
492
+ min: 10,
493
+ max: 20
494
+ } }),
495
+ path: faker.string.alpha({ length: {
496
+ min: 10,
497
+ max: 20
498
+ } })
499
+ }, void 0]),
500
+ can_abort: faker.datatype.boolean(),
501
+ confirmation_message: faker.helpers.arrayElement([faker.string.alpha({ length: {
502
+ min: 10,
503
+ max: 20
504
+ } }), void 0]),
505
+ effective_time: faker.helpers.arrayElement([faker.date.past().toISOString().slice(0, 19) + "Z", void 0]),
506
+ error_message: faker.helpers.arrayElement([faker.string.alpha({ length: {
507
+ min: 10,
508
+ max: 20
509
+ } }), void 0]),
510
+ requires_confirmation: faker.datatype.boolean(),
511
+ status: faker.string.alpha({ length: {
512
+ min: 10,
513
+ max: 20
514
+ } }),
515
+ url: faker.helpers.arrayElement([faker.string.alpha({ length: {
516
+ min: 10,
517
+ max: 20
518
+ } }), void 0]),
519
+ ...overrideResponse
520
+ });
521
+ const getPostApiAccountBillingChangePlanResponseMock = (overrideResponse = {}) => ({
522
+ action: faker.string.alpha({ length: {
523
+ min: 10,
524
+ max: 20
525
+ } }),
526
+ api_endpoint: faker.helpers.arrayElement([{
527
+ method: faker.string.alpha({ length: {
528
+ min: 10,
529
+ max: 20
530
+ } }),
531
+ path: faker.string.alpha({ length: {
532
+ min: 10,
533
+ max: 20
534
+ } })
535
+ }, void 0]),
536
+ can_abort: faker.datatype.boolean(),
537
+ confirmation_message: faker.helpers.arrayElement([faker.string.alpha({ length: {
538
+ min: 10,
539
+ max: 20
540
+ } }), void 0]),
541
+ effective_time: faker.helpers.arrayElement([faker.date.past().toISOString().slice(0, 19) + "Z", void 0]),
542
+ error_message: faker.helpers.arrayElement([faker.string.alpha({ length: {
543
+ min: 10,
544
+ max: 20
545
+ } }), void 0]),
546
+ requires_confirmation: faker.datatype.boolean(),
547
+ status: faker.string.alpha({ length: {
548
+ min: 10,
549
+ max: 20
550
+ } }),
551
+ url: faker.helpers.arrayElement([faker.string.alpha({ length: {
552
+ min: 10,
553
+ max: 20
554
+ } }), void 0]),
555
+ ...overrideResponse
556
+ });
557
+ const getGetApiAccountBillingCheckoutSessionSessionIdStatusResponseMock = (overrideResponse = {}) => ({
558
+ customer_email: faker.string.alpha({ length: {
559
+ min: 10,
560
+ max: 20
561
+ } }),
562
+ session_id: faker.string.alpha({ length: {
563
+ min: 10,
564
+ max: 20
565
+ } }),
566
+ status: faker.string.alpha({ length: {
567
+ min: 10,
568
+ max: 20
569
+ } }),
570
+ user_id: faker.number.int(),
571
+ ...overrideResponse
572
+ });
573
+ const getGetApiAccountBillingCheckoutUiPlanIdResponseMock = (overrideResponse = {}) => ({
574
+ expires_at: faker.date.past().toISOString().slice(0, 19) + "Z",
575
+ fragments: Array.from({ length: faker.number.int({
576
+ min: 1,
577
+ max: 10
578
+ }) }, (_, i) => i + 1).map(() => ({
579
+ css: faker.helpers.arrayElement([faker.string.alpha({ length: {
580
+ min: 10,
581
+ max: 20
582
+ } }), void 0]),
583
+ html: faker.helpers.arrayElement([faker.string.alpha({ length: {
584
+ min: 10,
585
+ max: 20
586
+ } }), void 0]),
587
+ link: faker.helpers.arrayElement([faker.string.alpha({ length: {
588
+ min: 10,
589
+ max: 20
590
+ } }), void 0]),
591
+ metadata: faker.helpers.arrayElement([{}, void 0]),
592
+ script: faker.helpers.arrayElement([faker.string.alpha({ length: {
593
+ min: 10,
594
+ max: 20
595
+ } }), void 0]),
596
+ type: faker.string.alpha({ length: {
597
+ min: 10,
598
+ max: 20
599
+ } })
600
+ })),
601
+ metadata: faker.helpers.arrayElement([{}, void 0]),
602
+ session_id: faker.helpers.arrayElement([faker.string.alpha({ length: {
603
+ min: 10,
604
+ max: 20
605
+ } }), void 0]),
606
+ ...overrideResponse
607
+ });
608
+ const getGetApiAccountBillingCreditsResponseMock = (overrideResponse = {}) => ({
609
+ data: Array.from({ length: faker.number.int({
610
+ min: 1,
611
+ max: 10
612
+ }) }, (_, i) => i + 1).map(() => ({
613
+ amount: {},
614
+ created_at: faker.date.past().toISOString().slice(0, 19) + "Z",
615
+ description: faker.helpers.arrayElement([faker.string.alpha({ length: {
616
+ min: 10,
617
+ max: 20
618
+ } }), void 0]),
619
+ direction: faker.string.alpha({ length: {
620
+ min: 10,
621
+ max: 20
622
+ } }),
623
+ id: Array.from({ length: faker.number.int({
624
+ min: 16,
625
+ max: 16
626
+ }) }, (_, i) => i + 1).map(() => faker.number.int()),
627
+ type: faker.string.alpha({ length: {
628
+ min: 10,
629
+ max: 20
630
+ } })
631
+ })),
632
+ total: faker.number.int(),
633
+ ...overrideResponse
634
+ });
635
+ const getPostApiAccountBillingCustomerPortalResponseMock = (overrideResponse = {}) => ({
636
+ action: faker.string.alpha({ length: {
637
+ min: 10,
638
+ max: 20
639
+ } }),
640
+ api_endpoint: faker.helpers.arrayElement([{
641
+ method: faker.string.alpha({ length: {
642
+ min: 10,
643
+ max: 20
644
+ } }),
645
+ path: faker.string.alpha({ length: {
646
+ min: 10,
647
+ max: 20
648
+ } })
649
+ }, void 0]),
650
+ can_abort: faker.datatype.boolean(),
651
+ confirmation_message: faker.helpers.arrayElement([faker.string.alpha({ length: {
652
+ min: 10,
653
+ max: 20
654
+ } }), void 0]),
655
+ effective_time: faker.helpers.arrayElement([faker.date.past().toISOString().slice(0, 19) + "Z", void 0]),
656
+ error_message: faker.helpers.arrayElement([faker.string.alpha({ length: {
657
+ min: 10,
658
+ max: 20
659
+ } }), void 0]),
660
+ requires_confirmation: faker.datatype.boolean(),
661
+ status: faker.string.alpha({ length: {
662
+ min: 10,
663
+ max: 20
664
+ } }),
665
+ url: faker.helpers.arrayElement([faker.string.alpha({ length: {
666
+ min: 10,
667
+ max: 20
668
+ } }), void 0]),
669
+ ...overrideResponse
670
+ });
671
+ const getPostApiAccountBillingManagementResponseMock = (overrideResponse = {}) => ({
672
+ action: faker.string.alpha({ length: {
673
+ min: 10,
674
+ max: 20
675
+ } }),
676
+ api_endpoint: faker.helpers.arrayElement([{
677
+ method: faker.string.alpha({ length: {
678
+ min: 10,
679
+ max: 20
680
+ } }),
681
+ path: faker.string.alpha({ length: {
682
+ min: 10,
683
+ max: 20
684
+ } })
685
+ }, void 0]),
686
+ can_abort: faker.datatype.boolean(),
687
+ confirmation_message: faker.helpers.arrayElement([faker.string.alpha({ length: {
688
+ min: 10,
689
+ max: 20
690
+ } }), void 0]),
691
+ effective_time: faker.helpers.arrayElement([faker.date.past().toISOString().slice(0, 19) + "Z", void 0]),
692
+ error_message: faker.helpers.arrayElement([faker.string.alpha({ length: {
693
+ min: 10,
694
+ max: 20
695
+ } }), void 0]),
696
+ requires_confirmation: faker.datatype.boolean(),
697
+ status: faker.string.alpha({ length: {
698
+ min: 10,
699
+ max: 20
700
+ } }),
701
+ url: faker.helpers.arrayElement([faker.string.alpha({ length: {
702
+ min: 10,
703
+ max: 20
704
+ } }), void 0]),
705
+ ...overrideResponse
706
+ });
707
+ const getGetApiAccountBillingManagementCapabilitiesResponseMock = (overrideResponse = {}) => ({
708
+ admin_operations: { [faker.string.alphanumeric(5)]: faker.datatype.boolean() },
709
+ management_mode: faker.string.alpha({ length: {
710
+ min: 10,
711
+ max: 20
712
+ } }),
713
+ operations: { [faker.string.alphanumeric(5)]: faker.datatype.boolean() },
714
+ ...overrideResponse
715
+ });
716
+ const getPostApiAccountBillingPauseResponseMock = (overrideResponse = {}) => ({
717
+ action: faker.string.alpha({ length: {
718
+ min: 10,
719
+ max: 20
720
+ } }),
721
+ api_endpoint: faker.helpers.arrayElement([{
722
+ method: faker.string.alpha({ length: {
723
+ min: 10,
724
+ max: 20
725
+ } }),
726
+ path: faker.string.alpha({ length: {
727
+ min: 10,
728
+ max: 20
729
+ } })
730
+ }, void 0]),
731
+ can_abort: faker.datatype.boolean(),
732
+ confirmation_message: faker.helpers.arrayElement([faker.string.alpha({ length: {
733
+ min: 10,
734
+ max: 20
735
+ } }), void 0]),
736
+ effective_time: faker.helpers.arrayElement([faker.date.past().toISOString().slice(0, 19) + "Z", void 0]),
737
+ error_message: faker.helpers.arrayElement([faker.string.alpha({ length: {
738
+ min: 10,
739
+ max: 20
740
+ } }), void 0]),
741
+ requires_confirmation: faker.datatype.boolean(),
742
+ status: faker.string.alpha({ length: {
743
+ min: 10,
744
+ max: 20
745
+ } }),
746
+ url: faker.helpers.arrayElement([faker.string.alpha({ length: {
747
+ min: 10,
748
+ max: 20
749
+ } }), void 0]),
750
+ ...overrideResponse
751
+ });
752
+ const getPostApiAccountBillingResumeResponseMock = (overrideResponse = {}) => ({
753
+ action: faker.string.alpha({ length: {
754
+ min: 10,
755
+ max: 20
756
+ } }),
757
+ api_endpoint: faker.helpers.arrayElement([{
758
+ method: faker.string.alpha({ length: {
759
+ min: 10,
760
+ max: 20
761
+ } }),
762
+ path: faker.string.alpha({ length: {
763
+ min: 10,
764
+ max: 20
765
+ } })
766
+ }, void 0]),
767
+ can_abort: faker.datatype.boolean(),
768
+ confirmation_message: faker.helpers.arrayElement([faker.string.alpha({ length: {
769
+ min: 10,
770
+ max: 20
771
+ } }), void 0]),
772
+ effective_time: faker.helpers.arrayElement([faker.date.past().toISOString().slice(0, 19) + "Z", void 0]),
773
+ error_message: faker.helpers.arrayElement([faker.string.alpha({ length: {
774
+ min: 10,
775
+ max: 20
776
+ } }), void 0]),
777
+ requires_confirmation: faker.datatype.boolean(),
778
+ status: faker.string.alpha({ length: {
779
+ min: 10,
780
+ max: 20
781
+ } }),
782
+ url: faker.helpers.arrayElement([faker.string.alpha({ length: {
783
+ min: 10,
784
+ max: 20
785
+ } }), void 0]),
786
+ ...overrideResponse
787
+ });
788
+ const getGetApiAccountBillingSubscriptionResponseMock = (overrideResponse = {}) => ({
789
+ created_at: faker.helpers.arrayElement([faker.date.past().toISOString().slice(0, 19) + "Z", void 0]),
790
+ gateway_type: faker.helpers.arrayElement([faker.string.alpha({ length: {
791
+ min: 10,
792
+ max: 20
793
+ } }), void 0]),
794
+ is_subscribed: faker.datatype.boolean(),
795
+ paused_at: faker.helpers.arrayElement([faker.date.past().toISOString().slice(0, 19) + "Z", void 0]),
796
+ pricing_plan_period_id: faker.helpers.arrayElement([faker.number.int(), void 0]),
797
+ updated_at: faker.helpers.arrayElement([faker.date.past().toISOString().slice(0, 19) + "Z", void 0]),
798
+ will_cancel_at: faker.helpers.arrayElement([faker.date.past().toISOString().slice(0, 19) + "Z", void 0]),
799
+ ...overrideResponse
800
+ });
801
+ const getPostApiAccountBillingWebhooksGatewayTypeResponseMock = (overrideResponse = {}) => ({
802
+ error: faker.string.alpha({ length: {
803
+ min: 10,
804
+ max: 20
805
+ } }),
806
+ ...overrideResponse
807
+ });
808
+ const getGetApiBillingGatewaysResponseMock = () => Array.from({ length: faker.number.int({
809
+ min: 1,
810
+ max: 10
811
+ }) }, (_, i) => i + 1).map(() => ({
812
+ abilities: {
813
+ checkout: faker.datatype.boolean(),
814
+ customer_portal: faker.datatype.boolean(),
815
+ session_status: faker.datatype.boolean()
816
+ },
817
+ description: faker.string.alpha({ length: {
818
+ min: 10,
819
+ max: 20
820
+ } }),
821
+ id: faker.string.alpha({ length: {
822
+ min: 10,
823
+ max: 20
824
+ } }),
825
+ is_active: faker.datatype.boolean(),
826
+ logo_url: faker.string.alpha({ length: {
827
+ min: 10,
828
+ max: 20
829
+ } }),
830
+ name: faker.string.alpha({ length: {
831
+ min: 10,
832
+ max: 20
833
+ } })
834
+ }));
835
+ const getGetApiBillingPlansResponseMock = (overrideResponse = {}) => ({
836
+ data: Array.from({ length: faker.number.int({
837
+ min: 1,
838
+ max: 10
839
+ }) }, (_, i) => i + 1).map(() => ({
840
+ currency: faker.string.alpha({ length: {
841
+ min: 10,
842
+ max: 20
843
+ } }),
844
+ description: faker.string.alpha({ length: {
845
+ min: 10,
846
+ max: 20
847
+ } }),
848
+ features: Array.from({ length: faker.number.int({
849
+ min: 1,
850
+ max: 10
851
+ }) }, (_, i) => i + 1).map(() => faker.string.alpha({ length: {
852
+ min: 10,
853
+ max: 20
854
+ } })),
855
+ id: faker.number.int(),
856
+ name: faker.string.alpha({ length: {
857
+ min: 10,
858
+ max: 20
859
+ } }),
860
+ pricing_periods: Array.from({ length: faker.number.int({
861
+ min: 1,
862
+ max: 10
863
+ }) }, (_, i) => i + 1).map(() => ({
864
+ cadence: faker.string.alpha({ length: {
865
+ min: 10,
866
+ max: 20
867
+ } }),
868
+ id: faker.number.int(),
869
+ price_usd: faker.number.float({ fractionDigits: 2 }),
870
+ quota_plan_id: faker.number.int(),
871
+ rolling_days: faker.helpers.arrayElement([faker.number.int(), void 0])
872
+ }))
873
+ })),
874
+ total: faker.number.int(),
875
+ ...overrideResponse
876
+ });
877
+ const getGetApiAccountBillingBalanceMockHandler = (overrideResponse, options) => {
878
+ return http.get("*/api/account/billing/balance", async (info) => {
879
+ await delay(0);
880
+ return HttpResponse.json(overrideResponse !== void 0 ? typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse : getGetApiAccountBillingBalanceResponseMock(), { status: 200 });
881
+ }, options);
882
+ };
883
+ const getPostApiAccountBillingCancelMockHandler = (overrideResponse, options) => {
884
+ return http.post("*/api/account/billing/cancel", async (info) => {
885
+ await delay(0);
886
+ return HttpResponse.json(overrideResponse !== void 0 ? typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse : getPostApiAccountBillingCancelResponseMock(), { status: 200 });
887
+ }, options);
888
+ };
889
+ const getPostApiAccountBillingCancelAbortMockHandler = (overrideResponse, options) => {
890
+ return http.post("*/api/account/billing/cancel/abort", async (info) => {
891
+ await delay(0);
892
+ return HttpResponse.json(overrideResponse !== void 0 ? typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse : getPostApiAccountBillingCancelAbortResponseMock(), { status: 200 });
893
+ }, options);
894
+ };
895
+ const getPostApiAccountBillingChangePlanMockHandler = (overrideResponse, options) => {
896
+ return http.post("*/api/account/billing/change-plan", async (info) => {
897
+ await delay(0);
898
+ return HttpResponse.json(overrideResponse !== void 0 ? typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse : getPostApiAccountBillingChangePlanResponseMock(), { status: 200 });
899
+ }, options);
900
+ };
901
+ const getGetApiAccountBillingCheckoutSessionSessionIdStatusMockHandler = (overrideResponse, options) => {
902
+ return http.get("*/api/account/billing/checkout/session/:sessionId/status", async (info) => {
903
+ await delay(0);
904
+ return HttpResponse.json(overrideResponse !== void 0 ? typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse : getGetApiAccountBillingCheckoutSessionSessionIdStatusResponseMock(), { status: 200 });
905
+ }, options);
906
+ };
907
+ const getGetApiAccountBillingCheckoutUiPlanIdMockHandler = (overrideResponse, options) => {
908
+ return http.get("*/api/account/billing/checkout/ui/:planId", async (info) => {
909
+ await delay(0);
910
+ return HttpResponse.json(overrideResponse !== void 0 ? typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse : getGetApiAccountBillingCheckoutUiPlanIdResponseMock(), { status: 200 });
911
+ }, options);
912
+ };
913
+ const getGetApiAccountBillingCreditsMockHandler = (overrideResponse, options) => {
914
+ return http.get("*/api/account/billing/credits", async (info) => {
915
+ await delay(0);
916
+ return HttpResponse.json(overrideResponse !== void 0 ? typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse : getGetApiAccountBillingCreditsResponseMock(), { status: 200 });
917
+ }, options);
918
+ };
919
+ const getPostApiAccountBillingCustomerPortalMockHandler = (overrideResponse, options) => {
920
+ return http.post("*/api/account/billing/customer-portal", async (info) => {
921
+ await delay(0);
922
+ return HttpResponse.json(overrideResponse !== void 0 ? typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse : getPostApiAccountBillingCustomerPortalResponseMock(), { status: 200 });
923
+ }, options);
924
+ };
925
+ const getPostApiAccountBillingManagementMockHandler = (overrideResponse, options) => {
926
+ return http.post("*/api/account/billing/management", async (info) => {
927
+ await delay(0);
928
+ return HttpResponse.json(overrideResponse !== void 0 ? typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse : getPostApiAccountBillingManagementResponseMock(), { status: 200 });
929
+ }, options);
930
+ };
931
+ const getGetApiAccountBillingManagementCapabilitiesMockHandler = (overrideResponse, options) => {
932
+ return http.get("*/api/account/billing/management/capabilities", async (info) => {
933
+ await delay(0);
934
+ return HttpResponse.json(overrideResponse !== void 0 ? typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse : getGetApiAccountBillingManagementCapabilitiesResponseMock(), { status: 200 });
935
+ }, options);
936
+ };
937
+ const getPostApiAccountBillingPauseMockHandler = (overrideResponse, options) => {
938
+ return http.post("*/api/account/billing/pause", async (info) => {
939
+ await delay(0);
940
+ return HttpResponse.json(overrideResponse !== void 0 ? typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse : getPostApiAccountBillingPauseResponseMock(), { status: 200 });
941
+ }, options);
942
+ };
943
+ const getPostApiAccountBillingResumeMockHandler = (overrideResponse, options) => {
944
+ return http.post("*/api/account/billing/resume", async (info) => {
945
+ await delay(0);
946
+ return HttpResponse.json(overrideResponse !== void 0 ? typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse : getPostApiAccountBillingResumeResponseMock(), { status: 200 });
947
+ }, options);
948
+ };
949
+ const getGetApiAccountBillingSubscriptionMockHandler = (overrideResponse, options) => {
950
+ return http.get("*/api/account/billing/subscription", async (info) => {
951
+ await delay(0);
952
+ return HttpResponse.json(overrideResponse !== void 0 ? typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse : getGetApiAccountBillingSubscriptionResponseMock(), { status: 200 });
953
+ }, options);
954
+ };
955
+ const getGetApiAccountBillingSubscriptionEventsMockHandler = (overrideResponse, options) => {
956
+ return http.get("*/api/account/billing/subscription/events", async (info) => {
957
+ await delay(0);
958
+ if (typeof overrideResponse === "function") await overrideResponse(info);
959
+ return new HttpResponse(null, { status: 200 });
960
+ }, options);
961
+ };
962
+ const getPostApiAccountBillingWebhooksGatewayTypeMockHandler = (overrideResponse, options) => {
963
+ return http.post("*/api/account/billing/webhooks/:gatewayType", async (info) => {
964
+ await delay(0);
965
+ const resolvedBody = overrideResponse !== void 0 ? typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse : getPostApiAccountBillingWebhooksGatewayTypeResponseMock();
966
+ return resolvedBody === void 0 ? new HttpResponse(null, { status: 204 }) : HttpResponse.json(resolvedBody, { status: 200 });
967
+ }, options);
968
+ };
969
+ const getGetApiBillingGatewaysMockHandler = (overrideResponse, options) => {
970
+ return http.get("*/api/billing/gateways", async (info) => {
971
+ await delay(0);
972
+ return HttpResponse.json(overrideResponse !== void 0 ? typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse : getGetApiBillingGatewaysResponseMock(), { status: 200 });
973
+ }, options);
974
+ };
975
+ const getGetApiBillingGatewaysIdLogoMockHandler = (overrideResponse, options) => {
976
+ return http.get("*/api/billing/gateways/:id/logo", async (info) => {
977
+ await delay(0);
978
+ if (typeof overrideResponse === "function") await overrideResponse(info);
979
+ return new HttpResponse(null, { status: 200 });
980
+ }, options);
981
+ };
982
+ const getGetApiBillingPlansMockHandler = (overrideResponse, options) => {
983
+ return http.get("*/api/billing/plans", async (info) => {
984
+ await delay(0);
985
+ return HttpResponse.json(overrideResponse !== void 0 ? typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse : getGetApiBillingPlansResponseMock(), { status: 200 });
986
+ }, options);
987
+ };
988
+ const getBillingMock = () => [
989
+ getGetApiAccountBillingBalanceMockHandler(),
990
+ getPostApiAccountBillingCancelMockHandler(),
991
+ getPostApiAccountBillingCancelAbortMockHandler(),
992
+ getPostApiAccountBillingChangePlanMockHandler(),
993
+ getGetApiAccountBillingCheckoutSessionSessionIdStatusMockHandler(),
994
+ getGetApiAccountBillingCheckoutUiPlanIdMockHandler(),
995
+ getGetApiAccountBillingCreditsMockHandler(),
996
+ getPostApiAccountBillingCustomerPortalMockHandler(),
997
+ getPostApiAccountBillingManagementMockHandler(),
998
+ getGetApiAccountBillingManagementCapabilitiesMockHandler(),
999
+ getPostApiAccountBillingPauseMockHandler(),
1000
+ getPostApiAccountBillingResumeMockHandler(),
1001
+ getGetApiAccountBillingSubscriptionMockHandler(),
1002
+ getGetApiAccountBillingSubscriptionEventsMockHandler(),
1003
+ getPostApiAccountBillingWebhooksGatewayTypeMockHandler(),
1004
+ getGetApiBillingGatewaysMockHandler(),
1005
+ getGetApiBillingGatewaysIdLogoMockHandler(),
1006
+ getGetApiBillingPlansMockHandler()
1007
+ ];
441
1008
 
442
1009
  //#endregion
443
- export { getApiAccountBillingBalance, getApiAccountBillingCheckoutSessionSessionIdStatus, getApiAccountBillingCheckoutUiPlanId, getApiAccountBillingCredits, getApiAccountBillingManagementCapabilities, getApiAccountBillingSubscription, getApiAccountBillingSubscriptionEvents, getApiBillingGateways, getApiBillingGatewaysIdLogo, getApiBillingPlans, getGetApiAccountBillingBalanceUrl, getGetApiAccountBillingCheckoutSessionSessionIdStatusUrl, getGetApiAccountBillingCheckoutUiPlanIdUrl, getGetApiAccountBillingCreditsUrl, getGetApiAccountBillingManagementCapabilitiesUrl, getGetApiAccountBillingSubscriptionEventsUrl, getGetApiAccountBillingSubscriptionUrl, getGetApiBillingGatewaysIdLogoUrl, getGetApiBillingGatewaysUrl, getGetApiBillingPlansUrl, getPostApiAccountBillingCancelAbortUrl, getPostApiAccountBillingCancelUrl, getPostApiAccountBillingChangePlanUrl, getPostApiAccountBillingCustomerPortalUrl, getPostApiAccountBillingManagementUrl, getPostApiAccountBillingPauseUrl, getPostApiAccountBillingResumeUrl, getPostApiAccountBillingWebhooksGatewayTypeUrl, postApiAccountBillingCancel, postApiAccountBillingCancelAbort, postApiAccountBillingChangePlan, postApiAccountBillingCustomerPortal, postApiAccountBillingManagement, postApiAccountBillingPause, postApiAccountBillingResume, postApiAccountBillingWebhooksGatewayType };
1010
+ export { getApiAccountBillingBalance, getApiAccountBillingCheckoutSessionSessionIdStatus, getApiAccountBillingCheckoutUiPlanId, getApiAccountBillingCredits, getApiAccountBillingManagementCapabilities, getApiAccountBillingSubscription, getApiAccountBillingSubscriptionEvents, getApiBillingGateways, getApiBillingGatewaysIdLogo, getApiBillingPlans, getBillingMock, getGetApiAccountBillingBalanceMockHandler, getGetApiAccountBillingBalanceResponseMock, getGetApiAccountBillingBalanceUrl, getGetApiAccountBillingCheckoutSessionSessionIdStatusMockHandler, getGetApiAccountBillingCheckoutSessionSessionIdStatusResponseMock, getGetApiAccountBillingCheckoutSessionSessionIdStatusUrl, getGetApiAccountBillingCheckoutUiPlanIdMockHandler, getGetApiAccountBillingCheckoutUiPlanIdResponseMock, getGetApiAccountBillingCheckoutUiPlanIdUrl, getGetApiAccountBillingCreditsMockHandler, getGetApiAccountBillingCreditsResponseMock, getGetApiAccountBillingCreditsUrl, getGetApiAccountBillingManagementCapabilitiesMockHandler, getGetApiAccountBillingManagementCapabilitiesResponseMock, getGetApiAccountBillingManagementCapabilitiesUrl, getGetApiAccountBillingSubscriptionEventsMockHandler, getGetApiAccountBillingSubscriptionEventsUrl, getGetApiAccountBillingSubscriptionMockHandler, getGetApiAccountBillingSubscriptionResponseMock, getGetApiAccountBillingSubscriptionUrl, getGetApiBillingGatewaysIdLogoMockHandler, getGetApiBillingGatewaysIdLogoUrl, getGetApiBillingGatewaysMockHandler, getGetApiBillingGatewaysResponseMock, getGetApiBillingGatewaysUrl, getGetApiBillingPlansMockHandler, getGetApiBillingPlansResponseMock, getGetApiBillingPlansUrl, getPostApiAccountBillingCancelAbortMockHandler, getPostApiAccountBillingCancelAbortResponseMock, getPostApiAccountBillingCancelAbortUrl, getPostApiAccountBillingCancelMockHandler, getPostApiAccountBillingCancelResponseMock, getPostApiAccountBillingCancelUrl, getPostApiAccountBillingChangePlanMockHandler, getPostApiAccountBillingChangePlanResponseMock, getPostApiAccountBillingChangePlanUrl, getPostApiAccountBillingCustomerPortalMockHandler, getPostApiAccountBillingCustomerPortalResponseMock, getPostApiAccountBillingCustomerPortalUrl, getPostApiAccountBillingManagementMockHandler, getPostApiAccountBillingManagementResponseMock, getPostApiAccountBillingManagementUrl, getPostApiAccountBillingPauseMockHandler, getPostApiAccountBillingPauseResponseMock, getPostApiAccountBillingPauseUrl, getPostApiAccountBillingResumeMockHandler, getPostApiAccountBillingResumeResponseMock, getPostApiAccountBillingResumeUrl, getPostApiAccountBillingWebhooksGatewayTypeMockHandler, getPostApiAccountBillingWebhooksGatewayTypeResponseMock, getPostApiAccountBillingWebhooksGatewayTypeUrl, postApiAccountBillingCancel, postApiAccountBillingCancelAbort, postApiAccountBillingChangePlan, postApiAccountBillingCustomerPortal, postApiAccountBillingManagement, postApiAccountBillingPause, postApiAccountBillingResume, postApiAccountBillingWebhooksGatewayType };
444
1011
  //# sourceMappingURL=billing.js.map