@bcrumbs.net/inbox 0.0.81 → 0.0.83
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/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AutomationReentryPolicy, AutomationTriggerType } from '../../graphql.autogenerated';
|
|
2
2
|
/** Mirrors core limits in AutomationsService. */
|
|
3
3
|
export declare const AUTOMATION_MAX_DELAY_DAYS = 365;
|
|
4
|
+
export declare const AUTOMATION_MIN_LATENESS_DAYS = 1;
|
|
4
5
|
export declare const AUTOMATION_MAX_LATENESS_DAYS = 30;
|
|
5
6
|
export declare const AUTOMATION_DEFAULT_LATENESS_DAYS = 1;
|
|
6
7
|
export declare const AUTOMATION_DEFAULT_COOLDOWN_DAYS = 30;
|
|
@@ -45,5 +45,10 @@ export declare const buildScheduleInput: (values: AutomationScheduleValues) => {
|
|
|
45
45
|
* so a "last conversation started" delay of 90 days or more can never send. Mirrors core validation.
|
|
46
46
|
*/
|
|
47
47
|
export declare const isDelayAfterConversationTooLong: (triggerType: AutomationTriggerType, delayMinutes: number, recentInboundRule: boolean) => boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Contacts are picked up a few minutes after they become due, so a 0-day catch-up window would
|
|
50
|
+
* never send. Mirrors core validation.
|
|
51
|
+
*/
|
|
52
|
+
export declare const isLatenessOutOfRange: (maxLatenessDays: number) => boolean;
|
|
48
53
|
/** True when only one end of the send window is set, or start is not before end. */
|
|
49
54
|
export declare const isSendWindowInvalid: (start: string, end: string) => boolean;
|
|
@@ -754,7 +754,7 @@ export declare const convertLanguageJsonToObject: (json: any, objToConvertTo?: C
|
|
|
754
754
|
invalidSendWindow: string;
|
|
755
755
|
delayTooLong: string;
|
|
756
756
|
activationFailed: string;
|
|
757
|
-
|
|
757
|
+
latenessOutOfRange: string;
|
|
758
758
|
delayAfterConversationTooLong: string;
|
|
759
759
|
};
|
|
760
760
|
occurrences: {
|
|
@@ -1664,6 +1664,7 @@ export declare const convertLanguageJsonToObject: (json: any, objToConvertTo?: C
|
|
|
1664
1664
|
reconnectWhatsAppSuccess: string;
|
|
1665
1665
|
reconnectWhatsAppError: string;
|
|
1666
1666
|
selectStartWith: string;
|
|
1667
|
+
startWithNone: string;
|
|
1667
1668
|
selectAiAgent: string;
|
|
1668
1669
|
selectAgent: string;
|
|
1669
1670
|
selectAgents: string;
|