@fluid-app/v2025-06-cli-commands 0.1.31 → 0.1.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +34 -6
- package/src/generated/company-contacts.ts +12 -29
- package/src/generated/compliance.ts +85 -355
- package/src/generated/customers.ts +10 -23
- package/src/generated/default.ts +4 -11
- package/src/generated/email-settings.ts +6 -19
- package/src/generated/enrollment-pack-media.ts +9 -36
- package/src/generated/fair-share-settings.ts +6 -19
- package/src/generated/index.ts +1 -4
- package/src/generated/lighthouse.ts +85 -355
- package/src/generated/media-enrollment-packs.ts +9 -32
- package/src/generated/media-products.ts +9 -30
- package/src/generated/orders.ts +6 -12
- package/src/generated/partner-tokens.ts +15 -47
- package/src/generated/playlists.ts +20 -58
- package/src/generated/product-media.ts +8 -27
- package/src/generated/reps.ts +49 -156
- package/src/generated/share-statistics.ts +16 -54
- package/src/generated/users-brand-guidelines.ts +4 -11
- package/src/generated/users-contacts.ts +36 -132
- package/src/generated/users-media.ts +9 -22
- package/src/generated/users-notes.ts +12 -31
- package/src/generated/users-playlists.ts +13 -35
- package/src/generated/users-products.ts +15 -41
- package/src/generated/users-tasks.ts +11 -31
- package/src/generated/widgets.ts +45 -120
- package/.turbo/turbo-build.log +0 -18
- package/.turbo/turbo-typecheck.log +0 -4
- package/dist/index.d.mts +0 -7
- package/dist/index.d.mts.map +0 -1
- package/dist/index.mjs.map +0 -1
|
@@ -19,8 +19,7 @@ export function registerCustomers(parent: Command, ctx: CommandContext): void {
|
|
|
19
19
|
} else if (opts.body) {
|
|
20
20
|
body = ctx.parseBody(opts.body);
|
|
21
21
|
}
|
|
22
|
-
if (ctx.verbose)
|
|
23
|
-
process.stderr.write("POST " + `/api/v2025-06/customers` + "\n");
|
|
22
|
+
if (ctx.verbose) process.stderr.write("POST " + `/api/v2025-06/customers` + "\n");
|
|
24
23
|
const result = await client.post(`/api/v2025-06/customers`, body);
|
|
25
24
|
ctx.output(result);
|
|
26
25
|
});
|
|
@@ -28,16 +27,12 @@ export function registerCustomers(parent: Command, ctx: CommandContext): void {
|
|
|
28
27
|
resource
|
|
29
28
|
.command("list")
|
|
30
29
|
.description("List customers")
|
|
31
|
-
.option(
|
|
32
|
-
"--params <value>",
|
|
33
|
-
"Query parameters for filtering, pagination, and sorting",
|
|
34
|
-
)
|
|
30
|
+
.option("--params <value>", "Query parameters for filtering, pagination, and sorting")
|
|
35
31
|
.action(async (opts) => {
|
|
36
32
|
const client = await ctx.getClient();
|
|
37
33
|
const params: Record<string, unknown> = {};
|
|
38
34
|
if (opts.params !== undefined) params["params"] = opts.params;
|
|
39
|
-
if (ctx.verbose)
|
|
40
|
-
process.stderr.write("GET " + `/api/v2025-06/customers` + "\n");
|
|
35
|
+
if (ctx.verbose) process.stderr.write("GET " + `/api/v2025-06/customers` + "\n");
|
|
41
36
|
const result = await client.get(`/api/v2025-06/customers`, params);
|
|
42
37
|
ctx.output(result);
|
|
43
38
|
});
|
|
@@ -47,10 +42,7 @@ export function registerCustomers(parent: Command, ctx: CommandContext): void {
|
|
|
47
42
|
.description("Delete a customer")
|
|
48
43
|
.action(async (id) => {
|
|
49
44
|
const client = await ctx.getClient();
|
|
50
|
-
if (ctx.verbose)
|
|
51
|
-
process.stderr.write(
|
|
52
|
-
"DELETE " + `/api/v2025-06/customers/${id}` + "\n",
|
|
53
|
-
);
|
|
45
|
+
if (ctx.verbose) process.stderr.write("DELETE " + `/api/v2025-06/customers/${id}` + "\n");
|
|
54
46
|
const result = await client.delete(`/api/v2025-06/customers/${id}`);
|
|
55
47
|
ctx.output(result);
|
|
56
48
|
});
|
|
@@ -60,8 +52,7 @@ export function registerCustomers(parent: Command, ctx: CommandContext): void {
|
|
|
60
52
|
.description("Get a customer")
|
|
61
53
|
.action(async (id) => {
|
|
62
54
|
const client = await ctx.getClient();
|
|
63
|
-
if (ctx.verbose)
|
|
64
|
-
process.stderr.write("GET " + `/api/v2025-06/customers/${id}` + "\n");
|
|
55
|
+
if (ctx.verbose) process.stderr.write("GET " + `/api/v2025-06/customers/${id}` + "\n");
|
|
65
56
|
const result = await client.get(`/api/v2025-06/customers/${id}`);
|
|
66
57
|
ctx.output(result);
|
|
67
58
|
});
|
|
@@ -80,8 +71,7 @@ export function registerCustomers(parent: Command, ctx: CommandContext): void {
|
|
|
80
71
|
} else if (opts.body) {
|
|
81
72
|
body = ctx.parseBody(opts.body);
|
|
82
73
|
}
|
|
83
|
-
if (ctx.verbose)
|
|
84
|
-
process.stderr.write("PATCH " + `/api/v2025-06/customers/${id}` + "\n");
|
|
74
|
+
if (ctx.verbose) process.stderr.write("PATCH " + `/api/v2025-06/customers/${id}` + "\n");
|
|
85
75
|
const result = await client.patch(`/api/v2025-06/customers/${id}`, body);
|
|
86
76
|
ctx.output(result);
|
|
87
77
|
});
|
|
@@ -100,8 +90,7 @@ export function registerCustomers(parent: Command, ctx: CommandContext): void {
|
|
|
100
90
|
} else if (opts.body) {
|
|
101
91
|
body = ctx.parseBody(opts.body);
|
|
102
92
|
}
|
|
103
|
-
if (ctx.verbose)
|
|
104
|
-
process.stderr.write("POST " + `/api/v2025-06/customers/bulk` + "\n");
|
|
93
|
+
if (ctx.verbose) process.stderr.write("POST " + `/api/v2025-06/customers/bulk` + "\n");
|
|
105
94
|
const result = await client.post(`/api/v2025-06/customers/bulk`, body);
|
|
106
95
|
ctx.output(result);
|
|
107
96
|
});
|
|
@@ -120,11 +109,9 @@ export function registerCustomers(parent: Command, ctx: CommandContext): void {
|
|
|
120
109
|
} else if (opts.body) {
|
|
121
110
|
body = ctx.parseBody(opts.body);
|
|
122
111
|
}
|
|
123
|
-
if (ctx.verbose)
|
|
124
|
-
|
|
125
|
-
const result = await client.delete(`/api/v2025-06/customers/bulk`, {
|
|
126
|
-
body,
|
|
127
|
-
});
|
|
112
|
+
if (ctx.verbose) process.stderr.write("DELETE " + `/api/v2025-06/customers/bulk` + "\n");
|
|
113
|
+
const result = await client.delete(`/api/v2025-06/customers/bulk`, { body });
|
|
128
114
|
ctx.output(result);
|
|
129
115
|
});
|
|
116
|
+
|
|
130
117
|
}
|
package/src/generated/default.ts
CHANGED
|
@@ -10,13 +10,8 @@ export function registerDefault(parent: Command, ctx: CommandContext): void {
|
|
|
10
10
|
.description("Get order journey events")
|
|
11
11
|
.action(async (orderId) => {
|
|
12
12
|
const client = await ctx.getClient();
|
|
13
|
-
if (ctx.verbose)
|
|
14
|
-
|
|
15
|
-
"GET " + `/api/v202506/orders/${orderId}/journey/events` + "\n",
|
|
16
|
-
);
|
|
17
|
-
const result = await client.get(
|
|
18
|
-
`/api/v202506/orders/${orderId}/journey/events`,
|
|
19
|
-
);
|
|
13
|
+
if (ctx.verbose) process.stderr.write("GET " + `/api/v202506/orders/${orderId}/journey/events` + "\n");
|
|
14
|
+
const result = await client.get(`/api/v202506/orders/${orderId}/journey/events`);
|
|
20
15
|
ctx.output(result);
|
|
21
16
|
});
|
|
22
17
|
|
|
@@ -25,11 +20,9 @@ export function registerDefault(parent: Command, ctx: CommandContext): void {
|
|
|
25
20
|
.description("Get an order journey")
|
|
26
21
|
.action(async (orderId) => {
|
|
27
22
|
const client = await ctx.getClient();
|
|
28
|
-
if (ctx.verbose)
|
|
29
|
-
process.stderr.write(
|
|
30
|
-
"GET " + `/api/v202506/orders/${orderId}/journey` + "\n",
|
|
31
|
-
);
|
|
23
|
+
if (ctx.verbose) process.stderr.write("GET " + `/api/v202506/orders/${orderId}/journey` + "\n");
|
|
32
24
|
const result = await client.get(`/api/v202506/orders/${orderId}/journey`);
|
|
33
25
|
ctx.output(result);
|
|
34
26
|
});
|
|
27
|
+
|
|
35
28
|
}
|
|
@@ -2,23 +2,15 @@
|
|
|
2
2
|
import { Command } from "commander";
|
|
3
3
|
import type { CommandContext } from "../lib/types.js";
|
|
4
4
|
|
|
5
|
-
export function registerEmailSettings(
|
|
6
|
-
parent
|
|
7
|
-
ctx: CommandContext,
|
|
8
|
-
): void {
|
|
9
|
-
const resource = parent
|
|
10
|
-
.command("email-settings")
|
|
11
|
-
.description("Email Settings");
|
|
5
|
+
export function registerEmailSettings(parent: Command, ctx: CommandContext): void {
|
|
6
|
+
const resource = parent.command("email-settings").description("Email Settings");
|
|
12
7
|
|
|
13
8
|
resource
|
|
14
9
|
.command("get-company")
|
|
15
10
|
.description("returns company email settings")
|
|
16
11
|
.action(async () => {
|
|
17
12
|
const client = await ctx.getClient();
|
|
18
|
-
if (ctx.verbose)
|
|
19
|
-
process.stderr.write(
|
|
20
|
-
"GET " + `/api/v2025-06/company-email-settings` + "\n",
|
|
21
|
-
);
|
|
13
|
+
if (ctx.verbose) process.stderr.write("GET " + `/api/v2025-06/company-email-settings` + "\n");
|
|
22
14
|
const result = await client.get(`/api/v2025-06/company-email-settings`);
|
|
23
15
|
ctx.output(result);
|
|
24
16
|
});
|
|
@@ -37,14 +29,9 @@ export function registerEmailSettings(
|
|
|
37
29
|
} else if (opts.body) {
|
|
38
30
|
body = ctx.parseBody(opts.body);
|
|
39
31
|
}
|
|
40
|
-
if (ctx.verbose)
|
|
41
|
-
|
|
42
|
-
"PATCH " + `/api/v2025-06/company-email-settings/${id}` + "\n",
|
|
43
|
-
);
|
|
44
|
-
const result = await client.patch(
|
|
45
|
-
`/api/v2025-06/company-email-settings/${id}`,
|
|
46
|
-
body,
|
|
47
|
-
);
|
|
32
|
+
if (ctx.verbose) process.stderr.write("PATCH " + `/api/v2025-06/company-email-settings/${id}` + "\n");
|
|
33
|
+
const result = await client.patch(`/api/v2025-06/company-email-settings/${id}`, body);
|
|
48
34
|
ctx.output(result);
|
|
49
35
|
});
|
|
36
|
+
|
|
50
37
|
}
|
|
@@ -2,13 +2,8 @@
|
|
|
2
2
|
import { Command } from "commander";
|
|
3
3
|
import type { CommandContext } from "../lib/types.js";
|
|
4
4
|
|
|
5
|
-
export function registerEnrollmentPackMedia(
|
|
6
|
-
parent
|
|
7
|
-
ctx: CommandContext,
|
|
8
|
-
): void {
|
|
9
|
-
const resource = parent
|
|
10
|
-
.command("enrollment-pack-media")
|
|
11
|
-
.description("EnrollmentPackMedia");
|
|
5
|
+
export function registerEnrollmentPackMedia(parent: Command, ctx: CommandContext): void {
|
|
6
|
+
const resource = parent.command("enrollment-pack-media").description("EnrollmentPackMedia");
|
|
12
7
|
|
|
13
8
|
resource
|
|
14
9
|
.command("list <enrollment-pack-id>")
|
|
@@ -18,16 +13,8 @@ export function registerEnrollmentPackMedia(
|
|
|
18
13
|
const client = await ctx.getClient();
|
|
19
14
|
const params: Record<string, unknown> = {};
|
|
20
15
|
if (opts.page !== undefined) params["page"] = opts.page;
|
|
21
|
-
if (ctx.verbose)
|
|
22
|
-
|
|
23
|
-
"GET " +
|
|
24
|
-
`/api/v2025-06/enrollment_packs/${enrollmentPackId}/media` +
|
|
25
|
-
"\n",
|
|
26
|
-
);
|
|
27
|
-
const result = await client.get(
|
|
28
|
-
`/api/v2025-06/enrollment_packs/${enrollmentPackId}/media`,
|
|
29
|
-
params,
|
|
30
|
-
);
|
|
16
|
+
if (ctx.verbose) process.stderr.write("GET " + `/api/v2025-06/enrollment_packs/${enrollmentPackId}/media` + "\n");
|
|
17
|
+
const result = await client.get(`/api/v2025-06/enrollment_packs/${enrollmentPackId}/media`, params);
|
|
31
18
|
ctx.output(result);
|
|
32
19
|
});
|
|
33
20
|
|
|
@@ -45,16 +32,8 @@ export function registerEnrollmentPackMedia(
|
|
|
45
32
|
} else if (opts.body) {
|
|
46
33
|
body = ctx.parseBody(opts.body);
|
|
47
34
|
}
|
|
48
|
-
if (ctx.verbose)
|
|
49
|
-
|
|
50
|
-
"POST " +
|
|
51
|
-
`/api/v2025-06/enrollment_packs/${enrollmentPackId}/media` +
|
|
52
|
-
"\n",
|
|
53
|
-
);
|
|
54
|
-
const result = await client.post(
|
|
55
|
-
`/api/v2025-06/enrollment_packs/${enrollmentPackId}/media`,
|
|
56
|
-
body,
|
|
57
|
-
);
|
|
35
|
+
if (ctx.verbose) process.stderr.write("POST " + `/api/v2025-06/enrollment_packs/${enrollmentPackId}/media` + "\n");
|
|
36
|
+
const result = await client.post(`/api/v2025-06/enrollment_packs/${enrollmentPackId}/media`, body);
|
|
58
37
|
ctx.output(result);
|
|
59
38
|
});
|
|
60
39
|
|
|
@@ -63,15 +42,9 @@ export function registerEnrollmentPackMedia(
|
|
|
63
42
|
.description("Medium removed from enrollment pack")
|
|
64
43
|
.action(async (enrollmentPackId, id) => {
|
|
65
44
|
const client = await ctx.getClient();
|
|
66
|
-
if (ctx.verbose)
|
|
67
|
-
|
|
68
|
-
"DELETE " +
|
|
69
|
-
`/api/v2025-06/enrollment_packs/${enrollmentPackId}/media/${id}` +
|
|
70
|
-
"\n",
|
|
71
|
-
);
|
|
72
|
-
const result = await client.delete(
|
|
73
|
-
`/api/v2025-06/enrollment_packs/${enrollmentPackId}/media/${id}`,
|
|
74
|
-
);
|
|
45
|
+
if (ctx.verbose) process.stderr.write("DELETE " + `/api/v2025-06/enrollment_packs/${enrollmentPackId}/media/${id}` + "\n");
|
|
46
|
+
const result = await client.delete(`/api/v2025-06/enrollment_packs/${enrollmentPackId}/media/${id}`);
|
|
75
47
|
ctx.output(result);
|
|
76
48
|
});
|
|
49
|
+
|
|
77
50
|
}
|
|
@@ -2,23 +2,15 @@
|
|
|
2
2
|
import { Command } from "commander";
|
|
3
3
|
import type { CommandContext } from "../lib/types.js";
|
|
4
4
|
|
|
5
|
-
export function registerFairShareSettings(
|
|
6
|
-
parent
|
|
7
|
-
ctx: CommandContext,
|
|
8
|
-
): void {
|
|
9
|
-
const resource = parent
|
|
10
|
-
.command("fair-share-settings")
|
|
11
|
-
.description("Fair Share Settings");
|
|
5
|
+
export function registerFairShareSettings(parent: Command, ctx: CommandContext): void {
|
|
6
|
+
const resource = parent.command("fair-share-settings").description("Fair Share Settings");
|
|
12
7
|
|
|
13
8
|
resource
|
|
14
9
|
.command("get")
|
|
15
10
|
.description("Get Fair Share settings")
|
|
16
11
|
.action(async () => {
|
|
17
12
|
const client = await ctx.getClient();
|
|
18
|
-
if (ctx.verbose)
|
|
19
|
-
process.stderr.write(
|
|
20
|
-
"GET " + `/api/v2025-06/fairshare/settings` + "\n",
|
|
21
|
-
);
|
|
13
|
+
if (ctx.verbose) process.stderr.write("GET " + `/api/v2025-06/fairshare/settings` + "\n");
|
|
22
14
|
const result = await client.get(`/api/v2025-06/fairshare/settings`);
|
|
23
15
|
ctx.output(result);
|
|
24
16
|
});
|
|
@@ -37,14 +29,9 @@ export function registerFairShareSettings(
|
|
|
37
29
|
} else if (opts.body) {
|
|
38
30
|
body = ctx.parseBody(opts.body);
|
|
39
31
|
}
|
|
40
|
-
if (ctx.verbose)
|
|
41
|
-
|
|
42
|
-
"PATCH " + `/api/v2025-06/fairshare/settings` + "\n",
|
|
43
|
-
);
|
|
44
|
-
const result = await client.patch(
|
|
45
|
-
`/api/v2025-06/fairshare/settings`,
|
|
46
|
-
body,
|
|
47
|
-
);
|
|
32
|
+
if (ctx.verbose) process.stderr.write("PATCH " + `/api/v2025-06/fairshare/settings` + "\n");
|
|
33
|
+
const result = await client.patch(`/api/v2025-06/fairshare/settings`, body);
|
|
48
34
|
ctx.output(result);
|
|
49
35
|
});
|
|
36
|
+
|
|
50
37
|
}
|
package/src/generated/index.ts
CHANGED
|
@@ -27,10 +27,7 @@ import { registerUsersTasks } from "./users-tasks.js";
|
|
|
27
27
|
import { registerWidgets } from "./widgets.js";
|
|
28
28
|
import { registerDefault } from "./default.js";
|
|
29
29
|
|
|
30
|
-
export function registerAllCommands(
|
|
31
|
-
parent: Command,
|
|
32
|
-
ctx: CommandContext,
|
|
33
|
-
): void {
|
|
30
|
+
export function registerAllCommands(parent: Command, ctx: CommandContext): void {
|
|
34
31
|
registerCompanyContacts(parent, ctx);
|
|
35
32
|
registerCompliance(parent, ctx);
|
|
36
33
|
registerCustomers(parent, ctx);
|