Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

netlify-onegraph-internal

Package Overview
Dependencies
Maintainers
1
Versions
100
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

netlify-onegraph-internal - npm Package Compare versions

Comparing version 0.0.49 to 0.0.50

22

dist/generatedOneGraphClient.js

@@ -54,3 +54,3 @@ "use strict";

var internalConsole = require("./internalConsole").internalConsole;
var operationsDoc = "mutation CreatePersistedQueryMutation(\n $nfToken: String!\n $appId: String!\n $query: String!\n $tags: [String!]!\n $description: String!\n)\n@netlify(\n id: \"\"\"\n 12b5bdea-9bab-4124-a731-5e697b155001\n \"\"\"\n doc: \"\"\"\nCreate a persisted operations doc to be later retrieved, usually from a GUI\n \"\"\"\n) {\n oneGraph(\n auths: { netlifyAuth: { oauthToken: $nfToken } }\n ) {\n createPersistedQuery(\n input: {\n query: $query\n appId: $appId\n tags: $tags\n description: $description\n }\n ) {\n persistedQuery {\n id\n }\n }\n }\n}\n\nquery ListPersistedQueries(\n $appId: String!\n $first: Int!\n $after: String\n $tags: [String!]!\n)\n@netlify(\n id: \"\"\"\n 12b5bdea-9bab-4124-a731-5e697b155002\n \"\"\"\n doc: \"\"\"\n\n \"\"\"\n) {\n oneGraph {\n app(id: $appId) {\n id\n persistedQueries(\n first: $first\n after: $after\n tags: $tags\n ) {\n pageInfo {\n hasNextPage\n endCursor\n }\n nodes {\n id\n query\n fixedVariables\n freeVariables\n allowedOperationNames\n tags\n description\n }\n }\n }\n }\n}\n\nquery PersistedQueriesQuery(\n $nfToken: String!\n $appId: String!\n)\n@netlify(\n id: \"\"\"\n 12b5bdea-9bab-4124-a731-5e697b155004\n \"\"\"\n doc: \"\"\"\n\n \"\"\"\n) {\n oneGraph(\n auths: { netlifyAuth: { oauthToken: $nfToken } }\n ) {\n app(id: $appId) {\n persistedQueries {\n nodes {\n id\n query\n allowedOperationNames\n description\n freeVariables\n fixedVariables\n tags\n }\n }\n }\n }\n}\n\nquery PersistedQueryQuery(\n $nfToken: String!\n $appId: String!\n $id: String!\n)\n@netlify(\n id: \"\"\"\n 12b5bdea-9bab-4124-a731-5e697b155005\n \"\"\"\n doc: \"\"\"\nFetch a persisted doc belonging to appId by its id\n \"\"\"\n) {\n oneGraph(\n auths: { netlifyAuth: { oauthToken: $nfToken } }\n ) {\n persistedQuery(appId: $appId, id: $id) {\n id\n query\n allowedOperationNames\n description\n freeVariables\n fixedVariables\n tags\n }\n }\n}\n\nmutation CreateCLISessionMutation(\n $nfToken: String!\n $appId: String!\n $name: String!\n $metadata: JSON\n)\n@netlify(\n id: \"\"\"\n 12b5bdea-9bab-4124-a731-5e697b155006\n \"\"\"\n doc: \"\"\"\nRegister a new CLI session with OneGraph\n \"\"\"\n) {\n oneGraph(\n auths: { netlifyAuth: { oauthToken: $nfToken } }\n ) {\n createNetlifyCliSession(\n input: {\n appId: $appId\n name: $name\n metadata: $metadata\n }\n ) {\n session {\n id\n appId\n netlifyUserId\n name\n }\n }\n }\n}\n\nmutation UpdateCLISessionMetadataMutation(\n $nfToken: String!\n $sessionId: String!\n $metadata: JSON!\n)\n@netlify(\n id: \"\"\"\n 12b5bdea-9bab-4124-a731-5e697b155007\n \"\"\"\n doc: \"\"\"\nUpdate the CLI session with new metadata (e.g. the latest docId) by its id\n \"\"\"\n) {\n oneGraph(\n auths: { netlifyAuth: { oauthToken: $nfToken } }\n ) {\n updateNetlifyCliSession(\n input: { id: $sessionId, metadata: $metadata }\n ) {\n session {\n id\n name\n metadata\n }\n }\n }\n}\n\nmutation CreateCLISessionEventMutation(\n $nfToken: String!\n $sessionId: String!\n $payload: JSON!\n)\n@netlify(\n id: \"\"\"\n 12b5bdea-9bab-4124-a731-5e697b155008\n \"\"\"\n doc: \"\"\"\n\n \"\"\"\n) {\n oneGraph(\n auths: { netlifyAuth: { oauthToken: $nfToken } }\n ) {\n createNetlifyCliTestEvent(\n input: {\n data: { payload: $payload }\n sessionId: $sessionId\n }\n ) {\n event {\n id\n createdAt\n sessionId\n }\n }\n }\n}\n\nquery CLISessionQuery(\n $nfToken: String!\n $sessionId: String!\n $first: Int!\n)\n@netlify(\n id: \"\"\"\n 12b5bdea-9bab-4124-a731-5e697b155009\n \"\"\"\n doc: \"\"\"\n\n \"\"\"\n) {\n oneGraph(\n auths: { netlifyAuth: { oauthToken: $nfToken } }\n ) {\n __typename\n netlifyCliSession(id: $sessionId) {\n appId\n createdAt\n id\n events(first: $first) {\n __typename\n createdAt\n id\n sessionId\n ... on OneGraphNetlifyCliSessionLogEvent {\n id\n message\n sessionId\n createdAt\n }\n ... on OneGraphNetlifyCliSessionTestEvent {\n id\n createdAt\n payload\n sessionId\n }\n }\n lastEventAt\n metadata\n name\n netlifyUserId\n }\n }\n}\n\nmutation AckCLISessionEventMutation(\n $nfToken: String!\n $sessionId: String!\n $eventIds: [String!]!\n)\n@netlify(\n id: \"\"\"\n 12b5bdea-9bab-4124-a731-5e697b155010\n \"\"\"\n doc: \"\"\"\nAcknowledge CLI events that have been processed and delete them from the upstream queue\n \"\"\"\n) {\n oneGraph(\n auths: { netlifyAuth: { oauthToken: $nfToken } }\n ) {\n ackNetlifyCliEvents(\n input: { eventIds: $eventIds, sessionId: $sessionId }\n ) {\n events {\n id\n }\n }\n }\n}\n\nquery AppSchemaQuery($nfToken: String!, $appId: String!)\n@netlify(\n id: \"\"\"\n 12b5bdea-9bab-4124-a731-5e697b155011\n \"\"\"\n doc: \"\"\"\nFetch the schema metadata for a site (enabled services, id, etc.)\n \"\"\"\n) {\n oneGraph(\n auths: { netlifyAuth: { oauthToken: $nfToken } }\n ) {\n app(id: $appId) {\n graphQLSchema {\n appId\n createdAt\n id\n services {\n friendlyServiceName\n logoUrl\n service\n slug\n supportsCustomRedirectUri\n supportsCustomServiceAuth\n supportsOauthLogin\n }\n updatedAt\n }\n }\n }\n}\n\nmutation UpsertAppForSiteMutation(\n $nfToken: String!\n $siteId: String!\n)\n@netlify(\n id: \"\"\"\n 12b5bdea-9bab-4124-a731-5e697b155012\n \"\"\"\n doc: \"\"\"\nIf a site does not exists upstream in OneGraph for the given site, create it\n \"\"\"\n) {\n oneGraph(\n auths: { netlifyAuth: { oauthToken: $nfToken } }\n ) {\n upsertAppForNetlifySite(\n input: { netlifySiteId: $siteId }\n ) {\n org {\n id\n name\n }\n app {\n id\n name\n corsOrigins\n customCorsOrigins {\n friendlyServiceName\n displayName\n encodedValue\n }\n }\n }\n }\n}\n\nmutation CreateNewSchemaMutation(\n $nfToken: String!\n $input: OneGraphCreateGraphQLSchemaInput!\n)\n@netlify(\n id: \"\"\"\n 12b5bdea-9bab-4124-a731-5e697b155013\n \"\"\"\n doc: \"\"\"\nCreate a new schema in OneGraph for the given site with the specified metadata (enabled services, etc.)\n \"\"\"\n) {\n oneGraph(\n auths: { netlifyAuth: { oauthToken: $nfToken } }\n ) {\n createGraphQLSchema(input: $input) {\n app {\n graphQLSchema {\n id\n }\n }\n graphqlSchema {\n id\n services {\n friendlyServiceName\n logoUrl\n service\n slug\n supportsCustomRedirectUri\n supportsCustomServiceAuth\n supportsOauthLogin\n }\n }\n }\n }\n}\n\n# Resurrect a session / update heartbeat\nmutation MarkCLISessionActiveHeartbeat(\n $nfToken: String!\n $id: String!\n)\n@netlify(\n id: \"\"\"\n 12b5bdea-9bab-4124-a731-5e697b155014\n \"\"\"\n doc: \"\"\"\nMark a CLI session as active and update the session's heartbeat\n \"\"\"\n) {\n oneGraph(\n auths: { netlifyAuth: { oauthToken: $nfToken } }\n ) {\n updateNetlifyCliSession(\n input: { status: ACTIVE, id: $id }\n ) {\n session {\n id\n status\n createdAt\n updatedAt\n }\n }\n }\n}\n\n# Mutation to mark the session as inactive. Can be called when the CLI exits\nmutation MarkCLISessionInactive(\n $nfToken: String!\n $id: String!\n)\n@netlify(\n id: \"\"\"\n 12b5bdea-9bab-4124-a731-5e697b155015\n \"\"\"\n doc: \"\"\"\nMark a CLI session as inactive\n \"\"\"\n) {\n oneGraph(\n auths: { netlifyAuth: { oauthToken: $nfToken } }\n ) {\n updateNetlifyCliSession(\n input: { status: INACTIVE, id: $id }\n ) {\n session {\n id\n status\n createdAt\n updatedAt\n }\n }\n }\n}";
var operationsDoc = "mutation CreatePersistedQueryMutation(\n $nfToken: String!\n $appId: String!\n $query: String!\n $tags: [String!]!\n $description: String!\n)\n@netlify(\n id: \"\"\"\n 12b5bdea-9bab-4124-a731-5e697b155001\n \"\"\"\n doc: \"\"\"\nCreate a persisted operations doc to be later retrieved, usually from a GUI\n \"\"\"\n) {\n oneGraph(\n auths: { netlifyAuth: { oauthToken: $nfToken } }\n ) {\n createPersistedQuery(\n input: {\n query: $query\n appId: $appId\n tags: $tags\n description: $description\n }\n ) {\n persistedQuery {\n id\n }\n }\n }\n}\n\nquery ListPersistedQueries(\n $appId: String!\n $first: Int!\n $after: String\n $tags: [String!]!\n)\n@netlify(\n id: \"\"\"\n 12b5bdea-9bab-4124-a731-5e697b155002\n \"\"\"\n doc: \"\"\"\n\n \"\"\"\n) {\n oneGraph {\n app(id: $appId) {\n id\n persistedQueries(\n first: $first\n after: $after\n tags: $tags\n ) {\n pageInfo {\n hasNextPage\n endCursor\n }\n nodes {\n id\n query\n fixedVariables\n freeVariables\n allowedOperationNames\n tags\n description\n }\n }\n }\n }\n}\n\nquery PersistedQueriesQuery(\n $nfToken: String!\n $appId: String!\n)\n@netlify(\n id: \"\"\"\n 12b5bdea-9bab-4124-a731-5e697b155004\n \"\"\"\n doc: \"\"\"\n\n \"\"\"\n) {\n oneGraph(\n auths: { netlifyAuth: { oauthToken: $nfToken } }\n ) {\n app(id: $appId) {\n persistedQueries {\n nodes {\n id\n query\n allowedOperationNames\n description\n freeVariables\n fixedVariables\n tags\n }\n }\n }\n }\n}\n\nquery PersistedQueryQuery(\n $nfToken: String!\n $appId: String!\n $id: String!\n)\n@netlify(\n id: \"\"\"\n 12b5bdea-9bab-4124-a731-5e697b155005\n \"\"\"\n doc: \"\"\"\nFetch a persisted doc belonging to appId by its id\n \"\"\"\n) {\n oneGraph(\n auths: { netlifyAuth: { oauthToken: $nfToken } }\n ) {\n persistedQuery(appId: $appId, id: $id) {\n id\n query\n allowedOperationNames\n description\n freeVariables\n fixedVariables\n tags\n }\n }\n}\n\nmutation CreateCLISessionMutation(\n $nfToken: String!\n $appId: String!\n $name: String!\n $metadata: JSON\n)\n@netlify(\n id: \"\"\"\n 12b5bdea-9bab-4124-a731-5e697b155006\n \"\"\"\n doc: \"\"\"\nRegister a new CLI session with OneGraph\n \"\"\"\n) {\n oneGraph(\n auths: { netlifyAuth: { oauthToken: $nfToken } }\n ) {\n createNetlifyCliSession(\n input: {\n appId: $appId\n name: $name\n metadata: $metadata\n }\n ) {\n session {\n id\n appId\n netlifyUserId\n name\n cliHeartbeatIntervalMs\n }\n }\n }\n}\n\nmutation UpdateCLISessionMetadataMutation(\n $nfToken: String!\n $sessionId: String!\n $metadata: JSON!\n)\n@netlify(\n id: \"\"\"\n 12b5bdea-9bab-4124-a731-5e697b155007\n \"\"\"\n doc: \"\"\"\nUpdate the CLI session with new metadata (e.g. the latest docId) by its id\n \"\"\"\n) {\n oneGraph(\n auths: { netlifyAuth: { oauthToken: $nfToken } }\n ) {\n updateNetlifyCliSession(\n input: { id: $sessionId, metadata: $metadata }\n ) {\n session {\n id\n name\n metadata\n cliHeartbeatIntervalMs\n }\n }\n }\n}\n\nmutation CreateCLISessionEventMutation(\n $nfToken: String!\n $sessionId: String!\n $payload: JSON!\n)\n@netlify(\n id: \"\"\"\n 12b5bdea-9bab-4124-a731-5e697b155008\n \"\"\"\n doc: \"\"\"\n\n \"\"\"\n) {\n oneGraph(\n auths: { netlifyAuth: { oauthToken: $nfToken } }\n ) {\n createNetlifyCliTestEvent(\n input: {\n data: { payload: $payload }\n sessionId: $sessionId\n }\n ) {\n event {\n id\n createdAt\n sessionId\n }\n }\n }\n}\n\nquery CLISessionQuery(\n $nfToken: String!\n $sessionId: String!\n $first: Int!\n)\n@netlify(\n id: \"\"\"\n 12b5bdea-9bab-4124-a731-5e697b155009\n \"\"\"\n doc: \"\"\"\n\n \"\"\"\n) {\n oneGraph(\n auths: { netlifyAuth: { oauthToken: $nfToken } }\n ) {\n __typename\n netlifyCliSession(id: $sessionId) {\n appId\n createdAt\n id\n cliHeartbeatIntervalMs\n events(first: $first) {\n __typename\n createdAt\n id\n sessionId\n ... on OneGraphNetlifyCliSessionLogEvent {\n id\n message\n sessionId\n createdAt\n }\n ... on OneGraphNetlifyCliSessionTestEvent {\n id\n createdAt\n payload\n sessionId\n }\n }\n lastEventAt\n metadata\n name\n netlifyUserId\n }\n }\n}\n\nmutation AckCLISessionEventMutation(\n $nfToken: String!\n $sessionId: String!\n $eventIds: [String!]!\n)\n@netlify(\n id: \"\"\"\n 12b5bdea-9bab-4124-a731-5e697b155010\n \"\"\"\n doc: \"\"\"\nAcknowledge CLI events that have been processed and delete them from the upstream queue\n \"\"\"\n) {\n oneGraph(\n auths: { netlifyAuth: { oauthToken: $nfToken } }\n ) {\n ackNetlifyCliEvents(\n input: { eventIds: $eventIds, sessionId: $sessionId }\n ) {\n events {\n id\n }\n }\n }\n}\n\nquery AppSchemaQuery($nfToken: String!, $appId: String!)\n@netlify(\n id: \"\"\"\n 12b5bdea-9bab-4124-a731-5e697b155011\n \"\"\"\n doc: \"\"\"\nFetch the schema metadata for a site (enabled services, id, etc.)\n \"\"\"\n) {\n oneGraph(\n auths: { netlifyAuth: { oauthToken: $nfToken } }\n ) {\n app(id: $appId) {\n graphQLSchema {\n appId\n createdAt\n id\n services {\n friendlyServiceName\n logoUrl\n service\n slug\n supportsCustomRedirectUri\n supportsCustomServiceAuth\n supportsOauthLogin\n }\n updatedAt\n }\n }\n }\n}\n\nmutation UpsertAppForSiteMutation(\n $nfToken: String!\n $siteId: String!\n)\n@netlify(\n id: \"\"\"\n 12b5bdea-9bab-4124-a731-5e697b155012\n \"\"\"\n doc: \"\"\"\nIf a site does not exists upstream in OneGraph for the given site, create it\n \"\"\"\n) {\n oneGraph(\n auths: { netlifyAuth: { oauthToken: $nfToken } }\n ) {\n upsertAppForNetlifySite(\n input: { netlifySiteId: $siteId }\n ) {\n org {\n id\n name\n }\n app {\n id\n name\n corsOrigins\n customCorsOrigins {\n friendlyServiceName\n displayName\n encodedValue\n }\n }\n }\n }\n}\n\nmutation CreateNewSchemaMutation(\n $nfToken: String!\n $input: OneGraphCreateGraphQLSchemaInput!\n)\n@netlify(\n id: \"\"\"\n 12b5bdea-9bab-4124-a731-5e697b155013\n \"\"\"\n doc: \"\"\"\nCreate a new schema in OneGraph for the given site with the specified metadata (enabled services, etc.)\n \"\"\"\n) {\n oneGraph(\n auths: { netlifyAuth: { oauthToken: $nfToken } }\n ) {\n createGraphQLSchema(input: $input) {\n app {\n graphQLSchema {\n id\n }\n }\n graphqlSchema {\n id\n services {\n friendlyServiceName\n logoUrl\n service\n slug\n supportsCustomRedirectUri\n supportsCustomServiceAuth\n supportsOauthLogin\n }\n }\n }\n }\n}\n\n# Resurrect a session / update heartbeat\nmutation MarkCLISessionActiveHeartbeat(\n $nfToken: String!\n $id: String!\n)\n@netlify(\n id: \"\"\"\n 12b5bdea-9bab-4124-a731-5e697b155014\n \"\"\"\n doc: \"\"\"\nMark a CLI session as active and update the session's heartbeat\n \"\"\"\n) {\n oneGraph(\n auths: { netlifyAuth: { oauthToken: $nfToken } }\n ) {\n updateNetlifyCliSession(\n input: { status: ACTIVE, id: $id }\n ) {\n session {\n id\n status\n createdAt\n updatedAt\n cliHeartbeatIntervalMs\n }\n }\n }\n}\n\n# Mutation to mark the session as inactive. Can be called when the CLI exits\nmutation MarkCLISessionInactive(\n $nfToken: String!\n $id: String!\n)\n@netlify(\n id: \"\"\"\n 12b5bdea-9bab-4124-a731-5e697b155015\n \"\"\"\n doc: \"\"\"\nMark a CLI session as inactive\n \"\"\"\n) {\n oneGraph(\n auths: { netlifyAuth: { oauthToken: $nfToken } }\n ) {\n updateNetlifyCliSession(\n input: { status: INACTIVE, id: $id }\n ) {\n session {\n id\n status\n createdAt\n updatedAt\n cliHeartbeatIntervalMs\n }\n }\n }\n}";
var httpFetch = function (siteId, options) {

@@ -70,3 +70,2 @@ var reqBody = options.body || null;

return fetch(url, reqOptions).then(function (response) {
console.log("respStatus:", response.status);
if (response.status < httpOkLow || response.status > httpOkHigh) {

@@ -76,5 +75,3 @@ internalConsole.debug("Response: " + JSON.stringify(respBody, null, 2));

}
var respBody = response.text();
console.log("RespBody:", JSON.stringify(respBody, null, 2));
return respBody;
return response.text();
});

@@ -84,3 +81,3 @@ };

