Skip to content

Commit

Permalink
update CloseInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
vhunkalo committed Jan 10, 2025
1 parent 1ff1455 commit e8837fe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 24 deletions.
8 changes: 2 additions & 6 deletions cases/case.proto
Original file line number Diff line number Diff line change
Expand Up @@ -196,11 +196,7 @@ message CloseInfo {
general.Lookup close_reason = 2; // Lookup for the close reason.
}

// Message representing close information for a case.
message CloseInfoInput {
string close_result = 1; // Result or reason for closing the case.
int64 close_reason = 2; // Lookup for the close reason.
}



message SourceTypeLookup {
Expand Down Expand Up @@ -238,6 +234,6 @@ message InputCase {
general.Lookup priority = 12; // create: not required, default first value from priority lookup
general.Lookup source = 13; // source of the case
general.Lookup service = 14; // on this field base many other readonly fields on return
CloseInfoInput close = 15; // create: not required; update: required only when case status goes to the final state
CloseInfo close = 15; // create: not required; update: required only when case status goes to the final state
RateInfo rate = 16; // only for API, not UI
}
21 changes: 3 additions & 18 deletions swagger/cases.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -3530,7 +3530,7 @@
"title": "on this field base many other readonly fields on return"
},
"close": {
"$ref": "#/definitions/casesCloseInfoInput",
"$ref": "#/definitions/casesCloseInfo",
"title": "create: not required; update: required only when case status goes to the final state"
},
"rate": {
Expand Down Expand Up @@ -3649,7 +3649,7 @@
"title": "on this field base many other readonly fields on return"
},
"close": {
"$ref": "#/definitions/casesCloseInfoInput",
"$ref": "#/definitions/casesCloseInfo",
"title": "create: not required; update: required only when case status goes to the final state"
},
"rate": {
Expand Down Expand Up @@ -5453,21 +5453,6 @@
},
"description": "Message representing close information for a case."
},
"casesCloseInfoInput": {
"type": "object",
"properties": {
"close_result": {
"type": "string",
"description": "Result or reason for closing the case."
},
"close_reason": {
"type": "string",
"format": "int64",
"description": "Lookup for the close reason."
}
},
"description": "Message representing close information for a case."
},
"casesCloseReason": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -6082,7 +6067,7 @@
"title": "on this field base many other readonly fields on return"
},
"close": {
"$ref": "#/definitions/casesCloseInfoInput",
"$ref": "#/definitions/casesCloseInfo",
"title": "create: not required; update: required only when case status goes to the final state"
},
"rate": {
Expand Down

0 comments on commit e8837fe

Please sign in to comment.