@rlvt/statistics-openapi-client 1.0.6 → 1.0.8
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 +21 -95
- package/build/api.js +5 -1
- package/build/definitions.d.ts +112 -46
- 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 {
|
|
2
|
+
import type { SuccessResponse, PartialResponse_StatisticsQuery, Query, SuccessResponse_Record, StatisticsQuerySchedule, SuccessResponse_StatisticsQuery, SuccessResponse_QueryResult } from "./definitions";
|
|
3
3
|
export * from "./definitions";
|
|
4
4
|
export default class {
|
|
5
5
|
axios: AxiosInstance;
|
|
@@ -7,117 +7,43 @@ export default class {
|
|
|
7
7
|
private meta;
|
|
8
8
|
private listSavedQueries;
|
|
9
9
|
private query;
|
|
10
|
+
private aiAnalysis;
|
|
10
11
|
private saveQuery;
|
|
11
12
|
private runSavedQuery;
|
|
12
13
|
private updateSavedQuery;
|
|
13
14
|
private deleteSavedQuery;
|
|
14
15
|
get Default(): {
|
|
15
|
-
meta: (params: Record<string, never>, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<
|
|
16
|
-
status: "success";
|
|
17
|
-
program: string;
|
|
18
|
-
version: string;
|
|
19
|
-
datetime: string;
|
|
20
|
-
code?: number | undefined;
|
|
21
|
-
message: string;
|
|
22
|
-
data: {
|
|
23
|
-
measures: {
|
|
24
|
-
[key: string]: Measure;
|
|
25
|
-
};
|
|
26
|
-
dimensions: {
|
|
27
|
-
[key: string]: Dimension;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
}, any>>;
|
|
16
|
+
meta: (params: Record<string, never>, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<SuccessResponse, any>>;
|
|
31
17
|
listSavedQueries: (params: {
|
|
32
18
|
name?: string | undefined;
|
|
33
19
|
page?: number | undefined;
|
|
34
20
|
perPage?: number | undefined;
|
|
35
|
-
}, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<
|
|
36
|
-
paginationCount: number;
|
|
37
|
-
paginationPage: number;
|
|
38
|
-
paginationLimit: number;
|
|
39
|
-
status: "success";
|
|
40
|
-
program: string;
|
|
41
|
-
version: string;
|
|
42
|
-
datetime: string;
|
|
43
|
-
code?: number | undefined;
|
|
44
|
-
message: string;
|
|
45
|
-
data: StatisticsQuery[];
|
|
46
|
-
}, any>>;
|
|
21
|
+
}, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<PartialResponse_StatisticsQuery, any>>;
|
|
47
22
|
query: (params: {
|
|
48
23
|
format?: "csv" | "raw" | "table" | undefined;
|
|
49
|
-
}, data: Query, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
value: string | number | boolean;
|
|
59
|
-
metadata: {
|
|
60
|
-
link?: string | undefined;
|
|
61
|
-
formattedValue?: string | undefined;
|
|
62
|
-
} | {
|
|
63
|
-
calculation?: ({
|
|
64
|
-
type: "number";
|
|
65
|
-
value: number;
|
|
66
|
-
unit?: "currency" | "percent" | undefined;
|
|
67
|
-
} | {
|
|
68
|
-
type: "scope";
|
|
69
|
-
value: "(" | ")";
|
|
70
|
-
} | {
|
|
71
|
-
type: "operator";
|
|
72
|
-
value: "/" | "×" | "-" | "+";
|
|
73
|
-
})[] | undefined;
|
|
74
|
-
};
|
|
75
|
-
};
|
|
76
|
-
}[];
|
|
77
|
-
}, any>>;
|
|
78
|
-
saveQuery: (params: Record<string, never>, data: Pick_Pick_StatisticsQuery_query_or_name_or_schedule__and__companyId_string_id_string_createdAt_Date_updatedAt_Date___query_or_name_ & {
|
|
24
|
+
}, data: Query, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<SuccessResponse, any>>;
|
|
25
|
+
aiAnalysis: (params: Record<string, never>, data: {
|
|
26
|
+
question: string;
|
|
27
|
+
model?: string | undefined;
|
|
28
|
+
}, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<SuccessResponse_Record, any>>;
|
|
29
|
+
saveQuery: (params: Record<string, never>, data: {
|
|
30
|
+
name: string;
|
|
31
|
+
queries: Query[];
|
|
32
|
+
} & {
|
|
79
33
|
schedule?: {} | StatisticsQuerySchedule | undefined;
|
|
80
|
-
}, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<
|
|
81
|
-
status: "success";
|
|
82
|
-
program: string;
|
|
83
|
-
version: string;
|
|
84
|
-
datetime: string;
|
|
85
|
-
code?: number | undefined;
|
|
86
|
-
message: string;
|
|
87
|
-
data: StatisticsQuery;
|
|
88
|
-
}, any>>;
|
|
34
|
+
}, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<SuccessResponse_StatisticsQuery, any>>;
|
|
89
35
|
runSavedQuery: (params: {
|
|
90
36
|
id: string;
|
|
91
|
-
}, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<
|
|
92
|
-
status: "success";
|
|
93
|
-
program: string;
|
|
94
|
-
version: string;
|
|
95
|
-
datetime: string;
|
|
96
|
-
code?: number | undefined;
|
|
97
|
-
message: string;
|
|
98
|
-
data: QueryResult;
|
|
99
|
-
}, any>>;
|
|
37
|
+
}, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<SuccessResponse_QueryResult, any>>;
|
|
100
38
|
updateSavedQuery: (params: {
|
|
101
39
|
id: string;
|
|
102
|
-
}, data:
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
code?: number | undefined;
|
|
108
|
-
message: string;
|
|
109
|
-
data: StatisticsQuery;
|
|
110
|
-
}, any>>;
|
|
40
|
+
}, data: {
|
|
41
|
+
name?: string | undefined;
|
|
42
|
+
queries?: Query[] | undefined;
|
|
43
|
+
schedule?: {} | StatisticsQuerySchedule | undefined;
|
|
44
|
+
}, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<SuccessResponse_StatisticsQuery, any>>;
|
|
111
45
|
deleteSavedQuery: (params: {
|
|
112
46
|
id: string;
|
|
113
|
-
}, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<
|
|
114
|
-
status: "success";
|
|
115
|
-
program: string;
|
|
116
|
-
version: string;
|
|
117
|
-
datetime: string;
|
|
118
|
-
code?: number | undefined;
|
|
119
|
-
message: string;
|
|
120
|
-
data: {};
|
|
121
|
-
}, any>>;
|
|
47
|
+
}, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<SuccessResponse, any>>;
|
|
122
48
|
};
|
|
123
49
|
}
|
package/build/api.js
CHANGED
|
@@ -40,6 +40,9 @@ class default_1 {
|
|
|
40
40
|
params: pick(params, "format"),
|
|
41
41
|
}, options));
|
|
42
42
|
}
|
|
43
|
+
aiAnalysis(params, data, options) {
|
|
44
|
+
return this.axios.post("/ai-analysis", data, options);
|
|
45
|
+
}
|
|
43
46
|
saveQuery(params, data, options) {
|
|
44
47
|
return this.axios.post("/query/save", data, options);
|
|
45
48
|
}
|
|
@@ -57,6 +60,7 @@ class default_1 {
|
|
|
57
60
|
meta: this.meta.bind(this),
|
|
58
61
|
listSavedQueries: this.listSavedQueries.bind(this),
|
|
59
62
|
query: this.query.bind(this),
|
|
63
|
+
aiAnalysis: this.aiAnalysis.bind(this),
|
|
60
64
|
saveQuery: this.saveQuery.bind(this),
|
|
61
65
|
runSavedQuery: this.runSavedQuery.bind(this),
|
|
62
66
|
updateSavedQuery: this.updateSavedQuery.bind(this),
|
|
@@ -73,4 +77,4 @@ function pick(obj, ...keys) {
|
|
|
73
77
|
});
|
|
74
78
|
return ret;
|
|
75
79
|
}
|
|
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QUMsRUFBRTtRQUNmLElBQUksR0FBRyxJQUFJLE1BQU0sQ0FBQyxJQUFJLENBQUMsR0FBRyxDQUFDLENBQUMsUUFBUSxDQUFDLEdBQWEsQ0FBQztZQUMvQyxHQUFHLENBQUMsR0FBRyxDQUFDLEdBQUcsR0FBRyxDQUFDLEdBQUcsQ0FBQyxDQUFDO0lBQzVCLENBQUMsQ0FBQyxDQUFDO0lBQ0gsT0FBTyxHQUFHLENBQUM7QUFDZixDQUFDIn0=
|
package/build/definitions.d.ts
CHANGED
|
@@ -13,50 +13,31 @@ export declare type Dimension = {
|
|
|
13
13
|
unit?: string;
|
|
14
14
|
isVisible: boolean;
|
|
15
15
|
};
|
|
16
|
-
export declare type
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
16
|
+
export declare type SuccessResponse = {
|
|
17
|
+
status: "success";
|
|
18
|
+
program: string;
|
|
19
|
+
version: string;
|
|
20
|
+
datetime: string;
|
|
21
|
+
code?: number;
|
|
22
|
+
message: string;
|
|
23
|
+
data: {
|
|
24
|
+
measures: {
|
|
25
|
+
[key: string]: Measure;
|
|
26
|
+
};
|
|
27
|
+
dimensions: {
|
|
28
|
+
[key: string]: Dimension;
|
|
25
29
|
};
|
|
26
30
|
};
|
|
27
|
-
measures: {
|
|
28
|
-
id: string;
|
|
29
|
-
values: {
|
|
30
|
-
date: Date;
|
|
31
|
-
value: number;
|
|
32
|
-
metadata: {
|
|
33
|
-
calculation?: ({
|
|
34
|
-
type: "number";
|
|
35
|
-
value: number;
|
|
36
|
-
unit?: "currency" | "percent";
|
|
37
|
-
} | {
|
|
38
|
-
type: "scope";
|
|
39
|
-
value: "(" | ")";
|
|
40
|
-
} | {
|
|
41
|
-
type: "operator";
|
|
42
|
-
value: "/" | "\u00D7" | "-" | "+";
|
|
43
|
-
})[];
|
|
44
|
-
};
|
|
45
|
-
}[];
|
|
46
|
-
}[];
|
|
47
|
-
};
|
|
48
|
-
export declare type QueryResult = {
|
|
49
|
-
series: Serie[];
|
|
50
31
|
};
|
|
51
32
|
export declare type BinaryFilter = {
|
|
52
33
|
dimension?: string;
|
|
53
34
|
member?: string;
|
|
54
|
-
operator: "equals" | "notEquals" | "contains" | "notContains" | "startsWith" | "notStartsWith" | "endsWith" | "notEndsWith" | "gt" | "gte" | "lt" | "lte" | "inDateRange" | "notInDateRange" | "beforeDate" | "afterDate";
|
|
35
|
+
operator: "equals" | "notEquals" | "contains" | "notContains" | "startsWith" | "notStartsWith" | "endsWith" | "notEndsWith" | "gt" | "gte" | "lt" | "lte" | "inDateRange" | "notInDateRange" | "beforeDate" | "beforeOrOnDate" | "afterDate" | "afterOrOnDate";
|
|
55
36
|
values: string[];
|
|
56
37
|
};
|
|
57
38
|
export declare type TimeDimensionBase = {
|
|
58
39
|
dimension: string;
|
|
59
|
-
granularity?:
|
|
40
|
+
granularity?: string;
|
|
60
41
|
};
|
|
61
42
|
export declare type TimeDimensionComparisonFields = {
|
|
62
43
|
compareDateRange: (string | (string | string)[])[];
|
|
@@ -76,6 +57,35 @@ export declare type Query = {
|
|
|
76
57
|
limit?: number;
|
|
77
58
|
order?: TQueryOrderObject | (string | ("asc" | "desc"))[][];
|
|
78
59
|
};
|
|
60
|
+
export declare type SuccessResponse_Record = {
|
|
61
|
+
status: "success";
|
|
62
|
+
program: string;
|
|
63
|
+
version: string;
|
|
64
|
+
datetime: string;
|
|
65
|
+
code?: number;
|
|
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
|
+
}[];
|
|
88
|
+
};
|
|
79
89
|
export declare type StatisticsQuerySchedule = {
|
|
80
90
|
cron: string;
|
|
81
91
|
destination: {
|
|
@@ -83,25 +93,81 @@ export declare type StatisticsQuerySchedule = {
|
|
|
83
93
|
emails: string[];
|
|
84
94
|
};
|
|
85
95
|
};
|
|
86
|
-
export declare type
|
|
87
|
-
query: Query;
|
|
96
|
+
export declare type StatisticsQuery_Without_CompanyId_HasScheduleEnabled_ToJSON = {
|
|
88
97
|
name: string;
|
|
98
|
+
queries: Query[];
|
|
89
99
|
schedule: {} | StatisticsQuerySchedule;
|
|
90
100
|
};
|
|
91
|
-
export declare type StatisticsQuery =
|
|
101
|
+
export declare type StatisticsQuery = StatisticsQuery_Without_CompanyId_HasScheduleEnabled_ToJSON & {
|
|
92
102
|
companyId: string;
|
|
93
103
|
id: string;
|
|
94
|
-
createdAt:
|
|
95
|
-
updatedAt:
|
|
104
|
+
createdAt: string;
|
|
105
|
+
updatedAt: string;
|
|
96
106
|
};
|
|
97
|
-
export declare type
|
|
98
|
-
|
|
99
|
-
|
|
107
|
+
export declare type SuccessResponse_StatisticsQuery = {
|
|
108
|
+
status: "success";
|
|
109
|
+
program: string;
|
|
110
|
+
version: string;
|
|
111
|
+
datetime: string;
|
|
112
|
+
code?: number;
|
|
113
|
+
message: string;
|
|
114
|
+
data: StatisticsQuery;
|
|
115
|
+
};
|
|
116
|
+
export declare type PartialResponse_StatisticsQuery = {
|
|
117
|
+
paginationCount: number;
|
|
118
|
+
paginationPage: number;
|
|
119
|
+
paginationLimit: number;
|
|
120
|
+
status: "success";
|
|
121
|
+
program: string;
|
|
122
|
+
version: string;
|
|
123
|
+
datetime: string;
|
|
124
|
+
code?: number;
|
|
125
|
+
message: string;
|
|
126
|
+
data: StatisticsQuery[];
|
|
127
|
+
};
|
|
128
|
+
export declare type Serie = {
|
|
129
|
+
dimensions: {
|
|
130
|
+
[key: string]: {
|
|
131
|
+
id: string;
|
|
132
|
+
value: string | number | (false) | (true);
|
|
133
|
+
metadata: {
|
|
134
|
+
link?: string;
|
|
135
|
+
formattedValue?: string;
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
measures: {
|
|
140
|
+
id: string;
|
|
141
|
+
values: {
|
|
142
|
+
date: string;
|
|
143
|
+
value: number;
|
|
144
|
+
metadata: {
|
|
145
|
+
calculation?: ({
|
|
146
|
+
type: "number";
|
|
147
|
+
value: number;
|
|
148
|
+
unit?: "currency" | "percent";
|
|
149
|
+
} | {
|
|
150
|
+
type: "scope";
|
|
151
|
+
value: "(" | ")";
|
|
152
|
+
} | {
|
|
153
|
+
type: "operator";
|
|
154
|
+
value: "/" | "\u00D7" | "-" | "+";
|
|
155
|
+
})[];
|
|
156
|
+
};
|
|
157
|
+
}[];
|
|
158
|
+
}[];
|
|
159
|
+
};
|
|
160
|
+
export declare type QueryResult = {
|
|
161
|
+
series: Serie[];
|
|
100
162
|
};
|
|
101
|
-
export declare type
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
163
|
+
export declare type SuccessResponse_QueryResult = {
|
|
164
|
+
status: "success";
|
|
165
|
+
program: string;
|
|
166
|
+
version: string;
|
|
167
|
+
datetime: string;
|
|
168
|
+
code?: number;
|
|
169
|
+
message: string;
|
|
170
|
+
data: QueryResult[];
|
|
105
171
|
};
|
|
106
172
|
export declare type QueryFormatterTableResult = {
|
|
107
173
|
[key: string]: {
|
package/package.json
CHANGED