@telia-ace/alliance-portal 1.0.9-next.0 → 1.1.0-next.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 (3) hide show
  1. package/package.json +10 -21
  2. package/CHANGELOG.md +0 -345
  3. package/dist/server.cjs +0 -883
package/package.json CHANGED
@@ -1,43 +1,32 @@
1
1
  {
2
2
  "name": "@telia-ace/alliance-portal",
3
- "version": "1.0.9-next.0",
3
+ "version": "1.1.0-next.0",
4
4
  "description": "ACE Alliance portal",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "author": "Telia Company AB",
7
- "main": "dist/index.js",
8
- "types": "dist/index.d.ts",
9
7
  "type": "module",
10
8
  "files": [
11
9
  "LICENSE.txt",
12
- "README.md",
13
- "CHANGELOG.md",
14
- "dist/"
10
+ "README.md"
15
11
  ],
16
12
  "devDependencies": {
17
- "@trpc/client": "^10.41.0",
18
- "@types/express": "^4.17.20",
19
- "@types/node": "^20.8.5",
20
- "@types/supertest": "^2.0.15",
13
+ "@trpc/client": "^10.44.1",
21
14
  "connect-redis": "^7.1.0",
22
15
  "dotenv": "^16.3.1",
23
16
  "express": "^5.0.0-beta.1",
24
- "express-openid-connect": "^2.17.0",
25
- "jose": "^4.15.3",
26
- "redis": "^4.6.10",
27
- "supertest": "^6.3.3",
28
- "tsup": "^7.2.0",
29
- "vitest": "^0.34.6",
30
- "zod": "^3.22.4",
31
- "@telia-ace/alliance-data": "^1.0.1",
32
- "@telia-ace/alliance-internal-node-utilities": "^1.0.6-next.0"
17
+ "express-openid-connect": "^2.17.1",
18
+ "jose": "^5.1.3",
19
+ "redis": "^4.6.11",
20
+ "@telia-ace/alliance-data": "^1.1.0-next.0",
21
+ "@telia-ace/alliance-internal-node-utilities": "^1.1.0-next.0"
33
22
  },
34
23
  "publishConfig": {
35
24
  "access": "public"
36
25
  },
37
26
  "scripts": {
27
+ "build:dev": "tsc && tsup",
28
+ "build:prod": "tsc && tsup --minify",
38
29
  "dev": "tsx watch ./src/server.ts",
39
- "build:dev": "tsup",
40
- "build:prod": "tsup",
41
30
  "test": "vitest"
42
31
  }
43
32
  }
