@tricoteuses/senat 2.22.5 → 2.22.7

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.
Files changed (146) hide show
  1. package/lib/config.d.ts +12 -1
  2. package/lib/config.js +12 -1
  3. package/lib/loaders.js +1 -1
  4. package/lib/model/ameli.js +1 -3
  5. package/lib/model/documents.js +5 -18
  6. package/lib/model/dosleg.js +11 -11
  7. package/lib/model/texte.js +15 -43
  8. package/lib/raw_types/questions.d.ts +4 -0
  9. package/lib/raw_types/senat.d.ts +4 -0
  10. package/lib/raw_types_schemats/ameli.d.ts +1 -1
  11. package/lib/raw_types_schemats/debats.d.ts +1 -1
  12. package/lib/raw_types_schemats/dosleg.d.ts +1 -1
  13. package/lib/raw_types_schemats/questions.d.ts +3 -1
  14. package/lib/raw_types_schemats/sens.d.ts +1 -1
  15. package/lib/scripts/convert_data.js +3 -3
  16. package/lib/scripts/parse_textes.js +2 -2
  17. package/lib/scripts/retrieve_open_data.js +1 -0
  18. package/lib/scripts/test_iter_load.js +1 -1
  19. package/lib/src/model/ameli.d.ts +4 -0
  20. package/lib/src/model/ameli.js +3 -3
  21. package/lib/src/scripts/retrieve_videos.js +1 -0
  22. package/lib/src/types/agenda.d.ts +1 -0
  23. package/lib/src/utils/nvs-timecode.d.ts +17 -0
  24. package/lib/src/utils/nvs-timecode.js +79 -0
  25. package/lib/src/utils/weights_scoring_config.d.ts +2 -0
  26. package/lib/src/utils/weights_scoring_config.js +15 -0
  27. package/lib/src/videos/pipeline.d.ts +2 -0
  28. package/lib/src/videos/pipeline.js +3 -2
  29. package/lib/utils/reunion_grouping.d.ts +4 -2
  30. package/lib/utils/reunion_grouping.js +6 -30
  31. package/package.json +1 -1
  32. package/lib/aggregates.d.ts +0 -52
  33. package/lib/aggregates.js +0 -930
  34. package/lib/aggregates.mjs +0 -713
  35. package/lib/aggregates.ts +0 -833
  36. package/lib/config.mjs +0 -16
  37. package/lib/config.ts +0 -26
  38. package/lib/databases.mjs +0 -57
  39. package/lib/databases.ts +0 -71
  40. package/lib/datasets.mjs +0 -78
  41. package/lib/datasets.ts +0 -118
  42. package/lib/fields.d.ts +0 -10
  43. package/lib/fields.js +0 -68
  44. package/lib/fields.mjs +0 -22
  45. package/lib/fields.ts +0 -29
  46. package/lib/index.mjs +0 -7
  47. package/lib/index.ts +0 -64
  48. package/lib/inserters.d.ts +0 -98
  49. package/lib/inserters.js +0 -500
  50. package/lib/inserters.mjs +0 -360
  51. package/lib/inserters.ts +0 -521
  52. package/lib/legislatures.json +0 -38
  53. package/lib/loaders.mjs +0 -158
  54. package/lib/loaders.ts +0 -271
  55. package/lib/model/ameli.mjs +0 -84
  56. package/lib/model/ameli.ts +0 -100
  57. package/lib/model/debats.mjs +0 -43
  58. package/lib/model/debats.ts +0 -68
  59. package/lib/model/dosleg.mjs +0 -196
  60. package/lib/model/dosleg.ts +0 -240
  61. package/lib/model/index.mjs +0 -5
  62. package/lib/model/index.ts +0 -15
  63. package/lib/model/questions.mjs +0 -71
  64. package/lib/model/questions.ts +0 -93
  65. package/lib/model/sens.mjs +0 -415
  66. package/lib/model/sens.ts +0 -516
  67. package/lib/model/texte.mjs +0 -208
  68. package/lib/model/texte.ts +0 -229
  69. package/lib/model/util.mjs +0 -19
  70. package/lib/model/util.ts +0 -32
  71. package/lib/raw_types/ameli.mjs +0 -163
  72. package/lib/raw_types/debats.mjs +0 -58
  73. package/lib/raw_types/dosleg.mjs +0 -438
  74. package/lib/raw_types/questions.mjs +0 -11
  75. package/lib/raw_types/sens.mjs +0 -508
  76. package/lib/raw_types_kysely/ameli.d.ts +0 -915
  77. package/lib/raw_types_kysely/ameli.js +0 -7
  78. package/lib/raw_types_kysely/ameli.mjs +0 -5
  79. package/lib/raw_types_kysely/ameli.ts +0 -951
  80. package/lib/raw_types_kysely/debats.d.ts +0 -207
  81. package/lib/raw_types_kysely/debats.js +0 -7
  82. package/lib/raw_types_kysely/debats.mjs +0 -5
  83. package/lib/raw_types_kysely/debats.ts +0 -222
  84. package/lib/raw_types_kysely/dosleg.d.ts +0 -3532
  85. package/lib/raw_types_kysely/dosleg.js +0 -7
  86. package/lib/raw_types_kysely/dosleg.mjs +0 -5
  87. package/lib/raw_types_kysely/dosleg.ts +0 -3621
  88. package/lib/raw_types_kysely/questions.d.ts +0 -414
  89. package/lib/raw_types_kysely/questions.js +0 -7
  90. package/lib/raw_types_kysely/questions.mjs +0 -5
  91. package/lib/raw_types_kysely/questions.ts +0 -426
  92. package/lib/raw_types_kysely/sens.d.ts +0 -4394
  93. package/lib/raw_types_kysely/sens.js +0 -7
  94. package/lib/raw_types_kysely/sens.mjs +0 -5
  95. package/lib/raw_types_kysely/sens.ts +0 -4499
  96. package/lib/raw_types_schemats/ameli.mjs +0 -2
  97. package/lib/raw_types_schemats/ameli.ts +0 -601
  98. package/lib/raw_types_schemats/debats.mjs +0 -2
  99. package/lib/raw_types_schemats/debats.ts +0 -145
  100. package/lib/raw_types_schemats/dosleg.mjs +0 -2
  101. package/lib/raw_types_schemats/dosleg.ts +0 -2193
  102. package/lib/raw_types_schemats/questions.mjs +0 -2
  103. package/lib/raw_types_schemats/questions.ts +0 -249
  104. package/lib/raw_types_schemats/sens.mjs +0 -2
  105. package/lib/raw_types_schemats/sens.ts +0 -2907
  106. package/lib/scripts/convert_data.mjs +0 -181
  107. package/lib/scripts/convert_data.ts +0 -243
  108. package/lib/scripts/datautil.mjs +0 -16
  109. package/lib/scripts/datautil.ts +0 -19
  110. package/lib/scripts/images/transparent_150x192.jpg +0 -0
  111. package/lib/scripts/images/transparent_155x225.jpg +0 -0
  112. package/lib/scripts/parse_textes.mjs +0 -46
  113. package/lib/scripts/parse_textes.ts +0 -65
  114. package/lib/scripts/retrieve_documents.mjs +0 -249
  115. package/lib/scripts/retrieve_documents.ts +0 -298
  116. package/lib/scripts/retrieve_open_data.mjs +0 -217
  117. package/lib/scripts/retrieve_open_data.ts +0 -268
  118. package/lib/scripts/retrieve_senateurs_photos.mjs +0 -147
  119. package/lib/scripts/retrieve_senateurs_photos.ts +0 -177
  120. package/lib/scripts/shared/cli_helpers.ts +0 -36
  121. package/lib/scripts/shared/util.ts +0 -33
  122. package/lib/strings.mjs +0 -18
  123. package/lib/strings.ts +0 -26
  124. package/lib/types/ameli.mjs +0 -13
  125. package/lib/types/ameli.ts +0 -21
  126. package/lib/types/debats.mjs +0 -2
  127. package/lib/types/debats.ts +0 -6
  128. package/lib/types/dosleg.mjs +0 -151
  129. package/lib/types/dosleg.ts +0 -284
  130. package/lib/types/questions.mjs +0 -1
  131. package/lib/types/questions.ts +0 -3
  132. package/lib/types/sens.mjs +0 -1
  133. package/lib/types/sens.ts +0 -12
  134. package/lib/types/sessions.mjs +0 -43
  135. package/lib/types/sessions.ts +0 -42
  136. package/lib/types/texte.mjs +0 -16
  137. package/lib/types/texte.ts +0 -76
  138. package/lib/typings/windows-1252.d.js +0 -2
  139. package/lib/typings/windows-1252.d.mjs +0 -2
  140. package/lib/typings/windows-1252.d.ts +0 -11
  141. package/lib/validators/config.mjs +0 -54
  142. package/lib/validators/config.ts +0 -79
  143. package/lib/validators/senat.d.ts +0 -0
  144. package/lib/validators/senat.js +0 -28
  145. package/lib/validators/senat.mjs +0 -24
  146. package/lib/validators/senat.ts +0 -26
