@xcelsior/support-api 0.1.7 → 0.1.9

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.7",
3
+ "version": "0.1.9",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "packages/**",
@@ -25,11 +25,11 @@
25
25
  "typescript": "^5.3.3",
26
26
  "@tsconfig/node18": "^18.2.2",
27
27
  "@types/node": "^20.11.16",
28
- "@xcelsior/aws": "1.0.4",
29
- "@xcelsior/email": "1.0.2",
30
- "@xcelsior/support-client": "1.0.3",
31
28
  "@xcelsior/lambda-http": "1.0.5",
32
- "@xcelsior/monitoring": "1.0.4"
29
+ "@xcelsior/email": "1.0.2",
30
+ "@xcelsior/aws": "1.0.4",
31
+ "@xcelsior/monitoring": "1.0.4",
32
+ "@xcelsior/support-client": "1.0.3"
33
33
  },
34
34
  "scripts": {
35
35
  "dev": "sst dev --stage dev --mode basic",
@@ -171,9 +171,20 @@ export function SupportStack({ stack }: StackContext) {
171
171
  },
172
172
  });
173
173
 
174
+
175
+ const binds = [
176
+ supportConfigTable,
177
+ categoriesTable,
178
+ teamsTable,
179
+ ticketsTable,
180
+ ticketEventsTable,
181
+ attachmentsBucket,
182
+ reminderQueue,
183
+ ];
184
+
174
185
  const notificationWorker = new Function(stack, 'support-notification-worker', {
175
186
  handler: 'packages/functions/workers/notificationWorker.handler',
176
- bind: [supportConfigTable, ticketsTable, ticketEventsTable, reminderQueue],
187
+ bind: binds,
177
188
  functionName: `${stack.stage}-support-notification-worker`,
178
189
  environment: {
179
190
  ...baseFunctionEnv,
@@ -202,7 +213,7 @@ export function SupportStack({ stack }: StackContext) {
202
213
  job: {
203
214
  function: {
204
215
  handler: 'packages/functions/workers/reminderScanner.handler',
205
- bind: [supportConfigTable, ticketsTable, reminderQueue],
216
+ bind: binds,
206
217
  functionName: `${stack.stage}-support-reminder-scanner`,
207
218
  environment: baseFunctionEnv,
208
219
  timeout: '5 minutes',
@@ -220,14 +231,7 @@ export function SupportStack({ stack }: StackContext) {
220
231
  'ticket-search-sync': {
221
232
  function: {
222
233
  handler: 'packages/functions/tickets/searchSync.handler',
223
- bind: [
224
- supportConfigTable,
225
- categoriesTable,
226
- teamsTable,
227
- ticketsTable,
228
- ticketEventsTable,
229
- attachmentsBucket,
230
- ],
234
+ bind: binds,
231
235
  functionName: `${stack.stage}-support-ticket-search-sync`,
232
236
  environment: baseFunctionEnv,
233
237
  nodejs: {
@@ -247,15 +251,7 @@ export function SupportStack({ stack }: StackContext) {
247
251
  },
248
252
  defaults: {
249
253
  function: {
250
- bind: [
251
- supportConfigTable,
252
- categoriesTable,
253
- teamsTable,
254
- ticketsTable,
255
- ticketEventsTable,
256
- attachmentsBucket,
257
- reminderQueue,
258
- ],
254
+ bind: binds,
259
255
  environment: {
260
256
  ...baseFunctionEnv,
261
257
  },