@savvycal/appointments-react-query 1.1.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -270,6 +270,12 @@ declare const useAbandonBookingIntent: (options?: Options$1n) => _tanstack_react
270
270
  reschedule: string[];
271
271
  };
272
272
  } | null;
273
+ booking_policy: {
274
+ hold: {
275
+ duration: string | null;
276
+ enabled: boolean;
277
+ };
278
+ };
273
279
  client?: {
274
280
  created_at: string;
275
281
  email?: string | null;
@@ -314,9 +320,7 @@ declare const useAbandonBookingIntent: (options?: Options$1n) => _tanstack_react
314
320
  pointer: string;
315
321
  };
316
322
  title: string;
317
- }[];
318
- hold_duration?: string | null;
319
- hold_enabled: boolean;
323
+ }[] | null;
320
324
  hold_until?: string | null;
321
325
  id: string;
322
326
  locked_fields?: string[];
@@ -646,6 +650,12 @@ declare const useAbandonBookingIntent: (options?: Options$1n) => _tanstack_react
646
650
  reschedule: string[];
647
651
  };
648
652
  } | null;
653
+ booking_policy: {
654
+ hold: {
655
+ duration: string | null;
656
+ enabled: boolean;
657
+ };
658
+ };
649
659
  client?: {
650
660
  created_at: string;
651
661
  email?: string | null;
@@ -690,9 +700,7 @@ declare const useAbandonBookingIntent: (options?: Options$1n) => _tanstack_react
690
700
  pointer: string;
691
701
  };
692
702
  title: string;
693
- }[];
694
- hold_duration?: string | null;
695
- hold_enabled: boolean;
703
+ }[] | null;
696
704
  hold_until?: string | null;
697
705
  id: string;
698
706
  locked_fields?: string[];
@@ -1081,6 +1089,12 @@ declare const useAbandonBookingIntent: (options?: Options$1n) => _tanstack_react
1081
1089
  reschedule: string[];
1082
1090
  };
1083
1091
  } | null;
1092
+ booking_policy: {
1093
+ hold: {
1094
+ duration: string | null;
1095
+ enabled: boolean;
1096
+ };
1097
+ };
1084
1098
  client?: {
1085
1099
  created_at: string;
1086
1100
  email?: string | null;
@@ -1125,9 +1139,7 @@ declare const useAbandonBookingIntent: (options?: Options$1n) => _tanstack_react
1125
1139
  pointer: string;
1126
1140
  };
1127
1141
  title: string;
1128
- }[];
1129
- hold_duration?: string | null;
1130
- hold_enabled: boolean;
1142
+ }[] | null;
1131
1143
  hold_until?: string | null;
1132
1144
  id: string;
1133
1145
  locked_fields?: string[];
@@ -1339,7 +1351,7 @@ declare const useAbandonPublicBookingIntent: (options?: Options$1m) => _tanstack
1339
1351
  pointer: string;
1340
1352
  };
1341
1353
  title: string;
1342
- }[];
1354
+ }[] | null;
1343
1355
  hold_until?: string | null;
1344
1356
  id: string;
1345
1357
  locked_fields?: string[];
@@ -1429,7 +1441,7 @@ declare const useAbandonPublicBookingIntent: (options?: Options$1m) => _tanstack
1429
1441
  pointer: string;
1430
1442
  };
1431
1443
  title: string;
1432
- }[];
1444
+ }[] | null;
1433
1445
  hold_until?: string | null;
1434
1446
  id: string;
1435
1447
  locked_fields?: string[];
@@ -2774,6 +2786,12 @@ declare const useCompleteBookingIntent: (options?: Options$1i) => _tanstack_reac
2774
2786
  reschedule: string[];
2775
2787
  };
2776
2788
  } | null;
2789
+ booking_policy: {
2790
+ hold: {
2791
+ duration: string | null;
2792
+ enabled: boolean;
2793
+ };
2794
+ };
2777
2795
  client?: {
2778
2796
  created_at: string;
2779
2797
  email?: string | null;
@@ -2818,9 +2836,7 @@ declare const useCompleteBookingIntent: (options?: Options$1i) => _tanstack_reac
2818
2836
  pointer: string;
2819
2837
  };
2820
2838
  title: string;
2821
- }[];
2822
- hold_duration?: string | null;
2823
- hold_enabled: boolean;
2839
+ }[] | null;
2824
2840
  hold_until?: string | null;
2825
2841
  id: string;
2826
2842
  locked_fields?: string[];
@@ -3150,6 +3166,12 @@ declare const useCompleteBookingIntent: (options?: Options$1i) => _tanstack_reac
3150
3166
  reschedule: string[];
3151
3167
  };
3152
3168
  } | null;
3169
+ booking_policy: {
3170
+ hold: {
3171
+ duration: string | null;
3172
+ enabled: boolean;
3173
+ };
3174
+ };
3153
3175
  client?: {
3154
3176
  created_at: string;
3155
3177
  email?: string | null;
@@ -3194,9 +3216,7 @@ declare const useCompleteBookingIntent: (options?: Options$1i) => _tanstack_reac
3194
3216
  pointer: string;
3195
3217
  };
3196
3218
  title: string;
