karrio-server-graph 2025.5.2__py3-none-any.whl → 2025.5.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- karrio/server/graph/schemas/base/mutations.py +0 -27
- karrio/server/graph/schemas/base/types.py +0 -7
- {karrio_server_graph-2025.5.2.dist-info → karrio_server_graph-2025.5.4.dist-info}/METADATA +1 -1
- {karrio_server_graph-2025.5.2.dist-info → karrio_server_graph-2025.5.4.dist-info}/RECORD +6 -6
- {karrio_server_graph-2025.5.2.dist-info → karrio_server_graph-2025.5.4.dist-info}/WHEEL +0 -0
- {karrio_server_graph-2025.5.2.dist-info → karrio_server_graph-2025.5.4.dist-info}/top_level.txt +0 -0
|
@@ -42,7 +42,6 @@ class UserUpdateMutation(utils.BaseMutation):
|
|
|
42
42
|
|
|
43
43
|
@staticmethod
|
|
44
44
|
@utils.authentication_required
|
|
45
|
-
@utils.authorization_required()
|
|
46
45
|
def mutate(info: Info, **input: inputs.UpdateUserInput) -> "UserUpdateMutation":
|
|
47
46
|
instance = types.User.objects.get(id=info.context.request.user.id)
|
|
48
47
|
|
|
@@ -64,7 +63,6 @@ class WorkspaceConfigMutation(utils.BaseMutation):
|
|
|
64
63
|
|
|
65
64
|
@staticmethod
|
|
66
65
|
@utils.authentication_required
|
|
67
|
-
@utils.authorization_required(["manage_team"])
|
|
68
66
|
def mutate(
|
|
69
67
|
info: Info, **input: inputs.WorkspaceConfigMutationInput
|
|
70
68
|
) -> "WorkspaceConfigMutation":
|
|
@@ -91,7 +89,6 @@ class TokenMutation(utils.BaseMutation):
|
|
|
91
89
|
|
|
92
90
|
@staticmethod
|
|
93
91
|
@utils.authentication_required
|
|
94
|
-
@utils.authorization_required()
|
|
95
92
|
def mutate(
|
|
96
93
|
info: Info,
|
|
97
94
|
key: str = None,
|
|
@@ -129,7 +126,6 @@ class CreateAPIKeyMutation(utils.BaseMutation):
|
|
|
129
126
|
@staticmethod
|
|
130
127
|
@transaction.atomic
|
|
131
128
|
@utils.authentication_required
|
|
132
|
-
@utils.authorization_required()
|
|
133
129
|
@utils.password_required
|
|
134
130
|
def mutate(
|
|
135
131
|
info: Info, password: str, **input: inputs.CreateAPIKeyMutationInput
|
|
@@ -169,7 +165,6 @@ class DeleteAPIKeyMutation(utils.BaseMutation):
|
|
|
169
165
|
|
|
170
166
|
@staticmethod
|
|
171
167
|
@utils.authentication_required
|
|
172
|
-
@utils.authorization_required()
|
|
173
168
|
@utils.password_required
|
|
174
169
|
def mutate(
|
|
175
170
|
info: Info, password: str, **input: inputs.DeleteAPIKeyMutationInput
|
|
@@ -187,7 +182,6 @@ class RequestEmailChangeMutation(utils.BaseMutation):
|
|
|
187
182
|
|
|
188
183
|
@staticmethod
|
|
189
184
|
@utils.authentication_required
|
|
190
|
-
@utils.authorization_required()
|
|
191
185
|
@utils.password_required
|
|
192
186
|
def mutate(
|
|
193
187
|
info: Info, email: str, password: str, redirect_url: str
|
|
@@ -222,7 +216,6 @@ class ConfirmEmailChangeMutation(utils.BaseMutation):
|
|
|
222
216
|
|
|
223
217
|
@staticmethod
|
|
224
218
|
@utils.authentication_required
|
|
225
|
-
@utils.authorization_required()
|
|
226
219
|
def mutate(info: Info, token: str) -> "ConfirmEmailChangeMutation":
|
|
227
220
|
validated_token = ConfirmationToken(token)
|
|
228
221
|
user = info.context.request.user
|
|
@@ -295,7 +288,6 @@ class ChangePasswordMutation(utils.BaseMutation):
|
|
|
295
288
|
|
|
296
289
|
@staticmethod
|
|
297
290
|
@utils.authentication_required
|
|
298
|
-
@utils.authorization_required()
|
|
299
291
|
def mutate(
|
|
300
292
|
info: Info, **input: inputs.ChangePasswordMutationInput
|
|
301
293
|
) -> "ChangePasswordMutation":
|
|
@@ -364,7 +356,6 @@ class EnableMultiFactorMutation(utils.BaseMutation):
|
|
|
364
356
|
|
|
365
357
|
@staticmethod
|
|
366
358
|
@utils.authentication_required
|
|
367
|
-
@utils.authorization_required()
|
|
368
359
|
def mutate(
|
|
369
360
|
info: Info, **input: inputs.EnableMultiFactorMutationInput
|
|
370
361
|
) -> "EnableMultiFactorMutation":
|
|
@@ -394,7 +385,6 @@ class ConfirmMultiFactorMutation(utils.BaseMutation):
|
|
|
394
385
|
|
|
395
386
|
@staticmethod
|
|
396
387
|
@utils.authentication_required
|
|
397
|
-
@utils.authorization_required()
|
|
398
388
|
def mutate(
|
|
399
389
|
info: Info, **input: inputs.ConfirmMultiFactorMutationInput
|
|
400
390
|
) -> "ConfirmMultiFactorMutation":
|
|
@@ -429,7 +419,6 @@ class DisableMultiFactorMutation(utils.BaseMutation):
|
|
|
429
419
|
|
|
430
420
|
@staticmethod
|
|
431
421
|
@utils.authentication_required
|
|
432
|
-
@utils.authorization_required()
|
|
433
422
|
def mutate(
|
|
434
423
|
info: Info, **input: inputs.DisableMultiFactorMutationInput
|
|
435
424
|
) -> "DisableMultiFactorMutation":
|
|
@@ -452,7 +441,6 @@ class MetadataMutation(utils.BaseMutation):
|
|
|
452
441
|
|
|
453
442
|
@staticmethod
|
|
454
443
|
@utils.authentication_required
|
|
455
|
-
@utils.authorization_required()
|
|
456
444
|
def mutate(
|
|
457
445
|
info: Info,
|
|
458
446
|
id: str,
|
|
@@ -479,7 +467,6 @@ class DeleteMutation(utils.BaseMutation):
|
|
|
479
467
|
|
|
480
468
|
@staticmethod
|
|
481
469
|
@utils.authentication_required
|
|
482
|
-
@utils.authorization_required()
|
|
483
470
|
def mutate(
|
|
484
471
|
info: Info,
|
|
485
472
|
model,
|
|
@@ -513,7 +500,6 @@ class CreateRateSheetMutation(utils.BaseMutation):
|
|
|
513
500
|
@staticmethod
|
|
514
501
|
@transaction.atomic
|
|
515
502
|
@utils.authentication_required
|
|
516
|
-
@utils.authorization_required(["manage_carriers"])
|
|
517
503
|
def mutate(
|
|
518
504
|
info: Info, **input: inputs.CreateRateSheetMutationInput
|
|
519
505
|
) -> "CreateRateSheetMutation":
|
|
@@ -557,7 +543,6 @@ class UpdateRateSheetMutation(utils.BaseMutation):
|
|
|
557
543
|
@staticmethod
|
|
558
544
|
@transaction.atomic
|
|
559
545
|
@utils.authentication_required
|
|
560
|
-
@utils.authorization_required(["manage_carriers"])
|
|
561
546
|
def mutate(
|
|
562
547
|
info: Info, **input: inputs.UpdateRateSheetMutationInput
|
|
563
548
|
) -> "UpdateRateSheetMutation":
|
|
@@ -619,7 +604,6 @@ class UpdateRateSheetZoneCellMutation(utils.BaseMutation):
|
|
|
619
604
|
@staticmethod
|
|
620
605
|
@transaction.atomic
|
|
621
606
|
@utils.authentication_required
|
|
622
|
-
@utils.authorization_required(["manage_carriers"])
|
|
623
607
|
def mutate(
|
|
624
608
|
info: Info, **input: inputs.UpdateRateSheetZoneCellMutationInput
|
|
625
609
|
) -> "UpdateRateSheetZoneCellMutation":
|
|
@@ -646,7 +630,6 @@ class BatchUpdateRateSheetCellsMutation(utils.BaseMutation):
|
|
|
646
630
|
@staticmethod
|
|
647
631
|
@transaction.atomic
|
|
648
632
|
@utils.authentication_required
|
|
649
|
-
@utils.authorization_required(["manage_carriers"])
|
|
650
633
|
def mutate(
|
|
651
634
|
info: Info, **input: inputs.BatchUpdateRateSheetCellsMutationInput
|
|
652
635
|
) -> "BatchUpdateRateSheetCellsMutation":
|
|
@@ -711,7 +694,6 @@ class DeleteRateSheetServiceMutation(utils.BaseMutation):
|
|
|
711
694
|
@staticmethod
|
|
712
695
|
@transaction.atomic
|
|
713
696
|
@utils.authentication_required
|
|
714
|
-
@utils.authorization_required(["manage_carriers"])
|
|
715
697
|
def mutate(
|
|
716
698
|
info: Info, **input: inputs.DeleteRateSheetServiceMutationInput
|
|
717
699
|
) -> "DeleteRateSheetServiceMutation":
|
|
@@ -733,7 +715,6 @@ class PartialShipmentMutation(utils.BaseMutation):
|
|
|
733
715
|
|
|
734
716
|
@staticmethod
|
|
735
717
|
@utils.authentication_required
|
|
736
|
-
@utils.authorization_required(["manage_shipments"])
|
|
737
718
|
def mutate(
|
|
738
719
|
info: Info, **input: inputs.PartialShipmentMutationInput
|
|
739
720
|
) -> "PartialShipmentMutation":
|
|
@@ -765,7 +746,6 @@ class ChangeShipmentStatusMutation(utils.BaseMutation):
|
|
|
765
746
|
|
|
766
747
|
@staticmethod
|
|
767
748
|
@utils.authentication_required
|
|
768
|
-
@utils.authorization_required(["manage_shipments"])
|
|
769
749
|
def mutate(
|
|
770
750
|
info: Info, **input: inputs.ChangeShipmentStatusMutationInput
|
|
771
751
|
) -> "ChangeShipmentStatusMutation":
|
|
@@ -805,7 +785,6 @@ def create_template_mutation(name: str, template_type: str) -> typing.Type:
|
|
|
805
785
|
|
|
806
786
|
@staticmethod
|
|
807
787
|
@utils.authentication_required
|
|
808
|
-
@utils.authorization_required()
|
|
809
788
|
@transaction.atomic
|
|
810
789
|
def mutate(info: Info, **input) -> name: # type:ignore
|
|
811
790
|
data = input.copy()
|
|
@@ -868,7 +847,6 @@ class CreateCarrierConnectionMutation(utils.BaseMutation):
|
|
|
868
847
|
@staticmethod
|
|
869
848
|
@utils.error_wrapper
|
|
870
849
|
@utils.authentication_required
|
|
871
|
-
@utils.authorization_required(["write_carriers"])
|
|
872
850
|
def mutate(info: Info, **input) -> "CreateCarrierConnectionMutation":
|
|
873
851
|
data = input.copy()
|
|
874
852
|
|
|
@@ -893,7 +871,6 @@ class UpdateCarrierConnectionMutation(utils.BaseMutation):
|
|
|
893
871
|
@staticmethod
|
|
894
872
|
@utils.error_wrapper
|
|
895
873
|
@utils.authentication_required
|
|
896
|
-
@utils.authorization_required(["write_carriers"])
|
|
897
874
|
def mutate(info: Info, **input) -> "UpdateCarrierConnectionMutation":
|
|
898
875
|
data = input.copy()
|
|
899
876
|
id = data.get("id")
|
|
@@ -920,7 +897,6 @@ class SystemCarrierMutation(utils.BaseMutation):
|
|
|
920
897
|
@staticmethod
|
|
921
898
|
@utils.error_wrapper
|
|
922
899
|
@utils.authentication_required
|
|
923
|
-
@utils.authorization_required(["manage_carriers"])
|
|
924
900
|
def mutate(
|
|
925
901
|
info: Info, **input: inputs.SystemCarrierMutationInput
|
|
926
902
|
) -> "SystemCarrierMutation":
|
|
@@ -965,7 +941,6 @@ class UpdateServiceZoneMutation(utils.BaseMutation):
|
|
|
965
941
|
@staticmethod
|
|
966
942
|
@transaction.atomic
|
|
967
943
|
@utils.authentication_required
|
|
968
|
-
@utils.authorization_required(["manage_carriers"])
|
|
969
944
|
def mutate(
|
|
970
945
|
info: Info, **input: inputs.UpdateServiceZoneMutationInput
|
|
971
946
|
) -> "UpdateServiceZoneMutation":
|
|
@@ -989,7 +964,6 @@ class CreateMetafieldMutation(utils.BaseMutation):
|
|
|
989
964
|
|
|
990
965
|
@staticmethod
|
|
991
966
|
@utils.authentication_required
|
|
992
|
-
@utils.authorization_required()
|
|
993
967
|
def mutate(
|
|
994
968
|
info: Info, **input: inputs.CreateMetafieldInput
|
|
995
969
|
) -> "CreateMetafieldMutation":
|
|
@@ -1013,7 +987,6 @@ class UpdateMetafieldMutation(utils.BaseMutation):
|
|
|
1013
987
|
|
|
1014
988
|
@staticmethod
|
|
1015
989
|
@utils.authentication_required
|
|
1016
|
-
@utils.authorization_required()
|
|
1017
990
|
def mutate(
|
|
1018
991
|
info: Info, **input: inputs.UpdateMetafieldInput
|
|
1019
992
|
) -> "UpdateMetafieldMutation":
|
|
@@ -1043,13 +1043,11 @@ class ManifestType:
|
|
|
1043
1043
|
|
|
1044
1044
|
@staticmethod
|
|
1045
1045
|
@utils.authentication_required
|
|
1046
|
-
@utils.authorization_required(["manage_shipments"])
|
|
1047
1046
|
def resolve(info, id: str) -> typing.Optional["ManifestType"]:
|
|
1048
1047
|
return manager.Manifest.access_by(info.context.request).filter(id=id).first()
|
|
1049
1048
|
|
|
1050
1049
|
@staticmethod
|
|
1051
1050
|
@utils.authentication_required
|
|
1052
|
-
@utils.authorization_required(["manage_shipments"])
|
|
1053
1051
|
def resolve_list(
|
|
1054
1052
|
info,
|
|
1055
1053
|
filter: typing.Optional[inputs.ManifestFilter] = strawberry.UNSET,
|
|
@@ -1134,13 +1132,11 @@ class ShipmentType:
|
|
|
1134
1132
|
|
|
1135
1133
|
@staticmethod
|
|
1136
1134
|
@utils.authentication_required
|
|
1137
|
-
@utils.authorization_required(["manage_shipments"])
|
|
1138
1135
|
def resolve(info, id: str) -> typing.Optional["ShipmentType"]:
|
|
1139
1136
|
return manager.Shipment.access_by(info.context.request).filter(id=id).first()
|
|
1140
1137
|
|
|
1141
1138
|
@staticmethod
|
|
1142
1139
|
@utils.authentication_required
|
|
1143
|
-
@utils.authorization_required(["manage_shipments"])
|
|
1144
1140
|
def resolve_list(
|
|
1145
1141
|
info,
|
|
1146
1142
|
filter: typing.Optional[inputs.ShipmentFilter] = strawberry.UNSET,
|
|
@@ -1262,13 +1258,11 @@ class RateSheetType:
|
|
|
1262
1258
|
|
|
1263
1259
|
@staticmethod
|
|
1264
1260
|
@utils.authentication_required
|
|
1265
|
-
@utils.authorization_required(["manage_carriers"])
|
|
1266
1261
|
def resolve(info, id: str) -> typing.Optional["RateSheetType"]:
|
|
1267
1262
|
return providers.RateSheet.access_by(info.context.request).filter(id=id).first()
|
|
1268
1263
|
|
|
1269
1264
|
@staticmethod
|
|
1270
1265
|
@utils.authentication_required
|
|
1271
|
-
@utils.authorization_required(["manage_carriers"])
|
|
1272
1266
|
def resolve_list(
|
|
1273
1267
|
info,
|
|
1274
1268
|
filter: typing.Optional[inputs.RateSheetFilter] = strawberry.UNSET,
|
|
@@ -1354,7 +1348,6 @@ class CarrierConnectionType:
|
|
|
1354
1348
|
@staticmethod
|
|
1355
1349
|
@utils.utils.error_wrapper
|
|
1356
1350
|
@utils.authentication_required
|
|
1357
|
-
@utils.authorization_required(["manage_carriers"])
|
|
1358
1351
|
def resolve_list_legacy(
|
|
1359
1352
|
info,
|
|
1360
1353
|
filter: typing.Optional[inputs.CarrierFilter] = strawberry.UNSET,
|
|
@@ -17,8 +17,8 @@ karrio/server/graph/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5
|
|
|
17
17
|
karrio/server/graph/schemas/__init__.py,sha256=Kn-I1j3HP3jwZccpz6FL9r1k6b3UEAMVh2kFPCKNS0w,80
|
|
18
18
|
karrio/server/graph/schemas/base/__init__.py,sha256=nnOfynQW842qOA0qD6bYz8GSHQCQeBW36vbq0sqRkJs,15121
|
|
19
19
|
karrio/server/graph/schemas/base/inputs.py,sha256=p6_u4sG1cbd18CpPjkyG3CD4cbvf4gBa3De4RDgCZ80,21419
|
|
20
|
-
karrio/server/graph/schemas/base/mutations.py,sha256=
|
|
21
|
-
karrio/server/graph/schemas/base/types.py,sha256=
|
|
20
|
+
karrio/server/graph/schemas/base/mutations.py,sha256=Soul3Yr3FMjwtFdQmAPjji6wvaw_pLa3hPyljJ31j2Q,33843
|
|
21
|
+
karrio/server/graph/schemas/base/types.py,sha256=E11JA5nYChHgIF5VsQ0-S4s4UUnUdbb_bZk-AHgmhKQ,47118
|
|
22
22
|
karrio/server/graph/templates/graphql/graphiql.html,sha256=MQjQbBqoRE0QLsOUck8SaXo6B2oJO8dT6YZzUqbDan0,3786
|
|
23
23
|
karrio/server/graph/templates/karrio/email_change_email.html,sha256=gr55F97GYzY27TVKGl49037yd60eSYD0b0GXRlyoco4,552
|
|
24
24
|
karrio/server/graph/templates/karrio/email_change_email.txt,sha256=NXXuzLR63hn2F1fVAjzmuguptuuTvujwqI7YLSrQoio,431
|
|
@@ -33,7 +33,7 @@ karrio/server/graph/tests/test_registration.py,sha256=0vCTqlsLc0cl2m78umgfm7grnD
|
|
|
33
33
|
karrio/server/graph/tests/test_templates.py,sha256=WVU6vcfr6tEk917uSn1dECU8bkQtgD7FNuE-GJuFido,21626
|
|
34
34
|
karrio/server/graph/tests/test_user_info.py,sha256=K91BL7SgxLWflCZriSVI8Vt5M5RIqmSCHKrgN2w8GmM,1928
|
|
35
35
|
karrio/server/settings/graph.py,sha256=cz2yQHbp3xCfyFKuUkPEFfkI2fFVggExIY49wGz7mt0,106
|
|
36
|
-
karrio_server_graph-2025.5.
|
|
37
|
-
karrio_server_graph-2025.5.
|
|
38
|
-
karrio_server_graph-2025.5.
|
|
39
|
-
karrio_server_graph-2025.5.
|
|
36
|
+
karrio_server_graph-2025.5.4.dist-info/METADATA,sha256=epNhlgcTiQ9nThnSDlka6dWos-uAT3Dm_fIsdEKteeM,740
|
|
37
|
+
karrio_server_graph-2025.5.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
38
|
+
karrio_server_graph-2025.5.4.dist-info/top_level.txt,sha256=D1D7x8R3cTfjF_15mfiO7wCQ5QMtuM4x8GaPr7z5i78,12
|
|
39
|
+
karrio_server_graph-2025.5.4.dist-info/RECORD,,
|
|
File without changes
|
{karrio_server_graph-2025.5.2.dist-info → karrio_server_graph-2025.5.4.dist-info}/top_level.txt
RENAMED
|
File without changes
|