@raydeck/gql-client-core
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

@raydeck/gql-client-core - v1.0.2

@raydeck/gql-client-core - v1.0.2

Index

Type aliases

Variables

Functions

Type aliases

AccessObject

Ƭ AccessObject: object

Defined in index.ts:100

internal

Type declaration:

  • clientId: string

  • clientSecret: string

  • graphqlEndpoint: string

  • region: string

  • tokenEndpoint: string


Await

Ƭ Await: T extends object ? U : T

Defined in index.ts:10

internal

Variables

Let cachedToken

cachedToken: string | AccessObject = ""

Defined in index.ts:108

internal


Let client

client: ReturnType‹typeof makeAppSyncClient› | undefined

Defined in index.ts:110

internal

Functions

getAccessToken

getAccessToken(__namedParameters: object): Promise‹object›

Defined in index.ts:16

internal

Parameters:

__namedParameters: object

Name Type
clientId string
clientSecret string
scope string
tokenEndpoint string

Returns: Promise‹object›


init

init(token: string | AccessObject | undefined): Promise‹ApolloClient‹NormalizedCacheObject››

Defined in index.ts:115

Account relationship

Parameters:

Name Type Description
token string | AccessObject | undefined token for setting up account access

Returns: Promise‹ApolloClient‹NormalizedCacheObject››


makeAppSyncClient

makeAppSyncClient(__namedParameters: object): ApolloClient‹NormalizedCacheObject›

Defined in index.ts:50

internal

Parameters:

__namedParameters: object

Name Type Default
access_token string -
region string "us-east-1"
url string -

Returns: ApolloClient‹NormalizedCacheObject›


makeToken

makeToken(__namedParameters: object): Promise‹object›

Defined in index.ts:83

internal

Parameters:

__namedParameters: object

Name Type
clientId string
clientSecret string
tokenEndpoint string

Returns: Promise‹object›

Readme

Keywords

none

Package Sidebar

Install

npm i @raydeck/gql-client-core

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

21.3 kB

Total Files

11

Last publish

Collaborators

  • raydeck