diff --git a/maas-schemas/package.json b/maas-schemas/package.json index 5806033bd..7af46cf81 100644 --- a/maas-schemas/package.json +++ b/maas-schemas/package.json @@ -1,6 +1,6 @@ { "name": "maas-schemas", - "version": "25.0.0", + "version": "26.0.0", "description": "Schemas for MaaS infrastructure", "main": "index.js", "engine": { diff --git a/maas-schemas/schemas/tsp/booking-update/request.json b/maas-schemas/schemas/tsp/booking-update/request.json index c6f4dc1f7..517214d79 100644 --- a/maas-schemas/schemas/tsp/booking-update/request.json +++ b/maas-schemas/schemas/tsp/booking-update/request.json @@ -7,7 +7,7 @@ "$ref": "https://schemas.maas.global/core/booking.json#/definitions/tspId" }, "state": { - "enum": ["RESERVED", "ACTIVATED", "ON_HOLD", "EXPIRED", "FINISHED"] + "enum": ["RESERVED", "ACTIVATED", "ON_HOLD", "EXPIRED", "FINISHED", "CANCELLED"] }, "configurator": { "$ref": "https://schemas.maas.global/core/components/configurator.json" diff --git a/maas-schemas/src/io-ts/_types/tsp/booking-update/request.ts b/maas-schemas/src/io-ts/_types/tsp/booking-update/request.ts index 94020491c..71497b61a 100644 --- a/maas-schemas/src/io-ts/_types/tsp/booking-update/request.ts +++ b/maas-schemas/src/io-ts/_types/tsp/booking-update/request.ts @@ -37,7 +37,7 @@ export const schemaId = 'https://schemas.maas.global/tsp/booking-update/request. export type Request = t.Branded< ({ tspId?: Booking_4353_.TspId; - state?: 'RESERVED' | 'ACTIVATED' | 'ON_HOLD' | 'EXPIRED' | 'FINISHED'; + state?: 'RESERVED' | 'ACTIVATED' | 'ON_HOLD' | 'EXPIRED' | 'FINISHED' | 'CANCELLED'; configurator?: Configurator_2e96_.Configurator; meta?: BookingMeta_c057_.BookingMeta; terms?: Booking_4353_.Terms; @@ -61,6 +61,7 @@ export type RequestC = t.BrandC< t.LiteralC<'ON_HOLD'>, t.LiteralC<'EXPIRED'>, t.LiteralC<'FINISHED'>, + t.LiteralC<'CANCELLED'>, ] >; configurator: typeof Configurator_2e96_.Configurator; @@ -89,6 +90,7 @@ export const Request: RequestC = t.brand( t.literal('ON_HOLD'), t.literal('EXPIRED'), t.literal('FINISHED'), + t.literal('CANCELLED'), ]), configurator: Configurator_2e96_.Configurator, meta: BookingMeta_c057_.BookingMeta, @@ -106,7 +108,7 @@ export const Request: RequestC = t.brand( ): x is t.Branded< ({ tspId?: Booking_4353_.TspId; - state?: 'RESERVED' | 'ACTIVATED' | 'ON_HOLD' | 'EXPIRED' | 'FINISHED'; + state?: 'RESERVED' | 'ACTIVATED' | 'ON_HOLD' | 'EXPIRED' | 'FINISHED' | 'CANCELLED'; configurator?: Configurator_2e96_.Configurator; meta?: BookingMeta_c057_.BookingMeta; terms?: Booking_4353_.Terms;