3197
- }[];
3198
- hold_duration?: string | null;
3199
- hold_enabled: boolean;
3219
+ }[] | null;
3200
3220
  hold_until?: string | null;
3201
3221
  id: string;
3202
3222
  locked_fields?: string[];
@@ -3618,6 +3638,12 @@ declare const useCompleteBookingIntent: (options?: Options$1i) => _tanstack_reac
3618
3638
  reschedule: string[];
3619
3639
  };
3620
3640
  } | null;
3641
+ booking_policy: {
3642
+ hold: {
3643
+ duration: string | null;
3644
+ enabled: boolean;
3645
+ };
3646
+ };
3621
3647
  client?: {
3622
3648
  created_at: string;
3623
3649
  email?: string | null;
@@ -3662,9 +3688,7 @@ declare const useCompleteBookingIntent: (options?: Options$1i) => _tanstack_reac
3662
3688
  pointer: string;
3663
3689
  };
3664
3690
  title: string;
3665
- }[];
3666
- hold_duration?: string | null;
3667
- hold_enabled: boolean;
3691
+ }[] | null;
3668
3692
  hold_until?: string | null;
3669
3693
  id: string;
3670
3694
  locked_fields?: string[];
@@ -3876,7 +3900,7 @@ declare const useCompletePublicBookingIntent: (options?: Options$1h) => _tanstac
3876
3900
  pointer: string;
3877
3901
  };
3878
3902
  title: string;
3879
- }[];
3903
+ }[] | null;
3880
3904
  hold_until?: string | null;
3881
3905
  id: string;
3882
3906
  locked_fields?: string[];
@@ -3995,7 +4019,7 @@ declare const useCompletePublicBookingIntent: (options?: Options$1h) => _tanstac
3995
4019
  pointer: string;
3996
4020
  };
3997
4021
  title: string;
3998
- }[];
4022
+ }[] | null;
3999
4023
  hold_until?: string | null;
4000
4024
  id: string;
4001
4025
  locked_fields?: string[];
@@ -6289,6 +6313,12 @@ declare const useCreateBookingIntent: (options?: Options$1b) => _tanstack_react_
6289
6313
  reschedule: string[];
6290
6314
  };
6291
6315
  } | null;
6316
+ booking_policy: {
6317
+ hold: {
6318
+ duration: string | null;
6319
+ enabled: boolean;
6320
+ };
6321
+ };
6292
6322
  client?: {
6293
6323
  created_at: string;
6294
6324
  email?: string | null;
@@ -6333,9 +6363,7 @@ declare const useCreateBookingIntent: (options?: Options$1b) => _tanstack_react_
6333
6363
  pointer: string;
6334
6364
  };
6335
6365
  title: string;
6336
- }[];
6337
- hold_duration?: string | null;
6338
- hold_enabled: boolean;
6366
+ }[] | null;
6339
6367
  hold_until?: string | null;
6340
6368
  id: string;
6341
6369
  locked_fields?: string[];
@@ -6665,6 +6693,12 @@ declare const useCreateBookingIntent: (options?: Options$1b) => _tanstack_react_
6665
6693
  reschedule: string[];
6666
6694
  };
6667
6695
  } | null;
6696
+ booking_policy: {
6697
+ hold: {
6698
+ duration: string | null;
6699
+ enabled: boolean;
6700
+ };
6701
+ };
6668
6702
  client?: {
6669
6703
  created_at: string;
6670
6704
  email?: string | null;
@@ -6709,9 +6743,7 @@ declare const useCreateBookingIntent: (options?: Options$1b) => _tanstack_react_
6709
6743
  pointer: string;
6710
6744
  };
6711
6745
  title: string;
6712
- }[];
6713
- hold_duration?: string | null;
6714
- hold_enabled: boolean;
6746
+ }[] | null;
6715
6747
  hold_until?: string | null;
6716
6748
  id: string;
6717
6749
  locked_fields?: string[];
@@ -6879,6 +6911,12 @@ declare const useCreateBookingIntent: (options?: Options$1b) => _tanstack_react_
6879
6911
  content: {
6880
6912
  "application/json": {
6881
6913
  auto_assign_provider?: boolean | null;
6914
+ booking_policy?: {
6915
+ hold?: {
6916
+ duration?: string | null;
6917
+ enabled?: boolean;
6918
+ } | null;
6919
+ } | null;
6882
6920
  client_data?: {
6883
6921
  email?: string | null;
6884
6922
  fields?: {
@@ -6893,8 +6931,6 @@ declare const useCreateBookingIntent: (options?: Options$1b) => _tanstack_react_
6893
6931
  } | null;
6894
6932
  client_id?: string | null;
6895
6933
  end_at?: string | null;
6896
- hold_duration?: string | null;
6897
- hold_enabled?: boolean | null;
6898
6934
  locked_fields?: string[] | null;
6899
6935
  metadata?: {
6900
6936
  [key: string]: unknown;
@@ -7135,6 +7171,12 @@ declare const useCreateBookingIntent: (options?: Options$1b) => _tanstack_react_
7135
7171
  reschedule: string[];
7136
7172
  };
7137
7173
  } | null;
7174
+ booking_policy: {
7175
+ hold: {
7176
+ duration: string | null;
7177
+ enabled: boolean;
7178
+ };
7179
+ };
7138
7180
  client?: {
7139
7181
  created_at: string;
7140
7182
  email?: string | null;
@@ -7179,9 +7221,7 @@ declare const useCreateBookingIntent: (options?: Options$1b) => _tanstack_react_
7179
7221
  pointer: string;
7180
7222
  };
7181
7223
  title: string;
7182
- }[];
7183
- hold_duration?: string | null;
7184
- hold_enabled: boolean;
7224
+ }[] | null;
7185
7225
  hold_until?: string | null;
