@rentcheck/biz 1.0.355 → 1.0.357

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.
Files changed (94) hide show
  1. package/package.json +34 -32
  2. package/src/constants/addons.ts +0 -102
  3. package/src/constants/emails.ts +0 -5
  4. package/src/constants/index.ts +0 -8
  5. package/src/constants/notification-preferences.ts +0 -10
  6. package/src/constants/plans.ts +0 -5
  7. package/src/constants/rooms.ts +0 -111
  8. package/src/constants/skills.ts +0 -2493
  9. package/src/constants/sync-info.ts +0 -1
  10. package/src/constants/user-settings.ts +0 -19
  11. package/src/errors/admin.ts +0 -25
  12. package/src/errors/appfolio.ts +0 -7
  13. package/src/errors/automations.ts +0 -25
  14. package/src/errors/http.ts +0 -70
  15. package/src/errors/imports.ts +0 -29
  16. package/src/errors/index.ts +0 -33
  17. package/src/errors/inspection-invites.ts +0 -7
  18. package/src/errors/inspection-templates.ts +0 -19
  19. package/src/errors/inspections.ts +0 -171
  20. package/src/errors/integrations.ts +0 -19
  21. package/src/errors/permission-groups.ts +0 -7
  22. package/src/errors/properties.ts +0 -13
  23. package/src/errors/propexo.ts +0 -37
  24. package/src/errors/subscriptions.ts +0 -7
  25. package/src/errors/syncs.ts +0 -41
  26. package/src/errors/take-over-requests.ts +0 -15
  27. package/src/errors/team-invites.ts +0 -7
  28. package/src/errors/user.ts +0 -7
  29. package/src/errors/validations.ts +0 -40
  30. package/src/errors/vitally.ts +0 -19
  31. package/src/errors/work-orders.ts +0 -15
  32. package/src/errors/zapier.ts +0 -13
  33. package/src/index.ts +0 -5
  34. package/src/permissions/account-settings/index.ts +0 -2
  35. package/src/permissions/account-settings/inspection-reports.ts +0 -31
  36. package/src/permissions/account-settings/maintenance-settings.ts +0 -17
  37. package/src/permissions/index.ts +0 -3
  38. package/src/permissions/inspections.ts +0 -207
  39. package/src/permissions/integrations/appfolio.ts +0 -37
  40. package/src/permissions/integrations/index.ts +0 -6
  41. package/src/permissions/integrations/latchel.ts +0 -37
  42. package/src/permissions/integrations/rent-manager.ts +0 -21
  43. package/src/permissions/integrations/rentcheck-api.ts +0 -13
  44. package/src/permissions/integrations/rentvine.ts +0 -14
  45. package/src/permissions/integrations/zapier.ts +0 -21
  46. package/src/rules/account-screen/index.ts +0 -12
  47. package/src/rules/account-settings/index.ts +0 -91
  48. package/src/rules/ai/index.ts +0 -84
  49. package/src/rules/application-settings/index.ts +0 -12
  50. package/src/rules/automations/index.ts +0 -75
  51. package/src/rules/billing/index.ts +0 -40
  52. package/src/rules/common/index.ts +0 -7
  53. package/src/rules/features/index.ts +0 -76
  54. package/src/rules/index.ts +0 -18
  55. package/src/rules/inspection-templates/index.ts +0 -22
  56. package/src/rules/inspections/index.ts +0 -1094
  57. package/src/rules/notification-preferences/index.ts +0 -33
  58. package/src/rules/permission-groups/index.ts +0 -69
  59. package/src/rules/properties/index.ts +0 -161
  60. package/src/rules/residents/index.ts +0 -35
  61. package/src/rules/sections/index.ts +0 -5
  62. package/src/rules/subscriptions/index.ts +0 -14
  63. package/src/rules/teammates/index.ts +0 -106
  64. package/src/rules/users/index.ts +0 -69
  65. package/src/rules/work-orders/index.ts +0 -115
  66. package/src/utils/address/index.ts +0 -32
  67. package/src/utils/dates/index.ts +0 -109
  68. package/src/utils/environments/index.ts +0 -9
  69. package/src/utils/file-requests/index.ts +0 -18
  70. package/src/utils/filters/index.ts +0 -36
  71. package/src/utils/flags/index.ts +0 -58
  72. package/src/utils/helpers/index.ts +0 -47
  73. package/src/utils/imports/index.ts +0 -16
  74. package/src/utils/index.ts +0 -21
  75. package/src/utils/inspection-features/index.ts +0 -50
  76. package/src/utils/inspection-features/sorting.ts +0 -173
  77. package/src/utils/inspection-templates/build-template-features.ts +0 -321
  78. package/src/utils/inspection-templates/common.ts +0 -121
  79. package/src/utils/inspection-templates/index.ts +0 -3
  80. package/src/utils/inspection-templates/template-logic.ts +0 -156
  81. package/src/utils/inspections/index.ts +0 -92
  82. package/src/utils/integrations/index.ts +0 -15
  83. package/src/utils/media/index.ts +0 -49
  84. package/src/utils/permission-groups/index.ts +0 -18
  85. package/src/utils/properties/index.ts +0 -100
  86. package/src/utils/properties/validations.ts +0 -91
  87. package/src/utils/query-params/index.ts +0 -2
  88. package/src/utils/rooms/index.ts +0 -31
  89. package/src/utils/sections/index.ts +0 -90
  90. package/src/utils/subscriptions/index.ts +0 -201
  91. package/src/utils/tenants/index.ts +0 -42
  92. package/src/utils/users/index.ts +0 -106
  93. package/tsconfig.json +0 -21
  94. package/tsconfig.tsbuildinfo +0 -1
