@trycourier/courier 5.0.0 → 5.1.0
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/send/types.d.ts +6 -0
- package/package.json +1 -1
package/lib/send/types.d.ts
CHANGED
|
@@ -164,6 +164,9 @@ interface ElementalBaseNode {
|
|
|
164
164
|
if?: string;
|
|
165
165
|
loop?: string;
|
|
166
166
|
}
|
|
167
|
+
export interface MessageContext {
|
|
168
|
+
tenant_id?: string;
|
|
169
|
+
}
|
|
167
170
|
export interface MessageData extends Record<string, any> {
|
|
168
171
|
}
|
|
169
172
|
export declare type RuleType = "snooze" | "channel_preferences" | "status";
|
|
@@ -240,12 +243,14 @@ export interface AudienceRecipient {
|
|
|
240
243
|
}
|
|
241
244
|
export interface UserRecipient extends UserRecipientType {
|
|
242
245
|
account_id?: string;
|
|
246
|
+
context?: MessageContext;
|
|
243
247
|
data?: MessageData;
|
|
244
248
|
email?: string;
|
|
245
249
|
locale?: string;
|
|
246
250
|
user_id?: string;
|
|
247
251
|
phone_number?: string;
|
|
248
252
|
preferences?: IProfilePreferences;
|
|
253
|
+
tenant_id?: string;
|
|
249
254
|
}
|
|
250
255
|
export declare type Recipient = AudienceRecipient | ListRecipient | ListPatternRecipient | UserRecipient;
|
|
251
256
|
export declare type MessageRecipient = Recipient | Recipient[];
|
|
@@ -268,6 +273,7 @@ export declare type Content = ElementalContentSugar | ElementalContent;
|
|
|
268
273
|
export interface BaseMessage {
|
|
269
274
|
brand_id?: string;
|
|
270
275
|
channels?: MessageChannels;
|
|
276
|
+
context?: MessageContext;
|
|
271
277
|
data?: MessageData;
|
|
272
278
|
metadata?: MessageMetadata;
|
|
273
279
|
providers?: MessageProviders;
|