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