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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/cli.js +12 -12
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "activitysmith-cli",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Command-line interface for ActivitySmith. Send push notifications, start, update and end live activities directly from your terminal.",
5
5
  "keywords": [
6
6
  "activitysmith",
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.start(
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.update(
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.end(
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.",