Skip to content

Commit

Permalink
feat: Make all carrier settings field optional on types
Browse files Browse the repository at this point in the history
  • Loading branch information
danh91 committed Feb 22, 2024
1 parent cf3e0ac commit 9c4803c
Show file tree
Hide file tree
Showing 7 changed files with 747 additions and 1,390 deletions.
5 changes: 4 additions & 1 deletion modules/graph/karrio/server/graph/schemas/base/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -1081,7 +1081,10 @@ def services(
"__annotations__": {
k: (
typing.Optional[v]
if serializers.is_field_optional(model, k)
if (
k not in ConnectionType.__annotations__
or serializers.is_field_optional(model, k)
)
else v
)
for k, v in annotations.items()
Expand Down
2 changes: 2 additions & 0 deletions packages/types/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,7 @@ export const CARRIER_THEMES: Collection = {
'laposte': 'is-laposte',
'nationex': 'is-nationex',
'fedex': 'is-fedex',
'fedex_ws': 'is-fedex',
'freightcom': 'is-freightcom',
'generic': 'is-generic',
'purolator': 'is-purolator',
Expand Down Expand Up @@ -406,6 +407,7 @@ export const CARRIER_IMAGES: Collection = {
'estafeta': 'generic',
'fastway': 'generic',
'fedex': 'fedex',
'fedex_ws': 'fedex',
'fedex_mail': 'fedex',
'fedex_sameday_city': 'fedex',
'fedex_smartpost': 'fedex',
Expand Down
Loading

0 comments on commit 9c4803c

Please sign in to comment.