@denevads/dnv-smo 1.0.6 → 1.0.8
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/.idea/modules.xml +1 -1
- package/.idea/vcs.xml +6 -0
- package/README.md +20 -0
- package/dist/interfaces/callbacks.d.ts +6 -4
- package/dist/smo.d.ts +9 -9
- package/dist/smo.js +16 -16
- package/package.json +1 -1
- package/src/interfaces/callbacks.ts +6 -4
- package/src/smo.ts +17 -17
- /package/.idea/{dnvsmo.iml → denevads_dnv-smo.iml} +0 -0
package/.idea/modules.xml
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<project version="4">
|
|
3
3
|
<component name="ProjectModuleManager">
|
|
4
4
|
<modules>
|
|
5
|
-
<module fileurl="file://$PROJECT_DIR$/.idea/
|
|
5
|
+
<module fileurl="file://$PROJECT_DIR$/.idea/denevads_dnv-smo.iml" filepath="$PROJECT_DIR$/.idea/denevads_dnv-smo.iml" />
|
|
6
6
|
</modules>
|
|
7
7
|
</component>
|
|
8
8
|
</project>
|
package/.idea/vcs.xml
ADDED
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
|
|
34
|
+
export interface GetRecursos {
|
|
35
35
|
codigo: number;
|
|
36
|
-
fechaInicio:
|
|
37
|
-
fechaFin:
|
|
36
|
+
fechaInicio: string;
|
|
37
|
+
fechaFin: string;
|
|
38
38
|
recursos: Recurso[];
|
|
39
39
|
}
|
|
40
|
-
export interface
|
|
40
|
+
export interface GetRecursosRelleno {
|
|
41
41
|
codigo: number;
|
|
42
42
|
recursos: Recurso[];
|
|
43
43
|
}
|
|
@@ -45,4 +45,6 @@ export interface Recurso {
|
|
|
45
45
|
codigo: number;
|
|
46
46
|
url: string;
|
|
47
47
|
duracion: number;
|
|
48
|
+
tipo: number;
|
|
49
|
+
disponible: boolean;
|
|
48
50
|
}
|
package/dist/smo.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { setDatasource, variable, location, DataSalida, ExecFunction, Notify, start,
|
|
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
|
-
|
|
22
|
-
|
|
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
|
-
|
|
35
|
-
|
|
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
|
-
|
|
71
|
-
|
|
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
|
-
|
|
94
|
-
|
|
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.
|
|
83
|
-
selft.
|
|
82
|
+
if (func == SMO_EVENT_TYPE.getRecursos) {
|
|
83
|
+
selft.getRecursos(e.data.objData);
|
|
84
84
|
}
|
|
85
|
-
if (func == SMO_EVENT_TYPE.
|
|
86
|
-
selft.
|
|
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.
|
|
120
|
-
this.events.
|
|
119
|
+
SMO.prototype.getRecursos = function (data) {
|
|
120
|
+
this.events.getRecursos.next(data);
|
|
121
121
|
};
|
|
122
|
-
SMO.prototype.
|
|
123
|
-
this.events.
|
|
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.
|
|
142
|
-
this.
|
|
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.
|
|
376
|
+
smoCallBacks.prototype.getRecursos = function () {
|
|
377
377
|
parent.postMessage({
|
|
378
|
-
target: "Dnv.smoCallbacks.
|
|
378
|
+
target: "Dnv.smoCallbacks.getRecursos",
|
|
379
379
|
idSmo: this.smo.id
|
|
380
380
|
}, "*");
|
|
381
381
|
};
|
|
382
|
-
smoCallBacks.prototype.
|
|
382
|
+
smoCallBacks.prototype.getRecursosRelleno = function () {
|
|
383
383
|
parent.postMessage({
|
|
384
|
-
target: "Dnv.smoCallbacks.
|
|
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["
|
|
489
|
-
SMO_EVENT_TYPE["
|
|
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
|
@@ -35,13 +35,13 @@ export interface Notify{
|
|
|
35
35
|
value:any
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
export interface
|
|
38
|
+
export interface GetRecursos {
|
|
39
39
|
codigo: number;
|
|
40
|
-
fechaInicio:
|
|
41
|
-
fechaFin:
|
|
40
|
+
fechaInicio: string;
|
|
41
|
+
fechaFin: string;
|
|
42
42
|
recursos: Recurso[];
|
|
43
43
|
}
|
|
44
|
-
export interface
|
|
44
|
+
export interface GetRecursosRelleno {
|
|
45
45
|
codigo: number;
|
|
46
46
|
recursos: Recurso[];
|
|
47
47
|
}
|
|
@@ -50,5 +50,7 @@ export interface Recurso {
|
|
|
50
50
|
codigo: number;
|
|
51
51
|
url: string;
|
|
52
52
|
duracion: number;
|
|
53
|
+
tipo: number;
|
|
54
|
+
disponible: boolean;
|
|
53
55
|
}
|
|
54
56
|
|
package/src/smo.ts
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
ExecFunction,
|
|
7
7
|
Notify,
|
|
8
8
|
start,
|
|
9
|
-
|
|
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.
|
|
98
|
-
selft.
|
|
97
|
+
if(func == SMO_EVENT_TYPE.getRecursos){
|
|
98
|
+
selft.getRecursos(e.data.objData);
|
|
99
99
|
}
|
|
100
|
-
if(func == SMO_EVENT_TYPE.
|
|
101
|
-
selft.
|
|
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
|
-
|
|
136
|
-
this.events.
|
|
135
|
+
getRecursos(data:GetRecursos):void{
|
|
136
|
+
this.events.getRecursos.next(data);
|
|
137
137
|
}
|
|
138
|
-
|
|
139
|
-
this.events.
|
|
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
|
|
157
|
-
public
|
|
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
|
-
|
|
395
|
+
getRecursos():void{
|
|
396
396
|
parent.postMessage({
|
|
397
|
-
target: "Dnv.smoCallbacks.
|
|
397
|
+
target: "Dnv.smoCallbacks.getRecursos",
|
|
398
398
|
idSmo: this.smo.id
|
|
399
399
|
}, "*");
|
|
400
400
|
}
|
|
401
|
-
|
|
401
|
+
getRecursosRelleno():void{
|
|
402
402
|
parent.postMessage({
|
|
403
|
-
target: "Dnv.smoCallbacks.
|
|
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
|
-
|
|
520
|
-
|
|
519
|
+
getRecursos = "getRecursos",
|
|
520
|
+
getRecursosRelleno = "getRecursosRelleno",
|
|
521
521
|
getVariableStorage = "getVariableStorage"
|
|
522
522
|
}
|
|
523
523
|
export enum LogLevel {
|
|
File without changes
|