recal-sdk 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/README.md +135 -32
- package/dist/client/transformers.gen.d.ts.map +1 -1
- package/dist/client/transformers.gen.js +2 -2
- package/dist/client/transformers.gen.js.map +1 -1
- package/dist/client/types.gen.d.ts +284 -51
- package/dist/client/types.gen.d.ts.map +1 -1
- package/dist/client/zod.gen.d.ts +62 -24
- package/dist/client/zod.gen.d.ts.map +1 -1
- package/dist/client/zod.gen.js +138 -120
- package/dist/client/zod.gen.js.map +1 -1
- package/dist/services/organizations.service.d.ts.map +1 -1
- package/dist/services/scheduling.service.d.ts +8 -2
- package/dist/services/scheduling.service.d.ts.map +1 -1
- package/dist/services/scheduling.service.js +31 -0
- package/dist/services/scheduling.service.js.map +1 -1
- package/package.json +3 -3
|
@@ -26,6 +26,7 @@ export type AuthConnection = {
|
|
|
26
26
|
expiresAt: Date | null;
|
|
27
27
|
provider: 'google' | 'microsoft';
|
|
28
28
|
scope: Array<string>;
|
|
29
|
+
type: string;
|
|
29
30
|
accessToken?: unknown;
|
|
30
31
|
refreshToken?: unknown;
|
|
31
32
|
};
|
|
@@ -52,10 +53,11 @@ export type Calendar = {
|
|
|
52
53
|
accessRole?: 'freeBusyReader' | 'owner' | 'reader' | 'writer';
|
|
53
54
|
backgroundColor?: string;
|
|
54
55
|
foregroundColor?: string;
|
|
56
|
+
primary?: boolean;
|
|
55
57
|
selected?: boolean;
|
|
56
58
|
subject?: string;
|
|
57
59
|
/**
|
|
58
|
-
*
|
|
60
|
+
* a valid IANA timezone identifier
|
|
59
61
|
*/
|
|
60
62
|
timeZone?: string;
|
|
61
63
|
};
|
|
@@ -422,6 +424,13 @@ export type GetV1OrganizationsOrgSlugCalendarBusyData = {
|
|
|
422
424
|
url: '/v1/organizations/{orgSlug}/calendar/busy';
|
|
423
425
|
};
|
|
424
426
|
export type GetV1OrganizationsOrgSlugCalendarBusyErrors = {
|
|
427
|
+
/**
|
|
428
|
+
* Calendar provider rejected the stored access token
|
|
429
|
+
*/
|
|
430
|
+
401: {
|
|
431
|
+
data: null;
|
|
432
|
+
error: string;
|
|
433
|
+
};
|
|
425
434
|
/**
|
|
426
435
|
* Organization not found
|
|
427
436
|
*/
|
|
@@ -429,6 +438,13 @@ export type GetV1OrganizationsOrgSlugCalendarBusyErrors = {
|
|
|
429
438
|
data: null;
|
|
430
439
|
error: string;
|
|
431
440
|
};
|
|
441
|
+
/**
|
|
442
|
+
* Calendar provider unreachable or returned an unreadable response
|
|
443
|
+
*/
|
|
444
|
+
502: {
|
|
445
|
+
data: null;
|
|
446
|
+
error: string;
|
|
447
|
+
};
|
|
432
448
|
};
|
|
433
449
|
export type GetV1OrganizationsOrgSlugCalendarBusyError = GetV1OrganizationsOrgSlugCalendarBusyErrors[keyof GetV1OrganizationsOrgSlugCalendarBusyErrors];
|
|
434
450
|
export type GetV1OrganizationsOrgSlugCalendarBusyResponses = {
|
|
@@ -450,14 +466,6 @@ export type GetV1OrganizationsOrgSlugSchedulingData = {
|
|
|
450
466
|
* End time of the time range in ISO format
|
|
451
467
|
*/
|
|
452
468
|
end: string;
|
|
453
|
-
/**
|
|
454
|
-
* Padding in minutes to add before and after busy times
|
|
455
|
-
*/
|
|
456
|
-
padding: string | unknown;
|
|
457
|
-
/**
|
|
458
|
-
* Duration of each slot in minutes
|
|
459
|
-
*/
|
|
460
|
-
slotDuration: string | unknown;
|
|
461
469
|
/**
|
|
462
470
|
* Start time of the time range in ISO format
|
|
463
471
|
*/
|
|
@@ -471,10 +479,18 @@ export type GetV1OrganizationsOrgSlugSchedulingData = {
|
|
|
471
479
|
*/
|
|
472
480
|
latestTimeEachDay?: string;
|
|
473
481
|
/**
|
|
474
|
-
*
|
|
482
|
+
* an integer >= 0 (default: 0)
|
|
475
483
|
*/
|
|
476
|
-
maxOverlaps?: string
|
|
484
|
+
maxOverlaps?: string;
|
|
485
|
+
/**
|
|
486
|
+
* Padding in minutes to add before and after busy times
|
|
487
|
+
*/
|
|
488
|
+
padding?: string;
|
|
477
489
|
provider?: Array<'google' | 'microsoft'> | 'google' | 'microsoft';
|
|
490
|
+
/**
|
|
491
|
+
* Duration of each slot in minutes
|
|
492
|
+
*/
|
|
493
|
+
slotDuration?: string;
|
|
478
494
|
};
|
|
479
495
|
url: '/v1/organizations/{orgSlug}/scheduling';
|
|
480
496
|
};
|
|
@@ -748,6 +764,13 @@ export type GetV1UsersUserIdCalendarErrors = {
|
|
|
748
764
|
data: null;
|
|
749
765
|
error: string;
|
|
750
766
|
};
|
|
767
|
+
/**
|
|
768
|
+
* Calendar provider rejected the stored access token
|
|
769
|
+
*/
|
|
770
|
+
401: {
|
|
771
|
+
data: null;
|
|
772
|
+
error: string;
|
|
773
|
+
};
|
|
751
774
|
/**
|
|
752
775
|
* User not found
|
|
753
776
|
*/
|
|
@@ -755,6 +778,13 @@ export type GetV1UsersUserIdCalendarErrors = {
|
|
|
755
778
|
data: null;
|
|
756
779
|
error: string;
|
|
757
780
|
};
|
|
781
|
+
/**
|
|
782
|
+
* Calendar provider unreachable or returned an unreadable response
|
|
783
|
+
*/
|
|
784
|
+
502: {
|
|
785
|
+
data: null;
|
|
786
|
+
error: string;
|
|
787
|
+
};
|
|
758
788
|
};
|
|
759
789
|
export type GetV1UsersUserIdCalendarError = GetV1UsersUserIdCalendarErrors[keyof GetV1UsersUserIdCalendarErrors];
|
|
760
790
|
export type GetV1UsersUserIdCalendarResponses = {
|
|
@@ -780,7 +810,7 @@ export type GetV1UsersUserIdCalendarBusyData = {
|
|
|
780
810
|
* Start time of the time range in ISO format
|
|
781
811
|
*/
|
|
782
812
|
start: string;
|
|
783
|
-
calendarIds?: Array<string>;
|
|
813
|
+
calendarIds?: string | Array<string>;
|
|
784
814
|
provider?: Array<'google' | 'microsoft'> | 'google' | 'microsoft';
|
|
785
815
|
};
|
|
786
816
|
url: '/v1/users/{userId}/calendar/busy';
|
|
@@ -793,6 +823,13 @@ export type GetV1UsersUserIdCalendarBusyErrors = {
|
|
|
793
823
|
data: null;
|
|
794
824
|
error: string;
|
|
795
825
|
};
|
|
826
|
+
/**
|
|
827
|
+
* Calendar provider rejected the stored access token
|
|
828
|
+
*/
|
|
829
|
+
401: {
|
|
830
|
+
data: null;
|
|
831
|
+
error: string;
|
|
832
|
+
};
|
|
796
833
|
/**
|
|
797
834
|
* User not found
|
|
798
835
|
*/
|
|
@@ -800,6 +837,13 @@ export type GetV1UsersUserIdCalendarBusyErrors = {
|
|
|
800
837
|
data: null;
|
|
801
838
|
error: string;
|
|
802
839
|
};
|
|
840
|
+
/**
|
|
841
|
+
* Calendar provider unreachable or returned an unreadable response
|
|
842
|
+
*/
|
|
843
|
+
502: {
|
|
844
|
+
data: null;
|
|
845
|
+
error: string;
|
|
846
|
+
};
|
|
803
847
|
};
|
|
804
848
|
export type GetV1UsersUserIdCalendarBusyError = GetV1UsersUserIdCalendarBusyErrors[keyof GetV1UsersUserIdCalendarBusyErrors];
|
|
805
849
|
export type GetV1UsersUserIdCalendarBusyResponses = {
|
|
@@ -825,7 +869,7 @@ export type GetV1UsersUserIdCalendarEventsData = {
|
|
|
825
869
|
* Start time of the time range in ISO format
|
|
826
870
|
*/
|
|
827
871
|
start: string;
|
|
828
|
-
calendarIds?: Array<string>;
|
|
872
|
+
calendarIds?: string | Array<string>;
|
|
829
873
|
provider?: Array<'google' | 'microsoft'> | 'google' | 'microsoft';
|
|
830
874
|
};
|
|
831
875
|
url: '/v1/users/{userId}/calendar/events';
|
|
@@ -838,6 +882,13 @@ export type GetV1UsersUserIdCalendarEventsErrors = {
|
|
|
838
882
|
data: null;
|
|
839
883
|
error: string;
|
|
840
884
|
};
|
|
885
|
+
/**
|
|
886
|
+
* Calendar provider rejected the stored access token
|
|
887
|
+
*/
|
|
888
|
+
401: {
|
|
889
|
+
data: null;
|
|
890
|
+
error: string;
|
|
891
|
+
};
|
|
841
892
|
/**
|
|
842
893
|
* User not found
|
|
843
894
|
*/
|
|
@@ -845,6 +896,13 @@ export type GetV1UsersUserIdCalendarEventsErrors = {
|
|
|
845
896
|
data: null;
|
|
846
897
|
error: string;
|
|
847
898
|
};
|
|
899
|
+
/**
|
|
900
|
+
* Calendar provider unreachable or returned an unreadable response
|
|
901
|
+
*/
|
|
902
|
+
502: {
|
|
903
|
+
data: null;
|
|
904
|
+
error: string;
|
|
905
|
+
};
|
|
848
906
|
};
|
|
849
907
|
export type GetV1UsersUserIdCalendarEventsError = GetV1UsersUserIdCalendarEventsErrors[keyof GetV1UsersUserIdCalendarEventsErrors];
|
|
850
908
|
export type GetV1UsersUserIdCalendarEventsResponses = {
|
|
@@ -874,6 +932,13 @@ export type PostV1UsersUserIdCalendarEventsMetaErrors = {
|
|
|
874
932
|
data: null;
|
|
875
933
|
error: string;
|
|
876
934
|
};
|
|
935
|
+
/**
|
|
936
|
+
* Calendar provider rejected the stored access token
|
|
937
|
+
*/
|
|
938
|
+
401: {
|
|
939
|
+
data: null;
|
|
940
|
+
error: string;
|
|
941
|
+
};
|
|
877
942
|
/**
|
|
878
943
|
* User not found
|
|
879
944
|
*/
|
|
@@ -881,6 +946,13 @@ export type PostV1UsersUserIdCalendarEventsMetaErrors = {
|
|
|
881
946
|
data: null;
|
|
882
947
|
error: string;
|
|
883
948
|
};
|
|
949
|
+
/**
|
|
950
|
+
* Calendar provider unreachable or returned an unreadable response
|
|
951
|
+
*/
|
|
952
|
+
502: {
|
|
953
|
+
data: null;
|
|
954
|
+
error: string;
|
|
955
|
+
};
|
|
884
956
|
};
|
|
885
957
|
export type PostV1UsersUserIdCalendarEventsMetaError = PostV1UsersUserIdCalendarEventsMetaErrors[keyof PostV1UsersUserIdCalendarEventsMetaErrors];
|
|
886
958
|
export type PostV1UsersUserIdCalendarEventsMetaResponses = {
|
|
@@ -911,6 +983,13 @@ export type DeleteV1UsersUserIdCalendarEventsMetaMetaIdErrors = {
|
|
|
911
983
|
data: null;
|
|
912
984
|
error: string;
|
|
913
985
|
};
|
|
986
|
+
/**
|
|
987
|
+
* Calendar provider rejected the stored access token
|
|
988
|
+
*/
|
|
989
|
+
401: {
|
|
990
|
+
data: null;
|
|
991
|
+
error: string;
|
|
992
|
+
};
|
|
914
993
|
/**
|
|
915
994
|
* Event not found
|
|
916
995
|
*/
|
|
@@ -918,6 +997,13 @@ export type DeleteV1UsersUserIdCalendarEventsMetaMetaIdErrors = {
|
|
|
918
997
|
data: null;
|
|
919
998
|
error: string;
|
|
920
999
|
};
|
|
1000
|
+
/**
|
|
1001
|
+
* Calendar provider unreachable or returned an unreadable response
|
|
1002
|
+
*/
|
|
1003
|
+
502: {
|
|
1004
|
+
data: null;
|
|
1005
|
+
error: string;
|
|
1006
|
+
};
|
|
921
1007
|
};
|
|
922
1008
|
export type DeleteV1UsersUserIdCalendarEventsMetaMetaIdError = DeleteV1UsersUserIdCalendarEventsMetaMetaIdErrors[keyof DeleteV1UsersUserIdCalendarEventsMetaMetaIdErrors];
|
|
923
1009
|
export type DeleteV1UsersUserIdCalendarEventsMetaMetaIdResponses = {
|
|
@@ -950,6 +1036,13 @@ export type GetV1UsersUserIdCalendarEventsMetaMetaIdErrors = {
|
|
|
950
1036
|
data: null;
|
|
951
1037
|
error: string;
|
|
952
1038
|
};
|
|
1039
|
+
/**
|
|
1040
|
+
* Calendar provider rejected the stored access token
|
|
1041
|
+
*/
|
|
1042
|
+
401: {
|
|
1043
|
+
data: null;
|
|
1044
|
+
error: string;
|
|
1045
|
+
};
|
|
953
1046
|
/**
|
|
954
1047
|
* Event not found
|
|
955
1048
|
*/
|
|
@@ -957,6 +1050,13 @@ export type GetV1UsersUserIdCalendarEventsMetaMetaIdErrors = {
|
|
|
957
1050
|
data: null;
|
|
958
1051
|
error: string;
|
|
959
1052
|
};
|
|
1053
|
+
/**
|
|
1054
|
+
* Calendar provider unreachable or returned an unreadable response
|
|
1055
|
+
*/
|
|
1056
|
+
502: {
|
|
1057
|
+
data: null;
|
|
1058
|
+
error: string;
|
|
1059
|
+
};
|
|
960
1060
|
};
|
|
961
1061
|
export type GetV1UsersUserIdCalendarEventsMetaMetaIdError = GetV1UsersUserIdCalendarEventsMetaMetaIdErrors[keyof GetV1UsersUserIdCalendarEventsMetaMetaIdErrors];
|
|
962
1062
|
export type GetV1UsersUserIdCalendarEventsMetaMetaIdResponses = {
|
|
@@ -987,6 +1087,13 @@ export type PutV1UsersUserIdCalendarEventsMetaMetaIdErrors = {
|
|
|
987
1087
|
data: null;
|
|
988
1088
|
error: string;
|
|
989
1089
|
};
|
|
1090
|
+
/**
|
|
1091
|
+
* Calendar provider rejected the stored access token
|
|
1092
|
+
*/
|
|
1093
|
+
401: {
|
|
1094
|
+
data: null;
|
|
1095
|
+
error: string;
|
|
1096
|
+
};
|
|
990
1097
|
/**
|
|
991
1098
|
* Event not found
|
|
992
1099
|
*/
|
|
@@ -994,6 +1101,13 @@ export type PutV1UsersUserIdCalendarEventsMetaMetaIdErrors = {
|
|
|
994
1101
|
data: null;
|
|
995
1102
|
error: string;
|
|
996
1103
|
};
|
|
1104
|
+
/**
|
|
1105
|
+
* Calendar provider unreachable or returned an unreadable response
|
|
1106
|
+
*/
|
|
1107
|
+
502: {
|
|
1108
|
+
data: null;
|
|
1109
|
+
error: string;
|
|
1110
|
+
};
|
|
997
1111
|
};
|
|
998
1112
|
export type PutV1UsersUserIdCalendarEventsMetaMetaIdError = PutV1UsersUserIdCalendarEventsMetaMetaIdErrors[keyof PutV1UsersUserIdCalendarEventsMetaMetaIdErrors];
|
|
999
1113
|
export type PutV1UsersUserIdCalendarEventsMetaMetaIdResponses = {
|
|
@@ -1023,6 +1137,13 @@ export type PostV1UsersUserIdCalendarEventsProviderCalendarIdErrors = {
|
|
|
1023
1137
|
data: null;
|
|
1024
1138
|
error: string;
|
|
1025
1139
|
};
|
|
1140
|
+
/**
|
|
1141
|
+
* Calendar provider rejected the stored access token
|
|
1142
|
+
*/
|
|
1143
|
+
401: {
|
|
1144
|
+
data: null;
|
|
1145
|
+
error: string;
|
|
1146
|
+
};
|
|
1026
1147
|
/**
|
|
1027
1148
|
* User not found
|
|
1028
1149
|
*/
|
|
@@ -1030,6 +1151,13 @@ export type PostV1UsersUserIdCalendarEventsProviderCalendarIdErrors = {
|
|
|
1030
1151
|
data: null;
|
|
1031
1152
|
error: string;
|
|
1032
1153
|
};
|
|
1154
|
+
/**
|
|
1155
|
+
* Calendar provider unreachable or returned an unreadable response
|
|
1156
|
+
*/
|
|
1157
|
+
502: {
|
|
1158
|
+
data: null;
|
|
1159
|
+
error: string;
|
|
1160
|
+
};
|
|
1033
1161
|
};
|
|
1034
1162
|
export type PostV1UsersUserIdCalendarEventsProviderCalendarIdError = PostV1UsersUserIdCalendarEventsProviderCalendarIdErrors[keyof PostV1UsersUserIdCalendarEventsProviderCalendarIdErrors];
|
|
1035
1163
|
export type PostV1UsersUserIdCalendarEventsProviderCalendarIdResponses = {
|
|
@@ -1060,6 +1188,13 @@ export type DeleteV1UsersUserIdCalendarEventsProviderCalendarIdEventIdErrors = {
|
|
|
1060
1188
|
data: null;
|
|
1061
1189
|
error: string;
|
|
1062
1190
|
};
|
|
1191
|
+
/**
|
|
1192
|
+
* Calendar provider rejected the stored access token
|
|
1193
|
+
*/
|
|
1194
|
+
401: {
|
|
1195
|
+
data: null;
|
|
1196
|
+
error: string;
|
|
1197
|
+
};
|
|
1063
1198
|
/**
|
|
1064
1199
|
* User not found
|
|
1065
1200
|
*/
|
|
@@ -1067,6 +1202,13 @@ export type DeleteV1UsersUserIdCalendarEventsProviderCalendarIdEventIdErrors = {
|
|
|
1067
1202
|
data: null;
|
|
1068
1203
|
error: string;
|
|
1069
1204
|
};
|
|
1205
|
+
/**
|
|
1206
|
+
* Calendar provider unreachable or returned an unreadable response
|
|
1207
|
+
*/
|
|
1208
|
+
502: {
|
|
1209
|
+
data: null;
|
|
1210
|
+
error: string;
|
|
1211
|
+
};
|
|
1070
1212
|
};
|
|
1071
1213
|
export type DeleteV1UsersUserIdCalendarEventsProviderCalendarIdEventIdError = DeleteV1UsersUserIdCalendarEventsProviderCalendarIdEventIdErrors[keyof DeleteV1UsersUserIdCalendarEventsProviderCalendarIdEventIdErrors];
|
|
1072
1214
|
export type DeleteV1UsersUserIdCalendarEventsProviderCalendarIdEventIdResponses = {
|
|
@@ -1099,6 +1241,13 @@ export type GetV1UsersUserIdCalendarEventsProviderCalendarIdEventIdErrors = {
|
|
|
1099
1241
|
data: null;
|
|
1100
1242
|
error: string;
|
|
1101
1243
|
};
|
|
1244
|
+
/**
|
|
1245
|
+
* Calendar provider rejected the stored access token
|
|
1246
|
+
*/
|
|
1247
|
+
401: {
|
|
1248
|
+
data: null;
|
|
1249
|
+
error: string;
|
|
1250
|
+
};
|
|
1102
1251
|
/**
|
|
1103
1252
|
* User not found
|
|
1104
1253
|
*/
|
|
@@ -1106,6 +1255,13 @@ export type GetV1UsersUserIdCalendarEventsProviderCalendarIdEventIdErrors = {
|
|
|
1106
1255
|
data: null;
|
|
1107
1256
|
error: string;
|
|
1108
1257
|
};
|
|
1258
|
+
/**
|
|
1259
|
+
* Calendar provider unreachable or returned an unreadable response
|
|
1260
|
+
*/
|
|
1261
|
+
502: {
|
|
1262
|
+
data: null;
|
|
1263
|
+
error: string;
|
|
1264
|
+
};
|
|
1109
1265
|
};
|
|
1110
1266
|
export type GetV1UsersUserIdCalendarEventsProviderCalendarIdEventIdError = GetV1UsersUserIdCalendarEventsProviderCalendarIdEventIdErrors[keyof GetV1UsersUserIdCalendarEventsProviderCalendarIdEventIdErrors];
|
|
1111
1267
|
export type GetV1UsersUserIdCalendarEventsProviderCalendarIdEventIdResponses = {
|
|
@@ -1136,6 +1292,13 @@ export type PutV1UsersUserIdCalendarEventsProviderCalendarIdEventIdErrors = {
|
|
|
1136
1292
|
data: null;
|
|
1137
1293
|
error: string;
|
|
1138
1294
|
};
|
|
1295
|
+
/**
|
|
1296
|
+
* Calendar provider rejected the stored access token
|
|
1297
|
+
*/
|
|
1298
|
+
401: {
|
|
1299
|
+
data: null;
|
|
1300
|
+
error: string;
|
|
1301
|
+
};
|
|
1139
1302
|
/**
|
|
1140
1303
|
* User not found
|
|
1141
1304
|
*/
|
|
@@ -1143,6 +1306,13 @@ export type PutV1UsersUserIdCalendarEventsProviderCalendarIdEventIdErrors = {
|
|
|
1143
1306
|
data: null;
|
|
1144
1307
|
error: string;
|
|
1145
1308
|
};
|
|
1309
|
+
/**
|
|
1310
|
+
* Calendar provider unreachable or returned an unreadable response
|
|
1311
|
+
*/
|
|
1312
|
+
502: {
|
|
1313
|
+
data: null;
|
|
1314
|
+
error: string;
|
|
1315
|
+
};
|
|
1146
1316
|
};
|
|
1147
1317
|
export type PutV1UsersUserIdCalendarEventsProviderCalendarIdEventIdError = PutV1UsersUserIdCalendarEventsProviderCalendarIdEventIdErrors[keyof PutV1UsersUserIdCalendarEventsProviderCalendarIdEventIdErrors];
|
|
1148
1318
|
export type PutV1UsersUserIdCalendarEventsProviderCalendarIdEventIdResponses = {
|
|
@@ -1199,8 +1369,8 @@ export type GetV1UsersUserIdOauthLinksData = {
|
|
|
1199
1369
|
/**
|
|
1200
1370
|
* Scope of the oauth connection
|
|
1201
1371
|
*/
|
|
1202
|
-
scope: Array<string> | 'edit' | 'free-busy';
|
|
1203
|
-
provider?: Array<'google' | 'microsoft'
|
|
1372
|
+
scope: Array<string> | 'edit' | 'free-busy' | 'read' | 'write';
|
|
1373
|
+
provider?: Array<'google' | 'microsoft'> | 'google' | 'microsoft';
|
|
1204
1374
|
};
|
|
1205
1375
|
url: '/v1/users/{userId}/oauth/links';
|
|
1206
1376
|
};
|
|
@@ -1250,7 +1420,7 @@ export type GetV1UsersUserIdOauthProviderLinkData = {
|
|
|
1250
1420
|
/**
|
|
1251
1421
|
* Scope of the oauth connection
|
|
1252
1422
|
*/
|
|
1253
|
-
scope: Array<string> | 'edit' | 'free-busy';
|
|
1423
|
+
scope: Array<string> | 'edit' | 'free-busy' | 'read' | 'write';
|
|
1254
1424
|
/**
|
|
1255
1425
|
* Redirect url for the oauth provider
|
|
1256
1426
|
*/
|
|
@@ -1346,6 +1516,13 @@ export type DeleteV1UsersUserIdOauthProviderErrors = {
|
|
|
1346
1516
|
data: null;
|
|
1347
1517
|
error: string;
|
|
1348
1518
|
};
|
|
1519
|
+
/**
|
|
1520
|
+
* Internal server error
|
|
1521
|
+
*/
|
|
1522
|
+
500: {
|
|
1523
|
+
data: null;
|
|
1524
|
+
error: string;
|
|
1525
|
+
};
|
|
1349
1526
|
};
|
|
1350
1527
|
export type DeleteV1UsersUserIdOauthProviderError = DeleteV1UsersUserIdOauthProviderErrors[keyof DeleteV1UsersUserIdOauthProviderErrors];
|
|
1351
1528
|
export type DeleteV1UsersUserIdOauthProviderResponses = {
|
|
@@ -1475,14 +1652,6 @@ export type GetV1UsersUserIdSchedulingData = {
|
|
|
1475
1652
|
* End time of the time range in ISO format
|
|
1476
1653
|
*/
|
|
1477
1654
|
end: string;
|
|
1478
|
-
/**
|
|
1479
|
-
* Padding in minutes to add before and after busy times
|
|
1480
|
-
*/
|
|
1481
|
-
padding: string | unknown;
|
|
1482
|
-
/**
|
|
1483
|
-
* Duration of each slot in minutes
|
|
1484
|
-
*/
|
|
1485
|
-
slotDuration: string | unknown;
|
|
1486
1655
|
/**
|
|
1487
1656
|
* Start time of the time range in ISO format
|
|
1488
1657
|
*/
|
|
@@ -1496,10 +1665,18 @@ export type GetV1UsersUserIdSchedulingData = {
|
|
|
1496
1665
|
*/
|
|
1497
1666
|
latestTimeEachDay?: string;
|
|
1498
1667
|
/**
|
|
1499
|
-
*
|
|
1668
|
+
* an integer >= 0 (default: 0)
|
|
1669
|
+
*/
|
|
1670
|
+
maxOverlaps?: string;
|
|
1671
|
+
/**
|
|
1672
|
+
* Padding in minutes to add before and after busy times
|
|
1500
1673
|
*/
|
|
1501
|
-
|
|
1674
|
+
padding?: string;
|
|
1502
1675
|
provider?: Array<'google' | 'microsoft'> | 'google' | 'microsoft';
|
|
1676
|
+
/**
|
|
1677
|
+
* Duration of each slot in minutes
|
|
1678
|
+
*/
|
|
1679
|
+
slotDuration?: string;
|
|
1503
1680
|
};
|
|
1504
1681
|
url: '/v1/users/{userId}/scheduling';
|
|
1505
1682
|
};
|
|
@@ -1512,12 +1689,26 @@ export type GetV1UsersUserIdSchedulingErrors = {
|
|
|
1512
1689
|
error: string;
|
|
1513
1690
|
};
|
|
1514
1691
|
/**
|
|
1515
|
-
*
|
|
1692
|
+
* Calendar provider rejected the stored access token
|
|
1693
|
+
*/
|
|
1694
|
+
401: {
|
|
1695
|
+
data: null;
|
|
1696
|
+
error: string;
|
|
1697
|
+
};
|
|
1698
|
+
/**
|
|
1699
|
+
* User not found, or the user has no connected calendars
|
|
1516
1700
|
*/
|
|
1517
1701
|
404: {
|
|
1518
1702
|
data: null;
|
|
1519
1703
|
error: string;
|
|
1520
1704
|
};
|
|
1705
|
+
/**
|
|
1706
|
+
* Calendar provider unreachable or returned an unreadable response
|
|
1707
|
+
*/
|
|
1708
|
+
502: {
|
|
1709
|
+
data: null;
|
|
1710
|
+
error: string;
|
|
1711
|
+
};
|
|
1521
1712
|
};
|
|
1522
1713
|
export type GetV1UsersUserIdSchedulingError = GetV1UsersUserIdSchedulingErrors[keyof GetV1UsersUserIdSchedulingErrors];
|
|
1523
1714
|
export type GetV1UsersUserIdSchedulingResponses = {
|
|
@@ -1584,40 +1775,54 @@ export type PostV1UsersUserIdSchedulingData = {
|
|
|
1584
1775
|
*/
|
|
1585
1776
|
end: string;
|
|
1586
1777
|
/**
|
|
1587
|
-
*
|
|
1778
|
+
* Start time of the time range in ISO format
|
|
1588
1779
|
*/
|
|
1589
|
-
|
|
1780
|
+
start: string;
|
|
1590
1781
|
/**
|
|
1591
|
-
*
|
|
1782
|
+
* an integer >= 0 (default: 0)
|
|
1592
1783
|
*/
|
|
1593
|
-
|
|
1784
|
+
maxOverlaps?: string;
|
|
1594
1785
|
/**
|
|
1595
|
-
*
|
|
1786
|
+
* Padding in minutes to add before and after busy times
|
|
1596
1787
|
*/
|
|
1597
|
-
|
|
1788
|
+
padding?: string;
|
|
1789
|
+
provider?: Array<'google' | 'microsoft'> | 'google' | 'microsoft';
|
|
1598
1790
|
/**
|
|
1599
|
-
*
|
|
1791
|
+
* Duration of each slot in minutes
|
|
1600
1792
|
*/
|
|
1601
|
-
|
|
1602
|
-
provider?: Array<'google' | 'microsoft'> | 'google' | 'microsoft';
|
|
1793
|
+
slotDuration?: string;
|
|
1603
1794
|
};
|
|
1604
1795
|
url: '/v1/users/{userId}/scheduling';
|
|
1605
1796
|
};
|
|
1606
1797
|
export type PostV1UsersUserIdSchedulingErrors = {
|
|
1607
1798
|
/**
|
|
1608
|
-
*
|
|
1799
|
+
* Bad request
|
|
1609
1800
|
*/
|
|
1610
1801
|
400: {
|
|
1611
1802
|
data: null;
|
|
1612
1803
|
error: string;
|
|
1613
1804
|
};
|
|
1614
1805
|
/**
|
|
1615
|
-
*
|
|
1806
|
+
* Calendar provider rejected the stored access token
|
|
1807
|
+
*/
|
|
1808
|
+
401: {
|
|
1809
|
+
data: null;
|
|
1810
|
+
error: string;
|
|
1811
|
+
};
|
|
1812
|
+
/**
|
|
1813
|
+
* User not found, or the user has no connected calendars
|
|
1616
1814
|
*/
|
|
1617
1815
|
404: {
|
|
1618
1816
|
data: null;
|
|
1619
1817
|
error: string;
|
|
1620
1818
|
};
|
|
1819
|
+
/**
|
|
1820
|
+
* Calendar provider unreachable or returned an unreadable response
|
|
1821
|
+
*/
|
|
1822
|
+
502: {
|
|
1823
|
+
data: null;
|
|
1824
|
+
error: string;
|
|
1825
|
+
};
|
|
1621
1826
|
};
|
|
1622
1827
|
export type PostV1UsersUserIdSchedulingError = PostV1UsersUserIdSchedulingErrors[keyof PostV1UsersUserIdSchedulingErrors];
|
|
1623
1828
|
export type PostV1UsersUserIdSchedulingResponses = {
|
|
@@ -1662,8 +1867,21 @@ export type PostV1UsersSchedulingData = {
|
|
|
1662
1867
|
body?: {
|
|
1663
1868
|
users: Array<{
|
|
1664
1869
|
id: string;
|
|
1665
|
-
calendarIds?: Array<string>;
|
|
1666
|
-
schedules?:
|
|
1870
|
+
calendarIds?: string | Array<string>;
|
|
1871
|
+
schedules?: {
|
|
1872
|
+
/**
|
|
1873
|
+
* The days to apply this scheduling element to
|
|
1874
|
+
*/
|
|
1875
|
+
days: Array<'friday' | 'monday' | 'saturday' | 'sunday' | 'thursday' | 'tuesday' | 'wednesday'>;
|
|
1876
|
+
/**
|
|
1877
|
+
* End time
|
|
1878
|
+
*/
|
|
1879
|
+
end: string;
|
|
1880
|
+
/**
|
|
1881
|
+
* Start time
|
|
1882
|
+
*/
|
|
1883
|
+
start: string;
|
|
1884
|
+
} | Array<{
|
|
1667
1885
|
/**
|
|
1668
1886
|
* The days to apply this scheduling element to
|
|
1669
1887
|
*/
|
|
@@ -1686,22 +1904,22 @@ export type PostV1UsersSchedulingData = {
|
|
|
1686
1904
|
*/
|
|
1687
1905
|
end: string;
|
|
1688
1906
|
/**
|
|
1689
|
-
*
|
|
1907
|
+
* Start time of the time range in ISO format
|
|
1690
1908
|
*/
|
|
1691
|
-
|
|
1909
|
+
start: string;
|
|
1692
1910
|
/**
|
|
1693
|
-
*
|
|
1911
|
+
* an integer >= 0 (default: 0)
|
|
1694
1912
|
*/
|
|
1695
|
-
|
|
1913
|
+
maxOverlaps?: string;
|
|
1696
1914
|
/**
|
|
1697
|
-
*
|
|
1915
|
+
* Padding in minutes to add before and after busy times
|
|
1698
1916
|
*/
|
|
1699
|
-
|
|
1917
|
+
padding?: string;
|
|
1918
|
+
provider?: Array<'google' | 'microsoft'> | 'google' | 'microsoft';
|
|
1700
1919
|
/**
|
|
1701
|
-
*
|
|
1920
|
+
* Duration of each slot in minutes
|
|
1702
1921
|
*/
|
|
1703
|
-
|
|
1704
|
-
provider?: Array<'google' | 'microsoft'> | 'google' | 'microsoft';
|
|
1922
|
+
slotDuration?: string;
|
|
1705
1923
|
};
|
|
1706
1924
|
url: '/v1/users/scheduling';
|
|
1707
1925
|
};
|
|
@@ -1739,9 +1957,23 @@ export type PostV1UsersSchedulingResponses = {
|
|
|
1739
1957
|
*/
|
|
1740
1958
|
latestTimeEachDay?: string;
|
|
1741
1959
|
};
|
|
1960
|
+
status: 'ok';
|
|
1742
1961
|
userId: string;
|
|
1743
|
-
calendarIds?: Array<string>;
|
|
1744
|
-
schedules?:
|
|
1962
|
+
calendarIds?: string | Array<string>;
|
|
1963
|
+
schedules?: {
|
|
1964
|
+
/**
|
|
1965
|
+
* The days to apply this scheduling element to
|
|
1966
|
+
*/
|
|
1967
|
+
days: Array<'friday' | 'monday' | 'saturday' | 'sunday' | 'thursday' | 'tuesday' | 'wednesday'>;
|
|
1968
|
+
/**
|
|
1969
|
+
* End time
|
|
1970
|
+
*/
|
|
1971
|
+
end: string;
|
|
1972
|
+
/**
|
|
1973
|
+
* Start time
|
|
1974
|
+
*/
|
|
1975
|
+
start: string;
|
|
1976
|
+
} | Array<{
|
|
1745
1977
|
/**
|
|
1746
1978
|
* The days to apply this scheduling element to
|
|
1747
1979
|
*/
|
|
@@ -1757,6 +1989,7 @@ export type PostV1UsersSchedulingResponses = {
|
|
|
1757
1989
|
}>;
|
|
1758
1990
|
} | {
|
|
1759
1991
|
error: string;
|
|
1992
|
+
status: 'error';
|
|
1760
1993
|
userId: string;
|
|
1761
1994
|
}>;
|
|
1762
1995
|
};
|