• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

box / box-node-sdk / 18874824868

28 Oct 2025 12:30PM UTC coverage: 5.219% (-0.2%) from 5.39%
18874824868

Pull #1149

github

web-flow
Merge c5f88e527 into 45de76d0d
Pull Request #1149: feat(boxsdkgen): Add GET enterprise configuration endpoint (box/box-openapi#559)

835 of 28525 branches covered (2.93%)

Branch coverage included in aggregate %.

0 of 891 new or added lines in 25 files covered. (0.0%)

1 existing line in 1 file now uncovered.

2535 of 36047 relevant lines covered (7.03%)

42.44 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/sdk-gen/schemas/v2025R0/enterpriseConfigurationItemV2025R0.ts
NEW
1
import { BoxSdkError } from '../../box/errors';
×
2
import { SerializedData } from '../../serialization/json';
3
import { sdIsEmpty } from '../../serialization/json';
NEW
4
import { sdIsBoolean } from '../../serialization/json';
×
5
import { sdIsNumber } from '../../serialization/json';
6
import { sdIsString } from '../../serialization/json';
7
import { sdIsList } from '../../serialization/json';
NEW
8
import { sdIsMap } from '../../serialization/json';
×
9
export interface EnterpriseConfigurationItemV2025R0 {
10
  /**
11
   * Indicates whether a configuration is used for a given enterprise. */
12
  readonly isUsed?: boolean;
13
  readonly rawData?: SerializedData;
14
}
NEW
15
export function serializeEnterpriseConfigurationItemV2025R0(
×
16
  val: EnterpriseConfigurationItemV2025R0
17
): SerializedData {
NEW
18
  return { ['is_used']: val.isUsed };
×
19
}
NEW
20
export function deserializeEnterpriseConfigurationItemV2025R0(
×
21
  val: SerializedData
22
): EnterpriseConfigurationItemV2025R0 {
NEW
23
  if (!sdIsMap(val)) {
×
NEW
24
    throw new BoxSdkError({
×
25
      message: 'Expecting a map for "EnterpriseConfigurationItemV2025R0"',
26
    });
27
  }
NEW
28
  if (!(val.is_used == void 0) && !sdIsBoolean(val.is_used)) {
×
NEW
29
    throw new BoxSdkError({
×
30
      message:
31
        'Expecting boolean for "is_used" of type "EnterpriseConfigurationItemV2025R0"',
32
    });
33
  }
34
  const isUsed: undefined | boolean =
NEW
35
    val.is_used == void 0 ? void 0 : val.is_used;
×
NEW
36
  return { isUsed: isUsed } satisfies EnterpriseConfigurationItemV2025R0;
×
37
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc