@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,222 @@
1
+ import { t } from "./FieldType.js";
2
+ import * as t$1 from "zod";
3
+ import { Kind } from "graphql";
4
+
5
+ //#region ../../libs/contracts/dist/schema/dist/ScalarTypeEnum.js
6
+ const r = /^[A-Za-z]{2}(?:-[A-Za-z0-9]{2,8})*$/, i = /^(?:UTC|[A-Za-z_]+\/[A-Za-z_]+)$/, a = /^[+]?\d[\d\s().-]{3,}$/, o = /^[A-Z]{3}$/, s = /^[A-Z]{2}$/, c = -180, l = {
7
+ String_unsecure: () => new t({
8
+ name: `String_unsecure`,
9
+ description: `Unvalidated string scalar`,
10
+ zod: t$1.string(),
11
+ parseValue: (e$1) => t$1.string().parse(e$1),
12
+ serialize: (e$1) => String(e$1),
13
+ parseLiteral: (e$1) => {
14
+ if (e$1.kind !== Kind.STRING) throw TypeError(`Invalid literal`);
15
+ return e$1.value;
16
+ },
17
+ jsonSchema: { type: `string` }
18
+ }),
19
+ Int_unsecure: () => new t({
20
+ name: `Int_unsecure`,
21
+ description: `Unvalidated integer scalar`,
22
+ zod: t$1.number().int(),
23
+ parseValue: (e$1) => {
24
+ let n = typeof e$1 == `number` ? e$1 : Number(e$1);
25
+ return t$1.number().int().parse(n);
26
+ },
27
+ serialize: (e$1) => Math.trunc(typeof e$1 == `number` ? e$1 : Number(e$1)),
28
+ parseLiteral: (e$1) => {
29
+ if (e$1.kind !== Kind.INT) throw TypeError(`Invalid literal`);
30
+ return Number(e$1.value);
31
+ },
32
+ jsonSchema: { type: `integer` }
33
+ }),
34
+ Float_unsecure: () => new t({
35
+ name: `Float_unsecure`,
36
+ description: `Unvalidated float scalar`,
37
+ zod: t$1.number(),
38
+ parseValue: (e$1) => {
39
+ let n = typeof e$1 == `number` ? e$1 : Number(e$1);
40
+ return t$1.number().parse(n);
41
+ },
42
+ serialize: (e$1) => Number(e$1),
43
+ parseLiteral: (e$1) => {
44
+ if (e$1.kind !== Kind.FLOAT && e$1.kind !== Kind.INT) throw TypeError(`Invalid literal`);
45
+ return Number(e$1.value);
46
+ },
47
+ jsonSchema: { type: `number` }
48
+ }),
49
+ Boolean: () => new t({
50
+ name: `Boolean`,
51
+ description: `Unvalidated boolean scalar`,
52
+ zod: t$1.boolean(),
53
+ parseValue: (e$1) => t$1.coerce.boolean().parse(e$1),
54
+ serialize: (e$1) => !!e$1,
55
+ parseLiteral: (e$1) => {
56
+ if (e$1.kind !== Kind.BOOLEAN) throw TypeError(`Invalid literal`);
57
+ return e$1.value;
58
+ },
59
+ jsonSchema: { type: `boolean` }
60
+ }),
61
+ ID: () => new t({
62
+ name: `ID`,
63
+ description: `Unvalidated id scalar`,
64
+ zod: t$1.string(),
65
+ parseValue: (e$1) => t$1.string().parse(e$1),
66
+ serialize: (e$1) => String(e$1),
67
+ parseLiteral: (e$1) => {
68
+ if (e$1.kind !== Kind.STRING) throw TypeError(`Invalid literal`);
69
+ return e$1.value;
70
+ },
71
+ jsonSchema: { type: `string` }
72
+ }),
73
+ JSON: () => new t({
74
+ name: `JSON`,
75
+ zod: t$1.any(),
76
+ parseValue: (e$1) => e$1,
77
+ serialize: (e$1) => e$1,
78
+ jsonSchema: {}
79
+ }),
80
+ JSONObject: () => new t({
81
+ name: `JSONObject`,
82
+ zod: t$1.record(t$1.string(), t$1.any()),
83
+ parseValue: (e$1) => t$1.record(t$1.string(), t$1.any()).parse(e$1),
84
+ serialize: (e$1) => e$1 ?? {},
85
+ jsonSchema: { type: `object` }
86
+ }),
87
+ Date: () => new t({
88
+ name: `Date`,
89
+ zod: t$1.date(),
90
+ parseValue: (e$1) => e$1 instanceof Date ? e$1 : new Date(String(e$1)),
91
+ serialize: (e$1) => e$1 instanceof Date ? e$1.toISOString().split(`T`)[0] : String(e$1),
92
+ jsonSchema: {
93
+ type: `string`,
94
+ format: `date`
95
+ }
96
+ }),
97
+ DateTime: () => new t({
98
+ name: `DateTime`,
99
+ zod: t$1.date(),
100
+ parseValue: (e$1) => e$1 instanceof Date ? e$1 : new Date(String(e$1)),
101
+ serialize: (e$1) => e$1 instanceof Date ? e$1.toISOString() : String(e$1),
102
+ jsonSchema: {
103
+ type: `string`,
104
+ format: `date-time`
105
+ }
106
+ }),
107
+ Time: () => new t({
108
+ name: `Time`,
109
+ zod: t$1.string().regex(/^\d{2}:\d{2}(:\d{2})?$/),
110
+ parseValue: (e$1) => t$1.string().regex(/^\d{2}:\d{2}(:\d{2})?$/).parse(e$1),
111
+ serialize: (e$1) => String(e$1),
112
+ jsonSchema: {
113
+ type: `string`,
114
+ pattern: `^\\d{2}:\\d{2}(:\\d{2})?$`
115
+ }
116
+ }),
117
+ EmailAddress: () => new t({
118
+ name: `EmailAddress`,
119
+ zod: t$1.string().email(),
120
+ parseValue: (e$1) => t$1.string().email().parse(e$1),
121
+ serialize: (e$1) => String(e$1),
122
+ jsonSchema: {
123
+ type: `string`,
124
+ format: `email`
125
+ }
126
+ }),
127
+ URL: () => new t({
128
+ name: `URL`,
129
+ zod: t$1.string().url(),
130
+ parseValue: (e$1) => t$1.string().url().parse(e$1),
131
+ serialize: (e$1) => String(e$1),
132
+ jsonSchema: {
133
+ type: `string`,
134
+ format: `uri`
135
+ }
136
+ }),
137
+ PhoneNumber: () => new t({
138
+ name: `PhoneNumber`,
139
+ zod: t$1.string().regex(a),
140
+ parseValue: (e$1) => t$1.string().regex(a).parse(e$1),
141
+ serialize: (e$1) => String(e$1),
142
+ jsonSchema: {
143
+ type: `string`,
144
+ pattern: a.source
145
+ }
146
+ }),
147
+ NonEmptyString: () => new t({
148
+ name: `NonEmptyString`,
149
+ zod: t$1.string().min(1),
150
+ parseValue: (e$1) => t$1.string().min(1).parse(e$1),
151
+ serialize: (e$1) => String(e$1),
152
+ jsonSchema: {
153
+ type: `string`,
154
+ minLength: 1
155
+ }
156
+ }),
157
+ Locale: () => new t({
158
+ name: `Locale`,
159
+ zod: t$1.string().regex(r),
160
+ parseValue: (e$1) => t$1.string().regex(r).parse(e$1),
161
+ serialize: (e$1) => String(e$1),
162
+ jsonSchema: {
163
+ type: `string`,
164
+ pattern: r.source
165
+ }
166
+ }),
167
+ TimeZone: () => new t({
168
+ name: `TimeZone`,
169
+ zod: t$1.string().regex(i),
170
+ parseValue: (e$1) => t$1.string().regex(i).parse(e$1),
171
+ serialize: (e$1) => String(e$1),
172
+ jsonSchema: {
173
+ type: `string`,
174
+ pattern: i.source
175
+ }
176
+ }),
177
+ Latitude: () => new t({
178
+ name: `Latitude`,
179
+ zod: t$1.number().min(-90).max(90),
180
+ parseValue: (e$1) => t$1.coerce.number().min(-90).max(90).parse(e$1),
181
+ serialize: (e$1) => Number(e$1),
182
+ jsonSchema: {
183
+ type: `number`,
184
+ minimum: -90,
185
+ maximum: 90
186
+ }
187
+ }),
188
+ Longitude: () => new t({
189
+ name: `Longitude`,
190
+ zod: t$1.number().min(c).max(180),
191
+ parseValue: (e$1) => t$1.coerce.number().min(c).max(180).parse(e$1),
192
+ serialize: (e$1) => Number(e$1),
193
+ jsonSchema: {
194
+ type: `number`,
195
+ minimum: c,
196
+ maximum: 180
197
+ }
198
+ }),
199
+ Currency: () => new t({
200
+ name: `Currency`,
201
+ zod: t$1.string().regex(o),
202
+ parseValue: (e$1) => t$1.string().regex(o).parse(e$1),
203
+ serialize: (e$1) => String(e$1),
204
+ jsonSchema: {
205
+ type: `string`,
206
+ pattern: o.source
207
+ }
208
+ }),
209
+ CountryCode: () => new t({
210
+ name: `CountryCode`,
211
+ zod: t$1.string().regex(s),
212
+ parseValue: (e$1) => t$1.string().regex(s).parse(e$1),
213
+ serialize: (e$1) => String(e$1),
214
+ jsonSchema: {
215
+ type: `string`,
216
+ pattern: s.source
217
+ }
218
+ })
219
+ };
220
+
221
+ //#endregion
222
+ export { l };
@@ -0,0 +1,23 @@
1
+ import "./EnumType.js";
2
+ import "./FieldType.js";
3
+ import * as e$1 from "zod";
4
+
5
+ //#region ../../libs/contracts/dist/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, r]) => {
12
+ let i = r.type.getZod(), a = r.isArray ? e$1.array(i) : i;
13
+ return t$2[n] = 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
+
22
+ //#endregion
23
+ export { t };
@@ -0,0 +1,2 @@
1
+ import "./defineEntity.js";
2
+ import "./types.js";
@@ -0,0 +1 @@
1
+ import "zod";
@@ -0,0 +1,6 @@
1
+ import "./EnumType.js";
2
+ import "./FieldType.js";
3
+ import "./SchemaModel.js";
4
+ import "./ScalarTypeEnum.js";
5
+ import "./entity/defineEntity.js";
6
+ import "./entity/index.js";
@@ -0,0 +1,6 @@
1
+ import "../jsonschema.js";
2
+ import "@pothos/plugin-prisma";
3
+ import "@pothos/plugin-complexity";
4
+ import "@pothos/plugin-relay";
5
+ import "@pothos/plugin-dataloader";
6
+ import "@pothos/plugin-tracing";
@@ -0,0 +1,8 @@
1
+ import "./graphql-pothos.js";
2
+ import "./mcp/createMcpServer.js";
3
+ import "./rest-generic.js";
4
+ import "./rest-elysia.js";
5
+ import "./rest-express.js";
6
+ import "./rest-next-app.js";
7
+ import "./rest-next-pages.js";
8
+ import "./provider-mcp.js";
@@ -0,0 +1,4 @@
1
+ import "./registerTools.js";
2
+ import "./registerResources.js";
3
+ import "./registerPrompts.js";
4
+ import "./registerPresentations.js";
@@ -0,0 +1,2 @@
1
+ import "../../presentations.v2.js";
2
+ import "../../presentations.js";
@@ -0,0 +1 @@
1
+ import e from "zod";
@@ -0,0 +1,2 @@
1
+ import "@modelcontextprotocol/sdk/server/mcp.js";
2
+ import "node:buffer";
@@ -0,0 +1 @@
1
+ import "../../jsonschema.js";
@@ -0,0 +1 @@
1
+ import "./mcp/createMcpServer.js";
@@ -0,0 +1 @@
1
+ import "./rest-generic.js";
@@ -0,0 +1 @@
1
+ import "./rest-generic.js";
@@ -0,0 +1 @@
1
+ import "../jsonschema.js";
@@ -0,0 +1 @@
1
+ import "./rest-generic.js";
@@ -0,0 +1 @@
1
+ import "./rest-generic.js";
@@ -0,0 +1,25 @@
1
+ //#region ../../libs/contracts/dist/spec.js
2
+ const e = (e$1) => `ref` in e$1, t = (e$1) => ({
3
+ ...e$1,
4
+ meta: {
5
+ ...e$1.meta,
6
+ kind: `command`
7
+ },
8
+ policy: {
9
+ ...e$1.policy,
10
+ idempotent: e$1.policy?.policy?.idempotent ?? !1
11
+ }
12
+ }), n = (e$1) => ({
13
+ ...e$1,
14
+ meta: {
15
+ ...e$1.meta,
16
+ kind: `query`
17
+ },
18
+ policy: {
19
+ ...e$1.policy,
20
+ idempotent: !0
21
+ }
22
+ });
23
+
24
+ //#endregion
25
+ export { n, t };
@@ -0,0 +1 @@
1
+ import "./tracker.js";
@@ -0,0 +1 @@
1
+ import "crypto";
@@ -0,0 +1 @@
1
+ import "./runner.js";
@@ -0,0 +1,2 @@
1
+ import "../index.js";
2
+ import "node:assert";
@@ -0,0 +1 @@
1
+ import "./runner.js";
@@ -0,0 +1 @@
1
+ import "node:crypto";
@@ -0,0 +1,40 @@
1
+ import * as e$1 from "zod";
2
+ import { GraphQLEnumType } from "graphql";
3
+
4
+ //#region ../../libs/schema/dist/EnumType.js
5
+ var n = class {
6
+ name;
7
+ values;
8
+ gqlEnum;
9
+ constructor(e$2, n$1) {
10
+ this.name = e$2, this.values = n$1, this.gqlEnum = new GraphQLEnumType({
11
+ name: this.name,
12
+ values: Object.fromEntries(n$1.map((e$3) => [e$3, { value: e$3 }]))
13
+ });
14
+ }
15
+ getName() {
16
+ return this.name;
17
+ }
18
+ getEnumValues() {
19
+ return this.values;
20
+ }
21
+ getPothos() {
22
+ return this.gqlEnum;
23
+ }
24
+ getZod() {
25
+ return e$1.enum(this.values);
26
+ }
27
+ getJson() {
28
+ return {
29
+ type: `string`,
30
+ enum: this.values
31
+ };
32
+ }
33
+ getJsonSchema() {
34
+ return this.getJson();
35
+ }
36
+ };
37
+ const r = (e$2, t) => new n(e$2, t);
38
+
39
+ //#endregion
40
+ export { n, r };
@@ -0,0 +1,39 @@
1
+ import "zod";
2
+ import { GraphQLScalarType } from "graphql";
3
+
4
+ //#region ../../libs/schema/dist/FieldType.js
5
+ var t = class extends GraphQLScalarType {
6
+ zodSchema;
7
+ jsonSchemaDef;
8
+ constructor(e$1) {
9
+ super(e$1), this.zodSchema = e$1.zod, this.jsonSchemaDef = e$1.jsonSchema;
10
+ }
11
+ getZod() {
12
+ return this.zodSchema;
13
+ }
14
+ getPothos() {
15
+ return this;
16
+ }
17
+ getJson() {
18
+ return typeof this.jsonSchemaDef == `function` ? this.jsonSchemaDef() : this.jsonSchemaDef;
19
+ }
20
+ getJsonSchemaDef() {
21
+ return this.jsonSchemaDef;
22
+ }
23
+ getJsonSchema() {
24
+ let e$1 = (t$1) => {
25
+ let n = typeof t$1 == `function` ? t$1() : t$1;
26
+ if (Array.isArray(n)) return n.map((t$2) => e$1(t$2));
27
+ if (n && typeof n == `object`) {
28
+ let t$2 = {};
29
+ for (let [r, i] of Object.entries(n)) t$2[r] = e$1(i);
30
+ return t$2;
31
+ }
32
+ return n;
33
+ };
34
+ return e$1(this.getJson());
35
+ }
36
+ };
37
+
38
+ //#endregion
39
+ export { t };
@@ -0,0 +1,222 @@
1
+ import { t } from "./FieldType.js";
2
+ import * as t$1 from "zod";
3
+ import { Kind } from "graphql";
4
+
5
+ //#region ../../libs/schema/dist/ScalarTypeEnum.js
6
+ const r = /^[A-Za-z]{2}(?:-[A-Za-z0-9]{2,8})*$/, i = /^(?:UTC|[A-Za-z_]+\/[A-Za-z_]+)$/, a = /^[+]?\d[\d\s().-]{3,}$/, o = /^[A-Z]{3}$/, s = /^[A-Z]{2}$/, c = -180, l = {
7
+ String_unsecure: () => new t({
8
+ name: `String_unsecure`,
9
+ description: `Unvalidated string scalar`,
10
+ zod: t$1.string(),
11
+ parseValue: (e$1) => t$1.string().parse(e$1),
12
+ serialize: (e$1) => String(e$1),
13
+ parseLiteral: (e$1) => {
14
+ if (e$1.kind !== Kind.STRING) throw TypeError(`Invalid literal`);
15
+ return e$1.value;
16
+ },
17
+ jsonSchema: { type: `string` }
18
+ }),
19
+ Int_unsecure: () => new t({
20
+ name: `Int_unsecure`,
21
+ description: `Unvalidated integer scalar`,
22
+ zod: t$1.number().int(),
23
+ parseValue: (e$1) => {
24
+ let n = typeof e$1 == `number` ? e$1 : Number(e$1);
25
+ return t$1.number().int().parse(n);
26
+ },
27
+ serialize: (e$1) => Math.trunc(typeof e$1 == `number` ? e$1 : Number(e$1)),
28
+ parseLiteral: (e$1) => {
29
+ if (e$1.kind !== Kind.INT) throw TypeError(`Invalid literal`);
30
+ return Number(e$1.value);
31
+ },
32
+ jsonSchema: { type: `integer` }
33
+ }),
34
+ Float_unsecure: () => new t({
35
+ name: `Float_unsecure`,
36
+ description: `Unvalidated float scalar`,
37
+ zod: t$1.number(),
38
+ parseValue: (e$1) => {
39
+ let n = typeof e$1 == `number` ? e$1 : Number(e$1);
40
+ return t$1.number().parse(n);
41
+ },
42
+ serialize: (e$1) => Number(e$1),
43
+ parseLiteral: (e$1) => {
44
+ if (e$1.kind !== Kind.FLOAT && e$1.kind !== Kind.INT) throw TypeError(`Invalid literal`);
45
+ return Number(e$1.value);
46
+ },
47
+ jsonSchema: { type: `number` }
48
+ }),
49
+ Boolean: () => new t({
50
+ name: `Boolean`,
51
+ description: `Unvalidated boolean scalar`,
52
+ zod: t$1.boolean(),
53
+ parseValue: (e$1) => t$1.coerce.boolean().parse(e$1),
54
+ serialize: (e$1) => !!e$1,
55
+ parseLiteral: (e$1) => {
56
+ if (e$1.kind !== Kind.BOOLEAN) throw TypeError(`Invalid literal`);
57
+ return e$1.value;
58
+ },
59
+ jsonSchema: { type: `boolean` }
60
+ }),
61
+ ID: () => new t({
62
+ name: `ID`,
63
+ description: `Unvalidated id scalar`,
64
+ zod: t$1.string(),
65
+ parseValue: (e$1) => t$1.string().parse(e$1),
66
+ serialize: (e$1) => String(e$1),
67
+ parseLiteral: (e$1) => {
68
+ if (e$1.kind !== Kind.STRING) throw TypeError(`Invalid literal`);
69
+ return e$1.value;
70
+ },
71
+ jsonSchema: { type: `string` }
72
+ }),
73
+ JSON: () => new t({
74
+ name: `JSON`,
75
+ zod: t$1.any(),
76
+ parseValue: (e$1) => e$1,
77
+ serialize: (e$1) => e$1,
78
+ jsonSchema: {}
79
+ }),
80
+ JSONObject: () => new t({
81
+ name: `JSONObject`,
82
+ zod: t$1.record(t$1.string(), t$1.any()),
83
+ parseValue: (e$1) => t$1.record(t$1.string(), t$1.any()).parse(e$1),
84
+ serialize: (e$1) => e$1 ?? {},
85
+ jsonSchema: { type: `object` }
86
+ }),
87
+ Date: () => new t({
88
+ name: `Date`,
89
+ zod: t$1.date(),
90
+ parseValue: (e$1) => e$1 instanceof Date ? e$1 : new Date(String(e$1)),
91
+ serialize: (e$1) => e$1 instanceof Date ? e$1.toISOString().split(`T`)[0] : String(e$1),
92
+ jsonSchema: {
93
+ type: `string`,
94
+ format: `date`
95
+ }
96
+ }),
97
+ DateTime: () => new t({
98
+ name: `DateTime`,
99
+ zod: t$1.date(),
100
+ parseValue: (e$1) => e$1 instanceof Date ? e$1 : new Date(String(e$1)),
101
+ serialize: (e$1) => e$1 instanceof Date ? e$1.toISOString() : String(e$1),
102
+ jsonSchema: {
103
+ type: `string`,
104
+ format: `date-time`
105
+ }
106
+ }),
107
+ Time: () => new t({
108
+ name: `Time`,
109
+ zod: t$1.string().regex(/^\d{2}:\d{2}(:\d{2})?$/),
110
+ parseValue: (e$1) => t$1.string().regex(/^\d{2}:\d{2}(:\d{2})?$/).parse(e$1),
111
+ serialize: (e$1) => String(e$1),
112
+ jsonSchema: {
113
+ type: `string`,
114
+ pattern: `^\\d{2}:\\d{2}(:\\d{2})?$`
115
+ }
116
+ }),
117
+ EmailAddress: () => new t({
118
+ name: `EmailAddress`,
119
+ zod: t$1.string().email(),
120
+ parseValue: (e$1) => t$1.string().email().parse(e$1),
121
+ serialize: (e$1) => String(e$1),
122
+ jsonSchema: {
123
+ type: `string`,
124
+ format: `email`
125
+ }
126
+ }),
127
+ URL: () => new t({
128
+ name: `URL`,
129
+ zod: t$1.string().url(),
130
+ parseValue: (e$1) => t$1.string().url().parse(e$1),
131
+ serialize: (e$1) => String(e$1),
132
+ jsonSchema: {
133
+ type: `string`,
134
+ format: `uri`
135
+ }
136
+ }),
137
+ PhoneNumber: () => new t({
138
+ name: `PhoneNumber`,
139
+ zod: t$1.string().regex(a),
140
+ parseValue: (e$1) => t$1.string().regex(a).parse(e$1),
141
+ serialize: (e$1) => String(e$1),
142
+ jsonSchema: {
143
+ type: `string`,
144
+ pattern: a.source
145
+ }
146
+ }),
147
+ NonEmptyString: () => new t({
148
+ name: `NonEmptyString`,
149
+ zod: t$1.string().min(1),
150
+ parseValue: (e$1) => t$1.string().min(1).parse(e$1),
151
+ serialize: (e$1) => String(e$1),
152
+ jsonSchema: {
153
+ type: `string`,
154
+ minLength: 1
155
+ }
156
+ }),
157
+ Locale: () => new t({
158
+ name: `Locale`,
159
+ zod: t$1.string().regex(r),
160
+ parseValue: (e$1) => t$1.string().regex(r).parse(e$1),
161
+ serialize: (e$1) => String(e$1),
162
+ jsonSchema: {
163
+ type: `string`,
164
+ pattern: r.source
165
+ }
166
+ }),
167
+ TimeZone: () => new t({
168
+ name: `TimeZone`,
169
+ zod: t$1.string().regex(i),
170
+ parseValue: (e$1) => t$1.string().regex(i).parse(e$1),
171
+ serialize: (e$1) => String(e$1),
172
+ jsonSchema: {
173
+ type: `string`,
174
+ pattern: i.source
175
+ }
176
+ }),
177
+ Latitude: () => new t({
178
+ name: `Latitude`,
179
+ zod: t$1.number().min(-90).max(90),
180
+ parseValue: (e$1) => t$1.coerce.number().min(-90).max(90).parse(e$1),
181
+ serialize: (e$1) => Number(e$1),
182
+ jsonSchema: {
183
+ type: `number`,
184
+ minimum: -90,
185
+ maximum: 90
186
+ }
187
+ }),
188
+ Longitude: () => new t({
189
+ name: `Longitude`,
190
+ zod: t$1.number().min(c).max(180),
191
+ parseValue: (e$1) => t$1.coerce.number().min(c).max(180).parse(e$1),
192
+ serialize: (e$1) => Number(e$1),
193
+ jsonSchema: {
194
+ type: `number`,
195
+ minimum: c,
196
+ maximum: 180
197
+ }
198
+ }),
199
+ Currency: () => new t({
200
+ name: `Currency`,
201
+ zod: t$1.string().regex(o),
202
+ parseValue: (e$1) => t$1.string().regex(o).parse(e$1),
203
+ serialize: (e$1) => String(e$1),
204
+ jsonSchema: {
205
+ type: `string`,
206
+ pattern: o.source
207
+ }
208
+ }),
209
+ CountryCode: () => new t({
210
+ name: `CountryCode`,
211
+ zod: t$1.string().regex(s),
212
+ parseValue: (e$1) => t$1.string().regex(s).parse(e$1),
213
+ serialize: (e$1) => String(e$1),
214
+ jsonSchema: {
215
+ type: `string`,
216
+ pattern: s.source
217
+ }
218
+ })
219
+ };
220
+
221
+ //#endregion
222
+ export { l };