7186
7226
  id: string;
7187
7227
  locked_fields?: string[];
@@ -8578,7 +8618,7 @@ declare const useCreatePublicBookingIntent: (options?: Options$12) => _tanstack_
8578
8618
  pointer: string;
8579
8619
  };
8580
8620
  title: string;
8581
- }[];
8621
+ }[] | null;
8582
8622
  hold_until?: string | null;
8583
8623
  id: string;
8584
8624
  locked_fields?: string[];
@@ -8696,7 +8736,7 @@ declare const useCreatePublicBookingIntent: (options?: Options$12) => _tanstack_
8696
8736
  pointer: string;
8697
8737
  };
8698
8738
  title: string;
8699
- }[];
8739
+ }[] | null;
8700
8740
  hold_until?: string | null;
8701
8741
  id: string;
8702
8742
  locked_fields?: string[];
@@ -12138,6 +12178,12 @@ declare const useUpdateBookingIntent: (options?: Options$K) => _tanstack_react_q
12138
12178
  reschedule: string[];
12139
12179
  };
12140
12180
  } | null;
12181
+ booking_policy: {
12182
+ hold: {
12183
+ duration: string | null;
12184
+ enabled: boolean;
12185
+ };
12186
+ };
12141
12187
  client?: {
12142
12188
  created_at: string;
12143
12189
  email?: string | null;
@@ -12182,9 +12228,7 @@ declare const useUpdateBookingIntent: (options?: Options$K) => _tanstack_react_q
12182
12228
  pointer: string;
12183
12229
  };
12184
12230
  title: string;
12185
- }[];
12186
- hold_duration?: string | null;
12187
- hold_enabled: boolean;
12231
+ }[] | null;
12188
12232
  hold_until?: string | null;
12189
12233
  id: string;
12190
12234
  locked_fields?: string[];
@@ -12514,6 +12558,12 @@ declare const useUpdateBookingIntent: (options?: Options$K) => _tanstack_react_q
12514
12558
  reschedule: string[];
12515
12559
  };
12516
12560
  } | null;
12561
+ booking_policy: {
12562
+ hold: {
12563
+ duration: string | null;
12564
+ enabled: boolean;
12565
+ };
12566
+ };
12517
12567
  client?: {
12518
12568
  created_at: string;
12519
12569
  email?: string | null;
@@ -12558,9 +12608,7 @@ declare const useUpdateBookingIntent: (options?: Options$K) => _tanstack_react_q
12558
12608
  pointer: string;
12559
12609
  };
12560
12610
  title: string;
12561
- }[];
12562
- hold_duration?: string | null;
12563
- hold_enabled: boolean;
12611
+ }[] | null;
12564
12612
  hold_until?: string | null;
12565
12613
  id: string;
12566
12614
  locked_fields?: string[];
@@ -12730,6 +12778,12 @@ declare const useUpdateBookingIntent: (options?: Options$K) => _tanstack_react_q
12730
12778
  content: {
12731
12779
  "application/json": {
12732
12780
  auto_assign_provider?: boolean | null;
12781
+ booking_policy?: {
12782
+ hold?: {
12783
+ duration?: string | null;
12784
+ enabled?: boolean;
12785
+ } | null;
12786
+ } | null;
12733
12787
  client_data?: {
12734
12788
  email?: string | null;
12735
12789
  fields?: {
@@ -12744,8 +12798,6 @@ declare const useUpdateBookingIntent: (options?: Options$K) => _tanstack_react_q
12744
12798
  } | null;
12745
12799
  client_id?: string | null;
12746
12800
  end_at?: string | null;
12747
- hold_duration?: string | null;
12748
- hold_enabled?: boolean | null;
12749
12801
  locked_fields?: string[] | null;
12750
12802
  metadata?: {
12751
12803
  [key: string]: unknown;
@@ -12986,6 +13038,12 @@ declare const useUpdateBookingIntent: (options?: Options$K) => _tanstack_react_q
12986
13038
  reschedule: string[];
12987
13039
  };
12988
13040
  } | null;
13041
+ booking_policy: {
13042
+ hold: {
13043
+ duration: string | null;
13044
+ enabled: boolean;
13045
+ };
13046
+ };
12989
13047
  client?: {
12990
13048
  created_at: string;
12991
13049
  email?: string | null;
@@ -13030,9 +13088,7 @@ declare const useUpdateBookingIntent: (options?: Options$K) => _tanstack_react_q
13030
13088
  pointer: string;
13031
13089
  };
13032
13090
  title: string;
13033
- }[];
13034
- hold_duration?: string | null;
13035
- hold_enabled: boolean;
13091
+ }[] | null;
13036
13092
  hold_until?: string | null;
13037
13093
  id: string;
13038
13094
  locked_fields?: string[];
