@fluid-app/v2025-06-cli-commands 0.1.8 → 0.1.10
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 +9 -6
- 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
package/dist/index.mjs
CHANGED
|
@@ -10,11 +10,11 @@ function registerCompanyContacts(parent, ctx) {
|
|
|
10
10
|
const { readFileSync } = await import("fs");
|
|
11
11
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
12
12
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
13
|
-
if (ctx.verbose) process.stderr.write(
|
|
13
|
+
if (ctx.verbose) process.stderr.write("POST /api/company/contacts\n");
|
|
14
14
|
const result = await client.post(`/api/company/contacts`, body);
|
|
15
15
|
ctx.output(result);
|
|
16
16
|
});
|
|
17
|
-
resource.command("list").description("List company contacts").option("--page <value>", "
|
|
17
|
+
resource.command("list").description("List company contacts").option("--page <value>", "Page number for pagination").option("--per-page <value>", "Number of records per page").option("--status <value>", "Filter contacts by status").option("--search-query <value>", "Search contacts by name, email, or phone").option("--by-metadata <value>", "Filter contacts by metadata (JSON string)").action(async (opts) => {
|
|
18
18
|
const client = await ctx.getClient();
|
|
19
19
|
const params = {};
|
|
20
20
|
if (opts.page !== void 0) params["page"] = Number(opts.page);
|
|
@@ -22,19 +22,21 @@ function registerCompanyContacts(parent, ctx) {
|
|
|
22
22
|
if (opts.status !== void 0) params["status"] = opts.status;
|
|
23
23
|
if (opts.searchQuery !== void 0) params["search_query"] = opts.searchQuery;
|
|
24
24
|
if (opts.byMetadata !== void 0) params["by_metadata"] = opts.byMetadata;
|
|
25
|
-
if (ctx.verbose) process.stderr.write(
|
|
25
|
+
if (ctx.verbose) process.stderr.write("GET /api/company/contacts\n");
|
|
26
26
|
const result = await client.get(`/api/company/contacts`, params);
|
|
27
27
|
ctx.output(result);
|
|
28
28
|
});
|
|
29
|
-
resource.command("delete <id>").description("Delete a company contact").action(async (id
|
|
29
|
+
resource.command("delete <id>").description("Delete a company contact").action(async (id) => {
|
|
30
30
|
const client = await ctx.getClient();
|
|
31
|
-
if (ctx.verbose) process.stderr.write(`DELETE
|
|
31
|
+
if (ctx.verbose) process.stderr.write(`DELETE /api/company/contacts/${id}
|
|
32
|
+
`);
|
|
32
33
|
const result = await client.delete(`/api/company/contacts/${id}`);
|
|
33
34
|
ctx.output(result);
|
|
34
35
|
});
|
|
35
|
-
resource.command("get <id>").description("Get a company contact").action(async (id
|
|
36
|
+
resource.command("get <id>").description("Get a company contact").action(async (id) => {
|
|
36
37
|
const client = await ctx.getClient();
|
|
37
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
38
|
+
if (ctx.verbose) process.stderr.write(`GET /api/company/contacts/${id}
|
|
39
|
+
`);
|
|
38
40
|
const result = await client.get(`/api/company/contacts/${id}`);
|
|
39
41
|
ctx.output(result);
|
|
40
42
|
});
|
|
@@ -45,7 +47,8 @@ function registerCompanyContacts(parent, ctx) {
|
|
|
45
47
|
const { readFileSync } = await import("fs");
|
|
46
48
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
47
49
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
48
|
-
if (ctx.verbose) process.stderr.write(`PATCH
|
|
50
|
+
if (ctx.verbose) process.stderr.write(`PATCH /api/company/contacts/${id}
|
|
51
|
+
`);
|
|
49
52
|
const result = await client.patch(`/api/company/contacts/${id}`, body);
|
|
50
53
|
ctx.output(result);
|
|
51
54
|
});
|
|
@@ -54,346 +57,388 @@ function registerCompanyContacts(parent, ctx) {
|
|
|
54
57
|
//#region src/generated/compliance.ts
|
|
55
58
|
function registerCompliance(parent, ctx) {
|
|
56
59
|
const resource = parent.command("compliance").description("Compliance");
|
|
57
|
-
resource.command("get-latest-product
|
|
60
|
+
resource.command("get-latest-product <product-id>").description("Get latest compliance scan for a product").action(async (productId) => {
|
|
58
61
|
const client = await ctx.getClient();
|
|
59
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
62
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v202506/products/${productId}/compliance
|
|
63
|
+
`);
|
|
60
64
|
const result = await client.get(`/api/v202506/products/${productId}/compliance`);
|
|
61
65
|
ctx.output(result);
|
|
62
66
|
});
|
|
63
|
-
resource.command("list-product
|
|
67
|
+
resource.command("list-product <product-id>").description("List all compliance scans for a product").option("--page <value>", "page").option("--per-page <value>", "per_page").action(async (productId, opts) => {
|
|
64
68
|
const client = await ctx.getClient();
|
|
65
69
|
const params = {};
|
|
66
70
|
if (opts.page !== void 0) params["page"] = Number(opts.page);
|
|
67
71
|
if (opts.perPage !== void 0) params["per_page"] = Number(opts.perPage);
|
|
68
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
72
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v202506/products/${productId}/compliances
|
|
73
|
+
`);
|
|
69
74
|
const result = await client.get(`/api/v202506/products/${productId}/compliances`, params);
|
|
70
75
|
ctx.output(result);
|
|
71
76
|
});
|
|
72
|
-
resource.command("create-product
|
|
77
|
+
resource.command("create-product <product-id>").description("Create a new compliance scan for a product").option("--body <json>", "Request body as JSON string").option("--body-file <path>", "Read request body from file").action(async (productId, opts) => {
|
|
73
78
|
const client = await ctx.getClient();
|
|
74
79
|
let body;
|
|
75
80
|
if (opts.bodyFile) {
|
|
76
81
|
const { readFileSync } = await import("fs");
|
|
77
82
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
78
83
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
79
|
-
if (ctx.verbose) process.stderr.write(`POST
|
|
84
|
+
if (ctx.verbose) process.stderr.write(`POST /api/v202506/products/${productId}/compliances
|
|
85
|
+
`);
|
|
80
86
|
const result = await client.post(`/api/v202506/products/${productId}/compliances`, body);
|
|
81
87
|
ctx.output(result);
|
|
82
88
|
});
|
|
83
|
-
resource.command("get-product
|
|
89
|
+
resource.command("get-product <product-id> <id>").description("Get a specific compliance scan for a product").action(async (productId, id) => {
|
|
84
90
|
const client = await ctx.getClient();
|
|
85
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
91
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v202506/products/${productId}/compliances/${id}
|
|
92
|
+
`);
|
|
86
93
|
const result = await client.get(`/api/v202506/products/${productId}/compliances/${id}`);
|
|
87
94
|
ctx.output(result);
|
|
88
95
|
});
|
|
89
|
-
resource.command("update-product
|
|
96
|
+
resource.command("update-product <product-id> <id>").description("Update a compliance scan for a product").option("--body <json>", "Request body as JSON string").option("--body-file <path>", "Read request body from file").action(async (productId, id, opts) => {
|
|
90
97
|
const client = await ctx.getClient();
|
|
91
98
|
let body;
|
|
92
99
|
if (opts.bodyFile) {
|
|
93
100
|
const { readFileSync } = await import("fs");
|
|
94
101
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
95
102
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
96
|
-
if (ctx.verbose) process.stderr.write(`PATCH
|
|
103
|
+
if (ctx.verbose) process.stderr.write(`PATCH /api/v202506/products/${productId}/compliances/${id}
|
|
104
|
+
`);
|
|
97
105
|
const result = await client.patch(`/api/v202506/products/${productId}/compliances/${id}`, body);
|
|
98
106
|
ctx.output(result);
|
|
99
107
|
});
|
|
100
|
-
resource.command("delete-product
|
|
108
|
+
resource.command("delete-product <product-id> <id>").description("Delete a compliance scan for a product").action(async (productId, id) => {
|
|
101
109
|
const client = await ctx.getClient();
|
|
102
|
-
if (ctx.verbose) process.stderr.write(`DELETE
|
|
110
|
+
if (ctx.verbose) process.stderr.write(`DELETE /api/v202506/products/${productId}/compliances/${id}
|
|
111
|
+
`);
|
|
103
112
|
const result = await client.delete(`/api/v202506/products/${productId}/compliances/${id}`);
|
|
104
113
|
ctx.output(result);
|
|
105
114
|
});
|
|
106
|
-
resource.command("get-latest-media
|
|
115
|
+
resource.command("get-latest-media <medium-id>").description("Get latest compliance scan for media").action(async (mediumId) => {
|
|
107
116
|
const client = await ctx.getClient();
|
|
108
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
117
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v202506/media/${mediumId}/compliance
|
|
118
|
+
`);
|
|
109
119
|
const result = await client.get(`/api/v202506/media/${mediumId}/compliance`);
|
|
110
120
|
ctx.output(result);
|
|
111
121
|
});
|
|
112
|
-
resource.command("list-media
|
|
122
|
+
resource.command("list-media <medium-id>").description("List all compliance scans for media").option("--page <value>", "page").option("--per-page <value>", "per_page").action(async (mediumId, opts) => {
|
|
113
123
|
const client = await ctx.getClient();
|
|
114
124
|
const params = {};
|
|
115
125
|
if (opts.page !== void 0) params["page"] = Number(opts.page);
|
|
116
126
|
if (opts.perPage !== void 0) params["per_page"] = Number(opts.perPage);
|
|
117
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
127
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v202506/media/${mediumId}/compliances
|
|
128
|
+
`);
|
|
118
129
|
const result = await client.get(`/api/v202506/media/${mediumId}/compliances`, params);
|
|
119
130
|
ctx.output(result);
|
|
120
131
|
});
|
|
121
|
-
resource.command("create-media
|
|
132
|
+
resource.command("create-media <medium-id>").description("Create a new compliance scan for media").option("--body <json>", "Request body as JSON string").option("--body-file <path>", "Read request body from file").action(async (mediumId, opts) => {
|
|
122
133
|
const client = await ctx.getClient();
|
|
123
134
|
let body;
|
|
124
135
|
if (opts.bodyFile) {
|
|
125
136
|
const { readFileSync } = await import("fs");
|
|
126
137
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
127
138
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
128
|
-
if (ctx.verbose) process.stderr.write(`POST
|
|
139
|
+
if (ctx.verbose) process.stderr.write(`POST /api/v202506/media/${mediumId}/compliances
|
|
140
|
+
`);
|
|
129
141
|
const result = await client.post(`/api/v202506/media/${mediumId}/compliances`, body);
|
|
130
142
|
ctx.output(result);
|
|
131
143
|
});
|
|
132
|
-
resource.command("get-media
|
|
144
|
+
resource.command("get-media <medium-id> <id>").description("Get a specific compliance scan for media").action(async (mediumId, id) => {
|
|
133
145
|
const client = await ctx.getClient();
|
|
134
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
146
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v202506/media/${mediumId}/compliances/${id}
|
|
147
|
+
`);
|
|
135
148
|
const result = await client.get(`/api/v202506/media/${mediumId}/compliances/${id}`);
|
|
136
149
|
ctx.output(result);
|
|
137
150
|
});
|
|
138
|
-
resource.command("update-media
|
|
151
|
+
resource.command("update-media <medium-id> <id>").description("Update a compliance scan for media").option("--body <json>", "Request body as JSON string").option("--body-file <path>", "Read request body from file").action(async (mediumId, id, opts) => {
|
|
139
152
|
const client = await ctx.getClient();
|
|
140
153
|
let body;
|
|
141
154
|
if (opts.bodyFile) {
|
|
142
155
|
const { readFileSync } = await import("fs");
|
|
143
156
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
144
157
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
145
|
-
if (ctx.verbose) process.stderr.write(`PATCH
|
|
158
|
+
if (ctx.verbose) process.stderr.write(`PATCH /api/v202506/media/${mediumId}/compliances/${id}
|
|
159
|
+
`);
|
|
146
160
|
const result = await client.patch(`/api/v202506/media/${mediumId}/compliances/${id}`, body);
|
|
147
161
|
ctx.output(result);
|
|
148
162
|
});
|
|
149
|
-
resource.command("delete-media
|
|
163
|
+
resource.command("delete-media <medium-id> <id>").description("Delete a compliance scan for media").action(async (mediumId, id) => {
|
|
150
164
|
const client = await ctx.getClient();
|
|
151
|
-
if (ctx.verbose) process.stderr.write(`DELETE
|
|
165
|
+
if (ctx.verbose) process.stderr.write(`DELETE /api/v202506/media/${mediumId}/compliances/${id}
|
|
166
|
+
`);
|
|
152
167
|
const result = await client.delete(`/api/v202506/media/${mediumId}/compliances/${id}`);
|
|
153
168
|
ctx.output(result);
|
|
154
169
|
});
|
|
155
|
-
resource.command("get-latest-playlist
|
|
170
|
+
resource.command("get-latest-playlist <playlist-id>").description("Get latest compliance scan for a playlist").action(async (playlistId) => {
|
|
156
171
|
const client = await ctx.getClient();
|
|
157
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
172
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v202506/playlists/${playlistId}/compliance
|
|
173
|
+
`);
|
|
158
174
|
const result = await client.get(`/api/v202506/playlists/${playlistId}/compliance`);
|
|
159
175
|
ctx.output(result);
|
|
160
176
|
});
|
|
161
|
-
resource.command("list-playlist
|
|
177
|
+
resource.command("list-playlist <playlist-id>").description("List all compliance scans for a playlist").option("--page <value>", "page").option("--per-page <value>", "per_page").action(async (playlistId, opts) => {
|
|
162
178
|
const client = await ctx.getClient();
|
|
163
179
|
const params = {};
|
|
164
180
|
if (opts.page !== void 0) params["page"] = Number(opts.page);
|
|
165
181
|
if (opts.perPage !== void 0) params["per_page"] = Number(opts.perPage);
|
|
166
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
182
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v202506/playlists/${playlistId}/compliances
|
|
183
|
+
`);
|
|
167
184
|
const result = await client.get(`/api/v202506/playlists/${playlistId}/compliances`, params);
|
|
168
185
|
ctx.output(result);
|
|
169
186
|
});
|
|
170
|
-
resource.command("create-playlist
|
|
187
|
+
resource.command("create-playlist <playlist-id>").description("Create a new compliance scan for a playlist").option("--body <json>", "Request body as JSON string").option("--body-file <path>", "Read request body from file").action(async (playlistId, opts) => {
|
|
171
188
|
const client = await ctx.getClient();
|
|
172
189
|
let body;
|
|
173
190
|
if (opts.bodyFile) {
|
|
174
191
|
const { readFileSync } = await import("fs");
|
|
175
192
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
176
193
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
177
|
-
if (ctx.verbose) process.stderr.write(`POST
|
|
194
|
+
if (ctx.verbose) process.stderr.write(`POST /api/v202506/playlists/${playlistId}/compliances
|
|
195
|
+
`);
|
|
178
196
|
const result = await client.post(`/api/v202506/playlists/${playlistId}/compliances`, body);
|
|
179
197
|
ctx.output(result);
|
|
180
198
|
});
|
|
181
|
-
resource.command("get-playlist
|
|
199
|
+
resource.command("get-playlist <playlist-id> <id>").description("Get a specific compliance scan for a playlist").action(async (playlistId, id) => {
|
|
182
200
|
const client = await ctx.getClient();
|
|
183
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
201
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v202506/playlists/${playlistId}/compliances/${id}
|
|
202
|
+
`);
|
|
184
203
|
const result = await client.get(`/api/v202506/playlists/${playlistId}/compliances/${id}`);
|
|
185
204
|
ctx.output(result);
|
|
186
205
|
});
|
|
187
|
-
resource.command("update-playlist
|
|
206
|
+
resource.command("update-playlist <playlist-id> <id>").description("Update a compliance scan for a playlist").option("--body <json>", "Request body as JSON string").option("--body-file <path>", "Read request body from file").action(async (playlistId, id, opts) => {
|
|
188
207
|
const client = await ctx.getClient();
|
|
189
208
|
let body;
|
|
190
209
|
if (opts.bodyFile) {
|
|
191
210
|
const { readFileSync } = await import("fs");
|
|
192
211
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
193
212
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
194
|
-
if (ctx.verbose) process.stderr.write(`PATCH
|
|
213
|
+
if (ctx.verbose) process.stderr.write(`PATCH /api/v202506/playlists/${playlistId}/compliances/${id}
|
|
214
|
+
`);
|
|
195
215
|
const result = await client.patch(`/api/v202506/playlists/${playlistId}/compliances/${id}`, body);
|
|
196
216
|
ctx.output(result);
|
|
197
217
|
});
|
|
198
|
-
resource.command("delete-playlist
|
|
218
|
+
resource.command("delete-playlist <playlist-id> <id>").description("Delete a compliance scan for a playlist").action(async (playlistId, id) => {
|
|
199
219
|
const client = await ctx.getClient();
|
|
200
|
-
if (ctx.verbose) process.stderr.write(`DELETE
|
|
220
|
+
if (ctx.verbose) process.stderr.write(`DELETE /api/v202506/playlists/${playlistId}/compliances/${id}
|
|
221
|
+
`);
|
|
201
222
|
const result = await client.delete(`/api/v202506/playlists/${playlistId}/compliances/${id}`);
|
|
202
223
|
ctx.output(result);
|
|
203
224
|
});
|
|
204
|
-
resource.command("get-latest-category
|
|
225
|
+
resource.command("get-latest-category <category-id>").description("Get latest compliance scan for a category").action(async (categoryId) => {
|
|
205
226
|
const client = await ctx.getClient();
|
|
206
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
227
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v202506/categories/${categoryId}/compliance
|
|
228
|
+
`);
|
|
207
229
|
const result = await client.get(`/api/v202506/categories/${categoryId}/compliance`);
|
|
208
230
|
ctx.output(result);
|
|
209
231
|
});
|
|
210
|
-
resource.command("list-category
|
|
232
|
+
resource.command("list-category <category-id>").description("List all compliance scans for a category").option("--page <value>", "page").option("--per-page <value>", "per_page").action(async (categoryId, opts) => {
|
|
211
233
|
const client = await ctx.getClient();
|
|
212
234
|
const params = {};
|
|
213
235
|
if (opts.page !== void 0) params["page"] = Number(opts.page);
|
|
214
236
|
if (opts.perPage !== void 0) params["per_page"] = Number(opts.perPage);
|
|
215
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
237
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v202506/categories/${categoryId}/compliances
|
|
238
|
+
`);
|
|
216
239
|
const result = await client.get(`/api/v202506/categories/${categoryId}/compliances`, params);
|
|
217
240
|
ctx.output(result);
|
|
218
241
|
});
|
|
219
|
-
resource.command("create-category
|
|
242
|
+
resource.command("create-category <category-id>").description("Create a new compliance scan for a category").option("--body <json>", "Request body as JSON string").option("--body-file <path>", "Read request body from file").action(async (categoryId, opts) => {
|
|
220
243
|
const client = await ctx.getClient();
|
|
221
244
|
let body;
|
|
222
245
|
if (opts.bodyFile) {
|
|
223
246
|
const { readFileSync } = await import("fs");
|
|
224
247
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
225
248
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
226
|
-
if (ctx.verbose) process.stderr.write(`POST
|
|
249
|
+
if (ctx.verbose) process.stderr.write(`POST /api/v202506/categories/${categoryId}/compliances
|
|
250
|
+
`);
|
|
227
251
|
const result = await client.post(`/api/v202506/categories/${categoryId}/compliances`, body);
|
|
228
252
|
ctx.output(result);
|
|
229
253
|
});
|
|
230
|
-
resource.command("get-category
|
|
254
|
+
resource.command("get-category <category-id> <id>").description("Get a specific compliance scan for a category").action(async (categoryId, id) => {
|
|
231
255
|
const client = await ctx.getClient();
|
|
232
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
256
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v202506/categories/${categoryId}/compliances/${id}
|
|
257
|
+
`);
|
|
233
258
|
const result = await client.get(`/api/v202506/categories/${categoryId}/compliances/${id}`);
|
|
234
259
|
ctx.output(result);
|
|
235
260
|
});
|
|
236
|
-
resource.command("update-category
|
|
261
|
+
resource.command("update-category <category-id> <id>").description("Update a compliance scan for a category").option("--body <json>", "Request body as JSON string").option("--body-file <path>", "Read request body from file").action(async (categoryId, id, opts) => {
|
|
237
262
|
const client = await ctx.getClient();
|
|
238
263
|
let body;
|
|
239
264
|
if (opts.bodyFile) {
|
|
240
265
|
const { readFileSync } = await import("fs");
|
|
241
266
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
242
267
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
243
|
-
if (ctx.verbose) process.stderr.write(`PATCH
|
|
268
|
+
if (ctx.verbose) process.stderr.write(`PATCH /api/v202506/categories/${categoryId}/compliances/${id}
|
|
269
|
+
`);
|
|
244
270
|
const result = await client.patch(`/api/v202506/categories/${categoryId}/compliances/${id}`, body);
|
|
245
271
|
ctx.output(result);
|
|
246
272
|
});
|
|
247
|
-
resource.command("delete-category
|
|
273
|
+
resource.command("delete-category <category-id> <id>").description("Delete a compliance scan for a category").action(async (categoryId, id) => {
|
|
248
274
|
const client = await ctx.getClient();
|
|
249
|
-
if (ctx.verbose) process.stderr.write(`DELETE
|
|
275
|
+
if (ctx.verbose) process.stderr.write(`DELETE /api/v202506/categories/${categoryId}/compliances/${id}
|
|
276
|
+
`);
|
|
250
277
|
const result = await client.delete(`/api/v202506/categories/${categoryId}/compliances/${id}`);
|
|
251
278
|
ctx.output(result);
|
|
252
279
|
});
|
|
253
|
-
resource.command("get-latest-collection
|
|
280
|
+
resource.command("get-latest-collection <collection-id>").description("Get latest compliance scan for a collection").action(async (collectionId) => {
|
|
254
281
|
const client = await ctx.getClient();
|
|
255
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
282
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v202506/collections/${collectionId}/compliance
|
|
283
|
+
`);
|
|
256
284
|
const result = await client.get(`/api/v202506/collections/${collectionId}/compliance`);
|
|
257
285
|
ctx.output(result);
|
|
258
286
|
});
|
|
259
|
-
resource.command("list-collection
|
|
287
|
+
resource.command("list-collection <collection-id>").description("List all compliance scans for a collection").option("--page <value>", "page").option("--per-page <value>", "per_page").action(async (collectionId, opts) => {
|
|
260
288
|
const client = await ctx.getClient();
|
|
261
289
|
const params = {};
|
|
262
290
|
if (opts.page !== void 0) params["page"] = Number(opts.page);
|
|
263
291
|
if (opts.perPage !== void 0) params["per_page"] = Number(opts.perPage);
|
|
264
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
292
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v202506/collections/${collectionId}/compliances
|
|
293
|
+
`);
|
|
265
294
|
const result = await client.get(`/api/v202506/collections/${collectionId}/compliances`, params);
|
|
266
295
|
ctx.output(result);
|
|
267
296
|
});
|
|
268
|
-
resource.command("create-collection
|
|
297
|
+
resource.command("create-collection <collection-id>").description("Create a new compliance scan for a collection").option("--body <json>", "Request body as JSON string").option("--body-file <path>", "Read request body from file").action(async (collectionId, opts) => {
|
|
269
298
|
const client = await ctx.getClient();
|
|
270
299
|
let body;
|
|
271
300
|
if (opts.bodyFile) {
|
|
272
301
|
const { readFileSync } = await import("fs");
|
|
273
302
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
274
303
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
275
|
-
if (ctx.verbose) process.stderr.write(`POST
|
|
304
|
+
if (ctx.verbose) process.stderr.write(`POST /api/v202506/collections/${collectionId}/compliances
|
|
305
|
+
`);
|
|
276
306
|
const result = await client.post(`/api/v202506/collections/${collectionId}/compliances`, body);
|
|
277
307
|
ctx.output(result);
|
|
278
308
|
});
|
|
279
|
-
resource.command("get-collection
|
|
309
|
+
resource.command("get-collection <collection-id> <id>").description("Get a specific compliance scan for a collection").action(async (collectionId, id) => {
|
|
280
310
|
const client = await ctx.getClient();
|
|
281
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
311
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v202506/collections/${collectionId}/compliances/${id}
|
|
312
|
+
`);
|
|
282
313
|
const result = await client.get(`/api/v202506/collections/${collectionId}/compliances/${id}`);
|
|
283
314
|
ctx.output(result);
|
|
284
315
|
});
|
|
285
|
-
resource.command("update-collection
|
|
316
|
+
resource.command("update-collection <collection-id> <id>").description("Update a compliance scan for a collection").option("--body <json>", "Request body as JSON string").option("--body-file <path>", "Read request body from file").action(async (collectionId, id, opts) => {
|
|
286
317
|
const client = await ctx.getClient();
|
|
287
318
|
let body;
|
|
288
319
|
if (opts.bodyFile) {
|
|
289
320
|
const { readFileSync } = await import("fs");
|
|
290
321
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
291
322
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
292
|
-
if (ctx.verbose) process.stderr.write(`PATCH
|
|
323
|
+
if (ctx.verbose) process.stderr.write(`PATCH /api/v202506/collections/${collectionId}/compliances/${id}
|
|
324
|
+
`);
|
|
293
325
|
const result = await client.patch(`/api/v202506/collections/${collectionId}/compliances/${id}`, body);
|
|
294
326
|
ctx.output(result);
|
|
295
327
|
});
|
|
296
|
-
resource.command("delete-collection
|
|
328
|
+
resource.command("delete-collection <collection-id> <id>").description("Delete a compliance scan for a collection").action(async (collectionId, id) => {
|
|
297
329
|
const client = await ctx.getClient();
|
|
298
|
-
if (ctx.verbose) process.stderr.write(`DELETE
|
|
330
|
+
if (ctx.verbose) process.stderr.write(`DELETE /api/v202506/collections/${collectionId}/compliances/${id}
|
|
331
|
+
`);
|
|
299
332
|
const result = await client.delete(`/api/v202506/collections/${collectionId}/compliances/${id}`);
|
|
300
333
|
ctx.output(result);
|
|
301
334
|
});
|
|
302
|
-
resource.command("get-latest-post
|
|
335
|
+
resource.command("get-latest-post <post-id>").description("Get latest compliance scan for a post").action(async (postId) => {
|
|
303
336
|
const client = await ctx.getClient();
|
|
304
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
337
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v202506/posts/${postId}/compliance
|
|
338
|
+
`);
|
|
305
339
|
const result = await client.get(`/api/v202506/posts/${postId}/compliance`);
|
|
306
340
|
ctx.output(result);
|
|
307
341
|
});
|
|
308
|
-
resource.command("list-post
|
|
342
|
+
resource.command("list-post <post-id>").description("List all compliance scans for a post").option("--page <value>", "page").option("--per-page <value>", "per_page").action(async (postId, opts) => {
|
|
309
343
|
const client = await ctx.getClient();
|
|
310
344
|
const params = {};
|
|
311
345
|
if (opts.page !== void 0) params["page"] = Number(opts.page);
|
|
312
346
|
if (opts.perPage !== void 0) params["per_page"] = Number(opts.perPage);
|
|
313
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
347
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v202506/posts/${postId}/compliances
|
|
348
|
+
`);
|
|
314
349
|
const result = await client.get(`/api/v202506/posts/${postId}/compliances`, params);
|
|
315
350
|
ctx.output(result);
|
|
316
351
|
});
|
|
317
|
-
resource.command("create-post
|
|
352
|
+
resource.command("create-post <post-id>").description("Create a new compliance scan for a post").option("--body <json>", "Request body as JSON string").option("--body-file <path>", "Read request body from file").action(async (postId, opts) => {
|
|
318
353
|
const client = await ctx.getClient();
|
|
319
354
|
let body;
|
|
320
355
|
if (opts.bodyFile) {
|
|
321
356
|
const { readFileSync } = await import("fs");
|
|
322
357
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
323
358
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
324
|
-
if (ctx.verbose) process.stderr.write(`POST
|
|
359
|
+
if (ctx.verbose) process.stderr.write(`POST /api/v202506/posts/${postId}/compliances
|
|
360
|
+
`);
|
|
325
361
|
const result = await client.post(`/api/v202506/posts/${postId}/compliances`, body);
|
|
326
362
|
ctx.output(result);
|
|
327
363
|
});
|
|
328
|
-
resource.command("get-post
|
|
364
|
+
resource.command("get-post <post-id> <id>").description("Get a specific compliance scan for a post").action(async (postId, id) => {
|
|
329
365
|
const client = await ctx.getClient();
|
|
330
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
366
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v202506/posts/${postId}/compliances/${id}
|
|
367
|
+
`);
|
|
331
368
|
const result = await client.get(`/api/v202506/posts/${postId}/compliances/${id}`);
|
|
332
369
|
ctx.output(result);
|
|
333
370
|
});
|
|
334
|
-
resource.command("update-post
|
|
371
|
+
resource.command("update-post <post-id> <id>").description("Update a compliance scan for a post").option("--body <json>", "Request body as JSON string").option("--body-file <path>", "Read request body from file").action(async (postId, id, opts) => {
|
|
335
372
|
const client = await ctx.getClient();
|
|
336
373
|
let body;
|
|
337
374
|
if (opts.bodyFile) {
|
|
338
375
|
const { readFileSync } = await import("fs");
|
|
339
376
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
340
377
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
341
|
-
if (ctx.verbose) process.stderr.write(`PATCH
|
|
378
|
+
if (ctx.verbose) process.stderr.write(`PATCH /api/v202506/posts/${postId}/compliances/${id}
|
|
379
|
+
`);
|
|
342
380
|
const result = await client.patch(`/api/v202506/posts/${postId}/compliances/${id}`, body);
|
|
343
381
|
ctx.output(result);
|
|
344
382
|
});
|
|
345
|
-
resource.command("delete-post
|
|
383
|
+
resource.command("delete-post <post-id> <id>").description("Delete a compliance scan for a post").action(async (postId, id) => {
|
|
346
384
|
const client = await ctx.getClient();
|
|
347
|
-
if (ctx.verbose) process.stderr.write(`DELETE
|
|
385
|
+
if (ctx.verbose) process.stderr.write(`DELETE /api/v202506/posts/${postId}/compliances/${id}
|
|
386
|
+
`);
|
|
348
387
|
const result = await client.delete(`/api/v202506/posts/${postId}/compliances/${id}`);
|
|
349
388
|
ctx.output(result);
|
|
350
389
|
});
|
|
351
|
-
resource.command("get-latest-enrollment-pack
|
|
390
|
+
resource.command("get-latest-enrollment-pack <enrollment-pack-id>").description("Get latest compliance scan for an enrollment pack").action(async (enrollmentPackId) => {
|
|
352
391
|
const client = await ctx.getClient();
|
|
353
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
392
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v202506/enrollment_packs/${enrollmentPackId}/compliance
|
|
393
|
+
`);
|
|
354
394
|
const result = await client.get(`/api/v202506/enrollment_packs/${enrollmentPackId}/compliance`);
|
|
355
395
|
ctx.output(result);
|
|
356
396
|
});
|
|
357
|
-
resource.command("list-enrollment-pack
|
|
397
|
+
resource.command("list-enrollment-pack <enrollment-pack-id>").description("List all compliance scans for an enrollment pack").option("--page <value>", "page").option("--per-page <value>", "per_page").action(async (enrollmentPackId, opts) => {
|
|
358
398
|
const client = await ctx.getClient();
|
|
359
399
|
const params = {};
|
|
360
400
|
if (opts.page !== void 0) params["page"] = Number(opts.page);
|
|
361
401
|
if (opts.perPage !== void 0) params["per_page"] = Number(opts.perPage);
|
|
362
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
402
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v202506/enrollment_packs/${enrollmentPackId}/compliances
|
|
403
|
+
`);
|
|
363
404
|
const result = await client.get(`/api/v202506/enrollment_packs/${enrollmentPackId}/compliances`, params);
|
|
364
405
|
ctx.output(result);
|
|
365
406
|
});
|
|
366
|
-
resource.command("create-enrollment-pack
|
|
407
|
+
resource.command("create-enrollment-pack <enrollment-pack-id>").description("Create a new compliance scan for an enrollment pack").option("--body <json>", "Request body as JSON string").option("--body-file <path>", "Read request body from file").action(async (enrollmentPackId, opts) => {
|
|
367
408
|
const client = await ctx.getClient();
|
|
368
409
|
let body;
|
|
369
410
|
if (opts.bodyFile) {
|
|
370
411
|
const { readFileSync } = await import("fs");
|
|
371
412
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
372
413
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
373
|
-
if (ctx.verbose) process.stderr.write(`POST
|
|
414
|
+
if (ctx.verbose) process.stderr.write(`POST /api/v202506/enrollment_packs/${enrollmentPackId}/compliances
|
|
415
|
+
`);
|
|
374
416
|
const result = await client.post(`/api/v202506/enrollment_packs/${enrollmentPackId}/compliances`, body);
|
|
375
417
|
ctx.output(result);
|
|
376
418
|
});
|
|
377
|
-
resource.command("get-enrollment-pack
|
|
419
|
+
resource.command("get-enrollment-pack <enrollment-pack-id> <id>").description("Get a specific compliance scan for an enrollment pack").action(async (enrollmentPackId, id) => {
|
|
378
420
|
const client = await ctx.getClient();
|
|
379
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
421
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v202506/enrollment_packs/${enrollmentPackId}/compliances/${id}
|
|
422
|
+
`);
|
|
380
423
|
const result = await client.get(`/api/v202506/enrollment_packs/${enrollmentPackId}/compliances/${id}`);
|
|
381
424
|
ctx.output(result);
|
|
382
425
|
});
|
|
383
|
-
resource.command("update-enrollment-pack
|
|
426
|
+
resource.command("update-enrollment-pack <enrollment-pack-id> <id>").description("Update a compliance scan for an enrollment pack").option("--body <json>", "Request body as JSON string").option("--body-file <path>", "Read request body from file").action(async (enrollmentPackId, id, opts) => {
|
|
384
427
|
const client = await ctx.getClient();
|
|
385
428
|
let body;
|
|
386
429
|
if (opts.bodyFile) {
|
|
387
430
|
const { readFileSync } = await import("fs");
|
|
388
431
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
389
432
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
390
|
-
if (ctx.verbose) process.stderr.write(`PATCH
|
|
433
|
+
if (ctx.verbose) process.stderr.write(`PATCH /api/v202506/enrollment_packs/${enrollmentPackId}/compliances/${id}
|
|
434
|
+
`);
|
|
391
435
|
const result = await client.patch(`/api/v202506/enrollment_packs/${enrollmentPackId}/compliances/${id}`, body);
|
|
392
436
|
ctx.output(result);
|
|
393
437
|
});
|
|
394
|
-
resource.command("delete-enrollment-pack
|
|
438
|
+
resource.command("delete-enrollment-pack <enrollment-pack-id> <id>").description("Delete a compliance scan for an enrollment pack").action(async (enrollmentPackId, id) => {
|
|
395
439
|
const client = await ctx.getClient();
|
|
396
|
-
if (ctx.verbose) process.stderr.write(`DELETE
|
|
440
|
+
if (ctx.verbose) process.stderr.write(`DELETE /api/v202506/enrollment_packs/${enrollmentPackId}/compliances/${id}
|
|
441
|
+
`);
|
|
397
442
|
const result = await client.delete(`/api/v202506/enrollment_packs/${enrollmentPackId}/compliances/${id}`);
|
|
398
443
|
ctx.output(result);
|
|
399
444
|
});
|
|
@@ -409,27 +454,29 @@ function registerCustomers(parent, ctx) {
|
|
|
409
454
|
const { readFileSync } = await import("fs");
|
|
410
455
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
411
456
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
412
|
-
if (ctx.verbose) process.stderr.write(
|
|
457
|
+
if (ctx.verbose) process.stderr.write("POST /api/v2025-06/customers\n");
|
|
413
458
|
const result = await client.post(`/api/v2025-06/customers`, body);
|
|
414
459
|
ctx.output(result);
|
|
415
460
|
});
|
|
416
|
-
resource.command("list").description("List customers").option("--params <value>", "
|
|
461
|
+
resource.command("list").description("List customers").option("--params <value>", "Query parameters for filtering, pagination, and sorting").action(async (opts) => {
|
|
417
462
|
const client = await ctx.getClient();
|
|
418
463
|
const params = {};
|
|
419
464
|
if (opts.params !== void 0) params["params"] = opts.params;
|
|
420
|
-
if (ctx.verbose) process.stderr.write(
|
|
465
|
+
if (ctx.verbose) process.stderr.write("GET /api/v2025-06/customers\n");
|
|
421
466
|
const result = await client.get(`/api/v2025-06/customers`, params);
|
|
422
467
|
ctx.output(result);
|
|
423
468
|
});
|
|
424
|
-
resource.command("delete <id>").description("Delete a customer").action(async (id
|
|
469
|
+
resource.command("delete <id>").description("Delete a customer").action(async (id) => {
|
|
425
470
|
const client = await ctx.getClient();
|
|
426
|
-
if (ctx.verbose) process.stderr.write(`DELETE
|
|
471
|
+
if (ctx.verbose) process.stderr.write(`DELETE /api/v2025-06/customers/${id}
|
|
472
|
+
`);
|
|
427
473
|
const result = await client.delete(`/api/v2025-06/customers/${id}`);
|
|
428
474
|
ctx.output(result);
|
|
429
475
|
});
|
|
430
|
-
resource.command("get <id>").description("Get a customer").action(async (id
|
|
476
|
+
resource.command("get <id>").description("Get a customer").action(async (id) => {
|
|
431
477
|
const client = await ctx.getClient();
|
|
432
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
478
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v2025-06/customers/${id}
|
|
479
|
+
`);
|
|
433
480
|
const result = await client.get(`/api/v2025-06/customers/${id}`);
|
|
434
481
|
ctx.output(result);
|
|
435
482
|
});
|
|
@@ -440,7 +487,8 @@ function registerCustomers(parent, ctx) {
|
|
|
440
487
|
const { readFileSync } = await import("fs");
|
|
441
488
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
442
489
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
443
|
-
if (ctx.verbose) process.stderr.write(`PATCH
|
|
490
|
+
if (ctx.verbose) process.stderr.write(`PATCH /api/v2025-06/customers/${id}
|
|
491
|
+
`);
|
|
444
492
|
const result = await client.patch(`/api/v2025-06/customers/${id}`, body);
|
|
445
493
|
ctx.output(result);
|
|
446
494
|
});
|
|
@@ -451,7 +499,7 @@ function registerCustomers(parent, ctx) {
|
|
|
451
499
|
const { readFileSync } = await import("fs");
|
|
452
500
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
453
501
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
454
|
-
if (ctx.verbose) process.stderr.write(
|
|
502
|
+
if (ctx.verbose) process.stderr.write("POST /api/v2025-06/customers/bulk\n");
|
|
455
503
|
const result = await client.post(`/api/v2025-06/customers/bulk`, body);
|
|
456
504
|
ctx.output(result);
|
|
457
505
|
});
|
|
@@ -462,7 +510,7 @@ function registerCustomers(parent, ctx) {
|
|
|
462
510
|
const { readFileSync } = await import("fs");
|
|
463
511
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
464
512
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
465
|
-
if (ctx.verbose) process.stderr.write(
|
|
513
|
+
if (ctx.verbose) process.stderr.write("DELETE /api/v2025-06/customers/bulk\n");
|
|
466
514
|
const result = await client.delete(`/api/v2025-06/customers/bulk`, { body });
|
|
467
515
|
ctx.output(result);
|
|
468
516
|
});
|
|
@@ -471,20 +519,21 @@ function registerCustomers(parent, ctx) {
|
|
|
471
519
|
//#region src/generated/email-settings.ts
|
|
472
520
|
function registerEmailSettings(parent, ctx) {
|
|
473
521
|
const resource = parent.command("email-settings").description("Email Settings");
|
|
474
|
-
resource.command("get-company
|
|
522
|
+
resource.command("get-company").description("returns company email settings").action(async () => {
|
|
475
523
|
const client = await ctx.getClient();
|
|
476
|
-
if (ctx.verbose) process.stderr.write(
|
|
524
|
+
if (ctx.verbose) process.stderr.write("GET /api/v2025-06/company-email-settings\n");
|
|
477
525
|
const result = await client.get(`/api/v2025-06/company-email-settings`);
|
|
478
526
|
ctx.output(result);
|
|
479
527
|
});
|
|
480
|
-
resource.command("update-company
|
|
528
|
+
resource.command("update-company <id>").description("updates company email settings").option("--body <json>", "Request body as JSON string").option("--body-file <path>", "Read request body from file").action(async (id, opts) => {
|
|
481
529
|
const client = await ctx.getClient();
|
|
482
530
|
let body;
|
|
483
531
|
if (opts.bodyFile) {
|
|
484
532
|
const { readFileSync } = await import("fs");
|
|
485
533
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
486
534
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
487
|
-
if (ctx.verbose) process.stderr.write(`PATCH
|
|
535
|
+
if (ctx.verbose) process.stderr.write(`PATCH /api/v2025-06/company-email-settings/${id}
|
|
536
|
+
`);
|
|
488
537
|
const result = await client.patch(`/api/v2025-06/company-email-settings/${id}`, body);
|
|
489
538
|
ctx.output(result);
|
|
490
539
|
});
|
|
@@ -497,7 +546,8 @@ function registerEnrollmentPackMedia(parent, ctx) {
|
|
|
497
546
|
const client = await ctx.getClient();
|
|
498
547
|
const params = {};
|
|
499
548
|
if (opts.page !== void 0) params["page"] = opts.page;
|
|
500
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
549
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v2025-06/enrollment_packs/${enrollmentPackId}/media
|
|
550
|
+
`);
|
|
501
551
|
const result = await client.get(`/api/v2025-06/enrollment_packs/${enrollmentPackId}/media`, params);
|
|
502
552
|
ctx.output(result);
|
|
503
553
|
});
|
|
@@ -508,13 +558,15 @@ function registerEnrollmentPackMedia(parent, ctx) {
|
|
|
508
558
|
const { readFileSync } = await import("fs");
|
|
509
559
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
510
560
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
511
|
-
if (ctx.verbose) process.stderr.write(`POST
|
|
561
|
+
if (ctx.verbose) process.stderr.write(`POST /api/v2025-06/enrollment_packs/${enrollmentPackId}/media
|
|
562
|
+
`);
|
|
512
563
|
const result = await client.post(`/api/v2025-06/enrollment_packs/${enrollmentPackId}/media`, body);
|
|
513
564
|
ctx.output(result);
|
|
514
565
|
});
|
|
515
|
-
resource.command("delete <enrollment-pack-id> <id>").description("Medium removed from enrollment pack").action(async (enrollmentPackId, id
|
|
566
|
+
resource.command("delete <enrollment-pack-id> <id>").description("Medium removed from enrollment pack").action(async (enrollmentPackId, id) => {
|
|
516
567
|
const client = await ctx.getClient();
|
|
517
|
-
if (ctx.verbose) process.stderr.write(`DELETE
|
|
568
|
+
if (ctx.verbose) process.stderr.write(`DELETE /api/v2025-06/enrollment_packs/${enrollmentPackId}/media/${id}
|
|
569
|
+
`);
|
|
518
570
|
const result = await client.delete(`/api/v2025-06/enrollment_packs/${enrollmentPackId}/media/${id}`);
|
|
519
571
|
ctx.output(result);
|
|
520
572
|
});
|
|
@@ -523,9 +575,9 @@ function registerEnrollmentPackMedia(parent, ctx) {
|
|
|
523
575
|
//#region src/generated/fair-share-settings.ts
|
|
524
576
|
function registerFairShareSettings(parent, ctx) {
|
|
525
577
|
const resource = parent.command("fair-share-settings").description("Fair Share Settings");
|
|
526
|
-
resource.command("get").description("Get Fair Share settings").action(async (
|
|
578
|
+
resource.command("get").description("Get Fair Share settings").action(async () => {
|
|
527
579
|
const client = await ctx.getClient();
|
|
528
|
-
if (ctx.verbose) process.stderr.write(
|
|
580
|
+
if (ctx.verbose) process.stderr.write("GET /api/v2025-06/fairshare/settings\n");
|
|
529
581
|
const result = await client.get(`/api/v2025-06/fairshare/settings`);
|
|
530
582
|
ctx.output(result);
|
|
531
583
|
});
|
|
@@ -536,7 +588,7 @@ function registerFairShareSettings(parent, ctx) {
|
|
|
536
588
|
const { readFileSync } = await import("fs");
|
|
537
589
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
538
590
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
539
|
-
if (ctx.verbose) process.stderr.write(
|
|
591
|
+
if (ctx.verbose) process.stderr.write("PATCH /api/v2025-06/fairshare/settings\n");
|
|
540
592
|
const result = await client.patch(`/api/v2025-06/fairshare/settings`, body);
|
|
541
593
|
ctx.output(result);
|
|
542
594
|
});
|
|
@@ -545,346 +597,388 @@ function registerFairShareSettings(parent, ctx) {
|
|
|
545
597
|
//#region src/generated/lighthouse.ts
|
|
546
598
|
function registerLighthouse(parent, ctx) {
|
|
547
599
|
const resource = parent.command("lighthouse").description("Lighthouse");
|
|
548
|
-
resource.command("get-latest-product
|
|
600
|
+
resource.command("get-latest-product <product-id>").description("Get latest Lighthouse scan for a product").action(async (productId) => {
|
|
549
601
|
const client = await ctx.getClient();
|
|
550
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
602
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v202506/products/${productId}/lighthouse
|
|
603
|
+
`);
|
|
551
604
|
const result = await client.get(`/api/v202506/products/${productId}/lighthouse`);
|
|
552
605
|
ctx.output(result);
|
|
553
606
|
});
|
|
554
|
-
resource.command("list-product
|
|
607
|
+
resource.command("list-product <product-id>").description("List all Lighthouse scans for a product").option("--page <value>", "Page number").option("--per-page <value>", "Items per page").action(async (productId, opts) => {
|
|
555
608
|
const client = await ctx.getClient();
|
|
556
609
|
const params = {};
|
|
557
610
|
if (opts.page !== void 0) params["page"] = Number(opts.page);
|
|
558
611
|
if (opts.perPage !== void 0) params["per_page"] = Number(opts.perPage);
|
|
559
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
612
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v202506/products/${productId}/lighthouses
|
|
613
|
+
`);
|
|
560
614
|
const result = await client.get(`/api/v202506/products/${productId}/lighthouses`, params);
|
|
561
615
|
ctx.output(result);
|
|
562
616
|
});
|
|
563
|
-
resource.command("create-product
|
|
617
|
+
resource.command("create-product <product-id>").description("Create a new Lighthouse scan for a product").option("--body <json>", "Request body as JSON string").option("--body-file <path>", "Read request body from file").action(async (productId, opts) => {
|
|
564
618
|
const client = await ctx.getClient();
|
|
565
619
|
let body;
|
|
566
620
|
if (opts.bodyFile) {
|
|
567
621
|
const { readFileSync } = await import("fs");
|
|
568
622
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
569
623
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
570
|
-
if (ctx.verbose) process.stderr.write(`POST
|
|
624
|
+
if (ctx.verbose) process.stderr.write(`POST /api/v202506/products/${productId}/lighthouses
|
|
625
|
+
`);
|
|
571
626
|
const result = await client.post(`/api/v202506/products/${productId}/lighthouses`, body);
|
|
572
627
|
ctx.output(result);
|
|
573
628
|
});
|
|
574
|
-
resource.command("get-product
|
|
629
|
+
resource.command("get-product <product-id> <id>").description("Get a specific Lighthouse scan for a product").action(async (productId, id) => {
|
|
575
630
|
const client = await ctx.getClient();
|
|
576
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
631
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v202506/products/${productId}/lighthouses/${id}
|
|
632
|
+
`);
|
|
577
633
|
const result = await client.get(`/api/v202506/products/${productId}/lighthouses/${id}`);
|
|
578
634
|
ctx.output(result);
|
|
579
635
|
});
|
|
580
|
-
resource.command("update-product
|
|
636
|
+
resource.command("update-product <product-id> <id>").description("Update a Lighthouse scan for a product").option("--body <json>", "Request body as JSON string").option("--body-file <path>", "Read request body from file").action(async (productId, id, opts) => {
|
|
581
637
|
const client = await ctx.getClient();
|
|
582
638
|
let body;
|
|
583
639
|
if (opts.bodyFile) {
|
|
584
640
|
const { readFileSync } = await import("fs");
|
|
585
641
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
586
642
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
587
|
-
if (ctx.verbose) process.stderr.write(`PATCH
|
|
643
|
+
if (ctx.verbose) process.stderr.write(`PATCH /api/v202506/products/${productId}/lighthouses/${id}
|
|
644
|
+
`);
|
|
588
645
|
const result = await client.patch(`/api/v202506/products/${productId}/lighthouses/${id}`, body);
|
|
589
646
|
ctx.output(result);
|
|
590
647
|
});
|
|
591
|
-
resource.command("delete-product
|
|
648
|
+
resource.command("delete-product <product-id> <id>").description("Delete a Lighthouse scan for a product").action(async (productId, id) => {
|
|
592
649
|
const client = await ctx.getClient();
|
|
593
|
-
if (ctx.verbose) process.stderr.write(`DELETE
|
|
650
|
+
if (ctx.verbose) process.stderr.write(`DELETE /api/v202506/products/${productId}/lighthouses/${id}
|
|
651
|
+
`);
|
|
594
652
|
const result = await client.delete(`/api/v202506/products/${productId}/lighthouses/${id}`);
|
|
595
653
|
ctx.output(result);
|
|
596
654
|
});
|
|
597
|
-
resource.command("get-latest-media
|
|
655
|
+
resource.command("get-latest-media <medium-id>").description("Get latest Lighthouse scan for media").action(async (mediumId) => {
|
|
598
656
|
const client = await ctx.getClient();
|
|
599
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
657
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v202506/media/${mediumId}/lighthouse
|
|
658
|
+
`);
|
|
600
659
|
const result = await client.get(`/api/v202506/media/${mediumId}/lighthouse`);
|
|
601
660
|
ctx.output(result);
|
|
602
661
|
});
|
|
603
|
-
resource.command("list-media
|
|
662
|
+
resource.command("list-media <medium-id>").description("List all Lighthouse scans for media").option("--page <value>", "page").option("--per-page <value>", "per_page").action(async (mediumId, opts) => {
|
|
604
663
|
const client = await ctx.getClient();
|
|
605
664
|
const params = {};
|
|
606
665
|
if (opts.page !== void 0) params["page"] = Number(opts.page);
|
|
607
666
|
if (opts.perPage !== void 0) params["per_page"] = Number(opts.perPage);
|
|
608
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
667
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v202506/media/${mediumId}/lighthouses
|
|
668
|
+
`);
|
|
609
669
|
const result = await client.get(`/api/v202506/media/${mediumId}/lighthouses`, params);
|
|
610
670
|
ctx.output(result);
|
|
611
671
|
});
|
|
612
|
-
resource.command("create-media
|
|
672
|
+
resource.command("create-media <medium-id>").description("Create a new Lighthouse scan for media").option("--body <json>", "Request body as JSON string").option("--body-file <path>", "Read request body from file").action(async (mediumId, opts) => {
|
|
613
673
|
const client = await ctx.getClient();
|
|
614
674
|
let body;
|
|
615
675
|
if (opts.bodyFile) {
|
|
616
676
|
const { readFileSync } = await import("fs");
|
|
617
677
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
618
678
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
619
|
-
if (ctx.verbose) process.stderr.write(`POST
|
|
679
|
+
if (ctx.verbose) process.stderr.write(`POST /api/v202506/media/${mediumId}/lighthouses
|
|
680
|
+
`);
|
|
620
681
|
const result = await client.post(`/api/v202506/media/${mediumId}/lighthouses`, body);
|
|
621
682
|
ctx.output(result);
|
|
622
683
|
});
|
|
623
|
-
resource.command("get-media
|
|
684
|
+
resource.command("get-media <medium-id> <id>").description("Get a specific Lighthouse scan for media").action(async (mediumId, id) => {
|
|
624
685
|
const client = await ctx.getClient();
|
|
625
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
686
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v202506/media/${mediumId}/lighthouses/${id}
|
|
687
|
+
`);
|
|
626
688
|
const result = await client.get(`/api/v202506/media/${mediumId}/lighthouses/${id}`);
|
|
627
689
|
ctx.output(result);
|
|
628
690
|
});
|
|
629
|
-
resource.command("update-media
|
|
691
|
+
resource.command("update-media <medium-id> <id>").description("Update a Lighthouse scan for media").option("--body <json>", "Request body as JSON string").option("--body-file <path>", "Read request body from file").action(async (mediumId, id, opts) => {
|
|
630
692
|
const client = await ctx.getClient();
|
|
631
693
|
let body;
|
|
632
694
|
if (opts.bodyFile) {
|
|
633
695
|
const { readFileSync } = await import("fs");
|
|
634
696
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
635
697
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
636
|
-
if (ctx.verbose) process.stderr.write(`PATCH
|
|
698
|
+
if (ctx.verbose) process.stderr.write(`PATCH /api/v202506/media/${mediumId}/lighthouses/${id}
|
|
699
|
+
`);
|
|
637
700
|
const result = await client.patch(`/api/v202506/media/${mediumId}/lighthouses/${id}`, body);
|
|
638
701
|
ctx.output(result);
|
|
639
702
|
});
|
|
640
|
-
resource.command("delete-media
|
|
703
|
+
resource.command("delete-media <medium-id> <id>").description("Delete a Lighthouse scan for media").action(async (mediumId, id) => {
|
|
641
704
|
const client = await ctx.getClient();
|
|
642
|
-
if (ctx.verbose) process.stderr.write(`DELETE
|
|
705
|
+
if (ctx.verbose) process.stderr.write(`DELETE /api/v202506/media/${mediumId}/lighthouses/${id}
|
|
706
|
+
`);
|
|
643
707
|
const result = await client.delete(`/api/v202506/media/${mediumId}/lighthouses/${id}`);
|
|
644
708
|
ctx.output(result);
|
|
645
709
|
});
|
|
646
|
-
resource.command("get-latest-playlist
|
|
710
|
+
resource.command("get-latest-playlist <playlist-id>").description("Get latest Lighthouse scan for a playlist").action(async (playlistId) => {
|
|
647
711
|
const client = await ctx.getClient();
|
|
648
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
712
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v202506/playlists/${playlistId}/lighthouse
|
|
713
|
+
`);
|
|
649
714
|
const result = await client.get(`/api/v202506/playlists/${playlistId}/lighthouse`);
|
|
650
715
|
ctx.output(result);
|
|
651
716
|
});
|
|
652
|
-
resource.command("list-playlist
|
|
717
|
+
resource.command("list-playlist <playlist-id>").description("List all Lighthouse scans for a playlist").option("--page <value>", "page").option("--per-page <value>", "per_page").action(async (playlistId, opts) => {
|
|
653
718
|
const client = await ctx.getClient();
|
|
654
719
|
const params = {};
|
|
655
720
|
if (opts.page !== void 0) params["page"] = Number(opts.page);
|
|
656
721
|
if (opts.perPage !== void 0) params["per_page"] = Number(opts.perPage);
|
|
657
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
722
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v202506/playlists/${playlistId}/lighthouses
|
|
723
|
+
`);
|
|
658
724
|
const result = await client.get(`/api/v202506/playlists/${playlistId}/lighthouses`, params);
|
|
659
725
|
ctx.output(result);
|
|
660
726
|
});
|
|
661
|
-
resource.command("create-playlist
|
|
727
|
+
resource.command("create-playlist <playlist-id>").description("Create a new Lighthouse scan for a playlist").option("--body <json>", "Request body as JSON string").option("--body-file <path>", "Read request body from file").action(async (playlistId, opts) => {
|
|
662
728
|
const client = await ctx.getClient();
|
|
663
729
|
let body;
|
|
664
730
|
if (opts.bodyFile) {
|
|
665
731
|
const { readFileSync } = await import("fs");
|
|
666
732
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
667
733
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
668
|
-
if (ctx.verbose) process.stderr.write(`POST
|
|
734
|
+
if (ctx.verbose) process.stderr.write(`POST /api/v202506/playlists/${playlistId}/lighthouses
|
|
735
|
+
`);
|
|
669
736
|
const result = await client.post(`/api/v202506/playlists/${playlistId}/lighthouses`, body);
|
|
670
737
|
ctx.output(result);
|
|
671
738
|
});
|
|
672
|
-
resource.command("get-playlist
|
|
739
|
+
resource.command("get-playlist <playlist-id> <id>").description("Get a specific Lighthouse scan for a playlist").action(async (playlistId, id) => {
|
|
673
740
|
const client = await ctx.getClient();
|
|
674
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
741
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v202506/playlists/${playlistId}/lighthouses/${id}
|
|
742
|
+
`);
|
|
675
743
|
const result = await client.get(`/api/v202506/playlists/${playlistId}/lighthouses/${id}`);
|
|
676
744
|
ctx.output(result);
|
|
677
745
|
});
|
|
678
|
-
resource.command("update-playlist
|
|
746
|
+
resource.command("update-playlist <playlist-id> <id>").description("Update a Lighthouse scan for a playlist").option("--body <json>", "Request body as JSON string").option("--body-file <path>", "Read request body from file").action(async (playlistId, id, opts) => {
|
|
679
747
|
const client = await ctx.getClient();
|
|
680
748
|
let body;
|
|
681
749
|
if (opts.bodyFile) {
|
|
682
750
|
const { readFileSync } = await import("fs");
|
|
683
751
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
684
752
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
685
|
-
if (ctx.verbose) process.stderr.write(`PATCH
|
|
753
|
+
if (ctx.verbose) process.stderr.write(`PATCH /api/v202506/playlists/${playlistId}/lighthouses/${id}
|
|
754
|
+
`);
|
|
686
755
|
const result = await client.patch(`/api/v202506/playlists/${playlistId}/lighthouses/${id}`, body);
|
|
687
756
|
ctx.output(result);
|
|
688
757
|
});
|
|
689
|
-
resource.command("delete-playlist
|
|
758
|
+
resource.command("delete-playlist <playlist-id> <id>").description("Delete a Lighthouse scan for a playlist").action(async (playlistId, id) => {
|
|
690
759
|
const client = await ctx.getClient();
|
|
691
|
-
if (ctx.verbose) process.stderr.write(`DELETE
|
|
760
|
+
if (ctx.verbose) process.stderr.write(`DELETE /api/v202506/playlists/${playlistId}/lighthouses/${id}
|
|
761
|
+
`);
|
|
692
762
|
const result = await client.delete(`/api/v202506/playlists/${playlistId}/lighthouses/${id}`);
|
|
693
763
|
ctx.output(result);
|
|
694
764
|
});
|
|
695
|
-
resource.command("get-latest-category
|
|
765
|
+
resource.command("get-latest-category <category-id>").description("Get latest Lighthouse scan for a category").action(async (categoryId) => {
|
|
696
766
|
const client = await ctx.getClient();
|
|
697
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
767
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v202506/categories/${categoryId}/lighthouse
|
|
768
|
+
`);
|
|
698
769
|
const result = await client.get(`/api/v202506/categories/${categoryId}/lighthouse`);
|
|
699
770
|
ctx.output(result);
|
|
700
771
|
});
|
|
701
|
-
resource.command("list-category
|
|
772
|
+
resource.command("list-category <category-id>").description("List all Lighthouse scans for a category").option("--page <value>", "page").option("--per-page <value>", "per_page").action(async (categoryId, opts) => {
|
|
702
773
|
const client = await ctx.getClient();
|
|
703
774
|
const params = {};
|
|
704
775
|
if (opts.page !== void 0) params["page"] = Number(opts.page);
|
|
705
776
|
if (opts.perPage !== void 0) params["per_page"] = Number(opts.perPage);
|
|
706
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
777
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v202506/categories/${categoryId}/lighthouses
|
|
778
|
+
`);
|
|
707
779
|
const result = await client.get(`/api/v202506/categories/${categoryId}/lighthouses`, params);
|
|
708
780
|
ctx.output(result);
|
|
709
781
|
});
|
|
710
|
-
resource.command("create-category
|
|
782
|
+
resource.command("create-category <category-id>").description("Create a new Lighthouse scan for a category").option("--body <json>", "Request body as JSON string").option("--body-file <path>", "Read request body from file").action(async (categoryId, opts) => {
|
|
711
783
|
const client = await ctx.getClient();
|
|
712
784
|
let body;
|
|
713
785
|
if (opts.bodyFile) {
|
|
714
786
|
const { readFileSync } = await import("fs");
|
|
715
787
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
716
788
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
717
|
-
if (ctx.verbose) process.stderr.write(`POST
|
|
789
|
+
if (ctx.verbose) process.stderr.write(`POST /api/v202506/categories/${categoryId}/lighthouses
|
|
790
|
+
`);
|
|
718
791
|
const result = await client.post(`/api/v202506/categories/${categoryId}/lighthouses`, body);
|
|
719
792
|
ctx.output(result);
|
|
720
793
|
});
|
|
721
|
-
resource.command("get-category
|
|
794
|
+
resource.command("get-category <category-id> <id>").description("Get a specific Lighthouse scan for a category").action(async (categoryId, id) => {
|
|
722
795
|
const client = await ctx.getClient();
|
|
723
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
796
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v202506/categories/${categoryId}/lighthouses/${id}
|
|
797
|
+
`);
|
|
724
798
|
const result = await client.get(`/api/v202506/categories/${categoryId}/lighthouses/${id}`);
|
|
725
799
|
ctx.output(result);
|
|
726
800
|
});
|
|
727
|
-
resource.command("update-category
|
|
801
|
+
resource.command("update-category <category-id> <id>").description("Update a Lighthouse scan for a category").option("--body <json>", "Request body as JSON string").option("--body-file <path>", "Read request body from file").action(async (categoryId, id, opts) => {
|
|
728
802
|
const client = await ctx.getClient();
|
|
729
803
|
let body;
|
|
730
804
|
if (opts.bodyFile) {
|
|
731
805
|
const { readFileSync } = await import("fs");
|
|
732
806
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
733
807
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
734
|
-
if (ctx.verbose) process.stderr.write(`PATCH
|
|
808
|
+
if (ctx.verbose) process.stderr.write(`PATCH /api/v202506/categories/${categoryId}/lighthouses/${id}
|
|
809
|
+
`);
|
|
735
810
|
const result = await client.patch(`/api/v202506/categories/${categoryId}/lighthouses/${id}`, body);
|
|
736
811
|
ctx.output(result);
|
|
737
812
|
});
|
|
738
|
-
resource.command("delete-category
|
|
813
|
+
resource.command("delete-category <category-id> <id>").description("Delete a Lighthouse scan for a category").action(async (categoryId, id) => {
|
|
739
814
|
const client = await ctx.getClient();
|
|
740
|
-
if (ctx.verbose) process.stderr.write(`DELETE
|
|
815
|
+
if (ctx.verbose) process.stderr.write(`DELETE /api/v202506/categories/${categoryId}/lighthouses/${id}
|
|
816
|
+
`);
|
|
741
817
|
const result = await client.delete(`/api/v202506/categories/${categoryId}/lighthouses/${id}`);
|
|
742
818
|
ctx.output(result);
|
|
743
819
|
});
|
|
744
|
-
resource.command("get-latest-collection
|
|
820
|
+
resource.command("get-latest-collection <collection-id>").description("Get latest Lighthouse scan for a collection").action(async (collectionId) => {
|
|
745
821
|
const client = await ctx.getClient();
|
|
746
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
822
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v202506/collections/${collectionId}/lighthouse
|
|
823
|
+
`);
|
|
747
824
|
const result = await client.get(`/api/v202506/collections/${collectionId}/lighthouse`);
|
|
748
825
|
ctx.output(result);
|
|
749
826
|
});
|
|
750
|
-
resource.command("list-collection
|
|
827
|
+
resource.command("list-collection <collection-id>").description("List all Lighthouse scans for a collection").option("--page <value>", "page").option("--per-page <value>", "per_page").action(async (collectionId, opts) => {
|
|
751
828
|
const client = await ctx.getClient();
|
|
752
829
|
const params = {};
|
|
753
830
|
if (opts.page !== void 0) params["page"] = Number(opts.page);
|
|
754
831
|
if (opts.perPage !== void 0) params["per_page"] = Number(opts.perPage);
|
|
755
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
832
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v202506/collections/${collectionId}/lighthouses
|
|
833
|
+
`);
|
|
756
834
|
const result = await client.get(`/api/v202506/collections/${collectionId}/lighthouses`, params);
|
|
757
835
|
ctx.output(result);
|
|
758
836
|
});
|
|
759
|
-
resource.command("create-collection
|
|
837
|
+
resource.command("create-collection <collection-id>").description("Create a new Lighthouse scan for a collection").option("--body <json>", "Request body as JSON string").option("--body-file <path>", "Read request body from file").action(async (collectionId, opts) => {
|
|
760
838
|
const client = await ctx.getClient();
|
|
761
839
|
let body;
|
|
762
840
|
if (opts.bodyFile) {
|
|
763
841
|
const { readFileSync } = await import("fs");
|
|
764
842
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
765
843
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
766
|
-
if (ctx.verbose) process.stderr.write(`POST
|
|
844
|
+
if (ctx.verbose) process.stderr.write(`POST /api/v202506/collections/${collectionId}/lighthouses
|
|
845
|
+
`);
|
|
767
846
|
const result = await client.post(`/api/v202506/collections/${collectionId}/lighthouses`, body);
|
|
768
847
|
ctx.output(result);
|
|
769
848
|
});
|
|
770
|
-
resource.command("get-collection
|
|
849
|
+
resource.command("get-collection <collection-id> <id>").description("Get a specific Lighthouse scan for a collection").action(async (collectionId, id) => {
|
|
771
850
|
const client = await ctx.getClient();
|
|
772
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
851
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v202506/collections/${collectionId}/lighthouses/${id}
|
|
852
|
+
`);
|
|
773
853
|
const result = await client.get(`/api/v202506/collections/${collectionId}/lighthouses/${id}`);
|
|
774
854
|
ctx.output(result);
|
|
775
855
|
});
|
|
776
|
-
resource.command("update-collection
|
|
856
|
+
resource.command("update-collection <collection-id> <id>").description("Update a Lighthouse scan for a collection").option("--body <json>", "Request body as JSON string").option("--body-file <path>", "Read request body from file").action(async (collectionId, id, opts) => {
|
|
777
857
|
const client = await ctx.getClient();
|
|
778
858
|
let body;
|
|
779
859
|
if (opts.bodyFile) {
|
|
780
860
|
const { readFileSync } = await import("fs");
|
|
781
861
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
782
862
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
783
|
-
if (ctx.verbose) process.stderr.write(`PATCH
|
|
863
|
+
if (ctx.verbose) process.stderr.write(`PATCH /api/v202506/collections/${collectionId}/lighthouses/${id}
|
|
864
|
+
`);
|
|
784
865
|
const result = await client.patch(`/api/v202506/collections/${collectionId}/lighthouses/${id}`, body);
|
|
785
866
|
ctx.output(result);
|
|
786
867
|
});
|
|
787
|
-
resource.command("delete-collection
|
|
868
|
+
resource.command("delete-collection <collection-id> <id>").description("Delete a Lighthouse scan for a collection").action(async (collectionId, id) => {
|
|
788
869
|
const client = await ctx.getClient();
|
|
789
|
-
if (ctx.verbose) process.stderr.write(`DELETE
|
|
870
|
+
if (ctx.verbose) process.stderr.write(`DELETE /api/v202506/collections/${collectionId}/lighthouses/${id}
|
|
871
|
+
`);
|
|
790
872
|
const result = await client.delete(`/api/v202506/collections/${collectionId}/lighthouses/${id}`);
|
|
791
873
|
ctx.output(result);
|
|
792
874
|
});
|
|
793
|
-
resource.command("get-latest-post
|
|
875
|
+
resource.command("get-latest-post <post-id>").description("Get latest Lighthouse scan for a post").action(async (postId) => {
|
|
794
876
|
const client = await ctx.getClient();
|
|
795
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
877
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v202506/posts/${postId}/lighthouse
|
|
878
|
+
`);
|
|
796
879
|
const result = await client.get(`/api/v202506/posts/${postId}/lighthouse`);
|
|
797
880
|
ctx.output(result);
|
|
798
881
|
});
|
|
799
|
-
resource.command("list-post
|
|
882
|
+
resource.command("list-post <post-id>").description("List all Lighthouse scans for a post").option("--page <value>", "page").option("--per-page <value>", "per_page").action(async (postId, opts) => {
|
|
800
883
|
const client = await ctx.getClient();
|
|
801
884
|
const params = {};
|
|
802
885
|
if (opts.page !== void 0) params["page"] = Number(opts.page);
|
|
803
886
|
if (opts.perPage !== void 0) params["per_page"] = Number(opts.perPage);
|
|
804
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
887
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v202506/posts/${postId}/lighthouses
|
|
888
|
+
`);
|
|
805
889
|
const result = await client.get(`/api/v202506/posts/${postId}/lighthouses`, params);
|
|
806
890
|
ctx.output(result);
|
|
807
891
|
});
|
|
808
|
-
resource.command("create-post
|
|
892
|
+
resource.command("create-post <post-id>").description("Create a new Lighthouse scan for a post").option("--body <json>", "Request body as JSON string").option("--body-file <path>", "Read request body from file").action(async (postId, opts) => {
|
|
809
893
|
const client = await ctx.getClient();
|
|
810
894
|
let body;
|
|
811
895
|
if (opts.bodyFile) {
|
|
812
896
|
const { readFileSync } = await import("fs");
|
|
813
897
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
814
898
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
815
|
-
if (ctx.verbose) process.stderr.write(`POST
|
|
899
|
+
if (ctx.verbose) process.stderr.write(`POST /api/v202506/posts/${postId}/lighthouses
|
|
900
|
+
`);
|
|
816
901
|
const result = await client.post(`/api/v202506/posts/${postId}/lighthouses`, body);
|
|
817
902
|
ctx.output(result);
|
|
818
903
|
});
|
|
819
|
-
resource.command("get-post
|
|
904
|
+
resource.command("get-post <post-id> <id>").description("Get a specific Lighthouse scan for a post").action(async (postId, id) => {
|
|
820
905
|
const client = await ctx.getClient();
|
|
821
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
906
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v202506/posts/${postId}/lighthouses/${id}
|
|
907
|
+
`);
|
|
822
908
|
const result = await client.get(`/api/v202506/posts/${postId}/lighthouses/${id}`);
|
|
823
909
|
ctx.output(result);
|
|
824
910
|
});
|
|
825
|
-
resource.command("update-post
|
|
911
|
+
resource.command("update-post <post-id> <id>").description("Update a Lighthouse scan for a post").option("--body <json>", "Request body as JSON string").option("--body-file <path>", "Read request body from file").action(async (postId, id, opts) => {
|
|
826
912
|
const client = await ctx.getClient();
|
|
827
913
|
let body;
|
|
828
914
|
if (opts.bodyFile) {
|
|
829
915
|
const { readFileSync } = await import("fs");
|
|
830
916
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
831
917
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
832
|
-
if (ctx.verbose) process.stderr.write(`PATCH
|
|
918
|
+
if (ctx.verbose) process.stderr.write(`PATCH /api/v202506/posts/${postId}/lighthouses/${id}
|
|
919
|
+
`);
|
|
833
920
|
const result = await client.patch(`/api/v202506/posts/${postId}/lighthouses/${id}`, body);
|
|
834
921
|
ctx.output(result);
|
|
835
922
|
});
|
|
836
|
-
resource.command("delete-post
|
|
923
|
+
resource.command("delete-post <post-id> <id>").description("Delete a Lighthouse scan for a post").action(async (postId, id) => {
|
|
837
924
|
const client = await ctx.getClient();
|
|
838
|
-
if (ctx.verbose) process.stderr.write(`DELETE
|
|
925
|
+
if (ctx.verbose) process.stderr.write(`DELETE /api/v202506/posts/${postId}/lighthouses/${id}
|
|
926
|
+
`);
|
|
839
927
|
const result = await client.delete(`/api/v202506/posts/${postId}/lighthouses/${id}`);
|
|
840
928
|
ctx.output(result);
|
|
841
929
|
});
|
|
842
|
-
resource.command("get-latest-enrollment-pack
|
|
930
|
+
resource.command("get-latest-enrollment-pack <enrollment-pack-id>").description("Get latest Lighthouse scan for an enrollment pack").action(async (enrollmentPackId) => {
|
|
843
931
|
const client = await ctx.getClient();
|
|
844
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
932
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v202506/enrollment_packs/${enrollmentPackId}/lighthouse
|
|
933
|
+
`);
|
|
845
934
|
const result = await client.get(`/api/v202506/enrollment_packs/${enrollmentPackId}/lighthouse`);
|
|
846
935
|
ctx.output(result);
|
|
847
936
|
});
|
|
848
|
-
resource.command("list-enrollment-pack
|
|
937
|
+
resource.command("list-enrollment-pack <enrollment-pack-id>").description("List all Lighthouse scans for an enrollment pack").option("--page <value>", "page").option("--per-page <value>", "per_page").action(async (enrollmentPackId, opts) => {
|
|
849
938
|
const client = await ctx.getClient();
|
|
850
939
|
const params = {};
|
|
851
940
|
if (opts.page !== void 0) params["page"] = Number(opts.page);
|
|
852
941
|
if (opts.perPage !== void 0) params["per_page"] = Number(opts.perPage);
|
|
853
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
942
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v202506/enrollment_packs/${enrollmentPackId}/lighthouses
|
|
943
|
+
`);
|
|
854
944
|
const result = await client.get(`/api/v202506/enrollment_packs/${enrollmentPackId}/lighthouses`, params);
|
|
855
945
|
ctx.output(result);
|
|
856
946
|
});
|
|
857
|
-
resource.command("create-enrollment-pack
|
|
947
|
+
resource.command("create-enrollment-pack <enrollment-pack-id>").description("Create a new Lighthouse scan for an enrollment pack").option("--body <json>", "Request body as JSON string").option("--body-file <path>", "Read request body from file").action(async (enrollmentPackId, opts) => {
|
|
858
948
|
const client = await ctx.getClient();
|
|
859
949
|
let body;
|
|
860
950
|
if (opts.bodyFile) {
|
|
861
951
|
const { readFileSync } = await import("fs");
|
|
862
952
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
863
953
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
864
|
-
if (ctx.verbose) process.stderr.write(`POST
|
|
954
|
+
if (ctx.verbose) process.stderr.write(`POST /api/v202506/enrollment_packs/${enrollmentPackId}/lighthouses
|
|
955
|
+
`);
|
|
865
956
|
const result = await client.post(`/api/v202506/enrollment_packs/${enrollmentPackId}/lighthouses`, body);
|
|
866
957
|
ctx.output(result);
|
|
867
958
|
});
|
|
868
|
-
resource.command("get-enrollment-pack
|
|
959
|
+
resource.command("get-enrollment-pack <enrollment-pack-id> <id>").description("Get a specific Lighthouse scan for an enrollment pack").action(async (enrollmentPackId, id) => {
|
|
869
960
|
const client = await ctx.getClient();
|
|
870
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
961
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v202506/enrollment_packs/${enrollmentPackId}/lighthouses/${id}
|
|
962
|
+
`);
|
|
871
963
|
const result = await client.get(`/api/v202506/enrollment_packs/${enrollmentPackId}/lighthouses/${id}`);
|
|
872
964
|
ctx.output(result);
|
|
873
965
|
});
|
|
874
|
-
resource.command("update-enrollment-pack
|
|
966
|
+
resource.command("update-enrollment-pack <enrollment-pack-id> <id>").description("Update a Lighthouse scan for an enrollment pack").option("--body <json>", "Request body as JSON string").option("--body-file <path>", "Read request body from file").action(async (enrollmentPackId, id, opts) => {
|
|
875
967
|
const client = await ctx.getClient();
|
|
876
968
|
let body;
|
|
877
969
|
if (opts.bodyFile) {
|
|
878
970
|
const { readFileSync } = await import("fs");
|
|
879
971
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
880
972
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
881
|
-
if (ctx.verbose) process.stderr.write(`PATCH
|
|
973
|
+
if (ctx.verbose) process.stderr.write(`PATCH /api/v202506/enrollment_packs/${enrollmentPackId}/lighthouses/${id}
|
|
974
|
+
`);
|
|
882
975
|
const result = await client.patch(`/api/v202506/enrollment_packs/${enrollmentPackId}/lighthouses/${id}`, body);
|
|
883
976
|
ctx.output(result);
|
|
884
977
|
});
|
|
885
|
-
resource.command("delete-enrollment-pack
|
|
978
|
+
resource.command("delete-enrollment-pack <enrollment-pack-id> <id>").description("Delete a Lighthouse scan for an enrollment pack").action(async (enrollmentPackId, id) => {
|
|
886
979
|
const client = await ctx.getClient();
|
|
887
|
-
if (ctx.verbose) process.stderr.write(`DELETE
|
|
980
|
+
if (ctx.verbose) process.stderr.write(`DELETE /api/v202506/enrollment_packs/${enrollmentPackId}/lighthouses/${id}
|
|
981
|
+
`);
|
|
888
982
|
const result = await client.delete(`/api/v202506/enrollment_packs/${enrollmentPackId}/lighthouses/${id}`);
|
|
889
983
|
ctx.output(result);
|
|
890
984
|
});
|
|
@@ -897,7 +991,8 @@ function registerMediaEnrollmentPacks(parent, ctx) {
|
|
|
897
991
|
const client = await ctx.getClient();
|
|
898
992
|
const params = {};
|
|
899
993
|
if (opts.page !== void 0) params["page"] = opts.page;
|
|
900
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
994
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v2025-06/media/${mediaId}/enrollment_packs
|
|
995
|
+
`);
|
|
901
996
|
const result = await client.get(`/api/v2025-06/media/${mediaId}/enrollment_packs`, params);
|
|
902
997
|
ctx.output(result);
|
|
903
998
|
});
|
|
@@ -908,13 +1003,15 @@ function registerMediaEnrollmentPacks(parent, ctx) {
|
|
|
908
1003
|
const { readFileSync } = await import("fs");
|
|
909
1004
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
910
1005
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
911
|
-
if (ctx.verbose) process.stderr.write(`POST
|
|
1006
|
+
if (ctx.verbose) process.stderr.write(`POST /api/v2025-06/media/${mediaId}/enrollment_packs
|
|
1007
|
+
`);
|
|
912
1008
|
const result = await client.post(`/api/v2025-06/media/${mediaId}/enrollment_packs`, body);
|
|
913
1009
|
ctx.output(result);
|
|
914
1010
|
});
|
|
915
|
-
resource.command("delete <media-id> <id>").description("Enrollment Pack removed from media").action(async (mediaId, id
|
|
1011
|
+
resource.command("delete <media-id> <id>").description("Enrollment Pack removed from media").action(async (mediaId, id) => {
|
|
916
1012
|
const client = await ctx.getClient();
|
|
917
|
-
if (ctx.verbose) process.stderr.write(`DELETE
|
|
1013
|
+
if (ctx.verbose) process.stderr.write(`DELETE /api/v2025-06/media/${mediaId}/enrollment_packs/${id}
|
|
1014
|
+
`);
|
|
918
1015
|
const result = await client.delete(`/api/v2025-06/media/${mediaId}/enrollment_packs/${id}`);
|
|
919
1016
|
ctx.output(result);
|
|
920
1017
|
});
|
|
@@ -927,7 +1024,8 @@ function registerMediaProducts(parent, ctx) {
|
|
|
927
1024
|
const client = await ctx.getClient();
|
|
928
1025
|
const params = {};
|
|
929
1026
|
if (opts.page !== void 0) params["page"] = opts.page;
|
|
930
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
1027
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v2025-06/media/${mediaId}/products
|
|
1028
|
+
`);
|
|
931
1029
|
const result = await client.get(`/api/v2025-06/media/${mediaId}/products`, params);
|
|
932
1030
|
ctx.output(result);
|
|
933
1031
|
});
|
|
@@ -938,24 +1036,62 @@ function registerMediaProducts(parent, ctx) {
|
|
|
938
1036
|
const { readFileSync } = await import("fs");
|
|
939
1037
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
940
1038
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
941
|
-
if (ctx.verbose) process.stderr.write(`POST
|
|
1039
|
+
if (ctx.verbose) process.stderr.write(`POST /api/v2025-06/media/${mediaId}/products
|
|
1040
|
+
`);
|
|
942
1041
|
const result = await client.post(`/api/v2025-06/media/${mediaId}/products`, body);
|
|
943
1042
|
ctx.output(result);
|
|
944
1043
|
});
|
|
945
|
-
resource.command("delete <media-id> <id>").description("Product removed from media").action(async (mediaId, id
|
|
1044
|
+
resource.command("delete <media-id> <id>").description("Product removed from media").action(async (mediaId, id) => {
|
|
946
1045
|
const client = await ctx.getClient();
|
|
947
|
-
if (ctx.verbose) process.stderr.write(`DELETE
|
|
1046
|
+
if (ctx.verbose) process.stderr.write(`DELETE /api/v2025-06/media/${mediaId}/products/${id}
|
|
1047
|
+
`);
|
|
948
1048
|
const result = await client.delete(`/api/v2025-06/media/${mediaId}/products/${id}`);
|
|
949
1049
|
ctx.output(result);
|
|
950
1050
|
});
|
|
951
1051
|
}
|
|
952
1052
|
//#endregion
|
|
1053
|
+
//#region src/generated/orders.ts
|
|
1054
|
+
function registerOrders(parent, ctx) {
|
|
1055
|
+
const resource = parent.command("orders").description("Orders");
|
|
1056
|
+
resource.command("export-csv").description("Export orders as CSV").option("--params <value>", "Query parameters for CSV export").action(async (opts) => {
|
|
1057
|
+
const client = await ctx.getClient();
|
|
1058
|
+
const params = {};
|
|
1059
|
+
if (opts.params !== void 0) params["params"] = opts.params;
|
|
1060
|
+
if (ctx.verbose) process.stderr.write("GET /api/v202506/orders/export_csv\n");
|
|
1061
|
+
const result = await client.get(`/api/v202506/orders/export_csv`, params);
|
|
1062
|
+
ctx.output(result);
|
|
1063
|
+
});
|
|
1064
|
+
resource.command("list").description("List orders").option("--params <value>", "Query parameters for filtering, pagination, and sorting").action(async (opts) => {
|
|
1065
|
+
const client = await ctx.getClient();
|
|
1066
|
+
const params = {};
|
|
1067
|
+
if (opts.params !== void 0) params["params"] = opts.params;
|
|
1068
|
+
if (ctx.verbose) process.stderr.write("GET /api/v202506/orders\n");
|
|
1069
|
+
const result = await client.get(`/api/v202506/orders`, params);
|
|
1070
|
+
ctx.output(result);
|
|
1071
|
+
});
|
|
1072
|
+
resource.command("get <id>").description("Get an order").action(async (id) => {
|
|
1073
|
+
const client = await ctx.getClient();
|
|
1074
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v202506/orders/${id}
|
|
1075
|
+
`);
|
|
1076
|
+
const result = await client.get(`/api/v202506/orders/${id}`);
|
|
1077
|
+
ctx.output(result);
|
|
1078
|
+
});
|
|
1079
|
+
resource.command("get-stats").description("Get order statistics").option("--params <value>", "Query parameters for filtering statistics").action(async (opts) => {
|
|
1080
|
+
const client = await ctx.getClient();
|
|
1081
|
+
const params = {};
|
|
1082
|
+
if (opts.params !== void 0) params["params"] = opts.params;
|
|
1083
|
+
if (ctx.verbose) process.stderr.write("GET /api/v202506/orders/stats\n");
|
|
1084
|
+
const result = await client.get(`/api/v202506/orders/stats`, params);
|
|
1085
|
+
ctx.output(result);
|
|
1086
|
+
});
|
|
1087
|
+
}
|
|
1088
|
+
//#endregion
|
|
953
1089
|
//#region src/generated/partner-tokens.ts
|
|
954
1090
|
function registerPartnerTokens(parent, ctx) {
|
|
955
1091
|
const resource = parent.command("partner-tokens").description("Partner Tokens");
|
|
956
|
-
resource.command("list-deprecated").description("returns an array of partner tokens").action(async (
|
|
1092
|
+
resource.command("list-deprecated").description("returns an array of partner tokens").action(async () => {
|
|
957
1093
|
const client = await ctx.getClient();
|
|
958
|
-
if (ctx.verbose) process.stderr.write(
|
|
1094
|
+
if (ctx.verbose) process.stderr.write("GET /api/v2025-06/partner_tokens\n");
|
|
959
1095
|
const result = await client.get(`/api/v2025-06/partner_tokens`);
|
|
960
1096
|
ctx.output(result);
|
|
961
1097
|
});
|
|
@@ -966,13 +1102,14 @@ function registerPartnerTokens(parent, ctx) {
|
|
|
966
1102
|
const { readFileSync } = await import("fs");
|
|
967
1103
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
968
1104
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
969
|
-
if (ctx.verbose) process.stderr.write(
|
|
1105
|
+
if (ctx.verbose) process.stderr.write("POST /api/v2025-06/partner_tokens\n");
|
|
970
1106
|
const result = await client.post(`/api/v2025-06/partner_tokens`, body);
|
|
971
1107
|
ctx.output(result);
|
|
972
1108
|
});
|
|
973
|
-
resource.command("get-deprecated <id>").description("returns a specific partner token").action(async (id
|
|
1109
|
+
resource.command("get-deprecated <id>").description("returns a specific partner token").action(async (id) => {
|
|
974
1110
|
const client = await ctx.getClient();
|
|
975
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
1111
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v2025-06/partner_tokens/${id}
|
|
1112
|
+
`);
|
|
976
1113
|
const result = await client.get(`/api/v2025-06/partner_tokens/${id}`);
|
|
977
1114
|
ctx.output(result);
|
|
978
1115
|
});
|
|
@@ -983,19 +1120,21 @@ function registerPartnerTokens(parent, ctx) {
|
|
|
983
1120
|
const { readFileSync } = await import("fs");
|
|
984
1121
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
985
1122
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
986
|
-
if (ctx.verbose) process.stderr.write(`PUT
|
|
1123
|
+
if (ctx.verbose) process.stderr.write(`PUT /api/v2025-06/partner_tokens/${id}
|
|
1124
|
+
`);
|
|
987
1125
|
const result = await client.put(`/api/v2025-06/partner_tokens/${id}`, body);
|
|
988
1126
|
ctx.output(result);
|
|
989
1127
|
});
|
|
990
|
-
resource.command("delete-deprecated <id>").description("deletes a partner token").action(async (id
|
|
1128
|
+
resource.command("delete-deprecated <id>").description("deletes a partner token").action(async (id) => {
|
|
991
1129
|
const client = await ctx.getClient();
|
|
992
|
-
if (ctx.verbose) process.stderr.write(`DELETE
|
|
1130
|
+
if (ctx.verbose) process.stderr.write(`DELETE /api/v2025-06/partner_tokens/${id}
|
|
1131
|
+
`);
|
|
993
1132
|
const result = await client.delete(`/api/v2025-06/partner_tokens/${id}`);
|
|
994
1133
|
ctx.output(result);
|
|
995
1134
|
});
|
|
996
|
-
resource.command("list").description("returns an array of partner tokens").action(async (
|
|
1135
|
+
resource.command("list").description("returns an array of partner tokens").action(async () => {
|
|
997
1136
|
const client = await ctx.getClient();
|
|
998
|
-
if (ctx.verbose) process.stderr.write(
|
|
1137
|
+
if (ctx.verbose) process.stderr.write("GET /api/v2025-06/tokens/partner\n");
|
|
999
1138
|
const result = await client.get(`/api/v2025-06/tokens/partner`);
|
|
1000
1139
|
ctx.output(result);
|
|
1001
1140
|
});
|
|
@@ -1006,13 +1145,14 @@ function registerPartnerTokens(parent, ctx) {
|
|
|
1006
1145
|
const { readFileSync } = await import("fs");
|
|
1007
1146
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
1008
1147
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
1009
|
-
if (ctx.verbose) process.stderr.write(
|
|
1148
|
+
if (ctx.verbose) process.stderr.write("POST /api/v2025-06/tokens/partner\n");
|
|
1010
1149
|
const result = await client.post(`/api/v2025-06/tokens/partner`, body);
|
|
1011
1150
|
ctx.output(result);
|
|
1012
1151
|
});
|
|
1013
|
-
resource.command("get <id>").description("returns a specific partner token").action(async (id
|
|
1152
|
+
resource.command("get <id>").description("returns a specific partner token").action(async (id) => {
|
|
1014
1153
|
const client = await ctx.getClient();
|
|
1015
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
1154
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v2025-06/tokens/partner/${id}
|
|
1155
|
+
`);
|
|
1016
1156
|
const result = await client.get(`/api/v2025-06/tokens/partner/${id}`);
|
|
1017
1157
|
ctx.output(result);
|
|
1018
1158
|
});
|
|
@@ -1023,13 +1163,15 @@ function registerPartnerTokens(parent, ctx) {
|
|
|
1023
1163
|
const { readFileSync } = await import("fs");
|
|
1024
1164
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
1025
1165
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
1026
|
-
if (ctx.verbose) process.stderr.write(`PUT
|
|
1166
|
+
if (ctx.verbose) process.stderr.write(`PUT /api/v2025-06/tokens/partner/${id}
|
|
1167
|
+
`);
|
|
1027
1168
|
const result = await client.put(`/api/v2025-06/tokens/partner/${id}`, body);
|
|
1028
1169
|
ctx.output(result);
|
|
1029
1170
|
});
|
|
1030
|
-
resource.command("delete <id>").description("deletes a partner token").action(async (id
|
|
1171
|
+
resource.command("delete <id>").description("deletes a partner token").action(async (id) => {
|
|
1031
1172
|
const client = await ctx.getClient();
|
|
1032
|
-
if (ctx.verbose) process.stderr.write(`DELETE
|
|
1173
|
+
if (ctx.verbose) process.stderr.write(`DELETE /api/v2025-06/tokens/partner/${id}
|
|
1174
|
+
`);
|
|
1033
1175
|
const result = await client.delete(`/api/v2025-06/tokens/partner/${id}`);
|
|
1034
1176
|
ctx.output(result);
|
|
1035
1177
|
});
|
|
@@ -1038,36 +1180,39 @@ function registerPartnerTokens(parent, ctx) {
|
|
|
1038
1180
|
//#region src/generated/playlists.ts
|
|
1039
1181
|
function registerPlaylists(parent, ctx) {
|
|
1040
1182
|
const resource = parent.command("playlists").description("Playlists");
|
|
1041
|
-
resource.command("clone
|
|
1183
|
+
resource.command("clone <playlist-id>").description("Clone a playlist").option("--body <json>", "Request body as JSON string").option("--body-file <path>", "Read request body from file").action(async (playlistId, opts) => {
|
|
1042
1184
|
const client = await ctx.getClient();
|
|
1043
1185
|
let body;
|
|
1044
1186
|
if (opts.bodyFile) {
|
|
1045
1187
|
const { readFileSync } = await import("fs");
|
|
1046
1188
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
1047
1189
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
1048
|
-
if (ctx.verbose) process.stderr.write(`POST
|
|
1190
|
+
if (ctx.verbose) process.stderr.write(`POST /api/v2025-06/playlists/${playlistId}/clone
|
|
1191
|
+
`);
|
|
1049
1192
|
const result = await client.post(`/api/v2025-06/playlists/${playlistId}/clone`, body);
|
|
1050
1193
|
ctx.output(result);
|
|
1051
1194
|
});
|
|
1052
|
-
resource.command("add-
|
|
1195
|
+
resource.command("add-items <playlist-id>").description("add items to playlist").option("--body <json>", "Request body as JSON string").option("--body-file <path>", "Read request body from file").action(async (playlistId, opts) => {
|
|
1053
1196
|
const client = await ctx.getClient();
|
|
1054
1197
|
let body;
|
|
1055
1198
|
if (opts.bodyFile) {
|
|
1056
1199
|
const { readFileSync } = await import("fs");
|
|
1057
1200
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
1058
1201
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
1059
|
-
if (ctx.verbose) process.stderr.write(`POST
|
|
1202
|
+
if (ctx.verbose) process.stderr.write(`POST /api/v2025-06/playlists/${playlistId}/items
|
|
1203
|
+
`);
|
|
1060
1204
|
const result = await client.post(`/api/v2025-06/playlists/${playlistId}/items`, body);
|
|
1061
1205
|
ctx.output(result);
|
|
1062
1206
|
});
|
|
1063
|
-
resource.command("remove-
|
|
1207
|
+
resource.command("remove-items <playlist-id>").description("remove items from playlist").option("--body <json>", "Request body as JSON string").option("--body-file <path>", "Read request body from file").action(async (playlistId, opts) => {
|
|
1064
1208
|
const client = await ctx.getClient();
|
|
1065
1209
|
let body;
|
|
1066
1210
|
if (opts.bodyFile) {
|
|
1067
1211
|
const { readFileSync } = await import("fs");
|
|
1068
1212
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
1069
1213
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
1070
|
-
if (ctx.verbose) process.stderr.write(`DELETE
|
|
1214
|
+
if (ctx.verbose) process.stderr.write(`DELETE /api/v2025-06/playlists/${playlistId}/items
|
|
1215
|
+
`);
|
|
1071
1216
|
const result = await client.delete(`/api/v2025-06/playlists/${playlistId}/items`, { body });
|
|
1072
1217
|
ctx.output(result);
|
|
1073
1218
|
});
|
|
@@ -1078,30 +1223,32 @@ function registerPlaylists(parent, ctx) {
|
|
|
1078
1223
|
const { readFileSync } = await import("fs");
|
|
1079
1224
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
1080
1225
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
1081
|
-
if (ctx.verbose) process.stderr.write(
|
|
1226
|
+
if (ctx.verbose) process.stderr.write("POST /api/v2025-06/playlists\n");
|
|
1082
1227
|
const result = await client.post(`/api/v2025-06/playlists`, body);
|
|
1083
1228
|
ctx.output(result);
|
|
1084
1229
|
});
|
|
1085
|
-
resource.command("list").description("list playlists").option("--page-cursor <value>", "
|
|
1230
|
+
resource.command("list").description("list playlists").option("--page-cursor <value>", "Cursor for pagination").option("--page-limit <value>", "Number of records per page").option("--filter-status <value>", "Filter playlists by status").option("--filter-title <value>", "Filter playlists by title").action(async (opts) => {
|
|
1086
1231
|
const client = await ctx.getClient();
|
|
1087
1232
|
const params = {};
|
|
1088
1233
|
if (opts.pageCursor !== void 0) params["page[cursor]"] = opts.pageCursor;
|
|
1089
1234
|
if (opts.pageLimit !== void 0) params["page[limit]"] = Number(opts.pageLimit);
|
|
1090
1235
|
if (opts.filterStatus !== void 0) params["filter[status]"] = opts.filterStatus;
|
|
1091
1236
|
if (opts.filterTitle !== void 0) params["filter[title]"] = opts.filterTitle;
|
|
1092
|
-
if (ctx.verbose) process.stderr.write(
|
|
1237
|
+
if (ctx.verbose) process.stderr.write("GET /api/v2025-06/playlists\n");
|
|
1093
1238
|
const result = await client.get(`/api/v2025-06/playlists`, params);
|
|
1094
1239
|
ctx.output(result);
|
|
1095
1240
|
});
|
|
1096
|
-
resource.command("delete <id>").description("delete playlist").action(async (id
|
|
1241
|
+
resource.command("delete <id>").description("delete playlist").action(async (id) => {
|
|
1097
1242
|
const client = await ctx.getClient();
|
|
1098
|
-
if (ctx.verbose) process.stderr.write(`DELETE
|
|
1243
|
+
if (ctx.verbose) process.stderr.write(`DELETE /api/v2025-06/playlists/${id}
|
|
1244
|
+
`);
|
|
1099
1245
|
const result = await client.delete(`/api/v2025-06/playlists/${id}`);
|
|
1100
1246
|
ctx.output(result);
|
|
1101
1247
|
});
|
|
1102
|
-
resource.command("get <id>").description("show playlist").action(async (id
|
|
1248
|
+
resource.command("get <id>").description("show playlist").action(async (id) => {
|
|
1103
1249
|
const client = await ctx.getClient();
|
|
1104
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
1250
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v2025-06/playlists/${id}
|
|
1251
|
+
`);
|
|
1105
1252
|
const result = await client.get(`/api/v2025-06/playlists/${id}`);
|
|
1106
1253
|
ctx.output(result);
|
|
1107
1254
|
});
|
|
@@ -1112,17 +1259,18 @@ function registerPlaylists(parent, ctx) {
|
|
|
1112
1259
|
const { readFileSync } = await import("fs");
|
|
1113
1260
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
1114
1261
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
1115
|
-
if (ctx.verbose) process.stderr.write(`PATCH
|
|
1262
|
+
if (ctx.verbose) process.stderr.write(`PATCH /api/v2025-06/playlists/${id}
|
|
1263
|
+
`);
|
|
1116
1264
|
const result = await client.patch(`/api/v2025-06/playlists/${id}`, body);
|
|
1117
1265
|
ctx.output(result);
|
|
1118
1266
|
});
|
|
1119
|
-
resource.command("get-shareable-items").description("search shareable items").option("--type <value>", "
|
|
1267
|
+
resource.command("get-shareable-items").description("search shareable items").option("--type <value>", "Type of resource to search for ('Page', 'Product', 'Promotion', 'EnrollmentPack', 'Medium')").option("--search <value>", "Search term to filter items by title").option("--country-id <value>", "Country ID to filter items").action(async (opts) => {
|
|
1120
1268
|
const client = await ctx.getClient();
|
|
1121
1269
|
const params = {};
|
|
1122
1270
|
if (opts.type !== void 0) params["type"] = opts.type;
|
|
1123
1271
|
if (opts.search !== void 0) params["search"] = opts.search;
|
|
1124
1272
|
if (opts.countryId !== void 0) params["country_id"] = Number(opts.countryId);
|
|
1125
|
-
if (ctx.verbose) process.stderr.write(
|
|
1273
|
+
if (ctx.verbose) process.stderr.write("GET /api/v2025-06/playlists/shareables\n");
|
|
1126
1274
|
const result = await client.get(`/api/v2025-06/playlists/shareables`, params);
|
|
1127
1275
|
ctx.output(result);
|
|
1128
1276
|
});
|
|
@@ -1135,7 +1283,8 @@ function registerProductMedia(parent, ctx) {
|
|
|
1135
1283
|
const client = await ctx.getClient();
|
|
1136
1284
|
const params = {};
|
|
1137
1285
|
if (opts.page !== void 0) params["page"] = opts.page;
|
|
1138
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
1286
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v2025-06/products/${productId}/media
|
|
1287
|
+
`);
|
|
1139
1288
|
const result = await client.get(`/api/v2025-06/products/${productId}/media`, params);
|
|
1140
1289
|
ctx.output(result);
|
|
1141
1290
|
});
|
|
@@ -1146,20 +1295,22 @@ function registerProductMedia(parent, ctx) {
|
|
|
1146
1295
|
const { readFileSync } = await import("fs");
|
|
1147
1296
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
1148
1297
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
1149
|
-
if (ctx.verbose) process.stderr.write(`POST
|
|
1298
|
+
if (ctx.verbose) process.stderr.write(`POST /api/v2025-06/products/${productId}/media
|
|
1299
|
+
`);
|
|
1150
1300
|
const result = await client.post(`/api/v2025-06/products/${productId}/media`, body);
|
|
1151
1301
|
ctx.output(result);
|
|
1152
1302
|
});
|
|
1153
|
-
resource.command("delete <product-id> <id>").description("Media removed from product").action(async (productId, id
|
|
1303
|
+
resource.command("delete <product-id> <id>").description("Media removed from product").action(async (productId, id) => {
|
|
1154
1304
|
const client = await ctx.getClient();
|
|
1155
|
-
if (ctx.verbose) process.stderr.write(`DELETE
|
|
1305
|
+
if (ctx.verbose) process.stderr.write(`DELETE /api/v2025-06/products/${productId}/media/${id}
|
|
1306
|
+
`);
|
|
1156
1307
|
const result = await client.delete(`/api/v2025-06/products/${productId}/media/${id}`);
|
|
1157
1308
|
ctx.output(result);
|
|
1158
1309
|
});
|
|
1159
1310
|
}
|
|
1160
1311
|
//#endregion
|
|
1161
1312
|
//#region src/generated/reps.ts
|
|
1162
|
-
function parseBooleanOption$
|
|
1313
|
+
function parseBooleanOption$2(value, flag) {
|
|
1163
1314
|
const normalized = value.trim().toLowerCase();
|
|
1164
1315
|
if ([
|
|
1165
1316
|
"true",
|
|
@@ -1184,19 +1335,19 @@ function registerReps(parent, ctx) {
|
|
|
1184
1335
|
const { readFileSync } = await import("fs");
|
|
1185
1336
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
1186
1337
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
1187
|
-
if (ctx.verbose) process.stderr.write(
|
|
1338
|
+
if (ctx.verbose) process.stderr.write("POST /api/v2025-06/reps\n");
|
|
1188
1339
|
const result = await client.post(`/api/v2025-06/reps`, body);
|
|
1189
1340
|
ctx.output(result);
|
|
1190
1341
|
});
|
|
1191
|
-
resource.command("list").description("List reps").option("--params <value>", "
|
|
1342
|
+
resource.command("list").description("List reps").option("--params <value>", "Query parameters for filtering, pagination, and sorting").action(async (opts) => {
|
|
1192
1343
|
const client = await ctx.getClient();
|
|
1193
1344
|
const params = {};
|
|
1194
1345
|
if (opts.params !== void 0) params["params"] = opts.params;
|
|
1195
|
-
if (ctx.verbose) process.stderr.write(
|
|
1346
|
+
if (ctx.verbose) process.stderr.write("GET /api/v2025-06/reps\n");
|
|
1196
1347
|
const result = await client.get(`/api/v2025-06/reps`, params);
|
|
1197
1348
|
ctx.output(result);
|
|
1198
1349
|
});
|
|
1199
|
-
resource.command("get-credited-orders <rep-id>").description("List credited orders for a rep").option("--start-date <value>", "
|
|
1350
|
+
resource.command("get-credited-orders <rep-id>").description("List credited orders for a rep").option("--start-date <value>", "Filter orders from this date (ISO 8601 format)").option("--end-date <value>", "Filter orders until this date (ISO 8601 format)").option("--page <value>", "Page number for pagination").option("--per-page <value>", "Number of records per page").option("--customer-id <value>", "Filter orders by customer ID").option("--user-company-id <value>", "Filter orders by user company ID").option("--unfulfilled <value>", "Filter unfulfilled orders").option("--unpaid <value>", "Filter unpaid orders").option("--search-query <value>", "Search orders by query").option("--within-days <value>", "Filter orders within specified number of days").option("--metadata <value>", "Filter orders by metadata (JSON string)").option("--subscription-id <value>", "Filter orders by subscription ID").option("--sorted-by <value>", "Sort orders by field and direction (e.g., 'created_at_desc')").option("--status <value>", "Filter orders by status or 'all' for all statuses").option("--type <value>", "Filter orders by type").option("--cart-source <value>", "Filter orders by cart source").option("--country-isos <value>", "Filter orders by country ISO codes (comma-separated)").option("--force-stats <value>", "Force stats calculation even for large datasets (>10,000 records)").action(async (repId, opts) => {
|
|
1200
1351
|
const client = await ctx.getClient();
|
|
1201
1352
|
const params = {};
|
|
1202
1353
|
if (opts.startDate !== void 0) params["start_date"] = opts.startDate;
|
|
@@ -1205,8 +1356,8 @@ function registerReps(parent, ctx) {
|
|
|
1205
1356
|
if (opts.perPage !== void 0) params["per_page"] = Number(opts.perPage);
|
|
1206
1357
|
if (opts.customerId !== void 0) params["customer_id"] = Number(opts.customerId);
|
|
1207
1358
|
if (opts.userCompanyId !== void 0) params["user_company_id"] = Number(opts.userCompanyId);
|
|
1208
|
-
if (opts.unfulfilled !== void 0) params["unfulfilled"] = parseBooleanOption$
|
|
1209
|
-
if (opts.unpaid !== void 0) params["unpaid"] = parseBooleanOption$
|
|
1359
|
+
if (opts.unfulfilled !== void 0) params["unfulfilled"] = parseBooleanOption$2(opts.unfulfilled, "--unfulfilled");
|
|
1360
|
+
if (opts.unpaid !== void 0) params["unpaid"] = parseBooleanOption$2(opts.unpaid, "--unpaid");
|
|
1210
1361
|
if (opts.searchQuery !== void 0) params["search_query"] = opts.searchQuery;
|
|
1211
1362
|
if (opts.withinDays !== void 0) params["within_days"] = Number(opts.withinDays);
|
|
1212
1363
|
if (opts.metadata !== void 0) params["metadata"] = opts.metadata;
|
|
@@ -1216,20 +1367,23 @@ function registerReps(parent, ctx) {
|
|
|
1216
1367
|
if (opts.type !== void 0) params["type"] = opts.type;
|
|
1217
1368
|
if (opts.cartSource !== void 0) params["cart_source"] = opts.cartSource;
|
|
1218
1369
|
if (opts.countryIsos !== void 0) params["country_isos"] = opts.countryIsos;
|
|
1219
|
-
if (opts.forceStats !== void 0) params["force_stats"] = parseBooleanOption$
|
|
1220
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
1370
|
+
if (opts.forceStats !== void 0) params["force_stats"] = parseBooleanOption$2(opts.forceStats, "--force-stats");
|
|
1371
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v2025-06/reps/${repId}/credited_orders
|
|
1372
|
+
`);
|
|
1221
1373
|
const result = await client.get(`/api/v2025-06/reps/${repId}/credited_orders`, params);
|
|
1222
1374
|
ctx.output(result);
|
|
1223
1375
|
});
|
|
1224
|
-
resource.command("delete <id>").description("Delete a rep").action(async (id
|
|
1376
|
+
resource.command("delete <id>").description("Delete a rep").action(async (id) => {
|
|
1225
1377
|
const client = await ctx.getClient();
|
|
1226
|
-
if (ctx.verbose) process.stderr.write(`DELETE
|
|
1378
|
+
if (ctx.verbose) process.stderr.write(`DELETE /api/v2025-06/reps/${id}
|
|
1379
|
+
`);
|
|
1227
1380
|
const result = await client.delete(`/api/v2025-06/reps/${id}`);
|
|
1228
1381
|
ctx.output(result);
|
|
1229
1382
|
});
|
|
1230
|
-
resource.command("get <id>").description("Get a rep").action(async (id
|
|
1383
|
+
resource.command("get <id>").description("Get a rep").action(async (id) => {
|
|
1231
1384
|
const client = await ctx.getClient();
|
|
1232
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
1385
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v2025-06/reps/${id}
|
|
1386
|
+
`);
|
|
1233
1387
|
const result = await client.get(`/api/v2025-06/reps/${id}`);
|
|
1234
1388
|
ctx.output(result);
|
|
1235
1389
|
});
|
|
@@ -1240,46 +1394,51 @@ function registerReps(parent, ctx) {
|
|
|
1240
1394
|
const { readFileSync } = await import("fs");
|
|
1241
1395
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
1242
1396
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
1243
|
-
if (ctx.verbose) process.stderr.write(`PATCH
|
|
1397
|
+
if (ctx.verbose) process.stderr.write(`PATCH /api/v2025-06/reps/${id}
|
|
1398
|
+
`);
|
|
1244
1399
|
const result = await client.patch(`/api/v2025-06/reps/${id}`, body);
|
|
1245
1400
|
ctx.output(result);
|
|
1246
1401
|
});
|
|
1247
|
-
resource.command("get-most-shared <rep-id>").description("Get most shared resources").option("--limit <value>", "
|
|
1402
|
+
resource.command("get-most-shared <rep-id>").description("Get most shared resources").option("--limit <value>", "Number of resources to return (default: 10)").option("--period <value>", "Time period filter: 7d, 30d, 90d, 1y, or all (default: all)").option("--shareable-type <value>", "Type of resource to filter: products, media, pages, libraries, enrollment_packs, or promotions").option("--language-iso <value>", "Language code for translations (e.g., 'en', 'es', 'de')").action(async (repId, opts) => {
|
|
1248
1403
|
const client = await ctx.getClient();
|
|
1249
1404
|
const params = {};
|
|
1250
1405
|
if (opts.limit !== void 0) params["limit"] = Number(opts.limit);
|
|
1251
1406
|
if (opts.period !== void 0) params["period"] = opts.period;
|
|
1252
1407
|
if (opts.shareableType !== void 0) params["shareable_type"] = opts.shareableType;
|
|
1253
1408
|
if (opts.languageIso !== void 0) params["language_iso"] = opts.languageIso;
|
|
1254
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
1409
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v2025-06/reps/${repId}/most_shared
|
|
1410
|
+
`);
|
|
1255
1411
|
const result = await client.get(`/api/v2025-06/reps/${repId}/most_shared`, params);
|
|
1256
1412
|
ctx.output(result);
|
|
1257
1413
|
});
|
|
1258
|
-
resource.command("get-most-viewed <rep-id>").description("Get most viewed resources").option("--limit <value>", "
|
|
1414
|
+
resource.command("get-most-viewed <rep-id>").description("Get most viewed resources").option("--limit <value>", "Number of resources to return (default: 10)").option("--period <value>", "Time period filter: 7d, 30d, 90d, 1y, or all (default: all)").option("--shareable-type <value>", "Type of resource to filter: products, media, pages, libraries, enrollment_packs, or promotions").option("--language-iso <value>", "Language code for translations (e.g., 'en', 'es', 'de')").action(async (repId, opts) => {
|
|
1259
1415
|
const client = await ctx.getClient();
|
|
1260
1416
|
const params = {};
|
|
1261
1417
|
if (opts.limit !== void 0) params["limit"] = Number(opts.limit);
|
|
1262
1418
|
if (opts.period !== void 0) params["period"] = opts.period;
|
|
1263
1419
|
if (opts.shareableType !== void 0) params["shareable_type"] = opts.shareableType;
|
|
1264
1420
|
if (opts.languageIso !== void 0) params["language_iso"] = opts.languageIso;
|
|
1265
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
1421
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v2025-06/reps/${repId}/most_viewed
|
|
1422
|
+
`);
|
|
1266
1423
|
const result = await client.get(`/api/v2025-06/reps/${repId}/most_viewed`, params);
|
|
1267
1424
|
ctx.output(result);
|
|
1268
1425
|
});
|
|
1269
|
-
resource.command("get-shared-assets <rep-id>").description("List shared assets for a rep").option("--limit <value>", "
|
|
1426
|
+
resource.command("get-shared-assets <rep-id>").description("List shared assets for a rep").option("--limit <value>", "Maximum number of assets to return (default: 12)").action(async (repId, opts) => {
|
|
1270
1427
|
const client = await ctx.getClient();
|
|
1271
1428
|
const params = {};
|
|
1272
1429
|
if (opts.limit !== void 0) params["limit"] = Number(opts.limit);
|
|
1273
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
1430
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v2025-06/reps/${repId}/shared_assets
|
|
1431
|
+
`);
|
|
1274
1432
|
const result = await client.get(`/api/v2025-06/reps/${repId}/shared_assets`, params);
|
|
1275
1433
|
ctx.output(result);
|
|
1276
1434
|
});
|
|
1277
|
-
resource.command("get-top-products-sold <rep-id>").description("Get top products sold by rep").option("--limit <value>", "
|
|
1435
|
+
resource.command("get-top-products-sold <rep-id>").description("Get top products sold by rep").option("--limit <value>", "Number of top products to return (1-10, default: 5)").option("--period <value>", "Time period filter: 7d, 30d, 90d, 1y, or all (default: all)").action(async (repId, opts) => {
|
|
1278
1436
|
const client = await ctx.getClient();
|
|
1279
1437
|
const params = {};
|
|
1280
1438
|
if (opts.limit !== void 0) params["limit"] = Number(opts.limit);
|
|
1281
1439
|
if (opts.period !== void 0) params["period"] = opts.period;
|
|
1282
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
1440
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v2025-06/reps/${repId}/top_products_sold
|
|
1441
|
+
`);
|
|
1283
1442
|
const result = await client.get(`/api/v2025-06/reps/${repId}/top_products_sold`, params);
|
|
1284
1443
|
ctx.output(result);
|
|
1285
1444
|
});
|
|
@@ -1290,7 +1449,7 @@ function registerReps(parent, ctx) {
|
|
|
1290
1449
|
const { readFileSync } = await import("fs");
|
|
1291
1450
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
1292
1451
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
1293
|
-
if (ctx.verbose) process.stderr.write(
|
|
1452
|
+
if (ctx.verbose) process.stderr.write("POST /api/v2025-06/reps/bulk\n");
|
|
1294
1453
|
const result = await client.post(`/api/v2025-06/reps/bulk`, body);
|
|
1295
1454
|
ctx.output(result);
|
|
1296
1455
|
});
|
|
@@ -1301,7 +1460,7 @@ function registerReps(parent, ctx) {
|
|
|
1301
1460
|
const { readFileSync } = await import("fs");
|
|
1302
1461
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
1303
1462
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
1304
|
-
if (ctx.verbose) process.stderr.write(
|
|
1463
|
+
if (ctx.verbose) process.stderr.write("DELETE /api/v2025-06/reps/bulk\n");
|
|
1305
1464
|
const result = await client.delete(`/api/v2025-06/reps/bulk`, { body });
|
|
1306
1465
|
ctx.output(result);
|
|
1307
1466
|
});
|
|
@@ -1310,64 +1469,83 @@ function registerReps(parent, ctx) {
|
|
|
1310
1469
|
//#region src/generated/share-statistics.ts
|
|
1311
1470
|
function registerShareStatistics(parent, ctx) {
|
|
1312
1471
|
const resource = parent.command("share-statistics").description("Share Statistics");
|
|
1313
|
-
resource.command("get-media-share-stats <id>").description("Get share statistics for media").action(async (id
|
|
1472
|
+
resource.command("get-media-share-stats <id>").description("Get share statistics for media").action(async (id) => {
|
|
1314
1473
|
const client = await ctx.getClient();
|
|
1315
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
1474
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v2025-06/media/${id}/share_stats
|
|
1475
|
+
`);
|
|
1316
1476
|
const result = await client.get(`/api/v2025-06/media/${id}/share_stats`);
|
|
1317
1477
|
ctx.output(result);
|
|
1318
1478
|
});
|
|
1319
|
-
resource.command("get-product-share-stats <id>").description("Get share statistics for product").action(async (id
|
|
1479
|
+
resource.command("get-product-share-stats <id>").description("Get share statistics for product").action(async (id) => {
|
|
1320
1480
|
const client = await ctx.getClient();
|
|
1321
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
1481
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v2025-06/products/${id}/share_stats
|
|
1482
|
+
`);
|
|
1322
1483
|
const result = await client.get(`/api/v2025-06/products/${id}/share_stats`);
|
|
1323
1484
|
ctx.output(result);
|
|
1324
1485
|
});
|
|
1325
|
-
resource.command("get-playlist-share-stats <id>").description("Get share statistics for playlist").action(async (id
|
|
1486
|
+
resource.command("get-playlist-share-stats <id>").description("Get share statistics for playlist").action(async (id) => {
|
|
1326
1487
|
const client = await ctx.getClient();
|
|
1327
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
1488
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v2025-06/playlists/${id}/share_stats
|
|
1489
|
+
`);
|
|
1328
1490
|
const result = await client.get(`/api/v2025-06/playlists/${id}/share_stats`);
|
|
1329
1491
|
ctx.output(result);
|
|
1330
1492
|
});
|
|
1331
|
-
resource.command("get-category-share-stats <id>").description("Get share statistics for category").action(async (id
|
|
1493
|
+
resource.command("get-category-share-stats <id>").description("Get share statistics for category").action(async (id) => {
|
|
1332
1494
|
const client = await ctx.getClient();
|
|
1333
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
1495
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v2025-06/categories/${id}/share_stats
|
|
1496
|
+
`);
|
|
1334
1497
|
const result = await client.get(`/api/v2025-06/categories/${id}/share_stats`);
|
|
1335
1498
|
ctx.output(result);
|
|
1336
1499
|
});
|
|
1337
|
-
resource.command("get-collection-share-stats <id>").description("Get share statistics for collection").action(async (id
|
|
1500
|
+
resource.command("get-collection-share-stats <id>").description("Get share statistics for collection").action(async (id) => {
|
|
1338
1501
|
const client = await ctx.getClient();
|
|
1339
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
1502
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v2025-06/collections/${id}/share_stats
|
|
1503
|
+
`);
|
|
1340
1504
|
const result = await client.get(`/api/v2025-06/collections/${id}/share_stats`);
|
|
1341
1505
|
ctx.output(result);
|
|
1342
1506
|
});
|
|
1343
|
-
resource.command("get-post-share-stats <id>").description("Get share statistics for post").action(async (id
|
|
1507
|
+
resource.command("get-post-share-stats <id>").description("Get share statistics for post").action(async (id) => {
|
|
1344
1508
|
const client = await ctx.getClient();
|
|
1345
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
1509
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v2025-06/posts/${id}/share_stats
|
|
1510
|
+
`);
|
|
1346
1511
|
const result = await client.get(`/api/v2025-06/posts/${id}/share_stats`);
|
|
1347
1512
|
ctx.output(result);
|
|
1348
1513
|
});
|
|
1349
|
-
resource.command("get-page-share-stats <id>").description("Get share statistics for page").action(async (id
|
|
1514
|
+
resource.command("get-page-share-stats <id>").description("Get share statistics for page").action(async (id) => {
|
|
1350
1515
|
const client = await ctx.getClient();
|
|
1351
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
1516
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v2025-06/pages/${id}/share_stats
|
|
1517
|
+
`);
|
|
1352
1518
|
const result = await client.get(`/api/v2025-06/pages/${id}/share_stats`);
|
|
1353
1519
|
ctx.output(result);
|
|
1354
1520
|
});
|
|
1355
|
-
resource.command("get-enrollment-pack-share-stats <id>").description("Get share statistics for enrollment pack").action(async (id
|
|
1521
|
+
resource.command("get-enrollment-pack-share-stats <id>").description("Get share statistics for enrollment pack").action(async (id) => {
|
|
1356
1522
|
const client = await ctx.getClient();
|
|
1357
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
1523
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v2025-06/enrollment_packs/${id}/share_stats
|
|
1524
|
+
`);
|
|
1358
1525
|
const result = await client.get(`/api/v2025-06/enrollment_packs/${id}/share_stats`);
|
|
1359
1526
|
ctx.output(result);
|
|
1360
1527
|
});
|
|
1361
1528
|
}
|
|
1362
1529
|
//#endregion
|
|
1530
|
+
//#region src/generated/users-brand-guidelines.ts
|
|
1531
|
+
function registerUsersBrandGuidelines(parent, ctx) {
|
|
1532
|
+
parent.command("users-brand-guidelines").description("Users Brand Guidelines").command("get-user-brand-guidelines").description("Show brand guidelines").action(async () => {
|
|
1533
|
+
const client = await ctx.getClient();
|
|
1534
|
+
if (ctx.verbose) process.stderr.write("GET /api/users/v2025-06/brand_guidelines\n");
|
|
1535
|
+
const result = await client.get(`/api/users/v2025-06/brand_guidelines`);
|
|
1536
|
+
ctx.output(result);
|
|
1537
|
+
});
|
|
1538
|
+
}
|
|
1539
|
+
//#endregion
|
|
1363
1540
|
//#region src/generated/users-contacts.ts
|
|
1364
1541
|
function registerUsersContacts(parent, ctx) {
|
|
1365
1542
|
const resource = parent.command("users-contacts").description("Users Contacts");
|
|
1366
|
-
resource.command("list-user-contact-activities <id>").description("List activities for a contact").option("--page <value>", "
|
|
1543
|
+
resource.command("list-user-contact-activities <id>").description("List activities for a contact").option("--page <value>", "Page number for pagination").action(async (id, opts) => {
|
|
1367
1544
|
const client = await ctx.getClient();
|
|
1368
1545
|
const params = {};
|
|
1369
1546
|
if (opts.page !== void 0) params["page"] = Number(opts.page);
|
|
1370
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
1547
|
+
if (ctx.verbose) process.stderr.write(`GET /api/users/v2025-06/contacts/${id}/activities
|
|
1548
|
+
`);
|
|
1371
1549
|
const result = await client.get(`/api/users/v2025-06/contacts/${id}/activities`, params);
|
|
1372
1550
|
ctx.output(result);
|
|
1373
1551
|
});
|
|
@@ -1378,7 +1556,7 @@ function registerUsersContacts(parent, ctx) {
|
|
|
1378
1556
|
const { readFileSync } = await import("fs");
|
|
1379
1557
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
1380
1558
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
1381
|
-
if (ctx.verbose) process.stderr.write(
|
|
1559
|
+
if (ctx.verbose) process.stderr.write("DELETE /api/users/v2025-06/contacts/bulk_delete\n");
|
|
1382
1560
|
const result = await client.delete(`/api/users/v2025-06/contacts/bulk_delete`, { body });
|
|
1383
1561
|
ctx.output(result);
|
|
1384
1562
|
});
|
|
@@ -1389,7 +1567,7 @@ function registerUsersContacts(parent, ctx) {
|
|
|
1389
1567
|
const { readFileSync } = await import("fs");
|
|
1390
1568
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
1391
1569
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
1392
|
-
if (ctx.verbose) process.stderr.write(
|
|
1570
|
+
if (ctx.verbose) process.stderr.write("POST /api/users/v2025-06/contacts/bulk\n");
|
|
1393
1571
|
const result = await client.post(`/api/users/v2025-06/contacts/bulk`, body);
|
|
1394
1572
|
ctx.output(result);
|
|
1395
1573
|
});
|
|
@@ -1400,11 +1578,11 @@ function registerUsersContacts(parent, ctx) {
|
|
|
1400
1578
|
const { readFileSync } = await import("fs");
|
|
1401
1579
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
1402
1580
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
1403
|
-
if (ctx.verbose) process.stderr.write(
|
|
1581
|
+
if (ctx.verbose) process.stderr.write("POST /api/users/v2025-06/contacts\n");
|
|
1404
1582
|
const result = await client.post(`/api/users/v2025-06/contacts`, body);
|
|
1405
1583
|
ctx.output(result);
|
|
1406
1584
|
});
|
|
1407
|
-
resource.command("list-user-contacts").description("List user's contacts").option("--page <value>", "
|
|
1585
|
+
resource.command("list-user-contacts").description("List user's contacts").option("--page <value>", "Page number for pagination").option("--per-page <value>", "Number of records per page").option("--status <value>", "Filter contacts by status").option("--search-query <value>", "Search contacts by name, email, or phone").option("--by-metadata <value>", "Filter contacts by metadata (JSON string)").action(async (opts) => {
|
|
1408
1586
|
const client = await ctx.getClient();
|
|
1409
1587
|
const params = {};
|
|
1410
1588
|
if (opts.page !== void 0) params["page"] = Number(opts.page);
|
|
@@ -1412,19 +1590,21 @@ function registerUsersContacts(parent, ctx) {
|
|
|
1412
1590
|
if (opts.status !== void 0) params["status"] = opts.status;
|
|
1413
1591
|
if (opts.searchQuery !== void 0) params["search_query"] = opts.searchQuery;
|
|
1414
1592
|
if (opts.byMetadata !== void 0) params["by_metadata"] = opts.byMetadata;
|
|
1415
|
-
if (ctx.verbose) process.stderr.write(
|
|
1593
|
+
if (ctx.verbose) process.stderr.write("GET /api/users/v2025-06/contacts\n");
|
|
1416
1594
|
const result = await client.get(`/api/users/v2025-06/contacts`, params);
|
|
1417
1595
|
ctx.output(result);
|
|
1418
1596
|
});
|
|
1419
|
-
resource.command("delete-user-contact <id>").description("Delete a contact").action(async (id
|
|
1597
|
+
resource.command("delete-user-contact <id>").description("Delete a contact").action(async (id) => {
|
|
1420
1598
|
const client = await ctx.getClient();
|
|
1421
|
-
if (ctx.verbose) process.stderr.write(`DELETE
|
|
1599
|
+
if (ctx.verbose) process.stderr.write(`DELETE /api/users/v2025-06/contacts/${id}
|
|
1600
|
+
`);
|
|
1422
1601
|
const result = await client.delete(`/api/users/v2025-06/contacts/${id}`);
|
|
1423
1602
|
ctx.output(result);
|
|
1424
1603
|
});
|
|
1425
|
-
resource.command("get-user-contact <id>").description("Get a contact").action(async (id
|
|
1604
|
+
resource.command("get-user-contact <id>").description("Get a contact").action(async (id) => {
|
|
1426
1605
|
const client = await ctx.getClient();
|
|
1427
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
1606
|
+
if (ctx.verbose) process.stderr.write(`GET /api/users/v2025-06/contacts/${id}
|
|
1607
|
+
`);
|
|
1428
1608
|
const result = await client.get(`/api/users/v2025-06/contacts/${id}`);
|
|
1429
1609
|
ctx.output(result);
|
|
1430
1610
|
});
|
|
@@ -1435,7 +1615,8 @@ function registerUsersContacts(parent, ctx) {
|
|
|
1435
1615
|
const { readFileSync } = await import("fs");
|
|
1436
1616
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
1437
1617
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
1438
|
-
if (ctx.verbose) process.stderr.write(`PATCH
|
|
1618
|
+
if (ctx.verbose) process.stderr.write(`PATCH /api/users/v2025-06/contacts/${id}
|
|
1619
|
+
`);
|
|
1439
1620
|
const result = await client.patch(`/api/users/v2025-06/contacts/${id}`, body);
|
|
1440
1621
|
ctx.output(result);
|
|
1441
1622
|
});
|
|
@@ -1446,22 +1627,47 @@ function registerUsersContacts(parent, ctx) {
|
|
|
1446
1627
|
const { readFileSync } = await import("fs");
|
|
1447
1628
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
1448
1629
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
1449
|
-
if (ctx.verbose) process.stderr.write(`POST
|
|
1630
|
+
if (ctx.verbose) process.stderr.write(`POST /api/users/v2025-06/contacts/${id}/notes
|
|
1631
|
+
`);
|
|
1450
1632
|
const result = await client.post(`/api/users/v2025-06/contacts/${id}/notes`, body);
|
|
1451
1633
|
ctx.output(result);
|
|
1452
1634
|
});
|
|
1453
|
-
resource.command("list-user-contact-notes <id>").description("List notes for a contact").action(async (id
|
|
1635
|
+
resource.command("list-user-contact-notes <id>").description("List notes for a contact").action(async (id) => {
|
|
1454
1636
|
const client = await ctx.getClient();
|
|
1455
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
1637
|
+
if (ctx.verbose) process.stderr.write(`GET /api/users/v2025-06/contacts/${id}/notes
|
|
1638
|
+
`);
|
|
1456
1639
|
const result = await client.get(`/api/users/v2025-06/contacts/${id}/notes`);
|
|
1457
1640
|
ctx.output(result);
|
|
1458
1641
|
});
|
|
1459
|
-
resource.command("
|
|
1642
|
+
resource.command("list-user-contact-orders <id>").description("List orders for a contact").option("--page <value>", "Page number for pagination").option("--per-page <value>", "Number of orders per page (max 100)").option("--status <value>", "Filter by order status").action(async (id, opts) => {
|
|
1460
1643
|
const client = await ctx.getClient();
|
|
1461
|
-
|
|
1644
|
+
const params = {};
|
|
1645
|
+
if (opts.page !== void 0) params["page"] = Number(opts.page);
|
|
1646
|
+
if (opts.perPage !== void 0) params["per_page"] = Number(opts.perPage);
|
|
1647
|
+
if (opts.status !== void 0) params["status"] = opts.status;
|
|
1648
|
+
if (ctx.verbose) process.stderr.write(`GET /api/users/v2025-06/contacts/${id}/orders
|
|
1649
|
+
`);
|
|
1650
|
+
const result = await client.get(`/api/users/v2025-06/contacts/${id}/orders`, params);
|
|
1651
|
+
ctx.output(result);
|
|
1652
|
+
});
|
|
1653
|
+
resource.command("mark-user-contact-read <id>").description("Mark contact's activities as read").action(async (id) => {
|
|
1654
|
+
const client = await ctx.getClient();
|
|
1655
|
+
if (ctx.verbose) process.stderr.write(`POST /api/users/v2025-06/contacts/${id}/read
|
|
1656
|
+
`);
|
|
1462
1657
|
const result = await client.post(`/api/users/v2025-06/contacts/${id}/read`);
|
|
1463
1658
|
ctx.output(result);
|
|
1464
1659
|
});
|
|
1660
|
+
resource.command("list-user-contact-subscription-orders <id>").description("List subscription orders for a contact").option("--page <value>", "Page number for pagination").option("--per-page <value>", "Number of subscription orders per page (max 100)").option("--status <value>", "Filter by subscription order status").action(async (id, opts) => {
|
|
1661
|
+
const client = await ctx.getClient();
|
|
1662
|
+
const params = {};
|
|
1663
|
+
if (opts.page !== void 0) params["page"] = Number(opts.page);
|
|
1664
|
+
if (opts.perPage !== void 0) params["per_page"] = Number(opts.perPage);
|
|
1665
|
+
if (opts.status !== void 0) params["status"] = opts.status;
|
|
1666
|
+
if (ctx.verbose) process.stderr.write(`GET /api/users/v2025-06/contacts/${id}/subscription_orders
|
|
1667
|
+
`);
|
|
1668
|
+
const result = await client.get(`/api/users/v2025-06/contacts/${id}/subscription_orders`, params);
|
|
1669
|
+
ctx.output(result);
|
|
1670
|
+
});
|
|
1465
1671
|
resource.command("create-user-contact-task <id>").description("Create a task for a contact").option("--body <json>", "Request body as JSON string").option("--body-file <path>", "Read request body from file").action(async (id, opts) => {
|
|
1466
1672
|
const client = await ctx.getClient();
|
|
1467
1673
|
let body;
|
|
@@ -1469,13 +1675,15 @@ function registerUsersContacts(parent, ctx) {
|
|
|
1469
1675
|
const { readFileSync } = await import("fs");
|
|
1470
1676
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
1471
1677
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
1472
|
-
if (ctx.verbose) process.stderr.write(`POST
|
|
1678
|
+
if (ctx.verbose) process.stderr.write(`POST /api/users/v2025-06/contacts/${id}/tasks
|
|
1679
|
+
`);
|
|
1473
1680
|
const result = await client.post(`/api/users/v2025-06/contacts/${id}/tasks`, body);
|
|
1474
1681
|
ctx.output(result);
|
|
1475
1682
|
});
|
|
1476
|
-
resource.command("list-user-contact-tasks <id>").description("List tasks for a contact").action(async (id
|
|
1683
|
+
resource.command("list-user-contact-tasks <id>").description("List tasks for a contact").action(async (id) => {
|
|
1477
1684
|
const client = await ctx.getClient();
|
|
1478
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
1685
|
+
if (ctx.verbose) process.stderr.write(`GET /api/users/v2025-06/contacts/${id}/tasks
|
|
1686
|
+
`);
|
|
1479
1687
|
const result = await client.get(`/api/users/v2025-06/contacts/${id}/tasks`);
|
|
1480
1688
|
ctx.output(result);
|
|
1481
1689
|
});
|
|
@@ -1486,14 +1694,15 @@ function registerUsersContacts(parent, ctx) {
|
|
|
1486
1694
|
const { readFileSync } = await import("fs");
|
|
1487
1695
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
1488
1696
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
1489
|
-
if (ctx.verbose) process.stderr.write(`POST
|
|
1697
|
+
if (ctx.verbose) process.stderr.write(`POST /api/users/v2025-06/contacts/${id}/notes/${noteId}/toggle_pinned
|
|
1698
|
+
`);
|
|
1490
1699
|
const result = await client.post(`/api/users/v2025-06/contacts/${id}/notes/${noteId}/toggle_pinned`, body);
|
|
1491
1700
|
ctx.output(result);
|
|
1492
1701
|
});
|
|
1493
1702
|
}
|
|
1494
1703
|
//#endregion
|
|
1495
1704
|
//#region src/generated/users-media.ts
|
|
1496
|
-
function parseBooleanOption(value, flag) {
|
|
1705
|
+
function parseBooleanOption$1(value, flag) {
|
|
1497
1706
|
const normalized = value.trim().toLowerCase();
|
|
1498
1707
|
if ([
|
|
1499
1708
|
"true",
|
|
@@ -1511,16 +1720,16 @@ function parseBooleanOption(value, flag) {
|
|
|
1511
1720
|
}
|
|
1512
1721
|
function registerUsersMedia(parent, ctx) {
|
|
1513
1722
|
const resource = parent.command("users-media").description("Users Media");
|
|
1514
|
-
resource.command("list-user-media").description("List user's media").option("--page <value>", "
|
|
1723
|
+
resource.command("list-user-media").description("List user's media").option("--page <value>", "Page number for pagination").option("--per-page <value>", "Number of records per page").option("--sorted-by <value>", "Sort order").option("--status <value>", "Filter by status").option("--active <value>", "Filter by active status").option("--search-query <value>", "Search query").action(async (opts) => {
|
|
1515
1724
|
const client = await ctx.getClient();
|
|
1516
1725
|
const params = {};
|
|
1517
1726
|
if (opts.page !== void 0) params["page"] = Number(opts.page);
|
|
1518
1727
|
if (opts.perPage !== void 0) params["per_page"] = Number(opts.perPage);
|
|
1519
1728
|
if (opts.sortedBy !== void 0) params["sorted_by"] = opts.sortedBy;
|
|
1520
1729
|
if (opts.status !== void 0) params["status"] = opts.status;
|
|
1521
|
-
if (opts.active !== void 0) params["active"] = parseBooleanOption(opts.active, "--active");
|
|
1730
|
+
if (opts.active !== void 0) params["active"] = parseBooleanOption$1(opts.active, "--active");
|
|
1522
1731
|
if (opts.searchQuery !== void 0) params["search_query"] = opts.searchQuery;
|
|
1523
|
-
if (ctx.verbose) process.stderr.write(
|
|
1732
|
+
if (ctx.verbose) process.stderr.write("GET /api/users/v2025-06/media\n");
|
|
1524
1733
|
const result = await client.get(`/api/users/v2025-06/media`, params);
|
|
1525
1734
|
ctx.output(result);
|
|
1526
1735
|
});
|
|
@@ -1531,13 +1740,14 @@ function registerUsersMedia(parent, ctx) {
|
|
|
1531
1740
|
const { readFileSync } = await import("fs");
|
|
1532
1741
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
1533
1742
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
1534
|
-
if (ctx.verbose) process.stderr.write(
|
|
1743
|
+
if (ctx.verbose) process.stderr.write("POST /api/users/v2025-06/media\n");
|
|
1535
1744
|
const result = await client.post(`/api/users/v2025-06/media`, body);
|
|
1536
1745
|
ctx.output(result);
|
|
1537
1746
|
});
|
|
1538
|
-
resource.command("get-user-media <id>").description("Get a media").action(async (id
|
|
1747
|
+
resource.command("get-user-media <id>").description("Get a media").action(async (id) => {
|
|
1539
1748
|
const client = await ctx.getClient();
|
|
1540
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
1749
|
+
if (ctx.verbose) process.stderr.write(`GET /api/users/v2025-06/media/${id}
|
|
1750
|
+
`);
|
|
1541
1751
|
const result = await client.get(`/api/users/v2025-06/media/${id}`);
|
|
1542
1752
|
ctx.output(result);
|
|
1543
1753
|
});
|
|
@@ -1548,13 +1758,15 @@ function registerUsersMedia(parent, ctx) {
|
|
|
1548
1758
|
const { readFileSync } = await import("fs");
|
|
1549
1759
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
1550
1760
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
1551
|
-
if (ctx.verbose) process.stderr.write(`PATCH
|
|
1761
|
+
if (ctx.verbose) process.stderr.write(`PATCH /api/users/v2025-06/media/${id}
|
|
1762
|
+
`);
|
|
1552
1763
|
const result = await client.patch(`/api/users/v2025-06/media/${id}`, body);
|
|
1553
1764
|
ctx.output(result);
|
|
1554
1765
|
});
|
|
1555
|
-
resource.command("delete-user-media <id>").description("Delete a media").action(async (id
|
|
1766
|
+
resource.command("delete-user-media <id>").description("Delete a media").action(async (id) => {
|
|
1556
1767
|
const client = await ctx.getClient();
|
|
1557
|
-
if (ctx.verbose) process.stderr.write(`DELETE
|
|
1768
|
+
if (ctx.verbose) process.stderr.write(`DELETE /api/users/v2025-06/media/${id}
|
|
1769
|
+
`);
|
|
1558
1770
|
const result = await client.delete(`/api/users/v2025-06/media/${id}`);
|
|
1559
1771
|
ctx.output(result);
|
|
1560
1772
|
});
|
|
@@ -1570,33 +1782,35 @@ function registerUsersNotes(parent, ctx) {
|
|
|
1570
1782
|
const { readFileSync } = await import("fs");
|
|
1571
1783
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
1572
1784
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
1573
|
-
if (ctx.verbose) process.stderr.write(
|
|
1785
|
+
if (ctx.verbose) process.stderr.write("POST /api/users/v2025-06/notes\n");
|
|
1574
1786
|
const result = await client.post(`/api/users/v2025-06/notes`, body);
|
|
1575
1787
|
ctx.output(result);
|
|
1576
1788
|
});
|
|
1577
|
-
resource.command("list-user-notes").description("List notes for a contact").option("--contact-id <value>", "
|
|
1789
|
+
resource.command("list-user-notes").description("List notes for a contact").option("--contact-id <value>", "Contact ID").option("--page <value>", "Page number (default 1)").option("--per-page <value>", "Items per page (default 10)").action(async (opts) => {
|
|
1578
1790
|
const client = await ctx.getClient();
|
|
1579
1791
|
const params = {};
|
|
1580
1792
|
if (opts.contactId !== void 0) params["contact_id"] = Number(opts.contactId);
|
|
1581
1793
|
if (opts.page !== void 0) params["page"] = Number(opts.page);
|
|
1582
1794
|
if (opts.perPage !== void 0) params["per_page"] = Number(opts.perPage);
|
|
1583
|
-
if (ctx.verbose) process.stderr.write(
|
|
1795
|
+
if (ctx.verbose) process.stderr.write("GET /api/users/v2025-06/notes\n");
|
|
1584
1796
|
const result = await client.get(`/api/users/v2025-06/notes`, params);
|
|
1585
1797
|
ctx.output(result);
|
|
1586
1798
|
});
|
|
1587
|
-
resource.command("delete-user-note <id>").description("Delete a note").option("--contact-id <value>", "
|
|
1799
|
+
resource.command("delete-user-note <id>").description("Delete a note").option("--contact-id <value>", "Contact ID").action(async (id, opts) => {
|
|
1588
1800
|
const client = await ctx.getClient();
|
|
1589
1801
|
const params = {};
|
|
1590
1802
|
if (opts.contactId !== void 0) params["contact_id"] = Number(opts.contactId);
|
|
1591
|
-
if (ctx.verbose) process.stderr.write(`DELETE
|
|
1803
|
+
if (ctx.verbose) process.stderr.write(`DELETE /api/users/v2025-06/notes/${id}
|
|
1804
|
+
`);
|
|
1592
1805
|
const result = await client.delete(`/api/users/v2025-06/notes/${id}`, { params });
|
|
1593
1806
|
ctx.output(result);
|
|
1594
1807
|
});
|
|
1595
|
-
resource.command("get-user-note <id>").description("Get a note").option("--contact-id <value>", "
|
|
1808
|
+
resource.command("get-user-note <id>").description("Get a note").option("--contact-id <value>", "Contact ID").action(async (id, opts) => {
|
|
1596
1809
|
const client = await ctx.getClient();
|
|
1597
1810
|
const params = {};
|
|
1598
1811
|
if (opts.contactId !== void 0) params["contact_id"] = Number(opts.contactId);
|
|
1599
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
1812
|
+
if (ctx.verbose) process.stderr.write(`GET /api/users/v2025-06/notes/${id}
|
|
1813
|
+
`);
|
|
1600
1814
|
const result = await client.get(`/api/users/v2025-06/notes/${id}`, params);
|
|
1601
1815
|
ctx.output(result);
|
|
1602
1816
|
});
|
|
@@ -1607,7 +1821,8 @@ function registerUsersNotes(parent, ctx) {
|
|
|
1607
1821
|
const { readFileSync } = await import("fs");
|
|
1608
1822
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
1609
1823
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
1610
|
-
if (ctx.verbose) process.stderr.write(`PATCH
|
|
1824
|
+
if (ctx.verbose) process.stderr.write(`PATCH /api/users/v2025-06/notes/${id}
|
|
1825
|
+
`);
|
|
1611
1826
|
const result = await client.patch(`/api/users/v2025-06/notes/${id}`, body);
|
|
1612
1827
|
ctx.output(result);
|
|
1613
1828
|
});
|
|
@@ -1623,11 +1838,11 @@ function registerUsersPlaylists(parent, ctx) {
|
|
|
1623
1838
|
const { readFileSync } = await import("fs");
|
|
1624
1839
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
1625
1840
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
1626
|
-
if (ctx.verbose) process.stderr.write(
|
|
1841
|
+
if (ctx.verbose) process.stderr.write("POST /api/users/v2025-06/playlists\n");
|
|
1627
1842
|
const result = await client.post(`/api/users/v2025-06/playlists`, body);
|
|
1628
1843
|
ctx.output(result);
|
|
1629
1844
|
});
|
|
1630
|
-
resource.command("list-user-playlists").description("List user's playlists").option("--page-cursor <value>", "
|
|
1845
|
+
resource.command("list-user-playlists").description("List user's playlists").option("--page-cursor <value>", "Cursor for pagination").option("--page-limit <value>", "Number of records per page").option("--filter-status <value>", "Filter playlists by status").option("--filter-title <value>", "Filter playlists by title").option("--sort <value>", "Sort playlists").action(async (opts) => {
|
|
1631
1846
|
const client = await ctx.getClient();
|
|
1632
1847
|
const params = {};
|
|
1633
1848
|
if (opts.pageCursor !== void 0) params["page[cursor]"] = opts.pageCursor;
|
|
@@ -1635,19 +1850,21 @@ function registerUsersPlaylists(parent, ctx) {
|
|
|
1635
1850
|
if (opts.filterStatus !== void 0) params["filter[status]"] = opts.filterStatus;
|
|
1636
1851
|
if (opts.filterTitle !== void 0) params["filter[title]"] = opts.filterTitle;
|
|
1637
1852
|
if (opts.sort !== void 0) params["sort"] = opts.sort;
|
|
1638
|
-
if (ctx.verbose) process.stderr.write(
|
|
1853
|
+
if (ctx.verbose) process.stderr.write("GET /api/users/v2025-06/playlists\n");
|
|
1639
1854
|
const result = await client.get(`/api/users/v2025-06/playlists`, params);
|
|
1640
1855
|
ctx.output(result);
|
|
1641
1856
|
});
|
|
1642
|
-
resource.command("delete-user-playlist <id>").description("Delete a playlist").action(async (id
|
|
1857
|
+
resource.command("delete-user-playlist <id>").description("Delete a playlist").action(async (id) => {
|
|
1643
1858
|
const client = await ctx.getClient();
|
|
1644
|
-
if (ctx.verbose) process.stderr.write(`DELETE
|
|
1859
|
+
if (ctx.verbose) process.stderr.write(`DELETE /api/users/v2025-06/playlists/${id}
|
|
1860
|
+
`);
|
|
1645
1861
|
const result = await client.delete(`/api/users/v2025-06/playlists/${id}`);
|
|
1646
1862
|
ctx.output(result);
|
|
1647
1863
|
});
|
|
1648
|
-
resource.command("get-user-playlist <id>").description("Get a playlist").action(async (id
|
|
1864
|
+
resource.command("get-user-playlist <id>").description("Get a playlist").action(async (id) => {
|
|
1649
1865
|
const client = await ctx.getClient();
|
|
1650
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
1866
|
+
if (ctx.verbose) process.stderr.write(`GET /api/users/v2025-06/playlists/${id}
|
|
1867
|
+
`);
|
|
1651
1868
|
const result = await client.get(`/api/users/v2025-06/playlists/${id}`);
|
|
1652
1869
|
ctx.output(result);
|
|
1653
1870
|
});
|
|
@@ -1658,18 +1875,65 @@ function registerUsersPlaylists(parent, ctx) {
|
|
|
1658
1875
|
const { readFileSync } = await import("fs");
|
|
1659
1876
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
1660
1877
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
1661
|
-
if (ctx.verbose) process.stderr.write(`PATCH
|
|
1878
|
+
if (ctx.verbose) process.stderr.write(`PATCH /api/users/v2025-06/playlists/${id}
|
|
1879
|
+
`);
|
|
1662
1880
|
const result = await client.patch(`/api/users/v2025-06/playlists/${id}`, body);
|
|
1663
1881
|
ctx.output(result);
|
|
1664
1882
|
});
|
|
1665
1883
|
}
|
|
1666
1884
|
//#endregion
|
|
1885
|
+
//#region src/generated/users-products.ts
|
|
1886
|
+
function parseBooleanOption(value, flag) {
|
|
1887
|
+
const normalized = value.trim().toLowerCase();
|
|
1888
|
+
if ([
|
|
1889
|
+
"true",
|
|
1890
|
+
"1",
|
|
1891
|
+
"yes",
|
|
1892
|
+
"on"
|
|
1893
|
+
].includes(normalized)) return true;
|
|
1894
|
+
if ([
|
|
1895
|
+
"false",
|
|
1896
|
+
"0",
|
|
1897
|
+
"no",
|
|
1898
|
+
"off"
|
|
1899
|
+
].includes(normalized)) return false;
|
|
1900
|
+
throw new Error(`Invalid value for ${flag}: ${value}. Expected true/false.`);
|
|
1901
|
+
}
|
|
1902
|
+
function registerUsersProducts(parent, ctx) {
|
|
1903
|
+
const resource = parent.command("users-products").description("Users Products");
|
|
1904
|
+
resource.command("list-user-products").description("List products").option("--page <value>", "Page number for pagination").option("--per-page <value>", "Number of records per page").option("--status <value>", "Filter by status. Supported values: 'active', 'draft', 'archived'.").option("--availability <value>", "Filter by availability. Supported values: 'All', 'in_stock'. If not specified, returns all products.").option("--search-query <value>", "Search products by title or variant SKU").option("--category-ids <value>", "Filter by category IDs").option("--collection-ids <value>", "Filter by collection IDs").option("--country-code <value>", "Filter by country codes").option("--bundle <value>", "Filter by bundle status. true returns only bundles, false returns only non-bundles.").option("--order-by <value>", "Sort results by specified field and direction (e.g. ['price', 'asc'])").action(async (opts) => {
|
|
1905
|
+
const client = await ctx.getClient();
|
|
1906
|
+
const params = {};
|
|
1907
|
+
if (opts.page !== void 0) params["page"] = Number(opts.page);
|
|
1908
|
+
if (opts.perPage !== void 0) params["per_page"] = Number(opts.perPage);
|
|
1909
|
+
if (opts.status !== void 0) params["status[]"] = opts.status;
|
|
1910
|
+
if (opts.availability !== void 0) params["availability[]"] = opts.availability;
|
|
1911
|
+
if (opts.searchQuery !== void 0) params["search_query"] = opts.searchQuery;
|
|
1912
|
+
if (opts.categoryIds !== void 0) params["category_ids[]"] = opts.categoryIds;
|
|
1913
|
+
if (opts.collectionIds !== void 0) params["collection_ids[]"] = opts.collectionIds;
|
|
1914
|
+
if (opts.countryCode !== void 0) params["country_code[]"] = opts.countryCode;
|
|
1915
|
+
if (opts.bundle !== void 0) params["bundle"] = parseBooleanOption(opts.bundle, "--bundle");
|
|
1916
|
+
if (opts.orderBy !== void 0) params["order_by[]"] = opts.orderBy;
|
|
1917
|
+
if (ctx.verbose) process.stderr.write("GET /api/users/v2025-06/products\n");
|
|
1918
|
+
const result = await client.get(`/api/users/v2025-06/products`, params);
|
|
1919
|
+
ctx.output(result);
|
|
1920
|
+
});
|
|
1921
|
+
resource.command("get-user-product <id>").description("Get a product").action(async (id) => {
|
|
1922
|
+
const client = await ctx.getClient();
|
|
1923
|
+
if (ctx.verbose) process.stderr.write(`GET /api/users/v2025-06/products/${id}
|
|
1924
|
+
`);
|
|
1925
|
+
const result = await client.get(`/api/users/v2025-06/products/${id}`);
|
|
1926
|
+
ctx.output(result);
|
|
1927
|
+
});
|
|
1928
|
+
}
|
|
1929
|
+
//#endregion
|
|
1667
1930
|
//#region src/generated/users-tasks.ts
|
|
1668
1931
|
function registerUsersTasks(parent, ctx) {
|
|
1669
1932
|
const resource = parent.command("users-tasks").description("Users Tasks");
|
|
1670
|
-
resource.command("complete-user-task <id>").description("Toggle task completion").action(async (id
|
|
1933
|
+
resource.command("complete-user-task <id>").description("Toggle task completion").action(async (id) => {
|
|
1671
1934
|
const client = await ctx.getClient();
|
|
1672
|
-
if (ctx.verbose) process.stderr.write(`POST
|
|
1935
|
+
if (ctx.verbose) process.stderr.write(`POST /api/users/v2025-06/tasks/${id}/complete
|
|
1936
|
+
`);
|
|
1673
1937
|
const result = await client.post(`/api/users/v2025-06/tasks/${id}/complete`);
|
|
1674
1938
|
ctx.output(result);
|
|
1675
1939
|
});
|
|
@@ -1680,30 +1944,32 @@ function registerUsersTasks(parent, ctx) {
|
|
|
1680
1944
|
const { readFileSync } = await import("fs");
|
|
1681
1945
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
1682
1946
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
1683
|
-
if (ctx.verbose) process.stderr.write(
|
|
1947
|
+
if (ctx.verbose) process.stderr.write("POST /api/users/v2025-06/tasks\n");
|
|
1684
1948
|
const result = await client.post(`/api/users/v2025-06/tasks`, body);
|
|
1685
1949
|
ctx.output(result);
|
|
1686
1950
|
});
|
|
1687
|
-
resource.command("list-user-tasks").description("List tasks for the current user").option("--page <value>", "
|
|
1951
|
+
resource.command("list-user-tasks").description("List tasks for the current user").option("--page <value>", "Page number").option("--per-page <value>", "Items per page (max 100)").option("--contact-id <value>", "Filter by contact ID").option("--status <value>", "Filter by status (pending, completed, overdue)").action(async (opts) => {
|
|
1688
1952
|
const client = await ctx.getClient();
|
|
1689
1953
|
const params = {};
|
|
1690
1954
|
if (opts.page !== void 0) params["page"] = Number(opts.page);
|
|
1691
1955
|
if (opts.perPage !== void 0) params["per_page"] = Number(opts.perPage);
|
|
1692
1956
|
if (opts.contactId !== void 0) params["contact_id"] = Number(opts.contactId);
|
|
1693
1957
|
if (opts.status !== void 0) params["status"] = opts.status;
|
|
1694
|
-
if (ctx.verbose) process.stderr.write(
|
|
1958
|
+
if (ctx.verbose) process.stderr.write("GET /api/users/v2025-06/tasks\n");
|
|
1695
1959
|
const result = await client.get(`/api/users/v2025-06/tasks`, params);
|
|
1696
1960
|
ctx.output(result);
|
|
1697
1961
|
});
|
|
1698
|
-
resource.command("delete-user-task <id>").description("Delete a task").action(async (id
|
|
1962
|
+
resource.command("delete-user-task <id>").description("Delete a task").action(async (id) => {
|
|
1699
1963
|
const client = await ctx.getClient();
|
|
1700
|
-
if (ctx.verbose) process.stderr.write(`DELETE
|
|
1964
|
+
if (ctx.verbose) process.stderr.write(`DELETE /api/users/v2025-06/tasks/${id}
|
|
1965
|
+
`);
|
|
1701
1966
|
const result = await client.delete(`/api/users/v2025-06/tasks/${id}`);
|
|
1702
1967
|
ctx.output(result);
|
|
1703
1968
|
});
|
|
1704
|
-
resource.command("get-user-task <id>").description("Get a task").action(async (id
|
|
1969
|
+
resource.command("get-user-task <id>").description("Get a task").action(async (id) => {
|
|
1705
1970
|
const client = await ctx.getClient();
|
|
1706
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
1971
|
+
if (ctx.verbose) process.stderr.write(`GET /api/users/v2025-06/tasks/${id}
|
|
1972
|
+
`);
|
|
1707
1973
|
const result = await client.get(`/api/users/v2025-06/tasks/${id}`);
|
|
1708
1974
|
ctx.output(result);
|
|
1709
1975
|
});
|
|
@@ -1714,7 +1980,8 @@ function registerUsersTasks(parent, ctx) {
|
|
|
1714
1980
|
const { readFileSync } = await import("fs");
|
|
1715
1981
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
1716
1982
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
1717
|
-
if (ctx.verbose) process.stderr.write(`PATCH
|
|
1983
|
+
if (ctx.verbose) process.stderr.write(`PATCH /api/users/v2025-06/tasks/${id}
|
|
1984
|
+
`);
|
|
1718
1985
|
const result = await client.patch(`/api/users/v2025-06/tasks/${id}`, body);
|
|
1719
1986
|
ctx.output(result);
|
|
1720
1987
|
});
|
|
@@ -1723,18 +1990,18 @@ function registerUsersTasks(parent, ctx) {
|
|
|
1723
1990
|
//#region src/generated/widgets.ts
|
|
1724
1991
|
function registerWidgets(parent, ctx) {
|
|
1725
1992
|
const resource = parent.command("widgets").description("Widgets");
|
|
1726
|
-
resource.command("create-banner
|
|
1993
|
+
resource.command("create-banner").description("Create a banner widget").option("--body <json>", "Request body as JSON string").option("--body-file <path>", "Read request body from file").action(async (opts) => {
|
|
1727
1994
|
const client = await ctx.getClient();
|
|
1728
1995
|
let body;
|
|
1729
1996
|
if (opts.bodyFile) {
|
|
1730
1997
|
const { readFileSync } = await import("fs");
|
|
1731
1998
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
1732
1999
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
1733
|
-
if (ctx.verbose) process.stderr.write(
|
|
2000
|
+
if (ctx.verbose) process.stderr.write("POST /api/v2025-06/widgets/banners\n");
|
|
1734
2001
|
const result = await client.post(`/api/v2025-06/widgets/banners`, body);
|
|
1735
2002
|
ctx.output(result);
|
|
1736
2003
|
});
|
|
1737
|
-
resource.command("list-banner
|
|
2004
|
+
resource.command("list-banner").description("List banner widgets").option("--filter-status <value>", "Filter banner widgets by status").option("--filter-placement <value>", "Filter banner widgets by placement").option("--filter-behavior <value>", "Filter banner widgets by behavior").option("--filter-name <value>", "Filter banner widgets by name").option("--page-cursor <value>", "Cursor for pagination").option("--page-limit <value>", "Number of records per page").option("--sort <value>", "Sort order").action(async (opts) => {
|
|
1738
2005
|
const client = await ctx.getClient();
|
|
1739
2006
|
const params = {};
|
|
1740
2007
|
if (opts.filterStatus !== void 0) params["filter[status]"] = opts.filterStatus;
|
|
@@ -1744,45 +2011,48 @@ function registerWidgets(parent, ctx) {
|
|
|
1744
2011
|
if (opts.pageCursor !== void 0) params["page[cursor]"] = opts.pageCursor;
|
|
1745
2012
|
if (opts.pageLimit !== void 0) params["page[limit]"] = Number(opts.pageLimit);
|
|
1746
2013
|
if (opts.sort !== void 0) params["sort"] = opts.sort;
|
|
1747
|
-
if (ctx.verbose) process.stderr.write(
|
|
2014
|
+
if (ctx.verbose) process.stderr.write("GET /api/v2025-06/widgets/banners\n");
|
|
1748
2015
|
const result = await client.get(`/api/v2025-06/widgets/banners`, params);
|
|
1749
2016
|
ctx.output(result);
|
|
1750
2017
|
});
|
|
1751
|
-
resource.command("delete-banner
|
|
2018
|
+
resource.command("delete-banner <id>").description("Delete a banner widget").action(async (id) => {
|
|
1752
2019
|
const client = await ctx.getClient();
|
|
1753
|
-
if (ctx.verbose) process.stderr.write(`DELETE
|
|
2020
|
+
if (ctx.verbose) process.stderr.write(`DELETE /api/v2025-06/widgets/banners/${id}
|
|
2021
|
+
`);
|
|
1754
2022
|
const result = await client.delete(`/api/v2025-06/widgets/banners/${id}`);
|
|
1755
2023
|
ctx.output(result);
|
|
1756
2024
|
});
|
|
1757
|
-
resource.command("get-banner
|
|
2025
|
+
resource.command("get-banner <id>").description("Get a banner widget").action(async (id) => {
|
|
1758
2026
|
const client = await ctx.getClient();
|
|
1759
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
2027
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v2025-06/widgets/banners/${id}
|
|
2028
|
+
`);
|
|
1760
2029
|
const result = await client.get(`/api/v2025-06/widgets/banners/${id}`);
|
|
1761
2030
|
ctx.output(result);
|
|
1762
2031
|
});
|
|
1763
|
-
resource.command("update-banner
|
|
2032
|
+
resource.command("update-banner <id>").description("Update a banner widget").option("--body <json>", "Request body as JSON string").option("--body-file <path>", "Read request body from file").action(async (id, opts) => {
|
|
1764
2033
|
const client = await ctx.getClient();
|
|
1765
2034
|
let body;
|
|
1766
2035
|
if (opts.bodyFile) {
|
|
1767
2036
|
const { readFileSync } = await import("fs");
|
|
1768
2037
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
1769
2038
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
1770
|
-
if (ctx.verbose) process.stderr.write(`PATCH
|
|
2039
|
+
if (ctx.verbose) process.stderr.write(`PATCH /api/v2025-06/widgets/banners/${id}
|
|
2040
|
+
`);
|
|
1771
2041
|
const result = await client.patch(`/api/v2025-06/widgets/banners/${id}`, body);
|
|
1772
2042
|
ctx.output(result);
|
|
1773
2043
|
});
|
|
1774
|
-
resource.command("create-cart
|
|
2044
|
+
resource.command("create-cart").description("Create a cart widget").option("--body <json>", "Request body as JSON string").option("--body-file <path>", "Read request body from file").action(async (opts) => {
|
|
1775
2045
|
const client = await ctx.getClient();
|
|
1776
2046
|
let body;
|
|
1777
2047
|
if (opts.bodyFile) {
|
|
1778
2048
|
const { readFileSync } = await import("fs");
|
|
1779
2049
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
1780
2050
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
1781
|
-
if (ctx.verbose) process.stderr.write(
|
|
2051
|
+
if (ctx.verbose) process.stderr.write("POST /api/v2025-06/widgets/carts\n");
|
|
1782
2052
|
const result = await client.post(`/api/v2025-06/widgets/carts`, body);
|
|
1783
2053
|
ctx.output(result);
|
|
1784
2054
|
});
|
|
1785
|
-
resource.command("list-cart
|
|
2055
|
+
resource.command("list-cart").description("List cart widgets").option("--filter-status <value>", "Filter cart widgets by status").option("--filter-placement <value>", "Filter cart widgets by placement").option("--filter-name <value>", "Filter cart widgets by name").option("--page-cursor <value>", "Cursor for pagination").option("--page-limit <value>", "Number of records per page").option("--sort <value>", "Sort order (prefix with - for descending order)").action(async (opts) => {
|
|
1786
2056
|
const client = await ctx.getClient();
|
|
1787
2057
|
const params = {};
|
|
1788
2058
|
if (opts.filterStatus !== void 0) params["filter[status]"] = opts.filterStatus;
|
|
@@ -1791,45 +2061,48 @@ function registerWidgets(parent, ctx) {
|
|
|
1791
2061
|
if (opts.pageCursor !== void 0) params["page[cursor]"] = opts.pageCursor;
|
|
1792
2062
|
if (opts.pageLimit !== void 0) params["page[limit]"] = Number(opts.pageLimit);
|
|
1793
2063
|
if (opts.sort !== void 0) params["sort"] = opts.sort;
|
|
1794
|
-
if (ctx.verbose) process.stderr.write(
|
|
2064
|
+
if (ctx.verbose) process.stderr.write("GET /api/v2025-06/widgets/carts\n");
|
|
1795
2065
|
const result = await client.get(`/api/v2025-06/widgets/carts`, params);
|
|
1796
2066
|
ctx.output(result);
|
|
1797
2067
|
});
|
|
1798
|
-
resource.command("delete-cart
|
|
2068
|
+
resource.command("delete-cart <id>").description("Delete a cart widget").action(async (id) => {
|
|
1799
2069
|
const client = await ctx.getClient();
|
|
1800
|
-
if (ctx.verbose) process.stderr.write(`DELETE
|
|
2070
|
+
if (ctx.verbose) process.stderr.write(`DELETE /api/v2025-06/widgets/carts/${id}
|
|
2071
|
+
`);
|
|
1801
2072
|
const result = await client.delete(`/api/v2025-06/widgets/carts/${id}`);
|
|
1802
2073
|
ctx.output(result);
|
|
1803
2074
|
});
|
|
1804
|
-
resource.command("get-cart
|
|
2075
|
+
resource.command("get-cart <id>").description("Show a cart widget").action(async (id) => {
|
|
1805
2076
|
const client = await ctx.getClient();
|
|
1806
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
2077
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v2025-06/widgets/carts/${id}
|
|
2078
|
+
`);
|
|
1807
2079
|
const result = await client.get(`/api/v2025-06/widgets/carts/${id}`);
|
|
1808
2080
|
ctx.output(result);
|
|
1809
2081
|
});
|
|
1810
|
-
resource.command("update-cart
|
|
2082
|
+
resource.command("update-cart <id>").description("Update a cart widget").option("--body <json>", "Request body as JSON string").option("--body-file <path>", "Read request body from file").action(async (id, opts) => {
|
|
1811
2083
|
const client = await ctx.getClient();
|
|
1812
2084
|
let body;
|
|
1813
2085
|
if (opts.bodyFile) {
|
|
1814
2086
|
const { readFileSync } = await import("fs");
|
|
1815
2087
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
1816
2088
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
1817
|
-
if (ctx.verbose) process.stderr.write(`PUT
|
|
2089
|
+
if (ctx.verbose) process.stderr.write(`PUT /api/v2025-06/widgets/carts/${id}
|
|
2090
|
+
`);
|
|
1818
2091
|
const result = await client.put(`/api/v2025-06/widgets/carts/${id}`, body);
|
|
1819
2092
|
ctx.output(result);
|
|
1820
2093
|
});
|
|
1821
|
-
resource.command("create-chat
|
|
2094
|
+
resource.command("create-chat").description("Create a chat widget").option("--body <json>", "Request body as JSON string").option("--body-file <path>", "Read request body from file").action(async (opts) => {
|
|
1822
2095
|
const client = await ctx.getClient();
|
|
1823
2096
|
let body;
|
|
1824
2097
|
if (opts.bodyFile) {
|
|
1825
2098
|
const { readFileSync } = await import("fs");
|
|
1826
2099
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
1827
2100
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
1828
|
-
if (ctx.verbose) process.stderr.write(
|
|
2101
|
+
if (ctx.verbose) process.stderr.write("POST /api/v2025-06/widgets/chats\n");
|
|
1829
2102
|
const result = await client.post(`/api/v2025-06/widgets/chats`, body);
|
|
1830
2103
|
ctx.output(result);
|
|
1831
2104
|
});
|
|
1832
|
-
resource.command("list-chat
|
|
2105
|
+
resource.command("list-chat").description("List chat widgets").option("--filter-status <value>", "Filter chat widgets by status").option("--filter-name <value>", "Filter chat widgets by name").option("--page-cursor <value>", "Cursor for pagination").option("--page-limit <value>", "Number of records per page").option("--sort <value>", "Sort order (prefix with - for descending order)").action(async (opts) => {
|
|
1833
2106
|
const client = await ctx.getClient();
|
|
1834
2107
|
const params = {};
|
|
1835
2108
|
if (opts.filterStatus !== void 0) params["filter[status]"] = opts.filterStatus;
|
|
@@ -1837,45 +2110,48 @@ function registerWidgets(parent, ctx) {
|
|
|
1837
2110
|
if (opts.pageCursor !== void 0) params["page[cursor]"] = opts.pageCursor;
|
|
1838
2111
|
if (opts.pageLimit !== void 0) params["page[limit]"] = Number(opts.pageLimit);
|
|
1839
2112
|
if (opts.sort !== void 0) params["sort"] = opts.sort;
|
|
1840
|
-
if (ctx.verbose) process.stderr.write(
|
|
2113
|
+
if (ctx.verbose) process.stderr.write("GET /api/v2025-06/widgets/chats\n");
|
|
1841
2114
|
const result = await client.get(`/api/v2025-06/widgets/chats`, params);
|
|
1842
2115
|
ctx.output(result);
|
|
1843
2116
|
});
|
|
1844
|
-
resource.command("delete-chat
|
|
2117
|
+
resource.command("delete-chat <id>").description("Delete a chat widget").action(async (id) => {
|
|
1845
2118
|
const client = await ctx.getClient();
|
|
1846
|
-
if (ctx.verbose) process.stderr.write(`DELETE
|
|
2119
|
+
if (ctx.verbose) process.stderr.write(`DELETE /api/v2025-06/widgets/chats/${id}
|
|
2120
|
+
`);
|
|
1847
2121
|
const result = await client.delete(`/api/v2025-06/widgets/chats/${id}`);
|
|
1848
2122
|
ctx.output(result);
|
|
1849
2123
|
});
|
|
1850
|
-
resource.command("get-chat
|
|
2124
|
+
resource.command("get-chat <id>").description("Show a chat widget").action(async (id) => {
|
|
1851
2125
|
const client = await ctx.getClient();
|
|
1852
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
2126
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v2025-06/widgets/chats/${id}
|
|
2127
|
+
`);
|
|
1853
2128
|
const result = await client.get(`/api/v2025-06/widgets/chats/${id}`);
|
|
1854
2129
|
ctx.output(result);
|
|
1855
2130
|
});
|
|
1856
|
-
resource.command("update-chat
|
|
2131
|
+
resource.command("update-chat <id>").description("Update a chat widget").option("--body <json>", "Request body as JSON string").option("--body-file <path>", "Read request body from file").action(async (id, opts) => {
|
|
1857
2132
|
const client = await ctx.getClient();
|
|
1858
2133
|
let body;
|
|
1859
2134
|
if (opts.bodyFile) {
|
|
1860
2135
|
const { readFileSync } = await import("fs");
|
|
1861
2136
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
1862
2137
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
1863
|
-
if (ctx.verbose) process.stderr.write(`PUT
|
|
2138
|
+
if (ctx.verbose) process.stderr.write(`PUT /api/v2025-06/widgets/chats/${id}
|
|
2139
|
+
`);
|
|
1864
2140
|
const result = await client.put(`/api/v2025-06/widgets/chats/${id}`, body);
|
|
1865
2141
|
ctx.output(result);
|
|
1866
2142
|
});
|
|
1867
|
-
resource.command("create-popup
|
|
2143
|
+
resource.command("create-popup").description("Create a popup widget").option("--body <json>", "Request body as JSON string").option("--body-file <path>", "Read request body from file").action(async (opts) => {
|
|
1868
2144
|
const client = await ctx.getClient();
|
|
1869
2145
|
let body;
|
|
1870
2146
|
if (opts.bodyFile) {
|
|
1871
2147
|
const { readFileSync } = await import("fs");
|
|
1872
2148
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
1873
2149
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
1874
|
-
if (ctx.verbose) process.stderr.write(
|
|
2150
|
+
if (ctx.verbose) process.stderr.write("POST /api/v2025-06/widgets/popups\n");
|
|
1875
2151
|
const result = await client.post(`/api/v2025-06/widgets/popups`, body);
|
|
1876
2152
|
ctx.output(result);
|
|
1877
2153
|
});
|
|
1878
|
-
resource.command("list-popup
|
|
2154
|
+
resource.command("list-popup").description("List popup widgets").option("--filter-status <value>", "Filter popup widgets by status").option("--filter-placement <value>", "Filter popup widgets by placement").option("--filter-name <value>", "Filter popup widgets by name").option("--page-cursor <value>", "Cursor for pagination").option("--page-limit <value>", "Number of records per page").option("--sort <value>", "Sort order (prefix with - for descending order)").action(async (opts) => {
|
|
1879
2155
|
const client = await ctx.getClient();
|
|
1880
2156
|
const params = {};
|
|
1881
2157
|
if (opts.filterStatus !== void 0) params["filter[status]"] = opts.filterStatus;
|
|
@@ -1884,30 +2160,33 @@ function registerWidgets(parent, ctx) {
|
|
|
1884
2160
|
if (opts.pageCursor !== void 0) params["page[cursor]"] = opts.pageCursor;
|
|
1885
2161
|
if (opts.pageLimit !== void 0) params["page[limit]"] = Number(opts.pageLimit);
|
|
1886
2162
|
if (opts.sort !== void 0) params["sort"] = opts.sort;
|
|
1887
|
-
if (ctx.verbose) process.stderr.write(
|
|
2163
|
+
if (ctx.verbose) process.stderr.write("GET /api/v2025-06/widgets/popups\n");
|
|
1888
2164
|
const result = await client.get(`/api/v2025-06/widgets/popups`, params);
|
|
1889
2165
|
ctx.output(result);
|
|
1890
2166
|
});
|
|
1891
|
-
resource.command("delete-popup
|
|
2167
|
+
resource.command("delete-popup <id>").description("Delete a popup widget").action(async (id) => {
|
|
1892
2168
|
const client = await ctx.getClient();
|
|
1893
|
-
if (ctx.verbose) process.stderr.write(`DELETE
|
|
2169
|
+
if (ctx.verbose) process.stderr.write(`DELETE /api/v2025-06/widgets/popups/${id}
|
|
2170
|
+
`);
|
|
1894
2171
|
const result = await client.delete(`/api/v2025-06/widgets/popups/${id}`);
|
|
1895
2172
|
ctx.output(result);
|
|
1896
2173
|
});
|
|
1897
|
-
resource.command("get-popup
|
|
2174
|
+
resource.command("get-popup <id>").description("Get a popup widget").action(async (id) => {
|
|
1898
2175
|
const client = await ctx.getClient();
|
|
1899
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
2176
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v2025-06/widgets/popups/${id}
|
|
2177
|
+
`);
|
|
1900
2178
|
const result = await client.get(`/api/v2025-06/widgets/popups/${id}`);
|
|
1901
2179
|
ctx.output(result);
|
|
1902
2180
|
});
|
|
1903
|
-
resource.command("update-popup
|
|
2181
|
+
resource.command("update-popup <id>").description("Update a popup widget").option("--body <json>", "Request body as JSON string").option("--body-file <path>", "Read request body from file").action(async (id, opts) => {
|
|
1904
2182
|
const client = await ctx.getClient();
|
|
1905
2183
|
let body;
|
|
1906
2184
|
if (opts.bodyFile) {
|
|
1907
2185
|
const { readFileSync } = await import("fs");
|
|
1908
2186
|
body = ctx.parseBody(readFileSync(opts.bodyFile, "utf-8"));
|
|
1909
2187
|
} else if (opts.body) body = ctx.parseBody(opts.body);
|
|
1910
|
-
if (ctx.verbose) process.stderr.write(`PATCH
|
|
2188
|
+
if (ctx.verbose) process.stderr.write(`PATCH /api/v2025-06/widgets/popups/${id}
|
|
2189
|
+
`);
|
|
1911
2190
|
const result = await client.patch(`/api/v2025-06/widgets/popups/${id}`, body);
|
|
1912
2191
|
ctx.output(result);
|
|
1913
2192
|
});
|
|
@@ -1916,15 +2195,17 @@ function registerWidgets(parent, ctx) {
|
|
|
1916
2195
|
//#region src/generated/default.ts
|
|
1917
2196
|
function registerDefault(parent, ctx) {
|
|
1918
2197
|
const resource = parent.command("default").description("default");
|
|
1919
|
-
resource.command("get-order-journey-events <order-id>").description("Get order journey events").action(async (orderId
|
|
2198
|
+
resource.command("get-order-journey-events <order-id>").description("Get order journey events").action(async (orderId) => {
|
|
1920
2199
|
const client = await ctx.getClient();
|
|
1921
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
2200
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v202506/orders/${orderId}/journey/events
|
|
2201
|
+
`);
|
|
1922
2202
|
const result = await client.get(`/api/v202506/orders/${orderId}/journey/events`);
|
|
1923
2203
|
ctx.output(result);
|
|
1924
2204
|
});
|
|
1925
|
-
resource.command("get-order-journey <order-id>").description("Get an order journey").action(async (orderId
|
|
2205
|
+
resource.command("get-order-journey <order-id>").description("Get an order journey").action(async (orderId) => {
|
|
1926
2206
|
const client = await ctx.getClient();
|
|
1927
|
-
if (ctx.verbose) process.stderr.write(`GET
|
|
2207
|
+
if (ctx.verbose) process.stderr.write(`GET /api/v202506/orders/${orderId}/journey
|
|
2208
|
+
`);
|
|
1928
2209
|
const result = await client.get(`/api/v202506/orders/${orderId}/journey`);
|
|
1929
2210
|
ctx.output(result);
|
|
1930
2211
|
});
|
|
@@ -1941,15 +2222,18 @@ function registerAllCommands(parent, ctx) {
|
|
|
1941
2222
|
registerLighthouse(parent, ctx);
|
|
1942
2223
|
registerMediaEnrollmentPacks(parent, ctx);
|
|
1943
2224
|
registerMediaProducts(parent, ctx);
|
|
2225
|
+
registerOrders(parent, ctx);
|
|
1944
2226
|
registerPartnerTokens(parent, ctx);
|
|
1945
2227
|
registerPlaylists(parent, ctx);
|
|
1946
2228
|
registerProductMedia(parent, ctx);
|
|
1947
2229
|
registerReps(parent, ctx);
|
|
1948
2230
|
registerShareStatistics(parent, ctx);
|
|
2231
|
+
registerUsersBrandGuidelines(parent, ctx);
|
|
1949
2232
|
registerUsersContacts(parent, ctx);
|
|
1950
2233
|
registerUsersMedia(parent, ctx);
|
|
1951
2234
|
registerUsersNotes(parent, ctx);
|
|
1952
2235
|
registerUsersPlaylists(parent, ctx);
|
|
2236
|
+
registerUsersProducts(parent, ctx);
|
|
1953
2237
|
registerUsersTasks(parent, ctx);
|
|
1954
2238
|
registerWidgets(parent, ctx);
|
|
1955
2239
|
registerDefault(parent, ctx);
|