@wxcc-desktop/sdk 2.0.2 → 2.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -306,6 +306,7 @@ Desktop.agentContact.addEventListener("eAgentMonitorStateChanged", msg => consol
306
306
  Desktop.agentContact.addEventListener("eAgentMonitoringEnded", msg => console.log(msg));
307
307
  Desktop.agentContact.addEventListener("eAgentOfferCampaignReserved", msg => console.log(msg));
308
308
  Desktop.agentContact.addEventListener("eAgentAddCampaignReserved", msg => console.log(msg));
309
+ Desktop.agentContact.addEventListener("eAgentCampaignContactUpdated", msg => console.log(msg));
309
310
 
310
311
  // Module supports removing added listeners like:
311
312
  const listener = msg => console.log(msg);
@@ -399,9 +400,16 @@ import { Desktop } from "@wxcc-desktop/sdk";
399
400
 
400
401
  // List of available agent-contact aqm reqs:
401
402
  await Desktop.dialer.startOutdial({ ... });
403
+ await Desktop.dialer.previewCampaignAccept({ ... });
404
+ await Desktop.dialer.previewCampaignSkip({ ... });
405
+ await Desktop.dialer.removePreviewContact({ ... });
402
406
 
403
407
  // List of available agent-contact aqm notifs events:
404
408
  Desktop.dialer.addEventListener("eOutdialFailed", msg => console.log(msg));
409
+ Desktop.dialer.addEventListener("eCampaignPreviewAcceptFailed", msg => console.log(msg));
410
+ Desktop.dialer.addEventListener("eCampaignPreviewSkipFailed", msg => console.log(msg));
411
+ Desktop.dialer.addEventListener("eCampaignPreviewRemoveFailed", msg => console.log(msg));
412
+
405
413
 
406
414
  // Module supports removing added listeners like:
407
415
  const listener = msg => console.log(msg);
@@ -587,9 +595,25 @@ Desktop.webexMetricsInternal.trackBehavioralEvent(name: string, options?: EventP
587
595
 
588
596
  ```
589
597
 
590
- ### Publishing the wxcc-desktop/js-api
598
+ ## Publish `@wxcc-desktop/sdk` to External npm Repository (e.g., npmjs.com)
599
+
600
+ To publish the `@wxcc-desktop/sdk` package to an external npm repository like npmjs.com, follow these steps:
601
+
602
+ 1. **Verify Membership**
603
+ Ensure you are a member of the `@wxcc-desktop` project on npmjs.com. If not, contact your lead to request access.
604
+
605
+ 2. **Update Version**
606
+ > ⚠️ **Important Step: Update Version**
607
+ > Increment the version number in the `package.json` file according to semantic versioning. Ensure the version changes are merged into the `main` branch before publishing. 🛠️📦
608
+
609
+ 3. **Run Publish Command**
610
+ Execute the following command to publish the package:
611
+ ```bash
612
+ npm run publish:external
613
+ ```
591
614
 
592
- For publishing internally to Internal Cisco Repository: `yarn npm:publish:internal`
593
- For publishing to both Internal and public Repo : `yarn publish:external`
615
+ 4. **Login to npmjs**
616
+ During the process, npm will prompt you to log in to npmjs via your browser. Complete the login process.
594
617
 
595
- `publish:all` responsible for publishing in both first internal repository and then to the external public repository npmjs
618
+ 5. **Verify Publication**
619
+ After a successful login, the new version of the package will be published to npmjs.com.