lingxingapi 2.1.1__tar.gz → 2.1.3__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.
Files changed (73) hide show
  1. {lingxingapi-2.1.1/src/lingxingapi.egg-info → lingxingapi-2.1.3}/PKG-INFO +1 -1
  2. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/setup.cfg +1 -1
  3. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/src/lingxingapi/ads/api.py +36 -32
  4. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/src/lingxingapi/ads/schema.py +35 -27
  5. {lingxingapi-2.1.1 → lingxingapi-2.1.3/src/lingxingapi.egg-info}/PKG-INFO +1 -1
  6. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/LICENSE +0 -0
  7. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/MANIFEST.in +0 -0
  8. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/README.md +0 -0
  9. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/pyproject.toml +0 -0
  10. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/src/lingxingapi/__init__.py +0 -0
  11. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/src/lingxingapi/ads/__init__.py +0 -0
  12. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/src/lingxingapi/ads/param.py +0 -0
  13. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/src/lingxingapi/ads/route.py +0 -0
  14. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/src/lingxingapi/api.py +0 -0
  15. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/src/lingxingapi/base/__init__.py +0 -0
  16. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/src/lingxingapi/base/api.py +0 -0
  17. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/src/lingxingapi/base/param.py +0 -0
  18. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/src/lingxingapi/base/route.py +0 -0
  19. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/src/lingxingapi/base/schema.py +0 -0
  20. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/src/lingxingapi/basic/__init__.py +0 -0
  21. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/src/lingxingapi/basic/api.py +0 -0
  22. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/src/lingxingapi/basic/param.py +0 -0
  23. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/src/lingxingapi/basic/route.py +0 -0
  24. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/src/lingxingapi/basic/schema.py +0 -0
  25. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/src/lingxingapi/errors.py +0 -0
  26. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/src/lingxingapi/fba/__init__.py +0 -0
  27. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/src/lingxingapi/fba/api.py +0 -0
  28. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/src/lingxingapi/fba/param.py +0 -0
  29. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/src/lingxingapi/fba/route.py +0 -0
  30. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/src/lingxingapi/fba/schema.py +0 -0
  31. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/src/lingxingapi/fields.py +0 -0
  32. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/src/lingxingapi/finance/__init__.py +0 -0
  33. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/src/lingxingapi/finance/api.py +0 -0
  34. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/src/lingxingapi/finance/param.py +0 -0
  35. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/src/lingxingapi/finance/route.py +0 -0
  36. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/src/lingxingapi/finance/schema.py +0 -0
  37. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/src/lingxingapi/product/__init__.py +0 -0
  38. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/src/lingxingapi/product/api.py +0 -0
  39. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/src/lingxingapi/product/param.py +0 -0
  40. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/src/lingxingapi/product/route.py +0 -0
  41. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/src/lingxingapi/product/schema.py +0 -0
  42. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/src/lingxingapi/purchase/__init__.py +0 -0
  43. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/src/lingxingapi/purchase/api.py +0 -0
  44. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/src/lingxingapi/purchase/param.py +0 -0
  45. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/src/lingxingapi/purchase/route.py +0 -0
  46. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/src/lingxingapi/purchase/schema.py +0 -0
  47. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/src/lingxingapi/sales/__init__.py +0 -0
  48. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/src/lingxingapi/sales/api.py +0 -0
  49. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/src/lingxingapi/sales/param.py +0 -0
  50. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/src/lingxingapi/sales/route.py +0 -0
  51. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/src/lingxingapi/sales/schema.py +0 -0
  52. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/src/lingxingapi/source/__init__.py +0 -0
  53. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/src/lingxingapi/source/api.py +0 -0
  54. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/src/lingxingapi/source/param.py +0 -0
  55. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/src/lingxingapi/source/route.py +0 -0
  56. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/src/lingxingapi/source/schema.py +0 -0
  57. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/src/lingxingapi/tools/__init__.py +0 -0
  58. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/src/lingxingapi/tools/api.py +0 -0
  59. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/src/lingxingapi/tools/param.py +0 -0
  60. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/src/lingxingapi/tools/route.py +0 -0
  61. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/src/lingxingapi/tools/schema.py +0 -0
  62. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/src/lingxingapi/tunnel.py +0 -0
  63. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/src/lingxingapi/utils.py +0 -0
  64. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/src/lingxingapi/warehourse/__init__.py +0 -0
  65. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/src/lingxingapi/warehourse/api.py +0 -0
  66. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/src/lingxingapi/warehourse/param.py +0 -0
  67. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/src/lingxingapi/warehourse/route.py +0 -0
  68. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/src/lingxingapi/warehourse/schema.py +0 -0
  69. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/src/lingxingapi.egg-info/SOURCES.txt +0 -0
  70. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/src/lingxingapi.egg-info/dependency_links.txt +0 -0
  71. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/src/lingxingapi.egg-info/not-zip-safe +0 -0
  72. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/src/lingxingapi.egg-info/requires.txt +0 -0
  73. {lingxingapi-2.1.1 → lingxingapi-2.1.3}/src/lingxingapi.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lingxingapi
