@wavv/dialer 3.1.0 → 3.1.1
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/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/options.d.ts +4 -1
- package/dist/utils.d.ts +17 -0
- package/dist/utils.js +19 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Listener, InitOps, SetThemeOps, Voicemail } from './utils';
|
|
2
2
|
import { CallAnswered, CallEnded, CallRecorded, CallStarted, CampaignEnded, DialerIdle, DialerVisible, DncChanged, LinesChanged, MiniDialerVisible, WaitingForContinue, OverlayVisible, Disposition } from './events';
|
|
3
|
-
import { AddDncNumberOps, AddPhoneOps, CallPhoneOps, ContinueCampaignOps, RemoveContactOps, RemoveDncNumberOps, RemovePhoneOps, StartCampaignOps, DropVoicemailOps, EndCampaignOps } from './options';
|
|
3
|
+
import { AddDncNumberOps, AddPhoneOps, CallPhoneOps, ContinueCampaignOps, RemoveContactOps, RemoveDncNumberOps, RemovePhoneOps, StartCampaignOps, DropVoicemailOps, EndCampaignOps, OpenSettingsOps } from './options';
|
|
4
4
|
export * from './constants';
|
|
5
5
|
export declare const init: (options: InitOps) => Promise<void>;
|
|
6
6
|
export declare const close: () => Promise<void>;
|
|
@@ -18,7 +18,7 @@ export declare const endCampaign: (options: EndCampaignOps) => Promise<void>;
|
|
|
18
18
|
export declare const purchaseDialer: () => Promise<void>;
|
|
19
19
|
export declare const recordCall: () => Promise<void>;
|
|
20
20
|
export declare const listVoicemails: () => Promise<Voicemail[]>;
|
|
21
|
-
export declare const openSettings: () => Promise<void>;
|
|
21
|
+
export declare const openSettings: (options?: OpenSettingsOps) => Promise<void>;
|
|
22
22
|
export declare const dropVoicemail: (options: DropVoicemailOps) => Promise<void>;
|
|
23
23
|
export declare const addCallAnsweredListener: (callback: (event: CallAnswered) => void) => Listener;
|
|
24
24
|
export declare const addCallEndedListener: (callback: (event: CallEnded) => void) => Listener;
|
package/dist/index.js
CHANGED
|
@@ -49,7 +49,7 @@ const recordCall = () => (0, utils_1.execute)('RECORD_CALL');
|
|
|
49
49
|
exports.recordCall = recordCall;
|
|
50
50
|
const listVoicemails = () => (0, utils_1.execute)('LIST_VOICEMAILS');
|
|
51
51
|
exports.listVoicemails = listVoicemails;
|
|
52
|
-
const openSettings = () => (0, utils_1.execute)('OPEN_SETTINGS', { type: 'DIALER' });
|
|
52
|
+
const openSettings = (options) => (0, utils_1.execute)('OPEN_SETTINGS', { type: 'DIALER', tab: options === null || options === void 0 ? void 0 : options.tab });
|
|
53
53
|
exports.openSettings = openSettings;
|
|
54
54
|
const dropVoicemail = (options) => (0, utils_1.execute)('DROP_VOICEMAIL');
|
|
55
55
|
exports.dropVoicemail = dropVoicemail;
|
package/dist/options.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Contact } from './utils';
|
|
1
|
+
import { Contact, SettingsTab } from './utils';
|
|
2
2
|
export interface AddDncNumberOps {
|
|
3
3
|
number: string;
|
|
4
4
|
addedBy?: string;
|
|
@@ -35,3 +35,6 @@ export interface EndCampaignOps {
|
|
|
35
35
|
export interface DropVoicemailOps {
|
|
36
36
|
id: string;
|
|
37
37
|
}
|
|
38
|
+
export interface OpenSettingsOps {
|
|
39
|
+
tab?: SettingsTab.GENERAL | SettingsTab.AUDIO | SettingsTab.VOICEMAILS | SettingsTab.CALLBACKS | SettingsTab.NUMBERS | SettingsTab.MOBILE | SettingsTab.DNC_LIST | SettingsTab.CALL_LOGS | SettingsTab.BETA | SettingsTab.SUBSCRIPTION | SettingsTab.ADDONS | SettingsTab.USAGE | SettingsTab.SPAM_MONITORING;
|
|
40
|
+
}
|
package/dist/utils.d.ts
CHANGED
|
@@ -42,4 +42,21 @@ export interface Voicemail {
|
|
|
42
42
|
name: string;
|
|
43
43
|
seconds: number;
|
|
44
44
|
}
|
|
45
|
+
export declare enum SettingsTab {
|
|
46
|
+
NUMBERS = "TAB_NUMBERS",
|
|
47
|
+
GENERAL = "TAB_GENERAL",
|
|
48
|
+
AUDIO = "TAB_AUDIO",
|
|
49
|
+
RINGLESS_HISTORY = "TAB_RINGLESS_HISTORY",
|
|
50
|
+
VIDEO_SIGNATURE = "TAB_VIDEO_SIGNATURE",
|
|
51
|
+
VOICEMAILS = "TAB_VOICEMAILS",
|
|
52
|
+
CALLBACKS = "TAB_CALLBACKS",
|
|
53
|
+
MOBILE = "TAB_MOBILE",
|
|
54
|
+
DNC_LIST = "TAB_DNC_LIST",
|
|
55
|
+
CALL_LOGS = "TAB_CALL_LOGS",
|
|
56
|
+
BETA = "TAB_BETA",
|
|
57
|
+
SUBSCRIPTION = "TAB_SUBSCRIPTION",
|
|
58
|
+
ADDONS = "TAB_ADDONS",
|
|
59
|
+
USAGE = "TAB_USAGE",
|
|
60
|
+
SPAM_MONITORING = "TAB_SPAM_MONITORING"
|
|
61
|
+
}
|
|
45
62
|
export {};
|
package/dist/utils.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.initialize = exports.execute = exports.listen = void 0;
|
|
3
|
+
exports.SettingsTab = exports.initialize = exports.execute = exports.listen = void 0;
|
|
4
4
|
const version_1 = require("./version");
|
|
5
5
|
const WINDOW_VAR = 'WAVV';
|
|
6
6
|
const DOMAIN = 'wavv.com';
|
|
@@ -91,3 +91,21 @@ const initialize = (options) => {
|
|
|
91
91
|
});
|
|
92
92
|
};
|
|
93
93
|
exports.initialize = initialize;
|
|
94
|
+
var SettingsTab;
|
|
95
|
+
(function (SettingsTab) {
|
|
96
|
+
SettingsTab["NUMBERS"] = "TAB_NUMBERS";
|
|
97
|
+
SettingsTab["GENERAL"] = "TAB_GENERAL";
|
|
98
|
+
SettingsTab["AUDIO"] = "TAB_AUDIO";
|
|
99
|
+
SettingsTab["RINGLESS_HISTORY"] = "TAB_RINGLESS_HISTORY";
|
|
100
|
+
SettingsTab["VIDEO_SIGNATURE"] = "TAB_VIDEO_SIGNATURE";
|
|
101
|
+
SettingsTab["VOICEMAILS"] = "TAB_VOICEMAILS";
|
|
102
|
+
SettingsTab["CALLBACKS"] = "TAB_CALLBACKS";
|
|
103
|
+
SettingsTab["MOBILE"] = "TAB_MOBILE";
|
|
104
|
+
SettingsTab["DNC_LIST"] = "TAB_DNC_LIST";
|
|
105
|
+
SettingsTab["CALL_LOGS"] = "TAB_CALL_LOGS";
|
|
106
|
+
SettingsTab["BETA"] = "TAB_BETA";
|
|
107
|
+
SettingsTab["SUBSCRIPTION"] = "TAB_SUBSCRIPTION";
|
|
108
|
+
SettingsTab["ADDONS"] = "TAB_ADDONS";
|
|
109
|
+
SettingsTab["USAGE"] = "TAB_USAGE";
|
|
110
|
+
SettingsTab["SPAM_MONITORING"] = "TAB_SPAM_MONITORING";
|
|
111
|
+
})(SettingsTab = exports.SettingsTab || (exports.SettingsTab = {}));
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const MODULE = "@wavv/dialer";
|
|
2
|
-
export declare const VERSION = "3.1.
|
|
2
|
+
export declare const VERSION = "3.1.1";
|
package/dist/version.js
CHANGED