Skip to content

Commit

Permalink
Added new property SegmentCount to SMSReceived Event (#31764)
Browse files Browse the repository at this point in the history
* Added new property SegmentCount to SMSReceived Event

* Adding bug fixes

* Space Bug fix

* Correcting Typo mistake

* Changing segmentCount to required parameter

* replaced the json files back to the original content

* Adding required parameter to AzureComm json file.

* removing timestamp as required parameter

* code fix

* reverting json

* trying to fix package.json

* fixing the json file

* fixes

---------

Co-authored-by: jolov <jolov@microsoft.com>
  • Loading branch information
grangasamy-msft and JoshLove-msft authored Jan 16, 2025
1 parent 57396f1 commit 0c18e13
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,9 @@ model AcsSmsReceivedEventData extends AcsSmsEventBaseProperties {
/** The time at which the SMS was received */
@madeRequired(ServiceApiVersions.v2024_01_01)
receivedTimestamp: utcDateTime;

/** Number of segments in the message */
segmentCount: int32;
}

//TODO: This might need some fixing
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"From": "15555555555",
"To": "15555555555",
"Message": "Great to connect with ACS events",
"ReceivedTimestamp": "2020-09-18T00:27:45.32Z"
"ReceivedTimestamp": "2020-09-18T00:27:45.32Z",
"SegmentCount": 1
},
"specversion": "1.0",
"operationId": "SMSReceivedEventName",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"From": "15555555555",
"To": "15555555555",
"Message": "Great to connect with ACS events",
"ReceivedTimestamp": "2020-09-18T00:27:45.32Z"
"ReceivedTimestamp": "2020-09-18T00:27:45.32Z",
"SegmentCount": 1
},
"specversion": "1.0",
"operationId": "SMSReceivedEventName",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1357,8 +1357,16 @@
"description": "The time at which the SMS was received",
"format": "date-time",
"type": "string"
},
"segmentCount": {
"description": "Number of segments in the message",
"format": "int32",
"type": "integer"
}
}
},
"required": [
"segmentCount"
]
},
"AcsRecordingFileStatusUpdatedEventData": {
"description": "Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RecordingFileStatusUpdated event.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"From": "15555555555",
"To": "15555555555",
"Message": "Great to connect with ACS events",
"ReceivedTimestamp": "2020-09-18T00:27:45.32Z"
"ReceivedTimestamp": "2020-09-18T00:27:45.32Z",
"SegmentCount": 1
},
"specversion": "1.0"
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"From": "15555555555",
"To": "15555555555",
"Message": "Great to connect with ACS events",
"ReceivedTimestamp": "2020-09-18T00:27:45.32Z"
"ReceivedTimestamp": "2020-09-18T00:27:45.32Z",
"SegmentCount": 1
},
"eventType": "Microsoft.Communication.SMSReceived",
"dataVersion": "1.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2429,8 +2429,16 @@
"type": "string",
"format": "date-time",
"description": "The time at which the SMS was received"
},
"segmentCount": {
"type": "integer",
"format": "int32",
"description": "Number of segments in the message"
}
},
"required": [
"segmentCount"
],
"allOf": [
{
"$ref": "#/definitions/AcsSmsEventBaseProperties"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2482,10 +2482,16 @@
"type": "string",
"format": "date-time",
"description": "The time at which the SMS was received"
},
"segmentCount": {
"type": "integer",
"format": "int32",
"description": "Number of segments in the message"
}
},
"required": [
"receivedTimestamp"
"receivedTimestamp",
"segmentCount"
],
"allOf": [
{
Expand Down

0 comments on commit 0c18e13

Please sign in to comment.