@@ -1,177 +0,0 @@
1
- import assert from "assert"
2
- import { execSync } from "child_process"
3
- import commandLineArgs from "command-line-args"
4
- import fs from "fs-extra"
5
- // import fetch from "node-fetch"
6
- import path from "path"
7
- // import stream from "stream"
8
- // import util from "util"
9
-
10
- import { findActif as findActifSenateurs } from "../model/sens"
11
- import { slugify } from "../strings"
12
- import { Photo } from "../types/sens"
13
- import { commonOptions } from "./shared/cli_helpers"
14
-
15
- const optionsDefinitions = [
16
- ...commonOptions,
17
- {
18
- alias: "f",
19
- help: "fetch sénateurs' pictures instead of retrieving them from files",
20
- name: "fetch",
21
- type: Boolean,
22
- },
23
- ]
24
- const options = commandLineArgs(optionsDefinitions)
25
- // const pipeline = util.promisify(stream.pipeline)
26
-
27
- async function retrievePhotosSenateurs(): Promise<void> {
28
- const dataDir = options.dataDir
29
- assert(dataDir, "Missing argument: data directory")
30
-
31
- const photosDir = path.join(dataDir, "photos_senateurs")
32
- const missingPhotoFilePath = path.resolve(__dirname, "images", "transparent_155x225.jpg")
33
-
34
- const sens = await Array.fromAsync(findActifSenateurs())
35
-
36
- // Download photos.
37
- fs.ensureDirSync(photosDir)
38
- if (options.fetch) {
39
- for (const sen of sens) {
40
- const photoStem = `${slugify(sen.sennomuse, "_")}_${slugify(
41
- sen.senprenomuse,
42
- "_",
43
- )}${slugify(sen.senmat, "_")}`
44
- const photoFilename = photoStem + ".jpg"
45
- const photoFilePath = path.join(photosDir, photoFilename)
46
- const photoTempFilename = photoStem + "_temp.jpg"
47
- const photoTempFilePath = path.join(photosDir, photoTempFilename)
48
- const urlPhoto = `https://www.senat.fr/senimg/${photoFilename}`
49
- if (!options.silent) {
50
- console.log(
51
- `Loading photo ${urlPhoto} for ${sen.senprenomuse} ${sen.sennomuse}…`,
52
- )
53
- }
54
- // Fetch fails with OpenSSL error: dh key too small.
55
- // (so does "curl").
56
- // for (let retries = 0; retries < 3; retries++) {
57
- // const response = await fetch(urlPhoto)
58
- // if (response.ok) {
59
- // await pipeline(response.body, fs.createWriteStream(photoTempFilePath))
60
- // fs.renameSync(photoTempFilePath, photoFilePath)
61
- // break
62
- // }
63
- // if (retries >= 2) {
64
- // console.warn(`Fetch failed: ${urlPhoto} (${sen.senprenomuse} ${sen.sennomuse})`)
65
- // console.warn(response.status, response.statusText)
66
- // console.warn(await response.text())
67
- // if (fs.existsSync(photoFilePath)) {
68
- // console.warn(" => Reusing existing image")
69
- // } else {
70
- // console.warn(" => Using blank image")
71
- // fs.copyFileSync(missingPhotoFilePath, photoFilePath)
72
- // }
73
- // break
74
- // }
75
- // }
76
- try {
77
- execSync(`wget --quiet -O ${photoTempFilename} ${urlPhoto}`, {
78
- cwd: photosDir,
79
- env: process.env,
80
- encoding: "utf-8",
81
- // stdio: ["ignore", "ignore", "pipe"],
82
- })
83
- fs.renameSync(photoTempFilePath, photoFilePath)
84
- } catch (error) {
85
- if (typeof error === "object" && error && "status" in error && error.status === 8) {
86
- console.error(`Unable to load photo for ${sen.senprenomuse} ${sen.sennomuse}`)
87
- continue
88
- }
89
- throw error
90
- }
91
- }
92
- }
93
-
94
- // Resize photos to 155x225, because some haven't exactly this size.
95
- for (const sen of sens) {
96
- const photoStem = `${slugify(sen.sennomuse, "_")}_${slugify(
97
- sen.senprenomuse,
98
- "_",
99
- )}${slugify(sen.senmat, "_")}`
100
- const photoFilename = photoStem + ".jpg"
101
- const photoFilePath = path.join(photosDir, photoFilename)
102
- if (fs.existsSync(photoFilePath)) {
103
- if (!options.silent) {
104
- console.log(
105
- `Resizing photo ${photoStem} for ${sen.senprenomuse} ${sen.sennomuse}…`,
106
- )
107
- }
108
-
109
- execSync(
110
- `gm convert -resize 155x225! ${photoStem}.jpg ${photoStem}_155x225.jpg`,
111
- {
112
- cwd: photosDir,
113
- },
114
- )
115
- } else {
116
- if (!options.silent) {
117
- console.warn(`Missing photo for ${sen.senprenomuse} ${sen.sennomuse}: using blank image`)
118
- }
119
- fs.copyFileSync(missingPhotoFilePath, path.join(photosDir, `${photoStem}_155x225.jpg`))
120
- }
121
- }
122
-
123
- // Create a mosaic of photos.
124
- if (!options.silent) {
125
- console.log("Creating mosaic of photos…")
126
- }
127
- const photoBySenmat: { [senmat: string]: Photo } = {}
128
- const rowsFilenames: string[] = []
129
- for (
130
- let senIndex = 0, rowIndex = 0;
131
- senIndex < sens.length;
132
- senIndex += 25, rowIndex++
133
- ) {
134
- const row = sens.slice(senIndex, senIndex + 25)
135
- const photosFilenames: string[] = []
136
- for (const [columnIndex, sen] of row.entries()) {
137
- const photoStem = `${slugify(sen.sennomuse, "_")}_${slugify(
138
- sen.senprenomuse,
139
- "_",
140
- )}${slugify(sen.senmat, "_")}`
141
- const photoFilename = `${photoStem}_155x225.jpg`
142
- photosFilenames.push(photoFilename)
143
- photoBySenmat[sen.senmat] = {
144
- chemin: `photos_senateurs/${photoFilename}`,
145
- cheminMosaique: "photos_senateurs/senateurs.jpg",
146
- hauteur: 225,
147
- largeur: 155,
148
- xMosaique: columnIndex * 155,
149
- yMosaique: rowIndex * 225,
150
- }
151
- }
152
- const rowFilename = `row-${rowIndex}.jpg`
153
- execSync(`gm convert ${photosFilenames.join(" ")} +append ${rowFilename}`, {
154
- cwd: photosDir,
155
- })
156
- rowsFilenames.push(rowFilename)
157
- }
158
- execSync(`gm convert ${rowsFilenames.join(" ")} -append senateurs.jpg`, {
159
- cwd: photosDir,
160
- })
161
- for (const rowFilename of rowsFilenames) {
162
- fs.unlinkSync(path.join(photosDir, rowFilename))
163
- }
164
-
165
- if (!options.silent) {
166
- console.log("Creating JSON file containing informations on all pictures…")
167
- }
168
- const jsonFilePath = path.join(photosDir, "senateurs.json")
169
- fs.writeFileSync(jsonFilePath, JSON.stringify(photoBySenmat, null, 2))
170
- }
171
-
172
- retrievePhotosSenateurs()
173
- .then(() => process.exit(0))
174
- .catch((error) => {
175
- console.log(error)
176
- process.exit(1)
177
- })
@@ -1,36 +0,0 @@
1
- export const categoriesOption = {
2
- alias: "k",
3
- defaultValue: ["All"],
4
- help: "categories of datasets to reorganize",
5
- multiple: true,
6
- name: "categories",
7
- type: String,
8
- }
9
-
10
- export const dataDirDefaultOption = {
11
- defaultOption: true,
12
- help: "directory containing Sénat open data files",
13
- name: "dataDir",
14
- type: String,
15
- }
16
-
17
- export const silentOption = {
18
- alias: "s",
19
- help: "don't log anything",
20
- name: "silent",
21
- type: Boolean,
22
- }
23
-
24
- export const verboseOption = {
25
- alias: "v",
26
- help: "verbose logs",
27
- name: "verbose",
28
- type: Boolean,
29
- }
30
-
31
- export const commonOptions = [
32
- categoriesOption,
33
- dataDirDefaultOption,
34
- silentOption,
35
- verboseOption,
36
- ]
@@ -1,33 +0,0 @@
1
- import fs from "fs-extra"
2
-
3
- export function isOptionEmptyOrHasValue (option: string, value: string) {
4
- return !option || option.length === 0 || option.includes(value)
5
- }
6
-
7
- export function ensureAndClearDir (path: string) {
8
- if (!fs.existsSync(path)) {
9
- fs.mkdirSync(path, { recursive: true })
10
- } else {
11
- fs.emptyDirSync(path)
12
- }
13
- }
14
-
15
- export async function fetchWithRetry (
16
- url: string,
17
- retries: number = 3,
18
- backoff: number = 300,
19
- ): Promise<Response> {
20
- for (let attempt = 0; attempt < retries; attempt++) {
21
- try {
22
- return await fetch(url)
23
- } catch (error) {
24
- if (attempt === retries - 1) {
25
- throw error
26
- }
27
- console.warn(`Fetch attempt ${attempt + 1} for ${url} failed. Retrying in ${backoff}ms…`)
28
- await new Promise((resolve) => setTimeout(resolve, backoff))
29
- backoff *= 2
30
- }
31
- }
32
- throw new Error(`Failed to fetch ${url} after ${retries} attempts`)
33
- }
package/lib/strings.mjs DELETED
@@ -1,18 +0,0 @@
1
- import originalSlugify from "slug";
2
- const slugifyCharmap = {
3
- ...originalSlugify.defaults.charmap,
4
- "'": " ",
5
- "@": " ",
6
- ".": " ",
7
- "-": "_",
8
- };
9
- export function slugify(string, replacement) {
10
- const options = {
11
- charmap: slugifyCharmap,
12
- mode: "rfc3986",
13
- };
14
- if (replacement) {
15
- options.replacement = replacement;
16
- }
17
- return originalSlugify(string, options);
18
- }
package/lib/strings.ts DELETED
@@ -1,26 +0,0 @@
1
- import originalSlugify from "slug"
2
-
3
- const slugifyCharmap = {
4
- ...originalSlugify.defaults.charmap,
5
- "'": " ",
6
- "@": " ",
7
- ".": " ",
8
- "-": "_",
9
- }
10
-
11
- interface Options {
12
- charmap: { [c: string]: string }
13
- mode: string
14
- replacement?: string
15
- }
16
-
17
- export function slugify(string: string, replacement?: string): string {
18
- const options: Options = {
19
- charmap: slugifyCharmap,
20
- mode: "rfc3986",
21
- }
22
- if (replacement) {
23
- options.replacement = replacement
24
- }
25
- return originalSlugify(string, options)
26
- }
@@ -1,13 +0,0 @@
1
- export const sesFieldsToParseInt = ["ann"];
2
- export const sesFieldsToTrim = ["lil"];
3
- export const subFieldsToParseInt = ["pos", "posder", "prires"];
4
- export const subFieldsToTrim = ["lic", "lib", "sig", "style"];
5
- export const txtAmeliFieldsToTrim = [
6
- "num",
7
- "int",
8
- "inl",
9
- "libdelim",
10
- "libcplnat",
11
- "doslegsignet",
12
- "ordsnddelib",
13
- ];
@@ -1,21 +0,0 @@
1
- import { ses as Ses, sub as Sub, subFields, txt_ameli } from "../raw_types_schemats/ameli"
2
-
3
- export { Ses, Sub }
4
-
5
- export interface TxtAmeli extends txt_ameli {
6
- subids?: subFields.id[]
7
- }
8
-
9
- export const sesFieldsToParseInt = ["ann"]
10
- export const sesFieldsToTrim = ["lil"]
11
- export const subFieldsToParseInt = ["pos", "posder", "prires"]
12
- export const subFieldsToTrim = ["lic", "lib", "sig", "style"]
13
- export const txtAmeliFieldsToTrim = [
14
- "num",
15
- "int",
16
- "inl",
17
- "libdelim",
18
- "libcplnat",
19
- "doslegsignet",
20
- "ordsnddelib",
21
- ]
@@ -1,2 +0,0 @@
1
- export const debatsFieldsToTrim = ["deburl", "libspec"];
2
- export const lecassdebFieldsToTrim = ["lecassidt"];
@@ -1,6 +0,0 @@
1
- import { debats as Debat, lecassdeb as LecAssDeb } from "../raw_types_schemats/debats"
2
-
3
- export { Debat, LecAssDeb }
4
-
5
- export const debatsFieldsToTrim = ["deburl", "libspec"]
6
- export const lecassdebFieldsToTrim = ["lecassidt"]
@@ -1,151 +0,0 @@
1
- export const assFieldsToTrim = ["libass"];
2
- export const audFieldsToTrim = ["lecassidt", "audtit", "audurl", "orgcod"];
3
- export const auteurFieldsToTrim = [
4
- "autcod",
5
- "quacod",
6
- "typautcod",
7
- "nomuse",
8
- "prenom",
9
- "nomtec",
10
- "autmat",
11
- "autfct",
12
- ];
13
- export const dateSeanceFieldsToTrim = ["lecidt", "statut"];
14
- export const deccocFieldsToTrim = ["deccoccod", "deccoclib"];
15
- export const denrapFieldsToTrim = [
16
- "coddenrap",
17
- "typraprap",
18
- "libdenrap",
19
- "denrapmin",
20
- "denraptit",
21
- "denrapstymin",
22
- "solnatrapcod",
23
- ];
24
- export const docattFieldsToParseInt = ["docattcle", "rapcod"];
25
- export const docattFieldsToTrim = ["docatturl"];
26
- export const ecrFieldsToTrim = ["autcod", "ecrqua"];
27
- export const etaloiFieldsToTrim = ["etaloilib"];
28
- export const lecassFieldsToTrim = [
29
- "lecassidt",
30
- "lecidt",
31
- "ptlurl",
32
- "ptlnumcpl",
33
- "ptlnot",
34
- "ptlurl2",
35
- "ptlnot2",
36
- "ptlurl3",
37
- "ptlnot3",
38
- "ptlnumcpl2",
39
- "ptlnumcpl3",
40
- "lecassame",
41
- "orgcod",
42
- "loiintmod",
43
- "reucom",
44
- "debatsurl",
45
- "libppr",
46
- "ptlurlcom",
47
- "aliasppr",
48
- "lecassamecom",
49
- ];
50
- export const lecassrapFieldsToTrim = ["lecassidt"];
51
- export const lectureFieldsToTrim = ["lecidt", "loicod", "typleccod", "leccom"];
52
- export const loiFieldsToTrim = [
53
- "loicod",
54
- "typloicod",
55
- "deccoccod",
56
- "numero",
57
- "loient",
58
- "motclef",
59
- "loitit",
60
- "loiint",
61
- "url_jo",
62
- "loinumjo",
63
- "loititjo",
64
- "url_jo2",
65
- "loinumjo2",
66
- "deccocurl",
67
- "num_decision",
68
- "loicodmai",
69
- "loinoudelibcod",
70
- "motionloiorigcod",
71
- "url_ordonnance",
72
- "saisine_par",
73
- "loinumjo3",
74
- "url_jo3",
75
- "url_an",
76
- "url_presart",
77
- "signetalt",
78
- "orgcod",
79
- "doscocurl",
80
- "loiintori",
81
- ];
82
- export const orgFieldsToTrim = [
83
- "orgcod",
84
- "typorgcod",
85
- "orgnom",
86
- "orgliblon",
87
- "orglibaff",
88
- "orgurl",
89
- "orglibcou",
90
- "org_de",
91
- "urltra",
92
- "inttra",
93
- "orgnomcouv",
94
- "senorgcod",
95
- "html_color",
96
- ];
97
- export const oritxtFieldsToTrim = ["oritxtcod", "oritxtlib", "oritxtlibfem"];
98
- export const quaFieldsToTrim = ["quacod", "qualic", "quaabr", "quaabrplu"];
99
- export const rapFieldsToParseInt = ["rapcod", "sesann", "rapnum", "rapnuman"];
100
- export const rapFieldsToTrim = [
101
- "coddenrap",
102
- "blecod",
103
- "raptitcou",
104
- "raptil",
105
- "rapurl",
106
- "url2",
107
- "url3",
108
- "url4",
109
- "url2txt",
110
- "url3txt",
111
- "url4txt",
112
- "prix",
113
- "numerobis",
114
- "rapsoustit",
115
- "rapres",
116
- "forpubcod",
117
- ];
118
- export const raporgFieldsToTrim = ["orgcod"];
119
- export const scrFieldsToTrim = ["scrint", "soslib"];
120
- export const texteFieldsToParseInt = ["texcod", "sesann", "texnum"];
121
- export const texteFieldsToTrim = [
122
- "oritxtcod",
123
- "typtxtcod",
124
- "lecassidt",
125
- "orgcod",
126
- "texurl",
127
- "url2",
128
- "url3",
129
- "url4",
130
- "url2txt",
131
- "url3txt",
132
- "url4txt",
133
- "prix",
134
- "numerobis",
135
- "reserve_comspe",
136
- ];
137
- export const typattFieldsToTrim = ["typattlib"];
138
- export const typlecFieldsToTrim = ["typleccod", "typleclib"];
139
- export const typloiFieldsToTrim = [
140
- "typloicod",
141
- "typloilib",
142
- "groupe",
143
- "typloiden",
144
- "typloigen",
145
- "typloitit",
146
- "typloidenplu",
147
- "typloide",
148
- "typloiabr",
149
- ];
150
- export const typtxtFieldsToTrim = ["typtxtcod", "typtxtlib"];
151
- export const typurlFieldsToTrim = ["libtypurl"];