@lssm/example.analytics-dashboard 0.0.0-canary-20251217063201 → 0.0.0-canary-20251217072406

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 (94) 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 +4 -4
  5. package/dist/dashboard/dashboard.schema.d.ts +79 -79
  6. package/dist/dashboard/dashboard.schema.js +43 -43
  7. package/dist/docs/analytics-dashboard.docblock.js +2 -2
  8. package/dist/events.d.ts +40 -40
  9. package/dist/events.js +25 -25
  10. package/dist/libs/contracts/dist/capabilities/openbanking.js +53 -49
  11. package/dist/libs/contracts/dist/client/index.js +1 -1
  12. package/dist/libs/contracts/dist/client/react/index.js +1 -1
  13. package/dist/libs/contracts/dist/contract-registry/index.js +1 -1
  14. package/dist/libs/contracts/dist/contract-registry/schemas.js +52 -49
  15. package/dist/libs/contracts/dist/docs/PUBLISHING.docblock.js +11 -86
  16. package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +11 -360
  17. package/dist/libs/contracts/dist/docs/index.js +2 -2
  18. package/dist/libs/contracts/dist/docs/presentations.js +48 -44
  19. package/dist/libs/contracts/dist/docs/registry.js +27 -25
  20. package/dist/libs/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +11 -393
  21. package/dist/libs/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +11 -78
  22. package/dist/libs/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +11 -150
  23. package/dist/libs/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +11 -96
  24. package/dist/libs/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +10 -10
  25. package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +15 -15
  26. package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +12 -12
  27. package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +11 -223
  28. package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +44 -44
  29. package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +30 -14
  30. package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +10 -10
  31. package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +13 -274
  32. package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +41 -15
  33. package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +15 -15
  34. package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +14 -14
  35. package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +16 -28
  36. package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +60 -15
  37. package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +13 -13
  38. package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +31 -48
  39. package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +40 -15
  40. package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +14 -14
  41. package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +22 -22
  42. package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +12 -12
  43. package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +22 -22
  44. package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +11 -11
  45. package/dist/libs/contracts/dist/events.js +4 -3
  46. package/dist/libs/contracts/dist/index.js +14 -14
  47. package/dist/libs/contracts/dist/integrations/contracts.js +205 -199
  48. package/dist/libs/contracts/dist/integrations/index.js +5 -5
  49. package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +133 -130
  50. package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +95 -93
  51. package/dist/libs/contracts/dist/integrations/openbanking/contracts/index.js +3 -3
  52. package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +120 -118
  53. package/dist/libs/contracts/dist/integrations/openbanking/models.js +122 -120
  54. package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js +9 -20
  55. package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js +25 -25
  56. package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js +36 -36
  57. package/dist/libs/contracts/dist/integrations/providers/gmail.js +40 -40
  58. package/dist/libs/contracts/dist/integrations/providers/google-calendar.js +31 -31
  59. package/dist/libs/contracts/dist/integrations/providers/mistral.js +31 -31
  60. package/dist/libs/contracts/dist/integrations/providers/postmark.js +31 -31
  61. package/dist/libs/contracts/dist/integrations/providers/powens.js +51 -51
  62. package/dist/libs/contracts/dist/integrations/providers/qdrant.js +31 -31
  63. package/dist/libs/contracts/dist/integrations/providers/stripe.js +35 -35
  64. package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js +28 -28
  65. package/dist/libs/contracts/dist/jsonschema.js +1 -1
  66. package/dist/libs/contracts/dist/knowledge/contracts.js +170 -163
  67. package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js +17 -17
  68. package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js +17 -17
  69. package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js +19 -19
  70. package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js +17 -17
  71. package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js +17 -17
  72. package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js +17 -17
  73. package/dist/libs/contracts/dist/llm/exporters.js +13 -12
  74. package/dist/libs/contracts/dist/onboarding-base.js +116 -99
  75. package/dist/libs/contracts/dist/ownership.js +18 -33
  76. package/dist/libs/contracts/dist/presentations.js +1 -1
  77. package/dist/libs/contracts/dist/presentations.v2.js +6 -2
  78. package/dist/libs/contracts/dist/regenerator/service.js +5 -0
  79. package/dist/libs/contracts/dist/registry.js +1 -1
  80. package/dist/libs/contracts/dist/schema/dist/FieldType.js +24 -14
  81. package/dist/libs/contracts/dist/schema/dist/ScalarTypeEnum.js +180 -166
  82. package/dist/libs/contracts/dist/schema/dist/SchemaModel.js +20 -9
  83. package/dist/libs/contracts/dist/server/mcp/registerPrompts.js +1 -1
  84. package/dist/libs/contracts/dist/spec.js +22 -13
  85. package/dist/libs/schema/dist/EnumType.js +25 -9
  86. package/dist/libs/schema/dist/FieldType.js +24 -14
  87. package/dist/libs/schema/dist/ScalarTypeEnum.js +180 -166
  88. package/dist/libs/schema/dist/SchemaModel.js +25 -10
  89. package/dist/libs/schema/dist/index.js +4 -4
  90. package/dist/query/query.contracts.d.ts +44 -44
  91. package/dist/query/query.contracts.js +3 -3
  92. package/dist/query/query.enum.js +2 -2
  93. package/dist/query/query.schema.js +33 -33
  94. package/package.json +10 -10
