@clairejs/server 3.10.7 → 3.10.8

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 (70) hide show
  1. package/.prettierrc +8 -8
  2. package/README.md +742 -738
  3. package/dist/common/FileOperation.d.ts +5 -5
  4. package/dist/common/ServerModelMetadata.d.ts +10 -10
  5. package/dist/common/auth/AbstractPrincipalResolver.d.ts +4 -4
  6. package/dist/common/auth/IPrincipal.d.ts +4 -4
  7. package/dist/common/constants.d.ts +1 -1
  8. package/dist/common/request/EndpointMetadata.d.ts +40 -40
  9. package/dist/common/request/HttpData.d.ts +1 -1
  10. package/dist/common/request/HttpEndpoint.d.ts +8 -8
  11. package/dist/common/request/JobData.d.ts +1 -1
  12. package/dist/common/request/MountedEndpointInfo.d.ts +6 -6
  13. package/dist/common/request/RequestOptions.d.ts +6 -6
  14. package/dist/common/request/SocketData.d.ts +1 -1
  15. package/dist/common/request/types.d.ts +1 -1
  16. package/dist/http/auth/AbstractHttpAuthorizationProvider.d.ts +9 -9
  17. package/dist/http/auth/AbstractRbacAuthProvider.d.ts +18 -18
  18. package/dist/http/auth/RedisRbacAuthProvider.d.ts +24 -24
  19. package/dist/http/auth/SocketRbacAuthProvider.d.ts +25 -25
  20. package/dist/http/auth/rbac.d.ts +34 -34
  21. package/dist/http/common/HttpRequest.d.ts +37 -37
  22. package/dist/http/common/HttpResponse.d.ts +21 -21
  23. package/dist/http/controller/AbstractHttpController.d.ts +9 -9
  24. package/dist/http/controller/AbstractHttpMiddleware.d.ts +10 -10
  25. package/dist/http/controller/AbstractHttpRequestHandler.d.ts +16 -16
  26. package/dist/http/controller/ControllerMetadata.d.ts +6 -6
  27. package/dist/http/controller/CrudHttpController.d.ts +41 -41
  28. package/dist/http/controller/DefaultHttpRequestHandler.d.ts +21 -21
  29. package/dist/http/decorators.d.ts +35 -35
  30. package/dist/http/file-upload/AbstractFileUploadHandler.d.ts +6 -6
  31. package/dist/http/file-upload/FileUploadHandler.d.ts +10 -10
  32. package/dist/http/file-upload/types.d.ts +3 -3
  33. package/dist/http/repository/AbstractRepository.d.ts +10 -10
  34. package/dist/http/repository/DtoRepository.d.ts +58 -58
  35. package/dist/http/repository/ICrudRepository.d.ts +27 -27
  36. package/dist/http/repository/ModelRepository.d.ts +37 -37
  37. package/dist/http/security/AbstractAccessCondition.d.ts +7 -7
  38. package/dist/http/security/access-conditions/DtoFieldValidation.d.ts +4 -4
  39. package/dist/http/security/access-conditions/FilterModelFieldAccessCondition.d.ts +4 -4
  40. package/dist/http/security/access-conditions/MaximumQueryLimit.d.ts +8 -8
  41. package/dist/index.d.ts +56 -56
  42. package/dist/index.js +1 -1
  43. package/dist/job/AbstractJobController.d.ts +4 -4
  44. package/dist/job/AbstractJobRepository.d.ts +17 -17
  45. package/dist/job/AbstractJobScheduler.d.ts +38 -38
  46. package/dist/job/AwsJobScheduler.d.ts +48 -48
  47. package/dist/job/LocalJobScheduler.d.ts +88 -88
  48. package/dist/job/decorators.d.ts +5 -5
  49. package/dist/job/interfaces.d.ts +50 -50
  50. package/dist/logging/FileLogMedium.d.ts +13 -13
  51. package/dist/service/AbstractCacheService.d.ts +22 -22
  52. package/dist/service/AbstractFileService.d.ts +11 -11
  53. package/dist/service/AbstractService.d.ts +7 -7
  54. package/dist/socket/AbstractServerSocket.d.ts +18 -18
  55. package/dist/socket/AbstractServerSocketManager.d.ts +46 -46
  56. package/dist/socket/AbstractSocketConnectionHandler.d.ts +6 -6
  57. package/dist/socket/AbstractSocketController.d.ts +14 -14
  58. package/dist/socket/AwsSocketManager.d.ts +30 -30
  59. package/dist/socket/IServerSocket.d.ts +16 -16
  60. package/dist/socket/LocalSocketManager.d.ts +47 -47
  61. package/dist/system/ClaireServer.d.ts +13 -13
  62. package/dist/system/ExpressWrapper.d.ts +17 -17
  63. package/dist/system/LambdaWrapper.d.ts +22 -21
  64. package/dist/system/ServerGlobalStore.d.ts +8 -8
  65. package/dist/system/errors.d.ts +14 -14
  66. package/dist/system/lamba-request-mapper.d.ts +2 -2
  67. package/dist/system/locale/LocaleEntry.d.ts +3 -3
  68. package/dist/system/locale/LocaleTranslation.d.ts +6 -6
  69. package/dist/system/locale/decorators.d.ts +2 -2
  70. package/package.json +61 -61
