-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dev 165 #25
Dev 165 #25
Changes from all commits
88d5146
253f99d
4df3ac8
e056833
38a6208
e321a14
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,53 @@ | ||||||||
/* eslint-disable */ | ||||||||
/* tslint:disable */ | ||||||||
/* | ||||||||
* --------------------------------------------------------------- | ||||||||
* ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ## | ||||||||
* ## ## | ||||||||
* ## AUTHOR: acacode ## | ||||||||
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ## | ||||||||
* --------------------------------------------------------------- | ||||||||
*/ | ||||||||
|
||||||||
import { | ||||||||
AssistServerFiltersAiAssistServerFiltersGetData, | ||||||||
AssistServerPriceFiltersAiAssistServerPriceFiltersGetData, | ||||||||
} from "./data-contracts"; | ||||||||
|
||||||||
export namespace Ai { | ||||||||
/** | ||||||||
* @description Extract Server JSON filters from freetext. | ||||||||
* @tags AI | ||||||||
* @name AssistServerFiltersAiAssistServerFiltersGet | ||||||||
* @summary Assist Server Filters | ||||||||
* @request GET:/ai/assist_server_filters | ||||||||
*/ | ||||||||
export namespace AssistServerFiltersAiAssistServerFiltersGet { | ||||||||
export type RequestParams = {}; | ||||||||
export type RequestQuery = { | ||||||||
/** Text */ | ||||||||
text: string; | ||||||||
}; | ||||||||
export type RequestBody = never; | ||||||||
export type RequestHeaders = {}; | ||||||||
export type ResponseBody = AssistServerFiltersAiAssistServerFiltersGetData; | ||||||||
} | ||||||||
|
||||||||
/** | ||||||||
* @description Extract ServerPrice JSON filters from freetext. | ||||||||
* @tags AI | ||||||||
* @name AssistServerPriceFiltersAiAssistServerPriceFiltersGet | ||||||||
* @summary Assist Server Price Filters | ||||||||
* @request GET:/ai/assist_server_price_filters | ||||||||
*/ | ||||||||
export namespace AssistServerPriceFiltersAiAssistServerPriceFiltersGet { | ||||||||
export type RequestParams = {}; | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Specify explicit types instead of using '{}'. - export type RequestParams = {};
- export type RequestHeaders = {};
+ export type RequestParams = Record<string, unknown>;
+ export type RequestHeaders = Record<string, string>; Also applies to: 50-50 Committable suggestion
Suggested change
ToolsBiome
|
||||||||
export type RequestQuery = { | ||||||||
/** Text */ | ||||||||
text: string; | ||||||||
}; | ||||||||
export type RequestBody = never; | ||||||||
export type RequestHeaders = {}; | ||||||||
export type ResponseBody = AssistServerPriceFiltersAiAssistServerPriceFiltersGetData; | ||||||||
} | ||||||||
} |
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,29 @@ | ||||||||||
/* eslint-disable */ | ||||||||||
/* tslint:disable */ | ||||||||||
/* | ||||||||||
* --------------------------------------------------------------- | ||||||||||
* ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ## | ||||||||||
* ## ## | ||||||||||
* ## AUTHOR: acacode ## | ||||||||||
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ## | ||||||||||
* --------------------------------------------------------------- | ||||||||||
*/ | ||||||||||
|
||||||||||
import { HealthcheckHealthcheckGetData } from "./data-contracts"; | ||||||||||
|
||||||||||
export namespace Healthcheck { | ||||||||||
/** | ||||||||||
* @description Return database hash and last udpated timestamp. | ||||||||||
* @tags Administrative endpoints | ||||||||||
* @name HealthcheckHealthcheckGet | ||||||||||
* @summary Healthcheck | ||||||||||
* @request GET:/healthcheck | ||||||||||
*/ | ||||||||||
export namespace HealthcheckHealthcheckGet { | ||||||||||
export type RequestParams = {}; | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Specify explicit types instead of using '{}'. - export type RequestParams = {};
+ export type RequestParams = Record<string, never>;
- export type RequestQuery = {};
+ export type RequestQuery = Record<string, never>;
- export type RequestHeaders = {};
+ export type RequestHeaders = Record<string, never>; This change enhances type safety by explicitly defining that no properties are expected in these objects. Also applies to: 24-24, 26-26 Committable suggestion
Suggested change
ToolsBiome
|
||||||||||
export type RequestQuery = {}; | ||||||||||
export type RequestBody = never; | ||||||||||
export type RequestHeaders = {}; | ||||||||||
export type ResponseBody = HealthcheckHealthcheckGetData; | ||||||||||
} | ||||||||||
} |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,35 @@ | ||||||
/* eslint-disable */ | ||||||
/* tslint:disable */ | ||||||
/* | ||||||
* --------------------------------------------------------------- | ||||||
* ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ## | ||||||
* ## ## | ||||||
* ## AUTHOR: acacode ## | ||||||
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ## | ||||||
* --------------------------------------------------------------- | ||||||
*/ | ||||||
|
||||||
import { SearchRegionsRegionsGetData } from "./data-contracts"; | ||||||
|
||||||
export namespace Regions { | ||||||
/** | ||||||
* No description | ||||||
* @tags Query Resources | ||||||
* @name SearchRegionsRegionsGet | ||||||
* @summary Search Regions | ||||||
* @request GET:/regions | ||||||
*/ | ||||||
export namespace SearchRegionsRegionsGet { | ||||||
export type RequestParams = {}; | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Specify explicit types instead of using '{}'. - export type RequestParams = {};
+ export type RequestParams = Record<string, never>;
- export type RequestHeaders = {};
+ export type RequestHeaders = Record<string, never>; This change enhances type safety by explicitly defining that no properties are expected in these objects. Also applies to: 32-32 Committable suggestion
Suggested change
ToolsBiome
|
||||||
export type RequestQuery = { | ||||||
/** | ||||||
* Vendor id | ||||||
* Identifier of the cloud provider vendor. | ||||||
*/ | ||||||
vendor?: "hcloud" | "aws" | "gcp"; | ||||||
}; | ||||||
export type RequestBody = never; | ||||||
export type RequestHeaders = {}; | ||||||
export type ResponseBody = SearchRegionsRegionsGetData; | ||||||
} | ||||||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Specify explicit types instead of using '{}'.
Also applies to: 32-32
Committable suggestion
Tools
Biome