UNPKG

@shopify/cli-kit

Version:

A set of utilities, interfaces, and models that are common across all the platform features

22 lines (21 loc) 854 B
import { UnauthorizedHandler } from './graphql.js'; import { Variables } from 'graphql-request'; import { TypedDocumentNode } from '@graphql-typed-document-node/core'; /** * Options for making requests to the Webhooks API. */ export interface WebhooksRequestOptions<TResult, TVariables extends Variables> { organizationId: string; query: TypedDocumentNode<TResult, TVariables>; token: string; unauthorizedHandler: UnauthorizedHandler; variables?: TVariables; } /** * Executes an org-scoped GraphQL query against the App Management API. * Uses typed documents. * * @param options - The options for the request. * @returns The response of the query of generic type <T>. */ export declare function webhooksRequestDoc<TResult, TVariables extends Variables>(options: WebhooksRequestOptions<TResult, TVariables>): Promise<TResult>;