@opvious/api-operations
TypeScript icon, indicating that this package has built-in type declarations

0.10.3 • Public • Published

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. You can generate one at https://hub.opvious.io/authorizations. 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.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).

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.11.40alpha
0.10.30latest

Version History

VersionDownloads (Last 7 Days)Published
0.11.40
0.11.30
0.11.20
0.11.10
0.11.00
0.10.130
0.10.120
0.10.110
0.10.100
0.10.90
0.10.80
0.10.70
0.10.60
0.10.50
0.10.40
0.10.30
0.10.20
0.10.10
0.10.00
0.9.10
0.9.00
0.8.233
0.8.220
0.8.210
0.8.200
0.8.190
0.8.180
0.8.171
0.8.160
0.8.150
0.8.141
0.8.111
0.8.101
0.8.91
0.8.82
0.8.72

Package Sidebar

Install

npm i @opvious/api-operations

Weekly Downloads

0

Version

0.10.3

License

Apache-2.0

Unpacked Size

554 kB

Total Files

44

Last publish

Collaborators

  • opvious-eng