Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@assetval/conversation

Package Overview
Dependencies
Maintainers
0
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@assetval/conversation

AssetVal's conversation model

  • 1.0.8
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
increased by33.33%
Maintainers
0
Weekly downloads
 
Created
Source

Conversation

This is the Veritas Conversation / Message Schema workspace.

Installation

yarn add @assetval/conversation

Usage

As a Class (Front End)

import { Conversation, Message } from '@assetval/conversation';

const conversation = new Conversation({
});

const message = new Message({
  body: 'Hello, World!',
});

As Schema (Back End)

import { ConversationSchema, Conversation } from '@assetval/conversation';
import { model } from 'mongoose';

export const ConversationModel = model<Conversation>('conversations', ConversationSchema);

As Validation (Back End)

import { ConversationValidationSchema } from '@assetval/conversation';
import { z } from 'zod';
import { MagikRoutes } from '../middleware/RouterManager.js';

const ProfileRoute = MagikRoutes.getRouter('/profile');

ProfileRoute.post('/updateConversation', {
  auth: 'ensureAuthenticated',
  validationSchema: z.object({
    body: ConversationValidationSchema
  }),
  route: async (req, res): Promise<void> => {
    // Do something
  }
});

License

MIT

Authors

  • Abourass

Contributing

Download the Schema repository and make sure you have the following installed:

  • asdf
  • NodeJS (ASDF)
  • Yarn (Corepack / Node / ASDF)
  • moonrepo
  • git-chglog (ASDF)

Then run the following commands:

yarn install

FAQs

Package last updated on 30 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc