@pitcher/js-api 1.25.0-beta.1 → 1.25.0-beta.2

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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "19.161.0",
2
+ "version": "19.163.1",
3
3
  "methods": {
4
4
  "on": {
5
5
  "description": "Subscribe to a given event type by its key."
package/js-api.esm.js CHANGED
@@ -2524,6 +2524,9 @@ function query(payload) {
2524
2524
  return highLevelApi.API.request("query", payload);
2525
2525
  }
2526
2526
 
2527
+ function getFolders(payload) {
2528
+ return this.API.request("get_folders", payload);
2529
+ }
2527
2530
  function getFolder(payload = { id: "root" }) {
2528
2531
  return this.API.request("get_folder", payload);
2529
2532
  }
@@ -2631,6 +2634,7 @@ const modules = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2631
2634
  getFileRevisions,
2632
2635
  getFiles: getFiles$1,
2633
2636
  getFolder,
2637
+ getFolders,
2634
2638
  getInstanceMetadataTemplates: getInstanceMetadataTemplates$1,
2635
2639
  getLanguages,
2636
2640
  getRecentFiles,
@@ -2803,7 +2807,9 @@ const defaultSkipKeys = [
2803
2807
  "external_objects__connection_id",
2804
2808
  "external_objects__content_type",
2805
2809
  "external_objects__external_content_type",
2806
- "external_objects__external_object_id"
2810
+ "external_objects__external_object_id",
2811
+ "owned_by__name__icontains",
2812
+ "template__name__icontains"
2807
2813
  ];
2808
2814
  const defaultSkipObjectKeys = ["context", "overrides", "filters", "metadata", "style", "hidden"];
2809
2815
  const shouldSkipObjectKey = (key, skipObjectKeys) => {
@@ -3486,14 +3492,14 @@ const locationUi = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty
3486
3492
  updateLocation
3487
3493
  }, Symbol.toStringTag, { value: 'Module' }));
3488
3494
 
3489
- async function captureAppError(payload) {
3495
+ async function captureAppError$1(payload) {
3490
3496
  const pr = await usePostRobot();
3491
3497
  pr.send(window.parent, UI_API_METHOD_TYPES.UI_CAPTURE_APP_ERROR, payload);
3492
3498
  }
3493
3499
 
3494
3500
  const appErrorsUi = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
3495
3501
  __proto__: null,
3496
- captureAppError
3502
+ captureAppError: captureAppError$1
3497
3503
  }, Symbol.toStringTag, { value: 'Module' }));
3498
3504
 
3499
3505
  async function updateCanvas$1(payload) {
@@ -3660,6 +3666,7 @@ const ADMIN_API_TYPES = {
3660
3666
  ADMIN_RESPONSE: "ADMIN_RESPONSE"
3661
3667
  };
3662
3668
  const ADMIN_API_METHOD_TYPES = {
3669
+ CAPTURE_APP_ERROR: "admin_capture_app_error",
3663
3670
  CREATE_CANVAS: "admin_create_canvas",
3664
3671
  GET_APP_CONFIG: "admin_get_app_config",
3665
3672
  GET_CANVAS: "admin_get_canvas",
@@ -3679,6 +3686,16 @@ const ADMIN_API_METHOD_TYPES = {
3679
3686
  SELECT_CANVASES: "admin_select_canvases"
3680
3687
  };
3681
3688
 
3689
+ async function captureAppError(payload) {
3690
+ const pr = await usePostRobot();
3691
+ pr.send(window.parent, ADMIN_API_METHOD_TYPES.CAPTURE_APP_ERROR, payload);
3692
+ }
3693
+
3694
+ const appErrorsAdmin = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
3695
+ __proto__: null,
3696
+ captureAppError
3697
+ }, Symbol.toStringTag, { value: 'Module' }));
3698
+
3682
3699
  async function getEnv$1() {
3683
3700
  const pr = await usePostRobot();
3684
3701
  const response = await pr.send(window.parent, ADMIN_API_METHOD_TYPES.GET_ENV);
@@ -3810,6 +3827,7 @@ async function toast(payload) {
3810
3827
  const admin = {
3811
3828
  on: on$1,
3812
3829
  toast,
3830
+ ...appErrorsAdmin,
3813
3831
  ...contentAdmin,
3814
3832
  ...envAdmin,
3815
3833
  ...canvasAdmin,