Skip to content

Commit a3cf61a

Browse files
committed
feat: add typings for network purge cache endpoint
1 parent 2ffc3ed commit a3cf61a

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

.changeset/eight-masks-shop.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+
Add typings for `/apps/:appId/network/purge_cache`

rest/v2/network.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,12 @@ export interface RESTPostAPINetworkCustomDomainJSONBody {
88
}
99

1010
export type RESTPostAPINetworkCustomDomainResultPayload = APIPayloadStatusOnly;
11+
12+
/**
13+
* @see https://docs.squarecloud.app/api-reference/endpoint/apps/network/purge_cache
14+
*/
15+
export interface RESTPostAPINetworkPurgeCacheJSONBody {
16+
paths: string[];
17+
}
18+
19+
export type RESTPostAPINetworkPurgeCacheResultPayload = APIPayloadStatusOnly;

0 commit comments

Comments
 (0)