woodsportal-client-sdk 4.1.0-dev.1 → 4.1.0-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/{chunk-ENWQHCH5.js → chunk-AB5HNVRX.js} +12 -8
- package/dist/chunk-AB5HNVRX.js.map +1 -0
- package/dist/{chunk-UMGFFICK.js → chunk-KMPTAGIW.js} +3 -3
- package/dist/{chunk-UMGFFICK.js.map → chunk-KMPTAGIW.js.map} +1 -1
- package/dist/{chunk-XE6DNZDT.js → chunk-R4IKHQVC.js} +3 -3
- package/dist/{chunk-XE6DNZDT.js.map → chunk-R4IKHQVC.js.map} +1 -1
- package/dist/entries/auth.js +3 -3
- package/dist/entries/crm.js +3 -3
- package/dist/index.js +6 -6
- package/package.json +1 -1
- package/dist/chunk-ENWQHCH5.js.map +0 -1
|
@@ -8,9 +8,6 @@ import axios from 'axios';
|
|
|
8
8
|
var API_DATE_RE = /^\d{4}-\d{2}-\d{2}$/;
|
|
9
9
|
function shouldSkipApiDate(url) {
|
|
10
10
|
if (!url.startsWith("/api/")) return true;
|
|
11
|
-
if (url.startsWith("/api/auth/") || url === "/api/auth") return true;
|
|
12
|
-
if (url.startsWith("/api/admin/auth/") || url === "/api/admin/auth") return true;
|
|
13
|
-
if (url.startsWith("/api/platform/auth/") || url === "/api/platform/auth") return true;
|
|
14
11
|
if (url.startsWith("/api/platform/")) return true;
|
|
15
12
|
if (url.startsWith("/api/public-app/")) return true;
|
|
16
13
|
if (url.startsWith("/api/webhooks/")) return true;
|
|
@@ -1870,10 +1867,17 @@ var authenticationClient = {
|
|
|
1870
1867
|
};
|
|
1871
1868
|
|
|
1872
1869
|
// src/main/features/crm/client/crm-client.ts
|
|
1870
|
+
function resolveCrmObjectRouteParams(payload) {
|
|
1871
|
+
const hubspotObjectTypeId = payload?.hubspotObjectTypeId ?? payload?.params?.hubspotObjectTypeId;
|
|
1872
|
+
return {
|
|
1873
|
+
...payload?.params || {},
|
|
1874
|
+
...hubspotObjectTypeId ? { hubspotObjectTypeId } : {}
|
|
1875
|
+
};
|
|
1876
|
+
}
|
|
1873
1877
|
var crmClient = {
|
|
1874
1878
|
pipeline: {
|
|
1875
1879
|
list: (payload = null, listTableParams = null) => {
|
|
1876
|
-
const params = payload
|
|
1880
|
+
const params = resolveCrmObjectRouteParams(payload);
|
|
1877
1881
|
const queryParams = payload?.queryParams;
|
|
1878
1882
|
const { paramsObject } = getParamDetails2({ type: payload?.componentName });
|
|
1879
1883
|
const userData = userStore.getState().profile;
|
|
@@ -1901,7 +1905,7 @@ var crmClient = {
|
|
|
1901
1905
|
},
|
|
1902
1906
|
stage: {
|
|
1903
1907
|
list: (payload = null) => {
|
|
1904
|
-
const params = payload
|
|
1908
|
+
const params = resolveCrmObjectRouteParams(payload);
|
|
1905
1909
|
const queryParams = payload?.queryParams;
|
|
1906
1910
|
const apiUrl = generateApiUrl({ route: API_ENDPOINTS.STAGES, params, queryParams });
|
|
1907
1911
|
return HttpClient.get(apiUrl);
|
|
@@ -1910,7 +1914,7 @@ var crmClient = {
|
|
|
1910
1914
|
object: {
|
|
1911
1915
|
list: async (payload = null, listTableParams = null) => {
|
|
1912
1916
|
const { setObjectsQueryParams } = actions2;
|
|
1913
|
-
const params = payload
|
|
1917
|
+
const params = resolveCrmObjectRouteParams(payload);
|
|
1914
1918
|
const queryParams = payload?.queryParams;
|
|
1915
1919
|
const { updateLink: updateLink2, getLinkParams } = updateLink();
|
|
1916
1920
|
const tabHubspotObjectTypeId = payload?.hubspotObjectTypeId ?? payload?.params?.hubspotObjectTypeId;
|
|
@@ -2599,5 +2603,5 @@ function createMutation(mutationFn, options) {
|
|
|
2599
2603
|
}
|
|
2600
2604
|
|
|
2601
2605
|
export { API_ENDPOINTS, Client, HttpClient, applyContractApiDate, buildCachePurgeRequest, buildCrmListPurgeTarget, buildCrmSinglePurgeTarget, buildEngagementPurgeTarget, buildPortalConfigPurgeTarget, buildUserSessionPurgeTarget, createCachePurgeJob, createMutation, extractEngagementItemIdFromWriteResponse, extractHubspotRecordIdFromWriteResponse, generateApiUrl, getAuthRefreshToken, getConfiguredContractApiDate, getFieldErrors, getFormErrors, initializeHttpClient, mergePurgeTargets, navigationApi, purgeCrmCombined, purgeCrmDetailAndListAfterCrmWrite, purgeCrmListCache, purgeCrmListCacheAfterCrmWrite, purgeCrmObjectDataCache, purgeCrmRecordCache, purgeEngagementCaches, purgeEngagementCachesAfterCrmWrite, resolveCrmListPurgeQuery, resolveListTableParams, setEditorPreviewMockHandler, startVisibilityRefreshScheduler, stopVisibilityRefreshScheduler, toCachePurgeListQuery };
|
|
2602
|
-
//# sourceMappingURL=chunk-
|
|
2603
|
-
//# sourceMappingURL=chunk-
|
|
2606
|
+
//# sourceMappingURL=chunk-AB5HNVRX.js.map
|
|
2607
|
+
//# sourceMappingURL=chunk-AB5HNVRX.js.map
|