@outseta/api-client 0.3.52 → 0.4.0

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 (50) hide show
  1. package/dist/index.js +668 -1
  2. package/package.json +1 -1
  3. package/src/generated/{billing/billing.ts → billing-v2/billing-v2.ts} +54 -4
  4. package/src/generated/billing-v3/billing-v3.ts +2485 -0
  5. package/src/generated/crm/crm.ts +148 -0
  6. package/src/generated/models/accountExpireCurrentSubscriptionBody.ts +7 -0
  7. package/src/generated/models/accountExtendRenewalBody.ts +7 -0
  8. package/src/generated/models/accountWebhookEntityCurrentStripeProductInstancesItem.ts +0 -11
  9. package/src/generated/models/extendRenewalParams.ts +10 -2
  10. package/src/generated/models/importResult.ts +9 -0
  11. package/src/generated/models/index.ts +38 -0
  12. package/src/generated/models/qcountConfigSettingType.ts +2 -1
  13. package/src/generated/models/stripeCouponsCreateBody.ts +7 -0
  14. package/src/generated/models/stripeCouponsGetAll200.ts +8 -0
  15. package/src/generated/models/stripeCouponsGetAllParams.ts +14 -0
  16. package/src/generated/models/stripeCouponsGetRedemptions200.ts +8 -0
  17. package/src/generated/models/stripeCouponsGetRedemptionsParams.ts +14 -0
  18. package/src/generated/models/stripeInvoiceLineItemsGetAll200.ts +8 -0
  19. package/src/generated/models/stripeInvoiceLineItemsGetAllParams.ts +14 -0
  20. package/src/generated/models/stripeInvoicesChangeInvoiceStatusBody.ts +7 -0
  21. package/src/generated/models/stripeInvoicesGetAll200.ts +8 -0
  22. package/src/generated/models/stripeInvoicesGetAllParams.ts +14 -0
  23. package/src/generated/models/stripeInvoicesIssueInvoiceCreditBody.ts +7 -0
  24. package/src/generated/models/stripeInvoicesPostBody.ts +7 -0
  25. package/src/generated/models/stripePaymentMethodsGetAll200.ts +8 -0
  26. package/src/generated/models/stripePaymentMethodsGetAllParams.ts +14 -0
  27. package/src/generated/models/stripePricesGetAll200.ts +8 -0
  28. package/src/generated/models/stripePricesGetAllParams.ts +14 -0
  29. package/src/generated/models/stripeProductAllOf.ts +0 -11
  30. package/src/generated/models/stripeProductFamiliesGetAll200.ts +8 -0
  31. package/src/generated/models/stripeProductFamiliesGetAllParams.ts +14 -0
  32. package/src/generated/models/stripeProductFamiliesPostBody.ts +7 -0
  33. package/src/generated/models/stripeProductFamiliesPutBody.ts +7 -0
  34. package/src/generated/models/stripeProductsGetAll200.ts +8 -0
  35. package/src/generated/models/stripeProductsGetAllParams.ts +14 -0
  36. package/src/generated/models/stripeProductsPostBody.ts +7 -0
  37. package/src/generated/models/stripeProductsPutBody.ts +7 -0
  38. package/src/generated/models/stripePromotionCodesCreateBody.ts +7 -0
  39. package/src/generated/models/stripePromotionCodesGetAll200.ts +8 -0
  40. package/src/generated/models/stripePromotionCodesGetAllParams.ts +14 -0
  41. package/src/generated/models/stripePromotionCodesUpdateBody.ts +7 -0
  42. package/src/generated/models/stripeSubscriptionsChangeBody.ts +7 -0
  43. package/src/generated/models/stripeSubscriptionsCreateBody.ts +7 -0
  44. package/src/generated/models/stripeSubscriptionsExtendTrialBody.ts +7 -0
  45. package/src/generated/models/stripeSubscriptionsGetAll200.ts +8 -0
  46. package/src/generated/models/stripeSubscriptionsGetAllParams.ts +14 -0
  47. package/src/generated/models/stripeSubscriptionsPauseCollectionBody.ts +7 -0
  48. package/src/generated/models/stripeSubscriptionsPreviewChangeBody.ts +7 -0
  49. package/src/generated/public/public.ts +26 -0
  50. package/src/index.ts +4 -1
package/dist/index.js CHANGED
@@ -69,7 +69,7 @@ var activityAddCustomActivity = async (activityAddCustomActivityBody, options) =
69
69
  body: JSON.stringify(activityAddCustomActivityBody)
70
70
  });
71
71
  };
