From 3b7e1c4d8fa341bd76c37e0323ef709bcce57343 Mon Sep 17 00:00:00 2001 From: Joonatan Kuosa Date: Thu, 14 Nov 2024 09:48:08 +0200 Subject: [PATCH] chore: update gql types to v0.76.1 core --- apps/admin-ui/gql/gql-types.ts | 126 +++++++++++++++++++++++++++++ apps/ui/gql/gql-types.ts | 126 +++++++++++++++++++++++++++++ packages/common/gql/gql-types.ts | 126 +++++++++++++++++++++++++++++ tilavaraus.graphql | 135 +++++++++++++++++++++++++++++++ 4 files changed, 513 insertions(+) diff --git a/apps/admin-ui/gql/gql-types.ts b/apps/admin-ui/gql/gql-types.ts index 46cba34245..cdf0b1dd85 100644 --- a/apps/admin-ui/gql/gql-types.ts +++ b/apps/admin-ui/gql/gql-types.ts @@ -622,6 +622,17 @@ export enum ApplicationSectionOrderingChoices { StatusDesc = "statusDesc", } +export type ApplicationSectionReservationCancellationMutationInput = { + cancelDetails?: InputMaybe; + cancelReason: Scalars["Int"]["input"]; + pk: Scalars["Int"]["input"]; +}; + +export type ApplicationSectionReservationCancellationMutationPayload = { + cancelled?: Maybe; + future?: Maybe; +}; + /** An enumeration. */ export enum ApplicationSectionStatusChoice { Handled = "HANDLED", @@ -913,6 +924,17 @@ export enum CustomerTypeChoice { Nonprofit = "NONPROFIT", } +/** This Node should be kept to the bare minimum and never expose any relations to avoid performance issues. */ +export type EquipmentAllNode = Node & { + /** The ID of the object */ + id: Scalars["ID"]["output"]; + name: Scalars["String"]["output"]; + nameEn?: Maybe; + nameFi?: Maybe; + nameSv?: Maybe; + pk?: Maybe; +}; + export type EquipmentCategoryCreateMutationInput = { name: Scalars["String"]["input"]; nameEn?: InputMaybe; @@ -1044,6 +1066,12 @@ export enum EquipmentOrderingChoices { CategoryRankDesc = "categoryRankDesc", NameAsc = "nameAsc", NameDesc = "nameDesc", + NameEnAsc = "nameEnAsc", + NameEnDesc = "nameEnDesc", + NameFiAsc = "nameFiAsc", + NameFiDesc = "nameFiDesc", + NameSvAsc = "nameSvAsc", + NameSvDesc = "nameSvDesc", } export type EquipmentUpdateMutationInput = { @@ -1247,6 +1275,7 @@ export enum LoginMethod { export type Mutation = { adjustReservationTime?: Maybe; approveReservation?: Maybe; + cancelAllApplicationSectionReservations?: Maybe; cancelApplication?: Maybe; cancelReservation?: Maybe; confirmReservation?: Maybe; @@ -1274,6 +1303,7 @@ export type Mutation = { deleteResource?: Maybe; deleteSpace?: Maybe; denyReservation?: Maybe; + denyReservationSeries?: Maybe; refreshOrder?: Maybe; refundReservation?: Maybe; rejectAllApplicationOptions?: Maybe; @@ -1284,6 +1314,7 @@ export type Mutation = { restoreAllSectionOptions?: Maybe; sendApplication?: Maybe; setApplicationRoundHandled?: Maybe; + setApplicationRoundResultsSent?: Maybe; staffAdjustReservationTime?: Maybe; staffReservationModify?: Maybe; updateApplication?: Maybe; @@ -1313,6 +1344,10 @@ export type MutationApproveReservationArgs = { input: ReservationApproveMutationInput; }; +export type MutationCancelAllApplicationSectionReservationsArgs = { + input: ApplicationSectionReservationCancellationMutationInput; +}; + export type MutationCancelApplicationArgs = { input: ApplicationCancelMutationInput; }; @@ -1421,6 +1456,10 @@ export type MutationDenyReservationArgs = { input: ReservationDenyMutationInput; }; +export type MutationDenyReservationSeriesArgs = { + input: ReservationSeriesDenyMutationInput; +}; + export type MutationRefreshOrderArgs = { input: RefreshOrderMutationInput; }; @@ -1461,6 +1500,10 @@ export type MutationSetApplicationRoundHandledArgs = { input: SetApplicationRoundHandledMutationInput; }; +export type MutationSetApplicationRoundResultsSentArgs = { + input: SetApplicationRoundResultsSentMutationInput; +}; + export type MutationStaffAdjustReservationTimeArgs = { input: ReservationStaffAdjustTimeMutationInput; }; @@ -1847,6 +1890,7 @@ export type Query = { equipmentCategories?: Maybe; equipmentCategory?: Maybe; equipments?: Maybe; + equipmentsAll?: Maybe>; keywordCategories?: Maybe; keywordGroups?: Maybe; keywords?: Maybe; @@ -1868,6 +1912,7 @@ export type Query = { reservationUnitCancellationRules?: Maybe; reservationUnitTypes?: Maybe; reservationUnits?: Maybe; + reservationUnitsAll?: Maybe>; reservations?: Maybe; resource?: Maybe; resources?: Maybe; @@ -1879,6 +1924,7 @@ export type Query = { unit?: Maybe; unitGroups?: Maybe; units?: Maybe; + unitsAll?: Maybe>; user?: Maybe; }; @@ -1962,6 +2008,7 @@ export type QueryApplicationRoundsArgs = { last?: InputMaybe; name?: InputMaybe; offset?: InputMaybe; + ongoing?: InputMaybe; onlyWithPermissions?: InputMaybe; orderBy?: InputMaybe>>; pk?: InputMaybe>>; @@ -2083,6 +2130,10 @@ export type QueryEquipmentsArgs = { rankLte?: InputMaybe; }; +export type QueryEquipmentsAllArgs = { + orderBy?: InputMaybe>>; +}; + export type QueryKeywordCategoriesArgs = { after?: InputMaybe; before?: InputMaybe; @@ -2348,6 +2399,21 @@ export type QueryReservationUnitsArgs = { unit?: InputMaybe>>; }; +export type QueryReservationUnitsAllArgs = { + nameEn?: InputMaybe; + nameEn_Icontains?: InputMaybe; + nameEn_Istartswith?: InputMaybe; + nameFi?: InputMaybe; + nameFi_Icontains?: InputMaybe; + nameFi_Istartswith?: InputMaybe; + nameSv?: InputMaybe; + nameSv_Icontains?: InputMaybe; + nameSv_Istartswith?: InputMaybe; + onlyWithPermission?: InputMaybe; + orderBy?: InputMaybe>>; + unit?: InputMaybe>>; +}; + export type QueryReservationsArgs = { after?: InputMaybe; applyingForFreeOfCharge?: InputMaybe; @@ -2495,6 +2561,21 @@ export type QueryUnitsArgs = { serviceSector?: InputMaybe; }; +export type QueryUnitsAllArgs = { + nameEn?: InputMaybe; + nameEn_Icontains?: InputMaybe; + nameEn_Istartswith?: InputMaybe; + nameFi?: InputMaybe; + nameFi_Icontains?: InputMaybe; + nameFi_Istartswith?: InputMaybe; + nameSv?: InputMaybe; + nameSv_Icontains?: InputMaybe; + nameSv_Istartswith?: InputMaybe; + onlyWithPermission?: InputMaybe; + orderBy?: InputMaybe>>; + unit?: InputMaybe>>; +}; + export type QueryUserArgs = { id: Scalars["ID"]["input"]; }; @@ -2679,6 +2760,8 @@ export enum RejectedOccurrenceOrderingChoices { ReservationUnitNameDesc = "reservationUnitNameDesc", ReservationUnitPkAsc = "reservationUnitPkAsc", ReservationUnitPkDesc = "reservationUnitPkDesc", + UnitNameAsc = "unitNameAsc", + UnitNameDesc = "unitNameDesc", UnitPkAsc = "unitPkAsc", UnitPkDesc = "unitPkDesc", } @@ -3263,6 +3346,17 @@ export type ReservationSeriesCreateMutationPayload = { weekdays?: Maybe>>; }; +export type ReservationSeriesDenyMutationInput = { + denyReason: Scalars["Int"]["input"]; + handlingDetails?: InputMaybe; + pk: Scalars["Int"]["input"]; +}; + +export type ReservationSeriesDenyMutationPayload = { + denied?: Maybe; + future?: Maybe; +}; + export type ReservationSeriesRescheduleMutationInput = { beginDate?: InputMaybe; beginTime?: InputMaybe; @@ -3577,6 +3671,17 @@ export enum ReservationTypeStaffChoice { Staff = "STAFF", } +/** This Node should be kept to the bare minimum and never expose any relations to avoid performance issues. */ +export type ReservationUnitAllNode = Node & { + /** The ID of the object */ + id: Scalars["ID"]["output"]; + name: Scalars["String"]["output"]; + nameEn?: Maybe; + nameFi?: Maybe; + nameSv?: Maybe; + pk?: Maybe; +}; + export type ReservationUnitCancellationRuleNode = Node & { canBeCancelledTimeBefore?: Maybe; /** The ID of the object */ @@ -3904,6 +4009,7 @@ export type ReservationUnitNode = Node & { export type ReservationUnitNodeApplicationRoundsArgs = { active?: InputMaybe; name?: InputMaybe; + ongoing?: InputMaybe; onlyWithPermissions?: InputMaybe; orderBy?: InputMaybe>>; pk?: InputMaybe>>; @@ -4632,6 +4738,14 @@ export type SetApplicationRoundHandledMutationPayload = { pk?: Maybe; }; +export type SetApplicationRoundResultsSentMutationInput = { + pk: Scalars["Int"]["input"]; +}; + +export type SetApplicationRoundResultsSentMutationPayload = { + pk?: Maybe; +}; + export type SpaceCreateMutationInput = { building?: InputMaybe; code?: InputMaybe; @@ -4901,6 +5015,18 @@ export type TimeSlotType = { end: Scalars["Time"]["output"]; }; +/** This Node should be kept to the bare minimum and never expose any relations to avoid performance issues. */ +export type UnitAllNode = Node & { + /** The ID of the object */ + id: Scalars["ID"]["output"]; + name: Scalars["String"]["output"]; + nameEn?: Maybe; + nameFi?: Maybe; + nameSv?: Maybe; + pk?: Maybe; + tprekId?: Maybe; +}; + export type UnitGroupNode = Node & { /** The ID of the object */ id: Scalars["ID"]["output"]; diff --git a/apps/ui/gql/gql-types.ts b/apps/ui/gql/gql-types.ts index 93a6f667cc..07a360a27e 100644 --- a/apps/ui/gql/gql-types.ts +++ b/apps/ui/gql/gql-types.ts @@ -622,6 +622,17 @@ export enum ApplicationSectionOrderingChoices { StatusDesc = "statusDesc", } +export type ApplicationSectionReservationCancellationMutationInput = { + cancelDetails?: InputMaybe; + cancelReason: Scalars["Int"]["input"]; + pk: Scalars["Int"]["input"]; +}; + +export type ApplicationSectionReservationCancellationMutationPayload = { + cancelled?: Maybe; + future?: Maybe; +}; + /** An enumeration. */ export enum ApplicationSectionStatusChoice { Handled = "HANDLED", @@ -913,6 +924,17 @@ export enum CustomerTypeChoice { Nonprofit = "NONPROFIT", } +/** This Node should be kept to the bare minimum and never expose any relations to avoid performance issues. */ +export type EquipmentAllNode = Node & { + /** The ID of the object */ + id: Scalars["ID"]["output"]; + name: Scalars["String"]["output"]; + nameEn?: Maybe; + nameFi?: Maybe; + nameSv?: Maybe; + pk?: Maybe; +}; + export type EquipmentCategoryCreateMutationInput = { name: Scalars["String"]["input"]; nameEn?: InputMaybe; @@ -1044,6 +1066,12 @@ export enum EquipmentOrderingChoices { CategoryRankDesc = "categoryRankDesc", NameAsc = "nameAsc", NameDesc = "nameDesc", + NameEnAsc = "nameEnAsc", + NameEnDesc = "nameEnDesc", + NameFiAsc = "nameFiAsc", + NameFiDesc = "nameFiDesc", + NameSvAsc = "nameSvAsc", + NameSvDesc = "nameSvDesc", } export type EquipmentUpdateMutationInput = { @@ -1247,6 +1275,7 @@ export enum LoginMethod { export type Mutation = { adjustReservationTime?: Maybe; approveReservation?: Maybe; + cancelAllApplicationSectionReservations?: Maybe; cancelApplication?: Maybe; cancelReservation?: Maybe; confirmReservation?: Maybe; @@ -1274,6 +1303,7 @@ export type Mutation = { deleteResource?: Maybe; deleteSpace?: Maybe; denyReservation?: Maybe; + denyReservationSeries?: Maybe; refreshOrder?: Maybe; refundReservation?: Maybe; rejectAllApplicationOptions?: Maybe; @@ -1284,6 +1314,7 @@ export type Mutation = { restoreAllSectionOptions?: Maybe; sendApplication?: Maybe; setApplicationRoundHandled?: Maybe; + setApplicationRoundResultsSent?: Maybe; staffAdjustReservationTime?: Maybe; staffReservationModify?: Maybe; updateApplication?: Maybe; @@ -1313,6 +1344,10 @@ export type MutationApproveReservationArgs = { input: ReservationApproveMutationInput; }; +export type MutationCancelAllApplicationSectionReservationsArgs = { + input: ApplicationSectionReservationCancellationMutationInput; +}; + export type MutationCancelApplicationArgs = { input: ApplicationCancelMutationInput; }; @@ -1421,6 +1456,10 @@ export type MutationDenyReservationArgs = { input: ReservationDenyMutationInput; }; +export type MutationDenyReservationSeriesArgs = { + input: ReservationSeriesDenyMutationInput; +}; + export type MutationRefreshOrderArgs = { input: RefreshOrderMutationInput; }; @@ -1461,6 +1500,10 @@ export type MutationSetApplicationRoundHandledArgs = { input: SetApplicationRoundHandledMutationInput; }; +export type MutationSetApplicationRoundResultsSentArgs = { + input: SetApplicationRoundResultsSentMutationInput; +}; + export type MutationStaffAdjustReservationTimeArgs = { input: ReservationStaffAdjustTimeMutationInput; }; @@ -1847,6 +1890,7 @@ export type Query = { equipmentCategories?: Maybe; equipmentCategory?: Maybe; equipments?: Maybe; + equipmentsAll?: Maybe>; keywordCategories?: Maybe; keywordGroups?: Maybe; keywords?: Maybe; @@ -1868,6 +1912,7 @@ export type Query = { reservationUnitCancellationRules?: Maybe; reservationUnitTypes?: Maybe; reservationUnits?: Maybe; + reservationUnitsAll?: Maybe>; reservations?: Maybe; resource?: Maybe; resources?: Maybe; @@ -1879,6 +1924,7 @@ export type Query = { unit?: Maybe; unitGroups?: Maybe; units?: Maybe; + unitsAll?: Maybe>; user?: Maybe; }; @@ -1962,6 +2008,7 @@ export type QueryApplicationRoundsArgs = { last?: InputMaybe; name?: InputMaybe; offset?: InputMaybe; + ongoing?: InputMaybe; onlyWithPermissions?: InputMaybe; orderBy?: InputMaybe>>; pk?: InputMaybe>>; @@ -2083,6 +2130,10 @@ export type QueryEquipmentsArgs = { rankLte?: InputMaybe; }; +export type QueryEquipmentsAllArgs = { + orderBy?: InputMaybe>>; +}; + export type QueryKeywordCategoriesArgs = { after?: InputMaybe; before?: InputMaybe; @@ -2348,6 +2399,21 @@ export type QueryReservationUnitsArgs = { unit?: InputMaybe>>; }; +export type QueryReservationUnitsAllArgs = { + nameEn?: InputMaybe; + nameEn_Icontains?: InputMaybe; + nameEn_Istartswith?: InputMaybe; + nameFi?: InputMaybe; + nameFi_Icontains?: InputMaybe; + nameFi_Istartswith?: InputMaybe; + nameSv?: InputMaybe; + nameSv_Icontains?: InputMaybe; + nameSv_Istartswith?: InputMaybe; + onlyWithPermission?: InputMaybe; + orderBy?: InputMaybe>>; + unit?: InputMaybe>>; +}; + export type QueryReservationsArgs = { after?: InputMaybe; applyingForFreeOfCharge?: InputMaybe; @@ -2495,6 +2561,21 @@ export type QueryUnitsArgs = { serviceSector?: InputMaybe; }; +export type QueryUnitsAllArgs = { + nameEn?: InputMaybe; + nameEn_Icontains?: InputMaybe; + nameEn_Istartswith?: InputMaybe; + nameFi?: InputMaybe; + nameFi_Icontains?: InputMaybe; + nameFi_Istartswith?: InputMaybe; + nameSv?: InputMaybe; + nameSv_Icontains?: InputMaybe; + nameSv_Istartswith?: InputMaybe; + onlyWithPermission?: InputMaybe; + orderBy?: InputMaybe>>; + unit?: InputMaybe>>; +}; + export type QueryUserArgs = { id: Scalars["ID"]["input"]; }; @@ -2679,6 +2760,8 @@ export enum RejectedOccurrenceOrderingChoices { ReservationUnitNameDesc = "reservationUnitNameDesc", ReservationUnitPkAsc = "reservationUnitPkAsc", ReservationUnitPkDesc = "reservationUnitPkDesc", + UnitNameAsc = "unitNameAsc", + UnitNameDesc = "unitNameDesc", UnitPkAsc = "unitPkAsc", UnitPkDesc = "unitPkDesc", } @@ -3263,6 +3346,17 @@ export type ReservationSeriesCreateMutationPayload = { weekdays?: Maybe>>; }; +export type ReservationSeriesDenyMutationInput = { + denyReason: Scalars["Int"]["input"]; + handlingDetails?: InputMaybe; + pk: Scalars["Int"]["input"]; +}; + +export type ReservationSeriesDenyMutationPayload = { + denied?: Maybe; + future?: Maybe; +}; + export type ReservationSeriesRescheduleMutationInput = { beginDate?: InputMaybe; beginTime?: InputMaybe; @@ -3577,6 +3671,17 @@ export enum ReservationTypeStaffChoice { Staff = "STAFF", } +/** This Node should be kept to the bare minimum and never expose any relations to avoid performance issues. */ +export type ReservationUnitAllNode = Node & { + /** The ID of the object */ + id: Scalars["ID"]["output"]; + name: Scalars["String"]["output"]; + nameEn?: Maybe; + nameFi?: Maybe; + nameSv?: Maybe; + pk?: Maybe; +}; + export type ReservationUnitCancellationRuleNode = Node & { canBeCancelledTimeBefore?: Maybe; /** The ID of the object */ @@ -3904,6 +4009,7 @@ export type ReservationUnitNode = Node & { export type ReservationUnitNodeApplicationRoundsArgs = { active?: InputMaybe; name?: InputMaybe; + ongoing?: InputMaybe; onlyWithPermissions?: InputMaybe; orderBy?: InputMaybe>>; pk?: InputMaybe>>; @@ -4632,6 +4738,14 @@ export type SetApplicationRoundHandledMutationPayload = { pk?: Maybe; }; +export type SetApplicationRoundResultsSentMutationInput = { + pk: Scalars["Int"]["input"]; +}; + +export type SetApplicationRoundResultsSentMutationPayload = { + pk?: Maybe; +}; + export type SpaceCreateMutationInput = { building?: InputMaybe; code?: InputMaybe; @@ -4901,6 +5015,18 @@ export type TimeSlotType = { end: Scalars["Time"]["output"]; }; +/** This Node should be kept to the bare minimum and never expose any relations to avoid performance issues. */ +export type UnitAllNode = Node & { + /** The ID of the object */ + id: Scalars["ID"]["output"]; + name: Scalars["String"]["output"]; + nameEn?: Maybe; + nameFi?: Maybe; + nameSv?: Maybe; + pk?: Maybe; + tprekId?: Maybe; +}; + export type UnitGroupNode = Node & { /** The ID of the object */ id: Scalars["ID"]["output"]; diff --git a/packages/common/gql/gql-types.ts b/packages/common/gql/gql-types.ts index c0d89cc91f..26f46c55d9 100644 --- a/packages/common/gql/gql-types.ts +++ b/packages/common/gql/gql-types.ts @@ -622,6 +622,17 @@ export enum ApplicationSectionOrderingChoices { StatusDesc = "statusDesc", } +export type ApplicationSectionReservationCancellationMutationInput = { + cancelDetails?: InputMaybe; + cancelReason: Scalars["Int"]["input"]; + pk: Scalars["Int"]["input"]; +}; + +export type ApplicationSectionReservationCancellationMutationPayload = { + cancelled?: Maybe; + future?: Maybe; +}; + /** An enumeration. */ export enum ApplicationSectionStatusChoice { Handled = "HANDLED", @@ -913,6 +924,17 @@ export enum CustomerTypeChoice { Nonprofit = "NONPROFIT", } +/** This Node should be kept to the bare minimum and never expose any relations to avoid performance issues. */ +export type EquipmentAllNode = Node & { + /** The ID of the object */ + id: Scalars["ID"]["output"]; + name: Scalars["String"]["output"]; + nameEn?: Maybe; + nameFi?: Maybe; + nameSv?: Maybe; + pk?: Maybe; +}; + export type EquipmentCategoryCreateMutationInput = { name: Scalars["String"]["input"]; nameEn?: InputMaybe; @@ -1044,6 +1066,12 @@ export enum EquipmentOrderingChoices { CategoryRankDesc = "categoryRankDesc", NameAsc = "nameAsc", NameDesc = "nameDesc", + NameEnAsc = "nameEnAsc", + NameEnDesc = "nameEnDesc", + NameFiAsc = "nameFiAsc", + NameFiDesc = "nameFiDesc", + NameSvAsc = "nameSvAsc", + NameSvDesc = "nameSvDesc", } export type EquipmentUpdateMutationInput = { @@ -1247,6 +1275,7 @@ export enum LoginMethod { export type Mutation = { adjustReservationTime?: Maybe; approveReservation?: Maybe; + cancelAllApplicationSectionReservations?: Maybe; cancelApplication?: Maybe; cancelReservation?: Maybe; confirmReservation?: Maybe; @@ -1274,6 +1303,7 @@ export type Mutation = { deleteResource?: Maybe; deleteSpace?: Maybe; denyReservation?: Maybe; + denyReservationSeries?: Maybe; refreshOrder?: Maybe; refundReservation?: Maybe; rejectAllApplicationOptions?: Maybe; @@ -1284,6 +1314,7 @@ export type Mutation = { restoreAllSectionOptions?: Maybe; sendApplication?: Maybe; setApplicationRoundHandled?: Maybe; + setApplicationRoundResultsSent?: Maybe; staffAdjustReservationTime?: Maybe; staffReservationModify?: Maybe; updateApplication?: Maybe; @@ -1313,6 +1344,10 @@ export type MutationApproveReservationArgs = { input: ReservationApproveMutationInput; }; +export type MutationCancelAllApplicationSectionReservationsArgs = { + input: ApplicationSectionReservationCancellationMutationInput; +}; + export type MutationCancelApplicationArgs = { input: ApplicationCancelMutationInput; }; @@ -1421,6 +1456,10 @@ export type MutationDenyReservationArgs = { input: ReservationDenyMutationInput; }; +export type MutationDenyReservationSeriesArgs = { + input: ReservationSeriesDenyMutationInput; +}; + export type MutationRefreshOrderArgs = { input: RefreshOrderMutationInput; }; @@ -1461,6 +1500,10 @@ export type MutationSetApplicationRoundHandledArgs = { input: SetApplicationRoundHandledMutationInput; }; +export type MutationSetApplicationRoundResultsSentArgs = { + input: SetApplicationRoundResultsSentMutationInput; +}; + export type MutationStaffAdjustReservationTimeArgs = { input: ReservationStaffAdjustTimeMutationInput; }; @@ -1847,6 +1890,7 @@ export type Query = { equipmentCategories?: Maybe; equipmentCategory?: Maybe; equipments?: Maybe; + equipmentsAll?: Maybe>; keywordCategories?: Maybe; keywordGroups?: Maybe; keywords?: Maybe; @@ -1868,6 +1912,7 @@ export type Query = { reservationUnitCancellationRules?: Maybe; reservationUnitTypes?: Maybe; reservationUnits?: Maybe; + reservationUnitsAll?: Maybe>; reservations?: Maybe; resource?: Maybe; resources?: Maybe; @@ -1879,6 +1924,7 @@ export type Query = { unit?: Maybe; unitGroups?: Maybe; units?: Maybe; + unitsAll?: Maybe>; user?: Maybe; }; @@ -1962,6 +2008,7 @@ export type QueryApplicationRoundsArgs = { last?: InputMaybe; name?: InputMaybe; offset?: InputMaybe; + ongoing?: InputMaybe; onlyWithPermissions?: InputMaybe; orderBy?: InputMaybe>>; pk?: InputMaybe>>; @@ -2083,6 +2130,10 @@ export type QueryEquipmentsArgs = { rankLte?: InputMaybe; }; +export type QueryEquipmentsAllArgs = { + orderBy?: InputMaybe>>; +}; + export type QueryKeywordCategoriesArgs = { after?: InputMaybe; before?: InputMaybe; @@ -2348,6 +2399,21 @@ export type QueryReservationUnitsArgs = { unit?: InputMaybe>>; }; +export type QueryReservationUnitsAllArgs = { + nameEn?: InputMaybe; + nameEn_Icontains?: InputMaybe; + nameEn_Istartswith?: InputMaybe; + nameFi?: InputMaybe; + nameFi_Icontains?: InputMaybe; + nameFi_Istartswith?: InputMaybe; + nameSv?: InputMaybe; + nameSv_Icontains?: InputMaybe; + nameSv_Istartswith?: InputMaybe; + onlyWithPermission?: InputMaybe; + orderBy?: InputMaybe>>; + unit?: InputMaybe>>; +}; + export type QueryReservationsArgs = { after?: InputMaybe; applyingForFreeOfCharge?: InputMaybe; @@ -2495,6 +2561,21 @@ export type QueryUnitsArgs = { serviceSector?: InputMaybe; }; +export type QueryUnitsAllArgs = { + nameEn?: InputMaybe; + nameEn_Icontains?: InputMaybe; + nameEn_Istartswith?: InputMaybe; + nameFi?: InputMaybe; + nameFi_Icontains?: InputMaybe; + nameFi_Istartswith?: InputMaybe; + nameSv?: InputMaybe; + nameSv_Icontains?: InputMaybe; + nameSv_Istartswith?: InputMaybe; + onlyWithPermission?: InputMaybe; + orderBy?: InputMaybe>>; + unit?: InputMaybe>>; +}; + export type QueryUserArgs = { id: Scalars["ID"]["input"]; }; @@ -2679,6 +2760,8 @@ export enum RejectedOccurrenceOrderingChoices { ReservationUnitNameDesc = "reservationUnitNameDesc", ReservationUnitPkAsc = "reservationUnitPkAsc", ReservationUnitPkDesc = "reservationUnitPkDesc", + UnitNameAsc = "unitNameAsc", + UnitNameDesc = "unitNameDesc", UnitPkAsc = "unitPkAsc", UnitPkDesc = "unitPkDesc", } @@ -3263,6 +3346,17 @@ export type ReservationSeriesCreateMutationPayload = { weekdays?: Maybe>>; }; +export type ReservationSeriesDenyMutationInput = { + denyReason: Scalars["Int"]["input"]; + handlingDetails?: InputMaybe; + pk: Scalars["Int"]["input"]; +}; + +export type ReservationSeriesDenyMutationPayload = { + denied?: Maybe; + future?: Maybe; +}; + export type ReservationSeriesRescheduleMutationInput = { beginDate?: InputMaybe; beginTime?: InputMaybe; @@ -3577,6 +3671,17 @@ export enum ReservationTypeStaffChoice { Staff = "STAFF", } +/** This Node should be kept to the bare minimum and never expose any relations to avoid performance issues. */ +export type ReservationUnitAllNode = Node & { + /** The ID of the object */ + id: Scalars["ID"]["output"]; + name: Scalars["String"]["output"]; + nameEn?: Maybe; + nameFi?: Maybe; + nameSv?: Maybe; + pk?: Maybe; +}; + export type ReservationUnitCancellationRuleNode = Node & { canBeCancelledTimeBefore?: Maybe; /** The ID of the object */ @@ -3904,6 +4009,7 @@ export type ReservationUnitNode = Node & { export type ReservationUnitNodeApplicationRoundsArgs = { active?: InputMaybe; name?: InputMaybe; + ongoing?: InputMaybe; onlyWithPermissions?: InputMaybe; orderBy?: InputMaybe>>; pk?: InputMaybe>>; @@ -4632,6 +4738,14 @@ export type SetApplicationRoundHandledMutationPayload = { pk?: Maybe; }; +export type SetApplicationRoundResultsSentMutationInput = { + pk: Scalars["Int"]["input"]; +}; + +export type SetApplicationRoundResultsSentMutationPayload = { + pk?: Maybe; +}; + export type SpaceCreateMutationInput = { building?: InputMaybe; code?: InputMaybe; @@ -4901,6 +5015,18 @@ export type TimeSlotType = { end: Scalars["Time"]["output"]; }; +/** This Node should be kept to the bare minimum and never expose any relations to avoid performance issues. */ +export type UnitAllNode = Node & { + /** The ID of the object */ + id: Scalars["ID"]["output"]; + name: Scalars["String"]["output"]; + nameEn?: Maybe; + nameFi?: Maybe; + nameSv?: Maybe; + pk?: Maybe; + tprekId?: Maybe; +}; + export type UnitGroupNode = Node & { /** The ID of the object */ id: Scalars["ID"]["output"]; diff --git a/tilavaraus.graphql b/tilavaraus.graphql index 33e0ad2616..7da78c43da 100644 --- a/tilavaraus.graphql +++ b/tilavaraus.graphql @@ -669,6 +669,17 @@ enum ApplicationSectionOrderingChoices { statusDesc } +input ApplicationSectionReservationCancellationMutationInput { + cancelDetails: String + cancelReason: Int! + pk: Int! +} + +type ApplicationSectionReservationCancellationMutationPayload { + cancelled: Int + future: Int +} + """ An enumeration. """ @@ -1034,6 +1045,21 @@ Represents a DurationField value as an integer in seconds. """ scalar Duration +""" +This Node should be kept to the bare minimum and never expose any relations to avoid performance issues. +""" +type EquipmentAllNode implements Node { + """ + The ID of the object + """ + id: ID! + name: String! + nameEn: String + nameFi: String + nameSv: String + pk: Int +} + input EquipmentCategoryCreateMutationInput { name: String! nameEn: String @@ -1193,6 +1219,12 @@ enum EquipmentOrderingChoices { categoryRankDesc nameAsc nameDesc + nameEnAsc + nameEnDesc + nameFiAsc + nameFiDesc + nameSvAsc + nameSvDesc } input EquipmentUpdateMutationInput { @@ -1464,6 +1496,9 @@ type Mutation { approveReservation( input: ReservationApproveMutationInput! ): ReservationApproveMutationPayload + cancelAllApplicationSectionReservations( + input: ApplicationSectionReservationCancellationMutationInput! + ): ApplicationSectionReservationCancellationMutationPayload cancelApplication( input: ApplicationCancelMutationInput! ): ApplicationCancelMutationPayload @@ -1541,6 +1576,9 @@ type Mutation { denyReservation( input: ReservationDenyMutationInput! ): ReservationDenyMutationPayload + denyReservationSeries( + input: ReservationSeriesDenyMutationInput! + ): ReservationSeriesDenyMutationPayload refreshOrder(input: RefreshOrderMutationInput!): RefreshOrderMutationPayload refundReservation( input: ReservationRefundMutationInput! @@ -1569,6 +1607,9 @@ type Mutation { setApplicationRoundHandled( input: SetApplicationRoundHandledMutationInput! ): SetApplicationRoundHandledMutationPayload + setApplicationRoundResultsSent( + input: SetApplicationRoundResultsSentMutationInput! + ): SetApplicationRoundResultsSentMutationPayload staffAdjustReservationTime( input: ReservationStaffAdjustTimeMutationInput! ): ReservationStaffAdjustTimeMutationPayload @@ -2106,6 +2147,7 @@ type Query { last: Int name: String offset: Int + ongoing: Boolean onlyWithPermissions: Boolean """ Järjestä @@ -2244,6 +2286,12 @@ type Query { rankGte: Decimal rankLte: Decimal ): EquipmentNodeConnection + equipmentsAll( + """ + Järjestä + """ + orderBy: [EquipmentOrderingChoices] + ): [EquipmentAllNode!] keywordCategories( after: String before: String @@ -2530,6 +2578,23 @@ type Query { typeRankLte: Decimal unit: [Int] ): ReservationUnitNodeConnection + reservationUnitsAll( + nameEn: String + nameEn_Icontains: String + nameEn_Istartswith: String + nameFi: String + nameFi_Icontains: String + nameFi_Istartswith: String + nameSv: String + nameSv_Icontains: String + nameSv_Istartswith: String + onlyWithPermission: Boolean + """ + Järjestä + """ + orderBy: [ReservationUnitOrderingChoices] + unit: [Int] + ): [ReservationUnitAllNode!] reservations( after: String applyingForFreeOfCharge: Boolean @@ -2693,6 +2758,23 @@ type Query { publishedReservationUnits: Boolean serviceSector: Decimal ): UnitNodeConnection + unitsAll( + nameEn: String + nameEn_Icontains: String + nameEn_Istartswith: String + nameFi: String + nameFi_Icontains: String + nameFi_Istartswith: String + nameSv: String + nameSv_Icontains: String + nameSv_Istartswith: String + onlyWithPermission: Boolean + """ + Järjestä + """ + orderBy: [UnitOrderingChoices] + unit: [Int] + ): [UnitAllNode!] user( """ The ID of the object @@ -2911,6 +2993,8 @@ enum RejectedOccurrenceOrderingChoices { reservationUnitNameDesc reservationUnitPkAsc reservationUnitPkDesc + unitNameAsc + unitNameDesc unitPkAsc unitPkDesc } @@ -3587,6 +3671,17 @@ type ReservationSeriesCreateMutationPayload { weekdays: [Int] } +input ReservationSeriesDenyMutationInput { + denyReason: Int! + handlingDetails: String + pk: Int! +} + +type ReservationSeriesDenyMutationPayload { + denied: Int + future: Int +} + input ReservationSeriesRescheduleMutationInput { beginDate: Date beginTime: Time @@ -3951,6 +4046,21 @@ enum ReservationTypeStaffChoice { STAFF } +""" +This Node should be kept to the bare minimum and never expose any relations to avoid performance issues. +""" +type ReservationUnitAllNode implements Node { + """ + The ID of the object + """ + id: ID! + name: String! + nameEn: String + nameFi: String + nameSv: String + pk: Int +} + type ReservationUnitCancellationRuleNode implements Node { canBeCancelledTimeBefore: Duration """ @@ -4201,6 +4311,7 @@ type ReservationUnitNode implements Node { applicationRounds( active: Boolean name: String + ongoing: Boolean onlyWithPermissions: Boolean """ Järjestä @@ -5106,6 +5217,14 @@ type SetApplicationRoundHandledMutationPayload { pk: Int } +input SetApplicationRoundResultsSentMutationInput { + pk: Int! +} + +type SetApplicationRoundResultsSentMutationPayload { + pk: Int +} + input SpaceCreateMutationInput { building: Int code: String @@ -5464,6 +5583,22 @@ in fields, resolvers and input. """ scalar UUID +""" +This Node should be kept to the bare minimum and never expose any relations to avoid performance issues. +""" +type UnitAllNode implements Node { + """ + The ID of the object + """ + id: ID! + name: String! + nameEn: String + nameFi: String + nameSv: String + pk: Int + tprekId: String +} + type UnitGroupNode implements Node { """ The ID of the object