Browse Source

types: add VideoMigrationConfig, and ChannelMigrationConfig

Mokhtar Naamani 3 years ago
parent
commit
a4402f05a6
3 changed files with 26 additions and 4 deletions
  1. 8 0
      types/augment/all/defs.json
  2. 12 0
      types/augment/all/types.ts
  3. 6 4
      types/src/content/index.ts

+ 8 - 0
types/augment/all/defs.json

@@ -903,5 +903,13 @@
     },
     "MaxNumber": "u32",
     "IsCensored": "bool",
+    "VideoMigrationConfig": {
+        "current_id": "VideoId",
+        "final_id": "VideoId"
+    },
+    "ChannelMigrationConfig": {
+        "current_id": "ChannelId",
+        "final_id": "ChannelId"
+    },
     "AccountInfo": "AccountInfoWithRefCount"
 }

+ 12 - 0
types/augment/all/types.ts

@@ -245,6 +245,12 @@ export interface ChannelCurationStatus extends Null {}
 /** @name ChannelId */
 export interface ChannelId extends u64 {}
 
+/** @name ChannelMigrationConfig */
+export interface ChannelMigrationConfig extends Struct {
+  readonly current_id: ChannelId;
+  readonly final_id: ChannelId;
+}
+
 /** @name ChannelOwner */
 export interface ChannelOwner extends Enum {
   readonly isMember: boolean;
@@ -1381,6 +1387,12 @@ export interface VideoCreationParameters extends Struct {
 /** @name VideoId */
 export interface VideoId extends u64 {}
 
+/** @name VideoMigrationConfig */
+export interface VideoMigrationConfig extends Struct {
+  readonly current_id: VideoId;
+  readonly final_id: VideoId;
+}
+
 /** @name VideoUpdateParameters */
 export interface VideoUpdateParameters extends Struct {
   readonly assets_to_upload: Option<StorageAssets>;

+ 6 - 4
types/src/content/index.ts

@@ -170,12 +170,12 @@ export class PersonActor extends JoyEnum({
 }) {}
 
 export class VideoMigrationConfig extends JoyStructDecorated({
-    current_id: VideoId,
-    final_id: VideoId,    
+  current_id: VideoId,
+  final_id: VideoId,
 }) {}
 export class ChannelMigrationConfig extends JoyStructDecorated({
-    current_id: ChannelId,
-    final_id: ChannelId,    
+  current_id: ChannelId,
+  final_id: ChannelId,
 }) {}
 export const contentTypes = {
   CuratorId,
@@ -219,6 +219,8 @@ export const contentTypes = {
   EpisodeParemters,
   MaxNumber,
   IsCensored,
+  VideoMigrationConfig,
+  ChannelMigrationConfig,
 }
 
 export default contentTypes