growsurf-python 1.9.0__py3-none-any.whl → 1.10.0__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.
@@ -218,7 +218,8 @@ def _transform_recursive(
218
218
  return data
219
219
 
220
220
  if isinstance(data, pydantic.BaseModel):
221
- return model_dump(data, exclude_unset=True, mode="json")
221
+ # Request bodies use API field names, so dump aliased fields (e.g. `maxAmount`) by alias.
222
+ return model_dump(data, exclude_unset=True, mode="json", by_alias=True)
222
223
 
223
224
  annotated_type = _get_annotated_type(annotation)
224
225
  if annotated_type is None:
@@ -384,7 +385,8 @@ async def _async_transform_recursive(
384
385
  return data
385
386
 
386
387
  if isinstance(data, pydantic.BaseModel):
387
- return model_dump(data, exclude_unset=True, mode="json")
388
+ # Request bodies use API field names, so dump aliased fields (e.g. `maxAmount`) by alias.
389
+ return model_dump(data, exclude_unset=True, mode="json", by_alias=True)
388
390
 
389
391
  annotated_type = _get_annotated_type(annotation)
390
392
  if annotated_type is None:
growsurf/_version.py CHANGED
@@ -1,4 +1,4 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  __title__ = "growsurf"
4
- __version__ = "1.9.0" # x-release-please-version
4
+ __version__ = "1.10.0" # x-release-please-version
@@ -327,9 +327,9 @@ class RewardsResource(SyncAPIResource):
327
327
  timeout: float | httpx.Timeout | None | NotGiven = not_given,
328
328
  ) -> CampaignRewardListResponse:
329
329
  """
330
- Retrieves the list of a program's configured rewards (`CampaignReward`s) — the
331
- same set embedded in the `rewards` array of the campaign response. Delete a
332
- reward with `DELETE /campaign/{id}/reward-configs/{campaignRewardId}`.
330
+ Retrieves configured Campaign Rewards, including switched-off rewards and rewards
331
+ whose group is not selected. Deleted rewards are excluded. The campaign response's
332
+ embedded rewards array includes only enabled, visible rewards.
333
333
 
334
334
  Args:
335
335
  extra_headers: Send extra headers
@@ -692,9 +692,9 @@ class AsyncRewardsResource(AsyncAPIResource):
692
692
  timeout: float | httpx.Timeout | None | NotGiven = not_given,
693
693
  ) -> CampaignRewardListResponse:
694
694
  """
695
- Retrieves the list of a program's configured rewards (`CampaignReward`s) — the
696
- same set embedded in the `rewards` array of the campaign response. Delete a
697
- reward with `DELETE /campaign/{id}/reward-configs/{campaignRewardId}`.
695
+ Retrieves configured Campaign Rewards, including switched-off rewards and rewards
696
+ whose group is not selected. Deleted rewards are excluded. The campaign response's
697
+ embedded rewards array includes only enabled, visible rewards.
698
698
 
699
699
  Args:
700
700
  extra_headers: Send extra headers
@@ -55,7 +55,11 @@ class CampaignDesignResources(TypedDict, total=False):
55
55
  # `widget` is the website widget shown in a corner of your own site — a button or a
56
56
  # card, its placement and offsets, when it appears, and which pages it appears on —
57
57
  # with its colors under `theme.widget`. Both of its audience switches start off, so a
58
- # program shows nothing until you turn one on.
58
+ # program shows nothing until you turn one on. `trafficInsights` is the participant
59
+ # Traffic report: visits to a participant's share link and where they came from. It
60
+ # starts on for new affiliate programs and hidden for referral programs; `GET` returns
61
+ # every setting with its default copy, and a `PATCH` changes only the settings you
62
+ # send. Its labels cannot be blank.
59
63
  # `GET` returns the fields configured for the program;
60
64
  # `payoutDestinationConfirmation` is omitted when no confirmation fields are
61
65
  # stored. Stored `null` fields are returned as `null`; omitted and `null` fields
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: growsurf-python
3
- Version: 1.9.0
3
+ Version: 1.10.0
4
4
  Summary: The official Python library for the growsurf API
5
5
  Project-URL: Homepage, https://growsurf.com/
6
6
  Project-URL: Repository, https://github.com/growsurf/growsurf-python
@@ -11,7 +11,7 @@ growsurf/_resource.py,sha256=oeDA0FL2ottIchoUi86M_8eUqmtrGQLYTgfKYEzrsWg,1112
11
11
  growsurf/_response.py,sha256=RTZ8t27W4S6ExkCjzCg4HbcDUTCdOMgiheiMAuAxgu4,28937
12
12
  growsurf/_streaming.py,sha256=9aJ_V6JtddntWCon2Cq_MOLMnySnhc7wuqeZx7sUtKU,10558
13
13
  growsurf/_types.py,sha256=r8hAVihrutiLUToaJhSDys9T9sMc8BMy2qUrr3W_8Wo,7751
14
- growsurf/_version.py,sha256=4WKOTnZ8FcparwmWKremivwBlS3DllnUQ3l_1PnqSoU,160
14
+ growsurf/_version.py,sha256=Wdwzkb8VmjFZpgV_5RE79hj1jkdhkN8N2e_S4RomsTM,161
15
15
  growsurf/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
16
  growsurf/_utils/__init__.py,sha256=nQq-iFa5YxTaWySaLigatew5rHgTR0M75FNYm4mrO1s,2313
17
17
  growsurf/_utils/_compat.py,sha256=33246eDcl3pwL6kWsEhVuT4Akrd8gZEW9LPTm465ohk,1231
@@ -24,7 +24,7 @@ growsurf/_utils/_reflection.py,sha256=ZmGkIgT_PuwedyNBrrKGbxoWtkpytJNU1uU4QHnmEM
24
24
  growsurf/_utils/_resources_proxy.py,sha256=nxTYkbCjttvyKGuju05JLOzNuVr1lUDclW9xMVbBhX4,599
25
25
  growsurf/_utils/_streams.py,sha256=SMC90diFFecpEg_zgDRVbdR3hSEIgVVij4taD-noMLM,289
26
26
  growsurf/_utils/_sync.py,sha256=HBnZkkBnzxtwOZe0212C4EyoRvxhTVtTrLFDz2_xVCg,1589
27
- growsurf/_utils/_transform.py,sha256=NjCzmnfqYrsAikUHQig6N9QfuTVbKipuP3ur9mcNF-E,15951
27
+ growsurf/_utils/_transform.py,sha256=vEWK1Rqad8CCays6Tr8OF-zgpjCA-ksLFo4omfLBBOU,16177
28
28
  growsurf/_utils/_typing.py,sha256=N_5PPuFNsaygbtA_npZd98SVN1LQQvFTKL6bkWPBZGU,4786
29
29
  growsurf/_utils/_utils.py,sha256=2nPOzDrPe2GADpLCRM4bNQS8Mu7LjEiCG_LJ2AAL6jg,13111
30
30
  growsurf/lib/.keep,sha256=wuNrz-5SXo3jJaJOJgz4vFHM41YH_g20F5cRQo0vLes,224
@@ -42,7 +42,7 @@ growsurf/resources/campaign/options.py,sha256=NkP_lY3XW862DgbLOT1N8Yz-iisixiQ0HY
42
42
  growsurf/resources/campaign/participant.py,sha256=P6ySSYPfnmoOSuowqqPKOCoXDo2MAlklObUiMrn9Y94,125364
43
43
  growsurf/resources/campaign/program_resources.py,sha256=e6ANK-_kuU5YTMQwKCCt35iOtooYwYPFR8AvJFDsTNA,17521
44
44
  growsurf/resources/campaign/reward.py,sha256=-TiRwBcG5UwdNO_ath3pL36Bimji2QXCxSFNW8Scanw,14308
45
- growsurf/resources/campaign/rewards.py,sha256=tvSkGncj-2OA3G-ivuKsjv1HF9PKsZmcZRWBOR89JGA,37329
45
+ growsurf/resources/campaign/rewards.py,sha256=fqLlgoVEAFIZisT8u1T0llJh3yAMFumt3tRxIRV5oJ4,37329
46
46
  growsurf/resources/campaign/webhooks.py,sha256=DRJ8-8QDibGEq1hT7MTkrlE5kdbEapZXiZb2z_kKM68,22666
47
47
  growsurf/types/__init__.py,sha256=8MnE5xKMTKwLgZ3kMTHzsJoKhUFsBp3DTJoJ-cY_UK4,4302
48
48
  growsurf/types/account_create_params.py,sha256=BXaWsGsiiSbYvVy6ftPNwu7nA2m1xI4PvE1xGEoGeCo,602
@@ -87,7 +87,7 @@ growsurf/types/team_update_params.py,sha256=BWe-y5FywSFF3z-riG2cd3qkZTqhbjeLBj_w
87
87
  growsurf/types/verification_email_response.py,sha256=UYhx3DiXpWWgumukaezuiuIq_OME-3QE2_vG0TnwR00,292
88
88
  growsurf/types/campaign/__init__.py,sha256=wq_LDCpJpc8M3WdwHBe02pSdxQYG0iM36LXmnsEv8g8,6627
89
89
  growsurf/types/campaign/campaign.py,sha256=Wc-rJufK2qIJr0EuJrd4BuxDVOcCmfJ3NeiSasUvCA0,3786
90
- growsurf/types/campaign/campaign_design.py,sha256=AszUM4w76VvwdQHBzvfxbkh4HArPjOjZgAhCuOvkNII,3300
90
+ growsurf/types/campaign/campaign_design.py,sha256=LyHTlWXyvxjoiyES1dHQ95i5uon1Vo2AHlAnGvHcILY,3627
91
91
  growsurf/types/campaign/campaign_emails.py,sha256=KQRLNzX7Aw2KzUhZnoMN_SNwwJQMRt1xvJ9CDD96G50,716
92
92
  growsurf/types/campaign/campaign_installation.py,sha256=jzRWItlYKibZLoJ9RUaC78SXeyvIjtHBqcEvMv7YdSI,655
93
93
  growsurf/types/campaign/campaign_options.py,sha256=O11n1DAXcbaTBZnXZTPUTUitZI53StkXMPFTgZb9lYM,744
@@ -152,7 +152,7 @@ growsurf/types/campaign/webhook_list_response.py,sha256=tSk9nTbcsj5Y-j4RjQwu9SZc
152
152
  growsurf/types/campaign/webhook_test_params.py,sha256=X1Osg9-4KGJbZauG_7rDqTE7cKCypeSzgumIhnxj9dk,468
153
153
  growsurf/types/campaign/webhook_test_response.py,sha256=AahcckKSLUeIgpwlosOOmbkioF62xREXgLbieHAPAdI,576
154
154
  growsurf/types/campaign/webhook_update_params.py,sha256=SavKhws8pfybC7O40ovtCreEmOwihEGPOCEX9Iua9cE,598
155
- growsurf_python-1.9.0.dist-info/METADATA,sha256=yheSjK7zOq3Tmoj0YXsrt5_qT8Zou9nQwqYxK-w5pNU,13949
156
- growsurf_python-1.9.0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
157
- growsurf_python-1.9.0.dist-info/licenses/LICENSE,sha256=kTHLVE-ra1gtTxcn395uFqcOzcErebE-mDdPNW7b8OU,11338
158
- growsurf_python-1.9.0.dist-info/RECORD,,
155
+ growsurf_python-1.10.0.dist-info/METADATA,sha256=82NlD9v6MUR1KHX-b1CEBy_ErQxEZnAS00VS-JOhoL8,13950
156
+ growsurf_python-1.10.0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
157
+ growsurf_python-1.10.0.dist-info/licenses/LICENSE,sha256=kTHLVE-ra1gtTxcn395uFqcOzcErebE-mDdPNW7b8OU,11338
158
+ growsurf_python-1.10.0.dist-info/RECORD,,