@tailor-platform/sdk 1.9.0 → 1.9.2
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 +16 -0
- package/dist/cli/index.mjs +41 -7
- package/dist/cli/index.mjs.map +1 -1
- package/dist/cli/lib.d.mts +150 -3
- package/dist/cli/lib.mjs +2 -2
- package/dist/cli/lib.mjs.map +1 -1
- package/dist/configure/index.d.mts +2 -2
- package/dist/{index-Bd255ayy.d.mts → index-B07hXFjo.d.mts} +10 -10
- package/dist/{index-DFEsnnHR.d.mts → index-x4xcWJm1.d.mts} +7 -7
- package/dist/{list-CYsYjREc.mjs → update-DZs1loy_.mjs} +603 -25
- package/dist/update-DZs1loy_.mjs.map +1 -0
- package/dist/utils/test/index.d.mts +2 -2
- package/docs/cli/tailordb.md +8 -8
- package/docs/cli/workspace.md +234 -5
- package/package.json +1 -1
- package/dist/list-CYsYjREc.mjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @tailor-platform/sdk
|
|
2
2
|
|
|
3
|
+
## 1.9.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#537](https://github.com/tailor-platform/sdk/pull/537) [`3c71c49`](https://github.com/tailor-platform/sdk/commit/3c71c49799c77053659e2e798edaf736fad0f2b5) Thanks [@riku99](https://github.com/riku99)! - Update release workflow to use changesets action for publishing and GitHub releases
|
|
8
|
+
|
|
9
|
+
## 1.9.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#534](https://github.com/tailor-platform/sdk/pull/534) [`67b1935`](https://github.com/tailor-platform/sdk/commit/67b1935800d2ac6b6436bc66cdf41911572594ee) Thanks [@riku99](https://github.com/riku99)! - Add unit tests for TailorDB ERD schema generation (columns and schema building)
|
|
14
|
+
|
|
15
|
+
- [#533](https://github.com/tailor-platform/sdk/pull/533) [`9dbfc53`](https://github.com/tailor-platform/sdk/commit/9dbfc5375e04faf94eb2747875ebbe3eb990b8a1) Thanks [@riku99](https://github.com/riku99)! - Added tests for TailorDB parse runtime validation cases
|
|
16
|
+
|
|
17
|
+
- [#527](https://github.com/tailor-platform/sdk/pull/527) [`78b07f8`](https://github.com/tailor-platform/sdk/commit/78b07f8be371850b5c2d28d12459e07b5d17eaaf) Thanks [@riku99](https://github.com/riku99)! - Add tests for loadWorkspaceId in context
|
|
18
|
+
|
|
3
19
|
## 1.9.0
|
|
4
20
|
|
|
5
21
|
### Minor Changes
|
package/dist/cli/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import "../chunk-CIV_ash9.mjs";
|
|
3
|
-
import { A as
|
|
3
|
+
import { A as generateCommand, At as trnPrefix, Bt as fetchAll, C as resumeCommand, Ct as isValidMigrationNumber, F as removeCommand$1, Ft as fetchLatestToken, G as generateCommand$1, Gt as PATScope, H as listCommand$5, Ht as initOAuth2Client, I as listCommand$6, It as loadAccessToken, Jt as deploymentArgs, K as triggerCommand, Kt as commonArgs, Lt as loadWorkspaceId, Mt as loadConfig, N as showCommand, O as truncateCommand, Pt as apiCommand, Q as startCommand, R as getCommand$1, Rt as readPlatformConfig, S as healthCommand, T as listCommand$7, Ut as initOperatorClient, V as tokenCommand, Vt as fetchUserInfo, Wt as readPackageJson, Xt as withCommonArgs, Y as jobsCommand, Yt as jsonArgs, Zt as workspaceArgs, _ as createCommand$3, _t as formatMigrationNumber, a as listCommand$9, b as listCommand$8, bt as getMigrationFilePath, ct as parseMigrationLabelNumber, d as listCommand$10, et as getCommand$2, h as deleteCommand$3, j as logBetaWarning, kt as getNamespacesWithMigrations, l as restoreCommand, nt as executionsCommand, ot as applyCommand, p as getCommand$3, qt as confirmationArgs, r as removeCommand, s as inviteCommand, t as updateCommand$2, wt as loadDiff, xt as getMigrationFiles, zt as writePlatformConfig } from "../update-DZs1loy_.mjs";
|
|
4
4
|
import { d as styles, u as logger } from "../application-_ArEfxmV.mjs";
|
|
5
5
|
import { createRequire, register } from "node:module";
|
|
6
6
|
import { arg, defineCommand, runCommand, runMain } from "politty";
|
|
@@ -1429,7 +1429,7 @@ const erdExportCommand = defineCommand({
|
|
|
1429
1429
|
}),
|
|
1430
1430
|
output: arg(z.string().default(DEFAULT_ERD_BASE_DIR), {
|
|
1431
1431
|
alias: "o",
|
|
1432
|
-
description: "Output directory path for tbls-compatible ERD JSON (writes to
|
|
1432
|
+
description: "Output directory path for tbls-compatible ERD JSON (writes to `<outputDir>/<namespace>/schema.json`)"
|
|
1433
1433
|
})
|
|
1434
1434
|
}),
|
|
1435
1435
|
run: withCommonArgs(async (args) => {
|
|
@@ -2068,7 +2068,7 @@ const switchCommand = defineCommand({
|
|
|
2068
2068
|
|
|
2069
2069
|
//#endregion
|
|
2070
2070
|
//#region src/cli/user/index.ts
|
|
2071
|
-
const userCommand = defineCommand({
|
|
2071
|
+
const userCommand$1 = defineCommand({
|
|
2072
2072
|
name: "user",
|
|
2073
2073
|
description: "Manage Tailor Platform users.",
|
|
2074
2074
|
subCommands: {
|
|
@@ -2099,18 +2099,52 @@ const workflowCommand = defineCommand({
|
|
|
2099
2099
|
}
|
|
2100
2100
|
});
|
|
2101
2101
|
|
|
2102
|
+
//#endregion
|
|
2103
|
+
//#region src/cli/workspace/app/index.ts
|
|
2104
|
+
const appCommand = defineCommand({
|
|
2105
|
+
name: "app",
|
|
2106
|
+
description: "Manage workspace applications",
|
|
2107
|
+
subCommands: {
|
|
2108
|
+
health: healthCommand,
|
|
2109
|
+
list: listCommand$8
|
|
2110
|
+
},
|
|
2111
|
+
async run() {
|
|
2112
|
+
await runCommand(listCommand$8, []);
|
|
2113
|
+
}
|
|
2114
|
+
});
|
|
2115
|
+
|
|
2116
|
+
//#endregion
|
|
2117
|
+
//#region src/cli/workspace/user/index.ts
|
|
2118
|
+
const userCommand = defineCommand({
|
|
2119
|
+
name: "user",
|
|
2120
|
+
description: "Manage workspace users",
|
|
2121
|
+
subCommands: {
|
|
2122
|
+
invite: inviteCommand,
|
|
2123
|
+
list: listCommand$9,
|
|
2124
|
+
remove: removeCommand,
|
|
2125
|
+
update: updateCommand$2
|
|
2126
|
+
},
|
|
2127
|
+
async run() {
|
|
2128
|
+
await runCommand(listCommand$9, []);
|
|
2129
|
+
}
|
|
2130
|
+
});
|
|
2131
|
+
|
|
2102
2132
|
//#endregion
|
|
2103
2133
|
//#region src/cli/workspace/index.ts
|
|
2104
2134
|
const workspaceCommand = defineCommand({
|
|
2105
2135
|
name: "workspace",
|
|
2106
2136
|
description: "Manage Tailor Platform workspaces.",
|
|
2107
2137
|
subCommands: {
|
|
2138
|
+
app: appCommand,
|
|
2108
2139
|
create: createCommand$3,
|
|
2109
2140
|
delete: deleteCommand$3,
|
|
2110
|
-
|
|
2141
|
+
get: getCommand$3,
|
|
2142
|
+
list: listCommand$10,
|
|
2143
|
+
restore: restoreCommand,
|
|
2144
|
+
user: userCommand
|
|
2111
2145
|
},
|
|
2112
2146
|
async run() {
|
|
2113
|
-
await runCommand(listCommand$
|
|
2147
|
+
await runCommand(listCommand$10, []);
|
|
2114
2148
|
}
|
|
2115
2149
|
});
|
|
2116
2150
|
|
|
@@ -2133,12 +2167,12 @@ const mainCommand = defineCommand({
|
|
|
2133
2167
|
oauth2client: oauth2clientCommand,
|
|
2134
2168
|
open: openCommand,
|
|
2135
2169
|
profile: profileCommand,
|
|
2136
|
-
remove: removeCommand,
|
|
2170
|
+
remove: removeCommand$1,
|
|
2137
2171
|
secret: secretCommand,
|
|
2138
2172
|
show: showCommand,
|
|
2139
2173
|
staticwebsite: staticwebsiteCommand,
|
|
2140
2174
|
tailordb: tailordbCommand,
|
|
2141
|
-
user: userCommand,
|
|
2175
|
+
user: userCommand$1,
|
|
2142
2176
|
workflow: workflowCommand,
|
|
2143
2177
|
workspace: workspaceCommand
|
|
2144
2178
|
}
|