@tailor-platform/sdk 1.56.1 → 1.57.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/CHANGELOG.md +12 -0
- package/README.md +0 -23
- package/dist/{application-DuT_ae02.mjs → application-CdkoGX27.mjs} +7 -4
- package/dist/application-CdkoGX27.mjs.map +1 -0
- package/dist/application-x_mURdR0.mjs +4 -0
- package/dist/cli/erd-viewer-assets/app.js +1181 -0
- package/dist/cli/erd-viewer-assets/index.html +73 -0
- package/dist/cli/erd-viewer-assets/serve.json +13 -0
- package/dist/cli/erd-viewer-assets/styles.css +789 -0
- package/dist/cli/index.mjs +685 -344
- package/dist/cli/index.mjs.map +1 -1
- package/dist/cli/lib.d.mts +6 -1
- package/dist/cli/lib.mjs +2 -2
- package/dist/client-DLPEPJ_s.mjs.map +1 -1
- package/dist/{runtime-745lvg7i.mjs → runtime-1YuaoNr8.mjs} +36 -63
- package/dist/runtime-1YuaoNr8.mjs.map +1 -0
- package/docs/cli/tailordb.md +31 -26
- package/docs/cli-reference.md +2 -2
- package/package.json +1 -3
- package/dist/application-CC3oaSay.mjs +0 -4
- package/dist/application-DuT_ae02.mjs.map +0 -1
- package/dist/runtime-745lvg7i.mjs.map +0 -1
package/docs/cli/tailordb.md
CHANGED
|
@@ -28,11 +28,11 @@ tailor-sdk tailordb [command]
|
|
|
28
28
|
|
|
29
29
|
**Commands**
|
|
30
30
|
|
|
31
|
-
| Command | Description
|
|
32
|
-
| ------------------------------------------- |
|
|
33
|
-
| [`tailordb truncate`](#tailordb-truncate) | Truncate (delete all records from) TailorDB tables.
|
|
34
|
-
| [`tailordb migration`](#tailordb-migration) | Manage TailorDB schema migrations.
|
|
35
|
-
| [`tailordb erd`](#tailordb-erd) | Generate ERD artifacts
|
|
31
|
+
| Command | Description |
|
|
32
|
+
| ------------------------------------------- | ------------------------------------------------------------------------- |
|
|
33
|
+
| [`tailordb truncate`](#tailordb-truncate) | Truncate (delete all records from) TailorDB tables. |
|
|
34
|
+
| [`tailordb migration`](#tailordb-migration) | Manage TailorDB schema migrations. |
|
|
35
|
+
| [`tailordb erd`](#tailordb-erd) | Generate TailorDB ERD viewer artifacts from local TailorDB schema. (beta) |
|
|
36
36
|
|
|
37
37
|
<!-- politty:command:tailordb:subcommands:end -->
|
|
38
38
|
|
|
@@ -357,7 +357,7 @@ See [Global Options](../cli-reference.md#global-options) for options available t
|
|
|
357
357
|
|
|
358
358
|
<!-- politty:command:tailordb erd:description:start -->
|
|
359
359
|
|
|
360
|
-
Generate ERD artifacts
|
|
360
|
+
Generate TailorDB ERD viewer artifacts from local TailorDB schema. (beta)
|
|
361
361
|
|
|
362
362
|
<!-- politty:command:tailordb erd:description:end -->
|
|
363
363
|
|
|
@@ -375,11 +375,11 @@ tailor-sdk tailordb erd [command]
|
|
|
375
375
|
|
|
376
376
|
**Commands**
|
|
377
377
|
|
|
378
|
-
| Command | Description
|
|
379
|
-
| --------------------------------------------- |
|
|
380
|
-
| [`tailordb erd export`](#tailordb-erd-export) | Export
|
|
381
|
-
| [`tailordb erd serve`](#tailordb-erd-serve) | Generate and serve ERD locally
|
|
382
|
-
| [`tailordb erd deploy`](#tailordb-erd-deploy) | Deploy ERD static website for TailorDB namespace(s).
|
|
378
|
+
| Command | Description |
|
|
379
|
+
| --------------------------------------------- | ----------------------------------------------------------------- |
|
|
380
|
+
| [`tailordb erd export`](#tailordb-erd-export) | Export TailorDB ERD static viewer from local TailorDB schema. |
|
|
381
|
+
| [`tailordb erd serve`](#tailordb-erd-serve) | Generate and serve TailorDB ERD locally with watch reload. (beta) |
|
|
382
|
+
| [`tailordb erd deploy`](#tailordb-erd-deploy) | Deploy ERD static website for TailorDB namespace(s). |
|
|
383
383
|
|
|
384
384
|
<!-- politty:command:tailordb erd:subcommands:end -->
|
|
385
385
|
|
|
@@ -396,7 +396,7 @@ See [Global Options](../cli-reference.md#global-options) for options available t
|
|
|
396
396
|
|
|
397
397
|
<!-- politty:command:tailordb erd export:description:start -->
|
|
398
398
|
|
|
399
|
-
Export
|
|
399
|
+
Export TailorDB ERD static viewer from local TailorDB schema.
|
|
400
400
|
|
|
401
401
|
<!-- politty:command:tailordb erd export:description:end -->
|
|
402
402
|
|
|
@@ -414,13 +414,11 @@ tailor-sdk tailordb erd export [options]
|
|
|
414
414
|
|
|
415
415
|
**Options**
|
|
416
416
|
|
|
417
|
-
| Option
|
|
418
|
-
|
|
|
419
|
-
| `--
|
|
420
|
-
| `--
|
|
421
|
-
| `--
|
|
422
|
-
| `--namespace <NAMESPACE>` | `-n` | TailorDB namespace name (optional if only one namespace is defined in config) | No | - | - |
|
|
423
|
-
| `--output <OUTPUT>` | `-o` | Output directory path for tbls-compatible ERD JSON (writes to `<outputDir>/<namespace>/schema.json`) | No | `".tailor-sdk/erd"` | - |
|
|
417
|
+
| Option | Alias | Description | Required | Default | Env |
|
|
418
|
+
| ------------------------- | ----- | ---------------------------------------------------------------------------------------------- | -------- | -------------------- | --------------------------------- |
|
|
419
|
+
| `--config <CONFIG>` | `-c` | Path to SDK config file | No | `"tailor.config.ts"` | `TAILOR_PLATFORM_SDK_CONFIG_PATH` |
|
|
420
|
+
| `--namespace <NAMESPACE>` | `-n` | TailorDB namespace name (optional if only one namespace is defined in config) | No | - | - |
|
|
421
|
+
| `--output <OUTPUT>` | `-o` | Output directory path for TailorDB ERD viewer files (writes to `<outputDir>/<namespace>/dist`) | No | `".tailor-sdk/erd"` | - |
|
|
424
422
|
|
|
425
423
|
<!-- politty:command:tailordb erd export:options:end -->
|
|
426
424
|
|
|
@@ -437,7 +435,7 @@ See [Global Options](../cli-reference.md#global-options) for options available t
|
|
|
437
435
|
|
|
438
436
|
<!-- politty:command:tailordb erd serve:description:start -->
|
|
439
437
|
|
|
440
|
-
Generate and serve ERD locally
|
|
438
|
+
Generate and serve TailorDB ERD locally with watch reload. (beta)
|
|
441
439
|
|
|
442
440
|
<!-- politty:command:tailordb erd serve:description:end -->
|
|
443
441
|
|
|
@@ -455,12 +453,12 @@ tailor-sdk tailordb erd serve [options]
|
|
|
455
453
|
|
|
456
454
|
**Options**
|
|
457
455
|
|
|
458
|
-
| Option
|
|
459
|
-
|
|
|
460
|
-
| `--
|
|
461
|
-
| `--
|
|
462
|
-
| `--
|
|
463
|
-
| `--
|
|
456
|
+
| Option | Alias | Description | Required | Default | Env |
|
|
457
|
+
| ------------------------- | ----- | ------------------------------------------------------------------------- | -------- | -------------------- | --------------------------------- |
|
|
458
|
+
| `--config <CONFIG>` | `-c` | Path to SDK config file | No | `"tailor.config.ts"` | `TAILOR_PLATFORM_SDK_CONFIG_PATH` |
|
|
459
|
+
| `--namespace <NAMESPACE>` | `-n` | TailorDB namespace name (uses first namespace in config if not specified) | No | - | - |
|
|
460
|
+
| `--port <PORT>` | - | Local server port (0 selects a free port) | No | `0` | - |
|
|
461
|
+
| `--open` | - | Open the ERD viewer in the default browser | No | `false` | - |
|
|
464
462
|
|
|
465
463
|
<!-- politty:command:tailordb erd serve:options:end -->
|
|
466
464
|
|
|
@@ -510,6 +508,13 @@ See [Global Options](../cli-reference.md#global-options) for options available t
|
|
|
510
508
|
|
|
511
509
|
<!-- politty:command:tailordb erd deploy:global-options-link:end -->
|
|
512
510
|
|
|
511
|
+
**Notes:**
|
|
512
|
+
|
|
513
|
+
- ERD commands build from the local TailorDB schema, including plugin-generated TailorDB types.
|
|
514
|
+
- `tailordb erd export` writes a self-contained `index.html` viewer to `<output>/<namespace>/dist`.
|
|
515
|
+
- `tailordb erd serve` watches the config file and TailorDB type files, then reloads the browser viewer when the rebuilt `index.html` reports a new embedded schema revision.
|
|
516
|
+
- `tailordb erd deploy` still requires `erdSite` in `tailor.config.ts` because it uploads the generated viewer to a configured Static Website.
|
|
517
|
+
|
|
513
518
|
**Usage Examples:**
|
|
514
519
|
|
|
515
520
|
```bash
|
package/docs/cli-reference.md
CHANGED
|
@@ -130,8 +130,8 @@ Commands for managing TailorDB tables, data, and schema migrations.
|
|
|
130
130
|
| [tailordb migration script](./cli/tailordb.md#tailordb-migration-script) | Add a migration script (migrate.ts) template to an existing migration directory. |
|
|
131
131
|
| [tailordb migration set](./cli/tailordb.md#tailordb-migration-set) | Set migration checkpoint to a specific number. |
|
|
132
132
|
| [tailordb migration status](./cli/tailordb.md#tailordb-migration-status) | Show the current migration status for TailorDB namespaces, including applied and pending migrations. |
|
|
133
|
-
| [tailordb erd export](./cli/tailordb.md#tailordb-erd-export) | Export
|
|
134
|
-
| [tailordb erd serve](./cli/tailordb.md#tailordb-erd-serve) | Generate and serve ERD locally
|
|
133
|
+
| [tailordb erd export](./cli/tailordb.md#tailordb-erd-export) | Export TailorDB ERD static viewer from local TailorDB schema. |
|
|
134
|
+
| [tailordb erd serve](./cli/tailordb.md#tailordb-erd-serve) | Generate and serve TailorDB ERD locally with watch reload. (beta) |
|
|
135
135
|
| [tailordb erd deploy](./cli/tailordb.md#tailordb-erd-deploy) | Deploy ERD static website for TailorDB namespace(s). |
|
|
136
136
|
|
|
137
137
|
### [Query Commands](./cli/query.md)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tailor-platform/sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.57.0",
|
|
4
4
|
"description": "Tailor Platform SDK - The SDK to work with Tailor Platform",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -143,7 +143,6 @@
|
|
|
143
143
|
"@inquirer/core": "11.2.1",
|
|
144
144
|
"@inquirer/prompts": "8.5.2",
|
|
145
145
|
"@jridgewell/trace-mapping": "0.3.31",
|
|
146
|
-
"@liam-hq/cli": "0.7.24",
|
|
147
146
|
"@napi-rs/keyring": "1.3.0",
|
|
148
147
|
"@opentelemetry/api": "1.9.1",
|
|
149
148
|
"@opentelemetry/exporter-trace-otlp-proto": "0.218.0",
|
|
@@ -177,7 +176,6 @@
|
|
|
177
176
|
"politty": "0.5.1",
|
|
178
177
|
"rolldown": "1.0.3",
|
|
179
178
|
"semver": "7.8.1",
|
|
180
|
-
"serve": "14.2.6",
|
|
181
179
|
"sql-highlight": "6.1.0",
|
|
182
180
|
"std-env": "4.1.0",
|
|
183
181
|
"table": "6.9.0",
|