@things-factory/scheduler-client 7.0.0-alpha.0 → 7.0.0-alpha.18
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/dist-client/tsconfig.tsbuildinfo +1 -1
- package/dist-server/index.js +0 -1
- package/dist-server/index.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/helps/config/scheduler.md +22 -0
- package/package.json +4 -4
- package/server/index.ts +0 -2
- package/dist-server/routes.js +0 -25
- package/dist-server/routes.js.map +0 -1
- package/server/routes.ts +0 -28
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# scheduler
|
|
2
|
+
|
|
3
|
+
Scheduler(https://github.com/hatiolab/operato-foundation-service) 서비스 연결 정보 설정
|
|
4
|
+
|
|
5
|
+
## 예시
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
module.exports = {
|
|
9
|
+
scheduler: {
|
|
10
|
+
/* Name to be used for setting client's "application" properties when registering a schedule */
|
|
11
|
+
application: 'operato-schedule',
|
|
12
|
+
/* Base endpoint to be used for setting "callback" properties when registering a schedule */
|
|
13
|
+
callbackBase: 'http://localhost:3000',
|
|
14
|
+
/*
|
|
15
|
+
Scheduler service endpoint
|
|
16
|
+
caution) endpoint for "localhost" has some problem.
|
|
17
|
+
https://github.com/node-fetch/node-fetch/issues/1624
|
|
18
|
+
*/
|
|
19
|
+
endpoint: 'http://127.0.0.1:9902'
|
|
20
|
+
},
|
|
21
|
+
}
|
|
22
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/scheduler-client",
|
|
3
|
-
"version": "7.0.0-alpha.
|
|
3
|
+
"version": "7.0.0-alpha.18",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "dist-client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@operato/graphql": "^2.0.0-alpha.0",
|
|
31
31
|
"@operato/shell": "^2.0.0-alpha.0",
|
|
32
|
-
"@things-factory/auth-base": "^7.0.0-alpha.
|
|
32
|
+
"@things-factory/auth-base": "^7.0.0-alpha.18",
|
|
33
33
|
"@things-factory/env": "^7.0.0-alpha.0",
|
|
34
|
-
"@things-factory/shell": "^7.0.0-alpha.
|
|
34
|
+
"@things-factory/shell": "^7.0.0-alpha.18",
|
|
35
35
|
"node-fetch": "^2.6.0"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "f695ce9c0e3a8f2d715d27a2e7674c9b9c6b1ee1"
|
|
38
38
|
}
|
package/server/index.ts
CHANGED
package/dist-server/routes.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
const debug = require('debug')('things-factory:scheduler-client:routes');
|
|
2
|
-
process.on('bootstrap-module-global-public-route', (app, globalPublicRouter) => {
|
|
3
|
-
/*
|
|
4
|
-
* can add global public routes to application (auth not required, tenancy not required)
|
|
5
|
-
*
|
|
6
|
-
* ex) routes.get('/path', async(context, next) => {})
|
|
7
|
-
* ex) routes.post('/path', async(context, next) => {})
|
|
8
|
-
*/
|
|
9
|
-
});
|
|
10
|
-
process.on('bootstrap-module-global-private-route', (app, globalPrivateRouter) => {
|
|
11
|
-
/*
|
|
12
|
-
* can add global private routes to application (auth required, tenancy not required)
|
|
13
|
-
*/
|
|
14
|
-
});
|
|
15
|
-
process.on('bootstrap-module-domain-public-route', (app, domainPublicRouter) => {
|
|
16
|
-
/*
|
|
17
|
-
* can add domain public routes to application (auth not required, tenancy required)
|
|
18
|
-
*/
|
|
19
|
-
});
|
|
20
|
-
process.on('bootstrap-module-domain-private-route', (app, domainPrivateRouter) => {
|
|
21
|
-
/*
|
|
22
|
-
* can add domain private routes to application (auth required, tenancy required)
|
|
23
|
-
*/
|
|
24
|
-
});
|
|
25
|
-
//# sourceMappingURL=routes.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"routes.js","sourceRoot":"","sources":["../server/routes.ts"],"names":[],"mappings":"AAAA,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,wCAAwC,CAAC,CAAA;AAExE,OAAO,CAAC,EAAE,CAAC,sCAA6C,EAAE,CAAC,GAAG,EAAE,kBAAkB,EAAE,EAAE;IACpF;;;;;OAKG;AACL,CAAC,CAAC,CAAA;AAEF,OAAO,CAAC,EAAE,CAAC,uCAA8C,EAAE,CAAC,GAAG,EAAE,mBAAmB,EAAE,EAAE;IACtF;;OAEG;AACL,CAAC,CAAC,CAAA;AAEF,OAAO,CAAC,EAAE,CAAC,sCAA6C,EAAE,CAAC,GAAG,EAAE,kBAAkB,EAAE,EAAE;IACpF;;OAEG;AACL,CAAC,CAAC,CAAA;AAEF,OAAO,CAAC,EAAE,CAAC,uCAA8C,EAAE,CAAC,GAAG,EAAE,mBAAmB,EAAE,EAAE;IACtF;;OAEG;AACL,CAAC,CAAC,CAAA","sourcesContent":["const debug = require('debug')('things-factory:scheduler-client:routes')\n\nprocess.on('bootstrap-module-global-public-route' as any, (app, globalPublicRouter) => {\n /*\n * can add global public routes to application (auth not required, tenancy not required)\n *\n * ex) routes.get('/path', async(context, next) => {})\n * ex) routes.post('/path', async(context, next) => {})\n */\n})\n\nprocess.on('bootstrap-module-global-private-route' as any, (app, globalPrivateRouter) => {\n /*\n * can add global private routes to application (auth required, tenancy not required)\n */\n})\n\nprocess.on('bootstrap-module-domain-public-route' as any, (app, domainPublicRouter) => {\n /*\n * can add domain public routes to application (auth not required, tenancy required)\n */\n})\n\nprocess.on('bootstrap-module-domain-private-route' as any, (app, domainPrivateRouter) => {\n /*\n * can add domain private routes to application (auth required, tenancy required)\n */\n})\n"]}
|
package/server/routes.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
const debug = require('debug')('things-factory:scheduler-client:routes')
|
|
2
|
-
|
|
3
|
-
process.on('bootstrap-module-global-public-route' as any, (app, globalPublicRouter) => {
|
|
4
|
-
/*
|
|
5
|
-
* can add global public routes to application (auth not required, tenancy not required)
|
|
6
|
-
*
|
|
7
|
-
* ex) routes.get('/path', async(context, next) => {})
|
|
8
|
-
* ex) routes.post('/path', async(context, next) => {})
|
|
9
|
-
*/
|
|
10
|
-
})
|
|
11
|
-
|
|
12
|
-
process.on('bootstrap-module-global-private-route' as any, (app, globalPrivateRouter) => {
|
|
13
|
-
/*
|
|
14
|
-
* can add global private routes to application (auth required, tenancy not required)
|
|
15
|
-
*/
|
|
16
|
-
})
|
|
17
|
-
|
|
18
|
-
process.on('bootstrap-module-domain-public-route' as any, (app, domainPublicRouter) => {
|
|
19
|
-
/*
|
|
20
|
-
* can add domain public routes to application (auth not required, tenancy required)
|
|
21
|
-
*/
|
|
22
|
-
})
|
|
23
|
-
|
|
24
|
-
process.on('bootstrap-module-domain-private-route' as any, (app, domainPrivateRouter) => {
|
|
25
|
-
/*
|
|
26
|
-
* can add domain private routes to application (auth required, tenancy required)
|
|
27
|
-
*/
|
|
28
|
-
})
|