@clairejs/server 3.10.7 → 3.10.9

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