@turndown/library 0.1.49 → 0.1.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +222 -193
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +441 -447
- package/dist/index.d.ts +441 -447
- package/dist/index.mjs +215 -192
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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
|
-
*
|
|
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
|
-
*
|
|
125
|
-
* @template T - The type of data being paginated
|
|
124
|
+
* Generic wrapper for paginated data.
|
|
126
125
|
*/
|
|
127
|
-
interface IDataWithPagingResult<
|
|
128
|
-
data:
|
|
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
|
-
*
|
|
136
|
+
* Sorting condition for query results.
|
|
133
137
|
*/
|
|
134
138
|
interface ISortCondition {
|
|
135
139
|
name: string;
|
|
136
|
-
direction:
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
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:
|
|
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
|
-
*
|
|
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
|
-
|
|
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:
|
|
341
|
+
filters: TFilterConditionValue[];
|
|
308
342
|
};
|
|
309
343
|
/**
|
|
310
344
|
* Format a string of digits into a U.S. phone number.
|
|
@@ -458,14 +492,16 @@ 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
|
|
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
|
|
466
|
-
|
|
467
|
-
};
|
|
500
|
+
type TDateTimeString = string;
|
|
501
|
+
type TurndownObject<TObject extends object = TUnknownRecord> = TObject;
|
|
468
502
|
type TEmptyObject = Record<string, never>;
|
|
503
|
+
type IEmptyRouteRequest = TEmptyObject;
|
|
504
|
+
type IEmptyRouteParams = TEmptyObject;
|
|
469
505
|
interface IMessageResponse {
|
|
470
506
|
message: string;
|
|
471
507
|
}
|
|
@@ -475,15 +511,13 @@ interface ISuccessResponse {
|
|
|
475
511
|
interface ICountResponse {
|
|
476
512
|
count: number;
|
|
477
513
|
}
|
|
478
|
-
interface IEmptyRouteParams {
|
|
479
|
-
}
|
|
480
514
|
interface IMetaData {
|
|
481
515
|
createdAt: Date;
|
|
482
516
|
updatedAt: Date;
|
|
483
517
|
deletedAt?: Date;
|
|
484
518
|
}
|
|
485
|
-
type TRecordValue<
|
|
486
|
-
type TRecordKeys<
|
|
519
|
+
type TRecordValue<TRecord extends object> = TRecord[keyof TRecord];
|
|
520
|
+
type TRecordKeys<TRecord extends object> = keyof TRecord;
|
|
487
521
|
interface IVersion {
|
|
488
522
|
major: number;
|
|
489
523
|
minor: number;
|
|
@@ -494,74 +528,22 @@ interface ISelectOption<TValue extends string = string> {
|
|
|
494
528
|
label: string;
|
|
495
529
|
value: TValue;
|
|
496
530
|
}
|
|
497
|
-
|
|
531
|
+
declare const MODE: {
|
|
532
|
+
readonly Create: "Create";
|
|
533
|
+
readonly Edit: "Edit";
|
|
534
|
+
readonly Delete: "Delete";
|
|
535
|
+
readonly Details: "Details";
|
|
536
|
+
};
|
|
537
|
+
type TMode = TRecordValue<typeof MODE> | null;
|
|
498
538
|
declare const IMAGE_ENTITY: {
|
|
499
|
-
readonly
|
|
500
|
-
readonly
|
|
501
|
-
readonly
|
|
502
|
-
readonly
|
|
503
|
-
readonly
|
|
539
|
+
readonly UserProfile: "UserProfile";
|
|
540
|
+
readonly Property: "Property";
|
|
541
|
+
readonly PropertyRoom: "PropertyRoom";
|
|
542
|
+
readonly MaintenanceTicket: "MaintenanceTicket";
|
|
543
|
+
readonly WorkReport: "WorkReport";
|
|
504
544
|
};
|
|
505
545
|
type TImageEntityType = TRecordValue<typeof IMAGE_ENTITY>;
|
|
506
|
-
|
|
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>;
|
|
546
|
+
type TUSStateCode = TRecordKeys<typeof US_JURISDICTIONS>;
|
|
565
547
|
declare const US_JURISDICTIONS: {
|
|
566
548
|
readonly AL: "Alabama";
|
|
567
549
|
readonly AK: "Alaska";
|
|
@@ -621,7 +603,6 @@ declare const US_JURISDICTIONS: {
|
|
|
621
603
|
readonly MP: "Northern Mariana Islands";
|
|
622
604
|
};
|
|
623
605
|
type TUSJurisdiction = TRecordValue<typeof US_JURISDICTIONS>;
|
|
624
|
-
declare const UnitedStatesJurisdictionOptions: ISelectOption<TUSJurisdiction>[];
|
|
625
606
|
declare const STATUS: {
|
|
626
607
|
readonly Pending: "Pending";
|
|
627
608
|
readonly InProgress: "InProgress";
|
|
@@ -631,14 +612,12 @@ declare const STATUS: {
|
|
|
631
612
|
readonly Inactive: "Inactive";
|
|
632
613
|
};
|
|
633
614
|
type TStatus = TRecordValue<typeof STATUS>;
|
|
634
|
-
declare const StatusOptions: ISelectOption<TStatus>[];
|
|
635
615
|
declare const SEVERITY: {
|
|
636
616
|
readonly Low: "Low";
|
|
637
617
|
readonly Medium: "Medium";
|
|
638
618
|
readonly High: "High";
|
|
639
619
|
};
|
|
640
620
|
type TSeverity = TRecordValue<typeof SEVERITY>;
|
|
641
|
-
declare const SeverityOptions: ISelectOption<TSeverity>[];
|
|
642
621
|
declare const SERVICE_TYPES: {
|
|
643
622
|
readonly Property: "Property";
|
|
644
623
|
readonly Cleaning: "Cleaning";
|
|
@@ -647,7 +626,6 @@ declare const SERVICE_TYPES: {
|
|
|
647
626
|
readonly Other: "Other";
|
|
648
627
|
};
|
|
649
628
|
type TServiceType = TRecordValue<typeof SERVICE_TYPES>;
|
|
650
|
-
declare const ServiceTypeOptions: ISelectOption<TServiceType>[];
|
|
651
629
|
declare const MONTHS: readonly ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
|
|
652
630
|
type TMonth = (typeof MONTHS)[number];
|
|
653
631
|
interface IWeekDay {
|
|
@@ -657,13 +635,96 @@ interface IWeekDay {
|
|
|
657
635
|
letter: string;
|
|
658
636
|
isToday: boolean;
|
|
659
637
|
}
|
|
638
|
+
declare const UnitedStatesJurisdictionOptions: ISelectOption<TRecordValue<{
|
|
639
|
+
readonly AL: "Alabama";
|
|
640
|
+
readonly AK: "Alaska";
|
|
641
|
+
readonly AZ: "Arizona";
|
|
642
|
+
readonly AR: "Arkansas";
|
|
643
|
+
readonly CA: "California";
|
|
644
|
+
readonly CO: "Colorado";
|
|
645
|
+
readonly CT: "Connecticut";
|
|
646
|
+
readonly DE: "Delaware";
|
|
647
|
+
readonly FL: "Florida";
|
|
648
|
+
readonly GA: "Georgia";
|
|
649
|
+
readonly HI: "Hawaii";
|
|
650
|
+
readonly ID: "Idaho";
|
|
651
|
+
readonly IL: "Illinois";
|
|
652
|
+
readonly IN: "Indiana";
|
|
653
|
+
readonly IA: "Iowa";
|
|
654
|
+
readonly KS: "Kansas";
|
|
655
|
+
readonly KY: "Kentucky";
|
|
656
|
+
readonly LA: "Louisiana";
|
|
657
|
+
readonly ME: "Maine";
|
|
658
|
+
readonly MD: "Maryland";
|
|
659
|
+
readonly MA: "Massachusetts";
|
|
660
|
+
readonly MI: "Michigan";
|
|
661
|
+
readonly MN: "Minnesota";
|
|
662
|
+
readonly MS: "Mississippi";
|
|
663
|
+
readonly MO: "Missouri";
|
|
664
|
+
readonly MT: "Montana";
|
|
665
|
+
readonly NE: "Nebraska";
|
|
666
|
+
readonly NV: "Nevada";
|
|
667
|
+
readonly NH: "New Hampshire";
|
|
668
|
+
readonly NJ: "New Jersey";
|
|
669
|
+
readonly NM: "New Mexico";
|
|
670
|
+
readonly NY: "New York";
|
|
671
|
+
readonly NC: "North Carolina";
|
|
672
|
+
readonly ND: "North Dakota";
|
|
673
|
+
readonly OH: "Ohio";
|
|
674
|
+
readonly OK: "Oklahoma";
|
|
675
|
+
readonly OR: "Oregon";
|
|
676
|
+
readonly PA: "Pennsylvania";
|
|
677
|
+
readonly RI: "Rhode Island";
|
|
678
|
+
readonly SC: "South Carolina";
|
|
679
|
+
readonly SD: "South Dakota";
|
|
680
|
+
readonly TN: "Tennessee";
|
|
681
|
+
readonly TX: "Texas";
|
|
682
|
+
readonly UT: "Utah";
|
|
683
|
+
readonly VT: "Vermont";
|
|
684
|
+
readonly VA: "Virginia";
|
|
685
|
+
readonly WA: "Washington";
|
|
686
|
+
readonly WV: "West Virginia";
|
|
687
|
+
readonly WI: "Wisconsin";
|
|
688
|
+
readonly WY: "Wyoming";
|
|
689
|
+
readonly DC: "District of Columbia";
|
|
690
|
+
readonly PR: "Puerto Rico";
|
|
691
|
+
readonly GU: "Guam";
|
|
692
|
+
readonly VI: "United States Virgin Islands";
|
|
693
|
+
readonly AS: "American Samoa";
|
|
694
|
+
readonly MP: "Northern Mariana Islands";
|
|
695
|
+
}>>[];
|
|
696
|
+
declare const StatusOptions: ISelectOption<TRecordValue<{
|
|
697
|
+
readonly Pending: "Pending";
|
|
698
|
+
readonly InProgress: "InProgress";
|
|
699
|
+
readonly Completed: "Completed";
|
|
700
|
+
readonly Overdue: "Overdue";
|
|
701
|
+
readonly Active: "Active";
|
|
702
|
+
readonly Inactive: "Inactive";
|
|
703
|
+
}>>[];
|
|
704
|
+
declare const SeverityOptions: ISelectOption<TRecordValue<{
|
|
705
|
+
readonly Low: "Low";
|
|
706
|
+
readonly Medium: "Medium";
|
|
707
|
+
readonly High: "High";
|
|
708
|
+
}>>[];
|
|
709
|
+
declare const ServiceTypeOptions: ISelectOption<TRecordValue<{
|
|
710
|
+
readonly Property: "Property";
|
|
711
|
+
readonly Cleaning: "Cleaning";
|
|
712
|
+
readonly Maintenance: "Maintenance";
|
|
713
|
+
readonly Inspection: "Inspections";
|
|
714
|
+
readonly Other: "Other";
|
|
715
|
+
}>>[];
|
|
660
716
|
|
|
661
717
|
/**
|
|
662
718
|
* API Response Types
|
|
663
|
-
* Standard response structure for all API endpoints
|
|
719
|
+
* Standard response structure for all API endpoints.
|
|
664
720
|
*/
|
|
665
721
|
|
|
666
722
|
declare const HTTP_METHOD: {
|
|
723
|
+
readonly GET: "GET";
|
|
724
|
+
readonly POST: "POST";
|
|
725
|
+
readonly PUT: "PUT";
|
|
726
|
+
readonly PATCH: "PATCH";
|
|
727
|
+
readonly DELETE: "DELETE";
|
|
667
728
|
readonly Get: "GET";
|
|
668
729
|
readonly Post: "POST";
|
|
669
730
|
readonly Put: "PUT";
|
|
@@ -671,29 +732,9 @@ declare const HTTP_METHOD: {
|
|
|
671
732
|
readonly Delete: "DELETE";
|
|
672
733
|
};
|
|
673
734
|
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
735
|
/**
|
|
695
736
|
* Error Codes
|
|
696
|
-
* Standardized error codes used across the platform
|
|
737
|
+
* Standardized error codes used across the platform.
|
|
697
738
|
*/
|
|
698
739
|
declare const ERROR_CODES: {
|
|
699
740
|
readonly BAD_REQUEST: "BAD_REQUEST";
|
|
@@ -706,29 +747,62 @@ declare const ERROR_CODES: {
|
|
|
706
747
|
readonly NOT_FOUND: "NOT_FOUND";
|
|
707
748
|
readonly CONFLICT: "CONFLICT";
|
|
708
749
|
readonly ALREADY_EXISTS: "ALREADY_EXISTS";
|
|
709
|
-
readonly RATE_LIMIT: "RATE_LIMIT";
|
|
710
750
|
readonly RATE_LIMIT_EXCEEDED: "RATE_LIMIT_EXCEEDED";
|
|
711
751
|
readonly INTERNAL_ERROR: "INTERNAL_ERROR";
|
|
712
752
|
readonly DATABASE_ERROR: "DATABASE_ERROR";
|
|
753
|
+
readonly NOT_IMPLEMENTED: "NOT_IMPLEMENTED";
|
|
754
|
+
readonly BadRequest: "BAD_REQUEST";
|
|
755
|
+
readonly ValidationError: "VALIDATION_ERROR";
|
|
756
|
+
readonly MissingFields: "MISSING_FIELDS";
|
|
757
|
+
readonly Unauthorized: "UNAUTHORIZED";
|
|
758
|
+
readonly InvalidToken: "INVALID_TOKEN";
|
|
759
|
+
readonly InvalidCredentials: "INVALID_CREDENTIALS";
|
|
760
|
+
readonly Forbidden: "FORBIDDEN";
|
|
761
|
+
readonly NotFound: "NOT_FOUND";
|
|
762
|
+
readonly Conflict: "CONFLICT";
|
|
763
|
+
readonly AlreadyExists: "ALREADY_EXISTS";
|
|
764
|
+
readonly RateLimit: "RATE_LIMIT_EXCEEDED";
|
|
765
|
+
readonly InternalError: "INTERNAL_ERROR";
|
|
766
|
+
readonly DatabaseError: "DATABASE_ERROR";
|
|
767
|
+
readonly NotImplemented: "NOT_IMPLEMENTED";
|
|
713
768
|
};
|
|
714
769
|
type TErrorCode = (typeof ERROR_CODES)[keyof typeof ERROR_CODES];
|
|
715
770
|
/**
|
|
716
771
|
* HTTP Status Codes
|
|
717
|
-
* Common status codes used in responses
|
|
772
|
+
* Common status codes used in API responses.
|
|
718
773
|
*/
|
|
719
774
|
declare const HTTP_STATUS: {
|
|
720
|
-
readonly
|
|
721
|
-
readonly
|
|
722
|
-
readonly
|
|
723
|
-
readonly
|
|
724
|
-
readonly
|
|
725
|
-
readonly
|
|
726
|
-
readonly
|
|
727
|
-
readonly
|
|
728
|
-
readonly
|
|
729
|
-
readonly
|
|
775
|
+
readonly Ok: 200;
|
|
776
|
+
readonly Created: 201;
|
|
777
|
+
readonly NoContent: 204;
|
|
778
|
+
readonly BadRequest: 400;
|
|
779
|
+
readonly Unauthorized: 401;
|
|
780
|
+
readonly Forbidden: 403;
|
|
781
|
+
readonly NotFound: 404;
|
|
782
|
+
readonly Conflict: 409;
|
|
783
|
+
readonly UnprocessableEntity: 422;
|
|
784
|
+
readonly TooManyRequests: 429;
|
|
785
|
+
readonly InternalError: 500;
|
|
730
786
|
};
|
|
731
787
|
type THttpStatusCode = (typeof HTTP_STATUS)[keyof typeof HTTP_STATUS];
|
|
788
|
+
type TApiErrorDetails = TJsonValue | undefined;
|
|
789
|
+
interface IApiError<TDetails = TApiErrorDetails> {
|
|
790
|
+
message: string;
|
|
791
|
+
code?: TErrorCode;
|
|
792
|
+
details?: TDetails;
|
|
793
|
+
}
|
|
794
|
+
interface IApiMeta {
|
|
795
|
+
timestamp: string;
|
|
796
|
+
version: string;
|
|
797
|
+
environment: string;
|
|
798
|
+
requestId?: string;
|
|
799
|
+
}
|
|
800
|
+
interface IApiResponse<TData = null, TErrorDetails = TApiErrorDetails> {
|
|
801
|
+
success: boolean;
|
|
802
|
+
data?: TData | null;
|
|
803
|
+
error?: IApiError<TErrorDetails> | null;
|
|
804
|
+
meta?: IApiMeta;
|
|
805
|
+
}
|
|
732
806
|
|
|
733
807
|
interface IUserIdParams {
|
|
734
808
|
id: string;
|
|
@@ -736,8 +810,7 @@ interface IUserIdParams {
|
|
|
736
810
|
interface IGetUserResponse {
|
|
737
811
|
user: IUserSafe | null;
|
|
738
812
|
}
|
|
739
|
-
|
|
740
|
-
}
|
|
813
|
+
type IGetCurrentUserRequest = IEmptyRouteRequest;
|
|
741
814
|
interface IGetCurrentUserResponse extends IGetUserResponse {
|
|
742
815
|
}
|
|
743
816
|
interface IGetUserByIdRequest extends IUserIdParams {
|
|
@@ -749,35 +822,50 @@ interface IGetUserByEmailRequest {
|
|
|
749
822
|
}
|
|
750
823
|
interface IGetUserByEmailResponse extends IGetUserResponse {
|
|
751
824
|
}
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
cleaners: IUserSafe[];
|
|
825
|
+
type IGetStaffRequest = IEmptyRouteRequest;
|
|
826
|
+
interface IGetStaffResponse {
|
|
827
|
+
staff: IUserSafe[];
|
|
756
828
|
}
|
|
757
|
-
interface IUpdateUserRequest {
|
|
758
|
-
firstName?: string;
|
|
759
|
-
lastName?: string;
|
|
760
|
-
mi?: string;
|
|
761
|
-
username?: string;
|
|
762
|
-
email?: string;
|
|
763
|
-
phoneNumber?: string;
|
|
764
|
-
phoneFormat?: string;
|
|
765
|
-
preferredLanguage?: TLanguage;
|
|
829
|
+
interface IUpdateUserRequest extends Partial<Pick<IUserSafe, "firstName" | "lastName" | "mi" | "username" | "email" | "phoneNumber" | "phoneFormat" | "preferredLanguage">> {
|
|
766
830
|
}
|
|
767
831
|
interface IUpdateUserResponse {
|
|
768
832
|
user: IUserSafe;
|
|
769
833
|
}
|
|
770
|
-
|
|
771
|
-
}
|
|
834
|
+
type IDeleteUserRequest = IEmptyRouteRequest;
|
|
772
835
|
interface IDeleteUserResponse {
|
|
773
836
|
message: string;
|
|
774
837
|
}
|
|
775
838
|
interface IGetUsersByAccountTypeRequest {
|
|
776
839
|
accountType: TAccountType;
|
|
777
840
|
}
|
|
841
|
+
interface IGetUsersByAccountTypeResponse {
|
|
842
|
+
users: IUserSafe[];
|
|
843
|
+
}
|
|
778
844
|
|
|
845
|
+
declare const ACCOUNT_TYPE: {
|
|
846
|
+
readonly TurndownAdmin: "TurndownAdmin";
|
|
847
|
+
readonly AccountAdmin: "AccountAdmin";
|
|
848
|
+
readonly Manager: "Manager";
|
|
849
|
+
readonly Staff: "Staff";
|
|
850
|
+
readonly Guest: "Guest";
|
|
851
|
+
};
|
|
852
|
+
type TAccountType = TRecordValue<typeof ACCOUNT_TYPE>;
|
|
853
|
+
declare const ACCOUNT_STATUS: {
|
|
854
|
+
readonly Active: "Active";
|
|
855
|
+
readonly Inactive: "Inactive";
|
|
856
|
+
readonly Suspended: "Suspended";
|
|
857
|
+
readonly Pending: "Pending";
|
|
858
|
+
};
|
|
859
|
+
type TAccountStatus = TRecordValue<typeof ACCOUNT_STATUS>;
|
|
860
|
+
declare const LANGUAGE: {
|
|
861
|
+
readonly English: "English";
|
|
862
|
+
readonly French: "French";
|
|
863
|
+
readonly Spanish: "Spanish";
|
|
864
|
+
readonly German: "German";
|
|
865
|
+
};
|
|
866
|
+
type TLanguage = TRecordValue<typeof LANGUAGE>;
|
|
779
867
|
interface IUser extends IMetaData {
|
|
780
|
-
id: string;
|
|
868
|
+
readonly id: string;
|
|
781
869
|
firstName: string;
|
|
782
870
|
lastName?: string;
|
|
783
871
|
mi?: string;
|
|
@@ -787,40 +875,17 @@ interface IUser extends IMetaData {
|
|
|
787
875
|
passwordHash?: string;
|
|
788
876
|
loginAttempts?: number;
|
|
789
877
|
locked?: boolean;
|
|
790
|
-
passwordLastReset?:
|
|
878
|
+
passwordLastReset?: Date;
|
|
791
879
|
passwordResetRequired?: boolean;
|
|
792
|
-
lastLogin?:
|
|
880
|
+
lastLogin?: Date;
|
|
793
881
|
accountType: TAccountType;
|
|
794
882
|
status: TAccountStatus;
|
|
795
883
|
phoneNumber?: string;
|
|
796
884
|
phoneFormat?: string;
|
|
797
885
|
preferredLanguage?: TLanguage;
|
|
798
|
-
companyId?: string;
|
|
799
886
|
biometrics?: string;
|
|
800
887
|
}
|
|
801
|
-
|
|
802
|
-
}
|
|
803
|
-
declare const ACCOUNT_TYPE: {
|
|
804
|
-
readonly TURNDOWN_ADMIN: "TURNDOWN_ADMIN";
|
|
805
|
-
readonly ACCOUNT_ADMIN: "ACCOUNT_ADMIN";
|
|
806
|
-
readonly STAFF: "STAFF";
|
|
807
|
-
readonly GUEST: "GUEST";
|
|
808
|
-
};
|
|
809
|
-
type TAccountType = TRecordValue<typeof ACCOUNT_TYPE>;
|
|
810
|
-
declare const ACCOUNT_STATUS: {
|
|
811
|
-
readonly ACTIVE: "ACTIVE";
|
|
812
|
-
readonly INACTIVE: "INACTIVE";
|
|
813
|
-
readonly SUSPENDED: "SUSPENDED";
|
|
814
|
-
readonly PENDING: "PENDING";
|
|
815
|
-
};
|
|
816
|
-
type TAccountStatus = TRecordValue<typeof ACCOUNT_STATUS>;
|
|
817
|
-
declare const LANGUAGE: {
|
|
818
|
-
readonly ENGLISH: "ENGLISH";
|
|
819
|
-
readonly FRENCH: "FRENCH";
|
|
820
|
-
readonly SPANISH: "SPANISH";
|
|
821
|
-
readonly GERMAN: "GERMAN";
|
|
822
|
-
};
|
|
823
|
-
type TLanguage = TRecordValue<typeof LANGUAGE>;
|
|
888
|
+
type IUserSafe = Omit<IUser, "passwordLastReset" | "lastLogin" | "passwordHash" | "loginAttempts" | "biometrics">;
|
|
824
889
|
interface IDeviceInfo {
|
|
825
890
|
userAgent?: string;
|
|
826
891
|
ip?: string;
|
|
@@ -829,8 +894,8 @@ interface IDeviceInfo {
|
|
|
829
894
|
interface IUserSession {
|
|
830
895
|
id: number;
|
|
831
896
|
deviceInfo?: IDeviceInfo | null;
|
|
832
|
-
createdAt:
|
|
833
|
-
lastUsedAt:
|
|
897
|
+
createdAt: Date;
|
|
898
|
+
lastUsedAt: Date;
|
|
834
899
|
}
|
|
835
900
|
|
|
836
901
|
interface IAuthSessionIdParams {
|
|
@@ -842,6 +907,20 @@ interface IAuthInvitationTokenParams {
|
|
|
842
907
|
interface IAuthInvitationIdParams {
|
|
843
908
|
invitationId: string;
|
|
844
909
|
}
|
|
910
|
+
interface IAuthMessageResponse {
|
|
911
|
+
message: string;
|
|
912
|
+
}
|
|
913
|
+
interface IAuthRefreshTokenResponse extends IAuthTokenResponse {
|
|
914
|
+
}
|
|
915
|
+
interface IAuthInvitationBaseResponse {
|
|
916
|
+
id: string;
|
|
917
|
+
companyId: string;
|
|
918
|
+
companyName: string;
|
|
919
|
+
role: TAccountType;
|
|
920
|
+
invitedBy: string;
|
|
921
|
+
invitedByName: string;
|
|
922
|
+
expiresAt: Date;
|
|
923
|
+
}
|
|
845
924
|
interface IRegisterRequest {
|
|
846
925
|
email: string;
|
|
847
926
|
password: string;
|
|
@@ -864,42 +943,33 @@ interface IRefreshSessionRequest {
|
|
|
864
943
|
refreshToken: string;
|
|
865
944
|
deviceInfo?: IDeviceInfo;
|
|
866
945
|
}
|
|
867
|
-
interface IRefreshSessionResponse {
|
|
868
|
-
user?: IUserSafe;
|
|
869
|
-
accessToken: string;
|
|
870
|
-
refreshToken: string;
|
|
871
|
-
expiresAt?: string | null;
|
|
872
|
-
companyId?: string;
|
|
946
|
+
interface IRefreshSessionResponse extends IAuthRefreshTokenResponse {
|
|
873
947
|
}
|
|
874
948
|
interface ILogoutRequest {
|
|
875
949
|
refreshToken?: string;
|
|
876
950
|
}
|
|
877
|
-
interface ILogoutResponse {
|
|
878
|
-
message: string;
|
|
951
|
+
interface ILogoutResponse extends IAuthMessageResponse {
|
|
879
952
|
}
|
|
880
953
|
interface ILogoutAllRequest {
|
|
881
954
|
userId: string;
|
|
882
955
|
}
|
|
883
|
-
interface ILogoutAllResponse {
|
|
884
|
-
message: string;
|
|
956
|
+
interface ILogoutAllResponse extends IAuthMessageResponse {
|
|
885
957
|
}
|
|
886
958
|
interface IGetMeRequest {
|
|
887
959
|
userId: string;
|
|
888
960
|
}
|
|
889
961
|
interface IGetMeResponse extends IGetUserResponse {
|
|
890
962
|
}
|
|
891
|
-
|
|
892
|
-
}
|
|
963
|
+
type IGetSessionsRequest = IEmptyRouteRequest;
|
|
893
964
|
interface IGetSessionsResponse {
|
|
894
965
|
id: string;
|
|
895
966
|
deviceInfo: string;
|
|
896
|
-
createdAt:
|
|
897
|
-
lastUsedAt:
|
|
967
|
+
createdAt: Date;
|
|
968
|
+
lastUsedAt: Date;
|
|
898
969
|
}
|
|
899
970
|
interface IRevokeSessionRequest extends IAuthSessionIdParams {
|
|
900
971
|
}
|
|
901
|
-
interface IRevokeSessionResponse {
|
|
902
|
-
message: string;
|
|
972
|
+
interface IRevokeSessionResponse extends IAuthMessageResponse {
|
|
903
973
|
}
|
|
904
974
|
interface IChangePasswordRequest {
|
|
905
975
|
currentPassword: string;
|
|
@@ -910,11 +980,9 @@ interface IChangePasswordResponse extends IGetUserResponse {
|
|
|
910
980
|
interface IForgotPasswordRequest {
|
|
911
981
|
email: string;
|
|
912
982
|
}
|
|
913
|
-
interface IForgotPasswordResponse {
|
|
914
|
-
message: string;
|
|
915
|
-
}
|
|
916
|
-
interface IGetLoginHistoryRequest {
|
|
983
|
+
interface IForgotPasswordResponse extends IAuthMessageResponse {
|
|
917
984
|
}
|
|
985
|
+
type IGetLoginHistoryRequest = IEmptyRouteRequest;
|
|
918
986
|
interface IGetLoginHistoryResponse {
|
|
919
987
|
id: string;
|
|
920
988
|
email: string;
|
|
@@ -930,15 +998,8 @@ interface IGetLoginHistoryListResponse {
|
|
|
930
998
|
}
|
|
931
999
|
interface IValidateInvitationRequest extends IAuthInvitationTokenParams {
|
|
932
1000
|
}
|
|
933
|
-
interface IValidateInvitationResponse {
|
|
934
|
-
id: string;
|
|
935
|
-
companyId: string;
|
|
936
|
-
companyName: string;
|
|
1001
|
+
interface IValidateInvitationResponse extends IAuthInvitationBaseResponse {
|
|
937
1002
|
email: string;
|
|
938
|
-
role: TAccountType;
|
|
939
|
-
invitedBy: string;
|
|
940
|
-
invitedByName: string;
|
|
941
|
-
expiresAt: string;
|
|
942
1003
|
userExists: boolean;
|
|
943
1004
|
}
|
|
944
1005
|
interface IRegisterWithInvitationRequest {
|
|
@@ -963,18 +1024,10 @@ interface IAcceptInvitationRouteResponse {
|
|
|
963
1024
|
invite: IAcceptInvitationResponse;
|
|
964
1025
|
message: string;
|
|
965
1026
|
}
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
interface IGetPendingInvitationsResponse {
|
|
969
|
-
id: string;
|
|
1027
|
+
type IGetPendingInvitationsRequest = IEmptyRouteRequest;
|
|
1028
|
+
interface IGetPendingInvitationsResponse extends IAuthInvitationBaseResponse {
|
|
970
1029
|
token: string;
|
|
971
|
-
|
|
972
|
-
companyName: string;
|
|
973
|
-
role: TAccountType;
|
|
974
|
-
invitedBy: string;
|
|
975
|
-
invitedByName: string;
|
|
976
|
-
expiresAt: string;
|
|
977
|
-
createdAt: string;
|
|
1030
|
+
createdAt: Date;
|
|
978
1031
|
}
|
|
979
1032
|
interface IGetPendingInvitationsListResponse {
|
|
980
1033
|
invitations: IGetPendingInvitationsResponse[];
|
|
@@ -983,8 +1036,7 @@ interface IGetPendingInvitationsListResponse {
|
|
|
983
1036
|
interface IRevokeInvitationRequest extends IAuthInvitationIdParams {
|
|
984
1037
|
revokedBy?: string;
|
|
985
1038
|
}
|
|
986
|
-
interface IRevokeInvitationResponse {
|
|
987
|
-
message: string;
|
|
1039
|
+
interface IRevokeInvitationResponse extends IAuthMessageResponse {
|
|
988
1040
|
}
|
|
989
1041
|
interface IRefreshRequest extends IRefreshSessionRequest {
|
|
990
1042
|
}
|
|
@@ -999,10 +1051,6 @@ declare const AUTH_STATUS: {
|
|
|
999
1051
|
readonly SessionExpired: "SessionExpired";
|
|
1000
1052
|
};
|
|
1001
1053
|
type TAuthStatus = (typeof AUTH_STATUS)[keyof typeof AUTH_STATUS];
|
|
1002
|
-
/**
|
|
1003
|
-
* Token Payload
|
|
1004
|
-
* JWT token payload structure
|
|
1005
|
-
*/
|
|
1006
1054
|
interface ITokenPayload {
|
|
1007
1055
|
userId: string;
|
|
1008
1056
|
email: string;
|
|
@@ -1012,39 +1060,29 @@ interface IRefreshTokenData {
|
|
|
1012
1060
|
token: string;
|
|
1013
1061
|
tokenHash: string;
|
|
1014
1062
|
tokenFamily: string;
|
|
1015
|
-
expiresAt:
|
|
1063
|
+
expiresAt: Date;
|
|
1016
1064
|
}
|
|
1017
|
-
interface
|
|
1018
|
-
user: IUserSafe;
|
|
1065
|
+
interface IAuthTokenBundle {
|
|
1019
1066
|
accessToken: string;
|
|
1020
1067
|
refreshToken: string;
|
|
1021
|
-
expiresAt
|
|
1022
|
-
companyId?: string;
|
|
1068
|
+
expiresAt: Date | null;
|
|
1023
1069
|
}
|
|
1024
1070
|
interface IStoredAuthSession {
|
|
1025
1071
|
accessToken: string | null;
|
|
1026
1072
|
refreshToken: string | null;
|
|
1027
|
-
expiresAt
|
|
1073
|
+
expiresAt: Date | null;
|
|
1028
1074
|
}
|
|
1029
|
-
interface
|
|
1030
|
-
|
|
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;
|
|
1075
|
+
interface IAuthTokenResponse extends IAuthTokenBundle {
|
|
1076
|
+
user: IUserSafe | null;
|
|
1077
|
+
companyId?: string;
|
|
1037
1078
|
}
|
|
1038
1079
|
interface IAuthSession {
|
|
1039
|
-
|
|
1080
|
+
user: IUserSafe | null;
|
|
1040
1081
|
accessToken: string | null;
|
|
1041
|
-
expiresAt
|
|
1082
|
+
expiresAt: Date | null;
|
|
1042
1083
|
}
|
|
1043
|
-
interface ISetAuthSessionParams {
|
|
1084
|
+
interface ISetAuthSessionParams extends IAuthTokenBundle {
|
|
1044
1085
|
user: IUserSafe | null;
|
|
1045
|
-
accessToken: string;
|
|
1046
|
-
refreshToken: string;
|
|
1047
|
-
expiresAt?: string | null;
|
|
1048
1086
|
}
|
|
1049
1087
|
interface ILoginCredentials {
|
|
1050
1088
|
email: string;
|
|
@@ -1058,10 +1096,6 @@ interface IRegisterCredentials {
|
|
|
1058
1096
|
email: string;
|
|
1059
1097
|
password: string;
|
|
1060
1098
|
}
|
|
1061
|
-
/**
|
|
1062
|
-
* Password Validation Rules
|
|
1063
|
-
* Rules for password validation
|
|
1064
|
-
*/
|
|
1065
1099
|
interface IPasswordValidationRules {
|
|
1066
1100
|
minLength: number;
|
|
1067
1101
|
requireUppercase: boolean;
|
|
@@ -1069,26 +1103,14 @@ interface IPasswordValidationRules {
|
|
|
1069
1103
|
requireNumbers: boolean;
|
|
1070
1104
|
requireSpecialChars: boolean;
|
|
1071
1105
|
}
|
|
1072
|
-
/**
|
|
1073
|
-
* Password Validation Result
|
|
1074
|
-
* Result of password validation
|
|
1075
|
-
*/
|
|
1076
1106
|
interface IPasswordValidationResult {
|
|
1077
1107
|
valid: boolean;
|
|
1078
1108
|
errors: string[];
|
|
1079
1109
|
}
|
|
1080
|
-
/**
|
|
1081
|
-
* Email Validation Result
|
|
1082
|
-
* Result of email validation
|
|
1083
|
-
*/
|
|
1084
1110
|
interface IEmailValidationResult {
|
|
1085
1111
|
valid: boolean;
|
|
1086
1112
|
error?: string;
|
|
1087
1113
|
}
|
|
1088
|
-
/**
|
|
1089
|
-
* Rate Limit Status
|
|
1090
|
-
* Information about rate limiting status
|
|
1091
|
-
*/
|
|
1092
1114
|
interface IRateLimitStatus {
|
|
1093
1115
|
isLimited: boolean;
|
|
1094
1116
|
attempts: number;
|
|
@@ -1133,7 +1155,7 @@ interface IGetTemplateWithItemsRequest extends ITemplateIdParams {
|
|
|
1133
1155
|
}
|
|
1134
1156
|
interface IGetTemplateWithItemsResponse extends IChecklistTemplateWithItems {
|
|
1135
1157
|
}
|
|
1136
|
-
interface IUpdateTemplateRequest extends Partial<ICreateTemplateInput
|
|
1158
|
+
interface IUpdateTemplateRequest extends Partial<Pick<ICreateTemplateInput, "name" | "description" | "isActive">> {
|
|
1137
1159
|
}
|
|
1138
1160
|
interface IUpdateTemplateResponse extends IChecklistTemplate {
|
|
1139
1161
|
}
|
|
@@ -1239,29 +1261,27 @@ interface ICompanyInvitationTokenParams {
|
|
|
1239
1261
|
interface ICompanyInvitationIdParams extends ICompanyRouteParams {
|
|
1240
1262
|
invitationId: string;
|
|
1241
1263
|
}
|
|
1264
|
+
declare const CompanyFilter: {
|
|
1265
|
+
readonly Active: "active";
|
|
1266
|
+
readonly Pending: "pending";
|
|
1267
|
+
readonly All: "all";
|
|
1268
|
+
};
|
|
1269
|
+
type TCompanyFilter = (typeof CompanyFilter)[keyof typeof CompanyFilter];
|
|
1242
1270
|
interface IGetCompaniesQuery {
|
|
1243
1271
|
search?: string;
|
|
1244
|
-
filter?:
|
|
1272
|
+
filter?: TCompanyFilter;
|
|
1245
1273
|
}
|
|
1246
|
-
interface ICreateCompanyRequest {
|
|
1247
|
-
displayName: string;
|
|
1248
|
-
addressLine1: string;
|
|
1249
|
-
addressLine2?: string;
|
|
1250
|
-
city: string;
|
|
1251
|
-
stateCode: TUSStateCode;
|
|
1252
|
-
postalCode: string;
|
|
1253
|
-
companyType: TCompanyType;
|
|
1274
|
+
interface ICreateCompanyRequest extends Pick<ICompany, "displayName" | "addressLine1" | "addressLine2" | "city" | "stateCode" | "postalCode" | "companyType"> {
|
|
1254
1275
|
}
|
|
1255
1276
|
interface ICreateCompanyResponse extends ICompany {
|
|
1256
1277
|
}
|
|
1257
|
-
|
|
1258
|
-
}
|
|
1278
|
+
type IGetCompaniesRequest = IEmptyRouteRequest;
|
|
1259
1279
|
type IGetCompaniesResponse = ICompany[];
|
|
1260
1280
|
interface IGetCompanyByIdRequest extends ICompanyRouteParams {
|
|
1261
1281
|
}
|
|
1262
1282
|
interface IGetCompanyByIdResponse extends ICompany {
|
|
1263
1283
|
}
|
|
1264
|
-
interface IUpdateCompanyRequest extends Partial<ICompany
|
|
1284
|
+
interface IUpdateCompanyRequest extends Partial<Pick<ICompany, "displayName" | "addressLine1" | "addressLine2" | "city" | "stateCode" | "postalCode" | "companyType" | "country" | "timezone" | "imageUrl">> {
|
|
1265
1285
|
}
|
|
1266
1286
|
interface IUpdateCompanyResponse extends ICompany {
|
|
1267
1287
|
}
|
|
@@ -1277,10 +1297,10 @@ interface ICompanyUserSummary {
|
|
|
1277
1297
|
id: string;
|
|
1278
1298
|
email: string;
|
|
1279
1299
|
firstName: string;
|
|
1280
|
-
lastName
|
|
1300
|
+
lastName?: string;
|
|
1281
1301
|
role: TAccountType;
|
|
1282
1302
|
}
|
|
1283
|
-
type IGetCompanyUsersResponse =
|
|
1303
|
+
type IGetCompanyUsersResponse = ICompanyUserSummary[];
|
|
1284
1304
|
interface IGetUserCompaniesRequest extends ICompanyUserRouteParams {
|
|
1285
1305
|
}
|
|
1286
1306
|
type IGetUserCompaniesResponse = ICompany[];
|
|
@@ -1290,7 +1310,7 @@ interface IInviteCompanyToCompanyRequest {
|
|
|
1290
1310
|
interface IInviteCompanyToCompanyResponse {
|
|
1291
1311
|
id: string;
|
|
1292
1312
|
token: string;
|
|
1293
|
-
expiresAt: Date
|
|
1313
|
+
expiresAt: Date;
|
|
1294
1314
|
}
|
|
1295
1315
|
interface IValidateCompanyInvitationRequest extends ICompanyInvitationTokenParams {
|
|
1296
1316
|
}
|
|
@@ -1300,7 +1320,7 @@ interface IValidateCompanyInvitationResponse {
|
|
|
1300
1320
|
providerCompanyId: string;
|
|
1301
1321
|
invitedBy: string;
|
|
1302
1322
|
message?: string | null;
|
|
1303
|
-
expiresAt: Date
|
|
1323
|
+
expiresAt: Date;
|
|
1304
1324
|
requesterCompanyName: string;
|
|
1305
1325
|
providerCompanyName: string;
|
|
1306
1326
|
invitedByName: string;
|
|
@@ -1336,13 +1356,13 @@ interface ICompany extends IMetaData {
|
|
|
1336
1356
|
postalCode: string;
|
|
1337
1357
|
country?: string;
|
|
1338
1358
|
timezone?: string;
|
|
1339
|
-
|
|
1359
|
+
imageUrl?: string;
|
|
1340
1360
|
}
|
|
1341
1361
|
declare const COMPANY_TYPES: {
|
|
1342
|
-
readonly
|
|
1343
|
-
readonly
|
|
1344
|
-
readonly
|
|
1345
|
-
readonly
|
|
1362
|
+
readonly PropertyManagement: "PropertyManagement";
|
|
1363
|
+
readonly Maintenance: "Maintenance";
|
|
1364
|
+
readonly Cleaner: "Cleaner";
|
|
1365
|
+
readonly Other: "Other";
|
|
1346
1366
|
};
|
|
1347
1367
|
type TCompanyType = TRecordValue<typeof COMPANY_TYPES>;
|
|
1348
1368
|
|
|
@@ -1369,7 +1389,7 @@ interface IGetDamageReportByIdRequest extends IDamageReportRouteParams {
|
|
|
1369
1389
|
}
|
|
1370
1390
|
interface IGetDamageReportByIdResponse extends IDamageReport {
|
|
1371
1391
|
}
|
|
1372
|
-
interface IUpdateDamageReportRequest extends Partial<IDamageReport
|
|
1392
|
+
interface IUpdateDamageReportRequest extends Partial<Pick<IDamageReport, "severity" | "title" | "description" | "locationDetails" | "estimatedCost" | "actualCost" | "assignedTo" | "resolutionNotes" | "requiresProfessional" | "vendorInfo" | "insuranceClaimNumber" | "isTenantResponsible" | "tenantChargeAmount">> {
|
|
1373
1393
|
}
|
|
1374
1394
|
interface IUpdateDamageReportResponse extends IDamageReport {
|
|
1375
1395
|
}
|
|
@@ -1430,7 +1450,7 @@ interface IGetWorkOrderByIdRequest extends IDamageReportWorkOrderRouteParams {
|
|
|
1430
1450
|
}
|
|
1431
1451
|
interface IGetWorkOrderByIdResponse extends IWorkOrder {
|
|
1432
1452
|
}
|
|
1433
|
-
interface IUpdateWorkOrderRequest extends Partial<IWorkOrder
|
|
1453
|
+
interface IUpdateWorkOrderRequest extends Partial<Pick<IWorkOrder, "priority" | "category" | "assignedTo" | "scheduledDate" | "scheduledTimeStart" | "scheduledTimeEnd" | "description" | "workPerformed" | "materialsUsed" | "laborHours" | "laborCost" | "materialsCost" | "status">> {
|
|
1434
1454
|
}
|
|
1435
1455
|
interface IUpdateWorkOrderResponse extends IWorkOrder {
|
|
1436
1456
|
}
|
|
@@ -1459,35 +1479,35 @@ interface IUpdateWorkOrderStatusResponse extends IWorkOrder {
|
|
|
1459
1479
|
}
|
|
1460
1480
|
|
|
1461
1481
|
declare const DAMAGE_SEVERITY: {
|
|
1462
|
-
readonly
|
|
1463
|
-
readonly
|
|
1464
|
-
readonly
|
|
1465
|
-
readonly
|
|
1482
|
+
readonly Low: "Low";
|
|
1483
|
+
readonly Medium: "Medium";
|
|
1484
|
+
readonly High: "High";
|
|
1485
|
+
readonly Critical: "Critical";
|
|
1466
1486
|
};
|
|
1467
1487
|
type TDamageSeverity = TRecordValue<typeof DAMAGE_SEVERITY>;
|
|
1468
1488
|
declare const DAMAGE_STATUS: {
|
|
1469
|
-
readonly
|
|
1470
|
-
readonly
|
|
1471
|
-
readonly
|
|
1472
|
-
readonly
|
|
1473
|
-
readonly
|
|
1474
|
-
readonly
|
|
1475
|
-
readonly
|
|
1489
|
+
readonly Open: "Open";
|
|
1490
|
+
readonly InReview: "InReview";
|
|
1491
|
+
readonly Assigned: "Assigned";
|
|
1492
|
+
readonly InProgress: "InProgress";
|
|
1493
|
+
readonly Resolved: "Resolved";
|
|
1494
|
+
readonly Closed: "Closed";
|
|
1495
|
+
readonly Escalated: "Escalated";
|
|
1476
1496
|
};
|
|
1477
1497
|
type TDamageStatus = TRecordValue<typeof DAMAGE_STATUS>;
|
|
1478
1498
|
declare const WORK_ORDER_PRIORITY: {
|
|
1479
|
-
readonly
|
|
1480
|
-
readonly
|
|
1481
|
-
readonly
|
|
1482
|
-
readonly
|
|
1499
|
+
readonly Low: "Low";
|
|
1500
|
+
readonly Normal: "Normal";
|
|
1501
|
+
readonly High: "High";
|
|
1502
|
+
readonly Urgent: "Urgent";
|
|
1483
1503
|
};
|
|
1484
1504
|
type TWorkOrderPriority = TRecordValue<typeof WORK_ORDER_PRIORITY>;
|
|
1485
1505
|
declare const WORK_ORDER_STATUS: {
|
|
1486
|
-
readonly
|
|
1487
|
-
readonly
|
|
1488
|
-
readonly
|
|
1489
|
-
readonly
|
|
1490
|
-
readonly
|
|
1506
|
+
readonly Pending: "Pending";
|
|
1507
|
+
readonly Scheduled: "Scheduled";
|
|
1508
|
+
readonly InProgress: "InProgress";
|
|
1509
|
+
readonly Completed: "Completed";
|
|
1510
|
+
readonly Cancelled: "Cancelled";
|
|
1491
1511
|
};
|
|
1492
1512
|
type TWorkOrderStatus = TRecordValue<typeof WORK_ORDER_STATUS>;
|
|
1493
1513
|
interface IDamageReport {
|
|
@@ -1524,7 +1544,7 @@ interface IDamageReportPhoto {
|
|
|
1524
1544
|
id: string;
|
|
1525
1545
|
damageReportId: string;
|
|
1526
1546
|
photoId: string;
|
|
1527
|
-
|
|
1547
|
+
imageUrl?: string;
|
|
1528
1548
|
caption: string | null;
|
|
1529
1549
|
isBeforePhoto: boolean;
|
|
1530
1550
|
displayOrder: number;
|
|
@@ -1607,77 +1627,60 @@ interface ICreateWorkOrderInput {
|
|
|
1607
1627
|
|
|
1608
1628
|
/**
|
|
1609
1629
|
* Error Types
|
|
1610
|
-
* Custom error types and validation error structures
|
|
1630
|
+
* Custom error types and validation error structures.
|
|
1611
1631
|
*/
|
|
1612
1632
|
|
|
1613
1633
|
/**
|
|
1614
|
-
*
|
|
1615
|
-
* Detailed information about a validation error
|
|
1634
|
+
* Detailed information about a validation error.
|
|
1616
1635
|
*/
|
|
1617
1636
|
interface IValidationErrorDetail {
|
|
1618
1637
|
field: string;
|
|
1619
1638
|
message: string;
|
|
1620
|
-
value?:
|
|
1639
|
+
value?: TJsonValue;
|
|
1621
1640
|
}
|
|
1622
1641
|
/**
|
|
1623
|
-
*
|
|
1624
|
-
* Information about missing required fields
|
|
1642
|
+
* Information about missing required fields.
|
|
1625
1643
|
*/
|
|
1626
1644
|
interface IMissingFieldsErrorDetail {
|
|
1627
1645
|
missingFields: string[];
|
|
1628
1646
|
}
|
|
1629
1647
|
/**
|
|
1630
|
-
*
|
|
1631
|
-
* Information about rate limiting
|
|
1648
|
+
* Information about rate limiting.
|
|
1632
1649
|
*/
|
|
1633
1650
|
interface IRateLimitErrorDetail {
|
|
1634
1651
|
retryAfter?: number;
|
|
1635
1652
|
message: string;
|
|
1636
1653
|
}
|
|
1637
|
-
|
|
1638
|
-
|
|
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> {
|
|
1654
|
+
type TErrorResponseDetail = IValidationErrorDetail[] | IMissingFieldsErrorDetail | IRateLimitErrorDetail | TJsonObject | string;
|
|
1655
|
+
interface ITypedApiError<TDetails = TErrorResponseDetail> {
|
|
1647
1656
|
message: string;
|
|
1648
1657
|
code: TErrorCode;
|
|
1649
|
-
details?:
|
|
1658
|
+
details?: TDetails;
|
|
1650
1659
|
}
|
|
1651
|
-
/**
|
|
1652
|
-
* Error Helper Types
|
|
1653
|
-
* For identifying specific error types
|
|
1654
|
-
*/
|
|
1655
1660
|
type TValidationError = ITypedApiError<IValidationErrorDetail[]>;
|
|
1656
1661
|
type TMissingFieldsError = ITypedApiError<IMissingFieldsErrorDetail>;
|
|
1657
1662
|
type TRateLimitError = ITypedApiError<IRateLimitErrorDetail>;
|
|
1658
1663
|
/**
|
|
1659
|
-
* Type guard for
|
|
1664
|
+
* Type guard for validation errors.
|
|
1660
1665
|
*/
|
|
1661
1666
|
declare function isValidationError(error: unknown): error is TValidationError;
|
|
1662
1667
|
/**
|
|
1663
|
-
* Type guard for
|
|
1668
|
+
* Type guard for missing-field errors.
|
|
1664
1669
|
*/
|
|
1665
1670
|
declare function isMissingFieldsError(error: unknown): error is TMissingFieldsError;
|
|
1666
1671
|
/**
|
|
1667
|
-
* Type guard for
|
|
1672
|
+
* Type guard for rate-limit errors.
|
|
1668
1673
|
*/
|
|
1669
1674
|
declare function isRateLimitError(error: unknown): error is TRateLimitError;
|
|
1670
1675
|
/**
|
|
1671
|
-
* Type guard for authentication errors
|
|
1676
|
+
* Type guard for authentication errors.
|
|
1672
1677
|
*/
|
|
1673
1678
|
declare function isAuthError(error: unknown): boolean;
|
|
1674
1679
|
|
|
1675
|
-
|
|
1676
|
-
}
|
|
1680
|
+
type IGetHealthRequest = IEmptyRouteRequest;
|
|
1677
1681
|
interface IGetHealthResponse extends IHealthCheckResponse {
|
|
1678
1682
|
}
|
|
1679
|
-
|
|
1680
|
-
}
|
|
1683
|
+
type IGetDetailedHealthRequest = IEmptyRouteRequest;
|
|
1681
1684
|
interface IGetDetailedHealthResponse {
|
|
1682
1685
|
checks: IHealthChecks;
|
|
1683
1686
|
}
|
|
@@ -1717,8 +1720,7 @@ interface IImageCompanyRouteParams {
|
|
|
1717
1720
|
interface IImageRouteParams {
|
|
1718
1721
|
imageId: string;
|
|
1719
1722
|
}
|
|
1720
|
-
|
|
1721
|
-
}
|
|
1723
|
+
type IUploadProfileImageRequest = IEmptyRouteRequest;
|
|
1722
1724
|
interface IUploadProfileImageResponse {
|
|
1723
1725
|
image: IImageWithUrl;
|
|
1724
1726
|
}
|
|
@@ -1734,15 +1736,15 @@ interface IDeleteImageResponse extends ISuccessResponse {
|
|
|
1734
1736
|
}
|
|
1735
1737
|
|
|
1736
1738
|
declare const IMAGE_ENTITY_TYPE: {
|
|
1737
|
-
readonly
|
|
1738
|
-
readonly
|
|
1739
|
-
readonly
|
|
1740
|
-
readonly
|
|
1741
|
-
readonly
|
|
1742
|
-
readonly
|
|
1743
|
-
readonly
|
|
1744
|
-
readonly
|
|
1745
|
-
readonly
|
|
1739
|
+
readonly UserProfile: "UserProfile";
|
|
1740
|
+
readonly Property: "Property";
|
|
1741
|
+
readonly Company: "Company";
|
|
1742
|
+
readonly ChecklistItem: "ChecklistItem";
|
|
1743
|
+
readonly PropertyRoom: "PropertyRoom";
|
|
1744
|
+
readonly MaintenanceTicket: "MaintenanceTicket";
|
|
1745
|
+
readonly WorkReport: "WorkReport";
|
|
1746
|
+
readonly CleaningReport: "CleaningReport";
|
|
1747
|
+
readonly TurndownDefault: "TurndownDefault";
|
|
1746
1748
|
};
|
|
1747
1749
|
type TStoredImageEntityType = (typeof IMAGE_ENTITY_TYPE)[keyof typeof IMAGE_ENTITY_TYPE];
|
|
1748
1750
|
interface IImage {
|
|
@@ -1789,9 +1791,7 @@ interface IRoomInventoryIdParams {
|
|
|
1789
1791
|
interface IInventoryOrderRouteParams {
|
|
1790
1792
|
orderId: string;
|
|
1791
1793
|
}
|
|
1792
|
-
interface ICreateInventoryItemRequest extends Partial<IInventoryItem
|
|
1793
|
-
companyId: string;
|
|
1794
|
-
name: string;
|
|
1794
|
+
interface ICreateInventoryItemRequest extends Pick<IInventoryItem, "companyId" | "name" | "itemType" | "unit" | "minimumLevel" | "reorderLevel">, Partial<Pick<IInventoryItem, "description" | "unitCustom" | "maximumLevel" | "costPerUnit" | "supplierInfo" | "sku" | "barcode">> {
|
|
1795
1795
|
}
|
|
1796
1796
|
interface ICreateInventoryItemResponse extends IInventoryItem {
|
|
1797
1797
|
}
|
|
@@ -1799,7 +1799,7 @@ interface IGetInventoryItemByIdRequest extends IInventoryItemRouteParams {
|
|
|
1799
1799
|
}
|
|
1800
1800
|
interface IGetInventoryItemByIdResponse extends IInventoryItem {
|
|
1801
1801
|
}
|
|
1802
|
-
interface IUpdateInventoryItemRequest extends Partial<IInventoryItem
|
|
1802
|
+
interface IUpdateInventoryItemRequest extends Partial<Pick<IInventoryItem, "name" | "description" | "itemType" | "unit" | "unitCustom" | "minimumLevel" | "reorderLevel" | "maximumLevel" | "costPerUnit" | "supplierInfo" | "sku" | "barcode">> {
|
|
1803
1803
|
}
|
|
1804
1804
|
interface IUpdateInventoryItemResponse extends IInventoryItem {
|
|
1805
1805
|
}
|
|
@@ -1810,9 +1810,7 @@ interface IDeleteInventoryItemResponse extends IMessageResponse {
|
|
|
1810
1810
|
interface IGetInventoryByCompanyIdRequest extends IInventoryCompanyRouteParams {
|
|
1811
1811
|
}
|
|
1812
1812
|
type IGetInventoryByCompanyIdResponse = IInventoryItem[];
|
|
1813
|
-
interface IAddInventoryToPropertyRequest extends Partial<IPropertyInventory
|
|
1814
|
-
propertyId: string;
|
|
1815
|
-
inventoryItemId: string;
|
|
1813
|
+
interface IAddInventoryToPropertyRequest extends Pick<IPropertyInventory, "propertyId" | "inventoryItemId">, Partial<Pick<IPropertyInventory, "currentLevel" | "minimumLevel" | "maximumLevel" | "parLevel" | "autoReorder" | "locationNotes">> {
|
|
1816
1814
|
}
|
|
1817
1815
|
interface IAddInventoryToPropertyResponse extends IPropertyInventory {
|
|
1818
1816
|
}
|
|
@@ -1822,27 +1820,21 @@ type IGetPropertyInventoryResponse = IPropertyInventory[];
|
|
|
1822
1820
|
interface IGetPropertyInventoryNeedingRestockRequest extends IInventoryPropertyRouteParams {
|
|
1823
1821
|
}
|
|
1824
1822
|
type IGetPropertyInventoryNeedingRestockResponse = IPropertyInventory[];
|
|
1825
|
-
interface IAddInventoryToRoomRequest extends Partial<IRoomInventory
|
|
1826
|
-
roomId: string;
|
|
1827
|
-
inventoryItemId: string;
|
|
1823
|
+
interface IAddInventoryToRoomRequest extends Pick<IRoomInventory, "roomId" | "inventoryItemId">, Partial<Pick<IRoomInventory, "currentLevel" | "minimumLevel" | "maximumLevel" | "parLevel" | "autoReorder" | "locationNotes">> {
|
|
1828
1824
|
}
|
|
1829
1825
|
interface IAddInventoryToRoomResponse extends IRoomInventory {
|
|
1830
1826
|
}
|
|
1831
1827
|
interface IGetRoomInventoryRequest extends IInventoryRoomRouteParams {
|
|
1832
1828
|
}
|
|
1833
1829
|
type IGetRoomInventoryResponse = IRoomInventory[];
|
|
1834
|
-
interface IUpdateRoomInventoryRequest extends Partial<IRoomInventory
|
|
1830
|
+
interface IUpdateRoomInventoryRequest extends Partial<Pick<IRoomInventory, "currentLevel" | "minimumLevel" | "maximumLevel" | "parLevel" | "lastRestockedAt" | "lastRestockedBy" | "lastCheckedAt" | "lastCheckedBy" | "autoReorder" | "locationNotes">> {
|
|
1835
1831
|
}
|
|
1836
1832
|
interface IUpdateRoomInventoryResponse extends IRoomInventory {
|
|
1837
1833
|
}
|
|
1838
1834
|
interface IGetRoomInventoryNeedingRestockRequest extends IInventoryRoomRouteParams {
|
|
1839
1835
|
}
|
|
1840
1836
|
type IGetRoomInventoryNeedingRestockResponse = IRoomInventory[];
|
|
1841
|
-
interface IRecordInventoryCountRequest extends Partial<IInventoryCount
|
|
1842
|
-
checklistExecutionId: string;
|
|
1843
|
-
roomInventoryId: string;
|
|
1844
|
-
countedLevel: number;
|
|
1845
|
-
countedBy: string;
|
|
1837
|
+
interface IRecordInventoryCountRequest extends Pick<IInventoryCount, "checklistExecutionId" | "roomInventoryId" | "countedLevel" | "countedBy">, Partial<Pick<IInventoryCount, "previousLevel" | "consumedAmount" | "restockedAmount" | "finalLevel" | "needsRestock" | "notes">> {
|
|
1846
1838
|
}
|
|
1847
1839
|
interface IRecordInventoryCountResponse extends IInventoryCount {
|
|
1848
1840
|
}
|
|
@@ -1856,9 +1848,7 @@ interface IRestockOrderItemInput {
|
|
|
1856
1848
|
quantityOrdered: number;
|
|
1857
1849
|
unitCost?: number;
|
|
1858
1850
|
}
|
|
1859
|
-
interface ICreateRestockOrderRequest extends Partial<IInventoryRestockOrder
|
|
1860
|
-
companyId: string;
|
|
1861
|
-
orderedBy: string;
|
|
1851
|
+
interface ICreateRestockOrderRequest extends Pick<IInventoryRestockOrder, "companyId" | "orderedBy">, Partial<Pick<IInventoryRestockOrder, "orderNumber" | "expectedDelivery" | "supplierInfo" | "notes">> {
|
|
1862
1852
|
items: IRestockOrderItemInput[];
|
|
1863
1853
|
}
|
|
1864
1854
|
interface ICreateRestockOrderResponse extends IInventoryRestockOrder {
|
|
@@ -1877,35 +1867,35 @@ interface IUpdateRestockOrderStatusResponse extends IInventoryRestockOrder {
|
|
|
1877
1867
|
}
|
|
1878
1868
|
|
|
1879
1869
|
declare const INVENTORY_RESTOCK_ORDER_STATUS: {
|
|
1880
|
-
readonly
|
|
1881
|
-
readonly
|
|
1882
|
-
readonly
|
|
1883
|
-
readonly
|
|
1870
|
+
readonly Pending: "Pending";
|
|
1871
|
+
readonly Ordered: "Ordered";
|
|
1872
|
+
readonly Shipped: "Shipped";
|
|
1873
|
+
readonly Received: "Received";
|
|
1884
1874
|
};
|
|
1885
1875
|
type TInventoryRestockOrderStatus = TRecordValue<typeof INVENTORY_RESTOCK_ORDER_STATUS>;
|
|
1886
1876
|
declare const INVENTORY_UNITS: {
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1877
|
+
readonly Count: "Count";
|
|
1878
|
+
readonly Rolls: "Rolls";
|
|
1879
|
+
readonly Pods: "Pods";
|
|
1880
|
+
readonly Boxes: "Boxes";
|
|
1881
|
+
readonly Bottles: "Bottles";
|
|
1882
|
+
readonly Packs: "Packs";
|
|
1883
|
+
readonly Bags: "Bags";
|
|
1884
|
+
readonly Gallons: "Gallons";
|
|
1885
|
+
readonly Liters: "Liters";
|
|
1886
|
+
readonly Kilograms: "Kilograms";
|
|
1887
|
+
readonly Pounds: "Pounds";
|
|
1888
|
+
readonly Ounces: "Ounces";
|
|
1889
|
+
readonly Grams: "Grams";
|
|
1890
|
+
readonly Sheets: "Sheets";
|
|
1891
|
+
readonly Cases: "Cases";
|
|
1892
|
+
readonly Cartons: "Cartons";
|
|
1893
|
+
readonly Other: "Other";
|
|
1904
1894
|
};
|
|
1905
1895
|
type TInventoryUnitType = TRecordValue<typeof INVENTORY_UNITS>;
|
|
1906
1896
|
declare const INVENTORY_ITEM_TYPE: {
|
|
1907
|
-
readonly
|
|
1908
|
-
readonly
|
|
1897
|
+
readonly Consumable: "Consumable";
|
|
1898
|
+
readonly Fixed: "Fixed";
|
|
1909
1899
|
};
|
|
1910
1900
|
type TInventoryItemType = TRecordValue<typeof INVENTORY_ITEM_TYPE>;
|
|
1911
1901
|
interface IInventoryItem extends IMetaData {
|
|
@@ -2018,10 +2008,10 @@ interface ICreatePropertyRequest {
|
|
|
2018
2008
|
country?: string;
|
|
2019
2009
|
sqft?: number;
|
|
2020
2010
|
timezone?: string;
|
|
2021
|
-
|
|
2011
|
+
imageUrl?: string;
|
|
2022
2012
|
specialNotes?: string;
|
|
2023
2013
|
}
|
|
2024
|
-
interface IUpdatePropertyRequest extends Partial<ICreatePropertyRequest
|
|
2014
|
+
interface IUpdatePropertyRequest extends Partial<Omit<ICreatePropertyRequest, "companyId">> {
|
|
2025
2015
|
}
|
|
2026
2016
|
interface IGetPropertiesRequest {
|
|
2027
2017
|
companyId?: string;
|
|
@@ -2039,7 +2029,7 @@ interface IUpdatePropertyResponse extends IPropertyDetail {
|
|
|
2039
2029
|
}
|
|
2040
2030
|
interface IDeletePropertyResponse extends IMessageResponse {
|
|
2041
2031
|
}
|
|
2042
|
-
interface IUpdatePropertyAccessInformationRequest extends Partial<IPropertyAccessInformation
|
|
2032
|
+
interface IUpdatePropertyAccessInformationRequest extends Partial<Omit<IPropertyAccessInformation, "propertyId">> {
|
|
2043
2033
|
}
|
|
2044
2034
|
interface IUpdatePropertyAccessInformationResponse extends IPropertyAccessInformation {
|
|
2045
2035
|
}
|
|
@@ -2058,8 +2048,20 @@ declare const PROPERTY_STATUS: {
|
|
|
2058
2048
|
};
|
|
2059
2049
|
type TPropertyStatus = TRecordValue<typeof PROPERTY_STATUS>;
|
|
2060
2050
|
declare const PropertyStatusOptions: ISelectOption<TPropertyStatus>[];
|
|
2061
|
-
declare const PROPERTY_TYPES:
|
|
2062
|
-
|
|
2051
|
+
declare const PROPERTY_TYPES: {
|
|
2052
|
+
readonly Apartment: "Apartment";
|
|
2053
|
+
readonly Commercial: "Commercial";
|
|
2054
|
+
readonly Condo: "Condo";
|
|
2055
|
+
readonly Duplex: "Duplex";
|
|
2056
|
+
readonly House: "House";
|
|
2057
|
+
readonly MultiFamily: "Multi-Family";
|
|
2058
|
+
readonly Office: "Office";
|
|
2059
|
+
readonly Retail: "Retail";
|
|
2060
|
+
readonly Townhouse: "Townhouse";
|
|
2061
|
+
readonly Vacation: "Vacation Rental";
|
|
2062
|
+
readonly Warehouse: "Warehouse";
|
|
2063
|
+
};
|
|
2064
|
+
type TPropertyType = TRecordValue<typeof PROPERTY_TYPES>;
|
|
2063
2065
|
declare const PropertyTypeOptions: ISelectOption<TPropertyType>[];
|
|
2064
2066
|
interface IProperty extends IMetaData {
|
|
2065
2067
|
id: string;
|
|
@@ -2067,7 +2069,7 @@ interface IProperty extends IMetaData {
|
|
|
2067
2069
|
addressLine1: string;
|
|
2068
2070
|
addressLine2?: string;
|
|
2069
2071
|
city: string;
|
|
2070
|
-
stateCode: TUSStateCode
|
|
2072
|
+
stateCode: TUSStateCode;
|
|
2071
2073
|
propertyType?: TPropertyType;
|
|
2072
2074
|
status?: TPropertyStatus;
|
|
2073
2075
|
sqft?: number;
|
|
@@ -2075,7 +2077,6 @@ interface IProperty extends IMetaData {
|
|
|
2075
2077
|
country?: string;
|
|
2076
2078
|
timezone?: string;
|
|
2077
2079
|
imageUrl?: string;
|
|
2078
|
-
photoUrl?: string;
|
|
2079
2080
|
companyId: string;
|
|
2080
2081
|
specialNotes?: string;
|
|
2081
2082
|
}
|
|
@@ -2125,11 +2126,11 @@ interface IPropertyJobSummaryItem {
|
|
|
2125
2126
|
}
|
|
2126
2127
|
interface IPropertyFormValues {
|
|
2127
2128
|
displayName: string;
|
|
2128
|
-
propertyType:
|
|
2129
|
-
status:
|
|
2129
|
+
propertyType: TPropertyType;
|
|
2130
|
+
status: TPropertyStatus;
|
|
2130
2131
|
addressLine1: string;
|
|
2131
2132
|
city: string;
|
|
2132
|
-
stateCode:
|
|
2133
|
+
stateCode: TUSStateCode;
|
|
2133
2134
|
postalCode: string;
|
|
2134
2135
|
specialNotes: string;
|
|
2135
2136
|
}
|
|
@@ -2142,7 +2143,7 @@ interface IPropertyAccessFormValues {
|
|
|
2142
2143
|
specialNotes: string;
|
|
2143
2144
|
}
|
|
2144
2145
|
interface IPropertyFilterValues {
|
|
2145
|
-
status:
|
|
2146
|
+
status: TPropertyStatus;
|
|
2146
2147
|
propertyType: TPropertyType;
|
|
2147
2148
|
}
|
|
2148
2149
|
interface IPropertySummary {
|
|
@@ -2150,18 +2151,18 @@ interface IPropertySummary {
|
|
|
2150
2151
|
displayName: string;
|
|
2151
2152
|
propertyType: TPropertyType;
|
|
2152
2153
|
addressLine1: string;
|
|
2153
|
-
addressLine2
|
|
2154
|
+
addressLine2?: string;
|
|
2154
2155
|
city: string;
|
|
2155
|
-
stateCode:
|
|
2156
|
+
stateCode: TUSStateCode;
|
|
2156
2157
|
postalCode: string;
|
|
2157
2158
|
imageUrl?: string;
|
|
2158
|
-
status?:
|
|
2159
|
+
status?: TPropertyStatus;
|
|
2159
2160
|
}
|
|
2160
2161
|
interface IPropertyDetail extends IPropertySummary {
|
|
2161
2162
|
specialNotes?: string;
|
|
2162
2163
|
roomCount?: number;
|
|
2163
|
-
createdAt?:
|
|
2164
|
-
updatedAt?:
|
|
2164
|
+
createdAt?: Date;
|
|
2165
|
+
updatedAt?: Date;
|
|
2165
2166
|
}
|
|
2166
2167
|
|
|
2167
2168
|
interface IJobFilterValues {
|
|
@@ -2176,11 +2177,7 @@ interface IRoomPropertyRouteParams {
|
|
|
2176
2177
|
interface IRoomRouteParams {
|
|
2177
2178
|
roomId: string;
|
|
2178
2179
|
}
|
|
2179
|
-
interface ICreateRoomRequest {
|
|
2180
|
-
propertyId: string;
|
|
2181
|
-
displayName: string;
|
|
2182
|
-
description?: string;
|
|
2183
|
-
checklistTemplateId?: string;
|
|
2180
|
+
interface ICreateRoomRequest extends Pick<IRoom, "propertyId" | "displayName">, Partial<Pick<IRoom, "description" | "checklistTemplateId" | "roomType" | "heroPhoto">> {
|
|
2184
2181
|
}
|
|
2185
2182
|
interface ICreateRoomResponse extends IRoom {
|
|
2186
2183
|
}
|
|
@@ -2194,8 +2191,7 @@ interface IGetRoomByIdRequest extends IRoomRouteParams {
|
|
|
2194
2191
|
}
|
|
2195
2192
|
interface IGetRoomByIdResponse extends IRoom {
|
|
2196
2193
|
}
|
|
2197
|
-
interface IUpdateRoomRequest extends Partial<ICreateRoomRequest
|
|
2198
|
-
displayName?: string;
|
|
2194
|
+
interface IUpdateRoomRequest extends Partial<Omit<ICreateRoomRequest, "propertyId">> {
|
|
2199
2195
|
}
|
|
2200
2196
|
interface IUpdateRoomResponse extends IRoom {
|
|
2201
2197
|
}
|
|
@@ -2205,20 +2201,20 @@ interface IDeleteRoomResponse extends IMessageResponse {
|
|
|
2205
2201
|
}
|
|
2206
2202
|
|
|
2207
2203
|
declare const ROOM_TYPE: {
|
|
2208
|
-
BEDROOM:
|
|
2209
|
-
BATHROOM:
|
|
2210
|
-
KITCHEN:
|
|
2211
|
-
LIVING_ROOM:
|
|
2212
|
-
DINING_ROOM:
|
|
2213
|
-
OFFICE:
|
|
2214
|
-
GARAGE:
|
|
2215
|
-
LAUNDRY_ROOM:
|
|
2216
|
-
BASEMENT:
|
|
2217
|
-
ATTIC:
|
|
2218
|
-
BALCONY:
|
|
2219
|
-
PORCH:
|
|
2220
|
-
GARDEN:
|
|
2221
|
-
OTHER:
|
|
2204
|
+
readonly BEDROOM: "BEDROOM";
|
|
2205
|
+
readonly BATHROOM: "BATHROOM";
|
|
2206
|
+
readonly KITCHEN: "KITCHEN";
|
|
2207
|
+
readonly LIVING_ROOM: "LIVING_ROOM";
|
|
2208
|
+
readonly DINING_ROOM: "DINING_ROOM";
|
|
2209
|
+
readonly OFFICE: "OFFICE";
|
|
2210
|
+
readonly GARAGE: "GARAGE";
|
|
2211
|
+
readonly LAUNDRY_ROOM: "LAUNDRY_ROOM";
|
|
2212
|
+
readonly BASEMENT: "BASEMENT";
|
|
2213
|
+
readonly ATTIC: "ATTIC";
|
|
2214
|
+
readonly BALCONY: "BALCONY";
|
|
2215
|
+
readonly PORCH: "PORCH";
|
|
2216
|
+
readonly GARDEN: "GARDEN";
|
|
2217
|
+
readonly OTHER: "OTHER";
|
|
2222
2218
|
};
|
|
2223
2219
|
type TRoomType = TRecordValue<typeof ROOM_TYPE>;
|
|
2224
2220
|
interface IRoom extends IMetaData {
|
|
@@ -2350,22 +2346,22 @@ interface ICreateRoomChecklistItemInput {
|
|
|
2350
2346
|
}
|
|
2351
2347
|
|
|
2352
2348
|
declare const SUBSCRIPTION_STATUS: {
|
|
2353
|
-
readonly
|
|
2354
|
-
readonly
|
|
2355
|
-
readonly
|
|
2356
|
-
readonly
|
|
2357
|
-
readonly
|
|
2349
|
+
readonly Active: "Active";
|
|
2350
|
+
readonly Canceled: "Canceled";
|
|
2351
|
+
readonly Expired: "Expired";
|
|
2352
|
+
readonly PastDue: "PastDue";
|
|
2353
|
+
readonly Trialing: "Trialing";
|
|
2358
2354
|
};
|
|
2359
2355
|
type TSubscriptionStatus = TRecordValue<typeof SUBSCRIPTION_STATUS>;
|
|
2360
2356
|
declare const SUBSCRIPTION_PROVIDER: {
|
|
2361
|
-
readonly
|
|
2362
|
-
readonly
|
|
2363
|
-
readonly
|
|
2357
|
+
readonly Stripe: "Stripe";
|
|
2358
|
+
readonly Apple: "Apple";
|
|
2359
|
+
readonly Google: "Google";
|
|
2364
2360
|
};
|
|
2365
2361
|
type TSubscriptionProvider = TRecordValue<typeof SUBSCRIPTION_PROVIDER>;
|
|
2366
2362
|
declare const BILLING_PERIOD: {
|
|
2367
|
-
readonly
|
|
2368
|
-
readonly
|
|
2363
|
+
readonly Monthly: "Monthly";
|
|
2364
|
+
readonly Yearly: "Yearly";
|
|
2369
2365
|
};
|
|
2370
2366
|
type TBillingPeriod = TRecordValue<typeof BILLING_PERIOD>;
|
|
2371
2367
|
interface IUserSubscription {
|
|
@@ -2396,9 +2392,7 @@ interface IWorkSessionExecutionRouteParams {
|
|
|
2396
2392
|
interface ILimitQuery {
|
|
2397
2393
|
limit?: string;
|
|
2398
2394
|
}
|
|
2399
|
-
interface ICreateWorkSessionRequest extends
|
|
2400
|
-
serviceProviderCompanyId: string;
|
|
2401
|
-
performedBy: string;
|
|
2395
|
+
interface ICreateWorkSessionRequest extends Pick<ICreateWorkSessionInput, "serviceProviderCompanyId" | "performedBy">, Partial<Pick<ICreateWorkSessionInput, "scheduledDate" | "notes">> {
|
|
2402
2396
|
}
|
|
2403
2397
|
interface ICreateWorkSessionResponse extends IWorkSession {
|
|
2404
2398
|
}
|
|
@@ -2410,7 +2404,7 @@ interface IGetWorkSessionWithExecutionsRequest extends IWorkSessionRouteParams {
|
|
|
2410
2404
|
}
|
|
2411
2405
|
interface IGetWorkSessionWithExecutionsResponse extends IWorkSessionWithExecutions {
|
|
2412
2406
|
}
|
|
2413
|
-
interface IUpdateWorkSessionRequest extends Partial<IWorkSession
|
|
2407
|
+
interface IUpdateWorkSessionRequest extends Partial<Pick<IWorkSession, "serviceProviderCompanyId" | "performedBy" | "status" | "scheduledDate" | "startedAt" | "completedAt" | "totalTimeMinutes" | "notes">> {
|
|
2414
2408
|
}
|
|
2415
2409
|
interface IUpdateWorkSessionResponse extends IWorkSession {
|
|
2416
2410
|
}
|
|
@@ -2474,19 +2468,19 @@ interface ICompleteExecutionItemResponse extends IChecklistItemCompletion {
|
|
|
2474
2468
|
* Work session status enum
|
|
2475
2469
|
*/
|
|
2476
2470
|
declare const WORK_SESSION_STATUS: {
|
|
2477
|
-
IN_PROGRESS:
|
|
2478
|
-
COMPLETED:
|
|
2479
|
-
CANCELLED:
|
|
2471
|
+
readonly IN_PROGRESS: "IN_PROGRESS";
|
|
2472
|
+
readonly COMPLETED: "COMPLETED";
|
|
2473
|
+
readonly CANCELLED: "CANCELLED";
|
|
2480
2474
|
};
|
|
2481
2475
|
type TWorkSessionStatus = TRecordValue<typeof WORK_SESSION_STATUS>;
|
|
2482
2476
|
/**
|
|
2483
2477
|
* Checklist execution status enum
|
|
2484
2478
|
*/
|
|
2485
2479
|
declare const CHECKLIST_EXECUTION_STATUS: {
|
|
2486
|
-
PENDING:
|
|
2487
|
-
IN_PROGRESS:
|
|
2488
|
-
COMPLETED:
|
|
2489
|
-
SKIPPED:
|
|
2480
|
+
readonly PENDING: "PENDING";
|
|
2481
|
+
readonly IN_PROGRESS: "IN_PROGRESS";
|
|
2482
|
+
readonly COMPLETED: "COMPLETED";
|
|
2483
|
+
readonly SKIPPED: "SKIPPED";
|
|
2490
2484
|
};
|
|
2491
2485
|
type TChecklistExecutionStatus = TRecordValue<typeof CHECKLIST_EXECUTION_STATUS>;
|
|
2492
2486
|
/**
|
|
@@ -2817,4 +2811,4 @@ interface IAddress {
|
|
|
2817
2811
|
}
|
|
2818
2812
|
declare const formatAddress: (address: IAddress) => string;
|
|
2819
2813
|
|
|
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 };
|
|
2814
|
+
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 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 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 };
|