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",
|
"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
|
return await axios
|
||||||
.get(
|
.get(url, { headers })
|
||||||
`${channelAutomationAPI.host}/tenant-properties-service/${channelAutomationAPI.tenant}/properties?fields=name,value,lastModifiedDate,lastModifiedBy?&q=${key}`,
|
|
||||||
{ headers },
|
|
||||||
)
|
|
||||||
.then((response: { data: HydraCollection }) => {
|
.then((response: { data: HydraCollection }) => {
|
||||||
const totalItems = response.data["hydra:totalItems"];
|
const totalItems = response.data["hydra:totalItems"];
|
||||||
console.debug("tps result has hydra:totalItems [" + totalItems + "]");
|
console.debug("tps result has hydra:totalItems [" + totalItems + "]");
|
||||||
|
|||||||
@ -7,7 +7,7 @@
|
|||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<router-link
|
<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
|
Telephony Context
|
||||||
</router-link>
|
</router-link>
|
||||||
|
|||||||
@ -6,7 +6,7 @@ import mkcert from "vite-plugin-mkcert";
|
|||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig(({ command }) => {
|
export default defineConfig(({ command }) => {
|
||||||
if (command === "build") {
|
if (command === "build") {
|
||||||
return { plugins: [vue()], base: "/ca_vue_apps/dist" };
|
return { plugins: [vue()] };
|
||||||
} else {
|
} else {
|
||||||
return {
|
return {
|
||||||
cors: {
|
cors: {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user