Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Property 'CustomerProfilesClient' does not exist on type 'typeof connect'. #11

Open
nayabrasool4910 opened this issue Dec 28, 2023 · 0 comments

Comments

@nayabrasool4910
Copy link

nayabrasool4910 commented Dec 28, 2023

I am using angular to customize the CCP. I am trying to attach the customer profiles to my customized CCP.
I installed npm package of amazon-connect-customer-profiles
npm i amazon-connect-customer-profiles

My code is

import "amazon-connect-streams";
import "amazon-connect-chatjs";
import "amazon-connect-customer-profiles";

export class CcpComponent implements OnInit {

ngOnInit(): void {
connect.core.initCCP(document.getElementById('containerDiv'), {
loginUrl: environment.loginUrl,
loginPopupAutoClose: true,
ccpUrl: environment.ccpUrl,
loginPopup: true,
softphone: {
allowFramedSoftphone: true
},
region: "us-east-1",
pageOptions: {
enableAudioDeviceSettings: true,
enablePhoneTypeSettings: true
},

});
let instanceName = 'https://<instanceName>.my.connect.aws';
const client = new connect.CustomerProfilesClient(instanceName)
console.log(client)

}
}

But I am getting error Property 'CustomerProfilesClient' does not exist on type 'typeof connect'.
Is anything I forget to mention here.
Can anyone place the valuable comments here. Advance thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant