🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more →
Socket
Book a DemoInstallSign in
Socket

@assetval/client

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@assetval/client

AssetVal's internal client model

latest
Source
npmnpm
Version
0.2.8
Version published
Maintainers
2
Created
Source

Client

This is the Veritas Client Schema workspace.

Installation

yarn add @assetval/client

Usage

As a Class (Front End)

import { Client } from '@assetval/client';

const client = new Client();

As Schema (Back End)

import { ClientSchema, Client } from '@assetval/client';
import { Model } from 'mongoose';

export const ClientModel = model<Client>('clients', ClientSchema);

As Validation (Back End)

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

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

ProfileRoute.post('/updateClient', {
  auth: 'ensureAuthenticated',
  validationSchema: z.object({
    body: ClientValidationSchema
  }),
  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