72
- // src/generated/billing/billing.ts
72
+ // src/generated/billing-v2/billing-v2.ts
73
73
  var getDiscountCouponGetDiscountCouponByCodeUrl = (code, params) => {
74
74
  const normalizedParams = new URLSearchParams;
75
75
  Object.entries(params || {}).forEach(([key, value]) => {
@@ -622,6 +622,548 @@ var planFamilyDeletePlanFamily = async (planFamilyUid, options) => {
622
622
  method: "DELETE"
623
623
  });
624
624
  };
625
+ // src/generated/billing-v3/billing-v3.ts
626
+ var getStripeInvoiceLineItemsGetAllUrl = (params) => {
627
+ const normalizedParams = new URLSearchParams;
628
+ Object.entries(params || {}).forEach(([key, value]) => {
629
+ if (value !== undefined) {
630
+ normalizedParams.append(key, value === null ? "null" : value.toString());
631
+ }
632
+ });
633
+ const stringifiedParams = normalizedParams.toString();
634
+ return stringifiedParams.length > 0 ? `/api/v1/billing/stripe/invoice-line-items?${stringifiedParams}` : `/api/v1/billing/stripe/invoice-line-items`;
635
+ };
636
+ var stripeInvoiceLineItemsGetAll = async (params, options) => {
637
+ return customFetch(getStripeInvoiceLineItemsGetAllUrl(params), {
638
+ ...options,
639
+ method: "GET"
640
+ });
641
+ };
642
+ var getStripeInvoiceLineItemsCancelAccessUrl = (lineItemUid) => {
643
+ return `/api/v1/billing/stripe/invoice-line-items/${lineItemUid}/cancel`;
644
+ };
645
+ var stripeInvoiceLineItemsCancelAccess = async (lineItemUid, options) => {
646
+ return customFetch(getStripeInvoiceLineItemsCancelAccessUrl(lineItemUid), {
647
+ ...options,
648
+ method: "PUT"
649
+ });
650
+ };
651
+ var getStripePaymentMethodsGetAllUrl = (params) => {
652
+ const normalizedParams = new URLSearchParams;
653
+ Object.entries(params || {}).forEach(([key, value]) => {
654
+ if (value !== undefined) {
655
+ normalizedParams.append(key, value === null ? "null" : value.toString());
656
+ }
657
+ });
658
+ const stringifiedParams = normalizedParams.toString();
659
+ return stringifiedParams.length > 0 ? `/api/v1/billing/stripe/payment-methods?${stringifiedParams}` : `/api/v1/billing/stripe/payment-methods`;
660
+ };
661
+ var stripePaymentMethodsGetAll = async (params, options) => {
662
+ return customFetch(getStripePaymentMethodsGetAllUrl(params), {
663
+ ...options,
664
+ method: "GET"
665
+ });
666
+ };
667
+ var getStripePaymentMethodsGetUrl = (uid) => {
668
+ return `/api/v1/billing/stripe/payment-methods/${uid}`;
669
+ };
670
+ var stripePaymentMethodsGet = async (uid, options) => {
671
+ return customFetch(getStripePaymentMethodsGetUrl(uid), {
672
+ ...options,
673
+ method: "GET"
674
+ });
675
+ };
676
+ var getStripePricesGetAllUrl = (params) => {
677
+ const normalizedParams = new URLSearchParams;
678
+ Object.entries(params || {}).forEach(([key, value]) => {
679
+ if (value !== undefined) {
680
+ normalizedParams.append(key, value === null ? "null" : value.toString());
681
+ }
682
+ });
683
+ const stringifiedParams = normalizedParams.toString();
684
+ return stringifiedParams.length > 0 ? `/api/v1/billing/stripe/prices?${stringifiedParams}` : `/api/v1/billing/stripe/prices`;
685
+ };
686
+ var stripePricesGetAll = async (params, options) => {
687
+ return customFetch(getStripePricesGetAllUrl(params), {
688
+ ...options,
689
+ method: "GET"
690
+ });
691
+ };
692
+ var getStripePricesGetUrl = (uid) => {
693
+ return `/api/v1/billing/stripe/prices/${uid}`;
694
+ };
695
+ var stripePricesGet = async (uid, options) => {
696
+ return customFetch(getStripePricesGetUrl(uid), {
697
+ ...options,
698
+ method: "GET"
699
+ });
700
+ };
701
+ var getStripePromotionCodesGetAllUrl = (params) => {
702
+ const normalizedParams = new URLSearchParams;
703
+ Object.entries(params || {}).forEach(([key, value]) => {
704
+ if (value !== undefined) {
705
+ normalizedParams.append(key, value === null ? "null" : value.toString());
706
+ }
707
+ });
708
+ const stringifiedParams = normalizedParams.toString();
709
+ return stringifiedParams.length > 0 ? `/api/v1/billing/stripe/promotion-codes?${stringifiedParams}` : `/api/v1/billing/stripe/promotion-codes`;
710
+ };
711
+ var stripePromotionCodesGetAll = async (params, options) => {
712
+ return customFetch(getStripePromotionCodesGetAllUrl(params), {
713
+ ...options,
714
+ method: "GET"
715
+ });
716
+ };
717
+ var getStripePromotionCodesCreateUrl = () => {
718
+ return `/api/v1/billing/stripe/promotion-codes`;
719
+ };
720
+ var stripePromotionCodesCreate = async (stripePromotionCodesCreateBody, options) => {
721
+ return customFetch(getStripePromotionCodesCreateUrl(), {
722
+ ...options,
723
+ method: "POST",
724
+ headers: { "Content-Type": "application/json", ...options?.headers },
725
+ body: JSON.stringify(stripePromotionCodesCreateBody)
726
+ });
727
+ };
728
+ var getStripePromotionCodesGetUrl = (promotionCodeUid) => {
729
+ return `/api/v1/billing/stripe/promotion-codes/${promotionCodeUid}`;
730
+ };
731
+ var stripePromotionCodesGet = async (promotionCodeUid, options) => {
732
+ return customFetch(getStripePromotionCodesGetUrl(promotionCodeUid), {
733
+ ...options,
734
+ method: "GET"
735
+ });
736
+ };
737
+ var getStripePromotionCodesUpdateUrl = (promotionCodeUid) => {
738
+ return `/api/v1/billing/stripe/promotion-codes/${promotionCodeUid}`;
739
+ };
740
+ var stripePromotionCodesUpdate = async (promotionCodeUid, stripePromotionCodesUpdateBody, options) => {
741
+ return customFetch(getStripePromotionCodesUpdateUrl(promotionCodeUid), {
742
+ ...options,
743
+ method: "PUT",
744
+ headers: { "Content-Type": "application/json", ...options?.headers },
745
+ body: JSON.stringify(stripePromotionCodesUpdateBody)
746
+ });
747
+ };
748
+ var getStripePromotionCodesSearchByCodeUrl = (promotionCode) => {
749
+ return `/api/v1/billing/stripe/promotion-codes/search/${promotionCode}`;
750
+ };
751
+ var stripePromotionCodesSearchByCode = async (promotionCode, options) => {
752
+ return customFetch(getStripePromotionCodesSearchByCodeUrl(promotionCode), {
753
+ ...options,
754
+ method: "GET"
755
+ });
756
+ };
757
+ var getStripeProductFamiliesGetAllUrl = (params) => {
758
+ const normalizedParams = new URLSearchParams;
759
+ Object.entries(params || {}).forEach(([key, value]) => {
760
+ if (value !== undefined) {
761
+ normalizedParams.append(key, value === null ? "null" : value.toString());
762
+ }
763
+ });
764
+ const stringifiedParams = normalizedParams.toString();
765
+ return stringifiedParams.length > 0 ? `/api/v1/billing/stripe/product-families?${stringifiedParams}` : `/api/v1/billing/stripe/product-families`;
766
+ };
767
+ var stripeProductFamiliesGetAll = async (params, options) => {
768
+ return customFetch(getStripeProductFamiliesGetAllUrl(params), {
769
+ ...options,
770
+ method: "GET"
771
+ });
772
+ };
773
+ var getStripeProductFamiliesPostUrl = () => {
774
+ return `/api/v1/billing/stripe/product-families`;
775
+ };
776
+ var stripeProductFamiliesPost = async (stripeProductFamiliesPostBody, options) => {
777
+ return customFetch(getStripeProductFamiliesPostUrl(), {
778
+ ...options,
779
+ method: "POST",
780
+ headers: { "Content-Type": "application/json", ...options?.headers },
781
+ body: JSON.stringify(stripeProductFamiliesPostBody)
782
+ });
783
+ };
784
+ var getStripeProductFamiliesGetUrl = (uid) => {
785
+ return `/api/v1/billing/stripe/product-families/${uid}`;
786
+ };
787
+ var stripeProductFamiliesGet = async (uid, options) => {
788
+ return customFetch(getStripeProductFamiliesGetUrl(uid), {
789
+ ...options,
790
+ method: "GET"
791
+ });
792
+ };
793
+ var getStripeProductFamiliesPutUrl = (productFamilyUid) => {
794
+ return `/api/v1/billing/stripe/product-families/${productFamilyUid}`;
795
+ };
796
+ var stripeProductFamiliesPut = async (productFamilyUid, stripeProductFamiliesPutBody, options) => {
797
+ return customFetch(getStripeProductFamiliesPutUrl(productFamilyUid), {
798
+ ...options,
799
+ method: "PUT",
800
+ headers: { "Content-Type": "application/json", ...options?.headers },
801
+ body: JSON.stringify(stripeProductFamiliesPutBody)
802
+ });
803
+ };
804
+ var getStripeProductFamiliesDeleteUrl = (productFamilyUid) => {
805
+ return `/api/v1/billing/stripe/product-families/${productFamilyUid}`;
806
+ };
807
+ var stripeProductFamiliesDelete = async (productFamilyUid, options) => {
808
+ return customFetch(getStripeProductFamiliesDeleteUrl(productFamilyUid), {
809
+ ...options,
810
+ method: "DELETE"
811
+ });
812
+ };
813
+ var getStripeCouponsGetAllUrl = (params) => {
814
+ const normalizedParams = new URLSearchParams;
815
+ Object.entries(params || {}).forEach(([key, value]) => {
816
+ if (value !== undefined) {
817
+ normalizedParams.append(key, value === null ? "null" : value.toString());
818
+ }
819
+ });
820
+ const stringifiedParams = normalizedParams.toString();
821
+ return stringifiedParams.length > 0 ? `/api/v1/billing/stripe/coupons?${stringifiedParams}` : `/api/v1/billing/stripe/coupons`;
822
+ };
823
+ var stripeCouponsGetAll = async (params, options) => {
824
+ return customFetch(getStripeCouponsGetAllUrl(params), {
825
+ ...options,
826
+ method: "GET"
827
+ });
828
+ };
829
+ var getStripeCouponsCreateUrl = () => {
830
+ return `/api/v1/billing/stripe/coupons`;
831
+ };
832
+ var stripeCouponsCreate = async (stripeCouponsCreateBody, options) => {
833
+ return customFetch(getStripeCouponsCreateUrl(), {
834
+ ...options,
835
+ method: "POST",
836
+ headers: { "Content-Type": "application/json", ...options?.headers },
837
+ body: JSON.stringify(stripeCouponsCreateBody)
838
+ });
839
+ };
840
+ var getStripeCouponsGetUrl = (couponUid) => {
841
+ return `/api/v1/billing/stripe/coupons/${couponUid}`;
842
+ };
843
+ var stripeCouponsGet = async (couponUid, options) => {
844
+ return customFetch(getStripeCouponsGetUrl(couponUid), {
845
+ ...options,
846
+ method: "GET"
847
+ });
848
+ };
849
+ var getStripeCouponsDeleteUrl = (couponUid) => {
850
+ return `/api/v1/billing/stripe/coupons/${couponUid}`;
851
+ };
852
+ var stripeCouponsDelete = async (couponUid, options) => {
853
+ return customFetch(getStripeCouponsDeleteUrl(couponUid), {
854
+ ...options,
855
+ method: "DELETE"
856
+ });
857
+ };
858
+ var getStripeCouponsGetRedemptionsUrl = (couponUid, params) => {
859
+ const normalizedParams = new URLSearchParams;
860
+ Object.entries(params || {}).forEach(([key, value]) => {
861
+ if (value !== undefined) {
862
+ normalizedParams.append(key, value === null ? "null" : value.toString());
863
+ }
864
+ });
865
+ const stringifiedParams = normalizedParams.toString();
866
+ return stringifiedParams.length > 0 ? `/api/v1/billing/stripe/coupons/${couponUid}/redemptions?${stringifiedParams}` : `/api/v1/billing/stripe/coupons/${couponUid}/redemptions`;
867
+ };
868
+ var stripeCouponsGetRedemptions = async (couponUid, params, options) => {
869
+ return customFetch(getStripeCouponsGetRedemptionsUrl(couponUid, params), {
870
+ ...options,
871
+ method: "GET"
872
+ });
873
+ };
874
+ var getStripeCouponsSyncCouponsFromStripeUrl = () => {
875
+ return `/api/v1/billing/stripe/coupons/sync`;
876
+ };
877
+ var stripeCouponsSyncCouponsFromStripe = async (options) => {
878
+ return customFetch(getStripeCouponsSyncCouponsFromStripeUrl(), {
879
+ ...options,
880
+ method: "POST"
881
+ });
882
+ };
883
+ var getStripeCouponsSyncCouponFromStripeUrl = (uid) => {
884
+ return `/api/v1/billing/stripe/coupons/${uid}/sync`;
885
+ };
886
+ var stripeCouponsSyncCouponFromStripe = async (uid, options) => {
887
+ return customFetch(getStripeCouponsSyncCouponFromStripeUrl(uid), {
888
+ ...options,
889
+ method: "POST"
890
+ });
891
+ };
892
+ var getStripeInvoicesGetAllUrl = (params) => {
893
+ const normalizedParams = new URLSearchParams;
894
+ Object.entries(params || {}).forEach(([key, value]) => {
895
+ if (value !== undefined) {
896
+ normalizedParams.append(key, value === null ? "null" : value.toString());
897
+ }
898
+ });
899
+ const stringifiedParams = normalizedParams.toString();
900
+ return stringifiedParams.length > 0 ? `/api/v1/billing/stripe/invoices?${stringifiedParams}` : `/api/v1/billing/stripe/invoices`;
901
+ };
902
+ var stripeInvoicesGetAll = async (params, options) => {
903
+ return customFetch(getStripeInvoicesGetAllUrl(params), {
904
+ ...options,
905
+ method: "GET"
906
+ });
907
+ };
908
+ var getStripeInvoicesPostUrl = () => {
909
+ return `/api/v1/billing/stripe/invoices`;
910
+ };
911
+ var stripeInvoicesPost = async (stripeInvoicesPostBody, options) => {
912
+ return customFetch(getStripeInvoicesPostUrl(), {
913
+ ...options,
914
+ method: "POST",
915
+ headers: { "Content-Type": "application/json", ...options?.headers },
916
+ body: JSON.stringify(stripeInvoicesPostBody)
917
+ });
918
+ };
919
+ var getStripeInvoicesGetUrl = (invoiceUid) => {
920
+ return `/api/v1/billing/stripe/invoices/${invoiceUid}`;
921
+ };
922
+ var stripeInvoicesGet = async (invoiceUid, options) => {
923
+ return customFetch(getStripeInvoicesGetUrl(invoiceUid), {
924
+ ...options,
925
+ method: "GET"
926
+ });
927
+ };
928
+ var getStripeInvoicesGetInvoiceAsPdfUrl = (invoiceUid) => {
929
+ return `/api/v1/billing/stripe/invoices/${invoiceUid}/pdf`;
930
+ };
931
+ var stripeInvoicesGetInvoiceAsPdf = async (invoiceUid, options) => {
932
+ return customFetch(getStripeInvoicesGetInvoiceAsPdfUrl(invoiceUid), {
933
+ ...options,
934
+ method: "GET"
935
+ });
936
+ };
937
+ var getStripeInvoicesChangeInvoiceStatusUrl = (invoiceUid) => {
938
+ return `/api/v1/billing/stripe/invoices/${invoiceUid}/change-status`;
939
+ };
940
+ var stripeInvoicesChangeInvoiceStatus = async (invoiceUid, stripeInvoicesChangeInvoiceStatusBody, options) => {
941
+ return customFetch(getStripeInvoicesChangeInvoiceStatusUrl(invoiceUid), {
942
+ ...options,
943
+ method: "POST",
944
+ headers: { "Content-Type": "application/json", ...options?.headers },
945
+ body: JSON.stringify(stripeInvoicesChangeInvoiceStatusBody)
946
+ });
947
+ };
948
+ var getStripeInvoicesIssueInvoiceCreditUrl = (invoiceUid) => {
949
+ return `/api/v1/billing/stripe/invoices/${invoiceUid}/issue-credit`;
950
+ };
951
+ var stripeInvoicesIssueInvoiceCredit = async (invoiceUid, stripeInvoicesIssueInvoiceCreditBody, options) => {
952
+ return customFetch(getStripeInvoicesIssueInvoiceCreditUrl(invoiceUid), {
953
+ ...options,
954
+ method: "POST",
955
+ headers: { "Content-Type": "application/json", ...options?.headers },
956
+ body: JSON.stringify(stripeInvoicesIssueInvoiceCreditBody)
957
+ });
958
+ };
959
+ var getStripeInvoicesSendInvoiceEmailUrl = (invoiceUid) => {
960
+ return `/api/v1/billing/stripe/invoices/${invoiceUid}/send`;
961
+ };
962
+ var stripeInvoicesSendInvoiceEmail = async (invoiceUid, options) => {
963
+ return customFetch(getStripeInvoicesSendInvoiceEmailUrl(invoiceUid), {
964
+ ...options,
965
+ method: "POST"
966
+ });
967
+ };
968
+ var getStripeInvoicesSyncInvoicesFromStripeUrl = () => {
969
+ return `/api/v1/billing/stripe/invoices/sync`;
970
+ };
971
+ var stripeInvoicesSyncInvoicesFromStripe = async (options) => {
972
+ return customFetch(getStripeInvoicesSyncInvoicesFromStripeUrl(), {
973
+ ...options,
974
+ method: "POST"
975
+ });
976
+ };
977
+ var getStripeSubscriptionsGetAllUrl = (params) => {
978
+ const normalizedParams = new URLSearchParams;
979
+ Object.entries(params || {}).forEach(([key, value]) => {
980
+ if (value !== undefined) {
981
+ normalizedParams.append(key, value === null ? "null" : value.toString());
982
+ }
983
+ });
984
+ const stringifiedParams = normalizedParams.toString();
985
+ return stringifiedParams.length > 0 ? `/api/v1/billing/stripe/subscriptions?${stringifiedParams}` : `/api/v1/billing/stripe/subscriptions`;
986
+ };
987
+ var stripeSubscriptionsGetAll = async (params, options) => {
988
+ return customFetch(getStripeSubscriptionsGetAllUrl(params), {
989
+ ...options,
990
+ method: "GET"
991
+ });
992
+ };
993
+ var getStripeSubscriptionsCreateUrl = () => {
994
+ return `/api/v1/billing/stripe/subscriptions`;
995
+ };
996
+ var stripeSubscriptionsCreate = async (stripeSubscriptionsCreateBody, options) => {
997
+ return customFetch(getStripeSubscriptionsCreateUrl(), {
998
+ ...options,
999
+ method: "POST",
1000
+ headers: { "Content-Type": "application/json", ...options?.headers },
1001
+ body: JSON.stringify(stripeSubscriptionsCreateBody)
1002
+ });
1003
+ };
1004
+ var getStripeSubscriptionsCancelUrl = (subscriptionUid) => {
1005
+ return `/api/v1/billing/stripe/subscriptions/${subscriptionUid}/cancel`;
1006
+ };
1007
+ var stripeSubscriptionsCancel = async (subscriptionUid, options) => {
1008
+ return customFetch(getStripeSubscriptionsCancelUrl(subscriptionUid), {
1009
+ ...options,
1010
+ method: "POST"
1011
+ });
1012
+ };
1013
+ var getStripeSubscriptionsPauseCollectionUrl = (subscriptionUid) => {
1014
+ return `/api/v1/billing/stripe/subscriptions/${subscriptionUid}/pause`;
1015
+ };
1016
+ var stripeSubscriptionsPauseCollection = async (subscriptionUid, stripeSubscriptionsPauseCollectionBody, options) => {
1017
+ return customFetch(getStripeSubscriptionsPauseCollectionUrl(subscriptionUid), {
1018
+ ...options,
1019
+ method: "POST",
1020
+ headers: { "Content-Type": "application/json", ...options?.headers },
1021
+ body: JSON.stringify(stripeSubscriptionsPauseCollectionBody)
1022
+ });
1023
+ };
1024
+ var getStripeSubscriptionsChangeUrl = (subscriptionUid) => {
1025
+ return `/api/v1/billing/stripe/subscriptions/${subscriptionUid}/change`;
1026
+ };
1027
+ var stripeSubscriptionsChange = async (subscriptionUid, stripeSubscriptionsChangeBody, options) => {
1028
+ return customFetch(getStripeSubscriptionsChangeUrl(subscriptionUid), {
1029
+ ...options,
1030
+ method: "PUT",
1031
+ headers: { "Content-Type": "application/json", ...options?.headers },
1032
+ body: JSON.stringify(stripeSubscriptionsChangeBody)
1033
+ });
1034
+ };
1035
+ var getStripeSubscriptionsPreviewChangeUrl = (subscriptionUid) => {
1036
+ return `/api/v1/billing/stripe/subscriptions/${subscriptionUid}/change-preview`;
1037
+ };
1038
+ var stripeSubscriptionsPreviewChange = async (subscriptionUid, stripeSubscriptionsPreviewChangeBody, options) => {
1039
+ return customFetch(getStripeSubscriptionsPreviewChangeUrl(subscriptionUid), {
1040
+ ...options,
1041
+ method: "POST",
1042
+ headers: { "Content-Type": "application/json", ...options?.headers },
1043
+ body: JSON.stringify(stripeSubscriptionsPreviewChangeBody)
1044
+ });
1045
+ };
1046
+ var getStripeSubscriptionsExtendTrialUrl = (subscriptionUid) => {
1047
+ return `/api/v1/billing/stripe/subscriptions/${subscriptionUid}/extend`;
1048
+ };
1049
+ var stripeSubscriptionsExtendTrial = async (subscriptionUid, stripeSubscriptionsExtendTrialBody, options) => {
1050
+ return customFetch(getStripeSubscriptionsExtendTrialUrl(subscriptionUid), {
1051
+ ...options,
1052
+ method: "PUT",
1053
+ headers: { "Content-Type": "application/json", ...options?.headers },
1054
+ body: JSON.stringify(stripeSubscriptionsExtendTrialBody)
1055
+ });
1056
+ };
1057
+ var getStripeSubscriptionsReleaseScheduleUrl = (subscriptionUid) => {
1058
+ return `/api/v1/billing/stripe/subscriptions/${subscriptionUid}/release-schedule`;
1059
+ };
1060
+ var stripeSubscriptionsReleaseSchedule = async (subscriptionUid, options) => {
1061
+ return customFetch(getStripeSubscriptionsReleaseScheduleUrl(subscriptionUid), {
1062
+ ...options,
1063
+ method: "POST"
1064
+ });
1065
+ };
1066
+ var getStripeSubscriptionsResumeCollectionUrl = (subscriptionUid) => {
1067
+ return `/api/v1/billing/stripe/subscriptions/${subscriptionUid}/resume`;
1068
+ };
1069
+ var stripeSubscriptionsResumeCollection = async (subscriptionUid, options) => {
1070
+ return customFetch(getStripeSubscriptionsResumeCollectionUrl(subscriptionUid), {
1071
+ ...options,
1072
+ method: "POST"
1073
+ });
1074
+ };
1075
+ var getStripeSubscriptionsStartUrl = (subscriptionUid) => {
1076
+ return `/api/v1/billing/stripe/subscriptions/${subscriptionUid}/start`;
1077
+ };
1078
+ var stripeSubscriptionsStart = async (subscriptionUid, options) => {
1079
+ return customFetch(getStripeSubscriptionsStartUrl(subscriptionUid), {
1080
+ ...options,
1081
+ method: "POST"
1082
+ });
1083
+ };
1084
+ var getStripeSubscriptionsSyncSubscriptionsFromStripeUrl = () => {
1085
+ return `/api/v1/billing/stripe/subscriptions/sync`;
1086
+ };
1087
+ var stripeSubscriptionsSyncSubscriptionsFromStripe = async (options) => {
1088
+ return customFetch(getStripeSubscriptionsSyncSubscriptionsFromStripeUrl(), {
1089
+ ...options,
1090
+ method: "POST"
1091
+ });
1092
+ };
1093
+ var getStripeSubscriptionsUncancelUrl = (subscriptionUid) => {
1094
+ return `/api/v1/billing/stripe/subscriptions/${subscriptionUid}/uncancel`;
1095
+ };
1096
+ var stripeSubscriptionsUncancel = async (subscriptionUid, options) => {
1097
+ return customFetch(getStripeSubscriptionsUncancelUrl(subscriptionUid), {
1098
+ ...options,
1099
+ method: "POST"
1100
+ });
1101
+ };
1102
+ var getStripeProductsGetAllUrl = (params) => {
1103
+ const normalizedParams = new URLSearchParams;
1104
+ Object.entries(params || {}).forEach(([key, value]) => {
1105
+ if (value !== undefined) {
1106
+ normalizedParams.append(key, value === null ? "null" : value.toString());
1107
+ }
1108
+ });
1109
+ const stringifiedParams = normalizedParams.toString();
1110
+ return stringifiedParams.length > 0 ? `/api/v1/billing/stripe/products?${stringifiedParams}` : `/api/v1/billing/stripe/products`;
1111
+ };
1112
+ var stripeProductsGetAll = async (params, options) => {
1113
+ return customFetch(getStripeProductsGetAllUrl(params), {
1114
+ ...options,
1115
+ method: "GET"
1116
+ });
1117
+ };
1118
+ var getStripeProductsPostUrl = () => {
1119
+ return `/api/v1/billing/stripe/products`;
1120
+ };
1121
+ var stripeProductsPost = async (stripeProductsPostBody, options) => {
1122
+ return customFetch(getStripeProductsPostUrl(), {
1123
+ ...options,
1124
+ method: "POST",
1125
+ headers: { "Content-Type": "application/json", ...options?.headers },
1126
+ body: JSON.stringify(stripeProductsPostBody)
1127
+ });
1128
+ };
1129
+ var getStripeProductsSyncProductsFromStripeUrl = () => {
1130
+ return `/api/v1/billing/stripe/products/sync`;
1131
+ };
1132
+ var stripeProductsSyncProductsFromStripe = async (options) => {
1133
+ return customFetch(getStripeProductsSyncProductsFromStripeUrl(), {
1134
+ ...options,
1135
+ method: "POST"
1136
+ });
1137
+ };
1138
+ var getStripeProductsGetUrl = (uid) => {
1139
+ return `/api/v1/billing/stripe/products/${uid}`;
1140
+ };
1141
+ var stripeProductsGet = async (uid, options) => {
1142
+ return customFetch(getStripeProductsGetUrl(uid), {
1143
+ ...options,
1144
+ method: "GET"
1145
+ });
1146
+ };
1147
+ var getStripeProductsPutUrl = (uid) => {
1148
+ return `/api/v1/billing/stripe/products/${uid}`;
1149
+ };
1150
+ var stripeProductsPut = async (uid, stripeProductsPutBody, options) => {
1151
+ return customFetch(getStripeProductsPutUrl(uid), {
1152
+ ...options,
1153
+ method: "PUT",
1154
+ headers: { "Content-Type": "application/json", ...options?.headers },
1155
+ body: JSON.stringify(stripeProductsPutBody)
1156
+ });
1157
+ };
1158
+ var getStripeProductsSyncProductFromStripeUrl = (uid) => {
1159
+ return `/api/v1/billing/stripe/products/${uid}/sync`;
1160
+ };
1161
+ var stripeProductsSyncProductFromStripe = async (uid, options) => {
1162
+ return customFetch(getStripeProductsSyncProductFromStripeUrl(uid), {
1163
+ ...options,
1164
+ method: "POST"
1165
+ });
1166
+ };
625
1167
  // src/generated/crm/crm.ts
626
1168
  var getDealGetAllDealsUrl = (params) => {
627
1169
  const normalizedParams = new URLSearchParams;
@@ -862,6 +1404,17 @@ var accountExtendTrial = async (accountUid, accountExtendTrialBody, options) =>
862
1404
  body: JSON.stringify(accountExtendTrialBody)
863
1405
  });
