@contractspec/example.analytics-dashboard 1.45.1 → 1.45.2
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.
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_schema247 from "@contractspec/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/query/query.enum.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Query type enum.
|
|
6
6
|
*/
|
|
7
|
-
declare const QueryTypeEnum:
|
|
7
|
+
declare const QueryTypeEnum: _contractspec_lib_schema247.EnumType<[string, string, string, string]>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { QueryTypeEnum };
|
|
10
10
|
//# sourceMappingURL=query.enum.d.ts.map
|
|
@@ -1,79 +1,79 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_schema248 from "@contractspec/lib.schema";
|
|
2
2
|
import * as _contractspec_lib_contracts9 from "@contractspec/lib.contracts";
|
|
3
3
|
|
|
4
4
|
//#region src/query/query.operation.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Create a data query.
|
|
7
7
|
*/
|
|
8
|
-
declare const CreateQueryContract: _contractspec_lib_contracts9.OperationSpec<
|
|
8
|
+
declare const CreateQueryContract: _contractspec_lib_contracts9.OperationSpec<_contractspec_lib_schema248.SchemaModel<{
|
|
9
9
|
name: {
|
|
10
|
-
type:
|
|
10
|
+
type: _contractspec_lib_schema248.FieldType<string, string>;
|
|
11
11
|
isOptional: false;
|
|
12
12
|
};
|
|
13
13
|
description: {
|
|
14
|
-
type:
|
|
14
|
+
type: _contractspec_lib_schema248.FieldType<string, string>;
|
|
15
15
|
isOptional: true;
|
|
16
16
|
};
|
|
17
17
|
type: {
|
|
18
|
-
type:
|
|
18
|
+
type: _contractspec_lib_schema248.EnumType<[string, string, string, string]>;
|
|
19
19
|
isOptional: false;
|
|
20
20
|
};
|
|
21
21
|
definition: {
|
|
22
|
-
type:
|
|
22
|
+
type: _contractspec_lib_schema248.FieldType<unknown, unknown>;
|
|
23
23
|
isOptional: false;
|
|
24
24
|
};
|
|
25
25
|
sql: {
|
|
26
|
-
type:
|
|
26
|
+
type: _contractspec_lib_schema248.FieldType<string, string>;
|
|
27
27
|
isOptional: true;
|
|
28
28
|
};
|
|
29
29
|
metricIds: {
|
|
30
|
-
type:
|
|
30
|
+
type: _contractspec_lib_schema248.FieldType<string, string>;
|
|
31
31
|
isArray: true;
|
|
32
32
|
isOptional: true;
|
|
33
33
|
};
|
|
34
34
|
cacheTtlSeconds: {
|
|
35
|
-
type:
|
|
35
|
+
type: _contractspec_lib_schema248.FieldType<number, number>;
|
|
36
36
|
isOptional: true;
|
|
37
37
|
};
|
|
38
38
|
isShared: {
|
|
39
|
-
type:
|
|
39
|
+
type: _contractspec_lib_schema248.FieldType<boolean, boolean>;
|
|
40
40
|
isOptional: true;
|
|
41
41
|
};
|
|
42
|
-
}>,
|
|
42
|
+
}>, _contractspec_lib_schema248.SchemaModel<{
|
|
43
43
|
id: {
|
|
44
|
-
type:
|
|
44
|
+
type: _contractspec_lib_schema248.FieldType<string, string>;
|
|
45
45
|
isOptional: false;
|
|
46
46
|
};
|
|
47
47
|
name: {
|
|
48
|
-
type:
|
|
48
|
+
type: _contractspec_lib_schema248.FieldType<string, string>;
|
|
49
49
|
isOptional: false;
|
|
50
50
|
};
|
|
51
51
|
description: {
|
|
52
|
-
type:
|
|
52
|
+
type: _contractspec_lib_schema248.FieldType<string, string>;
|
|
53
53
|
isOptional: true;
|
|
54
54
|
};
|
|
55
55
|
type: {
|
|
56
|
-
type:
|
|
56
|
+
type: _contractspec_lib_schema248.EnumType<[string, string, string, string]>;
|
|
57
57
|
isOptional: false;
|
|
58
58
|
};
|
|
59
59
|
definition: {
|
|
60
|
-
type:
|
|
60
|
+
type: _contractspec_lib_schema248.FieldType<unknown, unknown>;
|
|
61
61
|
isOptional: false;
|
|
62
62
|
};
|
|
63
63
|
sql: {
|
|
64
|
-
type:
|
|
64
|
+
type: _contractspec_lib_schema248.FieldType<string, string>;
|
|
65
65
|
isOptional: true;
|
|
66
66
|
};
|
|
67
67
|
cacheTtlSeconds: {
|
|
68
|
-
type:
|
|
68
|
+
type: _contractspec_lib_schema248.FieldType<number, number>;
|
|
69
69
|
isOptional: false;
|
|
70
70
|
};
|
|
71
71
|
isShared: {
|
|
72
|
-
type:
|
|
72
|
+
type: _contractspec_lib_schema248.FieldType<boolean, boolean>;
|
|
73
73
|
isOptional: false;
|
|
74
74
|
};
|
|
75
75
|
createdAt: {
|
|
76
|
-
type:
|
|
76
|
+
type: _contractspec_lib_schema248.FieldType<Date, string>;
|
|
77
77
|
isOptional: false;
|
|
78
78
|
};
|
|
79
79
|
}>, {
|
|
@@ -83,41 +83,41 @@ declare const CreateQueryContract: _contractspec_lib_contracts9.OperationSpec<_c
|
|
|
83
83
|
owners: "@example.analytics-dashboard"[];
|
|
84
84
|
tags: string[];
|
|
85
85
|
when: string;
|
|
86
|
-
payload:
|
|
86
|
+
payload: _contractspec_lib_schema248.SchemaModel<{
|
|
87
87
|
id: {
|
|
88
|
-
type:
|
|
88
|
+
type: _contractspec_lib_schema248.FieldType<string, string>;
|
|
89
89
|
isOptional: false;
|
|
90
90
|
};
|
|
91
91
|
name: {
|
|
92
|
-
type:
|
|
92
|
+
type: _contractspec_lib_schema248.FieldType<string, string>;
|
|
93
93
|
isOptional: false;
|
|
94
94
|
};
|
|
95
95
|
description: {
|
|
96
|
-
type:
|
|
96
|
+
type: _contractspec_lib_schema248.FieldType<string, string>;
|
|
97
97
|
isOptional: true;
|
|
98
98
|
};
|
|
99
99
|
type: {
|
|
100
|
-
type:
|
|
100
|
+
type: _contractspec_lib_schema248.EnumType<[string, string, string, string]>;
|
|
101
101
|
isOptional: false;
|
|
102
102
|
};
|
|
103
103
|
definition: {
|
|
104
|
-
type:
|
|
104
|
+
type: _contractspec_lib_schema248.FieldType<unknown, unknown>;
|
|
105
105
|
isOptional: false;
|
|
106
106
|
};
|
|
107
107
|
sql: {
|
|
108
|
-
type:
|
|
108
|
+
type: _contractspec_lib_schema248.FieldType<string, string>;
|
|
109
109
|
isOptional: true;
|
|
110
110
|
};
|
|
111
111
|
cacheTtlSeconds: {
|
|
112
|
-
type:
|
|
112
|
+
type: _contractspec_lib_schema248.FieldType<number, number>;
|
|
113
113
|
isOptional: false;
|
|
114
114
|
};
|
|
115
115
|
isShared: {
|
|
116
|
-
type:
|
|
116
|
+
type: _contractspec_lib_schema248.FieldType<boolean, boolean>;
|
|
117
117
|
isOptional: false;
|
|
118
118
|
};
|
|
119
119
|
createdAt: {
|
|
120
|
-
type:
|
|
120
|
+
type: _contractspec_lib_schema248.FieldType<Date, string>;
|
|
121
121
|
isOptional: false;
|
|
122
122
|
};
|
|
123
123
|
}>;
|
|
@@ -125,54 +125,54 @@ declare const CreateQueryContract: _contractspec_lib_contracts9.OperationSpec<_c
|
|
|
125
125
|
/**
|
|
126
126
|
* Execute a data query.
|
|
127
127
|
*/
|
|
128
|
-
declare const ExecuteQueryContract: _contractspec_lib_contracts9.OperationSpec<
|
|
128
|
+
declare const ExecuteQueryContract: _contractspec_lib_contracts9.OperationSpec<_contractspec_lib_schema248.SchemaModel<{
|
|
129
129
|
queryId: {
|
|
130
|
-
type:
|
|
130
|
+
type: _contractspec_lib_schema248.FieldType<string, string>;
|
|
131
131
|
isOptional: false;
|
|
132
132
|
};
|
|
133
133
|
parameters: {
|
|
134
|
-
type:
|
|
134
|
+
type: _contractspec_lib_schema248.FieldType<unknown, unknown>;
|
|
135
135
|
isOptional: true;
|
|
136
136
|
};
|
|
137
137
|
dateRange: {
|
|
138
|
-
type:
|
|
138
|
+
type: _contractspec_lib_schema248.FieldType<unknown, unknown>;
|
|
139
139
|
isOptional: true;
|
|
140
140
|
};
|
|
141
141
|
filters: {
|
|
142
|
-
type:
|
|
142
|
+
type: _contractspec_lib_schema248.FieldType<unknown, unknown>;
|
|
143
143
|
isOptional: true;
|
|
144
144
|
};
|
|
145
145
|
forceRefresh: {
|
|
146
|
-
type:
|
|
146
|
+
type: _contractspec_lib_schema248.FieldType<boolean, boolean>;
|
|
147
147
|
isOptional: true;
|
|
148
148
|
};
|
|
149
|
-
}>,
|
|
149
|
+
}>, _contractspec_lib_schema248.SchemaModel<{
|
|
150
150
|
queryId: {
|
|
151
|
-
type:
|
|
151
|
+
type: _contractspec_lib_schema248.FieldType<string, string>;
|
|
152
152
|
isOptional: false;
|
|
153
153
|
};
|
|
154
154
|
data: {
|
|
155
|
-
type:
|
|
155
|
+
type: _contractspec_lib_schema248.FieldType<unknown, unknown>;
|
|
156
156
|
isOptional: false;
|
|
157
157
|
};
|
|
158
158
|
columns: {
|
|
159
|
-
type:
|
|
159
|
+
type: _contractspec_lib_schema248.FieldType<unknown, unknown>;
|
|
160
160
|
isOptional: false;
|
|
161
161
|
};
|
|
162
162
|
rowCount: {
|
|
163
|
-
type:
|
|
163
|
+
type: _contractspec_lib_schema248.FieldType<number, number>;
|
|
164
164
|
isOptional: false;
|
|
165
165
|
};
|
|
166
166
|
executionTimeMs: {
|
|
167
|
-
type:
|
|
167
|
+
type: _contractspec_lib_schema248.FieldType<number, number>;
|
|
168
168
|
isOptional: false;
|
|
169
169
|
};
|
|
170
170
|
cachedAt: {
|
|
171
|
-
type:
|
|
171
|
+
type: _contractspec_lib_schema248.FieldType<Date, string>;
|
|
172
172
|
isOptional: true;
|
|
173
173
|
};
|
|
174
174
|
error: {
|
|
175
|
-
type:
|
|
175
|
+
type: _contractspec_lib_schema248.FieldType<string, string>;
|
|
176
176
|
isOptional: true;
|
|
177
177
|
};
|
|
178
178
|
}>, undefined>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contractspec/example.analytics-dashboard",
|
|
3
|
-
"version": "1.45.
|
|
3
|
+
"version": "1.45.2",
|
|
4
4
|
"description": "Analytics Dashboard example with widgets and query engine for ContractSpec",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -18,18 +18,12 @@
|
|
|
18
18
|
"lint:check": "eslint src"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@contractspec/lib.schema": "1.45.
|
|
22
|
-
"@contractspec/lib.contracts": "1.45.
|
|
23
|
-
"@contractspec/lib.bus": "1.45.1",
|
|
24
|
-
"@contractspec/lib.identity-rbac": "1.45.1",
|
|
25
|
-
"@contractspec/lib.metering": "1.45.1",
|
|
26
|
-
"@contractspec/lib.jobs": "1.45.1",
|
|
27
|
-
"@contractspec/module.audit-trail": "1.45.1",
|
|
28
|
-
"zod": "^4.1.13"
|
|
21
|
+
"@contractspec/lib.schema": "1.45.2",
|
|
22
|
+
"@contractspec/lib.contracts": "1.45.2"
|
|
29
23
|
},
|
|
30
24
|
"devDependencies": {
|
|
31
|
-
"@contractspec/tool.typescript": "1.45.
|
|
32
|
-
"@contractspec/tool.tsdown": "1.45.
|
|
25
|
+
"@contractspec/tool.typescript": "1.45.2",
|
|
26
|
+
"@contractspec/tool.tsdown": "1.45.2",
|
|
33
27
|
"typescript": "^5.9.3"
|
|
34
28
|
},
|
|
35
29
|
"exports": {
|