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