@camphoric/camphoric-event-lark 1.0.1 → 3.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 +46 -0
- package/README.md +113 -13
- package/dist/camperSchema.js +1 -1
- package/dist/confirmationEmailTemplate.js +2 -2
- package/dist/index.d.ts +53 -0
- package/dist/index.js +12 -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
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
first, last, crew, lodging, arrival_date, park, badge, email
|
|
43
43
|
{% for camper in campers | sort(attribute="attributes.last_name") if (camper.registration.registration_type or {}).name == crew -%}
|
|
44
44
|
{%- set crew_type = camper.registration.registration_type or {} -%}
|
|
45
|
-
{{ camper.attributes.first_name }},
|
|
46
|
-
{{- camper.attributes.last_name }},
|
|
45
|
+
{{ camper.attributes.first_name | csv }},
|
|
46
|
+
{{- camper.attributes.last_name | csv }},
|
|
47
47
|
{{- crew_type.label or 'none' }},
|
|
48
48
|
{{- lodging_short(camper.lodging) }},
|
|
49
49
|
{{- camper.stay[0] if camper.stay }},
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
first, last, crew, lodging, arrival_date, park, badge, email
|
|
44
44
|
{% for camper in campers | sort(attribute="attributes.last_name") if (camper.registration.registration_type or {}).name == crew -%}
|
|
45
45
|
{%- set crew_type = camper.registration.registration_type or {} -%}
|
|
46
|
-
{{ camper.attributes.first_name }},
|
|
47
|
-
{{- camper.attributes.last_name }},
|
|
46
|
+
{{ camper.attributes.first_name | csv }},
|
|
47
|
+
{{- camper.attributes.last_name | csv }},
|
|
48
48
|
{{- crew_type.label or 'none' }},
|
|
49
49
|
{{- lodging_short(camper.lodging) }},
|
|
50
50
|
{{- camper.stay[0] if camper.stay }},
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
} -%}
|
|
13
13
|
last, first, registration_type, email, phone
|
|
14
14
|
{% for camper in campers | sort(attribute="attributes.last_name") -%}
|
|
15
|
-
{{camper.attributes.last_name}},
|
|
15
|
+
{{ camper.attributes.last_name | csv }},{{ camper.attributes.first_name | csv }},
|
|
16
16
|
{%- set reg = camper.registration -%}
|
|
17
17
|
{{- regTypeLookup[reg.registration_type.id if reg.registration_type]}},
|
|
18
18
|
{{- reg.registrant_email}},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
last, first, email, donation
|
|
2
2
|
{% for camper in campers | sort(attribute='attributes.last_name') if camper.registration.pricing.donation != 0 -%}
|
|
3
|
-
{{ camper.attributes.first_name }},
|
|
4
|
-
{{- camper.attributes.last_name }},
|
|
3
|
+
{{ camper.attributes.first_name | csv }},
|
|
4
|
+
{{- camper.attributes.last_name | csv }},
|
|
5
5
|
{{- camper.attributes.email or camper.registration.registrant_email or '-'}},
|
|
6
6
|
{{- camper.registration.pricing.donation}}
|
|
7
7
|
{% endfor -%}
|
|
@@ -22,8 +22,8 @@ last, first, camp, registration_type, stay, meal_plan, meal_type,dinner_location
|
|
|
22
22
|
{%- set meal_rate = 'at_cost' if crew == 'talent' else meal_rate -%}
|
|
23
23
|
{%- set meal_rate = 'kitchen' if crew in ['kitchen-full', 'kitchen-partial'] else meal_rate -%}
|
|
24
24
|
{%- set meal_rate = 'trade' if camper.admin_attributes.food_trade_only else meal_rate -%}
|
|
25
|
-
{{- camper.attributes.last_name }},
|
|
26
|
-
{{- camper.attributes.first_name }},
|
|
25
|
+
{{- camper.attributes.last_name | csv }},
|
|
26
|
+
{{- camper.attributes.first_name | csv }},
|
|
27
27
|
{{- ns.camp }},
|
|
28
28
|
{{- crew or 'none' }},
|
|
29
29
|
{{- camper.attributes.session}},
|
|
@@ -22,8 +22,8 @@ last, first, camp, registration_type, stay, meal_plan, meal_type,dinner_location
|
|
|
22
22
|
{%- set meal_rate = 'at_cost' if crew == 'talent' else meal_rate -%}
|
|
23
23
|
{%- set meal_rate = 'kitchen' if crew in ['kitchen-full', 'kitchen-partial'] else meal_rate -%}
|
|
24
24
|
{%- set meal_rate = 'trade' if camper.admin_attributes.food_trade_only else meal_rate -%}
|
|
25
|
-
{{- camper.attributes.last_name }},
|
|
26
|
-
{{- camper.attributes.first_name }},
|
|
25
|
+
{{- camper.attributes.last_name | csv }},
|
|
26
|
+
{{- camper.attributes.first_name | csv }},
|
|
27
27
|
{{- ns.camp }},
|
|
28
28
|
{{- crew or 'none' }},
|
|
29
29
|
{{- camper.attributes.session}},
|
|
@@ -13,8 +13,8 @@ last, first, camp, registration_type, stay, meal_plan, meal_location
|
|
|
13
13
|
{%- for c in ['Camp 1', 'Camp 2', 'Camp 3'] if row.full_name.startswith(c) -%}
|
|
14
14
|
{%- set ns.camp = c -%}
|
|
15
15
|
{%- endfor -%}
|
|
16
|
-
{{- camper.attributes.last_name }},
|
|
17
|
-
{{- camper.attributes.first_name }},
|
|
16
|
+
{{- camper.attributes.last_name | csv }},
|
|
17
|
+
{{- camper.attributes.first_name | csv }},
|
|
18
18
|
{{- ns.camp }},
|
|
19
19
|
{{- crew or 'none' }},
|
|
20
20
|
{{- camper.attributes.session}},
|
|
@@ -37,8 +37,8 @@ last, first, crew, lodging, park, email, parking, tent tag, session, row
|
|
|
37
37
|
{%- if 'Tent' in full_lodging_path -%}
|
|
38
38
|
{%- set tent_tag_holder = camper.lodging.campers | selectattr('attributes.session', '==', camper.attributes.session) | sort(attribute="index,attributes.last_name,attributes.first_name") | first -%}
|
|
39
39
|
{%- endif -%}
|
|
40
|
-
{{ camper.attributes.last_name }},
|
|
41
|
-
{{- camper.attributes.first_name }},
|
|
40
|
+
{{ camper.attributes.last_name | csv }},
|
|
41
|
+
{{- camper.attributes.first_name | csv }},
|
|
42
42
|
{{- crew or 'Camper' }},
|
|
43
43
|
{{- lodging_short}},
|
|
44
44
|
{{- parking_short[parking] or '-'}},
|
|
@@ -51,14 +51,14 @@ last, first, crew, lodging, park, email, parking, tent tag, session, row
|
|
|
51
51
|
{%- elif (parking_passes | length) > 1 -%}
|
|
52
52
|
{{- parking_passes | length }} parking passes
|
|
53
53
|
{%- elif pass_holder -%}
|
|
54
|
-
|
|
54
|
+
{{ ('under ' ~ (pass_holder.attributes.first_name or '') ~ ' ' ~ (pass_holder.attributes.last_name or '')) | csv }}
|
|
55
55
|
{%- else -%}
|
|
56
56
|
NONE
|
|
57
57
|
{%- endif -%},
|
|
58
58
|
{%- if 'Tent' in full_lodging_path and tent_tag_holder.id == camper.id -%}
|
|
59
59
|
tent tag {{ full_lodging_path[full_lodging_path.find('→Spot '):] | replace('→Spot ', '') }}
|
|
60
60
|
{%- elif 'Tent' in full_lodging_path -%}
|
|
61
|
-
|
|
61
|
+
{{ ('under ' ~ (tent_tag_holder.attributes.first_name or '') ~ ' ' ~ (tent_tag_holder.attributes.last_name or '')) | csv }}
|
|
62
62
|
{%- else -%}
|
|
63
63
|
NONE
|
|
64
64
|
{%- endif -%},
|
|
@@ -41,10 +41,10 @@ Last, First, Age, Guardian, Forms, Crew, Lodging, Stay, Park
|
|
|
41
41
|
{%- if 'Camp 3' in full_lodging_path and 'RV' in full_lodging_path -%}{%- set parking = 'Vehicle Camp 3' -%}{%- endif -%}
|
|
42
42
|
{%- endif -%}
|
|
43
43
|
{%- set lodging_short = lodging_short | replace('Camp ', 'C') -%}
|
|
44
|
-
{{ camper.attributes.last_name }},
|
|
45
|
-
{{- camper.attributes.first_name }},
|
|
46
|
-
{{- camper.attributes.age
|
|
47
|
-
{{-
|
|
44
|
+
{{ camper.attributes.last_name | csv }},
|
|
45
|
+
{{- camper.attributes.first_name | csv }},
|
|
46
|
+
{{- (camper.attributes.age or '').split(' ')[0] | replace('65', '65+') }},
|
|
47
|
+
{{- (camper.admin_attributes.guardian_name if 'guardian_name' in camper.admin_attributes else '') | csv }},
|
|
48
48
|
{%- if camper.admin_attributes.guardian_forms_required and camper.admin_attributes.guardian_forms_received -%}
|
|
49
49
|
Received
|
|
50
50
|
{%- elif camper.admin_attributes.guardian_forms_required and not camper.admin_attributes.guardian_forms_received -%}
|
|
@@ -40,10 +40,10 @@ Last, First, Age, Guardian, Forms, Crew, Lodging, Stay, Park
|
|
|
40
40
|
{%- if 'Camp 3' in full_lodging_path and 'RV' in full_lodging_path -%}{%- set parking = 'Vehicle Camp 3' -%}{%- endif -%}
|
|
41
41
|
{%- endif -%}
|
|
42
42
|
{%- set lodging_short = lodging_short | replace('Camp ', 'C') -%}
|
|
43
|
-
{{ camper.attributes.last_name }},
|
|
44
|
-
{{- camper.attributes.first_name }},
|
|
45
|
-
{{- camper.attributes.age
|
|
46
|
-
{{-
|
|
43
|
+
{{ camper.attributes.last_name | csv }},
|
|
44
|
+
{{- camper.attributes.first_name | csv }},
|
|
45
|
+
{{- (camper.attributes.age or '').split(' ')[0] | replace('65', '65+') }},
|
|
46
|
+
{{- (camper.admin_attributes.guardian_name if 'guardian_name' in camper.admin_attributes else '') | csv }},
|
|
47
47
|
{%- if camper.admin_attributes.guardian_forms_required and camper.admin_attributes.guardian_forms_received -%}
|
|
48
48
|
Received
|
|
49
49
|
{%- elif camper.admin_attributes.guardian_forms_required and not camper.admin_attributes.guardian_forms_received -%}
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
{%- set due_date = '07/01/' ~ camp_year -%}
|
|
3
3
|
{%- macro item_name(r) -%}
|
|
4
4
|
{%- set camper = r.campers[0] -%}
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
{{- ('Registration balance for #' ~ r.id ~ ' ' ~ (camper.attributes.first_name or '') ~ ' '
|
|
6
|
+
~ (camper.attributes.last_name or '') ~ ' ' ~ (r.registrant_email or '')) | csv -}}
|
|
7
7
|
{%- endmacro -%}
|
|
8
8
|
{%- macro paypal_name_or(r, if_pp, if_check) -%}
|
|
9
9
|
"
|
|
10
10
|
{%- if r.payment_type == 'PayPal' -%}
|
|
11
|
-
{{- (((r.paypal_response or {}).payer or {}).name or {})[if_pp] -}}
|
|
11
|
+
{{- ((((r.paypal_response or {}).payer or {}).name or {})[if_pp] or '') | replace('"', '""') -}}
|
|
12
12
|
{%- else -%}
|
|
13
|
-
{{- r.campers[0].attributes[if_check] or r.registrant_email -}}
|
|
13
|
+
{{- (r.campers[0].attributes[if_check] or r.registrant_email or '') | replace('"', '""') -}}
|
|
14
14
|
{%- endif -%}
|
|
15
15
|
"
|
|
16
16
|
{%- endmacro -%}
|
|
@@ -32,10 +32,10 @@ last,first,age,guardian,forms,crew,lodging,stay
|
|
|
32
32
|
{%- set lodging_short = lodging_short | replace('Spot ', '') -%}
|
|
33
33
|
{%- endif -%}
|
|
34
34
|
{%- set lodging_short = lodging_short | replace('Camp ', 'C') -%}
|
|
35
|
-
{{ camper.attributes.last_name }},
|
|
36
|
-
{{- camper.attributes.first_name }},
|
|
37
|
-
{{- camper.attributes.age
|
|
38
|
-
{{-
|
|
35
|
+
{{ camper.attributes.last_name | csv }},
|
|
36
|
+
{{- camper.attributes.first_name | csv }},
|
|
37
|
+
{{- (camper.attributes.age or '').split(' ')[0] | replace('65', '65+') }},
|
|
38
|
+
{{- (camper.admin_attributes.guardian_name if 'guardian_name' in camper.admin_attributes else '') | csv }},
|
|
39
39
|
{%- if camper.admin_attributes.guardian_forms_required and camper.admin_attributes.guardian_forms_received -%}
|
|
40
40
|
Received
|
|
41
41
|
{%- elif camper.admin_attributes.guardian_forms_required and not camper.admin_attributes.guardian_forms_received -%}
|
|
@@ -11,8 +11,8 @@ full_name,first_name,id,email,guardian_forms_required,guardian_forms_received,re
|
|
|
11
11
|
{%- if full_lodging_path.startswith('Camp 3') -%}{%- set breakfast_in = 'Camp 2' -%}{%- endif -%}
|
|
12
12
|
{%- set dinner_in = camper.admin_attributes.meal_assignment_dinner or dinner_in -%}
|
|
13
13
|
{%- set breakfast_in = camper.admin_attributes.meal_assignment_breakfast or breakfast_in -%}
|
|
14
|
-
{{camper.attributes.first_name
|
|
15
|
-
{{- camper.attributes.first_name }},
|
|
14
|
+
{{ ((camper.attributes.first_name or '') ~ ' ' ~ (camper.attributes.last_name or '')) | csv }},
|
|
15
|
+
{{- camper.attributes.first_name | csv }},
|
|
16
16
|
{{- camper.id }},
|
|
17
17
|
{{- camper.attributes.email or camper.registration.registrant_email or '-'}},
|
|
18
18
|
{{- "" if not camper.admin_attributes.guardian_forms_required else "Yes" }},
|
|
@@ -40,23 +40,25 @@ Last, First, Age, Guardian, GForms, Crew, Title, Lodging, Stay, Park, VLicense,
|
|
|
40
40
|
{%- if 'Camp 3' in full_lodging_path and 'RV' in full_lodging_path -%}{%- set parking = 'Vehicle Camp 3' -%}{%- endif -%}
|
|
41
41
|
{%- endif -%}
|
|
42
42
|
{%- set lodging_short = lodging_short | replace('Camp ', 'C') -%}
|
|
43
|
-
{{
|
|
44
|
-
{{-
|
|
45
|
-
{{- camper.attributes.age
|
|
46
|
-
{{-
|
|
43
|
+
{{ camper.attributes.last_name | csv }},
|
|
44
|
+
{{- camper.attributes.first_name | csv }},
|
|
45
|
+
{{- (camper.attributes.age or '').split(' ')[0] | replace('65', '65+') }},
|
|
46
|
+
{{- (camper.admin_attributes.guardian_name if 'guardian_name' in camper.admin_attributes else '') | csv }},
|
|
47
47
|
{{- 'Yes' if camper.admin_attributes.guardian_forms_required else '' }},
|
|
48
48
|
{{- (crew | replace('', '') | replace('-partial', '') | replace('-full', '')) or '-' }},
|
|
49
|
-
{{-
|
|
49
|
+
{{- (camper.admin_attributes.crew_exception if 'crew_exception' in camper.admin_attributes else '') | csv }},
|
|
50
50
|
{{- lodging_short }},
|
|
51
51
|
{{- session_short[camper.attributes.session] }},
|
|
52
52
|
{{- ((parking_passes | length | string) + 'x' + parking_short[parking]) if parking_passes else '-' }},
|
|
53
53
|
{%- if camper.admin_attributes.vehicles -%}
|
|
54
|
-
{{-
|
|
55
|
-
{{-
|
|
56
|
-
{
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
{
|
|
54
|
+
{{- (camper.admin_attributes.vehicles | map(attribute="license", default="-") | join('\n')) | csv -}},
|
|
55
|
+
{{- (camper.admin_attributes.vehicles | map(attribute="state", default="-") | join('\n')) | csv -}},
|
|
56
|
+
{%- set descriptions = [] -%}
|
|
57
|
+
{%- for v in camper.admin_attributes.vehicles -%}
|
|
58
|
+
{%- do descriptions.append(v.year ~ ' ' ~ v.color ~ ' ' ~ v.make ~ ' ' ~ v.model) -%}
|
|
59
|
+
{%- endfor -%}
|
|
60
|
+
{{- descriptions | join('\n') | csv -}},
|
|
61
|
+
{{- (camper.admin_attributes.vehicles | map(attribute="passengers") | map('join', ',') | join('\n')) | csv -}}
|
|
60
62
|
{%- else -%}
|
|
61
63
|
-, -, -, -
|
|
62
64
|
{%- endif -%},
|