dub 0.2.2.pre.alpha.9 → 0.2.2.pre.alpha.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/open_api_sdk/links.rb +78 -0
- data/lib/open_api_sdk/models/operations/bulkdeletelinks_request.rb +24 -0
- data/lib/open_api_sdk/models/operations/bulkdeletelinks_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/bulkdeletelinks_responsebody.rb +24 -0
- data/lib/open_api_sdk/models/operations/click.rb +2 -38
- data/lib/open_api_sdk/models/operations/sale.rb +5 -2
- data/lib/open_api_sdk/models/operations/tracklead_responsebody.rb +2 -8
- data/lib/open_api_sdk/models/operations/tracksale_responsebody.rb +2 -8
- data/lib/open_api_sdk/models/operations/updatelink_requestbody.rb +1 -1
- data/lib/open_api_sdk/models/operations.rb +4 -6
- data/lib/open_api_sdk/sdkconfiguration.rb +3 -3
- metadata +5 -7
- data/lib/open_api_sdk/models/operations/geo.rb +0 -771
- data/lib/open_api_sdk/models/operations/link.rb +0 -135
- data/lib/open_api_sdk/models/operations/tracksale_click.rb +0 -60
- data/lib/open_api_sdk/models/operations/tracksale_geo.rb +0 -771
- data/lib/open_api_sdk/models/operations/tracksale_link.rb +0 -135
@@ -1,135 +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 Link < ::OpenApiSDK::Utils::FieldAugmented
|
12
|
-
extend T::Sig
|
13
|
-
|
14
|
-
# The Android destination URL for the short link for Android device targeting.
|
15
|
-
field :android, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('android') } }
|
16
|
-
# Whether the short link is archived.
|
17
|
-
field :archived, T::Boolean, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('archived') } }
|
18
|
-
# The number of clicks on the short link.
|
19
|
-
field :clicks, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('clicks') } }
|
20
|
-
# The comments for the short link.
|
21
|
-
field :comments, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('comments') } }
|
22
|
-
# The date and time when the short link was created.
|
23
|
-
field :created_at, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('createdAt') } }
|
24
|
-
# The description of the short link generated via `api.dub.co/metatags`. Will be used for Custom Social Media Cards if `proxy` is true.
|
25
|
-
field :description, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('description') } }
|
26
|
-
# Whether to allow search engines to index the short link.
|
27
|
-
field :do_index, T::Boolean, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('doIndex') } }
|
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).
|
29
|
-
field :domain, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('domain') } }
|
30
|
-
# The URL to redirect to when the short link has expired.
|
31
|
-
field :expired_url, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('expiredUrl') } }
|
32
|
-
# The date and time when the short link will expire in ISO-8601 format.
|
33
|
-
field :expires_at, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('expiresAt') } }
|
34
|
-
# This is the ID of the link in your database. If set, it can be used to identify the link in the future. Must be prefixed with 'ext_' when passed as a query parameter.
|
35
|
-
field :external_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('externalId') } }
|
36
|
-
# Geo targeting information for the short link in JSON format `{[COUNTRY]: https://example.com }`. Learn more: https://d.to/geo
|
37
|
-
field :geo, ::OpenApiSDK::Operations::Geo, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('geo') } }
|
38
|
-
# The unique ID of the short link.
|
39
|
-
field :id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id') } }
|
40
|
-
# The image of the short link generated via `api.dub.co/metatags`. Will be used for Custom Social Media Cards if `proxy` is true.
|
41
|
-
field :image, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('image') } }
|
42
|
-
# The iOS destination URL for the short link for iOS device targeting.
|
43
|
-
field :ios, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('ios') } }
|
44
|
-
# The short link slug. If not provided, a random 7-character slug will be generated.
|
45
|
-
field :key, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('key') } }
|
46
|
-
# The date and time when the short link was last clicked.
|
47
|
-
field :last_clicked, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('lastClicked') } }
|
48
|
-
# [BETA]: The number of leads the short links has generated.
|
49
|
-
field :leads, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('leads') } }
|
50
|
-
# The password required to access the destination URL of the short link.
|
51
|
-
field :password, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('password') } }
|
52
|
-
# Whether the short link uses Custom Social Media Cards feature.
|
53
|
-
field :proxy, T::Boolean, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('proxy') } }
|
54
|
-
# Whether the short link's stats are publicly accessible.
|
55
|
-
field :public_stats, T::Boolean, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('publicStats') } }
|
56
|
-
# The full URL of the QR code for the short link (e.g. `https://api.dub.co/qr?url=https://dub.sh/try`).
|
57
|
-
field :qr_code, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('qrCode') } }
|
58
|
-
# Whether the short link uses link cloaking.
|
59
|
-
field :rewrite, T::Boolean, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('rewrite') } }
|
60
|
-
# [BETA]: The total dollar amount of sales the short links has generated (in cents).
|
61
|
-
field :sale_amount, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('saleAmount') } }
|
62
|
-
# [BETA]: The number of sales the short links has generated.
|
63
|
-
field :sales, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('sales') } }
|
64
|
-
# The full URL of the short link, including the https protocol (e.g. `https://dub.sh/try`).
|
65
|
-
field :short_link, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('shortLink') } }
|
66
|
-
# The title of the short link generated via `api.dub.co/metatags`. Will be used for Custom Social Media Cards if `proxy` is true.
|
67
|
-
field :title, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('title') } }
|
68
|
-
# [BETA] Whether to track conversions for the short link.
|
69
|
-
field :track_conversion, T::Boolean, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('trackConversion') } }
|
70
|
-
# The date and time when the short link was last updated.
|
71
|
-
field :updated_at, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('updatedAt') } }
|
72
|
-
# The destination URL of the short link.
|
73
|
-
field :url, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('url') } }
|
74
|
-
# The user ID of the creator of the short link.
|
75
|
-
field :user_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('userId') } }
|
76
|
-
# The UTM campaign of the short link.
|
77
|
-
field :utm_campaign, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('utm_campaign') } }
|
78
|
-
# The UTM content of the short link.
|
79
|
-
field :utm_content, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('utm_content') } }
|
80
|
-
# The UTM medium of the short link.
|
81
|
-
field :utm_medium, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('utm_medium') } }
|
82
|
-
# The UTM source of the short link.
|
83
|
-
field :utm_source, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('utm_source') } }
|
84
|
-
# The UTM term of the short link.
|
85
|
-
field :utm_term, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('utm_term') } }
|
86
|
-
# The custom link preview video (og:video). Will be used for Custom Social Media Cards if `proxy` is true. Learn more: https://d.to/og
|
87
|
-
field :video, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('video') } }
|
88
|
-
# The workspace ID of the short link.
|
89
|
-
field :workspace_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('workspaceId') } }
|
90
|
-
|
91
|
-
|
92
|
-
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, geo: ::OpenApiSDK::Operations::Geo, id: ::String, image: ::String, ios: ::String, key: ::String, last_clicked: ::String, leads: ::Float, password: ::String, proxy: T::Boolean, public_stats: T::Boolean, qr_code: ::String, rewrite: T::Boolean, sale_amount: ::Float, sales: ::Float, short_link: ::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, workspace_id: ::String).void }
|
93
|
-
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, geo: nil, id: nil, image: nil, ios: nil, key: nil, last_clicked: nil, leads: nil, password: nil, proxy: nil, public_stats: nil, qr_code: nil, rewrite: nil, sale_amount: nil, sales: nil, short_link: 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, workspace_id: nil)
|
94
|
-
@android = android
|
95
|
-
@archived = archived
|
96
|
-
@clicks = clicks
|
97
|
-
@comments = comments
|
98
|
-
@created_at = created_at
|
99
|
-
@description = description
|
100
|
-
@do_index = do_index
|
101
|
-
@domain = domain
|
102
|
-
@expired_url = expired_url
|
103
|
-
@expires_at = expires_at
|
104
|
-
@external_id = external_id
|
105
|
-
@geo = geo
|
106
|
-
@id = id
|
107
|
-
@image = image
|
108
|
-
@ios = ios
|
109
|
-
@key = key
|
110
|
-
@last_clicked = last_clicked
|
111
|
-
@leads = leads
|
112
|
-
@password = password
|
113
|
-
@proxy = proxy
|
114
|
-
@public_stats = public_stats
|
115
|
-
@qr_code = qr_code
|
116
|
-
@rewrite = rewrite
|
117
|
-
@sale_amount = sale_amount
|
118
|
-
@sales = sales
|
119
|
-
@short_link = short_link
|
120
|
-
@title = title
|
121
|
-
@track_conversion = track_conversion
|
122
|
-
@updated_at = updated_at
|
123
|
-
@url = url
|
124
|
-
@user_id = user_id
|
125
|
-
@utm_campaign = utm_campaign
|
126
|
-
@utm_content = utm_content
|
127
|
-
@utm_medium = utm_medium
|
128
|
-
@utm_source = utm_source
|
129
|
-
@utm_term = utm_term
|
130
|
-
@video = video
|
131
|
-
@workspace_id = workspace_id
|
132
|
-
end
|
133
|
-
end
|
134
|
-
end
|
135
|
-
end
|
@@ -1,60 +0,0 @@
|
|
1
|
-
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
-
|
3
|
-
# typed: true
|
4
|
-
# frozen_string_literal: true
|
5
|
-
|
6
|
-
|
7
|
-
module OpenApiSDK
|
8
|
-
module Operations
|
9
|
-
|
10
|
-
|
11
|
-
class TrackSaleClick < ::OpenApiSDK::Utils::FieldAugmented
|
12
|
-
extend T::Sig
|
13
|
-
|
14
|
-
|
15
|
-
field :bot, T::Boolean, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('bot') } }
|
16
|
-
|
17
|
-
field :browser, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('browser') } }
|
18
|
-
|
19
|
-
field :city, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('city') } }
|
20
|
-
|
21
|
-
field :continent, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('continent') } }
|
22
|
-
|
23
|
-
field :country, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('country') } }
|
24
|
-
|
25
|
-
field :device, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('device') } }
|
26
|
-
|
27
|
-
field :id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id') } }
|
28
|
-
|
29
|
-
field :ip, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('ip') } }
|
30
|
-
|
31
|
-
field :os, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('os') } }
|
32
|
-
|
33
|
-
field :qr, T::Boolean, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('qr') } }
|
34
|
-
|
35
|
-
field :referer, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('referer') } }
|
36
|
-
|
37
|
-
field :ua, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('ua') } }
|
38
|
-
|
39
|
-
field :url, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('url') } }
|
40
|
-
|
41
|
-
|
42
|
-
sig { params(bot: T::Boolean, browser: ::String, city: ::String, continent: ::String, country: ::String, device: ::String, id: ::String, ip: ::String, os: ::String, qr: T::Boolean, referer: ::String, ua: ::String, url: ::String).void }
|
43
|
-
def initialize(bot: nil, browser: nil, city: nil, continent: nil, country: nil, device: nil, id: nil, ip: nil, os: nil, qr: nil, referer: nil, ua: nil, url: nil)
|
44
|
-
@bot = bot
|
45
|
-
@browser = browser
|
46
|
-
@city = city
|
47
|
-
@continent = continent
|
48
|
-
@country = country
|
49
|
-
@device = device
|
50
|
-
@id = id
|
51
|
-
@ip = ip
|
52
|
-
@os = os
|
53
|
-
@qr = qr
|
54
|
-
@referer = referer
|
55
|
-
@ua = ua
|
56
|
-
@url = url
|
57
|
-
end
|
58
|
-
end
|
59
|
-
end
|
60
|
-
end
|