@fluid-app/v2025-06-cli-commands 0.1.31 → 0.1.33
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/package.json +34 -6
- package/src/generated/company-contacts.ts +12 -29
- package/src/generated/compliance.ts +85 -355
- package/src/generated/customers.ts +10 -23
- package/src/generated/default.ts +4 -11
- package/src/generated/email-settings.ts +6 -19
- package/src/generated/enrollment-pack-media.ts +9 -36
- package/src/generated/fair-share-settings.ts +6 -19
- package/src/generated/index.ts +1 -4
- package/src/generated/lighthouse.ts +85 -355
- package/src/generated/media-enrollment-packs.ts +9 -32
- package/src/generated/media-products.ts +9 -30
- package/src/generated/orders.ts +6 -12
- package/src/generated/partner-tokens.ts +15 -47
- package/src/generated/playlists.ts +20 -58
- package/src/generated/product-media.ts +8 -27
- package/src/generated/reps.ts +49 -156
- package/src/generated/share-statistics.ts +16 -54
- package/src/generated/users-brand-guidelines.ts +4 -11
- package/src/generated/users-contacts.ts +36 -132
- package/src/generated/users-media.ts +9 -22
- package/src/generated/users-notes.ts +12 -31
- package/src/generated/users-playlists.ts +13 -35
- package/src/generated/users-products.ts +15 -41
- package/src/generated/users-tasks.ts +11 -31
- package/src/generated/widgets.ts +45 -120
- package/.turbo/turbo-build.log +0 -18
- package/.turbo/turbo-typecheck.log +0 -4
- package/dist/index.d.mts +0 -7
- package/dist/index.d.mts.map +0 -1
- package/dist/index.mjs.map +0 -1
|
@@ -10,13 +10,8 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
10
10
|
.description("Get latest compliance scan for a product")
|
|
11
11
|
.action(async (productId) => {
|
|
12
12
|
const client = await ctx.getClient();
|
|
13
|
-
if (ctx.verbose)
|
|
14
|
-
|
|
15
|
-
"GET " + `/api/v202506/products/${productId}/compliance` + "\n",
|
|
16
|
-
);
|
|
17
|
-
const result = await client.get(
|
|
18
|
-
`/api/v202506/products/${productId}/compliance`,
|
|
19
|
-
);
|
|
13
|
+
if (ctx.verbose) process.stderr.write("GET " + `/api/v202506/products/${productId}/compliance` + "\n");
|
|
14
|
+
const result = await client.get(`/api/v202506/products/${productId}/compliance`);
|
|
20
15
|
ctx.output(result);
|
|
21
16
|
});
|
|
22
17
|
|
|
@@ -30,14 +25,8 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
30
25
|
const params: Record<string, unknown> = {};
|
|
31
26
|
if (opts.page !== undefined) params["page"] = Number(opts.page);
|
|
32
27
|
if (opts.perPage !== undefined) params["per_page"] = Number(opts.perPage);
|
|
33
|
-
if (ctx.verbose)
|
|
34
|
-
|
|
35
|
-
"GET " + `/api/v202506/products/${productId}/compliances` + "\n",
|
|
36
|
-
);
|
|
37
|
-
const result = await client.get(
|
|
38
|
-
`/api/v202506/products/${productId}/compliances`,
|
|
39
|
-
params,
|
|
40
|
-
);
|
|
28
|
+
if (ctx.verbose) process.stderr.write("GET " + `/api/v202506/products/${productId}/compliances` + "\n");
|
|
29
|
+
const result = await client.get(`/api/v202506/products/${productId}/compliances`, params);
|
|
41
30
|
ctx.output(result);
|
|
42
31
|
});
|
|
43
32
|
|
|
@@ -55,14 +44,8 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
55
44
|
} else if (opts.body) {
|
|
56
45
|
body = ctx.parseBody(opts.body);
|
|
57
46
|
}
|
|
58
|
-
if (ctx.verbose)
|
|
59
|
-
|
|
60
|
-
"POST " + `/api/v202506/products/${productId}/compliances` + "\n",
|
|
61
|
-
);
|
|
62
|
-
const result = await client.post(
|
|
63
|
-
`/api/v202506/products/${productId}/compliances`,
|
|
64
|
-
body,
|
|
65
|
-
);
|
|
47
|
+
if (ctx.verbose) process.stderr.write("POST " + `/api/v202506/products/${productId}/compliances` + "\n");
|
|
48
|
+
const result = await client.post(`/api/v202506/products/${productId}/compliances`, body);
|
|
66
49
|
ctx.output(result);
|
|
67
50
|
});
|
|
68
51
|
|
|
@@ -71,15 +54,8 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
71
54
|
.description("Get a specific compliance scan for a product")
|
|
72
55
|
.action(async (productId, id) => {
|
|
73
56
|
const client = await ctx.getClient();
|
|
74
|
-
if (ctx.verbose)
|
|
75
|
-
|
|
76
|
-
"GET " +
|
|
77
|
-
`/api/v202506/products/${productId}/compliances/${id}` +
|
|
78
|
-
"\n",
|
|
79
|
-
);
|
|
80
|
-
const result = await client.get(
|
|
81
|
-
`/api/v202506/products/${productId}/compliances/${id}`,
|
|
82
|
-
);
|
|
57
|
+
if (ctx.verbose) process.stderr.write("GET " + `/api/v202506/products/${productId}/compliances/${id}` + "\n");
|
|
58
|
+
const result = await client.get(`/api/v202506/products/${productId}/compliances/${id}`);
|
|
83
59
|
ctx.output(result);
|
|
84
60
|
});
|
|
85
61
|
|
|
@@ -97,16 +73,8 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
97
73
|
} else if (opts.body) {
|
|
98
74
|
body = ctx.parseBody(opts.body);
|
|
99
75
|
}
|
|
100
|
-
if (ctx.verbose)
|
|
101
|
-
|
|
102
|
-
"PATCH " +
|
|
103
|
-
`/api/v202506/products/${productId}/compliances/${id}` +
|
|
104
|
-
"\n",
|
|
105
|
-
);
|
|
106
|
-
const result = await client.patch(
|
|
107
|
-
`/api/v202506/products/${productId}/compliances/${id}`,
|
|
108
|
-
body,
|
|
109
|
-
);
|
|
76
|
+
if (ctx.verbose) process.stderr.write("PATCH " + `/api/v202506/products/${productId}/compliances/${id}` + "\n");
|
|
77
|
+
const result = await client.patch(`/api/v202506/products/${productId}/compliances/${id}`, body);
|
|
110
78
|
ctx.output(result);
|
|
111
79
|
});
|
|
112
80
|
|
|
@@ -115,15 +83,8 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
115
83
|
.description("Delete a compliance scan for a product")
|
|
116
84
|
.action(async (productId, id) => {
|
|
117
85
|
const client = await ctx.getClient();
|
|
118
|
-
if (ctx.verbose)
|
|
119
|
-
|
|
120
|
-
"DELETE " +
|
|
121
|
-
`/api/v202506/products/${productId}/compliances/${id}` +
|
|
122
|
-
"\n",
|
|
123
|
-
);
|
|
124
|
-
const result = await client.delete(
|
|
125
|
-
`/api/v202506/products/${productId}/compliances/${id}`,
|
|
126
|
-
);
|
|
86
|
+
if (ctx.verbose) process.stderr.write("DELETE " + `/api/v202506/products/${productId}/compliances/${id}` + "\n");
|
|
87
|
+
const result = await client.delete(`/api/v202506/products/${productId}/compliances/${id}`);
|
|
127
88
|
ctx.output(result);
|
|
128
89
|
});
|
|
129
90
|
|
|
@@ -132,13 +93,8 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
132
93
|
.description("Get latest compliance scan for media")
|
|
133
94
|
.action(async (mediumId) => {
|
|
134
95
|
const client = await ctx.getClient();
|
|
135
|
-
if (ctx.verbose)
|
|
136
|
-
|
|
137
|
-
"GET " + `/api/v202506/media/${mediumId}/compliance` + "\n",
|
|
138
|
-
);
|
|
139
|
-
const result = await client.get(
|
|
140
|
-
`/api/v202506/media/${mediumId}/compliance`,
|
|
141
|
-
);
|
|
96
|
+
if (ctx.verbose) process.stderr.write("GET " + `/api/v202506/media/${mediumId}/compliance` + "\n");
|
|
97
|
+
const result = await client.get(`/api/v202506/media/${mediumId}/compliance`);
|
|
142
98
|
ctx.output(result);
|
|
143
99
|
});
|
|
144
100
|
|
|
@@ -152,14 +108,8 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
152
108
|
const params: Record<string, unknown> = {};
|
|
153
109
|
if (opts.page !== undefined) params["page"] = Number(opts.page);
|
|
154
110
|
if (opts.perPage !== undefined) params["per_page"] = Number(opts.perPage);
|
|
155
|
-
if (ctx.verbose)
|
|
156
|
-
|
|
157
|
-
"GET " + `/api/v202506/media/${mediumId}/compliances` + "\n",
|
|
158
|
-
);
|
|
159
|
-
const result = await client.get(
|
|
160
|
-
`/api/v202506/media/${mediumId}/compliances`,
|
|
161
|
-
params,
|
|
162
|
-
);
|
|
111
|
+
if (ctx.verbose) process.stderr.write("GET " + `/api/v202506/media/${mediumId}/compliances` + "\n");
|
|
112
|
+
const result = await client.get(`/api/v202506/media/${mediumId}/compliances`, params);
|
|
163
113
|
ctx.output(result);
|
|
164
114
|
});
|
|
165
115
|
|
|
@@ -177,14 +127,8 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
177
127
|
} else if (opts.body) {
|
|
178
128
|
body = ctx.parseBody(opts.body);
|
|
179
129
|
}
|
|
180
|
-
if (ctx.verbose)
|
|
181
|
-
|
|
182
|
-
"POST " + `/api/v202506/media/${mediumId}/compliances` + "\n",
|
|
183
|
-
);
|
|
184
|
-
const result = await client.post(
|
|
185
|
-
`/api/v202506/media/${mediumId}/compliances`,
|
|
186
|
-
body,
|
|
187
|
-
);
|
|
130
|
+
if (ctx.verbose) process.stderr.write("POST " + `/api/v202506/media/${mediumId}/compliances` + "\n");
|
|
131
|
+
const result = await client.post(`/api/v202506/media/${mediumId}/compliances`, body);
|
|
188
132
|
ctx.output(result);
|
|
189
133
|
});
|
|
190
134
|
|
|
@@ -193,13 +137,8 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
193
137
|
.description("Get a specific compliance scan for media")
|
|
194
138
|
.action(async (mediumId, id) => {
|
|
195
139
|
const client = await ctx.getClient();
|
|
196
|
-
if (ctx.verbose)
|
|
197
|
-
|
|
198
|
-
"GET " + `/api/v202506/media/${mediumId}/compliances/${id}` + "\n",
|
|
199
|
-
);
|
|
200
|
-
const result = await client.get(
|
|
201
|
-
`/api/v202506/media/${mediumId}/compliances/${id}`,
|
|
202
|
-
);
|
|
140
|
+
if (ctx.verbose) process.stderr.write("GET " + `/api/v202506/media/${mediumId}/compliances/${id}` + "\n");
|
|
141
|
+
const result = await client.get(`/api/v202506/media/${mediumId}/compliances/${id}`);
|
|
203
142
|
ctx.output(result);
|
|
204
143
|
});
|
|
205
144
|
|
|
@@ -217,14 +156,8 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
217
156
|
} else if (opts.body) {
|
|
218
157
|
body = ctx.parseBody(opts.body);
|
|
219
158
|
}
|
|
220
|
-
if (ctx.verbose)
|
|
221
|
-
|
|
222
|
-
"PATCH " + `/api/v202506/media/${mediumId}/compliances/${id}` + "\n",
|
|
223
|
-
);
|
|
224
|
-
const result = await client.patch(
|
|
225
|
-
`/api/v202506/media/${mediumId}/compliances/${id}`,
|
|
226
|
-
body,
|
|
227
|
-
);
|
|
159
|
+
if (ctx.verbose) process.stderr.write("PATCH " + `/api/v202506/media/${mediumId}/compliances/${id}` + "\n");
|
|
160
|
+
const result = await client.patch(`/api/v202506/media/${mediumId}/compliances/${id}`, body);
|
|
228
161
|
ctx.output(result);
|
|
229
162
|
});
|
|
230
163
|
|
|
@@ -233,13 +166,8 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
233
166
|
.description("Delete a compliance scan for media")
|
|
234
167
|
.action(async (mediumId, id) => {
|
|
235
168
|
const client = await ctx.getClient();
|
|
236
|
-
if (ctx.verbose)
|
|
237
|
-
|
|
238
|
-
"DELETE " + `/api/v202506/media/${mediumId}/compliances/${id}` + "\n",
|
|
239
|
-
);
|
|
240
|
-
const result = await client.delete(
|
|
241
|
-
`/api/v202506/media/${mediumId}/compliances/${id}`,
|
|
242
|
-
);
|
|
169
|
+
if (ctx.verbose) process.stderr.write("DELETE " + `/api/v202506/media/${mediumId}/compliances/${id}` + "\n");
|
|
170
|
+
const result = await client.delete(`/api/v202506/media/${mediumId}/compliances/${id}`);
|
|
243
171
|
ctx.output(result);
|
|
244
172
|
});
|
|
245
173
|
|
|
@@ -248,13 +176,8 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
248
176
|
.description("Get latest compliance scan for a playlist")
|
|
249
177
|
.action(async (playlistId) => {
|
|
250
178
|
const client = await ctx.getClient();
|
|
251
|
-
if (ctx.verbose)
|
|
252
|
-
|
|
253
|
-
"GET " + `/api/v202506/playlists/${playlistId}/compliance` + "\n",
|
|
254
|
-
);
|
|
255
|
-
const result = await client.get(
|
|
256
|
-
`/api/v202506/playlists/${playlistId}/compliance`,
|
|
257
|
-
);
|
|
179
|
+
if (ctx.verbose) process.stderr.write("GET " + `/api/v202506/playlists/${playlistId}/compliance` + "\n");
|
|
180
|
+
const result = await client.get(`/api/v202506/playlists/${playlistId}/compliance`);
|
|
258
181
|
ctx.output(result);
|
|
259
182
|
});
|
|
260
183
|
|
|
@@ -268,14 +191,8 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
268
191
|
const params: Record<string, unknown> = {};
|
|
269
192
|
if (opts.page !== undefined) params["page"] = Number(opts.page);
|
|
270
193
|
if (opts.perPage !== undefined) params["per_page"] = Number(opts.perPage);
|
|
271
|
-
if (ctx.verbose)
|
|
272
|
-
|
|
273
|
-
"GET " + `/api/v202506/playlists/${playlistId}/compliances` + "\n",
|
|
274
|
-
);
|
|
275
|
-
const result = await client.get(
|
|
276
|
-
`/api/v202506/playlists/${playlistId}/compliances`,
|
|
277
|
-
params,
|
|
278
|
-
);
|
|
194
|
+
if (ctx.verbose) process.stderr.write("GET " + `/api/v202506/playlists/${playlistId}/compliances` + "\n");
|
|
195
|
+
const result = await client.get(`/api/v202506/playlists/${playlistId}/compliances`, params);
|
|
279
196
|
ctx.output(result);
|
|
280
197
|
});
|
|
281
198
|
|
|
@@ -293,14 +210,8 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
293
210
|
} else if (opts.body) {
|
|
294
211
|
body = ctx.parseBody(opts.body);
|
|
295
212
|
}
|
|
296
|
-
if (ctx.verbose)
|
|
297
|
-
|
|
298
|
-
"POST " + `/api/v202506/playlists/${playlistId}/compliances` + "\n",
|
|
299
|
-
);
|
|
300
|
-
const result = await client.post(
|
|
301
|
-
`/api/v202506/playlists/${playlistId}/compliances`,
|
|
302
|
-
body,
|
|
303
|
-
);
|
|
213
|
+
if (ctx.verbose) process.stderr.write("POST " + `/api/v202506/playlists/${playlistId}/compliances` + "\n");
|
|
214
|
+
const result = await client.post(`/api/v202506/playlists/${playlistId}/compliances`, body);
|
|
304
215
|
ctx.output(result);
|
|
305
216
|
});
|
|
306
217
|
|
|
@@ -309,15 +220,8 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
309
220
|
.description("Get a specific compliance scan for a playlist")
|
|
310
221
|
.action(async (playlistId, id) => {
|
|
311
222
|
const client = await ctx.getClient();
|
|
312
|
-
if (ctx.verbose)
|
|
313
|
-
|
|
314
|
-
"GET " +
|
|
315
|
-
`/api/v202506/playlists/${playlistId}/compliances/${id}` +
|
|
316
|
-
"\n",
|
|
317
|
-
);
|
|
318
|
-
const result = await client.get(
|
|
319
|
-
`/api/v202506/playlists/${playlistId}/compliances/${id}`,
|
|
320
|
-
);
|
|
223
|
+
if (ctx.verbose) process.stderr.write("GET " + `/api/v202506/playlists/${playlistId}/compliances/${id}` + "\n");
|
|
224
|
+
const result = await client.get(`/api/v202506/playlists/${playlistId}/compliances/${id}`);
|
|
321
225
|
ctx.output(result);
|
|
322
226
|
});
|
|
323
227
|
|
|
@@ -335,16 +239,8 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
335
239
|
} else if (opts.body) {
|
|
336
240
|
body = ctx.parseBody(opts.body);
|
|
337
241
|
}
|
|
338
|
-
if (ctx.verbose)
|
|
339
|
-
|
|
340
|
-
"PATCH " +
|
|
341
|
-
`/api/v202506/playlists/${playlistId}/compliances/${id}` +
|
|
342
|
-
"\n",
|
|
343
|
-
);
|
|
344
|
-
const result = await client.patch(
|
|
345
|
-
`/api/v202506/playlists/${playlistId}/compliances/${id}`,
|
|
346
|
-
body,
|
|
347
|
-
);
|
|
242
|
+
if (ctx.verbose) process.stderr.write("PATCH " + `/api/v202506/playlists/${playlistId}/compliances/${id}` + "\n");
|
|
243
|
+
const result = await client.patch(`/api/v202506/playlists/${playlistId}/compliances/${id}`, body);
|
|
348
244
|
ctx.output(result);
|
|
349
245
|
});
|
|
350
246
|
|
|
@@ -353,15 +249,8 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
353
249
|
.description("Delete a compliance scan for a playlist")
|
|
354
250
|
.action(async (playlistId, id) => {
|
|
355
251
|
const client = await ctx.getClient();
|
|
356
|
-
if (ctx.verbose)
|
|
357
|
-
|
|
358
|
-
"DELETE " +
|
|
359
|
-
`/api/v202506/playlists/${playlistId}/compliances/${id}` +
|
|
360
|
-
"\n",
|
|
361
|
-
);
|
|
362
|
-
const result = await client.delete(
|
|
363
|
-
`/api/v202506/playlists/${playlistId}/compliances/${id}`,
|
|
364
|
-
);
|
|
252
|
+
if (ctx.verbose) process.stderr.write("DELETE " + `/api/v202506/playlists/${playlistId}/compliances/${id}` + "\n");
|
|
253
|
+
const result = await client.delete(`/api/v202506/playlists/${playlistId}/compliances/${id}`);
|
|
365
254
|
ctx.output(result);
|
|
366
255
|
});
|
|
367
256
|
|
|
@@ -370,13 +259,8 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
370
259
|
.description("Get latest compliance scan for a category")
|
|
371
260
|
.action(async (categoryId) => {
|
|
372
261
|
const client = await ctx.getClient();
|
|
373
|
-
if (ctx.verbose)
|
|
374
|
-
|
|
375
|
-
"GET " + `/api/v202506/categories/${categoryId}/compliance` + "\n",
|
|
376
|
-
);
|
|
377
|
-
const result = await client.get(
|
|
378
|
-
`/api/v202506/categories/${categoryId}/compliance`,
|
|
379
|
-
);
|
|
262
|
+
if (ctx.verbose) process.stderr.write("GET " + `/api/v202506/categories/${categoryId}/compliance` + "\n");
|
|
263
|
+
const result = await client.get(`/api/v202506/categories/${categoryId}/compliance`);
|
|
380
264
|
ctx.output(result);
|
|
381
265
|
});
|
|
382
266
|
|
|
@@ -390,14 +274,8 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
390
274
|
const params: Record<string, unknown> = {};
|
|
391
275
|
if (opts.page !== undefined) params["page"] = Number(opts.page);
|
|
392
276
|
if (opts.perPage !== undefined) params["per_page"] = Number(opts.perPage);
|
|
393
|
-
if (ctx.verbose)
|
|
394
|
-
|
|
395
|
-
"GET " + `/api/v202506/categories/${categoryId}/compliances` + "\n",
|
|
396
|
-
);
|
|
397
|
-
const result = await client.get(
|
|
398
|
-
`/api/v202506/categories/${categoryId}/compliances`,
|
|
399
|
-
params,
|
|
400
|
-
);
|
|
277
|
+
if (ctx.verbose) process.stderr.write("GET " + `/api/v202506/categories/${categoryId}/compliances` + "\n");
|
|
278
|
+
const result = await client.get(`/api/v202506/categories/${categoryId}/compliances`, params);
|
|
401
279
|
ctx.output(result);
|
|
402
280
|
});
|
|
403
281
|
|
|
@@ -415,14 +293,8 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
415
293
|
} else if (opts.body) {
|
|
416
294
|
body = ctx.parseBody(opts.body);
|
|
417
295
|
}
|
|
418
|
-
if (ctx.verbose)
|
|
419
|
-
|
|
420
|
-
"POST " + `/api/v202506/categories/${categoryId}/compliances` + "\n",
|
|
421
|
-
);
|
|
422
|
-
const result = await client.post(
|
|
423
|
-
`/api/v202506/categories/${categoryId}/compliances`,
|
|
424
|
-
body,
|
|
425
|
-
);
|
|
296
|
+
if (ctx.verbose) process.stderr.write("POST " + `/api/v202506/categories/${categoryId}/compliances` + "\n");
|
|
297
|
+
const result = await client.post(`/api/v202506/categories/${categoryId}/compliances`, body);
|
|
426
298
|
ctx.output(result);
|
|
427
299
|
});
|
|
428
300
|
|
|
@@ -431,15 +303,8 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
431
303
|
.description("Get a specific compliance scan for a category")
|
|
432
304
|
.action(async (categoryId, id) => {
|
|
433
305
|
const client = await ctx.getClient();
|
|
434
|
-
if (ctx.verbose)
|
|
435
|
-
|
|
436
|
-
"GET " +
|
|
437
|
-
`/api/v202506/categories/${categoryId}/compliances/${id}` +
|
|
438
|
-
"\n",
|
|
439
|
-
);
|
|
440
|
-
const result = await client.get(
|
|
441
|
-
`/api/v202506/categories/${categoryId}/compliances/${id}`,
|
|
442
|
-
);
|
|
306
|
+
if (ctx.verbose) process.stderr.write("GET " + `/api/v202506/categories/${categoryId}/compliances/${id}` + "\n");
|
|
307
|
+
const result = await client.get(`/api/v202506/categories/${categoryId}/compliances/${id}`);
|
|
443
308
|
ctx.output(result);
|
|
444
309
|
});
|
|
445
310
|
|
|
@@ -457,16 +322,8 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
457
322
|
} else if (opts.body) {
|
|
458
323
|
body = ctx.parseBody(opts.body);
|
|
459
324
|
}
|
|
460
|
-
if (ctx.verbose)
|
|
461
|
-
|
|
462
|
-
"PATCH " +
|
|
463
|
-
`/api/v202506/categories/${categoryId}/compliances/${id}` +
|
|
464
|
-
"\n",
|
|
465
|
-
);
|
|
466
|
-
const result = await client.patch(
|
|
467
|
-
`/api/v202506/categories/${categoryId}/compliances/${id}`,
|
|
468
|
-
body,
|
|
469
|
-
);
|
|
325
|
+
if (ctx.verbose) process.stderr.write("PATCH " + `/api/v202506/categories/${categoryId}/compliances/${id}` + "\n");
|
|
326
|
+
const result = await client.patch(`/api/v202506/categories/${categoryId}/compliances/${id}`, body);
|
|
470
327
|
ctx.output(result);
|
|
471
328
|
});
|
|
472
329
|
|
|
@@ -475,15 +332,8 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
475
332
|
.description("Delete a compliance scan for a category")
|
|
476
333
|
.action(async (categoryId, id) => {
|
|
477
334
|
const client = await ctx.getClient();
|
|
478
|
-
if (ctx.verbose)
|
|
479
|
-
|
|
480
|
-
"DELETE " +
|
|
481
|
-
`/api/v202506/categories/${categoryId}/compliances/${id}` +
|
|
482
|
-
"\n",
|
|
483
|
-
);
|
|
484
|
-
const result = await client.delete(
|
|
485
|
-
`/api/v202506/categories/${categoryId}/compliances/${id}`,
|
|
486
|
-
);
|
|
335
|
+
if (ctx.verbose) process.stderr.write("DELETE " + `/api/v202506/categories/${categoryId}/compliances/${id}` + "\n");
|
|
336
|
+
const result = await client.delete(`/api/v202506/categories/${categoryId}/compliances/${id}`);
|
|
487
337
|
ctx.output(result);
|
|
488
338
|
});
|
|
489
339
|
|
|
@@ -492,13 +342,8 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
492
342
|
.description("Get latest compliance scan for a collection")
|
|
493
343
|
.action(async (collectionId) => {
|
|
494
344
|
const client = await ctx.getClient();
|
|
495
|
-
if (ctx.verbose)
|
|
496
|
-
|
|
497
|
-
"GET " + `/api/v202506/collections/${collectionId}/compliance` + "\n",
|
|
498
|
-
);
|
|
499
|
-
const result = await client.get(
|
|
500
|
-
`/api/v202506/collections/${collectionId}/compliance`,
|
|
501
|
-
);
|
|
345
|
+
if (ctx.verbose) process.stderr.write("GET " + `/api/v202506/collections/${collectionId}/compliance` + "\n");
|
|
346
|
+
const result = await client.get(`/api/v202506/collections/${collectionId}/compliance`);
|
|
502
347
|
ctx.output(result);
|
|
503
348
|
});
|
|
504
349
|
|
|
@@ -512,16 +357,8 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
512
357
|
const params: Record<string, unknown> = {};
|
|
513
358
|
if (opts.page !== undefined) params["page"] = Number(opts.page);
|
|
514
359
|
if (opts.perPage !== undefined) params["per_page"] = Number(opts.perPage);
|
|
515
|
-
if (ctx.verbose)
|
|
516
|
-
|
|
517
|
-
"GET " +
|
|
518
|
-
`/api/v202506/collections/${collectionId}/compliances` +
|
|
519
|
-
"\n",
|
|
520
|
-
);
|
|
521
|
-
const result = await client.get(
|
|
522
|
-
`/api/v202506/collections/${collectionId}/compliances`,
|
|
523
|
-
params,
|
|
524
|
-
);
|
|
360
|
+
if (ctx.verbose) process.stderr.write("GET " + `/api/v202506/collections/${collectionId}/compliances` + "\n");
|
|
361
|
+
const result = await client.get(`/api/v202506/collections/${collectionId}/compliances`, params);
|
|
525
362
|
ctx.output(result);
|
|
526
363
|
});
|
|
527
364
|
|
|
@@ -539,16 +376,8 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
539
376
|
} else if (opts.body) {
|
|
540
377
|
body = ctx.parseBody(opts.body);
|
|
541
378
|
}
|
|
542
|
-
if (ctx.verbose)
|
|
543
|
-
|
|
544
|
-
"POST " +
|
|
545
|
-
`/api/v202506/collections/${collectionId}/compliances` +
|
|
546
|
-
"\n",
|
|
547
|
-
);
|
|
548
|
-
const result = await client.post(
|
|
549
|
-
`/api/v202506/collections/${collectionId}/compliances`,
|
|
550
|
-
body,
|
|
551
|
-
);
|
|
379
|
+
if (ctx.verbose) process.stderr.write("POST " + `/api/v202506/collections/${collectionId}/compliances` + "\n");
|
|
380
|
+
const result = await client.post(`/api/v202506/collections/${collectionId}/compliances`, body);
|
|
552
381
|
ctx.output(result);
|
|
553
382
|
});
|
|
554
383
|
|
|
@@ -557,15 +386,8 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
557
386
|
.description("Get a specific compliance scan for a collection")
|
|
558
387
|
.action(async (collectionId, id) => {
|
|
559
388
|
const client = await ctx.getClient();
|
|
560
|
-
if (ctx.verbose)
|
|
561
|
-
|
|
562
|
-
"GET " +
|
|
563
|
-
`/api/v202506/collections/${collectionId}/compliances/${id}` +
|
|
564
|
-
"\n",
|
|
565
|
-
);
|
|
566
|
-
const result = await client.get(
|
|
567
|
-
`/api/v202506/collections/${collectionId}/compliances/${id}`,
|
|
568
|
-
);
|
|
389
|
+
if (ctx.verbose) process.stderr.write("GET " + `/api/v202506/collections/${collectionId}/compliances/${id}` + "\n");
|
|
390
|
+
const result = await client.get(`/api/v202506/collections/${collectionId}/compliances/${id}`);
|
|
569
391
|
ctx.output(result);
|
|
570
392
|
});
|
|
571
393
|
|
|
@@ -583,16 +405,8 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
583
405
|
} else if (opts.body) {
|
|
584
406
|
body = ctx.parseBody(opts.body);
|
|
585
407
|
}
|
|
586
|
-
if (ctx.verbose)
|
|
587
|
-
|
|
588
|
-
"PATCH " +
|
|
589
|
-
`/api/v202506/collections/${collectionId}/compliances/${id}` +
|
|
590
|
-
"\n",
|
|
591
|
-
);
|
|
592
|
-
const result = await client.patch(
|
|
593
|
-
`/api/v202506/collections/${collectionId}/compliances/${id}`,
|
|
594
|
-
body,
|
|
595
|
-
);
|
|
408
|
+
if (ctx.verbose) process.stderr.write("PATCH " + `/api/v202506/collections/${collectionId}/compliances/${id}` + "\n");
|
|
409
|
+
const result = await client.patch(`/api/v202506/collections/${collectionId}/compliances/${id}`, body);
|
|
596
410
|
ctx.output(result);
|
|
597
411
|
});
|
|
598
412
|
|
|
@@ -601,15 +415,8 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
601
415
|
.description("Delete a compliance scan for a collection")
|
|
602
416
|
.action(async (collectionId, id) => {
|
|
603
417
|
const client = await ctx.getClient();
|
|
604
|
-
if (ctx.verbose)
|
|
605
|
-
|
|
606
|
-
"DELETE " +
|
|
607
|
-
`/api/v202506/collections/${collectionId}/compliances/${id}` +
|
|
608
|
-
"\n",
|
|
609
|
-
);
|
|
610
|
-
const result = await client.delete(
|
|
611
|
-
`/api/v202506/collections/${collectionId}/compliances/${id}`,
|
|
612
|
-
);
|
|
418
|
+
if (ctx.verbose) process.stderr.write("DELETE " + `/api/v202506/collections/${collectionId}/compliances/${id}` + "\n");
|
|
419
|
+
const result = await client.delete(`/api/v202506/collections/${collectionId}/compliances/${id}`);
|
|
613
420
|
ctx.output(result);
|
|
614
421
|
});
|
|
615
422
|
|
|
@@ -618,13 +425,8 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
618
425
|
.description("Get latest compliance scan for a post")
|
|
619
426
|
.action(async (postId) => {
|
|
620
427
|
const client = await ctx.getClient();
|
|
621
|
-
if (ctx.verbose)
|
|
622
|
-
|
|
623
|
-
"GET " + `/api/v202506/posts/${postId}/compliance` + "\n",
|
|
624
|
-
);
|
|
625
|
-
const result = await client.get(
|
|
626
|
-
`/api/v202506/posts/${postId}/compliance`,
|
|
627
|
-
);
|
|
428
|
+
if (ctx.verbose) process.stderr.write("GET " + `/api/v202506/posts/${postId}/compliance` + "\n");
|
|
429
|
+
const result = await client.get(`/api/v202506/posts/${postId}/compliance`);
|
|
628
430
|
ctx.output(result);
|
|
629
431
|
});
|
|
630
432
|
|
|
@@ -638,14 +440,8 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
638
440
|
const params: Record<string, unknown> = {};
|
|
639
441
|
if (opts.page !== undefined) params["page"] = Number(opts.page);
|
|
640
442
|
if (opts.perPage !== undefined) params["per_page"] = Number(opts.perPage);
|
|
641
|
-
if (ctx.verbose)
|
|
642
|
-
|
|
643
|
-
"GET " + `/api/v202506/posts/${postId}/compliances` + "\n",
|
|
644
|
-
);
|
|
645
|
-
const result = await client.get(
|
|
646
|
-
`/api/v202506/posts/${postId}/compliances`,
|
|
647
|
-
params,
|
|
648
|
-
);
|
|
443
|
+
if (ctx.verbose) process.stderr.write("GET " + `/api/v202506/posts/${postId}/compliances` + "\n");
|
|
444
|
+
const result = await client.get(`/api/v202506/posts/${postId}/compliances`, params);
|
|
649
445
|
ctx.output(result);
|
|
650
446
|
});
|
|
651
447
|
|
|
@@ -663,14 +459,8 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
663
459
|
} else if (opts.body) {
|
|
664
460
|
body = ctx.parseBody(opts.body);
|
|
665
461
|
}
|
|
666
|
-
if (ctx.verbose)
|
|
667
|
-
|
|
668
|
-
"POST " + `/api/v202506/posts/${postId}/compliances` + "\n",
|
|
669
|
-
);
|
|
670
|
-
const result = await client.post(
|
|
671
|
-
`/api/v202506/posts/${postId}/compliances`,
|
|
672
|
-
body,
|
|
673
|
-
);
|
|
462
|
+
if (ctx.verbose) process.stderr.write("POST " + `/api/v202506/posts/${postId}/compliances` + "\n");
|
|
463
|
+
const result = await client.post(`/api/v202506/posts/${postId}/compliances`, body);
|
|
674
464
|
ctx.output(result);
|
|
675
465
|
});
|
|
676
466
|
|
|
@@ -679,13 +469,8 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
679
469
|
.description("Get a specific compliance scan for a post")
|
|
680
470
|
.action(async (postId, id) => {
|
|
681
471
|
const client = await ctx.getClient();
|
|
682
|
-
if (ctx.verbose)
|
|
683
|
-
|
|
684
|
-
"GET " + `/api/v202506/posts/${postId}/compliances/${id}` + "\n",
|
|
685
|
-
);
|
|
686
|
-
const result = await client.get(
|
|
687
|
-
`/api/v202506/posts/${postId}/compliances/${id}`,
|
|
688
|
-
);
|
|
472
|
+
if (ctx.verbose) process.stderr.write("GET " + `/api/v202506/posts/${postId}/compliances/${id}` + "\n");
|
|
473
|
+
const result = await client.get(`/api/v202506/posts/${postId}/compliances/${id}`);
|
|
689
474
|
ctx.output(result);
|
|
690
475
|
});
|
|
691
476
|
|
|
@@ -703,14 +488,8 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
703
488
|
} else if (opts.body) {
|
|
704
489
|
body = ctx.parseBody(opts.body);
|
|
705
490
|
}
|
|
706
|
-
if (ctx.verbose)
|
|
707
|
-
|
|
708
|
-
"PATCH " + `/api/v202506/posts/${postId}/compliances/${id}` + "\n",
|
|
709
|
-
);
|
|
710
|
-
const result = await client.patch(
|
|
711
|
-
`/api/v202506/posts/${postId}/compliances/${id}`,
|
|
712
|
-
body,
|
|
713
|
-
);
|
|
491
|
+
if (ctx.verbose) process.stderr.write("PATCH " + `/api/v202506/posts/${postId}/compliances/${id}` + "\n");
|
|
492
|
+
const result = await client.patch(`/api/v202506/posts/${postId}/compliances/${id}`, body);
|
|
714
493
|
ctx.output(result);
|
|
715
494
|
});
|
|
716
495
|
|
|
@@ -719,13 +498,8 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
719
498
|
.description("Delete a compliance scan for a post")
|
|
720
499
|
.action(async (postId, id) => {
|
|
721
500
|
const client = await ctx.getClient();
|
|
722
|
-
if (ctx.verbose)
|
|
723
|
-
|
|
724
|
-
"DELETE " + `/api/v202506/posts/${postId}/compliances/${id}` + "\n",
|
|
725
|
-
);
|
|
726
|
-
const result = await client.delete(
|
|
727
|
-
`/api/v202506/posts/${postId}/compliances/${id}`,
|
|
728
|
-
);
|
|
501
|
+
if (ctx.verbose) process.stderr.write("DELETE " + `/api/v202506/posts/${postId}/compliances/${id}` + "\n");
|
|
502
|
+
const result = await client.delete(`/api/v202506/posts/${postId}/compliances/${id}`);
|
|
729
503
|
ctx.output(result);
|
|
730
504
|
});
|
|
731
505
|
|
|
@@ -734,15 +508,8 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
734
508
|
.description("Get latest compliance scan for an enrollment pack")
|
|
735
509
|
.action(async (enrollmentPackId) => {
|
|
736
510
|
const client = await ctx.getClient();
|
|
737
|
-
if (ctx.verbose)
|
|
738
|
-
|
|
739
|
-
"GET " +
|
|
740
|
-
`/api/v202506/enrollment_packs/${enrollmentPackId}/compliance` +
|
|
741
|
-
"\n",
|
|
742
|
-
);
|
|
743
|
-
const result = await client.get(
|
|
744
|
-
`/api/v202506/enrollment_packs/${enrollmentPackId}/compliance`,
|
|
745
|
-
);
|
|
511
|
+
if (ctx.verbose) process.stderr.write("GET " + `/api/v202506/enrollment_packs/${enrollmentPackId}/compliance` + "\n");
|
|
512
|
+
const result = await client.get(`/api/v202506/enrollment_packs/${enrollmentPackId}/compliance`);
|
|
746
513
|
ctx.output(result);
|
|
747
514
|
});
|
|
748
515
|
|
|
@@ -756,16 +523,8 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
756
523
|
const params: Record<string, unknown> = {};
|
|
757
524
|
if (opts.page !== undefined) params["page"] = Number(opts.page);
|
|
758
525
|
if (opts.perPage !== undefined) params["per_page"] = Number(opts.perPage);
|
|
759
|
-
if (ctx.verbose)
|
|
760
|
-
|
|
761
|
-
"GET " +
|
|
762
|
-
`/api/v202506/enrollment_packs/${enrollmentPackId}/compliances` +
|
|
763
|
-
"\n",
|
|
764
|
-
);
|
|
765
|
-
const result = await client.get(
|
|
766
|
-
`/api/v202506/enrollment_packs/${enrollmentPackId}/compliances`,
|
|
767
|
-
params,
|
|
768
|
-
);
|
|
526
|
+
if (ctx.verbose) process.stderr.write("GET " + `/api/v202506/enrollment_packs/${enrollmentPackId}/compliances` + "\n");
|
|
527
|
+
const result = await client.get(`/api/v202506/enrollment_packs/${enrollmentPackId}/compliances`, params);
|
|
769
528
|
ctx.output(result);
|
|
770
529
|
});
|
|
771
530
|
|
|
@@ -783,16 +542,8 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
783
542
|
} else if (opts.body) {
|
|
784
543
|
body = ctx.parseBody(opts.body);
|
|
785
544
|
}
|
|
786
|
-
if (ctx.verbose)
|
|
787
|
-
|
|
788
|
-
"POST " +
|
|
789
|
-
`/api/v202506/enrollment_packs/${enrollmentPackId}/compliances` +
|
|
790
|
-
"\n",
|
|
791
|
-
);
|
|
792
|
-
const result = await client.post(
|
|
793
|
-
`/api/v202506/enrollment_packs/${enrollmentPackId}/compliances`,
|
|
794
|
-
body,
|
|
795
|
-
);
|
|
545
|
+
if (ctx.verbose) process.stderr.write("POST " + `/api/v202506/enrollment_packs/${enrollmentPackId}/compliances` + "\n");
|
|
546
|
+
const result = await client.post(`/api/v202506/enrollment_packs/${enrollmentPackId}/compliances`, body);
|
|
796
547
|
ctx.output(result);
|
|
797
548
|
});
|
|
798
549
|
|
|
@@ -801,15 +552,8 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
801
552
|
.description("Get a specific compliance scan for an enrollment pack")
|
|
802
553
|
.action(async (enrollmentPackId, id) => {
|
|
803
554
|
const client = await ctx.getClient();
|
|
804
|
-
if (ctx.verbose)
|
|
805
|
-
|
|
806
|
-
"GET " +
|
|
807
|
-
`/api/v202506/enrollment_packs/${enrollmentPackId}/compliances/${id}` +
|
|
808
|
-
"\n",
|
|
809
|
-
);
|
|
810
|
-
const result = await client.get(
|
|
811
|
-
`/api/v202506/enrollment_packs/${enrollmentPackId}/compliances/${id}`,
|
|
812
|
-
);
|
|
555
|
+
if (ctx.verbose) process.stderr.write("GET " + `/api/v202506/enrollment_packs/${enrollmentPackId}/compliances/${id}` + "\n");
|
|
556
|
+
const result = await client.get(`/api/v202506/enrollment_packs/${enrollmentPackId}/compliances/${id}`);
|
|
813
557
|
ctx.output(result);
|
|
814
558
|
});
|
|
815
559
|
|
|
@@ -827,16 +571,8 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
827
571
|
} else if (opts.body) {
|
|
828
572
|
body = ctx.parseBody(opts.body);
|
|
829
573
|
}
|
|
830
|
-
if (ctx.verbose)
|
|
831
|
-
|
|
832
|
-
"PATCH " +
|
|
833
|
-
`/api/v202506/enrollment_packs/${enrollmentPackId}/compliances/${id}` +
|
|
834
|
-
"\n",
|
|
835
|
-
);
|
|
836
|
-
const result = await client.patch(
|
|
837
|
-
`/api/v202506/enrollment_packs/${enrollmentPackId}/compliances/${id}`,
|
|
838
|
-
body,
|
|
839
|
-
);
|
|
574
|
+
if (ctx.verbose) process.stderr.write("PATCH " + `/api/v202506/enrollment_packs/${enrollmentPackId}/compliances/${id}` + "\n");
|
|
575
|
+
const result = await client.patch(`/api/v202506/enrollment_packs/${enrollmentPackId}/compliances/${id}`, body);
|
|
840
576
|
ctx.output(result);
|
|
841
577
|
});
|
|
842
578
|
|
|
@@ -845,15 +581,9 @@ export function registerCompliance(parent: Command, ctx: CommandContext): void {
|
|
|
845
581
|
.description("Delete a compliance scan for an enrollment pack")
|
|
846
582
|
.action(async (enrollmentPackId, id) => {
|
|
847
583
|
const client = await ctx.getClient();
|
|
848
|
-
if (ctx.verbose)
|
|
849
|
-
|
|
850
|
-
"DELETE " +
|
|
851
|
-
`/api/v202506/enrollment_packs/${enrollmentPackId}/compliances/${id}` +
|
|
852
|
-
"\n",
|
|
853
|
-
);
|
|
854
|
-
const result = await client.delete(
|
|
855
|
-
`/api/v202506/enrollment_packs/${enrollmentPackId}/compliances/${id}`,
|
|
856
|
-
);
|
|
584
|
+
if (ctx.verbose) process.stderr.write("DELETE " + `/api/v202506/enrollment_packs/${enrollmentPackId}/compliances/${id}` + "\n");
|
|
585
|
+
const result = await client.delete(`/api/v202506/enrollment_packs/${enrollmentPackId}/compliances/${id}`);
|
|
857
586
|
ctx.output(result);
|
|
858
587
|
});
|
|
588
|
+
|
|
859
589
|
}
|