@things-factory/operato-dataset 8.0.40 → 9.0.0-9.0.0-beta.59.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/operato-dataset",
3
- "version": "8.0.40",
3
+ "version": "9.0.0-9.0.0-beta.59.0",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "dist-client/index.js",
6
6
  "things-factory": true,
@@ -40,67 +40,68 @@
40
40
  "docker:push": "docker image push hatiolab/operato-dataset:latest && docker image push hatiolab/operato-dataset:$npm_package_version"
41
41
  },
42
42
  "dependencies": {
43
- "@operato/board": "^8.0.0",
44
- "@operato/data-grist": "^8.0.0",
45
- "@operato/layout": "^8.0.0",
46
- "@operato/scene-chartjs": "^8.0.0",
47
- "@operato/scene-clock": "^8.0.0",
48
- "@operato/scene-data-transform": "^8.0.0",
49
- "@operato/scene-form": "^8.0.0",
50
- "@operato/scene-gantt": "^8.0.0",
51
- "@operato/scene-gauge": "^8.0.0",
52
- "@operato/scene-grist": "^8.0.0",
53
- "@operato/scene-half-roundrect": "^8.0.0",
54
- "@operato/scene-image-slider": "^8.0.0",
55
- "@operato/scene-integration": "^8.0.0",
56
- "@operato/scene-label": "^8.0.0",
57
- "@operato/scene-news-ticker": "^8.0.0",
58
- "@operato/scene-progressbar": "^8.0.0",
59
- "@operato/scene-random": "^8.0.0",
60
- "@operato/scene-switch": "^8.0.0",
61
- "@operato/scene-table": "^8.0.0",
62
- "@operato/scene-timer": "^8.0.0",
63
- "@operato/shell": "^8.0.0",
64
- "@things-factory/api": "^8.0.38",
65
- "@things-factory/apptool-base": "^8.0.38",
66
- "@things-factory/apptool-ui": "^8.0.38",
67
- "@things-factory/auth-base": "^8.0.38",
68
- "@things-factory/auth-ui": "^8.0.38",
69
- "@things-factory/board-service": "^8.0.40",
70
- "@things-factory/board-ui": "^8.0.38",
71
- "@things-factory/ccp": "^8.0.40",
72
- "@things-factory/context-ui": "^8.0.38",
73
- "@things-factory/dashboard": "^8.0.40",
74
- "@things-factory/dataset": "^8.0.40",
75
- "@things-factory/edge-client": "^8.0.40",
76
- "@things-factory/evaluation": "^8.0.38",
77
- "@things-factory/export-ui": "^8.0.38",
78
- "@things-factory/help": "^8.0.38",
79
- "@things-factory/i18n-base": "^8.0.38",
80
- "@things-factory/integration-base": "^8.0.40",
81
- "@things-factory/integration-influxdb": "^8.0.40",
82
- "@things-factory/integration-msgraph": "^8.0.40",
83
- "@things-factory/integration-ui": "^8.0.40",
84
- "@things-factory/lite-menu": "^8.0.40",
85
- "@things-factory/lock-client": "^8.0.38",
86
- "@things-factory/more-base": "^8.0.38",
87
- "@things-factory/more-ui": "^8.0.38",
88
- "@things-factory/notification": "^8.0.38",
89
- "@things-factory/oauth2-client": "^8.0.38",
90
- "@things-factory/organization": "^8.0.38",
91
- "@things-factory/qc": "^8.0.40",
92
- "@things-factory/resource-ui": "^8.0.38",
93
- "@things-factory/scheduler": "^8.0.38",
94
- "@things-factory/setting-base": "^8.0.38",
95
- "@things-factory/setting-ui": "^8.0.38",
96
- "@things-factory/shell": "^8.0.38",
97
- "@things-factory/spc": "^8.0.40",
98
- "@things-factory/system": "^8.0.38",
99
- "@things-factory/work-shift": "^8.0.38",
100
- "@things-factory/worklist": "^8.0.40"
43
+ "@operato/board": "^9.0.0-beta",
44
+ "@operato/data-grist": "^9.0.0-beta",
45
+ "@operato/layout": "^9.0.0-beta",
46
+ "@operato/scene-chartjs": "^9.0.0-beta",
47
+ "@operato/scene-clock": "^9.0.0-beta",
48
+ "@operato/scene-data-transform": "^9.0.0-beta",
49
+ "@operato/scene-form": "^9.0.0-beta",
50
+ "@operato/scene-gantt": "^9.0.0-beta",
51
+ "@operato/scene-gauge": "^9.0.0-beta",
52
+ "@operato/scene-grist": "^9.0.0-beta",
53
+ "@operato/scene-half-roundrect": "^9.0.0-beta",
54
+ "@operato/scene-image-slider": "^9.0.0-beta",
55
+ "@operato/scene-integration": "^9.0.0-beta",
56
+ "@operato/scene-label": "^9.0.0-beta",
57
+ "@operato/scene-material-design": "^9.0.0-beta",
58
+ "@operato/scene-news-ticker": "^9.0.0-beta",
59
+ "@operato/scene-progressbar": "^9.0.0-beta",
60
+ "@operato/scene-random": "^9.0.0-beta",
61
+ "@operato/scene-switch": "^9.0.0-beta",
62
+ "@operato/scene-table": "^9.0.0-beta",
63
+ "@operato/scene-timer": "^9.0.0-beta",
64
+ "@operato/shell": "^9.0.0-beta",
65
+ "@things-factory/api": "^9.0.0-9.0.0-beta.59.0",
66
+ "@things-factory/apptool-base": "^9.0.0-9.0.0-beta.59.0",
67
+ "@things-factory/apptool-ui": "^9.0.0-9.0.0-beta.59.0",
68
+ "@things-factory/auth-base": "^9.0.0-9.0.0-beta.59.0",
69
+ "@things-factory/auth-ui": "^9.0.0-9.0.0-beta.59.0",
70
+ "@things-factory/board-service": "^9.0.0-9.0.0-beta.59.0",
71
+ "@things-factory/board-ui": "^9.0.0-9.0.0-beta.59.0",
72
+ "@things-factory/ccp": "^9.0.0-9.0.0-beta.59.0",
73
+ "@things-factory/context-ui": "^9.0.0-9.0.0-beta.59.0",
74
+ "@things-factory/dashboard": "^9.0.0-9.0.0-beta.59.0",
75
+ "@things-factory/dataset": "^9.0.0-9.0.0-beta.59.0",
76
+ "@things-factory/edge-client": "^9.0.0-9.0.0-beta.59.0",
77
+ "@things-factory/evaluation": "^9.0.0-9.0.0-beta.59.0",
78
+ "@things-factory/export-ui": "^9.0.0-9.0.0-beta.59.0",
79
+ "@things-factory/help": "^9.0.0-9.0.0-beta.59.0",
80
+ "@things-factory/i18n-base": "^9.0.0-9.0.0-beta.59.0",
81
+ "@things-factory/integration-base": "^9.0.0-9.0.0-beta.59.0",
82
+ "@things-factory/integration-influxdb": "^9.0.0-9.0.0-beta.59.0",
83
+ "@things-factory/integration-msgraph": "^9.0.0-9.0.0-beta.59.0",
84
+ "@things-factory/integration-ui": "^9.0.0-9.0.0-beta.59.0",
85
+ "@things-factory/lite-menu": "^9.0.0-9.0.0-beta.59.0",
86
+ "@things-factory/lock-client": "^9.0.0-9.0.0-beta.59.0",
87
+ "@things-factory/more-base": "^9.0.0-9.0.0-beta.59.0",
88
+ "@things-factory/more-ui": "^9.0.0-9.0.0-beta.59.0",
89
+ "@things-factory/notification": "^9.0.0-9.0.0-beta.59.0",
90
+ "@things-factory/oauth2-client": "^9.0.0-9.0.0-beta.59.0",
91
+ "@things-factory/organization": "^9.0.0-9.0.0-beta.59.0",
92
+ "@things-factory/qc": "^9.0.0-9.0.0-beta.59.0",
93
+ "@things-factory/resource-ui": "^9.0.0-9.0.0-beta.59.0",
94
+ "@things-factory/scheduler": "^9.0.0-9.0.0-beta.59.0",
95
+ "@things-factory/setting-base": "^9.0.0-9.0.0-beta.59.0",
96
+ "@things-factory/setting-ui": "^9.0.0-9.0.0-beta.59.0",
97
+ "@things-factory/shell": "^9.0.0-9.0.0-beta.59.0",
98
+ "@things-factory/spc": "^9.0.0-9.0.0-beta.59.0",
99
+ "@things-factory/system": "^9.0.0-9.0.0-beta.59.0",
100
+ "@things-factory/work-shift": "^9.0.0-9.0.0-beta.59.0",
101
+ "@things-factory/worklist": "^9.0.0-9.0.0-beta.59.0"
101
102
  },
