-
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 30 #118
Dev 30 #118
Changes from 30 commits
0fbc419
185f210
06cd0fb
1cdd4a1
08d0643
1f4836b
c91bd9f
7aeae50
60e0ea1
8c3655f
3c34b25
a094510
612bb6f
11c7e33
5228f56
7e4b7f8
0341576
77ddbea
3f1114e
6455c53
e2def96
780db3e
4d4ac54
a4e3579
a99cbaa
9990ffc
8c1b735
500db4d
243473b
7c5109c
b2bbb54
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 | ||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -12,6 +12,8 @@ | |||||||||||||||||||||||||||||||||||||||||||||||||
import { | ||||||||||||||||||||||||||||||||||||||||||||||||||
AssistServerFiltersAiAssistServerFiltersGetData, | ||||||||||||||||||||||||||||||||||||||||||||||||||
AssistServerPriceFiltersAiAssistServerPriceFiltersGetData, | ||||||||||||||||||||||||||||||||||||||||||||||||||
AssistStoragePriceFiltersAiAssistStoragePriceFiltersGetData, | ||||||||||||||||||||||||||||||||||||||||||||||||||
AssistTrafficPriceFiltersAiAssistTrafficPriceFiltersGetData, | ||||||||||||||||||||||||||||||||||||||||||||||||||
} from "./data-contracts"; | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||
export namespace Ai { | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
@@ -50,4 +52,40 @@ export namespace Ai { | |||||||||||||||||||||||||||||||||||||||||||||||||
export type RequestHeaders = {}; | ||||||||||||||||||||||||||||||||||||||||||||||||||
export type ResponseBody = AssistServerPriceFiltersAiAssistServerPriceFiltersGetData; | ||||||||||||||||||||||||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||
/** | ||||||||||||||||||||||||||||||||||||||||||||||||||
* @description Extract StoragePrice JSON filters from freetext. | ||||||||||||||||||||||||||||||||||||||||||||||||||
* @tags AI | ||||||||||||||||||||||||||||||||||||||||||||||||||
* @name AssistStoragePriceFiltersAiAssistStoragePriceFiltersGet | ||||||||||||||||||||||||||||||||||||||||||||||||||
* @summary Assist Storage Price Filters | ||||||||||||||||||||||||||||||||||||||||||||||||||
* @request GET:/ai/assist_storage_price_filters | ||||||||||||||||||||||||||||||||||||||||||||||||||
*/ | ||||||||||||||||||||||||||||||||||||||||||||||||||
export namespace AssistStoragePriceFiltersAiAssistStoragePriceFiltersGet { | ||||||||||||||||||||||||||||||||||||||||||||||||||
export type RequestParams = {}; | ||||||||||||||||||||||||||||||||||||||||||||||||||
export type RequestQuery = { | ||||||||||||||||||||||||||||||||||||||||||||||||||
/** Text */ | ||||||||||||||||||||||||||||||||||||||||||||||||||
text: string; | ||||||||||||||||||||||||||||||||||||||||||||||||||
}; | ||||||||||||||||||||||||||||||||||||||||||||||||||
export type RequestBody = never; | ||||||||||||||||||||||||||||||||||||||||||||||||||
export type RequestHeaders = {}; | ||||||||||||||||||||||||||||||||||||||||||||||||||
export type ResponseBody = AssistStoragePriceFiltersAiAssistStoragePriceFiltersGetData; | ||||||||||||||||||||||||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||
/** | ||||||||||||||||||||||||||||||||||||||||||||||||||
* @description Extract TrafficPrice JSON filters from freetext. | ||||||||||||||||||||||||||||||||||||||||||||||||||
* @tags AI | ||||||||||||||||||||||||||||||||||||||||||||||||||
* @name AssistTrafficPriceFiltersAiAssistTrafficPriceFiltersGet | ||||||||||||||||||||||||||||||||||||||||||||||||||
* @summary Assist Traffic Price Filters | ||||||||||||||||||||||||||||||||||||||||||||||||||
* @request GET:/ai/assist_traffic_price_filters | ||||||||||||||||||||||||||||||||||||||||||||||||||
*/ | ||||||||||||||||||||||||||||||||||||||||||||||||||
export namespace AssistTrafficPriceFiltersAiAssistTrafficPriceFiltersGet { | ||||||||||||||||||||||||||||||||||||||||||||||||||
export type RequestParams = {}; | ||||||||||||||||||||||||||||||||||||||||||||||||||
export type RequestQuery = { | ||||||||||||||||||||||||||||||||||||||||||||||||||
/** Text */ | ||||||||||||||||||||||||||||||||||||||||||||||||||
text: string; | ||||||||||||||||||||||||||||||||||||||||||||||||||
}; | ||||||||||||||||||||||||||||||||||||||||||||||||||
export type RequestBody = never; | ||||||||||||||||||||||||||||||||||||||||||||||||||
export type RequestHeaders = {}; | ||||||||||||||||||||||||||||||||||||||||||||||||||
export type ResponseBody = AssistTrafficPriceFiltersAiAssistTrafficPriceFiltersGetData; | ||||||||||||||||||||||||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||||||||||||||||||||||||
Comment on lines
+81
to
+90
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. Define explicit types or interfaces for request parameters and headers. The namespace Consider defining explicit types or interfaces for -export type RequestParams = {};
-export type RequestHeaders = {};
+export interface RequestParams {
+ // Define specific parameters here if any, otherwise use 'Record<string, never>' for empty objects
+}
+export interface RequestHeaders {
+ // Define specific headers here if any, otherwise use 'Record<string, never>' for empty objects
+} Committable suggestion
Suggested change
ToolsBiome
|
||||||||||||||||||||||||||||||||||||||||||||||||||
} |
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.
Well-documented namespace, but consider refining type definitions.
The namespace
AssistStoragePriceFiltersAiAssistStoragePriceFiltersGet
is well-documented and structured. However, the use of '{}' forRequestParams
andRequestHeaders
should be replaced with more explicit types to avoid ambiguity and comply with static analysis recommendations.Consider defining explicit types or interfaces for
RequestParams
andRequestHeaders
:Committable suggestion
Tools
Biome