@camphoric/camphoric-event-lark 1.0.1 → 2.0.0
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/CHANGELOG.md +35 -0
- package/README.md +107 -13
- package/dist/camperSchema.js +1 -1
- package/dist/confirmationEmailTemplate.js +2 -2
- package/dist/index.d.ts +52 -0
- package/dist/index.js +7 -1
- package/dist/pricing/pricing.d.ts +2 -0
- package/dist/pricing/pricing.js +3 -0
- package/dist/promoCodes.d.ts +31 -0
- package/dist/promoCodes.js +32 -0
- package/dist/registrationErrorMessages.d.ts +33 -0
- package/dist/registrationErrorMessages.js +42 -0
- package/dist/registrationSchema.js +1 -1
- package/dist/registrationTypes.d.ts +4 -0
- package/dist/registrationTypes.js +3 -2
- package/dist/reports.d.ts +3 -0
- package/dist/reports.js +106 -42
- package/dist/testRegistrations.js +613 -84
- package/package.json +7 -5
- package/reports/Admin--All-Payments.j2 +40 -0
- package/reports/Admin--Meal-Income.j2 +64 -0
- package/reports/Admin--Non-Meal-Income.j2 +89 -0
- package/reports/All-Campers.j2 +2 -2
- package/reports/Campers--All-Camp-3.j2 +2 -2
- package/reports/Campers--By-Reg-Date.j2 +2 -2
- package/reports/Campers--By-Zip-Code--For-Carpool-.j2 +14 -14
- package/reports/Campers--Confirmation-Email-Info.j2 +2 -2
- package/reports/Campers--Early-Arrivals.j2 +1 -1
- package/reports/Campers--Half-Campers.j2 +3 -3
- package/reports/Campers--Lodging-by-Alpha.j2 +1 -1
- package/reports/Campers--Lodging-by-Lodging.j2 +1 -1
- package/reports/Campers--Minors.j2 +7 -4
- package/reports/Campers--NOT-Checked-In.j2 +3 -3
- package/reports/Campers--Name-Badges.j2 +4 -4
- package/reports/Campers--Parking-Exceptions.j2 +4 -4
- package/reports/Campers--Registration-Payments.j2 +2 -2
- package/reports/Campers--Registration-Volunteers.j2 +1 -1
- package/reports/Campers--Tent-Tags.j2 +5 -3
- package/reports/Community-Care--Campers.j2 +13 -11
- package/reports/Crew--Clean--C1.j2 +4 -4
- package/reports/Crew--Clean--C2-3.j2 +4 -4
- package/reports/Crew--Community-Care.j2 +2 -2
- package/reports/Crew--Kitchen--w--Lodging.j2 +1 -1
- package/reports/Crew--Managers-and-Others.j2 +2 -2
- package/reports/Crew--Office--Camp-1.j2 +2 -2
- package/reports/Crew--Office--Camp-2.j2 +2 -2
- package/reports/Crew--Office--Camp-3.j2 +2 -2
- package/reports/Crew--Setup-and-Teardown.j2 +2 -2
- package/reports/Crew--Special-Invites.j2 +1 -1
- package/reports/Donation-Report---Lark.j2 +2 -2
- package/reports/Kitchen--All-Meal-Tickets.j2 +2 -2
- package/reports/Kitchen--Meal-Location-Exceptions.j2 +2 -2
- package/reports/Kitchen--No-Meal-Ticket.j2 +2 -2
- package/reports/Registration--All-reg-workers.j2 +4 -4
- package/reports/Registration--Early-Arrivals.j2 +4 -4
- package/reports/Registration--First-Half-Arrivals.j2 +4 -4
- package/reports/Registration--PayPal-Invoices.j2 +4 -4
- package/reports/Registration--Second-Half-Arrivals.j2 +4 -4
- package/reports/Registration--Values-for-July-Email.j2 +2 -2
- package/reports/Security--Campers.j2 +13 -11
package/dist/reports.js
CHANGED
|
@@ -4,219 +4,283 @@ function readFile(filename) {
|
|
|
4
4
|
const fullPathFilename = packagePath('reports', filename);
|
|
5
5
|
return fs.readFileSync(fullPathFilename).toString();
|
|
6
6
|
}
|
|
7
|
-
// Every report renders on the server from Camphoric's variables (DR-41).
|
|
7
|
+
// Every report renders on the server from Camphoric's variables (DR-41). Its
|
|
8
|
+
// category groups it with related reports in the admin's report list. Each
|
|
9
|
+
// title is unique: the import tools after 2.2.0 update an event's report of
|
|
10
|
+
// the same title, so two with one title would be imported into one.
|
|
8
11
|
const reports = [
|
|
9
12
|
{
|
|
10
|
-
|
|
13
|
+
category: 'Campers',
|
|
14
|
+
title: 'Parking Exceptions',
|
|
11
15
|
output: 'csv',
|
|
12
16
|
template: readFile('Campers--Parking-Exceptions.j2'),
|
|
13
17
|
},
|
|
14
18
|
{
|
|
15
|
-
|
|
19
|
+
category: 'Kitchen',
|
|
20
|
+
title: 'Meal Location Exceptions',
|
|
16
21
|
output: 'csv',
|
|
17
22
|
template: readFile('Kitchen--Meal-Location-Exceptions.j2'),
|
|
18
23
|
},
|
|
19
24
|
{
|
|
20
|
-
|
|
25
|
+
category: 'Crew',
|
|
26
|
+
title: 'Clean, C2&3',
|
|
21
27
|
output: 'csv',
|
|
22
28
|
template: readFile('Crew--Clean--C2-3.j2'),
|
|
23
29
|
},
|
|
24
30
|
{
|
|
25
|
-
|
|
31
|
+
category: 'Crew',
|
|
32
|
+
title: 'Special Invites',
|
|
26
33
|
output: 'csv',
|
|
27
34
|
template: readFile('Crew--Special-Invites.j2'),
|
|
28
35
|
},
|
|
29
36
|
{
|
|
30
|
-
|
|
37
|
+
category: 'Campers',
|
|
38
|
+
title: 'Lodging by Lodging',
|
|
31
39
|
output: 'csv',
|
|
32
40
|
template: readFile('Campers--Lodging-by-Lodging.j2'),
|
|
33
41
|
},
|
|
34
42
|
{
|
|
35
|
-
|
|
43
|
+
category: 'Kitchen',
|
|
44
|
+
title: 'All Meal Tickets',
|
|
36
45
|
output: 'csv',
|
|
37
46
|
template: readFile('Kitchen--All-Meal-Tickets.j2'),
|
|
38
47
|
},
|
|
39
48
|
{
|
|
40
|
-
|
|
49
|
+
category: 'Registration',
|
|
50
|
+
title: 'All reg workers',
|
|
41
51
|
output: 'csv',
|
|
42
52
|
template: readFile('Registration--All-reg-workers.j2'),
|
|
43
53
|
},
|
|
44
54
|
{
|
|
45
|
-
|
|
55
|
+
category: 'Campers',
|
|
56
|
+
title: 'NOT Checked In',
|
|
46
57
|
output: 'csv',
|
|
47
58
|
template: readFile('Campers--NOT-Checked-In.j2'),
|
|
48
59
|
},
|
|
49
60
|
{
|
|
50
|
-
|
|
61
|
+
category: 'Campers',
|
|
62
|
+
title: 'By Reg Date',
|
|
51
63
|
output: 'csv',
|
|
52
64
|
template: readFile('Campers--By-Reg-Date.j2'),
|
|
53
65
|
},
|
|
54
66
|
{
|
|
55
|
-
|
|
67
|
+
category: 'Crew',
|
|
68
|
+
title: 'Kitchen, w/ Lodging',
|
|
56
69
|
output: 'csv',
|
|
57
70
|
template: readFile('Crew--Kitchen--w--Lodging.j2'),
|
|
58
71
|
},
|
|
59
72
|
{
|
|
60
|
-
|
|
73
|
+
category: 'Kitchen',
|
|
74
|
+
title: 'Meal Totals',
|
|
61
75
|
output: 'csv',
|
|
62
76
|
template: readFile('Kitchen--Meal-Totals.j2'),
|
|
63
77
|
},
|
|
64
78
|
{
|
|
65
|
-
|
|
79
|
+
category: 'Admin',
|
|
80
|
+
title: 'Meal income',
|
|
81
|
+
output: 'csv',
|
|
82
|
+
template: readFile('Admin--Meal-Income.j2'),
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
category: 'Admin',
|
|
86
|
+
title: 'Non-meal income',
|
|
87
|
+
output: 'csv',
|
|
88
|
+
template: readFile('Admin--Non-Meal-Income.j2'),
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
category: 'Admin',
|
|
92
|
+
title: 'All payments',
|
|
93
|
+
output: 'csv',
|
|
94
|
+
template: readFile('Admin--All-Payments.j2'),
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
category: 'Campers',
|
|
98
|
+
title: 'Lodging by Alpha',
|
|
66
99
|
output: 'csv',
|
|
67
100
|
template: readFile('Campers--Lodging-by-Alpha.j2'),
|
|
68
101
|
},
|
|
69
102
|
{
|
|
70
|
-
|
|
103
|
+
category: 'Crew',
|
|
104
|
+
title: 'Managers and Others',
|
|
71
105
|
output: 'csv',
|
|
72
106
|
template: readFile('Crew--Managers-and-Others.j2'),
|
|
73
107
|
},
|
|
74
108
|
{
|
|
75
|
-
|
|
109
|
+
category: 'Admin',
|
|
110
|
+
title: 'Donations',
|
|
76
111
|
output: 'csv',
|
|
77
112
|
template: readFile('Donation-Report---Lark.j2'),
|
|
78
113
|
},
|
|
79
114
|
{
|
|
80
|
-
|
|
115
|
+
category: 'Campers',
|
|
116
|
+
title: 'Confirmation Email Info',
|
|
81
117
|
output: 'csv',
|
|
82
118
|
template: readFile('Campers--Confirmation-Email-Info.j2'),
|
|
83
119
|
},
|
|
84
120
|
{
|
|
85
|
-
|
|
121
|
+
category: 'Campers',
|
|
122
|
+
title: 'Email List for All Campers',
|
|
86
123
|
output: 'md',
|
|
87
124
|
template: readFile('Campers--Email-List-for-All-Campers.j2'),
|
|
88
125
|
},
|
|
89
126
|
{
|
|
90
|
-
|
|
127
|
+
category: 'Crew',
|
|
128
|
+
title: 'Clean, C1',
|
|
91
129
|
output: 'csv',
|
|
92
130
|
template: readFile('Crew--Clean--C1.j2'),
|
|
93
131
|
},
|
|
94
132
|
{
|
|
95
|
-
|
|
133
|
+
category: 'Campers',
|
|
134
|
+
title: 'By Zip Code (For Carpool)',
|
|
96
135
|
output: 'csv',
|
|
97
136
|
template: readFile('Campers--By-Zip-Code--For-Carpool-.j2'),
|
|
98
137
|
},
|
|
99
138
|
{
|
|
100
|
-
|
|
139
|
+
category: 'Registration',
|
|
140
|
+
title: 'Values for July Email',
|
|
101
141
|
output: 'csv',
|
|
102
142
|
template: readFile('Registration--Values-for-July-Email.j2'),
|
|
103
143
|
},
|
|
104
144
|
{
|
|
105
|
-
|
|
145
|
+
category: 'Crew',
|
|
146
|
+
title: 'Camper Email List by Crew',
|
|
106
147
|
output: 'md',
|
|
107
148
|
template: readFile('Crew--Camper-Email-List-by-Crew.j2'),
|
|
108
149
|
},
|
|
109
150
|
{
|
|
110
|
-
|
|
151
|
+
category: 'Campers',
|
|
152
|
+
title: 'Parking Passes',
|
|
111
153
|
output: 'csv',
|
|
112
154
|
template: readFile('Campers--Parking-Passes.j2'),
|
|
113
155
|
},
|
|
114
156
|
{
|
|
115
|
-
|
|
157
|
+
category: 'Campers',
|
|
158
|
+
title: 'Registration Payments',
|
|
116
159
|
output: 'csv',
|
|
117
160
|
template: readFile('Campers--Registration-Payments.j2'),
|
|
118
161
|
},
|
|
119
162
|
{
|
|
120
|
-
|
|
163
|
+
category: 'Crew',
|
|
164
|
+
title: 'Community Care',
|
|
121
165
|
output: 'csv',
|
|
122
166
|
template: readFile('Crew--Community-Care.j2'),
|
|
123
167
|
},
|
|
124
168
|
{
|
|
125
|
-
|
|
169
|
+
category: 'Registration',
|
|
170
|
+
title: 'Late Arrivals',
|
|
126
171
|
output: 'md',
|
|
127
172
|
template: readFile('Registration--Late-Arrivals.j2'),
|
|
128
173
|
},
|
|
129
174
|
{
|
|
130
|
-
|
|
175
|
+
category: 'Campers',
|
|
176
|
+
title: 'Early Arrivals',
|
|
131
177
|
output: 'csv',
|
|
132
178
|
template: readFile('Campers--Early-Arrivals.j2'),
|
|
133
179
|
},
|
|
134
180
|
{
|
|
135
|
-
|
|
181
|
+
category: 'Registration',
|
|
182
|
+
title: 'PayPal Invoices',
|
|
136
183
|
output: 'csv',
|
|
137
184
|
template: readFile('Registration--PayPal-Invoices.j2'),
|
|
138
185
|
},
|
|
139
186
|
{
|
|
140
|
-
|
|
187
|
+
category: 'Campers',
|
|
188
|
+
title: 'Name Badges',
|
|
141
189
|
output: 'csv',
|
|
142
190
|
template: readFile('Campers--Name-Badges.j2'),
|
|
143
191
|
},
|
|
144
192
|
{
|
|
145
|
-
|
|
193
|
+
category: 'Campers',
|
|
194
|
+
title: 'Registration Volunteers',
|
|
146
195
|
output: 'csv',
|
|
147
196
|
template: readFile('Campers--Registration-Volunteers.j2'),
|
|
148
197
|
},
|
|
149
198
|
{
|
|
150
|
-
|
|
199
|
+
category: 'Campers',
|
|
200
|
+
title: 'Half Campers',
|
|
151
201
|
output: 'csv',
|
|
152
202
|
template: readFile('Campers--Half-Campers.j2'),
|
|
153
203
|
},
|
|
154
204
|
{
|
|
155
|
-
|
|
205
|
+
category: 'Registration',
|
|
206
|
+
title: 'Early Arrivals Check-in',
|
|
156
207
|
output: 'csv',
|
|
157
208
|
template: readFile('Registration--Early-Arrivals.j2'),
|
|
158
209
|
},
|
|
159
210
|
{
|
|
160
|
-
|
|
211
|
+
category: 'Community Care',
|
|
212
|
+
title: 'Campers',
|
|
161
213
|
output: 'csv',
|
|
162
214
|
template: readFile('Community-Care--Campers.j2'),
|
|
163
215
|
},
|
|
164
216
|
{
|
|
165
|
-
|
|
217
|
+
category: 'Crew',
|
|
218
|
+
title: 'Setup and Teardown',
|
|
166
219
|
output: 'csv',
|
|
167
220
|
template: readFile('Crew--Setup-and-Teardown.j2'),
|
|
168
221
|
},
|
|
169
222
|
{
|
|
170
|
-
|
|
223
|
+
category: 'Campers',
|
|
224
|
+
title: 'All Camp 3',
|
|
171
225
|
output: 'csv',
|
|
172
226
|
template: readFile('Campers--All-Camp-3.j2'),
|
|
173
227
|
},
|
|
174
228
|
{
|
|
175
|
-
|
|
229
|
+
category: 'Registration',
|
|
230
|
+
title: 'First Half Arrivals',
|
|
176
231
|
output: 'csv',
|
|
177
232
|
template: readFile('Registration--First-Half-Arrivals.j2'),
|
|
178
233
|
},
|
|
179
234
|
{
|
|
180
|
-
|
|
235
|
+
category: 'Crew',
|
|
236
|
+
title: 'Office, Camp 1',
|
|
181
237
|
output: 'csv',
|
|
182
238
|
template: readFile('Crew--Office--Camp-1.j2'),
|
|
183
239
|
},
|
|
184
240
|
{
|
|
185
|
-
|
|
241
|
+
category: 'Registration',
|
|
242
|
+
title: 'Second Half Arrivals',
|
|
186
243
|
output: 'csv',
|
|
187
244
|
template: readFile('Registration--Second-Half-Arrivals.j2'),
|
|
188
245
|
},
|
|
189
246
|
{
|
|
190
|
-
|
|
247
|
+
category: 'Campers',
|
|
248
|
+
title: 'Minors',
|
|
191
249
|
output: 'csv',
|
|
192
250
|
template: readFile('Campers--Minors.j2'),
|
|
193
251
|
},
|
|
194
252
|
{
|
|
195
|
-
|
|
253
|
+
category: 'Crew',
|
|
254
|
+
title: 'Office, Camp 3',
|
|
196
255
|
output: 'csv',
|
|
197
256
|
template: readFile('Crew--Office--Camp-3.j2'),
|
|
198
257
|
},
|
|
199
258
|
{
|
|
200
|
-
|
|
259
|
+
category: 'Campers',
|
|
260
|
+
title: 'Tent Tags',
|
|
201
261
|
output: 'csv',
|
|
202
262
|
template: readFile('Campers--Tent-Tags.j2'),
|
|
203
263
|
},
|
|
204
264
|
{
|
|
265
|
+
category: 'Admin',
|
|
205
266
|
title: 'MWCA Final Report',
|
|
206
267
|
output: 'md',
|
|
207
268
|
template: readFile('MWCA-Final-Report.j2'),
|
|
208
269
|
},
|
|
209
270
|
{
|
|
210
|
-
|
|
271
|
+
category: 'Kitchen',
|
|
272
|
+
title: 'No Meal Ticket',
|
|
211
273
|
output: 'csv',
|
|
212
274
|
template: readFile('Kitchen--No-Meal-Ticket.j2'),
|
|
213
275
|
},
|
|
214
276
|
{
|
|
215
|
-
|
|
277
|
+
category: 'Crew',
|
|
278
|
+
title: 'Office, Camp 2',
|
|
216
279
|
output: 'csv',
|
|
217
280
|
template: readFile('Crew--Office--Camp-2.j2'),
|
|
218
281
|
},
|
|
219
282
|
{
|
|
283
|
+
category: 'Campers',
|
|
220
284
|
title: 'All Campers',
|
|
221
285
|
output: 'csv',
|
|
222
286
|
template: readFile('All-Campers.j2'),
|