woodsportal-client-sdk 4.0.9-dev.0 → 4.0.9-dev.2
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/{cache-purge-rOALAcjJ.d.ts → cache-purge-CxcMgI-h.d.ts} +1 -1
- package/dist/{chunk-SISBYZGN.js → chunk-GGEGYZL4.js} +34 -7
- package/dist/chunk-GGEGYZL4.js.map +1 -0
- package/dist/{chunk-N7YG5QBI.js → chunk-TQZGDYTJ.js} +53 -3
- package/dist/chunk-TQZGDYTJ.js.map +1 -0
- package/dist/{chunk-H6DN26ZU.js → chunk-YDGSGRYQ.js} +3 -3
- package/dist/{chunk-H6DN26ZU.js.map → chunk-YDGSGRYQ.js.map} +1 -1
- package/dist/entries/auth.d.ts +8 -3
- package/dist/entries/auth.js +3 -3
- package/dist/entries/crm.d.ts +3 -3
- package/dist/entries/crm.js +3 -3
- package/dist/{index-B-IGDI9L.d.ts → index-CaZ3o_bt.d.ts} +12 -1
- package/dist/index.d.ts +22 -6
- package/dist/index.js +6 -6
- package/dist/{route-guard-contract-KaQaafb7.d.ts → route-guard-contract-BK-IU5LK.d.ts} +21 -2
- package/package.json +1 -1
- package/dist/chunk-N7YG5QBI.js.map +0 -1
- package/dist/chunk-SISBYZGN.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as MutationOptions } from './index-
|
|
1
|
+
import { M as MutationOptions } from './index-CaZ3o_bt.js';
|
|
2
2
|
|
|
3
3
|
declare function purge(options?: MutationOptions<unknown, unknown>): {
|
|
4
4
|
mutate: (payload?: Record<string, unknown> | undefined) => Promise<unknown>;
|
|
@@ -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",
|
|
@@ -1787,6 +1790,32 @@ var authenticationClient = {
|
|
|
1787
1790
|
queryParams: Object.keys(queryParams).length > 0 ? queryParams : void 0
|
|
1788
1791
|
})
|
|
1789
1792
|
);
|
|
1793
|
+
},
|
|
1794
|
+
signInLink: {
|
|
1795
|
+
send: (data) => {
|
|
1796
|
+
const queryParams = {};
|
|
1797
|
+
if (data.hubId != null) {
|
|
1798
|
+
queryParams.hubId = data.hubId;
|
|
1799
|
+
}
|
|
1800
|
+
const resolvedPortalId = data.portalId ?? (config?.devPortalId != null && String(config.devPortalId).trim() !== "" ? Number(config.devPortalId) : void 0);
|
|
1801
|
+
if (resolvedPortalId != null && !Number.isNaN(resolvedPortalId)) {
|
|
1802
|
+
queryParams.portalId = resolvedPortalId;
|
|
1803
|
+
}
|
|
1804
|
+
return AuthHttpClient.post(
|
|
1805
|
+
generateApiUrl({
|
|
1806
|
+
route: API_ENDPOINTS.SIGN_IN_LINK_SEND,
|
|
1807
|
+
queryParams
|
|
1808
|
+
}),
|
|
1809
|
+
{ email: data.email }
|
|
1810
|
+
);
|
|
1811
|
+
},
|
|
1812
|
+
verify: (data) => AuthHttpClient.post(API_ENDPOINTS.SIGN_IN_LINK_VERIFY, data),
|
|
1813
|
+
validateToken: (token) => AuthHttpClient.get(
|
|
1814
|
+
generateApiUrl({
|
|
1815
|
+
route: API_ENDPOINTS.SIGN_IN_LINK_VALIDATE,
|
|
1816
|
+
queryParams: { token }
|
|
1817
|
+
})
|
|
1818
|
+
)
|
|
1790
1819
|
}
|
|
1791
1820
|
},
|
|
1792
1821
|
sso: {
|
|
@@ -1922,11 +1951,9 @@ var crmClient = {
|
|
|
1922
1951
|
return HttpClient.get(apiUrl);
|
|
1923
1952
|
},
|
|
1924
1953
|
objectFormOptions: (payload = null) => {
|
|
1925
|
-
const params =
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
};
|
|
1929
|
-
const apiUrl = generateApiUrl({ route: API_ENDPOINTS.OBJECTS_FORM_OPTIONS, params, queryParams: payload?.params });
|
|
1954
|
+
const params = payload?.params;
|
|
1955
|
+
const queryParams = payload?.queryParams;
|
|
1956
|
+
const apiUrl = generateApiUrl({ route: API_ENDPOINTS.OBJECTS_FORM_OPTIONS, params, queryParams });
|
|
1930
1957
|
return HttpClient.get(apiUrl);
|
|
1931
1958
|
},
|
|
1932
1959
|
create: async (props = null) => {
|
|
@@ -2506,5 +2533,5 @@ function createMutation(mutationFn, options) {
|
|
|
2506
2533
|
}
|
|
2507
2534
|
|
|
2508
2535
|
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-
|
|
2536
|
+
//# sourceMappingURL=chunk-GGEGYZL4.js.map
|
|
2537
|
+
//# sourceMappingURL=chunk-GGEGYZL4.js.map
|