@savvycal/appointments-react-query 0.1.2 → 0.2.1

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.d.cts CHANGED
@@ -51,10 +51,10 @@ type GetResponseData<Path extends keyof paths, Method extends HttpMethod, Media
51
51
  type GetResponseError<Path extends keyof paths, Method extends HttpMethod, Media extends MediaType> = Path extends keyof paths ? Method extends keyof paths[Path] ? paths[Path][Method] extends infer Operation ? Operation extends Record<string, any> ? Required<FetchResponse<Operation, MaybeOptionalInit<paths[Path], Method>, Media>>["error"] : never : never : never : never;
52
52
  type QueryKey<Path extends keyof paths, Method extends HttpMethod, Init = MaybeOptionalInit<paths[Path], Method>> = Init extends undefined ? readonly [Method, Path] : readonly [Method, Path, Init];
53
53
 
54
- interface Options$V extends MutationOptionsFor<"post", "/v1/appointments/{appointment_id}/cancel"> {
54
+ interface Options$_ extends MutationOptionsFor<"post", "/v1/appointments/{appointment_id}/cancel"> {
55
55
  client?: QueryClient;
56
56
  }
57
- declare const useCancelAppointment: (options?: Options$V) => _tanstack_react_query.UseMutationResult<{
57
+ declare const useCancelAppointment: (options?: Options$_) => _tanstack_react_query.UseMutationResult<{
58
58
  data: {
59
59
  appointment_type: "in_person" | "virtual";
60
60
  cancellation_events: {
@@ -241,6 +241,7 @@ declare const useCancelAppointment: (options?: Options$V) => _tanstack_react_que
241
241
  cancel: string[];
242
242
  confirm: string[];
243
243
  ics: string[];
244
+ join: string[];
244
245
  reschedule: string[];
245
246
  };
246
247
  };
@@ -437,6 +438,7 @@ declare const useCancelAppointment: (options?: Options$V) => _tanstack_react_que
437
438
  cancel: string[];
438
439
  confirm: string[];
439
440
  ics: string[];
441
+ join: string[];
440
442
  reschedule: string[];
441
443
  };
442
444
  };
@@ -686,6 +688,7 @@ declare const useCancelAppointment: (options?: Options$V) => _tanstack_react_que
686
688
  cancel: string[];
687
689
  confirm: string[];
688
690
  ics: string[];
691
+ join: string[];
689
692
  reschedule: string[];
690
693
  };
691
694
  };
@@ -725,10 +728,10 @@ declare const useCancelAppointment: (options?: Options$V) => _tanstack_react_que
725
728
  };
726
729
  }>>;
727
730
 
728
- interface Options$U extends MutationOptionsFor<"post", "/v1/public/appointments/{appointment_id}/cancel"> {
731
+ interface Options$Z extends MutationOptionsFor<"post", "/v1/public/appointments/{appointment_id}/cancel"> {
729
732
  client?: QueryClient;
730
733
  }
731
- declare const useCancelPublicAppointment: (options?: Options$U) => _tanstack_react_query.UseMutationResult<{
734
+ declare const useCancelPublicAppointment: (options?: Options$Z) => _tanstack_react_query.UseMutationResult<{
732
735
  data: {
733
736
  cancellation: {
734
737
  allowed: boolean;
@@ -871,10 +874,10 @@ declare const useCancelPublicAppointment: (options?: Options$U) => _tanstack_rea
871
874
  };
872
875
  }>>;
873
876
 
874
- interface Options$T extends MutationOptionsFor<"post", "/v1/appointments/{appointment_id}/confirm"> {
877
+ interface Options$Y extends MutationOptionsFor<"post", "/v1/appointments/{appointment_id}/confirm"> {
875
878
  client?: QueryClient;
876
879
  }
877
- declare const useConfirmAppointment: (options?: Options$T) => _tanstack_react_query.UseMutationResult<{
880
+ declare const useConfirmAppointment: (options?: Options$Y) => _tanstack_react_query.UseMutationResult<{
878
881
  data: {
879
882
  appointment_type: "in_person" | "virtual";
880
883
  cancellation_events: {
@@ -1061,6 +1064,7 @@ declare const useConfirmAppointment: (options?: Options$T) => _tanstack_react_qu
1061
1064
  cancel: string[];
1062
1065
  confirm: string[];
1063
1066
  ics: string[];
1067
+ join: string[];
1064
1068
  reschedule: string[];
1065
1069
  };
1066
1070
  };
@@ -1257,6 +1261,7 @@ declare const useConfirmAppointment: (options?: Options$T) => _tanstack_react_qu
1257
1261
  cancel: string[];
1258
1262
  confirm: string[];
1259
1263
  ics: string[];
1264
+ join: string[];
1260
1265
  reschedule: string[];
1261
1266
  };
1262
1267
  };
@@ -1504,6 +1509,7 @@ declare const useConfirmAppointment: (options?: Options$T) => _tanstack_react_qu
1504
1509
  cancel: string[];
1505
1510
  confirm: string[];
1506
1511
  ics: string[];
1512
+ join: string[];
1507
1513
  reschedule: string[];
1508
1514
  };
1509
1515
  };
@@ -1543,10 +1549,10 @@ declare const useConfirmAppointment: (options?: Options$T) => _tanstack_react_qu
1543
1549
  };
1544
1550
  }>>;
1545
1551
 
1546
- interface Options$S extends MutationOptionsFor<"post", "/v1/accounts"> {
1552
+ interface Options$X extends MutationOptionsFor<"post", "/v1/accounts"> {
1547
1553
  client?: QueryClient;
1548
1554
  }
1549
- declare const useCreateAccount: (options?: Options$S) => _tanstack_react_query.UseMutationResult<{
1555
+ declare const useCreateAccount: (options?: Options$X) => _tanstack_react_query.UseMutationResult<{
1550
1556
  data?: {
1551
1557
  created_at: string;
1552
1558
  id: string;
@@ -1694,10 +1700,10 @@ declare const useCreateAccount: (options?: Options$S) => _tanstack_react_query.U
1694
1700
  };
1695
1701
  }> | undefined>;
1696
1702
 
1697
- interface Options$R extends MutationOptionsFor<"post", "/v1/users"> {
1703
+ interface Options$W extends MutationOptionsFor<"post", "/v1/users"> {
1698
1704
  client?: QueryClient;
1699
1705
  }
1700
- declare const useCreateAccountUser: (options?: Options$R) => _tanstack_react_query.UseMutationResult<{
1706
+ declare const useCreateAccountUser: (options?: Options$W) => _tanstack_react_query.UseMutationResult<{
1701
1707
  object: "account_user";
1702
1708
  passive: boolean;
1703
1709
  roles: {
@@ -1791,8 +1797,8 @@ declare const useCreateAccountUser: (options?: Options$R) => _tanstack_react_que
1791
1797
  last_name: string;
1792
1798
  notify: boolean;
1793
1799
  passive: boolean;
1794
- role_ids?: string[];
1795
- time_zone?: string;
1800
+ role_ids: string[];
1801
+ time_zone: string;
1796
1802
  };
1797
1803
  };
1798
1804
  };
@@ -1856,10 +1862,10 @@ declare const useCreateAccountUser: (options?: Options$R) => _tanstack_react_que
1856
1862
  };
1857
1863
  }> | undefined>;
1858
1864
 
1859
- interface Options$Q extends MutationOptionsFor<"post", "/v1/appointments"> {
1865
+ interface Options$V extends MutationOptionsFor<"post", "/v1/appointments"> {
1860
1866
  client?: QueryClient;
1861
1867
  }
1862
- declare const useCreateAppointment: (options?: Options$Q) => _tanstack_react_query.UseMutationResult<{
1868
+ declare const useCreateAppointment: (options?: Options$V) => _tanstack_react_query.UseMutationResult<{
1863
1869
  data: {
1864
1870
  appointment_type: "in_person" | "virtual";
1865
1871
  cancellation_events: {
@@ -2046,6 +2052,7 @@ declare const useCreateAppointment: (options?: Options$Q) => _tanstack_react_que
2046
2052
  cancel: string[];
2047
2053
  confirm: string[];
2048
2054
  ics: string[];
2055
+ join: string[];
2049
2056
  reschedule: string[];
2050
2057
  };
2051
2058
  };
@@ -2242,6 +2249,7 @@ declare const useCreateAppointment: (options?: Options$Q) => _tanstack_react_que
2242
2249
  cancel: string[];
2243
2250
  confirm: string[];
2244
2251
  ics: string[];
2252
+ join: string[];
2245
2253
  reschedule: string[];
2246
2254
  };
2247
2255
  };
@@ -2502,6 +2510,7 @@ declare const useCreateAppointment: (options?: Options$Q) => _tanstack_react_que
2502
2510
  cancel: string[];
2503
2511
  confirm: string[];
2504
2512
  ics: string[];
2513
+ join: string[];
2505
2514
  reschedule: string[];
2506
2515
  };
2507
2516
  };
@@ -2541,10 +2550,10 @@ declare const useCreateAppointment: (options?: Options$Q) => _tanstack_react_que
2541
2550
  };
2542
2551
  }> | undefined>;
2543
2552
 
