npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@connectonume/ume-module-schemas

v2.3.11

Published

Offers database definitions, schemas and models:

Downloads

12,570

Readme

Ume Schemas

Offers database definitions, schemas and models:

Setup

To open connection to MongoDB, you need to call db.open and pass connection string.

General

  • db: db object
  • ObjectId: Mongoose.Types.ObjectId

##users Following objects are available for the users collection:

  • user.schema: Mongoonse schema for the users collection
  • user.Model: Mongoose model for the users collection
  • user.definition: Schema definition for the users collection
  • user.statuses: Various statuses for a user as an array
db = require '@connectonume/ume-module-schemas'
{user} = db
{schema, Model, definition, statuses} = user

doc = new Model()

##events Following objects are available for the events collection:

  • event.schema: Mongoose schema for the events collection
  • event.Model: Mongoose model for the events collection
  • event.definition: Schema definition for the events collection
  • event.statuses: Available statuses for event.status field
  • event.ageRestrictions: Available values for event.ageRestriction field

##contacts Following objects are available for the contacts collection:

  • contact.schema: Mongoose schema for the contacts collection.
  • contact.Model : Mongoose model for the contacts collection.
  • contact.definition: Schema definition for the contacts collection.
db = require '@connectonume/ume-module-schemas'
{event} = db
{schema, Model, definition, statuses} = event

doc = new Model()

##umes Following objects are available for the umes collection:

  • ume.Model: Mongoose model for the umes collection.
  • ume.definition: Schema definition for the umes collection.
  • ume.schema: Mongoose schema for the umes collection.
  • ume.statuses: Available statuses for ume.status field.
  • ume.types: Available types for ume.type field.
  • ume.inquiryFormFields: Available types for ume.bookingInquiryForm.fields field.
db = require '@connectonume/ume-module-schemas'
{ume} = db
{schema, Model, definition, statuses, types, inquiryFormFields} = ume

doc = new Model()

##videos Following objects are available for the videos collection:

  • video.Model: Mongoose model for the videos collection.
  • video.definition: Schema definition for the videos collection.
  • video.schema: Mongoose Schema for the videos collection.
  • video.sources: Available statuses for video.source field.

##products Following objects are available for the products collection:

  • product.Model: Mongoose model for the products collection.
  • product.definition: Schema definition for the products collection.
  • product.schema: Mongoose Schema for the products collection.
  • product.statuses: Available statuses for product.status field.
db = require '@connectonume/ume-module-schemas'
{product} = db
{schema, Model, definition, statuses} = product

doc = new Model()

##merchandises Following objects are avaialble for the merchandises collection:

  • merchandise.Model: Mongoose model for the merchandise collection.
  • merchandise.definition: Schema definition for the merchandise collection.
  • merchandise.schema: Mongoose Schema for the merchandise collection.
  • merchandise.taxTypes: Available tax types for tax.type field.

##music Following objects are avaialble for the music collection:

  • music.Model: Mongoose model
  • music.definition: Schema definition
  • music.schema: Mongoose Schema
  • music.types: available values for type field
  • music.statuses: available values for status field
  • music.trackDefinition: tracks field item definition
  • music.trackPlaybackTypes: available values for tracks[].playback field

Usage example:

db = require '@connectonume/ume-module-schemas'
{music} = db
{ schema, Model, definition, statuses, types,
  trackDefinition, trackPlaybackTypes } = music

doc = new Model()

##useraccesschanges Following objects are avaialble for the useraccesschanges collection:

  • userAccessChange.schema: Mongoose schema for the useraccesschanges collection.

  • userAccessChange.Model : Mongoose model for the useraccesschanges collection.

  • userAccessChange.definition: Schema definition for the useraccesschanges collection.

##givebacks Following objects are avaialble for the givebacks collection:

  • giveback.schema: Mongoose schema for the givebacks collection.

  • giveback.Model: Mongoose model for the givebacks collection.

  • giveback.definition: Schema definition for the givebacks collection.

  • giveback.notifyTypes: Available types for notify field.

##media Following objects are avaialble for the media collection:

  • media.schema: Mongoose schema for the media collection.
  • media.Model : Mongoose model for the media collection.
  • media.definition: Schema definition for the media collection.
  • media.getMedia(umeId, mediaId, path, cb): Helper to get specified media that belongs to specified ume.
  • media.getMedias(umeId, collection, collectionPath, mediaIdPath, cb): Helper to get specified multiple medias that belong to specified ume.

##timezone Following objects are avaialble for the timezones collection:

  • timezone.schema: Mongoose schema for the timezones collection.

  • timezone.Model : Mongoose model for the timezones collection.

  • timezone.definition: Schema definition for the timezones collection.

##donationsettings Following objects are avaialble for the donationsettings collection:

  • donationSettings.schema: Mongoose schema for the donationsettings collection.

  • donationSettings.Model : Mongoose model for the donationsettings collection.

  • donationSettings.definition: Schema definition for the donationsettings collection.

##idempotency Following objects are avaialble for the idempotency collection:

  • idempotency.schema: Mongoose schema for the idempotency collection.

  • idempotency.Model : Mongoose model for the idempotency collection.

  • idempotency.definition: Schema definition for the idempotency collection.

##fan Following objects are avaialble for the fans collection:

  • fan.Model: Mongoose model for fans collection.
  • fan.definition: Schema definition for fans collection.
  • fan.schema: Mongoose schema for fans collection.
  • fan.statuses: available values for status field of fans collection.