@linkedapi/linkedin-cli 1.0.15 → 1.0.17
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 +55 -0
- package/dist/commands/admin/{subscription/cancel.d.ts → accounts/reconnect.d.ts} +5 -2
- package/dist/commands/admin/accounts/reconnect.d.ts.map +1 -0
- package/dist/commands/admin/accounts/reconnect.js +37 -0
- package/dist/commands/admin/accounts/reconnect.js.map +1 -0
- package/dist/commands/admin/{subscription/billing-link.d.ts → accounts/reparse.d.ts} +5 -2
- package/dist/commands/admin/accounts/reparse.d.ts.map +1 -0
- package/dist/commands/admin/accounts/reparse.js +37 -0
- package/dist/commands/admin/accounts/reparse.js.map +1 -0
- package/oclif.manifest.json +649 -689
- package/package.json +3 -3
- package/dist/commands/admin/subscription/billing-link.d.ts.map +0 -1
- package/dist/commands/admin/subscription/billing-link.js +0 -28
- package/dist/commands/admin/subscription/billing-link.js.map +0 -1
- package/dist/commands/admin/subscription/cancel.d.ts.map +0 -1
- package/dist/commands/admin/subscription/cancel.js +0 -28
- package/dist/commands/admin/subscription/cancel.js.map +0 -1
- package/dist/commands/admin/subscription/pricing.d.ts +0 -13
- package/dist/commands/admin/subscription/pricing.d.ts.map +0 -1
- package/dist/commands/admin/subscription/pricing.js +0 -28
- package/dist/commands/admin/subscription/pricing.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@linkedapi/linkedin-cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.17",
|
|
4
4
|
"description": "AI-agent-friendly CLI for controlling LinkedIn accounts and retrieving real-time data.",
|
|
5
5
|
"author": "Linked API",
|
|
6
6
|
"license": "MIT",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"clean": "rm -rf dist tsconfig.tsbuildinfo",
|
|
28
28
|
"dev": "tsc --watch",
|
|
29
29
|
"lint": "eslint src --fix",
|
|
30
|
-
"format": "prettier --write \"src/**/*.ts\"",
|
|
30
|
+
"format": "prettier --write --log-level warn \"src/**/*.ts\"",
|
|
31
31
|
"manifest": "oclif manifest",
|
|
32
32
|
"typecheck": "tsc --noEmit",
|
|
33
33
|
"prepublishOnly": "npm run clean && npm run build",
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
"description": "Manage subscription, accounts, and limits"
|
|
114
114
|
},
|
|
115
115
|
"admin:subscription": {
|
|
116
|
-
"description": "Manage subscription and
|
|
116
|
+
"description": "Manage subscription status and seats"
|
|
117
117
|
},
|
|
118
118
|
"admin:accounts": {
|
|
119
119
|
"description": "Manage connected LinkedIn accounts"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"billing-link.d.ts","sourceRoot":"","sources":["../../../../src/commands/admin/subscription/billing-link.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAGvD,MAAM,CAAC,OAAO,OAAO,4BAA6B,SAAQ,gBAAgB;IACxE,OAAgB,WAAW,SAA6B;IAExD,OAAgB,KAAK;;;;;MAEnB;IAEF,OAAgB,QAAQ,WAAyD;IAEpE,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAgBlC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const _admin_base_command_1 = require("../../../admin-base-command");
|
|
4
|
-
const admin_formatter_1 = require("../../../core/output/admin-formatter");
|
|
5
|
-
class AdminSubscriptionBillingLink extends _admin_base_command_1.AdminBaseCommand {
|
|
6
|
-
static description = 'Get billing portal link';
|
|
7
|
-
static flags = {
|
|
8
|
-
..._admin_base_command_1.AdminBaseCommand.baseFlags,
|
|
9
|
-
};
|
|
10
|
-
static examples = ['<%= config.bin %> admin subscription billing-link'];
|
|
11
|
-
async run() {
|
|
12
|
-
const { flags } = await this.parse(AdminSubscriptionBillingLink);
|
|
13
|
-
const admin = await this.buildAdminClient();
|
|
14
|
-
try {
|
|
15
|
-
const result = await admin.subscription.getBillingLink();
|
|
16
|
-
(0, admin_formatter_1.formatAdminOutput)({
|
|
17
|
-
data: result,
|
|
18
|
-
isJson: flags.json,
|
|
19
|
-
fields: flags.fields,
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
catch (error) {
|
|
23
|
-
this.handleError(error);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
exports.default = AdminSubscriptionBillingLink;
|
|
28
|
-
//# sourceMappingURL=billing-link.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"billing-link.js","sourceRoot":"","sources":["../../../../src/commands/admin/subscription/billing-link.ts"],"names":[],"mappings":";;AAAA,6DAAuD;AACvD,kEAAiE;AAEjE,MAAqB,4BAA6B,SAAQ,sCAAgB;IACxE,MAAM,CAAU,WAAW,GAAG,yBAAyB,CAAC;IAExD,MAAM,CAAU,KAAK,GAAG;QACtB,GAAG,sCAAgB,CAAC,SAAS;KAC9B,CAAC;IAEF,MAAM,CAAU,QAAQ,GAAG,CAAC,mDAAmD,CAAC,CAAC;IAE1E,KAAK,CAAC,GAAG;QACd,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,4BAA4B,CAAC,CAAC;QACjE,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,gBAAgB,EAAE,CAAC;QAE5C,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,MAAM,KAAK,CAAC,YAAY,CAAC,cAAc,EAAE,CAAC;YAEzD,IAAA,mCAAiB,EAAC;gBAChB,IAAI,EAAE,MAAM;gBACZ,MAAM,EAAE,KAAK,CAAC,IAAI;gBAClB,MAAM,EAAE,KAAK,CAAC,MAAM;aACrB,CAAC,CAAC;QACL,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;QAC1B,CAAC;IACH,CAAC;;AAxBH,+CAyBC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cancel.d.ts","sourceRoot":"","sources":["../../../../src/commands/admin/subscription/cancel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAGvD,MAAM,CAAC,OAAO,OAAO,uBAAwB,SAAQ,gBAAgB;IACnE,OAAgB,WAAW,SAAuC;IAElE,OAAgB,KAAK;;;;;MAEnB;IAEF,OAAgB,QAAQ,WAAmD;IAE9D,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAgBlC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const _admin_base_command_1 = require("../../../admin-base-command");
|
|
4
|
-
const admin_formatter_1 = require("../../../core/output/admin-formatter");
|
|
5
|
-
class AdminSubscriptionCancel extends _admin_base_command_1.AdminBaseCommand {
|
|
6
|
-
static description = 'Cancel subscription at period end';
|
|
7
|
-
static flags = {
|
|
8
|
-
..._admin_base_command_1.AdminBaseCommand.baseFlags,
|
|
9
|
-
};
|
|
10
|
-
static examples = ['<%= config.bin %> admin subscription cancel'];
|
|
11
|
-
async run() {
|
|
12
|
-
const { flags } = await this.parse(AdminSubscriptionCancel);
|
|
13
|
-
const admin = await this.buildAdminClient();
|
|
14
|
-
try {
|
|
15
|
-
const result = await admin.subscription.cancel();
|
|
16
|
-
(0, admin_formatter_1.formatAdminOutput)({
|
|
17
|
-
data: result,
|
|
18
|
-
isJson: flags.json,
|
|
19
|
-
fields: flags.fields,
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
catch (error) {
|
|
23
|
-
this.handleError(error);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
exports.default = AdminSubscriptionCancel;
|
|
28
|
-
//# sourceMappingURL=cancel.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cancel.js","sourceRoot":"","sources":["../../../../src/commands/admin/subscription/cancel.ts"],"names":[],"mappings":";;AAAA,6DAAuD;AACvD,kEAAiE;AAEjE,MAAqB,uBAAwB,SAAQ,sCAAgB;IACnE,MAAM,CAAU,WAAW,GAAG,mCAAmC,CAAC;IAElE,MAAM,CAAU,KAAK,GAAG;QACtB,GAAG,sCAAgB,CAAC,SAAS;KAC9B,CAAC;IAEF,MAAM,CAAU,QAAQ,GAAG,CAAC,6CAA6C,CAAC,CAAC;IAEpE,KAAK,CAAC,GAAG;QACd,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAC;QAC5D,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,gBAAgB,EAAE,CAAC;QAE5C,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,MAAM,KAAK,CAAC,YAAY,CAAC,MAAM,EAAE,CAAC;YAEjD,IAAA,mCAAiB,EAAC;gBAChB,IAAI,EAAE,MAAM;gBACZ,MAAM,EAAE,KAAK,CAAC,IAAI;gBAClB,MAAM,EAAE,KAAK,CAAC,MAAM;aACrB,CAAC,CAAC;QACL,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;QAC1B,CAAC;IACH,CAAC;;AAxBH,0CAyBC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { AdminBaseCommand } from '../../../admin-base-command';
|
|
2
|
-
export default class AdminSubscriptionPricing extends AdminBaseCommand {
|
|
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
|
-
};
|
|
10
|
-
static examples: string[];
|
|
11
|
-
run(): Promise<void>;
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=pricing.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pricing.d.ts","sourceRoot":"","sources":["../../../../src/commands/admin/subscription/pricing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAGvD,MAAM,CAAC,OAAO,OAAO,wBAAyB,SAAQ,gBAAgB;IACpE,OAAgB,WAAW,SAAoC;IAE/D,OAAgB,KAAK;;;;;MAEnB;IAEF,OAAgB,QAAQ,WAAoD;IAE/D,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAgBlC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const _admin_base_command_1 = require("../../../admin-base-command");
|
|
4
|
-
const admin_formatter_1 = require("../../../core/output/admin-formatter");
|
|
5
|
-
class AdminSubscriptionPricing extends _admin_base_command_1.AdminBaseCommand {
|
|
6
|
-
static description = 'View available pricing options';
|
|
7
|
-
static flags = {
|
|
8
|
-
..._admin_base_command_1.AdminBaseCommand.baseFlags,
|
|
9
|
-
};
|
|
10
|
-
static examples = ['<%= config.bin %> admin subscription pricing'];
|
|
11
|
-
async run() {
|
|
12
|
-
const { flags } = await this.parse(AdminSubscriptionPricing);
|
|
13
|
-
const admin = await this.buildAdminClient();
|
|
14
|
-
try {
|
|
15
|
-
const { products } = await admin.subscription.getPricing();
|
|
16
|
-
(0, admin_formatter_1.formatAdminOutput)({
|
|
17
|
-
data: products,
|
|
18
|
-
isJson: flags.json,
|
|
19
|
-
fields: flags.fields,
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
catch (error) {
|
|
23
|
-
this.handleError(error);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
exports.default = AdminSubscriptionPricing;
|
|
28
|
-
//# sourceMappingURL=pricing.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pricing.js","sourceRoot":"","sources":["../../../../src/commands/admin/subscription/pricing.ts"],"names":[],"mappings":";;AAAA,6DAAuD;AACvD,kEAAiE;AAEjE,MAAqB,wBAAyB,SAAQ,sCAAgB;IACpE,MAAM,CAAU,WAAW,GAAG,gCAAgC,CAAC;IAE/D,MAAM,CAAU,KAAK,GAAG;QACtB,GAAG,sCAAgB,CAAC,SAAS;KAC9B,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,wBAAwB,CAAC,CAAC;QAC7D,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,gBAAgB,EAAE,CAAC;QAE5C,IAAI,CAAC;YACH,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,KAAK,CAAC,YAAY,CAAC,UAAU,EAAE,CAAC;YAE3D,IAAA,mCAAiB,EAAC;gBAChB,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE,KAAK,CAAC,IAAI;gBAClB,MAAM,EAAE,KAAK,CAAC,MAAM;aACrB,CAAC,CAAC;QACL,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;QAC1B,CAAC;IACH,CAAC;;AAxBH,2CAyBC"}
|