@clairejs/server 3.4.0 → 3.5.0

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