dub 0.33.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.
- dub/_version.py +3 -3
- dub/analytics.py +2 -0
- dub/basesdk.py +6 -0
- dub/commissions.py +4 -0
- dub/customers.py +8 -0
- dub/domains.py +12 -0
- dub/embed_tokens.py +2 -0
- dub/events.py +2 -0
- dub/folders.py +8 -0
- dub/links.py +20 -0
- dub/models/components/__init__.py +49 -149
- dub/models/components/leadcreatedevent.py +8 -8
- dub/models/components/linkclickedevent.py +12 -12
- dub/models/components/linkerrorschema.py +12 -12
- dub/models/components/linkschema.py +3 -3
- dub/models/components/linktagschema.py +3 -3
- dub/models/components/linktagschemaoutput.py +38 -0
- dub/models/components/linkwebhookevent.py +8 -10
- dub/models/components/partnerenrolledevent.py +4 -4
- dub/models/components/salecreatedevent.py +8 -8
- dub/models/operations/__init__.py +130 -22
- dub/models/operations/createpartner.py +4 -55
- dub/models/operations/createpartnerlink.py +0 -51
- dub/models/operations/createreferralsembedtoken.py +0 -51
- dub/models/operations/getcustomers.py +18 -0
- dub/models/operations/getlinkinfo.py +0 -2
- dub/models/operations/getlinks.py +2 -2
- dub/models/operations/getlinkscount.py +2 -2
- dub/models/operations/getqrcode.py +1 -1
- dub/models/operations/listdomains.py +1 -1
- dub/models/operations/listevents.py +2016 -21
- dub/models/operations/listpartners.py +4 -4
- dub/models/operations/retrieveanalytics.py +16 -5
- dub/models/operations/retrievelinks.py +2 -2
- dub/models/operations/tracklead.py +4 -4
- dub/models/operations/updatecustomer.py +23 -11
- dub/models/operations/updatelink.py +0 -2
- dub/models/operations/updateworkspace.py +3 -3
- dub/models/operations/upsertpartnerlink.py +0 -51
- dub/partners.py +22 -4
- dub/qr_codes.py +2 -0
- dub/tags.py +24 -12
- dub/track.py +4 -0
- dub/types/basemodel.py +41 -3
- dub/utils/__init__.py +0 -3
- dub/utils/enums.py +60 -0
- dub/utils/forms.py +21 -10
- dub/utils/queryparams.py +14 -2
- dub/utils/requestbodies.py +3 -3
- dub/utils/serializers.py +0 -20
- dub/workspaces.py +4 -0
- {dub-0.33.0.dist-info → dub-0.34.0.dist-info}/METADATA +14 -14
- {dub-0.33.0.dist-info → dub-0.34.0.dist-info}/RECORD +55 -58
- dub/models/components/clickevent.py +0 -557
- dub/models/components/continentcode.py +0 -16
- dub/models/components/leadevent.py +0 -681
- dub/models/components/saleevent.py +0 -780
- {dub-0.33.0.dist-info → dub-0.34.0.dist-info}/WHEEL +0 -0
- {dub-0.33.0.dist-info → dub-0.34.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -22,12 +22,10 @@ class One(str, Enum):
|
|
|
22
22
|
LINK_CREATED = "link.created"
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
"LinkWebhookEventEventTypedDict", Union[One, Two, Three]
|
|
27
|
-
)
|
|
25
|
+
EventTypedDict = TypeAliasType("EventTypedDict", Union[One, Two, Three])
|
|
28
26
|
|
|
29
27
|
|
|
30
|
-
|
|
28
|
+
Event = TypeAliasType("Event", Union[One, Two, Three])
|
|
31
29
|
|
|
32
30
|
|
|
33
31
|
class LinkWebhookEventTestVariantsTypedDict(TypedDict):
|
|
@@ -41,7 +39,7 @@ class LinkWebhookEventTestVariants(BaseModel):
|
|
|
41
39
|
percentage: float
|
|
42
40
|
|
|
43
41
|
|
|
44
|
-
class
|
|
42
|
+
class DataTypedDict(TypedDict):
|
|
45
43
|
id: str
|
|
46
44
|
r"""The unique ID of the short link."""
|
|
47
45
|
domain: str
|
|
@@ -130,7 +128,7 @@ class LinkWebhookEventLinkTypedDict(TypedDict):
|
|
|
130
128
|
r"""The total dollar value of sales (in cents) generated by the short link."""
|
|
131
129
|
|
|
132
130
|
|
|
133
|
-
class
|
|
131
|
+
class Data(BaseModel):
|
|
134
132
|
id: str
|
|
135
133
|
r"""The unique ID of the short link."""
|
|
136
134
|
|
|
@@ -350,9 +348,9 @@ class LinkWebhookEventTypedDict(TypedDict):
|
|
|
350
348
|
r"""Triggered when a link is created, updated, or deleted."""
|
|
351
349
|
|
|
352
350
|
id: str
|
|
353
|
-
event:
|
|
351
|
+
event: EventTypedDict
|
|
354
352
|
created_at: str
|
|
355
|
-
data:
|
|
353
|
+
data: DataTypedDict
|
|
356
354
|
|
|
357
355
|
|
|
358
356
|
class LinkWebhookEvent(BaseModel):
|
|
@@ -360,8 +358,8 @@ class LinkWebhookEvent(BaseModel):
|
|
|
360
358
|
|
|
361
359
|
id: str
|
|
362
360
|
|
|
363
|
-
event:
|
|
361
|
+
event: Event
|
|
364
362
|
|
|
365
363
|
created_at: Annotated[str, pydantic.Field(alias="createdAt")]
|
|
366
364
|
|
|
367
|
-
data:
|
|
365
|
+
data: Data
|
|
@@ -26,7 +26,7 @@ class Status(str, Enum):
|
|
|
26
26
|
ARCHIVED = "archived"
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
class
|
|
29
|
+
class LinksTypedDict(TypedDict):
|
|
30
30
|
id: str
|
|
31
31
|
r"""The unique ID of the short link."""
|
|
32
32
|
domain: str
|
|
@@ -49,7 +49,7 @@ class PartnerEnrolledEventLinkTypedDict(TypedDict):
|
|
|
49
49
|
r"""The total dollar value of sales (in cents) generated by the short link."""
|
|
50
50
|
|
|
51
51
|
|
|
52
|
-
class
|
|
52
|
+
class Links(BaseModel):
|
|
53
53
|
id: str
|
|
54
54
|
r"""The unique ID of the short link."""
|
|
55
55
|
|
|
@@ -122,7 +122,7 @@ class PartnerEnrolledEventDataTypedDict(TypedDict):
|
|
|
122
122
|
created_at: str
|
|
123
123
|
status: Status
|
|
124
124
|
r"""The status of the partner's enrollment in the program."""
|
|
125
|
-
links: Nullable[List[
|
|
125
|
+
links: Nullable[List[LinksTypedDict]]
|
|
126
126
|
r"""The partner's referral links in this program."""
|
|
127
127
|
description: NotRequired[Nullable[str]]
|
|
128
128
|
r"""A brief description of the partner and their background."""
|
|
@@ -225,7 +225,7 @@ class PartnerEnrolledEventData(BaseModel):
|
|
|
225
225
|
status: Status
|
|
226
226
|
r"""The status of the partner's enrollment in the program."""
|
|
227
227
|
|
|
228
|
-
links: Nullable[List[
|
|
228
|
+
links: Nullable[List[Links]]
|
|
229
229
|
r"""The partner's referral links in this program."""
|
|
230
230
|
|
|
231
231
|
description: OptionalNullable[str] = UNSET
|
|
@@ -492,14 +492,14 @@ class SaleCreatedEventLink(BaseModel):
|
|
|
492
492
|
return m
|
|
493
493
|
|
|
494
494
|
|
|
495
|
-
class
|
|
495
|
+
class SaleTypedDict(TypedDict):
|
|
496
496
|
amount: float
|
|
497
497
|
currency: str
|
|
498
498
|
payment_processor: str
|
|
499
499
|
invoice_id: Nullable[str]
|
|
500
500
|
|
|
501
501
|
|
|
502
|
-
class
|
|
502
|
+
class Sale(BaseModel):
|
|
503
503
|
amount: float
|
|
504
504
|
|
|
505
505
|
currency: str
|
|
@@ -632,9 +632,9 @@ class SaleCreatedEventDataTypedDict(TypedDict):
|
|
|
632
632
|
customer: SaleCreatedEventCustomerTypedDict
|
|
633
633
|
click: SaleCreatedEventClickTypedDict
|
|
634
634
|
link: SaleCreatedEventLinkTypedDict
|
|
635
|
-
sale:
|
|
636
|
-
metadata: Nullable[Dict[str, Any]]
|
|
635
|
+
sale: SaleTypedDict
|
|
637
636
|
partner: NotRequired[Nullable[SaleCreatedEventPartnerTypedDict]]
|
|
637
|
+
metadata: NotRequired[Nullable[Dict[str, Any]]]
|
|
638
638
|
|
|
639
639
|
|
|
640
640
|
class SaleCreatedEventData(BaseModel):
|
|
@@ -646,15 +646,15 @@ class SaleCreatedEventData(BaseModel):
|
|
|
646
646
|
|
|
647
647
|
link: SaleCreatedEventLink
|
|
648
648
|
|
|
649
|
-
sale:
|
|
650
|
-
|
|
651
|
-
metadata: Nullable[Dict[str, Any]]
|
|
649
|
+
sale: Sale
|
|
652
650
|
|
|
653
651
|
partner: OptionalNullable[SaleCreatedEventPartner] = UNSET
|
|
654
652
|
|
|
653
|
+
metadata: OptionalNullable[Dict[str, Any]] = UNSET
|
|
654
|
+
|
|
655
655
|
@model_serializer(mode="wrap")
|
|
656
656
|
def serialize_model(self, handler):
|
|
657
|
-
optional_fields = ["partner"]
|
|
657
|
+
optional_fields = ["partner", "metadata"]
|
|
658
658
|
nullable_fields = ["partner", "metadata"]
|
|
659
659
|
null_default_fields = []
|
|
660
660
|
|
|
@@ -69,8 +69,6 @@ if TYPE_CHECKING:
|
|
|
69
69
|
)
|
|
70
70
|
from .createpartner import (
|
|
71
71
|
BannedReason,
|
|
72
|
-
CreatePartnerLink,
|
|
73
|
-
CreatePartnerLinkTypedDict,
|
|
74
72
|
CreatePartnerRequestBody,
|
|
75
73
|
CreatePartnerRequestBodyTypedDict,
|
|
76
74
|
CreatePartnerResponseBody,
|
|
@@ -84,6 +82,8 @@ if TYPE_CHECKING:
|
|
|
84
82
|
CreatePartnerTestVariantsTypedDict,
|
|
85
83
|
LinkProps,
|
|
86
84
|
LinkPropsTypedDict,
|
|
85
|
+
Links,
|
|
86
|
+
LinksTypedDict,
|
|
87
87
|
)
|
|
88
88
|
from .createpartnerlink import (
|
|
89
89
|
CreatePartnerLinkLinkProps,
|
|
@@ -234,25 +234,60 @@ if TYPE_CHECKING:
|
|
|
234
234
|
ListDomainsResponseTypedDict,
|
|
235
235
|
)
|
|
236
236
|
from .listevents import (
|
|
237
|
+
ClickEvent,
|
|
238
|
+
ClickEventTypedDict,
|
|
239
|
+
LeadEvent,
|
|
240
|
+
LeadEventTypedDict,
|
|
237
241
|
ListEventsQueryParamTagIds,
|
|
238
242
|
ListEventsQueryParamTagIdsTypedDict,
|
|
239
243
|
ListEventsRequest,
|
|
240
244
|
ListEventsRequestTypedDict,
|
|
241
245
|
ListEventsResponseBody,
|
|
246
|
+
ListEventsResponseBodyClick,
|
|
247
|
+
ListEventsResponseBodyClickTypedDict,
|
|
248
|
+
ListEventsResponseBodyCustomer,
|
|
249
|
+
ListEventsResponseBodyCustomerTypedDict,
|
|
250
|
+
ListEventsResponseBodyEvent,
|
|
251
|
+
ListEventsResponseBodyEventsClick,
|
|
252
|
+
ListEventsResponseBodyEventsClickTypedDict,
|
|
253
|
+
ListEventsResponseBodyEventsEvent,
|
|
254
|
+
ListEventsResponseBodyEventsLink,
|
|
255
|
+
ListEventsResponseBodyEventsLinkTypedDict,
|
|
256
|
+
ListEventsResponseBodyEventsTestVariants,
|
|
257
|
+
ListEventsResponseBodyEventsTestVariantsTypedDict,
|
|
258
|
+
ListEventsResponseBodyLink,
|
|
259
|
+
ListEventsResponseBodyLinkTypedDict,
|
|
260
|
+
ListEventsResponseBodyTestVariants,
|
|
261
|
+
ListEventsResponseBodyTestVariantsTypedDict,
|
|
242
262
|
ListEventsResponseBodyTypedDict,
|
|
243
263
|
Order,
|
|
264
|
+
QueryParamContinent,
|
|
244
265
|
QueryParamEvent,
|
|
245
266
|
QueryParamInterval,
|
|
246
267
|
QueryParamSaleType,
|
|
247
268
|
QueryParamSortBy,
|
|
248
269
|
QueryParamSortOrder,
|
|
249
270
|
QueryParamTrigger,
|
|
271
|
+
ResponseBodyClick,
|
|
272
|
+
ResponseBodyClickTypedDict,
|
|
273
|
+
ResponseBodyCustomer,
|
|
274
|
+
ResponseBodyCustomerTypedDict,
|
|
275
|
+
ResponseBodyEvent,
|
|
276
|
+
ResponseBodyLink,
|
|
277
|
+
ResponseBodyLinkTypedDict,
|
|
278
|
+
ResponseBodyPaymentProcessor,
|
|
279
|
+
ResponseBodySale,
|
|
280
|
+
ResponseBodySaleTypedDict,
|
|
281
|
+
ResponseBodyTestVariants,
|
|
282
|
+
ResponseBodyTestVariantsTypedDict,
|
|
283
|
+
SaleEvent,
|
|
284
|
+
SaleEventTypedDict,
|
|
250
285
|
)
|
|
251
286
|
from .listfolders import ListFoldersRequest, ListFoldersRequestTypedDict
|
|
252
287
|
from .listpartners import (
|
|
253
288
|
ListPartnersBannedReason,
|
|
254
|
-
|
|
255
|
-
|
|
289
|
+
ListPartnersLinks,
|
|
290
|
+
ListPartnersLinksTypedDict,
|
|
256
291
|
ListPartnersQueryParamSortBy,
|
|
257
292
|
ListPartnersQueryParamSortOrder,
|
|
258
293
|
ListPartnersQueryParamStatus,
|
|
@@ -269,6 +304,7 @@ if TYPE_CHECKING:
|
|
|
269
304
|
RegisterDomainResponseBodyTypedDict,
|
|
270
305
|
)
|
|
271
306
|
from .retrieveanalytics import (
|
|
307
|
+
Continent,
|
|
272
308
|
Event,
|
|
273
309
|
Interval,
|
|
274
310
|
QueryParamGroupBy,
|
|
@@ -282,10 +318,10 @@ if TYPE_CHECKING:
|
|
|
282
318
|
Trigger,
|
|
283
319
|
)
|
|
284
320
|
from .retrievelinks import (
|
|
285
|
-
Link,
|
|
286
|
-
LinkTypedDict,
|
|
287
321
|
RetrieveLinksRequest,
|
|
288
322
|
RetrieveLinksRequestTypedDict,
|
|
323
|
+
RetrieveLinksResponseBody,
|
|
324
|
+
RetrieveLinksResponseBodyTypedDict,
|
|
289
325
|
)
|
|
290
326
|
from .retrievepartneranalytics import (
|
|
291
327
|
RetrievePartnerAnalyticsQueryParamGroupBy,
|
|
@@ -300,9 +336,9 @@ if TYPE_CHECKING:
|
|
|
300
336
|
ClickTypedDict,
|
|
301
337
|
Customer,
|
|
302
338
|
CustomerTypedDict,
|
|
339
|
+
Link,
|
|
340
|
+
LinkTypedDict,
|
|
303
341
|
Mode,
|
|
304
|
-
TrackLeadLink,
|
|
305
|
-
TrackLeadLinkTypedDict,
|
|
306
342
|
TrackLeadRequestBody,
|
|
307
343
|
TrackLeadRequestBodyTypedDict,
|
|
308
344
|
TrackLeadResponseBody,
|
|
@@ -440,15 +476,17 @@ __all__ = [
|
|
|
440
476
|
"CheckDomainStatusResponseBody",
|
|
441
477
|
"CheckDomainStatusResponseBodyTypedDict",
|
|
442
478
|
"Click",
|
|
479
|
+
"ClickEvent",
|
|
480
|
+
"ClickEventTypedDict",
|
|
443
481
|
"ClickTypedDict",
|
|
444
482
|
"Color",
|
|
483
|
+
"Continent",
|
|
445
484
|
"CreateDomainRequestBody",
|
|
446
485
|
"CreateDomainRequestBodyTypedDict",
|
|
447
486
|
"CreateFolderRequestBody",
|
|
448
487
|
"CreateFolderRequestBodyTypedDict",
|
|
449
488
|
"CreateLinkRequestBody",
|
|
450
489
|
"CreateLinkRequestBodyTypedDict",
|
|
451
|
-
"CreatePartnerLink",
|
|
452
490
|
"CreatePartnerLinkLinkProps",
|
|
453
491
|
"CreatePartnerLinkLinkPropsTypedDict",
|
|
454
492
|
"CreatePartnerLinkRequestBody",
|
|
@@ -459,7 +497,6 @@ __all__ = [
|
|
|
459
497
|
"CreatePartnerLinkTagNamesTypedDict",
|
|
460
498
|
"CreatePartnerLinkTestVariants",
|
|
461
499
|
"CreatePartnerLinkTestVariantsTypedDict",
|
|
462
|
-
"CreatePartnerLinkTypedDict",
|
|
463
500
|
"CreatePartnerRequestBody",
|
|
464
501
|
"CreatePartnerRequestBodyTypedDict",
|
|
465
502
|
"CreatePartnerResponseBody",
|
|
@@ -562,11 +599,15 @@ __all__ = [
|
|
|
562
599
|
"Ids",
|
|
563
600
|
"IdsTypedDict",
|
|
564
601
|
"Interval",
|
|
602
|
+
"LeadEvent",
|
|
603
|
+
"LeadEventTypedDict",
|
|
565
604
|
"Level",
|
|
566
605
|
"Link",
|
|
567
606
|
"LinkProps",
|
|
568
607
|
"LinkPropsTypedDict",
|
|
569
608
|
"LinkTypedDict",
|
|
609
|
+
"Links",
|
|
610
|
+
"LinksTypedDict",
|
|
570
611
|
"ListCommissionsCustomer",
|
|
571
612
|
"ListCommissionsCustomerTypedDict",
|
|
572
613
|
"ListCommissionsPartner",
|
|
@@ -589,12 +630,28 @@ __all__ = [
|
|
|
589
630
|
"ListEventsRequest",
|
|
590
631
|
"ListEventsRequestTypedDict",
|
|
591
632
|
"ListEventsResponseBody",
|
|
633
|
+
"ListEventsResponseBodyClick",
|
|
634
|
+
"ListEventsResponseBodyClickTypedDict",
|
|
635
|
+
"ListEventsResponseBodyCustomer",
|
|
636
|
+
"ListEventsResponseBodyCustomerTypedDict",
|
|
637
|
+
"ListEventsResponseBodyEvent",
|
|
638
|
+
"ListEventsResponseBodyEventsClick",
|
|
639
|
+
"ListEventsResponseBodyEventsClickTypedDict",
|
|
640
|
+
"ListEventsResponseBodyEventsEvent",
|
|
641
|
+
"ListEventsResponseBodyEventsLink",
|
|
642
|
+
"ListEventsResponseBodyEventsLinkTypedDict",
|
|
643
|
+
"ListEventsResponseBodyEventsTestVariants",
|
|
644
|
+
"ListEventsResponseBodyEventsTestVariantsTypedDict",
|
|
645
|
+
"ListEventsResponseBodyLink",
|
|
646
|
+
"ListEventsResponseBodyLinkTypedDict",
|
|
647
|
+
"ListEventsResponseBodyTestVariants",
|
|
648
|
+
"ListEventsResponseBodyTestVariantsTypedDict",
|
|
592
649
|
"ListEventsResponseBodyTypedDict",
|
|
593
650
|
"ListFoldersRequest",
|
|
594
651
|
"ListFoldersRequestTypedDict",
|
|
595
652
|
"ListPartnersBannedReason",
|
|
596
|
-
"
|
|
597
|
-
"
|
|
653
|
+
"ListPartnersLinks",
|
|
654
|
+
"ListPartnersLinksTypedDict",
|
|
598
655
|
"ListPartnersQueryParamSortBy",
|
|
599
656
|
"ListPartnersQueryParamSortOrder",
|
|
600
657
|
"ListPartnersQueryParamStatus",
|
|
@@ -609,6 +666,7 @@ __all__ = [
|
|
|
609
666
|
"Partner",
|
|
610
667
|
"PartnerTypedDict",
|
|
611
668
|
"PaymentProcessor",
|
|
669
|
+
"QueryParamContinent",
|
|
612
670
|
"QueryParamEvent",
|
|
613
671
|
"QueryParamGroupBy",
|
|
614
672
|
"QueryParamInterval",
|
|
@@ -629,6 +687,18 @@ __all__ = [
|
|
|
629
687
|
"RequestBody",
|
|
630
688
|
"RequestBodyTypedDict",
|
|
631
689
|
"ResponseBody",
|
|
690
|
+
"ResponseBodyClick",
|
|
691
|
+
"ResponseBodyClickTypedDict",
|
|
692
|
+
"ResponseBodyCustomer",
|
|
693
|
+
"ResponseBodyCustomerTypedDict",
|
|
694
|
+
"ResponseBodyEvent",
|
|
695
|
+
"ResponseBodyLink",
|
|
696
|
+
"ResponseBodyLinkTypedDict",
|
|
697
|
+
"ResponseBodyPaymentProcessor",
|
|
698
|
+
"ResponseBodySale",
|
|
699
|
+
"ResponseBodySaleTypedDict",
|
|
700
|
+
"ResponseBodyTestVariants",
|
|
701
|
+
"ResponseBodyTestVariantsTypedDict",
|
|
632
702
|
"ResponseBodyTypedDict",
|
|
633
703
|
"RetrieveAnalyticsQueryParamTagIds",
|
|
634
704
|
"RetrieveAnalyticsQueryParamTagIdsTypedDict",
|
|
@@ -638,6 +708,8 @@ __all__ = [
|
|
|
638
708
|
"RetrieveAnalyticsResponseBodyTypedDict",
|
|
639
709
|
"RetrieveLinksRequest",
|
|
640
710
|
"RetrieveLinksRequestTypedDict",
|
|
711
|
+
"RetrieveLinksResponseBody",
|
|
712
|
+
"RetrieveLinksResponseBodyTypedDict",
|
|
641
713
|
"RetrievePartnerAnalyticsQueryParamGroupBy",
|
|
642
714
|
"RetrievePartnerAnalyticsQueryParamInterval",
|
|
643
715
|
"RetrievePartnerAnalyticsRequest",
|
|
@@ -645,6 +717,8 @@ __all__ = [
|
|
|
645
717
|
"RetrievePartnerAnalyticsResponseBody",
|
|
646
718
|
"RetrievePartnerAnalyticsResponseBodyTypedDict",
|
|
647
719
|
"Sale",
|
|
720
|
+
"SaleEvent",
|
|
721
|
+
"SaleEventTypedDict",
|
|
648
722
|
"SaleType",
|
|
649
723
|
"SaleTypedDict",
|
|
650
724
|
"Sort",
|
|
@@ -658,8 +732,6 @@ __all__ = [
|
|
|
658
732
|
"TestVariants",
|
|
659
733
|
"TestVariantsTypedDict",
|
|
660
734
|
"Three",
|
|
661
|
-
"TrackLeadLink",
|
|
662
|
-
"TrackLeadLinkTypedDict",
|
|
663
735
|
"TrackLeadRequestBody",
|
|
664
736
|
"TrackLeadRequestBodyTypedDict",
|
|
665
737
|
"TrackLeadResponseBody",
|
|
@@ -796,8 +868,6 @@ _dynamic_imports: dict[str, str] = {
|
|
|
796
868
|
"TestVariants": ".createlink",
|
|
797
869
|
"TestVariantsTypedDict": ".createlink",
|
|
798
870
|
"BannedReason": ".createpartner",
|
|
799
|
-
"CreatePartnerLink": ".createpartner",
|
|
800
|
-
"CreatePartnerLinkTypedDict": ".createpartner",
|
|
801
871
|
"CreatePartnerRequestBody": ".createpartner",
|
|
802
872
|
"CreatePartnerRequestBodyTypedDict": ".createpartner",
|
|
803
873
|
"CreatePartnerResponseBody": ".createpartner",
|
|
@@ -811,6 +881,8 @@ _dynamic_imports: dict[str, str] = {
|
|
|
811
881
|
"CreatePartnerTestVariantsTypedDict": ".createpartner",
|
|
812
882
|
"LinkProps": ".createpartner",
|
|
813
883
|
"LinkPropsTypedDict": ".createpartner",
|
|
884
|
+
"Links": ".createpartner",
|
|
885
|
+
"LinksTypedDict": ".createpartner",
|
|
814
886
|
"CreatePartnerLinkLinkProps": ".createpartnerlink",
|
|
815
887
|
"CreatePartnerLinkLinkPropsTypedDict": ".createpartnerlink",
|
|
816
888
|
"CreatePartnerLinkRequestBody": ".createpartnerlink",
|
|
@@ -937,24 +1009,59 @@ _dynamic_imports: dict[str, str] = {
|
|
|
937
1009
|
"ListDomainsRequestTypedDict": ".listdomains",
|
|
938
1010
|
"ListDomainsResponse": ".listdomains",
|
|
939
1011
|
"ListDomainsResponseTypedDict": ".listdomains",
|
|
1012
|
+
"ClickEvent": ".listevents",
|
|
1013
|
+
"ClickEventTypedDict": ".listevents",
|
|
1014
|
+
"LeadEvent": ".listevents",
|
|
1015
|
+
"LeadEventTypedDict": ".listevents",
|
|
940
1016
|
"ListEventsQueryParamTagIds": ".listevents",
|
|
941
1017
|
"ListEventsQueryParamTagIdsTypedDict": ".listevents",
|
|
942
1018
|
"ListEventsRequest": ".listevents",
|
|
943
1019
|
"ListEventsRequestTypedDict": ".listevents",
|
|
944
1020
|
"ListEventsResponseBody": ".listevents",
|
|
1021
|
+
"ListEventsResponseBodyClick": ".listevents",
|
|
1022
|
+
"ListEventsResponseBodyClickTypedDict": ".listevents",
|
|
1023
|
+
"ListEventsResponseBodyCustomer": ".listevents",
|
|
1024
|
+
"ListEventsResponseBodyCustomerTypedDict": ".listevents",
|
|
1025
|
+
"ListEventsResponseBodyEvent": ".listevents",
|
|
1026
|
+
"ListEventsResponseBodyEventsClick": ".listevents",
|
|
1027
|
+
"ListEventsResponseBodyEventsClickTypedDict": ".listevents",
|
|
1028
|
+
"ListEventsResponseBodyEventsEvent": ".listevents",
|
|
1029
|
+
"ListEventsResponseBodyEventsLink": ".listevents",
|
|
1030
|
+
"ListEventsResponseBodyEventsLinkTypedDict": ".listevents",
|
|
1031
|
+
"ListEventsResponseBodyEventsTestVariants": ".listevents",
|
|
1032
|
+
"ListEventsResponseBodyEventsTestVariantsTypedDict": ".listevents",
|
|
1033
|
+
"ListEventsResponseBodyLink": ".listevents",
|
|
1034
|
+
"ListEventsResponseBodyLinkTypedDict": ".listevents",
|
|
1035
|
+
"ListEventsResponseBodyTestVariants": ".listevents",
|
|
1036
|
+
"ListEventsResponseBodyTestVariantsTypedDict": ".listevents",
|
|
945
1037
|
"ListEventsResponseBodyTypedDict": ".listevents",
|
|
946
1038
|
"Order": ".listevents",
|
|
1039
|
+
"QueryParamContinent": ".listevents",
|
|
947
1040
|
"QueryParamEvent": ".listevents",
|
|
948
1041
|
"QueryParamInterval": ".listevents",
|
|
949
1042
|
"QueryParamSaleType": ".listevents",
|
|
950
1043
|
"QueryParamSortBy": ".listevents",
|
|
951
1044
|
"QueryParamSortOrder": ".listevents",
|
|
952
1045
|
"QueryParamTrigger": ".listevents",
|
|
1046
|
+
"ResponseBodyClick": ".listevents",
|
|
1047
|
+
"ResponseBodyClickTypedDict": ".listevents",
|
|
1048
|
+
"ResponseBodyCustomer": ".listevents",
|
|
1049
|
+
"ResponseBodyCustomerTypedDict": ".listevents",
|
|
1050
|
+
"ResponseBodyEvent": ".listevents",
|
|
1051
|
+
"ResponseBodyLink": ".listevents",
|
|
1052
|
+
"ResponseBodyLinkTypedDict": ".listevents",
|
|
1053
|
+
"ResponseBodyPaymentProcessor": ".listevents",
|
|
1054
|
+
"ResponseBodySale": ".listevents",
|
|
1055
|
+
"ResponseBodySaleTypedDict": ".listevents",
|
|
1056
|
+
"ResponseBodyTestVariants": ".listevents",
|
|
1057
|
+
"ResponseBodyTestVariantsTypedDict": ".listevents",
|
|
1058
|
+
"SaleEvent": ".listevents",
|
|
1059
|
+
"SaleEventTypedDict": ".listevents",
|
|
953
1060
|
"ListFoldersRequest": ".listfolders",
|
|
954
1061
|
"ListFoldersRequestTypedDict": ".listfolders",
|
|
955
1062
|
"ListPartnersBannedReason": ".listpartners",
|
|
956
|
-
"
|
|
957
|
-
"
|
|
1063
|
+
"ListPartnersLinks": ".listpartners",
|
|
1064
|
+
"ListPartnersLinksTypedDict": ".listpartners",
|
|
958
1065
|
"ListPartnersQueryParamSortBy": ".listpartners",
|
|
959
1066
|
"ListPartnersQueryParamSortOrder": ".listpartners",
|
|
960
1067
|
"ListPartnersQueryParamStatus": ".listpartners",
|
|
@@ -967,6 +1074,7 @@ _dynamic_imports: dict[str, str] = {
|
|
|
967
1074
|
"RegisterDomainRequestBodyTypedDict": ".registerdomain",
|
|
968
1075
|
"RegisterDomainResponseBody": ".registerdomain",
|
|
969
1076
|
"RegisterDomainResponseBodyTypedDict": ".registerdomain",
|
|
1077
|
+
"Continent": ".retrieveanalytics",
|
|
970
1078
|
"Event": ".retrieveanalytics",
|
|
971
1079
|
"Interval": ".retrieveanalytics",
|
|
972
1080
|
"QueryParamGroupBy": ".retrieveanalytics",
|
|
@@ -978,10 +1086,10 @@ _dynamic_imports: dict[str, str] = {
|
|
|
978
1086
|
"RetrieveAnalyticsResponseBodyTypedDict": ".retrieveanalytics",
|
|
979
1087
|
"SaleType": ".retrieveanalytics",
|
|
980
1088
|
"Trigger": ".retrieveanalytics",
|
|
981
|
-
"Link": ".retrievelinks",
|
|
982
|
-
"LinkTypedDict": ".retrievelinks",
|
|
983
1089
|
"RetrieveLinksRequest": ".retrievelinks",
|
|
984
1090
|
"RetrieveLinksRequestTypedDict": ".retrievelinks",
|
|
1091
|
+
"RetrieveLinksResponseBody": ".retrievelinks",
|
|
1092
|
+
"RetrieveLinksResponseBodyTypedDict": ".retrievelinks",
|
|
985
1093
|
"RetrievePartnerAnalyticsQueryParamGroupBy": ".retrievepartneranalytics",
|
|
986
1094
|
"RetrievePartnerAnalyticsQueryParamInterval": ".retrievepartneranalytics",
|
|
987
1095
|
"RetrievePartnerAnalyticsRequest": ".retrievepartneranalytics",
|
|
@@ -992,9 +1100,9 @@ _dynamic_imports: dict[str, str] = {
|
|
|
992
1100
|
"ClickTypedDict": ".tracklead",
|
|
993
1101
|
"Customer": ".tracklead",
|
|
994
1102
|
"CustomerTypedDict": ".tracklead",
|
|
1103
|
+
"Link": ".tracklead",
|
|
1104
|
+
"LinkTypedDict": ".tracklead",
|
|
995
1105
|
"Mode": ".tracklead",
|
|
996
|
-
"TrackLeadLink": ".tracklead",
|
|
997
|
-
"TrackLeadLinkTypedDict": ".tracklead",
|
|
998
1106
|
"TrackLeadRequestBody": ".tracklead",
|
|
999
1107
|
"TrackLeadRequestBodyTypedDict": ".tracklead",
|
|
1000
1108
|
"TrackLeadResponseBody": ".tracklead",
|
|
@@ -57,8 +57,6 @@ class LinkPropsTypedDict(TypedDict):
|
|
|
57
57
|
r"""The unique IDs of the tags assigned to the short link."""
|
|
58
58
|
tag_names: NotRequired[CreatePartnerTagNamesTypedDict]
|
|
59
59
|
r"""The unique name of the tags assigned to the short link (case insensitive)."""
|
|
60
|
-
folder_id: NotRequired[Nullable[str]]
|
|
61
|
-
r"""The unique ID existing folder to assign the short link to."""
|
|
62
60
|
comments: NotRequired[Nullable[str]]
|
|
63
61
|
r"""The comments for the short link."""
|
|
64
62
|
expires_at: NotRequired[Nullable[str]]
|
|
@@ -85,18 +83,6 @@ class LinkPropsTypedDict(TypedDict):
|
|
|
85
83
|
r"""The Android destination URL for the short link for Android device targeting."""
|
|
86
84
|
do_index: NotRequired[bool]
|
|
87
85
|
r"""Allow search engines to index your short link. Defaults to `false` if not provided. Learn more: https://d.to/noindex"""
|
|
88
|
-
utm_source: NotRequired[Nullable[str]]
|
|
89
|
-
r"""The UTM source of the short link. If set, this will populate or override the UTM source in the destination URL."""
|
|
90
|
-
utm_medium: NotRequired[Nullable[str]]
|
|
91
|
-
r"""The UTM medium of the short link. If set, this will populate or override the UTM medium in the destination URL."""
|
|
92
|
-
utm_campaign: NotRequired[Nullable[str]]
|
|
93
|
-
r"""The UTM campaign of the short link. If set, this will populate or override the UTM campaign in the destination URL."""
|
|
94
|
-
utm_term: NotRequired[Nullable[str]]
|
|
95
|
-
r"""The UTM term of the short link. If set, this will populate or override the UTM term in the destination URL."""
|
|
96
|
-
utm_content: NotRequired[Nullable[str]]
|
|
97
|
-
r"""The UTM content of the short link. If set, this will populate or override the UTM content in the destination URL."""
|
|
98
|
-
ref: NotRequired[Nullable[str]]
|
|
99
|
-
r"""The referral tag of the short link. If set, this will populate or override the `ref` query parameter in the destination URL."""
|
|
100
86
|
test_variants: NotRequired[Nullable[List[CreatePartnerTestVariantsTypedDict]]]
|
|
101
87
|
r"""An array of A/B test URLs and the percentage of traffic to send to each URL."""
|
|
102
88
|
test_started_at: NotRequired[Nullable[str]]
|
|
@@ -137,11 +123,6 @@ class LinkProps(BaseModel):
|
|
|
137
123
|
] = None
|
|
138
124
|
r"""The unique name of the tags assigned to the short link (case insensitive)."""
|
|
139
125
|
|
|
140
|
-
folder_id: Annotated[OptionalNullable[str], pydantic.Field(alias="folderId")] = (
|
|
141
|
-
UNSET
|
|
142
|
-
)
|
|
143
|
-
r"""The unique ID existing folder to assign the short link to."""
|
|
144
|
-
|
|
145
126
|
comments: OptionalNullable[str] = UNSET
|
|
146
127
|
r"""The comments for the short link."""
|
|
147
128
|
|
|
@@ -185,24 +166,6 @@ class LinkProps(BaseModel):
|
|
|
185
166
|
do_index: Annotated[Optional[bool], pydantic.Field(alias="doIndex")] = None
|
|
186
167
|
r"""Allow search engines to index your short link. Defaults to `false` if not provided. Learn more: https://d.to/noindex"""
|
|
187
168
|
|
|
188
|
-
utm_source: OptionalNullable[str] = UNSET
|
|
189
|
-
r"""The UTM source of the short link. If set, this will populate or override the UTM source in the destination URL."""
|
|
190
|
-
|
|
191
|
-
utm_medium: OptionalNullable[str] = UNSET
|
|
192
|
-
r"""The UTM medium of the short link. If set, this will populate or override the UTM medium in the destination URL."""
|
|
193
|
-
|
|
194
|
-
utm_campaign: OptionalNullable[str] = UNSET
|
|
195
|
-
r"""The UTM campaign of the short link. If set, this will populate or override the UTM campaign in the destination URL."""
|
|
196
|
-
|
|
197
|
-
utm_term: OptionalNullable[str] = UNSET
|
|
198
|
-
r"""The UTM term of the short link. If set, this will populate or override the UTM term in the destination URL."""
|
|
199
|
-
|
|
200
|
-
utm_content: OptionalNullable[str] = UNSET
|
|
201
|
-
r"""The UTM content of the short link. If set, this will populate or override the UTM content in the destination URL."""
|
|
202
|
-
|
|
203
|
-
ref: OptionalNullable[str] = UNSET
|
|
204
|
-
r"""The referral tag of the short link. If set, this will populate or override the `ref` query parameter in the destination URL."""
|
|
205
|
-
|
|
206
169
|
test_variants: Annotated[
|
|
207
170
|
OptionalNullable[List[CreatePartnerTestVariants]],
|
|
208
171
|
pydantic.Field(alias="testVariants"),
|
|
@@ -229,7 +192,6 @@ class LinkProps(BaseModel):
|
|
|
229
192
|
"archived",
|
|
230
193
|
"tagIds",
|
|
231
194
|
"tagNames",
|
|
232
|
-
"folderId",
|
|
233
195
|
"comments",
|
|
234
196
|
"expiresAt",
|
|
235
197
|
"expiredUrl",
|
|
@@ -243,12 +205,6 @@ class LinkProps(BaseModel):
|
|
|
243
205
|
"ios",
|
|
244
206
|
"android",
|
|
245
207
|
"doIndex",
|
|
246
|
-
"utm_source",
|
|
247
|
-
"utm_medium",
|
|
248
|
-
"utm_campaign",
|
|
249
|
-
"utm_term",
|
|
250
|
-
"utm_content",
|
|
251
|
-
"ref",
|
|
252
208
|
"testVariants",
|
|
253
209
|
"testStartedAt",
|
|
254
210
|
"testCompletedAt",
|
|
@@ -256,7 +212,6 @@ class LinkProps(BaseModel):
|
|
|
256
212
|
nullable_fields = [
|
|
257
213
|
"externalId",
|
|
258
214
|
"tenantId",
|
|
259
|
-
"folderId",
|
|
260
215
|
"comments",
|
|
261
216
|
"expiresAt",
|
|
262
217
|
"expiredUrl",
|
|
@@ -267,12 +222,6 @@ class LinkProps(BaseModel):
|
|
|
267
222
|
"video",
|
|
268
223
|
"ios",
|
|
269
224
|
"android",
|
|
270
|
-
"utm_source",
|
|
271
|
-
"utm_medium",
|
|
272
|
-
"utm_campaign",
|
|
273
|
-
"utm_term",
|
|
274
|
-
"utm_content",
|
|
275
|
-
"ref",
|
|
276
225
|
"testVariants",
|
|
277
226
|
"testStartedAt",
|
|
278
227
|
"testCompletedAt",
|
|
@@ -406,7 +355,7 @@ class CreatePartnerStatus(str, Enum):
|
|
|
406
355
|
ARCHIVED = "archived"
|
|
407
356
|
|
|
408
357
|
|
|
409
|
-
class
|
|
358
|
+
class LinksTypedDict(TypedDict):
|
|
410
359
|
id: str
|
|
411
360
|
r"""The unique ID of the short link."""
|
|
412
361
|
domain: str
|
|
@@ -429,7 +378,7 @@ class CreatePartnerLinkTypedDict(TypedDict):
|
|
|
429
378
|
r"""The total dollar value of sales (in cents) generated by the short link."""
|
|
430
379
|
|
|
431
380
|
|
|
432
|
-
class
|
|
381
|
+
class Links(BaseModel):
|
|
433
382
|
id: str
|
|
434
383
|
r"""The unique ID of the short link."""
|
|
435
384
|
|
|
@@ -504,7 +453,7 @@ class CreatePartnerResponseBodyTypedDict(TypedDict):
|
|
|
504
453
|
created_at: str
|
|
505
454
|
status: CreatePartnerStatus
|
|
506
455
|
r"""The status of the partner's enrollment in the program."""
|
|
507
|
-
links: Nullable[List[
|
|
456
|
+
links: Nullable[List[LinksTypedDict]]
|
|
508
457
|
r"""The partner's referral links in this program."""
|
|
509
458
|
description: NotRequired[Nullable[str]]
|
|
510
459
|
r"""A brief description of the partner and their background."""
|
|
@@ -609,7 +558,7 @@ class CreatePartnerResponseBody(BaseModel):
|
|
|
609
558
|
status: CreatePartnerStatus
|
|
610
559
|
r"""The status of the partner's enrollment in the program."""
|
|
611
560
|
|
|
612
|
-
links: Nullable[List[
|
|
561
|
+
links: Nullable[List[Links]]
|
|
613
562
|
r"""The partner's referral links in this program."""
|
|
614
563
|
|
|
615
564
|
description: OptionalNullable[str] = UNSET
|