File tree Expand file tree Collapse file tree 12 files changed +103
-113
lines changed
airbyte-integrations/connectors/source-clickup-api Expand file tree Collapse file tree 12 files changed +103
-113
lines changed Original file line number Diff line number Diff line change @@ -21,10 +21,10 @@ tests:
21
21
# extra_fields: no
22
22
# exact_order: no
23
23
# extra_records: yes
24
- incremental : # TODO if your connector does not implement incremental sync, remove this block
25
- - config_path : " secrets/config.json"
26
- configured_catalog_path : " integration_tests/configured_catalog.json"
27
- future_state_path : " integration_tests/abnormal_state.json"
24
+ # incremental: # TODO if your connector does not implement incremental sync, remove this block
25
+ # - config_path: "secrets/config.json"
26
+ # configured_catalog_path: "integration_tests/configured_catalog.json"
27
+ # future_state_path: "integration_tests/abnormal_state.json"
28
28
full_refresh :
29
29
- config_path : " secrets/config.json"
30
30
configured_catalog_path : " integration_tests/configured_catalog.json"
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2
2
"streams" : [
3
3
{
4
4
"stream" : {
5
- "name" : " customers " ,
5
+ "name" : " user " ,
6
6
"json_schema" : {},
7
7
"supported_sync_modes" : [" full_refresh" ]
8
8
},
11
11
},
12
12
{
13
13
"stream" : {
14
- "name" : " employees " ,
14
+ "name" : " team " ,
15
15
"json_schema" : {},
16
- "supported_sync_modes" : [" full_refresh" , " incremental " ]
16
+ "supported_sync_modes" : [" full_refresh" ]
17
17
},
18
- "sync_mode" : " incremental " ,
19
- "destination_sync_mode" : " append "
18
+ "sync_mode" : " full_refresh " ,
19
+ "destination_sync_mode" : " overwrite "
20
20
}
21
21
]
22
22
}
Original file line number Diff line number Diff line change 1
1
{
2
- "todo-wrong-field " : " this should be an incomplete config file, used in standard tests"
2
+ "api_token " : " this should be an incomplete config file, used in standard tests"
3
3
}
Original file line number Diff line number Diff line change 1
- {
2
- "fix-me" : " TODO"
3
- }
1
+ { "api_token" : " abcdefgh" }
Original file line number Diff line number Diff line change @@ -14,12 +14,13 @@ definitions:
14
14
name : " {{ options['name'] }}"
15
15
http_method : " GET"
16
16
authenticator :
17
- type : BearerAuthenticator
18
- api_token : " {{ config['api_key'] }}"
17
+ type : ApiKeyAuthenticator
18
+ header : " Authorization"
19
+ api_token : " {{ config['api_token'] }}"
19
20
retriever :
20
21
type : SimpleRetriever
21
22
$options :
22
- url_base : TODO "your_api_base_url "
23
+ url_base : " https://api.clickup.com/api/v2 "
23
24
name : " {{ options['name'] }}"
24
25
primary_key : " {{ options['primary_key'] }}"
25
26
record_selector :
@@ -30,15 +31,24 @@ definitions:
30
31
streams :
31
32
- type : DeclarativeStream
32
33
$options :
33
- name : " customers"
34
- primary_key : " id"
34
+ name : " user"
35
35
schema_loader :
36
36
$ref : " *ref(definitions.schema_loader)"
37
37
retriever :
38
38
$ref : " *ref(definitions.retriever)"
39
39
requester :
40
40
$ref : " *ref(definitions.requester)"
41
- path : TODO "your_endpoint_path"
41
+ path : " /user"
42
+ - type : DeclarativeStream
43
+ $options :
44
+ name : " team"
45
+ schema_loader :
46
+ $ref : " *ref(definitions.schema_loader)"
47
+ retriever :
48
+ $ref : " *ref(definitions.retriever)"
49
+ requester :
50
+ $ref : " *ref(definitions.requester)"
51
+ path : " /team"
42
52
check :
43
53
type : CheckStream
44
- stream_names : ["customers "]
54
+ stream_names : ["user", "team "]
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ {
2
+ "$schema" : " http://json-schema.org/draft-07/schema#" ,
3
+ "type" : " object" ,
4
+ "properties" : {
5
+ "teams" : {
6
+ "type" : " array" ,
7
+ "items" : {
8
+ "type" : " object" ,
9
+ "properties" : {
10
+ "id" : {
11
+ "type" : [" null" , " string" ]
12
+ },
13
+ "name" : {
14
+ "type" : [" null" , " string" ]
15
+ },
16
+ "color" : {
17
+ "type" : [" null" , " string" ]
18
+ },
19
+ "avatar" : {
20
+ "type" : [" null" , " string" ]
21
+ },
22
+ "members" : {
23
+ "type" : " array" ,
24
+ "items" : {
25
+ "type" : " object" ,
26
+ "properties" : {
27
+ "id" : {
28
+ "type" : [" null" , " integer" ]
29
+ },
30
+ "username" : {
31
+ "type" : [" null" , " string" ]
32
+ },
33
+ "color" : {
34
+ "type" : [" null" , " string" ]
35
+ },
36
+ "profilePicture" : {
37
+ "type" : [" null" , " string" ]
38
+ }
39
+ }
40
+ }
41
+ }
42
+ }
43
+ }
44
+ }
45
+ }
46
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "$schema" : " http://json-schema.org/draft-07/schema#" ,
3
+ "type" : " object" ,
4
+ "properties" : {
5
+ "user" : {
6
+ "type" : " object" ,
7
+ "properties" : {
8
+ "id" : {
9
+ "type" : [" null" , " integer" ]
10
+ },
11
+ "username" : {
12
+ "type" : [" null" , " string" ]
13
+ },
14
+ "color" : {
15
+ "type" : [" null" , " string" ]
16
+ },
17
+ "profilePicture" : {
18
+ "type" : [" null" , " string" ]
19
+ }
20
+ }
21
+ }
22
+ }
23
+ }
Original file line number Diff line number Diff line change @@ -4,10 +4,13 @@ connectionSpecification:
4
4
title : ClickUp Api Spec
5
5
type : object
6
6
required :
7
- - TODO
7
+ - api_token
8
8
additionalProperties : true
9
9
properties :
10
10
# 'TODO: This schema defines the configuration required for the source. This usually involves metadata such as database and/or authentication information.':
11
- TODO :
11
+ api_token :
12
12
type : string
13
- description : describe me
13
+ description : >-
14
+ Every ClickUp API call required authentication. This field is your personal API token. See <a
15
+ href="https://clickup.com/api/developer-portal/authentication/#personal-token">here</a>.
16
+ airbyte_secret : true
You can’t perform that action at this time.
0 commit comments