@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 +9 -5
- package/dist/index.d.ts +99 -98
- package/dist/index.mjs +8 -4
- package/package.json +1 -1
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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
|
-
|
|
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
|
|
68
|
+
interface ConceptRowsQueryResponseLegacy {
|
|
69
69
|
answerType: "conceptRows";
|
|
70
70
|
queryType: QueryType;
|
|
71
71
|
comment: string | null;
|
|
72
|
-
query:
|
|
72
|
+
query: QueryStructureLegacy | null;
|
|
73
73
|
answers: ConceptRowAnswer[];
|
|
74
74
|
}
|
|
75
|
-
interface
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
75
|
+
interface QueryConjunctionLegacy {
|
|
76
|
+
constraints: (ConstraintAny | ConstraintExpressionLegacy | ConstraintLinksLegacy)[];
|
|
77
|
+
}
|
|
78
|
+
interface QueryStructureLegacy {
|
|
79
|
+
blocks: QueryConjunctionLegacy[];
|
|
79
80
|
variables: {
|
|
80
|
-
[name: string]:
|
|
81
|
+
[name: string]: VariableInfo;
|
|
81
82
|
};
|
|
82
83
|
outputs: string[];
|
|
83
84
|
}
|
|
84
|
-
|
|
85
|
-
interface QueryConstraintLinksForStudio {
|
|
85
|
+
interface ConstraintLinksLegacy {
|
|
86
86
|
tag: "links";
|
|
87
|
-
textSpan:
|
|
88
|
-
relation:
|
|
89
|
-
player:
|
|
90
|
-
role:
|
|
87
|
+
textSpan: ConstraintSpan;
|
|
88
|
+
relation: ConstraintVertexVariable;
|
|
89
|
+
player: ConstraintVertexVariable;
|
|
90
|
+
role: ConstraintVertexVariable | ConstraintVertexLabel;
|
|
91
91
|
}
|
|
92
|
-
interface
|
|
92
|
+
interface ConstraintExpressionLegacy {
|
|
93
93
|
tag: "expression";
|
|
94
|
-
textSpan:
|
|
94
|
+
textSpan: ConstraintSpan;
|
|
95
95
|
text: string;
|
|
96
|
-
arguments:
|
|
97
|
-
assigned:
|
|
96
|
+
arguments: ConstraintVertexVariable[];
|
|
97
|
+
assigned: ConstraintVertexVariable[];
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
declare function getVariableName(structure:
|
|
101
|
-
type
|
|
102
|
-
interface
|
|
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
|
|
106
|
+
interface ConstraintVertexLabel {
|
|
107
107
|
tag: "label";
|
|
108
108
|
type: Type;
|
|
109
109
|
}
|
|
110
|
-
interface
|
|
110
|
+
interface ConstraintVertexNamedRole {
|
|
111
111
|
tag: "namedRole";
|
|
112
112
|
variable: string;
|
|
113
113
|
name: string;
|
|
114
114
|
}
|
|
115
|
-
interface
|
|
115
|
+
interface ConstraintVertexValue extends Value {
|
|
116
116
|
tag: "value";
|
|
117
117
|
}
|
|
118
118
|
type ConjunctionIndex$1 = number;
|
|
119
|
-
type
|
|
119
|
+
type VariableInfo = {
|
|
120
120
|
name: string | null;
|
|
121
121
|
};
|
|
122
|
-
type
|
|
123
|
-
type
|
|
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
|
|
127
|
+
interface ConstraintIsa {
|
|
128
128
|
tag: "isa";
|
|
129
|
-
textSpan:
|
|
130
|
-
instance:
|
|
131
|
-
type:
|
|
129
|
+
textSpan: ConstraintSpan;
|
|
130
|
+
instance: ConstraintVertexVariable;
|
|
131
|
+
type: ConstraintVertexVariable | ConstraintVertexLabel;
|
|
132
132
|
}
|
|
133
|
-
interface
|
|
133
|
+
interface ConstraintIsaExact {
|
|
134
134
|
tag: "isa!";
|
|
135
|
-
textSpan:
|
|
136
|
-
instance:
|
|
137
|
-
type:
|
|
135
|
+
textSpan: ConstraintSpan;
|
|
136
|
+
instance: ConstraintVertexVariable;
|
|
137
|
+
type: ConstraintVertexVariable | ConstraintVertexLabel;
|
|
138
138
|
}
|
|
139
|
-
interface
|
|
139
|
+
interface ConstraintHas {
|
|
140
140
|
tag: "has";
|
|
141
|
-
textSpan:
|
|
142
|
-
owner:
|
|
143
|
-
attribute:
|
|
141
|
+
textSpan: ConstraintSpan;
|
|
142
|
+
owner: ConstraintVertexVariable;
|
|
143
|
+
attribute: ConstraintVertexVariable;
|
|
144
144
|
}
|
|
145
|
-
interface
|
|
145
|
+
interface ConstraintLinks {
|
|
146
146
|
tag: "links";
|
|
147
|
-
textSpan:
|
|
148
|
-
relation:
|
|
149
|
-
player:
|
|
150
|
-
role:
|
|
147
|
+
textSpan: ConstraintSpan;
|
|
148
|
+
relation: ConstraintVertexVariable;
|
|
149
|
+
player: ConstraintVertexVariable;
|
|
150
|
+
role: ConstraintVertexVariable | ConstraintVertexNamedRole;
|
|
151
151
|
}
|
|
152
|
-
interface
|
|
152
|
+
interface ConstraintSub {
|
|
153
153
|
tag: "sub";
|
|
154
|
-
textSpan:
|
|
155
|
-
subtype:
|
|
156
|
-
supertype:
|
|
154
|
+
textSpan: ConstraintSpan;
|
|
155
|
+
subtype: ConstraintVertexVariable | ConstraintVertexLabel;
|
|
156
|
+
supertype: ConstraintVertexVariable | ConstraintVertexLabel;
|
|
157
157
|
}
|
|
158
|
-
interface
|
|
158
|
+
interface ConstraintSubExact {
|
|
159
159
|
tag: "sub!";
|
|
160
|
-
textSpan:
|
|
161
|
-
subtype:
|
|
162
|
-
supertype:
|
|
160
|
+
textSpan: ConstraintSpan;
|
|
161
|
+
subtype: ConstraintVertexVariable | ConstraintVertexLabel;
|
|
162
|
+
supertype: ConstraintVertexVariable | ConstraintVertexLabel;
|
|
163
163
|
}
|
|
164
|
-
interface
|
|
164
|
+
interface ConstraintOwns {
|
|
165
165
|
tag: "owns";
|
|
166
|
-
textSpan:
|
|
167
|
-
owner:
|
|
168
|
-
attribute:
|
|
166
|
+
textSpan: ConstraintSpan;
|
|
167
|
+
owner: ConstraintVertexVariable | ConstraintVertexLabel;
|
|
168
|
+
attribute: ConstraintVertexVariable | ConstraintVertexLabel;
|
|
169
169
|
}
|
|
170
|
-
interface
|
|
170
|
+
interface ConstraintRelates {
|
|
171
171
|
tag: "relates";
|
|
172
|
-
textSpan:
|
|
173
|
-
relation:
|
|
174
|
-
role:
|
|
172
|
+
textSpan: ConstraintSpan;
|
|
173
|
+
relation: ConstraintVertexVariable | ConstraintVertexLabel;
|
|
174
|
+
role: ConstraintVertexVariable | ConstraintVertexLabel;
|
|
175
175
|
}
|
|
176
|
-
interface
|
|
176
|
+
interface ConstraintPlays {
|
|
177
177
|
tag: "plays";
|
|
178
|
-
textSpan:
|
|
179
|
-
player:
|
|
180
|
-
role:
|
|
178
|
+
textSpan: ConstraintSpan;
|
|
179
|
+
player: ConstraintVertexVariable | ConstraintVertexLabel;
|
|
180
|
+
role: ConstraintVertexVariable | ConstraintVertexLabel;
|
|
181
181
|
}
|
|
182
|
-
interface
|
|
182
|
+
interface ConstraintExpression {
|
|
183
183
|
tag: "expression";
|
|
184
|
-
textSpan:
|
|
184
|
+
textSpan: ConstraintSpan;
|
|
185
185
|
text: string;
|
|
186
|
-
arguments:
|
|
187
|
-
assigned:
|
|
186
|
+
arguments: ConstraintVertexVariable[];
|
|
187
|
+
assigned: ConstraintVertexVariable;
|
|
188
188
|
}
|
|
189
|
-
interface
|
|
189
|
+
interface ConstraintFunction {
|
|
190
190
|
tag: "functionCall";
|
|
191
|
-
textSpan:
|
|
191
|
+
textSpan: ConstraintSpan;
|
|
192
192
|
name: string;
|
|
193
|
-
arguments:
|
|
194
|
-
assigned:
|
|
193
|
+
arguments: ConstraintVertexVariable[];
|
|
194
|
+
assigned: ConstraintVertexVariable[];
|
|
195
195
|
}
|
|
196
|
-
interface
|
|
196
|
+
interface ConstraintComparison {
|
|
197
197
|
tag: "comparison";
|
|
198
|
-
textSpan:
|
|
199
|
-
lhs:
|
|
200
|
-
rhs:
|
|
198
|
+
textSpan: ConstraintSpan;
|
|
199
|
+
lhs: ConstraintVertexVariable | ConstraintVertexValue;
|
|
200
|
+
rhs: ConstraintVertexVariable | ConstraintVertexValue;
|
|
201
201
|
comparator: string;
|
|
202
202
|
}
|
|
203
|
-
interface
|
|
203
|
+
interface ConstraintIs {
|
|
204
204
|
tag: "is";
|
|
205
|
-
textSpan:
|
|
206
|
-
lhs:
|
|
207
|
-
rhs:
|
|
205
|
+
textSpan: ConstraintSpan;
|
|
206
|
+
lhs: ConstraintVertexVariable;
|
|
207
|
+
rhs: ConstraintVertexVariable;
|
|
208
208
|
}
|
|
209
|
-
interface
|
|
209
|
+
interface ConstraintIid {
|
|
210
210
|
tag: "iid";
|
|
211
|
-
textSpan:
|
|
212
|
-
concept:
|
|
211
|
+
textSpan: ConstraintSpan;
|
|
212
|
+
concept: ConstraintVertexVariable;
|
|
213
213
|
iid: string;
|
|
214
214
|
}
|
|
215
|
-
interface
|
|
215
|
+
interface ConstraintLabel {
|
|
216
216
|
tag: "label";
|
|
217
|
-
textSpan:
|
|
218
|
-
type:
|
|
217
|
+
textSpan: ConstraintSpan;
|
|
218
|
+
type: ConstraintVertexVariable;
|
|
219
219
|
label: string;
|
|
220
220
|
}
|
|
221
|
-
interface
|
|
221
|
+
interface ConstraintValue {
|
|
222
222
|
tag: "value";
|
|
223
|
-
textSpan:
|
|
224
|
-
attributeType:
|
|
223
|
+
textSpan: ConstraintSpan;
|
|
224
|
+
attributeType: ConstraintVertexVariable;
|
|
225
225
|
valueType: string;
|
|
226
226
|
}
|
|
227
|
-
interface
|
|
227
|
+
interface ConstraintKind {
|
|
228
228
|
tag: "kind";
|
|
229
|
-
textSpan:
|
|
230
|
-
type:
|
|
229
|
+
textSpan: ConstraintSpan;
|
|
230
|
+
type: ConstraintVertexVariable;
|
|
231
231
|
kind: string;
|
|
232
232
|
}
|
|
233
|
-
interface
|
|
233
|
+
interface ConstraintOr {
|
|
234
234
|
tag: "or";
|
|
235
235
|
branches: ConjunctionIndex$1[];
|
|
236
236
|
}
|
|
237
|
-
interface
|
|
237
|
+
interface ConstraintNot {
|
|
238
238
|
tag: "not";
|
|
239
239
|
conjunction: ConjunctionIndex$1;
|
|
240
240
|
}
|
|
241
|
-
interface
|
|
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]:
|
|
250
|
+
[name: VariableId]: VariableInfo;
|
|
251
251
|
};
|
|
252
252
|
stages: PipelineStage[];
|
|
253
253
|
outputs: string[];
|
|
254
254
|
}
|
|
255
255
|
interface AnalyzedConjunction {
|
|
256
|
-
constraints:
|
|
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 |
|
|
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
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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-
|
|
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"}}
|