@degen/schema
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -8,3 +8,3 @@ "use strict"; | ||
const mongoose_1 = require("mongoose"); | ||
const CollectionName_1 = __importDefault(require("../../constants/CollectionName")); | ||
const CollectionNames_1 = __importDefault(require("../../constants/CollectionNames")); | ||
const DiscordServersSchema = new mongoose_1.Schema({ | ||
@@ -27,4 +27,4 @@ serverId: { | ||
exports.default = DiscordServersSchema; | ||
const DiscordServersModel = (degenDbConn) => degenDbConn.model(CollectionName_1.default.DB_COLLECTION_DISCORD_SERVERS, DiscordServersSchema, CollectionName_1.default.DB_COLLECTION_DISCORD_SERVERS); | ||
const DiscordServersModel = (degenDbConn) => degenDbConn.model(CollectionNames_1.default.DB_COLLECTION_DISCORD_SERVERS, DiscordServersSchema, CollectionNames_1.default.DB_COLLECTION_DISCORD_SERVERS); | ||
exports.DiscordServersModel = DiscordServersModel; | ||
//# sourceMappingURL=DiscordServersSchema.js.map |
@@ -8,3 +8,3 @@ "use strict"; | ||
const mongoose_1 = require("mongoose"); | ||
const CollectionName_1 = __importDefault(require("../../constants/CollectionName")); | ||
const CollectionNames_1 = __importDefault(require("../../constants/CollectionNames")); | ||
const DiscordUsersSchema = new mongoose_1.Schema({ | ||
@@ -25,4 +25,4 @@ userId: { | ||
exports.default = DiscordUsersSchema; | ||
const DiscordUsersModel = (degenDbConn) => degenDbConn.model(CollectionName_1.default.DB_COLLECTION_DISCORD_USERS, DiscordUsersSchema, CollectionName_1.default.DB_COLLECTION_DISCORD_USERS); | ||
const DiscordUsersModel = (degenDbConn) => degenDbConn.model(CollectionNames_1.default.DB_COLLECTION_DISCORD_USERS, DiscordUsersSchema, CollectionNames_1.default.DB_COLLECTION_DISCORD_USERS); | ||
exports.DiscordUsersModel = DiscordUsersModel; | ||
//# sourceMappingURL=DiscordUsersSchema.js.map |
@@ -8,4 +8,4 @@ "use strict"; | ||
const mongoose_1 = require("mongoose"); | ||
const Platform_1 = __importDefault(require("../../constants/Platform")); | ||
const CollectionName_1 = __importDefault(require("../../constants/CollectionName")); | ||
const Platforms_1 = __importDefault(require("../../constants/Platforms")); | ||
const CollectionNames_1 = __importDefault(require("../../constants/CollectionNames")); | ||
const PoapEventsSchema = new mongoose_1.Schema({ | ||
@@ -16,5 +16,5 @@ eventName: String, | ||
enum: [ | ||
Platform_1.default.PLATFORM_TYPE_DISCORD, | ||
Platform_1.default.PLATFORM_TYPE_TWITTER, | ||
Platform_1.default.PLATFORM_TYPE_ZOOM, | ||
Platforms_1.default.PLATFORM_TYPE_DISCORD, | ||
Platforms_1.default.PLATFORM_TYPE_TWITTER, | ||
Platforms_1.default.PLATFORM_TYPE_ZOOM, | ||
], | ||
@@ -65,4 +65,4 @@ }, | ||
exports.default = PoapEventsSchema; | ||
const PoapEventsModel = (degenDbConn) => degenDbConn.model(CollectionName_1.default.DB_COLLECTION_POAP_EVENTS, PoapEventsSchema, CollectionName_1.default.DB_COLLECTION_POAP_EVENTS); | ||
const PoapEventsModel = (degenDbConn) => degenDbConn.model(CollectionNames_1.default.DB_COLLECTION_POAP_EVENTS, PoapEventsSchema, CollectionNames_1.default.DB_COLLECTION_POAP_EVENTS); | ||
exports.PoapEventsModel = PoapEventsModel; | ||
//# sourceMappingURL=PoapEventsSchema.js.map |
@@ -8,3 +8,3 @@ "use strict"; | ||
const mongoose_1 = require("mongoose"); | ||
const CollectionName_1 = __importDefault(require("../../constants/CollectionName")); | ||
const CollectionNames_1 = __importDefault(require("../../constants/CollectionNames")); | ||
const NextAuthSchema = new mongoose_1.Schema({ | ||
@@ -39,4 +39,4 @@ compoundId: mongoose_1.Schema.Types.ObjectId, | ||
exports.default = NextAuthSchema; | ||
const NextAuthModel = (nextAuthConn) => nextAuthConn.model(CollectionName_1.default.DB_COLLECTION_NEXT_AUTH_ACCOUNTS, NextAuthSchema, CollectionName_1.default.DB_COLLECTION_NEXT_AUTH_ACCOUNTS); | ||
const NextAuthModel = (nextAuthConn) => nextAuthConn.model(CollectionNames_1.default.DB_COLLECTION_NEXT_AUTH_ACCOUNTS, NextAuthSchema, CollectionNames_1.default.DB_COLLECTION_NEXT_AUTH_ACCOUNTS); | ||
exports.NextAuthModel = NextAuthModel; | ||
//# sourceMappingURL=NextAuthSchema.js.map |
@@ -8,3 +8,3 @@ "use strict"; | ||
const mongoose_1 = require("mongoose"); | ||
const CollectionName_1 = __importDefault(require("../../constants/CollectionName")); | ||
const CollectionNames_1 = __importDefault(require("../../constants/CollectionNames")); | ||
const ParticipantsForDiscordPoapSchema = new mongoose_1.Schema({ | ||
@@ -50,4 +50,4 @@ poapEvent: { | ||
exports.default = ParticipantsForDiscordPoapSchema; | ||
const ParticipantsForDiscordPoapModel = (degenDbConn) => degenDbConn.model(CollectionName_1.default.DB_COLLECTION_POAP_PARTICIPANTS_FOR_DISCORD, ParticipantsForDiscordPoapSchema, CollectionName_1.default.DB_COLLECTION_POAP_PARTICIPANTS_FOR_DISCORD); | ||
const ParticipantsForDiscordPoapModel = (degenDbConn) => degenDbConn.model(CollectionNames_1.default.DB_COLLECTION_POAP_PARTICIPANTS_FOR_DISCORD, ParticipantsForDiscordPoapSchema, CollectionNames_1.default.DB_COLLECTION_POAP_PARTICIPANTS_FOR_DISCORD); | ||
exports.ParticipantsForDiscordPoapModel = ParticipantsForDiscordPoapModel; | ||
//# sourceMappingURL=ParticipantsForDiscordPoapSchema.js.map |
@@ -8,3 +8,3 @@ "use strict"; | ||
const mongoose_1 = require("mongoose"); | ||
const CollectionName_1 = __importDefault(require("../../constants/CollectionName")); | ||
const CollectionNames_1 = __importDefault(require("../../constants/CollectionNames")); | ||
const ParticipantsForTwitterPoapSchema = new mongoose_1.Schema({ | ||
@@ -27,4 +27,4 @@ poapEvent: { | ||
exports.default = ParticipantsForTwitterPoapSchema; | ||
const ParticipantsForTwitterPoapModel = (degenDbConn) => degenDbConn.model(CollectionName_1.default.DB_COLLECTION_POAP_PARTICIPANTS_FOR_TWITTER, ParticipantsForTwitterPoapSchema, CollectionName_1.default.DB_COLLECTION_POAP_PARTICIPANTS_FOR_TWITTER); | ||
const ParticipantsForTwitterPoapModel = (degenDbConn) => degenDbConn.model(CollectionNames_1.default.DB_COLLECTION_POAP_PARTICIPANTS_FOR_TWITTER, ParticipantsForTwitterPoapSchema, CollectionNames_1.default.DB_COLLECTION_POAP_PARTICIPANTS_FOR_TWITTER); | ||
exports.ParticipantsForTwitterPoapModel = ParticipantsForTwitterPoapModel; | ||
//# sourceMappingURL=ParticipantsForTwitterPoapSchema.js.map |
@@ -8,3 +8,3 @@ "use strict"; | ||
const mongoose_1 = require("mongoose"); | ||
const CollectionName_1 = __importDefault(require("../../constants/CollectionName")); | ||
const CollectionNames_1 = __importDefault(require("../../constants/CollectionNames")); | ||
const PoapLinksSchema = new mongoose_1.Schema({ | ||
@@ -33,4 +33,4 @@ poapEvent: { | ||
PoapLinksSchema.index({ platform: 1, claimedByUserPlatformId: 1 }); | ||
const PoapLinksModel = (degenDbConn) => degenDbConn.model(CollectionName_1.default.DB_COLLECTION_POAP_LINKS, PoapLinksSchema, CollectionName_1.default.DB_COLLECTION_POAP_LINKS); | ||
const PoapLinksModel = (degenDbConn) => degenDbConn.model(CollectionNames_1.default.DB_COLLECTION_POAP_LINKS, PoapLinksSchema, CollectionNames_1.default.DB_COLLECTION_POAP_LINKS); | ||
exports.PoapLinksModel = PoapLinksModel; | ||
//# sourceMappingURL=PoapLinksSchema.js.map |
{ | ||
"name": "@degen/schema", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Schema for degen", | ||
@@ -5,0 +5,0 @@ "main": "dist/main.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
45887
57
485