Skip to content

Commit 7ebd448

Browse files
feat(qaas): add tz for booking (#2522)
Co-authored-by: Mia-Cross <lmarabese@scaleway.com>
1 parent 14a52b1 commit 7ebd448

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

packages_generated/qaas/src/v1alpha1/marshalling.gen.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ export const unmarshalBooking = (data: unknown): Booking => {
8686
progressMessage: data.progress_message,
8787
startedAt: unmarshalDate(data.started_at),
8888
status: data.status,
89+
timeZone: data.time_zone,
8990
updatedAt: unmarshalDate(data.updated_at),
9091
} as Booking
9192
}
@@ -498,6 +499,7 @@ const marshalCreateSessionRequestBookingDemand = (
498499
description: request.description,
499500
finished_at: request.finishedAt,
500501
started_at: request.startedAt,
502+
time_zone: request.timeZone,
501503
})
502504

503505
export const marshalCreateSessionRequest = (

packages_generated/qaas/src/v1alpha1/types.gen.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ export interface CreateSessionRequestBookingDemand {
210210
startedAt?: Date
211211
finishedAt?: Date
212212
description?: string
213+
timeZone?: string
213214
}
214215

215216
export interface Application {
@@ -268,6 +269,10 @@ export interface Booking {
268269
* Any progress message of the booking.
269270
*/
270271
progressMessage: string
272+
/**
273+
* Time zone for the booking schedule, in tz database format (e.g. 'Europe/Paris').
274+
*/
275+
timeZone?: string
271276
}
272277

273278
export interface JobResult {

0 commit comments

Comments
 (0)