@fluid-app/v2025-06-cli-commands 0.1.7 → 0.1.9
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/.turbo/turbo-build.log +5 -7
- package/dist/index.mjs +666 -382
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/generated/company-contacts.ts +18 -22
- package/src/generated/compliance.ts +145 -105
- package/src/generated/customers.ts +13 -22
- package/src/generated/default.ts +4 -4
- package/src/generated/email-settings.ts +5 -5
- package/src/generated/enrollment-pack-media.ts +10 -4
- package/src/generated/fair-share-settings.ts +3 -3
- package/src/generated/index.ts +6 -0
- package/src/generated/lighthouse.ts +147 -107
- package/src/generated/media-enrollment-packs.ts +6 -4
- package/src/generated/media-products.ts +4 -4
- package/src/generated/orders.ts +63 -0
- package/src/generated/partner-tokens.ts +16 -24
- package/src/generated/playlists.ts +24 -29
- package/src/generated/product-media.ts +4 -4
- package/src/generated/reps.ts +95 -58
- package/src/generated/share-statistics.ts +16 -16
- package/src/generated/users-brand-guidelines.ts +25 -0
- package/src/generated/users-contacts.ts +84 -29
- package/src/generated/users-media.ts +13 -19
- package/src/generated/users-notes.ts +10 -16
- package/src/generated/users-playlists.ts +12 -16
- package/src/generated/users-products.ts +82 -0
- package/src/generated/users-tasks.ts +16 -19
- package/src/generated/widgets.ts +72 -88
|
@@ -6,13 +6,13 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
6
6
|
const resource = parent.command("compliance").description("Compliance");
|
|
7
7
|
|
|
8
8
|
resource
|
|
9
|
-
.command("get-latest-product
|
|
9
|
+
.command("get-latest-product <product-id>")
|
|
10
10
|
.description("Get latest compliance scan for a product")
|
|
11
|
-
.action(async (productId
|
|
11
|
+
.action(async (productId) => {
|
|
12
12
|
const client = await ctx.getClient();
|
|
13
13
|
if (ctx.verbose)
|
|
14
14
|
process.stderr.write(
|
|
15
|
-
|
|
15
|
+
"GET " + `/api/v202506/products/${productId}/compliance` + "\n",
|
|
16
16
|
);
|
|
17
17
|
const result = await client.get(
|
|
18
18
|
`/api/v202506/products/${productId}/compliance`,
|
|
@@ -21,7 +21,7 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
21
21
|
});
|
|
22
22
|
|
|
23
23
|
resource
|
|
24
|
-
.command("list-product
|
|
24
|
+
.command("list-product <product-id>")
|
|
25
25
|
.description("List all compliance scans for a product")
|
|
26
26
|
.option("--page <value>", "page")
|
|
27
27
|
.option("--per-page <value>", "per_page")
|
|
@@ -32,7 +32,7 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
32
32
|
if (opts.perPage !== undefined) params["per_page"] = Number(opts.perPage);
|
|
33
33
|
if (ctx.verbose)
|
|
34
34
|
process.stderr.write(
|
|
35
|
-
|
|
35
|
+
"GET " + `/api/v202506/products/${productId}/compliances` + "\n",
|
|
36
36
|
);
|
|
37
37
|
const result = await client.get(
|
|
38
38
|
`/api/v202506/products/${productId}/compliances`,
|
|
@@ -42,7 +42,7 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
42
42
|
});
|
|
43
43
|
|
|
44
44
|
resource
|
|
45
|
-
.command("create-product
|
|
45
|
+
.command("create-product <product-id>")
|
|
46
46
|
.description("Create a new compliance scan for a product")
|
|
47
47
|
.option("--body <json>", "Request body as JSON string")
|
|
48
48
|
.option("--body-file <path>", "Read request body from file")
|
|
@@ -57,7 +57,7 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
57
57
|
}
|
|
58
58
|
if (ctx.verbose)
|
|
59
59
|
process.stderr.write(
|
|
60
|
-
|
|
60
|
+
"POST " + `/api/v202506/products/${productId}/compliances` + "\n",
|
|
61
61
|
);
|
|
62
62
|
const result = await client.post(
|
|
63
63
|
`/api/v202506/products/${productId}/compliances`,
|
|
@@ -67,13 +67,15 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
67
67
|
});
|
|
68
68
|
|
|
69
69
|
resource
|
|
70
|
-
.command("get-product
|
|
70
|
+
.command("get-product <product-id> <id>")
|
|
71
71
|
.description("Get a specific compliance scan for a product")
|
|
72
|
-
.action(async (productId, id
|
|
72
|
+
.action(async (productId, id) => {
|
|
73
73
|
const client = await ctx.getClient();
|
|
74
74
|
if (ctx.verbose)
|
|
75
75
|
process.stderr.write(
|
|
76
|
-
|
|
76
|
+
"GET " +
|
|
77
|
+
`/api/v202506/products/${productId}/compliances/${id}` +
|
|
78
|
+
"\n",
|
|
77
79
|
);
|
|
78
80
|
const result = await client.get(
|
|
79
81
|
`/api/v202506/products/${productId}/compliances/${id}`,
|
|
@@ -82,7 +84,7 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
82
84
|
});
|
|
83
85
|
|
|
84
86
|
resource
|
|
85
|
-
.command("update-product
|
|
87
|
+
.command("update-product <product-id> <id>")
|
|
86
88
|
.description("Update a compliance scan for a product")
|
|
87
89
|
.option("--body <json>", "Request body as JSON string")
|
|
88
90
|
.option("--body-file <path>", "Read request body from file")
|
|
@@ -97,7 +99,9 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
97
99
|
}
|
|
98
100
|
if (ctx.verbose)
|
|
99
101
|
process.stderr.write(
|
|
100
|
-
|
|
102
|
+
"PATCH " +
|
|
103
|
+
`/api/v202506/products/${productId}/compliances/${id}` +
|
|
104
|
+
"\n",
|
|
101
105
|
);
|
|
102
106
|
const result = await client.patch(
|
|
103
107
|
`/api/v202506/products/${productId}/compliances/${id}`,
|
|
@@ -107,13 +111,15 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
107
111
|
});
|
|
108
112
|
|
|
109
113
|
resource
|
|
110
|
-
.command("delete-product
|
|
114
|
+
.command("delete-product <product-id> <id>")
|
|
111
115
|
.description("Delete a compliance scan for a product")
|
|
112
|
-
.action(async (productId, id
|
|
116
|
+
.action(async (productId, id) => {
|
|
113
117
|
const client = await ctx.getClient();
|
|
114
118
|
if (ctx.verbose)
|
|
115
119
|
process.stderr.write(
|
|
116
|
-
|
|
120
|
+
"DELETE " +
|
|
121
|
+
`/api/v202506/products/${productId}/compliances/${id}` +
|
|
122
|
+
"\n",
|
|
117
123
|
);
|
|
118
124
|
const result = await client.delete(
|
|
119
125
|
`/api/v202506/products/${productId}/compliances/${id}`,
|
|
@@ -122,13 +128,13 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
122
128
|
});
|
|
123
129
|
|
|
124
130
|
resource
|
|
125
|
-
.command("get-latest-media
|
|
131
|
+
.command("get-latest-media <medium-id>")
|
|
126
132
|
.description("Get latest compliance scan for media")
|
|
127
|
-
.action(async (mediumId
|
|
133
|
+
.action(async (mediumId) => {
|
|
128
134
|
const client = await ctx.getClient();
|
|
129
135
|
if (ctx.verbose)
|
|
130
136
|
process.stderr.write(
|
|
131
|
-
|
|
137
|
+
"GET " + `/api/v202506/media/${mediumId}/compliance` + "\n",
|
|
132
138
|
);
|
|
133
139
|
const result = await client.get(
|
|
134
140
|
`/api/v202506/media/${mediumId}/compliance`,
|
|
@@ -137,7 +143,7 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
137
143
|
});
|
|
138
144
|
|
|
139
145
|
resource
|
|
140
|
-
.command("list-media
|
|
146
|
+
.command("list-media <medium-id>")
|
|
141
147
|
.description("List all compliance scans for media")
|
|
142
148
|
.option("--page <value>", "page")
|
|
143
149
|
.option("--per-page <value>", "per_page")
|
|
@@ -148,7 +154,7 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
148
154
|
if (opts.perPage !== undefined) params["per_page"] = Number(opts.perPage);
|
|
149
155
|
if (ctx.verbose)
|
|
150
156
|
process.stderr.write(
|
|
151
|
-
|
|
157
|
+
"GET " + `/api/v202506/media/${mediumId}/compliances` + "\n",
|
|
152
158
|
);
|
|
153
159
|
const result = await client.get(
|
|
154
160
|
`/api/v202506/media/${mediumId}/compliances`,
|
|
@@ -158,7 +164,7 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
158
164
|
});
|
|
159
165
|
|
|
160
166
|
resource
|
|
161
|
-
.command("create-media
|
|
167
|
+
.command("create-media <medium-id>")
|
|
162
168
|
.description("Create a new compliance scan for media")
|
|
163
169
|
.option("--body <json>", "Request body as JSON string")
|
|
164
170
|
.option("--body-file <path>", "Read request body from file")
|
|
@@ -173,7 +179,7 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
173
179
|
}
|
|
174
180
|
if (ctx.verbose)
|
|
175
181
|
process.stderr.write(
|
|
176
|
-
|
|
182
|
+
"POST " + `/api/v202506/media/${mediumId}/compliances` + "\n",
|
|
177
183
|
);
|
|
178
184
|
const result = await client.post(
|
|
179
185
|
`/api/v202506/media/${mediumId}/compliances`,
|
|
@@ -183,13 +189,13 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
183
189
|
});
|
|
184
190
|
|
|
185
191
|
resource
|
|
186
|
-
.command("get-media
|
|
192
|
+
.command("get-media <medium-id> <id>")
|
|
187
193
|
.description("Get a specific compliance scan for media")
|
|
188
|
-
.action(async (mediumId, id
|
|
194
|
+
.action(async (mediumId, id) => {
|
|
189
195
|
const client = await ctx.getClient();
|
|
190
196
|
if (ctx.verbose)
|
|
191
197
|
process.stderr.write(
|
|
192
|
-
|
|
198
|
+
"GET " + `/api/v202506/media/${mediumId}/compliances/${id}` + "\n",
|
|
193
199
|
);
|
|
194
200
|
const result = await client.get(
|
|
195
201
|
`/api/v202506/media/${mediumId}/compliances/${id}`,
|
|
@@ -198,7 +204,7 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
198
204
|
});
|
|
199
205
|
|
|
200
206
|
resource
|
|
201
|
-
.command("update-media
|
|
207
|
+
.command("update-media <medium-id> <id>")
|
|
202
208
|
.description("Update a compliance scan for media")
|
|
203
209
|
.option("--body <json>", "Request body as JSON string")
|
|
204
210
|
.option("--body-file <path>", "Read request body from file")
|
|
@@ -213,7 +219,7 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
213
219
|
}
|
|
214
220
|
if (ctx.verbose)
|
|
215
221
|
process.stderr.write(
|
|
216
|
-
|
|
222
|
+
"PATCH " + `/api/v202506/media/${mediumId}/compliances/${id}` + "\n",
|
|
217
223
|
);
|
|
218
224
|
const result = await client.patch(
|
|
219
225
|
`/api/v202506/media/${mediumId}/compliances/${id}`,
|
|
@@ -223,13 +229,13 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
223
229
|
});
|
|
224
230
|
|
|
225
231
|
resource
|
|
226
|
-
.command("delete-media
|
|
232
|
+
.command("delete-media <medium-id> <id>")
|
|
227
233
|
.description("Delete a compliance scan for media")
|
|
228
|
-
.action(async (mediumId, id
|
|
234
|
+
.action(async (mediumId, id) => {
|
|
229
235
|
const client = await ctx.getClient();
|
|
230
236
|
if (ctx.verbose)
|
|
231
237
|
process.stderr.write(
|
|
232
|
-
|
|
238
|
+
"DELETE " + `/api/v202506/media/${mediumId}/compliances/${id}` + "\n",
|
|
233
239
|
);
|
|
234
240
|
const result = await client.delete(
|
|
235
241
|
`/api/v202506/media/${mediumId}/compliances/${id}`,
|
|
@@ -238,13 +244,13 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
238
244
|
});
|
|
239
245
|
|
|
240
246
|
resource
|
|
241
|
-
.command("get-latest-playlist
|
|
247
|
+
.command("get-latest-playlist <playlist-id>")
|
|
242
248
|
.description("Get latest compliance scan for a playlist")
|
|
243
|
-
.action(async (playlistId
|
|
249
|
+
.action(async (playlistId) => {
|
|
244
250
|
const client = await ctx.getClient();
|
|
245
251
|
if (ctx.verbose)
|
|
246
252
|
process.stderr.write(
|
|
247
|
-
|
|
253
|
+
"GET " + `/api/v202506/playlists/${playlistId}/compliance` + "\n",
|
|
248
254
|
);
|
|
249
255
|
const result = await client.get(
|
|
250
256
|
`/api/v202506/playlists/${playlistId}/compliance`,
|
|
@@ -253,7 +259,7 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
253
259
|
});
|
|
254
260
|
|
|
255
261
|
resource
|
|
256
|
-
.command("list-playlist
|
|
262
|
+
.command("list-playlist <playlist-id>")
|
|
257
263
|
.description("List all compliance scans for a playlist")
|
|
258
264
|
.option("--page <value>", "page")
|
|
259
265
|
.option("--per-page <value>", "per_page")
|
|
@@ -264,7 +270,7 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
264
270
|
if (opts.perPage !== undefined) params["per_page"] = Number(opts.perPage);
|
|
265
271
|
if (ctx.verbose)
|
|
266
272
|
process.stderr.write(
|
|
267
|
-
|
|
273
|
+
"GET " + `/api/v202506/playlists/${playlistId}/compliances` + "\n",
|
|
268
274
|
);
|
|
269
275
|
const result = await client.get(
|
|
270
276
|
`/api/v202506/playlists/${playlistId}/compliances`,
|
|
@@ -274,7 +280,7 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
274
280
|
});
|
|
275
281
|
|
|
276
282
|
resource
|
|
277
|
-
.command("create-playlist
|
|
283
|
+
.command("create-playlist <playlist-id>")
|
|
278
284
|
.description("Create a new compliance scan for a playlist")
|
|
279
285
|
.option("--body <json>", "Request body as JSON string")
|
|
280
286
|
.option("--body-file <path>", "Read request body from file")
|
|
@@ -289,7 +295,7 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
289
295
|
}
|
|
290
296
|
if (ctx.verbose)
|
|
291
297
|
process.stderr.write(
|
|
292
|
-
|
|
298
|
+
"POST " + `/api/v202506/playlists/${playlistId}/compliances` + "\n",
|
|
293
299
|
);
|
|
294
300
|
const result = await client.post(
|
|
295
301
|
`/api/v202506/playlists/${playlistId}/compliances`,
|
|
@@ -299,13 +305,15 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
299
305
|
});
|
|
300
306
|
|
|
301
307
|
resource
|
|
302
|
-
.command("get-playlist
|
|
308
|
+
.command("get-playlist <playlist-id> <id>")
|
|
303
309
|
.description("Get a specific compliance scan for a playlist")
|
|
304
|
-
.action(async (playlistId, id
|
|
310
|
+
.action(async (playlistId, id) => {
|
|
305
311
|
const client = await ctx.getClient();
|
|
306
312
|
if (ctx.verbose)
|
|
307
313
|
process.stderr.write(
|
|
308
|
-
|
|
314
|
+
"GET " +
|
|
315
|
+
`/api/v202506/playlists/${playlistId}/compliances/${id}` +
|
|
316
|
+
"\n",
|
|
309
317
|
);
|
|
310
318
|
const result = await client.get(
|
|
311
319
|
`/api/v202506/playlists/${playlistId}/compliances/${id}`,
|
|
@@ -314,7 +322,7 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
314
322
|
});
|
|
315
323
|
|
|
316
324
|
resource
|
|
317
|
-
.command("update-playlist
|
|
325
|
+
.command("update-playlist <playlist-id> <id>")
|
|
318
326
|
.description("Update a compliance scan for a playlist")
|
|
319
327
|
.option("--body <json>", "Request body as JSON string")
|
|
320
328
|
.option("--body-file <path>", "Read request body from file")
|
|
@@ -329,7 +337,9 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
329
337
|
}
|
|
330
338
|
if (ctx.verbose)
|
|
331
339
|
process.stderr.write(
|
|
332
|
-
|
|
340
|
+
"PATCH " +
|
|
341
|
+
`/api/v202506/playlists/${playlistId}/compliances/${id}` +
|
|
342
|
+
"\n",
|
|
333
343
|
);
|
|
334
344
|
const result = await client.patch(
|
|
335
345
|
`/api/v202506/playlists/${playlistId}/compliances/${id}`,
|
|
@@ -339,13 +349,15 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
339
349
|
});
|
|
340
350
|
|
|
341
351
|
resource
|
|
342
|
-
.command("delete-playlist
|
|
352
|
+
.command("delete-playlist <playlist-id> <id>")
|
|
343
353
|
.description("Delete a compliance scan for a playlist")
|
|
344
|
-
.action(async (playlistId, id
|
|
354
|
+
.action(async (playlistId, id) => {
|
|
345
355
|
const client = await ctx.getClient();
|
|
346
356
|
if (ctx.verbose)
|
|
347
357
|
process.stderr.write(
|
|
348
|
-
|
|
358
|
+
"DELETE " +
|
|
359
|
+
`/api/v202506/playlists/${playlistId}/compliances/${id}` +
|
|
360
|
+
"\n",
|
|
349
361
|
);
|
|
350
362
|
const result = await client.delete(
|
|
351
363
|
`/api/v202506/playlists/${playlistId}/compliances/${id}`,
|
|
@@ -354,13 +366,13 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
354
366
|
});
|
|
355
367
|
|
|
356
368
|
resource
|
|
357
|
-
.command("get-latest-category
|
|
369
|
+
.command("get-latest-category <category-id>")
|
|
358
370
|
.description("Get latest compliance scan for a category")
|
|
359
|
-
.action(async (categoryId
|
|
371
|
+
.action(async (categoryId) => {
|
|
360
372
|
const client = await ctx.getClient();
|
|
361
373
|
if (ctx.verbose)
|
|
362
374
|
process.stderr.write(
|
|
363
|
-
|
|
375
|
+
"GET " + `/api/v202506/categories/${categoryId}/compliance` + "\n",
|
|
364
376
|
);
|
|
365
377
|
const result = await client.get(
|
|
366
378
|
`/api/v202506/categories/${categoryId}/compliance`,
|
|
@@ -369,7 +381,7 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
369
381
|
});
|
|
370
382
|
|
|
371
383
|
resource
|
|
372
|
-
.command("list-category
|
|
384
|
+
.command("list-category <category-id>")
|
|
373
385
|
.description("List all compliance scans for a category")
|
|
374
386
|
.option("--page <value>", "page")
|
|
375
387
|
.option("--per-page <value>", "per_page")
|
|
@@ -380,7 +392,7 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
380
392
|
if (opts.perPage !== undefined) params["per_page"] = Number(opts.perPage);
|
|
381
393
|
if (ctx.verbose)
|
|
382
394
|
process.stderr.write(
|
|
383
|
-
|
|
395
|
+
"GET " + `/api/v202506/categories/${categoryId}/compliances` + "\n",
|
|
384
396
|
);
|
|
385
397
|
const result = await client.get(
|
|
386
398
|
`/api/v202506/categories/${categoryId}/compliances`,
|
|
@@ -390,7 +402,7 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
390
402
|
});
|
|
391
403
|
|
|
392
404
|
resource
|
|
393
|
-
.command("create-category
|
|
405
|
+
.command("create-category <category-id>")
|
|
394
406
|
.description("Create a new compliance scan for a category")
|
|
395
407
|
.option("--body <json>", "Request body as JSON string")
|
|
396
408
|
.option("--body-file <path>", "Read request body from file")
|
|
@@ -405,7 +417,7 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
405
417
|
}
|
|
406
418
|
if (ctx.verbose)
|
|
407
419
|
process.stderr.write(
|
|
408
|
-
|
|
420
|
+
"POST " + `/api/v202506/categories/${categoryId}/compliances` + "\n",
|
|
409
421
|
);
|
|
410
422
|
const result = await client.post(
|
|
411
423
|
`/api/v202506/categories/${categoryId}/compliances`,
|
|
@@ -415,13 +427,15 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
415
427
|
});
|
|
416
428
|
|
|
417
429
|
resource
|
|
418
|
-
.command("get-category
|
|
430
|
+
.command("get-category <category-id> <id>")
|
|
419
431
|
.description("Get a specific compliance scan for a category")
|
|
420
|
-
.action(async (categoryId, id
|
|
432
|
+
.action(async (categoryId, id) => {
|
|
421
433
|
const client = await ctx.getClient();
|
|
422
434
|
if (ctx.verbose)
|
|
423
435
|
process.stderr.write(
|
|
424
|
-
|
|
436
|
+
"GET " +
|
|
437
|
+
`/api/v202506/categories/${categoryId}/compliances/${id}` +
|
|
438
|
+
"\n",
|
|
425
439
|
);
|
|
426
440
|
const result = await client.get(
|
|
427
441
|
`/api/v202506/categories/${categoryId}/compliances/${id}`,
|
|
@@ -430,7 +444,7 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
430
444
|
});
|
|
431
445
|
|
|
432
446
|
resource
|
|
433
|
-
.command("update-category
|
|
447
|
+
.command("update-category <category-id> <id>")
|
|
434
448
|
.description("Update a compliance scan for a category")
|
|
435
449
|
.option("--body <json>", "Request body as JSON string")
|
|
436
450
|
.option("--body-file <path>", "Read request body from file")
|
|
@@ -445,7 +459,9 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
445
459
|
}
|
|
446
460
|
if (ctx.verbose)
|
|
447
461
|
process.stderr.write(
|
|
448
|
-
|
|
462
|
+
"PATCH " +
|
|
463
|
+
`/api/v202506/categories/${categoryId}/compliances/${id}` +
|
|
464
|
+
"\n",
|
|
449
465
|
);
|
|
450
466
|
const result = await client.patch(
|
|
451
467
|
`/api/v202506/categories/${categoryId}/compliances/${id}`,
|
|
@@ -455,13 +471,15 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
455
471
|
});
|
|
456
472
|
|
|
457
473
|
resource
|
|
458
|
-
.command("delete-category
|
|
474
|
+
.command("delete-category <category-id> <id>")
|
|
459
475
|
.description("Delete a compliance scan for a category")
|
|
460
|
-
.action(async (categoryId, id
|
|
476
|
+
.action(async (categoryId, id) => {
|
|
461
477
|
const client = await ctx.getClient();
|
|
462
478
|
if (ctx.verbose)
|
|
463
479
|
process.stderr.write(
|
|
464
|
-
|
|
480
|
+
"DELETE " +
|
|
481
|
+
`/api/v202506/categories/${categoryId}/compliances/${id}` +
|
|
482
|
+
"\n",
|
|
465
483
|
);
|
|
466
484
|
const result = await client.delete(
|
|
467
485
|
`/api/v202506/categories/${categoryId}/compliances/${id}`,
|
|
@@ -470,13 +488,13 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
470
488
|
});
|
|
471
489
|
|
|
472
490
|
resource
|
|
473
|
-
.command("get-latest-collection
|
|
491
|
+
.command("get-latest-collection <collection-id>")
|
|
474
492
|
.description("Get latest compliance scan for a collection")
|
|
475
|
-
.action(async (collectionId
|
|
493
|
+
.action(async (collectionId) => {
|
|
476
494
|
const client = await ctx.getClient();
|
|
477
495
|
if (ctx.verbose)
|
|
478
496
|
process.stderr.write(
|
|
479
|
-
|
|
497
|
+
"GET " + `/api/v202506/collections/${collectionId}/compliance` + "\n",
|
|
480
498
|
);
|
|
481
499
|
const result = await client.get(
|
|
482
500
|
`/api/v202506/collections/${collectionId}/compliance`,
|
|
@@ -485,7 +503,7 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
485
503
|
});
|
|
486
504
|
|
|
487
505
|
resource
|
|
488
|
-
.command("list-collection
|
|
506
|
+
.command("list-collection <collection-id>")
|
|
489
507
|
.description("List all compliance scans for a collection")
|
|
490
508
|
.option("--page <value>", "page")
|
|
491
509
|
.option("--per-page <value>", "per_page")
|
|
@@ -496,7 +514,9 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
496
514
|
if (opts.perPage !== undefined) params["per_page"] = Number(opts.perPage);
|
|
497
515
|
if (ctx.verbose)
|
|
498
516
|
process.stderr.write(
|
|
499
|
-
|
|
517
|
+
"GET " +
|
|
518
|
+
`/api/v202506/collections/${collectionId}/compliances` +
|
|
519
|
+
"\n",
|
|
500
520
|
);
|
|
501
521
|
const result = await client.get(
|
|
502
522
|
`/api/v202506/collections/${collectionId}/compliances`,
|
|
@@ -506,7 +526,7 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
506
526
|
});
|
|
507
527
|
|
|
508
528
|
resource
|
|
509
|
-
.command("create-collection
|
|
529
|
+
.command("create-collection <collection-id>")
|
|
510
530
|
.description("Create a new compliance scan for a collection")
|
|
511
531
|
.option("--body <json>", "Request body as JSON string")
|
|
512
532
|
.option("--body-file <path>", "Read request body from file")
|
|
@@ -521,7 +541,9 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
521
541
|
}
|
|
522
542
|
if (ctx.verbose)
|
|
523
543
|
process.stderr.write(
|
|
524
|
-
|
|
544
|
+
"POST " +
|
|
545
|
+
`/api/v202506/collections/${collectionId}/compliances` +
|
|
546
|
+
"\n",
|
|
525
547
|
);
|
|
526
548
|
const result = await client.post(
|
|
527
549
|
`/api/v202506/collections/${collectionId}/compliances`,
|
|
@@ -531,13 +553,15 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
531
553
|
});
|
|
532
554
|
|
|
533
555
|
resource
|
|
534
|
-
.command("get-collection
|
|
556
|
+
.command("get-collection <collection-id> <id>")
|
|
535
557
|
.description("Get a specific compliance scan for a collection")
|
|
536
|
-
.action(async (collectionId, id
|
|
558
|
+
.action(async (collectionId, id) => {
|
|
537
559
|
const client = await ctx.getClient();
|
|
538
560
|
if (ctx.verbose)
|
|
539
561
|
process.stderr.write(
|
|
540
|
-
|
|
562
|
+
"GET " +
|
|
563
|
+
`/api/v202506/collections/${collectionId}/compliances/${id}` +
|
|
564
|
+
"\n",
|
|
541
565
|
);
|
|
542
566
|
const result = await client.get(
|
|
543
567
|
`/api/v202506/collections/${collectionId}/compliances/${id}`,
|
|
@@ -546,7 +570,7 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
546
570
|
});
|
|
547
571
|
|
|
548
572
|
resource
|
|
549
|
-
.command("update-collection
|
|
573
|
+
.command("update-collection <collection-id> <id>")
|
|
550
574
|
.description("Update a compliance scan for a collection")
|
|
551
575
|
.option("--body <json>", "Request body as JSON string")
|
|
552
576
|
.option("--body-file <path>", "Read request body from file")
|
|
@@ -561,7 +585,9 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
561
585
|
}
|
|
562
586
|
if (ctx.verbose)
|
|
563
587
|
process.stderr.write(
|
|
564
|
-
|
|
588
|
+
"PATCH " +
|
|
589
|
+
`/api/v202506/collections/${collectionId}/compliances/${id}` +
|
|
590
|
+
"\n",
|
|
565
591
|
);
|
|
566
592
|
const result = await client.patch(
|
|
567
593
|
`/api/v202506/collections/${collectionId}/compliances/${id}`,
|
|
@@ -571,13 +597,15 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
571
597
|
});
|
|
572
598
|
|
|
573
599
|
resource
|
|
574
|
-
.command("delete-collection
|
|
600
|
+
.command("delete-collection <collection-id> <id>")
|
|
575
601
|
.description("Delete a compliance scan for a collection")
|
|
576
|
-
.action(async (collectionId, id
|
|
602
|
+
.action(async (collectionId, id) => {
|
|
577
603
|
const client = await ctx.getClient();
|
|
578
604
|
if (ctx.verbose)
|
|
579
605
|
process.stderr.write(
|
|
580
|
-
|
|
606
|
+
"DELETE " +
|
|
607
|
+
`/api/v202506/collections/${collectionId}/compliances/${id}` +
|
|
608
|
+
"\n",
|
|
581
609
|
);
|
|
582
610
|
const result = await client.delete(
|
|
583
611
|
`/api/v202506/collections/${collectionId}/compliances/${id}`,
|
|
@@ -586,13 +614,13 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
586
614
|
});
|
|
587
615
|
|
|
588
616
|
resource
|
|
589
|
-
.command("get-latest-post
|
|
617
|
+
.command("get-latest-post <post-id>")
|
|
590
618
|
.description("Get latest compliance scan for a post")
|
|
591
|
-
.action(async (postId
|
|
619
|
+
.action(async (postId) => {
|
|
592
620
|
const client = await ctx.getClient();
|
|
593
621
|
if (ctx.verbose)
|
|
594
622
|
process.stderr.write(
|
|
595
|
-
|
|
623
|
+
"GET " + `/api/v202506/posts/${postId}/compliance` + "\n",
|
|
596
624
|
);
|
|
597
625
|
const result = await client.get(
|
|
598
626
|
`/api/v202506/posts/${postId}/compliance`,
|
|
@@ -601,7 +629,7 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
601
629
|
});
|
|
602
630
|
|
|
603
631
|
resource
|
|
604
|
-
.command("list-post
|
|
632
|
+
.command("list-post <post-id>")
|
|
605
633
|
.description("List all compliance scans for a post")
|
|
606
634
|
.option("--page <value>", "page")
|
|
607
635
|
.option("--per-page <value>", "per_page")
|
|
@@ -612,7 +640,7 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
612
640
|
if (opts.perPage !== undefined) params["per_page"] = Number(opts.perPage);
|
|
613
641
|
if (ctx.verbose)
|
|
614
642
|
process.stderr.write(
|
|
615
|
-
|
|
643
|
+
"GET " + `/api/v202506/posts/${postId}/compliances` + "\n",
|
|
616
644
|
);
|
|
617
645
|
const result = await client.get(
|
|
618
646
|
`/api/v202506/posts/${postId}/compliances`,
|
|
@@ -622,7 +650,7 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
622
650
|
});
|
|
623
651
|
|
|
624
652
|
resource
|
|
625
|
-
.command("create-post
|
|
653
|
+
.command("create-post <post-id>")
|
|
626
654
|
.description("Create a new compliance scan for a post")
|
|
627
655
|
.option("--body <json>", "Request body as JSON string")
|
|
628
656
|
.option("--body-file <path>", "Read request body from file")
|
|
@@ -637,7 +665,7 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
637
665
|
}
|
|
638
666
|
if (ctx.verbose)
|
|
639
667
|
process.stderr.write(
|
|
640
|
-
|
|
668
|
+
"POST " + `/api/v202506/posts/${postId}/compliances` + "\n",
|
|
641
669
|
);
|
|
642
670
|
const result = await client.post(
|
|
643
671
|
`/api/v202506/posts/${postId}/compliances`,
|
|
@@ -647,13 +675,13 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
647
675
|
});
|
|
648
676
|
|
|
649
677
|
resource
|
|
650
|
-
.command("get-post
|
|
678
|
+
.command("get-post <post-id> <id>")
|
|
651
679
|
.description("Get a specific compliance scan for a post")
|
|
652
|
-
.action(async (postId, id
|
|
680
|
+
.action(async (postId, id) => {
|
|
653
681
|
const client = await ctx.getClient();
|
|
654
682
|
if (ctx.verbose)
|
|
655
683
|
process.stderr.write(
|
|
656
|
-
|
|
684
|
+
"GET " + `/api/v202506/posts/${postId}/compliances/${id}` + "\n",
|
|
657
685
|
);
|
|
658
686
|
const result = await client.get(
|
|
659
687
|
`/api/v202506/posts/${postId}/compliances/${id}`,
|
|
@@ -662,7 +690,7 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
662
690
|
});
|
|
663
691
|
|
|
664
692
|
resource
|
|
665
|
-
.command("update-post
|
|
693
|
+
.command("update-post <post-id> <id>")
|
|
666
694
|
.description("Update a compliance scan for a post")
|
|
667
695
|
.option("--body <json>", "Request body as JSON string")
|
|
668
696
|
.option("--body-file <path>", "Read request body from file")
|
|
@@ -677,7 +705,7 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
677
705
|
}
|
|
678
706
|
if (ctx.verbose)
|
|
679
707
|
process.stderr.write(
|
|
680
|
-
|
|
708
|
+
"PATCH " + `/api/v202506/posts/${postId}/compliances/${id}` + "\n",
|
|
681
709
|
);
|
|
682
710
|
const result = await client.patch(
|
|
683
711
|
`/api/v202506/posts/${postId}/compliances/${id}`,
|
|
@@ -687,13 +715,13 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
687
715
|
});
|
|
688
716
|
|
|
689
717
|
resource
|
|
690
|
-
.command("delete-post
|
|
718
|
+
.command("delete-post <post-id> <id>")
|
|
691
719
|
.description("Delete a compliance scan for a post")
|
|
692
|
-
.action(async (postId, id
|
|
720
|
+
.action(async (postId, id) => {
|
|
693
721
|
const client = await ctx.getClient();
|
|
694
722
|
if (ctx.verbose)
|
|
695
723
|
process.stderr.write(
|
|
696
|
-
|
|
724
|
+
"DELETE " + `/api/v202506/posts/${postId}/compliances/${id}` + "\n",
|
|
697
725
|
);
|
|
698
726
|
const result = await client.delete(
|
|
699
727
|
`/api/v202506/posts/${postId}/compliances/${id}`,
|
|
@@ -702,13 +730,15 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
702
730
|
});
|
|
703
731
|
|
|
704
732
|
resource
|
|
705
|
-
.command("get-latest-enrollment-pack
|
|
733
|
+
.command("get-latest-enrollment-pack <enrollment-pack-id>")
|
|
706
734
|
.description("Get latest compliance scan for an enrollment pack")
|
|
707
|
-
.action(async (enrollmentPackId
|
|
735
|
+
.action(async (enrollmentPackId) => {
|
|
708
736
|
const client = await ctx.getClient();
|
|
709
737
|
if (ctx.verbose)
|
|
710
738
|
process.stderr.write(
|
|
711
|
-
|
|
739
|
+
"GET " +
|
|
740
|
+
`/api/v202506/enrollment_packs/${enrollmentPackId}/compliance` +
|
|
741
|
+
"\n",
|
|
712
742
|
);
|
|
713
743
|
const result = await client.get(
|
|
714
744
|
`/api/v202506/enrollment_packs/${enrollmentPackId}/compliance`,
|
|
@@ -717,7 +747,7 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
717
747
|
});
|
|
718
748
|
|
|
719
749
|
resource
|
|
720
|
-
.command("list-enrollment-pack
|
|
750
|
+
.command("list-enrollment-pack <enrollment-pack-id>")
|
|
721
751
|
.description("List all compliance scans for an enrollment pack")
|
|
722
752
|
.option("--page <value>", "page")
|
|
723
753
|
.option("--per-page <value>", "per_page")
|
|
@@ -728,7 +758,9 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
728
758
|
if (opts.perPage !== undefined) params["per_page"] = Number(opts.perPage);
|
|
729
759
|
if (ctx.verbose)
|
|
730
760
|
process.stderr.write(
|
|
731
|
-
|
|
761
|
+
"GET " +
|
|
762
|
+
`/api/v202506/enrollment_packs/${enrollmentPackId}/compliances` +
|
|
763
|
+
"\n",
|
|
732
764
|
);
|
|
733
765
|
const result = await client.get(
|
|
734
766
|
`/api/v202506/enrollment_packs/${enrollmentPackId}/compliances`,
|
|
@@ -738,7 +770,7 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
738
770
|
});
|
|
739
771
|
|
|
740
772
|
resource
|
|
741
|
-
.command("create-enrollment-pack
|
|
773
|
+
.command("create-enrollment-pack <enrollment-pack-id>")
|
|
742
774
|
.description("Create a new compliance scan for an enrollment pack")
|
|
743
775
|
.option("--body <json>", "Request body as JSON string")
|
|
744
776
|
.option("--body-file <path>", "Read request body from file")
|
|
@@ -753,7 +785,9 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
753
785
|
}
|
|
754
786
|
if (ctx.verbose)
|
|
755
787
|
process.stderr.write(
|
|
756
|
-
|
|
788
|
+
"POST " +
|
|
789
|
+
`/api/v202506/enrollment_packs/${enrollmentPackId}/compliances` +
|
|
790
|
+
"\n",
|
|
757
791
|
);
|
|
758
792
|
const result = await client.post(
|
|
759
793
|
`/api/v202506/enrollment_packs/${enrollmentPackId}/compliances`,
|
|
@@ -763,13 +797,15 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
763
797
|
});
|
|
764
798
|
|
|
765
799
|
resource
|
|
766
|
-
.command("get-enrollment-pack
|
|
800
|
+
.command("get-enrollment-pack <enrollment-pack-id> <id>")
|
|
767
801
|
.description("Get a specific compliance scan for an enrollment pack")
|
|
768
|
-
.action(async (enrollmentPackId, id
|
|
802
|
+
.action(async (enrollmentPackId, id) => {
|
|
769
803
|
const client = await ctx.getClient();
|
|
770
804
|
if (ctx.verbose)
|
|
771
805
|
process.stderr.write(
|
|
772
|
-
|
|
806
|
+
"GET " +
|
|
807
|
+
`/api/v202506/enrollment_packs/${enrollmentPackId}/compliances/${id}` +
|
|
808
|
+
"\n",
|
|
773
809
|
);
|
|
774
810
|
const result = await client.get(
|
|
775
811
|
`/api/v202506/enrollment_packs/${enrollmentPackId}/compliances/${id}`,
|
|
@@ -778,7 +814,7 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
778
814
|
});
|
|
779
815
|
|
|
780
816
|
resource
|
|
781
|
-
.command("update-enrollment-pack
|
|
817
|
+
.command("update-enrollment-pack <enrollment-pack-id> <id>")
|
|
782
818
|
.description("Update a compliance scan for an enrollment pack")
|
|
783
819
|
.option("--body <json>", "Request body as JSON string")
|
|
784
820
|
.option("--body-file <path>", "Read request body from file")
|
|
@@ -793,7 +829,9 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
793
829
|
}
|
|
794
830
|
if (ctx.verbose)
|
|
795
831
|
process.stderr.write(
|
|
796
|
-
|
|
832
|
+
"PATCH " +
|
|
833
|
+
`/api/v202506/enrollment_packs/${enrollmentPackId}/compliances/${id}` +
|
|
834
|
+
"\n",
|
|
797
835
|
);
|
|
798
836
|
const result = await client.patch(
|
|
799
837
|
`/api/v202506/enrollment_packs/${enrollmentPackId}/compliances/${id}`,
|
|
@@ -803,13 +841,15 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
803
841
|
});
|
|
804
842
|
|
|
805
843
|
resource
|
|
806
|
-
.command("delete-enrollment-pack
|
|
844
|
+
.command("delete-enrollment-pack <enrollment-pack-id> <id>")
|
|
807
845
|
.description("Delete a compliance scan for an enrollment pack")
|
|
808
|
-
.action(async (enrollmentPackId, id
|
|
846
|
+
.action(async (enrollmentPackId, id) => {
|
|
809
847
|
const client = await ctx.getClient();
|
|
810
848
|
if (ctx.verbose)
|
|
811
849
|
process.stderr.write(
|
|
812
|
-
|
|
850
|
+
"DELETE " +
|
|
851
|
+
`/api/v202506/enrollment_packs/${enrollmentPackId}/compliances/${id}` +
|
|
852
|
+
"\n",
|
|
813
853
|
);
|
|
814
854
|
const result = await client.delete(
|
|
815
855
|
`/api/v202506/enrollment_packs/${enrollmentPackId}/compliances/${id}`,
|