brand.dev 0.0.2 → 0.1.0.pre.alpha.1
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/CHANGELOG.md +0 -173
- data/README.md +1 -1
- data/lib/brand_dev/errors.rb +0 -22
- data/lib/brand_dev/internal/transport/base_client.rb +2 -10
- data/lib/brand_dev/internal/type/array_of.rb +1 -6
- data/lib/brand_dev/internal/type/base_model.rb +25 -77
- data/lib/brand_dev/internal/type/boolean.rb +1 -7
- data/lib/brand_dev/internal/type/converter.rb +34 -42
- data/lib/brand_dev/internal/type/enum.rb +5 -16
- data/lib/brand_dev/internal/type/file_input.rb +1 -6
- data/lib/brand_dev/internal/type/hash_of.rb +1 -6
- data/lib/brand_dev/internal/type/union.rb +9 -17
- data/lib/brand_dev/internal/type/unknown.rb +1 -7
- data/lib/brand_dev/internal/util.rb +9 -8
- data/lib/brand_dev/models/brand_ai_query_params.rb +5 -87
- data/lib/brand_dev/models/brand_identify_from_transaction_params.rb +1 -14
- data/lib/brand_dev/models/brand_identify_from_transaction_response.rb +29 -1
- data/lib/brand_dev/models/brand_retrieve_by_ticker_params.rb +1 -14
- data/lib/brand_dev/models/brand_retrieve_by_ticker_response.rb +29 -1
- data/lib/brand_dev/models/brand_retrieve_naics_params.rb +1 -11
- data/lib/brand_dev/models/brand_retrieve_params.rb +1 -24
- data/lib/brand_dev/models/brand_retrieve_response.rb +29 -1
- data/lib/brand_dev/models/brand_search_params.rb +22 -0
- data/lib/brand_dev/models/brand_search_response.rb +35 -0
- data/lib/brand_dev/models.rb +5 -11
- data/lib/brand_dev/resources/brand.rb +20 -139
- data/lib/brand_dev/version.rb +1 -1
- data/lib/brand_dev.rb +2 -8
- data/rbi/brand_dev/errors.rbi +0 -16
- data/rbi/brand_dev/internal/type/boolean.rbi +0 -2
- data/rbi/brand_dev/internal/type/converter.rbi +15 -15
- data/rbi/brand_dev/internal/type/union.rbi +0 -5
- data/rbi/brand_dev/internal/type/unknown.rbi +0 -2
- data/rbi/brand_dev/internal/util.rbi +0 -2
- data/rbi/brand_dev/models/brand_ai_query_params.rbi +6 -141
- data/rbi/brand_dev/models/brand_identify_from_transaction_params.rbi +0 -15
- data/rbi/brand_dev/models/brand_identify_from_transaction_response.rbi +69 -0
- data/rbi/brand_dev/models/brand_retrieve_by_ticker_params.rbi +1 -19
- data/rbi/brand_dev/models/brand_retrieve_by_ticker_response.rbi +69 -0
- data/rbi/brand_dev/models/brand_retrieve_naics_params.rbi +1 -19
- data/rbi/brand_dev/models/brand_retrieve_params.rbi +0 -30
- data/rbi/brand_dev/models/brand_retrieve_response.rbi +65 -0
- data/rbi/brand_dev/models/brand_search_params.rbi +40 -0
- data/rbi/brand_dev/models/brand_search_response.rbi +63 -0
- data/rbi/brand_dev/models.rbi +1 -8
- data/rbi/brand_dev/resources/brand.rbi +8 -112
- data/sig/brand_dev/errors.rbs +0 -9
- data/sig/brand_dev/internal/type/converter.rbs +1 -7
- data/sig/brand_dev/models/brand_ai_query_params.rbs +5 -82
- data/sig/brand_dev/models/brand_identify_from_transaction_params.rbs +1 -7
- data/sig/brand_dev/models/brand_identify_from_transaction_response.rbs +25 -0
- data/sig/brand_dev/models/brand_retrieve_by_ticker_params.rbs +1 -8
- data/sig/brand_dev/models/brand_retrieve_by_ticker_response.rbs +25 -0
- data/sig/brand_dev/models/brand_retrieve_naics_params.rbs +1 -8
- data/sig/brand_dev/models/brand_retrieve_params.rbs +1 -15
- data/sig/brand_dev/models/brand_retrieve_response.rbs +25 -0
- data/sig/brand_dev/models/brand_search_params.rbs +23 -0
- data/sig/brand_dev/models/brand_search_response.rbs +29 -0
- data/sig/brand_dev/models.rbs +1 -7
- data/sig/brand_dev/resources/brand.rbs +4 -29
- metadata +10 -28
- data/lib/brand_dev/models/brand_prefetch_params.rb +0 -35
- data/lib/brand_dev/models/brand_prefetch_response.rb +0 -33
- data/lib/brand_dev/models/brand_retrieve_simplified_params.rb +0 -35
- data/lib/brand_dev/models/brand_retrieve_simplified_response.rb +0 -280
- data/lib/brand_dev/models/brand_screenshot_params.rb +0 -49
- data/lib/brand_dev/models/brand_screenshot_response.rb +0 -64
- data/lib/brand_dev/models/brand_styleguide_params.rb +0 -36
- data/lib/brand_dev/models/brand_styleguide_response.rb +0 -769
- data/rbi/brand_dev/models/brand_prefetch_params.rbi +0 -58
- data/rbi/brand_dev/models/brand_prefetch_response.rbi +0 -57
- data/rbi/brand_dev/models/brand_retrieve_simplified_params.rbi +0 -61
- data/rbi/brand_dev/models/brand_retrieve_simplified_response.rbi +0 -667
- data/rbi/brand_dev/models/brand_screenshot_params.rbi +0 -105
- data/rbi/brand_dev/models/brand_screenshot_response.rbi +0 -135
- data/rbi/brand_dev/models/brand_styleguide_params.rbi +0 -60
- data/rbi/brand_dev/models/brand_styleguide_response.rbi +0 -1648
- data/sig/brand_dev/models/brand_prefetch_params.rbs +0 -30
- data/sig/brand_dev/models/brand_prefetch_response.rbs +0 -28
- data/sig/brand_dev/models/brand_retrieve_simplified_params.rbs +0 -30
- data/sig/brand_dev/models/brand_retrieve_simplified_response.rbs +0 -292
- data/sig/brand_dev/models/brand_screenshot_params.rbs +0 -46
- data/sig/brand_dev/models/brand_screenshot_response.rbs +0 -63
- data/sig/brand_dev/models/brand_styleguide_params.rbs +0 -30
- data/sig/brand_dev/models/brand_styleguide_response.rbs +0 -925
@@ -18,29 +18,15 @@ module BrandDev
|
|
18
18
|
sig { returns(String) }
|
19
19
|
attr_accessor :transaction_info
|
20
20
|
|
21
|
-
# Optional timeout in milliseconds for the request. If the request takes longer
|
22
|
-
# than this value, it will be aborted with a 408 status code. Maximum allowed
|
23
|
-
# value is 300000ms (5 minutes).
|
24
|
-
sig { returns(T.nilable(Integer)) }
|
25
|
-
attr_reader :timeout_ms
|
26
|
-
|
27
|
-
sig { params(timeout_ms: Integer).void }
|
28
|
-
attr_writer :timeout_ms
|
29
|
-
|
30
21
|
sig do
|
31
22
|
params(
|
32
23
|
transaction_info: String,
|
33
|
-
timeout_ms: Integer,
|
34
24
|
request_options: BrandDev::RequestOptions::OrHash
|
35
25
|
).returns(T.attached_class)
|
36
26
|
end
|
37
27
|
def self.new(
|
38
28
|
# Transaction information to identify the brand
|
39
29
|
transaction_info:,
|
40
|
-
# Optional timeout in milliseconds for the request. If the request takes longer
|
41
|
-
# than this value, it will be aborted with a 408 status code. Maximum allowed
|
42
|
-
# value is 300000ms (5 minutes).
|
43
|
-
timeout_ms: nil,
|
44
30
|
request_options: {}
|
45
31
|
)
|
46
32
|
end
|
@@ -49,7 +35,6 @@ module BrandDev
|
|
49
35
|
override.returns(
|
50
36
|
{
|
51
37
|
transaction_info: String,
|
52
|
-
timeout_ms: Integer,
|
53
38
|
request_options: BrandDev::RequestOptions
|
54
39
|
}
|
55
40
|
)
|
@@ -159,6 +159,28 @@ module BrandDev
|
|
159
159
|
sig { params(domain: String).void }
|
160
160
|
attr_writer :domain
|
161
161
|
|
162
|
+
# An array of fonts used by the brand's website
|
163
|
+
sig do
|
164
|
+
returns(
|
165
|
+
T.nilable(
|
166
|
+
T::Array[
|
167
|
+
BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Font
|
168
|
+
]
|
169
|
+
)
|
170
|
+
)
|
171
|
+
end
|
172
|
+
attr_reader :fonts
|
173
|
+
|
174
|
+
sig do
|
175
|
+
params(
|
176
|
+
fonts:
|
177
|
+
T::Array[
|
178
|
+
BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Font::OrHash
|
179
|
+
]
|
180
|
+
).void
|
181
|
+
end
|
182
|
+
attr_writer :fonts
|
183
|
+
|
162
184
|
# An array of logos associated with the brand
|
163
185
|
sig do
|
164
186
|
returns(
|
@@ -251,6 +273,10 @@ module BrandDev
|
|
251
273
|
],
|
252
274
|
description: String,
|
253
275
|
domain: String,
|
276
|
+
fonts:
|
277
|
+
T::Array[
|
278
|
+
BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Font::OrHash
|
279
|
+
],
|
254
280
|
logos:
|
255
281
|
T::Array[
|
256
282
|
BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::OrHash
|
@@ -276,6 +302,8 @@ module BrandDev
|
|
276
302
|
description: nil,
|
277
303
|
# The domain name of the brand
|
278
304
|
domain: nil,
|
305
|
+
# An array of fonts used by the brand's website
|
306
|
+
fonts: nil,
|
279
307
|
# An array of logos associated with the brand
|
280
308
|
logos: nil,
|
281
309
|
# The brand's slogan
|
@@ -305,6 +333,10 @@ module BrandDev
|
|
305
333
|
],
|
306
334
|
description: String,
|
307
335
|
domain: String,
|
336
|
+
fonts:
|
337
|
+
T::Array[
|
338
|
+
BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Font
|
339
|
+
],
|
308
340
|
logos:
|
309
341
|
T::Array[
|
310
342
|
BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo
|
@@ -636,6 +668,43 @@ module BrandDev
|
|
636
668
|
end
|
637
669
|
end
|
638
670
|
|
671
|
+
class Font < BrandDev::Internal::Type::BaseModel
|
672
|
+
OrHash =
|
673
|
+
T.type_alias do
|
674
|
+
T.any(
|
675
|
+
BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Font,
|
676
|
+
BrandDev::Internal::AnyHash
|
677
|
+
)
|
678
|
+
end
|
679
|
+
|
680
|
+
# Name of the font
|
681
|
+
sig { returns(T.nilable(String)) }
|
682
|
+
attr_reader :name
|
683
|
+
|
684
|
+
sig { params(name: String).void }
|
685
|
+
attr_writer :name
|
686
|
+
|
687
|
+
# Usage of the font, e.g., 'title', 'body', 'button'
|
688
|
+
sig { returns(T.nilable(String)) }
|
689
|
+
attr_reader :usage
|
690
|
+
|
691
|
+
sig { params(usage: String).void }
|
692
|
+
attr_writer :usage
|
693
|
+
|
694
|
+
sig { params(name: String, usage: String).returns(T.attached_class) }
|
695
|
+
def self.new(
|
696
|
+
# Name of the font
|
697
|
+
name: nil,
|
698
|
+
# Usage of the font, e.g., 'title', 'body', 'button'
|
699
|
+
usage: nil
|
700
|
+
)
|
701
|
+
end
|
702
|
+
|
703
|
+
sig { override.returns({ name: String, usage: String }) }
|
704
|
+
def to_hash
|
705
|
+
end
|
706
|
+
end
|
707
|
+
|
639
708
|
class Logo < BrandDev::Internal::Type::BaseModel
|
640
709
|
OrHash =
|
641
710
|
T.type_alias do
|
@@ -18,40 +18,22 @@ module BrandDev
|
|
18
18
|
sig { returns(String) }
|
19
19
|
attr_accessor :ticker
|
20
20
|
|
21
|
-
# Optional timeout in milliseconds for the request. If the request takes longer
|
22
|
-
# than this value, it will be aborted with a 408 status code. Maximum allowed
|
23
|
-
# value is 300000ms (5 minutes).
|
24
|
-
sig { returns(T.nilable(Integer)) }
|
25
|
-
attr_reader :timeout_ms
|
26
|
-
|
27
|
-
sig { params(timeout_ms: Integer).void }
|
28
|
-
attr_writer :timeout_ms
|
29
|
-
|
30
21
|
sig do
|
31
22
|
params(
|
32
23
|
ticker: String,
|
33
|
-
timeout_ms: Integer,
|
34
24
|
request_options: BrandDev::RequestOptions::OrHash
|
35
25
|
).returns(T.attached_class)
|
36
26
|
end
|
37
27
|
def self.new(
|
38
28
|
# Stock ticker symbol to retrieve brand data for (e.g. AAPL, TSLA, etc.)
|
39
29
|
ticker:,
|
40
|
-
# Optional timeout in milliseconds for the request. If the request takes longer
|
41
|
-
# than this value, it will be aborted with a 408 status code. Maximum allowed
|
42
|
-
# value is 300000ms (5 minutes).
|
43
|
-
timeout_ms: nil,
|
44
30
|
request_options: {}
|
45
31
|
)
|
46
32
|
end
|
47
33
|
|
48
34
|
sig do
|
49
35
|
override.returns(
|
50
|
-
{
|
51
|
-
ticker: String,
|
52
|
-
timeout_ms: Integer,
|
53
|
-
request_options: BrandDev::RequestOptions
|
54
|
-
}
|
36
|
+
{ ticker: String, request_options: BrandDev::RequestOptions }
|
55
37
|
)
|
56
38
|
end
|
57
39
|
def to_hash
|
@@ -154,6 +154,28 @@ module BrandDev
|
|
154
154
|
sig { params(domain: String).void }
|
155
155
|
attr_writer :domain
|
156
156
|
|
157
|
+
# An array of fonts used by the brand's website
|
158
|
+
sig do
|
159
|
+
returns(
|
160
|
+
T.nilable(
|
161
|
+
T::Array[
|
162
|
+
BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Font
|
163
|
+
]
|
164
|
+
)
|
165
|
+
)
|
166
|
+
end
|
167
|
+
attr_reader :fonts
|
168
|
+
|
169
|
+
sig do
|
170
|
+
params(
|
171
|
+
fonts:
|
172
|
+
T::Array[
|
173
|
+
BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Font::OrHash
|
174
|
+
]
|
175
|
+
).void
|
176
|
+
end
|
177
|
+
attr_writer :fonts
|
178
|
+
|
157
179
|
# An array of logos associated with the brand
|
158
180
|
sig do
|
159
181
|
returns(
|
@@ -246,6 +268,10 @@ module BrandDev
|
|
246
268
|
],
|
247
269
|
description: String,
|
248
270
|
domain: String,
|
271
|
+
fonts:
|
272
|
+
T::Array[
|
273
|
+
BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Font::OrHash
|
274
|
+
],
|
249
275
|
logos:
|
250
276
|
T::Array[
|
251
277
|
BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::OrHash
|
@@ -271,6 +297,8 @@ module BrandDev
|
|
271
297
|
description: nil,
|
272
298
|
# The domain name of the brand
|
273
299
|
domain: nil,
|
300
|
+
# An array of fonts used by the brand's website
|
301
|
+
fonts: nil,
|
274
302
|
# An array of logos associated with the brand
|
275
303
|
logos: nil,
|
276
304
|
# The brand's slogan
|
@@ -300,6 +328,10 @@ module BrandDev
|
|
300
328
|
],
|
301
329
|
description: String,
|
302
330
|
domain: String,
|
331
|
+
fonts:
|
332
|
+
T::Array[
|
333
|
+
BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Font
|
334
|
+
],
|
303
335
|
logos:
|
304
336
|
T::Array[
|
305
337
|
BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo
|
@@ -631,6 +663,43 @@ module BrandDev
|
|
631
663
|
end
|
632
664
|
end
|
633
665
|
|
666
|
+
class Font < BrandDev::Internal::Type::BaseModel
|
667
|
+
OrHash =
|
668
|
+
T.type_alias do
|
669
|
+
T.any(
|
670
|
+
BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Font,
|
671
|
+
BrandDev::Internal::AnyHash
|
672
|
+
)
|
673
|
+
end
|
674
|
+
|
675
|
+
# Name of the font
|
676
|
+
sig { returns(T.nilable(String)) }
|
677
|
+
attr_reader :name
|
678
|
+
|
679
|
+
sig { params(name: String).void }
|
680
|
+
attr_writer :name
|
681
|
+
|
682
|
+
# Usage of the font, e.g., 'title', 'body', 'button'
|
683
|
+
sig { returns(T.nilable(String)) }
|
684
|
+
attr_reader :usage
|
685
|
+
|
686
|
+
sig { params(usage: String).void }
|
687
|
+
attr_writer :usage
|
688
|
+
|
689
|
+
sig { params(name: String, usage: String).returns(T.attached_class) }
|
690
|
+
def self.new(
|
691
|
+
# Name of the font
|
692
|
+
name: nil,
|
693
|
+
# Usage of the font, e.g., 'title', 'body', 'button'
|
694
|
+
usage: nil
|
695
|
+
)
|
696
|
+
end
|
697
|
+
|
698
|
+
sig { override.returns({ name: String, usage: String }) }
|
699
|
+
def to_hash
|
700
|
+
end
|
701
|
+
end
|
702
|
+
|
634
703
|
class Logo < BrandDev::Internal::Type::BaseModel
|
635
704
|
OrHash =
|
636
705
|
T.type_alias do
|
@@ -17,19 +17,9 @@ module BrandDev
|
|
17
17
|
sig { returns(String) }
|
18
18
|
attr_accessor :input
|
19
19
|
|
20
|
-
# Optional timeout in milliseconds for the request. If the request takes longer
|
21
|
-
# than this value, it will be aborted with a 408 status code. Maximum allowed
|
22
|
-
# value is 300000ms (5 minutes).
|
23
|
-
sig { returns(T.nilable(Integer)) }
|
24
|
-
attr_reader :timeout_ms
|
25
|
-
|
26
|
-
sig { params(timeout_ms: Integer).void }
|
27
|
-
attr_writer :timeout_ms
|
28
|
-
|
29
20
|
sig do
|
30
21
|
params(
|
31
22
|
input: String,
|
32
|
-
timeout_ms: Integer,
|
33
23
|
request_options: BrandDev::RequestOptions::OrHash
|
34
24
|
).returns(T.attached_class)
|
35
25
|
end
|
@@ -38,21 +28,13 @@ module BrandDev
|
|
38
28
|
# in `input`, it will be used for classification, otherwise, we will search for
|
39
29
|
# the brand using the provided title.
|
40
30
|
input:,
|
41
|
-
# Optional timeout in milliseconds for the request. If the request takes longer
|
42
|
-
# than this value, it will be aborted with a 408 status code. Maximum allowed
|
43
|
-
# value is 300000ms (5 minutes).
|
44
|
-
timeout_ms: nil,
|
45
31
|
request_options: {}
|
46
32
|
)
|
47
33
|
end
|
48
34
|
|
49
35
|
sig do
|
50
36
|
override.returns(
|
51
|
-
{
|
52
|
-
input: String,
|
53
|
-
timeout_ms: Integer,
|
54
|
-
request_options: BrandDev::RequestOptions
|
55
|
-
}
|
37
|
+
{ input: String, request_options: BrandDev::RequestOptions }
|
56
38
|
)
|
57
39
|
end
|
58
40
|
def to_hash
|
@@ -30,31 +30,11 @@ module BrandDev
|
|
30
30
|
end
|
31
31
|
attr_writer :force_language
|
32
32
|
|
33
|
-
# Optional parameter to optimize the API call for maximum speed. When set to true,
|
34
|
-
# the API will skip time-consuming operations for faster response at the cost of
|
35
|
-
# less comprehensive data.
|
36
|
-
sig { returns(T.nilable(T::Boolean)) }
|
37
|
-
attr_reader :max_speed
|
38
|
-
|
39
|
-
sig { params(max_speed: T::Boolean).void }
|
40
|
-
attr_writer :max_speed
|
41
|
-
|
42
|
-
# Optional timeout in milliseconds for the request. If the request takes longer
|
43
|
-
# than this value, it will be aborted with a 408 status code. Maximum allowed
|
44
|
-
# value is 300000ms (5 minutes).
|
45
|
-
sig { returns(T.nilable(Integer)) }
|
46
|
-
attr_reader :timeout_ms
|
47
|
-
|
48
|
-
sig { params(timeout_ms: Integer).void }
|
49
|
-
attr_writer :timeout_ms
|
50
|
-
|
51
33
|
sig do
|
52
34
|
params(
|
53
35
|
domain: String,
|
54
36
|
force_language:
|
55
37
|
BrandDev::BrandRetrieveParams::ForceLanguage::OrSymbol,
|
56
|
-
max_speed: T::Boolean,
|
57
|
-
timeout_ms: Integer,
|
58
38
|
request_options: BrandDev::RequestOptions::OrHash
|
59
39
|
).returns(T.attached_class)
|
60
40
|
end
|
@@ -63,14 +43,6 @@ module BrandDev
|
|
63
43
|
domain:,
|
64
44
|
# Optional parameter to force the language of the retrieved brand data
|
65
45
|
force_language: nil,
|
66
|
-
# Optional parameter to optimize the API call for maximum speed. When set to true,
|
67
|
-
# the API will skip time-consuming operations for faster response at the cost of
|
68
|
-
# less comprehensive data.
|
69
|
-
max_speed: nil,
|
70
|
-
# Optional timeout in milliseconds for the request. If the request takes longer
|
71
|
-
# than this value, it will be aborted with a 408 status code. Maximum allowed
|
72
|
-
# value is 300000ms (5 minutes).
|
73
|
-
timeout_ms: nil,
|
74
46
|
request_options: {}
|
75
47
|
)
|
76
48
|
end
|
@@ -81,8 +53,6 @@ module BrandDev
|
|
81
53
|
domain: String,
|
82
54
|
force_language:
|
83
55
|
BrandDev::BrandRetrieveParams::ForceLanguage::OrSymbol,
|
84
|
-
max_speed: T::Boolean,
|
85
|
-
timeout_ms: Integer,
|
86
56
|
request_options: BrandDev::RequestOptions
|
87
57
|
}
|
88
58
|
)
|
@@ -144,6 +144,26 @@ module BrandDev
|
|
144
144
|
sig { params(domain: String).void }
|
145
145
|
attr_writer :domain
|
146
146
|
|
147
|
+
# An array of fonts used by the brand's website
|
148
|
+
sig do
|
149
|
+
returns(
|
150
|
+
T.nilable(
|
151
|
+
T::Array[BrandDev::Models::BrandRetrieveResponse::Brand::Font]
|
152
|
+
)
|
153
|
+
)
|
154
|
+
end
|
155
|
+
attr_reader :fonts
|
156
|
+
|
157
|
+
sig do
|
158
|
+
params(
|
159
|
+
fonts:
|
160
|
+
T::Array[
|
161
|
+
BrandDev::Models::BrandRetrieveResponse::Brand::Font::OrHash
|
162
|
+
]
|
163
|
+
).void
|
164
|
+
end
|
165
|
+
attr_writer :fonts
|
166
|
+
|
147
167
|
# An array of logos associated with the brand
|
148
168
|
sig do
|
149
169
|
returns(
|
@@ -229,6 +249,10 @@ module BrandDev
|
|
229
249
|
],
|
230
250
|
description: String,
|
231
251
|
domain: String,
|
252
|
+
fonts:
|
253
|
+
T::Array[
|
254
|
+
BrandDev::Models::BrandRetrieveResponse::Brand::Font::OrHash
|
255
|
+
],
|
232
256
|
logos:
|
233
257
|
T::Array[
|
234
258
|
BrandDev::Models::BrandRetrieveResponse::Brand::Logo::OrHash
|
@@ -254,6 +278,8 @@ module BrandDev
|
|
254
278
|
description: nil,
|
255
279
|
# The domain name of the brand
|
256
280
|
domain: nil,
|
281
|
+
# An array of fonts used by the brand's website
|
282
|
+
fonts: nil,
|
257
283
|
# An array of logos associated with the brand
|
258
284
|
logos: nil,
|
259
285
|
# The brand's slogan
|
@@ -280,6 +306,8 @@ module BrandDev
|
|
280
306
|
T::Array[BrandDev::Models::BrandRetrieveResponse::Brand::Color],
|
281
307
|
description: String,
|
282
308
|
domain: String,
|
309
|
+
fonts:
|
310
|
+
T::Array[BrandDev::Models::BrandRetrieveResponse::Brand::Font],
|
283
311
|
logos:
|
284
312
|
T::Array[BrandDev::Models::BrandRetrieveResponse::Brand::Logo],
|
285
313
|
slogan: String,
|
@@ -608,6 +636,43 @@ module BrandDev
|
|
608
636
|
end
|
609
637
|
end
|
610
638
|
|
639
|
+
class Font < BrandDev::Internal::Type::BaseModel
|
640
|
+
OrHash =
|
641
|
+
T.type_alias do
|
642
|
+
T.any(
|
643
|
+
BrandDev::Models::BrandRetrieveResponse::Brand::Font,
|
644
|
+
BrandDev::Internal::AnyHash
|
645
|
+
)
|
646
|
+
end
|
647
|
+
|
648
|
+
# Name of the font
|
649
|
+
sig { returns(T.nilable(String)) }
|
650
|
+
attr_reader :name
|
651
|
+
|
652
|
+
sig { params(name: String).void }
|
653
|
+
attr_writer :name
|
654
|
+
|
655
|
+
# Usage of the font, e.g., 'title', 'body', 'button'
|
656
|
+
sig { returns(T.nilable(String)) }
|
657
|
+
attr_reader :usage
|
658
|
+
|
659
|
+
sig { params(usage: String).void }
|
660
|
+
attr_writer :usage
|
661
|
+
|
662
|
+
sig { params(name: String, usage: String).returns(T.attached_class) }
|
663
|
+
def self.new(
|
664
|
+
# Name of the font
|
665
|
+
name: nil,
|
666
|
+
# Usage of the font, e.g., 'title', 'body', 'button'
|
667
|
+
usage: nil
|
668
|
+
)
|
669
|
+
end
|
670
|
+
|
671
|
+
sig { override.returns({ name: String, usage: String }) }
|
672
|
+
def to_hash
|
673
|
+
end
|
674
|
+
end
|
675
|
+
|
611
676
|
class Logo < BrandDev::Internal::Type::BaseModel
|
612
677
|
OrHash =
|
613
678
|
T.type_alias do
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# typed: strong
|
2
|
+
|
3
|
+
module BrandDev
|
4
|
+
module Models
|
5
|
+
class BrandSearchParams < BrandDev::Internal::Type::BaseModel
|
6
|
+
extend BrandDev::Internal::Type::RequestParameters::Converter
|
7
|
+
include BrandDev::Internal::Type::RequestParameters
|
8
|
+
|
9
|
+
OrHash =
|
10
|
+
T.type_alias do
|
11
|
+
T.any(BrandDev::BrandSearchParams, BrandDev::Internal::AnyHash)
|
12
|
+
end
|
13
|
+
|
14
|
+
# Query string to search brands
|
15
|
+
sig { returns(String) }
|
16
|
+
attr_accessor :query
|
17
|
+
|
18
|
+
sig do
|
19
|
+
params(
|
20
|
+
query: String,
|
21
|
+
request_options: BrandDev::RequestOptions::OrHash
|
22
|
+
).returns(T.attached_class)
|
23
|
+
end
|
24
|
+
def self.new(
|
25
|
+
# Query string to search brands
|
26
|
+
query:,
|
27
|
+
request_options: {}
|
28
|
+
)
|
29
|
+
end
|
30
|
+
|
31
|
+
sig do
|
32
|
+
override.returns(
|
33
|
+
{ query: String, request_options: BrandDev::RequestOptions }
|
34
|
+
)
|
35
|
+
end
|
36
|
+
def to_hash
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -0,0 +1,63 @@
|
|
1
|
+
# typed: strong
|
2
|
+
|
3
|
+
module BrandDev
|
4
|
+
module Models
|
5
|
+
class BrandSearchResponseItem < BrandDev::Internal::Type::BaseModel
|
6
|
+
OrHash =
|
7
|
+
T.type_alias do
|
8
|
+
T.any(
|
9
|
+
BrandDev::Models::BrandSearchResponseItem,
|
10
|
+
BrandDev::Internal::AnyHash
|
11
|
+
)
|
12
|
+
end
|
13
|
+
|
14
|
+
# Domain name of the brand
|
15
|
+
sig { returns(T.nilable(String)) }
|
16
|
+
attr_reader :domain
|
17
|
+
|
18
|
+
sig { params(domain: String).void }
|
19
|
+
attr_writer :domain
|
20
|
+
|
21
|
+
# URL of the brand's logo
|
22
|
+
sig { returns(T.nilable(String)) }
|
23
|
+
attr_reader :logo
|
24
|
+
|
25
|
+
sig { params(logo: String).void }
|
26
|
+
attr_writer :logo
|
27
|
+
|
28
|
+
# Title or name of the brand
|
29
|
+
sig { returns(T.nilable(String)) }
|
30
|
+
attr_reader :title
|
31
|
+
|
32
|
+
sig { params(title: String).void }
|
33
|
+
attr_writer :title
|
34
|
+
|
35
|
+
sig do
|
36
|
+
params(domain: String, logo: String, title: String).returns(
|
37
|
+
T.attached_class
|
38
|
+
)
|
39
|
+
end
|
40
|
+
def self.new(
|
41
|
+
# Domain name of the brand
|
42
|
+
domain: nil,
|
43
|
+
# URL of the brand's logo
|
44
|
+
logo: nil,
|
45
|
+
# Title or name of the brand
|
46
|
+
title: nil
|
47
|
+
)
|
48
|
+
end
|
49
|
+
|
50
|
+
sig { override.returns({ domain: String, logo: String, title: String }) }
|
51
|
+
def to_hash
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
BrandSearchResponse =
|
56
|
+
T.let(
|
57
|
+
BrandDev::Internal::Type::ArrayOf[
|
58
|
+
BrandDev::Models::BrandSearchResponseItem
|
59
|
+
],
|
60
|
+
BrandDev::Internal::Type::Converter
|
61
|
+
)
|
62
|
+
end
|
63
|
+
end
|
data/rbi/brand_dev/models.rbi
CHANGED
@@ -6,18 +6,11 @@ module BrandDev
|
|
6
6
|
BrandIdentifyFromTransactionParams =
|
7
7
|
BrandDev::Models::BrandIdentifyFromTransactionParams
|
8
8
|
|
9
|
-
BrandPrefetchParams = BrandDev::Models::BrandPrefetchParams
|
10
|
-
|
11
9
|
BrandRetrieveByTickerParams = BrandDev::Models::BrandRetrieveByTickerParams
|
12
10
|
|
13
11
|
BrandRetrieveNaicsParams = BrandDev::Models::BrandRetrieveNaicsParams
|
14
12
|
|
15
13
|
BrandRetrieveParams = BrandDev::Models::BrandRetrieveParams
|
16
14
|
|
17
|
-
|
18
|
-
BrandDev::Models::BrandRetrieveSimplifiedParams
|
19
|
-
|
20
|
-
BrandScreenshotParams = BrandDev::Models::BrandScreenshotParams
|
21
|
-
|
22
|
-
BrandStyleguideParams = BrandDev::Models::BrandStyleguideParams
|
15
|
+
BrandSearchParams = BrandDev::Models::BrandSearchParams
|
23
16
|
end
|