@pitcher/js-api 1.26.0-beta.12 → 1.26.0-beta.13

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
@@ -2684,6 +2684,15 @@ function crmUpsert(payload) {
2684
2684
  }
2685
2685
  return highLevelApi.API.request("crm_upsert", payload);
2686
2686
  }
2687
+ function crmDescribe(payload) {
2688
+ if (!payload) {
2689
+ return Promise.reject(new Error("Payload is required"));
2690
+ }
2691
+ if (!payload.sobject || typeof payload.sobject !== "string" || payload.sobject.trim() === "") {
2692
+ return Promise.reject(new Error("sobject is required and must be a non-empty string"));
2693
+ }
2694
+ return highLevelApi.API.request("crm_describe", payload);
2695
+ }
2687
2696
 
2688
2697
  function getFolders(payload) {
2689
2698
  return this.API.request("get_folders", payload);
@@ -2781,6 +2790,7 @@ const modules = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2781
2790
  createFile,
2782
2791
  createFolder,
2783
2792
  crmCreate,
2793
+ crmDescribe,
2784
2794
  crmQuery,
2785
2795
  crmSmartDeleteObjects,
2786
2796
  crmSmartObjectMetadata,