@stardeck-customer-apps/data-store-sdk 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/SKILL.md +8 -1
- package/dist/chunk-EWWQPGFI.mjs +662 -0
- package/dist/chunk-FEKROS4B.mjs +66 -0
- package/dist/cli/bin.d.mts +1 -0
- package/dist/cli/bin.d.ts +1 -0
- package/dist/cli/bin.js +729 -0
- package/dist/cli/bin.mjs +11 -0
- package/dist/cli/generate-types.d.mts +27 -2
- package/dist/cli/generate-types.d.ts +27 -2
- package/dist/cli/generate-types.js +121 -27
- package/dist/cli/generate-types.mjs +15 -608
- package/dist/server/index.mjs +8 -63
- package/package.json +6 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Stardeck Inc.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/SKILL.md
CHANGED
|
@@ -218,11 +218,18 @@ Use this for application code where you want compile-time type safety.
|
|
|
218
218
|
### Generate Types
|
|
219
219
|
|
|
220
220
|
```bash
|
|
221
|
-
|
|
221
|
+
cd apps/web
|
|
222
|
+
npx stardeck-data-store generate-types
|
|
222
223
|
# Outputs: ./src/generated/data-store-types.ts
|
|
223
224
|
# ./src/generated/data-store-schema.sql (DDL snapshot for the test harness)
|
|
224
225
|
```
|
|
225
226
|
|
|
227
|
+
With no flags the command reads the store the app is pointed at: the
|
|
228
|
+
`STARDECK_DATA_STORES` manifest the runtime resolves stores from, taken from the
|
|
229
|
+
shell or from `./.env.local` (what `npm run env:pull` writes). When several
|
|
230
|
+
database stores are connected, name one with `--store <bindingKey>`. To bypass
|
|
231
|
+
the manifest, pass `--connection-string <url>` or set `DATA_STORE_URL`.
|
|
232
|
+
|
|
226
233
|
Commit both generated files. Re-run this command after every schema change —
|
|
227
234
|
the schema snapshot is what `@stardeck-customer-apps/testing` applies to its
|
|
228
235
|
in-process Postgres, so a stale snapshot means tests run against the wrong
|