dub 0.2.2.pre.alpha.78 → 0.2.2
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/dub.rb +5 -9
- data/lib/open_api_sdk/analytics.rb +13 -19
- data/lib/open_api_sdk/domains.rb +95 -115
- data/lib/open_api_sdk/dub.rb +40 -37
- data/lib/open_api_sdk/links.rb +156 -276
- data/lib/open_api_sdk/metatags.rb +4 -10
- data/lib/open_api_sdk/models/operations/bulkcreatelinks_response.rb +7 -7
- data/lib/open_api_sdk/models/operations/bulkupdatelinks_requestbody.rb +6 -9
- data/lib/open_api_sdk/models/operations/bulkupdatelinks_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/color.rb +2 -1
- data/lib/open_api_sdk/models/operations/createdomain_requestbody.rb +4 -16
- data/lib/open_api_sdk/models/operations/createdomain_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/createlink_requestbody.rb +13 -51
- data/lib/open_api_sdk/models/operations/createlink_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/createtag_requestbody.rb +2 -2
- data/lib/open_api_sdk/models/operations/createtag_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/data.rb +12 -50
- data/lib/open_api_sdk/models/operations/deletedomain_request.rb +2 -2
- data/lib/open_api_sdk/models/operations/deletedomain_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/deletedomain_responsebody.rb +2 -2
- data/lib/open_api_sdk/models/operations/deletelink_request.rb +2 -2
- data/lib/open_api_sdk/models/operations/deletelink_response.rb +3 -3
- data/lib/open_api_sdk/models/operations/deletelink_responsebody.rb +3 -3
- data/lib/open_api_sdk/models/operations/event.rb +3 -2
- data/lib/open_api_sdk/models/operations/getlinkinfo_request.rb +3 -3
- data/lib/open_api_sdk/models/operations/getlinkinfo_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/getlinks_request.rb +10 -25
- data/lib/open_api_sdk/models/operations/getlinks_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/getlinkscount_request.rb +7 -13
- data/lib/open_api_sdk/models/operations/getlinkscount_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/getmetatags_request.rb +2 -2
- data/lib/open_api_sdk/models/operations/getmetatags_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/getmetatags_responsebody.rb +2 -2
- data/lib/open_api_sdk/models/operations/getqrcode_request.rb +5 -14
- data/lib/open_api_sdk/models/operations/getqrcode_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/gettags_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/getworkspace_request.rb +2 -2
- data/lib/open_api_sdk/models/operations/getworkspace_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/groupby.rb +4 -12
- data/lib/open_api_sdk/models/operations/interval.rb +5 -5
- data/lib/open_api_sdk/models/operations/level.rb +2 -1
- data/lib/open_api_sdk/models/operations/listdomains_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/paymentprocessor.rb +2 -3
- data/lib/open_api_sdk/models/operations/requestbody.rb +13 -51
- data/lib/open_api_sdk/models/operations/retrieveanalytics_request.rb +11 -53
- data/lib/open_api_sdk/models/operations/retrieveanalytics_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/sort.rb +3 -5
- data/lib/open_api_sdk/models/operations/trackcustomer_requestbody.rb +33 -0
- data/lib/open_api_sdk/models/operations/{createpartner_response.rb → trackcustomer_response.rb} +5 -5
- data/lib/open_api_sdk/models/operations/trackcustomer_responsebody.rb +33 -0
- data/lib/open_api_sdk/models/operations/tracklead_requestbody.rb +9 -20
- data/lib/open_api_sdk/models/operations/tracklead_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/tracklead_responsebody.rb +23 -8
- data/lib/open_api_sdk/models/operations/tracksale_requestbody.rb +8 -16
- data/lib/open_api_sdk/models/operations/tracksale_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/tracksale_responsebody.rb +20 -8
- data/lib/open_api_sdk/models/operations/updatedomain_request.rb +2 -2
- data/lib/open_api_sdk/models/operations/updatedomain_requestbody.rb +4 -16
- data/lib/open_api_sdk/models/operations/updatedomain_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/updatelink_request.rb +2 -2
- data/lib/open_api_sdk/models/operations/updatelink_requestbody.rb +14 -52
- data/lib/open_api_sdk/models/operations/updatelink_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/updatetag_color.rb +2 -1
- data/lib/open_api_sdk/models/operations/updatetag_request.rb +2 -2
- data/lib/open_api_sdk/models/operations/updatetag_requestbody.rb +2 -2
- data/lib/open_api_sdk/models/operations/updatetag_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/updateworkspace_request.rb +2 -2
- data/lib/open_api_sdk/models/operations/updateworkspace_requestbody.rb +4 -13
- data/lib/open_api_sdk/models/operations/updateworkspace_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/upsertlink_requestbody.rb +13 -51
- data/lib/open_api_sdk/models/operations/upsertlink_response.rb +2 -2
- data/lib/open_api_sdk/models/operations.rb +22 -116
- data/lib/open_api_sdk/models/shared/badrequest.rb +3 -3
- data/lib/open_api_sdk/models/shared/code.rb +2 -1
- data/lib/open_api_sdk/models/shared/color.rb +2 -1
- data/lib/open_api_sdk/models/shared/conflict.rb +3 -3
- data/lib/open_api_sdk/models/shared/conflict_code.rb +2 -1
- data/lib/open_api_sdk/models/shared/conflict_error.rb +2 -2
- data/lib/open_api_sdk/models/shared/countrycode.rb +2 -1
- data/lib/open_api_sdk/models/shared/domains.rb +4 -7
- data/lib/open_api_sdk/models/shared/domainschema.rb +4 -19
- data/lib/open_api_sdk/models/shared/error.rb +2 -2
- data/lib/open_api_sdk/models/shared/forbidden.rb +3 -3
- data/lib/open_api_sdk/models/shared/forbidden_code.rb +2 -1
- data/lib/open_api_sdk/models/shared/forbidden_error.rb +2 -2
- data/lib/open_api_sdk/models/shared/geo.rb +2 -2
- data/lib/open_api_sdk/models/shared/internalservererror.rb +3 -3
- data/lib/open_api_sdk/models/shared/internalservererror_code.rb +2 -1
- data/lib/open_api_sdk/models/shared/internalservererror_error.rb +2 -2
- data/lib/open_api_sdk/models/shared/inviteexpired.rb +3 -3
- data/lib/open_api_sdk/models/shared/inviteexpired_code.rb +2 -1
- data/lib/open_api_sdk/models/shared/inviteexpired_error.rb +2 -2
- data/lib/open_api_sdk/models/shared/linkgeotargeting.rb +2 -2
- data/lib/open_api_sdk/models/shared/linkschema.rb +8 -29
- data/lib/open_api_sdk/models/shared/notfound.rb +3 -3
- data/lib/open_api_sdk/models/shared/notfound_code.rb +2 -1
- data/lib/open_api_sdk/models/shared/notfound_error.rb +2 -2
- data/lib/open_api_sdk/models/shared/plan.rb +2 -1
- data/lib/open_api_sdk/models/shared/ratelimitexceeded.rb +3 -3
- data/lib/open_api_sdk/models/shared/ratelimitexceeded_code.rb +2 -1
- data/lib/open_api_sdk/models/shared/ratelimitexceeded_error.rb +2 -2
- data/lib/open_api_sdk/models/shared/role.rb +2 -1
- data/lib/open_api_sdk/models/shared/security.rb +4 -4
- data/lib/open_api_sdk/models/shared/tagschema.rb +2 -2
- data/lib/open_api_sdk/models/shared/unauthorized.rb +3 -3
- data/lib/open_api_sdk/models/shared/unauthorized_code.rb +2 -1
- data/lib/open_api_sdk/models/shared/unauthorized_error.rb +2 -2
- data/lib/open_api_sdk/models/shared/unprocessableentity.rb +3 -3
- data/lib/open_api_sdk/models/shared/unprocessableentity_code.rb +2 -1
- data/lib/open_api_sdk/models/shared/unprocessableentity_error.rb +2 -2
- data/lib/open_api_sdk/models/shared/users.rb +2 -2
- data/lib/open_api_sdk/models/shared/workspaceschema.rb +8 -47
- data/lib/open_api_sdk/models/shared.rb +2 -12
- data/lib/open_api_sdk/qr_codes.rb +13 -18
- data/lib/open_api_sdk/sdkconfiguration.rb +10 -26
- data/lib/open_api_sdk/tags.rb +60 -161
- data/lib/open_api_sdk/track.rb +109 -34
- data/lib/{crystalline → open_api_sdk/utils}/metadata_fields.rb +20 -33
- data/lib/{crystalline → open_api_sdk/utils}/t.rb +1 -1
- data/lib/open_api_sdk/utils/utils.rb +60 -16
- data/lib/open_api_sdk/workspaces.rb +25 -35
- metadata +12 -166
- data/lib/crystalline/utils.rb +0 -65
- data/lib/crystalline.rb +0 -12
- data/lib/open_api_sdk/customers.rb +0 -464
- data/lib/open_api_sdk/embed_tokens.rb +0 -112
- data/lib/open_api_sdk/events.rb +0 -105
- data/lib/open_api_sdk/folders.rb +0 -373
- data/lib/open_api_sdk/models/operations/accesslevel.rb +0 -18
- data/lib/open_api_sdk/models/operations/bulkdeletelinks_request.rb +0 -24
- data/lib/open_api_sdk/models/operations/bulkdeletelinks_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/bulkdeletelinks_responsebody.rb +0 -24
- data/lib/open_api_sdk/models/operations/click.rb +0 -24
- data/lib/open_api_sdk/models/operations/country.rb +0 -266
- data/lib/open_api_sdk/models/operations/createcustomer_discount.rb +0 -42
- data/lib/open_api_sdk/models/operations/createcustomer_link.rb +0 -36
- data/lib/open_api_sdk/models/operations/createcustomer_partner.rb +0 -33
- data/lib/open_api_sdk/models/operations/createcustomer_requestbody.rb +0 -33
- data/lib/open_api_sdk/models/operations/createcustomer_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/createcustomer_responsebody.rb +0 -51
- data/lib/open_api_sdk/models/operations/createcustomer_type.rb +0 -18
- data/lib/open_api_sdk/models/operations/createfolder_requestbody.rb +0 -27
- data/lib/open_api_sdk/models/operations/createfolder_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/createpartner_requestbody.rb +0 -48
- data/lib/open_api_sdk/models/operations/createpartner_responsebody.rb +0 -75
- data/lib/open_api_sdk/models/operations/createpartnerlink_linkprops.rb +0 -99
- data/lib/open_api_sdk/models/operations/createpartnerlink_requestbody.rb +0 -42
- data/lib/open_api_sdk/models/operations/createpartnerlink_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/createreferralsembedtoken_country.rb +0 -266
- data/lib/open_api_sdk/models/operations/createreferralsembedtoken_linkprops.rb +0 -99
- data/lib/open_api_sdk/models/operations/createreferralsembedtoken_requestbody.rb +0 -33
- data/lib/open_api_sdk/models/operations/createreferralsembedtoken_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/createreferralsembedtoken_responsebody.rb +0 -27
- data/lib/open_api_sdk/models/operations/customer.rb +0 -33
- data/lib/open_api_sdk/models/operations/deletecustomer_request.rb +0 -24
- data/lib/open_api_sdk/models/operations/deletecustomer_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/deletecustomer_responsebody.rb +0 -24
- data/lib/open_api_sdk/models/operations/deletefolder_request.rb +0 -24
- data/lib/open_api_sdk/models/operations/deletefolder_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/deletefolder_responsebody.rb +0 -24
- data/lib/open_api_sdk/models/operations/deletetag_request.rb +0 -24
- data/lib/open_api_sdk/models/operations/deletetag_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/deletetag_responsebody.rb +0 -24
- data/lib/open_api_sdk/models/operations/discount.rb +0 -42
- data/lib/open_api_sdk/models/operations/getcustomer_discount.rb +0 -42
- data/lib/open_api_sdk/models/operations/getcustomer_link.rb +0 -36
- data/lib/open_api_sdk/models/operations/getcustomer_partner.rb +0 -33
- data/lib/open_api_sdk/models/operations/getcustomer_request.rb +0 -27
- data/lib/open_api_sdk/models/operations/getcustomer_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/getcustomer_responsebody.rb +0 -51
- data/lib/open_api_sdk/models/operations/getcustomer_type.rb +0 -18
- data/lib/open_api_sdk/models/operations/getcustomers_partner.rb +0 -33
- data/lib/open_api_sdk/models/operations/getcustomers_request.rb +0 -30
- data/lib/open_api_sdk/models/operations/getcustomers_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/gettags_queryparam_sortby.rb +0 -18
- data/lib/open_api_sdk/models/operations/gettags_queryparam_sortorder.rb +0 -18
- data/lib/open_api_sdk/models/operations/gettags_request.rb +0 -39
- data/lib/open_api_sdk/models/operations/link.rb +0 -36
- data/lib/open_api_sdk/models/operations/linkprops.rb +0 -99
- data/lib/open_api_sdk/models/operations/links.rb +0 -48
- data/lib/open_api_sdk/models/operations/listdomains_request.rb +0 -33
- data/lib/open_api_sdk/models/operations/listevents_request.rb +0 -135
- data/lib/open_api_sdk/models/operations/listevents_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/listfolders_request.rb +0 -33
- data/lib/open_api_sdk/models/operations/listfolders_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/mode.rb +0 -18
- data/lib/open_api_sdk/models/operations/order.rb +0 -20
- data/lib/open_api_sdk/models/operations/partner.rb +0 -45
- data/lib/open_api_sdk/models/operations/queryparam_event.rb +0 -19
- data/lib/open_api_sdk/models/operations/queryparam_groupby.rb +0 -19
- data/lib/open_api_sdk/models/operations/queryparam_interval.rb +0 -25
- data/lib/open_api_sdk/models/operations/queryparam_sortby.rb +0 -17
- data/lib/open_api_sdk/models/operations/queryparam_sortorder.rb +0 -18
- data/lib/open_api_sdk/models/operations/queryparam_trigger.rb +0 -18
- data/lib/open_api_sdk/models/operations/responsebody.rb +0 -51
- data/lib/open_api_sdk/models/operations/retrievepartneranalytics_queryparam_interval.rb +0 -25
- data/lib/open_api_sdk/models/operations/retrievepartneranalytics_request.rb +0 -45
- data/lib/open_api_sdk/models/operations/retrievepartneranalytics_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/sale.rb +0 -36
- data/lib/open_api_sdk/models/operations/sortby.rb +0 -20
- data/lib/open_api_sdk/models/operations/sortorder.rb +0 -18
- data/lib/open_api_sdk/models/operations/status.rb +0 -21
- data/lib/open_api_sdk/models/operations/tracksale_customer.rb +0 -36
- data/lib/open_api_sdk/models/operations/trigger.rb +0 -18
- data/lib/open_api_sdk/models/operations/type.rb +0 -18
- data/lib/open_api_sdk/models/operations/updatecustomer_discount.rb +0 -42
- data/lib/open_api_sdk/models/operations/updatecustomer_link.rb +0 -36
- data/lib/open_api_sdk/models/operations/updatecustomer_partner.rb +0 -33
- data/lib/open_api_sdk/models/operations/updatecustomer_request.rb +0 -30
- data/lib/open_api_sdk/models/operations/updatecustomer_requestbody.rb +0 -33
- data/lib/open_api_sdk/models/operations/updatecustomer_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/updatecustomer_responsebody.rb +0 -51
- data/lib/open_api_sdk/models/operations/updatecustomer_type.rb +0 -18
- data/lib/open_api_sdk/models/operations/updatefolder_accesslevel.rb +0 -18
- data/lib/open_api_sdk/models/operations/updatefolder_request.rb +0 -27
- data/lib/open_api_sdk/models/operations/updatefolder_requestbody.rb +0 -27
- data/lib/open_api_sdk/models/operations/updatefolder_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/updatepartnersale_requestbody.rb +0 -36
- data/lib/open_api_sdk/models/operations/updatepartnersale_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/updatepartnersale_responsebody.rb +0 -45
- data/lib/open_api_sdk/models/operations/updatepartnersale_status.rb +0 -22
- data/lib/open_api_sdk/models/operations/upsertpartnerlink_linkprops.rb +0 -99
- data/lib/open_api_sdk/models/operations/upsertpartnerlink_requestbody.rb +0 -42
- data/lib/open_api_sdk/models/operations/upsertpartnerlink_response.rb +0 -60
- data/lib/open_api_sdk/models/shared/accesslevel.rb +0 -18
- data/lib/open_api_sdk/models/shared/click.rb +0 -63
- data/lib/open_api_sdk/models/shared/clickevent.rb +0 -98
- data/lib/open_api_sdk/models/shared/clickevent_geo.rb +0 -771
- data/lib/open_api_sdk/models/shared/continentcode.rb +0 -23
- data/lib/open_api_sdk/models/shared/event.rb +0 -17
- data/lib/open_api_sdk/models/shared/folderschema.rb +0 -42
- data/lib/open_api_sdk/models/shared/link.rb +0 -163
- data/lib/open_api_sdk/models/shared/registereddomain.rb +0 -30
- data/lib/open_api_sdk/models/shared/type.rb +0 -18
- data/lib/open_api_sdk/partners.rb +0 -461
- data/lib/open_api_sdk/utils/retries.rb +0 -95
@@ -1,42 +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 GetCustomerDiscount < ::Crystalline::FieldAugmented
|
12
|
-
extend T::Sig
|
13
|
-
|
14
|
-
|
15
|
-
field :amount, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('amount') } }
|
16
|
-
|
17
|
-
field :coupon_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('couponId') } }
|
18
|
-
|
19
|
-
field :coupon_test_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('couponTestId') } }
|
20
|
-
|
21
|
-
field :id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id') } }
|
22
|
-
|
23
|
-
field :max_duration, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('maxDuration') } }
|
24
|
-
|
25
|
-
field :type, ::OpenApiSDK::Operations::GetCustomerType, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('type'), 'decoder': Utils.enum_from_string(::OpenApiSDK::Operations::GetCustomerType, false) } }
|
26
|
-
|
27
|
-
field :partners_count, T.nilable(::Float), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('partnersCount') } }
|
28
|
-
|
29
|
-
|
30
|
-
sig { params(amount: ::Float, coupon_id: ::String, coupon_test_id: ::String, id: ::String, max_duration: ::Float, type: ::OpenApiSDK::Operations::GetCustomerType, partners_count: T.nilable(::Float)).void }
|
31
|
-
def initialize(amount: nil, coupon_id: nil, coupon_test_id: nil, id: nil, max_duration: nil, type: nil, partners_count: nil)
|
32
|
-
@amount = amount
|
33
|
-
@coupon_id = coupon_id
|
34
|
-
@coupon_test_id = coupon_test_id
|
35
|
-
@id = id
|
36
|
-
@max_duration = max_duration
|
37
|
-
@type = type
|
38
|
-
@partners_count = partners_count
|
39
|
-
end
|
40
|
-
end
|
41
|
-
end
|
42
|
-
end
|
@@ -1,36 +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 GetCustomerLink < ::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
|
@@ -1,33 +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 GetCustomerPartner < ::Crystalline::FieldAugmented
|
12
|
-
extend T::Sig
|
13
|
-
|
14
|
-
|
15
|
-
field :email, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('email') } }
|
16
|
-
|
17
|
-
field :id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id') } }
|
18
|
-
|
19
|
-
field :image, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('image') } }
|
20
|
-
|
21
|
-
field :name, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('name') } }
|
22
|
-
|
23
|
-
|
24
|
-
sig { params(email: ::String, id: ::String, image: ::String, name: ::String).void }
|
25
|
-
def initialize(email: nil, id: nil, image: nil, name: nil)
|
26
|
-
@email = email
|
27
|
-
@id = id
|
28
|
-
@image = image
|
29
|
-
@name = name
|
30
|
-
end
|
31
|
-
end
|
32
|
-
end
|
33
|
-
end
|
@@ -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 Operations
|
9
|
-
|
10
|
-
|
11
|
-
class GetCustomerRequest < ::Crystalline::FieldAugmented
|
12
|
-
extend T::Sig
|
13
|
-
|
14
|
-
# The unique ID of the customer. You may use either the customer's `id` on Dub (obtained via `/customers` endpoint) or their `externalId` (unique ID within your system, prefixed with `ext_`, e.g. `ext_123`).
|
15
|
-
field :id, ::String, { 'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': false } }
|
16
|
-
# Whether to include expanded fields on the customer (`link`, `partner`, `discount`).
|
17
|
-
field :include_expanded_fields, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'includeExpandedFields', 'style': 'form', 'explode': true } }
|
18
|
-
|
19
|
-
|
20
|
-
sig { params(id: ::String, include_expanded_fields: T.nilable(T::Boolean)).void }
|
21
|
-
def initialize(id: nil, include_expanded_fields: nil)
|
22
|
-
@id = id
|
23
|
-
@include_expanded_fields = include_expanded_fields
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
27
|
-
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 GetCustomerResponse < ::Crystalline::FieldAugmented
|
12
|
-
extend T::Sig
|
13
|
-
|
14
|
-
# HTTP response content type for this operation
|
15
|
-
field :content_type, ::String
|
16
|
-
# Raw HTTP response; suitable for custom response parsing
|
17
|
-
field :raw_response, ::Faraday::Response
|
18
|
-
# HTTP response status code for this operation
|
19
|
-
field :status_code, ::Integer
|
20
|
-
# The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).
|
21
|
-
field :bad_request, T.nilable(::OpenApiSDK::Shared::BadRequest)
|
22
|
-
# This response is sent when a request conflicts with the current state of the server.
|
23
|
-
field :conflict, T.nilable(::OpenApiSDK::Shared::Conflict)
|
24
|
-
# The client does not have access rights to the content; that is, it is unauthorized, so the server is refusing to give the requested resource. Unlike 401 Unauthorized, the client's identity is known to the server.
|
25
|
-
field :forbidden, T.nilable(::OpenApiSDK::Shared::Forbidden)
|
26
|
-
# The server has encountered a situation it does not know how to handle.
|
27
|
-
field :internal_server_error, T.nilable(::OpenApiSDK::Shared::InternalServerError)
|
28
|
-
# This response is sent when the requested content has been permanently deleted from server, with no forwarding address.
|
29
|
-
field :invite_expired, T.nilable(::OpenApiSDK::Shared::InviteExpired)
|
30
|
-
# The server cannot find the requested resource.
|
31
|
-
field :not_found, T.nilable(::OpenApiSDK::Shared::NotFound)
|
32
|
-
# The customer object.
|
33
|
-
field :object, T.nilable(::OpenApiSDK::Operations::GetCustomerResponseBody)
|
34
|
-
# The user has sent too many requests in a given amount of time ("rate limiting")
|
35
|
-
field :rate_limit_exceeded, T.nilable(::OpenApiSDK::Shared::RateLimitExceeded)
|
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
|
-
field :unauthorized, T.nilable(::OpenApiSDK::Shared::Unauthorized)
|
38
|
-
# The request was well-formed but was unable to be followed due to semantic errors.
|
39
|
-
field :unprocessable_entity, T.nilable(::OpenApiSDK::Shared::UnprocessableEntity)
|
40
|
-
|
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), not_found: T.nilable(::OpenApiSDK::Shared::NotFound), object: T.nilable(::OpenApiSDK::Operations::GetCustomerResponseBody), 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, not_found: nil, object: nil, rate_limit_exceeded: nil, unauthorized: nil, unprocessable_entity: nil)
|
44
|
-
@content_type = content_type
|
45
|
-
@raw_response = raw_response
|
46
|
-
@status_code = status_code
|
47
|
-
@bad_request = bad_request
|
48
|
-
@conflict = conflict
|
49
|
-
@forbidden = forbidden
|
50
|
-
@internal_server_error = internal_server_error
|
51
|
-
@invite_expired = invite_expired
|
52
|
-
@not_found = not_found
|
53
|
-
@object = object
|
54
|
-
@rate_limit_exceeded = rate_limit_exceeded
|
55
|
-
@unauthorized = unauthorized
|
56
|
-
@unprocessable_entity = unprocessable_entity
|
57
|
-
end
|
58
|
-
end
|
59
|
-
end
|
60
|
-
end
|
@@ -1,51 +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
|
-
# The customer object.
|
11
|
-
class GetCustomerResponseBody < ::Crystalline::FieldAugmented
|
12
|
-
extend T::Sig
|
13
|
-
|
14
|
-
# The date the customer was created.
|
15
|
-
field :created_at, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('createdAt') } }
|
16
|
-
# Unique identifier for the customer in the client's app.
|
17
|
-
field :external_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('externalId') } }
|
18
|
-
# The unique ID of the customer. You may use either the customer's `id` on Dub (obtained via `/customers` endpoint) or their `externalId` (unique ID within your system, prefixed with `ext_`, e.g. `ext_123`).
|
19
|
-
field :id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id') } }
|
20
|
-
# Name of the customer.
|
21
|
-
field :name, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('name') } }
|
22
|
-
# Avatar URL of the customer.
|
23
|
-
field :avatar, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('avatar') } }
|
24
|
-
# Country of the customer.
|
25
|
-
field :country, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('country') } }
|
26
|
-
|
27
|
-
field :discount, T.nilable(::OpenApiSDK::Operations::GetCustomerDiscount), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('discount') } }
|
28
|
-
# Email of the customer.
|
29
|
-
field :email, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('email') } }
|
30
|
-
|
31
|
-
field :link, T.nilable(::OpenApiSDK::Operations::GetCustomerLink), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('link') } }
|
32
|
-
|
33
|
-
field :partner, T.nilable(::OpenApiSDK::Operations::GetCustomerPartner), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('partner') } }
|
34
|
-
|
35
|
-
|
36
|
-
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::GetCustomerDiscount), email: T.nilable(::String), link: T.nilable(::OpenApiSDK::Operations::GetCustomerLink), partner: T.nilable(::OpenApiSDK::Operations::GetCustomerPartner)).void }
|
37
|
-
def initialize(created_at: nil, external_id: nil, id: nil, name: nil, avatar: nil, country: nil, discount: nil, email: nil, link: nil, partner: nil)
|
38
|
-
@created_at = created_at
|
39
|
-
@external_id = external_id
|
40
|
-
@id = id
|
41
|
-
@name = name
|
42
|
-
@avatar = avatar
|
43
|
-
@country = country
|
44
|
-
@discount = discount
|
45
|
-
@email = email
|
46
|
-
@link = link
|
47
|
-
@partner = partner
|
48
|
-
end
|
49
|
-
end
|
50
|
-
end
|
51
|
-
end
|
@@ -1,18 +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 GetCustomerType < T::Enum
|
12
|
-
enums do
|
13
|
-
PERCENTAGE = new('percentage')
|
14
|
-
FLAT = new('flat')
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
@@ -1,33 +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 GetCustomersPartner < ::Crystalline::FieldAugmented
|
12
|
-
extend T::Sig
|
13
|
-
|
14
|
-
|
15
|
-
field :email, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('email') } }
|
16
|
-
|
17
|
-
field :id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id') } }
|
18
|
-
|
19
|
-
field :image, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('image') } }
|
20
|
-
|
21
|
-
field :name, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('name') } }
|
22
|
-
|
23
|
-
|
24
|
-
sig { params(email: ::String, id: ::String, image: ::String, name: ::String).void }
|
25
|
-
def initialize(email: nil, id: nil, image: nil, name: nil)
|
26
|
-
@email = email
|
27
|
-
@id = id
|
28
|
-
@image = image
|
29
|
-
@name = name
|
30
|
-
end
|
31
|
-
end
|
32
|
-
end
|
33
|
-
end
|
@@ -1,30 +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 GetCustomersRequest < ::Crystalline::FieldAugmented
|
12
|
-
extend T::Sig
|
13
|
-
|
14
|
-
# A case-sensitive filter on the list based on the customer's `email` field. The value must be a string.
|
15
|
-
field :email, T.nilable(::String), { 'query_param': { 'field_name': 'email', 'style': 'form', 'explode': true } }
|
16
|
-
# A case-sensitive filter on the list based on the customer's `externalId` field. The value must be a string.
|
17
|
-
field :external_id, T.nilable(::String), { 'query_param': { 'field_name': 'externalId', 'style': 'form', 'explode': true } }
|
18
|
-
# Whether to include expanded fields on the customer (`link`, `partner`, `discount`).
|
19
|
-
field :include_expanded_fields, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'includeExpandedFields', 'style': 'form', 'explode': true } }
|
20
|
-
|
21
|
-
|
22
|
-
sig { params(email: T.nilable(::String), external_id: T.nilable(::String), include_expanded_fields: T.nilable(T::Boolean)).void }
|
23
|
-
def initialize(email: nil, external_id: nil, include_expanded_fields: nil)
|
24
|
-
@email = email
|
25
|
-
@external_id = external_id
|
26
|
-
@include_expanded_fields = include_expanded_fields
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
30
|
-
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 GetCustomersResponse < ::Crystalline::FieldAugmented
|
12
|
-
extend T::Sig
|
13
|
-
|
14
|
-
# HTTP response content type for this operation
|
15
|
-
field :content_type, ::String
|
16
|
-
# Raw HTTP response; suitable for custom response parsing
|
17
|
-
field :raw_response, ::Faraday::Response
|
18
|
-
# HTTP response status code for this operation
|
19
|
-
field :status_code, ::Integer
|
20
|
-
# The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).
|
21
|
-
field :bad_request, T.nilable(::OpenApiSDK::Shared::BadRequest)
|
22
|
-
# This response is sent when a request conflicts with the current state of the server.
|
23
|
-
field :conflict, T.nilable(::OpenApiSDK::Shared::Conflict)
|
24
|
-
# The client does not have access rights to the content; that is, it is unauthorized, so the server is refusing to give the requested resource. Unlike 401 Unauthorized, the client's identity is known to the server.
|
25
|
-
field :forbidden, T.nilable(::OpenApiSDK::Shared::Forbidden)
|
26
|
-
# The server has encountered a situation it does not know how to handle.
|
27
|
-
field :internal_server_error, T.nilable(::OpenApiSDK::Shared::InternalServerError)
|
28
|
-
# This response is sent when the requested content has been permanently deleted from server, with no forwarding address.
|
29
|
-
field :invite_expired, T.nilable(::OpenApiSDK::Shared::InviteExpired)
|
30
|
-
# The server cannot find the requested resource.
|
31
|
-
field :not_found, T.nilable(::OpenApiSDK::Shared::NotFound)
|
32
|
-
# The user has sent too many requests in a given amount of time ("rate limiting")
|
33
|
-
field :rate_limit_exceeded, T.nilable(::OpenApiSDK::Shared::RateLimitExceeded)
|
34
|
-
# The list of customers.
|
35
|
-
field :response_bodies, T.nilable(T::Array[::OpenApiSDK::Operations::ResponseBody])
|
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
|
-
field :unauthorized, T.nilable(::OpenApiSDK::Shared::Unauthorized)
|
38
|
-
# The request was well-formed but was unable to be followed due to semantic errors.
|
39
|
-
field :unprocessable_entity, T.nilable(::OpenApiSDK::Shared::UnprocessableEntity)
|
40
|
-
|
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), not_found: T.nilable(::OpenApiSDK::Shared::NotFound), rate_limit_exceeded: T.nilable(::OpenApiSDK::Shared::RateLimitExceeded), response_bodies: T.nilable(T::Array[::OpenApiSDK::Operations::ResponseBody]), 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, not_found: nil, rate_limit_exceeded: nil, response_bodies: nil, unauthorized: nil, unprocessable_entity: nil)
|
44
|
-
@content_type = content_type
|
45
|
-
@raw_response = raw_response
|
46
|
-
@status_code = status_code
|
47
|
-
@bad_request = bad_request
|
48
|
-
@conflict = conflict
|
49
|
-
@forbidden = forbidden
|
50
|
-
@internal_server_error = internal_server_error
|
51
|
-
@invite_expired = invite_expired
|
52
|
-
@not_found = not_found
|
53
|
-
@rate_limit_exceeded = rate_limit_exceeded
|
54
|
-
@response_bodies = response_bodies
|
55
|
-
@unauthorized = unauthorized
|
56
|
-
@unprocessable_entity = unprocessable_entity
|
57
|
-
end
|
58
|
-
end
|
59
|
-
end
|
60
|
-
end
|
@@ -1,18 +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
|
-
# GetTagsQueryParamSortBy - The field to sort the tags by.
|
11
|
-
class GetTagsQueryParamSortBy < T::Enum
|
12
|
-
enums do
|
13
|
-
NAME = new('name')
|
14
|
-
CREATED_AT = new('createdAt')
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
@@ -1,18 +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
|
-
# GetTagsQueryParamSortOrder - The order to sort the tags by.
|
11
|
-
class GetTagsQueryParamSortOrder < T::Enum
|
12
|
-
enums do
|
13
|
-
ASC = new('asc')
|
14
|
-
DESC = new('desc')
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
@@ -1,39 +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 GetTagsRequest < ::Crystalline::FieldAugmented
|
12
|
-
extend T::Sig
|
13
|
-
|
14
|
-
# IDs of tags to filter by.
|
15
|
-
field :ids, T.nilable(::Object), { 'query_param': { 'field_name': 'ids', 'style': 'form', 'explode': true } }
|
16
|
-
# The page number for pagination.
|
17
|
-
field :page, T.nilable(::Float), { 'query_param': { 'field_name': 'page', 'style': 'form', 'explode': true } }
|
18
|
-
# The number of items per page.
|
19
|
-
field :page_size, T.nilable(::Float), { 'query_param': { 'field_name': 'pageSize', 'style': 'form', 'explode': true } }
|
20
|
-
# The search term to filter the tags by.
|
21
|
-
field :search, T.nilable(::String), { 'query_param': { 'field_name': 'search', 'style': 'form', 'explode': true } }
|
22
|
-
# The field to sort the tags by.
|
23
|
-
field :sort_by, T.nilable(::OpenApiSDK::Operations::GetTagsQueryParamSortBy), { 'query_param': { 'field_name': 'sortBy', 'style': 'form', 'explode': true } }
|
24
|
-
# The order to sort the tags by.
|
25
|
-
field :sort_order, T.nilable(::OpenApiSDK::Operations::GetTagsQueryParamSortOrder), { 'query_param': { 'field_name': 'sortOrder', 'style': 'form', 'explode': true } }
|
26
|
-
|
27
|
-
|
28
|
-
sig { params(ids: T.nilable(::Object), page: T.nilable(::Float), page_size: T.nilable(::Float), search: T.nilable(::String), sort_by: T.nilable(::OpenApiSDK::Operations::GetTagsQueryParamSortBy), sort_order: T.nilable(::OpenApiSDK::Operations::GetTagsQueryParamSortOrder)).void }
|
29
|
-
def initialize(ids: nil, page: nil, page_size: nil, search: nil, sort_by: nil, sort_order: nil)
|
30
|
-
@ids = ids
|
31
|
-
@page = page
|
32
|
-
@page_size = page_size
|
33
|
-
@search = search
|
34
|
-
@sort_by = sort_by
|
35
|
-
@sort_order = sort_order
|
36
|
-
end
|
37
|
-
end
|
38
|
-
end
|
39
|
-
end
|
@@ -1,36 +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 < ::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
|
@@ -1,99 +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
|
-
# Additional properties that you can pass to the partner's short link. Will be used to override the default link properties for this partner.
|
11
|
-
class LinkProps < ::Crystalline::FieldAugmented
|
12
|
-
extend T::Sig
|
13
|
-
|
14
|
-
# The Android destination URL for the short link for Android device targeting.
|
15
|
-
field :android, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('android') } }
|
16
|
-
# Whether the short link is archived. Defaults to `false` if not provided.
|
17
|
-
field :archived, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('archived') } }
|
18
|
-
# The comments for the short link.
|
19
|
-
field :comments, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('comments') } }
|
20
|
-
# The custom link preview description (og:description). Will be used for Custom Social Media Cards if `proxy` is true. Learn more: https://d.to/og
|
21
|
-
field :description, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('description') } }
|
22
|
-
# Allow search engines to index your short link. Defaults to `false` if not provided. Learn more: https://d.to/noindex
|
23
|
-
field :do_index, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('doIndex') } }
|
24
|
-
# The URL to redirect to when the short link has expired.
|
25
|
-
field :expired_url, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('expiredUrl') } }
|
26
|
-
# The date and time when the short link will expire at.
|
27
|
-
field :expires_at, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('expiresAt') } }
|
28
|
-
# 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.
|
29
|
-
field :external_id, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('externalId') } }
|
30
|
-
# The unique ID existing folder to assign the short link to.
|
31
|
-
field :folder_id, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('folderId') } }
|
32
|
-
# The custom link preview image (og:image). Will be used for Custom Social Media Cards if `proxy` is true. Learn more: https://d.to/og
|
33
|
-
field :image, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('image') } }
|
34
|
-
# The iOS destination URL for the short link for iOS device targeting.
|
35
|
-
field :ios, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('ios') } }
|
36
|
-
# The password required to access the destination URL of the short link.
|
37
|
-
field :password, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('password') } }
|
38
|
-
# The prefix of the short link slug for randomly-generated keys (e.g. if prefix is `/c/`, generated keys will be in the `/c/:key` format). Will be ignored if `key` is provided.
|
39
|
-
field :prefix, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('prefix') } }
|
40
|
-
# Whether the short link uses Custom Social Media Cards feature. Defaults to `false` if not provided.
|
41
|
-
field :proxy, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('proxy') } }
|
42
|
-
# The referral tag of the short link. If set, this will populate or override the `ref` query parameter in the destination URL.
|
43
|
-
field :ref, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('ref') } }
|
44
|
-
# Whether the short link uses link cloaking. Defaults to `false` if not provided.
|
45
|
-
field :rewrite, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('rewrite') } }
|
46
|
-
# The unique IDs of the tags assigned to the short link.
|
47
|
-
field :tag_ids, T.nilable(::Object), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('tagIds') } }
|
48
|
-
# The unique name of the tags assigned to the short link (case insensitive).
|
49
|
-
field :tag_names, T.nilable(::Object), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('tagNames') } }
|
50
|
-
# 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.
|
51
|
-
field :tenant_id, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('tenantId') } }
|
52
|
-
# The custom link preview title (og:title). Will be used for Custom Social Media Cards if `proxy` is true. Learn more: https://d.to/og
|
53
|
-
field :title, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('title') } }
|
54
|
-
# The UTM campaign of the short link. If set, this will populate or override the UTM campaign in the destination URL.
|
55
|
-
field :utm_campaign, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('utm_campaign') } }
|
56
|
-
# The UTM content of the short link. If set, this will populate or override the UTM content in the destination URL.
|
57
|
-
field :utm_content, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('utm_content') } }
|
58
|
-
# The UTM medium of the short link. If set, this will populate or override the UTM medium in the destination URL.
|
59
|
-
field :utm_medium, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('utm_medium') } }
|
60
|
-
# The UTM source of the short link. If set, this will populate or override the UTM source in the destination URL.
|
61
|
-
field :utm_source, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('utm_source') } }
|
62
|
-
# The UTM term of the short link. If set, this will populate or override the UTM term in the destination URL.
|
63
|
-
field :utm_term, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('utm_term') } }
|
64
|
-
# 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
|
65
|
-
field :video, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('video') } }
|
66
|
-
|
67
|
-
|
68
|
-
sig { params(android: T.nilable(::String), archived: T.nilable(T::Boolean), comments: T.nilable(::String), description: T.nilable(::String), do_index: T.nilable(T::Boolean), expired_url: T.nilable(::String), expires_at: T.nilable(::String), external_id: T.nilable(::String), folder_id: T.nilable(::String), image: T.nilable(::String), ios: T.nilable(::String), password: T.nilable(::String), prefix: T.nilable(::String), proxy: T.nilable(T::Boolean), ref: T.nilable(::String), rewrite: T.nilable(T::Boolean), tag_ids: T.nilable(::Object), tag_names: T.nilable(::Object), tenant_id: T.nilable(::String), title: T.nilable(::String), utm_campaign: T.nilable(::String), utm_content: T.nilable(::String), utm_medium: T.nilable(::String), utm_source: T.nilable(::String), utm_term: T.nilable(::String), video: T.nilable(::String)).void }
|
69
|
-
def initialize(android: nil, archived: nil, comments: nil, description: nil, do_index: nil, expired_url: nil, expires_at: nil, external_id: nil, folder_id: nil, image: nil, ios: nil, password: nil, prefix: nil, proxy: nil, ref: nil, rewrite: nil, tag_ids: nil, tag_names: nil, tenant_id: nil, title: nil, utm_campaign: nil, utm_content: nil, utm_medium: nil, utm_source: nil, utm_term: nil, video: nil)
|
70
|
-
@android = android
|
71
|
-
@archived = archived
|
72
|
-
@comments = comments
|
73
|
-
@description = description
|
74
|
-
@do_index = do_index
|
75
|
-
@expired_url = expired_url
|
76
|
-
@expires_at = expires_at
|
77
|
-
@external_id = external_id
|
78
|
-
@folder_id = folder_id
|
79
|
-
@image = image
|
80
|
-
@ios = ios
|
81
|
-
@password = password
|
82
|
-
@prefix = prefix
|
83
|
-
@proxy = proxy
|
84
|
-
@ref = ref
|
85
|
-
@rewrite = rewrite
|
86
|
-
@tag_ids = tag_ids
|
87
|
-
@tag_names = tag_names
|
88
|
-
@tenant_id = tenant_id
|
89
|
-
@title = title
|
90
|
-
@utm_campaign = utm_campaign
|
91
|
-
@utm_content = utm_content
|
92
|
-
@utm_medium = utm_medium
|
93
|
-
@utm_source = utm_source
|
94
|
-
@utm_term = utm_term
|
95
|
-
@video = video
|
96
|
-
end
|
97
|
-
end
|
98
|
-
end
|
99
|
-
end
|