@rocket.chat/rest-typings 9.0.0-rc.0 → 9.0.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +211 -79
- package/dist/apps/appLogsExportProps.d.ts +1 -1
- package/dist/apps/appLogsExportProps.d.ts.map +1 -1
- package/dist/default/index.d.ts +2 -0
- package/dist/default/index.d.ts.map +1 -1
- package/dist/experimental/index.d.ts +35 -0
- package/dist/experimental/index.d.ts.map +1 -0
- package/dist/experimental/index.js +2 -0
- package/dist/experimental/index.js.map +1 -0
- package/dist/helpers/PaginatedRequest.d.ts +0 -1
- package/dist/helpers/PaginatedRequest.d.ts.map +1 -1
- package/dist/index.d.ts +7 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/v1/Ajv.d.ts +5 -5
- package/dist/v1/Ajv.d.ts.map +1 -1
- package/dist/v1/Ajv.js +44 -3
- package/dist/v1/Ajv.js.map +1 -1
- package/dist/v1/abacCreationAttributes.d.ts +22 -0
- package/dist/v1/abacCreationAttributes.d.ts.map +1 -0
- package/dist/v1/abacCreationAttributes.js +15 -0
- package/dist/v1/abacCreationAttributes.js.map +1 -0
- package/dist/v1/aiSearch.d.ts +1 -0
- package/dist/v1/aiSearch.d.ts.map +1 -1
- package/dist/v1/aiSearch.js +1 -0
- package/dist/v1/aiSearch.js.map +1 -1
- package/dist/v1/banners.d.ts +3 -0
- package/dist/v1/banners.d.ts.map +1 -1
- package/dist/v1/banners.js +17 -0
- package/dist/v1/banners.js.map +1 -1
- package/dist/v1/channels/ChannelsConvertToTeamProps.d.ts.map +1 -1
- package/dist/v1/channels/ChannelsConvertToTeamProps.js.map +1 -1
- package/dist/v1/channels/ChannelsCreateProps.d.ts +4 -0
- package/dist/v1/channels/ChannelsCreateProps.d.ts.map +1 -1
- package/dist/v1/channels/ChannelsCreateProps.js +21 -2
- package/dist/v1/channels/ChannelsCreateProps.js.map +1 -1
- package/dist/v1/channels/ChannelsFilesListProps.d.ts +0 -1
- package/dist/v1/channels/ChannelsFilesListProps.d.ts.map +1 -1
- package/dist/v1/channels/ChannelsFilesListProps.js +8 -26
- package/dist/v1/channels/ChannelsFilesListProps.js.map +1 -1
- package/dist/v1/channels/ChannelsGetAllUserMentionsByChannelProps.d.ts.map +1 -1
- package/dist/v1/channels/ChannelsGetAllUserMentionsByChannelProps.js +4 -18
- package/dist/v1/channels/ChannelsGetAllUserMentionsByChannelProps.js.map +1 -1
- package/dist/v1/channels/ChannelsGetIntegrationsProps.d.ts.map +1 -1
- package/dist/v1/channels/ChannelsGetIntegrationsProps.js.map +1 -1
- package/dist/v1/channels/ChannelsHistoryProps.d.ts.map +1 -1
- package/dist/v1/channels/ChannelsHistoryProps.js +17 -48
- package/dist/v1/channels/ChannelsHistoryProps.js.map +1 -1
- package/dist/v1/channels/ChannelsInviteProps.d.ts +9 -6
- package/dist/v1/channels/ChannelsInviteProps.d.ts.map +1 -1
- package/dist/v1/channels/ChannelsInviteProps.js +32 -32
- package/dist/v1/channels/ChannelsInviteProps.js.map +1 -1
- package/dist/v1/channels/ChannelsListProps.d.ts.map +1 -1
- package/dist/v1/channels/ChannelsListProps.js +4 -15
- package/dist/v1/channels/ChannelsListProps.js.map +1 -1
- package/dist/v1/channels/ChannelsMessagesProps.d.ts +1 -2
- package/dist/v1/channels/ChannelsMessagesProps.d.ts.map +1 -1
- package/dist/v1/channels/ChannelsMessagesProps.js +7 -23
- package/dist/v1/channels/ChannelsMessagesProps.js.map +1 -1
- package/dist/v1/channels/ChannelsOnlineProps.d.ts +1 -2
- package/dist/v1/channels/ChannelsOnlineProps.d.ts.map +1 -1
- package/dist/v1/channels/ChannelsOnlineProps.js +1 -6
- package/dist/v1/channels/ChannelsOnlineProps.js.map +1 -1
- package/dist/v1/channels/ChannelsOpenProps.d.ts +0 -2
- package/dist/v1/channels/ChannelsOpenProps.d.ts.map +1 -1
- package/dist/v1/channels/ChannelsOpenProps.js +0 -8
- package/dist/v1/channels/ChannelsOpenProps.js.map +1 -1
- package/dist/v1/channels/ChannelsSetCustomFieldsProps.d.ts.map +1 -1
- package/dist/v1/channels/ChannelsSetCustomFieldsProps.js.map +1 -1
- package/dist/v1/channels/channels.d.ts +5 -3
- package/dist/v1/channels/channels.d.ts.map +1 -1
- package/dist/v1/chat.d.ts +116 -62
- package/dist/v1/chat.d.ts.map +1 -1
- package/dist/v1/chat.js +126 -139
- package/dist/v1/chat.js.map +1 -1
- package/dist/v1/cloud.d.ts +5 -0
- package/dist/v1/cloud.d.ts.map +1 -1
- package/dist/v1/customSounds.d.ts.map +1 -1
- package/dist/v1/customSounds.js +4 -18
- package/dist/v1/customSounds.js.map +1 -1
- package/dist/v1/directory.d.ts +0 -1
- package/dist/v1/directory.d.ts.map +1 -1
- package/dist/v1/directory.js +6 -22
- package/dist/v1/directory.js.map +1 -1
- package/dist/v1/dm/DmFileProps.d.ts +0 -1
- package/dist/v1/dm/DmFileProps.d.ts.map +1 -1
- package/dist/v1/dm/DmFileProps.js +8 -26
- package/dist/v1/dm/DmFileProps.js.map +1 -1
- package/dist/v1/dm/DmHistoryProps.d.ts.map +1 -1
- package/dist/v1/dm/DmHistoryProps.js +9 -22
- package/dist/v1/dm/DmHistoryProps.js.map +1 -1
- package/dist/v1/dm/DmMembersProps.d.ts.map +1 -1
- package/dist/v1/dm/DmMembersProps.js +11 -38
- package/dist/v1/dm/DmMembersProps.js.map +1 -1
- package/dist/v1/dm/DmMessagesProps.d.ts +0 -2
- package/dist/v1/dm/DmMessagesProps.d.ts.map +1 -1
- package/dist/v1/dm/DmMessagesProps.js +13 -48
- package/dist/v1/dm/DmMessagesProps.js.map +1 -1
- package/dist/v1/dm/dm.d.ts +7 -3
- package/dist/v1/dm/dm.d.ts.map +1 -1
- package/dist/v1/dm/im.d.ts +62 -45
- package/dist/v1/dm/im.d.ts.map +1 -1
- package/dist/v1/dm/index.d.ts +1 -0
- package/dist/v1/dm/index.d.ts.map +1 -1
- package/dist/v1/dm/index.js +1 -0
- package/dist/v1/dm/index.js.map +1 -1
- package/dist/v1/e2e.d.ts +68 -3
- package/dist/v1/e2e.d.ts.map +1 -1
- package/dist/v1/e2e.js.map +1 -1
- package/dist/v1/email-inbox.d.ts +5 -3
- package/dist/v1/email-inbox.d.ts.map +1 -1
- package/dist/v1/email-inbox.js +3 -16
- package/dist/v1/email-inbox.js.map +1 -1
- package/dist/v1/emojiCustom.d.ts +19 -14
- package/dist/v1/emojiCustom.d.ts.map +1 -1
- package/dist/v1/emojiCustom.js +0 -3
- package/dist/v1/emojiCustom.js.map +1 -1
- package/dist/v1/federation/index.d.ts +10 -16
- package/dist/v1/federation/index.d.ts.map +1 -1
- package/dist/v1/federation/index.js +1 -5
- package/dist/v1/federation/index.js.map +1 -1
- package/dist/v1/groups/BaseProps.d.ts.map +1 -1
- package/dist/v1/groups/BaseProps.js.map +1 -1
- package/dist/v1/groups/GroupsCreateProps.d.ts +5 -0
- package/dist/v1/groups/GroupsCreateProps.d.ts.map +1 -1
- package/dist/v1/groups/GroupsCreateProps.js +10 -0
- package/dist/v1/groups/GroupsCreateProps.js.map +1 -1
- package/dist/v1/groups/GroupsFilesProps.d.ts.map +1 -1
- package/dist/v1/groups/GroupsFilesProps.js +8 -26
- package/dist/v1/groups/GroupsFilesProps.js.map +1 -1
- package/dist/v1/groups/GroupsMessagesProps.d.ts +0 -1
- package/dist/v1/groups/GroupsMessagesProps.d.ts.map +1 -1
- package/dist/v1/groups/GroupsMessagesProps.js +0 -4
- package/dist/v1/groups/GroupsMessagesProps.js.map +1 -1
- package/dist/v1/groups/GroupsOnlineProps.d.ts +1 -2
- package/dist/v1/groups/GroupsOnlineProps.d.ts.map +1 -1
- package/dist/v1/groups/GroupsOnlineProps.js +1 -6
- package/dist/v1/groups/GroupsOnlineProps.js.map +1 -1
- package/dist/v1/groups/groups.d.ts +1 -0
- package/dist/v1/groups/groups.d.ts.map +1 -1
- package/dist/v1/integrations/IntegrationsHistoryProps.d.ts.map +1 -1
- package/dist/v1/integrations/IntegrationsHistoryProps.js +2 -7
- package/dist/v1/integrations/IntegrationsHistoryProps.js.map +1 -1
- package/dist/v1/integrations/IntegrationsListProps.d.ts +0 -1
- package/dist/v1/integrations/IntegrationsListProps.d.ts.map +1 -1
- package/dist/v1/integrations/IntegrationsListProps.js +5 -20
- package/dist/v1/integrations/IntegrationsListProps.js.map +1 -1
- package/dist/v1/integrations/IntegrationsRemoveProps.d.ts.map +1 -1
- package/dist/v1/integrations/IntegrationsRemoveProps.js.map +1 -1
- package/dist/v1/invites.d.ts +8 -4
- package/dist/v1/invites.d.ts.map +1 -1
- package/dist/v1/me/meSuccessResponse.d.ts +1 -1
- package/dist/v1/me/meSuccessResponse.d.ts.map +1 -1
- package/dist/v1/misc.d.ts.map +1 -1
- package/dist/v1/misc.js +6 -22
- package/dist/v1/misc.js.map +1 -1
- package/dist/v1/moderation/GetUserReportsParams.d.ts.map +1 -1
- package/dist/v1/moderation/GetUserReportsParams.js +5 -16
- package/dist/v1/moderation/GetUserReportsParams.js.map +1 -1
- package/dist/v1/moderation/ReportHistoryProps.d.ts.map +1 -1
- package/dist/v1/moderation/ReportHistoryProps.js +6 -18
- package/dist/v1/moderation/ReportHistoryProps.js.map +1 -1
- package/dist/v1/moderation/ReportsByMsgIdParams.d.ts.map +1 -1
- package/dist/v1/moderation/ReportsByMsgIdParams.js +5 -16
- package/dist/v1/moderation/ReportsByMsgIdParams.js.map +1 -1
- package/dist/v1/omnichannel.d.ts +3 -11
- package/dist/v1/omnichannel.d.ts.map +1 -1
- package/dist/v1/omnichannel.js +177 -712
- package/dist/v1/omnichannel.js.map +1 -1
- package/dist/v1/pagination.d.ts +39 -0
- package/dist/v1/pagination.d.ts.map +1 -0
- package/dist/v1/pagination.js +41 -0
- package/dist/v1/pagination.js.map +1 -0
- package/dist/v1/push.d.ts +1 -2
- package/dist/v1/push.d.ts.map +1 -1
- package/dist/v1/roles.d.ts +4 -4
- package/dist/v1/roles.d.ts.map +1 -1
- package/dist/v1/roles.js +5 -20
- package/dist/v1/roles.js.map +1 -1
- package/dist/v1/rooms.d.ts +107 -19
- package/dist/v1/rooms.d.ts.map +1 -1
- package/dist/v1/rooms.js +60 -78
- package/dist/v1/rooms.js.map +1 -1
- package/dist/v1/saml.d.ts +16 -0
- package/dist/v1/saml.d.ts.map +1 -0
- package/dist/v1/saml.js +28 -0
- package/dist/v1/saml.js.map +1 -0
- package/dist/v1/server-events/ServerEventsAuditSettingsParamsGET.d.ts.map +1 -1
- package/dist/v1/server-events/ServerEventsAuditSettingsParamsGET.js +7 -20
- package/dist/v1/server-events/ServerEventsAuditSettingsParamsGET.js.map +1 -1
- package/dist/v1/settings.d.ts +8 -2
- package/dist/v1/settings.d.ts.map +1 -1
- package/dist/v1/settings.js +7 -35
- package/dist/v1/settings.js.map +1 -1
- package/dist/v1/setupWizard.d.ts +10 -0
- package/dist/v1/setupWizard.d.ts.map +1 -0
- package/dist/v1/setupWizard.js +2 -0
- package/dist/v1/setupWizard.js.map +1 -0
- package/dist/v1/statistics.d.ts +5 -3
- package/dist/v1/statistics.d.ts.map +1 -1
- package/dist/v1/statistics.js +3 -20
- package/dist/v1/statistics.js.map +1 -1
- package/dist/v1/teams/TeamsCreateProps.d.ts +2 -0
- package/dist/v1/teams/TeamsCreateProps.d.ts.map +1 -1
- package/dist/v1/teams/TeamsCreateProps.js +2 -0
- package/dist/v1/teams/TeamsCreateProps.js.map +1 -1
- package/dist/v1/teams/TeamsListChildren.d.ts.map +1 -1
- package/dist/v1/teams/TeamsListChildren.js +2 -10
- package/dist/v1/teams/TeamsListChildren.js.map +1 -1
- package/dist/v1/teams/TeamsListRoomsOfUserProps.d.ts.map +1 -1
- package/dist/v1/teams/TeamsListRoomsOfUserProps.js +2 -9
- package/dist/v1/teams/TeamsListRoomsOfUserProps.js.map +1 -1
- package/dist/v1/teams/TeamsListRoomsProps.d.ts.map +1 -1
- package/dist/v1/teams/TeamsListRoomsProps.js +2 -9
- package/dist/v1/teams/TeamsListRoomsProps.js.map +1 -1
- package/dist/v1/teams/TeamsMembersProps.d.ts.map +1 -1
- package/dist/v1/teams/TeamsMembersProps.js +2 -10
- package/dist/v1/teams/TeamsMembersProps.js.map +1 -1
- package/dist/v1/teams/TeamsRemoveRoomProps.d.ts +2 -2
- package/dist/v1/teams/TeamsRemoveRoomProps.d.ts.map +1 -1
- package/dist/v1/teams/index.d.ts +15 -41
- package/dist/v1/teams/index.d.ts.map +1 -1
- package/dist/v1/teams/index.js.map +1 -1
- package/dist/v1/users/UserCreateParamsPOST.d.ts +4 -3
- package/dist/v1/users/UserCreateParamsPOST.d.ts.map +1 -1
- package/dist/v1/users/UserCreateParamsPOST.js +4 -2
- package/dist/v1/users/UserCreateParamsPOST.js.map +1 -1
- package/dist/v1/users/UsersInfoParamsGet.d.ts +1 -2
- package/dist/v1/users/UsersInfoParamsGet.d.ts.map +1 -1
- package/dist/v1/users/UsersInfoParamsGet.js +17 -22
- package/dist/v1/users/UsersInfoParamsGet.js.map +1 -1
- package/dist/v1/users/UsersListParamsGET.d.ts +3 -2
- package/dist/v1/users/UsersListParamsGET.d.ts.map +1 -1
- package/dist/v1/users/UsersListParamsGET.js +2 -8
- package/dist/v1/users/UsersListParamsGET.js.map +1 -1
- package/dist/v1/users/UsersListStatusParamsGET.d.ts +1 -0
- package/dist/v1/users/UsersListStatusParamsGET.d.ts.map +1 -1
- package/dist/v1/users/UsersListStatusParamsGET.js +12 -24
- package/dist/v1/users/UsersListStatusParamsGET.js.map +1 -1
- package/dist/v1/users/UsersListStatusVisibilityParamsGET.d.ts +7 -0
- package/dist/v1/users/UsersListStatusVisibilityParamsGET.d.ts.map +1 -0
- package/dist/v1/users/UsersListStatusVisibilityParamsGET.js +12 -0
- package/dist/v1/users/UsersListStatusVisibilityParamsGET.js.map +1 -0
- package/dist/v1/users/UsersPresenceParamsGET.d.ts +1 -2
- package/dist/v1/users/UsersPresenceParamsGET.d.ts.map +1 -1
- package/dist/v1/users/UsersRequestDataDownloadParamsGET.d.ts +2 -3
- package/dist/v1/users/UsersRequestDataDownloadParamsGET.d.ts.map +1 -1
- package/dist/v1/users/UsersRequestDataDownloadParamsGET.js +1 -1
- package/dist/v1/users/UsersRequestDataDownloadParamsGET.js.map +1 -1
- package/dist/v1/users/UsersSetPreferenceParamsPOST.d.ts +3 -1
- package/dist/v1/users/UsersSetPreferenceParamsPOST.d.ts.map +1 -1
- package/dist/v1/users/UsersSetPreferenceParamsPOST.js +19 -0
- package/dist/v1/users/UsersSetPreferenceParamsPOST.js.map +1 -1
- package/dist/v1/users/UsersUpdateOwnBasicInfoParamsPOST.d.ts +2 -0
- package/dist/v1/users/UsersUpdateOwnBasicInfoParamsPOST.d.ts.map +1 -1
- package/dist/v1/users/UsersUpdateOwnBasicInfoParamsPOST.js +2 -0
- package/dist/v1/users/UsersUpdateOwnBasicInfoParamsPOST.js.map +1 -1
- package/dist/v1/users/UsersUpdateParamsPOST.d.ts +5 -2
- package/dist/v1/users/UsersUpdateParamsPOST.d.ts.map +1 -1
- package/dist/v1/users/UsersUpdateParamsPOST.js +12 -1
- package/dist/v1/users/UsersUpdateParamsPOST.js.map +1 -1
- package/dist/v1/users/phonesSchema.d.ts +22 -0
- package/dist/v1/users/phonesSchema.d.ts.map +1 -0
- package/dist/v1/users/phonesSchema.js +15 -0
- package/dist/v1/users/phonesSchema.js.map +1 -0
- package/dist/v1/users.d.ts +48 -9
- package/dist/v1/users.d.ts.map +1 -1
- package/dist/v1/users.js +1 -0
- package/dist/v1/users.js.map +1 -1
- package/dist/v1/videoConference/VideoConfAddParticipantsProps.d.ts +18 -0
- package/dist/v1/videoConference/VideoConfAddParticipantsProps.d.ts.map +1 -0
- package/dist/v1/videoConference/VideoConfAddParticipantsProps.js +30 -0
- package/dist/v1/videoConference/VideoConfAddParticipantsProps.js.map +1 -0
- package/dist/v1/videoConference/VideoConfCallIdProps.d.ts +11 -0
- package/dist/v1/videoConference/VideoConfCallIdProps.d.ts.map +1 -0
- package/dist/v1/videoConference/{VideoConfCancelProps.js → VideoConfCallIdProps.js} +3 -3
- package/dist/v1/videoConference/{VideoConfCancelProps.js.map → VideoConfCallIdProps.js.map} +1 -1
- package/dist/v1/videoConference/VideoConfListProps.d.ts.map +1 -1
- package/dist/v1/videoConference/VideoConfListProps.js +3 -6
- package/dist/v1/videoConference/VideoConfListProps.js.map +1 -1
- package/dist/v1/videoConference/VideoConfRenameProps.d.ts +7 -0
- package/dist/v1/videoConference/VideoConfRenameProps.d.ts.map +1 -0
- package/dist/v1/videoConference/VideoConfRenameProps.js +20 -0
- package/dist/v1/videoConference/VideoConfRenameProps.js.map +1 -0
- package/dist/v1/videoConference/VideoConfRingProps.d.ts +11 -0
- package/dist/v1/videoConference/VideoConfRingProps.d.ts.map +1 -0
- package/dist/v1/videoConference/VideoConfRingProps.js +19 -0
- package/dist/v1/videoConference/VideoConfRingProps.js.map +1 -0
- package/dist/v1/videoConference/VideoConfShareChatProps.d.ts +12 -0
- package/dist/v1/videoConference/VideoConfShareChatProps.d.ts.map +1 -0
- package/dist/v1/videoConference/VideoConfShareChatProps.js +18 -0
- package/dist/v1/videoConference/VideoConfShareChatProps.js.map +1 -0
- package/dist/v1/videoConference/index.d.ts +72 -4
- package/dist/v1/videoConference/index.d.ts.map +1 -1
- package/dist/v1/videoConference/index.js +5 -1
- package/dist/v1/videoConference/index.js.map +1 -1
- package/package.json +16 -10
- package/dist/v1/federation/FederationAddServerProps.d.ts +0 -5
- package/dist/v1/federation/FederationAddServerProps.d.ts.map +0 -1
- package/dist/v1/federation/FederationAddServerProps.js +0 -13
- package/dist/v1/federation/FederationAddServerProps.js.map +0 -1
- package/dist/v1/federation/FederationJoinExternalPublicRoomProps.d.ts +0 -7
- package/dist/v1/federation/FederationJoinExternalPublicRoomProps.d.ts.map +0 -1
- package/dist/v1/federation/FederationJoinExternalPublicRoomProps.js +0 -23
- package/dist/v1/federation/FederationJoinExternalPublicRoomProps.js.map +0 -1
- package/dist/v1/federation/FederationPublicRoomsProps.d.ts +0 -7
- package/dist/v1/federation/FederationPublicRoomsProps.d.ts.map +0 -1
- package/dist/v1/federation/FederationPublicRoomsProps.js +0 -25
- package/dist/v1/federation/FederationPublicRoomsProps.js.map +0 -1
- package/dist/v1/federation/FederationRemoveServerProps.d.ts +0 -5
- package/dist/v1/federation/FederationRemoveServerProps.d.ts.map +0 -1
- package/dist/v1/federation/FederationRemoveServerProps.js +0 -13
- package/dist/v1/federation/FederationRemoveServerProps.js.map +0 -1
- package/dist/v1/federation/FederationVerifyMatrixIdProps.d.ts +0 -5
- package/dist/v1/federation/FederationVerifyMatrixIdProps.d.ts.map +0 -1
- package/dist/v1/federation/FederationVerifyMatrixIdProps.js +0 -17
- package/dist/v1/federation/FederationVerifyMatrixIdProps.js.map +0 -1
- package/dist/v1/federation/rooms.d.ts +0 -44
- package/dist/v1/federation/rooms.d.ts.map +0 -1
- package/dist/v1/federation/rooms.js +0 -2
- package/dist/v1/federation/rooms.js.map +0 -1
- package/dist/v1/videoConference/VideoConfCancelProps.d.ts +0 -5
- package/dist/v1/videoConference/VideoConfCancelProps.d.ts.map +0 -1
package/dist/v1/omnichannel.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ILivechatAgentStatus } from '@rocket.chat/core-typings';
|
|
2
2
|
import { ajv, ajvQuery } from './Ajv';
|
|
3
|
+
import { paginationQueryProperties } from './pagination';
|
|
3
4
|
const LivechatVisitorsInfoSchema = {
|
|
4
5
|
type: 'object',
|
|
5
6
|
properties: {
|
|
@@ -68,17 +69,9 @@ const LivechatDepartmentAutocompleteSchema = {
|
|
|
68
69
|
export const isLivechatDepartmentAutocompleteProps = ajv.compile(LivechatDepartmentAutocompleteSchema);
|
|
69
70
|
const LivechatDepartmentDepartmentIdAgentsGETSchema = {
|
|
70
71
|
type: 'object',
|
|
71
|
-
properties: {
|
|
72
|
-
count: {
|
|
73
|
-
type: 'number',
|
|
74
|
-
},
|
|
75
|
-
offset: {
|
|
76
|
-
type: 'number',
|
|
77
|
-
},
|
|
78
|
-
sort: {
|
|
72
|
+
properties: Object.assign(Object.assign({}, paginationQueryProperties), { sort: {
|
|
79
73
|
type: 'string',
|
|
80
|
-
},
|
|
81
|
-
},
|
|
74
|
+
} }),
|
|
82
75
|
required: [],
|
|
83
76
|
additionalProperties: false,
|
|
84
77
|
};
|
|
@@ -302,27 +295,12 @@ const LiveChatRoomSaveInfoSchema = {
|
|
|
302
295
|
export const isLiveChatRoomSaveInfoProps = ajv.compile(LiveChatRoomSaveInfoSchema);
|
|
303
296
|
const LivechatMonitorsListSchema = {
|
|
304
297
|
type: 'object',
|
|
305
|
-
properties: {
|
|
306
|
-
text: {
|
|
298
|
+
properties: Object.assign(Object.assign({ text: {
|
|
307
299
|
type: 'string',
|
|
308
|
-
},
|
|
309
|
-
count: {
|
|
310
|
-
type: 'number',
|
|
311
|
-
nullable: true,
|
|
312
|
-
},
|
|
313
|
-
offset: {
|
|
314
|
-
type: 'number',
|
|
315
|
-
nullable: true,
|
|
316
|
-
},
|
|
317
|
-
sort: {
|
|
318
|
-
type: 'string',
|
|
319
|
-
nullable: true,
|
|
320
|
-
},
|
|
321
|
-
query: {
|
|
300
|
+
} }, paginationQueryProperties), { sort: {
|
|
322
301
|
type: 'string',
|
|
323
302
|
nullable: true,
|
|
324
|
-
},
|
|
325
|
-
},
|
|
303
|
+
} }),
|
|
326
304
|
required: ['text'],
|
|
327
305
|
additionalProperties: false,
|
|
328
306
|
};
|
|
@@ -454,81 +432,45 @@ const POSTLivechatTagsDeleteSuccessResponseSchema = {
|
|
|
454
432
|
export const POSTLivechatTagsDeleteSuccessResponse = ajv.compile(POSTLivechatTagsDeleteSuccessResponseSchema);
|
|
455
433
|
const LivechatTagsListSchema = {
|
|
456
434
|
type: 'object',
|
|
457
|
-
properties: {
|
|
458
|
-
text: {
|
|
435
|
+
properties: Object.assign(Object.assign({ text: {
|
|
459
436
|
type: 'string',
|
|
460
|
-
},
|
|
461
|
-
department: {
|
|
437
|
+
}, department: {
|
|
462
438
|
type: 'string',
|
|
463
439
|
nullable: true,
|
|
464
|
-
},
|
|
465
|
-
viewAll: {
|
|
440
|
+
}, viewAll: {
|
|
466
441
|
type: 'string',
|
|
467
442
|
nullable: true,
|
|
468
443
|
enum: ['true', 'false'],
|
|
469
|
-
},
|
|
470
|
-
count: {
|
|
471
|
-
type: 'number',
|
|
472
|
-
nullable: true,
|
|
473
|
-
},
|
|
474
|
-
offset: {
|
|
475
|
-
type: 'number',
|
|
476
|
-
nullable: true,
|
|
477
|
-
},
|
|
478
|
-
sort: {
|
|
479
|
-
type: 'string',
|
|
480
|
-
nullable: true,
|
|
481
|
-
},
|
|
482
|
-
query: {
|
|
444
|
+
} }, paginationQueryProperties), { sort: {
|
|
483
445
|
type: 'string',
|
|
484
446
|
nullable: true,
|
|
485
|
-
},
|
|
486
|
-
},
|
|
447
|
+
} }),
|
|
487
448
|
required: ['text'],
|
|
488
449
|
additionalProperties: false,
|
|
489
450
|
};
|
|
490
451
|
export const isLivechatTagsListProps = ajvQuery.compile(LivechatTagsListSchema);
|
|
491
452
|
const LivechatDepartmentSchema = {
|
|
492
453
|
type: 'object',
|
|
493
|
-
properties: {
|
|
494
|
-
text: {
|
|
454
|
+
properties: Object.assign(Object.assign({ text: {
|
|
495
455
|
type: 'string',
|
|
496
456
|
nullable: true,
|
|
497
|
-
},
|
|
498
|
-
onlyMyDepartments: {
|
|
457
|
+
}, onlyMyDepartments: {
|
|
499
458
|
type: 'string',
|
|
500
459
|
enum: ['true', 'false'],
|
|
501
460
|
nullable: true,
|
|
502
|
-
},
|
|
503
|
-
enabled: {
|
|
461
|
+
}, enabled: {
|
|
504
462
|
type: 'string',
|
|
505
463
|
nullable: true,
|
|
506
|
-
},
|
|
507
|
-
excludeDepartmentId: {
|
|
464
|
+
}, excludeDepartmentId: {
|
|
508
465
|
type: 'string',
|
|
509
466
|
nullable: true,
|
|
510
|
-
},
|
|
511
|
-
showArchived: {
|
|
467
|
+
}, showArchived: {
|
|
512
468
|
type: 'string',
|
|
513
469
|
nullable: true,
|
|
514
|
-
},
|
|
515
|
-
count: {
|
|
516
|
-
type: 'number',
|
|
517
|
-
nullable: true,
|
|
518
|
-
},
|
|
519
|
-
offset: {
|
|
520
|
-
type: 'number',
|
|
521
|
-
nullable: true,
|
|
522
|
-
},
|
|
523
|
-
sort: {
|
|
470
|
+
} }, paginationQueryProperties), { sort: {
|
|
524
471
|
type: 'string',
|
|
525
472
|
nullable: true,
|
|
526
|
-
},
|
|
527
|
-
query: {
|
|
528
|
-
type: 'string',
|
|
529
|
-
nullable: true,
|
|
530
|
-
},
|
|
531
|
-
},
|
|
473
|
+
} }),
|
|
532
474
|
additionalProperties: false,
|
|
533
475
|
};
|
|
534
476
|
export const isGETLivechatDepartmentProps = ajvQuery.compile(LivechatDepartmentSchema);
|
|
@@ -637,257 +579,133 @@ const POSTLivechatDepartmentSchema = {
|
|
|
637
579
|
export const isPOSTLivechatDepartmentProps = ajv.compile(POSTLivechatDepartmentSchema);
|
|
638
580
|
const LivechatDepartmentsAvailableByUnitIdSchema = {
|
|
639
581
|
type: 'object',
|
|
640
|
-
properties: {
|
|
641
|
-
text: {
|
|
582
|
+
properties: Object.assign(Object.assign({ text: {
|
|
642
583
|
type: 'string',
|
|
643
|
-
},
|
|
644
|
-
onlyMyDepartments: {
|
|
584
|
+
}, onlyMyDepartments: {
|
|
645
585
|
type: 'string',
|
|
646
586
|
enum: ['true', 'false'],
|
|
647
587
|
nullable: true,
|
|
648
|
-
},
|
|
649
|
-
count: {
|
|
650
|
-
type: 'number',
|
|
651
|
-
nullable: true,
|
|
652
|
-
},
|
|
653
|
-
offset: {
|
|
654
|
-
type: 'number',
|
|
655
|
-
nullable: true,
|
|
656
|
-
},
|
|
657
|
-
sort: {
|
|
658
|
-
type: 'string',
|
|
659
|
-
nullable: true,
|
|
660
|
-
},
|
|
661
|
-
query: {
|
|
588
|
+
} }, paginationQueryProperties), { sort: {
|
|
662
589
|
type: 'string',
|
|
663
590
|
nullable: true,
|
|
664
|
-
},
|
|
665
|
-
},
|
|
591
|
+
} }),
|
|
666
592
|
required: ['text'],
|
|
667
593
|
additionalProperties: false,
|
|
668
594
|
};
|
|
669
595
|
export const isLivechatDepartmentsAvailableByUnitIdProps = ajvQuery.compile(LivechatDepartmentsAvailableByUnitIdSchema);
|
|
670
596
|
const LivechatDepartmentsByUnitSchema = {
|
|
671
597
|
type: 'object',
|
|
672
|
-
properties: {
|
|
673
|
-
text: {
|
|
674
|
-
type: 'string',
|
|
675
|
-
},
|
|
676
|
-
count: {
|
|
677
|
-
type: 'number',
|
|
678
|
-
nullable: true,
|
|
679
|
-
},
|
|
680
|
-
offset: {
|
|
681
|
-
type: 'number',
|
|
682
|
-
nullable: true,
|
|
683
|
-
},
|
|
684
|
-
sort: {
|
|
598
|
+
properties: Object.assign(Object.assign({ text: {
|
|
685
599
|
type: 'string',
|
|
686
|
-
|
|
687
|
-
},
|
|
688
|
-
query: {
|
|
600
|
+
} }, paginationQueryProperties), { sort: {
|
|
689
601
|
type: 'string',
|
|
690
602
|
nullable: true,
|
|
691
|
-
},
|
|
692
|
-
},
|
|
603
|
+
} }),
|
|
693
604
|
required: ['text'],
|
|
694
605
|
additionalProperties: false,
|
|
695
606
|
};
|
|
696
607
|
export const isLivechatDepartmentsByUnitProps = ajvQuery.compile(LivechatDepartmentsByUnitSchema);
|
|
697
608
|
const LivechatDepartmentsByUnitIdSchema = {
|
|
698
609
|
type: 'object',
|
|
699
|
-
properties: {
|
|
700
|
-
count: {
|
|
701
|
-
type: 'number',
|
|
702
|
-
nullable: true,
|
|
703
|
-
},
|
|
704
|
-
offset: {
|
|
705
|
-
type: 'number',
|
|
706
|
-
nullable: true,
|
|
707
|
-
},
|
|
708
|
-
sort: {
|
|
709
|
-
type: 'string',
|
|
710
|
-
nullable: true,
|
|
711
|
-
},
|
|
712
|
-
query: {
|
|
610
|
+
properties: Object.assign(Object.assign({}, paginationQueryProperties), { sort: {
|
|
713
611
|
type: 'string',
|
|
714
612
|
nullable: true,
|
|
715
|
-
},
|
|
716
|
-
},
|
|
613
|
+
} }),
|
|
717
614
|
required: ['text'],
|
|
718
615
|
additionalProperties: false,
|
|
719
616
|
};
|
|
720
617
|
export const isLivechatDepartmentsByUnitIdProps = ajvQuery.compile(LivechatDepartmentsByUnitIdSchema);
|
|
721
618
|
const LivechatUsersManagerGETSchema = {
|
|
722
619
|
type: 'object',
|
|
723
|
-
properties: {
|
|
724
|
-
text: {
|
|
620
|
+
properties: Object.assign(Object.assign({ text: {
|
|
725
621
|
type: 'string',
|
|
726
622
|
nullable: true,
|
|
727
|
-
},
|
|
728
|
-
onlyAvailable: {
|
|
623
|
+
}, onlyAvailable: {
|
|
729
624
|
type: 'boolean',
|
|
730
625
|
nullable: true,
|
|
731
|
-
},
|
|
732
|
-
excludeId: {
|
|
626
|
+
}, excludeId: {
|
|
733
627
|
type: 'string',
|
|
734
628
|
nullable: true,
|
|
735
|
-
},
|
|
736
|
-
showIdleAgents: {
|
|
629
|
+
}, showIdleAgents: {
|
|
737
630
|
type: 'boolean',
|
|
738
631
|
nullable: true,
|
|
739
|
-
},
|
|
740
|
-
count: {
|
|
741
|
-
type: 'number',
|
|
742
|
-
nullable: true,
|
|
743
|
-
},
|
|
744
|
-
offset: {
|
|
745
|
-
type: 'number',
|
|
746
|
-
nullable: true,
|
|
747
|
-
},
|
|
748
|
-
sort: {
|
|
632
|
+
} }, paginationQueryProperties), { sort: {
|
|
749
633
|
type: 'string',
|
|
750
634
|
nullable: true,
|
|
751
|
-
},
|
|
752
|
-
query: {
|
|
753
|
-
type: 'string',
|
|
754
|
-
nullable: true,
|
|
755
|
-
},
|
|
756
|
-
fields: {
|
|
757
|
-
type: 'string',
|
|
758
|
-
nullable: true,
|
|
759
|
-
},
|
|
760
|
-
},
|
|
635
|
+
} }),
|
|
761
636
|
required: [],
|
|
762
637
|
additionalProperties: false,
|
|
763
638
|
};
|
|
764
639
|
export const isLivechatUsersManagerGETProps = ajvQuery.compile(LivechatUsersManagerGETSchema);
|
|
765
640
|
const LivechatUsersManagerPOSTSchema = {
|
|
766
641
|
type: 'object',
|
|
767
|
-
properties: {
|
|
768
|
-
username: {
|
|
642
|
+
properties: Object.assign(Object.assign({ username: {
|
|
769
643
|
type: 'string',
|
|
770
|
-
},
|
|
771
|
-
count: {
|
|
772
|
-
type: 'number',
|
|
773
|
-
nullable: true,
|
|
774
|
-
},
|
|
775
|
-
offset: {
|
|
776
|
-
type: 'number',
|
|
777
|
-
nullable: true,
|
|
778
|
-
},
|
|
779
|
-
sort: {
|
|
780
|
-
type: 'string',
|
|
781
|
-
nullable: true,
|
|
782
|
-
},
|
|
783
|
-
query: {
|
|
644
|
+
} }, paginationQueryProperties), { sort: {
|
|
784
645
|
type: 'string',
|
|
785
646
|
nullable: true,
|
|
786
|
-
},
|
|
787
|
-
},
|
|
647
|
+
} }),
|
|
788
648
|
required: ['username'],
|
|
789
649
|
additionalProperties: false,
|
|
790
650
|
};
|
|
791
651
|
export const isLivechatUsersManagerPOSTProps = ajv.compile(LivechatUsersManagerPOSTSchema);
|
|
792
652
|
const LivechatQueuePropsSchema = {
|
|
793
653
|
type: 'object',
|
|
794
|
-
properties: {
|
|
795
|
-
agentId: {
|
|
654
|
+
properties: Object.assign(Object.assign({ agentId: {
|
|
796
655
|
type: 'string',
|
|
797
656
|
nullable: true,
|
|
798
|
-
},
|
|
799
|
-
includeOfflineAgents: {
|
|
657
|
+
}, includeOfflineAgents: {
|
|
800
658
|
type: 'string',
|
|
801
659
|
nullable: true,
|
|
802
|
-
},
|
|
803
|
-
departmentId: {
|
|
660
|
+
}, departmentId: {
|
|
804
661
|
type: 'string',
|
|
805
662
|
nullable: true,
|
|
806
|
-
},
|
|
807
|
-
count: {
|
|
808
|
-
type: 'number',
|
|
809
|
-
},
|
|
810
|
-
offset: {
|
|
811
|
-
type: 'number',
|
|
812
|
-
},
|
|
813
|
-
sort: {
|
|
663
|
+
} }, paginationQueryProperties), { sort: {
|
|
814
664
|
type: 'string',
|
|
815
|
-
},
|
|
816
|
-
},
|
|
665
|
+
} }),
|
|
817
666
|
required: ['count', 'offset', 'sort'],
|
|
818
667
|
additionalProperties: false,
|
|
819
668
|
};
|
|
820
669
|
export const isLivechatQueueProps = ajvQuery.compile(LivechatQueuePropsSchema);
|
|
821
670
|
const CannedResponsesPropsSchema = {
|
|
822
671
|
type: 'object',
|
|
823
|
-
properties: {
|
|
824
|
-
scope: {
|
|
672
|
+
properties: Object.assign(Object.assign({ scope: {
|
|
825
673
|
type: 'string',
|
|
826
674
|
nullable: true,
|
|
827
|
-
},
|
|
828
|
-
departmentId: {
|
|
675
|
+
}, departmentId: {
|
|
829
676
|
type: 'string',
|
|
830
677
|
nullable: true,
|
|
831
|
-
},
|
|
832
|
-
shortcut: {
|
|
678
|
+
}, shortcut: {
|
|
833
679
|
type: 'string',
|
|
834
680
|
nullable: true,
|
|
835
|
-
},
|
|
836
|
-
tags: {
|
|
681
|
+
}, tags: {
|
|
837
682
|
type: 'array',
|
|
838
683
|
items: {
|
|
839
684
|
type: 'string',
|
|
840
685
|
},
|
|
841
686
|
nullable: true,
|
|
842
|
-
},
|
|
843
|
-
createdBy: {
|
|
687
|
+
}, createdBy: {
|
|
844
688
|
type: 'string',
|
|
845
689
|
nullable: true,
|
|
846
|
-
},
|
|
847
|
-
text: {
|
|
690
|
+
}, text: {
|
|
848
691
|
type: 'string',
|
|
849
692
|
nullable: true,
|
|
850
|
-
},
|
|
851
|
-
count: {
|
|
852
|
-
type: 'number',
|
|
853
|
-
nullable: true,
|
|
854
|
-
},
|
|
855
|
-
offset: {
|
|
856
|
-
type: 'number',
|
|
857
|
-
nullable: true,
|
|
858
|
-
},
|
|
859
|
-
sort: {
|
|
693
|
+
} }, paginationQueryProperties), { sort: {
|
|
860
694
|
type: 'string',
|
|
861
695
|
nullable: true,
|
|
862
|
-
},
|
|
863
|
-
},
|
|
696
|
+
} }),
|
|
864
697
|
additionalProperties: false,
|
|
865
698
|
};
|
|
866
699
|
export const isCannedResponsesProps = ajvQuery.compile(CannedResponsesPropsSchema);
|
|
867
700
|
const LivechatCustomFieldsSchema = {
|
|
868
701
|
type: 'object',
|
|
869
|
-
properties: {
|
|
870
|
-
text: {
|
|
871
|
-
type: 'string',
|
|
872
|
-
nullable: true,
|
|
873
|
-
},
|
|
874
|
-
count: {
|
|
875
|
-
type: 'number',
|
|
876
|
-
nullable: true,
|
|
877
|
-
},
|
|
878
|
-
offset: {
|
|
879
|
-
type: 'number',
|
|
880
|
-
nullable: true,
|
|
881
|
-
},
|
|
882
|
-
sort: {
|
|
702
|
+
properties: Object.assign(Object.assign({ text: {
|
|
883
703
|
type: 'string',
|
|
884
704
|
nullable: true,
|
|
885
|
-
},
|
|
886
|
-
query: {
|
|
705
|
+
} }, paginationQueryProperties), { sort: {
|
|
887
706
|
type: 'string',
|
|
888
707
|
nullable: true,
|
|
889
|
-
},
|
|
890
|
-
},
|
|
708
|
+
} }),
|
|
891
709
|
additionalProperties: false,
|
|
892
710
|
};
|
|
893
711
|
export const isLivechatCustomFieldsProps = ajvQuery.compile(LivechatCustomFieldsSchema);
|
|
@@ -941,84 +759,39 @@ const LivechatRoomsSchema = {
|
|
|
941
759
|
export const isLivechatRoomsProps = ajv.compile(LivechatRoomsSchema);
|
|
942
760
|
const LivechatRidMessagesSchema = {
|
|
943
761
|
type: 'object',
|
|
944
|
-
properties: {
|
|
945
|
-
count: {
|
|
946
|
-
type: 'number',
|
|
947
|
-
nullable: true,
|
|
948
|
-
},
|
|
949
|
-
offset: {
|
|
950
|
-
type: 'number',
|
|
951
|
-
nullable: true,
|
|
952
|
-
},
|
|
953
|
-
sort: {
|
|
762
|
+
properties: Object.assign(Object.assign({}, paginationQueryProperties), { sort: {
|
|
954
763
|
type: 'string',
|
|
955
764
|
nullable: true,
|
|
956
|
-
},
|
|
957
|
-
searchTerm: {
|
|
765
|
+
}, searchTerm: {
|
|
958
766
|
type: 'string',
|
|
959
767
|
nullable: true,
|
|
960
|
-
},
|
|
961
|
-
},
|
|
768
|
+
} }),
|
|
962
769
|
required: [],
|
|
963
770
|
additionalProperties: false,
|
|
964
771
|
};
|
|
965
772
|
export const isLivechatRidMessagesProps = ajvQuery.compile(LivechatRidMessagesSchema);
|
|
966
773
|
const LivechatUsersAgentSchema = {
|
|
967
774
|
type: 'object',
|
|
968
|
-
properties: {
|
|
969
|
-
text: {
|
|
775
|
+
properties: Object.assign(Object.assign({ text: {
|
|
970
776
|
type: 'string',
|
|
971
777
|
nullable: true,
|
|
972
|
-
},
|
|
973
|
-
count: {
|
|
974
|
-
type: 'number',
|
|
975
|
-
nullable: true,
|
|
976
|
-
},
|
|
977
|
-
offset: {
|
|
978
|
-
type: 'number',
|
|
979
|
-
nullable: true,
|
|
980
|
-
},
|
|
981
|
-
sort: {
|
|
778
|
+
} }, paginationQueryProperties), { sort: {
|
|
982
779
|
type: 'string',
|
|
983
780
|
nullable: true,
|
|
984
|
-
},
|
|
985
|
-
query: {
|
|
986
|
-
type: 'string',
|
|
987
|
-
nullable: true,
|
|
988
|
-
},
|
|
989
|
-
},
|
|
781
|
+
} }),
|
|
990
782
|
required: [],
|
|
991
783
|
additionalProperties: false,
|
|
992
784
|
};
|
|
993
785
|
export const isLivechatUsersAgentProps = ajvQuery.compile(LivechatUsersAgentSchema);
|
|
994
786
|
const LivechatPrioritiesPropsSchema = {
|
|
995
787
|
type: 'object',
|
|
996
|
-
properties: {
|
|
997
|
-
text: {
|
|
788
|
+
properties: Object.assign(Object.assign({ text: {
|
|
998
789
|
type: 'string',
|
|
999
790
|
nullable: true,
|
|
1000
|
-
},
|
|
1001
|
-
count: {
|
|
1002
|
-
type: 'number',
|
|
1003
|
-
nullable: true,
|
|
1004
|
-
},
|
|
1005
|
-
offset: {
|
|
1006
|
-
type: 'number',
|
|
1007
|
-
nullable: true,
|
|
1008
|
-
},
|
|
1009
|
-
sort: {
|
|
791
|
+
} }, paginationQueryProperties), { sort: {
|
|
1010
792
|
type: 'string',
|
|
1011
793
|
nullable: true,
|
|
1012
|
-
},
|
|
1013
|
-
query: {
|
|
1014
|
-
type: 'string',
|
|
1015
|
-
nullable: true,
|
|
1016
|
-
},
|
|
1017
|
-
fields: {
|
|
1018
|
-
type: 'string',
|
|
1019
|
-
nullable: true,
|
|
1020
|
-
},
|
|
1021
|
-
},
|
|
794
|
+
} }),
|
|
1022
795
|
required: [],
|
|
1023
796
|
additionalProperties: false,
|
|
1024
797
|
};
|
|
@@ -1243,23 +1016,13 @@ const GETOmnichannelContactsSchema = {
|
|
|
1243
1016
|
export const isGETOmnichannelContactsProps = ajvQuery.compile(GETOmnichannelContactsSchema);
|
|
1244
1017
|
const GETOmnichannelContactsSearchSchema = {
|
|
1245
1018
|
type: 'object',
|
|
1246
|
-
properties: {
|
|
1247
|
-
count: {
|
|
1248
|
-
type: 'number',
|
|
1249
|
-
},
|
|
1250
|
-
offset: {
|
|
1251
|
-
type: 'number',
|
|
1252
|
-
},
|
|
1253
|
-
sort: {
|
|
1019
|
+
properties: Object.assign(Object.assign({}, paginationQueryProperties), { sort: {
|
|
1254
1020
|
type: 'string',
|
|
1255
|
-
},
|
|
1256
|
-
searchText: {
|
|
1021
|
+
}, searchText: {
|
|
1257
1022
|
type: 'string',
|
|
1258
|
-
},
|
|
1259
|
-
unknown: {
|
|
1023
|
+
}, unknown: {
|
|
1260
1024
|
type: 'boolean',
|
|
1261
|
-
},
|
|
1262
|
-
},
|
|
1025
|
+
} }),
|
|
1263
1026
|
required: [],
|
|
1264
1027
|
additionalProperties: false,
|
|
1265
1028
|
};
|
|
@@ -1308,23 +1071,13 @@ const GETOmnichannelContactsCheckExistenceSchema = {
|
|
|
1308
1071
|
export const isGETOmnichannelContactsCheckExistenceProps = ajvQuery.compile(GETOmnichannelContactsCheckExistenceSchema);
|
|
1309
1072
|
const GETOmnichannelContactHistorySchema = {
|
|
1310
1073
|
type: 'object',
|
|
1311
|
-
properties: {
|
|
1312
|
-
contactId: {
|
|
1074
|
+
properties: Object.assign(Object.assign({ contactId: {
|
|
1313
1075
|
type: 'string',
|
|
1314
|
-
},
|
|
1315
|
-
source: {
|
|
1076
|
+
}, source: {
|
|
1316
1077
|
type: 'string',
|
|
1317
|
-
},
|
|
1318
|
-
count: {
|
|
1319
|
-
type: 'number',
|
|
1320
|
-
},
|
|
1321
|
-
offset: {
|
|
1322
|
-
type: 'number',
|
|
1323
|
-
},
|
|
1324
|
-
sort: {
|
|
1078
|
+
} }, paginationQueryProperties), { sort: {
|
|
1325
1079
|
type: 'string',
|
|
1326
|
-
},
|
|
1327
|
-
},
|
|
1080
|
+
} }),
|
|
1328
1081
|
required: ['contactId'],
|
|
1329
1082
|
additionalProperties: false,
|
|
1330
1083
|
};
|
|
@@ -1353,23 +1106,13 @@ const GETOmnichannelContactSchema = {
|
|
|
1353
1106
|
export const isGETOmnichannelContactProps = ajvQuery.compile(GETOmnichannelContactSchema);
|
|
1354
1107
|
const LivechatAnalyticsAgentsAverageServiceTimeSchema = {
|
|
1355
1108
|
type: 'object',
|
|
1356
|
-
properties: {
|
|
1357
|
-
start: {
|
|
1109
|
+
properties: Object.assign(Object.assign({ start: {
|
|
1358
1110
|
type: 'string',
|
|
1359
|
-
},
|
|
1360
|
-
end: {
|
|
1111
|
+
}, end: {
|
|
1361
1112
|
type: 'string',
|
|
1362
|
-
},
|
|
1363
|
-
count: {
|
|
1364
|
-
type: 'number',
|
|
1365
|
-
},
|
|
1366
|
-
offset: {
|
|
1367
|
-
type: 'number',
|
|
1368
|
-
},
|
|
1369
|
-
sort: {
|
|
1113
|
+
} }, paginationQueryProperties), { sort: {
|
|
1370
1114
|
type: 'string',
|
|
1371
|
-
},
|
|
1372
|
-
},
|
|
1115
|
+
} }),
|
|
1373
1116
|
required: ['start', 'end'],
|
|
1374
1117
|
additionalProperties: false,
|
|
1375
1118
|
};
|
|
@@ -1449,270 +1192,160 @@ const POSTLivechatAgentSaveInfoSuccessResponseSchema = {
|
|
|
1449
1192
|
export const POSTLivechatAgentSaveInfoSuccessResponse = ajv.compile(POSTLivechatAgentSaveInfoSuccessResponseSchema);
|
|
1450
1193
|
const LivechatAnalyticsAgentsTotalServiceTimeSchema = {
|
|
1451
1194
|
type: 'object',
|
|
1452
|
-
properties: {
|
|
1453
|
-
start: {
|
|
1195
|
+
properties: Object.assign(Object.assign({ start: {
|
|
1454
1196
|
type: 'string',
|
|
1455
|
-
},
|
|
1456
|
-
end: {
|
|
1197
|
+
}, end: {
|
|
1457
1198
|
type: 'string',
|
|
1458
|
-
},
|
|
1459
|
-
count: {
|
|
1460
|
-
type: 'number',
|
|
1461
|
-
},
|
|
1462
|
-
offset: {
|
|
1463
|
-
type: 'number',
|
|
1464
|
-
},
|
|
1465
|
-
sort: {
|
|
1199
|
+
} }, paginationQueryProperties), { sort: {
|
|
1466
1200
|
type: 'string',
|
|
1467
|
-
},
|
|
1468
|
-
},
|
|
1201
|
+
} }),
|
|
1469
1202
|
required: ['start', 'end'],
|
|
1470
1203
|
additionalProperties: false,
|
|
1471
1204
|
};
|
|
1472
1205
|
export const isLivechatAnalyticsAgentsTotalServiceTimeProps = ajvQuery.compile(LivechatAnalyticsAgentsTotalServiceTimeSchema);
|
|
1473
1206
|
const LivechatAnalyticsAgentsAvailableForServiceHistorySchema = {
|
|
1474
1207
|
type: 'object',
|
|
1475
|
-
properties: {
|
|
1476
|
-
start: {
|
|
1208
|
+
properties: Object.assign(Object.assign({ start: {
|
|
1477
1209
|
type: 'string',
|
|
1478
|
-
},
|
|
1479
|
-
end: {
|
|
1210
|
+
}, end: {
|
|
1480
1211
|
type: 'string',
|
|
1481
|
-
},
|
|
1482
|
-
fullReport: {
|
|
1212
|
+
}, fullReport: {
|
|
1483
1213
|
type: 'string',
|
|
1484
1214
|
nullable: true,
|
|
1485
|
-
},
|
|
1486
|
-
count: {
|
|
1487
|
-
type: 'number',
|
|
1488
|
-
},
|
|
1489
|
-
offset: {
|
|
1490
|
-
type: 'number',
|
|
1491
|
-
},
|
|
1492
|
-
sort: {
|
|
1215
|
+
} }, paginationQueryProperties), { sort: {
|
|
1493
1216
|
type: 'string',
|
|
1494
|
-
},
|
|
1495
|
-
},
|
|
1217
|
+
} }),
|
|
1496
1218
|
required: ['start', 'end'],
|
|
1497
1219
|
additionalProperties: false,
|
|
1498
1220
|
};
|
|
1499
1221
|
export const isLivechatAnalyticsAgentsAvailableForServiceHistoryProps = ajvQuery.compile(LivechatAnalyticsAgentsAvailableForServiceHistorySchema);
|
|
1500
1222
|
const LivechatAnalyticsDepartmentsAmountOfChatsSchema = {
|
|
1501
1223
|
type: 'object',
|
|
1502
|
-
properties: {
|
|
1503
|
-
start: {
|
|
1224
|
+
properties: Object.assign(Object.assign({ start: {
|
|
1504
1225
|
type: 'string',
|
|
1505
|
-
},
|
|
1506
|
-
end: {
|
|
1226
|
+
}, end: {
|
|
1507
1227
|
type: 'string',
|
|
1508
|
-
},
|
|
1509
|
-
answered: {
|
|
1228
|
+
}, answered: {
|
|
1510
1229
|
type: 'string',
|
|
1511
1230
|
nullable: true,
|
|
1512
|
-
},
|
|
1513
|
-
departmentId: {
|
|
1231
|
+
}, departmentId: {
|
|
1514
1232
|
type: 'string',
|
|
1515
1233
|
nullable: true,
|
|
1516
|
-
},
|
|
1517
|
-
count: {
|
|
1518
|
-
type: 'number',
|
|
1519
|
-
},
|
|
1520
|
-
offset: {
|
|
1521
|
-
type: 'number',
|
|
1522
|
-
},
|
|
1523
|
-
sort: {
|
|
1234
|
+
} }, paginationQueryProperties), { sort: {
|
|
1524
1235
|
type: 'string',
|
|
1525
|
-
},
|
|
1526
|
-
},
|
|
1236
|
+
} }),
|
|
1527
1237
|
required: ['start', 'end'],
|
|
1528
1238
|
additionalProperties: false,
|
|
1529
1239
|
};
|
|
1530
1240
|
export const isLivechatAnalyticsDepartmentsAmountOfChatsProps = ajvQuery.compile(LivechatAnalyticsDepartmentsAmountOfChatsSchema);
|
|
1531
1241
|
const LivechatAnalyticsDepartmentsAverageServiceTimeSchema = {
|
|
1532
1242
|
type: 'object',
|
|
1533
|
-
properties: {
|
|
1534
|
-
start: {
|
|
1243
|
+
properties: Object.assign(Object.assign({ start: {
|
|
1535
1244
|
type: 'string',
|
|
1536
|
-
},
|
|
1537
|
-
end: {
|
|
1245
|
+
}, end: {
|
|
1538
1246
|
type: 'string',
|
|
1539
|
-
},
|
|
1540
|
-
departmentId: {
|
|
1247
|
+
}, departmentId: {
|
|
1541
1248
|
type: 'string',
|
|
1542
1249
|
nullable: true,
|
|
1543
|
-
},
|
|
1544
|
-
count: {
|
|
1545
|
-
type: 'number',
|
|
1546
|
-
},
|
|
1547
|
-
offset: {
|
|
1548
|
-
type: 'number',
|
|
1549
|
-
},
|
|
1550
|
-
sort: {
|
|
1250
|
+
} }, paginationQueryProperties), { sort: {
|
|
1551
1251
|
type: 'string',
|
|
1552
|
-
},
|
|
1553
|
-
},
|
|
1252
|
+
} }),
|
|
1554
1253
|
required: ['start', 'end'],
|
|
1555
1254
|
additionalProperties: false,
|
|
1556
1255
|
};
|
|
1557
1256
|
export const isLivechatAnalyticsDepartmentsAverageServiceTimeProps = ajvQuery.compile(LivechatAnalyticsDepartmentsAverageServiceTimeSchema);
|
|
1558
1257
|
const LivechatAnalyticsDepartmentsAverageChatDurationTimeSchema = {
|
|
1559
1258
|
type: 'object',
|
|
1560
|
-
properties: {
|
|
1561
|
-
start: {
|
|
1259
|
+
properties: Object.assign(Object.assign({ start: {
|
|
1562
1260
|
type: 'string',
|
|
1563
|
-
},
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
},
|
|
1567
|
-
departmentId: {
|
|
1261
|
+
}, end: {
|
|
1262
|
+
type: 'string',
|
|
1263
|
+
}, departmentId: {
|
|
1568
1264
|
type: 'string',
|
|
1569
1265
|
nullable: true,
|
|
1570
|
-
},
|
|
1571
|
-
count: {
|
|
1572
|
-
type: 'number',
|
|
1573
|
-
},
|
|
1574
|
-
offset: {
|
|
1575
|
-
type: 'number',
|
|
1576
|
-
},
|
|
1577
|
-
sort: {
|
|
1266
|
+
} }, paginationQueryProperties), { sort: {
|
|
1578
1267
|
type: 'string',
|
|
1579
|
-
},
|
|
1580
|
-
},
|
|
1268
|
+
} }),
|
|
1581
1269
|
required: ['start', 'end'],
|
|
1582
1270
|
additionalProperties: false,
|
|
1583
1271
|
};
|
|
1584
1272
|
export const isLivechatAnalyticsDepartmentsAverageChatDurationTimeProps = ajvQuery.compile(LivechatAnalyticsDepartmentsAverageChatDurationTimeSchema);
|
|
1585
1273
|
const LivechatAnalyticsDepartmentsTotalServiceTimeSchema = {
|
|
1586
1274
|
type: 'object',
|
|
1587
|
-
properties: {
|
|
1588
|
-
start: {
|
|
1275
|
+
properties: Object.assign(Object.assign({ start: {
|
|
1589
1276
|
type: 'string',
|
|
1590
|
-
},
|
|
1591
|
-
end: {
|
|
1277
|
+
}, end: {
|
|
1592
1278
|
type: 'string',
|
|
1593
|
-
},
|
|
1594
|
-
departmentId: {
|
|
1279
|
+
}, departmentId: {
|
|
1595
1280
|
type: 'string',
|
|
1596
1281
|
nullable: true,
|
|
1597
|
-
},
|
|
1598
|
-
count: {
|
|
1599
|
-
type: 'number',
|
|
1600
|
-
},
|
|
1601
|
-
offset: {
|
|
1602
|
-
type: 'number',
|
|
1603
|
-
},
|
|
1604
|
-
sort: {
|
|
1282
|
+
} }, paginationQueryProperties), { sort: {
|
|
1605
1283
|
type: 'string',
|
|
1606
|
-
},
|
|
1607
|
-
},
|
|
1284
|
+
} }),
|
|
1608
1285
|
required: ['start', 'end'],
|
|
1609
1286
|
additionalProperties: false,
|
|
1610
1287
|
};
|
|
1611
1288
|
export const isLivechatAnalyticsDepartmentsTotalServiceTimeProps = ajvQuery.compile(LivechatAnalyticsDepartmentsTotalServiceTimeSchema);
|
|
1612
1289
|
const LivechatAnalyticsDepartmentsAverageWaitingTimeSchema = {
|
|
1613
1290
|
type: 'object',
|
|
1614
|
-
properties: {
|
|
1615
|
-
start: {
|
|
1291
|
+
properties: Object.assign(Object.assign({ start: {
|
|
1616
1292
|
type: 'string',
|
|
1617
|
-
},
|
|
1618
|
-
end: {
|
|
1293
|
+
}, end: {
|
|
1619
1294
|
type: 'string',
|
|
1620
|
-
},
|
|
1621
|
-
departmentId: {
|
|
1295
|
+
}, departmentId: {
|
|
1622
1296
|
type: 'string',
|
|
1623
1297
|
nullable: true,
|
|
1624
|
-
},
|
|
1625
|
-
count: {
|
|
1626
|
-
type: 'number',
|
|
1627
|
-
},
|
|
1628
|
-
offset: {
|
|
1629
|
-
type: 'number',
|
|
1630
|
-
},
|
|
1631
|
-
sort: {
|
|
1298
|
+
} }, paginationQueryProperties), { sort: {
|
|
1632
1299
|
type: 'string',
|
|
1633
|
-
},
|
|
1634
|
-
},
|
|
1300
|
+
} }),
|
|
1635
1301
|
required: ['start', 'end'],
|
|
1636
1302
|
additionalProperties: false,
|
|
1637
1303
|
};
|
|
1638
1304
|
export const isLivechatAnalyticsDepartmentsAverageWaitingTimeProps = ajvQuery.compile(LivechatAnalyticsDepartmentsAverageWaitingTimeSchema);
|
|
1639
1305
|
const LivechatAnalyticsDepartmentsTotalTransferredChatsSchema = {
|
|
1640
1306
|
type: 'object',
|
|
1641
|
-
properties: {
|
|
1642
|
-
start: {
|
|
1307
|
+
properties: Object.assign(Object.assign({ start: {
|
|
1643
1308
|
type: 'string',
|
|
1644
|
-
},
|
|
1645
|
-
end: {
|
|
1309
|
+
}, end: {
|
|
1646
1310
|
type: 'string',
|
|
1647
|
-
},
|
|
1648
|
-
departmentId: {
|
|
1311
|
+
}, departmentId: {
|
|
1649
1312
|
type: 'string',
|
|
1650
1313
|
nullable: true,
|
|
1651
|
-
},
|
|
1652
|
-
count: {
|
|
1653
|
-
type: 'number',
|
|
1654
|
-
},
|
|
1655
|
-
offset: {
|
|
1656
|
-
type: 'number',
|
|
1657
|
-
},
|
|
1658
|
-
sort: {
|
|
1314
|
+
} }, paginationQueryProperties), { sort: {
|
|
1659
1315
|
type: 'string',
|
|
1660
|
-
},
|
|
1661
|
-
},
|
|
1316
|
+
} }),
|
|
1662
1317
|
required: ['start', 'end'],
|
|
1663
1318
|
additionalProperties: false,
|
|
1664
1319
|
};
|
|
1665
1320
|
export const isLivechatAnalyticsDepartmentsTotalTransferredChatsProps = ajvQuery.compile(LivechatAnalyticsDepartmentsTotalTransferredChatsSchema);
|
|
1666
1321
|
const LivechatAnalyticsDepartmentsTotalAbandonedChatsSchema = {
|
|
1667
1322
|
type: 'object',
|
|
1668
|
-
properties: {
|
|
1669
|
-
start: {
|
|
1323
|
+
properties: Object.assign(Object.assign({ start: {
|
|
1670
1324
|
type: 'string',
|
|
1671
|
-
},
|
|
1672
|
-
end: {
|
|
1325
|
+
}, end: {
|
|
1673
1326
|
type: 'string',
|
|
1674
|
-
},
|
|
1675
|
-
departmentId: {
|
|
1327
|
+
}, departmentId: {
|
|
1676
1328
|
type: 'string',
|
|
1677
1329
|
nullable: true,
|
|
1678
|
-
},
|
|
1679
|
-
count: {
|
|
1680
|
-
type: 'number',
|
|
1681
|
-
},
|
|
1682
|
-
offset: {
|
|
1683
|
-
type: 'number',
|
|
1684
|
-
},
|
|
1685
|
-
sort: {
|
|
1330
|
+
} }, paginationQueryProperties), { sort: {
|
|
1686
1331
|
type: 'string',
|
|
1687
|
-
},
|
|
1688
|
-
},
|
|
1332
|
+
} }),
|
|
1689
1333
|
required: ['start', 'end'],
|
|
1690
1334
|
additionalProperties: false,
|
|
1691
1335
|
};
|
|
1692
1336
|
export const isLivechatAnalyticsDepartmentsTotalAbandonedChatsProps = ajvQuery.compile(LivechatAnalyticsDepartmentsTotalAbandonedChatsSchema);
|
|
1693
1337
|
const LivechatAnalyticsDepartmentsPercentageAbandonedChatsSchema = {
|
|
1694
1338
|
type: 'object',
|
|
1695
|
-
properties: {
|
|
1696
|
-
start: {
|
|
1339
|
+
properties: Object.assign(Object.assign({ start: {
|
|
1697
1340
|
type: 'string',
|
|
1698
|
-
},
|
|
1699
|
-
end: {
|
|
1341
|
+
}, end: {
|
|
1700
1342
|
type: 'string',
|
|
1701
|
-
},
|
|
1702
|
-
departmentId: {
|
|
1343
|
+
}, departmentId: {
|
|
1703
1344
|
type: 'string',
|
|
1704
1345
|
nullable: true,
|
|
1705
|
-
},
|
|
1706
|
-
count: {
|
|
1707
|
-
type: 'number',
|
|
1708
|
-
},
|
|
1709
|
-
offset: {
|
|
1710
|
-
type: 'number',
|
|
1711
|
-
},
|
|
1712
|
-
sort: {
|
|
1346
|
+
} }, paginationQueryProperties), { sort: {
|
|
1713
1347
|
type: 'string',
|
|
1714
|
-
},
|
|
1715
|
-
},
|
|
1348
|
+
} }),
|
|
1716
1349
|
required: ['start', 'end'],
|
|
1717
1350
|
additionalProperties: false,
|
|
1718
1351
|
};
|
|
@@ -2010,65 +1643,38 @@ const PUTLivechatMessageIdParamsSchema = {
|
|
|
2010
1643
|
export const isPUTLivechatMessageIdParams = ajv.compile(PUTLivechatMessageIdParamsSchema);
|
|
2011
1644
|
const DELETELivechatMessageIdParamsSchema = {
|
|
2012
1645
|
type: 'object',
|
|
2013
|
-
properties: {
|
|
2014
|
-
token: {
|
|
1646
|
+
properties: Object.assign(Object.assign({ token: {
|
|
2015
1647
|
type: 'string',
|
|
2016
|
-
},
|
|
2017
|
-
rid: {
|
|
1648
|
+
}, rid: {
|
|
2018
1649
|
type: 'string',
|
|
2019
|
-
},
|
|
2020
|
-
count: {
|
|
2021
|
-
type: 'number',
|
|
2022
|
-
nullable: true,
|
|
2023
|
-
},
|
|
2024
|
-
offset: {
|
|
2025
|
-
type: 'number',
|
|
2026
|
-
nullable: true,
|
|
2027
|
-
},
|
|
2028
|
-
sort: {
|
|
1650
|
+
} }, paginationQueryProperties), { sort: {
|
|
2029
1651
|
type: 'string',
|
|
2030
1652
|
nullable: true,
|
|
2031
|
-
},
|
|
2032
|
-
},
|
|
1653
|
+
} }),
|
|
2033
1654
|
required: ['token', 'rid'],
|
|
2034
1655
|
additionalProperties: false,
|
|
2035
1656
|
};
|
|
2036
1657
|
export const isDELETELivechatMessageIdParams = ajv.compile(DELETELivechatMessageIdParamsSchema);
|
|
2037
1658
|
const GETLivechatMessagesHistoryRidParamsSchema = {
|
|
2038
1659
|
type: 'object',
|
|
2039
|
-
properties: {
|
|
2040
|
-
searchText: {
|
|
1660
|
+
properties: Object.assign(Object.assign({ searchText: {
|
|
2041
1661
|
type: 'string',
|
|
2042
1662
|
nullable: true,
|
|
2043
|
-
},
|
|
2044
|
-
token: {
|
|
1663
|
+
}, token: {
|
|
2045
1664
|
type: 'string',
|
|
2046
|
-
},
|
|
2047
|
-
count: {
|
|
2048
|
-
type: 'number',
|
|
2049
|
-
nullable: true,
|
|
2050
|
-
},
|
|
2051
|
-
offset: {
|
|
2052
|
-
type: 'number',
|
|
2053
|
-
nullable: true,
|
|
2054
|
-
},
|
|
2055
|
-
sort: {
|
|
1665
|
+
} }, paginationQueryProperties), { sort: {
|
|
2056
1666
|
type: 'string',
|
|
2057
1667
|
nullable: true,
|
|
2058
|
-
},
|
|
2059
|
-
ls: {
|
|
1668
|
+
}, ls: {
|
|
2060
1669
|
type: 'string',
|
|
2061
1670
|
nullable: true,
|
|
2062
|
-
},
|
|
2063
|
-
end: {
|
|
1671
|
+
}, end: {
|
|
2064
1672
|
type: 'string',
|
|
2065
1673
|
nullable: true,
|
|
2066
|
-
},
|
|
2067
|
-
limit: {
|
|
1674
|
+
}, limit: {
|
|
2068
1675
|
type: 'number',
|
|
2069
1676
|
nullable: true,
|
|
2070
|
-
},
|
|
2071
|
-
},
|
|
1677
|
+
} }),
|
|
2072
1678
|
required: ['token'],
|
|
2073
1679
|
additionalProperties: false,
|
|
2074
1680
|
};
|
|
@@ -2270,17 +1876,6 @@ const POSTCannedResponsesPropsSchema = {
|
|
|
2270
1876
|
additionalProperties: false,
|
|
2271
1877
|
};
|
|
2272
1878
|
export const isPOSTCannedResponsesProps = ajv.compile(POSTCannedResponsesPropsSchema);
|
|
2273
|
-
const DELETECannedResponsesPropsSchema = {
|
|
2274
|
-
type: 'object',
|
|
2275
|
-
properties: {
|
|
2276
|
-
_id: {
|
|
2277
|
-
type: 'string',
|
|
2278
|
-
},
|
|
2279
|
-
},
|
|
2280
|
-
required: ['_id'],
|
|
2281
|
-
additionalProperties: false,
|
|
2282
|
-
};
|
|
2283
|
-
export const isDELETECannedResponsesProps = ajv.compile(DELETECannedResponsesPropsSchema);
|
|
2284
1879
|
const POSTLivechatUsersTypePropsSchema = {
|
|
2285
1880
|
type: 'object',
|
|
2286
1881
|
properties: {
|
|
@@ -2294,74 +1889,40 @@ const POSTLivechatUsersTypePropsSchema = {
|
|
|
2294
1889
|
export const isPOSTLivechatUsersTypeProps = ajv.compile(POSTLivechatUsersTypePropsSchema);
|
|
2295
1890
|
const GETLivechatVisitorsPagesVisitedRoomIdParamsSchema = {
|
|
2296
1891
|
type: 'object',
|
|
2297
|
-
properties: {
|
|
2298
|
-
count: {
|
|
2299
|
-
type: 'number',
|
|
2300
|
-
nullable: true,
|
|
2301
|
-
},
|
|
2302
|
-
offset: {
|
|
2303
|
-
type: 'number',
|
|
2304
|
-
nullable: true,
|
|
2305
|
-
},
|
|
2306
|
-
sort: {
|
|
1892
|
+
properties: Object.assign(Object.assign({}, paginationQueryProperties), { sort: {
|
|
2307
1893
|
type: 'string',
|
|
2308
1894
|
nullable: true,
|
|
2309
|
-
},
|
|
2310
|
-
},
|
|
1895
|
+
} }),
|
|
2311
1896
|
additionalProperties: false,
|
|
2312
1897
|
};
|
|
2313
1898
|
export const isGETLivechatVisitorsPagesVisitedRoomIdParams = ajvQuery.compile(GETLivechatVisitorsPagesVisitedRoomIdParamsSchema);
|
|
2314
1899
|
const GETLivechatVisitorsChatHistoryRoomRoomIdVisitorVisitorIdParamsSchema = {
|
|
2315
1900
|
type: 'object',
|
|
2316
|
-
properties: {
|
|
2317
|
-
count: {
|
|
2318
|
-
type: 'number',
|
|
2319
|
-
nullable: true,
|
|
2320
|
-
},
|
|
2321
|
-
offset: {
|
|
2322
|
-
type: 'number',
|
|
2323
|
-
nullable: true,
|
|
2324
|
-
},
|
|
2325
|
-
sort: {
|
|
1901
|
+
properties: Object.assign(Object.assign({}, paginationQueryProperties), { sort: {
|
|
2326
1902
|
type: 'string',
|
|
2327
1903
|
nullable: true,
|
|
2328
|
-
},
|
|
2329
|
-
},
|
|
1904
|
+
} }),
|
|
2330
1905
|
additionalProperties: false,
|
|
2331
1906
|
};
|
|
2332
1907
|
export const isGETLivechatVisitorsChatHistoryRoomRoomIdVisitorVisitorIdParams = ajvQuery.compile(GETLivechatVisitorsChatHistoryRoomRoomIdVisitorVisitorIdParamsSchema);
|
|
2333
1908
|
const GETLivechatVisitorsSearchChatsRoomRoomIdVisitorVisitorIdParamsSchema = {
|
|
2334
1909
|
type: 'object',
|
|
2335
|
-
properties: {
|
|
2336
|
-
count: {
|
|
2337
|
-
type: 'number',
|
|
2338
|
-
nullable: true,
|
|
2339
|
-
},
|
|
2340
|
-
offset: {
|
|
2341
|
-
type: 'number',
|
|
2342
|
-
nullable: true,
|
|
2343
|
-
},
|
|
2344
|
-
sort: {
|
|
1910
|
+
properties: Object.assign(Object.assign({}, paginationQueryProperties), { sort: {
|
|
2345
1911
|
type: 'string',
|
|
2346
1912
|
nullable: true,
|
|
2347
|
-
},
|
|
2348
|
-
searchText: {
|
|
1913
|
+
}, searchText: {
|
|
2349
1914
|
type: 'string',
|
|
2350
1915
|
nullable: true,
|
|
2351
|
-
},
|
|
2352
|
-
closedChatsOnly: {
|
|
1916
|
+
}, closedChatsOnly: {
|
|
2353
1917
|
type: 'string',
|
|
2354
1918
|
nullable: true,
|
|
2355
|
-
},
|
|
2356
|
-
servedChatsOnly: {
|
|
1919
|
+
}, servedChatsOnly: {
|
|
2357
1920
|
type: 'string',
|
|
2358
1921
|
nullable: true,
|
|
2359
|
-
},
|
|
2360
|
-
source: {
|
|
1922
|
+
}, source: {
|
|
2361
1923
|
type: 'string',
|
|
2362
1924
|
nullable: true,
|
|
2363
|
-
},
|
|
2364
|
-
},
|
|
1925
|
+
} }),
|
|
2365
1926
|
additionalProperties: false,
|
|
2366
1927
|
};
|
|
2367
1928
|
export const isGETLivechatVisitorsSearchChatsRoomRoomIdVisitorVisitorIdParams = ajvQuery.compile(GETLivechatVisitorsSearchChatsRoomRoomIdVisitorVisitorIdParamsSchema);
|
|
@@ -2378,23 +1939,12 @@ const GETLivechatVisitorsAutocompleteParamsSchema = {
|
|
|
2378
1939
|
export const isGETLivechatVisitorsAutocompleteParams = ajvQuery.compile(GETLivechatVisitorsAutocompleteParamsSchema);
|
|
2379
1940
|
const GETLivechatVisitorsSearchSchema = {
|
|
2380
1941
|
type: 'object',
|
|
2381
|
-
properties: {
|
|
2382
|
-
count: {
|
|
2383
|
-
type: 'number',
|
|
2384
|
-
nullable: true,
|
|
2385
|
-
},
|
|
2386
|
-
offset: {
|
|
2387
|
-
type: 'number',
|
|
2388
|
-
nullable: true,
|
|
2389
|
-
},
|
|
2390
|
-
sort: {
|
|
1942
|
+
properties: Object.assign(Object.assign({}, paginationQueryProperties), { sort: {
|
|
2391
1943
|
type: 'string',
|
|
2392
1944
|
nullable: true,
|
|
2393
|
-
},
|
|
2394
|
-
term: {
|
|
1945
|
+
}, term: {
|
|
2395
1946
|
type: 'string',
|
|
2396
|
-
},
|
|
2397
|
-
},
|
|
1947
|
+
} }),
|
|
2398
1948
|
required: ['term'],
|
|
2399
1949
|
additionalProperties: false,
|
|
2400
1950
|
};
|
|
@@ -2427,20 +1977,10 @@ const GETBusinessHourParamsSchema = {
|
|
|
2427
1977
|
export const isGETBusinessHourParams = ajvQuery.compile(GETBusinessHourParamsSchema);
|
|
2428
1978
|
const GETLivechatTriggersParamsSchema = {
|
|
2429
1979
|
type: 'object',
|
|
2430
|
-
properties: {
|
|
2431
|
-
count: {
|
|
2432
|
-
type: 'number',
|
|
2433
|
-
nullable: true,
|
|
2434
|
-
},
|
|
2435
|
-
offset: {
|
|
2436
|
-
type: 'number',
|
|
2437
|
-
nullable: true,
|
|
2438
|
-
},
|
|
2439
|
-
sort: {
|
|
1980
|
+
properties: Object.assign(Object.assign({}, paginationQueryProperties), { sort: {
|
|
2440
1981
|
type: 'string',
|
|
2441
1982
|
nullable: true,
|
|
2442
|
-
},
|
|
2443
|
-
},
|
|
1983
|
+
} }),
|
|
2444
1984
|
additionalProperties: false,
|
|
2445
1985
|
};
|
|
2446
1986
|
const POSTLivechatBusinessHoursSaveParamsSchema = {
|
|
@@ -2564,85 +2104,56 @@ export const POSTLivechatBusinessHoursRemoveSuccessResponse = ajv.compile(POSTLi
|
|
|
2564
2104
|
export const isGETLivechatTriggersParams = ajvQuery.compile(GETLivechatTriggersParamsSchema);
|
|
2565
2105
|
const GETLivechatRoomsParamsSchema = {
|
|
2566
2106
|
type: 'object',
|
|
2567
|
-
properties: {
|
|
2568
|
-
count: {
|
|
2569
|
-
type: 'number',
|
|
2570
|
-
nullable: true,
|
|
2571
|
-
},
|
|
2572
|
-
offset: {
|
|
2573
|
-
type: 'number',
|
|
2574
|
-
nullable: true,
|
|
2575
|
-
},
|
|
2576
|
-
sort: {
|
|
2577
|
-
type: 'string',
|
|
2578
|
-
nullable: true,
|
|
2579
|
-
},
|
|
2580
|
-
query: {
|
|
2581
|
-
type: 'string',
|
|
2582
|
-
nullable: true,
|
|
2583
|
-
},
|
|
2584
|
-
fields: {
|
|
2107
|
+
properties: Object.assign(Object.assign({}, paginationQueryProperties), { sort: {
|
|
2585
2108
|
type: 'string',
|
|
2586
2109
|
nullable: true,
|
|
2587
|
-
},
|
|
2588
|
-
createdAt: {
|
|
2110
|
+
}, createdAt: {
|
|
2589
2111
|
type: 'string',
|
|
2590
2112
|
nullable: true,
|
|
2591
|
-
},
|
|
2592
|
-
customFields: {
|
|
2113
|
+
}, customFields: {
|
|
2593
2114
|
type: 'string',
|
|
2594
2115
|
nullable: true,
|
|
2595
|
-
},
|
|
2596
|
-
closedAt: {
|
|
2116
|
+
}, closedAt: {
|
|
2597
2117
|
type: 'string',
|
|
2598
2118
|
nullable: true,
|
|
2599
|
-
},
|
|
2600
|
-
agents: {
|
|
2119
|
+
}, agents: {
|
|
2601
2120
|
type: 'array',
|
|
2602
2121
|
items: {
|
|
2603
2122
|
type: 'string',
|
|
2604
2123
|
},
|
|
2605
2124
|
nullable: true,
|
|
2606
|
-
},
|
|
2607
|
-
roomName: {
|
|
2125
|
+
}, roomName: {
|
|
2608
2126
|
type: 'string',
|
|
2609
2127
|
nullable: true,
|
|
2610
|
-
},
|
|
2611
|
-
departmentId: {
|
|
2128
|
+
}, departmentId: {
|
|
2612
2129
|
anyOf: [{ type: 'string' }, { type: 'array', items: { type: 'string' } }],
|
|
2613
|
-
},
|
|
2614
|
-
open: {
|
|
2130
|
+
}, open: {
|
|
2615
2131
|
anyOf: [
|
|
2616
2132
|
{ type: 'string', nullable: true },
|
|
2617
2133
|
{ type: 'boolean', nullable: true },
|
|
2618
2134
|
],
|
|
2619
|
-
},
|
|
2620
|
-
onhold: {
|
|
2135
|
+
}, onhold: {
|
|
2621
2136
|
anyOf: [
|
|
2622
2137
|
{ type: 'string', nullable: true },
|
|
2623
2138
|
{ type: 'boolean', nullable: true },
|
|
2624
2139
|
],
|
|
2625
|
-
},
|
|
2626
|
-
queued: {
|
|
2140
|
+
}, queued: {
|
|
2627
2141
|
anyOf: [
|
|
2628
2142
|
{ type: 'string', nullable: true },
|
|
2629
2143
|
{ type: 'boolean', nullable: true },
|
|
2630
2144
|
],
|
|
2631
|
-
},
|
|
2632
|
-
tags: {
|
|
2145
|
+
}, tags: {
|
|
2633
2146
|
type: 'array',
|
|
2634
2147
|
items: {
|
|
2635
2148
|
type: 'string',
|
|
2636
2149
|
},
|
|
2637
2150
|
nullable: true,
|
|
2638
|
-
},
|
|
2639
|
-
units: {
|
|
2151
|
+
}, units: {
|
|
2640
2152
|
type: 'array',
|
|
2641
2153
|
items: {
|
|
2642
2154
|
type: 'string',
|
|
2643
2155
|
},
|
|
2644
|
-
},
|
|
2645
|
-
},
|
|
2156
|
+
} }),
|
|
2646
2157
|
additionalProperties: false,
|
|
2647
2158
|
};
|
|
2648
2159
|
export const isGETLivechatRoomsParams = ajvQuery.compile(GETLivechatRoomsParamsSchema);
|
|
@@ -2659,55 +2170,31 @@ const POSTLivechatRoomPriorityParamsSchema = {
|
|
|
2659
2170
|
export const isPOSTLivechatRoomPriorityParams = ajv.compile(POSTLivechatRoomPriorityParamsSchema);
|
|
2660
2171
|
const GETLivechatQueueParamsSchema = {
|
|
2661
2172
|
type: 'object',
|
|
2662
|
-
properties: {
|
|
2663
|
-
count: {
|
|
2664
|
-
type: 'number',
|
|
2665
|
-
nullable: true,
|
|
2666
|
-
},
|
|
2667
|
-
offset: {
|
|
2668
|
-
type: 'number',
|
|
2669
|
-
nullable: true,
|
|
2670
|
-
},
|
|
2671
|
-
sort: {
|
|
2173
|
+
properties: Object.assign(Object.assign({}, paginationQueryProperties), { sort: {
|
|
2672
2174
|
type: 'string',
|
|
2673
2175
|
nullable: true,
|
|
2674
|
-
},
|
|
2675
|
-
agentId: {
|
|
2176
|
+
}, agentId: {
|
|
2676
2177
|
type: 'string',
|
|
2677
2178
|
nullable: true,
|
|
2678
|
-
},
|
|
2679
|
-
departmentId: {
|
|
2179
|
+
}, departmentId: {
|
|
2680
2180
|
type: 'string',
|
|
2681
2181
|
nullable: true,
|
|
2682
|
-
},
|
|
2683
|
-
includeOfflineAgents: {
|
|
2182
|
+
}, includeOfflineAgents: {
|
|
2684
2183
|
type: 'string',
|
|
2685
2184
|
nullable: true,
|
|
2686
|
-
},
|
|
2687
|
-
},
|
|
2185
|
+
} }),
|
|
2688
2186
|
additionalProperties: false,
|
|
2689
2187
|
};
|
|
2690
2188
|
export const isGETLivechatQueueParams = ajvQuery.compile(GETLivechatQueueParamsSchema);
|
|
2691
2189
|
const GETLivechatPrioritiesParamsSchema = {
|
|
2692
2190
|
type: 'object',
|
|
2693
|
-
properties: {
|
|
2694
|
-
count: {
|
|
2695
|
-
type: 'number',
|
|
2696
|
-
nullable: true,
|
|
2697
|
-
},
|
|
2698
|
-
offset: {
|
|
2699
|
-
type: 'number',
|
|
2700
|
-
nullable: true,
|
|
2701
|
-
},
|
|
2702
|
-
sort: {
|
|
2191
|
+
properties: Object.assign(Object.assign({}, paginationQueryProperties), { sort: {
|
|
2703
2192
|
type: 'string',
|
|
2704
2193
|
nullable: true,
|
|
2705
|
-
},
|
|
2706
|
-
text: {
|
|
2194
|
+
}, text: {
|
|
2707
2195
|
type: 'string',
|
|
2708
2196
|
nullable: true,
|
|
2709
|
-
},
|
|
2710
|
-
},
|
|
2197
|
+
} }),
|
|
2711
2198
|
required: [],
|
|
2712
2199
|
additionalProperties: false,
|
|
2713
2200
|
};
|
|
@@ -2741,24 +2228,13 @@ const POSTLivechatPriorityParamsSchema = {
|
|
|
2741
2228
|
export const isPOSTLivechatPriorityParams = ajv.compile(POSTLivechatPriorityParamsSchema);
|
|
2742
2229
|
const GETLivechatInquiriesListParamsSchema = {
|
|
2743
2230
|
type: 'object',
|
|
2744
|
-
properties: {
|
|
2745
|
-
count: {
|
|
2746
|
-
type: 'number',
|
|
2747
|
-
nullable: true,
|
|
2748
|
-
},
|
|
2749
|
-
offset: {
|
|
2750
|
-
type: 'number',
|
|
2751
|
-
nullable: true,
|
|
2752
|
-
},
|
|
2753
|
-
sort: {
|
|
2231
|
+
properties: Object.assign(Object.assign({}, paginationQueryProperties), { sort: {
|
|
2754
2232
|
type: 'string',
|
|
2755
2233
|
nullable: true,
|
|
2756
|
-
},
|
|
2757
|
-
department: {
|
|
2234
|
+
}, department: {
|
|
2758
2235
|
type: 'string',
|
|
2759
2236
|
nullable: true,
|
|
2760
|
-
},
|
|
2761
|
-
},
|
|
2237
|
+
} }),
|
|
2762
2238
|
additionalProperties: false,
|
|
2763
2239
|
};
|
|
2764
2240
|
export const isGETLivechatInquiriesListParams = ajvQuery.compile(GETLivechatInquiriesListParamsSchema);
|
|
@@ -2804,24 +2280,13 @@ const POSTLivechatInquiriesTakeParamsSchema = {
|
|
|
2804
2280
|
export const isPOSTLivechatInquiriesTakeParams = ajv.compile(POSTLivechatInquiriesTakeParamsSchema);
|
|
2805
2281
|
const GETLivechatInquiriesQueuedForUserParamsSchema = {
|
|
2806
2282
|
type: 'object',
|
|
2807
|
-
properties: {
|
|
2808
|
-
count: {
|
|
2809
|
-
type: 'number',
|
|
2810
|
-
nullable: true,
|
|
2811
|
-
},
|
|
2812
|
-
offset: {
|
|
2813
|
-
type: 'number',
|
|
2814
|
-
nullable: true,
|
|
2815
|
-
},
|
|
2816
|
-
sort: {
|
|
2283
|
+
properties: Object.assign(Object.assign({}, paginationQueryProperties), { sort: {
|
|
2817
2284
|
type: 'string',
|
|
2818
2285
|
nullable: true,
|
|
2819
|
-
},
|
|
2820
|
-
department: {
|
|
2286
|
+
}, department: {
|
|
2821
2287
|
type: 'string',
|
|
2822
2288
|
nullable: true,
|
|
2823
|
-
},
|
|
2824
|
-
},
|
|
2289
|
+
} }),
|
|
2825
2290
|
additionalProperties: false,
|
|
2826
2291
|
};
|
|
2827
2292
|
export const isGETLivechatInquiriesQueuedForUserParams = ajvQuery.compile(GETLivechatInquiriesQueuedForUserParamsSchema);
|