Service - Contact Method Email: Difference between revisions
Jump to navigation
Jump to search
email
No edit summary |
No edit summary |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 5: | Line 5: | ||
= Repository = | = Repository = | ||
https://bitbucket.org/ | https://bitbucket.org/izara-core-shared/izara-core-shared-contact-method-email | ||
= DynamoDB tables = | = DynamoDB tables = | ||
| Line 13: | Line 13: | ||
=== Fields === | === Fields === | ||
; | ; userContactId | ||
: (partition key) | : (partition key) | ||
: string | : string | ||
: a UUID generated when creating the email record, or sent by [[Service - User Contact Manager]] | |||
: | |||
; email | ; email | ||
: string | : string | ||
| Line 35: | Line 33: | ||
serviceTag: "UserContactManager", | serviceTag: "UserContactManager", | ||
}, | }, | ||
storageResources: { | |||
myGraph: { | |||
storageType: "graph", | |||
graphServerTag: "GraphHandler" | |||
} | } | ||
} | }, | ||
fieldNames: {} | |||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
=== emailAddress === | === emailAddress === | ||
| Line 60: | Line 49: | ||
{ | { | ||
objectType: "emailAddress", | objectType: "emailAddress", | ||
overWriteHandlers: { // optional, if not set will create default handlers, if empty will not create handler and main function | overWriteHandlers: { // optional, if not set will create default handlers, if empty will not create handler and main function | ||
create: ['hdrSqs'], // default: ['hdrApi', 'hdrSqs'] | create: ['hdrSqs'], // default: ['hdrApi', 'hdrSqs'] | ||
update: [], // default: ['hdrApi', 'hdrSqs'] | update: [], // default: ['hdrApi', 'hdrSqs'] | ||
get: [], | get: [], // default: ['hdrApi', 'hdrInv'] | ||
delete: [], // default: ['hdrApi', 'hdrSqs'] | delete: [], // default: ['hdrApi', 'hdrSqs'] | ||
}, | }, | ||
overwriteGeneratedMainFunction: ["update", "get", "delete"], | |||
storageResources: { | storageResources: { | ||
dynamoDB: { | dynamoDB: { | ||
storageType: "dynamoDB", | storageType: "dynamoDB", | ||
tableName: " | tableName: "EmailAddress" | ||
} | } | ||
}, | }, | ||
fieldNames: { // see Per Service Schemas | fieldNames: { // see Per Service Schemas | ||
userContactId: { | |||
type: "string", | type: "string", | ||
// randomOnCreate: true, | |||
canUpdate: false, | |||
storageResourceTags: ['dynamoDB'], | storageResourceTags: ['dynamoDB'], | ||
fromServiceNameTag: "UserContactManager", | fromServiceNameTag: "UserContactManager" , // service responsible for object schema | ||
fromObjectType: "userContact" | fromObjectType: "userContact" , // objectType at fromServiceNameTag | ||
}, | }, | ||
email: { | email: { | ||
| Line 101: | Line 84: | ||
{ | { | ||
type: "partitionKey", | type: "partitionKey", | ||
fieldName: " | fieldName: "userContactId" | ||
} | } | ||
] | ] | ||
| Line 113: | Line 92: | ||
==== fieldNames ==== | ==== fieldNames ==== | ||
; | ; userContactId | ||
: | : a UUID generated when creating the email record, or sent by [[Service - User Contact Manager]] | ||
; email | ; email | ||
: string | : string | ||
Latest revision as of 02:26, 11 March 2025
Overview
Manages email contact methods for users, details are not part of the public transparency followed across the majority of the project in order to protect against emails being scraped.
Repository
https://bitbucket.org/izara-core-shared/izara-core-shared-contact-method-email
DynamoDB tables
EmailAddress
Fields
- userContactId
- (partition key)
- string
- a UUID generated when creating the email record, or sent by Service - User Contact Manager
- string
Object Schemas
objType
{
objectType: "email",
extendObjType: { // core object that this object extends
objectType: "userContact",
serviceTag: "UserContactManager",
},
storageResources: {
myGraph: {
storageType: "graph",
graphServerTag: "GraphHandler"
}
},
fieldNames: {}
}
emailAddress
{
objectType: "emailAddress",
overWriteHandlers: { // optional, if not set will create default handlers, if empty will not create handler and main function
create: ['hdrSqs'], // default: ['hdrApi', 'hdrSqs']
update: [], // default: ['hdrApi', 'hdrSqs']
get: [], // default: ['hdrApi', 'hdrInv']
delete: [], // default: ['hdrApi', 'hdrSqs']
},
overwriteGeneratedMainFunction: ["update", "get", "delete"],
storageResources: {
dynamoDB: {
storageType: "dynamoDB",
tableName: "EmailAddress"
}
},
fieldNames: { // see Per Service Schemas
userContactId: {
type: "string",
// randomOnCreate: true,
canUpdate: false,
storageResourceTags: ['dynamoDB'],
fromServiceNameTag: "UserContactManager" , // service responsible for object schema
fromObjectType: "userContact" , // objectType at fromServiceNameTag
},
email: {
type: "string",
requiredOnCreate: true,
canUpdate: false,
validation: {
pattern: pattern
},
storageResourceTags: ['dynamoDB']
}
},
identifiers: [
{
type: "partitionKey",
fieldName: "userContactId"
}
]
}
fieldNames
- userContactId
- a UUID generated when creating the email record, or sent by Service - User Contact Manager
- string
Notes
- Service - User Contact Manager sets the notification group's uniqueID to be {emailUniqueId}_{uuid}, we could split the notificationGroupUniqueId to pull out the emailUniqueId, alternative is we also add the emailID to notification group's additionalData which is what we will do because it is more strongly defined