• 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/enterpriseConfigurationShieldV2025R0.ts
NEW
1
import { serializeShieldRuleItemV2025R0 } from './shieldRuleItemV2025R0';
×
NEW
2
import { deserializeShieldRuleItemV2025R0 } from './shieldRuleItemV2025R0';
×
3
import { ShieldRuleItemV2025R0 } from './shieldRuleItemV2025R0';
NEW
4
import { BoxSdkError } from '../../box/errors';
×
5
import { SerializedData } from '../../serialization/json';
6
import { sdIsEmpty } from '../../serialization/json';
7
import { sdIsBoolean } from '../../serialization/json';
8
import { sdIsNumber } from '../../serialization/json';
9
import { sdIsString } from '../../serialization/json';
NEW
10
import { sdIsList } from '../../serialization/json';
×
NEW
11
import { sdIsMap } from '../../serialization/json';
×
12
export interface EnterpriseConfigurationShieldV2025R0 {
13
  /**
14
   * The shield rules configuration for the enterprise. */
15
  readonly shieldRules?: readonly ShieldRuleItemV2025R0[];
16
  readonly rawData?: SerializedData;
17
}
NEW
18
export function serializeEnterpriseConfigurationShieldV2025R0(
×
19
  val: EnterpriseConfigurationShieldV2025R0
20
): SerializedData {
NEW
21
  return {
×
22
    ['shield_rules']:
23
      val.shieldRules == void 0
24
        ? val.shieldRules
×
25
        : (val.shieldRules.map(function (
26
            item: ShieldRuleItemV2025R0
27
          ): SerializedData {
NEW
28
            return serializeShieldRuleItemV2025R0(item);
×
29
          }) as readonly any[]),
30
  };
31
}
NEW
32
export function deserializeEnterpriseConfigurationShieldV2025R0(
×
33
  val: SerializedData
34
): EnterpriseConfigurationShieldV2025R0 {
NEW
35
  if (!sdIsMap(val)) {
×
NEW
36
    throw new BoxSdkError({
×
37
      message: 'Expecting a map for "EnterpriseConfigurationShieldV2025R0"',
38
    });
39
  }
NEW
40
  if (!(val.shield_rules == void 0) && !sdIsList(val.shield_rules)) {
×
NEW
41
    throw new BoxSdkError({
×
42
      message:
43
        'Expecting array for "shield_rules" of type "EnterpriseConfigurationShieldV2025R0"',
44
    });
45
  }
46
  const shieldRules: undefined | readonly ShieldRuleItemV2025R0[] =
NEW
47
    val.shield_rules == void 0
×
48
      ? void 0
×
49
      : sdIsList(val.shield_rules)
50
        ? (val.shield_rules.map(function (
×
51
            itm: SerializedData
52
          ): ShieldRuleItemV2025R0 {
NEW
53
            return deserializeShieldRuleItemV2025R0(itm);
×
54
          }) as readonly any[])
55
        : [];
NEW
56
  return {
×
57
    shieldRules: shieldRules,
58
  } satisfies EnterpriseConfigurationShieldV2025R0;
59
}
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