reply-cli 0.13.0 → 0.15.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 +69 -10
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/operations/accounts.d.ts +6 -0
- package/dist/operations/accounts.js +73 -0
- package/dist/operations/accounts.js.map +1 -0
- package/dist/operations/commands.d.ts +2 -1
- package/dist/operations/commands.js +118 -7
- package/dist/operations/commands.js.map +1 -1
- package/dist/operations/contact-input.d.ts +3 -2
- package/dist/operations/contact-input.js +12 -8
- package/dist/operations/contact-input.js.map +1 -1
- package/dist/operations/contact-record.d.ts +5 -2
- package/dist/operations/contact-record.js +31 -8
- package/dist/operations/contact-record.js.map +1 -1
- package/dist/operations/contact.js +4 -14
- package/dist/operations/contact.js.map +1 -1
- package/dist/operations/contacts.d.ts +5 -3
- package/dist/operations/contacts.js +19 -8
- package/dist/operations/contacts.js.map +1 -1
- package/dist/operations/direct-send.d.ts +12 -0
- package/dist/operations/direct-send.js +246 -0
- package/dist/operations/direct-send.js.map +1 -0
- package/dist/operations/options.d.ts +3 -2
- package/dist/operations/options.js +8 -4
- package/dist/operations/options.js.map +1 -1
- package/dist/operations/stdin-input.d.ts +5 -1
- package/dist/operations/stdin-input.js +37 -1
- package/dist/operations/stdin-input.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -195,15 +195,19 @@ prints JSON (indented; compact with `--json`) and says what happened in a stable
|
|
|
195
195
|
| `reply contact-list add-contact <list-id> <contact> [--refuse-opted-out]` | → `added` |
|
|
196
196
|
| `reply contact find --contact -` | the id of the contact under an email or a LinkedIn URL, or null; never creates one |
|
|
197
197
|
| `reply contact get <id>` | the contact as Reply holds it |
|
|
198
|
-
| `reply contact update <id> --fields -` | change some fields and custom fields; null clears one → `updated` |
|
|
198
|
+
| `reply contact update (<id> \| <contact>) --fields -` | change some fields and custom fields; null clears one → `updated` |
|
|
199
199
|
| `reply contact delete <id>` | → `deleted` |
|
|
200
200
|
| `reply contact opt-out <contact>` | → `opted_out` |
|
|
201
|
+
| `reply contact send-email <contact> --email-account-id N --message -` | one email now, outside any sequence → `sent` |
|
|
202
|
+
| `reply contact linkedin-connect <contact> --linkedin-account-id N [--message -]` | a LinkedIn invitation, with or without a note → `sent` / `already_connected` |
|
|
203
|
+
| `reply contact linkedin-message …` · `linkedin-inmail …` · `linkedin-voice …` | a LinkedIn message, an InMail, or an AI voice message spoken from a script → `sent` |
|
|
201
204
|
| `reply inbox list (--contact-id \| --sequence-id) [--source] [--channel] [--category-id] [--since]` | one page of threads |
|
|
202
205
|
| `reply inbox get <thread-id>` | a thread with its subject, and one page of its messages |
|
|
203
206
|
| `reply inbox reply <thread-id> --message -` | reply in the thread, on its own channel → `sent` |
|
|
204
207
|
| `reply inbox categories` | the categories a thread can be filed under |
|
|
205
208
|
| `reply inbox categorize <thread-id> (--category-id N \| --clear)` | → `categorized` / `cleared` |
|
|
206
209
|
| `reply inbox mark-read <thread-id>` · `reply inbox mark-unread <thread-id>` | → `read` / `unread` |
|
|
210
|
+
| `reply account list [--channel email\|linkedin]` | the email and LinkedIn accounts a send can go from, whose each is, and the state of each |
|
|
207
211
|
|
|
208
212
|
`<contact>` is exactly one of `--contact <json>|@file|-`, `--email <address>` (with `--first-name`,
|
|
209
213
|
`--last-name`, `--company`, `--title`), or `--contact-id <id>`. The JSON takes the same fields
|
|
@@ -217,9 +221,27 @@ echo '{"linkedin_url":"https://www.linkedin.com/in/ann-example","first_name":"An
|
|
|
217
221
|
|
|
218
222
|
The two `add-contact` commands always import a contact given by email, and Reply refuses an import
|
|
219
223
|
without a first name, even for a contact it already holds; a contact given only by LinkedIn URL is
|
|
220
|
-
looked up first and imported only when Reply holds nobody under it. `contact opt-out`
|
|
221
|
-
|
|
222
|
-
|
|
224
|
+
looked up first and imported only when Reply holds nobody under it. `contact opt-out`, `contact
|
|
225
|
+
update` and the direct sends look first and import only someone Reply doesn't hold yet, so only then
|
|
226
|
+
is a first name needed, and a direct send sends only to a contact it created (below); `sequence
|
|
227
|
+
remove-contact` never imports. Each of these except `sequence remove-contact` answers the
|
|
228
|
+
`contact_id` it acted on and `contact_created`, so a caller can keep the id. A send looks the person
|
|
229
|
+
up by every address it was given, the one it reaches them at first (the email for `contact send-email`,
|
|
230
|
+
the LinkedIn URL for the LinkedIn sends), then the other when there is one. Otherwise a contact is
|
|
231
|
+
looked up by its email, and one with only a LinkedIn URL by that; an import is matched by the email
|
|
232
|
+
when there is one.
|
|
233
|
+
|
|
234
|
+
A direct send given a person's fields sends only to a contact it creates. When a lookup by any address
|
|
235
|
+
it was given finds a contact, or its import matches one Reply already holds (by the email, say, or a teammate's), nothing
|
|
236
|
+
is sent: the answer is `contact.already_held` (exit 1) with that contact's id in `ids.contact_id`.
|
|
237
|
+
Read that contact first with `reply contact get`, its opt-out included, and send to it with
|
|
238
|
+
`--contact-id` if it is the one to reach. Reply does not refuse a direct send to a contact it holds
|
|
239
|
+
as opted out, so a send never reaches a contact Reply already held without that read. A LinkedIn
|
|
240
|
+
send needs a `linkedin_url` in `--contact` (or `--contact-id`): `--email` alone is refused. On a send,
|
|
241
|
+
`contact_created` is kept for consistency with the add commands: given a person's fields it is always `true`,
|
|
242
|
+
and with `--contact-id` it is always `false`; in both cases a successful answer says the send was made.
|
|
243
|
+
|
|
244
|
+
The lookup is Reply's exact
|
|
223
245
|
one: an email matches ignoring case, and a LinkedIn URL is matched by its lowercased slug — on
|
|
224
246
|
linkedin.com the path's case does not count, nor the scheme's or host's, a default port, one trailing
|
|
225
247
|
slash or a fragment, while `www` and the query do. Reply is asked for a LinkedIn URL in that form
|
|
@@ -238,7 +260,18 @@ echo '{"name":"Q4 outreach"}' | reply sequence list --name -
|
|
|
238
260
|
```
|
|
239
261
|
|
|
240
262
|
`contact update` refuses a custom field the account has none of, `contact.field_not_found`, before
|
|
241
|
-
it changes anything.
|
|
263
|
+
it changes or imports anything. Given the contact by its flags rather than its id, it changes only
|
|
264
|
+
what `--fields` names: the contact's own fields find the contact, or import it, and never change one
|
|
265
|
+
Reply already holds.
|
|
266
|
+
|
|
267
|
+
When `--contact -` and the command's own input (`--message -` or `--fields -`) both read stdin, it
|
|
268
|
+
holds one object with each under its flag's name, so neither the person nor the text ever sits in
|
|
269
|
+
the argument list:
|
|
270
|
+
|
|
271
|
+
```sh
|
|
272
|
+
echo '{"contact":{"email":"ann@example.com","first_name":"Ann"},"fields":{"title":"CTO"}}' | reply contact update --contact - --fields -
|
|
273
|
+
echo '{"contact":{"linkedin_url":"https://www.linkedin.com/in/ann-example","first_name":"Ann"},"message":{"body":"Thanks for connecting, Ann."}}' | reply contact linkedin-message --contact - --linkedin-account-id 34 --message -
|
|
274
|
+
```
|
|
242
275
|
|
|
243
276
|
`inbox reply` takes its message, `{body, reply_to_message_id}`, from stdin only, and refuses it on
|
|
244
277
|
the argument list. The reply goes to the thread's contact from the account that owns the thread;
|
|
@@ -248,9 +281,35 @@ the argument list. The reply goes to the thread's contact from the account that
|
|
|
248
281
|
echo '{"body":"Thanks, Tuesday works."}' | reply inbox reply 9876 --message -
|
|
249
282
|
```
|
|
250
283
|
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
284
|
+
The direct sends reach a contact outside any sequence, from an account you name: `contact
|
|
285
|
+
send-email` (`{subject, body}`, the body HTML), `contact linkedin-connect` (`{note}`, or no
|
|
286
|
+
`--message` for an invitation without one), `contact linkedin-message` (`{body}`), `contact
|
|
287
|
+
linkedin-inmail` (`{subject, body}`) and `contact linkedin-voice` (`{script}`, which Reply speaks in
|
|
288
|
+
the LinkedIn account's voice). Each reads its text from stdin only and refuses it on the argument
|
|
289
|
+
list. `reply account list` gives the ids to send from, each account's status (`active`, `inactive`,
|
|
290
|
+
`disconnected` or `other`) and Reply's own word for it. In a team that shares its accounts the list
|
|
291
|
+
holds teammates' accounts too, and `owner_user_id` says whose each one is. Without `--channel` both
|
|
292
|
+
lists are read, and one the plan or role does not include fails the whole command; `--channel email`
|
|
293
|
+
or `--channel linkedin` reads one alone:
|
|
294
|
+
|
|
295
|
+
```sh
|
|
296
|
+
echo '{"subject":"Quick question","body":"<p>Hi Ann, does Tuesday work?</p>"}' | reply contact send-email --contact-id 456 --email-account-id 12 --message -
|
|
297
|
+
echo '{"body":"Thanks for connecting, Ann."}' | reply contact linkedin-message --contact-id 456 --linkedin-account-id 34 --message -
|
|
298
|
+
```
|
|
299
|
+
|
|
300
|
+
A LinkedIn send answers Reply's activity id and its `sentAtUtc` as Reply gives it; a direct email
|
|
301
|
+
answers no time, so its `sent_at` is null, and the CLI never puts its own clock in either. The
|
|
302
|
+
lengths Reply publishes (a LinkedIn message's 8000 characters, an InMail's 200 and 1900, a script's
|
|
303
|
+
1000) are refused before anything is sent. Reply reads `{{…}}` in a LinkedIn text as its template
|
|
304
|
+
variables, and refuses one it cannot fill with `linkedin.missing_variables`.
|
|
305
|
+
|
|
306
|
+
`inbox reply`, `sequence create` and the five direct sends are the work commands that are not safe to
|
|
307
|
+
re-run. On exit 3 (outcome unknown) a reply or a send may already have gone, and running it again may
|
|
308
|
+
send it twice, unless the hint says nothing was sent: a send whose contact's import lost its answer
|
|
309
|
+
was never made, and its hint says so; run again, it answers `contact.already_held` if that import did
|
|
310
|
+
create the contact.
|
|
311
|
+
For `inbox reply`, read the thread with `reply inbox get` before trying again. For
|
|
312
|
+
`sequence create`, Reply allows two sequences of one name, so after exit 3 look the name up with
|
|
254
313
|
`sequence list --name -` first. Every other work command can simply be run again; a `contact delete`
|
|
255
314
|
repeated after its first one took effect answers `contact.not_found`.
|
|
256
315
|
|
|
@@ -262,8 +321,8 @@ Reply refused the add. `reply.invalid_request` means Reply didn't accept a field
|
|
|
262
321
|
|
|
263
322
|
**Exit codes.** `0` done · `1` failed, and the main effect did not happen · `2` usage error, nothing
|
|
264
323
|
sent · `3` **outcome unknown**: a write may have happened and no answer came back. Re-running the
|
|
265
|
-
same command is safe, except `inbox reply
|
|
266
|
-
on Reply's own state rather than repeating an effect blindly.
|
|
324
|
+
same command is safe, except `inbox reply`, `sequence create` and the direct sends (above): each of
|
|
325
|
+
the others checks or relies on Reply's own state rather than repeating an effect blindly.
|
|
267
326
|
|
|
268
327
|
**Retries.** Reads are retried on errors. A write is retried only when it can't have reached Reply:
|
|
269
328
|
the connection was never made, or a `429` asked to wait 3 seconds or less. A longer `429` comes back
|
package/dist/index.js
CHANGED
|
@@ -44,7 +44,7 @@ const build_program = () => {
|
|
|
44
44
|
program.hook('preAction', () => { (0, output_1.set_quiet)(program.opts().quiet === true); });
|
|
45
45
|
const WORK = 'Work with your Reply account:';
|
|
46
46
|
const SETUP = 'Setup:';
|
|
47
|
-
for (const c of [commands_1.sequence_command, commands_1.contact_list_command, commands_1.contact_command, commands_1.inbox_command, api_1.api_command]) {
|
|
47
|
+
for (const c of [commands_1.sequence_command, commands_1.contact_list_command, commands_1.contact_command, commands_1.inbox_command, commands_1.account_command, api_1.api_command]) {
|
|
48
48
|
program.addCommand(c.helpGroup(WORK));
|
|
49
49
|
}
|
|
50
50
|
for (const c of [auth_1.auth_command, profile_1.profile_command, team_1.team_command, skills_1.skills_command, install_1.install_command]) {
|
|
@@ -85,6 +85,7 @@ Work commands (JSON out; exit 0 done, 1 failed, 2 usage, 3 outcome unknown):
|
|
|
85
85
|
${config_1.PROGRAM_NAME} sequence start 123 --expect-contacts 40
|
|
86
86
|
${config_1.PROGRAM_NAME} contact opt-out --contact-id 456
|
|
87
87
|
${config_1.PROGRAM_NAME} inbox list --contact-id 456
|
|
88
|
+
${config_1.PROGRAM_NAME} account list --channel linkedin
|
|
88
89
|
Each command's --help lists its flags, its result and its error codes.
|
|
89
90
|
|
|
90
91
|
Raw API (agent/CI escape hatch) — docs: https://docs.reply.io/api-reference/introduction
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AACA,yCAAkD;AAClD,qCAAmD;AACnD,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
|
3
|
+
exports.handle_account_list = void 0;
|
|
4
|
+
const errors_1 = require("../utils/errors");
|
|
5
|
+
const call_1 = require("./call");
|
|
6
|
+
const options_1 = require("./options");
|
|
7
|
+
const result_1 = require("./result");
|
|
8
|
+
const ACCOUNT_CHANNELS = ['email', 'linkedin'];
|
|
9
|
+
// Reply's words for an account's state, and the CLI's. A word not here is `other`; Reply's own word
|
|
10
|
+
// always goes beside it. A LinkedIn account at its daily limit is on and connected, so it is
|
|
11
|
+
// active: a send that meets the limit answers linkedin.limit_reached.
|
|
12
|
+
const EMAIL_STATUSES = { connected: 'active', disconnected: 'disconnected', unknown: 'other' };
|
|
13
|
+
const LINKEDIN_STATUSES = {
|
|
14
|
+
enabled: 'active', disabled: 'inactive', cookieInvalid: 'disconnected', dailyLimitReached: 'active',
|
|
15
|
+
};
|
|
16
|
+
const PAGE = 1000; // the most Reply gives in one page of email accounts
|
|
17
|
+
const MAX_PAGES = 20;
|
|
18
|
+
const text_or_null = (v) => (typeof v === 'string' && v.trim() !== '' ? v : null);
|
|
19
|
+
const positive_integer = (v) => (typeof v === 'number' && Number.isSafeInteger(v) && v > 0 ? v : null);
|
|
20
|
+
const account_of = (entry, channel, words, fields) => {
|
|
21
|
+
// Email account ids are 64-bit at Reply; any whole number a JSON number carries exactly is one.
|
|
22
|
+
if (!(0, call_1.is_object)(entry) || typeof entry.id !== 'number' || !Number.isSafeInteger(entry.id) || entry.id <= 0) {
|
|
23
|
+
throw new errors_1.Operation_error('reply.unavailable', 'Reply listed an account without a usable id.', { status: 200 });
|
|
24
|
+
}
|
|
25
|
+
const word = entry[fields.status];
|
|
26
|
+
return {
|
|
27
|
+
id: entry.id, channel,
|
|
28
|
+
name: text_or_null(entry[fields.name]),
|
|
29
|
+
address: text_or_null(entry[fields.address]),
|
|
30
|
+
// In a team that shares its accounts, Reply lists teammates' accounts too; this says whose each one is.
|
|
31
|
+
owner_user_id: positive_integer(entry.ownerUserId),
|
|
32
|
+
status: typeof word === 'string' && Object.prototype.hasOwnProperty.call(words, word) ? words[word] : 'other',
|
|
33
|
+
reply_status: typeof word === 'string' ? word : null,
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
// Every page, to the end: a list cut short would leave out an account a send could go from.
|
|
37
|
+
const email_accounts = async (s) => {
|
|
38
|
+
const accounts = [];
|
|
39
|
+
for (let n = 0; n < MAX_PAGES; n++) {
|
|
40
|
+
const a = await (0, call_1.call_reply)(s, 'GET', `/v3/email-accounts?top=${PAGE}&skip=${n * PAGE}`, 'read');
|
|
41
|
+
if (a.status !== 200) {
|
|
42
|
+
throw (0, call_1.refusal)(a, 'read');
|
|
43
|
+
}
|
|
44
|
+
const page = (0, call_1.read_page)(a);
|
|
45
|
+
accounts.push(...page.items.map(e => account_of(e, 'email', EMAIL_STATUSES, { name: 'senderName', address: 'email', status: 'connectionStatus' })));
|
|
46
|
+
if (!page.has_more) {
|
|
47
|
+
return accounts;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
throw new errors_1.Operation_error('account.list_incomplete', `Reply's list of email accounts did not end within ${MAX_PAGES * PAGE}.`, { status: 200 });
|
|
51
|
+
};
|
|
52
|
+
// Reply gives every LinkedIn account in one answer, with no paging.
|
|
53
|
+
const linkedin_accounts = async (s) => {
|
|
54
|
+
const a = await (0, call_1.call_reply)(s, 'GET', '/v3/linkedin-accounts', 'read');
|
|
55
|
+
if (a.status !== 200) {
|
|
56
|
+
throw (0, call_1.refusal)(a, 'read');
|
|
57
|
+
}
|
|
58
|
+
if (!Array.isArray(a.data)) {
|
|
59
|
+
throw (0, call_1.unreadable)(a, 'read');
|
|
60
|
+
}
|
|
61
|
+
return a.data.map(e => account_of(e, 'linkedin', LINKEDIN_STATUSES, { name: 'name', address: 'profileUrl', status: 'status' }));
|
|
62
|
+
};
|
|
63
|
+
const handle_account_list = async (opts, ctx, g) => {
|
|
64
|
+
const channel = (0, options_1.parse_choice)(opts.channel, '--channel', ACCOUNT_CHANNELS);
|
|
65
|
+
const s = await (0, call_1.open_session)(ctx, g);
|
|
66
|
+
const items = [
|
|
67
|
+
...(channel === 'linkedin' ? [] : await email_accounts(s)),
|
|
68
|
+
...(channel === 'email' ? [] : await linkedin_accounts(s)),
|
|
69
|
+
];
|
|
70
|
+
(0, result_1.print_result)({ items }, g);
|
|
71
|
+
};
|
|
72
|
+
exports.handle_account_list = handle_account_list;
|
|
73
|
+
//# sourceMappingURL=accounts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accounts.js","sourceRoot":"","sources":["../../src/operations/accounts.ts"],"names":[],"mappings":";;;AAAA,4CAAgD;AAChD,iCAA4G;AAC5G,uCAAwD;AACxD,qCAAsC;AAGtC,MAAM,gBAAgB,GAAG,CAAC,OAAO,EAAE,UAAU,CAAU,CAAC;AAQxD,oGAAoG;AACpG,6FAA6F;AAC7F,sEAAsE;AACtE,MAAM,cAAc,GAAmC,EAAC,SAAS,EAAE,QAAQ,EAAE,YAAY,EAAE,cAAc,EAAE,OAAO,EAAE,OAAO,EAAC,CAAC;AAC7H,MAAM,iBAAiB,GAAmC;IACtD,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,aAAa,EAAE,cAAc,EAAE,iBAAiB,EAAE,QAAQ;CACtG,CAAC;AAEF,MAAM,IAAI,GAAG,IAAI,CAAC,CAAU,qDAAqD;AACjF,MAAM,SAAS,GAAG,EAAE,CAAC;AAErB,MAAM,YAAY,GAAG,CAAC,CAAU,EAAgB,EAAE,CAAA,CAAC,OAAO,CAAC,KAAK,QAAQ,IAAI,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;AAExG,MAAM,gBAAgB,GAAG,CAAC,CAAU,EAAgB,EAAE,CAAA,CAAC,OAAO,CAAC,KAAK,QAAQ,IAAI,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CA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,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,EAC1B,CAAC;QACG,MAAM,IAAA,iBAAU,EAAC,CAAC,EAAE,MAAM,CAAC,CAAC;IAChC,CAAC;IACD,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAA,EAAE,CAAA,UAAU,CAAC,CAAC,EAAE,UAAU,EAAE,iBAAiB,EAAE,EAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAC,CAAC,CAAC,CAAC;AAChI,CAAC,CAAC;AAEF,MAAM,mBAAmB,GAAG,KAAK,EAAC,IAAwB,EAAE,GAAgB,EAAE,CAAa,EAAgB,EAAE;IACzG,MAAM,OAAO,GAAG,IAAA,sBAAY,EAAC,IAAI,CAAC,OAAO,EAAE,WAAW,EAAE,gBAAgB,CAAC,CAAC;IAC1E,MAAM,CAAC,GAAG,MAAM,IAAA,mBAAY,EAAC,GAAG,EAAE,CAAC,CAAC,CAAC;IACrC,MAAM,KAAK,GAAG;QACV,GAAG,CAAC,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,cAAc,CAAC,CAAC,CAAC,CAAC;QAC1D,GAAG,CAAC,OAAO,KAAK,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,iBAAiB,CAAC,CAAC,CAAC,CAAC;KAC7D,CAAC;IACF,IAAA,qBAAY,EAAC,EAAC,KAAK,EAAC,EAAE,CAAC,CAAC,CAAC;AAC7B,CAAC,CAAC;AAEM,kDAAmB"}
|
|
@@ -3,4 +3,5 @@ declare const sequence_command: Command;
|
|
|
3
3
|
declare const contact_list_command: Command;
|
|
4
4
|
declare const contact_command: Command;
|
|
5
5
|
declare const inbox_command: Command;
|
|
6
|
-
|
|
6
|
+
declare const account_command: Command;
|
|
7
|
+
export { sequence_command, contact_list_command, contact_command, inbox_command, account_command };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.inbox_command = exports.contact_command = exports.contact_list_command = exports.sequence_command = void 0;
|
|
3
|
+
exports.account_command = exports.inbox_command = exports.contact_command = exports.contact_list_command = exports.sequence_command = void 0;
|
|
4
4
|
const commander_1 = require("commander");
|
|
5
5
|
const config_1 = require("../config");
|
|
6
6
|
const context_1 = require("../context");
|
|
@@ -15,6 +15,8 @@ const inbox_reply_1 = require("./inbox-reply");
|
|
|
15
15
|
const contact_list_1 = require("./contact-list");
|
|
16
16
|
const contact_1 = require("./contact");
|
|
17
17
|
const contact_record_1 = require("./contact-record");
|
|
18
|
+
const direct_send_1 = require("./direct-send");
|
|
19
|
+
const accounts_1 = require("./accounts");
|
|
18
20
|
const P = config_1.PROGRAM_NAME;
|
|
19
21
|
const COMMON_ERRORS = [
|
|
20
22
|
'access.denied', 'access.feature_unavailable', 'rate_limited', 'reply.unavailable', 'reply.refused', 'reply.invalid_request',
|
|
@@ -30,6 +32,10 @@ const ex = (command) => `${P} ${command}`;
|
|
|
30
32
|
const piped = (command, contact = '{"email":"ann@example.com","first_name":"Ann"}') => `echo '${contact}' | ${P} ${command} --contact -`;
|
|
31
33
|
const ALWAYS_IMPORTED = 'A contact given by email is always imported, so Reply needs a first name, even for one it already holds.\n'
|
|
32
34
|
+ 'One given only by LinkedIn URL is looked up first and imported only when Reply holds nobody under it.\n';
|
|
35
|
+
// The codes a command that finds or imports a contact shares with the add commands.
|
|
36
|
+
const IMPORT_CODES = ['contact.not_unique', 'contact.invalid_email', 'contact.invalid_linkedin_url', 'account.contact_limit_reached'];
|
|
37
|
+
// Both inputs on stdin, the person and the one the command acts with.
|
|
38
|
+
const STDIN_PAIR = (input) => `With --contact - and --${input} - both, stdin holds one object: {"contact": {…}, "${input}": {…}}.\n`;
|
|
33
39
|
const run = (fn) => async function () {
|
|
34
40
|
await fn(this);
|
|
35
41
|
};
|
|
@@ -144,7 +150,7 @@ exports.contact_list_command = contact_list_command;
|
|
|
144
150
|
const { g, ctx } = ctx_of(cmd);
|
|
145
151
|
await (0, contact_list_1.handle_contact_list_add_contact)(cmd.args[0], cmd.opts(), ctx, g);
|
|
146
152
|
}));
|
|
147
|
-
const contact_command = new commander_1.Command('contact').description('Find a contact, read it, change or delete it, or
|
|
153
|
+
const contact_command = new commander_1.Command('contact').description('Find a contact, read it, change or delete it, opt it out, or send to it outside a sequence');
|
|
148
154
|
exports.contact_command = contact_command;
|
|
149
155
|
contact_command.command('find')
|
|
150
156
|
.option('--contact <stdin>', 'Only -: {email} or {linkedin_url} as JSON on stdin')
|
|
@@ -167,16 +173,24 @@ contact_command.command('get')
|
|
|
167
173
|
const { g, ctx } = ctx_of(cmd);
|
|
168
174
|
await (0, contact_record_1.handle_contact_get)(cmd.args[0], ctx, g);
|
|
169
175
|
}));
|
|
170
|
-
contact_command.command('update')
|
|
171
|
-
.argument('
|
|
176
|
+
(0, contact_input_1.add_contact_options)(contact_command.command('update')
|
|
177
|
+
.argument('[contact-id]', 'Contact id (or give the contact by the flags below)'), true)
|
|
172
178
|
.option('--fields <stdin>', 'Only -: the fields to change as JSON on stdin')
|
|
173
179
|
.description('Change some of a contact\'s fields and custom fields; the rest stay as they are')
|
|
174
180
|
.addHelpText('after', help([`echo '{"title":"CTO","company":"Acme"}' | ${P} contact update 456 --fields -`,
|
|
175
|
-
`echo '{"last_name":null,"custom_fields":[{"name":"leadSource","value":"Event"}]}' | ${P} contact update 456 --fields
|
|
181
|
+
`echo '{"last_name":null,"custom_fields":[{"name":"leadSource","value":"Event"}]}' | ${P} contact update 456 --fields -`,
|
|
182
|
+
`echo '{"contact":{"email":"ann@example.com","first_name":"Ann"},"fields":{"title":"CTO"}}' | ${P} contact update --contact - --fields -`], ['contact.not_found', ...IMPORT_CODES, 'contact.field_not_found'], true, 'Result: {"status":"updated","contact_id","contact_created"}\n'
|
|
176
183
|
+ 'Fields: {first_name, last_name, company, title, linkedin_url, custom_fields: [{name, value}]}; a field left out stays as\n'
|
|
177
184
|
+ 'it is, and null clears one. They are read from stdin only, so no value ever sits in the argument list. The CLI stores\n'
|
|
178
185
|
+ 'a LinkedIn URL by its lowercased slug, the form contacts are looked up by. A custom field is named as the account\n'
|
|
179
|
-
+ 'names it (ignoring case); a name the account has none of is contact.field_not_found, and then nothing is changed.\n'
|
|
186
|
+
+ 'names it (ignoring case); a name the account has none of is contact.field_not_found, and then nothing is changed.\n'
|
|
187
|
+
+ contact_input_1.CONTACT_FORMS
|
|
188
|
+
+ 'contact update 456 is contact update --contact-id 456. A contact given by its fields is looked up as the add commands\n'
|
|
189
|
+
+ 'look one up, by its email, or one with only a LinkedIn URL by that, and imported only when Reply holds nobody under\n'
|
|
190
|
+
+ 'it, as they import one; only then does Reply need a first name. A LinkedIn URL is matched by its lowercased slug,\n'
|
|
191
|
+
+ 'and the CLI stores it by that slug when it imports the contact. Those fields only find or import the contact: on\n'
|
|
192
|
+
+ 'one Reply holds, only what --fields names is changed. contact_created says whether this command created it.\n'
|
|
193
|
+
+ STDIN_PAIR('fields')))
|
|
180
194
|
.action(run(async (cmd) => {
|
|
181
195
|
const { g, ctx } = ctx_of(cmd);
|
|
182
196
|
await (0, contact_record_1.handle_contact_update)(cmd.args[0], cmd.opts(), ctx, g);
|
|
@@ -190,7 +204,7 @@ contact_command.command('delete')
|
|
|
190
204
|
const { g, ctx } = ctx_of(cmd);
|
|
191
205
|
await (0, contact_record_1.handle_contact_delete)(cmd.args[0], ctx, g);
|
|
192
206
|
}));
|
|
193
|
-
(0, contact_input_1.add_contact_options)(contact_command.command('opt-out'))
|
|
207
|
+
(0, contact_input_1.add_contact_options)(contact_command.command('opt-out'), true)
|
|
194
208
|
.description('Mark the contact as opted out at Reply, creating them only if Reply has nobody under the address')
|
|
195
209
|
.addHelpText('after', help([piped('contact opt-out'), ex('contact opt-out --contact-id 456')], ['contact.not_found', 'contact.not_unique', 'contact.invalid_email', 'contact.invalid_linkedin_url', 'account.contact_limit_reached'], true, 'Result: {"status":"opted_out","contact_id","contact_created"}\n' + contact_input_1.CONTACT_HELP
|
|
196
210
|
+ 'A contact given by email or LinkedIn URL is imported only when Reply holds nobody under the address; only then does\n'
|
|
@@ -199,6 +213,86 @@ contact_command.command('delete')
|
|
|
199
213
|
const { g, ctx } = ctx_of(cmd);
|
|
200
214
|
await (0, contact_1.handle_contact_opt_out)(cmd.opts(), ctx, g);
|
|
201
215
|
}));
|
|
216
|
+
const SEND_TWICE = (what) => `the ${what} may have been sent; running the command again may send it twice, unless the hint says nothing was sent`;
|
|
217
|
+
const LINKEDIN_URL_NEEDED = 'A LinkedIn send needs the contact\'s linkedin_url in --contact (or --contact-id); --email alone is refused '
|
|
218
|
+
+ '(usage.contact).\n';
|
|
219
|
+
// How a send names its contact: looked up by every address it was given, else imported as an add imports one; and
|
|
220
|
+
// it sends only to a contact it created, naming one Reply already holds instead.
|
|
221
|
+
const SENT_TO = (by, what) => contact_input_1.CONTACT_FORMS
|
|
222
|
+
+ 'A send given a person\'s fields sends only to a contact it creates. The contact is looked up by\n'
|
|
223
|
+
+ `${by === 'email' ? 'its email' : 'its LinkedIn URL'}, where the ${what} goes, then by its ${by === 'email' ? 'LinkedIn URL' : 'email'} when it was given one, and imported only when\n`
|
|
224
|
+
+ 'Reply holds nobody under any address given, as the add commands import one (matched by its email when it has\n'
|
|
225
|
+
+ 'one), so Reply needs a first name. When a lookup finds a contact,\n'
|
|
226
|
+
+ 'or the import matches one Reply already holds, nothing is sent: the answer is contact.already_held (exit 1)\n'
|
|
227
|
+
+ 'with that contact\'s id in ids.contact_id. Read that contact first (contact get shows it, its opt-out included),\n'
|
|
228
|
+
+ 'and send to it with --contact-id if it is the one to reach. A LinkedIn URL is matched by its lowercased slug, and\n'
|
|
229
|
+
+ `the CLI stores it by that slug when it imports the contact. contact_id is the contact the ${what} went to, and\n`
|
|
230
|
+
+ 'contact_created is kept for consistency with the add commands: given a person\'s fields it is always true, and with\n'
|
|
231
|
+
+ '--contact-id it is always false; in both cases a successful answer says the send was made.\n'
|
|
232
|
+
+ (by === 'email' ? '' : LINKEDIN_URL_NEEDED) + STDIN_PAIR('message');
|
|
233
|
+
// One send's example with the person and the text both on stdin.
|
|
234
|
+
const piped_send = (command, contact, message, flags) => `echo '{"contact":${contact},"message":${message}}' | ${P} contact ${command} --contact - ${flags} --message -`;
|
|
235
|
+
const ANN_EMAIL = '{"email":"ann@example.com","first_name":"Ann"}';
|
|
236
|
+
const ANN_PROFILE = '{"linkedin_url":"https://www.linkedin.com/in/ann-example","first_name":"Ann"}';
|
|
237
|
+
(0, contact_input_1.add_contact_options)(contact_command.command('send-email'), true)
|
|
238
|
+
.option('--email-account-id <id>', 'The mailbox to send from (see `account list`)')
|
|
239
|
+
.option('--message <stdin>', 'Only -: the email {subject, body} as JSON on stdin')
|
|
240
|
+
.description('Send one email to a contact now, outside any sequence, from the mailbox you name')
|
|
241
|
+
.addHelpText('after', help([`echo '{"subject":"Quick question","body":"<p>Hi Ann, does Tuesday work?</p>"}' | ${P} contact send-email --contact-id 456 --email-account-id 12 --message -`,
|
|
242
|
+
piped_send('send-email', ANN_EMAIL, '{"subject":"Quick question","body":"<p>Hi Ann</p>"}', '--email-account-id 12')], ['contact.not_found', ...IMPORT_CODES, 'contact.already_held', 'email_account.not_found', 'contact.blacklisted'], true, 'Result: {"status":"sent","contact_id","contact_created","message_id","sent_at","reply_status"}: sent means Reply\n'
|
|
243
|
+
+ 'accepted the email, and reply_status is Reply\'s own word for it (new or sent). message_id is Reply\'s messageId,\n'
|
|
244
|
+
+ 'null when it gives none. Reply\'s answer carries no time, so sent_at is always null; the CLI adds none of its own.\n'
|
|
245
|
+
+ 'The email is read from stdin only, so its text never sits in the argument list. The body is HTML. Reply sends a\n'
|
|
246
|
+
+ 'direct email at once, outside the mailbox\'s daily limit and sending delay.\n'
|
|
247
|
+
+ SENT_TO('email', 'email'), SEND_TWICE('email')))
|
|
248
|
+
.action(run(async (cmd) => {
|
|
249
|
+
const { g, ctx } = ctx_of(cmd);
|
|
250
|
+
await (0, direct_send_1.handle_direct_send)('send-email', cmd.opts(), ctx, g);
|
|
251
|
+
}));
|
|
252
|
+
// The four LinkedIn sends share their flags, their first codes and the shape of their result.
|
|
253
|
+
const LINKEDIN_SEND_CODES = [
|
|
254
|
+
'contact.not_found', ...IMPORT_CODES, 'contact.already_held', 'contact.no_linkedin_profile', 'linkedin.account_not_found',
|
|
255
|
+
'linkedin.feature_disabled', 'linkedin.account_inactive', 'linkedin.invalid_cookie',
|
|
256
|
+
];
|
|
257
|
+
const LINKEDIN_SENT = '"contact_id","contact_created","activity_id","sent_at"}:\n'
|
|
258
|
+
+ 'activity_id and sent_at are Reply\'s linkedInActivityId and sentAtUtc as Reply gives them, each null when it gives\n'
|
|
259
|
+
+ 'none; the CLI adds no time of its own.\n';
|
|
260
|
+
const VARIABLES = (where) => `Reply reads {{…}} in the ${where} as its template variables; one it cannot fill is linkedin.missing_variables.\n`;
|
|
261
|
+
const LINKEDIN_EXAMPLE = '--contact-id 456 --linkedin-account-id 34';
|
|
262
|
+
const linkedin_send = (name, description, message, examples, codes, extra, what) => {
|
|
263
|
+
(0, contact_input_1.add_contact_options)(contact_command.command(name), true)
|
|
264
|
+
.option('--linkedin-account-id <id>', 'The LinkedIn account to send from (see `account list`)')
|
|
265
|
+
.option('--message <stdin>', `Only -: the ${message} as JSON on stdin`)
|
|
266
|
+
.description(description)
|
|
267
|
+
.addHelpText('after', help(examples, [...LINKEDIN_SEND_CODES, ...codes], true, extra + SENT_TO('linkedin', what), SEND_TWICE(what)))
|
|
268
|
+
.action(run(async (cmd) => {
|
|
269
|
+
const { g, ctx } = ctx_of(cmd);
|
|
270
|
+
await (0, direct_send_1.handle_direct_send)(name, cmd.opts(), ctx, g);
|
|
271
|
+
}));
|
|
272
|
+
};
|
|
273
|
+
linkedin_send('linkedin-connect', 'Invite a contact to connect on LinkedIn, with or without a note', 'note {note}', [`echo '{"note":"Hi Ann, we met at the meetup."}' | ${P} contact linkedin-connect ${LINKEDIN_EXAMPLE} --message -`,
|
|
274
|
+
ex(`contact linkedin-connect ${LINKEDIN_EXAMPLE}`),
|
|
275
|
+
piped_send('linkedin-connect', ANN_PROFILE, '{"note":"Hi Ann, we met at the meetup."}', '--linkedin-account-id 34'),
|
|
276
|
+
`echo '${ANN_PROFILE}' | ${P} contact linkedin-connect --contact - --linkedin-account-id 34`], ['linkedin.not_connected', 'linkedin.limit_reached', 'linkedin.message_too_long', 'linkedin.missing_variables'], 'Result: {"status":"sent"|"already_connected",' + LINKEDIN_SENT
|
|
277
|
+
+ 'already_connected means the contact is already a connection: nothing is sent, and activity_id and sent_at are null.\n'
|
|
278
|
+
+ 'The note is read from stdin only, so its text never sits in the argument list; without --message the invitation\n'
|
|
279
|
+
+ 'carries no note, and stdin holds the contact alone. Reply publishes no limit for a note, and one it finds too long\n'
|
|
280
|
+
+ 'is linkedin.message_too_long.\n'
|
|
281
|
+
+ VARIABLES('note'), 'invitation');
|
|
282
|
+
linkedin_send('linkedin-message', 'Send a LinkedIn message to a contact the account is connected with', 'message {body}', [`echo '{"body":"Thanks for connecting, Ann."}' | ${P} contact linkedin-message ${LINKEDIN_EXAMPLE} --message -`,
|
|
283
|
+
piped_send('linkedin-message', ANN_PROFILE, '{"body":"Thanks for connecting, Ann."}', '--linkedin-account-id 34')], ['linkedin.not_connected', 'linkedin.limit_reached', 'linkedin.message_too_long', 'linkedin.missing_variables'], 'Result: {"status":"sent",' + LINKEDIN_SENT
|
|
284
|
+
+ 'The message is read from stdin only, so its text never sits in the argument list. Reply takes a body of at most\n'
|
|
285
|
+
+ '8000 characters.\n' + VARIABLES('body'), 'message');
|
|
286
|
+
linkedin_send('linkedin-inmail', 'Send a LinkedIn InMail, which reaches a contact the account is not connected with (needs Sales Navigator and InMail credits)', 'InMail {subject, body}', [`echo '{"subject":"Quick question","body":"Hi Ann, does Tuesday work?"}' | ${P} contact linkedin-inmail ${LINKEDIN_EXAMPLE} --message -`,
|
|
287
|
+
piped_send('linkedin-inmail', ANN_PROFILE, '{"subject":"Quick question","body":"Hi Ann, does Tuesday work?"}', '--linkedin-account-id 34')], ['linkedin.limit_reached', 'linkedin.message_too_long', 'linkedin.missing_variables', 'linkedin.sales_navigator_required',
|
|
288
|
+
'linkedin.sales_navigator_disconnected', 'linkedin.no_inmail_credits'], 'Result: {"status":"sent",' + LINKEDIN_SENT
|
|
289
|
+
+ 'The InMail is read from stdin only, so its text never sits in the argument list. Reply takes a subject of at most\n'
|
|
290
|
+
+ '200 characters and a body of at most 1900.\n' + VARIABLES('text'), 'InMail');
|
|
291
|
+
linkedin_send('linkedin-voice', 'Send a LinkedIn voice message that Reply speaks from a script in the account\'s voice', 'script {script}', [`echo '{"script":"Hi Ann, a quick hello about Tuesday."}' | ${P} contact linkedin-voice ${LINKEDIN_EXAMPLE} --message -`,
|
|
292
|
+
piped_send('linkedin-voice', ANN_PROFILE, '{"script":"Hi Ann, a quick hello about Tuesday."}', '--linkedin-account-id 34')], ['linkedin.not_connected', 'linkedin.limit_reached', 'linkedin.missing_variables', 'linkedin.voice_profile_missing',
|
|
293
|
+
'linkedin.voice_too_long'], 'Result: {"status":"sent",' + LINKEDIN_SENT
|
|
294
|
+
+ 'The script is read from stdin only, so its text never sits in the argument list. Reply takes at most 1000 characters\n'
|
|
295
|
+
+ 'and speaks them with the LinkedIn account\'s voice profile; a recorded message cannot be sent here.\n' + VARIABLES('script'), 'voice message');
|
|
202
296
|
const inbox_command = new commander_1.Command('inbox').description('Read inbox threads, reply in them, file them under a category, mark them read or unread');
|
|
203
297
|
exports.inbox_command = inbox_command;
|
|
204
298
|
inbox_command.command('list')
|
|
@@ -276,4 +370,21 @@ inbox_command.command('mark-unread')
|
|
|
276
370
|
const { g, ctx } = ctx_of(cmd);
|
|
277
371
|
await (0, inbox_1.handle_inbox_mark_unread)(cmd.args[0], ctx, g);
|
|
278
372
|
}));
|
|
373
|
+
const account_command = new commander_1.Command('account').description('List the email and LinkedIn accounts a send can go from');
|
|
374
|
+
exports.account_command = account_command;
|
|
375
|
+
account_command.command('list')
|
|
376
|
+
.option('--channel <channel>', 'email | linkedin: only the accounts of this channel')
|
|
377
|
+
.description('The email and LinkedIn accounts a send can go from, and the state of each')
|
|
378
|
+
.addHelpText('after', help([ex('account list'), ex('account list --channel linkedin')], ['account.list_incomplete'], false, 'Result: {"items":[{"id","channel","name","address","owner_user_id","status","reply_status"}]}, the email accounts\n'
|
|
379
|
+
+ 'first: status is active, inactive, disconnected or other, and reply_status is Reply\'s own word for it. name is the\n'
|
|
380
|
+
+ 'sender name or the LinkedIn name, and address the mailbox\'s email or the LinkedIn profile URL. In a team that shares\n'
|
|
381
|
+
+ 'its accounts the list holds teammates\' accounts too, and owner_user_id is the Reply user whose each one is. Each is\n'
|
|
382
|
+
+ 'null when Reply gives none. A LinkedIn account at its daily limit is active: a send that meets the limit answers\n'
|
|
383
|
+
+ 'linkedin.limit_reached. Every page is read; account.list_incomplete means the email accounts did not end within 20000.\n'
|
|
384
|
+
+ 'Without --channel both lists are read, and one the account\'s plan or role does not include fails the whole command\n'
|
|
385
|
+
+ '(its reply_code says which); --channel reads one channel alone.\n'))
|
|
386
|
+
.action(run(async (cmd) => {
|
|
387
|
+
const { g, ctx } = ctx_of(cmd);
|
|
388
|
+
await (0, accounts_1.handle_account_list)(cmd.opts(), ctx, g);
|
|
389
|
+
}));
|
|
279
390
|
//# sourceMappingURL=commands.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commands.js","sourceRoot":"","sources":["../../src/operations/commands.ts"],"names":[],"mappings":";;;AAAA,yCAAkC;AAClC,sCAAuC;AACvC,wCAAyC;AACzC,uCAA0C;AAC1C,mDAAkE;AAClE,mDAAqG;AACrG,yDAAgF;AAChF,+DAAkG;AAClG,qDAA8E;AAC9E,mCAEiB;AACjB,+CAAiD;AACjD,iDAA+D;AAC/D,uCAAiD;AACjD,qDAAuH;AAEvH,MAAM,CAAC,GAAG,qBAAY,CAAC;AACv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CAAC,EAAE,GAAG,EAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;IAC7B,MAAM,IAAA,gCAAwB,EAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC;AACxD,CAAC,CAAC,CAAC,CAAC;AAER,MAAM,eAAe,GAAG,IAAI,mBAAO,CAAC,SAAS,CAAC,CAAC,WAAW,CAAC,yDAAyD,CAAC,CAAC;AAmBtC,0CAAe;AAjB/F,eAAe,CAAC,OAAO,CAAC,MAAM,CAAC;KAC1B,MAAM,CAAC,qBAAqB,EAAE,qDAAqD,CAAC;KACpF,WAAW,CAAC,2EAA2E,CAAC;KACxF,WAAW,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,EAAE,CAAC,cAAc,CAAC,EAAE,EAAE,CAAC,iCAAiC,CAAC,CAAC,EAAE,CAAC,yBAAyB,CAAC,EAAE,KAAK,EACtH,qHAAqH;MAC/G,uHAAuH;MACvH,yHAAyH;MACzH,wHAAwH;MACxH,oHAAoH;MACpH,0HAA0H;MAC1H,uHAAuH;MACvH,mEAAmE,CAAC,CAAC;KAC9E,MAAM,CAAC,GAAG,CAAC,KAAK,EAAC,GAAG,EAAC,EAAE;IACpB,MAAM,EAAC,CAAC,EAAE,GAAG,EAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;IAC7B,MAAM,IAAA,8BAAmB,EAAC,GAAG,CAAC,IAAI,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC;AAClD,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -23,11 +23,12 @@ type Contact_flags = {
|
|
|
23
23
|
title?: string;
|
|
24
24
|
contact?: string;
|
|
25
25
|
};
|
|
26
|
-
declare const add_contact_options: (cmd: Command) => Command;
|
|
26
|
+
declare const add_contact_options: (cmd: Command, found_first?: boolean) => Command;
|
|
27
|
+
declare const CONTACT_FORMS = "\nA contact is given exactly one way:\n --contact <json>|@file|- {email, linkedin_url, first_name, last_name, company, title},\n with an email, a LinkedIn URL or both; '-' reads stdin, which\n keeps personal data out of the argument list\n --email <address> [--first-name <name>] [--last-name <name>] [--company <name>] [--title <title>]\n --contact-id <id> a contact Reply already holds\n";
|
|
27
28
|
declare const CONTACT_HELP = "\nA contact is given exactly one way:\n --contact <json>|@file|- {email, linkedin_url, first_name, last_name, company, title},\n with an email, a LinkedIn URL or both; '-' reads stdin, which\n keeps personal data out of the argument list\n --email <address> [--first-name <name>] [--last-name <name>] [--company <name>] [--title <title>]\n --contact-id <id> a contact Reply already holds\nReply is asked about a contact by its email; one with only a LinkedIn URL, by that. A LinkedIn URL is\nmatched by its lowercased slug, and the CLI stores it by that slug when it imports the contact.\n\n";
|
|
28
29
|
declare const is_email: (text: string) => boolean;
|
|
29
30
|
declare const linkedin_key: (text: string) => string | null;
|
|
30
31
|
declare const person_of: (raw: Record<string, unknown>) => Person;
|
|
31
32
|
declare const read_contact_input: (f: Contact_flags, read_stdin?: () => string) => Contact_ref;
|
|
32
|
-
export { read_contact_input, add_contact_options, person_of, CONTACT_HELP, linkedin_key, is_email };
|
|
33
|
+
export { read_contact_input, add_contact_options, person_of, CONTACT_FORMS, CONTACT_HELP, linkedin_key, is_email };
|
|
33
34
|
export type { Person, Contact_ref, Contact_flags };
|
|
@@ -1,29 +1,33 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.is_email = exports.linkedin_key = exports.CONTACT_HELP = exports.person_of = exports.add_contact_options = exports.read_contact_input = void 0;
|
|
3
|
+
exports.is_email = exports.linkedin_key = exports.CONTACT_HELP = exports.CONTACT_FORMS = exports.person_of = exports.add_contact_options = exports.read_contact_input = void 0;
|
|
4
4
|
const errors_1 = require("../utils/errors");
|
|
5
5
|
const json_arg_1 = require("../utils/json-arg");
|
|
6
6
|
const options_1 = require("./options");
|
|
7
7
|
const PERSON_FIELDS = ['email', 'linkedin_url', 'first_name', 'last_name', 'company', 'title'];
|
|
8
8
|
const CODE = 'usage.contact';
|
|
9
9
|
const ONE_WAY_HINT = 'Use exactly one of --contact-id, --email (with its name flags), or --contact (which also takes linkedin_url).';
|
|
10
|
-
|
|
10
|
+
// `found_first`: the command looks the contact up before it imports one, so the names only matter for a contact
|
|
11
|
+
// Reply doesn't hold yet and are otherwise unused.
|
|
12
|
+
const add_contact_options = (cmd, found_first = false) => cmd
|
|
11
13
|
.option('--contact-id <id>', 'The contact by its Reply id')
|
|
12
14
|
.option('--email <address>', 'The contact by email; with --first-name, --last-name, --company, --title')
|
|
13
|
-
.option('--first-name <name>',
|
|
14
|
-
.option('--last-name <name>',
|
|
15
|
-
.option('--company <name>',
|
|
16
|
-
.option('--title <title>',
|
|
15
|
+
.option('--first-name <name>', `First name (with --email; Reply refuses to import a contact without one)`)
|
|
16
|
+
.option('--last-name <name>', `Last name (with --email${found_first ? '; used only if the contact is imported' : ''})`)
|
|
17
|
+
.option('--company <name>', `Company (with --email${found_first ? '; used only if the contact is imported' : ''})`)
|
|
18
|
+
.option('--title <title>', `Job title (with --email${found_first ? '; used only if the contact is imported' : ''})`)
|
|
17
19
|
.option('--contact <json>', 'The contact as JSON {email, linkedin_url, first_name, last_name, company, title}: inline, @file, or - for stdin');
|
|
18
20
|
exports.add_contact_options = add_contact_options;
|
|
19
|
-
const
|
|
21
|
+
const CONTACT_FORMS = `
|
|
20
22
|
A contact is given exactly one way:
|
|
21
23
|
--contact <json>|@file|- {email, linkedin_url, first_name, last_name, company, title},
|
|
22
24
|
with an email, a LinkedIn URL or both; '-' reads stdin, which
|
|
23
25
|
keeps personal data out of the argument list
|
|
24
26
|
--email <address> [--first-name <name>] [--last-name <name>] [--company <name>] [--title <title>]
|
|
25
27
|
--contact-id <id> a contact Reply already holds
|
|
26
|
-
|
|
28
|
+
`;
|
|
29
|
+
exports.CONTACT_FORMS = CONTACT_FORMS;
|
|
30
|
+
const CONTACT_HELP = `${CONTACT_FORMS}Reply is asked about a contact by its email; one with only a LinkedIn URL, by that. A LinkedIn URL is
|
|
27
31
|
matched by its lowercased slug, and the CLI stores it by that slug when it imports the contact.
|
|
28
32
|
|
|
29
33
|
`;
|