Skip to content

Commit 08bc9e7

Browse files
committed
refactor: rename snapshot-related types for consistency
1 parent e952717 commit 08bc9e7

File tree

4 files changed

+10
-11
lines changed

4 files changed

+10
-11
lines changed

payloads/v2/backups.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/**
2-
* @deprecated Use APIApplicationSnapshot instead
2+
* @deprecated Use APISnapshot instead
33
*/
44
export type APIApplicationBackup = never;
55

66
/**
7-
* @deprecated Use APIApplicationSnapshotsPayload instead
7+
* @deprecated Use APISnapshotsPayload instead
88
*/
99
export type APIApplicationBackupsPayload = never;

payloads/v2/snapshots.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@ import type { APIPayload, ISODateString } from "../../common/v2";
22

33
/**
44
* @see https://docs.squarecloud.app/api-reference/endpoint/apps/snapshots
5+
* @see https://docs.squarecloud.app/api-reference/endpoint/users/snapshots
56
*/
6-
export interface APIApplicationSnapshot {
7+
export interface APISnapshot {
78
name: string;
89
size: number;
910
modified: ISODateString;
1011
key: string;
1112
}
1213

13-
export type APIApplicationSnapshotsPayload = APIPayload<
14-
APIApplicationSnapshot[]
15-
>;
14+
export type APISnapshotsPayload = APIPayload<APISnapshot[]>;

rest/v2/backups.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/**
2-
* @deprecated Use RESTPostAPIApplicationSnapshotResult instead
2+
* @deprecated Use RESTPostAPISnapshotResult instead
33
*/
44
export type RESTPostAPIApplicationBackupResult = never;
55

66
/**
7-
* @deprecated Use RESTPostAPIApplicationSnapshotResultPayload instead
7+
* @deprecated Use RESTPostAPISnapshotResultPayload instead
88
*/
99
export type RESTPostAPIApplicationBackupResultPayload = never;

rest/v2/snapshots.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ import type { APIPayload } from "../../common/v2";
33
/**
44
* @see https://docs.squarecloud.app/api-reference/endpoint/apps/snapshots
55
*/
6-
export interface RESTPostAPIApplicationSnapshotResult {
6+
export interface RESTPostAPISnapshotResult {
77
url: string;
88
key: string;
99
}
1010

11-
export type RESTPostAPIApplicationSnapshotResultPayload =
12-
APIPayload<RESTPostAPIApplicationSnapshotResult>;
11+
export type RESTPostAPISnapshotResultPayload =
12+
APIPayload<RESTPostAPISnapshotResult>;

0 commit comments

Comments
 (0)