@pitcher/canvas-ui 2025.12.19-075910-beta → 2025.12.19-101638
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 +52 -14
- package/canvas-ui.js.map +1 -1
- package/lib/api/events/events.helpers.d.ts +3 -1
- package/lib/sdk/api/HighLevelApi.d.ts +0 -1
- package/lib/sdk/api/modules/query.d.ts +1 -21
- package/lib/sdk/main.d.ts +0 -3
- package/lib/sdk/payload.types.d.ts +0 -14
- package/lib/types/sfdc.d.ts +3 -0
- package/package.json +1 -1
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { Event, MiniCanvas } from '../../../types/openapi';
|
|
2
2
|
import { SfAccountMini, SfEvent, SfUser } from '../../types/sfdc';
|
|
3
3
|
import { ComputedRef } from 'vue';
|
|
4
|
-
export declare function
|
|
4
|
+
export declare function extractFieldNamesFromCondition(condition: string): string[];
|
|
5
|
+
export declare function evaluateIsExecutedCondition(condition: string | undefined, event: any): boolean;
|
|
6
|
+
export declare function getEventColor(_pEvent: Event, sfEvent: SfEvent): string;
|
|
5
7
|
export declare const minFutureDate: (date?: Date) => Date;
|
|
6
8
|
export declare const minPastDate: (date?: Date) => Date;
|
|
7
9
|
export declare const setDateTime: (date: number | Date) => number;
|
|
@@ -240,7 +240,6 @@ 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>;
|
|
244
243
|
getFolders(payload: import('../payload.types').FolderListRequest): Promise<import('../../main.lib').PaginatedFolderList>;
|
|
245
244
|
getFolder(payload?: {
|
|
246
245
|
id: import('../../main.lib').FolderRetrieve["id"];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { QueryPayload, CRMQueryPayload, UpsertCRMObjectsPayload, CRMSmartObjectValidationRulesPayload, CRMSmartObjectMetadataPayload, CRMSmartDeleteObjectsPayload, CRMCreatePayload, CRMUpsertPayload
|
|
1
|
+
import { QueryPayload, CRMQueryPayload, UpsertCRMObjectsPayload, CRMSmartObjectValidationRulesPayload, CRMSmartObjectMetadataPayload, CRMSmartDeleteObjectsPayload, CRMCreatePayload, CRMUpsertPayload } 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,23 +153,3 @@ 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,7 +311,6 @@ 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>;
|
|
315
314
|
getFolders(payload: import('./payload.types').FolderListRequest): Promise<import('../main.lib').PaginatedFolderList>;
|
|
316
315
|
getFolder(payload?: {
|
|
317
316
|
id: import('../main.lib').FolderRetrieve["id"];
|
|
@@ -597,7 +596,6 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
597
596
|
crmSmartDeleteObjects(payload: import('./payload.types').CRMSmartDeleteObjectsPayload): Promise<any>;
|
|
598
597
|
crmCreate(payload: import('./payload.types').CRMCreatePayload): Promise<any>;
|
|
599
598
|
crmUpsert(payload: import('./payload.types').CRMUpsertPayload): Promise<any>;
|
|
600
|
-
crmDescribe(payload: import('./payload.types').CRMDescribePayload): Promise<any>;
|
|
601
599
|
getFolders(payload: import('./payload.types').FolderListRequest): Promise<import('../main.lib').PaginatedFolderList>;
|
|
602
600
|
getFolder(payload?: {
|
|
603
601
|
id: import('../main.lib').FolderRetrieve["id"];
|
|
@@ -819,7 +817,6 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
819
817
|
crmSmartDeleteObjects(payload: import('./payload.types').CRMSmartDeleteObjectsPayload): Promise<any>;
|
|
820
818
|
crmCreate(payload: import('./payload.types').CRMCreatePayload): Promise<any>;
|
|
821
819
|
crmUpsert(payload: import('./payload.types').CRMUpsertPayload): Promise<any>;
|
|
822
|
-
crmDescribe(payload: import('./payload.types').CRMDescribePayload): Promise<any>;
|
|
823
820
|
getFolders(payload: import('./payload.types').FolderListRequest): Promise<import('../main.lib').PaginatedFolderList>;
|
|
824
821
|
getFolder(payload?: {
|
|
825
822
|
id: import('../main.lib').FolderRetrieve["id"];
|
|
@@ -404,17 +404,3 @@ 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
|
-
}
|
package/lib/types/sfdc.d.ts
CHANGED
|
@@ -59,6 +59,7 @@ export type SfEvent = {
|
|
|
59
59
|
Type?: string;
|
|
60
60
|
EventWhoIds?: string[];
|
|
61
61
|
IsAllDayEvent?: boolean;
|
|
62
|
+
is_executed_condition?: string;
|
|
62
63
|
};
|
|
63
64
|
export type SfEventExtended = SfEvent & {
|
|
64
65
|
contactName?: string;
|
|
@@ -106,6 +107,8 @@ export interface SfContactBasic {
|
|
|
106
107
|
type: string;
|
|
107
108
|
url: string;
|
|
108
109
|
};
|
|
110
|
+
callId?: string;
|
|
111
|
+
PersonAccountId?: string;
|
|
109
112
|
}
|
|
110
113
|
export type EventsSfList = {
|
|
111
114
|
done?: boolean;
|