@turndown/library 0.1.59 → 0.1.62

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
@@ -764,7 +764,7 @@ declare const HTTP_STATUS: {
764
764
  readonly InternalError: 500;
765
765
  };
766
766
  type THttpStatusCode = (typeof HTTP_STATUS)[keyof typeof HTTP_STATUS];
767
- type TApiErrorDetails = TJsonValue | undefined;
767
+ type TApiErrorDetails = TJsonValue;
768
768
  interface IApiError<TDetails = TApiErrorDetails> {
769
769
  message: string;
770
770
  code?: TErrorCode;
@@ -776,12 +776,90 @@ interface IApiMeta {
776
776
  environment: TEnvironment;
777
777
  requestId?: string;
778
778
  }
779
- interface IApiResponse<TData = null, TErrorDetails = TApiErrorDetails> {
780
- success: boolean;
781
- data?: TData | null;
782
- error?: IApiError<TErrorDetails> | null;
783
- meta?: IApiMeta;
779
+ interface IApiSuccessResponse<TData = null> {
780
+ success: true;
781
+ data: TData;
782
+ meta: IApiMeta;
783
+ }
784
+ interface IApiErrorResponse<TErrorDetails = TApiErrorDetails> {
785
+ success: false;
786
+ error: IApiError<TErrorDetails>;
787
+ meta: IApiMeta;
784
788
  }
789
+ type IApiResponse<TData = null, TErrorDetails = TApiErrorDetails> = IApiSuccessResponse<TData> | IApiErrorResponse<TErrorDetails>;
790
+
791
+ type TValidationIssueType = "INVALID_BODY" | "MISSING_FIELD" | "INVALID_FIELD" | "UNSUPPORTED_FIELD";
792
+ interface IValidationIssue<TFieldName extends string = string> {
793
+ fieldName: TFieldName;
794
+ type: TValidationIssueType;
795
+ }
796
+ interface IValidationResult<TValue extends object> {
797
+ success: boolean;
798
+ data?: TValue;
799
+ issues: IValidationIssue[];
800
+ }
801
+ type TMissingValuePolicy = "Nullish" | "BlankString";
802
+ interface IValidationField<TValue, TRequired extends boolean> {
803
+ readonly valueType?: TValue;
804
+ required: TRequired;
805
+ missingValuePolicy: TMissingValuePolicy;
806
+ validate: (value: unknown) => boolean;
807
+ }
808
+ type TValidationFieldMap = Record<string, IValidationField<unknown, boolean>>;
809
+ type TRequiredSchemaKeys<TFields extends TValidationFieldMap> = {
810
+ [TKey in keyof TFields]: TFields[TKey] extends IValidationField<unknown, true> ? TKey : never;
811
+ }[keyof TFields];
812
+ type TOptionalSchemaKeys<TFields extends TValidationFieldMap> = Exclude<keyof TFields, TRequiredSchemaKeys<TFields>>;
813
+ type TFieldValue<TField> = TField extends IValidationField<infer TValue, boolean> ? TValue : never;
814
+ type TInferValidationFields<TFields extends TValidationFieldMap> = {
815
+ [TKey in TRequiredSchemaKeys<TFields>]: TFieldValue<TFields[TKey]>;
816
+ } & {
817
+ [TKey in TOptionalSchemaKeys<TFields>]?: TFieldValue<TFields[TKey]>;
818
+ };
819
+ type TInferValidationSchemaInput<TSchema> = TSchema extends IRuntimeValidationSchema<infer TFields> ? TInferValidationFields<TFields> : never;
820
+ interface IRuntimeValidationSchema<TFields extends TValidationFieldMap = TValidationFieldMap> {
821
+ fields: TFields;
822
+ allowedFields: readonly Extract<keyof TFields, string>[];
823
+ requiredFields: readonly Extract<TRequiredSchemaKeys<TFields>, string>[];
824
+ validate: (value: unknown, options?: IRuntimeValidationOptions) => IValidationResult<TInferValidationFields<TFields>>;
825
+ }
826
+ interface IRuntimeValidationOptions {
827
+ rejectUnknownFields?: boolean;
828
+ }
829
+ declare const createValidationSchema: <TFields extends TValidationFieldMap>(fields: TFields) => IRuntimeValidationSchema<TFields>;
830
+ declare const requiredStringField: (missingValuePolicy?: TMissingValuePolicy) => IValidationField<string, true>;
831
+ declare const optionalStringField: () => IValidationField<string, false>;
832
+ declare const optionalNullableStringField: () => IValidationField<string | null, false>;
833
+ declare const requiredEmailField: (missingValuePolicy?: TMissingValuePolicy) => IValidationField<string, true>;
834
+ declare const requiredUuidField: (missingValuePolicy?: TMissingValuePolicy) => IValidationField<string, true>;
835
+ declare const optionalNullableNonNegativeIntegerField: () => IValidationField<number | null, false>;
836
+ declare const optionalRecordField: () => IValidationField<Record<string, unknown>, false>;
837
+ declare const requiredEnumField: <TValue extends string>(allowedValues: readonly TValue[], missingValuePolicy?: TMissingValuePolicy) => IValidationField<TValue, true>;
838
+ declare const optionalEnumField: <TValue extends string>(allowedValues: readonly TValue[]) => IValidationField<TValue, false>;
839
+ declare const optionalNullableEnumField: <TValue extends string>(allowedValues: readonly TValue[]) => IValidationField<TValue | null, false>;
840
+
841
+ declare const ACCOUNT_TYPE: {
842
+ readonly TURNDOWN_ADMIN: "TURNDOWN_ADMIN";
843
+ readonly ACCOUNT_ADMIN: "ACCOUNT_ADMIN";
844
+ readonly MANAGER: "MANAGER";
845
+ readonly STAFF: "STAFF";
846
+ readonly GUEST: "GUEST";
847
+ };
848
+ type TAccountType = TRecordValue<typeof ACCOUNT_TYPE>;
849
+ declare const ACCOUNT_STATUS: {
850
+ readonly ACTIVE: "ACTIVE";
851
+ readonly INACTIVE: "INACTIVE";
852
+ readonly SUSPENDED: "SUSPENDED";
853
+ readonly PENDING: "PENDING";
854
+ };
855
+ type TAccountStatus = TRecordValue<typeof ACCOUNT_STATUS>;
856
+ declare const LANGUAGE: {
857
+ readonly ENGLISH: "ENGLISH";
858
+ readonly FRENCH: "FRENCH";
859
+ readonly SPANISH: "SPANISH";
860
+ readonly GERMAN: "GERMAN";
861
+ };
862
+ type TLanguage = TRecordValue<typeof LANGUAGE>;
785
863
 
786
864
  interface IUserIdParams {
787
865
  id: string;
@@ -805,16 +883,24 @@ type IGetStaffRequest = IEmptyRouteRequest;
805
883
  interface IGetStaffResponse {
806
884
  staff: IUserSafe[];
807
885
  }
808
- interface IUpdateUserRequest {
809
- firstName?: string;
810
- lastName?: string | null;
811
- mi?: string | null;
812
- username?: string | null;
813
- email?: string;
814
- phoneNumber?: string | null;
815
- phoneFormat?: string | null;
886
+ declare const UpdateUserRequestSchema: IRuntimeValidationSchema<{
887
+ firstName: IValidationField<string, false>;
888
+ lastName: IValidationField<string | null, false>;
889
+ mi: IValidationField<string | null, false>;
890
+ username: IValidationField<string | null, false>;
891
+ email: IValidationField<string, false>;
892
+ phoneNumber: IValidationField<string | null, false>;
893
+ phoneFormat: IValidationField<string | null, false>;
894
+ preferredLanguage: IValidationField<"ENGLISH" | "FRENCH" | "SPANISH" | "GERMAN", false>;
895
+ }>;
896
+ type IUpdateUserRequest = TInferValidationSchemaInput<typeof UpdateUserRequestSchema> & {
816
897
  preferredLanguage?: IUserSafe["preferredLanguage"];
817
- }
898
+ };
899
+ declare const UpdateCurrentUserRequestSchema: IRuntimeValidationSchema<{
900
+ firstName: IValidationField<string, false>;
901
+ lastName: IValidationField<string, false>;
902
+ }>;
903
+ type IUpdateCurrentUserRequest = TInferValidationSchemaInput<typeof UpdateCurrentUserRequestSchema>;
818
904
  interface IUpdateUserResponse {
819
905
  user: IUserSafe;
820
906
  }
@@ -828,28 +914,6 @@ interface IGetUsersByAccountTypeResponse {
828
914
  users: IUserSafe[];
829
915
  }
830
916
 
831
- declare const ACCOUNT_TYPE: {
832
- readonly TURNDOWN_ADMIN: "TURNDOWN_ADMIN";
833
- readonly ACCOUNT_ADMIN: "ACCOUNT_ADMIN";
834
- readonly MANAGER: "MANAGER";
835
- readonly STAFF: "STAFF";
836
- readonly GUEST: "GUEST";
837
- };
838
- type TAccountType = TRecordValue<typeof ACCOUNT_TYPE>;
839
- declare const ACCOUNT_STATUS: {
840
- readonly ACTIVE: "ACTIVE";
841
- readonly INACTIVE: "INACTIVE";
842
- readonly SUSPENDED: "SUSPENDED";
843
- readonly PENDING: "PENDING";
844
- };
845
- type TAccountStatus = TRecordValue<typeof ACCOUNT_STATUS>;
846
- declare const LANGUAGE: {
847
- readonly ENGLISH: "ENGLISH";
848
- readonly FRENCH: "FRENCH";
849
- readonly SPANISH: "SPANISH";
850
- readonly GERMAN: "GERMAN";
851
- };
852
- type TLanguage = TRecordValue<typeof LANGUAGE>;
853
917
  interface IUser extends IMetaData {
854
918
  readonly id: string;
855
919
  firstName: string;
@@ -858,19 +922,19 @@ interface IUser extends IMetaData {
858
922
  username: string | null;
859
923
  email: string;
860
924
  profilePhoto: string | null;
861
- companyId?: string;
862
- passwordHash?: string;
863
- loginAttempts?: number;
864
- locked?: boolean;
925
+ companyId: string | null;
926
+ passwordHash: string | null;
927
+ loginAttempts: number;
928
+ locked: boolean;
865
929
  passwordLastReset: TDateTimeString | null;
866
- passwordResetRequired?: boolean;
930
+ passwordResetRequired: boolean;
867
931
  lastLogin: TDateTimeString | null;
868
932
  accountType: TAccountType;
869
933
  status: TAccountStatus;
870
934
  phoneNumber: string | null;
871
935
  phoneFormat: string | null;
872
936
  preferredLanguage: TLanguage | null;
873
- biometrics?: string;
937
+ biometrics: string | null;
874
938
  }
875
939
  type IUserSafe = Omit<IUser, "passwordLastReset" | "lastLogin" | "passwordHash" | "loginAttempts" | "biometrics">;
876
940
  interface IDeviceInfo {
@@ -908,33 +972,43 @@ interface IAuthInvitationBaseResponse {
908
972
  invitedByName: string;
909
973
  expiresAt: TDateTimeString;
910
974
  }
911
- interface IRegisterRequest {
912
- email: string;
913
- password: string;
914
- firstName: string;
915
- lastName?: string;
916
- accountType: TAccountType;
975
+ declare const RegisterRequestSchema: IRuntimeValidationSchema<{
976
+ email: IValidationField<string, true>;
977
+ password: IValidationField<string, true>;
978
+ firstName: IValidationField<string, true>;
979
+ lastName: IValidationField<string, false>;
980
+ accountType: IValidationField<"TURNDOWN_ADMIN" | "ACCOUNT_ADMIN" | "MANAGER" | "STAFF" | "GUEST", true>;
981
+ deviceInfo: IValidationField<Record<string, unknown>, false>;
982
+ }>;
983
+ type IRegisterRequest = Omit<TInferValidationSchemaInput<typeof RegisterRequestSchema>, "deviceInfo"> & {
917
984
  deviceInfo?: IDeviceInfo;
918
- }
985
+ };
919
986
  interface IRegisterResponse extends IAuthTokenResponse {
920
987
  }
921
- interface ILoginRequest {
922
- email: string;
923
- password: string;
988
+ declare const LoginRequestSchema: IRuntimeValidationSchema<{
989
+ email: IValidationField<string, true>;
990
+ password: IValidationField<string, true>;
991
+ deviceInfo: IValidationField<Record<string, unknown>, false>;
992
+ }>;
993
+ type ILoginRequest = Omit<TInferValidationSchemaInput<typeof LoginRequestSchema>, "deviceInfo"> & {
924
994
  deviceInfo?: IDeviceInfo;
925
- }
995
+ };
926
996
  interface ILoginResponse extends IAuthTokenResponse {
927
- passwordResetRequired?: boolean;
997
+ passwordResetRequired: boolean;
928
998
  }
929
- interface IRefreshSessionRequest {
930
- refreshToken: string;
999
+ declare const RefreshSessionRequestSchema: IRuntimeValidationSchema<{
1000
+ refreshToken: IValidationField<string, true>;
1001
+ deviceInfo: IValidationField<Record<string, unknown>, false>;
1002
+ }>;
1003
+ type IRefreshSessionRequest = Omit<TInferValidationSchemaInput<typeof RefreshSessionRequestSchema>, "deviceInfo"> & {
931
1004
  deviceInfo?: IDeviceInfo;
932
- }
1005
+ };
933
1006
  interface IRefreshSessionResponse extends IAuthRefreshTokenResponse {
934
1007
  }
935
- interface ILogoutRequest {
936
- refreshToken?: string;
937
- }
1008
+ declare const LogoutRequestSchema: IRuntimeValidationSchema<{
1009
+ refreshToken: IValidationField<string, false>;
1010
+ }>;
1011
+ type ILogoutRequest = TInferValidationSchemaInput<typeof LogoutRequestSchema>;
938
1012
  interface ILogoutResponse extends IAuthMessageResponse {
939
1013
  }
940
1014
  interface ILogoutAllRequest {
@@ -958,15 +1032,17 @@ interface IRevokeSessionRequest extends IAuthSessionIdParams {
958
1032
  }
959
1033
  interface IRevokeSessionResponse extends IAuthMessageResponse {
960
1034
  }
961
- interface IChangePasswordRequest {
962
- currentPassword: string;
963
- newPassword: string;
964
- }
1035
+ declare const ChangePasswordRequestSchema: IRuntimeValidationSchema<{
1036
+ currentPassword: IValidationField<string, true>;
1037
+ newPassword: IValidationField<string, true>;
1038
+ }>;
1039
+ type IChangePasswordRequest = TInferValidationSchemaInput<typeof ChangePasswordRequestSchema>;
965
1040
  interface IChangePasswordResponse extends IGetUserResponse {
966
1041
  }
967
- interface IForgotPasswordRequest {
968
- email: string;
969
- }
1042
+ declare const ForgotPasswordRequestSchema: IRuntimeValidationSchema<{
1043
+ email: IValidationField<string, true>;
1044
+ }>;
1045
+ type IForgotPasswordRequest = TInferValidationSchemaInput<typeof ForgotPasswordRequestSchema>;
970
1046
  interface IForgotPasswordResponse extends IAuthMessageResponse {
971
1047
  }
972
1048
  type IGetLoginHistoryRequest = IEmptyRouteRequest;
@@ -976,7 +1052,7 @@ interface IGetLoginHistoryResponse {
976
1052
  ipAddress: string;
977
1053
  userAgent: string;
978
1054
  success: boolean;
979
- failureReason?: string;
1055
+ failureReason: string | null;
980
1056
  createdAt: TDateTimeString;
981
1057
  }
982
1058
  interface IGetLoginHistoryListResponse {
@@ -989,19 +1065,23 @@ interface IValidateInvitationResponse extends IAuthInvitationBaseResponse {
989
1065
  email: string;
990
1066
  userExists: boolean;
991
1067
  }
992
- interface IRegisterWithInvitationRequest {
993
- token: string;
994
- password: string;
995
- firstName: string;
996
- lastName?: string;
1068
+ declare const RegisterWithInvitationRequestSchema: IRuntimeValidationSchema<{
1069
+ token: IValidationField<string, true>;
1070
+ password: IValidationField<string, true>;
1071
+ firstName: IValidationField<string, true>;
1072
+ lastName: IValidationField<string, false>;
1073
+ deviceInfo: IValidationField<Record<string, unknown>, false>;
1074
+ }>;
1075
+ type IRegisterWithInvitationRequest = Omit<TInferValidationSchemaInput<typeof RegisterWithInvitationRequestSchema>, "deviceInfo"> & {
997
1076
  deviceInfo?: IDeviceInfo;
998
- }
1077
+ };
999
1078
  interface IRegisterWithInvitationResponse extends IAuthTokenResponse {
1000
1079
  }
1001
- interface IAcceptInvitationRequest {
1002
- userId?: string;
1003
- token: string;
1004
- }
1080
+ declare const AcceptInvitationRequestSchema: IRuntimeValidationSchema<{
1081
+ userId: IValidationField<string, false>;
1082
+ token: IValidationField<string, true>;
1083
+ }>;
1084
+ type IAcceptInvitationRequest = TInferValidationSchemaInput<typeof AcceptInvitationRequestSchema>;
1005
1085
  interface IAcceptInvitationResponse {
1006
1086
  companyId: string;
1007
1087
  companyName: string;
@@ -1057,7 +1137,7 @@ interface IStoredAuthSession {
1057
1137
  }
1058
1138
  interface IAuthTokenResponse extends IAuthTokenBundle {
1059
1139
  user: IUserSafe | null;
1060
- companyId?: string;
1140
+ companyId: string | null;
1061
1141
  }
1062
1142
  interface IAuthSession {
1063
1143
  user: IUserSafe | null;
@@ -1098,7 +1178,7 @@ interface IRateLimitStatus {
1098
1178
  isLimited: boolean;
1099
1179
  attempts: number;
1100
1180
  maxAttempts: number;
1101
- resetTime?: TDateTimeString;
1181
+ resetTime: TDateTimeString | null;
1102
1182
  }
1103
1183
 
1104
1184
  interface IChecklistTemplateCompanyRouteParams {
@@ -1117,8 +1197,10 @@ interface ITemplateAndItemIdParams {
1117
1197
  interface IIncludeInactiveQuery {
1118
1198
  includeInactive?: string;
1119
1199
  }
1120
- interface ICreateTemplateRequest extends Partial<Omit<ICreateTemplateInput, "companyId" | "createdBy">> {
1200
+ interface ICreateTemplateRequest {
1121
1201
  name: string;
1202
+ description?: string;
1203
+ isActive?: boolean;
1122
1204
  }
1123
1205
  interface ICreateTemplateResponse extends IChecklistTemplate {
1124
1206
  }
@@ -1138,7 +1220,10 @@ interface IGetTemplateWithItemsRequest extends ITemplateIdParams {
1138
1220
  }
1139
1221
  interface IGetTemplateWithItemsResponse extends IChecklistTemplateWithItems {
1140
1222
  }
1141
- interface IUpdateTemplateRequest extends Partial<Pick<ICreateTemplateInput, "name" | "description" | "isActive">> {
1223
+ interface IUpdateTemplateRequest {
1224
+ name?: string;
1225
+ description?: string | null;
1226
+ isActive?: boolean;
1142
1227
  }
1143
1228
  interface IUpdateTemplateResponse extends IChecklistTemplate {
1144
1229
  }
@@ -1163,7 +1248,13 @@ interface IAddTemplateItemRequest extends ICreateTemplateItemInput {
1163
1248
  }
1164
1249
  interface IAddTemplateItemResponse extends IChecklistTemplateItem {
1165
1250
  }
1166
- interface IUpdateTemplateItemRequest extends Partial<ICreateTemplateItemInput> {
1251
+ interface IUpdateTemplateItemRequest {
1252
+ title?: string;
1253
+ description?: string | null;
1254
+ displayOrder?: number;
1255
+ requiresPhoto?: boolean;
1256
+ isRequired?: boolean;
1257
+ estimatedTimeMinutes?: number | null;
1167
1258
  }
1168
1259
  interface IUpdateTemplateItemResponse extends IChecklistTemplateItem {
1169
1260
  }
@@ -1215,7 +1306,7 @@ interface IChecklistTemplateWithItems extends IChecklistTemplate {
1215
1306
  */
1216
1307
  interface ICreateTemplateInput {
1217
1308
  name: string;
1218
- description?: string | null;
1309
+ description?: string;
1219
1310
  companyId: string;
1220
1311
  createdBy: string;
1221
1312
  isActive?: boolean;
@@ -1225,13 +1316,35 @@ interface ICreateTemplateInput {
1225
1316
  */
1226
1317
  interface ICreateTemplateItemInput {
1227
1318
  title: string;
1228
- description?: string | null;
1319
+ description?: string;
1229
1320
  displayOrder: number;
1230
1321
  requiresPhoto?: boolean;
1231
1322
  isRequired?: boolean;
1232
- estimatedTimeMinutes?: number | null;
1323
+ estimatedTimeMinutes?: number;
1233
1324
  }
1234
1325
 
1326
+ declare const COMPANY_RELATIONSHIP_STATUS: {
1327
+ readonly ACTIVE: "ACTIVE";
1328
+ readonly INACTIVE: "INACTIVE";
1329
+ readonly SUSPENDED: "SUSPENDED";
1330
+ };
1331
+ declare const INVITATION_STATUS: {
1332
+ readonly PENDING: "PENDING";
1333
+ readonly ACCEPTED: "ACCEPTED";
1334
+ readonly EXPIRED: "EXPIRED";
1335
+ readonly REVOKED: "REVOKED";
1336
+ readonly DECLINED: "DECLINED";
1337
+ };
1338
+ type TInvitationStatus = TRecordValue<typeof INVITATION_STATUS>;
1339
+ type TCompanyRelationshipStatus = TRecordValue<typeof COMPANY_RELATIONSHIP_STATUS> | typeof INVITATION_STATUS.PENDING | null;
1340
+ declare const COMPANY_TYPES: {
1341
+ readonly PROPERTY_MANAGEMENT: "PROPERTY_MANAGEMENT";
1342
+ readonly MAINTENANCE: "MAINTENANCE";
1343
+ readonly CLEANER: "CLEANER";
1344
+ readonly OTHER: "OTHER";
1345
+ };
1346
+ type TCompanyType = TRecordValue<typeof COMPANY_TYPES>;
1347
+
1235
1348
  interface ICompanyRouteParams {
1236
1349
  companyId: string;
1237
1350
  }
@@ -1255,18 +1368,22 @@ interface IGetCompaniesQuery {
1255
1368
  search?: string;
1256
1369
  filter?: TCompanyFilter;
1257
1370
  }
1258
- interface ICreateCompanyRequest {
1259
- displayName: string;
1260
- addressLine1: string;
1261
- addressLine2?: string | null;
1262
- city: string;
1371
+ declare const CreateCompanyRequestSchema: IRuntimeValidationSchema<{
1372
+ displayName: IValidationField<string, true>;
1373
+ addressLine1: IValidationField<string, true>;
1374
+ addressLine2: IValidationField<string | null, false>;
1375
+ city: IValidationField<string, true>;
1376
+ stateCode: IValidationField<"IN" | "AL" | "AK" | "AZ" | "AR" | "CA" | "CO" | "CT" | "DE" | "FL" | "GA" | "HI" | "ID" | "IL" | "IA" | "KS" | "KY" | "LA" | "ME" | "MD" | "MA" | "MI" | "MN" | "MS" | "MO" | "MT" | "NE" | "NV" | "NH" | "NJ" | "NM" | "NY" | "NC" | "ND" | "OH" | "OK" | "OR" | "PA" | "RI" | "SC" | "SD" | "TN" | "TX" | "UT" | "VT" | "VA" | "WA" | "WV" | "WI" | "WY" | "DC" | "PR" | "GU" | "VI" | "AS" | "MP", true>;
1377
+ postalCode: IValidationField<string, true>;
1378
+ companyType: IValidationField<"MAINTENANCE" | "OTHER" | "PROPERTY_MANAGEMENT" | "CLEANER", true>;
1379
+ country: IValidationField<string | null, false>;
1380
+ timezone: IValidationField<string | null, false>;
1381
+ imageUrl: IValidationField<string | null, false>;
1382
+ }>;
1383
+ type ICreateCompanyRequest = TInferValidationSchemaInput<typeof CreateCompanyRequestSchema> & {
1263
1384
  stateCode: TUSStateCode;
1264
- postalCode: string;
1265
1385
  companyType: ICompany["companyType"];
1266
- country?: string | null;
1267
- timezone?: string | null;
1268
- imageUrl?: string | null;
1269
- }
1386
+ };
1270
1387
  interface ICreateCompanyResponse extends ICompanyWithRelationshipStatus {
1271
1388
  }
1272
1389
  type IGetCompaniesRequest = IEmptyRouteRequest;
@@ -1275,24 +1392,31 @@ interface IGetCompanyByIdRequest extends ICompanyRouteParams {
1275
1392
  }
1276
1393
  interface IGetCompanyByIdResponse extends ICompanyWithRelationshipStatus {
1277
1394
  }
1278
- interface IUpdateCompanyRequest {
1279
- displayName?: string;
1280
- addressLine1?: string;
1281
- addressLine2?: string | null;
1282
- city?: string;
1395
+ declare const UpdateCompanyRequestSchema: IRuntimeValidationSchema<{
1396
+ displayName: IValidationField<string, false>;
1397
+ addressLine1: IValidationField<string, false>;
1398
+ addressLine2: IValidationField<string | null, false>;
1399
+ city: IValidationField<string, false>;
1400
+ stateCode: IValidationField<"IN" | "AL" | "AK" | "AZ" | "AR" | "CA" | "CO" | "CT" | "DE" | "FL" | "GA" | "HI" | "ID" | "IL" | "IA" | "KS" | "KY" | "LA" | "ME" | "MD" | "MA" | "MI" | "MN" | "MS" | "MO" | "MT" | "NE" | "NV" | "NH" | "NJ" | "NM" | "NY" | "NC" | "ND" | "OH" | "OK" | "OR" | "PA" | "RI" | "SC" | "SD" | "TN" | "TX" | "UT" | "VT" | "VA" | "WA" | "WV" | "WI" | "WY" | "DC" | "PR" | "GU" | "VI" | "AS" | "MP", false>;
1401
+ postalCode: IValidationField<string, false>;
1402
+ companyType: IValidationField<"MAINTENANCE" | "OTHER" | "PROPERTY_MANAGEMENT" | "CLEANER", false>;
1403
+ country: IValidationField<string | null, false>;
1404
+ timezone: IValidationField<string | null, false>;
1405
+ imageUrl: IValidationField<string | null, false>;
1406
+ }>;
1407
+ type IUpdateCompanyRequest = TInferValidationSchemaInput<typeof UpdateCompanyRequestSchema> & {
1283
1408
  stateCode?: TUSStateCode;
1284
- postalCode?: string;
1285
1409
  companyType?: ICompany["companyType"];
1286
- country?: string | null;
1287
- timezone?: string | null;
1288
- imageUrl?: string | null;
1289
- }
1410
+ };
1290
1411
  interface IUpdateCompanyResponse extends ICompanyWithRelationshipStatus {
1291
1412
  }
1292
- interface IInviteUserToCompanyRequest {
1293
- email: string;
1413
+ declare const InviteUserToCompanyRequestSchema: IRuntimeValidationSchema<{
1414
+ email: IValidationField<string, true>;
1415
+ role: IValidationField<"ACCOUNT_ADMIN" | "MANAGER" | "STAFF" | "GUEST", true>;
1416
+ }>;
1417
+ type IInviteUserToCompanyRequest = TInferValidationSchemaInput<typeof InviteUserToCompanyRequestSchema> & {
1294
1418
  role: TAccountType;
1295
- }
1419
+ };
1296
1420
  interface IInviteUserToCompanyResponse extends IMessageResponse {
1297
1421
  }
1298
1422
  interface IGetCompanyUsersRequest extends ICompanyRouteParams {
@@ -1312,10 +1436,11 @@ interface IGetCompanyUsersResponse extends ICompanyWithUsers {
1312
1436
  interface IGetUserCompaniesRequest extends ICompanyUserRouteParams {
1313
1437
  }
1314
1438
  type IGetUserCompaniesResponse = ICompanyWithRelationshipStatus[];
1315
- interface IInviteCompanyToCompanyRequest {
1316
- providerCompanyId: string;
1317
- message?: string;
1318
- }
1439
+ declare const InviteCompanyToCompanyRequestSchema: IRuntimeValidationSchema<{
1440
+ providerCompanyId: IValidationField<string, true>;
1441
+ message: IValidationField<string | null, false>;
1442
+ }>;
1443
+ type IInviteCompanyToCompanyRequest = TInferValidationSchemaInput<typeof InviteCompanyToCompanyRequestSchema>;
1319
1444
  interface IInviteCompanyToCompanyResponse {
1320
1445
  id: string;
1321
1446
  token: string;
@@ -1371,30 +1496,9 @@ interface ICompany extends IMetaData {
1371
1496
  timezone: string | null;
1372
1497
  imageUrl: string | null;
1373
1498
  }
1374
- declare const COMPANY_RELATIONSHIP_STATUS: {
1375
- readonly ACTIVE: "ACTIVE";
1376
- readonly INACTIVE: "INACTIVE";
1377
- readonly SUSPENDED: "SUSPENDED";
1378
- };
1379
- declare const INVITATION_STATUS: {
1380
- readonly PENDING: "PENDING";
1381
- readonly ACCEPTED: "ACCEPTED";
1382
- readonly EXPIRED: "EXPIRED";
1383
- readonly REVOKED: "REVOKED";
1384
- readonly DECLINED: "DECLINED";
1385
- };
1386
- type TInvitationStatus = TRecordValue<typeof INVITATION_STATUS>;
1387
- type TCompanyRelationshipStatus = TRecordValue<typeof COMPANY_RELATIONSHIP_STATUS> | typeof INVITATION_STATUS.PENDING | null;
1388
1499
  interface ICompanyWithRelationshipStatus extends ICompany {
1389
1500
  relationshipStatus: TCompanyRelationshipStatus;
1390
1501
  }
1391
- declare const COMPANY_TYPES: {
1392
- readonly PROPERTY_MANAGEMENT: "PROPERTY_MANAGEMENT";
1393
- readonly MAINTENANCE: "MAINTENANCE";
1394
- readonly CLEANER: "CLEANER";
1395
- readonly OTHER: "OTHER";
1396
- };
1397
- type TCompanyType = TRecordValue<typeof COMPANY_TYPES>;
1398
1502
 
1399
1503
  interface IDamageReportPropertyRouteParams {
1400
1504
  propertyId: string;
@@ -1832,7 +1936,20 @@ interface IRoomInventoryIdParams {
1832
1936
  interface IInventoryOrderRouteParams {
1833
1937
  orderId: string;
1834
1938
  }
1835
- interface ICreateInventoryItemRequest extends Pick<IInventoryItem, "companyId" | "name" | "itemType" | "unit" | "minimumLevel" | "reorderLevel">, Partial<Pick<IInventoryItem, "description" | "unitCustom" | "maximumLevel" | "costPerUnit" | "supplierInfo" | "sku" | "barcode">> {
1939
+ interface ICreateInventoryItemRequest {
1940
+ companyId: string;
1941
+ name: string;
1942
+ itemType: TInventoryItemType;
1943
+ unit: TInventoryUnitType;
1944
+ minimumLevel: number;
1945
+ reorderLevel: number;
1946
+ description?: string;
1947
+ unitCustom?: string;
1948
+ maximumLevel?: number;
1949
+ costPerUnit?: number;
1950
+ supplierInfo?: string;
1951
+ sku?: string;
1952
+ barcode?: string;
1836
1953
  }
1837
1954
  interface ICreateInventoryItemResponse extends IInventoryItem {
1838
1955
  }
@@ -1851,7 +1968,15 @@ interface IDeleteInventoryItemResponse extends IMessageResponse {
1851
1968
  interface IGetInventoryByCompanyIdRequest extends IInventoryCompanyRouteParams {
1852
1969
  }
1853
1970
  type IGetInventoryByCompanyIdResponse = IInventoryItem[];
1854
- interface IAddInventoryToPropertyRequest extends Pick<IPropertyInventory, "propertyId" | "inventoryItemId">, Partial<Pick<IPropertyInventory, "currentLevel" | "minimumLevel" | "maximumLevel" | "parLevel" | "autoReorder" | "locationNotes">> {
1971
+ interface IAddInventoryToPropertyRequest {
1972
+ propertyId: string;
1973
+ inventoryItemId: string;
1974
+ currentLevel?: number;
1975
+ minimumLevel?: number;
1976
+ maximumLevel?: number;
1977
+ parLevel?: number;
1978
+ autoReorder?: boolean;
1979
+ locationNotes?: string;
1855
1980
  }
1856
1981
  interface IAddInventoryToPropertyResponse extends IPropertyInventory {
1857
1982
  }
@@ -1861,7 +1986,15 @@ type IGetPropertyInventoryResponse = IPropertyInventory[];
1861
1986
  interface IGetPropertyInventoryNeedingRestockRequest extends IInventoryPropertyRouteParams {
1862
1987
  }
1863
1988
  type IGetPropertyInventoryNeedingRestockResponse = IPropertyInventory[];
1864
- interface IAddInventoryToRoomRequest extends Pick<IRoomInventory, "roomId" | "inventoryItemId">, Partial<Pick<IRoomInventory, "currentLevel" | "minimumLevel" | "maximumLevel" | "parLevel" | "autoReorder" | "locationNotes">> {
1989
+ interface IAddInventoryToRoomRequest {
1990
+ roomId: string;
1991
+ inventoryItemId: string;
1992
+ currentLevel?: number;
1993
+ minimumLevel?: number;
1994
+ maximumLevel?: number;
1995
+ parLevel?: number;
1996
+ autoReorder?: boolean;
1997
+ locationNotes?: string;
1865
1998
  }
1866
1999
  interface IAddInventoryToRoomResponse extends IRoomInventory {
1867
2000
  }
@@ -1875,7 +2008,17 @@ interface IUpdateRoomInventoryResponse extends IRoomInventory {
1875
2008
  interface IGetRoomInventoryNeedingRestockRequest extends IInventoryRoomRouteParams {
1876
2009
  }
1877
2010
  type IGetRoomInventoryNeedingRestockResponse = IRoomInventory[];
1878
- interface IRecordInventoryCountRequest extends Pick<IInventoryCount, "checklistExecutionId" | "roomInventoryId" | "countedLevel" | "countedBy">, Partial<Pick<IInventoryCount, "previousLevel" | "consumedAmount" | "restockedAmount" | "finalLevel" | "needsRestock" | "notes">> {
2011
+ interface IRecordInventoryCountRequest {
2012
+ checklistExecutionId: string;
2013
+ roomInventoryId: string;
2014
+ countedLevel: number;
2015
+ countedBy: string;
2016
+ previousLevel?: number;
2017
+ consumedAmount?: number;
2018
+ restockedAmount?: number;
2019
+ finalLevel?: number;
2020
+ needsRestock?: boolean;
2021
+ notes?: string;
1879
2022
  }
1880
2023
  interface IRecordInventoryCountResponse extends IInventoryCount {
1881
2024
  }
@@ -1891,11 +2034,11 @@ interface IRestockOrderItemInput {
1891
2034
  }
1892
2035
  interface ICreateRestockOrderRequest {
1893
2036
  companyId: string;
1894
- orderedBy?: string | null;
1895
- orderNumber?: string | null;
1896
- expectedDelivery?: IInventoryRestockOrder["expectedDelivery"];
1897
- supplierInfo?: string | null;
1898
- notes?: string | null;
2037
+ orderedBy?: string;
2038
+ orderNumber?: string;
2039
+ expectedDelivery?: TDateTimeString;
2040
+ supplierInfo?: string;
2041
+ notes?: string;
1899
2042
  items: IRestockOrderItemInput[];
1900
2043
  }
1901
2044
  interface ICreateRestockOrderResponse extends IInventoryRestockOrder {
@@ -1908,7 +2051,7 @@ interface IGetRestockOrderItemsRequest extends IInventoryOrderRouteParams {
1908
2051
  type IGetRestockOrderItemsResponse = IInventoryRestockOrderItem[];
1909
2052
  interface IUpdateRestockOrderStatusRequest {
1910
2053
  status: TInventoryRestockOrderStatus;
1911
- receivedBy?: string | null;
2054
+ receivedBy?: string;
1912
2055
  }
1913
2056
  interface IUpdateRestockOrderStatusResponse extends IInventoryRestockOrder {
1914
2057
  }
@@ -2036,30 +2179,75 @@ interface IInventoryRestockOrderItem {
2036
2179
  createdAt: TDateTimeString;
2037
2180
  }
2038
2181
 
2182
+ declare const PROPERTY_STATUS: {
2183
+ readonly ACTIVE: "ACTIVE";
2184
+ readonly INACTIVE: "INACTIVE";
2185
+ };
2186
+ type TPropertyStatus = TRecordValue<typeof PROPERTY_STATUS>;
2187
+ declare const PropertyStatusOptions: ISelectOption<TPropertyStatus>[];
2188
+ declare const PROPERTY_TYPES: {
2189
+ readonly APARTMENT: "APARTMENT";
2190
+ readonly COMMERCIAL: "COMMERCIAL";
2191
+ readonly CONDO: "CONDO";
2192
+ readonly DUPLEX: "DUPLEX";
2193
+ readonly HOUSE: "HOUSE";
2194
+ readonly MULTI_FAMILY: "MULTI_FAMILY";
2195
+ readonly OFFICE: "OFFICE";
2196
+ readonly RETAIL: "RETAIL";
2197
+ readonly TOWNHOUSE: "TOWNHOUSE";
2198
+ readonly VACATION_RENTAL: "VACATION_RENTAL";
2199
+ readonly WAREHOUSE: "WAREHOUSE";
2200
+ };
2201
+ type TPropertyType = TRecordValue<typeof PROPERTY_TYPES>;
2202
+ declare const PropertyTypeOptions: ISelectOption<TPropertyType>[];
2203
+
2039
2204
  interface IPropertyIdParams {
2040
2205
  propertyId: string;
2041
2206
  }
2042
2207
  interface ICompanyIdParams {
2043
2208
  companyId: string;
2044
2209
  }
2045
- interface ICreatePropertyRequest {
2046
- companyId: string;
2047
- displayName: string;
2210
+ declare const CreatePropertyRequestSchema: IRuntimeValidationSchema<{
2211
+ companyId: IValidationField<string, true>;
2212
+ displayName: IValidationField<string, true>;
2213
+ propertyType: IValidationField<"APARTMENT" | "COMMERCIAL" | "CONDO" | "DUPLEX" | "HOUSE" | "MULTI_FAMILY" | "OFFICE" | "RETAIL" | "TOWNHOUSE" | "VACATION_RENTAL" | "WAREHOUSE", true>;
2214
+ status: IValidationField<"ACTIVE" | "INACTIVE" | null, false>;
2215
+ addressLine1: IValidationField<string, true>;
2216
+ addressLine2: IValidationField<string | null, false>;
2217
+ city: IValidationField<string, true>;
2218
+ stateCode: IValidationField<"IN" | "AL" | "AK" | "AZ" | "AR" | "CA" | "CO" | "CT" | "DE" | "FL" | "GA" | "HI" | "ID" | "IL" | "IA" | "KS" | "KY" | "LA" | "ME" | "MD" | "MA" | "MI" | "MN" | "MS" | "MO" | "MT" | "NE" | "NV" | "NH" | "NJ" | "NM" | "NY" | "NC" | "ND" | "OH" | "OK" | "OR" | "PA" | "RI" | "SC" | "SD" | "TN" | "TX" | "UT" | "VT" | "VA" | "WA" | "WV" | "WI" | "WY" | "DC" | "PR" | "GU" | "VI" | "AS" | "MP", true>;
2219
+ postalCode: IValidationField<string, true>;
2220
+ country: IValidationField<string | null, false>;
2221
+ sqft: IValidationField<number | null, false>;
2222
+ timezone: IValidationField<string | null, false>;
2223
+ imageUrl: IValidationField<string | null, false>;
2224
+ specialNotes: IValidationField<string | null, false>;
2225
+ }>;
2226
+ type ICreatePropertyRequest = TInferValidationSchemaInput<typeof CreatePropertyRequestSchema> & {
2048
2227
  propertyType: TPropertyType;
2049
- status?: TPropertyStatus;
2050
- addressLine1: string;
2051
- addressLine2?: string | null;
2052
- city: string;
2228
+ status?: TPropertyStatus | null;
2053
2229
  stateCode: TUSStateCode;
2054
- postalCode: string;
2055
- country?: string | null;
2056
- sqft?: number | null;
2057
- timezone?: string | null;
2058
- imageUrl?: string | null;
2059
- specialNotes?: string | null;
2060
- }
2061
- interface IUpdatePropertyRequest extends Partial<Omit<ICreatePropertyRequest, "companyId">> {
2062
- }
2230
+ };
2231
+ declare const UpdatePropertyRequestSchema: IRuntimeValidationSchema<{
2232
+ displayName: IValidationField<string, false>;
2233
+ propertyType: IValidationField<"APARTMENT" | "COMMERCIAL" | "CONDO" | "DUPLEX" | "HOUSE" | "MULTI_FAMILY" | "OFFICE" | "RETAIL" | "TOWNHOUSE" | "VACATION_RENTAL" | "WAREHOUSE" | null, false>;
2234
+ status: IValidationField<"ACTIVE" | "INACTIVE" | null, false>;
2235
+ addressLine1: IValidationField<string, false>;
2236
+ addressLine2: IValidationField<string | null, false>;
2237
+ city: IValidationField<string, false>;
2238
+ stateCode: IValidationField<"IN" | "AL" | "AK" | "AZ" | "AR" | "CA" | "CO" | "CT" | "DE" | "FL" | "GA" | "HI" | "ID" | "IL" | "IA" | "KS" | "KY" | "LA" | "ME" | "MD" | "MA" | "MI" | "MN" | "MS" | "MO" | "MT" | "NE" | "NV" | "NH" | "NJ" | "NM" | "NY" | "NC" | "ND" | "OH" | "OK" | "OR" | "PA" | "RI" | "SC" | "SD" | "TN" | "TX" | "UT" | "VT" | "VA" | "WA" | "WV" | "WI" | "WY" | "DC" | "PR" | "GU" | "VI" | "AS" | "MP", false>;
2239
+ postalCode: IValidationField<string, false>;
2240
+ country: IValidationField<string | null, false>;
2241
+ sqft: IValidationField<number | null, false>;
2242
+ timezone: IValidationField<string | null, false>;
2243
+ imageUrl: IValidationField<string | null, false>;
2244
+ specialNotes: IValidationField<string | null, false>;
2245
+ }>;
2246
+ type IUpdatePropertyRequest = TInferValidationSchemaInput<typeof UpdatePropertyRequestSchema> & {
2247
+ propertyType?: TPropertyType | null;
2248
+ status?: TPropertyStatus | null;
2249
+ stateCode?: TUSStateCode;
2250
+ };
2063
2251
  interface IGetPropertiesRequest {
2064
2252
  companyId?: string;
2065
2253
  }
@@ -2076,8 +2264,16 @@ interface IUpdatePropertyResponse extends IPropertyDetail {
2076
2264
  }
2077
2265
  interface IDeletePropertyResponse extends IMessageResponse {
2078
2266
  }
2079
- interface IUpdatePropertyAccessInformationRequest extends Partial<Omit<IPropertyAccessInformation, "propertyId">> {
2080
- }
2267
+ declare const UpdatePropertyAccessInformationRequestSchema: IRuntimeValidationSchema<{
2268
+ entryInstructions: IValidationField<string | null, false>;
2269
+ accessCode: IValidationField<string | null, false>;
2270
+ wifiName: IValidationField<string | null, false>;
2271
+ wifiPassword: IValidationField<string | null, false>;
2272
+ alarmCode: IValidationField<string | null, false>;
2273
+ parkingInfo: IValidationField<string | null, false>;
2274
+ specialNotes: IValidationField<string | null, false>;
2275
+ }>;
2276
+ type IUpdatePropertyAccessInformationRequest = TInferValidationSchemaInput<typeof UpdatePropertyAccessInformationRequestSchema>;
2081
2277
  interface IUpdatePropertyAccessInformationResponse extends IPropertyAccessInformation {
2082
2278
  }
2083
2279
  interface IGetPropertyAccessInformationRequest extends IPropertyIdParams {
@@ -2089,27 +2285,6 @@ interface IGetPropertiesByCompanyIdRequest extends ICompanyIdParams {
2089
2285
  }
2090
2286
  type IGetPropertiesByCompanyIdResponse = IProperty[];
2091
2287
 
2092
- declare const PROPERTY_STATUS: {
2093
- readonly ACTIVE: "ACTIVE";
2094
- readonly INACTIVE: "INACTIVE";
2095
- };
2096
- type TPropertyStatus = TRecordValue<typeof PROPERTY_STATUS>;
2097
- declare const PropertyStatusOptions: ISelectOption<TPropertyStatus>[];
2098
- declare const PROPERTY_TYPES: {
2099
- readonly APARTMENT: "APARTMENT";
2100
- readonly COMMERCIAL: "COMMERCIAL";
2101
- readonly CONDO: "CONDO";
2102
- readonly DUPLEX: "DUPLEX";
2103
- readonly HOUSE: "HOUSE";
2104
- readonly MULTI_FAMILY: "MULTI_FAMILY";
2105
- readonly OFFICE: "OFFICE";
2106
- readonly RETAIL: "RETAIL";
2107
- readonly TOWNHOUSE: "TOWNHOUSE";
2108
- readonly VACATION_RENTAL: "VACATION_RENTAL";
2109
- readonly WAREHOUSE: "WAREHOUSE";
2110
- };
2111
- type TPropertyType = TRecordValue<typeof PROPERTY_TYPES>;
2112
- declare const PropertyTypeOptions: ISelectOption<TPropertyType>[];
2113
2288
  interface IProperty extends IMetaData {
2114
2289
  id: string;
2115
2290
  displayName: string;
@@ -2222,20 +2397,41 @@ interface IJobFilterValues {
2222
2397
  role: TServiceType;
2223
2398
  }
2224
2399
 
2400
+ declare const ROOM_TYPE: {
2401
+ readonly BEDROOM: "BEDROOM";
2402
+ readonly BATHROOM: "BATHROOM";
2403
+ readonly KITCHEN: "KITCHEN";
2404
+ readonly LIVING_ROOM: "LIVING_ROOM";
2405
+ readonly DINING_ROOM: "DINING_ROOM";
2406
+ readonly OFFICE: "OFFICE";
2407
+ readonly GARAGE: "GARAGE";
2408
+ readonly LAUNDRY_ROOM: "LAUNDRY_ROOM";
2409
+ readonly BASEMENT: "BASEMENT";
2410
+ readonly ATTIC: "ATTIC";
2411
+ readonly BALCONY: "BALCONY";
2412
+ readonly PORCH: "PORCH";
2413
+ readonly GARDEN: "GARDEN";
2414
+ readonly OTHER: "OTHER";
2415
+ };
2416
+ type TRoomType = TRecordValue<typeof ROOM_TYPE>;
2417
+
2225
2418
  interface IRoomPropertyRouteParams {
2226
2419
  propertyId: string;
2227
2420
  }
2228
2421
  interface IRoomRouteParams {
2229
2422
  roomId: string;
2230
2423
  }
2231
- interface ICreateRoomRequest {
2232
- propertyId: string;
2233
- displayName: string;
2234
- description?: string | null;
2235
- checklistTemplateId?: string | null;
2424
+ declare const CreateRoomRequestSchema: IRuntimeValidationSchema<{
2425
+ propertyId: IValidationField<string, true>;
2426
+ displayName: IValidationField<string, true>;
2427
+ description: IValidationField<string | null, false>;
2428
+ checklistTemplateId: IValidationField<string | null, false>;
2429
+ roomType: IValidationField<"OTHER" | "OFFICE" | "BEDROOM" | "BATHROOM" | "KITCHEN" | "LIVING_ROOM" | "DINING_ROOM" | "GARAGE" | "LAUNDRY_ROOM" | "BASEMENT" | "ATTIC" | "BALCONY" | "PORCH" | "GARDEN" | null, false>;
2430
+ heroPhoto: IValidationField<string | null, false>;
2431
+ }>;
2432
+ type ICreateRoomRequest = TInferValidationSchemaInput<typeof CreateRoomRequestSchema> & {
2236
2433
  roomType?: IRoom["roomType"];
2237
- heroPhoto?: string | null;
2238
- }
2434
+ };
2239
2435
  interface ICreateRoomResponse extends IRoom {
2240
2436
  }
2241
2437
  interface IGetRoomsRequest {
@@ -2251,8 +2447,16 @@ interface IGetRoomByIdRequest extends IRoomRouteParams {
2251
2447
  }
2252
2448
  interface IGetRoomByIdResponse extends IRoom {
2253
2449
  }
2254
- interface IUpdateRoomRequest extends Partial<Omit<ICreateRoomRequest, "propertyId">> {
2255
- }
2450
+ declare const UpdateRoomRequestSchema: IRuntimeValidationSchema<{
2451
+ displayName: IValidationField<string, false>;
2452
+ description: IValidationField<string | null, false>;
2453
+ checklistTemplateId: IValidationField<string | null, false>;
2454
+ roomType: IValidationField<"OTHER" | "OFFICE" | "BEDROOM" | "BATHROOM" | "KITCHEN" | "LIVING_ROOM" | "DINING_ROOM" | "GARAGE" | "LAUNDRY_ROOM" | "BASEMENT" | "ATTIC" | "BALCONY" | "PORCH" | "GARDEN" | null, false>;
2455
+ heroPhoto: IValidationField<string | null, false>;
2456
+ }>;
2457
+ type IUpdateRoomRequest = TInferValidationSchemaInput<typeof UpdateRoomRequestSchema> & {
2458
+ roomType?: IRoom["roomType"];
2459
+ };
2256
2460
  interface IUpdateRoomResponse extends IRoom {
2257
2461
  }
2258
2462
  interface IDeleteRoomRequest extends IRoomRouteParams {
@@ -2260,23 +2464,6 @@ interface IDeleteRoomRequest extends IRoomRouteParams {
2260
2464
  interface IDeleteRoomResponse extends IMessageResponse {
2261
2465
  }
2262
2466
 
2263
- declare const ROOM_TYPE: {
2264
- readonly BEDROOM: "BEDROOM";
2265
- readonly BATHROOM: "BATHROOM";
2266
- readonly KITCHEN: "KITCHEN";
2267
- readonly LIVING_ROOM: "LIVING_ROOM";
2268
- readonly DINING_ROOM: "DINING_ROOM";
2269
- readonly OFFICE: "OFFICE";
2270
- readonly GARAGE: "GARAGE";
2271
- readonly LAUNDRY_ROOM: "LAUNDRY_ROOM";
2272
- readonly BASEMENT: "BASEMENT";
2273
- readonly ATTIC: "ATTIC";
2274
- readonly BALCONY: "BALCONY";
2275
- readonly PORCH: "PORCH";
2276
- readonly GARDEN: "GARDEN";
2277
- readonly OTHER: "OTHER";
2278
- };
2279
- type TRoomType = TRecordValue<typeof ROOM_TYPE>;
2280
2467
  interface IRoom extends IMetaData {
2281
2468
  id: string;
2282
2469
  displayName: string;
@@ -2321,7 +2508,10 @@ interface IGetChecklistWithItemsRequest extends IChecklistIdParams {
2321
2508
  }
2322
2509
  interface IGetChecklistWithItemsResponse extends IRoomChecklistWithItems {
2323
2510
  }
2324
- interface IUpdateChecklistRequest extends Partial<Omit<ICreateRoomChecklistInput, "roomId">> {
2511
+ interface IUpdateChecklistRequest {
2512
+ templateId?: string | null;
2513
+ name?: string;
2514
+ isActive?: boolean;
2325
2515
  }
2326
2516
  interface IUpdateChecklistResponse extends IRoomChecklist {
2327
2517
  }
@@ -2346,7 +2536,14 @@ interface IAddChecklistItemRequest extends ICreateRoomChecklistItemInput {
2346
2536
  }
2347
2537
  interface IAddChecklistItemResponse extends IRoomChecklistItem {
2348
2538
  }
2349
- interface IUpdateChecklistItemRequest extends Partial<ICreateRoomChecklistItemInput> {
2539
+ interface IUpdateChecklistItemRequest {
2540
+ title?: string;
2541
+ description?: string | null;
2542
+ displayOrder?: number;
2543
+ requiresPhoto?: boolean;
2544
+ isRequired?: boolean;
2545
+ estimatedTimeMinutes?: number | null;
2546
+ isCustom?: boolean;
2350
2547
  }
2351
2548
  interface IUpdateChecklistItemResponse extends IRoomChecklistItem {
2352
2549
  }
@@ -2388,7 +2585,7 @@ interface IRoomChecklistWithItems extends IRoomChecklist {
2388
2585
  */
2389
2586
  interface ICreateRoomChecklistInput {
2390
2587
  roomId: string;
2391
- templateId?: string | null;
2588
+ templateId?: string;
2392
2589
  name: string;
2393
2590
  isActive?: boolean;
2394
2591
  }
@@ -2397,11 +2594,11 @@ interface ICreateRoomChecklistInput {
2397
2594
  */
2398
2595
  interface ICreateRoomChecklistItemInput {
2399
2596
  title: string;
2400
- description?: string | null;
2597
+ description?: string;
2401
2598
  displayOrder: number;
2402
2599
  requiresPhoto?: boolean;
2403
2600
  isRequired?: boolean;
2404
- estimatedTimeMinutes?: number | null;
2601
+ estimatedTimeMinutes?: number;
2405
2602
  isCustom?: boolean;
2406
2603
  }
2407
2604
 
@@ -2882,4 +3079,4 @@ type Failure<E> = {
2882
3079
  type Result<T, E = unknown> = Success<T> | Failure<E>;
2883
3080
  declare const tryCatch: <T, E = unknown>(callback: () => T | Promise<T>) => Promise<Result<T, E>>;
2884
3081
 
2885
- export { ACCOUNT_STATUS, ACCOUNT_TYPE, AUTH_STATUS, BILLING_PERIOD, CHECKLIST_EXECUTION_STATUS, COMPANY_RELATIONSHIP_STATUS, COMPANY_TYPES, CompanyFilter, DAMAGE_SEVERITY, DAMAGE_STATUS, DATABASE_STATUS, ENVIRONMENT, ERROR_CODES, FilterCondition, HTTP_METHOD, HTTP_STATUS, type IAcceptCompanyInvitationRequest, type IAcceptCompanyInvitationResponse, type IAcceptInvitationRequest, type IAcceptInvitationResponse, type IAcceptInvitationRouteResponse, type IAddChecklistItemRequest, type IAddChecklistItemResponse, type IAddDamageReportCommentRequest, type IAddDamageReportCommentResponse, type IAddDamageReportPhotoRequest, type IAddDamageReportPhotoResponse, type IAddInventoryToPropertyRequest, type IAddInventoryToPropertyResponse, type IAddInventoryToRoomRequest, type IAddInventoryToRoomResponse, type IAddTemplateItemRequest, type IAddTemplateItemResponse, type IAddress, type IApiError, type IApiMeta, type IApiResponse, type IAssignDamageReportRequest, type IAssignDamageReportResponse, type IAssignWorkOrderRequest, type IAssignWorkOrderResponse, type IAuthInvitationBaseResponse, type IAuthInvitationIdParams, type IAuthInvitationTokenParams, type IAuthMessageResponse, type IAuthRefreshTokenResponse, type IAuthSession, type IAuthSessionIdParams, type IAuthTokenBundle, type IAuthTokenResponse, type IBooleanFilterCondition, type ICancelWorkSessionRequest, type ICancelWorkSessionResponse, type IChangePasswordRequest, type IChangePasswordResponse, type IChecklistAndItemIdParams, type IChecklistExecution, type IChecklistIdParams, type IChecklistItemCompletion, type IChecklistItemOrder, type IChecklistTemplate, type IChecklistTemplateCompanyRouteParams, type IChecklistTemplateItem, type IChecklistTemplateWithItems, type ICloneChecklistRequest, type ICloneChecklistResponse, type ICompany, type ICompanyIdParams, type ICompanyInvitationIdParams, type ICompanyInvitationSummary, type ICompanyInvitationTokenParams, type ICompanyRouteParams, type ICompanyUserRouteParams, type ICompanyUserSummary, type ICompanyWithRelationshipStatus, type ICompanyWithUsers, type ICompleteChecklistExecutionRequest, type ICompleteChecklistExecutionResponse, type ICompleteChecklistItemInput, type ICompleteExecutionItemRequest, type ICompleteExecutionItemResponse, type ICompleteWorkOrderRequest, type ICompleteWorkOrderResponse, type ICompleteWorkSessionRequest, type ICompleteWorkSessionResponse, type ICountResponse, type ICreateChecklistRequest, type ICreateChecklistResponse, type ICreateCompanyRequest, type ICreateCompanyResponse, type ICreateCustomChecklistRequest, type ICreateCustomChecklistResponse, type ICreateDamageReportInput, type ICreateDamageReportRequest, type ICreateDamageReportResponse, type ICreateInventoryItemRequest, type ICreateInventoryItemResponse, type ICreatePropertyRequest, type ICreatePropertyResponse, type ICreateRestockOrderRequest, type ICreateRestockOrderResponse, type ICreateRoomChecklistInput, type ICreateRoomChecklistItemInput, type ICreateRoomRequest, type ICreateRoomResponse, type ICreateTemplateInput, type ICreateTemplateItemInput, type ICreateTemplateRequest, type ICreateTemplateResponse, type ICreateTemplateWithItemsRequest, type ICreateTemplateWithItemsResponse, type ICreateWorkOrderInput, type ICreateWorkOrderRequest, type ICreateWorkOrderResponse, type ICreateWorkSessionInput, type ICreateWorkSessionRequest, type ICreateWorkSessionResponse, type IDamageComment, type IDamagePhoto, type IDamageReport, type IDamageReportPhoto, type IDamageReportPropertyRouteParams, type IDamageReportRoomRouteParams, type IDamageReportRouteParams, type IDamageReportStatusHistory, type IDamageReportWorkOrderRouteParams, type IDataWithPagingResult, type IDeclineCompanyInvitationRequest, type IDeclineCompanyInvitationResponse, type IDeleteChecklistItemRequest, type IDeleteChecklistItemResponse, type IDeleteChecklistRequest, type IDeleteChecklistResponse, type IDeleteImageRequest, type IDeleteImageResponse, type IDeleteInventoryItemRequest, type IDeleteInventoryItemResponse, type IDeletePropertyRequest, type IDeletePropertyResponse, type IDeleteRoomRequest, type IDeleteRoomResponse, type IDeleteTemplateItemRequest, type IDeleteTemplateItemResponse, type IDeleteTemplateRequest, type IDeleteTemplateResponse, type IDeleteUserRequest, type IDeleteUserResponse, type IDeviceInfo, type IDuplicateTemplateItemRequest, type IDuplicateTemplateItemResponse, type IEmailValidationResult, type IEmptyRouteParams, type IEmptyRouteRequest, type IFilterCondition, type IFilterConditionBase, type IForgotPasswordRequest, type IForgotPasswordResponse, type IGetActiveWorkSessionRequest, type IGetActiveWorkSessionResponse, type IGetChecklistByIdRequest, type IGetChecklistByIdResponse, type IGetChecklistByRoomIdRequest, type IGetChecklistByRoomIdResponse, type IGetChecklistExecutionByIdRequest, type IGetChecklistExecutionByIdResponse, type IGetChecklistExecutionsRequest, type IGetChecklistExecutionsResponse, type IGetChecklistItemsRequest, type IGetChecklistItemsResponse, type IGetChecklistWithItemsRequest, type IGetChecklistWithItemsResponse, type IGetCompaniesQuery, type IGetCompaniesRequest, type IGetCompaniesResponse, type IGetCompanyByIdRequest, type IGetCompanyByIdResponse, type IGetCompanyUsersRequest, type IGetCompanyUsersResponse, type IGetCurrentUserRequest, type IGetCurrentUserResponse, type IGetCustomChecklistItemsRequest, type IGetCustomChecklistItemsResponse, type IGetDamageReportByIdRequest, type IGetDamageReportByIdResponse, type IGetDamageReportCommentsRequest, type IGetDamageReportCommentsResponse, type IGetDamageReportHistoryRequest, type IGetDamageReportHistoryResponse, type IGetDamageReportPhotosRequest, type IGetDamageReportPhotosResponse, type IGetDamageReportsByPropertyIdRequest, type IGetDamageReportsByPropertyIdResponse, type IGetDamageReportsByRoomIdRequest, type IGetDamageReportsByRoomIdResponse, type IGetDetailedHealthRequest, type IGetDetailedHealthResponse, type IGetDetailedRoomsByPropertyIdRequest, type IGetDetailedRoomsByPropertyIdResponse, type IGetExecutionItemsRequest, type IGetExecutionItemsResponse, type IGetExecutionProgressRequest, type IGetExecutionProgressResponse, type IGetHealthRequest, type IGetHealthResponse, type IGetImagesForEntityResponse, type IGetInventoryByCompanyIdRequest, type IGetInventoryByCompanyIdResponse, type IGetInventoryCountsByExecutionIdRequest, type IGetInventoryCountsByExecutionIdResponse, type IGetInventoryItemByIdRequest, type IGetInventoryItemByIdResponse, type IGetLoginHistoryListResponse, type IGetLoginHistoryRequest, type IGetLoginHistoryResponse, type IGetMeRequest, type IGetMeResponse, type IGetPendingCompanyInvitationsRequest, type IGetPendingCompanyInvitationsResponse, type IGetPendingInvitationsListResponse, type IGetPendingInvitationsRequest, type IGetPendingInvitationsResponse, type IGetPropertiesByCompanyIdRequest, type IGetPropertiesByCompanyIdResponse, type IGetPropertiesRequest, type IGetPropertiesResponse, type IGetPropertyAccessInformationRequest, type IGetPropertyAccessInformationResponse, type IGetPropertyByIdRequest, type IGetPropertyByIdResponse, type IGetPropertyInventoryNeedingRestockRequest, type IGetPropertyInventoryNeedingRestockResponse, type IGetPropertyInventoryRequest, type IGetPropertyInventoryResponse, type IGetPropertyResponse, type IGetRestockOrderItemsRequest, type IGetRestockOrderItemsResponse, type IGetRestockOrdersByCompanyIdRequest, type IGetRestockOrdersByCompanyIdResponse, type IGetRoomByIdRequest, type IGetRoomByIdResponse, type IGetRoomInventoryNeedingRestockRequest, type IGetRoomInventoryNeedingRestockResponse, type IGetRoomInventoryRequest, type IGetRoomInventoryResponse, type IGetRoomsByPropertyIdRequest, type IGetRoomsByPropertyIdResponse, type IGetRoomsRequest, type IGetSessionsRequest, type IGetSessionsResponse, type IGetStaffRequest, type IGetStaffResponse, type IGetTemplateByIdRequest, type IGetTemplateByIdResponse, type IGetTemplateItemsRequest, type IGetTemplateItemsResponse, type IGetTemplateUsageRequest, type IGetTemplateUsageResponse, type IGetTemplateWithItemsRequest, type IGetTemplateWithItemsResponse, type IGetTemplatesByCompanyIdRequest, type IGetTemplatesByCompanyIdResponse, type IGetUserByEmailRequest, type IGetUserByEmailResponse, type IGetUserByIdRequest, type IGetUserByIdResponse, type IGetUserCompaniesRequest, type IGetUserCompaniesResponse, type IGetUserResponse, type IGetUsersByAccountTypeRequest, type IGetUsersByAccountTypeResponse, type IGetWorkOrderByIdRequest, type IGetWorkOrderByIdResponse, type IGetWorkOrdersByPropertyIdRequest, type IGetWorkOrdersByPropertyIdResponse, type IGetWorkSessionByIdRequest, type IGetWorkSessionByIdResponse, type IGetWorkSessionWithExecutionsRequest, type IGetWorkSessionWithExecutionsResponse, type IGetWorkSessionsByPropertyIdRequest, type IGetWorkSessionsByPropertyIdResponse, type IGetWorkSessionsByUserIdRequest, type IGetWorkSessionsByUserIdResponse, type IHealthCheckResponse, type IHealthChecks, type IImage, type IImageCompanyRouteParams, type IImagePropertyRouteParams, type IImageRoomRouteParams, type IImageRouteParams, type IImageUserRouteParams, type IImageWithUrl, type IIncludeInactiveQuery, type IIncludeResolvedQuery, type IInventoryCompanyRouteParams, type IInventoryCount, type IInventoryExecutionRouteParams, type IInventoryItem, type IInventoryItemRouteParams, type IInventoryOrderRouteParams, type IInventoryPropertyRouteParams, type IInventoryRestockOrder, type IInventoryRestockOrderItem, type IInventoryRoomRouteParams, type IInviteCompanyToCompanyRequest, type IInviteCompanyToCompanyResponse, type IInviteUserToCompanyRequest, type IInviteUserToCompanyResponse, type IJobFilterValues, type ILimitQuery, type ILoginCredentials, type ILoginRequest, type ILoginResponse, type ILogoutAllRequest, type ILogoutAllResponse, type ILogoutRequest, type ILogoutResponse, IMAGE_ENTITY, IMAGE_ENTITY_TYPE, type IMessageResponse, type IMetaData, type IMissingFieldsErrorDetail, INVENTORY_ITEM_TYPE, INVENTORY_RESTOCK_ORDER_STATUS, INVENTORY_UNITS, INVITATION_STATUS, type INumberFilterCondition, type IPaginationRequest, type IPagingObject, type IPagingResult, type IPasswordValidationResult, type IPasswordValidationRules, type IProperty, type IPropertyAccessFormValues, type IPropertyAccessInformation, type IPropertyAccessItem, type IPropertyBase, type IPropertyDetail, type IPropertyFilterValues, type IPropertyFormValues, type IPropertyIdParams, type IPropertyInventory, type IPropertyJobSummaryItem, type IPropertyMetric, type IPropertyRoomSummaryItem, type IPropertySummary, type IRateLimitErrorDetail, type IRateLimitStatus, type IRecordInventoryCountRequest, type IRecordInventoryCountResponse, type IRefreshSessionRequest, type IRefreshSessionResponse, type IRefreshTokenData, type IRegisterCredentials, type IRegisterRequest, type IRegisterResponse, type IRegisterWithInvitationRequest, type IRegisterWithInvitationResponse, type IReorderChecklistItemsRequest, type IReorderChecklistItemsResponse, type IReorderTemplateItemsRequest, type IReorderTemplateItemsResponse, type IResolveDamageReportRequest, type IResolveDamageReportResponse, type IRestockOrderItemInput, type IRevokeCompanyInvitationRequest, type IRevokeCompanyInvitationResponse, type IRevokeInvitationRequest, type IRevokeInvitationResponse, type IRevokeSessionRequest, type IRevokeSessionResponse, type IRoom, type IRoomChecklist, type IRoomChecklistItem, type IRoomChecklistRoomRouteParams, type IRoomChecklistWithItems, type IRoomInventory, type IRoomInventoryIdParams, type IRoomPropertyRouteParams, type IRoomRouteParams, type ISelectOption, type ISetAuthSessionParams, type ISkipChecklistExecutionRequest, type ISkipChecklistExecutionResponse, type ISortCondition, type IStartChecklistExecutionRequest, type IStartChecklistExecutionResponse, type IStoredAuthSession, type IStringFilterCondition, type ISuccessResponse, type ITemplateAndItemIdParams, type ITemplateIdParams, type ITemplateItemIdParams, type ITemplateItemOrder, type IToggleTemplateActiveRequest, type IToggleTemplateActiveResponse, type ITokenPayload, type ITypedApiError, type IUpdateChecklistItemRequest, type IUpdateChecklistItemResponse, type IUpdateChecklistRequest, type IUpdateChecklistResponse, type IUpdateCompanyRequest, type IUpdateCompanyResponse, type IUpdateDamageReportRequest, type IUpdateDamageReportResponse, type IUpdateDamageReportStatusRequest, type IUpdateDamageReportStatusResponse, type IUpdateInventoryItemRequest, type IUpdateInventoryItemResponse, type IUpdatePropertyAccessInformationRequest, type IUpdatePropertyAccessInformationResponse, type IUpdatePropertyRequest, type IUpdatePropertyResponse, type IUpdateRestockOrderStatusRequest, type IUpdateRestockOrderStatusResponse, type IUpdateRoomInventoryRequest, type IUpdateRoomInventoryResponse, type IUpdateRoomRequest, type IUpdateRoomResponse, type IUpdateTemplateItemRequest, type IUpdateTemplateItemResponse, type IUpdateTemplateRequest, type IUpdateTemplateResponse, type IUpdateUserRequest, type IUpdateUserResponse, type IUpdateWorkOrderRequest, type IUpdateWorkOrderResponse, type IUpdateWorkOrderStatusRequest, type IUpdateWorkOrderStatusResponse, type IUpdateWorkSessionRequest, type IUpdateWorkSessionResponse, type IUploadImagesResponse, type IUploadProfileImageRequest, type IUploadProfileImageResponse, type IUser, type IUserIdParams, type IUserSafe, type IUserSession, type IUserSubscription, type IValidateCompanyInvitationRequest, type IValidateCompanyInvitationResponse, type IValidateInvitationRequest, type IValidateInvitationResponse, type IValidationErrorDetail, type IVersion, type IWeekDay, type IWorkOrder, type IWorkSession, type IWorkSessionExecutionRouteParams, type IWorkSessionPropertyRouteParams, type IWorkSessionRouteParams, type IWorkSessionUserRouteParams, type IWorkSessionWithExecutions, JSONStringify, LANGUAGE, MODE, MONTHS, PROPERTY_STATUS, PROPERTY_TYPES, PropertyStatusOptions, PropertyTypeOptions, ROOM_TYPE, SERVER_STATUS, SERVICE_TYPES, SEVERITY, STATUS, SUBSCRIPTION_PROVIDER, SUBSCRIPTION_STATUS, ServiceTypeOptions, SeverityOptions, SortDirection, StatusOptions, type TAccountStatus, type TAccountType, type TApiErrorDetails, type TAuthStatus, type TBillingPeriod, type TChecklistExecutionStatus, type TCompanyFilter, type TCompanyRelationshipStatus, type TCompanyType, type TDamageSeverity, type TDamageStatus, type TDatabaseStatus, type TDateFormat, type TDateInput, type TDateTimeString, type TEmptyObject, type TEnvironment, type TErrorCode, type TErrorResponseDetail, type TFilterCondition, type TFilterConditionValue, type THttpMethod, type THttpStatusCode, type TImageEntityType, type TInventoryItemType, type TInventoryRestockOrderStatus, type TInventoryUnitType, type TInvitationStatus, type TJsonObject, type TJsonPrimitive, type TJsonValue, type TLanguage, type TMissingFieldsError, type TMode, type TMonth, type TPropertyStatus, type TPropertyType, type TRateLimitError, type TRecordKeys, type TRecordValue, type TRoomType, type TServerStatus, type TServiceType, type TSeverity, type TSortDirection, type TStatus, type TStoredImageEntityType, type TSubscriptionProvider, type TSubscriptionStatus, type TUSJurisdiction, type TUSStateCode, type TUnknownRecord, type TValidationError, type TVersionInput, type TWorkOrderPriority, type TWorkOrderStatus, type TWorkSessionStatus, type TurndownObject, US_JURISDICTIONS, UnitedStatesJurisdictionOptions, WORK_ORDER_PRIORITY, WORK_ORDER_STATUS, WORK_SESSION_STATUS, addDays, addWeeks, camelCase, capitalize, charCount, chunkArray, cleanFormData, containsAll, containsAny, convertStringBooleans, createPagingObject, daysBetween, deepClone, deletePropertyIfExists, endOfDay, endOfWeek, escapeRegex, extractNumbers, filterArrayById, flatten, formatAddress, formatDate, formatNumber, formatPhoneNumber, fromBase64, getFirstPropertyValue, getNestedValue, getWeekDays, hasOwnProp, hasProperties, hasProperty, highlight, isAuthError, isEmail, isEmpty, isFuture, isMissingFieldsError, isNumeric, isPalindrome, isPast, isRateLimitError, isToday, isUrl, isValidationError, kebabCase, kebabToSpaces, longestWord, lowerCase, normalCase, normalizeSpaces, omitProperties, padEnd, padStart, parseJSON, parseNumber, pascalCase, pluralize, removeDuplicates, removeFormProperties, removeSpecialChars, removeUndefined, removeWhitespace, repeat, repeatChar, replaceNulls, resetPagination, returnObject, reverse, sentenceCase, setNestedValue, slug, snakeCase, snakeCaseToSpaces, sortArrayByProperty, splitMultiple, startOfDay, startOfWeek, stringSimilarity, stripHtml, subtractDays, subtractWeeks, timeAgo, titleCase, toBase64, toCamelCase, toKebabCase, toNumber, toPascalCase, toSnakeCase, truncate, tryCatch, unflatten, upperCase, validPath, wordCount };
3082
+ export { ACCOUNT_STATUS, ACCOUNT_TYPE, AUTH_STATUS, AcceptInvitationRequestSchema, BILLING_PERIOD, CHECKLIST_EXECUTION_STATUS, COMPANY_RELATIONSHIP_STATUS, COMPANY_TYPES, ChangePasswordRequestSchema, CompanyFilter, CreateCompanyRequestSchema, CreatePropertyRequestSchema, CreateRoomRequestSchema, DAMAGE_SEVERITY, DAMAGE_STATUS, DATABASE_STATUS, ENVIRONMENT, ERROR_CODES, FilterCondition, ForgotPasswordRequestSchema, HTTP_METHOD, HTTP_STATUS, type IAcceptCompanyInvitationRequest, type IAcceptCompanyInvitationResponse, type IAcceptInvitationRequest, type IAcceptInvitationResponse, type IAcceptInvitationRouteResponse, type IAddChecklistItemRequest, type IAddChecklistItemResponse, type IAddDamageReportCommentRequest, type IAddDamageReportCommentResponse, type IAddDamageReportPhotoRequest, type IAddDamageReportPhotoResponse, type IAddInventoryToPropertyRequest, type IAddInventoryToPropertyResponse, type IAddInventoryToRoomRequest, type IAddInventoryToRoomResponse, type IAddTemplateItemRequest, type IAddTemplateItemResponse, type IAddress, type IApiError, type IApiErrorResponse, type IApiMeta, type IApiResponse, type IApiSuccessResponse, type IAssignDamageReportRequest, type IAssignDamageReportResponse, type IAssignWorkOrderRequest, type IAssignWorkOrderResponse, type IAuthInvitationBaseResponse, type IAuthInvitationIdParams, type IAuthInvitationTokenParams, type IAuthMessageResponse, type IAuthRefreshTokenResponse, type IAuthSession, type IAuthSessionIdParams, type IAuthTokenBundle, type IAuthTokenResponse, type IBooleanFilterCondition, type ICancelWorkSessionRequest, type ICancelWorkSessionResponse, type IChangePasswordRequest, type IChangePasswordResponse, type IChecklistAndItemIdParams, type IChecklistExecution, type IChecklistIdParams, type IChecklistItemCompletion, type IChecklistItemOrder, type IChecklistTemplate, type IChecklistTemplateCompanyRouteParams, type IChecklistTemplateItem, type IChecklistTemplateWithItems, type ICloneChecklistRequest, type ICloneChecklistResponse, type ICompany, type ICompanyIdParams, type ICompanyInvitationIdParams, type ICompanyInvitationSummary, type ICompanyInvitationTokenParams, type ICompanyRouteParams, type ICompanyUserRouteParams, type ICompanyUserSummary, type ICompanyWithRelationshipStatus, type ICompanyWithUsers, type ICompleteChecklistExecutionRequest, type ICompleteChecklistExecutionResponse, type ICompleteChecklistItemInput, type ICompleteExecutionItemRequest, type ICompleteExecutionItemResponse, type ICompleteWorkOrderRequest, type ICompleteWorkOrderResponse, type ICompleteWorkSessionRequest, type ICompleteWorkSessionResponse, type ICountResponse, type ICreateChecklistRequest, type ICreateChecklistResponse, type ICreateCompanyRequest, type ICreateCompanyResponse, type ICreateCustomChecklistRequest, type ICreateCustomChecklistResponse, type ICreateDamageReportInput, type ICreateDamageReportRequest, type ICreateDamageReportResponse, type ICreateInventoryItemRequest, type ICreateInventoryItemResponse, type ICreatePropertyRequest, type ICreatePropertyResponse, type ICreateRestockOrderRequest, type ICreateRestockOrderResponse, type ICreateRoomChecklistInput, type ICreateRoomChecklistItemInput, type ICreateRoomRequest, type ICreateRoomResponse, type ICreateTemplateInput, type ICreateTemplateItemInput, type ICreateTemplateRequest, type ICreateTemplateResponse, type ICreateTemplateWithItemsRequest, type ICreateTemplateWithItemsResponse, type ICreateWorkOrderInput, type ICreateWorkOrderRequest, type ICreateWorkOrderResponse, type ICreateWorkSessionInput, type ICreateWorkSessionRequest, type ICreateWorkSessionResponse, type IDamageComment, type IDamagePhoto, type IDamageReport, type IDamageReportPhoto, type IDamageReportPropertyRouteParams, type IDamageReportRoomRouteParams, type IDamageReportRouteParams, type IDamageReportStatusHistory, type IDamageReportWorkOrderRouteParams, type IDataWithPagingResult, type IDeclineCompanyInvitationRequest, type IDeclineCompanyInvitationResponse, type IDeleteChecklistItemRequest, type IDeleteChecklistItemResponse, type IDeleteChecklistRequest, type IDeleteChecklistResponse, type IDeleteImageRequest, type IDeleteImageResponse, type IDeleteInventoryItemRequest, type IDeleteInventoryItemResponse, type IDeletePropertyRequest, type IDeletePropertyResponse, type IDeleteRoomRequest, type IDeleteRoomResponse, type IDeleteTemplateItemRequest, type IDeleteTemplateItemResponse, type IDeleteTemplateRequest, type IDeleteTemplateResponse, type IDeleteUserRequest, type IDeleteUserResponse, type IDeviceInfo, type IDuplicateTemplateItemRequest, type IDuplicateTemplateItemResponse, type IEmailValidationResult, type IEmptyRouteParams, type IEmptyRouteRequest, type IFilterCondition, type IFilterConditionBase, type IForgotPasswordRequest, type IForgotPasswordResponse, type IGetActiveWorkSessionRequest, type IGetActiveWorkSessionResponse, type IGetChecklistByIdRequest, type IGetChecklistByIdResponse, type IGetChecklistByRoomIdRequest, type IGetChecklistByRoomIdResponse, type IGetChecklistExecutionByIdRequest, type IGetChecklistExecutionByIdResponse, type IGetChecklistExecutionsRequest, type IGetChecklistExecutionsResponse, type IGetChecklistItemsRequest, type IGetChecklistItemsResponse, type IGetChecklistWithItemsRequest, type IGetChecklistWithItemsResponse, type IGetCompaniesQuery, type IGetCompaniesRequest, type IGetCompaniesResponse, type IGetCompanyByIdRequest, type IGetCompanyByIdResponse, type IGetCompanyUsersRequest, type IGetCompanyUsersResponse, type IGetCurrentUserRequest, type IGetCurrentUserResponse, type IGetCustomChecklistItemsRequest, type IGetCustomChecklistItemsResponse, type IGetDamageReportByIdRequest, type IGetDamageReportByIdResponse, type IGetDamageReportCommentsRequest, type IGetDamageReportCommentsResponse, type IGetDamageReportHistoryRequest, type IGetDamageReportHistoryResponse, type IGetDamageReportPhotosRequest, type IGetDamageReportPhotosResponse, type IGetDamageReportsByPropertyIdRequest, type IGetDamageReportsByPropertyIdResponse, type IGetDamageReportsByRoomIdRequest, type IGetDamageReportsByRoomIdResponse, type IGetDetailedHealthRequest, type IGetDetailedHealthResponse, type IGetDetailedRoomsByPropertyIdRequest, type IGetDetailedRoomsByPropertyIdResponse, type IGetExecutionItemsRequest, type IGetExecutionItemsResponse, type IGetExecutionProgressRequest, type IGetExecutionProgressResponse, type IGetHealthRequest, type IGetHealthResponse, type IGetImagesForEntityResponse, type IGetInventoryByCompanyIdRequest, type IGetInventoryByCompanyIdResponse, type IGetInventoryCountsByExecutionIdRequest, type IGetInventoryCountsByExecutionIdResponse, type IGetInventoryItemByIdRequest, type IGetInventoryItemByIdResponse, type IGetLoginHistoryListResponse, type IGetLoginHistoryRequest, type IGetLoginHistoryResponse, type IGetMeRequest, type IGetMeResponse, type IGetPendingCompanyInvitationsRequest, type IGetPendingCompanyInvitationsResponse, type IGetPendingInvitationsListResponse, type IGetPendingInvitationsRequest, type IGetPendingInvitationsResponse, type IGetPropertiesByCompanyIdRequest, type IGetPropertiesByCompanyIdResponse, type IGetPropertiesRequest, type IGetPropertiesResponse, type IGetPropertyAccessInformationRequest, type IGetPropertyAccessInformationResponse, type IGetPropertyByIdRequest, type IGetPropertyByIdResponse, type IGetPropertyInventoryNeedingRestockRequest, type IGetPropertyInventoryNeedingRestockResponse, type IGetPropertyInventoryRequest, type IGetPropertyInventoryResponse, type IGetPropertyResponse, type IGetRestockOrderItemsRequest, type IGetRestockOrderItemsResponse, type IGetRestockOrdersByCompanyIdRequest, type IGetRestockOrdersByCompanyIdResponse, type IGetRoomByIdRequest, type IGetRoomByIdResponse, type IGetRoomInventoryNeedingRestockRequest, type IGetRoomInventoryNeedingRestockResponse, type IGetRoomInventoryRequest, type IGetRoomInventoryResponse, type IGetRoomsByPropertyIdRequest, type IGetRoomsByPropertyIdResponse, type IGetRoomsRequest, type IGetSessionsRequest, type IGetSessionsResponse, type IGetStaffRequest, type IGetStaffResponse, type IGetTemplateByIdRequest, type IGetTemplateByIdResponse, type IGetTemplateItemsRequest, type IGetTemplateItemsResponse, type IGetTemplateUsageRequest, type IGetTemplateUsageResponse, type IGetTemplateWithItemsRequest, type IGetTemplateWithItemsResponse, type IGetTemplatesByCompanyIdRequest, type IGetTemplatesByCompanyIdResponse, type IGetUserByEmailRequest, type IGetUserByEmailResponse, type IGetUserByIdRequest, type IGetUserByIdResponse, type IGetUserCompaniesRequest, type IGetUserCompaniesResponse, type IGetUserResponse, type IGetUsersByAccountTypeRequest, type IGetUsersByAccountTypeResponse, type IGetWorkOrderByIdRequest, type IGetWorkOrderByIdResponse, type IGetWorkOrdersByPropertyIdRequest, type IGetWorkOrdersByPropertyIdResponse, type IGetWorkSessionByIdRequest, type IGetWorkSessionByIdResponse, type IGetWorkSessionWithExecutionsRequest, type IGetWorkSessionWithExecutionsResponse, type IGetWorkSessionsByPropertyIdRequest, type IGetWorkSessionsByPropertyIdResponse, type IGetWorkSessionsByUserIdRequest, type IGetWorkSessionsByUserIdResponse, type IHealthCheckResponse, type IHealthChecks, type IImage, type IImageCompanyRouteParams, type IImagePropertyRouteParams, type IImageRoomRouteParams, type IImageRouteParams, type IImageUserRouteParams, type IImageWithUrl, type IIncludeInactiveQuery, type IIncludeResolvedQuery, type IInventoryCompanyRouteParams, type IInventoryCount, type IInventoryExecutionRouteParams, type IInventoryItem, type IInventoryItemRouteParams, type IInventoryOrderRouteParams, type IInventoryPropertyRouteParams, type IInventoryRestockOrder, type IInventoryRestockOrderItem, type IInventoryRoomRouteParams, type IInviteCompanyToCompanyRequest, type IInviteCompanyToCompanyResponse, type IInviteUserToCompanyRequest, type IInviteUserToCompanyResponse, type IJobFilterValues, type ILimitQuery, type ILoginCredentials, type ILoginRequest, type ILoginResponse, type ILogoutAllRequest, type ILogoutAllResponse, type ILogoutRequest, type ILogoutResponse, IMAGE_ENTITY, IMAGE_ENTITY_TYPE, type IMessageResponse, type IMetaData, type IMissingFieldsErrorDetail, INVENTORY_ITEM_TYPE, INVENTORY_RESTOCK_ORDER_STATUS, INVENTORY_UNITS, INVITATION_STATUS, type INumberFilterCondition, type IPaginationRequest, type IPagingObject, type IPagingResult, type IPasswordValidationResult, type IPasswordValidationRules, type IProperty, type IPropertyAccessFormValues, type IPropertyAccessInformation, type IPropertyAccessItem, type IPropertyBase, type IPropertyDetail, type IPropertyFilterValues, type IPropertyFormValues, type IPropertyIdParams, type IPropertyInventory, type IPropertyJobSummaryItem, type IPropertyMetric, type IPropertyRoomSummaryItem, type IPropertySummary, type IRateLimitErrorDetail, type IRateLimitStatus, type IRecordInventoryCountRequest, type IRecordInventoryCountResponse, type IRefreshSessionRequest, type IRefreshSessionResponse, type IRefreshTokenData, type IRegisterCredentials, type IRegisterRequest, type IRegisterResponse, type IRegisterWithInvitationRequest, type IRegisterWithInvitationResponse, type IReorderChecklistItemsRequest, type IReorderChecklistItemsResponse, type IReorderTemplateItemsRequest, type IReorderTemplateItemsResponse, type IResolveDamageReportRequest, type IResolveDamageReportResponse, type IRestockOrderItemInput, type IRevokeCompanyInvitationRequest, type IRevokeCompanyInvitationResponse, type IRevokeInvitationRequest, type IRevokeInvitationResponse, type IRevokeSessionRequest, type IRevokeSessionResponse, type IRoom, type IRoomChecklist, type IRoomChecklistItem, type IRoomChecklistRoomRouteParams, type IRoomChecklistWithItems, type IRoomInventory, type IRoomInventoryIdParams, type IRoomPropertyRouteParams, type IRoomRouteParams, type IRuntimeValidationOptions, type IRuntimeValidationSchema, type ISelectOption, type ISetAuthSessionParams, type ISkipChecklistExecutionRequest, type ISkipChecklistExecutionResponse, type ISortCondition, type IStartChecklistExecutionRequest, type IStartChecklistExecutionResponse, type IStoredAuthSession, type IStringFilterCondition, type ISuccessResponse, type ITemplateAndItemIdParams, type ITemplateIdParams, type ITemplateItemIdParams, type ITemplateItemOrder, type IToggleTemplateActiveRequest, type IToggleTemplateActiveResponse, type ITokenPayload, type ITypedApiError, type IUpdateChecklistItemRequest, type IUpdateChecklistItemResponse, type IUpdateChecklistRequest, type IUpdateChecklistResponse, type IUpdateCompanyRequest, type IUpdateCompanyResponse, type IUpdateCurrentUserRequest, type IUpdateDamageReportRequest, type IUpdateDamageReportResponse, type IUpdateDamageReportStatusRequest, type IUpdateDamageReportStatusResponse, type IUpdateInventoryItemRequest, type IUpdateInventoryItemResponse, type IUpdatePropertyAccessInformationRequest, type IUpdatePropertyAccessInformationResponse, type IUpdatePropertyRequest, type IUpdatePropertyResponse, type IUpdateRestockOrderStatusRequest, type IUpdateRestockOrderStatusResponse, type IUpdateRoomInventoryRequest, type IUpdateRoomInventoryResponse, type IUpdateRoomRequest, type IUpdateRoomResponse, type IUpdateTemplateItemRequest, type IUpdateTemplateItemResponse, type IUpdateTemplateRequest, type IUpdateTemplateResponse, type IUpdateUserRequest, type IUpdateUserResponse, type IUpdateWorkOrderRequest, type IUpdateWorkOrderResponse, type IUpdateWorkOrderStatusRequest, type IUpdateWorkOrderStatusResponse, type IUpdateWorkSessionRequest, type IUpdateWorkSessionResponse, type IUploadImagesResponse, type IUploadProfileImageRequest, type IUploadProfileImageResponse, type IUser, type IUserIdParams, type IUserSafe, type IUserSession, type IUserSubscription, type IValidateCompanyInvitationRequest, type IValidateCompanyInvitationResponse, type IValidateInvitationRequest, type IValidateInvitationResponse, type IValidationErrorDetail, type IValidationField, type IValidationIssue, type IValidationResult, type IVersion, type IWeekDay, type IWorkOrder, type IWorkSession, type IWorkSessionExecutionRouteParams, type IWorkSessionPropertyRouteParams, type IWorkSessionRouteParams, type IWorkSessionUserRouteParams, type IWorkSessionWithExecutions, InviteCompanyToCompanyRequestSchema, InviteUserToCompanyRequestSchema, JSONStringify, LANGUAGE, LoginRequestSchema, LogoutRequestSchema, MODE, MONTHS, PROPERTY_STATUS, PROPERTY_TYPES, PropertyStatusOptions, PropertyTypeOptions, ROOM_TYPE, RefreshSessionRequestSchema, RegisterRequestSchema, RegisterWithInvitationRequestSchema, SERVER_STATUS, SERVICE_TYPES, SEVERITY, STATUS, SUBSCRIPTION_PROVIDER, SUBSCRIPTION_STATUS, ServiceTypeOptions, SeverityOptions, SortDirection, StatusOptions, type TAccountStatus, type TAccountType, type TApiErrorDetails, type TAuthStatus, type TBillingPeriod, type TChecklistExecutionStatus, type TCompanyFilter, type TCompanyRelationshipStatus, type TCompanyType, type TDamageSeverity, type TDamageStatus, type TDatabaseStatus, type TDateFormat, type TDateInput, type TDateTimeString, type TEmptyObject, type TEnvironment, type TErrorCode, type TErrorResponseDetail, type TFilterCondition, type TFilterConditionValue, type THttpMethod, type THttpStatusCode, type TImageEntityType, type TInferValidationFields, type TInferValidationSchemaInput, type TInventoryItemType, type TInventoryRestockOrderStatus, type TInventoryUnitType, type TInvitationStatus, type TJsonObject, type TJsonPrimitive, type TJsonValue, type TLanguage, type TMissingFieldsError, type TMissingValuePolicy, type TMode, type TMonth, type TPropertyStatus, type TPropertyType, type TRateLimitError, type TRecordKeys, type TRecordValue, type TRoomType, type TServerStatus, type TServiceType, type TSeverity, type TSortDirection, type TStatus, type TStoredImageEntityType, type TSubscriptionProvider, type TSubscriptionStatus, type TUSJurisdiction, type TUSStateCode, type TUnknownRecord, type TValidationError, type TValidationFieldMap, type TValidationIssueType, type TVersionInput, type TWorkOrderPriority, type TWorkOrderStatus, type TWorkSessionStatus, type TurndownObject, US_JURISDICTIONS, UnitedStatesJurisdictionOptions, UpdateCompanyRequestSchema, UpdateCurrentUserRequestSchema, UpdatePropertyAccessInformationRequestSchema, UpdatePropertyRequestSchema, UpdateRoomRequestSchema, UpdateUserRequestSchema, WORK_ORDER_PRIORITY, WORK_ORDER_STATUS, WORK_SESSION_STATUS, addDays, addWeeks, camelCase, capitalize, charCount, chunkArray, cleanFormData, containsAll, containsAny, convertStringBooleans, createPagingObject, createValidationSchema, daysBetween, deepClone, deletePropertyIfExists, endOfDay, endOfWeek, escapeRegex, extractNumbers, filterArrayById, flatten, formatAddress, formatDate, formatNumber, formatPhoneNumber, fromBase64, getFirstPropertyValue, getNestedValue, getWeekDays, hasOwnProp, hasProperties, hasProperty, highlight, isAuthError, isEmail, isEmpty, isFuture, isMissingFieldsError, isNumeric, isPalindrome, isPast, isRateLimitError, isToday, isUrl, isValidationError, kebabCase, kebabToSpaces, longestWord, lowerCase, normalCase, normalizeSpaces, omitProperties, optionalEnumField, optionalNullableEnumField, optionalNullableNonNegativeIntegerField, optionalNullableStringField, optionalRecordField, optionalStringField, padEnd, padStart, parseJSON, parseNumber, pascalCase, pluralize, removeDuplicates, removeFormProperties, removeSpecialChars, removeUndefined, removeWhitespace, repeat, repeatChar, replaceNulls, requiredEmailField, requiredEnumField, requiredStringField, requiredUuidField, resetPagination, returnObject, reverse, sentenceCase, setNestedValue, slug, snakeCase, snakeCaseToSpaces, sortArrayByProperty, splitMultiple, startOfDay, startOfWeek, stringSimilarity, stripHtml, subtractDays, subtractWeeks, timeAgo, titleCase, toBase64, toCamelCase, toKebabCase, toNumber, toPascalCase, toSnakeCase, truncate, tryCatch, unflatten, upperCase, validPath, wordCount };