Skip to content

Commit 57f2c6a

Browse files
scaleway-botyfodil
andauthored
feat(qaas): add booking req param (#2430)
Co-authored-by: Yacine Fodil <[email protected]>
1 parent dec421b commit 57f2c6a

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,10 +140,13 @@ const unmarshalPlatformBookingRequirement = (
140140
}
141141

142142
return {
143+
maxBookingPerDay: data.max_booking_per_day,
144+
maxBookingPerWeek: data.max_booking_per_week,
143145
maxCancellationDuration: data.max_cancellation_duration,
144146
maxDuration: data.max_duration,
145147
maxPlanificationDuration: data.max_planification_duration,
146148
minDuration: data.min_duration,
149+
minPlanificationDuration: data.min_planification_duration,
147150
} as PlatformBookingRequirement
148151
}
149152

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,18 @@ export interface PlatformBookingRequirement {
150150
* Allowed planification time from now where the platform can be booked in the future.
151151
*/
152152
maxPlanificationDuration?: string
153+
/**
154+
* Minimum planification time before a platform can be booked.
155+
*/
156+
minPlanificationDuration?: string
157+
/**
158+
* Maximum amount of booking allowed for one organization per week.
159+
*/
160+
maxBookingPerWeek: number
161+
/**
162+
* Maximum amount of booking allowed for one organization per day.
163+
*/
164+
maxBookingPerDay: number
153165
}
154166

155167
export interface PlatformHardware {

0 commit comments

Comments
 (0)