@denevads/dnv-smo 1.0.15 → 1.0.16
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/index.d.ts +1 -1
- package/dist/index.js +17 -17
- package/dist/interfaces/callbacks.d.ts +62 -56
- package/dist/interfaces/callbacks.js +2 -2
- package/dist/smo.d.ts +129 -129
- package/dist/smo.js +605 -605
- package/package.json +1 -1
- package/src/interfaces/callbacks.ts +9 -3
- package/.idea/denevads_dnv-smo.iml +0 -12
- package/.idea/modules.xml +0 -8
- package/.idea/vcs.xml +0 -6
package/dist/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./";
|
|
1
|
+
export * from "./";
|
package/dist/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./"), exports);
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./"), exports);
|
|
@@ -1,56 +1,62 @@
|
|
|
1
|
-
export interface setDatasource {
|
|
2
|
-
xml: string;
|
|
3
|
-
}
|
|
4
|
-
export interface start {
|
|
5
|
-
}
|
|
6
|
-
export interface variable {
|
|
7
|
-
variable: string;
|
|
8
|
-
valor: string;
|
|
9
|
-
}
|
|
10
|
-
export interface location {
|
|
11
|
-
top: string;
|
|
12
|
-
left: string;
|
|
13
|
-
width: string;
|
|
14
|
-
height: string;
|
|
15
|
-
}
|
|
16
|
-
export interface Slide {
|
|
17
|
-
codigo: string;
|
|
18
|
-
idioma: string;
|
|
19
|
-
denominacion: string;
|
|
20
|
-
hash: string;
|
|
21
|
-
}
|
|
22
|
-
export interface DataSalida {
|
|
23
|
-
dataKey: string;
|
|
24
|
-
data: Slide[];
|
|
25
|
-
}
|
|
26
|
-
export interface ExecFunction {
|
|
27
|
-
funcion: string;
|
|
28
|
-
params: string;
|
|
29
|
-
}
|
|
30
|
-
export interface Notify {
|
|
31
|
-
destion: string;
|
|
32
|
-
value: any;
|
|
33
|
-
}
|
|
34
|
-
export interface GetRecursos {
|
|
35
|
-
codigo: number;
|
|
36
|
-
fechaInicio: string;
|
|
37
|
-
fechaFin: string;
|
|
38
|
-
recursos
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
1
|
+
export interface setDatasource {
|
|
2
|
+
xml: string;
|
|
3
|
+
}
|
|
4
|
+
export interface start {
|
|
5
|
+
}
|
|
6
|
+
export interface variable {
|
|
7
|
+
variable: string;
|
|
8
|
+
valor: string;
|
|
9
|
+
}
|
|
10
|
+
export interface location {
|
|
11
|
+
top: string;
|
|
12
|
+
left: string;
|
|
13
|
+
width: string;
|
|
14
|
+
height: string;
|
|
15
|
+
}
|
|
16
|
+
export interface Slide {
|
|
17
|
+
codigo: string;
|
|
18
|
+
idioma: string;
|
|
19
|
+
denominacion: string;
|
|
20
|
+
hash: string;
|
|
21
|
+
}
|
|
22
|
+
export interface DataSalida {
|
|
23
|
+
dataKey: string;
|
|
24
|
+
data: Slide[];
|
|
25
|
+
}
|
|
26
|
+
export interface ExecFunction {
|
|
27
|
+
funcion: string;
|
|
28
|
+
params: string;
|
|
29
|
+
}
|
|
30
|
+
export interface Notify {
|
|
31
|
+
destion: string;
|
|
32
|
+
value: any;
|
|
33
|
+
}
|
|
34
|
+
export interface GetRecursos {
|
|
35
|
+
codigo: number;
|
|
36
|
+
fechaInicio: string;
|
|
37
|
+
fechaFin: string;
|
|
38
|
+
recursos?: [];
|
|
39
|
+
canales?: Canal[];
|
|
40
|
+
}
|
|
41
|
+
export interface Canal {
|
|
42
|
+
codigo: number;
|
|
43
|
+
pases: number;
|
|
44
|
+
recursos: Recurso[];
|
|
45
|
+
}
|
|
46
|
+
export interface GetRecursosRelleno {
|
|
47
|
+
codigo: number;
|
|
48
|
+
recursos: Recurso[];
|
|
49
|
+
}
|
|
50
|
+
export interface Recurso {
|
|
51
|
+
codigo: number;
|
|
52
|
+
url: string;
|
|
53
|
+
duracion: number;
|
|
54
|
+
tipo: number;
|
|
55
|
+
disponible: boolean;
|
|
56
|
+
vigencia_inicio: string;
|
|
57
|
+
vigencia_fin: string;
|
|
58
|
+
hora_inicio: string;
|
|
59
|
+
hora_fin: string;
|
|
60
|
+
dias: string;
|
|
61
|
+
nombre: string;
|
|
62
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/dist/smo.d.ts
CHANGED
|
@@ -1,129 +1,129 @@
|
|
|
1
|
-
import { setDatasource, variable, location, DataSalida, ExecFunction, Notify, start, GetRecursos, GetRecursosRelleno } from "./interfaces/callbacks";
|
|
2
|
-
import { Subject } from 'rxjs';
|
|
3
|
-
export declare class SMO {
|
|
4
|
-
vars: any;
|
|
5
|
-
id: string;
|
|
6
|
-
private intervalsubscriptionDataSource;
|
|
7
|
-
intervalDataSource$: import("rxjs").Observable<number>;
|
|
8
|
-
smoCallBacks: smoCallBacks;
|
|
9
|
-
utils: Utils;
|
|
10
|
-
events: SmoEvents;
|
|
11
|
-
constructor();
|
|
12
|
-
init(): void;
|
|
13
|
-
initOnMessage(): void;
|
|
14
|
-
start(): void;
|
|
15
|
-
setDatasource(datasource: setDatasource): void;
|
|
16
|
-
getVariable(variable: variable): void;
|
|
17
|
-
setCurrentStream(stream: string): void;
|
|
18
|
-
infoCurrentLocation(location: location): void;
|
|
19
|
-
setSalidaData(data: DataSalida): void;
|
|
20
|
-
updatefromsalida(data: any): void;
|
|
21
|
-
getRecursos(data: GetRecursos): void;
|
|
22
|
-
getRecursosDefault(data: GetRecursos): void;
|
|
23
|
-
getRecursosRelleno(data: GetRecursosRelleno): void;
|
|
24
|
-
getVariableStorage(variable: variable): void;
|
|
25
|
-
checkHealth(json: string): void;
|
|
26
|
-
checkHealthPrinter(json: string): void;
|
|
27
|
-
}
|
|
28
|
-
declare class SmoEvents {
|
|
29
|
-
start: Subject<start>;
|
|
30
|
-
setDatasource: Subject<setDatasource>;
|
|
31
|
-
setDatasourceJson: Subject<any>;
|
|
32
|
-
getVariable: Subject<variable>;
|
|
33
|
-
setCurrentStream: Subject<string>;
|
|
34
|
-
infoCurrentLocation: Subject<location>;
|
|
35
|
-
setSalidaData: Subject<DataSalida>;
|
|
36
|
-
updatefromsalida: Subject<any>;
|
|
37
|
-
getRecursos: Subject<GetRecursos>;
|
|
38
|
-
getRecursosDefault: Subject<GetRecursos>;
|
|
39
|
-
getRecursosRelleno: Subject<GetRecursosRelleno>;
|
|
40
|
-
getVariableStorage: Subject<variable>;
|
|
41
|
-
checkHealth: Subject<string>;
|
|
42
|
-
checkHealthPrinter: Subject<String>;
|
|
43
|
-
constructor(smo: SMO);
|
|
44
|
-
}
|
|
45
|
-
declare class smoCallBacks {
|
|
46
|
-
smo: SMO;
|
|
47
|
-
constructor(_smo: SMO);
|
|
48
|
-
onSmoLoad(): void;
|
|
49
|
-
onSmoReady(): void;
|
|
50
|
-
smoLog(msn: string, level: LogLevel): void;
|
|
51
|
-
smoAlarma(msn: string, level: AlarmaLevel): void;
|
|
52
|
-
smoLogStash(msn: string): void;
|
|
53
|
-
smoLogNowShowing(msn: any): void;
|
|
54
|
-
reiniciarDispositivo(msn: string): void;
|
|
55
|
-
urlNext(): void;
|
|
56
|
-
exitInteractivity(): void;
|
|
57
|
-
showBrowser(): void;
|
|
58
|
-
closeBrowser(): void;
|
|
59
|
-
urlNextDirectamente(): void;
|
|
60
|
-
setVariable(variable: string, valor: string): void;
|
|
61
|
-
getVariable(variable: string): void;
|
|
62
|
-
getFile(file: string): void;
|
|
63
|
-
setLocalData(variable: string, valor: string): void;
|
|
64
|
-
getLocalData(variable: string): void;
|
|
65
|
-
getCurrentStream(): void;
|
|
66
|
-
finAviso(id: string): void;
|
|
67
|
-
refreshDatasource(codigo: string): void;
|
|
68
|
-
getLocation(): void;
|
|
69
|
-
getSalidaData(data: string): void;
|
|
70
|
-
ejecutaFuncion(data: ExecFunction): void;
|
|
71
|
-
addObserver(data: string): void;
|
|
72
|
-
notify(data: Notify): void;
|
|
73
|
-
playOnceChannelByTrigger(trigger: string): void;
|
|
74
|
-
stopPlayOnceChannelByTrigger(): void;
|
|
75
|
-
playOnceChannel(codigoCanal: string): void;
|
|
76
|
-
stopPlayChannel(): void;
|
|
77
|
-
editWrapperStyle(obj: any): void;
|
|
78
|
-
getRecursos(): void;
|
|
79
|
-
getRecursosDefault(): void;
|
|
80
|
-
getRecursosRelleno(): void;
|
|
81
|
-
setVariableStorage(variable: string, valor: string): void;
|
|
82
|
-
getVariableStorage(variable: string): void;
|
|
83
|
-
printTextLine(txt: string): void;
|
|
84
|
-
printBarcode(code: string, width: number, height: number): void;
|
|
85
|
-
cutPaper(percent: number): void;
|
|
86
|
-
checkHealth(): void;
|
|
87
|
-
checkHealthPrinter(): void;
|
|
88
|
-
printImage(image: string): void;
|
|
89
|
-
}
|
|
90
|
-
declare class Utils {
|
|
91
|
-
smo: SMO;
|
|
92
|
-
smoCallBacks: smoCallBacks;
|
|
93
|
-
constructor(_smo: SMO, _smoCallBacks: smoCallBacks);
|
|
94
|
-
xmlToJSON(xml: string): string;
|
|
95
|
-
jsonToStr(js_obj: any): string;
|
|
96
|
-
setJsonObj(xml: any): any;
|
|
97
|
-
dataToJSON(data: setDatasource): any;
|
|
98
|
-
}
|
|
99
|
-
export declare enum SMO_EVENT_TYPE {
|
|
100
|
-
start = "start",
|
|
101
|
-
setDatasource = "setDatasource",
|
|
102
|
-
getVariable = "getVariable",
|
|
103
|
-
setCurrentStream = "setCurrentStream",
|
|
104
|
-
infoCurrentLocation = "infoCurrentLocation",
|
|
105
|
-
setSalidaData = "setSalidaData",
|
|
106
|
-
updatefromsalida = "updatefromsalida",
|
|
107
|
-
setDatasourceJson = "setDatasourceJson",
|
|
108
|
-
getRecursos = "getRecursos",
|
|
109
|
-
getRecursosDefault = "getRecursosDefault",
|
|
110
|
-
getRecursosRelleno = "getRecursosRelleno",
|
|
111
|
-
getVariableStorage = "getVariableStorage",
|
|
112
|
-
checkHealth = "checkHealth",
|
|
113
|
-
checkHealthPrinter = "checkHealthPrinter"
|
|
114
|
-
}
|
|
115
|
-
export declare enum LogLevel {
|
|
116
|
-
Debug = 0,
|
|
117
|
-
Info = 1,
|
|
118
|
-
Warning = 2,
|
|
119
|
-
Error = 3
|
|
120
|
-
}
|
|
121
|
-
export declare enum AlarmaLevel {
|
|
122
|
-
Ok_off = 0,
|
|
123
|
-
Ok = 1,
|
|
124
|
-
Scanning = 2,
|
|
125
|
-
Timeout = 3,
|
|
126
|
-
Warning = 4,
|
|
127
|
-
Error = 5
|
|
128
|
-
}
|
|
129
|
-
export {};
|
|
1
|
+
import { setDatasource, variable, location, DataSalida, ExecFunction, Notify, start, GetRecursos, GetRecursosRelleno } from "./interfaces/callbacks";
|
|
2
|
+
import { Subject } from 'rxjs';
|
|
3
|
+
export declare class SMO {
|
|
4
|
+
vars: any;
|
|
5
|
+
id: string;
|
|
6
|
+
private intervalsubscriptionDataSource;
|
|
7
|
+
intervalDataSource$: import("rxjs").Observable<number>;
|
|
8
|
+
smoCallBacks: smoCallBacks;
|
|
9
|
+
utils: Utils;
|
|
10
|
+
events: SmoEvents;
|
|
11
|
+
constructor();
|
|
12
|
+
init(): void;
|
|
13
|
+
initOnMessage(): void;
|
|
14
|
+
start(): void;
|
|
15
|
+
setDatasource(datasource: setDatasource): void;
|
|
16
|
+
getVariable(variable: variable): void;
|
|
17
|
+
setCurrentStream(stream: string): void;
|
|
18
|
+
infoCurrentLocation(location: location): void;
|
|
19
|
+
setSalidaData(data: DataSalida): void;
|
|
20
|
+
updatefromsalida(data: any): void;
|
|
21
|
+
getRecursos(data: GetRecursos): void;
|
|
22
|
+
getRecursosDefault(data: GetRecursos): void;
|
|
23
|
+
getRecursosRelleno(data: GetRecursosRelleno): void;
|
|
24
|
+
getVariableStorage(variable: variable): void;
|
|
25
|
+
checkHealth(json: string): void;
|
|
26
|
+
checkHealthPrinter(json: string): void;
|
|
27
|
+
}
|
|
28
|
+
declare class SmoEvents {
|
|
29
|
+
start: Subject<start>;
|
|
30
|
+
setDatasource: Subject<setDatasource>;
|
|
31
|
+
setDatasourceJson: Subject<any>;
|
|
32
|
+
getVariable: Subject<variable>;
|
|
33
|
+
setCurrentStream: Subject<string>;
|
|
34
|
+
infoCurrentLocation: Subject<location>;
|
|
35
|
+
setSalidaData: Subject<DataSalida>;
|
|
36
|
+
updatefromsalida: Subject<any>;
|
|
37
|
+
getRecursos: Subject<GetRecursos>;
|
|
38
|
+
getRecursosDefault: Subject<GetRecursos>;
|
|
39
|
+
getRecursosRelleno: Subject<GetRecursosRelleno>;
|
|
40
|
+
getVariableStorage: Subject<variable>;
|
|
41
|
+
checkHealth: Subject<string>;
|
|
42
|
+
checkHealthPrinter: Subject<String>;
|
|
43
|
+
constructor(smo: SMO);
|
|
44
|
+
}
|
|
45
|
+
declare class smoCallBacks {
|
|
46
|
+
smo: SMO;
|
|
47
|
+
constructor(_smo: SMO);
|
|
48
|
+
onSmoLoad(): void;
|
|
49
|
+
onSmoReady(): void;
|
|
50
|
+
smoLog(msn: string, level: LogLevel): void;
|
|
51
|
+
smoAlarma(msn: string, level: AlarmaLevel): void;
|
|
52
|
+
smoLogStash(msn: string): void;
|
|
53
|
+
smoLogNowShowing(msn: any): void;
|
|
54
|
+
reiniciarDispositivo(msn: string): void;
|
|
55
|
+
urlNext(): void;
|
|
56
|
+
exitInteractivity(): void;
|
|
57
|
+
showBrowser(): void;
|
|
58
|
+
closeBrowser(): void;
|
|
59
|
+
urlNextDirectamente(): void;
|
|
60
|
+
setVariable(variable: string, valor: string): void;
|
|
61
|
+
getVariable(variable: string): void;
|
|
62
|
+
getFile(file: string): void;
|
|
63
|
+
setLocalData(variable: string, valor: string): void;
|
|
64
|
+
getLocalData(variable: string): void;
|
|
65
|
+
getCurrentStream(): void;
|
|
66
|
+
finAviso(id: string): void;
|
|
67
|
+
refreshDatasource(codigo: string): void;
|
|
68
|
+
getLocation(): void;
|
|
69
|
+
getSalidaData(data: string): void;
|
|
70
|
+
ejecutaFuncion(data: ExecFunction): void;
|
|
71
|
+
addObserver(data: string): void;
|
|
72
|
+
notify(data: Notify): void;
|
|
73
|
+
playOnceChannelByTrigger(trigger: string): void;
|
|
74
|
+
stopPlayOnceChannelByTrigger(): void;
|
|
75
|
+
playOnceChannel(codigoCanal: string): void;
|
|
76
|
+
stopPlayChannel(): void;
|
|
77
|
+
editWrapperStyle(obj: any): void;
|
|
78
|
+
getRecursos(): void;
|
|
79
|
+
getRecursosDefault(): void;
|
|
80
|
+
getRecursosRelleno(): void;
|
|
81
|
+
setVariableStorage(variable: string, valor: string): void;
|
|
82
|
+
getVariableStorage(variable: string): void;
|
|
83
|
+
printTextLine(txt: string): void;
|
|
84
|
+
printBarcode(code: string, width: number, height: number): void;
|
|
85
|
+
cutPaper(percent: number): void;
|
|
86
|
+
checkHealth(): void;
|
|
87
|
+
checkHealthPrinter(): void;
|
|
88
|
+
printImage(image: string): void;
|
|
89
|
+
}
|
|
90
|
+
declare class Utils {
|
|
91
|
+
smo: SMO;
|
|
92
|
+
smoCallBacks: smoCallBacks;
|
|
93
|
+
constructor(_smo: SMO, _smoCallBacks: smoCallBacks);
|
|
94
|
+
xmlToJSON(xml: string): string;
|
|
95
|
+
jsonToStr(js_obj: any): string;
|
|
96
|
+
setJsonObj(xml: any): any;
|
|
97
|
+
dataToJSON(data: setDatasource): any;
|
|
98
|
+
}
|
|
99
|
+
export declare enum SMO_EVENT_TYPE {
|
|
100
|
+
start = "start",
|
|
101
|
+
setDatasource = "setDatasource",
|
|
102
|
+
getVariable = "getVariable",
|
|
103
|
+
setCurrentStream = "setCurrentStream",
|
|
104
|
+
infoCurrentLocation = "infoCurrentLocation",
|
|
105
|
+
setSalidaData = "setSalidaData",
|
|
106
|
+
updatefromsalida = "updatefromsalida",
|
|
107
|
+
setDatasourceJson = "setDatasourceJson",
|
|
108
|
+
getRecursos = "getRecursos",
|
|
109
|
+
getRecursosDefault = "getRecursosDefault",
|
|
110
|
+
getRecursosRelleno = "getRecursosRelleno",
|
|
111
|
+
getVariableStorage = "getVariableStorage",
|
|
112
|
+
checkHealth = "checkHealth",
|
|
113
|
+
checkHealthPrinter = "checkHealthPrinter"
|
|
114
|
+
}
|
|
115
|
+
export declare enum LogLevel {
|
|
116
|
+
Debug = 0,
|
|
117
|
+
Info = 1,
|
|
118
|
+
Warning = 2,
|
|
119
|
+
Error = 3
|
|
120
|
+
}
|
|
121
|
+
export declare enum AlarmaLevel {
|
|
122
|
+
Ok_off = 0,
|
|
123
|
+
Ok = 1,
|
|
124
|
+
Scanning = 2,
|
|
125
|
+
Timeout = 3,
|
|
126
|
+
Warning = 4,
|
|
127
|
+
Error = 5
|
|
128
|
+
}
|
|
129
|
+
export {};
|