@clairejs/server 3.5.3 → 3.5.4

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