@clairejs/server 3.8.7 → 3.9.1

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