@nlabs/reaktor 0.2.3 → 0.3.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 (63) hide show
  1. package/lib/data/conversations.d.ts +3 -1
  2. package/lib/data/dynamodb.d.ts +8 -8
  3. package/lib/data/email.d.ts +2 -2
  4. package/lib/data/images.d.ts +1 -1
  5. package/lib/data/index.d.ts +1 -0
  6. package/lib/data/ios.d.ts +5 -5
  7. package/lib/data/notifications.d.ts +1 -1
  8. package/lib/data/payments.d.ts +3 -4
  9. package/lib/data/reactions.d.ts +1 -1
  10. package/lib/data/s3.d.ts +6 -6
  11. package/lib/data/subscription.d.ts +1 -1
  12. package/lib/data/websockets.d.ts +6 -0
  13. package/lib/types/payments.d.ts +1 -0
  14. package/lib/types/posts.d.ts +2 -0
  15. package/lib/utils/arangodb.d.ts +2 -1
  16. package/package.json +26 -24
  17. package/lib/config.js +0 -145
  18. package/lib/data/conversations.js +0 -226
  19. package/lib/data/dynamodb.js +0 -174
  20. package/lib/data/email.js +0 -194
  21. package/lib/data/files.js +0 -465
  22. package/lib/data/groups.js +0 -401
  23. package/lib/data/images.js +0 -899
  24. package/lib/data/index.js +0 -234
  25. package/lib/data/ios.js +0 -329
  26. package/lib/data/locations.js +0 -148
  27. package/lib/data/messages.js +0 -283
  28. package/lib/data/notifications.js +0 -59
  29. package/lib/data/payments.js +0 -800
  30. package/lib/data/posts.js +0 -690
  31. package/lib/data/reactions.js +0 -487
  32. package/lib/data/s3.js +0 -147
  33. package/lib/data/search.js +0 -113
  34. package/lib/data/sms.js +0 -79
  35. package/lib/data/subscription.js +0 -311
  36. package/lib/data/tags.js +0 -345
  37. package/lib/data/users.js +0 -419
  38. package/lib/index.js +0 -42
  39. package/lib/types/apps.js +0 -2
  40. package/lib/types/arangodb.js +0 -2
  41. package/lib/types/auth.js +0 -2
  42. package/lib/types/conversations.js +0 -2
  43. package/lib/types/email.js +0 -2
  44. package/lib/types/files.js +0 -2
  45. package/lib/types/google.js +0 -2
  46. package/lib/types/groups.js +0 -2
  47. package/lib/types/images.js +0 -2
  48. package/lib/types/index.js +0 -210
  49. package/lib/types/locations.js +0 -2
  50. package/lib/types/messages.js +0 -2
  51. package/lib/types/notifications.js +0 -2
  52. package/lib/types/payments.js +0 -2
  53. package/lib/types/posts.js +0 -2
  54. package/lib/types/reactions.js +0 -2
  55. package/lib/types/tags.js +0 -2
  56. package/lib/types/users.js +0 -2
  57. package/lib/utils/analytics.js +0 -61
  58. package/lib/utils/arangodb.js +0 -122
  59. package/lib/utils/auth.js +0 -57
  60. package/lib/utils/graphql.js +0 -19
  61. package/lib/utils/index.js +0 -78
  62. package/lib/utils/objects.js +0 -54
  63. package/lib/utils/redis.js +0 -32
@@ -3,4 +3,6 @@ import { ConversationType } from '../types';
3
3
  export declare const getConversationList: (context: ApiContext, from: number, to: number) => Promise<ConversationType[]>;
4
4
  export declare const getDirectConversation: (context: ApiContext, userId: string) => Promise<ConversationType>;
5
5
  export declare const getConversation: (context: ApiContext, convoId: string) => Promise<ConversationType>;