@@ -14467,7 +14523,7 @@ declare const useUpdatePublicBookingIntent: (options?: Options$C) => _tanstack_r
14467
14523
  pointer: string;
14468
14524
  };
14469
14525
  title: string;
14470
- }[];
14526
+ }[] | null;
14471
14527
  hold_until?: string | null;
14472
14528
  id: string;
14473
14529
  locked_fields?: string[];
@@ -14586,7 +14642,7 @@ declare const useUpdatePublicBookingIntent: (options?: Options$C) => _tanstack_r
14586
14642
  pointer: string;
14587
14643
  };
14588
14644
  title: string;
14589
- }[];
14645
+ }[] | null;
14590
14646
  hold_until?: string | null;
14591
14647
  id: string;
14592
14648
  locked_fields?: string[];
@@ -16692,6 +16748,12 @@ declare const useBookingIntent: (booking_intent_id: BookingIntentParams["path"][
16692
16748
  reschedule: string[];
16693
16749
  };
16694
16750
  } | null;
16751
+ booking_policy: {
16752
+ hold: {
16753
+ duration: string | null;
16754
+ enabled: boolean;
16755
+ };
16756
+ };
16695
16757
  client?: {
16696
16758
  created_at: string;
16697
16759
  email?: string | null;
@@ -16736,9 +16798,7 @@ declare const useBookingIntent: (booking_intent_id: BookingIntentParams["path"][
16736
16798
  pointer: string;
16737
16799
  };
16738
16800
  title: string;
16739
- }[];
16740
- hold_duration?: string | null;
16741
- hold_enabled: boolean;
16801
+ }[] | null;
16742
16802
  hold_until?: string | null;
16743
16803
  id: string;
16744
16804
  locked_fields?: string[];
@@ -17068,6 +17128,12 @@ declare const useBookingIntent: (booking_intent_id: BookingIntentParams["path"][
17068
17128
  reschedule: string[];
17069
17129
  };
17070
17130
  } | null;
17131
+ booking_policy: {
17132
+ hold: {
17133
+ duration: string | null;
17134
+ enabled: boolean;
17135
+ };
17136
+ };
17071
17137
  client?: {
17072
17138
  created_at: string;
17073
17139
  email?: string | null;
@@ -17112,9 +17178,7 @@ declare const useBookingIntent: (booking_intent_id: BookingIntentParams["path"][
17112
17178
  pointer: string;
17113
17179
  };
17114
17180
  title: string;
17115
- }[];
17116
- hold_duration?: string | null;
17117
- hold_enabled: boolean;
17181
+ }[] | null;
17118
17182
  hold_until?: string | null;
17119
17183
  id: string;
17120
17184
  locked_fields?: string[];
@@ -17474,6 +17538,12 @@ declare const useBookingIntents: (queryParams?: BookingIntentsParams["query"], o
17474
17538
  reschedule: string[];
17475
17539
  };
17476
17540
  } | null;
17541
+ booking_policy: {
17542
+ hold: {
17543
+ duration: string | null;
17544
+ enabled: boolean;
17545
+ };
17546
+ };
17477
17547
  client?: {
17478
17548
  created_at: string;
17479
17549
  email?: string | null;
@@ -17518,9 +17588,7 @@ declare const useBookingIntents: (queryParams?: BookingIntentsParams["query"], o
17518
17588
  pointer: string;
17519
17589
  };
17520
17590
  title: string;
17521
- }[];
17522
- hold_duration?: string | null;
17523
- hold_enabled: boolean;
17591
+ }[] | null;
17524
17592
  hold_until?: string | null;
17525
17593
  id: string;
17526
17594
  locked_fields?: string[];
@@ -17856,6 +17924,12 @@ declare const useBookingIntents: (queryParams?: BookingIntentsParams["query"], o
17856
17924
  reschedule: string[];
17857
17925
  };
17858
17926
  } | null;
17927
+ booking_policy: {
17928
+ hold: {
17929
+ duration: string | null;
17930
+ enabled: boolean;
17931
+ };
17932
+ };
17859
17933
  client?: {
17860
17934
  created_at: string;
17861
17935
  email?: string | null;
@@ -17900,9 +17974,7 @@ declare const useBookingIntents: (queryParams?: BookingIntentsParams["query"], o
17900
17974
  pointer: string;
17901
17975
  };
17902
17976
  title: string;
17903
- }[];
17904
- hold_duration?: string | null;
17905
- hold_enabled: boolean;
17977
+ }[] | null;
17906
17978
  hold_until?: string | null;
17907
17979
  id: string;
17908
17980
  locked_fields?: string[];
@@ -19536,7 +19608,7 @@ declare const usePublicBookingIntent: (booking_intent_id: PublicBookingIntentPar
19536
19608
  pointer: string;
19537
19609
  };
19538
19610
  title: string;
19539
- }[];
19611
+ }[] | null;
19540
19612
  hold_until?: string | null;
19541
19613
  id: string;
19542
19614
  locked_fields?: string[];
package/dist/index.d.ts CHANGED
@@ -270,6 +270,12 @@ declare const useAbandonBookingIntent: (options?: Options$1n) => _tanstack_react
270
270
  reschedule: string[];
271
271
  };
272
272
  } | null;
