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