@rlvt/statistics-openapi-client 1.0.8 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/api.d.ts +2 -2
- package/build/definitions.d.ts +2 -22
- package/package.json +1 -1
package/build/api.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosInstance, AxiosRequestConfig } from "axios";
|
|
2
|
-
import type { SuccessResponse, PartialResponse_StatisticsQuery, Query,
|
|
2
|
+
import type { SuccessResponse, PartialResponse_StatisticsQuery, Query, SuccessResponse_Query, StatisticsQuerySchedule, SuccessResponse_StatisticsQuery, SuccessResponse_QueryResult } from "./definitions";
|
|
3
3
|
export * from "./definitions";
|
|
4
4
|
export default class {
|
|
5
5
|
axios: AxiosInstance;
|
|
@@ -25,7 +25,7 @@ export default class {
|
|
|
25
25
|
aiAnalysis: (params: Record<string, never>, data: {
|
|
26
26
|
question: string;
|
|
27
27
|
model?: string | undefined;
|
|
28
|
-
}, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<
|
|
28
|
+
}, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<SuccessResponse_Query, any>>;
|
|
29
29
|
saveQuery: (params: Record<string, never>, data: {
|
|
30
30
|
name: string;
|
|
31
31
|
queries: Query[];
|
package/build/definitions.d.ts
CHANGED
|
@@ -57,34 +57,14 @@ export declare type Query = {
|
|
|
57
57
|
limit?: number;
|
|
58
58
|
order?: TQueryOrderObject | (string | ("asc" | "desc"))[][];
|
|
59
59
|
};
|
|
60
|
-
export declare type
|
|
60
|
+
export declare type SuccessResponse_Query = {
|
|
61
61
|
status: "success";
|
|
62
62
|
program: string;
|
|
63
63
|
version: string;
|
|
64
64
|
datetime: string;
|
|
65
65
|
code?: number;
|
|
66
66
|
message: string;
|
|
67
|
-
data:
|
|
68
|
-
[key: string]: {
|
|
69
|
-
value: string | number | (false) | (true);
|
|
70
|
-
metadata: {
|
|
71
|
-
link?: string;
|
|
72
|
-
formattedValue?: string;
|
|
73
|
-
} | {
|
|
74
|
-
calculation?: ({
|
|
75
|
-
type: "number";
|
|
76
|
-
value: number;
|
|
77
|
-
unit?: "currency" | "percent";
|
|
78
|
-
} | {
|
|
79
|
-
type: "scope";
|
|
80
|
-
value: "(" | ")";
|
|
81
|
-
} | {
|
|
82
|
-
type: "operator";
|
|
83
|
-
value: "/" | "\u00D7" | "-" | "+";
|
|
84
|
-
})[];
|
|
85
|
-
};
|
|
86
|
-
};
|
|
87
|
-
}[];
|
|
67
|
+
data: Query;
|
|
88
68
|
};
|
|
89
69
|
export declare type StatisticsQuerySchedule = {
|
|
90
70
|
cron: string;
|
package/package.json
CHANGED