@savvycal/appointments-react-query 1.0.0 → 1.1.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.cjs +3 -2
- package/dist/index.d.cts +201 -1
- package/dist/index.d.ts +201 -1
- package/dist/index.js +3 -2
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -902,7 +902,7 @@ var useCancellationReasons = (options) => {
|
|
|
902
902
|
};
|
|
903
903
|
|
|
904
904
|
// src/query-hooks/use-client.ts
|
|
905
|
-
var useClient = (client_id, options) => {
|
|
905
|
+
var useClient = (client_id, queryParams, options) => {
|
|
906
906
|
const { client: overrideClient, ...queryOptions } = options ?? {};
|
|
907
907
|
const client = useSavvyCalQueryClient(overrideClient);
|
|
908
908
|
return client.useQuery(
|
|
@@ -910,7 +910,8 @@ var useClient = (client_id, options) => {
|
|
|
910
910
|
"/v1/clients/{client_id}",
|
|
911
911
|
{
|
|
912
912
|
params: {
|
|
913
|
-
path: { client_id }
|
|
913
|
+
path: { client_id },
|
|
914
|
+
query: queryParams
|
|
914
915
|
}
|
|
915
916
|
},
|
|
916
917
|
queryOptions
|
package/dist/index.d.cts
CHANGED
|
@@ -307,6 +307,14 @@ declare const useAbandonBookingIntent: (options?: Options$1n) => _tanstack_react
|
|
|
307
307
|
unix_ts: number;
|
|
308
308
|
utc: string;
|
|
309
309
|
} | null;
|
|
310
|
+
errors?: {
|
|
311
|
+
code?: string | null;
|
|
312
|
+
detail: string;
|
|
313
|
+
source: {
|
|
314
|
+
pointer: string;
|
|
315
|
+
};
|
|
316
|
+
title: string;
|
|
317
|
+
}[];
|
|
310
318
|
hold_duration?: string | null;
|
|
311
319
|
hold_enabled: boolean;
|
|
312
320
|
hold_until?: string | null;
|
|
@@ -675,6 +683,14 @@ declare const useAbandonBookingIntent: (options?: Options$1n) => _tanstack_react
|
|
|
675
683
|
unix_ts: number;
|
|
676
684
|
utc: string;
|
|
677
685
|
} | null;
|
|
686
|
+
errors?: {
|
|
687
|
+
code?: string | null;
|
|
688
|
+
detail: string;
|
|
689
|
+
source: {
|
|
690
|
+
pointer: string;
|
|
691
|
+
};
|
|
692
|
+
title: string;
|
|
693
|
+
}[];
|
|
678
694
|
hold_duration?: string | null;
|
|
679
695
|
hold_enabled: boolean;
|
|
680
696
|
hold_until?: string | null;
|
|
@@ -1102,6 +1118,14 @@ declare const useAbandonBookingIntent: (options?: Options$1n) => _tanstack_react
|
|
|
1102
1118
|
unix_ts: number;
|
|
1103
1119
|
utc: string;
|
|
1104
1120
|
} | null;
|
|
1121
|
+
errors?: {
|
|
1122
|
+
code?: string | null;
|
|
1123
|
+
detail: string;
|
|
1124
|
+
source: {
|
|
1125
|
+
pointer: string;
|
|
1126
|
+
};
|
|
1127
|
+
title: string;
|
|
1128
|
+
}[];
|
|
1105
1129
|
hold_duration?: string | null;
|
|
1106
1130
|
hold_enabled: boolean;
|
|
1107
1131
|
hold_until?: string | null;
|
|
@@ -1308,6 +1332,14 @@ declare const useAbandonPublicBookingIntent: (options?: Options$1m) => _tanstack
|
|
|
1308
1332
|
unix_ts: number;
|
|
1309
1333
|
utc: string;
|
|
1310
1334
|
} | null;
|
|
1335
|
+
errors?: {
|
|
1336
|
+
code?: string | null;
|
|
1337
|
+
detail: string;
|
|
1338
|
+
source: {
|
|
1339
|
+
pointer: string;
|
|
1340
|
+
};
|
|
1341
|
+
title: string;
|
|
1342
|
+
}[];
|
|
1311
1343
|
hold_until?: string | null;
|
|
1312
1344
|
id: string;
|
|
1313
1345
|
locked_fields?: string[];
|
|
@@ -1390,6 +1422,14 @@ declare const useAbandonPublicBookingIntent: (options?: Options$1m) => _tanstack
|
|
|
1390
1422
|
unix_ts: number;
|
|
1391
1423
|
utc: string;
|
|
1392
1424
|
} | null;
|
|
1425
|
+
errors?: {
|
|
1426
|
+
code?: string | null;
|
|
1427
|
+
detail: string;
|
|
1428
|
+
source: {
|
|
1429
|
+
pointer: string;
|
|
1430
|
+
};
|
|
1431
|
+
title: string;
|
|
1432
|
+
}[];
|
|
1393
1433
|
hold_until?: string | null;
|
|
1394
1434
|
id: string;
|
|
1395
1435
|
locked_fields?: string[];
|
|
@@ -2771,6 +2811,14 @@ declare const useCompleteBookingIntent: (options?: Options$1i) => _tanstack_reac
|
|
|
2771
2811
|
unix_ts: number;
|
|
2772
2812
|
utc: string;
|
|
2773
2813
|
} | null;
|
|
2814
|
+
errors?: {
|
|
2815
|
+
code?: string | null;
|
|
2816
|
+
detail: string;
|
|
2817
|
+
source: {
|
|
2818
|
+
pointer: string;
|
|
2819
|
+
};
|
|
2820
|
+
title: string;
|
|
2821
|
+
}[];
|
|
2774
2822
|
hold_duration?: string | null;
|
|
2775
2823
|
hold_enabled: boolean;
|
|
2776
2824
|
hold_until?: string | null;
|
|
@@ -3139,6 +3187,14 @@ declare const useCompleteBookingIntent: (options?: Options$1i) => _tanstack_reac
|
|
|
3139
3187
|
unix_ts: number;
|
|
3140
3188
|
utc: string;
|
|
3141
3189
|
} | null;
|
|
3190
|
+
errors?: {
|
|
3191
|
+
code?: string | null;
|
|
3192
|
+
detail: string;
|
|
3193
|
+
source: {
|
|
3194
|
+
pointer: string;
|
|
3195
|
+
};
|
|
3196
|
+
title: string;
|
|
3197
|
+
}[];
|
|
3142
3198
|
hold_duration?: string | null;
|
|
3143
3199
|
hold_enabled: boolean;
|
|
3144
3200
|
hold_until?: string | null;
|
|
@@ -3599,6 +3655,14 @@ declare const useCompleteBookingIntent: (options?: Options$1i) => _tanstack_reac
|
|
|
3599
3655
|
unix_ts: number;
|
|
3600
3656
|
utc: string;
|
|
3601
3657
|
} | null;
|
|
3658
|
+
errors?: {
|
|
3659
|
+
code?: string | null;
|
|
3660
|
+
detail: string;
|
|
3661
|
+
source: {
|
|
3662
|
+
pointer: string;
|
|
3663
|
+
};
|
|
3664
|
+
title: string;
|
|
3665
|
+
}[];
|
|
3602
3666
|
hold_duration?: string | null;
|
|
3603
3667
|
hold_enabled: boolean;
|
|
3604
3668
|
hold_until?: string | null;
|
|
@@ -3805,6 +3869,14 @@ declare const useCompletePublicBookingIntent: (options?: Options$1h) => _tanstac
|
|
|
3805
3869
|
unix_ts: number;
|
|
3806
3870
|
utc: string;
|
|
3807
3871
|
} | null;
|
|
3872
|
+
errors?: {
|
|
3873
|
+
code?: string | null;
|
|
3874
|
+
detail: string;
|
|
3875
|
+
source: {
|
|
3876
|
+
pointer: string;
|
|
3877
|
+
};
|
|
3878
|
+
title: string;
|
|
3879
|
+
}[];
|
|
3808
3880
|
hold_until?: string | null;
|
|
3809
3881
|
id: string;
|
|
3810
3882
|
locked_fields?: string[];
|
|
@@ -3916,6 +3988,14 @@ declare const useCompletePublicBookingIntent: (options?: Options$1h) => _tanstac
|
|
|
3916
3988
|
unix_ts: number;
|
|
3917
3989
|
utc: string;
|
|
3918
3990
|
} | null;
|
|
3991
|
+
errors?: {
|
|
3992
|
+
code?: string | null;
|
|
3993
|
+
detail: string;
|
|
3994
|
+
source: {
|
|
3995
|
+
pointer: string;
|
|
3996
|
+
};
|
|
3997
|
+
title: string;
|
|
3998
|
+
}[];
|
|
3919
3999
|
hold_until?: string | null;
|
|
3920
4000
|
id: string;
|
|
3921
4001
|
locked_fields?: string[];
|
|
@@ -6246,6 +6326,14 @@ declare const useCreateBookingIntent: (options?: Options$1b) => _tanstack_react_
|
|
|
6246
6326
|
unix_ts: number;
|
|
6247
6327
|
utc: string;
|
|
6248
6328
|
} | null;
|
|
6329
|
+
errors?: {
|
|
6330
|
+
code?: string | null;
|
|
6331
|
+
detail: string;
|
|
6332
|
+
source: {
|
|
6333
|
+
pointer: string;
|
|
6334
|
+
};
|
|
6335
|
+
title: string;
|
|
6336
|
+
}[];
|
|
6249
6337
|
hold_duration?: string | null;
|
|
6250
6338
|
hold_enabled: boolean;
|
|
6251
6339
|
hold_until?: string | null;
|
|
@@ -6614,6 +6702,14 @@ declare const useCreateBookingIntent: (options?: Options$1b) => _tanstack_react_
|
|
|
6614
6702
|
unix_ts: number;
|
|
6615
6703
|
utc: string;
|
|
6616
6704
|
} | null;
|
|
6705
|
+
errors?: {
|
|
6706
|
+
code?: string | null;
|
|
6707
|
+
detail: string;
|
|
6708
|
+
source: {
|
|
6709
|
+
pointer: string;
|
|
6710
|
+
};
|
|
6711
|
+
title: string;
|
|
6712
|
+
}[];
|
|
6617
6713
|
hold_duration?: string | null;
|
|
6618
6714
|
hold_enabled: boolean;
|
|
6619
6715
|
hold_until?: string | null;
|
|
@@ -7076,6 +7172,14 @@ declare const useCreateBookingIntent: (options?: Options$1b) => _tanstack_react_
|
|
|
7076
7172
|
unix_ts: number;
|
|
7077
7173
|
utc: string;
|
|
7078
7174
|
} | null;
|
|
7175
|
+
errors?: {
|
|
7176
|
+
code?: string | null;
|
|
7177
|
+
detail: string;
|
|
7178
|
+
source: {
|
|
7179
|
+
pointer: string;
|
|
7180
|
+
};
|
|
7181
|
+
title: string;
|
|
7182
|
+
}[];
|
|
7079
7183
|
hold_duration?: string | null;
|
|
7080
7184
|
hold_enabled: boolean;
|
|
7081
7185
|
hold_until?: string | null;
|
|
@@ -8467,6 +8571,14 @@ declare const useCreatePublicBookingIntent: (options?: Options$12) => _tanstack_
|
|
|
8467
8571
|
unix_ts: number;
|
|
8468
8572
|
utc: string;
|
|
8469
8573
|
} | null;
|
|
8574
|
+
errors?: {
|
|
8575
|
+
code?: string | null;
|
|
8576
|
+
detail: string;
|
|
8577
|
+
source: {
|
|
8578
|
+
pointer: string;
|
|
8579
|
+
};
|
|
8580
|
+
title: string;
|
|
8581
|
+
}[];
|
|
8470
8582
|
hold_until?: string | null;
|
|
8471
8583
|
id: string;
|
|
8472
8584
|
locked_fields?: string[];
|
|
@@ -8577,6 +8689,14 @@ declare const useCreatePublicBookingIntent: (options?: Options$12) => _tanstack_
|
|
|
8577
8689
|
unix_ts: number;
|
|
8578
8690
|
utc: string;
|
|
8579
8691
|
} | null;
|
|
8692
|
+
errors?: {
|
|
8693
|
+
code?: string | null;
|
|
8694
|
+
detail: string;
|
|
8695
|
+
source: {
|
|
8696
|
+
pointer: string;
|
|
8697
|
+
};
|
|
8698
|
+
title: string;
|
|
8699
|
+
}[];
|
|
8580
8700
|
hold_until?: string | null;
|
|
8581
8701
|
id: string;
|
|
8582
8702
|
locked_fields?: string[];
|
|
@@ -12055,6 +12175,14 @@ declare const useUpdateBookingIntent: (options?: Options$K) => _tanstack_react_q
|
|
|
12055
12175
|
unix_ts: number;
|
|
12056
12176
|
utc: string;
|
|
12057
12177
|
} | null;
|
|
12178
|
+
errors?: {
|
|
12179
|
+
code?: string | null;
|
|
12180
|
+
detail: string;
|
|
12181
|
+
source: {
|
|
12182
|
+
pointer: string;
|
|
12183
|
+
};
|
|
12184
|
+
title: string;
|
|
12185
|
+
}[];
|
|
12058
12186
|
hold_duration?: string | null;
|
|
12059
12187
|
hold_enabled: boolean;
|
|
12060
12188
|
hold_until?: string | null;
|
|
@@ -12423,6 +12551,14 @@ declare const useUpdateBookingIntent: (options?: Options$K) => _tanstack_react_q
|
|
|
12423
12551
|
unix_ts: number;
|
|
12424
12552
|
utc: string;
|
|
12425
12553
|
} | null;
|
|
12554
|
+
errors?: {
|
|
12555
|
+
code?: string | null;
|
|
12556
|
+
detail: string;
|
|
12557
|
+
source: {
|
|
12558
|
+
pointer: string;
|
|
12559
|
+
};
|
|
12560
|
+
title: string;
|
|
12561
|
+
}[];
|
|
12426
12562
|
hold_duration?: string | null;
|
|
12427
12563
|
hold_enabled: boolean;
|
|
12428
12564
|
hold_until?: string | null;
|
|
@@ -12887,6 +13023,14 @@ declare const useUpdateBookingIntent: (options?: Options$K) => _tanstack_react_q
|
|
|
12887
13023
|
unix_ts: number;
|
|
12888
13024
|
utc: string;
|
|
12889
13025
|
} | null;
|
|
13026
|
+
errors?: {
|
|
13027
|
+
code?: string | null;
|
|
13028
|
+
detail: string;
|
|
13029
|
+
source: {
|
|
13030
|
+
pointer: string;
|
|
13031
|
+
};
|
|
13032
|
+
title: string;
|
|
13033
|
+
}[];
|
|
12890
13034
|
hold_duration?: string | null;
|
|
12891
13035
|
hold_enabled: boolean;
|
|
12892
13036
|
hold_until?: string | null;
|
|
@@ -14316,6 +14460,14 @@ declare const useUpdatePublicBookingIntent: (options?: Options$C) => _tanstack_r
|
|
|
14316
14460
|
unix_ts: number;
|
|
14317
14461
|
utc: string;
|
|
14318
14462
|
} | null;
|
|
14463
|
+
errors?: {
|
|
14464
|
+
code?: string | null;
|
|
14465
|
+
detail: string;
|
|
14466
|
+
source: {
|
|
14467
|
+
pointer: string;
|
|
14468
|
+
};
|
|
14469
|
+
title: string;
|
|
14470
|
+
}[];
|
|
14319
14471
|
hold_until?: string | null;
|
|
14320
14472
|
id: string;
|
|
14321
14473
|
locked_fields?: string[];
|
|
@@ -14427,6 +14579,14 @@ declare const useUpdatePublicBookingIntent: (options?: Options$C) => _tanstack_r
|
|
|
14427
14579
|
unix_ts: number;
|
|
14428
14580
|
utc: string;
|
|
14429
14581
|
} | null;
|
|
14582
|
+
errors?: {
|
|
14583
|
+
code?: string | null;
|
|
14584
|
+
detail: string;
|
|
14585
|
+
source: {
|
|
14586
|
+
pointer: string;
|
|
14587
|
+
};
|
|
14588
|
+
title: string;
|
|
14589
|
+
}[];
|
|
14430
14590
|
hold_until?: string | null;
|
|
14431
14591
|
id: string;
|
|
14432
14592
|
locked_fields?: string[];
|
|
@@ -16569,6 +16729,14 @@ declare const useBookingIntent: (booking_intent_id: BookingIntentParams["path"][
|
|
|
16569
16729
|
unix_ts: number;
|
|
16570
16730
|
utc: string;
|
|
16571
16731
|
} | null;
|
|
16732
|
+
errors?: {
|
|
16733
|
+
code?: string | null;
|
|
16734
|
+
detail: string;
|
|
16735
|
+
source: {
|
|
16736
|
+
pointer: string;
|
|
16737
|
+
};
|
|
16738
|
+
title: string;
|
|
16739
|
+
}[];
|
|
16572
16740
|
hold_duration?: string | null;
|
|
16573
16741
|
hold_enabled: boolean;
|
|
16574
16742
|
hold_until?: string | null;
|
|
@@ -16937,6 +17105,14 @@ declare const useBookingIntent: (booking_intent_id: BookingIntentParams["path"][
|
|
|
16937
17105
|
unix_ts: number;
|
|
16938
17106
|
utc: string;
|
|
16939
17107
|
} | null;
|
|
17108
|
+
errors?: {
|
|
17109
|
+
code?: string | null;
|
|
17110
|
+
detail: string;
|
|
17111
|
+
source: {
|
|
17112
|
+
pointer: string;
|
|
17113
|
+
};
|
|
17114
|
+
title: string;
|
|
17115
|
+
}[];
|
|
16940
17116
|
hold_duration?: string | null;
|
|
16941
17117
|
hold_enabled: boolean;
|
|
16942
17118
|
hold_until?: string | null;
|
|
@@ -17335,6 +17511,14 @@ declare const useBookingIntents: (queryParams?: BookingIntentsParams["query"], o
|
|
|
17335
17511
|
unix_ts: number;
|
|
17336
17512
|
utc: string;
|
|
17337
17513
|
} | null;
|
|
17514
|
+
errors?: {
|
|
17515
|
+
code?: string | null;
|
|
17516
|
+
detail: string;
|
|
17517
|
+
source: {
|
|
17518
|
+
pointer: string;
|
|
17519
|
+
};
|
|
17520
|
+
title: string;
|
|
17521
|
+
}[];
|
|
17338
17522
|
hold_duration?: string | null;
|
|
17339
17523
|
hold_enabled: boolean;
|
|
17340
17524
|
hold_until?: string | null;
|
|
@@ -17709,6 +17893,14 @@ declare const useBookingIntents: (queryParams?: BookingIntentsParams["query"], o
|
|
|
17709
17893
|
unix_ts: number;
|
|
17710
17894
|
utc: string;
|
|
17711
17895
|
} | null;
|
|
17896
|
+
errors?: {
|
|
17897
|
+
code?: string | null;
|
|
17898
|
+
detail: string;
|
|
17899
|
+
source: {
|
|
17900
|
+
pointer: string;
|
|
17901
|
+
};
|
|
17902
|
+
title: string;
|
|
17903
|
+
}[];
|
|
17712
17904
|
hold_duration?: string | null;
|
|
17713
17905
|
hold_enabled: boolean;
|
|
17714
17906
|
hold_until?: string | null;
|
|
@@ -17969,7 +18161,7 @@ type ClientParams = paths["/v1/clients/{client_id}"]["get"]["parameters"];
|
|
|
17969
18161
|
interface Options$p extends QueryOptionsFor<"get", "/v1/clients/{client_id}"> {
|
|
17970
18162
|
client?: QueryClient;
|
|
17971
18163
|
}
|
|
17972
|
-
declare const useClient: (client_id: ClientParams["path"]["client_id"], options?: Options$p) => _tanstack_react_query.UseQueryResult<{
|
|
18164
|
+
declare const useClient: (client_id: ClientParams["path"]["client_id"], queryParams?: ClientParams["query"], options?: Options$p) => _tanstack_react_query.UseQueryResult<{
|
|
17973
18165
|
data: {
|
|
17974
18166
|
created_at: string;
|
|
17975
18167
|
email?: string | null;
|
|
@@ -19337,6 +19529,14 @@ declare const usePublicBookingIntent: (booking_intent_id: PublicBookingIntentPar
|
|
|
19337
19529
|
unix_ts: number;
|
|
19338
19530
|
utc: string;
|
|
19339
19531
|
} | null;
|
|
19532
|
+
errors?: {
|
|
19533
|
+
code?: string | null;
|
|
19534
|
+
detail: string;
|
|
19535
|
+
source: {
|
|
19536
|
+
pointer: string;
|
|
19537
|
+
};
|
|
19538
|
+
title: string;
|
|
19539
|
+
}[];
|
|
19340
19540
|
hold_until?: string | null;
|
|
19341
19541
|
id: string;
|
|
19342
19542
|
locked_fields?: string[];
|
package/dist/index.d.ts
CHANGED
|
@@ -307,6 +307,14 @@ declare const useAbandonBookingIntent: (options?: Options$1n) => _tanstack_react
|
|
|
307
307
|
unix_ts: number;
|
|
308
308
|
utc: string;
|
|
309
309
|
} | null;
|
|
310
|
+
errors?: {
|
|
311
|
+
code?: string | null;
|
|
312
|
+
detail: string;
|
|
313
|
+
source: {
|
|
314
|
+
pointer: string;
|
|
315
|
+
};
|
|
316
|
+
title: string;
|
|
317
|
+
}[];
|
|
310
318
|
hold_duration?: string | null;
|
|
311
319
|
hold_enabled: boolean;
|
|
312
320
|
hold_until?: string | null;
|
|
@@ -675,6 +683,14 @@ declare const useAbandonBookingIntent: (options?: Options$1n) => _tanstack_react
|
|
|
675
683
|
unix_ts: number;
|
|
676
684
|
utc: string;
|
|
677
685
|
} | null;
|
|
686
|
+
errors?: {
|
|
687
|
+
code?: string | null;
|
|
688
|
+
detail: string;
|
|
689
|
+
source: {
|
|
690
|
+
pointer: string;
|
|
691
|
+
};
|
|
692
|
+
title: string;
|
|
693
|
+
}[];
|
|
678
694
|
hold_duration?: string | null;
|
|
679
695
|
hold_enabled: boolean;
|
|
680
696
|
hold_until?: string | null;
|
|
@@ -1102,6 +1118,14 @@ declare const useAbandonBookingIntent: (options?: Options$1n) => _tanstack_react
|
|
|
1102
1118
|
unix_ts: number;
|
|
1103
1119
|
utc: string;
|
|
1104
1120
|
} | null;
|
|
1121
|
+
errors?: {
|
|
1122
|
+
code?: string | null;
|
|
1123
|
+
detail: string;
|
|
1124
|
+
source: {
|
|
1125
|
+
pointer: string;
|
|
1126
|
+
};
|
|
1127
|
+
title: string;
|
|
1128
|
+
}[];
|
|
1105
1129
|
hold_duration?: string | null;
|
|
1106
1130
|
hold_enabled: boolean;
|
|
1107
1131
|
hold_until?: string | null;
|
|
@@ -1308,6 +1332,14 @@ declare const useAbandonPublicBookingIntent: (options?: Options$1m) => _tanstack
|
|
|
1308
1332
|
unix_ts: number;
|
|
1309
1333
|
utc: string;
|
|
1310
1334
|
} | null;
|
|
1335
|
+
errors?: {
|
|
1336
|
+
code?: string | null;
|
|
1337
|
+
detail: string;
|
|
1338
|
+
source: {
|
|
1339
|
+
pointer: string;
|
|
1340
|
+
};
|
|
1341
|
+
title: string;
|
|
1342
|
+
}[];
|
|
1311
1343
|
hold_until?: string | null;
|
|
1312
1344
|
id: string;
|
|
1313
1345
|
locked_fields?: string[];
|
|
@@ -1390,6 +1422,14 @@ declare const useAbandonPublicBookingIntent: (options?: Options$1m) => _tanstack
|
|
|
1390
1422
|
unix_ts: number;
|
|
1391
1423
|
utc: string;
|
|
1392
1424
|
} | null;
|
|
1425
|
+
errors?: {
|
|
1426
|
+
code?: string | null;
|
|
1427
|
+
detail: string;
|
|
1428
|
+
source: {
|
|
1429
|
+
pointer: string;
|
|
1430
|
+
};
|
|
1431
|
+
title: string;
|
|
1432
|
+
}[];
|
|
1393
1433
|
hold_until?: string | null;
|
|
1394
1434
|
id: string;
|
|
1395
1435
|
locked_fields?: string[];
|
|
@@ -2771,6 +2811,14 @@ declare const useCompleteBookingIntent: (options?: Options$1i) => _tanstack_reac
|
|
|
2771
2811
|
unix_ts: number;
|
|
2772
2812
|
utc: string;
|
|
2773
2813
|
} | null;
|
|
2814
|
+
errors?: {
|
|
2815
|
+
code?: string | null;
|
|
2816
|
+
detail: string;
|
|
2817
|
+
source: {
|
|
2818
|
+
pointer: string;
|
|
2819
|
+
};
|
|
2820
|
+
title: string;
|
|
2821
|
+
}[];
|
|
2774
2822
|
hold_duration?: string | null;
|
|
2775
2823
|
hold_enabled: boolean;
|
|
2776
2824
|
hold_until?: string | null;
|
|
@@ -3139,6 +3187,14 @@ declare const useCompleteBookingIntent: (options?: Options$1i) => _tanstack_reac
|
|
|
3139
3187
|
unix_ts: number;
|
|
3140
3188
|
utc: string;
|
|
3141
3189
|
} | null;
|
|
3190
|
+
errors?: {
|
|
3191
|
+
code?: string | null;
|
|
3192
|
+
detail: string;
|
|
3193
|
+
source: {
|
|
3194
|
+
pointer: string;
|
|
3195
|
+
};
|
|
3196
|
+
title: string;
|
|
3197
|
+
}[];
|
|
3142
3198
|
hold_duration?: string | null;
|
|
3143
3199
|
hold_enabled: boolean;
|
|
3144
3200
|
hold_until?: string | null;
|
|
@@ -3599,6 +3655,14 @@ declare const useCompleteBookingIntent: (options?: Options$1i) => _tanstack_reac
|
|
|
3599
3655
|
unix_ts: number;
|
|
3600
3656
|
utc: string;
|
|
3601
3657
|
} | null;
|
|
3658
|
+
errors?: {
|
|
3659
|
+
code?: string | null;
|
|
3660
|
+
detail: string;
|
|
3661
|
+
source: {
|
|
3662
|
+
pointer: string;
|
|
3663
|
+
};
|
|
3664
|
+
title: string;
|
|
3665
|
+
}[];
|
|
3602
3666
|
hold_duration?: string | null;
|
|
3603
3667
|
hold_enabled: boolean;
|
|
3604
3668
|
hold_until?: string | null;
|
|
@@ -3805,6 +3869,14 @@ declare const useCompletePublicBookingIntent: (options?: Options$1h) => _tanstac
|
|
|
3805
3869
|
unix_ts: number;
|
|
3806
3870
|
utc: string;
|
|
3807
3871
|
} | null;
|
|
3872
|
+
errors?: {
|
|
3873
|
+
code?: string | null;
|
|
3874
|
+
detail: string;
|
|
3875
|
+
source: {
|
|
3876
|
+
pointer: string;
|
|
3877
|
+
};
|
|
3878
|
+
title: string;
|
|
3879
|
+
}[];
|
|
3808
3880
|
hold_until?: string | null;
|
|
3809
3881
|
id: string;
|
|
3810
3882
|
locked_fields?: string[];
|
|
@@ -3916,6 +3988,14 @@ declare const useCompletePublicBookingIntent: (options?: Options$1h) => _tanstac
|
|
|
3916
3988
|
unix_ts: number;
|
|
3917
3989
|
utc: string;
|
|
3918
3990
|
} | null;
|
|
3991
|
+
errors?: {
|
|
3992
|
+
code?: string | null;
|
|
3993
|
+
detail: string;
|
|
3994
|
+
source: {
|
|
3995
|
+
pointer: string;
|
|
3996
|
+
};
|
|
3997
|
+
title: string;
|
|
3998
|
+
}[];
|
|
3919
3999
|
hold_until?: string | null;
|
|
3920
4000
|
id: string;
|
|
3921
4001
|
locked_fields?: string[];
|
|
@@ -6246,6 +6326,14 @@ declare const useCreateBookingIntent: (options?: Options$1b) => _tanstack_react_
|
|
|
6246
6326
|
unix_ts: number;
|
|
6247
6327
|
utc: string;
|
|
6248
6328
|
} | null;
|
|
6329
|
+
errors?: {
|
|
6330
|
+
code?: string | null;
|
|
6331
|
+
detail: string;
|
|
6332
|
+
source: {
|
|
6333
|
+
pointer: string;
|
|
6334
|
+
};
|
|
6335
|
+
title: string;
|
|
6336
|
+
}[];
|
|
6249
6337
|
hold_duration?: string | null;
|
|
6250
6338
|
hold_enabled: boolean;
|
|
6251
6339
|
hold_until?: string | null;
|
|
@@ -6614,6 +6702,14 @@ declare const useCreateBookingIntent: (options?: Options$1b) => _tanstack_react_
|
|
|
6614
6702
|
unix_ts: number;
|
|
6615
6703
|
utc: string;
|
|
6616
6704
|
} | null;
|
|
6705
|
+
errors?: {
|
|
6706
|
+
code?: string | null;
|
|
6707
|
+
detail: string;
|
|
6708
|
+
source: {
|
|
6709
|
+
pointer: string;
|
|
6710
|
+
};
|
|
6711
|
+
title: string;
|
|
6712
|
+
}[];
|
|
6617
6713
|
hold_duration?: string | null;
|
|
6618
6714
|
hold_enabled: boolean;
|
|
6619
6715
|
hold_until?: string | null;
|
|
@@ -7076,6 +7172,14 @@ declare const useCreateBookingIntent: (options?: Options$1b) => _tanstack_react_
|
|
|
7076
7172
|
unix_ts: number;
|
|
7077
7173
|
utc: string;
|
|
7078
7174
|
} | null;
|
|
7175
|
+
errors?: {
|
|
7176
|
+
code?: string | null;
|
|
7177
|
+
detail: string;
|
|
7178
|
+
source: {
|
|
7179
|
+
pointer: string;
|
|
7180
|
+
};
|
|
7181
|
+
title: string;
|
|
7182
|
+
}[];
|
|
7079
7183
|
hold_duration?: string | null;
|
|
7080
7184
|
hold_enabled: boolean;
|
|
7081
7185
|
hold_until?: string | null;
|
|
@@ -8467,6 +8571,14 @@ declare const useCreatePublicBookingIntent: (options?: Options$12) => _tanstack_
|
|
|
8467
8571
|
unix_ts: number;
|
|
8468
8572
|
utc: string;
|
|
8469
8573
|
} | null;
|
|
8574
|
+
errors?: {
|
|
8575
|
+
code?: string | null;
|
|
8576
|
+
detail: string;
|
|
8577
|
+
source: {
|
|
8578
|
+
pointer: string;
|
|
8579
|
+
};
|
|
8580
|
+
title: string;
|
|
8581
|
+
}[];
|
|
8470
8582
|
hold_until?: string | null;
|
|
8471
8583
|
id: string;
|
|
8472
8584
|
locked_fields?: string[];
|
|
@@ -8577,6 +8689,14 @@ declare const useCreatePublicBookingIntent: (options?: Options$12) => _tanstack_
|
|
|
8577
8689
|
unix_ts: number;
|
|
8578
8690
|
utc: string;
|
|
8579
8691
|
} | null;
|
|
8692
|
+
errors?: {
|
|
8693
|
+
code?: string | null;
|
|
8694
|
+
detail: string;
|
|
8695
|
+
source: {
|
|
8696
|
+
pointer: string;
|
|
8697
|
+
};
|
|
8698
|
+
title: string;
|
|
8699
|
+
}[];
|
|
8580
8700
|
hold_until?: string | null;
|
|
8581
8701
|
id: string;
|
|
8582
8702
|
locked_fields?: string[];
|
|
@@ -12055,6 +12175,14 @@ declare const useUpdateBookingIntent: (options?: Options$K) => _tanstack_react_q
|
|
|
12055
12175
|
unix_ts: number;
|
|
12056
12176
|
utc: string;
|
|
12057
12177
|
} | null;
|
|
12178
|
+
errors?: {
|
|
12179
|
+
code?: string | null;
|
|
12180
|
+
detail: string;
|
|
12181
|
+
source: {
|
|
12182
|
+
pointer: string;
|
|
12183
|
+
};
|
|
12184
|
+
title: string;
|
|
12185
|
+
}[];
|
|
12058
12186
|
hold_duration?: string | null;
|
|
12059
12187
|
hold_enabled: boolean;
|
|
12060
12188
|
hold_until?: string | null;
|
|
@@ -12423,6 +12551,14 @@ declare const useUpdateBookingIntent: (options?: Options$K) => _tanstack_react_q
|
|
|
12423
12551
|
unix_ts: number;
|
|
12424
12552
|
utc: string;
|
|
12425
12553
|
} | null;
|
|
12554
|
+
errors?: {
|
|
12555
|
+
code?: string | null;
|
|
12556
|
+
detail: string;
|
|
12557
|
+
source: {
|
|
12558
|
+
pointer: string;
|
|
12559
|
+
};
|
|
12560
|
+
title: string;
|
|
12561
|
+
}[];
|
|
12426
12562
|
hold_duration?: string | null;
|
|
12427
12563
|
hold_enabled: boolean;
|
|
12428
12564
|
hold_until?: string | null;
|
|
@@ -12887,6 +13023,14 @@ declare const useUpdateBookingIntent: (options?: Options$K) => _tanstack_react_q
|
|
|
12887
13023
|
unix_ts: number;
|
|
12888
13024
|
utc: string;
|
|
12889
13025
|
} | null;
|
|
13026
|
+
errors?: {
|
|
13027
|
+
code?: string | null;
|
|
13028
|
+
detail: string;
|
|
13029
|
+
source: {
|
|
13030
|
+
pointer: string;
|
|
13031
|
+
};
|
|
13032
|
+
title: string;
|
|
13033
|
+
}[];
|
|
12890
13034
|
hold_duration?: string | null;
|
|
12891
13035
|
hold_enabled: boolean;
|
|
12892
13036
|
hold_until?: string | null;
|
|
@@ -14316,6 +14460,14 @@ declare const useUpdatePublicBookingIntent: (options?: Options$C) => _tanstack_r
|
|
|
14316
14460
|
unix_ts: number;
|
|
14317
14461
|
utc: string;
|
|
14318
14462
|
} | null;
|
|
14463
|
+
errors?: {
|
|
14464
|
+
code?: string | null;
|
|
14465
|
+
detail: string;
|
|
14466
|
+
source: {
|
|
14467
|
+
pointer: string;
|
|
14468
|
+
};
|
|
14469
|
+
title: string;
|
|
14470
|
+
}[];
|
|
14319
14471
|
hold_until?: string | null;
|
|
14320
14472
|
id: string;
|
|
14321
14473
|
locked_fields?: string[];
|
|
@@ -14427,6 +14579,14 @@ declare const useUpdatePublicBookingIntent: (options?: Options$C) => _tanstack_r
|
|
|
14427
14579
|
unix_ts: number;
|
|
14428
14580
|
utc: string;
|
|
14429
14581
|
} | null;
|
|
14582
|
+
errors?: {
|
|
14583
|
+
code?: string | null;
|
|
14584
|
+
detail: string;
|
|
14585
|
+
source: {
|
|
14586
|
+
pointer: string;
|
|
14587
|
+
};
|
|
14588
|
+
title: string;
|
|
14589
|
+
}[];
|
|
14430
14590
|
hold_until?: string | null;
|
|
14431
14591
|
id: string;
|
|
14432
14592
|
locked_fields?: string[];
|
|
@@ -16569,6 +16729,14 @@ declare const useBookingIntent: (booking_intent_id: BookingIntentParams["path"][
|
|
|
16569
16729
|
unix_ts: number;
|
|
16570
16730
|
utc: string;
|
|
16571
16731
|
} | null;
|
|
16732
|
+
errors?: {
|
|
16733
|
+
code?: string | null;
|
|
16734
|
+
detail: string;
|
|
16735
|
+
source: {
|
|
16736
|
+
pointer: string;
|
|
16737
|
+
};
|
|
16738
|
+
title: string;
|
|
16739
|
+
}[];
|
|
16572
16740
|
hold_duration?: string | null;
|
|
16573
16741
|
hold_enabled: boolean;
|
|
16574
16742
|
hold_until?: string | null;
|
|
@@ -16937,6 +17105,14 @@ declare const useBookingIntent: (booking_intent_id: BookingIntentParams["path"][
|
|
|
16937
17105
|
unix_ts: number;
|
|
16938
17106
|
utc: string;
|
|
16939
17107
|
} | null;
|
|
17108
|
+
errors?: {
|
|
17109
|
+
code?: string | null;
|
|
17110
|
+
detail: string;
|
|
17111
|
+
source: {
|
|
17112
|
+
pointer: string;
|
|
17113
|
+
};
|
|
17114
|
+
title: string;
|
|
17115
|
+
}[];
|
|
16940
17116
|
hold_duration?: string | null;
|
|
16941
17117
|
hold_enabled: boolean;
|
|
16942
17118
|
hold_until?: string | null;
|
|
@@ -17335,6 +17511,14 @@ declare const useBookingIntents: (queryParams?: BookingIntentsParams["query"], o
|
|
|
17335
17511
|
unix_ts: number;
|
|
17336
17512
|
utc: string;
|
|
17337
17513
|
} | null;
|
|
17514
|
+
errors?: {
|
|
17515
|
+
code?: string | null;
|
|
17516
|
+
detail: string;
|
|
17517
|
+
source: {
|
|
17518
|
+
pointer: string;
|
|
17519
|
+
};
|
|
17520
|
+
title: string;
|
|
17521
|
+
}[];
|
|
17338
17522
|
hold_duration?: string | null;
|
|
17339
17523
|
hold_enabled: boolean;
|
|
17340
17524
|
hold_until?: string | null;
|
|
@@ -17709,6 +17893,14 @@ declare const useBookingIntents: (queryParams?: BookingIntentsParams["query"], o
|
|
|
17709
17893
|
unix_ts: number;
|
|
17710
17894
|
utc: string;
|
|
17711
17895
|
} | null;
|
|
17896
|
+
errors?: {
|
|
17897
|
+
code?: string | null;
|
|
17898
|
+
detail: string;
|
|
17899
|
+
source: {
|
|
17900
|
+
pointer: string;
|
|
17901
|
+
};
|
|
17902
|
+
title: string;
|
|
17903
|
+
}[];
|
|
17712
17904
|
hold_duration?: string | null;
|
|
17713
17905
|
hold_enabled: boolean;
|
|
17714
17906
|
hold_until?: string | null;
|
|
@@ -17969,7 +18161,7 @@ type ClientParams = paths["/v1/clients/{client_id}"]["get"]["parameters"];
|
|
|
17969
18161
|
interface Options$p extends QueryOptionsFor<"get", "/v1/clients/{client_id}"> {
|
|
17970
18162
|
client?: QueryClient;
|
|
17971
18163
|
}
|
|
17972
|
-
declare const useClient: (client_id: ClientParams["path"]["client_id"], options?: Options$p) => _tanstack_react_query.UseQueryResult<{
|
|
18164
|
+
declare const useClient: (client_id: ClientParams["path"]["client_id"], queryParams?: ClientParams["query"], options?: Options$p) => _tanstack_react_query.UseQueryResult<{
|
|
17973
18165
|
data: {
|
|
17974
18166
|
created_at: string;
|
|
17975
18167
|
email?: string | null;
|
|
@@ -19337,6 +19529,14 @@ declare const usePublicBookingIntent: (booking_intent_id: PublicBookingIntentPar
|
|
|
19337
19529
|
unix_ts: number;
|
|
19338
19530
|
utc: string;
|
|
19339
19531
|
} | null;
|
|
19532
|
+
errors?: {
|
|
19533
|
+
code?: string | null;
|
|
19534
|
+
detail: string;
|
|
19535
|
+
source: {
|
|
19536
|
+
pointer: string;
|
|
19537
|
+
};
|
|
19538
|
+
title: string;
|
|
19539
|
+
}[];
|
|
19340
19540
|
hold_until?: string | null;
|
|
19341
19541
|
id: string;
|
|
19342
19542
|
locked_fields?: string[];
|
package/dist/index.js
CHANGED
|
@@ -777,7 +777,7 @@ var useCancellationReasons = (options) => {
|
|
|
777
777
|
};
|
|
778
778
|
|
|
779
779
|
// src/query-hooks/use-client.ts
|
|
780
|
-
var useClient = (client_id, options) => {
|
|
780
|
+
var useClient = (client_id, queryParams, options) => {
|
|
781
781
|
const { client: overrideClient, ...queryOptions } = options ?? {};
|
|
782
782
|
const client = useSavvyCalQueryClient(overrideClient);
|
|
783
783
|
return client.useQuery(
|
|
@@ -785,7 +785,8 @@ var useClient = (client_id, options) => {
|
|
|
785
785
|
"/v1/clients/{client_id}",
|
|
786
786
|
{
|
|
787
787
|
params: {
|
|
788
|
-
path: { client_id }
|
|
788
|
+
path: { client_id },
|
|
789
|
+
query: queryParams
|
|
789
790
|
}
|
|
790
791
|
},
|
|
791
792
|
queryOptions
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@savvycal/appointments-react-query",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.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.
|
|
46
|
+
"@savvycal/appointments-core": "1.1.0"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"@tanstack/react-query": "^5.0.0",
|