Skip to content

Commit 562ad70

Browse files
authored
Merge pull request #3 from carbon-aware/release-please--branches--main--changes--next--components--carbonaware-scheduler
release: 0.1.0-alpha.1
2 parents 02da568 + 8929e05 commit 562ad70

File tree

8 files changed

+23
-14
lines changed

8 files changed

+23
-14
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.0.1-alpha.1"
2+
".": "0.1.0-alpha.1"
33
}

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 4
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/carbonaware%2Fcarbonaware-3c6adaca66c464ed5889cd80410644286ccabc45a4aa312b14e74ce9ed982cc3.yml
3-
openapi_spec_hash: 3416de713fb29e7af4d58e0e4f1edb80
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/carbonaware%2Fcarbonaware-f4d64d241e11daf551b59e418b41f68005af5abc104a185c51c7db87ddc4a813.yml
3+
openapi_spec_hash: 843feec23c74a29d20757398aca9d27e
44
config_hash: c2163cfba017c0ca3eca9ad3b5103362

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## 0.1.0-alpha.1 (2025-05-13)
4+
5+
Full Changelog: [v0.0.1-alpha.1...v0.1.0-alpha.1](https://github.com/carbon-aware/scheduler-client-typescript/compare/v0.0.1-alpha.1...v0.1.0-alpha.1)
6+
7+
### Features
8+
9+
* **api:** manual updates ([d22ebec](https://github.com/carbon-aware/scheduler-client-typescript/commit/d22ebec49d856e92c9c9fe0022f9bf09fc232cee))
10+
311
## 0.0.1-alpha.1 (2025-05-13)
412

513
Full Changelog: [v0.0.1-alpha.0...v0.0.1-alpha.1](https://github.com/carbon-aware/scheduler-client-typescript/compare/v0.0.1-alpha.0...v0.0.1-alpha.1)

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const client = new CarbonawareScheduler();
2626

2727
async function main() {
2828
const schedule = await client.schedule.create({
29-
duration: 'duration',
29+
duration: 'PT1H',
3030
windows: [{ end: '2019-12-27T18:11:19.117Z', start: '2019-12-27T18:11:19.117Z' }],
3131
zones: [{ provider: 'aws', region: 'us-east-1' }],
3232
});
@@ -49,7 +49,7 @@ const client = new CarbonawareScheduler();
4949

5050
async function main() {
5151
const params: CarbonawareScheduler.ScheduleCreateParams = {
52-
duration: 'duration',
52+
duration: 'PT1H',
5353
windows: [{ end: '2019-12-27T18:11:19.117Z', start: '2019-12-27T18:11:19.117Z' }],
5454
zones: [{ provider: 'aws', region: 'us-east-1' }],
5555
};
@@ -72,7 +72,7 @@ a subclass of `APIError` will be thrown:
7272
async function main() {
7373
const schedule = await client.schedule
7474
.create({
75-
duration: 'duration',
75+
duration: 'PT1H',
7676
windows: [{ end: '2019-12-27T18:11:19.117Z', start: '2019-12-27T18:11:19.117Z' }],
7777
zones: [{ provider: 'aws', region: 'us-east-1' }],
7878
})
@@ -119,7 +119,7 @@ const client = new CarbonawareScheduler({
119119
});
120120

121121
// Or, configure per-request:
122-
await client.schedule.create({ duration: 'duration', windows: [{ end: '2019-12-27T18:11:19.117Z', start: '2019-12-27T18:11:19.117Z' }], zones: [{ provider: 'aws', region: 'us-east-1' }] }, {
122+
await client.schedule.create({ duration: 'PT1H', windows: [{ end: '2019-12-27T18:11:19.117Z', start: '2019-12-27T18:11:19.117Z' }], zones: [{ provider: 'aws', region: 'us-east-1' }] }, {
123123
maxRetries: 5,
124124
});
125125
```
@@ -136,7 +136,7 @@ const client = new CarbonawareScheduler({
136136
});
137137

138138
// Override per-request:
139-
await client.schedule.create({ duration: 'duration', windows: [{ end: '2019-12-27T18:11:19.117Z', start: '2019-12-27T18:11:19.117Z' }], zones: [{ provider: 'aws', region: 'us-east-1' }] }, {
139+
await client.schedule.create({ duration: 'PT1H', windows: [{ end: '2019-12-27T18:11:19.117Z', start: '2019-12-27T18:11:19.117Z' }], zones: [{ provider: 'aws', region: 'us-east-1' }] }, {
140140
timeout: 5 * 1000,
141141
});
142142
```
@@ -161,7 +161,7 @@ const client = new CarbonawareScheduler();
161161

162162
const response = await client.schedule
163163
.create({
164-
duration: 'duration',
164+
duration: 'PT1H',
165165
windows: [{ end: '2019-12-27T18:11:19.117Z', start: '2019-12-27T18:11:19.117Z' }],
166166
zones: [{ provider: 'aws', region: 'us-east-1' }],
167167
})
@@ -171,7 +171,7 @@ console.log(response.statusText); // access the underlying Response object
171171

172172
const { data: schedule, response: raw } = await client.schedule
173173
.create({
174-
duration: 'duration',
174+
duration: 'PT1H',
175175
windows: [{ end: '2019-12-27T18:11:19.117Z', start: '2019-12-27T18:11:19.117Z' }],
176176
zones: [{ provider: 'aws', region: 'us-east-1' }],
177177
})

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "carbonaware-scheduler",
3-
"version": "0.0.1-alpha.1",
3+
"version": "0.1.0-alpha.1",
44
"description": "The official TypeScript library for the Carbonaware Scheduler API",
55
"author": "Carbonaware Scheduler <>",
66
"types": "dist/index.d.ts",

src/resources/schedule.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export interface CloudZone {
2121
| 'us-west-1'
2222
| 'eu-central-1'
2323
| 'ap-southeast-2'
24+
| 'us-central1'
2425
| 'eastus'
2526
| 'eastus2'
2627
| 'southcentralus'

src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const VERSION = '0.0.1-alpha.1'; // x-release-please-version
1+
export const VERSION = '0.1.0-alpha.1'; // x-release-please-version

tests/api-resources/schedule.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ describe('resource schedule', () => {
1010
// skipped: tests are disabled for the time being
1111
test.skip('create: only required params', async () => {
1212
const responsePromise = client.schedule.create({
13-
duration: 'duration',
13+
duration: 'PT1H',
1414
windows: [{ end: '2019-12-27T18:11:19.117Z', start: '2019-12-27T18:11:19.117Z' }],
1515
zones: [{ provider: 'aws', region: 'us-east-1' }],
1616
});
@@ -26,7 +26,7 @@ describe('resource schedule', () => {
2626
// skipped: tests are disabled for the time being
2727
test.skip('create: required and optional params', async () => {
2828
const response = await client.schedule.create({
29-
duration: 'duration',
29+
duration: 'PT1H',
3030
windows: [{ end: '2019-12-27T18:11:19.117Z', start: '2019-12-27T18:11:19.117Z' }],
3131
zones: [{ provider: 'aws', region: 'us-east-1' }],
3232
num_options: 0,

0 commit comments

Comments
 (0)