@nlabs/reaktor 0.6.0 → 0.8.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/lib/actions/conversations.js +34 -24
- package/lib/actions/email.js +2 -3
- package/lib/actions/files.js +4 -15
- package/lib/actions/images.js +20 -21
- package/lib/actions/messages.js +5 -6
- package/lib/actions/payments.js +5 -6
- package/lib/actions/posts.js +50 -7
- package/lib/actions/reactions.js +13 -13
- package/lib/actions/tags.js +3 -3
- package/lib/actions/users.js +13 -14
- package/lib/actions/websockets.js +3 -3
- package/lib/lambdas/actions/websockets.js +4 -15
- package/lib/lambdas/authorizer.js +5 -16
- package/lib/lambdas/connection.js +2 -13
- package/lib/types/conversations.js +1 -1
- package/lib/types/users.js +1 -1
- package/lib/utils/arangodb.js +2 -2
- package/package.json +12 -12
- package/lib/actions/conversations.d.ts +0 -14
- package/lib/actions/dynamodb.d.ts +0 -8
- package/lib/actions/email.d.ts +0 -7
- package/lib/actions/files.d.ts +0 -16
- package/lib/actions/groups.d.ts +0 -14
- package/lib/actions/images.d.ts +0 -22
- package/lib/actions/index.d.ts +0 -20
- package/lib/actions/ios.d.ts +0 -7
- package/lib/actions/locations.d.ts +0 -3
- package/lib/actions/messages.d.ts +0 -13
- package/lib/actions/notifications.d.ts +0 -5
- package/lib/actions/payments.d.ts +0 -10
- package/lib/actions/posts.d.ts +0 -19
- package/lib/actions/reactions.d.ts +0 -30
- package/lib/actions/s3.d.ts +0 -7
- package/lib/actions/search.d.ts +0 -3
- package/lib/actions/sms.d.ts +0 -3
- package/lib/actions/statistics.d.ts +0 -2
- package/lib/actions/subscription.d.ts +0 -7
- package/lib/actions/tags.d.ts +0 -26
- package/lib/actions/users.d.ts +0 -44
- package/lib/actions/websockets.d.ts +0 -6
- package/lib/config.d.ts +0 -20
- package/lib/index.d.ts +0 -5
- package/lib/lambdas/actions/websockets.d.ts +0 -6
- package/lib/lambdas/authorizer.d.ts +0 -20
- package/lib/lambdas/connection.d.ts +0 -12
- package/lib/lambdas/utils/message.d.ts +0 -1
- package/lib/lambdas/utils/websocket.d.ts +0 -7
- package/lib/templates/email/layout.d.ts +0 -2
- package/lib/templates/email/passwordForgot.d.ts +0 -2
- package/lib/templates/email/passwordRecovery.d.ts +0 -2
- package/lib/templates/email/verifyEmail.d.ts +0 -2
- package/lib/templates/email/welcome.d.ts +0 -2
- package/lib/templates/sms/passwordForgot.d.ts +0 -2
- package/lib/templates/sms/passwordRecovery.d.ts +0 -2
- package/lib/templates/sms/verifyEmail.d.ts +0 -2
- package/lib/templates/sms/verifyPhone.d.ts +0 -2
- package/lib/templates/sms/welcome.d.ts +0 -2
- package/lib/types/apps.d.ts +0 -44
- package/lib/types/arangodb.d.ts +0 -17
- package/lib/types/auth.d.ts +0 -7
- package/lib/types/connections.d.ts +0 -8
- package/lib/types/conversations.d.ts +0 -11
- package/lib/types/email.d.ts +0 -12
- package/lib/types/files.d.ts +0 -26
- package/lib/types/google.d.ts +0 -27
- package/lib/types/groups.d.ts +0 -22
- package/lib/types/images.d.ts +0 -42
- package/lib/types/index.d.ts +0 -18
- package/lib/types/locations.d.ts +0 -20
- package/lib/types/messages.d.ts +0 -27
- package/lib/types/notifications.d.ts +0 -19
- package/lib/types/payments.d.ts +0 -115
- package/lib/types/posts.d.ts +0 -47
- package/lib/types/statistics.d.ts +0 -3
- package/lib/types/tags.d.ts +0 -15
- package/lib/types/users.d.ts +0 -80
- package/lib/types/websocket.d.ts +0 -14
- package/lib/utils/analytics.d.ts +0 -14
- package/lib/utils/arangodb.d.ts +0 -9
- package/lib/utils/auth.d.ts +0 -5
- package/lib/utils/graphql.d.ts +0 -1
- package/lib/utils/index.d.ts +0 -6
- package/lib/utils/objects.d.ts +0 -3
- package/lib/utils/session.d.ts +0 -18
package/lib/types/users.js
CHANGED
|
@@ -13,4 +13,4 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
13
13
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
14
|
var users_exports = {};
|
|
15
15
|
module.exports = __toCommonJS(users_exports);
|
|
16
|
-
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vc3JjL3R5cGVzL3VzZXJzLnRzIl0sCiAgInNvdXJjZXNDb250ZW50IjogWyIvKipcbiAqIENvcHlyaWdodCAoYykgMjAxOS1QcmVzZW50LCBOaXRyb2dlbiBMYWJzLCBJbmMuXG4gKiBDb3B5cmlnaHRzIGxpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgTGljZW5zZS4gU2VlIHRoZSBhY2NvbXBhbnlpbmcgTElDRU5TRSBmaWxlIGZvciB0ZXJtcy5cbiAqL1xuaW1wb3J0IHtSZWFjdGlvbiwgVXNlckFjY2Vzc30gZnJvbSAnLi4vYWN0aW9ucyc7XG5pbXBvcnQge1F1ZXJ5RmlsdGVyfSBmcm9tICcuL2FwcHMnO1xuaW1wb3J0IHtUYWdUeXBlfSBmcm9tICcuL3RhZ3MnO1xuXG5leHBvcnQgaW50ZXJmYWNlIFVzZXIge1xuICByZWFkb25seSBfaWQ/OiBzdHJpbmc7XG4gIHJlYWRvbmx5IF9rZXk/OiBzdHJpbmc7XG4gIHJlYWRvbmx5IGFjdGl2ZT86IGJvb2xlYW47XG4gIHJlYWRvbmx5IGFkZGVkPzogbnVtYmVyO1xuICByZWFkb25seSBiYW5rQWNjb3VudD86IHN0cmluZztcbiAgcmVhZG9ubHkgYmFua0Z1bGxOYW1lPzogc3RyaW5nO1xuICByZWFkb25seSBiYW5rSWQ/OiBzdHJpbmc7XG4gIHJlYWRvbmx5IGJhbmtSb3V0aW5nPzogc3RyaW5nO1xuICByZWFkb25seSBjaXR5Pzogc3RyaW5nO1xuICByZWFkb25seSBjb3VudHJ5Pzogc3RyaW5nO1xuICByZWFkb25seSBjdXJyZW5jeT86IHN0cmluZztcbiAgcmVhZG9ubHkgZGV2aWNlVG9rZW4/OiBz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9rZXk/OiBzdHJpbmc7XG59XG5cbmV4cG9ydCBpbnRlcmZhY2UgVXNlclJlYWN0aW9uUXVlcnkgZXh0ZW5kcyBSZWFjdGlvbiB7XG4gIHJlYWRvbmx5IGZpbHRlcnM/OiBRdWVyeUZpbHRlcltdO1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIFBhc3Njb2RlVHlwZSB7XG4gIHJlYWRvbmx5IHBhc3NBdHRlbXB0PzogbnVtYmVyO1xuICByZWFkb25seSBwYXNzRXhwaXJlcz86IG51bWJlcjtcbiAgcmVhZG9ubHkgcGFzc2NvZGU/OiBzdHJpbmc7XG59XG5cbiJdLAogICJtYXBwaW5ncyI6ICI7Ozs7Ozs7Ozs7Ozs7QUFBQTtBQUFBOyIsCiAgIm5hbWVzIjogW10KfQo=
|
package/lib/utils/arangodb.js
CHANGED
|
@@ -97,7 +97,7 @@ const getRange = (from, to) => {
|
|
|
97
97
|
const selectReactionCountByType = (objectType, objectKey, field, selects) => {
|
|
98
98
|
const reactionType = field.substr(0, field.indexOf("Count"));
|
|
99
99
|
selects.queries.push(`LET ${field} = FIRST(
|
|
100
|
-
FOR obj, r IN INBOUND ${objectKey}._id
|
|
100
|
+
FOR obj, r IN INBOUND ${objectKey}._id hasReaction
|
|
101
101
|
FILTER r.name == "${reactionType}" && r.type == "${objectType}"
|
|
102
102
|
COLLECT WITH COUNT INTO count
|
|
103
103
|
RETURN count
|
|
@@ -115,4 +115,4 @@ const selectReactionCountByType = (objectType, objectKey, field, selects) => {
|
|
|
115
115
|
selectReactionCountByType,
|
|
116
116
|
useDb
|
|
117
117
|
});
|
|
118
|
-
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vc3JjL3V0aWxzL2FyYW5nb2RiLnRzIl0sCiAgInNvdXJjZXNDb250ZW50IjogWyIvKipcbiAqIENvcHlyaWdodCAoYykgMjAxOS1QcmVzZW50LCBOaXRyb2dlbiBMYWJzLCB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xvZygnZ2V0TGltaXQnLCB7c3RhcnQsIHRvLCBudW19KTtcbiAgaWYobnVtID4gNTApIHtcbiAgICBudW0gPSA1MDtcbiAgfVxuXG4gIHJldHVybiB7YXFsOiB0byA+PSAwID8gYExJTUlUICR7c3RhcnR9LCAke251bX1gIDogJycsIG51bSwgc3RhcnR9O1xufTtcblxuZXhwb3J0IGNvbnN0IGdldFJhbmdlID0gKGZyb206IG51bWJlciwgdG86IG51bWJlcik6IFJhbmdlVHlwZSA9PiB7XG4gIGxldCB1cGRhdGVkRnJvbTogbnVtYmVyID0gZnJvbSB8fCAwO1xuICBsZXQgdXBkYXRlZFRvOiBudW1iZXIgPSB0byB8fCAxNTtcbiAgdXBkYXRlZFRvID0gdXBkYXRlZFRvIC0gMTtcblxuICBpZih1cGRhdGVkVG8gPCAwKSB7XG4gICAgdXBkYXRlZFRvID0gMDtcbiAgfSBlbHNlIGlmKHRvID4gNTApIHtcbiAgICB1cGRhdGVkVG8gPSA1MDtcbiAgfVxuXG4gIGlmKHVwZGF0ZWRGcm9tIDwgMCkge1xuICAgIHVwZGF0ZWRGcm9tID0gMDtcbiAgfVxuICBpZih1cGRhdGVkRnJvbSA+IHVwZGF0ZWRUbykge1xuICAgIHVwZGF0ZWRGcm9tID0gdXBkYXRlZFRvO1xuICB9XG5cbiAgcmV0dXJuIHtmcm9tOiB1cGRhdGVkRnJvbSwgdG86IHVwZGF0ZWRUb307XG59O1xuXG5leHBvcnQgY29uc3Qgc2VsZWN0UmVhY3Rpb25Db3VudEJ5VHlwZSA9IChvYmplY3RUeXBlOiBzdHJpbmcsIG9iamVjdEtleTogc3RyaW5nLCBmaWVsZDogc3RyaW5nLCBzZWxlY3RzOiBhbnkpID0+
|
|
118
|
+
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vc3JjL3V0aWxzL2FyYW5nb2RiLnRzIl0sCiAgInNvdXJjZXNDb250ZW50IjogWyIvKipcb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NO0FBQzlCLGNBQVksWUFBWTtBQUV4QixNQUFHLFlBQVksR0FBRztBQUNoQixnQkFBWTtBQUFBLEVBQ2QsV0FBVSxLQUFLLElBQUk7QUFDakIsZ0JBQVk7QUFBQSxFQUNkO0FBRUEsTUFBRyxjQUFjLEdBQUc7QUFDbEIsa0JBQWM7QUFBQSxFQUNoQjtBQUNBLE1BQUcsY0FBYyxXQUFXO0FBQzFCLGtCQUFjO0FBQUEsRUFDaEI7QUFFQSxTQUFPLEVBQUMsTUFBTSxhQUFhLElBQUksVUFBUztBQUMxQztBQUVPLE1BQU0sNEJBQTRCLENBQUMsWUFBb0IsV0FBbUIsT0FBZSxZQUFpQjtBQUMvRyxRQUFNLGVBQXVCLE1BQU0sT0FBTyxHQUFHLE1BQU0sUUFBUSxPQUFPLENBQUM7QUFDbkUsVUFBUSxRQUFRLEtBQUssT0FBTyxLQUFLO0FBQUEsOEJBQ0wsU0FBUztBQUFBLDBCQUNiLFlBQVksbUJBQW1CLFVBQVU7QUFBQTtBQUFBO0FBQUEsTUFHN0Q7QUFDSixVQUFRLFFBQVEsS0FBSyxHQUFHLEtBQUssSUFBSSxLQUFLLEVBQUU7QUFDeEMsU0FBTztBQUNUOyIsCiAgIm5hbWVzIjogW10KfQo=
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nlabs/reaktor",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "Reaktor",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"module": "./lib/index.js",
|
|
@@ -44,14 +44,14 @@
|
|
|
44
44
|
"@nlabs/rip-hunter": "^2.6.4",
|
|
45
45
|
"@nlabs/utils": "^1.4.4",
|
|
46
46
|
"apn": "^2.0.0",
|
|
47
|
-
"arangojs": "^8.
|
|
48
|
-
"aws-sdk": "^2.
|
|
47
|
+
"arangojs": "^8.8.0",
|
|
48
|
+
"aws-sdk": "^2.1580.0",
|
|
49
49
|
"child_process": "^1.0.2",
|
|
50
|
-
"core-js": "^3.
|
|
50
|
+
"core-js": "^3.36.1",
|
|
51
51
|
"file-type": "^19.0.0",
|
|
52
52
|
"gm": "^1.25.0",
|
|
53
53
|
"google-libphonenumber": "^3.2.34",
|
|
54
|
-
"googleapis": "^
|
|
54
|
+
"googleapis": "^134.0.0",
|
|
55
55
|
"graphql": "^16.8.1",
|
|
56
56
|
"graphql-fields": "^2.0.3",
|
|
57
57
|
"jsonwebtoken": "^9.0.2",
|
|
@@ -61,9 +61,9 @@
|
|
|
61
61
|
"net": "^1.0.2",
|
|
62
62
|
"node-yelp": "^0.0.3",
|
|
63
63
|
"numeral": "^2.0.6",
|
|
64
|
-
"sanitize-html": "^2.
|
|
64
|
+
"sanitize-html": "^2.12.1",
|
|
65
65
|
"spawn-sync": "^2.0.0",
|
|
66
|
-
"stripe": "^14.
|
|
66
|
+
"stripe": "^14.21.0",
|
|
67
67
|
"tls": "0.0.1",
|
|
68
68
|
"to": "^0.2.9",
|
|
69
69
|
"typed-promisify": "^0.4.0",
|
|
@@ -71,14 +71,14 @@
|
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
73
|
"@types/history": "^4.7.11",
|
|
74
|
-
"@types/jest": "^29.5.
|
|
74
|
+
"@types/jest": "^29.5.12",
|
|
75
75
|
"@types/luxon": "^3.4.2",
|
|
76
|
-
"@types/node": "^20.11.
|
|
76
|
+
"@types/node": "^20.11.30",
|
|
77
77
|
"@types/stripe": "^8.0.416",
|
|
78
78
|
"@types/twilio": "^3.19.2",
|
|
79
|
-
"eslint": "^8.
|
|
79
|
+
"eslint": "^8.57.0",
|
|
80
80
|
"eslint-config-styleguidejs": "^3.2.1",
|
|
81
|
-
"graphql-tools": "^
|
|
82
|
-
"typescript": "^5.
|
|
81
|
+
"graphql-tools": "^9.0.1",
|
|
82
|
+
"typescript": "^5.4.2"
|
|
83
83
|
}
|
|
84
84
|
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ConnectionType, ConversationType } from '../types';
|
|
2
|
-
import { ApiContext } from '../types/auth';
|
|
3
|
-
export declare const getConversations: (context: ApiContext, { from, to }: {
|
|
4
|
-
from: any;
|
|
5
|
-
to: any;
|
|
6
|
-
}) => Promise<ConversationType[]>;
|
|
7
|
-
export declare const getDirectConversation: (context: ApiContext, fromId: string, toId: string) => Promise<ConversationType>;
|
|
8
|
-
export declare const getConnectionUsers: (context: ApiContext, conversationId: string, includeAll?: boolean, isDirect?: boolean) => Promise<ConnectionType[]>;
|
|
9
|
-
export declare const getConversationUsers: (context: ApiContext, conversationId: string, includeAll?: boolean, isDirect?: boolean) => Promise<ConversationType[]>;
|
|
10
|
-
export declare const getDirectConversationOld: (context: ApiContext, userId: string) => Promise<ConversationType>;
|
|
11
|
-
export declare const getConversation: (context: ApiContext, convoId: string) => Promise<ConversationType>;
|
|
12
|
-
export declare const updateConversation: (context: ApiContext, conversation: any) => Promise<ConversationType>;
|
|
13
|
-
export declare const addUserToConversation: (context: ApiContext, convoId: string, userId: string) => Promise<any>;
|
|
14
|
-
export declare const deleteUserFromConversation: (context: ApiContext, convoId: string, userId: string) => Promise<any>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { BatchWriteItemInput, BatchWriteItemOutput, DeleteItemInput, DeleteItemOutput, GetItemInput, GetItemOutput, PutItemInput, PutItemOutput, QueryInput, QueryOutput, UpdateItemInput, UpdateItemOutput } from 'aws-sdk/clients/dynamodb';
|
|
2
|
-
export declare const dynamoGet: (params: GetItemInput) => Promise<GetItemOutput>;
|
|
3
|
-
export declare const parseDynamo: (results: QueryOutput) => any[];
|
|
4
|
-
export declare const dynamoGetList: (params: QueryInput, index: any) => Promise<GetItemOutput[]>;
|
|
5
|
-
export declare const dynamoPut: (params: PutItemInput) => Promise<PutItemOutput>;
|
|
6
|
-
export declare const dynamoUpdate: (params: UpdateItemInput) => Promise<UpdateItemOutput>;
|
|
7
|
-
export declare const dynamoPutList: (params: BatchWriteItemInput) => Promise<BatchWriteItemOutput>;
|
|
8
|
-
export declare const dynamoDel: (params: DeleteItemInput) => Promise<DeleteItemOutput>;
|
package/lib/actions/email.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { SendEmailRequest, SendEmailResponse } from 'aws-sdk/clients/ses';
|
|
2
|
-
import { AppType } from '../types/apps';
|
|
3
|
-
import { EmailType } from '../types/email';
|
|
4
|
-
export declare const appTemplate: (app: AppType, message?: string, vars?: {}) => string;
|
|
5
|
-
export declare const sesSend: (params: SendEmailRequest) => Promise<SendEmailResponse>;
|
|
6
|
-
export declare const sendEmail: (params: EmailType) => Promise<boolean>;
|
|
7
|
-
export declare const sendTemplate: (templateName: string, emailParams: EmailType) => Promise<boolean>;
|
package/lib/actions/files.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import { Database } from 'arangojs';
|
|
3
|
-
import { ApiContext } from '../types/auth';
|
|
4
|
-
import { FileType } from '../types/files';
|
|
5
|
-
export declare const addFile: (context: ApiContext, item?: FileType) => Promise<FileType>;
|
|
6
|
-
export declare const getGiphyTrends: (context: ApiContext, limit?: number) => Promise<any[]>;
|
|
7
|
-
export declare const getGiphySearch: (context: ApiContext, query: string, limit?: number) => Promise<any[]>;
|
|
8
|
-
export declare const getYouTubeTrends: (context: ApiContext, limit?: number) => Promise<any[]>;
|
|
9
|
-
export declare const getYouTubeSearch: (context: ApiContext, query: string, limit?: number) => Promise<any[]>;
|
|
10
|
-
export declare const getPathUserFiles: (userId: string, filename: string) => string;
|
|
11
|
-
export declare const getUrlUserFiles: (userId: string, filename: string, dir?: string, type?: string) => string;
|
|
12
|
-
export declare const createFile: (db: Database, file: FileType) => Promise<FileType>;
|
|
13
|
-
export declare const linkFiles: (db: Database, files: FileType[], postId: string) => Promise<any>;
|
|
14
|
-
export declare const updateFiles: (db: Database, postId: string, files: FileType[]) => Promise<any>;
|
|
15
|
-
export declare const encodeBase64: (buffer: Buffer) => string;
|
|
16
|
-
export declare const decodeBase64: (dataString: string) => object;
|
package/lib/actions/groups.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Database } from 'arangojs';
|
|
2
|
-
import { ApiContext } from '../types/auth';
|
|
3
|
-
import { GroupEdgeType, GroupType, GroupUser } from '../types/groups';
|
|
4
|
-
export declare const getGroupList: (context: ApiContext, from: number, to: number) => Promise<GroupType[]>;
|
|
5
|
-
export declare const getGroupListByUser: (context: ApiContext, from: number, to: number) => Promise<GroupType[]>;
|
|
6
|
-
export declare const getGroupListByTags: (context: ApiContext, tags: string[], from: number, to: number) => Promise<GroupType[]>;
|
|
7
|
-
export declare const getGroup: (context: ApiContext, itemId: string) => Promise<GroupType>;
|
|
8
|
-
export declare const getGroupDetails: (context: ApiContext, groupId: string) => Promise<GroupType>;
|
|
9
|
-
export declare const createGroupEdge: (database: Database, userId: string, groupId: string) => Promise<GroupEdgeType>;
|
|
10
|
-
export declare const addGroup: (context: ApiContext, item?: GroupType) => Promise<GroupType>;
|
|
11
|
-
export declare const updateGroup: (context: ApiContext, item?: GroupType) => Promise<GroupType>;
|
|
12
|
-
export declare const deleteGroup: (context: ApiContext, itemId: string) => Promise<GroupType>;
|
|
13
|
-
export declare const getGroupsByReaction: (context: ApiContext, reaction: string) => Promise<GroupType[]>;
|
|
14
|
-
export declare const isGrouped: (database: Database, userId: string, groupId: string) => Promise<GroupUser>;
|
package/lib/actions/images.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import { PutObjectRequest } from 'aws-sdk/clients/s3';
|
|
3
|
-
import { ApiContext, ArangoDBLimit, ImageEdgeType, ImageOptions, ImageType, ImageUrlData } from '../types';
|
|
4
|
-
export declare const parseImageOptions: (options?: ImageOptions) => {
|
|
5
|
-
limit: ArangoDBLimit;
|
|
6
|
-
type: string;
|
|
7
|
-
};
|
|
8
|
-
export declare const getImageOptional: (fields?: string[]) => any;
|
|
9
|
-
export declare const getImagesByUser: (context: ApiContext, userId: string, from: number, to: number) => Promise<ImageType[]>;
|
|
10
|
-
export declare const getImageCountByItem: (context: ApiContext, itemId: string) => Promise<number>;
|
|
11
|
-
export declare const getImagesByItem: (context: ApiContext, itemId: string, options?: ImageOptions) => Promise<ImageType[]>;
|
|
12
|
-
export declare const getImagesByGroup: (context: ApiContext, params: any) => Promise<ImageType[]>;
|
|
13
|
-
export declare const getImagesByReactions: (context: ApiContext, reactions?: string[], options?: ImageOptions) => Promise<ImageType[]>;
|
|
14
|
-
export declare const getImage: (context: ApiContext, id: string) => Promise<ImageType>;
|
|
15
|
-
export declare const getPathUserImages: (userId: string, imageId: string, type: string, dir?: string) => string;
|
|
16
|
-
export declare const getAppImageUrl: (data: ImageUrlData) => string;
|
|
17
|
-
export declare const getUserImageUrl: (data: ImageUrlData) => string;
|
|
18
|
-
export declare const resizeSaveImage: (context: ApiContext, imageId: string, buffer: Buffer, type?: string, s3Options?: PutObjectRequest) => Promise<ImageType>;
|
|
19
|
-
export declare const addImage: (context: ApiContext, image: ImageType, s3Options?: PutObjectRequest) => Promise<ImageType>;
|
|
20
|
-
export declare const addImageEdge: (context: ApiContext, imageEdge: ImageEdgeType) => Promise<object>;
|
|
21
|
-
export declare const updateImage: (context: ApiContext, image: ImageType, s3Options?: PutObjectRequest) => Promise<ImageType>;
|
|
22
|
-
export declare const deleteImage: (context: ApiContext, imageId: string) => Promise<ImageType>;
|
package/lib/actions/index.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export * from './conversations';
|
|
2
|
-
export * from './dynamodb';
|
|
3
|
-
export * from './email';
|
|
4
|
-
export * from './files';
|
|
5
|
-
export * from './groups';
|
|
6
|
-
export * from './images';
|
|
7
|
-
export * from './ios';
|
|
8
|
-
export * from './locations';
|
|
9
|
-
export * from './messages';
|
|
10
|
-
export * from './notifications';
|
|
11
|
-
export * from './payments';
|
|
12
|
-
export * from './posts';
|
|
13
|
-
export * from './reactions';
|
|
14
|
-
export * from './s3';
|
|
15
|
-
export * from './search';
|
|
16
|
-
export * from './sms';
|
|
17
|
-
export * from './subscription';
|
|
18
|
-
export * from './tags';
|
|
19
|
-
export * from './users';
|
|
20
|
-
export * from './websockets';
|
package/lib/actions/ios.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Database } from 'arangojs';
|
|
2
|
-
import { ApiContext, PaymentIOSInAppError, PaymentIOSSubscriptionUpdate, PaymentSubscription } from '../types';
|
|
3
|
-
export declare const getIosInAppError: (statusCode: string) => PaymentIOSInAppError;
|
|
4
|
-
export declare const iosSubscriptionUpdate: (database: Database, subscriptionUpdate: PaymentIOSSubscriptionUpdate) => Promise<void>;
|
|
5
|
-
export declare const getIosSubscription: (context: ApiContext) => Promise<PaymentSubscription>;
|
|
6
|
-
export declare const addIosInApp: (context: ApiContext, subscription: PaymentSubscription) => Promise<PaymentSubscription>;
|
|
7
|
-
export declare const getIosInApp: (context: ApiContext) => Promise<PaymentSubscription>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Database } from 'arangojs';
|
|
2
|
-
import { ApiContext } from '../types/auth';
|
|
3
|
-
import { MessageInputType, MessageType } from '../types/messages';
|
|
4
|
-
export declare const getMessages: (context: ApiContext, conversationId: string, { from, to }: {
|
|
5
|
-
from: any;
|
|
6
|
-
to: any;
|
|
7
|
-
}) => Promise<MessageType[]>;
|
|
8
|
-
export declare const updateMessage: (context: ApiContext, message: MessageInputType) => Promise<MessageType>;
|
|
9
|
-
export declare const saveMessage: (context: ApiContext, messageId: string, conversationId: string) => Promise<MessageType>;
|
|
10
|
-
export declare const unsaveMessage: (context: ApiContext, messageId: string, conversationId: string) => Promise<MessageType>;
|
|
11
|
-
export declare const deleteMessage: (context: ApiContext, messageId: string, conversationId: string) => Promise<MessageType>;
|
|
12
|
-
export declare const getMessage: (data: MessageType) => MessageType;
|
|
13
|
-
export declare const cleanMessages: (database: Database) => Promise<number>;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Responses } from 'apn';
|
|
2
|
-
import { NotificationType } from '../types/notifications';
|
|
3
|
-
export declare const getApnProvider: () => Provider;
|
|
4
|
-
export declare const pushNotification: (deviceTokens: string[], note: NotificationType) => Promise<Responses>;
|
|
5
|
-
export declare const clearBadges: (deviceTokens: string[]) => Promise<Responses>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ApiContext, PaymentBankAccount, PaymentCardType, PaymentCharge, PaymentTransfer, User } from '../types';
|
|
2
|
-
export declare const addCustomerAccount: (context: ApiContext) => Promise<boolean>;
|
|
3
|
-
export declare const addBankAccount: (context: ApiContext, bankAccount: PaymentBankAccount) => Promise<boolean>;
|
|
4
|
-
export declare const addCreditCard: (context: ApiContext, card: PaymentCardType) => Promise<User>;
|
|
5
|
-
export declare const updateCreditCard: (context: ApiContext, card: PaymentCardType) => Promise<PaymentCardType>;
|
|
6
|
-
export declare const getCreditCards: (context: ApiContext) => Promise<PaymentCardType[]>;
|
|
7
|
-
export declare const deleteCreditCard: (context: ApiContext, cardId: string) => Promise<boolean>;
|
|
8
|
-
export declare const deleteBankAccount: (context: ApiContext, bankId: string) => Promise<boolean>;
|
|
9
|
-
export declare const createPaymentTransfer: (context: ApiContext, transfer: PaymentTransfer) => Promise<PaymentTransfer>;
|
|
10
|
-
export declare const createPaymentHold: (context: ApiContext, payment: PaymentCharge) => Promise<PaymentCharge>;
|
package/lib/actions/posts.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Database } from 'arangojs';
|
|
2
|
-
import { ApiContext, FileType, PostInputType, PostOptions, PostType } from '../types';
|
|
3
|
-
export declare const parsePostOptions: (options?: PostOptions) => {
|
|
4
|
-
latitude: number;
|
|
5
|
-
limit: import("../types").ArangoDBLimit;
|
|
6
|
-
longitude: number;
|
|
7
|
-
type: string;
|
|
8
|
-
};
|
|
9
|
-
export declare const getPostOptional: (fields: string[], sessionId: string) => any;
|
|
10
|
-
export declare const getPost: (context: ApiContext, itemId: string, options: PostOptions) => Promise<Partial<PostType>>;
|
|
11
|
-
export declare const getPostsByReactions: (context: ApiContext, reactions?: string[], options?: PostOptions) => Promise<PostType[]>;
|
|
12
|
-
export declare const getPostsByTags: (context: ApiContext, tags?: string[], options?: PostOptions) => Promise<PostType[]>;
|
|
13
|
-
export declare const getPostsByUser: (context: ApiContext, userId: string, options?: PostOptions) => Promise<PostType[]>;
|
|
14
|
-
export declare const getPostComments: (context: ApiContext, itemId: string, options?: PostOptions) => Promise<PostType[]>;
|
|
15
|
-
export declare const addPost: (context: ApiContext, post: PostInputType) => Promise<PostType>;
|
|
16
|
-
export declare const updatePost: (context: ApiContext, post: PostInputType) => Promise<PostType>;
|
|
17
|
-
export declare const deletePost: (context: ApiContext, postId: string) => Promise<PostType>;
|
|
18
|
-
export declare const cleanPosts: (database: Database) => Promise<number>;
|
|
19
|
-
export declare const createPostEdge: (db: Database, file: FileType, postId: string) => Promise<FileType>;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { ApiContext, AppCollectionTypes, User, UserReactionQuery } from '../types';
|
|
2
|
-
export type ReactionDirection = 'INBOUND' | 'OUTBOUND';
|
|
3
|
-
export interface Reaction {
|
|
4
|
-
readonly _from?: string;
|
|
5
|
-
readonly _key?: string;
|
|
6
|
-
readonly _to?: string;
|
|
7
|
-
readonly added?: number;
|
|
8
|
-
readonly count?: number;
|
|
9
|
-
readonly id?: string;
|
|
10
|
-
readonly name?: string;
|
|
11
|
-
readonly type?: AppCollectionTypes;
|
|
12
|
-
readonly value?: string;
|
|
13
|
-
}
|
|
14
|
-
export interface ReactionOptions {
|
|
15
|
-
readonly from?: number;
|
|
16
|
-
readonly to?: number;
|
|
17
|
-
}
|
|
18
|
-
export declare const parseReactionOptions: (options?: ReactionOptions) => {
|
|
19
|
-
limit: import("../types").ArangoDBLimit;
|
|
20
|
-
};
|
|
21
|
-
export declare const addReaction: (context: ApiContext, itemId: string, reaction?: Reaction, allowDuplicate?: boolean) => Promise<Reaction>;
|
|
22
|
-
export declare const deleteReaction: (context: ApiContext, reactionId: string) => Promise<Reaction>;
|
|
23
|
-
export declare const deleteReactionByItem: (context: ApiContext, itemId: string, reactionName: string) => Promise<Reaction>;
|
|
24
|
-
export declare const updateReaction: (context: ApiContext, reaction?: Reaction) => Promise<Reaction>;
|
|
25
|
-
export declare const getReactionCount: (context: ApiContext, itemId: string, reactionName: string) => Promise<Reaction>;
|
|
26
|
-
export declare const getReactionCountByUser: (context: ApiContext, itemId: string, itemType: string, reactionName: string) => Promise<Reaction[]>;
|
|
27
|
-
export declare const getGroupUsersByReaction: (context: ApiContext, params?: UserReactionQuery) => Promise<User[]>;
|
|
28
|
-
export declare const getReactionsByItem: (context: ApiContext, itemId: string, reactionName: string, options: ReactionOptions) => Promise<User[]>;
|
|
29
|
-
export declare const getItemsByReaction: (context: ApiContext, itemId: string, reactionName: string, options: ReactionOptions) => Promise<Reaction[]>;
|
|
30
|
-
export declare const hasReaction: (context: ApiContext, itemId: string, reactionName: string, direction?: ReactionDirection) => Promise<boolean>;
|
package/lib/actions/s3.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { DeleteObjectOutput, DeleteObjectRequest, DeleteObjectsOutput, DeleteObjectsRequest, GetObjectOutput, GetObjectRequest, HeadObjectOutput, HeadObjectRequest, PutObjectOutput, PutObjectRequest } from 'aws-sdk/clients/s3';
|
|
2
|
-
export declare const s3Get: (params: GetObjectRequest) => Promise<GetObjectOutput>;
|
|
3
|
-
export declare const s3Head: (params: HeadObjectRequest) => Promise<HeadObjectOutput>;
|
|
4
|
-
export declare const s3Put: (params: PutObjectRequest) => Promise<PutObjectOutput>;
|
|
5
|
-
export declare const s3Delete: (params: DeleteObjectRequest) => Promise<DeleteObjectOutput>;
|
|
6
|
-
export declare const s3DeleteList: (params: DeleteObjectsRequest) => Promise<DeleteObjectsOutput>;
|
|
7
|
-
export declare const s3GetSignedUrl: (params?: any) => string;
|
package/lib/actions/search.d.ts
DELETED
package/lib/actions/sms.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ApiContext } from '../types/auth';
|
|
2
|
-
import { PaymentPlan, PaymentSubscription } from '../types/payments';
|
|
3
|
-
export declare const getPlanList: (context: ApiContext, from?: number, to?: number) => Promise<PaymentPlan[]>;
|
|
4
|
-
export declare const getSubscription: (context: ApiContext) => Promise<PaymentSubscription>;
|
|
5
|
-
export declare const addPlan: (context: ApiContext, item: PaymentPlan) => Promise<PaymentPlan>;
|
|
6
|
-
export declare const addSubscription: (context: ApiContext, item: any) => Promise<PaymentSubscription>;
|
|
7
|
-
export declare const deleteSubscription: (context: ApiContext) => Promise<boolean>;
|
package/lib/actions/tags.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { Database } from 'arangojs';
|
|
2
|
-
import { ApiContext } from '../types/auth';
|
|
3
|
-
import { TagType } from '../types/tags';
|
|
4
|
-
export declare const getTags: (context: ApiContext, args: any) => Promise<TagType[]>;
|
|
5
|
-
export declare const getTagsByItem: (context: ApiContext, itemId: string, args: any) => Promise<TagType[]>;
|
|
6
|
-
export declare const getTagsByOwner: (context: ApiContext, args: any) => Promise<TagType[]>;
|
|
7
|
-
export declare const getTag: (context: ApiContext, tagId: string) => Promise<TagType>;
|
|
8
|
-
export declare const addTag: (context: ApiContext, { tag }: {
|
|
9
|
-
tag: any;
|
|
10
|
-
}) => Promise<TagType>;
|
|
11
|
-
export declare const addTagToItem: (context: ApiContext, { itemId, tagId }: {
|
|
12
|
-
itemId: any;
|
|
13
|
-
tagId: any;
|
|
14
|
-
}) => Promise<TagType>;
|
|
15
|
-
export declare const updateTag: (context: ApiContext, item?: TagType) => Promise<TagType>;
|
|
16
|
-
export declare const deleteTag: (context: ApiContext, { tagId }: {
|
|
17
|
-
tagId: any;
|
|
18
|
-
}) => Promise<TagType>;
|
|
19
|
-
export declare const deleteTagFromItem: (context: ApiContext, { itemId, tagId }: {
|
|
20
|
-
itemId: any;
|
|
21
|
-
tagId: any;
|
|
22
|
-
}) => Promise<TagType>;
|
|
23
|
-
export declare const createTag: (db: Database, tagName: string) => Promise<TagType>;
|
|
24
|
-
export declare const createTagEdge: (db: Database, tag: TagType, itemId: string) => Promise<TagType>;
|
|
25
|
-
export declare const linkTags: (db: Database, tagNames: string[], itemId: string) => Promise<TagType[]>;
|
|
26
|
-
export declare const extractTags: (db: Database, itemId: any, content: any) => Promise<TagType[]>;
|
package/lib/actions/users.d.ts
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { ApiContext } from '../types/auth';
|
|
2
|
-
import { User } from '../types/users';
|
|
3
|
-
import { SessionError, SessionToken } from '../utils/session';
|
|
4
|
-
export interface UserOptions {
|
|
5
|
-
readonly from?: number;
|
|
6
|
-
readonly to?: number;
|
|
7
|
-
readonly username?: string;
|
|
8
|
-
}
|
|
9
|
-
export declare enum UserAccess {
|
|
10
|
-
DEACTIVATED = 0,
|
|
11
|
-
ACTIVE = 1,
|
|
12
|
-
PREMIUM = 2,
|
|
13
|
-
CONTENT_ADMIN = 3,
|
|
14
|
-
ADMIN = 4
|
|
15
|
-
}
|
|
16
|
-
export declare const createToken: (userId: string, username: string, userAccess: number, expires?: number) => SessionToken;
|
|
17
|
-
export declare const getUserOptional: (fields?: string[]) => any;
|
|
18
|
-
export declare const parseUserOptions: (options?: UserOptions) => {
|
|
19
|
-
limit: import("..").ArangoDBLimit;
|
|
20
|
-
from?: number;
|
|
21
|
-
to?: number;
|
|
22
|
-
username?: string;
|
|
23
|
-
};
|
|
24
|
-
export declare const addUser: (context: ApiContext, args: any) => Promise<User>;
|
|
25
|
-
export declare const updateUser: (context: ApiContext, user: User) => Promise<any>;
|
|
26
|
-
export declare const confirmCode: (context: ApiContext, args: any) => Promise<boolean>;
|
|
27
|
-
export declare const deleteUser: (context: ApiContext, args: any) => Promise<any>;
|
|
28
|
-
export declare const deactivateUser: (context: ApiContext, userId: string) => Promise<User>;
|
|
29
|
-
export declare const getDisplayName: (user?: User) => string;
|
|
30
|
-
export declare const getSessionUser: (context: ApiContext) => Promise<User>;
|
|
31
|
-
export declare const getUser: (context: ApiContext, args: any) => Promise<User>;
|
|
32
|
-
export declare const getUsers: (context: ApiContext, options?: UserOptions) => Promise<User[]>;
|
|
33
|
-
export declare const getUsersByReactions: (context: ApiContext, { reactions, username }: any, options?: UserOptions) => Promise<User[]>;
|
|
34
|
-
export declare const getUsersByTags: (context: ApiContext, { tags, username }: any, options?: UserOptions) => Promise<User[]>;
|
|
35
|
-
export declare const getUsersByLatest: (context: ApiContext, { username }: {
|
|
36
|
-
username: any;
|
|
37
|
-
}, options?: UserOptions) => Promise<User[]>;
|
|
38
|
-
export declare const refreshSession: (context: ApiContext, { expires, token }: {
|
|
39
|
-
expires: any;
|
|
40
|
-
token: any;
|
|
41
|
-
}) => Promise<SessionToken | SessionError>;
|
|
42
|
-
export declare const signIn: (context: ApiContext, args: any) => Promise<SessionToken>;
|
|
43
|
-
export declare const signOut: (context: ApiContext, args: any) => Promise<boolean>;
|
|
44
|
-
export declare const getActiveUserCount: (context: ApiContext) => Promise<any>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { ApiContext } from '../types/auth';
|
|
2
|
-
export declare const addConnection: (connectionId: string, token: string) => Promise<any>;
|
|
3
|
-
export declare const getConnectionByUser: (userId: string) => Promise<any>;
|
|
4
|
-
export declare const getConnectionById: (connectionId: string) => Promise<any>;
|
|
5
|
-
export declare const getConnectionByConvo: (context: ApiContext, convoId: string) => Promise<any>;
|
|
6
|
-
export declare const removeConnection: (connectionId: string) => Promise<any>;
|
package/lib/config.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export interface AppConfig {
|
|
2
|
-
readonly app?: object;
|
|
3
|
-
readonly arangodb?: object;
|
|
4
|
-
readonly aws?: object;
|
|
5
|
-
readonly giphy?: object;
|
|
6
|
-
readonly google?: object;
|
|
7
|
-
readonly image?: object;
|
|
8
|
-
readonly stripe?: object;
|
|
9
|
-
readonly twilio?: object;
|
|
10
|
-
}
|
|
11
|
-
export interface EnvConfig {
|
|
12
|
-
readonly local: AppConfig;
|
|
13
|
-
readonly dev: AppConfig;
|
|
14
|
-
readonly prod: AppConfig;
|
|
15
|
-
readonly test: AppConfig;
|
|
16
|
-
}
|
|
17
|
-
export declare class Config {
|
|
18
|
-
static values(): EnvConfig;
|
|
19
|
-
static get(path: string | string[]): any;
|
|
20
|
-
}
|
package/lib/index.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { ApiContext } from '../../types/auth';
|
|
2
|
-
export declare const addConnection: (connectionId: string, token: string) => Promise<any>;
|
|
3
|
-
export declare const getConnectionByUserId: (userId: string) => Promise<any>;
|
|
4
|
-
export declare const getConnectionById: (connectionId: string) => Promise<any>;
|
|
5
|
-
export declare const getConnectionByConvo: (context: ApiContext, convoId: string) => Promise<any>;
|
|
6
|
-
export declare const removeConnection: (connectionId: string) => Promise<any>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export declare const generatePolicyDocument: (effect: any, methodArn: any) => {
|
|
2
|
-
Version: string;
|
|
3
|
-
Statement: {
|
|
4
|
-
Action: string;
|
|
5
|
-
Effect: any;
|
|
6
|
-
Resource: any;
|
|
7
|
-
}[];
|
|
8
|
-
};
|
|
9
|
-
export declare const generateAuthResponse: (principalId: any, effect: any, methodArn: any) => {
|
|
10
|
-
principalId: any;
|
|
11
|
-
policyDocument: {
|
|
12
|
-
Version: string;
|
|
13
|
-
Statement: {
|
|
14
|
-
Action: string;
|
|
15
|
-
Effect: any;
|
|
16
|
-
Resource: any;
|
|
17
|
-
}[];
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
export declare const authorizer: (event: any, context: any, callback: any) => any;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare const connectHandler: (event: any) => Promise<{
|
|
2
|
-
statusCode: number;
|
|
3
|
-
} | {
|
|
4
|
-
message: any;
|
|
5
|
-
statusCode: number;
|
|
6
|
-
}>;
|
|
7
|
-
export declare const defaultHandler: (event: any) => Promise<{
|
|
8
|
-
statusCode: number;
|
|
9
|
-
}>;
|
|
10
|
-
export declare const messageHandler: (event: any) => Promise<{
|
|
11
|
-
statusCode: number;
|
|
12
|
-
}>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const parseMessage: (content: string) => string;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\n \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/>\n <title>[appName]</title>\n <link type=\"text/css\" rel=\"stylesheet\" href=\"https://fonts.googleapis.com/css?family=Open+Sans:400,700\"/>\n <style type=\"text/css\">\n .ExternalClass,\n .ExternalClass p,\n .ExternalClass span,\n .ExternalClass font,\n .ExternalClass td,\n .ExternalClass div {\n line-height: 100%;\n }\n\n body, img, div, p, ul, li, span, strong, a {\n margin: 0;\n padding: 0;\n }\n\n table {\n border-spacing: 0;\n }\n\n table td {\n border-collapse: collapse;\n }\n\n body {\n color: #000;\n font-family: 'Open Sans', sans-serif, Arial, Helvetica;\n font-size: 14px;\n line-height: 1;\n background-color: #EAEAEA;\n width: 100% !important;\n -webkit-text-size-adjust: none;\n -ms-text-size-adjust: none;\n }\n\n a,\n a:link,\n a:hover,\n a[href^=\"tel\"], a[href^=\"sms\"] {\n color: #000;\n outline: none;\n text-decoration: none !important;\n }\n\n a {\n border: none !important;\n outline: none !important;\n }\n\n a[href^=\"tel\"], a[href^=\"sms\"] {\n pointer-events: none;\n cursor: default;\n }\n\n .mobile_link a[href^=\"tel\"],\n .mobile_link a[href^=\"sms\"] {\n text-decoration: default;\n color: #000 !important;\n pointer-events: auto;\n cursor: default;\n }\n\n img {\n border: none;\n outline: none;\n text-decoration: none;\n height: auto;\n max-width: 100%;\n }\n\n table {\n border-collapse: collapse;\n mso-table-lspace: 0pt;\n mso-table-rspace: 0pt;\n }\n\n tr,\n td {\n margin: 0;\n padding: 0;\n }\n\n @media only screen and (max-width: 799px) {\n table[class=\"Externalmain\"] {\n width: 100% !important;\n }\n }\n\n @media only screen and (max-width: 499px) {\n table[class=\"ExternalClass\"] {\n width: 100% !important;\n }\n }\n </style>\n</head>\n\n<body text=\"#333333\" link=\"#9d470a\" bgcolor=\"#EAEAEA\" alink=\"#9d470a\" yahoo=\"fix\" style=\"width:100% !important; color:#ffffff; font-family: 'Open Sans', Arial, Helvetica, sans-serif; font-size:12px; line-height:1;\">\n<table width=\"100%\" class=\"Externalmain\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" align=\"center\">\n <tr>\n <td>\n <table width=\"600\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" align=\"center\" class=\"ExternalClass\">\n <tr>\n <td>\n <table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" align=\"center\">\n <tr>\n <td>\n <table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" align=\"center\">\n <tr>\n <td>\n <table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">\n <tr>\n <td height=\"35\" style=\"background:#000000;\">\n <img width=\"1\" height=\"1\" title=\"\" alt=\"\" src=\"https://box.reaktor.io/images/email/spacer.png\"/>\n </td>\n </tr>\n <tr>\n <td align=\"center\" style=\"background:#000000;\">\n <img width=\"130\" height=\"130\" title=\"\" alt=\"\" src=\"https://box.reaktor.io/apps/[appId]/images/email/logo.png\"/>\n </td>\n </tr>\n <tr>\n <td height=\"30\" style=\"background:#000000;\">\n <img width=\"1\" height=\"1\" title=\"\" alt=\"\" src=\"https://box.reaktor.io/images/email/spacer.png\"/>\n </td>\n </tr>\n <tr>\n <td>\n <table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" style=\"text-align: center;background: #ffffff;\">\n <tr>\n <td height=\"50\">\n <img width=\"1\" height=\"1\" border=\"0\" src=\"https://box.reaktor.io/images/email/spacer.png\" alt=\"\" title=\"\"/>\n </td>\n </tr>\n <tr>\n <td width=\"100%\" style=\"font-family: 'Open Sans', Arial, Helvetica, sans-serif; color: #77737b; font-size: 14px; letter-spacing: 1px; text-transform: uppercase;\">\n [subTitle]\n </td>\n </tr>\n <tr>\n <td height=\"15\">\n <img width=\"1\" height=\"1\" border=\"0\" src=\"https://box.reaktor.io/images/email/spacer.png\" alt=\"\" title=\"\"/>\n </td>\n </tr>\n <tr>\n <td align=\"center\">\n <img width=\"56\" height=\"1\" border=\"0\" src=\"https://box.reaktor.io/images/email/border.png\" alt=\"\" title=\"\"/>\n </td>\n </tr>\n <tr>\n <td height=\"15\">\n <img width=\"1\" height=\"1\" border=\"0\" src=\"https://box.reaktor.io/images/email/spacer.png\" alt=\"\" title=\"\"/>\n </td>\n </tr>\n <tr>\n <td width=\"100%\" style=\"font-family: 'Open Sans', Arial, Helvetica, sans-serif; color: #1e1c20; font-size: 30px; letter-spacing: 3px; text-transform: uppercase; font-weight: bold;\">\n [title]\n </td>\n </tr>\n <tr>\n <td height=\"30\">\n <img width=\"1\" height=\"1\" border=\"0\" src=\"https://box.reaktor.io/images/email/spacer.png\" alt=\"\" title=\"\"/>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n <tr>\n <td>\n <table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" style=\"color: #000000; text-align: center;background: #ffffff;\">\n <tr>\n <td width=\"30\">\n <img width=\"1\" height=\"1\" border=\"0\" src=\"https://box.reaktor.io/images/email/spacer.png\" alt=\"\" title=\"\"/>\n </td>\n <td>\n [message]\n </td>\n <td width=\"30\">\n <img width=\"1\" height=\"1\" border=\"0\" src=\"https://box.reaktor.io/images/email/spacer.png\" alt=\"\" title=\"\"/>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n <tr>\n <td>\n <table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" style=\"background: #000000;\">\n <tr>\n <td height=\"20\">\n <img width=\"1\" height=\"1\" border=\"0\" title=\"\" alt=\"\" src=\"https://box.reaktor.io/images/email/spacer.png\"/>\n </td>\n </tr>\n <tr>\n <td>\n <table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">\n <tr>\n <td align=\"center\" width=\"89\">\n <a href=\"#\">\n <img width=\"90\" height=\"30\" border=\"0\" title=\"\" alt=\"[appName]\" src=\"https://box.reaktor.io/apps/[appId]/images/email/logo-txt.png\"/>\n </a>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n <tr>\n <td height=\"20\">\n <img width=\"1\" height=\"1\" border=\"0\" title=\"\" alt=\"\" src=\"https://box.reaktor.io/images/email/spacer.png\"/>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n <tr>\n <td height=\"23\">\n <img width=\"1\" height=\"1\" border=\"0\" title=\"\" alt=\"\" src=\"https://box.reaktor.io/images/email/spacer.png\"/>\n </td>\n </tr>\n <tr>\n <td align=\"center\">\n <table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" align=\"center\">\n <tr>\n [links]\n </tr>\n </table>\n </td>\n </tr>\n <tr>\n <td>\n <table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" style=\"text-align: center;\">\n <tr>\n <td height=\"30\">\n <img width=\"1\" height=\"1\" border=\"0\" title=\"\" alt=\"\" src=\"https://box.reaktor.io/images/email/spacer.png\"/>\n </td>\n </tr>\n <tr>\n <td style=\"font-family: 'Open Sans', Arial, Helvetica, sans-serif; color: #333;font-size: 12px;\">\n To stop receiving these emails\n <a style=\"font-size: 12px; font-family: 'Open Sans', Arial, Helvetica, sans-serif; color: #333; text-decoration: underline;\" href=\"#\"> unsubscribe</a>.\n </td>\n </tr>\n <tr>\n <td height=\"13\">\n <img width=\"1\" height=\"1\" border=\"0\" title=\"\" alt=\"\" src=\"https://box.reaktor.io/images/email/spacer.png\"/>\n </td>\n </tr>\n <tr>\n <td style=\"font-family: 'Open Sans', Arial, Helvetica, sans-serif; color: #333; font-size: 12px;\">\n Powered by <a style=\"color: #333;\" href=\"https://reaktor.io\">Reaktor.io</a>\n </td>\n </tr>\n <tr>\n <td height=\"35\">\n <img width=\"1\" height=\"1\" border=\"0\" title=\"\" alt=\"\" src=\"https://box.reaktor.io/images/email/spacer.png\"/>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n</table>\n</body>\n</html>";
|
|
2
|
-
export default _default;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: "<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">\n <tr>\n <td style=\"font-family: 'Open Sans', Arial, Helvetica, sans-serif; color: #000; font-size: 16px; line-height: 24px;\">\n <p>[appName] password reset code: <strong>[resetCode]</strong></p>\n <p style=\"font-size: 12px; line-height: 18px; color: #77737b\">\n <em>Please use the code above to reset your password. It will expire after 15 minutes.</em>\n </p>\n </td>\n </tr>\n <tr>\n <td height=\"60\">\n <img width=\"1\" height=\"1\" title=\"\" alt=\"\" src=\"https://box.reaktor.io/images/email/spacer.png\"/>\n </td>\n </tr>\n</table>";
|
|
2
|
-
export default _default;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: "<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">\n <tr>\n <td style=\"font-family: 'Open Sans', Arial, Helvetica, sans-serif; color: #77737b; font-size: 14px; line-height: 24px;\">\n Your password has been sucessfully updated!\n </td>\n </tr>\n <tr>\n <td height=\"63\">\n <img width=\"1\" height=\"1\" title=\"\" alt=\"\" src=\"https://box.reaktor.io/images/email/spacer.gif\"/>\n </td>\n </tr>\n</table>";
|
|
2
|
-
export default _default;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: "<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">\n <tr>\n <td style=\"font-family: 'Open Sans', Arial, Helvetica, sans-serif; color: #77737b; font-size: 14px;\">\n <p style=\"font-size: 14px; line-height: 26px;\">[appName] email verification code: [emailCode]</p>\n <span style=\"font-size: 12px; line-height: 18px;\">\n Please use the code above to verify your email address.\n </span>\n </td>\n </tr>\n <tr>\n <td height=\"63\">\n <img width=\"1\" height=\"1\" title=\"\" alt=\"\" src=\"https://box.reaktor.io/images/email/spacer.gif\"/>\n </td>\n </tr>\n</table>";
|
|
2
|
-
export default _default;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: "<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">\n <tr>\n <td style=\"font-family: 'Open Sans', Arial, Helvetica, sans-serif; color: #000; font-size: 16px; line-height: 24px;\">\n <h1>Welcome to [appName]!</h1>\n <p style=\"font-size: 12px; line-height: 18px; color: #77737b\">\n Your user account is setup and activated. You may start updating your profile.\n </p>\n </td>\n </tr>\n <tr>\n <td height=\"60\">\n <img width=\"1\" height=\"1\" title=\"\" alt=\"\" src=\"https://box.reaktor.io/images/email/spacer.png\"/>\n </td>\n </tr>\n</table>";
|
|
2
|
-
export default _default;
|