3
- Version: 2.1.1
3
+ Version: 2.1.3
4
4
  Summary: An async API client for LingXing (领星) ERP
5
5
  Home-page: https://github.com/AresJef/LingXingApi
6
6
  Author: Jiefu Chen
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  name = lingxingapi
3
- version = 2.1.1
3
+ version = 2.1.3
4
4
  author = Jiefu Chen
5
5
  author_email = keppa1991@163.com
6
6
  description = An async API client for LingXing (领星) ERP
@@ -753,14 +753,16 @@ class AdsAPI(BaseAPI):
753
753
  "campaign_id": 397************,
754
754
  # 广告组ID
755
755
  "ad_group_id": 0,
756
+ # 否定关键词ID [原字段 'target_id']
757
+ "negative_keyword_id": 389************,
756
758
  # 否定关键词文本 [原字段 'negative_text']
757
- "keyword_text": "inexpensive",
759
+ "negative_keyword_text": "edible",
758
760
  # 否定匹配方式 [原字段 'negative_match_type']
759
- "match_type": "negativePhrase",
761
+ "negative_keyword_match_type": "negativePhrase",
760
762
  # 广告状态
761
763
  "state": "enabled",
762
764
  # 服务状态 [原字段 'serving_status']
763
- "status": "PORTFOLIO_OUT_OF_BUDGET",
765
+ "status": "CAMPAIGN_PAUSED",
764
766
  # 创建时间 (UTC毫秒时间戳) [原字段 'creation_date']
765
767
  "create_time_ts": 1744989374515,
766
768
  # 更新时间 (UTC毫秒时间戳) [原字段 'last_updated_date']
@@ -845,18 +847,20 @@ class AdsAPI(BaseAPI):
845
847
  "campaign_id": 397************,
846
848
  # 广告组ID
847
849
  "ad_group_id": 335************,
848
- # 否定投放类型 [原字段 'negative_type']
849
- "target_type": "negativeAsin",
850
- # 否定投放文本 [原字段 'negative_text']
851
- "target_text": "B0C*******",
850
+ # 否定目标ID [原字段 'target_id']
851
+ "negative_target_id": 295************,
852
+ # 否定目标文本 [原字段 'negative_text']
853
+ "negative_target_text": "B07*******",
854
+ # 否定目标匹配类型 [原字段 'negative_type']
855
+ "negative_target_match_type": "negativeAsin",
852
856
  # 广告状态
853
857
  "state": "enabled",
854
858
  # 服务状态 [原字段 'serving_status']
855
- "status": "PORTFOLIO_OUT_OF_BUDGET",
859
+ "status": "CAMPAIGN_PAUSED",
856
860
  # 创建时间 (UTC毫秒时间戳) [原字段 'creation_date']
