From 792b3f64071a551672bece635e8c927b17a04e59 Mon Sep 17 00:00:00 2001
From: Erkan Karabulut <karabulut@fortiss.org>
Date: Tue, 8 Feb 2022 14:32:26 +0100
Subject: [PATCH] push missing npm files

---
 api_connector/package.json       | 22 ++++++++++++
 tsmatch_client/.gitignore        | 59 ++++++++++++++++++++++++++++++++
 tsmatch_client/.prettierrc.js    |  6 ++++
 tsmatch_client/package.json      | 56 ++++++++++++++++++++++++++++++
 tsmatch_connector/.eslintignore  |  2 ++
 tsmatch_connector/.eslintrc.json |  3 ++
 tsmatch_connector/.gitignore     |  6 ++++
 tsmatch_connector/.prettierrc.js |  3 ++
 tsmatch_connector/package.json   | 29 ++++++++++++++++
 tsmatch_connector/tsconfig.json  | 11 ++++++
 tsmatch_connector/tslint.json    |  9 +++++
 tsmatch_engine/.gitignore        | 37 ++++++++++++++++++++
 tsmatch_engine/package.json      | 40 ++++++++++++++++++++++
 tsmatch_engine/tsconfig.json     | 26 ++++++++++++++
 tsmatch_engine/tslint.json       |  3 ++
 15 files changed, 312 insertions(+)
 create mode 100644 api_connector/package.json
 create mode 100644 tsmatch_client/.gitignore
 create mode 100644 tsmatch_client/.prettierrc.js
 create mode 100644 tsmatch_client/package.json
 create mode 100644 tsmatch_connector/.eslintignore
 create mode 100644 tsmatch_connector/.eslintrc.json
 create mode 100644 tsmatch_connector/.gitignore
 create mode 100644 tsmatch_connector/.prettierrc.js
 create mode 100644 tsmatch_connector/package.json
 create mode 100644 tsmatch_connector/tsconfig.json
 create mode 100644 tsmatch_connector/tslint.json
 create mode 100644 tsmatch_engine/.gitignore
 create mode 100644 tsmatch_engine/package.json
 create mode 100644 tsmatch_engine/tsconfig.json
 create mode 100644 tsmatch_engine/tslint.json

