summary refs log tree commit diff
path: root/dist/models/Activity.js
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-13 14:15:59 +0100
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-13 14:15:59 +0100
commita44da1024dc39e2d2fef296fc1d4e5894090fce0 (patch)
tree0e9338baa9e64e8a8841913d18eddc5a2bb1a333 /dist/models/Activity.js
parent:sparkles: mongoose Schemas (diff)
downloadserver-a44da1024dc39e2d2fef296fc1d4e5894090fce0.tar.xz
:zap: Config and database update
Diffstat (limited to 'dist/models/Activity.js')
-rw-r--r--dist/models/Activity.js40
1 files changed, 39 insertions, 1 deletions
diff --git a/dist/models/Activity.js b/dist/models/Activity.js

index ddb15100..33476880 100644 --- a/dist/models/Activity.js +++ b/dist/models/Activity.js
@@ -1,6 +1,44 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.ActivityType = void 0; +exports.ActivityType = exports.Activity = void 0; +const mongoose_1 = require("mongoose"); +exports.Activity = { + name: String, + type: Number, + url: String, + created_at: Number, + timestamps: [ + { + start: Number, + end: Number, + }, + ], + application_id: mongoose_1.Types.Long, + details: String, + state: String, + emoji: { + name: String, + id: mongoose_1.Types.Long, + amimated: Boolean, + }, + party: { + id: String, + size: [Number, Number], + }, + assets: { + large_image: String, + large_text: String, + small_image: String, + small_text: String, + }, + secrets: { + join: String, + spectate: String, + match: String, + }, + instance: Boolean, + flags: mongoose_1.Types.Long, +}; var ActivityType; (function (ActivityType) { ActivityType[ActivityType["GAME"] = 0] = "GAME";