857
- "create_time_ts": 1744989374515,
861
+ "create_time_ts": 1750758047854,
858
862
  # 更新时间 (UTC毫秒时间戳) [原字段 'last_updated_date']
859
- "update_time_ts": 1744989374649,
863
+ "update_time_ts": 1750758047998,
860
864
  },
861
865
  ...
862
866
  ],
@@ -1488,12 +1492,12 @@ class AdsAPI(BaseAPI):
1488
1492
  "campaign_id": 517************,
1489
1493
  # 广告组ID
1490
1494
  "ad_group_id": 434************,
1491
- # 否定关键词ID
1492
- "keyword_id": 562************,
1493
- # 否定关键词文本
1494
- "keyword_text": "cheap",
1495
- # 否定关键词匹配类型
1496
- "match_type": "negativePhrase",
1495
+ # 否定关键词ID [原字段 'keyword_id']
1496
+ "negative_keyword_id": 562************,
1497
+ # 否定关键词文本 [原字段 'negative_text']
1498
+ "negative_keyword_text": "cheap",
1499
+ # 否定匹配方式 [原字段 'negative_match_type']
1500
+ "negative_keyword_match_type": "negativePhrase",
1497
1501
  # 广告状态
1498
1502
  "state": "enabled",
1499
1503
  # 服务状态 [原字段 'serving_status']
@@ -1585,14 +1589,14 @@ class AdsAPI(BaseAPI):
1585
1589
  "campaign_id": 517************,
1586
1590
  # 广告组ID
1587
1591
  "ad_group_id": 434************,
1588
- # 否定目标商品广告ID
1589
- "target_id": 562************,
1590
- # 否定目标定位类型
1591
- "expression_type": "manual",
1592
- # 否定目标定位表达式 (JSON 字符串)
1593
- "expression": '[{"type": "asinSameAs", "value": "B00*******"}]',
1594
- # 否定目标定位解析表达式 (JSON 字符串) [原字段 'resolved_expression']
1595
- "expression_resolved": '[{"type": "asinSameAs", "value": "B00*******"}]',
1592
+ # 否定目标ID [原字段 'target_id']
1593
+ "negative_target_id": 562************,
1594
+ # 否定定位表达式 (JSON 字符串) [原字段 'expression']
1595
+ "negative_expression": '[{"type": "asinSameAs", "value": "B00*******"}]',
1596
+ # 否定定位解析表达式 (JSON 字符串) [原字段 'resolved_expression']
1597
+ "negative_expression_resolved": '[{"type": "asinSameAs", "value": "B00*******"}]',
1598
+ # 否定定位类型 [原字段 'expression_type']
1599
+ "negative_expression_type": "manual",
1596
1600
  # 广告状态
1597
1601
  "state": "enabled",
1598
1602
  # 服务状态 [原字段 'serving_status']
@@ -2085,14 +2089,14 @@ class AdsAPI(BaseAPI):
2085
2089
  "campaign_id": 536************,
2086
2090
  # 广告组ID
2087
2091
  "ad_group_id": 385************,
2088
- # 否定目标商品广告ID
2089
- "target_id": 560************,
2090
- # 否定目标定位类型
2091
- "expression_type": "manual",
2092
- # 否定目标定位表达式 (JSON 字符串)
2093
- "expression": '[{"type": "asinSameAs", "value": "B0C*******"}]',
2094
- # 否定目标定位解析表达式 (JSON 字符串) [原字段 'resolved_expression']
2095
- "expression_resolved": '[{"type": "asinSameAs", "value": "B0C*******"}]',
2092
+ # 否定目标ID [原字段 'target_id']
2093
+ "negative_target_id": 560************,
2094
+ # 否定定位表达式 (JSON 字符串) [原字段 'expression']
2095
+ "negative_expression": '[{"type": "asinSameAs", "value": "B0C*******"}]',
2096
+ # 否定定位解析表达式 (JSON 字符串) [原字段 'resolved_expression']
2097
+ "negative_expression_resolved": '[{"type": "asinSameAs", "value": "B0C*******"}]',
2098
+ # 否定定位类型 [原字段 'expression_type']
2099
+ "negative_expression_type": "manual",
2096
2100
  # 广告状态
