@outseta/react 0.4.28 → 0.4.30

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.
package/dist/index.js CHANGED
@@ -1,3 +1,27 @@
1
+ // ../api-client/src/client.ts
2
+ function getAuthorization(creds) {
3
+ if ("accessToken" in creds) {
4
+ return `Bearer ${creds.accessToken}`;
5
+ }
6
+ return `Outseta ${creds.apiKey}:${creds.apiSecret}`;
7
+ }
8
+ function getRequestUrl(subdomain, path) {
9
+ if (/^https?:\/\//.test(path)) {
10
+ return path;
11
+ }
12
+ const normalizedPath = path.startsWith("/api/v1/") ? path : `/api/v1/${path.replace(/^\/+/, "")}`;
13
+ return new URL(normalizedPath, `https://${subdomain}.outseta.com`).toString();
14
+ }
15
+ function createClient(creds) {
16
+ return (path, init = {}) => {
17
+ const headers = new Headers(init.headers);
18
+ headers.set("Authorization", getAuthorization(creds));
19
+ return fetch(getRequestUrl(creds.subdomain, path), {
20
+ ...init,
21
+ headers
22
+ });
23
+ };
24
+ }
1
25
  // src/components/OutsetaProvider.tsx
2
26
  import {
3
27
  createContext,
@@ -638,7 +662,7 @@ function useMutation(options) {
638
662
  }
639
663
 
640
664
  // src/mutator.ts
641
- var customFetch = async (config, client) => {
665
+ var customFetch2 = async (config, client) => {
642
666
  if (!client) {
643
667
  throw new Error("@outseta/react: No client provided. Pass a client from createClient() via the request option.");
644
668
  }
@@ -662,7 +686,7 @@ var customFetch = async (config, client) => {
662
686
 
663
687
  // src/generated/activity/activity.ts
664
688
  var activityGetAll = (params, options, signal) => {
665
- return customFetch({
689
+ return customFetch2({
666
690
  url: `/api/v1/activities`,
667
691
  method: "GET",
668
692
  params,
@@ -688,7 +712,7 @@ function useActivityGetAll(params, options) {
688
712
  return query;
689
713
  }
690
714
  var activityAddCustomActivity = (activityAddCustomActivityBody, options, signal) => {
691
- return customFetch({
715
+ return customFetch2({
692
716
  url: `/api/v1/activities/customactivity`,
693
717
  method: "POST",
694
718
  headers: { "Content-Type": "application/json" },
@@ -712,7 +736,7 @@ var useActivityAddCustomActivity = (options) => {
712
736
  };
713
737
  // src/generated/billing/billing.ts
714
738
  var discountCouponGetDiscountCouponByCode = (code, params, options, signal) => {
715
- return customFetch({
739
+ return customFetch2({
716
740
  url: `/api/v1/public/billing/discountcoupons/${code}`,
717
741
  method: "GET",
718
742
  params,
@@ -738,7 +762,7 @@ function useDiscountCouponGetDiscountCouponByCode(code, params, options) {
738
762
  return query;
739
763
  }
740
764
  var discountCouponGetAllDiscountCoupons = (params, options, signal) => {
741
- return customFetch({
765
+ return customFetch2({
742
766
  url: `/api/v1/billing/discountcoupons`,
743
767
  method: "GET",
744
768
  params,
@@ -764,7 +788,7 @@ function useDiscountCouponGetAllDiscountCoupons(params, options) {
764
788
  return query;
765
789
  }
766
790
  var discountCouponAddDiscountCoupon = (discountCouponAddDiscountCouponBody, options, signal) => {
767
- return customFetch({
791
+ return customFetch2({
768
792
  url: `/api/v1/billing/discountcoupons`,
769
793
  method: "POST",
770
794
  headers: { "Content-Type": "application/json" },
@@ -786,7 +810,7 @@ var useDiscountCouponAddDiscountCoupon = (options) => {
786
810
  return useMutation(mutationOptions);
787
811
  };
788
812
  var discountCouponGetDiscountCoupon = (discountCouponUid, options, signal) => {
789
- return customFetch({
813
+ return customFetch2({
790
814
  url: `/api/v1/billing/discountcoupons/${discountCouponUid}`,
791
815
  method: "GET",
792
816
  signal
@@ -810,7 +834,7 @@ function useDiscountCouponGetDiscountCoupon(discountCouponUid, options) {
810
834
  return query;
811
835
  }
812
836
  var discountCouponUpdateDiscountCoupon = (discountCouponUid, discountCouponUpdateDiscountCouponBody, options) => {
813
- return customFetch({
837
+ return customFetch2({
814
838
  url: `/api/v1/billing/discountcoupons/${discountCouponUid}`,
815
839
  method: "PUT",
816
840
  headers: { "Content-Type": "application/json" },
@@ -831,7 +855,7 @@ var useDiscountCouponUpdateDiscountCoupon = (options) => {
831
855
  return useMutation(mutationOptions);
832
856
  };
833
857
  var discountCouponDeleteDiscountCoupon = (discountCouponUid, options) => {
834
- return customFetch({
858
+ return customFetch2({
835
859
  url: `/api/v1/billing/discountcoupons/${discountCouponUid}`,
836
860
  method: "DELETE",
837
861
  responseType: "blob"
@@ -851,7 +875,7 @@ var useDiscountCouponDeleteDiscountCoupon = (options) => {
851
875
  return useMutation(mutationOptions);
852
876
  };
853
877
  var discountCouponGetDiscountCouponRedemptions = (discountCouponUid, params, options, signal) => {
854
- return customFetch({
878
+ return customFetch2({
855
879
  url: `/api/v1/billing/discountcoupons/${discountCouponUid}/redemptions`,
856
880
  method: "GET",
857
881
  params,
@@ -877,7 +901,7 @@ function useDiscountCouponGetDiscountCouponRedemptions(discountCouponUid, params
877
901
  return query;
878
902
  }
879
903
  var usageAddUsage = (usageAddUsageBody, options, signal) => {
880
- return customFetch({
904
+ return customFetch2({
881
905
  url: `/api/v1/billing/usage`,
882
906
  method: "POST",
883
907
  headers: { "Content-Type": "application/json" },
@@ -899,7 +923,7 @@ var useUsageAddUsage = (options) => {
899
923
  return useMutation(mutationOptions);
900
924
  };
901
925
  var transactionsGetAllTransactionsByAccountId = (accountUid, params, options, signal) => {
902
- return customFetch({
926
+ return customFetch2({
903
927
  url: `/api/v1/billing/transactions/${accountUid}`,
904
928
  method: "GET",
905
929
  params,
@@ -925,7 +949,7 @@ function useTransactionsGetAllTransactionsByAccountId(accountUid, params, option
925
949
  return query;
926
950
  }
927
951
  var transactionsAddPaymentTransaction = (transactionsAddPaymentTransactionBody, options, signal) => {
928
- return customFetch({
952
+ return customFetch2({
929
953
  url: `/api/v1/billing/transactions/payment`,
930
954
  method: "POST",
931
955
  headers: { "Content-Type": "application/json" },
@@ -947,7 +971,7 @@ var useTransactionsAddPaymentTransaction = (options) => {
947
971
  return useMutation(mutationOptions);
948
972
  };
949
973
  var paymentInformationSavePaymentInformation = (paymentInformationSavePaymentInformationBody, options, signal) => {
950
- return customFetch({
974
+ return customFetch2({
951
975
  url: `/api/v1/billing/paymentinformation`,
952
976
  method: "POST",
953
977
  headers: { "Content-Type": "application/json" },
@@ -969,7 +993,7 @@ var usePaymentInformationSavePaymentInformation = (options) => {
969
993
  return useMutation(mutationOptions);
970
994
  };
971
995
  var subscriptionAddOnGetAllSubscriptionsAddOns = (params, options, signal) => {
972
- return customFetch({
996
+ return customFetch2({
973
997
  url: `/api/v1/billing/subscriptionaddons`,
974
998
  method: "GET",
975
999
  params,
@@ -995,7 +1019,7 @@ function useSubscriptionAddOnGetAllSubscriptionsAddOns(params, options) {
995
1019
  return query;
996
1020
  }
997
1021
  var subscriptionAddOnAddSubscriptionAddOn = (subscriptionAddOnAddSubscriptionAddOnBody, options, signal) => {
998
- return customFetch({
1022
+ return customFetch2({
999
1023
  url: `/api/v1/billing/subscriptionaddons`,
1000
1024
  method: "POST",
1001
1025
  headers: { "Content-Type": "application/json" },
@@ -1018,7 +1042,7 @@ var useSubscriptionAddOnAddSubscriptionAddOn = (options) => {
1018
1042
  return useMutation(mutationOptions);
1019
1043
  };
1020
1044
  var subscriptionAddOnGetSubscriptionAddOn = (subscriptionAddOnUid, options, signal) => {
1021
- return customFetch({
1045
+ return customFetch2({
1022
1046
  url: `/api/v1/billing/subscriptionaddons/${subscriptionAddOnUid}`,
1023
1047
  method: "GET",
1024
1048
  signal
@@ -1042,7 +1066,7 @@ function useSubscriptionAddOnGetSubscriptionAddOn(subscriptionAddOnUid, options)
1042
1066
  return query;
1043
1067
  }
1044
1068
  var subscriptionAddOnAddSubscriptionAddOnPreview = (subscriptionAddOnAddSubscriptionAddOnPreviewBody, options, signal) => {
1045
- return customFetch({
1069
+ return customFetch2({
1046
1070
  url: `/api/v1/billing/subscriptionaddons/addsubscriptionaddonpreview`,
1047
1071
  method: "POST",
1048
1072
  headers: { "Content-Type": "application/json" },
@@ -1064,7 +1088,7 @@ var useSubscriptionAddOnAddSubscriptionAddOnPreview = (options) => {
1064
1088
  return useMutation(mutationOptions);
1065
1089
  };
1066
1090
  var subscriptionAddOnSetAddOnUpgradeRequired = (subscriptionAddOnUid, subscriptionAddOnSetAddOnUpgradeRequiredBody, options) => {
1067
- return customFetch({
1091
+ return customFetch2({
1068
1092
  url: `/api/v1/billing/subscriptionaddons/${subscriptionAddOnUid}/setaddonupgraderequired`,
1069
1093
  method: "PUT",
1070
1094
  headers: { "Content-Type": "application/json" },
@@ -1085,7 +1109,7 @@ var useSubscriptionAddOnSetAddOnUpgradeRequired = (options) => {
1085
1109
  return useMutation(mutationOptions);
1086
1110
  };
1087
1111
  var subscriptionAddOnEndSubscriptionAddOn = (subscriptionAddOnUid, options) => {
1088
- return customFetch({
1112
+ return customFetch2({
1089
1113
  url: `/api/v1/billing/subscriptionaddons/${subscriptionAddOnUid}/end`,
1090
1114
  method: "PUT"
1091
1115
  }, options);
@@ -1104,7 +1128,7 @@ var useSubscriptionAddOnEndSubscriptionAddOn = (options) => {
1104
1128
  return useMutation(mutationOptions);
1105
1129
  };
1106
1130
  var subscriptionAddOnExpireSubscriptionAddOn = (subscriptionAddOnUid, options) => {
1107
- return customFetch({
1131
+ return customFetch2({
1108
1132
  url: `/api/v1/billing/subscriptionaddons/${subscriptionAddOnUid}/expire`,
1109
1133
  method: "PUT",
1110
1134
  responseType: "blob"
@@ -1124,7 +1148,7 @@ var useSubscriptionAddOnExpireSubscriptionAddOn = (options) => {
1124
1148
  return useMutation(mutationOptions);
1125
1149
  };
1126
1150
  var invoiceGetAllInvoices = (params, options, signal) => {
1127
- return customFetch({
1151
+ return customFetch2({
1128
1152
  url: `/api/v1/billing/invoices`,
1129
1153
  method: "GET",
1130
1154
  params,
@@ -1150,7 +1174,7 @@ function useInvoiceGetAllInvoices(params, options) {
1150
1174
  return query;
1151
1175
  }
1152
1176
  var invoiceAddInvoice = (invoiceAddInvoiceBody, options, signal) => {
1153
- return customFetch({
1177
+ return customFetch2({
1154
1178
  url: `/api/v1/billing/invoices`,
1155
1179
  method: "POST",
1156
1180
  headers: { "Content-Type": "application/json" },
@@ -1172,7 +1196,7 @@ var useInvoiceAddInvoice = (options) => {
1172
1196
  return useMutation(mutationOptions);
1173
1197
  };
1174
1198
  var invoiceGetInvoice = (invoiceUid, options, signal) => {
1175
- return customFetch({
1199
+ return customFetch2({
1176
1200
  url: `/api/v1/billing/invoices/${invoiceUid}`,
1177
1201
  method: "GET",
1178
1202
  signal
@@ -1196,7 +1220,7 @@ function useInvoiceGetInvoice(invoiceUid, options) {
1196
1220
  return query;
1197
1221
  }
1198
1222
  var invoiceUpdateInvoice = (invoiceUid, invoiceUpdateInvoiceBody, options) => {
1199
- return customFetch({
1223
+ return customFetch2({
1200
1224
  url: `/api/v1/billing/invoices/${invoiceUid}`,
1201
1225
  method: "PUT",
1202
1226
  headers: { "Content-Type": "application/json" },
@@ -1217,7 +1241,7 @@ var useInvoiceUpdateInvoice = (options) => {
1217
1241
  return useMutation(mutationOptions);
1218
1242
  };
1219
1243
  var invoiceDeleteInvoice = (invoiceUid, options) => {
1220
- return customFetch({
1244
+ return customFetch2({
1221
1245
  url: `/api/v1/billing/invoices/${invoiceUid}`,
1222
1246
  method: "DELETE",
1223
1247
  responseType: "blob"
@@ -1237,7 +1261,7 @@ var useInvoiceDeleteInvoice = (options) => {
1237
1261
  return useMutation(mutationOptions);
1238
1262
  };
1239
1263
  var invoiceGetInvoiceAsPdf = (invoiceUid, options, signal) => {
1240
- return customFetch({
1264
+ return customFetch2({
1241
1265
  url: `/api/v1/billing/invoices/${invoiceUid}/pdf`,
1242
1266
  method: "GET",
1243
1267
  responseType: "blob",
@@ -1262,7 +1286,7 @@ function useInvoiceGetInvoiceAsPdf(invoiceUid, options) {
1262
1286
  return query;
1263
1287
  }
1264
1288
  var invoiceSendInvoiceEmail = (invoiceUid, options, signal) => {
1265
- return customFetch({
1289
+ return customFetch2({
1266
1290
  url: `/api/v1/billing/invoices/${invoiceUid}/sendinvoiceemail`,
1267
1291
  method: "POST",
1268
1292
  responseType: "blob",
@@ -1283,7 +1307,7 @@ var useInvoiceSendInvoiceEmail = (options) => {
1283
1307
  return useMutation(mutationOptions);
1284
1308
  };
1285
1309
  var invoiceSendInvoicePaidEmail = (invoiceUid, options, signal) => {
1286
- return customFetch({
1310
+ return customFetch2({
1287
1311
  url: `/api/v1/billing/invoices/${invoiceUid}/sendinvoicepaidemail`,
1288
1312
  method: "POST",
1289
1313
  responseType: "blob",
@@ -1304,7 +1328,7 @@ var useInvoiceSendInvoicePaidEmail = (options) => {
1304
1328
  return useMutation(mutationOptions);
1305
1329
  };
1306
1330
  var subscriptionGetAllSubscriptions = (params, options, signal) => {
1307
- return customFetch({
1331
+ return customFetch2({
1308
1332
  url: `/api/v1/billing/subscriptions`,
1309
1333
  method: "GET",
1310
1334
  params,
@@ -1330,7 +1354,7 @@ function useSubscriptionGetAllSubscriptions(params, options) {
1330
1354
  return query;
1331
1355
  }
1332
1356
  var subscriptionGetSubscription = (subscriptionUid, options, signal) => {
1333
- return customFetch({
1357
+ return customFetch2({
1334
1358
  url: `/api/v1/billing/subscriptions/${subscriptionUid}`,
1335
1359
  method: "GET",
1336
1360
  signal
@@ -1354,7 +1378,7 @@ function useSubscriptionGetSubscription(subscriptionUid, options) {
1354
1378
  return query;
1355
1379
  }
1356
1380
  var subscriptionDeleteSubscription = (subscriptionUid, options) => {
1357
- return customFetch({
1381
+ return customFetch2({
1358
1382
  url: `/api/v1/billing/subscriptions/${subscriptionUid}`,
1359
1383
  method: "DELETE",
1360
1384
  responseType: "blob"
@@ -1374,7 +1398,7 @@ var useSubscriptionDeleteSubscription = (options) => {
1374
1398
  return useMutation(mutationOptions);
1375
1399
  };
1376
1400
  var subscriptionAddDiscountToSubscription = (subscriptionUid, discountUid, options, signal) => {
1377
- return customFetch({
1401
+ return customFetch2({
1378
1402
  url: `/api/v1/billing/subscriptions/${subscriptionUid}/discounts/${discountUid}`,
1379
1403
  method: "POST",
1380
1404
  responseType: "blob",
@@ -1395,7 +1419,7 @@ var useSubscriptionAddDiscountToSubscription = (options) => {
1395
1419
  return useMutation(mutationOptions);
1396
1420
  };
1397
1421
  var subscriptionExpireDiscountCouponSubscription = (subscriptionUid, discountUid, options) => {
1398
- return customFetch({
1422
+ return customFetch2({
1399
1423
  url: `/api/v1/billing/subscriptions/${subscriptionUid}/discounts/${discountUid}`,
1400
1424
  method: "DELETE",
1401
1425
  responseType: "blob"
@@ -1415,7 +1439,7 @@ var useSubscriptionExpireDiscountCouponSubscription = (options) => {
1415
1439
  return useMutation(mutationOptions);
1416
1440
  };
1417
1441
  var subscriptionSetSubscriptionUpgradeRequired = (subscriptionUid, subscriptionSetSubscriptionUpgradeRequiredBody, options) => {
1418
- return customFetch({
1442
+ return customFetch2({
1419
1443
  url: `/api/v1/billing/subscriptions/${subscriptionUid}/setsubscriptionupgraderequired`,
1420
1444
  method: "PUT",
1421
1445
  headers: { "Content-Type": "application/json" },
@@ -1436,7 +1460,7 @@ var useSubscriptionSetSubscriptionUpgradeRequired = (options) => {
1436
1460
  return useMutation(mutationOptions);
1437
1461
  };
1438
1462
  var subscriptionFirstTimeSubscriptionPreview = (subscriptionFirstTimeSubscriptionPreviewBody, params, options, signal) => {
1439
- return customFetch({
1463
+ return customFetch2({
1440
1464
  url: `/api/v1/billing/subscriptions/compute-charge-summary`,
1441
1465
  method: "POST",
1442
1466
  headers: { "Content-Type": "application/json" },
@@ -1459,7 +1483,7 @@ var useSubscriptionFirstTimeSubscriptionPreview = (options) => {
1459
1483
  return useMutation(mutationOptions);
1460
1484
  };
1461
1485
  var subscriptionFirstTimeSubscription = (subscriptionFirstTimeSubscriptionBody, options) => {
1462
- return customFetch({
1486
+ return customFetch2({
1463
1487
  url: `/api/v1/billing/subscriptions/firsttimesubscription`,
1464
1488
  method: "PUT",
1465
1489
  headers: { "Content-Type": "application/json" },
@@ -1480,7 +1504,7 @@ var useSubscriptionFirstTimeSubscription = (options) => {
1480
1504
  return useMutation(mutationOptions);
1481
1505
  };
1482
1506
  var subscriptionChangeSubscriptionPreview = (subscriptionUid, subscriptionChangeSubscriptionPreviewBody, params, options) => {
1483
- return customFetch({
1507
+ return customFetch2({
1484
1508
  url: `/api/v1/billing/subscriptions/${subscriptionUid}/changesubscriptionpreview`,
1485
1509
  method: "PUT",
1486
1510
  headers: { "Content-Type": "application/json" },
@@ -1502,7 +1526,7 @@ var useSubscriptionChangeSubscriptionPreview = (options) => {
1502
1526
  return useMutation(mutationOptions);
1503
1527
  };
1504
1528
  var subscriptionChangeSubscription = (subscriptionUid, subscriptionChangeSubscriptionBody, params, options) => {
1505
- return customFetch({
1529
+ return customFetch2({
1506
1530
  url: `/api/v1/billing/subscriptions/${subscriptionUid}/changesubscription`,
1507
1531
  method: "PUT",
1508
1532
  headers: { "Content-Type": "application/json" },
@@ -1524,7 +1548,7 @@ var useSubscriptionChangeSubscription = (options) => {
1524
1548
  return useMutation(mutationOptions);
1525
1549
  };
1526
1550
  var planGetAllPlans = (params, options, signal) => {
1527
- return customFetch({
1551
+ return customFetch2({
1528
1552
  url: `/api/v1/billing/plans`,
1529
1553
  method: "GET",
1530
1554
  params,
@@ -1550,7 +1574,7 @@ function usePlanGetAllPlans(params, options) {
1550
1574
  return query;
1551
1575
  }
1552
1576
  var planAddPlan = (planAddPlanBody, options, signal) => {
1553
- return customFetch({
1577
+ return customFetch2({
1554
1578
  url: `/api/v1/billing/plans`,
1555
1579
  method: "POST",
1556
1580
  headers: { "Content-Type": "application/json" },
@@ -1572,7 +1596,7 @@ var usePlanAddPlan = (options) => {
1572
1596
  return useMutation(mutationOptions);
1573
1597
  };
1574
1598
  var planGetPlan = (planUid, options, signal) => {
1575
- return customFetch({
1599
+ return customFetch2({
1576
1600
  url: `/api/v1/billing/plans/${planUid}`,
1577
1601
  method: "GET",
1578
1602
  signal
@@ -1596,7 +1620,7 @@ function usePlanGetPlan(planUid, options) {
1596
1620
  return query;
1597
1621
  }
1598
1622
  var planUpdatePlan = (planUid, planUpdatePlanBody, options) => {
1599
- return customFetch({
1623
+ return customFetch2({
1600
1624
  url: `/api/v1/billing/plans/${planUid}`,
1601
1625
  method: "PUT",
1602
1626
  headers: { "Content-Type": "application/json" },
@@ -1617,7 +1641,7 @@ var usePlanUpdatePlan = (options) => {
1617
1641
  return useMutation(mutationOptions);
1618
1642
  };
1619
1643
  var planDeletePlan = (planUid, options) => {
1620
- return customFetch({
1644
+ return customFetch2({
1621
1645
  url: `/api/v1/billing/plans/${planUid}`,
1622
1646
  method: "DELETE",
1623
1647
  responseType: "blob"
@@ -1637,7 +1661,7 @@ var usePlanDeletePlan = (options) => {
1637
1661
  return useMutation(mutationOptions);
1638
1662
  };
1639
1663
  var planFamilyGetAllPlanFamilies = (params, options, signal) => {
1640
- return customFetch({
1664
+ return customFetch2({
1641
1665
  url: `/api/v1/billing/planfamilies`,
1642
1666
  method: "GET",
1643
1667
  params,
@@ -1663,7 +1687,7 @@ function usePlanFamilyGetAllPlanFamilies(params, options) {
1663
1687
  return query;
1664
1688
  }
1665
1689
  var planFamilyAddPlanFamily = (planFamilyAddPlanFamilyBody, options, signal) => {
1666
- return customFetch({
1690
+ return customFetch2({
1667
1691
  url: `/api/v1/billing/planfamilies`,
1668
1692
  method: "POST",
1669
1693
  headers: { "Content-Type": "application/json" },
@@ -1685,7 +1709,7 @@ var usePlanFamilyAddPlanFamily = (options) => {
1685
1709
  return useMutation(mutationOptions);
1686
1710
  };
1687
1711
  var planFamilyGetPlanFamily = (planFamilyUid, options, signal) => {
1688
- return customFetch({
1712
+ return customFetch2({
1689
1713
  url: `/api/v1/billing/planfamilies/${planFamilyUid}`,
1690
1714
  method: "GET",
1691
1715
  signal
@@ -1709,7 +1733,7 @@ function usePlanFamilyGetPlanFamily(planFamilyUid, options) {
1709
1733
  return query;
1710
1734
  }
1711
1735
  var planFamilyUpdatePlanFamily = (planFamilyUid, planFamilyUpdatePlanFamilyBody, options) => {
1712
- return customFetch({
1736
+ return customFetch2({
1713
1737
  url: `/api/v1/billing/planfamilies/${planFamilyUid}`,
1714
1738
  method: "PUT",
1715
1739
  headers: { "Content-Type": "application/json" },
@@ -1730,7 +1754,7 @@ var usePlanFamilyUpdatePlanFamily = (options) => {
1730
1754
  return useMutation(mutationOptions);
1731
1755
  };
1732
1756
  var planFamilyDeletePlanFamily = (planFamilyUid, options) => {
1733
- return customFetch({
1757
+ return customFetch2({
1734
1758
  url: `/api/v1/billing/planfamilies/${planFamilyUid}`,
1735
1759
  method: "DELETE",
1736
1760
  responseType: "blob"
@@ -1751,7 +1775,7 @@ var usePlanFamilyDeletePlanFamily = (options) => {
1751
1775
  };
1752
1776
  // src/generated/crm/crm.ts
1753
1777
  var dealGetAllDeals = (params, options, signal) => {
1754
- return customFetch({
1778
+ return customFetch2({
1755
1779
  url: `/api/v1/crm/deals`,
1756
1780
  method: "GET",
1757
1781
  params,
@@ -1777,7 +1801,7 @@ function useDealGetAllDeals(params, options) {
1777
1801
  return query;
1778
1802
  }
1779
1803
  var dealAddDeal = (dealAddDealBody, options, signal) => {
1780
- return customFetch({
1804
+ return customFetch2({
1781
1805
  url: `/api/v1/crm/deals`,
1782
1806
  method: "POST",
1783
1807
  headers: { "Content-Type": "application/json" },
@@ -1799,7 +1823,7 @@ var useDealAddDeal = (options) => {
1799
1823
  return useMutation(mutationOptions);
1800
1824
  };
1801
1825
  var dealGetDeal = (dealUid, options, signal) => {
1802
- return customFetch({
1826
+ return customFetch2({
1803
1827
  url: `/api/v1/crm/deals/${dealUid}`,
1804
1828
  method: "GET",
1805
1829
  signal
@@ -1823,7 +1847,7 @@ function useDealGetDeal(dealUid, options) {
1823
1847
  return query;
1824
1848
  }
1825
1849
  var dealUpdateDeal = (dealUid, dealUpdateDealBody, options) => {
1826
- return customFetch({
1850
+ return customFetch2({
1827
1851
  url: `/api/v1/crm/deals/${dealUid}`,
1828
1852
  method: "PUT",
1829
1853
  headers: { "Content-Type": "application/json" },
@@ -1844,7 +1868,7 @@ var useDealUpdateDeal = (options) => {
1844
1868
  return useMutation(mutationOptions);
1845
1869
  };
1846
1870
  var dealDeleteDeal = (dealUid, options) => {
1847
- return customFetch({
1871
+ return customFetch2({
1848
1872
  url: `/api/v1/crm/deals/${dealUid}`,
1849
1873
  method: "DELETE",
1850
1874
  responseType: "blob"
@@ -1864,7 +1888,7 @@ var useDealDeleteDeal = (options) => {
1864
1888
  return useMutation(mutationOptions);
1865
1889
  };
1866
1890
  var registrationRegisterAccount = (account, options, signal) => {
1867
- return customFetch({
1891
+ return customFetch2({
1868
1892
  url: `/api/v1/crm/registrations`,
1869
1893
  method: "POST",
1870
1894
  headers: { "Content-Type": "application/json" },
@@ -1886,7 +1910,7 @@ var useRegistrationRegisterAccount = (options) => {
1886
1910
  return useMutation(mutationOptions);
1887
1911
  };
1888
1912
  var accountGetAllAccounts = (params, options, signal) => {
1889
- return customFetch({
1913
+ return customFetch2({
1890
1914
  url: `/api/v1/crm/accounts`,
1891
1915
  method: "GET",
1892
1916
  params,
@@ -1912,7 +1936,7 @@ function useAccountGetAllAccounts(params, options) {
1912
1936
  return query;
1913
1937
  }
1914
1938
  var accountAddAccount = (accountAddAccountBody, params, options, signal) => {
1915
- return customFetch({
1939
+ return customFetch2({
1916
1940
  url: `/api/v1/crm/accounts`,
1917
1941
  method: "POST",
1918
1942
  headers: { "Content-Type": "application/json" },
@@ -1936,7 +1960,7 @@ var useAccountAddAccount = (options) => {
1936
1960
  return useMutation(mutationOptions);
1937
1961
  };
1938
1962
  var accountGetAccount = (accountUid, options, signal) => {
1939
- return customFetch({
1963
+ return customFetch2({
1940
1964
  url: `/api/v1/crm/accounts/${accountUid}`,
1941
1965
  method: "GET",
1942
1966
  signal
@@ -1960,7 +1984,7 @@ function useAccountGetAccount(accountUid, options) {
1960
1984
  return query;
1961
1985
  }
1962
1986
  var accountDeleteAccount = (accountUid, options) => {
1963
- return customFetch({
1987
+ return customFetch2({
1964
1988
  url: `/api/v1/crm/accounts/${accountUid}`,
1965
1989
  method: "DELETE",
1966
1990
  responseType: "blob"
@@ -1980,7 +2004,7 @@ var useAccountDeleteAccount = (options) => {
1980
2004
  return useMutation(mutationOptions);
1981
2005
  };
1982
2006
  var accountUpdateAccount = (accountUid, accountUpdateAccountBody, options) => {
1983
- return customFetch({
2007
+ return customFetch2({
1984
2008
  url: `/api/v1/crm/accounts/${accountUid}`,
1985
2009
  method: "PUT",
1986
2010
  headers: { "Content-Type": "application/json" },
@@ -2001,7 +2025,7 @@ var useAccountUpdateAccount = (options) => {
2001
2025
  return useMutation(mutationOptions);
2002
2026
  };
2003
2027
  var accountAddPersonToAccount = (accountUid, accountAddPersonToAccountBody, options, signal) => {
2004
- return customFetch({
2028
+ return customFetch2({
2005
2029
  url: `/api/v1/crm/accounts/${accountUid}/memberships`,
2006
2030
  method: "POST",
2007
2031
  headers: { "Content-Type": "application/json" },
@@ -2023,7 +2047,7 @@ var useAccountAddPersonToAccount = (options) => {
2023
2047
  return useMutation(mutationOptions);
2024
2048
  };
2025
2049
  var accountUpdateMembership = (accountUid, membershipUid, accountUpdateMembershipBody, options) => {
2026
- return customFetch({
2050
+ return customFetch2({
2027
2051
  url: `/api/v1/crm/accounts/${accountUid}/memberships/${membershipUid}`,
2028
2052
  method: "PUT",
2029
2053
  headers: { "Content-Type": "application/json" },
@@ -2045,7 +2069,7 @@ var useAccountUpdateMembership = (options) => {
2045
2069
  return useMutation(mutationOptions);
2046
2070
  };
2047
2071
  var accountDeleteMembership = (accountUid, membershipUid, options) => {
2048
- return customFetch({
2072
+ return customFetch2({
2049
2073
  url: `/api/v1/crm/accounts/${accountUid}/memberships/${membershipUid}`,
2050
2074
  method: "DELETE",
2051
2075
  responseType: "blob"
@@ -2065,7 +2089,7 @@ var useAccountDeleteMembership = (options) => {
2065
2089
  return useMutation(mutationOptions);
2066
2090
  };
2067
2091
  var accountCancelAccount = (accountUid, accountCancelAccountBody, options) => {
2068
- return customFetch({
2092
+ return customFetch2({
2069
2093
  url: `/api/v1/crm/accounts/${accountUid}/cancel`,
2070
2094
  method: "PUT",
2071
2095
  headers: { "Content-Type": "application/json" },
@@ -2087,7 +2111,7 @@ var useAccountCancelAccount = (options) => {
2087
2111
  return useMutation(mutationOptions);
2088
2112
  };
2089
2113
  var accountRemoveCancellation = (accountUid, options) => {
2090
- return customFetch({
2114
+ return customFetch2({
2091
2115
  url: `/api/v1/crm/accounts/${accountUid}/remove-cancellation`,
2092
2116
  method: "PUT",
2093
2117
  responseType: "blob"
@@ -2107,7 +2131,7 @@ var useAccountRemoveCancellation = (options) => {
2107
2131
  return useMutation(mutationOptions);
2108
2132
  };
2109
2133
  var accountExtendTrial = (accountUid, accountExtendTrialBody, options) => {
2110
- return customFetch({
2134
+ return customFetch2({
2111
2135
  url: `/api/v1/crm/accounts/${accountUid}/extend-trial`,
2112
2136
  method: "PUT",
2113
2137
  headers: { "Content-Type": "application/json" },
@@ -2129,7 +2153,7 @@ var useAccountExtendTrial = (options) => {
2129
2153
  return useMutation(mutationOptions);
2130
2154
  };
2131
2155
  var accountSendConfirmationEmail = (accountUid, options) => {
2132
- return customFetch({
2156
+ return customFetch2({
2133
2157
  url: `/api/v1/crm/accounts/${accountUid}/send-confirmation-email`,
2134
2158
  method: "PUT",
2135
2159
  responseType: "blob"
@@ -2149,7 +2173,7 @@ var useAccountSendConfirmationEmail = (options) => {
2149
2173
  return useMutation(mutationOptions);
2150
2174
  };
2151
2175
  var personGetAllPeople = (params, options, signal) => {
2152
- return customFetch({
2176
+ return customFetch2({
2153
2177
  url: `/api/v1/crm/people`,
2154
2178
  method: "GET",
2155
2179
  params,
@@ -2175,7 +2199,7 @@ function usePersonGetAllPeople(params, options) {
2175
2199
  return query;
2176
2200
  }
2177
2201
  var personAddPerson = (personAddPersonBody, options, signal) => {
2178
- return customFetch({
2202
+ return customFetch2({
2179
2203
  url: `/api/v1/crm/people`,
2180
2204
  method: "POST",
2181
2205
  headers: { "Content-Type": "application/json" },
@@ -2197,7 +2221,7 @@ var usePersonAddPerson = (options) => {
2197
2221
  return useMutation(mutationOptions);
2198
2222
  };
2199
2223
  var personGetPerson = (personUid, options, signal) => {
2200
- return customFetch({
2224
+ return customFetch2({
2201
2225
  url: `/api/v1/crm/people/${personUid}`,
2202
2226
  method: "GET",
2203
2227
  signal
@@ -2221,7 +2245,7 @@ function usePersonGetPerson(personUid, options) {
2221
2245
  return query;
2222
2246
  }
2223
2247
  var personUpdatePerson = (personUid, personUpdatePersonBody, options) => {
2224
- return customFetch({
2248
+ return customFetch2({
2225
2249
  url: `/api/v1/crm/people/${personUid}`,
2226
2250
  method: "PUT",
2227
2251
  headers: { "Content-Type": "application/json" },
@@ -2242,7 +2266,7 @@ var usePersonUpdatePerson = (options) => {
2242
2266
  return useMutation(mutationOptions);
2243
2267
  };
2244
2268
  var personDeletePerson = (personUid, options) => {
2245
- return customFetch({
2269
+ return customFetch2({
2246
2270
  url: `/api/v1/crm/people/${personUid}`,
2247
2271
  method: "DELETE",
2248
2272
  responseType: "blob"
@@ -2262,7 +2286,7 @@ var usePersonDeletePerson = (options) => {
2262
2286
  return useMutation(mutationOptions);
2263
2287
  };
2264
2288
  var personSetTemporaryPassword = (personUid, personSetTemporaryPasswordBody, options) => {
2265
- return customFetch({
2289
+ return customFetch2({
2266
2290
  url: `/api/v1/crm/people/${personUid}/setTemporaryPassword`,
2267
2291
  method: "PUT",
2268
2292
  headers: { "Content-Type": "application/json" },
@@ -2284,7 +2308,7 @@ var usePersonSetTemporaryPassword = (options) => {
2284
2308
  return useMutation(mutationOptions);
2285
2309
  };
2286
2310
  var personRegenerateTwoFactorRecoveryCodes = (personUid, options) => {
2287
- return customFetch({
2311
+ return customFetch2({
2288
2312
  url: `/api/v1/crm/people/${personUid}/regenerateTwoFactorRecoveryCodes`,
2289
2313
  method: "PUT",
2290
2314
  responseType: "blob"
@@ -2304,7 +2328,7 @@ var usePersonRegenerateTwoFactorRecoveryCodes = (options) => {
2304
2328
  return useMutation(mutationOptions);
2305
2329
  };
2306
2330
  var personForgotPassword = (personForgotPasswordBody, options, signal) => {
2307
- return customFetch({
2331
+ return customFetch2({
2308
2332
  url: `/api/v1/crm/people/forgotPassword`,
2309
2333
  method: "POST",
2310
2334
  headers: { "Content-Type": "application/json" },
@@ -2327,7 +2351,7 @@ var usePersonForgotPassword = (options) => {
2327
2351
  return useMutation(mutationOptions);
2328
2352
  };
2329
2353
  var personRequestMagicLink = (personRequestMagicLinkBody, options, signal) => {
2330
- return customFetch({
2354
+ return customFetch2({
2331
2355
  url: `/api/v1/crm/people/requestMagicLink`,
2332
2356
  method: "POST",
2333
2357
  headers: { "Content-Type": "application/json" },
@@ -2351,7 +2375,7 @@ var usePersonRequestMagicLink = (options) => {
2351
2375
  };
2352
2376
  // src/generated/email/email.ts
2353
2377
  var dripCampaignGetAllDripCampaigns = (params, options, signal) => {
2354
- return customFetch({
2378
+ return customFetch2({
2355
2379
  url: `/api/v1/email/campaigns/drips`,
2356
2380
  method: "GET",
2357
2381
  params,
@@ -2377,7 +2401,7 @@ function useDripCampaignGetAllDripCampaigns(params, options) {
2377
2401
  return query;
2378
2402
  }
2379
2403
  var dripCampaignAddDripCampaign = (dripCampaignAddDripCampaignBody, options, signal) => {
2380
- return customFetch({
2404
+ return customFetch2({
2381
2405
  url: `/api/v1/email/campaigns/drips`,
2382
2406
  method: "POST",
2383
2407
  headers: { "Content-Type": "application/json" },
@@ -2399,7 +2423,7 @@ var useDripCampaignAddDripCampaign = (options) => {
2399
2423
  return useMutation(mutationOptions);
2400
2424
  };
2401
2425
  var dripCampaignGetDripCampaign = (dripCampaignUid, options, signal) => {
2402
- return customFetch({
2426
+ return customFetch2({
2403
2427
  url: `/api/v1/email/campaigns/drips/${dripCampaignUid}`,
2404
2428
  method: "GET",
2405
2429
  signal
@@ -2423,7 +2447,7 @@ function useDripCampaignGetDripCampaign(dripCampaignUid, options) {
2423
2447
  return query;
2424
2448
  }
2425
2449
  var dripCampaignUpdateDripCampaign = (dripCampaignUid, dripCampaignUpdateDripCampaignBody, options) => {
2426
- return customFetch({
2450
+ return customFetch2({
2427
2451
  url: `/api/v1/email/campaigns/drips/${dripCampaignUid}`,
2428
2452
  method: "PUT",
2429
2453
  headers: { "Content-Type": "application/json" },
@@ -2444,7 +2468,7 @@ var useDripCampaignUpdateDripCampaign = (options) => {
2444
2468
  return useMutation(mutationOptions);
2445
2469
  };
2446
2470
  var dripCampaignDeleteDripCampaign = (dripCampaignUid, options) => {
2447
- return customFetch({
2471
+ return customFetch2({
2448
2472
  url: `/api/v1/email/campaigns/drips/${dripCampaignUid}`,
2449
2473
  method: "DELETE",
2450
2474
  responseType: "blob"
@@ -2464,7 +2488,7 @@ var useDripCampaignDeleteDripCampaign = (options) => {
2464
2488
  return useMutation(mutationOptions);
2465
2489
  };
2466
2490
  var dripCampaignAddDripCampaignMessage = (dripCampaignUid, dripCampaignAddDripCampaignMessageBody, options, signal) => {
2467
- return customFetch({
2491
+ return customFetch2({
2468
2492
  url: `/api/v1/email/campaigns/drips/${dripCampaignUid}/messages`,
2469
2493
  method: "POST",
2470
2494
  headers: { "Content-Type": "application/json" },
@@ -2486,7 +2510,7 @@ var useDripCampaignAddDripCampaignMessage = (options) => {
2486
2510
  return useMutation(mutationOptions);
2487
2511
  };
2488
2512
  var dripCampaignGetDripCampaignMessage = (dripCampaignUid, dripCampaignMessageUid, options, signal) => {
2489
- return customFetch({
2513
+ return customFetch2({
2490
2514
  url: `/api/v1/email/campaigns/drips/${dripCampaignUid}/messages/${dripCampaignMessageUid}`,
2491
2515
  method: "GET",
2492
2516
  signal
@@ -2510,7 +2534,7 @@ function useDripCampaignGetDripCampaignMessage(dripCampaignUid, dripCampaignMess
2510
2534
  return query;
2511
2535
  }
2512
2536
  var dripCampaignUpdateDripCampaignMessage = (dripCampaignUid, dripCampaignMessageUid, dripCampaignUpdateDripCampaignMessageBody, options) => {
2513
- return customFetch({
2537
+ return customFetch2({
2514
2538
  url: `/api/v1/email/campaigns/drips/${dripCampaignUid}/messages/${dripCampaignMessageUid}`,
2515
2539
  method: "PUT",
2516
2540
  headers: { "Content-Type": "application/json" },
@@ -2531,7 +2555,7 @@ var useDripCampaignUpdateDripCampaignMessage = (options) => {
2531
2555
  return useMutation(mutationOptions);
2532
2556
  };
2533
2557
  var dripCampaignDeleteDripCampaignMessage = (dripCampaignUid, dripCampaignMessageUid, options) => {
2534
- return customFetch({
2558
+ return customFetch2({
2535
2559
  url: `/api/v1/email/campaigns/drips/${dripCampaignUid}/messages/${dripCampaignMessageUid}`,
2536
2560
  method: "DELETE",
2537
2561
  responseType: "blob"
@@ -2551,7 +2575,7 @@ var useDripCampaignDeleteDripCampaignMessage = (options) => {
2551
2575
  return useMutation(mutationOptions);
2552
2576
  };
2553
2577
  var dripCampaignSendTestCampaignEmail = (dripCampaignSendTestCampaignEmailBody, options, signal) => {
2554
- return customFetch({
2578
+ return customFetch2({
2555
2579
  url: `/api/v1/email/campaigns/drips/sendtestemail`,
2556
2580
  method: "POST",
2557
2581
  headers: { "Content-Type": "application/json" },
@@ -2574,7 +2598,7 @@ var useDripCampaignSendTestCampaignEmail = (options) => {
2574
2598
  return useMutation(mutationOptions);
2575
2599
  };
2576
2600
  var campaignGetAllBroadcastEmails = (params, options, signal) => {
2577
- return customFetch({
2601
+ return customFetch2({
2578
2602
  url: `/api/v1/email/campaigns/broadcasts`,
2579
2603
  method: "GET",
2580
2604
  params,
@@ -2600,7 +2624,7 @@ function useCampaignGetAllBroadcastEmails(params, options) {
2600
2624
  return query;
2601
2625
  }
2602
2626
  var campaignAddBroadcastEmail = (campaignAddBroadcastEmailBody, options, signal) => {
2603
- return customFetch({
2627
+ return customFetch2({
2604
2628
  url: `/api/v1/email/campaigns/broadcasts`,
2605
2629
  method: "POST",
2606
2630
  headers: { "Content-Type": "application/json" },
@@ -2622,7 +2646,7 @@ var useCampaignAddBroadcastEmail = (options) => {
2622
2646
  return useMutation(mutationOptions);
2623
2647
  };
2624
2648
  var campaignGetBroadcastEmail = (broadcastCampaignUid, options, signal) => {
2625
- return customFetch({
2649
+ return customFetch2({
2626
2650
  url: `/api/v1/email/campaigns/broadcasts/${broadcastCampaignUid}`,
2627
2651
  method: "GET",
2628
2652
  signal
@@ -2646,7 +2670,7 @@ function useCampaignGetBroadcastEmail(broadcastCampaignUid, options) {
2646
2670
  return query;
2647
2671
  }
2648
2672
  var campaignUpdateBroadcastEmail = (broadcastCampaignUid, campaignUpdateBroadcastEmailBody, options) => {
2649
- return customFetch({
2673
+ return customFetch2({
2650
2674
  url: `/api/v1/email/campaigns/broadcasts/${broadcastCampaignUid}`,
2651
2675
  method: "PUT",
2652
2676
  headers: { "Content-Type": "application/json" },
@@ -2667,7 +2691,7 @@ var useCampaignUpdateBroadcastEmail = (options) => {
2667
2691
  return useMutation(mutationOptions);
2668
2692
  };
2669
2693
  var campaignDeleteBroadcastCampaign = (broadcastCampaignUid, options) => {
2670
- return customFetch({
2694
+ return customFetch2({
2671
2695
  url: `/api/v1/email/campaigns/broadcasts/${broadcastCampaignUid}`,
2672
2696
  method: "DELETE",
2673
2697
  responseType: "blob"
@@ -2687,7 +2711,7 @@ var useCampaignDeleteBroadcastCampaign = (options) => {
2687
2711
  return useMutation(mutationOptions);
2688
2712
  };
2689
2713
  var campaignUnscheduleBroadcastEmail = (broadcastCampaignUid, options, signal) => {
2690
- return customFetch({
2714
+ return customFetch2({
2691
2715
  url: `/api/v1/email/campaigns/broadcasts/${broadcastCampaignUid}/unschedule`,
2692
2716
  method: "POST",
2693
2717
  signal
@@ -2707,7 +2731,7 @@ var useCampaignUnscheduleBroadcastEmail = (options) => {
2707
2731
  return useMutation(mutationOptions);
2708
2732
  };
2709
2733
  var campaignArchiveBroadcastCampaign = (broadcastCampaignUid, options, signal) => {
2710
- return customFetch({
2734
+ return customFetch2({
2711
2735
  url: `/api/v1/email/campaigns/broadcasts/${broadcastCampaignUid}/archive`,
2712
2736
  method: "POST",
2713
2737
  responseType: "blob",
@@ -2728,7 +2752,7 @@ var useCampaignArchiveBroadcastCampaign = (options) => {
2728
2752
  return useMutation(mutationOptions);
2729
2753
  };
2730
2754
  var campaignSendTestCampaignEmail = (campaignSendTestCampaignEmailBody, options, signal) => {
2731
- return customFetch({
2755
+ return customFetch2({
2732
2756
  url: `/api/v1/email/campaigns/broadcasts/sendtestemail`,
2733
2757
  method: "POST",
2734
2758
  headers: { "Content-Type": "application/json" },
@@ -2751,7 +2775,7 @@ var useCampaignSendTestCampaignEmail = (options) => {
2751
2775
  return useMutation(mutationOptions);
2752
2776
  };
2753
2777
  var emailListGetAllEmailLists = (params, options, signal) => {
2754
- return customFetch({
2778
+ return customFetch2({
2755
2779
  url: `/api/v1/email/lists`,
2756
2780
  method: "GET",
2757
2781
  params,
@@ -2777,7 +2801,7 @@ function useEmailListGetAllEmailLists(params, options) {
2777
2801
  return query;
2778
2802
  }
2779
2803
  var emailListAddEmailList = (emailListAddEmailListBody, options, signal) => {
2780
- return customFetch({
2804
+ return customFetch2({
2781
2805
  url: `/api/v1/email/lists`,
2782
2806
  method: "POST",
2783
2807
  headers: { "Content-Type": "application/json" },
@@ -2799,7 +2823,7 @@ var useEmailListAddEmailList = (options) => {
2799
2823
  return useMutation(mutationOptions);
2800
2824
  };
2801
2825
  var emailListGetEmailList = (emailListUid, options, signal) => {
2802
- return customFetch({
2826
+ return customFetch2({
2803
2827
  url: `/api/v1/email/lists/${emailListUid}`,
2804
2828
  method: "GET",
2805
2829
  signal
@@ -2823,7 +2847,7 @@ function useEmailListGetEmailList(emailListUid, options) {
2823
2847
  return query;
2824
2848
  }
2825
2849
  var emailListUpdateEmailList = (emailListUid, emailListUpdateEmailListBody, options) => {
2826
- return customFetch({
2850
+ return customFetch2({
2827
2851
  url: `/api/v1/email/lists/${emailListUid}`,
2828
2852
  method: "PUT",
2829
2853
  headers: { "Content-Type": "application/json" },
@@ -2844,7 +2868,7 @@ var useEmailListUpdateEmailList = (options) => {
2844
2868
  return useMutation(mutationOptions);
2845
2869
  };
2846
2870
  var emailListDeleteEmailList = (emailListUid, options) => {
2847
- return customFetch({
2871
+ return customFetch2({
2848
2872
  url: `/api/v1/email/lists/${emailListUid}`,
2849
2873
  method: "DELETE",
2850
2874
  responseType: "blob"
@@ -2864,7 +2888,7 @@ var useEmailListDeleteEmailList = (options) => {
2864
2888
  return useMutation(mutationOptions);
2865
2889
  };
2866
2890
  var emailListGetAllSubscriptions = (emailListUid, params, options, signal) => {
2867
- return customFetch({
2891
+ return customFetch2({
2868
2892
  url: `/api/v1/email/lists/${emailListUid}/subscriptions`,
2869
2893
  method: "GET",
2870
2894
  params,
@@ -2890,7 +2914,7 @@ function useEmailListGetAllSubscriptions(emailListUid, params, options) {
2890
2914
  return query;
2891
2915
  }
2892
2916
  var emailListAddSubscription = (emailListUid, emailListAddSubscriptionBody, options, signal) => {
2893
- return customFetch({
2917
+ return customFetch2({
2894
2918
  url: `/api/v1/email/lists/${emailListUid}/subscriptions`,
2895
2919
  method: "POST",
2896
2920
  headers: { "Content-Type": "application/json" },
@@ -2912,7 +2936,7 @@ var useEmailListAddSubscription = (options) => {
2912
2936
  return useMutation(mutationOptions);
2913
2937
  };
2914
2938
  var emailListDeleteSubscription = (emailListUid, subscriptionUid, options) => {
2915
- return customFetch({
2939
+ return customFetch2({
2916
2940
  url: `/api/v1/email/lists/${emailListUid}/subscriptions/${subscriptionUid}`,
2917
2941
  method: "DELETE",
2918
2942
  responseType: "blob"
@@ -2933,7 +2957,7 @@ var useEmailListDeleteSubscription = (options) => {
2933
2957
  };
2934
2958
  // src/generated/support/support.ts
2935
2959
  var caseGetAllCases = (params, options, signal) => {
2936
- return customFetch({
2960
+ return customFetch2({
2937
2961
  url: `/api/v1/support/cases`,
2938
2962
  method: "GET",
2939
2963
  params,
@@ -2959,7 +2983,7 @@ function useCaseGetAllCases(params, options) {
2959
2983
  return query;
2960
2984
  }
2961
2985
  var caseAddCase = (caseAddCaseBody, params, options, signal) => {
2962
- return customFetch({
2986
+ return customFetch2({
2963
2987
  url: `/api/v1/support/cases`,
2964
2988
  method: "POST",
2965
2989
  headers: { "Content-Type": "application/json" },
@@ -2982,7 +3006,7 @@ var useCaseAddCase = (options) => {
2982
3006
  return useMutation(mutationOptions);
2983
3007
  };
2984
3008
  var caseGetCase = (caseUid, options, signal) => {
2985
- return customFetch({
3009
+ return customFetch2({
2986
3010
  url: `/api/v1/support/cases/${caseUid}`,
2987
3011
  method: "GET",
2988
3012
  signal
@@ -3006,7 +3030,7 @@ function useCaseGetCase(caseUid, options) {
3006
3030
  return query;
3007
3031
  }
3008
3032
  var caseAddReply = (caseUid, options, signal) => {
3009
- return customFetch({
3033
+ return customFetch2({
3010
3034
  url: `/api/v1/support/cases/${caseUid}/replies`,
3011
3035
  method: "POST",
3012
3036
  responseType: "blob",
@@ -3027,7 +3051,7 @@ var useCaseAddReply = (options) => {
3027
3051
  return useMutation(mutationOptions);
3028
3052
  };
3029
3053
  var caseAddClientResponse = (caseUid, comment, options, signal) => {
3030
- return customFetch({
3054
+ return customFetch2({
3031
3055
  url: `/api/v1/support/cases/${caseUid}/clientresponse/${comment}`,
3032
3056
  method: "POST",
3033
3057
  signal
@@ -3047,7 +3071,7 @@ var useCaseAddClientResponse = (options) => {
3047
3071
  return useMutation(mutationOptions);
3048
3072
  };
3049
3073
  var articleGetAllArticles = (params, options, signal) => {
3050
- return customFetch({
3074
+ return customFetch2({
3051
3075
  url: `/api/v1/support/articles`,
3052
3076
  method: "GET",
3053
3077
  params,
@@ -3073,7 +3097,7 @@ function useArticleGetAllArticles(params, options) {
3073
3097
  return query;
3074
3098
  }
3075
3099
  var articleAddArticle = (articleAddArticleBody, options, signal) => {
3076
- return customFetch({
3100
+ return customFetch2({
3077
3101
  url: `/api/v1/support/articles`,
3078
3102
  method: "POST",
3079
3103
  headers: { "Content-Type": "application/json" },
@@ -3095,7 +3119,7 @@ var useArticleAddArticle = (options) => {
3095
3119
  return useMutation(mutationOptions);
3096
3120
  };
3097
3121
  var articleGetArticle = (articleUid, options, signal) => {
3098
- return customFetch({
3122
+ return customFetch2({
3099
3123
  url: `/api/v1/support/articles/${articleUid}`,
3100
3124
  method: "GET",
3101
3125
  signal
@@ -3119,7 +3143,7 @@ function useArticleGetArticle(articleUid, options) {
3119
3143
  return query;
3120
3144
  }
3121
3145
  var categoryGetAllCategories = (params, options, signal) => {
3122
- return customFetch({
3146
+ return customFetch2({
3123
3147
  url: `/api/v1/support/categories`,
3124
3148
  method: "GET",
3125
3149
  params,
@@ -3370,6 +3394,7 @@ var ActivityType = {
3370
3394
  AccountSubscriptionCancellationRequested: 119,
3371
3395
  AccountBillingInvoiceDeleted: 120,
3372
3396
  AccountPersonRoleUpdated: 121,
3397
+ AccountProductsChanged: 122,
3373
3398
  PersonCreated: 200,
3374
3399
  PersonUpdated: 201,
3375
3400
  PersonDeleted: 202,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@outseta/react",
3
- "version": "0.4.28",
3
+ "version": "0.4.30",
4
4
  "description": "React hooks and components for the Outseta API",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -18,7 +18,7 @@
18
18
  }
19
19
  },
20
20
  "dependencies": {
21
- "@outseta/api-client": "0.3.34"
21
+ "@outseta/api-client": "0.3.36"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "react": "^18.0.0 || ^19.0.0"
@@ -3554,6 +3554,8 @@ export type DiscordRoleAllOf = {
3554
3554
  DiscordServer?: DiscordRoleAllOfDiscordServer;
3555
3555
  /** @nullable */
3556
3556
  DiscordRolePlans?: DiscordRolePlan[] | null;
3557
+ /** @nullable */
3558
+ DiscordRoleProducts?: DiscordRoleProduct[] | null;
3557
3559
  };
3558
3560
 
3559
3561
  export type DiscordRole = AbstractQcountBean & DiscordRoleAllOf;
@@ -3577,6 +3579,25 @@ export type DiscordRolePlanAllOf = {
3577
3579
 
3578
3580
  export type DiscordRolePlan = AbstractQcountBean & DiscordRolePlanAllOf;
3579
3581
 
3582
+ /**
3583
+ * @nullable
3584
+ */
3585
+ export type DiscordRoleProductAllOfDiscordRole = DiscordRole | null;
3586
+
3587
+ /**
3588
+ * @nullable
3589
+ */
3590
+ export type DiscordRoleProductAllOfStripeProduct = StripeProduct | null;
3591
+
3592
+ export type DiscordRoleProductAllOf = {
3593
+ /** @nullable */
3594
+ DiscordRole?: DiscordRoleProductAllOfDiscordRole;
3595
+ /** @nullable */
3596
+ StripeProduct?: DiscordRoleProductAllOfStripeProduct;
3597
+ };
3598
+
3599
+ export type DiscordRoleProduct = AbstractQcountBean & DiscordRoleProductAllOf;
3600
+
3580
3601
  export interface SlackChannelSetting {
3581
3602
  /** @nullable */
3582
3603
  Channel?: string | null;
@@ -3589,7 +3610,7 @@ export interface SlackChannelSetting {
3589
3610
  }
3590
3611
 
3591
3612
  /**
3592
- * `10` - Custom, `50` - Note, `51` - Email, `52` - PhoneCall, `53` - Meeting, `54` - Chat, `100` - AccountCreated, `101` - AccountUpdated, `102` - AccountAddPerson, `103` - AccountStageUpdated, `104` - AccountDeleted, `105` - AccountBillingInformationUpdated, `106` - AccountSubscriptionPlanUpdated, `107` - AccountSubscriptionPaymentCollected, `108` - AccountSubscriptionPaymentDeclined, `109` - AccountBillingInformationRequested, `110` - AccountBillingInvoiceEmailSent, `111` - AccountRemovePerson, `112` - AccountPaidSubscriptionCreated, `113` - AccountBillingInformationRemoved, `114` - AccountPrimaryPersonUpdated, `115` - AccountBillingInvoiceCreated, `116` - AccountSubscriptionStarted, `117` - AccountSubscriptionRenewalExtended, `118` - AccountSubscriptionAddOnsChanged, `119` - AccountSubscriptionCancellationRequested, `120` - AccountBillingInvoiceDeleted, `121` - AccountPersonRoleUpdated, `200` - PersonCreated, `201` - PersonUpdated, `202` - PersonDeleted, `203` - PersonLogin, `204` - PersonListSubscribed, `205` - PersonListUnsubscribed, `206` - PersonSegmentAdded, `207` - PersonSegmentRemoved, `208` - PersonEmailOpened, `209` - PersonEmailClicked, `210` - PersonEmailBounce, `211` - PersonEmailSpam, `212` - PersonSupportTicketCreated, `213` - PersonSupportTicketUpdated, `214` - PersonLeadFormSubmitted, `215` - PersonListConfirmed, `216` - PersonEmailSubscribed, `217` - PersonEmailUnsubscribed, `218` - PersonTemporaryPasswordSet, `219` - PersonSupportTicketClosed, `220` - PersonTwoFactorRecoveryCodesRegenerated, `300` - DealCreated, `301` - DealUpdated, `304` - DealDeleted, `305` - DealDueDate, `306` - TaskCreated, `307` - TaskUpdated, `400` - PlanCreated, `401` - PlanUpdated, `402` - AddOnCreated, `403` - AddOnUpdated, `500` - DiscordUserLinked, `501` - DiscordUserAddedToServer, `502` - DiscordUserRolesUpdated, `503` - DiscordUserRemovedFromServer
3613
+ * `10` - Custom, `50` - Note, `51` - Email, `52` - PhoneCall, `53` - Meeting, `54` - Chat, `100` - AccountCreated, `101` - AccountUpdated, `102` - AccountAddPerson, `103` - AccountStageUpdated, `104` - AccountDeleted, `105` - AccountBillingInformationUpdated, `106` - AccountSubscriptionPlanUpdated, `107` - AccountSubscriptionPaymentCollected, `108` - AccountSubscriptionPaymentDeclined, `109` - AccountBillingInformationRequested, `110` - AccountBillingInvoiceEmailSent, `111` - AccountRemovePerson, `112` - AccountPaidSubscriptionCreated, `113` - AccountBillingInformationRemoved, `114` - AccountPrimaryPersonUpdated, `115` - AccountBillingInvoiceCreated, `116` - AccountSubscriptionStarted, `117` - AccountSubscriptionRenewalExtended, `118` - AccountSubscriptionAddOnsChanged, `119` - AccountSubscriptionCancellationRequested, `120` - AccountBillingInvoiceDeleted, `121` - AccountPersonRoleUpdated, `122` - AccountProductsChanged, `200` - PersonCreated, `201` - PersonUpdated, `202` - PersonDeleted, `203` - PersonLogin, `204` - PersonListSubscribed, `205` - PersonListUnsubscribed, `206` - PersonSegmentAdded, `207` - PersonSegmentRemoved, `208` - PersonEmailOpened, `209` - PersonEmailClicked, `210` - PersonEmailBounce, `211` - PersonEmailSpam, `212` - PersonSupportTicketCreated, `213` - PersonSupportTicketUpdated, `214` - PersonLeadFormSubmitted, `215` - PersonListConfirmed, `216` - PersonEmailSubscribed, `217` - PersonEmailUnsubscribed, `218` - PersonTemporaryPasswordSet, `219` - PersonSupportTicketClosed, `220` - PersonTwoFactorRecoveryCodesRegenerated, `300` - DealCreated, `301` - DealUpdated, `304` - DealDeleted, `305` - DealDueDate, `306` - TaskCreated, `307` - TaskUpdated, `400` - PlanCreated, `401` - PlanUpdated, `402` - AddOnCreated, `403` - AddOnUpdated, `500` - DiscordUserLinked, `501` - DiscordUserAddedToServer, `502` - DiscordUserRolesUpdated, `503` - DiscordUserRemovedFromServer
3593
3614
  */
3594
3615
  export type ActivityType = typeof ActivityType[keyof typeof ActivityType];
3595
3616
 
@@ -3624,6 +3645,7 @@ export const ActivityType = {
3624
3645
  AccountSubscriptionCancellationRequested: 119,
3625
3646
  AccountBillingInvoiceDeleted: 120,
3626
3647
  AccountPersonRoleUpdated: 121,
3648
+ AccountProductsChanged: 122,
3627
3649
  PersonCreated: 200,
3628
3650
  PersonUpdated: 201,
3629
3651
  PersonDeleted: 202,
@@ -4446,6 +4468,7 @@ export type SegmentAllOf = {
4446
4468
  */
4447
4469
  Description?: string | null;
4448
4470
  ContainsAccountConditions: boolean;
4471
+ ContainsUnsupportedBillingConditions: boolean;
4449
4472
  /** @nullable */
4450
4473
  CriteriaData?: string | null;
4451
4474
  /** @nullable */
@@ -7642,6 +7665,19 @@ export type AccountPersonRoleUpdatedWebhookPayloadAllOf = {
7642
7665
 
7643
7666
  export type AccountPersonRoleUpdatedWebhookPayload = AccountWebhookEntity & AccountPersonRoleUpdatedWebhookPayloadAllOf;
7644
7667
 
7668
+ export interface AccountProductsChangedActivityData {
7669
+ /** @nullable */
7670
+ AddedProductUids?: string[] | null;
7671
+ /** @nullable */
7672
+ RemovedProductUids?: string[] | null;
7673
+ }
7674
+
7675
+ export type AccountProductsChangedWebhookPayloadAllOf = {
7676
+ ActivityEventData?: AccountProductsChangedActivityData;
7677
+ };
7678
+
7679
+ export type AccountProductsChangedWebhookPayload = AccountWebhookEntity & AccountProductsChangedWebhookPayloadAllOf;
7680
+
7645
7681
  /**
7646
7682
  * @nullable
7647
7683
  */