dub 0.32.0__py3-none-any.whl → 0.34.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.
Files changed (70) hide show
  1. dub/_version.py +3 -3
  2. dub/analytics.py +6 -4
  3. dub/basesdk.py +6 -0
  4. dub/commissions.py +12 -8
  5. dub/customers.py +24 -313
  6. dub/domains.py +34 -26
  7. dub/embed_tokens.py +6 -4
  8. dub/events.py +6 -4
  9. dub/folders.py +24 -20
  10. dub/links.py +58 -54
  11. dub/models/components/__init__.py +81 -149
  12. dub/models/components/analyticstopurls.py +2 -2
  13. dub/models/components/leadcreatedevent.py +15 -14
  14. dub/models/components/linkclickedevent.py +19 -18
  15. dub/models/components/linkerrorschema.py +12 -12
  16. dub/models/components/linkschema.py +9 -3
  17. dub/models/components/linktagschema.py +3 -3
  18. dub/models/components/linktagschemaoutput.py +38 -0
  19. dub/models/components/linkwebhookevent.py +15 -16
  20. dub/models/components/partnerapplicationsubmittedevent.py +269 -0
  21. dub/models/components/partnerenrolledevent.py +68 -8
  22. dub/models/components/salecreatedevent.py +15 -14
  23. dub/models/components/webhookevent.py +6 -0
  24. dub/models/components/workspaceschema.py +6 -0
  25. dub/models/operations/__init__.py +147 -57
  26. dub/models/operations/banpartner.py +83 -0
  27. dub/models/operations/createpartner.py +68 -59
  28. dub/models/operations/createpartnerlink.py +0 -51
  29. dub/models/operations/createreferralsembedtoken.py +0 -51
  30. dub/models/operations/getcustomers.py +18 -0
  31. dub/models/operations/getlinkinfo.py +0 -2
  32. dub/models/operations/getlinks.py +2 -2
  33. dub/models/operations/getlinkscount.py +2 -2
  34. dub/models/operations/getqrcode.py +1 -1
  35. dub/models/operations/listcommissions.py +13 -2
  36. dub/models/operations/listdomains.py +1 -1
  37. dub/models/operations/listevents.py +2026 -21
  38. dub/models/operations/listpartners.py +75 -8
  39. dub/models/operations/retrieveanalytics.py +28 -5
  40. dub/models/operations/retrievelinks.py +44 -9
  41. dub/models/operations/retrievepartneranalytics.py +51 -11
  42. dub/models/operations/tracklead.py +4 -4
  43. dub/models/operations/updatecommission.py +7 -2
  44. dub/models/operations/updatecustomer.py +23 -11
  45. dub/models/operations/updatelink.py +0 -2
  46. dub/models/operations/updateworkspace.py +3 -3
  47. dub/models/operations/upsertpartnerlink.py +0 -51
  48. dub/partners.py +316 -24
  49. dub/qr_codes.py +4 -2
  50. dub/tags.py +24 -20
  51. dub/track.py +12 -16
  52. dub/types/basemodel.py +41 -3
  53. dub/utils/__init__.py +0 -3
  54. dub/utils/enums.py +60 -0
  55. dub/utils/forms.py +21 -10
  56. dub/utils/queryparams.py +14 -2
  57. dub/utils/requestbodies.py +3 -3
  58. dub/utils/retries.py +69 -5
  59. dub/utils/serializers.py +0 -20
  60. dub/utils/unmarshal_json_response.py +15 -1
  61. dub/workspaces.py +12 -16
  62. {dub-0.32.0.dist-info → dub-0.34.0.dist-info}/METADATA +15 -33
  63. {dub-0.32.0.dist-info → dub-0.34.0.dist-info}/RECORD +65 -67
  64. dub/models/components/clickevent.py +0 -556
  65. dub/models/components/continentcode.py +0 -16
  66. dub/models/components/leadevent.py +0 -680
  67. dub/models/components/saleevent.py +0 -779
  68. dub/models/operations/createcustomer.py +0 -382
  69. {dub-0.32.0.dist-info → dub-0.34.0.dist-info}/WHEEL +0 -0
  70. {dub-0.32.0.dist-info → dub-0.34.0.dist-info}/licenses/LICENSE +0 -0
@@ -60,8 +60,6 @@ class UpsertPartnerLinkLinkPropsTypedDict(TypedDict):
60
60
  r"""The unique IDs of the tags assigned to the short link."""
61
61
  tag_names: NotRequired[UpsertPartnerLinkTagNamesTypedDict]
62
62
  r"""The unique name of the tags assigned to the short link (case insensitive)."""
63
- folder_id: NotRequired[Nullable[str]]
64
- r"""The unique ID existing folder to assign the short link to."""
65
63
  comments: NotRequired[Nullable[str]]
66
64
  r"""The comments for the short link."""
67
65
  expires_at: NotRequired[Nullable[str]]
@@ -88,18 +86,6 @@ class UpsertPartnerLinkLinkPropsTypedDict(TypedDict):
88
86
  r"""The Android destination URL for the short link for Android device targeting."""
