placementt-core 1.400.1237 → 1.400.1239
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/lib/constants.d.ts +4 -1
- package/lib/constants.js +256 -3
- package/lib/constants.js.map +1 -1
- package/lib/onboardingPathways.d.ts +43 -20
- package/lib/onboardingPathways.js +57 -44
- package/lib/onboardingPathways.js.map +1 -1
- package/lib/onboardingPathways.test.js +18 -7
- package/lib/onboardingPathways.test.js.map +1 -1
- package/lib/renewals.d.ts +21 -6
- package/lib/renewals.js +42 -9
- package/lib/renewals.js.map +1 -1
- package/lib/renewals.test.js +17 -0
- package/lib/renewals.test.js.map +1 -1
- package/lib/typeDefinitions.d.ts +8 -70
- package/lib/typeDefinitions.js.map +1 -1
- package/package.json +1 -1
- package/src/constants.ts +256 -2
- package/src/onboardingPathways.test.ts +21 -6
- package/src/onboardingPathways.ts +60 -51
- package/src/renewals.test.ts +21 -1
- package/src/renewals.ts +45 -11
- package/src/typeDefinitions.ts +10 -70
package/lib/constants.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnalyticsItem, ApplicantStage, OutreachDeliverability, OutreachStatus, CommSchema, CustomFormSchema, CustomFormSchemaField, EmailTemplateConfig, FlagCodes, ProductTag, LeadStageSchema, StudentActivity, StudentActivityCategory, StudentActivityType, SurveyDateRule, SurveyOrdinal, SurveyWeekday, WorkflowStage } from "./typeDefinitions";
|
|
1
|
+
import { AnalyticsItem, ApplicantStage, OutreachDeliverability, OutreachStatus, CommSchema, CustomFormSchema, CustomFormSchemaField, EmailTemplateConfig, EmailTemplateProduct, FlagCodes, ProductTag, LeadStageSchema, StudentActivity, StudentActivityCategory, StudentActivityType, SurveyDateRule, SurveyOrdinal, SurveyWeekday, WorkflowStage } from "./typeDefinitions";
|
|
2
2
|
import type { ResolvedProducts } from "./productResolver";
|
|
3
3
|
export declare const providerCodes: {
|
|
4
4
|
soleTrader: {
|
|
@@ -208,6 +208,9 @@ export declare function emailTemplateAvailable(templateKey: string | undefined,
|
|
|
208
208
|
export declare const productTagLabels: {
|
|
209
209
|
[k in ProductTag]: string;
|
|
210
210
|
};
|
|
211
|
+
export declare const emailTemplateProductLabels: {
|
|
212
|
+
[k in EmailTemplateProduct]: string;
|
|
213
|
+
};
|
|
211
214
|
export declare const emailTemplateExampleData: {
|
|
212
215
|
[templateKey: string]: {
|
|
213
216
|
[param: string]: string;
|
package/lib/constants.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.DFE_CONTACT_UPLOAD_COLUMNS = exports.OUTREACH_DEFAULT_DEFER_MONTHS = exports.outreachDeliverabilityLabels = exports.outreachStatusColours = exports.outreachStatusLabels = exports.outreachStatusOrder = exports.SCHEDULED_CHECK_REMINDER_LEAD_DAYS = exports.SCHEDULED_CHECK_MISSED_AFTER_DAYS = exports.STUDENT_YEAR_FIELD = exports.JOB_VALUES = exports.CAREER_INTEREST_CATEGORIES = exports.SIC_SECTIONS = exports.SOC_MAJOR_GROUPS = exports.DESTINATION_CODES = exports.careersHubSchoolOnboardingEmailTemplates = exports.emailCampaignFullStatuses = exports.emailCampaignSummaryStatuses = exports.leadStageOrder = exports.leadStageSchema = exports.commSchema = exports.DEFAULT_YEAR_GROUPS = exports.DEFAULT_SURVEY_RULE = exports.surveyRuleLabel = exports.SURVEY_MONTHS = exports.SURVEY_WEEKDAYS = exports.SURVEY_ORDINALS = exports.skillAssessmentSchedule = exports.skillLabelColours = exports.equalexLearningOutcomes = void 0;
|
|
3
|
+
exports.externalActivityTypes = exports.MISQueryParams = exports.emailTemplateExampleData = exports.emailTemplateProductLabels = exports.productTagLabels = exports.emailTemplates = exports.defaultApplicantWorkflow = exports.mobileCountryCodes = exports.ERROR_COLOR = exports.SUCCESS_COLOR = exports.WARNING_COLOR = exports.INFO_COLOR = exports.INFOBACKGROUNDCOLOR = exports.INFOTEXTCOLOR = exports.WARNINGBACKGROUNDCOLOR = exports.WARNINGTEXTCOLOR = exports.SUCCESSBACKGROUNDCOLOR = exports.SUCCESSTEXTCOLOR = exports.ERRORBACKGROUNDCOLOR = exports.ERRORTEXTCOLOR = exports.STUDENT_COLOUR = exports.PROVIDER_COLOUR = exports.INSTITUTE_COLOUR = exports.SECONDARY_COLOUR = exports.LOGO_TERTIARY_COLOUR = exports.LOGO_SECONDARY_COLOUR = exports.PRIMARY_COLOUR = exports.MICROSOFT_SSO_GUIDE_URL = exports.MICROSOFT_ISSUER_HOST = exports.MICROSOFT_AUTHORITY = exports.MICROSOFT_CLIENT_ID = exports.DEFAULT_ACTIVITY_REFLECTION_FORM = exports.studentActivityCategory = exports.ACTIVITY_SCHEMAS = exports.DEFAULT_ACTIVITY_DESCRIPTION = exports.ACTIVITY_TYPE_DESCRIPTION = exports.ACTIVITY_TYPE_ORGANISATION = exports.activityProfile = exports.ACTIVITY_TYPE_PROFILE = exports.ACTIVITY_PROFILES = exports.ACTIVITY_TYPE_TITLE = exports.ACTIVITY_TYPES_BY_CATEGORY = exports.STUDENT_ACTIVITY_CATEGORIES = exports.DEFAULT_ACTIVITY_REFLECTION_FORM_ID = exports.sampleTargets = exports.flagCodes = exports.defaultStudentWorkflow = exports.defaultInstituteWorkflow = exports.countryList = exports.providerCodes = void 0;
|
|
4
|
+
exports.DFE_CONTACT_UPLOAD_COLUMNS = exports.OUTREACH_DEFAULT_DEFER_MONTHS = exports.outreachDeliverabilityLabels = exports.outreachStatusColours = exports.outreachStatusLabels = exports.outreachStatusOrder = exports.SCHEDULED_CHECK_REMINDER_LEAD_DAYS = exports.SCHEDULED_CHECK_MISSED_AFTER_DAYS = exports.STUDENT_YEAR_FIELD = exports.JOB_VALUES = exports.CAREER_INTEREST_CATEGORIES = exports.SIC_SECTIONS = exports.SOC_MAJOR_GROUPS = exports.DESTINATION_CODES = exports.careersHubSchoolOnboardingEmailTemplates = exports.emailCampaignFullStatuses = exports.emailCampaignSummaryStatuses = exports.leadStageOrder = exports.leadStageSchema = exports.commSchema = exports.DEFAULT_YEAR_GROUPS = exports.DEFAULT_SURVEY_RULE = exports.surveyRuleLabel = exports.SURVEY_MONTHS = exports.SURVEY_WEEKDAYS = exports.SURVEY_ORDINALS = exports.skillAssessmentSchedule = exports.skillLabelColours = exports.equalexLearningOutcomes = exports.gatsbyBenchmarks = void 0;
|
|
5
5
|
exports.productTagAvailable = productTagAvailable;
|
|
6
6
|
exports.emailTemplateAvailable = emailTemplateAvailable;
|
|
7
7
|
exports.skillColour = skillColour;
|
|
@@ -1172,6 +1172,7 @@ const placementRejectedParams = [...placementEmailParams, "reason"];
|
|
|
1172
1172
|
// Emails to the cohort contact about the cohort as a whole.
|
|
1173
1173
|
const staffCohortEmailParams = ["cohortName", "submissionDeadline", "daysUntilDeadline", "instituteName", "cohortContactForename", "cohortContactSurname", "cohortContactEmail"];
|
|
1174
1174
|
// Cohort emails sent before a student has a placement.
|
|
1175
|
+
const engagementEmailParams = ["contactForename", "instituteName"];
|
|
1175
1176
|
const cohortEmailParams = ["studentForename", "studentSurname", "studentEmail", "parentEmail", "submissionDeadline", "daysUntilDeadline", "cohortName", "instituteName", "cohortContactForename", "cohortContactSurname", "cohortContactEmail"];
|
|
1176
1177
|
exports.emailTemplates = {
|
|
1177
1178
|
studentSubmissionReminder: {
|
|
@@ -1639,6 +1640,250 @@ exports.emailTemplates = {
|
|
|
1639
1640
|
type: "leaverChristmasInvite",
|
|
1640
1641
|
button: { text: "Quick check-in", link: "/leaverCheckpoint/{{requestId}}/christmas/{{token}}" },
|
|
1641
1642
|
},
|
|
1643
|
+
// CareerThread's own onboarding and renewal emails to schools, sent by an admin from the institute's
|
|
1644
|
+
// emails. product "admin" keeps them out of every school's template list.
|
|
1645
|
+
engagementPickFeatures: {
|
|
1646
|
+
product: "admin",
|
|
1647
|
+
description: "First onboarding email: asks the school which parts of CareerThread they will use.",
|
|
1648
|
+
params: [...engagementEmailParams],
|
|
1649
|
+
button: { text: "Pick your features", link: "/institutes/home" },
|
|
1650
|
+
type: "engagement",
|
|
1651
|
+
name: "Pick your features",
|
|
1652
|
+
recipient: "staff",
|
|
1653
|
+
group: "Joining",
|
|
1654
|
+
},
|
|
1655
|
+
engagementPlanYear: {
|
|
1656
|
+
product: "admin",
|
|
1657
|
+
description: "Asks the school to drag each feature into the term they want to start it.",
|
|
1658
|
+
params: [...engagementEmailParams],
|
|
1659
|
+
button: { text: "Plan your year", link: "/institutes/organisation/overview" },
|
|
1660
|
+
type: "engagement",
|
|
1661
|
+
name: "Plan your year",
|
|
1662
|
+
recipient: "staff",
|
|
1663
|
+
group: "Joining",
|
|
1664
|
+
},
|
|
1665
|
+
engagementInviteStaff: {
|
|
1666
|
+
product: "admin",
|
|
1667
|
+
description: "Suggests inviting the rest of the careers team. Sent once, no reminders.",
|
|
1668
|
+
params: [...engagementEmailParams],
|
|
1669
|
+
button: { text: "Invite staff", link: "/institutes/organisation/staff" },
|
|
1670
|
+
type: "engagement",
|
|
1671
|
+
name: "Invite staff",
|
|
1672
|
+
recipient: "staff",
|
|
1673
|
+
group: "Joining",
|
|
1674
|
+
},
|
|
1675
|
+
engagementStudentRoute: {
|
|
1676
|
+
product: "admin",
|
|
1677
|
+
description: "Asks how the school will add students: Wonde, an MIS file or a spreadsheet.",
|
|
1678
|
+
params: [...engagementEmailParams, "routeCode"],
|
|
1679
|
+
optionalButtons: [
|
|
1680
|
+
{ text: "Connect through Wonde", link: "/students-route/{{routeCode}}?route=wonde" },
|
|
1681
|
+
{ text: "Send a file from our MIS", link: "/students-route/{{routeCode}}?route=mis" },
|
|
1682
|
+
{ text: "Upload a spreadsheet", link: "/students-route/{{routeCode}}?route=csv" },
|
|
1683
|
+
],
|
|
1684
|
+
type: "engagement",
|
|
1685
|
+
name: "Choose how to add students",
|
|
1686
|
+
recipient: "staff",
|
|
1687
|
+
group: "Students",
|
|
1688
|
+
},
|
|
1689
|
+
engagementWonde: {
|
|
1690
|
+
product: "admin",
|
|
1691
|
+
description: "Sent to the school and its IT contact once they choose Wonde.",
|
|
1692
|
+
params: [...engagementEmailParams],
|
|
1693
|
+
button: { text: "Data protection policy", link: "/data-protection-policy-july-2026.pdf" },
|
|
1694
|
+
type: "engagement",
|
|
1695
|
+
name: "Approve Wonde",
|
|
1696
|
+
recipient: "staff",
|
|
1697
|
+
group: "Students",
|
|
1698
|
+
},
|
|
1699
|
+
engagementMis: {
|
|
1700
|
+
product: "admin",
|
|
1701
|
+
description: "Sent to the school and its IT contact once they choose an MIS file transfer.",
|
|
1702
|
+
params: [...engagementEmailParams],
|
|
1703
|
+
button: { text: "Data protection policy", link: "/data-protection-policy-july-2026.pdf" },
|
|
1704
|
+
type: "engagement",
|
|
1705
|
+
name: "MIS file transfer",
|
|
1706
|
+
recipient: "staff",
|
|
1707
|
+
group: "Students",
|
|
1708
|
+
},
|
|
1709
|
+
engagementUploadStudents: {
|
|
1710
|
+
product: "admin",
|
|
1711
|
+
description: "Sent once the school chooses to upload a spreadsheet of students.",
|
|
1712
|
+
params: [...engagementEmailParams],
|
|
1713
|
+
button: { text: "Upload students", link: "/institutes/students" },
|
|
1714
|
+
type: "engagement",
|
|
1715
|
+
name: "Upload your students",
|
|
1716
|
+
recipient: "staff",
|
|
1717
|
+
group: "Students",
|
|
1718
|
+
},
|
|
1719
|
+
engagementWexGroups: {
|
|
1720
|
+
product: "admin",
|
|
1721
|
+
description: "Asks which year groups go on work experience, to set up a group for each.",
|
|
1722
|
+
params: [...engagementEmailParams],
|
|
1723
|
+
button: { text: "Set up a group", link: "/institutes/cohorts" },
|
|
1724
|
+
secondaryButton: { text: "Pick a different term", link: "/plan/{{planCode}}" },
|
|
1725
|
+
type: "engagement",
|
|
1726
|
+
name: "Set up work experience groups",
|
|
1727
|
+
recipient: "staff",
|
|
1728
|
+
group: "Work experience",
|
|
1729
|
+
},
|
|
1730
|
+
engagementWexCohort: {
|
|
1731
|
+
product: "admin",
|
|
1732
|
+
description: "Each new year: asks the school to check this year's cohort dates and students.",
|
|
1733
|
+
params: [...engagementEmailParams],
|
|
1734
|
+
button: { text: "Check this year's cohort", link: "/institutes/cohorts" },
|
|
1735
|
+
secondaryButton: { text: "Pick a different term", link: "/plan/{{planCode}}" },
|
|
1736
|
+
type: "engagement",
|
|
1737
|
+
name: "This year's cohort",
|
|
1738
|
+
recipient: "staff",
|
|
1739
|
+
group: "Work experience",
|
|
1740
|
+
},
|
|
1741
|
+
engagementWexWorkflow: {
|
|
1742
|
+
product: "admin",
|
|
1743
|
+
description: "Asks who signs off each placement, to build the workflow.",
|
|
1744
|
+
params: [...engagementEmailParams],
|
|
1745
|
+
button: { text: "Build the workflow", link: "/institutes/cohorts" },
|
|
1746
|
+
secondaryButton: { text: "Pick a different term", link: "/plan/{{planCode}}" },
|
|
1747
|
+
type: "engagement",
|
|
1748
|
+
name: "Sign-off workflow",
|
|
1749
|
+
recipient: "staff",
|
|
1750
|
+
group: "Work experience",
|
|
1751
|
+
},
|
|
1752
|
+
engagementWexActivate: {
|
|
1753
|
+
product: "admin",
|
|
1754
|
+
description: "Asks the school to activate the students in their work experience group.",
|
|
1755
|
+
params: [...engagementEmailParams],
|
|
1756
|
+
button: { text: "Activate students", link: "/institutes/students" },
|
|
1757
|
+
secondaryButton: { text: "Pick a different term", link: "/plan/{{planCode}}" },
|
|
1758
|
+
type: "engagement",
|
|
1759
|
+
name: "Activate students",
|
|
1760
|
+
recipient: "staff",
|
|
1761
|
+
group: "Work experience",
|
|
1762
|
+
},
|
|
1763
|
+
engagementWexPlacements: {
|
|
1764
|
+
product: "admin",
|
|
1765
|
+
description: "Suggests adding the first placement.",
|
|
1766
|
+
params: [...engagementEmailParams],
|
|
1767
|
+
button: { text: "Add a placement", link: "/institutes/cohorts" },
|
|
1768
|
+
secondaryButton: { text: "Pick a different term", link: "/plan/{{planCode}}" },
|
|
1769
|
+
type: "engagement",
|
|
1770
|
+
name: "First placements",
|
|
1771
|
+
recipient: "staff",
|
|
1772
|
+
group: "Work experience",
|
|
1773
|
+
},
|
|
1774
|
+
engagementWexFeedback: {
|
|
1775
|
+
product: "admin",
|
|
1776
|
+
description: "Suggests turning on feedback at the end of each placement.",
|
|
1777
|
+
params: [...engagementEmailParams],
|
|
1778
|
+
button: { text: "Set up feedback", link: "/institutes/cohorts" },
|
|
1779
|
+
secondaryButton: { text: "Pick a different term", link: "/plan/{{planCode}}" },
|
|
1780
|
+
type: "engagement",
|
|
1781
|
+
name: "Placement feedback",
|
|
1782
|
+
recipient: "staff",
|
|
1783
|
+
group: "Work experience",
|
|
1784
|
+
},
|
|
1785
|
+
engagementHubFirstEvent: {
|
|
1786
|
+
product: "admin",
|
|
1787
|
+
description: "Suggests a careers hub school requests its first employer event.",
|
|
1788
|
+
params: [...engagementEmailParams, "hubName"],
|
|
1789
|
+
button: { text: "Request an event", link: "/institutes/events" },
|
|
1790
|
+
type: "engagement",
|
|
1791
|
+
name: "Hub school first event",
|
|
1792
|
+
recipient: "staff",
|
|
1793
|
+
group: "Hub schools",
|
|
1794
|
+
},
|
|
1795
|
+
engagementReminderDay7: {
|
|
1796
|
+
product: "admin",
|
|
1797
|
+
description: "A week after any onboarding email, if the step still isn't done.",
|
|
1798
|
+
params: [...engagementEmailParams, "featureName", "featureDescription", "featurePath"],
|
|
1799
|
+
button: { text: "Get started", link: "/institutes{{featurePath}}" },
|
|
1800
|
+
type: "engagement",
|
|
1801
|
+
name: "Reminder: day 7",
|
|
1802
|
+
recipient: "staff",
|
|
1803
|
+
group: "Reminders",
|
|
1804
|
+
},
|
|
1805
|
+
engagementReminderDay7Plan: {
|
|
1806
|
+
product: "admin",
|
|
1807
|
+
description: "Day 7 reminder for a feature on the plan board, with a link to pick a different term.",
|
|
1808
|
+
params: [...engagementEmailParams, "featureName", "featureDescription", "featurePath"],
|
|
1809
|
+
button: { text: "Get started", link: "/institutes{{featurePath}}" },
|
|
1810
|
+
secondaryButton: { text: "Pick a different term", link: "/plan/{{planCode}}" },
|
|
1811
|
+
type: "engagement",
|
|
1812
|
+
name: "Reminder: day 7 (plan feature)",
|
|
1813
|
+
recipient: "staff",
|
|
1814
|
+
group: "Reminders",
|
|
1815
|
+
},
|
|
1816
|
+
engagementReminderDay21: {
|
|
1817
|
+
product: "admin",
|
|
1818
|
+
description: "Three weeks after any onboarding email, if the step still isn't done. Offers a call.",
|
|
1819
|
+
params: [...engagementEmailParams, "featureName", "featureSentence", "featurePath"],
|
|
1820
|
+
button: { text: "Get started", link: "/institutes{{featurePath}}" },
|
|
1821
|
+
type: "engagement",
|
|
1822
|
+
name: "Reminder: day 21",
|
|
1823
|
+
recipient: "staff",
|
|
1824
|
+
group: "Reminders",
|
|
1825
|
+
},
|
|
1826
|
+
engagementReminderDay21Plan: {
|
|
1827
|
+
product: "admin",
|
|
1828
|
+
description: "Day 21 reminder for a feature on the plan board: do it now or pick a term.",
|
|
1829
|
+
params: [...engagementEmailParams, "featureName", "featureSentence", "featurePath"],
|
|
1830
|
+
button: { text: "Get started", link: "/institutes{{featurePath}}" },
|
|
1831
|
+
secondaryButton: { text: "Pick a different term", link: "/plan/{{planCode}}" },
|
|
1832
|
+
type: "engagement",
|
|
1833
|
+
name: "Reminder: day 21 (plan feature)",
|
|
1834
|
+
recipient: "staff",
|
|
1835
|
+
group: "Reminders",
|
|
1836
|
+
},
|
|
1837
|
+
engagementRenewalPrice: {
|
|
1838
|
+
product: "admin",
|
|
1839
|
+
description: "Gives next year's price in time for the school's budget.",
|
|
1840
|
+
params: [...engagementEmailParams, "renewalDate", "quote"],
|
|
1841
|
+
button: { text: "See plan and invoices", link: "/institutes/organisation/billing" },
|
|
1842
|
+
type: "engagement",
|
|
1843
|
+
name: "Next year's price",
|
|
1844
|
+
recipient: "staff",
|
|
1845
|
+
group: "Renewals",
|
|
1846
|
+
},
|
|
1847
|
+
engagementRenewalReview: {
|
|
1848
|
+
product: "admin",
|
|
1849
|
+
description: "Before the summer: thanks the school and points to the impact report.",
|
|
1850
|
+
params: [...engagementEmailParams],
|
|
1851
|
+
button: { text: "Get your impact report", link: "/institutes/organisation/overview" },
|
|
1852
|
+
type: "engagement",
|
|
1853
|
+
name: "Year in review",
|
|
1854
|
+
recipient: "staff",
|
|
1855
|
+
group: "Renewals",
|
|
1856
|
+
},
|
|
1857
|
+
engagementRenewalDue: {
|
|
1858
|
+
product: "admin",
|
|
1859
|
+
description: "60 days before renewal: the date and next year's price.",
|
|
1860
|
+
params: [...engagementEmailParams, "renewalDate", "quote"],
|
|
1861
|
+
button: { text: "See your plan", link: "/institutes/organisation/billing" },
|
|
1862
|
+
type: "engagement",
|
|
1863
|
+
name: "60 days out",
|
|
1864
|
+
recipient: "staff",
|
|
1865
|
+
group: "Renewals",
|
|
1866
|
+
},
|
|
1867
|
+
engagementRenewalInvoice: {
|
|
1868
|
+
product: "admin",
|
|
1869
|
+
description: "Asks whether the renewal invoice needs a purchase order number.",
|
|
1870
|
+
params: [...engagementEmailParams, "renewalDate", "quote"],
|
|
1871
|
+
button: { text: "See your invoices", link: "/institutes/organisation/billing" },
|
|
1872
|
+
type: "engagement",
|
|
1873
|
+
name: "Invoice or PO",
|
|
1874
|
+
recipient: "staff",
|
|
1875
|
+
group: "Renewals",
|
|
1876
|
+
},
|
|
1877
|
+
engagementRenewalThanks: {
|
|
1878
|
+
product: "admin",
|
|
1879
|
+
description: "Sent once the school has renewed.",
|
|
1880
|
+
params: [...engagementEmailParams],
|
|
1881
|
+
button: { text: "Open CareerThread", link: "/institutes/home" },
|
|
1882
|
+
type: "engagement",
|
|
1883
|
+
name: "Thanks for renewing",
|
|
1884
|
+
recipient: "staff",
|
|
1885
|
+
group: "Renewals",
|
|
1886
|
+
},
|
|
1642
1887
|
};
|
|
1643
1888
|
// Whether a resource tagged with a product belongs to a product this organisation has. Untagged, or no product info, shows.
|
|
1644
1889
|
function productTagAvailable(tag, products) {
|
|
@@ -1656,7 +1901,11 @@ function emailTemplateAvailable(templateKey, products) {
|
|
|
1656
1901
|
// A saved template whose key has since been removed from emailTemplates is never sent, so hide it.
|
|
1657
1902
|
if (templateKey && !exports.emailTemplates[templateKey])
|
|
1658
1903
|
return false;
|
|
1659
|
-
|
|
1904
|
+
const product = templateKey ? exports.emailTemplates[templateKey].product : undefined;
|
|
1905
|
+
// CareerThread's own emails: only when there's no product info, which is an admin looking.
|
|
1906
|
+
if (product === "admin")
|
|
1907
|
+
return !products;
|
|
1908
|
+
return productTagAvailable(product, products);
|
|
1660
1909
|
}
|
|
1661
1910
|
exports.productTagLabels = {
|
|
1662
1911
|
wex: "Work experience",
|
|
@@ -1670,6 +1919,10 @@ exports.productTagLabels = {
|
|
|
1670
1919
|
alumni: "Alumni",
|
|
1671
1920
|
hub: "Careers hub",
|
|
1672
1921
|
};
|
|
1922
|
+
exports.emailTemplateProductLabels = {
|
|
1923
|
+
...exports.productTagLabels,
|
|
1924
|
+
admin: "CareerThread admin",
|
|
1925
|
+
};
|
|
1673
1926
|
// Example values for previewing email templates, so customers see a filled-in email
|
|
1674
1927
|
// rather than {{placeholders}}. Shared values first, then per-template overrides where
|
|
1675
1928
|
// the same param means something different.
|