@clairejs/server 3.2.6 → 3.3.0

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