@plusscommunities/pluss-core-aws 2.0.24 → 2.0.25-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/aws/getDefaultEmailAddress.js +21 -21
- package/aws/getEmailService.js +16 -16
- package/aws/getEmailServiceInfo.js +26 -26
- package/aws/sendEmail.js +31 -31
- package/config.js +1 -1
- package/db/activity/publishActivity.js +22 -22
- package/db/analytics/checkActivityExists.js +15 -15
- package/db/analytics/logAnalyticsActivity.js +69 -37
- package/db/analytics/scheduleOldAggregation.js +14 -14
- package/db/auth/getSiteSetting.js +12 -12
- package/db/auth/getSiteUserTypes.js +16 -16
- package/db/auth/getUserAuth.js +13 -13
- package/db/automatedactions/getActionBySiteTrigger.js +9 -9
- package/db/common/deleteRef.js +21 -21
- package/db/common/editRef.js +36 -36
- package/db/common/getRef.js +23 -23
- package/db/common/getTableCount.js +18 -18
- package/db/common/indexQuery.js +17 -17
- package/db/common/indexQueryRecursive.js +20 -20
- package/db/common/scanRef.js +18 -18
- package/db/common/scanRefRecursive.js +20 -20
- package/db/common/updateAttribute.js +27 -27
- package/db/common/updateRef.js +20 -20
- package/db/linkedUsers/getLinkedBy.js +21 -21
- package/db/linkedUsers/getLinkedTo.js +21 -21
- package/db/notifications/deleteNotificationsByEntity.js +21 -21
- package/db/notifications/getNotificationSetting.js +14 -14
- package/db/notifications/publishNotifications.js +39 -39
- package/db/scheduledActions/deleteActionQueue.js +1 -1
- package/db/scheduledActions/getActionQueueByEntityId.js +10 -10
- package/db/scheduledActions/getActionQueueByEntityKey.js +9 -9
- package/db/scheduledActions/getActionQueueById.js +9 -9
- package/db/scheduledActions/getActionQueueByTriggerAt.js +14 -14
- package/db/scheduledActions/updateActionQueue.js +29 -29
- package/db/strings/getString.js +20 -20
- package/db/strings/logUpdate.js +18 -18
- package/db/templates/getTemplateById.js +1 -1
- package/db/templates/getTemplatesList.js +10 -10
- package/db/templates/updateTemplate.js +9 -9
- package/db/users/getRole.js +1 -1
- package/db/users/getUser.js +9 -9
- package/db/users/getUserByEmail.js +17 -17
- package/helper/audience/filterByAudienceType.js +27 -27
- package/helper/audience/filterOnAudienceType.js +26 -26
- package/helper/audience/getAudience.js +187 -187
- package/helper/audience/getMatchingAudienceTypes.js +21 -21
- package/helper/audience/getMatchingAudienceTypesFromPreview.js +60 -60
- package/helper/audience/getMatchingTags.js +15 -15
- package/helper/audience/isValidAudience.js +20 -20
- package/helper/auth/checkTokenBlacklist.js +17 -17
- package/helper/auth/getApiKeyFromReq.js +2 -2
- package/helper/auth/getSessionUser.js +66 -66
- package/helper/auth/getSessionUserFromReq.js +2 -2
- package/helper/auth/getSessionUserFromReqAuthKey.js +11 -11
- package/helper/auth/validateApiKey.js +32 -32
- package/helper/auth/validateMasterAuth.js +174 -174
- package/helper/auth/validateSiteAccess.js +12 -12
- package/helper/auth/validateSiteSetting.js +7 -7
- package/helper/auth/validateUserLoggedIn.js +19 -19
- package/helper/createGuid.js +5 -5
- package/helper/generateJsonResponse.js +27 -27
- package/helper/getUserPreview.js +57 -57
- package/helper/getUserPreviewFromHeader.js +17 -17
- package/helper/getUserPreviewFromReq.js +17 -17
- package/helper/hqPublishing.js +45 -0
- package/helper/index.js +28 -28
- package/helper/notifySiteConfigs.js +67 -52
- package/helper/opengraph/getOpenGraph.js +12 -12
- package/helper/rates/checkRateLimit.js +38 -38
- package/helper/requestToSource.js +10 -10
- package/helper/sendEmail.js +120 -120
- package/helper/templates/replacePlaceHolders.js +29 -29
- package/helper/time/getLocalTimestamp.js +18 -18
- package/helper/time/getSiteTimezone.js +11 -11
- package/helper/triggerAutomatedAction.js +25 -25
- package/helper/userToUserPreview.js +23 -23
- package/helper/users/getUserTypesByPermission.js +24 -24
- package/helper/users/getUsersByPermission.js +20 -20
- package/notification/prepNotification.js +144 -144
- package/notification/sendNotifications.js +166 -166
- package/package.json +35 -35
- package/templates/supportTicketEmails.js +8 -8
package/package.json
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
2
|
+
"name": "@plusscommunities/pluss-core-aws",
|
|
3
|
+
"version": "2.0.25-beta.0",
|
|
4
|
+
"description": "Core extension package for Pluss Communities platform",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"betapatch": "npm version prepatch --preid=beta",
|
|
7
|
+
"patch": "npm version patch",
|
|
8
|
+
"betaupload": "npm i && npm i && npm publish --access public --tag beta",
|
|
9
|
+
"betaupload:p": "npm run betapatch && npm run betaupload",
|
|
10
|
+
"upload": "npm i && npm i && npm publish --access public",
|
|
11
|
+
"upload:p": "npm run patch && npm run upload"
|
|
12
|
+
},
|
|
13
|
+
"author": "Thorbjorn Kappel Davis",
|
|
14
|
+
"license": "ISC",
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"@aws/dynamodb-auto-marshaller": "^0.7.1",
|
|
17
|
+
"amazon-cognito-identity-js": "^2.0.19",
|
|
18
|
+
"axios": "^1.6.8",
|
|
19
|
+
"aws-sdk": "^2.1591.0",
|
|
20
|
+
"expo-server-sdk": "^3.0.1",
|
|
21
|
+
"html-entities": "^2.3.2",
|
|
22
|
+
"https": "^1.0.0",
|
|
23
|
+
"lodash": "^4.17.10",
|
|
24
|
+
"moment": "^2.30.1",
|
|
25
|
+
"moment-timezone": "^0.5.41",
|
|
26
|
+
"node-fetch": "^2.2.0",
|
|
27
|
+
"node-jose": "^1.0.0",
|
|
28
|
+
"nodemailer": "^6.9.12",
|
|
29
|
+
"twilio": "^3.18.0",
|
|
30
|
+
"uuid": "^2.0.3"
|
|
31
|
+
},
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"eslint-config-rallycoding": "^3.2.0",
|
|
34
|
+
"serverless-domain-manager": "^3.3.1",
|
|
35
|
+
"serverless-prune-plugin": "^1.4.1"
|
|
36
|
+
}
|
|
37
37
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
module.exports.newTicketEmailTemplate = {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
subject: `New Support Ticket: ___TITLE___`,
|
|
3
|
+
content: `<div style='margin-bottom: 24px; font-size: 14px; line-height: 23px; color: #3e4245;'>
|
|
4
4
|
___NAME___ from ___SITE___ (___CLIENT___) has submitted a new support ticket.
|
|
5
5
|
</div>
|
|
6
6
|
<div style='margin-bottom: 16px; font-size: 22px; line-height: 30px; color: #0a2246; font-weight: bold;'>
|
|
@@ -12,8 +12,8 @@ module.exports.newTicketEmailTemplate = {
|
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
module.exports.statusChangeEmailTemplate = {
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
subject: `Status Changed on Your Ticket: ___TITLE___`,
|
|
16
|
+
content: `<div style='margin-bottom: 24px; font-size: 14px; line-height: 23px; color: #3e4245;'>
|
|
17
17
|
Your ticket has been updated.
|
|
18
18
|
</div>
|
|
19
19
|
<div style='margin-bottom: 16px; font-size: 13px; line-height: 28px; height: 28px; width: 300px; border-radius: 4px; background-color: ___LABELCOLOR___; color: #fff; text-align: center;'>
|
|
@@ -28,8 +28,8 @@ module.exports.statusChangeEmailTemplate = {
|
|
|
28
28
|
};
|
|
29
29
|
|
|
30
30
|
module.exports.ticketCommentEmailTemplate = {
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
subject: `New Comment on Ticket: ___TITLE___`,
|
|
32
|
+
content: `<div style='margin-bottom: 24px; font-size: 14px; line-height: 23px; color: #3e4245;'>
|
|
33
33
|
There is a new comment on an update:
|
|
34
34
|
</div>
|
|
35
35
|
<div style='margin-bottom: 24px; font-size: 15px; line-height: 22px; border-radius: 4px; border: solid 1px #ccc; padding: 8px; color: #536280; max-width: 500px; display: inline-block;'>
|
|
@@ -44,6 +44,6 @@ module.exports.ticketCommentEmailTemplate = {
|
|
|
44
44
|
};
|
|
45
45
|
|
|
46
46
|
module.exports.plussTeamEmails = [
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
"marty@plusscommunities.com",
|
|
48
|
+
"thor@plusscommunities.com",
|
|
49
49
|
];
|