@withpotter/campaign — module reference

A support module — it mounts no HTTP routes of its own but contributes the internal building blocks below. See the package internal architecture for how the layers fit together.

Internals

Entities

Sequelize models owned by this module.

Campaign — table campaigns

FieldType
idstring
tenantIdstring
tenantTenant
channelCampaignChannel
statusCampaignStatus
subjectstring | null
previewTextstring | null
bodystring
audienceLabelstring | null
recipientCountnumber
sentCountnumber
openCountnumber
clickCountnumber
scheduledAtDate | null
sentAtDate | null
resendEmailIdstring | null
providerstring | null
createdAtDate
updatedAtDate

Repositories

Data-access classes wrapping the entities.

CampaignRepository

create · findById · findWithFilters · getStats · delete · markSent · markFailed · findByResendEmailId · incrementOpen · incrementClick

Generated from the module’s source. Routes are relative to the engine root (default http://localhost:3001). For full request/response schemas use the live OpenAPI document.