Skip to content

Commit

Permalink
Add cancel operation to update endpoint.
Browse files Browse the repository at this point in the history
  • Loading branch information
marcinkv committed Aug 15, 2024
1 parent e27943b commit 05c03a9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion maas-schemas/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "maas-schemas",
"version": "25.0.0",
"version": "26.0.0",
"description": "Schemas for MaaS infrastructure",
"main": "index.js",
"engine": {
Expand Down
2 changes: 1 addition & 1 deletion maas-schemas/schemas/tsp/booking-update/request.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 4 additions & 2 deletions maas-schemas/src/io-ts/_types/tsp/booking-update/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -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,
Expand All @@ -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;
Expand Down

0 comments on commit 05c03a9

Please sign in to comment.