Skip to content

Commit db41952

Browse files
committed
Update shared
1 parent 245321a commit db41952

3 files changed

Lines changed: 329 additions & 49 deletions

File tree

public/swagger/swagger.json

Lines changed: 206 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -971,23 +971,7 @@
971971
"content": {
972972
"application/json": {
973973
"schema": {
974-
"type": "object",
975-
"required": [
976-
"invites",
977-
"nextPageToken"
978-
],
979-
"properties": {
980-
"invites": {
981-
"type": "array",
982-
"items": {
983-
"$ref": "#/components/schemas/InvitesGroup"
984-
}
985-
},
986-
"nextPageToken": {
987-
"type": "integer",
988-
"format": "uint32"
989-
}
990-
}
974+
"$ref": "#/components/schemas/UsersAndPagination"
991975
}
992976
}
993977
}
@@ -1255,6 +1239,22 @@
12551239
"format": "int32"
12561240
},
12571241
"required": true
1242+
},
1243+
{
1244+
"in": "query",
1245+
"name": "name",
1246+
"schema": {
1247+
"type": "string"
1248+
},
1249+
"required": false
1250+
},
1251+
{
1252+
"in": "query",
1253+
"name": "email",
1254+
"schema": {
1255+
"type": "string"
1256+
},
1257+
"required": false
12581258
}
12591259
],
12601260
"responses": {
@@ -1418,7 +1418,7 @@
14181418
"/api/reschedule/requests/me": {
14191419
"get": {
14201420
"operationId": "GetAPIRescheduleRequestsMe",
1421-
"summary": "Get all reschedule requests for current user.",
1421+
"summary": "Get all reschedule requests for the meetings where the current user is the owner.",
14221422
"responses": {
14231423
"200": {
14241424
"$ref": "#/components/responses/RescheduleRequests"
@@ -1596,6 +1596,128 @@
15961596
}
15971597
}
15981598
},
1599+
"/api/reschedule/request/{requestID}/complete": {
1600+
"post": {
1601+
"operationId": "PostAPIRescheduleRequestRequestIDComplete",
1602+
"summary": "Create a new calendar event after request response.",
1603+
"parameters": [
1604+
{
1605+
"in": "path",
1606+
"name": "requestID",
1607+
"schema": {
1608+
"type": "integer",
1609+
"format": "uint32"
1610+
},
1611+
"required": true,
1612+
"description": "Numeric ID of the reschedule request to get"
1613+
}
1614+
],
1615+
"requestBody": {
1616+
"required": true,
1617+
"content": {
1618+
"application/json": {
1619+
"schema": {
1620+
"$ref": "#/components/schemas/CalendarEvent"
1621+
}
1622+
}
1623+
}
1624+
},
1625+
"responses": {
1626+
"201": {
1627+
"description": "Event successfully created",
1628+
"content": {
1629+
"application/json": {
1630+
"schema": {
1631+
"$ref": "#/components/schemas/CalendarEvent"
1632+
}
1633+
}
1634+
}
1635+
},
1636+
"400": {
1637+
"description": "Bad request"
1638+
},
1639+
"401": {
1640+
"$ref": "#/components/responses/UnauthorizedError"
1641+
},
1642+
"500": {
1643+
"description": "Something went wrong internally",
1644+
"content": {
1645+
"application/json": {
1646+
"schema": {
1647+
"type": "string"
1648+
}
1649+
}
1650+
}
1651+
},
1652+
"502": {
1653+
"description": "Something went wrong with an external API",
1654+
"content": {
1655+
"application/json": {
1656+
"schema": {
1657+
"type": "string"
1658+
}
1659+
}
1660+
}
1661+
}
1662+
}
1663+
}
1664+
},
1665+
"/api/reschedule/request/{requestID}/close": {
1666+
"get": {
1667+
"operationId": "GetAPIRescheduleRequestRequestIDClose",
1668+
"summary": "Delete the request",
1669+
"parameters": [
1670+
{
1671+
"in": "path",
1672+
"name": "requestID",
1673+
"schema": {
1674+
"type": "integer",
1675+
"format": "uint32"
1676+
},
1677+
"required": true,
1678+
"description": "Numeric ID of the reschedule request to get"
1679+
}
1680+
],
1681+
"responses": {
1682+
"200": {
1683+
"description": "Request closes",
1684+
"content": {
1685+
"application/json": {
1686+
"schema": {
1687+
"type": "string"
1688+
}
1689+
}
1690+
}
1691+
},
1692+
"400": {
1693+
"description": "Bad request"
1694+
},
1695+
"401": {
1696+
"$ref": "#/components/responses/UnauthorizedError"
1697+
},
1698+
"500": {
1699+
"description": "Something went wrong internally",
1700+
"content": {
1701+
"application/json": {
1702+
"schema": {
1703+
"type": "string"
1704+
}
1705+
}
1706+
}
1707+
},
1708+
"502": {
1709+
"description": "Something went wrong with an external API",
1710+
"content": {
1711+
"application/json": {
1712+
"schema": {
1713+
"type": "string"
1714+
}
1715+
}
1716+
}
1717+
}
1718+
}
1719+
}
1720+
},
15991721
"/api/reschedule/request/replace": {
16001722
"post": {
16011723
"operationId": "PostAPIRescheduleRequestReplace",
@@ -2146,9 +2268,24 @@
21462268
"content": {
21472269
"application/json": {
21482270
"schema": {
2149-
"type": "array",
2150-
"items": {
2151-
"$ref": "#/components/schemas/RescheduleRequest"
2271+
"type": "object",
2272+
"required": [
2273+
"pending",
2274+
"responses"
2275+
],
2276+
"properties": {
2277+
"pending": {
2278+
"type": "array",
2279+
"items": {
2280+
"$ref": "#/components/schemas/RescheduleRequest"
2281+
}
2282+
},
2283+
"responses": {
2284+
"type": "array",
2285+
"items": {
2286+
"$ref": "#/components/schemas/RescheduleRequest"
2287+
}
2288+
}
21522289
}
21532290
}
21542291
}
@@ -2238,7 +2375,10 @@
22382375
"type": "object",
22392376
"required": [
22402377
"msftMeetingID",
2241-
"meetingId"
2378+
"meetingId",
2379+
"meetingStartTime",
2380+
"timeRangeStart",
2381+
"timeRangeEnd"
22422382
],
22432383
"properties": {
22442384
"msftMeetingID": {
@@ -2249,6 +2389,21 @@
22492389
"type": "integer",
22502390
"format": "uint32",
22512391
"description": "The meeting ID of the old meeting"
2392+
},
2393+
"meetingStartTime": {
2394+
"type": "string",
2395+
"format": "date-time",
2396+
"description": "The start of the meeting denoted in *ISO 8601* format In the format: yyyy-mm-ddThh:mm:ssZ Where lowercase letters are replaced by their numerical values\n"
2397+
},
2398+
"timeRangeStart": {
2399+
"type": "string",
2400+
"format": "date-time",
2401+
"description": "The start of the meeting denoted in *ISO 8601* format In the format: yyyy-mm-ddThh:mm:ssZ Where lowercase letters are replaced by their numerical values\n"
2402+
},
2403+
"timeRangeEnd": {
2404+
"type": "string",
2405+
"format": "date-time",
2406+
"description": "The start of the meeting denoted in *ISO 8601* format In the format: yyyy-mm-ddThh:mm:ssZ Where lowercase letters are replaced by their numerical values\n"
22522407
}
22532408
}
22542409
},
@@ -2259,7 +2414,8 @@
22592414
"meetingDuration",
22602415
"startTime",
22612416
"endTime",
2262-
"location"
2417+
"location",
2418+
"attendees"
22632419
],
22642420
"properties": {
22652421
"title": {
@@ -2284,6 +2440,14 @@
22842440
"location": {
22852441
"type": "string",
22862442
"description": "The location of the meeting"
2443+
},
2444+
"attendees": {
2445+
"type": "array",
2446+
"items": {
2447+
"type": "integer",
2448+
"format": "uint32",
2449+
"description": "The user ID of the person"
2450+
}
22872451
}
22882452
}
22892453
},
@@ -2415,15 +2579,6 @@
24152579
"msftMeetingID": {
24162580
"type": "string",
24172581
"description": "The microsoft meeting ID of the old meeting"
2418-
},
2419-
"meetingStartTime": {
2420-
"type": "string",
2421-
"format": "date-time",
2422-
"description": "The start of the meeting denoted in *ISO 8601* format"
2423-
},
2424-
"meetingOwner": {
2425-
"type": "integer",
2426-
"description": "Meeting owner ID"
24272582
}
24282583
}
24292584
}
@@ -3117,6 +3272,25 @@
31173272
"email",
31183273
"name"
31193274
]
3275+
},
3276+
"UsersAndPagination": {
3277+
"type": "object",
3278+
"required": [
3279+
"users",
3280+
"nextPageToken"
3281+
],
3282+
"properties": {
3283+
"users": {
3284+
"type": "array",
3285+
"items": {
3286+
"$ref": "#/components/schemas/User"
3287+
}
3288+
},
3289+
"nextPageToken": {
3290+
"type": "integer",
3291+
"format": "uint32"
3292+
}
3293+
}
31203294
}
31213295
}
31223296
}

shared

0 commit comments

Comments
 (0)