@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.
Files changed (84) hide show
  1. package/lib/actions/conversations.js +34 -24
  2. package/lib/actions/email.js +2 -3
  3. package/lib/actions/files.js +4 -15
  4. package/lib/actions/images.js +20 -21
  5. package/lib/actions/messages.js +5 -6
  6. package/lib/actions/payments.js +5 -6
  7. package/lib/actions/posts.js +50 -7
  8. package/lib/actions/reactions.js +13 -13
  9. package/lib/actions/tags.js +3 -3
  10. package/lib/actions/users.js +13 -14
  11. package/lib/actions/websockets.js +3 -3
  12. package/lib/lambdas/actions/websockets.js +4 -15
  13. package/lib/lambdas/authorizer.js +5 -16
  14. package/lib/lambdas/connection.js +2 -13
  15. package/lib/types/conversations.js +1 -1
  16. package/lib/types/users.js +1 -1
  17. package/lib/utils/arangodb.js +2 -2
  18. package/package.json +12 -12
  19. package/lib/actions/conversations.d.ts +0 -14
  20. package/lib/actions/dynamodb.d.ts +0 -8
  21. package/lib/actions/email.d.ts +0 -7
  22. package/lib/actions/files.d.ts +0 -16
  23. package/lib/actions/groups.d.ts +0 -14
  24. package/lib/actions/images.d.ts +0 -22
  25. package/lib/actions/index.d.ts +0 -20
  26. package/lib/actions/ios.d.ts +0 -7
  27. package/lib/actions/locations.d.ts +0 -3
  28. package/lib/actions/messages.d.ts +0 -13
  29. package/lib/actions/notifications.d.ts +0 -5
  30. package/lib/actions/payments.d.ts +0 -10
  31. package/lib/actions/posts.d.ts +0 -19
  32. package/lib/actions/reactions.d.ts +0 -30
  33. package/lib/actions/s3.d.ts +0 -7
  34. package/lib/actions/search.d.ts +0 -3
  35. package/lib/actions/sms.d.ts +0 -3
  36. package/lib/actions/statistics.d.ts +0 -2
  37. package/lib/actions/subscription.d.ts +0 -7
  38. package/lib/actions/tags.d.ts +0 -26
  39. package/lib/actions/users.d.ts +0 -44
  40. package/lib/actions/websockets.d.ts +0 -6
  41. package/lib/config.d.ts +0 -20
  42. package/lib/index.d.ts +0 -5
  43. package/lib/lambdas/actions/websockets.d.ts +0 -6
  44. package/lib/lambdas/authorizer.d.ts +0 -20
  45. package/lib/lambdas/connection.d.ts +0 -12
  46. package/lib/lambdas/utils/message.d.ts +0 -1
  47. package/lib/lambdas/utils/websocket.d.ts +0 -7
  48. package/lib/templates/email/layout.d.ts +0 -2
  49. package/lib/templates/email/passwordForgot.d.ts +0 -2
  50. package/lib/templates/email/passwordRecovery.d.ts +0 -2
  51. package/lib/templates/email/verifyEmail.d.ts +0 -2
  52. package/lib/templates/email/welcome.d.ts +0 -2
  53. package/lib/templates/sms/passwordForgot.d.ts +0 -2
  54. package/lib/templates/sms/passwordRecovery.d.ts +0 -2
  55. package/lib/templates/sms/verifyEmail.d.ts +0 -2
  56. package/lib/templates/sms/verifyPhone.d.ts +0 -2
  57. package/lib/templates/sms/welcome.d.ts +0 -2
  58. package/lib/types/apps.d.ts +0 -44
  59. package/lib/types/arangodb.d.ts +0 -17
  60. package/lib/types/auth.d.ts +0 -7
  61. package/lib/types/connections.d.ts +0 -8
  62. package/lib/types/conversations.d.ts +0 -11
  63. package/lib/types/email.d.ts +0 -12
  64. package/lib/types/files.d.ts +0 -26
  65. package/lib/types/google.d.ts +0 -27
  66. package/lib/types/groups.d.ts +0 -22
  67. package/lib/types/images.d.ts +0 -42
  68. package/lib/types/index.d.ts +0 -18
  69. package/lib/types/locations.d.ts +0 -20
  70. package/lib/types/messages.d.ts +0 -27
  71. package/lib/types/notifications.d.ts +0 -19
  72. package/lib/types/payments.d.ts +0 -115
  73. package/lib/types/posts.d.ts +0 -47
  74. package/lib/types/statistics.d.ts +0 -3
  75. package/lib/types/tags.d.ts +0 -15
  76. package/lib/types/users.d.ts +0 -80
  77. package/lib/types/websocket.d.ts +0 -14
  78. package/lib/utils/analytics.d.ts +0 -14
  79. package/lib/utils/arangodb.d.ts +0 -9
  80. package/lib/utils/auth.d.ts +0 -5
  81. package/lib/utils/graphql.d.ts +0 -1
  82. package/lib/utils/index.d.ts +0 -6
  83. package/lib/utils/objects.d.ts +0 -3
  84. package/lib/utils/session.d.ts +0 -18
