Skip to content

Commit

Permalink
Update fields in source-connectors specifications: lever-hiring (#9214)
Browse files Browse the repository at this point in the history
Signed-off-by: Sergey Chvalyuk <[email protected]>
Co-authored-by: Sergey Chvalyuk <[email protected]>
  • Loading branch information
ycherniaiev and grubberr authored Jan 20, 2022
1 parent b8cd772 commit e142a4f
Show file tree
Hide file tree
Showing 7 changed files with 119 additions and 47 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"sourceDefinitionId": "3981c999-bd7d-4afc-849b-e53dea90c948",
"name": "Lever Hiring",
"dockerRepository": "airbyte/source-lever-hiring",
"dockerImageTag": "0.1.0",
"dockerImageTag": "0.1.2",
"documentationUrl": "https://docs.airbyte.io/integrations/sources/lever-hiring",
"icon": "leverhiring.svg"
}
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@
- name: Lever Hiring
sourceDefinitionId: 3981c999-bd7d-4afc-849b-e53dea90c948
dockerRepository: airbyte/source-lever-hiring
dockerImageTag: 0.1.0
dockerImageTag: 0.1.2
documentationUrl: https://docs.airbyte.io/integrations/sources/lever-hiring
icon: leverhiring.svg
sourceType: api
Expand Down
143 changes: 107 additions & 36 deletions airbyte-config/init/src/main/resources/seed/source_specs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3574,63 +3574,134 @@
supportsNormalization: false
supportsDBT: false
supported_destination_sync_modes: []
- dockerImage: "airbyte/source-lever-hiring:0.1.0"
- dockerImage: "airbyte/source-lever-hiring:0.1.2"
spec:
documentationUrl: "https://docs.airbyte.io/integrations/sources/lever-hiring"
changelogUrl: "https://docs.airbyte.io/integrations/sources/lever-hiring#changelog"
connectionSpecification:
title: "Lever Hiring Spec"
$schema: "http://json-schema.org/draft-07/schema#"
title: "Lever Hiring Source Spec"
type: "object"
required:
- "start_date"
additionalProperties: true
properties:
client_id:
title: "Client Id"
description: "The client application id as provided when registering the\
\ application with Lever."
type: "string"
client_secret:
title: "Client Secret"
description: "The application secret as provided when registering the application\
\ with Lever."
airbyte_secret: true
type: "string"
refresh_token:
title: "Refresh Token"
description: "The refresh token your application will need to submit to\
\ get a new access token after it's expired."
credentials:
order: 3
title: "Authentication Mechanism"
description: "Choose how to authenticate to Lever Hiring."
type: "object"
oneOf:
- type: "object"
title: "Authenticate via Lever (OAuth)"
required:
- "refresh_token"
properties:
auth_type:
type: "string"
const: "Client"
enum:
- "Client"
default: "Client"
order: 0
client_id:
title: "Client ID"
type: "string"
description: "The Client ID of your Lever Hiring developer application."
client_secret:
title: "Client Secret"
type: "string"
description: "The Client Secret of your Lever Hiring developer application."
airbyte_secret: true
option_title:
type: "string"
title: "Credentials Title"
description: "OAuth Credentials"
const: "OAuth Credentials"
refresh_token:
type: "string"
title: "Refresh Token"
description: "The token for obtaining new access token."
airbyte_secret: true
start_date:
order: 0
type: "string"
title: "Start Date"
description: "UTC date and time in the format 2017-01-25T00:00:00Z. Any\
\ data before this date will not be replicated. Note that it will be used\
\ only in the following incremental streams: comments, commits, and issues."
examples:
- "2021-03-01T00:00:00Z"
pattern: "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$"
environment:
order: 1
type: "string"
title: "Environment"
description: "Sandbox or Production environment."
default: "Production"
description: "The environment in which you'd like to replicate data for\
\ Lever. This is used to determine which Lever API endpoint to use."
default: "Sandbox"
enum:
- "Sandbox"
- "Production"
type: "string"
start_date:
title: "Start Date"
description: "UTC date and time in the format 2019-02-25T00:00:00Z. Any\
\ data before this date will not be replicated."
pattern: "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$"
examples:
- "2021-04-25T00:00:00Z"
type: "string"
required:
- "client_id"
- "client_secret"
- "refresh_token"
- "start_date"
- "Sandbox"
supportsNormalization: false
supportsDBT: false
supported_destination_sync_modes: []
authSpecification:
auth_type: "oauth2.0"
oauth2Specification:
rootObject: []
rootObject:
- "credentials"
- "0"
oauthFlowInitParameters:
- - "client_id"
- - "client_secret"
oauthFlowOutputParameters:
- - "refresh_token"
oauthFlowOutputParameters: []
advanced_auth:
auth_flow_type: "oauth2.0"
predicate_key:
- "credentials"
- "auth_type"
predicate_value: "Client"
oauth_config_specification:
oauth_user_input_from_connector_config_specification:
type: "object"
properties:
environment:
type: "string"
path_in_connector_config:
- "environment"
complete_oauth_output_specification:
type: "object"
additionalProperties: false
properties:
refresh_token:
type: "string"
path_in_connector_config:
- "credentials"
- "refresh_token"
complete_oauth_server_input_specification:
type: "object"
additionalProperties: false
properties:
client_id:
type: "string"
client_secret:
type: "string"
complete_oauth_server_output_specification:
type: "object"
additionalProperties: false
properties:
client_id:
type: "string"
path_in_connector_config:
- "credentials"
- "client_id"
client_secret:
type: "string"
path_in_connector_config:
- "credentials"
- "client_secret"
- dockerImage: "airbyte/source-linkedin-ads:0.1.5"
spec:
documentationUrl: "https://docs.airbyte.io/integrations/sources/linkedin-ads"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ COPY source_lever_hiring ./source_lever_hiring
ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py"
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]

