0.10.3 • Published 1 year ago
@opvious/api-operations v0.10.3
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
1 year ago
0.11.1
1 year ago
0.11.2
1 year ago
0.11.3
1 year ago
0.11.4
1 year ago
0.10.9
1 year ago
0.10.1
1 year ago
0.10.2
1 year ago
0.10.3
1 year ago
0.10.4
1 year ago
0.10.10
1 year ago
0.10.5
1 year ago
0.10.11
1 year ago
0.10.6
1 year ago
0.10.12
1 year ago
0.10.7
1 year ago
0.10.13
1 year ago
0.10.8
1 year ago
0.10.0
1 year ago
0.9.1
1 year ago
0.9.0
1 year ago
0.8.23
1 year ago
0.8.22
1 year ago
0.8.21
1 year ago
0.8.20
1 year ago
0.8.19
1 year ago
0.8.18
1 year ago
0.8.17
1 year ago
0.8.16
1 year ago
0.8.15
1 year ago
0.8.14
1 year ago
0.8.11
1 year ago
0.8.10
1 year ago
0.8.9
2 years ago
0.8.8
2 years ago
0.8.7
2 years ago