@things-factory/integration-base 7.0.1-alpha.93 → 7.0.1-alpha.94
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-server/service/connection/connection-type.js +1 -1
- package/dist-server/service/connection/connection-type.js.map +1 -1
- package/dist-server/service/step/step-type.js +17 -14
- package/dist-server/service/step/step-type.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -6
- package/server/service/connection/connection-type.ts +1 -1
- package/server/service/step/step-type.ts +59 -57
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@things-factory/integration-base",
|
3
|
-
"version": "7.0.1-alpha.
|
3
|
+
"version": "7.0.1-alpha.94",
|
4
4
|
"main": "dist-server/index.js",
|
5
5
|
"browser": "client/index.js",
|
6
6
|
"things-factory": true,
|
@@ -27,11 +27,11 @@
|
|
27
27
|
"dependencies": {
|
28
28
|
"@apollo/client": "^3.6.9",
|
29
29
|
"@operato/moment-timezone-es": "^2.0.0-alpha.0",
|
30
|
-
"@things-factory/api": "^7.0.1-alpha.
|
31
|
-
"@things-factory/auth-base": "^7.0.1-alpha.
|
30
|
+
"@things-factory/api": "^7.0.1-alpha.94",
|
31
|
+
"@things-factory/auth-base": "^7.0.1-alpha.94",
|
32
32
|
"@things-factory/env": "^7.0.1-alpha.71",
|
33
|
-
"@things-factory/oauth2-client": "^7.0.1-alpha.
|
34
|
-
"@things-factory/scheduler-client": "^7.0.1-alpha.
|
33
|
+
"@things-factory/oauth2-client": "^7.0.1-alpha.94",
|
34
|
+
"@things-factory/scheduler-client": "^7.0.1-alpha.94",
|
35
35
|
"@things-factory/shell": "^7.0.1-alpha.93",
|
36
36
|
"@things-factory/utils": "^7.0.1-alpha.71",
|
37
37
|
"async-mqtt": "^2.5.0",
|
@@ -43,5 +43,5 @@
|
|
43
43
|
"readline": "^1.3.0",
|
44
44
|
"vm2": "^3.9.11"
|
45
45
|
},
|
46
|
-
"gitHead": "
|
46
|
+
"gitHead": "70511fc686b5e2aa61c2278a91de7e40d78b3916"
|
47
47
|
}
|
@@ -15,110 +15,112 @@ import { Domain } from '@things-factory/shell'
|
|
15
15
|
|
16
16
|
import { Scenario } from '../scenario/scenario'
|
17
17
|
|
18
|
-
|
19
18
|
@Entity()
|
20
19
|
@Index('ix_step_0', (step: Step) => [step.scenario, step.sequence], { unique: true })
|
21
20
|
@ObjectType()
|
22
21
|
export class Step {
|
23
|
-
/**
|
24
|
-
|
25
|
-
|
22
|
+
/**
|
23
|
+
* The unique identifier for each step.
|
24
|
+
*/
|
26
25
|
@PrimaryGeneratedColumn('uuid')
|
27
26
|
@Field(type => ID)
|
28
27
|
readonly id: string
|
29
28
|
|
30
|
-
/**
|
31
|
-
|
32
|
-
|
29
|
+
/**
|
30
|
+
* The domain to which this step belongs.
|
31
|
+
*/
|
33
32
|
@ManyToOne(type => Domain)
|
34
|
-
@Field({ nullable: true })
|
33
|
+
@Field(type => Domain, { nullable: true })
|
35
34
|
domain: Domain
|
36
35
|
|
37
|
-
/**
|
38
|
-
|
39
|
-
|
36
|
+
/**
|
37
|
+
* The ID of the domain associated with this step.
|
38
|
+
*/
|
40
39
|
@RelationId((step: Step) => step.domain)
|
41
40
|
domainId: string
|
42
41
|
|
43
|
-
/**
|
44
|
-
|
45
|
-
|
42
|
+
/**
|
43
|
+
* The name of the step.
|
44
|
+
*/
|
46
45
|
@Column({ nullable: true })
|
47
46
|
@Field()
|
48
47
|
name: string
|
49
48
|
|
50
|
-
/**
|
51
|
-
|
52
|
-
|
49
|
+
/**
|
50
|
+
* A description of what the step involves.
|
51
|
+
*/
|
53
52
|
@Column({ nullable: true })
|
54
53
|
@Field({ nullable: true })
|
55
54
|
description: string
|
56
55
|
|
57
|
-
/**
|
58
|
-
|
59
|
-
|
56
|
+
/**
|
57
|
+
* The scenario that includes this step.
|
58
|
+
*/
|
60
59
|
@ManyToOne(type => Scenario, scenario => scenario.steps, { onDelete: 'CASCADE' })
|
61
60
|
@Field(type => Scenario, { nullable: true })
|
62
61
|
scenario: Scenario
|
63
62
|
|
64
|
-
/**
|
65
|
-
|
66
|
-
|
63
|
+
/**
|
64
|
+
* The ID of the scenario associated with this step.
|
65
|
+
*/
|
67
66
|
@RelationId((step: Step) => step.scenario)
|
68
67
|
scenarioId: string
|
69
68
|
|
70
|
-
/**
|
71
|
-
|
72
|
-
|
69
|
+
/**
|
70
|
+
* The sequence number of the step within its scenario.
|
71
|
+
*/
|
73
72
|
@Column()
|
74
73
|
@Field({ nullable: true })
|
75
74
|
sequence: number
|
76
75
|
|
77
|
-
/**
|
78
|
-
|
79
|
-
|
76
|
+
/**
|
77
|
+
* The specific task associated with this step.
|
78
|
+
*/
|
80
79
|
@Column()
|
81
80
|
@Field({ nullable: true })
|
82
81
|
task: string
|
83
82
|
|
84
|
-
/**
|
85
|
-
|
86
|
-
|
83
|
+
/**
|
84
|
+
* Boolean value to indicate if the step should be skipped.
|
85
|
+
*/
|
87
86
|
@Column({ nullable: true })
|
88
87
|
@Field({ nullable: true })
|
89
88
|
skip: boolean
|
90
89
|
|
91
|
-
/**
|
92
|
-
|
93
|
-
|
90
|
+
/**
|
91
|
+
* Boolean value to indicate if the step should be logged.
|
92
|
+
*/
|
94
93
|
@Column({ nullable: true })
|
95
94
|
@Field({ nullable: true })
|
96
95
|
log: boolean
|
97
96
|
|
98
|
-
/**
|
99
|
-
|
100
|
-
|
97
|
+
/**
|
98
|
+
* The connection details associated with this step.
|
99
|
+
*/
|
101
100
|
@Column({ nullable: true })
|
102
101
|
@Field({ nullable: true })
|
103
102
|
connection: string
|
104
103
|
|
105
|
-
/**
|
106
|
-
|
107
|
-
|
104
|
+
/**
|
105
|
+
* The parameters for the step.
|
106
|
+
*/
|
108
107
|
@Column({ nullable: true })
|
109
108
|
@Field({ nullable: true })
|
110
109
|
params: string
|
111
110
|
|
112
|
-
/**
|
113
|
-
|
114
|
-
|
111
|
+
/**
|
112
|
+
* A boolean attribute indicating the inclusion status of an element in the result.
|
113
|
+
*/
|
115
114
|
@Column({ nullable: true, default: true })
|
116
|
-
@Field({
|
115
|
+
@Field({
|
116
|
+
nullable: true,
|
117
|
+
description: 'A boolean attribute indicating the inclusion status of an element in the result'
|
118
|
+
})
|
117
119
|
result: boolean = true
|
118
120
|
|
119
|
-
/**
|
120
|
-
|
121
|
-
|
121
|
+
/**
|
122
|
+
* The timestamp when the step was created.
|
123
|
+
*/
|
122
124
|
@CreateDateColumn()
|
123
125
|
@Field({ nullable: true })
|
124
126
|
createdAt: Date
|
@@ -132,28 +134,28 @@ export class Step {
|
|
132
134
|
updatedAt: Date
|
133
135
|
|
134
136
|
/**
|
135
|
-
|
136
|
-
|
137
|
+
* The user who created this step.
|
138
|
+
*/
|
137
139
|
@ManyToOne(type => User, { nullable: true })
|
138
140
|
@Field({ nullable: true })
|
139
141
|
creator: User
|
140
142
|
|
141
143
|
/**
|
142
|
-
|
143
|
-
|
144
|
+
* The ID of the user who created this step.
|
145
|
+
*/
|
144
146
|
@RelationId((step: Step) => step.creator)
|
145
147
|
creatorId: string
|
146
148
|
|
147
149
|
/**
|
148
|
-
|
149
|
-
|
150
|
+
* The user who last updated this step.
|
151
|
+
*/
|
150
152
|
@ManyToOne(type => User, { nullable: true })
|
151
153
|
@Field({ nullable: true })
|
152
154
|
updater: User
|
153
155
|
|
154
156
|
/**
|
155
|
-
|
156
|
-
|
157
|
+
* The ID of the user who last updated this step.
|
158
|
+
*/
|
157
159
|
@RelationId((step: Step) => step.updater)
|
158
160
|
updaterId: string
|
159
161
|
}
|
@@ -197,7 +199,7 @@ export class StepPatch {
|
|
197
199
|
/**
|
198
200
|
* Step의 params의 원 타입과 사용 시에 타입 불일치로 인해 임시적으로 생성한 타입으로
|
199
201
|
* 추후, 타입 일치를 통해서 제거할 예정임.
|
200
|
-
*
|
202
|
+
*
|
201
203
|
*/
|
202
204
|
export interface InputStep extends Step {
|
203
205
|
params: any
|