woodsportal-client-sdk 4.0.9 → 4.0.10-dev.0
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/dist/adapters/angular/index.d.ts +1 -1
- package/dist/adapters/angular/index.js +3 -3
- package/dist/adapters/native/index.js +4 -4
- package/dist/adapters/react/index.d.ts +1 -1
- package/dist/adapters/react/index.js +4 -4
- package/dist/adapters/vue/index.d.ts +1 -1
- package/dist/adapters/vue/index.js +3 -3
- package/dist/{cache-purge-rOALAcjJ.d.ts → cache-purge-CokkqLSk.d.ts} +16 -2
- package/dist/{chunk-SISBYZGN.js → chunk-2LWNAIW7.js} +90 -55
- package/dist/chunk-2LWNAIW7.js.map +1 -0
- package/dist/{chunk-H6DN26ZU.js → chunk-4LPABATF.js} +33 -5
- package/dist/chunk-4LPABATF.js.map +1 -0
- package/dist/{chunk-YEFSBGK2.js → chunk-BEQQM2RH.js} +16 -6
- package/dist/chunk-BEQQM2RH.js.map +1 -0
- package/dist/{chunk-4CTXRWIN.js → chunk-GEN5WNDB.js} +4 -4
- package/dist/{chunk-4CTXRWIN.js.map → chunk-GEN5WNDB.js.map} +1 -1
- package/dist/{chunk-PP2GUXEW.js → chunk-IEH2NRMO.js} +3 -3
- package/dist/{chunk-PP2GUXEW.js.map → chunk-IEH2NRMO.js.map} +1 -1
- package/dist/{chunk-POWLSRWC.js → chunk-M2HWEVP7.js} +4 -4
- package/dist/{chunk-POWLSRWC.js.map → chunk-M2HWEVP7.js.map} +1 -1
- package/dist/{chunk-N7YG5QBI.js → chunk-MOGAQS3U.js} +46 -13
- package/dist/chunk-MOGAQS3U.js.map +1 -0
- package/dist/{chunk-5JFESDQH.js → chunk-VU2JALWN.js} +3 -3
- package/dist/{chunk-5JFESDQH.js.map → chunk-VU2JALWN.js.map} +1 -1
- package/dist/{cross-tab-session-I2FKYSBE.js → cross-tab-session-RGOHMHGF.js} +5 -5
- package/dist/{cross-tab-session-I2FKYSBE.js.map → cross-tab-session-RGOHMHGF.js.map} +1 -1
- package/dist/entries/auth.d.ts +8 -4
- package/dist/entries/auth.js +4 -4
- package/dist/entries/crm.d.ts +6 -4
- package/dist/entries/crm.js +6 -6
- package/dist/{index-B-IGDI9L.d.ts → index-CWYPrDBp.d.ts} +6 -1
- package/dist/index.d.ts +27 -8
- package/dist/index.js +10 -10
- package/dist/{route-guard-contract-KaQaafb7.d.ts → route-guard-contract-BXNkJFf2.d.ts} +18 -2
- package/package.json +1 -1
- package/dist/chunk-H6DN26ZU.js.map +0 -1
- package/dist/chunk-N7YG5QBI.js.map +0 -1
- package/dist/chunk-SISBYZGN.js.map +0 -1
- package/dist/chunk-YEFSBGK2.js.map +0 -1
|
@@ -54,7 +54,7 @@ declare const useTableUi: () => TableUiState & {
|
|
|
54
54
|
page: string | number;
|
|
55
55
|
};
|
|
56
56
|
setGridData(type: string, deals: any[]): Promise<any[]>;
|
|
57
|
-
setDefaultPipeline(data: any, hubspotObjectTypeId: string): any;
|
|
57
|
+
setDefaultPipeline(data: any, hubspotObjectTypeId: string, viewName?: string): any;
|
|
58
58
|
};
|
|
59
59
|
declare const useMultiObjectActions: () => MultiObjectTableState & {
|
|
60
60
|
setMultiObjectData(response: any, payload: any): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { bindStoreWithActions } from '../../chunk-AYTO6ND7.js';
|
|
2
|
-
import { createAdapterHooks } from '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
4
|
-
import '../../chunk-
|
|
2
|
+
import { createAdapterHooks } from '../../chunk-GEN5WNDB.js';
|
|
3
|
+
import '../../chunk-VU2JALWN.js';
|
|
4
|
+
import '../../chunk-BEQQM2RH.js';
|
|
5
5
|
import '../../chunk-TH2E4MXG.js';
|
|
6
6
|
import '../../chunk-KPHAQNS2.js';
|
|
7
7
|
import '../../chunk-DB6W3CJT.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { useTable, useTableUi, useUser } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
4
|
-
import '../../chunk-
|
|
1
|
+
export { useTable, useTableUi, useUser } from '../../chunk-IEH2NRMO.js';
|
|
2
|
+
import '../../chunk-GEN5WNDB.js';
|
|
3
|
+
import '../../chunk-VU2JALWN.js';
|
|
4
|
+
import '../../chunk-BEQQM2RH.js';
|
|
5
5
|
import '../../chunk-TH2E4MXG.js';
|
|
6
6
|
import '../../chunk-KPHAQNS2.js';
|
|
7
7
|
import '../../chunk-DB6W3CJT.js';
|
|
@@ -54,7 +54,7 @@ declare const useTableUi: () => TableUiState & {
|
|
|
54
54
|
page: string | number;
|
|
55
55
|
};
|
|
56
56
|
setGridData(type: string, deals: any[]): Promise<any[]>;
|
|
57
|
-
setDefaultPipeline(data: any, hubspotObjectTypeId: string): any;
|
|
57
|
+
setDefaultPipeline(data: any, hubspotObjectTypeId: string, viewName?: string): any;
|
|
58
58
|
};
|
|
59
59
|
declare const useMultiObjectActions: () => MultiObjectTableState & {
|
|
60
60
|
setMultiObjectData(response: any, payload: any): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { useEmail, useFile, useMultiObjectActions, useNote, useSync, useTable, useTableUi, useUploader, useUser } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
4
|
-
import '../../chunk-
|
|
1
|
+
export { useEmail, useFile, useMultiObjectActions, useNote, useSync, useTable, useTableUi, useUploader, useUser } from '../../chunk-IEH2NRMO.js';
|
|
2
|
+
import '../../chunk-GEN5WNDB.js';
|
|
3
|
+
import '../../chunk-VU2JALWN.js';
|
|
4
|
+
import '../../chunk-BEQQM2RH.js';
|
|
5
5
|
import '../../chunk-TH2E4MXG.js';
|
|
6
6
|
import '../../chunk-KPHAQNS2.js';
|
|
7
7
|
import '../../chunk-DB6W3CJT.js';
|
|
@@ -54,7 +54,7 @@ declare const useTableUi: () => TableUiState & {
|
|
|
54
54
|
page: string | number;
|
|
55
55
|
};
|
|
56
56
|
setGridData(type: string, deals: any[]): Promise<any[]>;
|
|
57
|
-
setDefaultPipeline(data: any, hubspotObjectTypeId: string): any;
|
|
57
|
+
setDefaultPipeline(data: any, hubspotObjectTypeId: string, viewName?: string): any;
|
|
58
58
|
};
|
|
59
59
|
declare const useMultiObjectActions: () => MultiObjectTableState & {
|
|
60
60
|
setMultiObjectData(response: any, payload: any): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { bindStoreWithActions } from '../../chunk-AYTO6ND7.js';
|
|
2
|
-
import { createAdapterHooks } from '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
4
|
-
import '../../chunk-
|
|
2
|
+
import { createAdapterHooks } from '../../chunk-GEN5WNDB.js';
|
|
3
|
+
import '../../chunk-VU2JALWN.js';
|
|
4
|
+
import '../../chunk-BEQQM2RH.js';
|
|
5
5
|
import '../../chunk-TH2E4MXG.js';
|
|
6
6
|
import '../../chunk-KPHAQNS2.js';
|
|
7
7
|
import '../../chunk-DB6W3CJT.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as MutationOptions } from './index-
|
|
1
|
+
import { M as MutationOptions } from './index-CWYPrDBp.js';
|
|
2
2
|
|
|
3
3
|
declare function purge(options?: MutationOptions<unknown, unknown>): {
|
|
4
4
|
mutate: (payload?: Record<string, unknown> | undefined) => Promise<unknown>;
|
|
@@ -98,6 +98,20 @@ declare function list$2(options?: MutationOptions<any, any>): {
|
|
|
98
98
|
getObjects: (payload?: any) => Promise<any>;
|
|
99
99
|
isLoading: () => boolean;
|
|
100
100
|
};
|
|
101
|
+
declare function existingList(options?: MutationOptions<any, any>): {
|
|
102
|
+
mutate: (payload?: any) => Promise<any>;
|
|
103
|
+
existingList: (payload?: any) => Promise<any>;
|
|
104
|
+
listExisting: (payload?: any) => Promise<any>;
|
|
105
|
+
getExistingObjects: (payload?: any) => Promise<any>;
|
|
106
|
+
isLoading: () => boolean;
|
|
107
|
+
};
|
|
108
|
+
declare function addExistingList(options?: MutationOptions<any, any>): {
|
|
109
|
+
mutate: (payload?: any) => Promise<any>;
|
|
110
|
+
addExistingList: (payload?: any) => Promise<any>;
|
|
111
|
+
listAddExisting: (payload?: any) => Promise<any>;
|
|
112
|
+
getAddExistingObjects: (payload?: any) => Promise<any>;
|
|
113
|
+
isLoading: () => boolean;
|
|
114
|
+
};
|
|
101
115
|
declare function sideBarList(options?: MutationOptions<any, any>): {
|
|
102
116
|
mutate: (payload?: any) => Promise<any>;
|
|
103
117
|
listSidebar: (payload?: any) => Promise<any>;
|
|
@@ -245,4 +259,4 @@ type CrmCachePurgeOptions = {
|
|
|
245
259
|
idempotencyKey?: string;
|
|
246
260
|
};
|
|
247
261
|
|
|
248
|
-
export {
|
|
262
|
+
export { purge as A, purgeStatus as B, type CachePurgeDomain as C, type CachePurgeListQuery as D, type CachePurgeMode as E, type CachePurgeRequest as F, type CachePurgeTarget as G, type CachePurgeView as H, type CreateCachePurgeJobOptions as I, type CrmCachePurgeOptions as J, HUBSPOT_DEALS_OBJECT_TYPE_ID as K, HUBSPOT_TICKETS_OBJECT_TYPE_ID as L, PIPELINE_REQUIRED_MANAGED_OBJECT_TYPE_IDS as M, type PurgeResult as N, isPipelineBoardObjectType as O, PIPELINE_BOARD_OBJECT_TYPE_IDS as P, isPipelineBoardObjectTypeId as Q, shouldShowPipelineSelector as R, supportsBoardView as S, list$1 as a, list$2 as b, addExistingList as c, details as d, existingList as e, form as f, create as g, createExisting as h, list$3 as i, create$1 as j, update$1 as k, list as l, list$4 as m, create$2 as n, objectFormOptions as o, update$2 as p, list$5 as q, removeExisting as r, sideBarList as s, details$1 as t, update as u, download as v, addFolder as w, addFile as x, imageUpload as y, attachmentUpload as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getParamDetails, getRouteDetails, updateLink, getParam, decodeToBase64, generatePath, getPath, getRouteMenu, tableUiActions, ticketHubspotObjectTypeId, makePreviewParams, tableStore, actions2, userStore, isPipelineBoardObjectTypeId, fileStore, actions7, emailStore, actions5, noteStore, actions4, tableUiStore, resetAllStore, breadcrumbStage, isMessingParentLastItem, isMessingParent, generateUrl } from './chunk-
|
|
1
|
+
import { getParamDetails, getRouteDetails, updateLink, getParam, decodeToBase64, generatePath, getPath, getRouteMenu, tableUiActions, ticketHubspotObjectTypeId, makePreviewParams, tableStore, actions2, userStore, isPipelineBoardObjectTypeId, fileStore, actions7, emailStore, actions5, noteStore, actions4, tableUiStore, resetAllStore, breadcrumbStage, isMessingParentLastItem, isMessingParent, generateUrl } from './chunk-BEQQM2RH.js';
|
|
2
2
|
import { config, configureLogger, setIframeStorageMode, setRefreshBufferSeconds, setRefreshCallback, hydrateSessionRefreshState, isHttpTracingEnabled, logger, getAccessToken, sanitizeAxiosErrorData, classifyRefreshHttpError, shouldLogoutAfterRefreshFailure, setRefreshToken, storAccessToken, classifyRefreshResponseWithoutToken, storage, HUBSPOT_DATA, setRuntimeHttpClientHubContext, isServiceUnavailableError, refreshSession, ensureValidRefresh, HUB_ID, DEV_PORTAL_ID, PORTAL_ID, DEV_API_URL, isAccessTokenExpired } from './chunk-TH2E4MXG.js';
|
|
3
3
|
import { getClientType, configureStorageKeys } from './chunk-KPHAQNS2.js';
|
|
4
4
|
import { AuthErrorCode } from './chunk-COHBSTHF.js';
|
|
@@ -80,6 +80,9 @@ var API_ENDPOINTS = {
|
|
|
80
80
|
VERIFY_OTP: "/api/auth/verify-otp",
|
|
81
81
|
CLIENT_SESSION: "/api/auth/client-session",
|
|
82
82
|
AUTH_HANDOFF: "/api/auth/handoff",
|
|
83
|
+
SIGN_IN_LINK_SEND: "/api/auth/sign-in-link/send",
|
|
84
|
+
SIGN_IN_LINK_VERIFY: "/api/auth/sign-in-link/verify",
|
|
85
|
+
SIGN_IN_LINK_VALIDATE: "/api/auth/sign-in-link/validate",
|
|
83
86
|
// Auth MFA (client lane)
|
|
84
87
|
MFA_PENDING_OTP_SEND: "/api/auth/mfa/pending/otp/send",
|
|
85
88
|
MFA_PENDING_PASSKEY_OPTIONS: "/api/auth/mfa/pending/passkey/authenticate/options",
|
|
@@ -146,6 +149,8 @@ var API_ENDPOINTS = {
|
|
|
146
149
|
RECORDS_UPDATE: "/api/${hubId}/${portalId}/hubspot-object-data/${objectId}/records/${id}",
|
|
147
150
|
RECORDS_ASSOCIATE: "/api/${hubId}/${portalId}/hubspot-object-data/${fromObjectTypeId}/records/${fromRecordId}/associations/${toObjectTypeId}",
|
|
148
151
|
RECORDS_DISASSOCIATE: "/api/${hubId}/${portalId}/hubspot-object-data/${fromObjectTypeId}/records/${fromRecordId}/associations/${toObjectTypeId}",
|
|
152
|
+
RECORDS_EXISTING: "/api/${hubId}/${portalId}/hubspot-object-data/${hubspotObjectTypeId}/existing-records",
|
|
153
|
+
RECORDS_ADD_EXISTING: "/api/${hubId}/${portalId}/hubspot-object-data/${parentObjectTypeId}/records/${recordId}/associations/${hubspotObjectTypeId}",
|
|
149
154
|
/** @deprecated Use RECORDS_CREATE */
|
|
150
155
|
OBJECTS_CREATE: "/api/${hubId}/${portalId}/hubspot-object-forms/${hubspotObjectTypeId}/fields",
|
|
151
156
|
/** @deprecated Use RECORDS_ASSOCIATE */
|
|
@@ -440,7 +445,7 @@ function initializeHttpClient(clientConfig) {
|
|
|
440
445
|
migrateLegacyStorageKeys();
|
|
441
446
|
}).catch(() => {
|
|
442
447
|
});
|
|
443
|
-
void import('./cross-tab-session-
|
|
448
|
+
void import('./cross-tab-session-RGOHMHGF.js').then(({ installCrossTabSessionListener }) => {
|
|
444
449
|
installCrossTabSessionListener();
|
|
445
450
|
}).catch(() => {
|
|
446
451
|
});
|
|
@@ -1704,23 +1709,23 @@ var mergeRecordWriteBody = (payload, paramsObject, options) => {
|
|
|
1704
1709
|
};
|
|
1705
1710
|
|
|
1706
1711
|
// src/main/features/auth/client/authentication-client.ts
|
|
1712
|
+
function hubPortalQuery(hubId, portalId) {
|
|
1713
|
+
const queryParams = {};
|
|
1714
|
+
if (hubId != null) {
|
|
1715
|
+
queryParams.hubId = hubId;
|
|
1716
|
+
}
|
|
1717
|
+
const resolvedPortalId = portalId ?? (config?.devPortalId != null && String(config.devPortalId).trim() !== "" ? Number(config.devPortalId) : void 0);
|
|
1718
|
+
if (resolvedPortalId != null && !Number.isNaN(resolvedPortalId)) {
|
|
1719
|
+
queryParams.portalId = resolvedPortalId;
|
|
1720
|
+
}
|
|
1721
|
+
return Object.keys(queryParams).length > 0 ? queryParams : void 0;
|
|
1722
|
+
}
|
|
1707
1723
|
var authenticationClient = {
|
|
1708
1724
|
authentication: {
|
|
1709
1725
|
preLogin: (data) => {
|
|
1710
|
-
const queryParams = {};
|
|
1711
|
-
if (data.hubId != null) {
|
|
1712
|
-
queryParams.hubId = data.hubId;
|
|
1713
|
-
}
|
|
1714
|
-
const resolvedPortalId = data.portalId ?? (config?.devPortalId != null && String(config.devPortalId).trim() !== "" ? Number(config.devPortalId) : void 0);
|
|
1715
|
-
if (resolvedPortalId != null && !Number.isNaN(resolvedPortalId)) {
|
|
1716
|
-
queryParams.portalId = resolvedPortalId;
|
|
1717
|
-
}
|
|
1718
1726
|
const email = data.email ?? data.username;
|
|
1719
1727
|
return AuthHttpClient.post(
|
|
1720
|
-
generateApiUrl({
|
|
1721
|
-
route: API_ENDPOINTS.PRE_LOGIN,
|
|
1722
|
-
queryParams: Object.keys(queryParams).length > 0 ? queryParams : void 0
|
|
1723
|
-
}),
|
|
1728
|
+
generateApiUrl({ route: API_ENDPOINTS.PRE_LOGIN, queryParams: hubPortalQuery(data.hubId, data.portalId) }),
|
|
1724
1729
|
{ email }
|
|
1725
1730
|
);
|
|
1726
1731
|
},
|
|
@@ -1744,7 +1749,6 @@ var authenticationClient = {
|
|
|
1744
1749
|
},
|
|
1745
1750
|
verifyOtp: (data) => mfaClient.verifyOtp(data),
|
|
1746
1751
|
verifyEmail: (data) => AuthHttpClient.post(API_ENDPOINTS.VERIFY_EMAIL, data),
|
|
1747
|
-
/** Legacy client greenfield signup route (predates /api/auth/* registry). */
|
|
1748
1752
|
register: (data) => AuthHttpClient.post("/register", data),
|
|
1749
1753
|
resetPasswordVerifyToken: (data) => AuthHttpClient.post(API_ENDPOINTS.RESET_PASSWORD_VERIFY_TOKEN, data),
|
|
1750
1754
|
resetPassword: (data) => AuthHttpClient.post(API_ENDPOINTS.RESET_PASSWORD, data),
|
|
@@ -1772,21 +1776,27 @@ var authenticationClient = {
|
|
|
1772
1776
|
}),
|
|
1773
1777
|
{ code: payload.code }
|
|
1774
1778
|
),
|
|
1775
|
-
getLoginBootstrap: (payload) =>
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
queryParams
|
|
1779
|
-
}
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
}
|
|
1784
|
-
return AuthHttpClient.get(
|
|
1779
|
+
getLoginBootstrap: (payload) => AuthHttpClient.get(
|
|
1780
|
+
generateApiUrl({
|
|
1781
|
+
route: API_ENDPOINTS.LOGIN_BOOTSTRAP,
|
|
1782
|
+
queryParams: hubPortalQuery(payload?.hubId, payload?.portalId)
|
|
1783
|
+
})
|
|
1784
|
+
),
|
|
1785
|
+
signInLink: {
|
|
1786
|
+
send: (data) => AuthHttpClient.post(
|
|
1785
1787
|
generateApiUrl({
|
|
1786
|
-
route: API_ENDPOINTS.
|
|
1787
|
-
queryParams:
|
|
1788
|
+
route: API_ENDPOINTS.SIGN_IN_LINK_SEND,
|
|
1789
|
+
queryParams: hubPortalQuery(data.hubId, data.portalId)
|
|
1790
|
+
}),
|
|
1791
|
+
{ email: data.email }
|
|
1792
|
+
),
|
|
1793
|
+
verify: (data) => AuthHttpClient.post(API_ENDPOINTS.SIGN_IN_LINK_VERIFY, data),
|
|
1794
|
+
validateToken: (token) => AuthHttpClient.get(
|
|
1795
|
+
generateApiUrl({
|
|
1796
|
+
route: API_ENDPOINTS.SIGN_IN_LINK_VALIDATE,
|
|
1797
|
+
queryParams: { token }
|
|
1788
1798
|
})
|
|
1789
|
-
)
|
|
1799
|
+
)
|
|
1790
1800
|
}
|
|
1791
1801
|
},
|
|
1792
1802
|
sso: {
|
|
@@ -1849,6 +1859,8 @@ var crmClient = {
|
|
|
1849
1859
|
const params = payload?.params;
|
|
1850
1860
|
const queryParams = payload?.queryParams;
|
|
1851
1861
|
const { updateLink: updateLink2, getLinkParams } = updateLink();
|
|
1862
|
+
const tabHubspotObjectTypeId = payload?.hubspotObjectTypeId ?? payload?.params?.hubspotObjectTypeId;
|
|
1863
|
+
const linkParamDisplayName = payload?.viewName === "tabs" && tabHubspotObjectTypeId ? `tabs.${tabHubspotObjectTypeId}.prm` : "prm";
|
|
1852
1864
|
const { paramsObject, parentAccessLabel } = getParamDetails2({ type: payload?.componentName });
|
|
1853
1865
|
const userData = userStore.getState().profile;
|
|
1854
1866
|
const pipeline = payload?.variables?.pipeline;
|
|
@@ -1861,34 +1873,43 @@ var crmClient = {
|
|
|
1861
1873
|
} else if (!isPipelineBoardObjectTypeId(payload?.hubspotObjectTypeId)) {
|
|
1862
1874
|
listTableParams.filterValue = "";
|
|
1863
1875
|
}
|
|
1864
|
-
const fParams = getLinkParams();
|
|
1876
|
+
const fParams = getLinkParams(linkParamDisplayName);
|
|
1865
1877
|
listTableParams = { ...payload?.isFristTimeLoadData && fParams && !payload?.isHome ? fParams : listTableParams, ...paramsObject };
|
|
1866
1878
|
if (!payload?.isFristTimeLoadData || !fParams) {
|
|
1867
|
-
await updateLink2(
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1879
|
+
await updateLink2(
|
|
1880
|
+
{
|
|
1881
|
+
sort: listTableParams?.sort,
|
|
1882
|
+
s: listTableParams?.search,
|
|
1883
|
+
fPn: listTableParams?.filterPropertyName,
|
|
1884
|
+
fO: listTableParams?.filterOperator,
|
|
1885
|
+
fV: listTableParams?.filterValue,
|
|
1886
|
+
// "c": listTableParams?.cache,
|
|
1887
|
+
isPC: listTableParams?.isPrimaryCompany,
|
|
1888
|
+
v: listTableParams?.view,
|
|
1889
|
+
l: listTableParams?.limit,
|
|
1890
|
+
p: listTableParams?.page,
|
|
1891
|
+
a: listTableParams?.after
|
|
1892
|
+
},
|
|
1893
|
+
linkParamDisplayName
|
|
1894
|
+
);
|
|
1880
1895
|
}
|
|
1881
1896
|
if (mPipelines != void 0 && mPipelines?.length === 0 && !payload?.specPipeLine) {
|
|
1882
1897
|
listTableParams.filterValue = "";
|
|
1883
|
-
await updateLink2(
|
|
1884
|
-
|
|
1885
|
-
|
|
1898
|
+
await updateLink2(
|
|
1899
|
+
{
|
|
1900
|
+
fV: listTableParams?.filterValue
|
|
1901
|
+
},
|
|
1902
|
+
linkParamDisplayName
|
|
1903
|
+
);
|
|
1886
1904
|
}
|
|
1887
1905
|
if (mPipelines != void 0 && mPipelines?.length === 1 && !payload?.specPipeLine && mSelectedPipeline != null) {
|
|
1888
1906
|
listTableParams.filterValue = mPipelines[0].pipelineId;
|
|
1889
|
-
await updateLink2(
|
|
1890
|
-
|
|
1891
|
-
|
|
1907
|
+
await updateLink2(
|
|
1908
|
+
{
|
|
1909
|
+
fV: listTableParams?.filterValue
|
|
1910
|
+
},
|
|
1911
|
+
linkParamDisplayName
|
|
1912
|
+
);
|
|
1892
1913
|
}
|
|
1893
1914
|
if (payload?.isHome || payload?.hubspotObjectTypeId === "0-5" && payload?.componentName === "object") {
|
|
1894
1915
|
let parentObjectTypeId = "";
|
|
@@ -1907,6 +1928,22 @@ var crmClient = {
|
|
|
1907
1928
|
const apiUrl = generateApiUrl({ route, params, queryParams: listTableParams });
|
|
1908
1929
|
return HttpClient.get(apiUrl);
|
|
1909
1930
|
},
|
|
1931
|
+
existingList: async (payload = null) => {
|
|
1932
|
+
const hubspotObjectTypeId = payload?.hubspotObjectTypeId;
|
|
1933
|
+
const params = { ...{ hubspotObjectTypeId }, ...payload?.params };
|
|
1934
|
+
const { paramsObject } = getParamDetails2({ type: payload?.componentName });
|
|
1935
|
+
const queryParams = { ...{ parentObjectTypeId: paramsObject?.parentObjectTypeId }, ...payload?.queryParams };
|
|
1936
|
+
const apiUrl = generateApiUrl({ route: API_ENDPOINTS.RECORDS_EXISTING, params, queryParams });
|
|
1937
|
+
return HttpClient.get(apiUrl);
|
|
1938
|
+
},
|
|
1939
|
+
addExistingList: async (payload = null) => {
|
|
1940
|
+
const hubspotObjectTypeId = payload?.hubspotObjectTypeId;
|
|
1941
|
+
const { paramsObject } = getParamDetails2({ type: payload?.componentName });
|
|
1942
|
+
const params = { ...{ hubspotObjectTypeId, parentObjectTypeId: paramsObject?.parentObjectTypeId, recordId: paramsObject?.parentObjectRecordId }, ...payload?.params };
|
|
1943
|
+
const queryParams = payload?.queryParams;
|
|
1944
|
+
const apiUrl = generateApiUrl({ route: API_ENDPOINTS.RECORDS_ADD_EXISTING, params, queryParams });
|
|
1945
|
+
return HttpClient.post(apiUrl, payload?.payload);
|
|
1946
|
+
},
|
|
1910
1947
|
sideBarList: async (payload = null) => {
|
|
1911
1948
|
const { setMultiObjectsQueryParams } = actions2;
|
|
1912
1949
|
const hubspotObjectTypeId = payload?.hubspotObjectTypeId;
|
|
@@ -1922,11 +1959,9 @@ var crmClient = {
|
|
|
1922
1959
|
return HttpClient.get(apiUrl);
|
|
1923
1960
|
},
|
|
1924
1961
|
objectFormOptions: (payload = null) => {
|
|
1925
|
-
const params =
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
};
|
|
1929
|
-
const apiUrl = generateApiUrl({ route: API_ENDPOINTS.OBJECTS_FORM_OPTIONS, params, queryParams: payload?.params });
|
|
1962
|
+
const params = payload?.params;
|
|
1963
|
+
const queryParams = payload?.queryParams;
|
|
1964
|
+
const apiUrl = generateApiUrl({ route: API_ENDPOINTS.OBJECTS_FORM_OPTIONS, params, queryParams });
|
|
1930
1965
|
return HttpClient.get(apiUrl);
|
|
1931
1966
|
},
|
|
1932
1967
|
create: async (props = null) => {
|
|
@@ -2506,5 +2541,5 @@ function createMutation(mutationFn, options) {
|
|
|
2506
2541
|
}
|
|
2507
2542
|
|
|
2508
2543
|
export { API_ENDPOINTS, Client, HttpClient, buildCachePurgeRequest, buildCrmListPurgeTarget, buildCrmSinglePurgeTarget, buildEngagementPurgeTarget, buildPortalConfigPurgeTarget, buildUserSessionPurgeTarget, createCachePurgeJob, createMutation, extractEngagementItemIdFromWriteResponse, extractHubspotRecordIdFromWriteResponse, generateApiUrl, getAuthRefreshToken, getFieldErrors, getFormErrors, initializeHttpClient, mergePurgeTargets, navigationApi, purgeCrmCombined, purgeCrmDetailAndListAfterCrmWrite, purgeCrmListCache, purgeCrmListCacheAfterCrmWrite, purgeCrmObjectDataCache, purgeCrmRecordCache, purgeEngagementCaches, purgeEngagementCachesAfterCrmWrite, resolveCrmListPurgeQuery, resolveListTableParams, setEditorPreviewMockHandler, startVisibilityRefreshScheduler, stopVisibilityRefreshScheduler, toCachePurgeListQuery };
|
|
2509
|
-
//# sourceMappingURL=chunk-
|
|
2510
|
-
//# sourceMappingURL=chunk-
|
|
2544
|
+
//# sourceMappingURL=chunk-2LWNAIW7.js.map
|
|
2545
|
+
//# sourceMappingURL=chunk-2LWNAIW7.js.map
|