dub 0.12.8 → 0.12.10
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/analytics.rb +4 -4
- data/lib/open_api_sdk/bounties.rb +12 -12
- data/lib/open_api_sdk/commissions.rb +16 -16
- data/lib/open_api_sdk/customers.rb +16 -16
- data/lib/open_api_sdk/domains.rb +24 -24
- data/lib/open_api_sdk/embed_tokens.rb +4 -4
- data/lib/open_api_sdk/events.rb +4 -4
- data/lib/open_api_sdk/folders.rb +16 -16
- data/lib/open_api_sdk/links.rb +40 -40
- data/lib/open_api_sdk/models/operations/accesslevel.rb +1 -1
- data/lib/open_api_sdk/models/operations/checkdomainstatus_responsebody.rb +12 -6
- data/lib/open_api_sdk/models/operations/checkdomainstatus_responsebody.rbi +4 -2
- data/lib/open_api_sdk/models/operations/createfolder_requestbody.rb +2 -2
- data/lib/open_api_sdk/models/operations/createlink_requestbody.rb +8 -6
- data/lib/open_api_sdk/models/operations/createlink_requestbody.rbi +2 -2
- data/lib/open_api_sdk/models/operations/createpartner_defaultpayoutmethod.rb +1 -0
- data/lib/open_api_sdk/models/operations/data.rb +8 -6
- data/lib/open_api_sdk/models/operations/data.rbi +2 -2
- data/lib/open_api_sdk/models/operations/defaultpayoutmethod.rb +1 -0
- data/lib/open_api_sdk/models/operations/listevents_responsebody_click.rb +6 -2
- data/lib/open_api_sdk/models/operations/listevents_responsebody_click.rbi +2 -0
- data/lib/open_api_sdk/models/operations/listevents_responsebody_events_click.rb +6 -2
- data/lib/open_api_sdk/models/operations/listevents_responsebody_events_click.rbi +2 -0
- data/lib/open_api_sdk/models/operations/listevents_responsebody_events_link.rb +8 -6
- data/lib/open_api_sdk/models/operations/listevents_responsebody_events_link.rbi +2 -2
- data/lib/open_api_sdk/models/operations/listevents_responsebody_link.rb +8 -6
- data/lib/open_api_sdk/models/operations/listevents_responsebody_link.rbi +2 -2
- data/lib/open_api_sdk/models/operations/listpayouts_defaultpayoutmethod.rb +1 -0
- data/lib/open_api_sdk/models/operations/listpayouts_request.rb +6 -2
- data/lib/open_api_sdk/models/operations/listpayouts_request.rbi +2 -0
- data/lib/open_api_sdk/models/operations/method.rb +1 -0
- data/lib/open_api_sdk/models/operations/prices.rb +36 -0
- data/lib/open_api_sdk/models/operations/prices.rbi +15 -0
- data/lib/open_api_sdk/models/operations/requestbody.rb +8 -6
- data/lib/open_api_sdk/models/operations/requestbody.rbi +2 -2
- data/lib/open_api_sdk/models/operations/responsebody_click.rb +6 -2
- data/lib/open_api_sdk/models/operations/responsebody_click.rbi +2 -0
- data/lib/open_api_sdk/models/operations/responsebody_link.rb +8 -6
- data/lib/open_api_sdk/models/operations/responsebody_link.rbi +2 -2
- data/lib/open_api_sdk/models/operations/tracklead_requestbody.rb +2 -2
- data/lib/open_api_sdk/models/operations/updatelink_requestbody.rb +8 -6
- data/lib/open_api_sdk/models/operations/updatelink_requestbody.rbi +2 -2
- data/lib/open_api_sdk/models/operations/upsertlink_requestbody.rb +8 -6
- data/lib/open_api_sdk/models/operations/upsertlink_requestbody.rbi +2 -2
- data/lib/open_api_sdk/models/operations.rb +1 -0
- data/lib/open_api_sdk/models/shared/accesslevel.rb +1 -1
- data/lib/open_api_sdk/models/shared/click.rb +6 -2
- data/lib/open_api_sdk/models/shared/click.rbi +2 -0
- data/lib/open_api_sdk/models/shared/data.rb +8 -6
- data/lib/open_api_sdk/models/shared/data.rbi +2 -2
- data/lib/open_api_sdk/models/shared/defaultpayoutmethod.rb +1 -0
- data/lib/open_api_sdk/models/shared/folderschema.rb +2 -2
- data/lib/open_api_sdk/models/shared/leadcreatedevent_click.rb +6 -2
- data/lib/open_api_sdk/models/shared/leadcreatedevent_click.rbi +2 -0
- data/lib/open_api_sdk/models/shared/leadcreatedevent_link.rb +8 -6
- data/lib/open_api_sdk/models/shared/leadcreatedevent_link.rbi +2 -2
- data/lib/open_api_sdk/models/shared/link.rb +8 -6
- data/lib/open_api_sdk/models/shared/link.rbi +2 -2
- data/lib/open_api_sdk/models/shared/linkschema.rb +8 -6
- data/lib/open_api_sdk/models/shared/linkschema.rbi +2 -2
- data/lib/open_api_sdk/models/shared/salecreatedevent_click.rb +6 -2
- data/lib/open_api_sdk/models/shared/salecreatedevent_click.rbi +2 -0
- data/lib/open_api_sdk/models/shared/salecreatedevent_link.rb +8 -6
- data/lib/open_api_sdk/models/shared/salecreatedevent_link.rbi +2 -2
- data/lib/open_api_sdk/partner_applications.rb +12 -12
- data/lib/open_api_sdk/partners.rb +32 -32
- data/lib/open_api_sdk/payouts.rb +4 -4
- data/lib/open_api_sdk/qr_codes.rb +4 -4
- data/lib/open_api_sdk/sdkconfiguration.rb +3 -3
- data/lib/open_api_sdk/tags.rb +16 -16
- data/lib/open_api_sdk/track.rb +8 -8
- data/lib/open_api_sdk/utils/retries.rb +4 -1
- metadata +6 -4
|
@@ -74,8 +74,6 @@ module OpenApiSDK
|
|
|
74
74
|
field :utm_content, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('utm_content') } }
|
|
75
75
|
# The referral tag of the short link. If set, this will populate or override the `ref` query parameter in the destination URL.
|
|
76
76
|
field :ref, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('ref') } }
|
|
77
|
-
# An array of webhook IDs to trigger when the link is clicked. These webhooks will receive click event data.
|
|
78
|
-
field :webhook_ids, Crystalline::Nilable.new(Crystalline::Array.new(::String)), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('webhookIds') } }
|
|
79
77
|
# An array of A/B test URLs and the percentage of traffic to send to each URL.
|
|
80
78
|
field :test_variants, Crystalline::Nilable.new(Crystalline::Array.new(Models::Operations::BulkUpdateLinksTestVariants)), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('testVariants') } }
|
|
81
79
|
# The date and time when the tests started.
|
|
@@ -86,9 +84,13 @@ module OpenApiSDK
|
|
|
86
84
|
#
|
|
87
85
|
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
88
86
|
field :tag_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('tagId') } }
|
|
87
|
+
# Deprecated: You can now enable link.clicked webhooks for all links in a workspace or folder without passing this field manually. An array of webhook IDs to trigger when the link is clicked. These webhooks will receive click event data.
|
|
88
|
+
#
|
|
89
|
+
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
90
|
+
field :webhook_ids, Crystalline::Nilable.new(Crystalline::Array.new(::String)), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('webhookIds') } }
|
|
89
91
|
|
|
90
|
-
sig { params(url: T.nilable(::String), track_conversion: T.nilable(T::Boolean), archived: T.nilable(T::Boolean), tag_ids: T.nilable(T.any(::String, T::Array[::String])), tag_names: T.nilable(T.any(::String, T::Array[::String])), proxy: T.nilable(T::Boolean), rewrite: T.nilable(T::Boolean), do_index: T.nilable(T::Boolean), public_stats: T.nilable(T::Boolean), tenant_id: T.nilable(::String), program_id: T.nilable(::String), partner_id: T.nilable(::String), folder_id: T.nilable(::String), comments: T.nilable(::String), expires_at: T.nilable(::String), expired_url: T.nilable(::String), password: T.nilable(::String), title: T.nilable(::String), description: T.nilable(::String), image: T.nilable(::String), video: T.nilable(::String), ios: T.nilable(::String), android: T.nilable(::String), geo: T.nilable(T::Hash[Symbol, ::String]), utm_source: T.nilable(::String), utm_medium: T.nilable(::String), utm_campaign: T.nilable(::String), utm_term: T.nilable(::String), utm_content: T.nilable(::String), ref: T.nilable(::String),
|
|
91
|
-
def initialize(url: nil, track_conversion: nil, archived: nil, tag_ids: nil, tag_names: nil, proxy: nil, rewrite: nil, do_index: nil, public_stats: nil, tenant_id: nil, program_id: nil, partner_id: nil, folder_id: nil, comments: nil, expires_at: nil, expired_url: nil, password: nil, title: nil, description: nil, image: nil, video: nil, ios: nil, android: nil, geo: nil, utm_source: nil, utm_medium: nil, utm_campaign: nil, utm_term: nil, utm_content: nil, ref: nil,
|
|
92
|
+
sig { params(url: T.nilable(::String), track_conversion: T.nilable(T::Boolean), archived: T.nilable(T::Boolean), tag_ids: T.nilable(T.any(::String, T::Array[::String])), tag_names: T.nilable(T.any(::String, T::Array[::String])), proxy: T.nilable(T::Boolean), rewrite: T.nilable(T::Boolean), do_index: T.nilable(T::Boolean), public_stats: T.nilable(T::Boolean), tenant_id: T.nilable(::String), program_id: T.nilable(::String), partner_id: T.nilable(::String), folder_id: T.nilable(::String), comments: T.nilable(::String), expires_at: T.nilable(::String), expired_url: T.nilable(::String), password: T.nilable(::String), title: T.nilable(::String), description: T.nilable(::String), image: T.nilable(::String), video: T.nilable(::String), ios: T.nilable(::String), android: T.nilable(::String), geo: T.nilable(T::Hash[Symbol, ::String]), utm_source: T.nilable(::String), utm_medium: T.nilable(::String), utm_campaign: T.nilable(::String), utm_term: T.nilable(::String), utm_content: T.nilable(::String), ref: T.nilable(::String), test_variants: T.nilable(T::Array[Models::Operations::BulkUpdateLinksTestVariants]), test_started_at: T.nilable(::String), test_completed_at: T.nilable(::String), tag_id: T.nilable(::String), webhook_ids: T.nilable(T::Array[::String])).void }
|
|
93
|
+
def initialize(url: nil, track_conversion: nil, archived: nil, tag_ids: nil, tag_names: nil, proxy: nil, rewrite: nil, do_index: nil, public_stats: nil, tenant_id: nil, program_id: nil, partner_id: nil, folder_id: nil, comments: nil, expires_at: nil, expired_url: nil, password: nil, title: nil, description: nil, image: nil, video: nil, ios: nil, android: nil, geo: nil, utm_source: nil, utm_medium: nil, utm_campaign: nil, utm_term: nil, utm_content: nil, ref: nil, test_variants: nil, test_started_at: nil, test_completed_at: nil, tag_id: nil, webhook_ids: nil)
|
|
92
94
|
@url = url
|
|
93
95
|
@track_conversion = track_conversion
|
|
94
96
|
@archived = archived
|
|
@@ -119,11 +121,11 @@ module OpenApiSDK
|
|
|
119
121
|
@utm_term = utm_term
|
|
120
122
|
@utm_content = utm_content
|
|
121
123
|
@ref = ref
|
|
122
|
-
@webhook_ids = webhook_ids
|
|
123
124
|
@test_variants = test_variants
|
|
124
125
|
@test_started_at = test_started_at
|
|
125
126
|
@test_completed_at = test_completed_at
|
|
126
127
|
@tag_id = tag_id
|
|
128
|
+
@webhook_ids = webhook_ids
|
|
127
129
|
end
|
|
128
130
|
|
|
129
131
|
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
@@ -159,11 +161,11 @@ module OpenApiSDK
|
|
|
159
161
|
return false unless @utm_term == other.utm_term
|
|
160
162
|
return false unless @utm_content == other.utm_content
|
|
161
163
|
return false unless @ref == other.ref
|
|
162
|
-
return false unless @webhook_ids == other.webhook_ids
|
|
163
164
|
return false unless @test_variants == other.test_variants
|
|
164
165
|
return false unless @test_started_at == other.test_started_at
|
|
165
166
|
return false unless @test_completed_at == other.test_completed_at
|
|
166
167
|
return false unless @tag_id == other.tag_id
|
|
168
|
+
return false unless @webhook_ids == other.webhook_ids
|
|
167
169
|
true
|
|
168
170
|
end
|
|
169
171
|
end
|
|
@@ -68,8 +68,6 @@ class OpenApiSDK::Models::Operations::Data
|
|
|
68
68
|
def utm_content=(str_); end
|
|
69
69
|
def ref(); end
|
|
70
70
|
def ref=(str_); end
|
|
71
|
-
def webhook_ids(); end
|
|
72
|
-
def webhook_ids=(str_); end
|
|
73
71
|
def test_variants(); end
|
|
74
72
|
def test_variants=(str_); end
|
|
75
73
|
def test_started_at(); end
|
|
@@ -78,4 +76,6 @@ class OpenApiSDK::Models::Operations::Data
|
|
|
78
76
|
def test_completed_at=(str_); end
|
|
79
77
|
def tag_id(); end
|
|
80
78
|
def tag_id=(str_); end
|
|
79
|
+
def webhook_ids(); end
|
|
80
|
+
def webhook_ids=(str_); end
|
|
81
81
|
end
|
|
@@ -41,10 +41,12 @@ module OpenApiSDK
|
|
|
41
41
|
|
|
42
42
|
field :ip, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('ip'), required: true } }
|
|
43
43
|
|
|
44
|
+
field :ua, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('ua') } }
|
|
45
|
+
|
|
44
46
|
field :trigger, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('trigger') } }
|
|
45
47
|
|
|
46
|
-
sig { params(id: ::String, timestamp: ::String, url: ::String, country: ::String, city: ::String, region: ::String, continent: ::String, device: ::String, browser: ::String, os: ::String, referer: ::String, referer_url: ::String, qr: T::Boolean, ip: ::String, trigger: T.nilable(::String)).void }
|
|
47
|
-
def initialize(id:, timestamp:, url:, country:, city:, region:, continent:, device:, browser:, os:, referer:, referer_url:, qr:, ip:, trigger: nil)
|
|
48
|
+
sig { params(id: ::String, timestamp: ::String, url: ::String, country: ::String, city: ::String, region: ::String, continent: ::String, device: ::String, browser: ::String, os: ::String, referer: ::String, referer_url: ::String, qr: T::Boolean, ip: ::String, ua: T.nilable(::String), trigger: T.nilable(::String)).void }
|
|
49
|
+
def initialize(id:, timestamp:, url:, country:, city:, region:, continent:, device:, browser:, os:, referer:, referer_url:, qr:, ip:, ua: nil, trigger: nil)
|
|
48
50
|
@id = id
|
|
49
51
|
@timestamp = timestamp
|
|
50
52
|
@url = url
|
|
@@ -59,6 +61,7 @@ module OpenApiSDK
|
|
|
59
61
|
@referer_url = referer_url
|
|
60
62
|
@qr = qr
|
|
61
63
|
@ip = ip
|
|
64
|
+
@ua = ua
|
|
62
65
|
@trigger = trigger
|
|
63
66
|
end
|
|
64
67
|
|
|
@@ -79,6 +82,7 @@ module OpenApiSDK
|
|
|
79
82
|
return false unless @referer_url == other.referer_url
|
|
80
83
|
return false unless @qr == other.qr
|
|
81
84
|
return false unless @ip == other.ip
|
|
85
|
+
return false unless @ua == other.ua
|
|
82
86
|
return false unless @trigger == other.trigger
|
|
83
87
|
true
|
|
84
88
|
end
|
|
@@ -41,10 +41,12 @@ module OpenApiSDK
|
|
|
41
41
|
|
|
42
42
|
field :ip, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('ip'), required: true } }
|
|
43
43
|
|
|
44
|
+
field :ua, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('ua') } }
|
|
45
|
+
|
|
44
46
|
field :trigger, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('trigger') } }
|
|
45
47
|
|
|
46
|
-
sig { params(id: ::String, timestamp: ::String, url: ::String, country: ::String, city: ::String, region: ::String, continent: ::String, device: ::String, browser: ::String, os: ::String, referer: ::String, referer_url: ::String, qr: T::Boolean, ip: ::String, trigger: T.nilable(::String)).void }
|
|
47
|
-
def initialize(id:, timestamp:, url:, country:, city:, region:, continent:, device:, browser:, os:, referer:, referer_url:, qr:, ip:, trigger: nil)
|
|
48
|
+
sig { params(id: ::String, timestamp: ::String, url: ::String, country: ::String, city: ::String, region: ::String, continent: ::String, device: ::String, browser: ::String, os: ::String, referer: ::String, referer_url: ::String, qr: T::Boolean, ip: ::String, ua: T.nilable(::String), trigger: T.nilable(::String)).void }
|
|
49
|
+
def initialize(id:, timestamp:, url:, country:, city:, region:, continent:, device:, browser:, os:, referer:, referer_url:, qr:, ip:, ua: nil, trigger: nil)
|
|
48
50
|
@id = id
|
|
49
51
|
@timestamp = timestamp
|
|
50
52
|
@url = url
|
|
@@ -59,6 +61,7 @@ module OpenApiSDK
|
|
|
59
61
|
@referer_url = referer_url
|
|
60
62
|
@qr = qr
|
|
61
63
|
@ip = ip
|
|
64
|
+
@ua = ua
|
|
62
65
|
@trigger = trigger
|
|
63
66
|
end
|
|
64
67
|
|
|
@@ -79,6 +82,7 @@ module OpenApiSDK
|
|
|
79
82
|
return false unless @referer_url == other.referer_url
|
|
80
83
|
return false unless @qr == other.qr
|
|
81
84
|
return false unless @ip == other.ip
|
|
85
|
+
return false unless @ua == other.ua
|
|
82
86
|
return false unless @trigger == other.trigger
|
|
83
87
|
true
|
|
84
88
|
end
|
|
@@ -36,8 +36,6 @@ module OpenApiSDK
|
|
|
36
36
|
field :do_index, Crystalline::Boolean.new, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('doIndex'), required: true } }
|
|
37
37
|
|
|
38
38
|
field :public_stats, Crystalline::Boolean.new, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('publicStats'), required: true } }
|
|
39
|
-
# The IDs of the webhooks that the short link is associated with.
|
|
40
|
-
field :webhook_ids, Crystalline::Array.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('webhookIds'), required: true } }
|
|
41
39
|
# The full URL of the short link, including the https protocol (e.g. `https://dub.sh/try`).
|
|
42
40
|
field :short_link, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('shortLink'), required: true } }
|
|
43
41
|
# The full URL of the QR code for the short link (e.g. `https://api.dub.co/qr?url=https://dub.sh/try`).
|
|
@@ -58,6 +56,10 @@ module OpenApiSDK
|
|
|
58
56
|
#
|
|
59
57
|
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
60
58
|
field :project_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('projectId'), required: true } }
|
|
59
|
+
# Deprecated: You can now enable link.clicked webhooks for all links in a workspace or folder without passing this field manually. An array of webhook IDs to trigger when the link is clicked. These webhooks will receive click event data.
|
|
60
|
+
#
|
|
61
|
+
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
62
|
+
field :webhook_ids, Crystalline::Array.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('webhookIds'), required: true } }
|
|
61
63
|
# The ID of the link in your database. If set, it can be used to identify the link in future API requests (must be prefixed with 'ext_' when passed as a query parameter). This key is unique across your workspace.
|
|
62
64
|
field :external_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('externalId'), required: true } }
|
|
63
65
|
# The ID of the tenant that created the link inside your system. If set, it can be used to fetch all links for a tenant.
|
|
@@ -119,8 +121,8 @@ module OpenApiSDK
|
|
|
119
121
|
# The total dollar value of sales (in cents) generated by the short link.
|
|
120
122
|
field :sale_amount, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('saleAmount') } }
|
|
121
123
|
|
|
122
|
-
sig { params(id: ::String, domain: ::String, key: ::String, url: ::String, track_conversion: T::Boolean, archived: T::Boolean, expires_at: ::String, disabled_at: ::String, proxy: T::Boolean, rewrite: T::Boolean, do_index: T::Boolean, public_stats: T::Boolean,
|
|
123
|
-
def initialize(id:, domain:, key:, url:, track_conversion:, archived:, expires_at:, disabled_at:, proxy:, rewrite:, do_index:, public_stats:,
|
|
124
|
+
sig { params(id: ::String, domain: ::String, key: ::String, url: ::String, track_conversion: T::Boolean, archived: T::Boolean, expires_at: ::String, disabled_at: ::String, proxy: T::Boolean, rewrite: T::Boolean, do_index: T::Boolean, public_stats: T::Boolean, short_link: ::String, qr_code: ::String, test_started_at: ::String, test_completed_at: ::String, workspace_id: ::String, last_clicked: ::String, created_at: ::String, updated_at: ::String, project_id: ::String, webhook_ids: T::Array[::String], external_id: T.nilable(::String), tenant_id: T.nilable(::String), program_id: T.nilable(::String), partner_id: T.nilable(::String), expired_url: T.nilable(::String), password: T.nilable(::String), title: T.nilable(::String), description: T.nilable(::String), image: T.nilable(::String), video: T.nilable(::String), ios: T.nilable(::String), android: T.nilable(::String), geo: T.nilable(T::Hash[Symbol, ::String]), tags: T.nilable(T::Array[Models::Shared::LinkTagSchemaOutput]), folder_id: T.nilable(::String), comments: T.nilable(::String), utm_source: T.nilable(::String), utm_medium: T.nilable(::String), utm_campaign: T.nilable(::String), utm_term: T.nilable(::String), utm_content: T.nilable(::String), user_id: T.nilable(::String), tag_id: T.nilable(::String), test_variants: T.nilable(T::Array[Models::Operations::ResponseBodyTestVariants]), clicks: T.nilable(::Float), leads: T.nilable(::Float), conversions: T.nilable(::Float), sales: T.nilable(::Float), sale_amount: T.nilable(::Float)).void }
|
|
125
|
+
def initialize(id:, domain:, key:, url:, track_conversion:, archived:, expires_at:, disabled_at:, proxy:, rewrite:, do_index:, public_stats:, short_link:, qr_code:, test_started_at:, test_completed_at:, workspace_id:, last_clicked:, created_at:, updated_at:, project_id:, webhook_ids:, external_id: nil, tenant_id: nil, program_id: nil, partner_id: nil, expired_url: nil, password: nil, title: nil, description: nil, image: nil, video: nil, ios: nil, android: nil, geo: nil, tags: nil, folder_id: nil, comments: nil, utm_source: nil, utm_medium: nil, utm_campaign: nil, utm_term: nil, utm_content: nil, user_id: nil, tag_id: nil, test_variants: nil, clicks: 0.0, leads: 0.0, conversions: 0.0, sales: 0.0, sale_amount: 0.0)
|
|
124
126
|
@id = id
|
|
125
127
|
@domain = domain
|
|
126
128
|
@key = key
|
|
@@ -133,7 +135,6 @@ module OpenApiSDK
|
|
|
133
135
|
@rewrite = rewrite
|
|
134
136
|
@do_index = do_index
|
|
135
137
|
@public_stats = public_stats
|
|
136
|
-
@webhook_ids = webhook_ids
|
|
137
138
|
@short_link = short_link
|
|
138
139
|
@qr_code = qr_code
|
|
139
140
|
@test_started_at = test_started_at
|
|
@@ -143,6 +144,7 @@ module OpenApiSDK
|
|
|
143
144
|
@created_at = created_at
|
|
144
145
|
@updated_at = updated_at
|
|
145
146
|
@project_id = project_id
|
|
147
|
+
@webhook_ids = webhook_ids
|
|
146
148
|
@external_id = external_id
|
|
147
149
|
@tenant_id = tenant_id
|
|
148
150
|
@program_id = program_id
|
|
@@ -189,7 +191,6 @@ module OpenApiSDK
|
|
|
189
191
|
return false unless @rewrite == other.rewrite
|
|
190
192
|
return false unless @do_index == other.do_index
|
|
191
193
|
return false unless @public_stats == other.public_stats
|
|
192
|
-
return false unless @webhook_ids == other.webhook_ids
|
|
193
194
|
return false unless @short_link == other.short_link
|
|
194
195
|
return false unless @qr_code == other.qr_code
|
|
195
196
|
return false unless @test_started_at == other.test_started_at
|
|
@@ -199,6 +200,7 @@ module OpenApiSDK
|
|
|
199
200
|
return false unless @created_at == other.created_at
|
|
200
201
|
return false unless @updated_at == other.updated_at
|
|
201
202
|
return false unless @project_id == other.project_id
|
|
203
|
+
return false unless @webhook_ids == other.webhook_ids
|
|
202
204
|
return false unless @external_id == other.external_id
|
|
203
205
|
return false unless @tenant_id == other.tenant_id
|
|
204
206
|
return false unless @program_id == other.program_id
|
|
@@ -32,8 +32,6 @@ class OpenApiSDK::Models::Operations::ListEventsResponseBodyEventsLink
|
|
|
32
32
|
def do_index=(str_); end
|
|
33
33
|
def public_stats(); end
|
|
34
34
|
def public_stats=(str_); end
|
|
35
|
-
def webhook_ids(); end
|
|
36
|
-
def webhook_ids=(str_); end
|
|
37
35
|
def short_link(); end
|
|
38
36
|
def short_link=(str_); end
|
|
39
37
|
def qr_code(); end
|
|
@@ -52,6 +50,8 @@ class OpenApiSDK::Models::Operations::ListEventsResponseBodyEventsLink
|
|
|
52
50
|
def updated_at=(str_); end
|
|
53
51
|
def project_id(); end
|
|
54
52
|
def project_id=(str_); end
|
|
53
|
+
def webhook_ids(); end
|
|
54
|
+
def webhook_ids=(str_); end
|
|
55
55
|
def external_id(); end
|
|
56
56
|
def external_id=(str_); end
|
|
57
57
|
def tenant_id(); end
|
|
@@ -36,8 +36,6 @@ module OpenApiSDK
|
|
|
36
36
|
field :do_index, Crystalline::Boolean.new, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('doIndex'), required: true } }
|
|
37
37
|
|
|
38
38
|
field :public_stats, Crystalline::Boolean.new, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('publicStats'), required: true } }
|
|
39
|
-
# The IDs of the webhooks that the short link is associated with.
|
|
40
|
-
field :webhook_ids, Crystalline::Array.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('webhookIds'), required: true } }
|
|
41
39
|
# The full URL of the short link, including the https protocol (e.g. `https://dub.sh/try`).
|
|
42
40
|
field :short_link, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('shortLink'), required: true } }
|
|
43
41
|
# The full URL of the QR code for the short link (e.g. `https://api.dub.co/qr?url=https://dub.sh/try`).
|
|
@@ -58,6 +56,10 @@ module OpenApiSDK
|
|
|
58
56
|
#
|
|
59
57
|
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
60
58
|
field :project_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('projectId'), required: true } }
|
|
59
|
+
# Deprecated: You can now enable link.clicked webhooks for all links in a workspace or folder without passing this field manually. An array of webhook IDs to trigger when the link is clicked. These webhooks will receive click event data.
|
|
60
|
+
#
|
|
61
|
+
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
62
|
+
field :webhook_ids, Crystalline::Array.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('webhookIds'), required: true } }
|
|
61
63
|
# The ID of the link in your database. If set, it can be used to identify the link in future API requests (must be prefixed with 'ext_' when passed as a query parameter). This key is unique across your workspace.
|
|
62
64
|
field :external_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('externalId'), required: true } }
|
|
63
65
|
# The ID of the tenant that created the link inside your system. If set, it can be used to fetch all links for a tenant.
|
|
@@ -119,8 +121,8 @@ module OpenApiSDK
|
|
|
119
121
|
# The total dollar value of sales (in cents) generated by the short link.
|
|
120
122
|
field :sale_amount, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('saleAmount') } }
|
|
121
123
|
|
|
122
|
-
sig { params(id: ::String, domain: ::String, key: ::String, url: ::String, track_conversion: T::Boolean, archived: T::Boolean, expires_at: ::String, disabled_at: ::String, proxy: T::Boolean, rewrite: T::Boolean, do_index: T::Boolean, public_stats: T::Boolean,
|
|
123
|
-
def initialize(id:, domain:, key:, url:, track_conversion:, archived:, expires_at:, disabled_at:, proxy:, rewrite:, do_index:, public_stats:,
|
|
124
|
+
sig { params(id: ::String, domain: ::String, key: ::String, url: ::String, track_conversion: T::Boolean, archived: T::Boolean, expires_at: ::String, disabled_at: ::String, proxy: T::Boolean, rewrite: T::Boolean, do_index: T::Boolean, public_stats: T::Boolean, short_link: ::String, qr_code: ::String, test_started_at: ::String, test_completed_at: ::String, workspace_id: ::String, last_clicked: ::String, created_at: ::String, updated_at: ::String, project_id: ::String, webhook_ids: T::Array[::String], external_id: T.nilable(::String), tenant_id: T.nilable(::String), program_id: T.nilable(::String), partner_id: T.nilable(::String), expired_url: T.nilable(::String), password: T.nilable(::String), title: T.nilable(::String), description: T.nilable(::String), image: T.nilable(::String), video: T.nilable(::String), ios: T.nilable(::String), android: T.nilable(::String), geo: T.nilable(T::Hash[Symbol, ::String]), tags: T.nilable(T::Array[Models::Shared::LinkTagSchemaOutput]), folder_id: T.nilable(::String), comments: T.nilable(::String), utm_source: T.nilable(::String), utm_medium: T.nilable(::String), utm_campaign: T.nilable(::String), utm_term: T.nilable(::String), utm_content: T.nilable(::String), user_id: T.nilable(::String), tag_id: T.nilable(::String), test_variants: T.nilable(T::Array[Models::Operations::ListEventsResponseBodyEventsTestVariants]), clicks: T.nilable(::Float), leads: T.nilable(::Float), conversions: T.nilable(::Float), sales: T.nilable(::Float), sale_amount: T.nilable(::Float)).void }
|
|
125
|
+
def initialize(id:, domain:, key:, url:, track_conversion:, archived:, expires_at:, disabled_at:, proxy:, rewrite:, do_index:, public_stats:, short_link:, qr_code:, test_started_at:, test_completed_at:, workspace_id:, last_clicked:, created_at:, updated_at:, project_id:, webhook_ids:, external_id: nil, tenant_id: nil, program_id: nil, partner_id: nil, expired_url: nil, password: nil, title: nil, description: nil, image: nil, video: nil, ios: nil, android: nil, geo: nil, tags: nil, folder_id: nil, comments: nil, utm_source: nil, utm_medium: nil, utm_campaign: nil, utm_term: nil, utm_content: nil, user_id: nil, tag_id: nil, test_variants: nil, clicks: 0.0, leads: 0.0, conversions: 0.0, sales: 0.0, sale_amount: 0.0)
|
|
124
126
|
@id = id
|
|
125
127
|
@domain = domain
|
|
126
128
|
@key = key
|
|
@@ -133,7 +135,6 @@ module OpenApiSDK
|
|
|
133
135
|
@rewrite = rewrite
|
|
134
136
|
@do_index = do_index
|
|
135
137
|
@public_stats = public_stats
|
|
136
|
-
@webhook_ids = webhook_ids
|
|
137
138
|
@short_link = short_link
|
|
138
139
|
@qr_code = qr_code
|
|
139
140
|
@test_started_at = test_started_at
|
|
@@ -143,6 +144,7 @@ module OpenApiSDK
|
|
|
143
144
|
@created_at = created_at
|
|
144
145
|
@updated_at = updated_at
|
|
145
146
|
@project_id = project_id
|
|
147
|
+
@webhook_ids = webhook_ids
|
|
146
148
|
@external_id = external_id
|
|
147
149
|
@tenant_id = tenant_id
|
|
148
150
|
@program_id = program_id
|
|
@@ -189,7 +191,6 @@ module OpenApiSDK
|
|
|
189
191
|
return false unless @rewrite == other.rewrite
|
|
190
192
|
return false unless @do_index == other.do_index
|
|
191
193
|
return false unless @public_stats == other.public_stats
|
|
192
|
-
return false unless @webhook_ids == other.webhook_ids
|
|
193
194
|
return false unless @short_link == other.short_link
|
|
194
195
|
return false unless @qr_code == other.qr_code
|
|
195
196
|
return false unless @test_started_at == other.test_started_at
|
|
@@ -199,6 +200,7 @@ module OpenApiSDK
|
|
|
199
200
|
return false unless @created_at == other.created_at
|
|
200
201
|
return false unless @updated_at == other.updated_at
|
|
201
202
|
return false unless @project_id == other.project_id
|
|
203
|
+
return false unless @webhook_ids == other.webhook_ids
|
|
202
204
|
return false unless @external_id == other.external_id
|
|
203
205
|
return false unless @tenant_id == other.tenant_id
|
|
204
206
|
return false unless @program_id == other.program_id
|
|
@@ -32,8 +32,6 @@ class OpenApiSDK::Models::Operations::ListEventsResponseBodyLink
|
|
|
32
32
|
def do_index=(str_); end
|
|
33
33
|
def public_stats(); end
|
|
34
34
|
def public_stats=(str_); end
|
|
35
|
-
def webhook_ids(); end
|
|
36
|
-
def webhook_ids=(str_); end
|
|
37
35
|
def short_link(); end
|
|
38
36
|
def short_link=(str_); end
|
|
39
37
|
def qr_code(); end
|
|
@@ -52,6 +50,8 @@ class OpenApiSDK::Models::Operations::ListEventsResponseBodyLink
|
|
|
52
50
|
def updated_at=(str_); end
|
|
53
51
|
def project_id(); end
|
|
54
52
|
def project_id=(str_); end
|
|
53
|
+
def webhook_ids(); end
|
|
54
|
+
def webhook_ids=(str_); end
|
|
55
55
|
def external_id(); end
|
|
56
56
|
def external_id=(str_); end
|
|
57
57
|
def tenant_id(); end
|
|
@@ -20,6 +20,8 @@ module OpenApiSDK
|
|
|
20
20
|
field :tenant_id, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'tenantId', 'style': 'form', 'explode': true } }
|
|
21
21
|
# Filter the list of payouts by invoice ID (the unique ID of the invoice you receive for each batch payout you process on Dub). Pending payouts will not have an invoice ID.
|
|
22
22
|
field :invoice_id, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'invoiceId', 'style': 'form', 'explode': true } }
|
|
23
|
+
# Filter the list of payouts by the associated partner group. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `group_abc`, `group_abc,group_xyz`, `-group_abc`.
|
|
24
|
+
field :group_id, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'groupId', 'style': 'form', 'explode': true } }
|
|
23
25
|
# The page number for pagination.
|
|
24
26
|
field :page, Crystalline::Nilable.new(::Float), { 'query_param': { 'field_name': 'page', 'style': 'form', 'explode': true } }
|
|
25
27
|
# The field to sort the list of payouts by.
|
|
@@ -29,12 +31,13 @@ module OpenApiSDK
|
|
|
29
31
|
# The number of items per page.
|
|
30
32
|
field :page_size, Crystalline::Nilable.new(::Float), { 'query_param': { 'field_name': 'pageSize', 'style': 'form', 'explode': true } }
|
|
31
33
|
|
|
32
|
-
sig { params(status: T.nilable(Models::Operations::ListPayoutsQueryParamStatus), partner_id: T.nilable(::String), tenant_id: T.nilable(::String), invoice_id: T.nilable(::String), page: T.nilable(::Float), sort_by: T.nilable(Models::Operations::ListPayoutsQueryParamSortBy), sort_order: T.nilable(Models::Operations::ListPayoutsQueryParamSortOrder), page_size: T.nilable(::Float)).void }
|
|
33
|
-
def initialize(status: nil, partner_id: nil, tenant_id: nil, invoice_id: nil, page: nil, sort_by: Models::Operations::ListPayoutsQueryParamSortBy::AMOUNT, sort_order: Models::Operations::ListPayoutsQueryParamSortOrder::DESC, page_size: 100.0)
|
|
34
|
+
sig { params(status: T.nilable(Models::Operations::ListPayoutsQueryParamStatus), partner_id: T.nilable(::String), tenant_id: T.nilable(::String), invoice_id: T.nilable(::String), group_id: T.nilable(::String), page: T.nilable(::Float), sort_by: T.nilable(Models::Operations::ListPayoutsQueryParamSortBy), sort_order: T.nilable(Models::Operations::ListPayoutsQueryParamSortOrder), page_size: T.nilable(::Float)).void }
|
|
35
|
+
def initialize(status: nil, partner_id: nil, tenant_id: nil, invoice_id: nil, group_id: nil, page: nil, sort_by: Models::Operations::ListPayoutsQueryParamSortBy::AMOUNT, sort_order: Models::Operations::ListPayoutsQueryParamSortOrder::DESC, page_size: 100.0)
|
|
34
36
|
@status = status
|
|
35
37
|
@partner_id = partner_id
|
|
36
38
|
@tenant_id = tenant_id
|
|
37
39
|
@invoice_id = invoice_id
|
|
40
|
+
@group_id = group_id
|
|
38
41
|
@page = page
|
|
39
42
|
@sort_by = sort_by
|
|
40
43
|
@sort_order = sort_order
|
|
@@ -48,6 +51,7 @@ module OpenApiSDK
|
|
|
48
51
|
return false unless @partner_id == other.partner_id
|
|
49
52
|
return false unless @tenant_id == other.tenant_id
|
|
50
53
|
return false unless @invoice_id == other.invoice_id
|
|
54
|
+
return false unless @group_id == other.group_id
|
|
51
55
|
return false unless @page == other.page
|
|
52
56
|
return false unless @sort_by == other.sort_by
|
|
53
57
|
return false unless @sort_order == other.sort_order
|
|
@@ -0,0 +1,36 @@
|
|
|
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 Models
|
|
9
|
+
module Operations
|
|
10
|
+
# Price details for the domain. Will be null if the domain is not available.
|
|
11
|
+
class Prices
|
|
12
|
+
extend T::Sig
|
|
13
|
+
include Crystalline::MetadataFields
|
|
14
|
+
|
|
15
|
+
# The domain's registration price in USD cents.
|
|
16
|
+
field :registration, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('registration'), required: true } }
|
|
17
|
+
# The domain's renewal price in USD cents.
|
|
18
|
+
field :renewal, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('renewal'), required: true } }
|
|
19
|
+
|
|
20
|
+
sig { params(registration: T.nilable(::Float), renewal: T.nilable(::Float)).void }
|
|
21
|
+
def initialize(registration: nil, renewal: nil)
|
|
22
|
+
@registration = registration
|
|
23
|
+
@renewal = renewal
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
27
|
+
def ==(other)
|
|
28
|
+
return false unless other.is_a? self.class
|
|
29
|
+
return false unless @registration == other.registration
|
|
30
|
+
return false unless @renewal == other.renewal
|
|
31
|
+
true
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class OpenApiSDK::Models::Operations::Prices
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class OpenApiSDK::Models::Operations::Prices
|
|
11
|
+
def registration(); end
|
|
12
|
+
def registration=(str_); end
|
|
13
|
+
def renewal(); end
|
|
14
|
+
def renewal=(str_); end
|
|
15
|
+
end
|
|
@@ -84,8 +84,6 @@ module OpenApiSDK
|
|
|
84
84
|
field :utm_content, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('utm_content') } }
|
|
85
85
|
# The referral tag of the short link. If set, this will populate or override the `ref` query parameter in the destination URL.
|
|
86
86
|
field :ref, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('ref') } }
|
|
87
|
-
# An array of webhook IDs to trigger when the link is clicked. These webhooks will receive click event data.
|
|
88
|
-
field :webhook_ids, Crystalline::Nilable.new(Crystalline::Array.new(::String)), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('webhookIds') } }
|
|
89
87
|
# An array of A/B test URLs and the percentage of traffic to send to each URL.
|
|
90
88
|
field :test_variants, Crystalline::Nilable.new(Crystalline::Array.new(Models::Operations::BulkCreateLinksTestVariants)), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('testVariants') } }
|
|
91
89
|
# The date and time when the tests started.
|
|
@@ -96,9 +94,13 @@ module OpenApiSDK
|
|
|
96
94
|
#
|
|
97
95
|
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
98
96
|
field :tag_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('tagId') } }
|
|
97
|
+
# Deprecated: You can now enable link.clicked webhooks for all links in a workspace or folder without passing this field manually. An array of webhook IDs to trigger when the link is clicked. These webhooks will receive click event data.
|
|
98
|
+
#
|
|
99
|
+
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
100
|
+
field :webhook_ids, Crystalline::Nilable.new(Crystalline::Array.new(::String)), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('webhookIds') } }
|
|
99
101
|
|
|
100
|
-
sig { params(url: ::String, domain: T.nilable(::String), key: T.nilable(::String), key_length: T.nilable(::Float), prefix: T.nilable(::String), track_conversion: T.nilable(T::Boolean), archived: T.nilable(T::Boolean), tag_ids: T.nilable(T.any(::String, T::Array[::String])), tag_names: T.nilable(T.any(::String, T::Array[::String])), proxy: T.nilable(T::Boolean), rewrite: T.nilable(T::Boolean), do_index: T.nilable(T::Boolean), public_stats: T.nilable(T::Boolean), external_id: T.nilable(::String), tenant_id: T.nilable(::String), program_id: T.nilable(::String), partner_id: T.nilable(::String), folder_id: T.nilable(::String), comments: T.nilable(::String), expires_at: T.nilable(::String), expired_url: T.nilable(::String), password: T.nilable(::String), title: T.nilable(::String), description: T.nilable(::String), image: T.nilable(::String), video: T.nilable(::String), ios: T.nilable(::String), android: T.nilable(::String), geo: T.nilable(T::Hash[Symbol, ::String]), utm_source: T.nilable(::String), utm_medium: T.nilable(::String), utm_campaign: T.nilable(::String), utm_term: T.nilable(::String), utm_content: T.nilable(::String), ref: T.nilable(::String),
|
|
101
|
-
def initialize(url:, domain: nil, key: nil, key_length: nil, prefix: nil, track_conversion: nil, archived: nil, tag_ids: nil, tag_names: nil, proxy: nil, rewrite: nil, do_index: nil, public_stats: nil, external_id: nil, tenant_id: nil, program_id: nil, partner_id: nil, folder_id: nil, comments: nil, expires_at: nil, expired_url: nil, password: nil, title: nil, description: nil, image: nil, video: nil, ios: nil, android: nil, geo: nil, utm_source: nil, utm_medium: nil, utm_campaign: nil, utm_term: nil, utm_content: nil, ref: nil,
|
|
102
|
+
sig { params(url: ::String, domain: T.nilable(::String), key: T.nilable(::String), key_length: T.nilable(::Float), prefix: T.nilable(::String), track_conversion: T.nilable(T::Boolean), archived: T.nilable(T::Boolean), tag_ids: T.nilable(T.any(::String, T::Array[::String])), tag_names: T.nilable(T.any(::String, T::Array[::String])), proxy: T.nilable(T::Boolean), rewrite: T.nilable(T::Boolean), do_index: T.nilable(T::Boolean), public_stats: T.nilable(T::Boolean), external_id: T.nilable(::String), tenant_id: T.nilable(::String), program_id: T.nilable(::String), partner_id: T.nilable(::String), folder_id: T.nilable(::String), comments: T.nilable(::String), expires_at: T.nilable(::String), expired_url: T.nilable(::String), password: T.nilable(::String), title: T.nilable(::String), description: T.nilable(::String), image: T.nilable(::String), video: T.nilable(::String), ios: T.nilable(::String), android: T.nilable(::String), geo: T.nilable(T::Hash[Symbol, ::String]), utm_source: T.nilable(::String), utm_medium: T.nilable(::String), utm_campaign: T.nilable(::String), utm_term: T.nilable(::String), utm_content: T.nilable(::String), ref: T.nilable(::String), test_variants: T.nilable(T::Array[Models::Operations::BulkCreateLinksTestVariants]), test_started_at: T.nilable(::String), test_completed_at: T.nilable(::String), tag_id: T.nilable(::String), webhook_ids: T.nilable(T::Array[::String])).void }
|
|
103
|
+
def initialize(url:, domain: nil, key: nil, key_length: nil, prefix: nil, track_conversion: nil, archived: nil, tag_ids: nil, tag_names: nil, proxy: nil, rewrite: nil, do_index: nil, public_stats: nil, external_id: nil, tenant_id: nil, program_id: nil, partner_id: nil, folder_id: nil, comments: nil, expires_at: nil, expired_url: nil, password: nil, title: nil, description: nil, image: nil, video: nil, ios: nil, android: nil, geo: nil, utm_source: nil, utm_medium: nil, utm_campaign: nil, utm_term: nil, utm_content: nil, ref: nil, test_variants: nil, test_started_at: nil, test_completed_at: nil, tag_id: nil, webhook_ids: nil)
|
|
102
104
|
@url = url
|
|
103
105
|
@domain = domain
|
|
104
106
|
@key = key
|
|
@@ -134,11 +136,11 @@ module OpenApiSDK
|
|
|
134
136
|
@utm_term = utm_term
|
|
135
137
|
@utm_content = utm_content
|
|
136
138
|
@ref = ref
|
|
137
|
-
@webhook_ids = webhook_ids
|
|
138
139
|
@test_variants = test_variants
|
|
139
140
|
@test_started_at = test_started_at
|
|
140
141
|
@test_completed_at = test_completed_at
|
|
141
142
|
@tag_id = tag_id
|
|
143
|
+
@webhook_ids = webhook_ids
|
|
142
144
|
end
|
|
143
145
|
|
|
144
146
|
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
@@ -179,11 +181,11 @@ module OpenApiSDK
|
|
|
179
181
|
return false unless @utm_term == other.utm_term
|
|
180
182
|
return false unless @utm_content == other.utm_content
|
|
181
183
|
return false unless @ref == other.ref
|
|
182
|
-
return false unless @webhook_ids == other.webhook_ids
|
|
183
184
|
return false unless @test_variants == other.test_variants
|
|
184
185
|
return false unless @test_started_at == other.test_started_at
|
|
185
186
|
return false unless @test_completed_at == other.test_completed_at
|
|
186
187
|
return false unless @tag_id == other.tag_id
|
|
188
|
+
return false unless @webhook_ids == other.webhook_ids
|
|
187
189
|
true
|
|
188
190
|
end
|
|
189
191
|
end
|
|
@@ -78,8 +78,6 @@ class OpenApiSDK::Models::Operations::RequestBody
|
|
|
78
78
|
def utm_content=(str_); end
|
|
79
79
|
def ref(); end
|
|
80
80
|
def ref=(str_); end
|
|
81
|
-
def webhook_ids(); end
|
|
82
|
-
def webhook_ids=(str_); end
|
|
83
81
|
def test_variants(); end
|
|
84
82
|
def test_variants=(str_); end
|
|
85
83
|
def test_started_at(); end
|
|
@@ -88,4 +86,6 @@ class OpenApiSDK::Models::Operations::RequestBody
|
|
|
88
86
|
def test_completed_at=(str_); end
|
|
89
87
|
def tag_id(); end
|
|
90
88
|
def tag_id=(str_); end
|
|
89
|
+
def webhook_ids(); end
|
|
90
|
+
def webhook_ids=(str_); end
|
|
91
91
|
end
|
|
@@ -41,10 +41,12 @@ module OpenApiSDK
|
|
|
41
41
|
|
|
42
42
|
field :ip, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('ip'), required: true } }
|
|
43
43
|
|
|
44
|
+
field :ua, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('ua') } }
|
|
45
|
+
|
|
44
46
|
field :trigger, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('trigger') } }
|
|
45
47
|
|
|
46
|
-
sig { params(id: ::String, timestamp: ::String, url: ::String, country: ::String, city: ::String, region: ::String, continent: ::String, device: ::String, browser: ::String, os: ::String, referer: ::String, referer_url: ::String, qr: T::Boolean, ip: ::String, trigger: T.nilable(::String)).void }
|
|
47
|
-
def initialize(id:, timestamp:, url:, country:, city:, region:, continent:, device:, browser:, os:, referer:, referer_url:, qr:, ip:, trigger: nil)
|
|
48
|
+
sig { params(id: ::String, timestamp: ::String, url: ::String, country: ::String, city: ::String, region: ::String, continent: ::String, device: ::String, browser: ::String, os: ::String, referer: ::String, referer_url: ::String, qr: T::Boolean, ip: ::String, ua: T.nilable(::String), trigger: T.nilable(::String)).void }
|
|
49
|
+
def initialize(id:, timestamp:, url:, country:, city:, region:, continent:, device:, browser:, os:, referer:, referer_url:, qr:, ip:, ua: nil, trigger: nil)
|
|
48
50
|
@id = id
|
|
49
51
|
@timestamp = timestamp
|
|
50
52
|
@url = url
|
|
@@ -59,6 +61,7 @@ module OpenApiSDK
|
|
|
59
61
|
@referer_url = referer_url
|
|
60
62
|
@qr = qr
|
|
61
63
|
@ip = ip
|
|
64
|
+
@ua = ua
|
|
62
65
|
@trigger = trigger
|
|
63
66
|
end
|
|
64
67
|
|
|
@@ -79,6 +82,7 @@ module OpenApiSDK
|
|
|
79
82
|
return false unless @referer_url == other.referer_url
|
|
80
83
|
return false unless @qr == other.qr
|
|
81
84
|
return false unless @ip == other.ip
|
|
85
|
+
return false unless @ua == other.ua
|
|
82
86
|
return false unless @trigger == other.trigger
|
|
83
87
|
true
|
|
84
88
|
end
|