@boldvideo/bold-js 1.11.1 → 1.12.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @boldvideo/bold-js
2
2
 
3
+ ## 1.12.0
4
+
5
+ ### Minor Changes
6
+
7
+ - ccd71c9: Add slug field to Video type
8
+
3
9
  ## 1.11.1
4
10
 
5
11
  ### Patch Changes
package/README.md CHANGED
@@ -62,8 +62,9 @@ console.log(recs.guidance);
62
62
  // List latest videos
63
63
  const videos = await bold.videos.list();
64
64
 
65
- // Get a single video
65
+ // Get a single video by ID or slug
66
66
  const video = await bold.videos.get('video-id');
67
+ const videoBySlug = await bold.videos.get('my-video-slug');
67
68
 
68
69
  // Search videos
69
70
  const results = await bold.videos.search('pricing strategies');
package/dist/index.d.ts CHANGED
@@ -32,6 +32,7 @@ type Video = {
32
32
  description: string | null;
33
33
  duration: number;
34
34
  id: string;
35
+ slug?: string;
35
36
  importedFrom: string | null;
36
37
  legacyVideoUrl: string | null;
37
38
  playbackId: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@boldvideo/bold-js",
3
3
  "license": "MIT",
4
- "version": "1.11.1",
4
+ "version": "1.12.0",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",