@hesed/conni 0.1.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.
Files changed (49) hide show
  1. package/README.md +449 -0
  2. package/bin/dev.cmd +3 -0
  3. package/bin/dev.js +5 -0
  4. package/bin/run.cmd +3 -0
  5. package/bin/run.js +5 -0
  6. package/dist/commands/conni/auth/add.d.ts +14 -0
  7. package/dist/commands/conni/auth/add.js +55 -0
  8. package/dist/commands/conni/auth/test.d.ts +10 -0
  9. package/dist/commands/conni/auth/test.js +32 -0
  10. package/dist/commands/conni/auth/update.d.ts +14 -0
  11. package/dist/commands/conni/auth/update.js +77 -0
  12. package/dist/commands/conni/content/attachment-download.d.ts +13 -0
  13. package/dist/commands/conni/content/attachment-download.js +44 -0
  14. package/dist/commands/conni/content/attachment.d.ts +13 -0
  15. package/dist/commands/conni/content/attachment.js +40 -0
  16. package/dist/commands/conni/content/comment-delete.d.ts +12 -0
  17. package/dist/commands/conni/content/comment-delete.js +29 -0
  18. package/dist/commands/conni/content/comment-update.d.ts +13 -0
  19. package/dist/commands/conni/content/comment-update.js +35 -0
  20. package/dist/commands/conni/content/comment.d.ts +13 -0
  21. package/dist/commands/conni/content/comment.js +35 -0
  22. package/dist/commands/conni/content/create.d.ts +11 -0
  23. package/dist/commands/conni/content/create.js +50 -0
  24. package/dist/commands/conni/content/delete.d.ts +12 -0
  25. package/dist/commands/conni/content/delete.js +29 -0
  26. package/dist/commands/conni/content/get.d.ts +12 -0
  27. package/dist/commands/conni/content/get.js +29 -0
  28. package/dist/commands/conni/content/search.d.ts +14 -0
  29. package/dist/commands/conni/content/search.js +34 -0
  30. package/dist/commands/conni/content/update.d.ts +12 -0
  31. package/dist/commands/conni/content/update.js +35 -0
  32. package/dist/commands/conni/space/get.d.ts +12 -0
  33. package/dist/commands/conni/space/get.js +29 -0
  34. package/dist/commands/conni/space/list.d.ts +9 -0
  35. package/dist/commands/conni/space/list.js +26 -0
  36. package/dist/config.d.ts +10 -0
  37. package/dist/config.js +18 -0
  38. package/dist/conni/conni-api.d.ts +88 -0
  39. package/dist/conni/conni-api.js +447 -0
  40. package/dist/conni/conni-client.d.ts +88 -0
  41. package/dist/conni/conni-client.js +148 -0
  42. package/dist/format.d.ts +4 -0
  43. package/dist/format.js +10 -0
  44. package/dist/index.d.ts +1 -0
  45. package/dist/index.js +1 -0
  46. package/dist/utils.d.ts +1 -0
  47. package/dist/utils.js +1 -0
  48. package/oclif.manifest.json +667 -0
  49. package/package.json +107 -0
