@clairejs/server 3.6.0 → 3.6.1

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