@liminalfunctions/framework 1.0.58 → 1.0.60

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 (102) hide show
  1. package/dist/F_Collection.js.map +1 -1
  2. package/dist/F_Compile.js.map +1 -1
  3. package/dist/code_generation/generate_client_library.js +3 -2
  4. package/dist/code_generation/generate_client_library.js.map +1 -1
  5. package/dist/code_generation/templates/main.mustache +3 -4
  6. package/dist/utils/mongoose_from_zod.d.ts +2 -4
  7. package/package.json +1 -1
  8. package/src/F_Collection.ts +2 -3
  9. package/src/F_Compile.ts +0 -2
  10. package/src/code_generation/generate_client_library.ts +3 -2
  11. package/src/code_generation/templates/main.mustache +1 -1
  12. package/test/tmp/src/{Project.ts → Test_Collection.ts} +46 -34
  13. package/test/tmp/src/index.ts +7 -8
  14. package/test/tmp/src/types/test_collection.ts +9 -0
  15. package/test/tmp/src/types/test_collection_post.ts +9 -0
  16. package/test/tmp/src/types/test_collection_put.ts +9 -0
  17. package/test/tmp/src/types/{institution_query.ts → test_collection_query.ts} +2 -6
  18. package/test/tmp/dist/Brief_News_Category.d.ts +0 -26
  19. package/test/tmp/dist/Brief_News_Category.js +0 -104
  20. package/test/tmp/dist/Brief_News_Category.js.map +0 -1
  21. package/test/tmp/dist/Client.d.ts +0 -30
  22. package/test/tmp/dist/Client.js +0 -116
  23. package/test/tmp/dist/Client.js.map +0 -1
  24. package/test/tmp/dist/Institution.d.ts +0 -28
  25. package/test/tmp/dist/Institution.js +0 -113
  26. package/test/tmp/dist/Institution.js.map +0 -1
  27. package/test/tmp/dist/Project.d.ts +0 -46
  28. package/test/tmp/dist/Project.js +0 -167
  29. package/test/tmp/dist/Project.js.map +0 -1
  30. package/test/tmp/dist/index.d.ts +0 -24
  31. package/test/tmp/dist/index.js +0 -36
  32. package/test/tmp/dist/index.js.map +0 -1
  33. package/test/tmp/dist/types/brief_news_category.d.ts +0 -7
  34. package/test/tmp/dist/types/brief_news_category.js +0 -2
  35. package/test/tmp/dist/types/brief_news_category.js.map +0 -1
  36. package/test/tmp/dist/types/brief_news_category_post.d.ts +0 -7
  37. package/test/tmp/dist/types/brief_news_category_post.js +0 -2
  38. package/test/tmp/dist/types/brief_news_category_post.js.map +0 -1
  39. package/test/tmp/dist/types/brief_news_category_put.d.ts +0 -7
  40. package/test/tmp/dist/types/brief_news_category_put.js +0 -2
  41. package/test/tmp/dist/types/brief_news_category_put.js.map +0 -1
  42. package/test/tmp/dist/types/brief_news_category_query.d.ts +0 -26
  43. package/test/tmp/dist/types/brief_news_category_query.js +0 -2
  44. package/test/tmp/dist/types/brief_news_category_query.js.map +0 -1
  45. package/test/tmp/dist/types/client.d.ts +0 -5
  46. package/test/tmp/dist/types/client.js +0 -2
  47. package/test/tmp/dist/types/client.js.map +0 -1
  48. package/test/tmp/dist/types/client_post.d.ts +0 -5
  49. package/test/tmp/dist/types/client_post.js +0 -2
  50. package/test/tmp/dist/types/client_post.js.map +0 -1
  51. package/test/tmp/dist/types/client_put.d.ts +0 -5
  52. package/test/tmp/dist/types/client_put.js +0 -2
  53. package/test/tmp/dist/types/client_put.js.map +0 -1
  54. package/test/tmp/dist/types/client_query.d.ts +0 -18
  55. package/test/tmp/dist/types/client_query.js +0 -2
  56. package/test/tmp/dist/types/client_query.js.map +0 -1
  57. package/test/tmp/dist/types/institution.d.ts +0 -4
  58. package/test/tmp/dist/types/institution.js +0 -2
  59. package/test/tmp/dist/types/institution.js.map +0 -1
  60. package/test/tmp/dist/types/institution_post.d.ts +0 -4
  61. package/test/tmp/dist/types/institution_post.js +0 -2
  62. package/test/tmp/dist/types/institution_post.js.map +0 -1
  63. package/test/tmp/dist/types/institution_put.d.ts +0 -4
  64. package/test/tmp/dist/types/institution_put.js +0 -2
  65. package/test/tmp/dist/types/institution_put.js.map +0 -1
  66. package/test/tmp/dist/types/institution_query.d.ts +0 -14
  67. package/test/tmp/dist/types/institution_query.js +0 -2
  68. package/test/tmp/dist/types/institution_query.js.map +0 -1
  69. package/test/tmp/dist/types/project.d.ts +0 -11
  70. package/test/tmp/dist/types/project.js +0 -2
  71. package/test/tmp/dist/types/project.js.map +0 -1
  72. package/test/tmp/dist/types/project_post.d.ts +0 -11
  73. package/test/tmp/dist/types/project_post.js +0 -2
  74. package/test/tmp/dist/types/project_post.js.map +0 -1
  75. package/test/tmp/dist/types/project_put.d.ts +0 -11
  76. package/test/tmp/dist/types/project_put.js +0 -2
  77. package/test/tmp/dist/types/project_put.js.map +0 -1
  78. package/test/tmp/dist/types/project_query.d.ts +0 -27
  79. package/test/tmp/dist/types/project_query.js +0 -2
  80. package/test/tmp/dist/types/project_query.js.map +0 -1
  81. package/test/tmp/dist/utils/utils.d.ts +0 -11
  82. package/test/tmp/dist/utils/utils.js +0 -16
  83. package/test/tmp/dist/utils/utils.js.map +0 -1
  84. package/test/tmp/package-lock.json +0 -573
  85. package/test/tmp/src/Brief_News_Category.ts +0 -120
  86. package/test/tmp/src/Client.ts +0 -134
  87. package/test/tmp/src/Institution.ts +0 -130
  88. package/test/tmp/src/types/brief_news_category.ts +0 -7
  89. package/test/tmp/src/types/brief_news_category_post.ts +0 -7
  90. package/test/tmp/src/types/brief_news_category_put.ts +0 -7
  91. package/test/tmp/src/types/brief_news_category_query.ts +0 -26
  92. package/test/tmp/src/types/client.ts +0 -5
  93. package/test/tmp/src/types/client_post.ts +0 -5
  94. package/test/tmp/src/types/client_put.ts +0 -5
  95. package/test/tmp/src/types/client_query.ts +0 -18
  96. package/test/tmp/src/types/institution.ts +0 -4
  97. package/test/tmp/src/types/institution_post.ts +0 -4
  98. package/test/tmp/src/types/institution_put.ts +0 -4
  99. package/test/tmp/src/types/project.ts +0 -11
  100. package/test/tmp/src/types/project_post.ts +0 -11
  101. package/test/tmp/src/types/project_put.ts +0 -11
  102. package/test/tmp/src/types/project_query.ts +0 -27
