Skip to content
This repository was archived by the owner on Jul 23, 2025. It is now read-only.

Commit 8e01357

Browse files
committed
chore: merge branch 'main' into beta
2 parents da27e96 + 30bb855 commit 8e01357

File tree

102 files changed

+3382
-175
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+3382
-175
lines changed

CHANGELOG.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<<<<<<< HEAD
12
# [2.0.0-beta.9](https://github.com/paambaati/neon-js-sdk/compare/v2.0.0-beta.8...v2.0.0-beta.9) (2024-08-08)
23

34

@@ -89,6 +90,62 @@
8990

9091
* move to @hey-api/openapi-ts, as openapi-typescript-codegen is being deprecated
9192

93+
||||||| e7dd037
94+
=======
95+
# [1.30.0](https://github.com/paambaati/neon-js-sdk/compare/v1.29.2...v1.30.0) (2025-02-28)
96+
97+
98+
### Features
99+
100+
* update to track latest spec changes ([d4fc052](https://github.com/paambaati/neon-js-sdk/commit/d4fc052897fca06c76dafd61e4b893df8986faf8))
101+
* update to track latest spec changes ([b7ce7d4](https://github.com/paambaati/neon-js-sdk/commit/b7ce7d45751da368c1e02b27c6db6c7f6856474c))
102+
103+
## [1.29.2](https://github.com/paambaati/neon-js-sdk/compare/v1.29.1...v1.29.2) (2025-02-19)
104+
105+
106+
### Bug Fixes
107+
108+
* **ci:** revert dry run logic ([686c6e6](https://github.com/paambaati/neon-js-sdk/commit/686c6e627c31f872dae8c0cd6feaa1e31d568aab))
109+
110+
## [1.29.1](https://github.com/paambaati/neon-js-sdk/compare/v1.29.0...v1.29.1) (2025-02-19)
111+
112+
113+
### Bug Fixes
114+
115+
* **ci:** rename workflow YAML to fix provenance problems ([032f643](https://github.com/paambaati/neon-js-sdk/commit/032f6431022b036d7f90d82a7320781faf4aa32e))
116+
117+
# [1.29.0](https://github.com/paambaati/neon-js-sdk/compare/v1.28.0...v1.29.0) (2025-02-18)
118+
119+
120+
### Features
121+
122+
* update to track latest spec changes ([373a795](https://github.com/paambaati/neon-js-sdk/commit/373a79549bae8d04217c38c8c95025ee6fd76012))
123+
* update to track latest spec changes ([7ada7b1](https://github.com/paambaati/neon-js-sdk/commit/7ada7b1e5213351caa69fc1ad64db1e5cf199d09))
124+
125+
# [1.28.0](https://github.com/paambaati/neon-js-sdk/compare/v1.27.1...v1.28.0) (2025-01-29)
126+
127+
128+
### Features
129+
130+
* update to track latest spec changes ([26c1a7d](https://github.com/paambaati/neon-js-sdk/commit/26c1a7d3ef904205d6a2202a663670801137516e))
131+
* update to track latest spec changes ([d71b720](https://github.com/paambaati/neon-js-sdk/commit/d71b7205fa8d2d9502b1bc77b373f92be67b7157))
132+
133+
## [1.27.1](https://github.com/paambaati/neon-js-sdk/compare/v1.27.0...v1.27.1) (2024-09-23)
134+
135+
136+
### Bug Fixes
137+
138+
* fix package.json exports ([ce5dc9e](https://github.com/paambaati/neon-js-sdk/commit/ce5dc9ec544d4cc0f64813861d7480bd428a80e8))
139+
140+
# [1.27.0](https://github.com/paambaati/neon-js-sdk/compare/v1.26.0...v1.27.0) (2024-09-23)
141+
142+
143+
### Features
144+
145+
* update to track latest spec changes ([68810e4](https://github.com/paambaati/neon-js-sdk/commit/68810e429c06ebff789d1da3caaf1c6a019a9131))
146+
* update to track latest spec changes ([bbb16e0](https://github.com/paambaati/neon-js-sdk/commit/bbb16e055035060fec8ec742ea9a283d656162b0))
147+
148+
>>>>>>> main
92149
# [1.26.0](https://github.com/paambaati/neon-js-sdk/compare/v1.25.0...v1.26.0) (2024-08-12)
93150

94151

generated/NeonClient.ts

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,95 @@ import type { BaseHttpRequest } from './core/BaseHttpRequest';
22
import type { OpenAPIConfig } from './core/OpenAPI';
33
import { Interceptors } from './core/OpenAPI';
44
import { FetchHttpRequest } from './core/FetchHttpRequest';
5+
<<<<<<< HEAD
6+
||||||| e7dd037
7+
import { ApiKeyService } from './services/ApiKeyService';
8+
import { BranchService } from './services/BranchService';
9+
import { ConsumptionService } from './services/ConsumptionService';
10+
import { EndpointService } from './services/EndpointService';
11+
import { OperationService } from './services/OperationService';
12+
import { ProjectService } from './services/ProjectService';
13+
import { UsersService } from './services/UsersService';
14+
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
15+
export class NeonClient {
16+
public readonly apiKey: ApiKeyService;
17+
public readonly branch: BranchService;
18+
public readonly consumption: ConsumptionService;
19+
public readonly endpoint: EndpointService;
20+
public readonly operation: OperationService;
21+
public readonly project: ProjectService;
22+
public readonly users: UsersService;
23+
public readonly request: BaseHttpRequest;
24+
constructor(config?: Partial<OpenAPIConfig>, HttpRequest: HttpRequestConstructor = FetchHttpRequest) {
25+
this.request = new HttpRequest({
26+
BASE: config?.BASE ?? 'https://console.neon.tech/api/v2',
27+
VERSION: config?.VERSION ?? '2',
28+
WITH_CREDENTIALS: config?.WITH_CREDENTIALS ?? false,
29+
CREDENTIALS: config?.CREDENTIALS ?? 'include',
30+
TOKEN: config?.TOKEN,
31+
USERNAME: config?.USERNAME,
32+
PASSWORD: config?.PASSWORD,
33+
HEADERS: config?.HEADERS,
34+
ENCODE_PATH: config?.ENCODE_PATH,
35+
});
36+
this.apiKey = new ApiKeyService(this.request);
37+
this.branch = new BranchService(this.request);
38+
this.consumption = new ConsumptionService(this.request);
39+
this.endpoint = new EndpointService(this.request);
40+
this.operation = new OperationService(this.request);
41+
this.project = new ProjectService(this.request);
42+
this.users = new UsersService(this.request);
43+
}
44+
}
45+
=======
46+
import { ApiKeyService } from './services/ApiKeyService';
47+
import { AuthService } from './services/AuthService';
48+
import { BranchService } from './services/BranchService';
49+
import { ConsumptionService } from './services/ConsumptionService';
50+
import { EndpointService } from './services/EndpointService';
51+
import { OperationService } from './services/OperationService';
52+
import { OrganizationsService } from './services/OrganizationsService';
53+
import { ProjectService } from './services/ProjectService';
54+
import { RegionService } from './services/RegionService';
55+
import { UsersService } from './services/UsersService';
56+
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
57+
export class NeonClient {
58+
public readonly apiKey: ApiKeyService;
59+
public readonly auth: AuthService;
60+
public readonly branch: BranchService;
61+
public readonly consumption: ConsumptionService;
62+
public readonly endpoint: EndpointService;
63+
public readonly operation: OperationService;
64+
public readonly organizations: OrganizationsService;
65+
public readonly project: ProjectService;
66+
public readonly region: RegionService;
67+
public readonly users: UsersService;
68+
public readonly request: BaseHttpRequest;
69+
constructor(config?: Partial<OpenAPIConfig>, HttpRequest: HttpRequestConstructor = FetchHttpRequest) {
70+
this.request = new HttpRequest({
71+
BASE: config?.BASE ?? 'https://console.neon.tech/api/v2',
72+
VERSION: config?.VERSION ?? '2',
73+
WITH_CREDENTIALS: config?.WITH_CREDENTIALS ?? false,
74+
CREDENTIALS: config?.CREDENTIALS ?? 'include',
75+
TOKEN: config?.TOKEN,
76+
USERNAME: config?.USERNAME,
77+
PASSWORD: config?.PASSWORD,
78+
HEADERS: config?.HEADERS,
79+
ENCODE_PATH: config?.ENCODE_PATH,
80+
});
81+
this.apiKey = new ApiKeyService(this.request);
82+
this.auth = new AuthService(this.request);
83+
this.branch = new BranchService(this.request);
84+
this.consumption = new ConsumptionService(this.request);
85+
this.endpoint = new EndpointService(this.request);
86+
this.operation = new OperationService(this.request);
87+
this.organizations = new OrganizationsService(this.request);
88+
this.project = new ProjectService(this.request);
89+
this.region = new RegionService(this.request);
90+
this.users = new UsersService(this.request);
91+
}
92+
}
93+
>>>>>>> main
594

695
import { ApiKeyService } from './services.gen';
796
import { AuthService } from './services.gen';

0 commit comments

Comments
 (0)