netlify-onegraph-internal
Advanced tools
Comparing version 0.1.2 to 0.1.3
export function executeCreateGraphQLSchemaMutation(variables: any, options: any): Promise<any>; | ||
export function executeCreatePersistedQueryMutation(variables: any, options: any): Promise<any>; | ||
export function executeCreatePersistQueryTokenMutation(variables: any, options: any): Promise<any>; | ||
export function executeCreateApiTokenMutation(variables: any, options: any): Promise<any>; | ||
export function fetchListPersistedQueries(variables: any, options: any): Promise<any>; | ||
@@ -23,3 +23,3 @@ export function fetchPersistedQueryQuery(variables: any, options: any): Promise<any>; | ||
export { executeCreateGraphQLSchemaMutation }; | ||
export { executeCreatePersistQueryTokenMutation }; | ||
export { executeCreateApiTokenMutation }; | ||
export { executeCreatePersistedQueryMutation }; | ||
@@ -26,0 +26,0 @@ export { fetchListPersistedQueries }; |
@@ -50,3 +50,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.handler = exports.executeMarkCLISessionInactive = exports.executeMarkCLISessionActiveHeartbeat = exports.executeCreateNewSchemaMutation = exports.executeUpsertAppForSiteMutation = exports.fetchAppSchemaQuery = exports.executeAckCLISessionEventMutation = exports.fetchCLISessionQuery = exports.executeCreateCLISessionEventMutation = exports.executeUpdateCLISessionMetadataMutation = exports.executeCreateCLISessionMutation = exports.fetchPersistedQueryQuery = exports.fetchListPersistedQueries = exports.executeCreatePersistQueryTokenMutation = exports.executeCreatePersistedQueryMutation = exports.executeCreateGraphQLSchemaMutation = void 0; | ||
exports.handler = exports.executeMarkCLISessionInactive = exports.executeMarkCLISessionActiveHeartbeat = exports.executeCreateNewSchemaMutation = exports.executeUpsertAppForSiteMutation = exports.fetchAppSchemaQuery = exports.executeAckCLISessionEventMutation = exports.fetchCLISessionQuery = exports.executeCreateCLISessionEventMutation = exports.executeUpdateCLISessionMetadataMutation = exports.executeCreateCLISessionMutation = exports.fetchPersistedQueryQuery = exports.fetchListPersistedQueries = exports.executeCreateApiTokenMutation = exports.executeCreatePersistedQueryMutation = exports.executeCreateGraphQLSchemaMutation = void 0; | ||
// GENERATED VIA NETLIFY AUTOMATED DEV TOOLS, EDIT WITH CAUTION! | ||
@@ -126,6 +126,6 @@ var fetch = require('node-fetch'); | ||
exports.executeCreatePersistedQueryMutation = executeCreatePersistedQueryMutation; | ||
var executeCreatePersistQueryTokenMutation = function (variables, options) { | ||
var executeCreateApiTokenMutation = function (variables, options) { | ||
return fetchNetlifyGraph({ | ||
query: "mutation CreatePersistQueryTokenMutation($nfToken: String!, $input: OneGraphPersistedQueryTokenInput!) {\n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {\n createPersitQueryToken(input: $input) {\n accessToken {\n token\n expireDate\n name\n appId\n netlifyId\n }\n }\n }\n}", | ||
operationName: "CreatePersistQueryTokenMutation", | ||
query: "mutation CreateApiTokenMutation($input: OneGraphCreateApiTokenTokenInput!, $nfToken: String!) {\n oneGraph(auths: {netlifyAuth: {oauthToken: $nfToken}}) {\n createApiToken(input: $input) {\n accessToken {\n token\n userAuths {\n service\n foreignUserId\n scopes\n }\n appId\n expireDate\n name\n netlifyId\n anchor\n }\n }\n }\n}", | ||
operationName: "CreateApiTokenMutation", | ||
variables: variables, | ||
@@ -136,3 +136,3 @@ options: options, | ||
}; | ||
exports.executeCreatePersistQueryTokenMutation = executeCreatePersistQueryTokenMutation; | ||
exports.executeCreateApiTokenMutation = executeCreateApiTokenMutation; | ||
var fetchListPersistedQueries = function (variables, options) { | ||
@@ -267,5 +267,5 @@ return fetchNetlifyGraph({ | ||
/** | ||
* Create a token belonging to a specific siteId to persist operations later | ||
* Create a token belonging to a specific siteId to persist operations and create GraphQL schemas later | ||
*/ | ||
executeCreatePersistQueryTokenMutation: exports.executeCreatePersistQueryTokenMutation, | ||
executeCreateApiTokenMutation: exports.executeCreateApiTokenMutation, | ||
/** | ||
@@ -272,0 +272,0 @@ * Create a persisted operations doc to be later retrieved, usually from a GUI |
@@ -250,4 +250,4 @@ /** | ||
}>; | ||
export declare const executeCreatePersistQueryTokenMutation: typeof import("./generatedOneGraphClient").executeCreatePersistQueryTokenMutation; | ||
export declare const executeCreateApiTokenMutation: typeof import("./generatedOneGraphClient").executeCreateApiTokenMutation; | ||
export declare const executeCreateGraphQLSchemaMutation: typeof import("./generatedOneGraphClient").executeCreateGraphQLSchemaMutation; | ||
export {}; |
@@ -39,3 +39,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.executeCreateGraphQLSchemaMutation = exports.executeCreatePersistQueryTokenMutation = exports.executeMarkCliSessionInactive = exports.executeMarkCliSessionActiveHeartbeat = exports.fetchEnabledServices = exports.ensureAppForSite = exports.createNewAppSchema = exports.upsertAppForSite = exports.fetchAppSchema = exports.friendlyEventName = exports.executeCreatePersistedQueryMutation = exports.ackCLISessionEvents = exports.updateCLISessionMetadata = exports.createCLISession = exports.fetchCliSessionEvents = exports.fetchCliSession = exports.fetchPersistedQuery = exports.fetchOneGraphSchema = exports.fetchOneGraphSchemaJson = void 0; | ||
exports.executeCreateGraphQLSchemaMutation = exports.executeCreateApiTokenMutation = exports.executeMarkCliSessionInactive = exports.executeMarkCliSessionActiveHeartbeat = exports.fetchEnabledServices = exports.ensureAppForSite = exports.createNewAppSchema = exports.upsertAppForSite = exports.fetchAppSchema = exports.friendlyEventName = exports.executeCreatePersistedQueryMutation = exports.ackCLISessionEvents = exports.updateCLISessionMetadata = exports.createCLISession = exports.fetchCliSessionEvents = exports.fetchCliSession = exports.fetchPersistedQuery = exports.fetchOneGraphSchema = exports.fetchOneGraphSchemaJson = void 0; | ||
var graphql_1 = require("graphql"); | ||
@@ -498,4 +498,4 @@ var fetch = require("node-fetch"); | ||
exports.executeMarkCliSessionInactive = executeMarkCliSessionInactive; | ||
exports.executeCreatePersistQueryTokenMutation = generatedOneGraphClient_1.default.executeCreatePersistQueryTokenMutation; | ||
exports.executeCreateApiTokenMutation = generatedOneGraphClient_1.default.executeCreateApiTokenMutation; | ||
exports.executeCreateGraphQLSchemaMutation = generatedOneGraphClient_1.default.executeCreateGraphQLSchemaMutation; | ||
//# sourceMappingURL=oneGraphClient.js.map |
{ | ||
"name": "netlify-onegraph-internal", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Internal tools for use by Netlify", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
416388