Skip to content
This repository was archived by the owner on Feb 10, 2025. It is now read-only.

Commit 98d775f

Browse files
committed
update: gql definitions
1 parent 54bee50 commit 98d775f

2 files changed

Lines changed: 161 additions & 0 deletions

File tree

packages/common/types/gql-types.ts

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,10 @@ export type ApplicationRoundNode = Node & {
356356
nameEn?: Maybe<Scalars["String"]["output"]>;
357357
nameFi?: Maybe<Scalars["String"]["output"]>;
358358
nameSv?: Maybe<Scalars["String"]["output"]>;
359+
notesWhenApplying: Scalars["String"]["output"];
360+
notesWhenApplyingEn?: Maybe<Scalars["String"]["output"]>;
361+
notesWhenApplyingFi?: Maybe<Scalars["String"]["output"]>;
362+
notesWhenApplyingSv?: Maybe<Scalars["String"]["output"]>;
359363
pk?: Maybe<Scalars["Int"]["output"]>;
360364
publicDisplayBegin: Scalars["DateTime"]["output"];
361365
publicDisplayEnd: Scalars["DateTime"]["output"];
@@ -1143,6 +1147,7 @@ export enum GeneralPermissionChoices {
11431147
CanManageGeneralRoles = "CAN_MANAGE_GENERAL_ROLES",
11441148
CanManageNotifications = "CAN_MANAGE_NOTIFICATIONS",
11451149
CanManagePurposes = "CAN_MANAGE_PURPOSES",
1150+
CanManageQualifiers = "CAN_MANAGE_QUALIFIERS",
11461151
CanManageReservations = "CAN_MANAGE_RESERVATIONS",
11471152
CanManageReservationPurposes = "CAN_MANAGE_RESERVATION_PURPOSES",
11481153
CanManageReservationUnits = "CAN_MANAGE_RESERVATION_UNITS",
@@ -1185,6 +1190,24 @@ export type GeneralRolePermissionNode = Node & {
11851190
pk?: Maybe<Scalars["Int"]["output"]>;
11861191
};
11871192

1193+
export type HelsinkiProfileDataNode = {
1194+
__typename?: "HelsinkiProfileDataNode";
1195+
birthday?: Maybe<Scalars["Date"]["output"]>;
1196+
city?: Maybe<Scalars["String"]["output"]>;
1197+
email?: Maybe<Scalars["String"]["output"]>;
1198+
firstName?: Maybe<Scalars["String"]["output"]>;
1199+
isStrongLogin: Scalars["Boolean"]["output"];
1200+
lastName?: Maybe<Scalars["String"]["output"]>;
1201+
loginMethod?: Maybe<LoginMethod>;
1202+
municipalityCode?: Maybe<Scalars["String"]["output"]>;
1203+
municipalityName?: Maybe<Scalars["String"]["output"]>;
1204+
phone?: Maybe<Scalars["String"]["output"]>;
1205+
pk: Scalars["Int"]["output"];
1206+
postalCode?: Maybe<Scalars["String"]["output"]>;
1207+
ssn?: Maybe<Scalars["String"]["output"]>;
1208+
streetAddress?: Maybe<Scalars["String"]["output"]>;
1209+
};
1210+
11881211
/** An enumeration. */
11891212
export enum ImageType {
11901213
/** Pohjapiirros */
@@ -1340,6 +1363,13 @@ export enum LocationType {
13401363
Movable = "MOVABLE",
13411364
}
13421365

1366+
/** An enumeration. */
1367+
export enum LoginMethod {
1368+
Ad = "AD",
1369+
Other = "OTHER",
1370+
Profile = "PROFILE",
1371+
}
1372+
13431373
export type Mutation = {
13441374
__typename?: "Mutation";
13451375
adjustReservationTime?: Maybe<ReservationAdjustTimeMutationPayload>;
@@ -1373,7 +1403,11 @@ export type Mutation = {
13731403
denyReservation?: Maybe<ReservationDenyMutationPayload>;
13741404
refreshOrder?: Maybe<RefreshOrderMutationPayload>;
13751405
refundReservation?: Maybe<ReservationRefundMutationPayload>;
1406+
rejectAllApplicationOptions?: Maybe<RejectAllApplicationOptionsMutationPayload>;
1407+
rejectAllSectionOptions?: Maybe<RejectAllSectionOptionsMutationPayload>;
13761408
requireHandlingForReservation?: Maybe<ReservationRequiresHandlingMutationPayload>;
1409+
restoreAllApplicationOptions?: Maybe<RestoreAllApplicationOptionsMutationPayload>;
1410+
restoreAllSectionOptions?: Maybe<RestoreAllSectionOptionsMutationPayload>;
13771411
sendApplication?: Maybe<ApplicationSendMutationPayload>;
13781412
staffAdjustReservationTime?: Maybe<ReservationStaffAdjustTimeMutationPayload>;
13791413
staffReservationModify?: Maybe<ReservationStaffModifyMutationPayload>;
@@ -1519,10 +1553,26 @@ export type MutationRefundReservationArgs = {
15191553
input: ReservationRefundMutationInput;
15201554
};
15211555

1556+
export type MutationRejectAllApplicationOptionsArgs = {
1557+
input: RejectAllApplicationOptionsMutationInput;
1558+
};
1559+
1560+
export type MutationRejectAllSectionOptionsArgs = {
1561+
input: RejectAllSectionOptionsMutationInput;
1562+
};
1563+
15221564
export type MutationRequireHandlingForReservationArgs = {
15231565
input: ReservationRequiresHandlingMutationInput;
15241566
};
15251567

1568+
export type MutationRestoreAllApplicationOptionsArgs = {
1569+
input: RestoreAllApplicationOptionsMutationInput;
1570+
};
1571+
1572+
export type MutationRestoreAllSectionOptionsArgs = {
1573+
input: RestoreAllSectionOptionsMutationInput;
1574+
};
1575+
15261576
export type MutationSendApplicationArgs = {
15271577
input: ApplicationSendMutationInput;
15281578
};
@@ -1920,6 +1970,8 @@ export type Query = {
19201970
keywords?: Maybe<KeywordNodeConnection>;
19211971
metadataSets?: Maybe<ReservationMetadataSetNodeConnection>;
19221972
order?: Maybe<PaymentOrderNode>;
1973+
/** Get information about the user, using Helsinki profile if necessary. */
1974+
profileData?: Maybe<HelsinkiProfileDataNode>;
19231975
purposes?: Maybe<PurposeNodeConnection>;
19241976
qualifiers?: Maybe<QualifierNodeConnection>;
19251977
recurringReservation?: Maybe<RecurringReservationNode>;
@@ -2188,6 +2240,11 @@ export type QueryOrderArgs = {
21882240
orderUuid: Scalars["String"]["input"];
21892241
};
21902242

2243+
export type QueryProfileDataArgs = {
2244+
applicationId?: InputMaybe<Scalars["Int"]["input"]>;
2245+
reservationId?: InputMaybe<Scalars["Int"]["input"]>;
2246+
};
2247+
21912248
export type QueryPurposesArgs = {
21922249
after?: InputMaybe<Scalars["String"]["input"]>;
21932250
before?: InputMaybe<Scalars["String"]["input"]>;
@@ -2686,6 +2743,24 @@ export type RefreshOrderMutationPayload = {
26862743
status?: Maybe<Scalars["String"]["output"]>;
26872744
};
26882745

2746+
export type RejectAllApplicationOptionsMutationInput = {
2747+
pk: Scalars["Int"]["input"];
2748+
};
2749+
2750+
export type RejectAllApplicationOptionsMutationPayload = {
2751+
__typename?: "RejectAllApplicationOptionsMutationPayload";
2752+
pk?: Maybe<Scalars["Int"]["output"]>;
2753+
};
2754+
2755+
export type RejectAllSectionOptionsMutationInput = {
2756+
pk: Scalars["Int"]["input"];
2757+
};
2758+
2759+
export type RejectAllSectionOptionsMutationPayload = {
2760+
__typename?: "RejectAllSectionOptionsMutationPayload";
2761+
pk?: Maybe<Scalars["Int"]["output"]>;
2762+
};
2763+
26892764
export type ReservableTimeSpanType = {
26902765
__typename?: "ReservableTimeSpanType";
26912766
endDatetime?: Maybe<Scalars["DateTime"]["output"]>;
@@ -4520,6 +4595,24 @@ export type ResourceUpdateMutationPayload = {
45204595
space?: Maybe<Scalars["Int"]["output"]>;
45214596
};
45224597

4598+
export type RestoreAllApplicationOptionsMutationInput = {
4599+
pk: Scalars["Int"]["input"];
4600+
};
4601+
4602+
export type RestoreAllApplicationOptionsMutationPayload = {
4603+
__typename?: "RestoreAllApplicationOptionsMutationPayload";
4604+
pk?: Maybe<Scalars["Int"]["output"]>;
4605+
};
4606+
4607+
export type RestoreAllSectionOptionsMutationInput = {
4608+
pk: Scalars["Int"]["input"];
4609+
};
4610+
4611+
export type RestoreAllSectionOptionsMutationPayload = {
4612+
__typename?: "RestoreAllSectionOptionsMutationPayload";
4613+
pk?: Maybe<Scalars["Int"]["output"]>;
4614+
};
4615+
45234616
export type ServiceNode = Node & {
45244617
__typename?: "ServiceNode";
45254618
bufferTimeAfter?: Maybe<Scalars["Duration"]["output"]>;

tilavaraus.graphql

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,10 @@ type ApplicationRoundNode implements Node {
295295
criteriaFi: String
296296
criteriaEn: String
297297
criteriaSv: String
298+
notesWhenApplying: String!
299+
notesWhenApplyingFi: String
300+
notesWhenApplyingEn: String
301+
notesWhenApplyingSv: String
298302
applicationPeriodBegin: DateTime!
299303
applicationPeriodEnd: DateTime!
300304
reservationPeriodBegin: Date!
@@ -1097,6 +1101,7 @@ enum GeneralPermissionChoices {
10971101
CAN_MANAGE_PURPOSES
10981102
CAN_MANAGE_RESERVATION_PURPOSES
10991103
CAN_MANAGE_AGE_GROUPS
1104+
CAN_MANAGE_QUALIFIERS
11001105
CAN_MANAGE_ABILITY_GROUPS
11011106
CAN_MANAGE_RESERVATION_UNIT_TYPES
11021107
CAN_MANAGE_EQUIPMENT_CATEGORIES
@@ -1144,6 +1149,23 @@ type GeneralRolePermissionNode implements Node {
11441149
pk: Int
11451150
}
11461151

1152+
type HelsinkiProfileDataNode {
1153+
pk: Int!
1154+
firstName: String
1155+
lastName: String
1156+
email: String
1157+
phone: String
1158+
birthday: Date
1159+
ssn: String
1160+
streetAddress: String
1161+
postalCode: String
1162+
city: String
1163+
municipalityCode: String
1164+
municipalityName: String
1165+
loginMethod: LoginMethod
1166+
isStrongLogin: Boolean!
1167+
}
1168+
11471169
"""An enumeration."""
11481170
enum ImageType {
11491171
"""Pääkuva"""
@@ -1303,6 +1325,13 @@ enum LocationType {
13031325
MOVABLE
13041326
}
13051327

1328+
"""An enumeration."""
1329+
enum LoginMethod {
1330+
PROFILE
1331+
AD
1332+
OTHER
1333+
}
1334+
13061335
type Mutation {
13071336
createApplication(input: ApplicationCreateMutationInput!): ApplicationCreateMutationPayload
13081337
updateApplication(input: ApplicationUpdateMutationInput!): ApplicationUpdateMutationPayload
@@ -1314,6 +1343,10 @@ type Mutation {
13141343
createAllocatedTimeslot(input: AllocatedTimeSlotCreateMutationInput!): AllocatedTimeSlotCreateMutationPayload
13151344
deleteAllocatedTimeslot(input: AllocatedTimeSlotDeleteMutationInput!): AllocatedTimeSlotDeleteMutationPayload
13161345
updateReservationUnitOption(input: ReservationUnitOptionUpdateMutationInput!): ReservationUnitOptionUpdateMutationPayload
1346+
rejectAllSectionOptions(input: RejectAllSectionOptionsMutationInput!): RejectAllSectionOptionsMutationPayload
1347+
restoreAllSectionOptions(input: RestoreAllSectionOptionsMutationInput!): RestoreAllSectionOptionsMutationPayload
1348+
rejectAllApplicationOptions(input: RejectAllApplicationOptionsMutationInput!): RejectAllApplicationOptionsMutationPayload
1349+
restoreAllApplicationOptions(input: RestoreAllApplicationOptionsMutationInput!): RestoreAllApplicationOptionsMutationPayload
13171350
updateUnit(input: UnitUpdateMutationInput!): UnitUpdateMutationPayload
13181351
createResource(input: ResourceCreateMutationInput!): ResourceCreateMutationPayload
13191352
updateResource(input: ResourceUpdateMutationInput!): ResourceUpdateMutationPayload
@@ -2211,6 +2244,9 @@ type Query {
22112244
id: ID!
22122245
): UserNode
22132246
currentUser: UserNode
2247+
2248+
"""Get information about the user, using Helsinki profile if necessary."""
2249+
profileData(reservationId: Int, applicationId: Int): HelsinkiProfileDataNode
22142250
termsOfUse(
22152251
first: Int
22162252
last: Int
@@ -2418,6 +2454,22 @@ type RefreshOrderMutationPayload {
24182454
reservationPk: Int
24192455
}
24202456

2457+
input RejectAllApplicationOptionsMutationInput {
2458+
pk: Int!
2459+
}
2460+
2461+
type RejectAllApplicationOptionsMutationPayload {
2462+
pk: Int
2463+
}
2464+
2465+
input RejectAllSectionOptionsMutationInput {
2466+
pk: Int!
2467+
}
2468+
2469+
type RejectAllSectionOptionsMutationPayload {
2470+
pk: Int
2471+
}
2472+
24212473
type ReservableTimeSpanType {
24222474
startDatetime: DateTime
24232475
endDatetime: DateTime
@@ -4266,6 +4318,22 @@ type ResourceUpdateMutationPayload {
42664318
bufferTimeAfter: Duration
42674319
}
42684320

4321+
input RestoreAllApplicationOptionsMutationInput {
4322+
pk: Int!
4323+
}
4324+
4325+
type RestoreAllApplicationOptionsMutationPayload {
4326+
pk: Int
4327+
}
4328+
4329+
input RestoreAllSectionOptionsMutationInput {
4330+
pk: Int!
4331+
}
4332+
4333+
type RestoreAllSectionOptionsMutationPayload {
4334+
pk: Int
4335+
}
4336+
42694337
type ServiceNode implements Node {
42704338
name: String!
42714339
nameFi: String

0 commit comments

Comments
 (0)