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
-
3
1
/**
4
- * @see https://docs.squarecloud.app/api-reference/endpoint/apps/backup
2
+ * @deprecated Use APIApplicationSnapshot instead
5
3
*/
6
- export interface APIApplicationBackup {
7
- name : string ;
8
- size : number ;
9
- modified : ISODateString ;
10
- key : string ;
11
- }
4
+ export type APIApplicationBackup = never ;
12
5
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";
5
5
export * from "./logs" ;
6
6
export * from "./network" ;
7
7
export * from "./service" ;
8
+ export * from "./snapshots" ;
8
9
export * from "./status" ;
9
10
export * 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
-
3
1
/**
4
- * @see https://docs.squarecloud.app/api-reference/endpoint/apps/backup
2
+ * @deprecated Use RESTPostAPIApplicationSnapshotResult instead
5
3
*/
6
- export interface RESTPostAPIApplicationBackupResult {
7
- url : string ;
8
- key : string ;
9
- }
4
+ export type RESTPostAPIApplicationBackupResult = never ;
10
5
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";
3
3
export * from "./deploy" ;
4
4
export * from "./files" ;
5
5
export * 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