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