@denevads/dnv-smo 1.0.34 → 1.0.36

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@denevads/dnv-smo",
3
- "version": "1.0.34",
3
+ "version": "1.0.36",
4
4
  "description": "SMO module",
5
5
  "main": "./src/index.js",
6
6
  "types": "./src/index.d.ts",
@@ -42,6 +42,7 @@ export interface GetRecursos {
42
42
  codigo: number;
43
43
  fechaInicio: string;
44
44
  fechaFin: string;
45
+ ocultarVideos?: boolean;
45
46
  recursos?: [];
46
47
  canales?: Canal[];
47
48
  }
package/src/smo.ts CHANGED
@@ -126,7 +126,9 @@ export class SMO {
126
126
  // @ts-ignore
127
127
  CheckHealthPrinter: window.objJS.checkHealthPrinter,
128
128
  // @ts-ignore
129
- CheckHealth: window.objJS.checkHealth
129
+ CheckHealth: window.objJS.checkHealth,
130
+ // @ts-ignore
131
+ getValorCalendario: window.objJS.getValorCalendario
130
132
  };
131
133
  }else{
132
134
  console.log("No existe objJS en window");
@@ -201,6 +203,10 @@ export class SMO {
201
203
  selft.getRecursosByCodigo(e.data.objData);
202
204
  return;
203
205
  }
206
+ if(func == SMO_EVENT_TYPE.getRecursosByMetadato){
207
+ selft.getRecursosByMetadato(e.data.objData);
208
+ return;
209
+ }
204
210
  if(func == SMO_EVENT_TYPE.getRecursos){
205
211
  selft.getRecursos(e.data.objData);
206
212
  }
@@ -223,6 +229,10 @@ export class SMO {
223
229
  selft.checkHealthPrinter(e.data.objData);
224
230
  return;
225
231
  }
232
+ if(func == SMO_EVENT_TYPE.getValorCalendario){
233
+ selft.getValorCalendario(e.data.objData);
234
+ return;
235
+ }
226
236
  console.warn("message not implemented!!" +func);
227
237
  }
228
238
  }
@@ -253,6 +263,9 @@ export class SMO {
253
263
  getRecursosByCodigo(data:GetRecursosByCodigo):void{
254
264
  this.events.getRecursosByCodigo.next(data);
255
265
  }
266
+ getRecursosByMetadato(data:GetRecursosByCodigo):void{
267
+ this.events.getRecursosByMetadato.next(data);
268
+ }
256
269
  getRecursos(data:GetRecursos):void{
257
270
  this.events.getRecursos.next(data);
258
271
  }
@@ -271,6 +284,9 @@ export class SMO {
271
284
  checkHealthPrinter(json:string):void{
272
285
  this.events.checkHealthPrinter.next(json);
273
286
  }
287
+ getValorCalendario(estado:boolean):void{
288
+ this.events.getValorCalendario.next(estado);
289
+ }
274
290
  }
275
291
 
276
292
  class SmoEvents{
@@ -283,12 +299,14 @@ class SmoEvents{
283
299
  public setSalidaData: Subject<DataSalida> = new Subject<DataSalida>();
284
300
  public updatefromsalida: Subject<any> = new Subject<any>();
285
301
  public getRecursosByCodigo: Subject<GetRecursosByCodigo> = new Subject<GetRecursosByCodigo>();
302
+ public getRecursosByMetadato: Subject<GetRecursosByCodigo> = new Subject<GetRecursosByCodigo>();
286
303
  public getRecursos: Subject<GetRecursos> = new Subject<GetRecursos>();
287
304
  public getRecursosDefault: Subject<GetRecursos> = new Subject<GetRecursos>();
288
305
  public getRecursosRelleno: Subject<GetRecursosRelleno> = new Subject<GetRecursosRelleno>();
289
306
  public getVariableStorage: Subject<variable> = new Subject<variable>();
290
307
  public checkHealth: Subject<string> = new Subject<string>();
291
308
  public checkHealthPrinter: Subject<string> = new Subject<string>();
309
+ public getValorCalendario: Subject<boolean> = new Subject<boolean>();
292
310
  constructor(smo:SMO){}
293
311
  }
294
312
  class smoCallBacks{
@@ -550,6 +568,16 @@ class smoCallBacks{
550
568
  idSmo: this.smo.id
551
569
  }, this.smo.vars.idSmo);
552
570
  }
571
+ getRecursosByMetadato(metadato: string, valor:string):void{
572
+ this.smo.utils.sendToParent({
573
+ target: "Dnv.smoCallbacks.getRecursosByMetadato",
574
+ objData: {
575
+ metadato : metadato,
576
+ valor: valor
577
+ },
578
+ idSmo: this.smo.id
579
+ }, this.smo.vars.idSmo);
580
+ }
553
581
  getRecursos():void{
554
582
  this.smo.utils.sendToParent({
555
583
  target: "Dnv.smoCallbacks.getRecursos",
@@ -638,6 +666,16 @@ class smoCallBacks{
638
666
  idSmo: this.smo.id
639
667
  }, this.smo.vars.idSmo);
640
668
  }
669
+ getValorCalendario(codigo:number, tipoObjeto?:number){
670
+ this.smo.utils.sendToParent({
671
+ target: "Dnv.smoCallbacks.getValorCalendario",
672
+ objData: {
673
+ codigo: codigo,
674
+ tipoObjeto: tipoObjeto
675
+ },
676
+ idSmo: this.smo.id
677
+ }, this.smo.vars.idSmo);
678
+ }
641
679
 
642
680
  }
643
681
  class Utils{
@@ -821,12 +859,14 @@ export enum SMO_EVENT_TYPE{
821
859
  updatefromsalida = "updatefromsalida",
822
860
  setDatasourceJson = "setDatasourceJson",
823
861
  getRecursosByCodigo = "getRecursosByCodigo",
862
+ getRecursosByMetadato = "getRecursosByMetadato",
824
863
  getRecursos = "getRecursos",
825
864
  getRecursosDefault = "getRecursosDefault",
826
865
  getRecursosRelleno = "getRecursosRelleno",
827
866
  getVariableStorage = "getVariableStorage",
828
867
  checkHealth = "checkHealth",
829
- checkHealthPrinter = "checkHealthPrinter"
868
+ checkHealthPrinter = "checkHealthPrinter",
869
+ getValorCalendario = "getValorCalendario"
830
870
  }
831
871
  export enum LogLevel {
832
872
  Debug= 0,
@@ -875,5 +915,6 @@ export interface ObjJSType {
875
915
  printImage: () => void;
876
916
  checkHealthPrinter: () => void;
877
917
  checkHealth: () => void;
918
+ getValorCalendario: () => void;
878
919
  }
879
920
 
@@ -1,6 +0,0 @@
1
- <component name="InspectionProjectProfileManager">
2
- <profile version="1.0">
3
- <option name="myName" value="Project Default" />
4
- <inspection_tool class="JSConstantReassignment" enabled="false" level="ERROR" enabled_by_default="false" />
5
- </profile>
6
- </component>