273
+ booking_policy: {
274
+ hold: {
275
+ duration: string | null;
276
+ enabled: boolean;
277
+ };
278
+ };
273
279
  client?: {
274
280
  created_at: string;
275
281
  email?: string | null;
@@ -314,9 +320,7 @@ declare const useAbandonBookingIntent: (options?: Options$1n) => _tanstack_react
314
320
  pointer: string;
315
321
  };
316
322
  title: string;
317
- }[];
318
- hold_duration?: string | null;
319
- hold_enabled: boolean;
323
+ }[] | null;
320
324
  hold_until?: string | null;
321
325
  id: string;
322
326
  locked_fields?: string[];
@@ -646,6 +650,12 @@ declare const useAbandonBookingIntent: (options?: Options$1n) => _tanstack_react
646
650
  reschedule: string[];
647
651
  };
648
652
  } | null;
653
+ booking_policy: {
654
+ hold: {
655
+ duration: string | null;
656
+ enabled: boolean;
657
+ };
658
+ };
649
659
  client?: {
650
660
  created_at: string;
651
661
  email?: string | null;
@@ -690,9 +700,7 @@ declare const useAbandonBookingIntent: (options?: Options$1n) => _tanstack_react
690
700
  pointer: string;
691
701
  };
692
702
  title: string;
693
- }[];
694
- hold_duration?: string | null;
695
- hold_enabled: boolean;
703
+ }[] | null;
696
704
  hold_until?: string | null;
697
705
  id: string;
698
706
  locked_fields?: string[];
@@ -1081,6 +1089,12 @@ declare const useAbandonBookingIntent: (options?: Options$1n) => _tanstack_react
1081
1089
  reschedule: string[];
1082
1090
  };
1083
1091
  } | null;
1092
+ booking_policy: {
1093
+ hold: {
1094
+ duration: string | null;
1095
+ enabled: boolean;
1096
+ };
1097
+ };
1084
1098
  client?: {
1085
1099
  created_at: string;
1086
1100
  email?: string | null;
@@ -1125,9 +1139,7 @@ declare const useAbandonBookingIntent: (options?: Options$1n) => _tanstack_react
1125
1139
  pointer: string;
1126
1140
  };
1127
1141
  title: string;
1128
- }[];
1129
- hold_duration?: string | null;
1130
- hold_enabled: boolean;
1142
+ }[] | null;
1131
1143
  hold_until?: string | null;
1132
1144
  id: string;
1133
1145
  locked_fields?: string[];
@@ -1339,7 +1351,7 @@ declare const useAbandonPublicBookingIntent: (options?: Options$1m) => _tanstack
1339
1351
  pointer: string;
1340
1352
  };
1341
1353
  title: string;
1342
- }[];
1354
+ }[] | null;
1343
1355
  hold_until?: string | null;
1344
1356
  id: string;
1345
1357
  locked_fields?: string[];
@@ -1429,7 +1441,7 @@ declare const useAbandonPublicBookingIntent: (options?: Options$1m) => _tanstack
1429
1441
  pointer: string;
1430
1442
  };
1431
1443
  title: string;
1432
- }[];
1444
+ }[] | null;
1433
1445
  hold_until?: string | null;
1434
1446
  id: string;
1435
1447
  locked_fields?: string[];
@@ -2774,6 +2786,12 @@ declare const useCompleteBookingIntent: (options?: Options$1i) => _tanstack_reac
2774
2786
  reschedule: string[];
2775
2787
  };
2776
2788
  } | null;
2789
+ booking_policy: {
2790
+ hold: {
2791
+ duration: string | null;
2792
+ enabled: boolean;
2793
+ };
2794
+ };
2777
2795
  client?: {
2778
2796
  created_at: string;
2779
2797
  email?: string | null;
@@ -2818,9 +2836,7 @@ declare const useCompleteBookingIntent: (options?: Options$1i) => _tanstack_reac
2818
2836
  pointer: string;
2819
2837
  };
2820
2838
  title: string;
2821
- }[];
2822
- hold_duration?: string | null;
2823
- hold_enabled: boolean;
2839
+ }[] | null;
2824
2840
  hold_until?: string | null;
2825
2841
  id: string;
2826
2842
  locked_fields?: string[];
@@ -3150,6 +3166,12 @@ declare const useCompleteBookingIntent: (options?: Options$1i) => _tanstack_reac
3150
3166
  reschedule: string[];
3151
3167
  };
3152
3168
  } | null;
3169
+ booking_policy: {
3170
+ hold: {
3171
+ duration: string | null;
3172
+ enabled: boolean;
3173
+ };
3174
+ };
3153
3175
  client?: {
3154
3176
  created_at: string;
3155
3177
  email?: string | null;
@@ -3194,9 +3216,7 @@ declare const useCompleteBookingIntent: (options?: Options$1i) => _tanstack_reac
3194
3216
  pointer: string;
3195
3217
  };
3196
3218
  title: string;
3197
- }[];
3198
- hold_duration?: string | null;
3199
- hold_enabled: boolean;
3219
+ }[] | null;
3200
3220
  hold_until?: string | null;
3201
3221
  id: string;
3202
3222
  locked_fields?: string[];
@@ -3618,6 +3638,12 @@ declare const useCompleteBookingIntent: (options?: Options$1i) => _tanstack_reac
3618
3638
  reschedule: string[];
