@pitcher/canvas-ui 2026.1.6-143102-beta → 2026.1.7-082401-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.
@@ -1,19 +1,7 @@
1
- import { MiniCanvas } from '../../../types/openapi';
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 extractFieldNamesFromCondition(condition: string): string[];
5
- export declare function evaluateIsExecutedCondition(condition: string | undefined, event: any): boolean;
6
- /**
7
- * Evaluates is_executed_condition for PascalCase event objects.
8
- * This function handles events where field names have been converted to PascalCase
9
- * (e.g., Status_vod__c -> StatusVodC) but the condition still uses snake_case field names.
10
- *
11
- * @param condition - The condition string (e.g., "Status_vod__c = 'Submitted_vod'")
12
- * @param event - The event object with PascalCase properties (e.g., { StatusVodC: "Submitted_vod" })
13
- * @returns true if the event is executed/submitted, false otherwise
14
- */
15
- export declare function evaluateIsExecutedForPascalCaseEvent(condition: string | undefined, event: any): boolean;
16
- export declare function getEventColor(sfEvent: SfEvent): string;
4
+ export declare function getEventColor(pEvent: Event, sfEvent: SfEvent): string;
17
5
  export declare const minFutureDate: (date?: Date) => Date;
18
6
  export declare const minPastDate: (date?: Date) => Date;
19
7
  export declare const setDateTime: (date: number | Date) => number;
