@graph8/sdk 0.12.0 → 0.12.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/index.d.mts +78 -16
- package/dist/index.d.ts +78 -16
- package/dist/index.js +12 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -6
- package/dist/index.mjs.map +1 -1
- package/dist/react.d.mts +77 -15
- package/dist/react.d.ts +77 -15
- package/dist/react.js +12 -6
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +12 -6
- package/dist/react.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1703,14 +1703,20 @@ var createIntentClient = (apiKey, apiUrl) => {
|
|
|
1703
1703
|
/**
|
|
1704
1704
|
* Find companies whose users visited a specific URL (intent search).
|
|
1705
1705
|
*
|
|
1706
|
-
*
|
|
1707
|
-
*
|
|
1706
|
+
* Previously posted to the bare-host `/intent-search/url-companies`, bypassing
|
|
1707
|
+
* the shared `post()` helper. That route is JWT-only, so this method could
|
|
1708
|
+
* never actually work with an API key. It now goes through
|
|
1709
|
+
* `/api/v1/intent/url-companies` like the rest of the intent surface (g8 issue
|
|
1710
|
+
* #16536).
|
|
1711
|
+
*
|
|
1712
|
+
* Returns a bare aggregate, NOT the `{ data }` envelope — the previous
|
|
1713
|
+
* `{ data: IntentCompany[] }` signature never matched what the API sends.
|
|
1714
|
+
*
|
|
1715
|
+
* `date_from` / `date_to` are accepted for backwards compatibility but have
|
|
1716
|
+
* never been read by this endpoint; use `days` to set the lookback window.
|
|
1708
1717
|
*/
|
|
1709
1718
|
async urlCompanies(url, params = {}) {
|
|
1710
|
-
return
|
|
1711
|
-
method: "POST",
|
|
1712
|
-
body: { url, ...params }
|
|
1713
|
-
});
|
|
1719
|
+
return post("/intent/url-companies", { url, ...params });
|
|
1714
1720
|
}
|
|
1715
1721
|
};
|
|
1716
1722
|
};
|