Skip to content

Commit 3ba01aa

Browse files
box-sdk-buildbox-sdk-build
andauthored
fix: Remove enum types from GET enterprise configurations endpoint (box/box-openapi#560) (#1155)
* docs: Fix timeout values for Folders API (box/box-openapi#558) * docs: Fix timeout values for Folders API (box/box-openapi#558) * feat: add GET enterprise configuration endpoint (box/box-openapi#559) * docs: Update README after release (box/box-codegen#869) * feat: Create AI QA file handlers integration tests (box/box-codegen#871) * feat: use generated `RetryStrategy` for retrying requests (box/box-codegen#872) * fix: remove enum types from GET enterprise configurations endpoint (box/box-openapi#560) --------- Co-authored-by: box-sdk-build <[email protected]>
1 parent ec14884 commit 3ba01aa

File tree

7 files changed

+74
-140
lines changed

7 files changed

+74
-140
lines changed

.codegen.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{ "engineHash": "b98d1dc", "specHash": "cf21406", "version": "10.0.1" }
1+
{ "engineHash": "4421f42", "specHash": "1715587", "version": "10.0.1" }

package-lock.json

Lines changed: 44 additions & 44 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/managers/enterpriseConfigurations.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ export interface GetEnterpriseConfigurationByIdV2025R0OptionalsInput {
5555
}
5656
export interface GetEnterpriseConfigurationByIdV2025R0QueryParams {
5757
/**
58-
* The comma-delimited list of the enterprise configuration categories.
58+
* A comma-separated list of the enterprise configuration categories.
5959
* Allowed values: `security`, `content_and_sharing`, `user_settings`, `shield`. */
60-
readonly categories: string;
60+
readonly categories: readonly string[];
6161
}
6262
export class GetEnterpriseConfigurationByIdV2025R0Headers {
6363
/**
@@ -141,7 +141,9 @@ export class EnterpriseConfigurationsManager {
141141
const queryParamsMap: {
142142
readonly [key: string]: string;
143143
} = prepareParams({
144-
['categories']: toString(queryParams.categories) as string,
144+
['categories']: queryParams.categories
145+
? queryParams.categories.map(toString).join(',')
146+
: undefined,
145147
});
146148
const headersMap: {
147149
readonly [key: string]: string;

src/networking/retries.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ export class BoxRetryStrategy implements RetryStrategy {
8080
const isSuccessful: boolean =
8181
fetchResponse.status >= 200 && fetchResponse.status < 400;
8282
const retryAfterHeader: undefined | string =
83-
fetchResponse.headers['Retry-After'];
83+
'Retry-After' in fetchResponse.headers
84+
? fetchResponse.headers['Retry-After']
85+
: void 0;
8486
const isAcceptedWithRetryAfter: boolean =
8587
fetchResponse.status == 202 && !(retryAfterHeader == void 0);
8688
if (attemptNumber >= this.maxAttempts) {

src/schemas/v2025R0/collaborationRestrictionV2025R0.ts

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)