Skip to content

Commit

Permalink
removed _raw
Browse files Browse the repository at this point in the history
  • Loading branch information
Boyko Karadzhov committed Mar 29, 2018
1 parent 573911e commit cdcf7bb
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 34 deletions.
12 changes: 6 additions & 6 deletions Authentication/bg/cognitive-flow.json
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
"endpoint": "https://api.everlive.com/v1/niuqpjk7bubu0282/Functions/GetDoctors",
"selector": "$[:].ExternalId"
},
"condition": "{{$in _raw.doctor.ExternalId _response}}"
"condition": "{{$in doctor.ExternalId _response}}"
},
"error-message": [
"За съжаление, {{doctor}} няма свободни часове за момента."
Expand All @@ -180,7 +180,7 @@
"type": "custom",
"parameters": {
"data-source": {
"endpoint": "https://api.everlive.com/v1/niuqpjk7bubu0282/Functions/GetDoctorDays?doctorId={{$encodeURI _raw.doctor.ExternalId}}",
"endpoint": "https://api.everlive.com/v1/niuqpjk7bubu0282/Functions/GetDoctorDays?doctorId={{$encodeURI doctor.ExternalId}}",
"method": "GET"
},
"condition": "{{$in ($date date 'YYYY-MM-DD') _response}}"
Expand All @@ -193,7 +193,7 @@
"display": {
"type": "quick-reply",
"data-source": {
"endpoint": "https://api.everlive.com/v1/niuqpjk7bubu0282/Functions/GetDoctorDays?doctorId={{$encodeURI _raw.doctor.ExternalId}}",
"endpoint": "https://api.everlive.com/v1/niuqpjk7bubu0282/Functions/GetDoctorDays?doctorId={{$encodeURI doctor.ExternalId}}",
"method": "GET"
}
}
Expand All @@ -210,7 +210,7 @@
"type": "custom",
"parameters": {
"data-source": {
"endpoint": "https://api.everlive.com/v1/niuqpjk7bubu0282/Functions/GetDoctorHours?doctorId={{$encodeURI _raw.doctor.ExternalId}}&date={{$encodeURI date}}",
"endpoint": "https://api.everlive.com/v1/niuqpjk7bubu0282/Functions/GetDoctorHours?doctorId={{$encodeURI doctor.ExternalId}}&date={{$encodeURI date}}",
"method": "GET"
},
"condition": "{{$in time _response}}"
Expand All @@ -223,7 +223,7 @@
"display": {
"type": "quick-reply",
"data-source": {
"endpoint": "https://api.everlive.com/v1/niuqpjk7bubu0282/Functions/GetDoctorHours?doctorId={{$encodeURI _raw.doctor.ExternalId}}&date={{$encodeURI date}}",
"endpoint": "https://api.everlive.com/v1/niuqpjk7bubu0282/Functions/GetDoctorHours?doctorId={{$encodeURI doctor.ExternalId}}&date={{$encodeURI date}}",
"method": "GET"
}
}
Expand Down Expand Up @@ -282,7 +282,7 @@
"Authorization": "Bearer {{auth.accessToken}}"
},
"payload": {
"DoctorID": "{{_raw.doctor.ExternalId}}",
"DoctorID": "{{doctor.ExternalId}}",
"PatientName": "{{contactName}}",
"Date": "{{date}}",
"Time": "{{time}}"
Expand Down
12 changes: 6 additions & 6 deletions Authentication/en/cognitive-flow.json
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
"endpoint": "https://api.everlive.com/v1/niuqpjk7bubu0282/Functions/GetDoctors",
"selector": "$[:].ExternalId"
},
"condition": "{{$in _raw.doctor.ExternalId _response}}"
"condition": "{{$in doctor.ExternalId _response}}"
},
"error-message": [
"Unfortunately, {{doctor}} is not available."
Expand Down Expand Up @@ -181,7 +181,7 @@
"type": "custom",
"parameters": {
"data-source": {
"endpoint": "https://api.everlive.com/v1/niuqpjk7bubu0282/Functions/GetDoctorDays?doctorId={{$encodeURI _raw.doctor.ExternalId}}",
"endpoint": "https://api.everlive.com/v1/niuqpjk7bubu0282/Functions/GetDoctorDays?doctorId={{$encodeURI doctor.ExternalId}}",
"method": "GET"
},
"condition": "{{$in ($date date 'YYYY-MM-DD') _response}}"
Expand All @@ -194,7 +194,7 @@
"display": {
"type": "quick-reply",
"data-source": {
"endpoint": "https://api.everlive.com/v1/niuqpjk7bubu0282/Functions/GetDoctorDays?doctorId={{$encodeURI _raw.doctor.ExternalId}}",
"endpoint": "https://api.everlive.com/v1/niuqpjk7bubu0282/Functions/GetDoctorDays?doctorId={{$encodeURI doctor.ExternalId}}",
"method": "GET"
}
}
Expand All @@ -211,7 +211,7 @@
"type": "custom",
"parameters": {
"data-source": {
"endpoint": "https://api.everlive.com/v1/niuqpjk7bubu0282/Functions/GetDoctorHours?doctorId={{$encodeURI _raw.doctor.ExternalId}}&date={{$encodeURI date}}",
"endpoint": "https://api.everlive.com/v1/niuqpjk7bubu0282/Functions/GetDoctorHours?doctorId={{$encodeURI doctor.ExternalId}}&date={{$encodeURI date}}",
"method": "GET"
},
"condition": "{{$in time _response}}"
Expand All @@ -224,7 +224,7 @@
"display": {
"type": "quick-reply",
"data-source": {
"endpoint": "https://api.everlive.com/v1/niuqpjk7bubu0282/Functions/GetDoctorHours?doctorId={{$encodeURI _raw.doctor.ExternalId}}&date={{$encodeURI date}}",
"endpoint": "https://api.everlive.com/v1/niuqpjk7bubu0282/Functions/GetDoctorHours?doctorId={{$encodeURI doctor.ExternalId}}&date={{$encodeURI date}}",
"method": "GET"
}
}
Expand Down Expand Up @@ -284,7 +284,7 @@
"Authorization": "Bearer {{auth.accessToken}}"
},
"payload": {
"DoctorID": "{{_raw.doctor.ExternalId}}",
"DoctorID": "{{doctor.ExternalId}}",
"PatientName": "{{contactName}}",
"Date": "{{date}}",
"Time": "{{time}}"
Expand Down
8 changes: 4 additions & 4 deletions InsuranceAgent/en/cognitive-flow.json
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@
{
"type": "custom",
"parameters": {
"condition": "{{$gt _raw.endDate _raw.startDate}}"
"condition": "{{$gt endDate startDate}}"
},
"error-message": [
"The end date of your insurance cannot be before your start date."
Expand Down Expand Up @@ -245,7 +245,7 @@
"display": {
"type": "carousel",
"data-source": {
"endpoint": "https://api.everlive.com/v1/2mjhvesaxbgg0qiu/Functions/recommendInsurances?startDate={{_raw.startDate}}&endDate={{_raw.endDate}}",
"endpoint": "https://api.everlive.com/v1/2mjhvesaxbgg0qiu/Functions/recommendInsurances?startDate={{startDate}}&endDate={{endDate}}",
"method": "GET"
},
"template": {
Expand All @@ -261,7 +261,7 @@
"type": "webhook",
"entity": "insurance",
"data-source": {
"endpoint": "https://api.everlive.com/v1/2mjhvesaxbgg0qiu/Functions/recommendInsurance?startDate={{startDate}}&endDate={{endDate}}&id={{_raw.insurancePlan.Id}}",
"endpoint": "https://api.everlive.com/v1/2mjhvesaxbgg0qiu/Functions/recommendInsurance?startDate={{startDate}}&endDate={{endDate}}&id={{insurancePlan.Id}}",
"method": "GET"
}
},
Expand Down Expand Up @@ -460,7 +460,7 @@
{
"type": "image",
"error-message": [
"Even though I enjoy {{_raw.receiptPicture.labels.[0]}} pictures, we'll need a photo with the invoice of the billed ammount."
"Even though I enjoy {{receiptPicture.labels.[0]}} pictures, we'll need a photo with the invoice of the billed ammount."
],
"parameters": {
"contains": [
Expand Down
12 changes: 6 additions & 6 deletions QuickStart/bg/cognitive-flow.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
"endpoint": "https://api.everlive.com/v1/niuqpjk7bubu0282/Functions/GetDoctors",
"selector": "$[:].ExternalId"
},
"condition": "{{$in _raw.doctor.ExternalId _response}}"
"condition": "{{$in doctor.ExternalId _response}}"
},
"error-message": [
"За съжаление, {{doctor}} няма свободни часове за момента."
Expand Down Expand Up @@ -170,7 +170,7 @@
"type": "custom",
"parameters": {
"data-source": {
"endpoint": "https://api.everlive.com/v1/niuqpjk7bubu0282/Functions/GetDoctorDays?doctorId={{$encodeURI _raw.doctor.ExternalId}}",
"endpoint": "https://api.everlive.com/v1/niuqpjk7bubu0282/Functions/GetDoctorDays?doctorId={{$encodeURI doctor.ExternalId}}",
"method": "GET"
},
"condition": "{{$in ($date date 'YYYY-MM-DD') _response}}"
Expand All @@ -184,7 +184,7 @@
"display": {
"type": "quick-reply",
"data-source": {
"endpoint": "https://api.everlive.com/v1/niuqpjk7bubu0282/Functions/GetDoctorDays?doctorId={{$encodeURI _raw.doctor.ExternalId}}",
"endpoint": "https://api.everlive.com/v1/niuqpjk7bubu0282/Functions/GetDoctorDays?doctorId={{$encodeURI doctor.ExternalId}}",
"method": "GET"
}
}
Expand All @@ -202,7 +202,7 @@
"type": "custom",
"parameters": {
"data-source": {
"endpoint": "https://api.everlive.com/v1/niuqpjk7bubu0282/Functions/GetDoctorHours?doctorId={{$encodeURI _raw.doctor.ExternalId}}&date={{$encodeURI date}}",
"endpoint": "https://api.everlive.com/v1/niuqpjk7bubu0282/Functions/GetDoctorHours?doctorId={{$encodeURI doctor.ExternalId}}&date={{$encodeURI date}}",
"method": "GET"
},
"condition": "{{$in time _response}}"
Expand All @@ -216,7 +216,7 @@
"display": {
"type": "quick-reply",
"data-source": {
"endpoint": "https://api.everlive.com/v1/niuqpjk7bubu0282/Functions/GetDoctorHours?doctorId={{$encodeURI _raw.doctor.ExternalId}}&date={{$encodeURI date}}",
"endpoint": "https://api.everlive.com/v1/niuqpjk7bubu0282/Functions/GetDoctorHours?doctorId={{$encodeURI doctor.ExternalId}}&date={{$encodeURI date}}",
"method": "GET"
}
}
Expand Down Expand Up @@ -276,7 +276,7 @@
"Content-Type": "application/json"
},
"payload": {
"DoctorID": "{{_raw.doctor.ExternalId}}",
"DoctorID": "{{doctor.ExternalId}}",
"PatientName": "{{contactName}}",
"Date": "{{date}}",
"Time": "{{time}}"
Expand Down
12 changes: 6 additions & 6 deletions QuickStart/de/cognitive-flow.json
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
"endpoint": "https://api.everlive.com/v1/niuqpjk7bubu0282/Functions/GetDoctors",
"selector": "$[:].ExternalId"
},
"condition": "{{$in _raw.doctor.ExternalId _response}}"
"condition": "{{$in doctor.ExternalId _response}}"
},
"error-message": [
"{{doctor}} ist leider nicht verfügbar."
Expand All @@ -160,7 +160,7 @@
"type": "custom",
"parameters": {
"data-source": {
"endpoint": "https://api.everlive.com/v1/niuqpjk7bubu0282/Functions/GetDoctorDays?doctorId={{$encodeURI _raw.doctor.ExternalId}}",
"endpoint": "https://api.everlive.com/v1/niuqpjk7bubu0282/Functions/GetDoctorDays?doctorId={{$encodeURI doctor.ExternalId}}",
"method": "GET"
},
"condition": "{{$in ($date date 'YYYY-MM-DD') _response}}"
Expand All @@ -173,7 +173,7 @@
"display": {
"type": "quick-reply",
"data-source": {
"endpoint": "https://api.everlive.com/v1/niuqpjk7bubu0282/Functions/GetDoctorDays?doctorId={{$encodeURI _raw.doctor.ExternalId}}",
"endpoint": "https://api.everlive.com/v1/niuqpjk7bubu0282/Functions/GetDoctorDays?doctorId={{$encodeURI doctor.ExternalId}}",
"method": "GET"
}
}
Expand All @@ -190,7 +190,7 @@
"type": "custom",
"parameters": {
"data-source": {
"endpoint": "https://api.everlive.com/v1/niuqpjk7bubu0282/Functions/GetDoctorHours?doctorId={{$encodeURI _raw.doctor.ExternalId}}&date={{$encodeURI date}}",
"endpoint": "https://api.everlive.com/v1/niuqpjk7bubu0282/Functions/GetDoctorHours?doctorId={{$encodeURI doctor.ExternalId}}&date={{$encodeURI date}}",
"method": "GET"
},
"condition": "{{$in time _response}}"
Expand All @@ -203,7 +203,7 @@
"display": {
"type": "quick-reply",
"data-source": {
"endpoint": "https://api.everlive.com/v1/niuqpjk7bubu0282/Functions/GetDoctorHours?doctorId={{$encodeURI _raw.doctor.ExternalId}}&date={{$encodeURI date}}",
"endpoint": "https://api.everlive.com/v1/niuqpjk7bubu0282/Functions/GetDoctorHours?doctorId={{$encodeURI doctor.ExternalId}}&date={{$encodeURI date}}",
"method": "GET"
}
}
Expand Down Expand Up @@ -262,7 +262,7 @@
"Content-Type": "application/json"
},
"payload": {
"DoctorID": "{{_raw.doctor.ExternalId}}",
"DoctorID": "{{doctor.ExternalId}}",
"PatientName": "{{contactName}}",
"Date": "{{date}}",
"Time": "{{time}}"
Expand Down
12 changes: 6 additions & 6 deletions QuickStart/en/cognitive-flow.json
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
"endpoint": "https://api.everlive.com/v1/niuqpjk7bubu0282/Functions/GetDoctors",
"selector": "$[:].ExternalId"
},
"condition": "{{$in _raw.doctor.ExternalId _response}}"
"condition": "{{$in doctor.ExternalId _response}}"
},
"error-message": [
"Unfortunately, {{doctor}} is not available."
Expand All @@ -160,7 +160,7 @@
"type": "custom",
"parameters": {
"data-source": {
"endpoint": "https://api.everlive.com/v1/niuqpjk7bubu0282/Functions/GetDoctorDays?doctorId={{$encodeURI _raw.doctor.ExternalId}}",
"endpoint": "https://api.everlive.com/v1/niuqpjk7bubu0282/Functions/GetDoctorDays?doctorId={{$encodeURI doctor.ExternalId}}",
"method": "GET"
},
"condition": "{{$in ($date date 'YYYY-MM-DD') _response}}"
Expand All @@ -173,7 +173,7 @@
"display": {
"type": "quick-reply",
"data-source": {
"endpoint": "https://api.everlive.com/v1/niuqpjk7bubu0282/Functions/GetDoctorDays?doctorId={{$encodeURI _raw.doctor.ExternalId}}",
"endpoint": "https://api.everlive.com/v1/niuqpjk7bubu0282/Functions/GetDoctorDays?doctorId={{$encodeURI doctor.ExternalId}}",
"method": "GET"
}
}
Expand All @@ -190,7 +190,7 @@
"type": "custom",
"parameters": {
"data-source": {
"endpoint": "https://api.everlive.com/v1/niuqpjk7bubu0282/Functions/GetDoctorHours?doctorId={{$encodeURI _raw.doctor.ExternalId}}&date={{$encodeURI date}}",
"endpoint": "https://api.everlive.com/v1/niuqpjk7bubu0282/Functions/GetDoctorHours?doctorId={{$encodeURI doctor.ExternalId}}&date={{$encodeURI date}}",
"method": "GET"
},
"condition": "{{$in time _response}}"
Expand All @@ -203,7 +203,7 @@
"display": {
"type": "quick-reply",
"data-source": {
"endpoint": "https://api.everlive.com/v1/niuqpjk7bubu0282/Functions/GetDoctorHours?doctorId={{$encodeURI _raw.doctor.ExternalId}}&date={{$encodeURI date}}",
"endpoint": "https://api.everlive.com/v1/niuqpjk7bubu0282/Functions/GetDoctorHours?doctorId={{$encodeURI doctor.ExternalId}}&date={{$encodeURI date}}",
"method": "GET"
}
}
Expand Down Expand Up @@ -262,7 +262,7 @@
"Content-Type": "application/json"
},
"payload": {
"DoctorID": "{{_raw.doctor.ExternalId}}",
"DoctorID": "{{doctor.ExternalId}}",
"PatientName": "{{contactName}}",
"Date": "{{date}}",
"Time": "{{time}}"
Expand Down

0 comments on commit cdcf7bb

Please sign in to comment.