102
103
  "devDependencies": {
103
- "@things-factory/builder": "^8.0.37"
104
+ "@things-factory/builder": "^9.0.0-9.0.0-beta.59.0"
104
105
  },
105
- "gitHead": "6f97ca5dc8aab9acaeebbd3caace0c76bab2676d"
106
+ "gitHead": "cf6ee84b991f469a4e71198b0e6314b45e9e10b8"
106
107
  }
package/schema.graphql CHANGED
@@ -1924,6 +1924,8 @@ type Employee {
1924
1924
  address: String
1925
1925
  alias: String
1926
1926
  approvalLines: [ApprovalLine!]!
1927
+ bankAccount: String
1928
+ bankName: String
1927
1929
  contact: Contact
1928
1930
  controlNo: String!
1929
1931
  createdAt: DateTimeISO
@@ -1932,8 +1934,10 @@ type Employee {
1932
1934
  department: Department
1933
1935
  domain: Domain!
1934
1936
  email: EmailAddress
1937
+ emergencyContact: String
1938
+ emergencyContactPhone: String
1935
1939
  extension: String
1936
- hiredOn: String
1940
+ hiredOn: DateTimeISO
1937
1941
  id: ID!
1938
1942
  jobPosition: String
1939
1943
  jobResponsibility: String
@@ -1943,7 +1947,7 @@ type Employee {
1943
1947
  phone: String
1944
1948
  photo: String
1945
1949
  profile: Profile
1946
- retiredAt: String
1950
+ retiredOn: DateTimeISO
1947
1951
  supervises: [Employee!]!
1948
1952
  supervisor: Employee
1949
1953
  type: String
@@ -1961,18 +1965,22 @@ type EmployeeList {
1961
1965
  input EmployeePatch {
1962
1966
  active: Boolean
1963
1967
  alias: String
1968
+ bankAccount: String
1969
+ bankName: String
1964
1970
  contact: ObjectRefForContact
1965
1971
  controlNo: String
1966
1972
  cuFlag: String
1967
1973
  department: ObjectRefForDepartment
1968
- hiredOn: String
1974
+ emergencyContact: String
1975
+ emergencyContactPhone: String
1976
+ hiredOn: DateTimeISO
1969
1977
  id: ID
1970
1978
  jobPosition: String
1971
1979
  jobResponsibility: String
1972
1980
  name: String
1973
1981
  note: String
1974
1982
  photo: Upload
1975
- retiredAt: String
1983
+ retiredOn: DateTimeISO
1976
1984
  supervisor: ObjectRefForEmployee
1977
1985
  type: EmployeeType
1978
1986
  user: ObjectRefForUser
@@ -4064,17 +4072,21 @@ input NewDepartment {
4064
4072
  input NewEmployee {
4065
4073
  active: Boolean
4066
4074
  alias: String
4075
+ bankAccount: String
4076
+ bankName: String
4067
4077
  contact: ObjectRefForContact
4068
4078
  controlNo: String!
4069
4079
  department: ObjectRefForDepartment
4080
+ emergencyContact: String
4081
+ emergencyContactPhone: String
4070
4082
  extension: String
4071
- hiredOn: String
4083
+ hiredOn: DateTimeISO
4072
4084
  jobPosition: String
4073
4085
  jobResponsibility: String
4074
4086
  name: String!
4075
4087
  note: String
4076
4088
  photo: Upload
4077
- retiredAt: String
4089
+ retiredOn: DateTimeISO
4078
4090
  supervisor: ObjectRefForEmployee
4079
4091
  type: EmployeeType
4080
4092
  user: ObjectRefForUser
@@ -4707,7 +4719,7 @@ input ObjectRefForEmployee {
4707
4719
  """Field description"""
4708
4720
  description: String
4709
4721
  email: EmailAddress
4710
- hiredOn: String
4722
+ hiredOn: DateTimeISO
4711
4723
 
4712
4724
  """Field id"""
4713
4725
  id: ID!
@@ -52,7 +52,6 @@
52
52
 
53
53
  <!-- Performance tip: hint to the browser to start the handshake for the fonts site -->
54
54
  <link rel="preconnect" href="https://fonts.gstatic.com/" crossorigin />
55
- <link href="/node_modules/@material-design-icons/font/index.css" rel="stylesheet" />
56
55
  <link href="/node_modules/material-symbols/index.css" rel="stylesheet" />
57
56
  <link href="/node_modules/@fontsource/roboto/index.css" rel="stylesheet" />
58
57
  <link rel="stylesheet" href="/theme.css" />
@@ -51,7 +51,6 @@
51
51
 
52
52
  <!-- Performance tip: hint to the browser to start the handshake for the fonts site -->
53
53
  <link rel="preconnect" href="https://fonts.gstatic.com/" crossorigin />
54
- <link href="/node_modules/@material-design-icons/font/index.css" rel="stylesheet" />
55
54
  <link href="/node_modules/material-symbols/index.css" rel="stylesheet" />
56
55
  <link href="/node_modules/@fontsource/roboto/index.css" rel="stylesheet" />
57
56
  <link rel="stylesheet" href="/theme.css" />
@@ -1,52 +0,0 @@
1
- module.exports = {
2
- SECRET: '0xD58F835B69D207A76CC5F84a70a1D0d4C79dAC95', // should be changed
3
- email: {
4
- host: 'smtp.office365.com', // your sender-email smtp host
5
- port: 587, // smtp server port
6
- secure: false, // true for 465, false for other ports
7
- auth: {
8
- user: 'your sender-email',
9
- pass: 'your sender-email password' // generated ethereal password
10
- },
11
- secureConnection: false,
12
- tls: {
13
- ciphers: 'SSLv3'
14
- }
15
- },
16
- logger: {
17
- file: {
18
- filename: 'logs/application-%DATE%.log',
19
- datePattern: 'YYYY-MM-DD-HH',
20
- zippedArchive: false,
21
- maxSize: '20m',
22
- maxFiles: '2d',
23
- level: 'info'
24
- },
25
- console: {
26
- level: 'silly'
27
- }
28
- },
29
- ormconfig: {
30
- name: 'default',
31
- type: 'postgres',
32
- host: 'postgres',
33
- port: 5432,
34
- database: 'postgres',
35
- username: 'postgres',
36
- password: 'abcd1234',
37
- synchronize: true,
38
- logging: true
39
- },
40
- scheduler: {
41
- /* Name to be used for setting client's "application" properties when registering a schedule */
42
- application: 'operato-dataset',
43
- /* Base endpoint to be used for setting "callback" properties when registering a schedule */
44
- callbackBase: 'http://app:3000',
45
- /*
46
- Scheduler service endpoint
47
- caution) endpoint for "localhost" has some problem.
48
- https://github.com/node-fetch/node-fetch/issues/1624
49
- */
50
- endpoint: 'http://scheduler:9902'
51
- }
52
- }
@@ -1,55 +0,0 @@
1
- version: '3'
2
- services:
3
- nginx:
4
- image: hatiolab/operato-nginx:latest
5
- ports:
6
- - ${HostPort}:80
7
- depends_on:
8
- - app
9
- app:
10
- build: .
11
- container_name: operato-dataset
12
- image: hatiolab/operato-dataset:latest
13
- privileged: true
14
- volumes:
15
- - ./logs:/app/logs
16
- - ./config.production.js:/app/config.production.js
17
- ports:
18
- - 4000:3000
19
- depends_on:
20
- - postgres
21
- - mosquitto
22
- - scheduler
23
- logging:
24
- driver: 'json-file'
25
- options:
26
- max-size: '100m'
27
- max-file: '3'
28
- postgres:
29
- image: postgres:13.2
30
- container_name: db-operato-dataset
31
- environment:
32
- POSTGRES_PASSWORD: abcd1234
33
- POSTGRES_USER: postgres
34
- PGDATA: /var/lib/postgresql/data/pgdata
35
- volumes:
36
- - ./postgres_data:/var/lib/postgresql/data/pgdata
37
- ports:
38
- - '55432:5432'
39
- mosquitto:
40
- image: eclipse-mosquitto:latest
41
- ports:
42
- - 1883:1883
43
- - 9001:9001
44
- scheduler:
45
- image: hatiolab/schevt-mgr:latest
46
- container_name: scheduler
47
- volumes:
48
- - ./config.yaml:/app/config.yaml
49
- ports:
50
- - '9902:9902'
51
- logging:
52
- driver: 'json-file'
53
- options:
54
- max-size: '100m'
55
- max-file: '3'
@@ -1,54 +0,0 @@
1
- if [ -f "config.production.js" ] ; then
2
- echo "config.production.js exist"
3
- else
4
- echo "config.production.js create"
5
- curl -O https://raw.githubusercontent.com/things-factory/things-factory/master/packages/operato-dataset/installer/config.production.js
6
- fi
7
-
8
- if [ -f "start.sh" ] ; then
9
- echo "start.sh exist"
10
- else
11
- echo "start.sh create"
12
- curl -O https://raw.githubusercontent.com/things-factory/things-factory/master/packages/operato-dataset/installer/start.sh
13
- fi
14
-
15
- if [ -f "stop.sh" ] ; then
16
- echo "stop.sh exist"
17
- else
18
- echo "stop.sh create"
19
- curl -O https://raw.githubusercontent.com/things-factory/things-factory/master/packages/operato-dataset/installer/stop.sh
20
- fi
21
-
22
- if [ -f "upgrade.sh" ] ; then
23
- echo "upgrade.sh exist"
24
- else
25
- echo "upgrade.sh create"
26
- curl -O https://raw.githubusercontent.com/things-factory/things-factory/master/packages/operato-dataset/installer/upgrade.sh
27
- fi
28
-
29
- if [ -f "migrate.sh" ] ; then
30
- echo "migrate.sh exist"
31
- else
32
- echo "migrate.sh create"
33
- curl -O https://raw.githubusercontent.com/things-factory/things-factory/master/packages/operato-dataset/installer/migrate.sh
34
- fi
35
-
36
- if [ -f "docker-compose.yml" ] ; then
37
- echo "docker-compose.yml exist"
38
- else
39
- echo "docker-compose.yml create"
40
- curl -O https://raw.githubusercontent.com/things-factory/things-factory/master/packages/operato-dataset/installer/docker-compose.yml
41
- fi
42
-
43
- chmod u+x start.sh
44
- chmod u+x stop.sh
45
- chmod u+x upgrade.sh
46
- chmod u+x migrate.sh
47
-
48
- echo "HostPort=3000" > .env
49
-
50
- docker pull hatiolab/operato-dataset:latest
51
-
52
- docker pull hatiolab/operato-nginx:latest
53
-
54
- docker-compose create
@@ -1 +0,0 @@
1
- docker exec -it operato-dataset npx things-factory-migration --mode=production
@@ -1,18 +0,0 @@
1
- HOST_PORT=3000
2
-
3
- if [ $# -eq 0 ] ; then
4
- echo "Warning: default port 3000"
5
- else
6
- HOST_PORT=$1
7
- fi
8
-
9
-
10
- echo "HOST_PORT : ${HOST_PORT}"
11
-
12
- echo "HostPort="$HOST_PORT > .env
13
-
14
- if [[ "$OSTYPE" == "linux-gnu"* ]]; then
15
- xhost +"local:docker@"
16
- fi
17
-
18
- docker-compose up -d
package/installer/stop.sh DELETED
@@ -1 +0,0 @@
1
- docker-compose stop
@@ -1 +0,0 @@
1
- curl -fsSL https://raw.githubusercontent.com/things-factory/things-factory/master/packages/operato-dataset/installer/install.sh | bash -s