@tricoteuses/senat 1.1.2 → 1.3.2

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 (155) hide show
  1. package/README.md +53 -15
  2. package/lib/config.d.ts +1 -0
  3. package/lib/config.js +14 -45
  4. package/lib/databases.d.ts +9 -0
  5. package/lib/databases.js +90 -117
  6. package/lib/datasets.js +78 -83
  7. package/lib/index.d.ts +8 -7
  8. package/lib/index.js +42 -523
  9. package/lib/legislatures.json +38 -0
  10. package/lib/loaders.d.ts +64 -0
  11. package/lib/loaders.js +177 -0
  12. package/lib/model/ameli.d.ts +105 -4
  13. package/lib/model/ameli.js +88 -166
  14. package/lib/model/debats.d.ts +0 -4
  15. package/lib/model/debats.js +0 -122
  16. package/lib/model/dosleg.d.ts +227 -29
  17. package/lib/model/dosleg.js +205 -839
  18. package/lib/model/index.d.ts +4 -5
  19. package/lib/model/index.js +12 -47
  20. package/lib/model/questions.d.ts +88 -2
  21. package/lib/model/questions.js +75 -51
  22. package/lib/model/sens.d.ts +524 -2
  23. package/lib/model/sens.js +449 -56
  24. package/lib/model/texte.d.ts +7 -0
  25. package/lib/model/texte.js +251 -0
  26. package/lib/model/util.d.ts +7 -1
  27. package/lib/model/util.js +26 -59
  28. package/lib/raw_types/ameli.d.ts +912 -538
  29. package/lib/raw_types/ameli.js +3 -42
  30. package/lib/raw_types/debats.d.ts +204 -124
  31. package/lib/raw_types/debats.js +3 -21
  32. package/lib/raw_types/dosleg.d.ts +3533 -2024
  33. package/lib/raw_types/dosleg.js +3 -95
  34. package/lib/raw_types/questions.d.ts +404 -220
  35. package/lib/raw_types/questions.js +3 -21
  36. package/lib/raw_types/sens.d.ts +4391 -2706
  37. package/lib/raw_types/sens.js +3 -111
  38. package/lib/raw_types_schemats/ameli.d.ts +541 -0
  39. package/lib/raw_types_schemats/ameli.js +3 -0
  40. package/lib/raw_types_schemats/debats.d.ts +127 -0
  41. package/lib/raw_types_schemats/debats.js +3 -0
  42. package/lib/raw_types_schemats/dosleg.d.ts +2029 -0
  43. package/lib/raw_types_schemats/dosleg.js +3 -0
  44. package/lib/raw_types_schemats/questions.d.ts +233 -0
  45. package/lib/raw_types_schemats/questions.js +3 -0
  46. package/lib/raw_types_schemats/sens.d.ts +2709 -0
  47. package/lib/raw_types_schemats/sens.js +3 -0
  48. package/lib/scripts/convert_data.js +184 -275
  49. package/lib/scripts/datautil.d.ts +5 -0
  50. package/lib/scripts/datautil.js +21 -0
  51. package/lib/scripts/parse_textes.js +49 -0
  52. package/lib/scripts/retrieve_documents.js +255 -0
  53. package/lib/scripts/retrieve_open_data.js +211 -360
  54. package/lib/scripts/retrieve_senateurs_photos.js +144 -257
  55. package/lib/scripts/shared/cli_helpers.d.ts +44 -0
  56. package/lib/scripts/shared/cli_helpers.js +35 -0
  57. package/lib/scripts/shared/util.d.ts +3 -0
  58. package/lib/scripts/shared/util.js +36 -0
  59. package/lib/strings.js +20 -45
  60. package/lib/types/ameli.d.ts +2 -2
  61. package/lib/types/ameli.js +14 -25
  62. package/lib/types/debats.d.ts +2 -2
  63. package/lib/types/debats.js +3 -21
  64. package/lib/types/dosleg.d.ts +3 -3
  65. package/lib/types/dosleg.js +152 -119
  66. package/lib/types/questions.d.ts +2 -2
  67. package/lib/types/questions.js +1 -13
  68. package/lib/types/sens.d.ts +2 -4
  69. package/lib/types/sens.js +1 -16
  70. package/lib/types/sessions.d.ts +42 -0
  71. package/lib/types/sessions.js +46 -0
  72. package/lib/types/texte.d.ts +65 -0
  73. package/lib/types/texte.js +19 -0
  74. package/lib/validators/config.js +47 -111
  75. package/lib/validators/senat.js +1 -5
  76. package/package.json +35 -32
  77. package/lib/aggregates.d.ts +0 -54
  78. package/lib/aggregates.js +0 -1122
  79. package/lib/aggregates.mjs +0 -802
  80. package/lib/aggregates.ts +0 -947
  81. package/lib/config.mjs +0 -16
  82. package/lib/config.ts +0 -26
  83. package/lib/databases.mjs +0 -26
  84. package/lib/databases.ts +0 -32
  85. package/lib/datasets.mjs +0 -78
  86. package/lib/datasets.ts +0 -118
  87. package/lib/fields.d.ts +0 -10
  88. package/lib/fields.js +0 -68
  89. package/lib/fields.mjs +0 -22
  90. package/lib/fields.ts +0 -29
  91. package/lib/index.mjs +0 -7
  92. package/lib/index.ts +0 -63
  93. package/lib/inserters.d.ts +0 -102
  94. package/lib/inserters.js +0 -518
  95. package/lib/inserters.mjs +0 -376
  96. package/lib/inserters.ts +0 -545
  97. package/lib/model/ameli.mjs +0 -57
  98. package/lib/model/ameli.ts +0 -86
  99. package/lib/model/debats.mjs +0 -43
  100. package/lib/model/debats.ts +0 -68
  101. package/lib/model/dosleg.mjs +0 -337
  102. package/lib/model/dosleg.ts +0 -558
  103. package/lib/model/index.mjs +0 -5
  104. package/lib/model/index.ts +0 -11
  105. package/lib/model/questions.mjs +0 -8
  106. package/lib/model/questions.ts +0 -14
  107. package/lib/model/sens.mjs +0 -9
  108. package/lib/model/sens.ts +0 -18
  109. package/lib/model/util.mjs +0 -10
  110. package/lib/model/util.ts +0 -16
  111. package/lib/raw_types/ameli.mjs +0 -2
  112. package/lib/raw_types/ameli.ts +0 -601
  113. package/lib/raw_types/debats.mjs +0 -2
  114. package/lib/raw_types/debats.ts +0 -145
  115. package/lib/raw_types/dosleg.mjs +0 -2
  116. package/lib/raw_types/dosleg.ts +0 -2193
  117. package/lib/raw_types/questions.mjs +0 -2
  118. package/lib/raw_types/questions.ts +0 -249
  119. package/lib/raw_types/sens.mjs +0 -2
  120. package/lib/raw_types/sens.ts +0 -2907
  121. package/lib/scripts/convert_data.mjs +0 -146
  122. package/lib/scripts/convert_data.ts +0 -182
  123. package/lib/scripts/fix_db.js +0 -144
  124. package/lib/scripts/fix_db.mjs +0 -64
  125. package/lib/scripts/fix_db.ts +0 -75
  126. package/lib/scripts/images/transparent_150x192.jpg +0 -0
  127. package/lib/scripts/images/transparent_155x225.jpg +0 -0
  128. package/lib/scripts/retrieve_open_data.mjs +0 -218
  129. package/lib/scripts/retrieve_open_data.ts +0 -258
  130. package/lib/scripts/retrieve_senateurs_photos.mjs +0 -164
  131. package/lib/scripts/retrieve_senateurs_photos.ts +0 -200
  132. package/lib/scripts/retrieve_textes.js +0 -179
  133. package/lib/scripts/retrieve_textes.mjs +0 -77
  134. package/lib/scripts/retrieve_textes.ts +0 -95
  135. package/lib/strings.mjs +0 -18
  136. package/lib/strings.ts +0 -26
  137. package/lib/types/ameli.mjs +0 -13
  138. package/lib/types/ameli.ts +0 -21
  139. package/lib/types/debats.mjs +0 -2
  140. package/lib/types/debats.ts +0 -6
  141. package/lib/types/dosleg.mjs +0 -151
  142. package/lib/types/dosleg.ts +0 -284
  143. package/lib/types/questions.mjs +0 -1
  144. package/lib/types/questions.ts +0 -3
  145. package/lib/types/sens.mjs +0 -23
  146. package/lib/types/sens.ts +0 -36
  147. package/lib/typings/windows-1252.d.js +0 -2
  148. package/lib/typings/windows-1252.d.mjs +0 -2
  149. package/lib/typings/windows-1252.d.ts +0 -11
  150. package/lib/validators/config.mjs +0 -54
  151. package/lib/validators/config.ts +0 -79
  152. package/lib/validators/senat.mjs +0 -24
  153. package/lib/validators/senat.ts +0 -26
  154. /package/lib/scripts/{fix_db.d.ts → parse_textes.d.ts} +0 -0
  155. /package/lib/scripts/{retrieve_textes.d.ts → retrieve_documents.d.ts} +0 -0
