@nlabs/reaktor 0.9.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/README.md +9 -0
- package/TEST_UTILITIES_GUIDE.md +360 -0
- package/coverage/index.html +61 -46
- package/dist/actions/apps.js +242 -0
- package/dist/actions/connections.js +90 -0
- package/dist/actions/conversations.js +350 -0
- package/dist/actions/dynamodb.js +150 -0
- package/dist/actions/email.js +152 -0
- package/dist/actions/files.js +283 -0
- package/dist/actions/groups.js +292 -0
- package/dist/actions/images.js +735 -0
- package/dist/actions/index.js +66 -0
- package/dist/actions/ios.js +164 -0
- package/dist/actions/locations.js +122 -0
- package/dist/actions/messages.js +208 -0
- package/dist/actions/notifications.js +59 -0
- package/dist/actions/payments.js +497 -0
- package/dist/actions/personas.js +110 -0
- package/dist/actions/posts.js +595 -0
- package/dist/actions/reactions.js +322 -0
- package/dist/actions/s3.js +133 -0
- package/dist/actions/search.js +90 -0
- package/dist/actions/sms.js +108 -0
- package/dist/actions/statistics.js +62 -0
- package/dist/actions/subscription.js +220 -0
- package/dist/actions/tags.js +292 -0
- package/dist/actions/users.js +784 -0
- package/dist/actions/websockets.js +174 -0
- package/dist/adapters/arangoAdapter.js +46 -0
- package/dist/adapters/fileAdapter.js +76 -0
- package/dist/adapters/imageAdapter.js +40 -0
- package/dist/adapters/messageAdapter.js +49 -0
- package/dist/adapters/postAdapter.js +70 -0
- package/dist/adapters/reaktorAdapter.js +44 -0
- package/dist/adapters/tagAdapter.js +50 -0
- package/dist/adapters/userAdapter.js +115 -0
- package/dist/config.js +125 -0
- package/dist/index.js +66 -0
- package/dist/lambdas/actions/websockets.js +132 -0
- package/dist/lambdas/authorizer.js +67 -0
- package/dist/lambdas/connection.js +91 -0
- package/dist/lambdas/utils/message.js +42 -0
- package/dist/lambdas/utils/websocket.js +105 -0
- package/dist/mocks/conversation.js +35 -0
- package/dist/mocks/file.js +38 -0
- package/dist/mocks/group.js +47 -0
- package/dist/mocks/image.js +44 -0
- package/dist/mocks/nlabs.png +0 -0
- package/dist/mocks/post.js +55 -0
- package/dist/mocks/tag.js +37 -0
- package/dist/mocks/user.js +88 -0
- package/dist/mutations/index.js +26 -0
- package/dist/mutations/locations.js +44 -0
- package/dist/mutations/messages.js +86 -0
- package/dist/mutations/personas.js +100 -0
- package/dist/mutations/posts.js +53 -0
- package/dist/mutations/reactions.js +51 -0
- package/dist/mutations/statistics.js +39 -0
- package/dist/mutations/subscriptions.js +56 -0
- package/dist/mutations/tags.js +120 -0
- package/dist/mutations/users.js +116 -0
- package/dist/objectTypes/app.js +173 -0
- package/dist/objectTypes/bankAccount.js +76 -0
- package/dist/objectTypes/connection.js +48 -0
- package/dist/objectTypes/conversation.js +77 -0
- package/dist/objectTypes/creditCard.js +86 -0
- package/dist/objectTypes/document.js +46 -0
- package/dist/objectTypes/error.js +46 -0
- package/dist/objectTypes/external.js +74 -0
- package/dist/objectTypes/file.js +100 -0
- package/dist/objectTypes/filter.js +43 -0
- package/dist/objectTypes/group.js +123 -0
- package/dist/objectTypes/iapSubscription.js +40 -0
- package/dist/objectTypes/image.js +129 -0
- package/dist/objectTypes/index.js +68 -0
- package/dist/objectTypes/location.js +109 -0
- package/dist/objectTypes/message.js +96 -0
- package/dist/objectTypes/passcode.js +42 -0
- package/dist/objectTypes/persona.js +87 -0
- package/dist/objectTypes/plan.js +95 -0
- package/dist/objectTypes/post.js +125 -0
- package/dist/objectTypes/reaction.js +61 -0
- package/dist/objectTypes/relation.js +49 -0
- package/dist/objectTypes/search.js +72 -0
- package/dist/objectTypes/statistics.js +39 -0
- package/dist/objectTypes/subscription.js +117 -0
- package/dist/objectTypes/tag.js +65 -0
- package/dist/objectTypes/user.js +144 -0
- package/dist/queries/index.js +33 -0
- package/dist/queries/locations.js +45 -0
- package/dist/queries/messages.js +52 -0
- package/dist/queries/posts.js +154 -0
- package/dist/queries/reactions.js +56 -0
- package/dist/queries/statistics.js +39 -0
- package/dist/queries/subscriptions.js +44 -0
- package/dist/queries/tags.js +75 -0
- package/dist/queries/users.js +64 -0
- package/dist/templates/email/layout.js +302 -0
- package/dist/templates/email/passwordForgot.js +38 -0
- package/dist/templates/email/passwordRecovery.js +35 -0
- package/dist/templates/email/verifyEmail.js +38 -0
- package/dist/templates/email/welcome.js +38 -0
- package/dist/templates/sms/passwordForgot.js +24 -0
- package/dist/templates/sms/passwordRecovery.js +24 -0
- package/dist/templates/sms/verifyEmail.js +24 -0
- package/dist/templates/sms/verifyPhone.js +24 -0
- package/dist/templates/sms/welcome.js +24 -0
- package/dist/types/apps.js +32 -0
- package/{lib → dist}/types/arangodb.js +1 -1
- package/{lib → dist}/types/auth.js +1 -1
- package/{lib → dist}/types/connections.js +1 -1
- package/dist/types/conversations.js +16 -0
- package/{lib → dist}/types/email.js +1 -1
- package/dist/types/files.js +16 -0
- package/dist/types/google.js +16 -0
- package/{lib → dist}/types/groups.js +1 -1
- package/dist/types/images.js +16 -0
- package/dist/types/index.js +60 -0
- package/{lib → dist}/types/locations.js +1 -1
- package/{lib → dist}/types/messages.js +1 -1
- package/{lib → dist}/types/notifications.js +1 -1
- package/dist/types/payments.js +16 -0
- package/dist/types/personas.js +16 -0
- package/dist/types/posts.js +16 -0
- package/{lib → dist}/types/tags.js +1 -1
- package/dist/types/users.js +16 -0
- package/dist/types/websockets.js +16 -0
- package/dist/utils/adapterUtils.js +45 -0
- package/dist/utils/analyticsUtils.js +72 -0
- package/dist/utils/arangodbUtils.js +165 -0
- package/dist/utils/auth.js +57 -0
- package/dist/utils/index.js +30 -0
- package/{lib → dist}/utils/session.js +10 -7
- package/index.js +1 -1
- package/jest.config.js +17 -0
- package/jest.setup.js +36 -0
- package/lex.config.cjs +13 -0
- package/lib/actions/apps.js +17 -249
- package/lib/actions/connections.js +7 -0
- package/lib/actions/content.js +17 -0
- package/lib/actions/conversations.js +19 -325
- package/lib/actions/dynamodb.js +2 -150
- package/lib/actions/email.js +2 -152
- package/lib/actions/files.js +5 -287
- package/lib/actions/groups.js +23 -263
- package/lib/actions/images.js +31 -646
- package/lib/actions/index.js +2 -62
- package/lib/actions/ios.js +9 -162
- package/lib/actions/locations.js +7 -110
- package/lib/actions/messages.js +21 -193
- package/lib/actions/notifications.js +2 -59
- package/lib/actions/payments.js +11 -461
- package/lib/actions/posts.js +77 -515
- 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 -106
- package/lib/actions/statistics.js +6 -60
- package/lib/actions/subscriptions.js +12 -0
- package/lib/actions/tags.js +19 -262
- package/lib/actions/users.js +67 -537
- package/lib/actions/websockets.js +16 -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 -0
- package/lib/adapters/messageAdapter.js +2 -0
- 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 -110
- package/lib/config.js +2 -125
- package/lib/handlers/graphqlHandler.js +2 -0
- package/lib/index.js +2 -30
- package/lib/lambdas/actions/websockets.js +14 -112
- package/lib/lambdas/authorizer.js +2 -67
- package/lib/lambdas/connection.js +2 -92
- 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 -43
- 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 -0
- package/lib/mutations/locations.integration.js +2 -0
- package/lib/mutations/locations.js +2 -0
- package/lib/mutations/messages.integration.js +2 -0
- package/lib/mutations/messages.js +2 -0
- package/lib/mutations/posts.integration.js +2 -0
- package/lib/mutations/posts.js +2 -0
- 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 -0
- package/lib/mutations/statistics.integration.js +2 -0
- package/lib/mutations/statistics.js +2 -0
- package/lib/mutations/subscriptions.integration.js +2 -0
- package/lib/mutations/subscriptions.js +2 -0
- package/lib/mutations/tags.integration.js +2 -0
- package/lib/mutations/tags.js +2 -0
- package/lib/mutations/users.integration.js +2 -0
- package/lib/mutations/users.js +2 -0
- package/lib/objectTypes/app.js +2 -0
- package/lib/objectTypes/bankAccount.js +2 -0
- package/lib/objectTypes/connection.js +2 -0
- package/lib/objectTypes/conversation.js +2 -0
- package/lib/objectTypes/creditCard.js +2 -0
- package/lib/objectTypes/document.js +2 -0
- package/lib/objectTypes/error.js +2 -0
- package/lib/objectTypes/external.js +2 -0
- package/lib/objectTypes/file.js +2 -0
- package/lib/objectTypes/filter.js +2 -0
- package/lib/objectTypes/group.js +2 -0
- package/lib/objectTypes/iapSubscription.js +2 -0
- package/lib/objectTypes/image.js +2 -0
- package/lib/objectTypes/index.js +2 -0
- package/lib/objectTypes/location.js +2 -0
- package/lib/objectTypes/message.js +2 -0
- package/lib/objectTypes/passcode.js +2 -0
- package/lib/objectTypes/plan.js +2 -0
- package/lib/objectTypes/post.js +2 -0
- package/lib/objectTypes/profile.js +2 -0
- package/lib/objectTypes/reaction.js +2 -0
- package/lib/objectTypes/relation.js +2 -0
- package/lib/objectTypes/search.js +2 -0
- package/lib/objectTypes/statistics.js +2 -0
- package/lib/objectTypes/subscription.js +2 -0
- package/lib/objectTypes/tag.js +2 -0
- package/lib/objectTypes/user.js +2 -0
- package/lib/queries/index.js +2 -0
- package/lib/queries/locations.integration.js +2 -0
- package/lib/queries/locations.js +2 -0
- package/lib/queries/messages.integration.js +2 -0
- package/lib/queries/messages.js +2 -0
- package/lib/queries/posts.integration.js +2 -0
- package/lib/queries/posts.js +2 -0
- package/lib/queries/reactions.integration.js +2 -0
- package/lib/queries/reactions.js +2 -0
- package/lib/queries/statistics.js +2 -0
- package/lib/queries/subscriptions.js +2 -0
- package/lib/queries/tags.integration.js +2 -0
- package/lib/queries/tags.js +2 -0
- package/lib/queries/users.integration.js +2 -0
- package/lib/queries/users.js +2 -0
- 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 -0
- package/lib/types/arangodb.types.js +1 -0
- package/lib/types/auth.types.js +1 -0
- package/lib/types/connections.types.js +1 -0
- package/lib/types/content.types.js +1 -0
- package/lib/types/conversations.types.js +1 -0
- package/lib/types/email.types.js +1 -0
- package/lib/types/error.types.js +2 -0
- package/lib/types/files.types.js +1 -0
- package/lib/types/google.types.js +1 -0
- package/lib/types/groups.types.js +1 -0
- package/lib/types/images.types.js +1 -0
- package/lib/types/index.js +2 -56
- package/lib/types/locations.types.js +1 -0
- package/lib/types/messages.types.js +1 -0
- package/lib/types/notifications.types.js +1 -0
- package/lib/types/payments.types.js +1 -0
- package/lib/types/posts.types.js +1 -0
- package/lib/types/profiles.types.js +1 -0
- package/lib/types/statistics.types.js +1 -0
- package/lib/types/tags.types.js +1 -0
- package/lib/types/users.types.js +1 -0
- package/lib/types/websockets.types.js +1 -0
- package/lib/utils/adapterUtils.js +2 -45
- package/lib/utils/analyticsUtils.js +2 -72
- package/lib/utils/arangodbUtils.js +5 -142
- 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 -0
- 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 +41 -37
- package/.eslintrc +0 -10
- package/.prettierrc.js +0 -4
- package/lib/actions/apps.d.ts +0 -25
- 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 -21
- package/lib/actions/ios.d.ts +0 -7
- package/lib/actions/locations.d.ts +0 -5
- package/lib/actions/messages.d.ts +0 -13
- package/lib/actions/notifications.d.ts +0 -5
- package/lib/actions/payments.d.ts +0 -10
- package/lib/actions/posts.d.ts +0 -19
- package/lib/actions/reactions.d.ts +0 -30
- package/lib/actions/s3.d.ts +0 -7
- package/lib/actions/search.d.ts +0 -3
- package/lib/actions/sms.d.ts +0 -3
- package/lib/actions/statistics.d.ts +0 -3
- package/lib/actions/subscription.d.ts +0 -7
- package/lib/actions/subscription.js +0 -218
- package/lib/actions/tags.d.ts +0 -29
- package/lib/actions/users.d.ts +0 -47
- package/lib/actions/websockets.d.ts +0 -19
- package/lib/adapters/arangoAdapter.d.ts +0 -2
- package/lib/adapters/fileAdapter.d.ts +0 -3
- 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 -5
- package/lib/lambdas/actions/websockets.d.ts +0 -6
- package/lib/lambdas/authorizer.d.ts +0 -20
- package/lib/lambdas/connection.d.ts +0 -12
- package/lib/lambdas/utils/message.d.ts +0 -1
- package/lib/lambdas/utils/websocket.d.ts +0 -7
- package/lib/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/templates/email/layout.d.ts +0 -2
- package/lib/templates/email/passwordForgot.d.ts +0 -2
- package/lib/templates/email/passwordRecovery.d.ts +0 -2
- package/lib/templates/email/verifyEmail.d.ts +0 -2
- package/lib/templates/email/welcome.d.ts +0 -2
- package/lib/templates/sms/passwordForgot.d.ts +0 -2
- package/lib/templates/sms/passwordRecovery.d.ts +0 -2
- package/lib/templates/sms/verifyEmail.d.ts +0 -2
- package/lib/templates/sms/verifyPhone.d.ts +0 -2
- package/lib/templates/sms/welcome.d.ts +0 -2
- package/lib/types/apps.d.ts +0 -46
- package/lib/types/apps.js +0 -32
- package/lib/types/arangodb.d.ts +0 -30
- package/lib/types/auth.d.ts +0 -7
- package/lib/types/connections.d.ts +0 -7
- package/lib/types/conversations.d.ts +0 -29
- package/lib/types/conversations.js +0 -16
- package/lib/types/email.d.ts +0 -13
- package/lib/types/error.d.ts +0 -20
- package/lib/types/files.d.ts +0 -26
- package/lib/types/files.js +0 -16
- package/lib/types/google.d.ts +0 -29
- package/lib/types/google.js +0 -16
- package/lib/types/groups.d.ts +0 -21
- package/lib/types/images.d.ts +0 -51
- package/lib/types/images.js +0 -16
- package/lib/types/index.d.ts +0 -18
- package/lib/types/locations.d.ts +0 -20
- package/lib/types/messages.d.ts +0 -16
- package/lib/types/notifications.d.ts +0 -17
- package/lib/types/payments.d.ts +0 -112
- package/lib/types/payments.js +0 -16
- package/lib/types/posts.d.ts +0 -31
- package/lib/types/posts.js +0 -16
- package/lib/types/statistics.d.ts +0 -3
- package/lib/types/tags.d.ts +0 -10
- package/lib/types/users.d.ts +0 -76
- package/lib/types/users.js +0 -16
- package/lib/types/websocket.d.ts +0 -13
- package/lib/types/websocket.js +0 -16
- package/lib/utils/adapterUtils.d.ts +0 -1
- package/lib/utils/analyticsUtils.d.ts +0 -21
- package/lib/utils/arangodbUtils.d.ts +0 -65
- package/lib/utils/auth.d.ts +0 -20
- package/lib/utils/auth.js +0 -50
- package/lib/utils/index.d.ts +0 -5
- package/lib/utils/session.d.ts +0 -16
- /package/{lib → dist}/types/error.js +0 -0
- /package/{lib → dist}/types/statistics.js +0 -0
package/lib/types/apps.d.ts
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { DocumentType } from './arangodb';
|
|
2
|
-
import { UserType } from './users';
|
|
3
|
-
export type AppStage = 'local' | 'dev' | 'prod' | 'test';
|
|
4
|
-
export declare enum AppAccess {
|
|
5
|
-
DEACTIVATED = 0,
|
|
6
|
-
ACTIVE = 1
|
|
7
|
-
}
|
|
8
|
-
export interface AppSessionType extends DocumentType {
|
|
9
|
-
readonly active?: boolean;
|
|
10
|
-
readonly added?: number;
|
|
11
|
-
readonly exp?: number;
|
|
12
|
-
readonly modified?: number;
|
|
13
|
-
readonly name?: string;
|
|
14
|
-
}
|
|
15
|
-
export interface AppType extends DocumentType {
|
|
16
|
-
readonly active?: boolean;
|
|
17
|
-
readonly added?: number;
|
|
18
|
-
readonly appId?: string;
|
|
19
|
-
readonly currency?: string;
|
|
20
|
-
readonly displayName?: string;
|
|
21
|
-
readonly email?: string;
|
|
22
|
-
readonly hasCustomEmail?: boolean;
|
|
23
|
-
readonly iap?: string;
|
|
24
|
-
readonly key?: string;
|
|
25
|
-
readonly modified?: number;
|
|
26
|
-
readonly name?: string;
|
|
27
|
-
readonly phone?: string;
|
|
28
|
-
readonly photo?: string;
|
|
29
|
-
readonly secret?: string;
|
|
30
|
-
readonly supportName?: string;
|
|
31
|
-
readonly url?: string;
|
|
32
|
-
readonly urlFacebook?: string;
|
|
33
|
-
readonly urlTwitter?: string;
|
|
34
|
-
}
|
|
35
|
-
export type AppStatsType = {
|
|
36
|
-
readonly numUsers?: number;
|
|
37
|
-
};
|
|
38
|
-
export type EmailParamsType = {
|
|
39
|
-
readonly type?: string;
|
|
40
|
-
readonly user?: UserType;
|
|
41
|
-
};
|
|
42
|
-
export type QueryFilter = {
|
|
43
|
-
readonly conditional?: string;
|
|
44
|
-
readonly name?: string;
|
|
45
|
-
readonly value?: string;
|
|
46
|
-
};
|
package/lib/types/apps.js
DELETED
|
@@ -1,32 +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 __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
var apps_exports = {};
|
|
19
|
-
__export(apps_exports, {
|
|
20
|
-
AppAccess: () => AppAccess
|
|
21
|
-
});
|
|
22
|
-
module.exports = __toCommonJS(apps_exports);
|
|
23
|
-
var AppAccess = /* @__PURE__ */ ((AppAccess2) => {
|
|
24
|
-
AppAccess2[AppAccess2["DEACTIVATED"] = 0] = "DEACTIVATED";
|
|
25
|
-
AppAccess2[AppAccess2["ACTIVE"] = 1] = "ACTIVE";
|
|
26
|
-
return AppAccess2;
|
|
27
|
-
})(AppAccess || {});
|
|
28
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
29
|
-
0 && (module.exports = {
|
|
30
|
-
AppAccess
|
|
31
|
-
});
|
|
32
|
-
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vc3JjL3R5cGVzL2FwcHMudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbIi8qKlxuICogQ29weXJpZ2h0IChjKSAyMDE5LVByZXNlbnQsIE5pdHJvZ2VuIExhYnMsIEluYy5cbiAqIENvcHlyaWdodHMgbGljZW5zZWQgdW5kZXIgdGhlIE1JVCBMaWNlbnNlLiBTZWUgdGhlIGFjY29tcGFueWluZyBMSUNFTlNFIGZpbGUgZm9yIHRlcm1zLlxuICovXG5pbXBvcnQge0RvY3VtZW50VHlwZX0gZnJvbSAnLi9hcmFuZ29kYic7XG5pbXBvcnQge1VzZXJUeXBlfSBmcm9tICcuL3VzZXJzJztcblxuZXhwb3J0IHR5cGUgQXBwU3RhZ2UgPSAnbG9jYWwnIHwgJ2RldicgfCAncHJvZCcgfCAndGVzdCc7XG5cbmV4cG9ydCBlbnVtIEFwcEFjY2VzcyB7XG4gIERFQUNUSVZBVEVEID0gMCxcbiAgQUNUSVZFID0gMVxufVxuXG5leHBvcnQgaW50ZXJmYWNlIEFwcFNlc3Npb25UeXBlIGV4dGVuZHMgRG9jdW1lbnRUeXBlIHtcbiAgcmVhZG9ubHkgYWN0aXZlPzogYm9vbGVhbjtcbiAgcmVhZG9ubHkgYWRkZWQ/OiBudW1iZXI7XG4gIHJlYWRvbmx5IGV4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/OiBVc2VyVHlwZTtcbn07XG5cbmV4cG9ydCB0eXBlIFF1ZXJ5RmlsdGVyID0ge1xuICByZWFkb25seSBjb25kaXRpb25hbD86IHN0cmluZztcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgdmFsdWU/OiBzdHJpbmc7XG59OyJdLAogICJtYXBwaW5ncyI6ICI7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQVNPLElBQUssWUFBTCxrQkFBS0EsZUFBTDtBQUNMLEVBQUFBLHNCQUFBLGlCQUFjLEtBQWQ7QUFDQSxFQUFBQSxzQkFBQSxZQUFTLEtBQVQ7QUFGVSxTQUFBQTtBQUFBLEdBQUE7IiwKICAibmFtZXMiOiBbIkFwcEFjY2VzcyJdCn0K
|
package/lib/types/arangodb.d.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export type RangeType = {
|
|
2
|
-
readonly from: number;
|
|
3
|
-
readonly to: number;
|
|
4
|
-
};
|
|
5
|
-
export type ArangoDbCollection = 'apps' | 'conversations' | 'files' | 'groups' | 'images' | 'locations' | 'messages' | 'notifications' | 'payments' | 'posts' | 'reactions' | 'subscriptions' | 'tags' | 'users';
|
|
6
|
-
export type ArangoDbPathObject = {
|
|
7
|
-
readonly collection?: ArangoDbCollection;
|
|
8
|
-
readonly itemObj?: any;
|
|
9
|
-
readonly keys?: string[];
|
|
10
|
-
readonly props?: any;
|
|
11
|
-
readonly ranges?: any;
|
|
12
|
-
readonly routeKey: string;
|
|
13
|
-
};
|
|
14
|
-
export type ArangoDbLimit = {
|
|
15
|
-
readonly aql: string;
|
|
16
|
-
readonly start: number;
|
|
17
|
-
readonly num: number;
|
|
18
|
-
};
|
|
19
|
-
export interface DocumentType {
|
|
20
|
-
readonly _id?: string;
|
|
21
|
-
readonly _key?: string;
|
|
22
|
-
readonly _rev?: string;
|
|
23
|
-
readonly added?: number;
|
|
24
|
-
readonly id?: string;
|
|
25
|
-
readonly modified?: number;
|
|
26
|
-
}
|
|
27
|
-
export interface VertexType extends DocumentType {
|
|
28
|
-
readonly _from?: string;
|
|
29
|
-
readonly _to?: string;
|
|
30
|
-
}
|
package/lib/types/auth.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { VertexType } from './arangodb';
|
|
2
|
-
import { UserType } from './users';
|
|
3
|
-
export interface ConversationType extends VertexType {
|
|
4
|
-
readonly added?: number;
|
|
5
|
-
readonly conversationId?: string;
|
|
6
|
-
readonly isDirect?: boolean;
|
|
7
|
-
readonly modified?: number;
|
|
8
|
-
readonly name?: string;
|
|
9
|
-
users?: UserType[];
|
|
10
|
-
}
|
|
11
|
-
export type ConversationOptions = {
|
|
12
|
-
readonly from?: number;
|
|
13
|
-
readonly to?: number;
|
|
14
|
-
readonly type?: string;
|
|
15
|
-
};
|
|
16
|
-
export type DirectConversationParams = {
|
|
17
|
-
readonly fromId: string;
|
|
18
|
-
readonly toId: string;
|
|
19
|
-
readonly toUser?: UserType;
|
|
20
|
-
};
|
|
21
|
-
export type ConversationUsersParams = {
|
|
22
|
-
readonly conversationId: string;
|
|
23
|
-
readonly includeAll?: boolean;
|
|
24
|
-
readonly isDirect?: boolean;
|
|
25
|
-
};
|
|
26
|
-
export type UpdateConversationUserParams = {
|
|
27
|
-
readonly conversationId: string;
|
|
28
|
-
readonly userId: string;
|
|
29
|
-
};
|
|
@@ -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 conversations_exports = {};
|
|
15
|
-
module.exports = __toCommonJS(conversations_exports);
|
|
16
|
-
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vc3JjL3R5cGVzL2NvbnZlcnNhdGlvbnMudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbIi8qKlxuICogQ29weXJpZ2h0IChjKSAyMDE5LVByZXNlbnQsIE5pdHJvZ2VuIExhYnMsIEluYy5cbiAqIENvcHlyaWdodHMgbGljZW5zZWQgdW5kZXIgdGhlIE1JVCBMaWNlbnNlLiBTZWUgdGhlIGFjY29tcGFueWluZyBMSUNFTlNFIGZpbGUgZm9yIHRlcm1zLlxuICovXG5pbXBvcnQge1ZlcnRleFR5cGV9IGZyb20gJy4vYXJhbmdvZGInO1xuaW1wb3J0IHtVc2VyVHlwZX0gZnJvbSAnLi91c2Vycyc7XG5cbmV4cG9ydCBpbnRlcmZhY2UgQ29udmVyc2F0aW9uVHlwZSBleHRlbmRzIFZlcnRleFR5cGUge1xuICByZWFkb25seSBhZGRlZD86IG51bWJlcjtcbiAgcmVhZG9ubHkgY29udmVyc2F0aW9uSWQ/OiBzdHJpbmc7XG4gIHJlYWRvbmx5IGlzRGlyZWN0PzogYm9vbGVhbjtcbiAgcmVhZG9ubHkgbW9kaWZpZWQ/OiBudW1iZXI7XG4gIHJlYWRvbmx5IG5hbWU/OiBzdHJpbmc7XG4gIHVzZXJzPzogVXNlclR5cGVbXTtcbn1cblxuZXhwb3J0IHR5cGUgQ29udmVyc2F0aW9uT3B0aW9ucyA9IHtcbiAgcmVhZG9ubHkgZnJvbT86IG51bWJlcjtcbiAgcmVhZG9ubHkgdG8/OiBudW1iZXI7XG4gIHJlYWRvbmx5IHR5cGU/OiBzdHJpbmc7XG59O1xuXG5leHBvcnQgdHlwZSBEaXJlY3RDb252ZXJzYXRpb25QYXJhbXMgPSB7XG4gIHJlYWRvbmx5IGZyb21JZDogc3RyaW5nO1xuICByZWFkb25seSB0b0lkOiBzdHJpbmc7XG4gIHJlYWRvbmx5IHRvVXNlcj86IFVzZXJUeXBlO1xufTtcblxuZXhwb3J0IHR5cGUgQ29udmVyc2F0aW9uVXNlcnNQYXJhbXMgPSB7XG4gIHJlYWRvbmx5IGNvbnZlcnNhdGlvbklkOiBzdHJpbmc7XG4gIHJlYWRvbmx5IGluY2x1ZGVBbGw/OiBib29sZWFuO1xuICByZWFkb25seSBpc0RpcmVjdD86IGJvb2xlYW47XG59O1xuXG5leHBvcnQgdHlwZSBVcGRhdGVDb252ZXJzYXRpb25Vc2VyUGFyYW1zID0ge1xuICByZWFkb25seSBjb252ZXJzYXRpb25JZDogc3RyaW5nO1xuICByZWFkb25seSB1c2VySWQ6IHN0cmluZztcbn07Il0sCiAgIm1hcHBpbmdzIjogIjs7Ozs7Ozs7Ozs7OztBQUFBO0FBQUE7IiwKICAibmFtZXMiOiBbXQp9Cg==
|
package/lib/types/email.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { AppType } from './apps';
|
|
2
|
-
import { DocumentType } from './arangodb';
|
|
3
|
-
import { UserType } from './users';
|
|
4
|
-
export interface EmailType extends DocumentType {
|
|
5
|
-
readonly app?: AppType;
|
|
6
|
-
readonly html?: string;
|
|
7
|
-
readonly subject?: string;
|
|
8
|
-
readonly subTitle?: string;
|
|
9
|
-
readonly text?: string;
|
|
10
|
-
readonly title?: string;
|
|
11
|
-
readonly user?: UserType;
|
|
12
|
-
readonly vars?: any;
|
|
13
|
-
}
|
package/lib/types/error.d.ts
DELETED
|
@@ -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
|
-
};
|
package/lib/types/files.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { DocumentType } from './arangodb';
|
|
2
|
-
export interface FileType extends DocumentType {
|
|
3
|
-
readonly added?: number;
|
|
4
|
-
readonly base64?: string;
|
|
5
|
-
readonly buffer?: Buffer;
|
|
6
|
-
readonly description?: string;
|
|
7
|
-
readonly fileId?: string;
|
|
8
|
-
fileSize?: number;
|
|
9
|
-
readonly fileType?: string;
|
|
10
|
-
readonly id?: 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 type FileDecodedType = {
|
|
19
|
-
readonly data?: Buffer;
|
|
20
|
-
readonly type?: string;
|
|
21
|
-
};
|
|
22
|
-
export type FileEdgeType = {
|
|
23
|
-
readonly fileId?: string;
|
|
24
|
-
readonly itemId?: string;
|
|
25
|
-
readonly itemType?: string;
|
|
26
|
-
};
|
package/lib/types/files.js
DELETED
|
@@ -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 files_exports = {};
|
|
15
|
-
module.exports = __toCommonJS(files_exports);
|
|
16
|
-
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vc3JjL3R5cGVzL2ZpbGVzLnRzIl0sCiAgInNvdXJjZXNDb250ZW50IjogWyIvKipcbiAqIENvcHlyaWdodCAoYykgMjAxOS1QcmVzZW50LCBOaXRyb2dlbiBMYWJzLCBJbmMuXG4gKiBDb3B5cmlnaHRzIGxpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgTGljZW5zZS4gU2VlIHRoZSBhY2NvbXBhbnlpbmcgTElDRU5TRSBmaWxlIGZvciB0ZXJtcy5cbiAqL1xuaW1wb3J0IHtEb2N1bWVudFR5cGV9IGZyb20gJy4vYXJhbmdvZGInO1xuXG5leHBvcnQgaW50ZXJmYWNlIEZpbGVUeXBlIGV4dGVuZHMgRG9jdW1lbnRUeXBlIHtcbiAgcmVhZG9ubHkgYWRkZWQ/OiBudW1iZXI7XG4gIHJlYWRvbmx5IGJhc2U2ND86IHN0cmluZztcbiAgcmVhZG9ubHkgYnVmZmVyPzogQnVmZmVyO1xuICByZWFkb25seSBkZXNjcmlwdGlvbj86IHN0cmluZztcbiAgcmVhZG9ubHkgZmlsZUlkPzogc3RyaW5nO1xuICBmaWxlU2l6ZT86IG51bWJlcjtcbiAgcmVhZG9ubHkgZmlsZVR5cGU/OiBzdHJpbmc7XG4gIHJlYWRvbmx5IGlkPzogc3RyaW5nO1xuICByZWFkb25seSBpdGVtSWQ/OiBzdHJpbmc7XG4gIHJlYWRvbmx5IGl0ZW1UeXBlPzogc3RyaW5nO1xuICByZWFkb25seSBtb2RpZmllZD86IG51bWJlcjtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgdXJsPzogc3RyaW5nO1xuICByZWFkb25seSB1c2VySWQ/OiBzdHJpbmc7XG59XG5cbmV4cG9ydCB0eXBlIEZpbGVEZWNvZGVkVHlwZSA9IHtcbiAgcmVhZG9ubHkgZGF0YT86IEJ1ZmZlcjtcbiAgcmVhZG9ubHkgdHlwZT86IHN0cmluZztcbn07XG5cbmV4cG9ydCB0eXBlIEZpbGVFZGdlVHlwZSA9IHtcbiAgcmVhZG9ubHkgZmlsZUlkPzogc3RyaW5nO1xuICByZWFkb25seSBpdGVtSWQ/OiBzdHJpbmc7XG4gIHJlYWRvbmx5IGl0ZW1UeXBlPzogc3RyaW5nO1xufTsiXSwKICAibWFwcGluZ3MiOiAiOzs7Ozs7Ozs7Ozs7O0FBQUE7QUFBQTsiLAogICJuYW1lcyI6IFtdCn0K
|
package/lib/types/google.d.ts
DELETED
|
@@ -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
|
-
};
|
package/lib/types/google.js
DELETED
|
@@ -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 google_exports = {};
|
|
15
|
-
module.exports = __toCommonJS(google_exports);
|
|
16
|
-
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vc3JjL3R5cGVzL2dvb2dsZS50cyJdLAogICJzb3VyY2VzQ29udGVudCI6IFsiLyoqXG4gKiB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XBlIEdvb2dsZU1hcHNSZXN1bHRUeXBlID0ge1xuICByZWFkb25seSBhZGRyZXNzX2NvbXBvbmVudHM6IEdvb2dsZU1hcHNBZGRyZXNzVHlwZVtdO1xuICByZWFkb25seSBmb3JtYXR0ZWRfYWRkcmVzczogc3RyaW5nO1xuICByZWFkb25seSBnZW9tZXRyeTogR29vZ2xlTWFwc0xvY2F0aW9uVHlwZTtcbiAgcmVhZG9ubHkgcGxhY2VfaWQ6IHN0cmluZztcbn07Il0sCiAgIm1hcHBpbmdzIjogIjs7Ozs7Ozs7Ozs7OztBQUFBO0FBQUE7IiwKICAibmFtZXMiOiBbXQp9Cg==
|
package/lib/types/groups.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { DocumentType } from './arangodb';
|
|
2
|
-
export interface GroupType extends DocumentType {
|
|
3
|
-
readonly added?: number;
|
|
4
|
-
readonly description?: string;
|
|
5
|
-
readonly groupId?: string;
|
|
6
|
-
readonly id?: string;
|
|
7
|
-
readonly modified?: number;
|
|
8
|
-
readonly name?: string;
|
|
9
|
-
readonly privacy?: string;
|
|
10
|
-
readonly type?: string;
|
|
11
|
-
}
|
|
12
|
-
export type GroupUser = {
|
|
13
|
-
readonly groupId?: string;
|
|
14
|
-
readonly isValid?: boolean;
|
|
15
|
-
readonly userId?: string;
|
|
16
|
-
};
|
|
17
|
-
export type GroupEdgeType = {
|
|
18
|
-
readonly groupId?: string;
|
|
19
|
-
readonly isValid?: boolean;
|
|
20
|
-
readonly userId?: string;
|
|
21
|
-
};
|
package/lib/types/images.d.ts
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { PutObjectCommandInput } from '@aws-sdk/client-s3';
|
|
2
|
-
import { MimeType } from 'file-type';
|
|
3
|
-
import { ArangoDbCollection } from './arangodb';
|
|
4
|
-
import { FileType } from './files';
|
|
5
|
-
export interface ImageType extends FileType {
|
|
6
|
-
readonly bucket?: string;
|
|
7
|
-
readonly color?: string;
|
|
8
|
-
readonly imageId?: string;
|
|
9
|
-
readonly height?: number;
|
|
10
|
-
readonly model?: string;
|
|
11
|
-
readonly make?: string;
|
|
12
|
-
readonly s3Options?: PutObjectCommandInput;
|
|
13
|
-
readonly taken?: number;
|
|
14
|
-
readonly thumb?: string;
|
|
15
|
-
readonly fileType?: MimeType;
|
|
16
|
-
readonly type?: 'image' | 'giphy';
|
|
17
|
-
readonly url?: string;
|
|
18
|
-
readonly width?: number;
|
|
19
|
-
}
|
|
20
|
-
export type ImageIdentifyType = {
|
|
21
|
-
readonly 'JPEG-Quality'?: string;
|
|
22
|
-
readonly Orientation?: string;
|
|
23
|
-
readonly Resolution?: string;
|
|
24
|
-
readonly datetimeoriginal?: number;
|
|
25
|
-
readonly model?: string;
|
|
26
|
-
readonly make?: string;
|
|
27
|
-
readonly size?: {
|
|
28
|
-
readonly height?: number;
|
|
29
|
-
readonly width?: number;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
export type ImageUrlData = {
|
|
33
|
-
readonly bucket?: string;
|
|
34
|
-
readonly directory?: string;
|
|
35
|
-
readonly imageId?: string;
|
|
36
|
-
readonly imageType?: string;
|
|
37
|
-
readonly isThumb?: boolean;
|
|
38
|
-
readonly type?: ArangoDbCollection;
|
|
39
|
-
readonly typeId?: string;
|
|
40
|
-
readonly userId: string;
|
|
41
|
-
};
|
|
42
|
-
export type ImageEdgeType = {
|
|
43
|
-
readonly imageId?: string;
|
|
44
|
-
readonly itemId?: string;
|
|
45
|
-
readonly itemType?: ArangoDbCollection;
|
|
46
|
-
};
|
|
47
|
-
export type ImageOptions = {
|
|
48
|
-
readonly from?: number;
|
|
49
|
-
readonly to?: number;
|
|
50
|
-
readonly type?: string;
|
|
51
|
-
};
|
package/lib/types/images.js
DELETED
|
@@ -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 images_exports = {};
|
|
15
|
-
module.exports = __toCommonJS(images_exports);
|
|
16
|
-
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vc3JjL3R5cGVzL2ltYWdlcy50cyJdLAogICJzb3VyY2VzQ29udGVudCI6IFsiLyoqXG4gKiBDb3B5cmlnaHQgKGMpIDIwMTktUHJlc2VudCwgTml0cm9nZW4gTGFicywgSW5jLlxuICogQ29weXJpZ2h0cyBsaWNlbnNlZCB1bmRlciB0aGUgTUlUIExpY2Vuc2UuIFNlZSB0aGUgYWNjb21wYW55aW5nIExJQ0VOU0UgZmlsZSBmb3IgdGVybXMuXG4gKi9cbmltcG9ydCB7UHV0T2JqZWN0Q29tbWFuZElucHV0fSBmcm9tICdAYXdzLXNkay9jbGllbnQtczMnO1xuaW1wb3J0IHtNaW1lVHlwZX0gZnJvbSAnZmlsZS10eXBlJztcblxuaW1wb3J0IHtBcmFuZ29EYkNvbGxlY3Rpb259IGZyb20gJy4vYXJhbmdvZGInO1xuaW1wb3J0IHtGaWxlVHlwZX0gZnJvbSAnLi9maWxlcyc7XG5cbmV4cG9ydCBpbnRlcmZhY2UgSW1hZ2VUeXBlIGV4dGVuZHMgRmlsZVR5cGUge1xuICByZWFkb25seSBidWNrZXQ/OiBzdHJpbmc7XG4g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YWRvbmx5IGltYWdlVHlwZT86IHN0cmluZztcbiAgcmVhZG9ubHkgaXNUaHVtYj86IGJvb2xlYW47XG4gIHJlYWRvbmx5IHR5cGU/OiBBcmFuZ29EYkNvbGxlY3Rpb247XG4gIHJlYWRvbmx5IHR5cGVJZD86IHN0cmluZztcbiAgcmVhZG9ubHkgdXNlcklkOiBzdHJpbmc7XG59O1xuXG5leHBvcnQgdHlwZSBJbWFnZUVkZ2VUeXBlID0ge1xuICByZWFkb25seSBpbWFnZUlkPzogc3RyaW5nO1xuICByZWFkb25seSBpdGVtSWQ/OiBzdHJpbmc7XG4gIHJlYWRvbmx5IGl0ZW1UeXBlPzogQXJhbmdvRGJDb2xsZWN0aW9uO1xufTtcblxuZXhwb3J0IHR5cGUgSW1hZ2VPcHRpb25zID0ge1xuICByZWFkb25seSBmcm9tPzogbnVtYmVyO1xuICByZWFkb25seSB0bz86IG51bWJlcjtcbiAgcmVhZG9ubHkgdHlwZT86IHN0cmluZztcbn07Il0sCiAgIm1hcHBpbmdzIjogIjs7Ozs7Ozs7Ozs7OztBQUFBO0FBQUE7IiwKICAibmFtZXMiOiBbXQp9Cg==
|
package/lib/types/index.d.ts
DELETED
|
@@ -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';
|
package/lib/types/locations.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { DocumentType } from './arangodb';
|
|
2
|
-
export interface LocationType extends DocumentType {
|
|
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?: number;
|
|
14
|
-
readonly longitude?: number;
|
|
15
|
-
readonly modified?: number;
|
|
16
|
-
readonly state?: string;
|
|
17
|
-
readonly street?: string;
|
|
18
|
-
readonly userId?: string;
|
|
19
|
-
readonly zip?: string;
|
|
20
|
-
}
|
package/lib/types/messages.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { DocumentType } from './arangodb';
|
|
2
|
-
export interface MessageType extends DocumentType {
|
|
3
|
-
readonly added?: number;
|
|
4
|
-
readonly content?: string;
|
|
5
|
-
readonly conversationId?: string;
|
|
6
|
-
readonly files?: string[];
|
|
7
|
-
readonly images?: string[];
|
|
8
|
-
readonly itemId?: string;
|
|
9
|
-
readonly itemType?: string;
|
|
10
|
-
readonly messageId?: string;
|
|
11
|
-
readonly modified?: number;
|
|
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,17 +0,0 @@
|
|
|
1
|
-
import { UserType } from './users';
|
|
2
|
-
export type NotificationType = {
|
|
3
|
-
readonly badge?: number;
|
|
4
|
-
readonly data?: any;
|
|
5
|
-
readonly message?: string;
|
|
6
|
-
readonly title?: string;
|
|
7
|
-
};
|
|
8
|
-
export type SMSParamsType = {
|
|
9
|
-
readonly content?: string;
|
|
10
|
-
readonly variables?: any;
|
|
11
|
-
readonly user?: UserType;
|
|
12
|
-
};
|
|
13
|
-
export type TwilioOptionsType = {
|
|
14
|
-
readonly body?: string;
|
|
15
|
-
readonly from?: string;
|
|
16
|
-
readonly to?: string;
|
|
17
|
-
};
|
package/lib/types/payments.d.ts
DELETED
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import { DocumentType } from './arangodb';
|
|
2
|
-
export interface PaymentCardType extends DocumentType {
|
|
3
|
-
readonly acceptedTerms?: boolean;
|
|
4
|
-
readonly accountNumber?: string;
|
|
5
|
-
readonly added?: number;
|
|
6
|
-
readonly brand?: string;
|
|
7
|
-
city?: string;
|
|
8
|
-
country?: string;
|
|
9
|
-
readonly cvc?: string;
|
|
10
|
-
expMonth?: number;
|
|
11
|
-
expYear?: number;
|
|
12
|
-
fullName?: string;
|
|
13
|
-
readonly id?: string;
|
|
14
|
-
readonly modified?: number;
|
|
15
|
-
state?: string;
|
|
16
|
-
street1?: string;
|
|
17
|
-
street2?: string;
|
|
18
|
-
readonly stripeId?: string;
|
|
19
|
-
readonly userId?: string;
|
|
20
|
-
zip?: string;
|
|
21
|
-
}
|
|
22
|
-
export interface PaymentBankAccount extends DocumentType {
|
|
23
|
-
readonly accountNumber?: string;
|
|
24
|
-
readonly fullName?: string;
|
|
25
|
-
readonly routing?: string;
|
|
26
|
-
}
|
|
27
|
-
export interface PaymentCharge extends DocumentType {
|
|
28
|
-
readonly added?: number;
|
|
29
|
-
readonly amount?: number;
|
|
30
|
-
readonly capture?: boolean;
|
|
31
|
-
readonly cardId?: string;
|
|
32
|
-
readonly chargeFailCode?: string;
|
|
33
|
-
readonly chargeFailMsg?: string;
|
|
34
|
-
readonly chargeId?: string;
|
|
35
|
-
readonly chargeStatus?: string;
|
|
36
|
-
readonly currency?: string;
|
|
37
|
-
readonly description?: string;
|
|
38
|
-
readonly modified?: number;
|
|
39
|
-
readonly userId?: string;
|
|
40
|
-
}
|
|
41
|
-
export interface PaymentTransfer extends DocumentType {
|
|
42
|
-
readonly added?: number;
|
|
43
|
-
readonly amount?: number;
|
|
44
|
-
readonly currency?: string;
|
|
45
|
-
readonly description?: string;
|
|
46
|
-
readonly modified?: number;
|
|
47
|
-
readonly userId?: string;
|
|
48
|
-
}
|
|
49
|
-
export type PaymentInterval = 'day' | 'week' | 'month' | 'year';
|
|
50
|
-
export interface PaymentPlan extends DocumentType {
|
|
51
|
-
readonly added?: number;
|
|
52
|
-
readonly amount?: number;
|
|
53
|
-
readonly currency?: string;
|
|
54
|
-
readonly description?: string;
|
|
55
|
-
readonly id?: string;
|
|
56
|
-
readonly interval?: PaymentInterval;
|
|
57
|
-
readonly intervalCount?: number;
|
|
58
|
-
readonly modified?: number;
|
|
59
|
-
readonly name?: string;
|
|
60
|
-
}
|
|
61
|
-
export interface PaymentSubscription extends DocumentType {
|
|
62
|
-
readonly added?: number;
|
|
63
|
-
readonly cancelDate?: number;
|
|
64
|
-
readonly expires?: number;
|
|
65
|
-
readonly id?: string;
|
|
66
|
-
readonly isProduction?: boolean;
|
|
67
|
-
readonly isTrial?: boolean;
|
|
68
|
-
readonly isValid?: boolean;
|
|
69
|
-
readonly modified?: number;
|
|
70
|
-
readonly plan?: PaymentPlan;
|
|
71
|
-
readonly planId?: string;
|
|
72
|
-
readonly receipt?: string;
|
|
73
|
-
readonly status?: string;
|
|
74
|
-
readonly transactionId?: string;
|
|
75
|
-
readonly tax?: number;
|
|
76
|
-
readonly trialEnd?: number;
|
|
77
|
-
readonly type?: string;
|
|
78
|
-
readonly userId?: string;
|
|
79
|
-
}
|
|
80
|
-
export type PaymentIOSSubscriptionUpdate = {
|
|
81
|
-
readonly environment?: 'SANDBOX' | 'PROD';
|
|
82
|
-
readonly notification_type?: 'INITIAL_BUY' | 'CANCEL' | 'RENEWAL' | 'INTERACTIVE_RENEWAL' | 'DID_CHANGE_RENEWAL_PREFERENCE';
|
|
83
|
-
readonly password?: string;
|
|
84
|
-
readonly original_transaction_id?: string;
|
|
85
|
-
readonly cancellation_date?: number;
|
|
86
|
-
readonly web_order_line_item_id?: string;
|
|
87
|
-
readonly latest_receipt?: string;
|
|
88
|
-
readonly latest_receipt_info?: PaymentIOSSubscriptionInfo[];
|
|
89
|
-
readonly latest_expired_receipt?: string;
|
|
90
|
-
readonly latest_expired_receipt_info?: PaymentIOSSubscriptionInfo[];
|
|
91
|
-
readonly auto_renew_status?: string;
|
|
92
|
-
readonly auto_renew_adam_id?: string;
|
|
93
|
-
readonly auto_renew_product_id?: string;
|
|
94
|
-
readonly expiration_intent?: string;
|
|
95
|
-
};
|
|
96
|
-
export type PaymentIOSSubscriptionInfo = {
|
|
97
|
-
readonly expires_date_ms?: number;
|
|
98
|
-
readonly is_trial_period?: string;
|
|
99
|
-
readonly latest_receipt?: string;
|
|
100
|
-
readonly latest_receipt_info?: string;
|
|
101
|
-
readonly original_purchase_date_ms?: number;
|
|
102
|
-
readonly product_id?: string;
|
|
103
|
-
readonly receipt_creation_date_ms?: number;
|
|
104
|
-
readonly status?: string;
|
|
105
|
-
readonly transaction_id?: string;
|
|
106
|
-
};
|
|
107
|
-
export type PaymentIOSInAppError = {
|
|
108
|
-
readonly error?: boolean;
|
|
109
|
-
readonly id?: string;
|
|
110
|
-
readonly message?: string;
|
|
111
|
-
readonly valid?: boolean;
|
|
112
|
-
};
|
package/lib/types/payments.js
DELETED
|
@@ -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 payments_exports = {};
|
|
15
|
-
module.exports = __toCommonJS(payments_exports);
|
|
16
|
-
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vc3JjL3R5cGVzL3BheW1lbnRzLnRzIl0sCiAgInNvdXJjZXNDb250ZW50IjogWyIvKipcbiAqIENvcHlyaWdodCAoYykgMjAxOS1QcmVzZW50LCBOaXRyb2dlbiBMYWJzLCBJbmMuXG4gKiBDb3B5cmlnaHRzIGxpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgTGljZW5zZS4gU2VlIHRoZSBhY2NvbXBhbnlpbmcgTElDRU5TRSBmaWxlIGZvciB0ZXJtcy5cbiAqL1xuaW1wb3J0IHtEb2N1bWVudFR5cGV9IGZyb20gJy4vYXJhbmdvZGInO1xuXG4vKiBlc2xpbnQgY2FtZWxjYXNlOiAwLCBiYWJlbC9jYW1lbGNhc2U6IDAgKi9cbmV4cG9ydCBpbnRlcmZhY2UgUGF5bWVudENhcmRUeXBlIGV4dGVuZHMgRG9jdW1lbnRUeXBlIHtcbiAgcmVhZG9ubHkgYWNjZXB0ZWRUZXJtcz86IGJvb2xlYW47XG4gIHJlYWRvbmx5IGFjY291bnROdW1iZXI/OiBzdHJpbmc7XG4gIHJlYWRvbmx5IGFkZGVkPzogbnVtYmVyO1xuICByZWFkb25seSBicmFuZD86IHN0cmluZztcbiAgY2l0eT86IHN0cmluZztcbiAgY291bnRyeT86IHN0cmluZztcbiAgcmVhZG9ubHkgY3ZjPzogc3RyaW5nO1xuICBleHBNb250aD86IG51bWJlcjtcbiAgZXhwWWVhcj86IG51bWJlcjtcbiAgZnVsbE5hbWU/OiBzdHJpbmc7XG4gIHJlYWRvbmx5IGlkPzogc3RyaW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lPzogc3RyaW5nO1xuICByZWFkb25seSB2YWxpZD86IGJvb2xlYW47XG59O1xuIl0sCiAgIm1hcHBpbmdzIjogIjs7Ozs7Ozs7Ozs7OztBQUFBO0FBQUE7IiwKICAibmFtZXMiOiBbXQp9Cg==
|
package/lib/types/posts.d.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { DocumentType } from './arangodb';
|
|
2
|
-
import { FileType } from './files';
|
|
3
|
-
import { TagType } from './tags';
|
|
4
|
-
export interface PostType extends DocumentType {
|
|
5
|
-
readonly added?: number;
|
|
6
|
-
content?: string;
|
|
7
|
-
readonly endDate?: number;
|
|
8
|
-
files?: FileType[];
|
|
9
|
-
readonly groupId?: string;
|
|
10
|
-
readonly id?: 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 type PostInputType = Pick<PostType, 'content' | 'endDate' | 'files' | 'groupId' | 'postId' | 'latitude' | 'location' | 'longitude' | 'name' | 'parentId' | 'privacy' | 'startDate' | 'tags' | 'type' | 'userId'>;
|
|
25
|
-
export type PostOptions = {
|
|
26
|
-
readonly latitude?: number;
|
|
27
|
-
readonly longitude?: number;
|
|
28
|
-
readonly from?: number;
|
|
29
|
-
readonly to?: number;
|
|
30
|
-
readonly type?: string;
|
|
31
|
-
};
|