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