@linkedapi/linkedin-cli 1.1.1 → 1.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 +44 -0
- package/dist/commands/connection/accept.d.ts +17 -0
- package/dist/commands/connection/accept.d.ts.map +1 -0
- package/dist/commands/connection/accept.js +43 -0
- package/dist/commands/connection/accept.js.map +1 -0
- package/dist/commands/connection/ignore.d.ts +17 -0
- package/dist/commands/connection/ignore.d.ts.map +1 -0
- package/dist/commands/connection/ignore.js +43 -0
- package/dist/commands/connection/ignore.js.map +1 -0
- package/dist/commands/connection/requests.d.ts +14 -0
- package/dist/commands/connection/requests.d.ts.map +1 -0
- package/dist/commands/connection/requests.js +33 -0
- package/dist/commands/connection/requests.js.map +1 -0
- package/dist/commands/message/manage.d.ts +18 -0
- package/dist/commands/message/manage.d.ts.map +1 -0
- package/dist/commands/message/manage.js +50 -0
- package/dist/commands/message/manage.js.map +1 -0
- package/dist/commands/navigator/message/manage.d.ts +18 -0
- package/dist/commands/navigator/message/manage.d.ts.map +1 -0
- package/dist/commands/navigator/message/manage.js +47 -0
- package/dist/commands/navigator/message/manage.js.map +1 -0
- package/oclif.manifest.json +750 -412
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -368,6 +368,18 @@ linkedin connection pending
|
|
|
368
368
|
linkedin connection pending --json
|
|
369
369
|
```
|
|
370
370
|
|
|
371
|
+
#### `connection requests`
|
|
372
|
+
|
|
373
|
+
List incoming connection requests.
|
|
374
|
+
|
|
375
|
+
```bash
|
|
376
|
+
linkedin connection requests
|
|
377
|
+
```
|
|
378
|
+
|
|
379
|
+
```bash
|
|
380
|
+
linkedin connection requests --json
|
|
381
|
+
```
|
|
382
|
+
|
|
371
383
|
#### `connection withdraw`
|
|
372
384
|
|
|
373
385
|
Withdraw a pending connection request.
|
|
@@ -389,6 +401,38 @@ linkedin connection withdraw https://www.linkedin.com/in/vprudnikoff
|
|
|
389
401
|
linkedin connection withdraw https://www.linkedin.com/in/vprudnikoff --no-unfollow
|
|
390
402
|
```
|
|
391
403
|
|
|
404
|
+
#### `connection accept`
|
|
405
|
+
|
|
406
|
+
Accept an incoming connection request.
|
|
407
|
+
|
|
408
|
+
```bash
|
|
409
|
+
linkedin connection accept <url>
|
|
410
|
+
```
|
|
411
|
+
|
|
412
|
+
| Arg | Required | Description |
|
|
413
|
+
|-----|----------|-------------|
|
|
414
|
+
| `url` | yes | LinkedIn profile URL |
|
|
415
|
+
|
|
416
|
+
```bash
|
|
417
|
+
linkedin connection accept https://www.linkedin.com/in/vprudnikoff
|
|
418
|
+
```
|
|
419
|
+
|
|
420
|
+
#### `connection ignore`
|
|
421
|
+
|
|
422
|
+
Ignore an incoming connection request.
|
|
423
|
+
|
|
424
|
+
```bash
|
|
425
|
+
linkedin connection ignore <url>
|
|
426
|
+
```
|
|
427
|
+
|
|
428
|
+
| Arg | Required | Description |
|
|
429
|
+
|-----|----------|-------------|
|
|
430
|
+
| `url` | yes | LinkedIn profile URL |
|
|
431
|
+
|
|
432
|
+
```bash
|
|
433
|
+
linkedin connection ignore https://www.linkedin.com/in/vprudnikoff
|
|
434
|
+
```
|
|
435
|
+
|
|
392
436
|
#### `connection remove`
|
|
393
437
|
|
|
394
438
|
Remove an existing connection.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BaseCommand } from '../../base-command';
|
|
2
|
+
export default class ConnectionAccept extends BaseCommand {
|
|
3
|
+
static description: string;
|
|
4
|
+
static args: {
|
|
5
|
+
url: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
|
|
6
|
+
};
|
|
7
|
+
static flags: {
|
|
8
|
+
json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
9
|
+
fields: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
10
|
+
quiet: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
11
|
+
'no-color': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
12
|
+
account: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
13
|
+
};
|
|
14
|
+
static examples: string[];
|
|
15
|
+
run(): Promise<void>;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=accept.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accept.d.ts","sourceRoot":"","sources":["../../../src/commands/connection/accept.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAI5C,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,WAAW;IACvD,OAAgB,WAAW,SAA2C;IAEtE,OAAgB,IAAI;;MAKlB;IAEF,OAAgB,KAAK;;;;;;MAEnB;IAEF,OAAgB,QAAQ,WAEtB;IAEW,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CA0BlC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const core_1 = require("@oclif/core");
|
|
4
|
+
const _base_command_1 = require("../../base-command");
|
|
5
|
+
const formatter_1 = require("../../core/output/formatter");
|
|
6
|
+
const workflow_runner_1 = require("../../core/workflow/workflow-runner");
|
|
7
|
+
class ConnectionAccept extends _base_command_1.BaseCommand {
|
|
8
|
+
static description = 'Accept an incoming connection request';
|
|
9
|
+
static args = {
|
|
10
|
+
url: core_1.Args.string({
|
|
11
|
+
description: 'LinkedIn profile URL',
|
|
12
|
+
required: true,
|
|
13
|
+
}),
|
|
14
|
+
};
|
|
15
|
+
static flags = {
|
|
16
|
+
..._base_command_1.BaseCommand.baseFlags,
|
|
17
|
+
};
|
|
18
|
+
static examples = [
|
|
19
|
+
'<%= config.bin %> connection accept https://www.linkedin.com/in/john-doe',
|
|
20
|
+
];
|
|
21
|
+
async run() {
|
|
22
|
+
const { args, flags } = await this.parse(ConnectionAccept);
|
|
23
|
+
const client = await this.buildAuthenticatedClient();
|
|
24
|
+
try {
|
|
25
|
+
const result = await (0, workflow_runner_1.runVoidWorkflow)(client.acceptConnectionRequest, {
|
|
26
|
+
personUrl: args.url,
|
|
27
|
+
}, {
|
|
28
|
+
isQuiet: flags.quiet,
|
|
29
|
+
});
|
|
30
|
+
(0, formatter_1.formatVoidOutput)({
|
|
31
|
+
errors: result.errors,
|
|
32
|
+
isJson: flags.json,
|
|
33
|
+
isQuiet: flags.quiet,
|
|
34
|
+
successMessage: 'Connection request accepted.',
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
catch (error) {
|
|
38
|
+
this.handleError(error);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
exports.default = ConnectionAccept;
|
|
43
|
+
//# sourceMappingURL=accept.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accept.js","sourceRoot":"","sources":["../../../src/commands/connection/accept.ts"],"names":[],"mappings":";;AAAA,sCAAmC;AAEnC,iDAA4C;AAC5C,sDAA0D;AAC1D,oEAAiE;AAEjE,MAAqB,gBAAiB,SAAQ,2BAAW;IACvD,MAAM,CAAU,WAAW,GAAG,uCAAuC,CAAC;IAEtE,MAAM,CAAU,IAAI,GAAG;QACrB,GAAG,EAAE,WAAI,CAAC,MAAM,CAAC;YACf,WAAW,EAAE,sBAAsB;YACnC,QAAQ,EAAE,IAAI;SACf,CAAC;KACH,CAAC;IAEF,MAAM,CAAU,KAAK,GAAG;QACtB,GAAG,2BAAW,CAAC,SAAS;KACzB,CAAC;IAEF,MAAM,CAAU,QAAQ,GAAG;QACzB,0EAA0E;KAC3E,CAAC;IAEK,KAAK,CAAC,GAAG;QACd,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;QAE3D,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,wBAAwB,EAAE,CAAC;QAErD,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,MAAM,IAAA,iCAAe,EAClC,MAAM,CAAC,uBAAuB,EAC9B;gBACE,SAAS,EAAE,IAAI,CAAC,GAAG;aACpB,EACD;gBACE,OAAO,EAAE,KAAK,CAAC,KAAK;aACrB,CACF,CAAC;YAEF,IAAA,4BAAgB,EAAC;gBACf,MAAM,EAAE,MAAM,CAAC,MAAM;gBACrB,MAAM,EAAE,KAAK,CAAC,IAAI;gBAClB,OAAO,EAAE,KAAK,CAAC,KAAK;gBACpB,cAAc,EAAE,8BAA8B;aAC/C,CAAC,CAAC;QACL,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;QAC1B,CAAC;IACH,CAAC;;AA3CH,mCA4CC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BaseCommand } from '../../base-command';
|
|
2
|
+
export default class ConnectionIgnore extends BaseCommand {
|
|
3
|
+
static description: string;
|
|
4
|
+
static args: {
|
|
5
|
+
url: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
|
|
6
|
+
};
|
|
7
|
+
static flags: {
|
|
8
|
+
json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
9
|
+
fields: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
10
|
+
quiet: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
11
|
+
'no-color': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
12
|
+
account: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
13
|
+
};
|
|
14
|
+
static examples: string[];
|
|
15
|
+
run(): Promise<void>;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=ignore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ignore.d.ts","sourceRoot":"","sources":["../../../src/commands/connection/ignore.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAI5C,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,WAAW;IACvD,OAAgB,WAAW,SAA2C;IAEtE,OAAgB,IAAI;;MAKlB;IAEF,OAAgB,KAAK;;;;;;MAEnB;IAEF,OAAgB,QAAQ,WAEtB;IAEW,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CA0BlC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const core_1 = require("@oclif/core");
|
|
4
|
+
const _base_command_1 = require("../../base-command");
|
|
5
|
+
const formatter_1 = require("../../core/output/formatter");
|
|
6
|
+
const workflow_runner_1 = require("../../core/workflow/workflow-runner");
|
|
7
|
+
class ConnectionIgnore extends _base_command_1.BaseCommand {
|
|
8
|
+
static description = 'Ignore an incoming connection request';
|
|
9
|
+
static args = {
|
|
10
|
+
url: core_1.Args.string({
|
|
11
|
+
description: 'LinkedIn profile URL',
|
|
12
|
+
required: true,
|
|
13
|
+
}),
|
|
14
|
+
};
|
|
15
|
+
static flags = {
|
|
16
|
+
..._base_command_1.BaseCommand.baseFlags,
|
|
17
|
+
};
|
|
18
|
+
static examples = [
|
|
19
|
+
'<%= config.bin %> connection ignore https://www.linkedin.com/in/john-doe',
|
|
20
|
+
];
|
|
21
|
+
async run() {
|
|
22
|
+
const { args, flags } = await this.parse(ConnectionIgnore);
|
|
23
|
+
const client = await this.buildAuthenticatedClient();
|
|
24
|
+
try {
|
|
25
|
+
const result = await (0, workflow_runner_1.runVoidWorkflow)(client.ignoreConnectionRequest, {
|
|
26
|
+
personUrl: args.url,
|
|
27
|
+
}, {
|
|
28
|
+
isQuiet: flags.quiet,
|
|
29
|
+
});
|
|
30
|
+
(0, formatter_1.formatVoidOutput)({
|
|
31
|
+
errors: result.errors,
|
|
32
|
+
isJson: flags.json,
|
|
33
|
+
isQuiet: flags.quiet,
|
|
34
|
+
successMessage: 'Connection request ignored.',
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
catch (error) {
|
|
38
|
+
this.handleError(error);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
exports.default = ConnectionIgnore;
|
|
43
|
+
//# sourceMappingURL=ignore.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ignore.js","sourceRoot":"","sources":["../../../src/commands/connection/ignore.ts"],"names":[],"mappings":";;AAAA,sCAAmC;AAEnC,iDAA4C;AAC5C,sDAA0D;AAC1D,oEAAiE;AAEjE,MAAqB,gBAAiB,SAAQ,2BAAW;IACvD,MAAM,CAAU,WAAW,GAAG,uCAAuC,CAAC;IAEtE,MAAM,CAAU,IAAI,GAAG;QACrB,GAAG,EAAE,WAAI,CAAC,MAAM,CAAC;YACf,WAAW,EAAE,sBAAsB;YACnC,QAAQ,EAAE,IAAI;SACf,CAAC;KACH,CAAC;IAEF,MAAM,CAAU,KAAK,GAAG;QACtB,GAAG,2BAAW,CAAC,SAAS;KACzB,CAAC;IAEF,MAAM,CAAU,QAAQ,GAAG;QACzB,0EAA0E;KAC3E,CAAC;IAEK,KAAK,CAAC,GAAG;QACd,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;QAE3D,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,wBAAwB,EAAE,CAAC;QAErD,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,MAAM,IAAA,iCAAe,EAClC,MAAM,CAAC,uBAAuB,EAC9B;gBACE,SAAS,EAAE,IAAI,CAAC,GAAG;aACpB,EACD;gBACE,OAAO,EAAE,KAAK,CAAC,KAAK;aACrB,CACF,CAAC;YAEF,IAAA,4BAAgB,EAAC;gBACf,MAAM,EAAE,MAAM,CAAC,MAAM;gBACrB,MAAM,EAAE,KAAK,CAAC,IAAI;gBAClB,OAAO,EAAE,KAAK,CAAC,KAAK;gBACpB,cAAc,EAAE,6BAA6B;aAC9C,CAAC,CAAC;QACL,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;QAC1B,CAAC;IACH,CAAC;;AA3CH,mCA4CC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BaseCommand } from '../../base-command';
|
|
2
|
+
export default class ConnectionRequests extends BaseCommand {
|
|
3
|
+
static description: string;
|
|
4
|
+
static flags: {
|
|
5
|
+
json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
6
|
+
fields: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
7
|
+
quiet: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
8
|
+
'no-color': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
9
|
+
account: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
10
|
+
};
|
|
11
|
+
static examples: string[];
|
|
12
|
+
run(): Promise<void>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=requests.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"requests.d.ts","sourceRoot":"","sources":["../../../src/commands/connection/requests.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAI5C,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,WAAW;IACzD,OAAgB,WAAW,SAAuC;IAElE,OAAgB,KAAK;;;;;;MAEnB;IAEF,OAAgB,QAAQ,WAAoD;IAE/D,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAqBlC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const _base_command_1 = require("../../base-command");
|
|
4
|
+
const formatter_1 = require("../../core/output/formatter");
|
|
5
|
+
const workflow_runner_1 = require("../../core/workflow/workflow-runner");
|
|
6
|
+
class ConnectionRequests extends _base_command_1.BaseCommand {
|
|
7
|
+
static description = 'List incoming connection requests';
|
|
8
|
+
static flags = {
|
|
9
|
+
..._base_command_1.BaseCommand.baseFlags,
|
|
10
|
+
};
|
|
11
|
+
static examples = ['<%= config.bin %> connection requests --json'];
|
|
12
|
+
async run() {
|
|
13
|
+
const { flags } = await this.parse(ConnectionRequests);
|
|
14
|
+
const client = await this.buildAuthenticatedClient();
|
|
15
|
+
try {
|
|
16
|
+
const result = await (0, workflow_runner_1.runWorkflow)(client.retrieveConnectionRequests, {}, {
|
|
17
|
+
isQuiet: flags.quiet,
|
|
18
|
+
});
|
|
19
|
+
(0, formatter_1.formatOutput)({
|
|
20
|
+
data: result.data,
|
|
21
|
+
errors: result.errors,
|
|
22
|
+
isJson: flags.json,
|
|
23
|
+
fields: flags.fields,
|
|
24
|
+
isQuiet: flags.quiet,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
catch (error) {
|
|
28
|
+
this.handleError(error);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
exports.default = ConnectionRequests;
|
|
33
|
+
//# sourceMappingURL=requests.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"requests.js","sourceRoot":"","sources":["../../../src/commands/connection/requests.ts"],"names":[],"mappings":";;AAAA,iDAA4C;AAC5C,sDAAsD;AACtD,oEAA6D;AAE7D,MAAqB,kBAAmB,SAAQ,2BAAW;IACzD,MAAM,CAAU,WAAW,GAAG,mCAAmC,CAAC;IAElE,MAAM,CAAU,KAAK,GAAG;QACtB,GAAG,2BAAW,CAAC,SAAS;KACzB,CAAC;IAEF,MAAM,CAAU,QAAQ,GAAG,CAAC,8CAA8C,CAAC,CAAC;IAErE,KAAK,CAAC,GAAG;QACd,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC;QAEvD,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,wBAAwB,EAAE,CAAC;QAErD,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,MAAM,IAAA,6BAAW,EAAC,MAAM,CAAC,0BAA0B,EAAE,EAAE,EAAE;gBACtE,OAAO,EAAE,KAAK,CAAC,KAAK;aACrB,CAAC,CAAC;YAEH,IAAA,wBAAY,EAAC;gBACX,IAAI,EAAE,MAAM,CAAC,IAAI;gBACjB,MAAM,EAAE,MAAM,CAAC,MAAM;gBACrB,MAAM,EAAE,KAAK,CAAC,IAAI;gBAClB,MAAM,EAAE,KAAK,CAAC,MAAM;gBACpB,OAAO,EAAE,KAAK,CAAC,KAAK;aACrB,CAAC,CAAC;QACL,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;QAC1B,CAAC;IACH,CAAC;;AA7BH,qCA8BC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BaseCommand } from '../../base-command';
|
|
2
|
+
export default class MessageManage extends BaseCommand {
|
|
3
|
+
static description: string;
|
|
4
|
+
static args: {
|
|
5
|
+
'thread-id': import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
|
|
6
|
+
operation: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
|
|
7
|
+
};
|
|
8
|
+
static flags: {
|
|
9
|
+
json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
10
|
+
fields: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
11
|
+
quiet: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
12
|
+
'no-color': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
13
|
+
account: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
14
|
+
};
|
|
15
|
+
static examples: string[];
|
|
16
|
+
run(): Promise<void>;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=manage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manage.d.ts","sourceRoot":"","sources":["../../../src/commands/message/manage.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAI5C,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,WAAW;IACpD,OAAgB,WAAW,SAAkD;IAE7E,OAAgB,IAAI;;;MAUlB;IAEF,OAAgB,KAAK;;;;;;MAEnB;IAEF,OAAgB,QAAQ,WAGtB;IAEW,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CA2BlC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const core_1 = require("@oclif/core");
|
|
4
|
+
const _base_command_1 = require("../../base-command");
|
|
5
|
+
const formatter_1 = require("../../core/output/formatter");
|
|
6
|
+
const workflow_runner_1 = require("../../core/workflow/workflow-runner");
|
|
7
|
+
class MessageManage extends _base_command_1.BaseCommand {
|
|
8
|
+
static description = 'Archive, star, or mute a conversation thread';
|
|
9
|
+
static args = {
|
|
10
|
+
'thread-id': core_1.Args.string({
|
|
11
|
+
description: 'Conversation thread identifier',
|
|
12
|
+
required: true,
|
|
13
|
+
}),
|
|
14
|
+
operation: core_1.Args.string({
|
|
15
|
+
description: 'One of archive, unarchive, star, unstar, mute, unmute',
|
|
16
|
+
required: true,
|
|
17
|
+
options: ['archive', 'unarchive', 'star', 'unstar', 'mute', 'unmute'],
|
|
18
|
+
}),
|
|
19
|
+
};
|
|
20
|
+
static flags = {
|
|
21
|
+
..._base_command_1.BaseCommand.baseFlags,
|
|
22
|
+
};
|
|
23
|
+
static examples = [
|
|
24
|
+
'<%= config.bin %> message manage 2-abc123... archive',
|
|
25
|
+
'<%= config.bin %> message manage 2-abc123... unmute',
|
|
26
|
+
];
|
|
27
|
+
async run() {
|
|
28
|
+
const { args, flags } = await this.parse(MessageManage);
|
|
29
|
+
const client = await this.buildAuthenticatedClient();
|
|
30
|
+
try {
|
|
31
|
+
const result = await (0, workflow_runner_1.runVoidWorkflow)(client.manageConversation, {
|
|
32
|
+
threadId: args['thread-id'],
|
|
33
|
+
operation: args.operation,
|
|
34
|
+
}, {
|
|
35
|
+
isQuiet: flags.quiet,
|
|
36
|
+
});
|
|
37
|
+
(0, formatter_1.formatVoidOutput)({
|
|
38
|
+
errors: result.errors,
|
|
39
|
+
isJson: flags.json,
|
|
40
|
+
isQuiet: flags.quiet,
|
|
41
|
+
successMessage: `Conversation "${args.operation}" applied.`,
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
catch (error) {
|
|
45
|
+
this.handleError(error);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
exports.default = MessageManage;
|
|
50
|
+
//# sourceMappingURL=manage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manage.js","sourceRoot":"","sources":["../../../src/commands/message/manage.ts"],"names":[],"mappings":";;AAAA,sCAAmC;AAEnC,iDAA4C;AAC5C,sDAA0D;AAC1D,oEAAiE;AAEjE,MAAqB,aAAc,SAAQ,2BAAW;IACpD,MAAM,CAAU,WAAW,GAAG,8CAA8C,CAAC;IAE7E,MAAM,CAAU,IAAI,GAAG;QACrB,WAAW,EAAE,WAAI,CAAC,MAAM,CAAC;YACvB,WAAW,EAAE,gCAAgC;YAC7C,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,SAAS,EAAE,WAAI,CAAC,MAAM,CAAC;YACrB,WAAW,EAAE,uDAAuD;YACpE,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,CAAC,SAAS,EAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,CAAC;SACtE,CAAC;KACH,CAAC;IAEF,MAAM,CAAU,KAAK,GAAG;QACtB,GAAG,2BAAW,CAAC,SAAS;KACzB,CAAC;IAEF,MAAM,CAAU,QAAQ,GAAG;QACzB,sDAAsD;QACtD,qDAAqD;KACtD,CAAC;IAEK,KAAK,CAAC,GAAG;QACd,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;QAExD,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,wBAAwB,EAAE,CAAC;QAErD,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,MAAM,IAAA,iCAAe,EAClC,MAAM,CAAC,kBAAkB,EACzB;gBACE,QAAQ,EAAE,IAAI,CAAC,WAAW,CAAC;gBAC3B,SAAS,EAAE,IAAI,CAAC,SAAS;aAC1B,EACD;gBACE,OAAO,EAAE,KAAK,CAAC,KAAK;aACrB,CACF,CAAC;YAEF,IAAA,4BAAgB,EAAC;gBACf,MAAM,EAAE,MAAM,CAAC,MAAM;gBACrB,MAAM,EAAE,KAAK,CAAC,IAAI;gBAClB,OAAO,EAAE,KAAK,CAAC,KAAK;gBACpB,cAAc,EAAE,iBAAiB,IAAI,CAAC,SAAS,YAAY;aAC5D,CAAC,CAAC;QACL,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;QAC1B,CAAC;IACH,CAAC;;AAlDH,gCAmDC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BaseCommand } from '../../../base-command';
|
|
2
|
+
export default class NavigatorMessageManage extends BaseCommand {
|
|
3
|
+
static description: string;
|
|
4
|
+
static args: {
|
|
5
|
+
'thread-id': import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
|
|
6
|
+
operation: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
|
|
7
|
+
};
|
|
8
|
+
static flags: {
|
|
9
|
+
json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
10
|
+
fields: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
11
|
+
quiet: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
12
|
+
'no-color': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
13
|
+
account: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
14
|
+
};
|
|
15
|
+
static examples: string[];
|
|
16
|
+
run(): Promise<void>;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=manage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manage.d.ts","sourceRoot":"","sources":["../../../../src/commands/navigator/message/manage.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAI5C,MAAM,CAAC,OAAO,OAAO,sBAAuB,SAAQ,WAAW;IAC7D,OAAgB,WAAW,SAAgE;IAE3F,OAAgB,IAAI;;;MAUlB;IAEF,OAAgB,KAAK;;;;;;MAEnB;IAEF,OAAgB,QAAQ,WAAsE;IAEjF,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CA2BlC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const core_1 = require("@oclif/core");
|
|
4
|
+
const _base_command_1 = require("../../../base-command");
|
|
5
|
+
const formatter_1 = require("../../../core/output/formatter");
|
|
6
|
+
const workflow_runner_1 = require("../../../core/workflow/workflow-runner");
|
|
7
|
+
class NavigatorMessageManage extends _base_command_1.BaseCommand {
|
|
8
|
+
static description = 'Archive or unarchive a Sales Navigator conversation thread';
|
|
9
|
+
static args = {
|
|
10
|
+
'thread-id': core_1.Args.string({
|
|
11
|
+
description: 'Conversation thread identifier',
|
|
12
|
+
required: true,
|
|
13
|
+
}),
|
|
14
|
+
operation: core_1.Args.string({
|
|
15
|
+
description: 'One of archive, unarchive',
|
|
16
|
+
required: true,
|
|
17
|
+
options: ['archive', 'unarchive'],
|
|
18
|
+
}),
|
|
19
|
+
};
|
|
20
|
+
static flags = {
|
|
21
|
+
..._base_command_1.BaseCommand.baseFlags,
|
|
22
|
+
};
|
|
23
|
+
static examples = ['<%= config.bin %> navigator message manage 2-abc123... archive'];
|
|
24
|
+
async run() {
|
|
25
|
+
const { args, flags } = await this.parse(NavigatorMessageManage);
|
|
26
|
+
const client = await this.buildAuthenticatedClient();
|
|
27
|
+
try {
|
|
28
|
+
const result = await (0, workflow_runner_1.runVoidWorkflow)(client.nvManageConversation, {
|
|
29
|
+
threadId: args['thread-id'],
|
|
30
|
+
operation: args.operation,
|
|
31
|
+
}, {
|
|
32
|
+
isQuiet: flags.quiet,
|
|
33
|
+
});
|
|
34
|
+
(0, formatter_1.formatVoidOutput)({
|
|
35
|
+
errors: result.errors,
|
|
36
|
+
isJson: flags.json,
|
|
37
|
+
isQuiet: flags.quiet,
|
|
38
|
+
successMessage: `Sales Navigator conversation "${args.operation}" applied.`,
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
catch (error) {
|
|
42
|
+
this.handleError(error);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.default = NavigatorMessageManage;
|
|
47
|
+
//# sourceMappingURL=manage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manage.js","sourceRoot":"","sources":["../../../../src/commands/navigator/message/manage.ts"],"names":[],"mappings":";;AAAA,sCAAmC;AAEnC,iDAA4C;AAC5C,sDAA0D;AAC1D,oEAAiE;AAEjE,MAAqB,sBAAuB,SAAQ,2BAAW;IAC7D,MAAM,CAAU,WAAW,GAAG,4DAA4D,CAAC;IAE3F,MAAM,CAAU,IAAI,GAAG;QACrB,WAAW,EAAE,WAAI,CAAC,MAAM,CAAC;YACvB,WAAW,EAAE,gCAAgC;YAC7C,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,SAAS,EAAE,WAAI,CAAC,MAAM,CAAC;YACrB,WAAW,EAAE,2BAA2B;YACxC,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,CAAC,SAAS,EAAE,WAAW,CAAC;SAClC,CAAC;KACH,CAAC;IAEF,MAAM,CAAU,KAAK,GAAG;QACtB,GAAG,2BAAW,CAAC,SAAS;KACzB,CAAC;IAEF,MAAM,CAAU,QAAQ,GAAG,CAAC,gEAAgE,CAAC,CAAC;IAEvF,KAAK,CAAC,GAAG;QACd,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC;QAEjE,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,wBAAwB,EAAE,CAAC;QAErD,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,MAAM,IAAA,iCAAe,EAClC,MAAM,CAAC,oBAAoB,EAC3B;gBACE,QAAQ,EAAE,IAAI,CAAC,WAAW,CAAC;gBAC3B,SAAS,EAAE,IAAI,CAAC,SAAS;aAC1B,EACD;gBACE,OAAO,EAAE,KAAK,CAAC,KAAK;aACrB,CACF,CAAC;YAEF,IAAA,4BAAgB,EAAC;gBACf,MAAM,EAAE,MAAM,CAAC,MAAM;gBACrB,MAAM,EAAE,KAAK,CAAC,IAAI;gBAClB,OAAO,EAAE,KAAK,CAAC,KAAK;gBACpB,cAAc,EAAE,iCAAiC,IAAI,CAAC,SAAS,YAAY;aAC5E,CAAC,CAAC;QACL,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;QAC1B,CAAC;IACH,CAAC;;AA/CH,yCAgDC"}
|