@streamoid/catalogix-chat 0.2.23 → 0.2.24
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.ts +1 -0
- package/dist/index.js +3 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -4,6 +4,7 @@ import { useEffect as useEffect9 } from "react";
|
|
|
4
4
|
// src/api.ts
|
|
5
5
|
var _config = {
|
|
6
6
|
catalogixBaseUrl: "",
|
|
7
|
+
catalogingBaseUrl: "https://cataloging.streamoid.com",
|
|
7
8
|
keplerProxyPrefix: "/kepler-api"
|
|
8
9
|
};
|
|
9
10
|
function configureApi(config) {
|
|
@@ -3154,13 +3155,13 @@ async function mergeFeed(fileUrl, feedFormat, changes) {
|
|
|
3154
3155
|
);
|
|
3155
3156
|
}
|
|
3156
3157
|
async function fetchValidValues(sourceMp, marketplaceOv, category, attribute) {
|
|
3157
|
-
const {
|
|
3158
|
+
const { catalogingBaseUrl } = getApiConfig();
|
|
3158
3159
|
const params = new URLSearchParams({
|
|
3159
3160
|
response_style: "light",
|
|
3160
3161
|
category,
|
|
3161
3162
|
attribute
|
|
3162
3163
|
});
|
|
3163
|
-
const url = `${
|
|
3164
|
+
const url = `${catalogingBaseUrl}/marketplaces/${sourceMp}/versions/${marketplaceOv}/structure?${params}`;
|
|
3164
3165
|
const resp = await fetchJson(url);
|
|
3165
3166
|
return resp[attribute] ?? Object.values(resp)[0] ?? [];
|
|
3166
3167
|
}
|
package/package.json
CHANGED