@@ -0,0 +1,667 @@
1
+ {
2
+ "commands": {
3
+ "conni:auth:add": {
4
+ "aliases": [],
5
+ "args": {},
6
+ "description": "Add Atlassian authentication",
7
+ "examples": [
8
+ "<%= config.bin %> <%= command.id %>"
9
+ ],
10
+ "flags": {
11
+ "json": {
12
+ "description": "Format output as json.",
13
+ "helpGroup": "GLOBAL",
14
+ "name": "json",
15
+ "allowNo": false,
16
+ "type": "boolean"
17
+ },
18
+ "email": {
19
+ "char": "e",
20
+ "description": "Account email:",
21
+ "name": "email",
22
+ "required": false,
23
+ "hasDynamicHelp": false,
24
+ "multiple": false,
25
+ "type": "option"
26
+ },
27
+ "token": {
28
+ "char": "t",
29
+ "description": "API Token:",
30
+ "name": "token",
31
+ "required": false,
32
+ "hasDynamicHelp": false,
33
+ "multiple": false,
34
+ "type": "option"
35
+ },
36
+ "url": {
37
+ "char": "u",
38
+ "description": "Atlassian URL (start with https://):",
39
+ "name": "url",
40
+ "required": false,
41
+ "hasDynamicHelp": false,
42
+ "multiple": false,
43
+ "type": "option"
44
+ }
45
+ },
46
+ "hasDynamicHelp": false,
47
+ "hiddenAliases": [],
48
+ "id": "conni:auth:add",
49
+ "pluginAlias": "@hesed/conni",
50
+ "pluginName": "@hesed/conni",
51
+ "pluginType": "core",
52
+ "strict": true,
53
+ "enableJsonFlag": true,
54
+ "isESM": true,
55
+ "relativePath": [
56
+ "dist",
57
+ "commands",
58
+ "conni",
59
+ "auth",
60
+ "add.js"
61
+ ]
62
+ },
63
+ "conni:auth:test": {
64
+ "aliases": [],
65
+ "args": {},
66
+ "description": "Test authentication and connection",
67
+ "examples": [
68
+ "<%= config.bin %> <%= command.id %>"
69
+ ],
70
+ "flags": {
71
+ "json": {
72
+ "description": "Format output as json.",
73
+ "helpGroup": "GLOBAL",
74
+ "name": "json",
75
+ "allowNo": false,
76
+ "type": "boolean"
77
+ }
78
+ },
79
+ "hasDynamicHelp": false,
80
+ "hiddenAliases": [],
81
+ "id": "conni:auth:test",
82
+ "pluginAlias": "@hesed/conni",
83
+ "pluginName": "@hesed/conni",
84
+ "pluginType": "core",
85
+ "strict": true,
86
+ "enableJsonFlag": true,
87
+ "isESM": true,
88
+ "relativePath": [
89
+ "dist",
90
+ "commands",
91
+ "conni",
92
+ "auth",
93
+ "test.js"
94
+ ]
95
+ },
96
+ "conni:auth:update": {
97
+ "aliases": [],
98
+ "args": {},
99
+ "description": "Update existing authentication",
100
+ "examples": [
101
+ "<%= config.bin %> <%= command.id %>"
102
+ ],
103
+ "flags": {
104
+ "json": {
105
+ "description": "Format output as json.",
106
+ "helpGroup": "GLOBAL",
107
+ "name": "json",
108
+ "allowNo": false,
109
+ "type": "boolean"
110
+ },
111
+ "email": {
112
+ "char": "e",
113
+ "description": "Account email",
114
+ "name": "email",
115
+ "required": false,
116
+ "hasDynamicHelp": false,
117
+ "multiple": false,
118
+ "type": "option"
119
+ },
120
+ "token": {
121
+ "char": "t",
122
+ "description": "API Token",
123
+ "name": "token",
124
+ "required": false,
125
+ "hasDynamicHelp": false,
126
+ "multiple": false,
127
+ "type": "option"
128
+ },
129
+ "url": {
130
+ "char": "u",
131
+ "description": "Atlassian instance URL (start with https://)",
132
+ "name": "url",
133
+ "required": false,
134
+ "hasDynamicHelp": false,
135
+ "multiple": false,
136
+ "type": "option"
137
+ }
138
+ },
139
+ "hasDynamicHelp": false,
140
+ "hiddenAliases": [],
141
+ "id": "conni:auth:update",
142
+ "pluginAlias": "@hesed/conni",
143
+ "pluginName": "@hesed/conni",
144
+ "pluginType": "core",
145
+ "strict": true,
146
+ "enableJsonFlag": true,
147
+ "isESM": true,
148
+ "relativePath": [
149
+ "dist",
150
+ "commands",
151
+ "conni",
152
+ "auth",
153
+ "update.js"
154
+ ]
155
+ },
156
+ "conni:space:get": {
157
+ "aliases": [],
158
+ "args": {
159
+ "spaceKey": {
160
+ "description": "Space key",
161
+ "name": "spaceKey",
162
+ "required": true
163
+ }
164
+ },
165
+ "description": "Get details of a Confluence space",
166
+ "examples": [
167
+ "<%= config.bin %> <%= command.id %> DEV"
168
+ ],
169
+ "flags": {
170
+ "toon": {
171
+ "description": "Format output as toon",
172
+ "name": "toon",
173
+ "required": false,
174
+ "allowNo": false,
175
+ "type": "boolean"
176
+ }
177
+ },
178
+ "hasDynamicHelp": false,
179
+ "hiddenAliases": [],
180
+ "id": "conni:space:get",
181
+ "pluginAlias": "@hesed/conni",
182
+ "pluginName": "@hesed/conni",
183
+ "pluginType": "core",
184
+ "strict": true,
185
+ "enableJsonFlag": false,
186
+ "isESM": true,
187
+ "relativePath": [
188
+ "dist",
189
+ "commands",
190
+ "conni",
191
+ "space",
192
+ "get.js"
193
+ ]
194
+ },
195
+ "conni:space:list": {
196
+ "aliases": [],
197
+ "args": {},
198
+ "description": "List all Confluence spaces",
199
+ "examples": [
200
+ "<%= config.bin %> <%= command.id %>"
201
+ ],
202
+ "flags": {
203
+ "toon": {
204
+ "description": "Format output as toon",
205
+ "name": "toon",
206
+ "required": false,
207
+ "allowNo": false,
208
+ "type": "boolean"
209
+ }
210
+ },
211
+ "hasDynamicHelp": false,
212
+ "hiddenAliases": [],
213
+ "id": "conni:space:list",
214
+ "pluginAlias": "@hesed/conni",
215
+ "pluginName": "@hesed/conni",
216
+ "pluginType": "core",
217
+ "strict": true,
218
+ "enableJsonFlag": false,
219
+ "isESM": true,
220
+ "relativePath": [
221
+ "dist",
222
+ "commands",
223
+ "conni",
224
+ "space",
225
+ "list.js"
226
+ ]
227
+ },
228
+ "conni:content:attachment-download": {
229
+ "aliases": [],
230
+ "args": {
231
+ "attachmentId": {
232
+ "description": "Attachment ID",
233
+ "name": "attachmentId",
234
+ "required": true
235
+ },
236
+ "outputPath": {
237
+ "description": "Output file path",
238
+ "name": "outputPath",
239
+ "required": false
240
+ }
241
+ },
242
+ "description": "Download attachment from Confluence content",
243
+ "examples": [
244
+ "<%= config.bin %> <%= command.id %> att12345",
245
+ "<%= config.bin %> <%= command.id %> att12345 ./document.pdf"
246
+ ],
247
+ "flags": {
248
+ "toon": {
249
+ "description": "Format output as toon",
250
+ "name": "toon",
251
+ "required": false,
252
+ "allowNo": false,
253
+ "type": "boolean"
254
+ }
255
+ },
256
+ "hasDynamicHelp": false,
257
+ "hiddenAliases": [],
258
+ "id": "conni:content:attachment-download",
259
+ "pluginAlias": "@hesed/conni",
260
+ "pluginName": "@hesed/conni",
261
+ "pluginType": "core",
262
+ "strict": true,
263
+ "enableJsonFlag": false,
264
+ "isESM": true,
265
+ "relativePath": [
266
+ "dist",
267
+ "commands",
268
+ "conni",
269
+ "content",
270
+ "attachment-download.js"
271
+ ]
272
+ },
273
+ "conni:content:attachment": {
274
+ "aliases": [],
275
+ "args": {
276
+ "pageId": {
277
+ "description": "Page ID",
278
+ "name": "pageId",
279
+ "required": true
280
+ },
281
+ "file": {
282
+ "description": "Path to the file to upload",
283
+ "name": "file",
284
+ "required": true
285
+ }
286
+ },
287
+ "description": "Add attachment to Confluence content",
288
+ "examples": [
289
+ "<%= config.bin %> <%= command.id %> 123456 ./document.pdf"
290
+ ],
291
+ "flags": {
292
+ "toon": {
293
+ "description": "Format output as toon",
294
+ "name": "toon",
295
+ "required": false,
296
+ "allowNo": false,
297
+ "type": "boolean"
298
+ }
299
+ },
300
+ "hasDynamicHelp": false,
301
+ "hiddenAliases": [],
302
+ "id": "conni:content:attachment",
303
+ "pluginAlias": "@hesed/conni",
304
+ "pluginName": "@hesed/conni",
305
+ "pluginType": "core",
306
+ "strict": true,
307
+ "enableJsonFlag": false,
308
+ "isESM": true,
309
+ "relativePath": [
310
+ "dist",
311
+ "commands",
312
+ "conni",
313
+ "content",
314
+ "attachment.js"
315
+ ]
316
+ },
317
+ "conni:content:comment-delete": {
318
+ "aliases": [],
319
+ "args": {
320
+ "id": {
321
+ "description": "Comment ID to delete",
322
+ "name": "id",
323
+ "required": true
324
+ }
325
+ },
326
+ "description": "Delete comment from Confluence content",
327
+ "examples": [
328
+ "<%= config.bin %> <%= command.id %> 1544224770"
329
+ ],
330
+ "flags": {
331
+ "toon": {
332
+ "description": "Format output as toon",
333
+ "name": "toon",
334
+ "required": false,
335
+ "allowNo": false,
336
+ "type": "boolean"
337
+ }
338
+ },
339
+ "hasDynamicHelp": false,
340
+ "hiddenAliases": [],
341
+ "id": "conni:content:comment-delete",
342
+ "pluginAlias": "@hesed/conni",
343
+ "pluginName": "@hesed/conni",
344
+ "pluginType": "core",
345
+ "strict": true,
346
+ "enableJsonFlag": false,
347
+ "isESM": true,
348
+ "relativePath": [
349
+ "dist",
350
+ "commands",
351
+ "conni",
352
+ "content",
353
+ "comment-delete.js"
354
+ ]
355
+ },
356
+ "conni:content:comment-update": {
357
+ "aliases": [],
358
+ "args": {
359
+ "id": {
360
+ "description": "Comment ID to update",
361
+ "name": "id",
362
+ "required": true
363
+ },
364
+ "body": {
365
+ "description": "Comment in Markdown format",
366
+ "name": "body",
367
+ "required": true
368
+ }
369
+ },
370
+ "description": "Update a comment",
371
+ "examples": [
372
+ "<%= config.bin %> <%= command.id %> 1544224770 \"\n# Header\n## Sub-header\n- Item 1\n- Item 2\n```bash\nls -a\n```\"",
373
+ "<%= config.bin %> <%= command.id %> 1544224770 \"$(cat content.md)\""
374
+ ],
375
+ "flags": {
376
+ "toon": {
377
+ "description": "Format output as toon",
378
+ "name": "toon",
379
+ "required": false,
380
+ "allowNo": false,
381
+ "type": "boolean"
382
+ }
383
+ },
384
+ "hasDynamicHelp": false,
385
+ "hiddenAliases": [],
386
+ "id": "conni:content:comment-update",
387
+ "pluginAlias": "@hesed/conni",
388
+ "pluginName": "@hesed/conni",
389
+ "pluginType": "core",
390
+ "strict": true,
391
+ "enableJsonFlag": false,
392
+ "isESM": true,
393
+ "relativePath": [
394
+ "dist",
395
+ "commands",
396
+ "conni",
397
+ "content",
398
+ "comment-update.js"
399
+ ]
400
+ },
401
+ "conni:content:comment": {
402
+ "aliases": [],
403
+ "args": {
404
+ "pageId": {
405
+ "description": "Page ID",
406
+ "name": "pageId",
407
+ "required": true
408
+ },
409
+ "body": {
410
+ "description": "Comment in Markdown format",
411
+ "name": "body",
412
+ "required": true
413
+ }
414
+ },
415
+ "description": "Add comment to Confluence content",
416
+ "examples": [
417
+ "<%= config.bin %> <%= command.id %> 123456 \"\n# Header\n## Sub-header\n- Item 1\n- Item 2\n```bash\nls -a\n```\"",
418
+ "<%= config.bin %> <%= command.id %> 123456 \"$(cat content.md)\""
419
+ ],
420
+ "flags": {
421
+ "toon": {
422
+ "description": "Format output as toon",
423
+ "name": "toon",
424
+ "required": false,
425
+ "allowNo": false,
426
+ "type": "boolean"
427
+ }
428
+ },
429
+ "hasDynamicHelp": false,
430
+ "hiddenAliases": [],
431
+ "id": "conni:content:comment",
432
+ "pluginAlias": "@hesed/conni",
433
+ "pluginName": "@hesed/conni",
434
+ "pluginType": "core",
435
+ "strict": true,
436
+ "enableJsonFlag": false,
437
+ "isESM": true,
438
+ "relativePath": [
439
+ "dist",
440
+ "commands",
441
+ "conni",
442
+ "content",
443
+ "comment.js"
444
+ ]
445
+ },
446
+ "conni:content:create": {
447
+ "aliases": [],
448
+ "args": {},
449
+ "description": "Create a new Confluence page",
450
+ "examples": [
451
+ "<%= config.bin %> <%= command.id %> --fields spaceKey=\"DEV\" title=\"New title\" body=\"New description\" status=\"draft\"",
452
+ "<%= config.bin %> <%= command.id %> --fields spaceKey=\"DEV\" title=\"New title\" body='\n# Header\n## Sub-header\n- Item 1\n- Item 2\n```bash\nls -a\n```'"
453
+ ],
454
+ "flags": {
455
+ "fields": {
456
+ "description": "Minimum fields required: spaceKey, title & body",
457
+ "name": "fields",
458
+ "required": true,
459
+ "summary": "Content fields in key=value format",
460
+ "hasDynamicHelp": false,
461
+ "multiple": true,
462
+ "type": "option"
463
+ },
464
+ "toon": {
465
+ "description": "Format output as toon",
466
+ "name": "toon",
467
+ "required": false,
468
+ "allowNo": false,
469
+ "type": "boolean"
470
+ }
471
+ },
472
+ "hasDynamicHelp": false,
473
+ "hiddenAliases": [],
474
+ "id": "conni:content:create",
475
+ "pluginAlias": "@hesed/conni",
476
+ "pluginName": "@hesed/conni",
477
+ "pluginType": "core",
478
+ "strict": true,
479
+ "enableJsonFlag": false,
480
+ "isESM": true,
481
+ "relativePath": [
482
+ "dist",
483
+ "commands",
484
+ "conni",
485
+ "content",
486
+ "create.js"
487
+ ]
488
+ },
489
+ "conni:content:delete": {
490
+ "aliases": [],
491
+ "args": {
492
+ "pageId": {
493
+ "description": "Page ID to delete",
494
+ "name": "pageId",
495
+ "required": true
496
+ }
497
+ },
498
+ "description": "Delete a Confluence page",
499
+ "examples": [
500
+ "<%= config.bin %> <%= command.id %> 1543634992"
501
+ ],
502
+ "flags": {
503
+ "toon": {
504
+ "description": "Format output as toon",
505
+ "name": "toon",
506
+ "required": false,
507
+ "allowNo": false,
508
+ "type": "boolean"
509
+ }
510
+ },
511
+ "hasDynamicHelp": false,
512
+ "hiddenAliases": [],
513
+ "id": "conni:content:delete",
514
+ "pluginAlias": "@hesed/conni",
515
+ "pluginName": "@hesed/conni",
516
+ "pluginType": "core",
517
+ "strict": true,
518
+ "enableJsonFlag": false,
519
+ "isESM": true,
520
+ "relativePath": [
521
+ "dist",
522
+ "commands",
523
+ "conni",
524
+ "content",
525
+ "delete.js"
526
+ ]
527
+ },
528
+ "conni:content:get": {
529
+ "aliases": [],
530
+ "args": {
531
+ "pageId": {
532
+ "description": "Page ID",
533
+ "name": "pageId",
534
+ "required": true
535
+ }
536
+ },
537
+ "description": "Get details of a Confluence content",
538
+ "examples": [
539
+ "<%= config.bin %> <%= command.id %> 1544060948"
540
+ ],
541
+ "flags": {
542
+ "toon": {
543
+ "description": "Format output as toon",
544
+ "name": "toon",
545
+ "required": false,
546
+ "allowNo": false,
547
+ "type": "boolean"
548
+ }
549
+ },
550
+ "hasDynamicHelp": false,
551
+ "hiddenAliases": [],
552
+ "id": "conni:content:get",
553
+ "pluginAlias": "@hesed/conni",
554
+ "pluginName": "@hesed/conni",
555
+ "pluginType": "core",
556
+ "strict": true,
557
+ "enableJsonFlag": false,
558
+ "isESM": true,
559
+ "relativePath": [
560
+ "dist",
561
+ "commands",
562
+ "conni",
563
+ "content",
564
+ "get.js"
565
+ ]
566
+ },
567
+ "conni:content:search": {
568
+ "aliases": [],
569
+ "args": {
570
+ "cql": {
571
+ "description": "CQL expression",
572
+ "name": "cql",
573
+ "required": true
574
+ }
575
+ },
576
+ "description": "Search for Confluence contents using CQL",
577
+ "examples": [
578
+ "<%= config.bin %> <%= command.id %> 'space=DEV AND title ~ \"Implement email OTP login\" AND creator=currentUser()'",
579
+ "<%= config.bin %> <%= command.id %> 'created > startOfMonth()' --limit=5 --expand=body,version"
580
+ ],
581
+ "flags": {
582
+ "expand": {
583
+ "description": "Properties of the content to expand",
584
+ "name": "expand",
585
+ "required": false,
586
+ "hasDynamicHelp": false,
587
+ "multiple": false,
588
+ "type": "option"
589
+ },
590
+ "limit": {
591
+ "description": "Maximum number of contents per page",
592
+ "name": "limit",
593
+ "required": false,
594
+ "hasDynamicHelp": false,
595
+ "multiple": false,
596
+ "type": "option"
597
+ },
598
+ "toon": {
599
+ "description": "Format output as toon",
600
+ "name": "toon",
601
+ "required": false,
602
+ "allowNo": false,
603
+ "type": "boolean"
604
+ }
605
+ },
606
+ "hasDynamicHelp": false,
607
+ "hiddenAliases": [],
608
+ "id": "conni:content:search",
609
+ "pluginAlias": "@hesed/conni",
610
+ "pluginName": "@hesed/conni",
611
+ "pluginType": "core",
612
+ "strict": true,
613
+ "enableJsonFlag": false,
614
+ "isESM": true,
615
+ "relativePath": [
616
+ "dist",
617
+ "commands",
618
+ "conni",
619
+ "content",
620
+ "search.js"
621
+ ]
622
+ },
623
+ "conni:content:update": {
624
+ "aliases": [],
625
+ "args": {
626
+ "pageId": {
627
+ "description": "Page ID",
628
+ "name": "pageId",
629
+ "required": true
630
+ }
631
+ },
632
+ "description": "Update an existing Confluence content",
633
+ "examples": [
634
+ "<%= config.bin %> <%= command.id %> 1076199489 --fields title='New summary' body='New description'",
635
+ "<%= config.bin %> <%= command.id %> 1076199489 --fields body='\n# Header\n## Sub-header\n- Item 1\n- Item 2\n```bash\nls -a\n```'",
636
+ "<%= config.bin %> <%= command.id %> 1076199489 --fields body=\"$(cat content.md)\""
637
+ ],
638
+ "flags": {
639
+ "fields": {
640
+ "description": "Content fields to update in key=value format",
641
+ "name": "fields",
642
+ "required": true,
643
+ "hasDynamicHelp": false,
644
+ "multiple": true,
645
+ "type": "option"
646
+ }
647
+ },
648
+ "hasDynamicHelp": false,
649
+ "hiddenAliases": [],
650
+ "id": "conni:content:update",
651
+ "pluginAlias": "@hesed/conni",
652
+ "pluginName": "@hesed/conni",
653
+ "pluginType": "core",
654
+ "strict": true,
655
+ "enableJsonFlag": false,
656
+ "isESM": true,
657
+ "relativePath": [
658
+ "dist",
659
+ "commands",
660
+ "conni",
661
+ "content",
662
+ "update.js"
663
+ ]
664
+ }
665
+ },
666
+ "version": "0.1.0"
667
+ }