@pitcher/js-api 1.26.0-beta.7 → 1.26.0-beta.9
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/impact-js-api.spec.json +12 -0
- package/js-api.esm.js +96 -1
- package/js-api.esm.js.map +1 -1
- package/js-api.umd.min.js +9 -9
- package/js-api.umd.min.js.map +1 -1
- package/lib/apps/agenda-selector/components/modals/ApplicationBlockSelectorModal.vue.d.ts +148 -36
- package/lib/apps/browser/components/UploadFilesModal/UploadFilesModal.vue.d.ts +2 -2
- package/lib/apps/browser/stores/api.d.ts +6 -0
- package/lib/apps/canvas-builder/components/container/AddComponentModal/AddComponentModal.vue.d.ts +148 -36
- package/lib/apps/canvas-builder/components/container/CanvasContent/CanvasContent.vue.d.ts +2 -2
- package/lib/apps/canvas-builder/components/container/Navigator/Navigator.vue.d.ts +162 -37
- package/lib/apps/canvas-builder/components/ui/Carousel/Carousel.settings.vue.d.ts +2 -2
- package/lib/apps/canvas-builder/components/ui/ContentGrid/ContentGridCarousel.vue.d.ts +20 -20
- package/lib/apps/canvas-builder/components/ui/Embeddable/Embeddable.settings.vue.d.ts +4 -4
- package/lib/apps/canvas-builder/components/ui/IFrame/IFrame.settings.vue.d.ts +2 -2
- package/lib/apps/canvas-builder/components/ui/Link/Link.settings.vue.d.ts +2 -2
- package/lib/apps/canvas-builder/components/ui/Multimedia/Multimedia.settings.vue.d.ts +2 -2
- package/lib/apps/canvas-builder/components/ui/Page/Page.settings.vue.d.ts +2 -2
- package/lib/apps/canvas-builder/components/ui/Root/Root.settings.vue.d.ts +2 -2
- package/lib/apps/canvas-builder/components/ui/SectionList/SectionSelectorToolbar.vue.d.ts +12 -0
- package/lib/apps/canvas-builder/composables/useCanvas.d.ts +24 -2
- package/lib/apps/canvas-builder/composables/useCanvasBlocks.d.ts +4 -2
- package/lib/apps/canvas-builder/composables/useCanvasHistory.d.ts +2 -0
- package/lib/apps/canvas-builder/composables/useCanvasTheme.d.ts +18 -18
- package/lib/apps/canvas-builder/composables/usePopupApps.d.ts +2 -0
- package/lib/apps/canvas-builder/types/canvas.d.ts +1 -0
- package/lib/apps/canvas-selector/stores/app.d.ts +14 -14
- package/lib/apps/content-selector/components/Assets.vue.d.ts +2 -2
- package/lib/apps/content-selector/components/Content.vue.d.ts +2 -2
- package/lib/components/CCarousel/CCarousel.vue.d.ts +98 -20
- package/lib/components/CConfigEditor/CConfigEditor.vue.d.ts +2 -2
- package/lib/components/CContactSelector/CContactSelectorAccountsWithContacts.vue.d.ts +3 -3
- package/lib/components/CCreateTemplateSectionBlockModal/CCreateTemplateSectionBlockModal.vue.d.ts +2 -2
- package/lib/components/CCreateThemeModal/steps/CThemeSettingsStep.vue.d.ts +10 -8
- package/lib/components/CDataTable/CDataTable.vue.d.ts +876 -100
- package/lib/components/CFileViewer/pdf/CFileViewerPageDrawer.pdf.vue.d.ts +2 -2
- package/lib/components/CImage/CImage.vue.d.ts +99 -20
- package/lib/components/CInput/CInput.vue.d.ts +148 -36
- package/lib/components/CRichTextEditor/components/CDynamicValueTreeSelect.vue.d.ts +288 -80
- package/lib/components/CRichTextEditor/components/CFormatterWithFieldSelect.vue.d.ts +468 -130
- package/lib/components/CRichTextEditor/components/CHandlebarsHelperTreeSelect.vue.d.ts +288 -80
- package/lib/components/CRichTextEditor/components/CHyperLinkToolbar.vue.d.ts +148 -36
- package/lib/components/CTableInput/CTableInput.vue.d.ts +296 -72
- package/lib/components/CTableTag/CTableTag.vue.d.ts +290 -38
- package/lib/components/CTags/CTags.vue.d.ts +290 -38
- package/lib/components/CUpsertFolderModal/CUpsertFolderModal.vue.d.ts +2 -2
- package/lib/components/CUserMenu/CUserMenu.vue.d.ts +108 -30
- package/lib/components/canvas-templates/CTemplateManagement.vue.d.ts +2 -0
- package/lib/components/savedCanvases/CSavedCanvasesManagementOwnerCell.vue.d.ts +176 -46
- package/lib/components/savedCanvases/smartFolders/SmartFolders.use.d.ts +4 -4
- package/lib/constants/cdp.const.d.ts +3 -0
- package/lib/sdk/api/HighLevelApi.d.ts +4 -0
- package/lib/sdk/api/modules/query.d.ts +100 -2
- package/lib/sdk/main.d.ts +12 -0
- package/lib/sdk/payload.types.d.ts +73 -0
- package/lib/sdk/peer-connectivity/peerConnectivity.constants.d.ts +1 -0
- package/lib/theme/light.d.ts +113 -8
- package/lib/types/app.d.ts +7 -0
- package/lib/types/canvases.d.ts +1 -0
- package/lib/types/launchDarkly.types.d.ts +1 -1
- package/lib/types/organizationSettings.types.d.ts +3 -0
- package/package.json +1 -1
- package/types/openapi/models/Account.d.ts +1 -1
- package/types/openapi/models/AccountRequest.d.ts +1 -1
- package/types/openapi/models/DeletedFolder.d.ts +1 -0
- package/types/openapi/models/Folder.d.ts +1 -0
- package/types/openapi/models/FolderCreate.d.ts +3 -0
- package/types/openapi/models/FolderFile.d.ts +2 -0
- package/types/openapi/models/FolderRetrieve.d.ts +4 -0
- package/types/openapi/models/FolderUpdate.d.ts +3 -0
- package/types/openapi/models/InstanceMembershipUser.d.ts +1 -0
- package/types/openapi/models/OfflineSyncFolder.d.ts +1 -0
- package/types/openapi/models/User.d.ts +4 -1
package/impact-js-api.spec.json
CHANGED
|
@@ -181,6 +181,18 @@
|
|
|
181
181
|
"crm_smart_query": {
|
|
182
182
|
"description": "Execute a SmartStore query against local CRM data. iOS only."
|
|
183
183
|
},
|
|
184
|
+
"crm_smart_upsert_objects": {
|
|
185
|
+
"description": "Upsert CRM objects into local CRM data using SmartStore. iOS only."
|
|
186
|
+
},
|
|
187
|
+
"crm_smart_object_validation_rules": {
|
|
188
|
+
"description": "Retrieve validation rules for a CRM smart object. iOS only."
|
|
189
|
+
},
|
|
190
|
+
"crm_smart_object_metadata": {
|
|
191
|
+
"description": "Retrieve metadata for a CRM smart object. iOS only."
|
|
192
|
+
},
|
|
193
|
+
"crm_smart_delete_objects": {
|
|
194
|
+
"description": "Delete CRM objects from local CRM data using SmartStore. iOS only."
|
|
195
|
+
},
|
|
184
196
|
"search": {
|
|
185
197
|
"description": ""
|
|
186
198
|
},
|
package/js-api.esm.js
CHANGED
|
@@ -2552,6 +2552,95 @@ function crmSmartQuery(payload) {
|
|
|
2552
2552
|
}
|
|
2553
2553
|
return highLevelApi.API.request("crm_smart_query", payload);
|
|
2554
2554
|
}
|
|
2555
|
+
function crmSmartObjectMetadata(payload) {
|
|
2556
|
+
if (!payload) {
|
|
2557
|
+
return Promise.reject(new Error("Payload is required"));
|
|
2558
|
+
}
|
|
2559
|
+
const objectName = payload.object;
|
|
2560
|
+
if (!objectName || typeof objectName !== "string" || objectName.trim() === "") {
|
|
2561
|
+
return Promise.reject(new Error("Object name is required and must be a non-empty string"));
|
|
2562
|
+
}
|
|
2563
|
+
return highLevelApi.API.request("crm_smart_object_metadata", payload);
|
|
2564
|
+
}
|
|
2565
|
+
function crmSmartUpsertObjects(payload) {
|
|
2566
|
+
if (!payload || !payload.objects || !Array.isArray(payload.objects)) {
|
|
2567
|
+
return Promise.reject(new Error("Payload must contain an array of objects"));
|
|
2568
|
+
}
|
|
2569
|
+
if (payload.objects.length === 0) {
|
|
2570
|
+
return Promise.reject(new Error("Objects array cannot be empty"));
|
|
2571
|
+
}
|
|
2572
|
+
for (const obj of payload.objects) {
|
|
2573
|
+
if (!obj) {
|
|
2574
|
+
return Promise.reject(new Error("Objects array cannot contain null or undefined elements"));
|
|
2575
|
+
}
|
|
2576
|
+
if (!obj.table_name || typeof obj.table_name !== "string" || obj.table_name.trim() === "") {
|
|
2577
|
+
return Promise.reject(new Error("Each object must have a valid non-empty table_name"));
|
|
2578
|
+
}
|
|
2579
|
+
if (obj.external_id_path !== void 0) {
|
|
2580
|
+
if (typeof obj.external_id_path !== "string" || obj.external_id_path.trim() === "") {
|
|
2581
|
+
return Promise.reject(
|
|
2582
|
+
new Error(
|
|
2583
|
+
`Object for table ${obj.table_name} has invalid external_id_path. It must be a non-empty string or undefined.`
|
|
2584
|
+
)
|
|
2585
|
+
);
|
|
2586
|
+
}
|
|
2587
|
+
}
|
|
2588
|
+
if (!obj.objects || !Array.isArray(obj.objects) || obj.objects.length === 0) {
|
|
2589
|
+
return Promise.reject(new Error(`Object for table ${obj.table_name} must have a non-empty objects array`));
|
|
2590
|
+
}
|
|
2591
|
+
for (let i = 0; i < obj.objects.length; i++) {
|
|
2592
|
+
const record = obj.objects[i];
|
|
2593
|
+
if (!record || typeof record !== "object" || Array.isArray(record)) {
|
|
2594
|
+
return Promise.reject(
|
|
2595
|
+
new Error(
|
|
2596
|
+
`Object for table ${obj.table_name} contains invalid element at index ${i}. All records must be valid objects, not null, undefined, or arrays.`
|
|
2597
|
+
)
|
|
2598
|
+
);
|
|
2599
|
+
}
|
|
2600
|
+
}
|
|
2601
|
+
}
|
|
2602
|
+
return highLevelApi.API.request("crm_smart_upsert_objects", payload);
|
|
2603
|
+
}
|
|
2604
|
+
function crmSmartObjectValidationRules(payload) {
|
|
2605
|
+
if (!payload) {
|
|
2606
|
+
return Promise.reject(new Error("Payload is required"));
|
|
2607
|
+
}
|
|
2608
|
+
const objectName = payload.object;
|
|
2609
|
+
if (!objectName || typeof objectName !== "string" || objectName.trim() === "") {
|
|
2610
|
+
return Promise.reject(new Error("Object name is required and must be a non-empty string"));
|
|
2611
|
+
}
|
|
2612
|
+
return highLevelApi.API.request("crm_smart_object_validation_rules", payload);
|
|
2613
|
+
}
|
|
2614
|
+
function crmSmartDeleteObjects(payload) {
|
|
2615
|
+
if (!payload || !payload.objects || !Array.isArray(payload.objects)) {
|
|
2616
|
+
return Promise.reject(new Error("Payload must contain an array of objects"));
|
|
2617
|
+
}
|
|
2618
|
+
if (payload.objects.length === 0) {
|
|
2619
|
+
return Promise.reject(new Error("Objects array cannot be empty"));
|
|
2620
|
+
}
|
|
2621
|
+
for (const obj of payload.objects) {
|
|
2622
|
+
if (!obj) {
|
|
2623
|
+
return Promise.reject(new Error("Objects array cannot contain null or undefined elements"));
|
|
2624
|
+
}
|
|
2625
|
+
if (!obj.table_name || typeof obj.table_name !== "string" || obj.table_name.trim() === "") {
|
|
2626
|
+
return Promise.reject(new Error("Each object must have a valid non-empty table_name"));
|
|
2627
|
+
}
|
|
2628
|
+
if (!obj.ids || !Array.isArray(obj.ids) || obj.ids.length === 0) {
|
|
2629
|
+
return Promise.reject(new Error(`Object for table ${obj.table_name} must have a non-empty ids array`));
|
|
2630
|
+
}
|
|
2631
|
+
for (let i = 0; i < obj.ids.length; i++) {
|
|
2632
|
+
const id = obj.ids[i];
|
|
2633
|
+
if (!id || typeof id !== "string" || id.trim() === "") {
|
|
2634
|
+
return Promise.reject(
|
|
2635
|
+
new Error(
|
|
2636
|
+
`Object for table ${obj.table_name} contains invalid id at index ${i}. All IDs must be non-empty strings.`
|
|
2637
|
+
)
|
|
2638
|
+
);
|
|
2639
|
+
}
|
|
2640
|
+
}
|
|
2641
|
+
}
|
|
2642
|
+
return highLevelApi.API.request("crm_smart_delete_objects", payload);
|
|
2643
|
+
}
|
|
2555
2644
|
|
|
2556
2645
|
function getFolders(payload) {
|
|
2557
2646
|
return this.API.request("get_folders", payload);
|
|
@@ -2649,7 +2738,11 @@ const modules = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
|
2649
2738
|
createFile,
|
|
2650
2739
|
createFolder,
|
|
2651
2740
|
crmQuery,
|
|
2741
|
+
crmSmartDeleteObjects,
|
|
2742
|
+
crmSmartObjectMetadata,
|
|
2743
|
+
crmSmartObjectValidationRules,
|
|
2652
2744
|
crmSmartQuery,
|
|
2745
|
+
crmSmartUpsertObjects,
|
|
2653
2746
|
deleteCanvas,
|
|
2654
2747
|
deleteEvent,
|
|
2655
2748
|
deleteFavorite,
|
|
@@ -2856,6 +2949,7 @@ function assert(exp, message) {
|
|
|
2856
2949
|
const defaultSkipKeys = [
|
|
2857
2950
|
"id__in",
|
|
2858
2951
|
"tags__in",
|
|
2952
|
+
"tags__not_in",
|
|
2859
2953
|
"modified_at__gtr",
|
|
2860
2954
|
"created_at__gtr",
|
|
2861
2955
|
"end_at__lt",
|
|
@@ -4056,7 +4150,8 @@ const PeerConnectivityActions = {
|
|
|
4056
4150
|
CANVAS_CLOSE: "canvas.close",
|
|
4057
4151
|
ROUTE_CHANGE: "route.change",
|
|
4058
4152
|
FILE_OPEN: "file.open",
|
|
4059
|
-
FILE_CLOSE: "file.close"
|
|
4153
|
+
FILE_CLOSE: "file.close",
|
|
4154
|
+
BROWSER_FOLDER_OPEN: "browser.folder.open"
|
|
4060
4155
|
};
|
|
4061
4156
|
const DEFAULT_PEER_CONNECTIVITY_VERSION = 1;
|
|
4062
4157
|
const PEER_CONNECTIVITY_HANDLER_MATCH_ALL = "*";
|