@hesed/conni 0.5.0 → 0.6.1

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.
Files changed (41) hide show
  1. package/README.md +131 -56
  2. package/dist/commands/conni/auth/add.d.ts +1 -0
  3. package/dist/commands/conni/auth/add.js +24 -18
  4. package/dist/commands/conni/auth/list.d.ts +20 -0
  5. package/dist/commands/conni/auth/list.js +36 -0
  6. package/dist/commands/conni/auth/profile.d.ts +11 -0
  7. package/dist/commands/conni/auth/profile.js +23 -0
  8. package/dist/commands/conni/auth/test.d.ts +3 -1
  9. package/dist/commands/conni/auth/test.js +10 -4
  10. package/dist/commands/conni/auth/update.d.ts +1 -0
  11. package/dist/commands/conni/auth/update.js +22 -23
  12. package/dist/commands/conni/content/attachment-download.d.ts +1 -0
  13. package/dist/commands/conni/content/attachment-download.js +2 -1
  14. package/dist/commands/conni/content/attachment.d.ts +1 -0
  15. package/dist/commands/conni/content/attachment.js +2 -1
  16. package/dist/commands/conni/content/comment-delete.d.ts +1 -0
  17. package/dist/commands/conni/content/comment-delete.js +2 -1
  18. package/dist/commands/conni/content/comment-update.d.ts +1 -0
  19. package/dist/commands/conni/content/comment-update.js +2 -1
  20. package/dist/commands/conni/content/comment.d.ts +1 -0
  21. package/dist/commands/conni/content/comment.js +2 -1
  22. package/dist/commands/conni/content/create.d.ts +1 -0
  23. package/dist/commands/conni/content/create.js +2 -1
  24. package/dist/commands/conni/content/delete.d.ts +1 -0
  25. package/dist/commands/conni/content/delete.js +2 -1
  26. package/dist/commands/conni/content/get.d.ts +1 -0
  27. package/dist/commands/conni/content/get.js +2 -1
  28. package/dist/commands/conni/content/search.d.ts +1 -0
  29. package/dist/commands/conni/content/search.js +2 -1
  30. package/dist/commands/conni/content/update.d.ts +3 -0
  31. package/dist/commands/conni/content/update.js +29 -4
  32. package/dist/commands/conni/space/get.d.ts +1 -0
  33. package/dist/commands/conni/space/get.js +2 -1
  34. package/dist/commands/conni/space/list.d.ts +1 -0
  35. package/dist/commands/conni/space/list.js +2 -1
  36. package/dist/config.d.ts +6 -2
  37. package/dist/config.js +68 -3
  38. package/dist/conni/conni-api.d.ts +1 -1
  39. package/dist/conni/conni-api.js +11 -4
  40. package/oclif.manifest.json +235 -7
  41. package/package.json +1 -1
@@ -5,7 +5,8 @@
5
5
  "args": {},
6
6
  "description": "Add Atlassian authentication",
7
7
  "examples": [
8
- "<%= config.bin %> <%= command.id %>"
8
+ "<%= config.bin %> <%= command.id %>",
9
+ "<%= config.bin %> <%= command.id %> --profile work"
9
10
  ],
10
11
  "flags": {
11
12
  "json": {
@@ -24,6 +25,15 @@
24
25
  "multiple": false,
25
26
  "type": "option"
26
27
  },
28
+ "profile": {
29
+ "char": "p",
30
+ "description": "Profile name:",
31
+ "name": "profile",
32
+ "required": false,
33
+ "hasDynamicHelp": false,
34
+ "multiple": false,
35
+ "type": "option"
36
+ },
27
37
  "token": {
28
38
  "char": "t",
29
39
  "description": "API Token:",
@@ -60,12 +70,88 @@
60
70
  "add.js"
61
71
  ]
62
72
  },
