@@ -22,6 +22,7 @@ import {
22
22
} from './matches' ;
23
23
import * as QueriesAPI from './queries' ;
24
24
import { Queries , QueryCreateParams , QueryDeleteParams } from './queries' ;
25
+ import { SinglePage } from '../../pagination' ;
25
26
26
27
export class BrandProtection extends APIResource {
27
28
queries : QueriesAPI . Queries = new QueriesAPI . Queries ( this . _client ) ;
@@ -46,12 +47,18 @@ export class BrandProtection extends APIResource {
46
47
urlInfo (
47
48
params : BrandProtectionURLInfoParams ,
48
49
options ?: Core . RequestOptions ,
49
- ) : Core . APIPromise < BrandProtectionURLInfoResponse > {
50
+ ) : Core . PagePromise < BrandProtectionURLInfoResponsesSinglePage , BrandProtectionURLInfoResponse > {
50
51
const { account_id } = params ;
51
- return this . _client . get ( `/accounts/${ account_id } /brand-protection/url-info` , options ) ;
52
+ return this . _client . getAPIList (
53
+ `/accounts/${ account_id } /brand-protection/url-info` ,
54
+ BrandProtectionURLInfoResponsesSinglePage ,
55
+ options ,
56
+ ) ;
52
57
}
53
58
}
54
59
60
+ export class BrandProtectionURLInfoResponsesSinglePage extends SinglePage < BrandProtectionURLInfoResponse > { }
61
+
55
62
export interface Info {
56
63
/**
57
64
* List of categorizations applied to this submission.
@@ -215,48 +222,12 @@ export namespace Submit {
215
222
}
216
223
217
224
export interface BrandProtectionSubmitResponse {
218
- /**
219
- * Error code
220
- */
221
- code ?: number ;
222
-
223
- /**
224
- * Errors
225
- */
226
- errors ?: { [ key : string ] : unknown } ;
225
+ skipped_urls ?: Array < { [ key : string ] : unknown } > ;
227
226
228
- /**
229
- * Error message
230
- */
231
- message ?: string ;
232
-
233
- /**
234
- * Error name
235
- */
236
- status ?: string ;
227
+ submitted_urls ?: Array < { [ key : string ] : unknown } > ;
237
228
}
238
229
239
- export interface BrandProtectionURLInfoResponse {
240
- /**
241
- * Error code
242
- */
243
- code ?: number ;
244
-
245
- /**
246
- * Errors
247
- */
248
- errors ?: { [ key : string ] : unknown } ;
249
-
250
- /**
251
- * Error message
252
- */
253
- message ?: string ;
254
-
255
- /**
256
- * Error name
257
- */
258
- status ?: string ;
259
- }
230
+ export type BrandProtectionURLInfoResponse = { [ key : string ] : unknown } ;
260
231
261
232
export interface BrandProtectionSubmitParams {
262
233
account_id : string ;
@@ -266,6 +237,7 @@ export interface BrandProtectionURLInfoParams {
266
237
account_id : string ;
267
238
}
268
239
240
+ BrandProtection . BrandProtectionURLInfoResponsesSinglePage = BrandProtectionURLInfoResponsesSinglePage ;
269
241
BrandProtection . Queries = Queries ;
270
242
BrandProtection . Matches = Matches ;
271
243
BrandProtection . Logos = Logos ;
@@ -277,6 +249,7 @@ export declare namespace BrandProtection {
277
249
type Submit as Submit ,
278
250
type BrandProtectionSubmitResponse as BrandProtectionSubmitResponse ,
279
251
type BrandProtectionURLInfoResponse as BrandProtectionURLInfoResponse ,
252
+ BrandProtectionURLInfoResponsesSinglePage as BrandProtectionURLInfoResponsesSinglePage ,
280
253
type BrandProtectionSubmitParams as BrandProtectionSubmitParams ,
281
254
type BrandProtectionURLInfoParams as BrandProtectionURLInfoParams ,
282
255
} ;
0 commit comments