@mediahub-bg/ott-objects 0.4.93 → 0.4.95

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/web/types.ts +47 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mediahub-bg/ott-objects",
3
- "version": "0.4.93",
3
+ "version": "0.4.95",
4
4
  "types": "web/types.d.ts",
5
5
  "files": [
6
6
  "web"
package/web/types.ts CHANGED
@@ -361,6 +361,25 @@ export interface ChannelUpdateRequest {
361
361
  transcoding?: any /* bson.M */[];
362
362
  muxer?: any /* bson.M */[];
363
363
  active?: boolean;
364
+ name?: string;
365
+ profiles?: M3U8Profile[];
366
+ transcoder?: string;
367
+ dbType?: string;
368
+ dbhost?: string;
369
+ dbport?: number /* uint */;
370
+ dbname?: string;
371
+ dbuser?: string;
372
+ dbpass?: string;
373
+ dbReplicaSet?: string;
374
+ chunkpath?: string;
375
+ tumblrpath?: string;
376
+ dbchunkprefix?: string;
377
+ dbtumblrprefix?: string;
378
+ adult?: boolean;
379
+ liveOnly?: boolean;
380
+ age?: number /* uint */;
381
+ epgInfo?: EPGInfoUpdate;
382
+ profileGroups?: ProfileGroupUpdate[];
364
383
  }
365
384
  export interface ChannelStat {
366
385
  id: string;
@@ -379,6 +398,34 @@ export interface ChannelStatsResponse {
379
398
  all: { [key: string]: number /* int64 */};
380
399
  chanStats: ChannelStat[];
381
400
  }
401
+ /**
402
+ * ChannelCloneRequest is the body for the channel-clone webhook endpoint.
403
+ */
404
+ export interface ChannelCloneRequest {
405
+ newId?: string;
406
+ }
407
+ /**
408
+ * EPGInfoUpdate carries the user-editable sub-fields of EPGInfo.
409
+ * * LastUpdate, LastSync and Sums are server-managed and not included.
410
+ */
411
+ export interface EPGInfoUpdate {
412
+ id?: number /* uint */;
413
+ name?: string;
414
+ type?: string;
415
+ url?: string;
416
+ customHeaders?: string[];
417
+ }
418
+ /**
419
+ * ProfileGroupUpdate is the JSON-serialisable equivalent of M3U8ProfileGroup.
420
+ * * M3U8ProfileGroup carries json:"-" on all fields to hide them from the
421
+ * * client-facing API; this type is used only in admin update requests.
422
+ */
423
+ export interface ProfileGroupUpdate {
424
+ type: string;
425
+ regex?: string;
426
+ profileIds: number /* int */[];
427
+ name?: string;
428
+ }
382
429
  export interface ChannelRPCRequest {
383
430
  cmd: string;
384
431
  args: string[];