@lssm/example.analytics-dashboard 0.0.0-canary-20251217062139 → 0.0.0-canary-20251217060834

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 +130 -130
  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 -5
  5. package/dist/dashboard/dashboard.schema.d.ts +79 -79
  6. package/dist/dashboard/dashboard.schema.js +42 -44
  7. package/dist/docs/analytics-dashboard.docblock.js +2 -3
  8. package/dist/events.d.ts +39 -39
  9. package/dist/events.js +24 -27
  10. package/dist/index.d.ts +1 -0
  11. package/dist/query/query.contracts.d.ts +1 -1
  12. package/dist/query/query.contracts.js +3 -3
  13. package/dist/query/query.enum.d.ts +2 -2
  14. package/dist/query/query.enum.js +2 -3
  15. package/dist/query/query.schema.d.ts +34 -34
  16. package/dist/query/query.schema.js +32 -34
  17. package/package.json +10 -10
  18. package/dist/libs/contracts/dist/capabilities/openbanking.js +0 -84
  19. package/dist/libs/contracts/dist/client/index.js +0 -5
  20. package/dist/libs/contracts/dist/client/react/feature-render.js +0 -2
  21. package/dist/libs/contracts/dist/client/react/form-render.js +0 -4
  22. package/dist/libs/contracts/dist/client/react/index.js +0 -4
  23. package/dist/libs/contracts/dist/contract-registry/index.js +0 -1
  24. package/dist/libs/contracts/dist/contract-registry/schemas.js +0 -57
  25. package/dist/libs/contracts/dist/docs/PUBLISHING.docblock.js +0 -91
  26. package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +0 -365
  27. package/dist/libs/contracts/dist/docs/index.js +0 -29
  28. package/dist/libs/contracts/dist/docs/presentations.js +0 -67
  29. package/dist/libs/contracts/dist/docs/registry.js +0 -42
  30. package/dist/libs/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +0 -398
  31. package/dist/libs/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +0 -83
  32. package/dist/libs/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +0 -155
  33. package/dist/libs/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +0 -101
  34. package/dist/libs/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +0 -16
  35. package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +0 -80
  36. package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +0 -57
  37. package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +0 -228
  38. package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +0 -357
  39. package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +0 -21
  40. package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +0 -16
  41. package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +0 -281
  42. package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +0 -22
  43. package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +0 -79
  44. package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +0 -84
  45. package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +0 -57
  46. package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +0 -22
  47. package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +0 -40
  48. package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +0 -86
  49. package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +0 -22
  50. package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +0 -62
  51. package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +0 -155
  52. package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +0 -20
  53. package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +0 -101
  54. package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +0 -20
  55. package/dist/libs/contracts/dist/events.js +0 -9
  56. package/dist/libs/contracts/dist/experiments/evaluator.js +0 -1
  57. package/dist/libs/contracts/dist/index.js +0 -71
  58. package/dist/libs/contracts/dist/install.js +0 -2
  59. package/dist/libs/contracts/dist/integrations/contracts.js +0 -371
  60. package/dist/libs/contracts/dist/integrations/index.js +0 -18
  61. package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +0 -225
  62. package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +0 -157
  63. package/dist/libs/contracts/dist/integrations/openbanking/contracts/index.js +0 -3
  64. package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +0 -208
  65. package/dist/libs/contracts/dist/integrations/openbanking/models.js +0 -240
  66. package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js +0 -24
  67. package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js +0 -52
  68. package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js +0 -75
  69. package/dist/libs/contracts/dist/integrations/providers/gmail.js +0 -87
  70. package/dist/libs/contracts/dist/integrations/providers/google-calendar.js +0 -66
  71. package/dist/libs/contracts/dist/integrations/providers/index.js +0 -11
  72. package/dist/libs/contracts/dist/integrations/providers/mistral.js +0 -68
  73. package/dist/libs/contracts/dist/integrations/providers/postmark.js +0 -68
  74. package/dist/libs/contracts/dist/integrations/providers/powens.js +0 -116
  75. package/dist/libs/contracts/dist/integrations/providers/qdrant.js +0 -73
  76. package/dist/libs/contracts/dist/integrations/providers/registry.js +0 -10
  77. package/dist/libs/contracts/dist/integrations/providers/stripe.js +0 -83
  78. package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js +0 -61
  79. package/dist/libs/contracts/dist/jsonschema.js +0 -1
  80. package/dist/libs/contracts/dist/knowledge/contracts.js +0 -299
  81. package/dist/libs/contracts/dist/knowledge/index.js +0 -7
  82. package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js +0 -34
  83. package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js +0 -34
  84. package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js +0 -38
  85. package/dist/libs/contracts/dist/knowledge/spaces/index.js +0 -6
  86. package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js +0 -34
  87. package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js +0 -37
  88. package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js +0 -34
  89. package/dist/libs/contracts/dist/llm/exporters.js +0 -18
  90. package/dist/libs/contracts/dist/llm/index.js +0 -2
  91. package/dist/libs/contracts/dist/llm/prompts.js +0 -1
  92. package/dist/libs/contracts/dist/onboarding-base.js +0 -179
  93. package/dist/libs/contracts/dist/openapi.js +0 -1
  94. package/dist/libs/contracts/dist/ownership.js +0 -36
  95. package/dist/libs/contracts/dist/presentations.js +0 -1
  96. package/dist/libs/contracts/dist/presentations.v2.js +0 -7
  97. package/dist/libs/contracts/dist/prompt.js +0 -1
  98. package/dist/libs/contracts/dist/promptRegistry.js +0 -1
  99. package/dist/libs/contracts/dist/regenerator/index.js +0 -1
  100. package/dist/libs/contracts/dist/regenerator/service.js +0 -1
  101. package/dist/libs/contracts/dist/registry.js +0 -2
  102. package/dist/libs/contracts/dist/resources.js +0 -1
  103. package/dist/libs/contracts/dist/schema/dist/EnumType.js +0 -2
  104. package/dist/libs/contracts/dist/schema/dist/FieldType.js +0 -39
  105. package/dist/libs/contracts/dist/schema/dist/ScalarTypeEnum.js +0 -222
  106. package/dist/libs/contracts/dist/schema/dist/SchemaModel.js +0 -23
  107. package/dist/libs/contracts/dist/schema/dist/entity/defineEntity.js +0 -1
  108. package/dist/libs/contracts/dist/schema/dist/entity/index.js +0 -2
  109. package/dist/libs/contracts/dist/schema/dist/entity/types.js +0 -1
  110. package/dist/libs/contracts/dist/schema/dist/index.js +0 -6
  111. package/dist/libs/contracts/dist/server/graphql-pothos.js +0 -6
  112. package/dist/libs/contracts/dist/server/index.js +0 -8
  113. package/dist/libs/contracts/dist/server/mcp/createMcpServer.js +0 -4
  114. package/dist/libs/contracts/dist/server/mcp/registerPresentations.js +0 -2
  115. package/dist/libs/contracts/dist/server/mcp/registerPrompts.js +0 -1
  116. package/dist/libs/contracts/dist/server/mcp/registerResources.js +0 -2
  117. package/dist/libs/contracts/dist/server/mcp/registerTools.js +0 -1
  118. package/dist/libs/contracts/dist/server/provider-mcp.js +0 -1
  119. package/dist/libs/contracts/dist/server/rest-elysia.js +0 -1
  120. package/dist/libs/contracts/dist/server/rest-express.js +0 -1
  121. package/dist/libs/contracts/dist/server/rest-generic.js +0 -1
  122. package/dist/libs/contracts/dist/server/rest-next-app.js +0 -1
  123. package/dist/libs/contracts/dist/server/rest-next-pages.js +0 -1
  124. package/dist/libs/contracts/dist/spec.js +0 -25
  125. package/dist/libs/contracts/dist/telemetry/index.js +0 -1
  126. package/dist/libs/contracts/dist/telemetry/tracker.js +0 -1
  127. package/dist/libs/contracts/dist/tests/index.js +0 -1
  128. package/dist/libs/contracts/dist/tests/runner.js +0 -2
  129. package/dist/libs/contracts/dist/workflow/index.js +0 -1
  130. package/dist/libs/contracts/dist/workflow/runner.js +0 -1
  131. package/dist/libs/schema/dist/EnumType.js +0 -40
  132. package/dist/libs/schema/dist/FieldType.js +0 -39
  133. package/dist/libs/schema/dist/ScalarTypeEnum.js +0 -222
  134. package/dist/libs/schema/dist/SchemaModel.js +0 -24
  135. package/dist/libs/schema/dist/entity/defineEntity.js +0 -1
  136. package/dist/libs/schema/dist/entity/index.js +0 -2
  137. package/dist/libs/schema/dist/entity/types.js +0 -1
  138. package/dist/libs/schema/dist/index.js +0 -6
