industrial-model 0.5.0 → 0.7.0
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/README.md +723 -545
- package/dist/cognite-core/index.cjs +1882 -0
- package/dist/cognite-core/index.cjs.map +1 -0
- package/dist/cognite-core/index.d.cts +535 -0
- package/dist/cognite-core/index.d.ts +535 -0
- package/dist/cognite-core/index.js +1879 -0
- package/dist/cognite-core/index.js.map +1 -0
- package/dist/index.cjs +544 -193
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -263
- package/dist/index.d.ts +8 -263
- package/dist/index.js +545 -192
- package/dist/index.js.map +1 -1
- package/dist/types-2jjbs2i7.d.cts +267 -0
- package/dist/types-2jjbs2i7.d.ts +267 -0
- package/package.json +11 -1
|
@@ -0,0 +1,535 @@
|
|
|
1
|
+
import { CogniteClient } from '@cognite/sdk';
|
|
2
|
+
import { i as IndustrialModel, N as NodeId, s as AggregateOptions, b as AggregateResult, c as AggregateResultItem, m as QuerySelect, t as QueryOptions, k as QueryResult, l as QueryResultItem, o as UpsertOptions, q as UpsertResult, I as IndustrialModelClientOptions, a as DeleteResult } from '../types-2jjbs2i7.cjs';
|
|
3
|
+
|
|
4
|
+
type CogniteCoreViewExternalId = "CogniteDescribable" | "CogniteSourceable" | "CogniteSourceSystem" | "CogniteSchedulable" | "CogniteVisualizable" | "Cognite3DTransformation" | "CogniteCubeMap" | "Cognite3DObject" | "Cognite3DModel" | "CogniteCADModel" | "Cognite3DRevision" | "CognitePointCloudModel" | "Cognite360ImageModel" | "CogniteCADRevision" | "CognitePointCloudRevision" | "Cognite360ImageCollection" | "CogniteCADNode" | "CognitePointCloudVolume" | "Cognite360Image" | "Cognite360ImageStation" | "Cognite360ImageAnnotation" | "CogniteAsset" | "CogniteAssetClass" | "CogniteAssetType" | "CogniteEquipment" | "CogniteEquipmentType" | "CogniteFile" | "CogniteFileCategory" | "CogniteActivity" | "CogniteTimeSeries" | "CogniteAnnotation" | "CogniteDiagramAnnotation" | "CogniteUnit";
|
|
5
|
+
type CogniteDescribable = IndustrialModel<{
|
|
6
|
+
name?: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
tags?: string[];
|
|
9
|
+
aliases?: string[];
|
|
10
|
+
}>;
|
|
11
|
+
type CogniteSourceable = IndustrialModel<{
|
|
12
|
+
sourceId?: string;
|
|
13
|
+
sourceContext?: string;
|
|
14
|
+
source?: NodeId;
|
|
15
|
+
sourceCreatedTime?: string;
|
|
16
|
+
sourceUpdatedTime?: string;
|
|
17
|
+
sourceCreatedUser?: string;
|
|
18
|
+
sourceUpdatedUser?: string;
|
|
19
|
+
}, {
|
|
20
|
+
source?: CogniteSourceSystem;
|
|
21
|
+
}>;
|
|
22
|
+
type CogniteSourceSystem = IndustrialModel<{
|
|
23
|
+
name?: string;
|
|
24
|
+
description?: string;
|
|
25
|
+
tags?: string[];
|
|
26
|
+
aliases?: string[];
|
|
27
|
+
version?: string;
|
|
28
|
+
manufacturer?: string;
|
|
29
|
+
}>;
|
|
30
|
+
type CogniteSchedulable = IndustrialModel<{
|
|
31
|
+
startTime?: string;
|
|
32
|
+
endTime?: string;
|
|
33
|
+
scheduledStartTime?: string;
|
|
34
|
+
scheduledEndTime?: string;
|
|
35
|
+
}>;
|
|
36
|
+
type CogniteVisualizable = IndustrialModel<{
|
|
37
|
+
object3D?: NodeId;
|
|
38
|
+
}, {
|
|
39
|
+
object3D?: Cognite3DObject;
|
|
40
|
+
}>;
|
|
41
|
+
type Cognite3DTransformation = IndustrialModel<{
|
|
42
|
+
translationX?: number;
|
|
43
|
+
translationY?: number;
|
|
44
|
+
translationZ?: number;
|
|
45
|
+
eulerRotationX?: number;
|
|
46
|
+
eulerRotationY?: number;
|
|
47
|
+
eulerRotationZ?: number;
|
|
48
|
+
scaleX?: number;
|
|
49
|
+
scaleY?: number;
|
|
50
|
+
scaleZ?: number;
|
|
51
|
+
}>;
|
|
52
|
+
type CogniteCubeMap = IndustrialModel<{
|
|
53
|
+
front?: NodeId;
|
|
54
|
+
back?: NodeId;
|
|
55
|
+
left?: NodeId;
|
|
56
|
+
right?: NodeId;
|
|
57
|
+
top?: NodeId;
|
|
58
|
+
bottom?: NodeId;
|
|
59
|
+
}, {
|
|
60
|
+
front?: CogniteFile;
|
|
61
|
+
back?: CogniteFile;
|
|
62
|
+
left?: CogniteFile;
|
|
63
|
+
right?: CogniteFile;
|
|
64
|
+
top?: CogniteFile;
|
|
65
|
+
bottom?: CogniteFile;
|
|
66
|
+
}>;
|
|
67
|
+
type Cognite3DObject = IndustrialModel<{
|
|
68
|
+
name?: string;
|
|
69
|
+
description?: string;
|
|
70
|
+
tags?: string[];
|
|
71
|
+
aliases?: string[];
|
|
72
|
+
xMin?: number;
|
|
73
|
+
xMax?: number;
|
|
74
|
+
yMin?: number;
|
|
75
|
+
yMax?: number;
|
|
76
|
+
zMin?: number;
|
|
77
|
+
zMax?: number;
|
|
78
|
+
}, {
|
|
79
|
+
asset?: CogniteAsset;
|
|
80
|
+
cadNodes?: CogniteCADNode[];
|
|
81
|
+
images360?: Cognite360Image[];
|
|
82
|
+
pointCloudVolumes?: CognitePointCloudVolume[];
|
|
83
|
+
}>;
|
|
84
|
+
type Cognite3DModel = IndustrialModel<{
|
|
85
|
+
name?: string;
|
|
86
|
+
description?: string;
|
|
87
|
+
tags?: string[];
|
|
88
|
+
aliases?: string[];
|
|
89
|
+
thumbnail?: NodeId;
|
|
90
|
+
type?: string;
|
|
91
|
+
}, {
|
|
92
|
+
thumbnail?: CogniteFile;
|
|
93
|
+
}>;
|
|
94
|
+
type CogniteCADModel = IndustrialModel<{
|
|
95
|
+
name?: string;
|
|
96
|
+
description?: string;
|
|
97
|
+
tags?: string[];
|
|
98
|
+
aliases?: string[];
|
|
99
|
+
thumbnail?: NodeId;
|
|
100
|
+
type?: string;
|
|
101
|
+
}, {
|
|
102
|
+
thumbnail?: CogniteFile;
|
|
103
|
+
revisions?: CogniteCADRevision[];
|
|
104
|
+
}>;
|
|
105
|
+
type Cognite3DRevision = IndustrialModel<{
|
|
106
|
+
status?: string;
|
|
107
|
+
published?: boolean;
|
|
108
|
+
type?: string;
|
|
109
|
+
model3D?: NodeId;
|
|
110
|
+
}, {
|
|
111
|
+
model3D?: Cognite3DModel;
|
|
112
|
+
}>;
|
|
113
|
+
type CognitePointCloudModel = IndustrialModel<{
|
|
114
|
+
name?: string;
|
|
115
|
+
description?: string;
|
|
116
|
+
tags?: string[];
|
|
117
|
+
aliases?: string[];
|
|
118
|
+
thumbnail?: NodeId;
|
|
119
|
+
type?: string;
|
|
120
|
+
}, {
|
|
121
|
+
thumbnail?: CogniteFile;
|
|
122
|
+
revisions?: CognitePointCloudRevision[];
|
|
123
|
+
}>;
|
|
124
|
+
type Cognite360ImageModel = IndustrialModel<{
|
|
125
|
+
name?: string;
|
|
126
|
+
description?: string;
|
|
127
|
+
tags?: string[];
|
|
128
|
+
aliases?: string[];
|
|
129
|
+
thumbnail?: NodeId;
|
|
130
|
+
type?: string;
|
|
131
|
+
}, {
|
|
132
|
+
thumbnail?: CogniteFile;
|
|
133
|
+
collections?: Cognite360ImageCollection[];
|
|
134
|
+
}>;
|
|
135
|
+
type CogniteCADRevision = IndustrialModel<{
|
|
136
|
+
status?: string;
|
|
137
|
+
published?: boolean;
|
|
138
|
+
type?: string;
|
|
139
|
+
model3D?: NodeId;
|
|
140
|
+
revisionId?: number;
|
|
141
|
+
}, {
|
|
142
|
+
model3D?: CogniteCADModel;
|
|
143
|
+
}>;
|
|
144
|
+
type CognitePointCloudRevision = IndustrialModel<{
|
|
145
|
+
status?: string;
|
|
146
|
+
published?: boolean;
|
|
147
|
+
type?: string;
|
|
148
|
+
model3D?: NodeId;
|
|
149
|
+
revisionId?: number;
|
|
150
|
+
}, {
|
|
151
|
+
model3D?: CognitePointCloudModel;
|
|
152
|
+
}>;
|
|
153
|
+
type Cognite360ImageCollection = IndustrialModel<{
|
|
154
|
+
name?: string;
|
|
155
|
+
description?: string;
|
|
156
|
+
tags?: string[];
|
|
157
|
+
aliases?: string[];
|
|
158
|
+
status?: string;
|
|
159
|
+
published?: boolean;
|
|
160
|
+
type?: string;
|
|
161
|
+
model3D?: NodeId;
|
|
162
|
+
}, {
|
|
163
|
+
model3D?: Cognite360ImageModel;
|
|
164
|
+
}>;
|
|
165
|
+
type CogniteCADNode = IndustrialModel<{
|
|
166
|
+
name?: string;
|
|
167
|
+
description?: string;
|
|
168
|
+
tags?: string[];
|
|
169
|
+
aliases?: string[];
|
|
170
|
+
object3D?: NodeId;
|
|
171
|
+
model3D?: NodeId;
|
|
172
|
+
cadNodeReference?: string;
|
|
173
|
+
revisions?: NodeId[];
|
|
174
|
+
treeIndexes?: number[];
|
|
175
|
+
subTreeSizes?: number[];
|
|
176
|
+
}, {
|
|
177
|
+
object3D?: Cognite3DObject;
|
|
178
|
+
model3D?: CogniteCADModel;
|
|
179
|
+
revisions?: CogniteCADRevision[];
|
|
180
|
+
}>;
|
|
181
|
+
type CognitePointCloudVolume = IndustrialModel<{
|
|
182
|
+
name?: string;
|
|
183
|
+
description?: string;
|
|
184
|
+
tags?: string[];
|
|
185
|
+
aliases?: string[];
|
|
186
|
+
object3D?: NodeId;
|
|
187
|
+
model3D?: NodeId;
|
|
188
|
+
volumeReferences?: string[];
|
|
189
|
+
revisions?: NodeId[];
|
|
190
|
+
volumeType?: string;
|
|
191
|
+
volume?: number[];
|
|
192
|
+
formatVersion?: string;
|
|
193
|
+
}, {
|
|
194
|
+
object3D?: Cognite3DObject;
|
|
195
|
+
model3D?: CogniteCADModel;
|
|
196
|
+
revisions?: CogniteCADRevision[];
|
|
197
|
+
}>;
|
|
198
|
+
type Cognite360Image = IndustrialModel<{
|
|
199
|
+
translationX?: number;
|
|
200
|
+
translationY?: number;
|
|
201
|
+
translationZ?: number;
|
|
202
|
+
eulerRotationX?: number;
|
|
203
|
+
eulerRotationY?: number;
|
|
204
|
+
eulerRotationZ?: number;
|
|
205
|
+
scaleX?: number;
|
|
206
|
+
scaleY?: number;
|
|
207
|
+
scaleZ?: number;
|
|
208
|
+
front?: NodeId;
|
|
209
|
+
back?: NodeId;
|
|
210
|
+
left?: NodeId;
|
|
211
|
+
right?: NodeId;
|
|
212
|
+
top?: NodeId;
|
|
213
|
+
bottom?: NodeId;
|
|
214
|
+
collection360?: NodeId;
|
|
215
|
+
station360?: NodeId;
|
|
216
|
+
takenAt?: string;
|
|
217
|
+
}, {
|
|
218
|
+
front?: CogniteFile;
|
|
219
|
+
back?: CogniteFile;
|
|
220
|
+
left?: CogniteFile;
|
|
221
|
+
right?: CogniteFile;
|
|
222
|
+
top?: CogniteFile;
|
|
223
|
+
bottom?: CogniteFile;
|
|
224
|
+
collection360?: Cognite360ImageCollection;
|
|
225
|
+
station360?: Cognite360ImageStation;
|
|
226
|
+
}>;
|
|
227
|
+
type Cognite360ImageStation = IndustrialModel<{
|
|
228
|
+
name?: string;
|
|
229
|
+
description?: string;
|
|
230
|
+
tags?: string[];
|
|
231
|
+
aliases?: string[];
|
|
232
|
+
groupType?: string;
|
|
233
|
+
}>;
|
|
234
|
+
type Cognite360ImageAnnotation = IndustrialModel<{
|
|
235
|
+
name?: string;
|
|
236
|
+
description?: string;
|
|
237
|
+
tags?: string[];
|
|
238
|
+
aliases?: string[];
|
|
239
|
+
sourceId?: string;
|
|
240
|
+
sourceContext?: string;
|
|
241
|
+
source?: NodeId;
|
|
242
|
+
sourceCreatedTime?: string;
|
|
243
|
+
sourceUpdatedTime?: string;
|
|
244
|
+
sourceCreatedUser?: string;
|
|
245
|
+
sourceUpdatedUser?: string;
|
|
246
|
+
confidence?: number;
|
|
247
|
+
status?: string;
|
|
248
|
+
polygon?: number[];
|
|
249
|
+
formatVersion?: string;
|
|
250
|
+
}, {
|
|
251
|
+
source?: CogniteSourceSystem;
|
|
252
|
+
}>;
|
|
253
|
+
type CogniteAsset = IndustrialModel<{
|
|
254
|
+
object3D?: NodeId;
|
|
255
|
+
name?: string;
|
|
256
|
+
description?: string;
|
|
257
|
+
tags?: string[];
|
|
258
|
+
aliases?: string[];
|
|
259
|
+
sourceId?: string;
|
|
260
|
+
sourceContext?: string;
|
|
261
|
+
source?: NodeId;
|
|
262
|
+
sourceCreatedTime?: string;
|
|
263
|
+
sourceUpdatedTime?: string;
|
|
264
|
+
sourceCreatedUser?: string;
|
|
265
|
+
sourceUpdatedUser?: string;
|
|
266
|
+
parent?: NodeId;
|
|
267
|
+
root?: NodeId;
|
|
268
|
+
path?: NodeId[];
|
|
269
|
+
pathLastUpdatedTime?: string;
|
|
270
|
+
assetClass?: NodeId;
|
|
271
|
+
type?: NodeId;
|
|
272
|
+
}, {
|
|
273
|
+
object3D?: Cognite3DObject;
|
|
274
|
+
source?: CogniteSourceSystem;
|
|
275
|
+
parent?: CogniteAsset;
|
|
276
|
+
root?: CogniteAsset;
|
|
277
|
+
path?: CogniteAsset[];
|
|
278
|
+
assetClass?: CogniteAssetClass;
|
|
279
|
+
type?: CogniteAssetType;
|
|
280
|
+
children?: CogniteAsset[];
|
|
281
|
+
equipment?: CogniteEquipment[];
|
|
282
|
+
}>;
|
|
283
|
+
type CogniteAssetClass = IndustrialModel<{
|
|
284
|
+
name?: string;
|
|
285
|
+
description?: string;
|
|
286
|
+
tags?: string[];
|
|
287
|
+
aliases?: string[];
|
|
288
|
+
code?: string;
|
|
289
|
+
standard?: string;
|
|
290
|
+
}>;
|
|
291
|
+
type CogniteAssetType = IndustrialModel<{
|
|
292
|
+
name?: string;
|
|
293
|
+
description?: string;
|
|
294
|
+
tags?: string[];
|
|
295
|
+
aliases?: string[];
|
|
296
|
+
code?: string;
|
|
297
|
+
standard?: string;
|
|
298
|
+
assetClass?: NodeId;
|
|
299
|
+
}, {
|
|
300
|
+
assetClass?: CogniteAssetClass;
|
|
301
|
+
}>;
|
|
302
|
+
type CogniteEquipment = IndustrialModel<{
|
|
303
|
+
name?: string;
|
|
304
|
+
description?: string;
|
|
305
|
+
tags?: string[];
|
|
306
|
+
aliases?: string[];
|
|
307
|
+
sourceId?: string;
|
|
308
|
+
sourceContext?: string;
|
|
309
|
+
source?: NodeId;
|
|
310
|
+
sourceCreatedTime?: string;
|
|
311
|
+
sourceUpdatedTime?: string;
|
|
312
|
+
sourceCreatedUser?: string;
|
|
313
|
+
sourceUpdatedUser?: string;
|
|
314
|
+
asset?: NodeId;
|
|
315
|
+
serialNumber?: string;
|
|
316
|
+
manufacturer?: string;
|
|
317
|
+
equipmentType?: NodeId;
|
|
318
|
+
files?: NodeId[];
|
|
319
|
+
}, {
|
|
320
|
+
source?: CogniteSourceSystem;
|
|
321
|
+
asset?: CogniteAsset;
|
|
322
|
+
equipmentType?: CogniteEquipmentType;
|
|
323
|
+
files?: CogniteFile[];
|
|
324
|
+
}>;
|
|
325
|
+
type CogniteEquipmentType = IndustrialModel<{
|
|
326
|
+
name?: string;
|
|
327
|
+
description?: string;
|
|
328
|
+
tags?: string[];
|
|
329
|
+
aliases?: string[];
|
|
330
|
+
code?: string;
|
|
331
|
+
equipmentClass?: string;
|
|
332
|
+
standard?: string;
|
|
333
|
+
standardReference?: string;
|
|
334
|
+
}>;
|
|
335
|
+
type CogniteFile = IndustrialModel<{
|
|
336
|
+
name?: string;
|
|
337
|
+
description?: string;
|
|
338
|
+
tags?: string[];
|
|
339
|
+
aliases?: string[];
|
|
340
|
+
sourceId?: string;
|
|
341
|
+
sourceContext?: string;
|
|
342
|
+
source?: NodeId;
|
|
343
|
+
sourceCreatedTime?: string;
|
|
344
|
+
sourceUpdatedTime?: string;
|
|
345
|
+
sourceCreatedUser?: string;
|
|
346
|
+
sourceUpdatedUser?: string;
|
|
347
|
+
assets?: NodeId[];
|
|
348
|
+
mimeType?: string;
|
|
349
|
+
directory?: string;
|
|
350
|
+
isUploaded?: boolean;
|
|
351
|
+
uploadedTime?: string;
|
|
352
|
+
category?: NodeId;
|
|
353
|
+
}, {
|
|
354
|
+
source?: CogniteSourceSystem;
|
|
355
|
+
assets?: CogniteAsset[];
|
|
356
|
+
category?: CogniteFileCategory;
|
|
357
|
+
}>;
|
|
358
|
+
type CogniteFileCategory = IndustrialModel<{
|
|
359
|
+
name?: string;
|
|
360
|
+
description?: string;
|
|
361
|
+
tags?: string[];
|
|
362
|
+
aliases?: string[];
|
|
363
|
+
code: string;
|
|
364
|
+
standard?: string;
|
|
365
|
+
standardReference?: string;
|
|
366
|
+
}>;
|
|
367
|
+
type CogniteActivity = IndustrialModel<{
|
|
368
|
+
name?: string;
|
|
369
|
+
description?: string;
|
|
370
|
+
tags?: string[];
|
|
371
|
+
aliases?: string[];
|
|
372
|
+
sourceId?: string;
|
|
373
|
+
sourceContext?: string;
|
|
374
|
+
source?: NodeId;
|
|
375
|
+
sourceCreatedTime?: string;
|
|
376
|
+
sourceUpdatedTime?: string;
|
|
377
|
+
sourceCreatedUser?: string;
|
|
378
|
+
sourceUpdatedUser?: string;
|
|
379
|
+
startTime?: string;
|
|
380
|
+
endTime?: string;
|
|
381
|
+
scheduledStartTime?: string;
|
|
382
|
+
scheduledEndTime?: string;
|
|
383
|
+
assets?: NodeId[];
|
|
384
|
+
equipment?: NodeId[];
|
|
385
|
+
timeSeries?: NodeId[];
|
|
386
|
+
}, {
|
|
387
|
+
source?: CogniteSourceSystem;
|
|
388
|
+
assets?: CogniteAsset[];
|
|
389
|
+
equipment?: CogniteEquipment[];
|
|
390
|
+
timeSeries?: CogniteTimeSeries[];
|
|
391
|
+
}>;
|
|
392
|
+
type CogniteTimeSeries = IndustrialModel<{
|
|
393
|
+
name?: string;
|
|
394
|
+
description?: string;
|
|
395
|
+
tags?: string[];
|
|
396
|
+
aliases?: string[];
|
|
397
|
+
sourceId?: string;
|
|
398
|
+
sourceContext?: string;
|
|
399
|
+
source?: NodeId;
|
|
400
|
+
sourceCreatedTime?: string;
|
|
401
|
+
sourceUpdatedTime?: string;
|
|
402
|
+
sourceCreatedUser?: string;
|
|
403
|
+
sourceUpdatedUser?: string;
|
|
404
|
+
isStep: boolean;
|
|
405
|
+
type: string;
|
|
406
|
+
sourceUnit?: string;
|
|
407
|
+
unit?: NodeId;
|
|
408
|
+
assets?: NodeId[];
|
|
409
|
+
equipment?: NodeId[];
|
|
410
|
+
stateSet?: NodeId;
|
|
411
|
+
}, {
|
|
412
|
+
source?: CogniteSourceSystem;
|
|
413
|
+
unit?: CogniteUnit;
|
|
414
|
+
assets?: CogniteAsset[];
|
|
415
|
+
equipment?: CogniteEquipment[];
|
|
416
|
+
}>;
|
|
417
|
+
type CogniteAnnotation = IndustrialModel<{
|
|
418
|
+
name?: string;
|
|
419
|
+
description?: string;
|
|
420
|
+
tags?: string[];
|
|
421
|
+
aliases?: string[];
|
|
422
|
+
sourceId?: string;
|
|
423
|
+
sourceContext?: string;
|
|
424
|
+
source?: NodeId;
|
|
425
|
+
sourceCreatedTime?: string;
|
|
426
|
+
sourceUpdatedTime?: string;
|
|
427
|
+
sourceCreatedUser?: string;
|
|
428
|
+
sourceUpdatedUser?: string;
|
|
429
|
+
confidence?: number;
|
|
430
|
+
status?: string;
|
|
431
|
+
}, {
|
|
432
|
+
source?: CogniteSourceSystem;
|
|
433
|
+
}>;
|
|
434
|
+
type CogniteDiagramAnnotation = IndustrialModel<{
|
|
435
|
+
name?: string;
|
|
436
|
+
description?: string;
|
|
437
|
+
tags?: string[];
|
|
438
|
+
aliases?: string[];
|
|
439
|
+
sourceId?: string;
|
|
440
|
+
sourceContext?: string;
|
|
441
|
+
source?: NodeId;
|
|
442
|
+
sourceCreatedTime?: string;
|
|
443
|
+
sourceUpdatedTime?: string;
|
|
444
|
+
sourceCreatedUser?: string;
|
|
445
|
+
sourceUpdatedUser?: string;
|
|
446
|
+
confidence?: number;
|
|
447
|
+
status?: string;
|
|
448
|
+
startNodePageNumber?: number;
|
|
449
|
+
endNodePageNumber?: number;
|
|
450
|
+
startNodeXMin?: number;
|
|
451
|
+
startNodeXMax?: number;
|
|
452
|
+
startNodeYMin?: number;
|
|
453
|
+
startNodeYMax?: number;
|
|
454
|
+
startNodeText?: string;
|
|
455
|
+
endNodeXMin?: number;
|
|
456
|
+
endNodeXMax?: number;
|
|
457
|
+
endNodeYMin?: number;
|
|
458
|
+
endNodeYMax?: number;
|
|
459
|
+
endNodeText?: string;
|
|
460
|
+
}, {
|
|
461
|
+
source?: CogniteSourceSystem;
|
|
462
|
+
}>;
|
|
463
|
+
type CogniteUnit = IndustrialModel<{
|
|
464
|
+
name?: string;
|
|
465
|
+
description?: string;
|
|
466
|
+
tags?: string[];
|
|
467
|
+
aliases?: string[];
|
|
468
|
+
symbol?: string;
|
|
469
|
+
quantity?: string;
|
|
470
|
+
source?: string;
|
|
471
|
+
sourceReference?: string;
|
|
472
|
+
}>;
|
|
473
|
+
interface CogniteCoreModelByView {
|
|
474
|
+
CogniteDescribable: CogniteDescribable;
|
|
475
|
+
CogniteSourceable: CogniteSourceable;
|
|
476
|
+
CogniteSourceSystem: CogniteSourceSystem;
|
|
477
|
+
CogniteSchedulable: CogniteSchedulable;
|
|
478
|
+
CogniteVisualizable: CogniteVisualizable;
|
|
479
|
+
Cognite3DTransformation: Cognite3DTransformation;
|
|
480
|
+
CogniteCubeMap: CogniteCubeMap;
|
|
481
|
+
Cognite3DObject: Cognite3DObject;
|
|
482
|
+
Cognite3DModel: Cognite3DModel;
|
|
483
|
+
CogniteCADModel: CogniteCADModel;
|
|
484
|
+
Cognite3DRevision: Cognite3DRevision;
|
|
485
|
+
CognitePointCloudModel: CognitePointCloudModel;
|
|
486
|
+
Cognite360ImageModel: Cognite360ImageModel;
|
|
487
|
+
CogniteCADRevision: CogniteCADRevision;
|
|
488
|
+
CognitePointCloudRevision: CognitePointCloudRevision;
|
|
489
|
+
Cognite360ImageCollection: Cognite360ImageCollection;
|
|
490
|
+
CogniteCADNode: CogniteCADNode;
|
|
491
|
+
CognitePointCloudVolume: CognitePointCloudVolume;
|
|
492
|
+
Cognite360Image: Cognite360Image;
|
|
493
|
+
Cognite360ImageStation: Cognite360ImageStation;
|
|
494
|
+
Cognite360ImageAnnotation: Cognite360ImageAnnotation;
|
|
495
|
+
CogniteAsset: CogniteAsset;
|
|
496
|
+
CogniteAssetClass: CogniteAssetClass;
|
|
497
|
+
CogniteAssetType: CogniteAssetType;
|
|
498
|
+
CogniteEquipment: CogniteEquipment;
|
|
499
|
+
CogniteEquipmentType: CogniteEquipmentType;
|
|
500
|
+
CogniteFile: CogniteFile;
|
|
501
|
+
CogniteFileCategory: CogniteFileCategory;
|
|
502
|
+
CogniteActivity: CogniteActivity;
|
|
503
|
+
CogniteTimeSeries: CogniteTimeSeries;
|
|
504
|
+
CogniteAnnotation: CogniteAnnotation;
|
|
505
|
+
CogniteDiagramAnnotation: CogniteDiagramAnnotation;
|
|
506
|
+
CogniteUnit: CogniteUnit;
|
|
507
|
+
}
|
|
508
|
+
type CogniteCoreModel<TView extends CogniteCoreViewExternalId> = CogniteCoreModelByView[TView];
|
|
509
|
+
type CogniteCoreQueryExecutor<TView extends CogniteCoreViewExternalId> = {
|
|
510
|
+
<const TSelect extends QuerySelect<CogniteCoreModel<TView>>>(options: Omit<QueryOptions<CogniteCoreModel<TView>, TSelect>, "viewExternalId" | "select"> & {
|
|
511
|
+
select: TSelect & QuerySelect<CogniteCoreModel<TView>>;
|
|
512
|
+
}): Promise<QueryResult<QueryResultItem<CogniteCoreModel<TView>, TSelect>>>;
|
|
513
|
+
(options?: Omit<QueryOptions<CogniteCoreModel<TView>, undefined>, "viewExternalId" | "select"> & {
|
|
514
|
+
select?: undefined;
|
|
515
|
+
}): Promise<QueryResult<QueryResultItem<CogniteCoreModel<TView>, undefined>>>;
|
|
516
|
+
};
|
|
517
|
+
type CogniteCoreAggregateExecutor<TView extends CogniteCoreViewExternalId> = <const TOptions extends Omit<AggregateOptions<CogniteCoreModel<TView>>, "viewExternalId">>(options?: TOptions) => Promise<AggregateResult<AggregateResultItem<CogniteCoreModel<TView>, TOptions["groupBy"], TOptions["aggregate"]>>>;
|
|
518
|
+
type CogniteCoreUpsertExecutor<TView extends CogniteCoreViewExternalId> = (options: Omit<UpsertOptions<CogniteCoreModel<TView>>, "viewExternalId">) => Promise<UpsertResult>;
|
|
519
|
+
|
|
520
|
+
/** Data model id for Cognite Core v1. */
|
|
521
|
+
declare const COGNITE_CORE_DATA_MODEL: {
|
|
522
|
+
space: string;
|
|
523
|
+
externalId: string;
|
|
524
|
+
version: string;
|
|
525
|
+
};
|
|
526
|
+
declare class CogniteCoreClient {
|
|
527
|
+
private readonly model;
|
|
528
|
+
constructor(client: CogniteClient, options?: IndustrialModelClientOptions);
|
|
529
|
+
query<TView extends CogniteCoreViewExternalId>(viewExternalId: TView): CogniteCoreQueryExecutor<TView>;
|
|
530
|
+
aggregate<TView extends CogniteCoreViewExternalId>(viewExternalId: TView): CogniteCoreAggregateExecutor<TView>;
|
|
531
|
+
upsert<TView extends CogniteCoreViewExternalId>(viewExternalId: TView): CogniteCoreUpsertExecutor<TView>;
|
|
532
|
+
delete<TItem extends NodeId>(items: TItem[]): Promise<DeleteResult>;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
export { COGNITE_CORE_DATA_MODEL, type Cognite360Image, type Cognite360ImageAnnotation, type Cognite360ImageCollection, type Cognite360ImageModel, type Cognite360ImageStation, type Cognite3DModel, type Cognite3DObject, type Cognite3DRevision, type Cognite3DTransformation, type CogniteActivity, type CogniteAnnotation, type CogniteAsset, type CogniteAssetClass, type CogniteAssetType, type CogniteCADModel, type CogniteCADNode, type CogniteCADRevision, type CogniteCoreAggregateExecutor, CogniteCoreClient, type CogniteCoreModel, type CogniteCoreModelByView, type CogniteCoreQueryExecutor, type CogniteCoreUpsertExecutor, type CogniteCoreViewExternalId, type CogniteCubeMap, type CogniteDescribable, type CogniteDiagramAnnotation, type CogniteEquipment, type CogniteEquipmentType, type CogniteFile, type CogniteFileCategory, type CognitePointCloudModel, type CognitePointCloudRevision, type CognitePointCloudVolume, type CogniteSchedulable, type CogniteSourceSystem, type CogniteSourceable, type CogniteTimeSeries, type CogniteUnit, type CogniteVisualizable };
|