@@ -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 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
- }
@@ -1,115 +0,0 @@
1
- export interface PaymentCardType {
2
- readonly _id?: string;
3
- readonly _key?: string;
4
- readonly acceptedTerms?: boolean;
5
- readonly accountNumber?: string;
6
- readonly added?: number;
7
- readonly brand?: string;
8
- city?: string;
9
- country?: string;
10
- readonly cvc?: string;
11
- expMonth?: number;
12
- expYear?: number;
13
- fullName?: string;
14
- readonly id?: string;
15
- readonly modified?: number;
16
- state?: string;
17
- street1?: string;
18
- street2?: string;
19
- readonly stripeId?: string;
20
- readonly userId?: string;
21
- zip?: string;
22
- }
23
- export interface PaymentBankAccount {
24
- readonly accountNumber?: string;
25
- readonly fullName?: string;
26
- readonly routing?: string;
27
- }
28
- export interface PaymentCharge {
29
- readonly added?: number;
30
- readonly amount?: number;
31
- readonly capture?: boolean;
32
- readonly cardId?: string;
33
- readonly chargeFailCode?: string;
34
- readonly chargeFailMsg?: string;
35
- readonly chargeId?: string;
36
- readonly chargeStatus?: string;
37
- readonly currency?: string;
38
- readonly description?: string;
39
- readonly modified?: number;
40
- readonly userId?: string;
41
- }
42
- export interface PaymentTransfer {
43
- readonly added?: number;
44
- readonly amount?: number;
45
- readonly currency?: string;
46
- readonly description?: string;
47
- readonly modified?: number;
48
- readonly userId?: string;
49
- }
50
- export type PaymentInterval = 'day' | 'week' | 'month' | 'year';
51
- export interface PaymentPlan {
52
- readonly _key?: string;
53
- readonly added?: number;
54
- readonly amount?: number;
55
- readonly currency?: string;
56
- readonly description?: string;
57
- readonly id?: string;
58
- readonly interval?: PaymentInterval;
59
- readonly intervalCount?: number;
60
- readonly modified?: number;
61
- readonly name?: string;
62
- }
63
- export interface PaymentSubscription {
64
- readonly _key?: string;
65
- readonly added?: number;
66
- readonly cancelDate?: number;
67
- readonly expires?: number;
68
- readonly id?: string;
69
- readonly isProduction?: boolean;
70
- readonly isTrial?: boolean;
71
- readonly isValid?: boolean;
72
- readonly modified?: number;
73
- readonly plan?: PaymentPlan;
74
- readonly planId?: string;
75
- readonly receipt?: string;
76
- readonly status?: string;
77
- readonly transactionId?: string;
78
- readonly tax?: number;
79
- readonly trialEnd?: number;
80
- readonly type?: string;
81
- readonly userId?: string;
82
- }
83
- export interface PaymentIOSSubscriptionUpdate {
84
- readonly environment?: 'SANDBOX' | 'PROD';
85
- readonly notification_type?: 'INITIAL_BUY' | 'CANCEL' | 'RENEWAL' | 'INTERACTIVE_RENEWAL' | 'DID_CHANGE_RENEWAL_PREFERENCE';
86
- readonly password?: string;
87
- readonly original_transaction_id?: string;
88
- readonly cancellation_date?: number;
89
- readonly web_order_line_item_id?: string;
90
- readonly latest_receipt?: string;
91
- readonly latest_receipt_info?: PaymentIOSSubscriptionInfo[];
92
- readonly latest_expired_receipt?: string;
93
- readonly latest_expired_receipt_info?: PaymentIOSSubscriptionInfo[];
94
- readonly auto_renew_status?: string;
95
- readonly auto_renew_adam_id?: string;
96
- readonly auto_renew_product_id?: string;
97
- readonly expiration_intent?: string;
98
- }
99
- export interface PaymentIOSSubscriptionInfo {
100
- readonly expires_date_ms?: number;
101
- readonly is_trial_period?: string;
102
- readonly latest_receipt?: string;
103
- readonly latest_receipt_info?: string;
104
- readonly original_purchase_date_ms?: number;
105
- readonly product_id?: string;
106
- readonly receipt_creation_date_ms?: number;
107
- readonly status?: string;
108
- readonly transaction_id?: string;
109
- }
110
- export interface PaymentIOSInAppError {
111
- readonly error?: boolean;
112
- readonly id?: string;
113
- readonly message?: string;
114
- readonly valid?: boolean;
115
- }
@@ -1,47 +0,0 @@
1
- import { FileType } from './files';
2
- import { TagInputType, TagType } from './tags';
3
- export interface PostType {
4
- readonly _id?: string;
5
- readonly _key?: string;
6
- readonly added?: number;
7
- content?: string;
8
- readonly endDate?: number;
9
- files?: FileType[];
10
- readonly groupId?: string;
11
- readonly postId?: string;
12
- readonly latitude?: number;
13
- readonly location?: string;
14
- readonly longitude?: number;
15
- readonly modified?: number;
16
- name?: string;
17
- parentId?: string;
18
- privacy?: string;
19
- readonly startDate?: number;
20
- tags?: TagType[];
21
- type?: string;
22
- readonly userId?: string;
23
- }
24
- export interface PostInputType {
25
- content?: string;
26
- readonly endDate?: number;
27
- files?: FileType[];
28
- readonly groupId?: string;
29
- readonly postId?: string;
30
- readonly latitude?: number;
31
- readonly location?: string;
32
- readonly longitude?: number;
33
- name?: string;
34
- parentId?: string;
35
- privacy?: string;
36
- readonly startDate?: number;
37
- tags?: TagInputType[];
38
- type?: string;
39
- readonly userId?: string;
40
- }
41
- export interface PostOptions {
42
- readonly latitude?: number;
43
- readonly longitude?: number;
44
- readonly from?: number;
45
- readonly to?: number;
46
- readonly type?: string;
47
- }
@@ -1,3 +0,0 @@
1
- export interface StatisticsType {
2
- readonly activeUsers: number;
3
- }
@@ -1,15 +0,0 @@
1
- export interface TagType {
2
- readonly _id?: string;
3
- readonly _key?: string;
4
- readonly added?: number;
5
- readonly description?: string;
6
- readonly id?: string;
7
- readonly modified?: number;
8
- readonly name?: string;
9
- }
10
- export interface TagInputType {
11
- readonly id: string;
12
- readonly category: string;
13
- readonly name: string;
14
- readonly tagId: string;
15
- }
@@ -1,80 +0,0 @@
1
- import { Reaction, UserAccess } from '../actions';
2
- import { QueryFilter } from './apps';
3
- import { TagType } from './tags';
4
- export interface User {
5
- readonly _id?: string;
6
- readonly _key?: string;
7
- readonly active?: boolean;
8
- readonly added?: number;
9
- readonly bankAccount?: string;
10
- readonly bankFullName?: string;
11
- readonly bankId?: string;
12
- readonly bankRouting?: string;
13
- readonly city?: string;
14
- readonly country?: string;
15
- readonly currency?: string;
16
- readonly deviceToken?: string;
17
- readonly dob?: number;
18
- readonly email?: string;
19
- readonly first?: string;
20
- readonly gender?: string;
21
- readonly id?: string;
22
- readonly imgId?: string;
23
- readonly last?: string;
24
- readonly lastActive?: number;
25
- readonly locale?: string;
26
- readonly mailing?: boolean;
27
- readonly modified?: number;
28
- readonly name?: string;
29
- readonly password?: string;
30
- readonly phone?: string;
31
- readonly salt?: string;
32
- readonly state?: string;
33
- readonly street1?: string;
34
- readonly street2?: string;
35
- readonly stripeAccountId?: string;
36
- readonly stripeCustomerId?: string;
37
- readonly sub?: string;
38
- readonly tags?: TagType[];
39
- readonly timezone?: string;
40
- readonly type?: string;
41
- readonly userAccess?: UserAccess;
42
- readonly userId?: string;
43
- readonly username?: string;
44
- readonly verifiedEmail?: boolean;
45
- readonly verifiedEmailCode?: number;
46
- readonly verifiedPhone?: boolean;
47
- readonly verifiedPhoneCode?: number;
48
- readonly zip?: string;
49
- }
50
- export interface UserPaymentType extends User {
51
- readonly ssn?: string;
52
- }
53
- export interface AddUser {
54
- readonly confirm?: string;
55
- readonly country?: string;
56
- readonly deviceToken?: string;
57
- readonly email?: string;
58
- readonly first?: string;
59
- readonly ip?: string;
60
- readonly last?: string;
61
- readonly mailing?: boolean;
62
- readonly password?: string;
63
- readonly phone?: string;
64
- readonly name?: string;
65
- readonly recaptcha?: string;
66
- readonly timezone?: string;
67
- readonly userAccess?: string;
68
- readonly username?: string;
69
- }
70
- export interface UserRelationType {
71
- readonly _key?: string;
72
- }
73
- export interface UserReactionQuery extends Reaction {
74
- readonly filters?: QueryFilter[];
75
- }
76
- export interface PasscodeType {
77
- readonly passAttempt?: number;
78
- readonly passExpires?: number;
79
- readonly passcode?: string;
80
- }
@@ -1,14 +0,0 @@
1
- export interface WebsocketMessageType {
2
- readonly _id?: string;
3
- readonly _key?: string;
4
- readonly added?: number;
5
- readonly content?: string;
6
- readonly conversationId?: string;
7
- readonly files?: string[];
8
- readonly images?: string[];
9
- readonly messageId?: string;
10
- readonly modified?: number;
11
- readonly read?: boolean;
12
- readonly saved?: boolean;
13
- readonly userId?: string;
14
- }
@@ -1,14 +0,0 @@
1
- export declare const ErrorTypes: {
2
- DATABASE_ERROR: string;
3
- EXISTING_USERNAME: string;
4
- INVALID_ARGUMENTS: string;
5
- INVALID_AUTHENTICATION: string;
6
- INVALID_SESSION: string;
7
- };
8
- export declare const IsUserError: unique symbol;
9
- export declare class UserError extends Error {
10
- constructor(...args: any[]);
11
- }
12
- export declare const logError: (params: any, error: any, session: any) => Promise<any>;
13
- export declare const logException: (params: any, session: any) => Promise<any>;
14
- export declare const logInfo: (params: any, session: any) => void;
@@ -1,9 +0,0 @@
1
- import { Database } from 'arangojs';
2
- import { ArangoDBLimit, ArangoDBPathObject, RangeType } from '../types/arangodb';
3
- export declare const useDb: (databaseName: string) => Database;
4
- export declare const dbPathObjItem: (pathSet: any) => ArangoDBPathObject;
5
- export declare const dbPathObjJson: (json: any) => ArangoDBPathObject;
6
- export declare const dbPathObjList: (pathSet: any) => ArangoDBPathObject;
7
- export declare const getLimit: (start?: number, to?: number) => ArangoDBLimit;
8
- export declare const getRange: (from: number, to: number) => RangeType;
9
- export declare const selectReactionCountByType: (objectType: string, objectKey: string, field: string, selects: any) => any;
@@ -1,5 +0,0 @@
1
- export declare const parseJsonData: (data: any) => any;
2
- export declare const getLambdaData: (data: any) => {
3
- body: any;
4
- context: any;
5
- };
@@ -1 +0,0 @@
1
- export declare const getGqlFields: (info: any) => string[];
@@ -1,6 +0,0 @@
1
- export * from './analytics';
2
- export * from './arangodb';
3
- export * from './auth';
4
- export * from './graphql';
5
- export * from './objects';
6
- export * from './session';
@@ -1,3 +0,0 @@
1
- export declare const defaultObject: (item: object) => any;
2
- export declare const lowerCaseKeys: (obj?: {}) => object;
3
- export declare const toQueryString: (json?: any) => string;
@@ -1,18 +0,0 @@
1
- export interface Session {
2
- readonly errors?: string[];
3
- readonly exp?: number;
4
- readonly iat?: number;
5
- readonly username: string;
6
- readonly userAccess: number;
7
- readonly userId: string;
8
- }
9
- export interface SessionToken {
10
- readonly expires: number;
11
- readonly issued: number;
12
- readonly token: string;
13
- }
14
- export interface SessionError {
15
- readonly errors?: string[];
16
- }
17
- export declare const setSession: (session: Session) => string;
18
- export declare const getSession: (token: string) => any;