-
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
added /compare page and compare selector to /servers #22
Changes from 11 commits
400a7ea
cb6e926
17fbd3e
a994e79
e7f7f3c
c37c5dc
d7d222b
27f155a
f2f9887
403a12f
46fca54
1b8857b
0c86fc7
e6629cf
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 |
---|---|---|
|
@@ -10,8 +10,10 @@ | |
*/ | ||
|
||
import { | ||
AssistFiltersAiAssistFiltersGetData, | ||
AssistFiltersAiAssistFiltersGetParams, | ||
AssistServerFiltersAiAssistServerFiltersGetData, | ||
AssistServerFiltersAiAssistServerFiltersGetParams, | ||
AssistServerPriceFiltersAiAssistServerPriceFiltersGetData, | ||
AssistServerPriceFiltersAiAssistServerPriceFiltersGetParams, | ||
HTTPValidationError, | ||
} from "./data-contracts"; | ||
import { HttpClient, RequestParams } from "./http-client"; | ||
|
@@ -24,16 +26,37 @@ export class Ai<SecurityDataType = unknown> { | |
} | ||
|
||
/** | ||
* @description Extract JSON filters from freetext. | ||
* @description Extract Server JSON filters from freetext. | ||
* | ||
* @tags AI | ||
* @name AssistFiltersAiAssistFiltersGet | ||
* @summary Assist Filters | ||
* @request GET:/ai/assist_filters | ||
* @name AssistServerFiltersAiAssistServerFiltersGet | ||
* @summary Assist Server Filters | ||
* @request GET:/ai/assist_server_filters | ||
*/ | ||
assistFiltersAiAssistFiltersGet = (query: AssistFiltersAiAssistFiltersGetParams, params: RequestParams = {}) => | ||
this.http.request<AssistFiltersAiAssistFiltersGetData, HTTPValidationError>({ | ||
path: `/ai/assist_filters`, | ||
assistServerFiltersAiAssistServerFiltersGet = ( | ||
query: AssistServerFiltersAiAssistServerFiltersGetParams, | ||
params: RequestParams = {}, | ||
) => | ||
this.http.request<AssistServerFiltersAiAssistServerFiltersGetData, HTTPValidationError>({ | ||
path: `/ai/assist_server_filters`, | ||
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. Avoid using template literals when not necessary. - path: `/ai/assist_server_filters`,
+ path: "/ai/assist_server_filters",
- path: `/ai/assist_server_price_filters`,
+ path: "/ai/assist_server_price_filters", Also applies to: 59-59
ToolsBiome
|
||
method: "GET", | ||
query: query, | ||
...params, | ||
}); | ||
/** | ||
* @description Extract ServerPrice JSON filters from freetext. | ||
* | ||
* @tags AI | ||
* @name AssistServerPriceFiltersAiAssistServerPriceFiltersGet | ||
* @summary Assist Server Price Filters | ||
* @request GET:/ai/assist_server_price_filters | ||
*/ | ||
assistServerPriceFiltersAiAssistServerPriceFiltersGet = ( | ||
query: AssistServerPriceFiltersAiAssistServerPriceFiltersGetParams, | ||
params: RequestParams = {}, | ||
) => | ||
this.http.request<AssistServerPriceFiltersAiAssistServerPriceFiltersGetData, HTTPValidationError>({ | ||
path: `/ai/assist_server_price_filters`, | ||
method: "GET", | ||
query: query, | ||
...params, | ||
|
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,41 @@ | ||||||||||||||||||||||||||||
/* eslint-disable */ | ||||||||||||||||||||||||||||
/* tslint:disable */ | ||||||||||||||||||||||||||||
/* | ||||||||||||||||||||||||||||
* --------------------------------------------------------------- | ||||||||||||||||||||||||||||
* ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ## | ||||||||||||||||||||||||||||
* ## ## | ||||||||||||||||||||||||||||
* ## AUTHOR: acacode ## | ||||||||||||||||||||||||||||
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ## | ||||||||||||||||||||||||||||
* --------------------------------------------------------------- | ||||||||||||||||||||||||||||
*/ | ||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||
import { | ||||||||||||||||||||||||||||
HTTPValidationError, | ||||||||||||||||||||||||||||
SearchServerPricesServerPricesGetData, | ||||||||||||||||||||||||||||
SearchServerPricesServerPricesGetParams, | ||||||||||||||||||||||||||||
} from "./data-contracts"; | ||||||||||||||||||||||||||||
import { HttpClient, RequestParams } from "./http-client"; | ||||||||||||||||||||||||||||
Comment on lines
+11
to
+17
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. Consider using type-only imports for clarity and to prevent runtime imports when only types are needed. - import {
+ import type {
HTTPValidationError,
SearchServerPricesServerPricesGetData,
SearchServerPricesServerPricesGetParams,
} from "./data-contracts";
- import { HttpClient, RequestParams } from "./http-client";
+ import type { HttpClient, RequestParams } from "./http-client"; Committable suggestion
Suggested change
ToolsBiome
|
||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||
export class ServerPrices<SecurityDataType = unknown> { | ||||||||||||||||||||||||||||
http: HttpClient<SecurityDataType>; | ||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||
constructor(http: HttpClient<SecurityDataType>) { | ||||||||||||||||||||||||||||
this.http = http; | ||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||
/** | ||||||||||||||||||||||||||||
* No description | ||||||||||||||||||||||||||||
* | ||||||||||||||||||||||||||||
* @tags Query Resources | ||||||||||||||||||||||||||||
* @name SearchServerPricesServerPricesGet | ||||||||||||||||||||||||||||
* @summary Search Server Prices | ||||||||||||||||||||||||||||
* @request GET:/server_prices | ||||||||||||||||||||||||||||
*/ | ||||||||||||||||||||||||||||
searchServerPricesServerPricesGet = (query: SearchServerPricesServerPricesGetParams, params: RequestParams = {}) => | ||||||||||||||||||||||||||||
this.http.request<SearchServerPricesServerPricesGetData, HTTPValidationError>({ | ||||||||||||||||||||||||||||
path: `/server_prices`, | ||||||||||||||||||||||||||||
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. Avoid using template literals when not necessary. - path: `/server_prices`,
+ path: "/server_prices", Committable suggestion
Suggested change
ToolsBiome
|
||||||||||||||||||||||||||||
method: "GET", | ||||||||||||||||||||||||||||
query: query, | ||||||||||||||||||||||||||||
...params, | ||||||||||||||||||||||||||||
}); | ||||||||||||||||||||||||||||
} |
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.
Consider using type-only imports for clarity and to prevent runtime imports when only types are needed.
Committable suggestion
Tools
Biome