make key optional and updated TelephonyContext example
This commit is contained in:
parent
664aa5b350
commit
4e29e6ce71
@ -46,11 +46,12 @@ export async function getTenantProperty(
|
||||
"Content-Type": "application/json",
|
||||
};
|
||||
|
||||
let url = `${channelAutomationAPI.host}/tenant-properties-service/${channelAutomationAPI.tenant}/properties?fields=name,value`;
|
||||
|
||||
if (key) url += `&q=${key}`;
|
||||
|
||||
return await axios
|
||||
.get(
|
||||
`${channelAutomationAPI.host}/tenant-properties-service/${channelAutomationAPI.tenant}/properties?fields=name,value,lastModifiedDate,lastModifiedBy?&q=${key}`,
|
||||
{ headers },
|
||||
)
|
||||
.get(url, { headers })
|
||||
.then((response: { data: HydraCollection }) => {
|
||||
const totalItems = response.data["hydra:totalItems"];
|
||||
console.debug("tps result has hydra:totalItems [" + totalItems + "]");
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
</li>
|
||||
<li>
|
||||
<router-link
|
||||
to="/telephonyContext?ani=+13125138223&dnis=unknown&queue=GeneralInquires&direction=INBOUND&channel=AmazonConnect&type=Voice&transferSummary=summary&integrationCardTitle=title&integrationCardDoc=doc&_sessionIdentifier=bc93f1fc"
|
||||
to="/telephonyContext?ani=+13125138223&dnis=unknown&queue=GeneralInquires&direction=INBOUND&channel=AmazonConnect&type=Voice&transferSummary=summary&integrationCardTitle=tps:demo.integrationcard.title&integrationCardDoc=tps:demo.integrationcard.doc&_sessionIdentifier=bc93f1fc"
|
||||
>
|
||||
Telephony Context
|
||||
</router-link>
|
||||
|
||||
@ -6,7 +6,7 @@ import mkcert from "vite-plugin-mkcert";
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig(({ command }) => {
|
||||
if (command === "build") {
|
||||
return { plugins: [vue()], base: "/ca_vue_apps/dist" };
|
||||
return { plugins: [vue()] };
|
||||
} else {
|
||||
return {
|
||||
cors: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user