Skip to content

Commit

Permalink
feat: update to track latest spec changes
Browse files Browse the repository at this point in the history
  • Loading branch information
paambaati committed Oct 6, 2024
1 parent b260c95 commit f453acb
Show file tree
Hide file tree
Showing 12 changed files with 28 additions and 45 deletions.
5 changes: 1 addition & 4 deletions generated/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,6 @@ export type { Member } from './models/Member';
export type { MemberRole } from './models/MemberRole';
export type { MemberUserInfo } from './models/MemberUserInfo';
export type { MemberWithUser } from './models/MemberWithUser';
export type { NotificationActionType } from './models/NotificationActionType';
export type { NotificationCategoryType } from './models/NotificationCategoryType';
export type { NotificationMetricType } from './models/NotificationMetricType';
export type { NotificationType } from './models/NotificationType';
export type { Operation } from './models/Operation';
export type { OperationAction } from './models/OperationAction';
export type { OperationResponse } from './models/OperationResponse';
Expand Down Expand Up @@ -130,6 +126,7 @@ export type { ProjectPermission } from './models/ProjectPermission';
export type { ProjectPermissions } from './models/ProjectPermissions';
export type { ProjectQuota } from './models/ProjectQuota';
export type { ProjectResponse } from './models/ProjectResponse';
export type { ProjectsApplicationsMapResponse } from './models/ProjectsApplicationsMapResponse';
export type { ProjectsConsumptionResponse } from './models/ProjectsConsumptionResponse';
export type { ProjectSettingsData } from './models/ProjectSettingsData';
export type { ProjectsResponse } from './models/ProjectsResponse';
Expand Down
2 changes: 1 addition & 1 deletion generated/models/BillingPaymentMethod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
* Indicates whether and how an account makes payments.
*
*/
export type BillingPaymentMethod = 'UNKNOWN' | 'none' | 'stripe' | 'direct_payment' | 'aws_mp' | 'vercel_mp' | 'staff' | 'trial' | 'sponsorship';
export type BillingPaymentMethod = 'UNKNOWN' | 'none' | 'stripe' | 'direct_payment' | 'aws_mp' | 'azure_mp' | 'vercel_mp' | 'staff' | 'trial' | 'sponsorship';
5 changes: 5 additions & 0 deletions generated/models/CurrentUserAuthAccount.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ import type { IdentityProviderId } from './IdentityProviderId';
export type CurrentUserAuthAccount = {
email: string;
image: string;
/**
* DEPRECATED. Use `email` field.
*
* @deprecated
*/
login: string;
name: string;
provider: IdentityProviderId;
Expand Down
5 changes: 5 additions & 0 deletions generated/models/CurrentUserInfoResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ export type CurrentUserInfoResponse = {
email: string;
id: string;
image: string;
/**
* DEPRECATED. Use `email` field.
*
* @deprecated
*/
login: string;
name: string;
last_name: string;
Expand Down
9 changes: 0 additions & 9 deletions generated/models/NotificationActionType.ts

This file was deleted.

9 changes: 0 additions & 9 deletions generated/models/NotificationCategoryType.ts

This file was deleted.

9 changes: 0 additions & 9 deletions generated/models/NotificationMetricType.ts

This file was deleted.

9 changes: 0 additions & 9 deletions generated/models/NotificationType.ts

This file was deleted.

12 changes: 12 additions & 0 deletions generated/models/ProjectsApplicationsMapResponse.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
/**
* A map where key is a project ID and a value is a list of available applications.
*
*/
export type ProjectsApplicationsMapResponse = {
applications: Record<string, Array<'vercel' | 'github' | 'datadog'>>;
};

3 changes: 0 additions & 3 deletions generated/services/BranchService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,6 @@ export class BranchService {
* Retrieves the schema from the specified database. The `lsn` and `timestamp` values cannot be specified at the same time. If both are omitted, the database schema is retrieved from database's head .
* @param projectId The Neon project ID
* @param branchId The branch ID
* @param role The role on whose behalf the schema is retrieved
* @param dbName Name of the database for which the schema is retrieved
* @param lsn The Log Sequence Number (LSN) for which the schema is retrieved
*
Expand All @@ -226,7 +225,6 @@ export class BranchService {
public getProjectBranchSchema(
projectId: string,
branchId: string,
role: string,
dbName: string,
lsn?: string,
timestamp?: string,
Expand All @@ -239,7 +237,6 @@ export class BranchService {
'branch_id': branchId,
},
query: {
'role': role,
'db_name': dbName,
'lsn': lsn,
'timestamp': timestamp,
Expand Down
2 changes: 2 additions & 0 deletions generated/services/ConsumptionService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ export class ConsumptionService {
* Get consumption metrics for each project
* Retrieves consumption metrics for Scale and Business plan projects. History begins at the time of upgrade.
* Available for Scale and Business plan users only.
* Issuing a call to this API does not wake a project's compute endpoint.
*
* @param from Specify the start `date-time` for the consumption period.
* The `date-time` value is rounded according to the specified `granularity`.
Expand Down Expand Up @@ -160,6 +161,7 @@ export class ConsumptionService {
* Get project consumption metrics
* 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).
* Issuing a call to this API does not wake a project's compute endpoint.
*
* @param cursor Specify the cursor value from the previous response to get the next batch of projects
* @param limit Specify a value from 1 to 1000 to limit number of projects in the response
Expand Down
3 changes: 2 additions & 1 deletion generated/services/ProjectService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import type { ProjectCreateRequest } from '../models/ProjectCreateRequest';
import type { ProjectPermission } from '../models/ProjectPermission';
import type { ProjectPermissions } from '../models/ProjectPermissions';
import type { ProjectResponse } from '../models/ProjectResponse';
import type { ProjectsApplicationsMapResponse } from '../models/ProjectsApplicationsMapResponse';
import type { ProjectsResponse } from '../models/ProjectsResponse';
import type { ProjectUpdateRequest } from '../models/ProjectUpdateRequest';
import type { RolesResponse } from '../models/RolesResponse';
Expand All @@ -41,7 +42,7 @@ export class ProjectService {
limit: number = 10,
search?: string,
orgId?: string,
): CancelablePromise<(ProjectsResponse & PaginationResponse) | GeneralError> {
): CancelablePromise<(ProjectsResponse & PaginationResponse & ProjectsApplicationsMapResponse) | GeneralError> {
return this.httpRequest.request({
method: 'GET',
url: '/projects',
Expand Down

0 comments on commit f453acb

Please sign in to comment.