industrial-model 0.8.0 → 0.9.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 +4 -0
- package/dist/cli/index.cjs +6797 -0
- package/dist/cli/index.cjs.map +1 -0
- package/dist/cognite-core/index.cjs +4 -0
- package/dist/cognite-core/index.cjs.map +1 -1
- package/dist/cognite-core/index.d.cts +1 -1
- package/dist/cognite-core/index.d.ts +1 -1
- package/dist/cognite-core/index.js +4 -0
- package/dist/cognite-core/index.js.map +1 -1
- package/dist/index.cjs +4 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/{types-BrD2jPB-.d.cts → types-69DRhgww.d.cts} +1 -1
- package/dist/{types-BrD2jPB-.d.ts → types-69DRhgww.d.ts} +1 -1
- package/package.json +7 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CogniteClient } from '@cognite/sdk';
|
|
2
|
-
import {
|
|
2
|
+
import { v as IndustrialModel, N as NodeId, c as AggregateOptions, d as AggregateResult, e as AggregateResultItem, B as QuerySelect, x as QueryOptions, y as QueryResult, z as QueryResultItem, G as UpsertOptions, J as UpsertResult, I as IndustrialModelClientOptions, b as DeleteResult, a as DatapointsExecutor } from '../types-69DRhgww.cjs';
|
|
3
3
|
|
|
4
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
5
|
type CogniteDescribable = IndustrialModel<{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CogniteClient } from '@cognite/sdk';
|
|
2
|
-
import {
|
|
2
|
+
import { v as IndustrialModel, N as NodeId, c as AggregateOptions, d as AggregateResult, e as AggregateResultItem, B as QuerySelect, x as QueryOptions, y as QueryResult, z as QueryResultItem, G as UpsertOptions, J as UpsertResult, I as IndustrialModelClientOptions, b as DeleteResult, a as DatapointsExecutor } from '../types-69DRhgww.js';
|
|
3
3
|
|
|
4
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
5
|
type CogniteDescribable = IndustrialModel<{
|
|
@@ -1997,6 +1997,10 @@ var ViewMapper = class {
|
|
|
1997
1997
|
}
|
|
1998
1998
|
return view;
|
|
1999
1999
|
}
|
|
2000
|
+
async getViews() {
|
|
2001
|
+
const views = await this.loadViews();
|
|
2002
|
+
return Array.from(views.values());
|
|
2003
|
+
}
|
|
2000
2004
|
loadViews() {
|
|
2001
2005
|
if (this.cachePromise == null) {
|
|
2002
2006
|
this.cachePromise = this.fetchViews();
|