@tolinax/ayoune-interfaces
v2025.16.19
Published
Houses TypeScript interfaces for aYOUne
Downloads
642
Readme
aYOUne Interfaces
A comprehensive TypeScript interfaces library for the aYOUne platform - a modular business as a Service platform.
Overview
This library provides TypeScript type definitions and data exports for the aYOUne platform, which includes modules for:
- AI - Artificial Intelligence services
- CRM - Customer Relationship Management
- CMS - Content Management System
- Marketing - Marketing automation and campaigns
- Automation - Business process automation
- PM - Project Management
- E-commerce - Online store management
- And many more specialized modules
Installation
npm install @tolinax/ayoune-interfacesUsage
Importing Interfaces
import { IAPI, ITicket, IaYOUneUser } from '@tolinax/ayoune-interfaces';
// Use interfaces for type safety
const api: IAPI = {
_customerID: "customer123",
_clientID: [],
_subID: [],
_user: "user456",
name: "My API",
callback_url: "https://example.com/callback",
access_token: "token123",
access_token_key: "key456",
active: true,
scopes: [{ key: "read" }],
limit: false,
rateLimit: 1000
};Importing Data and Enums
import { aYOUneServices, aYOUneModules, aMN } from '@tolinax/ayoune-interfaces';
// Access service definitions
console.log(aYOUneServices); // Array of all aYOUne services with hosts
// Access module definitions
console.log(aYOUneModules); // Array of platform modules
// Use model names enum
const collectionName = aMN.AIConversations; // "AIConversations"API Reference
Core Interfaces
All interfaces extend IDefaultFields which provides common MongoDB document fields:
_id: ObjectIdcreated: Dateupdated: Date- Other standard database fields
Data Exports
Services (aYOUneServices)
Array of service definitions with:
label: Human-readable service namemodule: Associated platform modulehost: Service hostname
Modules (aYOUneModules)
Array of platform modules with:
label: Module display namemodule: Module identifierhost: Module hostname
Model Names (aMN)
Enum containing all MongoDB collection names used across the platform.
Development
Building
npm run buildRelease
This project uses conventional commits and automated releases:
npm run releasePlatform Architecture
The aYOUne platform consists of multiple specialized services:
- Global Services: Middleware, Datatables, Barcodes, Scripts
- AI Services: Text/Image/Video Generation, Text-to-Speech
- CMS Services: Media, Content Snippets, Dynamic Content
- Business Services: CRM, PM, Marketing, Automation
- Analytics: Statistics, Monitoring, Reporting
- E-commerce: Sales, Purchase, Accounting
Each service is independently deployable and communicates through well-defined interfaces provided by this library.
Contributing
- Follow conventional commit format (
feat:,fix:,docs:, etc.) - All interfaces should extend
IDefaultFieldswhen appropriate - Use consistent naming: interfaces start with
I, data exports use descriptive names - Update CHANGELOG.md entries are generated automatically
License
LGPL-3.0 © tolinax
