dub 0.2.2.pre.alpha.85 → 0.2.2.pre.alpha.89
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/models/operations/{links.rb → createpartner_link.rb} +1 -1
- data/lib/open_api_sdk/models/operations/createpartner_responsebody.rb +2 -2
- data/lib/open_api_sdk/models/operations/getcustomers_link.rb +36 -0
- data/lib/open_api_sdk/models/operations/getlinks_request.rb +1 -1
- data/lib/open_api_sdk/models/operations/getlinkscount_request.rb +1 -1
- data/lib/open_api_sdk/models/operations/link.rb +17 -5
- data/lib/open_api_sdk/models/operations/listevents_request.rb +3 -3
- data/lib/open_api_sdk/models/operations/queryparam_interval.rb +1 -1
- data/lib/open_api_sdk/models/operations/responsebody.rb +2 -2
- data/lib/open_api_sdk/models/operations/retrieveanalytics_request.rb +2 -2
- data/lib/open_api_sdk/models/operations/retrievelinks_response.rb +5 -5
- data/lib/open_api_sdk/models/operations/retrievepartneranalytics_request.rb +2 -2
- data/lib/open_api_sdk/models/operations.rb +3 -3
- data/lib/open_api_sdk/models/shared/click.rb +5 -5
- data/lib/open_api_sdk/models/shared/clickevent.rb +5 -5
- data/lib/open_api_sdk/models/shared/link.rb +20 -20
- data/lib/open_api_sdk/partners.rb +2 -2
- data/lib/open_api_sdk/sdkconfiguration.rb +2 -2
- metadata +4 -4
- data/lib/open_api_sdk/models/operations/retrievelinks_responsebody.rb +0 -48
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d35bcb242fc453e73e685df39b523b8dfd4d19e53609bebfb60e29ebbe264e4
|
4
|
+
data.tar.gz: a0ccbef66e8bcad7893f07ff16c72712c6413b582b01e7ae71dd6bca4a19d742
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ea0d883a86aa6653b5ba61013e4af5f6b506574bcb6dd5ddc1e7f89d82314caaa93c7e15cfed35df71fddfa25eaeaa90edaf2d73a2350095e45f60d80d5c949
|
7
|
+
data.tar.gz: c0fc59d7c543e34dd75208dfb16ff3ad6bf0950a877fa2cf3067e37662e1f917659488a555cc8b844cf45b9ff00753927de75144933c7cb584154a24b355ffae
|
@@ -28,7 +28,7 @@ module OpenApiSDK
|
|
28
28
|
|
29
29
|
field :leads, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('leads') } }
|
30
30
|
|
31
|
-
field :links, T::Array[::OpenApiSDK::Operations::
|
31
|
+
field :links, T::Array[::OpenApiSDK::Operations::CreatePartnerLink], { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('links') } }
|
32
32
|
|
33
33
|
field :name, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('name') } }
|
34
34
|
|
@@ -49,7 +49,7 @@ module OpenApiSDK
|
|
49
49
|
field :description, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('description') } }
|
50
50
|
|
51
51
|
|
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::
|
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
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)
|
54
54
|
@clicks = clicks
|
55
55
|
@country = country
|
@@ -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 Operations
|
9
|
+
|
10
|
+
|
11
|
+
class GetCustomersLink < ::Crystalline::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# The domain of the short link. If not provided, the primary domain for the workspace will be used (or `dub.sh` if the workspace has no domains).
|
15
|
+
field :domain, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('domain') } }
|
16
|
+
# The unique ID of the short link.
|
17
|
+
field :id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id') } }
|
18
|
+
# The short link slug. If not provided, a random 7-character slug will be generated.
|
19
|
+
field :key, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('key') } }
|
20
|
+
# The ID of the program the short link is associated with.
|
21
|
+
field :program_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('programId') } }
|
22
|
+
# The full URL of the short link, including the https protocol (e.g. `https://dub.sh/try`).
|
23
|
+
field :short_link, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('shortLink') } }
|
24
|
+
|
25
|
+
|
26
|
+
sig { params(domain: ::String, id: ::String, key: ::String, program_id: ::String, short_link: ::String).void }
|
27
|
+
def initialize(domain: nil, id: nil, key: nil, program_id: nil, short_link: nil)
|
28
|
+
@domain = domain
|
29
|
+
@id = id
|
30
|
+
@key = key
|
31
|
+
@program_id = program_id
|
32
|
+
@short_link = short_link
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -32,7 +32,7 @@ module OpenApiSDK
|
|
32
32
|
# Deprecated. Use `tagIds` instead. The tag ID to filter the links by.
|
33
33
|
field :tag_id, T.nilable(::String), { 'query_param': { 'field_name': 'tagId', 'style': 'form', 'explode': true } }
|
34
34
|
# The tag IDs to filter the links by.
|
35
|
-
field :tag_ids, T.nilable(::Object), { 'query_param': { 'field_name': 'tagIds', 'style': 'form', 'explode':
|
35
|
+
field :tag_ids, T.nilable(::Object), { 'query_param': { 'field_name': 'tagIds', 'style': 'form', 'explode': true } }
|
36
36
|
# The unique name of the tags assigned to the short link (case insensitive).
|
37
37
|
field :tag_names, T.nilable(::Object), { 'query_param': { 'field_name': 'tagNames', 'style': 'form', 'explode': true } }
|
38
38
|
# The ID of the tenant that created the link inside your system. If set, will only return links for the specified tenant.
|
@@ -24,7 +24,7 @@ module OpenApiSDK
|
|
24
24
|
# Deprecated. Use `tagIds` instead. The tag ID to filter the links by.
|
25
25
|
field :tag_id, T.nilable(::String), { 'query_param': { 'field_name': 'tagId', 'style': 'form', 'explode': true } }
|
26
26
|
# The tag IDs to filter the links by.
|
27
|
-
field :tag_ids, T.nilable(::Object), { 'query_param': { 'field_name': 'tagIds', 'style': 'form', 'explode':
|
27
|
+
field :tag_ids, T.nilable(::Object), { 'query_param': { 'field_name': 'tagIds', 'style': 'form', 'explode': true } }
|
28
28
|
# The unique name of the tags assigned to the short link (case insensitive).
|
29
29
|
field :tag_names, T.nilable(::Object), { 'query_param': { 'field_name': 'tagNames', 'style': 'form', 'explode': true } }
|
30
30
|
# The ID of the tenant that created the link inside your system. If set, will only return links for the specified tenant.
|
@@ -11,25 +11,37 @@ module OpenApiSDK
|
|
11
11
|
class Link < ::Crystalline::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
14
|
+
# The number of clicks on the short link.
|
15
|
+
field :clicks, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('clicks') } }
|
14
16
|
# The domain of the short link. If not provided, the primary domain for the workspace will be used (or `dub.sh` if the workspace has no domains).
|
15
17
|
field :domain, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('domain') } }
|
16
18
|
# The unique ID of the short link.
|
17
19
|
field :id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id') } }
|
18
20
|
# The short link slug. If not provided, a random 7-character slug will be generated.
|
19
21
|
field :key, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('key') } }
|
20
|
-
# The
|
21
|
-
field :
|
22
|
+
# The number of leads the short links has generated.
|
23
|
+
field :leads, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('leads') } }
|
24
|
+
# The total dollar amount of sales the short links has generated (in cents).
|
25
|
+
field :sale_amount, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('saleAmount') } }
|
26
|
+
# The number of sales the short links has generated.
|
27
|
+
field :sales, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('sales') } }
|
22
28
|
# The full URL of the short link, including the https protocol (e.g. `https://dub.sh/try`).
|
23
29
|
field :short_link, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('shortLink') } }
|
30
|
+
# The destination URL of the short link.
|
31
|
+
field :url, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('url') } }
|
24
32
|
|
25
33
|
|
26
|
-
sig { params(domain: ::String, id: ::String, key: ::String,
|
27
|
-
def initialize(domain: nil, id: nil, key: nil,
|
34
|
+
sig { params(clicks: ::Float, domain: ::String, id: ::String, key: ::String, leads: ::Float, sale_amount: ::Float, sales: ::Float, short_link: ::String, url: ::String).void }
|
35
|
+
def initialize(clicks: nil, domain: nil, id: nil, key: nil, leads: nil, sale_amount: nil, sales: nil, short_link: nil, url: nil)
|
36
|
+
@clicks = clicks
|
28
37
|
@domain = domain
|
29
38
|
@id = id
|
30
39
|
@key = key
|
31
|
-
@
|
40
|
+
@leads = leads
|
41
|
+
@sale_amount = sale_amount
|
42
|
+
@sales = sales
|
32
43
|
@short_link = short_link
|
44
|
+
@url = url
|
33
45
|
end
|
34
46
|
end
|
35
47
|
end
|
@@ -25,7 +25,7 @@ module OpenApiSDK
|
|
25
25
|
field :device, T.nilable(::String), { 'query_param': { 'field_name': 'device', 'style': 'form', 'explode': true } }
|
26
26
|
# The domain to filter analytics for.
|
27
27
|
field :domain, T.nilable(::String), { 'query_param': { 'field_name': 'domain', 'style': 'form', 'explode': true } }
|
28
|
-
# The end date and time when to retrieve analytics from. If not provided, defaults to the current date.
|
28
|
+
# The end date and time when to retrieve analytics from. If not provided, defaults to the current date. If set along with `start`, takes precedence over `interval`.
|
29
29
|
field :end_, T.nilable(::String), { 'query_param': { 'field_name': 'end', 'style': 'form', 'explode': true } }
|
30
30
|
# The type of event to retrieve analytics for. Defaults to 'clicks'.
|
31
31
|
field :event, T.nilable(::OpenApiSDK::Operations::QueryParamEvent), { 'query_param': { 'field_name': 'event', 'style': 'form', 'explode': true } }
|
@@ -33,7 +33,7 @@ module OpenApiSDK
|
|
33
33
|
field :external_id, T.nilable(::String), { 'query_param': { 'field_name': 'externalId', 'style': 'form', 'explode': true } }
|
34
34
|
# The folder ID to retrieve analytics for. If not provided, return analytics for unsorted links.
|
35
35
|
field :folder_id, T.nilable(::String), { 'query_param': { 'field_name': 'folderId', 'style': 'form', 'explode': true } }
|
36
|
-
# The interval to retrieve
|
36
|
+
# The interval to retrieve analytics for. If undefined, defaults to 24h.
|
37
37
|
field :interval, T.nilable(::OpenApiSDK::Operations::QueryParamInterval), { 'query_param': { 'field_name': 'interval', 'style': 'form', 'explode': true } }
|
38
38
|
# The short link slug.
|
39
39
|
field :key, T.nilable(::String), { 'query_param': { 'field_name': 'key', 'style': 'form', 'explode': true } }
|
@@ -65,7 +65,7 @@ module OpenApiSDK
|
|
65
65
|
field :sort_by, T.nilable(::OpenApiSDK::Operations::QueryParamSortBy), { 'query_param': { 'field_name': 'sortBy', 'style': 'form', 'explode': true } }
|
66
66
|
# The sort order. The default is `desc`.
|
67
67
|
field :sort_order, T.nilable(::OpenApiSDK::Operations::QueryParamSortOrder), { 'query_param': { 'field_name': 'sortOrder', 'style': 'form', 'explode': true } }
|
68
|
-
# The start date and time when to retrieve analytics from.
|
68
|
+
# The start date and time when to retrieve analytics from. If set, takes precedence over `interval`.
|
69
69
|
field :start, T.nilable(::String), { 'query_param': { 'field_name': 'start', 'style': 'form', 'explode': true } }
|
70
70
|
# Deprecated. Use `tagIds` instead. The tag ID to retrieve analytics for.
|
71
71
|
field :tag_id, T.nilable(::String), { 'query_param': { 'field_name': 'tagId', 'style': 'form', 'explode': true } }
|
@@ -7,7 +7,7 @@
|
|
7
7
|
module OpenApiSDK
|
8
8
|
module Operations
|
9
9
|
|
10
|
-
# QueryParamInterval - The interval to retrieve
|
10
|
+
# QueryParamInterval - The interval to retrieve analytics for. If undefined, defaults to 24h.
|
11
11
|
class QueryParamInterval < T::Enum
|
12
12
|
enums do
|
13
13
|
TWENTY_FOURH = new('24h')
|
@@ -28,14 +28,14 @@ module OpenApiSDK
|
|
28
28
|
# Email of the customer.
|
29
29
|
field :email, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('email') } }
|
30
30
|
|
31
|
-
field :link, T.nilable(::OpenApiSDK::Operations::
|
31
|
+
field :link, T.nilable(::OpenApiSDK::Operations::GetCustomersLink), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('link') } }
|
32
32
|
|
33
33
|
field :partner, T.nilable(::OpenApiSDK::Operations::GetCustomersPartner), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('partner') } }
|
34
34
|
|
35
35
|
field :program_id, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('programId') } }
|
36
36
|
|
37
37
|
|
38
|
-
sig { params(created_at: ::String, external_id: ::String, id: ::String, name: ::String, avatar: T.nilable(::String), country: T.nilable(::String), discount: T.nilable(::OpenApiSDK::Operations::Discount), email: T.nilable(::String), link: T.nilable(::OpenApiSDK::Operations::
|
38
|
+
sig { params(created_at: ::String, external_id: ::String, id: ::String, name: ::String, avatar: T.nilable(::String), country: T.nilable(::String), discount: T.nilable(::OpenApiSDK::Operations::Discount), email: T.nilable(::String), link: T.nilable(::OpenApiSDK::Operations::GetCustomersLink), partner: T.nilable(::OpenApiSDK::Operations::GetCustomersPartner), program_id: T.nilable(::String)).void }
|
39
39
|
def initialize(created_at: nil, external_id: nil, id: nil, name: nil, avatar: nil, country: nil, discount: nil, email: nil, link: nil, partner: nil, program_id: nil)
|
40
40
|
@created_at = created_at
|
41
41
|
@external_id = external_id
|
@@ -25,7 +25,7 @@ module OpenApiSDK
|
|
25
25
|
field :device, T.nilable(::String), { 'query_param': { 'field_name': 'device', 'style': 'form', 'explode': true } }
|
26
26
|
# The domain to filter analytics for.
|
27
27
|
field :domain, T.nilable(::String), { 'query_param': { 'field_name': 'domain', 'style': 'form', 'explode': true } }
|
28
|
-
# The end date and time when to retrieve analytics from. If not provided, defaults to the current date.
|
28
|
+
# The end date and time when to retrieve analytics from. If not provided, defaults to the current date. If set along with `start`, takes precedence over `interval`.
|
29
29
|
field :end_, T.nilable(::String), { 'query_param': { 'field_name': 'end', 'style': 'form', 'explode': true } }
|
30
30
|
# The type of event to retrieve analytics for. Defaults to `clicks`.
|
31
31
|
field :event, T.nilable(::OpenApiSDK::Operations::Event), { 'query_param': { 'field_name': 'event', 'style': 'form', 'explode': true } }
|
@@ -57,7 +57,7 @@ module OpenApiSDK
|
|
57
57
|
field :region, T.nilable(::String), { 'query_param': { 'field_name': 'region', 'style': 'form', 'explode': true } }
|
58
58
|
# Filter for root domains. If true, filter for domains only. If false, filter for links only. If undefined, return both.
|
59
59
|
field :root, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'root', 'style': 'form', 'explode': true } }
|
60
|
-
# The start date and time when to retrieve analytics from.
|
60
|
+
# The start date and time when to retrieve analytics from. If set, takes precedence over `interval`.
|
61
61
|
field :start, T.nilable(::String), { 'query_param': { 'field_name': 'start', 'style': 'form', 'explode': true } }
|
62
62
|
# Deprecated. Use `tagIds` instead. The tag ID to retrieve analytics for.
|
63
63
|
field :tag_id, T.nilable(::String), { 'query_param': { 'field_name': 'tagId', 'style': 'form', 'explode': true } }
|
@@ -27,20 +27,20 @@ module OpenApiSDK
|
|
27
27
|
field :internal_server_error, T.nilable(::OpenApiSDK::Shared::InternalServerError)
|
28
28
|
# This response is sent when the requested content has been permanently deleted from server, with no forwarding address.
|
29
29
|
field :invite_expired, T.nilable(::OpenApiSDK::Shared::InviteExpired)
|
30
|
+
# The retrieved partner links.
|
31
|
+
field :links, T.nilable(T::Array[::OpenApiSDK::Operations::Link])
|
30
32
|
# The server cannot find the requested resource.
|
31
33
|
field :not_found, T.nilable(::OpenApiSDK::Shared::NotFound)
|
32
34
|
# The user has sent too many requests in a given amount of time ("rate limiting")
|
33
35
|
field :rate_limit_exceeded, T.nilable(::OpenApiSDK::Shared::RateLimitExceeded)
|
34
|
-
# The retrieved partner links.
|
35
|
-
field :response_bodies, T.nilable(T::Array[::OpenApiSDK::Operations::RetrieveLinksResponseBody])
|
36
36
|
# Although the HTTP standard specifies "unauthorized", semantically this response means "unauthenticated". That is, the client must authenticate itself to get the requested response.
|
37
37
|
field :unauthorized, T.nilable(::OpenApiSDK::Shared::Unauthorized)
|
38
38
|
# The request was well-formed but was unable to be followed due to semantic errors.
|
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, 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),
|
43
|
-
def initialize(content_type: nil, raw_response: nil, status_code: nil, bad_request: nil, conflict: nil, forbidden: nil, internal_server_error: nil, invite_expired: nil,
|
42
|
+
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, bad_request: T.nilable(::OpenApiSDK::Shared::BadRequest), conflict: T.nilable(::OpenApiSDK::Shared::Conflict), forbidden: T.nilable(::OpenApiSDK::Shared::Forbidden), internal_server_error: T.nilable(::OpenApiSDK::Shared::InternalServerError), invite_expired: T.nilable(::OpenApiSDK::Shared::InviteExpired), links: T.nilable(T::Array[::OpenApiSDK::Operations::Link]), 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, bad_request: nil, conflict: nil, forbidden: nil, internal_server_error: nil, invite_expired: nil, links: 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
|
@@ -49,9 +49,9 @@ module OpenApiSDK
|
|
49
49
|
@forbidden = forbidden
|
50
50
|
@internal_server_error = internal_server_error
|
51
51
|
@invite_expired = invite_expired
|
52
|
+
@links = links
|
52
53
|
@not_found = not_found
|
53
54
|
@rate_limit_exceeded = rate_limit_exceeded
|
54
|
-
@response_bodies = response_bodies
|
55
55
|
@unauthorized = unauthorized
|
56
56
|
@unprocessable_entity = unprocessable_entity
|
57
57
|
end
|
@@ -13,7 +13,7 @@ module OpenApiSDK
|
|
13
13
|
|
14
14
|
# The ID of the program to retrieve analytics for.
|
15
15
|
field :program_id, ::String, { 'query_param': { 'field_name': 'programId', 'style': 'form', 'explode': true } }
|
16
|
-
# The end date and time when to retrieve analytics from. If not provided, defaults to the current date.
|
16
|
+
# The end date and time when to retrieve analytics from. If not provided, defaults to the current date. If set along with `start`, takes precedence over `interval`.
|
17
17
|
field :end_, T.nilable(::String), { 'query_param': { 'field_name': 'end', 'style': 'form', 'explode': true } }
|
18
18
|
# The parameter to group the analytics data points by. Defaults to `count` if undefined.
|
19
19
|
field :group_by, T.nilable(::OpenApiSDK::Operations::QueryParamGroupBy), { 'query_param': { 'field_name': 'groupBy', 'style': 'form', 'explode': true } }
|
@@ -21,7 +21,7 @@ module OpenApiSDK
|
|
21
21
|
field :interval, T.nilable(::OpenApiSDK::Operations::RetrievePartnerAnalyticsQueryParamInterval), { 'query_param': { 'field_name': 'interval', 'style': 'form', 'explode': true } }
|
22
22
|
# The ID of the partner to retrieve analytics for.
|
23
23
|
field :partner_id, T.nilable(::String), { 'query_param': { 'field_name': 'partnerId', 'style': 'form', 'explode': true } }
|
24
|
-
# The start date and time when to retrieve analytics from.
|
24
|
+
# The start date and time when to retrieve analytics from. If set, takes precedence over `interval`.
|
25
25
|
field :start, T.nilable(::String), { 'query_param': { 'field_name': 'start', 'style': 'form', 'explode': true } }
|
26
26
|
# The ID of the tenant that created the link inside your system.
|
27
27
|
field :tenant_id, T.nilable(::String), { 'query_param': { 'field_name': 'tenantId', 'style': 'form', 'explode': true } }
|
@@ -100,7 +100,7 @@ module OpenApiSDK
|
|
100
100
|
autoload :TrackSaleResponseBody, 'open_api_sdk/models/operations/tracksale_responsebody.rb'
|
101
101
|
autoload :TrackSaleResponse, 'open_api_sdk/models/operations/tracksale_response.rb'
|
102
102
|
autoload :GetCustomersRequest, 'open_api_sdk/models/operations/getcustomers_request.rb'
|
103
|
-
autoload :
|
103
|
+
autoload :GetCustomersLink, 'open_api_sdk/models/operations/getcustomers_link.rb'
|
104
104
|
autoload :GetCustomersPartner, 'open_api_sdk/models/operations/getcustomers_partner.rb'
|
105
105
|
autoload :GetCustomersType, 'open_api_sdk/models/operations/getcustomers_type.rb'
|
106
106
|
autoload :Discount, 'open_api_sdk/models/operations/discount.rb'
|
@@ -136,7 +136,7 @@ module OpenApiSDK
|
|
136
136
|
autoload :LinkProps, 'open_api_sdk/models/operations/linkprops.rb'
|
137
137
|
autoload :CreatePartnerRequestBody, 'open_api_sdk/models/operations/createpartner_requestbody.rb'
|
138
138
|
autoload :Status, 'open_api_sdk/models/operations/status.rb'
|
139
|
-
autoload :
|
139
|
+
autoload :CreatePartnerLink, 'open_api_sdk/models/operations/createpartner_link.rb'
|
140
140
|
autoload :CreatePartnerResponseBody, 'open_api_sdk/models/operations/createpartner_responsebody.rb'
|
141
141
|
autoload :CreatePartnerResponse, 'open_api_sdk/models/operations/createpartner_response.rb'
|
142
142
|
autoload :CreatePartnerLinkTestVariants, 'open_api_sdk/models/operations/createpartnerlink_testvariants.rb'
|
@@ -144,7 +144,7 @@ module OpenApiSDK
|
|
144
144
|
autoload :CreatePartnerLinkRequestBody, 'open_api_sdk/models/operations/createpartnerlink_requestbody.rb'
|
145
145
|
autoload :CreatePartnerLinkResponse, 'open_api_sdk/models/operations/createpartnerlink_response.rb'
|
146
146
|
autoload :RetrieveLinksRequest, 'open_api_sdk/models/operations/retrievelinks_request.rb'
|
147
|
-
autoload :
|
147
|
+
autoload :Link, 'open_api_sdk/models/operations/link.rb'
|
148
148
|
autoload :RetrieveLinksResponse, 'open_api_sdk/models/operations/retrievelinks_response.rb'
|
149
149
|
autoload :UpsertPartnerLinkTestVariants, 'open_api_sdk/models/operations/upsertpartnerlink_testvariants.rb'
|
150
150
|
autoload :UpsertPartnerLinkLinkProps, 'open_api_sdk/models/operations/upsertpartnerlink_linkprops.rb'
|
@@ -28,6 +28,8 @@ module OpenApiSDK
|
|
28
28
|
|
29
29
|
field :os, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('os') } }
|
30
30
|
|
31
|
+
field :qr, T::Boolean, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('qr') } }
|
32
|
+
|
31
33
|
field :referer, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('referer') } }
|
32
34
|
|
33
35
|
field :referer_url, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('refererUrl') } }
|
@@ -38,11 +40,9 @@ module OpenApiSDK
|
|
38
40
|
|
39
41
|
field :url, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('url') } }
|
40
42
|
|
41
|
-
field :qr, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('qr') } }
|
42
|
-
|
43
43
|
|
44
|
-
sig { params(browser: ::String, city: ::String, continent: ::String, country: ::String, device: ::String, id: ::String, ip: ::String, os: ::String, referer: ::String, referer_url: ::String, region: ::String, timestamp: ::String, url: ::String
|
45
|
-
def initialize(browser: nil, city: nil, continent: nil, country: nil, device: nil, id: nil, ip: nil, os: nil, referer: nil, referer_url: nil, region: nil, timestamp: nil, url: nil
|
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
46
|
@browser = browser
|
47
47
|
@city = city
|
48
48
|
@continent = continent
|
@@ -51,12 +51,12 @@ module OpenApiSDK
|
|
51
51
|
@id = id
|
52
52
|
@ip = ip
|
53
53
|
@os = os
|
54
|
+
@qr = qr
|
54
55
|
@referer = referer
|
55
56
|
@referer_url = referer_url
|
56
57
|
@region = region
|
57
58
|
@timestamp = timestamp
|
58
59
|
@url = url
|
59
|
-
@qr = qr
|
60
60
|
end
|
61
61
|
end
|
62
62
|
end
|
@@ -65,16 +65,16 @@ module OpenApiSDK
|
|
65
65
|
#
|
66
66
|
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
67
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') } }
|
68
70
|
# Deprecated. Use `click.url` instead.
|
69
71
|
#
|
70
72
|
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
71
73
|
field :url, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('url') } }
|
72
74
|
|
73
|
-
field :timestamp, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('timestamp') } }
|
74
|
-
|
75
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,
|
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,
|
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
78
|
@browser = browser
|
79
79
|
@city = city
|
80
80
|
@click = click
|
@@ -90,8 +90,8 @@ module OpenApiSDK
|
|
90
90
|
@link_id = link_id
|
91
91
|
@os = os
|
92
92
|
@qr = qr
|
93
|
-
@url = url
|
94
93
|
@timestamp = timestamp
|
94
|
+
@url = url
|
95
95
|
end
|
96
96
|
end
|
97
97
|
end
|
@@ -13,6 +13,8 @@ module OpenApiSDK
|
|
13
13
|
|
14
14
|
# The Android destination URL for the short link for Android device targeting.
|
15
15
|
field :android, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('android') } }
|
16
|
+
|
17
|
+
field :archived, T::Boolean, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('archived') } }
|
16
18
|
# The number of clicks on the short link.
|
17
19
|
field :clicks, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('clicks') } }
|
18
20
|
# The comments for the short link.
|
@@ -21,6 +23,8 @@ module OpenApiSDK
|
|
21
23
|
field :created_at, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('createdAt') } }
|
22
24
|
# The description of the short link. Will be used for Custom Social Media Cards if `proxy` is true.
|
23
25
|
field :description, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('description') } }
|
26
|
+
|
27
|
+
field :do_index, T::Boolean, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('doIndex') } }
|
24
28
|
# The domain of the short link. If not provided, the primary domain for the workspace will be used (or `dub.sh` if the workspace has no domains).
|
25
29
|
field :domain, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('domain') } }
|
26
30
|
|
@@ -55,8 +59,14 @@ module OpenApiSDK
|
|
55
59
|
#
|
56
60
|
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
57
61
|
field :project_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('projectId') } }
|
62
|
+
|
63
|
+
field :proxy, T::Boolean, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('proxy') } }
|
64
|
+
|
65
|
+
field :public_stats, T::Boolean, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('publicStats') } }
|
58
66
|
# The full URL of the QR code for the short link (e.g. `https://api.dub.co/qr?url=https://dub.sh/try`).
|
59
67
|
field :qr_code, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('qrCode') } }
|
68
|
+
|
69
|
+
field :rewrite, T::Boolean, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('rewrite') } }
|
60
70
|
# The total dollar amount of sales the short links has generated (in cents).
|
61
71
|
field :sale_amount, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('saleAmount') } }
|
62
72
|
# The number of sales the short links has generated.
|
@@ -78,6 +88,8 @@ module OpenApiSDK
|
|
78
88
|
# The title of the short link. Will be used for Custom Social Media Cards if `proxy` is true.
|
79
89
|
field :title, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('title') } }
|
80
90
|
|
91
|
+
field :track_conversion, T::Boolean, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('trackConversion') } }
|
92
|
+
|
81
93
|
field :updated_at, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('updatedAt') } }
|
82
94
|
|
83
95
|
field :url, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('url') } }
|
@@ -99,29 +111,19 @@ module OpenApiSDK
|
|
99
111
|
field :webhook_ids, T::Array[::String], { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('webhookIds') } }
|
100
112
|
# The workspace ID of the short link.
|
101
113
|
field :workspace_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('workspaceId') } }
|
102
|
-
|
103
|
-
field :archived, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('archived') } }
|
104
|
-
|
105
|
-
field :do_index, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('doIndex') } }
|
106
|
-
|
107
|
-
field :proxy, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('proxy') } }
|
108
|
-
|
109
|
-
field :public_stats, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('publicStats') } }
|
110
|
-
|
111
|
-
field :rewrite, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('rewrite') } }
|
112
114
|
# An array of A/B test URLs and the percentage of traffic to send to each URL.
|
113
115
|
field :test_variants, T.nilable(T::Array[::OpenApiSDK::Shared::ClickEventTestVariants]), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('testVariants') } }
|
114
116
|
|
115
|
-
field :track_conversion, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('trackConversion') } }
|
116
|
-
|
117
117
|
|
118
|
-
sig { params(android: ::String, clicks: ::Float, comments: ::String, created_at: ::String, description: ::String, domain: ::String, expired_url: ::String, expires_at: ::String, external_id: ::String, folder_id: ::String, geo: ::OpenApiSDK::Shared::ClickEventGeo, id: ::String, image: ::String, ios: ::String, key: ::String, last_clicked: ::String, leads: ::Float, partner_id: ::String, password: ::String, program_id: ::String, project_id: ::String, qr_code: ::String, sale_amount: ::Float, sales: ::Float, short_link: ::String, tag_id: ::String, tags: T::Array[::OpenApiSDK::Shared::TagSchema], tenant_id: ::String, test_completed_at: ::String, test_started_at: ::String, title: ::String, updated_at: ::String, url: ::String, user_id: ::String, utm_campaign: ::String, utm_content: ::String, utm_medium: ::String, utm_source: ::String, utm_term: ::String, video: ::String, webhook_ids: T::Array[::String], workspace_id: ::String,
|
119
|
-
def initialize(android: nil, clicks: nil, comments: nil, created_at: nil, description: nil, domain: nil, expired_url: nil, expires_at: nil, external_id: nil, folder_id: nil, geo: nil, id: nil, image: nil, ios: nil, key: nil, last_clicked: nil, leads: nil, partner_id: nil, password: nil, program_id: nil, project_id: nil, qr_code: nil, sale_amount: nil, sales: nil, short_link: nil, tag_id: nil, tags: nil, tenant_id: nil, test_completed_at: nil, test_started_at: nil, title: nil, updated_at: nil, url: nil, user_id: nil, utm_campaign: nil, utm_content: nil, utm_medium: nil, utm_source: nil, utm_term: nil, video: nil, webhook_ids: nil, workspace_id: nil,
|
118
|
+
sig { params(android: ::String, archived: T::Boolean, clicks: ::Float, comments: ::String, created_at: ::String, description: ::String, do_index: T::Boolean, domain: ::String, expired_url: ::String, expires_at: ::String, external_id: ::String, folder_id: ::String, geo: ::OpenApiSDK::Shared::ClickEventGeo, id: ::String, image: ::String, ios: ::String, key: ::String, last_clicked: ::String, leads: ::Float, partner_id: ::String, password: ::String, program_id: ::String, project_id: ::String, proxy: T::Boolean, public_stats: T::Boolean, qr_code: ::String, rewrite: T::Boolean, sale_amount: ::Float, sales: ::Float, short_link: ::String, tag_id: ::String, tags: T::Array[::OpenApiSDK::Shared::TagSchema], tenant_id: ::String, test_completed_at: ::String, test_started_at: ::String, title: ::String, track_conversion: T::Boolean, updated_at: ::String, url: ::String, user_id: ::String, utm_campaign: ::String, utm_content: ::String, utm_medium: ::String, utm_source: ::String, utm_term: ::String, video: ::String, webhook_ids: T::Array[::String], workspace_id: ::String, test_variants: T.nilable(T::Array[::OpenApiSDK::Shared::ClickEventTestVariants])).void }
|
119
|
+
def initialize(android: nil, archived: nil, clicks: nil, comments: nil, created_at: nil, description: nil, do_index: nil, domain: nil, expired_url: nil, expires_at: nil, external_id: nil, folder_id: nil, geo: nil, id: nil, image: nil, ios: nil, key: nil, last_clicked: nil, leads: nil, partner_id: nil, password: nil, program_id: nil, project_id: nil, proxy: nil, public_stats: nil, qr_code: nil, rewrite: nil, sale_amount: nil, sales: nil, short_link: nil, tag_id: nil, tags: nil, tenant_id: nil, test_completed_at: nil, test_started_at: nil, title: nil, track_conversion: nil, updated_at: nil, url: nil, user_id: nil, utm_campaign: nil, utm_content: nil, utm_medium: nil, utm_source: nil, utm_term: nil, video: nil, webhook_ids: nil, workspace_id: nil, test_variants: nil)
|
120
120
|
@android = android
|
121
|
+
@archived = archived
|
121
122
|
@clicks = clicks
|
122
123
|
@comments = comments
|
123
124
|
@created_at = created_at
|
124
125
|
@description = description
|
126
|
+
@do_index = do_index
|
125
127
|
@domain = domain
|
126
128
|
@expired_url = expired_url
|
127
129
|
@expires_at = expires_at
|
@@ -138,7 +140,10 @@ module OpenApiSDK
|
|
138
140
|
@password = password
|
139
141
|
@program_id = program_id
|
140
142
|
@project_id = project_id
|
143
|
+
@proxy = proxy
|
144
|
+
@public_stats = public_stats
|
141
145
|
@qr_code = qr_code
|
146
|
+
@rewrite = rewrite
|
142
147
|
@sale_amount = sale_amount
|
143
148
|
@sales = sales
|
144
149
|
@short_link = short_link
|
@@ -148,6 +153,7 @@ module OpenApiSDK
|
|
148
153
|
@test_completed_at = test_completed_at
|
149
154
|
@test_started_at = test_started_at
|
150
155
|
@title = title
|
156
|
+
@track_conversion = track_conversion
|
151
157
|
@updated_at = updated_at
|
152
158
|
@url = url
|
153
159
|
@user_id = user_id
|
@@ -159,13 +165,7 @@ module OpenApiSDK
|
|
159
165
|
@video = video
|
160
166
|
@webhook_ids = webhook_ids
|
161
167
|
@workspace_id = workspace_id
|
162
|
-
@archived = archived
|
163
|
-
@do_index = do_index
|
164
|
-
@proxy = proxy
|
165
|
-
@public_stats = public_stats
|
166
|
-
@rewrite = rewrite
|
167
168
|
@test_variants = test_variants
|
168
|
-
@track_conversion = track_conversion
|
169
169
|
end
|
170
170
|
end
|
171
171
|
end
|
@@ -376,8 +376,8 @@ module OpenApiSDK
|
|
376
376
|
)
|
377
377
|
if r.status == 200
|
378
378
|
if Utils.match_content_type(content_type, 'application/json')
|
379
|
-
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), T::Array[::OpenApiSDK::Operations::
|
380
|
-
res.
|
379
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), T::Array[::OpenApiSDK::Operations::Link])
|
380
|
+
res.links = out
|
381
381
|
end
|
382
382
|
elsif r.status == 400
|
383
383
|
if Utils.match_content_type(content_type, 'application/json')
|
@@ -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.89'
|
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.89 2.563.0 0.0.1 dub'
|
67
67
|
end
|
68
68
|
|
69
69
|
sig { returns([String, T::Hash[Symbol, String]]) }
|
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.89
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dub
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-04-
|
11
|
+
date: 2025-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -223,6 +223,7 @@ files:
|
|
223
223
|
- lib/open_api_sdk/models/operations/createfolder_response.rb
|
224
224
|
- lib/open_api_sdk/models/operations/createlink_requestbody.rb
|
225
225
|
- lib/open_api_sdk/models/operations/createlink_response.rb
|
226
|
+
- lib/open_api_sdk/models/operations/createpartner_link.rb
|
226
227
|
- lib/open_api_sdk/models/operations/createpartner_requestbody.rb
|
227
228
|
- lib/open_api_sdk/models/operations/createpartner_response.rb
|
228
229
|
- lib/open_api_sdk/models/operations/createpartner_responsebody.rb
|
@@ -265,6 +266,7 @@ files:
|
|
265
266
|
- lib/open_api_sdk/models/operations/getcustomer_response.rb
|
266
267
|
- lib/open_api_sdk/models/operations/getcustomer_responsebody.rb
|
267
268
|
- lib/open_api_sdk/models/operations/getcustomer_type.rb
|
269
|
+
- lib/open_api_sdk/models/operations/getcustomers_link.rb
|
268
270
|
- lib/open_api_sdk/models/operations/getcustomers_partner.rb
|
269
271
|
- lib/open_api_sdk/models/operations/getcustomers_request.rb
|
270
272
|
- lib/open_api_sdk/models/operations/getcustomers_response.rb
|
@@ -288,7 +290,6 @@ files:
|
|
288
290
|
- lib/open_api_sdk/models/operations/level.rb
|
289
291
|
- lib/open_api_sdk/models/operations/link.rb
|
290
292
|
- lib/open_api_sdk/models/operations/linkprops.rb
|
291
|
-
- lib/open_api_sdk/models/operations/links.rb
|
292
293
|
- lib/open_api_sdk/models/operations/listdomains_request.rb
|
293
294
|
- lib/open_api_sdk/models/operations/listdomains_response.rb
|
294
295
|
- lib/open_api_sdk/models/operations/listevents_request.rb
|
@@ -311,7 +312,6 @@ files:
|
|
311
312
|
- lib/open_api_sdk/models/operations/retrieveanalytics_response.rb
|
312
313
|
- lib/open_api_sdk/models/operations/retrievelinks_request.rb
|
313
314
|
- lib/open_api_sdk/models/operations/retrievelinks_response.rb
|
314
|
-
- lib/open_api_sdk/models/operations/retrievelinks_responsebody.rb
|
315
315
|
- lib/open_api_sdk/models/operations/retrievepartneranalytics_queryparam_interval.rb
|
316
316
|
- lib/open_api_sdk/models/operations/retrievepartneranalytics_request.rb
|
317
317
|
- lib/open_api_sdk/models/operations/retrievepartneranalytics_response.rb
|
@@ -1,48 +0,0 @@
|
|
1
|
-
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
-
|
3
|
-
# typed: true
|
4
|
-
# frozen_string_literal: true
|
5
|
-
|
6
|
-
|
7
|
-
module OpenApiSDK
|
8
|
-
module Operations
|
9
|
-
|
10
|
-
|
11
|
-
class RetrieveLinksResponseBody < ::Crystalline::FieldAugmented
|
12
|
-
extend T::Sig
|
13
|
-
|
14
|
-
# The number of clicks on the short link.
|
15
|
-
field :clicks, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('clicks') } }
|
16
|
-
# The domain of the short link. If not provided, the primary domain for the workspace will be used (or `dub.sh` if the workspace has no domains).
|
17
|
-
field :domain, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('domain') } }
|
18
|
-
# The unique ID of the short link.
|
19
|
-
field :id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id') } }
|
20
|
-
# The short link slug. If not provided, a random 7-character slug will be generated.
|
21
|
-
field :key, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('key') } }
|
22
|
-
# The number of leads the short links has generated.
|
23
|
-
field :leads, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('leads') } }
|
24
|
-
# The total dollar amount of sales the short links has generated (in cents).
|
25
|
-
field :sale_amount, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('saleAmount') } }
|
26
|
-
# The number of sales the short links has generated.
|
27
|
-
field :sales, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('sales') } }
|
28
|
-
# The full URL of the short link, including the https protocol (e.g. `https://dub.sh/try`).
|
29
|
-
field :short_link, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('shortLink') } }
|
30
|
-
# The destination URL of the short link.
|
31
|
-
field :url, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('url') } }
|
32
|
-
|
33
|
-
|
34
|
-
sig { params(clicks: ::Float, domain: ::String, id: ::String, key: ::String, leads: ::Float, sale_amount: ::Float, sales: ::Float, short_link: ::String, url: ::String).void }
|
35
|
-
def initialize(clicks: nil, domain: nil, id: nil, key: nil, leads: nil, sale_amount: nil, sales: nil, short_link: nil, url: nil)
|
36
|
-
@clicks = clicks
|
37
|
-
@domain = domain
|
38
|
-
@id = id
|
39
|
-
@key = key
|
40
|
-
@leads = leads
|
41
|
-
@sale_amount = sale_amount
|
42
|
-
@sales = sales
|
43
|
-
@short_link = short_link
|
44
|
-
@url = url
|
45
|
-
end
|
46
|
-
end
|
47
|
-
end
|
48
|
-
end
|