dub 0.2.2.pre.alpha.91 → 0.2.2.pre.alpha.95
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/open_api_sdk/embed_tokens.rb +2 -2
- data/lib/open_api_sdk/events.rb +2 -2
- data/lib/open_api_sdk/folders.rb +2 -2
- data/lib/open_api_sdk/links.rb +2 -2
- data/lib/open_api_sdk/models/operations/createpartner_responsebody.rb +8 -2
- data/lib/open_api_sdk/models/operations/getqrcode_request.rb +2 -2
- data/lib/open_api_sdk/models/operations/listevents_response.rb +5 -5
- data/lib/open_api_sdk/models/operations/updatelink_requestbody.rb +1 -1
- data/lib/open_api_sdk/models/shared.rb +0 -6
- data/lib/open_api_sdk/partners.rb +3 -3
- data/lib/open_api_sdk/sdkconfiguration.rb +2 -2
- data/lib/open_api_sdk/tags.rb +2 -2
- metadata +2 -8
- data/lib/open_api_sdk/models/shared/click.rb +0 -63
- 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/clickevent_testvariants.rb +0 -27
- data/lib/open_api_sdk/models/shared/event.rb +0 -17
- data/lib/open_api_sdk/models/shared/link.rb +0 -172
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 022cd5885c9e1f6e74e04e7b91c73c23c7febeb0e4576e375b064f9b66036ca4
|
4
|
+
data.tar.gz: 37d860d2824edc80fdb37628d0230327b0efa059d8e0926f6d4bedf37a6a0a77
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de9a2533e4d1aea9e36269eb00b057fa37f7514c486375709d56f282d42b809fa57427c55e93386a86f583ff49c657335a62a0fd44c1742323a81515da053bfb
|
7
|
+
data.tar.gz: 3085f03cee54c640c9e32d2ebaa19703c8be1e6ffc9be3767af995ef57514fedfa5f2cd897da560c7d2085629957c4ccbb58d60e1098818b344fddfe5f9803a8
|
@@ -24,8 +24,8 @@ module OpenApiSDK
|
|
24
24
|
|
25
25
|
sig { params(request: T.nilable(::OpenApiSDK::Operations::CreateReferralsEmbedTokenRequestBody), timeout_ms: T.nilable(Integer)).returns(::OpenApiSDK::Operations::CreateReferralsEmbedTokenResponse) }
|
26
26
|
def referrals(request, timeout_ms = nil)
|
27
|
-
# referrals - Create a
|
28
|
-
# Create a
|
27
|
+
# referrals - Create a referrals embed token
|
28
|
+
# Create a referrals embed token for the given partner/tenant.
|
29
29
|
url, params = @sdk_configuration.get_server_details
|
30
30
|
base_url = Utils.template_url(url, params)
|
31
31
|
url = "#{base_url}/tokens/embed/referrals"
|
data/lib/open_api_sdk/events.rb
CHANGED
@@ -98,8 +98,8 @@ module OpenApiSDK
|
|
98
98
|
)
|
99
99
|
if r.status == 200
|
100
100
|
if Utils.match_content_type(content_type, 'application/json')
|
101
|
-
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), T::Array[::
|
102
|
-
res.
|
101
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), T::Array[::Object])
|
102
|
+
res.anies = out
|
103
103
|
end
|
104
104
|
elsif r.status == 400
|
105
105
|
if Utils.match_content_type(content_type, 'application/json')
|
data/lib/open_api_sdk/folders.rb
CHANGED
@@ -24,8 +24,8 @@ module OpenApiSDK
|
|
24
24
|
|
25
25
|
sig { params(request: T.nilable(::OpenApiSDK::Operations::CreateFolderRequestBody), timeout_ms: T.nilable(Integer)).returns(::OpenApiSDK::Operations::CreateFolderResponse) }
|
26
26
|
def create(request, timeout_ms = nil)
|
27
|
-
# create - Create a
|
28
|
-
# Create a
|
27
|
+
# create - Create a folder
|
28
|
+
# Create a folder for the authenticated workspace.
|
29
29
|
url, params = @sdk_configuration.get_server_details
|
30
30
|
base_url = Utils.template_url(url, params)
|
31
31
|
url = "#{base_url}/folders"
|
data/lib/open_api_sdk/links.rb
CHANGED
@@ -24,8 +24,8 @@ module OpenApiSDK
|
|
24
24
|
|
25
25
|
sig { params(request: T.nilable(::OpenApiSDK::Operations::CreateLinkRequestBody), timeout_ms: T.nilable(Integer)).returns(::OpenApiSDK::Operations::CreateLinkResponse) }
|
26
26
|
def create(request, timeout_ms = nil)
|
27
|
-
# create - Create a
|
28
|
-
# Create a
|
27
|
+
# create - Create a link
|
28
|
+
# Create a link for the authenticated workspace.
|
29
29
|
url, params = @sdk_configuration.get_server_details
|
30
30
|
base_url = Utils.template_url(url, params)
|
31
31
|
url = "#{base_url}/links"
|
@@ -34,6 +34,8 @@ module OpenApiSDK
|
|
34
34
|
|
35
35
|
field :payouts_enabled_at, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('payoutsEnabledAt') } }
|
36
36
|
|
37
|
+
field :paypal_email, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('paypalEmail') } }
|
38
|
+
|
37
39
|
field :program_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('programId') } }
|
38
40
|
|
39
41
|
field :sale_amount, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('saleAmount') } }
|
@@ -42,6 +44,8 @@ module OpenApiSDK
|
|
42
44
|
|
43
45
|
field :status, ::OpenApiSDK::Operations::Status, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('status'), 'decoder': Utils.enum_from_string(::OpenApiSDK::Operations::Status, false) } }
|
44
46
|
|
47
|
+
field :stripe_connect_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('stripeConnectId') } }
|
48
|
+
|
45
49
|
field :tenant_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('tenantId') } }
|
46
50
|
|
47
51
|
field :application_id, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('applicationId') } }
|
@@ -49,8 +53,8 @@ module OpenApiSDK
|
|
49
53
|
field :description, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('description') } }
|
50
54
|
|
51
55
|
|
52
|
-
sig { params(clicks: ::Float, country: ::String, created_at: ::String, earnings: ::Float, email: ::String, id: ::String, image: ::String, leads: ::Float, links: T::Array[::OpenApiSDK::Operations::CreatePartnerLink], name: ::String, payouts_enabled_at: ::String, program_id: ::String, sale_amount: ::Float, sales: ::Float, status: ::OpenApiSDK::Operations::Status, tenant_id: ::String, application_id: T.nilable(::String), description: T.nilable(::String)).void }
|
53
|
-
def initialize(clicks: nil, country: nil, created_at: nil, earnings: nil, email: nil, id: nil, image: nil, leads: nil, links: nil, name: nil, payouts_enabled_at: nil, program_id: nil, sale_amount: nil, sales: nil, status: nil, tenant_id: nil, application_id: nil, description: nil)
|
56
|
+
sig { params(clicks: ::Float, country: ::String, created_at: ::String, earnings: ::Float, email: ::String, id: ::String, image: ::String, leads: ::Float, links: T::Array[::OpenApiSDK::Operations::CreatePartnerLink], name: ::String, payouts_enabled_at: ::String, paypal_email: ::String, program_id: ::String, sale_amount: ::Float, sales: ::Float, status: ::OpenApiSDK::Operations::Status, stripe_connect_id: ::String, tenant_id: ::String, application_id: T.nilable(::String), description: T.nilable(::String)).void }
|
57
|
+
def initialize(clicks: nil, country: nil, created_at: nil, earnings: nil, email: nil, id: nil, image: nil, leads: nil, links: nil, name: nil, payouts_enabled_at: nil, paypal_email: nil, program_id: nil, sale_amount: nil, sales: nil, status: nil, stripe_connect_id: nil, tenant_id: nil, application_id: nil, description: nil)
|
54
58
|
@clicks = clicks
|
55
59
|
@country = country
|
56
60
|
@created_at = created_at
|
@@ -62,10 +66,12 @@ module OpenApiSDK
|
|
62
66
|
@links = links
|
63
67
|
@name = name
|
64
68
|
@payouts_enabled_at = payouts_enabled_at
|
69
|
+
@paypal_email = paypal_email
|
65
70
|
@program_id = program_id
|
66
71
|
@sale_amount = sale_amount
|
67
72
|
@sales = sales
|
68
73
|
@status = status
|
74
|
+
@stripe_connect_id = stripe_connect_id
|
69
75
|
@tenant_id = tenant_id
|
70
76
|
@application_id = application_id
|
71
77
|
@description = description
|
@@ -17,13 +17,13 @@ module OpenApiSDK
|
|
17
17
|
field :bg_color, T.nilable(::String), { 'query_param': { 'field_name': 'bgColor', 'style': 'form', 'explode': true } }
|
18
18
|
# The foreground color of the QR code in hex format. Defaults to `#000000` if not provided.
|
19
19
|
field :fg_color, T.nilable(::String), { 'query_param': { 'field_name': 'fgColor', 'style': 'form', 'explode': true } }
|
20
|
-
# Whether to hide the logo in the QR code. Can only be used with a paid plan on Dub.
|
20
|
+
# Whether to hide the logo in the QR code. Can only be used with a paid plan on Dub.
|
21
21
|
field :hide_logo, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'hideLogo', 'style': 'form', 'explode': true } }
|
22
22
|
# DEPRECATED: Margin is included by default. Use the `margin` prop to customize the margin size.
|
23
23
|
field :include_margin, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'includeMargin', 'style': 'form', 'explode': true } }
|
24
24
|
# The level of error correction to use for the QR code. Defaults to `L` if not provided.
|
25
25
|
field :level, T.nilable(::OpenApiSDK::Operations::Level), { 'query_param': { 'field_name': 'level', 'style': 'form', 'explode': true } }
|
26
|
-
# The logo to include in the QR code. Can only be used with a paid plan on Dub.
|
26
|
+
# The logo to include in the QR code. Can only be used with a paid plan on Dub.
|
27
27
|
field :logo, T.nilable(::String), { 'query_param': { 'field_name': 'logo', 'style': 'form', 'explode': true } }
|
28
28
|
# The size of the margin around the QR code. Defaults to 2 if not provided.
|
29
29
|
field :margin, T.nilable(::Float), { 'query_param': { 'field_name': 'margin', 'style': 'form', 'explode': true } }
|
@@ -17,10 +17,10 @@ module OpenApiSDK
|
|
17
17
|
field :raw_response, ::Faraday::Response
|
18
18
|
# HTTP response status code for this operation
|
19
19
|
field :status_code, ::Integer
|
20
|
+
# A list of events
|
21
|
+
field :anies, T.nilable(T::Array[::Object])
|
20
22
|
# 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
23
|
field :bad_request, T.nilable(::OpenApiSDK::Shared::BadRequest)
|
22
|
-
# A list of events
|
23
|
-
field :click_events, T.nilable(T::Array[::OpenApiSDK::Shared::ClickEvent])
|
24
24
|
# This response is sent when a request conflicts with the current state of the server.
|
25
25
|
field :conflict, T.nilable(::OpenApiSDK::Shared::Conflict)
|
26
26
|
# 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.
|
@@ -39,13 +39,13 @@ module OpenApiSDK
|
|
39
39
|
field :unprocessable_entity, T.nilable(::OpenApiSDK::Shared::UnprocessableEntity)
|
40
40
|
|
41
41
|
|
42
|
-
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer,
|
43
|
-
def initialize(content_type: nil, raw_response: nil, status_code: nil,
|
42
|
+
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, anies: T.nilable(T::Array[::Object]), 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), 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, anies: nil, bad_request: nil, conflict: nil, forbidden: nil, internal_server_error: nil, invite_expired: nil, not_found: nil, rate_limit_exceeded: nil, unauthorized: nil, unprocessable_entity: nil)
|
44
44
|
@content_type = content_type
|
45
45
|
@raw_response = raw_response
|
46
46
|
@status_code = status_code
|
47
|
+
@anies = anies
|
47
48
|
@bad_request = bad_request
|
48
|
-
@click_events = click_events
|
49
49
|
@conflict = conflict
|
50
50
|
@forbidden = forbidden
|
51
51
|
@internal_server_error = internal_server_error
|
@@ -33,7 +33,7 @@ module OpenApiSDK
|
|
33
33
|
field :folder_id, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('folderId') } }
|
34
34
|
# Geo targeting information for the short link in JSON format `{[COUNTRY]: https://example.com }`.
|
35
35
|
field :geo, T.nilable(::OpenApiSDK::Shared::LinkGeoTargeting), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('geo') } }
|
36
|
-
|
36
|
+
|
37
37
|
field :image, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('image') } }
|
38
38
|
# The iOS destination URL for the short link for iOS device targeting.
|
39
39
|
field :ios, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('ios') } }
|
@@ -40,12 +40,6 @@ module OpenApiSDK
|
|
40
40
|
autoload :LinkGeoTargeting, 'open_api_sdk/models/shared/linkgeotargeting.rb'
|
41
41
|
autoload :ContinentCode, 'open_api_sdk/models/shared/continentcode.rb'
|
42
42
|
autoload :CountryCode, 'open_api_sdk/models/shared/countrycode.rb'
|
43
|
-
autoload :Event, 'open_api_sdk/models/shared/event.rb'
|
44
|
-
autoload :Click, 'open_api_sdk/models/shared/click.rb'
|
45
|
-
autoload :ClickEventGeo, 'open_api_sdk/models/shared/clickevent_geo.rb'
|
46
|
-
autoload :ClickEventTestVariants, 'open_api_sdk/models/shared/clickevent_testvariants.rb'
|
47
|
-
autoload :Link, 'open_api_sdk/models/shared/link.rb'
|
48
|
-
autoload :ClickEvent, 'open_api_sdk/models/shared/clickevent.rb'
|
49
43
|
autoload :Type, 'open_api_sdk/models/shared/type.rb'
|
50
44
|
autoload :AccessLevel, 'open_api_sdk/models/shared/accesslevel.rb'
|
51
45
|
autoload :FolderSchema, 'open_api_sdk/models/shared/folderschema.rb'
|
@@ -24,8 +24,8 @@ module OpenApiSDK
|
|
24
24
|
|
25
25
|
sig { params(request: T.nilable(::OpenApiSDK::Operations::CreatePartnerRequestBody), timeout_ms: T.nilable(Integer)).returns(::OpenApiSDK::Operations::CreatePartnerResponse) }
|
26
26
|
def create(request, timeout_ms = nil)
|
27
|
-
# create - Create a
|
28
|
-
# Create a
|
27
|
+
# create - Create a partner
|
28
|
+
# Create a partner for a program. If partner exists, automatically enrolls them.
|
29
29
|
url, params = @sdk_configuration.get_server_details
|
30
30
|
base_url = Utils.template_url(url, params)
|
31
31
|
url = "#{base_url}/partners"
|
@@ -164,7 +164,7 @@ module OpenApiSDK
|
|
164
164
|
sig { params(request: T.nilable(::OpenApiSDK::Operations::CreatePartnerLinkRequestBody), timeout_ms: T.nilable(Integer)).returns(::OpenApiSDK::Operations::CreatePartnerLinkResponse) }
|
165
165
|
def create_link(request, timeout_ms = nil)
|
166
166
|
# create_link - Create a link for a partner
|
167
|
-
# Create a
|
167
|
+
# Create a link for a partner that is enrolled in your program.
|
168
168
|
url, params = @sdk_configuration.get_server_details
|
169
169
|
base_url = Utils.template_url(url, params)
|
170
170
|
url = "#{base_url}/partners/links"
|
@@ -61,9 +61,9 @@ module OpenApiSDK
|
|
61
61
|
end
|
62
62
|
@language = 'ruby'
|
63
63
|
@openapi_doc_version = '0.0.1'
|
64
|
-
@sdk_version = '0.2.2-alpha.
|
64
|
+
@sdk_version = '0.2.2-alpha.95'
|
65
65
|
@gen_version = '2.563.0'
|
66
|
-
@user_agent = 'speakeasy-sdk/ruby 0.2.2-alpha.
|
66
|
+
@user_agent = 'speakeasy-sdk/ruby 0.2.2-alpha.95 2.563.0 0.0.1 dub'
|
67
67
|
end
|
68
68
|
|
69
69
|
sig { returns([String, T::Hash[Symbol, String]]) }
|
data/lib/open_api_sdk/tags.rb
CHANGED
@@ -24,8 +24,8 @@ module OpenApiSDK
|
|
24
24
|
|
25
25
|
sig { params(request: T.nilable(::OpenApiSDK::Operations::CreateTagRequestBody), timeout_ms: T.nilable(Integer)).returns(::OpenApiSDK::Operations::CreateTagResponse) }
|
26
26
|
def create(request, timeout_ms = nil)
|
27
|
-
# create - Create a
|
28
|
-
# Create a
|
27
|
+
# create - Create a tag
|
28
|
+
# Create a tag for the authenticated workspace.
|
29
29
|
url, params = @sdk_configuration.get_server_details
|
30
30
|
base_url = Utils.template_url(url, params)
|
31
31
|
url = "#{base_url}/tags"
|
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.pre.alpha.
|
4
|
+
version: 0.2.2.pre.alpha.95
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dub
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -370,10 +370,6 @@ files:
|
|
370
370
|
- lib/open_api_sdk/models/shared.rb
|
371
371
|
- lib/open_api_sdk/models/shared/accesslevel.rb
|
372
372
|
- lib/open_api_sdk/models/shared/badrequest.rb
|
373
|
-
- lib/open_api_sdk/models/shared/click.rb
|
374
|
-
- lib/open_api_sdk/models/shared/clickevent.rb
|
375
|
-
- lib/open_api_sdk/models/shared/clickevent_geo.rb
|
376
|
-
- lib/open_api_sdk/models/shared/clickevent_testvariants.rb
|
377
373
|
- lib/open_api_sdk/models/shared/code.rb
|
378
374
|
- lib/open_api_sdk/models/shared/color.rb
|
379
375
|
- lib/open_api_sdk/models/shared/conflict.rb
|
@@ -384,7 +380,6 @@ files:
|
|
384
380
|
- lib/open_api_sdk/models/shared/domains.rb
|
385
381
|
- lib/open_api_sdk/models/shared/domainschema.rb
|
386
382
|
- lib/open_api_sdk/models/shared/error.rb
|
387
|
-
- lib/open_api_sdk/models/shared/event.rb
|
388
383
|
- lib/open_api_sdk/models/shared/folderschema.rb
|
389
384
|
- lib/open_api_sdk/models/shared/forbidden.rb
|
390
385
|
- lib/open_api_sdk/models/shared/forbidden_code.rb
|
@@ -396,7 +391,6 @@ files:
|
|
396
391
|
- lib/open_api_sdk/models/shared/inviteexpired.rb
|
397
392
|
- lib/open_api_sdk/models/shared/inviteexpired_code.rb
|
398
393
|
- lib/open_api_sdk/models/shared/inviteexpired_error.rb
|
399
|
-
- lib/open_api_sdk/models/shared/link.rb
|
400
394
|
- lib/open_api_sdk/models/shared/linkgeotargeting.rb
|
401
395
|
- lib/open_api_sdk/models/shared/linkschema.rb
|
402
396
|
- lib/open_api_sdk/models/shared/notfound.rb
|
@@ -1,63 +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 Shared
|
9
|
-
|
10
|
-
|
11
|
-
class Click < ::Crystalline::FieldAugmented
|
12
|
-
extend T::Sig
|
13
|
-
|
14
|
-
|
15
|
-
field :browser, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('browser') } }
|
16
|
-
|
17
|
-
field :city, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('city') } }
|
18
|
-
|
19
|
-
field :continent, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('continent') } }
|
20
|
-
|
21
|
-
field :country, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('country') } }
|
22
|
-
|
23
|
-
field :device, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('device') } }
|
24
|
-
|
25
|
-
field :id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id') } }
|
26
|
-
|
27
|
-
field :ip, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('ip') } }
|
28
|
-
|
29
|
-
field :os, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('os') } }
|
30
|
-
|
31
|
-
field :qr, T::Boolean, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('qr') } }
|
32
|
-
|
33
|
-
field :referer, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('referer') } }
|
34
|
-
|
35
|
-
field :referer_url, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('refererUrl') } }
|
36
|
-
|
37
|
-
field :region, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('region') } }
|
38
|
-
|
39
|
-
field :timestamp, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('timestamp') } }
|
40
|
-
|
41
|
-
field :url, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('url') } }
|
42
|
-
|
43
|
-
|
44
|
-
sig { params(browser: ::String, city: ::String, continent: ::String, country: ::String, device: ::String, id: ::String, ip: ::String, os: ::String, qr: T::Boolean, referer: ::String, referer_url: ::String, region: ::String, timestamp: ::String, url: ::String).void }
|
45
|
-
def initialize(browser: nil, city: nil, continent: nil, country: nil, device: nil, id: nil, ip: nil, os: nil, qr: nil, referer: nil, referer_url: nil, region: nil, timestamp: nil, url: nil)
|
46
|
-
@browser = browser
|
47
|
-
@city = city
|
48
|
-
@continent = continent
|
49
|
-
@country = country
|
50
|
-
@device = device
|
51
|
-
@id = id
|
52
|
-
@ip = ip
|
53
|
-
@os = os
|
54
|
-
@qr = qr
|
55
|
-
@referer = referer
|
56
|
-
@referer_url = referer_url
|
57
|
-
@region = region
|
58
|
-
@timestamp = timestamp
|
59
|
-
@url = url
|
60
|
-
end
|
61
|
-
end
|
62
|
-
end
|
63
|
-
end
|
@@ -1,98 +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 Shared
|
9
|
-
|
10
|
-
|
11
|
-
class ClickEvent < ::Crystalline::FieldAugmented
|
12
|
-
extend T::Sig
|
13
|
-
|
14
|
-
# Deprecated. Use `click.browser` instead.
|
15
|
-
#
|
16
|
-
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
17
|
-
field :browser, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('browser') } }
|
18
|
-
# Deprecated. Use `click.city` instead.
|
19
|
-
#
|
20
|
-
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
21
|
-
field :city, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('city') } }
|
22
|
-
|
23
|
-
field :click, ::OpenApiSDK::Shared::Click, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('click') } }
|
24
|
-
# Deprecated. Use `click.id` instead.
|
25
|
-
#
|
26
|
-
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
27
|
-
field :click_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('click_id') } }
|
28
|
-
# Deprecated. Use `click.continent` instead.
|
29
|
-
#
|
30
|
-
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
31
|
-
field :continent, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('continent') } }
|
32
|
-
# Deprecated. Use `click.country` instead.
|
33
|
-
#
|
34
|
-
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
35
|
-
field :country, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('country') } }
|
36
|
-
# Deprecated. Use `click.device` instead.
|
37
|
-
#
|
38
|
-
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
39
|
-
field :device, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('device') } }
|
40
|
-
# Deprecated. Use `link.domain` instead.
|
41
|
-
#
|
42
|
-
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
43
|
-
field :domain, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('domain') } }
|
44
|
-
|
45
|
-
field :event, ::OpenApiSDK::Shared::Event, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('event'), 'decoder': Utils.enum_from_string(::OpenApiSDK::Shared::Event, false) } }
|
46
|
-
# Deprecated. Use `click.ip` instead.
|
47
|
-
#
|
48
|
-
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
49
|
-
field :ip, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('ip') } }
|
50
|
-
# Deprecated. Use `link.key` instead.
|
51
|
-
#
|
52
|
-
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
53
|
-
field :key, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('key') } }
|
54
|
-
|
55
|
-
field :link, ::OpenApiSDK::Shared::Link, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('link') } }
|
56
|
-
# Deprecated. Use `link.id` instead.
|
57
|
-
#
|
58
|
-
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
59
|
-
field :link_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('link_id') } }
|
60
|
-
# Deprecated. Use `click.os` instead.
|
61
|
-
#
|
62
|
-
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
63
|
-
field :os, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('os') } }
|
64
|
-
# Deprecated. Use `click.qr` instead.
|
65
|
-
#
|
66
|
-
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
67
|
-
field :qr, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('qr') } }
|
68
|
-
|
69
|
-
field :timestamp, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('timestamp') } }
|
70
|
-
# Deprecated. Use `click.url` instead.
|
71
|
-
#
|
72
|
-
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
73
|
-
field :url, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('url') } }
|
74
|
-
|
75
|
-
|
76
|
-
sig { params(browser: ::String, city: ::String, click: ::OpenApiSDK::Shared::Click, click_id: ::String, continent: ::String, country: ::String, device: ::String, domain: ::String, event: ::OpenApiSDK::Shared::Event, ip: ::String, key: ::String, link: ::OpenApiSDK::Shared::Link, link_id: ::String, os: ::String, qr: ::Float, timestamp: ::String, url: ::String).void }
|
77
|
-
def initialize(browser: nil, city: nil, click: nil, click_id: nil, continent: nil, country: nil, device: nil, domain: nil, event: nil, ip: nil, key: nil, link: nil, link_id: nil, os: nil, qr: nil, timestamp: nil, url: nil)
|
78
|
-
@browser = browser
|
79
|
-
@city = city
|
80
|
-
@click = click
|
81
|
-
@click_id = click_id
|
82
|
-
@continent = continent
|
83
|
-
@country = country
|
84
|
-
@device = device
|
85
|
-
@domain = domain
|
86
|
-
@event = event
|
87
|
-
@ip = ip
|
88
|
-
@key = key
|
89
|
-
@link = link
|
90
|
-
@link_id = link_id
|
91
|
-
@os = os
|
92
|
-
@qr = qr
|
93
|
-
@timestamp = timestamp
|
94
|
-
@url = url
|
95
|
-
end
|
96
|
-
end
|
97
|
-
end
|
98
|
-
end
|