diff --git a/api_connector/package.json b/api_connector/package.json
new file mode 100644
index 0000000..0c43dc0
--- /dev/null
+++ b/api_connector/package.json
@@ -0,0 +1,22 @@
+{
+  "name": "openapi",
+  "version": "1.0.0",
+  "description": "",
+  "main": "index.js",
+  "scripts": {
+    "start": "nodemon ./index.js",
+    "test": "echo \"Error: no test specified\" && exit 1"
+  },
+  "author": "JiTos",
+  "license": "ISC",
+  "dependencies": {
+    "express": "^4.17.1",
+    "http": "^0.0.1-security",
+    "tsmatch-connector": "file:../tsmatch-connector",
+    "uuid": "^8.3.2",
+    "ws": "^7.5.5"
+  },
+  "devDependencies": {
+    "nodemon": "^2.0.14"
+  }
+}
diff --git a/tsmatch_client/.gitignore b/tsmatch_client/.gitignore
new file mode 100644
index 0000000..ad572e6
--- /dev/null
+++ b/tsmatch_client/.gitignore
@@ -0,0 +1,59 @@
+# OSX
+#
+.DS_Store
+
+# Xcode
+#
+build/
+*.pbxuser
+!default.pbxuser
+*.mode1v3
+!default.mode1v3
+*.mode2v3
+!default.mode2v3
+*.perspectivev3
+!default.perspectivev3
+xcuserdata
+*.xccheckout
+*.moved-aside
+DerivedData
+*.hmap
+*.ipa
+*.xcuserstate
+
+# Android/IntelliJ
+#
+build/
+.idea
+.gradle
+local.properties
+*.iml
+
+# node.js
+#
+node_modules/
+npm-debug.log
+yarn-error.log
+
+# BUCK
+buck-out/
+\.buckd/
+*.keystore
+!debug.keystore
+
+# fastlane
+#
+# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
+# screenshots whenever they are needed.
+# For more information about the recommended setup visit:
+# https://docs.fastlane.tools/best-practices/source-control/
+
+*/fastlane/report.xml
+*/fastlane/Preview.html
+*/fastlane/screenshots
+
+# Bundle artifact
+*.jsbundle
+
+# CocoaPods
+/ios/Pods/
diff --git a/tsmatch_client/.prettierrc.js b/tsmatch_client/.prettierrc.js
new file mode 100644
index 0000000..5c4de1a
--- /dev/null
+++ b/tsmatch_client/.prettierrc.js
@@ -0,0 +1,6 @@
+module.exports = {
+  bracketSpacing: false,
+  jsxBracketSameLine: true,
+  singleQuote: true,
+  trailingComma: 'all',
+};
diff --git a/tsmatch_client/package.json b/tsmatch_client/package.json
new file mode 100644
index 0000000..16cf6a6
--- /dev/null
+++ b/tsmatch_client/package.json
@@ -0,0 +1,56 @@
+{
+  "name": "TSMatchApp",
+  "version": "1.2.0",
+  "private": true,
+  "scripts": {
+    "android": "react-native run-android",
+    "ios": "react-native run-ios",
+    "start": "react-native start",
+    "test": "jest",
+    "lint": "eslint ."
+  },
+  "dependencies": {
+    "@react-native-async-storage/async-storage": "^1.15.9",
+    "@react-native-community/checkbox": "^0.5.6",
+    "@react-native-community/masked-view": "^0.1.10",
+    "@react-native-community/push-notification-ios": "^1.8.0",
+    "@react-native-picker/picker": "^1.9.4",
+    "@react-navigation/native": "^5.8.10",
+    "@react-navigation/stack": "^5.12.8",
+    "buffer": "^6.0.3",
+    "react": "16.13.1",
+    "react-native": "0.63.3",
+    "react-native-cardview": "^2.0.5",
+    "react-native-dropdown-picker": "4.0.2",
+    "react-native-elements": "^3.0.0-alpha.1",
+    "react-native-extended-stylesheet": "^0.12.0",
+    "react-native-gesture-handler": "^1.9.0",
+    "react-native-invoke-app": "^1.0.6",
+    "react-native-push-notification": "^7.4.0",
+    "react-native-safe-area-context": "^3.1.9",
+    "react-native-screens": "^2.16.1",
+    "react-native-splash-screen": "^3.2.0",
+    "react-native-svg": "^12.1.0",
+    "react-native-svg-charts": "^5.4.0",
+    "react-native-uuid": "^1.4.9",
+    "react-native-vector-icons": "^7.1.0",
+    "react-redux": "^7.2.2",
+    "react_native_mqtt": "^1.3.1",
+    "redux": "^4.0.5",
+    "underscore": "^1.12.0",
+    "xml2js": "^0.4.23",
+    "events": "^3.3.0",
+    "timers": "^0.1.1",
+    "stream": "^0.0.2",
+    "string_decoder": "^1.3.0"
+  },
+  "devDependencies": {
+    "@react-native-community/eslint-config": "^1.1.0",
+    "eslint": "^6.5.1",
+    "jest": "^25.1.0",
+    "react-test-renderer": "16.13.1"
+  },
+  "jest": {
+    "preset": "react-native"
+  }
+}
diff --git a/tsmatch_connector/.eslintignore b/tsmatch_connector/.eslintignore
new file mode 100644
index 0000000..7525967
--- /dev/null
+++ b/tsmatch_connector/.eslintignore
@@ -0,0 +1,2 @@
+build/
+node_modules
diff --git a/tsmatch_connector/.eslintrc.json b/tsmatch_connector/.eslintrc.json
new file mode 100644
index 0000000..f95bb33
--- /dev/null
+++ b/tsmatch_connector/.eslintrc.json
@@ -0,0 +1,3 @@
+{
+  "extends": "./node_modules/gts/"
+}
diff --git a/tsmatch_connector/.gitignore b/tsmatch_connector/.gitignore
new file mode 100644
index 0000000..d36fb83
--- /dev/null
+++ b/tsmatch_connector/.gitignore
@@ -0,0 +1,6 @@
+node_modules
+build
+.eslintignore
+.gitignore
+package-lock.json
+src/agent.info.ts
diff --git a/tsmatch_connector/.prettierrc.js b/tsmatch_connector/.prettierrc.js
new file mode 100644
index 0000000..ff15483
--- /dev/null
+++ b/tsmatch_connector/.prettierrc.js
@@ -0,0 +1,3 @@
+module.exports = {
+  ...require('gts/.prettierrc.json')
+}
diff --git a/tsmatch_connector/package.json b/tsmatch_connector/package.json
new file mode 100644
index 0000000..23d59dd
--- /dev/null
+++ b/tsmatch_connector/package.json
@@ -0,0 +1,29 @@
+{
+  "name": "tsmatch-connector",
+  "version": "1.0.0",
+  "description": "A package that allows to interact with a TSMatch (Things to Service Matching) instance",
+  "main": "index.js",
+  "scripts": {
+    "build": "tsc ./src/**.ts --outDir ./build",
+    "test": "node ./build/Test.js",
+    "lint": "gts lint",
+    "clean": "gts clean",
+    "fix": "gts fix"
+  },
+  "keywords": [
+    "tsmatch",
+    "iiot",
+    "efpf"
+  ],
+  "author": "Erkan Karabulut <karabulut@fortiss.org> (https://fortiss.org)",
+  "license": "ISC",
+  "devDependencies": {
+    "tslint": "^6.1.3",
+    "typescript": "^4.5.4",
+    "gts": "^3.1.0",
+    "@types/node": "^14.11.2"
+  },
+  "dependencies": {
+    "mqtt": "^4.3.1"
+  }
+}
diff --git a/tsmatch_connector/tsconfig.json b/tsmatch_connector/tsconfig.json
new file mode 100644
index 0000000..d1646f0
--- /dev/null
+++ b/tsmatch_connector/tsconfig.json
@@ -0,0 +1,11 @@
+{
+  "extends": "./node_modules/gts/tsconfig-google.json",
+  "compilerOptions": {
+    "rootDir": ".",
+    "outDir": "build"
+  },
+  "include": [
+    "src/**/*.ts",
+    "test/**/*.ts"
+  ]
+}
diff --git a/tsmatch_connector/tslint.json b/tsmatch_connector/tslint.json
new file mode 100644
index 0000000..7b73ab8
--- /dev/null
+++ b/tsmatch_connector/tslint.json
@@ -0,0 +1,9 @@
+{
+    "defaultSeverity": "error",
+    "extends": [
+        "tslint:recommended"
+    ],
+    "jsRules": {},
+    "rules": {},
+    "rulesDirectory": []
+}
diff --git a/tsmatch_engine/.gitignore b/tsmatch_engine/.gitignore
new file mode 100644
index 0000000..42408b4
--- /dev/null
+++ b/tsmatch_engine/.gitignore
@@ -0,0 +1,37 @@
+# Specifies files to intentionally ignore when using Git
+# http://git-scm.com/docs/gitignore
+
+node_modules/
+bin/
+bld/
+dist/
+es5/
+es6/
+etc/
+coverage/
+$RECYCLE.BIN/
+*.sublime-project
+*.sublime-workspace
+.idea/
+.vs/
+.vscode/
+.settings/
+.versions/
+.tmp/
+.sass-cache
+log.txt
+debug.log
+npm-debug.log*
+engine
+tmp/config.txt
+*~
+*.sw[mnpcod]
+*.log
+*.tmp
+*.tmp.*
+*.swp
+.DS_Store
+Thumbs.db
+.typingsrc
+UserInterfaceState.xcuserstate
+agent.info.ts
\ No newline at end of file
diff --git a/tsmatch_engine/package.json b/tsmatch_engine/package.json
new file mode 100644
index 0000000..213320e
--- /dev/null
+++ b/tsmatch_engine/package.json
@@ -0,0 +1,40 @@
+{
+    "name": "tsmatch_component",
+    "version": "1.0.0",
+    "description": "a first set-up for the TSMatch component responsible for dat matching between IoT devices and services",
+    "scripts": {
+        "build": "gulp build",
+        "lint": "gulp lint",
+        "lint:fix": "gulp lint:fix",
+        "broker": "coaty-scripts broker",
+        "broker:verbose": "coaty-scripts broker --verbose",
+        "service": "node -r dotenv/config dist/service/Agent.js"
+    },
+    "readme": "README.md",
+    "author": "Bnouhanna",
+    "license": "MIT",
+    "private": true,
+    "dependencies": {
+        "@coaty/core": "^2.0.0",
+        "dotenv": "^8.2.0",
+        "natural": "^2.1.5",
+        "pg": "^7.18.2",
+        "rxjs": "^6.5.4",
+        "string-similarity": "^4.0.2",
+        "run-parallel": "^1.2.0",
+        "neo4j-driver": "^4.3.1",
+        "js-yaml": "^4.1.0",
+        "underscore": "^1.13.1"
+    },
+    "devDependencies": {
+        "@types/node": "^13.9.0",
+        "@types/string-similarity": "^3.0.0",
+        "fs-extra": "^8.1.0",
+        "gulp": "^4.0.2",
+        "gulp-sourcemaps": "^2.6.5",
+        "gulp-tslint": "^8.1.4",
+        "gulp-typescript": "^5.0.1",
+        "tslint": "^5.20.1",
+        "typescript": "^3.8.3"
+    }
+}
diff --git a/tsmatch_engine/tsconfig.json b/tsmatch_engine/tsconfig.json
new file mode 100644
index 0000000..aa04722
--- /dev/null
+++ b/tsmatch_engine/tsconfig.json
@@ -0,0 +1,26 @@
+{
+    "compilerOptions": {
+        "allowSyntheticDefaultImports": true,
+        "noUnusedLocals": true,
+        "noUnusedParameters": false,
+        "skipLibCheck": true,
+        "declaration": true,
+        "emitDecoratorMetadata": true,
+        "experimentalDecorators": true,
+        "sourceMap": false,
+        "inlineSourceMap": true,
+        "inlineSources": false,
+        "noImplicitAny": false,
+        "removeComments": true,
+        "rootDir": "src",
+        "outDir": "dist",
+        "lib": [
+            "es6",
+            "scripthost"
+        ],
+        "module": "commonjs",
+        "moduleResolution": "node",
+        "target": "es5"
+    },
+    "compileOnSave": false
+}
\ No newline at end of file
diff --git a/tsmatch_engine/tslint.json b/tsmatch_engine/tslint.json
new file mode 100644
index 0000000..8fcd3b1
--- /dev/null
+++ b/tsmatch_engine/tslint.json
@@ -0,0 +1,3 @@
+{
+    "extends": "@coaty/core/tslint-config"
+}
\ No newline at end of file
-- 
GitLab