0.1.9 • Published 4 months ago

vue-login-adds v0.1.9

Weekly downloads
-
License
-
Repository
-
Last release
4 months ago

Descripcion

Paquete para el uso de inicio de sesion y validacion de documentacion por ciudadania digital

Instalacion

Instalacion del paquete

npm i vue-login-adds

Variables de Entorno

VITE_API_INTERMEDIARY_SEGURITY=https://ms-agetic.mp.gob.bo
VITE_API_LOCAL_FIRMATIC=https://localhost:4637
VITE_API_SERVER_REDIRECT=https://agetic.mp.gob.bo
VITE_API_BASE_URL="http://mi-pagina.com"
VITE_API_APLICATION="mp"
VITE_VERIFY_FUNCTIONARY="true"
VITE_TOKEN_SEGURITY_AGETIC="ytksdf....."
VITE_DEVELOPMENT_ENVIRONMENT="PRODUCTION | TEST | DEV"

configuracion de variables de Entorno

import vueLoginAdds from 'vue-login-adds'

const app = createApp(App);
app.use(vueLoginAdds, {
    VITE_API_INTERMEDIARY_SEGURITY: import.meta.env.VITE_API_INTERMEDIARY_SEGURITY,
    VITE_API_LOCAL_FIRMATIC:import.meta.env.VITE_API_LOCAL_FIRMATIC,
    VITE_API_SERVER_REDIRECT:import.meta.env.VITE_API_SERVER_REDIRECT,
    VITE_API_BASE_URL:import.meta.env.VITE_API_BASE_URL,
    VITE_API_APLICATION:import.meta.env.VITE_API_APLICATION,
    VITE_TOKEN_SEGURITY_AGETIC:import.meta.env.VITE_TOKEN_SEGURITY_AGETIC,
    VITE_DEVELOPMENT_ENVIRONMENT:import.meta.env.VITE_DEVELOPMENT_ENVIRONMENT,
});

app.mount('#app');

Configuracion para Iniciar sesion, validar documentos, notificaciones

  <div style="height: 100vh; width: 100%;">
          <button @click="login">Iniciar Session</button>
          <button @click="validate">Validar Documento</button>
          <button @click="notification">Notificacion</button>
          <button @click="logout">cerrar Session</button>
  </div>
<script setup lang="ts">
  import {LoginDigital,ListenPopupDigitalCitizenchip,validateDocument, LogoutDigital,validateNotification} from 'vue-login-adds'
export default defineComponent({
  components:{
  },
  methods:{
    async login(){
      //openWindows:true:nueva ventana // false: popup
      //tokenMsSeguridad: token ms seguridad v2 // opcional
      //verifyFunctionary: verificar funcionario defaul:true // opcional
      console.log('>>>>',await LoginDigital({openWindows:false,verifyFunctionary:true,tokenMsSeguridad:"eyhdfgdf..."}))
    },
    async validate(){
      //openWindows:true:nueva ventana // false: popup
      console.log('>>>>',await validateDocument({openWindows:false,documentId:"64d504e1cf3b003bb2fb5c77",urlNotificationDocument:"https://.... (OPCIONAL)"}))
    },

    async notification(){
      await validateNotification({
        "delegado": "123456",
        "proceso": "CÓDIGO UNICO: 00000000000000",
        "objeto": "Acta",
        "asunto": "gfhfgdgfdsgdf",
        "tipoNotificado":1,
        "contenido": "A través...</b> con .... </b>",
        "tramite": 84,
        "autoridad": {
          "numeroDocumento": "000111222",
          "fechaNacimiento": "27/05/1994"
        },
        "notificado": {
          "numeroDocumento": "111222333",
          "fechaNacimiento": "16/10/1986"
        },
        "enlaces": [],
        "notificacionId": 57,
        "personaId": 876,
        "casoPersonaAbogadoID": 110,
      },
      'eyJhb.....'
      )
    },

    //true:nueva ventana // false: popup
    async logout(){
      console.log('>>>>',await LogoutDigital({openWindows:false}))
    },
  },
})
</script>
<style>

</style>

Configuracion para ver el TIMELINE DE LOS PROCESOS

Imagen

<template>
            <div>
                <TimeLines />
            </div>
</template>
<script setup lang="ts">
import {TimeLines} from 'vue-login-adds'
</script>
0.1.8

4 months ago

0.1.9

4 months ago

0.1.7

5 months ago

0.0.40

6 months ago

0.0.41

6 months ago

0.0.42

6 months ago

0.0.43

6 months ago

0.0.44

6 months ago

0.0.45

6 months ago

0.0.46

6 months ago

0.0.47

6 months ago

0.0.39

7 months ago

0.1.2

6 months ago

0.1.1

6 months ago

0.1.4

6 months ago

0.1.3

6 months ago

0.1.6

5 months ago

0.1.5

5 months ago

0.0.51

6 months ago

0.0.52

6 months ago

0.0.53

6 months ago

0.0.50

6 months ago

0.0.48

6 months ago

0.0.49

6 months ago

0.0.38

7 months ago

0.0.37

7 months ago

0.0.36

7 months ago

0.0.35

7 months ago

0.0.34

7 months ago

0.0.33

7 months ago

0.0.32

7 months ago

0.0.31

7 months ago

0.0.30

7 months ago

0.0.29-alpha.20

7 months ago

0.0.29-alpha.19

7 months ago

0.0.29-alpha.18

7 months ago

0.0.29-alpha.17

8 months ago

0.0.28-alpha.16

8 months ago

0.0.28-alpha.15

8 months ago

0.0.28-alpha.14

8 months ago

0.0.28-alpha.13

8 months ago

0.0.28-alpha.12

8 months ago

0.0.28-alpha.11

8 months ago

0.0.28-alpha.10

8 months ago

0.0.25-alpha.9

8 months ago

0.0.24-alpha.8

8 months ago

0.0.24-alpha.7

8 months ago

0.0.24-alpha.6

8 months ago

0.0.24-alpha.5

8 months ago

0.0.24-alpha.4

8 months ago

0.0.23-alpha.3

8 months ago

0.0.23-alpha.2

8 months ago

0.0.23-alpha.1

8 months ago

0.0.22-alpha.0

8 months ago

0.0.21

8 months ago

0.0.20

8 months ago

0.0.19

8 months ago

0.0.18

9 months ago

0.0.17

9 months ago

0.0.16

9 months ago

0.0.15

9 months ago

0.0.14

9 months ago

0.0.13

9 months ago

0.0.12

9 months ago

0.0.11

9 months ago

0.0.10

9 months ago

0.0.9

9 months ago

0.0.8

9 months ago

0.0.7

9 months ago

0.0.6

9 months ago

0.0.5

9 months ago

0.0.4

9 months ago

0.0.3

10 months ago

0.0.2

10 months ago

0.0.1

10 months ago