3619
3639
  };
3620
3640
  } | null;
3641
+ booking_policy: {
3642
+ hold: {
3643
+ duration: string | null;
3644
+ enabled: boolean;
3645
+ };
3646
+ };
3621
3647
  client?: {
3622
3648
  created_at: string;
3623
3649
  email?: string | null;
@@ -3662,9 +3688,7 @@ declare const useCompleteBookingIntent: (options?: Options$1i) => _tanstack_reac
3662
3688
  pointer: string;
3663
3689
  };
3664
3690
  title: string;
3665
- }[];
3666
- hold_duration?: string | null;
3667
- hold_enabled: boolean;
3691
+ }[] | null;
3668
3692
  hold_until?: string | null;
3669
3693
  id: string;
3670
3694
  locked_fields?: string[];
@@ -3876,7 +3900,7 @@ declare const useCompletePublicBookingIntent: (options?: Options$1h) => _tanstac
3876
3900
  pointer: string;
3877
3901
  };
3878
3902
  title: string;
3879
- }[];
3903
+ }[] | null;
3880
3904
  hold_until?: string | null;
3881
3905
  id: string;
3882
3906
  locked_fields?: string[];
@@ -3995,7 +4019,7 @@ declare const useCompletePublicBookingIntent: (options?: Options$1h) => _tanstac
3995
4019
  pointer: string;
3996
4020
  };
3997
4021
  title: string;
3998
- }[];
4022
+ }[] | null;
3999
4023
  hold_until?: string | null;
4000
4024
  id: string;
4001
4025
  locked_fields?: string[];
@@ -6289,6 +6313,12 @@ declare const useCreateBookingIntent: (options?: Options$1b) => _tanstack_react_
6289
6313
  reschedule: string[];
6290
6314
  };
6291
6315
  } | null;
6316
+ booking_policy: {
6317
+ hold: {
6318
+ duration: string | null;
6319
+ enabled: boolean;
6320
+ };
6321
+ };
6292
6322
  client?: {
6293
6323
  created_at: string;
6294
6324
  email?: string | null;
@@ -6333,9 +6363,7 @@ declare const useCreateBookingIntent: (options?: Options$1b) => _tanstack_react_
6333
6363
  pointer: string;
6334
6364
  };
6335
6365
  title: string;
6336
- }[];
6337
- hold_duration?: string | null;
6338
- hold_enabled: boolean;
6366
+ }[] | null;
6339
6367
  hold_until?: string | null;
6340
6368
  id: string;
6341
6369
  locked_fields?: string[];
@@ -6665,6 +6693,12 @@ declare const useCreateBookingIntent: (options?: Options$1b) => _tanstack_react_
6665
6693
  reschedule: string[];
6666
6694
  };
6667
6695
  } | null;
6696
+ booking_policy: {
6697
+ hold: {
6698
+ duration: string | null;
6699
+ enabled: boolean;
6700
+ };
6701
+ };
6668
6702
  client?: {
6669
6703
  created_at: string;
6670
6704
  email?: string | null;
@@ -6709,9 +6743,7 @@ declare const useCreateBookingIntent: (options?: Options$1b) => _tanstack_react_
6709
6743
  pointer: string;
6710
6744
  };
6711
6745
  title: string;
6712
- }[];
6713
- hold_duration?: string | null;
6714
- hold_enabled: boolean;
6746
+ }[] | null;
6715
6747
  hold_until?: string | null;
6716
6748
  id: string;
6717
6749
  locked_fields?: string[];
@@ -6879,6 +6911,12 @@ declare const useCreateBookingIntent: (options?: Options$1b) => _tanstack_react_
6879
6911
  content: {
6880
6912
  "application/json": {
6881
6913
  auto_assign_provider?: boolean | null;
6914
+ booking_policy?: {
6915
+ hold?: {
6916
+ duration?: string | null;
6917
+ enabled?: boolean;
6918
+ } | null;
6919
+ } | null;
6882
6920
  client_data?: {
6883
6921
  email?: string | null;
6884
6922
  fields?: {
@@ -6893,8 +6931,6 @@ declare const useCreateBookingIntent: (options?: Options$1b) => _tanstack_react_
6893
6931
  } | null;
6894
6932
  client_id?: string | null;
6895
6933
  end_at?: string | null;
6896
- hold_duration?: string | null;
6897
- hold_enabled?: boolean | null;
6898
6934
  locked_fields?: string[] | null;
6899
6935
  metadata?: {
6900
6936
  [key: string]: unknown;
@@ -7135,6 +7171,12 @@ declare const useCreateBookingIntent: (options?: Options$1b) => _tanstack_react_
7135
7171
  reschedule: string[];
7136
7172
  };
7137
7173
  } | null;
7174
+ booking_policy: {
7175
+ hold: {
7176
+ duration: string | null;
7177
+ enabled: boolean;
7178
+ };
7179
+ };
7138
7180
  client?: {
7139
7181
  created_at: string;
7140
7182
  email?: string | null;
@@ -7179,9 +7221,7 @@ declare const useCreateBookingIntent: (options?: Options$1b) => _tanstack_react_
7179
7221
  pointer: string;
7180
7222
  };
7181
7223
  title: string;
7182
- }[];
7183
- hold_duration?: string | null;
7184
- hold_enabled: boolean;
7224
+ }[] | null;
7185
7225
  hold_until?: string | null;
