woodsportal-client-sdk 4.0.9-dev.4 → 4.0.9-dev.6
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-h90c5Dpm.d.ts → cache-purge-CokkqLSk.d.ts} +8 -1
- package/dist/{chunk-FZMDGSOP.js → chunk-5IW5BVYE.js} +3 -3
- package/dist/{chunk-FZMDGSOP.js.map → chunk-5IW5BVYE.js.map} +1 -1
- package/dist/{chunk-FCXVZLKO.js → chunk-7ELN5B4I.js} +3 -3
- package/dist/{chunk-FCXVZLKO.js.map → chunk-7ELN5B4I.js.map} +1 -1
- package/dist/{chunk-OXPA3PYS.js → chunk-DRFN5GTH.js} +6 -5
- package/dist/chunk-DRFN5GTH.js.map +1 -0
- package/dist/{chunk-2ZDMREF4.js → chunk-H2F6UNSO.js} +4 -4
- package/dist/{chunk-2ZDMREF4.js.map → chunk-H2F6UNSO.js.map} +1 -1
- package/dist/{chunk-5IQC6UHI.js → chunk-HYWNZBUF.js} +4 -4
- package/dist/{chunk-5IQC6UHI.js.map → chunk-HYWNZBUF.js.map} +1 -1
- package/dist/{chunk-DZF5LIXW.js → chunk-KJPSGJL3.js} +52 -90
- package/dist/chunk-KJPSGJL3.js.map +1 -0
- package/dist/{chunk-UR6J7NHR.js → chunk-KT6KT233.js} +20 -12
- package/dist/chunk-KT6KT233.js.map +1 -0
- package/dist/{chunk-JHJGYIPC.js → chunk-WK5EEKZU.js} +4 -4
- package/dist/{chunk-JHJGYIPC.js.map → chunk-WK5EEKZU.js.map} +1 -1
- package/dist/{cross-tab-session-AH27QKXW.js → cross-tab-session-BKG6E7RD.js} +5 -5
- package/dist/{cross-tab-session-AH27QKXW.js.map → cross-tab-session-BKG6E7RD.js.map} +1 -1
- package/dist/entries/auth.js +4 -4
- package/dist/entries/crm.d.ts +4 -3
- package/dist/entries/crm.js +6 -6
- package/dist/index.d.ts +6 -4
- package/dist/index.js +10 -10
- package/package.json +1 -1
- package/dist/chunk-DZF5LIXW.js.map +0 -1
- package/dist/chunk-OXPA3PYS.js.map +0 -1
- package/dist/chunk-UR6J7NHR.js.map +0 -1
|
@@ -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-DRFN5GTH.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';
|
|
@@ -149,6 +149,8 @@ var API_ENDPOINTS = {
|
|
|
149
149
|
RECORDS_UPDATE: "/api/${hubId}/${portalId}/hubspot-object-data/${objectId}/records/${id}",
|
|
150
150
|
RECORDS_ASSOCIATE: "/api/${hubId}/${portalId}/hubspot-object-data/${fromObjectTypeId}/records/${fromRecordId}/associations/${toObjectTypeId}",
|
|
151
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}",
|
|
152
154
|
/** @deprecated Use RECORDS_CREATE */
|
|
153
155
|
OBJECTS_CREATE: "/api/${hubId}/${portalId}/hubspot-object-forms/${hubspotObjectTypeId}/fields",
|
|
154
156
|
/** @deprecated Use RECORDS_ASSOCIATE */
|
|
@@ -443,7 +445,7 @@ function initializeHttpClient(clientConfig) {
|
|
|
443
445
|
migrateLegacyStorageKeys();
|
|
444
446
|
}).catch(() => {
|
|
445
447
|
});
|
|
446
|
-
void import('./cross-tab-session-
|
|
448
|
+
void import('./cross-tab-session-BKG6E7RD.js').then(({ installCrossTabSessionListener }) => {
|
|
447
449
|
installCrossTabSessionListener();
|
|
448
450
|
}).catch(() => {
|
|
449
451
|
});
|
|
@@ -1857,6 +1859,8 @@ var crmClient = {
|
|
|
1857
1859
|
const params = payload?.params;
|
|
1858
1860
|
const queryParams = payload?.queryParams;
|
|
1859
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";
|
|
1860
1864
|
const { paramsObject, parentAccessLabel } = getParamDetails2({ type: payload?.componentName });
|
|
1861
1865
|
const userData = userStore.getState().profile;
|
|
1862
1866
|
const pipeline = payload?.variables?.pipeline;
|
|
@@ -1869,34 +1873,43 @@ var crmClient = {
|
|
|
1869
1873
|
} else if (!isPipelineBoardObjectTypeId(payload?.hubspotObjectTypeId)) {
|
|
1870
1874
|
listTableParams.filterValue = "";
|
|
1871
1875
|
}
|
|
1872
|
-
const fParams = getLinkParams();
|
|
1873
|
-
listTableParams = { ...payload?.isFristTimeLoadData && fParams && !payload?.isHome
|
|
1876
|
+
const fParams = getLinkParams(linkParamDisplayName);
|
|
1877
|
+
listTableParams = { ...payload?.isFristTimeLoadData && fParams && !payload?.isHome ? fParams : listTableParams, ...paramsObject };
|
|
1874
1878
|
if (!payload?.isFristTimeLoadData || !fParams) {
|
|
1875
|
-
await updateLink2(
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
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
|
+
);
|
|
1888
1895
|
}
|
|
1889
1896
|
if (mPipelines != void 0 && mPipelines?.length === 0 && !payload?.specPipeLine) {
|
|
1890
1897
|
listTableParams.filterValue = "";
|
|
1891
|
-
await updateLink2(
|
|
1892
|
-
|
|
1893
|
-
|
|
1898
|
+
await updateLink2(
|
|
1899
|
+
{
|
|
1900
|
+
fV: listTableParams?.filterValue
|
|
1901
|
+
},
|
|
1902
|
+
linkParamDisplayName
|
|
1903
|
+
);
|
|
1894
1904
|
}
|
|
1895
1905
|
if (mPipelines != void 0 && mPipelines?.length === 1 && !payload?.specPipeLine && mSelectedPipeline != null) {
|
|
1896
1906
|
listTableParams.filterValue = mPipelines[0].pipelineId;
|
|
1897
|
-
await updateLink2(
|
|
1898
|
-
|
|
1899
|
-
|
|
1907
|
+
await updateLink2(
|
|
1908
|
+
{
|
|
1909
|
+
fV: listTableParams?.filterValue
|
|
1910
|
+
},
|
|
1911
|
+
linkParamDisplayName
|
|
1912
|
+
);
|
|
1900
1913
|
}
|
|
1901
1914
|
if (payload?.isHome || payload?.hubspotObjectTypeId === "0-5" && payload?.componentName === "object") {
|
|
1902
1915
|
let parentObjectTypeId = "";
|
|
@@ -1915,73 +1928,22 @@ var crmClient = {
|
|
|
1915
1928
|
const apiUrl = generateApiUrl({ route, params, queryParams: listTableParams });
|
|
1916
1929
|
return HttpClient.get(apiUrl);
|
|
1917
1930
|
},
|
|
1918
|
-
existingList: async (payload = null
|
|
1919
|
-
const
|
|
1920
|
-
const
|
|
1921
|
-
const {
|
|
1922
|
-
const
|
|
1923
|
-
const
|
|
1924
|
-
const toObjectTypeId = payload?.toObjectTypeId ?? payload?.urlParams?.toObjectTypeId ?? payload?.hubspotObjectTypeId;
|
|
1925
|
-
({ ...payload});
|
|
1926
|
-
const pipeline = payload?.variables?.pipeline;
|
|
1927
|
-
const mPipelines = payload?.variables?.mPipelines;
|
|
1928
|
-
const mSelectedPipeline = pipeline !== void 0 ? pipeline : payload?.selectedPipeline;
|
|
1929
|
-
if (mSelectedPipeline) {
|
|
1930
|
-
listTableParams.filterValue = mSelectedPipeline;
|
|
1931
|
-
} else if (payload?.specPipeLine && payload?.pipeLineId) {
|
|
1932
|
-
listTableParams.filterValue = payload?.pipeLineId;
|
|
1933
|
-
} else if (!isPipelineBoardObjectTypeId(toObjectTypeId)) {
|
|
1934
|
-
listTableParams.filterValue = "";
|
|
1935
|
-
}
|
|
1936
|
-
const fParams = getLinkParams();
|
|
1937
|
-
listTableParams = { ...payload?.isFristTimeLoadData && fParams && !payload?.isHome ? fParams : listTableParams, ...paramsObject };
|
|
1938
|
-
if (!payload?.isFristTimeLoadData || !fParams) {
|
|
1939
|
-
await updateLink2({
|
|
1940
|
-
sort: listTableParams?.sort,
|
|
1941
|
-
s: listTableParams?.search,
|
|
1942
|
-
fPn: listTableParams?.filterPropertyName,
|
|
1943
|
-
fO: listTableParams?.filterOperator,
|
|
1944
|
-
fV: listTableParams?.filterValue,
|
|
1945
|
-
isPC: listTableParams?.isPrimaryCompany,
|
|
1946
|
-
v: listTableParams?.view,
|
|
1947
|
-
l: listTableParams?.limit,
|
|
1948
|
-
p: listTableParams?.page,
|
|
1949
|
-
a: listTableParams?.after
|
|
1950
|
-
});
|
|
1951
|
-
}
|
|
1952
|
-
if (mPipelines != void 0 && mPipelines?.length === 0 && !payload?.specPipeLine) {
|
|
1953
|
-
listTableParams.filterValue = "";
|
|
1954
|
-
await updateLink2({
|
|
1955
|
-
fV: listTableParams?.filterValue
|
|
1956
|
-
});
|
|
1957
|
-
}
|
|
1958
|
-
if (mPipelines != void 0 && mPipelines?.length === 1 && !payload?.specPipeLine && mSelectedPipeline != null) {
|
|
1959
|
-
listTableParams.filterValue = mPipelines[0].pipelineId;
|
|
1960
|
-
await updateLink2({
|
|
1961
|
-
fV: listTableParams?.filterValue
|
|
1962
|
-
});
|
|
1963
|
-
}
|
|
1964
|
-
if (payload?.isHome || toObjectTypeId === "0-5" && payload?.componentName === "object") {
|
|
1965
|
-
let parentObjectTypeId = "";
|
|
1966
|
-
if (userData?.crmProfile?.info?.objectTypeId && !listTableParams?.isPrimaryCompany) {
|
|
1967
|
-
parentObjectTypeId = userData?.crmProfile?.info?.objectTypeId;
|
|
1968
|
-
} else if (userData?.crmProfile?.info?.objectTypeId && listTableParams?.isPrimaryCompany) {
|
|
1969
|
-
parentObjectTypeId = "0-2";
|
|
1970
|
-
}
|
|
1971
|
-
listTableParams.parentObjectTypeId = parentObjectTypeId;
|
|
1972
|
-
}
|
|
1973
|
-
listTableParams.parentAccessLabel = parentAccessLabel;
|
|
1974
|
-
finalizeBoardListQueryParams(listTableParams);
|
|
1975
|
-
setObjectsQueryParams(listTableParams);
|
|
1976
|
-
listTableParams = { ...listTableParams, ...queryParams };
|
|
1977
|
-
const params = {
|
|
1978
|
-
fromObjectTypeId: payload?.fromObjectTypeId ?? payload?.urlParams?.fromObjectTypeId ?? payload?.hubspotObjectTypeId,
|
|
1979
|
-
fromRecordId: payload?.fromRecordId ?? payload?.urlParams?.fromRecordId,
|
|
1980
|
-
toObjectTypeId
|
|
1981
|
-
};
|
|
1982
|
-
const apiUrl = generateApiUrl({ route: API_ENDPOINTS.RECORDS_ASSOCIATE, params, queryParams: listTableParams });
|
|
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 });
|
|
1983
1937
|
return HttpClient.get(apiUrl);
|
|
1984
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
|
+
},
|
|
1985
1947
|
sideBarList: async (payload = null) => {
|
|
1986
1948
|
const { setMultiObjectsQueryParams } = actions2;
|
|
1987
1949
|
const hubspotObjectTypeId = payload?.hubspotObjectTypeId;
|
|
@@ -2579,5 +2541,5 @@ function createMutation(mutationFn, options) {
|
|
|
2579
2541
|
}
|
|
2580
2542
|
|
|
2581
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 };
|
|
2582
|
-
//# sourceMappingURL=chunk-
|
|
2583
|
-
//# sourceMappingURL=chunk-
|
|
2544
|
+
//# sourceMappingURL=chunk-KJPSGJL3.js.map
|
|
2545
|
+
//# sourceMappingURL=chunk-KJPSGJL3.js.map
|