@epilot/sdk 2.0.0-beta.2 → 2.0.0-beta.3
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/README.md +1 -0
- package/dist/apis/dashboard.cjs +107 -0
- package/dist/apis/dashboard.d.cts +18 -0
- package/dist/apis/dashboard.d.ts +18 -0
- package/dist/apis/dashboard.js +107 -0
- package/dist/dashboard.d-AE3RQ6zo.d.cts +440 -0
- package/dist/dashboard.d-AE3RQ6zo.d.ts +440 -0
- package/dist/index.cjs +5 -0
- package/dist/index.d.cts +70 -68
- package/dist/index.d.ts +70 -68
- package/dist/index.js +5 -0
- package/package.json +6 -1
package/README.md
CHANGED
|
@@ -51,6 +51,7 @@ Full API documentation: [https://docs.epilot.io/api](https://docs.epilot.io/api)
|
|
|
51
51
|
| `epilot.blueprintManifest` | `@epilot/sdk/blueprint-manifest` | [docs](./docs/blueprint-manifest.md) |
|
|
52
52
|
| `epilot.consent` | `@epilot/sdk/consent` | [docs](./docs/consent.md) |
|
|
53
53
|
| `epilot.customerPortal` | `@epilot/sdk/customer-portal` | [docs](./docs/customer-portal.md) |
|
|
54
|
+
| `epilot.dashboard` | `@epilot/sdk/dashboard` | [docs](./docs/dashboard.md) |
|
|
54
55
|
| `epilot.dataManagement` | `@epilot/sdk/data-management` | [docs](./docs/data-management.md) |
|
|
55
56
|
| `epilot.deduplication` | `@epilot/sdk/deduplication` | [docs](./docs/deduplication.md) |
|
|
56
57
|
| `epilot.design` | `@epilot/sdk/design` | [docs](./docs/design.md) |
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
var _chunkD7ICL3AMcjs = require('../chunk-D7ICL3AM.cjs');
|
|
7
|
+
|
|
8
|
+
// src/definitions/dashboard.json
|
|
9
|
+
var require_dashboard = _chunkD7ICL3AMcjs.__commonJS.call(void 0, {
|
|
10
|
+
"src/definitions/dashboard.json"(exports, module) {
|
|
11
|
+
module.exports = {
|
|
12
|
+
openapi: "3.0.0",
|
|
13
|
+
info: {
|
|
14
|
+
title: "",
|
|
15
|
+
version: ""
|
|
16
|
+
},
|
|
17
|
+
paths: {
|
|
18
|
+
"/v1/dashboard/dashboards": {
|
|
19
|
+
get: {
|
|
20
|
+
operationId: "listDashboards",
|
|
21
|
+
responses: {}
|
|
22
|
+
},
|
|
23
|
+
post: {
|
|
24
|
+
operationId: "createDashboard",
|
|
25
|
+
requestBody: {
|
|
26
|
+
content: {
|
|
27
|
+
"application/json": {}
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
responses: {}
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"/v1/dashboard/dashboards/{id}": {
|
|
34
|
+
parameters: [
|
|
35
|
+
{
|
|
36
|
+
name: "id",
|
|
37
|
+
in: "path",
|
|
38
|
+
required: true
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
get: {
|
|
42
|
+
operationId: "getDashboard",
|
|
43
|
+
responses: {}
|
|
44
|
+
},
|
|
45
|
+
put: {
|
|
46
|
+
operationId: "putDashboard",
|
|
47
|
+
requestBody: {
|
|
48
|
+
content: {
|
|
49
|
+
"application/json": {}
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
responses: {}
|
|
53
|
+
},
|
|
54
|
+
delete: {
|
|
55
|
+
operationId: "deleteDashboard",
|
|
56
|
+
responses: {}
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"/v1/dashboard/visualisations": {
|
|
60
|
+
get: {
|
|
61
|
+
operationId: "listAvailableVisualisations",
|
|
62
|
+
responses: {}
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"/v1/dashboard/examples": {
|
|
66
|
+
get: {
|
|
67
|
+
operationId: "listAvailableExamples",
|
|
68
|
+
responses: {}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
components: {},
|
|
73
|
+
servers: [
|
|
74
|
+
{
|
|
75
|
+
url: "https://dashboard.sls.epilot.io"
|
|
76
|
+
}
|
|
77
|
+
]
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
// src/apis/dashboard.ts
|
|
83
|
+
var loadDefinition = () => {
|
|
84
|
+
const mod = require_dashboard();
|
|
85
|
+
return _nullishCoalesce(mod.default, () => ( mod));
|
|
86
|
+
};
|
|
87
|
+
var _instance = null;
|
|
88
|
+
var resolve = () => {
|
|
89
|
+
if (!_instance) {
|
|
90
|
+
const definition = loadDefinition();
|
|
91
|
+
_instance = _chunkD7ICL3AMcjs.createApiClient.call(void 0, { definition });
|
|
92
|
+
}
|
|
93
|
+
return _instance;
|
|
94
|
+
};
|
|
95
|
+
var _handle = _chunkD7ICL3AMcjs.createApiHandle.call(void 0, {
|
|
96
|
+
resolveClient: resolve,
|
|
97
|
+
createClient: () => _chunkD7ICL3AMcjs.createApiClient.call(void 0, { definition: loadDefinition() })
|
|
98
|
+
});
|
|
99
|
+
var getClient = _handle.getClient;
|
|
100
|
+
var createClient = _handle.createClient;
|
|
101
|
+
var dashboard = _handle;
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
exports.authorize = _chunkD7ICL3AMcjs.authorize; exports.createClient = createClient; exports.dashboard = dashboard; exports.getClient = getClient;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { A as ApiHandle } from '../types-BwBvJkY_.cjs';
|
|
2
|
+
export { T as TokenArg, a as authorize } from '../types-BwBvJkY_.cjs';
|
|
3
|
+
import { C as Client } from '../dashboard.d-AE3RQ6zo.cjs';
|
|
4
|
+
export { D as Dashboard, a as DashboardID, b as DashboardTile, c as DashboardTileID, d as DatalakeQuery, E as Example, e as ExampleID, O as OperationMethods, P as PathsDictionary, V as Visualisation, f as VisualisationConfig, g as VisualisationId, t as timechartVisualisationConfig } from '../dashboard.d-AE3RQ6zo.cjs';
|
|
5
|
+
import 'axios';
|
|
6
|
+
import 'openapi-client-axios';
|
|
7
|
+
|
|
8
|
+
/** Get the cached singleton client (lazy-initialized on first call) */
|
|
9
|
+
declare const getClient: () => Client;
|
|
10
|
+
/** Create a fresh client instance (not cached) */
|
|
11
|
+
declare const createClient: () => Client;
|
|
12
|
+
/**
|
|
13
|
+
* API handle — also exposes operations directly:
|
|
14
|
+
* `dashboard.someOperation(...)` calls forwarded to lazy singleton
|
|
15
|
+
*/
|
|
16
|
+
declare const dashboard: ApiHandle<Client>;
|
|
17
|
+
|
|
18
|
+
export { Client, createClient, dashboard, getClient };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { A as ApiHandle } from '../types-BwBvJkY_.js';
|
|
2
|
+
export { T as TokenArg, a as authorize } from '../types-BwBvJkY_.js';
|
|
3
|
+
import { C as Client } from '../dashboard.d-AE3RQ6zo.js';
|
|
4
|
+
export { D as Dashboard, a as DashboardID, b as DashboardTile, c as DashboardTileID, d as DatalakeQuery, E as Example, e as ExampleID, O as OperationMethods, P as PathsDictionary, V as Visualisation, f as VisualisationConfig, g as VisualisationId, t as timechartVisualisationConfig } from '../dashboard.d-AE3RQ6zo.js';
|
|
5
|
+
import 'axios';
|
|
6
|
+
import 'openapi-client-axios';
|
|
7
|
+
|
|
8
|
+
/** Get the cached singleton client (lazy-initialized on first call) */
|
|
9
|
+
declare const getClient: () => Client;
|
|
10
|
+
/** Create a fresh client instance (not cached) */
|
|
11
|
+
declare const createClient: () => Client;
|
|
12
|
+
/**
|
|
13
|
+
* API handle — also exposes operations directly:
|
|
14
|
+
* `dashboard.someOperation(...)` calls forwarded to lazy singleton
|
|
15
|
+
*/
|
|
16
|
+
declare const dashboard: ApiHandle<Client>;
|
|
17
|
+
|
|
18
|
+
export { Client, createClient, dashboard, getClient };
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__commonJS,
|
|
3
|
+
authorize,
|
|
4
|
+
createApiClient,
|
|
5
|
+
createApiHandle
|
|
6
|
+
} from "../chunk-DGCGLG7G.js";
|
|
7
|
+
|
|
8
|
+
// src/definitions/dashboard.json
|
|
9
|
+
var require_dashboard = __commonJS({
|
|
10
|
+
"src/definitions/dashboard.json"(exports, module) {
|
|
11
|
+
module.exports = {
|
|
12
|
+
openapi: "3.0.0",
|
|
13
|
+
info: {
|
|
14
|
+
title: "",
|
|
15
|
+
version: ""
|
|
16
|
+
},
|
|
17
|
+
paths: {
|
|
18
|
+
"/v1/dashboard/dashboards": {
|
|
19
|
+
get: {
|
|
20
|
+
operationId: "listDashboards",
|
|
21
|
+
responses: {}
|
|
22
|
+
},
|
|
23
|
+
post: {
|
|
24
|
+
operationId: "createDashboard",
|
|
25
|
+
requestBody: {
|
|
26
|
+
content: {
|
|
27
|
+
"application/json": {}
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
responses: {}
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"/v1/dashboard/dashboards/{id}": {
|
|
34
|
+
parameters: [
|
|
35
|
+
{
|
|
36
|
+
name: "id",
|
|
37
|
+
in: "path",
|
|
38
|
+
required: true
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
get: {
|
|
42
|
+
operationId: "getDashboard",
|
|
43
|
+
responses: {}
|
|
44
|
+
},
|
|
45
|
+
put: {
|
|
46
|
+
operationId: "putDashboard",
|
|
47
|
+
requestBody: {
|
|
48
|
+
content: {
|
|
49
|
+
"application/json": {}
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
responses: {}
|
|
53
|
+
},
|
|
54
|
+
delete: {
|
|
55
|
+
operationId: "deleteDashboard",
|
|
56
|
+
responses: {}
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"/v1/dashboard/visualisations": {
|
|
60
|
+
get: {
|
|
61
|
+
operationId: "listAvailableVisualisations",
|
|
62
|
+
responses: {}
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"/v1/dashboard/examples": {
|
|
66
|
+
get: {
|
|
67
|
+
operationId: "listAvailableExamples",
|
|
68
|
+
responses: {}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
components: {},
|
|
73
|
+
servers: [
|
|
74
|
+
{
|
|
75
|
+
url: "https://dashboard.sls.epilot.io"
|
|
76
|
+
}
|
|
77
|
+
]
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
// src/apis/dashboard.ts
|
|
83
|
+
var loadDefinition = () => {
|
|
84
|
+
const mod = require_dashboard();
|
|
85
|
+
return mod.default ?? mod;
|
|
86
|
+
};
|
|
87
|
+
var _instance = null;
|
|
88
|
+
var resolve = () => {
|
|
89
|
+
if (!_instance) {
|
|
90
|
+
const definition = loadDefinition();
|
|
91
|
+
_instance = createApiClient({ definition });
|
|
92
|
+
}
|
|
93
|
+
return _instance;
|
|
94
|
+
};
|
|
95
|
+
var _handle = createApiHandle({
|
|
96
|
+
resolveClient: resolve,
|
|
97
|
+
createClient: () => createApiClient({ definition: loadDefinition() })
|
|
98
|
+
});
|
|
99
|
+
var getClient = _handle.getClient;
|
|
100
|
+
var createClient = _handle.createClient;
|
|
101
|
+
var dashboard = _handle;
|
|
102
|
+
export {
|
|
103
|
+
authorize,
|
|
104
|
+
createClient,
|
|
105
|
+
dashboard,
|
|
106
|
+
getClient
|
|
107
|
+
};
|
|
@@ -0,0 +1,440 @@
|
|
|
1
|
+
import { OpenAPIClient, Parameters, UnknownParamsObject, AxiosRequestConfig, OperationResponse } from 'openapi-client-axios';
|
|
2
|
+
|
|
3
|
+
/* Auto-copied from dashboard-client */
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
declare namespace Components {
|
|
7
|
+
namespace Schemas {
|
|
8
|
+
/**
|
|
9
|
+
* Adashboard configuration with tiles
|
|
10
|
+
*/
|
|
11
|
+
export interface Dashboard {
|
|
12
|
+
id?: /**
|
|
13
|
+
* Unique identifier for dashboard
|
|
14
|
+
* example:
|
|
15
|
+
* 3fa85f64-5717-4562-b3fc-2c963f66afa6
|
|
16
|
+
*/
|
|
17
|
+
DashboardID /* uuid */;
|
|
18
|
+
/**
|
|
19
|
+
* example:
|
|
20
|
+
* Employee Dashboard
|
|
21
|
+
*/
|
|
22
|
+
title: string;
|
|
23
|
+
/**
|
|
24
|
+
* example:
|
|
25
|
+
* [
|
|
26
|
+
* {
|
|
27
|
+
* "id": "e4af1297-1fd6-440f-9846-f475f580d40f",
|
|
28
|
+
* "coordinates": {},
|
|
29
|
+
* "visualisation": "timechart",
|
|
30
|
+
* "visualisation_config": {
|
|
31
|
+
* "query": {
|
|
32
|
+
* "dataset": "entity_operations",
|
|
33
|
+
* "measure": "count_operations",
|
|
34
|
+
* "filters": [
|
|
35
|
+
* {
|
|
36
|
+
* "operation": [
|
|
37
|
+
* "createEntity"
|
|
38
|
+
* ]
|
|
39
|
+
* },
|
|
40
|
+
* {
|
|
41
|
+
* "entity_schema": [
|
|
42
|
+
* "opportunity"
|
|
43
|
+
* ]
|
|
44
|
+
* }
|
|
45
|
+
* ],
|
|
46
|
+
* "dimensions": [
|
|
47
|
+
* {
|
|
48
|
+
* "time_with_granularity": "month"
|
|
49
|
+
* },
|
|
50
|
+
* {
|
|
51
|
+
* "entity_attribute": "source.title"
|
|
52
|
+
* }
|
|
53
|
+
* ]
|
|
54
|
+
* },
|
|
55
|
+
* "options": {
|
|
56
|
+
* "type": "line"
|
|
57
|
+
* }
|
|
58
|
+
* }
|
|
59
|
+
* }
|
|
60
|
+
* ]
|
|
61
|
+
*/
|
|
62
|
+
tiles: DashboardTile[];
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Unique identifier for dashboard
|
|
66
|
+
* example:
|
|
67
|
+
* 3fa85f64-5717-4562-b3fc-2c963f66afa6
|
|
68
|
+
*/
|
|
69
|
+
export type DashboardID = string; // uuid
|
|
70
|
+
export interface DashboardTile {
|
|
71
|
+
id?: /**
|
|
72
|
+
* Unique identifier for a tile in a dashboard
|
|
73
|
+
* example:
|
|
74
|
+
* e4af1297-1fd6-440f-9846-f475f580d40f
|
|
75
|
+
*/
|
|
76
|
+
DashboardTileID /* uuid */;
|
|
77
|
+
coordinates?: {
|
|
78
|
+
[key: string]: any;
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* example:
|
|
82
|
+
* Number of opportunities created by journeys every month
|
|
83
|
+
*/
|
|
84
|
+
title?: string;
|
|
85
|
+
visualisation_id?: /**
|
|
86
|
+
* Unique identifier for a Visualisation
|
|
87
|
+
* example:
|
|
88
|
+
* timechart
|
|
89
|
+
*/
|
|
90
|
+
VisualisationId;
|
|
91
|
+
visualisation_config?: VisualisationConfig;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Unique identifier for a tile in a dashboard
|
|
95
|
+
* example:
|
|
96
|
+
* e4af1297-1fd6-440f-9846-f475f580d40f
|
|
97
|
+
*/
|
|
98
|
+
export type DashboardTileID = string; // uuid
|
|
99
|
+
export interface DatalakeQuery {
|
|
100
|
+
[name: string]: any;
|
|
101
|
+
/**
|
|
102
|
+
* example:
|
|
103
|
+
* entity_operations
|
|
104
|
+
*/
|
|
105
|
+
dataset?: string;
|
|
106
|
+
/**
|
|
107
|
+
* example:
|
|
108
|
+
* count_operations
|
|
109
|
+
*/
|
|
110
|
+
measure?: string;
|
|
111
|
+
dimensions?: {
|
|
112
|
+
[name: string]: any;
|
|
113
|
+
}[];
|
|
114
|
+
filters?: {
|
|
115
|
+
[name: string]: any;
|
|
116
|
+
}[];
|
|
117
|
+
}
|
|
118
|
+
export interface Example {
|
|
119
|
+
id?: /**
|
|
120
|
+
* Unique identifier for a visualisation examples for tiles in a dashboard
|
|
121
|
+
* example:
|
|
122
|
+
* e4af1297-1fd6-440f-9846-f475f580d40f
|
|
123
|
+
*/
|
|
124
|
+
ExampleID /* uuid */;
|
|
125
|
+
/**
|
|
126
|
+
* example:
|
|
127
|
+
* Number of opportunities created by journeys every month
|
|
128
|
+
*/
|
|
129
|
+
title?: string;
|
|
130
|
+
visualisation?: /**
|
|
131
|
+
* Unique identifier for a Visualisation
|
|
132
|
+
* example:
|
|
133
|
+
* timechart
|
|
134
|
+
*/
|
|
135
|
+
VisualisationId;
|
|
136
|
+
query?: DatalakeQuery;
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Unique identifier for a visualisation examples for tiles in a dashboard
|
|
140
|
+
* example:
|
|
141
|
+
* e4af1297-1fd6-440f-9846-f475f580d40f
|
|
142
|
+
*/
|
|
143
|
+
export type ExampleID = string; // uuid
|
|
144
|
+
export interface TimechartVisualisationConfig {
|
|
145
|
+
query?: DatalakeQuery;
|
|
146
|
+
/**
|
|
147
|
+
* example:
|
|
148
|
+
* {
|
|
149
|
+
* "type": "bar"
|
|
150
|
+
* }
|
|
151
|
+
*/
|
|
152
|
+
options?: {
|
|
153
|
+
[name: string]: any;
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* A Visualisation that can be used to configure tiles in dashboards
|
|
158
|
+
*/
|
|
159
|
+
export interface Visualisation {
|
|
160
|
+
visualisation?: /**
|
|
161
|
+
* Unique identifier for a Visualisation
|
|
162
|
+
* example:
|
|
163
|
+
* timechart
|
|
164
|
+
*/
|
|
165
|
+
VisualisationId;
|
|
166
|
+
/**
|
|
167
|
+
* example:
|
|
168
|
+
* Time Series Visualisation
|
|
169
|
+
*/
|
|
170
|
+
title?: string;
|
|
171
|
+
description?: string;
|
|
172
|
+
/**
|
|
173
|
+
* Package name of the Visualisation MFE bundle to import
|
|
174
|
+
* example:
|
|
175
|
+
* @epilot360/highcharts
|
|
176
|
+
*/
|
|
177
|
+
package_name?: string;
|
|
178
|
+
/**
|
|
179
|
+
* URL to Visualisation MFE bundle to import
|
|
180
|
+
* example:
|
|
181
|
+
* https://epilot-dashboard-visualisations.epilot.io/epilot360-datalake-visualisation/bundle.js?version=1650592827
|
|
182
|
+
*/
|
|
183
|
+
import_url?: string; // uri
|
|
184
|
+
}
|
|
185
|
+
export type VisualisationConfig = TimechartVisualisationConfig;
|
|
186
|
+
/**
|
|
187
|
+
* Unique identifier for a Visualisation
|
|
188
|
+
* example:
|
|
189
|
+
* timechart
|
|
190
|
+
*/
|
|
191
|
+
export type VisualisationId = "kpi" | "funnel" | "toplist" | "timechart" | "pie" | "bar" | "entity_list" | "markdown" | "news_feed" | "workflow";
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
declare namespace Paths {
|
|
195
|
+
namespace CreateDashboard {
|
|
196
|
+
export type RequestBody = /* Adashboard configuration with tiles */ Components.Schemas.Dashboard;
|
|
197
|
+
namespace Responses {
|
|
198
|
+
export type $201 = /* Adashboard configuration with tiles */ Components.Schemas.Dashboard;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
namespace DeleteDashboard {
|
|
202
|
+
namespace Responses {
|
|
203
|
+
export type $200 = /* Adashboard configuration with tiles */ Components.Schemas.Dashboard;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
namespace GetDashboard {
|
|
207
|
+
namespace Responses {
|
|
208
|
+
export type $200 = /* Adashboard configuration with tiles */ Components.Schemas.Dashboard;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
namespace ListAvailableExamples {
|
|
212
|
+
namespace Responses {
|
|
213
|
+
export interface $200 {
|
|
214
|
+
results?: Components.Schemas.Example[];
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
namespace ListAvailableVisualisations {
|
|
219
|
+
namespace Responses {
|
|
220
|
+
export interface $200 {
|
|
221
|
+
/**
|
|
222
|
+
* example:
|
|
223
|
+
* [
|
|
224
|
+
* {
|
|
225
|
+
* "visualisation": "timechart",
|
|
226
|
+
* "title": "Time Series Visualisation",
|
|
227
|
+
* "description": "Visualise your metrics with respect to time series",
|
|
228
|
+
* "package_name": "@epilot360/highcharts"
|
|
229
|
+
* },
|
|
230
|
+
* {
|
|
231
|
+
* "visualisation": "kpi",
|
|
232
|
+
* "title": "KPI Visualisation",
|
|
233
|
+
* "description": "Visualise your key performance indicators",
|
|
234
|
+
* "package_name": "@epilot360/kpi"
|
|
235
|
+
* }
|
|
236
|
+
* ]
|
|
237
|
+
*/
|
|
238
|
+
results?: /* A Visualisation that can be used to configure tiles in dashboards */ Components.Schemas.Visualisation[];
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
namespace ListDashboards {
|
|
243
|
+
namespace Responses {
|
|
244
|
+
export interface $200 {
|
|
245
|
+
results?: /* Adashboard configuration with tiles */ Components.Schemas.Dashboard[];
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
namespace PutDashboard {
|
|
250
|
+
export type RequestBody = /* Adashboard configuration with tiles */ Components.Schemas.Dashboard;
|
|
251
|
+
namespace Responses {
|
|
252
|
+
export type $200 = /* Adashboard configuration with tiles */ Components.Schemas.Dashboard;
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
namespace V1DashboardDashboards$Id {
|
|
256
|
+
namespace Parameters {
|
|
257
|
+
export type Id = /**
|
|
258
|
+
* Unique identifier for dashboard
|
|
259
|
+
* example:
|
|
260
|
+
* 3fa85f64-5717-4562-b3fc-2c963f66afa6
|
|
261
|
+
*/
|
|
262
|
+
Components.Schemas.DashboardID /* uuid */;
|
|
263
|
+
}
|
|
264
|
+
export interface PathParameters {
|
|
265
|
+
id: Parameters.Id;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
interface OperationMethods {
|
|
272
|
+
/**
|
|
273
|
+
* listDashboards - listDashboards
|
|
274
|
+
*
|
|
275
|
+
* List dashboards available to the user
|
|
276
|
+
*/
|
|
277
|
+
'listDashboards'(
|
|
278
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
279
|
+
data?: any,
|
|
280
|
+
config?: AxiosRequestConfig
|
|
281
|
+
): OperationResponse<Paths.ListDashboards.Responses.$200>
|
|
282
|
+
/**
|
|
283
|
+
* createDashboard - createDashboard
|
|
284
|
+
*
|
|
285
|
+
* Create new dashboard
|
|
286
|
+
*/
|
|
287
|
+
'createDashboard'(
|
|
288
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
289
|
+
data?: Paths.CreateDashboard.RequestBody,
|
|
290
|
+
config?: AxiosRequestConfig
|
|
291
|
+
): OperationResponse<Paths.CreateDashboard.Responses.$201>
|
|
292
|
+
/**
|
|
293
|
+
* getDashboard - getDashboard
|
|
294
|
+
*
|
|
295
|
+
* Get dashboard by ID
|
|
296
|
+
*/
|
|
297
|
+
'getDashboard'(
|
|
298
|
+
parameters?: Parameters<Paths.V1DashboardDashboards$Id.PathParameters> | null,
|
|
299
|
+
data?: any,
|
|
300
|
+
config?: AxiosRequestConfig
|
|
301
|
+
): OperationResponse<Paths.GetDashboard.Responses.$200>
|
|
302
|
+
/**
|
|
303
|
+
* putDashboard - putDashboard
|
|
304
|
+
*
|
|
305
|
+
* Update a dashboard by ID
|
|
306
|
+
*/
|
|
307
|
+
'putDashboard'(
|
|
308
|
+
parameters?: Parameters<Paths.V1DashboardDashboards$Id.PathParameters> | null,
|
|
309
|
+
data?: Paths.PutDashboard.RequestBody,
|
|
310
|
+
config?: AxiosRequestConfig
|
|
311
|
+
): OperationResponse<Paths.PutDashboard.Responses.$200>
|
|
312
|
+
/**
|
|
313
|
+
* deleteDashboard - deleteDashboard
|
|
314
|
+
*
|
|
315
|
+
* Delete a dashboard by ID
|
|
316
|
+
*/
|
|
317
|
+
'deleteDashboard'(
|
|
318
|
+
parameters?: Parameters<Paths.V1DashboardDashboards$Id.PathParameters> | null,
|
|
319
|
+
data?: any,
|
|
320
|
+
config?: AxiosRequestConfig
|
|
321
|
+
): OperationResponse<Paths.DeleteDashboard.Responses.$200>
|
|
322
|
+
/**
|
|
323
|
+
* listAvailableVisualisations - listAvailableVisualisations
|
|
324
|
+
*
|
|
325
|
+
* Returns list of available Visualisations to configure new dashboard tiles
|
|
326
|
+
*/
|
|
327
|
+
'listAvailableVisualisations'(
|
|
328
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
329
|
+
data?: any,
|
|
330
|
+
config?: AxiosRequestConfig
|
|
331
|
+
): OperationResponse<Paths.ListAvailableVisualisations.Responses.$200>
|
|
332
|
+
/**
|
|
333
|
+
* listAvailableExamples - listAvailableExamples
|
|
334
|
+
*
|
|
335
|
+
* Returns list of available exampless for visualisations to configure new dashboard tiles
|
|
336
|
+
*/
|
|
337
|
+
'listAvailableExamples'(
|
|
338
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
339
|
+
data?: any,
|
|
340
|
+
config?: AxiosRequestConfig
|
|
341
|
+
): OperationResponse<Paths.ListAvailableExamples.Responses.$200>
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
interface PathsDictionary {
|
|
345
|
+
['/v1/dashboard/dashboards']: {
|
|
346
|
+
/**
|
|
347
|
+
* listDashboards - listDashboards
|
|
348
|
+
*
|
|
349
|
+
* List dashboards available to the user
|
|
350
|
+
*/
|
|
351
|
+
'get'(
|
|
352
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
353
|
+
data?: any,
|
|
354
|
+
config?: AxiosRequestConfig
|
|
355
|
+
): OperationResponse<Paths.ListDashboards.Responses.$200>
|
|
356
|
+
/**
|
|
357
|
+
* createDashboard - createDashboard
|
|
358
|
+
*
|
|
359
|
+
* Create new dashboard
|
|
360
|
+
*/
|
|
361
|
+
'post'(
|
|
362
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
363
|
+
data?: Paths.CreateDashboard.RequestBody,
|
|
364
|
+
config?: AxiosRequestConfig
|
|
365
|
+
): OperationResponse<Paths.CreateDashboard.Responses.$201>
|
|
366
|
+
}
|
|
367
|
+
['/v1/dashboard/dashboards/{id}']: {
|
|
368
|
+
/**
|
|
369
|
+
* getDashboard - getDashboard
|
|
370
|
+
*
|
|
371
|
+
* Get dashboard by ID
|
|
372
|
+
*/
|
|
373
|
+
'get'(
|
|
374
|
+
parameters?: Parameters<Paths.V1DashboardDashboards$Id.PathParameters> | null,
|
|
375
|
+
data?: any,
|
|
376
|
+
config?: AxiosRequestConfig
|
|
377
|
+
): OperationResponse<Paths.GetDashboard.Responses.$200>
|
|
378
|
+
/**
|
|
379
|
+
* putDashboard - putDashboard
|
|
380
|
+
*
|
|
381
|
+
* Update a dashboard by ID
|
|
382
|
+
*/
|
|
383
|
+
'put'(
|
|
384
|
+
parameters?: Parameters<Paths.V1DashboardDashboards$Id.PathParameters> | null,
|
|
385
|
+
data?: Paths.PutDashboard.RequestBody,
|
|
386
|
+
config?: AxiosRequestConfig
|
|
387
|
+
): OperationResponse<Paths.PutDashboard.Responses.$200>
|
|
388
|
+
/**
|
|
389
|
+
* deleteDashboard - deleteDashboard
|
|
390
|
+
*
|
|
391
|
+
* Delete a dashboard by ID
|
|
392
|
+
*/
|
|
393
|
+
'delete'(
|
|
394
|
+
parameters?: Parameters<Paths.V1DashboardDashboards$Id.PathParameters> | null,
|
|
395
|
+
data?: any,
|
|
396
|
+
config?: AxiosRequestConfig
|
|
397
|
+
): OperationResponse<Paths.DeleteDashboard.Responses.$200>
|
|
398
|
+
}
|
|
399
|
+
['/v1/dashboard/visualisations']: {
|
|
400
|
+
/**
|
|
401
|
+
* listAvailableVisualisations - listAvailableVisualisations
|
|
402
|
+
*
|
|
403
|
+
* Returns list of available Visualisations to configure new dashboard tiles
|
|
404
|
+
*/
|
|
405
|
+
'get'(
|
|
406
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
407
|
+
data?: any,
|
|
408
|
+
config?: AxiosRequestConfig
|
|
409
|
+
): OperationResponse<Paths.ListAvailableVisualisations.Responses.$200>
|
|
410
|
+
}
|
|
411
|
+
['/v1/dashboard/examples']: {
|
|
412
|
+
/**
|
|
413
|
+
* listAvailableExamples - listAvailableExamples
|
|
414
|
+
*
|
|
415
|
+
* Returns list of available exampless for visualisations to configure new dashboard tiles
|
|
416
|
+
*/
|
|
417
|
+
'get'(
|
|
418
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
419
|
+
data?: any,
|
|
420
|
+
config?: AxiosRequestConfig
|
|
421
|
+
): OperationResponse<Paths.ListAvailableExamples.Responses.$200>
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
type Client = OpenAPIClient<OperationMethods, PathsDictionary>
|
|
426
|
+
|
|
427
|
+
|
|
428
|
+
type Dashboard = Components.Schemas.Dashboard;
|
|
429
|
+
type DashboardID = Components.Schemas.DashboardID;
|
|
430
|
+
type DashboardTile = Components.Schemas.DashboardTile;
|
|
431
|
+
type DashboardTileID = Components.Schemas.DashboardTileID;
|
|
432
|
+
type DatalakeQuery = Components.Schemas.DatalakeQuery;
|
|
433
|
+
type Example = Components.Schemas.Example;
|
|
434
|
+
type ExampleID = Components.Schemas.ExampleID;
|
|
435
|
+
type timechartVisualisationConfig = Components.Schemas.TimechartVisualisationConfig;
|
|
436
|
+
type Visualisation = Components.Schemas.Visualisation;
|
|
437
|
+
type VisualisationConfig = Components.Schemas.VisualisationConfig;
|
|
438
|
+
type VisualisationId = Components.Schemas.VisualisationId;
|
|
439
|
+
|
|
440
|
+
export type { Client as C, Dashboard as D, Example as E, OperationMethods as O, PathsDictionary as P, Visualisation as V, DashboardID as a, DashboardTile as b, DashboardTileID as c, DatalakeQuery as d, ExampleID as e, VisualisationConfig as f, VisualisationId as g, timechartVisualisationConfig as t };
|