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