@@ -1,120 +1,120 @@
1
1
  import * as _lssm_lib_contracts9 from "@lssm/lib.contracts";
2
- import * as _lssm_lib_schema169 from "@lssm/lib.schema";
2
+ import * as _lssm_lib_schema247 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_contracts9.ContractSpec<_lssm_lib_schema169.SchemaModel<{
8
+ declare const CreateQueryContract: _lssm_lib_contracts9.ContractSpec<_lssm_lib_schema247.SchemaModel<{
9
9
  name: {
10
- type: _lssm_lib_schema169.FieldType<string, string>;
10
+ type: _lssm_lib_schema247.FieldType<string, string>;
11
11
  isOptional: false;
12
12
  };
13
13
  description: {
14
- type: _lssm_lib_schema169.FieldType<string, string>;
14
+ type: _lssm_lib_schema247.FieldType<string, string>;
15
15
  isOptional: true;
16
16
  };
17
17
  type: {
18
- type: _lssm_lib_schema169.EnumType<[string, string, string, string]>;
18
+ type: _lssm_lib_schema247.EnumType<[string, string, string, string]>;
19
19
  isOptional: false;
20
20
  };
21
21
  definition: {
22
- type: _lssm_lib_schema169.FieldType<unknown, unknown>;
22
+ type: _lssm_lib_schema247.FieldType<unknown, unknown>;
23
23
  isOptional: false;
24
24
  };
25
25
  sql: {
26
- type: _lssm_lib_schema169.FieldType<string, string>;
26
+ type: _lssm_lib_schema247.FieldType<string, string>;
27
27
  isOptional: true;
28
28
  };
29
29
  metricIds: {
30
- type: _lssm_lib_schema169.FieldType<string, string>;
30
+ type: _lssm_lib_schema247.FieldType<string, string>;
31
31
  isArray: true;
32
32
  isOptional: true;
33
33
  };
34
34
  cacheTtlSeconds: {
35
- type: _lssm_lib_schema169.FieldType<number, number>;
35
+ type: _lssm_lib_schema247.FieldType<number, number>;
36
36
  isOptional: true;
37
37
  };
38
38
  isShared: {
39
- type: _lssm_lib_schema169.FieldType<boolean, boolean>;
39
+ type: _lssm_lib_schema247.FieldType<boolean, boolean>;
40
40
  isOptional: true;
41
41
  };
42
- }>, _lssm_lib_schema169.SchemaModel<{
42
+ }>, _lssm_lib_schema247.SchemaModel<{
43
43
  id: {
44
- type: _lssm_lib_schema169.FieldType<string, string>;
44
+ type: _lssm_lib_schema247.FieldType<string, string>;
45
45
  isOptional: false;
46
46
  };
47
47
  name: {
48
- type: _lssm_lib_schema169.FieldType<string, string>;
48
+ type: _lssm_lib_schema247.FieldType<string, string>;
49
49
  isOptional: false;
50
50
  };
51
51
  description: {
52
- type: _lssm_lib_schema169.FieldType<string, string>;
52
+ type: _lssm_lib_schema247.FieldType<string, string>;
53
53
  isOptional: true;
54
54
  };
55
55
  type: {
56
- type: _lssm_lib_schema169.EnumType<[string, string, string, string]>;
56
+ type: _lssm_lib_schema247.EnumType<[string, string, string, string]>;
57
57
  isOptional: false;
58
58
  };
59
59
  definition: {
60
- type: _lssm_lib_schema169.FieldType<unknown, unknown>;
60
+ type: _lssm_lib_schema247.FieldType<unknown, unknown>;
61
61
  isOptional: false;
62
62
  };
63
63
  sql: {
64
- type: _lssm_lib_schema169.FieldType<string, string>;
64
+ type: _lssm_lib_schema247.FieldType<string, string>;
65
65
  isOptional: true;
66
66
  };
67
67
  cacheTtlSeconds: {
68
- type: _lssm_lib_schema169.FieldType<number, number>;
68
+ type: _lssm_lib_schema247.FieldType<number, number>;
69
69
  isOptional: false;
70
70
  };
71
71
  isShared: {
72
- type: _lssm_lib_schema169.FieldType<boolean, boolean>;
72
+ type: _lssm_lib_schema247.FieldType<boolean, boolean>;
73
73
  isOptional: false;
74
74
  };
75
75
  createdAt: {
76
- type: _lssm_lib_schema169.FieldType<Date, string>;
76
+ type: _lssm_lib_schema247.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_schema169.SchemaModel<{
83
+ payload: _lssm_lib_schema247.SchemaModel<{
84
84
  id: {
85
- type: _lssm_lib_schema169.FieldType<string, string>;
85
+ type: _lssm_lib_schema247.FieldType<string, string>;
86
86
  isOptional: false;
87
87
  };
88
88
  name: {
89
- type: _lssm_lib_schema169.FieldType<string, string>;
89
+ type: _lssm_lib_schema247.FieldType<string, string>;
90
90
  isOptional: false;
91
91
  };
92
92
  description: {
93
- type: _lssm_lib_schema169.FieldType<string, string>;
93
+ type: _lssm_lib_schema247.FieldType<string, string>;
94
94
  isOptional: true;
95
95
  };
96
96
  type: {
97
- type: _lssm_lib_schema169.EnumType<[string, string, string, string]>;
97
+ type: _lssm_lib_schema247.EnumType<[string, string, string, string]>;
98
98
  isOptional: false;
99
99
  };
100
100
  definition: {
101
- type: _lssm_lib_schema169.FieldType<unknown, unknown>;
101
+ type: _lssm_lib_schema247.FieldType<unknown, unknown>;
102
102
  isOptional: false;
103
103
  };
104
104
  sql: {
105
- type: _lssm_lib_schema169.FieldType<string, string>;
105
+ type: _lssm_lib_schema247.FieldType<string, string>;
106
106
  isOptional: true;
107
107
  };
108
108
  cacheTtlSeconds: {
109
- type: _lssm_lib_schema169.FieldType<number, number>;
109
+ type: _lssm_lib_schema247.FieldType<number, number>;
110
110
  isOptional: false;
111
111
  };
112
112
  isShared: {
113
- type: _lssm_lib_schema169.FieldType<boolean, boolean>;
113
+ type: _lssm_lib_schema247.FieldType<boolean, boolean>;
114
114
  isOptional: false;
115
115
  };
116
116
  createdAt: {
117
- type: _lssm_lib_schema169.FieldType<Date, string>;
117
+ type: _lssm_lib_schema247.FieldType<Date, string>;
118
118
  isOptional: false;
119
119
  };
120
120
  }>;
@@ -122,54 +122,54 @@ declare const CreateQueryContract: _lssm_lib_contracts9.ContractSpec<_lssm_lib_s
122
122
  /**
123
123
  * Execute a data query.
124
124
  */
125
- declare const ExecuteQueryContract: _lssm_lib_contracts9.ContractSpec<_lssm_lib_schema169.SchemaModel<{
125
+ declare const ExecuteQueryContract: _lssm_lib_contracts9.ContractSpec<_lssm_lib_schema247.SchemaModel<{
126
126
  queryId: {
127
- type: _lssm_lib_schema169.FieldType<string, string>;
127
+ type: _lssm_lib_schema247.FieldType<string, string>;
128
128
  isOptional: false;
129
129
  };
130
130
  parameters: {
131
- type: _lssm_lib_schema169.FieldType<unknown, unknown>;
131
+ type: _lssm_lib_schema247.FieldType<unknown, unknown>;
132
132
  isOptional: true;
133
133
  };
134
134
  dateRange: {
135
- type: _lssm_lib_schema169.FieldType<unknown, unknown>;
135
+ type: _lssm_lib_schema247.FieldType<unknown, unknown>;
136
136
  isOptional: true;
137
137
  };
138
138
  filters: {
139
- type: _lssm_lib_schema169.FieldType<unknown, unknown>;
139
+ type: _lssm_lib_schema247.FieldType<unknown, unknown>;
140
140
  isOptional: true;
141
141
  };
142
142
  forceRefresh: {
143
- type: _lssm_lib_schema169.FieldType<boolean, boolean>;
143
+ type: _lssm_lib_schema247.FieldType<boolean, boolean>;
144
144
  isOptional: true;
145
145
  };
146
- }>, _lssm_lib_schema169.SchemaModel<{
146
+ }>, _lssm_lib_schema247.SchemaModel<{
147
147
  queryId: {
148
- type: _lssm_lib_schema169.FieldType<string, string>;
148
+ type: _lssm_lib_schema247.FieldType<string, string>;
149
149
  isOptional: false;
150
150
  };
151
151
  data: {
152
- type: _lssm_lib_schema169.FieldType<unknown, unknown>;
152
+ type: _lssm_lib_schema247.FieldType<unknown, unknown>;
153
153
  isOptional: false;
154
154
  };
155
155
  columns: {
156
- type: _lssm_lib_schema169.FieldType<unknown, unknown>;
156
+ type: _lssm_lib_schema247.FieldType<unknown, unknown>;
157
157
  isOptional: false;
158
158
  };
159
159
  rowCount: {
160
- type: _lssm_lib_schema169.FieldType<number, number>;
160
+ type: _lssm_lib_schema247.FieldType<number, number>;
161
161
  isOptional: false;
162
162
  };
163
163
  executionTimeMs: {
164
- type: _lssm_lib_schema169.FieldType<number, number>;
164
+ type: _lssm_lib_schema247.FieldType<number, number>;
165
165
  isOptional: false;
166
166
  };
167
167
  cachedAt: {
168
- type: _lssm_lib_schema169.FieldType<Date, string>;
168
+ type: _lssm_lib_schema247.FieldType<Date, string>;
169
169
  isOptional: true;
170
170
  };
171
171
  error: {
172
- type: _lssm_lib_schema169.FieldType<string, string>;
172
+ type: _lssm_lib_schema247.FieldType<string, string>;
173
173
  isOptional: true;
174
174
  };
175
175
  }>, undefined>;
@@ -1,4 +1,4 @@
1
- import { n, t } from "../libs/contracts/dist/spec.js";
1
+ import { defineCommand, defineQuery } from "../libs/contracts/dist/spec.js";
2
2
  import { CreateQueryInputModel, ExecuteQueryInputModel, QueryModel, QueryResultModel } from "./query.schema.js";
3
3
 
4
4
  //#region src/query/query.contracts.ts
@@ -6,7 +6,7 @@ const OWNERS = ["@example.analytics-dashboard"];
6
6
  /**
7
7
  * Create a data query.
8
8
  */
9
- const CreateQueryContract = t({
9
+ const CreateQueryContract = defineCommand({
10
10
  meta: {
11
11
  name: "analytics.query.create",
12
12
  version: 1,
@@ -39,7 +39,7 @@ const CreateQueryContract = t({
39
39
  /**
40
40
  * Execute a data query.
41
41
  */
42
- const ExecuteQueryContract = n({
42
+ const ExecuteQueryContract = defineQuery({
43
43
  meta: {
44
44
  name: "analytics.query.execute",
45
45
  version: 1,
@@ -1,11 +1,11 @@
1
- import { r } from "../libs/schema/dist/EnumType.js";
1
+ import { defineEnum } from "../libs/schema/dist/EnumType.js";
2
2
  import "../libs/schema/dist/index.js";
3
3
 
4
4
  //#region src/query/query.enum.ts
5
5
  /**
6
6
  * Query type enum.
7
7
  */
8
- const QueryTypeEnum = r("QueryType", [
8
+ const QueryTypeEnum = defineEnum("QueryType", [
9
9
  "SQL",
10
10
  "METRIC",
11
11
  "AGGREGATION",
@@ -1,5 +1,5 @@
1
- import { l } from "../libs/schema/dist/ScalarTypeEnum.js";
2
- import { n } from "../libs/schema/dist/SchemaModel.js";
1
+ import { ScalarTypeEnum } from "../libs/schema/dist/ScalarTypeEnum.js";
2
+ import { defineSchemaModel } from "../libs/schema/dist/SchemaModel.js";
3
3
  import "../libs/schema/dist/index.js";
4
4
  import { QueryTypeEnum } from "./query.enum.js";
5
5
 
@@ -7,19 +7,19 @@ import { QueryTypeEnum } from "./query.enum.js";
7
7
  /**
8
8
  * A data query.
9
9
  */
10
- const QueryModel = n({
10
+ const QueryModel = defineSchemaModel({
11
11
  name: "QueryModel",
12
12
  fields: {
13
13
  id: {
14
- type: l.String_unsecure(),
14
+ type: ScalarTypeEnum.String_unsecure(),
15
15
  isOptional: false
16
16
  },
17
17
  name: {
18
- type: l.String_unsecure(),
18
+ type: ScalarTypeEnum.String_unsecure(),
19
19
  isOptional: false
20
20
  },
21
21
  description: {
22
- type: l.String_unsecure(),
22
+ type: ScalarTypeEnum.String_unsecure(),
23
23
  isOptional: true
24
24
  },
25
25
  type: {
@@ -27,23 +27,23 @@ const QueryModel = n({
27
27
  isOptional: false
28
28
  },
29
29
  definition: {
30
- type: l.JSON(),
30
+ type: ScalarTypeEnum.JSON(),
31
31
  isOptional: false
32
32
  },
33
33
  sql: {
34
- type: l.String_unsecure(),
34
+ type: ScalarTypeEnum.String_unsecure(),
35
35
  isOptional: true
36
36
  },
37
37
  cacheTtlSeconds: {
38
- type: l.Int_unsecure(),
38
+ type: ScalarTypeEnum.Int_unsecure(),
39
39
  isOptional: false
40
40
  },
41
41
  isShared: {
42
- type: l.Boolean(),
42
+ type: ScalarTypeEnum.Boolean(),
43
43
  isOptional: false
44
44
  },
45
45
  createdAt: {
46
- type: l.DateTime(),
46
+ type: ScalarTypeEnum.DateTime(),
47
47
  isOptional: false
48
48
  }
49
49
  }
@@ -51,35 +51,35 @@ const QueryModel = n({
51
51
  /**
52
52
  * Query execution result.
53
53
  */
54
- const QueryResultModel = n({
54
+ const QueryResultModel = defineSchemaModel({
55
55
  name: "QueryResultModel",
56
56
  fields: {
57
57
  queryId: {
58
- type: l.String_unsecure(),
58
+ type: ScalarTypeEnum.String_unsecure(),
59
59
  isOptional: false
60
60
  },
61
61
  data: {
62
- type: l.JSON(),
62
+ type: ScalarTypeEnum.JSON(),
63
63
  isOptional: false
64
64
  },
65
65
  columns: {
66
- type: l.JSON(),
66
+ type: ScalarTypeEnum.JSON(),
67
67
  isOptional: false
68
68
  },
69
69
  rowCount: {
70
- type: l.Int_unsecure(),
70
+ type: ScalarTypeEnum.Int_unsecure(),
71
71
  isOptional: false
72
72
  },
73
73
  executionTimeMs: {
74
- type: l.Int_unsecure(),
74
+ type: ScalarTypeEnum.Int_unsecure(),
75
75
  isOptional: false
76
76
  },
77
77
  cachedAt: {
78
- type: l.DateTime(),
78
+ type: ScalarTypeEnum.DateTime(),
79
79
  isOptional: true
80
80
  },
81
81
  error: {
82
- type: l.String_unsecure(),
82
+ type: ScalarTypeEnum.String_unsecure(),
83
83
  isOptional: true
84
84
  }
85
85
  }
@@ -87,15 +87,15 @@ const QueryResultModel = n({
87
87
  /**
88
88
  * Input for creating a query.
89
89
  */
90
- const CreateQueryInputModel = n({
90
+ const CreateQueryInputModel = defineSchemaModel({
91
91
  name: "CreateQueryInput",
92
92
  fields: {
93
93
  name: {
94
- type: l.NonEmptyString(),
94
+ type: ScalarTypeEnum.NonEmptyString(),
95
95
  isOptional: false
96
96
  },
97
97
  description: {
98
- type: l.String_unsecure(),
98
+ type: ScalarTypeEnum.String_unsecure(),
99
99
  isOptional: true
100
100
  },
101
101
  type: {
@@ -103,24 +103,24 @@ const CreateQueryInputModel = n({
103
103
  isOptional: false
104
104
  },
105
105
  definition: {
106
- type: l.JSON(),
106
+ type: ScalarTypeEnum.JSON(),
107
107
  isOptional: false
108
108
  },
109
109
  sql: {
110
- type: l.String_unsecure(),
110
+ type: ScalarTypeEnum.String_unsecure(),
111
111
  isOptional: true
112
112
  },
113
113
  metricIds: {
114
- type: l.String_unsecure(),
114
+ type: ScalarTypeEnum.String_unsecure(),
115
115
  isArray: true,
116
116
  isOptional: true
117
117
  },
118
118
  cacheTtlSeconds: {
119
- type: l.Int_unsecure(),
119
+ type: ScalarTypeEnum.Int_unsecure(),
120
120
  isOptional: true
121
121
  },
122
122
  isShared: {
123
- type: l.Boolean(),
123
+ type: ScalarTypeEnum.Boolean(),
124
124
  isOptional: true
125
125
  }
126
126
  }
@@ -128,27 +128,27 @@ const CreateQueryInputModel = n({
128
128
  /**
129
129
  * Input for executing a query.
130
130
  */
131
- const ExecuteQueryInputModel = n({
131
+ const ExecuteQueryInputModel = defineSchemaModel({
132
132
  name: "ExecuteQueryInput",
133
133
  fields: {
134
134
  queryId: {
135
- type: l.String_unsecure(),
135
+ type: ScalarTypeEnum.String_unsecure(),
136
136
  isOptional: false
137
137
  },
138
138
  parameters: {
139
- type: l.JSON(),
139
+ type: ScalarTypeEnum.JSON(),
140
140
  isOptional: true
141
141
  },
142
142
  dateRange: {
143
- type: l.JSON(),
143
+ type: ScalarTypeEnum.JSON(),
144
144
  isOptional: true
145
145
  },
146
146
  filters: {
147
- type: l.JSON(),
147
+ type: ScalarTypeEnum.JSON(),
148
148
  isOptional: true
149
149
  },
150
150
  forceRefresh: {
151
- type: l.Boolean(),
151
+ type: ScalarTypeEnum.Boolean(),
152
152
  isOptional: true
153
153
  }
154
154
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lssm/example.analytics-dashboard",
3
- "version": "0.0.0-canary-20251217063201",
3
+ "version": "0.0.0-canary-20251217072406",
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,18 @@
18
18
  "lint:check": "eslint src"
19
19
  },
20
20
  "dependencies": {
21
- "@lssm/lib.schema": "0.0.0-canary-20251217063201",
22
- "@lssm/lib.contracts": "0.0.0-canary-20251217063201",
23
- "@lssm/lib.bus": "0.0.0-canary-20251217063201",
24
- "@lssm/lib.identity-rbac": "0.0.0-canary-20251217063201",
25
- "@lssm/lib.metering": "0.0.0-canary-20251217063201",
26
- "@lssm/lib.jobs": "0.0.0-canary-20251217063201",
27
- "@lssm/module.audit-trail": "0.0.0-canary-20251217063201",
21
+ "@lssm/lib.schema": "0.0.0-canary-20251217072406",
22
+ "@lssm/lib.contracts": "0.0.0-canary-20251217072406",
23
+ "@lssm/lib.bus": "0.0.0-canary-20251217072406",
24
+ "@lssm/lib.identity-rbac": "0.0.0-canary-20251217072406",
25
+ "@lssm/lib.metering": "0.0.0-canary-20251217072406",
26
+ "@lssm/lib.jobs": "0.0.0-canary-20251217072406",
27
+ "@lssm/module.audit-trail": "0.0.0-canary-20251217072406",
28
28
  "zod": "^4.1.13"
29
29
  },
30
30
  "devDependencies": {
31
- "@lssm/tool.typescript": "0.0.0-canary-20251217063201",
32
- "@lssm/tool.tsdown": "0.0.0-canary-20251217063201",
31
+ "@lssm/tool.typescript": "0.0.0-canary-20251217072406",
32
+ "@lssm/tool.tsdown": "0.0.0-canary-20251217072406",
33
33
  "typescript": "^5.9.3"
34
34
  },
35
35
  "exports": {