@plusscommunities/pluss-maintenance-aws 2.1.45 → 2.1.46
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/createJob.js +201 -114
- package/createJobType.js +49 -49
- package/db/maintenance/addMaintenanceJob.js +100 -90
- package/db/maintenance/editMaintenanceJob.js +22 -12
- package/db/maintenance/getJobEmail.js +22 -22
- package/deleteJob.js +58 -58
- package/deleteJobType.js +40 -40
- package/editJob.js +126 -65
- package/editJobStatus.js +57 -57
- package/editJobType.js +61 -61
- package/editNote.js +117 -117
- package/feature.config.js +279 -270
- package/getData.js +48 -41
- package/getJob.js +4 -4
- package/getJobType.js +35 -35
- package/getJobTypes.js +66 -66
- package/getJobs.js +48 -48
- package/integration/IntegrationStrategy.js +52 -52
- package/integration/archibus/ArchibusStrategy.js +42 -28
- package/integration/index.js +19 -19
- package/jobChanged.js +88 -89
- package/jobTypesChanged.js +52 -39
- package/package.json +3 -3
- package/requests/assignRequest.js +81 -81
- package/requests/getAssignees.js +27 -27
- package/requests/getExternalSync.js +100 -100
- package/requests/getPropertyRequests.js +89 -0
- package/requests/getRequest.js +77 -77
- package/requests/helper/hasRequestPermission.js +12 -12
- package/requests/helper/isValidAssignee.js +10 -10
- package/requests/retrySync.js +90 -90
- package/requests/setExternalJobId.js +113 -113
- package/requests/updatePriority.js +33 -33
- package/scheduleJobImport.js +63 -63
- package/sendJobEmail.js +105 -104
- package/updateData.js +34 -34
- package/values.config.a.js +26 -25
- package/values.config.default.js +30 -28
- package/values.config.enquiry.js +222 -221
- package/values.config.feedback.js +194 -193
- package/values.config.food.js +29 -28
- package/values.config.forms.js +29 -28
- package/values.config.js +30 -28
- package/watchJobs.js +154 -154
package/values.config.enquiry.js
CHANGED
|
@@ -1,224 +1,225 @@
|
|
|
1
1
|
const values = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
2
|
+
entityKey: "maintenancerequestEnquiry",
|
|
3
|
+
serviceKey: "maintenanceEnquiry",
|
|
4
|
+
updateKey: "jobsEnquiry",
|
|
5
|
+
tableKeyJobTypes: "jobtypesEnquiry",
|
|
6
|
+
tableKeyMaintenance: "maintenanceEnquiry",
|
|
7
|
+
tableKeySupportTickets: "supportticketsEnquiry",
|
|
8
|
+
tableNameJobTypes: "jobTypesEnquiry",
|
|
9
|
+
tableNameMaintenance: "maintenanceEnquiry",
|
|
10
|
+
tableNameSupportTickets: "supportticketsEnquiry",
|
|
11
|
+
permissionMaintenanceTracking: "maintenanceTrackingEnquiry",
|
|
12
|
+
permissionMaintenanceAssignment: "maintenanceAssignmentEnquiry",
|
|
13
|
+
permissionMaintenanceTypes: "maintenanceTypesEnquiry",
|
|
14
|
+
routeEntityPath: "/requestsHubEnquiry/jobDetails/:id",
|
|
15
|
+
screenMaintenanceDetail: "requestDetailEnquiry",
|
|
16
|
+
notificationMaintenanceJobAssigned: "MaintenanceJobAssignedEnquiry",
|
|
17
|
+
notificationMaintenanceJobUnassigned: "MaintenanceJobUnassignedEnquiry",
|
|
18
|
+
activityAddMaintenanceJob: "AddMaintenanceJobEnquiry",
|
|
19
|
+
activityDeleteMaintenanceJob: "DeleteMaintenanceJobEnquiry",
|
|
20
|
+
activityEditMaintenanceJob: "EditMaintenanceJobEnquiry",
|
|
21
|
+
activityMaintenanceJobStatusChanged: "MaintenanceJobStatusChangedEnquiry",
|
|
22
|
+
activityAddMaintenanceNote: "AddMaintenanceNoteEnquiry",
|
|
23
|
+
activityDeleteMaintenanceNote: "DeleteMaintenanceNoteEnquiry",
|
|
24
|
+
activityEditMaintenanceNote: "EditMaintenanceNoteEnquiry",
|
|
25
|
+
textJobEmailTitle: "Enquiry Submission",
|
|
26
|
+
allowGeneralType: false,
|
|
27
|
+
defaultJobTypes: [
|
|
28
|
+
{
|
|
29
|
+
customFields: [
|
|
30
|
+
{
|
|
31
|
+
isTitle: false,
|
|
32
|
+
label: "Subject of your enquiry",
|
|
33
|
+
mandatory: true,
|
|
34
|
+
type: "text",
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
isTitle: false,
|
|
38
|
+
label: "Details of your enquiry",
|
|
39
|
+
mandatory: true,
|
|
40
|
+
type: "text",
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
isTitle: false,
|
|
44
|
+
label: "Do you need a response by a specific date?",
|
|
45
|
+
mandatory: false,
|
|
46
|
+
type: "date",
|
|
47
|
+
},
|
|
48
|
+
],
|
|
49
|
+
description:
|
|
50
|
+
"Use this form to submit any general questions to our community team. We'll get back to you as soon as possible",
|
|
51
|
+
email: "enquiry@pluss.com",
|
|
52
|
+
hasCustomFields: true,
|
|
53
|
+
level: 1,
|
|
54
|
+
typeName: "General Enquiry",
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
customFields: [
|
|
58
|
+
{
|
|
59
|
+
isTitle: false,
|
|
60
|
+
label:
|
|
61
|
+
"Are you or someone you know interested in buying a property? ",
|
|
62
|
+
mandatory: true,
|
|
63
|
+
type: "multichoice",
|
|
64
|
+
values: ["Myself", "Family member", "Friend", "Other"],
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
isTitle: false,
|
|
68
|
+
label:
|
|
69
|
+
"If this enquiry is not for yourself then please record the other person's name, email and phone number so that we can get in touch with them.",
|
|
70
|
+
mandatory: false,
|
|
71
|
+
placeHolder:
|
|
72
|
+
"First name, last name, email address, mobile phone number.",
|
|
73
|
+
type: "text",
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
isTitle: false,
|
|
77
|
+
label: "What would you like to know more about?",
|
|
78
|
+
mandatory: true,
|
|
79
|
+
type: "checkbox",
|
|
80
|
+
values: [
|
|
81
|
+
"Availability",
|
|
82
|
+
"Pricing",
|
|
83
|
+
"Services",
|
|
84
|
+
"Eligibility",
|
|
85
|
+
"Something else",
|
|
86
|
+
"Arranging a tour of the property",
|
|
87
|
+
],
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
isTitle: false,
|
|
91
|
+
label: "Message details",
|
|
92
|
+
mandatory: true,
|
|
93
|
+
placeHolder:
|
|
94
|
+
"Record any details or message you would like to pass on regarding this sales enquiry",
|
|
95
|
+
type: "text",
|
|
96
|
+
},
|
|
97
|
+
],
|
|
98
|
+
description: "Enquire about living in our community",
|
|
99
|
+
email: "sales@pluss.com",
|
|
100
|
+
hasCustomFields: true,
|
|
101
|
+
level: 1,
|
|
102
|
+
typeName: "Sales Enquiry",
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
customFields: [
|
|
106
|
+
{
|
|
107
|
+
isTitle: false,
|
|
108
|
+
label: "How would you like to help?",
|
|
109
|
+
mandatory: true,
|
|
110
|
+
type: "checkbox",
|
|
111
|
+
values: [
|
|
112
|
+
"Social Activities",
|
|
113
|
+
"Transport",
|
|
114
|
+
"Tech Support",
|
|
115
|
+
"Gardening",
|
|
116
|
+
"Companionship",
|
|
117
|
+
"Other",
|
|
118
|
+
],
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
isTitle: false,
|
|
122
|
+
label: "If other please describe here",
|
|
123
|
+
mandatory: false,
|
|
124
|
+
type: "text",
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
isTitle: false,
|
|
128
|
+
label: "Availability",
|
|
129
|
+
mandatory: false,
|
|
130
|
+
type: "checkbox",
|
|
131
|
+
values: [
|
|
132
|
+
"Weekdays",
|
|
133
|
+
"Weekends",
|
|
134
|
+
"Specific days",
|
|
135
|
+
"Flexible",
|
|
136
|
+
"I'm not sure yet but would like to discuss further",
|
|
137
|
+
],
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
isTitle: false,
|
|
141
|
+
label: "Relevant experience",
|
|
142
|
+
mandatory: false,
|
|
143
|
+
placeHolder:
|
|
144
|
+
"Please provide a brief description of any relevant experience ",
|
|
145
|
+
type: "text",
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
isTitle: false,
|
|
149
|
+
label: "How soon can you start?",
|
|
150
|
+
mandatory: true,
|
|
151
|
+
type: "multichoice",
|
|
152
|
+
values: [
|
|
153
|
+
"This week",
|
|
154
|
+
"Next week",
|
|
155
|
+
"Next month",
|
|
156
|
+
"Not sure yet",
|
|
157
|
+
"Other",
|
|
158
|
+
],
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
isTitle: false,
|
|
162
|
+
label:
|
|
163
|
+
"Thanks for submitting your enquiry to volunteer in our community. Someone will be in touch with you soon.",
|
|
164
|
+
mandatory: false,
|
|
165
|
+
type: "staticText",
|
|
166
|
+
},
|
|
167
|
+
],
|
|
168
|
+
description:
|
|
169
|
+
"If you're interested in volunteering your time, skills or companionship, we'd love to hear from you.",
|
|
170
|
+
email: "volunteer@pluss.com",
|
|
171
|
+
hasCustomFields: true,
|
|
172
|
+
level: 1,
|
|
173
|
+
typeName: "Volunteer Enquiry",
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
customFields: [
|
|
177
|
+
{
|
|
178
|
+
isTitle: false,
|
|
179
|
+
label: "Topic",
|
|
180
|
+
mandatory: true,
|
|
181
|
+
placeHolder:
|
|
182
|
+
"What is the topic of your enquiry for the resident committee?",
|
|
183
|
+
type: "text",
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
isTitle: false,
|
|
187
|
+
label: "Details",
|
|
188
|
+
mandatory: true,
|
|
189
|
+
placeHolder: "Add the details of your enquiry here",
|
|
190
|
+
type: "text",
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
isTitle: false,
|
|
194
|
+
label: "Would you like a response",
|
|
195
|
+
mandatory: true,
|
|
196
|
+
type: "yn",
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
isTitle: false,
|
|
200
|
+
label: "If yes, how should we contact you?",
|
|
201
|
+
mandatory: true,
|
|
202
|
+
type: "multichoice",
|
|
203
|
+
values: [
|
|
204
|
+
"Send a message through the app",
|
|
205
|
+
"Email",
|
|
206
|
+
"Phone",
|
|
207
|
+
"In person",
|
|
208
|
+
"Through the committee meeting report",
|
|
209
|
+
"Other",
|
|
210
|
+
],
|
|
211
|
+
},
|
|
212
|
+
],
|
|
213
|
+
description:
|
|
214
|
+
"This form lets you raise a question, share a suggestion, or request something for discussion with your resident committee or leadership team.",
|
|
215
|
+
email: "council@pluss.com",
|
|
216
|
+
hasCustomFields: true,
|
|
217
|
+
level: 1,
|
|
218
|
+
typeName: "Resident Council / Committee Enquiry",
|
|
219
|
+
},
|
|
220
|
+
],
|
|
221
|
+
triggerMaintenanceStatusChanged: "MaintenanceStatusChangedEnquiry",
|
|
222
|
+
enableSiteConfigsPropagation: false,
|
|
223
|
+
linkToProperty: false,
|
|
223
224
|
};
|
|
224
225
|
exports.values = values;
|