flit-models 3.3.35 → 3.3.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.
|
@@ -30,36 +30,37 @@ var Dispositivo = /** @class */ (function () {
|
|
|
30
30
|
* @memberof Dispositivo
|
|
31
31
|
*/
|
|
32
32
|
function Dispositivo(dispositivoPayload) {
|
|
33
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6;
|
|
33
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7;
|
|
34
34
|
this._id = (_a = dispositivoPayload._id) !== null && _a !== void 0 ? _a : undefined;
|
|
35
35
|
this._path = (_b = dispositivoPayload._path) !== null && _b !== void 0 ? _b : undefined;
|
|
36
|
-
this.
|
|
37
|
-
this.
|
|
38
|
-
this.
|
|
39
|
-
this.
|
|
36
|
+
this.empresa = (_c = dispositivoPayload.empresa) !== null && _c !== void 0 ? _c : undefined;
|
|
37
|
+
this.ativo = (_d = dispositivoPayload.ativo) !== null && _d !== void 0 ? _d : true;
|
|
38
|
+
this.autenticacao_id = (_e = dispositivoPayload.autenticacao_id) !== null && _e !== void 0 ? _e : undefined;
|
|
39
|
+
this.conta_ref = (_f = dispositivoPayload.conta_ref) !== null && _f !== void 0 ? _f : undefined;
|
|
40
|
+
this.data_criacao_doc = (_g = dispositivoPayload.data_criacao_doc) !== null && _g !== void 0 ? _g : undefined;
|
|
40
41
|
this.data_atualizacao_doc =
|
|
41
|
-
(
|
|
42
|
-
this.descricao = (
|
|
43
|
-
this.email = (
|
|
44
|
-
this.empresa_ref = (
|
|
45
|
-
this.perimetros_refs = (
|
|
42
|
+
(_h = dispositivoPayload.data_atualizacao_doc) !== null && _h !== void 0 ? _h : undefined;
|
|
43
|
+
this.descricao = (_j = dispositivoPayload.descricao) !== null && _j !== void 0 ? _j : undefined;
|
|
44
|
+
this.email = (_k = dispositivoPayload.email) !== null && _k !== void 0 ? _k : undefined;
|
|
45
|
+
this.empresa_ref = (_l = dispositivoPayload.empresa_ref) !== null && _l !== void 0 ? _l : undefined;
|
|
46
|
+
this.perimetros_refs = (_m = dispositivoPayload.perimetros_refs) !== null && _m !== void 0 ? _m : undefined;
|
|
46
47
|
this.endereco = {
|
|
47
|
-
latitude: (
|
|
48
|
-
longitude: (
|
|
48
|
+
latitude: (_p = (_o = dispositivoPayload.endereco) === null || _o === void 0 ? void 0 : _o.latitude) !== null && _p !== void 0 ? _p : null,
|
|
49
|
+
longitude: (_r = (_q = dispositivoPayload.endereco) === null || _q === void 0 ? void 0 : _q.longitude) !== null && _r !== void 0 ? _r : null,
|
|
49
50
|
};
|
|
50
|
-
this.excluido = (
|
|
51
|
+
this.excluido = (_s = dispositivoPayload.excluido) !== null && _s !== void 0 ? _s : false;
|
|
51
52
|
this.parametros = {
|
|
52
|
-
marcacao_por_cracha: (
|
|
53
|
-
marcacao_por_cracha_sem_toque: (
|
|
54
|
-
modo_espera_minutos: Number((
|
|
55
|
-
permitir_consultar_ultima_marcacao: (
|
|
56
|
-
utilizar_endereco_gps: (
|
|
57
|
-
ocultar_digitacao_pin: (
|
|
53
|
+
marcacao_por_cracha: (_u = (_t = dispositivoPayload.parametros) === null || _t === void 0 ? void 0 : _t.marcacao_por_cracha) !== null && _u !== void 0 ? _u : false,
|
|
54
|
+
marcacao_por_cracha_sem_toque: (_w = (_v = dispositivoPayload.parametros) === null || _v === void 0 ? void 0 : _v.marcacao_por_cracha_sem_toque) !== null && _w !== void 0 ? _w : false,
|
|
55
|
+
modo_espera_minutos: Number((_x = dispositivoPayload.parametros) === null || _x === void 0 ? void 0 : _x.modo_espera_minutos) || 15,
|
|
56
|
+
permitir_consultar_ultima_marcacao: (_z = (_y = dispositivoPayload.parametros) === null || _y === void 0 ? void 0 : _y.permitir_consultar_ultima_marcacao) !== null && _z !== void 0 ? _z : false,
|
|
57
|
+
utilizar_endereco_gps: (_1 = (_0 = dispositivoPayload.parametros) === null || _0 === void 0 ? void 0 : _0.utilizar_endereco_gps) !== null && _1 !== void 0 ? _1 : false,
|
|
58
|
+
ocultar_digitacao_pin: (_3 = (_2 = dispositivoPayload.parametros) === null || _2 === void 0 ? void 0 : _2.ocultar_digitacao_pin) !== null && _3 !== void 0 ? _3 : false,
|
|
58
59
|
};
|
|
59
|
-
this.pin = (
|
|
60
|
-
this.tipo = (
|
|
60
|
+
this.pin = (_4 = dispositivoPayload.pin) !== null && _4 !== void 0 ? _4 : undefined;
|
|
61
|
+
this.tipo = (_5 = dispositivoPayload.tipo) !== null && _5 !== void 0 ? _5 : undefined;
|
|
61
62
|
this.token_notificacao = {
|
|
62
|
-
android: (
|
|
63
|
+
android: (_7 = (_6 = dispositivoPayload.token_notificacao) === null || _6 === void 0 ? void 0 : _6.android) !== null && _7 !== void 0 ? _7 : undefined,
|
|
63
64
|
};
|
|
64
65
|
}
|
|
65
66
|
return Dispositivo;
|