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