@clairejs/server 3.8.2 → 3.8.5

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