@hesed/conni 0.4.0 → 0.6.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 +130 -57
- package/dist/commands/conni/auth/add.d.ts +1 -0
- package/dist/commands/conni/auth/add.js +24 -18
- package/dist/commands/conni/auth/list.d.ts +20 -0
- package/dist/commands/conni/auth/list.js +36 -0
- package/dist/commands/conni/auth/profile.d.ts +11 -0
- package/dist/commands/conni/auth/profile.js +23 -0
- package/dist/commands/conni/auth/test.d.ts +3 -1
- package/dist/commands/conni/auth/test.js +10 -4
- package/dist/commands/conni/auth/update.d.ts +1 -0
- package/dist/commands/conni/auth/update.js +22 -23
- package/dist/commands/conni/content/attachment-download.d.ts +1 -0
- package/dist/commands/conni/content/attachment-download.js +2 -1
- package/dist/commands/conni/content/attachment.d.ts +1 -0
- package/dist/commands/conni/content/attachment.js +2 -1
- package/dist/commands/conni/content/comment-delete.d.ts +1 -0
- package/dist/commands/conni/content/comment-delete.js +2 -1
- package/dist/commands/conni/content/comment-update.d.ts +1 -0
- package/dist/commands/conni/content/comment-update.js +2 -1
- package/dist/commands/conni/content/comment.d.ts +1 -0
- package/dist/commands/conni/content/comment.js +2 -1
- package/dist/commands/conni/content/create.d.ts +2 -0
- package/dist/commands/conni/content/create.js +19 -4
- package/dist/commands/conni/content/delete.d.ts +1 -0
- package/dist/commands/conni/content/delete.js +2 -1
- package/dist/commands/conni/content/get.d.ts +1 -0
- package/dist/commands/conni/content/get.js +2 -1
- package/dist/commands/conni/content/search.d.ts +1 -0
- package/dist/commands/conni/content/search.js +2 -1
- package/dist/commands/conni/content/update.d.ts +1 -0
- package/dist/commands/conni/content/update.js +2 -1
- package/dist/commands/conni/space/get.d.ts +1 -0
- package/dist/commands/conni/space/get.js +2 -1
- package/dist/commands/conni/space/list.d.ts +1 -0
- package/dist/commands/conni/space/list.js +2 -1
- package/dist/config.d.ts +6 -2
- package/dist/config.js +68 -3
- package/dist/conni/conni-api.d.ts +5 -1
- package/dist/conni/conni-api.js +27 -3
- package/oclif.manifest.json +305 -84
- package/package.json +1 -1
package/dist/conni/conni-api.js
CHANGED
|
@@ -108,6 +108,9 @@ export class ConniApi {
|
|
|
108
108
|
const client = this.getClient();
|
|
109
109
|
const { contentPayload } = this.buildPageBody(fields);
|
|
110
110
|
const response = await client.content.createContent(contentPayload);
|
|
111
|
+
if (fields.fullWidth && response.id) {
|
|
112
|
+
await this.setPageAppearance(response.id, 'full-width');
|
|
113
|
+
}
|
|
111
114
|
return { data: response, success: true };
|
|
112
115
|
}
|
|
113
116
|
catch (error) {
|
|
@@ -268,7 +271,7 @@ export class ConniApi {
|
|
|
268
271
|
authentication: {
|
|
269
272
|
basic: {
|
|
270
273
|
apiToken: this.config.apiToken,
|
|
271
|
-
email: this.config.email,
|
|
274
|
+
email: this.config.email ?? '',
|
|
272
275
|
},
|
|
273
276
|
},
|
|
274
277
|
host: this.config.host,
|
|
@@ -369,6 +372,24 @@ export class ConniApi {
|
|
|
369
372
|
};
|
|
370
373
|
}
|
|
371
374
|
}
|
|
375
|
+
/**
|
|
376
|
+
* Set page appearance (full-width or fixed-width)
|
|
377
|
+
*/
|
|
378
|
+
async setPageAppearance(pageId, appearance) {
|
|
379
|
+
try {
|
|
380
|
+
const client = this.getClient();
|
|
381
|
+
await Promise.all(['content-appearance-published', 'content-appearance-draft'].map((key) => client.contentProperties.createContentProperty({
|
|
382
|
+
id: pageId,
|
|
383
|
+
key,
|
|
384
|
+
value: appearance,
|
|
385
|
+
})));
|
|
386
|
+
return { success: true };
|
|
387
|
+
}
|
|
388
|
+
catch (error) {
|
|
389
|
+
const errorMessage = typeof error === 'object' ? String(error.message) : String(error);
|
|
390
|
+
return { error: errorMessage, success: false };
|
|
391
|
+
}
|
|
392
|
+
}
|
|
372
393
|
/**
|
|
373
394
|
* Test Confluence API connection
|
|
374
395
|
*/
|
|
@@ -477,8 +498,11 @@ export class ConniApi {
|
|
|
477
498
|
}
|
|
478
499
|
}
|
|
479
500
|
buildPageBody(fields) {
|
|
501
|
+
const representation = fields.representation ?? 'atlas_doc_format';
|
|
502
|
+
const isStorage = representation === 'storage';
|
|
480
503
|
// eslint-disable-next-line unicorn/prefer-string-replace-all
|
|
481
|
-
const
|
|
504
|
+
const rawBody = fields.body.replace(/\\n/g, '\n');
|
|
505
|
+
const bodyContent = isStorage ? rawBody : markdownToAdf(rawBody);
|
|
482
506
|
const spaceKey = fields.spaceKey;
|
|
483
507
|
const title = fields.title;
|
|
484
508
|
const parentId = fields.parentId;
|
|
@@ -487,7 +511,7 @@ export class ConniApi {
|
|
|
487
511
|
bodyContent,
|
|
488
512
|
contentPayload: {
|
|
489
513
|
ancestors: parentId ? [{ id: parentId }] : undefined,
|
|
490
|
-
body: { storage: { representation
|
|
514
|
+
body: { storage: { representation, value: isStorage ? rawBody : JSON.stringify(bodyContent) } },
|
|
491
515
|
space: { key: spaceKey },
|
|
492
516
|
status,
|
|
493
517
|
title,
|
package/oclif.manifest.json
CHANGED
|
@@ -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": {
|
|
@@ -19,6 +20,15 @@
|
|
|
19
20
|
"char": "e",
|
|
20
21
|
"description": "Account email:",
|
|
21
22
|
"name": "email",
|
|
23
|
+
"required": true,
|
|
24
|
+
"hasDynamicHelp": false,
|
|
25
|
+
"multiple": false,
|
|
26
|
+
"type": "option"
|
|
27
|
+
},
|
|
28
|
+
"profile": {
|
|
29
|
+
"char": "p",
|
|
30
|
+
"description": "Profile name:",
|
|
31
|
+
"name": "profile",
|
|
22
32
|
"required": false,
|
|
23
33
|
"hasDynamicHelp": false,
|
|
24
34
|
"multiple": false,
|
|
@@ -28,7 +38,7 @@
|
|
|
28
38
|
"char": "t",
|
|
29
39
|
"description": "API Token:",
|
|
30
40
|
"name": "token",
|
|
31
|
-
"required":
|
|
41
|
+
"required": true,
|
|
32
42
|
"hasDynamicHelp": false,
|
|
33
43
|
"multiple": false,
|
|
34
44
|
"type": "option"
|
|
@@ -37,7 +47,7 @@
|
|
|
37
47
|
"char": "u",
|
|
38
48
|
"description": "Atlassian URL (start with https://):",
|
|
39
49
|
"name": "url",
|
|
40
|
-
"required":
|
|
50
|
+
"required": true,
|
|
41
51
|
"hasDynamicHelp": false,
|
|
42
52
|
"multiple": false,
|
|
43
53
|
"type": "option"
|
|
@@ -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": {
|
|
@@ -112,6 +208,15 @@
|
|
|
112
208
|
"char": "e",
|
|
113
209
|
"description": "Account email",
|
|
114
210
|
"name": "email",
|
|
211
|
+
"required": true,
|
|
212
|
+
"hasDynamicHelp": false,
|
|
213
|
+
"multiple": false,
|
|
214
|
+
"type": "option"
|
|
215
|
+
},
|
|
216
|
+
"profile": {
|
|
217
|
+
"char": "p",
|
|
218
|
+
"description": "Profile name to update (default: \"default\")",
|
|
219
|
+
"name": "profile",
|
|
115
220
|
"required": false,
|
|
116
221
|
"hasDynamicHelp": false,
|
|
117
222
|
"multiple": false,
|
|
@@ -121,7 +226,7 @@
|
|
|
121
226
|
"char": "t",
|
|
122
227
|
"description": "API Token",
|
|
123
228
|
"name": "token",
|
|
124
|
-
"required":
|
|
229
|
+
"required": true,
|
|
125
230
|
"hasDynamicHelp": false,
|
|
126
231
|
"multiple": false,
|
|
127
232
|
"type": "option"
|
|
@@ -130,7 +235,7 @@
|
|
|
130
235
|
"char": "u",
|
|
131
236
|
"description": "Atlassian instance URL (start with https://)",
|
|
132
237
|
"name": "url",
|
|
133
|
-
"required":
|
|
238
|
+
"required": true,
|
|
134
239
|
"hasDynamicHelp": false,
|
|
135
240
|
"multiple": false,
|
|
136
241
|
"type": "option"
|
|
@@ -153,6 +258,96 @@
|
|
|
153
258
|
"update.js"
|
|
154
259
|
]
|
|
155
260
|
},
|
|
261
|
+
"conni:space:get": {
|
|
262
|
+
"aliases": [],
|
|
263
|
+
"args": {
|
|
264
|
+
"spaceKey": {
|
|
265
|
+
"description": "Space key",
|
|
266
|
+
"name": "spaceKey",
|
|
267
|
+
"required": true
|
|
268
|
+
}
|
|
269
|
+
},
|
|
270
|
+
"description": "Get details of a Confluence space",
|
|
271
|
+
"examples": [
|
|
272
|
+
"<%= config.bin %> <%= command.id %> DEV"
|
|
273
|
+
],
|
|
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
|
+
},
|
|
284
|
+
"toon": {
|
|
285
|
+
"description": "Format output as toon",
|
|
286
|
+
"name": "toon",
|
|
287
|
+
"required": false,
|
|
288
|
+
"allowNo": false,
|
|
289
|
+
"type": "boolean"
|
|
290
|
+
}
|
|
291
|
+
},
|
|
292
|
+
"hasDynamicHelp": false,
|
|
293
|
+
"hiddenAliases": [],
|
|
294
|
+
"id": "conni:space:get",
|
|
295
|
+
"pluginAlias": "@hesed/conni",
|
|
296
|
+
"pluginName": "@hesed/conni",
|
|
297
|
+
"pluginType": "core",
|
|
298
|
+
"strict": true,
|
|
299
|
+
"enableJsonFlag": false,
|
|
300
|
+
"isESM": true,
|
|
301
|
+
"relativePath": [
|
|
302
|
+
"dist",
|
|
303
|
+
"commands",
|
|
304
|
+
"conni",
|
|
305
|
+
"space",
|
|
306
|
+
"get.js"
|
|
307
|
+
]
|
|
308
|
+
},
|
|
309
|
+
"conni:space:list": {
|
|
310
|
+
"aliases": [],
|
|
311
|
+
"args": {},
|
|
312
|
+
"description": "List all Confluence spaces",
|
|
313
|
+
"examples": [
|
|
314
|
+
"<%= config.bin %> <%= command.id %>"
|
|
315
|
+
],
|
|
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
|
+
},
|
|
326
|
+
"toon": {
|
|
327
|
+
"description": "Format output as toon",
|
|
328
|
+
"name": "toon",
|
|
329
|
+
"required": false,
|
|
330
|
+
"allowNo": false,
|
|
331
|
+
"type": "boolean"
|
|
332
|
+
}
|
|
333
|
+
},
|
|
334
|
+
"hasDynamicHelp": false,
|
|
335
|
+
"hiddenAliases": [],
|
|
336
|
+
"id": "conni:space:list",
|
|
337
|
+
"pluginAlias": "@hesed/conni",
|
|
338
|
+
"pluginName": "@hesed/conni",
|
|
339
|
+
"pluginType": "core",
|
|
340
|
+
"strict": true,
|
|
341
|
+
"enableJsonFlag": false,
|
|
342
|
+
"isESM": true,
|
|
343
|
+
"relativePath": [
|
|
344
|
+
"dist",
|
|
345
|
+
"commands",
|
|
346
|
+
"conni",
|
|
347
|
+
"space",
|
|
348
|
+
"list.js"
|
|
349
|
+
]
|
|
350
|
+
},
|
|
156
351
|
"conni:content:attachment-download": {
|
|
157
352
|
"aliases": [],
|
|
158
353
|
"args": {
|
|
@@ -173,6 +368,15 @@
|
|
|
173
368
|
"<%= config.bin %> <%= command.id %> att12345 ./document.pdf"
|
|
174
369
|
],
|
|
175
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
|
+
},
|
|
176
380
|
"toon": {
|
|
177
381
|
"description": "Format output as toon",
|
|
178
382
|
"name": "toon",
|
|
@@ -217,6 +421,15 @@
|
|
|
217
421
|
"<%= config.bin %> <%= command.id %> 123456 ./document.pdf"
|
|
218
422
|
],
|
|
219
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
|
+
},
|
|
220
433
|
"toon": {
|
|
221
434
|
"description": "Format output as toon",
|
|
222
435
|
"name": "toon",
|
|
@@ -256,6 +469,15 @@
|
|
|
256
469
|
"<%= config.bin %> <%= command.id %> 1544224770"
|
|
257
470
|
],
|
|
258
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
|
+
},
|
|
259
481
|
"toon": {
|
|
260
482
|
"description": "Format output as toon",
|
|
261
483
|
"name": "toon",
|
|
@@ -301,6 +523,15 @@
|
|
|
301
523
|
"<%= config.bin %> <%= command.id %> 1544224770 \"$(cat content.md)\""
|
|
302
524
|
],
|
|
303
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
|
+
},
|
|
304
535
|
"toon": {
|
|
305
536
|
"description": "Format output as toon",
|
|
306
537
|
"name": "toon",
|
|
@@ -346,6 +577,15 @@
|
|
|
346
577
|
"<%= config.bin %> <%= command.id %> 123456 \"$(cat content.md)\""
|
|
347
578
|
],
|
|
348
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
|
+
},
|
|
349
589
|
"toon": {
|
|
350
590
|
"description": "Format output as toon",
|
|
351
591
|
"name": "toon",
|
|
@@ -380,7 +620,8 @@
|
|
|
380
620
|
"<%= 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```'",
|
|
381
621
|
"<%= config.bin %> <%= command.id %> --fields spaceKey=\"DEV\" title=\"Child page\" body=\"Content\" parentId=\"123456\"",
|
|
382
622
|
"<%= config.bin %> <%= command.id %> --fields spaceKey=\"DEV\" title=\"Page with image\" body=\"See the diagram:\n\" --attach ./diagram.png",
|
|
383
|
-
"<%= config.bin %> <%= command.id %> --fields spaceKey=\"DEV\" title=\"Page with files\" body=\"Content\" --attach ./image.png --attach ./report.pdf"
|
|
623
|
+
"<%= config.bin %> <%= command.id %> --fields spaceKey=\"DEV\" title=\"Page with files\" body=\"Content\" --attach ./image.png --attach ./report.pdf",
|
|
624
|
+
"<%= config.bin %> <%= command.id %> --fields spaceKey=\"DEV\" title=\"Storage page\" body=@storage.xml representation=storage --full-width"
|
|
384
625
|
],
|
|
385
626
|
"flags": {
|
|
386
627
|
"attach": {
|
|
@@ -392,14 +633,30 @@
|
|
|
392
633
|
"type": "option"
|
|
393
634
|
},
|
|
394
635
|
"fields": {
|
|
395
|
-
"description": "
|
|
636
|
+
"description": "Content fields in key=value format. Use @file to read value from a file (e.g. body=@content.xml)",
|
|
396
637
|
"name": "fields",
|
|
397
638
|
"required": true,
|
|
398
|
-
"summary": "
|
|
639
|
+
"summary": "Minimum fields required: spaceKey, title & body",
|
|
399
640
|
"hasDynamicHelp": false,
|
|
400
641
|
"multiple": true,
|
|
401
642
|
"type": "option"
|
|
402
643
|
},
|
|
644
|
+
"full-width": {
|
|
645
|
+
"description": "Set page appearance to full-width",
|
|
646
|
+
"name": "full-width",
|
|
647
|
+
"required": false,
|
|
648
|
+
"allowNo": false,
|
|
649
|
+
"type": "boolean"
|
|
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
|
+
},
|
|
403
660
|
"toon": {
|
|
404
661
|
"description": "Format output as toon",
|
|
405
662
|
"name": "toon",
|
|
@@ -439,6 +696,15 @@
|
|
|
439
696
|
"<%= config.bin %> <%= command.id %> 1543634992"
|
|
440
697
|
],
|
|
441
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
|
+
},
|
|
442
708
|
"toon": {
|
|
443
709
|
"description": "Format output as toon",
|
|
444
710
|
"name": "toon",
|
|
@@ -478,6 +744,15 @@
|
|
|
478
744
|
"<%= config.bin %> <%= command.id %> 1544060948"
|
|
479
745
|
],
|
|
480
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
|
+
},
|
|
481
756
|
"toon": {
|
|
482
757
|
"description": "Format output as toon",
|
|
483
758
|
"name": "toon",
|
|
@@ -534,6 +809,15 @@
|
|
|
534
809
|
"multiple": false,
|
|
535
810
|
"type": "option"
|
|
536
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
|
+
},
|
|
537
821
|
"toon": {
|
|
538
822
|
"description": "Format output as toon",
|
|
539
823
|
"name": "toon",
|
|
@@ -582,6 +866,15 @@
|
|
|
582
866
|
"hasDynamicHelp": false,
|
|
583
867
|
"multiple": true,
|
|
584
868
|
"type": "option"
|
|
869
|
+
},
|
|
870
|
+
"profile": {
|
|
871
|
+
"char": "p",
|
|
872
|
+
"description": "Authentication profile name",
|
|
873
|
+
"name": "profile",
|
|
874
|
+
"required": false,
|
|
875
|
+
"hasDynamicHelp": false,
|
|
876
|
+
"multiple": false,
|
|
877
|
+
"type": "option"
|
|
585
878
|
}
|
|
586
879
|
},
|
|
587
880
|
"hasDynamicHelp": false,
|
|
@@ -600,79 +893,7 @@
|
|
|
600
893
|
"content",
|
|
601
894
|
"update.js"
|
|
602
895
|
]
|
|
603
|
-
},
|
|
604
|
-
"conni:space:get": {
|
|
605
|
-
"aliases": [],
|
|
606
|
-
"args": {
|
|
607
|
-
"spaceKey": {
|
|
608
|
-
"description": "Space key",
|
|
609
|
-
"name": "spaceKey",
|
|
610
|
-
"required": true
|
|
611
|
-
}
|
|
612
|
-
},
|
|
613
|
-
"description": "Get details of a Confluence space",
|
|
614
|
-
"examples": [
|
|
615
|
-
"<%= config.bin %> <%= command.id %> DEV"
|
|
616
|
-
],
|
|
617
|
-
"flags": {
|
|
618
|
-
"toon": {
|
|
619
|
-
"description": "Format output as toon",
|
|
620
|
-
"name": "toon",
|
|
621
|
-
"required": false,
|
|
622
|
-
"allowNo": false,
|
|
623
|
-
"type": "boolean"
|
|
624
|
-
}
|
|
625
|
-
},
|
|
626
|
-
"hasDynamicHelp": false,
|
|
627
|
-
"hiddenAliases": [],
|
|
628
|
-
"id": "conni:space:get",
|
|
629
|
-
"pluginAlias": "@hesed/conni",
|
|
630
|
-
"pluginName": "@hesed/conni",
|
|
631
|
-
"pluginType": "core",
|
|
632
|
-
"strict": true,
|
|
633
|
-
"enableJsonFlag": false,
|
|
634
|
-
"isESM": true,
|
|
635
|
-
"relativePath": [
|
|
636
|
-
"dist",
|
|
637
|
-
"commands",
|
|
638
|
-
"conni",
|
|
639
|
-
"space",
|
|
640
|
-
"get.js"
|
|
641
|
-
]
|
|
642
|
-
},
|
|
643
|
-
"conni:space:list": {
|
|
644
|
-
"aliases": [],
|
|
645
|
-
"args": {},
|
|
646
|
-
"description": "List all Confluence spaces",
|
|
647
|
-
"examples": [
|
|
648
|
-
"<%= config.bin %> <%= command.id %>"
|
|
649
|
-
],
|
|
650
|
-
"flags": {
|
|
651
|
-
"toon": {
|
|
652
|
-
"description": "Format output as toon",
|
|
653
|
-
"name": "toon",
|
|
654
|
-
"required": false,
|
|
655
|
-
"allowNo": false,
|
|
656
|
-
"type": "boolean"
|
|
657
|
-
}
|
|
658
|
-
},
|
|
659
|
-
"hasDynamicHelp": false,
|
|
660
|
-
"hiddenAliases": [],
|
|
661
|
-
"id": "conni:space:list",
|
|
662
|
-
"pluginAlias": "@hesed/conni",
|
|
663
|
-
"pluginName": "@hesed/conni",
|
|
664
|
-
"pluginType": "core",
|
|
665
|
-
"strict": true,
|
|
666
|
-
"enableJsonFlag": false,
|
|
667
|
-
"isESM": true,
|
|
668
|
-
"relativePath": [
|
|
669
|
-
"dist",
|
|
670
|
-
"commands",
|
|
671
|
-
"conni",
|
|
672
|
-
"space",
|
|
673
|
-
"list.js"
|
|
674
|
-
]
|
|
675
896
|
}
|
|
676
897
|
},
|
|
677
|
-
"version": "0.
|
|
898
|
+
"version": "0.6.0"
|
|
678
899
|
}
|