@defra/forms-model 4.0.2 → 4.0.4
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/dist/module/form/form-audit/enums.js +12 -1
- package/dist/module/form/form-audit/enums.js.map +1 -1
- package/dist/module/form/form-audit/index.js +20 -0
- package/dist/module/form/form-audit/index.js.map +1 -1
- package/dist/module/form/form-audit/types.js.map +1 -1
- package/dist/module/form/form-metrics/enums.js +19 -0
- package/dist/module/form/form-metrics/enums.js.map +1 -1
- package/dist/module/form/form-metrics/types.js.map +1 -1
- package/dist/types/form/form-audit/enums.d.ts +12 -2
- package/dist/types/form/form-audit/enums.d.ts.map +1 -1
- package/dist/types/form/form-audit/index.d.ts +2 -1
- package/dist/types/form/form-audit/index.d.ts.map +1 -1
- package/dist/types/form/form-audit/types.d.ts +61 -2
- package/dist/types/form/form-audit/types.d.ts.map +1 -1
- package/dist/types/form/form-metrics/enums.d.ts +14 -1
- package/dist/types/form/form-metrics/enums.d.ts.map +1 -1
- package/dist/types/form/form-metrics/types.d.ts +24 -1
- package/dist/types/form/form-metrics/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/form/form-audit/enums.ts +15 -3
- package/src/form/form-audit/index.ts +36 -1
- package/src/form/form-audit/types.ts +80 -0
- package/src/form/form-metrics/enums.ts +22 -1
- package/src/form/form-metrics/types.ts +31 -1
|
@@ -14,6 +14,7 @@ export let AuditEventMessageSource = /*#__PURE__*/function (AuditEventMessageSou
|
|
|
14
14
|
AuditEventMessageSource["FORMS_DESIGNER"] = "FORMS_DESIGNER";
|
|
15
15
|
AuditEventMessageSource["ENTITLEMENT"] = "ENTITLEMENT";
|
|
16
16
|
AuditEventMessageSource["AUTHENTICATION"] = "AUTHENTICATION";
|
|
17
|
+
AuditEventMessageSource["FORMS_IDENTITY"] = "FORMS_IDENTITY";
|
|
17
18
|
return AuditEventMessageSource;
|
|
18
19
|
}({});
|
|
19
20
|
export let AuditEventMessageType = /*#__PURE__*/function (AuditEventMessageType) {
|
|
@@ -52,13 +53,23 @@ export let AuditEventMessageType = /*#__PURE__*/function (AuditEventMessageType)
|
|
|
52
53
|
AuditEventMessageType["ENTITLEMENT_CREATED"] = "ENTITLEMENT_CREATED";
|
|
53
54
|
AuditEventMessageType["ENTITLEMENT_UPDATED"] = "ENTITLEMENT_UPDATED";
|
|
54
55
|
AuditEventMessageType["ENTITLEMENT_DELETED"] = "ENTITLEMENT_DELETED";
|
|
55
|
-
// AUTHENTICATION message types
|
|
56
|
+
// AUTHENTICATION message types - for forms-designer
|
|
56
57
|
AuditEventMessageType["AUTHENTICATION_LOGIN"] = "AUTHENTICATION_LOGIN";
|
|
57
58
|
AuditEventMessageType["AUTHENTICATION_LOGOUT_MANUAL"] = "AUTHENTICATION_LOGOUT_MANUAL";
|
|
58
59
|
AuditEventMessageType["AUTHENTICATION_LOGOUT_AUTO"] = "AUTHENTICATION_LOGOUT_AUTO";
|
|
59
60
|
AuditEventMessageType["AUTHENTICATION_LOGOUT_DIFFERENT_DEVICE"] = "AUTHENTICATION_LOGOUT_DIFFERENT_DEVICE";
|
|
60
61
|
// Dead-letter queue types
|
|
61
62
|
AuditEventMessageType["DLQ_ACTION"] = "DLQ_ACTION";
|
|
63
|
+
// IDENTITY message types - for forms-identity-api
|
|
64
|
+
AuditEventMessageType["IDENTITY_SIGN_IN_SUCCESSFUL"] = "IDENTITY_SIGN_IN_SUCCESSFUL";
|
|
65
|
+
AuditEventMessageType["IDENTITY_SIGN_OUT"] = "IDENTITY_SIGN_OUT";
|
|
66
|
+
AuditEventMessageType["IDENTITY_REGISTRATION"] = "IDENTITY_REGISTRATION";
|
|
67
|
+
AuditEventMessageType["IDENTITY_TOO_MANY_OTPS_REQUESTED"] = "IDENTITY_TOO_MANY_OTPS_REQUESTED";
|
|
68
|
+
AuditEventMessageType["IDENTITY_INCORRECT_CODE_ENTERED"] = "IDENTITY_INCORRECT_CODE_ENTERED";
|
|
69
|
+
AuditEventMessageType["IDENTITY_INCORRECT_CODE_LOCKOUT"] = "IDENTITY_INCORRECT_CODE_LOCKOUT";
|
|
70
|
+
AuditEventMessageType["IDENTITY_ACCOUNT_DELETION"] = "IDENTITY_ACCOUNT_DELETION";
|
|
71
|
+
AuditEventMessageType["IDENTITY_EMAIL_ADDRESS_UPDATED"] = "IDENTITY_EMAIL_ADDRESS_UPDATED";
|
|
72
|
+
AuditEventMessageType["IDENTITY_PHONE_NUMBER_UPDATED"] = "IDENTITY_PHONE_NUMBER_UPDATED";
|
|
62
73
|
return AuditEventMessageType;
|
|
63
74
|
}({});
|
|
64
75
|
export let FormDefinitionRequestType = /*#__PURE__*/function (FormDefinitionRequestType) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.js","names":["AuditEventMessageSchemaVersion","AuditEventMessageCategory","AuditEventMessageSource","AuditEventMessageType","FormDefinitionRequestType"],"sources":["../../../../src/form/form-audit/enums.ts"],"sourcesContent":["export enum AuditEventMessageSchemaVersion {\n V1 = 1\n}\n\nexport enum AuditEventMessageCategory {\n FORM = 'FORM',\n ENTITLEMENT = 'ENTITLEMENT',\n AUTHENTICATION = 'AUTHENTICATION',\n OPERATIONS = 'OPERATIONS'\n}\n\nexport enum AuditEventMessageSource {\n FORMS_MANAGER = 'FORMS_MANAGER',\n FORMS_DESIGNER = 'FORMS_DESIGNER',\n ENTITLEMENT = 'ENTITLEMENT',\n AUTHENTICATION = 'AUTHENTICATION'\n}\n\nexport enum AuditEventMessageType {\n // FORM message types\n FORM_CREATED = 'FORM_CREATED',\n FORM_TITLE_UPDATED = 'FORM_TITLE_UPDATED',\n FORM_ORGANISATION_UPDATED = 'FORM_ORGANISATION_UPDATED',\n FORM_TEAM_NAME_UPDATED = 'FORM_TEAM_NAME_UPDATED',\n FORM_TEAM_EMAIL_UPDATED = 'FORM_TEAM_EMAIL_UPDATED',\n FORM_SUPPORT_CONTACT_UPDATED = 'FORM_SUPPORT_CONTACT_UPDATED',\n FORM_SUPPORT_PHONE_UPDATED = 'FORM_SUPPORT_PHONE_UPDATED',\n FORM_SUPPORT_EMAIL_UPDATED = 'FORM_SUPPORT_EMAIL_UPDATED',\n FORM_SUPPORT_ONLINE_UPDATED = 'FORM_SUPPORT_ONLINE_UPDATED',\n FORM_PRIVACY_NOTICE_UPDATED = 'FORM_PRIVACY_NOTICE_UPDATED',\n FORM_TERMS_AND_CONDITIONS_AGREED = 'FORM_TERMS_AND_CONDITIONS_AGREED',\n FORM_NOTIFICATION_EMAIL_UPDATED = 'FORM_NOTIFICATION_EMAIL_UPDATED',\n FORM_SUBMISSION_GUIDANCE_UPDATED = 'FORM_SUBMISSION_GUIDANCE_UPDATED',\n FORM_JSON_UPLOADED = 'FORM_JSON_UPLOADED',\n FORM_JSON_DOWNLOADED = 'FORM_JSON_DOWNLOADED',\n FORM_FILE_DOWNLOAD_SUCCESS = 'FORM_FILE_DOWNLOAD_SUCCESS',\n FORM_FILE_DOWNLOAD_FAILURE = 'FORM_FILE_DOWNLOAD_FAILURE',\n FORM_DRAFT_CREATED_FROM_LIVE = 'FORM_DRAFT_CREATED_FROM_LIVE',\n FORM_LIVE_CREATED_FROM_DRAFT = 'FORM_LIVE_CREATED_FROM_DRAFT',\n FORM_DRAFT_DELETED = 'FORM_DRAFT_DELETED',\n FORM_OFFLINE_UPDATED = 'FORM_OFFLINE_UPDATED',\n FORM_MIGRATED = 'FORM_MIGRATED',\n FORM_UPDATED = 'FORM_UPDATED',\n FORM_SECRET_DELETED = 'FORM_SECRET_DELETED',\n FORM_SECRET_SAVED = 'FORM_SECRET_SAVED',\n FORM_SUBMISSION_EXCEL_REQUESTED = 'FORM_SUBMISSION_EXCEL_REQUESTED',\n FORM_CSAT_EXCEL_REQUESTED = 'FORM_CSAT_EXCEL_REQUESTED',\n FORMS_BACKUP_REQUESTED = 'FORMS_BACKUP_REQUESTED',\n PLATFORM_CSAT_EXCEL_REQUESTED = 'PLATFORM_CSAT_EXCEL_REQUESTED',\n PLATFORM_METRICS_DOWNLOAD_REQUESTED = 'PLATFORM_METRICS_DOWNLOAD_REQUESTED',\n\n // ENTITLEMENT message types\n ENTITLEMENT_CREATED = 'ENTITLEMENT_CREATED',\n ENTITLEMENT_UPDATED = 'ENTITLEMENT_UPDATED',\n ENTITLEMENT_DELETED = 'ENTITLEMENT_DELETED',\n\n // AUTHENTICATION message types\n AUTHENTICATION_LOGIN = 'AUTHENTICATION_LOGIN',\n AUTHENTICATION_LOGOUT_MANUAL = 'AUTHENTICATION_LOGOUT_MANUAL',\n AUTHENTICATION_LOGOUT_AUTO = 'AUTHENTICATION_LOGOUT_AUTO',\n AUTHENTICATION_LOGOUT_DIFFERENT_DEVICE = 'AUTHENTICATION_LOGOUT_DIFFERENT_DEVICE',\n\n // Dead-letter queue types\n DLQ_ACTION = 'DLQ_ACTION'\n}\n\nexport enum FormDefinitionRequestType {\n REPLACE_DRAFT = 'REPLACE_DRAFT',\n CREATE_COMPONENT = 'CREATE_COMPONENT',\n UPDATE_COMPONENT = 'UPDATE_COMPONENT',\n DELETE_COMPONENT = 'DELETE_COMPONENT',\n CREATE_CONDITION = 'CREATE_CONDITION',\n UPDATE_CONDITION = 'UPDATE_CONDITION',\n DELETE_CONDITION = 'DELETE_CONDITION',\n REORDER_PAGES = 'REORDER_PAGES',\n REORDER_COMPONENTS = 'REORDER_COMPONENTS',\n REORDER_SECTIONS = 'REORDER_SECTIONS',\n CREATE_LIST = 'CREATE_LIST',\n UPDATE_LIST = 'UPDATE_LIST',\n DELETE_LIST = 'DELETE_LIST',\n CREATE_PAGE = 'CREATE_PAGE',\n UPDATE_PAGE_FIELDS = 'UPDATE_PAGE_FIELDS',\n DELETE_PAGE = 'DELETE_PAGE',\n REPOSITION_SUMMARY = 'REPOSITION_SUMMARY',\n CREATE_SECTION = 'CREATE_SECTION',\n DELETE_SECTION = 'DELETE_SECTION',\n RENAME_SECTION = 'RENAME_SECTION',\n ASSIGN_SECTIONS = 'ASSIGN_SECTIONS',\n UNASSIGN_SECTIONS = 'UNASSIGN_SECTIONS',\n UPDATE_OPTION = 'UPDATE_OPTION'\n}\n"],"mappings":"AAAA,WAAYA,8BAA8B,0BAA9BA,8BAA8B;EAA9BA,8BAA8B,CAA9BA,8BAA8B;EAAA,OAA9BA,8BAA8B;AAAA;AAI1C,WAAYC,yBAAyB,0BAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAA,OAAzBA,yBAAyB;AAAA;AAOrC,WAAYC,uBAAuB,0BAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAA,OAAvBA,uBAAuB;AAAA;
|
|
1
|
+
{"version":3,"file":"enums.js","names":["AuditEventMessageSchemaVersion","AuditEventMessageCategory","AuditEventMessageSource","AuditEventMessageType","FormDefinitionRequestType"],"sources":["../../../../src/form/form-audit/enums.ts"],"sourcesContent":["export enum AuditEventMessageSchemaVersion {\n V1 = 1\n}\n\nexport enum AuditEventMessageCategory {\n FORM = 'FORM',\n ENTITLEMENT = 'ENTITLEMENT',\n AUTHENTICATION = 'AUTHENTICATION',\n OPERATIONS = 'OPERATIONS'\n}\n\nexport enum AuditEventMessageSource {\n FORMS_MANAGER = 'FORMS_MANAGER',\n FORMS_DESIGNER = 'FORMS_DESIGNER',\n ENTITLEMENT = 'ENTITLEMENT',\n AUTHENTICATION = 'AUTHENTICATION',\n FORMS_IDENTITY = 'FORMS_IDENTITY'\n}\n\nexport enum AuditEventMessageType {\n // FORM message types\n FORM_CREATED = 'FORM_CREATED',\n FORM_TITLE_UPDATED = 'FORM_TITLE_UPDATED',\n FORM_ORGANISATION_UPDATED = 'FORM_ORGANISATION_UPDATED',\n FORM_TEAM_NAME_UPDATED = 'FORM_TEAM_NAME_UPDATED',\n FORM_TEAM_EMAIL_UPDATED = 'FORM_TEAM_EMAIL_UPDATED',\n FORM_SUPPORT_CONTACT_UPDATED = 'FORM_SUPPORT_CONTACT_UPDATED',\n FORM_SUPPORT_PHONE_UPDATED = 'FORM_SUPPORT_PHONE_UPDATED',\n FORM_SUPPORT_EMAIL_UPDATED = 'FORM_SUPPORT_EMAIL_UPDATED',\n FORM_SUPPORT_ONLINE_UPDATED = 'FORM_SUPPORT_ONLINE_UPDATED',\n FORM_PRIVACY_NOTICE_UPDATED = 'FORM_PRIVACY_NOTICE_UPDATED',\n FORM_TERMS_AND_CONDITIONS_AGREED = 'FORM_TERMS_AND_CONDITIONS_AGREED',\n FORM_NOTIFICATION_EMAIL_UPDATED = 'FORM_NOTIFICATION_EMAIL_UPDATED',\n FORM_SUBMISSION_GUIDANCE_UPDATED = 'FORM_SUBMISSION_GUIDANCE_UPDATED',\n FORM_JSON_UPLOADED = 'FORM_JSON_UPLOADED',\n FORM_JSON_DOWNLOADED = 'FORM_JSON_DOWNLOADED',\n FORM_FILE_DOWNLOAD_SUCCESS = 'FORM_FILE_DOWNLOAD_SUCCESS',\n FORM_FILE_DOWNLOAD_FAILURE = 'FORM_FILE_DOWNLOAD_FAILURE',\n FORM_DRAFT_CREATED_FROM_LIVE = 'FORM_DRAFT_CREATED_FROM_LIVE',\n FORM_LIVE_CREATED_FROM_DRAFT = 'FORM_LIVE_CREATED_FROM_DRAFT',\n FORM_DRAFT_DELETED = 'FORM_DRAFT_DELETED',\n FORM_OFFLINE_UPDATED = 'FORM_OFFLINE_UPDATED',\n FORM_MIGRATED = 'FORM_MIGRATED',\n FORM_UPDATED = 'FORM_UPDATED',\n FORM_SECRET_DELETED = 'FORM_SECRET_DELETED',\n FORM_SECRET_SAVED = 'FORM_SECRET_SAVED',\n FORM_SUBMISSION_EXCEL_REQUESTED = 'FORM_SUBMISSION_EXCEL_REQUESTED',\n FORM_CSAT_EXCEL_REQUESTED = 'FORM_CSAT_EXCEL_REQUESTED',\n FORMS_BACKUP_REQUESTED = 'FORMS_BACKUP_REQUESTED',\n PLATFORM_CSAT_EXCEL_REQUESTED = 'PLATFORM_CSAT_EXCEL_REQUESTED',\n PLATFORM_METRICS_DOWNLOAD_REQUESTED = 'PLATFORM_METRICS_DOWNLOAD_REQUESTED',\n\n // ENTITLEMENT message types\n ENTITLEMENT_CREATED = 'ENTITLEMENT_CREATED',\n ENTITLEMENT_UPDATED = 'ENTITLEMENT_UPDATED',\n ENTITLEMENT_DELETED = 'ENTITLEMENT_DELETED',\n\n // AUTHENTICATION message types - for forms-designer\n AUTHENTICATION_LOGIN = 'AUTHENTICATION_LOGIN',\n AUTHENTICATION_LOGOUT_MANUAL = 'AUTHENTICATION_LOGOUT_MANUAL',\n AUTHENTICATION_LOGOUT_AUTO = 'AUTHENTICATION_LOGOUT_AUTO',\n AUTHENTICATION_LOGOUT_DIFFERENT_DEVICE = 'AUTHENTICATION_LOGOUT_DIFFERENT_DEVICE',\n\n // Dead-letter queue types\n DLQ_ACTION = 'DLQ_ACTION',\n\n // IDENTITY message types - for forms-identity-api\n IDENTITY_SIGN_IN_SUCCESSFUL = 'IDENTITY_SIGN_IN_SUCCESSFUL',\n IDENTITY_SIGN_OUT = 'IDENTITY_SIGN_OUT',\n IDENTITY_REGISTRATION = 'IDENTITY_REGISTRATION',\n IDENTITY_TOO_MANY_OTPS_REQUESTED = 'IDENTITY_TOO_MANY_OTPS_REQUESTED',\n IDENTITY_INCORRECT_CODE_ENTERED = 'IDENTITY_INCORRECT_CODE_ENTERED',\n IDENTITY_INCORRECT_CODE_LOCKOUT = 'IDENTITY_INCORRECT_CODE_LOCKOUT',\n IDENTITY_ACCOUNT_DELETION = 'IDENTITY_ACCOUNT_DELETION',\n IDENTITY_EMAIL_ADDRESS_UPDATED = 'IDENTITY_EMAIL_ADDRESS_UPDATED',\n IDENTITY_PHONE_NUMBER_UPDATED = 'IDENTITY_PHONE_NUMBER_UPDATED'\n}\n\nexport enum FormDefinitionRequestType {\n REPLACE_DRAFT = 'REPLACE_DRAFT',\n CREATE_COMPONENT = 'CREATE_COMPONENT',\n UPDATE_COMPONENT = 'UPDATE_COMPONENT',\n DELETE_COMPONENT = 'DELETE_COMPONENT',\n CREATE_CONDITION = 'CREATE_CONDITION',\n UPDATE_CONDITION = 'UPDATE_CONDITION',\n DELETE_CONDITION = 'DELETE_CONDITION',\n REORDER_PAGES = 'REORDER_PAGES',\n REORDER_COMPONENTS = 'REORDER_COMPONENTS',\n REORDER_SECTIONS = 'REORDER_SECTIONS',\n CREATE_LIST = 'CREATE_LIST',\n UPDATE_LIST = 'UPDATE_LIST',\n DELETE_LIST = 'DELETE_LIST',\n CREATE_PAGE = 'CREATE_PAGE',\n UPDATE_PAGE_FIELDS = 'UPDATE_PAGE_FIELDS',\n DELETE_PAGE = 'DELETE_PAGE',\n REPOSITION_SUMMARY = 'REPOSITION_SUMMARY',\n CREATE_SECTION = 'CREATE_SECTION',\n DELETE_SECTION = 'DELETE_SECTION',\n RENAME_SECTION = 'RENAME_SECTION',\n ASSIGN_SECTIONS = 'ASSIGN_SECTIONS',\n UNASSIGN_SECTIONS = 'UNASSIGN_SECTIONS',\n UPDATE_OPTION = 'UPDATE_OPTION'\n}\n"],"mappings":"AAAA,WAAYA,8BAA8B,0BAA9BA,8BAA8B;EAA9BA,8BAA8B,CAA9BA,8BAA8B;EAAA,OAA9BA,8BAA8B;AAAA;AAI1C,WAAYC,yBAAyB,0BAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAA,OAAzBA,yBAAyB;AAAA;AAOrC,WAAYC,uBAAuB,0BAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAA,OAAvBA,uBAAuB;AAAA;AAQnC,WAAYC,qBAAqB,0BAArBA,qBAAqB;EAC/B;EADUA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAiC/B;EAjCUA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAsC/B;EAtCUA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EA4C/B;EA5CUA,qBAAqB;EA+C/B;EA/CUA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAAA,OAArBA,qBAAqB;AAAA;AA2DjC,WAAYC,yBAAyB,0BAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAA,OAAzBA,yBAAyB;AAAA","ignoreList":[]}
|
|
@@ -137,6 +137,23 @@ export const auditUserSchema = Joi.object().keys({
|
|
|
137
137
|
id: Joi.string().required(),
|
|
138
138
|
displayName: Joi.string().required()
|
|
139
139
|
}).description('Schema for CREATED_BY audit event');
|
|
140
|
+
export const identityMessageData = Joi.object().keys({
|
|
141
|
+
// accountId may not always be available
|
|
142
|
+
accountId: Joi.string().optional(),
|
|
143
|
+
// Email address associated with the identity, if any, or the target for an OTP
|
|
144
|
+
email: Joi.string().optional(),
|
|
145
|
+
// Phone number associated with the identity, if any, or the target for an OTP
|
|
146
|
+
phone: Joi.string().optional(),
|
|
147
|
+
// Purpose of the identity interaction, if any
|
|
148
|
+
purpose: Joi.string().optional(),
|
|
149
|
+
// Unique interaction id
|
|
150
|
+
uid: Joi.string().optional(),
|
|
151
|
+
// Changed fields in the identity, if any have changed
|
|
152
|
+
changed: Joi.object({
|
|
153
|
+
old: Joi.string().required(),
|
|
154
|
+
new: Joi.string().required()
|
|
155
|
+
}).optional()
|
|
156
|
+
});
|
|
140
157
|
export function formChangesMessageData(schema) {
|
|
141
158
|
return formMessageDataBase.append({
|
|
142
159
|
changes: Joi.object().keys({
|
|
@@ -212,6 +229,9 @@ export const messageSchema = Joi.object().keys({
|
|
|
212
229
|
}, {
|
|
213
230
|
is: Joi.string().trim().valid(AuditEventMessageType.AUTHENTICATION_LOGIN, AuditEventMessageType.AUTHENTICATION_LOGOUT_MANUAL, AuditEventMessageType.AUTHENTICATION_LOGOUT_AUTO, AuditEventMessageType.AUTHENTICATION_LOGOUT_DIFFERENT_DEVICE),
|
|
214
231
|
then: authenticationMessageData
|
|
232
|
+
}, {
|
|
233
|
+
is: Joi.string().trim().valid(AuditEventMessageType.IDENTITY_SIGN_IN_SUCCESSFUL, AuditEventMessageType.IDENTITY_SIGN_OUT, AuditEventMessageType.IDENTITY_REGISTRATION, AuditEventMessageType.IDENTITY_TOO_MANY_OTPS_REQUESTED, AuditEventMessageType.IDENTITY_INCORRECT_CODE_ENTERED, AuditEventMessageType.IDENTITY_INCORRECT_CODE_LOCKOUT, AuditEventMessageType.IDENTITY_ACCOUNT_DELETION, AuditEventMessageType.IDENTITY_EMAIL_ADDRESS_UPDATED, AuditEventMessageType.IDENTITY_PHONE_NUMBER_UPDATED),
|
|
234
|
+
then: identityMessageData
|
|
215
235
|
}, {
|
|
216
236
|
is: Joi.string().trim().valid(AuditEventMessageType.FORM_FILE_DOWNLOAD_SUCCESS, AuditEventMessageType.FORM_FILE_DOWNLOAD_FAILURE),
|
|
217
237
|
then: formFileDownloadedMessageData
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["Joi","AuditEventMessageCategory","AuditEventMessageSchemaVersion","AuditEventMessageSource","AuditEventMessageType","FormDefinitionRequestType","emailAddressNoUnicodeSchema","contactSchema","emailResponseTimeSchema","idSchema","notificationEmailAddressSchema","offlineSchema","onlineTextSchema","onlineUrlSchema","organisationSchema","phoneSchema","privacyNoticeTextSchema","privacyNoticeTypeSchema","privacyNoticeUrlSchema","slugSchema","submissionGuidanceSchema","teamEmailSchema","teamNameSchema","termsAndConditionsAgreedSchema","titleSchema","formMessageDataBase","object","formId","slug","payload","optional","required","description","formCreatedMessageData","append","title","organisation","teamName","teamEmail","formDefinitionS3Meta","keys","fileId","string","filename","s3Key","formOutputMessageData","emailAddress","audience","trim","valid","version","condition","allow","formOutputChangesMessageData","added","array","items","updated","previous","new","removed","or","formUpdatedMessageData","requestType","Object","values","s3Meta","outputChanges","formsBackupRequestedMessageData","totalForms","number","integer","min","durationMs","formsSecretDeletedMessageData","secretName","formsSecretSavedMessageData","dlqActionMessageData","action","messageId","beforeJson","afterJson","formTitleChanges","formOrganisationChanges","formTeamNameChanges","formTeamEmailChanges","formSupportContactChanges","contact","formSupportPhoneChanges","phone","formSupportOnlineChanges","url","text","formSupportEmailChanges","address","responseTime","formPrivacyNoticeChanges","privacyNoticeType","privacyNoticeText","when","is","then","otherwise","privacyNoticeUrl","formTermsAndConditionsChanges","termsAndConditionsAgreed","formNotificationEmailChanges","notificationEmail","formSubmissionGuidanceChanges","submissionGuidance","formUploadedChanges","value","formOfflineChanges","offline","entitlementMessageData","userId","displayName","email","roles","formFileDownloadedMessageData","fileLink","excelGenerationMessageData","formName","authenticationMessageData","auditUserSchema","id","formChangesMessageData","schema","changes","messageSchema","schemaVersion","category","source","type","entityId","traceId","createdAt","date","createdBy","data","switch","FORM_CREATED","FORM_TITLE_UPDATED","FORM_ORGANISATION_UPDATED","FORM_TEAM_NAME_UPDATED","FORM_TEAM_EMAIL_UPDATED","FORM_SUPPORT_CONTACT_UPDATED","FORM_SUPPORT_PHONE_UPDATED","FORM_SUPPORT_EMAIL_UPDATED","FORM_SUPPORT_ONLINE_UPDATED","FORM_PRIVACY_NOTICE_UPDATED","FORM_TERMS_AND_CONDITIONS_AGREED","FORM_NOTIFICATION_EMAIL_UPDATED","FORM_SUBMISSION_GUIDANCE_UPDATED","FORM_JSON_UPLOADED","FORM_UPDATED","ENTITLEMENT_CREATED","ENTITLEMENT_UPDATED","ENTITLEMENT_DELETED","FORM_DRAFT_DELETED","FORM_JSON_DOWNLOADED","AUTHENTICATION_LOGIN","AUTHENTICATION_LOGOUT_MANUAL","AUTHENTICATION_LOGOUT_AUTO","AUTHENTICATION_LOGOUT_DIFFERENT_DEVICE","FORM_FILE_DOWNLOAD_SUCCESS","FORM_FILE_DOWNLOAD_FAILURE","FORM_SUBMISSION_EXCEL_REQUESTED","FORM_CSAT_EXCEL_REQUESTED","PLATFORM_CSAT_EXCEL_REQUESTED","FORMS_BACKUP_REQUESTED","FORM_SECRET_DELETED","FORM_SECRET_SAVED","DLQ_ACTION","FORM_OFFLINE_UPDATED","forbidden","messageCreatedAt","auditEvent","message","auditRecord","uuid","recordCreatedAt"],"sources":["../../../../src/form/form-audit/index.ts"],"sourcesContent":["import Joi, { type ObjectSchema } from 'joi'\n\nimport {\n AuditEventMessageCategory,\n AuditEventMessageSchemaVersion,\n AuditEventMessageSource,\n AuditEventMessageType,\n FormDefinitionRequestType\n} from '~/src/form/form-audit/enums.js'\nimport {\n type AuditEvent,\n type AuditMessage,\n type AuditRecord,\n type AuditUser,\n type AuthenticationMessageData,\n type ChangesMessageData,\n type DlqActionMessageData,\n type EntitlementMessageData,\n type ExcelGenerationMessageData,\n type FormCreatedMessageData,\n type FormDefinitionS3Meta,\n type FormFileDownloadedMessageData,\n type FormMessageChangesData,\n type FormMessageDataBase,\n type FormNotificationEmailChanges,\n type FormNotificationEmailUpdatedMessageData,\n type FormOfflineChanges,\n type FormOfflineUpdatedMessageData,\n type FormOrganisationChanges,\n type FormOrganisationUpdatedMessageData,\n type FormOutputChanges,\n type FormPrivacyNoticeChanges,\n type FormPrivacyNoticeUpdatedMessageData,\n type FormSecretBaseMessageData,\n type FormSubmissionGuidanceChanges,\n type FormSubmissionGuidanceUpdatedMessageData,\n type FormSupportContactChanges,\n type FormSupportContactUpdatedMessageData,\n type FormSupportEmailChanges,\n type FormSupportEmailUpdatedMessageData,\n type FormSupportOnlineChanges,\n type FormSupportOnlineUpdatedMessageData,\n type FormSupportPhoneChanges,\n type FormSupportPhoneUpdatedMessageData,\n type FormTeamEmailChanges,\n type FormTeamEmailUpdatedMessageData,\n type FormTeamNameChanges,\n type FormTeamNameUpdatedMessageData,\n type FormTermsAndConditionsAgreedMessageData,\n type FormTermsAndConditionsChanges,\n type FormTitleChanges,\n type FormTitleUpdatedMessageData,\n type FormUpdatedMessageData,\n type FormUploadedChanges,\n type FormUploadedMessageData,\n type FormsBackupRequestedMessageData\n} from '~/src/form/form-audit/types.js'\nimport { type Output } from '~/src/form/form-definition/types.js'\nimport { emailAddressNoUnicodeSchema } from '~/src/form/form-editor/index.js'\nimport {\n contactSchema,\n emailResponseTimeSchema,\n idSchema,\n notificationEmailAddressSchema,\n offlineSchema,\n onlineTextSchema,\n onlineUrlSchema,\n organisationSchema,\n phoneSchema,\n privacyNoticeTextSchema,\n privacyNoticeTypeSchema,\n privacyNoticeUrlSchema,\n slugSchema,\n submissionGuidanceSchema,\n teamEmailSchema,\n teamNameSchema,\n termsAndConditionsAgreedSchema,\n titleSchema\n} from '~/src/form/form-metadata/index.js'\n\nexport const formMessageDataBase = Joi.object<FormMessageDataBase>({\n formId: idSchema,\n slug: slugSchema,\n payload: Joi.object().optional()\n})\n .required()\n .description('The base data object for Form Messages')\n\nexport const formCreatedMessageData = formMessageDataBase\n .append<FormCreatedMessageData>({\n title: titleSchema,\n organisation: organisationSchema,\n teamName: teamNameSchema,\n teamEmail: teamEmailSchema\n })\n .required()\n .description('Message data schema for when a form is created')\n\nexport const formDefinitionS3Meta = Joi.object<FormDefinitionS3Meta>()\n .keys({\n fileId: Joi.string().required(),\n filename: Joi.string().required(),\n s3Key: Joi.string().required()\n })\n .description('Schema for form data S3 object in message')\n\n/**\n * Stands apart from the definition's own output schema, which resolves a\n * condition against the sibling `conditions` array - a lookup that has no\n * meaning on an audit message carrying the output on its own.\n */\nexport const formOutputMessageData = Joi.object<Output>()\n .keys({\n emailAddress: emailAddressNoUnicodeSchema\n .required()\n .description('Email address the submission is sent to'),\n audience: Joi.string()\n .trim()\n .valid('human', 'machine')\n .required()\n .description(\n 'Whether the submission is sent human readable or machine processable'\n ),\n version: Joi.string()\n .trim()\n .required()\n .description('Version identifier of the output format'),\n condition: Joi.string()\n .trim()\n .allow('')\n .optional()\n .description(\n 'Id of the condition determining whether the submission is sent to this address'\n )\n })\n .description('A submission email target as recorded on an audit event')\n\nexport const formOutputChangesMessageData = Joi.object<FormOutputChanges>()\n .keys({\n added: Joi.array().items(formOutputMessageData).optional(),\n updated: Joi.array()\n .items(\n Joi.object<ChangesMessageData<Output>>().keys({\n previous: formOutputMessageData.required(),\n new: formOutputMessageData.required()\n })\n )\n .optional(),\n removed: Joi.array().items(formOutputMessageData).optional()\n })\n .or('added', 'updated', 'removed')\n .description(\n \"Changes an update made to the form's submission email targets (outputs)\"\n )\n\nexport const formUpdatedMessageData = formMessageDataBase\n .append<FormUpdatedMessageData>({\n requestType: Joi.string()\n .valid(...Object.values(FormDefinitionRequestType))\n .required(),\n s3Meta: formDefinitionS3Meta.optional(),\n outputChanges: formOutputChangesMessageData.optional()\n })\n .required()\n\nexport const formsBackupRequestedMessageData =\n Joi.object<FormsBackupRequestedMessageData>().keys({\n totalForms: Joi.number().integer().min(0).required(),\n durationMs: Joi.number().min(0).required()\n })\n\nexport const formsSecretDeletedMessageData =\n formMessageDataBase.append<FormSecretBaseMessageData>({\n secretName: Joi.string().required()\n })\n\nexport const formsSecretSavedMessageData =\n formMessageDataBase.append<FormSecretBaseMessageData>({\n secretName: Joi.string().required()\n })\n\nexport const dlqActionMessageData = Joi.object<DlqActionMessageData>().keys({\n action: Joi.string()\n .valid('redrive', 'delete', 'modify-and-resubmit')\n .required(),\n messageId: Joi.string().optional(),\n beforeJson: Joi.string().optional(),\n afterJson: Joi.string().optional()\n})\n\nexport const formTitleChanges = Joi.object<FormTitleChanges>()\n .keys({\n title: titleSchema\n })\n .required()\n .description('Changes schema for FORM_TITLE_UPDATED event')\n\nexport const formOrganisationChanges = Joi.object<FormOrganisationChanges>()\n .keys({\n organisation: organisationSchema\n })\n .required()\n .description('Changes schema for FORM_ORGANISATION_UPDATED event')\n\nexport const formTeamNameChanges = Joi.object<FormTeamNameChanges>()\n .keys({\n teamName: teamNameSchema\n })\n .required()\n .description('Changes schema for FORM_TEAM_NAME_UPDATED event')\n\nexport const formTeamEmailChanges = Joi.object<FormTeamEmailChanges>()\n .keys({\n teamEmail: teamEmailSchema\n })\n .required()\n .description('Changes schema for FORM_TEAM_EMAIL_UPDATED event')\n\nexport const formSupportContactChanges = Joi.object<FormSupportContactChanges>()\n .keys({\n contact: contactSchema\n })\n .required()\n .description('Changes schema for FORM_SUPPORT_CONTACT_UPDATED event')\n\nexport const formSupportPhoneChanges = Joi.object<FormSupportPhoneChanges>()\n .keys({\n phone: phoneSchema\n })\n .required()\n .description('Changes schema for FORM_SUPPORT_PHONE_UPDATED event')\n\nexport const formSupportOnlineChanges = Joi.object<FormSupportOnlineChanges>()\n .keys({\n url: onlineUrlSchema.optional(),\n text: onlineTextSchema.optional()\n })\n .required()\n .description('Changes schema for FORM_SUPPORT_ONLINE_UPDATED event')\n\nexport const formSupportEmailChanges = Joi.object<FormSupportEmailChanges>()\n .keys({\n address: emailAddressNoUnicodeSchema.optional(),\n responseTime: emailResponseTimeSchema.optional()\n })\n .description('Changes schema for FORM_SUPPORT_EMAIL_UPDATED event')\n\nexport const formPrivacyNoticeChanges = Joi.object<FormPrivacyNoticeChanges>()\n .keys({\n privacyNoticeType: privacyNoticeTypeSchema,\n privacyNoticeText: Joi.when('privacyNoticeType', {\n is: 'text',\n then: privacyNoticeTextSchema,\n otherwise: privacyNoticeTextSchema.allow('')\n }),\n privacyNoticeUrl: Joi.when('privacyNoticeType', {\n is: 'link',\n then: privacyNoticeUrlSchema,\n otherwise: privacyNoticeUrlSchema.allow('')\n })\n })\n .required()\n .description('Changes schema for FORM_PRIVACY_NOTICE_UPDATED event')\n\nexport const formTermsAndConditionsChanges =\n Joi.object<FormTermsAndConditionsChanges>()\n .keys({\n termsAndConditionsAgreed: termsAndConditionsAgreedSchema\n })\n .required()\n .description('Changes schema for FORM_TERMS_AND_CONDITIONS_AGREED event')\n\nexport const formNotificationEmailChanges =\n Joi.object<FormNotificationEmailChanges>()\n .keys({\n notificationEmail: notificationEmailAddressSchema\n })\n .required()\n .description('Changes schema for FORM_NOTIFICATION_EMAIL_UPDATED event')\n\nexport const formSubmissionGuidanceChanges =\n Joi.object<FormSubmissionGuidanceChanges>()\n .keys({\n submissionGuidance: submissionGuidanceSchema\n })\n .required()\n .description('Changes schema for FORM_SUBMISSION_GUIDANCE_UPDATED event')\n\nexport const formUploadedChanges = Joi.object<FormUploadedChanges>()\n .keys({\n value: Joi.string().required()\n })\n .required()\n .description('Changes schema for FORM_JSON_UPLOADED event')\n\nexport const formOfflineChanges = Joi.object<FormOfflineChanges>()\n .keys({\n offline: offlineSchema\n })\n .required()\n .description('Changes schema for FORM_OFFLINE_UPDATED event')\n\nexport const entitlementMessageData = Joi.object<EntitlementMessageData>().keys(\n {\n userId: Joi.string().required(),\n displayName: Joi.string().required(),\n email: emailAddressNoUnicodeSchema.required(),\n roles: Joi.array().items(Joi.string())\n }\n)\n\nexport const formFileDownloadedMessageData =\n Joi.object<FormFileDownloadedMessageData>()\n .keys({\n fileId: Joi.string().required(),\n filename: Joi.string().required(),\n fileLink: Joi.string().required()\n })\n .required()\n .description(\n 'Schema for FORM_FILE_DOWNLOAD_SUCCESS and FORM_FILE_DOWNLOAD_FAILURE events'\n )\n\nexport const excelGenerationMessageData =\n Joi.object<ExcelGenerationMessageData>()\n .keys({\n formId: Joi.string().required(),\n formName: Joi.string().required(),\n notificationEmail: emailAddressNoUnicodeSchema.required()\n })\n .required()\n .description(\n 'Schema for Excel generation audit events (submissions and CSAT)'\n )\n\nexport const authenticationMessageData =\n Joi.object<AuthenticationMessageData>().keys({\n userId: Joi.string().required(),\n displayName: Joi.string().required()\n })\n\nexport const auditUserSchema = Joi.object<AuditUser>()\n .keys({\n id: Joi.string().required(),\n displayName: Joi.string().required()\n })\n .description('Schema for CREATED_BY audit event')\n\nexport function formChangesMessageData<T, U extends FormMessageChangesData>(\n schema: ObjectSchema<T>\n): ObjectSchema<U> {\n return formMessageDataBase.append<U>({\n changes: Joi.object<ChangesMessageData<T>>()\n .keys({\n previous: schema,\n new: schema\n })\n .description('Changes schema')\n })\n}\n\nexport const messageSchema = Joi.object<AuditMessage>()\n .keys({\n schemaVersion: Joi.string()\n .valid(...Object.values(AuditEventMessageSchemaVersion))\n .required()\n .description(\n 'The version of the AuditMessage - bumped with breaking changes'\n ),\n category: Joi.string()\n .valid(...Object.values(AuditEventMessageCategory))\n .required()\n .description('The message category - what does the entityId represent?'),\n source: Joi.string()\n .valid(...Object.values(AuditEventMessageSource))\n .required()\n .description('Source of the message - which service?'),\n type: Joi.string()\n .valid(...Object.values(AuditEventMessageType))\n .description('Event type'),\n entityId: Joi.string()\n .required()\n .description('The id of the entity the category relates to'),\n traceId: Joi.string()\n .optional()\n .description(\n 'Trace id of the event - to link events across multiple services'\n ),\n createdAt: Joi.date()\n .required()\n .description(\n 'The ISO timestamp where the action took place - should be the same as updated_at field in DB'\n ),\n createdBy: auditUserSchema\n .required()\n .description('The user who performed the action being audited'),\n data: Joi.when('type', {\n switch: [\n {\n is: Joi.string().trim().valid(AuditEventMessageType.FORM_CREATED),\n then: formCreatedMessageData\n },\n {\n is: Joi.string()\n .trim()\n .valid(AuditEventMessageType.FORM_TITLE_UPDATED),\n then: formChangesMessageData<\n FormTitleChanges,\n FormTitleUpdatedMessageData\n >(formTitleChanges)\n },\n {\n is: Joi.string()\n .trim()\n .valid(AuditEventMessageType.FORM_ORGANISATION_UPDATED),\n then: formChangesMessageData<\n FormOrganisationChanges,\n FormOrganisationUpdatedMessageData\n >(formOrganisationChanges)\n },\n {\n is: Joi.string()\n .trim()\n .valid(AuditEventMessageType.FORM_TEAM_NAME_UPDATED),\n then: formChangesMessageData<\n FormTeamNameChanges,\n FormTeamNameUpdatedMessageData\n >(formTeamNameChanges)\n },\n {\n is: Joi.string()\n .trim()\n .valid(AuditEventMessageType.FORM_TEAM_EMAIL_UPDATED),\n then: formChangesMessageData<\n FormTeamEmailChanges,\n FormTeamEmailUpdatedMessageData\n >(formTeamEmailChanges)\n },\n {\n is: Joi.string()\n .trim()\n .valid(AuditEventMessageType.FORM_SUPPORT_CONTACT_UPDATED),\n then: formChangesMessageData<\n FormSupportContactChanges,\n FormSupportContactUpdatedMessageData\n >(formSupportContactChanges)\n },\n {\n is: Joi.string()\n .trim()\n .valid(AuditEventMessageType.FORM_SUPPORT_PHONE_UPDATED),\n then: formChangesMessageData<\n FormSupportPhoneChanges,\n FormSupportPhoneUpdatedMessageData\n >(formSupportPhoneChanges)\n },\n {\n is: Joi.string()\n .trim()\n .valid(AuditEventMessageType.FORM_SUPPORT_EMAIL_UPDATED),\n then: formChangesMessageData<\n FormSupportEmailChanges,\n FormSupportEmailUpdatedMessageData\n >(formSupportEmailChanges)\n },\n {\n is: Joi.string()\n .trim()\n .valid(AuditEventMessageType.FORM_SUPPORT_ONLINE_UPDATED),\n then: formChangesMessageData<\n FormSupportOnlineChanges,\n FormSupportOnlineUpdatedMessageData\n >(formSupportOnlineChanges)\n },\n {\n is: Joi.string()\n .trim()\n .valid(AuditEventMessageType.FORM_PRIVACY_NOTICE_UPDATED),\n then: formChangesMessageData<\n FormPrivacyNoticeChanges,\n FormPrivacyNoticeUpdatedMessageData\n >(formPrivacyNoticeChanges)\n },\n {\n is: Joi.string()\n .trim()\n .valid(AuditEventMessageType.FORM_TERMS_AND_CONDITIONS_AGREED),\n then: formChangesMessageData<\n FormTermsAndConditionsChanges,\n FormTermsAndConditionsAgreedMessageData\n >(formTermsAndConditionsChanges)\n },\n {\n is: Joi.string()\n .trim()\n .valid(AuditEventMessageType.FORM_NOTIFICATION_EMAIL_UPDATED),\n then: formChangesMessageData<\n FormNotificationEmailChanges,\n FormNotificationEmailUpdatedMessageData\n >(formNotificationEmailChanges)\n },\n {\n is: Joi.string()\n .trim()\n .valid(AuditEventMessageType.FORM_SUBMISSION_GUIDANCE_UPDATED),\n then: formChangesMessageData<\n FormSubmissionGuidanceChanges,\n FormSubmissionGuidanceUpdatedMessageData\n >(formSubmissionGuidanceChanges)\n },\n {\n is: Joi.string()\n .trim()\n .valid(AuditEventMessageType.FORM_JSON_UPLOADED),\n then: formChangesMessageData<\n FormUploadedChanges,\n FormUploadedMessageData\n >(formUploadedChanges)\n },\n {\n is: Joi.string().trim().valid(AuditEventMessageType.FORM_UPDATED),\n then: formUpdatedMessageData\n },\n {\n is: Joi.string()\n .trim()\n .valid(\n AuditEventMessageType.ENTITLEMENT_CREATED,\n AuditEventMessageType.ENTITLEMENT_UPDATED,\n AuditEventMessageType.ENTITLEMENT_DELETED\n ),\n then: entitlementMessageData\n },\n {\n is: Joi.string()\n .trim()\n .valid(AuditEventMessageType.FORM_DRAFT_DELETED),\n then: formMessageDataBase\n },\n {\n is: Joi.string()\n .trim()\n .valid(AuditEventMessageType.FORM_JSON_DOWNLOADED),\n then: formMessageDataBase\n },\n {\n is: Joi.string()\n .trim()\n .valid(\n AuditEventMessageType.AUTHENTICATION_LOGIN,\n AuditEventMessageType.AUTHENTICATION_LOGOUT_MANUAL,\n AuditEventMessageType.AUTHENTICATION_LOGOUT_AUTO,\n AuditEventMessageType.AUTHENTICATION_LOGOUT_DIFFERENT_DEVICE\n ),\n then: authenticationMessageData\n },\n {\n is: Joi.string()\n .trim()\n .valid(\n AuditEventMessageType.FORM_FILE_DOWNLOAD_SUCCESS,\n AuditEventMessageType.FORM_FILE_DOWNLOAD_FAILURE\n ),\n then: formFileDownloadedMessageData\n },\n {\n is: Joi.string()\n .trim()\n .valid(\n AuditEventMessageType.FORM_SUBMISSION_EXCEL_REQUESTED,\n AuditEventMessageType.FORM_CSAT_EXCEL_REQUESTED,\n AuditEventMessageType.PLATFORM_CSAT_EXCEL_REQUESTED\n ),\n then: excelGenerationMessageData\n },\n {\n is: Joi.string()\n .trim()\n .valid(AuditEventMessageType.FORMS_BACKUP_REQUESTED),\n then: formsBackupRequestedMessageData\n },\n {\n is: Joi.string()\n .trim()\n .valid(AuditEventMessageType.FORM_SECRET_DELETED),\n then: formsSecretDeletedMessageData\n },\n {\n is: Joi.string()\n .trim()\n .valid(AuditEventMessageType.FORM_SECRET_SAVED),\n then: formsSecretSavedMessageData\n },\n {\n is: Joi.string().trim().valid(AuditEventMessageType.DLQ_ACTION),\n then: dlqActionMessageData\n },\n {\n is: Joi.string()\n .trim()\n .valid(AuditEventMessageType.FORM_OFFLINE_UPDATED),\n then: formChangesMessageData<\n FormOfflineChanges,\n FormOfflineUpdatedMessageData\n >(formOfflineChanges)\n }\n ],\n otherwise: Joi.forbidden()\n }).description('The data/payload of the audit message'),\n messageCreatedAt: Joi.date()\n .required()\n .description('ISO timestamp when the message was published')\n })\n .required()\n .description('The audit message issued by the publishing service')\n\nexport const auditEvent = Joi.object<AuditEvent>()\n .keys({\n message: messageSchema\n })\n .description('The Body of the audit event')\n\nexport const auditRecord = messageSchema\n .append<AuditRecord>({\n id: idSchema,\n messageId: Joi.string().uuid().required(),\n entityId: Joi.string().required(),\n recordCreatedAt: Joi.date().required()\n })\n .description('The audit record persisted into the DB')\n"],"mappings":"AAAA,OAAOA,GAAG,MAA6B,KAAK;AAE5C,SACEC,yBAAyB,EACzBC,8BAA8B,EAC9BC,uBAAuB,EACvBC,qBAAqB,EACrBC,yBAAyB;AAmD3B,SAASC,2BAA2B;AACpC,SACEC,aAAa,EACbC,uBAAuB,EACvBC,QAAQ,EACRC,8BAA8B,EAC9BC,aAAa,EACbC,gBAAgB,EAChBC,eAAe,EACfC,kBAAkB,EAClBC,WAAW,EACXC,uBAAuB,EACvBC,uBAAuB,EACvBC,sBAAsB,EACtBC,UAAU,EACVC,wBAAwB,EACxBC,eAAe,EACfC,cAAc,EACdC,8BAA8B,EAC9BC,WAAW;AAGb,OAAO,MAAMC,mBAAmB,GAAGzB,GAAG,CAAC0B,MAAM,CAAsB;EACjEC,MAAM,EAAElB,QAAQ;EAChBmB,IAAI,EAAET,UAAU;EAChBU,OAAO,EAAE7B,GAAG,CAAC0B,MAAM,CAAC,CAAC,CAACI,QAAQ,CAAC;AACjC,CAAC,CAAC,CACCC,QAAQ,CAAC,CAAC,CACVC,WAAW,CAAC,wCAAwC,CAAC;AAExD,OAAO,MAAMC,sBAAsB,GAAGR,mBAAmB,CACtDS,MAAM,CAAyB;EAC9BC,KAAK,EAAEX,WAAW;EAClBY,YAAY,EAAEtB,kBAAkB;EAChCuB,QAAQ,EAAEf,cAAc;EACxBgB,SAAS,EAAEjB;AACb,CAAC,CAAC,CACDU,QAAQ,CAAC,CAAC,CACVC,WAAW,CAAC,gDAAgD,CAAC;AAEhE,OAAO,MAAMO,oBAAoB,GAAGvC,GAAG,CAAC0B,MAAM,CAAuB,CAAC,CACnEc,IAAI,CAAC;EACJC,MAAM,EAAEzC,GAAG,CAAC0C,MAAM,CAAC,CAAC,CAACX,QAAQ,CAAC,CAAC;EAC/BY,QAAQ,EAAE3C,GAAG,CAAC0C,MAAM,CA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CAAC;EAC3B,CAAC,CAAC,CAAC/I,WAAW,CAAC,uCAAuC,CAAC;EACvDgJ,gBAAgB,EAAEhL,GAAG,CAACyI,IAAI,CAAC,CAAC,CACzB1G,QAAQ,CAAC,CAAC,CACVC,WAAW,CAAC,8CAA8C;AAC/D,CAAC,CAAC,CACDD,QAAQ,CAAC,CAAC,CACVC,WAAW,CAAC,oDAAoD,CAAC;AAEpE,OAAO,MAAMiJ,UAAU,GAAGjL,GAAG,CAAC0B,MAAM,CAAa,CAAC,CAC/Cc,IAAI,CAAC;EACJ0I,OAAO,EAAEjD;AACX,CAAC,CAAC,CACDjG,WAAW,CAAC,6BAA6B,CAAC;AAE7C,OAAO,MAAMmJ,WAAW,GAAGlD,aAAa,CACrC/F,MAAM,CAAc;EACnB2F,EAAE,EAAEpH,QAAQ;EACZsE,SAAS,EAAE/E,GAAG,CAAC0C,MAAM,CAAC,CAAC,CAAC0I,IAAI,CAAC,CAAC,CAACrJ,QAAQ,CAAC,CAAC;EACzCuG,QAAQ,EAAEtI,GAAG,CAAC0C,MAAM,CAAC,CAAC,CAACX,QAAQ,CAAC,CAAC;EACjCsJ,eAAe,EAAErL,GAAG,CAACyI,IAAI,CAAC,CAAC,CAAC1G,QAAQ,CAAC;AACvC,CAAC,CAAC,CACDC,WAAW,CAAC,wCAAwC,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"index.js","names":["Joi","AuditEventMessageCategory","AuditEventMessageSchemaVersion","AuditEventMessageSource","AuditEventMessageType","FormDefinitionRequestType","emailAddressNoUnicodeSchema","contactSchema","emailResponseTimeSchema","idSchema","notificationEmailAddressSchema","offlineSchema","onlineTextSchema","onlineUrlSchema","organisationSchema","phoneSchema","privacyNoticeTextSchema","privacyNoticeTypeSchema","privacyNoticeUrlSchema","slugSchema","submissionGuidanceSchema","teamEmailSchema","teamNameSchema","termsAndConditionsAgreedSchema","titleSchema","formMessageDataBase","object","formId","slug","payload","optional","required","description","formCreatedMessageData","append","title","organisation","teamName","teamEmail","formDefinitionS3Meta","keys","fileId","string","filename","s3Key","formOutputMessageData","emailAddress","audience","trim","valid","version","condition","allow","formOutputChangesMessageData","added","array","items","updated","previous","new","removed","or","formUpdatedMessageData","requestType","Object","values","s3Meta","outputChanges","formsBackupRequestedMessageData","totalForms","number","integer","min","durationMs","formsSecretDeletedMessageData","secretName","formsSecretSavedMessageData","dlqActionMessageData","action","messageId","beforeJson","afterJson","formTitleChanges","formOrganisationChanges","formTeamNameChanges","formTeamEmailChanges","formSupportContactChanges","contact","formSupportPhoneChanges","phone","formSupportOnlineChanges","url","text","formSupportEmailChanges","address","responseTime","formPrivacyNoticeChanges","privacyNoticeType","privacyNoticeText","when","is","then","otherwise","privacyNoticeUrl","formTermsAndConditionsChanges","termsAndConditionsAgreed","formNotificationEmailChanges","notificationEmail","formSubmissionGuidanceChanges","submissionGuidance","formUploadedChanges","value","formOfflineChanges","offline","entitlementMessageData","userId","displayName","email","roles","formFileDownloadedMessageData","fileLink","excelGenerationMessageData","formName","authenticationMessageData","auditUserSchema","id","identityMessageData","accountId","purpose","uid","changed","old","formChangesMessageData","schema","changes","messageSchema","schemaVersion","category","source","type","entityId","traceId","createdAt","date","createdBy","data","switch","FORM_CREATED","FORM_TITLE_UPDATED","FORM_ORGANISATION_UPDATED","FORM_TEAM_NAME_UPDATED","FORM_TEAM_EMAIL_UPDATED","FORM_SUPPORT_CONTACT_UPDATED","FORM_SUPPORT_PHONE_UPDATED","FORM_SUPPORT_EMAIL_UPDATED","FORM_SUPPORT_ONLINE_UPDATED","FORM_PRIVACY_NOTICE_UPDATED","FORM_TERMS_AND_CONDITIONS_AGREED","FORM_NOTIFICATION_EMAIL_UPDATED","FORM_SUBMISSION_GUIDANCE_UPDATED","FORM_JSON_UPLOADED","FORM_UPDATED","ENTITLEMENT_CREATED","ENTITLEMENT_UPDATED","ENTITLEMENT_DELETED","FORM_DRAFT_DELETED","FORM_JSON_DOWNLOADED","AUTHENTICATION_LOGIN","AUTHENTICATION_LOGOUT_MANUAL","AUTHENTICATION_LOGOUT_AUTO","AUTHENTICATION_LOGOUT_DIFFERENT_DEVICE","IDENTITY_SIGN_IN_SUCCESSFUL","IDENTITY_SIGN_OUT","IDENTITY_REGISTRATION","IDENTITY_TOO_MANY_OTPS_REQUESTED","IDENTITY_INCORRECT_CODE_ENTERED","IDENTITY_INCORRECT_CODE_LOCKOUT","IDENTITY_ACCOUNT_DELETION","IDENTITY_EMAIL_ADDRESS_UPDATED","IDENTITY_PHONE_NUMBER_UPDATED","FORM_FILE_DOWNLOAD_SUCCESS","FORM_FILE_DOWNLOAD_FAILURE","FORM_SUBMISSION_EXCEL_REQUESTED","FORM_CSAT_EXCEL_REQUESTED","PLATFORM_CSAT_EXCEL_REQUESTED","FORMS_BACKUP_REQUESTED","FORM_SECRET_DELETED","FORM_SECRET_SAVED","DLQ_ACTION","FORM_OFFLINE_UPDATED","forbidden","messageCreatedAt","auditEvent","message","auditRecord","uuid","recordCreatedAt"],"sources":["../../../../src/form/form-audit/index.ts"],"sourcesContent":["import Joi, { type ObjectSchema } from 'joi'\n\nimport {\n AuditEventMessageCategory,\n AuditEventMessageSchemaVersion,\n AuditEventMessageSource,\n AuditEventMessageType,\n FormDefinitionRequestType\n} from '~/src/form/form-audit/enums.js'\nimport {\n type AuditEvent,\n type AuditMessage,\n type AuditRecord,\n type AuditUser,\n type AuthenticationMessageData,\n type ChangesMessageData,\n type DlqActionMessageData,\n type EntitlementMessageData,\n type ExcelGenerationMessageData,\n type FormCreatedMessageData,\n type FormDefinitionS3Meta,\n type FormFileDownloadedMessageData,\n type FormMessageChangesData,\n type FormMessageDataBase,\n type FormNotificationEmailChanges,\n type FormNotificationEmailUpdatedMessageData,\n type FormOfflineChanges,\n type FormOfflineUpdatedMessageData,\n type FormOrganisationChanges,\n type FormOrganisationUpdatedMessageData,\n type FormOutputChanges,\n type FormPrivacyNoticeChanges,\n type FormPrivacyNoticeUpdatedMessageData,\n type FormSecretBaseMessageData,\n type FormSubmissionGuidanceChanges,\n type FormSubmissionGuidanceUpdatedMessageData,\n type FormSupportContactChanges,\n type FormSupportContactUpdatedMessageData,\n type FormSupportEmailChanges,\n type FormSupportEmailUpdatedMessageData,\n type FormSupportOnlineChanges,\n type FormSupportOnlineUpdatedMessageData,\n type FormSupportPhoneChanges,\n type FormSupportPhoneUpdatedMessageData,\n type FormTeamEmailChanges,\n type FormTeamEmailUpdatedMessageData,\n type FormTeamNameChanges,\n type FormTeamNameUpdatedMessageData,\n type FormTermsAndConditionsAgreedMessageData,\n type FormTermsAndConditionsChanges,\n type FormTitleChanges,\n type FormTitleUpdatedMessageData,\n type FormUpdatedMessageData,\n type FormUploadedChanges,\n type FormUploadedMessageData,\n type FormsBackupRequestedMessageData,\n type IdentityMessageData\n} from '~/src/form/form-audit/types.js'\nimport { type Output } from '~/src/form/form-definition/types.js'\nimport { emailAddressNoUnicodeSchema } from '~/src/form/form-editor/index.js'\nimport {\n contactSchema,\n emailResponseTimeSchema,\n idSchema,\n notificationEmailAddressSchema,\n offlineSchema,\n onlineTextSchema,\n onlineUrlSchema,\n organisationSchema,\n phoneSchema,\n privacyNoticeTextSchema,\n privacyNoticeTypeSchema,\n privacyNoticeUrlSchema,\n slugSchema,\n submissionGuidanceSchema,\n teamEmailSchema,\n teamNameSchema,\n termsAndConditionsAgreedSchema,\n titleSchema\n} from '~/src/form/form-metadata/index.js'\n\nexport const formMessageDataBase = Joi.object<FormMessageDataBase>({\n formId: idSchema,\n slug: slugSchema,\n payload: Joi.object().optional()\n})\n .required()\n .description('The base data object for Form Messages')\n\nexport const formCreatedMessageData = formMessageDataBase\n .append<FormCreatedMessageData>({\n title: titleSchema,\n organisation: organisationSchema,\n teamName: teamNameSchema,\n teamEmail: teamEmailSchema\n })\n .required()\n .description('Message data schema for when a form is created')\n\nexport const formDefinitionS3Meta = Joi.object<FormDefinitionS3Meta>()\n .keys({\n fileId: Joi.string().required(),\n filename: Joi.string().required(),\n s3Key: Joi.string().required()\n })\n .description('Schema for form data S3 object in message')\n\n/**\n * Stands apart from the definition's own output schema, which resolves a\n * condition against the sibling `conditions` array - a lookup that has no\n * meaning on an audit message carrying the output on its own.\n */\nexport const formOutputMessageData = Joi.object<Output>()\n .keys({\n emailAddress: emailAddressNoUnicodeSchema\n .required()\n .description('Email address the submission is sent to'),\n audience: Joi.string()\n .trim()\n .valid('human', 'machine')\n .required()\n .description(\n 'Whether the submission is sent human readable or machine processable'\n ),\n version: Joi.string()\n .trim()\n .required()\n .description('Version identifier of the output format'),\n condition: Joi.string()\n .trim()\n .allow('')\n .optional()\n .description(\n 'Id of the condition determining whether the submission is sent to this address'\n )\n })\n .description('A submission email target as recorded on an audit event')\n\nexport const formOutputChangesMessageData = Joi.object<FormOutputChanges>()\n .keys({\n added: Joi.array().items(formOutputMessageData).optional(),\n updated: Joi.array()\n .items(\n Joi.object<ChangesMessageData<Output>>().keys({\n previous: formOutputMessageData.required(),\n new: formOutputMessageData.required()\n })\n )\n .optional(),\n removed: Joi.array().items(formOutputMessageData).optional()\n })\n .or('added', 'updated', 'removed')\n .description(\n \"Changes an update made to the form's submission email targets (outputs)\"\n )\n\nexport const formUpdatedMessageData = formMessageDataBase\n .append<FormUpdatedMessageData>({\n requestType: Joi.string()\n .valid(...Object.values(FormDefinitionRequestType))\n .required(),\n s3Meta: formDefinitionS3Meta.optional(),\n outputChanges: formOutputChangesMessageData.optional()\n })\n .required()\n\nexport const formsBackupRequestedMessageData =\n Joi.object<FormsBackupRequestedMessageData>().keys({\n totalForms: Joi.number().integer().min(0).required(),\n durationMs: Joi.number().min(0).required()\n })\n\nexport const formsSecretDeletedMessageData =\n formMessageDataBase.append<FormSecretBaseMessageData>({\n secretName: Joi.string().required()\n })\n\nexport const formsSecretSavedMessageData =\n formMessageDataBase.append<FormSecretBaseMessageData>({\n secretName: Joi.string().required()\n })\n\nexport const dlqActionMessageData = Joi.object<DlqActionMessageData>().keys({\n action: Joi.string()\n .valid('redrive', 'delete', 'modify-and-resubmit')\n .required(),\n messageId: Joi.string().optional(),\n beforeJson: Joi.string().optional(),\n afterJson: Joi.string().optional()\n})\n\nexport const formTitleChanges = Joi.object<FormTitleChanges>()\n .keys({\n title: titleSchema\n })\n .required()\n .description('Changes schema for FORM_TITLE_UPDATED event')\n\nexport const formOrganisationChanges = Joi.object<FormOrganisationChanges>()\n .keys({\n organisation: organisationSchema\n })\n .required()\n .description('Changes schema for FORM_ORGANISATION_UPDATED event')\n\nexport const formTeamNameChanges = Joi.object<FormTeamNameChanges>()\n .keys({\n teamName: teamNameSchema\n })\n .required()\n .description('Changes schema for FORM_TEAM_NAME_UPDATED event')\n\nexport const formTeamEmailChanges = Joi.object<FormTeamEmailChanges>()\n .keys({\n teamEmail: teamEmailSchema\n })\n .required()\n .description('Changes schema for FORM_TEAM_EMAIL_UPDATED event')\n\nexport const formSupportContactChanges = Joi.object<FormSupportContactChanges>()\n .keys({\n contact: contactSchema\n })\n .required()\n .description('Changes schema for FORM_SUPPORT_CONTACT_UPDATED event')\n\nexport const formSupportPhoneChanges = Joi.object<FormSupportPhoneChanges>()\n .keys({\n phone: phoneSchema\n })\n .required()\n .description('Changes schema for FORM_SUPPORT_PHONE_UPDATED event')\n\nexport const formSupportOnlineChanges = Joi.object<FormSupportOnlineChanges>()\n .keys({\n url: onlineUrlSchema.optional(),\n text: onlineTextSchema.optional()\n })\n .required()\n .description('Changes schema for FORM_SUPPORT_ONLINE_UPDATED event')\n\nexport const formSupportEmailChanges = Joi.object<FormSupportEmailChanges>()\n .keys({\n address: emailAddressNoUnicodeSchema.optional(),\n responseTime: emailResponseTimeSchema.optional()\n })\n .description('Changes schema for FORM_SUPPORT_EMAIL_UPDATED event')\n\nexport const formPrivacyNoticeChanges = Joi.object<FormPrivacyNoticeChanges>()\n .keys({\n privacyNoticeType: privacyNoticeTypeSchema,\n privacyNoticeText: Joi.when('privacyNoticeType', {\n is: 'text',\n then: privacyNoticeTextSchema,\n otherwise: privacyNoticeTextSchema.allow('')\n }),\n privacyNoticeUrl: Joi.when('privacyNoticeType', {\n is: 'link',\n then: privacyNoticeUrlSchema,\n otherwise: privacyNoticeUrlSchema.allow('')\n })\n })\n .required()\n .description('Changes schema for FORM_PRIVACY_NOTICE_UPDATED event')\n\nexport const formTermsAndConditionsChanges =\n Joi.object<FormTermsAndConditionsChanges>()\n .keys({\n termsAndConditionsAgreed: termsAndConditionsAgreedSchema\n })\n .required()\n .description('Changes schema for FORM_TERMS_AND_CONDITIONS_AGREED event')\n\nexport const formNotificationEmailChanges =\n Joi.object<FormNotificationEmailChanges>()\n .keys({\n notificationEmail: notificationEmailAddressSchema\n })\n .required()\n .description('Changes schema for FORM_NOTIFICATION_EMAIL_UPDATED event')\n\nexport const formSubmissionGuidanceChanges =\n Joi.object<FormSubmissionGuidanceChanges>()\n .keys({\n submissionGuidance: submissionGuidanceSchema\n })\n .required()\n .description('Changes schema for FORM_SUBMISSION_GUIDANCE_UPDATED event')\n\nexport const formUploadedChanges = Joi.object<FormUploadedChanges>()\n .keys({\n value: Joi.string().required()\n })\n .required()\n .description('Changes schema for FORM_JSON_UPLOADED event')\n\nexport const formOfflineChanges = Joi.object<FormOfflineChanges>()\n .keys({\n offline: offlineSchema\n })\n .required()\n .description('Changes schema for FORM_OFFLINE_UPDATED event')\n\nexport const entitlementMessageData = Joi.object<EntitlementMessageData>().keys(\n {\n userId: Joi.string().required(),\n displayName: Joi.string().required(),\n email: emailAddressNoUnicodeSchema.required(),\n roles: Joi.array().items(Joi.string())\n }\n)\n\nexport const formFileDownloadedMessageData =\n Joi.object<FormFileDownloadedMessageData>()\n .keys({\n fileId: Joi.string().required(),\n filename: Joi.string().required(),\n fileLink: Joi.string().required()\n })\n .required()\n .description(\n 'Schema for FORM_FILE_DOWNLOAD_SUCCESS and FORM_FILE_DOWNLOAD_FAILURE events'\n )\n\nexport const excelGenerationMessageData =\n Joi.object<ExcelGenerationMessageData>()\n .keys({\n formId: Joi.string().required(),\n formName: Joi.string().required(),\n notificationEmail: emailAddressNoUnicodeSchema.required()\n })\n .required()\n .description(\n 'Schema for Excel generation audit events (submissions and CSAT)'\n )\n\nexport const authenticationMessageData =\n Joi.object<AuthenticationMessageData>().keys({\n userId: Joi.string().required(),\n displayName: Joi.string().required()\n })\n\nexport const auditUserSchema = Joi.object<AuditUser>()\n .keys({\n id: Joi.string().required(),\n displayName: Joi.string().required()\n })\n .description('Schema for CREATED_BY audit event')\n\nexport const identityMessageData = Joi.object<IdentityMessageData>().keys({\n // accountId may not always be available\n accountId: Joi.string().optional(),\n // Email address associated with the identity, if any, or the target for an OTP\n email: Joi.string().optional(),\n // Phone number associated with the identity, if any, or the target for an OTP\n phone: Joi.string().optional(),\n // Purpose of the identity interaction, if any\n purpose: Joi.string().optional(),\n // Unique interaction id\n uid: Joi.string().optional(),\n // Changed fields in the identity, if any have changed\n changed: Joi.object({\n old: Joi.string().required(),\n new: Joi.string().required()\n }).optional()\n})\n\nexport function formChangesMessageData<T, U extends FormMessageChangesData>(\n schema: ObjectSchema<T>\n): ObjectSchema<U> {\n return formMessageDataBase.append<U>({\n changes: Joi.object<ChangesMessageData<T>>()\n .keys({\n previous: schema,\n new: schema\n })\n .description('Changes schema')\n })\n}\n\nexport const messageSchema = Joi.object<AuditMessage>()\n .keys({\n schemaVersion: Joi.string()\n .valid(...Object.values(AuditEventMessageSchemaVersion))\n .required()\n .description(\n 'The version of the AuditMessage - bumped with breaking changes'\n ),\n category: Joi.string()\n .valid(...Object.values(AuditEventMessageCategory))\n .required()\n .description('The message category - what does the entityId represent?'),\n source: Joi.string()\n .valid(...Object.values(AuditEventMessageSource))\n .required()\n .description('Source of the message - which service?'),\n type: Joi.string()\n .valid(...Object.values(AuditEventMessageType))\n .description('Event type'),\n entityId: Joi.string()\n .required()\n .description('The id of the entity the category relates to'),\n traceId: Joi.string()\n .optional()\n .description(\n 'Trace id of the event - to link events across multiple services'\n ),\n createdAt: Joi.date()\n .required()\n .description(\n 'The ISO timestamp where the action took place - should be the same as updated_at field in DB'\n ),\n createdBy: auditUserSchema\n .required()\n .description('The user who performed the action being audited'),\n data: Joi.when('type', {\n switch: [\n {\n is: Joi.string().trim().valid(AuditEventMessageType.FORM_CREATED),\n then: formCreatedMessageData\n },\n {\n is: Joi.string()\n .trim()\n .valid(AuditEventMessageType.FORM_TITLE_UPDATED),\n then: formChangesMessageData<\n FormTitleChanges,\n FormTitleUpdatedMessageData\n >(formTitleChanges)\n },\n {\n is: Joi.string()\n .trim()\n .valid(AuditEventMessageType.FORM_ORGANISATION_UPDATED),\n then: formChangesMessageData<\n FormOrganisationChanges,\n FormOrganisationUpdatedMessageData\n >(formOrganisationChanges)\n },\n {\n is: Joi.string()\n .trim()\n .valid(AuditEventMessageType.FORM_TEAM_NAME_UPDATED),\n then: formChangesMessageData<\n FormTeamNameChanges,\n FormTeamNameUpdatedMessageData\n >(formTeamNameChanges)\n },\n {\n is: Joi.string()\n .trim()\n .valid(AuditEventMessageType.FORM_TEAM_EMAIL_UPDATED),\n then: formChangesMessageData<\n FormTeamEmailChanges,\n FormTeamEmailUpdatedMessageData\n >(formTeamEmailChanges)\n },\n {\n is: Joi.string()\n .trim()\n .valid(AuditEventMessageType.FORM_SUPPORT_CONTACT_UPDATED),\n then: formChangesMessageData<\n FormSupportContactChanges,\n FormSupportContactUpdatedMessageData\n >(formSupportContactChanges)\n },\n {\n is: Joi.string()\n .trim()\n .valid(AuditEventMessageType.FORM_SUPPORT_PHONE_UPDATED),\n then: formChangesMessageData<\n FormSupportPhoneChanges,\n FormSupportPhoneUpdatedMessageData\n >(formSupportPhoneChanges)\n },\n {\n is: Joi.string()\n .trim()\n .valid(AuditEventMessageType.FORM_SUPPORT_EMAIL_UPDATED),\n then: formChangesMessageData<\n FormSupportEmailChanges,\n FormSupportEmailUpdatedMessageData\n >(formSupportEmailChanges)\n },\n {\n is: Joi.string()\n .trim()\n .valid(AuditEventMessageType.FORM_SUPPORT_ONLINE_UPDATED),\n then: formChangesMessageData<\n FormSupportOnlineChanges,\n FormSupportOnlineUpdatedMessageData\n >(formSupportOnlineChanges)\n },\n {\n is: Joi.string()\n .trim()\n .valid(AuditEventMessageType.FORM_PRIVACY_NOTICE_UPDATED),\n then: formChangesMessageData<\n FormPrivacyNoticeChanges,\n FormPrivacyNoticeUpdatedMessageData\n >(formPrivacyNoticeChanges)\n },\n {\n is: Joi.string()\n .trim()\n .valid(AuditEventMessageType.FORM_TERMS_AND_CONDITIONS_AGREED),\n then: formChangesMessageData<\n FormTermsAndConditionsChanges,\n FormTermsAndConditionsAgreedMessageData\n >(formTermsAndConditionsChanges)\n },\n {\n is: Joi.string()\n .trim()\n .valid(AuditEventMessageType.FORM_NOTIFICATION_EMAIL_UPDATED),\n then: formChangesMessageData<\n FormNotificationEmailChanges,\n FormNotificationEmailUpdatedMessageData\n >(formNotificationEmailChanges)\n },\n {\n is: Joi.string()\n .trim()\n .valid(AuditEventMessageType.FORM_SUBMISSION_GUIDANCE_UPDATED),\n then: formChangesMessageData<\n FormSubmissionGuidanceChanges,\n FormSubmissionGuidanceUpdatedMessageData\n >(formSubmissionGuidanceChanges)\n },\n {\n is: Joi.string()\n .trim()\n .valid(AuditEventMessageType.FORM_JSON_UPLOADED),\n then: formChangesMessageData<\n FormUploadedChanges,\n FormUploadedMessageData\n >(formUploadedChanges)\n },\n {\n is: Joi.string().trim().valid(AuditEventMessageType.FORM_UPDATED),\n then: formUpdatedMessageData\n },\n {\n is: Joi.string()\n .trim()\n .valid(\n AuditEventMessageType.ENTITLEMENT_CREATED,\n AuditEventMessageType.ENTITLEMENT_UPDATED,\n AuditEventMessageType.ENTITLEMENT_DELETED\n ),\n then: entitlementMessageData\n },\n {\n is: Joi.string()\n .trim()\n .valid(AuditEventMessageType.FORM_DRAFT_DELETED),\n then: formMessageDataBase\n },\n {\n is: Joi.string()\n .trim()\n .valid(AuditEventMessageType.FORM_JSON_DOWNLOADED),\n then: formMessageDataBase\n },\n {\n is: Joi.string()\n .trim()\n .valid(\n AuditEventMessageType.AUTHENTICATION_LOGIN,\n AuditEventMessageType.AUTHENTICATION_LOGOUT_MANUAL,\n AuditEventMessageType.AUTHENTICATION_LOGOUT_AUTO,\n AuditEventMessageType.AUTHENTICATION_LOGOUT_DIFFERENT_DEVICE\n ),\n then: authenticationMessageData\n },\n {\n is: Joi.string()\n .trim()\n .valid(\n AuditEventMessageType.IDENTITY_SIGN_IN_SUCCESSFUL,\n AuditEventMessageType.IDENTITY_SIGN_OUT,\n AuditEventMessageType.IDENTITY_REGISTRATION,\n AuditEventMessageType.IDENTITY_TOO_MANY_OTPS_REQUESTED,\n AuditEventMessageType.IDENTITY_INCORRECT_CODE_ENTERED,\n AuditEventMessageType.IDENTITY_INCORRECT_CODE_LOCKOUT,\n AuditEventMessageType.IDENTITY_ACCOUNT_DELETION,\n AuditEventMessageType.IDENTITY_EMAIL_ADDRESS_UPDATED,\n AuditEventMessageType.IDENTITY_PHONE_NUMBER_UPDATED\n ),\n then: identityMessageData\n },\n {\n is: Joi.string()\n .trim()\n .valid(\n AuditEventMessageType.FORM_FILE_DOWNLOAD_SUCCESS,\n AuditEventMessageType.FORM_FILE_DOWNLOAD_FAILURE\n ),\n then: formFileDownloadedMessageData\n },\n {\n is: Joi.string()\n .trim()\n .valid(\n AuditEventMessageType.FORM_SUBMISSION_EXCEL_REQUESTED,\n AuditEventMessageType.FORM_CSAT_EXCEL_REQUESTED,\n AuditEventMessageType.PLATFORM_CSAT_EXCEL_REQUESTED\n ),\n then: excelGenerationMessageData\n },\n {\n is: Joi.string()\n .trim()\n .valid(AuditEventMessageType.FORMS_BACKUP_REQUESTED),\n then: formsBackupRequestedMessageData\n },\n {\n is: Joi.string()\n .trim()\n .valid(AuditEventMessageType.FORM_SECRET_DELETED),\n then: formsSecretDeletedMessageData\n },\n {\n is: Joi.string()\n .trim()\n .valid(AuditEventMessageType.FORM_SECRET_SAVED),\n then: formsSecretSavedMessageData\n },\n {\n is: Joi.string().trim().valid(AuditEventMessageType.DLQ_ACTION),\n then: dlqActionMessageData\n },\n {\n is: Joi.string()\n .trim()\n .valid(AuditEventMessageType.FORM_OFFLINE_UPDATED),\n then: formChangesMessageData<\n FormOfflineChanges,\n FormOfflineUpdatedMessageData\n >(formOfflineChanges)\n }\n ],\n otherwise: Joi.forbidden()\n }).description('The data/payload of the audit message'),\n messageCreatedAt: Joi.date()\n .required()\n .description('ISO timestamp when the message was published')\n })\n .required()\n .description('The audit message issued by the publishing service')\n\nexport const auditEvent = Joi.object<AuditEvent>()\n .keys({\n message: messageSchema\n })\n .description('The Body of the audit event')\n\nexport const auditRecord = messageSchema\n .append<AuditRecord>({\n id: idSchema,\n messageId: Joi.string().uuid().required(),\n entityId: Joi.string().required(),\n recordCreatedAt: Joi.date().required()\n })\n .description('The audit record persisted into the DB')\n"],"mappings":"AAAA,OAAOA,GAAG,MAA6B,KAAK;AAE5C,SACEC,yBAAyB,EACzBC,8BAA8B,EAC9BC,uBAAuB,EACvBC,qBAAqB,EACrBC,yBAAyB;AAoD3B,SAASC,2BAA2B;AACpC,SACEC,aAAa,EACbC,uBAAuB,EACvBC,QAAQ,EACRC,8BAA8B,EAC9BC,aAAa,EACbC,gBAAgB,EAChBC,eAAe,EACfC,kBAAkB,EAClBC,WAAW,EACXC,uBAAuB,EACvBC,uBAAuB,EACvBC,sBAAsB,EACtBC,UAAU,EACVC,wBAAwB,EACxBC,eAAe,EACfC,cAAc,EACdC,8BAA8B,EAC9BC,WAAW;AAGb,OAAO,MAAMC,mBAAmB,GAAGzB,GAAG,CAAC0B,MAAM,CAAsB;EACjEC,MAAM,EAAElB,QAAQ;EAChBmB,IAAI,EAAET,UAAU;EAChBU,OAAO,EAAE7B,GAAG,CAAC0B,MAAM,CAAC,CAAC,CAACI,QAAQ,CAAC;AACjC,CAAC,CAAC,CACCC,QAAQ,CAAC,CAAC,CACVC,WAAW,CAAC,wCAAwC,CAAC;AAExD,OAAO,MAAMC,sBAAsB,GAAGR,mBAAmB,CACtDS,MAAM,CAAyB;EAC9BC,KAAK,EAAEX,WAAW;EAClBY,YAAY,EAA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sources":["../../../../src/form/form-audit/types.ts"],"sourcesContent":["import {\n type AuditEventMessageCategory,\n type AuditEventMessageSchemaVersion,\n type AuditEventMessageSource,\n type AuditEventMessageType,\n type FormDefinitionRequestType\n} from '~/src/form/form-audit/enums.js'\nimport { type Output } from '~/src/form/form-definition/types.js'\nimport { type FormMetadataContact } from '~/src/form/form-metadata/types.js'\n\nexport interface FormMessageDataBase {\n formId: string\n slug: string\n payload?: unknown\n}\n\nexport interface ChangesMessageData<T> {\n previous: T\n new: T\n}\n\nexport interface FormCreatedMessageData extends FormMessageDataBase {\n title: string\n organisation: string\n teamName: string\n teamEmail: string\n}\n\nexport interface FormTitleChanges {\n title: string\n}\n\nexport interface FormOrganisationChanges {\n organisation: string\n}\n\nexport interface FormTeamNameChanges {\n teamName: string\n}\n\nexport interface FormTeamEmailChanges {\n teamEmail: string\n}\n\nexport interface FormSupportContactChanges {\n contact?: FormMetadataContact\n}\n\nexport interface FormSupportPhoneChanges {\n phone?: string\n}\n\nexport interface FormSupportEmailChanges {\n address?: string\n responseTime?: string\n}\n\nexport interface FormSupportOnlineChanges {\n url?: string\n text?: string\n}\n\nexport interface FormPrivacyNoticeChanges {\n privacyNoticeType?: string\n privacyNoticeText?: string\n privacyNoticeUrl?: string\n}\n\nexport interface FormTermsAndConditionsChanges {\n termsAndConditionsAgreed?: boolean\n}\n\nexport interface FormNotificationEmailChanges {\n notificationEmail?: string\n}\n\nexport interface FormSubmissionGuidanceChanges {\n submissionGuidance?: string\n}\n\nexport interface FormUploadedChanges {\n value: string\n}\n\nexport interface FormOfflineChanges {\n offline: boolean\n}\n\nexport interface FormTitleUpdatedMessageData extends FormMessageDataBase {\n changes: ChangesMessageData<FormTitleChanges>\n}\n\nexport interface FormOrganisationUpdatedMessageData extends FormMessageDataBase {\n changes: ChangesMessageData<FormOrganisationChanges>\n}\n\nexport interface FormTeamNameUpdatedMessageData extends FormMessageDataBase {\n changes: ChangesMessageData<FormTeamNameChanges>\n}\n\nexport interface FormTeamEmailUpdatedMessageData extends FormMessageDataBase {\n changes: ChangesMessageData<FormTeamEmailChanges>\n}\n\nexport interface FormSupportContactUpdatedMessageData extends FormMessageDataBase {\n changes: ChangesMessageData<FormSupportContactChanges>\n}\n\nexport interface FormSupportPhoneUpdatedMessageData extends FormMessageDataBase {\n changes: ChangesMessageData<FormSupportPhoneChanges>\n}\n\nexport interface FormSupportEmailUpdatedMessageData extends FormMessageDataBase {\n changes: ChangesMessageData<FormSupportEmailChanges>\n}\n\nexport interface FormSupportOnlineUpdatedMessageData extends FormMessageDataBase {\n changes: ChangesMessageData<FormSupportOnlineChanges>\n}\n\nexport interface FormPrivacyNoticeUpdatedMessageData extends FormMessageDataBase {\n changes: ChangesMessageData<FormPrivacyNoticeChanges>\n}\n\nexport interface FormTermsAndConditionsAgreedMessageData extends FormMessageDataBase {\n changes: ChangesMessageData<FormTermsAndConditionsChanges>\n}\n\nexport interface FormNotificationEmailUpdatedMessageData extends FormMessageDataBase {\n changes: ChangesMessageData<FormNotificationEmailChanges>\n}\n\nexport interface FormSubmissionGuidanceUpdatedMessageData extends FormMessageDataBase {\n changes: ChangesMessageData<FormSubmissionGuidanceChanges>\n}\n\nexport interface FormUploadedMessageData extends FormMessageDataBase {\n changes: ChangesMessageData<FormUploadedChanges>\n}\n\nexport interface FormOfflineUpdatedMessageData extends FormMessageDataBase {\n changes: ChangesMessageData<FormOfflineChanges>\n}\n\nexport interface FormFileDownloadedMessageData {\n fileId: string\n filename: string\n fileLink: string\n}\n\nexport interface ExcelGenerationMessageData {\n formId: string\n formName: string\n notificationEmail: string\n}\n\nexport interface FormSecretBaseMessageData extends FormMessageDataBase {\n formId: string\n slug: string\n secretName: string\n}\n\nexport interface FormDefinitionS3Meta {\n fileId: string\n filename: string\n s3Key: string\n}\n\n/**\n * What a single form update did to the form's submission email targets (the\n * `outputs` on the definition, surfaced to authors as \"email actions\").\n *\n * A `REPLACE_DRAFT` update carries the whole definition, so the audit message\n * would otherwise say nothing about which email address was added, amended or\n * removed. Collections that are empty are omitted, and the object as a whole is\n * absent from an update that left the outputs untouched.\n *\n * Validated by `formOutputChangesMessageData`.\n */\nexport interface FormOutputChanges {\n /**\n * Email targets the update introduced\n */\n added?: Output[]\n\n /**\n * Email targets the update amended, with the values either side of the change\n */\n updated?: ChangesMessageData<Output>[]\n\n /**\n * Email targets the update took away - either deleted directly by the author,\n * or removed as a consequence of deleting the condition they depended on\n */\n removed?: Output[]\n}\n\nexport interface FormUpdatedMessageData extends FormMessageDataBase {\n requestType: FormDefinitionRequestType\n s3Meta?: FormDefinitionS3Meta\n\n /**\n * What this update did to the form's submission email targets. Absent when\n * the update did not touch them.\n *\n * A `DELETE_CONDITION` update reports the outputs that went with the\n * condition, so the removal is recorded against the action that caused it\n * rather than being left to be inferred from a neighbouring event.\n */\n outputChanges?: FormOutputChanges\n}\n\nexport type FormMessageChangesData =\n | FormTitleUpdatedMessageData\n | FormOrganisationUpdatedMessageData\n | FormTeamNameUpdatedMessageData\n | FormTeamEmailUpdatedMessageData\n | FormSupportContactUpdatedMessageData\n | FormSupportPhoneUpdatedMessageData\n | FormSupportEmailUpdatedMessageData\n | FormSupportOnlineUpdatedMessageData\n | FormPrivacyNoticeUpdatedMessageData\n | FormTermsAndConditionsAgreedMessageData\n | FormNotificationEmailUpdatedMessageData\n | FormSubmissionGuidanceUpdatedMessageData\n | FormUploadedMessageData\n | FormOfflineUpdatedMessageData\n\nexport type FormMessageActivitiesData =\n | FormCreatedMessageData\n | FormMessageDataBase\n | FormFileDownloadedMessageData\n\nexport interface EntitlementMessageData {\n userId: string\n displayName: string\n email: string\n roles: string[]\n}\n\nexport interface AuthenticationMessageData {\n userId: string\n displayName: string\n}\n\nexport interface AuditUser {\n id: string\n displayName: string\n}\n\nexport interface FormsBackupRequestedMessageData {\n totalForms: number\n durationMs: number\n}\n\nexport interface DlqActionMessageData {\n action: string\n messageId?: string\n beforeJson?: string\n afterJson?: string\n}\n\nexport type MessageData =\n | FormMessageChangesData\n | FormMessageActivitiesData\n | FormUpdatedMessageData\n | EntitlementMessageData\n | AuthenticationMessageData\n | ExcelGenerationMessageData\n | FormFileDownloadedMessageData\n | FormsBackupRequestedMessageData\n | FormSecretBaseMessageData\n | DlqActionMessageData\n\nexport interface MessageBase {\n schemaVersion: AuditEventMessageSchemaVersion\n category: AuditEventMessageCategory\n source: AuditEventMessageSource\n type: AuditEventMessageType\n entityId: string\n traceId?: string\n createdAt: Date\n createdBy: AuditUser\n data?: MessageData\n messageCreatedAt: Date\n}\n\nexport interface ManagerMessageBase extends MessageBase {\n source: AuditEventMessageSource.FORMS_MANAGER\n}\nexport interface DesignerMessageBase extends MessageBase {\n source: AuditEventMessageSource.FORMS_DESIGNER\n}\n\nexport interface EntitlementMessageBase extends MessageBase {\n source: AuditEventMessageSource.ENTITLEMENT\n}\n\nexport interface AuthenticationMessageBase extends MessageBase {\n source: AuditEventMessageSource.AUTHENTICATION\n}\n\nexport interface FormCreatedMessage extends ManagerMessageBase {\n category: AuditEventMessageCategory.FORM\n type: AuditEventMessageType.FORM_CREATED\n data: FormCreatedMessageData\n}\n\nexport interface FormTitleUpdatedMessage extends ManagerMessageBase {\n category: AuditEventMessageCategory.FORM\n type: AuditEventMessageType.FORM_TITLE_UPDATED\n data: FormTitleUpdatedMessageData\n}\n\nexport interface FormOrganisationUpdatedMessage extends ManagerMessageBase {\n category: AuditEventMessageCategory.FORM\n type: AuditEventMessageType.FORM_ORGANISATION_UPDATED\n data: FormOrganisationUpdatedMessageData\n}\n\nexport interface FormTeamNameUpdatedMessage extends ManagerMessageBase {\n category: AuditEventMessageCategory.FORM\n type: AuditEventMessageType.FORM_TEAM_NAME_UPDATED\n data: FormTeamNameUpdatedMessageData\n}\n\nexport interface FormTeamEmailUpdatedMessage extends ManagerMessageBase {\n category: AuditEventMessageCategory.FORM\n type: AuditEventMessageType.FORM_TEAM_EMAIL_UPDATED\n data: FormTeamEmailUpdatedMessageData\n}\n\nexport interface FormSupportContactUpdatedMessage extends ManagerMessageBase {\n category: AuditEventMessageCategory.FORM\n type: AuditEventMessageType.FORM_SUPPORT_CONTACT_UPDATED\n data: FormSupportContactUpdatedMessageData\n}\n\nexport interface FormSupportPhoneUpdatedMessage extends DesignerMessageBase {\n category: AuditEventMessageCategory.FORM\n type: AuditEventMessageType.FORM_SUPPORT_PHONE_UPDATED\n data: FormSupportPhoneUpdatedMessageData\n}\n\nexport interface FormSupportEmailUpdatedMessage extends DesignerMessageBase {\n category: AuditEventMessageCategory.FORM\n type: AuditEventMessageType.FORM_SUPPORT_EMAIL_UPDATED\n data: FormSupportEmailUpdatedMessageData\n}\n\nexport interface FormSupportOnlineUpdatedMessage extends DesignerMessageBase {\n category: AuditEventMessageCategory.FORM\n type: AuditEventMessageType.FORM_SUPPORT_ONLINE_UPDATED\n data: FormSupportOnlineUpdatedMessageData\n}\n\nexport interface FormPrivacyNoticeUpdatedMessage extends ManagerMessageBase {\n category: AuditEventMessageCategory.FORM\n type: AuditEventMessageType.FORM_PRIVACY_NOTICE_UPDATED\n source: AuditEventMessageSource.FORMS_MANAGER\n data: FormPrivacyNoticeUpdatedMessageData\n}\n\nexport interface FormTermsAndConditionsAgreedMessage extends ManagerMessageBase {\n category: AuditEventMessageCategory.FORM\n type: AuditEventMessageType.FORM_TERMS_AND_CONDITIONS_AGREED\n source: AuditEventMessageSource.FORMS_MANAGER\n data: FormTermsAndConditionsAgreedMessageData\n}\n\nexport interface FormNotificationEmailUpdatedMessage extends ManagerMessageBase {\n category: AuditEventMessageCategory.FORM\n type: AuditEventMessageType.FORM_NOTIFICATION_EMAIL_UPDATED\n source: AuditEventMessageSource.FORMS_MANAGER\n data: FormNotificationEmailUpdatedMessageData\n}\n\nexport interface FormSubmissionGuidanceUpdatedMessage extends ManagerMessageBase {\n category: AuditEventMessageCategory.FORM\n type: AuditEventMessageType.FORM_SUBMISSION_GUIDANCE_UPDATED\n source: AuditEventMessageSource.FORMS_MANAGER\n data: FormSubmissionGuidanceUpdatedMessageData\n}\n\nexport interface FormUploadedMessage extends DesignerMessageBase {\n category: AuditEventMessageCategory.FORM\n type: AuditEventMessageType.FORM_JSON_UPLOADED\n data: FormUploadedMessageData\n}\n\nexport interface FormDownloadedMessage extends DesignerMessageBase {\n category: AuditEventMessageCategory.FORM\n type: AuditEventMessageType.FORM_JSON_DOWNLOADED\n data: FormMessageDataBase\n}\n\nexport interface FormFileDownloadSuccessMessage extends DesignerMessageBase {\n category: AuditEventMessageCategory.FORM\n type: AuditEventMessageType.FORM_FILE_DOWNLOAD_SUCCESS\n data: FormFileDownloadedMessageData\n}\n\nexport interface FormFileDownloadFailureMessage extends DesignerMessageBase {\n category: AuditEventMessageCategory.FORM\n type: AuditEventMessageType.FORM_FILE_DOWNLOAD_FAILURE\n data: FormFileDownloadedMessageData\n}\n\nexport interface FormDraftCreatedFromLiveMessage extends ManagerMessageBase {\n category: AuditEventMessageCategory.FORM\n type: AuditEventMessageType.FORM_DRAFT_CREATED_FROM_LIVE\n}\n\nexport interface FormLiveCreatedFromDraftMessage extends ManagerMessageBase {\n category: AuditEventMessageCategory.FORM\n type: AuditEventMessageType.FORM_LIVE_CREATED_FROM_DRAFT\n}\n\nexport interface FormDraftDeletedMessage extends ManagerMessageBase {\n category: AuditEventMessageCategory.FORM\n type: AuditEventMessageType.FORM_DRAFT_DELETED\n}\n\nexport interface FormMigratedMessage extends ManagerMessageBase {\n category: AuditEventMessageCategory.FORM\n type: AuditEventMessageType.FORM_MIGRATED\n}\n\nexport interface FormUpdatedMessage extends ManagerMessageBase {\n category: AuditEventMessageCategory.FORM\n type: AuditEventMessageType.FORM_UPDATED\n data: FormUpdatedMessageData\n}\n\nexport interface FormOfflineUpdatedMessage extends ManagerMessageBase {\n category: AuditEventMessageCategory.FORM\n type: AuditEventMessageType.FORM_OFFLINE_UPDATED\n data: FormOfflineUpdatedMessageData\n}\n\nexport interface EntitlementCreatedMessage extends EntitlementMessageBase {\n category: AuditEventMessageCategory.ENTITLEMENT\n type: AuditEventMessageType.ENTITLEMENT_CREATED\n data: EntitlementMessageData\n}\n\nexport interface EntitlementUpdatedMessage extends EntitlementMessageBase {\n category: AuditEventMessageCategory.ENTITLEMENT\n type: AuditEventMessageType.ENTITLEMENT_UPDATED\n data: EntitlementMessageData\n}\n\nexport interface EntitlementDeletedMessage extends EntitlementMessageBase {\n category: AuditEventMessageCategory.ENTITLEMENT\n type: AuditEventMessageType.ENTITLEMENT_DELETED\n data: EntitlementMessageData\n}\n\nexport interface AuthenticationLoginMessage extends AuthenticationMessageBase {\n category: AuditEventMessageCategory.AUTHENTICATION\n type: AuditEventMessageType.AUTHENTICATION_LOGIN\n data: AuthenticationMessageData\n}\n\nexport interface AuthenticationLogoutManualMessage extends AuthenticationMessageBase {\n category: AuditEventMessageCategory.AUTHENTICATION\n type: AuditEventMessageType.AUTHENTICATION_LOGOUT_MANUAL\n data: AuthenticationMessageData\n}\n\nexport interface AuthenticationLogoutAutoMessage extends AuthenticationMessageBase {\n category: AuditEventMessageCategory.AUTHENTICATION\n type: AuditEventMessageType.AUTHENTICATION_LOGOUT_AUTO\n data: AuthenticationMessageData\n}\n\nexport interface AuthenticationLogoutDifferentDeviceMessage extends AuthenticationMessageBase {\n category: AuditEventMessageCategory.AUTHENTICATION\n type: AuditEventMessageType.AUTHENTICATION_LOGOUT_DIFFERENT_DEVICE\n data: AuthenticationMessageData\n}\n\nexport interface FormSubmissionExcelRequestedMessage extends DesignerMessageBase {\n category: AuditEventMessageCategory.FORM\n type: AuditEventMessageType.FORM_SUBMISSION_EXCEL_REQUESTED\n data: ExcelGenerationMessageData\n}\n\nexport interface FormCsatExcelRequestedMessage extends DesignerMessageBase {\n category: AuditEventMessageCategory.FORM\n type: AuditEventMessageType.FORM_CSAT_EXCEL_REQUESTED\n data: ExcelGenerationMessageData\n}\n\nexport interface PlatformCsatExcelRequestedMessage extends DesignerMessageBase {\n category: AuditEventMessageCategory.FORM\n type: AuditEventMessageType.PLATFORM_CSAT_EXCEL_REQUESTED\n data: ExcelGenerationMessageData\n}\n\nexport interface PlatformMetricsDownloadRequestedMessage extends DesignerMessageBase {\n category: AuditEventMessageCategory.FORM\n type: AuditEventMessageType.PLATFORM_METRICS_DOWNLOAD_REQUESTED\n}\n\nexport interface FormsBackupRequestedMessage extends DesignerMessageBase {\n type: AuditEventMessageType.FORMS_BACKUP_REQUESTED\n data: FormsBackupRequestedMessageData\n}\n\nexport interface DlqActionMessage extends DesignerMessageBase {\n category: AuditEventMessageCategory.OPERATIONS\n type: AuditEventMessageType.DLQ_ACTION\n data: DlqActionMessageData\n}\n\nexport interface FormSecretDeletedMessage extends ManagerMessageBase {\n category: AuditEventMessageCategory.FORM\n type: AuditEventMessageType.FORM_SECRET_DELETED\n data: FormSecretBaseMessageData\n}\n\nexport interface FormSecretSavedMessage extends ManagerMessageBase {\n category: AuditEventMessageCategory.FORM\n type: AuditEventMessageType.FORM_SECRET_SAVED\n data: FormSecretBaseMessageData\n}\n\nexport type AuditMessage =\n | FormCreatedMessage\n | FormTitleUpdatedMessage\n | FormOrganisationUpdatedMessage\n | FormTeamNameUpdatedMessage\n | FormTeamEmailUpdatedMessage\n | FormSupportContactUpdatedMessage\n | FormSupportPhoneUpdatedMessage\n | FormSupportEmailUpdatedMessage\n | FormSupportOnlineUpdatedMessage\n | FormPrivacyNoticeUpdatedMessage\n | FormTermsAndConditionsAgreedMessage\n | FormNotificationEmailUpdatedMessage\n | FormSubmissionGuidanceUpdatedMessage\n | FormUploadedMessage\n | FormDownloadedMessage\n | FormFileDownloadSuccessMessage\n | FormFileDownloadFailureMessage\n | FormDraftCreatedFromLiveMessage\n | FormLiveCreatedFromDraftMessage\n | FormDraftDeletedMessage\n | FormMigratedMessage\n | FormUpdatedMessage\n | FormOfflineUpdatedMessage\n | EntitlementCreatedMessage\n | EntitlementUpdatedMessage\n | EntitlementDeletedMessage\n | AuthenticationLoginMessage\n | AuthenticationLogoutManualMessage\n | AuthenticationLogoutAutoMessage\n | AuthenticationLogoutDifferentDeviceMessage\n | FormSubmissionExcelRequestedMessage\n | FormCsatExcelRequestedMessage\n | PlatformCsatExcelRequestedMessage\n | PlatformMetricsDownloadRequestedMessage\n | FormsBackupRequestedMessage\n | FormSecretDeletedMessage\n | FormSecretSavedMessage\n | DlqActionMessage\n\nexport interface AuditEvent {\n message: AuditMessage\n}\n\nexport interface AuditMetaBase {\n messageId: string\n recordCreatedAt: Date\n}\n\nexport interface AuditInputMeta extends AuditMetaBase {\n id: string\n}\n\nexport type AuditRecordInput = AuditMessage & AuditMetaBase\n\nexport type AuditRecord = AuditMessage & AuditInputMeta\n\nexport interface MessageBody {\n Message: string\n}\n\n/**\n * Consolidated audit record that represents multiple grouped events.\n * Combines AuditRecord with consolidation metadata.\n */\nexport type ConsolidatedAuditRecord = AuditRecord & {\n /** Number of events consolidated into this record */\n consolidatedCount: number\n /** Timestamp of the earliest event in the group */\n consolidatedFrom: Date\n /** Timestamp of the latest event in the group */\n consolidatedTo: Date\n}\n"],"mappings":"","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"types.js","names":[],"sources":["../../../../src/form/form-audit/types.ts"],"sourcesContent":["import {\n type AuditEventMessageCategory,\n type AuditEventMessageSchemaVersion,\n type AuditEventMessageSource,\n type AuditEventMessageType,\n type FormDefinitionRequestType\n} from '~/src/form/form-audit/enums.js'\nimport { type Output } from '~/src/form/form-definition/types.js'\nimport { type FormMetadataContact } from '~/src/form/form-metadata/types.js'\n\nexport interface FormMessageDataBase {\n formId: string\n slug: string\n payload?: unknown\n}\n\nexport interface ChangesMessageData<T> {\n previous: T\n new: T\n}\n\nexport interface FormCreatedMessageData extends FormMessageDataBase {\n title: string\n organisation: string\n teamName: string\n teamEmail: string\n}\n\nexport interface FormTitleChanges {\n title: string\n}\n\nexport interface FormOrganisationChanges {\n organisation: string\n}\n\nexport interface FormTeamNameChanges {\n teamName: string\n}\n\nexport interface FormTeamEmailChanges {\n teamEmail: string\n}\n\nexport interface FormSupportContactChanges {\n contact?: FormMetadataContact\n}\n\nexport interface FormSupportPhoneChanges {\n phone?: string\n}\n\nexport interface FormSupportEmailChanges {\n address?: string\n responseTime?: string\n}\n\nexport interface FormSupportOnlineChanges {\n url?: string\n text?: string\n}\n\nexport interface FormPrivacyNoticeChanges {\n privacyNoticeType?: string\n privacyNoticeText?: string\n privacyNoticeUrl?: string\n}\n\nexport interface FormTermsAndConditionsChanges {\n termsAndConditionsAgreed?: boolean\n}\n\nexport interface FormNotificationEmailChanges {\n notificationEmail?: string\n}\n\nexport interface FormSubmissionGuidanceChanges {\n submissionGuidance?: string\n}\n\nexport interface FormUploadedChanges {\n value: string\n}\n\nexport interface FormOfflineChanges {\n offline: boolean\n}\n\nexport interface FormTitleUpdatedMessageData extends FormMessageDataBase {\n changes: ChangesMessageData<FormTitleChanges>\n}\n\nexport interface FormOrganisationUpdatedMessageData extends FormMessageDataBase {\n changes: ChangesMessageData<FormOrganisationChanges>\n}\n\nexport interface FormTeamNameUpdatedMessageData extends FormMessageDataBase {\n changes: ChangesMessageData<FormTeamNameChanges>\n}\n\nexport interface FormTeamEmailUpdatedMessageData extends FormMessageDataBase {\n changes: ChangesMessageData<FormTeamEmailChanges>\n}\n\nexport interface FormSupportContactUpdatedMessageData extends FormMessageDataBase {\n changes: ChangesMessageData<FormSupportContactChanges>\n}\n\nexport interface FormSupportPhoneUpdatedMessageData extends FormMessageDataBase {\n changes: ChangesMessageData<FormSupportPhoneChanges>\n}\n\nexport interface FormSupportEmailUpdatedMessageData extends FormMessageDataBase {\n changes: ChangesMessageData<FormSupportEmailChanges>\n}\n\nexport interface FormSupportOnlineUpdatedMessageData extends FormMessageDataBase {\n changes: ChangesMessageData<FormSupportOnlineChanges>\n}\n\nexport interface FormPrivacyNoticeUpdatedMessageData extends FormMessageDataBase {\n changes: ChangesMessageData<FormPrivacyNoticeChanges>\n}\n\nexport interface FormTermsAndConditionsAgreedMessageData extends FormMessageDataBase {\n changes: ChangesMessageData<FormTermsAndConditionsChanges>\n}\n\nexport interface FormNotificationEmailUpdatedMessageData extends FormMessageDataBase {\n changes: ChangesMessageData<FormNotificationEmailChanges>\n}\n\nexport interface FormSubmissionGuidanceUpdatedMessageData extends FormMessageDataBase {\n changes: ChangesMessageData<FormSubmissionGuidanceChanges>\n}\n\nexport interface FormUploadedMessageData extends FormMessageDataBase {\n changes: ChangesMessageData<FormUploadedChanges>\n}\n\nexport interface FormOfflineUpdatedMessageData extends FormMessageDataBase {\n changes: ChangesMessageData<FormOfflineChanges>\n}\n\nexport interface FormFileDownloadedMessageData {\n fileId: string\n filename: string\n fileLink: string\n}\n\nexport interface ExcelGenerationMessageData {\n formId: string\n formName: string\n notificationEmail: string\n}\n\nexport interface FormSecretBaseMessageData extends FormMessageDataBase {\n formId: string\n slug: string\n secretName: string\n}\n\nexport interface FormDefinitionS3Meta {\n fileId: string\n filename: string\n s3Key: string\n}\n\n/**\n * What a single form update did to the form's submission email targets (the\n * `outputs` on the definition, surfaced to authors as \"email actions\").\n *\n * A `REPLACE_DRAFT` update carries the whole definition, so the audit message\n * would otherwise say nothing about which email address was added, amended or\n * removed. Collections that are empty are omitted, and the object as a whole is\n * absent from an update that left the outputs untouched.\n *\n * Validated by `formOutputChangesMessageData`.\n */\nexport interface FormOutputChanges {\n /**\n * Email targets the update introduced\n */\n added?: Output[]\n\n /**\n * Email targets the update amended, with the values either side of the change\n */\n updated?: ChangesMessageData<Output>[]\n\n /**\n * Email targets the update took away - either deleted directly by the author,\n * or removed as a consequence of deleting the condition they depended on\n */\n removed?: Output[]\n}\n\nexport interface FormUpdatedMessageData extends FormMessageDataBase {\n requestType: FormDefinitionRequestType\n s3Meta?: FormDefinitionS3Meta\n\n /**\n * What this update did to the form's submission email targets. Absent when\n * the update did not touch them.\n *\n * A `DELETE_CONDITION` update reports the outputs that went with the\n * condition, so the removal is recorded against the action that caused it\n * rather than being left to be inferred from a neighbouring event.\n */\n outputChanges?: FormOutputChanges\n}\n\nexport type FormMessageChangesData =\n | FormTitleUpdatedMessageData\n | FormOrganisationUpdatedMessageData\n | FormTeamNameUpdatedMessageData\n | FormTeamEmailUpdatedMessageData\n | FormSupportContactUpdatedMessageData\n | FormSupportPhoneUpdatedMessageData\n | FormSupportEmailUpdatedMessageData\n | FormSupportOnlineUpdatedMessageData\n | FormPrivacyNoticeUpdatedMessageData\n | FormTermsAndConditionsAgreedMessageData\n | FormNotificationEmailUpdatedMessageData\n | FormSubmissionGuidanceUpdatedMessageData\n | FormUploadedMessageData\n | FormOfflineUpdatedMessageData\n\nexport type FormMessageActivitiesData =\n | FormCreatedMessageData\n | FormMessageDataBase\n | FormFileDownloadedMessageData\n\nexport interface EntitlementMessageData {\n userId: string\n displayName: string\n email: string\n roles: string[]\n}\n\nexport interface AuthenticationMessageData {\n userId: string\n displayName: string\n}\n\nexport interface AuditUser {\n id: string\n displayName: string\n}\n\nexport interface IdentityMessageData {\n accountId?: string\n email?: string\n phone?: string\n purpose?: string\n uid?: string\n changed?: {\n old: string\n new: string\n }\n}\n\nexport interface FormsBackupRequestedMessageData {\n totalForms: number\n durationMs: number\n}\n\nexport interface DlqActionMessageData {\n action: string\n messageId?: string\n beforeJson?: string\n afterJson?: string\n}\n\nexport type MessageData =\n | FormMessageChangesData\n | FormMessageActivitiesData\n | FormUpdatedMessageData\n | EntitlementMessageData\n | AuthenticationMessageData\n | ExcelGenerationMessageData\n | FormFileDownloadedMessageData\n | FormsBackupRequestedMessageData\n | FormSecretBaseMessageData\n | DlqActionMessageData\n | IdentityMessageData\n\nexport interface MessageBase {\n schemaVersion: AuditEventMessageSchemaVersion\n category: AuditEventMessageCategory\n source: AuditEventMessageSource\n type: AuditEventMessageType\n entityId: string\n traceId?: string\n createdAt: Date\n createdBy: AuditUser\n data?: MessageData\n messageCreatedAt: Date\n}\n\nexport interface ManagerMessageBase extends MessageBase {\n source: AuditEventMessageSource.FORMS_MANAGER\n}\nexport interface DesignerMessageBase extends MessageBase {\n source: AuditEventMessageSource.FORMS_DESIGNER\n}\n\nexport interface EntitlementMessageBase extends MessageBase {\n source: AuditEventMessageSource.ENTITLEMENT\n}\n\nexport interface AuthenticationMessageBase extends MessageBase {\n source: AuditEventMessageSource.AUTHENTICATION\n}\n\nexport interface IdentityMessageBase extends MessageBase {\n source: AuditEventMessageSource.FORMS_IDENTITY\n}\n\nexport interface FormCreatedMessage extends ManagerMessageBase {\n category: AuditEventMessageCategory.FORM\n type: AuditEventMessageType.FORM_CREATED\n data: FormCreatedMessageData\n}\n\nexport interface FormTitleUpdatedMessage extends ManagerMessageBase {\n category: AuditEventMessageCategory.FORM\n type: AuditEventMessageType.FORM_TITLE_UPDATED\n data: FormTitleUpdatedMessageData\n}\n\nexport interface FormOrganisationUpdatedMessage extends ManagerMessageBase {\n category: AuditEventMessageCategory.FORM\n type: AuditEventMessageType.FORM_ORGANISATION_UPDATED\n data: FormOrganisationUpdatedMessageData\n}\n\nexport interface FormTeamNameUpdatedMessage extends ManagerMessageBase {\n category: AuditEventMessageCategory.FORM\n type: AuditEventMessageType.FORM_TEAM_NAME_UPDATED\n data: FormTeamNameUpdatedMessageData\n}\n\nexport interface FormTeamEmailUpdatedMessage extends ManagerMessageBase {\n category: AuditEventMessageCategory.FORM\n type: AuditEventMessageType.FORM_TEAM_EMAIL_UPDATED\n data: FormTeamEmailUpdatedMessageData\n}\n\nexport interface FormSupportContactUpdatedMessage extends ManagerMessageBase {\n category: AuditEventMessageCategory.FORM\n type: AuditEventMessageType.FORM_SUPPORT_CONTACT_UPDATED\n data: FormSupportContactUpdatedMessageData\n}\n\nexport interface FormSupportPhoneUpdatedMessage extends DesignerMessageBase {\n category: AuditEventMessageCategory.FORM\n type: AuditEventMessageType.FORM_SUPPORT_PHONE_UPDATED\n data: FormSupportPhoneUpdatedMessageData\n}\n\nexport interface FormSupportEmailUpdatedMessage extends DesignerMessageBase {\n category: AuditEventMessageCategory.FORM\n type: AuditEventMessageType.FORM_SUPPORT_EMAIL_UPDATED\n data: FormSupportEmailUpdatedMessageData\n}\n\nexport interface FormSupportOnlineUpdatedMessage extends DesignerMessageBase {\n category: AuditEventMessageCategory.FORM\n type: AuditEventMessageType.FORM_SUPPORT_ONLINE_UPDATED\n data: FormSupportOnlineUpdatedMessageData\n}\n\nexport interface FormPrivacyNoticeUpdatedMessage extends ManagerMessageBase {\n category: AuditEventMessageCategory.FORM\n type: AuditEventMessageType.FORM_PRIVACY_NOTICE_UPDATED\n source: AuditEventMessageSource.FORMS_MANAGER\n data: FormPrivacyNoticeUpdatedMessageData\n}\n\nexport interface FormTermsAndConditionsAgreedMessage extends ManagerMessageBase {\n category: AuditEventMessageCategory.FORM\n type: AuditEventMessageType.FORM_TERMS_AND_CONDITIONS_AGREED\n source: AuditEventMessageSource.FORMS_MANAGER\n data: FormTermsAndConditionsAgreedMessageData\n}\n\nexport interface FormNotificationEmailUpdatedMessage extends ManagerMessageBase {\n category: AuditEventMessageCategory.FORM\n type: AuditEventMessageType.FORM_NOTIFICATION_EMAIL_UPDATED\n source: AuditEventMessageSource.FORMS_MANAGER\n data: FormNotificationEmailUpdatedMessageData\n}\n\nexport interface FormSubmissionGuidanceUpdatedMessage extends ManagerMessageBase {\n category: AuditEventMessageCategory.FORM\n type: AuditEventMessageType.FORM_SUBMISSION_GUIDANCE_UPDATED\n source: AuditEventMessageSource.FORMS_MANAGER\n data: FormSubmissionGuidanceUpdatedMessageData\n}\n\nexport interface FormUploadedMessage extends DesignerMessageBase {\n category: AuditEventMessageCategory.FORM\n type: AuditEventMessageType.FORM_JSON_UPLOADED\n data: FormUploadedMessageData\n}\n\nexport interface FormDownloadedMessage extends DesignerMessageBase {\n category: AuditEventMessageCategory.FORM\n type: AuditEventMessageType.FORM_JSON_DOWNLOADED\n data: FormMessageDataBase\n}\n\nexport interface FormFileDownloadSuccessMessage extends DesignerMessageBase {\n category: AuditEventMessageCategory.FORM\n type: AuditEventMessageType.FORM_FILE_DOWNLOAD_SUCCESS\n data: FormFileDownloadedMessageData\n}\n\nexport interface FormFileDownloadFailureMessage extends DesignerMessageBase {\n category: AuditEventMessageCategory.FORM\n type: AuditEventMessageType.FORM_FILE_DOWNLOAD_FAILURE\n data: FormFileDownloadedMessageData\n}\n\nexport interface FormDraftCreatedFromLiveMessage extends ManagerMessageBase {\n category: AuditEventMessageCategory.FORM\n type: AuditEventMessageType.FORM_DRAFT_CREATED_FROM_LIVE\n}\n\nexport interface FormLiveCreatedFromDraftMessage extends ManagerMessageBase {\n category: AuditEventMessageCategory.FORM\n type: AuditEventMessageType.FORM_LIVE_CREATED_FROM_DRAFT\n}\n\nexport interface FormDraftDeletedMessage extends ManagerMessageBase {\n category: AuditEventMessageCategory.FORM\n type: AuditEventMessageType.FORM_DRAFT_DELETED\n}\n\nexport interface FormMigratedMessage extends ManagerMessageBase {\n category: AuditEventMessageCategory.FORM\n type: AuditEventMessageType.FORM_MIGRATED\n}\n\nexport interface FormUpdatedMessage extends ManagerMessageBase {\n category: AuditEventMessageCategory.FORM\n type: AuditEventMessageType.FORM_UPDATED\n data: FormUpdatedMessageData\n}\n\nexport interface FormOfflineUpdatedMessage extends ManagerMessageBase {\n category: AuditEventMessageCategory.FORM\n type: AuditEventMessageType.FORM_OFFLINE_UPDATED\n data: FormOfflineUpdatedMessageData\n}\n\nexport interface EntitlementCreatedMessage extends EntitlementMessageBase {\n category: AuditEventMessageCategory.ENTITLEMENT\n type: AuditEventMessageType.ENTITLEMENT_CREATED\n data: EntitlementMessageData\n}\n\nexport interface EntitlementUpdatedMessage extends EntitlementMessageBase {\n category: AuditEventMessageCategory.ENTITLEMENT\n type: AuditEventMessageType.ENTITLEMENT_UPDATED\n data: EntitlementMessageData\n}\n\nexport interface EntitlementDeletedMessage extends EntitlementMessageBase {\n category: AuditEventMessageCategory.ENTITLEMENT\n type: AuditEventMessageType.ENTITLEMENT_DELETED\n data: EntitlementMessageData\n}\n\nexport interface AuthenticationLoginMessage extends AuthenticationMessageBase {\n category: AuditEventMessageCategory.AUTHENTICATION\n type: AuditEventMessageType.AUTHENTICATION_LOGIN\n data: AuthenticationMessageData\n}\n\nexport interface AuthenticationLogoutManualMessage extends AuthenticationMessageBase {\n category: AuditEventMessageCategory.AUTHENTICATION\n type: AuditEventMessageType.AUTHENTICATION_LOGOUT_MANUAL\n data: AuthenticationMessageData\n}\n\nexport interface AuthenticationLogoutAutoMessage extends AuthenticationMessageBase {\n category: AuditEventMessageCategory.AUTHENTICATION\n type: AuditEventMessageType.AUTHENTICATION_LOGOUT_AUTO\n data: AuthenticationMessageData\n}\n\nexport interface AuthenticationLogoutDifferentDeviceMessage extends AuthenticationMessageBase {\n category: AuditEventMessageCategory.AUTHENTICATION\n type: AuditEventMessageType.AUTHENTICATION_LOGOUT_DIFFERENT_DEVICE\n data: AuthenticationMessageData\n}\n\nexport interface FormSubmissionExcelRequestedMessage extends DesignerMessageBase {\n category: AuditEventMessageCategory.FORM\n type: AuditEventMessageType.FORM_SUBMISSION_EXCEL_REQUESTED\n data: ExcelGenerationMessageData\n}\n\nexport interface FormCsatExcelRequestedMessage extends DesignerMessageBase {\n category: AuditEventMessageCategory.FORM\n type: AuditEventMessageType.FORM_CSAT_EXCEL_REQUESTED\n data: ExcelGenerationMessageData\n}\n\nexport interface PlatformCsatExcelRequestedMessage extends DesignerMessageBase {\n category: AuditEventMessageCategory.FORM\n type: AuditEventMessageType.PLATFORM_CSAT_EXCEL_REQUESTED\n data: ExcelGenerationMessageData\n}\n\nexport interface PlatformMetricsDownloadRequestedMessage extends DesignerMessageBase {\n category: AuditEventMessageCategory.FORM\n type: AuditEventMessageType.PLATFORM_METRICS_DOWNLOAD_REQUESTED\n}\n\nexport interface FormsBackupRequestedMessage extends DesignerMessageBase {\n type: AuditEventMessageType.FORMS_BACKUP_REQUESTED\n data: FormsBackupRequestedMessageData\n}\n\nexport interface DlqActionMessage extends DesignerMessageBase {\n category: AuditEventMessageCategory.OPERATIONS\n type: AuditEventMessageType.DLQ_ACTION\n data: DlqActionMessageData\n}\n\nexport interface FormSecretDeletedMessage extends ManagerMessageBase {\n category: AuditEventMessageCategory.FORM\n type: AuditEventMessageType.FORM_SECRET_DELETED\n data: FormSecretBaseMessageData\n}\n\nexport interface FormSecretSavedMessage extends ManagerMessageBase {\n category: AuditEventMessageCategory.FORM\n type: AuditEventMessageType.FORM_SECRET_SAVED\n data: FormSecretBaseMessageData\n}\n\nexport interface IdentitySignInSuccessfulMessage extends IdentityMessageBase {\n category: AuditEventMessageCategory.AUTHENTICATION\n type: AuditEventMessageType.IDENTITY_SIGN_IN_SUCCESSFUL\n data: IdentityMessageData\n}\n\nexport interface IdentitySignOutMessage extends IdentityMessageBase {\n category: AuditEventMessageCategory.AUTHENTICATION\n type: AuditEventMessageType.IDENTITY_SIGN_OUT\n data: IdentityMessageData\n}\n\nexport interface IdentityRegistrationMessage extends IdentityMessageBase {\n category: AuditEventMessageCategory.AUTHENTICATION\n type: AuditEventMessageType.IDENTITY_REGISTRATION\n data: IdentityMessageData\n}\n\nexport interface IdentityTooManyOtpsRequestedMessage extends IdentityMessageBase {\n category: AuditEventMessageCategory.AUTHENTICATION\n type: AuditEventMessageType.IDENTITY_TOO_MANY_OTPS_REQUESTED\n data: IdentityMessageData\n}\n\nexport interface IdentityIncorrectCodeEnteredMessage extends IdentityMessageBase {\n category: AuditEventMessageCategory.AUTHENTICATION\n type: AuditEventMessageType.IDENTITY_INCORRECT_CODE_ENTERED\n data: IdentityMessageData\n}\n\nexport interface IdentityIncorrectCodeLockoutMessage extends IdentityMessageBase {\n category: AuditEventMessageCategory.AUTHENTICATION\n type: AuditEventMessageType.IDENTITY_INCORRECT_CODE_LOCKOUT\n data: IdentityMessageData\n}\n\nexport interface IdentityAccountDeletionMessage extends IdentityMessageBase {\n category: AuditEventMessageCategory.AUTHENTICATION\n type: AuditEventMessageType.IDENTITY_ACCOUNT_DELETION\n data: IdentityMessageData\n}\n\nexport interface IdentityEmailAddressUpdatedMessage extends IdentityMessageBase {\n category: AuditEventMessageCategory.AUTHENTICATION\n type: AuditEventMessageType.IDENTITY_EMAIL_ADDRESS_UPDATED\n data: IdentityMessageData\n}\n\nexport interface IdentityPhoneNumberUpdatedMessage extends IdentityMessageBase {\n category: AuditEventMessageCategory.AUTHENTICATION\n type: AuditEventMessageType.IDENTITY_PHONE_NUMBER_UPDATED\n data: IdentityMessageData\n}\n\nexport type AuditMessage =\n | FormCreatedMessage\n | FormTitleUpdatedMessage\n | FormOrganisationUpdatedMessage\n | FormTeamNameUpdatedMessage\n | FormTeamEmailUpdatedMessage\n | FormSupportContactUpdatedMessage\n | FormSupportPhoneUpdatedMessage\n | FormSupportEmailUpdatedMessage\n | FormSupportOnlineUpdatedMessage\n | FormPrivacyNoticeUpdatedMessage\n | FormTermsAndConditionsAgreedMessage\n | FormNotificationEmailUpdatedMessage\n | FormSubmissionGuidanceUpdatedMessage\n | FormUploadedMessage\n | FormDownloadedMessage\n | FormFileDownloadSuccessMessage\n | FormFileDownloadFailureMessage\n | FormDraftCreatedFromLiveMessage\n | FormLiveCreatedFromDraftMessage\n | FormDraftDeletedMessage\n | FormMigratedMessage\n | FormUpdatedMessage\n | FormOfflineUpdatedMessage\n | EntitlementCreatedMessage\n | EntitlementUpdatedMessage\n | EntitlementDeletedMessage\n | AuthenticationLoginMessage\n | AuthenticationLogoutManualMessage\n | AuthenticationLogoutAutoMessage\n | AuthenticationLogoutDifferentDeviceMessage\n | FormSubmissionExcelRequestedMessage\n | FormCsatExcelRequestedMessage\n | PlatformCsatExcelRequestedMessage\n | PlatformMetricsDownloadRequestedMessage\n | FormsBackupRequestedMessage\n | FormSecretDeletedMessage\n | FormSecretSavedMessage\n | DlqActionMessage\n | IdentitySignInSuccessfulMessage\n | IdentitySignOutMessage\n | IdentityRegistrationMessage\n | IdentityTooManyOtpsRequestedMessage\n | IdentityIncorrectCodeEnteredMessage\n | IdentityIncorrectCodeLockoutMessage\n | IdentityAccountDeletionMessage\n | IdentityEmailAddressUpdatedMessage\n | IdentityPhoneNumberUpdatedMessage\n\nexport interface AuditEvent {\n message: AuditMessage\n}\n\nexport interface AuditMetaBase {\n messageId: string\n recordCreatedAt: Date\n}\n\nexport interface AuditInputMeta extends AuditMetaBase {\n id: string\n}\n\nexport type AuditRecordInput = AuditMessage & AuditMetaBase\n\nexport type AuditRecord = AuditMessage & AuditInputMeta\n\nexport interface MessageBody {\n Message: string\n}\n\n/**\n * Consolidated audit record that represents multiple grouped events.\n * Combines AuditRecord with consolidation metadata.\n */\nexport type ConsolidatedAuditRecord = AuditRecord & {\n /** Number of events consolidated into this record */\n consolidatedCount: number\n /** Timestamp of the earliest event in the group */\n consolidatedFrom: Date\n /** Timestamp of the latest event in the group */\n consolidatedTo: Date\n}\n"],"mappings":"","ignoreList":[]}
|
|
@@ -3,6 +3,7 @@ export let FormMetricType = /*#__PURE__*/function (FormMetricType) {
|
|
|
3
3
|
FormMetricType["OverviewMetric"] = "overview-metric";
|
|
4
4
|
FormMetricType["TimelineMetric"] = "timeline-metric";
|
|
5
5
|
FormMetricType["DrilldownMetric"] = "drilldown-metric";
|
|
6
|
+
FormMetricType["FunctionalAreaTotalsMetric"] = "functional-area-totals-metric";
|
|
6
7
|
return FormMetricType;
|
|
7
8
|
}({});
|
|
8
9
|
export let FormMetricName = /*#__PURE__*/function (FormMetricName) {
|
|
@@ -14,4 +15,22 @@ export let FormMetricName = /*#__PURE__*/function (FormMetricName) {
|
|
|
14
15
|
FormMetricName["TimeToPublish"] = "TimeToPublish";
|
|
15
16
|
return FormMetricName;
|
|
16
17
|
}({});
|
|
18
|
+
export let FunctionalAreaType = /*#__PURE__*/function (FunctionalAreaType) {
|
|
19
|
+
FunctionalAreaType["Signin"] = "Signin"; // Add these later as needed
|
|
20
|
+
// CopyAnswers = 'copy-answers',
|
|
21
|
+
// EditAndResubmit = 'edit-and-resubmit'
|
|
22
|
+
return FunctionalAreaType;
|
|
23
|
+
}({});
|
|
24
|
+
export let SigninMetricName = /*#__PURE__*/function (SigninMetricName) {
|
|
25
|
+
SigninMetricName["Registration"] = "Registration";
|
|
26
|
+
SigninMetricName["SuccessfulAuthentication"] = "SuccessfulAuthentication";
|
|
27
|
+
SigninMetricName["TooManyCodeRequests"] = "TooManyCodeRequests";
|
|
28
|
+
SigninMetricName["IncorrectCodeEntered"] = "IncorrectCodeEntered";
|
|
29
|
+
SigninMetricName["AccountDeletion"] = "AccountDeletion";
|
|
30
|
+
SigninMetricName["EmailAddressUpdate"] = "EmailAddressUpdate";
|
|
31
|
+
SigninMetricName["PhoneNumberUpdate"] = "PhoneNumberUpdate"; // Add these when 'forgotten details' journey is implemented
|
|
32
|
+
// ForgottenDetailsJourney = 'ForgottenDetailsJourney',
|
|
33
|
+
// PhoneNumberNotAssociatedWithAccount = 'PhoneNumberNotAssociatedWithAccount'
|
|
34
|
+
return SigninMetricName;
|
|
35
|
+
}({});
|
|
17
36
|
//# sourceMappingURL=enums.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.js","names":["FormMetricType","FormMetricName"],"sources":["../../../../src/form/form-metrics/enums.ts"],"sourcesContent":["export enum FormMetricType {\n TotalsMetric = 'totals-metric',\n OverviewMetric = 'overview-metric',\n TimelineMetric = 'timeline-metric',\n DrilldownMetric = 'drilldown-metric'\n}\n\nexport enum FormMetricName {\n NewFormsCreated = 'NewFormsCreated',\n FormsFirstPublished = 'FormsFirstPublished',\n FormsRePublished = 'FormsRePublished',\n Submissions = 'Submissions',\n FormsInDraft = 'FormsInDraft',\n TimeToPublish = 'TimeToPublish'\n}\n"],"mappings":"AAAA,WAAYA,cAAc,0BAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAA,OAAdA,cAAc;AAAA;
|
|
1
|
+
{"version":3,"file":"enums.js","names":["FormMetricType","FormMetricName","FunctionalAreaType","SigninMetricName"],"sources":["../../../../src/form/form-metrics/enums.ts"],"sourcesContent":["export enum FormMetricType {\n TotalsMetric = 'totals-metric',\n OverviewMetric = 'overview-metric',\n TimelineMetric = 'timeline-metric',\n DrilldownMetric = 'drilldown-metric',\n FunctionalAreaTotalsMetric = 'functional-area-totals-metric'\n}\n\nexport enum FormMetricName {\n NewFormsCreated = 'NewFormsCreated',\n FormsFirstPublished = 'FormsFirstPublished',\n FormsRePublished = 'FormsRePublished',\n Submissions = 'Submissions',\n FormsInDraft = 'FormsInDraft',\n TimeToPublish = 'TimeToPublish'\n}\n\nexport enum FunctionalAreaType {\n Signin = 'Signin'\n // Add these later as needed\n // CopyAnswers = 'copy-answers',\n // EditAndResubmit = 'edit-and-resubmit'\n}\n\nexport enum SigninMetricName {\n Registration = 'Registration',\n SuccessfulAuthentication = 'SuccessfulAuthentication',\n TooManyCodeRequests = 'TooManyCodeRequests',\n IncorrectCodeEntered = 'IncorrectCodeEntered',\n AccountDeletion = 'AccountDeletion',\n EmailAddressUpdate = 'EmailAddressUpdate',\n PhoneNumberUpdate = 'PhoneNumberUpdate'\n // Add these when 'forgotten details' journey is implemented\n // ForgottenDetailsJourney = 'ForgottenDetailsJourney',\n // PhoneNumberNotAssociatedWithAccount = 'PhoneNumberNotAssociatedWithAccount'\n}\n"],"mappings":"AAAA,WAAYA,cAAc,0BAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAA,OAAdA,cAAc;AAAA;AAQ1B,WAAYC,cAAc,0BAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAA,OAAdA,cAAc;AAAA;AAS1B,WAAYC,kBAAkB,0BAAlBA,kBAAkB;EAAlBA,kBAAkB,uBAE5B;EACA;EACA;EAAA,OAJUA,kBAAkB;AAAA;AAO9B,WAAYC,gBAAgB,0BAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB,6CAQ1B;EACA;EACA;EAAA,OAVUA,gBAAgB;AAAA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","names":[],"sources":["../../../../src/form/form-metrics/types.ts"],"sourcesContent":["import { type FormStatus } from '~/src/common/enums.js'\nimport {\n type FormMetricName,\n type FormMetricType\n} from '~/src/form/form-metrics/enums.js'\n\nexport interface FormTotalMetric {\n count?: number\n details?: {\n formId: string\n metricValue?: string | Date | number\n createdAt?: Date\n }\n}\n\nexport interface FormTotalsMetric {\n type: FormMetricType.TotalsMetric\n last7Days?: Record<FormMetricName, FormTotalMetric>\n prev7Days?: Record<FormMetricName, FormTotalMetric>\n last30Days?: Record<FormMetricName, FormTotalMetric>\n prev30Days?: Record<FormMetricName, FormTotalMetric>\n lastYear?: Record<FormMetricName, FormTotalMetric>\n prevYear?: Record<FormMetricName, FormTotalMetric>\n allTime?: Record<FormMetricName, FormTotalMetric>\n liveSubmissions?: Record<string, number>\n draftSubmissions?: Record<string, number>\n daysToPublish?: Record<string, number>\n republished?: Record<string, number>\n language?: string\n updatedAt: Date\n earliestDate: Date\n}\n\nexport interface FormOverviewMetric {\n type: FormMetricType.OverviewMetric\n formId: string\n formStatus: FormStatus\n summaryMetrics: Record<string, number | string | string[]>\n featureMetrics: Record<string, Map<string, number>>\n submissionsCount: number\n updatedAt: Date\n language?: string\n}\n\nexport interface FormTimelineMetric {\n type: FormMetricType.TimelineMetric\n formId: string\n formStatus: FormStatus\n metricName: FormMetricName\n language?: string\n metricValue: number\n createdAt: Date\n}\n\nexport interface FormDrilldownMetric {\n type: FormMetricType.DrilldownMetric\n formId: string\n metricName: FormMetricName\n metricValue: number\n periodName: string\n createdAt: Date\n language?: string\n}\n\nexport type FormMetric =\n | FormTotalsMetric\n | FormOverviewMetric\n | FormTimelineMetric\n"],"mappings":"","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"types.js","names":[],"sources":["../../../../src/form/form-metrics/types.ts"],"sourcesContent":["import { type FormStatus } from '~/src/common/enums.js'\nimport {\n type FormMetricName,\n type FormMetricType,\n type FunctionalAreaType,\n type SigninMetricName\n} from '~/src/form/form-metrics/enums.js'\n\nexport interface FormTotalMetric {\n count?: number\n details?: {\n formId: string\n metricValue?: string | Date | number\n createdAt?: Date\n }\n}\n\nexport interface FormTotalsMetric {\n type: FormMetricType.TotalsMetric\n last7Days?: Record<FormMetricName, FormTotalMetric>\n prev7Days?: Record<FormMetricName, FormTotalMetric>\n last30Days?: Record<FormMetricName, FormTotalMetric>\n prev30Days?: Record<FormMetricName, FormTotalMetric>\n lastYear?: Record<FormMetricName, FormTotalMetric>\n prevYear?: Record<FormMetricName, FormTotalMetric>\n allTime?: Record<FormMetricName, FormTotalMetric>\n liveSubmissions?: Record<string, number>\n draftSubmissions?: Record<string, number>\n daysToPublish?: Record<string, number>\n republished?: Record<string, number>\n language?: string\n updatedAt: Date\n earliestDate: Date\n}\n\nexport interface FormOverviewMetric {\n type: FormMetricType.OverviewMetric\n formId: string\n formStatus: FormStatus\n summaryMetrics: Record<string, number | string | string[]>\n featureMetrics: Record<string, Map<string, number>>\n submissionsCount: number\n updatedAt: Date\n language?: string\n}\n\nexport interface FormTimelineMetric {\n type: FormMetricType.TimelineMetric\n formId: string\n formStatus: FormStatus\n metricName: FormMetricName\n language?: string\n metricValue: number\n createdAt: Date\n}\n\nexport interface FormDrilldownMetric {\n type: FormMetricType.DrilldownMetric\n formId: string\n metricName: FormMetricName\n metricValue: number\n periodName: string\n createdAt: Date\n language?: string\n}\n\nexport type FormMetric =\n | FormTotalsMetric\n | FormOverviewMetric\n | FormTimelineMetric\n\nexport interface SigninTimelineMetric {\n type: FormMetricType.TimelineMetric\n metricName: SigninMetricName\n metricValue: number\n createdAt: Date\n}\n\nexport type FunctionalAreaMetricName = SigninMetricName\n// Add 'copy' and 'edit' metric names as needed\n\nexport interface FunctionalAreaTotalMetric {\n count: number\n}\n\nexport interface FunctionalAreaTotalsMetric {\n type: FormMetricType.FunctionalAreaTotalsMetric\n area: FunctionalAreaType\n last7Days?: Record<FunctionalAreaMetricName, FunctionalAreaTotalMetric>\n prev7Days?: Record<FunctionalAreaMetricName, FunctionalAreaTotalMetric>\n last30Days?: Record<FunctionalAreaMetricName, FunctionalAreaTotalMetric>\n prev30Days?: Record<FunctionalAreaMetricName, FunctionalAreaTotalMetric>\n lastYear?: Record<FunctionalAreaMetricName, FunctionalAreaTotalMetric>\n prevYear?: Record<FunctionalAreaMetricName, FunctionalAreaTotalMetric>\n allTime?: Record<FunctionalAreaMetricName, FunctionalAreaTotalMetric>\n updatedAt: Date\n earliestDate: Date\n}\n"],"mappings":"","ignoreList":[]}
|
|
@@ -11,7 +11,8 @@ export declare enum AuditEventMessageSource {
|
|
|
11
11
|
FORMS_MANAGER = "FORMS_MANAGER",
|
|
12
12
|
FORMS_DESIGNER = "FORMS_DESIGNER",
|
|
13
13
|
ENTITLEMENT = "ENTITLEMENT",
|
|
14
|
-
AUTHENTICATION = "AUTHENTICATION"
|
|
14
|
+
AUTHENTICATION = "AUTHENTICATION",
|
|
15
|
+
FORMS_IDENTITY = "FORMS_IDENTITY"
|
|
15
16
|
}
|
|
16
17
|
export declare enum AuditEventMessageType {
|
|
17
18
|
FORM_CREATED = "FORM_CREATED",
|
|
@@ -51,7 +52,16 @@ export declare enum AuditEventMessageType {
|
|
|
51
52
|
AUTHENTICATION_LOGOUT_MANUAL = "AUTHENTICATION_LOGOUT_MANUAL",
|
|
52
53
|
AUTHENTICATION_LOGOUT_AUTO = "AUTHENTICATION_LOGOUT_AUTO",
|
|
53
54
|
AUTHENTICATION_LOGOUT_DIFFERENT_DEVICE = "AUTHENTICATION_LOGOUT_DIFFERENT_DEVICE",
|
|
54
|
-
DLQ_ACTION = "DLQ_ACTION"
|
|
55
|
+
DLQ_ACTION = "DLQ_ACTION",
|
|
56
|
+
IDENTITY_SIGN_IN_SUCCESSFUL = "IDENTITY_SIGN_IN_SUCCESSFUL",
|
|
57
|
+
IDENTITY_SIGN_OUT = "IDENTITY_SIGN_OUT",
|
|
58
|
+
IDENTITY_REGISTRATION = "IDENTITY_REGISTRATION",
|
|
59
|
+
IDENTITY_TOO_MANY_OTPS_REQUESTED = "IDENTITY_TOO_MANY_OTPS_REQUESTED",
|
|
60
|
+
IDENTITY_INCORRECT_CODE_ENTERED = "IDENTITY_INCORRECT_CODE_ENTERED",
|
|
61
|
+
IDENTITY_INCORRECT_CODE_LOCKOUT = "IDENTITY_INCORRECT_CODE_LOCKOUT",
|
|
62
|
+
IDENTITY_ACCOUNT_DELETION = "IDENTITY_ACCOUNT_DELETION",
|
|
63
|
+
IDENTITY_EMAIL_ADDRESS_UPDATED = "IDENTITY_EMAIL_ADDRESS_UPDATED",
|
|
64
|
+
IDENTITY_PHONE_NUMBER_UPDATED = "IDENTITY_PHONE_NUMBER_UPDATED"
|
|
55
65
|
}
|
|
56
66
|
export declare enum FormDefinitionRequestType {
|
|
57
67
|
REPLACE_DRAFT = "REPLACE_DRAFT",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../../src/form/form-audit/enums.ts"],"names":[],"mappings":"AAAA,oBAAY,8BAA8B;IACxC,EAAE,IAAI;CACP;AAED,oBAAY,yBAAyB;IACnC,IAAI,SAAS;IACb,WAAW,gBAAgB;IAC3B,cAAc,mBAAmB;IACjC,UAAU,eAAe;CAC1B;AAED,oBAAY,uBAAuB;IACjC,aAAa,kBAAkB;IAC/B,cAAc,mBAAmB;IACjC,WAAW,gBAAgB;IAC3B,cAAc,mBAAmB;CAClC;AAED,oBAAY,qBAAqB;IAE/B,YAAY,iBAAiB;IAC7B,kBAAkB,uBAAuB;IACzC,yBAAyB,8BAA8B;IACvD,sBAAsB,2BAA2B;IACjD,uBAAuB,4BAA4B;IACnD,4BAA4B,iCAAiC;IAC7D,0BAA0B,+BAA+B;IACzD,0BAA0B,+BAA+B;IACzD,2BAA2B,gCAAgC;IAC3D,2BAA2B,gCAAgC;IAC3D,gCAAgC,qCAAqC;IACrE,+BAA+B,oCAAoC;IACnE,gCAAgC,qCAAqC;IACrE,kBAAkB,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BAAmB;IACjC,cAAc,mBAAmB;IACjC,cAAc,mBAAmB;IACjC,eAAe,oBAAoB;IACnC,iBAAiB,sBAAsB;IACvC,aAAa,kBAAkB;CAChC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Joi, { type ObjectSchema } from 'joi';
|
|
2
|
-
import { type AuditEvent, type AuditMessage, type AuditRecord, type AuditUser, type AuthenticationMessageData, type DlqActionMessageData, type EntitlementMessageData, type ExcelGenerationMessageData, type FormCreatedMessageData, type FormDefinitionS3Meta, type FormFileDownloadedMessageData, type FormMessageChangesData, type FormMessageDataBase, type FormNotificationEmailChanges, type FormOfflineChanges, type FormOrganisationChanges, type FormOutputChanges, type FormPrivacyNoticeChanges, type FormSecretBaseMessageData, type FormSubmissionGuidanceChanges, type FormSupportContactChanges, type FormSupportEmailChanges, type FormSupportOnlineChanges, type FormSupportPhoneChanges, type FormTeamEmailChanges, type FormTeamNameChanges, type FormTermsAndConditionsChanges, type FormTitleChanges, type FormUpdatedMessageData, type FormUploadedChanges, type FormsBackupRequestedMessageData } from '../../form/form-audit/types.js';
|
|
2
|
+
import { type AuditEvent, type AuditMessage, type AuditRecord, type AuditUser, type AuthenticationMessageData, type DlqActionMessageData, type EntitlementMessageData, type ExcelGenerationMessageData, type FormCreatedMessageData, type FormDefinitionS3Meta, type FormFileDownloadedMessageData, type FormMessageChangesData, type FormMessageDataBase, type FormNotificationEmailChanges, type FormOfflineChanges, type FormOrganisationChanges, type FormOutputChanges, type FormPrivacyNoticeChanges, type FormSecretBaseMessageData, type FormSubmissionGuidanceChanges, type FormSupportContactChanges, type FormSupportEmailChanges, type FormSupportOnlineChanges, type FormSupportPhoneChanges, type FormTeamEmailChanges, type FormTeamNameChanges, type FormTermsAndConditionsChanges, type FormTitleChanges, type FormUpdatedMessageData, type FormUploadedChanges, type FormsBackupRequestedMessageData, type IdentityMessageData } from '../../form/form-audit/types.js';
|
|
3
3
|
import { type Output } from '../../form/form-definition/types.js';
|
|
4
4
|
export declare const formMessageDataBase: Joi.ObjectSchema<FormMessageDataBase>;
|
|
5
5
|
export declare const formCreatedMessageData: Joi.ObjectSchema<FormCreatedMessageData>;
|
|
@@ -35,6 +35,7 @@ export declare const formFileDownloadedMessageData: Joi.ObjectSchema<FormFileDow
|
|
|
35
35
|
export declare const excelGenerationMessageData: Joi.ObjectSchema<ExcelGenerationMessageData>;
|
|
36
36
|
export declare const authenticationMessageData: Joi.ObjectSchema<AuthenticationMessageData>;
|
|
37
37
|
export declare const auditUserSchema: Joi.ObjectSchema<AuditUser>;
|
|
38
|
+
export declare const identityMessageData: Joi.ObjectSchema<IdentityMessageData>;
|
|
38
39
|
export declare function formChangesMessageData<T, U extends FormMessageChangesData>(schema: ObjectSchema<T>): ObjectSchema<U>;
|
|
39
40
|
export declare const messageSchema: Joi.ObjectSchema<AuditMessage>;
|
|
40
41
|
export declare const auditEvent: Joi.ObjectSchema<AuditEvent>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/form/form-audit/index.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,EAAE,EAAE,KAAK,YAAY,EAAE,MAAM,KAAK,CAAA;AAS5C,OAAO,EACL,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,SAAS,EACd,KAAK,yBAAyB,EAE9B,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,6BAA6B,EAClC,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,4BAA4B,EAEjC,KAAK,kBAAkB,EAEvB,KAAK,uBAAuB,EAE5B,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAE7B,KAAK,yBAAyB,EAC9B,KAAK,6BAA6B,EAElC,KAAK,yBAAyB,EAE9B,KAAK,uBAAuB,EAE5B,KAAK,wBAAwB,EAE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,CAAC,CAAC,CASjB;AAED,eAAO,MAAM,aAAa,gCA6Q0C,CAAA;AAEpE,eAAO,MAAM,UAAU,8BAIsB,CAAA;AAE7C,eAAO,MAAM,WAAW,+BAOgC,CAAA"}
|
|
@@ -179,6 +179,17 @@ export interface AuditUser {
|
|
|
179
179
|
id: string;
|
|
180
180
|
displayName: string;
|
|
181
181
|
}
|
|
182
|
+
export interface IdentityMessageData {
|
|
183
|
+
accountId?: string;
|
|
184
|
+
email?: string;
|
|
185
|
+
phone?: string;
|
|
186
|
+
purpose?: string;
|
|
187
|
+
uid?: string;
|
|
188
|
+
changed?: {
|
|
189
|
+
old: string;
|
|
190
|
+
new: string;
|
|
191
|
+
};
|
|
192
|
+
}
|
|
182
193
|
export interface FormsBackupRequestedMessageData {
|
|
183
194
|
totalForms: number;
|
|
184
195
|
durationMs: number;
|
|
@@ -189,7 +200,7 @@ export interface DlqActionMessageData {
|
|
|
189
200
|
beforeJson?: string;
|
|
190
201
|
afterJson?: string;
|
|
191
202
|
}
|
|
192
|
-
export type MessageData = FormMessageChangesData | FormMessageActivitiesData | FormUpdatedMessageData | EntitlementMessageData | AuthenticationMessageData | ExcelGenerationMessageData | FormFileDownloadedMessageData | FormsBackupRequestedMessageData | FormSecretBaseMessageData | DlqActionMessageData;
|
|
203
|
+
export type MessageData = FormMessageChangesData | FormMessageActivitiesData | FormUpdatedMessageData | EntitlementMessageData | AuthenticationMessageData | ExcelGenerationMessageData | FormFileDownloadedMessageData | FormsBackupRequestedMessageData | FormSecretBaseMessageData | DlqActionMessageData | IdentityMessageData;
|
|
193
204
|
export interface MessageBase {
|
|
194
205
|
schemaVersion: AuditEventMessageSchemaVersion;
|
|
195
206
|
category: AuditEventMessageCategory;
|
|
@@ -214,6 +225,9 @@ export interface EntitlementMessageBase extends MessageBase {
|
|
|
214
225
|
export interface AuthenticationMessageBase extends MessageBase {
|
|
215
226
|
source: AuditEventMessageSource.AUTHENTICATION;
|
|
216
227
|
}
|
|
228
|
+
export interface IdentityMessageBase extends MessageBase {
|
|
229
|
+
source: AuditEventMessageSource.FORMS_IDENTITY;
|
|
230
|
+
}
|
|
217
231
|
export interface FormCreatedMessage extends ManagerMessageBase {
|
|
218
232
|
category: AuditEventMessageCategory.FORM;
|
|
219
233
|
type: AuditEventMessageType.FORM_CREATED;
|
|
@@ -402,7 +416,52 @@ export interface FormSecretSavedMessage extends ManagerMessageBase {
|
|
|
402
416
|
type: AuditEventMessageType.FORM_SECRET_SAVED;
|
|
403
417
|
data: FormSecretBaseMessageData;
|
|
404
418
|
}
|
|
405
|
-
export
|
|
419
|
+
export interface IdentitySignInSuccessfulMessage extends IdentityMessageBase {
|
|
420
|
+
category: AuditEventMessageCategory.AUTHENTICATION;
|
|
421
|
+
type: AuditEventMessageType.IDENTITY_SIGN_IN_SUCCESSFUL;
|
|
422
|
+
data: IdentityMessageData;
|
|
423
|
+
}
|
|
424
|
+
export interface IdentitySignOutMessage extends IdentityMessageBase {
|
|
425
|
+
category: AuditEventMessageCategory.AUTHENTICATION;
|
|
426
|
+
type: AuditEventMessageType.IDENTITY_SIGN_OUT;
|
|
427
|
+
data: IdentityMessageData;
|
|
428
|
+
}
|
|
429
|
+
export interface IdentityRegistrationMessage extends IdentityMessageBase {
|
|
430
|
+
category: AuditEventMessageCategory.AUTHENTICATION;
|
|
431
|
+
type: AuditEventMessageType.IDENTITY_REGISTRATION;
|
|
432
|
+
data: IdentityMessageData;
|
|
433
|
+
}
|
|
434
|
+
export interface IdentityTooManyOtpsRequestedMessage extends IdentityMessageBase {
|
|
435
|
+
category: AuditEventMessageCategory.AUTHENTICATION;
|
|
436
|
+
type: AuditEventMessageType.IDENTITY_TOO_MANY_OTPS_REQUESTED;
|
|
437
|
+
data: IdentityMessageData;
|
|
438
|
+
}
|
|
439
|
+
export interface IdentityIncorrectCodeEnteredMessage extends IdentityMessageBase {
|
|
440
|
+
category: AuditEventMessageCategory.AUTHENTICATION;
|
|
441
|
+
type: AuditEventMessageType.IDENTITY_INCORRECT_CODE_ENTERED;
|
|
442
|
+
data: IdentityMessageData;
|
|
443
|
+
}
|
|
444
|
+
export interface IdentityIncorrectCodeLockoutMessage extends IdentityMessageBase {
|
|
445
|
+
category: AuditEventMessageCategory.AUTHENTICATION;
|
|
446
|
+
type: AuditEventMessageType.IDENTITY_INCORRECT_CODE_LOCKOUT;
|
|
447
|
+
data: IdentityMessageData;
|
|
448
|
+
}
|
|
449
|
+
export interface IdentityAccountDeletionMessage extends IdentityMessageBase {
|
|
450
|
+
category: AuditEventMessageCategory.AUTHENTICATION;
|
|
451
|
+
type: AuditEventMessageType.IDENTITY_ACCOUNT_DELETION;
|
|
452
|
+
data: IdentityMessageData;
|
|
453
|
+
}
|
|
454
|
+
export interface IdentityEmailAddressUpdatedMessage extends IdentityMessageBase {
|
|
455
|
+
category: AuditEventMessageCategory.AUTHENTICATION;
|
|
456
|
+
type: AuditEventMessageType.IDENTITY_EMAIL_ADDRESS_UPDATED;
|
|
457
|
+
data: IdentityMessageData;
|
|
458
|
+
}
|
|
459
|
+
export interface IdentityPhoneNumberUpdatedMessage extends IdentityMessageBase {
|
|
460
|
+
category: AuditEventMessageCategory.AUTHENTICATION;
|
|
461
|
+
type: AuditEventMessageType.IDENTITY_PHONE_NUMBER_UPDATED;
|
|
462
|
+
data: IdentityMessageData;
|
|
463
|
+
}
|
|
464
|
+
export type AuditMessage = FormCreatedMessage | FormTitleUpdatedMessage | FormOrganisationUpdatedMessage | FormTeamNameUpdatedMessage | FormTeamEmailUpdatedMessage | FormSupportContactUpdatedMessage | FormSupportPhoneUpdatedMessage | FormSupportEmailUpdatedMessage | FormSupportOnlineUpdatedMessage | FormPrivacyNoticeUpdatedMessage | FormTermsAndConditionsAgreedMessage | FormNotificationEmailUpdatedMessage | FormSubmissionGuidanceUpdatedMessage | FormUploadedMessage | FormDownloadedMessage | FormFileDownloadSuccessMessage | FormFileDownloadFailureMessage | FormDraftCreatedFromLiveMessage | FormLiveCreatedFromDraftMessage | FormDraftDeletedMessage | FormMigratedMessage | FormUpdatedMessage | FormOfflineUpdatedMessage | EntitlementCreatedMessage | EntitlementUpdatedMessage | EntitlementDeletedMessage | AuthenticationLoginMessage | AuthenticationLogoutManualMessage | AuthenticationLogoutAutoMessage | AuthenticationLogoutDifferentDeviceMessage | FormSubmissionExcelRequestedMessage | FormCsatExcelRequestedMessage | PlatformCsatExcelRequestedMessage | PlatformMetricsDownloadRequestedMessage | FormsBackupRequestedMessage | FormSecretDeletedMessage | FormSecretSavedMessage | DlqActionMessage | IdentitySignInSuccessfulMessage | IdentitySignOutMessage | IdentityRegistrationMessage | IdentityTooManyOtpsRequestedMessage | IdentityIncorrectCodeEnteredMessage | IdentityIncorrectCodeLockoutMessage | IdentityAccountDeletionMessage | IdentityEmailAddressUpdatedMessage | IdentityPhoneNumberUpdatedMessage;
|
|
406
465
|
export interface AuditEvent {
|
|
407
466
|
message: AuditMessage;
|
|
408
467
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/form/form-audit/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,yBAAyB,EAC9B,KAAK,8BAA8B,EACnC,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC/B,MAAM,gCAAgC,CAAA;AACvC,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,qCAAqC,CAAA;AACjE,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,mCAAmC,CAAA;AAE5E,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,MAAM,WAAW,kBAAkB,CAAC,CAAC;IACnC,QAAQ,EAAE,CAAC,CAAA;IACX,GAAG,EAAE,CAAC,CAAA;CACP;AAED,MAAM,WAAW,sBAAuB,SAAQ,mBAAmB;IACjE,KAAK,EAAE,MAA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U;IACzB,OAAO,EAAE,YAAY,CAAA;CACtB;AAED,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,MAAM,CAAA;IACjB,eAAe,EAAE,IAAI,CAAA;CACtB;AAED,MAAM,WAAW,cAAe,SAAQ,aAAa;IACnD,EAAE,EAAE,MAAM,CAAA;CACX;AAED,MAAM,MAAM,gBAAgB,GAAG,YAAY,GAAG,aAAa,CAAA;AAE3D,MAAM,MAAM,WAAW,GAAG,YAAY,GAAG,cAAc,CAAA;AAEvD,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,CAAA;CAChB;AAED;;;GAGG;AACH,MAAM,MAAM,uBAAuB,GAAG,WAAW,GAAG;IAClD,qDAAqD;IACrD,iBAAiB,EAAE,MAAM,CAAA;IACzB,mDAAmD;IACnD,gBAAgB,EAAE,IAAI,CAAA;IACtB,iDAAiD;IACjD,cAAc,EAAE,IAAI,CAAA;CACrB,CAAA"}
|
|
@@ -2,7 +2,8 @@ export declare enum FormMetricType {
|
|
|
2
2
|
TotalsMetric = "totals-metric",
|
|
3
3
|
OverviewMetric = "overview-metric",
|
|
4
4
|
TimelineMetric = "timeline-metric",
|
|
5
|
-
DrilldownMetric = "drilldown-metric"
|
|
5
|
+
DrilldownMetric = "drilldown-metric",
|
|
6
|
+
FunctionalAreaTotalsMetric = "functional-area-totals-metric"
|
|
6
7
|
}
|
|
7
8
|
export declare enum FormMetricName {
|
|
8
9
|
NewFormsCreated = "NewFormsCreated",
|
|
@@ -12,4 +13,16 @@ export declare enum FormMetricName {
|
|
|
12
13
|
FormsInDraft = "FormsInDraft",
|
|
13
14
|
TimeToPublish = "TimeToPublish"
|
|
14
15
|
}
|
|
16
|
+
export declare enum FunctionalAreaType {
|
|
17
|
+
Signin = "Signin"
|
|
18
|
+
}
|
|
19
|
+
export declare enum SigninMetricName {
|
|
20
|
+
Registration = "Registration",
|
|
21
|
+
SuccessfulAuthentication = "SuccessfulAuthentication",
|
|
22
|
+
TooManyCodeRequests = "TooManyCodeRequests",
|
|
23
|
+
IncorrectCodeEntered = "IncorrectCodeEntered",
|
|
24
|
+
AccountDeletion = "AccountDeletion",
|
|
25
|
+
EmailAddressUpdate = "EmailAddressUpdate",
|
|
26
|
+
PhoneNumberUpdate = "PhoneNumberUpdate"
|
|
27
|
+
}
|
|
15
28
|
//# sourceMappingURL=enums.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../../src/form/form-metrics/enums.ts"],"names":[],"mappings":"AAAA,oBAAY,cAAc;IACxB,YAAY,kBAAkB;IAC9B,cAAc,oBAAoB;IAClC,cAAc,oBAAoB;IAClC,eAAe,qBAAqB;
|
|
1
|
+
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../../src/form/form-metrics/enums.ts"],"names":[],"mappings":"AAAA,oBAAY,cAAc;IACxB,YAAY,kBAAkB;IAC9B,cAAc,oBAAoB;IAClC,cAAc,oBAAoB;IAClC,eAAe,qBAAqB;IACpC,0BAA0B,kCAAkC;CAC7D;AAED,oBAAY,cAAc;IACxB,eAAe,oBAAoB;IACnC,mBAAmB,wBAAwB;IAC3C,gBAAgB,qBAAqB;IACrC,WAAW,gBAAgB;IAC3B,YAAY,iBAAiB;IAC7B,aAAa,kBAAkB;CAChC;AAED,oBAAY,kBAAkB;IAC5B,MAAM,WAAW;CAIlB;AAED,oBAAY,gBAAgB;IAC1B,YAAY,iBAAiB;IAC7B,wBAAwB,6BAA6B;IACrD,mBAAmB,wBAAwB;IAC3C,oBAAoB,yBAAyB;IAC7C,eAAe,oBAAoB;IACnC,kBAAkB,uBAAuB;IACzC,iBAAiB,sBAAsB;CAIxC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type FormStatus } from '../../common/enums.js';
|
|
2
|
-
import { type FormMetricName, type FormMetricType } from '../../form/form-metrics/enums.js';
|
|
2
|
+
import { type FormMetricName, type FormMetricType, type FunctionalAreaType, type SigninMetricName } from '../../form/form-metrics/enums.js';
|
|
3
3
|
export interface FormTotalMetric {
|
|
4
4
|
count?: number;
|
|
5
5
|
details?: {
|
|
@@ -54,4 +54,27 @@ export interface FormDrilldownMetric {
|
|
|
54
54
|
language?: string;
|
|
55
55
|
}
|
|
56
56
|
export type FormMetric = FormTotalsMetric | FormOverviewMetric | FormTimelineMetric;
|
|
57
|
+
export interface SigninTimelineMetric {
|
|
58
|
+
type: FormMetricType.TimelineMetric;
|
|
59
|
+
metricName: SigninMetricName;
|
|
60
|
+
metricValue: number;
|
|
61
|
+
createdAt: Date;
|
|
62
|
+
}
|
|
63
|
+
export type FunctionalAreaMetricName = SigninMetricName;
|
|
64
|
+
export interface FunctionalAreaTotalMetric {
|
|
65
|
+
count: number;
|
|
66
|
+
}
|
|
67
|
+
export interface FunctionalAreaTotalsMetric {
|
|
68
|
+
type: FormMetricType.FunctionalAreaTotalsMetric;
|
|
69
|
+
area: FunctionalAreaType;
|
|
70
|
+
last7Days?: Record<FunctionalAreaMetricName, FunctionalAreaTotalMetric>;
|
|
71
|
+
prev7Days?: Record<FunctionalAreaMetricName, FunctionalAreaTotalMetric>;
|
|
72
|
+
last30Days?: Record<FunctionalAreaMetricName, FunctionalAreaTotalMetric>;
|
|
73
|
+
prev30Days?: Record<FunctionalAreaMetricName, FunctionalAreaTotalMetric>;
|
|
74
|
+
lastYear?: Record<FunctionalAreaMetricName, FunctionalAreaTotalMetric>;
|
|
75
|
+
prevYear?: Record<FunctionalAreaMetricName, FunctionalAreaTotalMetric>;
|
|
76
|
+
allTime?: Record<FunctionalAreaMetricName, FunctionalAreaTotalMetric>;
|
|
77
|
+
updatedAt: Date;
|
|
78
|
+
earliestDate: Date;
|
|
79
|
+
}
|
|
57
80
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/form/form-metrics/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UA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CAAA;AAEtB,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,cAAc,CAAC,cAAc,CAAA;IACnC,UAAU,EAAE,gBAAgB,CAAA;IAC5B,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,EAAE,IAAI,CAAA;CAChB;AAED,MAAM,MAAM,wBAAwB,GAAG,gBAAgB,CAAA;AAGvD,MAAM,WAAW,yBAAyB;IACxC,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,0BAA0B;IACzC,IAAI,EAAE,cAAc,CAAC,0BAA0B,CAAA;IAC/C,IAAI,EAAE,kBAAkB,CAAA;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC,wBAAwB,EAAE,yBAAyB,CAAC,CAAA;IACvE,SAAS,CAAC,EAAE,MAAM,CAAC,wBAAwB,EAAE,yBAAyB,CAAC,CAAA;IACvE,UAAU,CAAC,EAAE,MAAM,CAAC,wBAAwB,EAAE,yBAAyB,CAAC,CAAA;IACxE,UAAU,CAAC,EAAE,MAAM,CAAC,wBAAwB,EAAE,yBAAyB,CAAC,CAAA;IACxE,QAAQ,CAAC,EAAE,MAAM,CAAC,wBAAwB,EAAE,yBAAyB,CAAC,CAAA;IACtE,QAAQ,CAAC,EAAE,MAAM,CAAC,wBAAwB,EAAE,yBAAyB,CAAC,CAAA;IACtE,OAAO,CAAC,EAAE,MAAM,CAAC,wBAAwB,EAAE,yBAAyB,CAAC,CAAA;IACrE,SAAS,EAAE,IAAI,CAAA;IACf,YAAY,EAAE,IAAI,CAAA;CACnB"}
|
package/package.json
CHANGED
|
@@ -13,7 +13,8 @@ export enum AuditEventMessageSource {
|
|
|
13
13
|
FORMS_MANAGER = 'FORMS_MANAGER',
|
|
14
14
|
FORMS_DESIGNER = 'FORMS_DESIGNER',
|
|
15
15
|
ENTITLEMENT = 'ENTITLEMENT',
|
|
16
|
-
AUTHENTICATION = 'AUTHENTICATION'
|
|
16
|
+
AUTHENTICATION = 'AUTHENTICATION',
|
|
17
|
+
FORMS_IDENTITY = 'FORMS_IDENTITY'
|
|
17
18
|
}
|
|
18
19
|
|
|
19
20
|
export enum AuditEventMessageType {
|
|
@@ -54,14 +55,25 @@ export enum AuditEventMessageType {
|
|
|
54
55
|
ENTITLEMENT_UPDATED = 'ENTITLEMENT_UPDATED',
|
|
55
56
|
ENTITLEMENT_DELETED = 'ENTITLEMENT_DELETED',
|
|
56
57
|
|
|
57
|
-
// AUTHENTICATION message types
|
|
58
|
+
// AUTHENTICATION message types - for forms-designer
|
|
58
59
|
AUTHENTICATION_LOGIN = 'AUTHENTICATION_LOGIN',
|
|
59
60
|
AUTHENTICATION_LOGOUT_MANUAL = 'AUTHENTICATION_LOGOUT_MANUAL',
|
|
60
61
|
AUTHENTICATION_LOGOUT_AUTO = 'AUTHENTICATION_LOGOUT_AUTO',
|
|
61
62
|
AUTHENTICATION_LOGOUT_DIFFERENT_DEVICE = 'AUTHENTICATION_LOGOUT_DIFFERENT_DEVICE',
|
|
62
63
|
|
|
63
64
|
// Dead-letter queue types
|
|
64
|
-
DLQ_ACTION = 'DLQ_ACTION'
|
|
65
|
+
DLQ_ACTION = 'DLQ_ACTION',
|
|
66
|
+
|
|
67
|
+
// IDENTITY message types - for forms-identity-api
|
|
68
|
+
IDENTITY_SIGN_IN_SUCCESSFUL = 'IDENTITY_SIGN_IN_SUCCESSFUL',
|
|
69
|
+
IDENTITY_SIGN_OUT = 'IDENTITY_SIGN_OUT',
|
|
70
|
+
IDENTITY_REGISTRATION = 'IDENTITY_REGISTRATION',
|
|
71
|
+
IDENTITY_TOO_MANY_OTPS_REQUESTED = 'IDENTITY_TOO_MANY_OTPS_REQUESTED',
|
|
72
|
+
IDENTITY_INCORRECT_CODE_ENTERED = 'IDENTITY_INCORRECT_CODE_ENTERED',
|
|
73
|
+
IDENTITY_INCORRECT_CODE_LOCKOUT = 'IDENTITY_INCORRECT_CODE_LOCKOUT',
|
|
74
|
+
IDENTITY_ACCOUNT_DELETION = 'IDENTITY_ACCOUNT_DELETION',
|
|
75
|
+
IDENTITY_EMAIL_ADDRESS_UPDATED = 'IDENTITY_EMAIL_ADDRESS_UPDATED',
|
|
76
|
+
IDENTITY_PHONE_NUMBER_UPDATED = 'IDENTITY_PHONE_NUMBER_UPDATED'
|
|
65
77
|
}
|
|
66
78
|
|
|
67
79
|
export enum FormDefinitionRequestType {
|
|
@@ -53,7 +53,8 @@ import {
|
|
|
53
53
|
type FormUpdatedMessageData,
|
|
54
54
|
type FormUploadedChanges,
|
|
55
55
|
type FormUploadedMessageData,
|
|
56
|
-
type FormsBackupRequestedMessageData
|
|
56
|
+
type FormsBackupRequestedMessageData,
|
|
57
|
+
type IdentityMessageData
|
|
57
58
|
} from '~/src/form/form-audit/types.js'
|
|
58
59
|
import { type Output } from '~/src/form/form-definition/types.js'
|
|
59
60
|
import { emailAddressNoUnicodeSchema } from '~/src/form/form-editor/index.js'
|
|
@@ -346,6 +347,24 @@ export const auditUserSchema = Joi.object<AuditUser>()
|
|
|
346
347
|
})
|
|
347
348
|
.description('Schema for CREATED_BY audit event')
|
|
348
349
|
|
|
350
|
+
export const identityMessageData = Joi.object<IdentityMessageData>().keys({
|
|
351
|
+
// accountId may not always be available
|
|
352
|
+
accountId: Joi.string().optional(),
|
|
353
|
+
// Email address associated with the identity, if any, or the target for an OTP
|
|
354
|
+
email: Joi.string().optional(),
|
|
355
|
+
// Phone number associated with the identity, if any, or the target for an OTP
|
|
356
|
+
phone: Joi.string().optional(),
|
|
357
|
+
// Purpose of the identity interaction, if any
|
|
358
|
+
purpose: Joi.string().optional(),
|
|
359
|
+
// Unique interaction id
|
|
360
|
+
uid: Joi.string().optional(),
|
|
361
|
+
// Changed fields in the identity, if any have changed
|
|
362
|
+
changed: Joi.object({
|
|
363
|
+
old: Joi.string().required(),
|
|
364
|
+
new: Joi.string().required()
|
|
365
|
+
}).optional()
|
|
366
|
+
})
|
|
367
|
+
|
|
349
368
|
export function formChangesMessageData<T, U extends FormMessageChangesData>(
|
|
350
369
|
schema: ObjectSchema<T>
|
|
351
370
|
): ObjectSchema<U> {
|
|
@@ -554,6 +573,22 @@ export const messageSchema = Joi.object<AuditMessage>()
|
|
|
554
573
|
),
|
|
555
574
|
then: authenticationMessageData
|
|
556
575
|
},
|
|
576
|
+
{
|
|
577
|
+
is: Joi.string()
|
|
578
|
+
.trim()
|
|
579
|
+
.valid(
|
|
580
|
+
AuditEventMessageType.IDENTITY_SIGN_IN_SUCCESSFUL,
|
|
581
|
+
AuditEventMessageType.IDENTITY_SIGN_OUT,
|
|
582
|
+
AuditEventMessageType.IDENTITY_REGISTRATION,
|
|
583
|
+
AuditEventMessageType.IDENTITY_TOO_MANY_OTPS_REQUESTED,
|
|
584
|
+
AuditEventMessageType.IDENTITY_INCORRECT_CODE_ENTERED,
|
|
585
|
+
AuditEventMessageType.IDENTITY_INCORRECT_CODE_LOCKOUT,
|
|
586
|
+
AuditEventMessageType.IDENTITY_ACCOUNT_DELETION,
|
|
587
|
+
AuditEventMessageType.IDENTITY_EMAIL_ADDRESS_UPDATED,
|
|
588
|
+
AuditEventMessageType.IDENTITY_PHONE_NUMBER_UPDATED
|
|
589
|
+
),
|
|
590
|
+
then: identityMessageData
|
|
591
|
+
},
|
|
557
592
|
{
|
|
558
593
|
is: Joi.string()
|
|
559
594
|
.trim()
|
|
@@ -248,6 +248,18 @@ export interface AuditUser {
|
|
|
248
248
|
displayName: string
|
|
249
249
|
}
|
|
250
250
|
|
|
251
|
+
export interface IdentityMessageData {
|
|
252
|
+
accountId?: string
|
|
253
|
+
email?: string
|
|
254
|
+
phone?: string
|
|
255
|
+
purpose?: string
|
|
256
|
+
uid?: string
|
|
257
|
+
changed?: {
|
|
258
|
+
old: string
|
|
259
|
+
new: string
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
|
|
251
263
|
export interface FormsBackupRequestedMessageData {
|
|
252
264
|
totalForms: number
|
|
253
265
|
durationMs: number
|
|
@@ -271,6 +283,7 @@ export type MessageData =
|
|
|
271
283
|
| FormsBackupRequestedMessageData
|
|
272
284
|
| FormSecretBaseMessageData
|
|
273
285
|
| DlqActionMessageData
|
|
286
|
+
| IdentityMessageData
|
|
274
287
|
|
|
275
288
|
export interface MessageBase {
|
|
276
289
|
schemaVersion: AuditEventMessageSchemaVersion
|
|
@@ -300,6 +313,10 @@ export interface AuthenticationMessageBase extends MessageBase {
|
|
|
300
313
|
source: AuditEventMessageSource.AUTHENTICATION
|
|
301
314
|
}
|
|
302
315
|
|
|
316
|
+
export interface IdentityMessageBase extends MessageBase {
|
|
317
|
+
source: AuditEventMessageSource.FORMS_IDENTITY
|
|
318
|
+
}
|
|
319
|
+
|
|
303
320
|
export interface FormCreatedMessage extends ManagerMessageBase {
|
|
304
321
|
category: AuditEventMessageCategory.FORM
|
|
305
322
|
type: AuditEventMessageType.FORM_CREATED
|
|
@@ -526,6 +543,60 @@ export interface FormSecretSavedMessage extends ManagerMessageBase {
|
|
|
526
543
|
data: FormSecretBaseMessageData
|
|
527
544
|
}
|
|
528
545
|
|
|
546
|
+
export interface IdentitySignInSuccessfulMessage extends IdentityMessageBase {
|
|
547
|
+
category: AuditEventMessageCategory.AUTHENTICATION
|
|
548
|
+
type: AuditEventMessageType.IDENTITY_SIGN_IN_SUCCESSFUL
|
|
549
|
+
data: IdentityMessageData
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
export interface IdentitySignOutMessage extends IdentityMessageBase {
|
|
553
|
+
category: AuditEventMessageCategory.AUTHENTICATION
|
|
554
|
+
type: AuditEventMessageType.IDENTITY_SIGN_OUT
|
|
555
|
+
data: IdentityMessageData
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
export interface IdentityRegistrationMessage extends IdentityMessageBase {
|
|
559
|
+
category: AuditEventMessageCategory.AUTHENTICATION
|
|
560
|
+
type: AuditEventMessageType.IDENTITY_REGISTRATION
|
|
561
|
+
data: IdentityMessageData
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
export interface IdentityTooManyOtpsRequestedMessage extends IdentityMessageBase {
|
|
565
|
+
category: AuditEventMessageCategory.AUTHENTICATION
|
|
566
|
+
type: AuditEventMessageType.IDENTITY_TOO_MANY_OTPS_REQUESTED
|
|
567
|
+
data: IdentityMessageData
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
export interface IdentityIncorrectCodeEnteredMessage extends IdentityMessageBase {
|
|
571
|
+
category: AuditEventMessageCategory.AUTHENTICATION
|
|
572
|
+
type: AuditEventMessageType.IDENTITY_INCORRECT_CODE_ENTERED
|
|
573
|
+
data: IdentityMessageData
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
export interface IdentityIncorrectCodeLockoutMessage extends IdentityMessageBase {
|
|
577
|
+
category: AuditEventMessageCategory.AUTHENTICATION
|
|
578
|
+
type: AuditEventMessageType.IDENTITY_INCORRECT_CODE_LOCKOUT
|
|
579
|
+
data: IdentityMessageData
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
export interface IdentityAccountDeletionMessage extends IdentityMessageBase {
|
|
583
|
+
category: AuditEventMessageCategory.AUTHENTICATION
|
|
584
|
+
type: AuditEventMessageType.IDENTITY_ACCOUNT_DELETION
|
|
585
|
+
data: IdentityMessageData
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
export interface IdentityEmailAddressUpdatedMessage extends IdentityMessageBase {
|
|
589
|
+
category: AuditEventMessageCategory.AUTHENTICATION
|
|
590
|
+
type: AuditEventMessageType.IDENTITY_EMAIL_ADDRESS_UPDATED
|
|
591
|
+
data: IdentityMessageData
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
export interface IdentityPhoneNumberUpdatedMessage extends IdentityMessageBase {
|
|
595
|
+
category: AuditEventMessageCategory.AUTHENTICATION
|
|
596
|
+
type: AuditEventMessageType.IDENTITY_PHONE_NUMBER_UPDATED
|
|
597
|
+
data: IdentityMessageData
|
|
598
|
+
}
|
|
599
|
+
|
|
529
600
|
export type AuditMessage =
|
|
530
601
|
| FormCreatedMessage
|
|
531
602
|
| FormTitleUpdatedMessage
|
|
@@ -565,6 +636,15 @@ export type AuditMessage =
|
|
|
565
636
|
| FormSecretDeletedMessage
|
|
566
637
|
| FormSecretSavedMessage
|
|
567
638
|
| DlqActionMessage
|
|
639
|
+
| IdentitySignInSuccessfulMessage
|
|
640
|
+
| IdentitySignOutMessage
|
|
641
|
+
| IdentityRegistrationMessage
|
|
642
|
+
| IdentityTooManyOtpsRequestedMessage
|
|
643
|
+
| IdentityIncorrectCodeEnteredMessage
|
|
644
|
+
| IdentityIncorrectCodeLockoutMessage
|
|
645
|
+
| IdentityAccountDeletionMessage
|
|
646
|
+
| IdentityEmailAddressUpdatedMessage
|
|
647
|
+
| IdentityPhoneNumberUpdatedMessage
|
|
568
648
|
|
|
569
649
|
export interface AuditEvent {
|
|
570
650
|
message: AuditMessage
|
|
@@ -2,7 +2,8 @@ export enum FormMetricType {
|
|
|
2
2
|
TotalsMetric = 'totals-metric',
|
|
3
3
|
OverviewMetric = 'overview-metric',
|
|
4
4
|
TimelineMetric = 'timeline-metric',
|
|
5
|
-
DrilldownMetric = 'drilldown-metric'
|
|
5
|
+
DrilldownMetric = 'drilldown-metric',
|
|
6
|
+
FunctionalAreaTotalsMetric = 'functional-area-totals-metric'
|
|
6
7
|
}
|
|
7
8
|
|
|
8
9
|
export enum FormMetricName {
|
|
@@ -13,3 +14,23 @@ export enum FormMetricName {
|
|
|
13
14
|
FormsInDraft = 'FormsInDraft',
|
|
14
15
|
TimeToPublish = 'TimeToPublish'
|
|
15
16
|
}
|
|
17
|
+
|
|
18
|
+
export enum FunctionalAreaType {
|
|
19
|
+
Signin = 'Signin'
|
|
20
|
+
// Add these later as needed
|
|
21
|
+
// CopyAnswers = 'copy-answers',
|
|
22
|
+
// EditAndResubmit = 'edit-and-resubmit'
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export enum SigninMetricName {
|
|
26
|
+
Registration = 'Registration',
|
|
27
|
+
SuccessfulAuthentication = 'SuccessfulAuthentication',
|
|
28
|
+
TooManyCodeRequests = 'TooManyCodeRequests',
|
|
29
|
+
IncorrectCodeEntered = 'IncorrectCodeEntered',
|
|
30
|
+
AccountDeletion = 'AccountDeletion',
|
|
31
|
+
EmailAddressUpdate = 'EmailAddressUpdate',
|
|
32
|
+
PhoneNumberUpdate = 'PhoneNumberUpdate'
|
|
33
|
+
// Add these when 'forgotten details' journey is implemented
|
|
34
|
+
// ForgottenDetailsJourney = 'ForgottenDetailsJourney',
|
|
35
|
+
// PhoneNumberNotAssociatedWithAccount = 'PhoneNumberNotAssociatedWithAccount'
|
|
36
|
+
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { type FormStatus } from '~/src/common/enums.js'
|
|
2
2
|
import {
|
|
3
3
|
type FormMetricName,
|
|
4
|
-
type FormMetricType
|
|
4
|
+
type FormMetricType,
|
|
5
|
+
type FunctionalAreaType,
|
|
6
|
+
type SigninMetricName
|
|
5
7
|
} from '~/src/form/form-metrics/enums.js'
|
|
6
8
|
|
|
7
9
|
export interface FormTotalMetric {
|
|
@@ -66,3 +68,31 @@ export type FormMetric =
|
|
|
66
68
|
| FormTotalsMetric
|
|
67
69
|
| FormOverviewMetric
|
|
68
70
|
| FormTimelineMetric
|
|
71
|
+
|
|
72
|
+
export interface SigninTimelineMetric {
|
|
73
|
+
type: FormMetricType.TimelineMetric
|
|
74
|
+
metricName: SigninMetricName
|
|
75
|
+
metricValue: number
|
|
76
|
+
createdAt: Date
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export type FunctionalAreaMetricName = SigninMetricName
|
|
80
|
+
// Add 'copy' and 'edit' metric names as needed
|
|
81
|
+
|
|
82
|
+
export interface FunctionalAreaTotalMetric {
|
|
83
|
+
count: number
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export interface FunctionalAreaTotalsMetric {
|
|
87
|
+
type: FormMetricType.FunctionalAreaTotalsMetric
|
|
88
|
+
area: FunctionalAreaType
|
|
89
|
+
last7Days?: Record<FunctionalAreaMetricName, FunctionalAreaTotalMetric>
|
|
90
|
+
prev7Days?: Record<FunctionalAreaMetricName, FunctionalAreaTotalMetric>
|
|
91
|
+
last30Days?: Record<FunctionalAreaMetricName, FunctionalAreaTotalMetric>
|
|
92
|
+
prev30Days?: Record<FunctionalAreaMetricName, FunctionalAreaTotalMetric>
|
|
93
|
+
lastYear?: Record<FunctionalAreaMetricName, FunctionalAreaTotalMetric>
|
|
94
|
+
prevYear?: Record<FunctionalAreaMetricName, FunctionalAreaTotalMetric>
|
|
95
|
+
allTime?: Record<FunctionalAreaMetricName, FunctionalAreaTotalMetric>
|
|
96
|
+
updatedAt: Date
|
|
97
|
+
earliestDate: Date
|
|
98
|
+
}
|