@clairejs/server 3.6.4 → 3.6.5

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