7186
7226
  id: string;
7187
7227
  locked_fields?: string[];
@@ -8578,7 +8618,7 @@ declare const useCreatePublicBookingIntent: (options?: Options$12) => _tanstack_
8578
8618
  pointer: string;
8579
8619
  };
8580
8620
  title: string;
8581
- }[];
8621
+ }[] | null;
8582
8622
  hold_until?: string | null;
8583
8623
  id: string;
8584
8624
  locked_fields?: string[];
@@ -8696,7 +8736,7 @@ declare const useCreatePublicBookingIntent: (options?: Options$12) => _tanstack_
8696
8736
  pointer: string;
8697
8737
  };
8698
8738
  title: string;
8699
- }[];
8739
+ }[] | null;
8700
8740
  hold_until?: string | null;
8701
8741
  id: string;
8702
8742
  locked_fields?: string[];
@@ -12138,6 +12178,12 @@ declare const useUpdateBookingIntent: (options?: Options$K) => _tanstack_react_q
12138
12178
  reschedule: string[];
12139
12179
  };
12140
12180
  } | null;
12181
+ booking_policy: {
12182
+ hold: {
12183
+ duration: string | null;
12184
+ enabled: boolean;
12185
+ };
12186
+ };
12141
12187
  client?: {
12142
12188
  created_at: string;
12143
12189
  email?: string | null;
@@ -12182,9 +12228,7 @@ declare const useUpdateBookingIntent: (options?: Options$K) => _tanstack_react_q
12182
12228
  pointer: string;
12183
12229
  };
12184
12230
  title: string;
12185
- }[];
12186
- hold_duration?: string | null;
12187
- hold_enabled: boolean;
12231
+ }[] | null;
12188
12232
  hold_until?: string | null;
12189
12233
  id: string;
12190
12234
  locked_fields?: string[];
@@ -12514,6 +12558,12 @@ declare const useUpdateBookingIntent: (options?: Options$K) => _tanstack_react_q
12514
12558
  reschedule: string[];
12515
12559
  };
12516
12560
  } | null;
12561
+ booking_policy: {
12562
+ hold: {
12563
+ duration: string | null;
12564
+ enabled: boolean;
12565
+ };
12566
+ };
12517
12567
  client?: {
12518
12568
  created_at: string;
12519
12569
  email?: string | null;
@@ -12558,9 +12608,7 @@ declare const useUpdateBookingIntent: (options?: Options$K) => _tanstack_react_q
12558
12608
  pointer: string;
12559
12609
  };
12560
12610
  title: string;
12561
- }[];
12562
- hold_duration?: string | null;
12563
- hold_enabled: boolean;
12611
+ }[] | null;
12564
12612
  hold_until?: string | null;
12565
12613
  id: string;
12566
12614
  locked_fields?: string[];
@@ -12730,6 +12778,12 @@ declare const useUpdateBookingIntent: (options?: Options$K) => _tanstack_react_q
12730
12778
  content: {
12731
12779
  "application/json": {
12732
12780
  auto_assign_provider?: boolean | null;
12781
+ booking_policy?: {
12782
+ hold?: {
12783
+ duration?: string | null;
12784
+ enabled?: boolean;
12785
+ } | null;
12786
+ } | null;
12733
12787
  client_data?: {
12734
12788
  email?: string | null;
12735
12789
  fields?: {
@@ -12744,8 +12798,6 @@ declare const useUpdateBookingIntent: (options?: Options$K) => _tanstack_react_q
12744
12798
  } | null;
12745
12799
  client_id?: string | null;
12746
12800
  end_at?: string | null;
12747
- hold_duration?: string | null;
12748
- hold_enabled?: boolean | null;
12749
12801
  locked_fields?: string[] | null;
12750
12802
  metadata?: {
12751
12803
  [key: string]: unknown;
@@ -12986,6 +13038,12 @@ declare const useUpdateBookingIntent: (options?: Options$K) => _tanstack_react_q
12986
13038
  reschedule: string[];
12987
13039
  };
12988
13040
  } | null;
13041
+ booking_policy: {
13042
+ hold: {
13043
+ duration: string | null;
13044
+ enabled: boolean;
13045
+ };
13046
+ };
12989
13047
  client?: {
12990
13048
  created_at: string;
12991
13049
  email?: string | null;
@@ -13030,9 +13088,7 @@ declare const useUpdateBookingIntent: (options?: Options$K) => _tanstack_react_q
13030
13088
  pointer: string;
13031
13089
  };
13032
13090
  title: string;
13033
- }[];
13034
- hold_duration?: string | null;
13035
- hold_enabled: boolean;
13091
+ }[] | null;
13036
13092
  hold_until?: string | null;
13037
13093
  id: string;
13038
13094
  locked_fields?: string[];
@@ -14467,7 +14523,7 @@ declare const useUpdatePublicBookingIntent: (options?: Options$C) => _tanstack_r
14467
14523
  pointer: string;
14468
14524
  };
14469
14525
  title: string;
14470
- }[];
14526
+ }[] | null;
14471
14527
  hold_until?: string | null;
