@hurairabaloch/centralised_modals
v1.0.0
Published
Centralised Mongoose Models for EventZero
Readme
@eventzerohuddle/centralised_modals
Centralised Mongoose Models for EventZero applications.
Description
This package contains all the shared Mongoose models used across EventZero applications. It provides a centralized location for database schema definitions, ensuring consistency across different services and applications.
Installation
npm install @eventzerohuddle/centralised_modalsUsage
import {
AccommodationModal,
EventModal,
OrganizationModal,
FlightModal,
CventBudgetItemsModal,
CventSyncModal,
} from "@eventzerohuddle/centralised_modals";
// Use the models in your application
const events = await EventModal.find({});
const organizations = await OrganizationModal.find({});Available Models
- AccommodationModal - Hotel accommodation data
- EventModal - Event information and details
- OrganizationModal - Organization data and settings
- FlightModal - Flight travel information
- CventBudgetItemsModal - Cvent budget items for food and beverages
- CventSyncModal - Cvent synchronization configuration
Types and Constants
The package also exports TypeScript types and constants:
import {
IEvent,
IOrganization,
IFlight,
IAccommodation,
ICventBudgetItem,
ICventSync,
SCHEME_EVENT,
SCHEME_ORGANIZATION,
// ... other constants
} from "@eventzerohuddle/centralised_modals";Development
Prerequisites
- Node.js 20+
- npm
Setup
npm installBuild
npm run buildLint
npm run lintDevelopment Mode
npm run devPublishing
This package is automatically published to GitHub Packages when changes are pushed to the main branch or when manually triggered through GitHub Actions.
License
ISC
