• 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/customSessionDurationGroupItemV2025R0.ts
NEW
1
import { BoxSdkError } from '../../box/errors';
×
2
import { SerializedData } from '../../serialization/json';
3
import { sdIsEmpty } from '../../serialization/json';
4
import { sdIsBoolean } from '../../serialization/json';
5
import { sdIsNumber } from '../../serialization/json';
NEW
6
import { sdIsString } from '../../serialization/json';
×
7
import { sdIsList } from '../../serialization/json';
NEW
8
import { sdIsMap } from '../../serialization/json';
×
9
export interface CustomSessionDurationGroupItemV2025R0 {
10
  /**
11
   * Group ID (numerical). */
12
  readonly id?: string;
13
  /**
14
   * Group Name. */
15
  readonly name?: string;
16
  readonly rawData?: SerializedData;
17
}
NEW
18
export function serializeCustomSessionDurationGroupItemV2025R0(
×
19
  val: CustomSessionDurationGroupItemV2025R0
20
): SerializedData {
NEW
21
  return { ['id']: val.id, ['name']: val.name };
×
22
}
NEW
23
export function deserializeCustomSessionDurationGroupItemV2025R0(
×
24
  val: SerializedData
25
): CustomSessionDurationGroupItemV2025R0 {
NEW
26
  if (!sdIsMap(val)) {
×
NEW
27
    throw new BoxSdkError({
×
28
      message: 'Expecting a map for "CustomSessionDurationGroupItemV2025R0"',
29
    });
30
  }
NEW
31
  if (!(val.id == void 0) && !sdIsString(val.id)) {
×
NEW
32
    throw new BoxSdkError({
×
33
      message:
34
        'Expecting string for "id" of type "CustomSessionDurationGroupItemV2025R0"',
35
    });
36
  }
NEW
37
  const id: undefined | string = val.id == void 0 ? void 0 : val.id;
×
NEW
38
  if (!(val.name == void 0) && !sdIsString(val.name)) {
×
NEW
39
    throw new BoxSdkError({
×
40
      message:
41
        'Expecting string for "name" of type "CustomSessionDurationGroupItemV2025R0"',
42
    });
43
  }
NEW
44
  const name: undefined | string = val.name == void 0 ? void 0 : val.name;
×
NEW
45
  return { id: id, name: name } satisfies CustomSessionDurationGroupItemV2025R0;
×
46
}
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