Commit 5bccec1
committed
Regenerate clients with two-step LRO start/poll JSDoc
## Summary
Regenerates the `apps`, `environments`, and `postgres` clients to pick up the new long-running-operation JSDoc emitted by the genkit generator. The generated surface is otherwise unchanged.
## Why
Bug-bash testers found the LRO call pattern confusing: `await client.createXOperation(req)` returns a handle and `await op.wait()` polls it to completion, but the generated `createXOperation` factory method had no JSDoc, so the two-step relationship was invisible at the call site and `op.wait(undefined)` looked mandatory. The `wait()` signature was already `wait(options?: LroOptions)`, so a no-argument `op.wait()` already compiled — only the discoverability was missing.
## What changed
### Interface changes
None. No signatures change; `wait()` was already `wait(options?: LroOptions)`.
### Behavioral changes
None. This is a docs-only regeneration. Each `createXOperation` / `deleteXOperation` / `updateXOperation` / `undeleteXOperation` factory now carries a concise JSDoc describing the start/poll pattern with a no-argument `await op.wait()` example, and each `wait()` JSDoc notes that `options` is optional.
### Internal changes
Regenerated `packages/{apps,environments,postgres}/src/v1/client.ts` from the shared descriptor. Pairs with the universe genkit generator change in `openapi/genkit/codegen/sdkjs/method.go` (`lroTmpl` and `waitMethodTmpl`); the JSDoc text lives in that template, not hand-written here.
## How is this tested?
`npm run build`, `npm run lint`, `npm run typecheck`, and `npm run format:check` all pass across the workspace; `npm test` for `@databricks/sdk-core` passes (357 tests). The generated packages have no test suites of their own.
Co-authored-by: Isaac1 parent 4680f01 commit 5bccec1
3 files changed
Lines changed: 297 additions & 81 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
314 | 314 | | |
315 | 315 | | |
316 | 316 | | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
317 | 325 | | |
318 | 326 | | |
319 | 327 | | |
| |||
425 | 433 | | |
426 | 434 | | |
427 | 435 | | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
428 | 444 | | |
429 | 445 | | |
430 | 446 | | |
| |||
1022 | 1038 | | |
1023 | 1039 | | |
1024 | 1040 | | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
1025 | 1049 | | |
1026 | 1050 | | |
1027 | 1051 | | |
| |||
1053 | 1077 | | |
1054 | 1078 | | |
1055 | 1079 | | |
1056 | | - | |
1057 | | - | |
1058 | | - | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
1059 | 1083 | | |
1060 | 1084 | | |
1061 | 1085 | | |
| |||
1135 | 1159 | | |
1136 | 1160 | | |
1137 | 1161 | | |
1138 | | - | |
1139 | | - | |
1140 | | - | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
1141 | 1165 | | |
1142 | 1166 | | |
1143 | 1167 | | |
| |||
1205 | 1229 | | |
1206 | 1230 | | |
1207 | 1231 | | |
1208 | | - | |
1209 | | - | |
1210 | | - | |
| 1232 | + | |
| 1233 | + | |
| 1234 | + | |
1211 | 1235 | | |
1212 | 1236 | | |
1213 | 1237 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
139 | 147 | | |
140 | 148 | | |
141 | 149 | | |
| |||
372 | 380 | | |
373 | 381 | | |
374 | 382 | | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
375 | 391 | | |
376 | 392 | | |
377 | 393 | | |
| |||
467 | 483 | | |
468 | 484 | | |
469 | 485 | | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
470 | 494 | | |
471 | 495 | | |
472 | 496 | | |
| |||
500 | 524 | | |
501 | 525 | | |
502 | 526 | | |
503 | | - | |
504 | | - | |
505 | | - | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
506 | 530 | | |
507 | 531 | | |
508 | 532 | | |
| |||
586 | 610 | | |
587 | 611 | | |
588 | 612 | | |
589 | | - | |
590 | | - | |
591 | | - | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
592 | 616 | | |
593 | 617 | | |
594 | 618 | | |
| |||
672 | 696 | | |
673 | 697 | | |
674 | 698 | | |
675 | | - | |
676 | | - | |
677 | | - | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
678 | 702 | | |
679 | 703 | | |
680 | 704 | | |
| |||
0 commit comments