@turndown/library 0.1.60 → 0.1.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +442 -30
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +341 -203
- package/dist/index.d.ts +341 -203
- package/dist/index.mjs +409 -30
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -641,12 +641,43 @@ declare const SERVICE_TYPES: {
|
|
|
641
641
|
};
|
|
642
642
|
type TServiceType = TRecordValue<typeof SERVICE_TYPES>;
|
|
643
643
|
declare const MONTHS: readonly ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
|
|
644
|
-
type
|
|
644
|
+
type TMonths = (typeof MONTHS)[number];
|
|
645
|
+
declare const WEEK_DAY: {
|
|
646
|
+
readonly Sunday: "Sunday";
|
|
647
|
+
readonly Monday: "Monday";
|
|
648
|
+
readonly Tuesday: "Tuesday";
|
|
649
|
+
readonly Wednesday: "Wednesday";
|
|
650
|
+
readonly Thursday: "Thursday";
|
|
651
|
+
readonly Friday: "Friday";
|
|
652
|
+
readonly Saturday: "Saturday";
|
|
653
|
+
};
|
|
654
|
+
type TWeekDay = TRecordValue<typeof WEEK_DAY>;
|
|
655
|
+
declare const WEEK_DAY_SHORT_LABEL: {
|
|
656
|
+
readonly Sunday: "Sun";
|
|
657
|
+
readonly Monday: "Mon";
|
|
658
|
+
readonly Tuesday: "Tue";
|
|
659
|
+
readonly Wednesday: "Wed";
|
|
660
|
+
readonly Thursday: "Thu";
|
|
661
|
+
readonly Friday: "Fri";
|
|
662
|
+
readonly Saturday: "Sat";
|
|
663
|
+
};
|
|
664
|
+
type TWeekDayShortLabel = TRecordValue<typeof WEEK_DAY_SHORT_LABEL>;
|
|
665
|
+
declare const WEEK_DAY_LETTER: {
|
|
666
|
+
readonly Sunday: "S";
|
|
667
|
+
readonly Monday: "M";
|
|
668
|
+
readonly Tuesday: "T";
|
|
669
|
+
readonly Wednesday: "W";
|
|
670
|
+
readonly Thursday: "T";
|
|
671
|
+
readonly Friday: "F";
|
|
672
|
+
readonly Saturday: "S";
|
|
673
|
+
};
|
|
674
|
+
type TWeekDayLetter = TRecordValue<typeof WEEK_DAY_LETTER>;
|
|
645
675
|
interface IWeekDay {
|
|
646
676
|
date: Date;
|
|
647
677
|
dayOfMonth: number;
|
|
648
|
-
|
|
649
|
-
|
|
678
|
+
day: TWeekDay;
|
|
679
|
+
shortLabel: TWeekDayShortLabel;
|
|
680
|
+
letter: TWeekDayLetter;
|
|
650
681
|
isToday: boolean;
|
|
651
682
|
}
|
|
652
683
|
declare const UnitedStatesJurisdictionOptions: ISelectOption<TRecordValue<{
|
|
@@ -788,6 +819,79 @@ interface IApiErrorResponse<TErrorDetails = TApiErrorDetails> {
|
|
|
788
819
|
}
|
|
789
820
|
type IApiResponse<TData = null, TErrorDetails = TApiErrorDetails> = IApiSuccessResponse<TData> | IApiErrorResponse<TErrorDetails>;
|
|
790
821
|
|
|
822
|
+
type TValidationIssueType = "INVALID_BODY" | "MISSING_FIELD" | "INVALID_FIELD" | "UNSUPPORTED_FIELD";
|
|
823
|
+
interface IValidationIssue<TFieldName extends string = string> {
|
|
824
|
+
fieldName: TFieldName;
|
|
825
|
+
type: TValidationIssueType;
|
|
826
|
+
}
|
|
827
|
+
interface IValidationResult<TValue extends object> {
|
|
828
|
+
success: boolean;
|
|
829
|
+
data?: TValue;
|
|
830
|
+
issues: IValidationIssue[];
|
|
831
|
+
}
|
|
832
|
+
type TMissingValuePolicy = "Nullish" | "BlankString";
|
|
833
|
+
interface IValidationField<TValue, TRequired extends boolean> {
|
|
834
|
+
readonly valueType?: TValue;
|
|
835
|
+
required: TRequired;
|
|
836
|
+
missingValuePolicy: TMissingValuePolicy;
|
|
837
|
+
validate: (value: unknown) => boolean;
|
|
838
|
+
}
|
|
839
|
+
type TValidationFieldMap = Record<string, IValidationField<unknown, boolean>>;
|
|
840
|
+
type TRequiredSchemaKeys<TFields extends TValidationFieldMap> = {
|
|
841
|
+
[TKey in keyof TFields]: TFields[TKey] extends IValidationField<unknown, true> ? TKey : never;
|
|
842
|
+
}[keyof TFields];
|
|
843
|
+
type TOptionalSchemaKeys<TFields extends TValidationFieldMap> = Exclude<keyof TFields, TRequiredSchemaKeys<TFields>>;
|
|
844
|
+
type TFieldValue<TField> = TField extends IValidationField<infer TValue, boolean> ? TValue : never;
|
|
845
|
+
type TInferValidationFields<TFields extends TValidationFieldMap> = {
|
|
846
|
+
[TKey in TRequiredSchemaKeys<TFields>]: TFieldValue<TFields[TKey]>;
|
|
847
|
+
} & {
|
|
848
|
+
[TKey in TOptionalSchemaKeys<TFields>]?: TFieldValue<TFields[TKey]>;
|
|
849
|
+
};
|
|
850
|
+
type TInferValidationSchemaInput<TSchema> = TSchema extends IRuntimeValidationSchema<infer TFields> ? TInferValidationFields<TFields> : never;
|
|
851
|
+
interface IRuntimeValidationSchema<TFields extends TValidationFieldMap = TValidationFieldMap> {
|
|
852
|
+
fields: TFields;
|
|
853
|
+
allowedFields: readonly Extract<keyof TFields, string>[];
|
|
854
|
+
requiredFields: readonly Extract<TRequiredSchemaKeys<TFields>, string>[];
|
|
855
|
+
validate: (value: unknown, options?: IRuntimeValidationOptions) => IValidationResult<TInferValidationFields<TFields>>;
|
|
856
|
+
}
|
|
857
|
+
interface IRuntimeValidationOptions {
|
|
858
|
+
rejectUnknownFields?: boolean;
|
|
859
|
+
}
|
|
860
|
+
declare const createValidationSchema: <TFields extends TValidationFieldMap>(fields: TFields) => IRuntimeValidationSchema<TFields>;
|
|
861
|
+
declare const requiredStringField: (missingValuePolicy?: TMissingValuePolicy) => IValidationField<string, true>;
|
|
862
|
+
declare const optionalStringField: () => IValidationField<string, false>;
|
|
863
|
+
declare const optionalNullableStringField: () => IValidationField<string | null, false>;
|
|
864
|
+
declare const requiredEmailField: (missingValuePolicy?: TMissingValuePolicy) => IValidationField<string, true>;
|
|
865
|
+
declare const requiredUuidField: (missingValuePolicy?: TMissingValuePolicy) => IValidationField<string, true>;
|
|
866
|
+
declare const optionalNullableNonNegativeIntegerField: () => IValidationField<number | null, false>;
|
|
867
|
+
declare const optionalRecordField: () => IValidationField<Record<string, unknown>, false>;
|
|
868
|
+
declare const requiredEnumField: <TValue extends string>(allowedValues: readonly TValue[], missingValuePolicy?: TMissingValuePolicy) => IValidationField<TValue, true>;
|
|
869
|
+
declare const optionalEnumField: <TValue extends string>(allowedValues: readonly TValue[]) => IValidationField<TValue, false>;
|
|
870
|
+
declare const optionalNullableEnumField: <TValue extends string>(allowedValues: readonly TValue[]) => IValidationField<TValue | null, false>;
|
|
871
|
+
|
|
872
|
+
declare const ACCOUNT_TYPE: {
|
|
873
|
+
readonly TURNDOWN_ADMIN: "TURNDOWN_ADMIN";
|
|
874
|
+
readonly ACCOUNT_ADMIN: "ACCOUNT_ADMIN";
|
|
875
|
+
readonly MANAGER: "MANAGER";
|
|
876
|
+
readonly STAFF: "STAFF";
|
|
877
|
+
readonly GUEST: "GUEST";
|
|
878
|
+
};
|
|
879
|
+
type TAccountType = TRecordValue<typeof ACCOUNT_TYPE>;
|
|
880
|
+
declare const ACCOUNT_STATUS: {
|
|
881
|
+
readonly ACTIVE: "ACTIVE";
|
|
882
|
+
readonly INACTIVE: "INACTIVE";
|
|
883
|
+
readonly SUSPENDED: "SUSPENDED";
|
|
884
|
+
readonly PENDING: "PENDING";
|
|
885
|
+
};
|
|
886
|
+
type TAccountStatus = TRecordValue<typeof ACCOUNT_STATUS>;
|
|
887
|
+
declare const LANGUAGE: {
|
|
888
|
+
readonly ENGLISH: "ENGLISH";
|
|
889
|
+
readonly FRENCH: "FRENCH";
|
|
890
|
+
readonly SPANISH: "SPANISH";
|
|
891
|
+
readonly GERMAN: "GERMAN";
|
|
892
|
+
};
|
|
893
|
+
type TLanguage = TRecordValue<typeof LANGUAGE>;
|
|
894
|
+
|
|
791
895
|
interface IUserIdParams {
|
|
792
896
|
id: string;
|
|
793
897
|
}
|
|
@@ -810,16 +914,24 @@ type IGetStaffRequest = IEmptyRouteRequest;
|
|
|
810
914
|
interface IGetStaffResponse {
|
|
811
915
|
staff: IUserSafe[];
|
|
812
916
|
}
|
|
813
|
-
|
|
814
|
-
firstName
|
|
815
|
-
lastName
|
|
816
|
-
mi
|
|
817
|
-
username
|
|
818
|
-
email
|
|
819
|
-
phoneNumber
|
|
820
|
-
phoneFormat
|
|
917
|
+
declare const UpdateUserRequestSchema: IRuntimeValidationSchema<{
|
|
918
|
+
firstName: IValidationField<string, false>;
|
|
919
|
+
lastName: IValidationField<string | null, false>;
|
|
920
|
+
mi: IValidationField<string | null, false>;
|
|
921
|
+
username: IValidationField<string | null, false>;
|
|
922
|
+
email: IValidationField<string, false>;
|
|
923
|
+
phoneNumber: IValidationField<string | null, false>;
|
|
924
|
+
phoneFormat: IValidationField<string | null, false>;
|
|
925
|
+
preferredLanguage: IValidationField<"ENGLISH" | "FRENCH" | "SPANISH" | "GERMAN", false>;
|
|
926
|
+
}>;
|
|
927
|
+
type IUpdateUserRequest = TInferValidationSchemaInput<typeof UpdateUserRequestSchema> & {
|
|
821
928
|
preferredLanguage?: IUserSafe["preferredLanguage"];
|
|
822
|
-
}
|
|
929
|
+
};
|
|
930
|
+
declare const UpdateCurrentUserRequestSchema: IRuntimeValidationSchema<{
|
|
931
|
+
firstName: IValidationField<string, false>;
|
|
932
|
+
lastName: IValidationField<string, false>;
|
|
933
|
+
}>;
|
|
934
|
+
type IUpdateCurrentUserRequest = TInferValidationSchemaInput<typeof UpdateCurrentUserRequestSchema>;
|
|
823
935
|
interface IUpdateUserResponse {
|
|
824
936
|
user: IUserSafe;
|
|
825
937
|
}
|
|
@@ -833,28 +945,6 @@ interface IGetUsersByAccountTypeResponse {
|
|
|
833
945
|
users: IUserSafe[];
|
|
834
946
|
}
|
|
835
947
|
|
|
836
|
-
declare const ACCOUNT_TYPE: {
|
|
837
|
-
readonly TURNDOWN_ADMIN: "TURNDOWN_ADMIN";
|
|
838
|
-
readonly ACCOUNT_ADMIN: "ACCOUNT_ADMIN";
|
|
839
|
-
readonly MANAGER: "MANAGER";
|
|
840
|
-
readonly STAFF: "STAFF";
|
|
841
|
-
readonly GUEST: "GUEST";
|
|
842
|
-
};
|
|
843
|
-
type TAccountType = TRecordValue<typeof ACCOUNT_TYPE>;
|
|
844
|
-
declare const ACCOUNT_STATUS: {
|
|
845
|
-
readonly ACTIVE: "ACTIVE";
|
|
846
|
-
readonly INACTIVE: "INACTIVE";
|
|
847
|
-
readonly SUSPENDED: "SUSPENDED";
|
|
848
|
-
readonly PENDING: "PENDING";
|
|
849
|
-
};
|
|
850
|
-
type TAccountStatus = TRecordValue<typeof ACCOUNT_STATUS>;
|
|
851
|
-
declare const LANGUAGE: {
|
|
852
|
-
readonly ENGLISH: "ENGLISH";
|
|
853
|
-
readonly FRENCH: "FRENCH";
|
|
854
|
-
readonly SPANISH: "SPANISH";
|
|
855
|
-
readonly GERMAN: "GERMAN";
|
|
856
|
-
};
|
|
857
|
-
type TLanguage = TRecordValue<typeof LANGUAGE>;
|
|
858
948
|
interface IUser extends IMetaData {
|
|
859
949
|
readonly id: string;
|
|
860
950
|
firstName: string;
|
|
@@ -913,33 +1003,43 @@ interface IAuthInvitationBaseResponse {
|
|
|
913
1003
|
invitedByName: string;
|
|
914
1004
|
expiresAt: TDateTimeString;
|
|
915
1005
|
}
|
|
916
|
-
|
|
917
|
-
email: string
|
|
918
|
-
password: string
|
|
919
|
-
firstName: string
|
|
920
|
-
lastName
|
|
921
|
-
accountType:
|
|
1006
|
+
declare const RegisterRequestSchema: IRuntimeValidationSchema<{
|
|
1007
|
+
email: IValidationField<string, true>;
|
|
1008
|
+
password: IValidationField<string, true>;
|
|
1009
|
+
firstName: IValidationField<string, true>;
|
|
1010
|
+
lastName: IValidationField<string, false>;
|
|
1011
|
+
accountType: IValidationField<"TURNDOWN_ADMIN" | "ACCOUNT_ADMIN" | "MANAGER" | "STAFF" | "GUEST", true>;
|
|
1012
|
+
deviceInfo: IValidationField<Record<string, unknown>, false>;
|
|
1013
|
+
}>;
|
|
1014
|
+
type IRegisterRequest = Omit<TInferValidationSchemaInput<typeof RegisterRequestSchema>, "deviceInfo"> & {
|
|
922
1015
|
deviceInfo?: IDeviceInfo;
|
|
923
|
-
}
|
|
1016
|
+
};
|
|
924
1017
|
interface IRegisterResponse extends IAuthTokenResponse {
|
|
925
1018
|
}
|
|
926
|
-
|
|
927
|
-
email: string
|
|
928
|
-
password: string
|
|
1019
|
+
declare const LoginRequestSchema: IRuntimeValidationSchema<{
|
|
1020
|
+
email: IValidationField<string, true>;
|
|
1021
|
+
password: IValidationField<string, true>;
|
|
1022
|
+
deviceInfo: IValidationField<Record<string, unknown>, false>;
|
|
1023
|
+
}>;
|
|
1024
|
+
type ILoginRequest = Omit<TInferValidationSchemaInput<typeof LoginRequestSchema>, "deviceInfo"> & {
|
|
929
1025
|
deviceInfo?: IDeviceInfo;
|
|
930
|
-
}
|
|
1026
|
+
};
|
|
931
1027
|
interface ILoginResponse extends IAuthTokenResponse {
|
|
932
1028
|
passwordResetRequired: boolean;
|
|
933
1029
|
}
|
|
934
|
-
|
|
935
|
-
refreshToken: string
|
|
1030
|
+
declare const RefreshSessionRequestSchema: IRuntimeValidationSchema<{
|
|
1031
|
+
refreshToken: IValidationField<string, true>;
|
|
1032
|
+
deviceInfo: IValidationField<Record<string, unknown>, false>;
|
|
1033
|
+
}>;
|
|
1034
|
+
type IRefreshSessionRequest = Omit<TInferValidationSchemaInput<typeof RefreshSessionRequestSchema>, "deviceInfo"> & {
|
|
936
1035
|
deviceInfo?: IDeviceInfo;
|
|
937
|
-
}
|
|
1036
|
+
};
|
|
938
1037
|
interface IRefreshSessionResponse extends IAuthRefreshTokenResponse {
|
|
939
1038
|
}
|
|
940
|
-
|
|
941
|
-
refreshToken
|
|
942
|
-
}
|
|
1039
|
+
declare const LogoutRequestSchema: IRuntimeValidationSchema<{
|
|
1040
|
+
refreshToken: IValidationField<string, false>;
|
|
1041
|
+
}>;
|
|
1042
|
+
type ILogoutRequest = TInferValidationSchemaInput<typeof LogoutRequestSchema>;
|
|
943
1043
|
interface ILogoutResponse extends IAuthMessageResponse {
|
|
944
1044
|
}
|
|
945
1045
|
interface ILogoutAllRequest {
|
|
@@ -963,15 +1063,17 @@ interface IRevokeSessionRequest extends IAuthSessionIdParams {
|
|
|
963
1063
|
}
|
|
964
1064
|
interface IRevokeSessionResponse extends IAuthMessageResponse {
|
|
965
1065
|
}
|
|
966
|
-
|
|
967
|
-
currentPassword: string
|
|
968
|
-
newPassword: string
|
|
969
|
-
}
|
|
1066
|
+
declare const ChangePasswordRequestSchema: IRuntimeValidationSchema<{
|
|
1067
|
+
currentPassword: IValidationField<string, true>;
|
|
1068
|
+
newPassword: IValidationField<string, true>;
|
|
1069
|
+
}>;
|
|
1070
|
+
type IChangePasswordRequest = TInferValidationSchemaInput<typeof ChangePasswordRequestSchema>;
|
|
970
1071
|
interface IChangePasswordResponse extends IGetUserResponse {
|
|
971
1072
|
}
|
|
972
|
-
|
|
973
|
-
email: string
|
|
974
|
-
}
|
|
1073
|
+
declare const ForgotPasswordRequestSchema: IRuntimeValidationSchema<{
|
|
1074
|
+
email: IValidationField<string, true>;
|
|
1075
|
+
}>;
|
|
1076
|
+
type IForgotPasswordRequest = TInferValidationSchemaInput<typeof ForgotPasswordRequestSchema>;
|
|
975
1077
|
interface IForgotPasswordResponse extends IAuthMessageResponse {
|
|
976
1078
|
}
|
|
977
1079
|
type IGetLoginHistoryRequest = IEmptyRouteRequest;
|
|
@@ -994,19 +1096,23 @@ interface IValidateInvitationResponse extends IAuthInvitationBaseResponse {
|
|
|
994
1096
|
email: string;
|
|
995
1097
|
userExists: boolean;
|
|
996
1098
|
}
|
|
997
|
-
|
|
998
|
-
token: string
|
|
999
|
-
password: string
|
|
1000
|
-
firstName: string
|
|
1001
|
-
lastName
|
|
1099
|
+
declare const RegisterWithInvitationRequestSchema: IRuntimeValidationSchema<{
|
|
1100
|
+
token: IValidationField<string, true>;
|
|
1101
|
+
password: IValidationField<string, true>;
|
|
1102
|
+
firstName: IValidationField<string, true>;
|
|
1103
|
+
lastName: IValidationField<string, false>;
|
|
1104
|
+
deviceInfo: IValidationField<Record<string, unknown>, false>;
|
|
1105
|
+
}>;
|
|
1106
|
+
type IRegisterWithInvitationRequest = Omit<TInferValidationSchemaInput<typeof RegisterWithInvitationRequestSchema>, "deviceInfo"> & {
|
|
1002
1107
|
deviceInfo?: IDeviceInfo;
|
|
1003
|
-
}
|
|
1108
|
+
};
|
|
1004
1109
|
interface IRegisterWithInvitationResponse extends IAuthTokenResponse {
|
|
1005
1110
|
}
|
|
1006
|
-
|
|
1007
|
-
userId
|
|
1008
|
-
token: string
|
|
1009
|
-
}
|
|
1111
|
+
declare const AcceptInvitationRequestSchema: IRuntimeValidationSchema<{
|
|
1112
|
+
userId: IValidationField<string, false>;
|
|
1113
|
+
token: IValidationField<string, true>;
|
|
1114
|
+
}>;
|
|
1115
|
+
type IAcceptInvitationRequest = TInferValidationSchemaInput<typeof AcceptInvitationRequestSchema>;
|
|
1010
1116
|
interface IAcceptInvitationResponse {
|
|
1011
1117
|
companyId: string;
|
|
1012
1118
|
companyName: string;
|
|
@@ -1248,6 +1354,28 @@ interface ICreateTemplateItemInput {
|
|
|
1248
1354
|
estimatedTimeMinutes?: number;
|
|
1249
1355
|
}
|
|
1250
1356
|
|
|
1357
|
+
declare const COMPANY_RELATIONSHIP_STATUS: {
|
|
1358
|
+
readonly ACTIVE: "ACTIVE";
|
|
1359
|
+
readonly INACTIVE: "INACTIVE";
|
|
1360
|
+
readonly SUSPENDED: "SUSPENDED";
|
|
1361
|
+
};
|
|
1362
|
+
declare const INVITATION_STATUS: {
|
|
1363
|
+
readonly PENDING: "PENDING";
|
|
1364
|
+
readonly ACCEPTED: "ACCEPTED";
|
|
1365
|
+
readonly EXPIRED: "EXPIRED";
|
|
1366
|
+
readonly REVOKED: "REVOKED";
|
|
1367
|
+
readonly DECLINED: "DECLINED";
|
|
1368
|
+
};
|
|
1369
|
+
type TInvitationStatus = TRecordValue<typeof INVITATION_STATUS>;
|
|
1370
|
+
type TCompanyRelationshipStatus = TRecordValue<typeof COMPANY_RELATIONSHIP_STATUS> | typeof INVITATION_STATUS.PENDING | null;
|
|
1371
|
+
declare const COMPANY_TYPES: {
|
|
1372
|
+
readonly PROPERTY_MANAGEMENT: "PROPERTY_MANAGEMENT";
|
|
1373
|
+
readonly MAINTENANCE: "MAINTENANCE";
|
|
1374
|
+
readonly CLEANER: "CLEANER";
|
|
1375
|
+
readonly OTHER: "OTHER";
|
|
1376
|
+
};
|
|
1377
|
+
type TCompanyType = TRecordValue<typeof COMPANY_TYPES>;
|
|
1378
|
+
|
|
1251
1379
|
interface ICompanyRouteParams {
|
|
1252
1380
|
companyId: string;
|
|
1253
1381
|
}
|
|
@@ -1271,18 +1399,22 @@ interface IGetCompaniesQuery {
|
|
|
1271
1399
|
search?: string;
|
|
1272
1400
|
filter?: TCompanyFilter;
|
|
1273
1401
|
}
|
|
1274
|
-
|
|
1275
|
-
displayName: string
|
|
1276
|
-
addressLine1: string
|
|
1277
|
-
addressLine2
|
|
1278
|
-
city: string
|
|
1402
|
+
declare const CreateCompanyRequestSchema: IRuntimeValidationSchema<{
|
|
1403
|
+
displayName: IValidationField<string, true>;
|
|
1404
|
+
addressLine1: IValidationField<string, true>;
|
|
1405
|
+
addressLine2: IValidationField<string | null, false>;
|
|
1406
|
+
city: IValidationField<string, true>;
|
|
1407
|
+
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>;
|
|
1408
|
+
postalCode: IValidationField<string, true>;
|
|
1409
|
+
companyType: IValidationField<"MAINTENANCE" | "OTHER" | "PROPERTY_MANAGEMENT" | "CLEANER", true>;
|
|
1410
|
+
country: IValidationField<string | null, false>;
|
|
1411
|
+
timezone: IValidationField<string | null, false>;
|
|
1412
|
+
imageUrl: IValidationField<string | null, false>;
|
|
1413
|
+
}>;
|
|
1414
|
+
type ICreateCompanyRequest = TInferValidationSchemaInput<typeof CreateCompanyRequestSchema> & {
|
|
1279
1415
|
stateCode: TUSStateCode;
|
|
1280
|
-
postalCode: string;
|
|
1281
1416
|
companyType: ICompany["companyType"];
|
|
1282
|
-
|
|
1283
|
-
timezone?: string;
|
|
1284
|
-
imageUrl?: string;
|
|
1285
|
-
}
|
|
1417
|
+
};
|
|
1286
1418
|
interface ICreateCompanyResponse extends ICompanyWithRelationshipStatus {
|
|
1287
1419
|
}
|
|
1288
1420
|
type IGetCompaniesRequest = IEmptyRouteRequest;
|
|
@@ -1291,24 +1423,31 @@ interface IGetCompanyByIdRequest extends ICompanyRouteParams {
|
|
|
1291
1423
|
}
|
|
1292
1424
|
interface IGetCompanyByIdResponse extends ICompanyWithRelationshipStatus {
|
|
1293
1425
|
}
|
|
1294
|
-
|
|
1295
|
-
displayName
|
|
1296
|
-
addressLine1
|
|
1297
|
-
addressLine2
|
|
1298
|
-
city
|
|
1426
|
+
declare const UpdateCompanyRequestSchema: IRuntimeValidationSchema<{
|
|
1427
|
+
displayName: IValidationField<string, false>;
|
|
1428
|
+
addressLine1: IValidationField<string, false>;
|
|
1429
|
+
addressLine2: IValidationField<string | null, false>;
|
|
1430
|
+
city: IValidationField<string, false>;
|
|
1431
|
+
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>;
|
|
1432
|
+
postalCode: IValidationField<string, false>;
|
|
1433
|
+
companyType: IValidationField<"MAINTENANCE" | "OTHER" | "PROPERTY_MANAGEMENT" | "CLEANER", false>;
|
|
1434
|
+
country: IValidationField<string | null, false>;
|
|
1435
|
+
timezone: IValidationField<string | null, false>;
|
|
1436
|
+
imageUrl: IValidationField<string | null, false>;
|
|
1437
|
+
}>;
|
|
1438
|
+
type IUpdateCompanyRequest = TInferValidationSchemaInput<typeof UpdateCompanyRequestSchema> & {
|
|
1299
1439
|
stateCode?: TUSStateCode;
|
|
1300
|
-
postalCode?: string;
|
|
1301
1440
|
companyType?: ICompany["companyType"];
|
|
1302
|
-
|
|
1303
|
-
timezone?: string | null;
|
|
1304
|
-
imageUrl?: string | null;
|
|
1305
|
-
}
|
|
1441
|
+
};
|
|
1306
1442
|
interface IUpdateCompanyResponse extends ICompanyWithRelationshipStatus {
|
|
1307
1443
|
}
|
|
1308
|
-
|
|
1309
|
-
email: string
|
|
1444
|
+
declare const InviteUserToCompanyRequestSchema: IRuntimeValidationSchema<{
|
|
1445
|
+
email: IValidationField<string, true>;
|
|
1446
|
+
role: IValidationField<"ACCOUNT_ADMIN" | "MANAGER" | "STAFF" | "GUEST", true>;
|
|
1447
|
+
}>;
|
|
1448
|
+
type IInviteUserToCompanyRequest = TInferValidationSchemaInput<typeof InviteUserToCompanyRequestSchema> & {
|
|
1310
1449
|
role: TAccountType;
|
|
1311
|
-
}
|
|
1450
|
+
};
|
|
1312
1451
|
interface IInviteUserToCompanyResponse extends IMessageResponse {
|
|
1313
1452
|
}
|
|
1314
1453
|
interface IGetCompanyUsersRequest extends ICompanyRouteParams {
|
|
@@ -1328,10 +1467,11 @@ interface IGetCompanyUsersResponse extends ICompanyWithUsers {
|
|
|
1328
1467
|
interface IGetUserCompaniesRequest extends ICompanyUserRouteParams {
|
|
1329
1468
|
}
|
|
1330
1469
|
type IGetUserCompaniesResponse = ICompanyWithRelationshipStatus[];
|
|
1331
|
-
|
|
1332
|
-
providerCompanyId: string
|
|
1333
|
-
message
|
|
1334
|
-
}
|
|
1470
|
+
declare const InviteCompanyToCompanyRequestSchema: IRuntimeValidationSchema<{
|
|
1471
|
+
providerCompanyId: IValidationField<string, true>;
|
|
1472
|
+
message: IValidationField<string | null, false>;
|
|
1473
|
+
}>;
|
|
1474
|
+
type IInviteCompanyToCompanyRequest = TInferValidationSchemaInput<typeof InviteCompanyToCompanyRequestSchema>;
|
|
1335
1475
|
interface IInviteCompanyToCompanyResponse {
|
|
1336
1476
|
id: string;
|
|
1337
1477
|
token: string;
|
|
@@ -1387,30 +1527,9 @@ interface ICompany extends IMetaData {
|
|
|
1387
1527
|
timezone: string | null;
|
|
1388
1528
|
imageUrl: string | null;
|
|
1389
1529
|
}
|
|
1390
|
-
declare const COMPANY_RELATIONSHIP_STATUS: {
|
|
1391
|
-
readonly ACTIVE: "ACTIVE";
|
|
1392
|
-
readonly INACTIVE: "INACTIVE";
|
|
1393
|
-
readonly SUSPENDED: "SUSPENDED";
|
|
1394
|
-
};
|
|
1395
|
-
declare const INVITATION_STATUS: {
|
|
1396
|
-
readonly PENDING: "PENDING";
|
|
1397
|
-
readonly ACCEPTED: "ACCEPTED";
|
|
1398
|
-
readonly EXPIRED: "EXPIRED";
|
|
1399
|
-
readonly REVOKED: "REVOKED";
|
|
1400
|
-
readonly DECLINED: "DECLINED";
|
|
1401
|
-
};
|
|
1402
|
-
type TInvitationStatus = TRecordValue<typeof INVITATION_STATUS>;
|
|
1403
|
-
type TCompanyRelationshipStatus = TRecordValue<typeof COMPANY_RELATIONSHIP_STATUS> | typeof INVITATION_STATUS.PENDING | null;
|
|
1404
1530
|
interface ICompanyWithRelationshipStatus extends ICompany {
|
|
1405
1531
|
relationshipStatus: TCompanyRelationshipStatus;
|
|
1406
1532
|
}
|
|
1407
|
-
declare const COMPANY_TYPES: {
|
|
1408
|
-
readonly PROPERTY_MANAGEMENT: "PROPERTY_MANAGEMENT";
|
|
1409
|
-
readonly MAINTENANCE: "MAINTENANCE";
|
|
1410
|
-
readonly CLEANER: "CLEANER";
|
|
1411
|
-
readonly OTHER: "OTHER";
|
|
1412
|
-
};
|
|
1413
|
-
type TCompanyType = TRecordValue<typeof COMPANY_TYPES>;
|
|
1414
1533
|
|
|
1415
1534
|
interface IDamageReportPropertyRouteParams {
|
|
1416
1535
|
propertyId: string;
|
|
@@ -2091,43 +2210,75 @@ interface IInventoryRestockOrderItem {
|
|
|
2091
2210
|
createdAt: TDateTimeString;
|
|
2092
2211
|
}
|
|
2093
2212
|
|
|
2213
|
+
declare const PROPERTY_STATUS: {
|
|
2214
|
+
readonly ACTIVE: "ACTIVE";
|
|
2215
|
+
readonly INACTIVE: "INACTIVE";
|
|
2216
|
+
};
|
|
2217
|
+
type TPropertyStatus = TRecordValue<typeof PROPERTY_STATUS>;
|
|
2218
|
+
declare const PropertyStatusOptions: ISelectOption<TPropertyStatus>[];
|
|
2219
|
+
declare const PROPERTY_TYPES: {
|
|
2220
|
+
readonly APARTMENT: "APARTMENT";
|
|
2221
|
+
readonly COMMERCIAL: "COMMERCIAL";
|
|
2222
|
+
readonly CONDO: "CONDO";
|
|
2223
|
+
readonly DUPLEX: "DUPLEX";
|
|
2224
|
+
readonly HOUSE: "HOUSE";
|
|
2225
|
+
readonly MULTI_FAMILY: "MULTI_FAMILY";
|
|
2226
|
+
readonly OFFICE: "OFFICE";
|
|
2227
|
+
readonly RETAIL: "RETAIL";
|
|
2228
|
+
readonly TOWNHOUSE: "TOWNHOUSE";
|
|
2229
|
+
readonly VACATION_RENTAL: "VACATION_RENTAL";
|
|
2230
|
+
readonly WAREHOUSE: "WAREHOUSE";
|
|
2231
|
+
};
|
|
2232
|
+
type TPropertyType = TRecordValue<typeof PROPERTY_TYPES>;
|
|
2233
|
+
declare const PropertyTypeOptions: ISelectOption<TPropertyType>[];
|
|
2234
|
+
|
|
2094
2235
|
interface IPropertyIdParams {
|
|
2095
2236
|
propertyId: string;
|
|
2096
2237
|
}
|
|
2097
2238
|
interface ICompanyIdParams {
|
|
2098
2239
|
companyId: string;
|
|
2099
2240
|
}
|
|
2100
|
-
|
|
2101
|
-
companyId: string
|
|
2102
|
-
displayName: string
|
|
2241
|
+
declare const CreatePropertyRequestSchema: IRuntimeValidationSchema<{
|
|
2242
|
+
companyId: IValidationField<string, true>;
|
|
2243
|
+
displayName: IValidationField<string, true>;
|
|
2244
|
+
propertyType: IValidationField<"APARTMENT" | "COMMERCIAL" | "CONDO" | "DUPLEX" | "HOUSE" | "MULTI_FAMILY" | "OFFICE" | "RETAIL" | "TOWNHOUSE" | "VACATION_RENTAL" | "WAREHOUSE", true>;
|
|
2245
|
+
status: IValidationField<"ACTIVE" | "INACTIVE" | null, false>;
|
|
2246
|
+
addressLine1: IValidationField<string, true>;
|
|
2247
|
+
addressLine2: IValidationField<string | null, false>;
|
|
2248
|
+
city: IValidationField<string, true>;
|
|
2249
|
+
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>;
|
|
2250
|
+
postalCode: IValidationField<string, true>;
|
|
2251
|
+
country: IValidationField<string | null, false>;
|
|
2252
|
+
sqft: IValidationField<number | null, false>;
|
|
2253
|
+
timezone: IValidationField<string | null, false>;
|
|
2254
|
+
imageUrl: IValidationField<string | null, false>;
|
|
2255
|
+
specialNotes: IValidationField<string | null, false>;
|
|
2256
|
+
}>;
|
|
2257
|
+
type ICreatePropertyRequest = TInferValidationSchemaInput<typeof CreatePropertyRequestSchema> & {
|
|
2103
2258
|
propertyType: TPropertyType;
|
|
2104
|
-
status?: TPropertyStatus;
|
|
2105
|
-
addressLine1: string;
|
|
2106
|
-
addressLine2?: string;
|
|
2107
|
-
city: string;
|
|
2259
|
+
status?: TPropertyStatus | null;
|
|
2108
2260
|
stateCode: TUSStateCode;
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2261
|
+
};
|
|
2262
|
+
declare const UpdatePropertyRequestSchema: IRuntimeValidationSchema<{
|
|
2263
|
+
displayName: IValidationField<string, false>;
|
|
2264
|
+
propertyType: IValidationField<"APARTMENT" | "COMMERCIAL" | "CONDO" | "DUPLEX" | "HOUSE" | "MULTI_FAMILY" | "OFFICE" | "RETAIL" | "TOWNHOUSE" | "VACATION_RENTAL" | "WAREHOUSE" | null, false>;
|
|
2265
|
+
status: IValidationField<"ACTIVE" | "INACTIVE" | null, false>;
|
|
2266
|
+
addressLine1: IValidationField<string, false>;
|
|
2267
|
+
addressLine2: IValidationField<string | null, false>;
|
|
2268
|
+
city: IValidationField<string, false>;
|
|
2269
|
+
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>;
|
|
2270
|
+
postalCode: IValidationField<string, false>;
|
|
2271
|
+
country: IValidationField<string | null, false>;
|
|
2272
|
+
sqft: IValidationField<number | null, false>;
|
|
2273
|
+
timezone: IValidationField<string | null, false>;
|
|
2274
|
+
imageUrl: IValidationField<string | null, false>;
|
|
2275
|
+
specialNotes: IValidationField<string | null, false>;
|
|
2276
|
+
}>;
|
|
2277
|
+
type IUpdatePropertyRequest = TInferValidationSchemaInput<typeof UpdatePropertyRequestSchema> & {
|
|
2118
2278
|
propertyType?: TPropertyType | null;
|
|
2119
2279
|
status?: TPropertyStatus | null;
|
|
2120
|
-
addressLine1?: string;
|
|
2121
|
-
addressLine2?: string | null;
|
|
2122
|
-
city?: string;
|
|
2123
2280
|
stateCode?: TUSStateCode;
|
|
2124
|
-
|
|
2125
|
-
country?: string | null;
|
|
2126
|
-
sqft?: number | null;
|
|
2127
|
-
timezone?: string | null;
|
|
2128
|
-
imageUrl?: string | null;
|
|
2129
|
-
specialNotes?: string | null;
|
|
2130
|
-
}
|
|
2281
|
+
};
|
|
2131
2282
|
interface IGetPropertiesRequest {
|
|
2132
2283
|
companyId?: string;
|
|
2133
2284
|
}
|
|
@@ -2144,15 +2295,16 @@ interface IUpdatePropertyResponse extends IPropertyDetail {
|
|
|
2144
2295
|
}
|
|
2145
2296
|
interface IDeletePropertyResponse extends IMessageResponse {
|
|
2146
2297
|
}
|
|
2147
|
-
|
|
2148
|
-
entryInstructions
|
|
2149
|
-
accessCode
|
|
2150
|
-
wifiName
|
|
2151
|
-
wifiPassword
|
|
2152
|
-
alarmCode
|
|
2153
|
-
parkingInfo
|
|
2154
|
-
specialNotes
|
|
2155
|
-
}
|
|
2298
|
+
declare const UpdatePropertyAccessInformationRequestSchema: IRuntimeValidationSchema<{
|
|
2299
|
+
entryInstructions: IValidationField<string | null, false>;
|
|
2300
|
+
accessCode: IValidationField<string | null, false>;
|
|
2301
|
+
wifiName: IValidationField<string | null, false>;
|
|
2302
|
+
wifiPassword: IValidationField<string | null, false>;
|
|
2303
|
+
alarmCode: IValidationField<string | null, false>;
|
|
2304
|
+
parkingInfo: IValidationField<string | null, false>;
|
|
2305
|
+
specialNotes: IValidationField<string | null, false>;
|
|
2306
|
+
}>;
|
|
2307
|
+
type IUpdatePropertyAccessInformationRequest = TInferValidationSchemaInput<typeof UpdatePropertyAccessInformationRequestSchema>;
|
|
2156
2308
|
interface IUpdatePropertyAccessInformationResponse extends IPropertyAccessInformation {
|
|
2157
2309
|
}
|
|
2158
2310
|
interface IGetPropertyAccessInformationRequest extends IPropertyIdParams {
|
|
@@ -2164,27 +2316,6 @@ interface IGetPropertiesByCompanyIdRequest extends ICompanyIdParams {
|
|
|
2164
2316
|
}
|
|
2165
2317
|
type IGetPropertiesByCompanyIdResponse = IProperty[];
|
|
2166
2318
|
|
|
2167
|
-
declare const PROPERTY_STATUS: {
|
|
2168
|
-
readonly ACTIVE: "ACTIVE";
|
|
2169
|
-
readonly INACTIVE: "INACTIVE";
|
|
2170
|
-
};
|
|
2171
|
-
type TPropertyStatus = TRecordValue<typeof PROPERTY_STATUS>;
|
|
2172
|
-
declare const PropertyStatusOptions: ISelectOption<TPropertyStatus>[];
|
|
2173
|
-
declare const PROPERTY_TYPES: {
|
|
2174
|
-
readonly APARTMENT: "APARTMENT";
|
|
2175
|
-
readonly COMMERCIAL: "COMMERCIAL";
|
|
2176
|
-
readonly CONDO: "CONDO";
|
|
2177
|
-
readonly DUPLEX: "DUPLEX";
|
|
2178
|
-
readonly HOUSE: "HOUSE";
|
|
2179
|
-
readonly MULTI_FAMILY: "MULTI_FAMILY";
|
|
2180
|
-
readonly OFFICE: "OFFICE";
|
|
2181
|
-
readonly RETAIL: "RETAIL";
|
|
2182
|
-
readonly TOWNHOUSE: "TOWNHOUSE";
|
|
2183
|
-
readonly VACATION_RENTAL: "VACATION_RENTAL";
|
|
2184
|
-
readonly WAREHOUSE: "WAREHOUSE";
|
|
2185
|
-
};
|
|
2186
|
-
type TPropertyType = TRecordValue<typeof PROPERTY_TYPES>;
|
|
2187
|
-
declare const PropertyTypeOptions: ISelectOption<TPropertyType>[];
|
|
2188
2319
|
interface IProperty extends IMetaData {
|
|
2189
2320
|
id: string;
|
|
2190
2321
|
displayName: string;
|
|
@@ -2297,20 +2428,41 @@ interface IJobFilterValues {
|
|
|
2297
2428
|
role: TServiceType;
|
|
2298
2429
|
}
|
|
2299
2430
|
|
|
2431
|
+
declare const ROOM_TYPE: {
|
|
2432
|
+
readonly BEDROOM: "BEDROOM";
|
|
2433
|
+
readonly BATHROOM: "BATHROOM";
|
|
2434
|
+
readonly KITCHEN: "KITCHEN";
|
|
2435
|
+
readonly LIVING_ROOM: "LIVING_ROOM";
|
|
2436
|
+
readonly DINING_ROOM: "DINING_ROOM";
|
|
2437
|
+
readonly OFFICE: "OFFICE";
|
|
2438
|
+
readonly GARAGE: "GARAGE";
|
|
2439
|
+
readonly LAUNDRY_ROOM: "LAUNDRY_ROOM";
|
|
2440
|
+
readonly BASEMENT: "BASEMENT";
|
|
2441
|
+
readonly ATTIC: "ATTIC";
|
|
2442
|
+
readonly BALCONY: "BALCONY";
|
|
2443
|
+
readonly PORCH: "PORCH";
|
|
2444
|
+
readonly GARDEN: "GARDEN";
|
|
2445
|
+
readonly OTHER: "OTHER";
|
|
2446
|
+
};
|
|
2447
|
+
type TRoomType = TRecordValue<typeof ROOM_TYPE>;
|
|
2448
|
+
|
|
2300
2449
|
interface IRoomPropertyRouteParams {
|
|
2301
2450
|
propertyId: string;
|
|
2302
2451
|
}
|
|
2303
2452
|
interface IRoomRouteParams {
|
|
2304
2453
|
roomId: string;
|
|
2305
2454
|
}
|
|
2306
|
-
|
|
2307
|
-
propertyId: string
|
|
2308
|
-
displayName: string
|
|
2309
|
-
description
|
|
2310
|
-
checklistTemplateId
|
|
2455
|
+
declare const CreateRoomRequestSchema: IRuntimeValidationSchema<{
|
|
2456
|
+
propertyId: IValidationField<string, true>;
|
|
2457
|
+
displayName: IValidationField<string, true>;
|
|
2458
|
+
description: IValidationField<string | null, false>;
|
|
2459
|
+
checklistTemplateId: IValidationField<string | null, false>;
|
|
2460
|
+
roomType: IValidationField<"OTHER" | "OFFICE" | "BEDROOM" | "BATHROOM" | "KITCHEN" | "LIVING_ROOM" | "DINING_ROOM" | "GARAGE" | "LAUNDRY_ROOM" | "BASEMENT" | "ATTIC" | "BALCONY" | "PORCH" | "GARDEN" | null, false>;
|
|
2461
|
+
heroPhoto: IValidationField<string | null, false>;
|
|
2462
|
+
}>;
|
|
2463
|
+
type ICreateRoomRequest = TInferValidationSchemaInput<typeof CreateRoomRequestSchema> & {
|
|
2311
2464
|
roomType?: IRoom["roomType"];
|
|
2312
|
-
|
|
2313
|
-
}
|
|
2465
|
+
};
|
|
2314
2466
|
interface ICreateRoomResponse extends IRoom {
|
|
2315
2467
|
}
|
|
2316
2468
|
interface IGetRoomsRequest {
|
|
@@ -2326,13 +2478,16 @@ interface IGetRoomByIdRequest extends IRoomRouteParams {
|
|
|
2326
2478
|
}
|
|
2327
2479
|
interface IGetRoomByIdResponse extends IRoom {
|
|
2328
2480
|
}
|
|
2329
|
-
|
|
2330
|
-
displayName
|
|
2331
|
-
description
|
|
2332
|
-
checklistTemplateId
|
|
2481
|
+
declare const UpdateRoomRequestSchema: IRuntimeValidationSchema<{
|
|
2482
|
+
displayName: IValidationField<string, false>;
|
|
2483
|
+
description: IValidationField<string | null, false>;
|
|
2484
|
+
checklistTemplateId: IValidationField<string | null, false>;
|
|
2485
|
+
roomType: IValidationField<"OTHER" | "OFFICE" | "BEDROOM" | "BATHROOM" | "KITCHEN" | "LIVING_ROOM" | "DINING_ROOM" | "GARAGE" | "LAUNDRY_ROOM" | "BASEMENT" | "ATTIC" | "BALCONY" | "PORCH" | "GARDEN" | null, false>;
|
|
2486
|
+
heroPhoto: IValidationField<string | null, false>;
|
|
2487
|
+
}>;
|
|
2488
|
+
type IUpdateRoomRequest = TInferValidationSchemaInput<typeof UpdateRoomRequestSchema> & {
|
|
2333
2489
|
roomType?: IRoom["roomType"];
|
|
2334
|
-
|
|
2335
|
-
}
|
|
2490
|
+
};
|
|
2336
2491
|
interface IUpdateRoomResponse extends IRoom {
|
|
2337
2492
|
}
|
|
2338
2493
|
interface IDeleteRoomRequest extends IRoomRouteParams {
|
|
@@ -2340,23 +2495,6 @@ interface IDeleteRoomRequest extends IRoomRouteParams {
|
|
|
2340
2495
|
interface IDeleteRoomResponse extends IMessageResponse {
|
|
2341
2496
|
}
|
|
2342
2497
|
|
|
2343
|
-
declare const ROOM_TYPE: {
|
|
2344
|
-
readonly BEDROOM: "BEDROOM";
|
|
2345
|
-
readonly BATHROOM: "BATHROOM";
|
|
2346
|
-
readonly KITCHEN: "KITCHEN";
|
|
2347
|
-
readonly LIVING_ROOM: "LIVING_ROOM";
|
|
2348
|
-
readonly DINING_ROOM: "DINING_ROOM";
|
|
2349
|
-
readonly OFFICE: "OFFICE";
|
|
2350
|
-
readonly GARAGE: "GARAGE";
|
|
2351
|
-
readonly LAUNDRY_ROOM: "LAUNDRY_ROOM";
|
|
2352
|
-
readonly BASEMENT: "BASEMENT";
|
|
2353
|
-
readonly ATTIC: "ATTIC";
|
|
2354
|
-
readonly BALCONY: "BALCONY";
|
|
2355
|
-
readonly PORCH: "PORCH";
|
|
2356
|
-
readonly GARDEN: "GARDEN";
|
|
2357
|
-
readonly OTHER: "OTHER";
|
|
2358
|
-
};
|
|
2359
|
-
type TRoomType = TRecordValue<typeof ROOM_TYPE>;
|
|
2360
2498
|
interface IRoom extends IMetaData {
|
|
2361
2499
|
id: string;
|
|
2362
2500
|
displayName: string;
|
|
@@ -2972,4 +3110,4 @@ type Failure<E> = {
|
|
|
2972
3110
|
type Result<T, E = unknown> = Success<T> | Failure<E>;
|
|
2973
3111
|
declare const tryCatch: <T, E = unknown>(callback: () => T | Promise<T>) => Promise<Result<T, E>>;
|
|
2974
3112
|
|
|
2975
|
-
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 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 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 };
|
|
3113
|
+
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 TMonths, 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 TWeekDay, type TWeekDayLetter, type TWeekDayShortLabel, type TWorkOrderPriority, type TWorkOrderStatus, type TWorkSessionStatus, type TurndownObject, US_JURISDICTIONS, UnitedStatesJurisdictionOptions, UpdateCompanyRequestSchema, UpdateCurrentUserRequestSchema, UpdatePropertyAccessInformationRequestSchema, UpdatePropertyRequestSchema, UpdateRoomRequestSchema, UpdateUserRequestSchema, WEEK_DAY, WEEK_DAY_LETTER, WEEK_DAY_SHORT_LABEL, 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 };
|