6
- export declare const updateConversation: (context: ApiContext, item: any) => Promise<ConversationType>;
6
+ export declare const updateConversation: (context: ApiContext, conversation: any) => Promise<ConversationType>;
7
+ export declare const addUserToConversation: (context: ApiContext, convoId: string, userId: string) => Promise<any>;
8
+ export declare const removeUserToConversation: (context: ApiContext, convoId: string, userId: string) => Promise<any>;
@@ -1,8 +1,8 @@
1
- import { DynamoDB } from 'aws-sdk';
2
- export declare const dynamoGet: (params: DynamoDB.GetItemInput) => Promise<DynamoDB.GetItemOutput>;
3
- export declare const dynamoGetList: (params: DynamoDB.QueryInput, index: any) => Promise<DynamoDB.GetItemOutput[]>;
4
- export declare const dynamoPut: (params: DynamoDB.PutItemInput) => Promise<DynamoDB.PutItemOutput>;
5
- export declare const dynamoUpdate: (params: DynamoDB.UpdateItemInput) => Promise<DynamoDB.UpdateItemOutput>;
6
- export declare const dynamoPutList: (params: DynamoDB.BatchWriteItemInput) => Promise<DynamoDB.BatchWriteItemOutput>;
7
- export declare const dynamoDel: (params: DynamoDB.DeleteItemInput) => Promise<DynamoDB.DeleteItemOutput>;
8
- export declare const parseDynamo: (results: DynamoDB.QueryOutput) => any[];
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>;
@@ -1,7 +1,7 @@
1
- import { SES } from 'aws-sdk';
1
+ import { SendEmailRequest, SendEmailResponse } from 'aws-sdk/clients/ses';
2
2
  import { AppType } from '../types/apps';
3
3
  import { EmailType } from '../types/email';
4
4
  export declare const appTemplate: (app: AppType, message?: string, vars?: {}) => string;
5
+ export declare const sesSend: (params: SendEmailRequest) => Promise<SendEmailResponse>;
5
6
  export declare const sendEmail: (params: EmailType) => Promise<boolean>;
6
7
  export declare const sendTemplate: (templateName: string, emailParams: EmailType) => Promise<boolean>;
7
- export declare const sesSend: (params: SES.SendEmailRequest) => Promise<SES.SendEmailResponse>;
@@ -13,7 +13,7 @@ export declare const getImage: (context: ApiContext, id: string) => Promise<Imag
13
13
  export declare const getPathUserImages: (sub: string, imgId: string, type: string, dir?: string) => string;
14
14
  export declare const getAppImageUrl: (data: ImageUrlData) => string;
15
15
  export declare const getUserImageUrl: (data: ImageUrlData) => string;
16
- export declare const getPinnedImages: (context: ApiContext, params: any) => Promise<any>;
16
+ export declare const getSavedImages: (context: ApiContext, params: any) => Promise<any>;
17
17
  export declare const resizeSaveImage: (context: ApiContext, imgId: string, buffer: Buffer, type?: string, s3Options?: PutObjectRequest) => Promise<ImageType>;
18
18
  export declare const addImage: (context: ApiContext, image: ImageType, s3Options: PutObjectRequest) => Promise<ImageType>;
19
19
  export declare const addImageEdge: (context: ApiContext, imageEdge: ImageEdgeType) => Promise<object>;
@@ -17,3 +17,4 @@ export * from './sms';
17
17
  export * from './subscription';
18
18
  export * from './tags';
19
19
  export * from './users';
20
+ export * from './websockets';
package/lib/data/ios.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { ApiContext, PaymentIOSInAppError, PaymentIOSSubscriptionUpdate, PaymentSubscription } from '../types';
2
- export declare const getIOSInAppError: (statusCode: string) => PaymentIOSInAppError;
3
- export declare const iOSSubscriptionUpdate: (database: string, subscriptionUpdate: PaymentIOSSubscriptionUpdate) => Promise<void>;
4
- export declare const getIOSSubscription: (context: ApiContext) => Promise<PaymentSubscription>;
5
- export declare const addIOSInApp: (context: ApiContext, subscription: PaymentSubscription) => Promise<PaymentSubscription>;
6
- export declare const getIOSInApp: (context: ApiContext) => Promise<PaymentSubscription>;
2
+ export declare const getIosInAppError: (statusCode: string) => PaymentIOSInAppError;
3
+ export declare const iosSubscriptionUpdate: (database: string, subscriptionUpdate: PaymentIOSSubscriptionUpdate) => Promise<void>;
4
+ export declare const getIosSubscription: (context: ApiContext) => Promise<PaymentSubscription>;
5
+ export declare const addIosInApp: (context: ApiContext, subscription: PaymentSubscription) => Promise<PaymentSubscription>;
6
+ export declare const getIosInApp: (context: ApiContext) => Promise<PaymentSubscription>;
@@ -1,5 +1,5 @@
1
1
  import { Provider, Responses } from 'apn';
