hypertune
Advanced tools
Comparing version 1.7.14 to 1.7.15
# Changelog | ||
## 1.7.14 | ||
## 1.7.15 | ||
@@ -5,0 +5,0 @@ - Optimized package size. |
@@ -1,3 +0,1 @@ | ||
import { GraphQLClient } from 'graphql-request'; | ||
import * as Dom from 'graphql-request/dist/types.dom'; | ||
export type Maybe<T> = T | null; | ||
@@ -413,15 +411,2 @@ export type InputMaybe<T> = Maybe<T>; | ||
} | ||
export type CreateLogsMutationMutationVariables = Exact<{ | ||
input: CreateLogsInput; | ||
}>; | ||
export type CreateLogsMutationMutation = { | ||
__typename?: 'Mutation'; | ||
createLogs: Array<string>; | ||
}; | ||
export declare const CreateLogsMutationDocument: import("graphql").DocumentNode; | ||
export type SdkFunctionWrapper = <T>(action: (requestHeaders?: Record<string, string>) => Promise<T>, operationName: string, operationType?: string) => Promise<T>; | ||
export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionWrapper): { | ||
CreateLogsMutation(variables: CreateLogsMutationMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<CreateLogsMutationMutation>; | ||
}; | ||
export type Sdk = ReturnType<typeof getSdk>; | ||
//# sourceMappingURL=graphql.d.ts.map |
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getSdk = exports.CreateLogsMutationDocument = exports.WebhookEventType = exports.Plan = exports.LogTypeDeprecated = exports.LogType = exports.LogLevel = exports.DimensionType = void 0; | ||
const graphql_tag_1 = __importDefault(require("graphql-tag")); | ||
exports.WebhookEventType = exports.Plan = exports.LogTypeDeprecated = exports.LogType = exports.LogLevel = exports.DimensionType = void 0; | ||
var DimensionType; | ||
@@ -57,16 +53,2 @@ (function (DimensionType) { | ||
})(WebhookEventType = exports.WebhookEventType || (exports.WebhookEventType = {})); | ||
exports.CreateLogsMutationDocument = (0, graphql_tag_1.default) ` | ||
mutation CreateLogsMutation($input: CreateLogsInput!) { | ||
createLogs(input: $input) | ||
} | ||
`; | ||
const defaultWrapper = (action, _operationName, _operationType) => action(); | ||
function getSdk(client, withWrapper = defaultWrapper) { | ||
return { | ||
CreateLogsMutation(variables, requestHeaders) { | ||
return withWrapper((wrappedRequestHeaders) => client.request(exports.CreateLogsMutationDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'CreateLogsMutation', 'mutation'); | ||
} | ||
}; | ||
} | ||
exports.getSdk = getSdk; | ||
//# sourceMappingURL=graphql.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
/** Replaced by the value in package.json on build */ | ||
exports.default = "1.7.14"; | ||
exports.default = "1.7.15"; | ||
//# sourceMappingURL=sdkVersion.js.map |
{ | ||
"name": "hypertune", | ||
"version": "1.7.14", | ||
"version": "1.7.15", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -1,4 +0,1 @@ | ||
import { GraphQLClient } from 'graphql-request'; | ||
import * as Dom from 'graphql-request/dist/types.dom'; | ||
import gql from 'graphql-tag'; | ||
export type Maybe<T> = T | null; | ||
@@ -496,29 +493,1 @@ export type InputMaybe<T> = Maybe<T>; | ||
} | ||
export type CreateLogsMutationMutationVariables = Exact<{ | ||
input: CreateLogsInput; | ||
}>; | ||
export type CreateLogsMutationMutation = { __typename?: 'Mutation', createLogs: Array<string> }; | ||
export const CreateLogsMutationDocument = gql` | ||
mutation CreateLogsMutation($input: CreateLogsInput!) { | ||
createLogs(input: $input) | ||
} | ||
`; | ||
export type SdkFunctionWrapper = <T>(action: (requestHeaders?:Record<string, string>) => Promise<T>, operationName: string, operationType?: string) => Promise<T>; | ||
const defaultWrapper: SdkFunctionWrapper = (action, _operationName, _operationType) => action(); | ||
export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = defaultWrapper) { | ||
return { | ||
CreateLogsMutation(variables: CreateLogsMutationMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<CreateLogsMutationMutation> { | ||
return withWrapper((wrappedRequestHeaders) => client.request<CreateLogsMutationMutation>(CreateLogsMutationDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'CreateLogsMutation', 'mutation'); | ||
} | ||
}; | ||
} | ||
export type Sdk = ReturnType<typeof getSdk>; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
653652
278
12184