Browse Source

thumbnailUrl - consistent case

Leszek Wiesner 4 years ago
parent
commit
088ed3adea

+ 1 - 1
cli/src/commands/media/updateVideo.ts

@@ -83,7 +83,7 @@ export default class UpdateVideoCommand extends MediaCommandBase {
       'category',
       'title',
       'description',
-      'thumbnailURL',
+      'thumbnailUrl',
       'duration',
       'isPublic',
       'isExplicit',

+ 1 - 1
cli/src/commands/media/uploadVideo.ts

@@ -335,7 +335,7 @@ export default class UploadVideoCommand extends MediaCommandBase {
     const videoProps = await videoPrompter.promptMultipleProps([
       'title',
       'description',
-      'thumbnailURL',
+      'thumbnailUrl',
       'duration',
       'isPublic',
       'isExplicit',

+ 1 - 1
content-directory-schemas/README.md

@@ -221,7 +221,7 @@ async main() {
       },
     },
     duration: 3600,
-    thumbnailURL: '',
+    thumbnailUrl: '',
     isExplicit: false,
     isPublic: true,
   }

+ 1 - 1
content-directory-schemas/examples/createVideo.ts

@@ -46,7 +46,7 @@ async function main() {
       },
     },
     duration: 3600,
-    thumbnailURL: '',
+    thumbnailUrl: '',
     isExplicit: false,
     isPublic: true,
   }

+ 2 - 2
content-directory-schemas/inputs/entityBatches/VideoBatch.json

@@ -26,7 +26,7 @@
           "pixelHeight": 1080
         }
       },
-      "thumbnailURL": "http://www.caminandes.com/wp-content/uploads/2016/02/web_header4.png",
+      "thumbnailUrl": "http://www.caminandes.com/wp-content/uploads/2016/02/web_header4.png",
       "isExplicit": false,
       "license": { "new": { "knownLicense": { "existing": { "code": "CC_BY" } } } }
     },
@@ -55,7 +55,7 @@
           "pixelHeight": 1080
         }
       },
-      "thumbnailURL": "http://www.caminandes.com/wp-content/uploads/2016/02/web_header4.png",
+      "thumbnailUrl": "http://www.caminandes.com/wp-content/uploads/2016/02/web_header4.png",
       "isExplicit": false,
       "license": { "new": { "knownLicense": { "existing": { "code": "CC_BY" } } } }
     }

+ 1 - 1
content-directory-schemas/inputs/schemas/VideoSchema.json

@@ -38,7 +38,7 @@
       "property_type": { "Single": "Uint16" }
     },
     {
-      "name": "thumbnailURL",
+      "name": "thumbnailUrl",
       "description": "Video thumbnail url (recommended ratio: 16:9)",
       "required": true,
       "property_type": { "Single": { "Text": 256 } }

+ 1 - 1
query-node/mappings/content-directory/content-dir-consts.ts

@@ -103,7 +103,7 @@ export const videoPropertyNamesWithId: IPropertyIdWithName = {
   3: 'description',
   4: 'duration',
   5: 'skippableIntroDuration',
-  6: 'thumbnailURL',
+  6: 'thumbnailUrl',
   7: 'language',
   // referenced entity's id
   8: 'media',

+ 1 - 1
query-node/mappings/content-directory/entity/create.ts

@@ -222,7 +222,7 @@ async function createVideo(
   video.isPublic = p.isPublic
   video.publishedBeforeJoystream = p.publishedBeforeJoystream
   video.skippableIntroDuration = p.skippableIntroDuration
-  video.thumbnailUrl = p.thumbnailURL
+  video.thumbnailUrl = p.thumbnailUrl
   video.version = block
 
   const { language, license, category, channel, media } = p

+ 1 - 1
query-node/mappings/types.ts

@@ -100,7 +100,7 @@ export interface IVideo {
   description: string
   duration: number
   skippableIntroDuration?: number
-  thumbnailURL: string
+  thumbnailUrl: string
   language?: IReference
   // referenced entity's id
   media?: IReference

+ 1 - 1
query-node/schema.graphql

@@ -265,7 +265,7 @@ type Video @entity {
   skippableIntroDuration: Int
 
   "Video thumbnail url (recommended ratio: 16:9)"
-  thumbnailURL: String!
+  thumbnailUrl: String!
 
   "Video's main langauge"
   language: Language

+ 1 - 1
tests/network-tests/src/flows/contentDirectory/creatingVideo.ts

@@ -35,7 +35,7 @@ export function createVideoReferencingChannelFixture(api: QueryNodeApi): CreateV
       },
     },
     duration: 3600,
-    thumbnailURL: '',
+    thumbnailUrl: '',
     isExplicit: false,
     isPublic: true,
   }