windmill-cli 1.733.1 → 1.735.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.
Files changed (2) hide show
  1. package/esm/main.js +92 -2
  2. package/package.json +1 -1
package/esm/main.js CHANGED
@@ -16772,7 +16772,7 @@ var init_OpenAPI = __esm(() => {
16772
16772
  PASSWORD: undefined,
16773
16773
  TOKEN: getEnv3("WM_TOKEN"),
16774
16774
  USERNAME: undefined,
16775
- VERSION: "1.733.1",
16775
+ VERSION: "1.735.0",
16776
16776
  WITH_CREDENTIALS: true,
16777
16777
  interceptors: {
16778
16778
  request: new Interceptors,
@@ -25420,7 +25420,7 @@ var init_auth = __esm(async () => {
25420
25420
  });
25421
25421
 
25422
25422
  // src/core/constants.ts
25423
- var WM_FORK_PREFIX = "wm-fork", VERSION = "1.733.1";
25423
+ var WM_FORK_PREFIX = "wm-fork", VERSION = "1.735.0";
25424
25424
 
25425
25425
  // src/utils/git.ts
25426
25426
  var exports_git = {};
@@ -79838,6 +79838,29 @@ datatable(name: string = "main"): DatatableSqlTemplateFunction
79838
79838
  * let sql = wmill.ducklake("my_lake:analytics")
79839
79839
  */
79840
79840
  ducklake(name: string = "main"): SqlTemplateFunction
79841
+
79842
+ /**
79843
+ * Idempotently materialize \`selectSql\` into a ducklake table for one
79844
+ * partition (or the whole table when \`partition\` is omitted) — the client-side
79845
+ * equivalent of the \`// materialize\` engine.
79846
+ * With \`uniqueKey\` it upserts the slice (delete-by-key + insert); otherwise it
79847
+ * replaces it (whole table → \`CREATE OR REPLACE\`; partition → delete + insert).
79848
+ * Safe to re-run for the same partition (backfill / failure-recovery).
79849
+ *
79850
+ * Returns a lazy statement — call \`.execute()\` to run it:
79851
+ * \`await wmill.upsertPartition({ table, selectSql, partition }).execute()\`.
79852
+ */
79853
+ upsertPartition(opts: DucklakeMaterializeOptions): SqlStatement<any>
79854
+
79855
+ /**
79856
+ * INSERT-only materialization (no dedup/replace) for append-only tables.
79857
+ * Re-running the same partition duplicates rows — use only for immutable
79858
+ * event-log sources.
79859
+ *
79860
+ * Returns a lazy statement — call \`.execute()\` to run it:
79861
+ * \`await wmill.appendPartition({ table, selectSql, partition }).execute()\`.
79862
+ */
79863
+ appendPartition(opts: Omit<DucklakeMaterializeOptions, "uniqueKey">,): SqlStatement<any>
79841
79864
  `,
79842
79865
  "write-script-bunnative": `---
79843
79866
  name: write-script-bunnative
@@ -80569,6 +80592,29 @@ datatable(name: string = "main"): DatatableSqlTemplateFunction
80569
80592
  * let sql = wmill.ducklake("my_lake:analytics")
80570
80593
  */
80571
80594
  ducklake(name: string = "main"): SqlTemplateFunction
80595
+
80596
+ /**
80597
+ * Idempotently materialize \`selectSql\` into a ducklake table for one
80598
+ * partition (or the whole table when \`partition\` is omitted) — the client-side
80599
+ * equivalent of the \`// materialize\` engine.
80600
+ * With \`uniqueKey\` it upserts the slice (delete-by-key + insert); otherwise it
80601
+ * replaces it (whole table → \`CREATE OR REPLACE\`; partition → delete + insert).
80602
+ * Safe to re-run for the same partition (backfill / failure-recovery).
80603
+ *
80604
+ * Returns a lazy statement — call \`.execute()\` to run it:
80605
+ * \`await wmill.upsertPartition({ table, selectSql, partition }).execute()\`.
80606
+ */
80607
+ upsertPartition(opts: DucklakeMaterializeOptions): SqlStatement<any>
80608
+
80609
+ /**
80610
+ * INSERT-only materialization (no dedup/replace) for append-only tables.
80611
+ * Re-running the same partition duplicates rows — use only for immutable
80612
+ * event-log sources.
80613
+ *
80614
+ * Returns a lazy statement — call \`.execute()\` to run it:
80615
+ * \`await wmill.appendPartition({ table, selectSql, partition }).execute()\`.
80616
+ */
80617
+ appendPartition(opts: Omit<DucklakeMaterializeOptions, "uniqueKey">,): SqlStatement<any>
80572
80618
  `,
80573
80619
  "write-script-csharp": `---
80574
80620
  name: write-script-csharp
@@ -81392,6 +81438,29 @@ datatable(name: string = "main"): DatatableSqlTemplateFunction
81392
81438
  * let sql = wmill.ducklake("my_lake:analytics")
81393
81439
  */
81394
81440
  ducklake(name: string = "main"): SqlTemplateFunction
81441
+
81442
+ /**
81443
+ * Idempotently materialize \`selectSql\` into a ducklake table for one
81444
+ * partition (or the whole table when \`partition\` is omitted) — the client-side
81445
+ * equivalent of the \`// materialize\` engine.
81446
+ * With \`uniqueKey\` it upserts the slice (delete-by-key + insert); otherwise it
81447
+ * replaces it (whole table → \`CREATE OR REPLACE\`; partition → delete + insert).
81448
+ * Safe to re-run for the same partition (backfill / failure-recovery).
81449
+ *
81450
+ * Returns a lazy statement — call \`.execute()\` to run it:
81451
+ * \`await wmill.upsertPartition({ table, selectSql, partition }).execute()\`.
81452
+ */
81453
+ upsertPartition(opts: DucklakeMaterializeOptions): SqlStatement<any>
81454
+
81455
+ /**
81456
+ * INSERT-only materialization (no dedup/replace) for append-only tables.
81457
+ * Re-running the same partition duplicates rows — use only for immutable
81458
+ * event-log sources.
81459
+ *
81460
+ * Returns a lazy statement — call \`.execute()\` to run it:
81461
+ * \`await wmill.appendPartition({ table, selectSql, partition }).execute()\`.
81462
+ */
81463
+ appendPartition(opts: Omit<DucklakeMaterializeOptions, "uniqueKey">,): SqlStatement<any>
81395
81464
  `,
81396
81465
  "write-script-duckdb": `---
81397
81466
  name: write-script-duckdb
@@ -83042,6 +83111,27 @@ def stream_result(stream) -> None
83042
83111
  # SqlQuery instance for fetching results
83043
83112
  def query(sql: str, *args) -> SqlQuery
83044
83113
 
83114
+ # Idempotently materialize the rows of \`select_sql\` into ducklake
83115
+ # \`table\` for one \`partition\` (or the whole table when \`partition\` is
83116
+ # None). Client-side equivalent of the \`// materialize\` engine: with
83117
+ # \`unique_key\` it upserts within the slice (delete-by-key + insert);
83118
+ # without it, it replaces (whole table → CREATE OR REPLACE; partition →
83119
+ # delete the partition + insert). Re-running the same slice is safe — the
83120
+ # backfill / failure-recovery contract.
83121
+ #
83122
+ # The partition value is bound as a DuckDB arg (never string-interpolated)
83123
+ # so it cannot inject SQL. \`select_sql\` is trusted (your own query).
83124
+ def upsert_partition(table: str, select_sql: str, partition: str = None, unique_key: str = None, partition_col: str = '_wm_partition', schema: str = None)
83125
+
83126
+ # INSERT-only materialization (no dedup / no replace) for an immutable
83127
+ # event-log table — for one \`partition\`, or the whole table when
83128
+ # \`partition\` is None. NOTE: unlike \`upsert_partition\`, re-running the same
83129
+ # slice duplicates rows — use only for append-only sources.
83130
+ def append_partition(table: str, select_sql: str, partition: str = None, partition_col: str = '_wm_partition', schema: str = None)
83131
+
83132
+ # Read a materialized ducklake table, optionally a single partition.
83133
+ def read(table: str, partition: str = None, partition_col: str = '_wm_partition', schema: str = None)
83134
+
83045
83135
  # Execute query and fetch results.
83046
83136
  #
83047
83137
  # Args:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "windmill-cli",
3
- "version": "1.733.1",
3
+ "version": "1.735.0",
4
4
  "description": "CLI for Windmill",
5
5
  "license": "Apache 2.0",
6
6
  "type": "module",