• 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/enterpriseConfigurationItemBooleanV2025R0.ts
NEW
1
import { serializeEnterpriseConfigurationItemV2025R0 } from './enterpriseConfigurationItemV2025R0';
×
2
import { deserializeEnterpriseConfigurationItemV2025R0 } from './enterpriseConfigurationItemV2025R0';
3
import { EnterpriseConfigurationItemV2025R0 } from './enterpriseConfigurationItemV2025R0';
NEW
4
import { BoxSdkError } from '../../box/errors';
×
5
import { SerializedData } from '../../serialization/json';
6
import { sdIsEmpty } from '../../serialization/json';
NEW
7
import { sdIsBoolean } from '../../serialization/json';
×
8
import { sdIsNumber } from '../../serialization/json';
9
import { sdIsString } from '../../serialization/json';
10
import { sdIsList } from '../../serialization/json';
NEW
11
import { sdIsMap } from '../../serialization/json';
×
12
export type EnterpriseConfigurationItemBooleanV2025R0 =
13
  EnterpriseConfigurationItemV2025R0 & {
14
    /**
15
     * The value of the enterprise configuration as a boolean. */
16
    readonly value?: boolean | null;
17
  };
NEW
18
export function serializeEnterpriseConfigurationItemBooleanV2025R0(
×
19
  val: EnterpriseConfigurationItemBooleanV2025R0
20
): SerializedData {
NEW
21
  const base: any = serializeEnterpriseConfigurationItemV2025R0(val);
×
NEW
22
  if (!sdIsMap(base)) {
×
NEW
23
    throw new BoxSdkError({
×
24
      message:
25
        'Expecting a map for "EnterpriseConfigurationItemBooleanV2025R0"',
26
    });
27
  }
NEW
28
  return { ...base, ...{ ['value']: val.value } };
×
29
}
NEW
30
export function deserializeEnterpriseConfigurationItemBooleanV2025R0(
×
31
  val: SerializedData
32
): EnterpriseConfigurationItemBooleanV2025R0 {
NEW
33
  if (!sdIsMap(val)) {
×
NEW
34
    throw new BoxSdkError({
×
35
      message:
36
        'Expecting a map for "EnterpriseConfigurationItemBooleanV2025R0"',
37
    });
38
  }
NEW
39
  if (!(val.value == void 0) && !sdIsBoolean(val.value)) {
×
NEW
40
    throw new BoxSdkError({
×
41
      message:
42
        'Expecting boolean for "value" of type "EnterpriseConfigurationItemBooleanV2025R0"',
43
    });
44
  }
NEW
45
  const value: undefined | boolean = val.value == void 0 ? void 0 : val.value;
×
NEW
46
  if (!(val.is_used == void 0) && !sdIsBoolean(val.is_used)) {
×
NEW
47
    throw new BoxSdkError({
×
48
      message:
49
        'Expecting boolean for "is_used" of type "EnterpriseConfigurationItemBooleanV2025R0"',
50
    });
51
  }
52
  const isUsed: undefined | boolean =
NEW
53
    val.is_used == void 0 ? void 0 : val.is_used;
×
NEW
54
  return {
×
55
    value: value,
56
    isUsed: isUsed,
57
  } satisfies EnterpriseConfigurationItemBooleanV2025R0;
58
}
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