Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
requestAccessToken: payload =>
dispatch(sdkActions.post({ uri: `/tokens/sso`, payload })),
});
export const pushMetricHistogram = ({ payload }) =>
sdkActions.post({
uri: '/metrics/histograms',
mcApiProxyTarget: MC_API_PROXY_TARGETS.MC_METRICS,
payload: JSON.stringify(payload),
});
requestAccessToken: payload =>
dispatch(sdkActions.post({ uri: `/tokens`, payload })),
});
export const pushDependencyVersionCounter = ({ payload }) =>
sdkActions.post({
uri: '/metrics/counters',
mcApiProxyTarget: MC_API_PROXY_TARGETS.MC_METRICS,
payload: JSON.stringify(payload),
});
pimSearchProductIds: searchText =>
dispatch(
sdkActions.post({
uri: `/${ownProps.applicationContext.project.key}/search/products`,
mcApiProxyTarget: MC_API_PROXY_TARGETS.PIM_SEARCH,
payload: {
query: {
fullText: {
field: 'name',
language: ownProps.applicationContext.dataLocale,
value: searchText,
},
},
sort: [
{
field: 'name',
language: ownProps.applicationContext.dataLocale,
order: 'desc',
},