89
87
  do_index: NotRequired[bool]
90
88
  r"""Allow search engines to index your short link. Defaults to `false` if not provided. Learn more: https://d.to/noindex"""
91
- utm_source: NotRequired[Nullable[str]]
92
- r"""The UTM source of the short link. If set, this will populate or override the UTM source in the destination URL."""
93
- utm_medium: NotRequired[Nullable[str]]
94
- r"""The UTM medium of the short link. If set, this will populate or override the UTM medium in the destination URL."""
95
- utm_campaign: NotRequired[Nullable[str]]
96
- r"""The UTM campaign of the short link. If set, this will populate or override the UTM campaign in the destination URL."""
97
- utm_term: NotRequired[Nullable[str]]
98
- r"""The UTM term of the short link. If set, this will populate or override the UTM term in the destination URL."""
99
- utm_content: NotRequired[Nullable[str]]
100
- r"""The UTM content of the short link. If set, this will populate or override the UTM content in the destination URL."""
101
- ref: NotRequired[Nullable[str]]
102
- r"""The referral tag of the short link. If set, this will populate or override the `ref` query parameter in the destination URL."""
103
89
  test_variants: NotRequired[Nullable[List[UpsertPartnerLinkTestVariantsTypedDict]]]
104
90
  r"""An array of A/B test URLs and the percentage of traffic to send to each URL."""
105
91
  test_started_at: NotRequired[Nullable[str]]
@@ -140,11 +126,6 @@ class UpsertPartnerLinkLinkProps(BaseModel):
140
126
  ] = None
141
127
  r"""The unique name of the tags assigned to the short link (case insensitive)."""
142
128
 
143
- folder_id: Annotated[OptionalNullable[str], pydantic.Field(alias="folderId")] = (
144
- UNSET
145
- )
146
- r"""The unique ID existing folder to assign the short link to."""
147
-
148
129
  comments: OptionalNullable[str] = UNSET
149
130
  r"""The comments for the short link."""
150
131
 
@@ -188,24 +169,6 @@ class UpsertPartnerLinkLinkProps(BaseModel):
188
169
  do_index: Annotated[Optional[bool], pydantic.Field(alias="doIndex")] = None
189
170
  r"""Allow search engines to index your short link. Defaults to `false` if not provided. Learn more: https://d.to/noindex"""
190
171
 
191
- utm_source: OptionalNullable[str] = UNSET
192
- r"""The UTM source of the short link. If set, this will populate or override the UTM source in the destination URL."""
193
-
194
- utm_medium: OptionalNullable[str] = UNSET
195
- r"""The UTM medium of the short link. If set, this will populate or override the UTM medium in the destination URL."""
196
-
197
- utm_campaign: OptionalNullable[str] = UNSET
198
- r"""The UTM campaign of the short link. If set, this will populate or override the UTM campaign in the destination URL."""
199
-
200
- utm_term: OptionalNullable[str] = UNSET
201
- r"""The UTM term of the short link. If set, this will populate or override the UTM term in the destination URL."""
202
-
203
- utm_content: OptionalNullable[str] = UNSET
204
- r"""The UTM content of the short link. If set, this will populate or override the UTM content in the destination URL."""
205
-
206
- ref: OptionalNullable[str] = UNSET
207
- r"""The referral tag of the short link. If set, this will populate or override the `ref` query parameter in the destination URL."""
208
-
209
172
  test_variants: Annotated[
210
173
  OptionalNullable[List[UpsertPartnerLinkTestVariants]],
211
174
  pydantic.Field(alias="testVariants"),
@@ -232,7 +195,6 @@ class UpsertPartnerLinkLinkProps(BaseModel):
232
195
  "archived",
233
196
  "tagIds",
234
197
  "tagNames",
235
- "folderId",
236
198
  "comments",
237
199
  "expiresAt",
238
200
  "expiredUrl",
@@ -246,12 +208,6 @@ class UpsertPartnerLinkLinkProps(BaseModel):
246
208
  "ios",
247
209
  "android",
248
210
  "doIndex",
249
- "utm_source",
250
- "utm_medium",
251
- "utm_campaign",
252
- "utm_term",
253
- "utm_content",
254
- "ref",
255
211
  "testVariants",
256
212
  "testStartedAt",
257
213
  "testCompletedAt",
@@ -259,7 +215,6 @@ class UpsertPartnerLinkLinkProps(BaseModel):
259
215
  nullable_fields = [
260
216
  "externalId",
261
217
  "tenantId",
262
- "folderId",
263
218
  "comments",
264
219
  "expiresAt",
265
220
  "expiredUrl",
@@ -270,12 +225,6 @@ class UpsertPartnerLinkLinkProps(BaseModel):
270
225
  "video",
271
226
  "ios",
272
227
  "android",
273
- "utm_source",
274
- "utm_medium",
275
- "utm_campaign",
276
- "utm_term",
277
- "utm_content",
278
- "ref",
279
228
  "testVariants",
280
229
  "testStartedAt",
281
230
  "testCompletedAt",