@linkedapi/linkedin-cli 1.0.7 → 1.0.8

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.
@@ -43,11 +43,11 @@ See https://linkedapi.io/docs/executing-workflows/ for details on workflow execu
43
43
  }
44
44
  else {
45
45
  const status = await client.customWorkflow.status(args.id);
46
- if (status === 'running') {
46
+ if (status === 'running' || status === 'pending') {
47
47
  (0, formatter_1.formatOutput)({
48
48
  data: {
49
49
  workflowId: args.id,
50
- status: 'running',
50
+ status,
51
51
  },
52
52
  errors: [],
53
53
  isJson: flags.json,
@@ -1 +1 @@
1
- {"version":3,"file":"status.js","sourceRoot":"","sources":["../../../src/commands/workflow/status.ts"],"names":[],"mappings":";;AAAA,sCAA0C;AAE1C,iDAA4C;AAC5C,sDAAsD;AAEtD,MAAqB,cAAe,SAAQ,2BAAW;IACrD,MAAM,CAAU,WAAW,GAAG;;kGAEkE,CAAC;IAEjG,MAAM,CAAU,IAAI,GAAG;QACrB,EAAE,EAAE,WAAI,CAAC,MAAM,CAAC;YACd,WAAW,EAAE,aAAa;YAC1B,QAAQ,EAAE,IAAI;SACf,CAAC;KACH,CAAC;IAEF,MAAM,CAAU,KAAK,GAAG;QACtB,GAAG,2BAAW,CAAC,SAAS;QACxB,IAAI,EAAE,YAAK,CAAC,OAAO,CAAC;YAClB,WAAW,EAAE,+BAA+B;YAC5C,OAAO,EAAE,KAAK;SACf,CAAC;KACH,CAAC;IAEF,MAAM,CAAU,QAAQ,GAAG;QACzB,0CAA0C;QAC1C,wDAAwD;KACzD,CAAC;IAEK,KAAK,CAAC,GAAG;QACd,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;QAEzD,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,wBAAwB,EAAE,CAAC;QAErD,IAAI,CAAC;YACH,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC;gB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;oBACjB,MAAM,EAAE,MAAM,CAAC,MAAM;oBACrB,MAAM,EAAE,KAAK,CAAC,IAAI;oBAClB,MAAM,EAAE,KAAK,CAAC,MAAM;oBACpB,OAAO,EAAE,KAAK,CAAC,KAAK;iBACrB,CAAC,CAAC;YACL,CAAC;iBAAM,CAAC;gBACN,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,cAAc,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;gBAE3D,IAAI,MAAM,KAAK,SAAS,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;oBACjD,IAAA,wBAAY,EAAC;wBACX,IAAI,EAAE;4BACJ,UAAU,EAAE,IAAI,CAAC,EAAE;4BACnB,MAAM;yBACP;wBACD,MAAM,EAAE,EAAE;wBACV,MAAM,EAAE,KAAK,CAAC,IAAI;wBAClB,MAAM,EAAE,KAAK,CAAC,MAAM;wBACpB,OAAO,EAAE,KAAK,CAAC,KAAK;qBACrB,CAAC,CAAC;gBACL,CAAC;qBAAM,CAAC;oBACN,IAAA,wBAAY,EAAC;wBACX,IAAI,EAAE,MAAM,CAAC,IAAI;wBACjB,MAAM,EAAE,MAAM,CAAC,MAAM;wBACrB,MAAM,EAAE,KAAK,CAAC,IAAI;wBAClB,MAAM,EAAE,KAAK,CAAC,MAAM;wBACpB,OAAO,EAAE,KAAK,CAAC,KAAK;qBACrB,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;QACH,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;QAC1B,CAAC;IACH,CAAC;;AAxEH,iCAyEC"}
@@ -456,147 +456,6 @@
456
456
  "search.js"
457
457
  ]
458
458
  },
459
- "message:get": {
460
- "aliases": [],
461
- "args": {
462
- "person-url": {
463
- "description": "LinkedIn profile URL",
464
- "name": "person-url",
465
- "required": true
466
- }
467
- },
468
- "description": "Get conversation messages with a LinkedIn person",
469
- "examples": [
470
- "<%= config.bin %> message get https://www.linkedin.com/in/john-doe",
471
- "<%= config.bin %> message get https://www.linkedin.com/in/john-doe --since 2024-01-15T10:30:00Z"
472
- ],
473
- "flags": {
474
- "json": {
475
- "description": "Output as JSON",
476
- "name": "json",
477
- "allowNo": false,
478
- "type": "boolean"
479
- },
480
- "fields": {
481
- "description": "Comma-separated list of fields to include in output",
482
- "name": "fields",
483
- "hasDynamicHelp": false,
484
- "multiple": false,
485
- "type": "option"
486
- },
487
- "quiet": {
488
- "char": "q",
489
- "description": "Suppress progress output on stderr",
490
- "name": "quiet",
491
- "allowNo": false,
492
- "type": "boolean"
493
- },
494
- "no-color": {
495
- "description": "Disable colored output",
496
- "name": "no-color",
497
- "allowNo": false,
498
- "type": "boolean"
499
- },
500
- "account": {
501
- "description": "Account name to use (when multiple accounts are configured)",
502
- "name": "account",
503
- "hasDynamicHelp": false,
504
- "multiple": false,
505
- "type": "option"
506
- },
507
- "since": {
508
- "description": "Retrieve messages since ISO timestamp",
509
- "name": "since",
510
- "hasDynamicHelp": false,
511
- "multiple": false,
512
- "type": "option"
513
- }
514
- },
515
- "hasDynamicHelp": false,
516
- "hiddenAliases": [],
517
- "id": "message:get",
518
- "pluginAlias": "@linkedapi/linkedin-cli",
519
- "pluginName": "@linkedapi/linkedin-cli",
520
- "pluginType": "core",
521
- "strict": true,
522
- "enableJsonFlag": false,
523
- "isESM": false,
524
- "relativePath": [
525
- "dist",
526
- "commands",
527
- "message",
528
- "get.js"
529
- ]
530
- },
531
- "message:send": {
532
- "aliases": [],
533
- "args": {
534
- "person-url": {
535
- "description": "LinkedIn profile URL of the recipient",
536
- "name": "person-url",
537
- "required": true
538
- },
539
- "text": {
540
- "description": "Message text (up to 1900 characters)",
541
- "name": "text",
542
- "required": true
543
- }
544
- },
545
- "description": "Send a message to a LinkedIn person",
546
- "examples": [
547
- "<%= config.bin %> message send https://www.linkedin.com/in/john-doe \"Hello John!\""
548
- ],
549
- "flags": {
550
- "json": {
551
- "description": "Output as JSON",
552
- "name": "json",
553
- "allowNo": false,
554
- "type": "boolean"
555
- },
556
- "fields": {
557
- "description": "Comma-separated list of fields to include in output",
558
- "name": "fields",
559
- "hasDynamicHelp": false,
560
- "multiple": false,
561
- "type": "option"
562
- },
563
- "quiet": {
564
- "char": "q",
565
- "description": "Suppress progress output on stderr",
566
- "name": "quiet",
567
- "allowNo": false,
568
- "type": "boolean"
569
- },
570
- "no-color": {
571
- "description": "Disable colored output",
572
- "name": "no-color",
573
- "allowNo": false,
574
- "type": "boolean"
575
- },
576
- "account": {
577
- "description": "Account name to use (when multiple accounts are configured)",
578
- "name": "account",
579
- "hasDynamicHelp": false,
580
- "multiple": false,
581
- "type": "option"
582
- }
583
- },
584
- "hasDynamicHelp": false,
585
- "hiddenAliases": [],
586
- "id": "message:send",
587
- "pluginAlias": "@linkedapi/linkedin-cli",
588
- "pluginName": "@linkedapi/linkedin-cli",
589
- "pluginType": "core",
590
- "strict": true,
591
- "enableJsonFlag": false,
592
- "isESM": false,
593
- "relativePath": [
594
- "dist",
595
- "commands",
596
- "message",
597
- "send.js"
598
- ]
599
- },
600
459
  "connection:list": {
601
460
  "aliases": [],
602
461
  "args": {},
@@ -1061,6 +920,147 @@
1061
920
  "withdraw.js"
1062
921
  ]
1063
922
  },
923
+ "message:get": {
924
+ "aliases": [],
925
+ "args": {
926
+ "person-url": {
927
+ "description": "LinkedIn profile URL",
928
+ "name": "person-url",
929
+ "required": true
930
+ }
931
+ },
932
+ "description": "Get conversation messages with a LinkedIn person",
933
+ "examples": [
934
+ "<%= config.bin %> message get https://www.linkedin.com/in/john-doe",
935
+ "<%= config.bin %> message get https://www.linkedin.com/in/john-doe --since 2024-01-15T10:30:00Z"
936
+ ],
937
+ "flags": {
938
+ "json": {
939
+ "description": "Output as JSON",
940
+ "name": "json",
941
+ "allowNo": false,
942
+ "type": "boolean"
943
+ },
944
+ "fields": {
945
+ "description": "Comma-separated list of fields to include in output",
946
+ "name": "fields",
947
+ "hasDynamicHelp": false,
948
+ "multiple": false,
949
+ "type": "option"
950
+ },
951
+ "quiet": {
952
+ "char": "q",
953
+ "description": "Suppress progress output on stderr",
954
+ "name": "quiet",
955
+ "allowNo": false,
956
+ "type": "boolean"
957
+ },
958
+ "no-color": {
959
+ "description": "Disable colored output",
960
+ "name": "no-color",
961
+ "allowNo": false,
962
+ "type": "boolean"
963
+ },
964
+ "account": {
965
+ "description": "Account name to use (when multiple accounts are configured)",
966
+ "name": "account",
967
+ "hasDynamicHelp": false,
968
+ "multiple": false,
969
+ "type": "option"
970
+ },
971
+ "since": {
972
+ "description": "Retrieve messages since ISO timestamp",
973
+ "name": "since",
974
+ "hasDynamicHelp": false,
975
+ "multiple": false,
976
+ "type": "option"
977
+ }
978
+ },
979
+ "hasDynamicHelp": false,
980
+ "hiddenAliases": [],
981
+ "id": "message:get",
982
+ "pluginAlias": "@linkedapi/linkedin-cli",
983
+ "pluginName": "@linkedapi/linkedin-cli",
984
+ "pluginType": "core",
985
+ "strict": true,
986
+ "enableJsonFlag": false,
987
+ "isESM": false,
988
+ "relativePath": [
989
+ "dist",
990
+ "commands",
991
+ "message",
992
+ "get.js"
993
+ ]
994
+ },
995
+ "message:send": {
996
+ "aliases": [],
997
+ "args": {
998
+ "person-url": {
999
+ "description": "LinkedIn profile URL of the recipient",
1000
+ "name": "person-url",
1001
+ "required": true
1002
+ },
1003
+ "text": {
1004
+ "description": "Message text (up to 1900 characters)",
1005
+ "name": "text",
1006
+ "required": true
1007
+ }
1008
+ },
1009
+ "description": "Send a message to a LinkedIn person",
1010
+ "examples": [
1011
+ "<%= config.bin %> message send https://www.linkedin.com/in/john-doe \"Hello John!\""
1012
+ ],
1013
+ "flags": {
1014
+ "json": {
1015
+ "description": "Output as JSON",
1016
+ "name": "json",
1017
+ "allowNo": false,
1018
+ "type": "boolean"
1019
+ },
1020
+ "fields": {
1021
+ "description": "Comma-separated list of fields to include in output",
1022
+ "name": "fields",
1023
+ "hasDynamicHelp": false,
1024
+ "multiple": false,
1025
+ "type": "option"
1026
+ },
1027
+ "quiet": {
1028
+ "char": "q",
1029
+ "description": "Suppress progress output on stderr",
1030
+ "name": "quiet",
1031
+ "allowNo": false,
1032
+ "type": "boolean"
1033
+ },
1034
+ "no-color": {
1035
+ "description": "Disable colored output",
1036
+ "name": "no-color",
1037
+ "allowNo": false,
1038
+ "type": "boolean"
1039
+ },
1040
+ "account": {
1041
+ "description": "Account name to use (when multiple accounts are configured)",
1042
+ "name": "account",
1043
+ "hasDynamicHelp": false,
1044
+ "multiple": false,
1045
+ "type": "option"
1046
+ }
1047
+ },
1048
+ "hasDynamicHelp": false,
1049
+ "hiddenAliases": [],
1050
+ "id": "message:send",
1051
+ "pluginAlias": "@linkedapi/linkedin-cli",
1052
+ "pluginName": "@linkedapi/linkedin-cli",
1053
+ "pluginType": "core",
1054
+ "strict": true,
1055
+ "enableJsonFlag": false,
1056
+ "isESM": false,
1057
+ "relativePath": [
1058
+ "dist",
1059
+ "commands",
1060
+ "message",
1061
+ "send.js"
1062
+ ]
1063
+ },
1064
1064
  "person:fetch": {
1065
1065
  "aliases": [],
1066
1066
  "args": {
@@ -2617,5 +2617,5 @@
2617
2617
  ]
2618
2618
  }
2619
2619
  },
2620
- "version": "1.0.7"
2620
+ "version": "1.0.8"
2621
2621
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@linkedapi/linkedin-cli",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
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",
@@ -43,7 +43,7 @@
43
43
  "ai-agent"
44
44
  ],
45
45
  "dependencies": {
46
- "@linkedapi/node": "^1.2.16",
46
+ "@linkedapi/node": "^1.2.17",
47
47
  "@oclif/core": "^4.2.10"
48
48
  },
49
49
  "devDependencies": {