0.10.3 • Published 2 years ago

@opvious/api-operations v0.10.3

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

Opvious API operations

This package contains auto-generated types for Opvious' GraphQL API. Consider also using our higher level SDK.

Quickstart

npm i @opvious/api-operations

You'll need an API access token to call SDK methods. Once you have it, you can use this package to emit type-safe API requests.

import {GraphQLClient} from 'graphql-request';
import {getSdk} from '@opvious/api-operations';

// Underlying generic GraphQL client.
const client = new GraphQLClient('https://api.beta.opvious.io/graphql', {
  headers: {authorization: process.env.OPVIOUS_TOKEN},
});

// Typesafe GraphQL SDK.
const sdk = getSdk(
  <R, V>(query: string, vars: V) => client.rawRequest<R, V>(query, vars)
);

Resources

This package includes the following resource files:

  • schema (resources/schema.gql);
  • supported operations (resources/operations/**/*.graphql).
0.11.0

2 years ago

0.11.1

2 years ago

0.11.2

2 years ago

0.11.3

2 years ago

0.11.4

2 years ago

0.10.9

2 years ago

0.10.1

3 years ago

0.10.2

3 years ago

0.10.3

3 years ago

0.10.4

3 years ago

0.10.10

2 years ago

0.10.5

3 years ago

0.10.11

2 years ago

0.10.6

3 years ago

0.10.12

2 years ago

0.10.7

3 years ago

0.10.13

2 years ago

0.10.8

2 years ago

0.10.0

3 years ago

0.9.1

3 years ago

0.9.0

3 years ago

0.8.23

3 years ago

0.8.22

3 years ago

0.8.21

3 years ago

0.8.20

3 years ago

0.8.19

3 years ago

0.8.18

3 years ago

0.8.17

3 years ago

0.8.16

3 years ago

0.8.15

3 years ago

0.8.14

3 years ago

0.8.11

3 years ago

0.8.10

3 years ago

0.8.9

3 years ago

0.8.8

3 years ago

0.8.7

3 years ago