@nlabs/reaktor 0.10.0 → 0.10.1
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/.env +1 -0
- package/.env.example +1 -0
- package/DATABASE_I18N_GUIDE.md +434 -0
- package/TEST_UTILITIES_GUIDE.md +360 -0
- package/coverage/index.html +46 -76
- package/index.js +1 -1
- package/jest.config.js +17 -0
- package/jest.setup.js +36 -0
- package/lex.config.cjs +2 -2
- package/lib/actions/apps.js +17 -239
- package/lib/actions/connections.js +6 -89
- package/lib/actions/content.js +17 -0
- package/lib/actions/conversations.js +19 -336
- package/lib/actions/dynamodb.js +2 -150
- package/lib/actions/email.js +2 -152
- package/lib/actions/files.js +5 -283
- package/lib/actions/groups.js +19 -259
- package/lib/actions/images.js +31 -700
- package/lib/actions/index.js +2 -66
- package/lib/actions/ios.js +9 -162
- package/lib/actions/locations.js +7 -122
- package/lib/actions/messages.js +21 -196
- package/lib/actions/notifications.js +2 -59
- package/lib/actions/payments.js +11 -464
- package/lib/actions/posts.js +75 -527
- package/lib/actions/profiles.js +8 -0
- package/lib/actions/reactions.js +25 -312
- package/lib/actions/s3.js +2 -133
- package/lib/actions/search.js +5 -90
- package/lib/actions/sms.js +2 -108
- package/lib/actions/statistics.js +6 -60
- package/lib/actions/subscriptions.js +12 -0
- package/lib/actions/tags.js +19 -287
- package/lib/actions/users.js +64 -764
- package/lib/actions/websockets.js +14 -158
- package/lib/adapters/arangoAdapter.js +2 -46
- package/lib/adapters/contentAdapter.js +2 -0
- package/lib/adapters/fileAdapter.js +2 -76
- package/lib/adapters/imageAdapter.js +2 -40
- package/lib/adapters/messageAdapter.js +2 -49
- package/lib/adapters/postAdapter.js +2 -70
- package/lib/adapters/reaktorAdapter.js +2 -44
- package/lib/adapters/tagAdapter.js +2 -50
- package/lib/adapters/userAdapter.js +2 -115
- package/lib/config.js +2 -125
- package/lib/handlers/graphqlHandler.js +2 -0
- package/lib/index.js +2 -66
- package/lib/lambdas/actions/websockets.js +14 -116
- package/lib/lambdas/authorizer.js +2 -67
- package/lib/lambdas/connection.js +2 -91
- package/lib/lambdas/utils/message.js +2 -42
- package/lib/lambdas/utils/websocket.js +2 -105
- package/lib/mocks/conversation.js +2 -35
- package/lib/mocks/file.js +2 -38
- package/lib/mocks/group.js +2 -47
- package/lib/mocks/image.js +2 -44
- package/lib/mocks/post.js +2 -55
- package/lib/mocks/tag.js +2 -37
- package/lib/mocks/user.js +2 -88
- package/lib/mutations/index.js +2 -26
- package/lib/mutations/locations.integration.js +2 -0
- package/lib/mutations/locations.js +2 -44
- package/lib/mutations/messages.integration.js +2 -0
- package/lib/mutations/messages.js +2 -86
- package/lib/mutations/posts.integration.js +2 -0
- package/lib/mutations/posts.js +2 -53
- package/lib/mutations/profiles.integration.js +2 -0
- package/lib/mutations/profiles.js +2 -0
- package/lib/mutations/reactions.integration.js +2 -0
- package/lib/mutations/reactions.js +2 -51
- package/lib/mutations/statistics.integration.js +2 -0
- package/lib/mutations/statistics.js +2 -39
- package/lib/mutations/subscriptions.integration.js +2 -0
- package/lib/mutations/subscriptions.js +2 -56
- package/lib/mutations/tags.integration.js +2 -0
- package/lib/mutations/tags.js +2 -120
- package/lib/mutations/users.integration.js +2 -0
- package/lib/mutations/users.js +2 -116
- package/lib/objectTypes/app.js +2 -173
- package/lib/objectTypes/bankAccount.js +2 -76
- package/lib/objectTypes/connection.js +2 -48
- package/lib/objectTypes/conversation.js +2 -77
- package/lib/objectTypes/creditCard.js +2 -86
- package/lib/objectTypes/document.js +2 -46
- package/lib/objectTypes/error.js +2 -46
- package/lib/objectTypes/external.js +2 -74
- package/lib/objectTypes/file.js +2 -100
- package/lib/objectTypes/filter.js +2 -43
- package/lib/objectTypes/group.js +2 -123
- package/lib/objectTypes/iapSubscription.js +2 -40
- package/lib/objectTypes/image.js +2 -129
- package/lib/objectTypes/index.js +2 -68
- package/lib/objectTypes/location.js +2 -109
- package/lib/objectTypes/message.js +2 -96
- package/lib/objectTypes/passcode.js +2 -42
- package/lib/objectTypes/plan.js +2 -95
- package/lib/objectTypes/post.js +2 -125
- package/lib/objectTypes/profile.js +2 -0
- package/lib/objectTypes/reaction.js +2 -61
- package/lib/objectTypes/relation.js +2 -49
- package/lib/objectTypes/search.js +2 -72
- package/lib/objectTypes/statistics.js +2 -39
- package/lib/objectTypes/subscription.js +2 -117
- package/lib/objectTypes/tag.js +2 -65
- package/lib/objectTypes/user.js +2 -144
- package/lib/queries/index.js +2 -33
- package/lib/queries/locations.integration.js +2 -0
- package/lib/queries/locations.js +2 -45
- package/lib/queries/messages.integration.js +2 -0
- package/lib/queries/messages.js +2 -52
- package/lib/queries/posts.integration.js +2 -0
- package/lib/queries/posts.js +2 -154
- package/lib/queries/reactions.integration.js +2 -0
- package/lib/queries/reactions.js +2 -56
- package/lib/queries/statistics.js +2 -39
- package/lib/queries/subscriptions.js +2 -44
- package/lib/queries/tags.integration.js +2 -0
- package/lib/queries/tags.js +2 -75
- package/lib/queries/users.integration.js +2 -0
- package/lib/queries/users.js +2 -64
- package/lib/templates/email/layout.js +3 -25
- package/lib/templates/email/passwordForgot.js +3 -25
- package/lib/templates/email/passwordRecovery.js +3 -25
- package/lib/templates/email/verifyEmail.js +3 -25
- package/lib/templates/email/welcome.js +3 -25
- package/lib/templates/sms/passwordForgot.js +2 -24
- package/lib/templates/sms/passwordRecovery.js +2 -24
- package/lib/templates/sms/verifyEmail.js +2 -24
- package/lib/templates/sms/verifyPhone.js +2 -24
- package/lib/templates/sms/welcome.js +2 -24
- package/lib/types/apps.types.js +2 -32
- package/lib/types/arangodb.types.js +1 -16
- package/lib/types/auth.types.js +1 -16
- package/lib/types/connections.types.js +1 -16
- package/lib/types/content.types.js +1 -0
- package/lib/types/conversations.types.js +1 -16
- package/lib/types/email.types.js +1 -16
- package/lib/types/error.types.js +2 -44
- package/lib/types/files.types.js +1 -16
- package/lib/types/google.types.js +1 -16
- package/lib/types/groups.types.js +1 -16
- package/lib/types/images.types.js +1 -16
- package/lib/types/index.js +2 -60
- package/lib/types/locations.types.js +1 -16
- package/lib/types/messages.types.js +1 -16
- package/lib/types/notifications.types.js +1 -16
- package/lib/types/payments.types.js +1 -16
- package/lib/types/posts.types.js +1 -16
- package/lib/types/profiles.types.js +1 -0
- package/lib/types/statistics.types.js +1 -16
- package/lib/types/tags.types.js +1 -16
- package/lib/types/users.types.js +1 -16
- package/lib/types/websockets.types.js +1 -16
- package/lib/utils/adapterUtils.js +2 -45
- package/lib/utils/analyticsUtils.js +2 -72
- package/lib/utils/arangodbUtils.js +5 -163
- package/lib/utils/authUtils.js +2 -0
- package/lib/utils/contextUtils.js +2 -0
- package/lib/utils/dbI18n.example.js +6 -0
- package/lib/utils/dbI18n.js +2 -0
- package/lib/utils/googleTranslate.js +2 -0
- package/lib/utils/graphqlUtils.js +2 -0
- package/lib/utils/index.js +2 -30
- package/lib/utils/languageDetection.js +2 -0
- package/lib/utils/localeUtils.example.js +2 -0
- package/lib/utils/localeUtils.js +2 -0
- package/lib/utils/middlewareUtils.js +2 -0
- package/lib/utils/sessionUtils.js +2 -0
- package/lib/utils/stripeUtils.js +2 -43
- package/lib/utils/templateUtils.js +2 -0
- package/lib/utils/testUtils.js +2 -0
- package/lib/utils/translationQueue.example.js +2 -0
- package/lib/utils/translationQueue.js +2 -0
- package/package.json +27 -24
- package/.prettierrc.js +0 -4
- package/lib/actions/apps.d.ts +0 -25
- package/lib/actions/connections.d.ts +0 -4
- package/lib/actions/conversations.d.ts +0 -14
- package/lib/actions/dynamodb.d.ts +0 -8
- package/lib/actions/email.d.ts +0 -5
- package/lib/actions/files.d.ts +0 -19
- package/lib/actions/groups.d.ts +0 -14
- package/lib/actions/images.d.ts +0 -26
- package/lib/actions/index.d.ts +0 -23
- package/lib/actions/ios.d.ts +0 -7
- package/lib/actions/locations.d.ts +0 -6
- package/lib/actions/messages.d.ts +0 -14
- package/lib/actions/notifications.d.ts +0 -5
- package/lib/actions/payments.d.ts +0 -10
- package/lib/actions/personas.d.ts +0 -3
- package/lib/actions/personas.js +0 -110
- package/lib/actions/posts.d.ts +0 -22
- 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 -9
- package/lib/actions/statistics.d.ts +0 -3
- package/lib/actions/subscription.d.ts +0 -7
- package/lib/actions/subscription.js +0 -208
- package/lib/actions/tags.d.ts +0 -34
- package/lib/actions/users.d.ts +0 -72
- package/lib/actions/websockets.d.ts +0 -20
- package/lib/adapters/arangoAdapter.d.ts +0 -2
- package/lib/adapters/fileAdapter.d.ts +0 -3
- package/lib/adapters/imageAdapter.d.ts +0 -2
- package/lib/adapters/messageAdapter.d.ts +0 -2
- package/lib/adapters/postAdapter.d.ts +0 -2
- package/lib/adapters/reaktorAdapter.d.ts +0 -6
- package/lib/adapters/tagAdapter.d.ts +0 -2
- package/lib/adapters/userAdapter.d.ts +0 -2
- package/lib/config.d.ts +0 -20
- package/lib/index.d.ts +0 -12
- package/lib/lambdas/actions/websockets.d.ts +0 -7
- 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/mocks/conversation.d.ts +0 -8
- package/lib/mocks/file.d.ts +0 -11
- package/lib/mocks/group.d.ts +0 -17
- package/lib/mocks/image.d.ts +0 -3
- package/lib/mocks/post.d.ts +0 -38
- package/lib/mocks/tag.d.ts +0 -2
- package/lib/mocks/user.d.ts +0 -4
- package/lib/mutations/index.d.ts +0 -3
- package/lib/mutations/locations.d.ts +0 -2
- package/lib/mutations/messages.d.ts +0 -2
- package/lib/mutations/personas.d.ts +0 -2
- package/lib/mutations/personas.js +0 -100
- package/lib/mutations/posts.d.ts +0 -2
- package/lib/mutations/reactions.d.ts +0 -2
- package/lib/mutations/statistics.d.ts +0 -2
- package/lib/mutations/subscriptions.d.ts +0 -2
- package/lib/mutations/tags.d.ts +0 -2
- package/lib/mutations/users.d.ts +0 -1
- package/lib/objectTypes/app.d.ts +0 -3
- package/lib/objectTypes/bankAccount.d.ts +0 -1
- package/lib/objectTypes/connection.d.ts +0 -1
- package/lib/objectTypes/conversation.d.ts +0 -2
- package/lib/objectTypes/creditCard.d.ts +0 -1
- package/lib/objectTypes/document.d.ts +0 -1
- package/lib/objectTypes/error.d.ts +0 -1
- package/lib/objectTypes/external.d.ts +0 -1
- package/lib/objectTypes/file.d.ts +0 -2
- package/lib/objectTypes/filter.d.ts +0 -1
- package/lib/objectTypes/group.d.ts +0 -3
- package/lib/objectTypes/iapSubscription.d.ts +0 -1
- package/lib/objectTypes/image.d.ts +0 -2
- package/lib/objectTypes/index.d.ts +0 -24
- package/lib/objectTypes/location.d.ts +0 -2
- package/lib/objectTypes/message.d.ts +0 -2
- package/lib/objectTypes/passcode.d.ts +0 -1
- package/lib/objectTypes/persona.d.ts +0 -3
- package/lib/objectTypes/persona.js +0 -87
- package/lib/objectTypes/plan.d.ts +0 -2
- package/lib/objectTypes/post.d.ts +0 -2
- package/lib/objectTypes/reaction.d.ts +0 -2
- package/lib/objectTypes/relation.d.ts +0 -1
- package/lib/objectTypes/search.d.ts +0 -1
- package/lib/objectTypes/statistics.d.ts +0 -1
- package/lib/objectTypes/subscription.d.ts +0 -2
- package/lib/objectTypes/tag.d.ts +0 -2
- package/lib/objectTypes/user.d.ts +0 -4
- package/lib/queries/index.d.ts +0 -3
- package/lib/queries/locations.d.ts +0 -2
- package/lib/queries/messages.d.ts +0 -2
- package/lib/queries/posts.d.ts +0 -2
- package/lib/queries/reactions.d.ts +0 -2
- package/lib/queries/statistics.d.ts +0 -2
- package/lib/queries/subscriptions.d.ts +0 -2
- package/lib/queries/tags.d.ts +0 -2
- package/lib/queries/users.d.ts +0 -1
- 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.types.d.ts +0 -46
- package/lib/types/arangodb.types.d.ts +0 -34
- package/lib/types/auth.types.d.ts +0 -9
- package/lib/types/connections.types.d.ts +0 -5
- package/lib/types/conversations.types.d.ts +0 -27
- package/lib/types/email.types.d.ts +0 -13
- package/lib/types/error.types.d.ts +0 -20
- package/lib/types/files.types.d.ts +0 -23
- package/lib/types/google.types.d.ts +0 -29
- package/lib/types/groups.types.d.ts +0 -18
- package/lib/types/images.types.d.ts +0 -52
- package/lib/types/index.d.ts +0 -20
- package/lib/types/locations.types.d.ts +0 -18
- package/lib/types/messages.types.d.ts +0 -16
- package/lib/types/notifications.types.d.ts +0 -19
- package/lib/types/payments.types.d.ts +0 -109
- package/lib/types/personas.types.d.ts +0 -32
- package/lib/types/personas.types.js +0 -16
- package/lib/types/posts.types.d.ts +0 -28
- package/lib/types/statistics.types.d.ts +0 -3
- package/lib/types/tags.types.d.ts +0 -15
- package/lib/types/users.types.d.ts +0 -79
- package/lib/types/websockets.types.d.ts +0 -18
- package/lib/utils/adapterUtils.d.ts +0 -1
- package/lib/utils/analyticsUtils.d.ts +0 -21
- package/lib/utils/arangodbUtils.d.ts +0 -66
- package/lib/utils/auth.d.ts +0 -21
- package/lib/utils/auth.js +0 -57
- package/lib/utils/index.d.ts +0 -5
- package/lib/utils/session.d.ts +0 -18
- package/lib/utils/session.js +0 -60
- package/lib/utils/stripeUtils.d.ts +0 -3
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export declare const ErrorTypes: {
|
|
2
|
-
DATABASE_ERROR: string;
|
|
3
|
-
EXISTING_ITEM: string;
|
|
4
|
-
EXPIRED_SESSION: string;
|
|
5
|
-
FILE_REQUEST: string;
|
|
6
|
-
FILE_REQUIRED: string;
|
|
7
|
-
IMAGE_REQUEST: string;
|
|
8
|
-
IMAGE_RESIZE: string;
|
|
9
|
-
IMAGE_SAVE: string;
|
|
10
|
-
INVALID_ARGUMENTS: string;
|
|
11
|
-
INVALID_AUTHENTICATION: string;
|
|
12
|
-
INVALID_ID: string;
|
|
13
|
-
INVALID_INPUT: string;
|
|
14
|
-
INVALID_SESSION: string;
|
|
15
|
-
SMS_ERROR: string;
|
|
16
|
-
YOUTUBE_ERROR: string;
|
|
17
|
-
};
|
|
18
|
-
export type SessionError = {
|
|
19
|
-
readonly errors?: string[];
|
|
20
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { DocumentType } from './arangodb.types';
|
|
2
|
-
export interface FileType extends DocumentType {
|
|
3
|
-
readonly base64?: string;
|
|
4
|
-
readonly buffer?: Buffer;
|
|
5
|
-
readonly description?: string;
|
|
6
|
-
readonly fileId?: string;
|
|
7
|
-
fileSize?: number;
|
|
8
|
-
readonly fileType?: string;
|
|
9
|
-
readonly itemId?: string;
|
|
10
|
-
readonly itemType?: string;
|
|
11
|
-
readonly name?: string;
|
|
12
|
-
readonly url?: string;
|
|
13
|
-
readonly userId?: string;
|
|
14
|
-
}
|
|
15
|
-
export type FileDecodedType = {
|
|
16
|
-
readonly data?: Buffer;
|
|
17
|
-
readonly type?: string;
|
|
18
|
-
};
|
|
19
|
-
export type FileEdgeType = {
|
|
20
|
-
readonly fileId?: string;
|
|
21
|
-
readonly itemId?: string;
|
|
22
|
-
readonly itemType?: string;
|
|
23
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export type GoogleMapsType = {
|
|
2
|
-
readonly results: GoogleMapsResultType[];
|
|
3
|
-
readonly status: string;
|
|
4
|
-
};
|
|
5
|
-
export type GoogleMapsAddressType = {
|
|
6
|
-
readonly long_name: string;
|
|
7
|
-
readonly short_name: string;
|
|
8
|
-
readonly types: string[];
|
|
9
|
-
};
|
|
10
|
-
export type GoogleTimezoneType = {
|
|
11
|
-
readonly dstOffset: string;
|
|
12
|
-
readonly rawOffset: string;
|
|
13
|
-
readonly status: string;
|
|
14
|
-
readonly timeZoneId: string;
|
|
15
|
-
readonly timeZoneName: string;
|
|
16
|
-
};
|
|
17
|
-
export type GoogleLatLngType = {
|
|
18
|
-
readonly lat: number;
|
|
19
|
-
readonly lng: number;
|
|
20
|
-
};
|
|
21
|
-
export type GoogleMapsLocationType = {
|
|
22
|
-
readonly location: GoogleLatLngType;
|
|
23
|
-
};
|
|
24
|
-
export type GoogleMapsResultType = {
|
|
25
|
-
readonly address_components: GoogleMapsAddressType[];
|
|
26
|
-
readonly formatted_address: string;
|
|
27
|
-
readonly geometry: GoogleMapsLocationType;
|
|
28
|
-
readonly place_id: string;
|
|
29
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { DocumentType } from './arangodb.types';
|
|
2
|
-
export interface GroupType extends DocumentType {
|
|
3
|
-
readonly description?: string;
|
|
4
|
-
readonly groupId?: string;
|
|
5
|
-
readonly name?: string;
|
|
6
|
-
readonly privacy?: string;
|
|
7
|
-
readonly type?: string;
|
|
8
|
-
}
|
|
9
|
-
export type GroupUser = {
|
|
10
|
-
readonly groupId?: string;
|
|
11
|
-
readonly isValid?: boolean;
|
|
12
|
-
readonly userId?: string;
|
|
13
|
-
};
|
|
14
|
-
export type GroupEdgeType = {
|
|
15
|
-
readonly groupId?: string;
|
|
16
|
-
readonly isValid?: boolean;
|
|
17
|
-
readonly userId?: string;
|
|
18
|
-
};
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import type { ArangoDbCollection, EdgeType } from './arangodb.types';
|
|
2
|
-
import type { FileType } from './files.types';
|
|
3
|
-
import type { PutObjectCommandInput } from '@aws-sdk/client-s3';
|
|
4
|
-
export interface ImageType extends FileType {
|
|
5
|
-
readonly bucket?: string;
|
|
6
|
-
readonly color?: string;
|
|
7
|
-
readonly imageId?: string;
|
|
8
|
-
readonly height?: number;
|
|
9
|
-
readonly model?: string;
|
|
10
|
-
readonly make?: string;
|
|
11
|
-
readonly s3Options?: PutObjectCommandInput;
|
|
12
|
-
readonly taken?: number;
|
|
13
|
-
readonly thumb?: string;
|
|
14
|
-
readonly fileType?: string;
|
|
15
|
-
readonly type?: 'image' | 'giphy';
|
|
16
|
-
readonly url?: string;
|
|
17
|
-
readonly width?: number;
|
|
18
|
-
}
|
|
19
|
-
export type ImageIdentifyType = {
|
|
20
|
-
readonly 'JPEG-Quality'?: string;
|
|
21
|
-
readonly Orientation?: string;
|
|
22
|
-
readonly Resolution?: string;
|
|
23
|
-
readonly datetimeoriginal?: number;
|
|
24
|
-
readonly model?: string;
|
|
25
|
-
readonly make?: string;
|
|
26
|
-
readonly size?: {
|
|
27
|
-
readonly height?: number;
|
|
28
|
-
readonly width?: number;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
export type ImageUrlData = {
|
|
32
|
-
readonly bucket?: string;
|
|
33
|
-
readonly directory?: string;
|
|
34
|
-
readonly imageDir?: string;
|
|
35
|
-
readonly imageId?: string;
|
|
36
|
-
readonly imageType?: 'jpg' | 'png' | 'gif' | 'webp' | 'profile' | 'other';
|
|
37
|
-
readonly isThumb?: boolean;
|
|
38
|
-
readonly type?: ArangoDbCollection;
|
|
39
|
-
readonly typeId?: string;
|
|
40
|
-
readonly urlType?: 'dev' | 'public' | 'signed';
|
|
41
|
-
readonly userId?: string;
|
|
42
|
-
};
|
|
43
|
-
export type ImageEdgeType = EdgeType & {
|
|
44
|
-
readonly imageId?: string;
|
|
45
|
-
readonly itemId?: string;
|
|
46
|
-
readonly itemType?: ArangoDbCollection;
|
|
47
|
-
};
|
|
48
|
-
export type ImageOptions = {
|
|
49
|
-
readonly from?: number;
|
|
50
|
-
readonly to?: number;
|
|
51
|
-
readonly type?: string;
|
|
52
|
-
};
|
package/lib/types/index.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export * from './apps.types';
|
|
2
|
-
export * from './arangodb.types';
|
|
3
|
-
export * from './auth.types';
|
|
4
|
-
export * from './connections.types';
|
|
5
|
-
export * from './conversations.types';
|
|
6
|
-
export * from './email.types';
|
|
7
|
-
export * from './files.types';
|
|
8
|
-
export * from './google.types';
|
|
9
|
-
export * from './groups.types';
|
|
10
|
-
export * from './images.types';
|
|
11
|
-
export * from './locations.types';
|
|
12
|
-
export * from './messages.types';
|
|
13
|
-
export * from './notifications.types';
|
|
14
|
-
export * from './payments.types';
|
|
15
|
-
export * from './personas.types';
|
|
16
|
-
export * from './posts.types';
|
|
17
|
-
export * from './statistics.types';
|
|
18
|
-
export * from './tags.types';
|
|
19
|
-
export * from './users.types';
|
|
20
|
-
export * from './websockets.types';
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { DocumentType } from './arangodb.types';
|
|
2
|
-
export interface LocationType extends DocumentType {
|
|
3
|
-
readonly address?: string;
|
|
4
|
-
readonly city?: string;
|
|
5
|
-
readonly country?: string;
|
|
6
|
-
readonly description?: string;
|
|
7
|
-
readonly formatted?: string;
|
|
8
|
-
readonly googleId?: string;
|
|
9
|
-
readonly itemId?: string;
|
|
10
|
-
readonly itemType?: string;
|
|
11
|
-
readonly latitude?: number;
|
|
12
|
-
readonly longitude?: number;
|
|
13
|
-
readonly modified?: number;
|
|
14
|
-
readonly state?: string;
|
|
15
|
-
readonly street?: string;
|
|
16
|
-
readonly userId?: string;
|
|
17
|
-
readonly zip?: string;
|
|
18
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { DocumentType } from './arangodb.types';
|
|
2
|
-
import type { FileType } from './files.types';
|
|
3
|
-
import type { ImageType } from './images.types';
|
|
4
|
-
export interface MessageType extends DocumentType {
|
|
5
|
-
readonly content?: string;
|
|
6
|
-
readonly conversationId?: string;
|
|
7
|
-
readonly files?: FileType[];
|
|
8
|
-
readonly images?: ImageType[];
|
|
9
|
-
readonly itemId?: string;
|
|
10
|
-
readonly itemType?: string;
|
|
11
|
-
readonly messageId?: string;
|
|
12
|
-
readonly read?: boolean;
|
|
13
|
-
readonly saved?: boolean;
|
|
14
|
-
readonly userId?: string;
|
|
15
|
-
}
|
|
16
|
-
export type MessageInputType = Pick<MessageType, 'content' | 'conversationId' | 'files' | 'images' | 'itemId' | 'itemType' | 'messageId' | 'read' | 'saved' | 'userId'>;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { AppType } from './apps.types';
|
|
2
|
-
import type { UserType } from './users.types';
|
|
3
|
-
export type NotificationType = {
|
|
4
|
-
readonly badge?: number;
|
|
5
|
-
readonly data?: any;
|
|
6
|
-
readonly message?: string;
|
|
7
|
-
readonly title?: string;
|
|
8
|
-
};
|
|
9
|
-
export type SMSParamsType = {
|
|
10
|
-
readonly app: AppType;
|
|
11
|
-
readonly text?: string;
|
|
12
|
-
readonly variables?: any;
|
|
13
|
-
readonly user?: UserType;
|
|
14
|
-
};
|
|
15
|
-
export type TwilioOptionsType = {
|
|
16
|
-
readonly body?: string;
|
|
17
|
-
readonly from?: string;
|
|
18
|
-
readonly to?: string;
|
|
19
|
-
};
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import type { DocumentType } from './arangodb.types';
|
|
2
|
-
export interface PaymentCardType extends DocumentType {
|
|
3
|
-
readonly acceptedTerms?: boolean;
|
|
4
|
-
readonly accountNumber?: string;
|
|
5
|
-
readonly brand?: string;
|
|
6
|
-
city?: string;
|
|
7
|
-
country?: string;
|
|
8
|
-
readonly cvc?: string;
|
|
9
|
-
expMonth?: number;
|
|
10
|
-
expYear?: number;
|
|
11
|
-
fullName?: string;
|
|
12
|
-
state?: string;
|
|
13
|
-
street1?: string;
|
|
14
|
-
street2?: string;
|
|
15
|
-
readonly stripeId?: string;
|
|
16
|
-
readonly userId?: string;
|
|
17
|
-
zip?: string;
|
|
18
|
-
}
|
|
19
|
-
export interface PaymentBankAccount extends DocumentType {
|
|
20
|
-
readonly accountNumber?: string;
|
|
21
|
-
readonly fullName?: string;
|
|
22
|
-
readonly routing?: string;
|
|
23
|
-
}
|
|
24
|
-
export interface PaymentCharge extends DocumentType {
|
|
25
|
-
readonly added?: number;
|
|
26
|
-
readonly amount?: number;
|
|
27
|
-
readonly capture?: boolean;
|
|
28
|
-
readonly cardId?: string;
|
|
29
|
-
readonly chargeFailCode?: string;
|
|
30
|
-
readonly chargeFailMsg?: string;
|
|
31
|
-
readonly chargeId?: string;
|
|
32
|
-
readonly chargeStatus?: string;
|
|
33
|
-
readonly currency?: string;
|
|
34
|
-
readonly description?: string;
|
|
35
|
-
readonly modified?: number;
|
|
36
|
-
readonly userId?: string;
|
|
37
|
-
}
|
|
38
|
-
export interface PaymentTransfer extends DocumentType {
|
|
39
|
-
readonly added?: number;
|
|
40
|
-
readonly amount?: number;
|
|
41
|
-
readonly currency?: string;
|
|
42
|
-
readonly description?: string;
|
|
43
|
-
readonly modified?: number;
|
|
44
|
-
readonly userId?: string;
|
|
45
|
-
}
|
|
46
|
-
export type PaymentInterval = 'day' | 'week' | 'month' | 'year';
|
|
47
|
-
export interface PaymentPlan extends DocumentType {
|
|
48
|
-
readonly added?: number;
|
|
49
|
-
readonly amount?: number;
|
|
50
|
-
readonly currency?: string;
|
|
51
|
-
readonly description?: string;
|
|
52
|
-
readonly id?: string;
|
|
53
|
-
readonly interval?: PaymentInterval;
|
|
54
|
-
readonly intervalCount?: number;
|
|
55
|
-
readonly modified?: number;
|
|
56
|
-
readonly name?: string;
|
|
57
|
-
}
|
|
58
|
-
export interface PaymentSubscription extends DocumentType {
|
|
59
|
-
readonly added?: number;
|
|
60
|
-
readonly cancelDate?: number;
|
|
61
|
-
readonly expires?: number;
|
|
62
|
-
readonly id?: string;
|
|
63
|
-
readonly isProduction?: boolean;
|
|
64
|
-
readonly isTrial?: boolean;
|
|
65
|
-
readonly isValid?: boolean;
|
|
66
|
-
readonly modified?: number;
|
|
67
|
-
readonly plan?: PaymentPlan;
|
|
68
|
-
readonly planId?: string;
|
|
69
|
-
readonly receipt?: string;
|
|
70
|
-
readonly status?: string;
|
|
71
|
-
readonly transactionId?: string;
|
|
72
|
-
readonly tax?: number;
|
|
73
|
-
readonly trialEnd?: number;
|
|
74
|
-
readonly type?: string;
|
|
75
|
-
readonly userId?: string;
|
|
76
|
-
}
|
|
77
|
-
export type PaymentIOSSubscriptionUpdate = {
|
|
78
|
-
readonly environment?: 'SANDBOX' | 'PROD';
|
|
79
|
-
readonly notification_type?: 'INITIAL_BUY' | 'CANCEL' | 'RENEWAL' | 'INTERACTIVE_RENEWAL' | 'DID_CHANGE_RENEWAL_PREFERENCE';
|
|
80
|
-
readonly password?: string;
|
|
81
|
-
readonly original_transaction_id?: string;
|
|
82
|
-
readonly cancellation_date?: number;
|
|
83
|
-
readonly web_order_line_item_id?: string;
|
|
84
|
-
readonly latest_receipt?: string;
|
|
85
|
-
readonly latest_receipt_info?: PaymentIOSSubscriptionInfo[];
|
|
86
|
-
readonly latest_expired_receipt?: string;
|
|
87
|
-
readonly latest_expired_receipt_info?: PaymentIOSSubscriptionInfo[];
|
|
88
|
-
readonly auto_renew_status?: string;
|
|
89
|
-
readonly auto_renew_adam_id?: string;
|
|
90
|
-
readonly auto_renew_product_id?: string;
|
|
91
|
-
readonly expiration_intent?: string;
|
|
92
|
-
};
|
|
93
|
-
export type PaymentIOSSubscriptionInfo = {
|
|
94
|
-
readonly expires_date_ms?: number;
|
|
95
|
-
readonly is_trial_period?: string;
|
|
96
|
-
readonly latest_receipt?: string;
|
|
97
|
-
readonly latest_receipt_info?: string;
|
|
98
|
-
readonly original_purchase_date_ms?: number;
|
|
99
|
-
readonly product_id?: string;
|
|
100
|
-
readonly receipt_creation_date_ms?: number;
|
|
101
|
-
readonly status?: string;
|
|
102
|
-
readonly transaction_id?: string;
|
|
103
|
-
};
|
|
104
|
-
export type PaymentIOSInAppError = {
|
|
105
|
-
readonly error?: boolean;
|
|
106
|
-
readonly id?: string;
|
|
107
|
-
readonly message?: string;
|
|
108
|
-
readonly valid?: boolean;
|
|
109
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type { DocumentType } from './arangodb.types';
|
|
2
|
-
export interface PersonaType extends DocumentType {
|
|
3
|
-
readonly city?: string;
|
|
4
|
-
readonly country?: string;
|
|
5
|
-
readonly drinks?: number;
|
|
6
|
-
readonly experience?: number;
|
|
7
|
-
readonly eyeColor?: string;
|
|
8
|
-
readonly firstName?: string;
|
|
9
|
-
readonly gender?: string;
|
|
10
|
-
readonly hairBody?: number;
|
|
11
|
-
readonly hairColor?: string;
|
|
12
|
-
readonly hairLength?: number;
|
|
13
|
-
readonly height?: number;
|
|
14
|
-
readonly imageId?: string;
|
|
15
|
-
readonly imageUrl?: string;
|
|
16
|
-
readonly lastName?: string;
|
|
17
|
-
readonly name?: string;
|
|
18
|
-
readonly piercings?: number;
|
|
19
|
-
readonly profileId?: string;
|
|
20
|
-
readonly sexuality?: number;
|
|
21
|
-
readonly smokes?: number;
|
|
22
|
-
readonly state?: string;
|
|
23
|
-
readonly street1?: string;
|
|
24
|
-
readonly street2?: string;
|
|
25
|
-
readonly tattoos?: number;
|
|
26
|
-
readonly thumbId?: string;
|
|
27
|
-
readonly thumbUrl?: string;
|
|
28
|
-
readonly timezone?: string;
|
|
29
|
-
readonly userId?: string;
|
|
30
|
-
readonly weight?: number;
|
|
31
|
-
readonly zip?: string;
|
|
32
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __copyProps = (to, from, except, desc) => {
|
|
6
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
-
for (let key of __getOwnPropNames(from))
|
|
8
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
-
}
|
|
11
|
-
return to;
|
|
12
|
-
};
|
|
13
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
|
-
var personas_types_exports = {};
|
|
15
|
-
module.exports = __toCommonJS(personas_types_exports);
|
|
16
|
-
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vc3JjL3R5cGVzL3BlcnNvbmFzLnR5cGVzLnRzIl0sCiAgInNvdXJjZXNDb250ZW50IjogWyJpbXBvcnQgdHlwZSB7RG9jdW1lbnRUeXBlfSBmcm9tICcuL2FyYW5nb2RiLnR5cGVzJztcblxuZXhwb3J0IGludGVyZmFjZSBQZXJzb25hVHlwZSBleHRlbmRzIERvY3VtZW50VHlwZSB7XG4gIHJlYWRvbmx5IGNpdHk/OiBzdHJpbmc7XG4gIHJlYWRvbmx5IGNvdW50cnk/OiBzdHJpbmc7XG4gIHJlYWRvbmx5IGRyaW5rcz86IG51bWJlcjtcbiAgcmVhZG9ubHkgZXhwZXJpZW5jZT86IG51bWJlcjtcbiAgcmVhZG9ubHkgZXllQ29sb3I/OiBzdHJpbmc7XG4gIHJlYWRvbmx5IGZpcnN0TmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgZ2VuZGVyPzogc3RyaW5nO1xuICByZWFkb25seSBoYWlyQm9keT86IG51bWJlcjtcbiAgcmVhZG9ubHkgaGFpckNvbG9yPzogc3RyaW5nO1xuICByZWFkb25seSBoYWlyTGVuZ3RoPzogbnVtYmVyO1xuICByZWFkb25seSBoZWlnaHQ/OiBudW1iZXI7XG4gIHJlYWRvbmx5IGltYWdlSWQ/OiBzdHJpbmc7XG4gIHJlYWRvbmx5IGltYWdlVXJsPzogc3RyaW5nO1xuICByZWFkb25seSBsYXN0TmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgcGllcmNpbmdzPzogbnVtYmVyO1xuICByZWFkb25seSBwcm9maWxlSWQ/OiBzdHJpbmc7XG4gIHJlYWRvbmx5IHNleHVhbGl0eT86IG51bWJlcjtcbiAgcmVhZG9ubHkgc21va2VzPzogbnVtYmVyO1xuICByZWFkb25seSBzdGF0ZT86IHN0cmluZztcbiAgcmVhZG9ubHkgc3RyZWV0MT86IHN0cmluZztcbiAgcmVhZG9ubHkgc3RyZWV0Mj86IHN0cmluZztcbiAgcmVhZG9ubHkgdGF0dG9vcz86IG51bWJlcjtcbiAgcmVhZG9ubHkgdGh1bWJJZD86IHN0cmluZztcbiAgcmVhZG9ubHkgdGh1bWJVcmw/OiBzdHJpbmc7XG4gIHJlYWRvbmx5IHRpbWV6b25lPzogc3RyaW5nO1xuICByZWFkb25seSB1c2VySWQ/OiBzdHJpbmc7XG4gIHJlYWRvbmx5IHdlaWdodD86IG51bWJlcjtcbiAgcmVhZG9ubHkgemlwPzogc3RyaW5nO1xufSJdLAogICJtYXBwaW5ncyI6ICI7Ozs7Ozs7Ozs7Ozs7QUFBQTtBQUFBOyIsCiAgIm5hbWVzIjogW10KfQo=
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { DocumentType } from './arangodb.types';
|
|
2
|
-
import type { FileType } from './files.types';
|
|
3
|
-
import type { TagType } from './tags.types';
|
|
4
|
-
export interface PostType extends DocumentType {
|
|
5
|
-
content?: string;
|
|
6
|
-
readonly endDate?: number;
|
|
7
|
-
files?: FileType[];
|
|
8
|
-
readonly groupId?: string;
|
|
9
|
-
readonly postId?: string;
|
|
10
|
-
readonly latitude?: number;
|
|
11
|
-
readonly location?: string;
|
|
12
|
-
readonly longitude?: number;
|
|
13
|
-
readonly name?: string;
|
|
14
|
-
parentId?: string;
|
|
15
|
-
privacy?: string;
|
|
16
|
-
readonly startDate?: number;
|
|
17
|
-
tags?: TagType[];
|
|
18
|
-
type?: string;
|
|
19
|
-
readonly userId?: string;
|
|
20
|
-
}
|
|
21
|
-
export type PostInputType = Pick<PostType, 'content' | 'endDate' | 'files' | 'groupId' | 'postId' | 'latitude' | 'location' | 'longitude' | 'name' | 'parentId' | 'privacy' | 'startDate' | 'tags' | 'type' | 'userId'>;
|
|
22
|
-
export type PostOptions = {
|
|
23
|
-
readonly latitude?: number;
|
|
24
|
-
readonly longitude?: number;
|
|
25
|
-
readonly from?: number;
|
|
26
|
-
readonly to?: number;
|
|
27
|
-
readonly type?: string;
|
|
28
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { DocumentType } from './arangodb.types';
|
|
2
|
-
export interface TagType extends DocumentType {
|
|
3
|
-
readonly description?: string;
|
|
4
|
-
readonly category?: string;
|
|
5
|
-
readonly name?: string;
|
|
6
|
-
readonly tagBy?: string;
|
|
7
|
-
readonly tagId?: string;
|
|
8
|
-
readonly userId?: string;
|
|
9
|
-
}
|
|
10
|
-
export type TagInputType = Pick<TagType, 'description' | 'category' | 'name' | 'tagBy' | 'tagId'>;
|
|
11
|
-
export interface IsTaggedType extends DocumentType {
|
|
12
|
-
readonly _from: string;
|
|
13
|
-
readonly _to: string;
|
|
14
|
-
readonly name: string;
|
|
15
|
-
}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import type { Reaction, UserAccess } from '../actions';
|
|
2
|
-
import type { QueryFilter } from './apps.types';
|
|
3
|
-
import type { DocumentType } from './arangodb.types';
|
|
4
|
-
import type { TagType } from './tags.types';
|
|
5
|
-
export interface UserType extends DocumentType {
|
|
6
|
-
readonly active?: boolean;
|
|
7
|
-
readonly bankAccount?: string;
|
|
8
|
-
readonly bankFullName?: string;
|
|
9
|
-
readonly bankId?: string;
|
|
10
|
-
readonly bankRouting?: string;
|
|
11
|
-
readonly city?: string;
|
|
12
|
-
readonly country?: string;
|
|
13
|
-
readonly currency?: string;
|
|
14
|
-
readonly deviceToken?: string;
|
|
15
|
-
readonly dob?: number;
|
|
16
|
-
readonly email?: string;
|
|
17
|
-
readonly expires?: number;
|
|
18
|
-
readonly first?: string;
|
|
19
|
-
readonly gender?: string;
|
|
20
|
-
readonly imageId?: string;
|
|
21
|
-
readonly imageUrl?: string;
|
|
22
|
-
readonly last?: string;
|
|
23
|
-
readonly lastActive?: number;
|
|
24
|
-
readonly locale?: string;
|
|
25
|
-
readonly mailingList?: boolean;
|
|
26
|
-
readonly name?: string;
|
|
27
|
-
readonly password?: string;
|
|
28
|
-
readonly phone?: string;
|
|
29
|
-
readonly salt?: string;
|
|
30
|
-
readonly state?: string;
|
|
31
|
-
readonly street1?: string;
|
|
32
|
-
readonly street2?: string;
|
|
33
|
-
readonly stripeAccountId?: string;
|
|
34
|
-
readonly stripeCustomerId?: string;
|
|
35
|
-
readonly tags?: TagType[];
|
|
36
|
-
readonly thumbId?: string;
|
|
37
|
-
readonly thumbUrl?: string;
|
|
38
|
-
readonly timezone?: string;
|
|
39
|
-
readonly token?: 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 verifiedEmailExpires?: number;
|
|
47
|
-
readonly verifiedPhone?: boolean;
|
|
48
|
-
readonly verifiedPhoneCode?: number;
|
|
49
|
-
readonly verifiedPhoneExpires?: number;
|
|
50
|
-
readonly zip?: string;
|
|
51
|
-
}
|
|
52
|
-
export type UserPaymentType = {
|
|
53
|
-
readonly ssn?: string;
|
|
54
|
-
};
|
|
55
|
-
export type AddUser = {
|
|
56
|
-
readonly confirm?: string;
|
|
57
|
-
readonly country?: string;
|
|
58
|
-
readonly deviceToken?: string;
|
|
59
|
-
readonly email?: string;
|
|
60
|
-
readonly first?: string;
|
|
61
|
-
readonly ip?: string;
|
|
62
|
-
readonly last?: string;
|
|
63
|
-
readonly mailing?: boolean;
|
|
64
|
-
readonly password?: string;
|
|
65
|
-
readonly phone?: string;
|
|
66
|
-
readonly name?: string;
|
|
67
|
-
readonly recaptcha?: string;
|
|
68
|
-
readonly timezone?: string;
|
|
69
|
-
readonly userAccess?: string;
|
|
70
|
-
readonly username?: string;
|
|
71
|
-
};
|
|
72
|
-
export type UserReactionQuery = Reaction & {
|
|
73
|
-
readonly filters?: QueryFilter[];
|
|
74
|
-
};
|
|
75
|
-
export type PasscodeType = {
|
|
76
|
-
readonly passAttempt?: number;
|
|
77
|
-
readonly passExpires?: number;
|
|
78
|
-
readonly passcode?: string;
|
|
79
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { DocumentType } from './arangodb.types';
|
|
2
|
-
export interface WebsocketConnection {
|
|
3
|
-
_key: string;
|
|
4
|
-
socketId: string;
|
|
5
|
-
userId: string;
|
|
6
|
-
}
|
|
7
|
-
export interface WebsocketMessageType extends DocumentType {
|
|
8
|
-
readonly added?: number;
|
|
9
|
-
readonly content?: string;
|
|
10
|
-
readonly conversationId?: string;
|
|
11
|
-
readonly files?: string[];
|
|
12
|
-
readonly images?: string[];
|
|
13
|
-
readonly messageId?: string;
|
|
14
|
-
readonly modified?: number;
|
|
15
|
-
readonly read?: boolean;
|
|
16
|
-
readonly saved?: boolean;
|
|
17
|
-
readonly userId?: string;
|
|
18
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const removeEmptyKeys: (obj: any) => any;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ApiContext } from '../types';
|
|
2
|
-
export type ReaktorError = Error & {
|
|
3
|
-
readonly column?: number;
|
|
4
|
-
readonly line?: number;
|
|
5
|
-
readonly message?: string;
|
|
6
|
-
readonly source?: string;
|
|
7
|
-
};
|
|
8
|
-
export type ReaktorLogParams = {
|
|
9
|
-
readonly action?: string;
|
|
10
|
-
readonly category?: string;
|
|
11
|
-
readonly label?: string;
|
|
12
|
-
readonly params?: Record<string, unknown>;
|
|
13
|
-
readonly value?: string;
|
|
14
|
-
};
|
|
15
|
-
export declare const IsUserError: unique symbol;
|
|
16
|
-
export declare class UserError extends Error {
|
|
17
|
-
constructor(...args: any[]);
|
|
18
|
-
}
|
|
19
|
-
export declare const logError: (params: ReaktorLogParams, error?: ReaktorError, context?: ApiContext) => Promise<unknown>;
|
|
20
|
-
export declare const logException: (params: ReaktorLogParams, context: ApiContext) => Promise<unknown>;
|
|
21
|
-
export declare const logInfo: (params: any) => void;
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { Database } from 'arangojs';
|
|
2
|
-
import type { ArangoDbCollection, ArangoDbLimit } from '../types/arangodb.types';
|
|
3
|
-
export declare const useDb: (databaseName: string) => Database;
|
|
4
|
-
export declare const collectionDetails: {
|
|
5
|
-
apps: {
|
|
6
|
-
collection: string;
|
|
7
|
-
key: string;
|
|
8
|
-
};
|
|
9
|
-
conversations: {
|
|
10
|
-
collection: string;
|
|
11
|
-
key: string;
|
|
12
|
-
};
|
|
13
|
-
files: {
|
|
14
|
-
collection: string;
|
|
15
|
-
key: string;
|
|
16
|
-
};
|
|
17
|
-
groups: {
|
|
18
|
-
collection: string;
|
|
19
|
-
key: string;
|
|
20
|
-
};
|
|
21
|
-
images: {
|
|
22
|
-
collection: string;
|
|
23
|
-
key: string;
|
|
24
|
-
};
|
|
25
|
-
locations: {
|
|
26
|
-
collection: string;
|
|
27
|
-
key: string;
|
|
28
|
-
};
|
|
29
|
-
messages: {
|
|
30
|
-
collection: string;
|
|
31
|
-
key: string;
|
|
32
|
-
};
|
|
33
|
-
notifications: {
|
|
34
|
-
collection: string;
|
|
35
|
-
key: string;
|
|
36
|
-
};
|
|
37
|
-
payments: {
|
|
38
|
-
collection: string;
|
|
39
|
-
key: string;
|
|
40
|
-
};
|
|
41
|
-
posts: {
|
|
42
|
-
collection: string;
|
|
43
|
-
key: string;
|
|
44
|
-
};
|
|
45
|
-
reactions: {
|
|
46
|
-
collection: string;
|
|
47
|
-
key: string;
|
|
48
|
-
};
|
|
49
|
-
subscriptions: {
|
|
50
|
-
collection: string;
|
|
51
|
-
key: string;
|
|
52
|
-
};
|
|
53
|
-
tags: {
|
|
54
|
-
collection: string;
|
|
55
|
-
key: string;
|
|
56
|
-
};
|
|
57
|
-
users: {
|
|
58
|
-
collection: string;
|
|
59
|
-
key: string;
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
export declare const getDocId: (collection: ArangoDbCollection, item: any) => string;
|
|
63
|
-
export declare const getLimit: (start?: number, to?: number) => ArangoDbLimit;
|
|
64
|
-
export declare const selectReactionCountByType: (objectType: string, objectKey: string, field: string, selects: any) => any;
|
|
65
|
-
export declare const sortIds: (ids: string[], sort?: string) => string[];
|
|
66
|
-
export declare const getGqlFields: (info: any) => string[];
|
package/lib/utils/auth.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { AppStage, type ApiContext } from '../types';
|
|
2
|
-
export type LambdaDataContext = {
|
|
3
|
-
accountId: 'accountId';
|
|
4
|
-
readonly requestId: string;
|
|
5
|
-
readonly requestTimeEpoch: number;
|
|
6
|
-
readonly resourceId: string;
|
|
7
|
-
readonly resourcePath: string;
|
|
8
|
-
readonly stage: AppStage;
|
|
9
|
-
};
|
|
10
|
-
export type LambdaData = {
|
|
11
|
-
readonly body?: string | object;
|
|
12
|
-
readonly 'body-json'?: string;
|
|
13
|
-
readonly context?: LambdaDataContext;
|
|
14
|
-
readonly requestContext?: object;
|
|
15
|
-
};
|
|
16
|
-
export declare const getLambdaData: (data: LambdaData | string) => {
|
|
17
|
-
body: any;
|
|
18
|
-
context: {};
|
|
19
|
-
};
|
|
20
|
-
export declare const parseJsonData: (data: any) => any;
|
|
21
|
-
export declare const isAuthenticated: (context: ApiContext, userId: string) => boolean;
|