Skip to content

Commit

Permalink
Update required fields based on API doc
Browse files Browse the repository at this point in the history
  • Loading branch information
ynaim94-harrys committed Sep 20, 2022
1 parent dc1693b commit 0e4e19e
Show file tree
Hide file tree
Showing 10 changed files with 31 additions and 61 deletions.
35 changes: 25 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,35 @@ pipx install git+https://github.com/ORG_NAME/tap-gladly.git@main
-->

## Capabilities

* `catalog`
* `state`
* `discover`
* `about`
* `stream-maps`
* `schema-flattening`

## Settings

| Setting | Required | Default | Description |
|:--------------------|:--------:|:-------:|:------------|
| username | True | None | The username to authenticate against the API service |
| password | True | None | The username to authenticate against the API service |
| project_ids | False | None | Project IDs to replicate |
| start_date | True | None | The earliest record date to sync, format %Y-%m-%dT%H:%M:%SZ |
| api_url_base | True | None | The url for the API service |
| stream_maps | False | None | Config object for stream maps capability. For more information check out [Stream Maps](https://sdk.meltano.com/en/latest/stream_maps.html). |
| stream_map_config | False | None | User-defined config values to be used within map expressions. |
| flattening_enabled | False | None | 'True' to enable schema flattening and automatically expand nested properties. |
| flattening_max_depth| False | None | The max depth to flatten schemas. |

A full list of supported settings and capabilities is available by running: `tap-gladly --about`

## Configuration

### Accepted Config Options

<!--
Developer TODO: Provide a list of config options accepted by the tap.
This section can be created by copy-pasting the CLI output from:
```
tap-gladly --about --format=markdown
```
-->

A full list of supported settings and capabilities for this
tap is available by running:

Expand Down
2 changes: 0 additions & 2 deletions tap_gladly/schemas/export_conversation-chat_message.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,8 @@
},
"required": [
"content",
"conversationId",
"customerId",
"id",
"initiator",
"timestamp"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,16 @@
"id": {
"type": "string"
}
},
"required": [
"id",
"type"
]
}
},
"timestamp": {
"type": "string"
}
},
"required": [
"content",
"conversationId",
"customerId",
"id",
"initiator",
"timestamp"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
},
"required": [
"content",
"conversationId",
"customerId",
"id",
"timestamp"
Expand Down
15 changes: 2 additions & 13 deletions tap_gladly/schemas/export_conversation-phone_call.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
}
},
"required": [
"completedAt",
"from",
"startedAt",
"to",
Expand All @@ -59,11 +58,7 @@
"id": {
"type": "string"
}
},
"required": [
"id",
"type"
]
}
},
"responder": {
"type": "object",
Expand All @@ -74,22 +69,16 @@
"id": {
"type": "string"
}
},
"required": [
"id",
"type"
]
}
},
"timestamp": {
"type": "string"
}
},
"required": [
"content",
"conversationId",
"customerId",
"id",
"initiator",
"timestamp"
]
}
1 change: 0 additions & 1 deletion tap_gladly/schemas/export_conversation-sms.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
"content",
"customerId",
"id",
"initiator",
"timestamp"
]
}
8 changes: 1 addition & 7 deletions tap_gladly/schemas/export_conversation-topic_change.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,22 +43,16 @@
"id": {
"type": "string"
}
},
"required": [
"id",
"type"
]
}
},
"timestamp": {
"type": "string"
}
},
"required": [
"content",
"conversationId",
"customerId",
"id",
"initiator",
"timestamp"
]
}
12 changes: 1 addition & 11 deletions tap_gladly/schemas/export_conversation-voicemail.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@
}
},
"required": [
"recordingDuration",
"recordingStatus",
"recordingUrl",
"startedAt",
"type"
]
},
Expand All @@ -47,22 +43,16 @@
"id": {
"type": "string"
}
},
"required": [
"id",
"type"
]
}
},
"timestamp": {
"type": "string"
}
},
"required": [
"content",
"conversationId",
"customerId",
"id",
"initiator",
"timestamp"
]
}
9 changes: 1 addition & 8 deletions tap_gladly/schemas/export_jobs.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,5 @@
"type": "string"
}
}
},
"required": [
"files",
"id",
"parameters",
"status",
"updatedAt"
]
}
}
1 change: 0 additions & 1 deletion tap_gladly/streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ class ExportJobsStream(gladlyStream):

# start_date
def post_process(self, row, context):
"""As needed, append or transform raw data to match expected structure."""
"""As needed, append or transform raw data to match expected structure."""
if "start_date" not in self.config:
return row
Expand Down

0 comments on commit 0e4e19e

Please sign in to comment.