@pitcher/canvas-ui 2025.12.18-75050 → 2025.12.19-075910-beta
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/canvas-ui.css +17 -17
- package/canvas-ui.js +22 -8
- package/canvas-ui.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
|
@@ -240,6 +240,7 @@ export declare function createHighLevelApi(options?: ApiOptions): {
|
|
|
240
240
|
crmSmartDeleteObjects(payload: import('../payload.types').CRMSmartDeleteObjectsPayload): Promise<any>;
|
|
241
241
|
crmCreate(payload: import('../payload.types').CRMCreatePayload): Promise<any>;
|
|
242
242
|
crmUpsert(payload: import('../payload.types').CRMUpsertPayload): Promise<any>;
|
|
243
|
+
crmDescribe(payload: import('../payload.types').CRMDescribePayload): Promise<any>;
|
|
243
244
|
getFolders(payload: import('../payload.types').FolderListRequest): Promise<import('../../main.lib').PaginatedFolderList>;
|
|
244
245
|
getFolder(payload?: {
|
|
245
246
|
id: import('../../main.lib').FolderRetrieve["id"];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { QueryPayload, CRMQueryPayload, UpsertCRMObjectsPayload, CRMSmartObjectValidationRulesPayload, CRMSmartObjectMetadataPayload, CRMSmartDeleteObjectsPayload, CRMCreatePayload, CRMUpsertPayload } from '../../payload.types';
|
|
1
|
+
import { QueryPayload, CRMQueryPayload, UpsertCRMObjectsPayload, CRMSmartObjectValidationRulesPayload, CRMSmartObjectMetadataPayload, CRMSmartDeleteObjectsPayload, CRMCreatePayload, CRMUpsertPayload, CRMDescribePayload } from '../../payload.types';
|
|
2
2
|
export declare function query(payload: QueryPayload): Promise<any>;
|
|
3
3
|
export declare function crmQuery(payload: CRMQueryPayload): Promise<any>;
|
|
4
4
|
/**
|
|
@@ -153,3 +153,23 @@ export declare function crmCreate(payload: CRMCreatePayload): Promise<any>;
|
|
|
153
153
|
* })
|
|
154
154
|
*/
|
|
155
155
|
export declare function crmUpsert(payload: CRMUpsertPayload): Promise<any>;
|
|
156
|
+
/**
|
|
157
|
+
* Retrieves metadata/describe for a CRM object (Web only).
|
|
158
|
+
* Uses Salesforce REST API to fetch object metadata including fields and picklist values.
|
|
159
|
+
*
|
|
160
|
+
* @param {CRMDescribePayload} payload - The describe payload containing the sobject name.
|
|
161
|
+
* @returns {Promise<any>} - Promise resolving with the object metadata including fields and picklist values.
|
|
162
|
+
* @throws {Error} - Throws an error if the payload is invalid.
|
|
163
|
+
*
|
|
164
|
+
* @example
|
|
165
|
+
* // Web only method to get CRM object metadata.
|
|
166
|
+
* api.crmDescribe({ sobject: 'Account' })
|
|
167
|
+
* .then(metadata => {
|
|
168
|
+
* // Access fields
|
|
169
|
+
* console.log(metadata.fields)
|
|
170
|
+
* // Access picklist values for a specific field
|
|
171
|
+
* const industryField = metadata.fields.find(f => f.name === 'Industry')
|
|
172
|
+
* console.log(industryField.picklistValues)
|
|
173
|
+
* })
|
|
174
|
+
*/
|
|
175
|
+
export declare function crmDescribe(payload: CRMDescribePayload): Promise<any>;
|
package/lib/sdk/main.d.ts
CHANGED
|
@@ -311,6 +311,7 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
311
311
|
crmSmartDeleteObjects(payload: import('./payload.types').CRMSmartDeleteObjectsPayload): Promise<any>;
|
|
312
312
|
crmCreate(payload: import('./payload.types').CRMCreatePayload): Promise<any>;
|
|
313
313
|
crmUpsert(payload: import('./payload.types').CRMUpsertPayload): Promise<any>;
|
|
314
|
+
crmDescribe(payload: import('./payload.types').CRMDescribePayload): Promise<any>;
|
|
314
315
|
getFolders(payload: import('./payload.types').FolderListRequest): Promise<import('../main.lib').PaginatedFolderList>;
|
|
315
316
|
getFolder(payload?: {
|
|
316
317
|
id: import('../main.lib').FolderRetrieve["id"];
|
|
@@ -596,6 +597,7 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
596
597
|
crmSmartDeleteObjects(payload: import('./payload.types').CRMSmartDeleteObjectsPayload): Promise<any>;
|
|
597
598
|
crmCreate(payload: import('./payload.types').CRMCreatePayload): Promise<any>;
|
|
598
599
|
crmUpsert(payload: import('./payload.types').CRMUpsertPayload): Promise<any>;
|
|
600
|
+
crmDescribe(payload: import('./payload.types').CRMDescribePayload): Promise<any>;
|
|
599
601
|
getFolders(payload: import('./payload.types').FolderListRequest): Promise<import('../main.lib').PaginatedFolderList>;
|
|
600
602
|
getFolder(payload?: {
|
|
601
603
|
id: import('../main.lib').FolderRetrieve["id"];
|
|
@@ -817,6 +819,7 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
817
819
|
crmSmartDeleteObjects(payload: import('./payload.types').CRMSmartDeleteObjectsPayload): Promise<any>;
|
|
818
820
|
crmCreate(payload: import('./payload.types').CRMCreatePayload): Promise<any>;
|
|
819
821
|
crmUpsert(payload: import('./payload.types').CRMUpsertPayload): Promise<any>;
|
|
822
|
+
crmDescribe(payload: import('./payload.types').CRMDescribePayload): Promise<any>;
|
|
820
823
|
getFolders(payload: import('./payload.types').FolderListRequest): Promise<import('../main.lib').PaginatedFolderList>;
|
|
821
824
|
getFolder(payload?: {
|
|
822
825
|
id: import('../main.lib').FolderRetrieve["id"];
|
|
@@ -404,3 +404,17 @@ export interface CRMUpsertPayload {
|
|
|
404
404
|
*/
|
|
405
405
|
service?: CRMServiceType;
|
|
406
406
|
}
|
|
407
|
+
/**
|
|
408
|
+
* Payload for retrieving CRM object metadata/describe (Web only).
|
|
409
|
+
* Uses Salesforce REST API to fetch object metadata including fields and picklist values.
|
|
410
|
+
*/
|
|
411
|
+
export interface CRMDescribePayload {
|
|
412
|
+
/**
|
|
413
|
+
* The Salesforce object type to describe (e.g., 'Account', 'Contact', 'Opportunity').
|
|
414
|
+
*/
|
|
415
|
+
sobject: string;
|
|
416
|
+
/**
|
|
417
|
+
* Optional name of the CRM service to use.
|
|
418
|
+
*/
|
|
419
|
+
service?: CRMServiceType;
|
|
420
|
+
}
|