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