14472
14528
  id: string;
14473
14529
  locked_fields?: string[];
@@ -14586,7 +14642,7 @@ declare const useUpdatePublicBookingIntent: (options?: Options$C) => _tanstack_r
14586
14642
  pointer: string;
14587
14643
  };
14588
14644
  title: string;
14589
- }[];
14645
+ }[] | null;
14590
14646
  hold_until?: string | null;
14591
14647
  id: string;
14592
14648
  locked_fields?: string[];
@@ -16692,6 +16748,12 @@ declare const useBookingIntent: (booking_intent_id: BookingIntentParams["path"][
16692
16748
  reschedule: string[];
16693
16749
  };
16694
16750
  } | null;
16751
+ booking_policy: {
16752
+ hold: {
16753
+ duration: string | null;
16754
+ enabled: boolean;
16755
+ };
16756
+ };
16695
16757
  client?: {
16696
16758
  created_at: string;
16697
16759
  email?: string | null;
@@ -16736,9 +16798,7 @@ declare const useBookingIntent: (booking_intent_id: BookingIntentParams["path"][
16736
16798
  pointer: string;
16737
16799
  };
16738
16800
  title: string;
16739
- }[];
16740
- hold_duration?: string | null;
16741
- hold_enabled: boolean;
16801
+ }[] | null;
16742
16802
  hold_until?: string | null;
16743
16803
  id: string;
16744
16804
  locked_fields?: string[];
@@ -17068,6 +17128,12 @@ declare const useBookingIntent: (booking_intent_id: BookingIntentParams["path"][
17068
17128
  reschedule: string[];
17069
17129
  };
17070
17130
  } | null;
17131
+ booking_policy: {
17132
+ hold: {
17133
+ duration: string | null;
17134
+ enabled: boolean;
17135
+ };
17136
+ };
17071
17137
  client?: {
17072
17138
  created_at: string;
17073
17139
  email?: string | null;
@@ -17112,9 +17178,7 @@ declare const useBookingIntent: (booking_intent_id: BookingIntentParams["path"][
17112
17178
  pointer: string;
17113
17179
  };
17114
17180
  title: string;
17115
- }[];
17116
- hold_duration?: string | null;
17117
- hold_enabled: boolean;
17181
+ }[] | null;
17118
17182
  hold_until?: string | null;
17119
17183
  id: string;
17120
17184
  locked_fields?: string[];
@@ -17474,6 +17538,12 @@ declare const useBookingIntents: (queryParams?: BookingIntentsParams["query"], o
17474
17538
  reschedule: string[];
17475
17539
  };
17476
17540
  } | null;
17541
+ booking_policy: {
17542
+ hold: {
17543
+ duration: string | null;
17544
+ enabled: boolean;
17545
+ };
17546
+ };
17477
17547
  client?: {
17478
17548
  created_at: string;
17479
17549
  email?: string | null;
@@ -17518,9 +17588,7 @@ declare const useBookingIntents: (queryParams?: BookingIntentsParams["query"], o
17518
17588
  pointer: string;
17519
17589
  };
17520
17590
  title: string;
17521
- }[];
17522
- hold_duration?: string | null;
17523
- hold_enabled: boolean;
17591
+ }[] | null;
17524
17592
  hold_until?: string | null;
17525
17593
  id: string;
17526
17594
  locked_fields?: string[];
@@ -17856,6 +17924,12 @@ declare const useBookingIntents: (queryParams?: BookingIntentsParams["query"], o
17856
17924
  reschedule: string[];
17857
17925
  };
17858
17926
  } | null;
17927
+ booking_policy: {
17928
+ hold: {
17929
+ duration: string | null;
17930
+ enabled: boolean;
17931
+ };
17932
+ };
17859
17933
  client?: {
17860
17934
  created_at: string;
17861
17935
  email?: string | null;
@@ -17900,9 +17974,7 @@ declare const useBookingIntents: (queryParams?: BookingIntentsParams["query"], o
17900
17974
  pointer: string;
17901
17975
  };
17902
17976
  title: string;
17903
- }[];
17904
- hold_duration?: string | null;
17905
- hold_enabled: boolean;
17977
+ }[] | null;
17906
17978
  hold_until?: string | null;
17907
17979
  id: string;
17908
17980
  locked_fields?: string[];
@@ -19536,7 +19608,7 @@ declare const usePublicBookingIntent: (booking_intent_id: PublicBookingIntentPar
19536
19608
  pointer: string;
19537
19609
  };
19538
19610
  title: string;
19539
- }[];
19611
+ }[] | null;
19540
19612
  hold_until?: string | null;
19541
19613
  id: string;
19542
19614
  locked_fields?: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@savvycal/appointments-react-query",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "type": "module",
5
5
  "description": "A tiny wrapper around @tanstack/react-query for the SavvyCal Appointments API",
6
6
  "main": "./dist/index.cjs",
@@ -43,7 +43,7 @@
43
43
  },
44
44
  "dependencies": {
45
45
  "openapi-typescript-helpers": "^0.0.15",
46
- "@savvycal/appointments-core": "1.1.0"
46
+ "@savvycal/appointments-core": "1.2.0"
47
47
  },
48
48
  "peerDependencies": {
49
49
  "@tanstack/react-query": "^5.0.0",