@lssm/example.analytics-dashboard 0.0.0-canary-20251217060433 → 0.0.0-canary-20251217062139
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/dist/dashboard/dashboard.contracts.d.ts +131 -131
- package/dist/dashboard/dashboard.contracts.js +5 -5
- package/dist/dashboard/dashboard.enum.js +5 -4
- package/dist/dashboard/dashboard.schema.d.ts +79 -79
- package/dist/dashboard/dashboard.schema.js +44 -42
- package/dist/docs/analytics-dashboard.docblock.js +3 -2
- package/dist/events.d.ts +40 -40
- package/dist/events.js +27 -24
- package/dist/index.d.ts +0 -1
- package/dist/libs/contracts/dist/capabilities/openbanking.js +84 -0
- package/dist/libs/contracts/dist/client/index.js +5 -0
- package/dist/libs/contracts/dist/client/react/feature-render.js +2 -0
- package/dist/libs/contracts/dist/client/react/form-render.js +4 -0
- package/dist/libs/contracts/dist/client/react/index.js +4 -0
- package/dist/libs/contracts/dist/contract-registry/index.js +1 -0
- package/dist/libs/contracts/dist/contract-registry/schemas.js +57 -0
- package/dist/libs/contracts/dist/docs/PUBLISHING.docblock.js +91 -0
- package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +365 -0
- package/dist/libs/contracts/dist/docs/index.js +29 -0
- package/dist/libs/contracts/dist/docs/presentations.js +67 -0
- package/dist/libs/contracts/dist/docs/registry.js +42 -0
- package/dist/libs/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +398 -0
- package/dist/libs/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +83 -0
- package/dist/libs/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +155 -0
- package/dist/libs/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +101 -0
- package/dist/libs/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +16 -0
- package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +80 -0
- package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +57 -0
- package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +228 -0
- package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +357 -0
- package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +21 -0
- package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +16 -0
- package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +281 -0
- package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +22 -0
- package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +79 -0
- package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +84 -0
- package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +57 -0
- package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +22 -0
- package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +40 -0
- package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +86 -0
- package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +22 -0
- package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +62 -0
- package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +155 -0
- package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +20 -0
- package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +101 -0
- package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +20 -0
- package/dist/libs/contracts/dist/events.js +9 -0
- package/dist/libs/contracts/dist/experiments/evaluator.js +1 -0
- package/dist/libs/contracts/dist/index.js +71 -0
- package/dist/libs/contracts/dist/install.js +2 -0
- package/dist/libs/contracts/dist/integrations/contracts.js +371 -0
- package/dist/libs/contracts/dist/integrations/index.js +18 -0
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +225 -0
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +157 -0
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/index.js +3 -0
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +208 -0
- package/dist/libs/contracts/dist/integrations/openbanking/models.js +240 -0
- package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js +24 -0
- package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js +52 -0
- package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js +75 -0
- package/dist/libs/contracts/dist/integrations/providers/gmail.js +87 -0
- package/dist/libs/contracts/dist/integrations/providers/google-calendar.js +66 -0
- package/dist/libs/contracts/dist/integrations/providers/index.js +11 -0
- package/dist/libs/contracts/dist/integrations/providers/mistral.js +68 -0
- package/dist/libs/contracts/dist/integrations/providers/postmark.js +68 -0
- package/dist/libs/contracts/dist/integrations/providers/powens.js +116 -0
- package/dist/libs/contracts/dist/integrations/providers/qdrant.js +73 -0
- package/dist/libs/contracts/dist/integrations/providers/registry.js +10 -0
- package/dist/libs/contracts/dist/integrations/providers/stripe.js +83 -0
- package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js +61 -0
- package/dist/libs/contracts/dist/jsonschema.js +1 -0
- package/dist/libs/contracts/dist/knowledge/contracts.js +299 -0
- package/dist/libs/contracts/dist/knowledge/index.js +7 -0
- package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js +34 -0
- package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js +34 -0
- package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js +38 -0
- package/dist/libs/contracts/dist/knowledge/spaces/index.js +6 -0
- package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js +34 -0
- package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js +37 -0
- package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js +34 -0
- package/dist/libs/contracts/dist/llm/exporters.js +18 -0
- package/dist/libs/contracts/dist/llm/index.js +2 -0
- package/dist/libs/contracts/dist/llm/prompts.js +1 -0
- package/dist/libs/contracts/dist/onboarding-base.js +179 -0
- package/dist/libs/contracts/dist/openapi.js +1 -0
- package/dist/libs/contracts/dist/ownership.js +36 -0
- package/dist/libs/contracts/dist/presentations.js +1 -0
- package/dist/libs/contracts/dist/presentations.v2.js +7 -0
- package/dist/libs/contracts/dist/prompt.js +1 -0
- package/dist/libs/contracts/dist/promptRegistry.js +1 -0
- package/dist/libs/contracts/dist/regenerator/index.js +1 -0
- package/dist/libs/contracts/dist/regenerator/service.js +1 -0
- package/dist/libs/contracts/dist/registry.js +2 -0
- package/dist/libs/contracts/dist/resources.js +1 -0
- package/dist/libs/contracts/dist/schema/dist/EnumType.js +2 -0
- package/dist/libs/contracts/dist/schema/dist/FieldType.js +39 -0
- package/dist/libs/contracts/dist/schema/dist/ScalarTypeEnum.js +222 -0
- package/dist/libs/contracts/dist/schema/dist/SchemaModel.js +23 -0
- package/dist/libs/contracts/dist/schema/dist/entity/defineEntity.js +1 -0
- package/dist/libs/contracts/dist/schema/dist/entity/index.js +2 -0
- package/dist/libs/contracts/dist/schema/dist/entity/types.js +1 -0
- package/dist/libs/contracts/dist/schema/dist/index.js +6 -0
- package/dist/libs/contracts/dist/server/graphql-pothos.js +6 -0
- package/dist/libs/contracts/dist/server/index.js +8 -0
- package/dist/libs/contracts/dist/server/mcp/createMcpServer.js +4 -0
- package/dist/libs/contracts/dist/server/mcp/registerPresentations.js +2 -0
- package/dist/libs/contracts/dist/server/mcp/registerPrompts.js +1 -0
- package/dist/libs/contracts/dist/server/mcp/registerResources.js +2 -0
- package/dist/libs/contracts/dist/server/mcp/registerTools.js +1 -0
- package/dist/libs/contracts/dist/server/provider-mcp.js +1 -0
- package/dist/libs/contracts/dist/server/rest-elysia.js +1 -0
- package/dist/libs/contracts/dist/server/rest-express.js +1 -0
- package/dist/libs/contracts/dist/server/rest-generic.js +1 -0
- package/dist/libs/contracts/dist/server/rest-next-app.js +1 -0
- package/dist/libs/contracts/dist/server/rest-next-pages.js +1 -0
- package/dist/libs/contracts/dist/spec.js +25 -0
- package/dist/libs/contracts/dist/telemetry/index.js +1 -0
- package/dist/libs/contracts/dist/telemetry/tracker.js +1 -0
- package/dist/libs/contracts/dist/tests/index.js +1 -0
- package/dist/libs/contracts/dist/tests/runner.js +2 -0
- package/dist/libs/contracts/dist/workflow/index.js +1 -0
- package/dist/libs/contracts/dist/workflow/runner.js +1 -0
- package/dist/libs/schema/dist/EnumType.js +40 -0
- package/dist/libs/schema/dist/FieldType.js +39 -0
- package/dist/libs/schema/dist/ScalarTypeEnum.js +222 -0
- package/dist/libs/schema/dist/SchemaModel.js +24 -0
- package/dist/libs/schema/dist/entity/defineEntity.js +1 -0
- package/dist/libs/schema/dist/entity/index.js +2 -0
- package/dist/libs/schema/dist/entity/types.js +1 -0
- package/dist/libs/schema/dist/index.js +6 -0
- package/dist/query/query.contracts.d.ts +45 -45
- package/dist/query/query.contracts.js +3 -3
- package/dist/query/query.enum.d.ts +2 -2
- package/dist/query/query.enum.js +3 -2
- package/dist/query/query.schema.d.ts +34 -34
- package/dist/query/query.schema.js +34 -32
- package/package.json +10 -10
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import "./EnumType.js";
|
|
2
|
+
import "./FieldType.js";
|
|
3
|
+
import * as e$1 from "zod";
|
|
4
|
+
|
|
5
|
+
//#region ../../libs/schema/dist/SchemaModel.js
|
|
6
|
+
var t = class {
|
|
7
|
+
constructor(e$2) {
|
|
8
|
+
this.config = e$2;
|
|
9
|
+
}
|
|
10
|
+
getZod() {
|
|
11
|
+
let t$1 = Object.entries(this.config.fields).reduce((t$2, [n$1, r]) => {
|
|
12
|
+
let i = r.type.getZod(), a = r.isArray ? e$1.array(i) : i;
|
|
13
|
+
return t$2[n$1] = r.isOptional ? a.optional() : a, t$2;
|
|
14
|
+
}, {});
|
|
15
|
+
return e$1.object(t$1);
|
|
16
|
+
}
|
|
17
|
+
getPothosInput() {
|
|
18
|
+
return this.config.name;
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
const n = (e$2) => new t(e$2);
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export { n, t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "zod";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "zod";
|
|
@@ -1,120 +1,120 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_contracts9 from "@lssm/lib.contracts";
|
|
2
|
+
import * as _lssm_lib_schema281 from "@lssm/lib.schema";
|
|
3
3
|
|
|
4
4
|
//#region src/query/query.contracts.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Create a data query.
|
|
7
7
|
*/
|
|
8
|
-
declare const CreateQueryContract:
|
|
8
|
+
declare const CreateQueryContract: _lssm_lib_contracts9.ContractSpec<_lssm_lib_schema281.SchemaModel<{
|
|
9
9
|
name: {
|
|
10
|
-
type:
|
|
10
|
+
type: _lssm_lib_schema281.FieldType<string, string>;
|
|
11
11
|
isOptional: false;
|
|
12
12
|
};
|
|
13
13
|
description: {
|
|
14
|
-
type:
|
|
14
|
+
type: _lssm_lib_schema281.FieldType<string, string>;
|
|
15
15
|
isOptional: true;
|
|
16
16
|
};
|
|
17
17
|
type: {
|
|
18
|
-
type:
|
|
18
|
+
type: _lssm_lib_schema281.EnumType<[string, string, string, string]>;
|
|
19
19
|
isOptional: false;
|
|
20
20
|
};
|
|
21
21
|
definition: {
|
|
22
|
-
type:
|
|
22
|
+
type: _lssm_lib_schema281.FieldType<unknown, unknown>;
|
|
23
23
|
isOptional: false;
|
|
24
24
|
};
|
|
25
25
|
sql: {
|
|
26
|
-
type:
|
|
26
|
+
type: _lssm_lib_schema281.FieldType<string, string>;
|
|
27
27
|
isOptional: true;
|
|
28
28
|
};
|
|
29
29
|
metricIds: {
|
|
30
|
-
type:
|
|
30
|
+
type: _lssm_lib_schema281.FieldType<string, string>;
|
|
31
31
|
isArray: true;
|
|
32
32
|
isOptional: true;
|
|
33
33
|
};
|
|
34
34
|
cacheTtlSeconds: {
|
|
35
|
-
type:
|
|
35
|
+
type: _lssm_lib_schema281.FieldType<number, number>;
|
|
36
36
|
isOptional: true;
|
|
37
37
|
};
|
|
38
38
|
isShared: {
|
|
39
|
-
type:
|
|
39
|
+
type: _lssm_lib_schema281.FieldType<boolean, boolean>;
|
|
40
40
|
isOptional: true;
|
|
41
41
|
};
|
|
42
|
-
}>,
|
|
42
|
+
}>, _lssm_lib_schema281.SchemaModel<{
|
|
43
43
|
id: {
|
|
44
|
-
type:
|
|
44
|
+
type: _lssm_lib_schema281.FieldType<string, string>;
|
|
45
45
|
isOptional: false;
|
|
46
46
|
};
|
|
47
47
|
name: {
|
|
48
|
-
type:
|
|
48
|
+
type: _lssm_lib_schema281.FieldType<string, string>;
|
|
49
49
|
isOptional: false;
|
|
50
50
|
};
|
|
51
51
|
description: {
|
|
52
|
-
type:
|
|
52
|
+
type: _lssm_lib_schema281.FieldType<string, string>;
|
|
53
53
|
isOptional: true;
|
|
54
54
|
};
|
|
55
55
|
type: {
|
|
56
|
-
type:
|
|
56
|
+
type: _lssm_lib_schema281.EnumType<[string, string, string, string]>;
|
|
57
57
|
isOptional: false;
|
|
58
58
|
};
|
|
59
59
|
definition: {
|
|
60
|
-
type:
|
|
60
|
+
type: _lssm_lib_schema281.FieldType<unknown, unknown>;
|
|
61
61
|
isOptional: false;
|
|
62
62
|
};
|
|
63
63
|
sql: {
|
|
64
|
-
type:
|
|
64
|
+
type: _lssm_lib_schema281.FieldType<string, string>;
|
|
65
65
|
isOptional: true;
|
|
66
66
|
};
|
|
67
67
|
cacheTtlSeconds: {
|
|
68
|
-
type:
|
|
68
|
+
type: _lssm_lib_schema281.FieldType<number, number>;
|
|
69
69
|
isOptional: false;
|
|
70
70
|
};
|
|
71
71
|
isShared: {
|
|
72
|
-
type:
|
|
72
|
+
type: _lssm_lib_schema281.FieldType<boolean, boolean>;
|
|
73
73
|
isOptional: false;
|
|
74
74
|
};
|
|
75
75
|
createdAt: {
|
|
76
|
-
type:
|
|
76
|
+
type: _lssm_lib_schema281.FieldType<Date, string>;
|
|
77
77
|
isOptional: false;
|
|
78
78
|
};
|
|
79
79
|
}>, {
|
|
80
80
|
name: string;
|
|
81
81
|
version: number;
|
|
82
82
|
when: string;
|
|
83
|
-
payload:
|
|
83
|
+
payload: _lssm_lib_schema281.SchemaModel<{
|
|
84
84
|
id: {
|
|
85
|
-
type:
|
|
85
|
+
type: _lssm_lib_schema281.FieldType<string, string>;
|
|
86
86
|
isOptional: false;
|
|
87
87
|
};
|
|
88
88
|
name: {
|
|
89
|
-
type:
|
|
89
|
+
type: _lssm_lib_schema281.FieldType<string, string>;
|
|
90
90
|
isOptional: false;
|
|
91
91
|
};
|
|
92
92
|
description: {
|
|
93
|
-
type:
|
|
93
|
+
type: _lssm_lib_schema281.FieldType<string, string>;
|
|
94
94
|
isOptional: true;
|
|
95
95
|
};
|
|
96
96
|
type: {
|
|
97
|
-
type:
|
|
97
|
+
type: _lssm_lib_schema281.EnumType<[string, string, string, string]>;
|
|
98
98
|
isOptional: false;
|
|
99
99
|
};
|
|
100
100
|
definition: {
|
|
101
|
-
type:
|
|
101
|
+
type: _lssm_lib_schema281.FieldType<unknown, unknown>;
|
|
102
102
|
isOptional: false;
|
|
103
103
|
};
|
|
104
104
|
sql: {
|
|
105
|
-
type:
|
|
105
|
+
type: _lssm_lib_schema281.FieldType<string, string>;
|
|
106
106
|
isOptional: true;
|
|
107
107
|
};
|
|
108
108
|
cacheTtlSeconds: {
|
|
109
|
-
type:
|
|
109
|
+
type: _lssm_lib_schema281.FieldType<number, number>;
|
|
110
110
|
isOptional: false;
|
|
111
111
|
};
|
|
112
112
|
isShared: {
|
|
113
|
-
type:
|
|
113
|
+
type: _lssm_lib_schema281.FieldType<boolean, boolean>;
|
|
114
114
|
isOptional: false;
|
|
115
115
|
};
|
|
116
116
|
createdAt: {
|
|
117
|
-
type:
|
|
117
|
+
type: _lssm_lib_schema281.FieldType<Date, string>;
|
|
118
118
|
isOptional: false;
|
|
119
119
|
};
|
|
120
120
|
}>;
|
|
@@ -122,54 +122,54 @@ declare const CreateQueryContract: _lssm_lib_contracts0.ContractSpec<_lssm_lib_s
|
|
|
122
122
|
/**
|
|
123
123
|
* Execute a data query.
|
|
124
124
|
*/
|
|
125
|
-
declare const ExecuteQueryContract:
|
|
125
|
+
declare const ExecuteQueryContract: _lssm_lib_contracts9.ContractSpec<_lssm_lib_schema281.SchemaModel<{
|
|
126
126
|
queryId: {
|
|
127
|
-
type:
|
|
127
|
+
type: _lssm_lib_schema281.FieldType<string, string>;
|
|
128
128
|
isOptional: false;
|
|
129
129
|
};
|
|
130
130
|
parameters: {
|
|
131
|
-
type:
|
|
131
|
+
type: _lssm_lib_schema281.FieldType<unknown, unknown>;
|
|
132
132
|
isOptional: true;
|
|
133
133
|
};
|
|
134
134
|
dateRange: {
|
|
135
|
-
type:
|
|
135
|
+
type: _lssm_lib_schema281.FieldType<unknown, unknown>;
|
|
136
136
|
isOptional: true;
|
|
137
137
|
};
|
|
138
138
|
filters: {
|
|
139
|
-
type:
|
|
139
|
+
type: _lssm_lib_schema281.FieldType<unknown, unknown>;
|
|
140
140
|
isOptional: true;
|
|
141
141
|
};
|
|
142
142
|
forceRefresh: {
|
|
143
|
-
type:
|
|
143
|
+
type: _lssm_lib_schema281.FieldType<boolean, boolean>;
|
|
144
144
|
isOptional: true;
|
|
145
145
|
};
|
|
146
|
-
}>,
|
|
146
|
+
}>, _lssm_lib_schema281.SchemaModel<{
|
|
147
147
|
queryId: {
|
|
148
|
-
type:
|
|
148
|
+
type: _lssm_lib_schema281.FieldType<string, string>;
|
|
149
149
|
isOptional: false;
|
|
150
150
|
};
|
|
151
151
|
data: {
|
|
152
|
-
type:
|
|
152
|
+
type: _lssm_lib_schema281.FieldType<unknown, unknown>;
|
|
153
153
|
isOptional: false;
|
|
154
154
|
};
|
|
155
155
|
columns: {
|
|
156
|
-
type:
|
|
156
|
+
type: _lssm_lib_schema281.FieldType<unknown, unknown>;
|
|
157
157
|
isOptional: false;
|
|
158
158
|
};
|
|
159
159
|
rowCount: {
|
|
160
|
-
type:
|
|
160
|
+
type: _lssm_lib_schema281.FieldType<number, number>;
|
|
161
161
|
isOptional: false;
|
|
162
162
|
};
|
|
163
163
|
executionTimeMs: {
|
|
164
|
-
type:
|
|
164
|
+
type: _lssm_lib_schema281.FieldType<number, number>;
|
|
165
165
|
isOptional: false;
|
|
166
166
|
};
|
|
167
167
|
cachedAt: {
|
|
168
|
-
type:
|
|
168
|
+
type: _lssm_lib_schema281.FieldType<Date, string>;
|
|
169
169
|
isOptional: true;
|
|
170
170
|
};
|
|
171
171
|
error: {
|
|
172
|
-
type:
|
|
172
|
+
type: _lssm_lib_schema281.FieldType<string, string>;
|
|
173
173
|
isOptional: true;
|
|
174
174
|
};
|
|
175
175
|
}>, undefined>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import { n, t } from "../libs/contracts/dist/spec.js";
|
|
1
2
|
import { CreateQueryInputModel, ExecuteQueryInputModel, QueryModel, QueryResultModel } from "./query.schema.js";
|
|
2
|
-
import { defineCommand, defineQuery } from "@lssm/lib.contracts/spec";
|
|
3
3
|
|
|
4
4
|
//#region src/query/query.contracts.ts
|
|
5
5
|
const OWNERS = ["@example.analytics-dashboard"];
|
|
6
6
|
/**
|
|
7
7
|
* Create a data query.
|
|
8
8
|
*/
|
|
9
|
-
const CreateQueryContract =
|
|
9
|
+
const CreateQueryContract = t({
|
|
10
10
|
meta: {
|
|
11
11
|
name: "analytics.query.create",
|
|
12
12
|
version: 1,
|
|
@@ -39,7 +39,7 @@ const CreateQueryContract = defineCommand({
|
|
|
39
39
|
/**
|
|
40
40
|
* Execute a data query.
|
|
41
41
|
*/
|
|
42
|
-
const ExecuteQueryContract =
|
|
42
|
+
const ExecuteQueryContract = n({
|
|
43
43
|
meta: {
|
|
44
44
|
name: "analytics.query.execute",
|
|
45
45
|
version: 1,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema0 from "@lssm/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: _lssm_lib_schema0.EnumType<[string, string, string, string]>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { QueryTypeEnum };
|
package/dist/query/query.enum.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r } from "../libs/schema/dist/EnumType.js";
|
|
2
|
+
import "../libs/schema/dist/index.js";
|
|
2
3
|
|
|
3
4
|
//#region src/query/query.enum.ts
|
|
4
5
|
/**
|
|
5
6
|
* Query type enum.
|
|
6
7
|
*/
|
|
7
|
-
const QueryTypeEnum =
|
|
8
|
+
const QueryTypeEnum = r("QueryType", [
|
|
8
9
|
"SQL",
|
|
9
10
|
"METRIC",
|
|
10
11
|
"AGGREGATION",
|
|
@@ -1,140 +1,140 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema170 from "@lssm/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/query/query.schema.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* A data query.
|
|
6
6
|
*/
|
|
7
|
-
declare const QueryModel:
|
|
7
|
+
declare const QueryModel: _lssm_lib_schema170.SchemaModel<{
|
|
8
8
|
id: {
|
|
9
|
-
type:
|
|
9
|
+
type: _lssm_lib_schema170.FieldType<string, string>;
|
|
10
10
|
isOptional: false;
|
|
11
11
|
};
|
|
12
12
|
name: {
|
|
13
|
-
type:
|
|
13
|
+
type: _lssm_lib_schema170.FieldType<string, string>;
|
|
14
14
|
isOptional: false;
|
|
15
15
|
};
|
|
16
16
|
description: {
|
|
17
|
-
type:
|
|
17
|
+
type: _lssm_lib_schema170.FieldType<string, string>;
|
|
18
18
|
isOptional: true;
|
|
19
19
|
};
|
|
20
20
|
type: {
|
|
21
|
-
type:
|
|
21
|
+
type: _lssm_lib_schema170.EnumType<[string, string, string, string]>;
|
|
22
22
|
isOptional: false;
|
|
23
23
|
};
|
|
24
24
|
definition: {
|
|
25
|
-
type:
|
|
25
|
+
type: _lssm_lib_schema170.FieldType<unknown, unknown>;
|
|
26
26
|
isOptional: false;
|
|
27
27
|
};
|
|
28
28
|
sql: {
|
|
29
|
-
type:
|
|
29
|
+
type: _lssm_lib_schema170.FieldType<string, string>;
|
|
30
30
|
isOptional: true;
|
|
31
31
|
};
|
|
32
32
|
cacheTtlSeconds: {
|
|
33
|
-
type:
|
|
33
|
+
type: _lssm_lib_schema170.FieldType<number, number>;
|
|
34
34
|
isOptional: false;
|
|
35
35
|
};
|
|
36
36
|
isShared: {
|
|
37
|
-
type:
|
|
37
|
+
type: _lssm_lib_schema170.FieldType<boolean, boolean>;
|
|
38
38
|
isOptional: false;
|
|
39
39
|
};
|
|
40
40
|
createdAt: {
|
|
41
|
-
type:
|
|
41
|
+
type: _lssm_lib_schema170.FieldType<Date, string>;
|
|
42
42
|
isOptional: false;
|
|
43
43
|
};
|
|
44
44
|
}>;
|
|
45
45
|
/**
|
|
46
46
|
* Query execution result.
|
|
47
47
|
*/
|
|
48
|
-
declare const QueryResultModel:
|
|
48
|
+
declare const QueryResultModel: _lssm_lib_schema170.SchemaModel<{
|
|
49
49
|
queryId: {
|
|
50
|
-
type:
|
|
50
|
+
type: _lssm_lib_schema170.FieldType<string, string>;
|
|
51
51
|
isOptional: false;
|
|
52
52
|
};
|
|
53
53
|
data: {
|
|
54
|
-
type:
|
|
54
|
+
type: _lssm_lib_schema170.FieldType<unknown, unknown>;
|
|
55
55
|
isOptional: false;
|
|
56
56
|
};
|
|
57
57
|
columns: {
|
|
58
|
-
type:
|
|
58
|
+
type: _lssm_lib_schema170.FieldType<unknown, unknown>;
|
|
59
59
|
isOptional: false;
|
|
60
60
|
};
|
|
61
61
|
rowCount: {
|
|
62
|
-
type:
|
|
62
|
+
type: _lssm_lib_schema170.FieldType<number, number>;
|
|
63
63
|
isOptional: false;
|
|
64
64
|
};
|
|
65
65
|
executionTimeMs: {
|
|
66
|
-
type:
|
|
66
|
+
type: _lssm_lib_schema170.FieldType<number, number>;
|
|
67
67
|
isOptional: false;
|
|
68
68
|
};
|
|
69
69
|
cachedAt: {
|
|
70
|
-
type:
|
|
70
|
+
type: _lssm_lib_schema170.FieldType<Date, string>;
|
|
71
71
|
isOptional: true;
|
|
72
72
|
};
|
|
73
73
|
error: {
|
|
74
|
-
type:
|
|
74
|
+
type: _lssm_lib_schema170.FieldType<string, string>;
|
|
75
75
|
isOptional: true;
|
|
76
76
|
};
|
|
77
77
|
}>;
|
|
78
78
|
/**
|
|
79
79
|
* Input for creating a query.
|
|
80
80
|
*/
|
|
81
|
-
declare const CreateQueryInputModel:
|
|
81
|
+
declare const CreateQueryInputModel: _lssm_lib_schema170.SchemaModel<{
|
|
82
82
|
name: {
|
|
83
|
-
type:
|
|
83
|
+
type: _lssm_lib_schema170.FieldType<string, string>;
|
|
84
84
|
isOptional: false;
|
|
85
85
|
};
|
|
86
86
|
description: {
|
|
87
|
-
type:
|
|
87
|
+
type: _lssm_lib_schema170.FieldType<string, string>;
|
|
88
88
|
isOptional: true;
|
|
89
89
|
};
|
|
90
90
|
type: {
|
|
91
|
-
type:
|
|
91
|
+
type: _lssm_lib_schema170.EnumType<[string, string, string, string]>;
|
|
92
92
|
isOptional: false;
|
|
93
93
|
};
|
|
94
94
|
definition: {
|
|
95
|
-
type:
|
|
95
|
+
type: _lssm_lib_schema170.FieldType<unknown, unknown>;
|
|
96
96
|
isOptional: false;
|
|
97
97
|
};
|
|
98
98
|
sql: {
|
|
99
|
-
type:
|
|
99
|
+
type: _lssm_lib_schema170.FieldType<string, string>;
|
|
100
100
|
isOptional: true;
|
|
101
101
|
};
|
|
102
102
|
metricIds: {
|
|
103
|
-
type:
|
|
103
|
+
type: _lssm_lib_schema170.FieldType<string, string>;
|
|
104
104
|
isArray: true;
|
|
105
105
|
isOptional: true;
|
|
106
106
|
};
|
|
107
107
|
cacheTtlSeconds: {
|
|
108
|
-
type:
|
|
108
|
+
type: _lssm_lib_schema170.FieldType<number, number>;
|
|
109
109
|
isOptional: true;
|
|
110
110
|
};
|
|
111
111
|
isShared: {
|
|
112
|
-
type:
|
|
112
|
+
type: _lssm_lib_schema170.FieldType<boolean, boolean>;
|
|
113
113
|
isOptional: true;
|
|
114
114
|
};
|
|
115
115
|
}>;
|
|
116
116
|
/**
|
|
117
117
|
* Input for executing a query.
|
|
118
118
|
*/
|
|
119
|
-
declare const ExecuteQueryInputModel:
|
|
119
|
+
declare const ExecuteQueryInputModel: _lssm_lib_schema170.SchemaModel<{
|
|
120
120
|
queryId: {
|
|
121
|
-
type:
|
|
121
|
+
type: _lssm_lib_schema170.FieldType<string, string>;
|
|
122
122
|
isOptional: false;
|
|
123
123
|
};
|
|
124
124
|
parameters: {
|
|
125
|
-
type:
|
|
125
|
+
type: _lssm_lib_schema170.FieldType<unknown, unknown>;
|
|
126
126
|
isOptional: true;
|
|
127
127
|
};
|
|
128
128
|
dateRange: {
|
|
129
|
-
type:
|
|
129
|
+
type: _lssm_lib_schema170.FieldType<unknown, unknown>;
|
|
130
130
|
isOptional: true;
|
|
131
131
|
};
|
|
132
132
|
filters: {
|
|
133
|
-
type:
|
|
133
|
+
type: _lssm_lib_schema170.FieldType<unknown, unknown>;
|
|
134
134
|
isOptional: true;
|
|
135
135
|
};
|
|
136
136
|
forceRefresh: {
|
|
137
|
-
type:
|
|
137
|
+
type: _lssm_lib_schema170.FieldType<boolean, boolean>;
|
|
138
138
|
isOptional: true;
|
|
139
139
|
};
|
|
140
140
|
}>;
|
|
@@ -1,23 +1,25 @@
|
|
|
1
|
+
import { l } from "../libs/schema/dist/ScalarTypeEnum.js";
|
|
2
|
+
import { n } from "../libs/schema/dist/SchemaModel.js";
|
|
3
|
+
import "../libs/schema/dist/index.js";
|
|
1
4
|
import { QueryTypeEnum } from "./query.enum.js";
|
|
2
|
-
import { ScalarTypeEnum, defineSchemaModel } from "@lssm/lib.schema";
|
|
3
5
|
|
|
4
6
|
//#region src/query/query.schema.ts
|
|
5
7
|
/**
|
|
6
8
|
* A data query.
|
|
7
9
|
*/
|
|
8
|
-
const QueryModel =
|
|
10
|
+
const QueryModel = n({
|
|
9
11
|
name: "QueryModel",
|
|
10
12
|
fields: {
|
|
11
13
|
id: {
|
|
12
|
-
type:
|
|
14
|
+
type: l.String_unsecure(),
|
|
13
15
|
isOptional: false
|
|
14
16
|
},
|
|
15
17
|
name: {
|
|
16
|
-
type:
|
|
18
|
+
type: l.String_unsecure(),
|
|
17
19
|
isOptional: false
|
|
18
20
|
},
|
|
19
21
|
description: {
|
|
20
|
-
type:
|
|
22
|
+
type: l.String_unsecure(),
|
|
21
23
|
isOptional: true
|
|
22
24
|
},
|
|
23
25
|
type: {
|
|
@@ -25,23 +27,23 @@ const QueryModel = defineSchemaModel({
|
|
|
25
27
|
isOptional: false
|
|
26
28
|
},
|
|
27
29
|
definition: {
|
|
28
|
-
type:
|
|
30
|
+
type: l.JSON(),
|
|
29
31
|
isOptional: false
|
|
30
32
|
},
|
|
31
33
|
sql: {
|
|
32
|
-
type:
|
|
34
|
+
type: l.String_unsecure(),
|
|
33
35
|
isOptional: true
|
|
34
36
|
},
|
|
35
37
|
cacheTtlSeconds: {
|
|
36
|
-
type:
|
|
38
|
+
type: l.Int_unsecure(),
|
|
37
39
|
isOptional: false
|
|
38
40
|
},
|
|
39
41
|
isShared: {
|
|
40
|
-
type:
|
|
42
|
+
type: l.Boolean(),
|
|
41
43
|
isOptional: false
|
|
42
44
|
},
|
|
43
45
|
createdAt: {
|
|
44
|
-
type:
|
|
46
|
+
type: l.DateTime(),
|
|
45
47
|
isOptional: false
|
|
46
48
|
}
|
|
47
49
|
}
|
|
@@ -49,35 +51,35 @@ const QueryModel = defineSchemaModel({
|
|
|
49
51
|
/**
|
|
50
52
|
* Query execution result.
|
|
51
53
|
*/
|
|
52
|
-
const QueryResultModel =
|
|
54
|
+
const QueryResultModel = n({
|
|
53
55
|
name: "QueryResultModel",
|
|
54
56
|
fields: {
|
|
55
57
|
queryId: {
|
|
56
|
-
type:
|
|
58
|
+
type: l.String_unsecure(),
|
|
57
59
|
isOptional: false
|
|
58
60
|
},
|
|
59
61
|
data: {
|
|
60
|
-
type:
|
|
62
|
+
type: l.JSON(),
|
|
61
63
|
isOptional: false
|
|
62
64
|
},
|
|
63
65
|
columns: {
|
|
64
|
-
type:
|
|
66
|
+
type: l.JSON(),
|
|
65
67
|
isOptional: false
|
|
66
68
|
},
|
|
67
69
|
rowCount: {
|
|
68
|
-
type:
|
|
70
|
+
type: l.Int_unsecure(),
|
|
69
71
|
isOptional: false
|
|
70
72
|
},
|
|
71
73
|
executionTimeMs: {
|
|
72
|
-
type:
|
|
74
|
+
type: l.Int_unsecure(),
|
|
73
75
|
isOptional: false
|
|
74
76
|
},
|
|
75
77
|
cachedAt: {
|
|
76
|
-
type:
|
|
78
|
+
type: l.DateTime(),
|
|
77
79
|
isOptional: true
|
|
78
80
|
},
|
|
79
81
|
error: {
|
|
80
|
-
type:
|
|
82
|
+
type: l.String_unsecure(),
|
|
81
83
|
isOptional: true
|
|
82
84
|
}
|
|
83
85
|
}
|
|
@@ -85,15 +87,15 @@ const QueryResultModel = defineSchemaModel({
|
|
|
85
87
|
/**
|
|
86
88
|
* Input for creating a query.
|
|
87
89
|
*/
|
|
88
|
-
const CreateQueryInputModel =
|
|
90
|
+
const CreateQueryInputModel = n({
|
|
89
91
|
name: "CreateQueryInput",
|
|
90
92
|
fields: {
|
|
91
93
|
name: {
|
|
92
|
-
type:
|
|
94
|
+
type: l.NonEmptyString(),
|
|
93
95
|
isOptional: false
|
|
94
96
|
},
|
|
95
97
|
description: {
|
|
96
|
-
type:
|
|
98
|
+
type: l.String_unsecure(),
|
|
97
99
|
isOptional: true
|
|
98
100
|
},
|
|
99
101
|
type: {
|
|
@@ -101,24 +103,24 @@ const CreateQueryInputModel = defineSchemaModel({
|
|
|
101
103
|
isOptional: false
|
|
102
104
|
},
|
|
103
105
|
definition: {
|
|
104
|
-
type:
|
|
106
|
+
type: l.JSON(),
|
|
105
107
|
isOptional: false
|
|
106
108
|
},
|
|
107
109
|
sql: {
|
|
108
|
-
type:
|
|
110
|
+
type: l.String_unsecure(),
|
|
109
111
|
isOptional: true
|
|
110
112
|
},
|
|
111
113
|
metricIds: {
|
|
112
|
-
type:
|
|
114
|
+
type: l.String_unsecure(),
|
|
113
115
|
isArray: true,
|
|
114
116
|
isOptional: true
|
|
115
117
|
},
|
|
116
118
|
cacheTtlSeconds: {
|
|
117
|
-
type:
|
|
119
|
+
type: l.Int_unsecure(),
|
|
118
120
|
isOptional: true
|
|
119
121
|
},
|
|
120
122
|
isShared: {
|
|
121
|
-
type:
|
|
123
|
+
type: l.Boolean(),
|
|
122
124
|
isOptional: true
|
|
123
125
|
}
|
|
124
126
|
}
|
|
@@ -126,27 +128,27 @@ const CreateQueryInputModel = defineSchemaModel({
|
|
|
126
128
|
/**
|
|
127
129
|
* Input for executing a query.
|
|
128
130
|
*/
|
|
129
|
-
const ExecuteQueryInputModel =
|
|
131
|
+
const ExecuteQueryInputModel = n({
|
|
130
132
|
name: "ExecuteQueryInput",
|
|
131
133
|
fields: {
|
|
132
134
|
queryId: {
|
|
133
|
-
type:
|
|
135
|
+
type: l.String_unsecure(),
|
|
134
136
|
isOptional: false
|
|
135
137
|
},
|
|
136
138
|
parameters: {
|
|
137
|
-
type:
|
|
139
|
+
type: l.JSON(),
|
|
138
140
|
isOptional: true
|
|
139
141
|
},
|
|
140
142
|
dateRange: {
|
|
141
|
-
type:
|
|
143
|
+
type: l.JSON(),
|
|
142
144
|
isOptional: true
|
|
143
145
|
},
|
|
144
146
|
filters: {
|
|
145
|
-
type:
|
|
147
|
+
type: l.JSON(),
|
|
146
148
|
isOptional: true
|
|
147
149
|
},
|
|
148
150
|
forceRefresh: {
|
|
149
|
-
type:
|
|
151
|
+
type: l.Boolean(),
|
|
150
152
|
isOptional: true
|
|
151
153
|
}
|
|
152
154
|
}
|