Skip to content

Commit 0073132

Browse files
nickvergessenbackportbot[bot]
authored andcommitted
fix(calls): Remove not implemented export type
Signed-off-by: Joas Schilling <[email protected]>
1 parent d8b1add commit 0073132

File tree

5 files changed

+7
-28
lines changed

5 files changed

+7
-28
lines changed

lib/Controller/CallController.php

+3-8
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ public function getPeersForCall(): DataResponse {
121121
*
122122
* Required capability: `download-call-participants`
123123
*
124-
* @param 'csv'|'pdf' $format Download format
125-
* @return DataDownloadResponse<Http::STATUS_OK, 'text/csv'|'application/pdf', array{}>|Response<Http::STATUS_BAD_REQUEST, array{}>
124+
* @param 'csv' $format Download format
125+
* @return DataDownloadResponse<Http::STATUS_OK, 'text/csv', array{}>|Response<Http::STATUS_BAD_REQUEST, array{}>
126126
*
127127
* 200: List of participants in the call downloaded in the requested format
128128
* 400: No call in progress
@@ -141,13 +141,8 @@ public function downloadParticipantsForCall(string $format = 'csv'): DataDownloa
141141
return new Response(Http::STATUS_BAD_REQUEST);
142142
}
143143

144-
if ($format !== 'csv' && $format !== 'pdf') {
145-
// Unsupported format
146-
return new Response(Http::STATUS_BAD_REQUEST);
147-
}
148-
149144
if ($format !== 'csv') {
150-
// FIXME Remove once pdf was implemented.
145+
// Unsupported format
151146
return new Response(Http::STATUS_BAD_REQUEST);
152147
}
153148

openapi-full.json

+1-8
Original file line numberDiff line numberDiff line change
@@ -4785,8 +4785,7 @@
47854785
"type": "string",
47864786
"default": "csv",
47874787
"enum": [
4788-
"csv",
4789-
"pdf"
4788+
"csv"
47904789
]
47914790
}
47924791
},
@@ -4810,12 +4809,6 @@
48104809
"type": "string",
48114810
"format": "binary"
48124811
}
4813-
},
4814-
"application/pdf": {
4815-
"schema": {
4816-
"type": "string",
4817-
"format": "binary"
4818-
}
48194812
}
48204813
}
48214814
},

openapi.json

+1-8
Original file line numberDiff line numberDiff line change
@@ -4690,8 +4690,7 @@
46904690
"type": "string",
46914691
"default": "csv",
46924692
"enum": [
4693-
"csv",
4694-
"pdf"
4693+
"csv"
46954694
]
46964695
}
46974696
},
@@ -4715,12 +4714,6 @@
47154714
"type": "string",
47164715
"format": "binary"
47174716
}
4718-
},
4719-
"application/pdf": {
4720-
"schema": {
4721-
"type": "string",
4722-
"format": "binary"
4723-
}
47244717
}
47254718
}
47264719
},

src/types/openapi/openapi-full.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -3660,7 +3660,7 @@ export interface operations {
36603660
parameters: {
36613661
query?: {
36623662
/** @description Download format */
3663-
format?: "csv" | "pdf";
3663+
format?: "csv";
36643664
};
36653665
header: {
36663666
/** @description Required to be true for the API request to pass */
@@ -3681,7 +3681,6 @@ export interface operations {
36813681
};
36823682
content: {
36833683
"text/csv": string;
3684-
"application/pdf": string;
36853684
};
36863685
};
36873686
/** @description No call in progress */

src/types/openapi/openapi.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -3142,7 +3142,7 @@ export interface operations {
31423142
parameters: {
31433143
query?: {
31443144
/** @description Download format */
3145-
format?: "csv" | "pdf";
3145+
format?: "csv";
31463146
};
31473147
header: {
31483148
/** @description Required to be true for the API request to pass */
@@ -3163,7 +3163,6 @@ export interface operations {
31633163
};
31643164
content: {
31653165
"text/csv": string;
3166-
"application/pdf": string;
31673166
};
31683167
};
31693168
/** @description No call in progress */

0 commit comments

Comments
 (0)