@pitcher/js-api 1.21.0-beta.12 → 1.21.0-beta.14

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
@@ -2448,7 +2448,8 @@ function getAppConfig$1(payload) {
2448
2448
  return this.API.request("get_app_config", payload);
2449
2449
  }
2450
2450
  function getFile$1(payload) {
2451
- return this.API.request("get_file", payload);
2451
+ const { id, file_id } = payload;
2452
+ return this.API.request("get_file", { file_id: id || file_id });
2452
2453
  }
2453
2454
  function updateFile(payload) {
2454
2455
  return this.API.request("update_file", payload);
@@ -3203,6 +3204,7 @@ const UI_API_METHOD_TYPES = {
3203
3204
  UI_TOAST: "ui_toast",
3204
3205
  UI_CAPTURE_APP_ERROR: "ui_capture_app_error",
3205
3206
  UI_UPDATE_CANVAS: "ui_update_canvas",
3207
+ UI_OPEN_CANVAS_OVERLAY: "ui_open_canvas_overlay",
3206
3208
  UI_UPDATE_LOCATION: "ui_update_location",
3207
3209
  UI_PRESELECT_SFDC_MEETING_ID: "ui_preselect_sfdc_meeting_id",
3208
3210
  UI_SET_POSTCALL_STYLE: "ui_set_postcall_style",
@@ -3316,6 +3318,10 @@ async function canvas_navigate_page(payload) {
3316
3318
  const pr = await usePostRobot();
3317
3319
  pr.send(window.parent, UI_API_METHOD_TYPES.UI_CANVAS_NAVIGATE_PAGE, payload);
3318
3320
  }
3321
+ async function openCanvasOverlay$1(payload) {
3322
+ const pr = await usePostRobot();
3323
+ await pr.send(window, UI_API_METHOD_TYPES.UI_OPEN_CANVAS_OVERLAY, payload);
3324
+ }
3319
3325
 
3320
3326
  const canvasUi = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
3321
3327
  __proto__: null,
@@ -3324,6 +3330,7 @@ const canvasUi = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
3324
3330
  canvas_navigate_next_page,
3325
3331
  canvas_navigate_page,
3326
3332
  canvas_navigate_previous_page,
3333
+ openCanvasOverlay: openCanvasOverlay$1,
3327
3334
  update_canvas
3328
3335
  }, Symbol.toStringTag, { value: 'Module' }));
3329
3336
 
@@ -3420,13 +3427,14 @@ const ADMIN_API_METHOD_TYPES = {
3420
3427
  GET_APP_CONFIG: "admin_get_app_config",
3421
3428
  GET_CANVAS: "admin_get_canvas",
3422
3429
  GET_CANVASES: "admin_get_canvases",
3430
+ OPEN_CANVAS_OVERLAY: "admin_open_canvas_overlay",
3423
3431
  GET_ENV: "admin_get_env",
3424
3432
  GET_FILE: "admin_get_file",
3425
3433
  GET_FILES: "admin_get_files",
3426
- SELECT_CONTENT: "admin_select_content",
3427
3434
  GET_INSTANCE_METADATA_TEMPLATES: "admin_get_instance_metadata_templates",
3428
3435
  TOAST: "admin_toast",
3429
- UPDATE_CANVAS: "admin_update_canvas"
3436
+ UPDATE_CANVAS: "admin_update_canvas",
3437
+ SELECT_CONTENT: "admin_select_content"
3430
3438
  };
3431
3439
 
3432
3440
  async function getEnv$1() {
@@ -3460,12 +3468,17 @@ async function updateCanvas(payload) {
3460
3468
  const r = await pr.send(window.parent, ADMIN_API_METHOD_TYPES.UPDATE_CANVAS, payload);
3461
3469
  return r.data;
3462
3470
  }
3471
+ async function openCanvasOverlay(payload) {
3472
+ const pr = await usePostRobot();
3473
+ await pr.send(window, ADMIN_API_METHOD_TYPES.OPEN_CANVAS_OVERLAY, payload);
3474
+ }
3463
3475
 
3464
3476
  const canvasAdmin = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
3465
3477
  __proto__: null,
3466
3478
  createCanvas,
3467
3479
  getCanvas,
3468
3480
  getCanvases,
3481
+ openCanvasOverlay,
3469
3482
  updateCanvas
3470
3483
  }, Symbol.toStringTag, { value: 'Module' }));
3471
3484