Skip to content

Commit

Permalink
Deploying from phrase/openapi@38b51b51
Browse files Browse the repository at this point in the history
  • Loading branch information
Phrase committed Feb 5, 2024
1 parent e63e84c commit d2ad6d7
Show file tree
Hide file tree
Showing 10 changed files with 83 additions and 25 deletions.
3 changes: 3 additions & 0 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29540,6 +29540,7 @@ components:
type: string
due_date:
format: date-time
nullable: true
type: string
state:
type: string
Expand Down Expand Up @@ -31149,6 +31150,7 @@ components:
due_date:
description: Date the job should be finished
format: date-time
nullable: true
type: string
ticket_url:
description: "URL to a ticket for this job (e.g. Jira, Trello)"
Expand Down Expand Up @@ -31193,6 +31195,7 @@ components:
due_date:
description: Date the job should be finished
format: date-time
nullable: true
type: string
ticket_url:
description: "URL to a ticket for this job (e.g. Jira, Trello)"
Expand Down
2 changes: 1 addition & 1 deletion docs/Job.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Name | Type | Description | Notes
**Id** | **string** | | [optional]
**Name** | **string** | | [optional]
**Briefing** | **string** | | [optional]
**DueDate** | [**time.Time**](time.Time.md) | | [optional]
**DueDate** | Pointer to [**NullableTime**](time.Time.md) | | [optional]
**State** | **string** | | [optional]
**TicketUrl** | **string** | | [optional]
**Project** | [**ProjectShort**](ProjectShort.md) | | [optional]
Expand Down
2 changes: 1 addition & 1 deletion docs/JobCreateParameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Name | Type | Description | Notes
**Name** | **string** | Job name | [optional]
**SourceLocaleId** | **string** | The API id of the source language | [optional]
**Briefing** | **string** | Briefing for the translators | [optional]
**DueDate** | [**time.Time**](time.Time.md) | Date the job should be finished | [optional]
**DueDate** | Pointer to [**NullableTime**](time.Time.md) | Date the job should be finished | [optional]
**TicketUrl** | **string** | URL to a ticket for this job (e.g. Jira, Trello) | [optional]
**Tags** | **[]string** | tags of keys that should be included within the job | [optional]
**TranslationKeyIds** | **[]string** | ids of keys that should be included within the job | [optional]
Expand Down
2 changes: 1 addition & 1 deletion docs/JobDetails.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Name | Type | Description | Notes
**Id** | **string** | | [optional]
**Name** | **string** | | [optional]
**Briefing** | **string** | | [optional]
**DueDate** | [**time.Time**](time.Time.md) | | [optional]
**DueDate** | Pointer to [**NullableTime**](time.Time.md) | | [optional]
**State** | **string** | | [optional]
**TicketUrl** | **string** | | [optional]
**Project** | [**ProjectShort**](ProjectShort.md) | | [optional]
Expand Down
2 changes: 1 addition & 1 deletion docs/JobUpdateParameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Name | Type | Description | Notes
**Branch** | **string** | specify the branch to use | [optional]
**Name** | **string** | Job name | [optional]
**Briefing** | **string** | Briefing for the translators | [optional]
**DueDate** | [**time.Time**](time.Time.md) | Date the job should be finished | [optional]
**DueDate** | Pointer to [**NullableTime**](time.Time.md) | Date the job should be finished | [optional]
**TicketUrl** | **string** | URL to a ticket for this job (e.g. Jira, Trello) | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Expand Down
20 changes: 10 additions & 10 deletions model_job.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ import (

// Job struct for Job
type Job struct {
Id string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Briefing string `json:"briefing,omitempty"`
DueDate time.Time `json:"due_date,omitempty"`
State string `json:"state,omitempty"`
TicketUrl string `json:"ticket_url,omitempty"`
Project ProjectShort `json:"project,omitempty"`
Branch BranchName `json:"branch,omitempty"`
CreatedAt time.Time `json:"created_at,omitempty"`
UpdatedAt time.Time `json:"updated_at,omitempty"`
Id string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Briefing string `json:"briefing,omitempty"`
DueDate *NullableTime `json:"due_date,omitempty"`
State string `json:"state,omitempty"`
TicketUrl string `json:"ticket_url,omitempty"`
Project ProjectShort `json:"project,omitempty"`
Branch BranchName `json:"branch,omitempty"`
CreatedAt time.Time `json:"created_at,omitempty"`
UpdatedAt time.Time `json:"updated_at,omitempty"`
}
6 changes: 1 addition & 5 deletions model_job_create_parameters.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
package phrase

import (
"time"
)

// JobCreateParameters struct for JobCreateParameters
type JobCreateParameters struct {
// specify the branch to use
Expand All @@ -15,7 +11,7 @@ type JobCreateParameters struct {
// Briefing for the translators
Briefing string `json:"briefing,omitempty"`
// Date the job should be finished
DueDate time.Time `json:"due_date,omitempty"`
DueDate *NullableTime `json:"due_date,omitempty"`
// URL to a ticket for this job (e.g. Jira, Trello)
TicketUrl string `json:"ticket_url,omitempty"`
// tags of keys that should be included within the job
Expand Down
2 changes: 1 addition & 1 deletion model_job_details.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type JobDetails struct {
Id string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Briefing string `json:"briefing,omitempty"`
DueDate time.Time `json:"due_date,omitempty"`
DueDate *NullableTime `json:"due_date,omitempty"`
State string `json:"state,omitempty"`
TicketUrl string `json:"ticket_url,omitempty"`
Project ProjectShort `json:"project,omitempty"`
Expand Down
6 changes: 1 addition & 5 deletions model_job_update_parameters.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
package phrase

import (
"time"
)

// JobUpdateParameters struct for JobUpdateParameters
type JobUpdateParameters struct {
// specify the branch to use
Expand All @@ -13,7 +9,7 @@ type JobUpdateParameters struct {
// Briefing for the translators
Briefing string `json:"briefing,omitempty"`
// Date the job should be finished
DueDate time.Time `json:"due_date,omitempty"`
DueDate *NullableTime `json:"due_date,omitempty"`
// URL to a ticket for this job (e.g. Jira, Trello)
TicketUrl string `json:"ticket_url,omitempty"`
}
63 changes: 63 additions & 0 deletions test/api_jobs_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d2ad6d7

Please sign in to comment.