@denevads/dnv-smo 1.0.40 → 1.0.42
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/dist/interfaces/callbacks.d.ts +4 -1
- package/dist/smo.js +2 -0
- package/package.json +1 -1
- package/src/interfaces/callbacks.ts +2 -1
- package/src/smo.ts +2 -0
|
@@ -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 {
|
|
@@ -74,6 +74,9 @@ export interface Recurso {
|
|
|
74
74
|
hora_fin: string;
|
|
75
75
|
dias: string;
|
|
76
76
|
nombre: string;
|
|
77
|
+
metadatos?: {
|
|
78
|
+
[key: string]: string;
|
|
79
|
+
};
|
|
77
80
|
}
|
|
78
81
|
export interface Datasource {
|
|
79
82
|
data: string;
|
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
|
@@ -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,6 +79,7 @@ export interface Recurso {
|
|
|
79
79
|
hora_fin:string;
|
|
80
80
|
dias:string;
|
|
81
81
|
nombre:string;
|
|
82
|
+
metadatos?: {[key:string]:string};
|
|
82
83
|
}
|
|
83
84
|
export interface Datasource{
|
|
84
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);
|