@pitcher/canvas-ui 2025.12.5-140640 → 2025.12.5-142623-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.js +31 -0
- package/canvas-ui.js.map +1 -1
- package/lib/sdk/api/HighLevelApi.d.ts +1 -0
- package/lib/sdk/api/modules/query.d.ts +26 -1
- package/lib/sdk/main.d.ts +3 -0
- package/lib/sdk/payload.types.d.ts +22 -0
- package/package.json +1 -1
|
@@ -237,6 +237,7 @@ export declare function createHighLevelApi(options?: ApiOptions): {
|
|
|
237
237
|
crmSmartObjectMetadata(payload: import('../payload.types').CRMSmartObjectMetadataPayload): Promise<any>;
|
|
238
238
|
crmSmartUpsertObjects(payload: import('../payload.types').UpsertCRMObjectsPayload): Promise<any>;
|
|
239
239
|
crmSmartObjectValidationRules(payload: import('../payload.types').CRMSmartObjectValidationRulesPayload): Promise<any>;
|
|
240
|
+
crmSmartDeleteObjects(payload: import('../payload.types').CRMSmartDeleteObjectsPayload): Promise<any>;
|
|
240
241
|
getFolders(payload: import('../payload.types').FolderListRequest): Promise<import('../../main.lib').PaginatedFolderList>;
|
|
241
242
|
getFolder(payload?: {
|
|
242
243
|
id: import('../../main.lib').FolderRetrieve["id"];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { QueryPayload, CRMQueryPayload, UpsertCRMObjectsPayload, CRMSmartObjectValidationRulesPayload, CRMSmartObjectMetadataPayload } from '../../payload.types';
|
|
1
|
+
import { QueryPayload, CRMQueryPayload, UpsertCRMObjectsPayload, CRMSmartObjectValidationRulesPayload, CRMSmartObjectMetadataPayload, CRMSmartDeleteObjectsPayload } 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
|
/**
|
|
@@ -88,3 +88,28 @@ export declare function crmSmartUpsertObjects(payload: UpsertCRMObjectsPayload):
|
|
|
88
88
|
* api.crmSmartObjectValidationRules({ object: 'Contact' })
|
|
89
89
|
*/
|
|
90
90
|
export declare function crmSmartObjectValidationRules(payload: CRMSmartObjectValidationRulesPayload): Promise<any>;
|
|
91
|
+
/**
|
|
92
|
+
* Deletes CRM objects from local CRM data (iOS only).
|
|
93
|
+
* Uses Salesforce Mobile SDK SmartStore to delete records.
|
|
94
|
+
* Each object in the payload specifies a table name and an array of IDs to delete.
|
|
95
|
+
*
|
|
96
|
+
* @param {CRMSmartDeleteObjectsPayload} payload - The delete payload containing an array of CRMDeleteObject items.
|
|
97
|
+
* @returns {Promise<any>} - Promise resolving with the result of the delete operation.
|
|
98
|
+
* @throws {Error} - Throws an error if the payload is invalid.
|
|
99
|
+
*
|
|
100
|
+
* @example
|
|
101
|
+
* // iOS only method to delete CRM objects.
|
|
102
|
+
* api.crmSmartDeleteObjects({
|
|
103
|
+
* objects: [
|
|
104
|
+
* {
|
|
105
|
+
* table_name: 'Account',
|
|
106
|
+
* ids: ['001xx000003DGbQAAW', '001xx000003DGbRABW']
|
|
107
|
+
* },
|
|
108
|
+
* {
|
|
109
|
+
* table_name: 'Contact',
|
|
110
|
+
* ids: ['003xx000004TmiQAAS']
|
|
111
|
+
* }
|
|
112
|
+
* ]
|
|
113
|
+
* })
|
|
114
|
+
*/
|
|
115
|
+
export declare function crmSmartDeleteObjects(payload: CRMSmartDeleteObjectsPayload): Promise<any>;
|
package/lib/sdk/main.d.ts
CHANGED
|
@@ -306,6 +306,7 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
306
306
|
crmSmartObjectMetadata(payload: import('./payload.types').CRMSmartObjectMetadataPayload): Promise<any>;
|
|
307
307
|
crmSmartUpsertObjects(payload: import('./payload.types').UpsertCRMObjectsPayload): Promise<any>;
|
|
308
308
|
crmSmartObjectValidationRules(payload: import('./payload.types').CRMSmartObjectValidationRulesPayload): Promise<any>;
|
|
309
|
+
crmSmartDeleteObjects(payload: import('./payload.types').CRMSmartDeleteObjectsPayload): Promise<any>;
|
|
309
310
|
getFolders(payload: import('./payload.types').FolderListRequest): Promise<import('../main.lib').PaginatedFolderList>;
|
|
310
311
|
getFolder(payload?: {
|
|
311
312
|
id: import('../main.lib').FolderRetrieve["id"];
|
|
@@ -586,6 +587,7 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
586
587
|
crmSmartObjectMetadata(payload: import('./payload.types').CRMSmartObjectMetadataPayload): Promise<any>;
|
|
587
588
|
crmSmartUpsertObjects(payload: import('./payload.types').UpsertCRMObjectsPayload): Promise<any>;
|
|
588
589
|
crmSmartObjectValidationRules(payload: import('./payload.types').CRMSmartObjectValidationRulesPayload): Promise<any>;
|
|
590
|
+
crmSmartDeleteObjects(payload: import('./payload.types').CRMSmartDeleteObjectsPayload): Promise<any>;
|
|
589
591
|
getFolders(payload: import('./payload.types').FolderListRequest): Promise<import('../main.lib').PaginatedFolderList>;
|
|
590
592
|
getFolder(payload?: {
|
|
591
593
|
id: import('../main.lib').FolderRetrieve["id"];
|
|
@@ -802,6 +804,7 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
802
804
|
crmSmartObjectMetadata(payload: import('./payload.types').CRMSmartObjectMetadataPayload): Promise<any>;
|
|
803
805
|
crmSmartUpsertObjects(payload: import('./payload.types').UpsertCRMObjectsPayload): Promise<any>;
|
|
804
806
|
crmSmartObjectValidationRules(payload: import('./payload.types').CRMSmartObjectValidationRulesPayload): Promise<any>;
|
|
807
|
+
crmSmartDeleteObjects(payload: import('./payload.types').CRMSmartDeleteObjectsPayload): Promise<any>;
|
|
805
808
|
getFolders(payload: import('./payload.types').FolderListRequest): Promise<import('../main.lib').PaginatedFolderList>;
|
|
806
809
|
getFolder(payload?: {
|
|
807
810
|
id: import('../main.lib').FolderRetrieve["id"];
|
|
@@ -339,3 +339,25 @@ export interface CRMSmartObjectValidationRulesPayload {
|
|
|
339
339
|
*/
|
|
340
340
|
object: string;
|
|
341
341
|
}
|
|
342
|
+
/**
|
|
343
|
+
* Represents a single CRM object to be deleted.
|
|
344
|
+
*/
|
|
345
|
+
export interface CRMDeleteObject {
|
|
346
|
+
/**
|
|
347
|
+
* Array of IDs of the records to delete.
|
|
348
|
+
*/
|
|
349
|
+
ids: string[];
|
|
350
|
+
/**
|
|
351
|
+
* The name of the CRM table/object to delete from.
|
|
352
|
+
*/
|
|
353
|
+
table_name: string;
|
|
354
|
+
}
|
|
355
|
+
/**
|
|
356
|
+
* Payload for deleting CRM objects (iOS only).
|
|
357
|
+
*/
|
|
358
|
+
export interface CRMSmartDeleteObjectsPayload {
|
|
359
|
+
/**
|
|
360
|
+
* Array of CRM objects to be deleted.
|
|
361
|
+
*/
|
|
362
|
+
objects: CRMDeleteObject[];
|
|
363
|
+
}
|