2097
2101
  "state": "enabled",
2098
2102
  # 服务状态 [原字段 'serving_status']
@@ -247,10 +247,12 @@ class SpNegativeKeyword(BaseModel):
247
247
  campaign_id: int
248
248
  # 广告组ID
249
249
  ad_group_id: IntOrNone2Zero
250
+ # 否定关键词ID [原字段 'target_id']
251
+ negative_keyword_id: int = Field(validation_alias="target_id")
250
252
  # 否定关键词文本 [原字段 'negative_text']
251
- keyword_text: StrOrNone2Blank = Field(validation_alias="negative_text")
253
+ negative_keyword_text: str = Field(validation_alias="negative_text")
252
254
  # 否定匹配方式 [原字段 'negative_match_type']
253
- match_type: StrOrNone2Blank = Field(validation_alias="negative_match_type")
255
+ negative_keyword_match_type: str = Field(validation_alias="negative_match_type")
254
256
  # 广告状态
255
257
  state: StrOrNone2Blank
256
258
  # 服务状态 [原字段 'serving_status']
@@ -277,10 +279,12 @@ class SpNegativeTarget(BaseModel):
277
279
  campaign_id: int
278
280
  # 广告组ID
279
281
  ad_group_id: IntOrNone2Zero
280
- # 否定目标类型 [原字段 'negative_type']
281
- target_type: str = Field(validation_alias="negative_type")
282
+ # 否定目标ID [原字段 'target_id']
283
+ negative_target_id: int = Field(validation_alias="target_id")
282
284
  # 否定目标文本 [原字段 'negative_text']
283
- target_text: StrOrNone2Blank = Field(validation_alias="negative_text")
285
+ negative_target_text: StrOrNone2Blank = Field(validation_alias="negative_text")
286
+ # 否定目标匹配类型 [原字段 'negative_type']
287
+ negative_target_match_type: str = Field(validation_alias="negative_type")
284
288
  # 广告状态
285
289
  state: StrOrNone2Blank
286
290
  # 服务状态 [原字段 'serving_status']
@@ -558,12 +562,12 @@ class SbNegativeKeyword(BaseModel):
558
562
  campaign_id: int
559
563
  # 广告组ID
560
564
  ad_group_id: IntOrNone2Zero
561
- # 否定关键词ID
562
- keyword_id: int
563
- # 否定关键词文本
564
- keyword_text: StrOrNone2Blank
565
- # 否定关键词匹配类型
566
- match_type: StrOrNone2Blank
565
+ # 否定关键词ID [原字段 'keyword_id']
566
+ negative_keyword_id: int = Field(validation_alias="keyword_id")
567
+ # 否定关键词文本 [原字段 'negative_text']
568
+ negative_keyword_text: str = Field(validation_alias="keyword_text")
569
+ # 否定匹配方式 [原字段 'negative_match_type']
570
+ negative_keyword_match_type: str = Field(validation_alias="match_type")
567
571
  # 广告状态
568
572
  state: StrOrNone2Blank
569
573
  # 服务状态 [原字段 'serving_status']
@@ -584,20 +588,21 @@ class SbNegativeKeywords(ResponseV1Token):
584
588
  class SbNegativeTarget(BaseModel):
585
589
  """SB 否定目标商品投放"""
586
590
 
591
+ # fmt: off
587
592
  # 亚马逊店铺ID (广告帐号ID)
588
593
  profile_id: int
589
594
  # 广告活动ID
590
595
  campaign_id: int
591
596
  # 广告组ID
592
597
  ad_group_id: IntOrNone2Zero
