@@ -12,35 +12,12 @@ const dataSourceConfig = {
12
12
type : "dataSource" ,
13
13
params : [
14
14
{
15
- type : "groupTitle" ,
16
- key : "api_key_header" ,
17
- label : "Api Key Auth" ,
15
+ "type" : "password" ,
16
+ "key" : "api_key_header.value" ,
17
+ "label" : "Personal API Token" ,
18
+ "tooltip" : "[Personal API Token](https://circleci.com/docs/managing-api-tokens/#creating-a-personal-api-token)"
18
19
} ,
19
- {
20
- type : "password" ,
21
- key : "api_key_header.value" ,
22
- label : "Circle-Token" ,
23
- } ,
24
- {
25
- type : "groupTitle" ,
26
- key : "basic_auth" ,
27
- label : "HTTP Basic Auth" ,
28
- } ,
29
- {
30
- type : "textInput" ,
31
- key : "basic_auth.username" ,
32
- label : "Username" ,
33
- tooltip : "Basic auth username" ,
34
- placeholder : "<Basic Auth Username>" ,
35
- } ,
36
- {
37
- type : "password" ,
38
- key : "basic_auth.password" ,
39
- label : "Password" ,
40
- tooltip : "Basic auth password" ,
41
- placeholder : "<Basic Auth Password>" ,
42
- } ,
43
- ] ,
20
+ ]
44
21
} as const ;
45
22
46
23
const parseOptions : ParseOpenApiOptions = {
@@ -54,19 +31,16 @@ type DataSourceConfigType = ConfigToType<typeof dataSourceConfig>;
54
31
const circleCiPlugin : DataSourcePlugin < any , DataSourceConfigType > = {
55
32
id : "circleCi" ,
56
33
name : "CircleCI" ,
57
- icon : "circleCi .svg" ,
34
+ icon : "circleCI .svg" ,
58
35
category : "api" ,
59
36
dataSourceConfig,
60
37
queryConfig : async ( ) => {
61
- const { actions, categories } = await parseOpenApi (
62
- spec as unknown as OpenAPI . Document ,
63
- parseOptions
64
- ) ;
38
+ const { actions, categories } = await parseOpenApi ( spec as unknown as OpenAPI . Document , parseOptions ) ;
65
39
return {
66
40
type : "query" ,
67
41
label : "Action" ,
68
42
categories : {
69
- label : "Category " ,
43
+ label : "Resources " ,
70
44
items : categories ,
71
45
} ,
72
46
actions,
0 commit comments