activitysmith-cli 0.1.3 → 0.1.4
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 +1 -1
- package/src/cli.js +12 -12
package/package.json
CHANGED
package/src/cli.js
CHANGED
|
@@ -425,12 +425,12 @@ addContentStateOptions(
|
|
|
425
425
|
const client = createClient(apiKey);
|
|
426
426
|
const contentState = await loadContentState(options);
|
|
427
427
|
|
|
428
|
-
const response = await client.liveActivities.
|
|
429
|
-
withTargetChannels(
|
|
428
|
+
const response = await client.liveActivities.startLiveActivity({
|
|
429
|
+
liveActivityStartRequest: withTargetChannels(
|
|
430
430
|
toApiLiveActivityStartRequest(contentState),
|
|
431
431
|
options.channels
|
|
432
|
-
)
|
|
433
|
-
);
|
|
432
|
+
),
|
|
433
|
+
});
|
|
434
434
|
|
|
435
435
|
const activityId = response?.activityId ?? response?.activity_id;
|
|
436
436
|
outputResult(response, globalOptions, [
|
|
@@ -456,12 +456,12 @@ addContentStateOptions(
|
|
|
456
456
|
const client = createClient(apiKey);
|
|
457
457
|
const contentState = await loadContentState(options);
|
|
458
458
|
|
|
459
|
-
const response = await client.liveActivities.
|
|
460
|
-
toApiLiveActivityUpdateRequest(
|
|
459
|
+
const response = await client.liveActivities.updateLiveActivity({
|
|
460
|
+
liveActivityUpdateRequest: toApiLiveActivityUpdateRequest(
|
|
461
461
|
options.activityId,
|
|
462
462
|
contentState
|
|
463
|
-
)
|
|
464
|
-
);
|
|
463
|
+
),
|
|
464
|
+
});
|
|
465
465
|
|
|
466
466
|
outputResult(response, globalOptions, [
|
|
467
467
|
"Live Activity updated.",
|
|
@@ -486,12 +486,12 @@ addContentStateOptions(
|
|
|
486
486
|
const client = createClient(apiKey);
|
|
487
487
|
const contentState = await loadContentState(options);
|
|
488
488
|
|
|
489
|
-
const response = await client.liveActivities.
|
|
490
|
-
toApiLiveActivityEndRequest(
|
|
489
|
+
const response = await client.liveActivities.endLiveActivity({
|
|
490
|
+
liveActivityEndRequest: toApiLiveActivityEndRequest(
|
|
491
491
|
options.activityId,
|
|
492
492
|
contentState
|
|
493
|
-
)
|
|
494
|
-
);
|
|
493
|
+
),
|
|
494
|
+
});
|
|
495
495
|
|
|
496
496
|
outputResult(response, globalOptions, [
|
|
497
497
|
"Live Activity ended.",
|