placementt-core 1.300.103 → 1.300.104
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/lib/typeDefinitions.d.ts +22 -0
- package/package.json +1 -1
- package/src/typeDefinitions.ts +25 -0
package/lib/typeDefinitions.d.ts
CHANGED
|
@@ -1131,6 +1131,28 @@ 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
|
+
};
|
|
1145
|
+
export type EmailCampaignRecipient = {
|
|
1146
|
+
oId: string;
|
|
1147
|
+
campaignId?: string;
|
|
1148
|
+
providerContactId: string;
|
|
1149
|
+
sent: string;
|
|
1150
|
+
messageId?: string;
|
|
1151
|
+
topInteraction: "sent" | "bounced" | "delivered" | "opened" | "clicked";
|
|
1152
|
+
log: {
|
|
1153
|
+
[k: string]: string;
|
|
1154
|
+
};
|
|
1155
|
+
};
|
|
1134
1156
|
export type Reminder = {
|
|
1135
1157
|
collection: "users" | "placements" | "placementListings";
|
|
1136
1158
|
documentId: string;
|
package/package.json
CHANGED
package/src/typeDefinitions.ts
CHANGED
|
@@ -1117,6 +1117,31 @@ 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[]
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
export type EmailCampaignRecipient = {
|
|
1133
|
+
oId: string,
|
|
1134
|
+
campaignId?: string,
|
|
1135
|
+
providerContactId: string,
|
|
1136
|
+
sent: string, // ISO string
|
|
1137
|
+
messageId?: string,
|
|
1138
|
+
topInteraction: "sent"|"bounced"|"delivered"|"opened"|"clicked"
|
|
1139
|
+
log: {
|
|
1140
|
+
[k: string]: string // dateTimeString : eventType
|
|
1141
|
+
}
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
|
|
1120
1145
|
|
|
1121
1146
|
export type Reminder = {
|
|
1122
1147
|
collection: "users"|"placements"|"placementListings",
|