@degen/schema
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -1,5 +0,5 @@ | ||
import { Connection, Model, Schema } from 'mongoose'; | ||
import { Model, Schema } from 'mongoose'; | ||
import DiscordServer from './types/DiscordServer'; | ||
declare const DiscordServersSchema: Schema<DiscordServer, Model<DiscordServer, any, any, any>, any, any>; | ||
export default DiscordServersSchema; | ||
export declare const DiscordServersModel: (degenDbConn: Connection) => Model<DiscordServer>; | ||
export declare const DiscordServersModel: Model<DiscordServer>; |
@@ -9,2 +9,3 @@ "use strict"; | ||
const CollectionNames_1 = __importDefault(require("../../constants/CollectionNames")); | ||
const main_1 = require("../../main"); | ||
const DiscordServersSchema = new mongoose_1.Schema({ | ||
@@ -27,4 +28,3 @@ serverId: { | ||
exports.default = DiscordServersSchema; | ||
const DiscordServersModel = (degenDbConn) => degenDbConn.model(CollectionNames_1.default.DB_COLLECTION_DISCORD_SERVERS, DiscordServersSchema, CollectionNames_1.default.DB_COLLECTION_DISCORD_SERVERS); | ||
exports.DiscordServersModel = DiscordServersModel; | ||
exports.DiscordServersModel = main_1.degenDbConn.model(CollectionNames_1.default.DB_COLLECTION_DISCORD_SERVERS, DiscordServersSchema, CollectionNames_1.default.DB_COLLECTION_DISCORD_SERVERS); | ||
//# sourceMappingURL=DiscordServersSchema.js.map |
@@ -1,5 +0,5 @@ | ||
import { Connection, Model, Schema } from 'mongoose'; | ||
import { Model, Schema } from 'mongoose'; | ||
import DiscordUser from './types/DiscordUser'; | ||
declare const DiscordUsersSchema: Schema<DiscordUser, Model<DiscordUser, any, any, any>, any, any>; | ||
export default DiscordUsersSchema; | ||
export declare const DiscordUsersModel: (degenDbConn: Connection) => Model<DiscordUser>; | ||
export declare const DiscordUsersModel: Model<DiscordUser>; |
@@ -9,2 +9,3 @@ "use strict"; | ||
const CollectionNames_1 = __importDefault(require("../../constants/CollectionNames")); | ||
const main_1 = require("../../main"); | ||
const DiscordUsersSchema = new mongoose_1.Schema({ | ||
@@ -25,4 +26,3 @@ userId: { | ||
exports.default = DiscordUsersSchema; | ||
const DiscordUsersModel = (degenDbConn) => degenDbConn.model(CollectionNames_1.default.DB_COLLECTION_DISCORD_USERS, DiscordUsersSchema, CollectionNames_1.default.DB_COLLECTION_DISCORD_USERS); | ||
exports.DiscordUsersModel = DiscordUsersModel; | ||
exports.DiscordUsersModel = main_1.degenDbConn.model(CollectionNames_1.default.DB_COLLECTION_DISCORD_USERS, DiscordUsersSchema, CollectionNames_1.default.DB_COLLECTION_DISCORD_USERS); | ||
//# sourceMappingURL=DiscordUsersSchema.js.map |
@@ -1,5 +0,5 @@ | ||
import { Connection, Model, Schema } from 'mongoose'; | ||
import { Model, Schema } from 'mongoose'; | ||
import PoapEvent from './types/PoapEvent'; | ||
declare const PoapEventsSchema: Schema<PoapEvent, Model<PoapEvent, any, any, any>, any, any>; | ||
export default PoapEventsSchema; | ||
export declare const PoapEventsModel: (degenDbConn: Connection) => Model<PoapEvent>; | ||
export declare const PoapEventsModel: Model<PoapEvent>; |
@@ -10,2 +10,3 @@ "use strict"; | ||
const CollectionNames_1 = __importDefault(require("../../constants/CollectionNames")); | ||
const main_1 = require("../../main"); | ||
const PoapEventsSchema = new mongoose_1.Schema({ | ||
@@ -64,4 +65,3 @@ eventName: String, | ||
exports.default = PoapEventsSchema; | ||
const PoapEventsModel = (degenDbConn) => degenDbConn.model(CollectionNames_1.default.DB_COLLECTION_POAP_EVENTS, PoapEventsSchema, CollectionNames_1.default.DB_COLLECTION_POAP_EVENTS); | ||
exports.PoapEventsModel = PoapEventsModel; | ||
exports.PoapEventsModel = main_1.degenDbConn.model(CollectionNames_1.default.DB_COLLECTION_POAP_EVENTS, PoapEventsSchema, CollectionNames_1.default.DB_COLLECTION_POAP_EVENTS); | ||
//# sourceMappingURL=PoapEventsSchema.js.map |
@@ -1,5 +0,5 @@ | ||
import { Connection, Model, Schema } from 'mongoose'; | ||
import { Model, Schema } from 'mongoose'; | ||
import NextAuthAccounts from './types/NextAuthAccounts'; | ||
declare const NextAuthSchema: Schema<NextAuthAccounts, Model<NextAuthAccounts, any, any, any>, any, any>; | ||
export default NextAuthSchema; | ||
export declare const NextAuthModel: (nextAuthConn: Connection) => Model<NextAuthAccounts>; | ||
export declare const NextAuthModel: Model<NextAuthAccounts>; |
@@ -9,2 +9,3 @@ "use strict"; | ||
const CollectionNames_1 = __importDefault(require("../../constants/CollectionNames")); | ||
const main_1 = require("../../main"); | ||
const NextAuthSchema = new mongoose_1.Schema({ | ||
@@ -39,4 +40,3 @@ compoundId: mongoose_1.Schema.Types.ObjectId, | ||
exports.default = NextAuthSchema; | ||
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; | ||
exports.NextAuthModel = main_1.nextAuthConn.model(CollectionNames_1.default.DB_COLLECTION_NEXT_AUTH_ACCOUNTS, NextAuthSchema, CollectionNames_1.default.DB_COLLECTION_NEXT_AUTH_ACCOUNTS); | ||
//# sourceMappingURL=NextAuthSchema.js.map |
@@ -1,5 +0,5 @@ | ||
import { Connection, Model, Schema } from 'mongoose'; | ||
import { Model, Schema } from 'mongoose'; | ||
import ParticipantForDiscordPoap from './types/ParticipantForDiscordPoap'; | ||
declare const ParticipantsForDiscordPoapSchema: Schema<ParticipantForDiscordPoap, Model<ParticipantForDiscordPoap, any, any, any>, any, any>; | ||
export default ParticipantsForDiscordPoapSchema; | ||
export declare const ParticipantsForDiscordPoapModel: (degenDbConn: Connection) => Model<ParticipantForDiscordPoap>; | ||
export declare const ParticipantsForDiscordPoapModel: Model<ParticipantForDiscordPoap>; |
@@ -9,2 +9,3 @@ "use strict"; | ||
const CollectionNames_1 = __importDefault(require("../../constants/CollectionNames")); | ||
const main_1 = require("../../main"); | ||
const ParticipantsForDiscordPoapSchema = new mongoose_1.Schema({ | ||
@@ -50,4 +51,3 @@ poapEvent: { | ||
exports.default = ParticipantsForDiscordPoapSchema; | ||
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; | ||
exports.ParticipantsForDiscordPoapModel = main_1.degenDbConn.model(CollectionNames_1.default.DB_COLLECTION_POAP_PARTICIPANTS_FOR_DISCORD, ParticipantsForDiscordPoapSchema, CollectionNames_1.default.DB_COLLECTION_POAP_PARTICIPANTS_FOR_DISCORD); | ||
//# sourceMappingURL=ParticipantsForDiscordPoapSchema.js.map |
@@ -1,5 +0,5 @@ | ||
import { Connection, Model, Schema } from 'mongoose'; | ||
import { Model, Schema } from 'mongoose'; | ||
import ParticipantForTwitterPoap from './types/ParticipantForTwitterPoap'; | ||
declare const ParticipantsForTwitterPoapSchema: Schema<ParticipantForTwitterPoap, Model<ParticipantForTwitterPoap, any, any, any>, any, any>; | ||
export default ParticipantsForTwitterPoapSchema; | ||
export declare const ParticipantsForTwitterPoapModel: (degenDbConn: Connection) => Model<ParticipantForTwitterPoap>; | ||
export declare const ParticipantsForTwitterPoapModel: Model<ParticipantForTwitterPoap>; |
@@ -9,2 +9,3 @@ "use strict"; | ||
const CollectionNames_1 = __importDefault(require("../../constants/CollectionNames")); | ||
const main_1 = require("../../main"); | ||
const ParticipantsForTwitterPoapSchema = new mongoose_1.Schema({ | ||
@@ -27,4 +28,3 @@ poapEvent: { | ||
exports.default = ParticipantsForTwitterPoapSchema; | ||
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; | ||
exports.ParticipantsForTwitterPoapModel = main_1.degenDbConn.model(CollectionNames_1.default.DB_COLLECTION_POAP_PARTICIPANTS_FOR_TWITTER, ParticipantsForTwitterPoapSchema, CollectionNames_1.default.DB_COLLECTION_POAP_PARTICIPANTS_FOR_TWITTER); | ||
//# sourceMappingURL=ParticipantsForTwitterPoapSchema.js.map |
@@ -1,5 +0,5 @@ | ||
import { Connection, Model, Schema } from 'mongoose'; | ||
import { Model, Schema } from 'mongoose'; | ||
import PoapLink from './types/PoapLink'; | ||
declare const PoapLinksSchema: Schema<PoapLink, Model<PoapLink, any, any, any>, any, any>; | ||
export default PoapLinksSchema; | ||
export declare const PoapLinksModel: (degenDbConn: Connection) => Model<PoapLink>; | ||
export declare const PoapLinksModel: Model<PoapLink>; |
@@ -9,2 +9,3 @@ "use strict"; | ||
const CollectionNames_1 = __importDefault(require("../../constants/CollectionNames")); | ||
const main_1 = require("../../main"); | ||
const PoapLinksSchema = new mongoose_1.Schema({ | ||
@@ -30,7 +31,11 @@ poapEvent: { | ||
}, | ||
poapCode: { | ||
type: String, | ||
required: false, | ||
}, | ||
}); | ||
exports.default = PoapLinksSchema; | ||
PoapLinksSchema.index({ platform: 1, claimedByUserPlatformId: 1 }); | ||
const PoapLinksModel = (degenDbConn) => degenDbConn.model(CollectionNames_1.default.DB_COLLECTION_POAP_LINKS, PoapLinksSchema, CollectionNames_1.default.DB_COLLECTION_POAP_LINKS); | ||
exports.PoapLinksModel = PoapLinksModel; | ||
PoapLinksSchema.index({ poapCode: 1 }); | ||
exports.PoapLinksModel = main_1.degenDbConn.model(CollectionNames_1.default.DB_COLLECTION_POAP_LINKS, PoapLinksSchema, CollectionNames_1.default.DB_COLLECTION_POAP_LINKS); | ||
//# sourceMappingURL=PoapLinksSchema.js.map |
@@ -9,3 +9,4 @@ import PoapEvent from '../../events/types/PoapEvent'; | ||
expiresAtDate: Date; | ||
poapCode?: string; | ||
} | ||
export default PoapLink; |
{ | ||
"name": "@degen/schema", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"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
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
491
45538