1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-11 21:23:24 +01:00
server/dist/models/Activity.js

50 lines
1.3 KiB
JavaScript
Raw Normal View History

2021-02-11 20:44:26 +01:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
2021-02-13 14:15:59 +01:00
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,
};
2021-02-11 20:44:26 +01:00
var ActivityType;
(function (ActivityType) {
ActivityType[ActivityType["GAME"] = 0] = "GAME";
ActivityType[ActivityType["STREAMING"] = 1] = "STREAMING";
ActivityType[ActivityType["LISTENING"] = 2] = "LISTENING";
ActivityType[ActivityType["CUSTOM"] = 4] = "CUSTOM";
ActivityType[ActivityType["COMPETING"] = 5] = "COMPETING";
})(ActivityType = exports.ActivityType || (exports.ActivityType = {}));
//# sourceMappingURL=Activity.js.map