@clairejs/server 3.6.22 → 3.6.23

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