dub 0.2.2.pre.alpha.91 → 0.2.2.pre.alpha.95

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,27 +0,0 @@
1
- # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
-
3
- # typed: true
4
- # frozen_string_literal: true
5
-
6
-
7
- module OpenApiSDK
8
- module Shared
9
-
10
-
11
- class ClickEventTestVariants < ::Crystalline::FieldAugmented
12
- extend T::Sig
13
-
14
-
15
- field :percentage, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('percentage') } }
16
-
17
- field :url, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('url') } }
18
-
19
-
20
- sig { params(percentage: ::Float, url: ::String).void }
21
- def initialize(percentage: nil, url: nil)
22
- @percentage = percentage
23
- @url = url
24
- end
25
- end
26
- end
27
- end
@@ -1,17 +0,0 @@
1
- # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
-
3
- # typed: true
4
- # frozen_string_literal: true
5
-
6
-
7
- module OpenApiSDK
8
- module Shared
9
-
10
-
11
- class Event < T::Enum
12
- enums do
13
- CLICK = new('click')
14
- end
15
- end
16
- end
17
- end
@@ -1,172 +0,0 @@
1
- # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
-
3
- # typed: true
4
- # frozen_string_literal: true
5
-
6
-
7
- module OpenApiSDK
8
- module Shared
9
-
10
-
11
- class Link < ::Crystalline::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
-
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
-
23
- field :created_at, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('createdAt') } }
24
- # The description of the short link. 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
-
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
-
31
- field :expired_url, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('expiredUrl') } }
32
-
33
- field :expires_at, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('expiresAt') } }
34
- # 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.
35
- field :external_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('externalId') } }
36
- # The unique ID of the folder assigned to the short link.
37
- field :folder_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('folderId') } }
38
- # Geo targeting information for the short link in JSON format `{[COUNTRY]: https://example.com }`. Learn more: https://d.to/geo
39
- field :geo, ::OpenApiSDK::Shared::ClickEventGeo, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('geo') } }
40
- # The unique ID of the short link.
41
- field :id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id') } }
42
- # The image of the short link. Will be used for Custom Social Media Cards if `proxy` is true.
43
- field :image, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('image') } }
44
- # The iOS destination URL for the short link for iOS device targeting.
45
- field :ios, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('ios') } }
46
- # The short link slug. If not provided, a random 7-character slug will be generated.
47
- field :key, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('key') } }
48
-
49
- field :last_clicked, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('lastClicked') } }
50
- # The number of leads the short links has generated.
51
- field :leads, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('leads') } }
52
- # The ID of the partner the short link is associated with.
53
- field :partner_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('partnerId') } }
54
- # The password required to access the destination URL of the short link.
55
- field :password, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('password') } }
56
- # The ID of the program the short link is associated with.
57
- field :program_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('programId') } }
58
- # The project ID of the short link. This field is deprecated – use `workspaceId` instead.
59
- #
60
- # @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
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') } }
66
- # The full URL of the QR code for the short link (e.g. `https://api.dub.co/qr?url=https://dub.sh/try`).
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') } }
70
- # The total dollar amount of sales the short links has generated (in cents).
71
- field :sale_amount, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('saleAmount') } }
72
- # The number of sales the short links has generated.
73
- field :sales, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('sales') } }
74
- # The full URL of the short link, including the https protocol (e.g. `https://dub.sh/try`).
75
- field :short_link, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('shortLink') } }
76
- # The unique ID of the tag assigned to the short link. This field is deprecated – use `tags` instead.
77
- #
78
- # @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
79
- field :tag_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('tagId') } }
80
- # The tags assigned to the short link.
81
- field :tags, T::Array[::OpenApiSDK::Shared::TagSchema], { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('tags') } }
82
- # 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.
83
- field :tenant_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('tenantId') } }
84
-
85
- field :test_completed_at, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('testCompletedAt') } }
86
-
87
- field :test_started_at, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('testStartedAt') } }
88
- # The title of the short link. Will be used for Custom Social Media Cards if `proxy` is true.
89
- field :title, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('title') } }
90
-
91
- field :track_conversion, T::Boolean, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('trackConversion') } }
92
-
93
- field :updated_at, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('updatedAt') } }
94
-
95
- field :url, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('url') } }
96
-
97
- field :user_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('userId') } }
98
- # The UTM campaign of the short link.
99
- field :utm_campaign, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('utm_campaign') } }
100
- # The UTM content of the short link.
101
- field :utm_content, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('utm_content') } }
102
- # The UTM medium of the short link.
103
- field :utm_medium, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('utm_medium') } }
104
- # The UTM source of the short link.
105
- field :utm_source, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('utm_source') } }
106
- # The UTM term of the short link.
107
- field :utm_term, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('utm_term') } }
108
- # 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
109
- field :video, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('video') } }
110
- # The IDs of the webhooks that the short link is associated with.
111
- field :webhook_ids, T::Array[::String], { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('webhookIds') } }
112
- # The workspace ID of the short link.
113
- field :workspace_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('workspaceId') } }
114
- # An array of A/B test URLs and the percentage of traffic to send to each URL.
115
- field :test_variants, T.nilable(T::Array[::OpenApiSDK::Shared::ClickEventTestVariants]), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('testVariants') } }
116
-
117
-
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
- @android = android
121
- @archived = archived
122
- @clicks = clicks
123
- @comments = comments
124
- @created_at = created_at
125
- @description = description
126
- @do_index = do_index
127
- @domain = domain
128
- @expired_url = expired_url
129
- @expires_at = expires_at
130
- @external_id = external_id
131
- @folder_id = folder_id
132
- @geo = geo
133
- @id = id
134
- @image = image
135
- @ios = ios
136
- @key = key
137
- @last_clicked = last_clicked
138
- @leads = leads
139
- @partner_id = partner_id
140
- @password = password
141
- @program_id = program_id
142
- @project_id = project_id
143
- @proxy = proxy
144
- @public_stats = public_stats
145
- @qr_code = qr_code
146
- @rewrite = rewrite
147
- @sale_amount = sale_amount
148
- @sales = sales
149
- @short_link = short_link
150
- @tag_id = tag_id
151
- @tags = tags
152
- @tenant_id = tenant_id
153
- @test_completed_at = test_completed_at
154
- @test_started_at = test_started_at
155
- @title = title
156
- @track_conversion = track_conversion
157
- @updated_at = updated_at
158
- @url = url
159
- @user_id = user_id
160
- @utm_campaign = utm_campaign
161
- @utm_content = utm_content
162
- @utm_medium = utm_medium
163
- @utm_source = utm_source
164
- @utm_term = utm_term
165
- @video = video
166
- @webhook_ids = webhook_ids
167
- @workspace_id = workspace_id
168
- @test_variants = test_variants
169
- end
170
- end
171
- end
172
- end