@xcelsior/support-api 0.1.14 → 1.0.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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xcelsior/support-api",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"packages/**",
|
|
@@ -9,6 +9,9 @@
|
|
|
9
9
|
"*.json",
|
|
10
10
|
"sst.config.ts"
|
|
11
11
|
],
|
|
12
|
+
"devDependencies": {
|
|
13
|
+
"@types/lodash": "^4.17.23"
|
|
14
|
+
},
|
|
12
15
|
"dependencies": {
|
|
13
16
|
"@aws-sdk/client-dynamodb": "^3.888.0",
|
|
14
17
|
"@aws-sdk/client-s3": "^3.888.0",
|
|
@@ -16,6 +19,7 @@
|
|
|
16
19
|
"@aws-sdk/lib-dynamodb": "^3.888.0",
|
|
17
20
|
"@aws-sdk/util-dynamodb": "^3.888.0",
|
|
18
21
|
"meilisearch": "^0.55.0",
|
|
22
|
+
"lodash": "^4.17.21",
|
|
19
23
|
"sst": "^2.40.3",
|
|
20
24
|
"zod": "^3.22.4",
|
|
21
25
|
"@types/aws-lambda": "^8.10.152",
|
|
@@ -25,10 +29,10 @@
|
|
|
25
29
|
"typescript": "^5.3.3",
|
|
26
30
|
"@tsconfig/node18": "^18.2.2",
|
|
27
31
|
"@types/node": "^20.11.16",
|
|
32
|
+
"@xcelsior/lambda-http": "1.0.5",
|
|
28
33
|
"@xcelsior/aws": "1.0.5",
|
|
29
34
|
"@xcelsior/monitoring": "1.0.4",
|
|
30
35
|
"@xcelsior/email": "1.0.2",
|
|
31
|
-
"@xcelsior/lambda-http": "1.0.5",
|
|
32
36
|
"@xcelsior/support-client": "1.0.7"
|
|
33
37
|
},
|
|
34
38
|
"scripts": {
|
|
@@ -16,6 +16,7 @@ import { z } from 'zod';
|
|
|
16
16
|
import { DynamoDBService } from '@xcelsior/aws/src/dynamodb';
|
|
17
17
|
import { SqsService } from '@xcelsior/aws/src/sqs';
|
|
18
18
|
import { randomUUID } from 'node:crypto';
|
|
19
|
+
import _ from 'lodash';
|
|
19
20
|
|
|
20
21
|
type SlaConfig = { low?: number; medium?: number; high?: number; critical?: number };
|
|
21
22
|
type TicketUpdatePayload = z.infer<typeof ticketUpdateSchema>;
|
|
@@ -264,7 +265,7 @@ const recordUpdateEvent = async (
|
|
|
264
265
|
id: randomUUID(),
|
|
265
266
|
ticketId,
|
|
266
267
|
type: 'updated',
|
|
267
|
-
payload: { changes },
|
|
268
|
+
payload: { changes: _.omit(changes, 'assigneeEmail') },
|
|
268
269
|
createdAt: new Date().toISOString(),
|
|
269
270
|
},
|
|
270
271
|
},
|