package/package.json CHANGED
@@ -1,33 +1,35 @@
1
1
  {
2
- "name": "@rentcheck/biz",
3
- "version": "1.0.355",
4
- "description": "RC biz",
5
- "author": "engineering@getrentcheck.com",
6
- "license": "MIT",
7
- "main": "./dist/index.js",
8
- "types": "./dist/index.d.ts",
9
- "scripts": {
10
- "build": "tsc",
11
- "build:watch": "tsc --watch",
12
- "prepublish": "yarn build",
13
- "test": "cross-env NODE_ENV=test jest --verbose --forceExit"
14
- },
15
- "devDependencies": {
16
- "@babel/runtime": "^7.16.7",
17
- "@rentcheck/types": "^1.0.868",
18
- "@types/lodash": "^4.14.194",
19
- "jest": "^27.5.1",
20
- "lodash": "^4.17.23",
21
- "moment": "^2.24.0",
22
- "typescript": "^5.8.3"
23
- },
24
- "peerDependencies": {
25
- "@rentcheck/types": "^1.0.547",
26
- "lodash": "^4.17.23",
27
- "moment": "^2.24.0"
28
- },
29
- "localDependencies": {
30
- "@rentcheck/types": "../types"
31
- },
32
- "packageManager": "yarn@4.12.0"
33
- }
2
+ "name": "@rentcheck/biz",
3
+ "version": "1.0.357",
4
+ "description": "RC biz",
5
+ "author": "engineering@getrentcheck.com",
6
+ "license": "MIT",
7
+ "main": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "files": [
10
+ "dist"
11
+ ],
12
+ "scripts": {
13
+ "build": "tsc",
14
+ "build:watch": "tsc --watch",
15
+ "prepublish": "npm run build",
16
+ "test": "cross-env NODE_ENV=test jest --verbose --forceExit"
17
+ },
18
+ "devDependencies": {
19
+ "@babel/runtime": "^7.16.7",
20
+ "@rentcheck/types": "^1.0.870",
21
+ "@types/lodash": "^4.14.194",
22
+ "jest": "^27.5.1",
23
+ "lodash": "^4.17.23",
24
+ "moment": "^2.24.0",
25
+ "typescript": "^5.8.3"
26
+ },
27
+ "peerDependencies": {
28
+ "@rentcheck/types": "^1.0.547",
29
+ "lodash": "^4.17.23",
30
+ "moment": "^2.24.0"
31
+ },
32
+ "localDependencies": {
33
+ "@rentcheck/types": "../types"
34
+ }
35
+ }
@@ -1,102 +0,0 @@
1
- /**
2
- * These constants are used to identify the addons that are associated with
3
- * different features, only use these internally and never export directly.
4
- * For external use refer to the exports below.
5
- *
6
- */
7
- const appfolioSyncIds = [
8
- 'appfolio-integration---two-way-data-sync',
9
- 'atlas-appfolio-integration---two-way-data-sync',
10
- ];
11
-
12
- const appfolioWorkOrderIds = [
13
- 'appfolio-data-sync-plus-workorders',
14
- 'atlas-appfolio-data-sync-plus-workorders',
15
- ];
16
-
17
- const rentManagerSyncIds = [
18
- 'rm-integration---two-way-data-sync',
19
- 'rentmanager-integration---two-way-data-sync',
20
- ];
21
-
22
- const rentManagerWorkOrderIds = [
23
- 'rm-integration---work-orders',
24
- 'rentmanager-integration---work-orders',
25
- ];
26
-
27
- const latchelWorkOrderIds = [
28
- 'latchel-integration',
29
- 'nocharge-latchel-integration',
30
- ];
31
-
32
- const rentvineWorkOrderIds = [];
33
-
34
- /**
35
- * AppFolio Addon Ids
36
- */
37
- export const AppFolio = {
38
- All: [...appfolioSyncIds, ...appfolioWorkOrderIds],
39
- TwoWayDataSync: appfolioSyncIds,
40
- WorkOrders: appfolioWorkOrderIds,
41
- };
42
-
43
- /**
44
- * Latchel Addon Ids
45
- */
46
- export const Latchel = {
47
- All: [...latchelWorkOrderIds],
48
- WorkOrders: latchelWorkOrderIds,
49
- };
50
-
51
- /**
52
- * Jenark (365) Addon Ids
53
- */
54
- export const jenarkWorkOrderAddonIds = ['jenark-integration'];
55
-
56
- /**
57
- * Rent Manager Addon Ids
58
- */
59
- export const RentManager = {
60
- All: [...rentManagerSyncIds, ...rentManagerWorkOrderIds],
61
- TwoWayDataSync: rentManagerSyncIds,
62
- WorkOrders: rentManagerWorkOrderIds,
63
- };
64
-
65
- /**
66
- * Rentvine Addon Ids
67
- */
68
- export const Rentvine = {
69
- All: [],
70
- TwoWayDataSync: [],
71
- WorkOrders: rentvineWorkOrderIds,
72
- };
73
-
74
- /**
75
- * Zapier Addon Ids
76
- */
77
- export const zapierAddonIds = ['zapier-integration'];
78
-
79
- /**
80
- * Inspection Template Addon Ids
81
- */
82
- export const inspectionTemplatePerUnitAddonId =
83
- 'inspection-template-customization-2';
84
-
85
- export const inspectionTemplateFreeTrialAddonId =
86
- 'inspection-template-customization-free-trial';
87
-
88
- export const inspectionTemplateAddonIds = [
89
- 'inspection-template-customization',
90
- inspectionTemplateFreeTrialAddonId,
91
- inspectionTemplatePerUnitAddonId,
92
- ];
93
-
94
- /**
95
- * Automation Addon Ids
96
- */
97
- export const automationAddonIds = [
98
- 'inspection-automation',
99
- 'inspection-automation-paid',
100
- 'inspection-automation-free',
101
- 'inspection-automation-free-trial',
102
- ];
@@ -1,5 +0,0 @@
1
- export const emptyTeamLogoUrl =
2
- 'http://cdn.mcauto-images-production.sendgrid.net/' +
3
- 'cb568667768ce267/6b0550ed-65ab-4a08-a4d3-ee9523bc5885/500x4.png';
4
-
5
- export const internalEmailDomains = ['getrentcheck.com'];
@@ -1,8 +0,0 @@
1
- export * as Addons from './addons';
2
- export * as Emails from './emails';
3
- export * as NotificationPreferences from './notification-preferences';
4
- export * as Plans from './plans';
5
- export * as Rooms from './rooms';
6
- export * as Skills from './skills';
7
- export * as UserSettings from './user-settings';
8
- export * as SyncInfo from './sync-info';
@@ -1,10 +0,0 @@
1
- import { NotificationsPreferences } from '@rentcheck/types';
2
-
3
- export const defaultValue: Omit<
4
- NotificationsPreferences,
5
- 'id' | 'user_id' | 'user_email' | 'subscription_id'
6
- > = {
7
- automation_failures: { enabled: true },
8
- inspections_awaiting_review: { enabled: true, email: 'created_by_me' },
9
- inspections_in_revision_review: { enabled: true, email: 'created_by_me' },
10
- };
@@ -1,5 +0,0 @@
1
- export const essentialFreePlanId =
2
- 'essential-plan---$1.00-(includes-14-day-free-trial)-website';
3
-
4
- export const professionalFreePlanId =
5
- 'professional-plan-14-day-free-trial-website';
@@ -1,111 +0,0 @@
1
- export const ordinalPrefixes = [
2
- 'First',
3
- 'Second',
4
- 'Third',
5
- 'Fourth',
6
- 'Fifth',
7
- 'Sixth',
8
- 'Seventh',
9
- 'Eighth',
10
- 'Ninth',
11
- ];
12
-
13
- export const unit = {
14
- main: [
15
- 'Kitchen',
16
- 'Dining Room',
17
- 'Living Room',
18
- 'Family Room',
19
- 'Den',
20
- 'Office',
21
- 'Laundry Room',
22
- 'Basement',
23
- 'Loft',
24
- 'Attic',
25
- 'Storage Room',
26
- ],
27
- common: ['Hallway', 'Stairway'],
28
- outside: ['Garage', 'Carport', 'Patio', 'Balcony', 'Exterior', 'Pool'],
29
- other: ['Front Door', 'Back Door'],
30
- bedrooms: [
31
- 'First Bedroom',
32
- 'Second Bedroom',
33
- 'Third Bedroom',
34
- 'Fourth Bedroom',
35
- 'Fifth Bedroom',
36
- 'Sixth Bedroom',
37
- 'Seventh Bedroom',
38
- 'Eighth Bedroom',
39
- 'Ninth Bedroom',
40
- 'Tenth Bedroom',
41
- ],
42
- fullBathrooms: [
43
- 'First Full Bathroom',
44
- 'Second Full Bathroom',
45
- 'Third Full Bathroom',
46
- 'Fourth Full Bathroom',
47
- 'Fifth Full Bathroom',
48
- 'Sixth Full Bathroom',
49
- 'Seventh Full Bathroom',
50
- 'Eighth Full Bathroom',
51
- 'Ninth Full Bathroom',
52
- 'Tenth Full Bathroom',
53
- ],
54
- halfBathrooms: [
55
- 'First Half Bathroom',
56
- 'Second Half Bathroom',
57
- 'Third Half Bathroom',
58
- 'Fourth Half Bathroom',
59
- 'Fifth Half Bathroom',
60
- 'Sixth Half Bathroom',
61
- 'Seventh Half Bathroom',
62
- 'Eighth Half Bathroom',
63
- 'Ninth Half Bathroom',
64
- 'Tenth Half Bathroom',
65
- ],
66
- };
67
-
68
- export const building = {
69
- default: [
70
- 'Courtyard(s)',
71
- 'Patio(s)',
72
- 'Playground Area(s)',
73
- 'Shared Laundry Room(s)',
74
- 'Lobby',
75
- 'Exercise Room(s)',
76
- 'Roof Deck',
77
- 'Pool(s)',
78
- 'Mail / Package / Storage Area',
79
- 'Maintenance Shop',
80
- ],
81
- };
82
-
83
- export const community = {
84
- default: [
85
- 'Exterior Signage',
86
- 'Exterior Grounds',
87
- 'Roof & Gutters',
88
- 'Building Doors',
89
- 'Fencing & Gates',
90
- 'Exterior Trash Area(s)',
91
- 'Playground Area(s)',
92
- 'Fitness Center',
93
- 'Club Room',
94
- 'Recreational Facilities',
95
- 'Pool(s)',
96
- 'Courtyard(s)',
97
- 'Patio(s)',
98
- 'Porches',
99
- 'Balconies',
100
- 'Roof Deck',
101
- 'Exterior Walkways',
102
- 'Exterior Lighting',
103
- 'Exterior Stairs & Railings',
104
- 'Parking Areas',
105
- 'Building Exterior(s)',
106
- 'Boiler Room',
107
- 'Shared Laundry Room(s)',
108
- 'Mail / Package / Storage Area',
109
- 'Maintenance Shop',
110
- ],
111
- };