From 99d1096c054722acd7c139c67162a843020b4158 Mon Sep 17 00:00:00 2001 From: y509144 <120079825+y509144@users.noreply.github.com> Date: Fri, 10 Feb 2023 15:29:55 +0530 Subject: [PATCH] Add files via upload --- widget/interfaces/c8y.position.ts | 22 ++++++++++++++++ widget/interfaces/initCord.interface.ts | 21 +++++++++++++++ widget/interfaces/locationSearch.model.ts | 31 +++++++++++++++++++++++ widget/interfaces/smartRule.interface.ts | 24 ++++++++++++++++++ 4 files changed, 98 insertions(+) create mode 100644 widget/interfaces/c8y.position.ts create mode 100644 widget/interfaces/initCord.interface.ts create mode 100644 widget/interfaces/locationSearch.model.ts create mode 100644 widget/interfaces/smartRule.interface.ts diff --git a/widget/interfaces/c8y.position.ts b/widget/interfaces/c8y.position.ts new file mode 100644 index 0000000..0833c58 --- /dev/null +++ b/widget/interfaces/c8y.position.ts @@ -0,0 +1,22 @@ +/** + * Copyright (c) 2020 Software AG, Darmstadt, Germany and/or its licensors + * + * SPDX-License-Identifier: Apache-2.0 + * + * 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. + */ +export interface C8yPosition { + lng: any; // in case the coordinates are defined as string... + alt: any; + lat: any; +} diff --git a/widget/interfaces/initCord.interface.ts b/widget/interfaces/initCord.interface.ts new file mode 100644 index 0000000..8d3774b --- /dev/null +++ b/widget/interfaces/initCord.interface.ts @@ -0,0 +1,21 @@ +/** + * Copyright (c) 2020 Software AG, Darmstadt, Germany and/or its licensors + * + * SPDX-License-Identifier: Apache-2.0 + * + * 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. + */ +export interface InitCordInterface { + lat: number; + long: number; +} diff --git a/widget/interfaces/locationSearch.model.ts b/widget/interfaces/locationSearch.model.ts new file mode 100644 index 0000000..241ee6d --- /dev/null +++ b/widget/interfaces/locationSearch.model.ts @@ -0,0 +1,31 @@ +/** + * Copyright (c) 2020 Software AG, Darmstadt, Germany and/or its licensors + * + * SPDX-License-Identifier: Apache-2.0 + * + * 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. + */ +export interface LocationResult { + place_id: string; + licence: string; + osm_type: string; + osm_id: string; + boundingbox: string[]; + lat: string; + lon: string; + display_name: string; + class: string; + type: string; + importance: number; + icon: string; +} diff --git a/widget/interfaces/smartRule.interface.ts b/widget/interfaces/smartRule.interface.ts new file mode 100644 index 0000000..25e4a06 --- /dev/null +++ b/widget/interfaces/smartRule.interface.ts @@ -0,0 +1,24 @@ +/** + * Copyright (c) 2020 Software AG, Darmstadt, Germany and/or its licensors + * + * SPDX-License-Identifier: Apache-2.0 + * + * 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. + */ +export interface SmartRuleInterface { + smartRuleName?: string; + smartRuleTrigger?: string; + smartRuleType?: string; + smartRuleSeverity?: string; + smartRuleText?: string; +}