@intellegens/cornerstone-client 0.0.9999-alpha-8 → 0.0.9999-alpha-10
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.
- package/demo/index.ts +29 -0
- package/demo/public_html/favicon.ico +0 -0
- package/demo/public_html/index.html +106 -0
- package/demo/public_html/websettings.json +3 -0
- package/{adapters → dist/adapters}/CollectionViewAdapter/index.d.ts +0 -0
- package/{adapters → dist/adapters}/CollectionViewAdapter/index.js +0 -0
- package/{adapters → dist/adapters}/index.d.ts +0 -0
- package/{adapters → dist/adapters}/index.js +0 -0
- package/{data → dist/data}/api/dto/PropertyPathDto.d.ts +0 -0
- package/{data → dist/data}/api/dto/PropertyPathDto.js +0 -0
- package/{data → dist/data}/api/dto/ReadOptionsDto.d.ts +0 -0
- package/{data → dist/data}/api/dto/ReadOptionsDto.js +0 -0
- package/{data → dist/data}/api/dto/ReadResultDto.d.ts +0 -0
- package/{data → dist/data}/api/dto/ReadResultDto.js +0 -0
- package/{data → dist/data}/api/dto/ReadResultMetadataDto.d.ts +0 -0
- package/{data → dist/data}/api/dto/ReadResultMetadataDto.js +0 -0
- package/{data → dist/data}/api/dto/crud/CrudMetadataDto.d.ts +0 -0
- package/{data → dist/data}/api/dto/crud/CrudMetadataDto.js +0 -0
- package/{data → dist/data}/api/dto/crud/index.d.ts +0 -0
- package/{data → dist/data}/api/dto/crud/index.js +0 -0
- package/{data → dist/data}/api/dto/index.d.ts +0 -0
- package/{data → dist/data}/api/dto/index.js +0 -0
- package/{data → dist/data}/api/dto/read/ReadMetadataDto.d.ts +0 -0
- package/{data → dist/data}/api/dto/read/ReadMetadataDto.js +0 -0
- package/{data → dist/data}/api/dto/read/ReadSelectedDefinitionDto.d.ts +0 -0
- package/{data → dist/data}/api/dto/read/ReadSelectedDefinitionDto.js +0 -0
- package/{data → dist/data}/api/dto/read/ReadSelectedOrderingDefinitionDto.d.ts +0 -0
- package/{data → dist/data}/api/dto/read/ReadSelectedOrderingDefinitionDto.js +0 -0
- package/{data → dist/data}/api/dto/read/ReadSelectedOrderingPropertyDefinitionDto.d.ts +0 -0
- package/{data → dist/data}/api/dto/read/ReadSelectedOrderingPropertyDefinitionDto.js +0 -0
- package/{data → dist/data}/api/dto/read/ReadSelectedPaginationDefinitionDto.d.ts +0 -0
- package/{data → dist/data}/api/dto/read/ReadSelectedPaginationDefinitionDto.js +0 -0
- package/{data → dist/data}/api/dto/read/ReadSelectedSearchDefinitionDto.d.ts +0 -0
- package/{data → dist/data}/api/dto/read/ReadSelectedSearchDefinitionDto.js +0 -0
- package/{data → dist/data}/api/dto/read/ReadSelectedSearchPropertyDefinitionDto.d.ts +0 -0
- package/{data → dist/data}/api/dto/read/ReadSelectedSearchPropertyDefinitionDto.js +0 -0
- package/{data → dist/data}/api/dto/read/index.d.ts +0 -0
- package/{data → dist/data}/api/dto/read/index.js +0 -0
- package/{data → dist/data}/api/dto/response/ApiErrorDto.d.ts +0 -0
- package/{data → dist/data}/api/dto/response/ApiErrorDto.js +0 -0
- package/{data → dist/data}/api/dto/response/ApiResponseDto.d.ts +0 -0
- package/{data → dist/data}/api/dto/response/ApiResponseDto.js +0 -0
- package/{data → dist/data}/api/dto/response/ApiSuccessResponseDto.d.ts +0 -0
- package/{data → dist/data}/api/dto/response/ApiSuccessResponseDto.js +0 -0
- package/{data → dist/data}/api/dto/response/EmptyMetadataDto.d.ts +0 -0
- package/{data → dist/data}/api/dto/response/EmptyMetadataDto.js +0 -0
- package/{data → dist/data}/api/dto/response/index.d.ts +0 -0
- package/{data → dist/data}/api/dto/response/index.js +0 -0
- package/{data → dist/data}/api/enum/index.d.ts +0 -0
- package/{data → dist/data}/api/enum/index.js +0 -0
- package/{data → dist/data}/api/enum/read/ReadSelectedComparisonOperator.d.ts +0 -0
- package/{data → dist/data}/api/enum/read/ReadSelectedComparisonOperator.js +0 -0
- package/{data → dist/data}/api/enum/read/ReadSelectedLogicalOperator.d.ts +0 -0
- package/{data → dist/data}/api/enum/read/ReadSelectedLogicalOperator.js +0 -0
- package/{data → dist/data}/api/enum/read/ReadSelectedOrderingDirection.d.ts +0 -0
- package/{data → dist/data}/api/enum/read/ReadSelectedOrderingDirection.js +0 -0
- package/{data → dist/data}/api/enum/read/ReadSelectedPropertyType.d.ts +0 -0
- package/{data → dist/data}/api/enum/read/ReadSelectedPropertyType.js +0 -0
- package/{data → dist/data}/api/enum/read/index.d.ts +0 -0
- package/{data → dist/data}/api/enum/read/index.js +0 -0
- package/{data → dist/data}/api/enum/response/ApiErrorCodes.d.ts +0 -0
- package/{data → dist/data}/api/enum/response/ApiErrorCodes.js +0 -0
- package/{data → dist/data}/api/enum/response/index.d.ts +0 -0
- package/{data → dist/data}/api/enum/response/index.js +0 -0
- package/{data → dist/data}/api/index.d.ts +0 -0
- package/{data → dist/data}/api/index.js +0 -0
- package/{data → dist/data}/api/interface/IConcurrencySafe.d.ts +0 -0
- package/{data → dist/data}/api/interface/IConcurrencySafe.js +0 -0
- package/{data → dist/data}/api/interface/IIdentifiable.d.ts +0 -0
- package/{data → dist/data}/api/interface/IIdentifiable.js +0 -0
- package/{data → dist/data}/api/interface/IIdentifiableSecondary.d.ts +0 -0
- package/{data → dist/data}/api/interface/IIdentifiableSecondary.js +0 -0
- package/{data → dist/data}/api/interface/index.d.ts +0 -0
- package/{data → dist/data}/api/interface/index.js +0 -0
- package/{data → dist/data}/auth/dto/ClaimDto.d.ts +0 -0
- package/{data → dist/data}/auth/dto/ClaimDto.js +0 -0
- package/{data → dist/data}/auth/dto/RegisterRequestDto.d.ts +0 -0
- package/{data → dist/data}/auth/dto/RegisterRequestDto.js +0 -0
- package/{data → dist/data}/auth/dto/RoleDto.d.ts +0 -0
- package/{data → dist/data}/auth/dto/RoleDto.js +0 -0
- package/{data → dist/data}/auth/dto/SignInRequestDto.d.ts +0 -0
- package/{data → dist/data}/auth/dto/SignInRequestDto.js +0 -0
- package/{data → dist/data}/auth/dto/TokensDto.d.ts +0 -0
- package/{data → dist/data}/auth/dto/TokensDto.js +0 -0
- package/{data → dist/data}/auth/dto/UserDto.d.ts +0 -0
- package/{data → dist/data}/auth/dto/UserDto.js +0 -0
- package/{data → dist/data}/auth/dto/UserInfoDto.d.ts +0 -0
- package/{data → dist/data}/auth/dto/UserInfoDto.js +0 -0
- package/{data → dist/data}/auth/dto/index.d.ts +0 -0
- package/{data → dist/data}/auth/dto/index.js +0 -0
- package/{data → dist/data}/auth/index.d.ts +0 -0
- package/{data → dist/data}/auth/index.js +0 -0
- package/{data → dist/data}/index.d.ts +0 -0
- package/{data → dist/data}/index.js +0 -0
- package/{index.d.ts → dist/index.d.ts} +0 -0
- package/{index.js → dist/index.js} +0 -0
- package/{services → dist/services}/api/ApiCrudControllerClient/index.d.ts +0 -0
- package/{services → dist/services}/api/ApiCrudControllerClient/index.js +0 -0
- package/{services → dist/services}/api/ApiInitializationService/index.d.ts +0 -0
- package/{services → dist/services}/api/ApiInitializationService/index.js +0 -0
- package/{services → dist/services}/api/ApiReadControllerClient/index.d.ts +0 -0
- package/{services → dist/services}/api/ApiReadControllerClient/index.js +0 -0
- package/{services → dist/services}/api/HttpService/FetchHttpService.d.ts +0 -0
- package/{services → dist/services}/api/HttpService/FetchHttpService.js +0 -0
- package/{services → dist/services}/api/HttpService/HttpRequestConfig.d.ts +0 -0
- package/{services → dist/services}/api/HttpService/HttpRequestConfig.js +0 -0
- package/{services → dist/services}/api/HttpService/HttpResponse.d.ts +0 -0
- package/{services → dist/services}/api/HttpService/HttpResponse.js +0 -0
- package/{services → dist/services}/api/HttpService/IHttpService.d.ts +0 -0
- package/{services → dist/services}/api/HttpService/IHttpService.js +0 -0
- package/{services → dist/services}/api/HttpService/index.d.ts +0 -0
- package/{services → dist/services}/api/HttpService/index.js +0 -0
- package/{services → dist/services}/api/UserManagementControllerClient/index.d.ts +0 -0
- package/{services → dist/services}/api/UserManagementControllerClient/index.js +0 -0
- package/{services → dist/services}/api/index.d.ts +0 -0
- package/{services → dist/services}/api/index.js +0 -0
- package/{services → dist/services}/auth/client/AuthService/index.d.ts +0 -0
- package/{services → dist/services}/auth/client/AuthService/index.js +0 -0
- package/{services → dist/services}/auth/client/AuthorizationManagementControllerClient/index.d.ts +0 -0
- package/{services → dist/services}/auth/client/AuthorizationManagementControllerClient/index.js +0 -0
- package/{services → dist/services}/auth/client/index.d.ts +0 -0
- package/{services → dist/services}/auth/client/index.js +0 -0
- package/{services → dist/services}/auth/index.d.ts +0 -0
- package/{services → dist/services}/auth/index.js +0 -0
- package/{services → dist/services}/index.d.ts +0 -0
- package/{services → dist/services}/index.js +0 -0
- package/{utils → dist/utils}/index.d.ts +0 -0
- package/{utils → dist/utils}/index.js +0 -0
- package/jest.config.js +29 -0
- package/package.json +24 -24
- package/src/adapters/CollectionViewAdapter/index.ts +390 -0
- package/src/adapters/index.ts +1 -0
- package/src/data/api/dto/PropertyPathDto.ts +4 -0
- package/src/data/api/dto/ReadOptionsDto.ts +8 -0
- package/src/data/api/dto/ReadResultDto.ts +13 -0
- package/src/data/api/dto/ReadResultMetadataDto.ts +8 -0
- package/src/data/api/dto/crud/CrudMetadataDto.ts +4 -0
- package/src/data/api/dto/crud/index.ts +1 -0
- package/src/data/api/dto/index.ts +4 -0
- package/src/data/api/dto/read/ReadMetadataDto.ts +8 -0
- package/src/data/api/dto/read/ReadSelectedDefinitionDto.ts +21 -0
- package/src/data/api/dto/read/ReadSelectedNestedCollectionCriteriaDto.ts +25 -0
- package/src/data/api/dto/read/ReadSelectedNestedCriteriaDto.ts +20 -0
- package/src/data/api/dto/read/ReadSelectedOrderingDefinitionDto.ts +8 -0
- package/src/data/api/dto/read/ReadSelectedOrderingPropertyDefinitionDto.ts +16 -0
- package/src/data/api/dto/read/ReadSelectedPaginationDefinitionDto.ts +13 -0
- package/src/data/api/dto/read/ReadSelectedSearchDefinitionDto.ts +43 -0
- package/src/data/api/dto/read/ReadSelectedSearchPropertyDefinitionDto.ts +186 -0
- package/src/data/api/dto/read/index.ts +9 -0
- package/src/data/api/dto/response/ApiErrorDto.ts +21 -0
- package/src/data/api/dto/response/ApiErrorResponseDto.ts +13 -0
- package/src/data/api/dto/response/ApiResponseDto.ts +7 -0
- package/src/data/api/dto/response/ApiSuccessResponseDto.ts +13 -0
- package/src/data/api/dto/response/MetadataDto.ts +24 -0
- package/src/data/api/dto/response/index.ts +5 -0
- package/src/data/api/enum/index.ts +2 -0
- package/src/data/api/enum/read/ReadSelectedCollectionOperator.ts +17 -0
- package/src/data/api/enum/read/ReadSelectedComparisonOperator.ts +96 -0
- package/src/data/api/enum/read/ReadSelectedLogicalOperator.ts +16 -0
- package/src/data/api/enum/read/ReadSelectedOrderingDirection.ts +13 -0
- package/src/data/api/enum/read/ReadSelectedPropertyType.ts +86 -0
- package/src/data/api/enum/read/index.ts +5 -0
- package/src/data/api/enum/response/ErrorCode.ts +13 -0
- package/src/data/api/enum/response/index.ts +1 -0
- package/src/data/api/index.ts +3 -0
- package/src/data/api/interface/IConcurrencySafe.ts +9 -0
- package/src/data/api/interface/IIdentifiable.ts +12 -0
- package/src/data/api/interface/IIdentifiableSecondary.ts +9 -0
- package/src/data/api/interface/index.ts +3 -0
- package/src/data/auth/dto/ClaimDto.ts +4 -0
- package/src/data/auth/dto/RegisterRequestDto.ts +4 -0
- package/src/data/auth/dto/RoleDto.ts +6 -0
- package/src/data/auth/dto/SignInRequestDto.ts +4 -0
- package/src/data/auth/dto/TokensDto.ts +4 -0
- package/src/data/auth/dto/UserDto.ts +18 -0
- package/src/data/auth/dto/UserInfoDto.ts +15 -0
- package/src/data/auth/dto/index.ts +4 -0
- package/src/data/auth/index.ts +2 -0
- package/src/data/auth/policy.ts +63 -0
- package/src/data/index.ts +2 -0
- package/src/index.ts +4 -0
- package/src/services/api/ApiCrudControllerClient/index.ts +129 -0
- package/src/services/api/ApiInitializationService/index.ts +254 -0
- package/src/services/api/ApiReadControllerClient/index.ts +137 -0
- package/src/services/api/HttpService/FetchHttpService.ts +34 -0
- package/src/services/api/HttpService/HttpRequestConfig.ts +10 -0
- package/src/services/api/HttpService/HttpResponse.ts +14 -0
- package/src/services/api/HttpService/IHttpService.ts +17 -0
- package/src/services/api/HttpService/README.md +106 -0
- package/src/services/api/HttpService/index.ts +12 -0
- package/src/services/api/UserManagementControllerClient/index.ts +160 -0
- package/src/services/api/index.ts +5 -0
- package/src/services/auth/client/AuthService/index.ts +187 -0
- package/src/services/auth/client/AuthorizationManagementControllerClient/index.ts +165 -0
- package/src/services/auth/client/index.ts +2 -0
- package/src/services/auth/index.ts +1 -0
- package/src/services/index.ts +2 -0
- package/src/utils/authorization/index.ts +47 -0
- package/src/utils/index.ts +2 -0
- package/src/utils/result/index.ts +25 -0
- package/src/utils/search/index.ts +150 -0
- package/tests/ApiClients.test.ts +284 -0
- package/tests/CollectionViewAdapter.test.ts +392 -0
- package/tests/HttpService.test.ts +303 -0
- package/tests/setup.ts +76 -0
- package/tsconfig.json +19 -0
- package/LICENSE.md +0 -7
- /package/{data → dist/data}/api/dto/read/ReadSelectedNestedCollectionCriteriaDto.d.ts +0 -0
- /package/{data → dist/data}/api/dto/read/ReadSelectedNestedCollectionCriteriaDto.js +0 -0
- /package/{data → dist/data}/api/dto/read/ReadSelectedNestedCriteriaDto.d.ts +0 -0
- /package/{data → dist/data}/api/dto/read/ReadSelectedNestedCriteriaDto.js +0 -0
- /package/{data → dist/data}/api/dto/response/ApiErrorResponseDto.d.ts +0 -0
- /package/{data → dist/data}/api/dto/response/ApiErrorResponseDto.js +0 -0
- /package/{data → dist/data}/api/dto/response/MetadataDto.d.ts +0 -0
- /package/{data → dist/data}/api/dto/response/MetadataDto.js +0 -0
- /package/{data → dist/data}/api/enum/read/ReadSelectedCollectionOperator.d.ts +0 -0
- /package/{data → dist/data}/api/enum/read/ReadSelectedCollectionOperator.js +0 -0
- /package/{data → dist/data}/api/enum/response/ErrorCode.d.ts +0 -0
- /package/{data → dist/data}/api/enum/response/ErrorCode.js +0 -0
- /package/{data → dist/data}/auth/policy.d.ts +0 -0
- /package/{data → dist/data}/auth/policy.js +0 -0
- /package/{utils → dist/utils}/authorization/index.d.ts +0 -0
- /package/{utils → dist/utils}/authorization/index.js +0 -0
- /package/{utils → dist/utils}/result/index.d.ts +0 -0
- /package/{utils → dist/utils}/result/index.js +0 -0
- /package/{utils → dist/utils}/search/index.d.ts +0 -0
- /package/{utils → dist/utils}/search/index.js +0 -0
package/demo/index.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import express from 'express';
|
|
2
|
+
import { createProxyMiddleware } from 'http-proxy-middleware';
|
|
3
|
+
|
|
4
|
+
const HTTP_PORT = 3000;
|
|
5
|
+
const API_PORT = 5235;
|
|
6
|
+
|
|
7
|
+
const app = express();
|
|
8
|
+
|
|
9
|
+
// config proxy for api calls
|
|
10
|
+
app.use(
|
|
11
|
+
createProxyMiddleware({
|
|
12
|
+
pathFilter: '/api',
|
|
13
|
+
target: `http://localhost:${API_PORT}`,
|
|
14
|
+
changeOrigin: true,
|
|
15
|
+
logger: console,
|
|
16
|
+
}),
|
|
17
|
+
);
|
|
18
|
+
app.use(
|
|
19
|
+
express.static('./demo/public_html', {
|
|
20
|
+
setHeaders: function (res) {
|
|
21
|
+
if (Math.random() > 0.5) res.set('CORNERSTONE-API-BASEURL', `/api`);
|
|
22
|
+
},
|
|
23
|
+
}),
|
|
24
|
+
);
|
|
25
|
+
app.listen(HTTP_PORT, () => {
|
|
26
|
+
console.log();
|
|
27
|
+
console.log(`Demo App listening on: http://localhost:${HTTP_PORT}`);
|
|
28
|
+
console.log(`... API requests proxied to: http://localhost:${API_PORT}/api`);
|
|
29
|
+
});
|
|
Binary file
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<!-- HEAD -->
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="UTF-8" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
+
<title>Cornerstone Test Client</title>
|
|
8
|
+
|
|
9
|
+
<!-- General styling -->
|
|
10
|
+
<style>
|
|
11
|
+
html {
|
|
12
|
+
font-family: monospace;
|
|
13
|
+
}
|
|
14
|
+
.comment {
|
|
15
|
+
color: gray;
|
|
16
|
+
}
|
|
17
|
+
</style>
|
|
18
|
+
</head>
|
|
19
|
+
|
|
20
|
+
<!-- BODY -->
|
|
21
|
+
<body>
|
|
22
|
+
<!-- API base URL detection demo template-->
|
|
23
|
+
<div>
|
|
24
|
+
<h2>API Detection Demo</h2>
|
|
25
|
+
<pre class="comment">
|
|
26
|
+
This demo will randomly initialize client configuration from one of:
|
|
27
|
+
- Response CORNERSTONE-API-BASEURL header
|
|
28
|
+
- A settings file: websettings.json
|
|
29
|
+
</pre>
|
|
30
|
+
|
|
31
|
+
<span>Detected API base URL as: <strong id="api-base-url"></strong> via method <strong id="api-base-url-method"></strong></span>
|
|
32
|
+
</pre>
|
|
33
|
+
</div>
|
|
34
|
+
<!-- API base URL detection demo JS -->
|
|
35
|
+
<script type="module">
|
|
36
|
+
import { apiService } from './index.js';
|
|
37
|
+
document.getElementById('api-base-url').innerText = await apiService._getApiBaseUrl();
|
|
38
|
+
document.getElementById('api-base-url-method').innerText = apiService._apiBaseUrlDetectionMethod;
|
|
39
|
+
</script>
|
|
40
|
+
|
|
41
|
+
<!-- Auth demo template -->
|
|
42
|
+
<hr />
|
|
43
|
+
<div>
|
|
44
|
+
<h2>Auth Demo</h2>
|
|
45
|
+
<pre class="comment">
|
|
46
|
+
This demo will allow you to interact with the authentication API by:
|
|
47
|
+
- Checking the authentication status
|
|
48
|
+
- Authenticating with a username and password
|
|
49
|
+
- Deauthenticating
|
|
50
|
+
</pre>
|
|
51
|
+
<div>
|
|
52
|
+
<div>
|
|
53
|
+
Check your current authentication status:
|
|
54
|
+
<button id="whoAmI">Who am I?</button>
|
|
55
|
+
</div>
|
|
56
|
+
<div>
|
|
57
|
+
Authenticate using your credentials:
|
|
58
|
+
<input type="text" name="username" id="username" placeholder="Username" value="admin@test.com" />
|
|
59
|
+
<input type="password" name="password" id="password" placeholder="Password" value="Test1234!" />
|
|
60
|
+
<button id="signin">Sign in</button>
|
|
61
|
+
</div>
|
|
62
|
+
<div>
|
|
63
|
+
Deauthenticate:
|
|
64
|
+
<button id="signout">Sign out</button>
|
|
65
|
+
</div>
|
|
66
|
+
</div>
|
|
67
|
+
<div id="authentication-info" style="margin-top: 10px"></div>
|
|
68
|
+
</div>
|
|
69
|
+
<!-- API base URL detection demo JS -->
|
|
70
|
+
<script type="module">
|
|
71
|
+
import { authService } from './index.js';
|
|
72
|
+
// whoAmI demo functionality
|
|
73
|
+
document.getElementById('whoAmI').addEventListener('click', async () => {
|
|
74
|
+
const authInfoEl = document.getElementById('authentication-info');
|
|
75
|
+
try {
|
|
76
|
+
const user = await authService.whoAmI();
|
|
77
|
+
authInfoEl.innerText = `You are authenticated as: ${JSON.stringify(user)}`;
|
|
78
|
+
} catch (err) {
|
|
79
|
+
authInfoEl.innerText = 'You are not authenticated!';
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
// login demo functionality
|
|
83
|
+
document.getElementById('signin').addEventListener('click', async () => {
|
|
84
|
+
const authInfoEl = document.getElementById('authentication-info');
|
|
85
|
+
const username = document.getElementById('username').value;
|
|
86
|
+
const password = document.getElementById('password').value;
|
|
87
|
+
try {
|
|
88
|
+
const user = await authService.signin(username, password);
|
|
89
|
+
authInfoEl.innerText = `Signed in in successfully as: ${JSON.stringify(user)}`;
|
|
90
|
+
} catch (err) {
|
|
91
|
+
authInfoEl.innerText = `Failed signing in: ${err.message}`;
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
// logout demo functionality
|
|
95
|
+
document.getElementById('signout').addEventListener('click', async () => {
|
|
96
|
+
const authInfoEl = document.getElementById('authentication-info');
|
|
97
|
+
try {
|
|
98
|
+
await authService.signout();
|
|
99
|
+
authInfoEl.innerText = `Successfully signed out`;
|
|
100
|
+
} catch (err) {
|
|
101
|
+
authInfoEl.innerText = `Failed signing out: ${err.message}`;
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
</script>
|
|
105
|
+
</body>
|
|
106
|
+
</html>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/{services → dist/services}/auth/client/AuthorizationManagementControllerClient/index.d.ts
RENAMED
|
File without changes
|
package/{services → dist/services}/auth/client/AuthorizationManagementControllerClient/index.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/jest.config.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
preset: 'ts-jest/presets/default-esm',
|
|
3
|
+
extensionsToTreatAsEsm: ['.ts'],
|
|
4
|
+
testEnvironment: 'jsdom',
|
|
5
|
+
roots: ['<rootDir>/src', '<rootDir>/tests'],
|
|
6
|
+
testMatch: ['**/__tests__/**/*.+(ts|tsx|js)', '**/*.(test|spec).+(ts|tsx|js)'],
|
|
7
|
+
transform: {
|
|
8
|
+
'^.+\\.(ts|tsx)$': [
|
|
9
|
+
'ts-jest',
|
|
10
|
+
{
|
|
11
|
+
useESM: true,
|
|
12
|
+
},
|
|
13
|
+
],
|
|
14
|
+
},
|
|
15
|
+
collectCoverageFrom: ['src/**/*.{ts,tsx}', '!src/**/*.d.ts', '!src/**/index.ts'],
|
|
16
|
+
moduleNameMapper: {
|
|
17
|
+
'^@/(.*)$': '<rootDir>/src/$1',
|
|
18
|
+
'^@adapters/(.*)$': '<rootDir>/src/adapters/$1',
|
|
19
|
+
'^@adapters$': '<rootDir>/src/adapters',
|
|
20
|
+
'^@data/(.*)$': '<rootDir>/src/data/$1',
|
|
21
|
+
'^@data$': '<rootDir>/src/data',
|
|
22
|
+
'^@services/(.*)$': '<rootDir>/src/services/$1',
|
|
23
|
+
'^@services$': '<rootDir>/src/services',
|
|
24
|
+
'^@utils/(.*)$': '<rootDir>/src/utils/$1',
|
|
25
|
+
'^@utils$': '<rootDir>/src/utils',
|
|
26
|
+
},
|
|
27
|
+
setupFilesAfterEnv: ['<rootDir>/tests/setup.ts'],
|
|
28
|
+
testTimeout: 10000,
|
|
29
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intellegens/cornerstone-client",
|
|
3
|
-
"version": "0.0.9999-alpha-
|
|
3
|
+
"version": "0.0.9999-alpha-10",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishable": true,
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -13,33 +13,33 @@
|
|
|
13
13
|
"intellegens",
|
|
14
14
|
"cornerstone"
|
|
15
15
|
],
|
|
16
|
+
"devDependencies": {
|
|
17
|
+
"@eslint/js": "^9.21.0",
|
|
18
|
+
"@types/express": "^5.0.0",
|
|
19
|
+
"@types/jest": "^29.5.12",
|
|
20
|
+
"@types/node": "^22.13.9",
|
|
21
|
+
"eslint": "^9.21.0",
|
|
22
|
+
"eslint-config-prettier": "^10.0.1",
|
|
23
|
+
"express": "^4.21.2",
|
|
24
|
+
"globals": "^16.0.0",
|
|
25
|
+
"jest": "^29.7.0",
|
|
26
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
27
|
+
"prettier": "^3.5.2",
|
|
28
|
+
"ts-jest": "^29.1.2",
|
|
29
|
+
"tsc-alias": "^1.8.11",
|
|
30
|
+
"typescript-eslint": "^8.26.0",
|
|
31
|
+
"vite": "6.3.4",
|
|
32
|
+
"zod": "^3.24.2"
|
|
33
|
+
},
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"http-proxy-middleware": "^3.0.3",
|
|
36
|
+
"typescript": "~5.9.3"
|
|
37
|
+
},
|
|
16
38
|
"scripts": {
|
|
17
39
|
"clean": "pnpx rimraf '{dist}'",
|
|
18
40
|
"test": "jest",
|
|
19
41
|
"coverage": "jest --coverage",
|
|
20
42
|
"build": "pnpm run clean && tsc && tsc-alias",
|
|
21
43
|
"start": "pnpm run build && pnpx vite build && pnpx tsx ./demo"
|
|
22
|
-
},
|
|
23
|
-
"devDependencies": {
|
|
24
|
-
"@eslint/js": "catalog:",
|
|
25
|
-
"@types/express": "catalog:",
|
|
26
|
-
"@types/jest": "catalog:",
|
|
27
|
-
"@types/node": "catalog:",
|
|
28
|
-
"eslint": "catalog:",
|
|
29
|
-
"eslint-config-prettier": "catalog:",
|
|
30
|
-
"express": "catalog:",
|
|
31
|
-
"globals": "catalog:",
|
|
32
|
-
"jest": "catalog:",
|
|
33
|
-
"jest-environment-jsdom": "catalog:",
|
|
34
|
-
"prettier": "catalog:",
|
|
35
|
-
"ts-jest": "catalog:",
|
|
36
|
-
"tsc-alias": "catalog:",
|
|
37
|
-
"typescript-eslint": "catalog:",
|
|
38
|
-
"vite": "catalog:",
|
|
39
|
-
"zod": "catalog:"
|
|
40
|
-
},
|
|
41
|
-
"dependencies": {
|
|
42
|
-
"http-proxy-middleware": "^3.0.3",
|
|
43
|
-
"typescript": "catalog:"
|
|
44
44
|
}
|
|
45
|
-
}
|
|
45
|
+
}
|