dub 0.24.0__py3-none-any.whl → 0.25.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/commissions.py +600 -0
- dub/models/__init__.py +0 -1
- dub/models/components/__init__.py +422 -196
- dub/models/components/folderschema.py +1 -7
- dub/models/errors/__init__.py +136 -58
- dub/models/operations/__init__.py +729 -360
- dub/models/operations/createpartner.py +3 -3
- dub/models/operations/listcommissions.py +252 -0
- dub/models/operations/listfolders.py +0 -9
- dub/models/operations/updatecommission.py +150 -0
- dub/partners.py +0 -310
- dub/sdk.py +71 -40
- dub/utils/__init__.py +130 -46
- {dub-0.24.0.dist-info → dub-0.25.0.dist-info}/METADATA +6 -2
- {dub-0.24.0.dist-info → dub-0.25.0.dist-info}/RECORD +18 -16
- dub/models/operations/updatepartnersale.py +0 -121
- {dub-0.24.0.dist-info → dub-0.25.0.dist-info}/LICENSE +0 -0
- {dub-0.24.0.dist-info → dub-0.25.0.dist-info}/WHEEL +0 -0
|
@@ -1,202 +1,215 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
|
-
from
|
|
4
|
-
from
|
|
5
|
-
AnalyticsCities,
|
|
6
|
-
AnalyticsCitiesCountry,
|
|
7
|
-
AnalyticsCitiesTypedDict,
|
|
8
|
-
)
|
|
9
|
-
from .analyticscontinents import (
|
|
10
|
-
AnalyticsContinents,
|
|
11
|
-
AnalyticsContinentsTypedDict,
|
|
12
|
-
Continent,
|
|
13
|
-
)
|
|
14
|
-
from .analyticscount import AnalyticsCount, AnalyticsCountTypedDict
|
|
15
|
-
from .analyticscountries import (
|
|
16
|
-
AnalyticsCountries,
|
|
17
|
-
AnalyticsCountriesTypedDict,
|
|
18
|
-
City,
|
|
19
|
-
Country,
|
|
20
|
-
Region,
|
|
21
|
-
)
|
|
22
|
-
from .analyticsdevices import AnalyticsDevices, AnalyticsDevicesTypedDict
|
|
23
|
-
from .analyticsos import AnalyticsOS, AnalyticsOSTypedDict
|
|
24
|
-
from .analyticsreferers import AnalyticsReferers, AnalyticsReferersTypedDict
|
|
25
|
-
from .analyticsrefererurls import AnalyticsRefererUrls, AnalyticsRefererUrlsTypedDict
|
|
26
|
-
from .analyticsregions import (
|
|
27
|
-
AnalyticsRegions,
|
|
28
|
-
AnalyticsRegionsCity,
|
|
29
|
-
AnalyticsRegionsCountry,
|
|
30
|
-
AnalyticsRegionsTypedDict,
|
|
31
|
-
)
|
|
32
|
-
from .analyticstimeseries import AnalyticsTimeseries, AnalyticsTimeseriesTypedDict
|
|
33
|
-
from .analyticstoplinks import AnalyticsTopLinks, AnalyticsTopLinksTypedDict
|
|
34
|
-
from .analyticstopurls import AnalyticsTopUrls, AnalyticsTopUrlsTypedDict
|
|
35
|
-
from .analyticstriggers import AnalyticsTriggers, AnalyticsTriggersTypedDict, Trigger
|
|
36
|
-
from .clickevent import (
|
|
37
|
-
Click,
|
|
38
|
-
ClickEvent,
|
|
39
|
-
ClickEventGeo,
|
|
40
|
-
ClickEventGeoTypedDict,
|
|
41
|
-
ClickEventTestVariants,
|
|
42
|
-
ClickEventTestVariantsTypedDict,
|
|
43
|
-
ClickEventTypedDict,
|
|
44
|
-
ClickTypedDict,
|
|
45
|
-
Event,
|
|
46
|
-
Link,
|
|
47
|
-
LinkTypedDict,
|
|
48
|
-
)
|
|
49
|
-
from .continentcode import ContinentCode
|
|
50
|
-
from .countrycode import CountryCode
|
|
51
|
-
from .domainschema import (
|
|
52
|
-
DomainSchema,
|
|
53
|
-
DomainSchemaTypedDict,
|
|
54
|
-
RegisteredDomain,
|
|
55
|
-
RegisteredDomainTypedDict,
|
|
56
|
-
)
|
|
57
|
-
from .folderschema import AccessLevel, FolderSchema, FolderSchemaTypedDict, Type
|
|
58
|
-
from .leadcreatedevent import (
|
|
59
|
-
LeadCreatedEvent,
|
|
60
|
-
LeadCreatedEventClick,
|
|
61
|
-
LeadCreatedEventClickTypedDict,
|
|
62
|
-
LeadCreatedEventCustomer,
|
|
63
|
-
LeadCreatedEventCustomerTypedDict,
|
|
64
|
-
LeadCreatedEventData,
|
|
65
|
-
LeadCreatedEventDataTypedDict,
|
|
66
|
-
LeadCreatedEventEvent,
|
|
67
|
-
LeadCreatedEventGeo,
|
|
68
|
-
LeadCreatedEventGeoTypedDict,
|
|
69
|
-
LeadCreatedEventLink,
|
|
70
|
-
LeadCreatedEventLinkTypedDict,
|
|
71
|
-
LeadCreatedEventTestVariants,
|
|
72
|
-
LeadCreatedEventTestVariantsTypedDict,
|
|
73
|
-
LeadCreatedEventTypedDict,
|
|
74
|
-
)
|
|
75
|
-
from .leadevent import (
|
|
76
|
-
Customer,
|
|
77
|
-
CustomerTypedDict,
|
|
78
|
-
LeadEvent,
|
|
79
|
-
LeadEventClick,
|
|
80
|
-
LeadEventClickTypedDict,
|
|
81
|
-
LeadEventEvent,
|
|
82
|
-
LeadEventGeo,
|
|
83
|
-
LeadEventGeoTypedDict,
|
|
84
|
-
LeadEventLink,
|
|
85
|
-
LeadEventLinkTypedDict,
|
|
86
|
-
LeadEventTestVariants,
|
|
87
|
-
LeadEventTestVariantsTypedDict,
|
|
88
|
-
LeadEventTypedDict,
|
|
89
|
-
)
|
|
90
|
-
from .linkclickedevent import (
|
|
91
|
-
Data,
|
|
92
|
-
DataTypedDict,
|
|
93
|
-
LinkClickedEvent,
|
|
94
|
-
LinkClickedEventClick,
|
|
95
|
-
LinkClickedEventClickTypedDict,
|
|
96
|
-
LinkClickedEventEvent,
|
|
97
|
-
LinkClickedEventGeo,
|
|
98
|
-
LinkClickedEventGeoTypedDict,
|
|
99
|
-
LinkClickedEventLink,
|
|
100
|
-
LinkClickedEventLinkTypedDict,
|
|
101
|
-
LinkClickedEventTestVariants,
|
|
102
|
-
LinkClickedEventTestVariantsTypedDict,
|
|
103
|
-
LinkClickedEventTypedDict,
|
|
104
|
-
)
|
|
105
|
-
from .linkerrorschema import Code, LinkErrorSchema, LinkErrorSchemaTypedDict
|
|
106
|
-
from .linkgeotargeting import LinkGeoTargeting, LinkGeoTargetingTypedDict
|
|
107
|
-
from .linkschema import (
|
|
108
|
-
Geo,
|
|
109
|
-
GeoTypedDict,
|
|
110
|
-
LinkSchema,
|
|
111
|
-
LinkSchemaTypedDict,
|
|
112
|
-
TestVariants,
|
|
113
|
-
TestVariantsTypedDict,
|
|
114
|
-
)
|
|
115
|
-
from .linkwebhookevent import (
|
|
116
|
-
LinkWebhookEvent,
|
|
117
|
-
LinkWebhookEventEvent,
|
|
118
|
-
LinkWebhookEventEventTypedDict,
|
|
119
|
-
LinkWebhookEventGeo,
|
|
120
|
-
LinkWebhookEventGeoTypedDict,
|
|
121
|
-
LinkWebhookEventLink,
|
|
122
|
-
LinkWebhookEventLinkTypedDict,
|
|
123
|
-
LinkWebhookEventTestVariants,
|
|
124
|
-
LinkWebhookEventTestVariantsTypedDict,
|
|
125
|
-
LinkWebhookEventTypedDict,
|
|
126
|
-
One,
|
|
127
|
-
Three,
|
|
128
|
-
Two,
|
|
129
|
-
)
|
|
130
|
-
from .partneranalyticscount import PartnerAnalyticsCount, PartnerAnalyticsCountTypedDict
|
|
131
|
-
from .partneranalyticstimeseries import (
|
|
132
|
-
PartnerAnalyticsTimeseries,
|
|
133
|
-
PartnerAnalyticsTimeseriesTypedDict,
|
|
134
|
-
)
|
|
135
|
-
from .partneranalyticstoplinks import (
|
|
136
|
-
PartnerAnalyticsTopLinks,
|
|
137
|
-
PartnerAnalyticsTopLinksTypedDict,
|
|
138
|
-
)
|
|
139
|
-
from .partnerenrolledevent import (
|
|
140
|
-
PartnerEnrolledEvent,
|
|
141
|
-
PartnerEnrolledEventData,
|
|
142
|
-
PartnerEnrolledEventDataTypedDict,
|
|
143
|
-
PartnerEnrolledEventEvent,
|
|
144
|
-
PartnerEnrolledEventLink,
|
|
145
|
-
PartnerEnrolledEventLinkTypedDict,
|
|
146
|
-
PartnerEnrolledEventTypedDict,
|
|
147
|
-
Status,
|
|
148
|
-
)
|
|
149
|
-
from .salecreatedevent import (
|
|
150
|
-
SaleCreatedEvent,
|
|
151
|
-
SaleCreatedEventClick,
|
|
152
|
-
SaleCreatedEventClickTypedDict,
|
|
153
|
-
SaleCreatedEventCustomer,
|
|
154
|
-
SaleCreatedEventCustomerTypedDict,
|
|
155
|
-
SaleCreatedEventData,
|
|
156
|
-
SaleCreatedEventDataTypedDict,
|
|
157
|
-
SaleCreatedEventEvent,
|
|
158
|
-
SaleCreatedEventGeo,
|
|
159
|
-
SaleCreatedEventGeoTypedDict,
|
|
160
|
-
SaleCreatedEventLink,
|
|
161
|
-
SaleCreatedEventLinkTypedDict,
|
|
162
|
-
SaleCreatedEventSale,
|
|
163
|
-
SaleCreatedEventSaleTypedDict,
|
|
164
|
-
SaleCreatedEventTestVariants,
|
|
165
|
-
SaleCreatedEventTestVariantsTypedDict,
|
|
166
|
-
SaleCreatedEventTypedDict,
|
|
167
|
-
)
|
|
168
|
-
from .saleevent import (
|
|
169
|
-
PaymentProcessor,
|
|
170
|
-
Sale,
|
|
171
|
-
SaleEvent,
|
|
172
|
-
SaleEventClick,
|
|
173
|
-
SaleEventClickTypedDict,
|
|
174
|
-
SaleEventCustomer,
|
|
175
|
-
SaleEventCustomerTypedDict,
|
|
176
|
-
SaleEventEvent,
|
|
177
|
-
SaleEventGeo,
|
|
178
|
-
SaleEventGeoTypedDict,
|
|
179
|
-
SaleEventLink,
|
|
180
|
-
SaleEventLinkTypedDict,
|
|
181
|
-
SaleEventTestVariants,
|
|
182
|
-
SaleEventTestVariantsTypedDict,
|
|
183
|
-
SaleEventTypedDict,
|
|
184
|
-
SaleTypedDict,
|
|
185
|
-
)
|
|
186
|
-
from .security import Security, SecurityTypedDict
|
|
187
|
-
from .tagschema import Color, TagSchema, TagSchemaTypedDict
|
|
188
|
-
from .webhookevent import WebhookEvent, WebhookEventTypedDict
|
|
189
|
-
from .workspaceschema import (
|
|
190
|
-
Domains,
|
|
191
|
-
DomainsTypedDict,
|
|
192
|
-
Plan,
|
|
193
|
-
Role,
|
|
194
|
-
Users,
|
|
195
|
-
UsersTypedDict,
|
|
196
|
-
WorkspaceSchema,
|
|
197
|
-
WorkspaceSchemaTypedDict,
|
|
198
|
-
)
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
from importlib import import_module
|
|
199
5
|
|
|
6
|
+
if TYPE_CHECKING:
|
|
7
|
+
from .analyticsbrowsers import AnalyticsBrowsers, AnalyticsBrowsersTypedDict
|
|
8
|
+
from .analyticscities import (
|
|
9
|
+
AnalyticsCities,
|
|
10
|
+
AnalyticsCitiesCountry,
|
|
11
|
+
AnalyticsCitiesTypedDict,
|
|
12
|
+
)
|
|
13
|
+
from .analyticscontinents import (
|
|
14
|
+
AnalyticsContinents,
|
|
15
|
+
AnalyticsContinentsTypedDict,
|
|
16
|
+
Continent,
|
|
17
|
+
)
|
|
18
|
+
from .analyticscount import AnalyticsCount, AnalyticsCountTypedDict
|
|
19
|
+
from .analyticscountries import (
|
|
20
|
+
AnalyticsCountries,
|
|
21
|
+
AnalyticsCountriesTypedDict,
|
|
22
|
+
City,
|
|
23
|
+
Country,
|
|
24
|
+
Region,
|
|
25
|
+
)
|
|
26
|
+
from .analyticsdevices import AnalyticsDevices, AnalyticsDevicesTypedDict
|
|
27
|
+
from .analyticsos import AnalyticsOS, AnalyticsOSTypedDict
|
|
28
|
+
from .analyticsreferers import AnalyticsReferers, AnalyticsReferersTypedDict
|
|
29
|
+
from .analyticsrefererurls import (
|
|
30
|
+
AnalyticsRefererUrls,
|
|
31
|
+
AnalyticsRefererUrlsTypedDict,
|
|
32
|
+
)
|
|
33
|
+
from .analyticsregions import (
|
|
34
|
+
AnalyticsRegions,
|
|
35
|
+
AnalyticsRegionsCity,
|
|
36
|
+
AnalyticsRegionsCountry,
|
|
37
|
+
AnalyticsRegionsTypedDict,
|
|
38
|
+
)
|
|
39
|
+
from .analyticstimeseries import AnalyticsTimeseries, AnalyticsTimeseriesTypedDict
|
|
40
|
+
from .analyticstoplinks import AnalyticsTopLinks, AnalyticsTopLinksTypedDict
|
|
41
|
+
from .analyticstopurls import AnalyticsTopUrls, AnalyticsTopUrlsTypedDict
|
|
42
|
+
from .analyticstriggers import (
|
|
43
|
+
AnalyticsTriggers,
|
|
44
|
+
AnalyticsTriggersTypedDict,
|
|
45
|
+
Trigger,
|
|
46
|
+
)
|
|
47
|
+
from .clickevent import (
|
|
48
|
+
Click,
|
|
49
|
+
ClickEvent,
|
|
50
|
+
ClickEventGeo,
|
|
51
|
+
ClickEventGeoTypedDict,
|
|
52
|
+
ClickEventTestVariants,
|
|
53
|
+
ClickEventTestVariantsTypedDict,
|
|
54
|
+
ClickEventTypedDict,
|
|
55
|
+
ClickTypedDict,
|
|
56
|
+
Event,
|
|
57
|
+
Link,
|
|
58
|
+
LinkTypedDict,
|
|
59
|
+
)
|
|
60
|
+
from .continentcode import ContinentCode
|
|
61
|
+
from .countrycode import CountryCode
|
|
62
|
+
from .domainschema import (
|
|
63
|
+
DomainSchema,
|
|
64
|
+
DomainSchemaTypedDict,
|
|
65
|
+
RegisteredDomain,
|
|
66
|
+
RegisteredDomainTypedDict,
|
|
67
|
+
)
|
|
68
|
+
from .folderschema import AccessLevel, FolderSchema, FolderSchemaTypedDict, Type
|
|
69
|
+
from .leadcreatedevent import (
|
|
70
|
+
LeadCreatedEvent,
|
|
71
|
+
LeadCreatedEventClick,
|
|
72
|
+
LeadCreatedEventClickTypedDict,
|
|
73
|
+
LeadCreatedEventCustomer,
|
|
74
|
+
LeadCreatedEventCustomerTypedDict,
|
|
75
|
+
LeadCreatedEventData,
|
|
76
|
+
LeadCreatedEventDataTypedDict,
|
|
77
|
+
LeadCreatedEventEvent,
|
|
78
|
+
LeadCreatedEventGeo,
|
|
79
|
+
LeadCreatedEventGeoTypedDict,
|
|
80
|
+
LeadCreatedEventLink,
|
|
81
|
+
LeadCreatedEventLinkTypedDict,
|
|
82
|
+
LeadCreatedEventTestVariants,
|
|
83
|
+
LeadCreatedEventTestVariantsTypedDict,
|
|
84
|
+
LeadCreatedEventTypedDict,
|
|
85
|
+
)
|
|
86
|
+
from .leadevent import (
|
|
87
|
+
Customer,
|
|
88
|
+
CustomerTypedDict,
|
|
89
|
+
LeadEvent,
|
|
90
|
+
LeadEventClick,
|
|
91
|
+
LeadEventClickTypedDict,
|
|
92
|
+
LeadEventEvent,
|
|
93
|
+
LeadEventGeo,
|
|
94
|
+
LeadEventGeoTypedDict,
|
|
95
|
+
LeadEventLink,
|
|
96
|
+
LeadEventLinkTypedDict,
|
|
97
|
+
LeadEventTestVariants,
|
|
98
|
+
LeadEventTestVariantsTypedDict,
|
|
99
|
+
LeadEventTypedDict,
|
|
100
|
+
)
|
|
101
|
+
from .linkclickedevent import (
|
|
102
|
+
Data,
|
|
103
|
+
DataTypedDict,
|
|
104
|
+
LinkClickedEvent,
|
|
105
|
+
LinkClickedEventClick,
|
|
106
|
+
LinkClickedEventClickTypedDict,
|
|
107
|
+
LinkClickedEventEvent,
|
|
108
|
+
LinkClickedEventGeo,
|
|
109
|
+
LinkClickedEventGeoTypedDict,
|
|
110
|
+
LinkClickedEventLink,
|
|
111
|
+
LinkClickedEventLinkTypedDict,
|
|
112
|
+
LinkClickedEventTestVariants,
|
|
113
|
+
LinkClickedEventTestVariantsTypedDict,
|
|
114
|
+
LinkClickedEventTypedDict,
|
|
115
|
+
)
|
|
116
|
+
from .linkerrorschema import Code, LinkErrorSchema, LinkErrorSchemaTypedDict
|
|
117
|
+
from .linkgeotargeting import LinkGeoTargeting, LinkGeoTargetingTypedDict
|
|
118
|
+
from .linkschema import (
|
|
119
|
+
Geo,
|
|
120
|
+
GeoTypedDict,
|
|
121
|
+
LinkSchema,
|
|
122
|
+
LinkSchemaTypedDict,
|
|
123
|
+
TestVariants,
|
|
124
|
+
TestVariantsTypedDict,
|
|
125
|
+
)
|
|
126
|
+
from .linkwebhookevent import (
|
|
127
|
+
LinkWebhookEvent,
|
|
128
|
+
LinkWebhookEventEvent,
|
|
129
|
+
LinkWebhookEventEventTypedDict,
|
|
130
|
+
LinkWebhookEventGeo,
|
|
131
|
+
LinkWebhookEventGeoTypedDict,
|
|
132
|
+
LinkWebhookEventLink,
|
|
133
|
+
LinkWebhookEventLinkTypedDict,
|
|
134
|
+
LinkWebhookEventTestVariants,
|
|
135
|
+
LinkWebhookEventTestVariantsTypedDict,
|
|
136
|
+
LinkWebhookEventTypedDict,
|
|
137
|
+
One,
|
|
138
|
+
Three,
|
|
139
|
+
Two,
|
|
140
|
+
)
|
|
141
|
+
from .partneranalyticscount import (
|
|
142
|
+
PartnerAnalyticsCount,
|
|
143
|
+
PartnerAnalyticsCountTypedDict,
|
|
144
|
+
)
|
|
145
|
+
from .partneranalyticstimeseries import (
|
|
146
|
+
PartnerAnalyticsTimeseries,
|
|
147
|
+
PartnerAnalyticsTimeseriesTypedDict,
|
|
148
|
+
)
|
|
149
|
+
from .partneranalyticstoplinks import (
|
|
150
|
+
PartnerAnalyticsTopLinks,
|
|
151
|
+
PartnerAnalyticsTopLinksTypedDict,
|
|
152
|
+
)
|
|
153
|
+
from .partnerenrolledevent import (
|
|
154
|
+
PartnerEnrolledEvent,
|
|
155
|
+
PartnerEnrolledEventData,
|
|
156
|
+
PartnerEnrolledEventDataTypedDict,
|
|
157
|
+
PartnerEnrolledEventEvent,
|
|
158
|
+
PartnerEnrolledEventLink,
|
|
159
|
+
PartnerEnrolledEventLinkTypedDict,
|
|
160
|
+
PartnerEnrolledEventTypedDict,
|
|
161
|
+
Status,
|
|
162
|
+
)
|
|
163
|
+
from .salecreatedevent import (
|
|
164
|
+
SaleCreatedEvent,
|
|
165
|
+
SaleCreatedEventClick,
|
|
166
|
+
SaleCreatedEventClickTypedDict,
|
|
167
|
+
SaleCreatedEventCustomer,
|
|
168
|
+
SaleCreatedEventCustomerTypedDict,
|
|
169
|
+
SaleCreatedEventData,
|
|
170
|
+
SaleCreatedEventDataTypedDict,
|
|
171
|
+
SaleCreatedEventEvent,
|
|
172
|
+
SaleCreatedEventGeo,
|
|
173
|
+
SaleCreatedEventGeoTypedDict,
|
|
174
|
+
SaleCreatedEventLink,
|
|
175
|
+
SaleCreatedEventLinkTypedDict,
|
|
176
|
+
SaleCreatedEventSale,
|
|
177
|
+
SaleCreatedEventSaleTypedDict,
|
|
178
|
+
SaleCreatedEventTestVariants,
|
|
179
|
+
SaleCreatedEventTestVariantsTypedDict,
|
|
180
|
+
SaleCreatedEventTypedDict,
|
|
181
|
+
)
|
|
182
|
+
from .saleevent import (
|
|
183
|
+
PaymentProcessor,
|
|
184
|
+
Sale,
|
|
185
|
+
SaleEvent,
|
|
186
|
+
SaleEventClick,
|
|
187
|
+
SaleEventClickTypedDict,
|
|
188
|
+
SaleEventCustomer,
|
|
189
|
+
SaleEventCustomerTypedDict,
|
|
190
|
+
SaleEventEvent,
|
|
191
|
+
SaleEventGeo,
|
|
192
|
+
SaleEventGeoTypedDict,
|
|
193
|
+
SaleEventLink,
|
|
194
|
+
SaleEventLinkTypedDict,
|
|
195
|
+
SaleEventTestVariants,
|
|
196
|
+
SaleEventTestVariantsTypedDict,
|
|
197
|
+
SaleEventTypedDict,
|
|
198
|
+
SaleTypedDict,
|
|
199
|
+
)
|
|
200
|
+
from .security import Security, SecurityTypedDict
|
|
201
|
+
from .tagschema import Color, TagSchema, TagSchemaTypedDict
|
|
202
|
+
from .webhookevent import WebhookEvent, WebhookEventTypedDict
|
|
203
|
+
from .workspaceschema import (
|
|
204
|
+
Domains,
|
|
205
|
+
DomainsTypedDict,
|
|
206
|
+
Plan,
|
|
207
|
+
Role,
|
|
208
|
+
Users,
|
|
209
|
+
UsersTypedDict,
|
|
210
|
+
WorkspaceSchema,
|
|
211
|
+
WorkspaceSchemaTypedDict,
|
|
212
|
+
)
|
|
200
213
|
|
|
201
214
|
__all__ = [
|
|
202
215
|
"AccessLevel",
|
|
@@ -384,3 +397,216 @@ __all__ = [
|
|
|
384
397
|
"WorkspaceSchema",
|
|
385
398
|
"WorkspaceSchemaTypedDict",
|
|
386
399
|
]
|
|
400
|
+
|
|
401
|
+
_dynamic_imports: dict[str, str] = {
|
|
402
|
+
"AnalyticsBrowsers": ".analyticsbrowsers",
|
|
403
|
+
"AnalyticsBrowsersTypedDict": ".analyticsbrowsers",
|
|
404
|
+
"AnalyticsCities": ".analyticscities",
|
|
405
|
+
"AnalyticsCitiesCountry": ".analyticscities",
|
|
406
|
+
"AnalyticsCitiesTypedDict": ".analyticscities",
|
|
407
|
+
"AnalyticsContinents": ".analyticscontinents",
|
|
408
|
+
"AnalyticsContinentsTypedDict": ".analyticscontinents",
|
|
409
|
+
"Continent": ".analyticscontinents",
|
|
410
|
+
"AnalyticsCount": ".analyticscount",
|
|
411
|
+
"AnalyticsCountTypedDict": ".analyticscount",
|
|
412
|
+
"AnalyticsCountries": ".analyticscountries",
|
|
413
|
+
"AnalyticsCountriesTypedDict": ".analyticscountries",
|
|
414
|
+
"City": ".analyticscountries",
|
|
415
|
+
"Country": ".analyticscountries",
|
|
416
|
+
"Region": ".analyticscountries",
|
|
417
|
+
"AnalyticsDevices": ".analyticsdevices",
|
|
418
|
+
"AnalyticsDevicesTypedDict": ".analyticsdevices",
|
|
419
|
+
"AnalyticsOS": ".analyticsos",
|
|
420
|
+
"AnalyticsOSTypedDict": ".analyticsos",
|
|
421
|
+
"AnalyticsReferers": ".analyticsreferers",
|
|
422
|
+
"AnalyticsReferersTypedDict": ".analyticsreferers",
|
|
423
|
+
"AnalyticsRefererUrls": ".analyticsrefererurls",
|
|
424
|
+
"AnalyticsRefererUrlsTypedDict": ".analyticsrefererurls",
|
|
425
|
+
"AnalyticsRegions": ".analyticsregions",
|
|
426
|
+
"AnalyticsRegionsCity": ".analyticsregions",
|
|
427
|
+
"AnalyticsRegionsCountry": ".analyticsregions",
|
|
428
|
+
"AnalyticsRegionsTypedDict": ".analyticsregions",
|
|
429
|
+
"AnalyticsTimeseries": ".analyticstimeseries",
|
|
430
|
+
"AnalyticsTimeseriesTypedDict": ".analyticstimeseries",
|
|
431
|
+
"AnalyticsTopLinks": ".analyticstoplinks",
|
|
432
|
+
"AnalyticsTopLinksTypedDict": ".analyticstoplinks",
|
|
433
|
+
"AnalyticsTopUrls": ".analyticstopurls",
|
|
434
|
+
"AnalyticsTopUrlsTypedDict": ".analyticstopurls",
|
|
435
|
+
"AnalyticsTriggers": ".analyticstriggers",
|
|
436
|
+
"AnalyticsTriggersTypedDict": ".analyticstriggers",
|
|
437
|
+
"Trigger": ".analyticstriggers",
|
|
438
|
+
"Click": ".clickevent",
|
|
439
|
+
"ClickEvent": ".clickevent",
|
|
440
|
+
"ClickEventGeo": ".clickevent",
|
|
441
|
+
"ClickEventGeoTypedDict": ".clickevent",
|
|
442
|
+
"ClickEventTestVariants": ".clickevent",
|
|
443
|
+
"ClickEventTestVariantsTypedDict": ".clickevent",
|
|
444
|
+
"ClickEventTypedDict": ".clickevent",
|
|
445
|
+
"ClickTypedDict": ".clickevent",
|
|
446
|
+
"Event": ".clickevent",
|
|
447
|
+
"Link": ".clickevent",
|
|
448
|
+
"LinkTypedDict": ".clickevent",
|
|
449
|
+
"ContinentCode": ".continentcode",
|
|
450
|
+
"CountryCode": ".countrycode",
|
|
451
|
+
"DomainSchema": ".domainschema",
|
|
452
|
+
"DomainSchemaTypedDict": ".domainschema",
|
|
453
|
+
"RegisteredDomain": ".domainschema",
|
|
454
|
+
"RegisteredDomainTypedDict": ".domainschema",
|
|
455
|
+
"AccessLevel": ".folderschema",
|
|
456
|
+
"FolderSchema": ".folderschema",
|
|
457
|
+
"FolderSchemaTypedDict": ".folderschema",
|
|
458
|
+
"Type": ".folderschema",
|
|
459
|
+
"LeadCreatedEvent": ".leadcreatedevent",
|
|
460
|
+
"LeadCreatedEventClick": ".leadcreatedevent",
|
|
461
|
+
"LeadCreatedEventClickTypedDict": ".leadcreatedevent",
|
|
462
|
+
"LeadCreatedEventCustomer": ".leadcreatedevent",
|
|
463
|
+
"LeadCreatedEventCustomerTypedDict": ".leadcreatedevent",
|
|
464
|
+
"LeadCreatedEventData": ".leadcreatedevent",
|
|
465
|
+
"LeadCreatedEventDataTypedDict": ".leadcreatedevent",
|
|
466
|
+
"LeadCreatedEventEvent": ".leadcreatedevent",
|
|
467
|
+
"LeadCreatedEventGeo": ".leadcreatedevent",
|
|
468
|
+
"LeadCreatedEventGeoTypedDict": ".leadcreatedevent",
|
|
469
|
+
"LeadCreatedEventLink": ".leadcreatedevent",
|
|
470
|
+
"LeadCreatedEventLinkTypedDict": ".leadcreatedevent",
|
|
471
|
+
"LeadCreatedEventTestVariants": ".leadcreatedevent",
|
|
472
|
+
"LeadCreatedEventTestVariantsTypedDict": ".leadcreatedevent",
|
|
473
|
+
"LeadCreatedEventTypedDict": ".leadcreatedevent",
|
|
474
|
+
"Customer": ".leadevent",
|
|
475
|
+
"CustomerTypedDict": ".leadevent",
|
|
476
|
+
"LeadEvent": ".leadevent",
|
|
477
|
+
"LeadEventClick": ".leadevent",
|
|
478
|
+
"LeadEventClickTypedDict": ".leadevent",
|
|
479
|
+
"LeadEventEvent": ".leadevent",
|
|
480
|
+
"LeadEventGeo": ".leadevent",
|
|
481
|
+
"LeadEventGeoTypedDict": ".leadevent",
|
|
482
|
+
"LeadEventLink": ".leadevent",
|
|
483
|
+
"LeadEventLinkTypedDict": ".leadevent",
|
|
484
|
+
"LeadEventTestVariants": ".leadevent",
|
|
485
|
+
"LeadEventTestVariantsTypedDict": ".leadevent",
|
|
486
|
+
"LeadEventTypedDict": ".leadevent",
|
|
487
|
+
"Data": ".linkclickedevent",
|
|
488
|
+
"DataTypedDict": ".linkclickedevent",
|
|
489
|
+
"LinkClickedEvent": ".linkclickedevent",
|
|
490
|
+
"LinkClickedEventClick": ".linkclickedevent",
|
|
491
|
+
"LinkClickedEventClickTypedDict": ".linkclickedevent",
|
|
492
|
+
"LinkClickedEventEvent": ".linkclickedevent",
|
|
493
|
+
"LinkClickedEventGeo": ".linkclickedevent",
|
|
494
|
+
"LinkClickedEventGeoTypedDict": ".linkclickedevent",
|
|
495
|
+
"LinkClickedEventLink": ".linkclickedevent",
|
|
496
|
+
"LinkClickedEventLinkTypedDict": ".linkclickedevent",
|
|
497
|
+
"LinkClickedEventTestVariants": ".linkclickedevent",
|
|
498
|
+
"LinkClickedEventTestVariantsTypedDict": ".linkclickedevent",
|
|
499
|
+
"LinkClickedEventTypedDict": ".linkclickedevent",
|
|
500
|
+
"Code": ".linkerrorschema",
|
|
501
|
+
"LinkErrorSchema": ".linkerrorschema",
|
|
502
|
+
"LinkErrorSchemaTypedDict": ".linkerrorschema",
|
|
503
|
+
"LinkGeoTargeting": ".linkgeotargeting",
|
|
504
|
+
"LinkGeoTargetingTypedDict": ".linkgeotargeting",
|
|
505
|
+
"Geo": ".linkschema",
|
|
506
|
+
"GeoTypedDict": ".linkschema",
|
|
507
|
+
"LinkSchema": ".linkschema",
|
|
508
|
+
"LinkSchemaTypedDict": ".linkschema",
|
|
509
|
+
"TestVariants": ".linkschema",
|
|
510
|
+
"TestVariantsTypedDict": ".linkschema",
|
|
511
|
+
"LinkWebhookEvent": ".linkwebhookevent",
|
|
512
|
+
"LinkWebhookEventEvent": ".linkwebhookevent",
|
|
513
|
+
"LinkWebhookEventEventTypedDict": ".linkwebhookevent",
|
|
514
|
+
"LinkWebhookEventGeo": ".linkwebhookevent",
|
|
515
|
+
"LinkWebhookEventGeoTypedDict": ".linkwebhookevent",
|
|
516
|
+
"LinkWebhookEventLink": ".linkwebhookevent",
|
|
517
|
+
"LinkWebhookEventLinkTypedDict": ".linkwebhookevent",
|
|
518
|
+
"LinkWebhookEventTestVariants": ".linkwebhookevent",
|
|
519
|
+
"LinkWebhookEventTestVariantsTypedDict": ".linkwebhookevent",
|
|
520
|
+
"LinkWebhookEventTypedDict": ".linkwebhookevent",
|
|
521
|
+
"One": ".linkwebhookevent",
|
|
522
|
+
"Three": ".linkwebhookevent",
|
|
523
|
+
"Two": ".linkwebhookevent",
|
|
524
|
+
"PartnerAnalyticsCount": ".partneranalyticscount",
|
|
525
|
+
"PartnerAnalyticsCountTypedDict": ".partneranalyticscount",
|
|
526
|
+
"PartnerAnalyticsTimeseries": ".partneranalyticstimeseries",
|
|
527
|
+
"PartnerAnalyticsTimeseriesTypedDict": ".partneranalyticstimeseries",
|
|
528
|
+
"PartnerAnalyticsTopLinks": ".partneranalyticstoplinks",
|
|
529
|
+
"PartnerAnalyticsTopLinksTypedDict": ".partneranalyticstoplinks",
|
|
530
|
+
"PartnerEnrolledEvent": ".partnerenrolledevent",
|
|
531
|
+
"PartnerEnrolledEventData": ".partnerenrolledevent",
|
|
532
|
+
"PartnerEnrolledEventDataTypedDict": ".partnerenrolledevent",
|
|
533
|
+
"PartnerEnrolledEventEvent": ".partnerenrolledevent",
|
|
534
|
+
"PartnerEnrolledEventLink": ".partnerenrolledevent",
|
|
535
|
+
"PartnerEnrolledEventLinkTypedDict": ".partnerenrolledevent",
|
|
536
|
+
"PartnerEnrolledEventTypedDict": ".partnerenrolledevent",
|
|
537
|
+
"Status": ".partnerenrolledevent",
|
|
538
|
+
"SaleCreatedEvent": ".salecreatedevent",
|
|
539
|
+
"SaleCreatedEventClick": ".salecreatedevent",
|
|
540
|
+
"SaleCreatedEventClickTypedDict": ".salecreatedevent",
|
|
541
|
+
"SaleCreatedEventCustomer": ".salecreatedevent",
|
|
542
|
+
"SaleCreatedEventCustomerTypedDict": ".salecreatedevent",
|
|
543
|
+
"SaleCreatedEventData": ".salecreatedevent",
|
|
544
|
+
"SaleCreatedEventDataTypedDict": ".salecreatedevent",
|
|
545
|
+
"SaleCreatedEventEvent": ".salecreatedevent",
|
|
546
|
+
"SaleCreatedEventGeo": ".salecreatedevent",
|
|
547
|
+
"SaleCreatedEventGeoTypedDict": ".salecreatedevent",
|
|
548
|
+
"SaleCreatedEventLink": ".salecreatedevent",
|
|
549
|
+
"SaleCreatedEventLinkTypedDict": ".salecreatedevent",
|
|
550
|
+
"SaleCreatedEventSale": ".salecreatedevent",
|
|
551
|
+
"SaleCreatedEventSaleTypedDict": ".salecreatedevent",
|
|
552
|
+
"SaleCreatedEventTestVariants": ".salecreatedevent",
|
|
553
|
+
"SaleCreatedEventTestVariantsTypedDict": ".salecreatedevent",
|
|
554
|
+
"SaleCreatedEventTypedDict": ".salecreatedevent",
|
|
555
|
+
"PaymentProcessor": ".saleevent",
|
|
556
|
+
"Sale": ".saleevent",
|
|
557
|
+
"SaleEvent": ".saleevent",
|
|
558
|
+
"SaleEventClick": ".saleevent",
|
|
559
|
+
"SaleEventClickTypedDict": ".saleevent",
|
|
560
|
+
"SaleEventCustomer": ".saleevent",
|
|
561
|
+
"SaleEventCustomerTypedDict": ".saleevent",
|
|
562
|
+
"SaleEventEvent": ".saleevent",
|
|
563
|
+
"SaleEventGeo": ".saleevent",
|
|
564
|
+
"SaleEventGeoTypedDict": ".saleevent",
|
|
565
|
+
"SaleEventLink": ".saleevent",
|
|
566
|
+
"SaleEventLinkTypedDict": ".saleevent",
|
|
567
|
+
"SaleEventTestVariants": ".saleevent",
|
|
568
|
+
"SaleEventTestVariantsTypedDict": ".saleevent",
|
|
569
|
+
"SaleEventTypedDict": ".saleevent",
|
|
570
|
+
"SaleTypedDict": ".saleevent",
|
|
571
|
+
"Security": ".security",
|
|
572
|
+
"SecurityTypedDict": ".security",
|
|
573
|
+
"Color": ".tagschema",
|
|
574
|
+
"TagSchema": ".tagschema",
|
|
575
|
+
"TagSchemaTypedDict": ".tagschema",
|
|
576
|
+
"WebhookEvent": ".webhookevent",
|
|
577
|
+
"WebhookEventTypedDict": ".webhookevent",
|
|
578
|
+
"Domains": ".workspaceschema",
|
|
579
|
+
"DomainsTypedDict": ".workspaceschema",
|
|
580
|
+
"Plan": ".workspaceschema",
|
|
581
|
+
"Role": ".workspaceschema",
|
|
582
|
+
"Users": ".workspaceschema",
|
|
583
|
+
"UsersTypedDict": ".workspaceschema",
|
|
584
|
+
"WorkspaceSchema": ".workspaceschema",
|
|
585
|
+
"WorkspaceSchemaTypedDict": ".workspaceschema",
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
|
|
589
|
+
def __getattr__(attr_name: str) -> object:
|
|
590
|
+
module_name = _dynamic_imports.get(attr_name)
|
|
591
|
+
if module_name is None:
|
|
592
|
+
raise AttributeError(
|
|
593
|
+
f"No {attr_name} found in _dynamic_imports for module name -> {__name__} "
|
|
594
|
+
)
|
|
595
|
+
|
|
596
|
+
try:
|
|
597
|
+
module = import_module(module_name, __package__)
|
|
598
|
+
result = getattr(module, attr_name)
|
|
599
|
+
return result
|
|
600
|
+
except ImportError as e:
|
|
601
|
+
raise ImportError(
|
|
602
|
+
f"Failed to import {attr_name} from {module_name}: {e}"
|
|
603
|
+
) from e
|
|
604
|
+
except AttributeError as e:
|
|
605
|
+
raise AttributeError(
|
|
606
|
+
f"Failed to get {attr_name} from {module_name}: {e}"
|
|
607
|
+
) from e
|
|
608
|
+
|
|
609
|
+
|
|
610
|
+
def __dir__():
|
|
611
|
+
lazy_attrs = list(_dynamic_imports.keys())
|
|
612
|
+
return sorted(lazy_attrs)
|
|
@@ -5,7 +5,6 @@ from dub.types import BaseModel, Nullable, OptionalNullable, UNSET_SENTINEL
|
|
|
5
5
|
from enum import Enum
|
|
6
6
|
import pydantic
|
|
7
7
|
from pydantic import model_serializer
|
|
8
|
-
from typing import Optional
|
|
9
8
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
10
9
|
|
|
11
10
|
|
|
@@ -33,8 +32,6 @@ class FolderSchemaTypedDict(TypedDict):
|
|
|
33
32
|
r"""The date the folder was updated."""
|
|
34
33
|
access_level: NotRequired[Nullable[AccessLevel]]
|
|
35
34
|
r"""The access level of the folder within the workspace."""
|
|
36
|
-
link_count: NotRequired[float]
|
|
37
|
-
r"""The number of links in the folder."""
|
|
38
35
|
|
|
39
36
|
|
|
40
37
|
class FolderSchema(BaseModel):
|
|
@@ -57,12 +54,9 @@ class FolderSchema(BaseModel):
|
|
|
57
54
|
] = None
|
|
58
55
|
r"""The access level of the folder within the workspace."""
|
|
59
56
|
|
|
60
|
-
link_count: Annotated[Optional[float], pydantic.Field(alias="linkCount")] = 0
|
|
61
|
-
r"""The number of links in the folder."""
|
|
62
|
-
|
|
63
57
|
@model_serializer(mode="wrap")
|
|
64
58
|
def serialize_model(self, handler):
|
|
65
|
-
optional_fields = ["accessLevel"
|
|
59
|
+
optional_fields = ["accessLevel"]
|
|
66
60
|
nullable_fields = ["accessLevel"]
|
|
67
61
|
null_default_fields = ["accessLevel"]
|
|
68
62
|
|