dub 0.27.1__py3-none-any.whl → 0.27.2__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 +38 -0
- dub/models/components/analyticstriggers.py +2 -0
- dub/models/components/commissioncreatedevent.py +281 -0
- dub/models/components/partnerenrolledevent.py +201 -74
- dub/models/components/saleevent.py +1 -0
- dub/models/components/webhookevent.py +6 -0
- dub/models/operations/__init__.py +68 -0
- dub/models/operations/createpartner.py +201 -74
- dub/models/operations/listcommissions.py +169 -8
- dub/models/operations/listevents.py +19 -0
- dub/models/operations/listpartners.py +516 -0
- dub/models/operations/retrieveanalytics.py +19 -0
- dub/models/operations/tracksale.py +1 -0
- dub/models/operations/updatecommission.py +169 -8
- dub/partners.py +262 -0
- {dub-0.27.1.dist-info → dub-0.27.2.dist-info}/METADATA +2 -1
- {dub-0.27.1.dist-info → dub-0.27.2.dist-info}/RECORD +20 -18
- {dub-0.27.1.dist-info → dub-0.27.2.dist-info}/LICENSE +0 -0
- {dub-0.27.1.dist-info → dub-0.27.2.dist-info}/WHEEL +0 -0
|
@@ -75,6 +75,17 @@ class PartnerEnrolledEventLink(BaseModel):
|
|
|
75
75
|
r"""The total dollar amount of sales the short links has generated (in cents)."""
|
|
76
76
|
|
|
77
77
|
|
|
78
|
+
class BannedReason(str, Enum):
|
|
79
|
+
r"""If the partner was banned from the program, this is the reason for the ban."""
|
|
80
|
+
|
|
81
|
+
TOS_VIOLATION = "tos_violation"
|
|
82
|
+
INAPPROPRIATE_CONTENT = "inappropriate_content"
|
|
83
|
+
FAKE_TRAFFIC = "fake_traffic"
|
|
84
|
+
FRAUD = "fraud"
|
|
85
|
+
SPAM = "spam"
|
|
86
|
+
BRAND_ABUSE = "brand_abuse"
|
|
87
|
+
|
|
88
|
+
|
|
78
89
|
class PartnerEnrolledEventDataTypedDict(TypedDict):
|
|
79
90
|
id: str
|
|
80
91
|
r"""The partner's unique ID on Dub."""
|
|
@@ -86,50 +97,68 @@ class PartnerEnrolledEventDataTypedDict(TypedDict):
|
|
|
86
97
|
r"""The partner's avatar image."""
|
|
87
98
|
country: Nullable[str]
|
|
88
99
|
r"""The partner's country (required for tax purposes)."""
|
|
89
|
-
website: Nullable[str]
|
|
90
|
-
r"""The partner's website URL (including the https protocol)."""
|
|
91
|
-
youtube: Nullable[str]
|
|
92
|
-
r"""The partner's YouTube channel username (e.g. `johndoe`)."""
|
|
93
|
-
twitter: Nullable[str]
|
|
94
|
-
r"""The partner's Twitter username (e.g. `johndoe`)."""
|
|
95
|
-
linkedin: Nullable[str]
|
|
96
|
-
r"""The partner's LinkedIn username (e.g. `johndoe`)."""
|
|
97
|
-
instagram: Nullable[str]
|
|
98
|
-
r"""The partner's Instagram username (e.g. `johndoe`)."""
|
|
99
|
-
tiktok: Nullable[str]
|
|
100
|
-
r"""The partner's TikTok username (e.g. `johndoe`)."""
|
|
101
100
|
paypal_email: Nullable[str]
|
|
102
101
|
r"""The partner's PayPal email (for receiving payouts via PayPal)."""
|
|
103
102
|
stripe_connect_id: Nullable[str]
|
|
104
103
|
r"""The partner's Stripe Connect ID (for receiving payouts via Stripe)."""
|
|
105
104
|
payouts_enabled_at: Nullable[str]
|
|
106
105
|
r"""The date when the partner enabled payouts."""
|
|
106
|
+
partner_id: str
|
|
107
|
+
r"""The partner's unique ID on Dub."""
|
|
108
|
+
tenant_id: Nullable[str]
|
|
109
|
+
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."""
|
|
107
112
|
created_at: str
|
|
108
|
-
r"""The date when the partner was created on Dub."""
|
|
109
113
|
status: Status
|
|
110
114
|
r"""The status of the partner's enrollment in the program."""
|
|
111
|
-
program_id: str
|
|
112
|
-
r"""The program's unique ID on Dub."""
|
|
113
|
-
tenant_id: Nullable[str]
|
|
114
|
-
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."""
|
|
115
115
|
links: Nullable[List[PartnerEnrolledEventLinkTypedDict]]
|
|
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
|
+
total_commissions: NotRequired[float]
|
|
120
|
+
r"""The total commissions paid to the partner for their referrals. Defaults to 0 if `includeExpandedFields` is false."""
|
|
121
|
+
click_reward_id: NotRequired[Nullable[str]]
|
|
122
|
+
lead_reward_id: NotRequired[Nullable[str]]
|
|
123
|
+
sale_reward_id: NotRequired[Nullable[str]]
|
|
124
|
+
discount_id: NotRequired[Nullable[str]]
|
|
125
|
+
application_id: NotRequired[Nullable[str]]
|
|
126
|
+
r"""If the partner submitted an application to join the program, this is the ID of the application."""
|
|
127
|
+
banned_at: NotRequired[Nullable[str]]
|
|
128
|
+
r"""If the partner was banned from the program, this is the date of the ban."""
|
|
129
|
+
banned_reason: NotRequired[Nullable[BannedReason]]
|
|
130
|
+
r"""If the partner was banned from the program, this is the reason for the ban."""
|
|
119
131
|
clicks: NotRequired[float]
|
|
120
|
-
r"""The total number of clicks on the partner's links."""
|
|
132
|
+
r"""The total number of clicks on the partner's links. Defaults to 0 if `includeExpandedFields` is false."""
|
|
121
133
|
leads: NotRequired[float]
|
|
122
|
-
r"""The total number of leads generated by the partner's links."""
|
|
134
|
+
r"""The total number of leads generated by the partner's links. Defaults to 0 if `includeExpandedFields` is false."""
|
|
123
135
|
sales: NotRequired[float]
|
|
124
|
-
r"""The total number of sales generated by the partner's links."""
|
|
136
|
+
r"""The total number of sales generated by the partner's links. Defaults to 0 if `includeExpandedFields` is false."""
|
|
125
137
|
sale_amount: NotRequired[float]
|
|
126
|
-
r"""The total amount of sales (in cents) generated by the partner's links."""
|
|
127
|
-
total_commissions: NotRequired[float]
|
|
128
|
-
r"""The total commissions paid to the partner for their referrals."""
|
|
138
|
+
r"""The total amount of sales (in cents) generated by the partner's links. Defaults to 0 if `includeExpandedFields` is false."""
|
|
129
139
|
net_revenue: NotRequired[float]
|
|
130
|
-
r"""The total net revenue generated by the partner."""
|
|
131
|
-
|
|
132
|
-
r"""
|
|
140
|
+
r"""The total net revenue generated by the partner. Defaults to 0 if `includeExpandedFields` is false."""
|
|
141
|
+
website: NotRequired[Nullable[str]]
|
|
142
|
+
r"""The partner's website URL (including the https protocol)."""
|
|
143
|
+
website_txt_record: NotRequired[Nullable[str]]
|
|
144
|
+
website_verified_at: NotRequired[Nullable[str]]
|
|
145
|
+
youtube: NotRequired[Nullable[str]]
|
|
146
|
+
r"""The partner's YouTube channel username (e.g. `johndoe`)."""
|
|
147
|
+
youtube_verified_at: NotRequired[Nullable[str]]
|
|
148
|
+
youtube_subscriber_count: NotRequired[Nullable[float]]
|
|
149
|
+
youtube_view_count: NotRequired[Nullable[float]]
|
|
150
|
+
twitter: NotRequired[Nullable[str]]
|
|
151
|
+
r"""The partner's Twitter username (e.g. `johndoe`)."""
|
|
152
|
+
twitter_verified_at: NotRequired[Nullable[str]]
|
|
153
|
+
linkedin: NotRequired[Nullable[str]]
|
|
154
|
+
r"""The partner's LinkedIn username (e.g. `johndoe`)."""
|
|
155
|
+
linkedin_verified_at: NotRequired[Nullable[str]]
|
|
156
|
+
instagram: NotRequired[Nullable[str]]
|
|
157
|
+
r"""The partner's Instagram username (e.g. `johndoe`)."""
|
|
158
|
+
instagram_verified_at: NotRequired[Nullable[str]]
|
|
159
|
+
tiktok: NotRequired[Nullable[str]]
|
|
160
|
+
r"""The partner's TikTok username (e.g. `johndoe`)."""
|
|
161
|
+
tiktok_verified_at: NotRequired[Nullable[str]]
|
|
133
162
|
|
|
134
163
|
|
|
135
164
|
class PartnerEnrolledEventData(BaseModel):
|
|
@@ -148,24 +177,6 @@ class PartnerEnrolledEventData(BaseModel):
|
|
|
148
177
|
country: Nullable[str]
|
|
149
178
|
r"""The partner's country (required for tax purposes)."""
|
|
150
179
|
|
|
151
|
-
website: Nullable[str]
|
|
152
|
-
r"""The partner's website URL (including the https protocol)."""
|
|
153
|
-
|
|
154
|
-
youtube: Nullable[str]
|
|
155
|
-
r"""The partner's YouTube channel username (e.g. `johndoe`)."""
|
|
156
|
-
|
|
157
|
-
twitter: Nullable[str]
|
|
158
|
-
r"""The partner's Twitter username (e.g. `johndoe`)."""
|
|
159
|
-
|
|
160
|
-
linkedin: Nullable[str]
|
|
161
|
-
r"""The partner's LinkedIn username (e.g. `johndoe`)."""
|
|
162
|
-
|
|
163
|
-
instagram: Nullable[str]
|
|
164
|
-
r"""The partner's Instagram username (e.g. `johndoe`)."""
|
|
165
|
-
|
|
166
|
-
tiktok: Nullable[str]
|
|
167
|
-
r"""The partner's TikTok username (e.g. `johndoe`)."""
|
|
168
|
-
|
|
169
180
|
paypal_email: Annotated[Nullable[str], pydantic.Field(alias="paypalEmail")]
|
|
170
181
|
r"""The partner's PayPal email (for receiving payouts via PayPal)."""
|
|
171
182
|
|
|
@@ -177,17 +188,19 @@ class PartnerEnrolledEventData(BaseModel):
|
|
|
177
188
|
]
|
|
178
189
|
r"""The date when the partner enabled payouts."""
|
|
179
190
|
|
|
180
|
-
|
|
181
|
-
r"""The
|
|
191
|
+
partner_id: Annotated[str, pydantic.Field(alias="partnerId")]
|
|
192
|
+
r"""The partner's unique ID on Dub."""
|
|
182
193
|
|
|
183
|
-
|
|
184
|
-
r"""The
|
|
194
|
+
tenant_id: Annotated[Nullable[str], pydantic.Field(alias="tenantId")]
|
|
195
|
+
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."""
|
|
185
196
|
|
|
186
197
|
program_id: Annotated[str, pydantic.Field(alias="programId")]
|
|
187
198
|
r"""The program's unique ID on Dub."""
|
|
188
199
|
|
|
189
|
-
|
|
190
|
-
|
|
200
|
+
created_at: Annotated[str, pydantic.Field(alias="createdAt")]
|
|
201
|
+
|
|
202
|
+
status: Status
|
|
203
|
+
r"""The status of the partner's enrollment in the program."""
|
|
191
204
|
|
|
192
205
|
links: Nullable[List[PartnerEnrolledEventLink]]
|
|
193
206
|
r"""The partner's referral links in this program."""
|
|
@@ -195,62 +208,176 @@ class PartnerEnrolledEventData(BaseModel):
|
|
|
195
208
|
description: OptionalNullable[str] = UNSET
|
|
196
209
|
r"""A brief description of the partner and their background."""
|
|
197
210
|
|
|
211
|
+
total_commissions: Annotated[
|
|
212
|
+
Optional[float], pydantic.Field(alias="totalCommissions")
|
|
213
|
+
] = 0
|
|
214
|
+
r"""The total commissions paid to the partner for their referrals. Defaults to 0 if `includeExpandedFields` is false."""
|
|
215
|
+
|
|
216
|
+
click_reward_id: Annotated[
|
|
217
|
+
OptionalNullable[str], pydantic.Field(alias="clickRewardId")
|
|
218
|
+
] = UNSET
|
|
219
|
+
|
|
220
|
+
lead_reward_id: Annotated[
|
|
221
|
+
OptionalNullable[str], pydantic.Field(alias="leadRewardId")
|
|
222
|
+
] = UNSET
|
|
223
|
+
|
|
224
|
+
sale_reward_id: Annotated[
|
|
225
|
+
OptionalNullable[str], pydantic.Field(alias="saleRewardId")
|
|
226
|
+
] = UNSET
|
|
227
|
+
|
|
228
|
+
discount_id: Annotated[
|
|
229
|
+
OptionalNullable[str], pydantic.Field(alias="discountId")
|
|
230
|
+
] = UNSET
|
|
231
|
+
|
|
232
|
+
application_id: Annotated[
|
|
233
|
+
OptionalNullable[str], pydantic.Field(alias="applicationId")
|
|
234
|
+
] = UNSET
|
|
235
|
+
r"""If the partner submitted an application to join the program, this is the ID of the application."""
|
|
236
|
+
|
|
237
|
+
banned_at: Annotated[OptionalNullable[str], pydantic.Field(alias="bannedAt")] = (
|
|
238
|
+
UNSET
|
|
239
|
+
)
|
|
240
|
+
r"""If the partner was banned from the program, this is the date of the ban."""
|
|
241
|
+
|
|
242
|
+
banned_reason: Annotated[
|
|
243
|
+
OptionalNullable[BannedReason], pydantic.Field(alias="bannedReason")
|
|
244
|
+
] = UNSET
|
|
245
|
+
r"""If the partner was banned from the program, this is the reason for the ban."""
|
|
246
|
+
|
|
198
247
|
clicks: Optional[float] = 0
|
|
199
|
-
r"""The total number of clicks on the partner's links."""
|
|
248
|
+
r"""The total number of clicks on the partner's links. Defaults to 0 if `includeExpandedFields` is false."""
|
|
200
249
|
|
|
201
250
|
leads: Optional[float] = 0
|
|
202
|
-
r"""The total number of leads generated by the partner's links."""
|
|
251
|
+
r"""The total number of leads generated by the partner's links. Defaults to 0 if `includeExpandedFields` is false."""
|
|
203
252
|
|
|
204
253
|
sales: Optional[float] = 0
|
|
205
|
-
r"""The total number of sales generated by the partner's links."""
|
|
254
|
+
r"""The total number of sales generated by the partner's links. Defaults to 0 if `includeExpandedFields` is false."""
|
|
206
255
|
|
|
207
256
|
sale_amount: Annotated[Optional[float], pydantic.Field(alias="saleAmount")] = 0
|
|
208
|
-
r"""The total amount of sales (in cents) generated by the partner's links."""
|
|
209
|
-
|
|
210
|
-
total_commissions: Annotated[
|
|
211
|
-
Optional[float], pydantic.Field(alias="totalCommissions")
|
|
212
|
-
] = 0
|
|
213
|
-
r"""The total commissions paid to the partner for their referrals."""
|
|
257
|
+
r"""The total amount of sales (in cents) generated by the partner's links. Defaults to 0 if `includeExpandedFields` is false."""
|
|
214
258
|
|
|
215
259
|
net_revenue: Annotated[Optional[float], pydantic.Field(alias="netRevenue")] = 0
|
|
216
|
-
r"""The total net revenue generated by the partner."""
|
|
260
|
+
r"""The total net revenue generated by the partner. Defaults to 0 if `includeExpandedFields` is false."""
|
|
217
261
|
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
)
|
|
223
|
-
] =
|
|
224
|
-
|
|
262
|
+
website: OptionalNullable[str] = UNSET
|
|
263
|
+
r"""The partner's website URL (including the https protocol)."""
|
|
264
|
+
|
|
265
|
+
website_txt_record: Annotated[
|
|
266
|
+
OptionalNullable[str], pydantic.Field(alias="websiteTxtRecord")
|
|
267
|
+
] = UNSET
|
|
268
|
+
|
|
269
|
+
website_verified_at: Annotated[
|
|
270
|
+
OptionalNullable[str], pydantic.Field(alias="websiteVerifiedAt")
|
|
271
|
+
] = UNSET
|
|
272
|
+
|
|
273
|
+
youtube: OptionalNullable[str] = UNSET
|
|
274
|
+
r"""The partner's YouTube channel username (e.g. `johndoe`)."""
|
|
275
|
+
|
|
276
|
+
youtube_verified_at: Annotated[
|
|
277
|
+
OptionalNullable[str], pydantic.Field(alias="youtubeVerifiedAt")
|
|
278
|
+
] = UNSET
|
|
279
|
+
|
|
280
|
+
youtube_subscriber_count: Annotated[
|
|
281
|
+
OptionalNullable[float], pydantic.Field(alias="youtubeSubscriberCount")
|
|
282
|
+
] = UNSET
|
|
283
|
+
|
|
284
|
+
youtube_view_count: Annotated[
|
|
285
|
+
OptionalNullable[float], pydantic.Field(alias="youtubeViewCount")
|
|
286
|
+
] = UNSET
|
|
287
|
+
|
|
288
|
+
twitter: OptionalNullable[str] = UNSET
|
|
289
|
+
r"""The partner's Twitter username (e.g. `johndoe`)."""
|
|
290
|
+
|
|
291
|
+
twitter_verified_at: Annotated[
|
|
292
|
+
OptionalNullable[str], pydantic.Field(alias="twitterVerifiedAt")
|
|
293
|
+
] = UNSET
|
|
294
|
+
|
|
295
|
+
linkedin: OptionalNullable[str] = UNSET
|
|
296
|
+
r"""The partner's LinkedIn username (e.g. `johndoe`)."""
|
|
297
|
+
|
|
298
|
+
linkedin_verified_at: Annotated[
|
|
299
|
+
OptionalNullable[str], pydantic.Field(alias="linkedinVerifiedAt")
|
|
300
|
+
] = UNSET
|
|
301
|
+
|
|
302
|
+
instagram: OptionalNullable[str] = UNSET
|
|
303
|
+
r"""The partner's Instagram username (e.g. `johndoe`)."""
|
|
304
|
+
|
|
305
|
+
instagram_verified_at: Annotated[
|
|
306
|
+
OptionalNullable[str], pydantic.Field(alias="instagramVerifiedAt")
|
|
307
|
+
] = UNSET
|
|
308
|
+
|
|
309
|
+
tiktok: OptionalNullable[str] = UNSET
|
|
310
|
+
r"""The partner's TikTok username (e.g. `johndoe`)."""
|
|
311
|
+
|
|
312
|
+
tiktok_verified_at: Annotated[
|
|
313
|
+
OptionalNullable[str], pydantic.Field(alias="tiktokVerifiedAt")
|
|
314
|
+
] = UNSET
|
|
225
315
|
|
|
226
316
|
@model_serializer(mode="wrap")
|
|
227
317
|
def serialize_model(self, handler):
|
|
228
318
|
optional_fields = [
|
|
229
319
|
"description",
|
|
320
|
+
"totalCommissions",
|
|
321
|
+
"clickRewardId",
|
|
322
|
+
"leadRewardId",
|
|
323
|
+
"saleRewardId",
|
|
324
|
+
"discountId",
|
|
325
|
+
"applicationId",
|
|
326
|
+
"bannedAt",
|
|
327
|
+
"bannedReason",
|
|
230
328
|
"clicks",
|
|
231
329
|
"leads",
|
|
232
330
|
"sales",
|
|
233
331
|
"saleAmount",
|
|
234
|
-
"totalCommissions",
|
|
235
332
|
"netRevenue",
|
|
236
|
-
"
|
|
333
|
+
"website",
|
|
334
|
+
"websiteTxtRecord",
|
|
335
|
+
"websiteVerifiedAt",
|
|
336
|
+
"youtube",
|
|
337
|
+
"youtubeVerifiedAt",
|
|
338
|
+
"youtubeSubscriberCount",
|
|
339
|
+
"youtubeViewCount",
|
|
340
|
+
"twitter",
|
|
341
|
+
"twitterVerifiedAt",
|
|
342
|
+
"linkedin",
|
|
343
|
+
"linkedinVerifiedAt",
|
|
344
|
+
"instagram",
|
|
345
|
+
"instagramVerifiedAt",
|
|
346
|
+
"tiktok",
|
|
347
|
+
"tiktokVerifiedAt",
|
|
237
348
|
]
|
|
238
349
|
nullable_fields = [
|
|
239
350
|
"email",
|
|
240
351
|
"image",
|
|
241
352
|
"description",
|
|
242
353
|
"country",
|
|
354
|
+
"paypalEmail",
|
|
355
|
+
"stripeConnectId",
|
|
356
|
+
"payoutsEnabledAt",
|
|
357
|
+
"tenantId",
|
|
358
|
+
"links",
|
|
359
|
+
"clickRewardId",
|
|
360
|
+
"leadRewardId",
|
|
361
|
+
"saleRewardId",
|
|
362
|
+
"discountId",
|
|
363
|
+
"applicationId",
|
|
364
|
+
"bannedAt",
|
|
365
|
+
"bannedReason",
|
|
243
366
|
"website",
|
|
367
|
+
"websiteTxtRecord",
|
|
368
|
+
"websiteVerifiedAt",
|
|
244
369
|
"youtube",
|
|
370
|
+
"youtubeVerifiedAt",
|
|
371
|
+
"youtubeSubscriberCount",
|
|
372
|
+
"youtubeViewCount",
|
|
245
373
|
"twitter",
|
|
374
|
+
"twitterVerifiedAt",
|
|
246
375
|
"linkedin",
|
|
376
|
+
"linkedinVerifiedAt",
|
|
247
377
|
"instagram",
|
|
378
|
+
"instagramVerifiedAt",
|
|
248
379
|
"tiktok",
|
|
249
|
-
"
|
|
250
|
-
"stripeConnectId",
|
|
251
|
-
"payoutsEnabledAt",
|
|
252
|
-
"tenantId",
|
|
253
|
-
"links",
|
|
380
|
+
"tiktokVerifiedAt",
|
|
254
381
|
]
|
|
255
382
|
null_default_fields = []
|
|
256
383
|
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
+
from .commissioncreatedevent import (
|
|
5
|
+
CommissionCreatedEvent,
|
|
6
|
+
CommissionCreatedEventTypedDict,
|
|
7
|
+
)
|
|
4
8
|
from .leadcreatedevent import LeadCreatedEvent, LeadCreatedEventTypedDict
|
|
5
9
|
from .linkclickedevent import LinkClickedEvent, LinkClickedEventTypedDict
|
|
6
10
|
from .linkwebhookevent import LinkWebhookEvent, LinkWebhookEventTypedDict
|
|
@@ -18,6 +22,7 @@ WebhookEventTypedDict = TypeAliasType(
|
|
|
18
22
|
LeadCreatedEventTypedDict,
|
|
19
23
|
SaleCreatedEventTypedDict,
|
|
20
24
|
PartnerEnrolledEventTypedDict,
|
|
25
|
+
CommissionCreatedEventTypedDict,
|
|
21
26
|
],
|
|
22
27
|
)
|
|
23
28
|
r"""Webhook event schema"""
|
|
@@ -31,6 +36,7 @@ WebhookEvent = TypeAliasType(
|
|
|
31
36
|
LeadCreatedEvent,
|
|
32
37
|
SaleCreatedEvent,
|
|
33
38
|
PartnerEnrolledEvent,
|
|
39
|
+
CommissionCreatedEvent,
|
|
34
40
|
],
|
|
35
41
|
)
|
|
36
42
|
r"""Webhook event schema"""
|
|
@@ -72,6 +72,7 @@ if TYPE_CHECKING:
|
|
|
72
72
|
TestVariantsTypedDict,
|
|
73
73
|
)
|
|
74
74
|
from .createpartner import (
|
|
75
|
+
BannedReason,
|
|
75
76
|
Country,
|
|
76
77
|
CreatePartnerLink,
|
|
77
78
|
CreatePartnerLinkTypedDict,
|
|
@@ -216,6 +217,10 @@ if TYPE_CHECKING:
|
|
|
216
217
|
)
|
|
217
218
|
from .getworkspace import GetWorkspaceRequest, GetWorkspaceRequestTypedDict
|
|
218
219
|
from .listcommissions import (
|
|
220
|
+
ListCommissionsCustomer,
|
|
221
|
+
ListCommissionsCustomerTypedDict,
|
|
222
|
+
ListCommissionsPartner,
|
|
223
|
+
ListCommissionsPartnerTypedDict,
|
|
219
224
|
ListCommissionsQueryParamInterval,
|
|
220
225
|
ListCommissionsQueryParamSortBy,
|
|
221
226
|
ListCommissionsQueryParamSortOrder,
|
|
@@ -244,11 +249,25 @@ if TYPE_CHECKING:
|
|
|
244
249
|
Order,
|
|
245
250
|
QueryParamEvent,
|
|
246
251
|
QueryParamInterval,
|
|
252
|
+
QueryParamSaleType,
|
|
247
253
|
QueryParamSortBy,
|
|
248
254
|
QueryParamSortOrder,
|
|
249
255
|
QueryParamTrigger,
|
|
250
256
|
)
|
|
251
257
|
from .listfolders import ListFoldersRequest, ListFoldersRequestTypedDict
|
|
258
|
+
from .listpartners import (
|
|
259
|
+
ListPartnersBannedReason,
|
|
260
|
+
ListPartnersLink,
|
|
261
|
+
ListPartnersLinkTypedDict,
|
|
262
|
+
ListPartnersQueryParamSortBy,
|
|
263
|
+
ListPartnersQueryParamSortOrder,
|
|
264
|
+
ListPartnersQueryParamStatus,
|
|
265
|
+
ListPartnersRequest,
|
|
266
|
+
ListPartnersRequestTypedDict,
|
|
267
|
+
ListPartnersResponseBody,
|
|
268
|
+
ListPartnersResponseBodyTypedDict,
|
|
269
|
+
ListPartnersStatus,
|
|
270
|
+
)
|
|
252
271
|
from .registerdomain import (
|
|
253
272
|
RegisterDomainRequestBody,
|
|
254
273
|
RegisterDomainRequestBodyTypedDict,
|
|
@@ -265,6 +284,7 @@ if TYPE_CHECKING:
|
|
|
265
284
|
RetrieveAnalyticsRequestTypedDict,
|
|
266
285
|
RetrieveAnalyticsResponseBody,
|
|
267
286
|
RetrieveAnalyticsResponseBodyTypedDict,
|
|
287
|
+
SaleType,
|
|
268
288
|
Trigger,
|
|
269
289
|
)
|
|
270
290
|
from .retrievelinks import (
|
|
@@ -305,6 +325,10 @@ if TYPE_CHECKING:
|
|
|
305
325
|
)
|
|
306
326
|
from .updatecommission import (
|
|
307
327
|
Status,
|
|
328
|
+
UpdateCommissionCustomer,
|
|
329
|
+
UpdateCommissionCustomerTypedDict,
|
|
330
|
+
UpdateCommissionPartner,
|
|
331
|
+
UpdateCommissionPartnerTypedDict,
|
|
308
332
|
UpdateCommissionRequest,
|
|
309
333
|
UpdateCommissionRequestBody,
|
|
310
334
|
UpdateCommissionRequestBodyTypedDict,
|
|
@@ -392,6 +416,7 @@ if TYPE_CHECKING:
|
|
|
392
416
|
|
|
393
417
|
__all__ = [
|
|
394
418
|
"AccessLevel",
|
|
419
|
+
"BannedReason",
|
|
395
420
|
"BulkCreateLinksTagIds",
|
|
396
421
|
"BulkCreateLinksTagIdsTypedDict",
|
|
397
422
|
"BulkCreateLinksTagNames",
|
|
@@ -555,6 +580,10 @@ __all__ = [
|
|
|
555
580
|
"LinkProps",
|
|
556
581
|
"LinkPropsTypedDict",
|
|
557
582
|
"LinkTypedDict",
|
|
583
|
+
"ListCommissionsCustomer",
|
|
584
|
+
"ListCommissionsCustomerTypedDict",
|
|
585
|
+
"ListCommissionsPartner",
|
|
586
|
+
"ListCommissionsPartnerTypedDict",
|
|
558
587
|
"ListCommissionsQueryParamInterval",
|
|
559
588
|
"ListCommissionsQueryParamSortBy",
|
|
560
589
|
"ListCommissionsQueryParamSortOrder",
|
|
@@ -576,6 +605,17 @@ __all__ = [
|
|
|
576
605
|
"ListEventsResponseBodyTypedDict",
|
|
577
606
|
"ListFoldersRequest",
|
|
578
607
|
"ListFoldersRequestTypedDict",
|
|
608
|
+
"ListPartnersBannedReason",
|
|
609
|
+
"ListPartnersLink",
|
|
610
|
+
"ListPartnersLinkTypedDict",
|
|
611
|
+
"ListPartnersQueryParamSortBy",
|
|
612
|
+
"ListPartnersQueryParamSortOrder",
|
|
613
|
+
"ListPartnersQueryParamStatus",
|
|
614
|
+
"ListPartnersRequest",
|
|
615
|
+
"ListPartnersRequestTypedDict",
|
|
616
|
+
"ListPartnersResponseBody",
|
|
617
|
+
"ListPartnersResponseBodyTypedDict",
|
|
618
|
+
"ListPartnersStatus",
|
|
579
619
|
"Mode",
|
|
580
620
|
"One",
|
|
581
621
|
"Order",
|
|
@@ -585,6 +625,7 @@ __all__ = [
|
|
|
585
625
|
"QueryParamEvent",
|
|
586
626
|
"QueryParamGroupBy",
|
|
587
627
|
"QueryParamInterval",
|
|
628
|
+
"QueryParamSaleType",
|
|
588
629
|
"QueryParamSortBy",
|
|
589
630
|
"QueryParamSortOrder",
|
|
590
631
|
"QueryParamStatus",
|
|
@@ -616,6 +657,7 @@ __all__ = [
|
|
|
616
657
|
"RetrievePartnerAnalyticsResponseBody",
|
|
617
658
|
"RetrievePartnerAnalyticsResponseBodyTypedDict",
|
|
618
659
|
"Sale",
|
|
660
|
+
"SaleType",
|
|
619
661
|
"SaleTypedDict",
|
|
620
662
|
"Sort",
|
|
621
663
|
"SortBy",
|
|
@@ -641,6 +683,10 @@ __all__ = [
|
|
|
641
683
|
"Trigger",
|
|
642
684
|
"Two",
|
|
643
685
|
"Type",
|
|
686
|
+
"UpdateCommissionCustomer",
|
|
687
|
+
"UpdateCommissionCustomerTypedDict",
|
|
688
|
+
"UpdateCommissionPartner",
|
|
689
|
+
"UpdateCommissionPartnerTypedDict",
|
|
644
690
|
"UpdateCommissionRequest",
|
|
645
691
|
"UpdateCommissionRequestBody",
|
|
646
692
|
"UpdateCommissionRequestBodyTypedDict",
|
|
@@ -765,6 +811,7 @@ _dynamic_imports: dict[str, str] = {
|
|
|
765
811
|
"TagNamesTypedDict": ".createlink",
|
|
766
812
|
"TestVariants": ".createlink",
|
|
767
813
|
"TestVariantsTypedDict": ".createlink",
|
|
814
|
+
"BannedReason": ".createpartner",
|
|
768
815
|
"Country": ".createpartner",
|
|
769
816
|
"CreatePartnerLink": ".createpartner",
|
|
770
817
|
"CreatePartnerLinkTypedDict": ".createpartner",
|
|
@@ -889,6 +936,10 @@ _dynamic_imports: dict[str, str] = {
|
|
|
889
936
|
"IdsTypedDict": ".gettags",
|
|
890
937
|
"GetWorkspaceRequest": ".getworkspace",
|
|
891
938
|
"GetWorkspaceRequestTypedDict": ".getworkspace",
|
|
939
|
+
"ListCommissionsCustomer": ".listcommissions",
|
|
940
|
+
"ListCommissionsCustomerTypedDict": ".listcommissions",
|
|
941
|
+
"ListCommissionsPartner": ".listcommissions",
|
|
942
|
+
"ListCommissionsPartnerTypedDict": ".listcommissions",
|
|
892
943
|
"ListCommissionsQueryParamInterval": ".listcommissions",
|
|
893
944
|
"ListCommissionsQueryParamSortBy": ".listcommissions",
|
|
894
945
|
"ListCommissionsQueryParamSortOrder": ".listcommissions",
|
|
@@ -913,11 +964,23 @@ _dynamic_imports: dict[str, str] = {
|
|
|
913
964
|
"Order": ".listevents",
|
|
914
965
|
"QueryParamEvent": ".listevents",
|
|
915
966
|
"QueryParamInterval": ".listevents",
|
|
967
|
+
"QueryParamSaleType": ".listevents",
|
|
916
968
|
"QueryParamSortBy": ".listevents",
|
|
917
969
|
"QueryParamSortOrder": ".listevents",
|
|
918
970
|
"QueryParamTrigger": ".listevents",
|
|
919
971
|
"ListFoldersRequest": ".listfolders",
|
|
920
972
|
"ListFoldersRequestTypedDict": ".listfolders",
|
|
973
|
+
"ListPartnersBannedReason": ".listpartners",
|
|
974
|
+
"ListPartnersLink": ".listpartners",
|
|
975
|
+
"ListPartnersLinkTypedDict": ".listpartners",
|
|
976
|
+
"ListPartnersQueryParamSortBy": ".listpartners",
|
|
977
|
+
"ListPartnersQueryParamSortOrder": ".listpartners",
|
|
978
|
+
"ListPartnersQueryParamStatus": ".listpartners",
|
|
979
|
+
"ListPartnersRequest": ".listpartners",
|
|
980
|
+
"ListPartnersRequestTypedDict": ".listpartners",
|
|
981
|
+
"ListPartnersResponseBody": ".listpartners",
|
|
982
|
+
"ListPartnersResponseBodyTypedDict": ".listpartners",
|
|
983
|
+
"ListPartnersStatus": ".listpartners",
|
|
921
984
|
"RegisterDomainRequestBody": ".registerdomain",
|
|
922
985
|
"RegisterDomainRequestBodyTypedDict": ".registerdomain",
|
|
923
986
|
"RegisterDomainResponseBody": ".registerdomain",
|
|
@@ -931,6 +994,7 @@ _dynamic_imports: dict[str, str] = {
|
|
|
931
994
|
"RetrieveAnalyticsRequestTypedDict": ".retrieveanalytics",
|
|
932
995
|
"RetrieveAnalyticsResponseBody": ".retrieveanalytics",
|
|
933
996
|
"RetrieveAnalyticsResponseBodyTypedDict": ".retrieveanalytics",
|
|
997
|
+
"SaleType": ".retrieveanalytics",
|
|
934
998
|
"Trigger": ".retrieveanalytics",
|
|
935
999
|
"Link": ".retrievelinks",
|
|
936
1000
|
"LinkTypedDict": ".retrievelinks",
|
|
@@ -961,6 +1025,10 @@ _dynamic_imports: dict[str, str] = {
|
|
|
961
1025
|
"TrackSaleResponseBody": ".tracksale",
|
|
962
1026
|
"TrackSaleResponseBodyTypedDict": ".tracksale",
|
|
963
1027
|
"Status": ".updatecommission",
|
|
1028
|
+
"UpdateCommissionCustomer": ".updatecommission",
|
|
1029
|
+
"UpdateCommissionCustomerTypedDict": ".updatecommission",
|
|
1030
|
+
"UpdateCommissionPartner": ".updatecommission",
|
|
1031
|
+
"UpdateCommissionPartnerTypedDict": ".updatecommission",
|
|
964
1032
|
"UpdateCommissionRequest": ".updatecommission",
|
|
965
1033
|
"UpdateCommissionRequestBody": ".updatecommission",
|
|
966
1034
|
"UpdateCommissionRequestBodyTypedDict": ".updatecommission",
|