@xcelsior/support-api 0.1.5 → 0.1.7
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xcelsior/support-api",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"packages/**",
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
"@tsconfig/node18": "^18.2.2",
|
|
27
27
|
"@types/node": "^20.11.16",
|
|
28
28
|
"@xcelsior/aws": "1.0.4",
|
|
29
|
-
"@xcelsior/
|
|
30
|
-
"@xcelsior/
|
|
29
|
+
"@xcelsior/email": "1.0.2",
|
|
30
|
+
"@xcelsior/support-client": "1.0.3",
|
|
31
31
|
"@xcelsior/lambda-http": "1.0.5",
|
|
32
|
-
"@xcelsior/
|
|
32
|
+
"@xcelsior/monitoring": "1.0.4"
|
|
33
33
|
},
|
|
34
34
|
"scripts": {
|
|
35
35
|
"dev": "sst dev --stage dev --mode basic",
|
package/stacks/SupportStack.ts
CHANGED
|
@@ -17,9 +17,7 @@ export function SupportStack({ stack }: StackContext) {
|
|
|
17
17
|
// VPC Configuration - optional, lookup existing VPC by ID if provided
|
|
18
18
|
const vpcId = process.env.VPC_ID;
|
|
19
19
|
|
|
20
|
-
const vpc = vpcId
|
|
21
|
-
? ec2.Vpc.fromLookup(stack, 'support-vpc', { vpcId })
|
|
22
|
-
: undefined;
|
|
20
|
+
const vpc = vpcId ? ec2.Vpc.fromLookup(stack, 'support-vpc', { vpcId }) : undefined;
|
|
23
21
|
|
|
24
22
|
// Create security group for Lambda functions (only if VPC is configured)
|
|
25
23
|
const lambdaSecurityGroup = vpc
|
|
@@ -271,17 +269,17 @@ export function SupportStack({ stack }: StackContext) {
|
|
|
271
269
|
},
|
|
272
270
|
cors: true,
|
|
273
271
|
routes: {
|
|
274
|
-
'GET /api/admin/
|
|
272
|
+
'GET /api/admin/config': {
|
|
275
273
|
function: {
|
|
276
274
|
handler: 'packages/functions/config/get.handler',
|
|
277
|
-
functionName: `${stack.stage}-support-get-
|
|
275
|
+
functionName: `${stack.stage}-support-get-configuration`,
|
|
278
276
|
},
|
|
279
277
|
cdk: { method: { apiKeyRequired: true } },
|
|
280
278
|
},
|
|
281
|
-
'PUT /api/admin/
|
|
279
|
+
'PUT /api/admin/config': {
|
|
282
280
|
function: {
|
|
283
281
|
handler: 'packages/functions/config/update.handler',
|
|
284
|
-
functionName: `${stack.stage}-support-update-
|
|
282
|
+
functionName: `${stack.stage}-support-update-configuration`,
|
|
285
283
|
},
|
|
286
284
|
cdk: { method: { apiKeyRequired: true } },
|
|
287
285
|
},
|