Skip to content

Commit

Permalink
Update manifest. only keep the custom reports endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
girarda authored Aug 5, 2024
1 parent 0cf0e95 commit 4e34efb
Showing 1 changed file with 107 additions and 168 deletions.
Original file line number Diff line number Diff line change
@@ -1,165 +1,49 @@
version: 0.85.0
version: 3.9.6

type: DeclarativeSource

check:
type: CheckStream
stream_names:
- workers
- Custom reports

definitions:
streams:
workers:
Custom reports:
type: DeclarativeStream
name: workers
primary_key:
- id
name: Custom reports
retriever:
type: SimpleRetriever
requester:
$ref: '#/definitions/base_requester'
path: workers
$ref: "#/definitions/base_requester"
path: "{{stream_partition.report}}"
http_method: GET
request_parameters:
format: json
record_selector:
type: RecordSelector
extractor:
type: DpathExtractor
field_path:
- data
paginator:
type: DefaultPaginator
page_size_option:
type: RequestOption
inject_into: request_parameter
field_name: Limit
pagination_strategy:
type: OffsetIncrement
page_size: 100
inject_on_first_request: true
schema_loader:
type: InlineSchemaLoader
schema:
$ref: '#/schemas/workers'
people:
type: DeclarativeStream
name: people
primary_key:
- id
retriever:
type: SimpleRetriever
requester:
$ref: '#/definitions/base_requester'
path: people
http_method: GET
record_selector:
type: RecordSelector
extractor:
type: DpathExtractor
field_path:
- data
paginator:
type: DefaultPaginator
page_size_option:
type: RequestOption
inject_into: request_parameter
field_name: Limit
pagination_strategy:
type: OffsetIncrement
page_size: 100
inject_on_first_request: true
schema_loader:
type: InlineSchemaLoader
schema:
$ref: '#/schemas/people'
supervisory_organizations:
type: DeclarativeStream
name: supervisory_organizations
primary_key:
- id
retriever:
type: SimpleRetriever
requester:
$ref: '#/definitions/base_requester'
path: supervisory_organizations
http_method: GET
record_selector:
type: RecordSelector
extractor:
type: DpathExtractor
field_path:
- data
paginator:
type: DefaultPaginator
page_size_option:
type: RequestOption
inject_into: request_parameter
field_name: Limit
pagination_strategy:
type: OffsetIncrement
page_size: 100
inject_on_first_request: true
schema_loader:
type: InlineSchemaLoader
schema:
$ref: '#/schemas/supervisory_organizations'
org_charts:
type: DeclarativeStream
name: org_charts
retriever:
type: SimpleRetriever
requester:
$ref: '#/definitions/base_requester'
path: /supervisoryOrganizations/{org_id}/orgChart
http_method: GET
record_selector:
type: RecordSelector
extractor:
type: DpathExtractor
field_path: []
- Report_Entry
partition_router:
- type: SubstreamPartitionRouter
parent_stream_configs:
- type: ParentStreamConfig
parent_key: id
partition_field: org_id
stream:
$ref: '#/definitions/streams/supervisory_organizations'
schema_loader:
type: InlineSchemaLoader
schema:
$ref: '#/schemas/org_charts'
custom_reports:
type: DeclarativeStream
name: custom_reports
retriever:
type: SimpleRetriever
requester:
$ref: '#/definitions/base_requester'
path: /service/customreport2/{tenant_id}/{report_name}
http_method: GET
record_selector:
type: RecordSelector
extractor:
type: DpathExtractor
field_path: []
type: ListPartitionRouter
values: "{{config.reports}}"
cursor_field: report
schema_loader:
type: InlineSchemaLoader
schema:
$ref: '#/schemas/custom_reports'
$ref: "#/schemas/Custom reports"
base_requester:
type: HttpRequester
url_base: <host>/<API version>/<tenant>/ccx
url_base: https://{{config.host}}/ccx/service/customreport2/{{config.tenant_id}}/
authenticator:
type: BasicHttpAuthenticator
username: '{{ config["username"] }}'
password: '{{ config["password"] }}'
password: "{{ config[\"password\"] }}"
username: "{{ config[\"username\"] }}"

streams:
- $ref: '#/definitions/streams/workers'
- $ref: '#/definitions/streams/people'
- $ref: '#/definitions/streams/supervisory_organizations'
- $ref: '#/definitions/streams/org_charts'
- $ref: '#/definitions/streams/custom_reports'
- $ref: "#/definitions/streams/Custom reports"

spec:
type: Spec
Expand All @@ -170,63 +54,118 @@ spec:
- username
- host
- tenant_id
- custom_report_name
properties:
username:
type: string
title: Username
order: 0
title: Username
password:
type: string
order: 1
title: Password
always_show: true
airbyte_secret: true
order: 1
host:
type: string
title: Host
order: 2
title: Host
tenant_id:
type: string
title: Tenant Id
order: 3
custom_report_name:
title: Tenant ID
reports:
type: array
title: Custom Report Name
order: 4
title: Reports
additionalProperties: true

metadata:
autoImportSchema:
workers: true
people: true
supervisory_organizations: true
org_charts: true
custom_reports: true
Custom reports: true
testedStreams:
Custom reports:
streamHash: 375faa072cf11e83f7c37c06bb06c549b2e48d1b
hasResponse: true
responsesAreSuccessful: true
hasRecords: true
primaryKeysArePresent: true
primaryKeysAreUnique: true

schemas:
workers:
Custom reports:
type: object
$schema: http://json-schema.org/draft-07/schema#
$schema: http://json-schema.org/schema#
additionalProperties: true
properties: {}
people:
type: object
$schema: http://json-schema.org/draft-07/schema#
additionalProperties: true
properties: {}
supervisory_organizations:
type: object
$schema: http://json-schema.org/draft-07/schema#
additionalProperties: true
properties: {}
org_charts:
type: object
$schema: http://json-schema.org/draft-07/schema#
additionalProperties: true
properties: {}
custom_reports:
type: object
$schema: http://json-schema.org/draft-07/schema#
additionalProperties: true
properties: {}
properties:
Business_Title:
type:
- string
- "null"
Department:
type:
- string
- "null"
Department_ID:
type:
- string
- "null"
Division:
type:
- string
- "null"
Division_ID:
type:
- string
- "null"
Employee_ID:
type:
- string
- "null"
First_Name:
type:
- string
- "null"
Hire_Date:
type:
- string
- "null"
Last_Name:
type:
- string
- "null"
Manager_Email:
type:
- string
- "null"
Manager_Flag:
type:
- string
- "null"
Preferred_First_Name:
type:
- string
- "null"
Preferred_Last_Name:
type:
- string
- "null"
Primary_Work_Location:
type:
- string
- "null"
Remote_Flag:
type:
- string
- "null"
Work_Email:
type:
- string
- "null"
Worker_Sub_Type:
type:
- string
- "null"
Worker_Type:
type:
- string
- "null"

0 comments on commit 4e34efb

Please sign in to comment.