@plusscommunities/pluss-maintenance-aws 1.1.2 → 1.1.4-beta.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-lock.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plusscommunities/pluss-maintenance-aws",
3
- "version": "1.1.2",
3
+ "version": "1.1.4-beta.0",
4
4
  "lockfileVersion": 1,
5
5
  "requires": true,
6
6
  "dependencies": {
@@ -13,9 +13,9 @@
13
13
  }
14
14
  },
15
15
  "@plusscommunities/pluss-core-aws": {
16
- "version": "1.4.1",
17
- "resolved": "https://registry.npmjs.org/@plusscommunities/pluss-core-aws/-/pluss-core-aws-1.4.1.tgz",
18
- "integrity": "sha512-fZ3UQ7lo+amnymSZ0uDImKORRflMHAo4C/I+gTlpUW+SgWg+5lj9dyaUuUlm91zcaQs9054V8eK8hVPT5YGZJQ==",
16
+ "version": "1.5.15-beta.0",
17
+ "resolved": "https://registry.npmjs.org/@plusscommunities/pluss-core-aws/-/pluss-core-aws-1.5.15-beta.0.tgz",
18
+ "integrity": "sha512-UK7iQHOWNuEWCw4nCiChtFJvFccQKj57Ozl3cnvYRu5GIl7uNAD1Nm4v1UQmlBPS4bY4bEFPpcQjhVLjOrwoVg==",
19
19
  "requires": {
20
20
  "@aws/dynamodb-auto-marshaller": "^0.7.1",
21
21
  "amazon-cognito-identity-js": "^2.0.19",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plusscommunities/pluss-maintenance-aws",
3
- "version": "1.1.2",
3
+ "version": "1.1.4-beta.0",
4
4
  "description": "Extension package to enable maintenance on Pluss Communities Platform",
5
5
  "scripts": {
6
6
  "gc": "node ../../tools/gc ./",
@@ -8,16 +8,16 @@
8
8
  "betapatch": "npm version prepatch --preid=beta",
9
9
  "patch": "npm version patch",
10
10
  "deploy": "npm run gc && npm run gs && serverless deploy",
11
- "betaupload": "rm -rf .serverless && npm publish --access public --tag beta",
11
+ "betaupload": "rm -rf .serverless && npm i && npm publish --access public --tag beta",
12
12
  "betaupload:p": "npm run betapatch && npm run betaupload",
13
- "upload": "rm -rf .serverless && npm publish --access public",
13
+ "upload": "rm -rf .serverless && npm i && npm publish --access public",
14
14
  "upload:p": "npm run patch && npm run upload"
15
15
  },
16
16
  "author": "Phillip Suh",
17
17
  "license": "ISC",
18
18
  "dependencies": {
19
19
  "@aws/dynamodb-auto-marshaller": "^0.7.1",
20
- "@plusscommunities/pluss-core-aws": "1.4.1",
20
+ "@plusscommunities/pluss-core-aws": "1.5.15-beta.0",
21
21
  "amazon-cognito-identity-js": "^2.0.19",
22
22
  "axios": "^0.18.0",
23
23
  "expo-server-sdk": "^3.0.1",
@@ -38,6 +38,9 @@
38
38
  "serverless-prune-plugin": "^1.4.1"
39
39
  },
40
40
  "files": [
41
- "*"
41
+ "db/*",
42
+ "ticketing/*",
43
+ "*.js",
44
+ "package*.json"
42
45
  ]
43
46
  }
package/config.json DELETED
@@ -1 +0,0 @@
1
- {"keys_url":"https://cognito-idp.ap-southeast-2.amazonaws.com/ap-southeast-2_qC95qHeQz/.well-known/jwks.json","maintenanceInstantComplete":false,"communityConfig":{"name":"Pluss Communities Development","company":"Pluss Communities","subdomain":"dev","onelinkUrl":"http://onelink.to/pluss60","iosAppUrl":"https://itunes.apple.com/au/app/aveo/id1358888537?mt=8","androidAppUrl":"https://play.google.com/store/apps/details?id=pluss.android.aveo","emailBrandingAbovePoweredBy":{"image":"https://pluss60-dev-media.s3-ap-southeast-2.amazonaws.com/pluss/website/plusscommunites.png","height":29,"width":100},"adminSiteUrl":"https://dev.plusscommunities.com"},"anySignUpSite":"newstead","strings":{"FACILITY":"facility"},"hasIntroTerms":false,"serverlessConfig":{"profile":"dev-serverless-admin","key":"AKIA4LLDS4NHWYEE4MAI","secret":"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"}}
package/serverless.yml DELETED
@@ -1,379 +0,0 @@
1
- service: dev-maintenance
2
-
3
- frameworkVersion: ">=1.1.0 <2.0.0"
4
-
5
- provider:
6
- name: aws
7
- runtime: nodejs14.x
8
- region: ap-southeast-2
9
- profile: dev-serverless-admin
10
- stage: dev
11
- deploymentBucket: serverless.deploys.pluss60.${self:custom.client}.${self:provider.region}
12
- environment:
13
- tablePrefix: ${self:custom.tablePrefix}
14
- iamRoleStatements:
15
- - Effect: Allow
16
- Action:
17
- - dynamodb:Query
18
- - dynamodb:Scan
19
- - dynamodb:GetItem
20
- - dynamodb:PutItem
21
- - dynamodb:UpdateItem
22
- - dynamodb:DeleteItem
23
- Resource: "arn:aws:dynamodb:${opt:region, self:provider.region}:*:table/*"
24
-
25
- plugins:
26
- - serverless-domain-manager
27
- - serverless-prune-plugin
28
-
29
- custom:
30
- client: dev
31
- functionPrefix: ""
32
- tablePrefix: ${self:custom.client}-${self:provider.stage}-
33
- customDomain:
34
- domainName: dev.pluss60-api.com
35
- basePath: maintenance-${self:provider.stage}
36
- stage: ${self:provider.stage}
37
- createRoute53Record: true
38
- securityPolicy: tls_1_2
39
- prune:
40
- automatic: true
41
- number: 1
42
-
43
- functions:
44
- getJobType:
45
- handler: getJobType.getJobType
46
- tags: maintenance
47
- memorySize: 256
48
- timeout: 10
49
- events:
50
- - http:
51
- path: ${self:custom.functionPrefix}getjobtype
52
- method: post
53
- cors:
54
- origin: "*"
55
- headers:
56
- - Content-Type
57
- - authkey
58
- getJobTypes:
59
- handler: getJobTypes.getJobTypes
60
- tags: maintenance
61
- memorySize: 256
62
- timeout: 10
63
- events:
64
- - http:
65
- path: ${self:custom.functionPrefix}getjobtypes
66
- method: post
67
- cors:
68
- origin: "*"
69
- headers:
70
- - Content-Type
71
- - authkey
72
- createJobType:
73
- handler: createJobType.createJobType
74
- tags: maintenance
75
- memorySize: 256
76
- timeout: 10
77
- events:
78
- - http:
79
- path: ${self:custom.functionPrefix}createJobType
80
- method: post
81
- cors:
82
- origin: "*"
83
- headers:
84
- - Content-Type
85
- - authkey
86
- editJobType:
87
- handler: editJobType.editJobType
88
- tags: maintenance
89
- memorySize: 256
90
- timeout: 10
91
- events:
92
- - http:
93
- path: ${self:custom.functionPrefix}editJobType
94
- method: post
95
- cors:
96
- origin: "*"
97
- headers:
98
- - Content-Type
99
- - authkey
100
- deleteJobType:
101
- handler: deleteJobType.deleteJobType
102
- tags: maintenance
103
- memorySize: 256
104
- timeout: 10
105
- events:
106
- - http:
107
- path: ${self:custom.functionPrefix}deleteJobType
108
- method: post
109
- cors:
110
- origin: "*"
111
- headers:
112
- - Content-Type
113
- - authkey
114
- getJob:
115
- handler: getJob.getJob
116
- tags: maintenance
117
- memorySize: 256
118
- timeout: 10
119
- events:
120
- - http:
121
- path: ${self:custom.functionPrefix}getJob
122
- method: post
123
- cors:
124
- origin: "*"
125
- headers:
126
- - Content-Type
127
- - authkey
128
- getJobs:
129
- handler: getJobs.getJobs
130
- tags: maintenance
131
- memorySize: 256
132
- timeout: 10
133
- events:
134
- - http:
135
- path: ${self:custom.functionPrefix}getJobs
136
- method: post
137
- cors:
138
- origin: "*"
139
- headers:
140
- - Content-Type
141
- - authkey
142
- createJob:
143
- handler: createJob.createJob
144
- tags: maintenance
145
- memorySize: 256
146
- timeout: 10
147
- events:
148
- - http:
149
- path: ${self:custom.functionPrefix}sendMaintenance
150
- method: post
151
- cors:
152
- origin: "*"
153
- headers:
154
- - Content-Type
155
- - authkey
156
- editJob:
157
- handler: editJob.editJob
158
- tags: maintenance
159
- memorySize: 256
160
- timeout: 10
161
- events:
162
- - http:
163
- path: ${self:custom.functionPrefix}editJob
164
- method: post
165
- cors:
166
- origin: "*"
167
- headers:
168
- - Content-Type
169
- - authkey
170
- deleteJob:
171
- handler: deleteJob.deleteJob
172
- tags: maintenance
173
- memorySize: 256
174
- timeout: 10
175
- events:
176
- - http:
177
- path: ${self:custom.functionPrefix}requests/remove
178
- method: post
179
- cors:
180
- origin: "*"
181
- headers:
182
- - Content-Type
183
- - authkey
184
- editJobStatus:
185
- handler: editJobStatus.editJobStatus
186
- tags: maintenance
187
- memorySize: 256
188
- timeout: 10
189
- events:
190
- - http:
191
- path: ${self:custom.functionPrefix}editJobStatus
192
- method: post
193
- cors:
194
- origin: "*"
195
- headers:
196
- - Content-Type
197
- - authkey
198
- editNote:
199
- handler: editNote.editNote
200
- tags: maintenance
201
- memorySize: 256
202
- timeout: 10
203
- events:
204
- - http:
205
- path: ${self:custom.functionPrefix}requests/note
206
- method: post
207
- cors:
208
- origin: "*"
209
- headers:
210
- - Content-Type
211
- - authkey
212
- addTicket:
213
- handler: ticketing/addTicket.addTicket
214
- tags: maintenance
215
- memorySize: 256
216
- timeout: 10
217
- events:
218
- - http:
219
- path: ${self:custom.functionPrefix}tickets/add
220
- method: post
221
- cors:
222
- origin: "*"
223
- headers:
224
- - Content-Type
225
- - authkey
226
- editTicketStatus:
227
- handler: ticketing/editTicketStatus.editTicketStatus
228
- tags: maintenance
229
- memorySize: 256
230
- timeout: 10
231
- events:
232
- - http:
233
- path: ${self:custom.functionPrefix}tickets/status
234
- method: post
235
- cors:
236
- origin: "*"
237
- headers:
238
- - Content-Type
239
- - authkey
240
- deleteTicket:
241
- handler: ticketing/deleteTicket.deleteTicket
242
- tags: maintenance
243
- memorySize: 256
244
- timeout: 10
245
- events:
246
- - http:
247
- path: ${self:custom.functionPrefix}tickets/delete
248
- method: post
249
- cors:
250
- origin: "*"
251
- headers:
252
- - Content-Type
253
- - authkey
254
- getTickets:
255
- handler: ticketing/getTickets.getTickets
256
- tags: maintenance
257
- memorySize: 256
258
- timeout: 10
259
- events:
260
- - http:
261
- path: ${self:custom.functionPrefix}tickets/get
262
- method: get
263
- cors:
264
- origin: "*"
265
- headers:
266
- - Content-Type
267
- - authkey
268
- getTicket:
269
- handler: ticketing/getTicket.getTicket
270
- tags: maintenance
271
- memorySize: 256
272
- timeout: 10
273
- events:
274
- - http:
275
- path: ${self:custom.functionPrefix}tickets/get/{id}
276
- method: get
277
- cors:
278
- origin: "*"
279
- headers:
280
- - Content-Type
281
- - authkey
282
- jobChanged:
283
- handler: jobChanged.jobChanged
284
- memorySize: 2048
285
- timeout: 30
286
- events:
287
- - stream:
288
- type: dynamodb
289
- batchSize: 1
290
- startingPosition: LATEST
291
- arn:
292
- Fn::GetAtt:
293
- - maintenance
294
- - StreamArn
295
- resources:
296
- Resources:
297
- jobtypes:
298
- Type: "AWS::DynamoDB::Table"
299
- DeletionPolicy: Retain
300
- Properties:
301
- AttributeDefinitions:
302
- - AttributeName: id
303
- AttributeType: S
304
- - AttributeName: site
305
- AttributeType: S
306
- - AttributeName: typeName
307
- AttributeType: S
308
- KeySchema:
309
- - AttributeName: id
310
- KeyType: HASH
311
- TableName: ${self:custom.tablePrefix}jobTypes
312
- BillingMode: PAY_PER_REQUEST
313
- PointInTimeRecoverySpecification:
314
- PointInTimeRecoveryEnabled: true
315
- StreamSpecification:
316
- StreamViewType: NEW_AND_OLD_IMAGES
317
- GlobalSecondaryIndexes:
318
- - IndexName: JobTypeSiteIndex
319
- KeySchema:
320
- - AttributeName: site
321
- KeyType: HASH
322
- - AttributeName: typeName
323
- KeyType: RANGE
324
- Projection:
325
- ProjectionType: ALL
326
- maintenance:
327
- Type: "AWS::DynamoDB::Table"
328
- DeletionPolicy: Retain
329
- Properties:
330
- AttributeDefinitions:
331
- - AttributeName: id
332
- AttributeType: S
333
- - AttributeName: site
334
- AttributeType: S
335
- KeySchema:
336
- - AttributeName: id
337
- KeyType: HASH
338
- TableName: ${self:custom.tablePrefix}maintenance
339
- BillingMode: PAY_PER_REQUEST
340
- PointInTimeRecoverySpecification:
341
- PointInTimeRecoveryEnabled: true
342
- StreamSpecification:
343
- StreamViewType: NEW_AND_OLD_IMAGES
344
- GlobalSecondaryIndexes:
345
- - IndexName: MaintenanceSiteIndex
346
- KeySchema:
347
- - AttributeName: site
348
- KeyType: HASH
349
- Projection:
350
- ProjectionType: ALL
351
- supporttickets:
352
- Type: "AWS::DynamoDB::Table"
353
- DeletionPolicy: Retain
354
- Properties:
355
- AttributeDefinitions:
356
- - AttributeName: Id
357
- AttributeType: S
358
- - AttributeName: Site
359
- AttributeType: S
360
- - AttributeName: Status
361
- AttributeType: S
362
- KeySchema:
363
- - AttributeName: Id
364
- KeyType: HASH
365
- TableName: ${self:custom.tablePrefix}supporttickets
366
- BillingMode: PAY_PER_REQUEST
367
- PointInTimeRecoverySpecification:
368
- PointInTimeRecoveryEnabled: true
369
- StreamSpecification:
370
- StreamViewType: NEW_AND_OLD_IMAGES
371
- GlobalSecondaryIndexes:
372
- - IndexName: TicketsSiteStatusIndex
373
- KeySchema:
374
- - AttributeName: Site
375
- KeyType: HASH
376
- - AttributeName: Status
377
- KeyType: RANGE
378
- Projection:
379
- ProjectionType: ALL