593
- # 否定目标商品广告ID
594
- target_id: int
595
- # 否定目标定位类型
596
- expression_type: str
597
- # 否定目标定位表达式 (JSON 字符串)
598
- expression: str
599
- # 否定目标定位解析表达式 (JSON 字符串) [原字段 'resolved_expression']
600
- expression_resolved: str = Field(validation_alias="resolved_expression")
598
+ # 否定目标ID [原字段 'target_id']
599
+ negative_target_id: int = Field(validation_alias="target_id")
600
+ # 否定定位表达式 (JSON 字符串) [原字段 'expression']
601
+ negative_expression: str = Field(validation_alias="expression")
602
+ # 否定定位解析表达式 (JSON 字符串) [原字段 'resolved_expression']
603
+ negative_expression_resolved: str = Field(validation_alias="resolved_expression")
604
+ # 否定定位类型 [原字段 'expression_type']
605
+ negative_expression_type: StrOrNone2Blank = Field(validation_alias="expression_type")
601
606
  # 广告状态
602
607
  state: StrOrNone2Blank
603
608
  # 服务状态 [原字段 'serving_status']
@@ -606,6 +611,7 @@ class SbNegativeTarget(BaseModel):
606
611
  create_time_ts: IntOrNone2Zero = Field(validation_alias="creation_date")
607
612
  # 更新时间 (UTC毫秒时间戳) [原字段 'last_updated_date']
608
613
  update_time_ts: IntOrNone2Zero = Field(validation_alias="last_updated_date")
614
+ # fmt: on
609
615
 
610
616
 
611
617
  class SbNegativeTargets(ResponseV1Token):
@@ -759,20 +765,21 @@ class SdTargets(ResponseV1Token):
759
765
  class SdNegativeTarget(BaseModel):
760
766
  """SD 否定目标商品投放"""
761
767
 
768
+ # fmt: off
762
769
  # 亚马逊店铺ID (广告帐号ID)
763
770
  profile_id: int
764
771
  # 广告活动ID
765
772
  campaign_id: int
766
773
  # 广告组ID
767
774
  ad_group_id: IntOrNone2Zero
768
- # 否定目标商品广告ID
769
- target_id: int
770
- # 否定目标定位类型
771
- expression_type: str
772
- # 否定目标定位表达式 (JSON 字符串)
773
- expression: str
774
- # 否定目标定位解析表达式 (JSON 字符串) [原字段 'resolved_expression']
775
- expression_resolved: str = Field(validation_alias="resolved_expression")
775
+ # 否定目标ID [原字段 'target_id']
776
+ negative_target_id: int = Field(validation_alias="target_id")
777
+ # 否定定位表达式 (JSON 字符串) [原字段 'expression']
778
+ negative_expression: str = Field(validation_alias="expression")
779
+ # 否定定位解析表达式 (JSON 字符串) [原字段 'resolved_expression']
780
+ negative_expression_resolved: str = Field(validation_alias="resolved_expression")
781
+ # 否定定位类型 [原字段 'expression_type']
782
+ negative_expression_type: StrOrNone2Blank = Field(validation_alias="expression_type")
776
783
  # 广告状态
777
784
  state: StrOrNone2Blank
778
785
  # 服务状态 [原字段 'serving_status']
@@ -781,6 +788,7 @@ class SdNegativeTarget(BaseModel):
781
788
  create_time_ts: IntOrNone2Zero = Field(validation_alias="creation_date")
782
789
  # 更新时间 (UTC毫秒时间戳) [原字段 'last_updated_date']
783
790
  update_time_ts: IntOrNone2Zero = Field(validation_alias="last_updated_date")
791
+ # fmt: on
784
792
 
785
793
 
786
794
  class SdNegativeTargets(ResponseV1Token):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lingxingapi
3
- Version: 2.1.1
3
+ Version: 2.1.3
4
4
  Summary: An async API client for LingXing (领星) ERP
5
5
  Home-page: https://github.com/AresJef/LingXingApi
6
6
  Author: Jiefu Chen
File without changes
File without changes
File without changes
File without changes