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
|
@@ -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::LinkTagSchema]), 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::Shared::LinkClickedEventTestVariants]), 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::Shared::Link
|
|
|
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::Shared::Link
|
|
|
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,8 +20,6 @@ module OpenApiSDK
|
|
|
20
20
|
field :key, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('key'), required: true } }
|
|
21
21
|
# The destination URL of the short link.
|
|
22
22
|
field :url, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('url'), required: true } }
|
|
23
|
-
# The IDs of the webhooks that the short link is associated with.
|
|
24
|
-
field :webhook_ids, Crystalline::Array.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('webhookIds'), required: true } }
|
|
25
23
|
# The full URL of the short link, including the https protocol (e.g. `https://dub.sh/try`).
|
|
26
24
|
field :short_link, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('shortLink'), required: true } }
|
|
27
25
|
# The full URL of the QR code for the short link (e.g. `https://api.dub.co/qr?url=https://dub.sh/try`).
|
|
@@ -36,6 +34,10 @@ module OpenApiSDK
|
|
|
36
34
|
#
|
|
37
35
|
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
38
36
|
field :project_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('projectId'), required: true } }
|
|
37
|
+
# 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.
|
|
38
|
+
#
|
|
39
|
+
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
40
|
+
field :webhook_ids, Crystalline::Array.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('webhookIds'), required: true } }
|
|
39
41
|
# 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.
|
|
40
42
|
field :external_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('externalId'), required: true } }
|
|
41
43
|
# 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,19 +121,19 @@ 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,
|
|
123
|
-
def initialize(id:, domain:, key:, url:,
|
|
124
|
+
sig { params(id: ::String, domain: ::String, key: ::String, url: ::String, short_link: ::String, qr_code: ::String, workspace_id: ::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), expires_at: T.nilable(::String), expired_url: T.nilable(::String), disabled_at: 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), last_clicked: T.nilable(::String), tag_id: T.nilable(::String), track_conversion: T.nilable(T::Boolean), archived: T.nilable(T::Boolean), proxy: T.nilable(T::Boolean), rewrite: T.nilable(T::Boolean), do_index: T.nilable(T::Boolean), public_stats: T.nilable(T::Boolean), test_variants: T.nilable(T::Array[Models::Shared::TestVariants]), test_started_at: T.nilable(::String), test_completed_at: T.nilable(::String), 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:, short_link:, qr_code:, workspace_id:, created_at:, updated_at:, project_id:, webhook_ids:, external_id: nil, tenant_id: nil, program_id: nil, partner_id: nil, expires_at: nil, expired_url: nil, disabled_at: 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, last_clicked: nil, tag_id: nil, track_conversion: false, archived: false, proxy: false, rewrite: false, do_index: false, public_stats: false, test_variants: nil, test_started_at: nil, test_completed_at: 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
|
|
127
129
|
@url = url
|
|
128
|
-
@webhook_ids = webhook_ids
|
|
129
130
|
@short_link = short_link
|
|
130
131
|
@qr_code = qr_code
|
|
131
132
|
@workspace_id = workspace_id
|
|
132
133
|
@created_at = created_at
|
|
133
134
|
@updated_at = updated_at
|
|
134
135
|
@project_id = project_id
|
|
136
|
+
@webhook_ids = webhook_ids
|
|
135
137
|
@external_id = external_id
|
|
136
138
|
@tenant_id = tenant_id
|
|
137
139
|
@program_id = program_id
|
|
@@ -181,13 +183,13 @@ module OpenApiSDK
|
|
|
181
183
|
return false unless @domain == other.domain
|
|
182
184
|
return false unless @key == other.key
|
|
183
185
|
return false unless @url == other.url
|
|
184
|
-
return false unless @webhook_ids == other.webhook_ids
|
|
185
186
|
return false unless @short_link == other.short_link
|
|
186
187
|
return false unless @qr_code == other.qr_code
|
|
187
188
|
return false unless @workspace_id == other.workspace_id
|
|
188
189
|
return false unless @created_at == other.created_at
|
|
189
190
|
return false unless @updated_at == other.updated_at
|
|
190
191
|
return false unless @project_id == other.project_id
|
|
192
|
+
return false unless @webhook_ids == other.webhook_ids
|
|
191
193
|
return false unless @external_id == other.external_id
|
|
192
194
|
return false unless @tenant_id == other.tenant_id
|
|
193
195
|
return false unless @program_id == other.program_id
|
|
@@ -16,8 +16,6 @@ class OpenApiSDK::Models::Shared::LinkSchema
|
|
|
16
16
|
def key=(str_); end
|
|
17
17
|
def url(); end
|
|
18
18
|
def url=(str_); end
|
|
19
|
-
def webhook_ids(); end
|
|
20
|
-
def webhook_ids=(str_); end
|
|
21
19
|
def short_link(); end
|
|
22
20
|
def short_link=(str_); end
|
|
23
21
|
def qr_code(); end
|
|
@@ -30,6 +28,8 @@ class OpenApiSDK::Models::Shared::LinkSchema
|
|
|
30
28
|
def updated_at=(str_); end
|
|
31
29
|
def project_id(); end
|
|
32
30
|
def project_id=(str_); end
|
|
31
|
+
def webhook_ids(); end
|
|
32
|
+
def webhook_ids=(str_); end
|
|
33
33
|
def external_id(); end
|
|
34
34
|
def external_id=(str_); end
|
|
35
35
|
def tenant_id(); 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::LinkTagSchema]), 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::Shared::SaleCreatedEventTestVariants]), 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::Shared::SaleCreatedEventLink
|
|
|
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::Shared::SaleCreatedEventLink
|
|
|
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
|
|
@@ -58,7 +58,7 @@ module OpenApiSDK
|
|
|
58
58
|
|
|
59
59
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
60
60
|
timeout ||= @sdk_configuration.timeout
|
|
61
|
-
|
|
61
|
+
|
|
62
62
|
|
|
63
63
|
connection = @sdk_configuration.client
|
|
64
64
|
|
|
@@ -73,7 +73,7 @@ module OpenApiSDK
|
|
|
73
73
|
error = T.let(nil, T.nilable(StandardError))
|
|
74
74
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
75
75
|
|
|
76
|
-
|
|
76
|
+
|
|
77
77
|
begin
|
|
78
78
|
http_response = T.must(connection).get(url) do |req|
|
|
79
79
|
req.headers.merge!(headers)
|
|
@@ -110,13 +110,13 @@ module OpenApiSDK
|
|
|
110
110
|
response: http_response
|
|
111
111
|
)
|
|
112
112
|
end
|
|
113
|
-
|
|
113
|
+
|
|
114
114
|
if http_response.nil?
|
|
115
115
|
raise error if !error.nil?
|
|
116
116
|
raise 'no response'
|
|
117
117
|
end
|
|
118
118
|
end
|
|
119
|
-
|
|
119
|
+
|
|
120
120
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
121
121
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
122
122
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -297,7 +297,7 @@ module OpenApiSDK
|
|
|
297
297
|
|
|
298
298
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
299
299
|
timeout ||= @sdk_configuration.timeout
|
|
300
|
-
|
|
300
|
+
|
|
301
301
|
|
|
302
302
|
connection = @sdk_configuration.client
|
|
303
303
|
|
|
@@ -312,7 +312,7 @@ module OpenApiSDK
|
|
|
312
312
|
error = T.let(nil, T.nilable(StandardError))
|
|
313
313
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
314
314
|
|
|
315
|
-
|
|
315
|
+
|
|
316
316
|
begin
|
|
317
317
|
http_response = T.must(connection).post(url) do |req|
|
|
318
318
|
req.body = body
|
|
@@ -349,13 +349,13 @@ module OpenApiSDK
|
|
|
349
349
|
response: http_response
|
|
350
350
|
)
|
|
351
351
|
end
|
|
352
|
-
|
|
352
|
+
|
|
353
353
|
if http_response.nil?
|
|
354
354
|
raise error if !error.nil?
|
|
355
355
|
raise 'no response'
|
|
356
356
|
end
|
|
357
357
|
end
|
|
358
|
-
|
|
358
|
+
|
|
359
359
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
360
360
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
361
361
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -536,7 +536,7 @@ module OpenApiSDK
|
|
|
536
536
|
|
|
537
537
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
538
538
|
timeout ||= @sdk_configuration.timeout
|
|
539
|
-
|
|
539
|
+
|
|
540
540
|
|
|
541
541
|
connection = @sdk_configuration.client
|
|
542
542
|
|
|
@@ -551,7 +551,7 @@ module OpenApiSDK
|
|
|
551
551
|
error = T.let(nil, T.nilable(StandardError))
|
|
552
552
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
553
553
|
|
|
554
|
-
|
|
554
|
+
|
|
555
555
|
begin
|
|
556
556
|
http_response = T.must(connection).post(url) do |req|
|
|
557
557
|
req.body = body
|
|
@@ -588,13 +588,13 @@ module OpenApiSDK
|
|
|
588
588
|
response: http_response
|
|
589
589
|
)
|
|
590
590
|
end
|
|
591
|
-
|
|
591
|
+
|
|
592
592
|
if http_response.nil?
|
|
593
593
|
raise error if !error.nil?
|
|
594
594
|
raise 'no response'
|
|
595
595
|
end
|
|
596
596
|
end
|
|
597
|
-
|
|
597
|
+
|
|
598
598
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
599
599
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
600
600
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -58,7 +58,7 @@ module OpenApiSDK
|
|
|
58
58
|
|
|
59
59
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
60
60
|
timeout ||= @sdk_configuration.timeout
|
|
61
|
-
|
|
61
|
+
|
|
62
62
|
|
|
63
63
|
connection = @sdk_configuration.client
|
|
64
64
|
|
|
@@ -73,7 +73,7 @@ module OpenApiSDK
|
|
|
73
73
|
error = T.let(nil, T.nilable(StandardError))
|
|
74
74
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
75
75
|
|
|
76
|
-
|
|
76
|
+
|
|
77
77
|
begin
|
|
78
78
|
http_response = T.must(connection).get(url) do |req|
|
|
79
79
|
req.headers.merge!(headers)
|
|
@@ -110,13 +110,13 @@ module OpenApiSDK
|
|
|
110
110
|
response: http_response
|
|
111
111
|
)
|
|
112
112
|
end
|
|
113
|
-
|
|
113
|
+
|
|
114
114
|
if http_response.nil?
|
|
115
115
|
raise error if !error.nil?
|
|
116
116
|
raise 'no response'
|
|
117
117
|
end
|
|
118
118
|
end
|
|
119
|
-
|
|
119
|
+
|
|
120
120
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
121
121
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
122
122
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -296,7 +296,7 @@ module OpenApiSDK
|
|
|
296
296
|
|
|
297
297
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
298
298
|
timeout ||= @sdk_configuration.timeout
|
|
299
|
-
|
|
299
|
+
|
|
300
300
|
|
|
301
301
|
connection = @sdk_configuration.client
|
|
302
302
|
|
|
@@ -311,7 +311,7 @@ module OpenApiSDK
|
|
|
311
311
|
error = T.let(nil, T.nilable(StandardError))
|
|
312
312
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
313
313
|
|
|
314
|
-
|
|
314
|
+
|
|
315
315
|
begin
|
|
316
316
|
http_response = T.must(connection).post(url) do |req|
|
|
317
317
|
req.body = body
|
|
@@ -348,13 +348,13 @@ module OpenApiSDK
|
|
|
348
348
|
response: http_response
|
|
349
349
|
)
|
|
350
350
|
end
|
|
351
|
-
|
|
351
|
+
|
|
352
352
|
if http_response.nil?
|
|
353
353
|
raise error if !error.nil?
|
|
354
354
|
raise 'no response'
|
|
355
355
|
end
|
|
356
356
|
end
|
|
357
|
-
|
|
357
|
+
|
|
358
358
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
359
359
|
if Utils.match_status_code(http_response.status, ['201'])
|
|
360
360
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -525,7 +525,7 @@ module OpenApiSDK
|
|
|
525
525
|
|
|
526
526
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
527
527
|
timeout ||= @sdk_configuration.timeout
|
|
528
|
-
|
|
528
|
+
|
|
529
529
|
|
|
530
530
|
connection = @sdk_configuration.client
|
|
531
531
|
|
|
@@ -540,7 +540,7 @@ module OpenApiSDK
|
|
|
540
540
|
error = T.let(nil, T.nilable(StandardError))
|
|
541
541
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
542
542
|
|
|
543
|
-
|
|
543
|
+
|
|
544
544
|
begin
|
|
545
545
|
http_response = T.must(connection).get(url) do |req|
|
|
546
546
|
req.headers.merge!(headers)
|
|
@@ -577,13 +577,13 @@ module OpenApiSDK
|
|
|
577
577
|
response: http_response
|
|
578
578
|
)
|
|
579
579
|
end
|
|
580
|
-
|
|
580
|
+
|
|
581
581
|
if http_response.nil?
|
|
582
582
|
raise error if !error.nil?
|
|
583
583
|
raise 'no response'
|
|
584
584
|
end
|
|
585
585
|
end
|
|
586
|
-
|
|
586
|
+
|
|
587
587
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
588
588
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
589
589
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -763,7 +763,7 @@ module OpenApiSDK
|
|
|
763
763
|
|
|
764
764
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
765
765
|
timeout ||= @sdk_configuration.timeout
|
|
766
|
-
|
|
766
|
+
|
|
767
767
|
|
|
768
768
|
connection = @sdk_configuration.client
|
|
769
769
|
|
|
@@ -778,7 +778,7 @@ module OpenApiSDK
|
|
|
778
778
|
error = T.let(nil, T.nilable(StandardError))
|
|
779
779
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
780
780
|
|
|
781
|
-
|
|
781
|
+
|
|
782
782
|
begin
|
|
783
783
|
http_response = T.must(connection).post(url) do |req|
|
|
784
784
|
req.body = body
|
|
@@ -815,13 +815,13 @@ module OpenApiSDK
|
|
|
815
815
|
response: http_response
|
|
816
816
|
)
|
|
817
817
|
end
|
|
818
|
-
|
|
818
|
+
|
|
819
819
|
if http_response.nil?
|
|
820
820
|
raise error if !error.nil?
|
|
821
821
|
raise 'no response'
|
|
822
822
|
end
|
|
823
823
|
end
|
|
824
|
-
|
|
824
|
+
|
|
825
825
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
826
826
|
if Utils.match_status_code(http_response.status, ['201'])
|
|
827
827
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -1001,7 +1001,7 @@ module OpenApiSDK
|
|
|
1001
1001
|
|
|
1002
1002
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
1003
1003
|
timeout ||= @sdk_configuration.timeout
|
|
1004
|
-
|
|
1004
|
+
|
|
1005
1005
|
|
|
1006
1006
|
connection = @sdk_configuration.client
|
|
1007
1007
|
|
|
@@ -1016,7 +1016,7 @@ module OpenApiSDK
|
|
|
1016
1016
|
error = T.let(nil, T.nilable(StandardError))
|
|
1017
1017
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
1018
1018
|
|
|
1019
|
-
|
|
1019
|
+
|
|
1020
1020
|
begin
|
|
1021
1021
|
http_response = T.must(connection).put(url) do |req|
|
|
1022
1022
|
req.body = body
|
|
@@ -1053,13 +1053,13 @@ module OpenApiSDK
|
|
|
1053
1053
|
response: http_response
|
|
1054
1054
|
)
|
|
1055
1055
|
end
|
|
1056
|
-
|
|
1056
|
+
|
|
1057
1057
|
if http_response.nil?
|
|
1058
1058
|
raise error if !error.nil?
|
|
1059
1059
|
raise 'no response'
|
|
1060
1060
|
end
|
|
1061
1061
|
end
|
|
1062
|
-
|
|
1062
|
+
|
|
1063
1063
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
1064
1064
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
1065
1065
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -1230,7 +1230,7 @@ module OpenApiSDK
|
|
|
1230
1230
|
|
|
1231
1231
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
1232
1232
|
timeout ||= @sdk_configuration.timeout
|
|
1233
|
-
|
|
1233
|
+
|
|
1234
1234
|
|
|
1235
1235
|
connection = @sdk_configuration.client
|
|
1236
1236
|
|
|
@@ -1245,7 +1245,7 @@ module OpenApiSDK
|
|
|
1245
1245
|
error = T.let(nil, T.nilable(StandardError))
|
|
1246
1246
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
1247
1247
|
|
|
1248
|
-
|
|
1248
|
+
|
|
1249
1249
|
begin
|
|
1250
1250
|
http_response = T.must(connection).get(url) do |req|
|
|
1251
1251
|
req.headers.merge!(headers)
|
|
@@ -1282,13 +1282,13 @@ module OpenApiSDK
|
|
|
1282
1282
|
response: http_response
|
|
1283
1283
|
)
|
|
1284
1284
|
end
|
|
1285
|
-
|
|
1285
|
+
|
|
1286
1286
|
if http_response.nil?
|
|
1287
1287
|
raise error if !error.nil?
|
|
1288
1288
|
raise 'no response'
|
|
1289
1289
|
end
|
|
1290
1290
|
end
|
|
1291
|
-
|
|
1291
|
+
|
|
1292
1292
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
1293
1293
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
1294
1294
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -1468,7 +1468,7 @@ module OpenApiSDK
|
|
|
1468
1468
|
|
|
1469
1469
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
1470
1470
|
timeout ||= @sdk_configuration.timeout
|
|
1471
|
-
|
|
1471
|
+
|
|
1472
1472
|
|
|
1473
1473
|
connection = @sdk_configuration.client
|
|
1474
1474
|
|
|
@@ -1483,7 +1483,7 @@ module OpenApiSDK
|
|
|
1483
1483
|
error = T.let(nil, T.nilable(StandardError))
|
|
1484
1484
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
1485
1485
|
|
|
1486
|
-
|
|
1486
|
+
|
|
1487
1487
|
begin
|
|
1488
1488
|
http_response = T.must(connection).post(url) do |req|
|
|
1489
1489
|
req.body = body
|
|
@@ -1520,13 +1520,13 @@ module OpenApiSDK
|
|
|
1520
1520
|
response: http_response
|
|
1521
1521
|
)
|
|
1522
1522
|
end
|
|
1523
|
-
|
|
1523
|
+
|
|
1524
1524
|
if http_response.nil?
|
|
1525
1525
|
raise error if !error.nil?
|
|
1526
1526
|
raise 'no response'
|
|
1527
1527
|
end
|
|
1528
1528
|
end
|
|
1529
|
-
|
|
1529
|
+
|
|
1530
1530
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
1531
1531
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
1532
1532
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -1706,7 +1706,7 @@ module OpenApiSDK
|
|
|
1706
1706
|
|
|
1707
1707
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
1708
1708
|
timeout ||= @sdk_configuration.timeout
|
|
1709
|
-
|
|
1709
|
+
|
|
1710
1710
|
|
|
1711
1711
|
connection = @sdk_configuration.client
|
|
1712
1712
|
|
|
@@ -1721,7 +1721,7 @@ module OpenApiSDK
|
|
|
1721
1721
|
error = T.let(nil, T.nilable(StandardError))
|
|
1722
1722
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
1723
1723
|
|
|
1724
|
-
|
|
1724
|
+
|
|
1725
1725
|
begin
|
|
1726
1726
|
http_response = T.must(connection).post(url) do |req|
|
|
1727
1727
|
req.body = body
|
|
@@ -1758,13 +1758,13 @@ module OpenApiSDK
|
|
|
1758
1758
|
response: http_response
|
|
1759
1759
|
)
|
|
1760
1760
|
end
|
|
1761
|
-
|
|
1761
|
+
|
|
1762
1762
|
if http_response.nil?
|
|
1763
1763
|
raise error if !error.nil?
|
|
1764
1764
|
raise 'no response'
|
|
1765
1765
|
end
|
|
1766
1766
|
end
|
|
1767
|
-
|
|
1767
|
+
|
|
1768
1768
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
1769
1769
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
1770
1770
|
if Utils.match_content_type(content_type, 'application/json')
|