karrio-server-graph 2025.5rc23__py3-none-any.whl → 2025.5rc24__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/types.py +38 -11
- {karrio_server_graph-2025.5rc23.dist-info → karrio_server_graph-2025.5rc24.dist-info}/METADATA +1 -1
- {karrio_server_graph-2025.5rc23.dist-info → karrio_server_graph-2025.5rc24.dist-info}/RECORD +5 -5
- {karrio_server_graph-2025.5rc23.dist-info → karrio_server_graph-2025.5rc24.dist-info}/WHEEL +0 -0
- {karrio_server_graph-2025.5rc23.dist-info → karrio_server_graph-2025.5rc24.dist-info}/top_level.txt +0 -0
|
@@ -182,8 +182,7 @@ class WorkspaceConfigType:
|
|
|
182
182
|
# Create a default workspace config if none exists
|
|
183
183
|
if workspace_config is None:
|
|
184
184
|
workspace_config = auth.WorkspaceConfig.objects.create(
|
|
185
|
-
created_by=info.context.request.user,
|
|
186
|
-
config={}
|
|
185
|
+
created_by=info.context.request.user, config={}
|
|
187
186
|
)
|
|
188
187
|
|
|
189
188
|
return workspace_config
|
|
@@ -289,7 +288,7 @@ class SystemUsageType:
|
|
|
289
288
|
count=models.Count("id"),
|
|
290
289
|
amount=models.Sum(
|
|
291
290
|
functions.Cast("selected_rate__total_charge", models.FloatField())
|
|
292
|
-
)
|
|
291
|
+
),
|
|
293
292
|
)
|
|
294
293
|
.order_by("-date")
|
|
295
294
|
)
|
|
@@ -312,10 +311,20 @@ class SystemUsageType:
|
|
|
312
311
|
total_trackers = sum([item["count"] for item in tracker_count], 0)
|
|
313
312
|
total_shipments = sum([item["count"] for item in shipment_count], 0)
|
|
314
313
|
order_volume = lib.to_decimal(
|
|
315
|
-
sum(
|
|
314
|
+
sum(
|
|
315
|
+
[item["count"] for item in order_volumes if item["count"] is not None],
|
|
316
|
+
0.0,
|
|
317
|
+
)
|
|
316
318
|
)
|
|
317
319
|
total_shipping_spend = lib.to_decimal(
|
|
318
|
-
sum(
|
|
320
|
+
sum(
|
|
321
|
+
[
|
|
322
|
+
item["amount"]
|
|
323
|
+
for item in shipping_spend
|
|
324
|
+
if item["amount"] is not None
|
|
325
|
+
],
|
|
326
|
+
0.0,
|
|
327
|
+
)
|
|
319
328
|
)
|
|
320
329
|
user_count = User.objects.count()
|
|
321
330
|
organization_count = 1
|
|
@@ -334,12 +343,30 @@ class SystemUsageType:
|
|
|
334
343
|
total_shipments=total_shipments,
|
|
335
344
|
organization_count=organization_count,
|
|
336
345
|
total_shipping_spend=total_shipping_spend,
|
|
337
|
-
api_errors=[
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
346
|
+
api_errors=[
|
|
347
|
+
utils.UsageStatType.parse(item, label="api_errors")
|
|
348
|
+
for item in api_errors
|
|
349
|
+
],
|
|
350
|
+
api_requests=[
|
|
351
|
+
utils.UsageStatType.parse(item, label="api_requests")
|
|
352
|
+
for item in api_requests
|
|
353
|
+
],
|
|
354
|
+
order_volumes=[
|
|
355
|
+
utils.UsageStatType.parse(item, label="order_volumes")
|
|
356
|
+
for item in order_volumes
|
|
357
|
+
],
|
|
358
|
+
shipment_count=[
|
|
359
|
+
utils.UsageStatType.parse(item, label="shipment_count")
|
|
360
|
+
for item in shipment_count
|
|
361
|
+
],
|
|
362
|
+
shipping_spend=[
|
|
363
|
+
utils.UsageStatType.parse(item, label="shipping_spend")
|
|
364
|
+
for item in shipping_spend
|
|
365
|
+
],
|
|
366
|
+
tracker_count=[
|
|
367
|
+
utils.UsageStatType.parse(item, label="tracker_count")
|
|
368
|
+
for item in tracker_count
|
|
369
|
+
],
|
|
343
370
|
)
|
|
344
371
|
|
|
345
372
|
|
{karrio_server_graph-2025.5rc23.dist-info → karrio_server_graph-2025.5rc24.dist-info}/RECORD
RENAMED
|
@@ -18,7 +18,7 @@ karrio/server/graph/schemas/__init__.py,sha256=Kn-I1j3HP3jwZccpz6FL9r1k6b3UEAMVh
|
|
|
18
18
|
karrio/server/graph/schemas/base/__init__.py,sha256=nnOfynQW842qOA0qD6bYz8GSHQCQeBW36vbq0sqRkJs,15121
|
|
19
19
|
karrio/server/graph/schemas/base/inputs.py,sha256=i6_PN-WD1mu_qH-2oIgfDUbgMRyUZmdr6gyySwyEShg,21307
|
|
20
20
|
karrio/server/graph/schemas/base/mutations.py,sha256=IUe7rvV4bI95iJ-pEg3YK9Qb0PVM9xgd0IvjOwDPvsM,34538
|
|
21
|
-
karrio/server/graph/schemas/base/types.py,sha256=
|
|
21
|
+
karrio/server/graph/schemas/base/types.py,sha256=r0zVsMlQJ6XNV22mcO63i0MlI6PGb9YZSCA2-Ss3k1M,47553
|
|
22
22
|
karrio/server/graph/templates/graphql/graphiql.html,sha256=MQjQbBqoRE0QLsOUck8SaXo6B2oJO8dT6YZzUqbDan0,3786
|
|
23
23
|
karrio/server/graph/templates/karrio/email_change_email.html,sha256=YHqTy9VGV_s7kio57Tg3v7TCIN3QlnPHi2ioTOcHJLE,467
|
|
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=jK8ZCmhtvKZ9L3yqSIK1-JXzYT
|
|
|
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.
|
|
37
|
-
karrio_server_graph-2025.
|
|
38
|
-
karrio_server_graph-2025.
|
|
39
|
-
karrio_server_graph-2025.
|
|
36
|
+
karrio_server_graph-2025.5rc24.dist-info/METADATA,sha256=6oXfVglwpE8lXaL44C7jsF9ZJGDqdvKERgnCpN4JsEk,744
|
|
37
|
+
karrio_server_graph-2025.5rc24.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
38
|
+
karrio_server_graph-2025.5rc24.dist-info/top_level.txt,sha256=D1D7x8R3cTfjF_15mfiO7wCQ5QMtuM4x8GaPr7z5i78,12
|
|
39
|
+
karrio_server_graph-2025.5rc24.dist-info/RECORD,,
|
|
File without changes
|
{karrio_server_graph-2025.5rc23.dist-info → karrio_server_graph-2025.5rc24.dist-info}/top_level.txt
RENAMED
|
File without changes
|