|
20 | 20 | from users.helauth.typing import UserProfileInfo |
21 | 21 | from users.models import User |
22 | 22 |
|
23 | | -# NOTE: Queries __need__ to be imported before mutations, see mutations.py! |
24 | | -from .queries import ( # isort:skip |
25 | | - AgeGroupNode, |
26 | | - AllocatedTimeSlotNode, |
27 | | - ApplicationNode, |
28 | | - ApplicationRoundNode, |
29 | | - ApplicationSectionNode, |
30 | | - BannerNotificationNode, |
31 | | - CityNode, |
32 | | - EquipmentCategoryNode, |
33 | | - EquipmentNode, |
34 | | - HelsinkiProfileDataNode, |
35 | | - KeywordCategoryNode, |
36 | | - KeywordGroupNode, |
37 | | - KeywordNode, |
38 | | - PaymentOrderNode, |
39 | | - PurposeNode, |
40 | | - QualifierNode, |
41 | | - RecurringReservationNode, |
42 | | - ReservationCancelReasonNode, |
43 | | - ReservationDenyReasonNode, |
44 | | - ReservationMetadataSetNode, |
45 | | - ReservationNode, |
46 | | - ReservationPurposeNode, |
47 | | - ReservationUnitCancellationRuleNode, |
48 | | - ReservationUnitNode, |
49 | | - ReservationUnitTypeNode, |
50 | | - ResourceNode, |
51 | | - ServiceSectorNode, |
52 | | - SpaceNode, |
53 | | - TaxPercentageNode, |
54 | | - TermsOfUseNode, |
55 | | - UnitNode, |
56 | | - UserNode, |
57 | | -) |
58 | | -from .types.merchants.permissions import PaymentOrderPermission |
59 | | - |
60 | | -from .mutations import ( # isort:skip |
| 23 | +from .mutations import ( |
61 | 24 | AllocatedTimeSlotCreateMutation, |
62 | 25 | AllocatedTimeSlotDeleteMutation, |
63 | 26 | ApplicationCancelMutation, |
|
81 | 44 | RecurringReservationCreateMutation, |
82 | 45 | RecurringReservationUpdateMutation, |
83 | 46 | RefreshOrderMutation, |
| 47 | + RejectAllSectionOptionsMutation, |
84 | 48 | ReservationAdjustTimeMutation, |
85 | 49 | ReservationApproveMutation, |
86 | 50 | ReservationCancellationMutation, |
|
104 | 68 | ResourceCreateMutation, |
105 | 69 | ResourceDeleteMutation, |
106 | 70 | ResourceUpdateMutation, |
| 71 | + RestoreAllSectionOptionsMutation, |
107 | 72 | SpaceCreateMutation, |
108 | 73 | SpaceDeleteMutation, |
109 | 74 | SpaceUpdateMutation, |
110 | 75 | UnitUpdateMutation, |
111 | 76 | UserUpdateMutation, |
112 | 77 | ) |
| 78 | +from .queries import ( |
| 79 | + AgeGroupNode, |
| 80 | + AllocatedTimeSlotNode, |
| 81 | + ApplicationNode, |
| 82 | + ApplicationRoundNode, |
| 83 | + ApplicationSectionNode, |
| 84 | + BannerNotificationNode, |
| 85 | + CityNode, |
| 86 | + EquipmentCategoryNode, |
| 87 | + EquipmentNode, |
| 88 | + HelsinkiProfileDataNode, |
| 89 | + KeywordCategoryNode, |
| 90 | + KeywordGroupNode, |
| 91 | + KeywordNode, |
| 92 | + PaymentOrderNode, |
| 93 | + PurposeNode, |
| 94 | + QualifierNode, |
| 95 | + RecurringReservationNode, |
| 96 | + ReservationCancelReasonNode, |
| 97 | + ReservationDenyReasonNode, |
| 98 | + ReservationMetadataSetNode, |
| 99 | + ReservationNode, |
| 100 | + ReservationPurposeNode, |
| 101 | + ReservationUnitCancellationRuleNode, |
| 102 | + ReservationUnitNode, |
| 103 | + ReservationUnitTypeNode, |
| 104 | + ResourceNode, |
| 105 | + ServiceSectorNode, |
| 106 | + SpaceNode, |
| 107 | + TaxPercentageNode, |
| 108 | + TermsOfUseNode, |
| 109 | + UnitNode, |
| 110 | + UserNode, |
| 111 | +) |
| 112 | +from .types.merchants.permissions import PaymentOrderPermission |
113 | 113 |
|
114 | 114 |
|
115 | 115 | class Query(graphene.ObjectType): |
@@ -264,6 +264,8 @@ class Mutation(graphene.ObjectType): |
264 | 264 | create_allocated_timeslot = AllocatedTimeSlotCreateMutation.Field() |
265 | 265 | delete_allocated_timeslot = AllocatedTimeSlotDeleteMutation.Field() |
266 | 266 | update_reservation_unit_option = ReservationUnitOptionUpdateMutation.Field() |
| 267 | + reject_all_section_options = RejectAllSectionOptionsMutation.Field() |
| 268 | + restore_all_section_options = RestoreAllSectionOptionsMutation.Field() |
267 | 269 | # |
268 | 270 | # Reservable entities |
269 | 271 | update_unit = UnitUpdateMutation.Field() |
|
0 commit comments