return __awaiter(this, void 0, void 0, function () {
var query, operationName, variables, options, accessToken, siteId, payload, result, networkError_1;
var query, operationName, variables, options, accessToken, siteId, payload, responseText, result, networkError_1;
return __generator(this, function (_a) {

@@ -100,2 +97,5 @@ switch (_a.label) {

};
if (!options.siteId) {
internalConsole.warn("No siteId provided");
}
_a.label = 1;

@@ -112,9 +112,11 @@ case 1:

case 2:
result = _a.sent();
if (value.errors) {
internalConsole.warn("Errors seen fetching Netlify Graph upstream for " + operationName + ": " + JSON.stringify(value.errors, null, 2));
responseText = _a.sent();
result = JSON.parse(responseText);
if (result.errors) {
internalConsole.warn("Errors seen fetching Netlify Graph upstream for " + operationName + ": " + JSON.stringify(result.errors, null, 2));
}
return [2 /*return*/, JSON.parse(result)];
return [2 /*return*/, result];
case 3:
networkError_1 = _a.sent();
console.warn("Network error:", networkError_1);
internalConsole.warn("Network error fetching Netlify Graph upstream: " + JSON.stringify(networkError_1, null, 2));

@@ -121,0 +123,0 @@ return [2 /*return*/, {}];

@@ -50,2 +50,3 @@ import type { CreateNewSchemaMutationInput } from "./generatedOneGraphClient";

id: string;
cliHeartbeatIntervalMs: number;
events: {

@@ -92,2 +93,3 @@ createdAt: string;

name: string;
cliHeartbeatIntervalMs: number;
}>;

@@ -106,2 +108,3 @@ /**

metadata: unknown;
cliHeartbeatIntervalMs: number;
}>;

@@ -248,2 +251,3 @@ /**

updatedAt: string;
cliHeartbeatIntervalMs: number;
};

@@ -265,4 +269,5 @@ }>;

updatedAt: string;
cliHeartbeatIntervalMs: number;
};
}>;
export {};

@@ -136,3 +136,3 @@ "use strict";

var fetchCliSession = function (options) { return __awaiter(void 0, void 0, void 0, function () {
var appId, authToken, sessionId, desiredEventCount, next, session;
var appId, authToken, sessionId, desiredEventCount, sessionResult, session;
var _a, _b;

@@ -152,5 +152,5 @@ return __generator(this, function (_c) {

case 1:
next = _c.sent();
session = ((_b = (_a = next.data) === null || _a === void 0 ? void 0 : _a.oneGraph) === null || _b === void 0 ? void 0 : _b.netlifyCliSession) || [];
return [2 /*return*/, { session: session, errors: next.errors }];
sessionResult = _c.sent();
session = ((_b = (_a = sessionResult.data) === null || _a === void 0 ? void 0 : _a.oneGraph) === null || _b === void 0 ? void 0 : _b.netlifyCliSession) || [];
return [2 /*return*/, { session: session, errors: sessionResult.errors }];
}

@@ -184,7 +184,4 @@ });

next = _b.sent();
if (next.errors) {
return [2 /*return*/, next];
}
events = ((_a = next.session) === null || _a === void 0 ? void 0 : _a.events) || [];
return [2 /*return*/, { events: events }];
return [2 /*return*/, { errors: next.errors, events: events }];
}

