Skip to content

Commit

Permalink
Merge pull request #331 from influxdata/swagger/20210422
Browse files Browse the repository at this point in the history
feat(apis): regenerate APIs from swagger 2021-04-22
  • Loading branch information
sranka authored Apr 22, 2021
2 parents 211093b + 95042c9 commit 59610fb
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 42 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
### Features

1. [#326](https://github.com/influxdata/influxdb-client-js/pull/326): Apply gzip compression to writes.
1. [#331](https://github.com/influxdata/influxdb-client-js/pull/331): Regenerate APIs from swagger.

### Bug Fixes

Expand Down
5 changes: 5 additions & 0 deletions packages/apis/resources/operations.json
Original file line number Diff line number Diff line change
Expand Up @@ -5212,6 +5212,11 @@
"name": "org",
"description": "Only show authorizations that belong to a organization name.",
"type": "string"
},
{
"name": "token",
"description": "Find a token by value.",
"type": "string"
}
],
"bodyParam": null,
Expand Down
58 changes: 27 additions & 31 deletions packages/apis/resources/swagger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3196,6 +3196,11 @@ paths:
schema:
type: string
description: Only show authorizations that belong to a organization name.
- in: query
name: token
schema:
type: string
description: Find a token by value.
responses:
"200":
description: A list of authorizations
Expand Down Expand Up @@ -8933,7 +8938,6 @@ components:
- shape
- axes
- colors
- legend
- note
- showNoteWhenEmpty
- position
Expand Down Expand Up @@ -8962,8 +8966,8 @@ components:
type: boolean
axes:
$ref: "#/components/schemas/Axes"
legend:
$ref: "#/components/schemas/Legend"
staticLegend:
$ref: "#/components/schemas/StaticLegend"
xColumn:
type: string
generateXAxisTicks:
Expand Down Expand Up @@ -9021,7 +9025,6 @@ components:
- shape
- axes
- colors
- legend
- note
- showNoteWhenEmpty
properties:
Expand Down Expand Up @@ -9049,8 +9052,8 @@ components:
type: boolean
axes:
$ref: "#/components/schemas/Axes"
legend:
$ref: "#/components/schemas/Legend"
staticLegend:
$ref: "#/components/schemas/StaticLegend"
xColumn:
type: string
generateXAxisTicks:
Expand Down Expand Up @@ -9105,7 +9108,6 @@ components:
- shape
- axes
- colors
- legend
- note
- showNoteWhenEmpty
- prefix
Expand Down Expand Up @@ -9137,8 +9139,8 @@ components:
type: boolean
axes:
$ref: "#/components/schemas/Axes"
legend:
$ref: "#/components/schemas/Legend"
staticLegend:
$ref: "#/components/schemas/StaticLegend"
xColumn:
type: string
generateXAxisTicks:
Expand Down Expand Up @@ -9515,7 +9517,6 @@ components:
- tickPrefix
- suffix
- tickSuffix
- legend
- decimalPlaces
properties:
type:
Expand Down Expand Up @@ -9546,8 +9547,6 @@ components:
type: string
tickSuffix:
type: string
legend:
$ref: "#/components/schemas/Legend"
decimalPlaces:
$ref: "#/components/schemas/DecimalPlaces"
HistogramViewProperties:
Expand Down Expand Up @@ -9625,7 +9624,6 @@ components:
tickPrefix,
suffix,
tickSuffix,
legend,
decimalPlaces,
]
properties:
Expand Down Expand Up @@ -9657,8 +9655,6 @@ components:
type: string
tickSuffix:
type: string
legend:
$ref: "#/components/schemas/Legend"
decimalPlaces:
$ref: "#/components/schemas/DecimalPlaces"
TableViewProperties:
Expand Down Expand Up @@ -9950,25 +9946,25 @@ components:
$ref: "#/components/schemas/Axis"
"y": # Quoted to prevent YAML parser from interpreting y as shorthand for true.
$ref: "#/components/schemas/Axis"
Legend:
description: Legend define encoding of data into a view's legend
StaticLegend:
description: The options specific to the static legend
type: object
properties:
type:
description: The style of the legend.
type: string
enum:
- static
orientation:
description: >-
orientation is the location of the legend with respect to the view
graph
colorizeRows:
type: boolean
heightRatio:
type: number
format: float
opacity:
type: number
format: float
orientationThreshold:
type: integer
valueAxis:
type: string
enum:
- top
- bottom
- left
- right
widthRatio:
type: number
format: float
DecimalPlaces:
description: Indicates whether decimal places should be enforced, and how many digits it should show.
type: object
Expand Down
3 changes: 3 additions & 0 deletions packages/apis/src/generated/AuthorizationsAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ export interface GetAuthorizationsRequest {
orgID?: string
/** Only show authorizations that belong to a organization name. */
org?: string
/** Find a token by value. */
token?: string
}
export interface PostAuthorizationsRequest {
/** Authorization to create */
Expand Down Expand Up @@ -66,6 +68,7 @@ export class AuthorizationsAPI {
'user',
'orgID',
'org',
'token',
])}`,
request,
requestOptions
Expand Down
22 changes: 11 additions & 11 deletions packages/apis/src/generated/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ export interface LinePlusSingleStatProperties {
/** If true, will display note when empty */
showNoteWhenEmpty: boolean
axes: Axes
legend: Legend
staticLegend?: StaticLegend
xColumn?: string
generateXAxisTicks?: string[]
xTotalTicks?: number
Expand Down Expand Up @@ -774,13 +774,15 @@ export interface Axis {
export type AxisScale = 'log' | 'linear'

/**
* Legend define encoding of data into a view's legend
* The options specific to the static legend
*/
export interface Legend {
/** The style of the legend. */
type?: 'static'
/** orientation is the location of the legend with respect to the view graph */
orientation?: 'top' | 'bottom' | 'left' | 'right'
export interface StaticLegend {
colorizeRows?: boolean
heightRatio?: number
opacity?: number
orientationThreshold?: number
valueAxis?: string
widthRatio?: number
}

/**
Expand All @@ -804,7 +806,7 @@ export interface XYViewProperties {
/** If true, will display note when empty */
showNoteWhenEmpty: boolean
axes: Axes
legend: Legend
staticLegend?: StaticLegend
xColumn?: string
generateXAxisTicks?: string[]
xTotalTicks?: number
Expand Down Expand Up @@ -839,7 +841,6 @@ export interface SingleStatViewProperties {
tickPrefix: string
suffix: string
tickSuffix: string
legend: Legend
decimalPlaces: DecimalPlaces
}

Expand Down Expand Up @@ -876,7 +877,6 @@ export interface GaugeViewProperties {
tickPrefix: string
suffix: string
tickSuffix: string
legend: Legend
decimalPlaces: DecimalPlaces
}

Expand Down Expand Up @@ -1165,7 +1165,7 @@ export interface BandViewProperties {
/** If true, will display note when empty */
showNoteWhenEmpty: boolean
axes: Axes
legend: Legend
staticLegend?: StaticLegend
xColumn?: string
generateXAxisTicks?: string[]
xTotalTicks?: number
Expand Down

0 comments on commit 59610fb

Please sign in to comment.