Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changeset/perfect-gorillas-remain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@rocket.chat/meteor": patch
"@rocket.chat/rest-typings": patch
---

Fixes Omnichannel Rest API validation schemas that were flagging `Pagination` properties as invalid
103 changes: 99 additions & 4 deletions packages/rest-typings/src/v1/omnichannel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -783,9 +783,6 @@ type LivechatDepartmentsByUnitIdProps = PaginatedRequest;
const LivechatDepartmentsByUnitIdSchema = {
type: 'object',
properties: {
text: {
type: 'string',
},
count: {
type: 'number',
nullable: true,
Expand Down Expand Up @@ -1622,6 +1619,15 @@ const LivechatAnalyticsAgentsAverageServiceTimeSchema = {
end: {
type: 'string',
},
count: {
type: 'number',
},
offset: {
type: 'number',
},
sort: {
type: 'string',
},
},
required: ['start', 'end'],
additionalProperties: false,
Expand Down Expand Up @@ -1692,6 +1698,15 @@ const LivechatAnalyticsAgentsTotalServiceTimeSchema = {
end: {
type: 'string',
},
count: {
type: 'number',
},
offset: {
type: 'number',
},
sort: {
type: 'string',
},
},
required: ['start', 'end'],
additionalProperties: false,
Expand Down Expand Up @@ -1720,6 +1735,15 @@ const LivechatAnalyticsAgentsAvailableForServiceHistorySchema = {
type: 'string',
nullable: true,
},
count: {
type: 'number',
},
offset: {
type: 'number',
},
sort: {
type: 'string',
},
},
required: ['start', 'end'],
additionalProperties: false,
Expand Down Expand Up @@ -1753,6 +1777,15 @@ const LivechatAnalyticsDepartmentsAmountOfChatsSchema = {
type: 'string',
nullable: true,
},
count: {
type: 'number',
},
offset: {
type: 'number',
},
sort: {
type: 'string',
},
},
required: ['start', 'end'],
additionalProperties: false,
Expand Down Expand Up @@ -1781,6 +1814,15 @@ const LivechatAnalyticsDepartmentsAverageServiceTimeSchema = {
type: 'string',
nullable: true,
},
count: {
type: 'number',
},
offset: {
type: 'number',
},
sort: {
type: 'string',
},
},
required: ['start', 'end'],
additionalProperties: false,
Expand Down Expand Up @@ -1809,6 +1851,15 @@ const LivechatAnalyticsDepartmentsAverageChatDurationTimeSchema = {
type: 'string',
nullable: true,
},
count: {
type: 'number',
},
offset: {
type: 'number',
},
sort: {
type: 'string',
},
},
required: ['start', 'end'],
additionalProperties: false,
Expand Down Expand Up @@ -1836,6 +1887,15 @@ const LivechatAnalyticsDepartmentsTotalServiceTimeSchema = {
type: 'string',
nullable: true,
},
count: {
type: 'number',
},
offset: {
type: 'number',
},
sort: {
type: 'string',
},
},
required: ['start', 'end'],
additionalProperties: false,
Expand Down Expand Up @@ -1864,6 +1924,15 @@ const LivechatAnalyticsDepartmentsAverageWaitingTimeSchema = {
type: 'string',
nullable: true,
},
count: {
type: 'number',
},
offset: {
type: 'number',
},
sort: {
type: 'string',
},
},
required: ['start', 'end'],
additionalProperties: false,
Expand Down Expand Up @@ -1892,6 +1961,15 @@ const LivechatAnalyticsDepartmentsTotalTransferredChatsSchema = {
type: 'string',
nullable: true,
},
count: {
type: 'number',
},
offset: {
type: 'number',
},
sort: {
type: 'string',
},
},
required: ['start', 'end'],
additionalProperties: false,
Expand Down Expand Up @@ -1920,6 +1998,15 @@ const LivechatAnalyticsDepartmentsTotalAbandonedChatsSchema = {
type: 'string',
nullable: true,
},
count: {
type: 'number',
},
offset: {
type: 'number',
},
sort: {
type: 'string',
},
},
required: ['start', 'end'],
additionalProperties: false,
Expand Down Expand Up @@ -1948,6 +2035,15 @@ const LivechatAnalyticsDepartmentsPercentageAbandonedChatsSchema = {
type: 'string',
nullable: true,
},
count: {
type: 'number',
},
offset: {
type: 'number',
},
sort: {
type: 'string',
},
},
required: ['start', 'end'],
additionalProperties: false,
Expand Down Expand Up @@ -2833,7 +2929,6 @@ const GETLivechatVisitorsSearchSchema = {
},
term: {
type: 'string',
nullable: true,
},
},
required: ['term'],
Expand Down