@clairejs/server 3.6.8 → 3.6.11

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