@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 +10 -0
- package/js-api.esm.js.map +1 -1
- package/js-api.umd.min.js +10 -10
- package/js-api.umd.min.js.map +1 -1
- package/lib/sdk/api/HighLevelApi.d.ts +1 -0
- package/lib/sdk/api/modules/query.d.ts +21 -1
- package/lib/sdk/main.d.ts +3 -0
- package/lib/sdk/payload.types.d.ts +14 -0
- package/package.json +1 -1
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,
|