2
2
  import { NotificationType } from '../types/notifications';
3
- export declare const getAPNProvider: () => Provider;
3
+ export declare const getApnProvider: () => Provider;
4
4
  export declare const pushNotification: (deviceTokens: string[], note: NotificationType) => Promise<Responses>;
5
5
  export declare const clearBadges: (deviceTokens: string[]) => Promise<Responses>;
@@ -1,11 +1,10 @@
1
1
  import { ApiContext, PaymentBankAccount, PaymentCardType, PaymentCharge, PaymentTransfer, UserType } from '../types';
2
2
  export declare const addCustomerAccount: (context: ApiContext) => Promise<boolean>;
3
- export declare const addPaymentAccountBank: (context: ApiContext, bankAccount: PaymentBankAccount) => Promise<boolean>;
4
- export declare const addPaymentAccountCard: (context: ApiContext, card: PaymentCardType, requestData: any) => Promise<UserType>;
5
- export declare const addCreditCard: (context: ApiContext, card: PaymentCardType) => Promise<PaymentCardType>;
3
+ export declare const addBankAccount: (context: ApiContext, bankAccount: PaymentBankAccount) => Promise<boolean>;
4
+ export declare const addCreditCard: (context: ApiContext, card: PaymentCardType) => Promise<UserType>;
6
5
  export declare const updateCreditCard: (context: ApiContext, card: PaymentCardType) => Promise<PaymentCardType>;
7
6
  export declare const getCreditCards: (context: ApiContext) => Promise<PaymentCardType[]>;
8
7
  export declare const deleteCreditCard: (context: ApiContext, cardId: string) => Promise<boolean>;
9
- export declare const deletePaymentAccountBank: (context: ApiContext, bankId: string) => Promise<boolean>;
8
+ export declare const deleteBankAccount: (context: ApiContext, bankId: string) => Promise<boolean>;
10
9
  export declare const createPaymentTransfer: (context: ApiContext, transfer: PaymentTransfer) => Promise<PaymentTransfer>;
11
10
  export declare const createPaymentHold: (context: ApiContext, payment: PaymentCharge) => Promise<PaymentCharge>;
