@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 registerUsersTasks(parent: Command, ctx: CommandContext): void {
|
|
|
10
10
|
.description("Toggle task completion")
|
|
11
11
|
.action(async (id) => {
|
|
12
12
|
const client = await ctx.getClient();
|
|
13
|
-
if (ctx.verbose)
|
|
14
|
-
|
|
15
|
-
"POST " + `/api/users/v2025-06/tasks/${id}/complete` + "\n",
|
|
16
|
-
);
|
|
17
|
-
const result = await client.post(
|
|
18
|
-
`/api/users/v2025-06/tasks/${id}/complete`,
|
|
19
|
-
);
|
|
13
|
+
if (ctx.verbose) process.stderr.write("POST " + `/api/users/v2025-06/tasks/${id}/complete` + "\n");
|
|
14
|
+
const result = await client.post(`/api/users/v2025-06/tasks/${id}/complete`);
|
|
20
15
|
ctx.output(result);
|
|
21
16
|
});
|
|
22
17
|
|
|
@@ -34,8 +29,7 @@ export function registerUsersTasks(parent: Command, ctx: CommandContext): void {
|
|
|
34
29
|
} else if (opts.body) {
|
|
35
30
|
body = ctx.parseBody(opts.body);
|
|
36
31
|
}
|
|
37
|
-
if (ctx.verbose)
|
|
38
|
-
process.stderr.write("POST " + `/api/users/v2025-06/tasks` + "\n");
|
|
32
|
+
if (ctx.verbose) process.stderr.write("POST " + `/api/users/v2025-06/tasks` + "\n");
|
|
39
33
|
const result = await client.post(`/api/users/v2025-06/tasks`, body);
|
|
40
34
|
ctx.output(result);
|
|
41
35
|
});
|
|
@@ -46,20 +40,15 @@ export function registerUsersTasks(parent: Command, ctx: CommandContext): void {
|
|
|
46
40
|
.option("--page <value>", "Page number")
|
|
47
41
|
.option("--per-page <value>", "Items per page (max 100)")
|
|
48
42
|
.option("--contact-id <value>", "Filter by contact ID")
|
|
49
|
-
.option(
|
|
50
|
-
"--status <value>",
|
|
51
|
-
"Filter by status (pending, completed, overdue)",
|
|
52
|
-
)
|
|
43
|
+
.option("--status <value>", "Filter by status (pending, completed, overdue)")
|
|
53
44
|
.action(async (opts) => {
|
|
54
45
|
const client = await ctx.getClient();
|
|
55
46
|
const params: Record<string, unknown> = {};
|
|
56
47
|
if (opts.page !== undefined) params["page"] = Number(opts.page);
|
|
57
48
|
if (opts.perPage !== undefined) params["per_page"] = Number(opts.perPage);
|
|
58
|
-
if (opts.contactId !== undefined)
|
|
59
|
-
params["contact_id"] = Number(opts.contactId);
|
|
49
|
+
if (opts.contactId !== undefined) params["contact_id"] = Number(opts.contactId);
|
|
60
50
|
if (opts.status !== undefined) params["status"] = opts.status;
|
|
61
|
-
if (ctx.verbose)
|
|
62
|
-
process.stderr.write("GET " + `/api/users/v2025-06/tasks` + "\n");
|
|
51
|
+
if (ctx.verbose) process.stderr.write("GET " + `/api/users/v2025-06/tasks` + "\n");
|
|
63
52
|
const result = await client.get(`/api/users/v2025-06/tasks`, params);
|
|
64
53
|
ctx.output(result);
|
|
65
54
|
});
|
|
@@ -69,10 +58,7 @@ export function registerUsersTasks(parent: Command, ctx: CommandContext): void {
|
|
|
69
58
|
.description("Delete a task")
|
|
70
59
|
.action(async (id) => {
|
|
71
60
|
const client = await ctx.getClient();
|
|
72
|
-
if (ctx.verbose)
|
|
73
|
-
process.stderr.write(
|
|
74
|
-
"DELETE " + `/api/users/v2025-06/tasks/${id}` + "\n",
|
|
75
|
-
);
|
|
61
|
+
if (ctx.verbose) process.stderr.write("DELETE " + `/api/users/v2025-06/tasks/${id}` + "\n");
|
|
76
62
|
const result = await client.delete(`/api/users/v2025-06/tasks/${id}`);
|
|
77
63
|
ctx.output(result);
|
|
78
64
|
});
|
|
@@ -82,8 +68,7 @@ export function registerUsersTasks(parent: Command, ctx: CommandContext): void {
|
|
|
82
68
|
.description("Get a task")
|
|
83
69
|
.action(async (id) => {
|
|
84
70
|
const client = await ctx.getClient();
|
|
85
|
-
if (ctx.verbose)
|
|
86
|
-
process.stderr.write("GET " + `/api/users/v2025-06/tasks/${id}` + "\n");
|
|
71
|
+
if (ctx.verbose) process.stderr.write("GET " + `/api/users/v2025-06/tasks/${id}` + "\n");
|
|
87
72
|
const result = await client.get(`/api/users/v2025-06/tasks/${id}`);
|
|
88
73
|
ctx.output(result);
|
|
89
74
|
});
|
|
@@ -102,14 +87,9 @@ export function registerUsersTasks(parent: Command, ctx: CommandContext): void {
|
|
|
102
87
|
} else if (opts.body) {
|
|
103
88
|
body = ctx.parseBody(opts.body);
|
|
104
89
|
}
|
|
105
|
-
if (ctx.verbose)
|
|
106
|
-
|
|
107
|
-
"PATCH " + `/api/users/v2025-06/tasks/${id}` + "\n",
|
|
108
|
-
);
|
|
109
|
-
const result = await client.patch(
|
|
110
|
-
`/api/users/v2025-06/tasks/${id}`,
|
|
111
|
-
body,
|
|
112
|
-
);
|
|
90
|
+
if (ctx.verbose) process.stderr.write("PATCH " + `/api/users/v2025-06/tasks/${id}` + "\n");
|
|
91
|
+
const result = await client.patch(`/api/users/v2025-06/tasks/${id}`, body);
|
|
113
92
|
ctx.output(result);
|
|
114
93
|
});
|
|
94
|
+
|
|
115
95
|
}
|
package/src/generated/widgets.ts
CHANGED
|
@@ -19,8 +19,7 @@ export function registerWidgets(parent: Command, ctx: CommandContext): void {
|
|
|
19
19
|
} else if (opts.body) {
|
|
20
20
|
body = ctx.parseBody(opts.body);
|
|
21
21
|
}
|
|
22
|
-
if (ctx.verbose)
|
|
23
|
-
process.stderr.write("POST " + `/api/v2025-06/widgets/banners` + "\n");
|
|
22
|
+
if (ctx.verbose) process.stderr.write("POST " + `/api/v2025-06/widgets/banners` + "\n");
|
|
24
23
|
const result = await client.post(`/api/v2025-06/widgets/banners`, body);
|
|
25
24
|
ctx.output(result);
|
|
26
25
|
});
|
|
@@ -38,21 +37,14 @@ export function registerWidgets(parent: Command, ctx: CommandContext): void {
|
|
|
38
37
|
.action(async (opts) => {
|
|
39
38
|
const client = await ctx.getClient();
|
|
40
39
|
const params: Record<string, unknown> = {};
|
|
41
|
-
if (opts.filterStatus !== undefined)
|
|
42
|
-
|
|
43
|
-
if (opts.
|
|
44
|
-
|
|
45
|
-
if (opts.
|
|
46
|
-
|
|
47
|
-
if (opts.filterName !== undefined)
|
|
48
|
-
params["filter[name]"] = opts.filterName;
|
|
49
|
-
if (opts.pageCursor !== undefined)
|
|
50
|
-
params["page[cursor]"] = opts.pageCursor;
|
|
51
|
-
if (opts.pageLimit !== undefined)
|
|
52
|
-
params["page[limit]"] = Number(opts.pageLimit);
|
|
40
|
+
if (opts.filterStatus !== undefined) params["filter[status]"] = opts.filterStatus;
|
|
41
|
+
if (opts.filterPlacement !== undefined) params["filter[placement]"] = opts.filterPlacement;
|
|
42
|
+
if (opts.filterBehavior !== undefined) params["filter[behavior]"] = opts.filterBehavior;
|
|
43
|
+
if (opts.filterName !== undefined) params["filter[name]"] = opts.filterName;
|
|
44
|
+
if (opts.pageCursor !== undefined) params["page[cursor]"] = opts.pageCursor;
|
|
45
|
+
if (opts.pageLimit !== undefined) params["page[limit]"] = Number(opts.pageLimit);
|
|
53
46
|
if (opts.sort !== undefined) params["sort"] = opts.sort;
|
|
54
|
-
if (ctx.verbose)
|
|
55
|
-
process.stderr.write("GET " + `/api/v2025-06/widgets/banners` + "\n");
|
|
47
|
+
if (ctx.verbose) process.stderr.write("GET " + `/api/v2025-06/widgets/banners` + "\n");
|
|
56
48
|
const result = await client.get(`/api/v2025-06/widgets/banners`, params);
|
|
57
49
|
ctx.output(result);
|
|
58
50
|
});
|
|
@@ -62,10 +54,7 @@ export function registerWidgets(parent: Command, ctx: CommandContext): void {
|
|
|
62
54
|
.description("Delete a banner widget")
|
|
63
55
|
.action(async (id) => {
|
|
64
56
|
const client = await ctx.getClient();
|
|
65
|
-
if (ctx.verbose)
|
|
66
|
-
process.stderr.write(
|
|
67
|
-
"DELETE " + `/api/v2025-06/widgets/banners/${id}` + "\n",
|
|
68
|
-
);
|
|
57
|
+
if (ctx.verbose) process.stderr.write("DELETE " + `/api/v2025-06/widgets/banners/${id}` + "\n");
|
|
69
58
|
const result = await client.delete(`/api/v2025-06/widgets/banners/${id}`);
|
|
70
59
|
ctx.output(result);
|
|
71
60
|
});
|
|
@@ -75,10 +64,7 @@ export function registerWidgets(parent: Command, ctx: CommandContext): void {
|
|
|
75
64
|
.description("Get a banner widget")
|
|
76
65
|
.action(async (id) => {
|
|
77
66
|
const client = await ctx.getClient();
|
|
78
|
-
if (ctx.verbose)
|
|
79
|
-
process.stderr.write(
|
|
80
|
-
"GET " + `/api/v2025-06/widgets/banners/${id}` + "\n",
|
|
81
|
-
);
|
|
67
|
+
if (ctx.verbose) process.stderr.write("GET " + `/api/v2025-06/widgets/banners/${id}` + "\n");
|
|
82
68
|
const result = await client.get(`/api/v2025-06/widgets/banners/${id}`);
|
|
83
69
|
ctx.output(result);
|
|
84
70
|
});
|
|
@@ -97,14 +83,8 @@ export function registerWidgets(parent: Command, ctx: CommandContext): void {
|
|
|
97
83
|
} else if (opts.body) {
|
|
98
84
|
body = ctx.parseBody(opts.body);
|
|
99
85
|
}
|
|
100
|
-
if (ctx.verbose)
|
|
101
|
-
|
|
102
|
-
"PATCH " + `/api/v2025-06/widgets/banners/${id}` + "\n",
|
|
103
|
-
);
|
|
104
|
-
const result = await client.patch(
|
|
105
|
-
`/api/v2025-06/widgets/banners/${id}`,
|
|
106
|
-
body,
|
|
107
|
-
);
|
|
86
|
+
if (ctx.verbose) process.stderr.write("PATCH " + `/api/v2025-06/widgets/banners/${id}` + "\n");
|
|
87
|
+
const result = await client.patch(`/api/v2025-06/widgets/banners/${id}`, body);
|
|
108
88
|
ctx.output(result);
|
|
109
89
|
});
|
|
110
90
|
|
|
@@ -122,8 +102,7 @@ export function registerWidgets(parent: Command, ctx: CommandContext): void {
|
|
|
122
102
|
} else if (opts.body) {
|
|
123
103
|
body = ctx.parseBody(opts.body);
|
|
124
104
|
}
|
|
125
|
-
if (ctx.verbose)
|
|
126
|
-
process.stderr.write("POST " + `/api/v2025-06/widgets/carts` + "\n");
|
|
105
|
+
if (ctx.verbose) process.stderr.write("POST " + `/api/v2025-06/widgets/carts` + "\n");
|
|
127
106
|
const result = await client.post(`/api/v2025-06/widgets/carts`, body);
|
|
128
107
|
ctx.output(result);
|
|
129
108
|
});
|
|
@@ -140,19 +119,13 @@ export function registerWidgets(parent: Command, ctx: CommandContext): void {
|
|
|
140
119
|
.action(async (opts) => {
|
|
141
120
|
const client = await ctx.getClient();
|
|
142
121
|
const params: Record<string, unknown> = {};
|
|
143
|
-
if (opts.filterStatus !== undefined)
|
|
144
|
-
|
|
145
|
-
if (opts.
|
|
146
|
-
|
|
147
|
-
if (opts.
|
|
148
|
-
params["filter[name]"] = opts.filterName;
|
|
149
|
-
if (opts.pageCursor !== undefined)
|
|
150
|
-
params["page[cursor]"] = opts.pageCursor;
|
|
151
|
-
if (opts.pageLimit !== undefined)
|
|
152
|
-
params["page[limit]"] = Number(opts.pageLimit);
|
|
122
|
+
if (opts.filterStatus !== undefined) params["filter[status]"] = opts.filterStatus;
|
|
123
|
+
if (opts.filterPlacement !== undefined) params["filter[placement]"] = opts.filterPlacement;
|
|
124
|
+
if (opts.filterName !== undefined) params["filter[name]"] = opts.filterName;
|
|
125
|
+
if (opts.pageCursor !== undefined) params["page[cursor]"] = opts.pageCursor;
|
|
126
|
+
if (opts.pageLimit !== undefined) params["page[limit]"] = Number(opts.pageLimit);
|
|
153
127
|
if (opts.sort !== undefined) params["sort"] = opts.sort;
|
|
154
|
-
if (ctx.verbose)
|
|
155
|
-
process.stderr.write("GET " + `/api/v2025-06/widgets/carts` + "\n");
|
|
128
|
+
if (ctx.verbose) process.stderr.write("GET " + `/api/v2025-06/widgets/carts` + "\n");
|
|
156
129
|
const result = await client.get(`/api/v2025-06/widgets/carts`, params);
|
|
157
130
|
ctx.output(result);
|
|
158
131
|
});
|
|
@@ -162,10 +135,7 @@ export function registerWidgets(parent: Command, ctx: CommandContext): void {
|
|
|
162
135
|
.description("Delete a cart widget")
|
|
163
136
|
.action(async (id) => {
|
|
164
137
|
const client = await ctx.getClient();
|
|
165
|
-
if (ctx.verbose)
|
|
166
|
-
process.stderr.write(
|
|
167
|
-
"DELETE " + `/api/v2025-06/widgets/carts/${id}` + "\n",
|
|
168
|
-
);
|
|
138
|
+
if (ctx.verbose) process.stderr.write("DELETE " + `/api/v2025-06/widgets/carts/${id}` + "\n");
|
|
169
139
|
const result = await client.delete(`/api/v2025-06/widgets/carts/${id}`);
|
|
170
140
|
ctx.output(result);
|
|
171
141
|
});
|
|
@@ -175,10 +145,7 @@ export function registerWidgets(parent: Command, ctx: CommandContext): void {
|
|
|
175
145
|
.description("Show a cart widget")
|
|
176
146
|
.action(async (id) => {
|
|
177
147
|
const client = await ctx.getClient();
|
|
178
|
-
if (ctx.verbose)
|
|
179
|
-
process.stderr.write(
|
|
180
|
-
"GET " + `/api/v2025-06/widgets/carts/${id}` + "\n",
|
|
181
|
-
);
|
|
148
|
+
if (ctx.verbose) process.stderr.write("GET " + `/api/v2025-06/widgets/carts/${id}` + "\n");
|
|
182
149
|
const result = await client.get(`/api/v2025-06/widgets/carts/${id}`);
|
|
183
150
|
ctx.output(result);
|
|
184
151
|
});
|
|
@@ -197,14 +164,8 @@ export function registerWidgets(parent: Command, ctx: CommandContext): void {
|
|
|
197
164
|
} else if (opts.body) {
|
|
198
165
|
body = ctx.parseBody(opts.body);
|
|
199
166
|
}
|
|
200
|
-
if (ctx.verbose)
|
|
201
|
-
|
|
202
|
-
"PUT " + `/api/v2025-06/widgets/carts/${id}` + "\n",
|
|
203
|
-
);
|
|
204
|
-
const result = await client.put(
|
|
205
|
-
`/api/v2025-06/widgets/carts/${id}`,
|
|
206
|
-
body,
|
|
207
|
-
);
|
|
167
|
+
if (ctx.verbose) process.stderr.write("PUT " + `/api/v2025-06/widgets/carts/${id}` + "\n");
|
|
168
|
+
const result = await client.put(`/api/v2025-06/widgets/carts/${id}`, body);
|
|
208
169
|
ctx.output(result);
|
|
209
170
|
});
|
|
210
171
|
|
|
@@ -222,8 +183,7 @@ export function registerWidgets(parent: Command, ctx: CommandContext): void {
|
|
|
222
183
|
} else if (opts.body) {
|
|
223
184
|
body = ctx.parseBody(opts.body);
|
|
224
185
|
}
|
|
225
|
-
if (ctx.verbose)
|
|
226
|
-
process.stderr.write("POST " + `/api/v2025-06/widgets/chats` + "\n");
|
|
186
|
+
if (ctx.verbose) process.stderr.write("POST " + `/api/v2025-06/widgets/chats` + "\n");
|
|
227
187
|
const result = await client.post(`/api/v2025-06/widgets/chats`, body);
|
|
228
188
|
ctx.output(result);
|
|
229
189
|
});
|
|
@@ -239,17 +199,12 @@ export function registerWidgets(parent: Command, ctx: CommandContext): void {
|
|
|
239
199
|
.action(async (opts) => {
|
|
240
200
|
const client = await ctx.getClient();
|
|
241
201
|
const params: Record<string, unknown> = {};
|
|
242
|
-
if (opts.filterStatus !== undefined)
|
|
243
|
-
|
|
244
|
-
if (opts.
|
|
245
|
-
|
|
246
|
-
if (opts.pageCursor !== undefined)
|
|
247
|
-
params["page[cursor]"] = opts.pageCursor;
|
|
248
|
-
if (opts.pageLimit !== undefined)
|
|
249
|
-
params["page[limit]"] = Number(opts.pageLimit);
|
|
202
|
+
if (opts.filterStatus !== undefined) params["filter[status]"] = opts.filterStatus;
|
|
203
|
+
if (opts.filterName !== undefined) params["filter[name]"] = opts.filterName;
|
|
204
|
+
if (opts.pageCursor !== undefined) params["page[cursor]"] = opts.pageCursor;
|
|
205
|
+
if (opts.pageLimit !== undefined) params["page[limit]"] = Number(opts.pageLimit);
|
|
250
206
|
if (opts.sort !== undefined) params["sort"] = opts.sort;
|
|
251
|
-
if (ctx.verbose)
|
|
252
|
-
process.stderr.write("GET " + `/api/v2025-06/widgets/chats` + "\n");
|
|
207
|
+
if (ctx.verbose) process.stderr.write("GET " + `/api/v2025-06/widgets/chats` + "\n");
|
|
253
208
|
const result = await client.get(`/api/v2025-06/widgets/chats`, params);
|
|
254
209
|
ctx.output(result);
|
|
255
210
|
});
|
|
@@ -259,10 +214,7 @@ export function registerWidgets(parent: Command, ctx: CommandContext): void {
|
|
|
259
214
|
.description("Delete a chat widget")
|
|
260
215
|
.action(async (id) => {
|
|
261
216
|
const client = await ctx.getClient();
|
|
262
|
-
if (ctx.verbose)
|
|
263
|
-
process.stderr.write(
|
|
264
|
-
"DELETE " + `/api/v2025-06/widgets/chats/${id}` + "\n",
|
|
265
|
-
);
|
|
217
|
+
if (ctx.verbose) process.stderr.write("DELETE " + `/api/v2025-06/widgets/chats/${id}` + "\n");
|
|
266
218
|
const result = await client.delete(`/api/v2025-06/widgets/chats/${id}`);
|
|
267
219
|
ctx.output(result);
|
|
268
220
|
});
|
|
@@ -272,10 +224,7 @@ export function registerWidgets(parent: Command, ctx: CommandContext): void {
|
|
|
272
224
|
.description("Show a chat widget")
|
|
273
225
|
.action(async (id) => {
|
|
274
226
|
const client = await ctx.getClient();
|
|
275
|
-
if (ctx.verbose)
|
|
276
|
-
process.stderr.write(
|
|
277
|
-
"GET " + `/api/v2025-06/widgets/chats/${id}` + "\n",
|
|
278
|
-
);
|
|
227
|
+
if (ctx.verbose) process.stderr.write("GET " + `/api/v2025-06/widgets/chats/${id}` + "\n");
|
|
279
228
|
const result = await client.get(`/api/v2025-06/widgets/chats/${id}`);
|
|
280
229
|
ctx.output(result);
|
|
281
230
|
});
|
|
@@ -294,14 +243,8 @@ export function registerWidgets(parent: Command, ctx: CommandContext): void {
|
|
|
294
243
|
} else if (opts.body) {
|
|
295
244
|
body = ctx.parseBody(opts.body);
|
|
296
245
|
}
|
|
297
|
-
if (ctx.verbose)
|
|
298
|
-
|
|
299
|
-
"PUT " + `/api/v2025-06/widgets/chats/${id}` + "\n",
|
|
300
|
-
);
|
|
301
|
-
const result = await client.put(
|
|
302
|
-
`/api/v2025-06/widgets/chats/${id}`,
|
|
303
|
-
body,
|
|
304
|
-
);
|
|
246
|
+
if (ctx.verbose) process.stderr.write("PUT " + `/api/v2025-06/widgets/chats/${id}` + "\n");
|
|
247
|
+
const result = await client.put(`/api/v2025-06/widgets/chats/${id}`, body);
|
|
305
248
|
ctx.output(result);
|
|
306
249
|
});
|
|
307
250
|
|
|
@@ -319,8 +262,7 @@ export function registerWidgets(parent: Command, ctx: CommandContext): void {
|
|
|
319
262
|
} else if (opts.body) {
|
|
320
263
|
body = ctx.parseBody(opts.body);
|
|
321
264
|
}
|
|
322
|
-
if (ctx.verbose)
|
|
323
|
-
process.stderr.write("POST " + `/api/v2025-06/widgets/popups` + "\n");
|
|
265
|
+
if (ctx.verbose) process.stderr.write("POST " + `/api/v2025-06/widgets/popups` + "\n");
|
|
324
266
|
const result = await client.post(`/api/v2025-06/widgets/popups`, body);
|
|
325
267
|
ctx.output(result);
|
|
326
268
|
});
|
|
@@ -337,19 +279,13 @@ export function registerWidgets(parent: Command, ctx: CommandContext): void {
|
|
|
337
279
|
.action(async (opts) => {
|
|
338
280
|
const client = await ctx.getClient();
|
|
339
281
|
const params: Record<string, unknown> = {};
|
|
340
|
-
if (opts.filterStatus !== undefined)
|
|
341
|
-
|
|
342
|
-
if (opts.
|
|
343
|
-
|
|
344
|
-
if (opts.
|
|
345
|
-
params["filter[name]"] = opts.filterName;
|
|
346
|
-
if (opts.pageCursor !== undefined)
|
|
347
|
-
params["page[cursor]"] = opts.pageCursor;
|
|
348
|
-
if (opts.pageLimit !== undefined)
|
|
349
|
-
params["page[limit]"] = Number(opts.pageLimit);
|
|
282
|
+
if (opts.filterStatus !== undefined) params["filter[status]"] = opts.filterStatus;
|
|
283
|
+
if (opts.filterPlacement !== undefined) params["filter[placement]"] = opts.filterPlacement;
|
|
284
|
+
if (opts.filterName !== undefined) params["filter[name]"] = opts.filterName;
|
|
285
|
+
if (opts.pageCursor !== undefined) params["page[cursor]"] = opts.pageCursor;
|
|
286
|
+
if (opts.pageLimit !== undefined) params["page[limit]"] = Number(opts.pageLimit);
|
|
350
287
|
if (opts.sort !== undefined) params["sort"] = opts.sort;
|
|
351
|
-
if (ctx.verbose)
|
|
352
|
-
process.stderr.write("GET " + `/api/v2025-06/widgets/popups` + "\n");
|
|
288
|
+
if (ctx.verbose) process.stderr.write("GET " + `/api/v2025-06/widgets/popups` + "\n");
|
|
353
289
|
const result = await client.get(`/api/v2025-06/widgets/popups`, params);
|
|
354
290
|
ctx.output(result);
|
|
355
291
|
});
|
|
@@ -359,10 +295,7 @@ export function registerWidgets(parent: Command, ctx: CommandContext): void {
|
|
|
359
295
|
.description("Delete a popup widget")
|
|
360
296
|
.action(async (id) => {
|
|
361
297
|
const client = await ctx.getClient();
|
|
362
|
-
if (ctx.verbose)
|
|
363
|
-
process.stderr.write(
|
|
364
|
-
"DELETE " + `/api/v2025-06/widgets/popups/${id}` + "\n",
|
|
365
|
-
);
|
|
298
|
+
if (ctx.verbose) process.stderr.write("DELETE " + `/api/v2025-06/widgets/popups/${id}` + "\n");
|
|
366
299
|
const result = await client.delete(`/api/v2025-06/widgets/popups/${id}`);
|
|
367
300
|
ctx.output(result);
|
|
368
301
|
});
|
|
@@ -372,10 +305,7 @@ export function registerWidgets(parent: Command, ctx: CommandContext): void {
|
|
|
372
305
|
.description("Get a popup widget")
|
|
373
306
|
.action(async (id) => {
|
|
374
307
|
const client = await ctx.getClient();
|
|
375
|
-
if (ctx.verbose)
|
|
376
|
-
process.stderr.write(
|
|
377
|
-
"GET " + `/api/v2025-06/widgets/popups/${id}` + "\n",
|
|
378
|
-
);
|
|
308
|
+
if (ctx.verbose) process.stderr.write("GET " + `/api/v2025-06/widgets/popups/${id}` + "\n");
|
|
379
309
|
const result = await client.get(`/api/v2025-06/widgets/popups/${id}`);
|
|
380
310
|
ctx.output(result);
|
|
381
311
|
});
|
|
@@ -394,14 +324,9 @@ export function registerWidgets(parent: Command, ctx: CommandContext): void {
|
|
|
394
324
|
} else if (opts.body) {
|
|
395
325
|
body = ctx.parseBody(opts.body);
|
|
396
326
|
}
|
|
397
|
-
if (ctx.verbose)
|
|
398
|
-
|
|
399
|
-
"PATCH " + `/api/v2025-06/widgets/popups/${id}` + "\n",
|
|
400
|
-
);
|
|
401
|
-
const result = await client.patch(
|
|
402
|
-
`/api/v2025-06/widgets/popups/${id}`,
|
|
403
|
-
body,
|
|
404
|
-
);
|
|
327
|
+
if (ctx.verbose) process.stderr.write("PATCH " + `/api/v2025-06/widgets/popups/${id}` + "\n");
|
|
328
|
+
const result = await client.patch(`/api/v2025-06/widgets/popups/${id}`, body);
|
|
405
329
|
ctx.output(result);
|
|
406
330
|
});
|
|
331
|
+
|
|
407
332
|
}
|
package/.turbo/turbo-build.log
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
> @fluid-app/v2025-06-cli-commands@0.1.31 build /home/runner/_work/fluid-mono/fluid-mono/packages/cli/v2025-06
|
|
3
|
-
> tsdown
|
|
4
|
-
|
|
5
|
-
[34mℹ[39m tsdown [2mv0.21.0[22m powered by rolldown [2mv1.0.0-rc.7[22m
|
|
6
|
-
[34mℹ[39m config file: [4m/home/runner/_work/fluid-mono/fluid-mono/packages/cli/v2025-06/tsdown.config.ts[24m
|
|
7
|
-
[34mℹ[39m entry: [34msrc/index.ts[39m
|
|
8
|
-
[34mℹ[39m target: [34mnode24[39m
|
|
9
|
-
[34mℹ[39m tsconfig: [34mtsconfig.json[39m
|
|
10
|
-
[34mℹ[39m Build start
|
|
11
|
-
[34mℹ[39m [2mdist/[22m[1mindex.mjs[22m [2m130.18 kB[22m [2m│ gzip: 9.40 kB[22m
|
|
12
|
-
[34mℹ[39m [2mdist/[22mindex.mjs.map [2m252.53 kB[22m [2m│ gzip: 17.16 kB[22m
|
|
13
|
-
[34mℹ[39m [2mdist/[22mindex.d.mts.map [2m 0.11 kB[22m [2m│ gzip: 0.12 kB[22m
|
|
14
|
-
[34mℹ[39m [2mdist/[22m[32m[1mindex.d.mts[22m[39m [2m 0.19 kB[22m [2m│ gzip: 0.16 kB[22m
|
|
15
|
-
[34mℹ[39m 4 files, total: 383.02 kB
|
|
16
|
-
[33m[PLUGIN_TIMINGS] Warning:[0m Your build spent significant time in plugin `rolldown-plugin-dts:generate`. See https://rolldown.rs/options/checks#plugintimings for more details.
|
|
17
|
-
|
|
18
|
-
[32m✔[39m Build complete in [32m6190ms[39m
|
package/dist/index.d.mts
DELETED
package/dist/index.d.mts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";;;cAKM,MAAA,EAAQ,WAAA"}
|