Skip to content

Commit 40bf123

Browse files
sriharip-docusignlindarecfut
authored andcommitted
Hotfix for FLOW 143: Update connect schema to 2.0 (JSON SIM) (microsoft#1676)
* New schema changs for connec 2.0 json sim * Update model to recognize Connect SIM 2.0 format * add custom fields to the webhook response model * Update webhook response transformation logic for connect 2.0 json sim format
1 parent cf57987 commit 40bf123

File tree

2 files changed

+144
-177
lines changed

2 files changed

+144
-177
lines changed

certified-connectors/DocuSignDemo/apiDefinition.swagger.json

Lines changed: 104 additions & 136 deletions
Original file line numberDiff line numberDiff line change
@@ -1444,149 +1444,121 @@
14441444
}
14451445
},
14461446
"WebhookEnvelopeResponse": {
1447-
"type": "object",
1448-
"properties": {
1449-
"customFields": {
1450-
"description": "Key-value pairs representing the custom fields for this envelope (where key is the field name, and value is the field value).",
1451-
"type": "object",
1452-
"additionalProperties": {
1453-
"type": "string"
1454-
},
1455-
"x-ms-visibility": "important",
1456-
"x-ms-summary": "Custom Fields"
1457-
},
1458-
"DocuSignEnvelopeInformation": {
1459-
"type": "object",
1460-
"properties": {
1461-
"EnvelopeStatus": {
1462-
"description": "EnvelopeStatus",
1463-
"type": "object",
1464-
"properties": {
1465-
"Created": {
1466-
"format": "date-time",
1467-
"description": "yyyy-MM-ddTHH:mm:ss.fffZ",
1468-
"type": "string",
1469-
"x-ms-summary": "Envelope Created Date-Time",
1470-
"x-ms-visibility": "advanced"
1471-
},
1472-
"Email": {
1473-
"type": "string",
1474-
"x-ms-summary": "Sender's Email Address",
1475-
"x-ms-visibility": "important"
1476-
},
1477-
"EnvelopeID": {
1478-
"type": "string",
1479-
"x-ms-summary": "Envelope ID",
1480-
"x-ms-visibility": "important"
1481-
},
1482-
"SenderIPAddress": {
1483-
"type": "string",
1484-
"x-ms-summary": "Sender's IP Address",
1485-
"x-ms-visibility": "advanced"
1486-
},
1487-
"Sent": {
1488-
"format": "date-time",
1489-
"description": "yyyy-MM-ddTHH:mm:ss.fffZ",
1490-
"type": "string",
1491-
"x-ms-summary": "Envelope Sent Date-Time",
1492-
"x-ms-visibility": "important"
1493-
},
1494-
"Status": {
1495-
"type": "string",
1496-
"x-ms-summary": "Envelope Status",
1497-
"x-ms-visibility": "important"
1498-
},
1499-
"Subject": {
1500-
"type": "string",
1501-
"x-ms-summary": "Subject",
1502-
"x-ms-visibility": "important"
1503-
},
1504-
"UserName": {
1505-
"type": "string",
1506-
"x-ms-summary": "Sender's Name",
1507-
"x-ms-visibility": "important"
1508-
},
1509-
"RecipientStatuses": {
1510-
"type": "object",
1511-
"properties": {
1512-
"RecipientStatus": {
1513-
"type": "array",
1514-
"items": {
1515-
"type": "object",
1516-
"properties": {
1517-
"tabs": {
1518-
"description": "Key-value pairs representing the tabs for this recipient (where key is the field name, and value is the field value).",
1519-
"type": "object",
1520-
"additionalProperties": {
1521-
"type": "string"
1447+
"type": "object",
1448+
"properties": {
1449+
"data": {
1450+
"type": "object",
1451+
"properties": {
1452+
"envelopeSummary": {
1453+
"description": "EnvelopeStatus",
1454+
"type": "object",
1455+
"properties": {
1456+
"customFields": {
1457+
"description": "Key-value pairs representing the custom fields for this envelope (where key is the field name, and value is the field value).",
1458+
"type": "object",
1459+
"additionalProperties": {
1460+
"type": "string"
1461+
},
1462+
"x-ms-visibility": "important",
1463+
"x-ms-summary": "Custom Fields"
1464+
},
1465+
"createdDateTime": {
1466+
"format": "date-time",
1467+
"description": "yyyy-MM-ddTHH:mm:ss.fffZ",
1468+
"type": "string",
1469+
"x-ms-summary": "Envelope Created Date-Time",
1470+
"x-ms-visibility": "advanced"
1471+
},
1472+
"envelopeId": {
1473+
"type": "string",
1474+
"x-ms-summary": "Envelope ID",
1475+
"x-ms-visibility": "important"
1476+
},
1477+
"sentDateTime": {
1478+
"format": "date-time",
1479+
"description": "yyyy-MM-ddTHH:mm:ss.fffZ",
1480+
"type": "string",
1481+
"x-ms-summary": "Envelope Sent Date-Time",
1482+
"x-ms-visibility": "important"
1483+
},
1484+
"status": {
1485+
"type": "string",
1486+
"x-ms-summary": "Envelope Status",
1487+
"x-ms-visibility": "important"
1488+
},
1489+
"emailSubject": {
1490+
"type": "string",
1491+
"x-ms-summary": "Subject",
1492+
"x-ms-visibility": "important"
1493+
},
1494+
"recipients": {
1495+
"type": "object",
1496+
"properties": {
1497+
"signers": {
1498+
"type": "array",
1499+
"items": {
1500+
"type": "object",
1501+
"properties": {
1502+
"tabs": {
1503+
"description": "Key-value pairs representing the tabs for this recipient (where key is the field name, and value is the field value).",
1504+
"type": "object",
1505+
"additionalProperties": {
1506+
"type": "string"
1507+
},
1508+
"x-ms-visibility": "important",
1509+
"x-ms-summary": "Tabs"
1510+
},
1511+
"email": {
1512+
"type": "string",
1513+
"x-ms-summary": "Recipient Email",
1514+
"x-ms-visibility": "important"
1515+
},
1516+
"recipientId": {
1517+
"type": "string",
1518+
"x-ms-summary": "Recipient Id",
1519+
"x-ms-visibility": "advanced"
1520+
},
1521+
"routingOrder": {
1522+
"type": "string",
1523+
"x-ms-summary": "Routing Order",
1524+
"x-ms-visibility": "important"
15221525
},
1523-
"x-ms-visibility": "important",
1524-
"x-ms-summary": "Tabs"
1525-
},
1526-
"DeclineReason": {
1527-
"$ref": "#/definitions/DeclineReasonWithoutType"
1528-
},
1529-
"Email": {
1530-
"type": "string",
1531-
"x-ms-summary": "Recipient Email",
1532-
"x-ms-visibility": "important"
1533-
},
1534-
"RecipientId": {
1535-
"type": "string",
1536-
"x-ms-summary": "Recipient Id",
1537-
"x-ms-visibility": "advanced"
1538-
},
1539-
"RoutingOrder": {
1540-
"type": "string",
1541-
"x-ms-summary": "Routing Order",
1542-
"x-ms-visibility": "important"
1543-
},
1544-
"Sent": {
1545-
"format": "date-time",
1546-
"description": "yyyy-MM-ddTHH:mm:ss.fffZ",
1547-
"type": "string",
1548-
"x-ms-summary": "Recipient Sent Date-Time",
1549-
"x-ms-visibility": "advanced"
1550-
},
1551-
"Status": {
1552-
"description": "The status of the recipient.",
1553-
"type": "string",
1554-
"x-ms-summary": "Recipient Status",
1555-
"x-ms-visibility": "advanced"
1556-
},
1557-
"Type": {
1558-
"description": "The type of recipient.",
1559-
"type": "string",
1560-
"x-ms-summary": "Recipeint Type",
1561-
"x-ms-visibility": "advanced"
1562-
},
1563-
"UserName": {
1564-
"description": "The name of the recipient.",
1565-
"type": "string",
1566-
"x-ms-summary": "Recipient Name",
1567-
"x-ms-visibility": "important"
1526+
"sentDateTime": {
1527+
"format": "date-time",
1528+
"description": "yyyy-MM-ddTHH:mm:ss.fffZ",
1529+
"type": "string",
1530+
"x-ms-summary": "Recipient Sent Date-Time",
1531+
"x-ms-visibility": "advanced"
1532+
},
1533+
"status": {
1534+
"description": "The status of the recipient.",
1535+
"type": "string",
1536+
"x-ms-summary": "Recipient Status",
1537+
"x-ms-visibility": "advanced"
1538+
},
1539+
"recipientType": {
1540+
"description": "The type of recipient.",
1541+
"type": "string",
1542+
"x-ms-summary": "Recipient Type",
1543+
"x-ms-visibility": "advanced"
1544+
},
1545+
"name": {
1546+
"description": "The name of the recipient.",
1547+
"type": "string",
1548+
"x-ms-summary": "Recipient Name",
1549+
"x-ms-visibility": "important"
1550+
}
15681551
}
15691552
}
15701553
}
15711554
}
15721555
}
15731556
}
15741557
}
1575-
},
1576-
"TimeZone": {
1577-
"type": "string",
1578-
"x-ms-summary": "Time Zone",
1579-
"x-ms-visibility": "advanced"
1580-
},
1581-
"TimeZoneOffset": {
1582-
"type": "string",
1583-
"x-ms-summary": "Time Zone Offset",
1584-
"x-ms-visibility": "advanced"
15851558
}
15861559
}
15871560
}
1588-
}
1589-
},
1561+
},
15901562
"GetDocumentsResponse": {
15911563
"type": "string",
15921564
"format": "binary",
@@ -2063,10 +2035,6 @@
20632035
"x-ms-visibility": "advanced"
20642036
}
20652037
}
2066-
},
2067-
"DeclineReasonWithoutType": {
2068-
"x-ms-summary": "Decline Reason",
2069-
"x-ms-visibility": "advanced"
20702038
}
20712039
},
20722040
"x-ms-docs": [

0 commit comments

Comments
 (0)