industrial-model 0.6.0 → 0.8.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 +372 -1
- package/dist/cognite-core/index.cjs +691 -0
- package/dist/cognite-core/index.cjs.map +1 -1
- package/dist/cognite-core/index.d.cts +6 -2
- package/dist/cognite-core/index.d.ts +6 -2
- package/dist/cognite-core/index.js +691 -0
- package/dist/cognite-core/index.js.map +1 -1
- package/dist/index.cjs +680 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -3
- package/dist/index.d.ts +13 -3
- package/dist/index.js +680 -0
- package/dist/index.js.map +1 -1
- package/dist/{types-DCP5GMi3.d.cts → types-BrD2jPB-.d.cts} +138 -11
- package/dist/{types-DCP5GMi3.d.ts → types-BrD2jPB-.d.ts} +138 -11
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CogniteClient } from '@cognite/sdk';
|
|
2
|
-
import {
|
|
2
|
+
import { u as IndustrialModel, N as NodeId, J as AggregateOptions, c as AggregateResult, d as AggregateResultItem, y as QuerySelect, K as QueryOptions, w as QueryResult, x as QueryResultItem, B as UpsertOptions, G as UpsertResult, I as IndustrialModelClientOptions, b as DeleteResult, a as DatapointsExecutor } from '../types-BrD2jPB-.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<{
|
|
@@ -515,6 +515,7 @@ type CogniteCoreQueryExecutor<TView extends CogniteCoreViewExternalId> = {
|
|
|
515
515
|
}): Promise<QueryResult<QueryResultItem<CogniteCoreModel<TView>, undefined>>>;
|
|
516
516
|
};
|
|
517
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>;
|
|
518
519
|
|
|
519
520
|
/** Data model id for Cognite Core v1. */
|
|
520
521
|
declare const COGNITE_CORE_DATA_MODEL: {
|
|
@@ -527,6 +528,9 @@ declare class CogniteCoreClient {
|
|
|
527
528
|
constructor(client: CogniteClient, options?: IndustrialModelClientOptions);
|
|
528
529
|
query<TView extends CogniteCoreViewExternalId>(viewExternalId: TView): CogniteCoreQueryExecutor<TView>;
|
|
529
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
|
+
get datapoints(): DatapointsExecutor;
|
|
530
534
|
}
|
|
531
535
|
|
|
532
|
-
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 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 };
|
|
536
|
+
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 };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CogniteClient } from '@cognite/sdk';
|
|
2
|
-
import {
|
|
2
|
+
import { u as IndustrialModel, N as NodeId, J as AggregateOptions, c as AggregateResult, d as AggregateResultItem, y as QuerySelect, K as QueryOptions, w as QueryResult, x as QueryResultItem, B as UpsertOptions, G as UpsertResult, I as IndustrialModelClientOptions, b as DeleteResult, a as DatapointsExecutor } from '../types-BrD2jPB-.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<{
|
|
@@ -515,6 +515,7 @@ type CogniteCoreQueryExecutor<TView extends CogniteCoreViewExternalId> = {
|
|
|
515
515
|
}): Promise<QueryResult<QueryResultItem<CogniteCoreModel<TView>, undefined>>>;
|
|
516
516
|
};
|
|
517
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>;
|
|
518
519
|
|
|
519
520
|
/** Data model id for Cognite Core v1. */
|
|
520
521
|
declare const COGNITE_CORE_DATA_MODEL: {
|
|
@@ -527,6 +528,9 @@ declare class CogniteCoreClient {
|
|
|
527
528
|
constructor(client: CogniteClient, options?: IndustrialModelClientOptions);
|
|
528
529
|
query<TView extends CogniteCoreViewExternalId>(viewExternalId: TView): CogniteCoreQueryExecutor<TView>;
|
|
529
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
|
+
get datapoints(): DatapointsExecutor;
|
|
530
534
|
}
|
|
531
535
|
|
|
532
|
-
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 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 };
|
|
536
|
+
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 };
|