@clairejs/server 3.11.11 → 3.11.13

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