Skip to content

Commit 7d44e51

Browse files
authored
[OpenAPI] Spec updates for nuki-api-js (#1074)
Co-authored-by: SferaDev <[email protected]>
1 parent d795f65 commit 7d44e51

File tree

4 files changed

+15
-10
lines changed

4 files changed

+15
-10
lines changed

.changeset/gntnmo.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"nuki-api-js": patch
3+
---
4+
5+
Reorder fields in several types for better consistency

packages/nuki-api-js/src/api/components.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* Generated by @openapi-codegen
33
*
4-
* @version 4.0.0
4+
* @version 4.0.1
55
*/
66
import type * as Fetcher from "./fetcher";
77
import { fetch, FetcherExtraProps } from "./fetcher";

packages/nuki-api-js/src/api/requestBodies.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* Generated by @openapi-codegen
33
*
4-
* @version 4.0.0
4+
* @version 4.0.1
55
*/
66
import type * as Schemas from "./schemas";
77

packages/nuki-api-js/src/api/schemas.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* Generated by @openapi-codegen
33
*
4-
* @version 4.0.0
4+
* @version 4.0.1
55
*/
66
export type Account = {
77
/**
@@ -1072,8 +1072,8 @@ export type Application = {
10721072
decoderService?: DecoderService;
10731073
encoderService?: EncoderService;
10741074
logger?: Logger;
1075-
application?: Application;
10761075
stopped?: boolean;
1076+
application?: Application;
10771077
};
10781078

10791079
export type AuthenticationInfo = {
@@ -1470,11 +1470,11 @@ export type MetadataService = {
14701470
defaultEncoding?: Encoding;
14711471
defaultLanguage?: Language;
14721472
defaultMediaType?: MediaType;
1473-
allEncodingExtensionNames?: string[];
14741473
allExtensionNames?: string[];
14751474
allLanguageExtensionNames?: string[];
14761475
allMediaTypeExtensionNames?: string[];
14771476
allCharacterSetExtensionNames?: string[];
1477+
allEncodingExtensionNames?: string[];
14781478
stopped?: boolean;
14791479
};
14801480

@@ -1919,6 +1919,7 @@ export type Reference = {
19191919
relative?: boolean;
19201920
schemeSpecificPart?: string;
19211921
extensions?: string;
1922+
identifier?: string;
19221923
matrix?: string;
19231924
matrixAsForm?: Parameter[];
19241925
queryAsForm?: Parameter[];
@@ -1939,7 +1940,6 @@ export type Reference = {
19391940
segments?: string[];
19401941
targetRef?: Reference;
19411942
hierarchical?: boolean;
1942-
identifier?: string;
19431943
};
19441944

19451945
export type Representation = {
@@ -2022,8 +2022,8 @@ export type Request = {
20222022
asynchronous?: boolean;
20232023
expectingResponse?: boolean;
20242024
synchronous?: boolean;
2025-
entityAsText?: string;
20262025
headers?: Header[];
2026+
entityAsText?: string;
20272027
};
20282028

20292029
export type ReservationAccessTimesUpdate = {
@@ -2119,9 +2119,9 @@ export type Response = {
21192119
final?: boolean;
21202120
confidential?: boolean;
21212121
provisional?: boolean;
2122-
entityAvailable?: boolean;
2123-
entityAsText?: string;
21242122
headers?: Header[];
2123+
entityAsText?: string;
2124+
entityAvailable?: boolean;
21252125
};
21262126

21272127
export type Restlet = {
@@ -2132,8 +2132,8 @@ export type Restlet = {
21322132
owner?: string;
21332133
started?: boolean;
21342134
logger?: Logger;
2135-
application?: Application;
21362135
stopped?: boolean;
2136+
application?: Application;
21372137
};
21382138

21392139
export type Role = {

0 commit comments

Comments
 (0)