fgo-api-types 2025.9.18.13.21.51__tar.gz → 2025.9.21.13.4.20__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fgo-api-types
3
- Version: 2025.9.18.13.21.51
3
+ Version: 2025.9.21.13.4.20
4
4
  Summary: Provide Pydantic types from FGO API
5
5
  License-File: LICENSE
6
6
  Author: squaresmile
@@ -45,6 +45,7 @@ from .gameenums import (
45
45
  NiceFuncType,
46
46
  NiceGender,
47
47
  NicePayType,
48
+ NicePurchaseType,
48
49
  NiceQuestFlag,
49
50
  NiceQuestType,
50
51
  NiceShopType,
@@ -573,6 +574,10 @@ SHOP_TYPE_NAME_REVERSE: dict[NiceShopType, int] = {
573
574
 
574
575
  PAY_TYPE_NAME_REVERSE: dict[NicePayType, int] = {v: k for k, v in PAY_TYPE_NAME.items()}
575
576
 
577
+ PURCHASE_TYPE_NAME_REVERSE: dict[NicePurchaseType, int] = {
578
+ v: k for k, v in PURCHASE_TYPE_NAME.items()
579
+ }
580
+
576
581
 
577
582
  ### EventPointActivity.objectType ###
578
583
 
@@ -25,6 +25,7 @@ from .gameenums import (
25
25
  NiceGender,
26
26
  NiceItemType,
27
27
  NicePayType,
28
+ NicePurchaseType,
28
29
  NiceQuestFlag,
29
30
  NiceQuestType,
30
31
  NiceShopType,
@@ -522,6 +523,7 @@ class ShopSearchQueryParams:
522
523
  eventId: list[int] = Query([])
523
524
  type: list[NiceShopType] = Query([])
524
525
  payType: list[NicePayType] = Query([])
526
+ purchaseType: list[NicePurchaseType] = Query([])
525
527
 
526
528
  def hasSearchParams(self) -> bool:
527
529
  return any(
@@ -530,6 +532,7 @@ class ShopSearchQueryParams:
530
532
  self.eventId,
531
533
  self.type,
532
534
  self.payType,
535
+ self.purchaseType,
533
536
  ]
534
537
  )
535
538
 
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "fgo-api-types"
3
- version = "2025.09.18.13.21.51"
3
+ version = "2025.09.21.13.04.20"
4
4
  description = "Provide Pydantic types from FGO API"
5
5
  authors = ["squaresmile <squaresmile@protonmail.com>"]
6
6
  readme = "README.md"