@robosystems/client 0.2.2 → 0.2.3

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.
@@ -23,7 +23,6 @@ class QueryClient {
23
23
  query: {
24
24
  mode: options.mode,
25
25
  test_mode: options.testMode,
26
- token: this.config.token, // Pass JWT token for SSE authentication
27
26
  },
28
27
  };
29
28
  // Execute the query
@@ -74,7 +74,6 @@ export class QueryClient {
74
74
  query: {
75
75
  mode: options.mode,
76
76
  test_mode: options.testMode,
77
- token: this.config.token, // Pass JWT token for SSE authentication
78
77
  },
79
78
  }
80
79
 
@@ -35,7 +35,6 @@ class TableIngestClient {
35
35
  const uploadUrlResponse = await (0, sdk_gen_1.getUploadUrl)({
36
36
  path: { graph_id: graphId, table_name: tableName },
37
37
  body: uploadRequest,
38
- query: this.config.token ? { token: this.config.token } : undefined,
39
38
  });
40
39
  if (uploadUrlResponse.error || !uploadUrlResponse.data) {
41
40
  return {
@@ -85,7 +84,6 @@ class TableIngestClient {
85
84
  const updateResponse = await (0, sdk_gen_1.updateFileStatus)({
86
85
  path: { graph_id: graphId, file_id: fileId },
87
86
  body: statusUpdate,
88
- query: this.config.token ? { token: this.config.token } : undefined,
89
87
  });
90
88
  if (updateResponse.error || !updateResponse.data) {
91
89
  return {
@@ -131,7 +129,6 @@ class TableIngestClient {
131
129
  try {
132
130
  const response = await (0, sdk_gen_1.listTables)({
133
131
  path: { graph_id: graphId },
134
- query: this.config.token ? { token: this.config.token } : undefined,
135
132
  });
136
133
  if (response.error || !response.data) {
137
134
  console.error('Failed to list tables:', response.error);
@@ -163,7 +160,6 @@ class TableIngestClient {
163
160
  const response = await (0, sdk_gen_1.ingestTables)({
164
161
  path: { graph_id: graphId },
165
162
  body: ingestRequest,
166
- query: this.config.token ? { token: this.config.token } : undefined,
167
163
  });
168
164
  if (response.error || !response.data) {
169
165
  return {
@@ -102,7 +102,6 @@ export class TableIngestClient {
102
102
  const uploadUrlResponse = await getUploadUrl({
103
103
  path: { graph_id: graphId, table_name: tableName },
104
104
  body: uploadRequest,
105
- query: this.config.token ? { token: this.config.token } : undefined,
106
105
  })
107
106
 
108
107
  if (uploadUrlResponse.error || !uploadUrlResponse.data) {
@@ -162,7 +161,6 @@ export class TableIngestClient {
162
161
  const updateResponse = await updateFileStatus({
163
162
  path: { graph_id: graphId, file_id: fileId },
164
163
  body: statusUpdate,
165
- query: this.config.token ? { token: this.config.token } : undefined,
166
164
  })
167
165
 
168
166
  if (updateResponse.error || !updateResponse.data) {
@@ -214,7 +212,6 @@ export class TableIngestClient {
214
212
  try {
215
213
  const response = await listTables({
216
214
  path: { graph_id: graphId },
217
- query: this.config.token ? { token: this.config.token } : undefined,
218
215
  })
219
216
 
220
217
  if (response.error || !response.data) {
@@ -253,7 +250,6 @@ export class TableIngestClient {
253
250
  const response = await ingestTables({
254
251
  path: { graph_id: graphId },
255
252
  body: ingestRequest,
256
- query: this.config.token ? { token: this.config.token } : undefined,
257
253
  })
258
254
 
259
255
  if (response.error || !response.data) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robosystems/client",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "TypeScript client library for RoboSystems Financial Knowledge Graph API",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",