@@ -1,43 +0,0 @@
1
- import { debatsFieldsToTrim, lecassdebFieldsToTrim, } from '../types/debats';
2
- import { dbByName } from "../databases";
3
- import { trimFieldsRight } from '../fields';
4
- export const getDebats = async (ids) => {
5
- if (ids.length === 0) {
6
- return [];
7
- }
8
- return (await dbByName.debats.any(`
9
- SELECT *
10
- FROM debats
11
- WHERE datsea IN ($<ids:list>)
12
- `, {
13
- ids,
14
- })).map((debat) => trimFieldsRight(debatsFieldsToTrim, debat));
15
- };
16
- export const getDebatsFromLecassidts = async (ids) => {
17
- if (ids.length === 0) {
18
- return [];
19
- }
20
- return (await dbByName.debats.any(`
21
- SELECT *
22
- FROM debats
23
- WHERE datsea IN (
24
- SELECT datsea
25
- FROM lecassdeb
26
- WHERE lecassidt IN ($<ids:list>)
27
- )
28
- `, {
29
- ids,
30
- })).map((debat) => trimFieldsRight(debatsFieldsToTrim, debat));
31
- };
32
- export const getLecAssDebsFromDatseas = async (ids) => {
33
- if (ids.length === 0) {
34
- return [];
35
- }
36
- return (await dbByName.debats.any(`
37
- SELECT *
38
- FROM lecassdeb
39
- WHERE datsea IN ($<ids:list>)
40
- `, {
41
- ids,
42
- })).map((lecassdeb) => trimFieldsRight(lecassdebFieldsToTrim, lecassdeb));
43
- };
@@ -1,68 +0,0 @@
1
- import {
2
- Debat, debatsFieldsToTrim,
3
- LecAssDeb, lecassdebFieldsToTrim,
4
- } from '../types/debats'
5
- import { dbByName } from "../databases"
6
- import { trimFieldsRight } from '../fields'
7
-
8
- export const getDebats = async (ids: string[]): Promise<Debat[]> => {
9
- if (ids.length === 0) {
10
- return []
11
- }
12
- return (
13
- await dbByName.debats.any(
14
- `
15
- SELECT *
16
- FROM debats
17
- WHERE datsea IN ($<ids:list>)
18
- `,
19
- {
20
- ids,
21
- },
22
- )
23
- ).map((debat: Debat) => trimFieldsRight(debatsFieldsToTrim, debat))
24
- }
25
-
26
- export const getDebatsFromLecassidts = async (
27
- ids: string[],
28
- ): Promise<Debat[]> => {
29
- if (ids.length === 0) {
30
- return []
31
- }
32
- return (
33
- await dbByName.debats.any(
34
- `
35
- SELECT *
36
- FROM debats
37
- WHERE datsea IN (
38
- SELECT datsea
39
- FROM lecassdeb
40
- WHERE lecassidt IN ($<ids:list>)
41
- )
42
- `,
43
- {
44
- ids,
45
- },
46
- )
47
- ).map((debat: Debat) => trimFieldsRight(debatsFieldsToTrim, debat))
48
- }
49
-
50
- export const getLecAssDebsFromDatseas = async (
51
- ids: string[],
52
- ): Promise<LecAssDeb[]> => {
53
- if (ids.length === 0) {
54
- return []
55
- }
56
- return (
57
- await dbByName.debats.any(
58
- `
59
- SELECT *
60
- FROM lecassdeb
61
- WHERE datsea IN ($<ids:list>)
62
- `,
63
- {
64
- ids,
65
- },
66
- )
67
- ).map((lecassdeb: LecAssDeb) => trimFieldsRight(lecassdebFieldsToTrim, lecassdeb))
68
- }
@@ -1,337 +0,0 @@
1
- import { assFieldsToTrim, audFieldsToTrim, auteurFieldsToTrim, dateSeanceFieldsToTrim, deccocFieldsToTrim, denrapFieldsToTrim, docattFieldsToParseInt, docattFieldsToTrim, ecrFieldsToTrim, etaloiFieldsToTrim, lecassFieldsToTrim, lecassrapFieldsToTrim, lectureFieldsToTrim, loiFieldsToTrim, orgFieldsToTrim, oritxtFieldsToTrim, quaFieldsToTrim, rapFieldsToParseInt, rapFieldsToTrim, raporgFieldsToTrim, scrFieldsToTrim, texteFieldsToParseInt, texteFieldsToTrim, typattFieldsToTrim, typlecFieldsToTrim, typloiFieldsToTrim, typtxtFieldsToTrim, typurlFieldsToTrim, } from '../types/dosleg';
2
- import { dbByName } from "../databases";
3
- import { parseIntFields, trimFieldsRight } from '../fields';
4
- export const getAsss = async (ids) => {
5
- if (ids.length === 0) {
6
- return [];
7
- }
8
- return (await dbByName.dosleg.any(`
9
- SELECT *
10
- FROM ass
11
- WHERE codass IN ($<ids:list>)
12
- `, {
13
- ids,
14
- })).map((ass) => trimFieldsRight(assFieldsToTrim, ass));
15
- };
16
- export const getAudsFromLecassidts = async (ids) => {
17
- if (ids.length === 0) {
18
- return [];
19
- }
20
- return (await dbByName.dosleg.any(`
21
- SELECT *
22
- FROM aud
23
- WHERE lecassidt IN ($<ids:list>)
24
- `, {
25
- ids,
26
- })).map((aud) => trimFieldsRight(audFieldsToTrim, aud));
27
- };
28
- export const getAuteurs = async (ids) => {
29
- if (ids.length === 0) {
30
- return [];
31
- }
32
- return (await dbByName.dosleg.any(`
33
- SELECT *
34
- FROM auteur
35
- WHERE autcod IN ($<ids:list>)
36
- `, {
37
- ids,
38
- })).map((auteur) => trimFieldsRight(auteurFieldsToTrim, auteur));
39
- };
40
- export const getDatesSeancesFromLecassidts = async (ids) => {
41
- if (ids.length === 0) {
42
- return [];
43
- }
44
- return (await dbByName.dosleg.any(`
45
- SELECT *
46
- FROM date_seance
47
- WHERE lecidt IN ($<ids:list>)
48
- `, {
49
- ids,
50
- })).map((dateSeance) => trimFieldsRight(dateSeanceFieldsToTrim, dateSeance));
51
- };
52
- export const getDeccocs = async (ids) => {
53
- if (ids.length === 0) {
54
- return [];
55
- }
56
- return (await dbByName.dosleg.any(`
57
- SELECT *
58
- FROM deccoc
59
- WHERE deccoccod IN ($<ids:list>)
60
- `, {
61
- ids,
62
- })).map((deccoc) => trimFieldsRight(deccocFieldsToTrim, deccoc));
63
- };
64
- export const getDenraps = async (ids) => {
65
- if (ids.length === 0) {
66
- return [];
67
- }
68
- return (await dbByName.dosleg.any(`
69
- SELECT *
70
- FROM denrap
71
- WHERE coddenrap IN ($<ids:list>)
72
- `, {
73
- ids,
74
- })).map((denrap) => trimFieldsRight(denrapFieldsToTrim, denrap));
75
- };
76
- export const getDocattsFromRapcods = async (ids) => {
77
- if (ids.length === 0) {
78
- return [];
79
- }
80
- return (await dbByName.dosleg.any(`
81
- SELECT *
82
- FROM docatt
83
- WHERE rapcod IN($<ids:list>)
84
- `, {
85
- ids,
86
- })).map((docatt) => parseIntFields(docattFieldsToParseInt, trimFieldsRight(docattFieldsToTrim, docatt)));
87
- };
88
- export const getEcrsFromRapcods = async (ids) => {
89
- if (ids.length === 0) {
90
- return [];
91
- }
92
- return (await dbByName.dosleg.any(`
93
- SELECT *
94
- FROM ecr
95
- WHERE rapcod IN($<ids:list>)
96
- `, {
97
- ids,
98
- })).map((ecr) => trimFieldsRight(ecrFieldsToTrim, ecr));
99
- };
100
- export const getEcrsFromTexcods = async (ids) => {
101
- if (ids.length === 0) {
102
- return [];
103
- }
104
- return (await dbByName.dosleg.any(`
105
- SELECT *
106
- FROM ecr
107
- WHERE texcod IN($<ids:list>)
108
- `, {
109
- ids,
110
- })).map((ecr) => trimFieldsRight(ecrFieldsToTrim, ecr));
111
- };
112
- export const getEtalois = async (ids) => {
113
- if (ids.length === 0) {
114
- return [];
115
- }
116
- return (await dbByName.dosleg.any(`
117
- SELECT *
118
- FROM etaloi
119
- WHERE etaloicod IN ($<ids:list>)
120
- `, {
121
- ids,
122
- })).map((etaloi) => trimFieldsRight(etaloiFieldsToTrim, etaloi));
123
- };
124
- export const getLecasssFromLecidts = async (ids) => {
125
- if (ids.length === 0) {
126
- return [];
127
- }
128
- return (await dbByName.dosleg.any(`
129
- SELECT *
130
- FROM lecass
131
- WHERE lecidt IN ($<ids:list>)
132
- `, {
133
- ids,
134
- })).map((lecass) => trimFieldsRight(lecassFieldsToTrim, lecass));
135
- };
136
- export const getLecassrapsFromLecassidts = async (ids) => {
137
- if (ids.length === 0) {
138
- return [];
139
- }
140
- return (await dbByName.dosleg.any(`
141
- SELECT *
142
- FROM lecassrap
143
- WHERE lecassidt IN ($<ids:list>)
144
- `, {
145
- ids,
146
- })).map((lecassrap) => trimFieldsRight(lecassrapFieldsToTrim, lecassrap));
147
- };
148
- export const getLecturesFromLoicods = async (ids) => {
149
- if (ids.length === 0) {
150
- return [];
151
- }
152
- return (await dbByName.dosleg.any(`
153
- SELECT *
154
- FROM lecture
155
- WHERE loicod IN ($<ids:list>)
156
- `, {
157
- ids,
158
- })).map((lecture) => trimFieldsRight(lectureFieldsToTrim, lecture));
159
- };
160
- export const getLois = async (ids) => {
161
- if (ids.length === 0) {
162
- return [];
163
- }
164
- return (await dbByName.dosleg.any(`
165
- SELECT *
166
- FROM loi
167
- WHERE loicod IN ($<ids:list>)
168
- `, {
169
- ids,
170
- })).map((loi) => trimFieldsRight(loiFieldsToTrim, loi));
171
- };
172
- export const getAllLois = async () => {
173
- return (await dbByName.dosleg.any(`
174
- SELECT *
175
- FROM loi
176
- `)).map((loi) => trimFieldsRight(loiFieldsToTrim, loi));
177
- };
178
- export const getOrgs = async (ids) => {
179
- if (ids.length === 0) {
180
- return [];
181
- }
182
- return (await dbByName.dosleg.any(`
183
- SELECT *
184
- FROM org
185
- WHERE orgcod IN ($<ids:list>)
186
- `, {
187
- ids,
188
- })).map((org) => trimFieldsRight(orgFieldsToTrim, org));
189
- };
190
- export const getOrgsFromRapcods = async (ids) => {
191
- if (ids.length === 0) {
192
- return [];
193
- }
194
- return (await dbByName.dosleg.any(`
195
- SELECT *
196
- FROM org
197
- WHERE orgcod IN (
198
- SELECT orgcod
199
- FROM raporg
200
- WHERE rapcod IN ($<ids:list>)
201
- )
202
- `, {
203
- ids,
204
- })).map((org) => trimFieldsRight(orgFieldsToTrim, org));
205
- };
206
- export const getRaporgsFromOrgcods = async (ids) => {
207
- if (ids.length === 0) {
208
- return [];
209
- }
210
- return (await dbByName.dosleg.any(`
211
- SELECT *
212
- FROM raporg
213
- WHERE orgcod IN ($<ids:list>)
214
- `, {
215
- ids,
216
- })).map((raporg) => trimFieldsRight(raporgFieldsToTrim, raporg));
217
- };
218
- export const getOritxts = async (ids) => {
219
- if (ids.length === 0) {
220
- return [];
221
- }
222
- return (await dbByName.dosleg.any(`
223
- SELECT *
224
- FROM oritxt
225
- WHERE oritxtcod IN ($<ids:list>)
226
- `, {
227
- ids,
228
- })).map((oritxt) => trimFieldsRight(oritxtFieldsToTrim, oritxt));
229
- };
230
- export const getQuas = async (ids) => {
231
- if (ids.length === 0) {
232
- return [];
233
- }
234
- return (await dbByName.dosleg.any(`
235
- SELECT *
236
- FROM qua
237
- WHERE quacod IN ($<ids:list>)
238
- `, {
239
- ids,
240
- })).map((qua) => trimFieldsRight(quaFieldsToTrim, qua));
241
- };
242
- export const getRaps = async (ids) => {
243
- if (ids.length === 0) {
244
- return [];
245
- }
246
- return (await dbByName.dosleg.any(`
247
- SELECT *
248
- FROM rap
249
- WHERE rapcod IN ($<ids:list>)
250
- `, {
251
- ids,
252
- })).map((rap) => parseIntFields(rapFieldsToParseInt, trimFieldsRight(rapFieldsToTrim, rap)));
253
- };
254
- export const getScrsFromCodes = async (ids) => {
255
- if (ids.length === 0) {
256
- return [];
257
- }
258
- return (await dbByName.dosleg.any(`
259
- SELECT *
260
- FROM scr
261
- WHERE code IN ($<ids:list>)
262
- `, {
263
- ids,
264
- })).map((scr) => trimFieldsRight(scrFieldsToTrim, scr));
265
- };
266
- export const getTextesFromLecassidts = async (ids) => {
267
- if (ids.length === 0) {
268
- return [];
269
- }
270
- return (await dbByName.dosleg.any(`
271
- SELECT *
272
- FROM texte
273
- WHERE lecassidt IN ($<ids:list>)
274
- `, {
275
- ids,
276
- })).map((texte) => parseIntFields(texteFieldsToParseInt, trimFieldsRight(texteFieldsToTrim, texte)));
277
- };
278
- export const getTypatts = async (ids) => {
279
- if (ids.length === 0) {
280
- return [];
281
- }
282
- return (await dbByName.dosleg.any(`
283
- SELECT *
284
- FROM typatt
285
- WHERE typattcod IN ($<ids:list>)
286
- `, {
287
- ids,
288
- })).map((typatt) => trimFieldsRight(typattFieldsToTrim, typatt));
289
- };
290
- export const getTyplecs = async (ids) => {
291
- if (ids.length === 0) {
292
- return [];
293
- }
294
- return (await dbByName.dosleg.any(`
295
- SELECT *
296
- FROM typlec
297
- WHERE typleccod IN ($<ids:list>)
298
- `, {
299
- ids,
300
- })).map((typlec) => trimFieldsRight(typlecFieldsToTrim, typlec));
301
- };
302
- export const getTyplois = async (ids) => {
303
- if (ids.length === 0) {
304
- return [];
305
- }
306
- return (await dbByName.dosleg.any(`
307
- SELECT *
308
- FROM typloi
309
- WHERE typloicod IN ($<ids:list>)
310
- `, {
311
- ids,
312
- })).map((typloi) => trimFieldsRight(typloiFieldsToTrim, typloi));
313
- };
314
- export const getTyptxts = async (ids) => {
315
- if (ids.length === 0) {
316
- return [];
317
- }
318
- return (await dbByName.dosleg.any(`
319
- SELECT *
320
- FROM typtxt
321
- WHERE typtxtcod IN ($<ids:list>)
322
- `, {
323
- ids,
324
- })).map((typtxt) => trimFieldsRight(typtxtFieldsToTrim, typtxt));
325
- };
326
- export const getTypurls = async (ids) => {
327
- if (ids.length === 0) {
328
- return [];
329
- }
330
- return (await dbByName.dosleg.any(`
331
- SELECT *
332
- FROM typurl
333
- WHERE typurl IN ($<ids:list>)
334
- `, {
335
- ids,
336
- })).map((typurl) => trimFieldsRight(typurlFieldsToTrim, typurl));
337
- };