@assetval/address-history
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

AddressHistory

This is the Veritas AddressHistory Schema workspace.

Installation

yarn add @assetval/addresshistory

Usage

As a Class (Front End)

import { AddressHistory } from '@assetval/addresshistory';

const addresshistory = new AddressHistory();

As Schema (Back End)

import { {AddressHistory}Schema, AddressHistory } from '@assetval/addresshistory';
import { Model } from 'mongoose';

export const {AddressHistory}Model = model<AddressHistory>('{addresshistory}es', {AddressHistory}Schema);

As Validation (Back End)

import { {AddressHistory}ValidationSchema } from '@assetval/addresshistory';
import { z } from 'zod';
import { MagikRoutes } from '../middleware/RouterManager.js';

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

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

License

MIT

Authors

Contributing

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

  • asdf
  • NodeJS (ASDF)
  • PNPM (Corepack / Node / ASDF)
  • NX

Then run the following commands:

pnpm install

/@assetval/address-history/

    Package Sidebar

    Install

    npm i @assetval/address-history

    Weekly Downloads

    1

    Version

    0.0.1

    License

    MIT

    Unpacked Size

    9.57 kB

    Total Files

    5

    Last publish

    Collaborators

    • abaccus
    • lekxy_