@turndown/library 0.1.59 → 0.1.62

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -396,17 +396,23 @@ __export(index_exports, {
396
396
  ACCOUNT_STATUS: () => ACCOUNT_STATUS,
397
397
  ACCOUNT_TYPE: () => ACCOUNT_TYPE,
398
398
  AUTH_STATUS: () => AUTH_STATUS,
399
+ AcceptInvitationRequestSchema: () => AcceptInvitationRequestSchema,
399
400
  BILLING_PERIOD: () => BILLING_PERIOD,
400
401
  CHECKLIST_EXECUTION_STATUS: () => CHECKLIST_EXECUTION_STATUS,
401
402
  COMPANY_RELATIONSHIP_STATUS: () => COMPANY_RELATIONSHIP_STATUS,
402
403
  COMPANY_TYPES: () => COMPANY_TYPES,
404
+ ChangePasswordRequestSchema: () => ChangePasswordRequestSchema,
403
405
  CompanyFilter: () => CompanyFilter,
406
+ CreateCompanyRequestSchema: () => CreateCompanyRequestSchema,
407
+ CreatePropertyRequestSchema: () => CreatePropertyRequestSchema,
408
+ CreateRoomRequestSchema: () => CreateRoomRequestSchema,
404
409
  DAMAGE_SEVERITY: () => DAMAGE_SEVERITY,
405
410
  DAMAGE_STATUS: () => DAMAGE_STATUS,
406
411
  DATABASE_STATUS: () => DATABASE_STATUS,
407
412
  ENVIRONMENT: () => ENVIRONMENT,
408
413
  ERROR_CODES: () => ERROR_CODES,
409
414
  FilterCondition: () => FilterCondition,
415
+ ForgotPasswordRequestSchema: () => ForgotPasswordRequestSchema,
410
416
  HTTP_METHOD: () => HTTP_METHOD,
411
417
  HTTP_STATUS: () => HTTP_STATUS,
412
418
  IMAGE_ENTITY: () => IMAGE_ENTITY,
@@ -415,8 +421,12 @@ __export(index_exports, {
415
421
  INVENTORY_RESTOCK_ORDER_STATUS: () => INVENTORY_RESTOCK_ORDER_STATUS,
416
422
  INVENTORY_UNITS: () => INVENTORY_UNITS,
417
423
  INVITATION_STATUS: () => INVITATION_STATUS,
424
+ InviteCompanyToCompanyRequestSchema: () => InviteCompanyToCompanyRequestSchema,
425
+ InviteUserToCompanyRequestSchema: () => InviteUserToCompanyRequestSchema,
418
426
  JSONStringify: () => JSONStringify,
419
427
  LANGUAGE: () => LANGUAGE,
428
+ LoginRequestSchema: () => LoginRequestSchema,
429
+ LogoutRequestSchema: () => LogoutRequestSchema,
420
430
  MODE: () => MODE,
421
431
  MONTHS: () => MONTHS,
422
432
  PROPERTY_STATUS: () => PROPERTY_STATUS,
@@ -424,6 +434,9 @@ __export(index_exports, {
424
434
  PropertyStatusOptions: () => PropertyStatusOptions,
425
435
  PropertyTypeOptions: () => PropertyTypeOptions,
426
436
  ROOM_TYPE: () => ROOM_TYPE,
437
+ RefreshSessionRequestSchema: () => RefreshSessionRequestSchema,
438
+ RegisterRequestSchema: () => RegisterRequestSchema,
439
+ RegisterWithInvitationRequestSchema: () => RegisterWithInvitationRequestSchema,
427
440
  SERVER_STATUS: () => SERVER_STATUS,
428
441
  SERVICE_TYPES: () => SERVICE_TYPES,
429
442
  SEVERITY: () => SEVERITY,
@@ -436,6 +449,12 @@ __export(index_exports, {
436
449
  StatusOptions: () => StatusOptions,
437
450
  US_JURISDICTIONS: () => US_JURISDICTIONS,
438
451
  UnitedStatesJurisdictionOptions: () => UnitedStatesJurisdictionOptions,
452
+ UpdateCompanyRequestSchema: () => UpdateCompanyRequestSchema,
453
+ UpdateCurrentUserRequestSchema: () => UpdateCurrentUserRequestSchema,
454
+ UpdatePropertyAccessInformationRequestSchema: () => UpdatePropertyAccessInformationRequestSchema,
455
+ UpdatePropertyRequestSchema: () => UpdatePropertyRequestSchema,
456
+ UpdateRoomRequestSchema: () => UpdateRoomRequestSchema,
457
+ UpdateUserRequestSchema: () => UpdateUserRequestSchema,
439
458
  WORK_ORDER_PRIORITY: () => WORK_ORDER_PRIORITY,
440
459
  WORK_ORDER_STATUS: () => WORK_ORDER_STATUS,
441
460
  WORK_SESSION_STATUS: () => WORK_SESSION_STATUS,
@@ -450,6 +469,7 @@ __export(index_exports, {
450
469
  containsAny: () => containsAny,
451
470
  convertStringBooleans: () => convertStringBooleans,
452
471
  createPagingObject: () => createPagingObject,
472
+ createValidationSchema: () => createValidationSchema,
453
473
  daysBetween: () => daysBetween,
454
474
  deepClone: () => deepClone,
455
475
  deletePropertyIfExists: () => deletePropertyIfExists,
@@ -490,6 +510,12 @@ __export(index_exports, {
490
510
  normalCase: () => normalCase,
491
511
  normalizeSpaces: () => normalizeSpaces,
492
512
  omitProperties: () => omitProperties,
513
+ optionalEnumField: () => optionalEnumField,
514
+ optionalNullableEnumField: () => optionalNullableEnumField,
515
+ optionalNullableNonNegativeIntegerField: () => optionalNullableNonNegativeIntegerField,
516
+ optionalNullableStringField: () => optionalNullableStringField,
517
+ optionalRecordField: () => optionalRecordField,
518
+ optionalStringField: () => optionalStringField,
493
519
  padEnd: () => padEnd,
494
520
  padStart: () => padStart,
495
521
  parseJSON: () => parseJSON,
@@ -504,6 +530,10 @@ __export(index_exports, {
504
530
  repeat: () => repeat,
505
531
  repeatChar: () => repeatChar,
506
532
  replaceNulls: () => replaceNulls,
533
+ requiredEmailField: () => requiredEmailField,
534
+ requiredEnumField: () => requiredEnumField,
535
+ requiredStringField: () => requiredStringField,
536
+ requiredUuidField: () => requiredUuidField,
507
537
  resetPagination: () => resetPagination,
508
538
  returnObject: () => returnObject,
509
539
  reverse: () => reverse,
@@ -1246,6 +1276,229 @@ var HTTP_STATUS = {
1246
1276
  InternalError: 500
1247
1277
  };
1248
1278
 
1279
+ // src/types/validation/index.ts
1280
+ var createValidationSchema = (fields) => {
1281
+ const allowedFields = Object.keys(fields);
1282
+ const requiredFields = allowedFields.filter((fieldName) => {
1283
+ return fields[fieldName].required;
1284
+ });
1285
+ return {
1286
+ fields,
1287
+ allowedFields,
1288
+ requiredFields,
1289
+ validate: (value, options = {}) => {
1290
+ if (!isRecord2(value)) {
1291
+ return {
1292
+ success: false,
1293
+ issues: [
1294
+ {
1295
+ fieldName: "body",
1296
+ type: "INVALID_BODY"
1297
+ }
1298
+ ]
1299
+ };
1300
+ }
1301
+ const issues = getValidationIssues(fields, value, options);
1302
+ if (issues.length > 0) {
1303
+ return {
1304
+ success: false,
1305
+ issues
1306
+ };
1307
+ }
1308
+ return {
1309
+ success: true,
1310
+ data: value,
1311
+ issues: []
1312
+ };
1313
+ }
1314
+ };
1315
+ };
1316
+ var requiredStringField = (missingValuePolicy = "Nullish") => ({
1317
+ required: true,
1318
+ missingValuePolicy,
1319
+ validate: isNonEmptyString
1320
+ });
1321
+ var optionalStringField = () => ({
1322
+ required: false,
1323
+ missingValuePolicy: "Nullish",
1324
+ validate: isNonEmptyString
1325
+ });
1326
+ var optionalNullableStringField = () => ({
1327
+ required: false,
1328
+ missingValuePolicy: "Nullish",
1329
+ validate: (value) => {
1330
+ return value === null || isNonEmptyString(value);
1331
+ }
1332
+ });
1333
+ var requiredEmailField = (missingValuePolicy = "BlankString") => ({
1334
+ required: true,
1335
+ missingValuePolicy,
1336
+ validate: isEmail2
1337
+ });
1338
+ var requiredUuidField = (missingValuePolicy = "Nullish") => ({
1339
+ required: true,
1340
+ missingValuePolicy,
1341
+ validate: isUuid
1342
+ });
1343
+ var optionalNullableNonNegativeIntegerField = () => ({
1344
+ required: false,
1345
+ missingValuePolicy: "Nullish",
1346
+ validate: (value) => {
1347
+ return value === null || Number.isInteger(value) && Number(value) >= 0;
1348
+ }
1349
+ });
1350
+ var optionalRecordField = () => ({
1351
+ required: false,
1352
+ missingValuePolicy: "Nullish",
1353
+ validate: isRecord2
1354
+ });
1355
+ var requiredEnumField = (allowedValues, missingValuePolicy = "Nullish") => ({
1356
+ required: true,
1357
+ missingValuePolicy,
1358
+ validate: (value) => {
1359
+ return isAllowedStringValue(value, allowedValues);
1360
+ }
1361
+ });
1362
+ var optionalEnumField = (allowedValues) => ({
1363
+ required: false,
1364
+ missingValuePolicy: "Nullish",
1365
+ validate: (value) => {
1366
+ return isAllowedStringValue(value, allowedValues);
1367
+ }
1368
+ });
1369
+ var optionalNullableEnumField = (allowedValues) => ({
1370
+ required: false,
1371
+ missingValuePolicy: "Nullish",
1372
+ validate: (value) => {
1373
+ return value === null || isAllowedStringValue(value, allowedValues);
1374
+ }
1375
+ });
1376
+ var getValidationIssues = (fields, value, options) => {
1377
+ const allowedFieldSet = new Set(Object.keys(fields));
1378
+ const issues = [];
1379
+ Object.entries(fields).forEach(([fieldName, field]) => {
1380
+ const fieldValue = value[fieldName];
1381
+ if (field.required && isMissingValue(fieldValue, field.missingValuePolicy)) {
1382
+ issues.push({
1383
+ fieldName,
1384
+ type: "MISSING_FIELD"
1385
+ });
1386
+ return;
1387
+ }
1388
+ if (fieldValue === void 0) {
1389
+ return;
1390
+ }
1391
+ if (!field.validate(fieldValue)) {
1392
+ issues.push({
1393
+ fieldName,
1394
+ type: "INVALID_FIELD"
1395
+ });
1396
+ }
1397
+ });
1398
+ if (options.rejectUnknownFields === true) {
1399
+ Object.keys(value).forEach((fieldName) => {
1400
+ if (!allowedFieldSet.has(fieldName)) {
1401
+ issues.push({
1402
+ fieldName,
1403
+ type: "UNSUPPORTED_FIELD"
1404
+ });
1405
+ }
1406
+ });
1407
+ }
1408
+ return issues;
1409
+ };
1410
+ var isRecord2 = (value) => {
1411
+ return typeof value === "object" && value !== null && !Array.isArray(value);
1412
+ };
1413
+ var isMissingValue = (value, missingValuePolicy) => {
1414
+ if (value === void 0 || value === null) {
1415
+ return true;
1416
+ }
1417
+ return missingValuePolicy === "BlankString" && typeof value === "string" && value.trim().length === 0;
1418
+ };
1419
+ var isNonEmptyString = (value) => {
1420
+ return typeof value === "string" && value.trim().length > 0;
1421
+ };
1422
+ var isAllowedStringValue = (value, allowedValues) => {
1423
+ return typeof value === "string" && allowedValues.includes(value);
1424
+ };
1425
+ var isEmail2 = (value) => {
1426
+ if (!isNonEmptyString(value)) {
1427
+ return false;
1428
+ }
1429
+ return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(value.trim());
1430
+ };
1431
+ var isUuid = (value) => {
1432
+ if (!isNonEmptyString(value)) {
1433
+ return false;
1434
+ }
1435
+ return /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(
1436
+ value
1437
+ );
1438
+ };
1439
+
1440
+ // src/types/user/constants.ts
1441
+ var ACCOUNT_TYPE = {
1442
+ TURNDOWN_ADMIN: "TURNDOWN_ADMIN",
1443
+ ACCOUNT_ADMIN: "ACCOUNT_ADMIN",
1444
+ MANAGER: "MANAGER",
1445
+ STAFF: "STAFF",
1446
+ GUEST: "GUEST"
1447
+ };
1448
+ var ACCOUNT_STATUS = {
1449
+ ACTIVE: "ACTIVE",
1450
+ INACTIVE: "INACTIVE",
1451
+ SUSPENDED: "SUSPENDED",
1452
+ PENDING: "PENDING"
1453
+ };
1454
+ var LANGUAGE = {
1455
+ ENGLISH: "ENGLISH",
1456
+ FRENCH: "FRENCH",
1457
+ SPANISH: "SPANISH",
1458
+ GERMAN: "GERMAN"
1459
+ };
1460
+
1461
+ // src/types/auth/routes.ts
1462
+ var AccountTypeValues = Object.values(ACCOUNT_TYPE);
1463
+ var RegisterRequestSchema = createValidationSchema({
1464
+ email: requiredEmailField(),
1465
+ password: requiredStringField("BlankString"),
1466
+ firstName: requiredStringField("BlankString"),
1467
+ lastName: optionalStringField(),
1468
+ accountType: requiredEnumField(AccountTypeValues, "BlankString"),
1469
+ deviceInfo: optionalRecordField()
1470
+ });
1471
+ var LoginRequestSchema = createValidationSchema({
1472
+ email: requiredEmailField(),
1473
+ password: requiredStringField("BlankString"),
1474
+ deviceInfo: optionalRecordField()
1475
+ });
1476
+ var RefreshSessionRequestSchema = createValidationSchema({
1477
+ refreshToken: requiredStringField("BlankString"),
1478
+ deviceInfo: optionalRecordField()
1479
+ });
1480
+ var LogoutRequestSchema = createValidationSchema({
1481
+ refreshToken: optionalStringField()
1482
+ });
1483
+ var ChangePasswordRequestSchema = createValidationSchema({
1484
+ currentPassword: requiredStringField("BlankString"),
1485
+ newPassword: requiredStringField("BlankString")
1486
+ });
1487
+ var ForgotPasswordRequestSchema = createValidationSchema({
1488
+ email: requiredEmailField()
1489
+ });
1490
+ var RegisterWithInvitationRequestSchema = createValidationSchema({
1491
+ token: requiredStringField("BlankString"),
1492
+ password: requiredStringField("BlankString"),
1493
+ firstName: requiredStringField("BlankString"),
1494
+ lastName: optionalStringField(),
1495
+ deviceInfo: optionalRecordField()
1496
+ });
1497
+ var AcceptInvitationRequestSchema = createValidationSchema({
1498
+ userId: optionalStringField(),
1499
+ token: requiredStringField("BlankString")
1500
+ });
1501
+
1249
1502
  // src/types/auth/index.ts
1250
1503
  var AUTH_STATUS = {
1251
1504
  Initializing: "Initializing",
@@ -1426,14 +1679,7 @@ var ServiceTypeOptions = [
1426
1679
  { label: "Other", value: SERVICE_TYPES.OTHER }
1427
1680
  ];
1428
1681
 
1429
- // src/types/company/routes.ts
1430
- var CompanyFilter = {
1431
- Active: "active",
1432
- Pending: "pending",
1433
- All: "all"
1434
- };
1435
-
1436
- // src/types/company/index.ts
1682
+ // src/types/company/constants.ts
1437
1683
  var COMPANY_RELATIONSHIP_STATUS = {
1438
1684
  ACTIVE: "ACTIVE",
1439
1685
  INACTIVE: "INACTIVE",
@@ -1453,6 +1699,50 @@ var COMPANY_TYPES = {
1453
1699
  OTHER: "OTHER"
1454
1700
  };
1455
1701
 
1702
+ // src/types/company/routes.ts
1703
+ var CompanyFilter = {
1704
+ Active: "active",
1705
+ Pending: "pending",
1706
+ All: "all"
1707
+ };
1708
+ var CompanyTypeValues = Object.values(COMPANY_TYPES);
1709
+ var StateCodeValues = Object.keys(US_JURISDICTIONS);
1710
+ var InviteUserRoleValues = Object.values(ACCOUNT_TYPE).filter(
1711
+ (accountType) => accountType !== ACCOUNT_TYPE.TURNDOWN_ADMIN
1712
+ );
1713
+ var CreateCompanyRequestSchema = createValidationSchema({
1714
+ displayName: requiredStringField("BlankString"),
1715
+ addressLine1: requiredStringField("BlankString"),
1716
+ addressLine2: optionalNullableStringField(),
1717
+ city: requiredStringField("BlankString"),
1718
+ stateCode: requiredEnumField(StateCodeValues, "BlankString"),
1719
+ postalCode: requiredStringField("BlankString"),
1720
+ companyType: requiredEnumField(CompanyTypeValues, "BlankString"),
1721
+ country: optionalNullableStringField(),
1722
+ timezone: optionalNullableStringField(),
1723
+ imageUrl: optionalNullableStringField()
1724
+ });
1725
+ var UpdateCompanyRequestSchema = createValidationSchema({
1726
+ displayName: optionalStringField(),
1727
+ addressLine1: optionalStringField(),
1728
+ addressLine2: optionalNullableStringField(),
1729
+ city: optionalStringField(),
1730
+ stateCode: optionalEnumField(StateCodeValues),
1731
+ postalCode: optionalStringField(),
1732
+ companyType: optionalEnumField(CompanyTypeValues),
1733
+ country: optionalNullableStringField(),
1734
+ timezone: optionalNullableStringField(),
1735
+ imageUrl: optionalNullableStringField()
1736
+ });
1737
+ var InviteUserToCompanyRequestSchema = createValidationSchema({
1738
+ email: requiredEmailField(),
1739
+ role: requiredEnumField(InviteUserRoleValues, "BlankString")
1740
+ });
1741
+ var InviteCompanyToCompanyRequestSchema = createValidationSchema({
1742
+ providerCompanyId: requiredUuidField(),
1743
+ message: optionalNullableStringField()
1744
+ });
1745
+
1456
1746
  // src/types/damage-report/index.ts
1457
1747
  var DAMAGE_SEVERITY = {
1458
1748
  LOW: "LOW",
@@ -1555,7 +1845,7 @@ var INVENTORY_ITEM_TYPE = {
1555
1845
  FIXED: "FIXED"
1556
1846
  };
1557
1847
 
1558
- // src/types/property/index.ts
1848
+ // src/types/property/constants.ts
1559
1849
  var PROPERTY_STATUS = {
1560
1850
  ACTIVE: "ACTIVE",
1561
1851
  INACTIVE: "INACTIVE"
@@ -1630,7 +1920,52 @@ var PropertyTypeOptions = [
1630
1920
  }
1631
1921
  ];
1632
1922
 
1633
- // src/types/room/index.ts
1923
+ // src/types/property/routes.ts
1924
+ var PropertyTypeValues = Object.values(PROPERTY_TYPES);
1925
+ var PropertyStatusValues = Object.values(PROPERTY_STATUS);
1926
+ var StateCodeValues2 = Object.keys(US_JURISDICTIONS);
1927
+ var CreatePropertyRequestSchema = createValidationSchema({
1928
+ companyId: requiredStringField(),
1929
+ displayName: requiredStringField(),
1930
+ propertyType: requiredEnumField(PropertyTypeValues),
1931
+ status: optionalNullableEnumField(PropertyStatusValues),
1932
+ addressLine1: requiredStringField(),
1933
+ addressLine2: optionalNullableStringField(),
1934
+ city: requiredStringField(),
1935
+ stateCode: requiredEnumField(StateCodeValues2),
1936
+ postalCode: requiredStringField(),
1937
+ country: optionalNullableStringField(),
1938
+ sqft: optionalNullableNonNegativeIntegerField(),
1939
+ timezone: optionalNullableStringField(),
1940
+ imageUrl: optionalNullableStringField(),
1941
+ specialNotes: optionalNullableStringField()
1942
+ });
1943
+ var UpdatePropertyRequestSchema = createValidationSchema({
1944
+ displayName: optionalStringField(),
1945
+ propertyType: optionalNullableEnumField(PropertyTypeValues),
1946
+ status: optionalNullableEnumField(PropertyStatusValues),
1947
+ addressLine1: optionalStringField(),
1948
+ addressLine2: optionalNullableStringField(),
1949
+ city: optionalStringField(),
1950
+ stateCode: optionalEnumField(StateCodeValues2),
1951
+ postalCode: optionalStringField(),
1952
+ country: optionalNullableStringField(),
1953
+ sqft: optionalNullableNonNegativeIntegerField(),
1954
+ timezone: optionalNullableStringField(),
1955
+ imageUrl: optionalNullableStringField(),
1956
+ specialNotes: optionalNullableStringField()
1957
+ });
1958
+ var UpdatePropertyAccessInformationRequestSchema = createValidationSchema({
1959
+ entryInstructions: optionalNullableStringField(),
1960
+ accessCode: optionalNullableStringField(),
1961
+ wifiName: optionalNullableStringField(),
1962
+ wifiPassword: optionalNullableStringField(),
1963
+ alarmCode: optionalNullableStringField(),
1964
+ parkingInfo: optionalNullableStringField(),
1965
+ specialNotes: optionalNullableStringField()
1966
+ });
1967
+
1968
+ // src/types/room/constants.ts
1634
1969
  var ROOM_TYPE = {
1635
1970
  BEDROOM: "BEDROOM",
1636
1971
  BATHROOM: "BATHROOM",
@@ -1648,6 +1983,24 @@ var ROOM_TYPE = {
1648
1983
  OTHER: "OTHER"
1649
1984
  };
1650
1985
 
1986
+ // src/types/room/routes.ts
1987
+ var RoomTypeValues = Object.values(ROOM_TYPE);
1988
+ var CreateRoomRequestSchema = createValidationSchema({
1989
+ propertyId: requiredStringField(),
1990
+ displayName: requiredStringField(),
1991
+ description: optionalNullableStringField(),
1992
+ checklistTemplateId: optionalNullableStringField(),
1993
+ roomType: optionalNullableEnumField(RoomTypeValues),
1994
+ heroPhoto: optionalNullableStringField()
1995
+ });
1996
+ var UpdateRoomRequestSchema = createValidationSchema({
1997
+ displayName: optionalStringField(),
1998
+ description: optionalNullableStringField(),
1999
+ checklistTemplateId: optionalNullableStringField(),
2000
+ roomType: optionalNullableEnumField(RoomTypeValues),
2001
+ heroPhoto: optionalNullableStringField()
2002
+ });
2003
+
1651
2004
  // src/types/subscription/index.ts
1652
2005
  var SUBSCRIPTION_STATUS = {
1653
2006
  ACTIVE: "ACTIVE",
@@ -1666,26 +2019,22 @@ var BILLING_PERIOD = {
1666
2019
  YEARLY: "YEARLY"
1667
2020
  };
1668
2021
 
1669
- // src/types/user/index.ts
1670
- var ACCOUNT_TYPE = {
1671
- TURNDOWN_ADMIN: "TURNDOWN_ADMIN",
1672
- ACCOUNT_ADMIN: "ACCOUNT_ADMIN",
1673
- MANAGER: "MANAGER",
1674
- STAFF: "STAFF",
1675
- GUEST: "GUEST"
1676
- };
1677
- var ACCOUNT_STATUS = {
1678
- ACTIVE: "ACTIVE",
1679
- INACTIVE: "INACTIVE",
1680
- SUSPENDED: "SUSPENDED",
1681
- PENDING: "PENDING"
1682
- };
1683
- var LANGUAGE = {
1684
- ENGLISH: "ENGLISH",
1685
- FRENCH: "FRENCH",
1686
- SPANISH: "SPANISH",
1687
- GERMAN: "GERMAN"
1688
- };
2022
+ // src/types/user/routes.ts
2023
+ var LanguageValues = Object.values(LANGUAGE);
2024
+ var UpdateUserRequestSchema = createValidationSchema({
2025
+ firstName: optionalStringField(),
2026
+ lastName: optionalNullableStringField(),
2027
+ mi: optionalNullableStringField(),
2028
+ username: optionalNullableStringField(),
2029
+ email: optionalStringField(),
2030
+ phoneNumber: optionalNullableStringField(),
2031
+ phoneFormat: optionalNullableStringField(),
2032
+ preferredLanguage: optionalEnumField(LanguageValues)
2033
+ });
2034
+ var UpdateCurrentUserRequestSchema = createValidationSchema({
2035
+ firstName: optionalStringField(),
2036
+ lastName: optionalStringField()
2037
+ });
1689
2038
 
1690
2039
  // src/types/work-session/index.ts
1691
2040
  var WORK_SESSION_STATUS = {
@@ -1704,17 +2053,23 @@ var CHECKLIST_EXECUTION_STATUS = {
1704
2053
  ACCOUNT_STATUS,
1705
2054
  ACCOUNT_TYPE,
1706
2055
  AUTH_STATUS,
2056
+ AcceptInvitationRequestSchema,
1707
2057
  BILLING_PERIOD,
1708
2058
  CHECKLIST_EXECUTION_STATUS,
1709
2059
  COMPANY_RELATIONSHIP_STATUS,
1710
2060
  COMPANY_TYPES,
2061
+ ChangePasswordRequestSchema,
1711
2062
  CompanyFilter,
2063
+ CreateCompanyRequestSchema,
2064
+ CreatePropertyRequestSchema,
2065
+ CreateRoomRequestSchema,
1712
2066
  DAMAGE_SEVERITY,
1713
2067
  DAMAGE_STATUS,
1714
2068
  DATABASE_STATUS,
1715
2069
  ENVIRONMENT,
1716
2070
  ERROR_CODES,
1717
2071
  FilterCondition,
2072
+ ForgotPasswordRequestSchema,
1718
2073
  HTTP_METHOD,
1719
2074
  HTTP_STATUS,
1720
2075
  IMAGE_ENTITY,
@@ -1723,8 +2078,12 @@ var CHECKLIST_EXECUTION_STATUS = {
1723
2078
  INVENTORY_RESTOCK_ORDER_STATUS,
1724
2079
  INVENTORY_UNITS,
1725
2080
  INVITATION_STATUS,
2081
+ InviteCompanyToCompanyRequestSchema,
2082
+ InviteUserToCompanyRequestSchema,
1726
2083
  JSONStringify,
1727
2084
  LANGUAGE,
2085
+ LoginRequestSchema,
2086
+ LogoutRequestSchema,
1728
2087
  MODE,
1729
2088
  MONTHS,
1730
2089
  PROPERTY_STATUS,
@@ -1732,6 +2091,9 @@ var CHECKLIST_EXECUTION_STATUS = {
1732
2091
  PropertyStatusOptions,
1733
2092
  PropertyTypeOptions,
1734
2093
  ROOM_TYPE,
2094
+ RefreshSessionRequestSchema,
2095
+ RegisterRequestSchema,
2096
+ RegisterWithInvitationRequestSchema,
1735
2097
  SERVER_STATUS,
1736
2098
  SERVICE_TYPES,
1737
2099
  SEVERITY,
@@ -1744,6 +2106,12 @@ var CHECKLIST_EXECUTION_STATUS = {
1744
2106
  StatusOptions,
1745
2107
  US_JURISDICTIONS,
1746
2108
  UnitedStatesJurisdictionOptions,
2109
+ UpdateCompanyRequestSchema,
2110
+ UpdateCurrentUserRequestSchema,
2111
+ UpdatePropertyAccessInformationRequestSchema,
2112
+ UpdatePropertyRequestSchema,
2113
+ UpdateRoomRequestSchema,
2114
+ UpdateUserRequestSchema,
1747
2115
  WORK_ORDER_PRIORITY,
1748
2116
  WORK_ORDER_STATUS,
1749
2117
  WORK_SESSION_STATUS,
@@ -1758,6 +2126,7 @@ var CHECKLIST_EXECUTION_STATUS = {
1758
2126
  containsAny,
1759
2127
  convertStringBooleans,
1760
2128
  createPagingObject,
2129
+ createValidationSchema,
1761
2130
  daysBetween,
1762
2131
  deepClone,
1763
2132
  deletePropertyIfExists,
@@ -1798,6 +2167,12 @@ var CHECKLIST_EXECUTION_STATUS = {
1798
2167
  normalCase,
1799
2168
  normalizeSpaces,
1800
2169
  omitProperties,
2170
+ optionalEnumField,
2171
+ optionalNullableEnumField,
2172
+ optionalNullableNonNegativeIntegerField,
2173
+ optionalNullableStringField,
2174
+ optionalRecordField,
2175
+ optionalStringField,
1801
2176
  padEnd,
1802
2177
  padStart,
1803
2178
  parseJSON,
@@ -1812,6 +2187,10 @@ var CHECKLIST_EXECUTION_STATUS = {
1812
2187
  repeat,
1813
2188
  repeatChar,
1814
2189
  replaceNulls,
2190
+ requiredEmailField,
2191
+ requiredEnumField,
2192
+ requiredStringField,
2193
+ requiredUuidField,
1815
2194
  resetPagination,
1816
2195
  returnObject,
1817
2196
  reverse,