@outseta/react 0.4.16 → 0.4.17
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 +70 -56
- package/package.json +2 -2
- package/src/generated/activity/activity.ts +2 -2
- package/src/generated/attribute/attribute.ts +17 -10
- package/src/generated/billing/billing.ts +63 -44
- package/src/generated/crm/crm.ts +6 -3
- package/src/generated/email/email.ts +28 -21
- package/src/generated/outsetaAPI.schemas.ts +216 -0
- package/src/generated/support/support.ts +17 -13
|
@@ -16,13 +16,16 @@ import type {
|
|
|
16
16
|
import type {
|
|
17
17
|
DiscountCoupon,
|
|
18
18
|
DiscountCouponAddDiscountCouponBody,
|
|
19
|
+
DiscountCouponGetAllDiscountCoupons200,
|
|
19
20
|
DiscountCouponGetAllDiscountCouponsParams,
|
|
20
21
|
DiscountCouponGetDiscountCouponByCodeParams,
|
|
22
|
+
DiscountCouponGetDiscountCouponRedemptions200,
|
|
21
23
|
DiscountCouponGetDiscountCouponRedemptionsParams,
|
|
22
|
-
DiscountCouponSubscription,
|
|
23
24
|
DiscountCouponUpdateDiscountCouponBody,
|
|
24
25
|
Invoice,
|
|
25
26
|
InvoiceAddInvoiceBody,
|
|
27
|
+
InvoiceGetAllInvoices200,
|
|
28
|
+
InvoiceGetAllInvoicesParams,
|
|
26
29
|
InvoiceUpdateInvoiceBody,
|
|
27
30
|
PaymentInformation,
|
|
28
31
|
PaymentInformationSavePaymentInformationBody,
|
|
@@ -30,12 +33,17 @@ import type {
|
|
|
30
33
|
PlanAddPlanBody,
|
|
31
34
|
PlanFamily,
|
|
32
35
|
PlanFamilyAddPlanFamilyBody,
|
|
36
|
+
PlanFamilyGetAllPlanFamilies200,
|
|
37
|
+
PlanFamilyGetAllPlanFamiliesParams,
|
|
33
38
|
PlanFamilyUpdatePlanFamilyBody,
|
|
39
|
+
PlanGetAllPlans200,
|
|
40
|
+
PlanGetAllPlansParams,
|
|
34
41
|
PlanUpdatePlanBody,
|
|
35
42
|
Subscription,
|
|
36
43
|
SubscriptionAddOn,
|
|
37
44
|
SubscriptionAddOnAddSubscriptionAddOnBody,
|
|
38
45
|
SubscriptionAddOnAddSubscriptionAddOnPreviewBody,
|
|
46
|
+
SubscriptionAddOnGetAllSubscriptionsAddOns200,
|
|
39
47
|
SubscriptionAddOnGetAllSubscriptionsAddOnsParams,
|
|
40
48
|
SubscriptionAddOnSetAddOnUpgradeRequiredBody,
|
|
41
49
|
SubscriptionChangeSubscriptionBody,
|
|
@@ -45,10 +53,13 @@ import type {
|
|
|
45
53
|
SubscriptionFirstTimeSubscriptionBody,
|
|
46
54
|
SubscriptionFirstTimeSubscriptionPreviewBody,
|
|
47
55
|
SubscriptionFirstTimeSubscriptionPreviewParams,
|
|
56
|
+
SubscriptionGetAllSubscriptions200,
|
|
48
57
|
SubscriptionGetAllSubscriptionsParams,
|
|
49
58
|
SubscriptionSetSubscriptionUpgradeRequiredBody,
|
|
50
59
|
Transaction,
|
|
51
60
|
TransactionsAddPaymentTransactionBody,
|
|
61
|
+
TransactionsGetAllTransactionsByAccountId200,
|
|
62
|
+
TransactionsGetAllTransactionsByAccountIdParams,
|
|
52
63
|
Usage,
|
|
53
64
|
UsageAddUsageBody
|
|
54
65
|
} from '../outsetaAPI.schemas';
|
|
@@ -172,7 +183,7 @@ export const discountCouponGetAllDiscountCoupons = (
|
|
|
172
183
|
) => {
|
|
173
184
|
|
|
174
185
|
|
|
175
|
-
return customFetch<
|
|
186
|
+
return customFetch<DiscountCouponGetAllDiscountCoupons200>(
|
|
176
187
|
{url: `/api/v1/billing/discountcoupons`, method: 'GET',
|
|
177
188
|
params, signal
|
|
178
189
|
},
|
|
@@ -502,7 +513,7 @@ export const discountCouponGetDiscountCouponRedemptions = (
|
|
|
502
513
|
) => {
|
|
503
514
|
|
|
504
515
|
|
|
505
|
-
return customFetch<
|
|
516
|
+
return customFetch<DiscountCouponGetDiscountCouponRedemptions200>(
|
|
506
517
|
{url: `/api/v1/billing/discountcoupons/${discountCouponUid}/redemptions`, method: 'GET',
|
|
507
518
|
params, signal
|
|
508
519
|
},
|
|
@@ -636,12 +647,14 @@ BillingTransactionType: Invoice = 1, Payment = 2, Credit = 3, Refund = 4, Charge
|
|
|
636
647
|
*/
|
|
637
648
|
export const transactionsGetAllTransactionsByAccountId = (
|
|
638
649
|
accountUid: string | null,
|
|
650
|
+
params?: TransactionsGetAllTransactionsByAccountIdParams,
|
|
639
651
|
options?: SecondParameter<typeof customFetch>,signal?: AbortSignal
|
|
640
652
|
) => {
|
|
641
653
|
|
|
642
654
|
|
|
643
|
-
return customFetch<
|
|
644
|
-
{url: `/api/v1/billing/transactions/${accountUid}`, method: 'GET',
|
|
655
|
+
return customFetch<TransactionsGetAllTransactionsByAccountId200>(
|
|
656
|
+
{url: `/api/v1/billing/transactions/${accountUid}`, method: 'GET',
|
|
657
|
+
params, signal
|
|
645
658
|
},
|
|
646
659
|
options);
|
|
647
660
|
}
|
|
@@ -649,23 +662,25 @@ export const transactionsGetAllTransactionsByAccountId = (
|
|
|
649
662
|
|
|
650
663
|
|
|
651
664
|
|
|
652
|
-
export const getTransactionsGetAllTransactionsByAccountIdQueryKey = (accountUid?: string | null,
|
|
665
|
+
export const getTransactionsGetAllTransactionsByAccountIdQueryKey = (accountUid?: string | null,
|
|
666
|
+
params?: TransactionsGetAllTransactionsByAccountIdParams,) => {
|
|
653
667
|
return [
|
|
654
|
-
`/api/v1/billing/transactions/${accountUid}
|
|
668
|
+
`/api/v1/billing/transactions/${accountUid}`, ...(params ? [params]: [])
|
|
655
669
|
] as const;
|
|
656
670
|
}
|
|
657
671
|
|
|
658
672
|
|
|
659
|
-
export const getTransactionsGetAllTransactionsByAccountIdQueryOptions = <TData = Awaited<ReturnType<typeof transactionsGetAllTransactionsByAccountId>>, TError = void>(accountUid: string | null,
|
|
673
|
+
export const getTransactionsGetAllTransactionsByAccountIdQueryOptions = <TData = Awaited<ReturnType<typeof transactionsGetAllTransactionsByAccountId>>, TError = void>(accountUid: string | null,
|
|
674
|
+
params?: TransactionsGetAllTransactionsByAccountIdParams, options?: { query?:UseQueryOptions<Awaited<ReturnType<typeof transactionsGetAllTransactionsByAccountId>>, TError, TData>, request?: SecondParameter<typeof customFetch>}
|
|
660
675
|
) => {
|
|
661
676
|
|
|
662
677
|
const {query: queryOptions, request: requestOptions} = options ?? {};
|
|
663
678
|
|
|
664
|
-
const queryKey = queryOptions?.queryKey ?? getTransactionsGetAllTransactionsByAccountIdQueryKey(accountUid);
|
|
679
|
+
const queryKey = queryOptions?.queryKey ?? getTransactionsGetAllTransactionsByAccountIdQueryKey(accountUid,params);
|
|
665
680
|
|
|
666
681
|
|
|
667
682
|
|
|
668
|
-
const queryFn: QueryFunction<Awaited<ReturnType<typeof transactionsGetAllTransactionsByAccountId>>> = ({ signal }) => transactionsGetAllTransactionsByAccountId(accountUid, requestOptions, signal);
|
|
683
|
+
const queryFn: QueryFunction<Awaited<ReturnType<typeof transactionsGetAllTransactionsByAccountId>>> = ({ signal }) => transactionsGetAllTransactionsByAccountId(accountUid,params, requestOptions, signal);
|
|
669
684
|
|
|
670
685
|
|
|
671
686
|
|
|
@@ -683,11 +698,12 @@ export type TransactionsGetAllTransactionsByAccountIdQueryError = void
|
|
|
683
698
|
*/
|
|
684
699
|
|
|
685
700
|
export function useTransactionsGetAllTransactionsByAccountId<TData = Awaited<ReturnType<typeof transactionsGetAllTransactionsByAccountId>>, TError = void>(
|
|
686
|
-
accountUid: string | null,
|
|
701
|
+
accountUid: string | null,
|
|
702
|
+
params?: TransactionsGetAllTransactionsByAccountIdParams, options?: { query?:UseQueryOptions<Awaited<ReturnType<typeof transactionsGetAllTransactionsByAccountId>>, TError, TData>, request?: SecondParameter<typeof customFetch>}
|
|
687
703
|
|
|
688
704
|
): UseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
689
705
|
|
|
690
|
-
const queryOptions = getTransactionsGetAllTransactionsByAccountIdQueryOptions(accountUid,options)
|
|
706
|
+
const queryOptions = getTransactionsGetAllTransactionsByAccountIdQueryOptions(accountUid,params,options)
|
|
691
707
|
|
|
692
708
|
const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };
|
|
693
709
|
|
|
@@ -838,7 +854,7 @@ export const subscriptionAddOnGetAllSubscriptionsAddOns = (
|
|
|
838
854
|
) => {
|
|
839
855
|
|
|
840
856
|
|
|
841
|
-
return customFetch<
|
|
857
|
+
return customFetch<SubscriptionAddOnGetAllSubscriptionsAddOns200>(
|
|
842
858
|
{url: `/api/v1/billing/subscriptionaddons`, method: 'GET',
|
|
843
859
|
params, signal
|
|
844
860
|
},
|
|
@@ -1295,13 +1311,14 @@ Pass excludeInvoiceUid as a query parameter to omit a specific invoice from the
|
|
|
1295
1311
|
* @summary Retrieve all invoices.
|
|
1296
1312
|
*/
|
|
1297
1313
|
export const invoiceGetAllInvoices = (
|
|
1298
|
-
|
|
1314
|
+
params?: InvoiceGetAllInvoicesParams,
|
|
1299
1315
|
options?: SecondParameter<typeof customFetch>,signal?: AbortSignal
|
|
1300
1316
|
) => {
|
|
1301
1317
|
|
|
1302
1318
|
|
|
1303
|
-
return customFetch<
|
|
1304
|
-
{url: `/api/v1/billing/invoices`, method: 'GET',
|
|
1319
|
+
return customFetch<InvoiceGetAllInvoices200>(
|
|
1320
|
+
{url: `/api/v1/billing/invoices`, method: 'GET',
|
|
1321
|
+
params, signal
|
|
1305
1322
|
},
|
|
1306
1323
|
options);
|
|
1307
1324
|
}
|
|
@@ -1309,23 +1326,23 @@ export const invoiceGetAllInvoices = (
|
|
|
1309
1326
|
|
|
1310
1327
|
|
|
1311
1328
|
|
|
1312
|
-
export const getInvoiceGetAllInvoicesQueryKey = () => {
|
|
1329
|
+
export const getInvoiceGetAllInvoicesQueryKey = (params?: InvoiceGetAllInvoicesParams,) => {
|
|
1313
1330
|
return [
|
|
1314
|
-
`/api/v1/billing/invoices
|
|
1331
|
+
`/api/v1/billing/invoices`, ...(params ? [params]: [])
|
|
1315
1332
|
] as const;
|
|
1316
1333
|
}
|
|
1317
1334
|
|
|
1318
1335
|
|
|
1319
|
-
export const getInvoiceGetAllInvoicesQueryOptions = <TData = Awaited<ReturnType<typeof invoiceGetAllInvoices>>, TError = void>( options?: { query?:UseQueryOptions<Awaited<ReturnType<typeof invoiceGetAllInvoices>>, TError, TData>, request?: SecondParameter<typeof customFetch>}
|
|
1336
|
+
export const getInvoiceGetAllInvoicesQueryOptions = <TData = Awaited<ReturnType<typeof invoiceGetAllInvoices>>, TError = void>(params?: InvoiceGetAllInvoicesParams, options?: { query?:UseQueryOptions<Awaited<ReturnType<typeof invoiceGetAllInvoices>>, TError, TData>, request?: SecondParameter<typeof customFetch>}
|
|
1320
1337
|
) => {
|
|
1321
1338
|
|
|
1322
1339
|
const {query: queryOptions, request: requestOptions} = options ?? {};
|
|
1323
1340
|
|
|
1324
|
-
const queryKey = queryOptions?.queryKey ?? getInvoiceGetAllInvoicesQueryKey();
|
|
1341
|
+
const queryKey = queryOptions?.queryKey ?? getInvoiceGetAllInvoicesQueryKey(params);
|
|
1325
1342
|
|
|
1326
1343
|
|
|
1327
1344
|
|
|
1328
|
-
const queryFn: QueryFunction<Awaited<ReturnType<typeof invoiceGetAllInvoices>>> = ({ signal }) => invoiceGetAllInvoices(requestOptions, signal);
|
|
1345
|
+
const queryFn: QueryFunction<Awaited<ReturnType<typeof invoiceGetAllInvoices>>> = ({ signal }) => invoiceGetAllInvoices(params, requestOptions, signal);
|
|
1329
1346
|
|
|
1330
1347
|
|
|
1331
1348
|
|
|
@@ -1343,11 +1360,11 @@ export type InvoiceGetAllInvoicesQueryError = void
|
|
|
1343
1360
|
*/
|
|
1344
1361
|
|
|
1345
1362
|
export function useInvoiceGetAllInvoices<TData = Awaited<ReturnType<typeof invoiceGetAllInvoices>>, TError = void>(
|
|
1346
|
-
|
|
1363
|
+
params?: InvoiceGetAllInvoicesParams, options?: { query?:UseQueryOptions<Awaited<ReturnType<typeof invoiceGetAllInvoices>>, TError, TData>, request?: SecondParameter<typeof customFetch>}
|
|
1347
1364
|
|
|
1348
1365
|
): UseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
1349
1366
|
|
|
1350
|
-
const queryOptions = getInvoiceGetAllInvoicesQueryOptions(options)
|
|
1367
|
+
const queryOptions = getInvoiceGetAllInvoicesQueryOptions(params,options)
|
|
1351
1368
|
|
|
1352
1369
|
const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };
|
|
1353
1370
|
|
|
@@ -1835,7 +1852,7 @@ export const subscriptionGetAllSubscriptions = (
|
|
|
1835
1852
|
) => {
|
|
1836
1853
|
|
|
1837
1854
|
|
|
1838
|
-
return customFetch<
|
|
1855
|
+
return customFetch<SubscriptionGetAllSubscriptions200>(
|
|
1839
1856
|
{url: `/api/v1/billing/subscriptions`, method: 'GET',
|
|
1840
1857
|
params, signal
|
|
1841
1858
|
},
|
|
@@ -2494,13 +2511,14 @@ export const useSubscriptionChangeSubscription = <TError = void,
|
|
|
2494
2511
|
* @summary Retrieve all plans.
|
|
2495
2512
|
*/
|
|
2496
2513
|
export const planGetAllPlans = (
|
|
2497
|
-
|
|
2514
|
+
params?: PlanGetAllPlansParams,
|
|
2498
2515
|
options?: SecondParameter<typeof customFetch>,signal?: AbortSignal
|
|
2499
2516
|
) => {
|
|
2500
2517
|
|
|
2501
2518
|
|
|
2502
|
-
return customFetch<
|
|
2503
|
-
{url: `/api/v1/billing/plans`, method: 'GET',
|
|
2519
|
+
return customFetch<PlanGetAllPlans200>(
|
|
2520
|
+
{url: `/api/v1/billing/plans`, method: 'GET',
|
|
2521
|
+
params, signal
|
|
2504
2522
|
},
|
|
2505
2523
|
options);
|
|
2506
2524
|
}
|
|
@@ -2508,23 +2526,23 @@ export const planGetAllPlans = (
|
|
|
2508
2526
|
|
|
2509
2527
|
|
|
2510
2528
|
|
|
2511
|
-
export const getPlanGetAllPlansQueryKey = () => {
|
|
2529
|
+
export const getPlanGetAllPlansQueryKey = (params?: PlanGetAllPlansParams,) => {
|
|
2512
2530
|
return [
|
|
2513
|
-
`/api/v1/billing/plans
|
|
2531
|
+
`/api/v1/billing/plans`, ...(params ? [params]: [])
|
|
2514
2532
|
] as const;
|
|
2515
2533
|
}
|
|
2516
2534
|
|
|
2517
2535
|
|
|
2518
|
-
export const getPlanGetAllPlansQueryOptions = <TData = Awaited<ReturnType<typeof planGetAllPlans>>, TError = unknown>( options?: { query?:UseQueryOptions<Awaited<ReturnType<typeof planGetAllPlans>>, TError, TData>, request?: SecondParameter<typeof customFetch>}
|
|
2536
|
+
export const getPlanGetAllPlansQueryOptions = <TData = Awaited<ReturnType<typeof planGetAllPlans>>, TError = unknown>(params?: PlanGetAllPlansParams, options?: { query?:UseQueryOptions<Awaited<ReturnType<typeof planGetAllPlans>>, TError, TData>, request?: SecondParameter<typeof customFetch>}
|
|
2519
2537
|
) => {
|
|
2520
2538
|
|
|
2521
2539
|
const {query: queryOptions, request: requestOptions} = options ?? {};
|
|
2522
2540
|
|
|
2523
|
-
const queryKey = queryOptions?.queryKey ?? getPlanGetAllPlansQueryKey();
|
|
2541
|
+
const queryKey = queryOptions?.queryKey ?? getPlanGetAllPlansQueryKey(params);
|
|
2524
2542
|
|
|
2525
2543
|
|
|
2526
2544
|
|
|
2527
|
-
const queryFn: QueryFunction<Awaited<ReturnType<typeof planGetAllPlans>>> = ({ signal }) => planGetAllPlans(requestOptions, signal);
|
|
2545
|
+
const queryFn: QueryFunction<Awaited<ReturnType<typeof planGetAllPlans>>> = ({ signal }) => planGetAllPlans(params, requestOptions, signal);
|
|
2528
2546
|
|
|
2529
2547
|
|
|
2530
2548
|
|
|
@@ -2542,11 +2560,11 @@ export type PlanGetAllPlansQueryError = unknown
|
|
|
2542
2560
|
*/
|
|
2543
2561
|
|
|
2544
2562
|
export function usePlanGetAllPlans<TData = Awaited<ReturnType<typeof planGetAllPlans>>, TError = unknown>(
|
|
2545
|
-
|
|
2563
|
+
params?: PlanGetAllPlansParams, options?: { query?:UseQueryOptions<Awaited<ReturnType<typeof planGetAllPlans>>, TError, TData>, request?: SecondParameter<typeof customFetch>}
|
|
2546
2564
|
|
|
2547
2565
|
): UseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
2548
2566
|
|
|
2549
|
-
const queryOptions = getPlanGetAllPlansQueryOptions(options)
|
|
2567
|
+
const queryOptions = getPlanGetAllPlansQueryOptions(params,options)
|
|
2550
2568
|
|
|
2551
2569
|
const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };
|
|
2552
2570
|
|
|
@@ -2820,13 +2838,14 @@ export const usePlanDeletePlan = <TError = void,
|
|
|
2820
2838
|
* @summary Retrieve all plan families.
|
|
2821
2839
|
*/
|
|
2822
2840
|
export const planFamilyGetAllPlanFamilies = (
|
|
2823
|
-
|
|
2841
|
+
params?: PlanFamilyGetAllPlanFamiliesParams,
|
|
2824
2842
|
options?: SecondParameter<typeof customFetch>,signal?: AbortSignal
|
|
2825
2843
|
) => {
|
|
2826
2844
|
|
|
2827
2845
|
|
|
2828
|
-
return customFetch<
|
|
2829
|
-
{url: `/api/v1/billing/planfamilies`, method: 'GET',
|
|
2846
|
+
return customFetch<PlanFamilyGetAllPlanFamilies200>(
|
|
2847
|
+
{url: `/api/v1/billing/planfamilies`, method: 'GET',
|
|
2848
|
+
params, signal
|
|
2830
2849
|
},
|
|
2831
2850
|
options);
|
|
2832
2851
|
}
|
|
@@ -2834,23 +2853,23 @@ export const planFamilyGetAllPlanFamilies = (
|
|
|
2834
2853
|
|
|
2835
2854
|
|
|
2836
2855
|
|
|
2837
|
-
export const getPlanFamilyGetAllPlanFamiliesQueryKey = () => {
|
|
2856
|
+
export const getPlanFamilyGetAllPlanFamiliesQueryKey = (params?: PlanFamilyGetAllPlanFamiliesParams,) => {
|
|
2838
2857
|
return [
|
|
2839
|
-
`/api/v1/billing/planfamilies
|
|
2858
|
+
`/api/v1/billing/planfamilies`, ...(params ? [params]: [])
|
|
2840
2859
|
] as const;
|
|
2841
2860
|
}
|
|
2842
2861
|
|
|
2843
2862
|
|
|
2844
|
-
export const getPlanFamilyGetAllPlanFamiliesQueryOptions = <TData = Awaited<ReturnType<typeof planFamilyGetAllPlanFamilies>>, TError = unknown>( options?: { query?:UseQueryOptions<Awaited<ReturnType<typeof planFamilyGetAllPlanFamilies>>, TError, TData>, request?: SecondParameter<typeof customFetch>}
|
|
2863
|
+
export const getPlanFamilyGetAllPlanFamiliesQueryOptions = <TData = Awaited<ReturnType<typeof planFamilyGetAllPlanFamilies>>, TError = unknown>(params?: PlanFamilyGetAllPlanFamiliesParams, options?: { query?:UseQueryOptions<Awaited<ReturnType<typeof planFamilyGetAllPlanFamilies>>, TError, TData>, request?: SecondParameter<typeof customFetch>}
|
|
2845
2864
|
) => {
|
|
2846
2865
|
|
|
2847
2866
|
const {query: queryOptions, request: requestOptions} = options ?? {};
|
|
2848
2867
|
|
|
2849
|
-
const queryKey = queryOptions?.queryKey ?? getPlanFamilyGetAllPlanFamiliesQueryKey();
|
|
2868
|
+
const queryKey = queryOptions?.queryKey ?? getPlanFamilyGetAllPlanFamiliesQueryKey(params);
|
|
2850
2869
|
|
|
2851
2870
|
|
|
2852
2871
|
|
|
2853
|
-
const queryFn: QueryFunction<Awaited<ReturnType<typeof planFamilyGetAllPlanFamilies>>> = ({ signal }) => planFamilyGetAllPlanFamilies(requestOptions, signal);
|
|
2872
|
+
const queryFn: QueryFunction<Awaited<ReturnType<typeof planFamilyGetAllPlanFamilies>>> = ({ signal }) => planFamilyGetAllPlanFamilies(params, requestOptions, signal);
|
|
2854
2873
|
|
|
2855
2874
|
|
|
2856
2875
|
|
|
@@ -2868,11 +2887,11 @@ export type PlanFamilyGetAllPlanFamiliesQueryError = unknown
|
|
|
2868
2887
|
*/
|
|
2869
2888
|
|
|
2870
2889
|
export function usePlanFamilyGetAllPlanFamilies<TData = Awaited<ReturnType<typeof planFamilyGetAllPlanFamilies>>, TError = unknown>(
|
|
2871
|
-
|
|
2890
|
+
params?: PlanFamilyGetAllPlanFamiliesParams, options?: { query?:UseQueryOptions<Awaited<ReturnType<typeof planFamilyGetAllPlanFamilies>>, TError, TData>, request?: SecondParameter<typeof customFetch>}
|
|
2872
2891
|
|
|
2873
2892
|
): UseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
2874
2893
|
|
|
2875
|
-
const queryOptions = getPlanFamilyGetAllPlanFamiliesQueryOptions(options)
|
|
2894
|
+
const queryOptions = getPlanFamilyGetAllPlanFamiliesQueryOptions(params,options)
|
|
2876
2895
|
|
|
2877
2896
|
const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };
|
|
2878
2897
|
|
package/src/generated/crm/crm.ts
CHANGED
|
@@ -20,17 +20,20 @@ import type {
|
|
|
20
20
|
AccountAddPersonToAccountBody,
|
|
21
21
|
AccountCancelAccountBody,
|
|
22
22
|
AccountExtendTrialBody,
|
|
23
|
+
AccountGetAllAccounts200,
|
|
23
24
|
AccountGetAllAccountsParams,
|
|
24
25
|
AccountUpdateAccountBody,
|
|
25
26
|
AccountUpdateMembershipBody,
|
|
26
27
|
Deal,
|
|
27
28
|
DealAddDealBody,
|
|
29
|
+
DealGetAllDeals200,
|
|
28
30
|
DealGetAllDealsParams,
|
|
29
31
|
DealUpdateDealBody,
|
|
30
32
|
Person,
|
|
31
33
|
PersonAccount,
|
|
32
34
|
PersonAddPersonBody,
|
|
33
35
|
PersonForgotPasswordBody,
|
|
36
|
+
PersonGetAllPeople200,
|
|
34
37
|
PersonGetAllPeopleParams,
|
|
35
38
|
PersonSetTemporaryPasswordBody,
|
|
36
39
|
PersonUpdatePersonBody
|
|
@@ -80,7 +83,7 @@ export const dealGetAllDeals = (
|
|
|
80
83
|
) => {
|
|
81
84
|
|
|
82
85
|
|
|
83
|
-
return customFetch<
|
|
86
|
+
return customFetch<DealGetAllDeals200>(
|
|
84
87
|
{url: `/api/v1/crm/deals`, method: 'GET',
|
|
85
88
|
params, signal
|
|
86
89
|
},
|
|
@@ -478,7 +481,7 @@ export const accountGetAllAccounts = (
|
|
|
478
481
|
) => {
|
|
479
482
|
|
|
480
483
|
|
|
481
|
-
return customFetch<
|
|
484
|
+
return customFetch<AccountGetAllAccounts200>(
|
|
482
485
|
{url: `/api/v1/crm/accounts`, method: 'GET',
|
|
483
486
|
params, signal
|
|
484
487
|
},
|
|
@@ -1272,7 +1275,7 @@ export const personGetAllPeople = (
|
|
|
1272
1275
|
) => {
|
|
1273
1276
|
|
|
1274
1277
|
|
|
1275
|
-
return customFetch<
|
|
1278
|
+
return customFetch<PersonGetAllPeople200>(
|
|
1276
1279
|
{url: `/api/v1/crm/people`, method: 'GET',
|
|
1277
1280
|
params, signal
|
|
1278
1281
|
},
|
|
@@ -16,16 +16,21 @@ import type {
|
|
|
16
16
|
import type {
|
|
17
17
|
BroadcastCampaign,
|
|
18
18
|
CampaignAddBroadcastEmailBody,
|
|
19
|
+
CampaignGetAllBroadcastEmails200,
|
|
20
|
+
CampaignGetAllBroadcastEmailsParams,
|
|
19
21
|
CampaignSendTestCampaignEmailBody,
|
|
20
22
|
CampaignUpdateBroadcastEmailBody,
|
|
21
23
|
DripCampaign,
|
|
22
24
|
DripCampaignAddDripCampaignBody,
|
|
23
25
|
DripCampaignAddDripCampaignMessageBody,
|
|
26
|
+
DripCampaignGetAllDripCampaigns200,
|
|
27
|
+
DripCampaignGetAllDripCampaignsParams,
|
|
24
28
|
DripCampaignMessage,
|
|
25
29
|
DripCampaignSendTestCampaignEmailBody,
|
|
26
30
|
DripCampaignUpdateDripCampaignBody,
|
|
27
31
|
DripCampaignUpdateDripCampaignMessageBody,
|
|
28
32
|
EmailListAddSubscriptionBody,
|
|
33
|
+
EmailListGetAllSubscriptions200,
|
|
29
34
|
EmailListGetAllSubscriptionsParams,
|
|
30
35
|
EmailListPerson
|
|
31
36
|
} from '../outsetaAPI.schemas';
|
|
@@ -68,13 +73,14 @@ type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
|
68
73
|
* @summary Retrieve all drip campaigns.
|
|
69
74
|
*/
|
|
70
75
|
export const dripCampaignGetAllDripCampaigns = (
|
|
71
|
-
|
|
76
|
+
params?: DripCampaignGetAllDripCampaignsParams,
|
|
72
77
|
options?: SecondParameter<typeof customFetch>,signal?: AbortSignal
|
|
73
78
|
) => {
|
|
74
79
|
|
|
75
80
|
|
|
76
|
-
return customFetch<
|
|
77
|
-
{url: `/api/v1/email/campaigns/drips`, method: 'GET',
|
|
81
|
+
return customFetch<DripCampaignGetAllDripCampaigns200>(
|
|
82
|
+
{url: `/api/v1/email/campaigns/drips`, method: 'GET',
|
|
83
|
+
params, signal
|
|
78
84
|
},
|
|
79
85
|
options);
|
|
80
86
|
}
|
|
@@ -82,23 +88,23 @@ export const dripCampaignGetAllDripCampaigns = (
|
|
|
82
88
|
|
|
83
89
|
|
|
84
90
|
|
|
85
|
-
export const getDripCampaignGetAllDripCampaignsQueryKey = () => {
|
|
91
|
+
export const getDripCampaignGetAllDripCampaignsQueryKey = (params?: DripCampaignGetAllDripCampaignsParams,) => {
|
|
86
92
|
return [
|
|
87
|
-
`/api/v1/email/campaigns/drips
|
|
93
|
+
`/api/v1/email/campaigns/drips`, ...(params ? [params]: [])
|
|
88
94
|
] as const;
|
|
89
95
|
}
|
|
90
96
|
|
|
91
97
|
|
|
92
|
-
export const getDripCampaignGetAllDripCampaignsQueryOptions = <TData = Awaited<ReturnType<typeof dripCampaignGetAllDripCampaigns>>, TError = void>( options?: { query?:UseQueryOptions<Awaited<ReturnType<typeof dripCampaignGetAllDripCampaigns>>, TError, TData>, request?: SecondParameter<typeof customFetch>}
|
|
98
|
+
export const getDripCampaignGetAllDripCampaignsQueryOptions = <TData = Awaited<ReturnType<typeof dripCampaignGetAllDripCampaigns>>, TError = void>(params?: DripCampaignGetAllDripCampaignsParams, options?: { query?:UseQueryOptions<Awaited<ReturnType<typeof dripCampaignGetAllDripCampaigns>>, TError, TData>, request?: SecondParameter<typeof customFetch>}
|
|
93
99
|
) => {
|
|
94
100
|
|
|
95
101
|
const {query: queryOptions, request: requestOptions} = options ?? {};
|
|
96
102
|
|
|
97
|
-
const queryKey = queryOptions?.queryKey ?? getDripCampaignGetAllDripCampaignsQueryKey();
|
|
103
|
+
const queryKey = queryOptions?.queryKey ?? getDripCampaignGetAllDripCampaignsQueryKey(params);
|
|
98
104
|
|
|
99
105
|
|
|
100
106
|
|
|
101
|
-
const queryFn: QueryFunction<Awaited<ReturnType<typeof dripCampaignGetAllDripCampaigns>>> = ({ signal }) => dripCampaignGetAllDripCampaigns(requestOptions, signal);
|
|
107
|
+
const queryFn: QueryFunction<Awaited<ReturnType<typeof dripCampaignGetAllDripCampaigns>>> = ({ signal }) => dripCampaignGetAllDripCampaigns(params, requestOptions, signal);
|
|
102
108
|
|
|
103
109
|
|
|
104
110
|
|
|
@@ -116,11 +122,11 @@ export type DripCampaignGetAllDripCampaignsQueryError = void
|
|
|
116
122
|
*/
|
|
117
123
|
|
|
118
124
|
export function useDripCampaignGetAllDripCampaigns<TData = Awaited<ReturnType<typeof dripCampaignGetAllDripCampaigns>>, TError = void>(
|
|
119
|
-
|
|
125
|
+
params?: DripCampaignGetAllDripCampaignsParams, options?: { query?:UseQueryOptions<Awaited<ReturnType<typeof dripCampaignGetAllDripCampaigns>>, TError, TData>, request?: SecondParameter<typeof customFetch>}
|
|
120
126
|
|
|
121
127
|
): UseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
122
128
|
|
|
123
|
-
const queryOptions = getDripCampaignGetAllDripCampaignsQueryOptions(options)
|
|
129
|
+
const queryOptions = getDripCampaignGetAllDripCampaignsQueryOptions(params,options)
|
|
124
130
|
|
|
125
131
|
const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };
|
|
126
132
|
|
|
@@ -743,13 +749,14 @@ export const useDripCampaignSendTestCampaignEmail = <TError = void,
|
|
|
743
749
|
* @summary Retrieve all broadcasts.
|
|
744
750
|
*/
|
|
745
751
|
export const campaignGetAllBroadcastEmails = (
|
|
746
|
-
|
|
752
|
+
params?: CampaignGetAllBroadcastEmailsParams,
|
|
747
753
|
options?: SecondParameter<typeof customFetch>,signal?: AbortSignal
|
|
748
754
|
) => {
|
|
749
755
|
|
|
750
756
|
|
|
751
|
-
return customFetch<
|
|
752
|
-
{url: `/api/v1/email/campaigns/broadcasts`, method: 'GET',
|
|
757
|
+
return customFetch<CampaignGetAllBroadcastEmails200>(
|
|
758
|
+
{url: `/api/v1/email/campaigns/broadcasts`, method: 'GET',
|
|
759
|
+
params, signal
|
|
753
760
|
},
|
|
754
761
|
options);
|
|
755
762
|
}
|
|
@@ -757,23 +764,23 @@ export const campaignGetAllBroadcastEmails = (
|
|
|
757
764
|
|
|
758
765
|
|
|
759
766
|
|
|
760
|
-
export const getCampaignGetAllBroadcastEmailsQueryKey = () => {
|
|
767
|
+
export const getCampaignGetAllBroadcastEmailsQueryKey = (params?: CampaignGetAllBroadcastEmailsParams,) => {
|
|
761
768
|
return [
|
|
762
|
-
`/api/v1/email/campaigns/broadcasts
|
|
769
|
+
`/api/v1/email/campaigns/broadcasts`, ...(params ? [params]: [])
|
|
763
770
|
] as const;
|
|
764
771
|
}
|
|
765
772
|
|
|
766
773
|
|
|
767
|
-
export const getCampaignGetAllBroadcastEmailsQueryOptions = <TData = Awaited<ReturnType<typeof campaignGetAllBroadcastEmails>>, TError = void>( options?: { query?:UseQueryOptions<Awaited<ReturnType<typeof campaignGetAllBroadcastEmails>>, TError, TData>, request?: SecondParameter<typeof customFetch>}
|
|
774
|
+
export const getCampaignGetAllBroadcastEmailsQueryOptions = <TData = Awaited<ReturnType<typeof campaignGetAllBroadcastEmails>>, TError = void>(params?: CampaignGetAllBroadcastEmailsParams, options?: { query?:UseQueryOptions<Awaited<ReturnType<typeof campaignGetAllBroadcastEmails>>, TError, TData>, request?: SecondParameter<typeof customFetch>}
|
|
768
775
|
) => {
|
|
769
776
|
|
|
770
777
|
const {query: queryOptions, request: requestOptions} = options ?? {};
|
|
771
778
|
|
|
772
|
-
const queryKey = queryOptions?.queryKey ?? getCampaignGetAllBroadcastEmailsQueryKey();
|
|
779
|
+
const queryKey = queryOptions?.queryKey ?? getCampaignGetAllBroadcastEmailsQueryKey(params);
|
|
773
780
|
|
|
774
781
|
|
|
775
782
|
|
|
776
|
-
const queryFn: QueryFunction<Awaited<ReturnType<typeof campaignGetAllBroadcastEmails>>> = ({ signal }) => campaignGetAllBroadcastEmails(requestOptions, signal);
|
|
783
|
+
const queryFn: QueryFunction<Awaited<ReturnType<typeof campaignGetAllBroadcastEmails>>> = ({ signal }) => campaignGetAllBroadcastEmails(params, requestOptions, signal);
|
|
777
784
|
|
|
778
785
|
|
|
779
786
|
|
|
@@ -791,11 +798,11 @@ export type CampaignGetAllBroadcastEmailsQueryError = void
|
|
|
791
798
|
*/
|
|
792
799
|
|
|
793
800
|
export function useCampaignGetAllBroadcastEmails<TData = Awaited<ReturnType<typeof campaignGetAllBroadcastEmails>>, TError = void>(
|
|
794
|
-
|
|
801
|
+
params?: CampaignGetAllBroadcastEmailsParams, options?: { query?:UseQueryOptions<Awaited<ReturnType<typeof campaignGetAllBroadcastEmails>>, TError, TData>, request?: SecondParameter<typeof customFetch>}
|
|
795
802
|
|
|
796
803
|
): UseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
797
804
|
|
|
798
|
-
const queryOptions = getCampaignGetAllBroadcastEmailsQueryOptions(options)
|
|
805
|
+
const queryOptions = getCampaignGetAllBroadcastEmailsQueryOptions(params,options)
|
|
799
806
|
|
|
800
807
|
const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };
|
|
801
808
|
|
|
@@ -1321,7 +1328,7 @@ export const emailListGetAllSubscriptions = (
|
|
|
1321
1328
|
) => {
|
|
1322
1329
|
|
|
1323
1330
|
|
|
1324
|
-
return customFetch<
|
|
1331
|
+
return customFetch<EmailListGetAllSubscriptions200>(
|
|
1325
1332
|
{url: `/api/v1/email/lists/${emailListUid}/subscriptions`, method: 'GET',
|
|
1326
1333
|
params, signal
|
|
1327
1334
|
},
|