73
+ "conni:auth:list": {
74
+ "aliases": [],
75
+ "args": {},
76
+ "description": "List authentication profiles",
77
+ "examples": [
78
+ "<%= config.bin %> <%= command.id %>"
79
+ ],
80
+ "flags": {
81
+ "json": {
82
+ "description": "Format output as json.",
83
+ "helpGroup": "GLOBAL",
84
+ "name": "json",
85
+ "allowNo": false,
86
+ "type": "boolean"
87
+ }
88
+ },
89
+ "hasDynamicHelp": false,
90
+ "hiddenAliases": [],
91
+ "id": "conni:auth:list",
92
+ "pluginAlias": "@hesed/conni",
93
+ "pluginName": "@hesed/conni",
94
+ "pluginType": "core",
95
+ "strict": true,
96
+ "enableJsonFlag": true,
97
+ "isESM": true,
98
+ "relativePath": [
99
+ "dist",
100
+ "commands",
101
+ "conni",
102
+ "auth",
103
+ "list.js"
104
+ ]
105
+ },
106
+ "conni:auth:profile": {
107
+ "aliases": [],
108
+ "args": {},
109
+ "description": "Set or show the default authentication profile",
110
+ "examples": [
111
+ "<%= config.bin %> <%= command.id %>",
112
+ "<%= config.bin %> <%= command.id %> --default work"
113
+ ],
114
+ "flags": {
115
+ "json": {
116
+ "description": "Format output as json.",
117
+ "helpGroup": "GLOBAL",
118
+ "name": "json",
119
+ "allowNo": false,
120
+ "type": "boolean"
121
+ },
122
+ "default": {
123
+ "description": "Profile name to set as default",
124
+ "name": "default",
125
+ "required": false,
126
+ "hasDynamicHelp": false,
127
+ "multiple": false,
128
+ "type": "option"
129
+ }
130
+ },
131
+ "hasDynamicHelp": false,
132
+ "hiddenAliases": [],
133
+ "id": "conni:auth:profile",
134
+ "pluginAlias": "@hesed/conni",
135
+ "pluginName": "@hesed/conni",
136
+ "pluginType": "core",
137
+ "strict": true,
138
+ "enableJsonFlag": true,
139
+ "isESM": true,
140
+ "relativePath": [
141
+ "dist",
142
+ "commands",
143
+ "conni",
144
+ "auth",
145
+ "profile.js"
146
+ ]
147
+ },
63
148
  "conni:auth:test": {
64
149
  "aliases": [],
65
150
  "args": {},
66
151
  "description": "Test authentication and connection",
67
152
  "examples": [
68
- "<%= config.bin %> <%= command.id %>"
153
+ "<%= config.bin %> <%= command.id %>",
154
+ "<%= config.bin %> <%= command.id %> --profile work"
69
155
  ],
70
156
  "flags": {
71
157
  "json": {
@@ -74,6 +160,15 @@
74
160
  "name": "json",
75
161
  "allowNo": false,
76
162
  "type": "boolean"
163
+ },
164
+ "profile": {
165
+ "char": "p",
166
+ "description": "Authentication profile name",
167
+ "name": "profile",
168
+ "required": false,
169
+ "hasDynamicHelp": false,
170
+ "multiple": false,
171
+ "type": "option"
77
172
  }
78
173
  },
79
174
  "hasDynamicHelp": false,
@@ -96,9 +191,10 @@
96
191
  "conni:auth:update": {
97
192
  "aliases": [],
98
193
  "args": {},
99
- "description": "Update existing authentication",
194
+ "description": "Update existing authentication profile",
100
195
  "examples": [
101
- "<%= config.bin %> <%= command.id %>"
196
+ "<%= config.bin %> <%= command.id %>",
197
+ "<%= config.bin %> <%= command.id %> --profile work"
102
198
  ],
103
199
  "flags": {
104
200
  "json": {
@@ -117,6 +213,15 @@
117
213
  "multiple": false,
118
214
  "type": "option"
119
215
  },
216
+ "profile": {
217
+ "char": "p",
218
+ "description": "Profile name to update (default: \"default\")",
219
+ "name": "profile",
220
+ "required": false,
221
+ "hasDynamicHelp": false,
222
+ "multiple": false,
223
+ "type": "option"
224
+ },
120
225
  "token": {
121
226
  "char": "t",
122
227
  "description": "API Token",
@@ -167,6 +272,15 @@
167
272
  "<%= config.bin %> <%= command.id %> DEV"
168
273
  ],
169
274
  "flags": {
275
+ "profile": {
276
+ "char": "p",
277
+ "description": "Authentication profile name",
278
+ "name": "profile",
279
+ "required": false,
280
+ "hasDynamicHelp": false,
281
+ "multiple": false,
282
+ "type": "option"
283
+ },
170
284
  "toon": {
171
285
  "description": "Format output as toon",
172
286
  "name": "toon",
@@ -200,6 +314,15 @@
200
314
  "<%= config.bin %> <%= command.id %>"
201
315
  ],
202
316
  "flags": {
317
+ "profile": {
318
+ "char": "p",
319
+ "description": "Authentication profile name",
320
+ "name": "profile",
321
+ "required": false,
322
+ "hasDynamicHelp": false,
323
+ "multiple": false,
324
+ "type": "option"
325
+ },
203
326
  "toon": {
204
327
  "description": "Format output as toon",
205
328
  "name": "toon",
@@ -245,6 +368,15 @@
245
368
  "<%= config.bin %> <%= command.id %> att12345 ./document.pdf"
246
369
  ],
247
370
  "flags": {
371
+ "profile": {
372
+ "char": "p",
373
+ "description": "Authentication profile name",
374
+ "name": "profile",
375
+ "required": false,
376
+ "hasDynamicHelp": false,
377
+ "multiple": false,
378
+ "type": "option"
379
+ },
248
380
  "toon": {
249
381
  "description": "Format output as toon",
250
382
  "name": "toon",
@@ -289,6 +421,15 @@
289
421
  "<%= config.bin %> <%= command.id %> 123456 ./document.pdf"
290
422
  ],
291
423
  "flags": {
424
+ "profile": {
425
+ "char": "p",
426
+ "description": "Authentication profile name",
427
+ "name": "profile",
428
+ "required": false,
429
+ "hasDynamicHelp": false,
430
+ "multiple": false,
431
+ "type": "option"
432
+ },
292
433
  "toon": {
293
434
  "description": "Format output as toon",
294
435
  "name": "toon",
@@ -328,6 +469,15 @@
328
469
  "<%= config.bin %> <%= command.id %> 1544224770"
329
470
  ],
330
471
  "flags": {
472
+ "profile": {
473
+ "char": "p",
474
+ "description": "Authentication profile name",
475
+ "name": "profile",
476
+ "required": false,
477
+ "hasDynamicHelp": false,
478
+ "multiple": false,
479
+ "type": "option"
480
+ },
331
481
  "toon": {
332
482
  "description": "Format output as toon",
333
483
  "name": "toon",
@@ -373,6 +523,15 @@
373
523
  "<%= config.bin %> <%= command.id %> 1544224770 \"$(cat content.md)\""
374
524
  ],
375
525
  "flags": {
526
+ "profile": {
527
+ "char": "p",
528
+ "description": "Authentication profile name",
529
+ "name": "profile",
530
+ "required": false,
531
+ "hasDynamicHelp": false,
532
+ "multiple": false,
533
+ "type": "option"
534
+ },
376
535
  "toon": {
377
536
  "description": "Format output as toon",
378
537
  "name": "toon",
@@ -418,6 +577,15 @@
418
577
  "<%= config.bin %> <%= command.id %> 123456 \"$(cat content.md)\""
419
578
  ],
420
579
  "flags": {
580
+ "profile": {
581
+ "char": "p",
582
+ "description": "Authentication profile name",
583
+ "name": "profile",
584
+ "required": false,
585
+ "hasDynamicHelp": false,
586
+ "multiple": false,
587
+ "type": "option"
588
+ },
421
589
  "toon": {
422
590
  "description": "Format output as toon",
423
591
  "name": "toon",
@@ -480,6 +648,15 @@
480
648
  "allowNo": false,
481
649
  "type": "boolean"
482
650
  },
651
+ "profile": {
652
+ "char": "p",
653
+ "description": "Authentication profile name",
654
+ "name": "profile",
655
+ "required": false,
656
+ "hasDynamicHelp": false,
657
+ "multiple": false,
658
+ "type": "option"
659
+ },
483
660
  "toon": {
484
661
  "description": "Format output as toon",
485
662
  "name": "toon",
@@ -519,6 +696,15 @@
519
696
  "<%= config.bin %> <%= command.id %> 1543634992"
520
697
  ],
521
698
  "flags": {
699
+ "profile": {
700
+ "char": "p",
701
+ "description": "Authentication profile name",
702
+ "name": "profile",
703
+ "required": false,
704
+ "hasDynamicHelp": false,
705
+ "multiple": false,
706
+ "type": "option"
707
+ },
522
708
  "toon": {
523
709
  "description": "Format output as toon",
524
710
  "name": "toon",
@@ -558,6 +744,15 @@
558
744
  "<%= config.bin %> <%= command.id %> 1544060948"
559
745
  ],
560
746
  "flags": {
747
+ "profile": {
748
+ "char": "p",
749
+ "description": "Authentication profile name",
750
+ "name": "profile",
751
+ "required": false,
752
+ "hasDynamicHelp": false,
753
+ "multiple": false,
754
+ "type": "option"
755
+ },
561
756
  "toon": {
562
757
  "description": "Format output as toon",
563
758
  "name": "toon",
@@ -614,6 +809,15 @@
614
809
  "multiple": false,
615
810
  "type": "option"
616
811
  },
812
+ "profile": {
813
+ "char": "p",
814
+ "description": "Authentication profile name",
815
+ "name": "profile",
816
+ "required": false,
817
+ "hasDynamicHelp": false,
818
+ "multiple": false,
819
+ "type": "option"
820
+ },
617
821
  "toon": {
618
822
  "description": "Format output as toon",
619
823
  "name": "toon",
@@ -652,16 +856,40 @@
652
856
  "examples": [
653
857
  "<%= config.bin %> <%= command.id %> 1076199489 --fields title='New summary' body='New description'",
654
858
  "<%= config.bin %> <%= command.id %> 1076199489 --fields body='\n# Header\n## Sub-header\n- Item 1\n- Item 2\n```bash\nls -a\n```'",
655
- "<%= config.bin %> <%= command.id %> 1076199489 --fields body=\"$(cat content.md)\""
859
+ "<%= config.bin %> <%= command.id %> 1076199489 --fields body=\"$(cat content.md)\"",
860
+ "<%= config.bin %> <%= command.id %> 1076199489 --fields body=@storage.xml representation=storage --full-width"
656
861
  ],
657
862
  "flags": {
658
863
  "fields": {
659
- "description": "Content fields to update in key=value format",
864
+ "description": "Content fields to update in key=value format. Use @file to read value from a file (e.g. body=@content.xml)",
660
865
  "name": "fields",
661
866
  "required": true,
662
867
  "hasDynamicHelp": false,
663
868
  "multiple": true,
664
869
  "type": "option"
870
+ },
871
+ "full-width": {
872
+ "description": "Set page appearance to full-width",
873
+ "name": "full-width",
874
+ "required": false,
875
+ "allowNo": false,
876
+ "type": "boolean"
877
+ },
878
+ "profile": {
879
+ "char": "p",
880
+ "description": "Authentication profile name",
881
+ "name": "profile",
882
+ "required": false,
883
+ "hasDynamicHelp": false,
884
+ "multiple": false,
885
+ "type": "option"
886
+ },
887
+ "toon": {
888
+ "description": "Format output as toon",
889
+ "name": "toon",
890
+ "required": false,
891
+ "allowNo": false,
892
+ "type": "boolean"
665
893
  }
666
894
  },
667
895
  "hasDynamicHelp": false,
@@ -682,5 +910,5 @@
682
910
  ]
683
911
  }
684
912
  },
685
- "version": "0.5.0"
913
+ "version": "0.6.1"
686
914
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hesed/conni",
3
3
  "description": "CLI for Confluence API interaction",
4
- "version": "0.5.0",
4
+ "version": "0.6.1",
5
5
  "author": "Hesed",
6
6
  "bin": {
7
7
  "conni": "./bin/run.js"