@turndown/library 0.1.64 → 0.1.65

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.
@@ -1,746 +1,7 @@
1
- type TDateInput = Date | string | number | null | undefined;
2
- type TDateFormat = "MM/DD/YYYY" | "MM/DD/YY HH:mm A" | string;
3
- /**
4
- * Format a date using a dayjs format string.
5
- *
6
- * @param {TDateInput} date - Date-like value to format.
7
- * @param {TDateFormat} format - dayjs format string.
8
- * @returns {string} Formatted date or `--` for missing/invalid input.
9
- */
10
- declare const formatDate: (date?: TDateInput, format?: TDateFormat) => string;
11
- /**
12
- * Return a human-readable relative time string.
13
- *
14
- * @param {TDateInput} date - Date-like value to compare against now.
15
- * @returns {string} Relative time or `--` for missing/invalid input.
16
- */
17
- declare const timeAgo: (date: TDateInput) => string;
18
- /**
19
- * Add days to a date.
20
- *
21
- * @param {TDateInput} date - Source date.
22
- * @param {number} days - Number of days to add.
23
- * @returns {Date} Updated date.
24
- */
25
- declare const addDays: (date: TDateInput, days: number) => Date;
26
- /**
27
- * Subtract days from a date.
28
- *
29
- * @param {TDateInput} date - Source date.
30
- * @param {number} days - Number of days to subtract.
31
- * @returns {Date} Updated date.
32
- */
33
- declare const subtractDays: (date: TDateInput, days: number) => Date;
34
- /**
35
- * Return the absolute number of whole day boundaries between two dates.
36
- *
37
- * @param {TDateInput} dateA - First date.
38
- * @param {TDateInput} dateB - Second date.
39
- * @returns {number} Absolute difference in days, or 0 for invalid input.
40
- */
41
- declare const daysBetween: (dateA: TDateInput, dateB: TDateInput) => number;
42
- /**
43
- * Check whether a date is today.
44
- *
45
- * @param {TDateInput} date - Date-like value.
46
- * @returns {boolean} True when the date is today.
47
- */
48
- declare const isToday: (date: TDateInput) => boolean;
49
- /**
50
- * Check whether a date is in the past.
51
- *
52
- * @param {TDateInput} date - Date-like value.
53
- * @returns {boolean} True when the date is before now.
54
- */
55
- declare const isPast: (date: TDateInput) => boolean;
56
- /**
57
- * Check whether a date is in the future.
58
- *
59
- * @param {TDateInput} date - Date-like value.
60
- * @returns {boolean} True when the date is after now.
61
- */
62
- declare const isFuture: (date: TDateInput) => boolean;
63
- /**
64
- * Return the start of the day for a date.
65
- *
66
- * @param {TDateInput} date - Source date.
67
- * @returns {Date} Date set to 00:00:00.000.
68
- */
69
- declare const startOfDay: (date: TDateInput) => Date;
70
- /**
71
- * Return the end of the day for a date.
72
- *
73
- * @param {TDateInput} date - Source date.
74
- * @returns {Date} Date set to 23:59:59.999.
75
- */
76
- declare const endOfDay: (date: TDateInput) => Date;
77
- /**
78
- * Return the ISO week start date, Monday at 00:00:00.000.
79
- *
80
- * @param {TDateInput} date - Source date.
81
- * @returns {Date} Start of ISO week.
82
- */
83
- declare const startOfWeek: (date: TDateInput) => Date;
84
- /**
85
- * Return the ISO week end date, Sunday at 23:59:59.999.
86
- *
87
- * @param {TDateInput} date - Source date.
88
- * @returns {Date} End of ISO week.
89
- */
90
- declare const endOfWeek: (date: TDateInput) => Date;
91
- /**
92
- * Return all seven dates in the ISO week containing the provided date.
93
- *
94
- * @param {TDateInput} date - Source date.
95
- * @returns {Date[]} Monday-through-Sunday dates at the start of each day.
96
- */
97
- declare const getWeekDays: (date: TDateInput) => Date[];
98
- /**
99
- * Add weeks to a date.
100
- *
101
- * @param {TDateInput} date - Source date.
102
- * @param {number} weeks - Number of weeks to add.
103
- * @returns {Date} Updated date.
104
- */
105
- declare const addWeeks: (date: TDateInput, weeks: number) => Date;
106
- /**
107
- * Subtract weeks from a date.
108
- *
109
- * @param {TDateInput} date - Source date.
110
- * @param {number} weeks - Number of weeks to subtract.
111
- * @returns {Date} Updated date.
112
- */
113
- declare const subtractWeeks: (date: TDateInput, weeks: number) => Date;
114
-
115
- /**
116
- * Pagination metadata for a paginated response.
117
- */
118
- interface IPagingResult {
119
- hasNextPage: boolean;
120
- totalPages: number;
121
- totalRecords: number;
122
- }
123
- /**
124
- * Generic wrapper for paginated data.
125
- */
126
- interface IDataWithPagingResult<TData> {
127
- data: TData;
128
- pagination: IPagingResult;
129
- }
130
- declare const SortDirection: {
131
- readonly Asc: "Asc";
132
- readonly Desc: "Desc";
133
- };
134
- type TSortDirection = (typeof SortDirection)[keyof typeof SortDirection];
135
- /**
136
- * Sorting condition for query results.
137
- */
138
- interface ISortCondition {
139
- name: string;
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 {
154
- name: string;
155
- condition: TFilterCondition;
156
- useAnd?: boolean;
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;
179
- /**
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.
185
- */
186
- interface IPaginationRequest {
187
- page: number;
188
- size: number;
189
- sort?: ISortCondition[];
190
- filters?: IFilterCondition[];
191
- }
192
- interface IPagingObject {
193
- pagination: IPaginationRequest;
194
- }
195
- declare const createPagingObject: (page: number, size: number, sort?: ISortCondition[], filters?: IFilterCondition[]) => IPagingObject;
196
-
197
- type TRecord = Record<string, unknown>;
198
- type TSortableValue = string | number | bigint | boolean | Date | null | undefined;
199
- type TReplaceNulls<TValue> = TValue extends null ? "" : TValue extends (infer TItem)[] ? TReplaceNulls<TItem>[] : TValue extends Date ? TValue : TValue extends object ? {
200
- [TKey in keyof TValue]: TReplaceNulls<TValue[TKey]>;
201
- } : TValue;
202
- /**
203
- * Safely parse a JSON string into a typed value.
204
- *
205
- * When a fallback value is provided, the function always returns that generic
206
- * type. Without a fallback value, parse failures return an empty object.
207
- *
208
- * @typeParam TParsed - Expected parsed value type.
209
- * @param {string | null | undefined} jsonString - JSON string to parse.
210
- * @param {TParsed} [fallbackValue] - Value returned when parsing fails.
211
- * @returns {TParsed | Record<string, unknown>} Parsed value or fallback.
212
- * @example
213
- * parseJSON<{ a: number }>('{"a":1}', { a: 0 }) // => { a: 1 }
214
- * parseJSON('not json') // => {}
215
- */
216
- declare function parseJSON<TParsed>(jsonString: string | null | undefined, fallbackValue: TParsed): TParsed;
217
- declare function parseJSON(jsonString: string | null | undefined): Record<string, unknown>;
218
- /**
219
- * Stringify a value to JSON while skipping circular references.
220
- *
221
- * Uses an internal cache to omit repeated object references that would
222
- * normally cause `JSON.stringify` to throw.
223
- *
224
- * @param {unknown} value - Value to stringify.
225
- * @returns {string | undefined} JSON string with circulars omitted.
226
- * @example
227
- * const value: Record<string, unknown> = {}; value.self = value;
228
- * JSONStringify(value) // => "{}"
229
- */
230
- declare const JSONStringify: (value: unknown) => string | undefined;
231
- /**
232
- * Deep-remove `undefined` properties while preserving Dates and arrays.
233
- *
234
- * Object properties with `undefined` values are removed. Array items are
235
- * preserved so array indexes do not shift.
236
- *
237
- * @typeParam TValue - Input value type.
238
- * @param {TValue} value - Input value.
239
- * @returns {TValue} Cleaned clone with `undefined` object properties removed.
240
- */
241
- declare const removeUndefined: <TValue>(value: TValue) => TValue;
242
- /**
243
- * Test whether a location object's `pathname` equals a key.
244
- *
245
- * @param {{ pathname?: string } | null | undefined} location - Object expected
246
- * to have a `pathname`.
247
- * @param {string} key - Path to compare.
248
- * @returns {boolean}
249
- * @example
250
- * validPath({ pathname: "/home" }, "/home") // true
251
- */
252
- declare const validPath: (location: {
253
- pathname?: string;
254
- } | null | undefined, key: string) => boolean;
255
- /**
256
- * Return the first element if the input is an array; otherwise return the value itself.
257
- *
258
- * @typeParam T - Element type.
259
- * @param {T | T[]} input - A single value or an array.
260
- * @returns {T} First element or the input value.
261
- * @example
262
- * returnObject([1,2,3]) // 1
263
- * returnObject(5) // 5
264
- */
265
- declare const returnObject: <T>(input: T | T[]) => T;
266
- /**
267
- * Filter out items from `array1` whose `id` appears in `array2`.
268
- *
269
- * @typeParam T - Object type with an `id` field.
270
- * @param {T[]} [array1] - Source array.
271
- * @param {T[]} [array2] - Items whose `id`s should be excluded.
272
- * @returns {T[]} Filtered array (or `[]` on invalid input).
273
- */
274
- declare const filterArrayById: <T extends {
275
- id: number | string;
276
- }>(array1?: T[], array2?: T[]) => T[];
277
- /**
278
- * Sort an array of objects by a given property (ascending).
279
- *
280
- * Mutates the original array (uses `Array.prototype.sort`).
281
- *
282
- * @typeParam T - Object type.
283
- * @typeParam TKey - Sortable property key.
284
- * @param {T[]} array - Array to sort.
285
- * @param {TKey} property - Property name to sort by.
286
- * @returns {T[]} The same array instance, sorted (or empty array if input invalid).
287
- */
288
- declare const sortArrayByProperty: <TKey extends PropertyKey, T extends Record<TKey, TSortableValue>>(array: T[], property: TKey) => T[];
289
- /**
290
- * Recursively replace `null` values with empty strings.
291
- *
292
- * Works on primitives, arrays, Dates, and plain objects.
293
- *
294
- * @typeParam TValue - Input value type.
295
- * @param {TValue} value - Input value.
296
- * @returns {TReplaceNulls<TValue>} Value with all `null` replaced by `""`.
297
- */
298
- declare const replaceNulls: <TValue>(value: TValue) => TReplaceNulls<TValue>;
299
- /**
300
- * Recursively remove object keys that contain a dot (`.`).
301
- *
302
- * @typeParam TValue - Input value type.
303
- * @param {TValue} value - Input object or array.
304
- * @returns {TValue} New value with dotted keys removed at all levels.
305
- */
306
- declare const removeFormProperties: <TValue>(value: TValue) => TValue;
307
- /**
308
- * Recursively convert string booleans `"true"`/`"false"` to actual booleans.
309
- *
310
- * Leaves all other values unchanged.
311
- *
312
- * @typeParam TValue - Input value type.
313
- * @param {TValue} value - Input object or array.
314
- * @returns {TValue} New value with boolean-like strings converted.
315
- */
316
- declare const convertStringBooleans: <TValue>(value: TValue) => TValue;
317
- /**
318
- * Convenience helper to clean form-like data:
319
- * - Removes `undefined` properties
320
- * - Converts string booleans to booleans
321
- * - Removes keys containing a dot (`.`)
322
- *
323
- * @typeParam TObject - Form data object type.
324
- * @param {TObject} objectToClean - Input data.
325
- * @returns {Partial<TObject>} Cleaned clone.
326
- */
327
- declare const cleanFormData: <TObject extends TRecord>(objectToClean: TObject) => Partial<TObject>;
328
- /**
329
- * Return a default pagination object, allowing optional sort and filters.
330
- *
331
- * @param {ISortCondition[]} [sort] - Optional sort conditions.
332
- * @param {IFilterCondition[]} [filters] - Optional filter conditions.
333
- * @returns {{ page: number; size: number; sort: ISortCondition[]; filters: IFilterCondition[] }}
334
- * @example
335
- * resetPagination() // => { page:1, size:25, sort:[], filters:[] }
336
- */
337
- declare const resetPagination: (sort?: ISortCondition[], filters?: IFilterCondition[]) => {
338
- page: number;
339
- size: number;
340
- sort: ISortCondition[];
341
- filters: TFilterConditionValue[];
342
- };
343
- /**
344
- * Format a string of digits into a U.S. phone number.
345
- *
346
- * Strips non-numeric characters and formats 10 digits as `(XXX) XXX-XXXX`.
347
- * Strips a leading US country code when 11 digits are provided.
348
- * If a value cannot be formatted, returns the original value as a string.
349
- *
350
- * @param {string | number} value - Phone number digits (string or number).
351
- * @returns {string} Formatted phone number, or original input if invalid length.
352
- * @example
353
- * formatPhoneNumber("1234567890") // "(123) 456-7890"
354
- * formatPhoneNumber(9876543210) // "(987) 654-3210"
355
- * formatPhoneNumber("555") // "555"
356
- */
357
- declare const formatPhoneNumber: (value: string | number) => string;
358
- /**
359
- * Format a number with thousands separators (commas).
360
- *
361
- * @param {number} value - Number to format.
362
- * @returns {string} String with commas.
363
- * @example
364
- * formatNumber(1234567) // "1,234,567"
365
- */
366
- declare const formatNumber: (value: number) => string;
367
- /**
368
- * Remove comma separators from a number-like value.
369
- *
370
- * @param {number | string} value - Number-like value.
371
- * @returns {string} Value without comma separators.
372
- */
373
- declare const parseNumber: (value: number | string) => string;
374
- /**
375
- * Delete a property from an object if it exists (no-op if it doesn't).
376
- *
377
- * @typeParam TObject - Object type.
378
- * @param {TObject} objectToUpdate - Target object (mutated).
379
- * @param {keyof TObject | string} propertyName - Property to delete.
380
- * @returns {void}
381
- */
382
- declare const deletePropertyIfExists: <TObject extends TRecord>(objectToUpdate: TObject, propertyName: keyof TObject | string) => void;
383
- /**
384
- * Split an array into chunks of a given size.
385
- *
386
- * @typeParam T - Element type.
387
- * @param {T[]} array - Source array.
388
- * @param {number} chunkSize - Size of each chunk.
389
- * @returns {T[][]} Array of chunks (last one may be smaller).
390
- * @example
391
- * chunkArray([1,2,3,4,5], 2) // [[1,2],[3,4],[5]]
392
- */
393
- declare const chunkArray: <T>(array: T[], chunkSize: number) => T[][];
394
- /**
395
- * Return a shallow clone of `objectToOmitFrom` without the listed properties.
396
- *
397
- * @typeParam TObject - Source object type.
398
- * @typeParam TKey - Keys to omit.
399
- * @param {TObject} objectToOmitFrom - Source object.
400
- * @param {readonly TKey[]} propsToOmit - Property names to omit.
401
- * @returns {Omit<TObject, TKey>} New object without omitted props.
402
- * @example
403
- * omitProperties({a:1,b:2}, ["b"]) // { a:1 }
404
- */
405
- declare const omitProperties: <TObject extends TRecord, TKey extends keyof TObject>(objectToOmitFrom: TObject, propsToOmit: readonly TKey[]) => Omit<TObject, TKey>;
406
- /**
407
- * Safe `hasOwnProperty` check.
408
- *
409
- * @param {unknown} value - Value to test.
410
- * @param {PropertyKey} key - Property name.
411
- * @returns {boolean}
412
- */
413
- declare const hasProperty: <TKey extends PropertyKey>(value: unknown, key: TKey) => value is Record<TKey, unknown>;
414
- /**
415
- * Safe `hasOwnProperty` alias from the reference utilities.
416
- *
417
- * @param {unknown} value - Value to test.
418
- * @param {PropertyKey} key - Property name.
419
- * @returns {boolean}
420
- */
421
- declare const hasOwnProp: <TKey extends PropertyKey>(value: unknown, key: TKey) => value is Record<TKey, unknown>;
422
- /**
423
- * Determine if an object has at least one own enumerable property.
424
- *
425
- * @param {unknown} value - Object to test.
426
- * @returns {boolean} `true` if there is at least one key.
427
- */
428
- declare const hasProperties: (value: unknown) => boolean;
429
- /**
430
- * Get the first own enumerable property value from an object.
431
- *
432
- * @typeParam TObject - Source object type.
433
- * @param {TObject | null | undefined} value - Source object.
434
- * @returns {TObject[keyof TObject] | null} First value, or null for empty/non-object input.
435
- */
436
- declare const getFirstPropertyValue: <TObject extends TRecord>(value: TObject | null | undefined) => TObject[keyof TObject] | null;
437
- /**
438
- * Get a nested value from an object using dot notation.
439
- *
440
- * @param {unknown} value - Source object.
441
- * @param {string} path - Dot-delimited path.
442
- * @returns {unknown} Nested value, or undefined when the path cannot be resolved.
443
- * @example
444
- * getNestedValue({ user: { name: "John" } }, "user.name") // "John"
445
- */
446
- declare const getNestedValue: (value: unknown, path: string) => unknown;
447
- /**
448
- * Set a nested value on an object using dot notation.
449
- *
450
- * Mutates and returns the provided object. Unsafe path segments are ignored to
451
- * prevent prototype pollution.
452
- *
453
- * @typeParam TObject - Target object type.
454
- * @param {TObject} objectToUpdate - Target object.
455
- * @param {string} path - Dot-delimited path.
456
- * @param {unknown} value - Value to set.
457
- * @returns {TObject} The mutated target object.
458
- * @example
459
- * setNestedValue({}, "user.name", "John") // { user: { name: "John" } }
460
- */
461
- declare const setNestedValue: <TObject extends TRecord>(objectToUpdate: TObject, path: string, value: unknown) => TObject;
462
- /**
463
- * Deep clone a value while preserving Dates and circular references.
464
- *
465
- * @typeParam TValue - Input value type.
466
- * @param {TValue} value - Value to clone.
467
- * @returns {TValue} Deep clone of the input.
468
- */
469
- declare const deepClone: <TValue>(value: TValue) => TValue;
470
- /**
471
- * Flatten a nested object into dot notation.
472
- *
473
- * Arrays and Dates are treated as leaf values.
474
- *
475
- * @param {TRecord} value - Source object.
476
- * @param {string} [prefix] - Internal prefix for recursion.
477
- * @returns {TRecord} Flattened object.
478
- * @example
479
- * flatten({ user: { name: "John" } }) // { "user.name": "John" }
480
- */
481
- declare const flatten: (value: TRecord, prefix?: string) => TRecord;
482
- /**
483
- * Convert a dot-notation object into a nested object.
484
- *
485
- * Unsafe path segments are ignored to prevent prototype pollution.
486
- *
487
- * @param {TRecord} value - Dot-notation source object.
488
- * @returns {TRecord} Nested object.
489
- * @example
490
- * unflatten({ "user.name": "John" }) // { user: { name: "John" } }
491
- */
492
- declare const unflatten: (value: TRecord) => TRecord;
493
-
494
- type TJsonPrimitive = string | number | boolean | null;
495
- type TJsonObject = {
496
- [key: string]: TJsonValue;
497
- };
498
- type TJsonValue = TJsonPrimitive | TJsonValue[] | TJsonObject;
499
- type TUnknownRecord = Record<string, unknown>;
500
- /**
501
- * Serialized ISO-8601 date/time value returned by API JSON contracts.
502
- */
503
- type TDateTimeString = string;
504
- type TurndownObject<TObject extends object = TUnknownRecord> = TObject;
505
- type TEmptyObject = Record<string, never>;
506
- type IEmptyRouteRequest = TEmptyObject;
507
- type IEmptyRouteParams = TEmptyObject;
508
- declare const ENVIRONMENT: {
509
- readonly Prod: "Prod";
510
- readonly Dev: "Dev";
511
- readonly Local: "Local";
512
- readonly Test: "Test";
513
- };
514
- type TEnvironment = (typeof ENVIRONMENT)[keyof typeof ENVIRONMENT];
515
- interface IMessageResponse {
516
- message: string;
517
- }
518
- interface ISuccessResponse {
519
- success: boolean;
520
- }
521
- interface ICountResponse {
522
- count: number;
523
- }
524
- interface IMetaData {
525
- createdAt: TDateTimeString;
526
- updatedAt: TDateTimeString;
527
- deletedAt: TDateTimeString | null;
528
- }
529
- type TRecordValue<TRecord extends object> = TRecord[keyof TRecord];
530
- type TRecordKeys<TRecord extends object> = keyof TRecord;
531
- interface IVersion {
532
- major: number;
533
- minor: number;
534
- patch: number;
535
- }
536
- type TVersionInput = string | IVersion;
537
- interface ISelectOption<TValue extends string = string> {
538
- label: string;
539
- value: TValue;
540
- }
541
- declare const MODE: {
542
- readonly Create: "Create";
543
- readonly Edit: "Edit";
544
- readonly Delete: "Delete";
545
- readonly Details: "Details";
546
- };
547
- type TMode = TRecordValue<typeof MODE> | null;
548
- declare const IMAGE_ENTITY: {
549
- readonly USER_PROFILE: "USER_PROFILE";
550
- readonly PROPERTY: "PROPERTY";
551
- readonly COMPANY: "COMPANY";
552
- readonly CHECKLIST_ITEM: "CHECKLIST_ITEM";
553
- readonly PROPERTY_ROOM: "PROPERTY_ROOM";
554
- readonly MAINTENANCE_TICKET: "MAINTENANCE_TICKET";
555
- readonly WORK_REPORT: "WORK_REPORT";
556
- readonly CLEANING_REPORT: "CLEANING_REPORT";
557
- readonly TURNDOWN_DEFAULT: "TURNDOWN_DEFAULT";
558
- };
559
- type TImageEntityType = TRecordValue<typeof IMAGE_ENTITY>;
560
- type TUSStateCode = TRecordKeys<typeof US_JURISDICTIONS>;
561
- declare const US_JURISDICTIONS: {
562
- readonly AL: "Alabama";
563
- readonly AK: "Alaska";
564
- readonly AZ: "Arizona";
565
- readonly AR: "Arkansas";
566
- readonly CA: "California";
567
- readonly CO: "Colorado";
568
- readonly CT: "Connecticut";
569
- readonly DE: "Delaware";
570
- readonly FL: "Florida";
571
- readonly GA: "Georgia";
572
- readonly HI: "Hawaii";
573
- readonly ID: "Idaho";
574
- readonly IL: "Illinois";
575
- readonly IN: "Indiana";
576
- readonly IA: "Iowa";
577
- readonly KS: "Kansas";
578
- readonly KY: "Kentucky";
579
- readonly LA: "Louisiana";
580
- readonly ME: "Maine";
581
- readonly MD: "Maryland";
582
- readonly MA: "Massachusetts";
583
- readonly MI: "Michigan";
584
- readonly MN: "Minnesota";
585
- readonly MS: "Mississippi";
586
- readonly MO: "Missouri";
587
- readonly MT: "Montana";
588
- readonly NE: "Nebraska";
589
- readonly NV: "Nevada";
590
- readonly NH: "New Hampshire";
591
- readonly NJ: "New Jersey";
592
- readonly NM: "New Mexico";
593
- readonly NY: "New York";
594
- readonly NC: "North Carolina";
595
- readonly ND: "North Dakota";
596
- readonly OH: "Ohio";
597
- readonly OK: "Oklahoma";
598
- readonly OR: "Oregon";
599
- readonly PA: "Pennsylvania";
600
- readonly RI: "Rhode Island";
601
- readonly SC: "South Carolina";
602
- readonly SD: "South Dakota";
603
- readonly TN: "Tennessee";
604
- readonly TX: "Texas";
605
- readonly UT: "Utah";
606
- readonly VT: "Vermont";
607
- readonly VA: "Virginia";
608
- readonly WA: "Washington";
609
- readonly WV: "West Virginia";
610
- readonly WI: "Wisconsin";
611
- readonly WY: "Wyoming";
612
- readonly DC: "District of Columbia";
613
- readonly PR: "Puerto Rico";
614
- readonly GU: "Guam";
615
- readonly VI: "United States Virgin Islands";
616
- readonly AS: "American Samoa";
617
- readonly MP: "Northern Mariana Islands";
618
- };
619
- type TUSJurisdiction = TRecordValue<typeof US_JURISDICTIONS>;
620
- declare const STATUS: {
621
- readonly PENDING: "PENDING";
622
- readonly IN_PROGRESS: "IN_PROGRESS";
623
- readonly COMPLETED: "COMPLETED";
624
- readonly OVERDUE: "OVERDUE";
625
- readonly ACTIVE: "ACTIVE";
626
- readonly INACTIVE: "INACTIVE";
627
- };
628
- type TStatus = TRecordValue<typeof STATUS>;
629
- declare const SEVERITY: {
630
- readonly LOW: "LOW";
631
- readonly MEDIUM: "MEDIUM";
632
- readonly HIGH: "HIGH";
633
- };
634
- type TSeverity = TRecordValue<typeof SEVERITY>;
635
- declare const SERVICE_TYPES: {
636
- readonly PROPERTY: "PROPERTY";
637
- readonly CLEANING: "CLEANING";
638
- readonly MAINTENANCE: "MAINTENANCE";
639
- readonly INSPECTION: "INSPECTION";
640
- readonly OTHER: "OTHER";
641
- };
642
- type TServiceType = TRecordValue<typeof SERVICE_TYPES>;
643
- declare const MONTHS: readonly ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
644
- type TMonths = (typeof MONTHS)[number];
645
- declare const WEEK_DAY: {
646
- readonly Sunday: "Sunday";
647
- readonly Monday: "Monday";
648
- readonly Tuesday: "Tuesday";
649
- readonly Wednesday: "Wednesday";
650
- readonly Thursday: "Thursday";
651
- readonly Friday: "Friday";
652
- readonly Saturday: "Saturday";
653
- };
654
- type TWeekDay = TRecordValue<typeof WEEK_DAY>;
655
- declare const WEEK_DAY_SHORT_LABEL: {
656
- readonly Sunday: "Sun";
657
- readonly Monday: "Mon";
658
- readonly Tuesday: "Tue";
659
- readonly Wednesday: "Wed";
660
- readonly Thursday: "Thu";
661
- readonly Friday: "Fri";
662
- readonly Saturday: "Sat";
663
- };
664
- type TWeekDayShortLabel = TRecordValue<typeof WEEK_DAY_SHORT_LABEL>;
665
- declare const WEEK_DAY_LETTER: {
666
- readonly Sunday: "S";
667
- readonly Monday: "M";
668
- readonly Tuesday: "T";
669
- readonly Wednesday: "W";
670
- readonly Thursday: "T";
671
- readonly Friday: "F";
672
- readonly Saturday: "S";
673
- };
674
- type TWeekDayLetter = TRecordValue<typeof WEEK_DAY_LETTER>;
675
- interface IWeekDay {
676
- date: Date;
677
- dayOfMonth: number;
678
- day: TWeekDay;
679
- shortLabel: TWeekDayShortLabel;
680
- letter: TWeekDayLetter;
681
- isToday: boolean;
682
- }
683
- declare const UnitedStatesJurisdictionOptions: ISelectOption<TRecordValue<{
684
- readonly AL: "Alabama";
685
- readonly AK: "Alaska";
686
- readonly AZ: "Arizona";
687
- readonly AR: "Arkansas";
688
- readonly CA: "California";
689
- readonly CO: "Colorado";
690
- readonly CT: "Connecticut";
691
- readonly DE: "Delaware";
692
- readonly FL: "Florida";
693
- readonly GA: "Georgia";
694
- readonly HI: "Hawaii";
695
- readonly ID: "Idaho";
696
- readonly IL: "Illinois";
697
- readonly IN: "Indiana";
698
- readonly IA: "Iowa";
699
- readonly KS: "Kansas";
700
- readonly KY: "Kentucky";
701
- readonly LA: "Louisiana";
702
- readonly ME: "Maine";
703
- readonly MD: "Maryland";
704
- readonly MA: "Massachusetts";
705
- readonly MI: "Michigan";
706
- readonly MN: "Minnesota";
707
- readonly MS: "Mississippi";
708
- readonly MO: "Missouri";
709
- readonly MT: "Montana";
710
- readonly NE: "Nebraska";
711
- readonly NV: "Nevada";
712
- readonly NH: "New Hampshire";
713
- readonly NJ: "New Jersey";
714
- readonly NM: "New Mexico";
715
- readonly NY: "New York";
716
- readonly NC: "North Carolina";
717
- readonly ND: "North Dakota";
718
- readonly OH: "Ohio";
719
- readonly OK: "Oklahoma";
720
- readonly OR: "Oregon";
721
- readonly PA: "Pennsylvania";
722
- readonly RI: "Rhode Island";
723
- readonly SC: "South Carolina";
724
- readonly SD: "South Dakota";
725
- readonly TN: "Tennessee";
726
- readonly TX: "Texas";
727
- readonly UT: "Utah";
728
- readonly VT: "Vermont";
729
- readonly VA: "Virginia";
730
- readonly WA: "Washington";
731
- readonly WV: "West Virginia";
732
- readonly WI: "Wisconsin";
733
- readonly WY: "Wyoming";
734
- readonly DC: "District of Columbia";
735
- readonly PR: "Puerto Rico";
736
- readonly GU: "Guam";
737
- readonly VI: "United States Virgin Islands";
738
- readonly AS: "American Samoa";
739
- readonly MP: "Northern Mariana Islands";
740
- }>>[];
741
- declare const StatusOptions: ISelectOption<TStatus>[];
742
- declare const SeverityOptions: ISelectOption<TSeverity>[];
743
- declare const ServiceTypeOptions: ISelectOption<TServiceType>[];
1
+ import { K as TJsonValue, T as TDateTimeString, B as TEnvironment, P as TRecordValue, d as IEmptyRouteRequest, h as IMessageResponse, i as IMetaData, Q as TServiceType, a as ICountResponse, X as TUSStateCode, H as TJsonObject, q as ISuccessResponse, n as ISelectOption, V as TStatus } from '../index-CzB45yLv.cjs';
2
+ export { E as ENVIRONMENT, F as FilterCondition, I as IBooleanFilterCondition, b as IDataWithPagingResult, c as IEmptyRouteParams, e as IFilterCondition, f as IFilterConditionBase, g as IMAGE_ENTITY, j as INumberFilterCondition, k as IPaginationRequest, l as IPagingObject, m as IPagingResult, o as ISortCondition, p as IStringFilterCondition, r as IVersion, s as IWeekDay, M as MODE, t as MONTHS, S as SERVICE_TYPES, u as SEVERITY, v as STATUS, w as ServiceTypeOptions, x as SeverityOptions, y as SortDirection, z as StatusOptions, A as TEmptyObject, C as TFilterCondition, D as TFilterConditionValue, G as TImageEntityType, J as TJsonPrimitive, L as TMode, N as TMonths, O as TRecordKeys, R as TSeverity, U as TSortDirection, W as TUSJurisdiction, Y as TUnknownRecord, Z as TVersionInput, _ as TWeekDay, $ as TWeekDayLetter, a0 as TWeekDayShortLabel, a1 as TurndownObject, a2 as US_JURISDICTIONS, a3 as UnitedStatesJurisdictionOptions, a4 as WEEK_DAY, a5 as WEEK_DAY_LETTER, a6 as WEEK_DAY_SHORT_LABEL, a7 as createPagingObject } from '../index-CzB45yLv.cjs';
3
+ import { TInferValidationSchemaInput, IRuntimeValidationSchema, IValidationField } from './validation/index.cjs';
4
+ export { IRuntimeValidationOptions, IValidationIssue, IValidationResult, TInferValidationFields, TMissingValuePolicy, TValidationFieldMap, TValidationIssueType, createValidationSchema, optionalEnumField, optionalNullableEnumField, optionalNullableNonNegativeIntegerField, optionalNullableStringField, optionalRecordField, optionalStringField, requiredEmailField, requiredEnumField, requiredStringField, requiredUuidField } from './validation/index.cjs';
744
5
 
745
6
  /**
746
7
  * API Response Types
@@ -819,56 +80,6 @@ interface IApiErrorResponse<TErrorDetails = TApiErrorDetails> {
819
80
  }
820
81
  type IApiResponse<TData = null, TErrorDetails = TApiErrorDetails> = IApiSuccessResponse<TData> | IApiErrorResponse<TErrorDetails>;
821
82
 
822
- type TValidationIssueType = "INVALID_BODY" | "MISSING_FIELD" | "INVALID_FIELD" | "UNSUPPORTED_FIELD";
823
- interface IValidationIssue<TFieldName extends string = string> {
824
- fieldName: TFieldName;
825
- type: TValidationIssueType;
826
- }
827
- interface IValidationResult<TValue extends object> {
828
- success: boolean;
829
- data?: TValue;
830
- issues: IValidationIssue[];
831
- }
832
- type TMissingValuePolicy = "Nullish" | "BlankString";
833
- interface IValidationField<TValue, TRequired extends boolean> {
834
- readonly valueType?: TValue;
835
- required: TRequired;
836
- missingValuePolicy: TMissingValuePolicy;
837
- validate: (value: unknown) => boolean;
838
- }
839
- type TValidationFieldMap = Record<string, IValidationField<unknown, boolean>>;
840
- type TRequiredSchemaKeys<TFields extends TValidationFieldMap> = {
841
- [TKey in keyof TFields]: TFields[TKey] extends IValidationField<unknown, true> ? TKey : never;
842
- }[keyof TFields];
843
- type TOptionalSchemaKeys<TFields extends TValidationFieldMap> = Exclude<keyof TFields, TRequiredSchemaKeys<TFields>>;
844
- type TFieldValue<TField> = TField extends IValidationField<infer TValue, boolean> ? TValue : never;
845
- type TInferValidationFields<TFields extends TValidationFieldMap> = {
846
- [TKey in TRequiredSchemaKeys<TFields>]: TFieldValue<TFields[TKey]>;
847
- } & {
848
- [TKey in TOptionalSchemaKeys<TFields>]?: TFieldValue<TFields[TKey]>;
849
- };
850
- type TInferValidationSchemaInput<TSchema> = TSchema extends IRuntimeValidationSchema<infer TFields> ? TInferValidationFields<TFields> : never;
851
- interface IRuntimeValidationSchema<TFields extends TValidationFieldMap = TValidationFieldMap> {
852
- fields: TFields;
853
- allowedFields: readonly Extract<keyof TFields, string>[];
854
- requiredFields: readonly Extract<TRequiredSchemaKeys<TFields>, string>[];
855
- validate: (value: unknown, options?: IRuntimeValidationOptions) => IValidationResult<TInferValidationFields<TFields>>;
856
- }
857
- interface IRuntimeValidationOptions {
858
- rejectUnknownFields?: boolean;
859
- }
860
- declare const createValidationSchema: <TFields extends TValidationFieldMap>(fields: TFields) => IRuntimeValidationSchema<TFields>;
861
- declare const requiredStringField: (missingValuePolicy?: TMissingValuePolicy) => IValidationField<string, true>;
862
- declare const optionalStringField: () => IValidationField<string, false>;
863
- declare const optionalNullableStringField: () => IValidationField<string | null, false>;
864
- declare const requiredEmailField: (missingValuePolicy?: TMissingValuePolicy) => IValidationField<string, true>;
865
- declare const requiredUuidField: (missingValuePolicy?: TMissingValuePolicy) => IValidationField<string, true>;
866
- declare const optionalNullableNonNegativeIntegerField: () => IValidationField<number | null, false>;
867
- declare const optionalRecordField: () => IValidationField<Record<string, unknown>, false>;
868
- declare const requiredEnumField: <TValue extends string>(allowedValues: readonly TValue[], missingValuePolicy?: TMissingValuePolicy) => IValidationField<TValue, true>;
869
- declare const optionalEnumField: <TValue extends string>(allowedValues: readonly TValue[]) => IValidationField<TValue, false>;
870
- declare const optionalNullableEnumField: <TValue extends string>(allowedValues: readonly TValue[]) => IValidationField<TValue | null, false>;
871
-
872
83
  declare const ACCOUNT_TYPE: {
873
84
  readonly TURNDOWN_ADMIN: "TURNDOWN_ADMIN";
874
85
  readonly ACCOUNT_ADMIN: "ACCOUNT_ADMIN";
@@ -954,20 +165,16 @@ interface IUser extends IMetaData {
954
165
  email: string;
955
166
  profilePhoto: string | null;
956
167
  companyId: string | null;
957
- passwordHash: string | null;
958
- loginAttempts: number;
959
- locked: boolean;
960
- passwordLastReset: TDateTimeString | null;
961
- passwordResetRequired: boolean;
962
- lastLogin: TDateTimeString | null;
963
168
  accountType: TAccountType;
964
169
  status: TAccountStatus;
965
170
  phoneNumber: string | null;
966
171
  phoneFormat: string | null;
967
172
  preferredLanguage: TLanguage | null;
968
- biometrics: string | null;
969
173
  }
970
- type IUserSafe = Omit<IUser, "passwordLastReset" | "lastLogin" | "passwordHash" | "loginAttempts" | "biometrics">;
174
+ /**
175
+ * @deprecated Use IUser. IUser no longer exposes password, token, or biometric internals.
176
+ */
177
+ type IUserSafe = IUser;
971
178
  interface IDeviceInfo {
972
179
  userAgent?: string;
973
180
  ip?: string;
@@ -1145,22 +352,15 @@ declare const AUTH_STATUS: {
1145
352
  readonly SessionExpired: "SessionExpired";
1146
353
  };
1147
354
  type TAuthStatus = (typeof AUTH_STATUS)[keyof typeof AUTH_STATUS];
1148
- interface ITokenPayload {
1149
- userId: string;
1150
- email: string;
1151
- name: string;
1152
- }
1153
- interface IRefreshTokenData {
1154
- token: string;
1155
- tokenHash: string;
1156
- tokenFamily: string;
1157
- expiresAt: TDateTimeString;
1158
- }
1159
355
  interface IAuthTokenBundle {
1160
356
  accessToken: string;
1161
357
  refreshToken: string;
1162
358
  expiresAt: TDateTimeString | null;
1163
359
  }
360
+ interface IRefreshTokenData {
361
+ token: string;
362
+ expiresAt: TDateTimeString;
363
+ }
1164
364
  interface IStoredAuthSession {
1165
365
  accessToken: string | null;
1166
366
  refreshToken: string | null;
@@ -1925,8 +1125,6 @@ declare const IMAGE_ENTITY_TYPE: {
1925
1125
  type TStoredImageEntityType = (typeof IMAGE_ENTITY_TYPE)[keyof typeof IMAGE_ENTITY_TYPE];
1926
1126
  interface IImage {
1927
1127
  id: string;
1928
- s3Key: string;
1929
- s3Bucket: string;
1930
1128
  entityType: TStoredImageEntityType;
1931
1129
  entityId: string;
1932
1130
  fileName: string;
@@ -2239,6 +1437,7 @@ interface ICompanyIdParams {
2239
1437
  companyId: string;
2240
1438
  }
2241
1439
  declare const CreatePropertyRequestSchema: IRuntimeValidationSchema<{
1440
+ companyId: IValidationField<string, true>;
2242
1441
  displayName: IValidationField<string, true>;
2243
1442
  propertyType: IValidationField<"APARTMENT" | "COMMERCIAL" | "CONDO" | "DUPLEX" | "HOUSE" | "MULTI_FAMILY" | "OFFICE" | "RETAIL" | "TOWNHOUSE" | "VACATION_RENTAL" | "WAREHOUSE", true>;
2244
1443
  status: IValidationField<"ACTIVE" | "INACTIVE" | null, false>;
@@ -2254,6 +1453,7 @@ declare const CreatePropertyRequestSchema: IRuntimeValidationSchema<{
2254
1453
  specialNotes: IValidationField<string | null, false>;
2255
1454
  }>;
2256
1455
  type ICreatePropertyRequest = TInferValidationSchemaInput<typeof CreatePropertyRequestSchema> & {
1456
+ companyId: string;
2257
1457
  propertyType: TPropertyType;
2258
1458
  status?: TPropertyStatus | null;
2259
1459
  stateCode: TUSStateCode;
@@ -2342,62 +1542,6 @@ interface IPropertyAccessInformation {
2342
1542
  parkingInfo: string | null;
2343
1543
  specialNotes: string | null;
2344
1544
  }
2345
- interface IPropertyBase {
2346
- id: string;
2347
- name: string;
2348
- address?: string;
2349
- propertyType?: string;
2350
- imageUrl?: string;
2351
- status?: TPropertyStatus;
2352
- }
2353
- interface IPropertyMetric {
2354
- id: string;
2355
- label: string;
2356
- value: string | number;
2357
- iconName?: string;
2358
- }
2359
- interface IPropertyAccessItem {
2360
- id: string;
2361
- label: string;
2362
- value?: string;
2363
- iconName?: string;
2364
- }
2365
- interface IPropertyRoomSummaryItem {
2366
- id: string;
2367
- name: string;
2368
- roomType?: string;
2369
- imageUrl?: string;
2370
- checklistCount?: number;
2371
- inventoryCount?: number;
2372
- }
2373
- interface IPropertyJobSummaryItem {
2374
- id: string;
2375
- title: string;
2376
- description?: string;
2377
- status?: TStatus;
2378
- }
2379
- interface IPropertyFormValues {
2380
- displayName: string;
2381
- propertyType: TPropertyType;
2382
- status: TPropertyStatus;
2383
- addressLine1: string;
2384
- city: string;
2385
- stateCode: TUSStateCode;
2386
- postalCode: string;
2387
- specialNotes: string;
2388
- }
2389
- interface IPropertyAccessFormValues {
2390
- entryInstructions: string;
2391
- accessCode: string;
2392
- wifiName: string;
2393
- wifiPassword: string;
2394
- parkingInfo: string;
2395
- specialNotes: string;
2396
- }
2397
- interface IPropertyFilterValues {
2398
- status: TPropertyStatus;
2399
- propertyType: TPropertyType;
2400
- }
2401
1545
  interface IPropertySummary {
2402
1546
  id: string;
2403
1547
  displayName: string;
@@ -2847,266 +1991,4 @@ interface ICompleteChecklistItemInput {
2847
1991
  skipReason?: string;
2848
1992
  }
2849
1993
 
2850
- /**
2851
- * String utilities for common text manipulation tasks.
2852
- */
2853
-
2854
- declare const normalCase: (str?: string) => string;
2855
- declare const sentenceCase: (str?: string) => string;
2856
- declare const upperCase: (str?: string) => string;
2857
- declare const lowerCase: (str?: string) => string;
2858
- /**
2859
- * Converts a string to camelCase.
2860
- *
2861
- * @example toCamelCase('hello-world') => 'helloWorld'
2862
- * @example toCamelCase('hello_world') => 'helloWorld'
2863
- */
2864
- declare const toCamelCase: (str: string) => string;
2865
- declare const camelCase: (str: string) => string;
2866
- /**
2867
- * Converts a string to kebab-case.
2868
- *
2869
- * @example toKebabCase('helloWorld') => 'hello-world'
2870
- * @example toKebabCase('Hello_World') => 'hello-world'
2871
- */
2872
- declare const toKebabCase: (str: string) => string;
2873
- declare const kebabCase: (str: string) => string;
2874
- /**
2875
- * Converts a string to snake_case.
2876
- *
2877
- * @example toSnakeCase('helloWorld') => 'hello_world'
2878
- * @example toSnakeCase('hello-world') => 'hello_world'
2879
- */
2880
- declare const toSnakeCase: (str: string) => string;
2881
- declare const snakeCase: (str: string) => string;
2882
- /**
2883
- * Converts a string to PascalCase.
2884
- *
2885
- * @example toPascalCase('hello-world') => 'HelloWorld'
2886
- * @example toPascalCase('hello_world') => 'HelloWorld'
2887
- */
2888
- declare const toPascalCase: (str: string) => string;
2889
- declare const pascalCase: (str: string) => string;
2890
- declare const snakeCaseToSpaces: (str: string) => string;
2891
- declare const kebabToSpaces: (str: string) => string;
2892
- /**
2893
- * Capitalizes the first character of a string.
2894
- *
2895
- * @example capitalize('hello world') => 'Hello world'
2896
- */
2897
- declare const capitalize: (str: string) => string;
2898
- /**
2899
- * Capitalizes the first letter of each word.
2900
- *
2901
- * @example titleCase('hello world') => 'Hello World'
2902
- */
2903
- declare const titleCase: (str: string) => string;
2904
- /**
2905
- * Truncates a string to a specified length and adds ellipsis.
2906
- *
2907
- * @example truncate('hello world', 5) => 'he...'
2908
- */
2909
- declare const truncate: (str: string, length: number, suffix?: string) => string;
2910
- /**
2911
- * Removes all whitespace from a string.
2912
- *
2913
- * @example removeWhitespace('hello world') => 'helloworld'
2914
- */
2915
- declare const removeWhitespace: (str: string) => string;
2916
- /**
2917
- * Removes all non-alphanumeric characters.
2918
- *
2919
- * @example removeSpecialChars('hello@world#123') => 'helloworld123'
2920
- */
2921
- declare const removeSpecialChars: (str: string) => string;
2922
- /**
2923
- * Generates a URL-friendly slug from a string.
2924
- *
2925
- * @example slug('Hello World 2024!') => 'hello-world-2024'
2926
- */
2927
- declare const slug: (str: string) => string;
2928
- /**
2929
- * Validates if a string is a valid email.
2930
- *
2931
- * @example isEmail('user@example.com') => true
2932
- */
2933
- declare const isEmail: (str: string) => boolean;
2934
- /**
2935
- * Validates if a string is a valid URL.
2936
- *
2937
- * @example isUrl('https://example.com') => true
2938
- */
2939
- declare const isUrl: (str: string) => boolean;
2940
- /**
2941
- * Validates if a string contains only numbers.
2942
- *
2943
- * @example isNumeric('12345') => true
2944
- * @example isNumeric('123abc') => false
2945
- */
2946
- declare const isNumeric: (str: string) => boolean;
2947
- /**
2948
- * Checks if a string is empty or contains only whitespace.
2949
- *
2950
- * @example isEmpty(' ') => true
2951
- * @example isEmpty('hello') => false
2952
- */
2953
- declare const isEmpty: (str: string) => boolean;
2954
- /**
2955
- * Reverses a string.
2956
- *
2957
- * @example reverse('hello') => 'olleh'
2958
- */
2959
- declare const reverse: (str: string) => string;
2960
- /**
2961
- * Repeats a string a specified number of times.
2962
- *
2963
- * @example repeat('ab', 3) => 'ababab'
2964
- */
2965
- declare const repeat: (str: string, times: number) => string;
2966
- /**
2967
- * Pads a string to a specified length.
2968
- *
2969
- * @example padStart('5', 3, '0') => '005'
2970
- * @example padEnd('5', 3, '0') => '500'
2971
- */
2972
- declare const padStart: (str: string, length: number, padChar?: string) => string;
2973
- declare const padEnd: (str: string, length: number, padChar?: string) => string;
2974
- /**
2975
- * Encodes a string to Base64.
2976
- *
2977
- * @example toBase64('hello') => 'aGVsbG8='
2978
- */
2979
- declare const toBase64: (str: string) => string;
2980
- /**
2981
- * Decodes a Base64 string.
2982
- *
2983
- * @example fromBase64('aGVsbG8=') => 'hello'
2984
- */
2985
- declare const fromBase64: (str: string) => string;
2986
- /**
2987
- * Counts the number of words in a string.
2988
- *
2989
- * @example wordCount('hello world test') => 3
2990
- */
2991
- declare const wordCount: (str: string) => number;
2992
- /**
2993
- * Counts the number of characters, excluding whitespace.
2994
- *
2995
- * @example charCount('hello world') => 10
2996
- */
2997
- declare const charCount: (str: string) => number;
2998
- /**
2999
- * Repeats a character a specified number of times.
3000
- *
3001
- * @example repeatChar('*', 5) => '*****'
3002
- */
3003
- declare const repeatChar: (char: string, times: number) => string;
3004
- /**
3005
- * Extracts numbers from a string.
3006
- *
3007
- * @example extractNumbers('abc123def456') => '123456'
3008
- */
3009
- declare const extractNumbers: (str: string) => string;
3010
- /**
3011
- * Removes duplicate consecutive characters.
3012
- *
3013
- * @example removeDuplicates('aabbccdd') => 'abcd'
3014
- */
3015
- declare const removeDuplicates: (str: string) => string;
3016
- /**
3017
- * Checks if a string is a palindrome.
3018
- *
3019
- * @example isPalindrome('racecar') => true
3020
- * @example isPalindrome('hello') => false
3021
- */
3022
- declare const isPalindrome: (str: string) => boolean;
3023
- /**
3024
- * Finds the longest word in a string.
3025
- *
3026
- * @example longestWord('the quick brown fox') => 'quick'
3027
- */
3028
- declare const longestWord: (str: string) => string;
3029
- /**
3030
- * Pluralizes common English words using a simple ruleset.
3031
- *
3032
- * @example pluralize('cat') => 'cats'
3033
- * @example pluralize('box') => 'boxes'
3034
- */
3035
- declare const pluralize: (word: string) => string;
3036
- /**
3037
- * Highlights a substring within a string by wrapping it with markers.
3038
- *
3039
- * @example highlight('hello world', 'world', '**') => 'hello **world**'
3040
- */
3041
- declare const highlight: (str: string, substring: string, marker?: string) => string;
3042
- /**
3043
- * Converts a string to a regex-safe string.
3044
- *
3045
- * @example escapeRegex('a.b*c') => 'a\\.b\\*c'
3046
- */
3047
- declare const escapeRegex: (str: string) => string;
3048
- /**
3049
- * Finds similarity between two strings using Levenshtein distance.
3050
- * Returns a value between 0 and 1, where 1 means identical.
3051
- *
3052
- * @example stringSimilarity('hello', 'hallo') => 0.8
3053
- */
3054
- declare const stringSimilarity: (str1: string, str2: string) => number;
3055
- /**
3056
- * Strips HTML tags from a string.
3057
- *
3058
- * @example stripHtml('<p>Hello <b>world</b></p>') => 'Hello world'
3059
- */
3060
- declare const stripHtml: (str: string) => string;
3061
- /**
3062
- * Replaces multiple spaces with a single space.
3063
- *
3064
- * @example normalizeSpaces('hello world') => 'hello world'
3065
- */
3066
- declare const normalizeSpaces: (str: string) => string;
3067
- /**
3068
- * Converts a string to a number, returning null if not valid.
3069
- *
3070
- * @example toNumber('123') => 123
3071
- * @example toNumber('abc') => null
3072
- */
3073
- declare const toNumber: (str: string) => number | null;
3074
- /**
3075
- * Splits a string by multiple delimiters.
3076
- *
3077
- * @example splitMultiple('a,b;c:d', ',', ';', ':') => ['a', 'b', 'c', 'd']
3078
- */
3079
- declare const splitMultiple: (str: string, ...delimiters: string[]) => string[];
3080
- /**
3081
- * Checks if a string contains any of the provided substrings.
3082
- *
3083
- * @example containsAny('hello world', 'foo', 'world') => true
3084
- */
3085
- declare const containsAny: (str: string, ...substrings: string[]) => boolean;
3086
- /**
3087
- * Checks if a string contains all of the provided substrings.
3088
- *
3089
- * @example containsAll('hello world', 'hello', 'world') => true
3090
- */
3091
- declare const containsAll: (str: string, ...substrings: string[]) => boolean;
3092
- interface IAddress {
3093
- addressLine1: string;
3094
- addressLine2?: string;
3095
- city: string;
3096
- stateCode: TUSStateCode;
3097
- postalCode: string;
3098
- }
3099
- declare const formatAddress: (address: IAddress) => string;
3100
-
3101
- type Success<T> = {
3102
- data: T;
3103
- error: null;
3104
- };
3105
- type Failure<E> = {
3106
- data: null;
3107
- error: E;
3108
- };
3109
- type Result<T, E = unknown> = Success<T> | Failure<E>;
3110
- declare const tryCatch: <T, E = unknown>(callback: () => T | Promise<T>) => Promise<Result<T, E>>;
3111
-
3112
- export { ACCOUNT_STATUS, ACCOUNT_TYPE, AUTH_STATUS, AcceptInvitationRequestSchema, BILLING_PERIOD, CHECKLIST_EXECUTION_STATUS, COMPANY_RELATIONSHIP_STATUS, COMPANY_TYPES, ChangePasswordRequestSchema, CompanyFilter, CreateCompanyRequestSchema, CreatePropertyRequestSchema, CreateRoomRequestSchema, DAMAGE_SEVERITY, DAMAGE_STATUS, DATABASE_STATUS, ENVIRONMENT, ERROR_CODES, FilterCondition, ForgotPasswordRequestSchema, HTTP_METHOD, HTTP_STATUS, type IAcceptCompanyInvitationRequest, type IAcceptCompanyInvitationResponse, type IAcceptInvitationRequest, type IAcceptInvitationResponse, type IAcceptInvitationRouteResponse, type IAddChecklistItemRequest, type IAddChecklistItemResponse, type IAddDamageReportCommentRequest, type IAddDamageReportCommentResponse, type IAddDamageReportPhotoRequest, type IAddDamageReportPhotoResponse, type IAddInventoryToPropertyRequest, type IAddInventoryToPropertyResponse, type IAddInventoryToRoomRequest, type IAddInventoryToRoomResponse, type IAddTemplateItemRequest, type IAddTemplateItemResponse, type IAddress, type IApiError, type IApiErrorResponse, type IApiMeta, type IApiResponse, type IApiSuccessResponse, type IAssignDamageReportRequest, type IAssignDamageReportResponse, type IAssignWorkOrderRequest, type IAssignWorkOrderResponse, type IAuthInvitationBaseResponse, type IAuthInvitationIdParams, type IAuthInvitationTokenParams, type IAuthMessageResponse, type IAuthRefreshTokenResponse, type IAuthSession, type IAuthSessionIdParams, type IAuthTokenBundle, type IAuthTokenResponse, type IBooleanFilterCondition, type ICancelWorkSessionRequest, type ICancelWorkSessionResponse, type IChangePasswordRequest, type IChangePasswordResponse, type IChecklistAndItemIdParams, type IChecklistExecution, type IChecklistIdParams, type IChecklistItemCompletion, type IChecklistItemOrder, type IChecklistTemplate, type IChecklistTemplateCompanyRouteParams, type IChecklistTemplateItem, type IChecklistTemplateWithItems, type ICloneChecklistRequest, type ICloneChecklistResponse, type ICompany, type ICompanyIdParams, type ICompanyInvitationIdParams, type ICompanyInvitationSummary, type ICompanyInvitationTokenParams, type ICompanyRouteParams, type ICompanyUserRouteParams, type ICompanyUserSummary, type ICompanyWithRelationshipStatus, type ICompanyWithUsers, type ICompleteChecklistExecutionRequest, type ICompleteChecklistExecutionResponse, type ICompleteChecklistItemInput, type ICompleteExecutionItemRequest, type ICompleteExecutionItemResponse, type ICompleteWorkOrderRequest, type ICompleteWorkOrderResponse, type ICompleteWorkSessionRequest, type ICompleteWorkSessionResponse, type ICountResponse, type ICreateChecklistRequest, type ICreateChecklistResponse, type ICreateCompanyRequest, type ICreateCompanyResponse, type ICreateCustomChecklistRequest, type ICreateCustomChecklistResponse, type ICreateDamageReportInput, type ICreateDamageReportRequest, type ICreateDamageReportResponse, type ICreateInventoryItemRequest, type ICreateInventoryItemResponse, type ICreatePropertyRequest, type ICreatePropertyResponse, type ICreateRestockOrderRequest, type ICreateRestockOrderResponse, type ICreateRoomChecklistInput, type ICreateRoomChecklistItemInput, type ICreateRoomRequest, type ICreateRoomResponse, type ICreateTemplateInput, type ICreateTemplateItemInput, type ICreateTemplateRequest, type ICreateTemplateResponse, type ICreateTemplateWithItemsRequest, type ICreateTemplateWithItemsResponse, type ICreateWorkOrderInput, type ICreateWorkOrderRequest, type ICreateWorkOrderResponse, type ICreateWorkSessionInput, type ICreateWorkSessionRequest, type ICreateWorkSessionResponse, type IDamageComment, type IDamagePhoto, type IDamageReport, type IDamageReportPhoto, type IDamageReportPropertyRouteParams, type IDamageReportRoomRouteParams, type IDamageReportRouteParams, type IDamageReportStatusHistory, type IDamageReportWorkOrderRouteParams, type IDataWithPagingResult, type IDeclineCompanyInvitationRequest, type IDeclineCompanyInvitationResponse, type IDeleteChecklistItemRequest, type IDeleteChecklistItemResponse, type IDeleteChecklistRequest, type IDeleteChecklistResponse, type IDeleteImageRequest, type IDeleteImageResponse, type IDeleteInventoryItemRequest, type IDeleteInventoryItemResponse, type IDeletePropertyRequest, type IDeletePropertyResponse, type IDeleteRoomRequest, type IDeleteRoomResponse, type IDeleteTemplateItemRequest, type IDeleteTemplateItemResponse, type IDeleteTemplateRequest, type IDeleteTemplateResponse, type IDeleteUserRequest, type IDeleteUserResponse, type IDeviceInfo, type IDuplicateTemplateItemRequest, type IDuplicateTemplateItemResponse, type IEmailValidationResult, type IEmptyRouteParams, type IEmptyRouteRequest, type IFilterCondition, type IFilterConditionBase, type IForgotPasswordRequest, type IForgotPasswordResponse, type IGetActiveWorkSessionRequest, type IGetActiveWorkSessionResponse, type IGetChecklistByIdRequest, type IGetChecklistByIdResponse, type IGetChecklistByRoomIdRequest, type IGetChecklistByRoomIdResponse, type IGetChecklistExecutionByIdRequest, type IGetChecklistExecutionByIdResponse, type IGetChecklistExecutionsRequest, type IGetChecklistExecutionsResponse, type IGetChecklistItemsRequest, type IGetChecklistItemsResponse, type IGetChecklistWithItemsRequest, type IGetChecklistWithItemsResponse, type IGetCompaniesQuery, type IGetCompaniesRequest, type IGetCompaniesResponse, type IGetCompanyByIdRequest, type IGetCompanyByIdResponse, type IGetCompanyUsersRequest, type IGetCompanyUsersResponse, type IGetCurrentUserRequest, type IGetCurrentUserResponse, type IGetCustomChecklistItemsRequest, type IGetCustomChecklistItemsResponse, type IGetDamageReportByIdRequest, type IGetDamageReportByIdResponse, type IGetDamageReportCommentsRequest, type IGetDamageReportCommentsResponse, type IGetDamageReportHistoryRequest, type IGetDamageReportHistoryResponse, type IGetDamageReportPhotosRequest, type IGetDamageReportPhotosResponse, type IGetDamageReportsByPropertyIdRequest, type IGetDamageReportsByPropertyIdResponse, type IGetDamageReportsByRoomIdRequest, type IGetDamageReportsByRoomIdResponse, type IGetDetailedHealthRequest, type IGetDetailedHealthResponse, type IGetDetailedRoomsByPropertyIdRequest, type IGetDetailedRoomsByPropertyIdResponse, type IGetExecutionItemsRequest, type IGetExecutionItemsResponse, type IGetExecutionProgressRequest, type IGetExecutionProgressResponse, type IGetHealthRequest, type IGetHealthResponse, type IGetImagesForEntityResponse, type IGetInventoryByCompanyIdRequest, type IGetInventoryByCompanyIdResponse, type IGetInventoryCountsByExecutionIdRequest, type IGetInventoryCountsByExecutionIdResponse, type IGetInventoryItemByIdRequest, type IGetInventoryItemByIdResponse, type IGetLoginHistoryListResponse, type IGetLoginHistoryRequest, type IGetLoginHistoryResponse, type IGetMeRequest, type IGetMeResponse, type IGetPendingCompanyInvitationsRequest, type IGetPendingCompanyInvitationsResponse, type IGetPendingInvitationsListResponse, type IGetPendingInvitationsRequest, type IGetPendingInvitationsResponse, type IGetPropertiesByCompanyIdRequest, type IGetPropertiesByCompanyIdResponse, type IGetPropertiesRequest, type IGetPropertiesResponse, type IGetPropertyAccessInformationRequest, type IGetPropertyAccessInformationResponse, type IGetPropertyByIdRequest, type IGetPropertyByIdResponse, type IGetPropertyInventoryNeedingRestockRequest, type IGetPropertyInventoryNeedingRestockResponse, type IGetPropertyInventoryRequest, type IGetPropertyInventoryResponse, type IGetPropertyResponse, type IGetRestockOrderItemsRequest, type IGetRestockOrderItemsResponse, type IGetRestockOrdersByCompanyIdRequest, type IGetRestockOrdersByCompanyIdResponse, type IGetRoomByIdRequest, type IGetRoomByIdResponse, type IGetRoomInventoryNeedingRestockRequest, type IGetRoomInventoryNeedingRestockResponse, type IGetRoomInventoryRequest, type IGetRoomInventoryResponse, type IGetRoomsByPropertyIdRequest, type IGetRoomsByPropertyIdResponse, type IGetRoomsRequest, type IGetSessionsRequest, type IGetSessionsResponse, type IGetStaffRequest, type IGetStaffResponse, type IGetTemplateByIdRequest, type IGetTemplateByIdResponse, type IGetTemplateItemsRequest, type IGetTemplateItemsResponse, type IGetTemplateUsageRequest, type IGetTemplateUsageResponse, type IGetTemplateWithItemsRequest, type IGetTemplateWithItemsResponse, type IGetTemplatesByCompanyIdRequest, type IGetTemplatesByCompanyIdResponse, type IGetUserByEmailRequest, type IGetUserByEmailResponse, type IGetUserByIdRequest, type IGetUserByIdResponse, type IGetUserCompaniesRequest, type IGetUserCompaniesResponse, type IGetUserResponse, type IGetUsersByAccountTypeRequest, type IGetUsersByAccountTypeResponse, type IGetWorkOrderByIdRequest, type IGetWorkOrderByIdResponse, type IGetWorkOrdersByPropertyIdRequest, type IGetWorkOrdersByPropertyIdResponse, type IGetWorkSessionByIdRequest, type IGetWorkSessionByIdResponse, type IGetWorkSessionWithExecutionsRequest, type IGetWorkSessionWithExecutionsResponse, type IGetWorkSessionsByPropertyIdRequest, type IGetWorkSessionsByPropertyIdResponse, type IGetWorkSessionsByUserIdRequest, type IGetWorkSessionsByUserIdResponse, type IHealthCheckResponse, type IHealthChecks, type IImage, type IImageCompanyRouteParams, type IImagePropertyRouteParams, type IImageRoomRouteParams, type IImageRouteParams, type IImageUserRouteParams, type IImageWithUrl, type IIncludeInactiveQuery, type IIncludeResolvedQuery, type IInventoryCompanyRouteParams, type IInventoryCount, type IInventoryExecutionRouteParams, type IInventoryItem, type IInventoryItemRouteParams, type IInventoryOrderRouteParams, type IInventoryPropertyRouteParams, type IInventoryRestockOrder, type IInventoryRestockOrderItem, type IInventoryRoomRouteParams, type IInviteCompanyToCompanyRequest, type IInviteCompanyToCompanyResponse, type IInviteUserToCompanyRequest, type IInviteUserToCompanyResponse, type IJobFilterValues, type ILimitQuery, type ILoginCredentials, type ILoginRequest, type ILoginResponse, type ILogoutAllRequest, type ILogoutAllResponse, type ILogoutRequest, type ILogoutResponse, IMAGE_ENTITY, IMAGE_ENTITY_TYPE, type IMessageResponse, type IMetaData, type IMissingFieldsErrorDetail, INVENTORY_ITEM_TYPE, INVENTORY_RESTOCK_ORDER_STATUS, INVENTORY_UNITS, INVITATION_STATUS, type INumberFilterCondition, type IPaginationRequest, type IPagingObject, type IPagingResult, type IPasswordValidationResult, type IPasswordValidationRules, type IProperty, type IPropertyAccessFormValues, type IPropertyAccessInformation, type IPropertyAccessItem, type IPropertyBase, type IPropertyDetail, type IPropertyFilterValues, type IPropertyFormValues, type IPropertyIdParams, type IPropertyInventory, type IPropertyJobSummaryItem, type IPropertyMetric, type IPropertyRoomSummaryItem, type IPropertySummary, type IRateLimitErrorDetail, type IRateLimitStatus, type IRecordInventoryCountRequest, type IRecordInventoryCountResponse, type IRefreshSessionRequest, type IRefreshSessionResponse, type IRefreshTokenData, type IRegisterCredentials, type IRegisterRequest, type IRegisterResponse, type IRegisterWithInvitationRequest, type IRegisterWithInvitationResponse, type IReorderChecklistItemsRequest, type IReorderChecklistItemsResponse, type IReorderTemplateItemsRequest, type IReorderTemplateItemsResponse, type IResolveDamageReportRequest, type IResolveDamageReportResponse, type IRestockOrderItemInput, type IRevokeCompanyInvitationRequest, type IRevokeCompanyInvitationResponse, type IRevokeInvitationRequest, type IRevokeInvitationResponse, type IRevokeSessionRequest, type IRevokeSessionResponse, type IRoom, type IRoomChecklist, type IRoomChecklistItem, type IRoomChecklistRoomRouteParams, type IRoomChecklistWithItems, type IRoomInventory, type IRoomInventoryIdParams, type IRoomPropertyRouteParams, type IRoomRouteParams, type IRuntimeValidationOptions, type IRuntimeValidationSchema, type ISelectOption, type ISetAuthSessionParams, type ISkipChecklistExecutionRequest, type ISkipChecklistExecutionResponse, type ISortCondition, type IStartChecklistExecutionRequest, type IStartChecklistExecutionResponse, type IStoredAuthSession, type IStringFilterCondition, type ISuccessResponse, type ITemplateAndItemIdParams, type ITemplateIdParams, type ITemplateItemIdParams, type ITemplateItemOrder, type IToggleTemplateActiveRequest, type IToggleTemplateActiveResponse, type ITokenPayload, type ITypedApiError, type IUpdateChecklistItemRequest, type IUpdateChecklistItemResponse, type IUpdateChecklistRequest, type IUpdateChecklistResponse, type IUpdateCompanyRequest, type IUpdateCompanyResponse, type IUpdateCurrentUserRequest, type IUpdateDamageReportRequest, type IUpdateDamageReportResponse, type IUpdateDamageReportStatusRequest, type IUpdateDamageReportStatusResponse, type IUpdateInventoryItemRequest, type IUpdateInventoryItemResponse, type IUpdatePropertyAccessInformationRequest, type IUpdatePropertyAccessInformationResponse, type IUpdatePropertyRequest, type IUpdatePropertyResponse, type IUpdateRestockOrderStatusRequest, type IUpdateRestockOrderStatusResponse, type IUpdateRoomInventoryRequest, type IUpdateRoomInventoryResponse, type IUpdateRoomRequest, type IUpdateRoomResponse, type IUpdateTemplateItemRequest, type IUpdateTemplateItemResponse, type IUpdateTemplateRequest, type IUpdateTemplateResponse, type IUpdateUserRequest, type IUpdateUserResponse, type IUpdateWorkOrderRequest, type IUpdateWorkOrderResponse, type IUpdateWorkOrderStatusRequest, type IUpdateWorkOrderStatusResponse, type IUpdateWorkSessionRequest, type IUpdateWorkSessionResponse, type IUploadImagesResponse, type IUploadProfileImageRequest, type IUploadProfileImageResponse, type IUser, type IUserIdParams, type IUserSafe, type IUserSession, type IUserSubscription, type IValidateCompanyInvitationRequest, type IValidateCompanyInvitationResponse, type IValidateInvitationRequest, type IValidateInvitationResponse, type IValidationErrorDetail, type IValidationField, type IValidationIssue, type IValidationResult, type IVersion, type IWeekDay, type IWorkOrder, type IWorkSession, type IWorkSessionExecutionRouteParams, type IWorkSessionPropertyRouteParams, type IWorkSessionRouteParams, type IWorkSessionUserRouteParams, type IWorkSessionWithExecutions, InviteCompanyToCompanyRequestSchema, InviteUserToCompanyRequestSchema, JSONStringify, LANGUAGE, LoginRequestSchema, LogoutRequestSchema, MODE, MONTHS, PROPERTY_STATUS, PROPERTY_TYPES, PropertyStatusOptions, PropertyTypeOptions, ROOM_TYPE, RefreshSessionRequestSchema, RegisterRequestSchema, RegisterWithInvitationRequestSchema, SERVER_STATUS, SERVICE_TYPES, SEVERITY, STATUS, SUBSCRIPTION_PROVIDER, SUBSCRIPTION_STATUS, ServiceTypeOptions, SeverityOptions, SortDirection, StatusOptions, type TAccountStatus, type TAccountType, type TApiErrorDetails, type TAuthStatus, type TBillingPeriod, type TChecklistExecutionStatus, type TCompanyFilter, type TCompanyRelationshipStatus, type TCompanyType, type TDamageSeverity, type TDamageStatus, type TDatabaseStatus, type TDateFormat, type TDateInput, type TDateTimeString, type TEmptyObject, type TEnvironment, type TErrorCode, type TErrorResponseDetail, type TFilterCondition, type TFilterConditionValue, type THttpMethod, type THttpStatusCode, type TImageEntityType, type TInferValidationFields, type TInferValidationSchemaInput, type TInventoryItemType, type TInventoryRestockOrderStatus, type TInventoryUnitType, type TInvitationStatus, type TJsonObject, type TJsonPrimitive, type TJsonValue, type TLanguage, type TMissingFieldsError, type TMissingValuePolicy, type TMode, type TMonths, type TPropertyStatus, type TPropertyType, type TRateLimitError, type TRecordKeys, type TRecordValue, type TRoomType, type TServerStatus, type TServiceType, type TSeverity, type TSortDirection, type TStatus, type TStoredImageEntityType, type TSubscriptionProvider, type TSubscriptionStatus, type TUSJurisdiction, type TUSStateCode, type TUnknownRecord, type TValidationError, type TValidationFieldMap, type TValidationIssueType, type TVersionInput, type TWeekDay, type TWeekDayLetter, type TWeekDayShortLabel, type TWorkOrderPriority, type TWorkOrderStatus, type TWorkSessionStatus, type TurndownObject, US_JURISDICTIONS, UnitedStatesJurisdictionOptions, UpdateCompanyRequestSchema, UpdateCurrentUserRequestSchema, UpdatePropertyAccessInformationRequestSchema, UpdatePropertyRequestSchema, UpdateRoomRequestSchema, UpdateUserRequestSchema, WEEK_DAY, WEEK_DAY_LETTER, WEEK_DAY_SHORT_LABEL, WORK_ORDER_PRIORITY, WORK_ORDER_STATUS, WORK_SESSION_STATUS, addDays, addWeeks, camelCase, capitalize, charCount, chunkArray, cleanFormData, containsAll, containsAny, convertStringBooleans, createPagingObject, createValidationSchema, daysBetween, deepClone, deletePropertyIfExists, endOfDay, endOfWeek, escapeRegex, extractNumbers, filterArrayById, flatten, formatAddress, formatDate, formatNumber, formatPhoneNumber, fromBase64, getFirstPropertyValue, getNestedValue, getWeekDays, hasOwnProp, hasProperties, hasProperty, highlight, isAuthError, isEmail, isEmpty, isFuture, isMissingFieldsError, isNumeric, isPalindrome, isPast, isRateLimitError, isToday, isUrl, isValidationError, kebabCase, kebabToSpaces, longestWord, lowerCase, normalCase, normalizeSpaces, omitProperties, optionalEnumField, optionalNullableEnumField, optionalNullableNonNegativeIntegerField, optionalNullableStringField, optionalRecordField, optionalStringField, padEnd, padStart, parseJSON, parseNumber, pascalCase, pluralize, removeDuplicates, removeFormProperties, removeSpecialChars, removeUndefined, removeWhitespace, repeat, repeatChar, replaceNulls, requiredEmailField, requiredEnumField, requiredStringField, requiredUuidField, resetPagination, returnObject, reverse, sentenceCase, setNestedValue, slug, snakeCase, snakeCaseToSpaces, sortArrayByProperty, splitMultiple, startOfDay, startOfWeek, stringSimilarity, stripHtml, subtractDays, subtractWeeks, timeAgo, titleCase, toBase64, toCamelCase, toKebabCase, toNumber, toPascalCase, toSnakeCase, truncate, tryCatch, unflatten, upperCase, validPath, wordCount };
1994
+ export { ACCOUNT_STATUS, ACCOUNT_TYPE, AUTH_STATUS, AcceptInvitationRequestSchema, BILLING_PERIOD, CHECKLIST_EXECUTION_STATUS, COMPANY_RELATIONSHIP_STATUS, COMPANY_TYPES, ChangePasswordRequestSchema, CompanyFilter, CreateCompanyRequestSchema, CreatePropertyRequestSchema, CreateRoomRequestSchema, DAMAGE_SEVERITY, DAMAGE_STATUS, DATABASE_STATUS, ERROR_CODES, ForgotPasswordRequestSchema, HTTP_METHOD, HTTP_STATUS, type IAcceptCompanyInvitationRequest, type IAcceptCompanyInvitationResponse, type IAcceptInvitationRequest, type IAcceptInvitationResponse, type IAcceptInvitationRouteResponse, type IAddChecklistItemRequest, type IAddChecklistItemResponse, type IAddDamageReportCommentRequest, type IAddDamageReportCommentResponse, type IAddDamageReportPhotoRequest, type IAddDamageReportPhotoResponse, type IAddInventoryToPropertyRequest, type IAddInventoryToPropertyResponse, type IAddInventoryToRoomRequest, type IAddInventoryToRoomResponse, type IAddTemplateItemRequest, type IAddTemplateItemResponse, type IApiError, type IApiErrorResponse, type IApiMeta, type IApiResponse, type IApiSuccessResponse, type IAssignDamageReportRequest, type IAssignDamageReportResponse, type IAssignWorkOrderRequest, type IAssignWorkOrderResponse, type IAuthInvitationBaseResponse, type IAuthInvitationIdParams, type IAuthInvitationTokenParams, type IAuthMessageResponse, type IAuthRefreshTokenResponse, type IAuthSession, type IAuthSessionIdParams, type IAuthTokenBundle, type IAuthTokenResponse, type ICancelWorkSessionRequest, type ICancelWorkSessionResponse, type IChangePasswordRequest, type IChangePasswordResponse, type IChecklistAndItemIdParams, type IChecklistExecution, type IChecklistIdParams, type IChecklistItemCompletion, type IChecklistItemOrder, type IChecklistTemplate, type IChecklistTemplateCompanyRouteParams, type IChecklistTemplateItem, type IChecklistTemplateWithItems, type ICloneChecklistRequest, type ICloneChecklistResponse, type ICompany, type ICompanyIdParams, type ICompanyInvitationIdParams, type ICompanyInvitationSummary, type ICompanyInvitationTokenParams, type ICompanyRouteParams, type ICompanyUserRouteParams, type ICompanyUserSummary, type ICompanyWithRelationshipStatus, type ICompanyWithUsers, type ICompleteChecklistExecutionRequest, type ICompleteChecklistExecutionResponse, type ICompleteChecklistItemInput, type ICompleteExecutionItemRequest, type ICompleteExecutionItemResponse, type ICompleteWorkOrderRequest, type ICompleteWorkOrderResponse, type ICompleteWorkSessionRequest, type ICompleteWorkSessionResponse, 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 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, IEmptyRouteRequest, type IForgotPasswordRequest, type IForgotPasswordResponse, type IGetActiveWorkSessionRequest, type IGetActiveWorkSessionResponse, type IGetChecklistByIdRequest, type IGetChecklistByIdResponse, type IGetChecklistByRoomIdRequest, type IGetChecklistByRoomIdResponse, type IGetChecklistExecutionByIdRequest, type IGetChecklistExecutionByIdResponse, type IGetChecklistExecutionsRequest, type IGetChecklistExecutionsResponse, type IGetChecklistItemsRequest, type IGetChecklistItemsResponse, type IGetChecklistWithItemsRequest, type IGetChecklistWithItemsResponse, type IGetCompaniesQuery, type IGetCompaniesRequest, type IGetCompaniesResponse, type IGetCompanyByIdRequest, type IGetCompanyByIdResponse, type IGetCompanyUsersRequest, type IGetCompanyUsersResponse, type IGetCurrentUserRequest, type IGetCurrentUserResponse, type IGetCustomChecklistItemsRequest, type IGetCustomChecklistItemsResponse, type IGetDamageReportByIdRequest, type IGetDamageReportByIdResponse, type IGetDamageReportCommentsRequest, type IGetDamageReportCommentsResponse, type IGetDamageReportHistoryRequest, type IGetDamageReportHistoryResponse, type IGetDamageReportPhotosRequest, type IGetDamageReportPhotosResponse, type IGetDamageReportsByPropertyIdRequest, type IGetDamageReportsByPropertyIdResponse, type IGetDamageReportsByRoomIdRequest, type IGetDamageReportsByRoomIdResponse, type IGetDetailedHealthRequest, type IGetDetailedHealthResponse, type IGetDetailedRoomsByPropertyIdRequest, type IGetDetailedRoomsByPropertyIdResponse, type IGetExecutionItemsRequest, type IGetExecutionItemsResponse, type IGetExecutionProgressRequest, type IGetExecutionProgressResponse, type IGetHealthRequest, type IGetHealthResponse, type IGetImagesForEntityResponse, type IGetInventoryByCompanyIdRequest, type IGetInventoryByCompanyIdResponse, type IGetInventoryCountsByExecutionIdRequest, type IGetInventoryCountsByExecutionIdResponse, type IGetInventoryItemByIdRequest, type IGetInventoryItemByIdResponse, type IGetLoginHistoryListResponse, type IGetLoginHistoryRequest, type IGetLoginHistoryResponse, type IGetMeRequest, type IGetMeResponse, type IGetPendingCompanyInvitationsRequest, type IGetPendingCompanyInvitationsResponse, type IGetPendingInvitationsListResponse, type IGetPendingInvitationsRequest, type IGetPendingInvitationsResponse, type IGetPropertiesByCompanyIdRequest, type IGetPropertiesByCompanyIdResponse, type IGetPropertiesRequest, type IGetPropertiesResponse, type IGetPropertyAccessInformationRequest, type IGetPropertyAccessInformationResponse, type IGetPropertyByIdRequest, type IGetPropertyByIdResponse, type IGetPropertyInventoryNeedingRestockRequest, type IGetPropertyInventoryNeedingRestockResponse, type IGetPropertyInventoryRequest, type IGetPropertyInventoryResponse, type IGetPropertyResponse, type IGetRestockOrderItemsRequest, type IGetRestockOrderItemsResponse, type IGetRestockOrdersByCompanyIdRequest, type IGetRestockOrdersByCompanyIdResponse, type IGetRoomByIdRequest, type IGetRoomByIdResponse, type IGetRoomInventoryNeedingRestockRequest, type IGetRoomInventoryNeedingRestockResponse, type IGetRoomInventoryRequest, type IGetRoomInventoryResponse, type IGetRoomsByPropertyIdRequest, type IGetRoomsByPropertyIdResponse, type IGetRoomsRequest, type IGetSessionsRequest, type IGetSessionsResponse, type IGetStaffRequest, type IGetStaffResponse, type IGetTemplateByIdRequest, type IGetTemplateByIdResponse, type IGetTemplateItemsRequest, type IGetTemplateItemsResponse, type IGetTemplateUsageRequest, type IGetTemplateUsageResponse, type IGetTemplateWithItemsRequest, type IGetTemplateWithItemsResponse, type IGetTemplatesByCompanyIdRequest, type IGetTemplatesByCompanyIdResponse, type IGetUserByEmailRequest, type IGetUserByEmailResponse, type IGetUserByIdRequest, type IGetUserByIdResponse, type IGetUserCompaniesRequest, type IGetUserCompaniesResponse, type IGetUserResponse, type IGetUsersByAccountTypeRequest, type IGetUsersByAccountTypeResponse, type IGetWorkOrderByIdRequest, type IGetWorkOrderByIdResponse, type IGetWorkOrdersByPropertyIdRequest, type IGetWorkOrdersByPropertyIdResponse, type IGetWorkSessionByIdRequest, type IGetWorkSessionByIdResponse, type IGetWorkSessionWithExecutionsRequest, type IGetWorkSessionWithExecutionsResponse, type IGetWorkSessionsByPropertyIdRequest, type IGetWorkSessionsByPropertyIdResponse, type IGetWorkSessionsByUserIdRequest, type IGetWorkSessionsByUserIdResponse, type IHealthCheckResponse, type IHealthChecks, type IImage, type IImageCompanyRouteParams, type IImagePropertyRouteParams, type IImageRoomRouteParams, type IImageRouteParams, type IImageUserRouteParams, type IImageWithUrl, type IIncludeInactiveQuery, type IIncludeResolvedQuery, type IInventoryCompanyRouteParams, type IInventoryCount, type IInventoryExecutionRouteParams, type IInventoryItem, type IInventoryItemRouteParams, type IInventoryOrderRouteParams, type IInventoryPropertyRouteParams, type IInventoryRestockOrder, type IInventoryRestockOrderItem, type IInventoryRoomRouteParams, type IInviteCompanyToCompanyRequest, type IInviteCompanyToCompanyResponse, type IInviteUserToCompanyRequest, type IInviteUserToCompanyResponse, type IJobFilterValues, type ILimitQuery, type ILoginCredentials, type ILoginRequest, type ILoginResponse, type ILogoutAllRequest, type ILogoutAllResponse, type ILogoutRequest, type ILogoutResponse, IMAGE_ENTITY_TYPE, IMessageResponse, IMetaData, type IMissingFieldsErrorDetail, INVENTORY_ITEM_TYPE, INVENTORY_RESTOCK_ORDER_STATUS, INVENTORY_UNITS, INVITATION_STATUS, type IPasswordValidationResult, type IPasswordValidationRules, type IProperty, type IPropertyAccessInformation, type IPropertyDetail, type IPropertyIdParams, type IPropertyInventory, type IPropertySummary, type IRateLimitErrorDetail, type IRateLimitStatus, type IRecordInventoryCountRequest, type IRecordInventoryCountResponse, type IRefreshSessionRequest, type IRefreshSessionResponse, type IRefreshTokenData, type IRegisterCredentials, type IRegisterRequest, type IRegisterResponse, type IRegisterWithInvitationRequest, type IRegisterWithInvitationResponse, type IReorderChecklistItemsRequest, type IReorderChecklistItemsResponse, type IReorderTemplateItemsRequest, type IReorderTemplateItemsResponse, type IResolveDamageReportRequest, type IResolveDamageReportResponse, type IRestockOrderItemInput, type IRevokeCompanyInvitationRequest, type IRevokeCompanyInvitationResponse, type IRevokeInvitationRequest, type IRevokeInvitationResponse, type IRevokeSessionRequest, type IRevokeSessionResponse, type IRoom, type IRoomChecklist, type IRoomChecklistItem, type IRoomChecklistRoomRouteParams, type IRoomChecklistWithItems, type IRoomInventory, type IRoomInventoryIdParams, type IRoomPropertyRouteParams, type IRoomRouteParams, IRuntimeValidationSchema, ISelectOption, type ISetAuthSessionParams, type ISkipChecklistExecutionRequest, type ISkipChecklistExecutionResponse, type IStartChecklistExecutionRequest, type IStartChecklistExecutionResponse, type IStoredAuthSession, ISuccessResponse, type ITemplateAndItemIdParams, type ITemplateIdParams, type ITemplateItemIdParams, type ITemplateItemOrder, type IToggleTemplateActiveRequest, type IToggleTemplateActiveResponse, type ITypedApiError, type IUpdateChecklistItemRequest, type IUpdateChecklistItemResponse, type IUpdateChecklistRequest, type IUpdateChecklistResponse, type IUpdateCompanyRequest, type IUpdateCompanyResponse, type IUpdateCurrentUserRequest, type IUpdateDamageReportRequest, type IUpdateDamageReportResponse, type IUpdateDamageReportStatusRequest, type IUpdateDamageReportStatusResponse, type IUpdateInventoryItemRequest, type IUpdateInventoryItemResponse, type IUpdatePropertyAccessInformationRequest, type IUpdatePropertyAccessInformationResponse, type IUpdatePropertyRequest, type IUpdatePropertyResponse, type IUpdateRestockOrderStatusRequest, type IUpdateRestockOrderStatusResponse, type IUpdateRoomInventoryRequest, type IUpdateRoomInventoryResponse, type IUpdateRoomRequest, type IUpdateRoomResponse, type IUpdateTemplateItemRequest, type IUpdateTemplateItemResponse, type IUpdateTemplateRequest, type IUpdateTemplateResponse, type IUpdateUserRequest, type IUpdateUserResponse, type IUpdateWorkOrderRequest, type IUpdateWorkOrderResponse, type IUpdateWorkOrderStatusRequest, type IUpdateWorkOrderStatusResponse, type IUpdateWorkSessionRequest, type IUpdateWorkSessionResponse, type IUploadImagesResponse, type IUploadProfileImageRequest, type IUploadProfileImageResponse, type IUser, type IUserIdParams, type IUserSafe, type IUserSession, type IUserSubscription, type IValidateCompanyInvitationRequest, type IValidateCompanyInvitationResponse, type IValidateInvitationRequest, type IValidateInvitationResponse, type IValidationErrorDetail, IValidationField, type IWorkOrder, type IWorkSession, type IWorkSessionExecutionRouteParams, type IWorkSessionPropertyRouteParams, type IWorkSessionRouteParams, type IWorkSessionUserRouteParams, type IWorkSessionWithExecutions, InviteCompanyToCompanyRequestSchema, InviteUserToCompanyRequestSchema, LANGUAGE, LoginRequestSchema, LogoutRequestSchema, PROPERTY_STATUS, PROPERTY_TYPES, PropertyStatusOptions, PropertyTypeOptions, ROOM_TYPE, RefreshSessionRequestSchema, RegisterRequestSchema, RegisterWithInvitationRequestSchema, SERVER_STATUS, SUBSCRIPTION_PROVIDER, SUBSCRIPTION_STATUS, type TAccountStatus, type TAccountType, type TApiErrorDetails, type TAuthStatus, type TBillingPeriod, type TChecklistExecutionStatus, type TCompanyFilter, type TCompanyRelationshipStatus, type TCompanyType, type TDamageSeverity, type TDamageStatus, type TDatabaseStatus, TDateTimeString, TEnvironment, type TErrorCode, type TErrorResponseDetail, type THttpMethod, type THttpStatusCode, TInferValidationSchemaInput, type TInventoryItemType, type TInventoryRestockOrderStatus, type TInventoryUnitType, type TInvitationStatus, TJsonObject, TJsonValue, type TLanguage, type TMissingFieldsError, type TPropertyStatus, type TPropertyType, type TRateLimitError, TRecordValue, type TRoomType, type TServerStatus, TServiceType, TStatus, type TStoredImageEntityType, type TSubscriptionProvider, type TSubscriptionStatus, TUSStateCode, type TValidationError, type TWorkOrderPriority, type TWorkOrderStatus, type TWorkSessionStatus, UpdateCompanyRequestSchema, UpdateCurrentUserRequestSchema, UpdatePropertyAccessInformationRequestSchema, UpdatePropertyRequestSchema, UpdateRoomRequestSchema, UpdateUserRequestSchema, WORK_ORDER_PRIORITY, WORK_ORDER_STATUS, WORK_SESSION_STATUS, isAuthError, isMissingFieldsError, isRateLimitError, isValidationError };