@ada-support/embed2 1.0.50 → 1.0.54
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.
|
@@ -12,5 +12,5 @@ interface TriggerCampaignImplParams {
|
|
|
12
12
|
messageService: MessageService;
|
|
13
13
|
}
|
|
14
14
|
export declare function triggerCampaignImpl({ adaSettings, chatterToken, campaign, ignoreStatus, ignoreFrequency, clearCampaignToTrigger, messageService, }: TriggerCampaignImplParams): void;
|
|
15
|
-
export declare const getCampaignToTrigger: (adaSettings: StartOptions, marketingCampaigns: MarketingCampaign[] | undefined, options: EvaluateCampaignParams, onlyBasic: boolean) => MarketingCampaign;
|
|
15
|
+
export declare const getCampaignToTrigger: (adaSettings: StartOptions, marketingCampaigns: MarketingCampaign[] | undefined, options: EvaluateCampaignParams, onlyBasic: boolean) => MarketingCampaign | undefined;
|
|
16
16
|
export {};
|
|
@@ -22,14 +22,14 @@ export interface MarketingCampaign {
|
|
|
22
22
|
_id: string;
|
|
23
23
|
version: "2021-01-12";
|
|
24
24
|
client_id: string;
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
created: string;
|
|
26
|
+
updated: string;
|
|
27
27
|
updated_by: string;
|
|
28
28
|
name: string;
|
|
29
29
|
description: string;
|
|
30
30
|
campaign_key: string;
|
|
31
31
|
status: "draft" | "active" | "off";
|
|
32
|
-
trigger_conditions
|
|
32
|
+
trigger_conditions?: TriggerCondition[];
|
|
33
33
|
goals: GoalEvent[];
|
|
34
34
|
message_frequency: CampaignFrequency;
|
|
35
35
|
message_delay: number;
|