@denevads/dnv-smo 1.0.41 → 1.1.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.
Binary file
@@ -41,7 +41,7 @@ export interface GetRecursos {
41
41
  fechaInicio: string;
42
42
  fechaFin: string;
43
43
  ocultarVideos?: boolean;
44
- recursos?: [];
44
+ recursos?: Recurso[];
45
45
  canales?: Canal[];
46
46
  }
47
47
  export interface Canal {
@@ -75,7 +75,7 @@ export interface Recurso {
75
75
  dias: string;
76
76
  nombre: string;
77
77
  metadatos?: {
78
- (key: string): string;
78
+ [key: string]: string;
79
79
  };
80
80
  }
81
81
  export interface Datasource {
package/dist/smo.js CHANGED
@@ -198,9 +198,11 @@ var SMO = /** @class */ (function () {
198
198
  }
199
199
  if (func == SMO_EVENT_TYPE.getRecursos) {
200
200
  selft.getRecursos(e.data.objData);
201
+ return;
201
202
  }
202
203
  if (func == SMO_EVENT_TYPE.getRecursosDefault) {
203
204
  selft.getRecursosDefault(e.data.objData);
205
+ return;
204
206
  }
205
207
  if (func == SMO_EVENT_TYPE.getRecursosRelleno) {
206
208
  selft.getRecursosRelleno(e.data.objData);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@denevads/dnv-smo",
3
- "version": "1.0.41",
3
+ "version": "1.1.0",
4
4
  "description": "SMO module",
5
5
  "main": "./src/index.js",
6
6
  "types": "./src/index.d.ts",
@@ -46,7 +46,7 @@ export interface GetRecursos {
46
46
  fechaInicio: string;
47
47
  fechaFin: string;
48
48
  ocultarVideos?: boolean;
49
- recursos?: [];
49
+ recursos?: Recurso[];
50
50
  canales?: Canal[];
51
51
  }
52
52
  export interface Canal {
@@ -79,7 +79,7 @@ export interface Recurso {
79
79
  hora_fin:string;
80
80
  dias:string;
81
81
  nombre:string;
82
- metadatos?: {(key:string):string};
82
+ metadatos?: {[key:string]:string};
83
83
  }
84
84
  export interface Datasource{
85
85
  data : string;
package/src/smo.ts CHANGED
@@ -220,9 +220,11 @@ export class SMO {
220
220
  }
221
221
  if(func == SMO_EVENT_TYPE.getRecursos){
222
222
  selft.getRecursos(e.data.objData);
223
+ return;
223
224
  }
224
225
  if(func == SMO_EVENT_TYPE.getRecursosDefault){
225
226
  selft.getRecursosDefault(e.data.objData);
227
+ return;
226
228
  }
227
229
  if(func == SMO_EVENT_TYPE.getRecursosRelleno){
228
230
  selft.getRecursosRelleno(e.data.objData);
Binary file