@hichchi/nest-crud 0.0.2 → 0.0.4

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 (92) hide show
  1. package/CHANGELOG.md +36 -12
  2. package/README.md +2475 -2085
  3. package/base/base-entity-extension.js +10 -6
  4. package/base/base-entity-extension.js.map +1 -1
  5. package/base/base-entity.js +47 -43
  6. package/base/base-entity.js.map +1 -1
  7. package/base/base-repository.js +16 -12
  8. package/base/base-repository.js.map +1 -1
  9. package/base/base-user.entity.js +85 -81
  10. package/base/base-user.entity.js.map +1 -1
  11. package/base/index.js +7 -4
  12. package/base/index.js.map +1 -1
  13. package/constants.js +10 -7
  14. package/constants.js.map +1 -1
  15. package/crud.module.js +29 -26
  16. package/crud.module.js.map +1 -1
  17. package/decorators/entity-extension.decorator.js +20 -17
  18. package/decorators/entity-extension.decorator.js.map +1 -1
  19. package/decorators/entity.decorator.js +30 -27
  20. package/decorators/entity.decorator.js.map +1 -1
  21. package/decorators/filter.decorator.js +8 -5
  22. package/decorators/filter.decorator.js.map +1 -1
  23. package/decorators/index.js +11 -8
  24. package/decorators/index.js.map +1 -1
  25. package/decorators/join-column.decorator.js +11 -8
  26. package/decorators/join-column.decorator.js.map +1 -1
  27. package/decorators/page.decorator.js +8 -5
  28. package/decorators/page.decorator.js.map +1 -1
  29. package/decorators/repository.decorator.js +14 -11
  30. package/decorators/repository.decorator.js.map +1 -1
  31. package/decorators/search.decorator.js +8 -5
  32. package/decorators/search.decorator.js.map +1 -1
  33. package/decorators/sort.decorator.js +8 -5
  34. package/decorators/sort.decorator.js.map +1 -1
  35. package/dtos/bulk-delete.dto.js +15 -12
  36. package/dtos/bulk-delete.dto.js.map +1 -1
  37. package/dtos/bulk-update.dto.js +18 -15
  38. package/dtos/bulk-update.dto.js.map +1 -1
  39. package/dtos/ids.dto.js +15 -12
  40. package/dtos/ids.dto.js.map +1 -1
  41. package/dtos/index.js +5 -2
  42. package/dtos/index.js.map +1 -1
  43. package/enums/crud.enums.js +7 -4
  44. package/enums/crud.enums.js.map +1 -1
  45. package/enums/index.js +4 -1
  46. package/enums/index.js.map +1 -1
  47. package/enums/metadata-keys.enum.js +5 -2
  48. package/enums/metadata-keys.enum.js.map +1 -1
  49. package/exceptions/index.js +4 -1
  50. package/exceptions/index.js.map +1 -1
  51. package/exceptions/typeorm.exception.js +9 -4
  52. package/exceptions/typeorm.exception.js.map +1 -1
  53. package/index.js +19 -12
  54. package/index.js.map +1 -1
  55. package/interfaces/connection-options.interface.js +2 -1
  56. package/interfaces/crud-options.interfaces.js +2 -1
  57. package/interfaces/index.js +5 -2
  58. package/interfaces/index.js.map +1 -1
  59. package/package.json +7 -6
  60. package/readme-top.md +1 -5
  61. package/responses/crud.error.responses.js +31 -28
  62. package/responses/crud.error.responses.js.map +1 -1
  63. package/responses/crud.success.responses.js +24 -21
  64. package/responses/crud.success.responses.js.map +1 -1
  65. package/responses/index.js +5 -2
  66. package/responses/index.js.map +1 -1
  67. package/services/crud.service.js +43 -39
  68. package/services/crud.service.js.map +1 -1
  69. package/services/index.js +4 -1
  70. package/services/index.js.map +1 -1
  71. package/tokens.js +5 -2
  72. package/tokens.js.map +1 -1
  73. package/types/database.types.d.ts +1 -1
  74. package/types/database.types.js +2 -1
  75. package/types/decorator.types.js +2 -1
  76. package/types/decorator.types.js.map +1 -1
  77. package/types/entity-option-unique.js +2 -1
  78. package/types/error-handler.type.js +2 -1
  79. package/types/filter-options.type.js +2 -1
  80. package/types/find-conditions.type.js +2 -1
  81. package/types/index.js +11 -8
  82. package/types/index.js.map +1 -1
  83. package/types/repository-decorator.type.js +2 -1
  84. package/types/sort-options.type.js +2 -1
  85. package/utils/entity.utils.js +46 -42
  86. package/utils/entity.utils.js.map +1 -1
  87. package/utils/http.utils.js +11 -6
  88. package/utils/http.utils.js.map +1 -1
  89. package/utils/index.js +5 -2
  90. package/utils/index.js.map +1 -1
  91. package/utils/repository.utils.js +12 -7
  92. package/utils/repository.utils.js.map +1 -1
