Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions backend/cosmetology-app/bin/run_python_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
'lambdas/python/disaster-recovery',
'lambdas/python/migration',
'lambdas/python/provider-data-v1',
'lambdas/python/search',
'lambdas/python/staff-user-pre-token',
'lambdas/python/staff-users',
'.', # CDK tests
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2533,7 +2533,6 @@
"jurisdictionAdverseActionsNotificationEmails",
"jurisdictionName",
"jurisdictionOperationsTeamEmails",
"jurisdictionSummaryReportNotificationEmails",
"licenseeRegistrationEnabled",
"postalAbbreviation"
],
Expand Down Expand Up @@ -2573,14 +2572,6 @@
"jurisdictionName": {
"type": "string",
"description": "The name of the jurisdiction"
},
"jurisdictionSummaryReportNotificationEmails": {
"type": "array",
"description": "List of email addresses for summary report notifications",
"items": {
"type": "string",
"format": "email"
}
}
}
},
Expand Down Expand Up @@ -2745,7 +2736,6 @@
"required": [
"jurisdictionAdverseActionsNotificationEmails",
"jurisdictionOperationsTeamEmails",
"jurisdictionSummaryReportNotificationEmails",
"licenseeRegistrationEnabled"
],
"type": "object",
Expand Down Expand Up @@ -2775,17 +2765,6 @@
"licenseeRegistrationEnabled": {
"type": "boolean",
"description": "Denotes whether licensee registration is enabled"
},
"jurisdictionSummaryReportNotificationEmails": {
"maxItems": 10,
"minItems": 1,
"uniqueItems": true,
"type": "array",
"description": "List of email addresses for summary report notifications",
"items": {
"type": "string",
"format": "email"
}
}
},
"additionalProperties": false
Expand Down Expand Up @@ -4443,7 +4422,6 @@
"compactAdverseActionsNotificationEmails",
"compactName",
"compactOperationsTeamEmails",
"compactSummaryReportNotificationEmails",
"configuredStates",
"licenseeRegistrationEnabled"
],
Expand Down Expand Up @@ -4482,14 +4460,6 @@
}
}
},
"compactSummaryReportNotificationEmails": {
"type": "array",
"description": "List of email addresses for summary report notifications",
"items": {
"type": "string",
"format": "email"
}
},
"compactAdverseActionsNotificationEmails": {
"type": "array",
"description": "List of email addresses for adverse actions notifications",
Expand Down Expand Up @@ -4524,7 +4494,6 @@
"required": [
"compactAdverseActionsNotificationEmails",
"compactOperationsTeamEmails",
"compactSummaryReportNotificationEmails",
"configuredStates",
"licenseeRegistrationEnabled"
],
Expand Down Expand Up @@ -4564,17 +4533,6 @@
"additionalProperties": false
}
},
"compactSummaryReportNotificationEmails": {
"maxItems": 10,
"minItems": 1,
"uniqueItems": true,
"type": "array",
"description": "List of email addresses for summary report notifications",
"items": {
"type": "string",
"format": "email"
}
},
"compactAdverseActionsNotificationEmails": {
"maxItems": 10,
"minItems": 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@
"response": [
{
"_postman_previewlanguage": "json",
"body": "{\n \"compactAbbr\": \"<string>\",\n \"compactAdverseActionsNotificationEmails\": [\n \"<email>\",\n \"<email>\"\n ],\n \"compactName\": \"<string>\",\n \"compactOperationsTeamEmails\": [\n \"<email>\",\n \"<email>\"\n ],\n \"compactSummaryReportNotificationEmails\": [\n \"<email>\",\n \"<email>\"\n ],\n \"configuredStates\": [\n {\n \"isLive\": \"<boolean>\",\n \"postalAbbreviation\": \"wa\"\n },\n {\n \"isLive\": \"<boolean>\",\n \"postalAbbreviation\": \"va\"\n }\n ],\n \"licenseeRegistrationEnabled\": \"<boolean>\"\n}",
"body": "{\n \"compactAbbr\": \"<string>\",\n \"compactAdverseActionsNotificationEmails\": [\n \"<email>\",\n \"<email>\"\n ],\n \"compactName\": \"<string>\",\n \"compactOperationsTeamEmails\": [\n \"<email>\",\n \"<email>\"\n ],\n \"configuredStates\": [\n {\n \"isLive\": \"<boolean>\",\n \"postalAbbreviation\": \"wa\"\n },\n {\n \"isLive\": \"<boolean>\",\n \"postalAbbreviation\": \"va\"\n }\n ],\n \"licenseeRegistrationEnabled\": \"<boolean>\"\n}",
"code": 200,
"cookie": [],
"header": [
Expand Down Expand Up @@ -505,7 +505,7 @@
"language": "json"
}
},
"raw": "{\n \"compactAdverseActionsNotificationEmails\": [\n \"<email>\"\n ],\n \"compactOperationsTeamEmails\": [\n \"<email>\"\n ],\n \"compactSummaryReportNotificationEmails\": [\n \"<email>\"\n ],\n \"configuredStates\": [\n {\n \"isLive\": \"<boolean>\",\n \"postalAbbreviation\": \"wa\"\n },\n {\n \"isLive\": \"<boolean>\",\n \"postalAbbreviation\": \"ks\"\n }\n ],\n \"licenseeRegistrationEnabled\": \"<boolean>\"\n}"
"raw": "{\n \"compactAdverseActionsNotificationEmails\": [\n \"<email>\"\n ],\n \"compactOperationsTeamEmails\": [\n \"<email>\"\n ],\n \"configuredStates\": [\n {\n \"isLive\": \"<boolean>\",\n \"postalAbbreviation\": \"wa\"\n },\n {\n \"isLive\": \"<boolean>\",\n \"postalAbbreviation\": \"ks\"\n }\n ],\n \"licenseeRegistrationEnabled\": \"<boolean>\"\n}"
},
"description": {},
"header": [
Expand Down Expand Up @@ -567,7 +567,7 @@
"language": "json"
}
},
"raw": "{\n \"compactAdverseActionsNotificationEmails\": [\n \"<email>\"\n ],\n \"compactOperationsTeamEmails\": [\n \"<email>\"\n ],\n \"compactSummaryReportNotificationEmails\": [\n \"<email>\"\n ],\n \"configuredStates\": [\n {\n \"isLive\": \"<boolean>\",\n \"postalAbbreviation\": \"wa\"\n },\n {\n \"isLive\": \"<boolean>\",\n \"postalAbbreviation\": \"ks\"\n }\n ],\n \"licenseeRegistrationEnabled\": \"<boolean>\"\n}"
"raw": "{\n \"compactAdverseActionsNotificationEmails\": [\n \"<email>\"\n ],\n \"compactOperationsTeamEmails\": [\n \"<email>\"\n ],\n \"configuredStates\": [\n {\n \"isLive\": \"<boolean>\",\n \"postalAbbreviation\": \"wa\"\n },\n {\n \"isLive\": \"<boolean>\",\n \"postalAbbreviation\": \"ks\"\n }\n ],\n \"licenseeRegistrationEnabled\": \"<boolean>\"\n}"
},
"header": [
{
Expand Down Expand Up @@ -760,7 +760,7 @@
"response": [
{
"_postman_previewlanguage": "json",
"body": "{\n \"compact\": \"cosm\",\n \"jurisdictionAdverseActionsNotificationEmails\": [\n \"<email>\",\n \"<email>\"\n ],\n \"jurisdictionName\": \"<string>\",\n \"jurisdictionOperationsTeamEmails\": [\n \"<email>\",\n \"<email>\"\n ],\n \"jurisdictionSummaryReportNotificationEmails\": [\n \"<email>\",\n \"<email>\"\n ],\n \"licenseeRegistrationEnabled\": \"<boolean>\",\n \"postalAbbreviation\": \"<string>\"\n}",
"body": "{\n \"compact\": \"cosm\",\n \"jurisdictionAdverseActionsNotificationEmails\": [\n \"<email>\",\n \"<email>\"\n ],\n \"jurisdictionName\": \"<string>\",\n \"jurisdictionOperationsTeamEmails\": [\n \"<email>\",\n \"<email>\"\n ],\n \"licenseeRegistrationEnabled\": \"<boolean>\",\n \"postalAbbreviation\": \"<string>\"\n}",
"code": 200,
"cookie": [],
"header": [
Expand Down Expand Up @@ -823,7 +823,7 @@
"language": "json"
}
},
"raw": "{\n \"jurisdictionAdverseActionsNotificationEmails\": [\n \"<email>\"\n ],\n \"jurisdictionOperationsTeamEmails\": [\n \"<email>\"\n ],\n \"jurisdictionSummaryReportNotificationEmails\": [\n \"<email>\"\n ],\n \"licenseeRegistrationEnabled\": \"<boolean>\"\n}"
"raw": "{\n \"jurisdictionAdverseActionsNotificationEmails\": [\n \"<email>\"\n ],\n \"jurisdictionOperationsTeamEmails\": [\n \"<email>\"\n ],\n \"licenseeRegistrationEnabled\": \"<boolean>\"\n}"
},
"description": {},
"header": [
Expand Down Expand Up @@ -897,7 +897,7 @@
"language": "json"
}
},
"raw": "{\n \"jurisdictionAdverseActionsNotificationEmails\": [\n \"<email>\"\n ],\n \"jurisdictionOperationsTeamEmails\": [\n \"<email>\"\n ],\n \"jurisdictionSummaryReportNotificationEmails\": [\n \"<email>\"\n ],\n \"licenseeRegistrationEnabled\": \"<boolean>\"\n}"
"raw": "{\n \"jurisdictionAdverseActionsNotificationEmails\": [\n \"<email>\"\n ],\n \"jurisdictionOperationsTeamEmails\": [\n \"<email>\"\n ],\n \"licenseeRegistrationEnabled\": \"<boolean>\"\n}"
},
"header": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@ The lambda is intended to be invoked directly, rather than through an API endpoi
recipientType: // must be one of the following
| 'COMPACT_OPERATIONS_TEAM' // compactOperationsTeamEmails
| 'COMPACT_ADVERSE_ACTIONS' // compactAdverseActionsNotificationEmails
| 'COMPACT_SUMMARY_REPORT' // compactSummaryReportNotificationEmails
| 'JURISDICTION_OPERATIONS_TEAM' // jurisdictionOperationsTeamEmails
| 'JURISDICTION_ADVERSE_ACTIONS' // jurisdictionAdverseActionsNotificationEmails
| 'JURISDICTION_SUMMARY_REPORT' // jurisdictionSummaryReportNotificationEmails
| 'SPECIFIC'; // specificEmails provided in payload
compact: string; // Compact identifier
jurisdiction?: string; // Optional jurisdiction identifier, must be specified if sending to a Jurisdiction based email list
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export interface Compact {
compactAbbr: string;
compactName: string;
compactOperationsTeamEmails: string[];
compactSummaryReportNotificationEmails: string[];
dateOfUpdate: string;
type: string;
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
export type RecipientType =
| 'COMPACT_OPERATIONS_TEAM'
| 'COMPACT_ADVERSE_ACTIONS'
| 'COMPACT_SUMMARY_REPORT'
| 'JURISDICTION_OPERATIONS_TEAM'
| 'JURISDICTION_ADVERSE_ACTIONS'
| 'JURISDICTION_SUMMARY_REPORT'
| 'SPECIFIC';

export interface EmailNotificationEvent {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@ export interface IJurisdiction {
compact: string;
jurisdictionOperationsTeamEmails: string[];
jurisdictionAdverseActionsNotificationEmails: string[];
jurisdictionSummaryReportNotificationEmails: string[];
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ const SAMPLE_COMPACT_CONFIGURATION = {
'compactAbbr': { S: 'cosm' },
'compactName': { S: 'Audiology and Speech Language Pathology' },
'compactOperationsTeamEmails': { L: [{ S: 'operations@example.com' }]},
'compactSummaryReportNotificationEmails': { L: [{ S: 'summary@example.com' }]},
'dateOfUpdate': { S: '2024-12-10T19:27:28+00:00' },
'type': { S: 'compact' }
};
Expand All @@ -42,7 +41,6 @@ const SAMPLE_JURISDICTION_CONFIGURATION = {
'pk': { S: 'cosm#CONFIGURATION' },
'sk': { S: 'cosm#JURISDICTION#oh' },
'jurisdictionName': { S: 'Ohio' },
'jurisdictionSummaryReportNotificationEmails': { L: [{ S: 'ohio@example.com' }]},
'type': { S: 'jurisdiction' }
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ const SAMPLE_COMPACT_CONFIGURATION = {
'compactAbbr': { S: 'cosm' },
'compactName': { S: 'Audiology and Speech Language Pathology' },
'compactOperationsTeamEmails': { L: [{ S: 'operations@example.com' }]},
'compactSummaryReportNotificationEmails': { L: [{ S: 'summary@example.com' }]},
'dateOfUpdate': { S: '2024-12-10T19:27:28+00:00' },
'type': { S: 'compact' }
};
Expand Down Expand Up @@ -77,7 +76,6 @@ describe('CompactConfigurationClient', () => {
compactAbbr: 'cosm',
compactName: 'Audiology and Speech Language Pathology',
compactOperationsTeamEmails: ['operations@example.com'],
compactSummaryReportNotificationEmails: ['summary@example.com'],
dateOfUpdate: '2024-12-10T19:27:28+00:00',
type: 'compact'
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ const SAMPLE_COMPACT_CONFIG: Compact = {
compactAbbr: 'cosm',
compactName: 'Audiology and Speech Language Pathology',
compactOperationsTeamEmails: ['operations@example.com'],
compactSummaryReportNotificationEmails: ['summary@example.com'],
dateOfUpdate: '2024-12-10T19:27:28+00:00',
type: 'compact'
};
Expand All @@ -34,8 +33,7 @@ const SAMPLE_JURISDICTION_CONFIG = {
postalAbbreviation: 'oh',
compact: 'cosm',
jurisdictionOperationsTeamEmails: ['oh-ops@example.com'],
jurisdictionAdverseActionsNotificationEmails: ['oh-adverse@example.com'],
jurisdictionSummaryReportNotificationEmails: ['oh-summary@example.com']
jurisdictionAdverseActionsNotificationEmails: ['oh-adverse@example.com']
};

const asSESClient = (mock: ReturnType<typeof mockClient>) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ const SAMPLE_COMPACT_CONFIG: Compact = {
compactAbbr: 'cosm',
compactName: 'Audiology and Speech Language Pathology',
compactOperationsTeamEmails: ['operations@example.com'],
compactSummaryReportNotificationEmails: ['summary@example.com'],
dateOfUpdate: '2024-12-10T19:27:28+00:00',
type: 'compact'
};
Expand All @@ -34,8 +33,7 @@ const SAMPLE_JURISDICTION_CONFIG = {
postalAbbreviation: 'oh',
compact: 'cosm',
jurisdictionOperationsTeamEmails: ['oh-ops@example.com'],
jurisdictionAdverseActionsNotificationEmails: ['oh-adverse@example.com'],
jurisdictionSummaryReportNotificationEmails: ['oh-summary@example.com']
jurisdictionAdverseActionsNotificationEmails: ['oh-adverse@example.com']
};

const asSESClient = (mock: ReturnType<typeof mockClient>) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ const SAMPLE_JURISDICTION_ITEMS = [
}
]
},
'jurisdictionSummaryReportNotificationEmails': {
'L': []
},
'jurisprudenceRequirements': {
'M': {
'required': {
Expand Down Expand Up @@ -77,9 +74,6 @@ const SAMPLE_JURISDICTION_ITEMS = [
}
]
},
'jurisdictionSummaryReportNotificationEmails': {
'L': []
},
'jurisprudenceRequirements': {
'M': {
'required': {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,9 +256,6 @@ export const SAMPLE_JURISDICTION_CONFIGURATION = {
}
]
},
'jurisdictionSummaryReportNotificationEmails': {
'L': []
},
'jurisprudenceRequirements': {
'M': {
'required': {
Expand All @@ -283,7 +280,6 @@ export const SAMPLE_UNMARSHALLED_JURISDICTION_CONFIGURATION = {

'jurisdictionName': 'Ohio',
'jurisdictionOperationsTeamEmails': [ 'justin@inspiringapps.com' ],
'jurisdictionSummaryReportNotificationEmails': [],
'jurisprudenceRequirements': {
'required': true
},
Expand All @@ -304,7 +300,6 @@ export const SAMPLE_COMPACT_CONFIGURATION = {
'compactAbbr': { 'S': 'cosm' },
'compactName': { 'S': 'Audiology and Speech Language Pathology' },
'compactOperationsTeamEmails': { 'L': [{ 'S': 'compact-ops@example.com' }]},
'compactSummaryReportNotificationEmails': { 'L': [{ 'S': 'summary@example.com' }]},
'dateOfUpdate': { 'S': '2024-12-10T19:27:28+00:00' },
'type': { 'S': 'compact' }
};
Expand All @@ -320,7 +315,6 @@ export const SAMPLE_UNMARSHALLED_COMPACT_CONFIGURATION = {
'compactAbbr': 'cosm',
'compactName': 'Audiology and Speech Language Pathology',
'compactOperationsTeamEmails': ['compact-ops@example.com'],
'compactSummaryReportNotificationEmails': ['summary@example.com'],
'dateOfUpdate': '2024-12-10T19:27:28+00:00',
'type': 'compact'
};
Loading
Loading