@clairejs/server 3.11.14 → 3.11.16

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