Options
All
  • Public
  • Public/Protected
  • All
Menu
deprecated

Use RestApi or GraphQLAPI to reduce your application bundle size Export Cloud Logic APIs

Hierarchy

Index

Constructors

constructor

Properties

Auth

Auth: AuthClass = Auth

Cache

Cache: ICache = Cache

Credentials

Credentials: CredentialsClass = Credentials

Methods

cancel

  • cancel(request: Promise<any>, message?: string): boolean

configure

  • configure(options: any): any

del

  • del(apiName: string, path: string, init: object): Promise<any>

endpoint

  • endpoint(apiName: string): Promise<string>

get

  • get(apiName: string, path: string, init: object): Promise<any>

getGraphqlOperationType

getModuleName

  • getModuleName(): string

graphql

  • graphql<T>(options: GraphQLOptions, additionalHeaders?: object): T extends GraphQLQuery<T> ? Promise<GraphQLResult<T>> : T extends GraphQLSubscription<T> ? Observable<object> : Promise<GraphQLResult<any>> | Observable<object>
  • Executes a GraphQL operation

    Type parameters

    • T

    Parameters

    • options: GraphQLOptions

      GraphQL Options

    • Optional additionalHeaders: object
      • [key: string]: string

    Returns T extends GraphQLQuery<T> ? Promise<GraphQLResult<T>> : T extends GraphQLSubscription<T> ? Observable<object> : Promise<GraphQLResult<any>> | Observable<object>

    An Observable if queryType is 'subscription', else a promise of the graphql result from the query.

head

  • head(apiName: string, path: string, init: object): Promise<any>

isCancel

  • isCancel(error: any): boolean

patch

  • patch(apiName: string, path: string, init: object): Promise<any>

post

  • post(apiName: string, path: string, init: object): Promise<any>

put

  • put(apiName: string, path: string, init: object): Promise<any>