dub 0.27.4__py3-none-any.whl → 0.28.1__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.
- dub/_version.py +3 -3
- dub/models/components/__init__.py +0 -56
- dub/models/components/clickevent.py +5 -764
- dub/models/components/leadcreatedevent.py +5 -764
- dub/models/components/leadevent.py +5 -764
- dub/models/components/linkclickedevent.py +5 -764
- dub/models/components/linkschema.py +5 -764
- dub/models/components/linkwebhookevent.py +5 -764
- dub/models/components/partnerenrolledevent.py +20 -7
- dub/models/components/salecreatedevent.py +5 -764
- dub/models/components/saleevent.py +13 -772
- dub/models/components/tagschema.py +1 -1
- dub/models/components/workspaceschema.py +5 -5
- dub/models/operations/__init__.py +0 -6
- dub/models/operations/bulkcreatelinks.py +5 -6
- dub/models/operations/bulkupdatelinks.py +5 -6
- dub/models/operations/createcustomer.py +0 -3
- dub/models/operations/createlink.py +5 -6
- dub/models/operations/createpartner.py +30 -266
- dub/models/operations/createreferralsembedtoken.py +10 -260
- dub/models/operations/createtag.py +4 -4
- dub/models/operations/getcustomer.py +0 -3
- dub/models/operations/getcustomers.py +0 -3
- dub/models/operations/listcommissions.py +9 -0
- dub/models/operations/listevents.py +4 -5
- dub/models/operations/listpartners.py +23 -9
- dub/models/operations/retrieveanalytics.py +4 -5
- dub/models/operations/retrievepartneranalytics.py +8 -0
- dub/models/operations/tracksale.py +8 -7
- dub/models/operations/updatecustomer.py +0 -3
- dub/models/operations/updatelink.py +5 -6
- dub/models/operations/updatetag.py +4 -4
- dub/models/operations/updateworkspace.py +2 -13
- dub/models/operations/upsertlink.py +5 -6
- {dub-0.27.4.dist-info → dub-0.28.1.dist-info}/METADATA +12 -4
- {dub-0.27.4.dist-info → dub-0.28.1.dist-info}/RECORD +38 -40
- dub/models/components/countrycode.py +0 -259
- dub/models/components/linkgeotargeting.py +0 -766
- {dub-0.27.4.dist-info → dub-0.28.1.dist-info}/LICENSE +0 -0
- {dub-0.27.4.dist-info → dub-0.28.1.dist-info}/WHEEL +0 -0
|
@@ -103,12 +103,12 @@ class PartnerEnrolledEventDataTypedDict(TypedDict):
|
|
|
103
103
|
r"""The partner's Stripe Connect ID (for receiving payouts via Stripe)."""
|
|
104
104
|
payouts_enabled_at: Nullable[str]
|
|
105
105
|
r"""The date when the partner enabled payouts."""
|
|
106
|
+
program_id: str
|
|
107
|
+
r"""The program's unique ID on Dub."""
|
|
106
108
|
partner_id: str
|
|
107
109
|
r"""The partner's unique ID on Dub."""
|
|
108
110
|
tenant_id: Nullable[str]
|
|
109
111
|
r"""The partner's unique ID within your database. Can be useful for associating the partner with a user in your database and retrieving/update their data in the future."""
|
|
110
|
-
program_id: str
|
|
111
|
-
r"""The program's unique ID on Dub."""
|
|
112
112
|
created_at: str
|
|
113
113
|
status: Status
|
|
114
114
|
r"""The status of the partner's enrollment in the program."""
|
|
@@ -116,6 +116,8 @@ class PartnerEnrolledEventDataTypedDict(TypedDict):
|
|
|
116
116
|
r"""The partner's referral links in this program."""
|
|
117
117
|
description: NotRequired[Nullable[str]]
|
|
118
118
|
r"""A brief description of the partner and their background."""
|
|
119
|
+
group_id: NotRequired[Nullable[str]]
|
|
120
|
+
r"""The partner's group ID on Dub."""
|
|
119
121
|
total_commissions: NotRequired[float]
|
|
120
122
|
r"""The total commissions paid to the partner for their referrals. Defaults to 0 if `includeExpandedFields` is false."""
|
|
121
123
|
click_reward_id: NotRequired[Nullable[str]]
|
|
@@ -132,8 +134,10 @@ class PartnerEnrolledEventDataTypedDict(TypedDict):
|
|
|
132
134
|
r"""The total number of clicks on the partner's links. Defaults to 0 if `includeExpandedFields` is false."""
|
|
133
135
|
leads: NotRequired[float]
|
|
134
136
|
r"""The total number of leads generated by the partner's links. Defaults to 0 if `includeExpandedFields` is false."""
|
|
137
|
+
conversions: NotRequired[float]
|
|
138
|
+
r"""The total number of leads that converted to paying customers. Defaults to 0 if `includeExpandedFields` is false."""
|
|
135
139
|
sales: NotRequired[float]
|
|
136
|
-
r"""The total number of sales generated by the partner's links. Defaults to 0 if `includeExpandedFields` is false."""
|
|
140
|
+
r"""The total number of sales generated by the partner's links (includes recurring sales). Defaults to 0 if `includeExpandedFields` is false."""
|
|
137
141
|
sale_amount: NotRequired[float]
|
|
138
142
|
r"""The total amount of sales (in cents) generated by the partner's links. Defaults to 0 if `includeExpandedFields` is false."""
|
|
139
143
|
net_revenue: NotRequired[float]
|
|
@@ -188,15 +192,15 @@ class PartnerEnrolledEventData(BaseModel):
|
|
|
188
192
|
]
|
|
189
193
|
r"""The date when the partner enabled payouts."""
|
|
190
194
|
|
|
195
|
+
program_id: Annotated[str, pydantic.Field(alias="programId")]
|
|
196
|
+
r"""The program's unique ID on Dub."""
|
|
197
|
+
|
|
191
198
|
partner_id: Annotated[str, pydantic.Field(alias="partnerId")]
|
|
192
199
|
r"""The partner's unique ID on Dub."""
|
|
193
200
|
|
|
194
201
|
tenant_id: Annotated[Nullable[str], pydantic.Field(alias="tenantId")]
|
|
195
202
|
r"""The partner's unique ID within your database. Can be useful for associating the partner with a user in your database and retrieving/update their data in the future."""
|
|
196
203
|
|
|
197
|
-
program_id: Annotated[str, pydantic.Field(alias="programId")]
|
|
198
|
-
r"""The program's unique ID on Dub."""
|
|
199
|
-
|
|
200
204
|
created_at: Annotated[str, pydantic.Field(alias="createdAt")]
|
|
201
205
|
|
|
202
206
|
status: Status
|
|
@@ -208,6 +212,9 @@ class PartnerEnrolledEventData(BaseModel):
|
|
|
208
212
|
description: OptionalNullable[str] = UNSET
|
|
209
213
|
r"""A brief description of the partner and their background."""
|
|
210
214
|
|
|
215
|
+
group_id: Annotated[OptionalNullable[str], pydantic.Field(alias="groupId")] = UNSET
|
|
216
|
+
r"""The partner's group ID on Dub."""
|
|
217
|
+
|
|
211
218
|
total_commissions: Annotated[
|
|
212
219
|
Optional[float], pydantic.Field(alias="totalCommissions")
|
|
213
220
|
] = 0
|
|
@@ -250,8 +257,11 @@ class PartnerEnrolledEventData(BaseModel):
|
|
|
250
257
|
leads: Optional[float] = 0
|
|
251
258
|
r"""The total number of leads generated by the partner's links. Defaults to 0 if `includeExpandedFields` is false."""
|
|
252
259
|
|
|
260
|
+
conversions: Optional[float] = 0
|
|
261
|
+
r"""The total number of leads that converted to paying customers. Defaults to 0 if `includeExpandedFields` is false."""
|
|
262
|
+
|
|
253
263
|
sales: Optional[float] = 0
|
|
254
|
-
r"""The total number of sales generated by the partner's links. Defaults to 0 if `includeExpandedFields` is false."""
|
|
264
|
+
r"""The total number of sales generated by the partner's links (includes recurring sales). Defaults to 0 if `includeExpandedFields` is false."""
|
|
255
265
|
|
|
256
266
|
sale_amount: Annotated[Optional[float], pydantic.Field(alias="saleAmount")] = 0
|
|
257
267
|
r"""The total amount of sales (in cents) generated by the partner's links. Defaults to 0 if `includeExpandedFields` is false."""
|
|
@@ -317,6 +327,7 @@ class PartnerEnrolledEventData(BaseModel):
|
|
|
317
327
|
def serialize_model(self, handler):
|
|
318
328
|
optional_fields = [
|
|
319
329
|
"description",
|
|
330
|
+
"groupId",
|
|
320
331
|
"totalCommissions",
|
|
321
332
|
"clickRewardId",
|
|
322
333
|
"leadRewardId",
|
|
@@ -327,6 +338,7 @@ class PartnerEnrolledEventData(BaseModel):
|
|
|
327
338
|
"bannedReason",
|
|
328
339
|
"clicks",
|
|
329
340
|
"leads",
|
|
341
|
+
"conversions",
|
|
330
342
|
"sales",
|
|
331
343
|
"saleAmount",
|
|
332
344
|
"netRevenue",
|
|
@@ -354,6 +366,7 @@ class PartnerEnrolledEventData(BaseModel):
|
|
|
354
366
|
"paypalEmail",
|
|
355
367
|
"stripeConnectId",
|
|
356
368
|
"payoutsEnabledAt",
|
|
369
|
+
"groupId",
|
|
357
370
|
"tenantId",
|
|
358
371
|
"links",
|
|
359
372
|
"clickRewardId",
|