864
1406
  };
1407
+ var getAccountExtendRenewalUrl = (accountUid) => {
1408
+ return `/api/v1/crm/accounts/${accountUid}/extend-renewal`;
1409
+ };
1410
+ var accountExtendRenewal = async (accountUid, accountExtendRenewalBody, options) => {
1411
+ return customFetch(getAccountExtendRenewalUrl(accountUid), {
1412
+ ...options,
1413
+ method: "PUT",
1414
+ headers: { "Content-Type": "application/json", ...options?.headers },
1415
+ body: JSON.stringify(accountExtendRenewalBody)
1416
+ });
1417
+ };
865
1418
  var getAccountSendConfirmationEmailUrl = (accountUid) => {
866
1419
  return `/api/v1/crm/accounts/${accountUid}/send-confirmation-email`;
867
1420
  };
@@ -871,6 +1424,17 @@ var accountSendConfirmationEmail = async (accountUid, options) => {
871
1424
  method: "PUT"
872
1425
  });
873
1426
  };
1427
+ var getAccountExpireCurrentSubscriptionUrl = (accountUid) => {
1428
+ return `/api/v1/crm/accounts/${accountUid}/expire-current-subscription`;
1429
+ };
1430
+ var accountExpireCurrentSubscription = async (accountUid, accountExpireCurrentSubscriptionBody, options) => {
1431
+ return customFetch(getAccountExpireCurrentSubscriptionUrl(accountUid), {
1432
+ ...options,
1433
+ method: "PUT",
1434
+ headers: { "Content-Type": "application/json", ...options?.headers },
1435
+ body: JSON.stringify(accountExpireCurrentSubscriptionBody)
1436
+ });
1437
+ };
874
1438
  var getPersonGetAllPeopleUrl = (params) => {
875
1439
  const normalizedParams = new URLSearchParams;
876
1440
  Object.entries(params || {}).forEach(([key, value]) => {
@@ -2023,6 +2587,7 @@ var QcountConfigSettingType = {
2023
2587
  ForceTwoFactorAuthentication: 142,
2024
2588
  MagicLinkLoginEnabled: 143,
2025
2589
  Support_DeleteClosedTicketsAfterMonths: 148,
2590
+ SingleSessionLogin: 149,
2026
2591
  GoogleAnalyticsMeasurementId: 170,
2027
2592
  GoogleAnalyticsApiSecret: 171,
2028
2593
  Stripe_TaxEnabled: 190,
@@ -2224,6 +2789,8 @@ export {
2224
2789
  accountCancelAccount,
2225
2790
  accountDeleteAccount,
2226
2791
  accountDeleteMembership,
2792
+ accountExpireCurrentSubscription,
2793
+ accountExtendRenewal,
2227
2794
  accountExtendTrial,
2228
2795
  accountGetAccount,
2229
2796
  accountGetAllAccounts,
@@ -2297,6 +2864,8 @@ export {
2297
2864
  getAccountCancelAccountUrl,
2298
2865
  getAccountDeleteAccountUrl,
2299
2866
  getAccountDeleteMembershipUrl,
2867
+ getAccountExpireCurrentSubscriptionUrl,
2868
+ getAccountExtendRenewalUrl,
2300
2869
  getAccountExtendTrialUrl,
2301
2870
  getAccountGetAccountUrl,
2302
2871
  getAccountGetAllAccountsUrl,
@@ -2397,6 +2966,55 @@ export {
2397
2966
  getSegmentGetTagsForEntityUrl,
2398
2967
  getSegmentRemoveTagFromEntityUrl,
2399
2968
  getSegmentSetTagsForEntityUrl,
2969
+ getStripeCouponsCreateUrl,
2970
+ getStripeCouponsDeleteUrl,
2971
+ getStripeCouponsGetAllUrl,
2972
+ getStripeCouponsGetRedemptionsUrl,
2973
+ getStripeCouponsGetUrl,
2974
+ getStripeCouponsSyncCouponFromStripeUrl,
2975
+ getStripeCouponsSyncCouponsFromStripeUrl,
2976
+ getStripeInvoiceLineItemsCancelAccessUrl,
2977
+ getStripeInvoiceLineItemsGetAllUrl,
2978
+ getStripeInvoicesChangeInvoiceStatusUrl,
2979
+ getStripeInvoicesGetAllUrl,
2980
+ getStripeInvoicesGetInvoiceAsPdfUrl,
2981
+ getStripeInvoicesGetUrl,
2982
+ getStripeInvoicesIssueInvoiceCreditUrl,
2983
+ getStripeInvoicesPostUrl,
2984
+ getStripeInvoicesSendInvoiceEmailUrl,
2985
+ getStripeInvoicesSyncInvoicesFromStripeUrl,
2986
+ getStripePaymentMethodsGetAllUrl,
2987
+ getStripePaymentMethodsGetUrl,
2988
+ getStripePricesGetAllUrl,
2989
+ getStripePricesGetUrl,
2990
+ getStripeProductFamiliesDeleteUrl,
2991
+ getStripeProductFamiliesGetAllUrl,
2992
+ getStripeProductFamiliesGetUrl,
2993
+ getStripeProductFamiliesPostUrl,
2994
+ getStripeProductFamiliesPutUrl,
2995
+ getStripeProductsGetAllUrl,
2996
+ getStripeProductsGetUrl,
2997
+ getStripeProductsPostUrl,
2998
+ getStripeProductsPutUrl,
2999
+ getStripeProductsSyncProductFromStripeUrl,
3000
+ getStripeProductsSyncProductsFromStripeUrl,
3001
+ getStripePromotionCodesCreateUrl,
3002
+ getStripePromotionCodesGetAllUrl,
3003
+ getStripePromotionCodesGetUrl,
3004
+ getStripePromotionCodesSearchByCodeUrl,
3005
+ getStripePromotionCodesUpdateUrl,
3006
+ getStripeSubscriptionsCancelUrl,
3007
+ getStripeSubscriptionsChangeUrl,
3008
+ getStripeSubscriptionsCreateUrl,
3009
+ getStripeSubscriptionsExtendTrialUrl,
3010
+ getStripeSubscriptionsGetAllUrl,
3011
+ getStripeSubscriptionsPauseCollectionUrl,
3012
+ getStripeSubscriptionsPreviewChangeUrl,
3013
+ getStripeSubscriptionsReleaseScheduleUrl,
3014
+ getStripeSubscriptionsResumeCollectionUrl,
3015
+ getStripeSubscriptionsStartUrl,
3016
+ getStripeSubscriptionsSyncSubscriptionsFromStripeUrl,
3017
+ getStripeSubscriptionsUncancelUrl,
2400
3018
  getSubscriptionAddDiscountToSubscriptionUrl,
2401
3019
  getSubscriptionAddOnAddSubscriptionAddOnPreviewUrl,
2402
3020
  getSubscriptionAddOnAddSubscriptionAddOnUrl,
@@ -2451,6 +3069,55 @@ export {
2451
3069
  segmentGetTagsForEntity,
2452
3070
  segmentRemoveTagFromEntity,
2453
3071
  segmentSetTagsForEntity,
3072
+ stripeCouponsCreate,
3073
+ stripeCouponsDelete,
3074
+ stripeCouponsGet,
3075
+ stripeCouponsGetAll,
3076
+ stripeCouponsGetRedemptions,
3077
+ stripeCouponsSyncCouponFromStripe,
3078
+ stripeCouponsSyncCouponsFromStripe,
3079
+ stripeInvoiceLineItemsCancelAccess,
3080
+ stripeInvoiceLineItemsGetAll,
3081
+ stripeInvoicesChangeInvoiceStatus,
3082
+ stripeInvoicesGet,
3083
+ stripeInvoicesGetAll,
3084
+ stripeInvoicesGetInvoiceAsPdf,
3085
+ stripeInvoicesIssueInvoiceCredit,
3086
+ stripeInvoicesPost,
3087
+ stripeInvoicesSendInvoiceEmail,
3088
+ stripeInvoicesSyncInvoicesFromStripe,
3089
+ stripePaymentMethodsGet,
3090
+ stripePaymentMethodsGetAll,
3091
+ stripePricesGet,
3092
+ stripePricesGetAll,
3093
+ stripeProductFamiliesDelete,
3094
+ stripeProductFamiliesGet,
3095
+ stripeProductFamiliesGetAll,
3096
+ stripeProductFamiliesPost,
3097
+ stripeProductFamiliesPut,
3098
+ stripeProductsGet,
3099
+ stripeProductsGetAll,
3100
+ stripeProductsPost,
3101
+ stripeProductsPut,
3102
+ stripeProductsSyncProductFromStripe,
3103
+ stripeProductsSyncProductsFromStripe,
3104
+ stripePromotionCodesCreate,
3105
+ stripePromotionCodesGet,
3106
+ stripePromotionCodesGetAll,
3107
+ stripePromotionCodesSearchByCode,
3108
+ stripePromotionCodesUpdate,
3109
+ stripeSubscriptionsCancel,
3110
+ stripeSubscriptionsChange,
3111
+ stripeSubscriptionsCreate,
3112
+ stripeSubscriptionsExtendTrial,
3113
+ stripeSubscriptionsGetAll,
3114
+ stripeSubscriptionsPauseCollection,
3115
+ stripeSubscriptionsPreviewChange,
3116
+ stripeSubscriptionsReleaseSchedule,
3117
+ stripeSubscriptionsResumeCollection,
3118
+ stripeSubscriptionsStart,
3119
+ stripeSubscriptionsSyncSubscriptionsFromStripe,
3120
+ stripeSubscriptionsUncancel,
2454
3121
  subscriptionAddDiscountToSubscription,
2455
3122
  subscriptionAddOnAddSubscriptionAddOn,
2456
3123
  subscriptionAddOnAddSubscriptionAddOnPreview,