@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,100 +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 personas_exports = {};
|
|
19
|
-
__export(personas_exports, {
|
|
20
|
-
personaMutations: () => personaMutations
|
|
21
|
-
});
|
|
22
|
-
module.exports = __toCommonJS(personas_exports);
|
|
23
|
-
var import_graphql = require("graphql");
|
|
24
|
-
var import_graphql_compose = require("graphql-compose");
|
|
25
|
-
var import_actions = require("../actions");
|
|
26
|
-
var import_personas = require("../actions/personas");
|
|
27
|
-
var import_persona = require("../objectTypes/persona");
|
|
28
|
-
const personaMutations = import_graphql_compose.schemaComposer.createObjectTC({
|
|
29
|
-
fields: {
|
|
30
|
-
addConnection: {
|
|
31
|
-
args: {
|
|
32
|
-
itemId: {
|
|
33
|
-
type: new import_graphql.GraphQLNonNull(import_graphql.GraphQLString)
|
|
34
|
-
},
|
|
35
|
-
itemType: {
|
|
36
|
-
type: new import_graphql.GraphQLNonNull(import_graphql.GraphQLString)
|
|
37
|
-
},
|
|
38
|
-
profileId: {
|
|
39
|
-
type: new import_graphql.GraphQLNonNull(import_graphql.GraphQLString)
|
|
40
|
-
},
|
|
41
|
-
value: {
|
|
42
|
-
type: import_graphql.GraphQLString
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
async resolve(context, { itemId, itemType, profileId, value }) {
|
|
46
|
-
const existingConnection = await (0, import_actions.getConnection)(context, "profiles", profileId, itemType, itemId);
|
|
47
|
-
if (existingConnection) {
|
|
48
|
-
return false;
|
|
49
|
-
}
|
|
50
|
-
return (0, import_actions.addConnection)(context, "profiles", profileId, itemType, itemId, value);
|
|
51
|
-
},
|
|
52
|
-
type: import_graphql.GraphQLBoolean
|
|
53
|
-
},
|
|
54
|
-
addProfile: {
|
|
55
|
-
args: {
|
|
56
|
-
persona: {
|
|
57
|
-
type: new import_graphql.GraphQLNonNull(import_persona.personaInputType.getType())
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
resolve(context, { persona }) {
|
|
61
|
-
return (0, import_personas.addPersona)(context, persona);
|
|
62
|
-
},
|
|
63
|
-
type: import_persona.personaType.getType()
|
|
64
|
-
},
|
|
65
|
-
deleteConnection: {
|
|
66
|
-
args: {
|
|
67
|
-
itemId: {
|
|
68
|
-
type: new import_graphql.GraphQLNonNull(import_graphql.GraphQLString)
|
|
69
|
-
},
|
|
70
|
-
itemType: {
|
|
71
|
-
type: new import_graphql.GraphQLNonNull(import_graphql.GraphQLString)
|
|
72
|
-
},
|
|
73
|
-
profileId: {
|
|
74
|
-
type: new import_graphql.GraphQLNonNull(import_graphql.GraphQLString)
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
resolve(context, { itemId, itemType, personaId }) {
|
|
78
|
-
return (0, import_actions.deleteConnection)(context, "personas", personaId, itemType, itemId);
|
|
79
|
-
},
|
|
80
|
-
type: import_graphql.GraphQLBoolean
|
|
81
|
-
},
|
|
82
|
-
updateProfile: {
|
|
83
|
-
args: {
|
|
84
|
-
persona: {
|
|
85
|
-
type: new import_graphql.GraphQLNonNull(import_persona.personaInputType.getType())
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
resolve(context, { persona }) {
|
|
89
|
-
return (0, import_personas.updatePersona)(context, persona);
|
|
90
|
-
},
|
|
91
|
-
type: import_persona.personaType.getType()
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
name: "PersonaMutations"
|
|
95
|
-
});
|
|
96
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
97
|
-
0 && (module.exports = {
|
|
98
|
-
personaMutations
|
|
99
|
-
});
|
|
100
|
-
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vc3JjL211dGF0aW9ucy9wZXJzb25hcy50cyJdLAogICJzb3VyY2VzQ29udGVudCI6IFsiLyoqXG4gKiBDb3B5cmlnaHQgKGMpIDIwMjUtUHJlc2VudCwgTml0cm9nZW4gTGFicywgSW5jLlxuICogQ29weXJpZ2h0cyBsaWNlbnNlZCB1bmRlciB0aGUgTUlUIExpY2Vuc2UuIFNlZSB0aGUgYWNjb21wYW55aW5nIExJQ0VOU0UgZmlsZSBmb3IgdGVybXMuXG4gKi9cblxuaW1wb3J0IHtHcmFwaFFMU3RyaW5nLCBHcmFwaFFMTm9uTnVsbCwgR3JhcGhRTEJvb2xlYW59IGZyb20gJ2dyYXBocWwnO1xuaW1wb3J0IHtzY2hlbWFDb21wb3Nlcn0gZnJvbSAnZ3JhcGhxbC1jb21wb3NlJztcblxuaW1wb3J0IHthZGRDb25uZWN0aW9uLCBkZWxldGVDb25uZWN0aW9uLCBnZXRDb25uZWN0aW9ufSBmcm9tICcuLi9hY3Rpb25zJztcbmltcG9ydCB7YWRkUGVyc29uYSwgdXBkYXRlUGVyc29uYX0gZnJvbSAnLi4vYWN0aW9ucy9wZXJzb25hcyc7XG5pbXBvcnQge3BlcnNvbmFJbnB1dFR5cGUsIHBlcnNvbmFUeXBlfSBmcm9tICcuLi9vYmplY3RUeXBlcy9wZXJzb25hJztcbmltcG9ydCB7QXBpQ29udGV4dCwgVXNlclR5cGV9IGZyb20gJy4uL3R5cGVzJztcblxuZXhwb3J0IGNvbnN0IHBlcnNvbmFNdXRhdGlvbnMgPSBz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UFBLE1BQ2IsTUFBTTtBQUFBLFFBQ0osU0FBUztBQUFBLFVBQ1AsTUFBTSxJQUFJLDhCQUFlLGdDQUFpQixRQUFRLENBQUM7QUFBQSxRQUNyRDtBQUFBLE1BQ0Y7QUFBQSxNQUNBLFFBQVEsU0FBcUIsRUFBQyxRQUFPLEdBQXNCO0FBQ3pELG1CQUFPLCtCQUFjLFNBQVMsT0FBTztBQUFBLE1BQ3ZDO0FBQUEsTUFDQSxNQUFNLDJCQUFZLFFBQVE7QUFBQSxJQUM1QjtBQUFBLEVBQ0Y7QUFBQSxFQUNBLE1BQU07QUFDUixDQUFDOyIsCiAgIm5hbWVzIjogW10KfQo=
|
package/lib/mutations/posts.d.ts
DELETED
package/lib/mutations/tags.d.ts
DELETED
package/lib/mutations/users.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const userMutations: import("graphql-compose").ObjectTypeComposer<any, any>;
|
package/lib/objectTypes/app.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const bankInputType: import("graphql-compose").InputTypeComposer<any>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const connectionType: import("graphql-compose").ObjectTypeComposer<any, any>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const creditCardInputType: import("graphql-compose").ObjectTypeComposer<any, any>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const document: import("graphql-compose").ObjectTypeComposer<any, any>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const errorInputType: import("graphql-compose").InputTypeComposer<any>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const externalType: import("graphql-compose").ObjectTypeComposer<any, any>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const filterInputType: import("graphql-compose").ObjectTypeComposer<any, any>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const iapSubscriptionInputType: import("graphql-compose").InputTypeComposer<any>;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export * from './app';
|
|
2
|
-
export * from './bankAccount';
|
|
3
|
-
export * from './connection';
|
|
4
|
-
export * from './conversation';
|
|
5
|
-
export * from './creditCard';
|
|
6
|
-
export * from './document';
|
|
7
|
-
export * from './error';
|
|
8
|
-
export * from './external';
|
|
9
|
-
export * from './file';
|
|
10
|
-
export * from './group';
|
|
11
|
-
export * from './image';
|
|
12
|
-
export * from './location';
|
|
13
|
-
export * from './message';
|
|
14
|
-
export * from './passcode';
|
|
15
|
-
export * from './persona';
|
|
16
|
-
export * from './plan';
|
|
17
|
-
export * from './post';
|
|
18
|
-
export * from './reaction';
|
|
19
|
-
export * from './relation';
|
|
20
|
-
export * from './search';
|
|
21
|
-
export * from './statistics';
|
|
22
|
-
export * from './subscription';
|
|
23
|
-
export * from './tag';
|
|
24
|
-
export * from './user';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const passcodeType: import("graphql-compose").ObjectTypeComposer<any, any>;
|
|
@@ -1,87 +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 persona_exports = {};
|
|
19
|
-
__export(persona_exports, {
|
|
20
|
-
personaInputType: () => personaInputType,
|
|
21
|
-
personaType: () => personaType
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(persona_exports);
|
|
24
|
-
var import_graphql = require("graphql");
|
|
25
|
-
var import_graphql_compose = require("graphql-compose");
|
|
26
|
-
var import_actions = require("../actions");
|
|
27
|
-
var import_config = require("../config");
|
|
28
|
-
var import_document = require("./document");
|
|
29
|
-
const personaType = import_graphql_compose.schemaComposer.createObjectTC({
|
|
30
|
-
fields: {
|
|
31
|
-
imageId: {
|
|
32
|
-
type: import_graphql.GraphQLString
|
|
33
|
-
},
|
|
34
|
-
imageUrl: {
|
|
35
|
-
resolve({ _key: typeId, imageId }) {
|
|
36
|
-
return (0, import_actions.getImageUrl)({
|
|
37
|
-
bucket: import_config.Config.get("aws.s3.Bucket"),
|
|
38
|
-
imageDir: "images",
|
|
39
|
-
imageId,
|
|
40
|
-
type: "users",
|
|
41
|
-
typeId
|
|
42
|
-
});
|
|
43
|
-
},
|
|
44
|
-
type: import_graphql.GraphQLString
|
|
45
|
-
},
|
|
46
|
-
profileId: {
|
|
47
|
-
resolve({ _key }) {
|
|
48
|
-
return _key;
|
|
49
|
-
},
|
|
50
|
-
type: import_graphql.GraphQLString
|
|
51
|
-
},
|
|
52
|
-
thumbId: {
|
|
53
|
-
type: import_graphql.GraphQLString
|
|
54
|
-
},
|
|
55
|
-
thumbUrl: {
|
|
56
|
-
resolve({ _key: typeId, thumbId }) {
|
|
57
|
-
return (0, import_actions.getImageUrl)({
|
|
58
|
-
bucket: import_config.Config.get("aws.s3.Bucket"),
|
|
59
|
-
imageDir: "thumbs",
|
|
60
|
-
imageId: thumbId,
|
|
61
|
-
type: "users",
|
|
62
|
-
typeId
|
|
63
|
-
});
|
|
64
|
-
},
|
|
65
|
-
type: import_graphql.GraphQLString
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
name: "Persona"
|
|
69
|
-
});
|
|
70
|
-
personaType.addFields(import_document.document.getFields());
|
|
71
|
-
const personaInputType = import_graphql_compose.schemaComposer.createInputTC({
|
|
72
|
-
fields: {
|
|
73
|
-
imageId: {
|
|
74
|
-
type: import_graphql.GraphQLString
|
|
75
|
-
},
|
|
76
|
-
thumbId: {
|
|
77
|
-
type: import_graphql.GraphQLString
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
name: "PersonaInput"
|
|
81
|
-
});
|
|
82
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
83
|
-
0 && (module.exports = {
|
|
84
|
-
personaInputType,
|
|
85
|
-
personaType
|
|
86
|
-
});
|
|
87
|
-
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vc3JjL29iamVjdFR5cGVzL3BlcnNvbmEudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbIi8qKlxuICogQ29weXJpZ2h0IChjKSAyMDE5LVByZXNlbnQsIE5pdHJvZ2VuIExhYnMsIEluYy5cbiAqIENvcHlyaWdodHMgbGljZW5zZWQgdW5kZXIgdGhlIE1JVCBMaWNlbnNlLiBTZWUgdGhlIGFjY29tcGFueWluZyBMSUNFTlNFIGZpbGUgZm9yIHRlcm1zLlxuICovXG5pbXBvcnQge0dyYXBoUUxTdHJpbmd9IGZyb20gJ2dyYXBocWwnO1xuaW1wb3J0IHtzY2hlbWFDb21wb3Nlcn0gZnJvbSAnZ3JhcGhxbC1jb21wb3NlJztcblxuaW1wb3J0IHtnZXRJbWFnZVVybH0gZnJvbSAnLi4vYWN0aW9ucyc7XG5pbXBvcnQge0NvbmZpZ30gZnJvbSAnLi4vY29uZmlnJztcbmltcG9ydCB7ZG9jdW1lbnR9IGZyb20gJy4vZG9jdW1lbnQnO1xuXG5pbXBvcnQgdHlwZSB7UGVyc29uYVR5cGV9IGZyb20gJy4uL3R5cGVzL3BlcnNvbmFzLnR5cG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0FBQztBQUFBLE1BQ0g7QUFBQSxNQUNBLE1BQU07QUFBQSxJQUNSO0FBQUEsSUFDQSxXQUFXO0FBQUEsTUFDVCxRQUFRLEVBQUMsS0FBSSxHQUF3QjtBQUNuQyxlQUFPO0FBQUEsTUFDVDtBQUFBLE1BQ0EsTUFBTTtBQUFBLElBQ1I7QUFBQSxJQUNBLFNBQVM7QUFBQSxNQUNQLE1BQU07QUFBQSxJQUNSO0FBQUEsSUFDQSxVQUFVO0FBQUEsTUFDUixRQUFRLEVBQUMsTUFBTSxRQUFRLFFBQU8sR0FBaUM7QUFDN0QsbUJBQU8sNEJBQVk7QUFBQSxVQUNqQixRQUFRLHFCQUFPLElBQUksZUFBZTtBQUFBLFVBQ2xDLFVBQVU7QUFBQSxVQUNWLFNBQVM7QUFBQSxVQUNULE1BQU07QUFBQSxVQUNOO0FBQUEsUUFDRixDQUFDO0FBQUEsTUFDSDtBQUFBLE1BQ0EsTUFBTTtBQUFBLElBQ1I7QUFBQSxFQUNGO0FBQUEsRUFDQSxNQUFNO0FBQ1IsQ0FBQztBQUNELFlBQVksVUFBVSx5QkFBUyxVQUFVLENBQUM7QUFFbkMsTUFBTSxtQkFBbUIsc0NBQWUsY0FBYztBQUFBLEVBQzNELFFBQU87QUFBQSxJQUNMLFNBQVM7QUFBQSxNQUNQLE1BQU07QUFBQSxJQUNSO0FBQUEsSUFDQSxTQUFTO0FBQUEsTUFDUCxNQUFNO0FBQUEsSUFDUjtBQUFBLEVBQ0Y7QUFBQSxFQUNBLE1BQU07QUFDUixDQUFDOyIsCiAgIm5hbWVzIjogW10KfQo=
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const relationType: import("graphql-compose").ObjectTypeComposer<any, any>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const searchType: import("graphql-compose").ObjectTypeComposer<any, any>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const statisticsType: import("graphql-compose").ObjectTypeComposer<any, any>;
|
package/lib/objectTypes/tag.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare const userType: import("graphql-compose").ObjectTypeComposer<any, any>;
|
|
2
|
-
export declare const userInputType: import("graphql-compose").InputTypeComposer<any>;
|
|
3
|
-
export declare const loginInputType: import("graphql-compose").InputTypeComposer<any>;
|
|
4
|
-
export declare const sessionTokenType: import("graphql-compose").ObjectTypeComposer<any, any>;
|
package/lib/queries/index.d.ts
DELETED
package/lib/queries/posts.d.ts
DELETED
package/lib/queries/tags.d.ts
DELETED
package/lib/queries/users.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const userQueries: import("graphql-compose").ObjectTypeComposer<any, any>;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\n \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/>\n <title>[appName]</title>\n <link type=\"text/css\" rel=\"stylesheet\" href=\"https://fonts.googleapis.com/css?family=Open+Sans:400,700\"/>\n <style type=\"text/css\">\n .ExternalClass,\n .ExternalClass p,\n .ExternalClass span,\n .ExternalClass font,\n .ExternalClass td,\n .ExternalClass div {\n line-height: 100%;\n }\n\n body, img, div, p, ul, li, span, strong, a {\n margin: 0;\n padding: 0;\n }\n\n table {\n border-spacing: 0;\n }\n\n table td {\n border-collapse: collapse;\n }\n\n body {\n color: #000;\n font-family: 'Open Sans', sans-serif, Arial, Helvetica;\n font-size: 14px;\n line-height: 1;\n background-color: #EAEAEA;\n width: 100% !important;\n -webkit-text-size-adjust: none;\n -ms-text-size-adjust: none;\n }\n\n a,\n a:link,\n a:hover,\n a[href^=\"tel\"], a[href^=\"sms\"] {\n color: #000;\n outline: none;\n text-decoration: none !important;\n }\n\n a {\n border: none !important;\n outline: none !important;\n }\n\n a[href^=\"tel\"], a[href^=\"sms\"] {\n pointer-events: none;\n cursor: default;\n }\n\n .mobile_link a[href^=\"tel\"],\n .mobile_link a[href^=\"sms\"] {\n text-decoration: default;\n color: #000 !important;\n pointer-events: auto;\n cursor: default;\n }\n\n img {\n border: none;\n outline: none;\n text-decoration: none;\n height: auto;\n max-width: 100%;\n }\n\n table {\n border-collapse: collapse;\n mso-table-lspace: 0pt;\n mso-table-rspace: 0pt;\n }\n\n tr,\n td {\n margin: 0;\n padding: 0;\n }\n\n @media only screen and (max-width: 799px) {\n table[class=\"Externalmain\"] {\n width: 100% !important;\n }\n }\n\n @media only screen and (max-width: 499px) {\n table[class=\"ExternalClass\"] {\n width: 100% !important;\n }\n }\n </style>\n</head>\n\n<body text=\"#333333\" link=\"#9d470a\" bgcolor=\"#EAEAEA\" alink=\"#9d470a\" yahoo=\"fix\" style=\"width:100% !important; color:#ffffff; font-family: 'Open Sans', Arial, Helvetica, sans-serif; font-size:12px; line-height:1;\">\n<table width=\"100%\" class=\"Externalmain\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" align=\"center\">\n <tr>\n <td>\n <table width=\"600\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" align=\"center\" class=\"ExternalClass\">\n <tr>\n <td>\n <table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" align=\"center\">\n <tr>\n <td>\n <table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" align=\"center\">\n <tr>\n <td>\n <table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">\n <tr>\n <td height=\"35\" style=\"background:#000000;\">\n <img width=\"1\" height=\"1\" title=\"\" alt=\"\" src=\"https://box.reaktor.io/images/email/spacer.png\"/>\n </td>\n </tr>\n <tr>\n <td align=\"center\" style=\"background:#000000;\">\n <img width=\"130\" height=\"130\" title=\"\" alt=\"\" src=\"https://box.reaktor.io/apps/[appId]/images/email/logo.png\"/>\n </td>\n </tr>\n <tr>\n <td height=\"30\" style=\"background:#000000;\">\n <img width=\"1\" height=\"1\" title=\"\" alt=\"\" src=\"https://box.reaktor.io/images/email/spacer.png\"/>\n </td>\n </tr>\n <tr>\n <td>\n <table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" style=\"text-align: center;background: #ffffff;\">\n <tr>\n <td height=\"50\">\n <img width=\"1\" height=\"1\" border=\"0\" src=\"https://box.reaktor.io/images/email/spacer.png\" alt=\"\" title=\"\"/>\n </td>\n </tr>\n <tr>\n <td width=\"100%\" style=\"font-family: 'Open Sans', Arial, Helvetica, sans-serif; color: #77737b; font-size: 14px; letter-spacing: 1px; text-transform: uppercase;\">\n [subTitle]\n </td>\n </tr>\n <tr>\n <td height=\"15\">\n <img width=\"1\" height=\"1\" border=\"0\" src=\"https://box.reaktor.io/images/email/spacer.png\" alt=\"\" title=\"\"/>\n </td>\n </tr>\n <tr>\n <td align=\"center\">\n <img width=\"56\" height=\"1\" border=\"0\" src=\"https://box.reaktor.io/images/email/border.png\" alt=\"\" title=\"\"/>\n </td>\n </tr>\n <tr>\n <td height=\"15\">\n <img width=\"1\" height=\"1\" border=\"0\" src=\"https://box.reaktor.io/images/email/spacer.png\" alt=\"\" title=\"\"/>\n </td>\n </tr>\n <tr>\n <td width=\"100%\" style=\"font-family: 'Open Sans', Arial, Helvetica, sans-serif; color: #1e1c20; font-size: 30px; letter-spacing: 3px; text-transform: uppercase; font-weight: bold;\">\n [title]\n </td>\n </tr>\n <tr>\n <td height=\"30\">\n <img width=\"1\" height=\"1\" border=\"0\" src=\"https://box.reaktor.io/images/email/spacer.png\" alt=\"\" title=\"\"/>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n <tr>\n <td>\n <table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" style=\"color: #000000; text-align: center;background: #ffffff;\">\n <tr>\n <td width=\"30\">\n <img width=\"1\" height=\"1\" border=\"0\" src=\"https://box.reaktor.io/images/email/spacer.png\" alt=\"\" title=\"\"/>\n </td>\n <td>\n [message]\n </td>\n <td width=\"30\">\n <img width=\"1\" height=\"1\" border=\"0\" src=\"https://box.reaktor.io/images/email/spacer.png\" alt=\"\" title=\"\"/>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n <tr>\n <td>\n <table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" style=\"background: #000000;\">\n <tr>\n <td height=\"20\">\n <img width=\"1\" height=\"1\" border=\"0\" title=\"\" alt=\"\" src=\"https://box.reaktor.io/images/email/spacer.png\"/>\n </td>\n </tr>\n <tr>\n <td>\n <table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">\n <tr>\n <td align=\"center\" width=\"89\">\n <a href=\"#\">\n <img width=\"90\" height=\"30\" border=\"0\" title=\"\" alt=\"[appName]\" src=\"https://box.reaktor.io/apps/[appId]/images/email/logo-txt.png\"/>\n </a>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n <tr>\n <td height=\"20\">\n <img width=\"1\" height=\"1\" border=\"0\" title=\"\" alt=\"\" src=\"https://box.reaktor.io/images/email/spacer.png\"/>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n <tr>\n <td height=\"23\">\n <img width=\"1\" height=\"1\" border=\"0\" title=\"\" alt=\"\" src=\"https://box.reaktor.io/images/email/spacer.png\"/>\n </td>\n </tr>\n <tr>\n <td align=\"center\">\n <table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" align=\"center\">\n <tr>\n [links]\n </tr>\n </table>\n </td>\n </tr>\n <tr>\n <td>\n <table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" style=\"text-align: center;\">\n <tr>\n <td height=\"30\">\n <img width=\"1\" height=\"1\" border=\"0\" title=\"\" alt=\"\" src=\"https://box.reaktor.io/images/email/spacer.png\"/>\n </td>\n </tr>\n <tr>\n <td style=\"font-family: 'Open Sans', Arial, Helvetica, sans-serif; color: #333;font-size: 12px;\">\n To stop receiving these emails\n <a style=\"font-size: 12px; font-family: 'Open Sans', Arial, Helvetica, sans-serif; color: #333; text-decoration: underline;\" href=\"#\"> unsubscribe</a>.\n </td>\n </tr>\n <tr>\n <td height=\"13\">\n <img width=\"1\" height=\"1\" border=\"0\" title=\"\" alt=\"\" src=\"https://box.reaktor.io/images/email/spacer.png\"/>\n </td>\n </tr>\n <tr>\n <td style=\"font-family: 'Open Sans', Arial, Helvetica, sans-serif; color: #333; font-size: 12px;\">\n Powered by <a style=\"color: #333;\" href=\"https://reaktor.io\">Reaktor.io</a>\n </td>\n </tr>\n <tr>\n <td height=\"35\">\n <img width=\"1\" height=\"1\" border=\"0\" title=\"\" alt=\"\" src=\"https://box.reaktor.io/images/email/spacer.png\"/>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n</table>\n</body>\n</html>";
|
|
2
|
-
export default _default;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: "<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">\n <tr>\n <td style=\"font-family: 'Open Sans', Arial, Helvetica, sans-serif; color: #000; font-size: 16px; line-height: 24px;\">\n <p>[appName] password reset code: <strong>[resetCode]</strong></p>\n <p style=\"font-size: 12px; line-height: 18px; color: #77737b\">\n <em>Please use the code above to reset your password. It will expire after 15 minutes.</em>\n </p>\n </td>\n </tr>\n <tr>\n <td height=\"60\">\n <img width=\"1\" height=\"1\" title=\"\" alt=\"\" src=\"https://box.reaktor.io/images/email/spacer.png\"/>\n </td>\n </tr>\n</table>";
|
|
2
|
-
export default _default;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: "<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">\n <tr>\n <td style=\"font-family: 'Open Sans', Arial, Helvetica, sans-serif; color: #77737b; font-size: 14px; line-height: 24px;\">\n Your password has been sucessfully updated!\n </td>\n </tr>\n <tr>\n <td height=\"63\">\n <img width=\"1\" height=\"1\" title=\"\" alt=\"\" src=\"https://box.reaktor.io/images/email/spacer.gif\"/>\n </td>\n </tr>\n</table>";
|
|
2
|
-
export default _default;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: "<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">\n <tr>\n <td style=\"font-family: 'Open Sans', Arial, Helvetica, sans-serif; color: #77737b; font-size: 14px;\">\n <p style=\"font-size: 14px; line-height: 26px;\">[appName] email verification code: [emailCode]</p>\n <span style=\"font-size: 12px; line-height: 18px;\">\n Please use the code above to verify your email address.\n </span>\n </td>\n </tr>\n <tr>\n <td height=\"63\">\n <img width=\"1\" height=\"1\" title=\"\" alt=\"\" src=\"https://box.reaktor.io/images/email/spacer.gif\"/>\n </td>\n </tr>\n</table>";
|
|
2
|
-
export default _default;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: "<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">\n <tr>\n <td style=\"font-family: 'Open Sans', Arial, Helvetica, sans-serif; color: #000; font-size: 16px; line-height: 24px;\">\n <h1>Welcome to [appName]!</h1>\n <p style=\"font-size: 12px; line-height: 18px; color: #77737b\">\n Your user account is setup and activated. You may start updating your profile.\n </p>\n </td>\n </tr>\n <tr>\n <td height=\"60\">\n <img width=\"1\" height=\"1\" title=\"\" alt=\"\" src=\"https://box.reaktor.io/images/email/spacer.png\"/>\n </td>\n </tr>\n</table>";
|
|
2
|
-
export default _default;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import type { DocumentType } from './arangodb.types';
|
|
2
|
-
import type { UserType } from './users.types';
|
|
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
|
-
};
|
|
@@ -1,34 +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 EdgeType extends DocumentType {
|
|
28
|
-
readonly _from?: string;
|
|
29
|
-
readonly _to?: string;
|
|
30
|
-
}
|
|
31
|
-
export interface VertexType extends DocumentType {
|
|
32
|
-
readonly _from?: string;
|
|
33
|
-
readonly _to?: string;
|
|
34
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { AppType } from './apps.types';
|
|
2
|
-
import type { Session } from '../utils/session';
|
|
3
|
-
import type { Database } from 'arangojs';
|
|
4
|
-
export type ApiContext = {
|
|
5
|
-
readonly app?: AppType;
|
|
6
|
-
readonly database?: Database;
|
|
7
|
-
readonly fields?: string[];
|
|
8
|
-
readonly session?: Session;
|
|
9
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { VertexType } from './arangodb.types';
|
|
2
|
-
import type { UserType } from './users.types';
|
|
3
|
-
export interface ConversationType extends VertexType {
|
|
4
|
-
readonly conversationId?: string;
|
|
5
|
-
readonly isDirect?: boolean;
|
|
6
|
-
readonly name?: string;
|
|
7
|
-
users?: UserType[];
|
|
8
|
-
}
|
|
9
|
-
export type ConversationOptions = {
|
|
10
|
-
readonly from?: number;
|
|
11
|
-
readonly to?: number;
|
|
12
|
-
readonly type?: string;
|
|
13
|
-
};
|
|
14
|
-
export type DirectConversationParams = {
|
|
15
|
-
readonly fromId: string;
|
|
16
|
-
readonly toId: string;
|
|
17
|
-
readonly toUser?: UserType;
|
|
18
|
-
};
|
|
19
|
-
export type ConversationUsersParams = {
|
|
20
|
-
readonly conversationId: string;
|
|
21
|
-
readonly includeAll?: boolean;
|
|
22
|
-
readonly isDirect?: boolean;
|
|
23
|
-
};
|
|
24
|
-
export type UpdateConversationUserParams = {
|
|
25
|
-
readonly conversationId: string;
|
|
26
|
-
readonly userId: string;
|
|
27
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { AppType } from './apps.types';
|
|
2
|
-
import type { DocumentType } from './arangodb.types';
|
|
3
|
-
import type { UserType } from './users.types';
|
|
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
|
-
}
|