twentythree-cli 1.3.0 → 1.3.1
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/dist/commands/video/replace.cjs +4 -1
- package/dist/commands/video/upload.cjs +15 -7
- package/dist/commands/webinar/create.cjs +4 -1
- package/dist/commands/webinar/repeat.cjs +4 -1
- package/dist/commands/webinar/series/create.cjs +4 -1
- package/oclif.manifest.json +1454 -1454
- package/package.json +1 -1
|
@@ -114,7 +114,10 @@ var VideoReplace = class VideoReplace extends require_lib_base_command.Authentic
|
|
|
114
114
|
this.log(`Admin: ${adminUrl}`);
|
|
115
115
|
if (this.jsonEnabled()) return require_lib_output.formatJsonOutput({
|
|
116
116
|
ok: true,
|
|
117
|
-
data:
|
|
117
|
+
data: {
|
|
118
|
+
...result,
|
|
119
|
+
admin_url: adminUrl
|
|
120
|
+
},
|
|
118
121
|
summary: `Video ${args.id} replaced`,
|
|
119
122
|
breadcrumbs: [{ domain: this.activeWorkspace.domain }, {
|
|
120
123
|
resource: "video",
|
|
@@ -130,20 +130,28 @@ var VideoUpload = class VideoUpload extends require_lib_base_command.Authenticat
|
|
|
130
130
|
bar.finish();
|
|
131
131
|
}
|
|
132
132
|
const videoId = result.photo_id;
|
|
133
|
-
const adminUrl = `https://${this.activeWorkspace.domain}/manage/video/${videoId}`;
|
|
134
133
|
this.log(chalk.default.green("Video uploaded successfully"));
|
|
135
134
|
if (videoId) {
|
|
135
|
+
const adminUrl = `https://${this.activeWorkspace.domain}/manage/video/${videoId}`;
|
|
136
136
|
this.log(`ID: ${videoId}`);
|
|
137
137
|
this.log(`Admin: ${adminUrl}`);
|
|
138
|
-
|
|
139
|
-
|
|
138
|
+
if (this.jsonEnabled()) return require_lib_output.formatJsonOutput({
|
|
139
|
+
ok: true,
|
|
140
|
+
data: {
|
|
141
|
+
...result,
|
|
142
|
+
admin_url: adminUrl
|
|
143
|
+
},
|
|
144
|
+
summary: "Video uploaded",
|
|
145
|
+
breadcrumbs: [{ domain: this.activeWorkspace.domain }, {
|
|
146
|
+
resource: "video",
|
|
147
|
+
id: String(videoId)
|
|
148
|
+
}]
|
|
149
|
+
});
|
|
150
|
+
} else if (this.jsonEnabled()) return require_lib_output.formatJsonOutput({
|
|
140
151
|
ok: true,
|
|
141
152
|
data: result,
|
|
142
153
|
summary: "Video uploaded",
|
|
143
|
-
breadcrumbs: [{ domain: this.activeWorkspace.domain }
|
|
144
|
-
resource: "video",
|
|
145
|
-
id: result.photo_id ? String(result.photo_id) : void 0
|
|
146
|
-
}]
|
|
154
|
+
breadcrumbs: [{ domain: this.activeWorkspace.domain }]
|
|
147
155
|
});
|
|
148
156
|
}
|
|
149
157
|
};
|
|
@@ -89,7 +89,10 @@ var WebinarCreate = class WebinarCreate extends require_lib_base_command.Authent
|
|
|
89
89
|
const liveId = createData?.data?.live_id;
|
|
90
90
|
if (this.jsonEnabled()) return require_lib_output.formatJsonOutput({
|
|
91
91
|
ok: true,
|
|
92
|
-
data:
|
|
92
|
+
data: {
|
|
93
|
+
...createData ?? {},
|
|
94
|
+
admin_url: `https://${this.activeWorkspace.domain}/manage/webinar/${liveId}`
|
|
95
|
+
},
|
|
93
96
|
summary: "Webinar created",
|
|
94
97
|
breadcrumbs: [{ domain: this.activeWorkspace.domain }, {
|
|
95
98
|
resource: "webinar",
|
|
@@ -47,7 +47,10 @@ var WebinarRepeat = class WebinarRepeat extends require_lib_base_command.Authent
|
|
|
47
47
|
const newLiveId = repeatData?.data?.live_id;
|
|
48
48
|
if (this.jsonEnabled()) return require_lib_output.formatJsonOutput({
|
|
49
49
|
ok: true,
|
|
50
|
-
data:
|
|
50
|
+
data: {
|
|
51
|
+
...repeatData ?? {},
|
|
52
|
+
admin_url: `https://${this.activeWorkspace.domain}/manage/webinar/${newLiveId}`
|
|
53
|
+
},
|
|
51
54
|
summary: "Webinar duplicated and scheduled",
|
|
52
55
|
breadcrumbs: [{ domain: this.activeWorkspace.domain }, {
|
|
53
56
|
resource: "webinar",
|
|
@@ -62,7 +62,10 @@ var WebinarSeriesCreate = class WebinarSeriesCreate extends require_lib_base_com
|
|
|
62
62
|
const seriesId = data?.data?.live_series_id ?? data?.live_series_id;
|
|
63
63
|
if (this.jsonEnabled()) return require_lib_output.formatJsonOutput({
|
|
64
64
|
ok: true,
|
|
65
|
-
data
|
|
65
|
+
data: {
|
|
66
|
+
...data ?? {},
|
|
67
|
+
admin_url: `https://${this.activeWorkspace.domain}/manage/webinar/series/${seriesId}`
|
|
68
|
+
},
|
|
66
69
|
summary: "Series created",
|
|
67
70
|
breadcrumbs: [{ domain: this.activeWorkspace.domain }, {
|
|
68
71
|
resource: "series",
|