brand.dev 0.17.0 → 0.18.0
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 +8 -0
- data/README.md +1 -1
- data/lib/brand_dev/models/brand_retrieve_naics_params.rb +18 -1
- data/lib/brand_dev/models/brand_retrieve_naics_response.rb +29 -7
- data/lib/brand_dev/resources/brand.rb +10 -2
- data/lib/brand_dev/version.rb +1 -1
- data/rbi/brand_dev/models/brand_retrieve_naics_params.rbi +24 -0
- data/rbi/brand_dev/models/brand_retrieve_naics_response.rbi +74 -14
- data/rbi/brand_dev/resources/brand.rbi +7 -0
- data/sig/brand_dev/models/brand_retrieve_naics_params.rbs +18 -1
- data/sig/brand_dev/models/brand_retrieve_naics_response.rbs +30 -7
- data/sig/brand_dev/resources/brand.rbs +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4d8d59aa62a298e531e77537f0438264b92262f8a1d6e2c85ed2f65855287586
|
|
4
|
+
data.tar.gz: 77fb50c2084d67c77d21b6eb6a7ec79499b840943516981aafa12448906399c8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9553cf289302a4b1c860e1a8b1939d565a4bb0da41b0bf9730f36f7b4bcef11aed20ea7564bdc4dda11cc187c90d71158ae2f1360b333ad6e4a8faef5613e43b
|
|
7
|
+
data.tar.gz: 77871bfd059aef79e463543a0681319fff73aa3ef40bba9bef364fd09b9b0734ea09689c4ac391ef75099001832067ed22cc634ca478c4092ab5988e14f22396
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.18.0 (2025-12-14)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.17.0...v0.18.0](https://github.com/brand-dot-dev/ruby-sdk/compare/v0.17.0...v0.18.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([25b73b8](https://github.com/brand-dot-dev/ruby-sdk/commit/25b73b89b739804f3dbb1d189fbde0351184dcaa))
|
|
10
|
+
|
|
3
11
|
## 0.17.0 (2025-12-11)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v0.16.0...v0.17.0](https://github.com/brand-dot-dev/ruby-sdk/compare/v0.16.0...v0.17.0)
|
data/README.md
CHANGED
|
@@ -15,6 +15,19 @@ module BrandDev
|
|
|
15
15
|
# @return [String]
|
|
16
16
|
required :input, String
|
|
17
17
|
|
|
18
|
+
# @!attribute max_results
|
|
19
|
+
# Maximum number of NAICS codes to return. Must be between 1 and 10. Defaults
|
|
20
|
+
# to 5.
|
|
21
|
+
#
|
|
22
|
+
# @return [Integer, nil]
|
|
23
|
+
optional :max_results, Integer
|
|
24
|
+
|
|
25
|
+
# @!attribute min_results
|
|
26
|
+
# Minimum number of NAICS codes to return. Must be at least 1. Defaults to 1.
|
|
27
|
+
#
|
|
28
|
+
# @return [Integer, nil]
|
|
29
|
+
optional :min_results, Integer
|
|
30
|
+
|
|
18
31
|
# @!attribute timeout_ms
|
|
19
32
|
# Optional timeout in milliseconds for the request. If the request takes longer
|
|
20
33
|
# than this value, it will be aborted with a 408 status code. Maximum allowed
|
|
@@ -23,12 +36,16 @@ module BrandDev
|
|
|
23
36
|
# @return [Integer, nil]
|
|
24
37
|
optional :timeout_ms, Integer
|
|
25
38
|
|
|
26
|
-
# @!method initialize(input:, timeout_ms: nil, request_options: {})
|
|
39
|
+
# @!method initialize(input:, max_results: nil, min_results: nil, timeout_ms: nil, request_options: {})
|
|
27
40
|
# Some parameter documentations has been truncated, see
|
|
28
41
|
# {BrandDev::Models::BrandRetrieveNaicsParams} for more details.
|
|
29
42
|
#
|
|
30
43
|
# @param input [String] Brand domain or title to retrieve NAICS code for. If a valid domain is provided
|
|
31
44
|
#
|
|
45
|
+
# @param max_results [Integer] Maximum number of NAICS codes to return. Must be between 1 and 10. Defaults to 5
|
|
46
|
+
#
|
|
47
|
+
# @param min_results [Integer] Minimum number of NAICS codes to return. Must be at least 1. Defaults to 1.
|
|
48
|
+
#
|
|
32
49
|
# @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th
|
|
33
50
|
#
|
|
34
51
|
# @param request_options [BrandDev::RequestOptions, Hash{Symbol=>Object}]
|
|
@@ -42,19 +42,41 @@ module BrandDev
|
|
|
42
42
|
# @!attribute code
|
|
43
43
|
# NAICS code
|
|
44
44
|
#
|
|
45
|
-
# @return [String
|
|
46
|
-
|
|
45
|
+
# @return [String]
|
|
46
|
+
required :code, String
|
|
47
47
|
|
|
48
|
-
# @!attribute
|
|
48
|
+
# @!attribute confidence
|
|
49
|
+
# Confidence level for how well this NAICS code matches the company description
|
|
50
|
+
#
|
|
51
|
+
# @return [Symbol, BrandDev::Models::BrandRetrieveNaicsResponse::Code::Confidence]
|
|
52
|
+
required :confidence, enum: -> { BrandDev::Models::BrandRetrieveNaicsResponse::Code::Confidence }
|
|
53
|
+
|
|
54
|
+
# @!attribute name
|
|
49
55
|
# NAICS title
|
|
50
56
|
#
|
|
51
|
-
# @return [String
|
|
52
|
-
|
|
57
|
+
# @return [String]
|
|
58
|
+
required :name, String
|
|
53
59
|
|
|
54
|
-
# @!method initialize(code
|
|
60
|
+
# @!method initialize(code:, confidence:, name:)
|
|
55
61
|
# @param code [String] NAICS code
|
|
56
62
|
#
|
|
57
|
-
# @param
|
|
63
|
+
# @param confidence [Symbol, BrandDev::Models::BrandRetrieveNaicsResponse::Code::Confidence] Confidence level for how well this NAICS code matches the company description
|
|
64
|
+
#
|
|
65
|
+
# @param name [String] NAICS title
|
|
66
|
+
|
|
67
|
+
# Confidence level for how well this NAICS code matches the company description
|
|
68
|
+
#
|
|
69
|
+
# @see BrandDev::Models::BrandRetrieveNaicsResponse::Code#confidence
|
|
70
|
+
module Confidence
|
|
71
|
+
extend BrandDev::Internal::Type::Enum
|
|
72
|
+
|
|
73
|
+
HIGH = :high
|
|
74
|
+
MEDIUM = :medium
|
|
75
|
+
LOW = :low
|
|
76
|
+
|
|
77
|
+
# @!method self.values
|
|
78
|
+
# @return [Array<Symbol>]
|
|
79
|
+
end
|
|
58
80
|
end
|
|
59
81
|
end
|
|
60
82
|
end
|
|
@@ -304,10 +304,14 @@ module BrandDev
|
|
|
304
304
|
#
|
|
305
305
|
# Endpoint to classify any brand into a 2022 NAICS code.
|
|
306
306
|
#
|
|
307
|
-
# @overload retrieve_naics(input:, timeout_ms: nil, request_options: {})
|
|
307
|
+
# @overload retrieve_naics(input:, max_results: nil, min_results: nil, timeout_ms: nil, request_options: {})
|
|
308
308
|
#
|
|
309
309
|
# @param input [String] Brand domain or title to retrieve NAICS code for. If a valid domain is provided
|
|
310
310
|
#
|
|
311
|
+
# @param max_results [Integer] Maximum number of NAICS codes to return. Must be between 1 and 10. Defaults to 5
|
|
312
|
+
#
|
|
313
|
+
# @param min_results [Integer] Minimum number of NAICS codes to return. Must be at least 1. Defaults to 1.
|
|
314
|
+
#
|
|
311
315
|
# @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th
|
|
312
316
|
#
|
|
313
317
|
# @param request_options [BrandDev::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
@@ -320,7 +324,11 @@ module BrandDev
|
|
|
320
324
|
@client.request(
|
|
321
325
|
method: :get,
|
|
322
326
|
path: "brand/naics",
|
|
323
|
-
query: parsed.transform_keys(
|
|
327
|
+
query: parsed.transform_keys(
|
|
328
|
+
max_results: "maxResults",
|
|
329
|
+
min_results: "minResults",
|
|
330
|
+
timeout_ms: "timeoutMS"
|
|
331
|
+
),
|
|
324
332
|
model: BrandDev::Models::BrandRetrieveNaicsResponse,
|
|
325
333
|
options: options
|
|
326
334
|
)
|
data/lib/brand_dev/version.rb
CHANGED
|
@@ -17,6 +17,21 @@ module BrandDev
|
|
|
17
17
|
sig { returns(String) }
|
|
18
18
|
attr_accessor :input
|
|
19
19
|
|
|
20
|
+
# Maximum number of NAICS codes to return. Must be between 1 and 10. Defaults
|
|
21
|
+
# to 5.
|
|
22
|
+
sig { returns(T.nilable(Integer)) }
|
|
23
|
+
attr_reader :max_results
|
|
24
|
+
|
|
25
|
+
sig { params(max_results: Integer).void }
|
|
26
|
+
attr_writer :max_results
|
|
27
|
+
|
|
28
|
+
# Minimum number of NAICS codes to return. Must be at least 1. Defaults to 1.
|
|
29
|
+
sig { returns(T.nilable(Integer)) }
|
|
30
|
+
attr_reader :min_results
|
|
31
|
+
|
|
32
|
+
sig { params(min_results: Integer).void }
|
|
33
|
+
attr_writer :min_results
|
|
34
|
+
|
|
20
35
|
# Optional timeout in milliseconds for the request. If the request takes longer
|
|
21
36
|
# than this value, it will be aborted with a 408 status code. Maximum allowed
|
|
22
37
|
# value is 300000ms (5 minutes).
|
|
@@ -29,6 +44,8 @@ module BrandDev
|
|
|
29
44
|
sig do
|
|
30
45
|
params(
|
|
31
46
|
input: String,
|
|
47
|
+
max_results: Integer,
|
|
48
|
+
min_results: Integer,
|
|
32
49
|
timeout_ms: Integer,
|
|
33
50
|
request_options: BrandDev::RequestOptions::OrHash
|
|
34
51
|
).returns(T.attached_class)
|
|
@@ -38,6 +55,11 @@ module BrandDev
|
|
|
38
55
|
# in `input`, it will be used for classification, otherwise, we will search for
|
|
39
56
|
# the brand using the provided title.
|
|
40
57
|
input:,
|
|
58
|
+
# Maximum number of NAICS codes to return. Must be between 1 and 10. Defaults
|
|
59
|
+
# to 5.
|
|
60
|
+
max_results: nil,
|
|
61
|
+
# Minimum number of NAICS codes to return. Must be at least 1. Defaults to 1.
|
|
62
|
+
min_results: nil,
|
|
41
63
|
# Optional timeout in milliseconds for the request. If the request takes longer
|
|
42
64
|
# than this value, it will be aborted with a 408 status code. Maximum allowed
|
|
43
65
|
# value is 300000ms (5 minutes).
|
|
@@ -50,6 +72,8 @@ module BrandDev
|
|
|
50
72
|
override.returns(
|
|
51
73
|
{
|
|
52
74
|
input: String,
|
|
75
|
+
max_results: Integer,
|
|
76
|
+
min_results: Integer,
|
|
53
77
|
timeout_ms: Integer,
|
|
54
78
|
request_options: BrandDev::RequestOptions
|
|
55
79
|
}
|
|
@@ -96,31 +96,91 @@ module BrandDev
|
|
|
96
96
|
end
|
|
97
97
|
|
|
98
98
|
# NAICS code
|
|
99
|
-
sig { returns(
|
|
100
|
-
|
|
99
|
+
sig { returns(String) }
|
|
100
|
+
attr_accessor :code
|
|
101
101
|
|
|
102
|
-
|
|
103
|
-
|
|
102
|
+
# Confidence level for how well this NAICS code matches the company description
|
|
103
|
+
sig do
|
|
104
|
+
returns(
|
|
105
|
+
BrandDev::Models::BrandRetrieveNaicsResponse::Code::Confidence::TaggedSymbol
|
|
106
|
+
)
|
|
107
|
+
end
|
|
108
|
+
attr_accessor :confidence
|
|
104
109
|
|
|
105
110
|
# NAICS title
|
|
106
|
-
sig { returns(
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
sig
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
111
|
+
sig { returns(String) }
|
|
112
|
+
attr_accessor :name
|
|
113
|
+
|
|
114
|
+
sig do
|
|
115
|
+
params(
|
|
116
|
+
code: String,
|
|
117
|
+
confidence:
|
|
118
|
+
BrandDev::Models::BrandRetrieveNaicsResponse::Code::Confidence::OrSymbol,
|
|
119
|
+
name: String
|
|
120
|
+
).returns(T.attached_class)
|
|
121
|
+
end
|
|
113
122
|
def self.new(
|
|
114
123
|
# NAICS code
|
|
115
|
-
code
|
|
124
|
+
code:,
|
|
125
|
+
# Confidence level for how well this NAICS code matches the company description
|
|
126
|
+
confidence:,
|
|
116
127
|
# NAICS title
|
|
117
|
-
|
|
128
|
+
name:
|
|
118
129
|
)
|
|
119
130
|
end
|
|
120
131
|
|
|
121
|
-
sig
|
|
132
|
+
sig do
|
|
133
|
+
override.returns(
|
|
134
|
+
{
|
|
135
|
+
code: String,
|
|
136
|
+
confidence:
|
|
137
|
+
BrandDev::Models::BrandRetrieveNaicsResponse::Code::Confidence::TaggedSymbol,
|
|
138
|
+
name: String
|
|
139
|
+
}
|
|
140
|
+
)
|
|
141
|
+
end
|
|
122
142
|
def to_hash
|
|
123
143
|
end
|
|
144
|
+
|
|
145
|
+
# Confidence level for how well this NAICS code matches the company description
|
|
146
|
+
module Confidence
|
|
147
|
+
extend BrandDev::Internal::Type::Enum
|
|
148
|
+
|
|
149
|
+
TaggedSymbol =
|
|
150
|
+
T.type_alias do
|
|
151
|
+
T.all(
|
|
152
|
+
Symbol,
|
|
153
|
+
BrandDev::Models::BrandRetrieveNaicsResponse::Code::Confidence
|
|
154
|
+
)
|
|
155
|
+
end
|
|
156
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
157
|
+
|
|
158
|
+
HIGH =
|
|
159
|
+
T.let(
|
|
160
|
+
:high,
|
|
161
|
+
BrandDev::Models::BrandRetrieveNaicsResponse::Code::Confidence::TaggedSymbol
|
|
162
|
+
)
|
|
163
|
+
MEDIUM =
|
|
164
|
+
T.let(
|
|
165
|
+
:medium,
|
|
166
|
+
BrandDev::Models::BrandRetrieveNaicsResponse::Code::Confidence::TaggedSymbol
|
|
167
|
+
)
|
|
168
|
+
LOW =
|
|
169
|
+
T.let(
|
|
170
|
+
:low,
|
|
171
|
+
BrandDev::Models::BrandRetrieveNaicsResponse::Code::Confidence::TaggedSymbol
|
|
172
|
+
)
|
|
173
|
+
|
|
174
|
+
sig do
|
|
175
|
+
override.returns(
|
|
176
|
+
T::Array[
|
|
177
|
+
BrandDev::Models::BrandRetrieveNaicsResponse::Code::Confidence::TaggedSymbol
|
|
178
|
+
]
|
|
179
|
+
)
|
|
180
|
+
end
|
|
181
|
+
def self.values
|
|
182
|
+
end
|
|
183
|
+
end
|
|
124
184
|
end
|
|
125
185
|
end
|
|
126
186
|
end
|
|
@@ -282,6 +282,8 @@ module BrandDev
|
|
|
282
282
|
sig do
|
|
283
283
|
params(
|
|
284
284
|
input: String,
|
|
285
|
+
max_results: Integer,
|
|
286
|
+
min_results: Integer,
|
|
285
287
|
timeout_ms: Integer,
|
|
286
288
|
request_options: BrandDev::RequestOptions::OrHash
|
|
287
289
|
).returns(BrandDev::Models::BrandRetrieveNaicsResponse)
|
|
@@ -291,6 +293,11 @@ module BrandDev
|
|
|
291
293
|
# in `input`, it will be used for classification, otherwise, we will search for
|
|
292
294
|
# the brand using the provided title.
|
|
293
295
|
input:,
|
|
296
|
+
# Maximum number of NAICS codes to return. Must be between 1 and 10. Defaults
|
|
297
|
+
# to 5.
|
|
298
|
+
max_results: nil,
|
|
299
|
+
# Minimum number of NAICS codes to return. Must be at least 1. Defaults to 1.
|
|
300
|
+
min_results: nil,
|
|
294
301
|
# Optional timeout in milliseconds for the request. If the request takes longer
|
|
295
302
|
# than this value, it will be aborted with a 408 status code. Maximum allowed
|
|
296
303
|
# value is 300000ms (5 minutes).
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
module BrandDev
|
|
2
2
|
module Models
|
|
3
3
|
type brand_retrieve_naics_params =
|
|
4
|
-
{
|
|
4
|
+
{
|
|
5
|
+
input: String,
|
|
6
|
+
max_results: Integer,
|
|
7
|
+
min_results: Integer,
|
|
8
|
+
timeout_ms: Integer
|
|
9
|
+
}
|
|
5
10
|
& BrandDev::Internal::Type::request_parameters
|
|
6
11
|
|
|
7
12
|
class BrandRetrieveNaicsParams < BrandDev::Internal::Type::BaseModel
|
|
@@ -10,18 +15,30 @@ module BrandDev
|
|
|
10
15
|
|
|
11
16
|
attr_accessor input: String
|
|
12
17
|
|
|
18
|
+
attr_reader max_results: Integer?
|
|
19
|
+
|
|
20
|
+
def max_results=: (Integer) -> Integer
|
|
21
|
+
|
|
22
|
+
attr_reader min_results: Integer?
|
|
23
|
+
|
|
24
|
+
def min_results=: (Integer) -> Integer
|
|
25
|
+
|
|
13
26
|
attr_reader timeout_ms: Integer?
|
|
14
27
|
|
|
15
28
|
def timeout_ms=: (Integer) -> Integer
|
|
16
29
|
|
|
17
30
|
def initialize: (
|
|
18
31
|
input: String,
|
|
32
|
+
?max_results: Integer,
|
|
33
|
+
?min_results: Integer,
|
|
19
34
|
?timeout_ms: Integer,
|
|
20
35
|
?request_options: BrandDev::request_opts
|
|
21
36
|
) -> void
|
|
22
37
|
|
|
23
38
|
def to_hash: -> {
|
|
24
39
|
input: String,
|
|
40
|
+
max_results: Integer,
|
|
41
|
+
min_results: Integer,
|
|
25
42
|
timeout_ms: Integer,
|
|
26
43
|
request_options: BrandDev::RequestOptions
|
|
27
44
|
}
|
|
@@ -41,20 +41,43 @@ module BrandDev
|
|
|
41
41
|
type: String
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
type code =
|
|
44
|
+
type code =
|
|
45
|
+
{
|
|
46
|
+
code: String,
|
|
47
|
+
confidence: BrandDev::Models::BrandRetrieveNaicsResponse::Code::confidence,
|
|
48
|
+
name: String
|
|
49
|
+
}
|
|
45
50
|
|
|
46
51
|
class Code < BrandDev::Internal::Type::BaseModel
|
|
47
|
-
|
|
52
|
+
attr_accessor code: String
|
|
48
53
|
|
|
49
|
-
|
|
54
|
+
attr_accessor confidence: BrandDev::Models::BrandRetrieveNaicsResponse::Code::confidence
|
|
50
55
|
|
|
51
|
-
|
|
56
|
+
attr_accessor name: String
|
|
52
57
|
|
|
53
|
-
def
|
|
58
|
+
def initialize: (
|
|
59
|
+
code: String,
|
|
60
|
+
confidence: BrandDev::Models::BrandRetrieveNaicsResponse::Code::confidence,
|
|
61
|
+
name: String
|
|
62
|
+
) -> void
|
|
54
63
|
|
|
55
|
-
def
|
|
64
|
+
def to_hash: -> {
|
|
65
|
+
code: String,
|
|
66
|
+
confidence: BrandDev::Models::BrandRetrieveNaicsResponse::Code::confidence,
|
|
67
|
+
name: String
|
|
68
|
+
}
|
|
56
69
|
|
|
57
|
-
|
|
70
|
+
type confidence = :high | :medium | :low
|
|
71
|
+
|
|
72
|
+
module Confidence
|
|
73
|
+
extend BrandDev::Internal::Type::Enum
|
|
74
|
+
|
|
75
|
+
HIGH: :high
|
|
76
|
+
MEDIUM: :medium
|
|
77
|
+
LOW: :low
|
|
78
|
+
|
|
79
|
+
def self?.values: -> ::Array[BrandDev::Models::BrandRetrieveNaicsResponse::Code::confidence]
|
|
80
|
+
end
|
|
58
81
|
end
|
|
59
82
|
end
|
|
60
83
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: brand.dev
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.18.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Brand Dev
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-12-
|
|
11
|
+
date: 2025-12-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: connection_pool
|