0.1.12 • Published 5 months ago

@sr-engineering/sr-api-types v0.1.12

Weekly downloads
-
License
-
Repository
github
Last release
5 months ago

Showrunnr API Types

Showrunnr API Types is a public package offering TypeScript type definitions that ensure type safety and consistency when interacting with Showrunnr's API.

Getting Started

Getting started is easy; simply install our package and follow the instructions below to begin using it.

Example Setup and Integrating the SR Types to your project

  1. Do yarn install @sr-engineering/sr-api-types or npm install @sr-engineering/sr-api-types

  2. Import types from our package. We can import types, queries, and mutations from the package like so:

import { PersonInput } from "@sr-engineering/sr-api-types/lib/person/v1/graphql";
import { PersonFragmentDoc } from "@sr-engineering/sr-api-types/lib/search/v1/graphql";
import { CurrentAccountQuery } from "@sr-engineering/sr-api-types/lib/account/v1/graphql";

and use them inside our calls as query: CurrentAccountQuery, or for mutations: async function createPerson(personData: PersonInput).

Thats it! We're now ready to use the PersonInput type.

Additional Resources

To explore the SDK in more detail, visit the ShowRunnr SDK Example Repository.

0.1.11

5 months ago

0.1.12

5 months ago

0.1.9

6 months ago

0.1.4

8 months ago

0.1.3

8 months ago

0.1.6

7 months ago

0.1.5

7 months ago

0.1.2

8 months ago

0.1.0

9 months ago

0.1.1

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago