Added dynamic enum values for webhook events & enhancements (Almabase July 2021 updates) (#962)

* Added dynamic enum values for webhook events

* Added gift medata to easily add gifts

* Renamed the email address id to id
This commit is contained in:
Vaibhav Awachat 2021-07-16 06:06:05 +05:30 коммит произвёл GitHub
Родитель 1e1095b052
Коммит 17279c12f0
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 476 добавлений и 563 удалений

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -41,10 +41,9 @@
},
{
"templateId": "routerequesttoendpoint",
"title": "Redirect to Webhook Management API to create Form Webhook",
"title": "Redirect to Webhook Management API to create customform webhook",
"parameters": {
"x-ms-apimTemplate-operationName": [
"FormEntryCreatedWebhook",
"FormEntryCreateOrUpdateWebhook"
],
"x-ms-apimTemplateParameter.httpMethod": "@Request.OriginalHTTPMethod",
@ -53,10 +52,9 @@
},
{
"templateId": "SetProperty",
"title": "Add webhook version",
"title": "Add webhook version for customform",
"parameters": {
"x-ms-apimTemplate-operationName": [
"FormEntryCreatedWebhook",
"FormEntryCreateOrUpdateWebhook"
],
"x-ms-apimTemplateParameter.newPropertyParentPathTemplate": "@body()",
@ -67,10 +65,9 @@
},
{
"templateId": "SetProperty",
"title": "Add webhook http method",
"title": "Add webhook http method for customform",
"parameters": {
"x-ms-apimTemplate-operationName": [
"FormEntryCreatedWebhook",
"FormEntryCreateOrUpdateWebhook"
],
"x-ms-apimTemplateParameter.newPropertyParentPathTemplate": "@body()",
@ -81,10 +78,9 @@
},
{
"templateId": "SetProperty",
"title": "Add webhook source",
"title": "Add webhook source for customform",
"parameters": {
"x-ms-apimTemplate-operationName": [
"FormEntryCreatedWebhook",
"FormEntryCreateOrUpdateWebhook"
],
"x-ms-apimTemplateParameter.newPropertyParentPathTemplate": "@body()",
@ -95,10 +91,9 @@
},
{
"templateId": "SetProperty",
"title": "Add webhook content type",
"title": "Add webhook content type for customform",
"parameters": {
"x-ms-apimTemplate-operationName": [
"FormEntryCreatedWebhook",
"FormEntryCreateOrUpdateWebhook"
],
"x-ms-apimTemplateParameter.newPropertyParentPathTemplate": "@body()",
@ -136,11 +131,10 @@
},
{
"templateId": "routerequesttoendpoint",
"title": "Redirect to Webhook Management API to create Giving Webhook",
"title": "Redirect to Webhook Management API to create giving webhook",
"parameters": {
"x-ms-apimTemplate-operationName": [
"GiftSucceededWebhook",
"GiftFailedWebhook"
"GiftSucceededOrFailedWebhook"
],
"x-ms-apimTemplateParameter.httpMethod": "@Request.OriginalHTTPMethod",
"x-ms-apimTemplateParameter.newPath": "/v1/webhooks/"
@ -148,11 +142,10 @@
},
{
"templateId": "SetProperty",
"title": "Add webhook version",
"title": "Add webhook version for giving",
"parameters": {
"x-ms-apimTemplate-operationName": [
"GiftSucceededWebhook",
"GiftFailedWebhook"
"GiftSucceededOrFailedWebhook"
],
"x-ms-apimTemplateParameter.newPropertyParentPathTemplate": "@body()",
"x-ms-apimTemplateParameter.newPropertySubPathTemplate": "version",
@ -162,11 +155,10 @@
},
{
"templateId": "SetProperty",
"title": "Add webhook http method",
"title": "Add webhook http method for giving",
"parameters": {
"x-ms-apimTemplate-operationName": [
"GiftSucceededWebhook",
"GiftFailedWebhook"
"GiftSucceededOrFailedWebhook"
],
"x-ms-apimTemplateParameter.newPropertyParentPathTemplate": "@body()",
"x-ms-apimTemplateParameter.newPropertySubPathTemplate": "method",
@ -176,11 +168,10 @@
},
{
"templateId": "SetProperty",
"title": "Add webhook source",
"title": "Add webhook source for giving",
"parameters": {
"x-ms-apimTemplate-operationName": [
"GiftSucceededWebhook",
"GiftFailedWebhook"
"GiftSucceededOrFailedWebhook"
],
"x-ms-apimTemplateParameter.newPropertyParentPathTemplate": "@body()",
"x-ms-apimTemplateParameter.newPropertySubPathTemplate": "source",
@ -190,11 +181,10 @@
},
{
"templateId": "SetProperty",
"title": "Add webhook content type",
"title": "Add webhook content type for giving",
"parameters": {
"x-ms-apimTemplate-operationName": [
"GiftSucceededWebhook",
"GiftFailedWebhook"
"GiftSucceededOrFailedWebhook"
],
"x-ms-apimTemplateParameter.newPropertyParentPathTemplate": "@body()",
"x-ms-apimTemplateParameter.newPropertySubPathTemplate": "content_type",
@ -217,7 +207,7 @@
},
{
"templateId": "setQueryParameter",
"title": "Set skip_pagination query parameter for forms",
"title": "Set skip_pagination query parameter for almasights",
"parameters": {
"x-ms-apimTemplate-operationName": [
"ListTouchpointTypes",
@ -227,16 +217,6 @@
"x-ms-apimTemplateParameter.value": "True",
"x-ms-apimTemplateParameter.existsAction": "override"
}
},
{
"templateId": "dynamichosturl",
"title": "Route to delete webhook domain",
"parameters": {
"x-ms-apimTemplate-operationName": [
"DeleteWebhook"
],
"x-ms-apimTemplateParameter.urlTemplate": "@connectionParameters('domain_url')/"
}
}
]
}