@nlabs/reaktor 0.5.4 → 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.
Files changed (135) hide show
  1. package/README.md +7 -7
  2. package/lib/actions/conversations.js +68 -69
  3. package/lib/actions/dynamodb.js +22 -33
  4. package/lib/actions/email.js +32 -30
  5. package/lib/actions/files.js +39 -58
  6. package/lib/actions/groups.js +33 -28
  7. package/lib/actions/images.js +71 -82
  8. package/lib/actions/index.js +54 -37
  9. package/lib/actions/ios.js +21 -40
  10. package/lib/actions/locations.js +25 -22
  11. package/lib/actions/messages.js +31 -45
  12. package/lib/actions/notifications.js +13 -20
  13. package/lib/actions/payments.js +40 -52
  14. package/lib/actions/posts.js +68 -48
  15. package/lib/actions/reactions.js +29 -52
  16. package/lib/actions/s3.js +21 -18
  17. package/lib/actions/search.js +26 -40
  18. package/lib/actions/sms.js +24 -21
  19. package/lib/actions/statistics.js +14 -21
  20. package/lib/actions/subscription.js +27 -24
  21. package/lib/actions/tags.js +49 -56
  22. package/lib/actions/users.js +92 -106
  23. package/lib/actions/websockets.js +28 -41
  24. package/lib/config.js +21 -18
  25. package/lib/index.js +24 -22
  26. package/lib/lambdas/actions/websockets.js +21 -45
  27. package/lib/lambdas/authorizer.js +16 -24
  28. package/lib/lambdas/connection.js +18 -43
  29. package/lib/lambdas/utils/message.js +20 -17
  30. package/lib/lambdas/utils/websocket.js +33 -25
  31. package/lib/templates/email/layout.js +16 -9
  32. package/lib/templates/email/passwordForgot.js +16 -9
  33. package/lib/templates/email/passwordRecovery.js +16 -9
  34. package/lib/templates/email/verifyEmail.js +16 -9
  35. package/lib/templates/email/welcome.js +16 -9
  36. package/lib/templates/sms/passwordForgot.js +16 -9
  37. package/lib/templates/sms/passwordRecovery.js +16 -9
  38. package/lib/templates/sms/verifyEmail.js +16 -9
  39. package/lib/templates/sms/verifyPhone.js +16 -9
  40. package/lib/templates/sms/welcome.js +16 -9
  41. package/lib/types/apps.js +14 -5
  42. package/lib/types/arangodb.js +14 -5
  43. package/lib/types/auth.js +14 -5
  44. package/lib/types/connections.js +14 -5
  45. package/lib/types/conversations.js +14 -5
  46. package/lib/types/email.js +14 -5
  47. package/lib/types/files.js +14 -5
  48. package/lib/types/google.js +14 -5
  49. package/lib/types/groups.js +14 -5
  50. package/lib/types/images.js +14 -5
  51. package/lib/types/index.js +50 -35
  52. package/lib/types/locations.js +14 -5
  53. package/lib/types/messages.js +14 -5
  54. package/lib/types/notifications.js +14 -5
  55. package/lib/types/payments.js +14 -5
  56. package/lib/types/posts.js +14 -5
  57. package/lib/types/statistics.js +14 -5
  58. package/lib/types/tags.js +14 -5
  59. package/lib/types/users.js +14 -5
  60. package/lib/types/websocket.js +14 -5
  61. package/lib/utils/analytics.js +24 -44
  62. package/lib/utils/arangodb.js +15 -22
  63. package/lib/utils/auth.js +22 -36
  64. package/lib/utils/graphql.js +20 -17
  65. package/lib/utils/index.js +26 -23
  66. package/lib/utils/objects.js +22 -19
  67. package/lib/utils/session.js +20 -17
  68. package/package.json +31 -33
  69. package/.eslintrc +0 -18
  70. package/lib/actions/conversations.d.ts +0 -14
  71. package/lib/actions/dynamodb.d.ts +0 -8
  72. package/lib/actions/email.d.ts +0 -7
  73. package/lib/actions/files.d.ts +0 -16
  74. package/lib/actions/groups.d.ts +0 -14
  75. package/lib/actions/images.d.ts +0 -22
  76. package/lib/actions/index.d.ts +0 -20
  77. package/lib/actions/ios.d.ts +0 -7
  78. package/lib/actions/locations.d.ts +0 -3
  79. package/lib/actions/messages.d.ts +0 -13
  80. package/lib/actions/notifications.d.ts +0 -5
  81. package/lib/actions/payments.d.ts +0 -10
  82. package/lib/actions/posts.d.ts +0 -19
  83. package/lib/actions/reactions.d.ts +0 -30
  84. package/lib/actions/s3.d.ts +0 -7
  85. package/lib/actions/search.d.ts +0 -3
  86. package/lib/actions/sms.d.ts +0 -3
  87. package/lib/actions/statistics.d.ts +0 -2
  88. package/lib/actions/subscription.d.ts +0 -7
  89. package/lib/actions/tags.d.ts +0 -26
  90. package/lib/actions/users.d.ts +0 -44
  91. package/lib/actions/websockets.d.ts +0 -6
  92. package/lib/config.d.ts +0 -20
  93. package/lib/index.d.ts +0 -5
  94. package/lib/lambdas/actions/websockets.d.ts +0 -6
  95. package/lib/lambdas/authorizer.d.ts +0 -20
  96. package/lib/lambdas/connection.d.ts +0 -12
  97. package/lib/lambdas/utils/message.d.ts +0 -1
  98. package/lib/lambdas/utils/websocket.d.ts +0 -7
  99. package/lib/templates/email/layout.d.ts +0 -2
  100. package/lib/templates/email/passwordForgot.d.ts +0 -2
  101. package/lib/templates/email/passwordRecovery.d.ts +0 -2
  102. package/lib/templates/email/verifyEmail.d.ts +0 -2
  103. package/lib/templates/email/welcome.d.ts +0 -2
  104. package/lib/templates/sms/passwordForgot.d.ts +0 -2
  105. package/lib/templates/sms/passwordRecovery.d.ts +0 -2
  106. package/lib/templates/sms/verifyEmail.d.ts +0 -2
  107. package/lib/templates/sms/verifyPhone.d.ts +0 -2
  108. package/lib/templates/sms/welcome.d.ts +0 -2
  109. package/lib/types/apps.d.ts +0 -44
  110. package/lib/types/arangodb.d.ts +0 -17
  111. package/lib/types/auth.d.ts +0 -7
  112. package/lib/types/connections.d.ts +0 -8
  113. package/lib/types/conversations.d.ts +0 -11
  114. package/lib/types/email.d.ts +0 -12
  115. package/lib/types/files.d.ts +0 -26
  116. package/lib/types/google.d.ts +0 -27
  117. package/lib/types/groups.d.ts +0 -22
  118. package/lib/types/images.d.ts +0 -42
  119. package/lib/types/index.d.ts +0 -18
  120. package/lib/types/locations.d.ts +0 -20
  121. package/lib/types/messages.d.ts +0 -27
  122. package/lib/types/notifications.d.ts +0 -19
  123. package/lib/types/payments.d.ts +0 -115
  124. package/lib/types/posts.d.ts +0 -47
  125. package/lib/types/statistics.d.ts +0 -3
  126. package/lib/types/tags.d.ts +0 -15
  127. package/lib/types/users.d.ts +0 -80
  128. package/lib/types/websocket.d.ts +0 -14
  129. package/lib/utils/analytics.d.ts +0 -14
  130. package/lib/utils/arangodb.d.ts +0 -9
  131. package/lib/utils/auth.d.ts +0 -5
  132. package/lib/utils/graphql.d.ts +0 -1
  133. package/lib/utils/index.d.ts +0 -6
  134. package/lib/utils/objects.d.ts +0 -3
  135. package/lib/utils/session.d.ts +0 -18
