@venizia/ardor-kernel 0.1.1-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 (139) hide show
  1. package/LICENSE.md +97 -0
  2. package/README.md +30 -0
  3. package/dist/base/applications/abstract.d.ts +21 -0
  4. package/dist/base/applications/abstract.d.ts.map +1 -0
  5. package/dist/base/applications/abstract.js +41 -0
  6. package/dist/base/applications/abstract.js.map +1 -0
  7. package/dist/base/applications/index.d.ts +2 -0
  8. package/dist/base/applications/index.d.ts.map +1 -0
  9. package/dist/base/applications/index.js +2 -0
  10. package/dist/base/applications/index.js.map +1 -0
  11. package/dist/base/decorators/api.d.ts +3 -0
  12. package/dist/base/decorators/api.d.ts.map +1 -0
  13. package/dist/base/decorators/api.js +17 -0
  14. package/dist/base/decorators/api.js.map +1 -0
  15. package/dist/base/decorators/index.d.ts +2 -0
  16. package/dist/base/decorators/index.d.ts.map +1 -0
  17. package/dist/base/decorators/index.js +2 -0
  18. package/dist/base/decorators/index.js.map +1 -0
  19. package/dist/base/index.d.ts +5 -0
  20. package/dist/base/index.d.ts.map +1 -0
  21. package/dist/base/index.js +5 -0
  22. package/dist/base/index.js.map +1 -0
  23. package/dist/base/providers/base.d.ts +6 -0
  24. package/dist/base/providers/base.d.ts.map +1 -0
  25. package/dist/base/providers/base.js +4 -0
  26. package/dist/base/providers/base.js.map +1 -0
  27. package/dist/base/providers/index.d.ts +2 -0
  28. package/dist/base/providers/index.d.ts.map +1 -0
  29. package/dist/base/providers/index.js +2 -0
  30. package/dist/base/providers/index.js.map +1 -0
  31. package/dist/base/services/api.d.ts +9 -0
  32. package/dist/base/services/api.d.ts.map +1 -0
  33. package/dist/base/services/api.js +8 -0
  34. package/dist/base/services/api.js.map +1 -0
  35. package/dist/base/services/auth.d.ts +20 -0
  36. package/dist/base/services/auth.d.ts.map +1 -0
  37. package/dist/base/services/auth.js +40 -0
  38. package/dist/base/services/auth.js.map +1 -0
  39. package/dist/base/services/base.d.ts +8 -0
  40. package/dist/base/services/base.d.ts.map +1 -0
  41. package/dist/base/services/base.js +7 -0
  42. package/dist/base/services/base.js.map +1 -0
  43. package/dist/base/services/index.d.ts +5 -0
  44. package/dist/base/services/index.d.ts.map +1 -0
  45. package/dist/base/services/index.js +5 -0
  46. package/dist/base/services/index.js.map +1 -0
  47. package/dist/base/services/network-request.d.ts +79 -0
  48. package/dist/base/services/network-request.d.ts.map +1 -0
  49. package/dist/base/services/network-request.js +383 -0
  50. package/dist/base/services/network-request.js.map +1 -0
  51. package/dist/common/constants.d.ts +92 -0
  52. package/dist/common/constants.d.ts.map +1 -0
  53. package/dist/common/constants.js +126 -0
  54. package/dist/common/constants.js.map +1 -0
  55. package/dist/common/index.d.ts +4 -0
  56. package/dist/common/index.d.ts.map +1 -0
  57. package/dist/common/index.js +4 -0
  58. package/dist/common/index.js.map +1 -0
  59. package/dist/common/keys.d.ts +17 -0
  60. package/dist/common/keys.d.ts.map +1 -0
  61. package/dist/common/keys.js +17 -0
  62. package/dist/common/keys.js.map +1 -0
  63. package/dist/common/types.d.ts +170 -0
  64. package/dist/common/types.d.ts.map +1 -0
  65. package/dist/common/types.js +2 -0
  66. package/dist/common/types.js.map +1 -0
  67. package/dist/helpers/base-helper.d.ts +8 -0
  68. package/dist/helpers/base-helper.d.ts.map +1 -0
  69. package/dist/helpers/base-helper.js +7 -0
  70. package/dist/helpers/base-helper.js.map +1 -0
  71. package/dist/helpers/index.d.ts +5 -0
  72. package/dist/helpers/index.d.ts.map +1 -0
  73. package/dist/helpers/index.js +5 -0
  74. package/dist/helpers/index.js.map +1 -0
  75. package/dist/helpers/logger.d.ts +43 -0
  76. package/dist/helpers/logger.d.ts.map +1 -0
  77. package/dist/helpers/logger.js +77 -0
  78. package/dist/helpers/logger.js.map +1 -0
  79. package/dist/helpers/networks/base-request.d.ts +42 -0
  80. package/dist/helpers/networks/base-request.d.ts.map +1 -0
  81. package/dist/helpers/networks/base-request.js +86 -0
  82. package/dist/helpers/networks/base-request.js.map +1 -0
  83. package/dist/helpers/networks/common/index.d.ts +2 -0
  84. package/dist/helpers/networks/common/index.d.ts.map +1 -0
  85. package/dist/helpers/networks/common/index.js +2 -0
  86. package/dist/helpers/networks/common/index.js.map +1 -0
  87. package/dist/helpers/networks/common/types.d.ts +5 -0
  88. package/dist/helpers/networks/common/types.d.ts.map +1 -0
  89. package/dist/helpers/networks/common/types.js +2 -0
  90. package/dist/helpers/networks/common/types.js.map +1 -0
  91. package/dist/helpers/networks/fetchers/abstract.d.ts +36 -0
  92. package/dist/helpers/networks/fetchers/abstract.d.ts.map +1 -0
  93. package/dist/helpers/networks/fetchers/abstract.js +36 -0
  94. package/dist/helpers/networks/fetchers/abstract.js.map +1 -0
  95. package/dist/helpers/networks/fetchers/axios.d.ts +19 -0
  96. package/dist/helpers/networks/fetchers/axios.d.ts.map +1 -0
  97. package/dist/helpers/networks/fetchers/axios.js +25 -0
  98. package/dist/helpers/networks/fetchers/axios.js.map +1 -0
  99. package/dist/helpers/networks/fetchers/index.d.ts +4 -0
  100. package/dist/helpers/networks/fetchers/index.d.ts.map +1 -0
  101. package/dist/helpers/networks/fetchers/index.js +4 -0
  102. package/dist/helpers/networks/fetchers/index.js.map +1 -0
  103. package/dist/helpers/networks/fetchers/node-fetch.d.ts +15 -0
  104. package/dist/helpers/networks/fetchers/node-fetch.d.ts.map +1 -0
  105. package/dist/helpers/networks/fetchers/node-fetch.js +45 -0
  106. package/dist/helpers/networks/fetchers/node-fetch.js.map +1 -0
  107. package/dist/helpers/networks/index.d.ts +4 -0
  108. package/dist/helpers/networks/index.d.ts.map +1 -0
  109. package/dist/helpers/networks/index.js +4 -0
  110. package/dist/helpers/networks/index.js.map +1 -0
  111. package/dist/helpers/socket-io-client.d.ts +37 -0
  112. package/dist/helpers/socket-io-client.d.ts.map +1 -0
  113. package/dist/helpers/socket-io-client.js +80 -0
  114. package/dist/helpers/socket-io-client.js.map +1 -0
  115. package/dist/index.d.ts +5 -0
  116. package/dist/index.d.ts.map +1 -0
  117. package/dist/index.js +5 -0
  118. package/dist/index.js.map +1 -0
  119. package/dist/utilities/boolean.d.ts +8 -0
  120. package/dist/utilities/boolean.d.ts.map +1 -0
  121. package/dist/utilities/boolean.js +35 -0
  122. package/dist/utilities/boolean.js.map +1 -0
  123. package/dist/utilities/file.d.ts +2 -0
  124. package/dist/utilities/file.d.ts.map +1 -0
  125. package/dist/utilities/file.js +9 -0
  126. package/dist/utilities/file.js.map +1 -0
  127. package/dist/utilities/index.d.ts +5 -0
  128. package/dist/utilities/index.d.ts.map +1 -0
  129. package/dist/utilities/index.js +5 -0
  130. package/dist/utilities/index.js.map +1 -0
  131. package/dist/utilities/parse.d.ts +15 -0
  132. package/dist/utilities/parse.d.ts.map +1 -0
  133. package/dist/utilities/parse.js +124 -0
  134. package/dist/utilities/parse.js.map +1 -0
  135. package/dist/utilities/url.d.ts +5 -0
  136. package/dist/utilities/url.d.ts.map +1 -0
  137. package/dist/utilities/url.js +27 -0
  138. package/dist/utilities/url.js.map +1 -0
  139. package/package.json +128 -0
