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