@xcelsior/support-api 0.1.6 → 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.6",
3
+ "version": "0.1.7",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "packages/**",
@@ -25,10 +25,10 @@
25
25
  "typescript": "^5.3.3",
26
26
  "@tsconfig/node18": "^18.2.2",
27
27
  "@types/node": "^20.11.16",
28
- "@xcelsior/lambda-http": "1.0.5",
29
- "@xcelsior/email": "1.0.2",
30
28
  "@xcelsior/aws": "1.0.4",
29
+ "@xcelsior/email": "1.0.2",
31
30
  "@xcelsior/support-client": "1.0.3",
31
+ "@xcelsior/lambda-http": "1.0.5",
32
32
  "@xcelsior/monitoring": "1.0.4"
33
33
  },
34
34
  "scripts": {
@@ -46,4 +46,3 @@ const listTicketEvents = async (event: APIGatewayProxyEventV2) => {
46
46
  };
47
47
 
48
48
  export const handler = middyfy(listTicketEvents, middlewareConfig);
49
-
@@ -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
@@ -274,14 +272,14 @@ export function SupportStack({ stack }: StackContext) {
274
272
  'GET /api/admin/config': {
275
273
  function: {
276
274
  handler: 'packages/functions/config/get.handler',
277
- functionName: `${stack.stage}-support-get-config`,
275
+ functionName: `${stack.stage}-support-get-configuration`,
278
276
  },
279
277
  cdk: { method: { apiKeyRequired: true } },
280
278
  },
281
279
  'PUT /api/admin/config': {
282
280
  function: {
283
281
  handler: 'packages/functions/config/update.handler',
284
- functionName: `${stack.stage}-support-update-config`,
282
+ functionName: `${stack.stage}-support-update-configuration`,
285
283
  },
286
284
  cdk: { method: { apiKeyRequired: true } },
287
285
  },