@turndown/library 0.1.52 → 0.1.54

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.ts CHANGED
@@ -113,7 +113,7 @@ declare const addWeeks: (date: TDateInput, weeks: number) => Date;
113
113
  declare const subtractWeeks: (date: TDateInput, weeks: number) => Date;
114
114
 
115
115
  /**
116
- * Represents the pagination IMetaData for a paginated response.
116
+ * Pagination metadata for a paginated response.
117
117
  */
118
118
  interface IPagingResult {
119
119
  hasNextPage: boolean;
@@ -121,34 +121,67 @@ interface IPagingResult {
121
121
  totalRecords: number;
122
122
  }
123
123
  /**
124
- * A generic wrapper that combines data with pagination information.
125
- * @template T - The type of data being paginated
124
+ * Generic wrapper for paginated data.
126
125
  */
127
- interface IDataWithPagingResult<T> {
128
- data: T;
126
+ interface IDataWithPagingResult<TData> {
127
+ data: TData;
129
128
  pagination: IPagingResult;
130
129
  }
130
+ declare const SortDirection: {
131
+ readonly Asc: "Asc";
132
+ readonly Desc: "Desc";
133
+ };
134
+ type TSortDirection = (typeof SortDirection)[keyof typeof SortDirection];
131
135
  /**
132
- * Defines a sorting condition for query results.
136
+ * Sorting condition for query results.
133
137
  */
134
138
  interface ISortCondition {
135
139
  name: string;
136
- direction: "ASC" | "DESC";
137
- }
138
- /**
139
- * Defines a filter condition for querying data.
140
- * Only one of valueString, valueNumber, or valueBoolean should be provided based on the field type.
141
- */
142
- interface IFilterCondition {
140
+ direction: TSortDirection;
141
+ }
142
+ declare const FilterCondition: {
143
+ readonly Equal: "=";
144
+ readonly GreaterThan: ">";
145
+ readonly LessThan: "<";
146
+ readonly NotEqual: "!=";
147
+ readonly Like: "LIKE";
148
+ readonly In: "IN";
149
+ readonly GreaterThanOrEqual: ">=";
150
+ readonly LessThanOrEqual: "<=";
151
+ };
152
+ type TFilterCondition = (typeof FilterCondition)[keyof typeof FilterCondition];
153
+ interface IFilterConditionBase {
143
154
  name: string;
144
- condition: "=" | ">" | "<" | "!=" | "LIKE" | "IN" | ">=" | "<=";
145
- valueString?: string;
146
- valueNumber?: number;
147
- valueBoolean?: boolean;
155
+ condition: TFilterCondition;
148
156
  useAnd?: boolean;
149
157
  }
158
+ interface IStringFilterCondition extends IFilterConditionBase {
159
+ valueString: string;
160
+ valueNumber?: never;
161
+ valueBoolean?: never;
162
+ }
163
+ interface INumberFilterCondition extends IFilterConditionBase {
164
+ valueString?: never;
165
+ valueNumber: number;
166
+ valueBoolean?: never;
167
+ }
168
+ interface IBooleanFilterCondition extends IFilterConditionBase {
169
+ valueString?: never;
170
+ valueNumber?: never;
171
+ valueBoolean: boolean;
172
+ }
173
+ /**
174
+ * Filter condition for querying data.
175
+ *
176
+ * Exactly one value field should be provided.
177
+ */
178
+ type TFilterConditionValue = IStringFilterCondition | INumberFilterCondition | IBooleanFilterCondition;
150
179
  /**
151
- * Represents a request for paginated data with optional sorting and filtering.
180
+ * Kept as an exported alias to preserve the existing public API name.
181
+ */
182
+ type IFilterCondition = TFilterConditionValue;
183
+ /**
184
+ * Request shape for paginated data with optional sorting and filtering.
152
185
  */
153
186
  interface IPaginationRequest {
154
187
  page: number;
@@ -156,9 +189,10 @@ interface IPaginationRequest {
156
189
  sort?: ISortCondition[];
157
190
  filters?: IFilterCondition[];
158
191
  }
159
- declare const createPagingObject: (page: number, size: number, sort?: ISortCondition[], filters?: IFilterCondition[]) => {
192
+ interface IPagingObject {
160
193
  pagination: IPaginationRequest;
161
- };
194
+ }
195
+ declare const createPagingObject: (page: number, size: number, sort?: ISortCondition[], filters?: IFilterCondition[]) => IPagingObject;
162
196
 
163
197
  type TRecord = Record<string, unknown>;
164
198
  type TSortableValue = string | number | bigint | boolean | Date | null | undefined;
@@ -304,7 +338,7 @@ declare const resetPagination: (sort?: ISortCondition[], filters?: IFilterCondit
304
338
  page: number;
305
339
  size: number;
306
340
  sort: ISortCondition[];
307
- filters: IFilterCondition[];
341
+ filters: TFilterConditionValue[];
308
342
  };
309
343
  /**
310
344
  * Format a string of digits into a U.S. phone number.
@@ -458,14 +492,19 @@ declare const flatten: (value: TRecord, prefix?: string) => TRecord;
458
492
  declare const unflatten: (value: TRecord) => TRecord;
459
493
 
460
494
  type TJsonPrimitive = string | number | boolean | null;
461
- type TJsonValue = TJsonPrimitive | TJsonValue[] | {
495
+ type TJsonObject = {
462
496
  [key: string]: TJsonValue;
463
497
  };
498
+ type TJsonValue = TJsonPrimitive | TJsonValue[] | TJsonObject;
464
499
  type TUnknownRecord = Record<string, unknown>;
465
- type TurndownObject<TObject extends object = TUnknownRecord> = {
466
- [TKey in keyof TObject]: TObject[TKey];
467
- };
500
+ /**
501
+ * Serialized ISO-8601 date/time value returned by API JSON contracts.
502
+ */
503
+ type TDateTimeString = string;
504
+ type TurndownObject<TObject extends object = TUnknownRecord> = TObject;
468
505
  type TEmptyObject = Record<string, never>;
506
+ type IEmptyRouteRequest = TEmptyObject;
507
+ type IEmptyRouteParams = TEmptyObject;
469
508
  interface IMessageResponse {
470
509
  message: string;
471
510
  }
@@ -475,15 +514,13 @@ interface ISuccessResponse {
475
514
  interface ICountResponse {
476
515
  count: number;
477
516
  }
478
- interface IEmptyRouteParams {
479
- }
480
517
  interface IMetaData {
481
- createdAt: Date;
482
- updatedAt: Date;
483
- deletedAt?: Date;
518
+ createdAt: TDateTimeString;
519
+ updatedAt: TDateTimeString;
520
+ deletedAt: TDateTimeString | null;
484
521
  }
485
- type TRecordValue<T> = T[keyof T];
486
- type TRecordKeys<T> = [keyof T];
522
+ type TRecordValue<TRecord extends object> = TRecord[keyof TRecord];
523
+ type TRecordKeys<TRecord extends object> = keyof TRecord;
487
524
  interface IVersion {
488
525
  major: number;
489
526
  minor: number;
@@ -494,74 +531,22 @@ interface ISelectOption<TValue extends string = string> {
494
531
  label: string;
495
532
  value: TValue;
496
533
  }
497
- type TMode = "CREATE" | "EDIT" | "DELETE" | "DETAILS" | null;
534
+ declare const MODE: {
535
+ readonly Create: "Create";
536
+ readonly Edit: "Edit";
537
+ readonly Delete: "Delete";
538
+ readonly Details: "Details";
539
+ };
540
+ type TMode = TRecordValue<typeof MODE> | null;
498
541
  declare const IMAGE_ENTITY: {
499
- readonly USER_PROFILE: "user_profile";
500
- readonly PROPERTY: "property";
501
- readonly PROPERTY_ROOM: "property_room";
502
- readonly MAINTENANCE_TICKET: "maintenance_ticket";
503
- readonly WORK_REPORT: "work_report";
542
+ readonly USER_PROFILE: "USER_PROFILE";
543
+ readonly PROPERTY: "PROPERTY";
544
+ readonly PROPERTY_ROOM: "PROPERTY_ROOM";
545
+ readonly MAINTENANCE_TICKET: "MAINTENANCE_TICKET";
546
+ readonly WORK_REPORT: "WORK_REPORT";
504
547
  };
505
548
  type TImageEntityType = TRecordValue<typeof IMAGE_ENTITY>;
506
- declare const US_STATES_CODE: {
507
- readonly AL: "AL";
508
- readonly AK: "AK";
509
- readonly AZ: "AZ";
510
- readonly AR: "AR";
511
- readonly CA: "CA";
512
- readonly CO: "CO";
513
- readonly CT: "CT";
514
- readonly DE: "DE";
515
- readonly FL: "FL";
516
- readonly GA: "GA";
517
- readonly HI: "HI";
518
- readonly ID: "ID";
519
- readonly IL: "IL";
520
- readonly IN: "IN";
521
- readonly IA: "IA";
522
- readonly KS: "KS";
523
- readonly KY: "KY";
524
- readonly LA: "LA";
525
- readonly ME: "ME";
526
- readonly MD: "MD";
527
- readonly MA: "MA";
528
- readonly MI: "MI";
529
- readonly MN: "MN";
530
- readonly MS: "MS";
531
- readonly MO: "MO";
532
- readonly MT: "MT";
533
- readonly NE: "NE";
534
- readonly NV: "NV";
535
- readonly NH: "NH";
536
- readonly NJ: "NJ";
537
- readonly NM: "NM";
538
- readonly NY: "NY";
539
- readonly NC: "NC";
540
- readonly ND: "ND";
541
- readonly OH: "OH";
542
- readonly OK: "OK";
543
- readonly OR: "OR";
544
- readonly PA: "PA";
545
- readonly RI: "RI";
546
- readonly SC: "SC";
547
- readonly SD: "SD";
548
- readonly TN: "TN";
549
- readonly TX: "TX";
550
- readonly UT: "UT";
551
- readonly VT: "VT";
552
- readonly VA: "VA";
553
- readonly WA: "WA";
554
- readonly WV: "WV";
555
- readonly WI: "WI";
556
- readonly WY: "WY";
557
- readonly DC: "DC";
558
- readonly PR: "PR";
559
- readonly GU: "GU";
560
- readonly VI: "VI";
561
- readonly AS: "AS";
562
- readonly MP: "MP";
563
- };
564
- type TUSStateCode = TRecordValue<typeof US_STATES_CODE>;
549
+ type TUSStateCode = TRecordKeys<typeof US_JURISDICTIONS>;
565
550
  declare const US_JURISDICTIONS: {
566
551
  readonly AL: "Alabama";
567
552
  readonly AK: "Alaska";
@@ -621,33 +606,29 @@ declare const US_JURISDICTIONS: {
621
606
  readonly MP: "Northern Mariana Islands";
622
607
  };
623
608
  type TUSJurisdiction = TRecordValue<typeof US_JURISDICTIONS>;
624
- declare const UnitedStatesJurisdictionOptions: ISelectOption<TUSJurisdiction>[];
625
609
  declare const STATUS: {
626
- readonly Pending: "Pending";
627
- readonly InProgress: "InProgress";
628
- readonly Completed: "Completed";
629
- readonly Overdue: "Overdue";
630
- readonly Active: "Active";
631
- readonly Inactive: "Inactive";
610
+ readonly PENDING: "PENDING";
611
+ readonly IN_PROGRESS: "IN_PROGRESS";
612
+ readonly COMPLETED: "COMPLETED";
613
+ readonly OVERDUE: "OVERDUE";
614
+ readonly ACTIVE: "ACTIVE";
615
+ readonly INACTIVE: "INACTIVE";
632
616
  };
633
617
  type TStatus = TRecordValue<typeof STATUS>;
634
- declare const StatusOptions: ISelectOption<TStatus>[];
635
618
  declare const SEVERITY: {
636
- readonly Low: "Low";
637
- readonly Medium: "Medium";
638
- readonly High: "High";
619
+ readonly LOW: "LOW";
620
+ readonly MEDIUM: "MEDIUM";
621
+ readonly HIGH: "HIGH";
639
622
  };
640
623
  type TSeverity = TRecordValue<typeof SEVERITY>;
641
- declare const SeverityOptions: ISelectOption<TSeverity>[];
642
624
  declare const SERVICE_TYPES: {
643
- readonly Property: "Property";
644
- readonly Cleaning: "Cleaning";
645
- readonly Maintenance: "Maintenance";
646
- readonly Inspection: "Inspections";
647
- readonly Other: "Other";
625
+ readonly PROPERTY: "PROPERTY";
626
+ readonly CLEANING: "CLEANING";
627
+ readonly MAINTENANCE: "MAINTENANCE";
628
+ readonly INSPECTION: "INSPECTION";
629
+ readonly OTHER: "OTHER";
648
630
  };
649
631
  type TServiceType = TRecordValue<typeof SERVICE_TYPES>;
650
- declare const ServiceTypeOptions: ISelectOption<TServiceType>[];
651
632
  declare const MONTHS: readonly ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
652
633
  type TMonth = (typeof MONTHS)[number];
653
634
  interface IWeekDay {
@@ -657,43 +638,84 @@ interface IWeekDay {
657
638
  letter: string;
658
639
  isToday: boolean;
659
640
  }
641
+ declare const UnitedStatesJurisdictionOptions: ISelectOption<TRecordValue<{
642
+ readonly AL: "Alabama";
643
+ readonly AK: "Alaska";
644
+ readonly AZ: "Arizona";
645
+ readonly AR: "Arkansas";
646
+ readonly CA: "California";
647
+ readonly CO: "Colorado";
648
+ readonly CT: "Connecticut";
649
+ readonly DE: "Delaware";
650
+ readonly FL: "Florida";
651
+ readonly GA: "Georgia";
652
+ readonly HI: "Hawaii";
653
+ readonly ID: "Idaho";
654
+ readonly IL: "Illinois";
655
+ readonly IN: "Indiana";
656
+ readonly IA: "Iowa";
657
+ readonly KS: "Kansas";
658
+ readonly KY: "Kentucky";
659
+ readonly LA: "Louisiana";
660
+ readonly ME: "Maine";
661
+ readonly MD: "Maryland";
662
+ readonly MA: "Massachusetts";
663
+ readonly MI: "Michigan";
664
+ readonly MN: "Minnesota";
665
+ readonly MS: "Mississippi";
666
+ readonly MO: "Missouri";
667
+ readonly MT: "Montana";
668
+ readonly NE: "Nebraska";
669
+ readonly NV: "Nevada";
670
+ readonly NH: "New Hampshire";
671
+ readonly NJ: "New Jersey";
672
+ readonly NM: "New Mexico";
673
+ readonly NY: "New York";
674
+ readonly NC: "North Carolina";
675
+ readonly ND: "North Dakota";
676
+ readonly OH: "Ohio";
677
+ readonly OK: "Oklahoma";
678
+ readonly OR: "Oregon";
679
+ readonly PA: "Pennsylvania";
680
+ readonly RI: "Rhode Island";
681
+ readonly SC: "South Carolina";
682
+ readonly SD: "South Dakota";
683
+ readonly TN: "Tennessee";
684
+ readonly TX: "Texas";
685
+ readonly UT: "Utah";
686
+ readonly VT: "Vermont";
687
+ readonly VA: "Virginia";
688
+ readonly WA: "Washington";
689
+ readonly WV: "West Virginia";
690
+ readonly WI: "Wisconsin";
691
+ readonly WY: "Wyoming";
692
+ readonly DC: "District of Columbia";
693
+ readonly PR: "Puerto Rico";
694
+ readonly GU: "Guam";
695
+ readonly VI: "United States Virgin Islands";
696
+ readonly AS: "American Samoa";
697
+ readonly MP: "Northern Mariana Islands";
698
+ }>>[];
699
+ declare const StatusOptions: ISelectOption<TStatus>[];
700
+ declare const SeverityOptions: ISelectOption<TSeverity>[];
701
+ declare const ServiceTypeOptions: ISelectOption<TServiceType>[];
660
702
 
661
703
  /**
662
704
  * API Response Types
663
- * Standard response structure for all API endpoints
705
+ * Standard response structure for all API endpoints.
664
706
  */
665
707
 
666
708
  declare const HTTP_METHOD: {
667
- readonly Get: "GET";
668
- readonly Post: "POST";
669
- readonly Put: "PUT";
670
- readonly Patch: "PATCH";
671
- readonly Delete: "DELETE";
709
+ readonly GET: "GET";
710
+ readonly POST: "POST";
711
+ readonly PUT: "PUT";
712
+ readonly PATCH: "PATCH";
713
+ readonly DELETE: "DELETE";
672
714
  };
673
715
  type THttpMethod = (typeof HTTP_METHOD)[keyof typeof HTTP_METHOD];
674
- interface IApiError<TDetails extends object = TurndownObject> {
675
- message: string;
676
- code?: string;
677
- details?: TDetails;
678
- }
679
- interface IApiMeta {
680
- timestamp: string;
681
- version: string;
682
- environment: string;
683
- requestId?: string;
684
- }
685
- interface IApiResponse<TData = TurndownObject> {
686
- success: boolean;
687
- data?: TData | null;
688
- error?: IApiError | null;
689
- meta?: IApiMeta;
690
- }
691
- type TApiResponse<T> = {
692
- data: T;
693
- };
694
716
  /**
695
717
  * Error Codes
696
- * Standardized error codes used across the platform
718
+ * Standardized error codes used across the platform.
697
719
  */
698
720
  declare const ERROR_CODES: {
699
721
  readonly BAD_REQUEST: "BAD_REQUEST";
@@ -706,29 +728,48 @@ declare const ERROR_CODES: {
706
728
  readonly NOT_FOUND: "NOT_FOUND";
707
729
  readonly CONFLICT: "CONFLICT";
708
730
  readonly ALREADY_EXISTS: "ALREADY_EXISTS";
709
- readonly RATE_LIMIT: "RATE_LIMIT";
710
731
  readonly RATE_LIMIT_EXCEEDED: "RATE_LIMIT_EXCEEDED";
711
732
  readonly INTERNAL_ERROR: "INTERNAL_ERROR";
712
733
  readonly DATABASE_ERROR: "DATABASE_ERROR";
734
+ readonly NOT_IMPLEMENTED: "NOT_IMPLEMENTED";
713
735
  };
714
736
  type TErrorCode = (typeof ERROR_CODES)[keyof typeof ERROR_CODES];
715
737
  /**
716
738
  * HTTP Status Codes
717
- * Common status codes used in responses
739
+ * Common status codes used in API responses.
718
740
  */
719
741
  declare const HTTP_STATUS: {
720
- readonly OK: 200;
721
- readonly CREATED: 201;
722
- readonly NO_CONTENT: 204;
723
- readonly BAD_REQUEST: 400;
724
- readonly UNAUTHORIZED: 401;
725
- readonly FORBIDDEN: 403;
726
- readonly NOT_FOUND: 404;
727
- readonly CONFLICT: 409;
728
- readonly RATE_LIMIT: 429;
729
- readonly INTERNAL_ERROR: 500;
742
+ readonly Ok: 200;
743
+ readonly Created: 201;
744
+ readonly NoContent: 204;
745
+ readonly BadRequest: 400;
746
+ readonly Unauthorized: 401;
747
+ readonly Forbidden: 403;
748
+ readonly NotFound: 404;
749
+ readonly Conflict: 409;
750
+ readonly UnprocessableEntity: 422;
751
+ readonly TooManyRequests: 429;
752
+ readonly InternalError: 500;
730
753
  };
731
754
  type THttpStatusCode = (typeof HTTP_STATUS)[keyof typeof HTTP_STATUS];
755
+ type TApiErrorDetails = TJsonValue | undefined;
756
+ interface IApiError<TDetails = TApiErrorDetails> {
757
+ message: string;
758
+ code?: TErrorCode;
759
+ details?: TDetails;
760
+ }
761
+ interface IApiMeta {
762
+ timestamp: TDateTimeString;
763
+ version: string;
764
+ environment: string;
765
+ requestId?: string;
766
+ }
767
+ interface IApiResponse<TData = null, TErrorDetails = TApiErrorDetails> {
768
+ success: boolean;
769
+ data?: TData | null;
770
+ error?: IApiError<TErrorDetails> | null;
771
+ meta?: IApiMeta;
772
+ }
732
773
 
733
774
  interface IUserIdParams {
734
775
  id: string;
@@ -736,8 +777,7 @@ interface IUserIdParams {
736
777
  interface IGetUserResponse {
737
778
  user: IUserSafe | null;
738
779
  }
739
- interface IGetCurrentUserRequest {
740
- }
780
+ type IGetCurrentUserRequest = IEmptyRouteRequest;
741
781
  interface IGetCurrentUserResponse extends IGetUserResponse {
742
782
  }
743
783
  interface IGetUserByIdRequest extends IUserIdParams {
@@ -749,60 +789,37 @@ interface IGetUserByEmailRequest {
749
789
  }
750
790
  interface IGetUserByEmailResponse extends IGetUserResponse {
751
791
  }
752
- interface IGetCleanersRequest {
753
- }
754
- interface IGetCleanersResponse {
755
- cleaners: IUserSafe[];
792
+ type IGetStaffRequest = IEmptyRouteRequest;
793
+ interface IGetStaffResponse {
794
+ staff: IUserSafe[];
756
795
  }
757
796
  interface IUpdateUserRequest {
758
797
  firstName?: string;
759
- lastName?: string;
760
- mi?: string;
761
- username?: string;
798
+ lastName?: string | null;
799
+ mi?: string | null;
800
+ username?: string | null;
762
801
  email?: string;
763
- phoneNumber?: string;
764
- phoneFormat?: string;
765
- preferredLanguage?: TLanguage;
802
+ phoneNumber?: string | null;
803
+ phoneFormat?: string | null;
804
+ preferredLanguage?: IUserSafe["preferredLanguage"];
766
805
  }
767
806
  interface IUpdateUserResponse {
768
807
  user: IUserSafe;
769
808
  }
770
- interface IDeleteUserRequest {
771
- }
772
- interface IDeleteUserResponse {
773
- message: string;
809
+ type IDeleteUserRequest = IEmptyRouteRequest;
810
+ interface IDeleteUserResponse extends IMessageResponse {
774
811
  }
775
812
  interface IGetUsersByAccountTypeRequest {
776
813
  accountType: TAccountType;
777
814
  }
778
-
779
- interface IUser extends IMetaData {
780
- id: string;
781
- firstName: string;
782
- lastName?: string;
783
- mi?: string;
784
- username?: string;
785
- email: string;
786
- profilePhoto?: string;
787
- passwordHash?: string;
788
- loginAttempts?: number;
789
- locked?: boolean;
790
- passwordLastReset?: string;
791
- passwordResetRequired?: boolean;
792
- lastLogin?: string;
793
- accountType: TAccountType;
794
- status: TAccountStatus;
795
- phoneNumber?: string;
796
- phoneFormat?: string;
797
- preferredLanguage?: TLanguage;
798
- companyId?: string;
799
- biometrics?: string;
800
- }
801
- interface IUserSafe extends Omit<IUser, "passwordHash" | "loginAttempts" | "biometrics"> {
815
+ interface IGetUsersByAccountTypeResponse {
816
+ users: IUserSafe[];
802
817
  }
818
+
803
819
  declare const ACCOUNT_TYPE: {
804
820
  readonly TURNDOWN_ADMIN: "TURNDOWN_ADMIN";
805
821
  readonly ACCOUNT_ADMIN: "ACCOUNT_ADMIN";
822
+ readonly MANAGER: "MANAGER";
806
823
  readonly STAFF: "STAFF";
807
824
  readonly GUEST: "GUEST";
808
825
  };
@@ -821,6 +838,28 @@ declare const LANGUAGE: {
821
838
  readonly GERMAN: "GERMAN";
822
839
  };
823
840
  type TLanguage = TRecordValue<typeof LANGUAGE>;
841
+ interface IUser extends IMetaData {
842
+ readonly id: string;
843
+ firstName: string;
844
+ lastName: string | null;
845
+ mi: string | null;
846
+ username: string | null;
847
+ email: string;
848
+ profilePhoto: string | null;
849
+ passwordHash?: string;
850
+ loginAttempts?: number;
851
+ locked?: boolean;
852
+ passwordLastReset: TDateTimeString | null;
853
+ passwordResetRequired?: boolean;
854
+ lastLogin: TDateTimeString | null;
855
+ accountType: TAccountType;
856
+ status: TAccountStatus;
857
+ phoneNumber: string | null;
858
+ phoneFormat: string | null;
859
+ preferredLanguage: TLanguage | null;
860
+ biometrics?: string;
861
+ }
862
+ type IUserSafe = Omit<IUser, "passwordLastReset" | "lastLogin" | "passwordHash" | "loginAttempts" | "biometrics">;
824
863
  interface IDeviceInfo {
825
864
  userAgent?: string;
826
865
  ip?: string;
@@ -828,9 +867,9 @@ interface IDeviceInfo {
828
867
  }
829
868
  interface IUserSession {
830
869
  id: number;
831
- deviceInfo?: IDeviceInfo | null;
832
- createdAt: string;
833
- lastUsedAt: string;
870
+ deviceInfo: IDeviceInfo | null;
871
+ createdAt: TDateTimeString;
872
+ lastUsedAt: TDateTimeString;
834
873
  }
835
874
 
836
875
  interface IAuthSessionIdParams {
@@ -842,6 +881,20 @@ interface IAuthInvitationTokenParams {
842
881
  interface IAuthInvitationIdParams {
843
882
  invitationId: string;
844
883
  }
884
+ interface IAuthMessageResponse {
885
+ message: string;
886
+ }
887
+ interface IAuthRefreshTokenResponse extends IAuthTokenResponse {
888
+ }
889
+ interface IAuthInvitationBaseResponse {
890
+ id: string;
891
+ companyId: string;
892
+ companyName: string;
893
+ role: TAccountType;
894
+ invitedBy: string;
895
+ invitedByName: string;
896
+ expiresAt: TDateTimeString;
897
+ }
845
898
  interface IRegisterRequest {
846
899
  email: string;
847
900
  password: string;
@@ -864,42 +917,33 @@ interface IRefreshSessionRequest {
864
917
  refreshToken: string;
865
918
  deviceInfo?: IDeviceInfo;
866
919
  }
867
- interface IRefreshSessionResponse {
868
- user?: IUserSafe;
869
- accessToken: string;
870
- refreshToken: string;
871
- expiresAt?: string | null;
872
- companyId?: string;
920
+ interface IRefreshSessionResponse extends IAuthRefreshTokenResponse {
873
921
  }
874
922
  interface ILogoutRequest {
875
923
  refreshToken?: string;
876
924
  }
877
- interface ILogoutResponse {
878
- message: string;
925
+ interface ILogoutResponse extends IAuthMessageResponse {
879
926
  }
880
927
  interface ILogoutAllRequest {
881
928
  userId: string;
882
929
  }
883
- interface ILogoutAllResponse {
884
- message: string;
930
+ interface ILogoutAllResponse extends IAuthMessageResponse {
885
931
  }
886
932
  interface IGetMeRequest {
887
933
  userId: string;
888
934
  }
889
935
  interface IGetMeResponse extends IGetUserResponse {
890
936
  }
891
- interface IGetSessionsRequest {
892
- }
937
+ type IGetSessionsRequest = IEmptyRouteRequest;
893
938
  interface IGetSessionsResponse {
894
939
  id: string;
895
940
  deviceInfo: string;
896
- createdAt: string;
897
- lastUsedAt: string;
941
+ createdAt: TDateTimeString;
942
+ lastUsedAt: TDateTimeString;
898
943
  }
899
944
  interface IRevokeSessionRequest extends IAuthSessionIdParams {
900
945
  }
901
- interface IRevokeSessionResponse {
902
- message: string;
946
+ interface IRevokeSessionResponse extends IAuthMessageResponse {
903
947
  }
904
948
  interface IChangePasswordRequest {
905
949
  currentPassword: string;
@@ -910,11 +954,9 @@ interface IChangePasswordResponse extends IGetUserResponse {
910
954
  interface IForgotPasswordRequest {
911
955
  email: string;
912
956
  }
913
- interface IForgotPasswordResponse {
914
- message: string;
915
- }
916
- interface IGetLoginHistoryRequest {
957
+ interface IForgotPasswordResponse extends IAuthMessageResponse {
917
958
  }
959
+ type IGetLoginHistoryRequest = IEmptyRouteRequest;
918
960
  interface IGetLoginHistoryResponse {
919
961
  id: string;
920
962
  email: string;
@@ -922,7 +964,7 @@ interface IGetLoginHistoryResponse {
922
964
  userAgent: string;
923
965
  success: boolean;
924
966
  failureReason?: string;
925
- createdAt: Date;
967
+ createdAt: TDateTimeString;
926
968
  }
927
969
  interface IGetLoginHistoryListResponse {
928
970
  history: IGetLoginHistoryResponse[];
@@ -930,15 +972,8 @@ interface IGetLoginHistoryListResponse {
930
972
  }
931
973
  interface IValidateInvitationRequest extends IAuthInvitationTokenParams {
932
974
  }
933
- interface IValidateInvitationResponse {
934
- id: string;
935
- companyId: string;
936
- companyName: string;
975
+ interface IValidateInvitationResponse extends IAuthInvitationBaseResponse {
937
976
  email: string;
938
- role: TAccountType;
939
- invitedBy: string;
940
- invitedByName: string;
941
- expiresAt: string;
942
977
  userExists: boolean;
943
978
  }
944
979
  interface IRegisterWithInvitationRequest {
@@ -963,18 +998,10 @@ interface IAcceptInvitationRouteResponse {
963
998
  invite: IAcceptInvitationResponse;
964
999
  message: string;
965
1000
  }
966
- interface IGetPendingInvitationsRequest {
967
- }
968
- interface IGetPendingInvitationsResponse {
969
- id: string;
1001
+ type IGetPendingInvitationsRequest = IEmptyRouteRequest;
1002
+ interface IGetPendingInvitationsResponse extends IAuthInvitationBaseResponse {
970
1003
  token: string;
971
- companyId: string;
972
- companyName: string;
973
- role: TAccountType;
974
- invitedBy: string;
975
- invitedByName: string;
976
- expiresAt: string;
977
- createdAt: string;
1004
+ createdAt: TDateTimeString;
978
1005
  }
979
1006
  interface IGetPendingInvitationsListResponse {
980
1007
  invitations: IGetPendingInvitationsResponse[];
@@ -983,12 +1010,7 @@ interface IGetPendingInvitationsListResponse {
983
1010
  interface IRevokeInvitationRequest extends IAuthInvitationIdParams {
984
1011
  revokedBy?: string;
985
1012
  }
986
- interface IRevokeInvitationResponse {
987
- message: string;
988
- }
989
- interface IRefreshRequest extends IRefreshSessionRequest {
990
- }
991
- interface IRefreshResponse extends IRefreshSessionResponse {
1013
+ interface IRevokeInvitationResponse extends IAuthMessageResponse {
992
1014
  }
993
1015
 
994
1016
  declare const AUTH_STATUS: {
@@ -999,10 +1021,6 @@ declare const AUTH_STATUS: {
999
1021
  readonly SessionExpired: "SessionExpired";
1000
1022
  };
1001
1023
  type TAuthStatus = (typeof AUTH_STATUS)[keyof typeof AUTH_STATUS];
1002
- /**
1003
- * Token Payload
1004
- * JWT token payload structure
1005
- */
1006
1024
  interface ITokenPayload {
1007
1025
  userId: string;
1008
1026
  email: string;
@@ -1012,39 +1030,29 @@ interface IRefreshTokenData {
1012
1030
  token: string;
1013
1031
  tokenHash: string;
1014
1032
  tokenFamily: string;
1015
- expiresAt: string;
1033
+ expiresAt: TDateTimeString;
1016
1034
  }
1017
- interface IAuthTokenResponse {
1018
- user: IUserSafe;
1035
+ interface IAuthTokenBundle {
1019
1036
  accessToken: string;
1020
1037
  refreshToken: string;
1021
- expiresAt?: string | null;
1022
- companyId?: string;
1038
+ expiresAt: TDateTimeString | null;
1023
1039
  }
1024
1040
  interface IStoredAuthSession {
1025
1041
  accessToken: string | null;
1026
1042
  refreshToken: string | null;
1027
- expiresAt?: string | null;
1043
+ expiresAt: TDateTimeString | null;
1028
1044
  }
1029
- interface IAuthTokens {
1030
- accessToken: string | null;
1031
- /**
1032
- * For browser apps, prefer storing the refresh token in an HTTP-only cookie.
1033
- * Keep this optional so the same shape can support mobile or non-cookie flows.
1034
- */
1035
- refreshToken?: string | null;
1036
- expiresAt?: string | null;
1045
+ interface IAuthTokenResponse extends IAuthTokenBundle {
1046
+ user: IUserSafe | null;
1047
+ companyId?: string;
1037
1048
  }
1038
1049
  interface IAuthSession {
1039
- authenticatedUser: IUserSafe | null;
1050
+ user: IUserSafe | null;
1040
1051
  accessToken: string | null;
1041
- expiresAt?: string | null;
1052
+ expiresAt: TDateTimeString | null;
1042
1053
  }
1043
- interface ISetAuthSessionParams {
1054
+ interface ISetAuthSessionParams extends IAuthTokenBundle {
1044
1055
  user: IUserSafe | null;
1045
- accessToken: string;
1046
- refreshToken: string;
1047
- expiresAt?: string | null;
1048
1056
  }
1049
1057
  interface ILoginCredentials {
1050
1058
  email: string;
@@ -1058,10 +1066,6 @@ interface IRegisterCredentials {
1058
1066
  email: string;
1059
1067
  password: string;
1060
1068
  }
1061
- /**
1062
- * Password Validation Rules
1063
- * Rules for password validation
1064
- */
1065
1069
  interface IPasswordValidationRules {
1066
1070
  minLength: number;
1067
1071
  requireUppercase: boolean;
@@ -1069,31 +1073,19 @@ interface IPasswordValidationRules {
1069
1073
  requireNumbers: boolean;
1070
1074
  requireSpecialChars: boolean;
1071
1075
  }
1072
- /**
1073
- * Password Validation Result
1074
- * Result of password validation
1075
- */
1076
1076
  interface IPasswordValidationResult {
1077
1077
  valid: boolean;
1078
1078
  errors: string[];
1079
1079
  }
1080
- /**
1081
- * Email Validation Result
1082
- * Result of email validation
1083
- */
1084
1080
  interface IEmailValidationResult {
1085
1081
  valid: boolean;
1086
1082
  error?: string;
1087
1083
  }
1088
- /**
1089
- * Rate Limit Status
1090
- * Information about rate limiting status
1091
- */
1092
1084
  interface IRateLimitStatus {
1093
1085
  isLimited: boolean;
1094
1086
  attempts: number;
1095
1087
  maxAttempts: number;
1096
- resetTime?: string;
1088
+ resetTime?: TDateTimeString;
1097
1089
  }
1098
1090
 
1099
1091
  interface IChecklistTemplateCompanyRouteParams {
@@ -1117,7 +1109,7 @@ interface ICreateTemplateRequest extends Partial<Omit<ICreateTemplateInput, "com
1117
1109
  }
1118
1110
  interface ICreateTemplateResponse extends IChecklistTemplate {
1119
1111
  }
1120
- interface ICreateTemplateWithItemsRequest extends ICreateTemplateInput {
1112
+ interface ICreateTemplateWithItemsRequest extends ICreateTemplateRequest {
1121
1113
  items: ICreateTemplateItemInput[];
1122
1114
  }
1123
1115
  interface ICreateTemplateWithItemsResponse extends IChecklistTemplateWithItems {
@@ -1133,7 +1125,7 @@ interface IGetTemplateWithItemsRequest extends ITemplateIdParams {
1133
1125
  }
1134
1126
  interface IGetTemplateWithItemsResponse extends IChecklistTemplateWithItems {
1135
1127
  }
1136
- interface IUpdateTemplateRequest extends Partial<ICreateTemplateInput> {
1128
+ interface IUpdateTemplateRequest extends Partial<Pick<ICreateTemplateInput, "name" | "description" | "isActive">> {
1137
1129
  }
1138
1130
  interface IUpdateTemplateResponse extends IChecklistTemplate {
1139
1131
  }
@@ -1183,7 +1175,7 @@ interface IReorderTemplateItemsResponse extends IMessageResponse {
1183
1175
  interface IChecklistTemplate extends IMetaData {
1184
1176
  id: string;
1185
1177
  name: string;
1186
- description?: string;
1178
+ description: string | null;
1187
1179
  companyId: string;
1188
1180
  createdBy: string;
1189
1181
  isActive: boolean;
@@ -1200,31 +1192,31 @@ interface IChecklistTemplateItem extends IMetaData {
1200
1192
  estimatedTimeMinutes: number | null;
1201
1193
  }
1202
1194
  /**
1203
- * Template with items
1195
+ * Template with items.
1204
1196
  */
1205
1197
  interface IChecklistTemplateWithItems extends IChecklistTemplate {
1206
1198
  items: IChecklistTemplateItem[];
1207
1199
  }
1208
1200
  /**
1209
- * Input for creating a template
1201
+ * Input for creating a template.
1210
1202
  */
1211
1203
  interface ICreateTemplateInput {
1212
1204
  name: string;
1213
- description?: string;
1205
+ description?: string | null;
1214
1206
  companyId: string;
1215
1207
  createdBy: string;
1216
1208
  isActive?: boolean;
1217
1209
  }
1218
1210
  /**
1219
- * Input for creating template items
1211
+ * Input for creating template items.
1220
1212
  */
1221
1213
  interface ICreateTemplateItemInput {
1222
1214
  title: string;
1223
- description?: string;
1215
+ description?: string | null;
1224
1216
  displayOrder: number;
1225
1217
  requiresPhoto?: boolean;
1226
1218
  isRequired?: boolean;
1227
- estimatedTimeMinutes?: number;
1219
+ estimatedTimeMinutes?: number | null;
1228
1220
  }
1229
1221
 
1230
1222
  interface ICompanyRouteParams {
@@ -1239,29 +1231,44 @@ interface ICompanyInvitationTokenParams {
1239
1231
  interface ICompanyInvitationIdParams extends ICompanyRouteParams {
1240
1232
  invitationId: string;
1241
1233
  }
1234
+ declare const CompanyFilter: {
1235
+ readonly Active: "active";
1236
+ readonly Pending: "pending";
1237
+ readonly All: "all";
1238
+ };
1239
+ type TCompanyFilter = (typeof CompanyFilter)[keyof typeof CompanyFilter];
1242
1240
  interface IGetCompaniesQuery {
1243
1241
  search?: string;
1244
- filter?: "active" | "pending" | "all";
1242
+ filter?: TCompanyFilter;
1245
1243
  }
1246
1244
  interface ICreateCompanyRequest {
1247
1245
  displayName: string;
1248
1246
  addressLine1: string;
1249
- addressLine2?: string;
1247
+ addressLine2?: string | null;
1250
1248
  city: string;
1251
1249
  stateCode: TUSStateCode;
1252
1250
  postalCode: string;
1253
- companyType: TCompanyType;
1251
+ companyType: ICompany["companyType"];
1254
1252
  }
1255
1253
  interface ICreateCompanyResponse extends ICompany {
1256
1254
  }
1257
- interface IGetCompaniesRequest {
1258
- }
1255
+ type IGetCompaniesRequest = IEmptyRouteRequest;
1259
1256
  type IGetCompaniesResponse = ICompany[];
1260
1257
  interface IGetCompanyByIdRequest extends ICompanyRouteParams {
1261
1258
  }
1262
1259
  interface IGetCompanyByIdResponse extends ICompany {
1263
1260
  }
1264
- interface IUpdateCompanyRequest extends Partial<ICompany> {
1261
+ interface IUpdateCompanyRequest {
1262
+ displayName?: string;
1263
+ addressLine1?: string;
1264
+ addressLine2?: string | null;
1265
+ city?: string;
1266
+ stateCode?: TUSStateCode;
1267
+ postalCode?: string;
1268
+ companyType?: ICompany["companyType"];
1269
+ country?: string | null;
1270
+ timezone?: string | null;
1271
+ imageUrl?: string | null;
1265
1272
  }
1266
1273
  interface IUpdateCompanyResponse extends ICompany {
1267
1274
  }
@@ -1277,10 +1284,10 @@ interface ICompanyUserSummary {
1277
1284
  id: string;
1278
1285
  email: string;
1279
1286
  firstName: string;
1280
- lastName: string;
1287
+ lastName: string | null;
1281
1288
  role: TAccountType;
1282
1289
  }
1283
- type IGetCompanyUsersResponse = Array<ICompany & ICompanyUserSummary>;
1290
+ type IGetCompanyUsersResponse = ICompanyUserSummary[];
1284
1291
  interface IGetUserCompaniesRequest extends ICompanyUserRouteParams {
1285
1292
  }
1286
1293
  type IGetUserCompaniesResponse = ICompany[];
@@ -1290,7 +1297,7 @@ interface IInviteCompanyToCompanyRequest {
1290
1297
  interface IInviteCompanyToCompanyResponse {
1291
1298
  id: string;
1292
1299
  token: string;
1293
- expiresAt: Date | string;
1300
+ expiresAt: TDateTimeString;
1294
1301
  }
1295
1302
  interface IValidateCompanyInvitationRequest extends ICompanyInvitationTokenParams {
1296
1303
  }
@@ -1299,8 +1306,8 @@ interface IValidateCompanyInvitationResponse {
1299
1306
  requesterCompanyId: string;
1300
1307
  providerCompanyId: string;
1301
1308
  invitedBy: string;
1302
- message?: string | null;
1303
- expiresAt: Date | string;
1309
+ message: string | null;
1310
+ expiresAt: TDateTimeString;
1304
1311
  requesterCompanyName: string;
1305
1312
  providerCompanyName: string;
1306
1313
  invitedByName: string;
@@ -1329,14 +1336,14 @@ interface ICompany extends IMetaData {
1329
1336
  id: string;
1330
1337
  displayName: string;
1331
1338
  addressLine1: string;
1332
- addressLine2?: string;
1339
+ addressLine2: string | null;
1333
1340
  city: string;
1334
1341
  stateCode: TUSStateCode;
1335
1342
  companyType: TCompanyType;
1336
1343
  postalCode: string;
1337
- country?: string;
1338
- timezone?: string;
1339
- photoUrl?: string;
1344
+ country: string | null;
1345
+ timezone: string | null;
1346
+ imageUrl: string | null;
1340
1347
  }
1341
1348
  declare const COMPANY_TYPES: {
1342
1349
  readonly PROPERTY_MANAGEMENT: "PROPERTY_MANAGEMENT";
@@ -1369,7 +1376,7 @@ interface IGetDamageReportByIdRequest extends IDamageReportRouteParams {
1369
1376
  }
1370
1377
  interface IGetDamageReportByIdResponse extends IDamageReport {
1371
1378
  }
1372
- interface IUpdateDamageReportRequest extends Partial<IDamageReport> {
1379
+ interface IUpdateDamageReportRequest extends Partial<Pick<IDamageReport, "severity" | "title" | "description" | "locationDetails" | "estimatedCost" | "actualCost" | "assignedTo" | "resolutionNotes" | "requiresProfessional" | "vendorInfo" | "insuranceClaimNumber" | "isTenantResponsible" | "tenantChargeAmount">> {
1373
1380
  }
1374
1381
  interface IUpdateDamageReportResponse extends IDamageReport {
1375
1382
  }
@@ -1430,7 +1437,7 @@ interface IGetWorkOrderByIdRequest extends IDamageReportWorkOrderRouteParams {
1430
1437
  }
1431
1438
  interface IGetWorkOrderByIdResponse extends IWorkOrder {
1432
1439
  }
1433
- interface IUpdateWorkOrderRequest extends Partial<IWorkOrder> {
1440
+ interface IUpdateWorkOrderRequest extends Partial<Pick<IWorkOrder, "priority" | "category" | "assignedTo" | "scheduledDate" | "scheduledTimeStart" | "scheduledTimeEnd" | "description" | "workPerformed" | "materialsUsed" | "laborHours" | "laborCost" | "materialsCost" | "status">> {
1434
1441
  }
1435
1442
  interface IUpdateWorkOrderResponse extends IWorkOrder {
1436
1443
  }
@@ -1495,9 +1502,9 @@ interface IDamageReport {
1495
1502
  propertyId: string;
1496
1503
  roomId: string;
1497
1504
  workSessionId: string | null;
1498
- cleaningSessionId?: string;
1505
+ cleaningSessionId: string | null;
1499
1506
  reportedBy: string;
1500
- reportedAt: Date;
1507
+ reportedAt: TDateTimeString;
1501
1508
  severity: TDamageSeverity;
1502
1509
  status: TDamageStatus;
1503
1510
  title: string;
@@ -1506,8 +1513,8 @@ interface IDamageReport {
1506
1513
  estimatedCost: number | null;
1507
1514
  actualCost: number | null;
1508
1515
  assignedTo: string | null;
1509
- assignedAt: Date | null;
1510
- resolvedAt: Date | null;
1516
+ assignedAt: TDateTimeString | null;
1517
+ resolvedAt: TDateTimeString | null;
1511
1518
  resolvedBy: string | null;
1512
1519
  resolutionNotes: string | null;
1513
1520
  requiresProfessional: boolean;
@@ -1515,8 +1522,8 @@ interface IDamageReport {
1515
1522
  insuranceClaimNumber: string | null;
1516
1523
  isTenantResponsible: boolean;
1517
1524
  tenantChargeAmount: number | null;
1518
- createdAt: Date;
1519
- updatedAt: Date;
1525
+ createdAt: TDateTimeString;
1526
+ updatedAt: TDateTimeString;
1520
1527
  photos?: IDamagePhoto[];
1521
1528
  comments?: IDamageComment[];
1522
1529
  }
@@ -1524,12 +1531,12 @@ interface IDamageReportPhoto {
1524
1531
  id: string;
1525
1532
  damageReportId: string;
1526
1533
  photoId: string;
1527
- photoUrl?: string;
1534
+ imageUrl: string | null;
1528
1535
  caption: string | null;
1529
1536
  isBeforePhoto: boolean;
1530
1537
  displayOrder: number;
1531
1538
  uploadedBy: string | null;
1532
- createdAt: Date;
1539
+ createdAt: TDateTimeString;
1533
1540
  }
1534
1541
  interface IDamagePhoto extends IDamageReportPhoto {
1535
1542
  }
@@ -1537,11 +1544,11 @@ interface IDamageComment {
1537
1544
  id: string;
1538
1545
  damageReportId: string;
1539
1546
  userId: string;
1540
- userName?: string;
1547
+ userName: string | null;
1541
1548
  comment: string;
1542
1549
  isInternal: boolean;
1543
- createdAt: Date;
1544
- updatedAt: Date;
1550
+ createdAt: TDateTimeString;
1551
+ updatedAt: TDateTimeString;
1545
1552
  }
1546
1553
  interface IDamageReportStatusHistory {
1547
1554
  id: string;
@@ -1550,7 +1557,7 @@ interface IDamageReportStatusHistory {
1550
1557
  newStatus: TDamageStatus;
1551
1558
  changedBy: string;
1552
1559
  reason: string | null;
1553
- createdAt: Date;
1560
+ createdAt: TDateTimeString;
1554
1561
  }
1555
1562
  interface IWorkOrder {
1556
1563
  id: string;
@@ -1561,12 +1568,12 @@ interface IWorkOrder {
1561
1568
  priority: TWorkOrderPriority;
1562
1569
  category: string | null;
1563
1570
  assignedTo: string | null;
1564
- assignedAt: Date | null;
1565
- scheduledDate: Date | null;
1571
+ assignedAt: TDateTimeString | null;
1572
+ scheduledDate: TDateTimeString | null;
1566
1573
  scheduledTimeStart: string | null;
1567
1574
  scheduledTimeEnd: string | null;
1568
- startedAt: Date | null;
1569
- completedAt: Date | null;
1575
+ startedAt: TDateTimeString | null;
1576
+ completedAt: TDateTimeString | null;
1570
1577
  completedBy: string | null;
1571
1578
  description: string;
1572
1579
  workPerformed: string | null;
@@ -1576,8 +1583,8 @@ interface IWorkOrder {
1576
1583
  materialsCost: number | null;
1577
1584
  totalCost: number | null;
1578
1585
  status: TWorkOrderStatus;
1579
- createdAt: Date;
1580
- updatedAt: Date;
1586
+ createdAt: TDateTimeString;
1587
+ updatedAt: TDateTimeString;
1581
1588
  }
1582
1589
  interface ICreateDamageReportInput {
1583
1590
  propertyId: string;
@@ -1600,84 +1607,67 @@ interface ICreateWorkOrderInput {
1600
1607
  priority?: TWorkOrderPriority;
1601
1608
  category?: string;
1602
1609
  description: string;
1603
- scheduledDate?: Date;
1610
+ scheduledDate?: TDateTimeString;
1604
1611
  scheduledTimeStart?: string;
1605
1612
  scheduledTimeEnd?: string;
1606
1613
  }
1607
1614
 
1608
1615
  /**
1609
1616
  * Error Types
1610
- * Custom error types and validation error structures
1617
+ * Custom error types and validation error structures.
1611
1618
  */
1612
1619
 
1613
1620
  /**
1614
- * Validation Error Detail
1615
- * Detailed information about a validation error
1621
+ * Detailed information about a validation error.
1616
1622
  */
1617
1623
  interface IValidationErrorDetail {
1618
1624
  field: string;
1619
1625
  message: string;
1620
- value?: unknown;
1626
+ value?: TJsonValue;
1621
1627
  }
1622
1628
  /**
1623
- * Missing Fields Error Detail
1624
- * Information about missing required fields
1629
+ * Information about missing required fields.
1625
1630
  */
1626
1631
  interface IMissingFieldsErrorDetail {
1627
1632
  missingFields: string[];
1628
1633
  }
1629
1634
  /**
1630
- * Rate Limit Error Detail
1631
- * Information about rate limiting
1635
+ * Information about rate limiting.
1632
1636
  */
1633
1637
  interface IRateLimitErrorDetail {
1634
1638
  retryAfter?: number;
1635
1639
  message: string;
1636
1640
  }
1637
- /**
1638
- * Error Response Detail
1639
- * Union type for all possible error details
1640
- */
1641
- type TErrorResponseDetail = IValidationErrorDetail[] | IMissingFieldsErrorDetail | IRateLimitErrorDetail | Record<string, unknown> | string;
1642
- /**
1643
- * Typed API Error
1644
- * API error with typed details
1645
- */
1646
- interface ITypedApiError<T = TErrorResponseDetail> {
1641
+ type TErrorResponseDetail = IValidationErrorDetail[] | IMissingFieldsErrorDetail | IRateLimitErrorDetail | TJsonObject | string;
1642
+ interface ITypedApiError<TDetails = TErrorResponseDetail> {
1647
1643
  message: string;
1648
1644
  code: TErrorCode;
1649
- details?: T;
1645
+ details?: TDetails;
1650
1646
  }
1651
- /**
1652
- * Error Helper Types
1653
- * For identifying specific error types
1654
- */
1655
1647
  type TValidationError = ITypedApiError<IValidationErrorDetail[]>;
1656
1648
  type TMissingFieldsError = ITypedApiError<IMissingFieldsErrorDetail>;
1657
1649
  type TRateLimitError = ITypedApiError<IRateLimitErrorDetail>;
1658
1650
  /**
1659
- * Type guard for ValidationError
1651
+ * Type guard for validation errors.
1660
1652
  */
1661
1653
  declare function isValidationError(error: unknown): error is TValidationError;
1662
1654
  /**
1663
- * Type guard for MissingFieldsError
1655
+ * Type guard for missing-field errors.
1664
1656
  */
1665
1657
  declare function isMissingFieldsError(error: unknown): error is TMissingFieldsError;
1666
1658
  /**
1667
- * Type guard for RateLimitError
1659
+ * Type guard for rate-limit errors.
1668
1660
  */
1669
1661
  declare function isRateLimitError(error: unknown): error is TRateLimitError;
1670
1662
  /**
1671
- * Type guard for authentication errors
1663
+ * Type guard for authentication errors.
1672
1664
  */
1673
1665
  declare function isAuthError(error: unknown): boolean;
1674
1666
 
1675
- interface IGetHealthRequest {
1676
- }
1667
+ type IGetHealthRequest = IEmptyRouteRequest;
1677
1668
  interface IGetHealthResponse extends IHealthCheckResponse {
1678
1669
  }
1679
- interface IGetDetailedHealthRequest {
1680
- }
1670
+ type IGetDetailedHealthRequest = IEmptyRouteRequest;
1681
1671
  interface IGetDetailedHealthResponse {
1682
1672
  checks: IHealthChecks;
1683
1673
  }
@@ -1685,7 +1675,7 @@ interface IGetDetailedHealthResponse {
1685
1675
  interface IHealthCheckResponse {
1686
1676
  status: "healthy";
1687
1677
  database: "connected";
1688
- timestamp: string;
1678
+ timestamp: TDateTimeString;
1689
1679
  environment?: string;
1690
1680
  }
1691
1681
  interface IHealthChecks {
@@ -1698,7 +1688,7 @@ interface IHealthChecks {
1698
1688
  external: number;
1699
1689
  arrayBuffers: number;
1700
1690
  };
1701
- timestamp: string;
1691
+ timestamp: TDateTimeString;
1702
1692
  databaseError?: string;
1703
1693
  }
1704
1694
 
@@ -1717,8 +1707,7 @@ interface IImageCompanyRouteParams {
1717
1707
  interface IImageRouteParams {
1718
1708
  imageId: string;
1719
1709
  }
1720
- interface IUploadProfileImageRequest {
1721
- }
1710
+ type IUploadProfileImageRequest = IEmptyRouteRequest;
1722
1711
  interface IUploadProfileImageResponse {
1723
1712
  image: IImageWithUrl;
1724
1713
  }
@@ -1753,16 +1742,16 @@ interface IImage {
1753
1742
  entityId: string;
1754
1743
  fileName: string;
1755
1744
  mimeType: string;
1756
- fileSizeBytes?: number;
1757
- width?: number;
1758
- height?: number;
1745
+ fileSizeBytes: number | null;
1746
+ width: number | null;
1747
+ height: number | null;
1759
1748
  isPublic: boolean;
1760
- category?: string;
1749
+ category: string | null;
1761
1750
  displayOrder: number;
1762
- uploadedBy?: string;
1763
- createdAt: Date;
1764
- updatedAt: Date;
1765
- deletedAt?: Date;
1751
+ uploadedBy: string | null;
1752
+ createdAt: TDateTimeString;
1753
+ updatedAt: TDateTimeString;
1754
+ deletedAt: TDateTimeString | null;
1766
1755
  }
1767
1756
  interface IImageWithUrl extends IImage {
1768
1757
  url: string;
@@ -1789,9 +1778,7 @@ interface IRoomInventoryIdParams {
1789
1778
  interface IInventoryOrderRouteParams {
1790
1779
  orderId: string;
1791
1780
  }
1792
- interface ICreateInventoryItemRequest extends Partial<IInventoryItem> {
1793
- companyId: string;
1794
- name: string;
1781
+ interface ICreateInventoryItemRequest extends Pick<IInventoryItem, "companyId" | "name" | "itemType" | "unit" | "minimumLevel" | "reorderLevel">, Partial<Pick<IInventoryItem, "description" | "unitCustom" | "maximumLevel" | "costPerUnit" | "supplierInfo" | "sku" | "barcode">> {
1795
1782
  }
1796
1783
  interface ICreateInventoryItemResponse extends IInventoryItem {
1797
1784
  }
@@ -1799,7 +1786,7 @@ interface IGetInventoryItemByIdRequest extends IInventoryItemRouteParams {
1799
1786
  }
1800
1787
  interface IGetInventoryItemByIdResponse extends IInventoryItem {
1801
1788
  }
1802
- interface IUpdateInventoryItemRequest extends Partial<IInventoryItem> {
1789
+ interface IUpdateInventoryItemRequest extends Partial<Pick<IInventoryItem, "name" | "description" | "itemType" | "unit" | "unitCustom" | "minimumLevel" | "reorderLevel" | "maximumLevel" | "costPerUnit" | "supplierInfo" | "sku" | "barcode">> {
1803
1790
  }
1804
1791
  interface IUpdateInventoryItemResponse extends IInventoryItem {
1805
1792
  }
@@ -1810,9 +1797,7 @@ interface IDeleteInventoryItemResponse extends IMessageResponse {
1810
1797
  interface IGetInventoryByCompanyIdRequest extends IInventoryCompanyRouteParams {
1811
1798
  }
1812
1799
  type IGetInventoryByCompanyIdResponse = IInventoryItem[];
1813
- interface IAddInventoryToPropertyRequest extends Partial<IPropertyInventory> {
1814
- propertyId: string;
1815
- inventoryItemId: string;
1800
+ interface IAddInventoryToPropertyRequest extends Pick<IPropertyInventory, "propertyId" | "inventoryItemId">, Partial<Pick<IPropertyInventory, "currentLevel" | "minimumLevel" | "maximumLevel" | "parLevel" | "autoReorder" | "locationNotes">> {
1816
1801
  }
1817
1802
  interface IAddInventoryToPropertyResponse extends IPropertyInventory {
1818
1803
  }
@@ -1822,27 +1807,21 @@ type IGetPropertyInventoryResponse = IPropertyInventory[];
1822
1807
  interface IGetPropertyInventoryNeedingRestockRequest extends IInventoryPropertyRouteParams {
1823
1808
  }
1824
1809
  type IGetPropertyInventoryNeedingRestockResponse = IPropertyInventory[];
1825
- interface IAddInventoryToRoomRequest extends Partial<IRoomInventory> {
1826
- roomId: string;
1827
- inventoryItemId: string;
1810
+ interface IAddInventoryToRoomRequest extends Pick<IRoomInventory, "roomId" | "inventoryItemId">, Partial<Pick<IRoomInventory, "currentLevel" | "minimumLevel" | "maximumLevel" | "parLevel" | "autoReorder" | "locationNotes">> {
1828
1811
  }
1829
1812
  interface IAddInventoryToRoomResponse extends IRoomInventory {
1830
1813
  }
1831
1814
  interface IGetRoomInventoryRequest extends IInventoryRoomRouteParams {
1832
1815
  }
1833
1816
  type IGetRoomInventoryResponse = IRoomInventory[];
1834
- interface IUpdateRoomInventoryRequest extends Partial<IRoomInventory> {
1817
+ interface IUpdateRoomInventoryRequest extends Partial<Pick<IRoomInventory, "currentLevel" | "minimumLevel" | "maximumLevel" | "parLevel" | "lastRestockedAt" | "lastRestockedBy" | "lastCheckedAt" | "lastCheckedBy" | "autoReorder" | "locationNotes">> {
1835
1818
  }
1836
1819
  interface IUpdateRoomInventoryResponse extends IRoomInventory {
1837
1820
  }
1838
1821
  interface IGetRoomInventoryNeedingRestockRequest extends IInventoryRoomRouteParams {
1839
1822
  }
1840
1823
  type IGetRoomInventoryNeedingRestockResponse = IRoomInventory[];
1841
- interface IRecordInventoryCountRequest extends Partial<IInventoryCount> {
1842
- checklistExecutionId: string;
1843
- roomInventoryId: string;
1844
- countedLevel: number;
1845
- countedBy: string;
1824
+ interface IRecordInventoryCountRequest extends Pick<IInventoryCount, "checklistExecutionId" | "roomInventoryId" | "countedLevel" | "countedBy">, Partial<Pick<IInventoryCount, "previousLevel" | "consumedAmount" | "restockedAmount" | "finalLevel" | "needsRestock" | "notes">> {
1846
1825
  }
1847
1826
  interface IRecordInventoryCountResponse extends IInventoryCount {
1848
1827
  }
@@ -1856,9 +1835,13 @@ interface IRestockOrderItemInput {
1856
1835
  quantityOrdered: number;
1857
1836
  unitCost?: number;
1858
1837
  }
1859
- interface ICreateRestockOrderRequest extends Partial<IInventoryRestockOrder> {
1838
+ interface ICreateRestockOrderRequest {
1860
1839
  companyId: string;
1861
- orderedBy: string;
1840
+ orderedBy?: string | null;
1841
+ orderNumber?: string | null;
1842
+ expectedDelivery?: IInventoryRestockOrder["expectedDelivery"];
1843
+ supplierInfo?: string | null;
1844
+ notes?: string | null;
1862
1845
  items: IRestockOrderItemInput[];
1863
1846
  }
1864
1847
  interface ICreateRestockOrderResponse extends IInventoryRestockOrder {
@@ -1871,7 +1854,7 @@ interface IGetRestockOrderItemsRequest extends IInventoryOrderRouteParams {
1871
1854
  type IGetRestockOrderItemsResponse = IInventoryRestockOrderItem[];
1872
1855
  interface IUpdateRestockOrderStatusRequest {
1873
1856
  status: TInventoryRestockOrderStatus;
1874
- receivedBy?: string;
1857
+ receivedBy?: string | null;
1875
1858
  }
1876
1859
  interface IUpdateRestockOrderStatusResponse extends IInventoryRestockOrder {
1877
1860
  }
@@ -1884,23 +1867,23 @@ declare const INVENTORY_RESTOCK_ORDER_STATUS: {
1884
1867
  };
1885
1868
  type TInventoryRestockOrderStatus = TRecordValue<typeof INVENTORY_RESTOCK_ORDER_STATUS>;
1886
1869
  declare const INVENTORY_UNITS: {
1887
- COUNT: string;
1888
- ROLLS: string;
1889
- PODS: string;
1890
- BOXES: string;
1891
- BOTTLES: string;
1892
- PACKS: string;
1893
- BAGS: string;
1894
- GALLONS: string;
1895
- LITERS: string;
1896
- KILOGRAMS: string;
1897
- POUNDS: string;
1898
- OUNCES: string;
1899
- GRAMS: string;
1900
- SHEETS: string;
1901
- CASES: string;
1902
- CARTONS: string;
1903
- OTHER: string;
1870
+ readonly COUNT: "COUNT";
1871
+ readonly ROLLS: "ROLLS";
1872
+ readonly PODS: "PODS";
1873
+ readonly BOXES: "BOXES";
1874
+ readonly BOTTLES: "BOTTLES";
1875
+ readonly PACKS: "PACKS";
1876
+ readonly BAGS: "BAGS";
1877
+ readonly GALLONS: "GALLONS";
1878
+ readonly LITERS: "LITERS";
1879
+ readonly KILOGRAMS: "KILOGRAMS";
1880
+ readonly POUNDS: "POUNDS";
1881
+ readonly OUNCES: "OUNCES";
1882
+ readonly GRAMS: "GRAMS";
1883
+ readonly SHEETS: "SHEETS";
1884
+ readonly CASES: "CASES";
1885
+ readonly CARTONS: "CARTONS";
1886
+ readonly OTHER: "OTHER";
1904
1887
  };
1905
1888
  type TInventoryUnitType = TRecordValue<typeof INVENTORY_UNITS>;
1906
1889
  declare const INVENTORY_ITEM_TYPE: {
@@ -1912,17 +1895,17 @@ interface IInventoryItem extends IMetaData {
1912
1895
  id: string;
1913
1896
  companyId: string;
1914
1897
  name: string;
1915
- description?: string;
1898
+ description: string | null;
1916
1899
  itemType: TInventoryItemType;
1917
1900
  unit: TInventoryUnitType;
1918
- unitCustom?: string;
1901
+ unitCustom: string | null;
1919
1902
  minimumLevel: number;
1920
1903
  reorderLevel: number;
1921
- maximumLevel?: number;
1922
- costPerUnit?: number;
1923
- supplierInfo?: string;
1924
- sku?: string;
1925
- barcode?: string;
1904
+ maximumLevel: number | null;
1905
+ costPerUnit: number | null;
1906
+ supplierInfo: string | null;
1907
+ sku: string | null;
1908
+ barcode: string | null;
1926
1909
  }
1927
1910
  interface IRoomInventory extends IMetaData {
1928
1911
  id: string;
@@ -1930,14 +1913,14 @@ interface IRoomInventory extends IMetaData {
1930
1913
  inventoryItemId: string;
1931
1914
  currentLevel: number;
1932
1915
  minimumLevel: number;
1933
- maximumLevel?: number;
1934
- parLevel?: number;
1935
- lastRestockedAt?: Date;
1936
- lastRestockedBy?: string;
1937
- lastCheckedAt?: Date;
1938
- lastCheckedBy?: string;
1916
+ maximumLevel: number | null;
1917
+ parLevel: number | null;
1918
+ lastRestockedAt: TDateTimeString | null;
1919
+ lastRestockedBy: string | null;
1920
+ lastCheckedAt: TDateTimeString | null;
1921
+ lastCheckedBy: string | null;
1939
1922
  autoReorder: boolean;
1940
- locationNotes?: string;
1923
+ locationNotes: string | null;
1941
1924
  }
1942
1925
  interface IPropertyInventory extends IMetaData {
1943
1926
  id: string;
@@ -1945,14 +1928,14 @@ interface IPropertyInventory extends IMetaData {
1945
1928
  inventoryItemId: string;
1946
1929
  currentLevel: number;
1947
1930
  minimumLevel: number;
1948
- maximumLevel?: number;
1949
- parLevel?: number;
1950
- lastRestockedAt?: Date;
1951
- lastRestockedBy?: string;
1952
- lastCheckedAt?: Date;
1953
- lastCheckedBy?: string;
1931
+ maximumLevel: number | null;
1932
+ parLevel: number | null;
1933
+ lastRestockedAt: TDateTimeString | null;
1934
+ lastRestockedBy: string | null;
1935
+ lastCheckedAt: TDateTimeString | null;
1936
+ lastCheckedBy: string | null;
1954
1937
  autoReorder: boolean;
1955
- locationNotes?: string;
1938
+ locationNotes: string | null;
1956
1939
  }
1957
1940
  interface IInventoryCount {
1958
1941
  id: string;
@@ -1964,39 +1947,39 @@ interface IInventoryCount {
1964
1947
  restockedAmount: number;
1965
1948
  finalLevel: number;
1966
1949
  countedBy: string;
1967
- countedAt: Date;
1950
+ countedAt: TDateTimeString;
1968
1951
  needsRestock: boolean;
1969
- notes?: string;
1970
- createdAt: Date;
1952
+ notes: string | null;
1953
+ createdAt: TDateTimeString;
1971
1954
  }
1972
1955
  interface IInventoryRestockOrder {
1973
1956
  id: string;
1974
1957
  companyId: string;
1975
- orderNumber?: string;
1958
+ orderNumber: string | null;
1976
1959
  status: TInventoryRestockOrderStatus;
1977
- totalItems?: number;
1978
- totalCost?: number;
1979
- orderedBy?: string;
1980
- orderedAt?: Date;
1981
- expectedDelivery?: Date;
1982
- receivedBy?: string;
1983
- receivedAt?: Date;
1984
- supplierInfo?: string;
1985
- notes?: string;
1986
- createdAt: Date;
1987
- updatedAt: Date;
1960
+ totalItems: number | null;
1961
+ totalCost: number | null;
1962
+ orderedBy: string | null;
1963
+ orderedAt: TDateTimeString | null;
1964
+ expectedDelivery: TDateTimeString | null;
1965
+ receivedBy: string | null;
1966
+ receivedAt: TDateTimeString | null;
1967
+ supplierInfo: string | null;
1968
+ notes: string | null;
1969
+ createdAt: TDateTimeString;
1970
+ updatedAt: TDateTimeString;
1988
1971
  }
1989
1972
  interface IInventoryRestockOrderItem {
1990
1973
  id: string;
1991
1974
  orderId: string;
1992
1975
  inventoryItemId: string;
1993
- roomInventoryId?: string;
1994
- propertyInventoryId?: string;
1976
+ roomInventoryId: string | null;
1977
+ propertyInventoryId: string | null;
1995
1978
  quantityOrdered: number;
1996
1979
  quantityReceived: number;
1997
- unitCost?: number;
1998
- totalCost?: number;
1999
- createdAt: Date;
1980
+ unitCost: number | null;
1981
+ totalCost: number | null;
1982
+ createdAt: TDateTimeString;
2000
1983
  }
2001
1984
 
2002
1985
  interface IPropertyIdParams {
@@ -2011,17 +1994,17 @@ interface ICreatePropertyRequest {
2011
1994
  propertyType: TPropertyType;
2012
1995
  status?: TPropertyStatus;
2013
1996
  addressLine1: string;
2014
- addressLine2?: string;
1997
+ addressLine2?: string | null;
2015
1998
  city: string;
2016
1999
  stateCode: TUSStateCode;
2017
2000
  postalCode: string;
2018
- country?: string;
2019
- sqft?: number;
2020
- timezone?: string;
2021
- photoUrl?: string;
2022
- specialNotes?: string;
2001
+ country?: string | null;
2002
+ sqft?: number | null;
2003
+ timezone?: string | null;
2004
+ imageUrl?: string | null;
2005
+ specialNotes?: string | null;
2023
2006
  }
2024
- interface IUpdatePropertyRequest extends Partial<ICreatePropertyRequest> {
2007
+ interface IUpdatePropertyRequest extends Partial<Omit<ICreatePropertyRequest, "companyId">> {
2025
2008
  }
2026
2009
  interface IGetPropertiesRequest {
2027
2010
  companyId?: string;
@@ -2039,7 +2022,7 @@ interface IUpdatePropertyResponse extends IPropertyDetail {
2039
2022
  }
2040
2023
  interface IDeletePropertyResponse extends IMessageResponse {
2041
2024
  }
2042
- interface IUpdatePropertyAccessInformationRequest extends Partial<IPropertyAccessInformation> {
2025
+ interface IUpdatePropertyAccessInformationRequest extends Partial<Omit<IPropertyAccessInformation, "propertyId">> {
2043
2026
  }
2044
2027
  interface IUpdatePropertyAccessInformationResponse extends IPropertyAccessInformation {
2045
2028
  }
@@ -2053,41 +2036,52 @@ interface IGetPropertiesByCompanyIdRequest extends ICompanyIdParams {
2053
2036
  type IGetPropertiesByCompanyIdResponse = IProperty[];
2054
2037
 
2055
2038
  declare const PROPERTY_STATUS: {
2056
- readonly Active: "Active";
2057
- readonly Inactive: "Inactive";
2039
+ readonly ACTIVE: "ACTIVE";
2040
+ readonly INACTIVE: "INACTIVE";
2058
2041
  };
2059
2042
  type TPropertyStatus = TRecordValue<typeof PROPERTY_STATUS>;
2060
2043
  declare const PropertyStatusOptions: ISelectOption<TPropertyStatus>[];
2061
- declare const PROPERTY_TYPES: readonly ["Apartment", "Commercial", "Condo", "House"];
2062
- type TPropertyType = (typeof PROPERTY_TYPES)[number];
2044
+ declare const PROPERTY_TYPES: {
2045
+ readonly APARTMENT: "APARTMENT";
2046
+ readonly COMMERCIAL: "COMMERCIAL";
2047
+ readonly CONDO: "CONDO";
2048
+ readonly DUPLEX: "DUPLEX";
2049
+ readonly HOUSE: "HOUSE";
2050
+ readonly MULTI_FAMILY: "MULTI_FAMILY";
2051
+ readonly OFFICE: "OFFICE";
2052
+ readonly RETAIL: "RETAIL";
2053
+ readonly TOWNHOUSE: "TOWNHOUSE";
2054
+ readonly VACATION_RENTAL: "VACATION_RENTAL";
2055
+ readonly WAREHOUSE: "WAREHOUSE";
2056
+ };
2057
+ type TPropertyType = TRecordValue<typeof PROPERTY_TYPES>;
2063
2058
  declare const PropertyTypeOptions: ISelectOption<TPropertyType>[];
2064
2059
  interface IProperty extends IMetaData {
2065
2060
  id: string;
2066
2061
  displayName: string;
2067
2062
  addressLine1: string;
2068
- addressLine2?: string;
2063
+ addressLine2: string | null;
2069
2064
  city: string;
2070
- stateCode: TUSStateCode | string;
2071
- propertyType?: TPropertyType;
2072
- status?: TPropertyStatus;
2073
- sqft?: number;
2065
+ stateCode: TUSStateCode;
2066
+ propertyType: TPropertyType | null;
2067
+ status: TPropertyStatus | null;
2068
+ sqft: number | null;
2074
2069
  postalCode: string;
2075
- country?: string;
2076
- timezone?: string;
2077
- imageUrl?: string;
2078
- photoUrl?: string;
2070
+ country: string | null;
2071
+ timezone: string | null;
2072
+ imageUrl: string | null;
2079
2073
  companyId: string;
2080
- specialNotes?: string;
2074
+ specialNotes: string | null;
2081
2075
  }
2082
2076
  interface IPropertyAccessInformation {
2083
2077
  propertyId: string;
2084
- entryInstructions?: string;
2085
- accessCode?: string;
2086
- wifiName?: string;
2087
- wifiPassword?: string;
2088
- alarmCode?: string;
2089
- parkingInfo?: string;
2090
- specialNotes?: string;
2078
+ entryInstructions: string | null;
2079
+ accessCode: string | null;
2080
+ wifiName: string | null;
2081
+ wifiPassword: string | null;
2082
+ alarmCode: string | null;
2083
+ parkingInfo: string | null;
2084
+ specialNotes: string | null;
2091
2085
  }
2092
2086
  interface IPropertyBase {
2093
2087
  id: string;
@@ -2125,11 +2119,11 @@ interface IPropertyJobSummaryItem {
2125
2119
  }
2126
2120
  interface IPropertyFormValues {
2127
2121
  displayName: string;
2128
- propertyType: string;
2129
- status: string;
2122
+ propertyType: TPropertyType;
2123
+ status: TPropertyStatus;
2130
2124
  addressLine1: string;
2131
2125
  city: string;
2132
- stateCode: string;
2126
+ stateCode: TUSStateCode;
2133
2127
  postalCode: string;
2134
2128
  specialNotes: string;
2135
2129
  }
@@ -2142,26 +2136,26 @@ interface IPropertyAccessFormValues {
2142
2136
  specialNotes: string;
2143
2137
  }
2144
2138
  interface IPropertyFilterValues {
2145
- status: string;
2139
+ status: TPropertyStatus;
2146
2140
  propertyType: TPropertyType;
2147
2141
  }
2148
2142
  interface IPropertySummary {
2149
2143
  id: string;
2150
2144
  displayName: string;
2151
- propertyType: TPropertyType;
2145
+ propertyType: TPropertyType | null;
2152
2146
  addressLine1: string;
2153
- addressLine2: string;
2147
+ addressLine2: string | null;
2154
2148
  city: string;
2155
- stateCode: string;
2149
+ stateCode: TUSStateCode;
2156
2150
  postalCode: string;
2157
- imageUrl?: string;
2158
- status?: string;
2151
+ imageUrl: string | null;
2152
+ status: TPropertyStatus | null;
2159
2153
  }
2160
2154
  interface IPropertyDetail extends IPropertySummary {
2161
- specialNotes?: string;
2155
+ specialNotes: string | null;
2162
2156
  roomCount?: number;
2163
- createdAt?: string;
2164
- updatedAt?: string;
2157
+ createdAt: TDateTimeString;
2158
+ updatedAt: TDateTimeString;
2165
2159
  }
2166
2160
 
2167
2161
  interface IJobFilterValues {
@@ -2179,8 +2173,10 @@ interface IRoomRouteParams {
2179
2173
  interface ICreateRoomRequest {
2180
2174
  propertyId: string;
2181
2175
  displayName: string;
2182
- description?: string;
2183
- checklistTemplateId?: string;
2176
+ description?: string | null;
2177
+ checklistTemplateId?: string | null;
2178
+ roomType?: IRoom["roomType"];
2179
+ heroPhoto?: string | null;
2184
2180
  }
2185
2181
  interface ICreateRoomResponse extends IRoom {
2186
2182
  }
@@ -2194,8 +2190,7 @@ interface IGetRoomByIdRequest extends IRoomRouteParams {
2194
2190
  }
2195
2191
  interface IGetRoomByIdResponse extends IRoom {
2196
2192
  }
2197
- interface IUpdateRoomRequest extends Partial<ICreateRoomRequest> {
2198
- displayName?: string;
2193
+ interface IUpdateRoomRequest extends Partial<Omit<ICreateRoomRequest, "propertyId">> {
2199
2194
  }
2200
2195
  interface IUpdateRoomResponse extends IRoom {
2201
2196
  }
@@ -2205,30 +2200,30 @@ interface IDeleteRoomResponse extends IMessageResponse {
2205
2200
  }
2206
2201
 
2207
2202
  declare const ROOM_TYPE: {
2208
- BEDROOM: string;
2209
- BATHROOM: string;
2210
- KITCHEN: string;
2211
- LIVING_ROOM: string;
2212
- DINING_ROOM: string;
2213
- OFFICE: string;
2214
- GARAGE: string;
2215
- LAUNDRY_ROOM: string;
2216
- BASEMENT: string;
2217
- ATTIC: string;
2218
- BALCONY: string;
2219
- PORCH: string;
2220
- GARDEN: string;
2221
- OTHER: string;
2203
+ readonly BEDROOM: "BEDROOM";
2204
+ readonly BATHROOM: "BATHROOM";
2205
+ readonly KITCHEN: "KITCHEN";
2206
+ readonly LIVING_ROOM: "LIVING_ROOM";
2207
+ readonly DINING_ROOM: "DINING_ROOM";
2208
+ readonly OFFICE: "OFFICE";
2209
+ readonly GARAGE: "GARAGE";
2210
+ readonly LAUNDRY_ROOM: "LAUNDRY_ROOM";
2211
+ readonly BASEMENT: "BASEMENT";
2212
+ readonly ATTIC: "ATTIC";
2213
+ readonly BALCONY: "BALCONY";
2214
+ readonly PORCH: "PORCH";
2215
+ readonly GARDEN: "GARDEN";
2216
+ readonly OTHER: "OTHER";
2222
2217
  };
2223
2218
  type TRoomType = TRecordValue<typeof ROOM_TYPE>;
2224
2219
  interface IRoom extends IMetaData {
2225
2220
  id: string;
2226
2221
  displayName: string;
2227
- checklistTemplateId?: string;
2228
- roomType?: TRoomType;
2229
- heroPhoto?: string;
2222
+ checklistTemplateId: string | null;
2223
+ roomType: TRoomType | null;
2224
+ heroPhoto: string | null;
2230
2225
  propertyId: string;
2231
- description?: string;
2226
+ description: string | null;
2232
2227
  }
2233
2228
 
2234
2229
  interface IRoomChecklistRoomRouteParams {
@@ -2265,7 +2260,7 @@ interface IGetChecklistWithItemsRequest extends IChecklistIdParams {
2265
2260
  }
2266
2261
  interface IGetChecklistWithItemsResponse extends IRoomChecklistWithItems {
2267
2262
  }
2268
- interface IUpdateChecklistRequest extends Partial<ICreateRoomChecklistInput> {
2263
+ interface IUpdateChecklistRequest extends Partial<Omit<ICreateRoomChecklistInput, "roomId">> {
2269
2264
  }
2270
2265
  interface IUpdateChecklistResponse extends IRoomChecklist {
2271
2266
  }
@@ -2311,61 +2306,61 @@ interface IReorderChecklistItemsResponse extends IMessageResponse {
2311
2306
  interface IRoomChecklist extends IMetaData {
2312
2307
  id: string;
2313
2308
  roomId: string;
2314
- templateId?: string;
2309
+ templateId: string | null;
2315
2310
  name: string;
2316
2311
  isActive: boolean;
2317
2312
  items: IRoomChecklistItem[];
2318
2313
  }
2319
2314
  interface IRoomChecklistItem extends IChecklistTemplateItem {
2320
2315
  roomChecklistId: string;
2321
- templateItemId?: string;
2316
+ templateItemId: string | null;
2322
2317
  isCustom: boolean;
2323
2318
  }
2324
2319
  /**
2325
- * Room checklist with items
2320
+ * Room checklist with items.
2326
2321
  */
2327
2322
  interface IRoomChecklistWithItems extends IRoomChecklist {
2328
2323
  items: IRoomChecklistItem[];
2329
2324
  }
2330
2325
  /**
2331
- * Input for creating a room checklist
2326
+ * Input for creating a room checklist.
2332
2327
  */
2333
2328
  interface ICreateRoomChecklistInput {
2334
2329
  roomId: string;
2335
- templateId?: string;
2330
+ templateId?: string | null;
2336
2331
  name: string;
2337
2332
  isActive?: boolean;
2338
2333
  }
2339
2334
  /**
2340
- * Input for creating room checklist items
2335
+ * Input for creating room checklist items.
2341
2336
  */
2342
2337
  interface ICreateRoomChecklistItemInput {
2343
2338
  title: string;
2344
- description?: string;
2339
+ description?: string | null;
2345
2340
  displayOrder: number;
2346
2341
  requiresPhoto?: boolean;
2347
2342
  isRequired?: boolean;
2348
- estimatedTimeMinutes?: number;
2343
+ estimatedTimeMinutes?: number | null;
2349
2344
  isCustom?: boolean;
2350
2345
  }
2351
2346
 
2352
2347
  declare const SUBSCRIPTION_STATUS: {
2353
- readonly ACTIVE: "active";
2354
- readonly CANCELED: "canceled";
2355
- readonly EXPIRED: "expired";
2356
- readonly PAST_DUE: "past_due";
2357
- readonly TRIALING: "trialing";
2348
+ readonly ACTIVE: "ACTIVE";
2349
+ readonly CANCELED: "CANCELED";
2350
+ readonly EXPIRED: "EXPIRED";
2351
+ readonly PAST_DUE: "PAST_DUE";
2352
+ readonly TRIALING: "TRIALING";
2358
2353
  };
2359
2354
  type TSubscriptionStatus = TRecordValue<typeof SUBSCRIPTION_STATUS>;
2360
2355
  declare const SUBSCRIPTION_PROVIDER: {
2361
- readonly STRIPE: "stripe";
2362
- readonly APPLE: "apple";
2363
- readonly GOOGLE: "google";
2356
+ readonly STRIPE: "STRIPE";
2357
+ readonly APPLE: "APPLE";
2358
+ readonly GOOGLE: "GOOGLE";
2364
2359
  };
2365
2360
  type TSubscriptionProvider = TRecordValue<typeof SUBSCRIPTION_PROVIDER>;
2366
2361
  declare const BILLING_PERIOD: {
2367
- readonly MONTHLY: "monthly";
2368
- readonly YEARLY: "yearly";
2362
+ readonly MONTHLY: "MONTHLY";
2363
+ readonly YEARLY: "YEARLY";
2369
2364
  };
2370
2365
  type TBillingPeriod = TRecordValue<typeof BILLING_PERIOD>;
2371
2366
  interface IUserSubscription {
@@ -2374,8 +2369,8 @@ interface IUserSubscription {
2374
2369
  planId: string;
2375
2370
  status: TSubscriptionStatus;
2376
2371
  billingPeriod: TBillingPeriod;
2377
- currentPeriodStart: Date;
2378
- currentPeriodEnd: Date;
2372
+ currentPeriodStart: TDateTimeString;
2373
+ currentPeriodEnd: TDateTimeString;
2379
2374
  provider: TSubscriptionProvider;
2380
2375
  providerSubscriptionId: string;
2381
2376
  cancelAtPeriodEnd: boolean;
@@ -2396,9 +2391,7 @@ interface IWorkSessionExecutionRouteParams {
2396
2391
  interface ILimitQuery {
2397
2392
  limit?: string;
2398
2393
  }
2399
- interface ICreateWorkSessionRequest extends Omit<ICreateWorkSessionInput, "propertyId"> {
2400
- serviceProviderCompanyId: string;
2401
- performedBy: string;
2394
+ interface ICreateWorkSessionRequest extends Pick<ICreateWorkSessionInput, "serviceProviderCompanyId" | "performedBy">, Partial<Pick<ICreateWorkSessionInput, "scheduledDate" | "notes">> {
2402
2395
  }
2403
2396
  interface ICreateWorkSessionResponse extends IWorkSession {
2404
2397
  }
@@ -2410,7 +2403,7 @@ interface IGetWorkSessionWithExecutionsRequest extends IWorkSessionRouteParams {
2410
2403
  }
2411
2404
  interface IGetWorkSessionWithExecutionsResponse extends IWorkSessionWithExecutions {
2412
2405
  }
2413
- interface IUpdateWorkSessionRequest extends Partial<IWorkSession> {
2406
+ interface IUpdateWorkSessionRequest extends Partial<Pick<IWorkSession, "serviceProviderCompanyId" | "performedBy" | "status" | "scheduledDate" | "startedAt" | "completedAt" | "totalTimeMinutes" | "notes">> {
2414
2407
  }
2415
2408
  interface IUpdateWorkSessionResponse extends IWorkSession {
2416
2409
  }
@@ -2471,26 +2464,26 @@ interface ICompleteExecutionItemResponse extends IChecklistItemCompletion {
2471
2464
  }
2472
2465
 
2473
2466
  /**
2474
- * Work session status enum
2467
+ * Work session status enum.
2475
2468
  */
2476
2469
  declare const WORK_SESSION_STATUS: {
2477
- IN_PROGRESS: string;
2478
- COMPLETED: string;
2479
- CANCELLED: string;
2470
+ readonly IN_PROGRESS: "IN_PROGRESS";
2471
+ readonly COMPLETED: "COMPLETED";
2472
+ readonly CANCELLED: "CANCELLED";
2480
2473
  };
2481
2474
  type TWorkSessionStatus = TRecordValue<typeof WORK_SESSION_STATUS>;
2482
2475
  /**
2483
- * Checklist execution status enum
2476
+ * Checklist execution status enum.
2484
2477
  */
2485
2478
  declare const CHECKLIST_EXECUTION_STATUS: {
2486
- PENDING: string;
2487
- IN_PROGRESS: string;
2488
- COMPLETED: string;
2489
- SKIPPED: string;
2479
+ readonly PENDING: "PENDING";
2480
+ readonly IN_PROGRESS: "IN_PROGRESS";
2481
+ readonly COMPLETED: "COMPLETED";
2482
+ readonly SKIPPED: "SKIPPED";
2490
2483
  };
2491
2484
  type TChecklistExecutionStatus = TRecordValue<typeof CHECKLIST_EXECUTION_STATUS>;
2492
2485
  /**
2493
- * Work session
2486
+ * Work session.
2494
2487
  */
2495
2488
  interface IWorkSession {
2496
2489
  id: string;
@@ -2498,16 +2491,16 @@ interface IWorkSession {
2498
2491
  serviceProviderCompanyId: string;
2499
2492
  performedBy: string;
2500
2493
  status: TWorkSessionStatus;
2501
- scheduledDate: Date | null;
2502
- startedAt: Date;
2503
- completedAt: Date | null;
2494
+ scheduledDate: TDateTimeString | null;
2495
+ startedAt: TDateTimeString;
2496
+ completedAt: TDateTimeString | null;
2504
2497
  totalTimeMinutes: number | null;
2505
2498
  notes: string | null;
2506
- createdAt: Date;
2507
- updatedAt: Date;
2499
+ createdAt: TDateTimeString;
2500
+ updatedAt: TDateTimeString;
2508
2501
  }
2509
2502
  /**
2510
- * Checklist execution
2503
+ * Checklist execution.
2511
2504
  */
2512
2505
  interface IChecklistExecution {
2513
2506
  id: string;
@@ -2516,46 +2509,46 @@ interface IChecklistExecution {
2516
2509
  roomId: string;
2517
2510
  workerId: string;
2518
2511
  status: TChecklistExecutionStatus;
2519
- startedAt: Date | null;
2520
- completedAt: Date | null;
2512
+ startedAt: TDateTimeString | null;
2513
+ completedAt: TDateTimeString | null;
2521
2514
  timeSpentMinutes: number | null;
2522
2515
  notes: string | null;
2523
- createdAt: Date;
2524
- updatedAt: Date;
2516
+ createdAt: TDateTimeString;
2517
+ updatedAt: TDateTimeString;
2525
2518
  }
2526
2519
  /**
2527
- * Checklist item completion
2520
+ * Checklist item completion.
2528
2521
  */
2529
2522
  interface IChecklistItemCompletion {
2530
2523
  id: string;
2531
2524
  checklistExecutionId: string;
2532
2525
  roomChecklistItemId: string;
2533
2526
  completedBy: string;
2534
- completedAt: Date;
2527
+ completedAt: TDateTimeString;
2535
2528
  photoId: string | null;
2536
2529
  notes: string | null;
2537
2530
  skipped: boolean;
2538
2531
  skipReason: string | null;
2539
- createdAt: Date;
2532
+ createdAt: TDateTimeString;
2540
2533
  }
2541
2534
  /**
2542
- * Work session with executions
2535
+ * Work session with executions.
2543
2536
  */
2544
2537
  interface IWorkSessionWithExecutions extends IWorkSession {
2545
2538
  executions: IChecklistExecution[];
2546
2539
  }
2547
2540
  /**
2548
- * Input for creating a work session
2541
+ * Input for creating a work session.
2549
2542
  */
2550
2543
  interface ICreateWorkSessionInput {
2551
2544
  propertyId: string;
2552
2545
  serviceProviderCompanyId: string;
2553
2546
  performedBy: string;
2554
- scheduledDate?: Date;
2547
+ scheduledDate?: TDateTimeString;
2555
2548
  notes?: string;
2556
2549
  }
2557
2550
  /**
2558
- * Input for completing a checklist item
2551
+ * Input for completing a checklist item.
2559
2552
  */
2560
2553
  interface ICompleteChecklistItemInput {
2561
2554
  roomChecklistItemId: string;
@@ -2817,4 +2810,4 @@ interface IAddress {
2817
2810
  }
2818
2811
  declare const formatAddress: (address: IAddress) => string;
2819
2812
 
2820
- export { ACCOUNT_STATUS, ACCOUNT_TYPE, AUTH_STATUS, BILLING_PERIOD, CHECKLIST_EXECUTION_STATUS, COMPANY_TYPES, DAMAGE_SEVERITY, DAMAGE_STATUS, ERROR_CODES, 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 IAuthInvitationIdParams, type IAuthInvitationTokenParams, type IAuthSession, type IAuthSessionIdParams, type IAuthTokenResponse, type IAuthTokens, 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 ICompanyInvitationTokenParams, type ICompanyRouteParams, type ICompanyUserRouteParams, type ICompanyUserSummary, 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 IFilterCondition, 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 IGetCleanersRequest, type IGetCleanersResponse, 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 IGetSessionsRequest, type IGetSessionsResponse, 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 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_UNITS, type IPaginationRequest, 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 IRefreshRequest, type IRefreshResponse, 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 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, MONTHS, PROPERTY_STATUS, PROPERTY_TYPES, PropertyStatusOptions, PropertyTypeOptions, SERVICE_TYPES, SEVERITY, STATUS, SUBSCRIPTION_PROVIDER, SUBSCRIPTION_STATUS, ServiceTypeOptions, SeverityOptions, StatusOptions, type TAccountStatus, type TAccountType, type TApiResponse, type TAuthStatus, type TBillingPeriod, type TChecklistExecutionStatus, type TCompanyType, type TDamageSeverity, type TDamageStatus, type TDateFormat, type TDateInput, type TEmptyObject, type TErrorCode, type TErrorResponseDetail, type THttpMethod, type THttpStatusCode, type TImageEntityType, type TInventoryItemType, type TInventoryRestockOrderStatus, type TInventoryUnitType, 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 TServiceType, type TSeverity, 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, US_STATES_CODE, 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, unflatten, upperCase, validPath, wordCount };
2813
+ export { ACCOUNT_STATUS, ACCOUNT_TYPE, AUTH_STATUS, BILLING_PERIOD, CHECKLIST_EXECUTION_STATUS, COMPANY_TYPES, CompanyFilter, DAMAGE_SEVERITY, DAMAGE_STATUS, 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 ICompanyInvitationTokenParams, type ICompanyRouteParams, type ICompanyUserRouteParams, type ICompanyUserSummary, 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 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, 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, 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 TCompanyType, type TDamageSeverity, type TDamageStatus, type TDateFormat, type TDateInput, type TDateTimeString, type TEmptyObject, type TErrorCode, type TErrorResponseDetail, type TFilterCondition, type TFilterConditionValue, type THttpMethod, type THttpStatusCode, type TImageEntityType, type TInventoryItemType, type TInventoryRestockOrderStatus, type TInventoryUnitType, 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 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, unflatten, upperCase, validPath, wordCount };