package/CHANGELOG.md CHANGED
@@ -1,19 +1,43 @@
1
- ## 0.0.1 (2026-02-13)
2
-
3
- ### 🚀 Features
4
-
5
- - **auth): add support for role-based guard with configurable redirects** - **feat(auth): introduce skipNotifyContext for selective HTTP error notifications** - **feat(utils): expand HTTP utilities with success response validation and notification skipping** - **feat(guards): update `authGuard` and `roleGuard` parameters to allow custom redirects** - **fix(routes): integrate role-based guard in routing configurations** - **refactor(services): improve `AppService` with toast notification utilities** - **fix(interceptors:** enhance error interceptor for better error management and redirection** ([e1414ab](https://github.com/hichchidev/hichchi/commit/e1414ab))
1
+ ## 0.0.3 (2026-02-13)
6
2
 
7
3
  ### 🧱 Updated Dependencies
8
4
 
9
- - Updated nest-connector to 0.0.1
10
- - Updated nest-core to 0.0.1
11
- - Updated utils to 0.0.1
12
-
13
- ### ❤️ Thank You
14
-
15
- - Hichchi Dev
5
+ - Updated nest-connector to 0.0.3
6
+ - Updated nest-core to 0.0.3
7
+ - Updated utils to 0.0.3
16
8
 
9
+ ## 0.0.2 (2026-02-13)
10
+
11
+ ### 🚀 Features
12
+
13
+ - **auth): add support for role-based guard with configurable redirects** - **feat(auth): introduce skipNotifyContext for selective HTTP error notifications** - **feat(utils): expand HTTP utilities with success response validation and notification skipping** - **feat(guards): update `authGuard` and `roleGuard` parameters to allow custom redirects** - **fix(routes): integrate role-based guard in routing configurations** - **refactor(services): improve `AppService` with toast notification utilities** - **fix(interceptors:** enhance error interceptor for better error management and redirection** ([e1414ab](https://github.com/hichchidev/hichchi/commit/e1414ab))
14
+
15
+ ### 🧱 Updated Dependencies
16
+
17
+ - Updated nest-connector to 0.0.2
18
+ - Updated nest-core to 0.0.2
19
+ - Updated utils to 0.0.2
20
+
21
+ ### ❤️ Thank You
22
+
23
+ - Hichchi Dev
24
+
25
+ ## 0.0.1 (2026-02-13)
26
+
27
+ ### 🚀 Features
28
+
29
+ - **auth): add support for role-based guard with configurable redirects** - **feat(auth): introduce skipNotifyContext for selective HTTP error notifications** - **feat(utils): expand HTTP utilities with success response validation and notification skipping** - **feat(guards): update `authGuard` and `roleGuard` parameters to allow custom redirects** - **fix(routes): integrate role-based guard in routing configurations** - **refactor(services): improve `AppService` with toast notification utilities** - **fix(interceptors:** enhance error interceptor for better error management and redirection** ([e1414ab](https://github.com/hichchidev/hichchi/commit/e1414ab))
30
+
31
+ ### 🧱 Updated Dependencies
32
+
33
+ - Updated nest-connector to 0.0.1
34
+ - Updated nest-core to 0.0.1
35
+ - Updated utils to 0.0.1
36
+
37
+ ### ❤️ Thank You
38
+
39
+ - Hichchi Dev
40
+
17
41
  ## 0.0.1-beta.4 (2025-07-18)
18
42
 
19
43
  ### 🚀 Features