2544
- interface Options$P extends MutationOptionsFor<"post", "/v1/blocks"> {
2553
+ interface Options$U extends MutationOptionsFor<"post", "/v1/blocks"> {
2545
2554
  client?: QueryClient;
2546
2555
  }
2547
- declare const useCreateBlock: (options?: Options$P) => _tanstack_react_query.UseMutationResult<{
2556
+ declare const useCreateBlock: (options?: Options$U) => _tanstack_react_query.UseMutationResult<{
2548
2557
  data: {
2549
2558
  all_day: boolean;
2550
2559
  attachment_type: "location" | "service" | "provider" | "service_provider";
@@ -2733,10 +2742,10 @@ declare const useCreateBlock: (options?: Options$P) => _tanstack_react_query.Use
2733
2742
  };
2734
2743
  }> | undefined>;
2735
2744
 
2736
- interface Options$O extends MutationOptionsFor<"post", "/v1/cancellation_reasons"> {
2745
+ interface Options$T extends MutationOptionsFor<"post", "/v1/cancellation_reasons"> {
2737
2746
  client?: QueryClient;
2738
2747
  }
2739
- declare const useCreateCancellationReason: (options?: Options$O) => _tanstack_react_query.UseMutationResult<{
2748
+ declare const useCreateCancellationReason: (options?: Options$T) => _tanstack_react_query.UseMutationResult<{
2740
2749
  data: Record<string, never>;
2741
2750
  }, openapi_typescript_helpers.ErrorResponse<{
2742
2751
  201: {
@@ -2839,10 +2848,10 @@ declare const useCreateCancellationReason: (options?: Options$O) => _tanstack_re
2839
2848
  };
2840
2849
  }> | undefined>;
2841
2850
 
2842
- interface Options$N extends MutationOptionsFor<"post", "/v1/clients"> {
2851
+ interface Options$S extends MutationOptionsFor<"post", "/v1/clients"> {
2843
2852
  client?: QueryClient;
2844
2853
  }
2845
- declare const useCreateClient: (options?: Options$N) => _tanstack_react_query.UseMutationResult<{
2854
+ declare const useCreateClient: (options?: Options$S) => _tanstack_react_query.UseMutationResult<{
2846
2855
  data: {
2847
2856
  created_at: string;
2848
2857
  email?: string | null;
@@ -2987,10 +2996,10 @@ declare const useCreateClient: (options?: Options$N) => _tanstack_react_query.Us
2987
2996
  };
2988
2997
  }> | undefined>;
2989
2998
 
2990
- interface Options$M extends MutationOptionsFor<"post", "/v1/dashboard_sessions"> {
2999
+ interface Options$R extends MutationOptionsFor<"post", "/v1/dashboard_sessions"> {
2991
3000
  client?: QueryClient;
2992
3001
  }
2993
- declare const useCreateDashboardSession: (options?: Options$M) => _tanstack_react_query.UseMutationResult<{
3002
+ declare const useCreateDashboardSession: (options?: Options$R) => _tanstack_react_query.UseMutationResult<{
2994
3003
  data: {
2995
3004
  created_at: string;
2996
3005
  id: string;
@@ -3115,10 +3124,10 @@ declare const useCreateDashboardSession: (options?: Options$M) => _tanstack_reac
3115
3124
  };
3116
3125
  }> | undefined>;
3117
3126
 
3118
- interface Options$L extends MutationOptionsFor<"post", "/v1/providers"> {
3127
+ interface Options$Q extends MutationOptionsFor<"post", "/v1/providers"> {
3119
3128
  client?: QueryClient;
3120
3129
  }
3121
- declare const useCreateProvider: (options?: Options$L) => _tanstack_react_query.UseMutationResult<{
3130
+ declare const useCreateProvider: (options?: Options$Q) => _tanstack_react_query.UseMutationResult<{
3122
3131
  data: {
3123
3132
  created_at: string;
3124
3133
  display_name: string;
@@ -3255,10 +3264,10 @@ declare const useCreateProvider: (options?: Options$L) => _tanstack_react_query.
3255
3264
  };
3256
3265
  }> | undefined>;
3257
3266
 
3258
- interface Options$K extends MutationOptionsFor<"post", "/v1/providers/{provider_id}/schedules"> {
3267
+ interface Options$P extends MutationOptionsFor<"post", "/v1/providers/{provider_id}/schedules"> {
3259
3268
  client?: QueryClient;
3260
3269
  }
3261
- declare const useCreateProviderSchedule: (options?: Options$K) => _tanstack_react_query.UseMutationResult<{
3270
+ declare const useCreateProviderSchedule: (options?: Options$P) => _tanstack_react_query.UseMutationResult<{
3262
3271
  data: {
3263
3272
  created_at: string;
3264
3273
  effective_from: string;
@@ -3415,10 +3424,10 @@ declare const useCreateProviderSchedule: (options?: Options$K) => _tanstack_reac
3415
3424
  };
3416
3425
  }> | undefined>;
3417
3426
 
3418
- interface Options$J extends MutationOptionsFor<"post", "/v1/public/appointments"> {
3427
+ interface Options$O extends MutationOptionsFor<"post", "/v1/public/appointments"> {
3419
3428
  client?: QueryClient;
3420
3429
  }
3421
- declare const useCreatePublicAppointment: (options?: Options$J) => _tanstack_react_query.UseMutationResult<{
3430
+ declare const useCreatePublicAppointment: (options?: Options$O) => _tanstack_react_query.UseMutationResult<{
3422
3431
  data: {
3423
3432
  cancellation: {
3424
3433
  allowed: boolean;
@@ -3540,10 +3549,10 @@ declare const useCreatePublicAppointment: (options?: Options$J) => _tanstack_rea
3540
3549
  };
3541
3550
  }> | undefined>;
3542
3551
 
3543
- interface Options$I extends MutationOptionsFor<"post", "/v1/services"> {
3552
+ interface Options$N extends MutationOptionsFor<"post", "/v1/services"> {
3544
3553
  client?: QueryClient;
3545
3554
  }
3546
- declare const useCreateService: (options?: Options$I) => _tanstack_react_query.UseMutationResult<{
3555
+ declare const useCreateService: (options?: Options$N) => _tanstack_react_query.UseMutationResult<{
3547
3556
  data: {
3548
3557
  appointment_type: "in_person" | "virtual";
3549
3558
  booking_policy: {
@@ -3824,10 +3833,10 @@ declare const useCreateService: (options?: Options$I) => _tanstack_react_query.U
3824
3833
  };
3825
3834
  }> | undefined>;
3826
3835
 
3827
- interface Options$H extends MutationOptionsFor<"post", "/v1/services/{service_id}/providers"> {
3836
+ interface Options$M extends MutationOptionsFor<"post", "/v1/services/{service_id}/providers"> {
3828
3837
  client?: QueryClient;
3829
3838
  }
3830
- declare const useCreateServiceProvider: (options?: Options$H) => _tanstack_react_query.UseMutationResult<{
3839
+ declare const useCreateServiceProvider: (options?: Options$M) => _tanstack_react_query.UseMutationResult<{
3831
3840
  data: {
3832
3841
  created_at: string;
3833
3842
  id: string;
@@ -4006,10 +4015,10 @@ declare const useCreateServiceProvider: (options?: Options$H) => _tanstack_react
4006
4015
  };
4007
4016
  }>>;
4008
4017
 
4009
- interface Options$G extends MutationOptionsFor<"delete", "/v1/providers/{provider_id}"> {
4018
+ interface Options$L extends MutationOptionsFor<"delete", "/v1/providers/{provider_id}"> {
4010
4019
  client?: QueryClient;
4011
4020
  }
4012
- declare const useDeactivateProvider: (options?: Options$G) => _tanstack_react_query.UseMutationResult<string, openapi_typescript_helpers.ErrorResponse<{
4021
+ declare const useDeactivateProvider: (options?: Options$L) => _tanstack_react_query.UseMutationResult<string, openapi_typescript_helpers.ErrorResponse<{
4013
4022
  204: {
4014
4023
  headers: {
4015
4024
  [name: string]: unknown;
@@ -4096,10 +4105,10 @@ declare const useDeactivateProvider: (options?: Options$G) => _tanstack_react_qu
4096
4105
  };
4097
4106
  }>>;
4098
4107
 
4099
- interface Options$F extends MutationOptionsFor<"delete", "/v1/blocks/{block_id}"> {
4108
+ interface Options$K extends MutationOptionsFor<"delete", "/v1/blocks/{block_id}"> {
4100
4109
  client?: QueryClient;
4101
4110
  }
4102
- declare const useDeleteBlock: (options?: Options$F) => _tanstack_react_query.UseMutationResult<string, openapi_typescript_helpers.ErrorResponse<{
4111
+ declare const useDeleteBlock: (options?: Options$K) => _tanstack_react_query.UseMutationResult<string, openapi_typescript_helpers.ErrorResponse<{
4103
4112
  204: {
4104
4113
  headers: {
4105
4114
  [name: string]: unknown;
@@ -4186,10 +4195,10 @@ declare const useDeleteBlock: (options?: Options$F) => _tanstack_react_query.Use
4186
4195
  };
4187
4196
  }>>;
4188
4197
 
4189
- interface Options$E extends MutationOptionsFor<"delete", "/v1/cancellation_reasons/{cancellation_reason_id}"> {
4198
+ interface Options$J extends MutationOptionsFor<"delete", "/v1/cancellation_reasons/{cancellation_reason_id}"> {
4190
4199
  client?: QueryClient;
4191
4200
  }
4192
- declare const useDeleteCancellationReason: (options?: Options$E) => _tanstack_react_query.UseMutationResult<string, openapi_typescript_helpers.ErrorResponse<{
4201
+ declare const useDeleteCancellationReason: (options?: Options$J) => _tanstack_react_query.UseMutationResult<string, openapi_typescript_helpers.ErrorResponse<{
4193
4202
  204: {
4194
4203
  headers: {
4195
4204
  [name: string]: unknown;
@@ -4276,10 +4285,10 @@ declare const useDeleteCancellationReason: (options?: Options$E) => _tanstack_re
4276
4285
  };
4277
4286
  }>>;
4278
4287
 
4279
- interface Options$D extends MutationOptionsFor<"delete", "/v1/clients/{client_id}"> {
4288
+ interface Options$I extends MutationOptionsFor<"delete", "/v1/clients/{client_id}"> {
4280
4289
  client?: QueryClient;
4281
4290
  }
4282
- declare const useDeleteClient: (options?: Options$D) => _tanstack_react_query.UseMutationResult<string, openapi_typescript_helpers.ErrorResponse<{
4291
+ declare const useDeleteClient: (options?: Options$I) => _tanstack_react_query.UseMutationResult<string, openapi_typescript_helpers.ErrorResponse<{
4283
4292
  204: {
4284
4293
  headers: {
4285
4294
  [name: string]: unknown;
@@ -4366,10 +4375,100 @@ declare const useDeleteClient: (options?: Options$D) => _tanstack_react_query.Us
4366
4375
  };
4367
4376
  }>>;
4368
4377
 
4369
- interface Options$C extends MutationOptionsFor<"delete", "/v1/provider_schedules/{provider_schedule_id}"> {
4378
+ interface Options$H extends MutationOptionsFor<"delete", "/v1/connected_accounts/{connected_account_id}"> {
4379
+ client?: QueryClient;
4380
+ }
4381
+ declare const useDeleteConnectedAccount: (options?: Options$H) => _tanstack_react_query.UseMutationResult<string, openapi_typescript_helpers.ErrorResponse<{
4382
+ 204: {
4383
+ headers: {
4384
+ [name: string]: unknown;
4385
+ };
4386
+ content: {
4387
+ "text/plain": string;
4388
+ };
4389
+ };
4390
+ 401: {
4391
+ headers: {
4392
+ [name: string]: unknown;
4393
+ };
4394
+ content: {
4395
+ "application/json": {
4396
+ errors: {
4397
+ detail: string;
4398
+ status?: string;
4399
+ title?: string;
4400
+ }[];
4401
+ };
4402
+ };
4403
+ };
4404
+ 404: {
4405
+ headers: {
4406
+ [name: string]: unknown;
4407
+ };
4408
+ content: {
4409
+ "application/json": {
4410
+ errors: {
4411
+ detail: "Not Found";
4412
+ status: "404";
4413
+ }[];
4414
+ };
4415
+ };
4416
+ };
4417
+ }, `${string}/${string}`>, openapi_fetch.FetchOptions<{
4418
+ parameters: {
4419
+ query?: never;
4420
+ header?: {
4421
+ "X-SavvyCal-Account"?: string;
4422
+ };
4423
+ path: {
4424
+ connected_account_id: string;
4425
+ };
4426
+ cookie?: never;
4427
+ };
4428
+ requestBody?: never;
4429
+ responses: {
4430
+ 204: {
4431
+ headers: {
4432
+ [name: string]: unknown;
4433
+ };
4434
+ content: {
4435
+ "text/plain": string;
4436
+ };
4437
+ };
4438
+ 401: {
4439
+ headers: {
4440
+ [name: string]: unknown;
4441
+ };
4442
+ content: {
4443
+ "application/json": {
4444
+ errors: {
4445
+ detail: string;
4446
+ status?: string;
4447
+ title?: string;
4448
+ }[];
4449
+ };
4450
+ };
4451
+ };
4452
+ 404: {
4453
+ headers: {
4454
+ [name: string]: unknown;
4455
+ };
4456
+ content: {
4457
+ "application/json": {
4458
+ errors: {
4459
+ detail: "Not Found";
4460
+ status: "404";
4461
+ }[];
4462
+ };
4463
+ };
4464
+ };
4465
+ };
4466
+ }>>;
4467
+
4468
+ interface Options$G extends MutationOptionsFor<"delete", "/v1/provider_schedules/{provider_schedule_id}"> {
4370
4469
  client?: QueryClient;
4371
4470
  }
4372
- declare const useDeleteProviderSchedule: (options?: Options$C) => _tanstack_react_query.UseMutationResult<string, openapi_typescript_helpers.ErrorResponse<{
4471
+ declare const useDeleteProviderSchedule: (options?: Options$G) => _tanstack_react_query.UseMutationResult<string, openapi_typescript_helpers.ErrorResponse<{
4373
4472
  204: {
4374
4473
  headers: {
4375
4474
  [name: string]: unknown;
@@ -4456,10 +4555,10 @@ declare const useDeleteProviderSchedule: (options?: Options$C) => _tanstack_reac
4456
4555
  };
4457
4556
  }>>;
4458
4557
 
4459
- interface Options$B extends MutationOptionsFor<"delete", "/v1/services/{service_id}"> {
4558
+ interface Options$F extends MutationOptionsFor<"delete", "/v1/services/{service_id}"> {
4460
4559
  client?: QueryClient;
4461
4560
  }
4462
- declare const useDeleteService: (options?: Options$B) => _tanstack_react_query.UseMutationResult<string, openapi_typescript_helpers.ErrorResponse<{
4561
+ declare const useDeleteService: (options?: Options$F) => _tanstack_react_query.UseMutationResult<string, openapi_typescript_helpers.ErrorResponse<{
4463
4562
  204: {
4464
4563
  headers: {
4465
4564
  [name: string]: unknown;
@@ -4546,10 +4645,10 @@ declare const useDeleteService: (options?: Options$B) => _tanstack_react_query.U
4546
4645
  };
4547
4646
  }>>;
4548
4647
 
4549
- interface Options$A extends MutationOptionsFor<"delete", "/v1/service_providers/{service_provider_id}"> {
4648
+ interface Options$E extends MutationOptionsFor<"delete", "/v1/service_providers/{service_provider_id}"> {
4550
4649
  client?: QueryClient;
4551
4650
  }
4552
- declare const useDeleteServiceProvider: (options?: Options$A) => _tanstack_react_query.UseMutationResult<string, openapi_typescript_helpers.ErrorResponse<{
4651
+ declare const useDeleteServiceProvider: (options?: Options$E) => _tanstack_react_query.UseMutationResult<string, openapi_typescript_helpers.ErrorResponse<{
4553
4652
  204: {
4554
4653
  headers: {
4555
4654
  [name: string]: unknown;
@@ -4636,10 +4735,10 @@ declare const useDeleteServiceProvider: (options?: Options$A) => _tanstack_react
4636
4735
  };
4637
4736
  }>>;
4638
4737
 
4639
- interface Options$z extends MutationOptionsFor<"post", "/v1/appointments/{appointment_id}/reschedule"> {
4738
+ interface Options$D extends MutationOptionsFor<"post", "/v1/appointments/{appointment_id}/reschedule"> {
4640
4739
  client?: QueryClient;
4641
4740
  }
4642
- declare const useRescheduleAppointment: (options?: Options$z) => _tanstack_react_query.UseMutationResult<{
4741
+ declare const useRescheduleAppointment: (options?: Options$D) => _tanstack_react_query.UseMutationResult<{
4643
4742
  data: {
4644
4743
  appointment_type: "in_person" | "virtual";
4645
4744
  cancellation_events: {
@@ -4826,6 +4925,7 @@ declare const useRescheduleAppointment: (options?: Options$z) => _tanstack_react
4826
4925
  cancel: string[];
4827
4926
  confirm: string[];
4828
4927
  ics: string[];
4928
+ join: string[];
4829
4929
  reschedule: string[];
4830
4930
  };
4831
4931
  };
@@ -5022,6 +5122,7 @@ declare const useRescheduleAppointment: (options?: Options$z) => _tanstack_react
5022
5122
  cancel: string[];
5023
5123
  confirm: string[];
5024
5124
  ics: string[];
5125
+ join: string[];
5025
5126
  reschedule: string[];
5026
5127
  };
5027
5128
  };
@@ -5273,6 +5374,7 @@ declare const useRescheduleAppointment: (options?: Options$z) => _tanstack_react
5273
5374
  cancel: string[];
5274
5375
  confirm: string[];
5275
5376
  ics: string[];
5377
+ join: string[];
5276
5378
  reschedule: string[];
5277
5379
  };
5278
5380
  };
@@ -5312,10 +5414,10 @@ declare const useRescheduleAppointment: (options?: Options$z) => _tanstack_react
5312
5414
  };
5313
5415
  }>>;
5314
5416
 
5315
- interface Options$y extends MutationOptionsFor<"post", "/v1/public/appointments/{appointment_id}/reschedule"> {
5417
+ interface Options$C extends MutationOptionsFor<"post", "/v1/public/appointments/{appointment_id}/reschedule"> {
5316
5418
  client?: QueryClient;
5317
5419
  }
5318
- declare const useReschedulePublicAppointment: (options?: Options$y) => _tanstack_react_query.UseMutationResult<{
5420
+ declare const useReschedulePublicAppointment: (options?: Options$C) => _tanstack_react_query.UseMutationResult<{
5319
5421
  data: {
5320
5422
  cancellation: {
5321
5423
  allowed: boolean;
@@ -5460,10 +5562,10 @@ declare const useReschedulePublicAppointment: (options?: Options$y) => _tanstack
5460
5562
  };
5461
5563
  }>>;
5462
5564
 
5463
- interface Options$x extends MutationOptionsFor<"patch", "/v1/accounts/{account_id}"> {
5565
+ interface Options$B extends MutationOptionsFor<"patch", "/v1/accounts/{account_id}"> {
5464
5566
  client?: QueryClient;
5465
5567
  }
5466
- declare const useUpdateAccount: (options?: Options$x) => _tanstack_react_query.UseMutationResult<{
5568
+ declare const useUpdateAccount: (options?: Options$B) => _tanstack_react_query.UseMutationResult<{
5467
5569
  data?: {
5468
5570
  created_at: string;
5469
5571
  id: string;
@@ -5610,32 +5712,25 @@ declare const useUpdateAccount: (options?: Options$x) => _tanstack_react_query.U
5610
5712
  };
5611
5713
  }>>;
5612
5714
 
5613
- interface Options$w extends MutationOptionsFor<"patch", "/v1/blocks/{block_id}"> {
5715
+ interface Options$A extends MutationOptionsFor<"patch", "/v1/users/{user_id}"> {
5614
5716
  client?: QueryClient;
5615
5717
  }
5616
- declare const useUpdateBlock: (options?: Options$w) => _tanstack_react_query.UseMutationResult<{
5617
- data: {
5618
- all_day: boolean;
5619
- attachment_type: "location" | "service" | "provider" | "service_provider";
5620
- attachments: string[];
5718
+ declare const useUpdateAccountUser: (options?: Options$A) => _tanstack_react_query.UseMutationResult<{
5719
+ object: "account_user";
5720
+ passive: boolean;
5721
+ roles: {
5722
+ id: string;
5723
+ name: string;
5724
+ object: "role";
5725
+ type: "admin" | "staff" | "developer" | "superuser" | "custom";
5726
+ }[];
5727
+ user: {
5621
5728
  created_at: string;
5622
- end_date: string;
5623
- end_time: string | null;
5624
- exception_dates: string[];
5729
+ email: string;
5730
+ first_name: string;
5625
5731
  id: string;
5626
- object: "block";
5627
- recurrence_rule: {
5628
- byday?: string[];
5629
- count?: number | null;
5630
- freq: "daily" | "weekly";
5631
- interval?: number;
5632
- until?: Record<string, never> | null;
5633
- } | null;
5634
- service_id: string | null;
5635
- start_date: string;
5636
- start_time: string | null;
5637
- time_zone: string | null;
5638
- title: string | null;
5732
+ last_name: string;
5733
+ object: "user";
5639
5734
  updated_at: string;
5640
5735
  };
5641
5736
  }, openapi_typescript_helpers.ErrorResponse<{
@@ -5645,28 +5740,21 @@ declare const useUpdateBlock: (options?: Options$w) => _tanstack_react_query.Use
5645
5740
  };
5646
5741
  content: {
5647
5742
  "application/json": {
5648
- data: {
5649
- all_day: boolean;
5650
- attachment_type: "location" | "service" | "provider" | "service_provider";
5651
- attachments: string[];
5743
+ object: "account_user";
5744
+ passive: boolean;
5745
+ roles: {
5746
+ id: string;
5747
+ name: string;
5748
+ object: "role";
5749
+ type: "admin" | "staff" | "developer" | "superuser" | "custom";
5750
+ }[];
5751
+ user: {
5652
5752
  created_at: string;
5653
- end_date: string;
5654
- end_time: string | null;
5655
- exception_dates: string[];
5753
+ email: string;
5754
+ first_name: string;
5656
5755
  id: string;
5657
- object: "block";
5658
- recurrence_rule: {
5659
- byday?: string[];
5660
- count?: number | null;
5661
- freq: "daily" | "weekly";
5662
- interval?: number;
5663
- until?: Record<string, never> | null;
5664
- } | null;
5665
- service_id: string | null;
5666
- start_date: string;
5667
- start_time: string | null;
5668
- time_zone: string | null;
5669
- title: string | null;
5756
+ last_name: string;
5757
+ object: "user";
5670
5758
  updated_at: string;
5671
5759
  };
5672
5760
  };
@@ -5686,6 +5774,20 @@ declare const useUpdateBlock: (options?: Options$w) => _tanstack_react_query.Use
5686
5774
  };
5687
5775
  };
5688
5776
  };
5777
+ 404: {
5778
+ headers: {
5779
+ [name: string]: unknown;
5780
+ };
5781
+ content: {
5782
+ "application/json": {
5783
+ errors: {
5784
+ detail: string;
5785
+ status?: string;
5786
+ title?: string;
5787
+ }[];
5788
+ };
5789
+ };
5790
+ };
5689
5791
  422: {
5690
5792
  headers: {
5691
5793
  [name: string]: unknown;
@@ -5708,30 +5810,20 @@ declare const useUpdateBlock: (options?: Options$w) => _tanstack_react_query.Use
5708
5810
  header?: {
5709
5811
  "X-SavvyCal-Account"?: string;
5710
5812
  };
5711
- path?: never;
5813
+ path: {
5814
+ user_id: string;
5815
+ };
5712
5816
  cookie?: never;
5713
5817
  };
5714
5818
  requestBody?: {
5715
5819
  content: {
5716
5820
  "application/json": {
5717
- all_day?: boolean;
5718
- attachment_type?: "location" | "service" | "provider" | "service_provider";
5719
- attachments?: string[];
5720
- end_date?: string;
5721
- end_time?: string | null;
5722
- exception_dates?: string[];
5723
- recurrence_rule?: {
5724
- byday?: string[];
5725
- count?: number | null;
5726
- freq: "daily" | "weekly";
5727
- interval?: number;
5728
- until?: Record<string, never> | null;
5729
- } | null;
5730
- service_id?: string | null;
5731
- start_date?: string;
5732
- start_time?: string | null;
5821
+ email?: string;
5822
+ first_name?: string;
5823
+ last_name?: string;
5824
+ passive?: boolean;
5825
+ role_ids?: string[];
5733
5826
  time_zone?: string;
5734
- title?: string;
5735
5827
  };
5736
5828
  };
5737
5829
  };
@@ -5742,28 +5834,21 @@ declare const useUpdateBlock: (options?: Options$w) => _tanstack_react_query.Use
5742
5834
  };
5743
5835
  content: {
5744
5836
  "application/json": {
5745
- data: {
5746
- all_day: boolean;
5747
- attachment_type: "location" | "service" | "provider" | "service_provider";
5748
- attachments: string[];
5837
+ object: "account_user";
5838
+ passive: boolean;
5839
+ roles: {
5840
+ id: string;
5841
+ name: string;
5842
+ object: "role";
5843
+ type: "admin" | "staff" | "developer" | "superuser" | "custom";
5844
+ }[];
5845
+ user: {
5749
5846
  created_at: string;
5750
- end_date: string;
5751
- end_time: string | null;
5752
- exception_dates: string[];
5847
+ email: string;
5848
+ first_name: string;
5753
5849
  id: string;
5754
- object: "block";
5755
- recurrence_rule: {
5756
- byday?: string[];
5757
- count?: number | null;
5758
- freq: "daily" | "weekly";
5759
- interval?: number;
5760
- until?: Record<string, never> | null;
5761
- } | null;
5762
- service_id: string | null;
5763
- start_date: string;
5764
- start_time: string | null;
5765
- time_zone: string | null;
5766
- title: string | null;
5850
+ last_name: string;
5851
+ object: "user";
5767
5852
  updated_at: string;
5768
5853
  };
5769
5854
  };
@@ -5783,6 +5868,20 @@ declare const useUpdateBlock: (options?: Options$w) => _tanstack_react_query.Use
5783
5868
  };
5784
5869
  };
5785
5870
  };
5871
+ 404: {
5872
+ headers: {
5873
+ [name: string]: unknown;
5874
+ };
5875
+ content: {
5876
+ "application/json": {
5877
+ errors: {
5878
+ detail: string;
5879
+ status?: string;
5880
+ title?: string;
5881
+ }[];
5882
+ };
5883
+ };
5884
+ };
5786
5885
  422: {
5787
5886
  headers: {
5788
5887
  [name: string]: unknown;
@@ -5800,25 +5899,217 @@ declare const useUpdateBlock: (options?: Options$w) => _tanstack_react_query.Use
5800
5899
  };
5801
5900
  };
5802
5901
  };
5803
- }> | undefined>;
5902
+ }>>;
5804
5903
 
5805
- interface Options$v extends MutationOptionsFor<"patch", "/v1/cancellation_reasons/{cancellation_reason_id}"> {
5904
+ interface Options$z extends MutationOptionsFor<"patch", "/v1/blocks/{block_id}"> {
5806
5905
  client?: QueryClient;
5807
5906
  }
5808
- declare const useUpdateCancellationReason: (options?: Options$v) => _tanstack_react_query.UseMutationResult<{
5809
- data: Record<string, never>;
5810
- }, openapi_typescript_helpers.ErrorResponse<{
5811
- 200: {
5812
- headers: {
5813
- [name: string]: unknown;
5814
- };
5815
- content: {
5816
- "application/json": {
5817
- data: Record<string, never>;
5818
- };
5819
- };
5820
- };
5821
- 401: {
5907
+ declare const useUpdateBlock: (options?: Options$z) => _tanstack_react_query.UseMutationResult<{
5908
+ data: {
5909
+ all_day: boolean;
5910
+ attachment_type: "location" | "service" | "provider" | "service_provider";
5911
+ attachments: string[];
5912
+ created_at: string;
5913
+ end_date: string;
5914
+ end_time: string | null;
5915
+ exception_dates: string[];
5916
+ id: string;
5917
+ object: "block";
5918
+ recurrence_rule: {
5919
+ byday?: string[];
5920
+ count?: number | null;
5921
+ freq: "daily" | "weekly";
5922
+ interval?: number;
5923
+ until?: Record<string, never> | null;
5924
+ } | null;
5925
+ service_id: string | null;
5926
+ start_date: string;
5927
+ start_time: string | null;
5928
+ time_zone: string | null;
5929
+ title: string | null;
5930
+ updated_at: string;
5931
+ };
5932
+ }, openapi_typescript_helpers.ErrorResponse<{
5933
+ 200: {
5934
+ headers: {
5935
+ [name: string]: unknown;
5936
+ };
5937
+ content: {
5938
+ "application/json": {
5939
+ data: {
5940
+ all_day: boolean;
5941
+ attachment_type: "location" | "service" | "provider" | "service_provider";
5942
+ attachments: string[];
5943
+ created_at: string;
5944
+ end_date: string;
5945
+ end_time: string | null;
5946
+ exception_dates: string[];
5947
+ id: string;
5948
+ object: "block";
5949
+ recurrence_rule: {
5950
+ byday?: string[];
5951
+ count?: number | null;
5952
+ freq: "daily" | "weekly";
5953
+ interval?: number;
5954
+ until?: Record<string, never> | null;
5955
+ } | null;
5956
+ service_id: string | null;
5957
+ start_date: string;
5958
+ start_time: string | null;
5959
+ time_zone: string | null;
5960
+ title: string | null;
5961
+ updated_at: string;
5962
+ };
5963
+ };
5964
+ };
5965
+ };
5966
+ 401: {
5967
+ headers: {
5968
+ [name: string]: unknown;
5969
+ };
5970
+ content: {
5971
+ "application/json": {
5972
+ errors: {
5973
+ detail: string;
5974
+ status?: string;
5975
+ title?: string;
5976
+ }[];
5977
+ };
5978
+ };
5979
+ };
5980
+ 422: {
5981
+ headers: {
5982
+ [name: string]: unknown;
5983
+ };
5984
+ content: {
5985
+ "application/json": {
5986
+ errors: {
5987
+ detail: string;
5988
+ source: {
5989
+ pointer: string;
5990
+ };
5991
+ title: string;
5992
+ }[];
5993
+ };
5994
+ };
5995
+ };
5996
+ }, `${string}/${string}`>, openapi_fetch.FetchOptions<{
5997
+ parameters: {
5998
+ query?: never;
5999
+ header?: {
6000
+ "X-SavvyCal-Account"?: string;
6001
+ };
6002
+ path?: never;
6003
+ cookie?: never;
6004
+ };
6005
+ requestBody?: {
6006
+ content: {
6007
+ "application/json": {
6008
+ all_day?: boolean;
6009
+ attachment_type?: "location" | "service" | "provider" | "service_provider";
6010
+ attachments?: string[];
6011
+ end_date?: string;
6012
+ end_time?: string | null;
6013
+ exception_dates?: string[];
6014
+ recurrence_rule?: {
6015
+ byday?: string[];
6016
+ count?: number | null;
6017
+ freq: "daily" | "weekly";
6018
+ interval?: number;
6019
+ until?: Record<string, never> | null;
6020
+ } | null;
6021
+ service_id?: string | null;
6022
+ start_date?: string;
6023
+ start_time?: string | null;
6024
+ time_zone?: string;
6025
+ title?: string;
6026
+ };
6027
+ };
6028
+ };
6029
+ responses: {
6030
+ 200: {
6031
+ headers: {
6032
+ [name: string]: unknown;
6033
+ };
6034
+ content: {
6035
+ "application/json": {
6036
+ data: {
6037
+ all_day: boolean;
6038
+ attachment_type: "location" | "service" | "provider" | "service_provider";
6039
+ attachments: string[];
6040
+ created_at: string;
6041
+ end_date: string;
6042
+ end_time: string | null;
6043
+ exception_dates: string[];
6044
+ id: string;
6045
+ object: "block";
6046
+ recurrence_rule: {
6047
+ byday?: string[];
6048
+ count?: number | null;
6049
+ freq: "daily" | "weekly";
6050
+ interval?: number;
6051
+ until?: Record<string, never> | null;
6052
+ } | null;
6053
+ service_id: string | null;
6054
+ start_date: string;
6055
+ start_time: string | null;
6056
+ time_zone: string | null;
6057
+ title: string | null;
6058
+ updated_at: string;
6059
+ };
6060
+ };
6061
+ };
6062
+ };
6063
+ 401: {
6064
+ headers: {
6065
+ [name: string]: unknown;
6066
+ };
6067
+ content: {
6068
+ "application/json": {
6069
+ errors: {
6070
+ detail: string;
6071
+ status?: string;
6072
+ title?: string;
6073
+ }[];
6074
+ };
6075
+ };
6076
+ };
6077
+ 422: {
6078
+ headers: {
6079
+ [name: string]: unknown;
6080
+ };
6081
+ content: {
6082
+ "application/json": {
6083
+ errors: {
6084
+ detail: string;
6085
+ source: {
6086
+ pointer: string;
6087
+ };
6088
+ title: string;
6089
+ }[];
6090
+ };
6091
+ };
6092
+ };
6093
+ };
6094
+ }> | undefined>;
6095
+
6096
+ interface Options$y extends MutationOptionsFor<"patch", "/v1/cancellation_reasons/{cancellation_reason_id}"> {
6097
+ client?: QueryClient;
6098
+ }
6099
+ declare const useUpdateCancellationReason: (options?: Options$y) => _tanstack_react_query.UseMutationResult<{
6100
+ data: Record<string, never>;
6101
+ }, openapi_typescript_helpers.ErrorResponse<{
6102
+ 200: {
6103
+ headers: {
6104
+ [name: string]: unknown;
6105
+ };
6106
+ content: {
6107
+ "application/json": {
6108
+ data: Record<string, never>;
6109
+ };
6110
+ };
6111
+ };
6112
+ 401: {
5822
6113
  headers: {
5823
6114
  [name: string]: unknown;
5824
6115
  };
@@ -5936,10 +6227,10 @@ declare const useUpdateCancellationReason: (options?: Options$v) => _tanstack_re
5936
6227
  };
5937
6228
  }>>;
5938
6229
 
5939
- interface Options$u extends MutationOptionsFor<"patch", "/v1/clients/{client_id}"> {
6230
+ interface Options$x extends MutationOptionsFor<"patch", "/v1/clients/{client_id}"> {
5940
6231
  client?: QueryClient;
5941
6232
  }
5942
- declare const useUpdateClient: (options?: Options$u) => _tanstack_react_query.UseMutationResult<{
6233
+ declare const useUpdateClient: (options?: Options$x) => _tanstack_react_query.UseMutationResult<{
5943
6234
  data: {
5944
6235
  created_at: string;
5945
6236
  email?: string | null;
@@ -6112,10 +6403,183 @@ declare const useUpdateClient: (options?: Options$u) => _tanstack_react_query.Us
6112
6403
  };
6113
6404
  }>>;
6114
6405
 
6115
- interface Options$t extends MutationOptionsFor<"patch", "/v1/providers/{provider_id}"> {
6406
+ interface Options$w extends MutationOptionsFor<"patch", "/v1/connected_accounts/{connected_account_id}"> {
6116
6407
  client?: QueryClient;
6117
6408
  }
6118
- declare const useUpdateProvider: (options?: Options$t) => _tanstack_react_query.UseMutationResult<{
6409
+ declare const useUpdateConnectedAccount: (options?: Options$w) => _tanstack_react_query.UseMutationResult<{
6410
+ data: {
6411
+ connection_scope: "user" | "account";
6412
+ created_at: string;
6413
+ display_name: string | null;
6414
+ email: string;
6415
+ external_account_id: string | null;
6416
+ external_subject: string;
6417
+ id: string;
6418
+ object: "connected_account";
6419
+ provider: "google" | "microsoft" | "zoom_admin";
6420
+ status: "active" | "reconnect_required" | "insufficient_permissions";
6421
+ updated_at: string;
6422
+ user_id: string | null;
6423
+ };
6424
+ }, openapi_typescript_helpers.ErrorResponse<{
6425
+ 200: {
6426
+ headers: {
6427
+ [name: string]: unknown;
6428
+ };
6429
+ content: {
6430
+ "application/json": {
6431
+ data: {
6432
+ connection_scope: "user" | "account";
6433
+ created_at: string;
6434
+ display_name: string | null;
6435
+ email: string;
6436
+ external_account_id: string | null;
6437
+ external_subject: string;
6438
+ id: string;
6439
+ object: "connected_account";
6440
+ provider: "google" | "microsoft" | "zoom_admin";
6441
+ status: "active" | "reconnect_required" | "insufficient_permissions";
6442
+ updated_at: string;
6443
+ user_id: string | null;
6444
+ };
6445
+ };
6446
+ };
6447
+ };
6448
+ 401: {
6449
+ headers: {
6450
+ [name: string]: unknown;
6451
+ };
6452
+ content: {
6453
+ "application/json": {
6454
+ errors: {
6455
+ detail: string;
6456
+ status?: string;
6457
+ title?: string;
6458
+ }[];
6459
+ };
6460
+ };
6461
+ };
6462
+ 404: {
6463
+ headers: {
6464
+ [name: string]: unknown;
6465
+ };
6466
+ content: {
6467
+ "application/json": {
6468
+ errors: {
6469
+ detail: "Not Found";
6470
+ status: "404";
6471
+ }[];
6472
+ };
6473
+ };
6474
+ };
6475
+ 422: {
6476
+ headers: {
6477
+ [name: string]: unknown;
6478
+ };
6479
+ content: {
6480
+ "application/json": {
6481
+ errors: {
6482
+ detail: string;
6483
+ source: {
6484
+ pointer: string;
6485
+ };
6486
+ title: string;
6487
+ }[];
6488
+ };
6489
+ };
6490
+ };
6491
+ }, `${string}/${string}`>, openapi_fetch.FetchOptions<{
6492
+ parameters: {
6493
+ query?: never;
6494
+ header?: {
6495
+ "X-SavvyCal-Account"?: string;
6496
+ };
6497
+ path: {
6498
+ connected_account_id: string;
6499
+ };
6500
+ cookie?: never;
6501
+ };
6502
+ requestBody?: {
6503
+ content: {
6504
+ "application/json": {
6505
+ display_name?: string | null;
6506
+ };
6507
+ };
6508
+ };
6509
+ responses: {
6510
+ 200: {
6511
+ headers: {
6512
+ [name: string]: unknown;
6513
+ };
6514
+ content: {
6515
+ "application/json": {
6516
+ data: {
6517
+ connection_scope: "user" | "account";
6518
+ created_at: string;
6519
+ display_name: string | null;
6520
+ email: string;
6521
+ external_account_id: string | null;
6522
+ external_subject: string;
6523
+ id: string;
6524
+ object: "connected_account";
6525
+ provider: "google" | "microsoft" | "zoom_admin";
6526
+ status: "active" | "reconnect_required" | "insufficient_permissions";
6527
+ updated_at: string;
6528
+ user_id: string | null;
6529
+ };
6530
+ };
6531
+ };
6532
+ };
6533
+ 401: {
6534
+ headers: {
6535
+ [name: string]: unknown;
6536
+ };
6537
+ content: {
6538
+ "application/json": {
6539
+ errors: {
6540
+ detail: string;
6541
+ status?: string;
6542
+ title?: string;
6543
+ }[];
6544
+ };
6545
+ };
6546
+ };
6547
+ 404: {
6548
+ headers: {
6549
+ [name: string]: unknown;
6550
+ };
6551
+ content: {
6552
+ "application/json": {
6553
+ errors: {
6554
+ detail: "Not Found";
6555
+ status: "404";
6556
+ }[];
6557
+ };
6558
+ };
6559
+ };
6560
+ 422: {
6561
+ headers: {
6562
+ [name: string]: unknown;
6563
+ };
6564
+ content: {
6565
+ "application/json": {
6566
+ errors: {
6567
+ detail: string;
6568
+ source: {
6569
+ pointer: string;
6570
+ };
6571
+ title: string;
6572
+ }[];
6573
+ };
6574
+ };
6575
+ };
6576
+ };
6577
+ }>>;
6578
+
6579
+ interface Options$v extends MutationOptionsFor<"patch", "/v1/providers/{provider_id}"> {
6580
+ client?: QueryClient;
6581
+ }
6582
+ declare const useUpdateProvider: (options?: Options$v) => _tanstack_react_query.UseMutationResult<{
6119
6583
  data: {
6120
6584
  created_at: string;
6121
6585
  display_name: string;
@@ -6276,10 +6740,10 @@ declare const useUpdateProvider: (options?: Options$t) => _tanstack_react_query.
6276
6740
  };
6277
6741
  }>>;
6278
6742
 
6279
- interface Options$s extends MutationOptionsFor<"patch", "/v1/provider_schedules/{provider_schedule_id}"> {
6743
+ interface Options$u extends MutationOptionsFor<"patch", "/v1/provider_schedules/{provider_schedule_id}"> {
6280
6744
  client?: QueryClient;
6281
6745
  }
6282
- declare const useUpdateProviderSchedule: (options?: Options$s) => _tanstack_react_query.UseMutationResult<{
6746
+ declare const useUpdateProviderSchedule: (options?: Options$u) => _tanstack_react_query.UseMutationResult<{
6283
6747
  data: {
6284
6748
  created_at: string;
6285
6749
  effective_from: string;
@@ -6436,10 +6900,10 @@ declare const useUpdateProviderSchedule: (options?: Options$s) => _tanstack_reac
6436
6900
  };
6437
6901
  }> | undefined>;
6438
6902
 
6439
- interface Options$r extends MutationOptionsFor<"patch", "/v1/services/{service_id}"> {
6903
+ interface Options$t extends MutationOptionsFor<"patch", "/v1/services/{service_id}"> {
6440
6904
  client?: QueryClient;
6441
6905
  }
6442
- declare const useUpdateService: (options?: Options$r) => _tanstack_react_query.UseMutationResult<{
6906
+ declare const useUpdateService: (options?: Options$t) => _tanstack_react_query.UseMutationResult<{
6443
6907
  data: {
6444
6908
  appointment_type: "in_person" | "virtual";
6445
6909
  booking_policy: {
@@ -6774,10 +7238,10 @@ declare const useSavvyCalQueryClient: (overrideClient?: QueryClient) => openapi_
6774
7238
  declare const useSavvyCalFetchClient: (overrideClient?: FetchClient) => openapi_fetch.Client<_savvycal_appointments_core.paths, `${string}/${string}`>;
6775
7239
 
6776
7240
  type AccountByIdParams = paths["/v1/accounts/{account_id}"]["get"]["parameters"];
6777
- interface Options$q extends QueryOptionsFor<"get", "/v1/accounts/{account_id}"> {
7241
+ interface Options$s extends QueryOptionsFor<"get", "/v1/accounts/{account_id}"> {
6778
7242
  client?: QueryClient;
6779
7243
  }
6780
- declare const useAccountById: (account_id: AccountByIdParams["path"]["account_id"], options?: Options$q) => _tanstack_react_query.UseQueryResult<{
7244
+ declare const useAccountById: (account_id: AccountByIdParams["path"]["account_id"], options?: Options$s) => _tanstack_react_query.UseQueryResult<{
6781
7245
  data?: {
6782
7246
  created_at: string;
6783
7247
  id: string;
@@ -6831,10 +7295,10 @@ declare const useAccountById: (account_id: AccountByIdParams["path"]["account_id
6831
7295
  };
6832
7296
  }, `${string}/${string}`>>;
6833
7297
 
6834
- interface Options$p extends QueryOptionsFor<"get", "/v1/users"> {
7298
+ interface Options$r extends QueryOptionsFor<"get", "/v1/users"> {
6835
7299
  client?: QueryClient;
6836
7300
  }
6837
- declare const useAccountUsers: (options?: Options$p) => _tanstack_react_query.UseQueryResult<{
7301
+ declare const useAccountUsers: (options?: Options$r) => _tanstack_react_query.UseQueryResult<{
6838
7302
  data?: {
6839
7303
  object: "account_user";
6840
7304
  passive: boolean;
@@ -6916,10 +7380,10 @@ declare const useAccountUsers: (options?: Options$p) => _tanstack_react_query.Us
6916
7380
  }, `${string}/${string}`>>;
6917
7381
 
6918
7382
  type AccountsParams = paths["/v1/accounts"]["get"]["parameters"];
6919
- interface Options$o extends QueryOptionsFor<"get", "/v1/accounts"> {
7383
+ interface Options$q extends QueryOptionsFor<"get", "/v1/accounts"> {
6920
7384
  client?: QueryClient;
6921
7385
  }
6922
- declare const useAccounts: (queryParams?: AccountsParams["query"], options?: Options$o) => _tanstack_react_query.UseQueryResult<{
7386
+ declare const useAccounts: (queryParams?: AccountsParams["query"], options?: Options$q) => _tanstack_react_query.UseQueryResult<{
6923
7387
  data: {
6924
7388
  created_at: string;
6925
7389
  id: string;
@@ -7003,10 +7467,10 @@ declare const useAccounts: (queryParams?: AccountsParams["query"], options?: Opt
7003
7467
  }, `${string}/${string}`>>;
7004
7468
 
7005
7469
  type AppointmentParams = paths["/v1/appointments/{appointment_id}"]["get"]["parameters"];
7006
- interface Options$n extends QueryOptionsFor<"get", "/v1/appointments/{appointment_id}"> {
7470
+ interface Options$p extends QueryOptionsFor<"get", "/v1/appointments/{appointment_id}"> {
7007
7471
  client?: QueryClient;
7008
7472
  }
7009
- declare const useAppointment: (appointment_id: AppointmentParams["path"]["appointment_id"], queryParams?: AppointmentParams["query"], options?: Options$n) => _tanstack_react_query.UseQueryResult<{
7473
+ declare const useAppointment: (appointment_id: AppointmentParams["path"]["appointment_id"], queryParams?: AppointmentParams["query"], options?: Options$p) => _tanstack_react_query.UseQueryResult<{
7010
7474
  data: {
7011
7475
  appointment_type: "in_person" | "virtual";
7012
7476
  cancellation_events: {
@@ -7193,6 +7657,7 @@ declare const useAppointment: (appointment_id: AppointmentParams["path"]["appoin
7193
7657
  cancel: string[];
7194
7658
  confirm: string[];
7195
7659
  ics: string[];
7660
+ join: string[];
7196
7661
  reschedule: string[];
7197
7662
  };
7198
7663
  };
@@ -7389,6 +7854,7 @@ declare const useAppointment: (appointment_id: AppointmentParams["path"]["appoin
7389
7854
  cancel: string[];
7390
7855
  confirm: string[];
7391
7856
  ics: string[];
7857
+ join: string[];
7392
7858
  reschedule: string[];
7393
7859
  };
7394
7860
  };
@@ -7428,10 +7894,10 @@ declare const useAppointment: (appointment_id: AppointmentParams["path"]["appoin
7428
7894
  }, `${string}/${string}`>>;
7429
7895
 
7430
7896
  type AppointmentsParams = paths["/v1/appointments"]["get"]["parameters"];
7431
- interface Options$m extends QueryOptionsFor<"get", "/v1/appointments"> {
7897
+ interface Options$o extends QueryOptionsFor<"get", "/v1/appointments"> {
7432
7898
  client?: QueryClient;
7433
7899
  }
7434
- declare const useAppointments: (queryParams?: AppointmentsParams["query"], options?: Options$m) => _tanstack_react_query.UseQueryResult<{
7900
+ declare const useAppointments: (queryParams?: AppointmentsParams["query"], options?: Options$o) => _tanstack_react_query.UseQueryResult<{
7435
7901
  data: {
7436
7902
  appointment_type: "in_person" | "virtual";
7437
7903
  cancellation_events: {
@@ -7618,6 +8084,7 @@ declare const useAppointments: (queryParams?: AppointmentsParams["query"], optio
7618
8084
  cancel: string[];
7619
8085
  confirm: string[];
7620
8086
  ics: string[];
8087
+ join: string[];
7621
8088
  reschedule: string[];
7622
8089
  };
7623
8090
  }[];
@@ -7820,6 +8287,7 @@ declare const useAppointments: (queryParams?: AppointmentsParams["query"], optio
7820
8287
  cancel: string[];
7821
8288
  confirm: string[];
7822
8289
  ics: string[];
8290
+ join: string[];
7823
8291
  reschedule: string[];
7824
8292
  };
7825
8293
  }[];
@@ -7865,10 +8333,10 @@ declare const useAppointments: (queryParams?: AppointmentsParams["query"], optio
7865
8333
  }, `${string}/${string}`>>;
7866
8334
 
7867
8335
  type BlockParams = paths["/v1/blocks/{block_id}"]["get"]["parameters"];
7868
- interface Options$l extends QueryOptionsFor<"get", "/v1/blocks/{block_id}"> {
8336
+ interface Options$n extends QueryOptionsFor<"get", "/v1/blocks/{block_id}"> {
7869
8337
  client?: QueryClient;
7870
8338
  }
7871
- declare const useBlock: (block_id: BlockParams["path"]["block_id"], options?: Options$l) => _tanstack_react_query.UseQueryResult<{
8339
+ declare const useBlock: (block_id: BlockParams["path"]["block_id"], options?: Options$n) => _tanstack_react_query.UseQueryResult<{
7872
8340
  data: {
7873
8341
  all_day: boolean;
7874
8342
  attachment_type: "location" | "service" | "provider" | "service_provider";
@@ -7957,10 +8425,10 @@ declare const useBlock: (block_id: BlockParams["path"]["block_id"], options?: Op
7957
8425
  }, `${string}/${string}`>>;
7958
8426
 
7959
8427
  type BlocksParams = paths["/v1/blocks"]["get"]["parameters"];
7960
- interface Options$k extends QueryOptionsFor<"get", "/v1/blocks"> {
8428
+ interface Options$m extends QueryOptionsFor<"get", "/v1/blocks"> {
7961
8429
  client?: QueryClient;
7962
8430
  }
7963
- declare const useBlocks: (queryParams?: BlocksParams["query"], options?: Options$k) => _tanstack_react_query.UseQueryResult<{
8431
+ declare const useBlocks: (queryParams?: BlocksParams["query"], options?: Options$m) => _tanstack_react_query.UseQueryResult<{
7964
8432
  data: {
7965
8433
  all_day: boolean;
7966
8434
  attachment_type: "location" | "service" | "provider" | "service_provider";
@@ -8064,10 +8532,10 @@ declare const useBlocks: (queryParams?: BlocksParams["query"], options?: Options
8064
8532
  }, `${string}/${string}`>>;
8065
8533
 
8066
8534
  type CancellationReasonParams = paths["/v1/cancellation_reasons/{cancellation_reason_id}"]["get"]["parameters"];
8067
- interface Options$j extends QueryOptionsFor<"get", "/v1/cancellation_reasons/{cancellation_reason_id}"> {
8535
+ interface Options$l extends QueryOptionsFor<"get", "/v1/cancellation_reasons/{cancellation_reason_id}"> {
8068
8536
  client?: QueryClient;
8069
8537
  }
8070
- declare const useCancellationReason: (cancellation_reason_id: CancellationReasonParams["path"]["cancellation_reason_id"], options?: Options$j) => _tanstack_react_query.UseQueryResult<{
8538
+ declare const useCancellationReason: (cancellation_reason_id: CancellationReasonParams["path"]["cancellation_reason_id"], options?: Options$l) => _tanstack_react_query.UseQueryResult<{
8071
8539
  data: Record<string, never>;
8072
8540
  }, openapi_typescript_helpers.ErrorResponse<{
8073
8541
  200: {
@@ -8109,10 +8577,10 @@ declare const useCancellationReason: (cancellation_reason_id: CancellationReason
8109
8577
  };
8110
8578
  }, `${string}/${string}`>>;
8111
8579
 
8112
- interface Options$i extends QueryOptionsFor<"get", "/v1/cancellation_reasons"> {
8580
+ interface Options$k extends QueryOptionsFor<"get", "/v1/cancellation_reasons"> {
8113
8581
  client?: QueryClient;
8114
8582
  }
8115
- declare const useCancellationReasons: (options?: Options$i) => _tanstack_react_query.UseQueryResult<{
8583
+ declare const useCancellationReasons: (options?: Options$k) => _tanstack_react_query.UseQueryResult<{
8116
8584
  data: ({
8117
8585
  id: string;
8118
8586
  name: string;
@@ -8168,10 +8636,10 @@ declare const useCancellationReasons: (options?: Options$i) => _tanstack_react_q
8168
8636
  }, `${string}/${string}`>>;
8169
8637
 
8170
8638
  type ClientParams = paths["/v1/clients/{client_id}"]["get"]["parameters"];
8171
- interface Options$h extends QueryOptionsFor<"get", "/v1/clients/{client_id}"> {
8639
+ interface Options$j extends QueryOptionsFor<"get", "/v1/clients/{client_id}"> {
8172
8640
  client?: QueryClient;
8173
8641
  }
8174
- declare const useClient: (client_id: ClientParams["path"]["client_id"], options?: Options$h) => _tanstack_react_query.UseQueryResult<{
8642
+ declare const useClient: (client_id: ClientParams["path"]["client_id"], options?: Options$j) => _tanstack_react_query.UseQueryResult<{
8175
8643
  data: {
8176
8644
  created_at: string;
8177
8645
  email?: string | null;
@@ -8238,10 +8706,10 @@ declare const useClient: (client_id: ClientParams["path"]["client_id"], options?
8238
8706
  }, `${string}/${string}`>>;
8239
8707
 
8240
8708
  type ClientsParams = paths["/v1/clients"]["get"]["parameters"];
8241
- interface Options$g extends QueryOptionsFor<"get", "/v1/clients"> {
8709
+ interface Options$i extends QueryOptionsFor<"get", "/v1/clients"> {
8242
8710
  client?: QueryClient;
8243
8711
  }
8244
- declare const useClients: (queryParams?: ClientsParams["query"], options?: Options$g) => _tanstack_react_query.UseQueryResult<{
8712
+ declare const useClients: (queryParams?: ClientsParams["query"], options?: Options$i) => _tanstack_react_query.UseQueryResult<{
8245
8713
  data: {
8246
8714
  created_at: string;
8247
8715
  email?: string | null;
@@ -8322,6 +8790,165 @@ declare const useClients: (queryParams?: ClientsParams["query"], options?: Optio
8322
8790
  };
8323
8791
  }, `${string}/${string}`>>;
8324
8792
 
8793
+ type ConnectedAccountParams = paths["/v1/connected_accounts/{connected_account_id}"]["get"]["parameters"];
8794
+ interface Options$h extends QueryOptionsFor<"get", "/v1/connected_accounts/{connected_account_id}"> {
8795
+ client?: QueryClient;
8796
+ }
8797
+ declare const useConnectedAccount: (connected_account_id: ConnectedAccountParams["path"]["connected_account_id"], options?: Options$h) => _tanstack_react_query.UseQueryResult<{
8798
+ data: {
8799
+ connection_scope: "user" | "account";
8800
+ created_at: string;
8801
+ display_name: string | null;
8802
+ email: string;
8803
+ external_account_id: string | null;
8804
+ external_subject: string;
8805
+ id: string;
8806
+ object: "connected_account";
8807
+ provider: "google" | "microsoft" | "zoom_admin";
8808
+ status: "active" | "reconnect_required" | "insufficient_permissions";
8809
+ updated_at: string;
8810
+ user_id: string | null;
8811
+ };
8812
+ }, openapi_typescript_helpers.ErrorResponse<{
8813
+ 200: {
8814
+ headers: {
8815
+ [name: string]: unknown;
8816
+ };
8817
+ content: {
8818
+ "application/json": {
8819
+ data: {
8820
+ connection_scope: "user" | "account";
8821
+ created_at: string;
8822
+ display_name: string | null;
8823
+ email: string;
8824
+ external_account_id: string | null;
8825
+ external_subject: string;
8826
+ id: string;
8827
+ object: "connected_account";
8828
+ provider: "google" | "microsoft" | "zoom_admin";
8829
+ status: "active" | "reconnect_required" | "insufficient_permissions";
8830
+ updated_at: string;
8831
+ user_id: string | null;
8832
+ };
8833
+ };
8834
+ };
8835
+ };
8836
+ 401: {
8837
+ headers: {
8838
+ [name: string]: unknown;
8839
+ };
8840
+ content: {
8841
+ "application/json": {
8842
+ errors: {
8843
+ detail: string;
8844
+ status?: string;
8845
+ title?: string;
8846
+ }[];
8847
+ };
8848
+ };
8849
+ };
8850
+ 404: {
8851
+ headers: {
8852
+ [name: string]: unknown;
8853
+ };
8854
+ content: {
8855
+ "application/json": {
8856
+ errors: {
8857
+ detail: "Not Found";
8858
+ status: "404";
8859
+ }[];
8860
+ };
8861
+ };
8862
+ };
8863
+ }, `${string}/${string}`>>;
8864
+
8865
+ type ConnectedAccountsParams = paths["/v1/connected_accounts"]["get"]["parameters"];
8866
+ interface Options$g extends QueryOptionsFor<"get", "/v1/connected_accounts"> {
8867
+ client?: QueryClient;
8868
+ }
8869
+ declare const useConnectedAccounts: (queryParams?: ConnectedAccountsParams["query"], options?: Options$g) => _tanstack_react_query.UseQueryResult<{
8870
+ data: {
8871
+ connection_scope: "user" | "account";
8872
+ created_at: string;
8873
+ display_name: string | null;
8874
+ email: string;
8875
+ external_account_id: string | null;
8876
+ external_subject: string;
8877
+ id: string;
8878
+ object: "connected_account";
8879
+ provider: "google" | "microsoft" | "zoom_admin";
8880
+ status: "active" | "reconnect_required" | "insufficient_permissions";
8881
+ updated_at: string;
8882
+ user_id: string | null;
8883
+ }[];
8884
+ meta: {
8885
+ current_page: number;
8886
+ page_size: number;
8887
+ total_count: number;
8888
+ total_pages: number;
8889
+ };
8890
+ }, openapi_typescript_helpers.ErrorResponse<{
8891
+ 200: {
8892
+ headers: {
8893
+ [name: string]: unknown;
8894
+ };
8895
+ content: {
8896
+ "application/json": {
8897
+ data: {
8898
+ connection_scope: "user" | "account";
8899
+ created_at: string;
8900
+ display_name: string | null;
8901
+ email: string;
8902
+ external_account_id: string | null;
8903
+ external_subject: string;
8904
+ id: string;
8905
+ object: "connected_account";
8906
+ provider: "google" | "microsoft" | "zoom_admin";
8907
+ status: "active" | "reconnect_required" | "insufficient_permissions";
8908
+ updated_at: string;
8909
+ user_id: string | null;
8910
+ }[];
8911
+ meta: {
8912
+ current_page: number;
8913
+ page_size: number;
8914
+ total_count: number;
8915
+ total_pages: number;
8916
+ };
8917
+ };
8918
+ };
8919
+ };
8920
+ 401: {
8921
+ headers: {
8922
+ [name: string]: unknown;
8923
+ };
8924
+ content: {
8925
+ "application/json": {
8926
+ errors: {
8927
+ detail: string;
8928
+ status?: string;
8929
+ title?: string;
8930
+ }[];
8931
+ };
8932
+ };
8933
+ };
8934
+ 422: {
8935
+ headers: {
8936
+ [name: string]: unknown;
8937
+ };
8938
+ content: {
8939
+ "application/json": {
8940
+ errors: {
8941
+ detail: string;
8942
+ source: {
8943
+ pointer: string;
8944
+ };
8945
+ title: string;
8946
+ }[];
8947
+ };
8948
+ };
8949
+ };
8950
+ }, `${string}/${string}`>>;
8951
+
8325
8952
  interface Options$f extends QueryOptionsFor<"get", "/v1/account"> {
8326
8953
  client?: QueryClient;
8327
8954
  }
@@ -9605,4 +10232,4 @@ declare const useServices: (queryParams?: ServicesParams["query"], options?: Opt
9605
10232
  };
9606
10233
  }, `${string}/${string}`>>;
9607
10234
 
9608
- export { type MutationOptionsFor, type QueryClient, type QueryOptionsFor, SavvyCalProvider, type SavvyCalProviderProps, createQueryClient, useAccountById, useAccountUsers, useAccounts, useAppointment, useAppointments, useBlock, useBlocks, useCancelAppointment, useCancelPublicAppointment, useCancellationReason, useCancellationReasons, useClient, useClients, useConfirmAppointment, useCreateAccount, useCreateAccountUser, useCreateAppointment, useCreateBlock, useCreateCancellationReason, useCreateClient, useCreateDashboardSession, useCreateProvider, useCreateProviderSchedule, useCreatePublicAppointment, useCreateService, useCreateServiceProvider, useCurrentAccount, useCurrentAccountUser, useCurrentPlatform, useDeactivateProvider, useDeleteBlock, useDeleteCancellationReason, useDeleteClient, useDeleteProviderSchedule, useDeleteService, useDeleteServiceProvider, useEarliestPublicServiceSlot, useProvider, useProviderSchedule, useProviderSchedules, useProviders, usePublicAppointment, usePublicCancellationReasons, usePublicServiceSlots, useRescheduleAppointment, useReschedulePublicAppointment, useRoles, useSavvyCalFetchClient, useSavvyCalQueryClient, useService, useServiceProviders, useServiceSlots, useServices, useUpdateAccount, useUpdateBlock, useUpdateCancellationReason, useUpdateClient, useUpdateProvider, useUpdateProviderSchedule, useUpdateService };
10235
+ export { type MutationOptionsFor, type QueryClient, type QueryOptionsFor, SavvyCalProvider, type SavvyCalProviderProps, createQueryClient, useAccountById, useAccountUsers, useAccounts, useAppointment, useAppointments, useBlock, useBlocks, useCancelAppointment, useCancelPublicAppointment, useCancellationReason, useCancellationReasons, useClient, useClients, useConfirmAppointment, useConnectedAccount, useConnectedAccounts, useCreateAccount, useCreateAccountUser, useCreateAppointment, useCreateBlock, useCreateCancellationReason, useCreateClient, useCreateDashboardSession, useCreateProvider, useCreateProviderSchedule, useCreatePublicAppointment, useCreateService, useCreateServiceProvider, useCurrentAccount, useCurrentAccountUser, useCurrentPlatform, useDeactivateProvider, useDeleteBlock, useDeleteCancellationReason, useDeleteClient, useDeleteConnectedAccount, useDeleteProviderSchedule, useDeleteService, useDeleteServiceProvider, useEarliestPublicServiceSlot, useProvider, useProviderSchedule, useProviderSchedules, useProviders, usePublicAppointment, usePublicCancellationReasons, usePublicServiceSlots, useRescheduleAppointment, useReschedulePublicAppointment, useRoles, useSavvyCalFetchClient, useSavvyCalQueryClient, useService, useServiceProviders, useServiceSlots, useServices, useUpdateAccount, useUpdateAccountUser, useUpdateBlock, useUpdateCancellationReason, useUpdateClient, useUpdateConnectedAccount, useUpdateProvider, useUpdateProviderSchedule, useUpdateService };