@@ -350,13 +347,10 @@ });

switch (_d.label) {
case 0:
console.log("Fetching app schema");
return [4 /*yield*/, generatedOneGraphClient_1.default.fetchAppSchemaQuery({
nfToken: authToken,
appId: siteId,
}, {
siteId: siteId,
})];
case 0: return [4 /*yield*/, generatedOneGraphClient_1.default.fetchAppSchemaQuery({
nfToken: authToken,
appId: siteId,
}, {
siteId: siteId,
})];
case 1:
result = _d.sent();
console.log("result", result);
return [2 /*return*/, (_c = (_b = (_a = result.data) === null || _a === void 0 ? void 0 : _a.oneGraph) === null || _b === void 0 ? void 0 : _b.app) === null || _c === void 0 ? void 0 : _c.graphQLSchema];

@@ -429,2 +423,4 @@ }

siteId: siteId,
}, {
siteId: ONEDASH_APP_ID,
})];

@@ -437,2 +433,4 @@ case 1:

appId: appId,
}, {
siteId: appId,
})];

@@ -450,2 +448,4 @@ case 2:

},
}, {
siteId: appId,
})];

@@ -471,11 +471,10 @@ case 3:

switch (_e.label) {
case 0:
console.log("Fetching enabled services");
return [4 /*yield*/, generatedOneGraphClient_1.default.fetchAppSchemaQuery({
nfToken: authToken,
appId: appId,
})];
case 0: return [4 /*yield*/, generatedOneGraphClient_1.default.fetchAppSchemaQuery({
nfToken: authToken,
appId: appId,
}, {
siteId: appId,
})];
case 1:
appSchemaResult = _e.sent();
console.log("appSchemaResult", appSchemaResult);
return [2 /*return*/, (_d = (_c = (_b = (_a = appSchemaResult.data) === null || _a === void 0 ? void 0 : _a.oneGraph) === null || _b === void 0 ? void 0 : _b.app) === null || _c === void 0 ? void 0 : _c.graphQLSchema) === null || _d === void 0 ? void 0 : _d.services];

@@ -482,0 +481,0 @@ }

{
"name": "netlify-onegraph-internal",
"version": "0.0.49",
"version": "0.0.50",
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc