@tailor-platform/sdk 1.9.0 → 1.9.1

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 CHANGED
@@ -1,5 +1,15 @@
1
1
  # @tailor-platform/sdk
2
2
 
3
+ ## 1.9.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#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)
8
+
9
+ - [#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
10
+
11
+ - [#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
12
+
3
13
  ## 1.9.0
4
14
 
5
15
  ### Minor Changes
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import "../chunk-CIV_ash9.mjs";
3
- import { A as triggerCommand, At as commonArgs, B as executionsCommand, Ct as writePlatformConfig, Dt as initOperatorClient, E as listCommand$5, Et as initOAuth2Client, Ft as workspaceArgs, I as startCommand, K as parseMigrationLabelNumber, Mt as deploymentArgs, N as jobsCommand, Nt as jsonArgs, Ot as readPackageJson, Pt as withCommonArgs, R as getCommand$2, S as getCommand$1, St as readPlatformConfig, T as tokenCommand, Tt as fetchUserInfo, W as applyCommand, _ as showCommand, a as createCommand$3, at as getMigrationFiles, b as listCommand$6, bt as loadAccessToken, ct as loadDiff, f as truncateCommand, gt as loadConfig, h as logBetaWarning, it as getMigrationFilePath, jt as confirmationArgs, k as generateCommand$1, kt as PATScope, l as listCommand$7, m as generateCommand, mt as trnPrefix, pt as getNamespacesWithMigrations, r as deleteCommand$3, s as resumeCommand, st as isValidMigrationNumber, t as listCommand$8, tt as formatMigrationNumber, vt as apiCommand, wt as fetchAll, xt as loadWorkspaceId, y as removeCommand, yt as fetchLatestToken } from "../list-CYsYjREc.mjs";
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 <outputDir>/<namespace>/schema.json)"
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
- list: listCommand$8
2141
+ get: getCommand$3,
2142
+ list: listCommand$10,
2143
+ restore: restoreCommand,
2144
+ user: userCommand
2111
2145
  },
2112
2146
  async run() {
2113
- await runCommand(listCommand$8, []);
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
  }