dub 0.2.2.pre.alpha.30 → 0.2.2
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.
- checksums.yaml +4 -4
- data/lib/dub.rb +1 -2
- data/lib/open_api_sdk/analytics.rb +1 -1
- data/lib/open_api_sdk/domains.rb +55 -57
- data/lib/open_api_sdk/dub.rb +2 -3
- data/lib/open_api_sdk/links.rb +55 -133
- data/lib/open_api_sdk/metatags.rb +1 -1
- data/lib/open_api_sdk/models/operations/bulkcreatelinks_response.rb +1 -1
- data/lib/open_api_sdk/models/operations/bulkupdatelinks_requestbody.rb +5 -8
- data/lib/open_api_sdk/models/operations/bulkupdatelinks_response.rb +1 -1
- data/lib/open_api_sdk/models/operations/color.rb +2 -1
- data/lib/open_api_sdk/models/operations/createdomain_requestbody.rb +3 -6
- data/lib/open_api_sdk/models/operations/createdomain_response.rb +1 -1
- data/lib/open_api_sdk/models/operations/createlink_requestbody.rb +7 -36
- data/lib/open_api_sdk/models/operations/createlink_response.rb +1 -1
- data/lib/open_api_sdk/models/operations/createtag_requestbody.rb +1 -1
- data/lib/open_api_sdk/models/operations/createtag_response.rb +1 -1
- data/lib/open_api_sdk/models/operations/data.rb +7 -33
- data/lib/open_api_sdk/models/operations/deletedomain_request.rb +1 -1
- data/lib/open_api_sdk/models/operations/deletedomain_response.rb +1 -1
- data/lib/open_api_sdk/models/operations/deletedomain_responsebody.rb +1 -1
- data/lib/open_api_sdk/models/operations/deletelink_request.rb +1 -1
- data/lib/open_api_sdk/models/operations/deletelink_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/deletelink_responsebody.rb +2 -2
- data/lib/open_api_sdk/models/operations/event.rb +3 -2
- data/lib/open_api_sdk/models/operations/getlinkinfo_request.rb +2 -2
- data/lib/open_api_sdk/models/operations/getlinkinfo_response.rb +1 -1
- data/lib/open_api_sdk/models/operations/getlinks_request.rb +6 -9
- data/lib/open_api_sdk/models/operations/getlinks_response.rb +1 -1
- data/lib/open_api_sdk/models/operations/getlinkscount_request.rb +2 -2
- data/lib/open_api_sdk/models/operations/getlinkscount_response.rb +1 -1
- data/lib/open_api_sdk/models/operations/getmetatags_request.rb +1 -1
- data/lib/open_api_sdk/models/operations/getmetatags_response.rb +1 -1
- data/lib/open_api_sdk/models/operations/getmetatags_responsebody.rb +1 -1
- data/lib/open_api_sdk/models/operations/getqrcode_request.rb +3 -9
- data/lib/open_api_sdk/models/operations/getqrcode_response.rb +1 -1
- data/lib/open_api_sdk/models/operations/gettags_response.rb +1 -1
- data/lib/open_api_sdk/models/operations/getworkspace_request.rb +1 -1
- data/lib/open_api_sdk/models/operations/getworkspace_response.rb +1 -1
- data/lib/open_api_sdk/models/operations/groupby.rb +4 -6
- data/lib/open_api_sdk/models/operations/interval.rb +2 -1
- data/lib/open_api_sdk/models/operations/level.rb +2 -1
- data/lib/open_api_sdk/models/operations/listdomains_response.rb +1 -1
- data/lib/open_api_sdk/models/operations/paymentprocessor.rb +2 -1
- data/lib/open_api_sdk/models/operations/requestbody.rb +7 -36
- data/lib/open_api_sdk/models/operations/retrieveanalytics_request.rb +6 -15
- data/lib/open_api_sdk/models/operations/retrieveanalytics_response.rb +1 -1
- data/lib/open_api_sdk/models/operations/sort.rb +2 -1
- data/lib/open_api_sdk/models/operations/trackcustomer_requestbody.rb +1 -1
- data/lib/open_api_sdk/models/operations/trackcustomer_response.rb +1 -1
- data/lib/open_api_sdk/models/operations/trackcustomer_responsebody.rb +1 -1
- data/lib/open_api_sdk/models/operations/tracklead_requestbody.rb +2 -2
- data/lib/open_api_sdk/models/operations/tracklead_response.rb +1 -1
- data/lib/open_api_sdk/models/operations/tracklead_responsebody.rb +22 -7
- data/lib/open_api_sdk/models/operations/tracksale_requestbody.rb +1 -1
- data/lib/open_api_sdk/models/operations/tracksale_response.rb +1 -1
- data/lib/open_api_sdk/models/operations/tracksale_responsebody.rb +19 -7
- data/lib/open_api_sdk/models/operations/updatedomain_request.rb +1 -1
- data/lib/open_api_sdk/models/operations/updatedomain_requestbody.rb +3 -6
- data/lib/open_api_sdk/models/operations/updatedomain_response.rb +1 -1
- data/lib/open_api_sdk/models/operations/updatelink_request.rb +1 -1
- data/lib/open_api_sdk/models/operations/updatelink_requestbody.rb +8 -37
- data/lib/open_api_sdk/models/operations/updatelink_response.rb +1 -1
- data/lib/open_api_sdk/models/operations/updatetag_color.rb +2 -1
- data/lib/open_api_sdk/models/operations/updatetag_request.rb +1 -1
- data/lib/open_api_sdk/models/operations/updatetag_requestbody.rb +1 -1
- data/lib/open_api_sdk/models/operations/updatetag_response.rb +1 -1
- data/lib/open_api_sdk/models/operations/updateworkspace_request.rb +1 -1
- data/lib/open_api_sdk/models/operations/updateworkspace_requestbody.rb +1 -1
- data/lib/open_api_sdk/models/operations/updateworkspace_response.rb +1 -1
- data/lib/open_api_sdk/models/operations/upsertlink_requestbody.rb +7 -36
- data/lib/open_api_sdk/models/operations/upsertlink_response.rb +1 -1
- data/lib/open_api_sdk/models/operations.rb +11 -30
- data/lib/open_api_sdk/models/shared/badrequest.rb +2 -2
- data/lib/open_api_sdk/models/shared/code.rb +2 -1
- data/lib/open_api_sdk/models/shared/color.rb +2 -1
- data/lib/open_api_sdk/models/shared/conflict.rb +2 -2
- data/lib/open_api_sdk/models/shared/conflict_code.rb +2 -1
- data/lib/open_api_sdk/models/shared/conflict_error.rb +1 -1
- data/lib/open_api_sdk/models/shared/countrycode.rb +2 -1
- data/lib/open_api_sdk/models/shared/domains.rb +3 -6
- data/lib/open_api_sdk/models/shared/domainschema.rb +3 -9
- data/lib/open_api_sdk/models/shared/error.rb +1 -1
- data/lib/open_api_sdk/models/shared/forbidden.rb +2 -2
- data/lib/open_api_sdk/models/shared/forbidden_code.rb +2 -1
- data/lib/open_api_sdk/models/shared/forbidden_error.rb +1 -1
- data/lib/open_api_sdk/models/shared/geo.rb +1 -1
- data/lib/open_api_sdk/models/shared/internalservererror.rb +2 -2
- data/lib/open_api_sdk/models/shared/internalservererror_code.rb +2 -1
- data/lib/open_api_sdk/models/shared/internalservererror_error.rb +1 -1
- data/lib/open_api_sdk/models/shared/inviteexpired.rb +2 -2
- data/lib/open_api_sdk/models/shared/inviteexpired_code.rb +2 -1
- data/lib/open_api_sdk/models/shared/inviteexpired_error.rb +1 -1
- data/lib/open_api_sdk/models/shared/linkgeotargeting.rb +1 -1
- data/lib/open_api_sdk/models/shared/linkschema.rb +4 -16
- data/lib/open_api_sdk/models/shared/notfound.rb +2 -2
- data/lib/open_api_sdk/models/shared/notfound_code.rb +2 -1
- data/lib/open_api_sdk/models/shared/notfound_error.rb +1 -1
- data/lib/open_api_sdk/models/shared/plan.rb +2 -1
- data/lib/open_api_sdk/models/shared/ratelimitexceeded.rb +2 -2
- data/lib/open_api_sdk/models/shared/ratelimitexceeded_code.rb +2 -1
- data/lib/open_api_sdk/models/shared/ratelimitexceeded_error.rb +1 -1
- data/lib/open_api_sdk/models/shared/role.rb +2 -1
- data/lib/open_api_sdk/models/shared/security.rb +3 -3
- data/lib/open_api_sdk/models/shared/tagschema.rb +1 -1
- data/lib/open_api_sdk/models/shared/unauthorized.rb +2 -2
- data/lib/open_api_sdk/models/shared/unauthorized_code.rb +2 -1
- data/lib/open_api_sdk/models/shared/unauthorized_error.rb +1 -1
- data/lib/open_api_sdk/models/shared/unprocessableentity.rb +2 -2
- data/lib/open_api_sdk/models/shared/unprocessableentity_code.rb +2 -1
- data/lib/open_api_sdk/models/shared/unprocessableentity_error.rb +1 -1
- data/lib/open_api_sdk/models/shared/users.rb +1 -1
- data/lib/open_api_sdk/models/shared/workspaceschema.rb +6 -33
- data/lib/open_api_sdk/models/shared.rb +1 -8
- data/lib/open_api_sdk/qr_codes.rb +1 -1
- data/lib/open_api_sdk/sdkconfiguration.rb +4 -4
- data/lib/open_api_sdk/tags.rb +28 -109
- data/lib/open_api_sdk/track.rb +1 -1
- data/lib/open_api_sdk/utils/metadata_fields.rb +1 -1
- data/lib/open_api_sdk/utils/t.rb +1 -1
- data/lib/open_api_sdk/utils/utils.rb +1 -1
- data/lib/open_api_sdk/workspaces.rb +1 -1
- metadata +4 -31
- data/lib/open_api_sdk/events.rb +0 -99
- data/lib/open_api_sdk/models/operations/bulkdeletelinks_request.rb +0 -24
- data/lib/open_api_sdk/models/operations/bulkdeletelinks_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/bulkdeletelinks_responsebody.rb +0 -24
- data/lib/open_api_sdk/models/operations/click.rb +0 -24
- data/lib/open_api_sdk/models/operations/customer.rb +0 -33
- data/lib/open_api_sdk/models/operations/deletetag_request.rb +0 -24
- data/lib/open_api_sdk/models/operations/deletetag_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/deletetag_responsebody.rb +0 -24
- data/lib/open_api_sdk/models/operations/listdomains_request.rb +0 -33
- data/lib/open_api_sdk/models/operations/listevents_request.rb +0 -99
- data/lib/open_api_sdk/models/operations/listevents_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/order.rb +0 -18
- data/lib/open_api_sdk/models/operations/queryparam_event.rb +0 -19
- data/lib/open_api_sdk/models/operations/queryparam_interval.rb +0 -23
- data/lib/open_api_sdk/models/operations/queryparam_trigger.rb +0 -18
- data/lib/open_api_sdk/models/operations/sale.rb +0 -36
- data/lib/open_api_sdk/models/operations/sortby.rb +0 -17
- data/lib/open_api_sdk/models/operations/tracksale_customer.rb +0 -33
- data/lib/open_api_sdk/models/operations/trigger.rb +0 -18
- data/lib/open_api_sdk/models/shared/click.rb +0 -57
- data/lib/open_api_sdk/models/shared/clickevent.rb +0 -98
- data/lib/open_api_sdk/models/shared/clickevent_geo.rb +0 -771
- data/lib/open_api_sdk/models/shared/continentcode.rb +0 -23
- data/lib/open_api_sdk/models/shared/event.rb +0 -17
- data/lib/open_api_sdk/models/shared/link.rb +0 -154
- data/lib/open_api_sdk/models/shared/registereddomain.rb +0 -30
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dub
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.2
|
|
4
|
+
version: 0.2.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dub
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-
|
|
11
|
+
date: 2024-07-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -146,17 +146,12 @@ files:
|
|
|
146
146
|
- lib/open_api_sdk/analytics.rb
|
|
147
147
|
- lib/open_api_sdk/domains.rb
|
|
148
148
|
- lib/open_api_sdk/dub.rb
|
|
149
|
-
- lib/open_api_sdk/events.rb
|
|
150
149
|
- lib/open_api_sdk/links.rb
|
|
151
150
|
- lib/open_api_sdk/metatags.rb
|
|
152
151
|
- lib/open_api_sdk/models/operations.rb
|
|
153
152
|
- lib/open_api_sdk/models/operations/bulkcreatelinks_response.rb
|
|
154
|
-
- lib/open_api_sdk/models/operations/bulkdeletelinks_request.rb
|
|
155
|
-
- lib/open_api_sdk/models/operations/bulkdeletelinks_response.rb
|
|
156
|
-
- lib/open_api_sdk/models/operations/bulkdeletelinks_responsebody.rb
|
|
157
153
|
- lib/open_api_sdk/models/operations/bulkupdatelinks_requestbody.rb
|
|
158
154
|
- lib/open_api_sdk/models/operations/bulkupdatelinks_response.rb
|
|
159
|
-
- lib/open_api_sdk/models/operations/click.rb
|
|
160
155
|
- lib/open_api_sdk/models/operations/color.rb
|
|
161
156
|
- lib/open_api_sdk/models/operations/createdomain_requestbody.rb
|
|
162
157
|
- lib/open_api_sdk/models/operations/createdomain_response.rb
|
|
@@ -164,7 +159,6 @@ files:
|
|
|
164
159
|
- lib/open_api_sdk/models/operations/createlink_response.rb
|
|
165
160
|
- lib/open_api_sdk/models/operations/createtag_requestbody.rb
|
|
166
161
|
- lib/open_api_sdk/models/operations/createtag_response.rb
|
|
167
|
-
- lib/open_api_sdk/models/operations/customer.rb
|
|
168
162
|
- lib/open_api_sdk/models/operations/data.rb
|
|
169
163
|
- lib/open_api_sdk/models/operations/deletedomain_request.rb
|
|
170
164
|
- lib/open_api_sdk/models/operations/deletedomain_response.rb
|
|
@@ -172,9 +166,6 @@ files:
|
|
|
172
166
|
- lib/open_api_sdk/models/operations/deletelink_request.rb
|
|
173
167
|
- lib/open_api_sdk/models/operations/deletelink_response.rb
|
|
174
168
|
- lib/open_api_sdk/models/operations/deletelink_responsebody.rb
|
|
175
|
-
- lib/open_api_sdk/models/operations/deletetag_request.rb
|
|
176
|
-
- lib/open_api_sdk/models/operations/deletetag_response.rb
|
|
177
|
-
- lib/open_api_sdk/models/operations/deletetag_responsebody.rb
|
|
178
169
|
- lib/open_api_sdk/models/operations/event.rb
|
|
179
170
|
- lib/open_api_sdk/models/operations/getlinkinfo_request.rb
|
|
180
171
|
- lib/open_api_sdk/models/operations/getlinkinfo_response.rb
|
|
@@ -193,32 +184,21 @@ files:
|
|
|
193
184
|
- lib/open_api_sdk/models/operations/groupby.rb
|
|
194
185
|
- lib/open_api_sdk/models/operations/interval.rb
|
|
195
186
|
- lib/open_api_sdk/models/operations/level.rb
|
|
196
|
-
- lib/open_api_sdk/models/operations/listdomains_request.rb
|
|
197
187
|
- lib/open_api_sdk/models/operations/listdomains_response.rb
|
|
198
|
-
- lib/open_api_sdk/models/operations/listevents_request.rb
|
|
199
|
-
- lib/open_api_sdk/models/operations/listevents_response.rb
|
|
200
|
-
- lib/open_api_sdk/models/operations/order.rb
|
|
201
188
|
- lib/open_api_sdk/models/operations/paymentprocessor.rb
|
|
202
|
-
- lib/open_api_sdk/models/operations/queryparam_event.rb
|
|
203
|
-
- lib/open_api_sdk/models/operations/queryparam_interval.rb
|
|
204
|
-
- lib/open_api_sdk/models/operations/queryparam_trigger.rb
|
|
205
189
|
- lib/open_api_sdk/models/operations/requestbody.rb
|
|
206
190
|
- lib/open_api_sdk/models/operations/retrieveanalytics_request.rb
|
|
207
191
|
- lib/open_api_sdk/models/operations/retrieveanalytics_response.rb
|
|
208
|
-
- lib/open_api_sdk/models/operations/sale.rb
|
|
209
192
|
- lib/open_api_sdk/models/operations/sort.rb
|
|
210
|
-
- lib/open_api_sdk/models/operations/sortby.rb
|
|
211
193
|
- lib/open_api_sdk/models/operations/trackcustomer_requestbody.rb
|
|
212
194
|
- lib/open_api_sdk/models/operations/trackcustomer_response.rb
|
|
213
195
|
- lib/open_api_sdk/models/operations/trackcustomer_responsebody.rb
|
|
214
196
|
- lib/open_api_sdk/models/operations/tracklead_requestbody.rb
|
|
215
197
|
- lib/open_api_sdk/models/operations/tracklead_response.rb
|
|
216
198
|
- lib/open_api_sdk/models/operations/tracklead_responsebody.rb
|
|
217
|
-
- lib/open_api_sdk/models/operations/tracksale_customer.rb
|
|
218
199
|
- lib/open_api_sdk/models/operations/tracksale_requestbody.rb
|
|
219
200
|
- lib/open_api_sdk/models/operations/tracksale_response.rb
|
|
220
201
|
- lib/open_api_sdk/models/operations/tracksale_responsebody.rb
|
|
221
|
-
- lib/open_api_sdk/models/operations/trigger.rb
|
|
222
202
|
- lib/open_api_sdk/models/operations/updatedomain_request.rb
|
|
223
203
|
- lib/open_api_sdk/models/operations/updatedomain_requestbody.rb
|
|
224
204
|
- lib/open_api_sdk/models/operations/updatedomain_response.rb
|
|
@@ -236,20 +216,15 @@ files:
|
|
|
236
216
|
- lib/open_api_sdk/models/operations/upsertlink_response.rb
|
|
237
217
|
- lib/open_api_sdk/models/shared.rb
|
|
238
218
|
- lib/open_api_sdk/models/shared/badrequest.rb
|
|
239
|
-
- lib/open_api_sdk/models/shared/click.rb
|
|
240
|
-
- lib/open_api_sdk/models/shared/clickevent.rb
|
|
241
|
-
- lib/open_api_sdk/models/shared/clickevent_geo.rb
|
|
242
219
|
- lib/open_api_sdk/models/shared/code.rb
|
|
243
220
|
- lib/open_api_sdk/models/shared/color.rb
|
|
244
221
|
- lib/open_api_sdk/models/shared/conflict.rb
|
|
245
222
|
- lib/open_api_sdk/models/shared/conflict_code.rb
|
|
246
223
|
- lib/open_api_sdk/models/shared/conflict_error.rb
|
|
247
|
-
- lib/open_api_sdk/models/shared/continentcode.rb
|
|
248
224
|
- lib/open_api_sdk/models/shared/countrycode.rb
|
|
249
225
|
- lib/open_api_sdk/models/shared/domains.rb
|
|
250
226
|
- lib/open_api_sdk/models/shared/domainschema.rb
|
|
251
227
|
- lib/open_api_sdk/models/shared/error.rb
|
|
252
|
-
- lib/open_api_sdk/models/shared/event.rb
|
|
253
228
|
- lib/open_api_sdk/models/shared/forbidden.rb
|
|
254
229
|
- lib/open_api_sdk/models/shared/forbidden_code.rb
|
|
255
230
|
- lib/open_api_sdk/models/shared/forbidden_error.rb
|
|
@@ -260,7 +235,6 @@ files:
|
|
|
260
235
|
- lib/open_api_sdk/models/shared/inviteexpired.rb
|
|
261
236
|
- lib/open_api_sdk/models/shared/inviteexpired_code.rb
|
|
262
237
|
- lib/open_api_sdk/models/shared/inviteexpired_error.rb
|
|
263
|
-
- lib/open_api_sdk/models/shared/link.rb
|
|
264
238
|
- lib/open_api_sdk/models/shared/linkgeotargeting.rb
|
|
265
239
|
- lib/open_api_sdk/models/shared/linkschema.rb
|
|
266
240
|
- lib/open_api_sdk/models/shared/notfound.rb
|
|
@@ -270,7 +244,6 @@ files:
|
|
|
270
244
|
- lib/open_api_sdk/models/shared/ratelimitexceeded.rb
|
|
271
245
|
- lib/open_api_sdk/models/shared/ratelimitexceeded_code.rb
|
|
272
246
|
- lib/open_api_sdk/models/shared/ratelimitexceeded_error.rb
|
|
273
|
-
- lib/open_api_sdk/models/shared/registereddomain.rb
|
|
274
247
|
- lib/open_api_sdk/models/shared/role.rb
|
|
275
248
|
- lib/open_api_sdk/models/shared/security.rb
|
|
276
249
|
- lib/open_api_sdk/models/shared/tagschema.rb
|
|
@@ -308,9 +281,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
308
281
|
version: '3.0'
|
|
309
282
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
310
283
|
requirements:
|
|
311
|
-
- - "
|
|
284
|
+
- - ">="
|
|
312
285
|
- !ruby/object:Gem::Version
|
|
313
|
-
version:
|
|
286
|
+
version: '0'
|
|
314
287
|
requirements: []
|
|
315
288
|
rubygems_version: 3.3.26
|
|
316
289
|
signing_key:
|
data/lib/open_api_sdk/events.rb
DELETED
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
-
|
|
3
|
-
# typed: true
|
|
4
|
-
# frozen_string_literal: true
|
|
5
|
-
|
|
6
|
-
require 'faraday'
|
|
7
|
-
require 'faraday/multipart'
|
|
8
|
-
require 'sorbet-runtime'
|
|
9
|
-
|
|
10
|
-
module OpenApiSDK
|
|
11
|
-
extend T::Sig
|
|
12
|
-
class Events
|
|
13
|
-
extend T::Sig
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
sig { params(sdk_config: SDKConfiguration).void }
|
|
17
|
-
def initialize(sdk_config)
|
|
18
|
-
@sdk_configuration = sdk_config
|
|
19
|
-
end
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
sig { params(request: T.nilable(::OpenApiSDK::Operations::ListEventsRequest)).returns(::OpenApiSDK::Operations::ListEventsResponse) }
|
|
23
|
-
def list(request)
|
|
24
|
-
# list - Retrieve a list of events
|
|
25
|
-
# Retrieve a paginated list of events for the authenticated workspace.
|
|
26
|
-
url, params = @sdk_configuration.get_server_details
|
|
27
|
-
base_url = Utils.template_url(url, params)
|
|
28
|
-
url = "#{base_url}/events"
|
|
29
|
-
headers = {}
|
|
30
|
-
query_params = Utils.get_query_params(::OpenApiSDK::Operations::ListEventsRequest, request)
|
|
31
|
-
headers['Accept'] = 'application/json'
|
|
32
|
-
headers['user-agent'] = @sdk_configuration.user_agent
|
|
33
|
-
|
|
34
|
-
r = @sdk_configuration.client.get(url) do |req|
|
|
35
|
-
req.headers = headers
|
|
36
|
-
req.params = query_params
|
|
37
|
-
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
|
38
|
-
end
|
|
39
|
-
|
|
40
|
-
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
|
41
|
-
|
|
42
|
-
res = ::OpenApiSDK::Operations::ListEventsResponse.new(
|
|
43
|
-
status_code: r.status, content_type: content_type, raw_response: r
|
|
44
|
-
)
|
|
45
|
-
if r.status == 200
|
|
46
|
-
if Utils.match_content_type(content_type, 'application/json')
|
|
47
|
-
out = Utils.unmarshal_complex(r.env.response_body, T::Array[::OpenApiSDK::Shared::ClickEvent])
|
|
48
|
-
res.click_events = out
|
|
49
|
-
end
|
|
50
|
-
elsif r.status == 400
|
|
51
|
-
if Utils.match_content_type(content_type, 'application/json')
|
|
52
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::BadRequest)
|
|
53
|
-
res.bad_request = out
|
|
54
|
-
end
|
|
55
|
-
elsif r.status == 401
|
|
56
|
-
if Utils.match_content_type(content_type, 'application/json')
|
|
57
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Unauthorized)
|
|
58
|
-
res.unauthorized = out
|
|
59
|
-
end
|
|
60
|
-
elsif r.status == 403
|
|
61
|
-
if Utils.match_content_type(content_type, 'application/json')
|
|
62
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Forbidden)
|
|
63
|
-
res.forbidden = out
|
|
64
|
-
end
|
|
65
|
-
elsif r.status == 404
|
|
66
|
-
if Utils.match_content_type(content_type, 'application/json')
|
|
67
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::NotFound)
|
|
68
|
-
res.not_found = out
|
|
69
|
-
end
|
|
70
|
-
elsif r.status == 409
|
|
71
|
-
if Utils.match_content_type(content_type, 'application/json')
|
|
72
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Conflict)
|
|
73
|
-
res.conflict = out
|
|
74
|
-
end
|
|
75
|
-
elsif r.status == 410
|
|
76
|
-
if Utils.match_content_type(content_type, 'application/json')
|
|
77
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::InviteExpired)
|
|
78
|
-
res.invite_expired = out
|
|
79
|
-
end
|
|
80
|
-
elsif r.status == 422
|
|
81
|
-
if Utils.match_content_type(content_type, 'application/json')
|
|
82
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::UnprocessableEntity)
|
|
83
|
-
res.unprocessable_entity = out
|
|
84
|
-
end
|
|
85
|
-
elsif r.status == 429
|
|
86
|
-
if Utils.match_content_type(content_type, 'application/json')
|
|
87
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::RateLimitExceeded)
|
|
88
|
-
res.rate_limit_exceeded = out
|
|
89
|
-
end
|
|
90
|
-
elsif r.status == 500
|
|
91
|
-
if Utils.match_content_type(content_type, 'application/json')
|
|
92
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::InternalServerError)
|
|
93
|
-
res.internal_server_error = out
|
|
94
|
-
end
|
|
95
|
-
end
|
|
96
|
-
res
|
|
97
|
-
end
|
|
98
|
-
end
|
|
99
|
-
end
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
-
|
|
3
|
-
# typed: true
|
|
4
|
-
# frozen_string_literal: true
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
module OpenApiSDK
|
|
8
|
-
module Operations
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
class BulkDeleteLinksRequest < ::OpenApiSDK::Utils::FieldAugmented
|
|
12
|
-
extend T::Sig
|
|
13
|
-
|
|
14
|
-
# Comma-separated list of link IDs to delete. Maximum of 100 IDs. Non-existing IDs will be ignored.
|
|
15
|
-
field :link_ids, T::Array[::String], { 'query_param': { 'field_name': 'linkIds', 'style': 'form', 'explode': false } }
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
sig { params(link_ids: T::Array[::String]).void }
|
|
19
|
-
def initialize(link_ids: nil)
|
|
20
|
-
@link_ids = link_ids
|
|
21
|
-
end
|
|
22
|
-
end
|
|
23
|
-
end
|
|
24
|
-
end
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
-
|
|
3
|
-
# typed: true
|
|
4
|
-
# frozen_string_literal: true
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
module OpenApiSDK
|
|
8
|
-
module Operations
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
class BulkDeleteLinksResponse < ::OpenApiSDK::Utils::FieldAugmented
|
|
12
|
-
extend T::Sig
|
|
13
|
-
|
|
14
|
-
# HTTP response content type for this operation
|
|
15
|
-
field :content_type, ::String
|
|
16
|
-
# Raw HTTP response; suitable for custom response parsing
|
|
17
|
-
field :raw_response, ::Faraday::Response
|
|
18
|
-
# HTTP response status code for this operation
|
|
19
|
-
field :status_code, ::Integer
|
|
20
|
-
# The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).
|
|
21
|
-
field :bad_request, T.nilable(::OpenApiSDK::Shared::BadRequest)
|
|
22
|
-
# This response is sent when a request conflicts with the current state of the server.
|
|
23
|
-
field :conflict, T.nilable(::OpenApiSDK::Shared::Conflict)
|
|
24
|
-
# The client does not have access rights to the content; that is, it is unauthorized, so the server is refusing to give the requested resource. Unlike 401 Unauthorized, the client's identity is known to the server.
|
|
25
|
-
field :forbidden, T.nilable(::OpenApiSDK::Shared::Forbidden)
|
|
26
|
-
# The server has encountered a situation it does not know how to handle.
|
|
27
|
-
field :internal_server_error, T.nilable(::OpenApiSDK::Shared::InternalServerError)
|
|
28
|
-
# This response is sent when the requested content has been permanently deleted from server, with no forwarding address.
|
|
29
|
-
field :invite_expired, T.nilable(::OpenApiSDK::Shared::InviteExpired)
|
|
30
|
-
# The server cannot find the requested resource.
|
|
31
|
-
field :not_found, T.nilable(::OpenApiSDK::Shared::NotFound)
|
|
32
|
-
# The deleted links count.
|
|
33
|
-
field :object, T.nilable(::OpenApiSDK::Operations::BulkDeleteLinksResponseBody)
|
|
34
|
-
# The user has sent too many requests in a given amount of time ("rate limiting")
|
|
35
|
-
field :rate_limit_exceeded, T.nilable(::OpenApiSDK::Shared::RateLimitExceeded)
|
|
36
|
-
# Although the HTTP standard specifies "unauthorized", semantically this response means "unauthenticated". That is, the client must authenticate itself to get the requested response.
|
|
37
|
-
field :unauthorized, T.nilable(::OpenApiSDK::Shared::Unauthorized)
|
|
38
|
-
# The request was well-formed but was unable to be followed due to semantic errors.
|
|
39
|
-
field :unprocessable_entity, T.nilable(::OpenApiSDK::Shared::UnprocessableEntity)
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, bad_request: T.nilable(::OpenApiSDK::Shared::BadRequest), conflict: T.nilable(::OpenApiSDK::Shared::Conflict), forbidden: T.nilable(::OpenApiSDK::Shared::Forbidden), internal_server_error: T.nilable(::OpenApiSDK::Shared::InternalServerError), invite_expired: T.nilable(::OpenApiSDK::Shared::InviteExpired), not_found: T.nilable(::OpenApiSDK::Shared::NotFound), object: T.nilable(::OpenApiSDK::Operations::BulkDeleteLinksResponseBody), rate_limit_exceeded: T.nilable(::OpenApiSDK::Shared::RateLimitExceeded), unauthorized: T.nilable(::OpenApiSDK::Shared::Unauthorized), unprocessable_entity: T.nilable(::OpenApiSDK::Shared::UnprocessableEntity)).void }
|
|
43
|
-
def initialize(content_type: nil, raw_response: nil, status_code: nil, bad_request: nil, conflict: nil, forbidden: nil, internal_server_error: nil, invite_expired: nil, not_found: nil, object: nil, rate_limit_exceeded: nil, unauthorized: nil, unprocessable_entity: nil)
|
|
44
|
-
@content_type = content_type
|
|
45
|
-
@raw_response = raw_response
|
|
46
|
-
@status_code = status_code
|
|
47
|
-
@bad_request = bad_request
|
|
48
|
-
@conflict = conflict
|
|
49
|
-
@forbidden = forbidden
|
|
50
|
-
@internal_server_error = internal_server_error
|
|
51
|
-
@invite_expired = invite_expired
|
|
52
|
-
@not_found = not_found
|
|
53
|
-
@object = object
|
|
54
|
-
@rate_limit_exceeded = rate_limit_exceeded
|
|
55
|
-
@unauthorized = unauthorized
|
|
56
|
-
@unprocessable_entity = unprocessable_entity
|
|
57
|
-
end
|
|
58
|
-
end
|
|
59
|
-
end
|
|
60
|
-
end
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
-
|
|
3
|
-
# typed: true
|
|
4
|
-
# frozen_string_literal: true
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
module OpenApiSDK
|
|
8
|
-
module Operations
|
|
9
|
-
|
|
10
|
-
# The deleted links count.
|
|
11
|
-
class BulkDeleteLinksResponseBody < ::OpenApiSDK::Utils::FieldAugmented
|
|
12
|
-
extend T::Sig
|
|
13
|
-
|
|
14
|
-
# The number of links deleted.
|
|
15
|
-
field :deleted_count, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('deletedCount') } }
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
sig { params(deleted_count: ::Float).void }
|
|
19
|
-
def initialize(deleted_count: nil)
|
|
20
|
-
@deleted_count = deleted_count
|
|
21
|
-
end
|
|
22
|
-
end
|
|
23
|
-
end
|
|
24
|
-
end
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
-
|
|
3
|
-
# typed: true
|
|
4
|
-
# frozen_string_literal: true
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
module OpenApiSDK
|
|
8
|
-
module Operations
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
class Click < ::OpenApiSDK::Utils::FieldAugmented
|
|
12
|
-
extend T::Sig
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
field :id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id') } }
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
sig { params(id: ::String).void }
|
|
19
|
-
def initialize(id: nil)
|
|
20
|
-
@id = id
|
|
21
|
-
end
|
|
22
|
-
end
|
|
23
|
-
end
|
|
24
|
-
end
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
-
|
|
3
|
-
# typed: true
|
|
4
|
-
# frozen_string_literal: true
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
module OpenApiSDK
|
|
8
|
-
module Operations
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
class Customer < ::OpenApiSDK::Utils::FieldAugmented
|
|
12
|
-
extend T::Sig
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
field :avatar, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('avatar') } }
|
|
16
|
-
|
|
17
|
-
field :email, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('email') } }
|
|
18
|
-
|
|
19
|
-
field :id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id') } }
|
|
20
|
-
|
|
21
|
-
field :name, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('name') } }
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
sig { params(avatar: ::String, email: ::String, id: ::String, name: ::String).void }
|
|
25
|
-
def initialize(avatar: nil, email: nil, id: nil, name: nil)
|
|
26
|
-
@avatar = avatar
|
|
27
|
-
@email = email
|
|
28
|
-
@id = id
|
|
29
|
-
@name = name
|
|
30
|
-
end
|
|
31
|
-
end
|
|
32
|
-
end
|
|
33
|
-
end
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
-
|
|
3
|
-
# typed: true
|
|
4
|
-
# frozen_string_literal: true
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
module OpenApiSDK
|
|
8
|
-
module Operations
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
class DeleteTagRequest < ::OpenApiSDK::Utils::FieldAugmented
|
|
12
|
-
extend T::Sig
|
|
13
|
-
|
|
14
|
-
# The ID of the tag to delete.
|
|
15
|
-
field :id, ::String, { 'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': false } }
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
sig { params(id: ::String).void }
|
|
19
|
-
def initialize(id: nil)
|
|
20
|
-
@id = id
|
|
21
|
-
end
|
|
22
|
-
end
|
|
23
|
-
end
|
|
24
|
-
end
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
-
|
|
3
|
-
# typed: true
|
|
4
|
-
# frozen_string_literal: true
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
module OpenApiSDK
|
|
8
|
-
module Operations
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
class DeleteTagResponse < ::OpenApiSDK::Utils::FieldAugmented
|
|
12
|
-
extend T::Sig
|
|
13
|
-
|
|
14
|
-
# HTTP response content type for this operation
|
|
15
|
-
field :content_type, ::String
|
|
16
|
-
# Raw HTTP response; suitable for custom response parsing
|
|
17
|
-
field :raw_response, ::Faraday::Response
|
|
18
|
-
# HTTP response status code for this operation
|
|
19
|
-
field :status_code, ::Integer
|
|
20
|
-
# The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).
|
|
21
|
-
field :bad_request, T.nilable(::OpenApiSDK::Shared::BadRequest)
|
|
22
|
-
# This response is sent when a request conflicts with the current state of the server.
|
|
23
|
-
field :conflict, T.nilable(::OpenApiSDK::Shared::Conflict)
|
|
24
|
-
# The client does not have access rights to the content; that is, it is unauthorized, so the server is refusing to give the requested resource. Unlike 401 Unauthorized, the client's identity is known to the server.
|
|
25
|
-
field :forbidden, T.nilable(::OpenApiSDK::Shared::Forbidden)
|
|
26
|
-
# The server has encountered a situation it does not know how to handle.
|
|
27
|
-
field :internal_server_error, T.nilable(::OpenApiSDK::Shared::InternalServerError)
|
|
28
|
-
# This response is sent when the requested content has been permanently deleted from server, with no forwarding address.
|
|
29
|
-
field :invite_expired, T.nilable(::OpenApiSDK::Shared::InviteExpired)
|
|
30
|
-
# The server cannot find the requested resource.
|
|
31
|
-
field :not_found, T.nilable(::OpenApiSDK::Shared::NotFound)
|
|
32
|
-
# The deleted tag ID.
|
|
33
|
-
field :object, T.nilable(::OpenApiSDK::Operations::DeleteTagResponseBody)
|
|
34
|
-
# The user has sent too many requests in a given amount of time ("rate limiting")
|
|
35
|
-
field :rate_limit_exceeded, T.nilable(::OpenApiSDK::Shared::RateLimitExceeded)
|
|
36
|
-
# Although the HTTP standard specifies "unauthorized", semantically this response means "unauthenticated". That is, the client must authenticate itself to get the requested response.
|
|
37
|
-
field :unauthorized, T.nilable(::OpenApiSDK::Shared::Unauthorized)
|
|
38
|
-
# The request was well-formed but was unable to be followed due to semantic errors.
|
|
39
|
-
field :unprocessable_entity, T.nilable(::OpenApiSDK::Shared::UnprocessableEntity)
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, bad_request: T.nilable(::OpenApiSDK::Shared::BadRequest), conflict: T.nilable(::OpenApiSDK::Shared::Conflict), forbidden: T.nilable(::OpenApiSDK::Shared::Forbidden), internal_server_error: T.nilable(::OpenApiSDK::Shared::InternalServerError), invite_expired: T.nilable(::OpenApiSDK::Shared::InviteExpired), not_found: T.nilable(::OpenApiSDK::Shared::NotFound), object: T.nilable(::OpenApiSDK::Operations::DeleteTagResponseBody), rate_limit_exceeded: T.nilable(::OpenApiSDK::Shared::RateLimitExceeded), unauthorized: T.nilable(::OpenApiSDK::Shared::Unauthorized), unprocessable_entity: T.nilable(::OpenApiSDK::Shared::UnprocessableEntity)).void }
|
|
43
|
-
def initialize(content_type: nil, raw_response: nil, status_code: nil, bad_request: nil, conflict: nil, forbidden: nil, internal_server_error: nil, invite_expired: nil, not_found: nil, object: nil, rate_limit_exceeded: nil, unauthorized: nil, unprocessable_entity: nil)
|
|
44
|
-
@content_type = content_type
|
|
45
|
-
@raw_response = raw_response
|
|
46
|
-
@status_code = status_code
|
|
47
|
-
@bad_request = bad_request
|
|
48
|
-
@conflict = conflict
|
|
49
|
-
@forbidden = forbidden
|
|
50
|
-
@internal_server_error = internal_server_error
|
|
51
|
-
@invite_expired = invite_expired
|
|
52
|
-
@not_found = not_found
|
|
53
|
-
@object = object
|
|
54
|
-
@rate_limit_exceeded = rate_limit_exceeded
|
|
55
|
-
@unauthorized = unauthorized
|
|
56
|
-
@unprocessable_entity = unprocessable_entity
|
|
57
|
-
end
|
|
58
|
-
end
|
|
59
|
-
end
|
|
60
|
-
end
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
-
|
|
3
|
-
# typed: true
|
|
4
|
-
# frozen_string_literal: true
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
module OpenApiSDK
|
|
8
|
-
module Operations
|
|
9
|
-
|
|
10
|
-
# The deleted tag ID.
|
|
11
|
-
class DeleteTagResponseBody < ::OpenApiSDK::Utils::FieldAugmented
|
|
12
|
-
extend T::Sig
|
|
13
|
-
|
|
14
|
-
# The ID of the deleted tag.
|
|
15
|
-
field :id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id') } }
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
sig { params(id: ::String).void }
|
|
19
|
-
def initialize(id: nil)
|
|
20
|
-
@id = id
|
|
21
|
-
end
|
|
22
|
-
end
|
|
23
|
-
end
|
|
24
|
-
end
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
-
|
|
3
|
-
# typed: true
|
|
4
|
-
# frozen_string_literal: true
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
module OpenApiSDK
|
|
8
|
-
module Operations
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
class ListDomainsRequest < ::OpenApiSDK::Utils::FieldAugmented
|
|
12
|
-
extend T::Sig
|
|
13
|
-
|
|
14
|
-
# Whether to include archived domains in the response. Defaults to `false` if not provided.
|
|
15
|
-
field :archived, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'archived', 'style': 'form', 'explode': true } }
|
|
16
|
-
# The page number for pagination.
|
|
17
|
-
field :page, T.nilable(::Float), { 'query_param': { 'field_name': 'page', 'style': 'form', 'explode': true } }
|
|
18
|
-
# The number of items per page.
|
|
19
|
-
field :page_size, T.nilable(::Float), { 'query_param': { 'field_name': 'pageSize', 'style': 'form', 'explode': true } }
|
|
20
|
-
# The search term to filter the domains by.
|
|
21
|
-
field :search, T.nilable(::String), { 'query_param': { 'field_name': 'search', 'style': 'form', 'explode': true } }
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
sig { params(archived: T.nilable(T::Boolean), page: T.nilable(::Float), page_size: T.nilable(::Float), search: T.nilable(::String)).void }
|
|
25
|
-
def initialize(archived: nil, page: nil, page_size: nil, search: nil)
|
|
26
|
-
@archived = archived
|
|
27
|
-
@page = page
|
|
28
|
-
@page_size = page_size
|
|
29
|
-
@search = search
|
|
30
|
-
end
|
|
31
|
-
end
|
|
32
|
-
end
|
|
33
|
-
end
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
-
|
|
3
|
-
# typed: true
|
|
4
|
-
# frozen_string_literal: true
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
module OpenApiSDK
|
|
8
|
-
module Operations
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
class ListEventsRequest < ::OpenApiSDK::Utils::FieldAugmented
|
|
12
|
-
extend T::Sig
|
|
13
|
-
|
|
14
|
-
# The browser to retrieve analytics for.
|
|
15
|
-
field :browser, T.nilable(::String), { 'query_param': { 'field_name': 'browser', 'style': 'form', 'explode': true } }
|
|
16
|
-
# The city to retrieve analytics for.
|
|
17
|
-
field :city, T.nilable(::String), { 'query_param': { 'field_name': 'city', 'style': 'form', 'explode': true } }
|
|
18
|
-
# The continent to retrieve analytics for.
|
|
19
|
-
field :continent, T.nilable(::OpenApiSDK::Shared::ContinentCode), { 'query_param': { 'field_name': 'continent', 'style': 'form', 'explode': true } }
|
|
20
|
-
# The country to retrieve analytics for.
|
|
21
|
-
field :country, T.nilable(::OpenApiSDK::Shared::CountryCode), { 'query_param': { 'field_name': 'country', 'style': 'form', 'explode': true } }
|
|
22
|
-
# The device to retrieve analytics for.
|
|
23
|
-
field :device, T.nilable(::String), { 'query_param': { 'field_name': 'device', 'style': 'form', 'explode': true } }
|
|
24
|
-
# The domain to filter analytics for.
|
|
25
|
-
field :domain, T.nilable(::String), { 'query_param': { 'field_name': 'domain', 'style': 'form', 'explode': true } }
|
|
26
|
-
# The end date and time when to retrieve analytics from. If not provided, defaults to the current date.
|
|
27
|
-
field :end_, T.nilable(::String), { 'query_param': { 'field_name': 'end', 'style': 'form', 'explode': true } }
|
|
28
|
-
# The type of event to retrieve analytics for. Defaults to 'clicks'.
|
|
29
|
-
field :event, T.nilable(::OpenApiSDK::Operations::QueryParamEvent), { 'query_param': { 'field_name': 'event', 'style': 'form', 'explode': true } }
|
|
30
|
-
# This is the ID of the link in the your database. Must be prefixed with 'ext_' when passed as a query parameter.
|
|
31
|
-
field :external_id, T.nilable(::String), { 'query_param': { 'field_name': 'externalId', 'style': 'form', 'explode': true } }
|
|
32
|
-
# The interval to retrieve events for. Takes precedence over start and end. If undefined, defaults to 24h.
|
|
33
|
-
field :interval, T.nilable(::OpenApiSDK::Operations::QueryParamInterval), { 'query_param': { 'field_name': 'interval', 'style': 'form', 'explode': true } }
|
|
34
|
-
# The short link slug.
|
|
35
|
-
field :key, T.nilable(::String), { 'query_param': { 'field_name': 'key', 'style': 'form', 'explode': true } }
|
|
36
|
-
|
|
37
|
-
field :limit, T.nilable(::Float), { 'query_param': { 'field_name': 'limit', 'style': 'form', 'explode': true } }
|
|
38
|
-
# The unique ID of the short link on Dub.
|
|
39
|
-
field :link_id, T.nilable(::String), { 'query_param': { 'field_name': 'linkId', 'style': 'form', 'explode': true } }
|
|
40
|
-
|
|
41
|
-
field :order, T.nilable(::OpenApiSDK::Operations::Order), { 'query_param': { 'field_name': 'order', 'style': 'form', 'explode': true } }
|
|
42
|
-
# The OS to retrieve analytics for.
|
|
43
|
-
field :os, T.nilable(::String), { 'query_param': { 'field_name': 'os', 'style': 'form', 'explode': true } }
|
|
44
|
-
|
|
45
|
-
field :page, T.nilable(::Float), { 'query_param': { 'field_name': 'page', 'style': 'form', 'explode': true } }
|
|
46
|
-
# Deprecated. Use the `trigger` field instead. Filter for QR code scans. If true, filter for QR codes only. If false, filter for links only. If undefined, return both.
|
|
47
|
-
field :qr, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'qr', 'style': 'form', 'explode': true } }
|
|
48
|
-
# The referer to retrieve analytics for.
|
|
49
|
-
field :referer, T.nilable(::String), { 'query_param': { 'field_name': 'referer', 'style': 'form', 'explode': true } }
|
|
50
|
-
# The full referer URL to retrieve analytics for.
|
|
51
|
-
field :referer_url, T.nilable(::String), { 'query_param': { 'field_name': 'refererUrl', 'style': 'form', 'explode': true } }
|
|
52
|
-
# Filter for root domains. If true, filter for domains only. If false, filter for links only. If undefined, return both.
|
|
53
|
-
field :root, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'root', 'style': 'form', 'explode': true } }
|
|
54
|
-
|
|
55
|
-
field :sort_by, T.nilable(::OpenApiSDK::Operations::SortBy), { 'query_param': { 'field_name': 'sortBy', 'style': 'form', 'explode': true } }
|
|
56
|
-
# The start date and time when to retrieve analytics from.
|
|
57
|
-
field :start, T.nilable(::String), { 'query_param': { 'field_name': 'start', 'style': 'form', 'explode': true } }
|
|
58
|
-
# The tag ID to retrieve analytics for.
|
|
59
|
-
field :tag_id, T.nilable(::String), { 'query_param': { 'field_name': 'tagId', 'style': 'form', 'explode': true } }
|
|
60
|
-
# The IANA time zone code for aligning timeseries granularity (e.g. America/New_York). Defaults to UTC.
|
|
61
|
-
field :timezone, T.nilable(::String), { 'query_param': { 'field_name': 'timezone', 'style': 'form', 'explode': true } }
|
|
62
|
-
# The trigger to retrieve analytics for. If undefined, return both QR and link clicks.
|
|
63
|
-
field :trigger, T.nilable(::OpenApiSDK::Operations::QueryParamTrigger), { 'query_param': { 'field_name': 'trigger', 'style': 'form', 'explode': true } }
|
|
64
|
-
# The URL to retrieve analytics for.
|
|
65
|
-
field :url, T.nilable(::String), { 'query_param': { 'field_name': 'url', 'style': 'form', 'explode': true } }
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
sig { params(browser: T.nilable(::String), city: T.nilable(::String), continent: T.nilable(::OpenApiSDK::Shared::ContinentCode), country: T.nilable(::OpenApiSDK::Shared::CountryCode), device: T.nilable(::String), domain: T.nilable(::String), end_: T.nilable(::String), event: T.nilable(::OpenApiSDK::Operations::QueryParamEvent), external_id: T.nilable(::String), interval: T.nilable(::OpenApiSDK::Operations::QueryParamInterval), key: T.nilable(::String), limit: T.nilable(::Float), link_id: T.nilable(::String), order: T.nilable(::OpenApiSDK::Operations::Order), os: T.nilable(::String), page: T.nilable(::Float), qr: T.nilable(T::Boolean), referer: T.nilable(::String), referer_url: T.nilable(::String), root: T.nilable(T::Boolean), sort_by: T.nilable(::OpenApiSDK::Operations::SortBy), start: T.nilable(::String), tag_id: T.nilable(::String), timezone: T.nilable(::String), trigger: T.nilable(::OpenApiSDK::Operations::QueryParamTrigger), url: T.nilable(::String)).void }
|
|
69
|
-
def initialize(browser: nil, city: nil, continent: nil, country: nil, device: nil, domain: nil, end_: nil, event: nil, external_id: nil, interval: nil, key: nil, limit: nil, link_id: nil, order: nil, os: nil, page: nil, qr: nil, referer: nil, referer_url: nil, root: nil, sort_by: nil, start: nil, tag_id: nil, timezone: nil, trigger: nil, url: nil)
|
|
70
|
-
@browser = browser
|
|
71
|
-
@city = city
|
|
72
|
-
@continent = continent
|
|
73
|
-
@country = country
|
|
74
|
-
@device = device
|
|
75
|
-
@domain = domain
|
|
76
|
-
@end_ = end_
|
|
77
|
-
@event = event
|
|
78
|
-
@external_id = external_id
|
|
79
|
-
@interval = interval
|
|
80
|
-
@key = key
|
|
81
|
-
@limit = limit
|
|
82
|
-
@link_id = link_id
|
|
83
|
-
@order = order
|
|
84
|
-
@os = os
|
|
85
|
-
@page = page
|
|
86
|
-
@qr = qr
|
|
87
|
-
@referer = referer
|
|
88
|
-
@referer_url = referer_url
|
|
89
|
-
@root = root
|
|
90
|
-
@sort_by = sort_by
|
|
91
|
-
@start = start
|
|
92
|
-
@tag_id = tag_id
|
|
93
|
-
@timezone = timezone
|
|
94
|
-
@trigger = trigger
|
|
95
|
-
@url = url
|
|
96
|
-
end
|
|
97
|
-
end
|
|
98
|
-
end
|
|
99
|
-
end
|