@@ -1,573 +0,0 @@
1
- {
2
- "name": "default-service-client-library",
3
- "version": "1.0.0",
4
- "lockfileVersion": 3,
5
- "requires": true,
6
- "packages": {
7
- "": {
8
- "name": "default-service-client-library",
9
- "version": "1.0.0",
10
- "license": "ISC",
11
- "dependencies": {
12
- "ky": "^1.9.0"
13
- },
14
- "devDependencies": {
15
- "tsx": "^4.19.3"
16
- }
17
- },
18
- "node_modules/@esbuild/aix-ppc64": {
19
- "version": "0.27.1",
20
- "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.27.1.tgz",
21
- "integrity": "sha512-HHB50pdsBX6k47S4u5g/CaLjqS3qwaOVE5ILsq64jyzgMhLuCuZ8rGzM9yhsAjfjkbgUPMzZEPa7DAp7yz6vuA==",
22
- "cpu": [
23
- "ppc64"
24
- ],
25
- "dev": true,
26
- "license": "MIT",
27
- "optional": true,
28
- "os": [
29
- "aix"
30
- ],
31
- "engines": {
32
- "node": ">=18"
33
- }
34
- },
35
- "node_modules/@esbuild/android-arm": {
36
- "version": "0.27.1",
37
- "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.27.1.tgz",
38
- "integrity": "sha512-kFqa6/UcaTbGm/NncN9kzVOODjhZW8e+FRdSeypWe6j33gzclHtwlANs26JrupOntlcWmB0u8+8HZo8s7thHvg==",
39
- "cpu": [
40
- "arm"
41
- ],
42
- "dev": true,
43
- "license": "MIT",
44
- "optional": true,
45
- "os": [
46
- "android"
47
- ],
48
- "engines": {
49
- "node": ">=18"
50
- }
51
- },
52
- "node_modules/@esbuild/android-arm64": {
53
- "version": "0.27.1",
54
- "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.27.1.tgz",
55
- "integrity": "sha512-45fuKmAJpxnQWixOGCrS+ro4Uvb4Re9+UTieUY2f8AEc+t7d4AaZ6eUJ3Hva7dtrxAAWHtlEFsXFMAgNnGU9uQ==",
56
- "cpu": [
57
- "arm64"
58
- ],
59
- "dev": true,
60
- "license": "MIT",
61
- "optional": true,
62
- "os": [
63
- "android"
64
- ],
65
- "engines": {
66
- "node": ">=18"
67
- }
68
- },
69
- "node_modules/@esbuild/android-x64": {
70
- "version": "0.27.1",
71
- "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.27.1.tgz",
72
- "integrity": "sha512-LBEpOz0BsgMEeHgenf5aqmn/lLNTFXVfoWMUox8CtWWYK9X4jmQzWjoGoNb8lmAYml/tQ/Ysvm8q7szu7BoxRQ==",
73
- "cpu": [
74
- "x64"
75
- ],
76
- "dev": true,
77
- "license": "MIT",
78
- "optional": true,
79
- "os": [
80
- "android"
81
- ],
82
- "engines": {
83
- "node": ">=18"
84
- }
85
- },
86
- "node_modules/@esbuild/darwin-arm64": {
87
- "version": "0.27.1",
88
- "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.27.1.tgz",
89
- "integrity": "sha512-veg7fL8eMSCVKL7IW4pxb54QERtedFDfY/ASrumK/SbFsXnRazxY4YykN/THYqFnFwJ0aVjiUrVG2PwcdAEqQQ==",
90
- "cpu": [
91
- "arm64"
92
- ],
93
- "dev": true,
94
- "license": "MIT",
95
- "optional": true,
96
- "os": [
97
- "darwin"
98
- ],
99
- "engines": {
100
- "node": ">=18"
101
- }
102
- },
103
- "node_modules/@esbuild/darwin-x64": {
104
- "version": "0.27.1",
105
- "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.27.1.tgz",
106
- "integrity": "sha512-+3ELd+nTzhfWb07Vol7EZ+5PTbJ/u74nC6iv4/lwIU99Ip5uuY6QoIf0Hn4m2HoV0qcnRivN3KSqc+FyCHjoVQ==",
107
- "cpu": [
108
- "x64"
109
- ],
110
- "dev": true,
111
- "license": "MIT",
112
- "optional": true,
113
- "os": [
114
- "darwin"
115
- ],
116
- "engines": {
117
- "node": ">=18"
118
- }
119
- },
120
- "node_modules/@esbuild/freebsd-arm64": {
121
- "version": "0.27.1",
122
- "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.27.1.tgz",
123
- "integrity": "sha512-/8Rfgns4XD9XOSXlzUDepG8PX+AVWHliYlUkFI3K3GB6tqbdjYqdhcb4BKRd7C0BhZSoaCxhv8kTcBrcZWP+xg==",
124
- "cpu": [
125
- "arm64"
126
- ],
127
- "dev": true,
128
- "license": "MIT",
129
- "optional": true,
130
- "os": [
131
- "freebsd"
132
- ],
133
- "engines": {
134
- "node": ">=18"
135
- }
136
- },
137
- "node_modules/@esbuild/freebsd-x64": {
138
- "version": "0.27.1",
139
- "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.27.1.tgz",
140
- "integrity": "sha512-GITpD8dK9C+r+5yRT/UKVT36h/DQLOHdwGVwwoHidlnA168oD3uxA878XloXebK4Ul3gDBBIvEdL7go9gCUFzQ==",
141
- "cpu": [
142
- "x64"
143
- ],
144
- "dev": true,
145
- "license": "MIT",
146
- "optional": true,
147
- "os": [
148
- "freebsd"
149
- ],
150
- "engines": {
151
- "node": ">=18"
152
- }
153
- },
154
- "node_modules/@esbuild/linux-arm": {
155
- "version": "0.27.1",
156
- "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.27.1.tgz",
157
- "integrity": "sha512-ieMID0JRZY/ZeCrsFQ3Y3NlHNCqIhTprJfDgSB3/lv5jJZ8FX3hqPyXWhe+gvS5ARMBJ242PM+VNz/ctNj//eA==",
158
- "cpu": [
159
- "arm"
160
- ],
161
- "dev": true,
162
- "license": "MIT",
163
- "optional": true,
164
- "os": [
165
- "linux"
166
- ],
167
- "engines": {
168
- "node": ">=18"
169
- }
170
- },
171
- "node_modules/@esbuild/linux-arm64": {
172
- "version": "0.27.1",
173
- "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.27.1.tgz",
174
- "integrity": "sha512-W9//kCrh/6in9rWIBdKaMtuTTzNj6jSeG/haWBADqLLa9P8O5YSRDzgD5y9QBok4AYlzS6ARHifAb75V6G670Q==",
175
- "cpu": [
176
- "arm64"
177
- ],
178
- "dev": true,
179
- "license": "MIT",
180
- "optional": true,
181
- "os": [
182
- "linux"
183
- ],
184
- "engines": {
185
- "node": ">=18"
186
- }
187
- },
188
- "node_modules/@esbuild/linux-ia32": {
189
- "version": "0.27.1",
190
- "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.27.1.tgz",
191
- "integrity": "sha512-VIUV4z8GD8rtSVMfAj1aXFahsi/+tcoXXNYmXgzISL+KB381vbSTNdeZHHHIYqFyXcoEhu9n5cT+05tRv13rlw==",
192
- "cpu": [
193
- "ia32"
194
- ],
195
- "dev": true,
196
- "license": "MIT",
197
- "optional": true,
198
- "os": [
199
- "linux"
200
- ],
201
- "engines": {
202
- "node": ">=18"
203
- }
204
- },
205
- "node_modules/@esbuild/linux-loong64": {
206
- "version": "0.27.1",
207
- "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.27.1.tgz",
208
- "integrity": "sha512-l4rfiiJRN7sTNI//ff65zJ9z8U+k6zcCg0LALU5iEWzY+a1mVZ8iWC1k5EsNKThZ7XCQ6YWtsZ8EWYm7r1UEsg==",
209
- "cpu": [
210
- "loong64"
211
- ],
212
- "dev": true,
213
- "license": "MIT",
214
- "optional": true,
215
- "os": [
216
- "linux"
217
- ],
218
- "engines": {
219
- "node": ">=18"
220
- }
221
- },
222
- "node_modules/@esbuild/linux-mips64el": {
223
- "version": "0.27.1",
224
- "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.27.1.tgz",
225
- "integrity": "sha512-U0bEuAOLvO/DWFdygTHWY8C067FXz+UbzKgxYhXC0fDieFa0kDIra1FAhsAARRJbvEyso8aAqvPdNxzWuStBnA==",
226
- "cpu": [
227
- "mips64el"
228
- ],
229
- "dev": true,
230
- "license": "MIT",
231
- "optional": true,
232
- "os": [
233
- "linux"
234
- ],
235
- "engines": {
236
- "node": ">=18"
237
- }
238
- },
239
- "node_modules/@esbuild/linux-ppc64": {
240
- "version": "0.27.1",
241
- "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.27.1.tgz",
242
- "integrity": "sha512-NzdQ/Xwu6vPSf/GkdmRNsOfIeSGnh7muundsWItmBsVpMoNPVpM61qNzAVY3pZ1glzzAxLR40UyYM23eaDDbYQ==",
243
- "cpu": [
244
- "ppc64"
245
- ],
246
- "dev": true,
247
- "license": "MIT",
248
- "optional": true,
249
- "os": [
250
- "linux"
251
- ],
252
- "engines": {
253
- "node": ">=18"
254
- }
255
- },
256
- "node_modules/@esbuild/linux-riscv64": {
257
- "version": "0.27.1",
258
- "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.27.1.tgz",
259
- "integrity": "sha512-7zlw8p3IApcsN7mFw0O1Z1PyEk6PlKMu18roImfl3iQHTnr/yAfYv6s4hXPidbDoI2Q0pW+5xeoM4eTCC0UdrQ==",
260
- "cpu": [
261
- "riscv64"
262
- ],
263
- "dev": true,
264
- "license": "MIT",
265
- "optional": true,
266
- "os": [
267
- "linux"
268
- ],
269
- "engines": {
270
- "node": ">=18"
271
- }
272
- },
273
- "node_modules/@esbuild/linux-s390x": {
274
- "version": "0.27.1",
275
- "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.27.1.tgz",
276
- "integrity": "sha512-cGj5wli+G+nkVQdZo3+7FDKC25Uh4ZVwOAK6A06Hsvgr8WqBBuOy/1s+PUEd/6Je+vjfm6stX0kmib5b/O2Ykw==",
277
- "cpu": [
278
- "s390x"
279
- ],
280
- "dev": true,
281
- "license": "MIT",
282
- "optional": true,
283
- "os": [
284
- "linux"
285
- ],
286
- "engines": {
287
- "node": ">=18"
288
- }
289
- },
290
- "node_modules/@esbuild/linux-x64": {
291
- "version": "0.27.1",
292
- "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.27.1.tgz",
293
- "integrity": "sha512-z3H/HYI9MM0HTv3hQZ81f+AKb+yEoCRlUby1F80vbQ5XdzEMyY/9iNlAmhqiBKw4MJXwfgsh7ERGEOhrM1niMA==",
294
- "cpu": [
295
- "x64"
296
- ],
297
- "dev": true,
298
- "license": "MIT",
299
- "optional": true,
300
- "os": [
301
- "linux"
302
- ],
303
- "engines": {
304
- "node": ">=18"
305
- }
306
- },
307
- "node_modules/@esbuild/netbsd-arm64": {
308
- "version": "0.27.1",
309
- "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.27.1.tgz",
310
- "integrity": "sha512-wzC24DxAvk8Em01YmVXyjl96Mr+ecTPyOuADAvjGg+fyBpGmxmcr2E5ttf7Im8D0sXZihpxzO1isus8MdjMCXQ==",
311
- "cpu": [
312
- "arm64"
313
- ],
314
- "dev": true,
315
- "license": "MIT",
316
- "optional": true,
317
- "os": [
318
- "netbsd"
319
- ],
320
- "engines": {
321
- "node": ">=18"
322
- }
323
- },
324
- "node_modules/@esbuild/netbsd-x64": {
325
- "version": "0.27.1",
326
- "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.27.1.tgz",
327
- "integrity": "sha512-1YQ8ybGi2yIXswu6eNzJsrYIGFpnlzEWRl6iR5gMgmsrR0FcNoV1m9k9sc3PuP5rUBLshOZylc9nqSgymI+TYg==",
328
- "cpu": [
329
- "x64"
330
- ],
331
- "dev": true,
332
- "license": "MIT",
333
- "optional": true,
334
- "os": [
335
- "netbsd"
336
- ],
337
- "engines": {
338
- "node": ">=18"
339
- }
340
- },
341
- "node_modules/@esbuild/openbsd-arm64": {
342
- "version": "0.27.1",
343
- "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.27.1.tgz",
344
- "integrity": "sha512-5Z+DzLCrq5wmU7RDaMDe2DVXMRm2tTDvX2KU14JJVBN2CT/qov7XVix85QoJqHltpvAOZUAc3ndU56HSMWrv8g==",
345
- "cpu": [
346
- "arm64"
347
- ],
348
- "dev": true,
349
- "license": "MIT",
350
- "optional": true,
351
- "os": [
352
- "openbsd"
353
- ],
354
- "engines": {
355
- "node": ">=18"
356
- }
357
- },
358
- "node_modules/@esbuild/openbsd-x64": {
359
- "version": "0.27.1",
360
- "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.27.1.tgz",
361
- "integrity": "sha512-Q73ENzIdPF5jap4wqLtsfh8YbYSZ8Q0wnxplOlZUOyZy7B4ZKW8DXGWgTCZmF8VWD7Tciwv5F4NsRf6vYlZtqg==",
362
- "cpu": [
363
- "x64"
364
- ],
365
- "dev": true,
366
- "license": "MIT",
367
- "optional": true,
368
- "os": [
369
- "openbsd"
370
- ],
371
- "engines": {
372
- "node": ">=18"
373
- }
374
- },
375
- "node_modules/@esbuild/openharmony-arm64": {
376
- "version": "0.27.1",
377
- "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.27.1.tgz",
378
- "integrity": "sha512-ajbHrGM/XiK+sXM0JzEbJAen+0E+JMQZ2l4RR4VFwvV9JEERx+oxtgkpoKv1SevhjavK2z2ReHk32pjzktWbGg==",
379
- "cpu": [
380
- "arm64"
381
- ],
382
- "dev": true,
383
- "license": "MIT",
384
- "optional": true,
385
- "os": [
386
- "openharmony"
387
- ],
388
- "engines": {
389
- "node": ">=18"
390
- }
391
- },
392
- "node_modules/@esbuild/sunos-x64": {
393
- "version": "0.27.1",
394
- "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.27.1.tgz",
395
- "integrity": "sha512-IPUW+y4VIjuDVn+OMzHc5FV4GubIwPnsz6ubkvN8cuhEqH81NovB53IUlrlBkPMEPxvNnf79MGBoz8rZ2iW8HA==",
396
- "cpu": [
397
- "x64"
398
- ],
399
- "dev": true,
400
- "license": "MIT",
401
- "optional": true,
402
- "os": [
403
- "sunos"
404
- ],
405
- "engines": {
406
- "node": ">=18"
407
- }
408
- },
409
- "node_modules/@esbuild/win32-arm64": {
410
- "version": "0.27.1",
411
- "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.27.1.tgz",
412
- "integrity": "sha512-RIVRWiljWA6CdVu8zkWcRmGP7iRRIIwvhDKem8UMBjPql2TXM5PkDVvvrzMtj1V+WFPB4K7zkIGM7VzRtFkjdg==",
413
- "cpu": [
414
- "arm64"
415
- ],
416
- "dev": true,
417
- "license": "MIT",
418
- "optional": true,
419
- "os": [
420
- "win32"
421
- ],
422
- "engines": {
423
- "node": ">=18"
424
- }
425
- },
426
- "node_modules/@esbuild/win32-ia32": {
427
- "version": "0.27.1",
428
- "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.27.1.tgz",
429
- "integrity": "sha512-2BR5M8CPbptC1AK5JbJT1fWrHLvejwZidKx3UMSF0ecHMa+smhi16drIrCEggkgviBwLYd5nwrFLSl5Kho96RQ==",
430
- "cpu": [
431
- "ia32"
432
- ],
433
- "dev": true,
434
- "license": "MIT",
435
- "optional": true,
436
- "os": [
437
- "win32"
438
- ],
439
- "engines": {
440
- "node": ">=18"
441
- }
442
- },
443
- "node_modules/@esbuild/win32-x64": {
444
- "version": "0.27.1",
445
- "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.27.1.tgz",
446
- "integrity": "sha512-d5X6RMYv6taIymSk8JBP+nxv8DQAMY6A51GPgusqLdK9wBz5wWIXy1KjTck6HnjE9hqJzJRdk+1p/t5soSbCtw==",
447
- "cpu": [
448
- "x64"
449
- ],
450
- "dev": true,
451
- "license": "MIT",
452
- "optional": true,
453
- "os": [
454
- "win32"
455
- ],
456
- "engines": {
457
- "node": ">=18"
458
- }
459
- },
460
- "node_modules/esbuild": {
461
- "version": "0.27.1",
462
- "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.27.1.tgz",
463
- "integrity": "sha512-yY35KZckJJuVVPXpvjgxiCuVEJT67F6zDeVTv4rizyPrfGBUpZQsvmxnN+C371c2esD/hNMjj4tpBhuueLN7aA==",
464
- "dev": true,
465
- "hasInstallScript": true,
466
- "license": "MIT",
467
- "bin": {
468
- "esbuild": "bin/esbuild"
469
- },
470
- "engines": {
471
- "node": ">=18"
472
- },
473
- "optionalDependencies": {
474
- "@esbuild/aix-ppc64": "0.27.1",
475
- "@esbuild/android-arm": "0.27.1",
476
- "@esbuild/android-arm64": "0.27.1",
477
- "@esbuild/android-x64": "0.27.1",
478
- "@esbuild/darwin-arm64": "0.27.1",
479
- "@esbuild/darwin-x64": "0.27.1",
480
- "@esbuild/freebsd-arm64": "0.27.1",
481
- "@esbuild/freebsd-x64": "0.27.1",
482
- "@esbuild/linux-arm": "0.27.1",
483
- "@esbuild/linux-arm64": "0.27.1",
484
- "@esbuild/linux-ia32": "0.27.1",
485
- "@esbuild/linux-loong64": "0.27.1",
486
- "@esbuild/linux-mips64el": "0.27.1",
487
- "@esbuild/linux-ppc64": "0.27.1",
488
- "@esbuild/linux-riscv64": "0.27.1",
489
- "@esbuild/linux-s390x": "0.27.1",
490
- "@esbuild/linux-x64": "0.27.1",
491
- "@esbuild/netbsd-arm64": "0.27.1",
492
- "@esbuild/netbsd-x64": "0.27.1",
493
- "@esbuild/openbsd-arm64": "0.27.1",
494
- "@esbuild/openbsd-x64": "0.27.1",
495
- "@esbuild/openharmony-arm64": "0.27.1",
496
- "@esbuild/sunos-x64": "0.27.1",
497
- "@esbuild/win32-arm64": "0.27.1",
498
- "@esbuild/win32-ia32": "0.27.1",
499
- "@esbuild/win32-x64": "0.27.1"
500
- }
501
- },
502
- "node_modules/fsevents": {
503
- "version": "2.3.3",
504
- "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
505
- "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
506
- "dev": true,
507
- "hasInstallScript": true,
508
- "license": "MIT",
509
- "optional": true,
510
- "os": [
511
- "darwin"
512
- ],
513
- "engines": {
514
- "node": "^8.16.0 || ^10.6.0 || >=11.0.0"
515
- }
516
- },
517
- "node_modules/get-tsconfig": {
518
- "version": "4.13.0",
519
- "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.13.0.tgz",
520
- "integrity": "sha512-1VKTZJCwBrvbd+Wn3AOgQP/2Av+TfTCOlE4AcRJE72W1ksZXbAx8PPBR9RzgTeSPzlPMHrbANMH3LbltH73wxQ==",
521
- "dev": true,
522
- "license": "MIT",
523
- "dependencies": {
524
- "resolve-pkg-maps": "^1.0.0"
525
- },
526
- "funding": {
527
- "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1"
528
- }
529
- },
530
- "node_modules/ky": {
531
- "version": "1.14.1",
532
- "resolved": "https://registry.npmjs.org/ky/-/ky-1.14.1.tgz",
533
- "integrity": "sha512-hYje4L9JCmpEQBtudo+v52X5X8tgWXUYyPcxKSuxQNboqufecl9VMWjGiucAFH060AwPXHZuH+WB2rrqfkmafw==",
534
- "license": "MIT",
535
- "engines": {
536
- "node": ">=18"
537
- },
538
- "funding": {
539
- "url": "https://github.com/sindresorhus/ky?sponsor=1"
540
- }
541
- },
542
- "node_modules/resolve-pkg-maps": {
543
- "version": "1.0.0",
544
- "resolved": "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz",
545
- "integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==",
546
- "dev": true,
547
- "license": "MIT",
548
- "funding": {
549
- "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1"
550
- }
551
- },
552
- "node_modules/tsx": {
553
- "version": "4.21.0",
554
- "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.21.0.tgz",
555
- "integrity": "sha512-5C1sg4USs1lfG0GFb2RLXsdpXqBSEhAaA/0kPL01wxzpMqLILNxIxIOKiILz+cdg/pLnOUxFYOR5yhHU666wbw==",
556
- "dev": true,
557
- "license": "MIT",
558
- "dependencies": {
559
- "esbuild": "~0.27.0",
560
- "get-tsconfig": "^4.7.5"
561
- },
562
- "bin": {
563
- "tsx": "dist/cli.mjs"
564
- },
565
- "engines": {
566
- "node": ">=18.0.0"
567
- },
568
- "optionalDependencies": {
569
- "fsevents": "~2.3.3"
570
- }
571
- }
572
- }
573
- }
@@ -1,120 +0,0 @@
1
- import ky from "ky";
2
- import { encode_search_params, Response, Response_Multiple } from "./utils/utils.js";
3
-
4
-
5
- import { brief_news_category } from "./types/brief_news_category.js";
6
- import { brief_news_category_query } from "./types/brief_news_category_query.js";
7
- import { brief_news_category_put } from "./types/brief_news_category_put.js";
8
- import { brief_news_category_post } from "./types/brief_news_category_post.js";
9
-
10
- export class Collection_Brief_News_Category {
11
- path: string[]
12
- get_auth: () => Promise<any>
13
- collection_id: string
14
- collection_name_plural: string
15
-
16
- constructor(path: string[], get_auth: () => Promise<any>) {
17
- this.path = path;
18
- this.get_auth = get_auth;
19
- this.collection_id = "brief_news_category";
20
- this.collection_name_plural = "brief_news_categories"
21
- }
22
-
23
-
24
- async query(query: brief_news_category_query): Promise<brief_news_category[]>{
25
- try {
26
- let result = await ky.get(this.path.join('/'), {
27
- headers: {
28
- authorization: await this.get_auth()
29
- },
30
- searchParams: encode_search_params(query)
31
- }).json() as Response_Multiple<brief_news_category>;
32
- return result.data;
33
- } catch(err){
34
- return Promise.reject(err)
35
- }
36
- }
37
-
38
- async post(document: brief_news_category_post): Promise<brief_news_category>{
39
- try {
40
- let result = await ky.post(this.path.join('/'), {
41
- headers: {
42
- authorization: await this.get_auth()
43
- },
44
- json: document
45
- }).json() as Response<brief_news_category>;
46
- return result.data;
47
- } catch(err){
48
- return Promise.reject(err)
49
- }
50
- }
51
-
52
- document(document_id: string) {
53
- let path = this.path;
54
- let get_auth = this.get_auth;
55
- let collection_id = this.collection_id;
56
- let collection_name_plural = this.collection_name_plural;
57
- return new Document(path, collection_id, document_id, collection_name_plural, get_auth);
58
- }
59
- }
60
-
61
-
62
-
63
- class Document {
64
- path: string[];
65
- collection_id: string;
66
- document_id: string;
67
- collection_name_plural: string;
68
- get_auth: () => Promise<any>;
69
-
70
- constructor(path: string[], collection_id: string, document_id: string, collection_name_plural: string, get_auth: () => Promise<any>) {
71
- this.path = path;
72
- this.collection_id = collection_id;
73
- this.document_id = document_id;
74
- this.collection_name_plural = collection_name_plural;
75
- this.get_auth = get_auth;
76
- }
77
-
78
- async get(): Promise<brief_news_category>{
79
- try {
80
- let result = await ky.get([...this.path, this.document_id].join('/'), {
81
- headers: {
82
- authorization: await this.get_auth()
83
- },
84
- }).json() as Response<brief_news_category>;
85
- return result.data;
86
- } catch(err){
87
- return Promise.reject(err)
88
- }
89
- }
90
-
91
- async put(update: brief_news_category_put): Promise<brief_news_category>{
92
- try {
93
- let result = await ky.put([...this.path, this.document_id].join('/'), {
94
- headers: {
95
- authorization: await this.get_auth()
96
- },
97
- json: update
98
- }).json() as Response<brief_news_category>;
99
- return result.data;
100
- } catch(err){
101
- return Promise.reject(err)
102
- }
103
- }
104
-
105
- async remove(): Promise<brief_news_category>{
106
- try {
107
- let result = await ky.delete([...this.path, this.document_id].join('/'), {
108
- headers: {
109
- authorization: await this.get_auth()
110
- },
111
- }).json() as Response<brief_news_category>;
112
- return result.data;
113
- } catch(err){
114
- return Promise.reject(err)
115
- }
116
- }
117
-
118
-
119
- }
120
-