@denevads/dnv-smo 1.0.6 → 1.0.7

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/README.md ADDED
@@ -0,0 +1,20 @@
1
+ #Introducción
2
+ TODO: Proporcione una breve introducción del proyecto. En esta sección se deben explicar los objetivos o los motivos del proyecto.
3
+
4
+ # Tareas iniciales
5
+ TODO: Guíe a los usuarios para que apliquen el código a su sistema propio sin ningún problema. En esta sección se puede hablar sobre:
6
+ 1. El proceso de instalación
7
+ 2. Las dependencias de software
8
+ 3. Las últimas versiones
9
+ 4. Las referencias de API
10
+
11
+ # Compilación y prueba
12
+ TODO: Describa y muestre cómo compilar el código y ejecutar las pruebas.
13
+
14
+ # Contribución
15
+ TODO: Explique cómo pueden contribuir otros usuarios y desarrolladores a la mejora del código.
16
+
17
+ Si quiere obtener más información sobre cómo crear archivos Léame descriptivos, consulte las siguientes [directrices](https://docs.microsoft.com/en-us/azure/devops/repos/git/create-a-readme?view=azure-devops). También puede inspirarse en los archivos Léame siguientes:
18
+ - [ASP.NET Core](https://github.com/aspnet/Home)
19
+ - [Visual Studio Code](https://github.com/Microsoft/vscode)
20
+ - [Chakra Core](https://github.com/Microsoft/ChakraCore)
@@ -31,13 +31,13 @@ export interface Notify {
31
31
  destion: string;
32
32
  value: any;
33
33
  }
34
- export interface VideoClips {
34
+ export interface GetRecursos {
35
35
  codigo: number;
36
36
  fechaInicio: Date;
37
37
  fechaFin: Date;
38
38
  recursos: Recurso[];
39
39
  }
40
- export interface VideoClipsRelleno {
40
+ export interface GetRecursosRelleno {
41
41
  codigo: number;
42
42
  recursos: Recurso[];
43
43
  }
@@ -45,4 +45,5 @@ export interface Recurso {
45
45
  codigo: number;
46
46
  url: string;
47
47
  duracion: number;
48
+ tipo: number;
48
49
  }
package/dist/smo.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { setDatasource, variable, location, DataSalida, ExecFunction, Notify, start, VideoClips, VideoClipsRelleno } from "./interfaces/callbacks";
1
+ import { setDatasource, variable, location, DataSalida, ExecFunction, Notify, start, GetRecursos, GetRecursosRelleno } from "./interfaces/callbacks";
2
2
  import { Subject } from 'rxjs';
3
3
  export declare class SMO {
4
4
  vars: any;
@@ -18,8 +18,8 @@ export declare class SMO {
18
18
  infoCurrentLocation(location: location): void;
19
19
  setSalidaData(data: DataSalida): void;
20
20
  updatefromsalida(data: any): void;
21
- getVideoClips(data: VideoClips): void;
22
- getVideosRelleno(data: VideoClipsRelleno): void;
21
+ getRecursos(data: GetRecursos): void;
22
+ getRecursosRelleno(data: GetRecursosRelleno): void;
23
23
  getVariableStorage(variable: variable): void;
24
24
  }
25
25
  declare class SmoEvents {
@@ -31,8 +31,8 @@ declare class SmoEvents {
31
31
  infoCurrentLocation: Subject<location>;
32
32
  setSalidaData: Subject<DataSalida>;
33
33
  updatefromsalida: Subject<any>;
34
- getVideoClips: Subject<VideoClips>;
35
- getVideosRelleno: Subject<VideoClipsRelleno>;
34
+ getRecursos: Subject<GetRecursos>;
35
+ getRecursosRelleno: Subject<GetRecursosRelleno>;
36
36
  getVariableStorage: Subject<variable>;
37
37
  constructor(smo: SMO);
38
38
  }
@@ -67,8 +67,8 @@ declare class smoCallBacks {
67
67
  playOnceChannel(codigoCanal: string): void;
68
68
  stopPlayChannel(): void;
69
69
  editWrapperStyle(obj: any): void;
70
- getVideoClips(): void;
71
- getVideosRelleno(): void;
70
+ getRecursos(): void;
71
+ getRecursosRelleno(): void;
72
72
  setVariableStorage(variable: string, valor: string): void;
73
73
  getVariableStorage(variable: string): void;
74
74
  }
@@ -90,8 +90,8 @@ export declare enum SMO_EVENT_TYPE {
90
90
  setSalidaData = "setSalidaData",
91
91
  updatefromsalida = "updatefromsalida",
92
92
  setDatasourceJson = "setDatasourceJson",
93
- getVideoClips = "getVideoClips",
94
- getVideosRelleno = "getVideosRelleno",
93
+ getRecursos = "getRecursos",
94
+ getRecursosRelleno = "getRecursosRelleno",
95
95
  getVariableStorage = "getVariableStorage"
96
96
  }
97
97
  export declare enum LogLevel {
package/dist/smo.js CHANGED
@@ -79,11 +79,11 @@ var SMO = /** @class */ (function () {
79
79
  selft.updatefromsalida(e.data.objdata);
80
80
  return;
81
81
  }
82
- if (func == SMO_EVENT_TYPE.getVideoClips) {
83
- selft.getVideoClips(e.data.objData);
82
+ if (func == SMO_EVENT_TYPE.getRecursos) {
83
+ selft.getRecursos(e.data.objData);
84
84
  }
85
- if (func == SMO_EVENT_TYPE.getVideosRelleno) {
86
- selft.getVideosRelleno(e.data.objData);
85
+ if (func == SMO_EVENT_TYPE.getRecursosRelleno) {
86
+ selft.getRecursosRelleno(e.data.objData);
87
87
  return;
88
88
  }
89
89
  if (func == SMO_EVENT_TYPE.getVariableStorage) {
@@ -116,11 +116,11 @@ var SMO = /** @class */ (function () {
116
116
  SMO.prototype.updatefromsalida = function (data) {
117
117
  this.events.updatefromsalida.next(data);
118
118
  };
119
- SMO.prototype.getVideoClips = function (data) {
120
- this.events.getVideoClips.next(data);
119
+ SMO.prototype.getRecursos = function (data) {
120
+ this.events.getRecursos.next(data);
121
121
  };
122
- SMO.prototype.getVideosRelleno = function (data) {
123
- this.events.getVideosRelleno.next(data);
122
+ SMO.prototype.getRecursosRelleno = function (data) {
123
+ this.events.getRecursosRelleno.next(data);
124
124
  };
125
125
  SMO.prototype.getVariableStorage = function (variable) {
126
126
  this.events.getVariableStorage.next(variable);
@@ -138,8 +138,8 @@ var SmoEvents = /** @class */ (function () {
138
138
  this.infoCurrentLocation = new rxjs_1.Subject();
139
139
  this.setSalidaData = new rxjs_1.Subject();
140
140
  this.updatefromsalida = new rxjs_1.Subject();
141
- this.getVideoClips = new rxjs_1.Subject();
142
- this.getVideosRelleno = new rxjs_1.Subject();
141
+ this.getRecursos = new rxjs_1.Subject();
142
+ this.getRecursosRelleno = new rxjs_1.Subject();
143
143
  this.getVariableStorage = new rxjs_1.Subject();
144
144
  }
145
145
  return SmoEvents;
@@ -373,15 +373,15 @@ var smoCallBacks = /** @class */ (function () {
373
373
  idSmo: this.smo.id
374
374
  }, "*");
375
375
  };
376
- smoCallBacks.prototype.getVideoClips = function () {
376
+ smoCallBacks.prototype.getRecursos = function () {
377
377
  parent.postMessage({
378
- target: "Dnv.smoCallbacks.getVideoClips",
378
+ target: "Dnv.smoCallbacks.getRecursos",
379
379
  idSmo: this.smo.id
380
380
  }, "*");
381
381
  };
382
- smoCallBacks.prototype.getVideosRelleno = function () {
382
+ smoCallBacks.prototype.getRecursosRelleno = function () {
383
383
  parent.postMessage({
384
- target: "Dnv.smoCallbacks.getVideosRelleno",
384
+ target: "Dnv.smoCallbacks.getRecursosRelleno",
385
385
  idSmo: this.smo.id
386
386
  }, "*");
387
387
  };
@@ -485,8 +485,8 @@ var SMO_EVENT_TYPE;
485
485
  SMO_EVENT_TYPE["setSalidaData"] = "setSalidaData";
486
486
  SMO_EVENT_TYPE["updatefromsalida"] = "updatefromsalida";
487
487
  SMO_EVENT_TYPE["setDatasourceJson"] = "setDatasourceJson";
488
- SMO_EVENT_TYPE["getVideoClips"] = "getVideoClips";
489
- SMO_EVENT_TYPE["getVideosRelleno"] = "getVideosRelleno";
488
+ SMO_EVENT_TYPE["getRecursos"] = "getRecursos";
489
+ SMO_EVENT_TYPE["getRecursosRelleno"] = "getRecursosRelleno";
490
490
  SMO_EVENT_TYPE["getVariableStorage"] = "getVariableStorage";
491
491
  })(SMO_EVENT_TYPE = exports.SMO_EVENT_TYPE || (exports.SMO_EVENT_TYPE = {}));
492
492
  var LogLevel;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@denevads/dnv-smo",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "SMO module",
5
5
  "main": "./src/index.js",
6
6
  "types": "./src/index.d.ts",
@@ -35,13 +35,13 @@ export interface Notify{
35
35
  value:any
36
36
  }
37
37
 
38
- export interface VideoClips {
38
+ export interface GetRecursos {
39
39
  codigo: number;
40
40
  fechaInicio: Date;
41
41
  fechaFin: Date;
42
42
  recursos: Recurso[];
43
43
  }
44
- export interface VideoClipsRelleno {
44
+ export interface GetRecursosRelleno {
45
45
  codigo: number;
46
46
  recursos: Recurso[];
47
47
  }
@@ -50,5 +50,6 @@ export interface Recurso {
50
50
  codigo: number;
51
51
  url: string;
52
52
  duracion: number;
53
+ tipo: number;
53
54
  }
54
55
 
package/src/smo.ts CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  ExecFunction,
7
7
  Notify,
8
8
  start,
9
- VideoClips, VideoClipsRelleno
9
+ GetRecursos, GetRecursosRelleno
10
10
  } from "./interfaces/callbacks";
11
11
  import {interval, Subject, Subscription} from 'rxjs';
12
12
  export class SMO {
@@ -94,11 +94,11 @@ export class SMO {
94
94
  selft.updatefromsalida(e.data.objdata);
95
95
  return;
96
96
  }
97
- if(func == SMO_EVENT_TYPE.getVideoClips){
98
- selft.getVideoClips(e.data.objData);
97
+ if(func == SMO_EVENT_TYPE.getRecursos){
98
+ selft.getRecursos(e.data.objData);
99
99
  }
100
- if(func == SMO_EVENT_TYPE.getVideosRelleno){
101
- selft.getVideosRelleno(e.data.objData);
100
+ if(func == SMO_EVENT_TYPE.getRecursosRelleno){
101
+ selft.getRecursosRelleno(e.data.objData);
102
102
  return;
103
103
  }
104
104
  if(func == SMO_EVENT_TYPE.getVariableStorage){
@@ -132,11 +132,11 @@ export class SMO {
132
132
  updatefromsalida(data:any):void{
133
133
  this.events.updatefromsalida.next(data);
134
134
  }
135
- getVideoClips(data:VideoClips):void{
136
- this.events.getVideoClips.next(data);
135
+ getRecursos(data:GetRecursos):void{
136
+ this.events.getRecursos.next(data);
137
137
  }
138
- getVideosRelleno(data:VideoClipsRelleno):void{
139
- this.events.getVideosRelleno.next(data);
138
+ getRecursosRelleno(data:GetRecursosRelleno):void{
139
+ this.events.getRecursosRelleno.next(data);
140
140
  }
141
141
  getVariableStorage(variable:variable):void{
142
142
  this.events.getVariableStorage.next(variable);
@@ -153,8 +153,8 @@ class SmoEvents{
153
153
  public infoCurrentLocation: Subject<location> = new Subject<location>();
154
154
  public setSalidaData: Subject<DataSalida> = new Subject<DataSalida>();
155
155
  public updatefromsalida: Subject<any> = new Subject<any>();
156
- public getVideoClips: Subject<VideoClips> = new Subject<VideoClips>();
157
- public getVideosRelleno: Subject<VideoClipsRelleno> = new Subject<VideoClipsRelleno>();
156
+ public getRecursos: Subject<GetRecursos> = new Subject<GetRecursos>();
157
+ public getRecursosRelleno: Subject<GetRecursosRelleno> = new Subject<GetRecursosRelleno>();
158
158
  public getVariableStorage: Subject<variable> = new Subject<variable>();
159
159
  constructor(smo:SMO){}
160
160
  }
@@ -392,15 +392,15 @@ class smoCallBacks{
392
392
  idSmo: this.smo.id
393
393
  }, "*");
394
394
  }
395
- getVideoClips():void{
395
+ getRecursos():void{
396
396
  parent.postMessage({
397
- target: "Dnv.smoCallbacks.getVideoClips",
397
+ target: "Dnv.smoCallbacks.getRecursos",
398
398
  idSmo: this.smo.id
399
399
  }, "*");
400
400
  }
401
- getVideosRelleno():void{
401
+ getRecursosRelleno():void{
402
402
  parent.postMessage({
403
- target: "Dnv.smoCallbacks.getVideosRelleno",
403
+ target: "Dnv.smoCallbacks.getRecursosRelleno",
404
404
  idSmo: this.smo.id
405
405
  }, "*");
406
406
  }
@@ -516,8 +516,8 @@ export enum SMO_EVENT_TYPE{
516
516
  setSalidaData ="setSalidaData",
517
517
  updatefromsalida = "updatefromsalida",
518
518
  setDatasourceJson = "setDatasourceJson",
519
- getVideoClips = "getVideoClips",
520
- getVideosRelleno = "getVideosRelleno",
519
+ getRecursos = "getRecursos",
520
+ getRecursosRelleno = "getRecursosRelleno",
521
521
  getVariableStorage = "getVariableStorage"
522
522
  }
523
523
  export enum LogLevel {
package/.idea/dnvsmo.iml DELETED
@@ -1,12 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <module type="WEB_MODULE" version="4">
3
- <component name="NewModuleRootManager">
4
- <content url="file://$MODULE_DIR$">
5
- <excludeFolder url="file://$MODULE_DIR$/temp" />
6
- <excludeFolder url="file://$MODULE_DIR$/.tmp" />
7
- <excludeFolder url="file://$MODULE_DIR$/tmp" />
8
- </content>
9
- <orderEntry type="inheritedJdk" />
10
- <orderEntry type="sourceFolder" forTests="false" />
11
- </component>
12
- </module>
package/.idea/modules.xml DELETED
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectModuleManager">
4
- <modules>
5
- <module fileurl="file://$PROJECT_DIR$/.idea/dnvsmo.iml" filepath="$PROJECT_DIR$/.idea/dnvsmo.iml" />
6
- </modules>
7
- </component>
8
- </project>