@gravity-ai/api 1.1.3 → 1.1.4

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.js CHANGED
@@ -138,7 +138,7 @@ var Client = class {
138
138
  excludedTopics: params.excludedTopics ?? this.excludedTopics,
139
139
  relevancy: params.relevancy ?? this.relevancy
140
140
  };
141
- const response = await this.axios.post("/api/v1/ad/contextual", body);
141
+ const response = await this.axios.post("/api/v1/ad", body);
142
142
  if (response.status === 204) {
143
143
  return null;
144
144
  }
package/dist/index.mjs CHANGED
@@ -102,7 +102,7 @@ var Client = class {
102
102
  excludedTopics: params.excludedTopics ?? this.excludedTopics,
103
103
  relevancy: params.relevancy ?? this.relevancy
104
104
  };
105
- const response = await this.axios.post("/api/v1/ad/contextual", body);
105
+ const response = await this.axios.post("/api/v1/ad", body);
106
106
  if (response.status === 204) {
107
107
  return null;
108
108
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ai/api",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "description": "Gravity JS SDK for retrieving targeted advertisements",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",