Commit 0937011
committed
fix(js-sdk): forward name param in createSnapshot and return names
createSnapshot() sends an empty body, ignoring the name parameter
from the API. The SnapshotInfo interface also omits the names array
from the API response. This means SDK users cannot create named
snapshots.
- Add CreateSnapshotOpts with optional name field
- Forward name to POST /sandboxes/{sandboxID}/snapshots body
- Add names to SnapshotInfo interface
- Return names from both createSnapshot and list paginator
- Export CreateSnapshotOpts from package index
Fixes #12491 parent fcb95c3 commit 0937011
3 files changed
Lines changed: 29 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
614 | 615 | | |
615 | 616 | | |
616 | 617 | | |
617 | | - | |
618 | | - | |
| 618 | + | |
| 619 | + | |
619 | 620 | | |
620 | 621 | | |
621 | 622 | | |
622 | 623 | | |
623 | 624 | | |
624 | | - | |
| 625 | + | |
625 | 626 | | |
626 | 627 | | |
627 | | - | |
| 628 | + | |
628 | 629 | | |
629 | 630 | | |
630 | 631 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
251 | 263 | | |
252 | 264 | | |
253 | 265 | | |
| |||
276 | 288 | | |
277 | 289 | | |
278 | 290 | | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
279 | 296 | | |
280 | 297 | | |
281 | 298 | | |
| |||
687 | 704 | | |
688 | 705 | | |
689 | 706 | | |
690 | | - | |
| 707 | + | |
691 | 708 | | |
692 | 709 | | |
693 | 710 | | |
| |||
698 | 715 | | |
699 | 716 | | |
700 | 717 | | |
701 | | - | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
702 | 721 | | |
703 | 722 | | |
704 | 723 | | |
| |||
713 | 732 | | |
714 | 733 | | |
715 | 734 | | |
| 735 | + | |
716 | 736 | | |
717 | 737 | | |
718 | 738 | | |
| |||
1038 | 1058 | | |
1039 | 1059 | | |
1040 | 1060 | | |
| 1061 | + | |
1041 | 1062 | | |
1042 | 1063 | | |
1043 | 1064 | | |
| |||
0 commit comments