woodsportal-client-sdk 4.0.7-dev.1 → 4.0.7-dev.10
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.js +6 -6
- package/dist/adapters/react/index.js +6 -6
- package/dist/adapters/vue/index.js +6 -6
- package/dist/auth-interceptor-policy-CKXBTGBT.js +5 -0
- package/dist/{auth-interceptor-policy-LU2L5NJM.js.map → auth-interceptor-policy-CKXBTGBT.js.map} +1 -1
- package/dist/auth-utils-LT4JXJER.js +5 -0
- package/dist/{auth-utils-Z5P6SMLJ.js.map → auth-utils-LT4JXJER.js.map} +1 -1
- package/dist/{chunk-B2OVKOJU.js → chunk-5NONTYJA.js} +171 -7
- package/dist/chunk-5NONTYJA.js.map +1 -0
- package/dist/{chunk-YNOZWRK3.js → chunk-6XIX6R4X.js} +7 -4
- package/dist/chunk-6XIX6R4X.js.map +1 -0
- package/dist/{chunk-OFPD644E.js → chunk-AR6QQMVD.js} +4 -4
- package/dist/{chunk-OFPD644E.js.map → chunk-AR6QQMVD.js.map} +1 -1
- package/dist/{chunk-BURJ2NUL.js → chunk-DKWFLCSO.js} +3 -3
- package/dist/{chunk-BURJ2NUL.js.map → chunk-DKWFLCSO.js.map} +1 -1
- package/dist/{chunk-PFOSN7EB.js → chunk-JKB2SWUN.js} +62 -10
- package/dist/chunk-JKB2SWUN.js.map +1 -0
- package/dist/{chunk-WNE4LSVH.js → chunk-JVM47MG5.js} +67 -30
- package/dist/chunk-JVM47MG5.js.map +1 -0
- package/dist/{chunk-HAXXPW65.js → chunk-PQQSIYD3.js} +17 -8
- package/dist/chunk-PQQSIYD3.js.map +1 -0
- package/dist/{chunk-GUYIJ4ZE.js → chunk-PRGN3FF6.js} +3 -3
- package/dist/{chunk-GUYIJ4ZE.js.map → chunk-PRGN3FF6.js.map} +1 -1
- package/dist/{chunk-FJAOCLB4.js → chunk-QIM5H7OG.js} +23 -6
- package/dist/chunk-QIM5H7OG.js.map +1 -0
- package/dist/{chunk-BKT4MFQM.js → chunk-UDAPRD7Z.js} +15 -5
- package/dist/chunk-UDAPRD7Z.js.map +1 -0
- package/dist/{chunk-6YOL5LPB.js → chunk-XIKYPNO5.js} +7 -7
- package/dist/{chunk-6YOL5LPB.js.map → chunk-XIKYPNO5.js.map} +1 -1
- package/dist/cross-tab-session-WEIUJDZN.js +9 -0
- package/dist/{cross-tab-session-TUFJ6KU7.js.map → cross-tab-session-WEIUJDZN.js.map} +1 -1
- package/dist/entries/auth.d.ts +3 -2
- package/dist/entries/auth.js +8 -8
- package/dist/entries/auth.js.map +1 -1
- package/dist/entries/crm.d.ts +2 -2
- package/dist/entries/crm.js +9 -7
- package/dist/entries/crm.js.map +1 -1
- package/dist/{http-errors-Bwhj6cfB.d.ts → http-errors-CCCQECil.d.ts} +19 -2
- package/dist/index.d.ts +15 -4
- package/dist/index.js +15 -13
- package/dist/index.js.map +1 -1
- package/dist/{cache-purge-Ca4idzyy.d.ts → pipeline-ui-DbEzI_v1.d.ts} +13 -1
- package/dist/storage-migration-2NVJ3GNQ.js +4 -0
- package/dist/{storage-migration-BY2QL6YD.js.map → storage-migration-2NVJ3GNQ.js.map} +1 -1
- package/package.json +1 -1
- package/dist/auth-interceptor-policy-LU2L5NJM.js +0 -5
- package/dist/auth-utils-Z5P6SMLJ.js +0 -5
- package/dist/chunk-B2OVKOJU.js.map +0 -1
- package/dist/chunk-BKT4MFQM.js.map +0 -1
- package/dist/chunk-FJAOCLB4.js.map +0 -1
- package/dist/chunk-HAXXPW65.js.map +0 -1
- package/dist/chunk-PFOSN7EB.js.map +0 -1
- package/dist/chunk-WNE4LSVH.js.map +0 -1
- package/dist/chunk-YNOZWRK3.js.map +0 -1
- package/dist/cross-tab-session-TUFJ6KU7.js +0 -9
- package/dist/refresh-lock-JQVP4YOS.js +0 -72
- package/dist/refresh-lock-JQVP4YOS.js.map +0 -1
- package/dist/storage-migration-BY2QL6YD.js +0 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { getParamDetails, getRouteDetails, updateLink, getParam, decodeToBase64, generatePath, getPath, getRouteMenu, tableUiActions, ticketHubspotObjectTypeId, tableStore, actions2, userStore, fileStore, actions7, emailStore, actions5, noteStore, actions4, tableUiStore, resetAllStore, breadcrumbStage, isMessingParentLastItem, isMessingParent, generateUrl } from './chunk-
|
|
2
|
-
import { configureLogger, setIframeStorageMode, setRefreshBufferSeconds, config, setRefreshCallback, hydrateSessionRefreshState, isHttpTracingEnabled, logger, getAccessToken, sanitizeAxiosErrorData, setRefreshToken, storAccessToken, storage, HUBSPOT_DATA, setRuntimeHttpClientHubContext, refreshSession, ensureValidRefresh, HUB_ID, DEV_PORTAL_ID, DEV_API_URL, isAccessTokenExpired } from './chunk-
|
|
1
|
+
import { getParamDetails, getRouteDetails, updateLink, getParam, decodeToBase64, generatePath, getPath, getRouteMenu, tableUiActions, ticketHubspotObjectTypeId, tableStore, makePreviewParams, actions2, userStore, isPipelineBoardObjectTypeId, fileStore, actions7, emailStore, actions5, noteStore, actions4, tableUiStore, resetAllStore, breadcrumbStage, isMessingParentLastItem, isMessingParent, generateUrl } from './chunk-JKB2SWUN.js';
|
|
2
|
+
import { configureLogger, setIframeStorageMode, setRefreshBufferSeconds, config, setRefreshCallback, hydrateSessionRefreshState, isHttpTracingEnabled, logger, getAccessToken, sanitizeAxiosErrorData, setRefreshToken, storAccessToken, storage, HUBSPOT_DATA, setRuntimeHttpClientHubContext, refreshSession, ensureValidRefresh, HUB_ID, DEV_PORTAL_ID, DEV_API_URL, isAccessTokenExpired } from './chunk-5NONTYJA.js';
|
|
3
3
|
import { AuthErrorCode } from './chunk-COHBSTHF.js';
|
|
4
|
-
import { configureStorageKeys } from './chunk-
|
|
4
|
+
import { configureStorageKeys } from './chunk-6XIX6R4X.js';
|
|
5
5
|
import axios2 from 'axios';
|
|
6
6
|
|
|
7
7
|
// src/main/core/http/visibility-refresh-scheduler.ts
|
|
@@ -358,7 +358,7 @@ async function handleAuthHttpError(error, axiosInstanceRef) {
|
|
|
358
358
|
return Promise.reject(error);
|
|
359
359
|
}
|
|
360
360
|
const { parseApiErrorPayload } = await import('./auth-error-codes-D7CXVBEN.js');
|
|
361
|
-
const { persistAuthError, resolveAuthErrorAction } = await import('./auth-interceptor-policy-
|
|
361
|
+
const { persistAuthError, resolveAuthErrorAction } = await import('./auth-interceptor-policy-CKXBTGBT.js');
|
|
362
362
|
const reqConfig = error.config;
|
|
363
363
|
const payload = parseApiErrorPayload(error.response.data);
|
|
364
364
|
const action = resolveAuthErrorAction({
|
|
@@ -440,10 +440,10 @@ function initializeHttpClient(clientConfig) {
|
|
|
440
440
|
if (clientConfig.storageKeys != null) {
|
|
441
441
|
configureStorageKeys(clientConfig.storageKeys);
|
|
442
442
|
}
|
|
443
|
-
void import('./storage-migration-
|
|
443
|
+
void import('./storage-migration-2NVJ3GNQ.js').then(({ migrateLegacyStorageKeys }) => {
|
|
444
444
|
migrateLegacyStorageKeys();
|
|
445
445
|
});
|
|
446
|
-
void import('./cross-tab-session-
|
|
446
|
+
void import('./cross-tab-session-WEIUJDZN.js').then(({ installCrossTabSessionListener }) => {
|
|
447
447
|
installCrossTabSessionListener();
|
|
448
448
|
});
|
|
449
449
|
setIframeStorageMode(clientConfig.storageMode === "iframe");
|
|
@@ -1201,18 +1201,11 @@ function applyBoardPaginationToParams(param, tableParams) {
|
|
|
1201
1201
|
}
|
|
1202
1202
|
return param;
|
|
1203
1203
|
}
|
|
1204
|
-
function finalizeBoardListQueryParams(param,
|
|
1204
|
+
function finalizeBoardListQueryParams(param, _context) {
|
|
1205
1205
|
const { stageId, nextPage, view, selectedPipeline } = tableUiStore.getState();
|
|
1206
|
-
const payload = context?.payload;
|
|
1207
1206
|
if (view) {
|
|
1208
1207
|
param.view = view;
|
|
1209
1208
|
}
|
|
1210
|
-
const ticketPipelineContext = payload?.isHome && payload?.hubspotObjectTypeId === "0-5" || payload?.componentName === "object" && payload?.hubspotObjectTypeId === "0-5";
|
|
1211
|
-
if (ticketPipelineContext && !param?.isPrimaryCompany) {
|
|
1212
|
-
param.parentObjectTypeId = "0-1";
|
|
1213
|
-
} else if (ticketPipelineContext && param?.isPrimaryCompany) {
|
|
1214
|
-
param.parentObjectTypeId = "0-2";
|
|
1215
|
-
}
|
|
1216
1209
|
if (selectedPipeline !== void 0 && selectedPipeline !== null && selectedPipeline !== "") {
|
|
1217
1210
|
param.filterValue = selectedPipeline;
|
|
1218
1211
|
}
|
|
@@ -1351,6 +1344,20 @@ function expandListPurgeQueriesForCrmWrite(base) {
|
|
|
1351
1344
|
}
|
|
1352
1345
|
return expanded;
|
|
1353
1346
|
}
|
|
1347
|
+
function applyFilterValueFromPipelineState(query) {
|
|
1348
|
+
if (query.filterValue) {
|
|
1349
|
+
return query;
|
|
1350
|
+
}
|
|
1351
|
+
const { filterPropertyName, filterOperator } = query;
|
|
1352
|
+
if (!filterPropertyName || !filterOperator) {
|
|
1353
|
+
return query;
|
|
1354
|
+
}
|
|
1355
|
+
const selectedPipeline = tableUiStore.getState().selectedPipeline;
|
|
1356
|
+
if (!selectedPipeline) {
|
|
1357
|
+
return query;
|
|
1358
|
+
}
|
|
1359
|
+
return { ...query, filterValue: selectedPipeline };
|
|
1360
|
+
}
|
|
1354
1361
|
function resolveCrmListPurgeQuery(options) {
|
|
1355
1362
|
let raw;
|
|
1356
1363
|
if (options.componentName === "sidebarTable" && options.hubspotObjectTypeId) {
|
|
@@ -1361,14 +1368,15 @@ function resolveCrmListPurgeQuery(options) {
|
|
|
1361
1368
|
if (!hasPurgeFilterContext(raw)) {
|
|
1362
1369
|
raw = mergeLiveTableUiState(raw);
|
|
1363
1370
|
}
|
|
1364
|
-
|
|
1371
|
+
let base = applyFilterValueFromPipelineState(toCachePurgeListQuery(raw ?? void 0));
|
|
1365
1372
|
if (!options.writeContext || Object.keys(options.writeContext).length === 0) {
|
|
1366
1373
|
return base;
|
|
1367
1374
|
}
|
|
1368
|
-
|
|
1375
|
+
base = {
|
|
1369
1376
|
...base,
|
|
1370
1377
|
...options.writeContext
|
|
1371
1378
|
};
|
|
1379
|
+
return applyFilterValueFromPipelineState(base);
|
|
1372
1380
|
}
|
|
1373
1381
|
|
|
1374
1382
|
// src/main/core/utils/cache/crmCacheRefresh.ts
|
|
@@ -1423,7 +1431,9 @@ async function purgeCrmListCache(options) {
|
|
|
1423
1431
|
});
|
|
1424
1432
|
return createCachePurgeJob(request, {
|
|
1425
1433
|
idempotencyKey: options.idempotencyKey,
|
|
1426
|
-
waitForWarm: options.waitForWarm
|
|
1434
|
+
waitForWarm: options.waitForWarm,
|
|
1435
|
+
pollTimeoutMs: options.pollTimeoutMs,
|
|
1436
|
+
pollIntervalMs: options.pollIntervalMs
|
|
1427
1437
|
});
|
|
1428
1438
|
}
|
|
1429
1439
|
async function purgeCrmRecordCache(options) {
|
|
@@ -1444,7 +1454,9 @@ async function purgeCrmRecordCache(options) {
|
|
|
1444
1454
|
});
|
|
1445
1455
|
return createCachePurgeJob(request, {
|
|
1446
1456
|
idempotencyKey: options.idempotencyKey,
|
|
1447
|
-
waitForWarm: options.waitForWarm
|
|
1457
|
+
waitForWarm: options.waitForWarm,
|
|
1458
|
+
pollTimeoutMs: options.pollTimeoutMs,
|
|
1459
|
+
pollIntervalMs: options.pollIntervalMs
|
|
1448
1460
|
});
|
|
1449
1461
|
}
|
|
1450
1462
|
async function purgeEngagementCaches(options) {
|
|
@@ -1478,7 +1490,9 @@ async function purgeEngagementCachesInternal(options) {
|
|
|
1478
1490
|
});
|
|
1479
1491
|
return createCachePurgeJob(request, {
|
|
1480
1492
|
idempotencyKey: options.idempotencyKey,
|
|
1481
|
-
waitForWarm: options.waitForWarm
|
|
1493
|
+
waitForWarm: options.waitForWarm,
|
|
1494
|
+
pollTimeoutMs: options.pollTimeoutMs,
|
|
1495
|
+
pollIntervalMs: options.pollIntervalMs
|
|
1482
1496
|
});
|
|
1483
1497
|
}
|
|
1484
1498
|
async function purgeCrmCombined(options) {
|
|
@@ -1490,7 +1504,9 @@ async function purgeCrmCombined(options) {
|
|
|
1490
1504
|
});
|
|
1491
1505
|
return createCachePurgeJob(request, {
|
|
1492
1506
|
idempotencyKey: options.idempotencyKey,
|
|
1493
|
-
waitForWarm: options.waitForWarm
|
|
1507
|
+
waitForWarm: options.waitForWarm,
|
|
1508
|
+
pollTimeoutMs: options.pollTimeoutMs,
|
|
1509
|
+
pollIntervalMs: options.pollIntervalMs
|
|
1494
1510
|
});
|
|
1495
1511
|
}
|
|
1496
1512
|
|
|
@@ -1611,7 +1627,9 @@ var triggerPostWriteListPurge = (props) => {
|
|
|
1611
1627
|
purgeCrmListCacheAfterCrmWrite({
|
|
1612
1628
|
objectTypeId: String(objectTypeId),
|
|
1613
1629
|
listQuery,
|
|
1614
|
-
recordIds
|
|
1630
|
+
recordIds,
|
|
1631
|
+
waitForWarm: true,
|
|
1632
|
+
pollTimeoutMs: 45e3
|
|
1615
1633
|
});
|
|
1616
1634
|
};
|
|
1617
1635
|
var mergeRecordWriteBody = (payload, paramsObject, options) => {
|
|
@@ -1766,7 +1784,7 @@ var crmClient = {
|
|
|
1766
1784
|
param.filterValue = mSelectedPipeline;
|
|
1767
1785
|
} else if (payload?.specPipeLine && payload?.pipeLineId) {
|
|
1768
1786
|
param.filterValue = payload?.pipeLineId;
|
|
1769
|
-
} else if (payload?.hubspotObjectTypeId
|
|
1787
|
+
} else if (!isPipelineBoardObjectTypeId(payload?.hubspotObjectTypeId)) {
|
|
1770
1788
|
param.filterValue = "";
|
|
1771
1789
|
}
|
|
1772
1790
|
const fParams = getLinkParams();
|
|
@@ -1808,7 +1826,7 @@ var crmClient = {
|
|
|
1808
1826
|
param.parentObjectTypeId = parentObjectTypeId;
|
|
1809
1827
|
}
|
|
1810
1828
|
param.parentAccessLabel = parentAccessLabel;
|
|
1811
|
-
finalizeBoardListQueryParams(param
|
|
1829
|
+
finalizeBoardListQueryParams(param);
|
|
1812
1830
|
setObjectsQueryParams(param);
|
|
1813
1831
|
param.cache = payload?.cache;
|
|
1814
1832
|
const apiUrl = generateApiUrl({ route: API_ENDPOINTS.OBJECTS, params, queryParams: param });
|
|
@@ -1905,19 +1923,38 @@ var crmClient = {
|
|
|
1905
1923
|
return response;
|
|
1906
1924
|
},
|
|
1907
1925
|
details: (props = null) => {
|
|
1908
|
-
const
|
|
1926
|
+
const isDdetails = props?.queryParams?.preview ? false : true;
|
|
1927
|
+
const { paramsObject: urlParam, parentAccessLabel } = getParamDetails2("", isDdetails);
|
|
1909
1928
|
const hubspotObjectTypeId = ticketHubspotObjectTypeId();
|
|
1929
|
+
const previewParams = makePreviewParams(props);
|
|
1930
|
+
let objectId = null;
|
|
1931
|
+
if (props?.queryParams?.preview) {
|
|
1932
|
+
objectId = previewParams?.params?.objectId;
|
|
1933
|
+
} else {
|
|
1934
|
+
objectId = props?.params?.objectId;
|
|
1935
|
+
}
|
|
1910
1936
|
const params = {
|
|
1911
|
-
|
|
1912
|
-
// portalId: portalId,
|
|
1913
|
-
objectId: props?.params?.objectId,
|
|
1937
|
+
objectId,
|
|
1914
1938
|
id: props?.params?.id
|
|
1915
1939
|
};
|
|
1916
|
-
|
|
1940
|
+
let queryParams = {
|
|
1917
1941
|
parentAccessLabel,
|
|
1918
1942
|
...props?.queryParams,
|
|
1919
1943
|
...urlParam
|
|
1920
1944
|
};
|
|
1945
|
+
if (props?.queryParams?.preview) {
|
|
1946
|
+
queryParams = {
|
|
1947
|
+
parentAccessLabel,
|
|
1948
|
+
...props?.queryParams,
|
|
1949
|
+
...previewParams?.queryParams
|
|
1950
|
+
};
|
|
1951
|
+
} else {
|
|
1952
|
+
queryParams = {
|
|
1953
|
+
parentAccessLabel,
|
|
1954
|
+
...props?.queryParams,
|
|
1955
|
+
...urlParam
|
|
1956
|
+
};
|
|
1957
|
+
}
|
|
1921
1958
|
if (hubspotObjectTypeId) queryParams.parentObjectTypeId = hubspotObjectTypeId;
|
|
1922
1959
|
const apiUrl = generateApiUrl({ route: API_ENDPOINTS.OBJECTS_DETAILS, params, queryParams });
|
|
1923
1960
|
return HttpClient.get(apiUrl);
|
|
@@ -2417,5 +2454,5 @@ function createMutation(mutationFn, options) {
|
|
|
2417
2454
|
}
|
|
2418
2455
|
|
|
2419
2456
|
export { Client, SERVICE_UNAVAILABLE_MESSAGE, buildCachePurgeRequest, buildCrmListPurgeTarget, buildCrmSinglePurgeTarget, buildEngagementPurgeTarget, buildPortalConfigPurgeTarget, buildUserSessionPurgeTarget, classifyHttpError, createCachePurgeJob, createMutation, extractEngagementItemIdFromWriteResponse, extractHubspotRecordIdFromWriteResponse, getAuthRefreshToken, getFieldErrors, getFormErrors, getHttpErrorMessage, initializeHttpClient, isServiceUnavailableError, mergePurgeTargets, navigationApi, purgeCrmCombined, purgeCrmDetailAndListAfterCrmWrite, purgeCrmListCache, purgeCrmListCacheAfterCrmWrite, purgeCrmObjectDataCache, purgeCrmRecordCache, purgeEngagementCaches, purgeEngagementCachesAfterCrmWrite, resolveCrmListPurgeQuery, resolveListTableParams, setEditorPreviewMockHandler, startVisibilityRefreshScheduler, stopVisibilityRefreshScheduler, toCachePurgeListQuery };
|
|
2420
|
-
//# sourceMappingURL=chunk-
|
|
2421
|
-
//# sourceMappingURL=chunk-
|
|
2457
|
+
//# sourceMappingURL=chunk-JVM47MG5.js.map
|
|
2458
|
+
//# sourceMappingURL=chunk-JVM47MG5.js.map
|