@@ -4865,7 +4865,6 @@ export default function useCanvas(): {
4865
4865
  enable_recents?: boolean | undefined;
4866
4866
  enable_favorites?: boolean | undefined;
4867
4867
  enable_sync_file_filtering?: boolean | undefined;
4868
- enable_sfdc_sync?: boolean | undefined;
4869
4868
  time_format?: string | undefined;
4870
4869
  date_format?: string | undefined;
4871
4870
  is_file_expiration_mandatory?: boolean | undefined;
@@ -4908,7 +4907,6 @@ export default function useCanvas(): {
4908
4907
  enable_multipeer_connectivity?: boolean;
4909
4908
  enable_syncbox?: boolean;
4910
4909
  enable_sync_file_filtering?: boolean;
4911
- enable_sfdc_sync?: boolean;
4912
4910
  time_format?: string;
4913
4911
  date_format?: string;
4914
4912
  is_file_expiration_mandatory?: boolean;
@@ -5197,7 +5195,6 @@ export default function useCanvas(): {
5197
5195
  enable_recents?: boolean | undefined;
5198
5196
  enable_favorites?: boolean | undefined;
5199
5197
  enable_sync_file_filtering?: boolean | undefined;
5200
- enable_sfdc_sync?: boolean | undefined;
5201
5198
  time_format?: string | undefined;
5202
5199
  date_format?: string | undefined;
5203
5200
  is_file_expiration_mandatory?: boolean | undefined;
@@ -5520,7 +5517,6 @@ export default function useCanvas(): {
5520
5517
  readonly enable_recents?: boolean | undefined;
5521
5518
  readonly enable_favorites?: boolean | undefined;
5522
5519
  readonly enable_sync_file_filtering?: boolean | undefined;
5523
- readonly enable_sfdc_sync?: boolean | undefined;
5524
5520
  readonly time_format?: string | undefined;
5525
5521
  readonly date_format?: string | undefined;
5526
5522
  readonly is_file_expiration_mandatory?: boolean | undefined;
@@ -5842,7 +5838,6 @@ export default function useCanvas(): {
5842
5838
  readonly enable_recents?: boolean | undefined;
5843
5839
  readonly enable_favorites?: boolean | undefined;
5844
5840
  readonly enable_sync_file_filtering?: boolean | undefined;
5845
- readonly enable_sfdc_sync?: boolean | undefined;
5846
5841
  readonly time_format?: string | undefined;
5847
5842
  readonly date_format?: string | undefined;
5848
5843
  readonly is_file_expiration_mandatory?: boolean | undefined;
@@ -389,7 +389,7 @@ export declare function usePopupApps(): {
389
389
  start_in_loading_mode?: boolean | undefined;
390
390
  };
391
391
  };
392
- app_type?: "canvas-popup" | "section-selector" | "sharebox" | "ui-global-popup" | undefined;
392
+ app_type?: "canvas-popup" | "section-selector" | "sharebox" | undefined;
393
393
  app_options?: {
394
394
  dimensions?: {
395
395
  width?: number | string | undefined;
@@ -834,7 +834,7 @@ export declare function usePopupApps(): {
834
834
  start_in_loading_mode?: boolean | undefined;
835
835
  };
836
836
  };
837
- app_type?: "canvas-popup" | "section-selector" | "sharebox" | "ui-global-popup" | undefined;
837
+ app_type?: "canvas-popup" | "section-selector" | "sharebox" | undefined;
838
838
  app_options?: {
839
839
  dimensions?: {
840
840
  width?: number | string | undefined;
package/lib/main.lib.d.ts CHANGED
@@ -137,7 +137,6 @@ export * as agendaSelector from './apps/agenda-selector/export';
137
137
  export { default as useTheme } from './composables/useTheme';
138
138
  export { default as useThemeVars } from './composables/useThemeVars';
139
139
  export { default as useBindValidation } from './composables/useBindValidation';
140
- export { useSmartStore } from './composables/useSmartStore';
141
140
  export { default as useFileDisplayHelpers } from './composables/useFileDisplayHelpers';
142
141
  export { default as useFolderNameDescription } from './composables/useFolderNameDescription';
143
142
  export { default as useCanvasOverlay } from './composables/useCanvasOverlay';
@@ -197,7 +196,6 @@ export * from './util/storage.util';
197
196
  export * from './util/handlebars';
198
197
  export * from './apps/collection-selector/utils/content-selector-adapter.util';
199
198
  export * from './util/soql.util.ts';
200
- export * from './util/smart-store.util';
201
199
  export * from './util/app.util';
202
200
  export * from './utils/iframeInitialize';
203
201
  export * from './sdk/main';
@@ -233,15 +233,11 @@ export declare function createHighLevelApi(options?: ApiOptions): {
233
233
  }): Promise<void>;
234
234
  query(payload: import('../payload.types').QueryPayload): Promise<any>;
235
235
  crmQuery(payload: import('../payload.types').CRMQueryPayload): Promise<any>;
236
- crmQueryAdaptive(payload: import('../payload.types').CRMQueryPayload): Promise<any>;
237
236
  crmSmartQuery(payload: import('../payload.types').CRMQueryPayload): Promise<Array<any>>;
238
237
  crmSmartObjectMetadata(payload: import('../payload.types').CRMSmartObjectMetadataPayload): Promise<any>;
239
238
  crmSmartUpsertObjects(payload: import('../payload.types').UpsertCRMObjectsPayload): Promise<any>;
240
239
  crmSmartObjectValidationRules(payload: import('../payload.types').CRMSmartObjectValidationRulesPayload): Promise<any>;
241
240
  crmSmartDeleteObjects(payload: import('../payload.types').CRMSmartDeleteObjectsPayload): Promise<any>;
242
- crmCreate(payload: import('../payload.types').CRMCreatePayload): Promise<any>;
243
- crmUpsert(payload: import('../payload.types').CRMUpsertPayload): Promise<any>;
244
- crmDescribe(payload: import('../payload.types').CRMDescribePayload): Promise<any>;
245
241
  getFolders(payload: import('../payload.types').FolderListRequest): Promise<import('../../main.lib').PaginatedFolderList>;
246
242
  getFolder(payload?: {
247
243
  id: import('../../main.lib').FolderRetrieve["id"];
@@ -1,22 +1,6 @@
1
- import { QueryPayload, CRMQueryPayload, UpsertCRMObjectsPayload, CRMSmartObjectValidationRulesPayload, CRMSmartObjectMetadataPayload, CRMSmartDeleteObjectsPayload, CRMCreatePayload, CRMUpsertPayload, CRMDescribePayload } 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
- /**
5
- * Executes a CRM query with automatic iOS/SmartStore adaptation.
6
- *
7
- * On iOS devices with the 'enable_sfdc_sync' instance setting enabled,
8
- * this function automatically converts SOQL queries to SmartStore Smart SQL format
9
- * and uses the local SmartStore for offline data access.
10
- * On other platforms or when the setting is disabled, it uses the standard CRM query API.
11
- *
12
- * @param {CRMQueryPayload} payload - The query payload containing the SOQL query string.
13
- * @returns {Promise<any>} - Promise resolving with query results.
14
- *
15
- * @example
16
- * // Works on all platforms - automatically adapts for iOS with enable_sfdc_sync instance setting
17
- * const result = await crmQueryAdaptive({ query: 'SELECT Id, Name FROM Account WHERE Active = true' })
18
- */
19
- export declare function crmQueryAdaptive(payload: CRMQueryPayload): Promise<any>;
20
4
  /**
21
5
  * Executes a SmartStore query against local CRM data (iOS only).
22
6
  * Uses Salesforce Mobile SDK SmartStore query syntax.
@@ -129,63 +113,3 @@ export declare function crmSmartObjectValidationRules(payload: CRMSmartObjectVal
129
113
  * })
130
114
  */
131
115
  export declare function crmSmartDeleteObjects(payload: CRMSmartDeleteObjectsPayload): Promise<any>;
132
- /**
133
- * Creates new records in CRM (Web only).
134
- * Uses Salesforce REST API to create records.
135
- *
136
- * @param {CRMCreatePayload} payload - The create payload containing sobject type and records.
137
- * @returns {Promise<any>} - Promise resolving with the result of the create operation.
138
- * @throws {Error} - Throws an error if the payload is invalid.
139
- *
140
- * @example
141
- * // Web only method to create CRM records.
142
- * api.crmCreate({
143
- * sobject: 'Order__c',
144
- * records: [
145
- * { Account__c: '001xx000003DGbQAAW', Order_Date__c: '2024-01-15' },
146
- * { Account__c: '001xx000003DGbRABW', Order_Date__c: '2024-01-16' }
147
- * ]
148
- * })
149
- */
150
- export declare function crmCreate(payload: CRMCreatePayload): Promise<any>;
151
- /**
152
- * Upserts records in CRM (Web only).
153
- * Uses Salesforce REST API to insert or update records based on external ID.
154
- * If a record with matching external ID exists, it will be updated; otherwise, a new record is created.
155
- *
156
- * @param {CRMUpsertPayload} payload - The upsert payload containing sobject type, records, and external ID field.
157
- * @returns {Promise<any>} - Promise resolving with the result of the upsert operation.
158
- * @throws {Error} - Throws an error if the payload is invalid.
159
- *
160
- * @example
161
- * // Web only method to upsert CRM records.
162
- * api.crmUpsert({
163
- * sobject: 'Order__c',
164
- * records: [
165
- * { External_Id__c: 'ORD-001', Account__c: '001xx000003DGbQAAW', Status__c: 'Submitted' },
166
- * { External_Id__c: 'ORD-002', Account__c: '001xx000003DGbRABW', Status__c: 'Draft' }
167
- * ],
168
- * external_id_field: 'External_Id__c'
169
- * })
170
- */
171
- export declare function crmUpsert(payload: CRMUpsertPayload): Promise<any>;
172
- /**
173
- * Retrieves metadata/describe for a CRM object (Web only).
174
- * Uses Salesforce REST API to fetch object metadata including fields and picklist values.
175
- *
176
- * @param {CRMDescribePayload} payload - The describe payload containing the sobject name.
177
- * @returns {Promise<any>} - Promise resolving with the object metadata including fields and picklist values.
178
- * @throws {Error} - Throws an error if the payload is invalid.
179
- *
180
- * @example
181
- * // Web only method to get CRM object metadata.
182
- * api.crmDescribe({ sobject: 'Account' })
183
- * .then(metadata => {
184
- * // Access fields
185
- * console.log(metadata.fields)
186
- * // Access picklist values for a specific field
187
- * const industryField = metadata.fields.find(f => f.name === 'Industry')
188
- * console.log(industryField.picklistValues)
189
- * })
190
- */
191
- export declare function crmDescribe(payload: CRMDescribePayload): Promise<any>;
@@ -1,4 +1,4 @@
1
- import { UiSelectAgendaRequest, UiSelectAgendaResponse, UiSelectCollectionPlayerRequest, UiSelectCollectionPlayerResponse, UiSelectContentRequest, UiSelectContentResponse, UiOpenRequest, UiToastRequest, UiPreselectSfdcMeetingIdRequest, UiPreselectSfdcMeetingIdResponse, UiOpenGlobalPopupResponse } from './types.ui';
1
+ import { UiSelectAgendaRequest, UiSelectAgendaResponse, UiSelectCollectionPlayerRequest, UiSelectCollectionPlayerResponse, UiSelectContentRequest, UiSelectContentResponse, UiOpenRequest, UiToastRequest, UiPreselectSfdcMeetingIdRequest, UiPreselectSfdcMeetingIdResponse } from './types.ui';
2
2
  /**
3
3
  * @hidden
4
4
  * @deprecated
@@ -84,24 +84,3 @@ export declare function selectCollectionContent(payload?: UiSelectCollectionPlay
84
84
  * ```
85
85
  */
86
86
  export declare function selectAgendaContent(payload?: UiSelectAgendaRequest): Promise<UiSelectAgendaResponse>;
87
- /**
88
- * Opens a global popup app by name.
89
- *
90
- * @example
91
- * const api = useApi()
92
- * api.openGlobalPopup('my-popup-app')
93
- * api.openGlobalPopup('my-popup-app', { customData: 'value' })
94
- *
95
- * @param appName - The name of the app to open (must have app_type: 'ui-global-popup')
96
- * @param extraContext - Extra context to pass to the app
97
- * @returns Promise with the result of the operation
98
- */
99
- export declare function openGlobalPopup(appName: string, extraContext?: Record<string, any>): Promise<UiOpenGlobalPopupResponse>;
100
- /**
101
- * Closes the currently open global popup app.
102
- *
103
- * @example
104
- * const api = useApi()
105
- * api.closeGlobalPopup()
106
- */
107
- export declare function closeGlobalPopup(): Promise<void>;
@@ -155,8 +155,6 @@ declare const _default: {
155
155
  preselectSfdcMeetingId(payload: import('./types.ui').UiPreselectSfdcMeetingIdRequest): Promise<import('./types.ui').UiPreselectSfdcMeetingIdResponse>;
156
156
  selectCollectionContent(payload?: import('./types.ui').UiSelectCollectionPlayerRequest): Promise<import('./types.ui').UiSelectCollectionPlayerResponse>;
157
157
  selectAgendaContent(payload?: import('./types.ui').UiSelectAgendaRequest): Promise<import('./types.ui').UiSelectAgendaResponse>;
158
- openGlobalPopup(appName: string, extraContext?: Record<string, any>): Promise<import('./types.ui').UiOpenGlobalPopupResponse>;
159
- closeGlobalPopup(): Promise<void>;
160
158
  on: typeof on;
161
159
  onMeetingCanceled: typeof onMeetingCanceled;
162
160
  onCanvasUpdated: typeof onCanvasUpdated;
@@ -43,8 +43,6 @@ export declare const UI_API_METHOD_TYPES: {
43
43
  readonly UI_APP_RESIZE: "ui_app_resize";
44
44
  readonly UI_CLOSE_CANVAS_SECTION_EXECUTION: "ui_close_canvas_section_execution";
45
45
  readonly UI_CLOSE_CANVAS_DRAWER: "ui_close_canvas_drawer";
46
- readonly UI_OPEN_GLOBAL_POPUP: "ui_open_global_popup";
47
- readonly UI_CLOSE_GLOBAL_POPUP: "ui_close_global_popup";
48
46
  };
49
47
  export declare const UI_MESSAGE_TYPES: {
50
48
  readonly UI_MEETING_CANCELED: "ui_meeting_canceled";
@@ -321,13 +319,3 @@ export type UiPromptPiaResponseStreamedPayload = {
321
319
  /** Current chunk of the response */
322
320
  chunk: string;
323
321
  };
324
- export interface UiOpenGlobalPopupRequest {
325
- /** Name of the app to open */
326
- app_name: string;
327
- /** Extra context to pass to the app */
328
- extra_context?: Record<string, any>;
329
- }
330
- export interface UiOpenGlobalPopupResponse {
331
- /** Whether the popup was successfully opened */
332
- success: boolean;
333
- }
package/lib/sdk/main.d.ts CHANGED
@@ -67,8 +67,6 @@ export declare function useUi(): {
67
67
  preselectSfdcMeetingId(payload: import('./api/modules/ui/types.ui').UiPreselectSfdcMeetingIdRequest): Promise<import('./api/modules/ui/types.ui').UiPreselectSfdcMeetingIdResponse>;
68
68
  selectCollectionContent(payload?: import('./api/modules/ui/types.ui').UiSelectCollectionPlayerRequest): Promise<import('./api/modules/ui/types.ui').UiSelectCollectionPlayerResponse>;
69
69
  selectAgendaContent(payload?: import('./api/modules/ui/types.ui').UiSelectAgendaRequest): Promise<import('./api/modules/ui/types.ui').UiSelectAgendaResponse>;
70
- openGlobalPopup(appName: string, extraContext?: Record<string, any>): Promise<import('./api/modules/ui/types.ui').UiOpenGlobalPopupResponse>;
71
- closeGlobalPopup(): Promise<void>;
72
70
  on: <T extends keyof import('./api/modules/ui/types.ui').UiMessagePayloads>(type: T, handler: (data: import('./api/modules/ui/types.ui').UiMessagePayloads[T]) => Promise<void>) => Promise<() => void>;
73
71
  onMeetingCanceled: (handler: (data: import('./api/modules/ui/types.ui').UiMeetingCanceledPayload) => Promise<void>) => Promise<() => void>;
74
72
  onCanvasUpdated: (handler: (data: import('./api/modules/ui/types.ui').UiCanvasUpdatedPayload) => Promise<void>) => Promise<() => void>;
@@ -304,15 +302,11 @@ export declare function useApi(options?: ApiOptions): {
304
302
  }): Promise<void>;
305
303
  query(payload: import('./payload.types').QueryPayload): Promise<any>;
306
304
  crmQuery(payload: import('./payload.types').CRMQueryPayload): Promise<any>;
307
- crmQueryAdaptive(payload: import('./payload.types').CRMQueryPayload): Promise<any>;
308
305
  crmSmartQuery(payload: import('./payload.types').CRMQueryPayload): Promise<Array<any>>;
309
306
  crmSmartObjectMetadata(payload: import('./payload.types').CRMSmartObjectMetadataPayload): Promise<any>;
310
307
  crmSmartUpsertObjects(payload: import('./payload.types').UpsertCRMObjectsPayload): Promise<any>;
311
308
  crmSmartObjectValidationRules(payload: import('./payload.types').CRMSmartObjectValidationRulesPayload): Promise<any>;
312
309
  crmSmartDeleteObjects(payload: import('./payload.types').CRMSmartDeleteObjectsPayload): Promise<any>;
313
- crmCreate(payload: import('./payload.types').CRMCreatePayload): Promise<any>;
314
- crmUpsert(payload: import('./payload.types').CRMUpsertPayload): Promise<any>;
315
- crmDescribe(payload: import('./payload.types').CRMDescribePayload): Promise<any>;
316
310
  getFolders(payload: import('./payload.types').FolderListRequest): Promise<import('../main.lib').PaginatedFolderList>;
317
311
  getFolder(payload?: {
318
312
  id: import('../main.lib').FolderRetrieve["id"];
@@ -458,8 +452,6 @@ export declare function useApi(options?: ApiOptions): {
458
452
  preselectSfdcMeetingId(payload: import('./api/modules/ui/types.ui').UiPreselectSfdcMeetingIdRequest): Promise<import('./api/modules/ui/types.ui').UiPreselectSfdcMeetingIdResponse>;
459
453
  selectCollectionContent(payload?: import('./api/modules/ui/types.ui').UiSelectCollectionPlayerRequest): Promise<import('./api/modules/ui/types.ui').UiSelectCollectionPlayerResponse>;
460
454
  selectAgendaContent(payload?: import('./api/modules/ui/types.ui').UiSelectAgendaRequest): Promise<import('./api/modules/ui/types.ui').UiSelectAgendaResponse>;
461
- openGlobalPopup(appName: string, extraContext?: Record<string, any>): Promise<import('./api/modules/ui/types.ui').UiOpenGlobalPopupResponse>;
462
- closeGlobalPopup(): Promise<void>;
463
455
  on: <T extends keyof import('./api/modules/ui/types.ui').UiMessagePayloads>(type: T, handler: (data: import('./api/modules/ui/types.ui').UiMessagePayloads[T]) => Promise<void>) => Promise<() => void>;
464
456
  onMeetingCanceled: (handler: (data: import('./api/modules/ui/types.ui').UiMeetingCanceledPayload) => Promise<void>) => Promise<() => void>;
465
457
  onCanvasUpdated: (handler: (data: import('./api/modules/ui/types.ui').UiCanvasUpdatedPayload) => Promise<void>) => Promise<() => void>;
@@ -591,15 +583,11 @@ export declare function useApi(options?: ApiOptions): {
591
583
  }): Promise<void>;
592
584
  query(payload: import('./payload.types').QueryPayload): Promise<any>;
593
585
  crmQuery(payload: import('./payload.types').CRMQueryPayload): Promise<any>;
594
- crmQueryAdaptive(payload: import('./payload.types').CRMQueryPayload): Promise<any>;
595
586
  crmSmartQuery(payload: import('./payload.types').CRMQueryPayload): Promise<Array<any>>;
596
587
  crmSmartObjectMetadata(payload: import('./payload.types').CRMSmartObjectMetadataPayload): Promise<any>;
597
588
  crmSmartUpsertObjects(payload: import('./payload.types').UpsertCRMObjectsPayload): Promise<any>;
598
589
  crmSmartObjectValidationRules(payload: import('./payload.types').CRMSmartObjectValidationRulesPayload): Promise<any>;
599
590
  crmSmartDeleteObjects(payload: import('./payload.types').CRMSmartDeleteObjectsPayload): Promise<any>;
600
- crmCreate(payload: import('./payload.types').CRMCreatePayload): Promise<any>;
601
- crmUpsert(payload: import('./payload.types').CRMUpsertPayload): Promise<any>;
602
- crmDescribe(payload: import('./payload.types').CRMDescribePayload): Promise<any>;
603
591
  getFolders(payload: import('./payload.types').FolderListRequest): Promise<import('../main.lib').PaginatedFolderList>;
604
592
  getFolder(payload?: {
605
593
  id: import('../main.lib').FolderRetrieve["id"];
@@ -694,8 +682,6 @@ export declare function useApi(options?: ApiOptions): {
694
682
  preselectSfdcMeetingId(payload: import('./api/modules/ui/types.ui').UiPreselectSfdcMeetingIdRequest): Promise<import('./api/modules/ui/types.ui').UiPreselectSfdcMeetingIdResponse>;
695
683
  selectCollectionContent(payload?: import('./api/modules/ui/types.ui').UiSelectCollectionPlayerRequest): Promise<import('./api/modules/ui/types.ui').UiSelectCollectionPlayerResponse>;
696
684
  selectAgendaContent(payload?: import('./api/modules/ui/types.ui').UiSelectAgendaRequest): Promise<import('./api/modules/ui/types.ui').UiSelectAgendaResponse>;
697
- openGlobalPopup(appName: string, extraContext?: Record<string, any>): Promise<import('./api/modules/ui/types.ui').UiOpenGlobalPopupResponse>;
698
- closeGlobalPopup(): Promise<void>;
699
685
  on: <T extends keyof import('./api/modules/ui/types.ui').UiMessagePayloads>(type: T, handler: (data: import('./api/modules/ui/types.ui').UiMessagePayloads[T]) => Promise<void>) => Promise<() => void>;
700
686
  onMeetingCanceled: (handler: (data: import('./api/modules/ui/types.ui').UiMeetingCanceledPayload) => Promise<void>) => Promise<() => void>;
701
687
  onCanvasUpdated: (handler: (data: import('./api/modules/ui/types.ui').UiCanvasUpdatedPayload) => Promise<void>) => Promise<() => void>;
@@ -814,15 +800,11 @@ export declare function useApi(options?: ApiOptions): {
814
800
  }): Promise<ArrayBuffer>;
815
801
  query(payload: import('./payload.types').QueryPayload): Promise<any>;
816
802
  crmQuery(payload: import('./payload.types').CRMQueryPayload): Promise<any>;
817
- crmQueryAdaptive(payload: import('./payload.types').CRMQueryPayload): Promise<any>;
818
803
  crmSmartQuery(payload: import('./payload.types').CRMQueryPayload): Promise<Array<any>>;
819
804
  crmSmartObjectMetadata(payload: import('./payload.types').CRMSmartObjectMetadataPayload): Promise<any>;
820
805
  crmSmartUpsertObjects(payload: import('./payload.types').UpsertCRMObjectsPayload): Promise<any>;
821
806
  crmSmartObjectValidationRules(payload: import('./payload.types').CRMSmartObjectValidationRulesPayload): Promise<any>;
822
807
  crmSmartDeleteObjects(payload: import('./payload.types').CRMSmartDeleteObjectsPayload): Promise<any>;
823
- crmCreate(payload: import('./payload.types').CRMCreatePayload): Promise<any>;
824
- crmUpsert(payload: import('./payload.types').CRMUpsertPayload): Promise<any>;
825
- crmDescribe(payload: import('./payload.types').CRMDescribePayload): Promise<any>;
826
808
  getFolders(payload: import('./payload.types').FolderListRequest): Promise<import('../main.lib').PaginatedFolderList>;
827
809
  getFolder(payload?: {
828
810
  id: import('../main.lib').FolderRetrieve["id"];
@@ -361,60 +361,3 @@ export interface CRMSmartDeleteObjectsPayload {
361
361
  */
362
362
  objects: CRMDeleteObject[];
363
363
  }
364
- /**
365
- * Payload for creating CRM records (Web only).
366
- * Uses Salesforce REST API to create records.
367
- */
368
- export interface CRMCreatePayload {
369
- /**
370
- * The Salesforce object type (e.g., 'Account', 'Contact', 'Order__c').
371
- */
372
- sobject: string;
373
- /**
374
- * Array of records to create. Each record is a key-value map of field names to values.
375
- * Field names should use Salesforce API names (e.g., 'Account__c', 'Order_Date__c').
376
- */
377
- records: Array<Record<string, unknown>>;
378
- /**
379
- * Optional name of the CRM service to use.
380
- */
381
- service?: CRMServiceType;
382
- }
383
- /**
384
- * Payload for upserting CRM records (Web only).
385
- * Uses Salesforce REST API to insert or update records based on external ID.
386
- */
387
- export interface CRMUpsertPayload {
388
- /**
389
- * The Salesforce object type (e.g., 'Account', 'Contact', 'Order__c').
390
- */
391
- sobject: string;
392
- /**
393
- * Array of records to upsert. Each record is a key-value map of field names to values.
394
- * Field names should use Salesforce API names (e.g., 'Account__c', 'Order_Date__c').
395
- */
396
- records: Array<Record<string, unknown>>;
397
- /**
398
- * The external ID field used to match existing records for update.
399
- * If a record with matching external ID exists, it will be updated; otherwise, a new record is created.
400
- */
401
- external_id_field: string;
402
- /**
403
- * Optional name of the CRM service to use.
404
- */
405
- service?: CRMServiceType;
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
- }
@@ -89,7 +89,7 @@ export type AppJson = {
89
89
  description?: string;
90
90
  authors?: string[];
91
91
  module: Record<EmbedLocation, Module>;
92
- app_type?: 'canvas-popup' | 'section-selector' | 'sharebox' | 'ui-global-popup';
92
+ app_type?: 'canvas-popup' | 'section-selector' | 'sharebox';
93
93
  app_options?: AppTypeJsonOptions;
94
94
  order_override?: number;
95
95
  has_multiple_routes?: boolean;
@@ -60,7 +60,6 @@ export type InstanceSettings = OrganizationSettings & {
60
60
  enable_multipeer_connectivity?: boolean;
61
61
  enable_syncbox?: boolean;
62
62
  enable_sync_file_filtering?: boolean;
63
- enable_sfdc_sync?: boolean;
64
63
  time_format?: string;
65
64
  date_format?: string;
66
65
  is_file_expiration_mandatory?: boolean;
@@ -59,7 +59,6 @@ export type SfEvent = {
59
59
  Type?: string;
60
60
  EventWhoIds?: string[];
61
61
  IsAllDayEvent?: boolean;
62
- is_executed_condition?: string;
63
62
  };
64
63
  export type SfEventExtended = SfEvent & {
65
64
  contactName?: string;
@@ -107,10 +106,6 @@ export interface SfContactBasic {
107
106
  type: string;
108
107
  url: string;
109
108
  };
110
- callId?: string;
111
- PersonAccountId?: string;
112
- AccountName?: string;
113
- Account?: any;
114
109
  }
115
110
  export type EventsSfList = {
116
111
  done?: boolean;
package/locale/de.json CHANGED
@@ -414,7 +414,6 @@
414
414
  "canvasFilters": {
415
415
  "blocks": null,
416
416
  "products": null,
417
- "productTemplates": null,
418
417
  "saved": null,
419
418
  "templates": null
420
419
  },
package/locale/el.json CHANGED
@@ -414,7 +414,6 @@
414
414
  "canvasFilters": {
415
415
  "blocks": "Μπλοκ",
416
416
  "products": "Προϊόντα",
417
- "productTemplates": "Πρότυπα προϊόντων",
418
417
  "saved": "Αποθηκευμένα",
419
418
  "templates": "Πρότυπα"
420
419
  },
package/locale/en.json CHANGED
@@ -414,7 +414,6 @@
414
414
  "canvasFilters": {
415
415
  "blocks": "Blocks",
416
416
  "products": "Products",
417
- "productTemplates": "Product Templates",
418
417
  "saved": "Saved",
419
418
  "templates": "Templates"
420
419
  },
package/locale/es.json CHANGED
@@ -414,7 +414,6 @@
414
414
  "canvasFilters": {
415
415
  "blocks": "Bloques",
416
416
  "products": "Productos",
417
- "productTemplates": "Plantillas de productos",
418
417
  "saved": "Guardados",
419
418
  "templates": "Plantillas"
420
419
  },
package/locale/fr.json CHANGED
@@ -414,7 +414,6 @@
414
414
  "canvasFilters": {
415
415
  "blocks": "Blocs",
416
416
  "products": "Produits",
417
- "productTemplates": "Modèles de produits",
418
417
  "saved": "Sauvegardés",
419
418
  "templates": "Modèles"
420
419
  },
package/locale/it.json CHANGED
@@ -414,7 +414,6 @@
414
414
  "canvasFilters": {
415
415
  "blocks": "Blocchi",
416
416
  "products": "Prodotti",
417
- "productTemplates": "Modelli di prodotti",
418
417
  "saved": "Salvati",
419
418
  "templates": "Modelli"
420
419
  },
package/locale/ja.json CHANGED
@@ -414,7 +414,6 @@
414
414
  "canvasFilters": {
415
415
  "blocks": "ブロック",
416
416
  "products": "プロダクト",
417
- "productTemplates": "プロダクトテンプレート",
418
417
  "saved": "保存済み",
419
418
  "templates": "テンプレート"
420
419
  },
package/locale/nl.json CHANGED
@@ -414,7 +414,6 @@
414
414
  "canvasFilters": {
415
415
  "blocks": "Blocks",
416
416
  "products": "Products",
417
- "productTemplates": "Product Templates",
418
417
  "saved": "Saved",
419
418
  "templates": "Templates"
420
419
  },
package/locale/pl.json CHANGED
@@ -414,7 +414,6 @@
414
414
  "canvasFilters": {
415
415
  "blocks": null,
416
416
  "products": null,
417
- "productTemplates": null,
418
417
  "saved": null,
419
418
  "templates": null
420
419
  },
package/locale/pt-br.json CHANGED
@@ -414,7 +414,6 @@
414
414
  "canvasFilters": {
415
415
  "blocks": "Bloco",
416
416
  "products": "Produtos",
417
- "productTemplates": "Modelos de produtos",
418
417
  "saved": "Saved",
419
418
  "templates": "Modelos"
420
419
  },
package/locale/pt.json CHANGED
@@ -414,7 +414,6 @@
414
414
  "canvasFilters": {
415
415
  "blocks": "Blocks",
416
416
  "products": "Products",
417
- "productTemplates": "Product Templates",
418
417
  "saved": "Saved",
419
418
  "templates": "Templates"
420
419
  },
package/locale/th.json CHANGED
@@ -414,7 +414,6 @@
414
414
  "canvasFilters": {
415
415
  "blocks": "บล็อก",
416
416
  "products": "ผลิตภัณฑ์",
417
- "productTemplates": "ส่วนประกอบผลิตภัณฑ์",
418
417
  "saved": "บันทึกแล้ว",
419
418
  "templates": "เทมเพลต"
420
419
  },
package/locale/tr.json CHANGED
@@ -414,7 +414,6 @@
414
414
  "canvasFilters": {
415
415
  "blocks": null,
416
416
  "products": null,
417
- "productTemplates": null,
418
417
  "saved": null,
419
418
  "templates": null
420
419
  },
package/locale/zh.json CHANGED
@@ -414,7 +414,6 @@
414
414
  "canvasFilters": {
415
415
  "blocks": "模块",
416
416
  "products": "产品",
417
- "productTemplates": "产品模板",
418
417
  "saved": "已保存",
419
418
  "templates": "模板"
420
419
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pitcher/canvas-ui",
3
- "version": "2026.1.6-143102-beta",
3
+ "version": "2026.1.7-082401-beta",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -1,25 +0,0 @@
1
- import { Ref } from 'vue';
2
- import { PitcherEnv } from '../sdk/interfaces';
3
- /**
4
- * Composable for SmartStore availability checks
5
- *
6
- * SmartStore is Salesforce Mobile SDK's local database for offline data access on iOS.
7
- * It requires both iOS mode and the enable_sfdc_sync instance setting to be enabled.
8
- *
9
- * @param env - Optional reactive environment object from app store (avoids redundant API calls)
10
- *
11
- * @example
12
- * // With app store env (recommended - avoids API calls)
13
- * const appStore = useAppStore()
14
- * const { shouldUseSmartStore } = useSmartStore(appStore.env)
15
- * const enabled = shouldUseSmartStore.value
16
- *
17
- * @example
18
- * // Without env (for canvas-ui internal usage)
19
- * const { generateTempSalesforceId } = useSmartStore()
20
- * const tempId = generateTempSalesforceId('00U')
21
- */
22
- export declare function useSmartStore(env?: Ref<PitcherEnv | null> | PitcherEnv | null): {
23
- shouldUseSmartStore: import('vue').ComputedRef<boolean>;
24
- generateTempSalesforceId: (objectPrefix: string) => string;
25
- };