package/README.md CHANGED
@@ -1,738 +1,742 @@
1
- ## Change Log
2
-
3
- #### 3.10.7
4
-
5
- - add random to order option in model repository
6
- - socket_read -> disable_write, socket_write -> disable_read
7
-
8
- #### 3.10.5
9
-
10
- - AbstractJobScheduler run job with spread params
11
- - use setTimeout for local scheduler at timestamp
12
- - fix AwsJobScheduler cron expression
13
- - breaking change update to AbstractFileService
14
-
15
- #### 3.9.2
16
-
17
- - moving and using crud dto factory from claire core
18
- - add expire param to AbstractCacheService set
19
-
20
- #### 3.9.0
21
-
22
- - fix AbstractHttpMiddleware to accept response as second param and return boolean as result
23
-
24
- #### 3.8.8
25
-
26
- - update core package, reduce db calls in ModelRepository
27
- - allow nested update HasMany / HasOne field in ModelRepository
28
-
29
- #### 3.8.6
30
-
31
- - fix auto fill of post/put default value (no more auto fill, because of access condition check)
32
- - fix getMany projection in ModelRepository
33
- - fix hasMany fields in CRUD projection
34
-
35
- #### 3.8.3
36
-
37
- - RedisRbacAuthProvider service id resolver
38
-
39
- #### 3.8.1
40
-
41
- - fix @CurrentUser does no more require Identifiable class
42
- - fix default locale reading empty object properties in ModelRepository
43
-
44
- #### 3.8.0
45
-
46
- - add @LocaleOf decorator
47
- - handle multi-locale for ModelRepository & CrudHtppController
48
-
49
- #### 3.7.12
50
-
51
- - handle gcd of interval to reduce step function trigger rate
52
- - handle cron event for lambda wrapper
53
- - fix remove cron job for AwsJobScheduler
54
- - fix cron expression
55
- - fix rate 1 minute without 's'
56
- - add more debug log
57
- - fix cron expression validation
58
- - remove job executor
59
- - implement AwsJobScheduler (EventBridge + Step Function)
60
- - fix LocalJobScheduler interface
61
- - allow persist LocalJobScheduler job info & multi instance support
62
-
63
- #### 3.6.23
64
-
65
- - unify handle not found error
66
- - fix create many does not return mime field in CrudHttpController
67
- - fix local socket manager buffer message while socket is creating
68
- - fix async handling in lambda socket manager
69
- - handling READY socket message
70
- - fix AwsSocketManager does not remove socket from redis when disconnect
71
- - handle default "" or "/" endpoint correctly
72
- - fix CrudHttpController filter by boolean field
73
- - fix AwsSocketManager not remove socket from channel after disconnection
74
- - support @HasOne for Crud controller
75
- - fix nested queries for ModelRepository
76
-
77
- #### 3.6.3
78
-
79
- - fix onChannelConnected cannot send back data to socket (because socket was not yet added to channel and old instance was used)
80
- - add READY socket message
81
-
82
- #### 3.6.0
83
-
84
- - move database to @clairejs/orm package. Bye bye...
85
-
86
- #### 3.5.4
87
-
88
- - fix aws get socket by id
89
- - send error when close socket
90
- - remove constructor dependency of socket connection handler in socket managers
91
-
92
- #### 3.5.0
93
-
94
- - use ioredis instead of redis (for redlock to work)
95
- - update job interfaces
96
- - adapt socket managers to use ioredis
97
-
98
- #### 3.4.0
99
-
100
- - add job related classes
101
-
102
- #### 3.3.27
103
-
104
- - add random order
105
- - add \_nin operator
106
-
107
- #### 3.3.26
108
-
109
- - remove socket if authentication failed for aws socket manager
110
- - fix lambda request mapper
111
- - fix Express parse Api gateway query for socket connection
112
- - add debug log
113
- - refactor principal data resolver for socket manager
114
-
115
- #### 3.3.19
116
-
117
- - ExpressWrapper don't send response for gateway socket integration (except for connection request)
118
- - fix ExpressWrapper handle APi gateway socket message data
119
- - fix LocalSocketManager get socket by id
120
- - fix auth resolver typing
121
- - fix socket data parsing problem
122
- - fix local socket manager subscribe
123
- - update redis client to v4
124
-
125
- #### 3.3.10
126
-
127
- - fix LambdaWrapper receive ClaireApp factory
128
- - socket pong return original data
129
- - fix ModelRepository getNestedQueries
130
- - add ops to ICrudRepository
131
-
132
- #### 3.3.5
133
-
134
- - fix socket auth provider
135
- - add getSocketsByChannels
136
- - fix express server exit close connection
137
- - update socket manager to support multiple instances
138
-
139
- #### 3.2.8
140
-
141
- - fix CrudHttpController condition check for update body
142
-
143
- #### 3.2.6
144
-
145
- - add cache to RedisRbacAuthProvider
146
-
147
- #### 3.2.5
148
-
149
- - add TfaRequired() decorator and hasTfa to IPrincipal
150
- - abstract DefaultHttpRequestHandler accessControl
151
-
152
- #### 3.2.4
153
-
154
- - IPrincipal id to be any
155
-
156
- #### 3.2.3
157
-
158
- - simplify dto dissolver interface
159
- - introduce DtoRepository
160
-
161
- #### 3.2.0
162
-
163
- - introduce ICrudRepository
164
- - CrudHttpController now requires param of ICrudRepository
165
-
166
- #### 3.1.16
167
-
168
- - fix uri mapper in CRUD update request
169
-
170
- #### 3.1.15
171
-
172
- - re-implement @CurrentUser decorator
173
-
174
- #### 3.1.14
175
-
176
- - fix UriMapper & UriMapperHandler types
177
-
178
- #### 3.1.13
179
-
180
- - provide IQueryProvider to uriMapper, move uriMapper to server logic
181
- - provide tmpUri to uriMapper in ModelRepository
182
-
183
- #### 3.1.11
184
-
185
- - fix CrudHttpController missing description
186
- - fix projection query data type
187
-
188
- #### 3.1.9
189
-
190
- - strip response data if responseDto is present
191
-
192
- #### 3.1.8
193
-
194
- - return 401 http code if not auth throw
195
-
196
- #### 3.1.7
197
-
198
- - fix CrudHtppController merge wrong endpoint
199
-
200
- #### 3.1.5
201
-
202
- - fix aws socket manager parse null redis
203
-
204
- #### 3.1.4
205
-
206
- - abstract file service and cache service does not extends AbstractService anymore
207
- - fix abstract file service
208
-
209
- #### 3.1.2
210
-
211
- - fix server socket sending incorrect plain message
212
-
213
- #### 3.1.1
214
-
215
- - fix server socket
216
- - add permission conditions to CrudHttpController
217
- - add abstract services
218
- - add FileUploadHandler
219
- - add Abstract RbacAuthProvider, Redis & Cache Rbac Auth Provider
220
- - add rbac dto
221
- - add MaximumQueryLimit & DtoFieldValidation conditions
222
-
223
- #### 3.0.36
224
-
225
- - fix crud controller metadata
226
-
227
- #### 3.0.33
228
-
229
- - add @ApiDescription
230
- - add CrudHttpController metadata description
231
-
232
- #### 3.0.30
233
-
234
- - fix objectTypeConstructor
235
-
236
- #### 3.0.29:
237
-
238
- - @Socket -> @Message
239
- - use @Socket to get socket injection in controller method
240
-
241
- #### 3.0.26:
242
-
243
- - add error log in http request handler
244
-
245
- #### 3.0.25:
246
-
247
- - add null search in vector
248
- - support array search for isSymbol field
249
-
250
- #### 3.0.22:
251
-
252
- - fix timestamp field
253
-
254
- #### 3.0.19:
255
-
256
- - fix error throw in transactional
257
-
258
- #### 3.0.18:
259
-
260
- - fix not escape search value
261
- - fix accent & sensitive search in Mysql and Postgres
262
-
263
- #### 3.0.15:
264
-
265
- - require injection of database adapter in AbstractSerivce & AbstractHttpController
266
-
267
- #### 3.0.14:
268
-
269
- - add getById and getByIds to IQuery
270
-
271
- #### 3.0.12:
272
-
273
- - fix error return
274
-
275
- #### 3.0.10:
276
-
277
- - remove count query when getOne
278
-
279
- #### 3.0.8:
280
-
281
- - freeze table name in join clause
282
-
283
- #### 3.0.6:
284
-
285
- - fix index export
286
- - fix AbstractAccessCondition signature
287
-
288
- #### 3.0.5:
289
-
290
- - tested on Postgres & MySql
291
- - add join ability to IQuery, awesome!!
292
-
293
- #### 3.0.3: http method decorator return type check
294
-
295
- - add @ApiResponse decorator to store response body validator
296
- - add TypedPropertyDescriptor in HTTP method decorator to validate function return type (Promise<HttpResponse<any>>>)
297
-
298
- #### 3.0.2: improve http response
299
-
300
- - add binary response
301
-
302
- #### 3.0.0:
303
-
304
- - update claire core 3.0
305
- - controller function param decorators
306
- - ResponseBuilder
307
- - remove ops in getMany
308
-
309
- #### 2.3.13:
310
-
311
- - update raw query function signature
312
-
313
- #### 2.3.12:
314
-
315
- - fix & export CrudService
316
-
317
- #### 2.3.10:
318
-
319
- - Array & Object model field persist & parse
320
-
321
- #### 2.3.9:
322
-
323
- - @TextField will default to Sequelize.TEXT if length is not specified
324
-
325
- #### 2.3.6:
326
-
327
- - fix missing beforeCreate call when update nesting
328
-
329
- #### 2.3.1:
330
-
331
- - fix returning nested uris
332
-
333
- #### 2.3.0:
334
-
335
- - introduce CrudService
336
- - CrudHttpController support @HasMany
337
-
338
- #### 2.2.12:
339
-
340
- - fix isIntegral default
341
-
342
- #### 2.2.10:
343
-
344
- - update `CrudHttpController` Update and Delete to return `Partial<T>`
345
-
346
- #### 2.2.2:
347
-
348
- - fix `@CurrentUser` decorator
349
- - implement `@CurrentUser` decorator
350
-
351
- #### 2.2.0:
352
-
353
- - add `AbstractFileUploadHandler` and handle file upload in `CrudHttpController`
354
- - fix migration contraint remove order
355
-
356
- #### 2.1.20:
357
-
358
- - extends IPrincipal
359
-
360
- #### 2.1.19:
361
-
362
- - fix crud http controller not init database adapter
363
-
364
- #### 2.1.18:
365
-
366
- - downgrade webpack
367
-
368
- #### 2.1.16:
369
-
370
- - add pg-hstore
371
-
372
- #### 2.1.15:
373
-
374
- - add optional injection for socket manager
375
-
376
- #### 2.1.14:
377
-
378
- - AwsSocketManger needs always to be fed by JSON object
379
-
380
- #### 2.1.13:
381
-
382
- - correct json parsing when hanling aws socket message
383
-
384
- #### 2.1.11:
385
-
386
- - adjust getMany and getRecords to return Pick type based on projection
387
- - add getRecords for IQuery to return just the records
388
-
389
- #### 2.1.9:
390
-
391
- - fix CrudHttpController updateMany FilterField condition check
392
-
393
- #### 2.1.8:
394
-
395
- - fix server socket remove not delete its redis info
396
- - add socket created timestamp info
397
- - add get all alive sockets to remove stale sockets in server
398
-
399
- #### 2.1.5:
400
-
401
- - support model defualt value in db migrator & adapter
402
-
403
- #### 2.1.3:
404
-
405
- - add test for cascade delete
406
-
407
- #### 2.1.2:
408
-
409
- - update claire core
410
- - fix converting QueryCondition use "and" as default operator
411
-
412
- #### 2.1.1:
413
-
414
- - update claire core
415
- - update implementation of FileLogMedium
416
-
417
- #### 2.0.26:
418
-
419
- - parse client socket data
420
- - add more debug log
421
- - fix ExpressWrapper AWS GW socket http integration
422
-
423
- #### 2.0.17:
424
-
425
- - add AWS API GW socket request parser for express
426
-
427
- #### 2.0.16:
428
-
429
- - add log to http request handler
430
- - refactor to allow AwsSocketManager to be used with ExpressWrapper
431
-
432
- #### 2.0.14:
433
-
434
- - fix express socket unique id
435
-
436
- #### 2.0.13:
437
-
438
- - update error code from claire core
439
-
440
- #### 2.0.12:
441
-
442
- - export Get, Post, Put, Del decorators
443
-
444
- #### 2.0.11:
445
-
446
- - add log in http request handler
447
- - fix AbstractAccessCondition signature
448
-
449
- #### 2.0.9:
450
-
451
- - fix AccessCondition (to use injection)
452
- - fix ExpressWrapper & LambdaWrapper to resolve AbstractServerSocketManager
453
- - remove getMountedEndpointInfo from AbstractHttpRequestHandler, move to ServerGlobalStore
454
- - fix property assignment in isolated transactional object
455
- - add log for AwsSocketManager, fix connection problem to redis
456
-
457
- #### 2.0.1:
458
-
459
- - fix some import redundancies
460
-
461
- #### 2.0.0:
462
-
463
- - Upgrade with claire core 2.0.0
464
-
465
- #### 1.6.4:
466
-
467
- - Add pong socket response
468
-
469
- #### 1.6.3:
470
-
471
- - AbstractDatabaseMigrator: supply migration directory to migrate and rollback functions
472
- - fix migrator cli path
473
-
474
- #### 1.6.1:
475
-
476
- - AbstractPrincipal -> IPrincipal (for serialization)
477
-
478
- #### 1.5.51:
479
-
480
- - fix AwsSocketManager not release redis connection, add more log
481
- - fix ExpressWrapper unhandled socket promise exception
482
-
483
- #### 1.5.39 (Breaking change):
484
-
485
- - fix properties null check
486
- - socket multiplex
487
-
488
- #### 1.5.28:
489
-
490
- - fix server socket authId => authInfo
491
-
492
- #### 1.5.26:
493
-
494
- - add OwnedResourceAccessCondition
495
-
496
- #### 1.5.24:
497
-
498
- - replace HttpRequest.getPrincipalId by HttpRequest.getAuthInfo
499
-
500
- #### 1.5.23:
501
-
502
- - fix ServerSocket
503
- - fix not remove disconnect socket from socket manager
504
-
505
- #### 1.5.15 (Breaking change):
506
-
507
- - remove getValue / setValue in HttpRequest
508
- - add setPrincipalId / getPrincipalId in HttpRequest
509
- - adjust Socket Server
510
-
511
- #### 1.5.12:
512
-
513
- - handle socket in lambda wrapper
514
-
515
- #### 1.5.11:
516
-
517
- - fix ServerSocket
518
-
519
- #### 1.5.6:
520
-
521
- - update claire core
522
- - fix ServerSocket
523
-
524
- #### 1.5.4:
525
-
526
- - run middleware before socket authentication
527
-
528
- #### 1.5.2:
529
-
530
- - add websocket support in ExpressWrapper
531
-
532
- #### 1.5.1:
533
-
534
- - update claire core
535
-
536
- #### 1.5.0:
537
-
538
- - revert back to 1.3.38
539
-
540
- #### 1.3.38:
541
-
542
- - export QueryCondition
543
-
544
- #### 1.3.37:
545
-
546
- - return error name instead of TRANSACTION_ERROR
547
- - update claire core
548
-
549
- #### 1.3.36:
550
-
551
- - fix missing down script of unique constraint in database migrator
552
- - add rollback to database migrator
553
-
554
- #### 1.3.34:
555
-
556
- - export AbstractDatabaseMigrator
557
- - fix DefaultSqlDatabaseMigrator not generate new unique constraints for new field
558
-
559
- #### 1.3.32:
560
-
561
- - fix DefaultSqlDatabaseMigrator missing foreign constraint check when add/remove fields
562
-
563
- #### 1.3.31:
564
-
565
- - update server modify
566
-
567
- #### 1.3.30:
568
-
569
- - adjust body raw parser in ExpressWrapper
570
-
571
- #### 1.3.28:
572
-
573
- - fix not supply HttpResponse in Http handler
574
-
575
- #### 1.3.27:
576
-
577
- - add body parser raw middleware
578
-
579
- #### 1.3.26:
580
-
581
- - modify express wrapper send result
582
-
583
- #### 1.3.25:
584
-
585
- - add request options mapper in LambdaWrapper
586
-
587
- #### 1.3.24:
588
-
589
- - add LambdaWrapper
590
-
591
- #### 1.3.23:
592
-
593
- - add ExpressWrapper
594
-
595
- #### 1.3.22:
596
-
597
- - merge accessConditions in CrudHttpController
598
-
599
- #### 1.3.21:
600
-
601
- - DefaultSqlDatabaseMigrator will no longer generate remove table query.
602
-
603
- #### 1.3.20:
604
-
605
- - add permissionGroup and displayName metadata for EndpointMetadata
606
-
607
- #### 1.3.16:
608
-
609
- - update claire core
610
- - allow empty records for CrudHttpController createMany
611
-
612
- #### 1.3.15:
613
-
614
- - fix incorrect parse Http params
615
-
616
- #### 1.3.13:
617
-
618
- - update claire core
619
-
620
- #### 1.3.12:
621
-
622
- - re-introduce terser plugin
623
- - update claire core
624
-
625
- #### 1.3.10:
626
-
627
- - emit source map
628
-
629
- #### 1.3.9:
630
-
631
- - update claire core
632
-
633
- #### 1.3.8:
634
-
635
- - fix missing HttpResponse export
636
-
637
- #### 1.3.7:
638
-
639
- - upgrade Clairejs/core
640
-
641
- #### 1.3.6:
642
-
643
- - upgrade Clairejs/core
644
-
645
- - interpret @ServerTime and @Timestamp
646
-
647
- #### 1.3.2 (Breaking change):
648
-
649
- - re-introduce http response to controller
650
-
651
- #### 1.2.6:
652
-
653
- - add unaccent operators (uSUBSTR, iuSUBSTR)
654
-
655
- #### 1.2.5:
656
-
657
- - allow multiple calls to boot
658
-
659
- #### 1.2.4:
660
-
661
- - fix http request handler parse get and delete request body
662
-
663
- #### 1.2.2:
664
-
665
- - split database migrator
666
- - rework of ClaireServer to be request handler
667
- - remove dependency of expressjs and its middleware
668
-
669
- #### 1.1.9:
670
-
671
- - revert 1.1.8
672
-
673
- #### 1.1.8:
674
-
675
- - init app when getExpressApp
676
-
677
- #### 1.1.7:
678
-
679
- - add pg-hstore as dependency
680
-
681
- #### 1.1.6:
682
-
683
- - fix autoCommit in @Transactional
684
-
685
- #### 1.1.5:
686
-
687
- - use AbstractModel id field for primary key query
688
-
689
- #### 1.1.3:
690
-
691
- - fix returning ids for updateMany and deleteMany
692
-
693
- #### 1.1.2:
694
-
695
- - fix not auto generate migration when changing cascade of @FK
696
- - set build target es6
697
-
698
- #### 1.1.0:
699
-
700
- - fix foreign key cascase delete
701
- - fix auto commit of crud http controller
702
- - return array of ids when updateMany or deleteMany
703
-
704
- #### 1.0.22:
705
-
706
- - CrudHttpController exposes static validators
707
-
708
- #### 1.0.21:
709
-
710
- - update Clairejs Core
711
-
712
- #### 1.0.20:
713
-
714
- - update CrudHttpController for query change
715
-
716
- #### 1.0.17:
717
-
718
- - perform json parsing for fields of request params and queries
719
-
720
- #### 1.0.15:
721
-
722
- - fix @Searchable in CrudHttpController
723
-
724
- #### 1.0.13:
725
-
726
- - add iSUBSTR operator to search for case insensitive string
727
-
728
- #### 1.0.9:
729
-
730
- - fix CrudHttpController endpoint naming
731
-
732
- #### 1.0.8:
733
-
734
- - fix DefaultHttpRequestHandler upgrade Http
735
-
736
- #### 1.0.6:
737
-
738
- - fix DefaultHttpRequestHandler cannot return request body when no validator is provided
1
+ ## Change Log
2
+
3
+ #### 3.10.8
4
+
5
+ - fix express & lambda wrapper to return cookies
6
+
7
+ #### 3.10.7
8
+
9
+ - add random to order option in model repository
10
+ - socket_read -> disable_write, socket_write -> disable_read
11
+
12
+ #### 3.10.5
13
+
14
+ - AbstractJobScheduler run job with spread params
15
+ - use setTimeout for local scheduler at timestamp
16
+ - fix AwsJobScheduler cron expression
17
+ - breaking change update to AbstractFileService
18
+
19
+ #### 3.9.2
20
+
21
+ - moving and using crud dto factory from claire core
22
+ - add expire param to AbstractCacheService set
23
+
24
+ #### 3.9.0
25
+
26
+ - fix AbstractHttpMiddleware to accept response as second param and return boolean as result
27
+
28
+ #### 3.8.8
29
+
30
+ - update core package, reduce db calls in ModelRepository
31
+ - allow nested update HasMany / HasOne field in ModelRepository
32
+
33
+ #### 3.8.6
34
+
35
+ - fix auto fill of post/put default value (no more auto fill, because of access condition check)
36
+ - fix getMany projection in ModelRepository
37
+ - fix hasMany fields in CRUD projection
38
+
39
+ #### 3.8.3
40
+
41
+ - RedisRbacAuthProvider service id resolver
42
+
43
+ #### 3.8.1
44
+
45
+ - fix @CurrentUser does no more require Identifiable class
46
+ - fix default locale reading empty object properties in ModelRepository
47
+
48
+ #### 3.8.0
49
+
50
+ - add @LocaleOf decorator
51
+ - handle multi-locale for ModelRepository & CrudHtppController
52
+
53
+ #### 3.7.12
54
+
55
+ - handle gcd of interval to reduce step function trigger rate
56
+ - handle cron event for lambda wrapper
57
+ - fix remove cron job for AwsJobScheduler
58
+ - fix cron expression
59
+ - fix rate 1 minute without 's'
60
+ - add more debug log
61
+ - fix cron expression validation
62
+ - remove job executor
63
+ - implement AwsJobScheduler (EventBridge + Step Function)
64
+ - fix LocalJobScheduler interface
65
+ - allow persist LocalJobScheduler job info & multi instance support
66
+
67
+ #### 3.6.23
68
+
69
+ - unify handle not found error
70
+ - fix create many does not return mime field in CrudHttpController
71
+ - fix local socket manager buffer message while socket is creating
72
+ - fix async handling in lambda socket manager
73
+ - handling READY socket message
74
+ - fix AwsSocketManager does not remove socket from redis when disconnect
75
+ - handle default "" or "/" endpoint correctly
76
+ - fix CrudHttpController filter by boolean field
77
+ - fix AwsSocketManager not remove socket from channel after disconnection
78
+ - support @HasOne for Crud controller
79
+ - fix nested queries for ModelRepository
80
+
81
+ #### 3.6.3
82
+
83
+ - fix onChannelConnected cannot send back data to socket (because socket was not yet added to channel and old instance was used)
84
+ - add READY socket message
85
+
86
+ #### 3.6.0
87
+
88
+ - move database to @clairejs/orm package. Bye bye...
89
+
90
+ #### 3.5.4
91
+
92
+ - fix aws get socket by id
93
+ - send error when close socket
94
+ - remove constructor dependency of socket connection handler in socket managers
95
+
96
+ #### 3.5.0
97
+
98
+ - use ioredis instead of redis (for redlock to work)
99
+ - update job interfaces
100
+ - adapt socket managers to use ioredis
101
+
102
+ #### 3.4.0
103
+
104
+ - add job related classes
105
+
106
+ #### 3.3.27
107
+
108
+ - add random order
109
+ - add \_nin operator
110
+
111
+ #### 3.3.26
112
+
113
+ - remove socket if authentication failed for aws socket manager
114
+ - fix lambda request mapper
115
+ - fix Express parse Api gateway query for socket connection
116
+ - add debug log
117
+ - refactor principal data resolver for socket manager
118
+
119
+ #### 3.3.19
120
+
121
+ - ExpressWrapper don't send response for gateway socket integration (except for connection request)
122
+ - fix ExpressWrapper handle APi gateway socket message data
123
+ - fix LocalSocketManager get socket by id
124
+ - fix auth resolver typing
125
+ - fix socket data parsing problem
126
+ - fix local socket manager subscribe
127
+ - update redis client to v4
128
+
129
+ #### 3.3.10
130
+
131
+ - fix LambdaWrapper receive ClaireApp factory
132
+ - socket pong return original data
133
+ - fix ModelRepository getNestedQueries
134
+ - add ops to ICrudRepository
135
+
136
+ #### 3.3.5
137
+
138
+ - fix socket auth provider
139
+ - add getSocketsByChannels
140
+ - fix express server exit close connection
141
+ - update socket manager to support multiple instances
142
+
143
+ #### 3.2.8
144
+
145
+ - fix CrudHttpController condition check for update body
146
+
147
+ #### 3.2.6
148
+
149
+ - add cache to RedisRbacAuthProvider
150
+
151
+ #### 3.2.5
152
+
153
+ - add TfaRequired() decorator and hasTfa to IPrincipal
154
+ - abstract DefaultHttpRequestHandler accessControl
155
+
156
+ #### 3.2.4
157
+
158
+ - IPrincipal id to be any
159
+
160
+ #### 3.2.3
161
+
162
+ - simplify dto dissolver interface
163
+ - introduce DtoRepository
164
+
165
+ #### 3.2.0
166
+
167
+ - introduce ICrudRepository
168
+ - CrudHttpController now requires param of ICrudRepository
169
+
170
+ #### 3.1.16
171
+
172
+ - fix uri mapper in CRUD update request
173
+
174
+ #### 3.1.15
175
+
176
+ - re-implement @CurrentUser decorator
177
+
178
+ #### 3.1.14
179
+
180
+ - fix UriMapper & UriMapperHandler types
181
+
182
+ #### 3.1.13
183
+
184
+ - provide IQueryProvider to uriMapper, move uriMapper to server logic
185
+ - provide tmpUri to uriMapper in ModelRepository
186
+
187
+ #### 3.1.11
188
+
189
+ - fix CrudHttpController missing description
190
+ - fix projection query data type
191
+
192
+ #### 3.1.9
193
+
194
+ - strip response data if responseDto is present
195
+
196
+ #### 3.1.8
197
+
198
+ - return 401 http code if not auth throw
199
+
200
+ #### 3.1.7
201
+
202
+ - fix CrudHtppController merge wrong endpoint
203
+
204
+ #### 3.1.5
205
+
206
+ - fix aws socket manager parse null redis
207
+
208
+ #### 3.1.4
209
+
210
+ - abstract file service and cache service does not extends AbstractService anymore
211
+ - fix abstract file service
212
+
213
+ #### 3.1.2
214
+
215
+ - fix server socket sending incorrect plain message
216
+
217
+ #### 3.1.1
218
+
219
+ - fix server socket
220
+ - add permission conditions to CrudHttpController
221
+ - add abstract services
222
+ - add FileUploadHandler
223
+ - add Abstract RbacAuthProvider, Redis & Cache Rbac Auth Provider
224
+ - add rbac dto
225
+ - add MaximumQueryLimit & DtoFieldValidation conditions
226
+
227
+ #### 3.0.36
228
+
229
+ - fix crud controller metadata
230
+
231
+ #### 3.0.33
232
+
233
+ - add @ApiDescription
234
+ - add CrudHttpController metadata description
235
+
236
+ #### 3.0.30
237
+
238
+ - fix objectTypeConstructor
239
+
240
+ #### 3.0.29:
241
+
242
+ - @Socket -> @Message
243
+ - use @Socket to get socket injection in controller method
244
+
245
+ #### 3.0.26:
246
+
247
+ - add error log in http request handler
248
+
249
+ #### 3.0.25:
250
+
251
+ - add null search in vector
252
+ - support array search for isSymbol field
253
+
254
+ #### 3.0.22:
255
+
256
+ - fix timestamp field
257
+
258
+ #### 3.0.19:
259
+
260
+ - fix error throw in transactional
261
+
262
+ #### 3.0.18:
263
+
264
+ - fix not escape search value
265
+ - fix accent & sensitive search in Mysql and Postgres
266
+
267
+ #### 3.0.15:
268
+
269
+ - require injection of database adapter in AbstractSerivce & AbstractHttpController
270
+
271
+ #### 3.0.14:
272
+
273
+ - add getById and getByIds to IQuery
274
+
275
+ #### 3.0.12:
276
+
277
+ - fix error return
278
+
279
+ #### 3.0.10:
280
+
281
+ - remove count query when getOne
282
+
283
+ #### 3.0.8:
284
+
285
+ - freeze table name in join clause
286
+
287
+ #### 3.0.6:
288
+
289
+ - fix index export
290
+ - fix AbstractAccessCondition signature
291
+
292
+ #### 3.0.5:
293
+
294
+ - tested on Postgres & MySql
295
+ - add join ability to IQuery, awesome!!
296
+
297
+ #### 3.0.3: http method decorator return type check
298
+
299
+ - add @ApiResponse decorator to store response body validator
300
+ - add TypedPropertyDescriptor in HTTP method decorator to validate function return type (Promise<HttpResponse<any>>>)
301
+
302
+ #### 3.0.2: improve http response
303
+
304
+ - add binary response
305
+
306
+ #### 3.0.0:
307
+
308
+ - update claire core 3.0
309
+ - controller function param decorators
310
+ - ResponseBuilder
311
+ - remove ops in getMany
312
+
313
+ #### 2.3.13:
314
+
315
+ - update raw query function signature
316
+
317
+ #### 2.3.12:
318
+
319
+ - fix & export CrudService
320
+
321
+ #### 2.3.10:
322
+
323
+ - Array & Object model field persist & parse
324
+
325
+ #### 2.3.9:
326
+
327
+ - @TextField will default to Sequelize.TEXT if length is not specified
328
+
329
+ #### 2.3.6:
330
+
331
+ - fix missing beforeCreate call when update nesting
332
+
333
+ #### 2.3.1:
334
+
335
+ - fix returning nested uris
336
+
337
+ #### 2.3.0:
338
+
339
+ - introduce CrudService
340
+ - CrudHttpController support @HasMany
341
+
342
+ #### 2.2.12:
343
+
344
+ - fix isIntegral default
345
+
346
+ #### 2.2.10:
347
+
348
+ - update `CrudHttpController` Update and Delete to return `Partial<T>`
349
+
350
+ #### 2.2.2:
351
+
352
+ - fix `@CurrentUser` decorator
353
+ - implement `@CurrentUser` decorator
354
+
355
+ #### 2.2.0:
356
+
357
+ - add `AbstractFileUploadHandler` and handle file upload in `CrudHttpController`
358
+ - fix migration contraint remove order
359
+
360
+ #### 2.1.20:
361
+
362
+ - extends IPrincipal
363
+
364
+ #### 2.1.19:
365
+
366
+ - fix crud http controller not init database adapter
367
+
368
+ #### 2.1.18:
369
+
370
+ - downgrade webpack
371
+
372
+ #### 2.1.16:
373
+
374
+ - add pg-hstore
375
+
376
+ #### 2.1.15:
377
+
378
+ - add optional injection for socket manager
379
+
380
+ #### 2.1.14:
381
+
382
+ - AwsSocketManger needs always to be fed by JSON object
383
+
384
+ #### 2.1.13:
385
+
386
+ - correct json parsing when hanling aws socket message
387
+
388
+ #### 2.1.11:
389
+
390
+ - adjust getMany and getRecords to return Pick type based on projection
391
+ - add getRecords for IQuery to return just the records
392
+
393
+ #### 2.1.9:
394
+
395
+ - fix CrudHttpController updateMany FilterField condition check
396
+
397
+ #### 2.1.8:
398
+
399
+ - fix server socket remove not delete its redis info
400
+ - add socket created timestamp info
401
+ - add get all alive sockets to remove stale sockets in server
402
+
403
+ #### 2.1.5:
404
+
405
+ - support model defualt value in db migrator & adapter
406
+
407
+ #### 2.1.3:
408
+
409
+ - add test for cascade delete
410
+
411
+ #### 2.1.2:
412
+
413
+ - update claire core
414
+ - fix converting QueryCondition use "and" as default operator
415
+
416
+ #### 2.1.1:
417
+
418
+ - update claire core
419
+ - update implementation of FileLogMedium
420
+
421
+ #### 2.0.26:
422
+
423
+ - parse client socket data
424
+ - add more debug log
425
+ - fix ExpressWrapper AWS GW socket http integration
426
+
427
+ #### 2.0.17:
428
+
429
+ - add AWS API GW socket request parser for express
430
+
431
+ #### 2.0.16:
432
+
433
+ - add log to http request handler
434
+ - refactor to allow AwsSocketManager to be used with ExpressWrapper
435
+
436
+ #### 2.0.14:
437
+
438
+ - fix express socket unique id
439
+
440
+ #### 2.0.13:
441
+
442
+ - update error code from claire core
443
+
444
+ #### 2.0.12:
445
+
446
+ - export Get, Post, Put, Del decorators
447
+
448
+ #### 2.0.11:
449
+
450
+ - add log in http request handler
451
+ - fix AbstractAccessCondition signature
452
+
453
+ #### 2.0.9:
454
+
455
+ - fix AccessCondition (to use injection)
456
+ - fix ExpressWrapper & LambdaWrapper to resolve AbstractServerSocketManager
457
+ - remove getMountedEndpointInfo from AbstractHttpRequestHandler, move to ServerGlobalStore
458
+ - fix property assignment in isolated transactional object
459
+ - add log for AwsSocketManager, fix connection problem to redis
460
+
461
+ #### 2.0.1:
462
+
463
+ - fix some import redundancies
464
+
465
+ #### 2.0.0:
466
+
467
+ - Upgrade with claire core 2.0.0
468
+
469
+ #### 1.6.4:
470
+
471
+ - Add pong socket response
472
+
473
+ #### 1.6.3:
474
+
475
+ - AbstractDatabaseMigrator: supply migration directory to migrate and rollback functions
476
+ - fix migrator cli path
477
+
478
+ #### 1.6.1:
479
+
480
+ - AbstractPrincipal -> IPrincipal (for serialization)
481
+
482
+ #### 1.5.51:
483
+
484
+ - fix AwsSocketManager not release redis connection, add more log
485
+ - fix ExpressWrapper unhandled socket promise exception
486
+
487
+ #### 1.5.39 (Breaking change):
488
+
489
+ - fix properties null check
490
+ - socket multiplex
491
+
492
+ #### 1.5.28:
493
+
494
+ - fix server socket authId => authInfo
495
+
496
+ #### 1.5.26:
497
+
498
+ - add OwnedResourceAccessCondition
499
+
500
+ #### 1.5.24:
501
+
502
+ - replace HttpRequest.getPrincipalId by HttpRequest.getAuthInfo
503
+
504
+ #### 1.5.23:
505
+
506
+ - fix ServerSocket
507
+ - fix not remove disconnect socket from socket manager
508
+
509
+ #### 1.5.15 (Breaking change):
510
+
511
+ - remove getValue / setValue in HttpRequest
512
+ - add setPrincipalId / getPrincipalId in HttpRequest
513
+ - adjust Socket Server
514
+
515
+ #### 1.5.12:
516
+
517
+ - handle socket in lambda wrapper
518
+
519
+ #### 1.5.11:
520
+
521
+ - fix ServerSocket
522
+
523
+ #### 1.5.6:
524
+
525
+ - update claire core
526
+ - fix ServerSocket
527
+
528
+ #### 1.5.4:
529
+
530
+ - run middleware before socket authentication
531
+
532
+ #### 1.5.2:
533
+
534
+ - add websocket support in ExpressWrapper
535
+
536
+ #### 1.5.1:
537
+
538
+ - update claire core
539
+
540
+ #### 1.5.0:
541
+
542
+ - revert back to 1.3.38
543
+
544
+ #### 1.3.38:
545
+
546
+ - export QueryCondition
547
+
548
+ #### 1.3.37:
549
+
550
+ - return error name instead of TRANSACTION_ERROR
551
+ - update claire core
552
+
553
+ #### 1.3.36:
554
+
555
+ - fix missing down script of unique constraint in database migrator
556
+ - add rollback to database migrator
557
+
558
+ #### 1.3.34:
559
+
560
+ - export AbstractDatabaseMigrator
561
+ - fix DefaultSqlDatabaseMigrator not generate new unique constraints for new field
562
+
563
+ #### 1.3.32:
564
+
565
+ - fix DefaultSqlDatabaseMigrator missing foreign constraint check when add/remove fields
566
+
567
+ #### 1.3.31:
568
+
569
+ - update server modify
570
+
571
+ #### 1.3.30:
572
+
573
+ - adjust body raw parser in ExpressWrapper
574
+
575
+ #### 1.3.28:
576
+
577
+ - fix not supply HttpResponse in Http handler
578
+
579
+ #### 1.3.27:
580
+
581
+ - add body parser raw middleware
582
+
583
+ #### 1.3.26:
584
+
585
+ - modify express wrapper send result
586
+
587
+ #### 1.3.25:
588
+
589
+ - add request options mapper in LambdaWrapper
590
+
591
+ #### 1.3.24:
592
+
593
+ - add LambdaWrapper
594
+
595
+ #### 1.3.23:
596
+
597
+ - add ExpressWrapper
598
+
599
+ #### 1.3.22:
600
+
601
+ - merge accessConditions in CrudHttpController
602
+
603
+ #### 1.3.21:
604
+
605
+ - DefaultSqlDatabaseMigrator will no longer generate remove table query.
606
+
607
+ #### 1.3.20:
608
+
609
+ - add permissionGroup and displayName metadata for EndpointMetadata
610
+
611
+ #### 1.3.16:
612
+
613
+ - update claire core
614
+ - allow empty records for CrudHttpController createMany
615
+
616
+ #### 1.3.15:
617
+
618
+ - fix incorrect parse Http params
619
+
620
+ #### 1.3.13:
621
+
622
+ - update claire core
623
+
624
+ #### 1.3.12:
625
+
626
+ - re-introduce terser plugin
627
+ - update claire core
628
+
629
+ #### 1.3.10:
630
+
631
+ - emit source map
632
+
633
+ #### 1.3.9:
634
+
635
+ - update claire core
636
+
637
+ #### 1.3.8:
638
+
639
+ - fix missing HttpResponse export
640
+
641
+ #### 1.3.7:
642
+
643
+ - upgrade Clairejs/core
644
+
645
+ #### 1.3.6:
646
+
647
+ - upgrade Clairejs/core
648
+
649
+ - interpret @ServerTime and @Timestamp
650
+
651
+ #### 1.3.2 (Breaking change):
652
+
653
+ - re-introduce http response to controller
654
+
655
+ #### 1.2.6:
656
+
657
+ - add unaccent operators (uSUBSTR, iuSUBSTR)
658
+
659
+ #### 1.2.5:
660
+
661
+ - allow multiple calls to boot
662
+
663
+ #### 1.2.4:
664
+
665
+ - fix http request handler parse get and delete request body
666
+
667
+ #### 1.2.2:
668
+
669
+ - split database migrator
670
+ - rework of ClaireServer to be request handler
671
+ - remove dependency of expressjs and its middleware
672
+
673
+ #### 1.1.9:
674
+
675
+ - revert 1.1.8
676
+
677
+ #### 1.1.8:
678
+
679
+ - init app when getExpressApp
680
+
681
+ #### 1.1.7:
682
+
683
+ - add pg-hstore as dependency
684
+
685
+ #### 1.1.6:
686
+
687
+ - fix autoCommit in @Transactional
688
+
689
+ #### 1.1.5:
690
+
691
+ - use AbstractModel id field for primary key query
692
+
693
+ #### 1.1.3:
694
+
695
+ - fix returning ids for updateMany and deleteMany
696
+
697
+ #### 1.1.2:
698
+
699
+ - fix not auto generate migration when changing cascade of @FK
700
+ - set build target es6
701
+
702
+ #### 1.1.0:
703
+
704
+ - fix foreign key cascase delete
705
+ - fix auto commit of crud http controller
706
+ - return array of ids when updateMany or deleteMany
707
+
708
+ #### 1.0.22:
709
+
710
+ - CrudHttpController exposes static validators
711
+
712
+ #### 1.0.21:
713
+
714
+ - update Clairejs Core
715
+
716
+ #### 1.0.20:
717
+
718
+ - update CrudHttpController for query change
719
+
720
+ #### 1.0.17:
721
+
722
+ - perform json parsing for fields of request params and queries
723
+
724
+ #### 1.0.15:
725
+
726
+ - fix @Searchable in CrudHttpController
727
+
728
+ #### 1.0.13:
729
+
730
+ - add iSUBSTR operator to search for case insensitive string
731
+
732
+ #### 1.0.9:
733
+
734
+ - fix CrudHttpController endpoint naming
735
+
736
+ #### 1.0.8:
737
+
738
+ - fix DefaultHttpRequestHandler upgrade Http
739
+
740
+ #### 1.0.6:
741
+
742
+ - fix DefaultHttpRequestHandler cannot return request body when no validator is provided