Skip to content

Commit

Permalink
Merge pull request #20 from jolicode/feature/spec-update-20020804
Browse files Browse the repository at this point in the history
Specification update - 2022-08-04
  • Loading branch information
xavierlacot authored Aug 4, 2022
2 parents 17ea9db + bf6ccb8 commit a05db61
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 98 deletions.
111 changes: 14 additions & 97 deletions generated/harvest-openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,14 @@ components:
type: string
description: 'Used to represent whether the company is using a 12-hour or 24-hour clock. Returns either 12h or 24h.'
nullable: true
currency_code_display:
type: string
description: 'How to display the currency code when formatting currency. Returns one of: iso_code_none, iso_code_before, or iso_code_after.'
nullable: true
currency_symbol_display:
type: string
description: 'How to display the currency symbol when formatting currency. Returns one of: symbol_none, symbol_before, or symbol_after.'
nullable: true
decimal_symbol:
type: string
description: 'Symbol used when formatting decimals.'
Expand Down Expand Up @@ -1790,26 +1798,6 @@ components:
type: boolean
description: 'Whether the user is a contractor or an employee.'
nullable: true
is_admin:
type: boolean
description: 'Whether the user has Admin permissions.'
nullable: true
is_project_manager:
type: boolean
description: 'Whether the user has Project Manager permissions.'
nullable: true
can_see_rates:
type: boolean
description: 'Whether the user can see billable rates on projects. Only applicable to Project Managers.'
nullable: true
can_create_projects:
type: boolean
description: 'Whether the user can create projects. Only applicable to Project Managers.'
nullable: true
can_create_invoices:
type: boolean
description: 'Whether the user can create invoices. Only applicable to Project Managers.'
nullable: true
is_active:
type: boolean
description: 'Whether the user is active or archived.'
Expand Down Expand Up @@ -3559,6 +3547,8 @@ paths:
estimate_feature: true
approval_feature: true
clock: 12h
currency_code_display: iso_code_none
currency_symbol_display: symbol_before
decimal_symbol: .
thousands_separator: ','
color_scheme: orange
Expand Down Expand Up @@ -3602,6 +3592,8 @@ paths:
estimate_feature: true
approval_feature: true
clock: 12h
currency_code_display: iso_code_none
currency_symbol_display: symbol_before
decimal_symbol: .
thousands_separator: ','
color_scheme: orange
Expand Down Expand Up @@ -5174,7 +5166,7 @@ paths:
get:
summary: 'List all expenses'
operationId: listExpenses
description: "Returns a list of your expenses. If accessing this endpoint as an Admin, all expenses in the account will be returned. The expenses are returned sorted by the spent_at date, with the most recent expenses appearing first.\n\nThe response contains an object with a expenses property that contains an array of up to per_page expenses. Each entry in the array is a separate expense object. If no more expenses are available, the resulting array will be empty. Several additional pagination properties are included in the response to simplify paginating your expenses."
description: "Returns a list of your expenses. If accessing this endpoint as an Administrator, all expenses in the account will be returned. If accessing this endpoint as a Manager, all expenses for assigned teammates and managed projects will be returned. The expenses are returned sorted by the spent_at date, with the most recent expenses appearing first.\n\nThe response contains an object with a expenses property that contains an array of up to per_page expenses. Each entry in the array is a separate expense object. If no more expenses are available, the resulting array will be empty. Several additional pagination properties are included in the response to simplify paginating your expenses."
externalDocs:
description: 'List all expenses'
url: 'https://help.getharvest.com/api-v2/expenses-api/expenses/expenses/#list-all-expenses'
Expand Down Expand Up @@ -10079,7 +10071,7 @@ paths:
get:
summary: 'List all time entries'
operationId: listTimeEntries
description: "Returns a list of your time entries. The time entries are returned sorted by spent_date date. At this time, the sort option can’t be customized.\n\nThe response contains an object with a time_entries property that contains an array of up to per_page time entries. Each entry in the array is a separate time entry object. If no more time entries are available, the resulting array will be empty. Several additional pagination properties are included in the response to simplify paginating your time entries."
description: "Returns a list of time entries. The time entries are returned sorted by spent_date date. At this time, the sort option can’t be customized.\n\nThe response contains an object with a time_entries property that contains an array of up to per_page time entries. Each entry in the array is a separate time entry object. If no more time entries are available, the resulting array will be empty. Several additional pagination properties are included in the response to simplify paginating your time entries."
externalDocs:
description: 'List all time entries'
url: 'https://help.getharvest.com/api-v2/timesheets-api/timesheets/time-entries/#list-all-time-entries'
Expand Down Expand Up @@ -11191,11 +11183,6 @@ paths:
timezone: 'Mountain Time (US & Canada)'
has_access_to_all_future_projects: false
is_contractor: false
is_admin: false
is_project_manager: false
can_see_rates: false
can_create_projects: false
can_create_invoices: false
is_active: true
created_at: '2020-05-01T22:34:41Z'
updated_at: '2020-05-01T22:34:52Z'
Expand All @@ -11214,11 +11201,6 @@ paths:
timezone: 'Eastern Time (US & Canada)'
has_access_to_all_future_projects: true
is_contractor: false
is_admin: false
is_project_manager: true
can_see_rates: false
can_create_projects: false
can_create_invoices: false
is_active: true
created_at: '2020-05-01T22:15:45Z'
updated_at: '2020-05-01T22:32:52Z'
Expand All @@ -11237,11 +11219,6 @@ paths:
timezone: 'Mountain Time (US & Canada)'
has_access_to_all_future_projects: false
is_contractor: false
is_admin: true
is_project_manager: false
can_see_rates: true
can_create_projects: true
can_create_invoices: true
is_active: true
created_at: '2020-05-01T20:41:00Z'
updated_at: '2020-05-01T20:42:25Z'
Expand Down Expand Up @@ -11325,11 +11302,6 @@ paths:
timezone: 'Eastern Time (US & Canada)'
has_access_to_all_future_projects: false
is_contractor: false
is_admin: false
is_project_manager: true
can_see_rates: false
can_create_projects: false
can_create_invoices: false
is_active: true
weekly_capacity: 126000
default_hourly_rate: 0
Expand Down Expand Up @@ -11378,26 +11350,6 @@ paths:
type: boolean
description: 'Whether the user is a contractor or an employee. Defaults to false.'
nullable: true
is_admin:
type: boolean
description: 'Whether the user has Admin permissions. Defaults to false.'
nullable: true
is_project_manager:
type: boolean
description: 'Whether the user has Project Manager permissions. Defaults to false.'
nullable: true
can_see_rates:
type: boolean
description: 'Whether the user can see billable rates on projects. Only applicable to Project Managers. Defaults to false.'
nullable: true
can_create_projects:
type: boolean
description: 'Whether the user can create projects. Only applicable to Project Managers. Defaults to false.'
nullable: true
can_create_invoices:
type: boolean
description: 'Whether the user can create invoices. Only applicable to Project Managers. Defaults to false.'
nullable: true
is_active:
type: boolean
description: 'Whether the user is active or archived. Defaults to true.'
Expand Down Expand Up @@ -11455,11 +11407,6 @@ paths:
timezone: 'Mountain Time (US & Canada)'
has_access_to_all_future_projects: false
is_contractor: false
is_admin: true
is_project_manager: false
can_see_rates: true
can_create_projects: true
can_create_invoices: true
is_active: true
created_at: '2020-05-01T20:41:00Z'
updated_at: '2020-05-01T20:42:25Z'
Expand Down Expand Up @@ -11706,11 +11653,6 @@ paths:
timezone: 'Mountain Time (US & Canada)'
has_access_to_all_future_projects: false
is_contractor: false
is_admin: false
is_project_manager: false
can_see_rates: false
can_create_projects: false
can_create_invoices: false
is_active: true
created_at: '2020-05-01T22:34:41Z'
updated_at: '2020-05-01T22:34:52Z'
Expand Down Expand Up @@ -11760,11 +11702,6 @@ paths:
timezone: 'Eastern Time (US & Canada)'
has_access_to_all_future_projects: true
is_contractor: false
is_admin: false
is_project_manager: true
can_see_rates: true
can_create_projects: true
can_create_invoices: true
is_active: true
weekly_capacity: 126000
default_hourly_rate: 120
Expand Down Expand Up @@ -11820,26 +11757,6 @@ paths:
type: boolean
description: 'Whether the user is a contractor or an employee.'
nullable: true
is_admin:
type: boolean
description: 'Whether the user has Admin permissions.'
nullable: true
is_project_manager:
type: boolean
description: 'Whether the user has Project Manager permissions.'
nullable: true
can_see_rates:
type: boolean
description: 'Whether the user can see billable rates on projects. Only applicable to Project Managers.'
nullable: true
can_create_projects:
type: boolean
description: 'Whether the user can create projects. Only applicable to Project Managers.'
nullable: true
can_create_invoices:
type: boolean
description: 'Whether the user can create invoices. Only applicable to Project Managers.'
nullable: true
is_active:
type: boolean
description: 'Whether the user is active or archived.'
Expand Down
2 changes: 1 addition & 1 deletion src/Extractor/Extractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -969,7 +969,7 @@ private function extractApiDoc($url)
{
$crawler = new Crawler($this->download($url));

$title = trim($crawler->filter('h1')->text());
$title = trim($crawler->filter('article h1')->text());

if (preg_match('/^([a-zA-Z ]+) Report(s)?/', $title)) {
$title = self::camelize($title);
Expand Down

0 comments on commit a05db61

Please sign in to comment.