@typedb/driver-http 3.7.0-rc1 → 3.7.0-rc4

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.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); async function _asyncNullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return await rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }// ../../../../../../../../../execroot/typedb_driver/bazel-out/darwin_arm64-opt/bin/http-ts/src/params.ts
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); async function _asyncNullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return await rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }// ../../../../../../../../../execroot/typedb_driver/bazel-out/k8-opt/bin/http-ts/src/params.ts
2
2
  function isBasicParams(params) {
3
3
  return `addresses` in params;
4
4
  }
@@ -10,7 +10,7 @@ function remoteOrigin(params) {
10
10
  else return `${params.translatedAddresses[0].external}`;
11
11
  }
12
12
 
13
- // ../../../../../../../../../execroot/typedb_driver/bazel-out/darwin_arm64-opt/bin/http-ts/src/response.ts
13
+ // ../../../../../../../../../execroot/typedb_driver/bazel-out/k8-opt/bin/http-ts/src/response.ts
14
14
  function isApiError(err) {
15
15
  return err != null && typeof err.code === "string" && typeof err.message === "string";
16
16
  }
@@ -20,13 +20,16 @@ function isOkResponse(res) {
20
20
  function isApiErrorResponse(res) {
21
21
  return typeof res === "object" && "err" in res;
22
22
  }
23
+ function isQueryResponseLegacy(res) {
24
+ return res.query != null && "blocks" in res.query;
25
+ }
23
26
 
24
- // ../../../../../../../../../execroot/typedb_driver/bazel-out/darwin_arm64-opt/bin/http-ts/src/analyzed-conjunction.ts
27
+ // ../../../../../../../../../execroot/typedb_driver/bazel-out/k8-opt/bin/http-ts/src/analyzed-conjunction.ts
25
28
  function getVariableName(structure, variable) {
26
29
  return _optionalChain([structure, 'access', _ => _.variables, 'access', _2 => _2[variable.id], 'optionalAccess', _3 => _3.name]);
27
30
  }
28
31
 
29
- // ../../../../../../../../../execroot/typedb_driver/bazel-out/darwin_arm64-opt/bin/http-ts/src/index.ts
32
+ // ../../../../../../../../../execroot/typedb_driver/bazel-out/k8-opt/bin/http-ts/src/index.ts
30
33
  var HTTP_UNAUTHORIZED = 401;
31
34
  var TypeDBHttpDriver = class {
32
35
  constructor(params) {
@@ -189,5 +192,6 @@ var TypeDBHttpDriver = class {
189
192
 
190
193
 
191
194
 
192
- exports.TypeDBHttpDriver = TypeDBHttpDriver; exports.getVariableName = getVariableName; exports.isApiError = isApiError; exports.isApiErrorResponse = isApiErrorResponse; exports.isBasicParams = isBasicParams; exports.isOkResponse = isOkResponse; exports.isTranslatedParams = isTranslatedParams; exports.remoteOrigin = remoteOrigin;
195
+
196
+ exports.TypeDBHttpDriver = TypeDBHttpDriver; exports.getVariableName = getVariableName; exports.isApiError = isApiError; exports.isApiErrorResponse = isApiErrorResponse; exports.isBasicParams = isBasicParams; exports.isOkResponse = isOkResponse; exports.isQueryResponseLegacy = isQueryResponseLegacy; exports.isTranslatedParams = isTranslatedParams; exports.remoteOrigin = remoteOrigin;
193
197
  //# sourceMappingURL=index.cjs.map
package/dist/index.d.ts CHANGED
@@ -65,180 +65,180 @@ interface Value {
65
65
  }
66
66
  type Concept = Type | Entity | Relation | Attribute | Value;
67
67
 
68
- interface ConceptRowsQueryResponseForStudio {
68
+ interface ConceptRowsQueryResponseLegacy {
69
69
  answerType: "conceptRows";
70
70
  queryType: QueryType;
71
71
  comment: string | null;
72
- query: QueryStructureForStudio | null;
72
+ query: QueryStructureLegacy | null;
73
73
  answers: ConceptRowAnswer[];
74
74
  }
75
- interface QueryStructureForStudio {
76
- blocks: {
77
- constraints: QueryConstraintAnyForStudio[];
78
- }[];
75
+ interface QueryConjunctionLegacy {
76
+ constraints: (ConstraintAny | ConstraintExpressionLegacy | ConstraintLinksLegacy)[];
77
+ }
78
+ interface QueryStructureLegacy {
79
+ blocks: QueryConjunctionLegacy[];
79
80
  variables: {
80
- [name: string]: QueryVariableInfo;
81
+ [name: string]: VariableInfo;
81
82
  };
82
83
  outputs: string[];
83
84
  }
84
- type QueryConstraintAnyForStudio = QueryConstraintIsa | QueryConstraintIsaExact | QueryConstraintHas | QueryConstraintLinksForStudio | QueryConstraintSub | QueryConstraintSubExact | QueryConstraintOwns | QueryConstraintRelates | QueryConstraintPlays | QueryConstraintExpressionForStudio | QueryConstraintFunction | QueryConstraintComparison | QueryConstraintIs | QueryConstraintIid | QueryConstraintKind | QueryConstraintValue | QueryConstraintLabel;
85
- interface QueryConstraintLinksForStudio {
85
+ interface ConstraintLinksLegacy {
86
86
  tag: "links";
87
- textSpan: QueryConstraintSpan;
88
- relation: QueryVertexVariable;
89
- player: QueryVertexVariable;
90
- role: QueryVertexVariable | QueryVertexLabel;
87
+ textSpan: ConstraintSpan;
88
+ relation: ConstraintVertexVariable;
89
+ player: ConstraintVertexVariable;
90
+ role: ConstraintVertexVariable | ConstraintVertexLabel;
91
91
  }
92
- interface QueryConstraintExpressionForStudio {
92
+ interface ConstraintExpressionLegacy {
93
93
  tag: "expression";
94
- textSpan: QueryConstraintSpan;
94
+ textSpan: ConstraintSpan;
95
95
  text: string;
96
- arguments: QueryVertexVariable[];
97
- assigned: QueryVertexVariable[];
96
+ arguments: ConstraintVertexVariable[];
97
+ assigned: ConstraintVertexVariable[];
98
98
  }
99
99
 
100
- declare function getVariableName(structure: QueryStructureForStudio | AnalyzedPipeline, variable: QueryVertexVariable): string | null;
101
- type QueryVertex = QueryVertexVariable | QueryVertexLabel | QueryVertexValue | QueryVertexNamedRole;
102
- interface QueryVertexVariable {
100
+ declare function getVariableName(structure: AnalyzedPipeline | QueryStructureLegacy, variable: ConstraintVertexVariable): string | null;
101
+ type ConstraintVertexAny = ConstraintVertexVariable | ConstraintVertexLabel | ConstraintVertexValue | ConstraintVertexNamedRole;
102
+ interface ConstraintVertexVariable {
103
103
  tag: "variable";
104
104
  id: string;
105
105
  }
106
- interface QueryVertexLabel {
106
+ interface ConstraintVertexLabel {
107
107
  tag: "label";
108
108
  type: Type;
109
109
  }
110
- interface QueryVertexNamedRole {
110
+ interface ConstraintVertexNamedRole {
111
111
  tag: "namedRole";
112
112
  variable: string;
113
113
  name: string;
114
114
  }
115
- interface QueryVertexValue extends Value {
115
+ interface ConstraintVertexValue extends Value {
116
116
  tag: "value";
117
117
  }
118
118
  type ConjunctionIndex$1 = number;
119
- type QueryVariableInfo = {
119
+ type VariableInfo = {
120
120
  name: string | null;
121
121
  };
122
- type QueryConstraintAny = QueryConstraintIsa | QueryConstraintIsaExact | QueryConstraintHas | QueryConstraintLinks | QueryConstraintSub | QueryConstraintSubExact | QueryConstraintOwns | QueryConstraintRelates | QueryConstraintPlays | QueryConstraintExpression | QueryConstraintFunction | QueryConstraintComparison | QueryConstraintIs | QueryConstraintIid | QueryConstraintKind | QueryConstraintValue | QueryConstraintLabel | QueryConstraintOr | QueryConstraintNot | QueryConstraintTry;
123
- type QueryConstraintSpan = {
122
+ type ConstraintAny = ConstraintIsa | ConstraintIsaExact | ConstraintHas | ConstraintLinks | ConstraintSub | ConstraintSubExact | ConstraintOwns | ConstraintRelates | ConstraintPlays | ConstraintExpression | ConstraintFunction | ConstraintComparison | ConstraintIs | ConstraintIid | ConstraintKind | ConstraintValue | ConstraintLabel | ConstraintOr | ConstraintNot | ConstraintTry;
123
+ type ConstraintSpan = {
124
124
  begin: number;
125
125
  end: number;
126
126
  };
127
- interface QueryConstraintIsa {
127
+ interface ConstraintIsa {
128
128
  tag: "isa";
129
- textSpan: QueryConstraintSpan;
130
- instance: QueryVertexVariable;
131
- type: QueryVertexVariable | QueryVertexLabel;
129
+ textSpan: ConstraintSpan;
130
+ instance: ConstraintVertexVariable;
131
+ type: ConstraintVertexVariable | ConstraintVertexLabel;
132
132
  }
133
- interface QueryConstraintIsaExact {
133
+ interface ConstraintIsaExact {
134
134
  tag: "isa!";
135
- textSpan: QueryConstraintSpan;
136
- instance: QueryVertexVariable;
137
- type: QueryVertexVariable | QueryVertexLabel;
135
+ textSpan: ConstraintSpan;
136
+ instance: ConstraintVertexVariable;
137
+ type: ConstraintVertexVariable | ConstraintVertexLabel;
138
138
  }
139
- interface QueryConstraintHas {
139
+ interface ConstraintHas {
140
140
  tag: "has";
141
- textSpan: QueryConstraintSpan;
142
- owner: QueryVertexVariable;
143
- attribute: QueryVertexVariable;
141
+ textSpan: ConstraintSpan;
142
+ owner: ConstraintVertexVariable;
143
+ attribute: ConstraintVertexVariable;
144
144
  }
145
- interface QueryConstraintLinks {
145
+ interface ConstraintLinks {
146
146
  tag: "links";
147
- textSpan: QueryConstraintSpan;
148
- relation: QueryVertexVariable;
149
- player: QueryVertexVariable;
150
- role: QueryVertexVariable | QueryVertexNamedRole;
147
+ textSpan: ConstraintSpan;
148
+ relation: ConstraintVertexVariable;
149
+ player: ConstraintVertexVariable;
150
+ role: ConstraintVertexVariable | ConstraintVertexNamedRole;
151
151
  }
152
- interface QueryConstraintSub {
152
+ interface ConstraintSub {
153
153
  tag: "sub";
154
- textSpan: QueryConstraintSpan;
155
- subtype: QueryVertexVariable | QueryVertexLabel;
156
- supertype: QueryVertexVariable | QueryVertexLabel;
154
+ textSpan: ConstraintSpan;
155
+ subtype: ConstraintVertexVariable | ConstraintVertexLabel;
156
+ supertype: ConstraintVertexVariable | ConstraintVertexLabel;
157
157
  }
158
- interface QueryConstraintSubExact {
158
+ interface ConstraintSubExact {
159
159
  tag: "sub!";
160
- textSpan: QueryConstraintSpan;
161
- subtype: QueryVertexVariable | QueryVertexLabel;
162
- supertype: QueryVertexVariable | QueryVertexLabel;
160
+ textSpan: ConstraintSpan;
161
+ subtype: ConstraintVertexVariable | ConstraintVertexLabel;
162
+ supertype: ConstraintVertexVariable | ConstraintVertexLabel;
163
163
  }
164
- interface QueryConstraintOwns {
164
+ interface ConstraintOwns {
165
165
  tag: "owns";
166
- textSpan: QueryConstraintSpan;
167
- owner: QueryVertexVariable | QueryVertexLabel;
168
- attribute: QueryVertexVariable | QueryVertexLabel;
166
+ textSpan: ConstraintSpan;
167
+ owner: ConstraintVertexVariable | ConstraintVertexLabel;
168
+ attribute: ConstraintVertexVariable | ConstraintVertexLabel;
169
169
  }
170
- interface QueryConstraintRelates {
170
+ interface ConstraintRelates {
171
171
  tag: "relates";
172
- textSpan: QueryConstraintSpan;
173
- relation: QueryVertexVariable | QueryVertexLabel;
174
- role: QueryVertexVariable | QueryVertexLabel;
172
+ textSpan: ConstraintSpan;
173
+ relation: ConstraintVertexVariable | ConstraintVertexLabel;
174
+ role: ConstraintVertexVariable | ConstraintVertexLabel;
175
175
  }
176
- interface QueryConstraintPlays {
176
+ interface ConstraintPlays {
177
177
  tag: "plays";
178
- textSpan: QueryConstraintSpan;
179
- player: QueryVertexVariable | QueryVertexLabel;
180
- role: QueryVertexVariable | QueryVertexLabel;
178
+ textSpan: ConstraintSpan;
179
+ player: ConstraintVertexVariable | ConstraintVertexLabel;
180
+ role: ConstraintVertexVariable | ConstraintVertexLabel;
181
181
  }
182
- interface QueryConstraintExpression {
182
+ interface ConstraintExpression {
183
183
  tag: "expression";
184
- textSpan: QueryConstraintSpan;
184
+ textSpan: ConstraintSpan;
185
185
  text: string;
186
- arguments: QueryVertexVariable[];
187
- assigned: QueryVertexVariable;
186
+ arguments: ConstraintVertexVariable[];
187
+ assigned: ConstraintVertexVariable;
188
188
  }
189
- interface QueryConstraintFunction {
189
+ interface ConstraintFunction {
190
190
  tag: "functionCall";
191
- textSpan: QueryConstraintSpan;
191
+ textSpan: ConstraintSpan;
192
192
  name: string;
193
- arguments: QueryVertexVariable[];
194
- assigned: QueryVertexVariable[];
193
+ arguments: ConstraintVertexVariable[];
194
+ assigned: ConstraintVertexVariable[];
195
195
  }
196
- interface QueryConstraintComparison {
196
+ interface ConstraintComparison {
197
197
  tag: "comparison";
198
- textSpan: QueryConstraintSpan;
199
- lhs: QueryVertexVariable | QueryVertexValue;
200
- rhs: QueryVertexVariable | QueryVertexValue;
198
+ textSpan: ConstraintSpan;
199
+ lhs: ConstraintVertexVariable | ConstraintVertexValue;
200
+ rhs: ConstraintVertexVariable | ConstraintVertexValue;
201
201
  comparator: string;
202
202
  }
203
- interface QueryConstraintIs {
203
+ interface ConstraintIs {
204
204
  tag: "is";
205
- textSpan: QueryConstraintSpan;
206
- lhs: QueryVertexVariable;
207
- rhs: QueryVertexVariable;
205
+ textSpan: ConstraintSpan;
206
+ lhs: ConstraintVertexVariable;
207
+ rhs: ConstraintVertexVariable;
208
208
  }
209
- interface QueryConstraintIid {
209
+ interface ConstraintIid {
210
210
  tag: "iid";
211
- textSpan: QueryConstraintSpan;
212
- concept: QueryVertexVariable;
211
+ textSpan: ConstraintSpan;
212
+ concept: ConstraintVertexVariable;
213
213
  iid: string;
214
214
  }
215
- interface QueryConstraintLabel {
215
+ interface ConstraintLabel {
216
216
  tag: "label";
217
- textSpan: QueryConstraintSpan;
218
- type: QueryVertexVariable;
217
+ textSpan: ConstraintSpan;
218
+ type: ConstraintVertexVariable;
219
219
  label: string;
220
220
  }
221
- interface QueryConstraintValue {
221
+ interface ConstraintValue {
222
222
  tag: "value";
223
- textSpan: QueryConstraintSpan;
224
- attributeType: QueryVertexVariable;
223
+ textSpan: ConstraintSpan;
224
+ attributeType: ConstraintVertexVariable;
225
225
  valueType: string;
226
226
  }
227
- interface QueryConstraintKind {
227
+ interface ConstraintKind {
228
228
  tag: "kind";
229
- textSpan: QueryConstraintSpan;
230
- type: QueryVertexVariable;
229
+ textSpan: ConstraintSpan;
230
+ type: ConstraintVertexVariable;
231
231
  kind: string;
232
232
  }
233
- interface QueryConstraintOr {
233
+ interface ConstraintOr {
234
234
  tag: "or";
235
235
  branches: ConjunctionIndex$1[];
236
236
  }
237
- interface QueryConstraintNot {
237
+ interface ConstraintNot {
238
238
  tag: "not";
239
239
  conjunction: ConjunctionIndex$1;
240
240
  }
241
- interface QueryConstraintTry {
241
+ interface ConstraintTry {
242
242
  tag: "try";
243
243
  conjunction: ConjunctionIndex$1;
244
244
  }
@@ -247,13 +247,13 @@ type VariableId = string;
247
247
  interface AnalyzedPipeline {
248
248
  conjunctions: AnalyzedConjunction[];
249
249
  variables: {
250
- [name: VariableId]: QueryVariableInfo;
250
+ [name: VariableId]: VariableInfo;
251
251
  };
252
252
  stages: PipelineStage[];
253
253
  outputs: string[];
254
254
  }
255
255
  interface AnalyzedConjunction {
256
- constraints: QueryConstraintAny[];
256
+ constraints: ConstraintAny[];
257
257
  annotations: ConjunctionAnnotations;
258
258
  }
259
259
  type ConjunctionIndex = number;
@@ -405,7 +405,7 @@ interface ConceptDocumentsQueryResponse extends QueryResponseBase {
405
405
  answerType: "conceptDocuments";
406
406
  answers: ConceptDocument[];
407
407
  }
408
- type QueryResponse = OkQueryResponse | ConceptRowsQueryResponse | ConceptDocumentsQueryResponse | ConceptRowsQueryResponseForStudio;
408
+ type QueryResponse = OkQueryResponse | ConceptRowsQueryResponse | ConceptDocumentsQueryResponse | ConceptRowsQueryResponseLegacy;
409
409
  interface AnalyzeResponse {
410
410
  source: string;
411
411
  preamble: AnalyzedFunction[];
@@ -427,6 +427,7 @@ declare function isApiError(err: any): err is ApiError;
427
427
  type ApiResponse<OK_RES = {} | null> = ApiOkResponse<OK_RES> | ApiErrorResponse;
428
428
  declare function isOkResponse<OK_RES>(res: ApiResponse<OK_RES>): res is ApiOkResponse<OK_RES>;
429
429
  declare function isApiErrorResponse(res: ApiResponse): res is ApiErrorResponse;
430
+ declare function isQueryResponseLegacy(res: ConceptRowsQueryResponse | ConceptRowsQueryResponseLegacy): boolean;
430
431
 
431
432
  declare class TypeDBHttpDriver {
432
433
  private params;
@@ -487,4 +488,4 @@ interface User {
487
488
  username: string;
488
489
  }
489
490
 
490
- export { type AnalyzeOptions, type AnalyzeResponse, type Answer, type AnswerType, type ApiError, type ApiErrorResponse, type ApiOkResponse, type ApiResponse, type Attribute, type AttributeType, type Concept, type ConceptDocument, type ConceptDocumentsQueryResponse, type ConceptRow, type ConceptRowAnswer, type ConceptRowsQueryResponse, type Database, type DatabasesListResponse, type Distribution, type DriverParams, type DriverParamsBasic, type DriverParamsTranslated, type EdgeKind, type Entity, type EntityType, type InstantiableType, type OkQueryResponse, type QueryConstraintAny, type QueryConstraintComparison, type QueryConstraintExpression, type QueryConstraintFunction, type QueryConstraintHas, type QueryConstraintIid, type QueryConstraintIs, type QueryConstraintIsa, type QueryConstraintIsaExact, type QueryConstraintKind, type QueryConstraintLabel, type QueryConstraintLinks, type QueryConstraintNot, type QueryConstraintOr, type QueryConstraintOwns, type QueryConstraintPlays, type QueryConstraintRelates, type QueryConstraintSpan, type QueryConstraintSub, type QueryConstraintSubExact, type QueryConstraintTry, type QueryConstraintValue, type QueryOptions, type QueryResponse, type QueryResponseBase, type QueryType, type QueryVariableInfo, type QueryVertex, type QueryVertexLabel, type QueryVertexNamedRole, type QueryVertexValue, type QueryVertexVariable, type Relation, type RelationType, type RoleType, type SignInResponse, type ThingKind, type TransactionOpenResponse, type TransactionOptions, type TransactionType, type TranslatedAddress, type Type, TypeDBHttpDriver, type TypeKind, type User, type UsersListResponse, type Value, type ValueKind, type ValueType, type VersionResponse, getVariableName, isApiError, isApiErrorResponse, isBasicParams, isOkResponse, isTranslatedParams, remoteOrigin };
491
+ export { type AnalyzeOptions, type AnalyzeResponse, type AnalyzedConjunction, type AnalyzedFetch, type AnalyzedFunction, type AnalyzedPipeline, type Answer, type AnswerType, type ApiError, type ApiErrorResponse, type ApiOkResponse, type ApiResponse, type Attribute, type AttributeType, type Concept, type ConceptDocument, type ConceptDocumentsQueryResponse, type ConceptRow, type ConceptRowAnswer, type ConceptRowsQueryResponse, type ConceptRowsQueryResponseLegacy, type ConjunctionAnnotations, type ConstraintAny, type ConstraintComparison, type ConstraintExpression, type ConstraintExpressionLegacy, type ConstraintFunction, type ConstraintHas, type ConstraintIid, type ConstraintIs, type ConstraintIsa, type ConstraintIsaExact, type ConstraintKind, type ConstraintLabel, type ConstraintLinks, type ConstraintLinksLegacy, type ConstraintNot, type ConstraintOr, type ConstraintOwns, type ConstraintPlays, type ConstraintRelates, type ConstraintSpan, type ConstraintSub, type ConstraintSubExact, type ConstraintTry, type ConstraintValue, type ConstraintVertexAny, type ConstraintVertexLabel, type ConstraintVertexNamedRole, type ConstraintVertexValue, type ConstraintVertexVariable, type Database, type DatabasesListResponse, type Distribution, type DriverParams, type DriverParamsBasic, type DriverParamsTranslated, type EdgeKind, type Entity, type EntityType, type FetchAnnotationFieldEntry, type FunctionReturnStructure, type FunctionSingleReturnSelector, type InstantiableType, type OkQueryResponse, type PipelineStage, type QueryConjunctionLegacy, type QueryOptions, type QueryResponse, type QueryResponseBase, type QueryStructureLegacy, type QueryType, type Reducer, type Relation, type RelationType, type RoleType, type SignInResponse, type ThingKind, type TransactionOpenResponse, type TransactionOptions, type TransactionType, type TranslatedAddress, type Type, TypeDBHttpDriver, type TypeKind, type User, type UsersListResponse, type Value, type ValueKind, type ValueType, type VariableAnnotations, type VariableId, type VariableInfo, type VersionResponse, getVariableName, isApiError, isApiErrorResponse, isBasicParams, isOkResponse, isQueryResponseLegacy, isTranslatedParams, remoteOrigin };
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- // ../../../../../../../../../execroot/typedb_driver/bazel-out/darwin_arm64-opt/bin/http-ts/src/params.ts
1
+ // ../../../../../../../../../execroot/typedb_driver/bazel-out/k8-opt/bin/http-ts/src/params.ts
2
2
  function isBasicParams(params) {
3
3
  return `addresses` in params;
4
4
  }
@@ -10,7 +10,7 @@ function remoteOrigin(params) {
10
10
  else return `${params.translatedAddresses[0].external}`;
11
11
  }
12
12
 
13
- // ../../../../../../../../../execroot/typedb_driver/bazel-out/darwin_arm64-opt/bin/http-ts/src/response.ts
13
+ // ../../../../../../../../../execroot/typedb_driver/bazel-out/k8-opt/bin/http-ts/src/response.ts
14
14
  function isApiError(err) {
15
15
  return err != null && typeof err.code === "string" && typeof err.message === "string";
16
16
  }
@@ -20,13 +20,16 @@ function isOkResponse(res) {
20
20
  function isApiErrorResponse(res) {
21
21
  return typeof res === "object" && "err" in res;
22
22
  }
23
+ function isQueryResponseLegacy(res) {
24
+ return res.query != null && "blocks" in res.query;
25
+ }
23
26
 
24
- // ../../../../../../../../../execroot/typedb_driver/bazel-out/darwin_arm64-opt/bin/http-ts/src/analyzed-conjunction.ts
27
+ // ../../../../../../../../../execroot/typedb_driver/bazel-out/k8-opt/bin/http-ts/src/analyzed-conjunction.ts
25
28
  function getVariableName(structure, variable) {
26
29
  return structure.variables[variable.id]?.name;
27
30
  }
28
31
 
29
- // ../../../../../../../../../execroot/typedb_driver/bazel-out/darwin_arm64-opt/bin/http-ts/src/index.ts
32
+ // ../../../../../../../../../execroot/typedb_driver/bazel-out/k8-opt/bin/http-ts/src/index.ts
30
33
  var HTTP_UNAUTHORIZED = 401;
31
34
  var TypeDBHttpDriver = class {
32
35
  constructor(params) {
@@ -187,6 +190,7 @@ export {
187
190
  isApiErrorResponse,
188
191
  isBasicParams,
189
192
  isOkResponse,
193
+ isQueryResponseLegacy,
190
194
  isTranslatedParams,
191
195
  remoteOrigin
192
196
  };
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name": "@typedb/driver-http", "version": "3.7.0-rc1", "description": "TypeDB HTTP Driver", "author": "TypeDB Community <community@typedb.com>", "license": "Apache-2.0", "homepage": "https://typedb.com", "repository": {"type": "git", "url": "https://github.com/typedb/typedb-driver"}, "bugs": {"url": "https://github.com/typedb/typedb-driver/issues"}, "keywords": ["database", "typedb"], "main": "dist/index.cjs", "module": "dist/index.mjs", "types": "dist/index.d.ts", "type": "module", "exports": {".": {"types": "./dist/index.d.ts", "import": "./dist/index.mjs", "require": "./dist/index.cjs"}}, "scripts": {"build:dev": "tsc", "build": "tsup", "test": "cucumber-js", "docs": "typedoc"}, "private": false, "packageManager": "pnpm@8.15.9", "devDependencies": {"@cucumber/cucumber": "9.0.0", "@types/node": "24.0.12", "tsup": "8.5.0", "typedoc": "^0.28.7", "typescript": "5.8.3"}}
1
+ {"name": "@typedb/driver-http", "version": "3.7.0-rc4", "description": "TypeDB HTTP Driver", "author": "TypeDB Community <community@typedb.com>", "license": "Apache-2.0", "homepage": "https://typedb.com", "repository": {"type": "git", "url": "https://github.com/typedb/typedb-driver"}, "bugs": {"url": "https://github.com/typedb/typedb-driver/issues"}, "keywords": ["database", "typedb"], "main": "dist/index.cjs", "module": "dist/index.mjs", "types": "dist/index.d.ts", "type": "module", "exports": {".": {"types": "./dist/index.d.ts", "import": "./dist/index.mjs", "require": "./dist/index.cjs"}}, "scripts": {"build:dev": "tsc", "build": "tsup", "test": "cucumber-js", "docs": "typedoc"}, "packageManager": "pnpm@8.15.9", "packageConfig": {"access": "public"}, "devDependencies": {"@cucumber/cucumber": "9.0.0", "@types/node": "24.0.12", "tsup": "8.5.0", "typedoc": "^0.28.7", "typescript": "5.8.3"}}