woodsportal-client-sdk 4.0.9-dev.1 → 4.0.9-dev.3
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 +3 -3
- package/dist/adapters/native/index.js +4 -4
- package/dist/adapters/react/index.js +4 -4
- package/dist/adapters/vue/index.js +3 -3
- package/dist/{cache-purge-rOALAcjJ.d.ts → cache-purge-h90c5Dpm.d.ts} +9 -2
- package/dist/{chunk-4CTXRWIN.js → chunk-2ZDMREF4.js} +4 -4
- package/dist/{chunk-4CTXRWIN.js.map → chunk-2ZDMREF4.js.map} +1 -1
- package/dist/{chunk-PLY23VRX.js → chunk-5IQC6UHI.js} +46 -13
- package/dist/chunk-5IQC6UHI.js.map +1 -0
- package/dist/{chunk-K6LWWPXZ.js → chunk-DZF5LIXW.js} +106 -31
- package/dist/chunk-DZF5LIXW.js.map +1 -0
- package/dist/{chunk-PP2GUXEW.js → chunk-FCXVZLKO.js} +3 -3
- package/dist/{chunk-PP2GUXEW.js.map → chunk-FCXVZLKO.js.map} +1 -1
- package/dist/{chunk-5JFESDQH.js → chunk-FZMDGSOP.js} +3 -3
- package/dist/{chunk-5JFESDQH.js.map → chunk-FZMDGSOP.js.map} +1 -1
- package/dist/{chunk-POWLSRWC.js → chunk-JHJGYIPC.js} +4 -4
- package/dist/{chunk-POWLSRWC.js.map → chunk-JHJGYIPC.js.map} +1 -1
- package/dist/{chunk-YEFSBGK2.js → chunk-OXPA3PYS.js} +7 -4
- package/dist/chunk-OXPA3PYS.js.map +1 -0
- package/dist/{chunk-2ZHONRVH.js → chunk-UR6J7NHR.js} +25 -5
- package/dist/chunk-UR6J7NHR.js.map +1 -0
- package/dist/{cross-tab-session-I2FKYSBE.js → cross-tab-session-AH27QKXW.js} +5 -5
- package/dist/{cross-tab-session-I2FKYSBE.js.map → cross-tab-session-AH27QKXW.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 +4 -3
- 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 +24 -7
- 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-2ZHONRVH.js.map +0 -1
- package/dist/chunk-K6LWWPXZ.js.map +0 -1
- package/dist/chunk-PLY23VRX.js.map +0 -1
- package/dist/chunk-YEFSBGK2.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-OXPA3PYS.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",
|
|
@@ -440,7 +443,7 @@ function initializeHttpClient(clientConfig) {
|
|
|
440
443
|
migrateLegacyStorageKeys();
|
|
441
444
|
}).catch(() => {
|
|
442
445
|
});
|
|
443
|
-
void import('./cross-tab-session-
|
|
446
|
+
void import('./cross-tab-session-AH27QKXW.js').then(({ installCrossTabSessionListener }) => {
|
|
444
447
|
installCrossTabSessionListener();
|
|
445
448
|
}).catch(() => {
|
|
446
449
|
});
|
|
@@ -1704,23 +1707,23 @@ var mergeRecordWriteBody = (payload, paramsObject, options) => {
|
|
|
1704
1707
|
};
|
|
1705
1708
|
|
|
1706
1709
|
// src/main/features/auth/client/authentication-client.ts
|
|
1710
|
+
function hubPortalQuery(hubId, portalId) {
|
|
1711
|
+
const queryParams = {};
|
|
1712
|
+
if (hubId != null) {
|
|
1713
|
+
queryParams.hubId = hubId;
|
|
1714
|
+
}
|
|
1715
|
+
const resolvedPortalId = portalId ?? (config?.devPortalId != null && String(config.devPortalId).trim() !== "" ? Number(config.devPortalId) : void 0);
|
|
1716
|
+
if (resolvedPortalId != null && !Number.isNaN(resolvedPortalId)) {
|
|
1717
|
+
queryParams.portalId = resolvedPortalId;
|
|
1718
|
+
}
|
|
1719
|
+
return Object.keys(queryParams).length > 0 ? queryParams : void 0;
|
|
1720
|
+
}
|
|
1707
1721
|
var authenticationClient = {
|
|
1708
1722
|
authentication: {
|
|
1709
1723
|
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
1724
|
const email = data.email ?? data.username;
|
|
1719
1725
|
return AuthHttpClient.post(
|
|
1720
|
-
generateApiUrl({
|
|
1721
|
-
route: API_ENDPOINTS.PRE_LOGIN,
|
|
1722
|
-
queryParams: Object.keys(queryParams).length > 0 ? queryParams : void 0
|
|
1723
|
-
}),
|
|
1726
|
+
generateApiUrl({ route: API_ENDPOINTS.PRE_LOGIN, queryParams: hubPortalQuery(data.hubId, data.portalId) }),
|
|
1724
1727
|
{ email }
|
|
1725
1728
|
);
|
|
1726
1729
|
},
|
|
@@ -1744,7 +1747,6 @@ var authenticationClient = {
|
|
|
1744
1747
|
},
|
|
1745
1748
|
verifyOtp: (data) => mfaClient.verifyOtp(data),
|
|
1746
1749
|
verifyEmail: (data) => AuthHttpClient.post(API_ENDPOINTS.VERIFY_EMAIL, data),
|
|
1747
|
-
/** Legacy client greenfield signup route (predates /api/auth/* registry). */
|
|
1748
1750
|
register: (data) => AuthHttpClient.post("/register", data),
|
|
1749
1751
|
resetPasswordVerifyToken: (data) => AuthHttpClient.post(API_ENDPOINTS.RESET_PASSWORD_VERIFY_TOKEN, data),
|
|
1750
1752
|
resetPassword: (data) => AuthHttpClient.post(API_ENDPOINTS.RESET_PASSWORD, data),
|
|
@@ -1772,21 +1774,27 @@ var authenticationClient = {
|
|
|
1772
1774
|
}),
|
|
1773
1775
|
{ code: payload.code }
|
|
1774
1776
|
),
|
|
1775
|
-
getLoginBootstrap: (payload) =>
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
queryParams
|
|
1779
|
-
}
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1777
|
+
getLoginBootstrap: (payload) => AuthHttpClient.get(
|
|
1778
|
+
generateApiUrl({
|
|
1779
|
+
route: API_ENDPOINTS.LOGIN_BOOTSTRAP,
|
|
1780
|
+
queryParams: hubPortalQuery(payload?.hubId, payload?.portalId)
|
|
1781
|
+
})
|
|
1782
|
+
),
|
|
1783
|
+
signInLink: {
|
|
1784
|
+
send: (data) => AuthHttpClient.post(
|
|
1785
|
+
generateApiUrl({
|
|
1786
|
+
route: API_ENDPOINTS.SIGN_IN_LINK_SEND,
|
|
1787
|
+
queryParams: hubPortalQuery(data.hubId, data.portalId)
|
|
1788
|
+
}),
|
|
1789
|
+
{ email: data.email }
|
|
1790
|
+
),
|
|
1791
|
+
verify: (data) => AuthHttpClient.post(API_ENDPOINTS.SIGN_IN_LINK_VERIFY, data),
|
|
1792
|
+
validateToken: (token) => AuthHttpClient.get(
|
|
1785
1793
|
generateApiUrl({
|
|
1786
|
-
route: API_ENDPOINTS.
|
|
1787
|
-
queryParams:
|
|
1794
|
+
route: API_ENDPOINTS.SIGN_IN_LINK_VALIDATE,
|
|
1795
|
+
queryParams: { token }
|
|
1788
1796
|
})
|
|
1789
|
-
)
|
|
1797
|
+
)
|
|
1790
1798
|
}
|
|
1791
1799
|
},
|
|
1792
1800
|
sso: {
|
|
@@ -1862,7 +1870,7 @@ var crmClient = {
|
|
|
1862
1870
|
listTableParams.filterValue = "";
|
|
1863
1871
|
}
|
|
1864
1872
|
const fParams = getLinkParams();
|
|
1865
|
-
listTableParams = { ...payload?.isFristTimeLoadData && fParams && !payload?.isHome ? fParams : listTableParams, ...paramsObject };
|
|
1873
|
+
listTableParams = { ...payload?.isFristTimeLoadData && fParams && !payload?.isHome && payload?.componentName !== "ticket" ? fParams : listTableParams, ...paramsObject };
|
|
1866
1874
|
if (!payload?.isFristTimeLoadData || !fParams) {
|
|
1867
1875
|
await updateLink2({
|
|
1868
1876
|
sort: listTableParams?.sort,
|
|
@@ -1907,6 +1915,73 @@ var crmClient = {
|
|
|
1907
1915
|
const apiUrl = generateApiUrl({ route, params, queryParams: listTableParams });
|
|
1908
1916
|
return HttpClient.get(apiUrl);
|
|
1909
1917
|
},
|
|
1918
|
+
existingList: async (payload = null, listTableParams = null) => {
|
|
1919
|
+
const { setObjectsQueryParams } = actions2;
|
|
1920
|
+
const queryParams = payload?.queryParams;
|
|
1921
|
+
const { updateLink: updateLink2, getLinkParams } = updateLink();
|
|
1922
|
+
const { paramsObject, parentAccessLabel } = getParamDetails2({ type: payload?.componentName });
|
|
1923
|
+
const userData = userStore.getState().profile;
|
|
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 });
|
|
1983
|
+
return HttpClient.get(apiUrl);
|
|
1984
|
+
},
|
|
1910
1985
|
sideBarList: async (payload = null) => {
|
|
1911
1986
|
const { setMultiObjectsQueryParams } = actions2;
|
|
1912
1987
|
const hubspotObjectTypeId = payload?.hubspotObjectTypeId;
|
|
@@ -2504,5 +2579,5 @@ function createMutation(mutationFn, options) {
|
|
|
2504
2579
|
}
|
|
2505
2580
|
|
|
2506
2581
|
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 };
|
|
2507
|
-
//# sourceMappingURL=chunk-
|
|
2508
|
-
//# sourceMappingURL=chunk-
|
|
2582
|
+
//# sourceMappingURL=chunk-DZF5LIXW.js.map
|
|
2583
|
+
//# sourceMappingURL=chunk-DZF5LIXW.js.map
|