🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@neondatabase/api-client

Package Overview
Dependencies
Maintainers
2
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@neondatabase/api-client - npm Package Compare versions

Comparing version

to
1.6.0

53

dist/api.gen.js

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.Api = exports.HttpClient = exports.ContentType = exports.SupportTicketSeverity = exports.IdentityProviderId = exports.MemberRole = exports.BillingSubscriptionType = exports.EndpointPoolerMode = exports.EndpointType = exports.EndpointState = exports.BranchState = exports.OperationStatus = exports.OperationAction = exports.Provisioner = void 0;
exports.Api = exports.HttpClient = exports.ContentType = exports.SupportTicketSeverity = exports.IdentityProviderId = exports.MemberRole = exports.BillingSubscriptionType = exports.EndpointPoolerMode = exports.EndpointType = exports.EndpointState = exports.BranchState = exports.ConsumptionHistoryGranularity = exports.OperationStatus = exports.OperationAction = exports.Provisioner = void 0;
/**

@@ -121,7 +121,17 @@ * The Neon compute provisioner.

(function (OperationStatus) {
OperationStatus["Scheduling"] = "scheduling";
OperationStatus["Running"] = "running";
OperationStatus["Finished"] = "finished";
OperationStatus["Failed"] = "failed";
OperationStatus["Scheduling"] = "scheduling";
OperationStatus["Error"] = "error";
OperationStatus["Cancelling"] = "cancelling";
OperationStatus["Cancelled"] = "cancelled";
OperationStatus["Skipped"] = "skipped";
})(OperationStatus = exports.OperationStatus || (exports.OperationStatus = {}));
var ConsumptionHistoryGranularity;
(function (ConsumptionHistoryGranularity) {
ConsumptionHistoryGranularity["Hourly"] = "hourly";
ConsumptionHistoryGranularity["Daily"] = "daily";
ConsumptionHistoryGranularity["Monthly"] = "monthly";
})(ConsumptionHistoryGranularity = exports.ConsumptionHistoryGranularity || (exports.ConsumptionHistoryGranularity = {}));
/** The branch state */

@@ -821,2 +831,41 @@ var BranchState;

/**
* @description Restart the specified compute endpoint: suspend immediately followed by start operations. You can obtain a `project_id` by listing the projects for your Neon account. You can obtain an `endpoint_id` by listing your project's compute endpoints. An `endpoint_id` has an `ep-` prefix. For information about compute endpoints, see [Manage computes](https://neon.tech/docs/manage/endpoints/).
*
* @tags Endpoint
* @name RestartProjectEndpoint
* @summary Restart a compute endpoint
* @request POST:/projects/{project_id}/endpoints/{endpoint_id}/restart
* @secure
*/
_this.restartProjectEndpoint = function (projectId, endpointId, params) {
if (params === void 0) { params = {}; }
return _this.request(__assign({ path: "/projects/".concat(encodeURIComponent(projectId), "/endpoints/").concat(encodeURIComponent(endpointId), "/restart"), method: 'POST', secure: true, format: 'json' }, params));
};
/**
* @description Retrieves consumption metrics for Scale plan accounts. History begins at the time of upgrade. Available for Scale plan users only.
*
* @tags Consumption
* @name GetConsumptionHistoryPerAccount
* @summary Get account consumption metrics
* @request GET:/consumption_history/account
* @secure
*/
_this.getConsumptionHistoryPerAccount = function (query, params) {
if (params === void 0) { params = {}; }
return _this.request(__assign({ path: "/consumption_history/account", method: 'GET', query: query, secure: true, format: 'json' }, params));
};
/**
* @description Retrieves consumption metrics for Scale plan projects. History begins at the time of upgrade. Available for Scale plan users only.
*
* @tags Consumption
* @name GetConsumptionHistoryPerProject
* @summary Get consumption metrics for each project
* @request GET:/consumption_history/projects
* @secure
*/
_this.getConsumptionHistoryPerProject = function (query, params) {
if (params === void 0) { params = {}; }
return _this.request(__assign({ path: "/consumption_history/projects", method: 'GET', query: query, secure: true, format: 'json' }, params));
};
/**
* @description Retrieves consumption metrics for each project for the current billing period. For usage information, see [Retrieving metrics for all projects](https://neon.tech/docs/guides/partner-billing#retrieving-metrics-for-all-projects).

@@ -823,0 +872,0 @@ *

2

package.json
{
"name": "@neondatabase/api-client",
"version": "1.5.0",
"version": "1.6.0",
"description": "Wrapper for Neon API",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet