@outseta/react 0.3.1 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +6 -3
- package/package.json +2 -2
- package/src/generated/activity/activity.ts +34 -7
- package/src/generated/billing/billing.ts +111 -84
- package/src/generated/crm/crm.ts +109 -80
- package/src/generated/email/email.ts +48 -21
- package/src/generated/outsetaAPI.schemas.ts +32 -2
- package/src/generated/public/public.ts +77 -3
- package/src/generated/support/support.ts +34 -7
package/src/generated/crm/crm.ts
CHANGED
|
@@ -38,6 +38,33 @@ import type {
|
|
|
38
38
|
|
|
39
39
|
import { customFetch } from '../../mutator';
|
|
40
40
|
|
|
41
|
+
// https://stackoverflow.com/questions/49579094/typescript-conditional-types-filter-out-readonly-properties-pick-only-requir/49579497#49579497
|
|
42
|
+
type IfEquals<X, Y, A = X, B = never> = (<T>() => T extends X ? 1 : 2) extends <
|
|
43
|
+
T,
|
|
44
|
+
>() => T extends Y ? 1 : 2
|
|
45
|
+
? A
|
|
46
|
+
: B;
|
|
47
|
+
|
|
48
|
+
type WritableKeys<T> = {
|
|
49
|
+
[P in keyof T]-?: IfEquals<
|
|
50
|
+
{ [Q in P]: T[P] },
|
|
51
|
+
{ -readonly [Q in P]: T[P] },
|
|
52
|
+
P
|
|
53
|
+
>;
|
|
54
|
+
}[keyof T];
|
|
55
|
+
|
|
56
|
+
type UnionToIntersection<U> =
|
|
57
|
+
(U extends any ? (k: U)=>void : never) extends ((k: infer I)=>void) ? I : never;
|
|
58
|
+
type DistributeReadOnlyOverUnions<T> = T extends any ? NonReadonly<T> : never;
|
|
59
|
+
|
|
60
|
+
type Writable<T> = Pick<T, WritableKeys<T>>;
|
|
61
|
+
type NonReadonly<T> = [T] extends [UnionToIntersection<T>] ? {
|
|
62
|
+
[P in keyof Writable<T>]: T[P] extends object
|
|
63
|
+
? NonReadonly<NonNullable<T[P]>>
|
|
64
|
+
: T[P];
|
|
65
|
+
} : DistributeReadOnlyOverUnions<T>;
|
|
66
|
+
|
|
67
|
+
|
|
41
68
|
|
|
42
69
|
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
43
70
|
|
|
@@ -116,7 +143,7 @@ export function useDealGetAllDeals<TData = Awaited<ReturnType<typeof dealGetAllD
|
|
|
116
143
|
* @summary Add a new deal.
|
|
117
144
|
*/
|
|
118
145
|
export const dealAddDeal = (
|
|
119
|
-
dealAddDealBody: DealAddDealBody
|
|
146
|
+
dealAddDealBody: NonReadonly<DealAddDealBody>,
|
|
120
147
|
options?: SecondParameter<typeof customFetch>,signal?: AbortSignal
|
|
121
148
|
) => {
|
|
122
149
|
|
|
@@ -132,8 +159,8 @@ export const dealAddDeal = (
|
|
|
132
159
|
|
|
133
160
|
|
|
134
161
|
export const getDealAddDealMutationOptions = <TError = void,
|
|
135
|
-
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof dealAddDeal>>, TError,{data: DealAddDealBody}, TContext>, request?: SecondParameter<typeof customFetch>}
|
|
136
|
-
): UseMutationOptions<Awaited<ReturnType<typeof dealAddDeal>>, TError,{data: DealAddDealBody}, TContext> => {
|
|
162
|
+
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof dealAddDeal>>, TError,{data: NonReadonly<DealAddDealBody>}, TContext>, request?: SecondParameter<typeof customFetch>}
|
|
163
|
+
): UseMutationOptions<Awaited<ReturnType<typeof dealAddDeal>>, TError,{data: NonReadonly<DealAddDealBody>}, TContext> => {
|
|
137
164
|
|
|
138
165
|
const mutationKey = ['dealAddDeal'];
|
|
139
166
|
const {mutation: mutationOptions, request: requestOptions} = options ?
|
|
@@ -145,7 +172,7 @@ const {mutation: mutationOptions, request: requestOptions} = options ?
|
|
|
145
172
|
|
|
146
173
|
|
|
147
174
|
|
|
148
|
-
const mutationFn: MutationFunction<Awaited<ReturnType<typeof dealAddDeal>>, {data: DealAddDealBody}> = (props) => {
|
|
175
|
+
const mutationFn: MutationFunction<Awaited<ReturnType<typeof dealAddDeal>>, {data: NonReadonly<DealAddDealBody>}> = (props) => {
|
|
149
176
|
const {data} = props ?? {};
|
|
150
177
|
|
|
151
178
|
return dealAddDeal(data,requestOptions)
|
|
@@ -157,18 +184,18 @@ const {mutation: mutationOptions, request: requestOptions} = options ?
|
|
|
157
184
|
return { mutationFn, ...mutationOptions }}
|
|
158
185
|
|
|
159
186
|
export type DealAddDealMutationResult = NonNullable<Awaited<ReturnType<typeof dealAddDeal>>>
|
|
160
|
-
export type DealAddDealMutationBody = DealAddDealBody
|
|
187
|
+
export type DealAddDealMutationBody = NonReadonly<DealAddDealBody>
|
|
161
188
|
export type DealAddDealMutationError = void
|
|
162
189
|
|
|
163
190
|
/**
|
|
164
191
|
* @summary Add a new deal.
|
|
165
192
|
*/
|
|
166
193
|
export const useDealAddDeal = <TError = void,
|
|
167
|
-
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof dealAddDeal>>, TError,{data: DealAddDealBody}, TContext>, request?: SecondParameter<typeof customFetch>}
|
|
194
|
+
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof dealAddDeal>>, TError,{data: NonReadonly<DealAddDealBody>}, TContext>, request?: SecondParameter<typeof customFetch>}
|
|
168
195
|
): UseMutationResult<
|
|
169
196
|
Awaited<ReturnType<typeof dealAddDeal>>,
|
|
170
197
|
TError,
|
|
171
|
-
{data: DealAddDealBody},
|
|
198
|
+
{data: NonReadonly<DealAddDealBody>},
|
|
172
199
|
TContext
|
|
173
200
|
> => {
|
|
174
201
|
|
|
@@ -249,7 +276,7 @@ export function useDealGetDeal<TData = Awaited<ReturnType<typeof dealGetDeal>>,
|
|
|
249
276
|
*/
|
|
250
277
|
export const dealUpdateDeal = (
|
|
251
278
|
dealUid: string | null,
|
|
252
|
-
dealUpdateDealBody: DealUpdateDealBody
|
|
279
|
+
dealUpdateDealBody: NonReadonly<DealUpdateDealBody>,
|
|
253
280
|
options?: SecondParameter<typeof customFetch>,) => {
|
|
254
281
|
|
|
255
282
|
|
|
@@ -264,8 +291,8 @@ export const dealUpdateDeal = (
|
|
|
264
291
|
|
|
265
292
|
|
|
266
293
|
export const getDealUpdateDealMutationOptions = <TError = void,
|
|
267
|
-
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof dealUpdateDeal>>, TError,{dealUid: string | null;data: DealUpdateDealBody}, TContext>, request?: SecondParameter<typeof customFetch>}
|
|
268
|
-
): UseMutationOptions<Awaited<ReturnType<typeof dealUpdateDeal>>, TError,{dealUid: string | null;data: DealUpdateDealBody}, TContext> => {
|
|
294
|
+
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof dealUpdateDeal>>, TError,{dealUid: string | null;data: NonReadonly<DealUpdateDealBody>}, TContext>, request?: SecondParameter<typeof customFetch>}
|
|
295
|
+
): UseMutationOptions<Awaited<ReturnType<typeof dealUpdateDeal>>, TError,{dealUid: string | null;data: NonReadonly<DealUpdateDealBody>}, TContext> => {
|
|
269
296
|
|
|
270
297
|
const mutationKey = ['dealUpdateDeal'];
|
|
271
298
|
const {mutation: mutationOptions, request: requestOptions} = options ?
|
|
@@ -277,7 +304,7 @@ const {mutation: mutationOptions, request: requestOptions} = options ?
|
|
|
277
304
|
|
|
278
305
|
|
|
279
306
|
|
|
280
|
-
const mutationFn: MutationFunction<Awaited<ReturnType<typeof dealUpdateDeal>>, {dealUid: string | null;data: DealUpdateDealBody}> = (props) => {
|
|
307
|
+
const mutationFn: MutationFunction<Awaited<ReturnType<typeof dealUpdateDeal>>, {dealUid: string | null;data: NonReadonly<DealUpdateDealBody>}> = (props) => {
|
|
281
308
|
const {dealUid,data} = props ?? {};
|
|
282
309
|
|
|
283
310
|
return dealUpdateDeal(dealUid,data,requestOptions)
|
|
@@ -289,18 +316,18 @@ const {mutation: mutationOptions, request: requestOptions} = options ?
|
|
|
289
316
|
return { mutationFn, ...mutationOptions }}
|
|
290
317
|
|
|
291
318
|
export type DealUpdateDealMutationResult = NonNullable<Awaited<ReturnType<typeof dealUpdateDeal>>>
|
|
292
|
-
export type DealUpdateDealMutationBody = DealUpdateDealBody
|
|
319
|
+
export type DealUpdateDealMutationBody = NonReadonly<DealUpdateDealBody>
|
|
293
320
|
export type DealUpdateDealMutationError = void
|
|
294
321
|
|
|
295
322
|
/**
|
|
296
323
|
* @summary Update a deal.
|
|
297
324
|
*/
|
|
298
325
|
export const useDealUpdateDeal = <TError = void,
|
|
299
|
-
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof dealUpdateDeal>>, TError,{dealUid: string | null;data: DealUpdateDealBody}, TContext>, request?: SecondParameter<typeof customFetch>}
|
|
326
|
+
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof dealUpdateDeal>>, TError,{dealUid: string | null;data: NonReadonly<DealUpdateDealBody>}, TContext>, request?: SecondParameter<typeof customFetch>}
|
|
300
327
|
): UseMutationResult<
|
|
301
328
|
Awaited<ReturnType<typeof dealUpdateDeal>>,
|
|
302
329
|
TError,
|
|
303
|
-
{dealUid: string | null;data: DealUpdateDealBody},
|
|
330
|
+
{dealUid: string | null;data: NonReadonly<DealUpdateDealBody>},
|
|
304
331
|
TContext
|
|
305
332
|
> => {
|
|
306
333
|
|
|
@@ -380,13 +407,15 @@ page.
|
|
|
380
407
|
* @summary Register a new account.
|
|
381
408
|
*/
|
|
382
409
|
export const registrationRegisterAccount = (
|
|
383
|
-
|
|
410
|
+
account: NonReadonly<Account>,
|
|
384
411
|
options?: SecondParameter<typeof customFetch>,signal?: AbortSignal
|
|
385
412
|
) => {
|
|
386
413
|
|
|
387
414
|
|
|
388
415
|
return customFetch<Account>(
|
|
389
|
-
{url: `/api/v1/crm/registrations`, method: 'POST',
|
|
416
|
+
{url: `/api/v1/crm/registrations`, method: 'POST',
|
|
417
|
+
headers: {'Content-Type': 'application/json', },
|
|
418
|
+
data: account, signal
|
|
390
419
|
},
|
|
391
420
|
options);
|
|
392
421
|
}
|
|
@@ -394,8 +423,8 @@ export const registrationRegisterAccount = (
|
|
|
394
423
|
|
|
395
424
|
|
|
396
425
|
export const getRegistrationRegisterAccountMutationOptions = <TError = unknown,
|
|
397
|
-
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof registrationRegisterAccount>>, TError,
|
|
398
|
-
): UseMutationOptions<Awaited<ReturnType<typeof registrationRegisterAccount>>, TError,
|
|
426
|
+
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof registrationRegisterAccount>>, TError,{data: NonReadonly<Account>}, TContext>, request?: SecondParameter<typeof customFetch>}
|
|
427
|
+
): UseMutationOptions<Awaited<ReturnType<typeof registrationRegisterAccount>>, TError,{data: NonReadonly<Account>}, TContext> => {
|
|
399
428
|
|
|
400
429
|
const mutationKey = ['registrationRegisterAccount'];
|
|
401
430
|
const {mutation: mutationOptions, request: requestOptions} = options ?
|
|
@@ -407,10 +436,10 @@ const {mutation: mutationOptions, request: requestOptions} = options ?
|
|
|
407
436
|
|
|
408
437
|
|
|
409
438
|
|
|
410
|
-
const mutationFn: MutationFunction<Awaited<ReturnType<typeof registrationRegisterAccount>>,
|
|
411
|
-
|
|
439
|
+
const mutationFn: MutationFunction<Awaited<ReturnType<typeof registrationRegisterAccount>>, {data: NonReadonly<Account>}> = (props) => {
|
|
440
|
+
const {data} = props ?? {};
|
|
412
441
|
|
|
413
|
-
return registrationRegisterAccount(requestOptions)
|
|
442
|
+
return registrationRegisterAccount(data,requestOptions)
|
|
414
443
|
}
|
|
415
444
|
|
|
416
445
|
|
|
@@ -419,18 +448,18 @@ const {mutation: mutationOptions, request: requestOptions} = options ?
|
|
|
419
448
|
return { mutationFn, ...mutationOptions }}
|
|
420
449
|
|
|
421
450
|
export type RegistrationRegisterAccountMutationResult = NonNullable<Awaited<ReturnType<typeof registrationRegisterAccount>>>
|
|
422
|
-
|
|
451
|
+
export type RegistrationRegisterAccountMutationBody = NonReadonly<Account>
|
|
423
452
|
export type RegistrationRegisterAccountMutationError = unknown
|
|
424
453
|
|
|
425
454
|
/**
|
|
426
455
|
* @summary Register a new account.
|
|
427
456
|
*/
|
|
428
457
|
export const useRegistrationRegisterAccount = <TError = unknown,
|
|
429
|
-
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof registrationRegisterAccount>>, TError,
|
|
458
|
+
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof registrationRegisterAccount>>, TError,{data: NonReadonly<Account>}, TContext>, request?: SecondParameter<typeof customFetch>}
|
|
430
459
|
): UseMutationResult<
|
|
431
460
|
Awaited<ReturnType<typeof registrationRegisterAccount>>,
|
|
432
461
|
TError,
|
|
433
|
-
|
|
462
|
+
{data: NonReadonly<Account>},
|
|
434
463
|
TContext
|
|
435
464
|
> => {
|
|
436
465
|
|
|
@@ -513,7 +542,7 @@ export function useAccountGetAllAccounts<TData = Awaited<ReturnType<typeof accou
|
|
|
513
542
|
* @summary Add a new account.
|
|
514
543
|
*/
|
|
515
544
|
export const accountAddAccount = (
|
|
516
|
-
accountAddAccountBody: AccountAddAccountBody
|
|
545
|
+
accountAddAccountBody: NonReadonly<AccountAddAccountBody>,
|
|
517
546
|
params?: AccountAddAccountParams,
|
|
518
547
|
options?: SecondParameter<typeof customFetch>,signal?: AbortSignal
|
|
519
548
|
) => {
|
|
@@ -532,8 +561,8 @@ export const accountAddAccount = (
|
|
|
532
561
|
|
|
533
562
|
|
|
534
563
|
export const getAccountAddAccountMutationOptions = <TError = void,
|
|
535
|
-
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof accountAddAccount>>, TError,{data: AccountAddAccountBody
|
|
536
|
-
): UseMutationOptions<Awaited<ReturnType<typeof accountAddAccount>>, TError,{data: AccountAddAccountBody
|
|
564
|
+
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof accountAddAccount>>, TError,{data: NonReadonly<AccountAddAccountBody>;params?: AccountAddAccountParams}, TContext>, request?: SecondParameter<typeof customFetch>}
|
|
565
|
+
): UseMutationOptions<Awaited<ReturnType<typeof accountAddAccount>>, TError,{data: NonReadonly<AccountAddAccountBody>;params?: AccountAddAccountParams}, TContext> => {
|
|
537
566
|
|
|
538
567
|
const mutationKey = ['accountAddAccount'];
|
|
539
568
|
const {mutation: mutationOptions, request: requestOptions} = options ?
|
|
@@ -545,7 +574,7 @@ const {mutation: mutationOptions, request: requestOptions} = options ?
|
|
|
545
574
|
|
|
546
575
|
|
|
547
576
|
|
|
548
|
-
const mutationFn: MutationFunction<Awaited<ReturnType<typeof accountAddAccount>>, {data: AccountAddAccountBody
|
|
577
|
+
const mutationFn: MutationFunction<Awaited<ReturnType<typeof accountAddAccount>>, {data: NonReadonly<AccountAddAccountBody>;params?: AccountAddAccountParams}> = (props) => {
|
|
549
578
|
const {data,params} = props ?? {};
|
|
550
579
|
|
|
551
580
|
return accountAddAccount(data,params,requestOptions)
|
|
@@ -557,18 +586,18 @@ const {mutation: mutationOptions, request: requestOptions} = options ?
|
|
|
557
586
|
return { mutationFn, ...mutationOptions }}
|
|
558
587
|
|
|
559
588
|
export type AccountAddAccountMutationResult = NonNullable<Awaited<ReturnType<typeof accountAddAccount>>>
|
|
560
|
-
export type AccountAddAccountMutationBody = AccountAddAccountBody
|
|
589
|
+
export type AccountAddAccountMutationBody = NonReadonly<AccountAddAccountBody>
|
|
561
590
|
export type AccountAddAccountMutationError = void
|
|
562
591
|
|
|
563
592
|
/**
|
|
564
593
|
* @summary Add a new account.
|
|
565
594
|
*/
|
|
566
595
|
export const useAccountAddAccount = <TError = void,
|
|
567
|
-
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof accountAddAccount>>, TError,{data: AccountAddAccountBody
|
|
596
|
+
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof accountAddAccount>>, TError,{data: NonReadonly<AccountAddAccountBody>;params?: AccountAddAccountParams}, TContext>, request?: SecondParameter<typeof customFetch>}
|
|
568
597
|
): UseMutationResult<
|
|
569
598
|
Awaited<ReturnType<typeof accountAddAccount>>,
|
|
570
599
|
TError,
|
|
571
|
-
{data: AccountAddAccountBody
|
|
600
|
+
{data: NonReadonly<AccountAddAccountBody>;params?: AccountAddAccountParams},
|
|
572
601
|
TContext
|
|
573
602
|
> => {
|
|
574
603
|
|
|
@@ -714,7 +743,7 @@ include them in the same way that they are included when you do a get on the obj
|
|
|
714
743
|
*/
|
|
715
744
|
export const accountUpdateAccount = (
|
|
716
745
|
accountUid: string | null,
|
|
717
|
-
accountUpdateAccountBody: AccountUpdateAccountBody
|
|
746
|
+
accountUpdateAccountBody: NonReadonly<AccountUpdateAccountBody>,
|
|
718
747
|
options?: SecondParameter<typeof customFetch>,) => {
|
|
719
748
|
|
|
720
749
|
|
|
@@ -729,8 +758,8 @@ export const accountUpdateAccount = (
|
|
|
729
758
|
|
|
730
759
|
|
|
731
760
|
export const getAccountUpdateAccountMutationOptions = <TError = void,
|
|
732
|
-
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof accountUpdateAccount>>, TError,{accountUid: string | null;data: AccountUpdateAccountBody}, TContext>, request?: SecondParameter<typeof customFetch>}
|
|
733
|
-
): UseMutationOptions<Awaited<ReturnType<typeof accountUpdateAccount>>, TError,{accountUid: string | null;data: AccountUpdateAccountBody}, TContext> => {
|
|
761
|
+
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof accountUpdateAccount>>, TError,{accountUid: string | null;data: NonReadonly<AccountUpdateAccountBody>}, TContext>, request?: SecondParameter<typeof customFetch>}
|
|
762
|
+
): UseMutationOptions<Awaited<ReturnType<typeof accountUpdateAccount>>, TError,{accountUid: string | null;data: NonReadonly<AccountUpdateAccountBody>}, TContext> => {
|
|
734
763
|
|
|
735
764
|
const mutationKey = ['accountUpdateAccount'];
|
|
736
765
|
const {mutation: mutationOptions, request: requestOptions} = options ?
|
|
@@ -742,7 +771,7 @@ const {mutation: mutationOptions, request: requestOptions} = options ?
|
|
|
742
771
|
|
|
743
772
|
|
|
744
773
|
|
|
745
|
-
const mutationFn: MutationFunction<Awaited<ReturnType<typeof accountUpdateAccount>>, {accountUid: string | null;data: AccountUpdateAccountBody}> = (props) => {
|
|
774
|
+
const mutationFn: MutationFunction<Awaited<ReturnType<typeof accountUpdateAccount>>, {accountUid: string | null;data: NonReadonly<AccountUpdateAccountBody>}> = (props) => {
|
|
746
775
|
const {accountUid,data} = props ?? {};
|
|
747
776
|
|
|
748
777
|
return accountUpdateAccount(accountUid,data,requestOptions)
|
|
@@ -754,18 +783,18 @@ const {mutation: mutationOptions, request: requestOptions} = options ?
|
|
|
754
783
|
return { mutationFn, ...mutationOptions }}
|
|
755
784
|
|
|
756
785
|
export type AccountUpdateAccountMutationResult = NonNullable<Awaited<ReturnType<typeof accountUpdateAccount>>>
|
|
757
|
-
export type AccountUpdateAccountMutationBody = AccountUpdateAccountBody
|
|
786
|
+
export type AccountUpdateAccountMutationBody = NonReadonly<AccountUpdateAccountBody>
|
|
758
787
|
export type AccountUpdateAccountMutationError = void
|
|
759
788
|
|
|
760
789
|
/**
|
|
761
790
|
* @summary Update account information.
|
|
762
791
|
*/
|
|
763
792
|
export const useAccountUpdateAccount = <TError = void,
|
|
764
|
-
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof accountUpdateAccount>>, TError,{accountUid: string | null;data: AccountUpdateAccountBody}, TContext>, request?: SecondParameter<typeof customFetch>}
|
|
793
|
+
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof accountUpdateAccount>>, TError,{accountUid: string | null;data: NonReadonly<AccountUpdateAccountBody>}, TContext>, request?: SecondParameter<typeof customFetch>}
|
|
765
794
|
): UseMutationResult<
|
|
766
795
|
Awaited<ReturnType<typeof accountUpdateAccount>>,
|
|
767
796
|
TError,
|
|
768
|
-
{accountUid: string | null;data: AccountUpdateAccountBody},
|
|
797
|
+
{accountUid: string | null;data: NonReadonly<AccountUpdateAccountBody>},
|
|
769
798
|
TContext
|
|
770
799
|
> => {
|
|
771
800
|
|
|
@@ -778,7 +807,7 @@ export const useAccountUpdateAccount = <TError = void,
|
|
|
778
807
|
*/
|
|
779
808
|
export const accountAddPersonToAccount = (
|
|
780
809
|
accountUid: string | null,
|
|
781
|
-
accountAddPersonToAccountBody: AccountAddPersonToAccountBody
|
|
810
|
+
accountAddPersonToAccountBody: NonReadonly<AccountAddPersonToAccountBody>,
|
|
782
811
|
options?: SecondParameter<typeof customFetch>,signal?: AbortSignal
|
|
783
812
|
) => {
|
|
784
813
|
|
|
@@ -794,8 +823,8 @@ export const accountAddPersonToAccount = (
|
|
|
794
823
|
|
|
795
824
|
|
|
796
825
|
export const getAccountAddPersonToAccountMutationOptions = <TError = void,
|
|
797
|
-
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof accountAddPersonToAccount>>, TError,{accountUid: string | null;data: AccountAddPersonToAccountBody}, TContext>, request?: SecondParameter<typeof customFetch>}
|
|
798
|
-
): UseMutationOptions<Awaited<ReturnType<typeof accountAddPersonToAccount>>, TError,{accountUid: string | null;data: AccountAddPersonToAccountBody}, TContext> => {
|
|
826
|
+
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof accountAddPersonToAccount>>, TError,{accountUid: string | null;data: NonReadonly<AccountAddPersonToAccountBody>}, TContext>, request?: SecondParameter<typeof customFetch>}
|
|
827
|
+
): UseMutationOptions<Awaited<ReturnType<typeof accountAddPersonToAccount>>, TError,{accountUid: string | null;data: NonReadonly<AccountAddPersonToAccountBody>}, TContext> => {
|
|
799
828
|
|
|
800
829
|
const mutationKey = ['accountAddPersonToAccount'];
|
|
801
830
|
const {mutation: mutationOptions, request: requestOptions} = options ?
|
|
@@ -807,7 +836,7 @@ const {mutation: mutationOptions, request: requestOptions} = options ?
|
|
|
807
836
|
|
|
808
837
|
|
|
809
838
|
|
|
810
|
-
const mutationFn: MutationFunction<Awaited<ReturnType<typeof accountAddPersonToAccount>>, {accountUid: string | null;data: AccountAddPersonToAccountBody}> = (props) => {
|
|
839
|
+
const mutationFn: MutationFunction<Awaited<ReturnType<typeof accountAddPersonToAccount>>, {accountUid: string | null;data: NonReadonly<AccountAddPersonToAccountBody>}> = (props) => {
|
|
811
840
|
const {accountUid,data} = props ?? {};
|
|
812
841
|
|
|
813
842
|
return accountAddPersonToAccount(accountUid,data,requestOptions)
|
|
@@ -819,18 +848,18 @@ const {mutation: mutationOptions, request: requestOptions} = options ?
|
|
|
819
848
|
return { mutationFn, ...mutationOptions }}
|
|
820
849
|
|
|
821
850
|
export type AccountAddPersonToAccountMutationResult = NonNullable<Awaited<ReturnType<typeof accountAddPersonToAccount>>>
|
|
822
|
-
export type AccountAddPersonToAccountMutationBody = AccountAddPersonToAccountBody
|
|
851
|
+
export type AccountAddPersonToAccountMutationBody = NonReadonly<AccountAddPersonToAccountBody>
|
|
823
852
|
export type AccountAddPersonToAccountMutationError = void
|
|
824
853
|
|
|
825
854
|
/**
|
|
826
855
|
* @summary Add a person to an existing account. Set sendWelcomeEmail=true to send a welcome email to the person added.
|
|
827
856
|
*/
|
|
828
857
|
export const useAccountAddPersonToAccount = <TError = void,
|
|
829
|
-
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof accountAddPersonToAccount>>, TError,{accountUid: string | null;data: AccountAddPersonToAccountBody}, TContext>, request?: SecondParameter<typeof customFetch>}
|
|
858
|
+
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof accountAddPersonToAccount>>, TError,{accountUid: string | null;data: NonReadonly<AccountAddPersonToAccountBody>}, TContext>, request?: SecondParameter<typeof customFetch>}
|
|
830
859
|
): UseMutationResult<
|
|
831
860
|
Awaited<ReturnType<typeof accountAddPersonToAccount>>,
|
|
832
861
|
TError,
|
|
833
|
-
{accountUid: string | null;data: AccountAddPersonToAccountBody},
|
|
862
|
+
{accountUid: string | null;data: NonReadonly<AccountAddPersonToAccountBody>},
|
|
834
863
|
TContext
|
|
835
864
|
> => {
|
|
836
865
|
|
|
@@ -844,7 +873,7 @@ export const useAccountAddPersonToAccount = <TError = void,
|
|
|
844
873
|
export const accountUpdateMembership = (
|
|
845
874
|
accountUid: string | null,
|
|
846
875
|
membershipUid: string | null,
|
|
847
|
-
accountUpdateMembershipBody: AccountUpdateMembershipBody
|
|
876
|
+
accountUpdateMembershipBody: NonReadonly<AccountUpdateMembershipBody>,
|
|
848
877
|
options?: SecondParameter<typeof customFetch>,) => {
|
|
849
878
|
|
|
850
879
|
|
|
@@ -860,8 +889,8 @@ export const accountUpdateMembership = (
|
|
|
860
889
|
|
|
861
890
|
|
|
862
891
|
export const getAccountUpdateMembershipMutationOptions = <TError = void,
|
|
863
|
-
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof accountUpdateMembership>>, TError,{accountUid: string | null;membershipUid: string | null;data: AccountUpdateMembershipBody}, TContext>, request?: SecondParameter<typeof customFetch>}
|
|
864
|
-
): UseMutationOptions<Awaited<ReturnType<typeof accountUpdateMembership>>, TError,{accountUid: string | null;membershipUid: string | null;data: AccountUpdateMembershipBody}, TContext> => {
|
|
892
|
+
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof accountUpdateMembership>>, TError,{accountUid: string | null;membershipUid: string | null;data: NonReadonly<AccountUpdateMembershipBody>}, TContext>, request?: SecondParameter<typeof customFetch>}
|
|
893
|
+
): UseMutationOptions<Awaited<ReturnType<typeof accountUpdateMembership>>, TError,{accountUid: string | null;membershipUid: string | null;data: NonReadonly<AccountUpdateMembershipBody>}, TContext> => {
|
|
865
894
|
|
|
866
895
|
const mutationKey = ['accountUpdateMembership'];
|
|
867
896
|
const {mutation: mutationOptions, request: requestOptions} = options ?
|
|
@@ -873,7 +902,7 @@ const {mutation: mutationOptions, request: requestOptions} = options ?
|
|
|
873
902
|
|
|
874
903
|
|
|
875
904
|
|
|
876
|
-
const mutationFn: MutationFunction<Awaited<ReturnType<typeof accountUpdateMembership>>, {accountUid: string | null;membershipUid: string | null;data: AccountUpdateMembershipBody}> = (props) => {
|
|
905
|
+
const mutationFn: MutationFunction<Awaited<ReturnType<typeof accountUpdateMembership>>, {accountUid: string | null;membershipUid: string | null;data: NonReadonly<AccountUpdateMembershipBody>}> = (props) => {
|
|
877
906
|
const {accountUid,membershipUid,data} = props ?? {};
|
|
878
907
|
|
|
879
908
|
return accountUpdateMembership(accountUid,membershipUid,data,requestOptions)
|
|
@@ -885,18 +914,18 @@ const {mutation: mutationOptions, request: requestOptions} = options ?
|
|
|
885
914
|
return { mutationFn, ...mutationOptions }}
|
|
886
915
|
|
|
887
916
|
export type AccountUpdateMembershipMutationResult = NonNullable<Awaited<ReturnType<typeof accountUpdateMembership>>>
|
|
888
|
-
export type AccountUpdateMembershipMutationBody = AccountUpdateMembershipBody
|
|
917
|
+
export type AccountUpdateMembershipMutationBody = NonReadonly<AccountUpdateMembershipBody>
|
|
889
918
|
export type AccountUpdateMembershipMutationError = void
|
|
890
919
|
|
|
891
920
|
/**
|
|
892
921
|
* @summary Update an account membership. This is the method by which you can change the primary contact of an account.
|
|
893
922
|
*/
|
|
894
923
|
export const useAccountUpdateMembership = <TError = void,
|
|
895
|
-
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof accountUpdateMembership>>, TError,{accountUid: string | null;membershipUid: string | null;data: AccountUpdateMembershipBody}, TContext>, request?: SecondParameter<typeof customFetch>}
|
|
924
|
+
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof accountUpdateMembership>>, TError,{accountUid: string | null;membershipUid: string | null;data: NonReadonly<AccountUpdateMembershipBody>}, TContext>, request?: SecondParameter<typeof customFetch>}
|
|
896
925
|
): UseMutationResult<
|
|
897
926
|
Awaited<ReturnType<typeof accountUpdateMembership>>,
|
|
898
927
|
TError,
|
|
899
|
-
{accountUid: string | null;membershipUid: string | null;data: AccountUpdateMembershipBody},
|
|
928
|
+
{accountUid: string | null;membershipUid: string | null;data: NonReadonly<AccountUpdateMembershipBody>},
|
|
900
929
|
TContext
|
|
901
930
|
> => {
|
|
902
931
|
|
|
@@ -975,7 +1004,7 @@ renewal the subscription will end and the account will be automatically set to e
|
|
|
975
1004
|
*/
|
|
976
1005
|
export const accountCancelAccount = (
|
|
977
1006
|
accountUid: string | null,
|
|
978
|
-
accountCancelAccountBody: AccountCancelAccountBody
|
|
1007
|
+
accountCancelAccountBody: NonReadonly<AccountCancelAccountBody>,
|
|
979
1008
|
options?: SecondParameter<typeof customFetch>,) => {
|
|
980
1009
|
|
|
981
1010
|
|
|
@@ -991,8 +1020,8 @@ export const accountCancelAccount = (
|
|
|
991
1020
|
|
|
992
1021
|
|
|
993
1022
|
export const getAccountCancelAccountMutationOptions = <TError = void,
|
|
994
|
-
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof accountCancelAccount>>, TError,{accountUid: string | null;data: AccountCancelAccountBody}, TContext>, request?: SecondParameter<typeof customFetch>}
|
|
995
|
-
): UseMutationOptions<Awaited<ReturnType<typeof accountCancelAccount>>, TError,{accountUid: string | null;data: AccountCancelAccountBody}, TContext> => {
|
|
1023
|
+
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof accountCancelAccount>>, TError,{accountUid: string | null;data: NonReadonly<AccountCancelAccountBody>}, TContext>, request?: SecondParameter<typeof customFetch>}
|
|
1024
|
+
): UseMutationOptions<Awaited<ReturnType<typeof accountCancelAccount>>, TError,{accountUid: string | null;data: NonReadonly<AccountCancelAccountBody>}, TContext> => {
|
|
996
1025
|
|
|
997
1026
|
const mutationKey = ['accountCancelAccount'];
|
|
998
1027
|
const {mutation: mutationOptions, request: requestOptions} = options ?
|
|
@@ -1004,7 +1033,7 @@ const {mutation: mutationOptions, request: requestOptions} = options ?
|
|
|
1004
1033
|
|
|
1005
1034
|
|
|
1006
1035
|
|
|
1007
|
-
const mutationFn: MutationFunction<Awaited<ReturnType<typeof accountCancelAccount>>, {accountUid: string | null;data: AccountCancelAccountBody}> = (props) => {
|
|
1036
|
+
const mutationFn: MutationFunction<Awaited<ReturnType<typeof accountCancelAccount>>, {accountUid: string | null;data: NonReadonly<AccountCancelAccountBody>}> = (props) => {
|
|
1008
1037
|
const {accountUid,data} = props ?? {};
|
|
1009
1038
|
|
|
1010
1039
|
return accountCancelAccount(accountUid,data,requestOptions)
|
|
@@ -1016,18 +1045,18 @@ const {mutation: mutationOptions, request: requestOptions} = options ?
|
|
|
1016
1045
|
return { mutationFn, ...mutationOptions }}
|
|
1017
1046
|
|
|
1018
1047
|
export type AccountCancelAccountMutationResult = NonNullable<Awaited<ReturnType<typeof accountCancelAccount>>>
|
|
1019
|
-
export type AccountCancelAccountMutationBody = AccountCancelAccountBody
|
|
1048
|
+
export type AccountCancelAccountMutationBody = NonReadonly<AccountCancelAccountBody>
|
|
1020
1049
|
export type AccountCancelAccountMutationError = void
|
|
1021
1050
|
|
|
1022
1051
|
/**
|
|
1023
1052
|
* @summary Add a cancellation request to an account.
|
|
1024
1053
|
*/
|
|
1025
1054
|
export const useAccountCancelAccount = <TError = void,
|
|
1026
|
-
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof accountCancelAccount>>, TError,{accountUid: string | null;data: AccountCancelAccountBody}, TContext>, request?: SecondParameter<typeof customFetch>}
|
|
1055
|
+
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof accountCancelAccount>>, TError,{accountUid: string | null;data: NonReadonly<AccountCancelAccountBody>}, TContext>, request?: SecondParameter<typeof customFetch>}
|
|
1027
1056
|
): UseMutationResult<
|
|
1028
1057
|
Awaited<ReturnType<typeof accountCancelAccount>>,
|
|
1029
1058
|
TError,
|
|
1030
|
-
{accountUid: string | null;data: AccountCancelAccountBody},
|
|
1059
|
+
{accountUid: string | null;data: NonReadonly<AccountCancelAccountBody>},
|
|
1031
1060
|
TContext
|
|
1032
1061
|
> => {
|
|
1033
1062
|
|
|
@@ -1300,7 +1329,7 @@ export function usePersonGetAllPeople<TData = Awaited<ReturnType<typeof personGe
|
|
|
1300
1329
|
* @summary Add a new person.
|
|
1301
1330
|
*/
|
|
1302
1331
|
export const personAddPerson = (
|
|
1303
|
-
personAddPersonBody: PersonAddPersonBody
|
|
1332
|
+
personAddPersonBody: NonReadonly<PersonAddPersonBody>,
|
|
1304
1333
|
options?: SecondParameter<typeof customFetch>,signal?: AbortSignal
|
|
1305
1334
|
) => {
|
|
1306
1335
|
|
|
@@ -1316,8 +1345,8 @@ export const personAddPerson = (
|
|
|
1316
1345
|
|
|
1317
1346
|
|
|
1318
1347
|
export const getPersonAddPersonMutationOptions = <TError = void,
|
|
1319
|
-
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof personAddPerson>>, TError,{data: PersonAddPersonBody}, TContext>, request?: SecondParameter<typeof customFetch>}
|
|
1320
|
-
): UseMutationOptions<Awaited<ReturnType<typeof personAddPerson>>, TError,{data: PersonAddPersonBody}, TContext> => {
|
|
1348
|
+
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof personAddPerson>>, TError,{data: NonReadonly<PersonAddPersonBody>}, TContext>, request?: SecondParameter<typeof customFetch>}
|
|
1349
|
+
): UseMutationOptions<Awaited<ReturnType<typeof personAddPerson>>, TError,{data: NonReadonly<PersonAddPersonBody>}, TContext> => {
|
|
1321
1350
|
|
|
1322
1351
|
const mutationKey = ['personAddPerson'];
|
|
1323
1352
|
const {mutation: mutationOptions, request: requestOptions} = options ?
|
|
@@ -1329,7 +1358,7 @@ const {mutation: mutationOptions, request: requestOptions} = options ?
|
|
|
1329
1358
|
|
|
1330
1359
|
|
|
1331
1360
|
|
|
1332
|
-
const mutationFn: MutationFunction<Awaited<ReturnType<typeof personAddPerson>>, {data: PersonAddPersonBody}> = (props) => {
|
|
1361
|
+
const mutationFn: MutationFunction<Awaited<ReturnType<typeof personAddPerson>>, {data: NonReadonly<PersonAddPersonBody>}> = (props) => {
|
|
1333
1362
|
const {data} = props ?? {};
|
|
1334
1363
|
|
|
1335
1364
|
return personAddPerson(data,requestOptions)
|
|
@@ -1341,18 +1370,18 @@ const {mutation: mutationOptions, request: requestOptions} = options ?
|
|
|
1341
1370
|
return { mutationFn, ...mutationOptions }}
|
|
1342
1371
|
|
|
1343
1372
|
export type PersonAddPersonMutationResult = NonNullable<Awaited<ReturnType<typeof personAddPerson>>>
|
|
1344
|
-
export type PersonAddPersonMutationBody = PersonAddPersonBody
|
|
1373
|
+
export type PersonAddPersonMutationBody = NonReadonly<PersonAddPersonBody>
|
|
1345
1374
|
export type PersonAddPersonMutationError = void
|
|
1346
1375
|
|
|
1347
1376
|
/**
|
|
1348
1377
|
* @summary Add a new person.
|
|
1349
1378
|
*/
|
|
1350
1379
|
export const usePersonAddPerson = <TError = void,
|
|
1351
|
-
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof personAddPerson>>, TError,{data: PersonAddPersonBody}, TContext>, request?: SecondParameter<typeof customFetch>}
|
|
1380
|
+
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof personAddPerson>>, TError,{data: NonReadonly<PersonAddPersonBody>}, TContext>, request?: SecondParameter<typeof customFetch>}
|
|
1352
1381
|
): UseMutationResult<
|
|
1353
1382
|
Awaited<ReturnType<typeof personAddPerson>>,
|
|
1354
1383
|
TError,
|
|
1355
|
-
{data: PersonAddPersonBody},
|
|
1384
|
+
{data: NonReadonly<PersonAddPersonBody>},
|
|
1356
1385
|
TContext
|
|
1357
1386
|
> => {
|
|
1358
1387
|
|
|
@@ -1436,7 +1465,7 @@ include them in the same way that they are included when you do a get on the obj
|
|
|
1436
1465
|
*/
|
|
1437
1466
|
export const personUpdatePerson = (
|
|
1438
1467
|
personUid: string | null,
|
|
1439
|
-
personUpdatePersonBody: PersonUpdatePersonBody
|
|
1468
|
+
personUpdatePersonBody: NonReadonly<PersonUpdatePersonBody>,
|
|
1440
1469
|
options?: SecondParameter<typeof customFetch>,) => {
|
|
1441
1470
|
|
|
1442
1471
|
|
|
@@ -1451,8 +1480,8 @@ export const personUpdatePerson = (
|
|
|
1451
1480
|
|
|
1452
1481
|
|
|
1453
1482
|
export const getPersonUpdatePersonMutationOptions = <TError = void,
|
|
1454
|
-
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof personUpdatePerson>>, TError,{personUid: string | null;data: PersonUpdatePersonBody}, TContext>, request?: SecondParameter<typeof customFetch>}
|
|
1455
|
-
): UseMutationOptions<Awaited<ReturnType<typeof personUpdatePerson>>, TError,{personUid: string | null;data: PersonUpdatePersonBody}, TContext> => {
|
|
1483
|
+
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof personUpdatePerson>>, TError,{personUid: string | null;data: NonReadonly<PersonUpdatePersonBody>}, TContext>, request?: SecondParameter<typeof customFetch>}
|
|
1484
|
+
): UseMutationOptions<Awaited<ReturnType<typeof personUpdatePerson>>, TError,{personUid: string | null;data: NonReadonly<PersonUpdatePersonBody>}, TContext> => {
|
|
1456
1485
|
|
|
1457
1486
|
const mutationKey = ['personUpdatePerson'];
|
|
1458
1487
|
const {mutation: mutationOptions, request: requestOptions} = options ?
|
|
@@ -1464,7 +1493,7 @@ const {mutation: mutationOptions, request: requestOptions} = options ?
|
|
|
1464
1493
|
|
|
1465
1494
|
|
|
1466
1495
|
|
|
1467
|
-
const mutationFn: MutationFunction<Awaited<ReturnType<typeof personUpdatePerson>>, {personUid: string | null;data: PersonUpdatePersonBody}> = (props) => {
|
|
1496
|
+
const mutationFn: MutationFunction<Awaited<ReturnType<typeof personUpdatePerson>>, {personUid: string | null;data: NonReadonly<PersonUpdatePersonBody>}> = (props) => {
|
|
1468
1497
|
const {personUid,data} = props ?? {};
|
|
1469
1498
|
|
|
1470
1499
|
return personUpdatePerson(personUid,data,requestOptions)
|
|
@@ -1476,18 +1505,18 @@ const {mutation: mutationOptions, request: requestOptions} = options ?
|
|
|
1476
1505
|
return { mutationFn, ...mutationOptions }}
|
|
1477
1506
|
|
|
1478
1507
|
export type PersonUpdatePersonMutationResult = NonNullable<Awaited<ReturnType<typeof personUpdatePerson>>>
|
|
1479
|
-
export type PersonUpdatePersonMutationBody = PersonUpdatePersonBody
|
|
1508
|
+
export type PersonUpdatePersonMutationBody = NonReadonly<PersonUpdatePersonBody>
|
|
1480
1509
|
export type PersonUpdatePersonMutationError = void
|
|
1481
1510
|
|
|
1482
1511
|
/**
|
|
1483
1512
|
* @summary Update a person record.
|
|
1484
1513
|
*/
|
|
1485
1514
|
export const usePersonUpdatePerson = <TError = void,
|
|
1486
|
-
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof personUpdatePerson>>, TError,{personUid: string | null;data: PersonUpdatePersonBody}, TContext>, request?: SecondParameter<typeof customFetch>}
|
|
1515
|
+
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof personUpdatePerson>>, TError,{personUid: string | null;data: NonReadonly<PersonUpdatePersonBody>}, TContext>, request?: SecondParameter<typeof customFetch>}
|
|
1487
1516
|
): UseMutationResult<
|
|
1488
1517
|
Awaited<ReturnType<typeof personUpdatePerson>>,
|
|
1489
1518
|
TError,
|
|
1490
|
-
{personUid: string | null;data: PersonUpdatePersonBody},
|
|
1519
|
+
{personUid: string | null;data: NonReadonly<PersonUpdatePersonBody>},
|
|
1491
1520
|
TContext
|
|
1492
1521
|
> => {
|
|
1493
1522
|
|
|
@@ -1694,7 +1723,7 @@ The reset password token in the link is valid for 30 minutes.
|
|
|
1694
1723
|
* @summary Initiate the forgot password flow.
|
|
1695
1724
|
*/
|
|
1696
1725
|
export const personForgotPassword = (
|
|
1697
|
-
personForgotPasswordBody: PersonForgotPasswordBody
|
|
1726
|
+
personForgotPasswordBody: NonReadonly<PersonForgotPasswordBody>,
|
|
1698
1727
|
options?: SecondParameter<typeof customFetch>,signal?: AbortSignal
|
|
1699
1728
|
) => {
|
|
1700
1729
|
|
|
@@ -1711,8 +1740,8 @@ export const personForgotPassword = (
|
|
|
1711
1740
|
|
|
1712
1741
|
|
|
1713
1742
|
export const getPersonForgotPasswordMutationOptions = <TError = unknown,
|
|
1714
|
-
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof personForgotPassword>>, TError,{data: PersonForgotPasswordBody}, TContext>, request?: SecondParameter<typeof customFetch>}
|
|
1715
|
-
): UseMutationOptions<Awaited<ReturnType<typeof personForgotPassword>>, TError,{data: PersonForgotPasswordBody}, TContext> => {
|
|
1743
|
+
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof personForgotPassword>>, TError,{data: NonReadonly<PersonForgotPasswordBody>}, TContext>, request?: SecondParameter<typeof customFetch>}
|
|
1744
|
+
): UseMutationOptions<Awaited<ReturnType<typeof personForgotPassword>>, TError,{data: NonReadonly<PersonForgotPasswordBody>}, TContext> => {
|
|
1716
1745
|
|
|
1717
1746
|
const mutationKey = ['personForgotPassword'];
|
|
1718
1747
|
const {mutation: mutationOptions, request: requestOptions} = options ?
|
|
@@ -1724,7 +1753,7 @@ const {mutation: mutationOptions, request: requestOptions} = options ?
|
|
|
1724
1753
|
|
|
1725
1754
|
|
|
1726
1755
|
|
|
1727
|
-
const mutationFn: MutationFunction<Awaited<ReturnType<typeof personForgotPassword>>, {data: PersonForgotPasswordBody}> = (props) => {
|
|
1756
|
+
const mutationFn: MutationFunction<Awaited<ReturnType<typeof personForgotPassword>>, {data: NonReadonly<PersonForgotPasswordBody>}> = (props) => {
|
|
1728
1757
|
const {data} = props ?? {};
|
|
1729
1758
|
|
|
1730
1759
|
return personForgotPassword(data,requestOptions)
|
|
@@ -1736,18 +1765,18 @@ const {mutation: mutationOptions, request: requestOptions} = options ?
|
|
|
1736
1765
|
return { mutationFn, ...mutationOptions }}
|
|
1737
1766
|
|
|
1738
1767
|
export type PersonForgotPasswordMutationResult = NonNullable<Awaited<ReturnType<typeof personForgotPassword>>>
|
|
1739
|
-
export type PersonForgotPasswordMutationBody = PersonForgotPasswordBody
|
|
1768
|
+
export type PersonForgotPasswordMutationBody = NonReadonly<PersonForgotPasswordBody>
|
|
1740
1769
|
export type PersonForgotPasswordMutationError = unknown
|
|
1741
1770
|
|
|
1742
1771
|
/**
|
|
1743
1772
|
* @summary Initiate the forgot password flow.
|
|
1744
1773
|
*/
|
|
1745
1774
|
export const usePersonForgotPassword = <TError = unknown,
|
|
1746
|
-
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof personForgotPassword>>, TError,{data: PersonForgotPasswordBody}, TContext>, request?: SecondParameter<typeof customFetch>}
|
|
1775
|
+
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof personForgotPassword>>, TError,{data: NonReadonly<PersonForgotPasswordBody>}, TContext>, request?: SecondParameter<typeof customFetch>}
|
|
1747
1776
|
): UseMutationResult<
|
|
1748
1777
|
Awaited<ReturnType<typeof personForgotPassword>>,
|
|
1749
1778
|
TError,
|
|
1750
|
-
{data: PersonForgotPasswordBody},
|
|
1779
|
+
{data: NonReadonly<PersonForgotPasswordBody>},
|
|
1751
1780
|
TContext
|
|
1752
1781
|
> => {
|
|
1753
1782
|
|