2019-08-14 19:55:24 +03:00
|
|
|
///
|
2024-01-09 10:46:16 +02:00
|
|
|
/// Copyright © 2016-2024 The Thingsboard Authors
|
2019-08-14 19:55:24 +03:00
|
|
|
///
|
|
|
|
|
/// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
|
/// you may not use this file except in compliance with the License.
|
|
|
|
|
/// You may obtain a copy of the License at
|
|
|
|
|
///
|
|
|
|
|
/// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
///
|
|
|
|
|
/// Unless required by applicable law or agreed to in writing, software
|
|
|
|
|
/// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
|
/// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
|
/// See the License for the specific language governing permissions and
|
|
|
|
|
/// limitations under the License.
|
|
|
|
|
///
|
|
|
|
|
|
2022-05-25 12:26:23 +03:00
|
|
|
import { BaseData, ExportableEntity } from '@shared/models/base-data';
|
2020-04-27 09:27:14 +03:00
|
|
|
import { AssetId } from './id/asset-id';
|
|
|
|
|
import { TenantId } from '@shared/models/id/tenant-id';
|
|
|
|
|
import { CustomerId } from '@shared/models/id/customer-id';
|
2019-10-10 13:00:29 +03:00
|
|
|
import { EntitySearchQuery } from '@shared/models/relation.models';
|
2022-09-26 18:10:12 +03:00
|
|
|
import { AssetProfileId } from '@shared/models/id/asset-profile-id';
|
|
|
|
|
import { RuleChainId } from '@shared/models/id/rule-chain-id';
|
|
|
|
|
import { DashboardId } from '@shared/models/id/dashboard-id';
|
2024-08-07 16:01:08 +03:00
|
|
|
import { EntityInfoData, HasTenantId, HasVersion } from '@shared/models/entity.models';
|
2022-09-26 18:10:12 +03:00
|
|
|
|
2024-08-07 16:01:08 +03:00
|
|
|
export interface AssetProfile extends BaseData<AssetProfileId>, HasTenantId, HasVersion, ExportableEntity<AssetProfileId> {
|
2022-09-26 18:10:12 +03:00
|
|
|
tenantId?: TenantId;
|
|
|
|
|
name: string;
|
|
|
|
|
description?: string;
|
|
|
|
|
default?: boolean;
|
|
|
|
|
image?: string;
|
|
|
|
|
defaultRuleChainId?: RuleChainId;
|
|
|
|
|
defaultDashboardId?: DashboardId;
|
|
|
|
|
defaultQueueName?: string;
|
2023-01-05 18:05:56 +02:00
|
|
|
defaultEdgeRuleChainId?: RuleChainId;
|
2022-09-26 18:10:12 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface AssetProfileInfo extends EntityInfoData {
|
2023-03-17 14:21:27 +02:00
|
|
|
tenantId?: TenantId;
|
2022-09-26 18:10:12 +03:00
|
|
|
image?: string;
|
|
|
|
|
defaultDashboardId?: DashboardId;
|
|
|
|
|
}
|
2019-08-14 19:55:24 +03:00
|
|
|
|
2024-08-07 16:01:08 +03:00
|
|
|
export interface Asset extends BaseData<AssetId>, HasTenantId, HasVersion, ExportableEntity<AssetId> {
|
2019-11-15 12:22:14 +02:00
|
|
|
tenantId?: TenantId;
|
|
|
|
|
customerId?: CustomerId;
|
2019-08-14 19:55:24 +03:00
|
|
|
name: string;
|
|
|
|
|
type: string;
|
2020-02-20 16:35:11 +02:00
|
|
|
label: string;
|
2022-09-26 18:10:12 +03:00
|
|
|
assetProfileId?: AssetProfileId;
|
2019-08-14 19:55:24 +03:00
|
|
|
additionalInfo?: any;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface AssetInfo extends Asset {
|
|
|
|
|
customerTitle: string;
|
|
|
|
|
customerIsPublic: boolean;
|
2022-09-26 18:10:12 +03:00
|
|
|
assetProfileName: string;
|
2019-08-14 19:55:24 +03:00
|
|
|
}
|
2019-10-10 13:00:29 +03:00
|
|
|
|
|
|
|
|
export interface AssetSearchQuery extends EntitySearchQuery {
|
|
|
|
|
assetTypes: Array<string>;
|
|
|
|
|
}
|