Skip to content

Commit d788f4c

Browse files
committed
feat: rename application backups to snapshots
1 parent a3cf61a commit d788f4c

File tree

7 files changed

+46
-19
lines changed

7 files changed

+46
-19
lines changed

.changeset/bumpy-walls-drum.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@squarecloud/api-types": minor
3+
---
4+
5+
Rename application backups to snapshots

payloads/v2/backups.ts

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
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;

payloads/v2/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ export * from "./files";
55
export * from "./logs";
66
export * from "./network";
77
export * from "./service";
8+
export * from "./snapshots";
89
export * from "./status";
910
export * from "./user";

payloads/v2/snapshots.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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+
>;

rest/v2/backups.ts

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
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;

rest/v2/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ export * from "./backups";
33
export * from "./deploy";
44
export * from "./files";
55
export * from "./network";
6+
export * from "./snapshots";

rest/v2/snapshots.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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>;

0 commit comments

Comments
 (0)