package/LICENSE.md ADDED
@@ -0,0 +1,97 @@
1
+ # ARDOR Framework License
2
+
3
+ ARDOR is a TypeScript frontend application framework built on [IGNIS](https://ignis.venizia.ai) and
4
+ [React](https://react.dev/).
5
+
6
+ ## MIT License
7
+
8
+ Copyright (c) 2025 VENIZIA Ltd. Co.
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy
11
+ of this software and associated documentation files (the "Software"), to deal
12
+ in the Software without restriction, including without limitation the rights
13
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
+ copies of the Software, and to permit persons to whom the Software is
15
+ furnished to do so, subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be included in all
18
+ copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
+ SOFTWARE.
27
+
28
+ ---
29
+
30
+ ## Packages
31
+
32
+ This monorepo contains the following packages, all licensed under MIT:
33
+
34
+ | Package | Description |
35
+ |---------|-------------|
36
+ | `@venizia/ardor` | Umbrella entry point over the framework packages |
37
+ | `@venizia/ardor-kernel` | Isomorphic core - application base, services, network layer, utilities |
38
+ | `@venizia/ardor-react` | React bindings - application context, injectable and UI hooks |
39
+ | `@venizia/ardor-admin` | react-admin adapter - data, auth and i18n providers |
40
+ | `@venizia/ardor-ui-kit` | Design system - Tailwind and Radix components, design tokens |
41
+
42
+ ---
43
+
44
+ ## Third-Party Dependencies
45
+
46
+ ARDOR uses the following open-source libraries. We are grateful to the authors and contributors of
47
+ these projects.
48
+
49
+ ### Core Dependencies
50
+
51
+ | Library | License | Description |
52
+ |---------|---------|-------------|
53
+ | [IGNIS](https://github.com/VENIZIA-AI/ignis) | MIT | Inversion of control container and query filter vocabulary |
54
+ | [React](https://github.com/facebook/react) | MIT | User interface library |
55
+ | [react-admin](https://github.com/marmelab/react-admin) (`ra-core`) | MIT | Admin application framework |
56
+ | [reflect-metadata](https://github.com/rbuckton/reflect-metadata) | Apache-2.0 | Metadata reflection API |
57
+
58
+ ### Data and State Dependencies
59
+
60
+ | Library | License | Description |
61
+ |---------|---------|-------------|
62
+ | [Redux Toolkit](https://github.com/reduxjs/redux-toolkit) | MIT | State container |
63
+ | [React Redux](https://github.com/reduxjs/react-redux) | MIT | React bindings for Redux |
64
+ | [TanStack Query](https://github.com/TanStack/query) | MIT | Asynchronous state management |
65
+ | [React Router](https://github.com/remix-run/react-router) | MIT | Routing |
66
+ | [Axios](https://github.com/axios/axios) | MIT | HTTP client |
67
+ | [Socket.IO Client](https://github.com/socketio/socket.io) | MIT | Real-time bidirectional communication |
68
+ | [Lodash](https://github.com/lodash/lodash) | MIT | Utility library |
69
+ | [node-polyglot](https://github.com/airbnb/polyglot.js) (`ra-i18n-polyglot`) | BSD-2-Clause | Internationalisation |
70
+
71
+ ### UI Kit Dependencies
72
+
73
+ | Library | License | Description |
74
+ |---------|---------|-------------|
75
+ | [Tailwind CSS](https://github.com/tailwindlabs/tailwindcss) | MIT | Utility-first CSS framework |
76
+ | [Radix UI](https://github.com/radix-ui/primitives) | MIT | Unstyled, accessible component primitives |
77
+ | [Lucide](https://github.com/lucide-icons/lucide) | ISC | Icon set |
78
+ | [Day.js](https://github.com/iamkun/dayjs) | MIT | Date manipulation library |
79
+
80
+ ---
81
+
82
+ ## Acknowledgments
83
+
84
+ ARDOR is inspired by and built upon the work of many open-source projects:
85
+
86
+ - **[IGNIS](https://ignis.venizia.ai)** - The backend framework ARDOR is the frontend sibling of
87
+ - **[react-admin](https://marmelab.com/react-admin/)** by Marmelab - The admin framework ARDOR adapts
88
+ - **[LoopBack 4](https://loopback.io/)** by IBM/StrongLoop - Inspiration for the binding-key and provider patterns
89
+ - **[shadcn/ui](https://ui.shadcn.com/)** - Inspiration and source for the UI kit component layer
90
+
91
+ We thank all the maintainers and contributors of these projects for their excellent work.
92
+
93
+ ---
94
+
95
+ ## Contributing
96
+
97
+ By contributing to ARDOR, you agree that your contributions will be licensed under the MIT License.
package/README.md ADDED
@@ -0,0 +1,30 @@
1
+ # @venizia/ardor-kernel
2
+
3
+ The isomorphic core of [ARDOR](https://github.com/VENIZIA-AI/ardor). No React, no react-admin - the
4
+ layer a browser data client and a plain TypeScript consumer can both use.
5
+
6
+ ```bash
7
+ bun add @venizia/ardor-kernel @venizia/ignis-inversion @venizia/ignis-filter reflect-metadata
8
+ ```
9
+
10
+ Most applications install [`@venizia/ardor`](https://www.npmjs.com/package/@venizia/ardor) instead,
11
+ which re-exports this package.
12
+
13
+ ## What is in it
14
+
15
+ | Area | Exports |
16
+ |---|---|
17
+ | Application | `AbstractArdorApplication`, `BaseArdorApplication` - an IGNIS inversion `Container` with `injectable()` and `service()` helpers |
18
+ | Services | `BaseService`, `BaseApiService`, `DefaultAuthService`, `DefaultNetworkRequestService` |
19
+ | Providers | `BaseProvider` |
20
+ | Decorators | `api()` - logs and rethrows a failing API method |
21
+ | Bindings | `CoreBindings`, `LocalStorageKeys` |
22
+ | Constants | `RequestMethods`, `RequestTypes`, `RequestBodyTypes`, `RequestCountData`, `HeaderConsts`, `Environments`, `App` |
23
+ | Network | `AxiosNetworkRequest`, `NodeFetchNetworkRequest`, `AxiosFetcher`, `NodeFetcher` |
24
+ | Helpers | `Logger`, `BaseHelper`, `SocketIOClientHelper` |
25
+ | Utilities | `isDefined`, `isString`, `isNumber`, `isBrowser`, `isValidDate`, `isEditableTarget`, `int`, `float`, `toBoolean`, `toStringDecimal`, `getUID`, `keysToCamel`, `blobToBase64`, `stringify`, `parse` |
26
+ | Types | `IdType`, `AnyType`, `AnyObject`, `ValueOrPromise`, `ValueOf`, `TConstValue`, `TPaths`, `TFullPaths`, `ISendParams`, `IRestDataProviderOptions`, `IApplicationInfo`, `ICrudService`, ... |
27
+
28
+ ## License
29
+
30
+ MIT - see [LICENSE.md](./LICENSE.md).
@@ -0,0 +1,21 @@
1
+ import { Container, type TClass } from '@venizia/ignis-inversion';
2
+ import { type IApplicationInfo, type IArdorApplication, type ValueOrPromise } from '../../common';
3
+ export declare abstract class AbstractArdorApplication extends Container implements IArdorApplication {
4
+ abstract bindContext(): ValueOrPromise<void>;
5
+ abstract getAppInfo(): ValueOrPromise<IApplicationInfo>;
6
+ preConfigure(): ValueOrPromise<void>;
7
+ /**
8
+ * Classes bound under an explicit key, before `bindContext()` runs. This is the production-safe
9
+ * registration: `service(Class)` keys on `Class.name`, which a minifier rewrites, so a bundle
10
+ * built with mangled class names resolves `services.ProductApi` to nothing. A literal key here
11
+ * survives any build, and `keyof ReturnType<Application['bindingList']>` types `useInjectable`.
12
+ */
13
+ bindingList(): Record<string, TClass<unknown>>;
14
+ postConfigure(): ValueOrPromise<void>;
15
+ injectable<T>(scope: string, value: TClass<T>, tags?: Array<string>): void;
16
+ service<T>(value: TClass<T>): void;
17
+ start(): Promise<void>;
18
+ }
19
+ export declare abstract class BaseArdorApplication extends AbstractArdorApplication {
20
+ }
21
+ //# sourceMappingURL=abstract.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"abstract.d.ts","sourceRoot":"","sources":["../../../src/base/applications/abstract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,SAAS,EAAE,KAAK,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAEjF,OAAO,EAEL,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,cAAc,EACpB,MAAM,UAAU,CAAC;AAElB,8BAAsB,wBAAyB,SAAQ,SAAU,YAAW,iBAAiB;IAC3F,QAAQ,CAAC,WAAW,IAAI,cAAc,CAAC,IAAI,CAAC;IAC5C,QAAQ,CAAC,UAAU,IAAI,cAAc,CAAC,gBAAgB,CAAC;IAEvD,YAAY,IAAI,cAAc,CAAC,IAAI,CAAC;IAWpC;;;;;OAKG;IACH,WAAW,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;IAI9C,aAAa,IAAI,cAAc,CAAC,IAAI,CAAC;IAKrC,UAAU,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC;IAOnE,OAAO,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC;IAIrB,KAAK;CAIZ;AAED,8BAAsB,oBAAqB,SAAQ,wBAAwB;CAAG"}
@@ -0,0 +1,41 @@
1
+ import { BindingScopes, Container } from '@venizia/ignis-inversion';
2
+ import { CoreBindings, } from '../../common';
3
+ export class AbstractArdorApplication extends Container {
4
+ preConfigure() {
5
+ this.bind({ key: CoreBindings.APPLICATION_INSTANCE }).toValue(this);
6
+ this.bind({ key: CoreBindings.APPLICATION_INFO }).toValue(this.getAppInfo());
7
+ for (const [key, target] of Object.entries(this.bindingList())) {
8
+ this.bind({ key }).toClass(target).setScope(BindingScopes.SINGLETON);
9
+ }
10
+ return this.bindContext();
11
+ }
12
+ /**
13
+ * Classes bound under an explicit key, before `bindContext()` runs. This is the production-safe
14
+ * registration: `service(Class)` keys on `Class.name`, which a minifier rewrites, so a bundle
15
+ * built with mangled class names resolves `services.ProductApi` to nothing. A literal key here
16
+ * survives any build, and `keyof ReturnType<Application['bindingList']>` types `useInjectable`.
17
+ */
18
+ bindingList() {
19
+ return {};
20
+ }
21
+ postConfigure() { }
22
+ // Singleton by default: a service or provider registered by class is one instance per
23
+ // application, which is what every consumer bound by hand before this default existed.
24
+ // Keys on `value.name` - see `bindingList()` for the build-proof form.
25
+ injectable(scope, value, tags) {
26
+ this.bind({ key: `${scope}.${value.name}` })
27
+ .toClass(value)
28
+ .setScope(BindingScopes.SINGLETON)
29
+ .setTags(...(tags ?? []));
30
+ }
31
+ service(value) {
32
+ this.injectable('services', value);
33
+ }
34
+ async start() {
35
+ await this.preConfigure();
36
+ await this.postConfigure();
37
+ }
38
+ }
39
+ export class BaseArdorApplication extends AbstractArdorApplication {
40
+ }
41
+ //# sourceMappingURL=abstract.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"abstract.js","sourceRoot":"","sources":["../../../src/base/applications/abstract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,SAAS,EAAe,MAAM,0BAA0B,CAAC;AAEjF,OAAO,EACL,YAAY,GAIb,MAAM,UAAU,CAAC;AAElB,MAAM,OAAgB,wBAAyB,SAAQ,SAAS;IAI9D,YAAY;QACV,IAAI,CAAC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AAqB,SAAQ,wBAAwB;CAAG"}
@@ -0,0 +1,2 @@
1
+ export * from './abstract';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/base/applications/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './abstract';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/base/applications/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { BaseApiService } from '../services';
2
+ export declare function api(): (_target: BaseApiService, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
3
+ //# sourceMappingURL=api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../src/base/decorators/api.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C,wBAAgB,GAAG,KACA,SAAS,cAAc,EAAE,aAAa,MAAM,EAAE,YAAY,kBAAkB,wBAgB9F"}
@@ -0,0 +1,17 @@
1
+ export function api() {
2
+ return function (_target, propertyKey, descriptor) {
3
+ const originalMethod = descriptor.value;
4
+ descriptor.value = async function (...args) {
5
+ try {
6
+ const result = await Reflect.apply(originalMethod, this, args);
7
+ return result;
8
+ }
9
+ catch (error) {
10
+ this.logger.error('[%s] resource: %s | error: %o', propertyKey, this.resource, error);
11
+ throw error;
12
+ }
13
+ };
14
+ return descriptor;
15
+ };
16
+ }
17
+ //# sourceMappingURL=api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.js","sourceRoot":"","sources":["../../../src/base/decorators/api.ts"],"names":[],"mappings":"AAGA,MAAM,UAAU,GAAG;IACjB,OAAO,UAAU,OAAuB,EAAE,WAAmB,EAAE,UAA8B;QAC3F,MAAM,cAAc,GAAG,UAAU,CAAC,KAAK,CAAC;QAExC,UAAU,CAAC,KAAK,GAAG,KAAK,WAAiC,GAAG,IAAe;YACzE,IAAI,CAAC;gBACH,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC,KAAK,CAAC,cAAc,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;gBAC/D,OAAO,MAAM,CAAC;YAChB,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,+BAA+B,EAAE,WAAW,EAAE,IAAI,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;gBAEtF,MAAM,KAAK,CAAC;YACd,CAAC;QACH,CAAC,CAAC;QAEF,OAAO,UAAU,CAAC;IACpB,CAAC,CAAC;AACJ,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './api';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/base/decorators/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './api';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/base/decorators/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC"}
@@ -0,0 +1,5 @@
1
+ export * from './applications';
2
+ export * from './decorators';
3
+ export * from './providers';
4
+ export * from './services';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/base/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC"}
@@ -0,0 +1,5 @@
1
+ export * from './applications';
2
+ export * from './decorators';
3
+ export * from './providers';
4
+ export * from './services';
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/base/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { Container, type IProvider } from '@venizia/ignis-inversion';
2
+ import { BaseHelper } from '../../helpers/base-helper';
3
+ export declare abstract class BaseProvider<T> extends BaseHelper implements IProvider<T> {
4
+ abstract value(container: Container): T;
5
+ }
6
+ //# sourceMappingURL=base.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/base/providers/base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAErE,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,8BAAsB,YAAY,CAAC,CAAC,CAAE,SAAQ,UAAW,YAAW,SAAS,CAAC,CAAC,CAAC;IAC9E,QAAQ,CAAC,KAAK,CAAC,SAAS,EAAE,SAAS,GAAG,CAAC;CACxC"}
@@ -0,0 +1,4 @@
1
+ import { BaseHelper } from '../../helpers/base-helper';
2
+ export class BaseProvider extends BaseHelper {
3
+ }
4
+ //# sourceMappingURL=base.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.js","sourceRoot":"","sources":["../../../src/base/providers/base.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,MAAM,OAAgB,YAAgB,SAAQ,UAAU;CAEvD"}
@@ -0,0 +1,2 @@
1
+ export * from './base';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/base/providers/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './base';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/base/providers/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { BaseService } from './base';
2
+ export declare class BaseApiService extends BaseService {
3
+ protected resource: string;
4
+ constructor(opts: {
5
+ scope: string;
6
+ resource: string;
7
+ });
8
+ }
9
+ //# sourceMappingURL=api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../src/base/services/api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAErC,qBAAa,cAAe,SAAQ,WAAW;IAC7C,SAAS,CAAC,QAAQ,EAAE,MAAM,CAAC;gBAEf,IAAI,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE;CAItD"}
@@ -0,0 +1,8 @@
1
+ import { BaseService } from './base';
2
+ export class BaseApiService extends BaseService {
3
+ constructor(opts) {
4
+ super({ scope: opts.scope });
5
+ this.resource = opts.resource;
6
+ }
7
+ }
8
+ //# sourceMappingURL=api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.js","sourceRoot":"","sources":["../../../src/base/services/api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAErC,MAAM,OAAO,cAAe,SAAQ,WAAW;IAG7C,YAAY,IAAyC;QACnD,KAAK,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC;QAC7B,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;IAChC,CAAC;CACF"}
@@ -0,0 +1,20 @@
1
+ import { type IdType } from '../../common';
2
+ import { BaseService } from './base';
3
+ export declare class DefaultAuthService extends BaseService {
4
+ constructor();
5
+ getUser(): any;
6
+ getRoles(): Set<string>;
7
+ getAuth(): any;
8
+ saveAuth(opts: {
9
+ userId: number | string;
10
+ username?: string;
11
+ provider?: string;
12
+ referenceId?: IdType;
13
+ token: {
14
+ value: string;
15
+ type: string;
16
+ };
17
+ }): void;
18
+ cleanUp(): void;
19
+ }
20
+ //# sourceMappingURL=auth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../src/base/services/auth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAoB,MAAM,UAAU,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAErC,qBAAa,kBAAmB,SAAQ,WAAW;;IAKjD,OAAO;IAKP,QAAQ;IAMR,OAAO;IAUP,QAAQ,CAAC,IAAI,EAAE;QACb,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;QAExB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,WAAW,CAAC,EAAE,MAAM,CAAC;QAErB,KAAK,EAAE;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,MAAM,CAAA;SAAE,CAAC;KACxC;IAYD,OAAO;CASR"}
@@ -0,0 +1,40 @@
1
+ import { LocalStorageKeys } from '../../common';
2
+ import { BaseService } from './base';
3
+ export class DefaultAuthService extends BaseService {
4
+ constructor() {
5
+ super({ scope: DefaultAuthService.name });
6
+ }
7
+ getUser() {
8
+ const identity = localStorage.getItem(LocalStorageKeys.KEY_AUTH_IDENTITY);
9
+ return JSON.parse(identity?.length ? identity : '{}');
10
+ }
11
+ getRoles() {
12
+ const stored = localStorage.getItem(LocalStorageKeys.KEY_AUTH_PERMISSION);
13
+ const roles = JSON.parse(stored?.length ? stored : '[]');
14
+ return new Set(roles);
15
+ }
16
+ getAuth() {
17
+ try {
18
+ const encryptedToken = localStorage.getItem(LocalStorageKeys.KEY_AUTH_TOKEN) ?? '';
19
+ return JSON.parse(encryptedToken);
20
+ }
21
+ catch (error) {
22
+ this.logger.error('[getAuth] Failed to parse stored auth token | error: %s', error);
23
+ return null;
24
+ }
25
+ }
26
+ saveAuth(opts) {
27
+ const { token, userId, username = '', provider = '', referenceId = '' } = opts;
28
+ localStorage.setItem(LocalStorageKeys.KEY_AUTH_TOKEN, JSON.stringify(Object.assign({}, token, { provider })));
29
+ localStorage.setItem(LocalStorageKeys.KEY_AUTH_IDENTITY, JSON.stringify({ userId, username, referenceId, provider }));
30
+ }
31
+ cleanUp() {
32
+ Object.keys(localStorage).forEach((key) => {
33
+ if (!key.startsWith('@app/auth/') && !key.startsWith('@app/oauth2/')) {
34
+ return;
35
+ }
36
+ localStorage.removeItem(key);
37
+ });
38
+ }
39
+ }
40
+ //# sourceMappingURL=auth.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../src/base/services/auth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,gBAAgB,EAAE,MAAM,UAAU,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAErC,MAAM,OAAO,kBAAmB,SAAQ,WAAW;IACjD;QACE,KAAK,CAAC,EAAE,KAAK,EAAE,kBAAkB,CAAC,IAAI,EAAE,CAAC,CAAC;IAC5C,CAAC;IAED,OAAO;QACL,MAAM,QAAQ,GAAG,YAAY,CAAC,OAAO,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,CAAC;QAC1E,OAAO,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IACxD,CAAC;IAED,QAAQ;QACN,MAAM,MAAM,GAAG,YAAY,CAAC,OAAO,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,CAAC;QAC1E,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,E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G,CAAC,CAAC;QAC/B,CAAC,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -0,0 +1,8 @@
1
+ import { Logger } from '../../helpers';
2
+ export declare class BaseService {
3
+ protected logger: Logger;
4
+ constructor(opts: {
5
+ scope: string;
6
+ });
7
+ }
8
+ //# sourceMappingURL=base.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/base/services/base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEnC,qBAAa,WAAW;IACtB,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC;gBAEb,IAAI,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE;CAGpC"}
@@ -0,0 +1,7 @@
1
+ import { Logger } from '../../helpers';
2
+ export class BaseService {
3
+ constructor(opts) {
4
+ this.logger = Logger.getInstance({ scope: opts.scope });
5
+ }
6
+ }
7
+ //# sourceMappingURL=base.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.js","sourceRoot":"","sources":["../../../src/base/services/base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEnC,MAAM,OAAO,WAAW;IAGtB,YAAY,IAAuB;QACjC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,WAAW,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC;IAC1D,CAAC;CACF"}
@@ -0,0 +1,5 @@
1
+ export * from './api';
2
+ export * from './auth';
3
+ export * from './base';
4
+ export * from './network-request';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/base/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,mBAAmB,CAAC"}
@@ -0,0 +1,5 @@
1
+ export * from './api';
2
+ export * from './auth';
3
+ export * from './base';
4
+ export * from './network-request';
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/base/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,mBAAmB,CAAC"}
@@ -0,0 +1,79 @@
1
+ import { type AnyType, type IAuthRecoveryOptions, type IGetRequestPropsParams, type IGetRequestPropsResult, type INoAuthOptions, RequestCountData, type TConstValue, type TNoAuthPathRegex, type TRequestMethod, type TRequestType } from '../../common';
2
+ import { NodeFetchNetworkRequest } from '../../helpers';
3
+ import { BaseService } from './base';
4
+ export declare class DefaultNetworkRequestService extends BaseService {
5
+ protected authToken?: {
6
+ type?: string;
7
+ value: string;
8
+ };
9
+ protected useAuth: boolean;
10
+ protected noAuthPaths?: string[];
11
+ protected noAuthPathRegexes: RegExp[];
12
+ protected headers: Record<string, string>;
13
+ protected networkRequest: NodeFetchNetworkRequest;
14
+ protected baseUrl: string;
15
+ protected authRecovery?: IAuthRecoveryOptions;
16
+ private refreshing;
17
+ constructor(opts: INoAuthOptions & {
18
+ name: string;
19
+ baseUrl?: string;
20
+ headers?: HeadersInit;
21
+ authRecovery?: IAuthRecoveryOptions;
22
+ });
23
+ isNoAuthPath(opts: {
24
+ resource?: string;
25
+ paths?: string[];
26
+ }): boolean;
27
+ setUseAuth(useAuth: boolean): void;
28
+ setNoAuthPaths(noAuthPaths?: string[]): void;
29
+ setNoAuthPathRegex(noAuthPathRegex?: TNoAuthPathRegex): void;
30
+ private ensureRefreshed;
31
+ private canRecover;
32
+ getRequestAuthorizationHeader(): {
33
+ provider: any;
34
+ token: string;
35
+ };
36
+ setAuthToken(opts: {
37
+ type?: string;
38
+ value: string;
39
+ }): void;
40
+ setAuthRecovery(authRecovery: Partial<IAuthRecoveryOptions>): void;
41
+ getAuthRecovery(): IAuthRecoveryOptions | undefined;
42
+ setHeaders(headers: HeadersInit): void;
43
+ removeHeaders(keys: string[]): void;
44
+ getRequestHeader(opts: {
45
+ resource: string;
46
+ }): Record<string, string>;
47
+ getRequestProps(params: IGetRequestPropsParams): IGetRequestPropsResult;
48
+ convertResponse<TData = AnyType>(opts: {
49
+ response: {
50
+ data: TData | {
51
+ data: TData;
52
+ count?: number;
53
+ };
54
+ headers: Record<string, AnyType>;
55
+ };
56
+ type: string;
57
+ requestCountData?: TConstValue<typeof RequestCountData>;
58
+ }): {
59
+ data: TData;
60
+ count?: number;
61
+ total?: number;
62
+ };
63
+ private parseResponse;
64
+ doRequest<ReturnType = AnyType>(opts: IGetRequestPropsResult & {
65
+ baseUrl?: string;
66
+ query?: any;
67
+ type: TRequestType;
68
+ method: TRequestMethod;
69
+ paths: string[];
70
+ requestCountData?: TConstValue<typeof RequestCountData>;
71
+ }): Promise<{
72
+ data: ReturnType;
73
+ count?: number;
74
+ total?: number;
75
+ filename?: string;
76
+ contentDisposition?: string;
77
+ }>;
78
+ }
79
+ //# sourceMappingURL=network-request.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"network-request.d.ts","sourceRoot":"","sources":["../../../src/base/services/network-request.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,OAAO,EAGZ,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,cAAc,EAInB,gBAAgB,EAGhB,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,YAAY,EAClB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,uBAAuB,EAAE,MAAM,WAAW,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AA6ErC,qBAAa,4BAA6B,SAAQ,WAAW;IAC3D,SAAS,CAAC,SAAS,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC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