@@ -11,4 +11,4 @@ export declare const getReactionCountByUser: (context: ApiContext, itemId: strin
11
11
  export declare const getGroupUsersByReaction: (context: ApiContext, params?: UserReactionQuery) => Promise<UserType[]>;
12
12
  export declare const getReactionsByItem: (context: ApiContext, itemId: string, itemType: string, reactionName: string, options: ReactionOptions) => Promise<UserType[]>;
13
13
  export declare const getItemsByReaction: (context: ApiContext, itemId: string, itemType: string, reactionName: string, options: ReactionOptions) => Promise<ReactionType[]>;
14
- export declare const hasReaction: (context: ApiContext, itemId: string, itemType: string, reactionName: string, direction?: ReactionDirection) => Promise<ReactionType[]>;
14
+ export declare const hasReaction: (context: ApiContext, itemId: string, itemType: string, reactionName: string, direction?: ReactionDirection) => Promise<boolean>;
package/lib/data/s3.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { S3 } from 'aws-sdk';
2
- export declare const s3Get: (params: S3.GetObjectRequest) => Promise<S3.GetObjectOutput>;
3
- export declare const s3Head: (params: S3.HeadObjectRequest) => Promise<S3.HeadObjectOutput>;
4
- export declare const s3Put: (params: S3.PutObjectRequest) => Promise<S3.PutObjectOutput>;
5
- export declare const s3Delete: (params: S3.DeleteObjectRequest) => Promise<S3.DeleteObjectOutput>;
6
- export declare const s3DeleteList: (params: S3.DeleteObjectsRequest) => Promise<S3.DeleteObjectsOutput>;
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
7
  export declare const s3GetSignedUrl: (params: any) => string;
@@ -4,4 +4,4 @@ export declare const getPlanList: (context: ApiContext, from?: number, to?: numb
4
4
  export declare const getSubscription: (context: ApiContext) => Promise<PaymentSubscription>;
5
5
  export declare const addPlan: (context: ApiContext, item: PaymentPlan) => Promise<PaymentPlan>;
6
6
  export declare const addSubscription: (context: ApiContext, item: any) => Promise<PaymentSubscription>;
7
- export declare const deleteSubscription: (context: ApiContext, endDate: number) => Promise<boolean>;
7
+ export declare const deleteSubscription: (context: ApiContext) => Promise<boolean>;
@@ -0,0 +1,6 @@
1
+ import { ApiContext } from '../types/auth';
2
+ export declare const addConnection: (connectionId: string, token: string) => Promise<any>;
3
+ export declare const getConnectionBySub: (sub: 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>;
@@ -15,6 +15,7 @@ export interface PaymentCardType {
15
15
  readonly modified?: number;
16
16
  state?: string;
17
17
  street1?: string;
18
+ street2?: string;
18
19
  readonly stripeId?: string;
19
20
  readonly userId?: string;
20
21
  zip?: string;
@@ -5,6 +5,7 @@ export interface PostType {
5
5
  readonly _key?: string;
6
6
  readonly added?: number;
7
7
  content?: string;
8
+ readonly endDate?: number;
8
9
  files?: FileType[];
9
10
  readonly groupId?: string;
10
11
  readonly postId?: string;
@@ -15,6 +16,7 @@ export interface PostType {
15
16
  name?: string;
16
17
  parentId?: string;
17
18
  privacy?: string;
19
+ readonly startDate?: number;
18
20
  tags?: TagType[];
19
21
  type?: string;
20
22
  readonly userId?: string;
@@ -2,7 +2,8 @@ import { Database } from 'arangojs';
2
2
  import { ArangoDBLimit, ArangoDBPathObject, RangeType } from '../types/arangodb';
3
3
  export declare const useDb: (database: string) => Database;
4
4
  export declare const dbPathObjItem: (pathSet: any) => ArangoDBPathObject;
5
- export declare const dbPathObjJSON: (json: any) => ArangoDBPathObject;
5
+ export declare const dbPathObjJson: (json: any) => ArangoDBPathObject;
6
6
  export declare const dbPathObjList: (pathSet: any) => ArangoDBPathObject;
7
7
  export declare const getLimit: (start?: number, to?: number) => ArangoDBLimit;
8
8
  export declare const getRange: (from: number, to: number) => RangeType;
9
+ export declare const selectReactionCountByType: (objectType: string, objectKey: string, field: string, selects: any) => any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nlabs/reaktor",
3
- "version": "0.2.3",
3
+ "version": "0.3.0",
4
4
  "description": "Reaktor",
5
5
  "main": "./index.js",
6
6
  "types": "./lib/index.d.js",
@@ -38,44 +38,46 @@
38
38
  "update": "lex update -i"
39
39
  },
40
40
  "dependencies": {
41
- "@nlabs/arkhamjs": "^3.14.3",
41
+ "@nlabs/arkhamjs": "^3.17.5",
42
42
  "@nlabs/rip-hunter": "^2.0.3",
43
- "@nlabs/utils": "^1.2.2",
43
+ "@nlabs/utils": "^1.3.0",
44
44
  "apn": "^2.2.0",
45
- "arangojs": "^6.11.1",
46
- "aws-sdk": "^2.526.0",
47
- "file-type": "^12.3.0",
45
+ "arangojs": "^6.14.1",
46
+ "aws-sdk": "^2.700.0",
47
+ "core-js": "^3.6.5",
48
+ "file-type": "^14.6.2",
48
49
  "gm": "^1.23.1",
49
- "google-libphonenumber": "^3.2.4",
50
- "googleapis": "^43.0.0",
51
- "graphql": "^14.5.4",
50
+ "google-libphonenumber": "^3.2.10",
51
+ "googleapis": "^52.1.0",
52
+ "graphql": "^15.1.0",
52
53
  "graphql-errors": "^2.1.0",
53
54
  "graphql-fields": "^2.0.3",
54
55
  "hiredis": "^0.5.0",
55
56
  "lodash": "^4.17.15",
56
- "luxon": "^1.17.2",
57
+ "luxon": "^1.24.1",
57
58
  "node-yelp": "0.0.3",
58
59
  "numeral": "^2.0.6",
59
- "redis": "^2.8.0",
60
- "request-promise": "^4.2.4",
61
- "stripe": "^7.9.0",
60
+ "redis": "^3.0.2",
61
+ "request-promise": "^4.2.5",
62
+ "stripe": "^8.64.0",
62
63
  "to": "^0.2.9",
63
- "twilio": "^3.34.0",
64
+ "twilio": "^3.46.0",
64
65
  "typed-promisify": "^0.4.0",
65
66
  "universal-analytics": "^0.4.20",
66
67
  "update": "^0.7.4"
67
68
  },
68
69
  "devDependencies": {
69
70
  "@types/graphql": "^14.5.0",
70
- "@types/history": "^4.6.2",
71
- "@types/jest": "^24.0.18",
72
- "@types/luxon": "^1.15.2",
73
- "@types/node": "^12.7.4",
74
- "@types/twilio": "^0.0.10",
75
- "eslint": "^6.3.0",
76
- "eslint-config-styleguidejs": "^1.0.14",
77
- "graphql-tools": "^4.0.5",
78
- "source-map-loader": "^0.2.4",
79
- "typescript": "^3.6.3"
71
+ "@types/history": "^4.7.6",
72
+ "@types/jest": "^26.0.0",
73
+ "@types/luxon": "^1.24.0",
74
+ "@types/node": "^13.13.4",
75
+ "@types/stripe": "^7.13.23",
76
+ "@types/twilio": "^2.11.0",
77
+ "eslint": "^7.2.0",
78
+ "eslint-config-styleguidejs": "^1.3.4",
79
+ "graphql-tools": "^6.0.10",
80
+ "source-map-loader": "^1.0.0",
81
+ "typescript": "^3.9.5"
80
82
  }
81
83
  }
package/lib/config.js DELETED
@@ -1,145 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.Config = void 0;
7
-
8
- var _get2 = _interopRequireDefault(require("lodash/get"));
9
-
10
- var _merge = _interopRequireDefault(require("lodash/merge"));
11
-
12
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
13
-
14
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
15
-
16
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
17
-
18
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
19
-
20
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
21
-
22
- var appPackage = require('../package.json');
23
-
24
- var _process$env = process.env,
25
- _process$env$arangodb = _process$env.arangodbDatabase,
26
- arangodbDatabase = _process$env$arangodb === void 0 ? 'reaktor' : _process$env$arangodb,
27
- arangodbPassword = _process$env.arangodbPassword,
28
- _process$env$arangodb2 = _process$env.arangodbPort,
29
- arangodbPort = _process$env$arangodb2 === void 0 ? '8529' : _process$env$arangodb2,
30
- _process$env$arangodb3 = _process$env.arangodbUrl,
31
- arangodbUrl = _process$env$arangodb3 === void 0 ? 'db.reaktor.io' : _process$env$arangodb3,
32
- _process$env$arangodb4 = _process$env.arangodbUsername,
33
- arangodbUsername = _process$env$arangodb4 === void 0 ? 'reaktor' : _process$env$arangodb4;
34
-
35
- var Config =
36
- /*#__PURE__*/
37
- function () {
38
- function Config() {
39
- _classCallCheck(this, Config);
40
- }
41
-
42
- _createClass(Config, null, [{
43
- key: "get",
44
- value: function get(path) {
45
- var environment = process.env.stage || 'dev';
46
- var configValues = (0, _merge["default"])(this.values["default"], this.values[environment], {
47
- environment: environment
48
- });
49
- return (0, _get2["default"])(configValues, path);
50
- }
51
- }]);
52
-
53
- return Config;
54
- }();
55
-
56
- exports.Config = Config;
57
-
58
- _defineProperty(Config, "values", {
59
- "default": {
60
- app: {
61
- name: 'reaktor',
62
- url: 'reaktor.io',
63
- version: appPackage.version
64
- },
65
- arangodb: {
66
- database: arangodbDatabase,
67
- dump: '/Applications/ArangoDB-CLI.app/Contents/MacOS/arangodump',
68
- password: arangodbPassword,
69
- port: arangodbPort,
70
- restore: '/Applications/ArangoDB-CLI.app/Contents/MacOS/arangorestore',
71
- url: "".concat(arangodbUrl, ":").concat(arangodbPort),
72
- username: arangodbUsername
73
- },
74
- aws: {
75
- Bucket: 'dev.reaktor.io',
76
- accessKeyId: 'AKIAJIYDT3EA2ZFMTJNA',
77
- maxRetries: 3,
78
- region: 'us-east-1',
79
- secretAccessKey: 'bUssQRtJTZC7geF9RDH5KCn8CalVnf2VT34yqS+9',
80
- signatureVersion: 'v4'
81
- },
82
- giphy: {
83
- key: 'dc6zaTOxFJmzC'
84
- },
85
- google: {
86
- analytics: {
87
- accountId: '78158717',
88
- trackingId: 'UA-78158717-1'
89
- },
90
- geocode: {
91
- key: 'AIzaSyBwjmpBjWhiJoBCZiYzRurM9m4WnCxslv0',
92
- url: 'https://maps.googleapis.com/maps/api/geocode/json'
93
- },
94
- key: 'AIzaSyC3_f2Us3y0qjbyMJ-4t5ObtCzfq_FHIgQ'
95
- },
96
- image: {
97
- imgQuality: 90,
98
- imgSize: 1500,
99
- thmQuality: 80,
100
- thmSize: 150
101
- },
102
- redis: {
103
- host: '127.0.0.1',
104
- port: 6379
105
- },
106
- stripe: {
107
- token: 'sk_test_LS956be57YUXTB5a4sLGb5BQ'
108
- },
109
- twilio: {
110
- number: '+15005550006',
111
- sid: 'AC6bd7f513cbed2e5134c650be06cc732e',
112
- token: '520ae739e761bab759b147f1ad28278f'
113
- }
114
- },
115
- dev: {
116
- aws: {
117
- Bucket: 'dev.reaktor.io'
118
- },
119
- redis: {
120
- host: 'nl-redis.ehcvnt.ng.0001.use1.cache.amazonaws.com'
121
- }
122
- },
123
- prod: {
124
- arangodb: {
125
- dump: '/usr/bin/arangodump',
126
- restore: '/usr/bin/arangorestore'
127
- },
128
- aws: {
129
- Bucket: 'box.reaktor.io'
130
- },
131
- redis: {
132
- host: 'nl-redis.ehcvnt.ng.0001.use1.cache.amazonaws.com'
133
- },
134
- stripe: {
135
- token: 'sk_live_bElZl8RLhMCJy33KG4lyLD4o'
136
- },
137
- twilio: {
138
- number: '+18554165227',
139
- sid: 'AC90b0528a911e652d643329a4d7b4d2c7',
140
- token: 'a7941d173bd4846d0966a186e9865b72'
141
- }
142
- },
143
- test: {}
144
- });
145
- //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9jb25maWcudHMiXSwibmFtZXMiOlsiYXBwUGFja2FnZSIsInJlcXVpcmUiLCJwcm9jZXNzIiwiZW52IiwiYXJhbmdvZGJEYXRhYmFzZSIsImFyYW5nb2RiUGFzc3dvcmQiLCJhcmFuZ29kYlBvcnQiLCJhcmFuZ29kYlVybCIsIm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