reply-cli 0.1.1 → 0.2.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/README.md +104 -361
- package/dist/commands/auth.d.ts +5 -0
- package/dist/commands/auth.js +31 -0
- package/dist/commands/auth.js.map +1 -0
- package/dist/commands/contacts.d.ts +26 -11
- package/dist/commands/contacts.js +284 -193
- package/dist/commands/contacts.js.map +1 -1
- package/dist/commands/email-accounts.d.ts +11 -0
- package/dist/commands/email-accounts.js +97 -0
- package/dist/commands/email-accounts.js.map +1 -0
- package/dist/commands/inbox.d.ts +30 -0
- package/dist/commands/inbox.js +225 -0
- package/dist/commands/inbox.js.map +1 -0
- package/dist/commands/lists.d.ts +20 -0
- package/dist/commands/lists.js +137 -0
- package/dist/commands/lists.js.map +1 -0
- package/dist/commands/reports.d.ts +10 -0
- package/dist/commands/reports.js +70 -0
- package/dist/commands/reports.js.map +1 -0
- package/dist/commands/schedules.d.ts +1 -4
- package/dist/commands/schedules.js +19 -79
- package/dist/commands/schedules.js.map +1 -1
- package/dist/commands/sequence-contacts.d.ts +17 -6
- package/dist/commands/sequence-contacts.js +105 -117
- package/dist/commands/sequence-contacts.js.map +1 -1
- package/dist/commands/sequences-stats.d.ts +39 -4
- package/dist/commands/sequences-stats.js +75 -159
- package/dist/commands/sequences-stats.js.map +1 -1
- package/dist/commands/sequences.d.ts +16 -6
- package/dist/commands/sequences.js +118 -132
- package/dist/commands/sequences.js.map +1 -1
- package/dist/index.js +61 -26
- package/dist/index.js.map +1 -1
- package/dist/utils/client.d.ts +29 -2
- package/dist/utils/client.js +73 -54
- package/dist/utils/client.js.map +1 -1
- package/dist/utils/command.d.ts +8 -1
- package/dist/utils/command.js +32 -1
- package/dist/utils/command.js.map +1 -1
- package/dist/utils/csv.d.ts +19 -0
- package/dist/utils/csv.js +118 -0
- package/dist/utils/csv.js.map +1 -0
- package/dist/utils/output.d.ts +12 -3
- package/dist/utils/output.js +17 -7
- package/dist/utils/output.js.map +1 -1
- package/dist/utils/pagination.d.ts +22 -0
- package/dist/utils/pagination.js +37 -0
- package/dist/utils/pagination.js.map +1 -0
- package/dist/utils/resolve.d.ts +4 -0
- package/dist/utils/resolve.js +34 -0
- package/dist/utils/resolve.js.map +1 -0
- package/package.json +19 -3
- package/dist/commands/accounts.d.ts +0 -6
- package/dist/commands/accounts.js +0 -62
- package/dist/commands/accounts.js.map +0 -1
- package/dist/commands/import.d.ts +0 -6
- package/dist/commands/import.js +0 -137
- package/dist/commands/import.js.map +0 -1
|
@@ -1,7 +1,42 @@
|
|
|
1
1
|
import { Command } from 'commander';
|
|
2
2
|
import type { Print_opts } from '../utils/output';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
type Email_overview = {
|
|
4
|
+
contacted: number;
|
|
5
|
+
delivered: number;
|
|
6
|
+
opened: number;
|
|
7
|
+
replied: number;
|
|
8
|
+
interested: number;
|
|
9
|
+
bounced: number;
|
|
10
|
+
optedOut: number;
|
|
11
|
+
meetingsBooked: number;
|
|
12
|
+
deliveredPercentage: number;
|
|
13
|
+
openedPercentage: number;
|
|
14
|
+
repliedPercentage: number;
|
|
15
|
+
interestedPercentage: number;
|
|
16
|
+
bouncedPercentage: number;
|
|
17
|
+
};
|
|
18
|
+
type Bulk_stats_row = {
|
|
19
|
+
sequenceId: number;
|
|
20
|
+
name: string;
|
|
21
|
+
status: string;
|
|
22
|
+
emailOverview: Email_overview;
|
|
23
|
+
linkedInOverview?: Record<string, number>;
|
|
24
|
+
};
|
|
25
|
+
declare const handle_stats_single: (api_key: string, id: string, opts: {
|
|
26
|
+
from?: string;
|
|
27
|
+
to?: string;
|
|
28
|
+
preset?: string;
|
|
29
|
+
} & Print_opts) => Promise<void>;
|
|
30
|
+
declare const fetch_bulk_stats: (api_key: string, opts: {
|
|
31
|
+
from?: string;
|
|
32
|
+
to?: string;
|
|
33
|
+
preset?: string;
|
|
34
|
+
}) => Promise<Bulk_stats_row[]>;
|
|
35
|
+
declare const handle_stats_all: (api_key: string, opts: {
|
|
36
|
+
from?: string;
|
|
37
|
+
to?: string;
|
|
38
|
+
preset?: string;
|
|
39
|
+
top?: boolean;
|
|
40
|
+
} & Print_opts) => Promise<void>;
|
|
6
41
|
declare const sequences_stats_command: Command;
|
|
7
|
-
export { sequences_stats_command,
|
|
42
|
+
export { sequences_stats_command, handle_stats_single, handle_stats_all, fetch_bulk_stats };
|
|
@@ -1,183 +1,99 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.fetch_bulk_stats = exports.handle_stats_all = exports.handle_stats_single = exports.sequences_stats_command = void 0;
|
|
4
4
|
const commander_1 = require("commander");
|
|
5
5
|
const client_1 = require("../utils/client");
|
|
6
6
|
const auth_1 = require("../utils/auth");
|
|
7
7
|
const output_1 = require("../utils/output");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
if (
|
|
12
|
-
(
|
|
13
|
-
|
|
8
|
+
// Single-sequence stats allow lastWeek|lastMonth|lastYear|allTime;
|
|
9
|
+
// the bulk endpoint only lastWeek|lastMonth (and from/to spans ≤ 31 days).
|
|
10
|
+
const build_filters = (opts) => {
|
|
11
|
+
if (opts.from || opts.to) {
|
|
12
|
+
if (!opts.from || !opts.to)
|
|
13
|
+
(0, output_1.fail)('Pass both --from and --to (ISO dates), or use --preset.');
|
|
14
|
+
return { from: opts.from, to: opts.to };
|
|
14
15
|
}
|
|
15
|
-
|
|
16
|
-
const steps = await (0, client_1.get)(api_key, `/v2/campaigns/${id}/steps`);
|
|
17
|
-
const step_stats = [];
|
|
18
|
-
for (const step of (steps || [])) {
|
|
19
|
-
try {
|
|
20
|
-
const ss = await (0, client_1.get)(api_key, `/v1/Stats/CampaignStep?campaignId=${id}&stepId=${step.id}`);
|
|
21
|
-
step_stats.push(ss);
|
|
22
|
-
}
|
|
23
|
-
catch {
|
|
24
|
-
step_stats.push({ stepNumber: step.number, error: 'unavailable' });
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
(0, output_1.print)({ campaign: c, stepStats: step_stats }, print_opts);
|
|
28
|
-
return;
|
|
29
|
-
}
|
|
30
|
-
// Campaign summary
|
|
31
|
-
console.log(`\nSequence: ${output_1.pc.bold(c.name)}`);
|
|
32
|
-
console.log(` Status: ${(0, output_1.status_label)(c.status)}`);
|
|
33
|
-
console.log(` People: ${c.peopleCount || 0} total, ${c.peopleActive || 0} active, ${c.peopleFinished || 0} finished, ${c.peoplePaused || 0} paused`);
|
|
34
|
-
console.log(` Delivered: ${output_1.pc.bold(String(c.deliveriesCount || 0))}`);
|
|
35
|
-
console.log(` Opens: ${c.opensCount || 0} ${output_1.pc.dim('(' + (0, output_1.pct)(c.opensCount, c.deliveriesCount) + ')')}`);
|
|
36
|
-
console.log(` Replies: ${output_1.pc.green(String(c.repliesCount || 0))} ${output_1.pc.dim('(' + (0, output_1.pct)(c.repliesCount, c.deliveriesCount) + ')')}`);
|
|
37
|
-
console.log(` Bounces: ${c.bouncesCount || 0} ${output_1.pc.dim('(' + (0, output_1.pct)(c.bouncesCount, c.deliveriesCount) + ')')}`);
|
|
38
|
-
console.log(` Opt-outs: ${c.optOutsCount || 0}`);
|
|
39
|
-
console.log(` Out of office: ${c.outOfOfficeCount || 0}`);
|
|
40
|
-
console.log();
|
|
41
|
-
// Per-step stats
|
|
42
|
-
const steps = await (0, client_1.get)(api_key, `/v2/campaigns/${id}/steps`);
|
|
43
|
-
if (steps?.length) {
|
|
44
|
-
const rows = [];
|
|
45
|
-
for (const step of steps) {
|
|
46
|
-
try {
|
|
47
|
-
const ss = await (0, client_1.get)(api_key, `/v1/Stats/CampaignStep?campaignId=${id}&stepId=${step.id}`);
|
|
48
|
-
rows.push({
|
|
49
|
-
Step: String(ss.stepNumber || step.number),
|
|
50
|
-
Sent: String(ss.peopleSentTo || 0),
|
|
51
|
-
Opened: String(ss.openedPeople || 0),
|
|
52
|
-
'Open%': (0, output_1.pct)(ss.openedPeople, ss.peopleSentTo),
|
|
53
|
-
Replied: String(ss.repliedPeople || 0),
|
|
54
|
-
'Reply%': (0, output_1.pct)(ss.repliedPeople, ss.peopleSentTo),
|
|
55
|
-
Bounced: String(ss.bouncedPeople || 0),
|
|
56
|
-
Clicked: String(ss.clickedPeople || 0),
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
catch {
|
|
60
|
-
rows.push({ Step: String(step.number), Sent: '—', Opened: '—',
|
|
61
|
-
'Open%': '—', Replied: '—', 'Reply%': '—', Bounced: '—', Clicked: '—' });
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
(0, output_1.print_table)(rows, ['Step', 'Sent', 'Opened', 'Open%', 'Replied', 'Reply%', 'Bounced', 'Clicked']);
|
|
65
|
-
}
|
|
66
|
-
// Click stats
|
|
67
|
-
try {
|
|
68
|
-
const clicks = await (0, client_1.get)(api_key, `/v1/Stats/CampaignClicks?campaignId=${id}`);
|
|
69
|
-
if (clicks?.stepClicks?.length) {
|
|
70
|
-
console.log(output_1.pc.bold('\nClick Details:'));
|
|
71
|
-
for (const sc of clicks.stepClicks) {
|
|
72
|
-
for (const link of sc.links || [])
|
|
73
|
-
console.log(` ${output_1.pc.cyan(link.url || link.textToDisplay || 'Link')} — ${link.clicks} clicks`);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
catch { }
|
|
16
|
+
return { dateRangePreset: opts.preset || 'lastWeek' };
|
|
78
17
|
};
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
.slice(0, 3);
|
|
95
|
-
if (with_deliveries.length === 0) {
|
|
96
|
-
(0, output_1.info)('No sequences with deliveries yet.');
|
|
97
|
-
return;
|
|
98
|
-
}
|
|
99
|
-
if (print_opts.json || print_opts.pretty) {
|
|
100
|
-
(0, output_1.print)(with_deliveries, print_opts);
|
|
18
|
+
const print_email_overview = (o) => {
|
|
19
|
+
console.log(` Contacted: ${o.contacted}`);
|
|
20
|
+
console.log(` Delivered: ${output_1.pc.bold(String(o.delivered))} ${output_1.pc.dim(`(${o.deliveredPercentage?.toFixed(1)}%)`)}`);
|
|
21
|
+
console.log(` Opened: ${o.opened} ${output_1.pc.dim(`(${o.openedPercentage?.toFixed(1)}%)`)}`);
|
|
22
|
+
console.log(` Replied: ${output_1.pc.green(String(o.replied))} ${output_1.pc.dim(`(${o.repliedPercentage?.toFixed(1)}%)`)}`);
|
|
23
|
+
console.log(` Interested: ${output_1.pc.green(String(o.interested))} ${output_1.pc.dim(`(${o.interestedPercentage?.toFixed(1)}%)`)}`);
|
|
24
|
+
console.log(` Meetings: ${o.meetingsBooked}`);
|
|
25
|
+
console.log(` Bounced: ${o.bounced} ${output_1.pc.dim(`(${o.bouncedPercentage?.toFixed(1)}%)`)}`);
|
|
26
|
+
console.log(` Opted out: ${o.optedOut}`);
|
|
27
|
+
};
|
|
28
|
+
const handle_stats_single = async (api_key, id, opts) => {
|
|
29
|
+
const filters = build_filters(opts);
|
|
30
|
+
const result = await (0, client_1.post)(api_key, `/sequences/${id}/stats`, { filters });
|
|
31
|
+
if (opts.json || opts.pretty) {
|
|
32
|
+
(0, output_1.print)(result, opts);
|
|
101
33
|
return;
|
|
102
34
|
}
|
|
103
|
-
(
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
35
|
+
console.log(`\nSequence ${output_1.pc.bold(id)} — ${filters.dateRangePreset || `${filters.from} → ${filters.to}`}`);
|
|
36
|
+
print_email_overview(result.emailOverview);
|
|
37
|
+
};
|
|
38
|
+
exports.handle_stats_single = handle_stats_single;
|
|
39
|
+
const fetch_bulk_stats = async (api_key, opts) => {
|
|
40
|
+
const filters = build_filters(opts);
|
|
41
|
+
if (filters.dateRangePreset && !['lastWeek', 'lastMonth'].includes(filters.dateRangePreset))
|
|
42
|
+
(0, output_1.fail)('The all-sequences stats endpoint only supports --preset lastWeek or lastMonth.');
|
|
43
|
+
return await (0, client_1.post)(api_key, '/sequences/stats', { filters }) ?? [];
|
|
112
44
|
};
|
|
113
|
-
exports.
|
|
114
|
-
const
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
(0, output_1.
|
|
45
|
+
exports.fetch_bulk_stats = fetch_bulk_stats;
|
|
46
|
+
const stats_table = (rows) => {
|
|
47
|
+
(0, output_1.print_table)(rows.map(r => ({
|
|
48
|
+
ID: String(r.sequenceId),
|
|
49
|
+
Name: (0, output_1.truncate)(r.name || '—', 30),
|
|
50
|
+
Status: (0, output_1.status_label)(r.status),
|
|
51
|
+
Delivered: String(r.emailOverview?.delivered ?? 0),
|
|
52
|
+
Opened: (0, output_1.pct)(r.emailOverview?.opened ?? 0, r.emailOverview?.delivered ?? 0),
|
|
53
|
+
Replied: (0, output_1.pct)(r.emailOverview?.replied ?? 0, r.emailOverview?.delivered ?? 0),
|
|
54
|
+
Interested: String(r.emailOverview?.interested ?? 0),
|
|
55
|
+
Meetings: String(r.emailOverview?.meetingsBooked ?? 0),
|
|
56
|
+
})), ['ID', 'Name', 'Status', 'Delivered', 'Opened', 'Replied', 'Interested', 'Meetings']);
|
|
57
|
+
};
|
|
58
|
+
const handle_stats_all = async (api_key, opts) => {
|
|
59
|
+
const rows = await fetch_bulk_stats(api_key, opts);
|
|
60
|
+
if (!rows.length) {
|
|
61
|
+
(0, output_1.info)('No sequence stats for this period.');
|
|
118
62
|
return;
|
|
119
63
|
}
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
total_bounces += c.bouncesCount || 0;
|
|
131
|
-
total_optouts += c.optOutsCount || 0;
|
|
132
|
-
const rr = (c.deliveriesCount || 0) > 0
|
|
133
|
-
? (c.repliesCount || 0) / c.deliveriesCount : 0;
|
|
134
|
-
if (rr > best.replyRate)
|
|
135
|
-
best = { name: c.name, replyRate: rr };
|
|
64
|
+
let selected = rows;
|
|
65
|
+
if (opts.top) {
|
|
66
|
+
selected = [...rows]
|
|
67
|
+
.filter(r => (r.emailOverview?.delivered ?? 0) > 0)
|
|
68
|
+
.sort((a, b) => (b.emailOverview?.repliedPercentage ?? 0) - (a.emailOverview?.repliedPercentage ?? 0))
|
|
69
|
+
.slice(0, 5);
|
|
70
|
+
if (!selected.length) {
|
|
71
|
+
(0, output_1.info)('No sequences with deliveries in this period.');
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
136
74
|
}
|
|
137
|
-
if (
|
|
138
|
-
(0, output_1.print)(
|
|
139
|
-
sequences: { total: campaigns.length, active, paused, new: new_c },
|
|
140
|
-
performance: { total_people, total_delivered, total_opens, total_replies, total_bounces, total_optouts },
|
|
141
|
-
best_sequence: best.replyRate > 0 ? best : null,
|
|
142
|
-
}, print_opts);
|
|
75
|
+
if (opts.json || opts.pretty) {
|
|
76
|
+
(0, output_1.print)(selected, opts);
|
|
143
77
|
return;
|
|
144
78
|
}
|
|
145
|
-
|
|
146
|
-
console.log(` Total: ${campaigns.length} | ${output_1.pc.green(active + ' active')} | ${output_1.pc.yellow(paused + ' paused')} | ${new_c} new`);
|
|
147
|
-
console.log();
|
|
148
|
-
console.log(output_1.pc.bold(' Aggregate Performance'));
|
|
149
|
-
console.log(` Total contacts: ${total_people}`);
|
|
150
|
-
console.log(` Delivered: ${total_delivered}`);
|
|
151
|
-
console.log(` Opens: ${total_opens} (${(0, output_1.pct)(total_opens, total_delivered)})`);
|
|
152
|
-
console.log(` Replies: ${output_1.pc.green(String(total_replies))} (${(0, output_1.pct)(total_replies, total_delivered)})`);
|
|
153
|
-
console.log(` Bounces: ${total_bounces} (${(0, output_1.pct)(total_bounces, total_delivered)})`);
|
|
154
|
-
console.log(` Opt-outs: ${total_optouts}`);
|
|
155
|
-
console.log();
|
|
156
|
-
if (best.replyRate > 0) {
|
|
157
|
-
console.log(output_1.pc.bold(' Best Sequence'));
|
|
158
|
-
console.log(` ${output_1.pc.cyan(best.name)} — ${output_1.pc.green((best.replyRate * 100).toFixed(1) + '% reply rate')}`);
|
|
159
|
-
}
|
|
79
|
+
stats_table(selected);
|
|
160
80
|
};
|
|
161
|
-
exports.
|
|
81
|
+
exports.handle_stats_all = handle_stats_all;
|
|
162
82
|
const sequences_stats_command = new commander_1.Command('stats')
|
|
163
|
-
.description('
|
|
164
|
-
.argument('[id]', 'Sequence ID (omit for
|
|
165
|
-
.option('--
|
|
166
|
-
.option('--
|
|
167
|
-
.
|
|
83
|
+
.description('Sequence performance stats')
|
|
84
|
+
.argument('[id]', 'Sequence ID (omit for all sequences)')
|
|
85
|
+
.option('--preset <preset>', 'Date range: lastWeek | lastMonth | lastYear | allTime (default: lastWeek)')
|
|
86
|
+
.option('--from <date>', 'Period start (ISO date)')
|
|
87
|
+
.option('--to <date>', 'Period end (ISO date; span ≤ 31 days for all-sequences stats)')
|
|
88
|
+
.option('--top', 'Only the top 5 sequences by reply rate')
|
|
89
|
+
.addHelpText('after', '\nExamples:\n reply sequences stats 12345\n reply sequences stats 12345 --preset allTime\n reply sequences stats # all sequences, last week\n reply sequences stats --top --json')
|
|
168
90
|
.action(async function (id) {
|
|
169
91
|
const opts = this.optsWithGlobals();
|
|
170
92
|
const key = (0, auth_1.resolve_api_key)(opts.apiKey);
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
return handle_summary(key, print_opts);
|
|
176
|
-
if (!id) {
|
|
177
|
-
console.error('Provide a sequence ID, or use --top or --summary.');
|
|
178
|
-
process.exit(1);
|
|
179
|
-
}
|
|
180
|
-
await handle_stats(key, id, print_opts);
|
|
93
|
+
if (id)
|
|
94
|
+
await handle_stats_single(key, id, opts);
|
|
95
|
+
else
|
|
96
|
+
await handle_stats_all(key, opts);
|
|
181
97
|
});
|
|
182
98
|
exports.sequences_stats_command = sequences_stats_command;
|
|
183
99
|
//# sourceMappingURL=sequences-stats.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sequences-stats.js","sourceRoot":"","sources":["../../src/commands/sequences-stats.ts"],"names":[],"mappings":";;;AAAA,yCAAkC;AAClC,
|
|
1
|
+
{"version":3,"file":"sequences-stats.js","sourceRoot":"","sources":["../../src/commands/sequences-stats.ts"],"names":[],"mappings":";;;AAAA,yCAAkC;AAClC,4CAAqC;AACrC,wCAA8C;AAC9C,4CAAgG;AAsChG,mEAAmE;AACnE,2EAA2E;AAC3E,MAAM,aAAa,GAAG,CAAC,IAAmD,EAAgB,EAAE;IACxF,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,EAAE,EACxB,CAAC;QACG,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,EAAE;YACtB,IAAA,aAAI,EAAC,yDAAyD,CAAC,CAAC;QACpE,OAAO,EAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,EAAC,CAAC;IAC1C,CAAC;IACD,OAAO,EAAC,eAAe,EAAE,IAAI,CAAC,MAAM,IAAI,UAAU,EAAC,CAAC;AACxD,CAAC,CAAC;AAEF,MAAM,oBAAoB,GAAG,CAAC,CAAiB,EAAC,EAAE;IAC9C,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC,SAAS,EAAE,CAAC,CAAC;IAC9C,OAAO,CAAC,GAAG,CAAC,mBAAmB,WAAE,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,IAAI,WAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAA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|
-
declare const handle_list: (api_key: string,
|
|
3
|
+
declare const handle_list: (api_key: string, opts: {
|
|
4
|
+
status?: string;
|
|
5
|
+
name?: string;
|
|
6
|
+
archived?: boolean;
|
|
7
|
+
limit?: string;
|
|
8
|
+
skip?: string;
|
|
9
|
+
all?: boolean;
|
|
10
|
+
} & Print_opts) => Promise<void>;
|
|
4
11
|
declare const handle_get: (api_key: string, id: string, print_opts: Print_opts) => Promise<void>;
|
|
5
|
-
declare const handle_create: (api_key: string, print_opts: Print_opts) => Promise<void>;
|
|
12
|
+
declare const handle_create: (api_key: string, name_flag: string | undefined, print_opts: Print_opts) => Promise<void>;
|
|
6
13
|
declare const handle_update: (api_key: string, id: string, print_opts: Print_opts) => Promise<void>;
|
|
7
|
-
declare const
|
|
8
|
-
|
|
14
|
+
declare const handle_start: (api_key: string, id: string, opts: {
|
|
15
|
+
yes?: boolean;
|
|
16
|
+
}) => Promise<void>;
|
|
9
17
|
declare const handle_pause: (api_key: string, id: string) => Promise<void>;
|
|
10
|
-
declare const handle_archive: (api_key: string, id: string
|
|
18
|
+
declare const handle_archive: (api_key: string, id: string, opts: {
|
|
19
|
+
yes?: boolean;
|
|
20
|
+
}) => Promise<void>;
|
|
11
21
|
declare const sequences_command: Command;
|
|
12
|
-
export { sequences_command, handle_list, handle_get, handle_create, handle_update,
|
|
22
|
+
export { sequences_command, handle_list, handle_get, handle_create, handle_update, handle_start, handle_pause, handle_archive, };
|