File tree Expand file tree Collapse file tree 7 files changed +46
-19
lines changed Expand file tree Collapse file tree 7 files changed +46
-19
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @squarecloud/api-types " : minor
3+ ---
4+
5+ Rename application backups to snapshots
Original file line number Diff line number Diff line change 1- import type { APIPayload , ISODateString } from "../../common/v2" ;
2-
31/**
4- * @see https://docs.squarecloud.app/api-reference/endpoint/apps/backup
2+ * @deprecated Use APIApplicationSnapshot instead
53 */
6- export interface APIApplicationBackup {
7- name : string ;
8- size : number ;
9- modified : ISODateString ;
10- key : string ;
11- }
4+ export type APIApplicationBackup = never ;
125
13- export type APIApplicationBackupsPayload = APIPayload < APIApplicationBackup [ ] > ;
6+ /**
7+ * @deprecated Use APIApplicationSnapshotsPayload instead
8+ */
9+ export type APIApplicationBackupsPayload = never ;
Original file line number Diff line number Diff line change @@ -5,5 +5,6 @@ export * from "./files";
55export * from "./logs" ;
66export * from "./network" ;
77export * from "./service" ;
8+ export * from "./snapshots" ;
89export * from "./status" ;
910export * from "./user" ;
Original file line number Diff line number Diff line change 1+ import type { APIPayload , ISODateString } from "../../common/v2" ;
2+
3+ /**
4+ * @see https://docs.squarecloud.app/api-reference/endpoint/apps/snapshots
5+ */
6+ export interface APIApplicationSnapshot {
7+ name : string ;
8+ size : number ;
9+ modified : ISODateString ;
10+ key : string ;
11+ }
12+
13+ export type APIApplicationSnapshotsPayload = APIPayload <
14+ APIApplicationSnapshot [ ]
15+ > ;
Original file line number Diff line number Diff line change 1- import type { APIPayload } from "../../common/v2" ;
2-
31/**
4- * @see https://docs.squarecloud.app/api-reference/endpoint/apps/backup
2+ * @deprecated Use RESTPostAPIApplicationSnapshotResult instead
53 */
6- export interface RESTPostAPIApplicationBackupResult {
7- url : string ;
8- key : string ;
9- }
4+ export type RESTPostAPIApplicationBackupResult = never ;
105
11- export type RESTPostAPIApplicationBackupResultPayload =
12- APIPayload < RESTPostAPIApplicationBackupResult > ;
6+ /**
7+ * @deprecated Use RESTPostAPIApplicationSnapshotResultPayload instead
8+ */
9+ export type RESTPostAPIApplicationBackupResultPayload = never ;
Original file line number Diff line number Diff line change @@ -3,3 +3,4 @@ export * from "./backups";
33export * from "./deploy" ;
44export * from "./files" ;
55export * from "./network" ;
6+ export * from "./snapshots" ;
Original file line number Diff line number Diff line change 1+ import type { APIPayload } from "../../common/v2" ;
2+
3+ /**
4+ * @see https://docs.squarecloud.app/api-reference/endpoint/apps/snapshots
5+ */
6+ export interface RESTPostAPIApplicationSnapshotResult {
7+ url : string ;
8+ key : string ;
9+ }
10+
11+ export type RESTPostAPIApplicationSnapshotResultPayload =
12+ APIPayload < RESTPostAPIApplicationSnapshotResult > ;
You can’t perform that action at this time.
0 commit comments