tshex-cli 1.0.16 → 1.0.18

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 (40) hide show
  1. package/README.es.md +1449 -0
  2. package/README.md +1449 -0
  3. package/build/main.js +11 -38
  4. package/package.json +8 -10
  5. package/source/main.ts +11 -44
  6. package/templates/ctx/example-ports.ts +5 -0
  7. package/templates/lib/shared/application/data-sources.ts +102 -0
  8. package/templates/lib/shared/application/http.ts +28 -40
  9. package/templates/lib/shared/application/loggers.ts +6 -30
  10. package/templates/lib/shared/application/validations.ts +10 -0
  11. package/readme.md +0 -229
  12. package/templates/ctx/index.ts +0 -0
  13. package/templates/lib/shared/application/databases.ts +0 -81
  14. package/templates/react-project/core/context/adapters/api/.gitkeep +0 -0
  15. package/templates/react-project/core/context/adapters/hooks/.gitkeep +0 -0
  16. package/templates/react-project/core/context/adapters/schemas/.gitkeep +0 -0
  17. package/templates/react-project/core/context/application/.gitkeep +0 -0
  18. package/templates/react-project/core/context/domain/.gitkeep +0 -0
  19. package/templates/react-project/core/context/languages/.gitkeep +0 -0
  20. package/templates/react-project/core/shared/adapters/i18n/.gitkeep +0 -0
  21. package/templates/react-project/dom-client/context/Example.tsx +0 -11
  22. package/templates/react-project/dom-client/context/assets/.gitkeep +0 -0
  23. package/templates/react-project/dom-client/context/styles/.gitkeep +0 -0
  24. package/templates/react-project/dom-server/context/Example.tsx +0 -11
  25. package/templates/react-project/dom-server/context/assets/.gitkeep +0 -0
  26. package/templates/react-project/dom-server/context/styles/.gitkeep +0 -0
  27. package/templates/react-project/index.d.ts +0 -1
  28. package/templates/react-project/native/context/Example.tsx +0 -11
  29. package/templates/react-project/native/context/assets/.gitkeep +0 -0
  30. package/templates/react-project/native/context/styles/.gitkeep +0 -0
  31. package/templates/react-project/tests/core/.gitkeep +0 -0
  32. package/templates/react-project/tests/dom-client/.gitkeep +0 -0
  33. package/templates/react-project/tests/dom-server/.gitkeep +0 -0
  34. package/templates/react-project/tests/native/.gitkeep +0 -0
  35. /package/templates/{react-context → ctx-react}/adapters/api/.gitkeep +0 -0
  36. /package/templates/{react-context → ctx-react}/adapters/hooks/.gitkeep +0 -0
  37. /package/templates/{react-context → ctx-react}/adapters/schemas/.gitkeep +0 -0
  38. /package/templates/{react-context → ctx-react}/application/.gitkeep +0 -0
  39. /package/templates/{react-context → ctx-react}/domain/.gitkeep +0 -0
  40. /package/templates/{react-context → ctx-react}/languages/.gitkeep +0 -0
@@ -1,81 +0,0 @@
1
- // Libraries
2
-
3
- // Same Layer
4
-
5
- // Lower Layers
6
-
7
- // Types
8
-
9
- // Constants
10
-
11
- /**
12
- * @description
13
- */
14
- export abstract class DataManager {
15
- [property: string]: unknown
16
-
17
- // Public Attributes
18
-
19
- // Protected Attributes
20
-
21
- // Private Attributes
22
-
23
- // Public Static Attributes
24
-
25
- // Protected Static Attributes
26
-
27
- // Private Static Attributes
28
-
29
- // Constructor, Getters, Setters
30
-
31
- // Public Methods
32
-
33
- public abstract connect(...args: unknown[]): Promise<unknown>
34
-
35
- public abstract disconnect(): Promise<unknown>
36
-
37
- // Protected Methods
38
-
39
- // Private Methods
40
-
41
- // Public Static Methods
42
-
43
- // Protected Static Methods
44
-
45
- // Private Static Methods
46
- } //:: class
47
-
48
- /**
49
- * @description Represents a data source.
50
- */
51
- export abstract class Repository<Manager extends DataManager> {
52
- [property: string]: unknown
53
-
54
- // Public Attributes
55
-
56
- // Protected Attributes
57
-
58
- // Private Attributes
59
-
60
- // Public Static Attributes
61
-
62
- // Protected Static Attributes
63
-
64
- // Private Static Attributes
65
-
66
- // Constructor, Getters, Setters
67
-
68
- public constructor(public readonly manager: Manager) {}
69
-
70
- // Public Methods
71
-
72
- // Protected Methods
73
-
74
- // Private Methods
75
-
76
- // Public Static Methods
77
-
78
- // Protected Static Methods
79
-
80
- // Private Static Methods
81
- } //:: class
@@ -1,11 +0,0 @@
1
- type Props = {
2
- children?: React.ReactNode
3
- }
4
-
5
- /**
6
- * @description Example component that renders its children.
7
- */
8
- export default function Example(props: Props) {
9
- const { children } = props
10
- return children
11
- }
@@ -1,11 +0,0 @@
1
- type Props = {
2
- children?: React.ReactNode
3
- }
4
-
5
- /**
6
- * @description Example component that renders its children.
7
- */
8
- export default function Example(props: Props) {
9
- const { children } = props
10
- return children
11
- }
@@ -1 +0,0 @@
1
- type Generic<T=unknown> = Record<string, T>;
@@ -1,11 +0,0 @@
1
- type Props = {
2
- children?: React.ReactNode
3
- }
4
-
5
- /**
6
- * @description Example component that renders its children.
7
- */
8
- export default function Example(props: Props) {
9
- const { children } = props
10
- return children
11
- }
File without changes
File without changes
File without changes
File without changes