@@ -1,222 +0,0 @@
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 };
@@ -1,23 +0,0 @@
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 };
@@ -1,2 +0,0 @@
1
- import "./defineEntity.js";
2
- import "./types.js";
@@ -1 +0,0 @@
1
- import "zod";
@@ -1,6 +0,0 @@
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";
@@ -1,6 +0,0 @@
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";
@@ -1,8 +0,0 @@
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";
@@ -1,4 +0,0 @@
1
- import "./registerTools.js";
2
- import "./registerResources.js";
3
- import "./registerPrompts.js";
4
- import "./registerPresentations.js";
@@ -1,2 +0,0 @@
1
- import "../../presentations.v2.js";
2
- import "../../presentations.js";
@@ -1 +0,0 @@
1
- import e from "zod";
@@ -1,2 +0,0 @@
1
- import "@modelcontextprotocol/sdk/server/mcp.js";
2
- import "node:buffer";
@@ -1 +0,0 @@
1
- import "../../jsonschema.js";
@@ -1 +0,0 @@
1
- import "./mcp/createMcpServer.js";
@@ -1 +0,0 @@
1
- import "./rest-generic.js";
@@ -1 +0,0 @@
1
- import "./rest-generic.js";
@@ -1 +0,0 @@
1
- import "../jsonschema.js";
@@ -1 +0,0 @@
1
- import "./rest-generic.js";
@@ -1 +0,0 @@
1
- import "./rest-generic.js";
@@ -1,25 +0,0 @@
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 };
@@ -1 +0,0 @@
1
- import "./tracker.js";
@@ -1 +0,0 @@
1
- import "crypto";
@@ -1 +0,0 @@
1
- import "./runner.js";
@@ -1,2 +0,0 @@
1
- import "../index.js";
2
- import "node:assert";
@@ -1 +0,0 @@
1
- import "./runner.js";
@@ -1 +0,0 @@
1
- import "node:crypto";
@@ -1,40 +0,0 @@
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 };
@@ -1,39 +0,0 @@
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 };
@@ -1,222 +0,0 @@
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 };