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

box / box-node-sdk / 20837121075

31 Dec 2025 02:57PM UTC coverage: 40.459% (-0.4%) from 40.85%
20837121075

push

github

web-flow
test: Remove integration mappings tests (box/box-codegen#912) (#1303)

4610 of 20093 branches covered (22.94%)

Branch coverage included in aggregate %.

17133 of 33648 relevant lines covered (50.92%)

146.64 hits per line

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

27.78
/src/schemas/integrationMappingSlackOptions.ts
1
import { BoxSdkError } from '../box/errors';
237✔
2
import { SerializedData } from '../serialization/json';
3
import { sdIsEmpty } from '../serialization/json';
4
import { sdIsBoolean } from '../serialization/json';
237✔
5
import { sdIsNumber } from '../serialization/json';
6
import { sdIsString } from '../serialization/json';
7
import { sdIsList } from '../serialization/json';
8
import { sdIsMap } from '../serialization/json';
237✔
9
export interface IntegrationMappingSlackOptions {
10
  /**
11
   * Indicates whether or not channel member
12
   * access to the underlying box item
13
   * should be automatically managed.
14
   * Depending on type of channel, access is managed
15
   * through creating collaborations or shared links. */
16
  readonly isAccessManagementDisabled?: boolean;
17
  readonly rawData?: SerializedData;
18
}
19
export function serializeIntegrationMappingSlackOptions(
237✔
20
  val: IntegrationMappingSlackOptions,
21
): SerializedData {
22
  return { ['is_access_management_disabled']: val.isAccessManagementDisabled };
×
23
}
24
export function deserializeIntegrationMappingSlackOptions(
237✔
25
  val: SerializedData,
26
): IntegrationMappingSlackOptions {
27
  if (!sdIsMap(val)) {
×
28
    throw new BoxSdkError({
×
29
      message: 'Expecting a map for "IntegrationMappingSlackOptions"',
30
    });
31
  }
32
  if (
×
33
    !(val.is_access_management_disabled == void 0) &&
×
34
    !sdIsBoolean(val.is_access_management_disabled)
35
  ) {
36
    throw new BoxSdkError({
×
37
      message:
38
        'Expecting boolean for "is_access_management_disabled" of type "IntegrationMappingSlackOptions"',
39
    });
40
  }
41
  const isAccessManagementDisabled: undefined | boolean =
42
    val.is_access_management_disabled == void 0
×
43
      ? void 0
44
      : val.is_access_management_disabled;
45
  return {
×
46
    isAccessManagementDisabled: isAccessManagementDisabled,
47
  } satisfies IntegrationMappingSlackOptions;
48
}
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

© 2026 Coveralls, Inc