LABEL io.airbyte.version=0.1.1
LABEL io.airbyte.version=0.1.2
LABEL io.airbyte.name=airbyte/source-lever-hiring
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@
"client_id": {
"title": "Client ID",
"type": "string",
"description": "The Client ID of your application"
"description": "The Client ID of your Lever Hiring developer application."
},
"client_secret": {
"title": "Client Secret",
"type": "string",
"description": "The client secret of your application",
"description": "The Client Secret of your Lever Hiring developer application.",
"airbyte_secret": true
},
"option_title": {
Expand All @@ -46,7 +46,7 @@
"refresh_token": {
"type": "string",
"title": "Refresh Token",
"description": "OAuth access token",
"description": "The token for obtaining new access token.",
"airbyte_secret": true
}
}
Expand All @@ -57,7 +57,7 @@
"order": 0,
"type": "string",
"title": "Start Date",
"description": "The date from which you'd like to replicate data for Lever in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. Note that it will be used only in the following incremental streams: comments, commits and issues.",
"description": "UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. Note that it will be used only in the following incremental streams: comments, commits, and issues.",
"examples": ["2021-03-01T00:00:00Z"],
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@
"client_id": {
"title": "Client ID",
"type": "string",
"description": "The Client ID of your application"
"description": "The Client ID of your Lever Hiring developer application."
},
"client_secret": {
"title": "Client Secret",
"type": "string",
"description": "The client secret of your application",
"description": "The Client Secret of your Lever Hiring developer application.",
"airbyte_secret": true
},
"option_title": {
Expand All @@ -46,7 +46,7 @@
"refresh_token": {
"type": "string",
"title": "Refresh Token",
"description": "OAuth access token",
"description": "The token for obtaining new access token.",
"airbyte_secret": true
}
}
Expand All @@ -57,7 +57,7 @@
"order": 0,
"type": "string",
"title": "Start Date",
"description": "The date from which you'd like to replicate data for Lever in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. Note that it will be used only in the following incremental streams: comments, commits and issues.",
"description": "UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. Note that it will be used only in the following incremental streams: comments, commits, and issues.",
"examples": ["2021-03-01T00:00:00Z"],
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$"
},
Expand Down
1 change: 1 addition & 0 deletions docs/integrations/sources/lever-hiring.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ The Lever Hiring connector should not run into Lever Hiring API limitations unde

| Version | Date | Pull Request | Subject |
| :--- | :--- | :--- | :--- |
| 0.1.2 | 2021-12-30 | [9214](https://github.com/airbytehq/airbyte/pull/9214) | Update title and descriptions |
| 0.1.1 | 2021-12-16 | [7677](https://github.com/airbytehq/airbyte/pull/7677) | OAuth Automated Authentication |
| 0.1.0 | 2021-09-22 | [6141](https://github.com/airbytehq/airbyte/pull/6141) | Add Lever Hiring Source Connector |

Expand Down

0 comments on commit e142a4f

Please sign in to comment.