@pitcher/js-api 1.22.0-alpha.3 → 1.22.0-alpha.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/js-api.esm.js CHANGED
@@ -2844,6 +2844,7 @@ function usePostRobot() {
2844
2844
 
2845
2845
  const UI_MESSAGE = "UI_MESSAGE";
2846
2846
  const UI_API_METHOD_TYPES = {
2847
+ UI_BROADCAST: "ui_broadcast",
2847
2848
  UI_SELECT_CONTENT: "ui_select_content",
2848
2849
  UI_OPEN: "ui_open",
2849
2850
  UI_EMBEDDABLE_READY: "ui_embeddable_ready",
@@ -2851,10 +2852,11 @@ const UI_API_METHOD_TYPES = {
2851
2852
  UI_CAPTURE_APP_ERROR: "ui_capture_app_error",
2852
2853
  UI_UPDATE_CANVAS: "ui_update_canvas",
2853
2854
  UI_UPDATE_LOCATION: "ui_update_location",
2854
- UI_PRESELECT_SFDC_MEETING_ID: "ui_preselect_sfdc_meeting_id"
2855
+ UI_PRESELECT_SFDC_MEETING_ID: "ui_preselect_sfdc_meeting_id",
2856
+ UI_COMPLETE_POSTCALL: "ui_complete_postcall"
2855
2857
  };
2856
2858
  const UI_MESSAGE_TYPES = {
2857
- UI_CONTENT_SELECTED: "ui_content_selected"
2859
+ UI_MEETING_CANCELED: "ui_meeting_canceled"
2858
2860
  };
2859
2861
 
2860
2862
  async function ui_select_content(payload = {}) {
@@ -2904,21 +2906,32 @@ async function update_canvas(payload) {
2904
2906
  return pr.send(window.parent, UI_API_METHOD_TYPES.UI_UPDATE_CANVAS, payload).then((response) => response.data);
2905
2907
  }
2906
2908
 
2909
+ async function complete_postcall(payload) {
2910
+ const pr = await usePostRobot();
2911
+ pr.send(window.parent, UI_API_METHOD_TYPES.UI_COMPLETE_POSTCALL, payload);
2912
+ }
2913
+
2907
2914
  async function on$2(type, handler) {
2908
2915
  const pr = await usePostRobot();
2909
2916
  const listener = pr.on(type, (e) => handler(e.data));
2910
2917
  return listener.cancel;
2911
2918
  }
2919
+ async function ui_broadcast(payload) {
2920
+ const pr = await usePostRobot();
2921
+ pr.send(window.parent, UI_API_METHOD_TYPES.UI_BROADCAST, payload);
2922
+ }
2912
2923
 
2913
2924
  const ui = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2914
2925
  __proto__: null,
2915
2926
  capture_app_error,
2927
+ complete_postcall,
2916
2928
  embeddable_ready: embeddable_ready$1,
2917
2929
  on: on$2,
2918
2930
  open,
2919
2931
  preselect_sfdc_meeting_id,
2920
2932
  select_content,
2921
2933
  toast,
2934
+ ui_broadcast,
2922
2935
  ui_select_content,
2923
2936
  update_canvas,
2924
2937
  update_location