@denevads/dnv-smo 1.0.10 → 1.0.11
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 +1 -0
- package/dist/smo.d.ts +6 -0
- package/dist/smo.js +30 -0
- package/package.json +1 -1
- package/src/interfaces/callbacks.ts +1 -0
- package/src/smo.ts +30 -0
package/dist/smo.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ export declare class SMO {
|
|
|
19
19
|
setSalidaData(data: DataSalida): void;
|
|
20
20
|
updatefromsalida(data: any): void;
|
|
21
21
|
getRecursos(data: GetRecursos): void;
|
|
22
|
+
getRecursosDefault(data: GetRecursos): void;
|
|
22
23
|
getRecursosRelleno(data: GetRecursosRelleno): void;
|
|
23
24
|
getVariableStorage(variable: variable): void;
|
|
24
25
|
}
|
|
@@ -32,6 +33,7 @@ declare class SmoEvents {
|
|
|
32
33
|
setSalidaData: Subject<DataSalida>;
|
|
33
34
|
updatefromsalida: Subject<any>;
|
|
34
35
|
getRecursos: Subject<GetRecursos>;
|
|
36
|
+
getRecursosDefault: Subject<GetRecursos>;
|
|
35
37
|
getRecursosRelleno: Subject<GetRecursosRelleno>;
|
|
36
38
|
getVariableStorage: Subject<variable>;
|
|
37
39
|
constructor(smo: SMO);
|
|
@@ -43,6 +45,8 @@ declare class smoCallBacks {
|
|
|
43
45
|
onSmoReady(): void;
|
|
44
46
|
smoLog(msn: string, level: LogLevel): void;
|
|
45
47
|
smoAlarma(msn: string, level: AlarmaLevel): void;
|
|
48
|
+
smoLogStash(msn: string): void;
|
|
49
|
+
smoLogNowShowing(msn: any): void;
|
|
46
50
|
reiniciarDispositivo(msn: string): void;
|
|
47
51
|
urlNext(): void;
|
|
48
52
|
exitInteractivity(): void;
|
|
@@ -68,6 +72,7 @@ declare class smoCallBacks {
|
|
|
68
72
|
stopPlayChannel(): void;
|
|
69
73
|
editWrapperStyle(obj: any): void;
|
|
70
74
|
getRecursos(): void;
|
|
75
|
+
getRecursosDefault(): void;
|
|
71
76
|
getRecursosRelleno(): void;
|
|
72
77
|
setVariableStorage(variable: string, valor: string): void;
|
|
73
78
|
getVariableStorage(variable: string): void;
|
|
@@ -91,6 +96,7 @@ export declare enum SMO_EVENT_TYPE {
|
|
|
91
96
|
updatefromsalida = "updatefromsalida",
|
|
92
97
|
setDatasourceJson = "setDatasourceJson",
|
|
93
98
|
getRecursos = "getRecursos",
|
|
99
|
+
getRecursosDefault = "getRecursosDefault",
|
|
94
100
|
getRecursosRelleno = "getRecursosRelleno",
|
|
95
101
|
getVariableStorage = "getVariableStorage"
|
|
96
102
|
}
|
package/dist/smo.js
CHANGED
|
@@ -82,6 +82,9 @@ var SMO = /** @class */ (function () {
|
|
|
82
82
|
if (func == SMO_EVENT_TYPE.getRecursos) {
|
|
83
83
|
selft.getRecursos(e.data.objData);
|
|
84
84
|
}
|
|
85
|
+
if (func == SMO_EVENT_TYPE.getRecursosDefault) {
|
|
86
|
+
selft.getRecursosDefault(e.data.objData);
|
|
87
|
+
}
|
|
85
88
|
if (func == SMO_EVENT_TYPE.getRecursosRelleno) {
|
|
86
89
|
selft.getRecursosRelleno(e.data.objData);
|
|
87
90
|
return;
|
|
@@ -119,6 +122,9 @@ var SMO = /** @class */ (function () {
|
|
|
119
122
|
SMO.prototype.getRecursos = function (data) {
|
|
120
123
|
this.events.getRecursos.next(data);
|
|
121
124
|
};
|
|
125
|
+
SMO.prototype.getRecursosDefault = function (data) {
|
|
126
|
+
this.events.getRecursosDefault.next(data);
|
|
127
|
+
};
|
|
122
128
|
SMO.prototype.getRecursosRelleno = function (data) {
|
|
123
129
|
this.events.getRecursosRelleno.next(data);
|
|
124
130
|
};
|
|
@@ -139,6 +145,7 @@ var SmoEvents = /** @class */ (function () {
|
|
|
139
145
|
this.setSalidaData = new rxjs_1.Subject();
|
|
140
146
|
this.updatefromsalida = new rxjs_1.Subject();
|
|
141
147
|
this.getRecursos = new rxjs_1.Subject();
|
|
148
|
+
this.getRecursosDefault = new rxjs_1.Subject();
|
|
142
149
|
this.getRecursosRelleno = new rxjs_1.Subject();
|
|
143
150
|
this.getVariableStorage = new rxjs_1.Subject();
|
|
144
151
|
}
|
|
@@ -200,6 +207,22 @@ var smoCallBacks = /** @class */ (function () {
|
|
|
200
207
|
idSmo: this.smo.id
|
|
201
208
|
}, "*");
|
|
202
209
|
};
|
|
210
|
+
smoCallBacks.prototype.smoLogStash = function (msn) {
|
|
211
|
+
window.parent.postMessage({
|
|
212
|
+
target: "Dnv.smoCallbacks.smoLogStash",
|
|
213
|
+
objData: {
|
|
214
|
+
txt: msn
|
|
215
|
+
},
|
|
216
|
+
idSmo: this.smo.id
|
|
217
|
+
}, "*");
|
|
218
|
+
};
|
|
219
|
+
smoCallBacks.prototype.smoLogNowShowing = function (msn) {
|
|
220
|
+
window.parent.postMessage({
|
|
221
|
+
target: "Dnv.smoCallbacks.smoNowShowing",
|
|
222
|
+
objData: msn,
|
|
223
|
+
idSmo: this.smo.id
|
|
224
|
+
}, "*");
|
|
225
|
+
};
|
|
203
226
|
smoCallBacks.prototype.reiniciarDispositivo = function (msn) {
|
|
204
227
|
//Permite reiniciar el player, proporcionando una razón para el reinicio. Solo Player HTML5
|
|
205
228
|
window.parent.postMessage({
|
|
@@ -379,6 +402,12 @@ var smoCallBacks = /** @class */ (function () {
|
|
|
379
402
|
idSmo: this.smo.id
|
|
380
403
|
}, "*");
|
|
381
404
|
};
|
|
405
|
+
smoCallBacks.prototype.getRecursosDefault = function () {
|
|
406
|
+
parent.postMessage({
|
|
407
|
+
target: "Dnv.smoCallbacks.getRecursosDefault",
|
|
408
|
+
idSmo: this.smo.id
|
|
409
|
+
}, "*");
|
|
410
|
+
};
|
|
382
411
|
smoCallBacks.prototype.getRecursosRelleno = function () {
|
|
383
412
|
parent.postMessage({
|
|
384
413
|
target: "Dnv.smoCallbacks.getRecursosRelleno",
|
|
@@ -486,6 +515,7 @@ var SMO_EVENT_TYPE;
|
|
|
486
515
|
SMO_EVENT_TYPE["updatefromsalida"] = "updatefromsalida";
|
|
487
516
|
SMO_EVENT_TYPE["setDatasourceJson"] = "setDatasourceJson";
|
|
488
517
|
SMO_EVENT_TYPE["getRecursos"] = "getRecursos";
|
|
518
|
+
SMO_EVENT_TYPE["getRecursosDefault"] = "getRecursosDefault";
|
|
489
519
|
SMO_EVENT_TYPE["getRecursosRelleno"] = "getRecursosRelleno";
|
|
490
520
|
SMO_EVENT_TYPE["getVariableStorage"] = "getVariableStorage";
|
|
491
521
|
})(SMO_EVENT_TYPE = exports.SMO_EVENT_TYPE || (exports.SMO_EVENT_TYPE = {}));
|
package/package.json
CHANGED
package/src/smo.ts
CHANGED
|
@@ -97,6 +97,9 @@ export class SMO {
|
|
|
97
97
|
if(func == SMO_EVENT_TYPE.getRecursos){
|
|
98
98
|
selft.getRecursos(e.data.objData);
|
|
99
99
|
}
|
|
100
|
+
if(func == SMO_EVENT_TYPE.getRecursosDefault){
|
|
101
|
+
selft.getRecursosDefault(e.data.objData);
|
|
102
|
+
}
|
|
100
103
|
if(func == SMO_EVENT_TYPE.getRecursosRelleno){
|
|
101
104
|
selft.getRecursosRelleno(e.data.objData);
|
|
102
105
|
return;
|
|
@@ -135,6 +138,9 @@ export class SMO {
|
|
|
135
138
|
getRecursos(data:GetRecursos):void{
|
|
136
139
|
this.events.getRecursos.next(data);
|
|
137
140
|
}
|
|
141
|
+
getRecursosDefault(data:GetRecursos):void{
|
|
142
|
+
this.events.getRecursosDefault.next(data);
|
|
143
|
+
}
|
|
138
144
|
getRecursosRelleno(data:GetRecursosRelleno):void{
|
|
139
145
|
this.events.getRecursosRelleno.next(data);
|
|
140
146
|
}
|
|
@@ -154,6 +160,7 @@ class SmoEvents{
|
|
|
154
160
|
public setSalidaData: Subject<DataSalida> = new Subject<DataSalida>();
|
|
155
161
|
public updatefromsalida: Subject<any> = new Subject<any>();
|
|
156
162
|
public getRecursos: Subject<GetRecursos> = new Subject<GetRecursos>();
|
|
163
|
+
public getRecursosDefault: Subject<GetRecursos> = new Subject<GetRecursos>();
|
|
157
164
|
public getRecursosRelleno: Subject<GetRecursosRelleno> = new Subject<GetRecursosRelleno>();
|
|
158
165
|
public getVariableStorage: Subject<variable> = new Subject<variable>();
|
|
159
166
|
constructor(smo:SMO){}
|
|
@@ -217,6 +224,22 @@ class smoCallBacks{
|
|
|
217
224
|
idSmo: this.smo.id
|
|
218
225
|
}, "*");
|
|
219
226
|
}
|
|
227
|
+
public smoLogStash(msn:string):void {
|
|
228
|
+
window.parent.postMessage({
|
|
229
|
+
target: "Dnv.smoCallbacks.smoLogStash",
|
|
230
|
+
objData: {
|
|
231
|
+
txt: msn
|
|
232
|
+
},
|
|
233
|
+
idSmo: this.smo.id
|
|
234
|
+
}, "*");
|
|
235
|
+
}
|
|
236
|
+
public smoLogNowShowing(msn:any):void {
|
|
237
|
+
window.parent.postMessage({
|
|
238
|
+
target: "Dnv.smoCallbacks.smoNowShowing",
|
|
239
|
+
objData: msn,
|
|
240
|
+
idSmo: this.smo.id
|
|
241
|
+
}, "*");
|
|
242
|
+
}
|
|
220
243
|
public reiniciarDispositivo(msn:string):void {
|
|
221
244
|
//Permite reiniciar el player, proporcionando una razón para el reinicio. Solo Player HTML5
|
|
222
245
|
window.parent.postMessage({
|
|
@@ -398,6 +421,12 @@ class smoCallBacks{
|
|
|
398
421
|
idSmo: this.smo.id
|
|
399
422
|
}, "*");
|
|
400
423
|
}
|
|
424
|
+
getRecursosDefault():void{
|
|
425
|
+
parent.postMessage({
|
|
426
|
+
target: "Dnv.smoCallbacks.getRecursosDefault",
|
|
427
|
+
idSmo: this.smo.id
|
|
428
|
+
}, "*");
|
|
429
|
+
}
|
|
401
430
|
getRecursosRelleno():void{
|
|
402
431
|
parent.postMessage({
|
|
403
432
|
target: "Dnv.smoCallbacks.getRecursosRelleno",
|
|
@@ -517,6 +546,7 @@ export enum SMO_EVENT_TYPE{
|
|
|
517
546
|
updatefromsalida = "updatefromsalida",
|
|
518
547
|
setDatasourceJson = "setDatasourceJson",
|
|
519
548
|
getRecursos = "getRecursos",
|
|
549
|
+
getRecursosDefault = "getRecursosDefault",
|
|
520
550
|
getRecursosRelleno = "getRecursosRelleno",
|
|
521
551
|
getVariableStorage = "getVariableStorage"
|
|
522
552
|
}
|