Skip to content

Commit

Permalink
Update person schemas for v26 release (#32)
Browse files Browse the repository at this point in the history
* Update person schemas for v26 release

* chore: Upgrade GitHub Actions to latest versions
  • Loading branch information
vvillait88 committed Apr 3, 2024
1 parent 6d9b844 commit d8b8343
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: 1.18.3
- name: Run tests
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
## [1.4.4] - 2024-03-04

- Remove beta from AutoComplete Endpoint

## [2.0.0] - 2024-04-02

- Change gender to sex in Person Schema
- Add job_last_changed to Person Schema
- Add job_last_verified to Person Schema
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<img src="https://img.shields.io/badge/repo%20status-Active-limegreen" alt="Repo Status">
</a>&nbsp;
<a href="https://pkg.go.dev/github.com/peopledatalabs/peopledatalabs-go">
<img src="https://img.shields.io/github/go-mod/go-version/peopledatalabs/peopledatalabs-go" alt="Go 1.4.4" />
<img src="https://img.shields.io/github/go-mod/go-version/peopledatalabs/peopledatalabs-go" alt="Go 2.0.0" />
</a>&nbsp;
<a href="https://github.com/peopledatalabs/peopledatalabs-go/actions/workflows/test.yaml">
<img src="https://github.com/peopledatalabs/peopledatalabs-go/actions/workflows/test.yaml/badge.svg" alt="Tests Status" />
Expand Down
4 changes: 3 additions & 1 deletion model/schemas.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ type Person struct {
MiddleName string `json:"middle_name"` // A person's middle name
LastInitial string `json:"last_initial"` // The first letter of a person's last name
LastName string `json:"last_name"` // A person's last name
Gender string `json:"gender"` // The person's gender
Sex string `json:"sex"` // The person's sex
BirthYear int `json:"birth_year"` // Approximated birth date associated with this person profile. If a profile has a birth_date, the birth_year field will match
BirthDate string `json:"birth_date"` // Date string in YYYY-mm-dd format. Can be accurate to the day (YYYY-MM-DD), month (YYYY-MM) or year (YYYY). If this exists, birth_year will agree with this
LinkedinUrl string `json:"linkedin_url"` // Main linkedin profile for this record based on source agreement
Expand Down Expand Up @@ -55,6 +55,8 @@ type Person struct {
JobCompanyMonthGrowthRate float64 `json:"job_company_12mo_employee_growth_rate"` // A person's current company's 12 month employee growth rate
JobCompanyTotalFundingRaised float64 `json:"job_company_total_funding_raised"` // A person's current company's total funding raised
JobLastUpdated string `json:"job_last_updated"` // YYYY-MM-DD Indicates the timestamp of the most recent source that agrees with this information
JobLastChanged string `json:"job_last_changed"` // YYYY-MM-DD Indicates the timestamp of the timestamp that reflects when the top-level job information changed
JobLastVerified string `json:"job_last_verified"` // YYYY-MM-DD Indicates the timestamp that reflects when the top level job information was last validated by a data source
JobStartDate string `json:"job_start_date"` // YYYY-MM-DD Indicates the start period of the object. Can be accurate to the day (YYYY-MM-DD), month (YYYY-MM) or year (YYYY)
LocationName string `json:"location_name"` // the current canonical location of the person
LocationLocality string `json:"location_locality"` // the current locality of the person
Expand Down
2 changes: 1 addition & 1 deletion pld.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"github.com/peopledatalabs/peopledatalabs-go/api"
)

const Version = "1.4.4"
const Version = "2.0.0"

type pld struct {
Person api.Person
Expand Down

0 comments on commit d8b8343

Please sign in to comment.