RocketChat/Rocket.Chat

View on GitHub
packages/rest-typings/src/v1/omnichannel.ts

Summary

Maintainability
F
1 mo
Test Coverage

File omnichannel.ts has 3749 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import type {
    IOmnichannelCannedResponse,
    ILivechatAgent,
    ILivechatDepartment,
    ILivechatDepartmentAgents,
Severity: Major
Found in packages/rest-typings/src/v1/omnichannel.ts - About 1 wk to fix

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

    const LivechatUsersManagerGETSchema = {
        type: 'object',
        properties: {
            text: {
                type: 'string',
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 1 other location - About 6 hrs to fix
    packages/rest-typings/src/v1/users/UsersUpdateOwnBasicInfoParamsPOST.ts on lines 25..67

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 168.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

    const LivechatPrioritiesPropsSchema = {
        type: 'object',
        properties: {
            text: {
                type: 'string',
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 1 other location - About 4 hrs to fix
    packages/rest-typings/src/v1/voip.ts on lines 268..298

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 121.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

        properties: {
            count: {
                type: 'number',
                nullable: true,
            },
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 1 other location - About 4 hrs to fix
    packages/rest-typings/src/v1/misc.ts on lines 68..97

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 118.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

    const LivechatUsersAgentSchema = {
        type: 'object',
        properties: {
            text: {
                type: 'string',
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 1 other location - About 3 hrs to fix
    packages/rest-typings/src/v1/statistics.ts on lines 47..73

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 110.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 10 locations. Consider refactoring.
    Open

    const LivechatDepartmentsByUnitIdSchema = {
        type: 'object',
        properties: {
            text: {
                type: 'string',
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 9 other locations - About 3 hrs to fix
    packages/rest-typings/src/v1/channels/ChannelsGetAllUserMentionsByChannelProps.ts on lines 9..35
    packages/rest-typings/src/v1/channels/ChannelsMessagesProps.ts on lines 11..37
    packages/rest-typings/src/v1/chat.ts on lines 262..287
    packages/rest-typings/src/v1/omnichannel.ts on lines 320..345
    packages/rest-typings/src/v1/omnichannel.ts on lines 444..469
    packages/rest-typings/src/v1/omnichannel.ts on lines 705..730
    packages/rest-typings/src/v1/omnichannel.ts on lines 821..846
    packages/rest-typings/src/v1/roles.ts on lines 67..92
    packages/rest-typings/src/v1/rooms.ts on lines 26..51

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 106.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 10 locations. Consider refactoring.
    Open

    const LiveChatRoomForwardSchema = {
        type: 'object',
        properties: {
            roomId: {
                type: 'string',
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 9 other locations - About 3 hrs to fix
    packages/rest-typings/src/v1/channels/ChannelsGetAllUserMentionsByChannelProps.ts on lines 9..35
    packages/rest-typings/src/v1/channels/ChannelsMessagesProps.ts on lines 11..37
    packages/rest-typings/src/v1/chat.ts on lines 262..287
    packages/rest-typings/src/v1/omnichannel.ts on lines 444..469
    packages/rest-typings/src/v1/omnichannel.ts on lines 705..730
    packages/rest-typings/src/v1/omnichannel.ts on lines 736..761
    packages/rest-typings/src/v1/omnichannel.ts on lines 821..846
    packages/rest-typings/src/v1/roles.ts on lines 67..92
    packages/rest-typings/src/v1/rooms.ts on lines 26..51

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 106.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 10 locations. Consider refactoring.
    Open

    const LivechatUsersManagerPOSTSchema = {
        type: 'object',
        properties: {
            username: {
                type: 'string',
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 9 other locations - About 3 hrs to fix
    packages/rest-typings/src/v1/channels/ChannelsGetAllUserMentionsByChannelProps.ts on lines 9..35
    packages/rest-typings/src/v1/channels/ChannelsMessagesProps.ts on lines 11..37
    packages/rest-typings/src/v1/chat.ts on lines 262..287
    packages/rest-typings/src/v1/omnichannel.ts on lines 320..345
    packages/rest-typings/src/v1/omnichannel.ts on lines 444..469
    packages/rest-typings/src/v1/omnichannel.ts on lines 705..730
    packages/rest-typings/src/v1/omnichannel.ts on lines 736..761
    packages/rest-typings/src/v1/roles.ts on lines 67..92
    packages/rest-typings/src/v1/rooms.ts on lines 26..51

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 106.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 10 locations. Consider refactoring.
    Open

    const LivechatDepartmentsByUnitSchema = {
        type: 'object',
        properties: {
            text: {
                type: 'string',
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 9 other locations - About 3 hrs to fix
    packages/rest-typings/src/v1/channels/ChannelsGetAllUserMentionsByChannelProps.ts on lines 9..35
    packages/rest-typings/src/v1/channels/ChannelsMessagesProps.ts on lines 11..37
    packages/rest-typings/src/v1/chat.ts on lines 262..287
    packages/rest-typings/src/v1/omnichannel.ts on lines 320..345
    packages/rest-typings/src/v1/omnichannel.ts on lines 444..469
    packages/rest-typings/src/v1/omnichannel.ts on lines 736..761
    packages/rest-typings/src/v1/omnichannel.ts on lines 821..846
    packages/rest-typings/src/v1/roles.ts on lines 67..92
    packages/rest-typings/src/v1/rooms.ts on lines 26..51

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 106.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 10 locations. Consider refactoring.
    Open

    const LivechatMonitorsListSchema = {
        type: 'object',
        properties: {
            text: {
                type: 'string',
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 9 other locations - About 3 hrs to fix
    packages/rest-typings/src/v1/channels/ChannelsGetAllUserMentionsByChannelProps.ts on lines 9..35
    packages/rest-typings/src/v1/channels/ChannelsMessagesProps.ts on lines 11..37
    packages/rest-typings/src/v1/chat.ts on lines 262..287
    packages/rest-typings/src/v1/omnichannel.ts on lines 320..345
    packages/rest-typings/src/v1/omnichannel.ts on lines 705..730
    packages/rest-typings/src/v1/omnichannel.ts on lines 736..761
    packages/rest-typings/src/v1/omnichannel.ts on lines 821..846
    packages/rest-typings/src/v1/roles.ts on lines 67..92
    packages/rest-typings/src/v1/rooms.ts on lines 26..51

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 106.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 3 locations. Consider refactoring.
    Open

    const DELETELivechatMessageIdParamsSchema = {
        type: 'object',
        properties: {
            token: {
                type: 'string',
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 2 other locations - About 3 hrs to fix
    packages/rest-typings/src/v1/chat.ts on lines 618..642
    packages/rest-typings/src/v1/chat.ts on lines 680..704

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 102.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

    const POSTLivechatOfflineMessageParamsSchema = {
        type: 'object',
        properties: {
            name: {
                type: 'string',
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 1 other location - About 3 hrs to fix
    packages/rest-typings/src/v1/mailer/MailerParamsPOST.ts on lines 15..38

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 98.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 4 locations. Consider refactoring.
    Open

    const GETLivechatPrioritiesParamsSchema = {
        type: 'object',
        properties: {
            count: {
                type: 'number',
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 3 other locations - About 2 hrs to fix
    packages/rest-typings/src/v1/email-inbox.ts on lines 13..35
    packages/rest-typings/src/v1/omnichannel.ts on lines 1048..1070
    packages/rest-typings/src/v1/voip.ts on lines 27..49

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 94.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 4 locations. Consider refactoring.
    Open

    const LivechatRidMessagesSchema = {
        type: 'object',
        properties: {
            count: {
                type: 'number',
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 3 other locations - About 2 hrs to fix
    packages/rest-typings/src/v1/email-inbox.ts on lines 13..35
    packages/rest-typings/src/v1/omnichannel.ts on lines 2812..2834
    packages/rest-typings/src/v1/voip.ts on lines 27..49

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 94.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 5 locations. Consider refactoring.
    Open

    const GETLivechatInquiriesQueuedForUserParamsSchema = {
        type: 'object',
        properties: {
            count: {
                type: 'number',
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 4 other locations - About 2 hrs to fix
    packages/rest-typings/src/v1/directory.ts on lines 13..34
    packages/rest-typings/src/v1/federation/FederationPublicRoomsProps.ts on lines 12..33
    packages/rest-typings/src/v1/omnichannel.ts on lines 2877..2898
    packages/rest-typings/src/v1/omnichannel.ts on lines 2926..2947

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 88.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 5 locations. Consider refactoring.
    Open

    const GETLivechatInquiriesQueuedParamsSchema = {
        type: 'object',
        properties: {
            count: {
                type: 'number',
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 4 other locations - About 2 hrs to fix
    packages/rest-typings/src/v1/directory.ts on lines 13..34
    packages/rest-typings/src/v1/federation/FederationPublicRoomsProps.ts on lines 12..33
    packages/rest-typings/src/v1/omnichannel.ts on lines 2877..2898
    packages/rest-typings/src/v1/omnichannel.ts on lines 2953..2974

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 88.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 5 locations. Consider refactoring.
    Open

    const GETLivechatInquiriesListParamsSchema = {
        type: 'object',
        properties: {
            count: {
                type: 'number',
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 4 other locations - About 2 hrs to fix
    packages/rest-typings/src/v1/directory.ts on lines 13..34
    packages/rest-typings/src/v1/federation/FederationPublicRoomsProps.ts on lines 12..33
    packages/rest-typings/src/v1/omnichannel.ts on lines 2926..2947
    packages/rest-typings/src/v1/omnichannel.ts on lines 2953..2974

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 88.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 9 locations. Consider refactoring.
    Open

    const GETOmnichannelContactSearchSchema = {
        anyOf: [
            {
                type: 'object',
                properties: {
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 8 other locations - About 2 hrs to fix
    packages/rest-typings/src/v1/channels/ChannelsArchiveProps.ts on lines 6..29
    packages/rest-typings/src/v1/channels/ChannelsConvertToTeamProps.ts on lines 10..29
    packages/rest-typings/src/v1/channels/ChannelsDeleteProps.ts on lines 7..30
    packages/rest-typings/src/v1/channels/ChannelsLeaveProps.ts on lines 7..30
    packages/rest-typings/src/v1/channels/ChannelsRolesProps.ts on lines 6..29
    packages/rest-typings/src/v1/channels/ChannelsUnarchiveProps.ts on lines 6..29
    packages/rest-typings/src/v1/dm/DmLeaveProps.ts on lines 13..36
    packages/rest-typings/src/v1/rooms.ts on lines 95..118

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 86.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

    const LivechatAnalyticsDepartmentsAmountOfChatsSchema = {
        type: 'object',
        properties: {
            start: {
                type: 'string',
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 1 other location - About 2 hrs to fix
    packages/rest-typings/src/v1/chat.ts on lines 417..437

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 86.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

    const LivechatAnalyticsAgentOverviewPropsSchema = {
        type: 'object',
        properties: {
            name: {
                type: 'string',
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 1 other location - About 2 hrs to fix
    packages/rest-typings/src/v1/omnichannel.ts on lines 3384..3403

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 82.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

    const LivechatAnalyticsOverviewPropsSchema = {
        type: 'object',
        properties: {
            name: {
                type: 'string',
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 1 other location - About 2 hrs to fix
    packages/rest-typings/src/v1/omnichannel.ts on lines 3352..3371

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 82.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 3 locations. Consider refactoring.
    Open

    const POSTLivechatCustomFieldParamsSchema = {
        type: 'object',
        properties: {
            token: {
                type: 'string',
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 2 other locations - About 2 hrs to fix
    packages/rest-typings/src/v1/oauthapps/UpdateOAuthAppParamsPOST.ts on lines 12..30
    packages/rest-typings/src/v1/omnichannel.ts on lines 252..270

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 78.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 3 locations. Consider refactoring.
    Open

    const LivechatVisitorCallStatusSchema = {
        type: 'object',
        properties: {
            token: {
                type: 'string',
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 2 other locations - About 2 hrs to fix
    packages/rest-typings/src/v1/oauthapps/UpdateOAuthAppParamsPOST.ts on lines 12..30
    packages/rest-typings/src/v1/omnichannel.ts on lines 1748..1766

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 78.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Identical blocks of code found in 2 locations. Consider refactoring.
    Open

                queue: {
                    _id: string;
                    user: { _id: string; userId: string; username: string; status: string };
                    department: { _id: string; name: string };
                    chats: number;
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 1 other location - About 1 hr to fix
    apps/meteor/app/livechat/server/api/lib/queue.ts on lines 16..21

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 74.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

        '/v1/livechat/users/manager/:_id': {
            GET: () => { user: Pick<ILivechatAgent, '_id' | 'username' | 'name' | 'status' | 'statusLivechat' | 'emails' | 'livechat'> | null };
            DELETE: () => void;
        };
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 1 other location - About 1 hr to fix
    packages/rest-typings/src/v1/omnichannel.ts on lines 3650..3653

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 74.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

        '/v1/livechat/users/user/:_id': {
            GET: () => { user: Pick<ILivechatAgent, '_id' | 'username' | 'name' | 'status' | 'statusLivechat' | 'emails' | 'livechat'> | null };
            DELETE: () => void;
        };
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 1 other location - About 1 hr to fix
    packages/rest-typings/src/v1/omnichannel.ts on lines 3646..3649

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 74.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 4 locations. Consider refactoring.
    Open

    const GETLivechatVisitorsChatHistoryRoomRoomIdVisitorVisitorIdParamsSchema = {
        type: 'object',
        properties: {
            count: {
                type: 'number',
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 3 other locations - About 1 hr to fix
    packages/rest-typings/src/v1/omnichannel.ts on lines 1720..1737
    packages/rest-typings/src/v1/omnichannel.ts on lines 2463..2480
    packages/rest-typings/src/v1/omnichannel.ts on lines 2642..2659

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 72.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 4 locations. Consider refactoring.
    Open

    const GETLivechatVisitorsPagesVisitedRoomIdParamsSchema = {
        type: 'object',
        properties: {
            count: {
                type: 'number',
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 3 other locations - About 1 hr to fix
    packages/rest-typings/src/v1/omnichannel.ts on lines 1720..1737
    packages/rest-typings/src/v1/omnichannel.ts on lines 2488..2505
    packages/rest-typings/src/v1/omnichannel.ts on lines 2642..2659

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 72.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 4 locations. Consider refactoring.
    Open

    const GETLivechatTriggersParamsSchema = {
        type: 'object',
        properties: {
            count: {
                type: 'number',
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 3 other locations - About 1 hr to fix
    packages/rest-typings/src/v1/omnichannel.ts on lines 1720..1737
    packages/rest-typings/src/v1/omnichannel.ts on lines 2463..2480
    packages/rest-typings/src/v1/omnichannel.ts on lines 2488..2505

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 72.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 4 locations. Consider refactoring.
    Open

    const GETLivechatConfigParamsSchema = {
        type: 'object',
        properties: {
            token: {
                type: 'string',
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 3 other locations - About 1 hr to fix
    packages/rest-typings/src/v1/omnichannel.ts on lines 2463..2480
    packages/rest-typings/src/v1/omnichannel.ts on lines 2488..2505
    packages/rest-typings/src/v1/omnichannel.ts on lines 2642..2659

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 72.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 11 locations. Consider refactoring.
    Open

    const LivechatAnalyticsDepartmentsTotalTransferredChatsSchema = {
        type: 'object',
        properties: {
            start: {
                type: 'string',
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 10 other locations - About 1 hr to fix
    packages/rest-typings/src/v1/chat.ts on lines 318..334
    packages/rest-typings/src/v1/omnichannel.ts on lines 126..142
    packages/rest-typings/src/v1/omnichannel.ts on lines 1448..1464
    packages/rest-typings/src/v1/omnichannel.ts on lines 1509..1525
    packages/rest-typings/src/v1/omnichannel.ts on lines 1537..1553
    packages/rest-typings/src/v1/omnichannel.ts on lines 1564..1580
    packages/rest-typings/src/v1/omnichannel.ts on lines 1592..1608
    packages/rest-typings/src/v1/omnichannel.ts on lines 1648..1664
    packages/rest-typings/src/v1/omnichannel.ts on lines 1676..1692
    packages/rest-typings/src/v1/users/UserSetActiveStatusParamsPOST.ts on lines 13..22

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 70.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 11 locations. Consider refactoring.
    Open

    const LivechatAnalyticsDepartmentsAverageChatDurationTimeSchema = {
        type: 'object',
        properties: {
            start: {
                type: 'string',
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 10 other locations - About 1 hr to fix
    packages/rest-typings/src/v1/chat.ts on lines 318..334
    packages/rest-typings/src/v1/omnichannel.ts on lines 126..142
    packages/rest-typings/src/v1/omnichannel.ts on lines 1448..1464
    packages/rest-typings/src/v1/omnichannel.ts on lines 1509..1525
    packages/rest-typings/src/v1/omnichannel.ts on lines 1564..1580
    packages/rest-typings/src/v1/omnichannel.ts on lines 1592..1608
    packages/rest-typings/src/v1/omnichannel.ts on lines 1620..1636
    packages/rest-typings/src/v1/omnichannel.ts on lines 1648..1664
    packages/rest-typings/src/v1/omnichannel.ts on lines 1676..1692
    packages/rest-typings/src/v1/users/UserSetActiveStatusParamsPOST.ts on lines 13..22

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 70.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 11 locations. Consider refactoring.
    Open

    const LivechatAnalyticsDepartmentsPercentageAbandonedChatsSchema = {
        type: 'object',
        properties: {
            start: {
                type: 'string',
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 10 other locations - About 1 hr to fix
    packages/rest-typings/src/v1/chat.ts on lines 318..334
    packages/rest-typings/src/v1/omnichannel.ts on lines 126..142
    packages/rest-typings/src/v1/omnichannel.ts on lines 1448..1464
    packages/rest-typings/src/v1/omnichannel.ts on lines 1509..1525
    packages/rest-typings/src/v1/omnichannel.ts on lines 1537..1553
    packages/rest-typings/src/v1/omnichannel.ts on lines 1564..1580
    packages/rest-typings/src/v1/omnichannel.ts on lines 1592..1608
    packages/rest-typings/src/v1/omnichannel.ts on lines 1620..1636
    packages/rest-typings/src/v1/omnichannel.ts on lines 1648..1664
    packages/rest-typings/src/v1/users/UserSetActiveStatusParamsPOST.ts on lines 13..22

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 70.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 11 locations. Consider refactoring.
    Open

    const LivechatAnalyticsDepartmentsTotalAbandonedChatsSchema = {
        type: 'object',
        properties: {
            start: {
                type: 'string',
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 10 other locations - About 1 hr to fix
    packages/rest-typings/src/v1/chat.ts on lines 318..334
    packages/rest-typings/src/v1/omnichannel.ts on lines 126..142
    packages/rest-typings/src/v1/omnichannel.ts on lines 1448..1464
    packages/rest-typings/src/v1/omnichannel.ts on lines 1509..1525
    packages/rest-typings/src/v1/omnichannel.ts on lines 1537..1553
    packages/rest-typings/src/v1/omnichannel.ts on lines 1564..1580
    packages/rest-typings/src/v1/omnichannel.ts on lines 1592..1608
    packages/rest-typings/src/v1/omnichannel.ts on lines 1620..1636
    packages/rest-typings/src/v1/omnichannel.ts on lines 1676..1692
    packages/rest-typings/src/v1/users/UserSetActiveStatusParamsPOST.ts on lines 13..22

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 70.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 11 locations. Consider refactoring.
    Open

    const LivechatDepartmentAutocompleteSchema = {
        type: 'object',
        properties: {
            selector: {
                type: 'string',
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 10 other locations - About 1 hr to fix
    packages/rest-typings/src/v1/chat.ts on lines 318..334
    packages/rest-typings/src/v1/omnichannel.ts on lines 1448..1464
    packages/rest-typings/src/v1/omnichannel.ts on lines 1509..1525
    packages/rest-typings/src/v1/omnichannel.ts on lines 1537..1553
    packages/rest-typings/src/v1/omnichannel.ts on lines 1564..1580
    packages/rest-typings/src/v1/omnichannel.ts on lines 1592..1608
    packages/rest-typings/src/v1/omnichannel.ts on lines 1620..1636
    packages/rest-typings/src/v1/omnichannel.ts on lines 1648..1664
    packages/rest-typings/src/v1/omnichannel.ts on lines 1676..1692
    packages/rest-typings/src/v1/users/UserSetActiveStatusParamsPOST.ts on lines 13..22

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 70.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 11 locations. Consider refactoring.
    Open

    const LivechatAnalyticsDepartmentsAverageServiceTimeSchema = {
        type: 'object',
        properties: {
            start: {
                type: 'string',
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 10 other locations - About 1 hr to fix
    packages/rest-typings/src/v1/chat.ts on lines 318..334
    packages/rest-typings/src/v1/omnichannel.ts on lines 126..142
    packages/rest-typings/src/v1/omnichannel.ts on lines 1448..1464
    packages/rest-typings/src/v1/omnichannel.ts on lines 1537..1553
    packages/rest-typings/src/v1/omnichannel.ts on lines 1564..1580
    packages/rest-typings/src/v1/omnichannel.ts on lines 1592..1608
    packages/rest-typings/src/v1/omnichannel.ts on lines 1620..1636
    packages/rest-typings/src/v1/omnichannel.ts on lines 1648..1664
    packages/rest-typings/src/v1/omnichannel.ts on lines 1676..1692
    packages/rest-typings/src/v1/users/UserSetActiveStatusParamsPOST.ts on lines 13..22

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 70.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 11 locations. Consider refactoring.
    Open

    const LivechatAnalyticsDepartmentsTotalServiceTimeSchema = {
        type: 'object',
        properties: {
            start: {
                type: 'string',
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 10 other locations - About 1 hr to fix
    packages/rest-typings/src/v1/chat.ts on lines 318..334
    packages/rest-typings/src/v1/omnichannel.ts on lines 126..142
    packages/rest-typings/src/v1/omnichannel.ts on lines 1448..1464
    packages/rest-typings/src/v1/omnichannel.ts on lines 1509..1525
    packages/rest-typings/src/v1/omnichannel.ts on lines 1537..1553
    packages/rest-typings/src/v1/omnichannel.ts on lines 1592..1608
    packages/rest-typings/src/v1/omnichannel.ts on lines 1620..1636
    packages/rest-typings/src/v1/omnichannel.ts on lines 1648..1664
    packages/rest-typings/src/v1/omnichannel.ts on lines 1676..1692
    packages/rest-typings/src/v1/users/UserSetActiveStatusParamsPOST.ts on lines 13..22

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 70.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 11 locations. Consider refactoring.
    Open

    const LivechatAnalyticsDepartmentsAverageWaitingTimeSchema = {
        type: 'object',
        properties: {
            start: {
                type: 'string',
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 10 other locations - About 1 hr to fix
    packages/rest-typings/src/v1/chat.ts on lines 318..334
    packages/rest-typings/src/v1/omnichannel.ts on lines 126..142
    packages/rest-typings/src/v1/omnichannel.ts on lines 1448..1464
    packages/rest-typings/src/v1/omnichannel.ts on lines 1509..1525
    packages/rest-typings/src/v1/omnichannel.ts on lines 1537..1553
    packages/rest-typings/src/v1/omnichannel.ts on lines 1564..1580
    packages/rest-typings/src/v1/omnichannel.ts on lines 1620..1636
    packages/rest-typings/src/v1/omnichannel.ts on lines 1648..1664
    packages/rest-typings/src/v1/omnichannel.ts on lines 1676..1692
    packages/rest-typings/src/v1/users/UserSetActiveStatusParamsPOST.ts on lines 13..22

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 70.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 11 locations. Consider refactoring.
    Open

    const LivechatAnalyticsAgentsAvailableForServiceHistorySchema = {
        type: 'object',
        properties: {
            start: {
                type: 'string',
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 10 other locations - About 1 hr to fix
    packages/rest-typings/src/v1/chat.ts on lines 318..334
    packages/rest-typings/src/v1/omnichannel.ts on lines 126..142
    packages/rest-typings/src/v1/omnichannel.ts on lines 1509..1525
    packages/rest-typings/src/v1/omnichannel.ts on lines 1537..1553
    packages/rest-typings/src/v1/omnichannel.ts on lines 1564..1580
    packages/rest-typings/src/v1/omnichannel.ts on lines 1592..1608
    packages/rest-typings/src/v1/omnichannel.ts on lines 1620..1636
    packages/rest-typings/src/v1/omnichannel.ts on lines 1648..1664
    packages/rest-typings/src/v1/omnichannel.ts on lines 1676..1692
    packages/rest-typings/src/v1/users/UserSetActiveStatusParamsPOST.ts on lines 13..22

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 70.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Identical blocks of code found in 2 locations. Consider refactoring.
    Open

        '/v1/livechat/users/manager': {
            GET: (params: LivechatUsersManagerGETProps) => PaginatedResult<{
                users: ILivechatAgent[];
            }>;
            POST: (params: POSTLivechatUsersTypeProps) => { success: boolean };
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 1 other location - About 1 hr to fix
    packages/rest-typings/src/v1/omnichannel.ts on lines 3640..3645

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 69.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Identical blocks of code found in 2 locations. Consider refactoring.
    Open

        '/v1/livechat/users/user': {
            GET: (params: LivechatUsersManagerGETProps) => PaginatedResult<{
                users: ILivechatAgent[];
            }>;
            POST: (params: POSTLivechatUsersTypeProps) => { success: boolean };
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 1 other location - About 1 hr to fix
    packages/rest-typings/src/v1/omnichannel.ts on lines 3633..3638

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 69.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

                items: {
                    type: 'object',
                    properties: {
                        agentId: {
                            type: 'string',
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 1 other location - About 1 hr to fix
    packages/rest-typings/src/v1/omnichannel.ts on lines 2183..2200

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 68.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

    const GETLivechatRoomParamsSchema = {
        type: 'object',
        properties: {
            token: {
                type: 'string',
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 1 other location - About 1 hr to fix
    packages/rest-typings/src/v1/omnichannel.ts on lines 629..646

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 68.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

            extraData: {
                type: 'array',
                items: {
                    type: 'object',
                    properties: {
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 1 other location - About 1 hr to fix
    packages/rest-typings/src/v1/omnichannel.ts on lines 3467..3483

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 68.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

            extraData: {
                type: 'array',
                items: {
                    type: 'object',
                    properties: {
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 1 other location - About 1 hr to fix
    packages/rest-typings/src/v1/omnichannel.ts on lines 3429..3445

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 68.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 7 locations. Consider refactoring.
    Open

    const PUTLivechatRoomVisitorParamsSchema = {
        type: 'object',
        properties: {
            rid: {
                type: 'string',
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 6 other locations - About 1 hr to fix
    packages/rest-typings/src/v1/chat.ts on lines 393..408
    packages/rest-typings/src/v1/e2e.ts on lines 51..66
    packages/rest-typings/src/v1/oauthapps/OAuthAppsAddParamsPOST.ts on lines 9..24
    packages/rest-typings/src/v1/omnichannel.ts on lines 1850..1865
    packages/rest-typings/src/v1/omnichannel.ts on lines 2030..2045
    packages/rest-typings/src/v1/omnichannel.ts on lines 2298..2313

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 66.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 7 locations. Consider refactoring.
    Open

    const POSTLivechatTranscriptParamsSchema = {
        type: 'object',
        properties: {
            rid: {
                type: 'string',
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 6 other locations - About 1 hr to fix
    packages/rest-typings/src/v1/chat.ts on lines 393..408
    packages/rest-typings/src/v1/e2e.ts on lines 51..66
    packages/rest-typings/src/v1/oauthapps/OAuthAppsAddParamsPOST.ts on lines 9..24
    packages/rest-typings/src/v1/omnichannel.ts on lines 2030..2045
    packages/rest-typings/src/v1/omnichannel.ts on lines 2298..2313
    packages/rest-typings/src/v1/omnichannel.ts on lines 2365..2380

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 66.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 7 locations. Consider refactoring.
    Open

    const POSTLivechatRoomTransferParamsSchema = {
        type: 'object',
        properties: {
            token: {
                type: 'string',
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 6 other locations - About 1 hr to fix
    packages/rest-typings/src/v1/chat.ts on lines 393..408
    packages/rest-typings/src/v1/e2e.ts on lines 51..66
    packages/rest-typings/src/v1/oauthapps/OAuthAppsAddParamsPOST.ts on lines 9..24
    packages/rest-typings/src/v1/omnichannel.ts on lines 1850..1865
    packages/rest-typings/src/v1/omnichannel.ts on lines 2030..2045
    packages/rest-typings/src/v1/omnichannel.ts on lines 2365..2380

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 66.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 7 locations. Consider refactoring.
    Open

    const PUTLivechatMessageIdParamsSchema = {
        type: 'object',
        properties: {
            token: {
                type: 'string',
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 6 other locations - About 1 hr to fix
    packages/rest-typings/src/v1/chat.ts on lines 393..408
    packages/rest-typings/src/v1/e2e.ts on lines 51..66
    packages/rest-typings/src/v1/oauthapps/OAuthAppsAddParamsPOST.ts on lines 9..24
    packages/rest-typings/src/v1/omnichannel.ts on lines 1850..1865
    packages/rest-typings/src/v1/omnichannel.ts on lines 2298..2313
    packages/rest-typings/src/v1/omnichannel.ts on lines 2365..2380

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 66.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 6 locations. Consider refactoring.
    Open

        '/v1/livechat/analytics/departments/percentage-abandoned-chats': {
            GET: (params: LivechatAnalyticsDepartmentsPercentageAbandonedChatsProps) => PaginatedResult<{
                departments: {
                    _id: string;
                    percentageOfAbandonedRooms: number;
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 5 other locations - About 1 hr to fix
    packages/rest-typings/src/v1/omnichannel.ts on lines 4025..4032
    packages/rest-typings/src/v1/omnichannel.ts on lines 4033..4040
    packages/rest-typings/src/v1/omnichannel.ts on lines 4050..4057
    packages/rest-typings/src/v1/omnichannel.ts on lines 4058..4065
    packages/rest-typings/src/v1/omnichannel.ts on lines 4066..4073

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 58.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 6 locations. Consider refactoring.
    Open

        '/v1/livechat/analytics/departments/total-abandoned-chats': {
            GET: (params: LivechatAnalyticsDepartmentsTotalAbandonedChatsProps) => PaginatedResult<{
                departments: {
                    _id: string;
                    abandonedRooms: number;
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 5 other locations - About 1 hr to fix
    packages/rest-typings/src/v1/omnichannel.ts on lines 4025..4032
    packages/rest-typings/src/v1/omnichannel.ts on lines 4033..4040
    packages/rest-typings/src/v1/omnichannel.ts on lines 4050..4057
    packages/rest-typings/src/v1/omnichannel.ts on lines 4058..4065
    packages/rest-typings/src/v1/omnichannel.ts on lines 4074..4081

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 58.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 6 locations. Consider refactoring.
    Open

        '/v1/livechat/analytics/departments/average-chat-duration-time': {
            GET: (params: LivechatAnalyticsDepartmentsAverageChatDurationTimeProps) => PaginatedResult<{
                departments: {
                    _id: string;
                    averageChatDurationTimeInSeconds: number;
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 5 other locations - About 1 hr to fix
    packages/rest-typings/src/v1/omnichannel.ts on lines 4025..4032
    packages/rest-typings/src/v1/omnichannel.ts on lines 4050..4057
    packages/rest-typings/src/v1/omnichannel.ts on lines 4058..4065
    packages/rest-typings/src/v1/omnichannel.ts on lines 4066..4073
    packages/rest-typings/src/v1/omnichannel.ts on lines 4074..4081

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 58.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 6 locations. Consider refactoring.
    Open

        '/v1/livechat/analytics/departments/average-service-time': {
            GET: (params: LivechatAnalyticsDepartmentsAverageServiceTimeProps) => PaginatedResult<{
                departments: {
                    _id: string;
                    averageServiceTimeInSeconds: number;
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 5 other locations - About 1 hr to fix
    packages/rest-typings/src/v1/omnichannel.ts on lines 4033..4040
    packages/rest-typings/src/v1/omnichannel.ts on lines 4050..4057
    packages/rest-typings/src/v1/omnichannel.ts on lines 4058..4065
    packages/rest-typings/src/v1/omnichannel.ts on lines 4066..4073
    packages/rest-typings/src/v1/omnichannel.ts on lines 4074..4081

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 58.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 6 locations. Consider refactoring.
    Open

        '/v1/livechat/analytics/departments/total-transferred-chats': {
            GET: (params: LivechatAnalyticsDepartmentsTotalTransferredChatsProps) => PaginatedResult<{
                departments: {
                    _id: string;
                    numberOfTransferredRooms: number;
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 5 other locations - About 1 hr to fix
    packages/rest-typings/src/v1/omnichannel.ts on lines 4025..4032
    packages/rest-typings/src/v1/omnichannel.ts on lines 4033..4040
    packages/rest-typings/src/v1/omnichannel.ts on lines 4050..4057
    packages/rest-typings/src/v1/omnichannel.ts on lines 4066..4073
    packages/rest-typings/src/v1/omnichannel.ts on lines 4074..4081

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 58.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 6 locations. Consider refactoring.
    Open

        '/v1/livechat/analytics/departments/average-waiting-time': {
            GET: (params: LivechatAnalyticsDepartmentsAverageWaitingTimeProps) => PaginatedResult<{
                departments: {
                    _id: string;
                    averageWaitingTimeInSeconds: number;
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 5 other locations - About 1 hr to fix
    packages/rest-typings/src/v1/omnichannel.ts on lines 4025..4032
    packages/rest-typings/src/v1/omnichannel.ts on lines 4033..4040
    packages/rest-typings/src/v1/omnichannel.ts on lines 4058..4065
    packages/rest-typings/src/v1/omnichannel.ts on lines 4066..4073
    packages/rest-typings/src/v1/omnichannel.ts on lines 4074..4081

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 58.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

        '/v1/livechat/analytics/dashboards/charts/agents-status': {
            GET: (params: GETDashboardsAgentStatusParams) => { offline: number; away: number; busy: number; available: number };
        };
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 1 other location - About 1 hr to fix
    packages/rest-typings/src/v1/omnichannel.ts on lines 3940..3947

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 56.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

        '/v1/livechat/analytics/dashboards/charts/chats': {
            GET: (params: GETDashboardTotalizers) => {
                open: number;
                closed: number;
                queued: number;
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 1 other location - About 1 hr to fix
    packages/rest-typings/src/v1/omnichannel.ts on lines 3965..3967

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 56.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

    const LivechatDepartmentIdSchema = {
        type: 'object',
        properties: {
            onlyMyDepartments: {
                type: 'string',
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 1 other location - About 1 hr to fix
    packages/rest-typings/src/v1/omnichannel.ts on lines 2623..2636

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 56.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

    const GETBusinessHourParamsSchema = {
        type: 'object',
        properties: {
            _id: {
                type: 'string',
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 1 other location - About 1 hr to fix
    packages/rest-typings/src/v1/omnichannel.ts on lines 103..116

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 56.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 15 locations. Consider refactoring.
    Open

    const LivechatVisitorStatusSchema = {
        type: 'object',
        properties: {
            token: {
                type: 'string',
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 14 other locations - About 55 mins to fix
    packages/rest-typings/src/v1/chat.ts on lines 240..252
    packages/rest-typings/src/v1/chat.ts on lines 296..308
    packages/rest-typings/src/v1/chat.ts on lines 597..609
    packages/rest-typings/src/v1/chat.ts on lines 830..842
    packages/rest-typings/src/v1/cloud.ts on lines 30..42
    packages/rest-typings/src/v1/e2e.ts on lines 14..26
    packages/rest-typings/src/v1/e2e.ts on lines 75..87
    packages/rest-typings/src/v1/mailer/MailerUnsubscribeParamsPOST.ts on lines 12..24
    packages/rest-typings/src/v1/omnichannel.ts on lines 1354..1366
    packages/rest-typings/src/v1/omnichannel.ts on lines 1424..1436
    packages/rest-typings/src/v1/omnichannel.ts on lines 1828..1840
    packages/rest-typings/src/v1/omnichannel.ts on lines 2008..2020
    packages/rest-typings/src/v1/omnichannel.ts on lines 2209..2221
    packages/rest-typings/src/v1/omnichannel.ts on lines 3147..3159

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 54.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 15 locations. Consider refactoring.
    Open

    const GETLivechatMessageIdParamsSchema = {
        type: 'object',
        properties: {
            token: {
                type: 'string',
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 14 other locations - About 55 mins to fix
    packages/rest-typings/src/v1/chat.ts on lines 240..252
    packages/rest-typings/src/v1/chat.ts on lines 296..308
    packages/rest-typings/src/v1/chat.ts on lines 597..609
    packages/rest-typings/src/v1/chat.ts on lines 830..842
    packages/rest-typings/src/v1/cloud.ts on lines 30..42
    packages/rest-typings/src/v1/e2e.ts on lines 14..26
    packages/rest-typings/src/v1/e2e.ts on lines 75..87
    packages/rest-typings/src/v1/mailer/MailerUnsubscribeParamsPOST.ts on lines 12..24
    packages/rest-typings/src/v1/omnichannel.ts on lines 279..291
    packages/rest-typings/src/v1/omnichannel.ts on lines 1354..1366
    packages/rest-typings/src/v1/omnichannel.ts on lines 1424..1436
    packages/rest-typings/src/v1/omnichannel.ts on lines 1828..1840
    packages/rest-typings/src/v1/omnichannel.ts on lines 2209..2221
    packages/rest-typings/src/v1/omnichannel.ts on lines 3147..3159

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 54.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 15 locations. Consider refactoring.
    Open

    const POSTLivechatTranscriptRequestParamsSchema = {
        type: 'object',
        properties: {
            email: {
                type: 'string',
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 14 other locations - About 55 mins to fix
    packages/rest-typings/src/v1/chat.ts on lines 240..252
    packages/rest-typings/src/v1/chat.ts on lines 296..308
    packages/rest-typings/src/v1/chat.ts on lines 597..609
    packages/rest-typings/src/v1/chat.ts on lines 830..842
    packages/rest-typings/src/v1/cloud.ts on lines 30..42
    packages/rest-typings/src/v1/e2e.ts on lines 14..26
    packages/rest-typings/src/v1/e2e.ts on lines 75..87
    packages/rest-typings/src/v1/mailer/MailerUnsubscribeParamsPOST.ts on lines 12..24
    packages/rest-typings/src/v1/omnichannel.ts on lines 279..291
    packages/rest-typings/src/v1/omnichannel.ts on lines 1354..1366
    packages/rest-typings/src/v1/omnichannel.ts on lines 1424..1436
    packages/rest-typings/src/v1/omnichannel.ts on lines 1828..1840
    packages/rest-typings/src/v1/omnichannel.ts on lines 2008..2020
    packages/rest-typings/src/v1/omnichannel.ts on lines 2209..2221

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 54.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 15 locations. Consider refactoring.
    Open

    const POSTLivechatRoomCloseParamsSchema = {
        type: 'object',
        properties: {
            token: {
                type: 'string',
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 14 other locations - About 55 mins to fix
    packages/rest-typings/src/v1/chat.ts on lines 240..252
    packages/rest-typings/src/v1/chat.ts on lines 296..308
    packages/rest-typings/src/v1/chat.ts on lines 597..609
    packages/rest-typings/src/v1/chat.ts on lines 830..842
    packages/rest-typings/src/v1/cloud.ts on lines 30..42
    packages/rest-typings/src/v1/e2e.ts on lines 14..26
    packages/rest-typings/src/v1/e2e.ts on lines 75..87
    packages/rest-typings/src/v1/mailer/MailerUnsubscribeParamsPOST.ts on lines 12..24
    packages/rest-typings/src/v1/omnichannel.ts on lines 279..291
    packages/rest-typings/src/v1/omnichannel.ts on lines 1354..1366
    packages/rest-typings/src/v1/omnichannel.ts on lines 1424..1436
    packages/rest-typings/src/v1/omnichannel.ts on lines 1828..1840
    packages/rest-typings/src/v1/omnichannel.ts on lines 2008..2020
    packages/rest-typings/src/v1/omnichannel.ts on lines 3147..3159

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 54.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 15 locations. Consider refactoring.
    Open

    const LivechatAnalyticsAgentsAverageServiceTimeSchema = {
        type: 'object',
        properties: {
            start: {
                type: 'string',
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 14 other locations - About 55 mins to fix
    packages/rest-typings/src/v1/chat.ts on lines 240..252
    packages/rest-typings/src/v1/chat.ts on lines 296..308
    packages/rest-typings/src/v1/chat.ts on lines 597..609
    packages/rest-typings/src/v1/chat.ts on lines 830..842
    packages/rest-typings/src/v1/cloud.ts on lines 30..42
    packages/rest-typings/src/v1/e2e.ts on lines 14..26
    packages/rest-typings/src/v1/e2e.ts on lines 75..87
    packages/rest-typings/src/v1/mailer/MailerUnsubscribeParamsPOST.ts on lines 12..24
    packages/rest-typings/src/v1/omnichannel.ts on lines 279..291
    packages/rest-typings/src/v1/omnichannel.ts on lines 1424..1436
    packages/rest-typings/src/v1/omnichannel.ts on lines 1828..1840
    packages/rest-typings/src/v1/omnichannel.ts on lines 2008..2020
    packages/rest-typings/src/v1/omnichannel.ts on lines 2209..2221
    packages/rest-typings/src/v1/omnichannel.ts on lines 3147..3159

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 54.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 15 locations. Consider refactoring.
    Open

    const LivechatAnalyticsAgentsTotalServiceTimeSchema = {
        type: 'object',
        properties: {
            start: {
                type: 'string',
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 14 other locations - About 55 mins to fix
    packages/rest-typings/src/v1/chat.ts on lines 240..252
    packages/rest-typings/src/v1/chat.ts on lines 296..308
    packages/rest-typings/src/v1/chat.ts on lines 597..609
    packages/rest-typings/src/v1/chat.ts on lines 830..842
    packages/rest-typings/src/v1/cloud.ts on lines 30..42
    packages/rest-typings/src/v1/e2e.ts on lines 14..26
    packages/rest-typings/src/v1/e2e.ts on lines 75..87
    packages/rest-typings/src/v1/mailer/MailerUnsubscribeParamsPOST.ts on lines 12..24
    packages/rest-typings/src/v1/omnichannel.ts on lines 279..291
    packages/rest-typings/src/v1/omnichannel.ts on lines 1354..1366
    packages/rest-typings/src/v1/omnichannel.ts on lines 1828..1840
    packages/rest-typings/src/v1/omnichannel.ts on lines 2008..2020
    packages/rest-typings/src/v1/omnichannel.ts on lines 2209..2221
    packages/rest-typings/src/v1/omnichannel.ts on lines 3147..3159

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 54.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 15 locations. Consider refactoring.
    Open

    const PUTWebRTCCallIdSchema = {
        type: 'object',
        properties: {
            rid: {
                type: 'string',
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 14 other locations - About 55 mins to fix
    packages/rest-typings/src/v1/chat.ts on lines 240..252
    packages/rest-typings/src/v1/chat.ts on lines 296..308
    packages/rest-typings/src/v1/chat.ts on lines 597..609
    packages/rest-typings/src/v1/chat.ts on lines 830..842
    packages/rest-typings/src/v1/cloud.ts on lines 30..42
    packages/rest-typings/src/v1/e2e.ts on lines 14..26
    packages/rest-typings/src/v1/e2e.ts on lines 75..87
    packages/rest-typings/src/v1/mailer/MailerUnsubscribeParamsPOST.ts on lines 12..24
    packages/rest-typings/src/v1/omnichannel.ts on lines 279..291
    packages/rest-typings/src/v1/omnichannel.ts on lines 1354..1366
    packages/rest-typings/src/v1/omnichannel.ts on lines 1424..1436
    packages/rest-typings/src/v1/omnichannel.ts on lines 2008..2020
    packages/rest-typings/src/v1/omnichannel.ts on lines 2209..2221
    packages/rest-typings/src/v1/omnichannel.ts on lines 3147..3159

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 54.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 4 locations. Consider refactoring.
    Open

        '/v1/livechat/analytics/dashboards/productivity-totalizers': {
            GET: (params: GETDashboardTotalizers) => {
                totalizers: { title: string; value: number }[];
            };
        };
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 3 other locations - About 50 mins to fix
    packages/rest-typings/src/v1/omnichannel.ts on lines 3920..3924
    packages/rest-typings/src/v1/omnichannel.ts on lines 3925..3929
    packages/rest-typings/src/v1/omnichannel.ts on lines 3930..3934

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 52.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 4 locations. Consider refactoring.
    Open

        '/v1/livechat/analytics/dashboards/conversation-totalizers': {
            GET: (params: GETDashboardTotalizers) => {
                totalizers: { title: string; value: number }[];
            };
        };
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 3 other locations - About 50 mins to fix
    packages/rest-typings/src/v1/omnichannel.ts on lines 3925..3929
    packages/rest-typings/src/v1/omnichannel.ts on lines 3930..3934
    packages/rest-typings/src/v1/omnichannel.ts on lines 3935..3939

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 52.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 4 locations. Consider refactoring.
    Open

        '/v1/livechat/analytics/dashboards/agents-productivity-totalizers': {
            GET: (params: GETDashboardTotalizers) => {
                totalizers: { title: string; value: number }[];
            };
        };
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 3 other locations - About 50 mins to fix
    packages/rest-typings/src/v1/omnichannel.ts on lines 3920..3924
    packages/rest-typings/src/v1/omnichannel.ts on lines 3930..3934
    packages/rest-typings/src/v1/omnichannel.ts on lines 3935..3939

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 52.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 4 locations. Consider refactoring.
    Open

        '/v1/livechat/analytics/dashboards/chats-totalizers': {
            GET: (params: GETDashboardTotalizers) => {
                totalizers: { title: string; value: number }[];
            };
        };
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 3 other locations - About 50 mins to fix
    packages/rest-typings/src/v1/omnichannel.ts on lines 3920..3924
    packages/rest-typings/src/v1/omnichannel.ts on lines 3925..3929
    packages/rest-typings/src/v1/omnichannel.ts on lines 3935..3939

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 52.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

        '/v1/livechat/agents/:agentId/departments': {
            GET: (params?: GETLivechatAgentsAgentIdDepartmentsParams) => {
                departments: (ILivechatDepartmentAgents & { departmentName: string })[];
            };
        };
    Severity: Minor
    Found in packages/rest-typings/src/v1/omnichannel.ts and 1 other location - About 50 mins to fix
    packages/rest-typings/src/v1/omnichannel.ts on lines 3859..3865

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 52.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

        '/v1/livechat/visitors.autocomplete': {
            GET: (params: GETLivechatVisitorsAutocompleteParams) => {
                items: (ILivechatVisitor & {
                    custom_name: string;
                })[];
    Severity: Minor
    Found in packages/rest-typings/src/v1/omnichannel.ts and 1 other location - About 50 mins to fix
    packages/rest-typings/src/v1/omnichannel.ts on lines 3866..3870

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 52.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 39 locations. Consider refactoring.
    Open

        '/v1/livechat/departments.by-unit/': {
            GET: (params: LivechatDepartmentsByUnitProps) => PaginatedResult<{
                departments: ILivechatDepartment[];
            }>;
        };
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 38 other locations - About 30 mins to fix
    packages/rest-typings/src/v1/channels/channels.ts on lines 42..46
    packages/rest-typings/src/v1/channels/channels.ts on lines 56..60
    packages/rest-typings/src/v1/channels/channels.ts on lines 133..137
    packages/rest-typings/src/v1/channels/channels.ts on lines 161..165
    packages/rest-typings/src/v1/customSounds.ts on lines 39..43
    packages/rest-typings/src/v1/customUserStatus.ts on lines 39..43
    packages/rest-typings/src/v1/dm/im.ts on lines 43..47
    packages/rest-typings/src/v1/dm/im.ts on lines 59..63
    packages/rest-typings/src/v1/email-inbox.ts on lines 160..162
    packages/rest-typings/src/v1/federation/rooms.ts on lines 17..21
    packages/rest-typings/src/v1/groups/groups.ts on lines 43..47
    packages/rest-typings/src/v1/groups/groups.ts on lines 56..60
    packages/rest-typings/src/v1/groups/groups.ts on lines 101..105
    packages/rest-typings/src/v1/omnichannel.ts on lines 3518..3522
    packages/rest-typings/src/v1/omnichannel.ts on lines 3526..3530
    packages/rest-typings/src/v1/omnichannel.ts on lines 3557..3561
    packages/rest-typings/src/v1/omnichannel.ts on lines 3578..3582
    packages/rest-typings/src/v1/omnichannel.ts on lines 3589..3593
    packages/rest-typings/src/v1/omnichannel.ts on lines 3605..3609
    packages/rest-typings/src/v1/omnichannel.ts on lines 3613..3617
    packages/rest-typings/src/v1/omnichannel.ts on lines 3747..3749
    packages/rest-typings/src/v1/omnichannel.ts on lines 3848..3850
    packages/rest-typings/src/v1/omnichannel.ts on lines 3851..3853
    packages/rest-typings/src/v1/omnichannel.ts on lines 3854..3858
    packages/rest-typings/src/v1/omnichannel.ts on lines 3882..3884
    packages/rest-typings/src/v1/omnichannel.ts on lines 3905..3907
    packages/rest-typings/src/v1/omnichannel.ts on lines 3911..3913
    packages/rest-typings/src/v1/omnichannel.ts on lines 3914..3916
    packages/rest-typings/src/v1/omnichannel.ts on lines 4015..4019
    packages/rest-typings/src/v1/omnichannel.ts on lines 4020..4024
    packages/rest-typings/src/v1/rooms.ts on lines 744..748
    packages/rest-typings/src/v1/rooms.ts on lines 762..766
    packages/rest-typings/src/v1/teams/index.ts on lines 190..192
    packages/rest-typings/src/v1/users.ts on lines 153..157
    packages/rest-typings/src/v1/videoConference/index.ts on lines 33..35
    packages/rest-typings/src/v1/voip.ts on lines 543..545
    packages/rest-typings/src/v1/voip.ts on lines 558..560
    packages/rest-typings/src/v1/voip.ts on lines 576..578

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 45.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 39 locations. Consider refactoring.
    Open

        '/v1/livechat/priorities': {
            GET: (params: GETLivechatPrioritiesParams) => PaginatedResult<{ priorities: ILivechatPriority[] }>;
        };
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 38 other locations - About 30 mins to fix
    packages/rest-typings/src/v1/channels/channels.ts on lines 42..46
    packages/rest-typings/src/v1/channels/channels.ts on lines 56..60
    packages/rest-typings/src/v1/channels/channels.ts on lines 133..137
    packages/rest-typings/src/v1/channels/channels.ts on lines 161..165
    packages/rest-typings/src/v1/customSounds.ts on lines 39..43
    packages/rest-typings/src/v1/customUserStatus.ts on lines 39..43
    packages/rest-typings/src/v1/dm/im.ts on lines 43..47
    packages/rest-typings/src/v1/dm/im.ts on lines 59..63
    packages/rest-typings/src/v1/email-inbox.ts on lines 160..162
    packages/rest-typings/src/v1/federation/rooms.ts on lines 17..21
    packages/rest-typings/src/v1/groups/groups.ts on lines 43..47
    packages/rest-typings/src/v1/groups/groups.ts on lines 56..60
    packages/rest-typings/src/v1/groups/groups.ts on lines 101..105
    packages/rest-typings/src/v1/omnichannel.ts on lines 3518..3522
    packages/rest-typings/src/v1/omnichannel.ts on lines 3526..3530
    packages/rest-typings/src/v1/omnichannel.ts on lines 3557..3561
    packages/rest-typings/src/v1/omnichannel.ts on lines 3578..3582
    packages/rest-typings/src/v1/omnichannel.ts on lines 3583..3587
    packages/rest-typings/src/v1/omnichannel.ts on lines 3589..3593
    packages/rest-typings/src/v1/omnichannel.ts on lines 3605..3609
    packages/rest-typings/src/v1/omnichannel.ts on lines 3613..3617
    packages/rest-typings/src/v1/omnichannel.ts on lines 3848..3850
    packages/rest-typings/src/v1/omnichannel.ts on lines 3851..3853
    packages/rest-typings/src/v1/omnichannel.ts on lines 3854..3858
    packages/rest-typings/src/v1/omnichannel.ts on lines 3882..3884
    packages/rest-typings/src/v1/omnichannel.ts on lines 3905..3907
    packages/rest-typings/src/v1/omnichannel.ts on lines 3911..3913
    packages/rest-typings/src/v1/omnichannel.ts on lines 3914..3916
    packages/rest-typings/src/v1/omnichannel.ts on lines 4015..4019
    packages/rest-typings/src/v1/omnichannel.ts on lines 4020..4024
    packages/rest-typings/src/v1/rooms.ts on lines 744..748
    packages/rest-typings/src/v1/rooms.ts on lines 762..766
    packages/rest-typings/src/v1/teams/index.ts on lines 190..192
    packages/rest-typings/src/v1/users.ts on lines 153..157
    packages/rest-typings/src/v1/videoConference/index.ts on lines 33..35
    packages/rest-typings/src/v1/voip.ts on lines 543..545
    packages/rest-typings/src/v1/voip.ts on lines 558..560
    packages/rest-typings/src/v1/voip.ts on lines 576..578

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 45.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 39 locations. Consider refactoring.
    Open

        '/v1/livechat/visitors.pagesVisited/:roomId': {
            GET: (params: GETLivechatVisitorsPagesVisitedRoomIdParams) => PaginatedResult<{ pages: IMessage[] }>;
        };
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 38 other locations - About 30 mins to fix
    packages/rest-typings/src/v1/channels/channels.ts on lines 42..46
    packages/rest-typings/src/v1/channels/channels.ts on lines 56..60
    packages/rest-typings/src/v1/channels/channels.ts on lines 133..137
    packages/rest-typings/src/v1/channels/channels.ts on lines 161..165
    packages/rest-typings/src/v1/customSounds.ts on lines 39..43
    packages/rest-typings/src/v1/customUserStatus.ts on lines 39..43
    packages/rest-typings/src/v1/dm/im.ts on lines 43..47
    packages/rest-typings/src/v1/dm/im.ts on lines 59..63
    packages/rest-typings/src/v1/email-inbox.ts on lines 160..162
    packages/rest-typings/src/v1/federation/rooms.ts on lines 17..21
    packages/rest-typings/src/v1/groups/groups.ts on lines 43..47
    packages/rest-typings/src/v1/groups/groups.ts on lines 56..60
    packages/rest-typings/src/v1/groups/groups.ts on lines 101..105
    packages/rest-typings/src/v1/omnichannel.ts on lines 3518..3522
    packages/rest-typings/src/v1/omnichannel.ts on lines 3526..3530
    packages/rest-typings/src/v1/omnichannel.ts on lines 3557..3561
    packages/rest-typings/src/v1/omnichannel.ts on lines 3578..3582
    packages/rest-typings/src/v1/omnichannel.ts on lines 3583..3587
    packages/rest-typings/src/v1/omnichannel.ts on lines 3589..3593
    packages/rest-typings/src/v1/omnichannel.ts on lines 3605..3609
    packages/rest-typings/src/v1/omnichannel.ts on lines 3613..3617
    packages/rest-typings/src/v1/omnichannel.ts on lines 3747..3749
    packages/rest-typings/src/v1/omnichannel.ts on lines 3851..3853
    packages/rest-typings/src/v1/omnichannel.ts on lines 3854..3858
    packages/rest-typings/src/v1/omnichannel.ts on lines 3882..3884
    packages/rest-typings/src/v1/omnichannel.ts on lines 3905..3907
    packages/rest-typings/src/v1/omnichannel.ts on lines 3911..3913
    packages/rest-typings/src/v1/omnichannel.ts on lines 3914..3916
    packages/rest-typings/src/v1/omnichannel.ts on lines 4015..4019
    packages/rest-typings/src/v1/omnichannel.ts on lines 4020..4024
    packages/rest-typings/src/v1/rooms.ts on lines 744..748
    packages/rest-typings/src/v1/rooms.ts on lines 762..766
    packages/rest-typings/src/v1/teams/index.ts on lines 190..192
    packages/rest-typings/src/v1/users.ts on lines 153..157
    packages/rest-typings/src/v1/videoConference/index.ts on lines 33..35
    packages/rest-typings/src/v1/voip.ts on lines 543..545
    packages/rest-typings/src/v1/voip.ts on lines 558..560
    packages/rest-typings/src/v1/voip.ts on lines 576..578

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 45.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 39 locations. Consider refactoring.
    Open

        '/v1/livechat/visitors.searchChats/room/:roomId/visitor/:visitorId': {
            GET: (
                params: GETLivechatVisitorsSearchChatsRoomRoomIdVisitorVisitorIdParams,
            ) => PaginatedResult<{ history: VisitorSearchChatsResult[] }>;
        };
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 38 other locations - About 30 mins to fix
    packages/rest-typings/src/v1/channels/channels.ts on lines 42..46
    packages/rest-typings/src/v1/channels/channels.ts on lines 56..60
    packages/rest-typings/src/v1/channels/channels.ts on lines 133..137
    packages/rest-typings/src/v1/channels/channels.ts on lines 161..165
    packages/rest-typings/src/v1/customSounds.ts on lines 39..43
    packages/rest-typings/src/v1/customUserStatus.ts on lines 39..43
    packages/rest-typings/src/v1/dm/im.ts on lines 43..47
    packages/rest-typings/src/v1/dm/im.ts on lines 59..63
    packages/rest-typings/src/v1/email-inbox.ts on lines 160..162
    packages/rest-typings/src/v1/federation/rooms.ts on lines 17..21
    packages/rest-typings/src/v1/groups/groups.ts on lines 43..47
    packages/rest-typings/src/v1/groups/groups.ts on lines 56..60
    packages/rest-typings/src/v1/groups/groups.ts on lines 101..105
    packages/rest-typings/src/v1/omnichannel.ts on lines 3518..3522
    packages/rest-typings/src/v1/omnichannel.ts on lines 3526..3530
    packages/rest-typings/src/v1/omnichannel.ts on lines 3557..3561
    packages/rest-typings/src/v1/omnichannel.ts on lines 3578..3582
    packages/rest-typings/src/v1/omnichannel.ts on lines 3583..3587
    packages/rest-typings/src/v1/omnichannel.ts on lines 3589..3593
    packages/rest-typings/src/v1/omnichannel.ts on lines 3605..3609
    packages/rest-typings/src/v1/omnichannel.ts on lines 3613..3617
    packages/rest-typings/src/v1/omnichannel.ts on lines 3747..3749
    packages/rest-typings/src/v1/omnichannel.ts on lines 3848..3850
    packages/rest-typings/src/v1/omnichannel.ts on lines 3851..3853
    packages/rest-typings/src/v1/omnichannel.ts on lines 3882..3884
    packages/rest-typings/src/v1/omnichannel.ts on lines 3905..3907
    packages/rest-typings/src/v1/omnichannel.ts on lines 3911..3913
    packages/rest-typings/src/v1/omnichannel.ts on lines 3914..3916
    packages/rest-typings/src/v1/omnichannel.ts on lines 4015..4019
    packages/rest-typings/src/v1/omnichannel.ts on lines 4020..4024
    packages/rest-typings/src/v1/rooms.ts on lines 744..748
    packages/rest-typings/src/v1/rooms.ts on lines 762..766
    packages/rest-typings/src/v1/teams/index.ts on lines 190..192
    packages/rest-typings/src/v1/users.ts on lines 153..157
    packages/rest-typings/src/v1/videoConference/index.ts on lines 33..35
    packages/rest-typings/src/v1/voip.ts on lines 543..545
    packages/rest-typings/src/v1/voip.ts on lines 558..560
    packages/rest-typings/src/v1/voip.ts on lines 576..578

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 45.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 39 locations. Consider refactoring.
    Open

        '/v1/livechat/rooms': {
            GET: (params: GETLivechatRoomsParams) => PaginatedResult<{ rooms: IOmnichannelRoom[] }>;
        };
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 38 other locations - About 30 mins to fix
    packages/rest-typings/src/v1/channels/channels.ts on lines 42..46
    packages/rest-typings/src/v1/channels/channels.ts on lines 56..60
    packages/rest-typings/src/v1/channels/channels.ts on lines 133..137
    packages/rest-typings/src/v1/channels/channels.ts on lines 161..165
    packages/rest-typings/src/v1/customSounds.ts on lines 39..43
    packages/rest-typings/src/v1/customUserStatus.ts on lines 39..43
    packages/rest-typings/src/v1/dm/im.ts on lines 43..47
    packages/rest-typings/src/v1/dm/im.ts on lines 59..63
    packages/rest-typings/src/v1/email-inbox.ts on lines 160..162
    packages/rest-typings/src/v1/federation/rooms.ts on lines 17..21
    packages/rest-typings/src/v1/groups/groups.ts on lines 43..47
    packages/rest-typings/src/v1/groups/groups.ts on lines 56..60
    packages/rest-typings/src/v1/groups/groups.ts on lines 101..105
    packages/rest-typings/src/v1/omnichannel.ts on lines 3518..3522
    packages/rest-typings/src/v1/omnichannel.ts on lines 3526..3530
    packages/rest-typings/src/v1/omnichannel.ts on lines 3557..3561
    packages/rest-typings/src/v1/omnichannel.ts on lines 3578..3582
    packages/rest-typings/src/v1/omnichannel.ts on lines 3583..3587
    packages/rest-typings/src/v1/omnichannel.ts on lines 3589..3593
    packages/rest-typings/src/v1/omnichannel.ts on lines 3605..3609
    packages/rest-typings/src/v1/omnichannel.ts on lines 3613..3617
    packages/rest-typings/src/v1/omnichannel.ts on lines 3747..3749
    packages/rest-typings/src/v1/omnichannel.ts on lines 3848..3850
    packages/rest-typings/src/v1/omnichannel.ts on lines 3851..3853
    packages/rest-typings/src/v1/omnichannel.ts on lines 3854..3858
    packages/rest-typings/src/v1/omnichannel.ts on lines 3905..3907
    packages/rest-typings/src/v1/omnichannel.ts on lines 3911..3913
    packages/rest-typings/src/v1/omnichannel.ts on lines 3914..3916
    packages/rest-typings/src/v1/omnichannel.ts on lines 4015..4019
    packages/rest-typings/src/v1/omnichannel.ts on lines 4020..4024
    packages/rest-typings/src/v1/rooms.ts on lines 744..748
    packages/rest-typings/src/v1/rooms.ts on lines 762..766
    packages/rest-typings/src/v1/teams/index.ts on lines 190..192
    packages/rest-typings/src/v1/users.ts on lines 153..157
    packages/rest-typings/src/v1/videoConference/index.ts on lines 33..35
    packages/rest-typings/src/v1/voip.ts on lines 543..545
    packages/rest-typings/src/v1/voip.ts on lines 558..560
    packages/rest-typings/src/v1/voip.ts on lines 576..578

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 45.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 39 locations. Consider refactoring.
    Open

        '/v1/livechat/monitors': {
            GET: (params: LivechatMonitorsListProps) => PaginatedResult<{
                monitors: ILivechatMonitor[];
            }>;
        };
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 38 other locations - About 30 mins to fix
    packages/rest-typings/src/v1/channels/channels.ts on lines 42..46
    packages/rest-typings/src/v1/channels/channels.ts on lines 56..60
    packages/rest-typings/src/v1/channels/channels.ts on lines 133..137
    packages/rest-typings/src/v1/channels/channels.ts on lines 161..165
    packages/rest-typings/src/v1/customSounds.ts on lines 39..43
    packages/rest-typings/src/v1/customUserStatus.ts on lines 39..43
    packages/rest-typings/src/v1/dm/im.ts on lines 43..47
    packages/rest-typings/src/v1/dm/im.ts on lines 59..63
    packages/rest-typings/src/v1/email-inbox.ts on lines 160..162
    packages/rest-typings/src/v1/federation/rooms.ts on lines 17..21
    packages/rest-typings/src/v1/groups/groups.ts on lines 43..47
    packages/rest-typings/src/v1/groups/groups.ts on lines 56..60
    packages/rest-typings/src/v1/groups/groups.ts on lines 101..105
    packages/rest-typings/src/v1/omnichannel.ts on lines 3526..3530
    packages/rest-typings/src/v1/omnichannel.ts on lines 3557..3561
    packages/rest-typings/src/v1/omnichannel.ts on lines 3578..3582
    packages/rest-typings/src/v1/omnichannel.ts on lines 3583..3587
    packages/rest-typings/src/v1/omnichannel.ts on lines 3589..3593
    packages/rest-typings/src/v1/omnichannel.ts on lines 3605..3609
    packages/rest-typings/src/v1/omnichannel.ts on lines 3613..3617
    packages/rest-typings/src/v1/omnichannel.ts on lines 3747..3749
    packages/rest-typings/src/v1/omnichannel.ts on lines 3848..3850
    packages/rest-typings/src/v1/omnichannel.ts on lines 3851..3853
    packages/rest-typings/src/v1/omnichannel.ts on lines 3854..3858
    packages/rest-typings/src/v1/omnichannel.ts on lines 3882..3884
    packages/rest-typings/src/v1/omnichannel.ts on lines 3905..3907
    packages/rest-typings/src/v1/omnichannel.ts on lines 3911..3913
    packages/rest-typings/src/v1/omnichannel.ts on lines 3914..3916
    packages/rest-typings/src/v1/omnichannel.ts on lines 4015..4019
    packages/rest-typings/src/v1/omnichannel.ts on lines 4020..4024
    packages/rest-typings/src/v1/rooms.ts on lines 744..748
    packages/rest-typings/src/v1/rooms.ts on lines 762..766
    packages/rest-typings/src/v1/teams/index.ts on lines 190..192
    packages/rest-typings/src/v1/users.ts on lines 153..157
    packages/rest-typings/src/v1/videoConference/index.ts on lines 33..35
    packages/rest-typings/src/v1/voip.ts on lines 543..545
    packages/rest-typings/src/v1/voip.ts on lines 558..560
    packages/rest-typings/src/v1/voip.ts on lines 576..578

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 45.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 39 locations. Consider refactoring.
    Open

        '/v1/livechat/analytics/departments/amount-of-chats': {
            GET: (params: LivechatAnalyticsDepartmentsAmountOfChatsProps) => PaginatedResult<{
                departments: IOmnichannelRoom[];
            }>;
        };
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 38 other locations - About 30 mins to fix
    packages/rest-typings/src/v1/channels/channels.ts on lines 42..46
    packages/rest-typings/src/v1/channels/channels.ts on lines 56..60
    packages/rest-typings/src/v1/channels/channels.ts on lines 133..137
    packages/rest-typings/src/v1/channels/channels.ts on lines 161..165
    packages/rest-typings/src/v1/customSounds.ts on lines 39..43
    packages/rest-typings/src/v1/customUserStatus.ts on lines 39..43
    packages/rest-typings/src/v1/dm/im.ts on lines 43..47
    packages/rest-typings/src/v1/dm/im.ts on lines 59..63
    packages/rest-typings/src/v1/email-inbox.ts on lines 160..162
    packages/rest-typings/src/v1/federation/rooms.ts on lines 17..21
    packages/rest-typings/src/v1/groups/groups.ts on lines 43..47
    packages/rest-typings/src/v1/groups/groups.ts on lines 56..60
    packages/rest-typings/src/v1/groups/groups.ts on lines 101..105
    packages/rest-typings/src/v1/omnichannel.ts on lines 3518..3522
    packages/rest-typings/src/v1/omnichannel.ts on lines 3526..3530
    packages/rest-typings/src/v1/omnichannel.ts on lines 3557..3561
    packages/rest-typings/src/v1/omnichannel.ts on lines 3578..3582
    packages/rest-typings/src/v1/omnichannel.ts on lines 3583..3587
    packages/rest-typings/src/v1/omnichannel.ts on lines 3589..3593
    packages/rest-typings/src/v1/omnichannel.ts on lines 3605..3609
    packages/rest-typings/src/v1/omnichannel.ts on lines 3613..3617
    packages/rest-typings/src/v1/omnichannel.ts on lines 3747..3749
    packages/rest-typings/src/v1/omnichannel.ts on lines 3848..3850
    packages/rest-typings/src/v1/omnichannel.ts on lines 3851..3853
    packages/rest-typings/src/v1/omnichannel.ts on lines 3854..3858
    packages/rest-typings/src/v1/omnichannel.ts on lines 3882..3884
    packages/rest-typings/src/v1/omnichannel.ts on lines 3905..3907
    packages/rest-typings/src/v1/omnichannel.ts on lines 3911..3913
    packages/rest-typings/src/v1/omnichannel.ts on lines 3914..3916
    packages/rest-typings/src/v1/omnichannel.ts on lines 4015..4019
    packages/rest-typings/src/v1/rooms.ts on lines 744..748
    packages/rest-typings/src/v1/rooms.ts on lines 762..766
    packages/rest-typings/src/v1/teams/index.ts on lines 190..192
    packages/rest-typings/src/v1/users.ts on lines 153..157
    packages/rest-typings/src/v1/videoConference/index.ts on lines 33..35
    packages/rest-typings/src/v1/voip.ts on lines 543..545
    packages/rest-typings/src/v1/voip.ts on lines 558..560
    packages/rest-typings/src/v1/voip.ts on lines 576..578

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 45.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 39 locations. Consider refactoring.
    Open

        '/v1/livechat/inquiries.list': {
            GET: (params: GETLivechatInquiriesListParams) => PaginatedResult<{ inquiries: ILivechatInquiryRecord[] }>;
        };
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 38 other locations - About 30 mins to fix
    packages/rest-typings/src/v1/channels/channels.ts on lines 42..46
    packages/rest-typings/src/v1/channels/channels.ts on lines 56..60
    packages/rest-typings/src/v1/channels/channels.ts on lines 133..137
    packages/rest-typings/src/v1/channels/channels.ts on lines 161..165
    packages/rest-typings/src/v1/customSounds.ts on lines 39..43
    packages/rest-typings/src/v1/customUserStatus.ts on lines 39..43
    packages/rest-typings/src/v1/dm/im.ts on lines 43..47
    packages/rest-typings/src/v1/dm/im.ts on lines 59..63
    packages/rest-typings/src/v1/email-inbox.ts on lines 160..162
    packages/rest-typings/src/v1/federation/rooms.ts on lines 17..21
    packages/rest-typings/src/v1/groups/groups.ts on lines 43..47
    packages/rest-typings/src/v1/groups/groups.ts on lines 56..60
    packages/rest-typings/src/v1/groups/groups.ts on lines 101..105
    packages/rest-typings/src/v1/omnichannel.ts on lines 3518..3522
    packages/rest-typings/src/v1/omnichannel.ts on lines 3526..3530
    packages/rest-typings/src/v1/omnichannel.ts on lines 3557..3561
    packages/rest-typings/src/v1/omnichannel.ts on lines 3578..3582
    packages/rest-typings/src/v1/omnichannel.ts on lines 3583..3587
    packages/rest-typings/src/v1/omnichannel.ts on lines 3589..3593
    packages/rest-typings/src/v1/omnichannel.ts on lines 3605..3609
    packages/rest-typings/src/v1/omnichannel.ts on lines 3613..3617
    packages/rest-typings/src/v1/omnichannel.ts on lines 3747..3749
    packages/rest-typings/src/v1/omnichannel.ts on lines 3848..3850
    packages/rest-typings/src/v1/omnichannel.ts on lines 3851..3853
    packages/rest-typings/src/v1/omnichannel.ts on lines 3854..3858
    packages/rest-typings/src/v1/omnichannel.ts on lines 3882..3884
    packages/rest-typings/src/v1/omnichannel.ts on lines 3911..3913
    packages/rest-typings/src/v1/omnichannel.ts on lines 3914..3916
    packages/rest-typings/src/v1/omnichannel.ts on lines 4015..4019
    packages/rest-typings/src/v1/omnichannel.ts on lines 4020..4024
    packages/rest-typings/src/v1/rooms.ts on lines 744..748
    packages/rest-typings/src/v1/rooms.ts on lines 762..766
    packages/rest-typings/src/v1/teams/index.ts on lines 190..192
    packages/rest-typings/src/v1/users.ts on lines 153..157
    packages/rest-typings/src/v1/videoConference/index.ts on lines 33..35
    packages/rest-typings/src/v1/voip.ts on lines 543..545
    packages/rest-typings/src/v1/voip.ts on lines 558..560
    packages/rest-typings/src/v1/voip.ts on lines 576..578

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 45.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 39 locations. Consider refactoring.
    Open

        '/v1/livechat/tags': {
            GET: (params: LivechatTagsListProps) => PaginatedResult<{
                tags: ILivechatTag[];
            }>;
        };
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 38 other locations - About 30 mins to fix
    packages/rest-typings/src/v1/channels/channels.ts on lines 42..46
    packages/rest-typings/src/v1/channels/channels.ts on lines 56..60
    packages/rest-typings/src/v1/channels/channels.ts on lines 133..137
    packages/rest-typings/src/v1/channels/channels.ts on lines 161..165
    packages/rest-typings/src/v1/customSounds.ts on lines 39..43
    packages/rest-typings/src/v1/customUserStatus.ts on lines 39..43
    packages/rest-typings/src/v1/dm/im.ts on lines 43..47
    packages/rest-typings/src/v1/dm/im.ts on lines 59..63
    packages/rest-typings/src/v1/email-inbox.ts on lines 160..162
    packages/rest-typings/src/v1/federation/rooms.ts on lines 17..21
    packages/rest-typings/src/v1/groups/groups.ts on lines 43..47
    packages/rest-typings/src/v1/groups/groups.ts on lines 56..60
    packages/rest-typings/src/v1/groups/groups.ts on lines 101..105
    packages/rest-typings/src/v1/omnichannel.ts on lines 3518..3522
    packages/rest-typings/src/v1/omnichannel.ts on lines 3557..3561
    packages/rest-typings/src/v1/omnichannel.ts on lines 3578..3582
    packages/rest-typings/src/v1/omnichannel.ts on lines 3583..3587
    packages/rest-typings/src/v1/omnichannel.ts on lines 3589..3593
    packages/rest-typings/src/v1/omnichannel.ts on lines 3605..3609
    packages/rest-typings/src/v1/omnichannel.ts on lines 3613..3617
    packages/rest-typings/src/v1/omnichannel.ts on lines 3747..3749
    packages/rest-typings/src/v1/omnichannel.ts on lines 3848..3850
    packages/rest-typings/src/v1/omnichannel.ts on lines 3851..3853
    packages/rest-typings/src/v1/omnichannel.ts on lines 3854..3858
    packages/rest-typings/src/v1/omnichannel.ts on lines 3882..3884
    packages/rest-typings/src/v1/omnichannel.ts on lines 3905..3907
    packages/rest-typings/src/v1/omnichannel.ts on lines 3911..3913
    packages/rest-typings/src/v1/omnichannel.ts on lines 3914..3916
    packages/rest-typings/src/v1/omnichannel.ts on lines 4015..4019
    packages/rest-typings/src/v1/omnichannel.ts on lines 4020..4024
    packages/rest-typings/src/v1/rooms.ts on lines 744..748
    packages/rest-typings/src/v1/rooms.ts on lines 762..766
    packages/rest-typings/src/v1/teams/index.ts on lines 190..192
    packages/rest-typings/src/v1/users.ts on lines 153..157
    packages/rest-typings/src/v1/videoConference/index.ts on lines 33..35
    packages/rest-typings/src/v1/voip.ts on lines 543..545
    packages/rest-typings/src/v1/voip.ts on lines 558..560
    packages/rest-typings/src/v1/voip.ts on lines 576..578

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 45.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 39 locations. Consider refactoring.
    Open

        '/v1/livechat/units/:unitId/departments': {
            GET: (params: LivechatDepartmentsByUnitIdProps) => PaginatedResult<{
                departments: ILivechatDepartment[];
            }>;
        };
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 38 other locations - About 30 mins to fix
    packages/rest-typings/src/v1/channels/channels.ts on lines 42..46
    packages/rest-typings/src/v1/channels/channels.ts on lines 56..60
    packages/rest-typings/src/v1/channels/channels.ts on lines 133..137
    packages/rest-typings/src/v1/channels/channels.ts on lines 161..165
    packages/rest-typings/src/v1/customSounds.ts on lines 39..43
    packages/rest-typings/src/v1/customUserStatus.ts on lines 39..43
    packages/rest-typings/src/v1/dm/im.ts on lines 43..47
    packages/rest-typings/src/v1/dm/im.ts on lines 59..63
    packages/rest-typings/src/v1/email-inbox.ts on lines 160..162
    packages/rest-typings/src/v1/federation/rooms.ts on lines 17..21
    packages/rest-typings/src/v1/groups/groups.ts on lines 43..47
    packages/rest-typings/src/v1/groups/groups.ts on lines 56..60
    packages/rest-typings/src/v1/groups/groups.ts on lines 101..105
    packages/rest-typings/src/v1/omnichannel.ts on lines 3518..3522
    packages/rest-typings/src/v1/omnichannel.ts on lines 3526..3530
    packages/rest-typings/src/v1/omnichannel.ts on lines 3557..3561
    packages/rest-typings/src/v1/omnichannel.ts on lines 3578..3582
    packages/rest-typings/src/v1/omnichannel.ts on lines 3583..3587
    packages/rest-typings/src/v1/omnichannel.ts on lines 3605..3609
    packages/rest-typings/src/v1/omnichannel.ts on lines 3613..3617
    packages/rest-typings/src/v1/omnichannel.ts on lines 3747..3749
    packages/rest-typings/src/v1/omnichannel.ts on lines 3848..3850
    packages/rest-typings/src/v1/omnichannel.ts on lines 3851..3853
    packages/rest-typings/src/v1/omnichannel.ts on lines 3854..3858
    packages/rest-typings/src/v1/omnichannel.ts on lines 3882..3884
    packages/rest-typings/src/v1/omnichannel.ts on lines 3905..3907
    packages/rest-typings/src/v1/omnichannel.ts on lines 3911..3913
    packages/rest-typings/src/v1/omnichannel.ts on lines 3914..3916
    packages/rest-typings/src/v1/omnichannel.ts on lines 4015..4019
    packages/rest-typings/src/v1/omnichannel.ts on lines 4020..4024
    packages/rest-typings/src/v1/rooms.ts on lines 744..748
    packages/rest-typings/src/v1/rooms.ts on lines 762..766
    packages/rest-typings/src/v1/teams/index.ts on lines 190..192
    packages/rest-typings/src/v1/users.ts on lines 153..157
    packages/rest-typings/src/v1/videoConference/index.ts on lines 33..35
    packages/rest-typings/src/v1/voip.ts on lines 543..545
    packages/rest-typings/src/v1/voip.ts on lines 558..560
    packages/rest-typings/src/v1/voip.ts on lines 576..578

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 45.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 39 locations. Consider refactoring.
    Open

        '/v1/livechat/visitors.chatHistory/room/:roomId/visitor/:visitorId': {
            GET: (params: GETLivechatVisitorsChatHistoryRoomRoomIdVisitorVisitorIdParams) => PaginatedResult<{ history: IOmnichannelRoom[] }>;
        };
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 38 other locations - About 30 mins to fix
    packages/rest-typings/src/v1/channels/channels.ts on lines 42..46
    packages/rest-typings/src/v1/channels/channels.ts on lines 56..60
    packages/rest-typings/src/v1/channels/channels.ts on lines 133..137
    packages/rest-typings/src/v1/channels/channels.ts on lines 161..165
    packages/rest-typings/src/v1/customSounds.ts on lines 39..43
    packages/rest-typings/src/v1/customUserStatus.ts on lines 39..43
    packages/rest-typings/src/v1/dm/im.ts on lines 43..47
    packages/rest-typings/src/v1/dm/im.ts on lines 59..63
    packages/rest-typings/src/v1/email-inbox.ts on lines 160..162
    packages/rest-typings/src/v1/federation/rooms.ts on lines 17..21
    packages/rest-typings/src/v1/groups/groups.ts on lines 43..47
    packages/rest-typings/src/v1/groups/groups.ts on lines 56..60
    packages/rest-typings/src/v1/groups/groups.ts on lines 101..105
    packages/rest-typings/src/v1/omnichannel.ts on lines 3518..3522
    packages/rest-typings/src/v1/omnichannel.ts on lines 3526..3530
    packages/rest-typings/src/v1/omnichannel.ts on lines 3557..3561
    packages/rest-typings/src/v1/omnichannel.ts on lines 3578..3582
    packages/rest-typings/src/v1/omnichannel.ts on lines 3583..3587
    packages/rest-typings/src/v1/omnichannel.ts on lines 3589..3593
    packages/rest-typings/src/v1/omnichannel.ts on lines 3605..3609
    packages/rest-typings/src/v1/omnichannel.ts on lines 3613..3617
    packages/rest-typings/src/v1/omnichannel.ts on lines 3747..3749
    packages/rest-typings/src/v1/omnichannel.ts on lines 3848..3850
    packages/rest-typings/src/v1/omnichannel.ts on lines 3854..3858
    packages/rest-typings/src/v1/omnichannel.ts on lines 3882..3884
    packages/rest-typings/src/v1/omnichannel.ts on lines 3905..3907
    packages/rest-typings/src/v1/omnichannel.ts on lines 3911..3913
    packages/rest-typings/src/v1/omnichannel.ts on lines 3914..3916
    packages/rest-typings/src/v1/omnichannel.ts on lines 4015..4019
    packages/rest-typings/src/v1/omnichannel.ts on lines 4020..4024
    packages/rest-typings/src/v1/rooms.ts on lines 744..748
    packages/rest-typings/src/v1/rooms.ts on lines 762..766
    packages/rest-typings/src/v1/teams/index.ts on lines 190..192
    packages/rest-typings/src/v1/users.ts on lines 153..157
    packages/rest-typings/src/v1/videoConference/index.ts on lines 33..35
    packages/rest-typings/src/v1/voip.ts on lines 543..545
    packages/rest-typings/src/v1/voip.ts on lines 558..560
    packages/rest-typings/src/v1/voip.ts on lines 576..578

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 45.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 39 locations. Consider refactoring.
    Open

        '/v1/livechat/inquiries.queued': {
            GET: (params: GETLivechatInquiriesQueuedParams) => PaginatedResult<{ inquiries: ILivechatInquiryRecord[] }>;
        };
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 38 other locations - About 30 mins to fix
    packages/rest-typings/src/v1/channels/channels.ts on lines 42..46
    packages/rest-typings/src/v1/channels/channels.ts on lines 56..60
    packages/rest-typings/src/v1/channels/channels.ts on lines 133..137
    packages/rest-typings/src/v1/channels/channels.ts on lines 161..165
    packages/rest-typings/src/v1/customSounds.ts on lines 39..43
    packages/rest-typings/src/v1/customUserStatus.ts on lines 39..43
    packages/rest-typings/src/v1/dm/im.ts on lines 43..47
    packages/rest-typings/src/v1/dm/im.ts on lines 59..63
    packages/rest-typings/src/v1/email-inbox.ts on lines 160..162
    packages/rest-typings/src/v1/federation/rooms.ts on lines 17..21
    packages/rest-typings/src/v1/groups/groups.ts on lines 43..47
    packages/rest-typings/src/v1/groups/groups.ts on lines 56..60
    packages/rest-typings/src/v1/groups/groups.ts on lines 101..105
    packages/rest-typings/src/v1/omnichannel.ts on lines 3518..3522
    packages/rest-typings/src/v1/omnichannel.ts on lines 3526..3530
    packages/rest-typings/src/v1/omnichannel.ts on lines 3557..3561
    packages/rest-typings/src/v1/omnichannel.ts on lines 3578..3582
    packages/rest-typings/src/v1/omnichannel.ts on lines 3583..3587
    packages/rest-typings/src/v1/omnichannel.ts on lines 3589..3593
    packages/rest-typings/src/v1/omnichannel.ts on lines 3605..3609
    packages/rest-typings/src/v1/omnichannel.ts on lines 3613..3617
    packages/rest-typings/src/v1/omnichannel.ts on lines 3747..3749
    packages/rest-typings/src/v1/omnichannel.ts on lines 3848..3850
    packages/rest-typings/src/v1/omnichannel.ts on lines 3851..3853
    packages/rest-typings/src/v1/omnichannel.ts on lines 3854..3858
    packages/rest-typings/src/v1/omnichannel.ts on lines 3882..3884
    packages/rest-typings/src/v1/omnichannel.ts on lines 3905..3907
    packages/rest-typings/src/v1/omnichannel.ts on lines 3914..3916
    packages/rest-typings/src/v1/omnichannel.ts on lines 4015..4019
    packages/rest-typings/src/v1/omnichannel.ts on lines 4020..4024
    packages/rest-typings/src/v1/rooms.ts on lines 744..748
    packages/rest-typings/src/v1/rooms.ts on lines 762..766
    packages/rest-typings/src/v1/teams/index.ts on lines 190..192
    packages/rest-typings/src/v1/users.ts on lines 153..157
    packages/rest-typings/src/v1/videoConference/index.ts on lines 33..35
    packages/rest-typings/src/v1/voip.ts on lines 543..545
    packages/rest-typings/src/v1/voip.ts on lines 558..560
    packages/rest-typings/src/v1/voip.ts on lines 576..578

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 45.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 39 locations. Consider refactoring.
    Open

        '/v1/livechat/inquiries.queuedForUser': {
            GET: (params: GETLivechatInquiriesQueuedForUserParams) => PaginatedResult<{ inquiries: ILivechatInquiryRecord[] }>;
        };
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 38 other locations - About 30 mins to fix
    packages/rest-typings/src/v1/channels/channels.ts on lines 42..46
    packages/rest-typings/src/v1/channels/channels.ts on lines 56..60
    packages/rest-typings/src/v1/channels/channels.ts on lines 133..137
    packages/rest-typings/src/v1/channels/channels.ts on lines 161..165
    packages/rest-typings/src/v1/customSounds.ts on lines 39..43
    packages/rest-typings/src/v1/customUserStatus.ts on lines 39..43
    packages/rest-typings/src/v1/dm/im.ts on lines 43..47
    packages/rest-typings/src/v1/dm/im.ts on lines 59..63
    packages/rest-typings/src/v1/email-inbox.ts on lines 160..162
    packages/rest-typings/src/v1/federation/rooms.ts on lines 17..21
    packages/rest-typings/src/v1/groups/groups.ts on lines 43..47
    packages/rest-typings/src/v1/groups/groups.ts on lines 56..60
    packages/rest-typings/src/v1/groups/groups.ts on lines 101..105
    packages/rest-typings/src/v1/omnichannel.ts on lines 3518..3522
    packages/rest-typings/src/v1/omnichannel.ts on lines 3526..3530
    packages/rest-typings/src/v1/omnichannel.ts on lines 3557..3561
    packages/rest-typings/src/v1/omnichannel.ts on lines 3578..3582
    packages/rest-typings/src/v1/omnichannel.ts on lines 3583..3587
    packages/rest-typings/src/v1/omnichannel.ts on lines 3589..3593
    packages/rest-typings/src/v1/omnichannel.ts on lines 3605..3609
    packages/rest-typings/src/v1/omnichannel.ts on lines 3613..3617
    packages/rest-typings/src/v1/omnichannel.ts on lines 3747..3749
    packages/rest-typings/src/v1/omnichannel.ts on lines 3848..3850
    packages/rest-typings/src/v1/omnichannel.ts on lines 3851..3853
    packages/rest-typings/src/v1/omnichannel.ts on lines 3854..3858
    packages/rest-typings/src/v1/omnichannel.ts on lines 3882..3884
    packages/rest-typings/src/v1/omnichannel.ts on lines 3905..3907
    packages/rest-typings/src/v1/omnichannel.ts on lines 3911..3913
    packages/rest-typings/src/v1/omnichannel.ts on lines 4015..4019
    packages/rest-typings/src/v1/omnichannel.ts on lines 4020..4024
    packages/rest-typings/src/v1/rooms.ts on lines 744..748
    packages/rest-typings/src/v1/rooms.ts on lines 762..766
    packages/rest-typings/src/v1/teams/index.ts on lines 190..192
    packages/rest-typings/src/v1/users.ts on lines 153..157
    packages/rest-typings/src/v1/videoConference/index.ts on lines 33..35
    packages/rest-typings/src/v1/voip.ts on lines 543..545
    packages/rest-typings/src/v1/voip.ts on lines 558..560
    packages/rest-typings/src/v1/voip.ts on lines 576..578

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 45.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 39 locations. Consider refactoring.
    Open

        '/v1/livechat/analytics/agents/available-for-service-history': {
            GET: (params: LivechatAnalyticsAgentsAvailableForServiceHistoryProps) => PaginatedResult<{
                agents: ILivechatAgentActivity[];
            }>;
        };
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 38 other locations - About 30 mins to fix
    packages/rest-typings/src/v1/channels/channels.ts on lines 42..46
    packages/rest-typings/src/v1/channels/channels.ts on lines 56..60
    packages/rest-typings/src/v1/channels/channels.ts on lines 133..137
    packages/rest-typings/src/v1/channels/channels.ts on lines 161..165
    packages/rest-typings/src/v1/customSounds.ts on lines 39..43
    packages/rest-typings/src/v1/customUserStatus.ts on lines 39..43
    packages/rest-typings/src/v1/dm/im.ts on lines 43..47
    packages/rest-typings/src/v1/dm/im.ts on lines 59..63
    packages/rest-typings/src/v1/email-inbox.ts on lines 160..162
    packages/rest-typings/src/v1/federation/rooms.ts on lines 17..21
    packages/rest-typings/src/v1/groups/groups.ts on lines 43..47
    packages/rest-typings/src/v1/groups/groups.ts on lines 56..60
    packages/rest-typings/src/v1/groups/groups.ts on lines 101..105
    packages/rest-typings/src/v1/omnichannel.ts on lines 3518..3522
    packages/rest-typings/src/v1/omnichannel.ts on lines 3526..3530
    packages/rest-typings/src/v1/omnichannel.ts on lines 3557..3561
    packages/rest-typings/src/v1/omnichannel.ts on lines 3578..3582
    packages/rest-typings/src/v1/omnichannel.ts on lines 3583..3587
    packages/rest-typings/src/v1/omnichannel.ts on lines 3589..3593
    packages/rest-typings/src/v1/omnichannel.ts on lines 3605..3609
    packages/rest-typings/src/v1/omnichannel.ts on lines 3613..3617
    packages/rest-typings/src/v1/omnichannel.ts on lines 3747..3749
    packages/rest-typings/src/v1/omnichannel.ts on lines 3848..3850
    packages/rest-typings/src/v1/omnichannel.ts on lines 3851..3853
    packages/rest-typings/src/v1/omnichannel.ts on lines 3854..3858
    packages/rest-typings/src/v1/omnichannel.ts on lines 3882..3884
    packages/rest-typings/src/v1/omnichannel.ts on lines 3905..3907
    packages/rest-typings/src/v1/omnichannel.ts on lines 3911..3913
    packages/rest-typings/src/v1/omnichannel.ts on lines 3914..3916
    packages/rest-typings/src/v1/omnichannel.ts on lines 4020..4024
    packages/rest-typings/src/v1/rooms.ts on lines 744..748
    packages/rest-typings/src/v1/rooms.ts on lines 762..766
    packages/rest-typings/src/v1/teams/index.ts on lines 190..192
    packages/rest-typings/src/v1/users.ts on lines 153..157
    packages/rest-typings/src/v1/videoConference/index.ts on lines 33..35
    packages/rest-typings/src/v1/voip.ts on lines 543..545
    packages/rest-typings/src/v1/voip.ts on lines 558..560
    packages/rest-typings/src/v1/voip.ts on lines 576..578

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 45.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 39 locations. Consider refactoring.
    Open

        '/v1/livechat/departments/archived': {
            GET: (params?: LivechatDepartmentProps) => PaginatedResult<{
                departments: ILivechatDepartment[];
            }>;
        };
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 38 other locations - About 30 mins to fix
    packages/rest-typings/src/v1/channels/channels.ts on lines 42..46
    packages/rest-typings/src/v1/channels/channels.ts on lines 56..60
    packages/rest-typings/src/v1/channels/channels.ts on lines 133..137
    packages/rest-typings/src/v1/channels/channels.ts on lines 161..165
    packages/rest-typings/src/v1/customSounds.ts on lines 39..43
    packages/rest-typings/src/v1/customUserStatus.ts on lines 39..43
    packages/rest-typings/src/v1/dm/im.ts on lines 43..47
    packages/rest-typings/src/v1/dm/im.ts on lines 59..63
    packages/rest-typings/src/v1/email-inbox.ts on lines 160..162
    packages/rest-typings/src/v1/federation/rooms.ts on lines 17..21
    packages/rest-typings/src/v1/groups/groups.ts on lines 43..47
    packages/rest-typings/src/v1/groups/groups.ts on lines 56..60
    packages/rest-typings/src/v1/groups/groups.ts on lines 101..105
    packages/rest-typings/src/v1/omnichannel.ts on lines 3518..3522
    packages/rest-typings/src/v1/omnichannel.ts on lines 3526..3530
    packages/rest-typings/src/v1/omnichannel.ts on lines 3578..3582
    packages/rest-typings/src/v1/omnichannel.ts on lines 3583..3587
    packages/rest-typings/src/v1/omnichannel.ts on lines 3589..3593
    packages/rest-typings/src/v1/omnichannel.ts on lines 3605..3609
    packages/rest-typings/src/v1/omnichannel.ts on lines 3613..3617
    packages/rest-typings/src/v1/omnichannel.ts on lines 3747..3749
    packages/rest-typings/src/v1/omnichannel.ts on lines 3848..3850
    packages/rest-typings/src/v1/omnichannel.ts on lines 3851..3853
    packages/rest-typings/src/v1/omnichannel.ts on lines 3854..3858
    packages/rest-typings/src/v1/omnichannel.ts on lines 3882..3884
    packages/rest-typings/src/v1/omnichannel.ts on lines 3905..3907
    packages/rest-typings/src/v1/omnichannel.ts on lines 3911..3913
    packages/rest-typings/src/v1/omnichannel.ts on lines 3914..3916
    packages/rest-typings/src/v1/omnichannel.ts on lines 4015..4019
    packages/rest-typings/src/v1/omnichannel.ts on lines 4020..4024
    packages/rest-typings/src/v1/rooms.ts on lines 744..748
    packages/rest-typings/src/v1/rooms.ts on lines 762..766
    packages/rest-typings/src/v1/teams/index.ts on lines 190..192
    packages/rest-typings/src/v1/users.ts on lines 153..157
    packages/rest-typings/src/v1/videoConference/index.ts on lines 33..35
    packages/rest-typings/src/v1/voip.ts on lines 543..545
    packages/rest-typings/src/v1/voip.ts on lines 558..560
    packages/rest-typings/src/v1/voip.ts on lines 576..578

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 45.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 39 locations. Consider refactoring.
    Open

        '/v1/livechat/:rid/messages': {
            GET: (params: LivechatRidMessagesProps) => PaginatedResult<{
                messages: IMessage[];
            }>;
        };
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 38 other locations - About 30 mins to fix
    packages/rest-typings/src/v1/channels/channels.ts on lines 42..46
    packages/rest-typings/src/v1/channels/channels.ts on lines 56..60
    packages/rest-typings/src/v1/channels/channels.ts on lines 133..137
    packages/rest-typings/src/v1/channels/channels.ts on lines 161..165
    packages/rest-typings/src/v1/customSounds.ts on lines 39..43
    packages/rest-typings/src/v1/customUserStatus.ts on lines 39..43
    packages/rest-typings/src/v1/dm/im.ts on lines 43..47
    packages/rest-typings/src/v1/dm/im.ts on lines 59..63
    packages/rest-typings/src/v1/email-inbox.ts on lines 160..162
    packages/rest-typings/src/v1/federation/rooms.ts on lines 17..21
    packages/rest-typings/src/v1/groups/groups.ts on lines 43..47
    packages/rest-typings/src/v1/groups/groups.ts on lines 56..60
    packages/rest-typings/src/v1/groups/groups.ts on lines 101..105
    packages/rest-typings/src/v1/omnichannel.ts on lines 3518..3522
    packages/rest-typings/src/v1/omnichannel.ts on lines 3526..3530
    packages/rest-typings/src/v1/omnichannel.ts on lines 3557..3561
    packages/rest-typings/src/v1/omnichannel.ts on lines 3578..3582
    packages/rest-typings/src/v1/omnichannel.ts on lines 3583..3587
    packages/rest-typings/src/v1/omnichannel.ts on lines 3589..3593
    packages/rest-typings/src/v1/omnichannel.ts on lines 3605..3609
    packages/rest-typings/src/v1/omnichannel.ts on lines 3747..3749
    packages/rest-typings/src/v1/omnichannel.ts on lines 3848..3850
    packages/rest-typings/src/v1/omnichannel.ts on lines 3851..3853
    packages/rest-typings/src/v1/omnichannel.ts on lines 3854..3858
    packages/rest-typings/src/v1/omnichannel.ts on lines 3882..3884
    packages/rest-typings/src/v1/omnichannel.ts on lines 3905..3907
    packages/rest-typings/src/v1/omnichannel.ts on lines 3911..3913
    packages/rest-typings/src/v1/omnichannel.ts on lines 3914..3916
    packages/rest-typings/src/v1/omnichannel.ts on lines 4015..4019
    packages/rest-typings/src/v1/omnichannel.ts on lines 4020..4024
    packages/rest-typings/src/v1/rooms.ts on lines 744..748
    packages/rest-typings/src/v1/rooms.ts on lines 762..766
    packages/rest-typings/src/v1/teams/index.ts on lines 190..192
    packages/rest-typings/src/v1/users.ts on lines 153..157
    packages/rest-typings/src/v1/videoConference/index.ts on lines 33..35
    packages/rest-typings/src/v1/voip.ts on lines 543..545
    packages/rest-typings/src/v1/voip.ts on lines 558..560
    packages/rest-typings/src/v1/voip.ts on lines 576..578

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 45.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 39 locations. Consider refactoring.
    Open

        '/v1/livechat/units/:unitId/departments/available': {
            GET: (params: LivechatDepartmentsAvailableByUnitIdProps) => PaginatedResult<{
                departments: ILivechatDepartment[];
            }>;
        };
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 38 other locations - About 30 mins to fix
    packages/rest-typings/src/v1/channels/channels.ts on lines 42..46
    packages/rest-typings/src/v1/channels/channels.ts on lines 56..60
    packages/rest-typings/src/v1/channels/channels.ts on lines 133..137
    packages/rest-typings/src/v1/channels/channels.ts on lines 161..165
    packages/rest-typings/src/v1/customSounds.ts on lines 39..43
    packages/rest-typings/src/v1/customUserStatus.ts on lines 39..43
    packages/rest-typings/src/v1/dm/im.ts on lines 43..47
    packages/rest-typings/src/v1/dm/im.ts on lines 59..63
    packages/rest-typings/src/v1/email-inbox.ts on lines 160..162
    packages/rest-typings/src/v1/federation/rooms.ts on lines 17..21
    packages/rest-typings/src/v1/groups/groups.ts on lines 43..47
    packages/rest-typings/src/v1/groups/groups.ts on lines 56..60
    packages/rest-typings/src/v1/groups/groups.ts on lines 101..105
    packages/rest-typings/src/v1/omnichannel.ts on lines 3518..3522
    packages/rest-typings/src/v1/omnichannel.ts on lines 3526..3530
    packages/rest-typings/src/v1/omnichannel.ts on lines 3557..3561
    packages/rest-typings/src/v1/omnichannel.ts on lines 3583..3587
    packages/rest-typings/src/v1/omnichannel.ts on lines 3589..3593
    packages/rest-typings/src/v1/omnichannel.ts on lines 3605..3609
    packages/rest-typings/src/v1/omnichannel.ts on lines 3613..3617
    packages/rest-typings/src/v1/omnichannel.ts on lines 3747..3749
    packages/rest-typings/src/v1/omnichannel.ts on lines 3848..3850
    packages/rest-typings/src/v1/omnichannel.ts on lines 3851..3853
    packages/rest-typings/src/v1/omnichannel.ts on lines 3854..3858
    packages/rest-typings/src/v1/omnichannel.ts on lines 3882..3884
    packages/rest-typings/src/v1/omnichannel.ts on lines 3905..3907
    packages/rest-typings/src/v1/omnichannel.ts on lines 3911..3913
    packages/rest-typings/src/v1/omnichannel.ts on lines 3914..3916
    packages/rest-typings/src/v1/omnichannel.ts on lines 4015..4019
    packages/rest-typings/src/v1/omnichannel.ts on lines 4020..4024
    packages/rest-typings/src/v1/rooms.ts on lines 744..748
    packages/rest-typings/src/v1/rooms.ts on lines 762..766
    packages/rest-typings/src/v1/teams/index.ts on lines 190..192
    packages/rest-typings/src/v1/users.ts on lines 153..157
    packages/rest-typings/src/v1/videoConference/index.ts on lines 33..35
    packages/rest-typings/src/v1/voip.ts on lines 543..545
    packages/rest-typings/src/v1/voip.ts on lines 558..560
    packages/rest-typings/src/v1/voip.ts on lines 576..578

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 45.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 39 locations. Consider refactoring.
    Open

        '/v1/livechat/custom-fields': {
            GET: (params?: LivechatCustomFieldsProps) => PaginatedResult<{
                customFields: ILivechatCustomField[];
            }>;
        };
    Severity: Major
    Found in packages/rest-typings/src/v1/omnichannel.ts and 38 other locations - About 30 mins to fix
    packages/rest-typings/src/v1/channels/channels.ts on lines 42..46
    packages/rest-typings/src/v1/channels/channels.ts on lines 56..60
    packages/rest-typings/src/v1/channels/channels.ts on lines 133..137
    packages/rest-typings/src/v1/channels/channels.ts on lines 161..165
    packages/rest-typings/src/v1/customSounds.ts on lines 39..43
    packages/rest-typings/src/v1/customUserStatus.ts on lines 39..43
    packages/rest-typings/src/v1/dm/im.ts on lines 43..47
    packages/rest-typings/src/v1/dm/im.ts on lines 59..63
    packages/rest-typings/src/v1/email-inbox.ts on lines 160..162
    packages/rest-typings/src/v1/federation/rooms.ts on lines 17..21
    packages/rest-typings/src/v1/groups/groups.ts on lines 43..47
    packages/rest-typings/src/v1/groups/groups.ts on lines 56..60
    packages/rest-typings/src/v1/groups/groups.ts on lines 101..105
    packages/rest-typings/src/v1/omnichannel.ts on lines 3518..3522
    packages/rest-typings/src/v1/omnichannel.ts on lines 3526..3530
    packages/rest-typings/src/v1/omnichannel.ts on lines 3557..3561
    packages/rest-typings/src/v1/omnichannel.ts on lines 3578..3582
    packages/rest-typings/src/v1/omnichannel.ts on lines 3583..3587
    packages/rest-typings/src/v1/omnichannel.ts on lines 3589..3593
    packages/rest-typings/src/v1/omnichannel.ts on lines 3613..3617
    packages/rest-typings/src/v1/omnichannel.ts on lines 3747..3749
    packages/rest-typings/src/v1/omnichannel.ts on lines 3848..3850
    packages/rest-typings/src/v1/omnichannel.ts on lines 3851..3853
    packages/rest-typings/src/v1/omnichannel.ts on lines 3854..3858
    packages/rest-typings/src/v1/omnichannel.ts on lines 3882..3884
    packages/rest-typings/src/v1/omnichannel.ts on lines 3905..3907
    packages/rest-typings/src/v1/omnichannel.ts on lines 3911..3913
    packages/rest-typings/src/v1/omnichannel.ts on lines 3914..3916
    packages/rest-typings/src/v1/omnichannel.ts on lines 4015..4019
    packages/rest-typings/src/v1/omnichannel.ts on lines 4020..4024
    packages/rest-typings/src/v1/rooms.ts on lines 744..748
    packages/rest-typings/src/v1/rooms.ts on lines 762..766
    packages/rest-typings/src/v1/teams/index.ts on lines 190..192
    packages/rest-typings/src/v1/users.ts on lines 153..157
    packages/rest-typings/src/v1/videoConference/index.ts on lines 33..35
    packages/rest-typings/src/v1/voip.ts on lines 543..545
    packages/rest-typings/src/v1/voip.ts on lines 558..560
    packages/rest-typings/src/v1/voip.ts on lines 576..578

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 45.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    There are no issues that match your filters.

    Category
    Status