@@ -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>;
@@ -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[]>;
@@ -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,5 +0,0 @@
1
- export * from './actions';
2
- export * from './lambdas/authorizer';
3
- export * from './lambdas/connection';
4
- export * from './utils';
5
- export * from './types';
@@ -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,7 +0,0 @@
1
- export declare class WebsocketClient {
2
- client: any;
3
- constructor(config?: any);
4
- setupClient(config: any): void;
5
- send(connections: any, payload: any): Promise<boolean>;
6
- }
7
- export declare const wsClient: WebsocketClient;
@@ -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;
@@ -1,2 +0,0 @@
1
- declare const _default: "[appName] password reset code: [resetCode]";
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: "Your password for [appName] has been successfully changed.";
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: "Email verification code is: [emailCode]";
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: "Phone verification code is: [phoneCode]";
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: "Welcome to [appName]! Your user account is setup and activated. You may start updating your profile.";
2
- export default _default;
@@ -1,44 +0,0 @@
1
- import { User } from './users';
2
- export declare type AppCollectionTypes = 'apps' | 'files' | 'groups' | 'locations' | 'messages' | 'posts' | 'users';
3
- export interface TestType {
4
- }
5
- export interface AppSessionType {
6
- readonly active?: boolean;
7
- readonly added?: number;
8
- readonly exp?: number;
9
- readonly modified?: number;
10
- readonly name?: string;
11
- }
12
- export interface AppType {
13
- readonly _id?: string;
14
- readonly _key?: string;
15
- readonly active?: boolean;
16
- readonly currency?: string;
17
- readonly displayName?: string;
18
- readonly email?: string;
19
- readonly hasCustomEmail?: boolean;
20
- readonly iap?: string;
21
- readonly id?: string;
22
- readonly key?: string;
23
- readonly name?: string;
24
- readonly photo?: string;
25
- readonly secret?: string;
26
- readonly supportName?: string;
27
- readonly url?: string;
28
- readonly urlFacebook?: string;
29
- readonly urlTwitter?: string;
30
- }
31
- export interface AppStatsType {
32
- readonly numUsers?: number;
33
- }
34
- export interface EmailParamsType {
35
- readonly type?: string;
36
- readonly user?: User;
37
- }
38
- export interface QueryFilter {
39
- readonly conditional?: string;
40
- readonly name?: string;
41
- readonly value?: string;
42
- }
43
- export interface AccessTokenType {
44
- }
@@ -1,17 +0,0 @@
1
- export interface RangeType {
2
- readonly from: number;
3
- readonly to: number;
4
- }
5
- export interface ArangoDBPathObject {
6
- readonly collection?: string;
7
- readonly itemObj?: any;
8
- readonly keys?: string[];
9
- readonly props?: any;
10
- readonly ranges?: any;
11
- readonly routeKey: string;
12
- }
13
- export interface ArangoDBLimit {
14
- readonly aql: string;
15
- readonly start: number;
16
- readonly num: number;
17
- }
@@ -1,7 +0,0 @@
1
- import { Database } from 'arangojs';
2
- import { Session } from '../utils/session';
3
- export interface ApiContext {
4
- readonly database: Database;
5
- readonly fields?: string[];
6
- readonly session: Partial<Session>;
7
- }
@@ -1,8 +0,0 @@
1
- export interface ConnectionType {
2
- readonly _id?: string;
3
- readonly _key?: string;
4
- readonly connectionId?: string;
5
- readonly added: number;
6
- readonly isDirect: boolean;
7
- readonly modified: number;
8
- }
@@ -1,11 +0,0 @@
1
- import { User } from './users';
2
- export interface ConversationType {
3
- readonly _from?: string;
4
- readonly _key?: string;
5
- readonly _to?: string;
6
- readonly added?: number;
7
- readonly conversationId?: string;
8
- readonly modified?: number;
9
- readonly name?: string;
10
- users?: User[];
11
- }
@@ -1,12 +0,0 @@
1
- import { AppType } from './apps';
2
- import { User } from './users';
3
- export interface EmailType {
4
- readonly app?: AppType;
5
- readonly html?: string;
6
- readonly subject?: string;
7
- readonly subTitle?: string;
8
- readonly text?: string;
9
- readonly title?: string;
10
- readonly user?: User;
11
- readonly vars?: any;
12
- }
@@ -1,26 +0,0 @@
1
- /// <reference types="node" />
2
- export interface FileType {
3
- readonly _key?: string;
4
- readonly added?: number;
5
- readonly base64?: string;
6
- readonly buffer?: Buffer;
7
- readonly description?: string;
8
- fileSize?: number;
9
- readonly fileType?: string;
10
- readonly fileId?: string;
11
- readonly itemId?: string;
12
- readonly itemType?: string;
13
- readonly modified?: number;
14
- readonly name?: string;
15
- readonly url?: string;
16
- readonly userId?: string;
17
- }
18
- export interface FileDecodedType {
19
- data?: Buffer;
20
- type?: string;
21
- }
22
- export interface FileEdgeType {
23
- readonly fileId?: string;
24
- readonly itemId?: string;
25
- readonly itemType?: string;
26
- }
@@ -1,27 +0,0 @@
1
- export interface GoogleMapsType {
2
- results: GoogleMapsResultType[];
3
- status: string;
4
- }
5
- export interface GoogleMapsAddressType {
6
- long_name: string;
7
- short_name: string;
8
- types: string[];
9
- }
10
- export interface GoogleTimezoneType {
11
- dstOffset: string;
12
- rawOffset: string;
13
- status: string;
14
- timeZoneId: string;
15
- timeZoneName: string;
16
- }
17
- export interface GoogleLatLngType {
18
- lat: number;
19
- lng: number;
20
- }
21
- export interface GoogleMapsLocationType {
22
- location: GoogleLatLngType;
23
- }
24
- export interface GoogleMapsResultType {
25
- address_components: GoogleMapsAddressType[];
26
- geometry: GoogleMapsLocationType;
27
- }
@@ -1,22 +0,0 @@
1
- export interface GroupType {
2
- readonly _id?: string;
3
- readonly _key?: string;
4
- readonly added?: number;
5
- readonly description?: string;
6
- readonly groupId?: string;
7
- readonly id?: string;
8
- readonly modified?: number;
9
- readonly name?: string;
10
- readonly privacy?: string;
11
- readonly type?: string;
12
- }
13
- export interface GroupUser {
14
- readonly groupId?: string;
15
- readonly isValid?: boolean;
16
- readonly userId?: string;
17
- }
18
- export interface GroupEdgeType {
19
- readonly groupId?: string;
20
- readonly isValid?: boolean;
21
- readonly userId?: string;
22
- }
@@ -1,42 +0,0 @@
1
- import { PutObjectRequest } from 'aws-sdk/clients/s3';
2
- import { AppCollectionTypes } from './apps';
3
- import { FileType } from './files';
4
- export interface ImageType extends FileType {
5
- readonly _id?: string;
6
- readonly _key?: string;
7
- readonly _rev?: string;
8
- readonly bucket?: string;
9
- color?: string;
10
- readonly imageId?: string;
11
- readonly height?: number;
12
- readonly model?: string;
13
- readonly make?: string;
14
- readonly s3Options?: PutObjectRequest;
15
- readonly taken?: number;
16
- readonly width?: number;
17
- }
18
- export interface ImageIdentifyType {
19
- readonly datetimeoriginal?: number;
20
- readonly model?: string;
21
- readonly make?: string;
22
- }
23
- export interface ImageUrlData {
24
- readonly bucket?: string;
25
- readonly directory?: string;
26
- readonly imageId?: string;
27
- readonly imageType?: string;
28
- readonly isThumb?: boolean;
29
- readonly type?: AppCollectionTypes;
30
- readonly typeId?: string;
31
- readonly userId: string;
32
- }
33
- export interface ImageEdgeType {
34
- readonly imageId?: string;
35
- readonly itemId?: string;
36
- readonly itemType?: string;
37
- }
38
- export interface ImageOptions {
39
- readonly from?: number;
40
- readonly to?: number;
41
- readonly type?: string;
42
- }
@@ -1,18 +0,0 @@
1
- export * from './apps';
2
- export * from './arangodb';
3
- export * from './auth';
4
- export * from './connections';
5
- export * from './conversations';
6
- export * from './email';
7
- export * from './files';
8
- export * from './google';
9
- export * from './groups';
10
- export * from './images';
11
- export * from './locations';
12
- export * from './messages';
13
- export * from './notifications';
14
- export * from './payments';
15
- export * from './posts';
16
- export * from './statistics';
17
- export * from './tags';
18
- export * from './users';
@@ -1,20 +0,0 @@
1
- export interface LocationType {
2
- readonly _key?: string;
3
- readonly address?: string;
4
- readonly added?: number;
5
- readonly city?: string;
6
- readonly country?: string;
7
- readonly description?: string;
8
- readonly formatted?: string;
9
- readonly googleId?: string;
10
- readonly id?: string;
11
- readonly itemId?: string;
12
- readonly itemType?: string;
13
- readonly latitude?: string;
14
- readonly longitude?: string;
15
- readonly modified?: number;
16
- readonly state?: string;
17
- readonly street?: string;
18
- readonly userId?: string;
19
- readonly zip?: string;
20
- }
@@ -1,27 +0,0 @@
1
- export interface MessageInputType {
2
- readonly content?: string;
3
- readonly conversationId?: string;
4
- readonly files?: string[];
5
- readonly images?: string[];
6
- readonly itemId?: string;
7
- readonly itemType?: string;
8
- readonly messageId?: string;
9
- readonly read?: boolean;
10
- readonly saved?: boolean;
11
- readonly userId?: string;
12
- }
13
- export interface MessageType extends MessageInputType {
14
- readonly _key?: string;
15
- readonly added?: number;
16
- readonly content?: string;
17
- readonly conversationId?: string;
18
- readonly files?: string[];
19
- readonly images?: string[];
20
- readonly itemId?: string;
21
- readonly itemType?: string;
22
- readonly messageId?: string;
23
- readonly modified?: number;
24
- readonly read?: boolean;
25
- readonly saved?: boolean;
26
- readonly userId?: string;
27
- }
@@ -1,19 +0,0 @@
1
- import { AppType } from './apps';
2
- import { User } from './users';
3
- export interface NotificationType {
4
- readonly badge?: number;
5
- readonly data?: any;
6
- readonly message?: string;
7
- readonly title?: string;
8
- }
9
- export interface SMSParamsType {
10
- readonly app?: AppType;
11
- readonly content?: string;
12
- readonly user?: User;
13
- readonly vars?: any;
14
- }
15
- export interface TwilioOptionsType {
16
- readonly body?: string;
17
- readonly from?: string;
18
- readonly to?: string;
19
- }