@mdgf11/filesystem-lib 2.2.3 → 2.2.5
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.
|
@@ -102,7 +102,7 @@ export async function createJurisprudenciaDocument(retrievable_Metadata, content
|
|
|
102
102
|
obj["Relator Nome Profissional"] = { Index: [retrievable_Metadata.judge], Original: [retrievable_Metadata.judge], Show: [retrievable_Metadata.judge] };
|
|
103
103
|
}
|
|
104
104
|
if (retrievable_Metadata.process_mean && retrievable_Metadata.process_mean.length > 0) {
|
|
105
|
-
obj["Meio Processual"] = { Index:
|
|
105
|
+
obj["Meio Processual"] = { Index: retrievable_Metadata.process_mean, Original: retrievable_Metadata.process_mean, Show: retrievable_Metadata.process_mean };
|
|
106
106
|
}
|
|
107
107
|
if (retrievable_Metadata.decision && retrievable_Metadata.decision.length > 0) {
|
|
108
108
|
obj["Decisão"] = { Index: [retrievable_Metadata.decision], Original: [retrievable_Metadata.decision], Show: [retrievable_Metadata.decision] };
|
package/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const UpdateSources: readonly ["STJ (Sharepoint)", "
|
|
1
|
+
export declare const UpdateSources: readonly ["STJ (Sharepoint)", "DGSI"];
|
|
2
2
|
export type SupportedUpdateSources = typeof UpdateSources[number];
|
|
3
3
|
import { PartialJurisprudenciaDocument } from '@stjiris/jurisprudencia-document';
|
|
4
4
|
export declare const ROOT_PATH: string;
|
|
@@ -39,7 +39,7 @@ export type Sharepoint_Metadata = {
|
|
|
39
39
|
export type Retrievable_Metadata = {
|
|
40
40
|
process_number: string;
|
|
41
41
|
judge: string;
|
|
42
|
-
process_mean: string;
|
|
42
|
+
process_mean: string[];
|
|
43
43
|
decision: string;
|
|
44
44
|
descriptors?: string[];
|
|
45
45
|
};
|
|
@@ -48,7 +48,7 @@ export type Date_Area_Section = {
|
|
|
48
48
|
area: string;
|
|
49
49
|
section: string;
|
|
50
50
|
};
|
|
51
|
-
export declare const SUPPORTED_EXTENSIONS: readonly ["txt", "pdf", "docx"];
|
|
51
|
+
export declare const SUPPORTED_EXTENSIONS: readonly ["txt", "pdf", "docx", "html"];
|
|
52
52
|
export type Supported_Content_Extensions = typeof SUPPORTED_EXTENSIONS[number];
|
|
53
53
|
export type ContentType = {
|
|
54
54
|
extension: Supported_Content_Extensions;
|
package/dist/types.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export const UpdateSources = ["STJ (Sharepoint)", "
|
|
1
|
+
export const UpdateSources = ["STJ (Sharepoint)", "DGSI"];
|
|
2
2
|
import dotenv from 'dotenv';
|
|
3
3
|
dotenv.config();
|
|
4
4
|
export const ROOT_PATH = process.env['LOCAL_ROOT'] || 'results';
|
|
@@ -11,7 +11,7 @@ export const SHAREPOINT_LOGS_PATH = `${LOGS_PATH}/Sharepoint`;
|
|
|
11
11
|
export const JURIS_LOGS_PATH = `${LOGS_PATH}/Juris`;
|
|
12
12
|
export const SHAREPOINT_UPDATE_DIR = `${ROOT_PATH}${SHAREPOINT_LOGS_PATH}`;
|
|
13
13
|
export const JURIS_UPDATE_DIR = `${ROOT_PATH}${JURIS_LOGS_PATH}`;
|
|
14
|
-
export const SUPPORTED_EXTENSIONS = ["txt", "pdf", "docx"];
|
|
14
|
+
export const SUPPORTED_EXTENSIONS = ["txt", "pdf", "docx", "html"];
|
|
15
15
|
export function isSupportedExtension(ext) {
|
|
16
16
|
return SUPPORTED_EXTENSIONS.includes(ext);
|
|
17
17
|
}
|
package/package.json
CHANGED
|
@@ -112,7 +112,7 @@ export async function createJurisprudenciaDocument(retrievable_Metadata: Retriev
|
|
|
112
112
|
obj["Relator Nome Profissional"] = { Index: [retrievable_Metadata.judge], Original: [retrievable_Metadata.judge], Show: [retrievable_Metadata.judge] };
|
|
113
113
|
}
|
|
114
114
|
if (retrievable_Metadata.process_mean && retrievable_Metadata.process_mean.length > 0) {
|
|
115
|
-
obj["Meio Processual"] = { Index:
|
|
115
|
+
obj["Meio Processual"] = { Index: retrievable_Metadata.process_mean, Original: retrievable_Metadata.process_mean, Show: retrievable_Metadata.process_mean };
|
|
116
116
|
}
|
|
117
117
|
if (retrievable_Metadata.decision && retrievable_Metadata.decision.length > 0) {
|
|
118
118
|
obj["Decisão"] = { Index: [retrievable_Metadata.decision], Original: [retrievable_Metadata.decision], Show: [retrievable_Metadata.decision] };
|
package/src/types.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
export const UpdateSources = ["STJ (Sharepoint)", "
|
|
2
|
+
export const UpdateSources = ["STJ (Sharepoint)", "DGSI"] as const;
|
|
3
3
|
export type SupportedUpdateSources = typeof UpdateSources[number];
|
|
4
4
|
import { PartialJurisprudenciaDocument } from '@stjiris/jurisprudencia-document';
|
|
5
5
|
import dotenv from 'dotenv';
|
|
@@ -41,10 +41,10 @@ export type Sharepoint_Metadata = {
|
|
|
41
41
|
xor_hash?: string,
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
export type Retrievable_Metadata = { process_number: string, judge: string, process_mean: string, decision: string, descriptors?: string[] };
|
|
44
|
+
export type Retrievable_Metadata = { process_number: string, judge: string, process_mean: string[], decision: string, descriptors?: string[] };
|
|
45
45
|
export type Date_Area_Section = { file_date: Date, area: string, section: string };
|
|
46
46
|
|
|
47
|
-
export const SUPPORTED_EXTENSIONS = ["txt", "pdf", "docx"] as const;
|
|
47
|
+
export const SUPPORTED_EXTENSIONS = ["txt", "pdf", "docx", "html"] as const;
|
|
48
48
|
export type Supported_Content_Extensions = typeof SUPPORTED_EXTENSIONS[number];
|
|
49
49
|
|
|
50
50
|
export type ContentType = {
|