Skip to content

Commit

Permalink
Review on orders stream and auth, alongside with tests
Browse files Browse the repository at this point in the history
  • Loading branch information
butkeraites-hotglue committed Sep 25, 2024
1 parent a5e0502 commit b0c0d9b
Show file tree
Hide file tree
Showing 10 changed files with 340 additions and 127 deletions.
65 changes: 48 additions & 17 deletions meltano.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,30 +16,61 @@ plugins:
- about
- stream-maps

# TODO: Declare settings and their types here:
settings:
- name: username
label: Username
description: The username to use for authentication

- name: password
kind: password
label: Password
description: The password to use for authentication
- name: url
label: URL
description: URL of the data source

- name: authType
label: Authentication Type
description: "Supported authentication types: API_KEY | JWT"

- name: apiKey
label: API_KEY Value
description: "Utilized when authType is set to API_KEY"
sensitive: true

- name: apiKeyHeaderName
label: API_KEY Header Name
description: "Utilized when authType is set to API_KEY"

- name: clientId
label: Client Id
description: "Utilized when authType is set to JWT"

- name: secret
label: Secret
description: "Utilized when authType is set to JWT"
sensitive: true

- name: start_date
kind: date_iso8601
label: Start Date
description: Initial date to start extracting data from
- name: audience
label: Audience
description: "Utilized when authType is set to JWT"

- name: tokenEndpointUrl
label: Token Endpoint URL
description: "Utilized when authType is set to JWT"

- name: merchantId
label: Merchant Id
description: "Specify a customer when querying the data source"

- name: tenantId
label: Tenant Id
description: "[Optional] Specify a customer’s operation when querying the data source"

# TODO: Declare required settings here:
settings_group_validation:
- [username, password]
- [url, authType]
- [apiKey, apiKeyHeaderName] # When authType is API_KEY
- [clientId, secret, audience, tokenEndpointUrl] # When authType is JWT

# TODO: Declare default configuration values here:
config:
start_date: '2010-01-01T00:00:00Z'
url: 'https://api.flowpay-universal.com'
authType: "API_KEY"
apiKey: "token"
apiKeyHeaderName: "Token"
merchantId: "test_merchant"


loaders:
- name: target-jsonl
Expand Down
133 changes: 132 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ importlib-resources = { version = "==6.4.*", python = "<3.9" }
singer-sdk = { version="~=0.40.0", extras = ["faker",] }
fs-s3fs = { version = "~=1.1.1", optional = true }
requests = "~=2.32.3"
tox = "^4.20.0"

[tool.poetry.group.dev.dependencies]
pytest = ">=8"
Expand Down
Loading

0 comments on commit b0c0d9b

Please sign in to comment.