@clairejs/server 3.5.1 → 3.5.2

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