Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
DE-2547 Hibob - Deprecation of employees endpoint - Add missing data (#…
Browse files Browse the repository at this point in the history
…57)

* Added new data source

* Added schema elements
  • Loading branch information
SBurwash authored Jan 3, 2024
1 parent 7477b88 commit 97aa281
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 7 deletions.
31 changes: 24 additions & 7 deletions tap_hibob/schemas/EmployeesSearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"internal",
th.ObjectType(
th.Property("terminationReason", th.StringType),
th.Property("terminationType", th.StringType),
th.Property("probationEndDate", th.StringType),
th.Property("terminationDate", th.StringType),
),
Expand All @@ -26,6 +27,7 @@
th.Property("column_1655996461265", th.StringType),
th.Property("column_1644862416222", th.ArrayType(th.StringType)),
th.Property("column_1644861659664", th.ArrayType(th.StringType)),
th.Property("column_1664478354663", th.ArrayType(th.StringType)),
),
),
th.Property(
Expand All @@ -42,15 +44,16 @@
),
th.Property(
"payroll",
th.ObjectType(
th.Property(
"employment",
th.ObjectType(
th.Property(
"employment",
th.ObjectType(
th.Property("type", th.StringType),
th.Property("contract", th.StringType),
),
),
th.Property("type", th.StringType),
th.Property("contract", th.StringType),
th.Property("weeklyHours", th.IntegerType),
),
),
),
),
th.Property(
"personal",
Expand Down Expand Up @@ -99,6 +102,7 @@
"internal",
th.ObjectType(
th.Property("terminationReason", th.StringType),
th.Property("terminationType", th.StringType),
th.Property("probationEndDate", th.StringType),
th.Property("terminationDate", th.StringType),
),
Expand All @@ -117,6 +121,7 @@
th.ObjectType(
th.Property("type", th.StringType),
th.Property("contract", th.StringType),
th.Property("weeklyHours", th.StringType),
),
),
),
Expand All @@ -138,6 +143,10 @@
"/work/customColumns/column_1644861659664",
th.ObjectType(th.Property("value", th.ArrayType(th.StringType))),
),
th.Property(
"/work/customColumns/column_1664478354663",
th.ObjectType(th.Property("value", th.ArrayType(th.StringType))),
),
th.Property("/work/department", th.ObjectType(th.Property("value", th.StringType))),
th.Property("/root/fullName", th.ObjectType(th.Property("value", th.StringType))),
th.Property(
Expand All @@ -157,6 +166,10 @@
"/payroll/employment/contract",
th.ObjectType(th.Property("value", th.StringType)),
),
th.Property(
"/payroll/employment/weeklyHours",
th.ObjectType(th.Property("value", th.IntegerType)),
),
th.Property(
"/internal/terminationDate",
th.ObjectType(th.Property("value", th.DateTimeType)),
Expand All @@ -168,6 +181,10 @@
"/internal/terminationReason",
th.ObjectType(th.Property("value", th.StringType)),
),
th.Property(
"/internal/terminationType",
th.ObjectType(th.Property("value", th.StringType)),
),
th.Property(
"/personal/pronouns",
th.ObjectType(th.Property("value", th.StringType)),
Expand Down
3 changes: 3 additions & 0 deletions tap_hibob/streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,17 @@ def prepare_request_payload(
"/personal/pronouns",
"/payroll/employment/type",
"/payroll/employment/contract",
"/payroll/employment/weeklyHours",
"/work/customColumns/column_1644862416222",
"/work/customColumns/column_1644861659664",
"/work/customColumns/column_1664478354663",
"/work/custom/field_1651169416679",
"/work/title",
"/work/site",
"/work/department",
"/work/isManager",
"/internal/terminationReason",
"/internal/terminationType",
"/internal/probationEndDate",
"/internal/terminationDate"
],
Expand Down

0 comments on commit 97aa281

Please sign in to comment.