placementt-core 1.300.103 → 1.300.105

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.
@@ -1131,6 +1131,31 @@ export type EmailTemplateConfig = {
1131
1131
  };
1132
1132
  type: "workflow" | "feedback" | "event" | "campaign";
1133
1133
  };
1134
+ export type EmailCampaign = {
1135
+ id: string;
1136
+ type: "employers" | "alumni";
1137
+ title: string;
1138
+ description?: string;
1139
+ emailTemplateId?: string;
1140
+ sendTime?: string;
1141
+ status: "draft" | "sending" | "sent";
1142
+ designatedStaff?: string;
1143
+ recipientIDs?: string[];
1144
+ recipients: "all" | (string | {
1145
+ [key: string]: unknown;
1146
+ })[];
1147
+ };
1148
+ export type EmailCampaignRecipient = {
1149
+ oId: string;
1150
+ campaignId?: string;
1151
+ providerContactId: string;
1152
+ sent: string;
1153
+ messageId?: string;
1154
+ topInteraction: "sent" | "bounced" | "delivered" | "opened" | "clicked";
1155
+ log: {
1156
+ [k: string]: string;
1157
+ };
1158
+ };
1134
1159
  export type Reminder = {
1135
1160
  collection: "users" | "placements" | "placementListings";
1136
1161
  documentId: string;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "private": false,
3
3
  "name": "placementt-core",
4
4
  "author": "Placementt",
5
- "version": "1.300.103",
5
+ "version": "1.300.105",
6
6
  "main": "lib/index.js",
7
7
  "types": "lib/index.d.ts",
8
8
  "scripts": {
@@ -1117,6 +1117,32 @@ export type EmailTemplateConfig = {
1117
1117
  type: "workflow"|"feedback"|"event"|"campaign"
1118
1118
  }
1119
1119
 
1120
+ export type EmailCampaign = {
1121
+ id: string,
1122
+ type: "employers"|"alumni",
1123
+ title: string,
1124
+ description?: string,
1125
+ emailTemplateId?: string,
1126
+ sendTime?: string,
1127
+ status: "draft"|"sending"|"sent",
1128
+ designatedStaff?: string
1129
+ recipientIDs?: string[] // List of recipient IDs
1130
+ recipients: "all"|(string|{[key: string]: unknown})[] // Filters or list of recipients
1131
+ }
1132
+
1133
+ export type EmailCampaignRecipient = {
1134
+ oId: string,
1135
+ campaignId?: string,
1136
+ providerContactId: string,
1137
+ sent: string, // ISO string
1138
+ messageId?: string,
1139
+ topInteraction: "sent"|"bounced"|"delivered"|"opened"|"clicked"
1140
+ log: {
1141
+ [k: string]: string // dateTimeString : eventType
1142
+ }
1143
+ }
1144
+
1145
+
1120
1146
 
1121
1147
  export type Reminder = {
1122
1148
  collection: "users"|"placements"|"placementListings",