fpavon-ee-shared 1.0.62 → 1.0.63

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.
@@ -16,6 +16,7 @@ export declare class ImplementacionWorkflow {
16
16
  estado: string;
17
17
  motivoRechazoFinalizacion: string;
18
18
  permitirCompartirExpediente: boolean;
19
+ uuidDocumentoWF?: string;
19
20
  constructor(params: any);
20
21
  }
21
22
  export declare class Firma {
@@ -25,6 +26,7 @@ export declare class Firma {
25
26
  }
26
27
  export declare class Documento<TWorkflowState = ImplementacionWorkflow> implements IDocumento {
27
28
  uuid: string;
29
+ uuidOriginal?: string;
28
30
  extras: any;
29
31
  fecha?: Date;
30
32
  firmado: boolean;
@@ -36,5 +38,6 @@ export declare class Documento<TWorkflowState = ImplementacionWorkflow> implemen
36
38
  constructor(uuid: string, nombre: string, descripcion: string, size: string, opciones?: {
37
39
  lastUpdate?: Date;
38
40
  extras?: any;
41
+ uuidOriginal?: string;
39
42
  }, firmado?: boolean, estadoWorkflow?: TWorkflowState[], fecha?: any);
40
43
  }
@@ -11,6 +11,7 @@ class ImplementacionWorkflow {
11
11
  this.estado = params.estado;
12
12
  this.motivoRechazoFinalizacion = params.motivoRechazoFinalizacion ? params.motivoRechazoFinalizacion : '';
13
13
  this.permitirCompartirExpediente = params.permitirCompartirExpediente ? params.permitirCompartirExpediente : false;
14
+ this.uuidDocumentoWF = params.uuidDocumentoWF;
14
15
  }
15
16
  }
16
17
  exports.ImplementacionWorkflow = ImplementacionWorkflow;
@@ -54,6 +55,7 @@ class Documento {
54
55
  if (opciones) {
55
56
  this.lastUpdate = opciones.lastUpdate;
56
57
  this.extras = opciones.extras || {};
58
+ this.uuidOriginal = opciones.uuidOriginal;
57
59
  }
58
60
  }
59
61
  }
@@ -1,5 +1,6 @@
1
1
  export interface IDocumento {
2
2
  uuid: string;
3
+ uuidOriginal?: string;
3
4
  extras?: any;
4
5
  fecha?: Date;
5
6
  lastUpdate?: Date;
@@ -15,14 +15,11 @@ export class ImplementacionWorkflow {
15
15
  * @param unidad la unidad actual en la que se encuentra el wf.
16
16
  */
17
17
  unidad: string;
18
-
19
18
  informacionAdicional: string;
20
-
21
19
  estado: string;
22
-
23
20
  motivoRechazoFinalizacion: string;
24
-
25
21
  permitirCompartirExpediente: boolean;
22
+ uuidDocumentoWF?: string;
26
23
 
27
24
  constructor(params: any) {
28
25
  this.workflowId = params.workflowId;
@@ -32,6 +29,7 @@ export class ImplementacionWorkflow {
32
29
  this.estado = params.estado;
33
30
  this.motivoRechazoFinalizacion = params.motivoRechazoFinalizacion ? params.motivoRechazoFinalizacion : '';
34
31
  this.permitirCompartirExpediente = params.permitirCompartirExpediente ? params.permitirCompartirExpediente : false;
32
+ this.uuidDocumentoWF = params.uuidDocumentoWF;
35
33
  }
36
34
  }
37
35
 
@@ -46,6 +44,7 @@ export class Firma {
46
44
 
47
45
  export class Documento<TWorkflowState = ImplementacionWorkflow> implements IDocumento {
48
46
  uuid: string;
47
+ uuidOriginal?: string;
49
48
  extras: any = {};
50
49
  fecha?: Date;
51
50
  firmado: boolean;
@@ -60,7 +59,7 @@ export class Documento<TWorkflowState = ImplementacionWorkflow> implements IDocu
60
59
  nombre: string,
61
60
  descripcion: string,
62
61
  size: string,
63
- opciones?: { lastUpdate?: Date, extras?: any },
62
+ opciones?: { lastUpdate?: Date, extras?: any, uuidOriginal?: string },
64
63
  firmado?: boolean,
65
64
  estadoWorkflow?: TWorkflowState[],
66
65
  fecha?: any
@@ -96,6 +95,7 @@ export class Documento<TWorkflowState = ImplementacionWorkflow> implements IDocu
96
95
  if (opciones) {
97
96
  this.lastUpdate = opciones.lastUpdate;
98
97
  this.extras = opciones.extras || {};
98
+ this.uuidOriginal = opciones.uuidOriginal;
99
99
  }
100
100
  }
101
101
  }
@@ -1,5 +1,6 @@
1
1
  export interface IDocumento{
2
2
  uuid: string;
3
+ uuidOriginal?: string;
3
4
  extras?:any
4
5
  fecha?: Date;
5
6
  lastUpdate?: Date;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fpavon-ee-shared",
3
- "version": "1.0.62",
3
+ "version": "1.0.63",
4
4
  "description": "Carpeta compartida entre servicios de Expediente Electronico",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",