package/CHANGELOG.md DELETED
@@ -1,345 +0,0 @@
1
- # @telia-ace/alliance-portal
2
-
3
- ## 1.0.9-next.0
4
-
5
- ### Patch Changes
6
-
7
- - Move public key related utilities to internal node utilities package. ([#437](https://github.com/telia-company/ace-alliance-sdk/pull/437))
8
-
9
- ## 1.0.8
10
-
11
- ### Patch Changes
12
-
13
- - 2858c59: Replace NestJS with Express 5.
14
- - 321a5d6: Replace `@telia-ace/alliance-databases`, using NestJS + GraphQL, with `@telia-ace/alliance-data`, using Expess 5 + tRPC.
15
- - 1b9c7a9: Fixed an issue where the cookie policy route was not returning the expected result under certain conditions (https://github.com/telia-company/ace-alliance-sdk/issues/422).
16
- - d8c3069: Improve error page with support for log out.
17
- - d8c3069: Support logging out by navigating to `/logout`.
18
-
19
- ## 1.0.8-next.3
20
-
21
- ### Patch Changes
22
-
23
- - d8c3069: Improve error page with support for log out.
24
- - d8c3069: Support logging out by navigating to `/logout`.
25
-
26
- ## 1.0.8-next.2
27
-
28
- ### Patch Changes
29
-
30
- - 2858c59: Replace NestJS with Express 5.
31
-
32
- ## 1.0.8-next.1
33
-
34
- ### Patch Changes
35
-
36
- - 1b9c7a9: Fixed an issue where the cookie policy route was not returning the expected result under certain conditions (https://github.com/telia-company/ace-alliance-sdk/issues/422).
37
-
38
- ## 1.0.8-next.0
39
-
40
- ### Patch Changes
41
-
42
- - 321a5d6: Replace `@telia-ace/alliance-databases`, using NestJS + GraphQL, with `@telia-ace/alliance-data`, using Expess 5 + tRPC.
43
- - Updated dependencies [321a5d6]
44
- - @telia-ace/alliance-internal-node-utilities@1.0.5-next.0
45
-
46
- ## 1.0.7
47
-
48
- ### Patch Changes
49
-
50
- - c2335bc: Validate and define default values for environment config using Zod.
51
- - c2335bc: Move health check endpoint to `/-/health`.
52
- - c2335bc: Add 404 page for non existant Workspaces.
53
- - c2335bc: Add support for `LANDING_PAGE` environment variable to display a landing page on the portal instance root.
54
- - c2335bc: Respond with correct status code in endpoints.
55
- - c2335bc: Add current Workspace name to Customer Portal page title.
56
- - c2335bc: Define `HEALTHCHECK` in Dockerfile.
57
- - c2335bc: Setup health checks for services (https://github.com/telia-company/ace-alliance-sdk/issues/388).
58
- - c2335bc: Fully support portals with static Workspace and Customer.
59
- - c2335bc: Include `skipGroupClaimCheck` environment variable value in trace log when user signs in.
60
- - c2335bc: Ensure unnecessary files aren't copied into Docker images.
61
- - c2335bc: Replace `ORIGIN_AS_ROOT_URL` with `ROOT_URL_SUB_PATH` to configure what sub path a Portal will be hosted on.
62
- - c2335bc: Ensure workspace existence is verified in health check for specific workspaces.
63
- - c2335bc: Support customer / workspace specific portals.
64
- - Updated dependencies [c2335bc]
65
- - Updated dependencies [c2335bc]
66
- - Updated dependencies [c2335bc]
67
- - Updated dependencies [c2335bc]
68
- - Updated dependencies [c2335bc]
69
- - Updated dependencies [c2335bc]
70
- - Updated dependencies [c2335bc]
71
- - @telia-ace/alliance-internal-node-utilities@1.0.4
72
-
73
- ## 1.0.7-next.6
74
-
75
- ### Patch Changes
76
-
77
- - 8434f9c: Ensure workspace existence is verified in health check for specific workspaces.
78
-
79
- ## 1.0.7-next.5
80
-
81
- ### Patch Changes
82
-
83
- - 17d7be4: Move health check endpoint to `/-/health`.
84
- - 17d7be4: Add 404 page for non existant Workspaces.
85
- - 17d7be4: Add support for `LANDING_PAGE` environment variable to display a landing page on the portal instance root.
86
- - 17d7be4: Respond with correct status code in endpoints.
87
- - 17d7be4: Add current Workspace name to Customer Portal page title.
88
- - 17d7be4: Include `skipGroupClaimCheck` environment variable value in trace log when user signs in.
89
- - 17d7be4: Ensure unnecessary files aren't copied into Docker images.
90
- - 17d7be4: Replace `ORIGIN_AS_ROOT_URL` with `ROOT_URL_SUB_PATH` to configure what sub path a Portal will be hosted on.
91
- - Updated dependencies [17d7be4]
92
- - Updated dependencies [17d7be4]
93
- - @telia-ace/alliance-internal-node-utilities@1.0.4-next.4
94
-
95
- ## 1.0.7-next.4
96
-
97
- ### Patch Changes
98
-
99
- - 0c97bb2: Validate and define default values for environment config using Zod.
100
- - 0c97bb2: Fully support portals with static Workspace and Customer.
101
- - Updated dependencies [0c97bb2]
102
- - Updated dependencies [0c97bb2]
103
- - @telia-ace/alliance-internal-node-utilities@1.0.4-next.3
104
-
105
- ## 1.0.7-next.3
106
-
107
- ### Patch Changes
108
-
109
- - 7ef3b70: Define `HEALTHCHECK` in Dockerfile.
110
-
111
- ## 1.0.7-next.2
112
-
113
- ### Patch Changes
114
-
115
- - 9b2cfd7: Setup health checks for services (https://github.com/telia-company/ace-alliance-sdk/issues/388).
116
- - Updated dependencies [9b2cfd7]
117
- - @telia-ace/alliance-internal-node-utilities@1.0.4-next.2
118
-
119
- ## 1.0.7-next.1
120
-
121
- ### Patch Changes
122
-
123
- - Updated dependencies [3b53cfc]
124
- - @telia-ace/alliance-internal-node-utilities@1.0.4-next.1
125
-
126
- ## 1.0.7-next.0
127
-
128
- ### Patch Changes
129
-
130
- - cd44395: Support customer / workspace specific portals.
131
- - Updated dependencies [cd44395]
132
- - @telia-ace/alliance-internal-node-utilities@1.0.4-next.0
133
-
134
- ## 1.0.6
135
-
136
- ### Patch Changes
137
-
138
- - e8eda01: Fix issue with user session cookie being too large.
139
- - ba13c59: Use `.env` files for configuration during development instead of JS/TS modules.
140
- - 0f20a09: Change to unformatted JSON logs.
141
- - ba13c59: Set user as `system-admin` if user claims include ACE Enterprise Admin group/role.
142
- - f2aafe4: Store user session in Redis cache to avoid hitting cookie size limits (https://github.com/telia-company/ace-alliance-sdk/issues/377).
143
- - cb4647b: Fix incomprehensible unauthorized text for users with insufficient workspace access.
144
- - f743a2b: Skip checking user claims for groups when `AUTH_SKIP_GROUP_CLAIM_CHECK` is set to `'true'`.
145
- - Updated dependencies [0f20a09]
146
- - Updated dependencies [ba11e1f]
147
- - Updated dependencies [f2aafe4]
148
- - Updated dependencies [828548a]
149
- - Updated dependencies [c9b1488]
150
- - @telia-ace/alliance-internal-node-utilities@1.0.3
151
-
152
- ## 1.0.6-next.7
153
-
154
- ### Patch Changes
155
-
156
- - 0f20a09: Change to unformatted JSON logs.
157
- - Updated dependencies [0f20a09]
158
- - @telia-ace/alliance-internal-node-utilities@1.0.3-next.4
159
-
160
- ## 1.0.6-next.6
161
-
162
- ### Patch Changes
163
-
164
- - Updated dependencies [c9b1488]
165
- - @telia-ace/alliance-internal-node-utilities@1.0.3-next.3
166
-
167
- ## 1.0.6-next.5
168
-
169
- ### Patch Changes
170
-
171
- - f2aafe4: Store user session in Redis cache to avoid hitting cookie size limits (https://github.com/telia-company/ace-alliance-sdk/issues/377).
172
- - Updated dependencies [f2aafe4]
173
- - @telia-ace/alliance-internal-node-utilities@1.0.3-next.2
174
-
175
- ## 1.0.6-next.4
176
-
177
- ### Patch Changes
178
-
179
- - f743a2b: Skip checking user claims for groups when `AUTH_SKIP_GROUP_CLAIM_CHECK` is set to `'true'`.
180
-
181
- ## 1.0.6-next.3
182
-
183
- ### Patch Changes
184
-
185
- - e8eda01: Fix issue with user session cookie being too large.
186
-
187
- ## 1.0.6-next.2
188
-
189
- ### Patch Changes
190
-
191
- - ba13c59: Use `.env` files for configuration during development instead of JS/TS modules.
192
- - ba13c59: Set user as `system-admin` if user claims include ACE Enterprise Admin group/role.
193
-
194
- ## 1.0.6-next.1
195
-
196
- ### Patch Changes
197
-
198
- - Updated dependencies [ba11e1f]
199
- - @telia-ace/alliance-internal-node-utilities@1.0.3-next.1
200
-
201
- ## 1.0.6-next.0
202
-
203
- ### Patch Changes
204
-
205
- - cb4647b: Fix incomprehensible unauthorized text for users with insufficient workspace access.
206
- - Updated dependencies [828548a]
207
- - @telia-ace/alliance-internal-node-utilities@1.0.3-next.0
208
-
209
- ## 1.0.5
210
-
211
- ### Patch Changes
212
-
213
- - 7a0e643: Show 401 unauthorized page for users without access to the workspace.
214
- - 59f0d3f: Remove unnecessary scripts.
215
- - 8763155: Update all dependencies to latest.
216
- - Updated dependencies [59f0d3f]
217
- - Updated dependencies [9c6dc92]
218
- - @telia-ace/alliance-internal-node-utilities@1.0.2
219
-
220
- ## 1.0.5-next.3
221
-
222
- ### Patch Changes
223
-
224
- - 7a0e643: Show 401 unauthorized page for users without access to the workspace.
225
-
226
- ## 1.0.5-next.2
227
-
228
- ### Patch Changes
229
-
230
- - Updated dependencies [9c6dc92]
231
- - @telia-ace/alliance-internal-node-utilities@1.0.2-next.1
232
-
233
- ## 1.0.5-next.1
234
-
235
- ### Patch Changes
236
-
237
- - 59f0d3f: Remove unnecessary scripts.
238
- - Updated dependencies [59f0d3f]
239
- - @telia-ace/alliance-internal-node-utilities@1.0.2-next.0
240
-
241
- ## 1.0.5-next.0
242
-
243
- ### Patch Changes
244
-
245
- - 8763155: Update all dependencies to latest.
246
-
247
- ## 1.0.4
248
-
249
- ### Patch Changes
250
-
251
- - 511ba31: Implement exception handling with error codes linking to [SDK error code wiki on GitHub](https://github.com/telia-company/ace-alliance-sdk/wiki/error-codes) (https://github.com/telia-company/ace-alliance-sdk/issues/24).
252
- - 236e315: Add cookie policy document route.
253
- - 511ba31: Add trace logs.
254
- - 511ba31: Use PinoJS to handle logging, add support for `SERVICE_LOG_LEVEL` environment variable (https://github.com/telia-company/ace-alliance-sdk/issues/24).
255
- - Updated dependencies [fd378fe]
256
- - @telia-ace/alliance-internal-node-utilities@1.0.1
257
-
258
- ## 1.0.4-next.2
259
-
260
- ### Patch Changes
261
-
262
- - Updated dependencies [fd378fe]
263
- - @telia-ace/alliance-internal-node-utilities@1.0.1-next.0
264
-
265
- ## 1.0.4-next.1
266
-
267
- ### Patch Changes
268
-
269
- - 511ba31: Implement exception handling with error codes linking to [SDK error code wiki on GitHub](https://github.com/telia-company/ace-alliance-sdk/wiki/error-codes) (https://github.com/telia-company/ace-alliance-sdk/issues/24).
270
- - 511ba31: Add trace logs.
271
- - 511ba31: Use PinoJS to handle logging, add support for `SERVICE_LOG_LEVEL` environment variable (https://github.com/telia-company/ace-alliance-sdk/issues/24).
272
-
273
- ## 1.0.4-next.0
274
-
275
- ### Patch Changes
276
-
277
- - 236e315: Add cookie policy document route.
278
-
279
- ## 1.0.3
280
-
281
- ### Patch Changes
282
-
283
- - a327e4e: Replace Passport.js with `express-openid-connect`.
284
-
285
- ## 1.0.3-next.0
286
-
287
- ### Patch Changes
288
-
289
- - a327e4e: Replace Passport.js with `express-openid-connect`.
290
-
291
- ## 1.0.2
292
-
293
- ### Patch Changes
294
-
295
- - 1ea5886: Sync the Alliance JWT content with its .NET counterpart.
296
-
297
- ## 1.0.2-next.0
298
-
299
- ### Patch Changes
300
-
301
- - 2452588: Sync the Alliance JWT content with its .NET counterpart.
302
-
303
- ## 1.0.1
304
-
305
- ### Patch Changes
306
-
307
- - 0397918: Regenerate GraphQL TypeScript.
308
- - 1569c8b: Support `WEBPROVISIONS_DISTRIBUTION_URL` configuration value.
309
- - c89a20d: Add loader to portal HTML.
310
- - 1569c8b: Use enums for configuration.
311
- - 69d2ced: Create new users in database after logging in.
312
- - 51a6f19: Add `@telia-ace/alliance-portal` package.
313
- - 69d2ced: Update all dependencies to latest.
314
-
315
- ## 1.0.1-next.4
316
-
317
- ### Patch Changes
318
-
319
- - 0397918: Regenerate GraphQL TypeScript.
320
-
321
- ## 1.0.1-next.3
322
-
323
- ### Patch Changes
324
-
325
- - 69d2ced: Create new users in database after logging in.
326
- - 69d2ced: Update all dependencies to latest.
327
-
328
- ## 1.0.1-next.2
329
-
330
- ### Patch Changes
331
-
332
- - c89a20d: Add loader to portal HTML.
333
-
334
- ## 1.0.1-next.1
335
-
336
- ### Patch Changes
337
-
338
- - 1569c8b: Support `WEBPROVISIONS_DISTRIBUTION_URL` configuration value.
339
- - 1569c8b: Use enums for configuration.
340
-
341
- ## 1.0.1-next.0
342
-
343
- ### Patch Changes
344
-
345
- - 51a6f19: Add `@telia-ace/alliance-portal` package.