Skip to content

Het Archief voor Onderwijs 2 - TypeScript typings for front/backend communication

Notifications You must be signed in to change notification settings

viaacode/avo2-typings

Repository files navigation

Types for the AvO2 API

This repo contains the object types that are used to communicate between the NodeJS service and the React client apps. Every type in this package is namespaces under Avo.

Usage

How to include

import type { Avo } from "@viaa/avo2-types";

...

How to use

const apiStatus: Avo.Status.Response = {
    success: true,
    version: "1.0.0",
    data: new Date(),
}

Status

  • Avo.Status.StatusResponse

Search

  • Avo.Search.FilterRequest
  • Avo.Search.Filters
  • Avo.Search.FilterResponse
  • Avo.Search.FilterItem

Deploy

Steps to deploy:

  • update package.json version to match release branch version
  • merge release branch into master
  • add tag on master + push the tag (format: v1.1.1)
  • goto jenkins to start a build or wait up to 20 minutes for an automatic build
  • When the build succeeds you should see the version of the npm package in the meemoo npm repository:
  • You can now update the package version in the client and run npm install
    • Make sure you're connected with the meemoo vpn for npm install to succeed
    • The avo2 packages are under @viaa namespace

About

Het Archief voor Onderwijs 2 - TypeScript typings for front/backend communication

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published