@things-factory/integration-base 7.0.0-alpha.0 → 7.0.0-alpha.1

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.
Files changed (136) hide show
  1. package/dist-server/engine/connector/echo-back-connector.js +1 -1
  2. package/dist-server/engine/connector/echo-back-connector.js.map +1 -1
  3. package/dist-server/engine/connector/echo-back-server.js +1 -1
  4. package/dist-server/engine/connector/echo-back-server.js.map +1 -1
  5. package/dist-server/engine/connector/graphql-connector.js.map +1 -1
  6. package/dist-server/engine/connector/http-connector.js.map +1 -1
  7. package/dist-server/engine/connector/mqtt-connector.js.map +1 -1
  8. package/dist-server/engine/connector/mssql-connector.js.map +1 -1
  9. package/dist-server/engine/connector/mysql-connector.js +3 -3
  10. package/dist-server/engine/connector/mysql-connector.js.map +1 -1
  11. package/dist-server/engine/connector/operato-connector.js.map +1 -1
  12. package/dist-server/engine/connector/oracle-connector.js.map +1 -1
  13. package/dist-server/engine/connector/postgresql-connector.js.map +1 -1
  14. package/dist-server/engine/connector/socket-server.js +1 -1
  15. package/dist-server/engine/connector/socket-server.js.map +1 -1
  16. package/dist-server/engine/connector/sqlite-connector.js.map +1 -1
  17. package/dist-server/engine/task/book-up-scenario.js.map +1 -1
  18. package/dist-server/engine/task/csv-readline.js.map +1 -1
  19. package/dist-server/engine/task/data-accessor.js.map +1 -1
  20. package/dist-server/engine/task/data-mapper.js.map +1 -1
  21. package/dist-server/engine/task/database-query.js.map +1 -1
  22. package/dist-server/engine/task/echo-receive.js.map +1 -1
  23. package/dist-server/engine/task/echo-send.js.map +1 -1
  24. package/dist-server/engine/task/empty-check.js.map +1 -1
  25. package/dist-server/engine/task/end.js.map +1 -1
  26. package/dist-server/engine/task/floating-point.js.map +1 -1
  27. package/dist-server/engine/task/goto.js.map +1 -1
  28. package/dist-server/engine/task/graphql-mutate.js.map +1 -1
  29. package/dist-server/engine/task/graphql-query.js.map +1 -1
  30. package/dist-server/engine/task/headless-post.js.map +1 -1
  31. package/dist-server/engine/task/headless-scrap.js.map +1 -1
  32. package/dist-server/engine/task/http-get.js.map +1 -1
  33. package/dist-server/engine/task/http-post.js.map +1 -1
  34. package/dist-server/engine/task/jsonata.js +1 -1
  35. package/dist-server/engine/task/jsonata.js.map +1 -1
  36. package/dist-server/engine/task/local-graphql-mutate.js.map +1 -1
  37. package/dist-server/engine/task/local-graphql-query.js.map +1 -1
  38. package/dist-server/engine/task/log.js.map +1 -1
  39. package/dist-server/engine/task/mqtt-publish.js.map +1 -1
  40. package/dist-server/engine/task/mqtt-subscribe.js.map +1 -1
  41. package/dist-server/engine/task/oracle-procedure.js.map +1 -1
  42. package/dist-server/engine/task/pick-pending-scenario.js.map +1 -1
  43. package/dist-server/engine/task/publish.js.map +1 -1
  44. package/dist-server/engine/task/random.js.map +1 -1
  45. package/dist-server/engine/task/reset-pending-queue.js.map +1 -1
  46. package/dist-server/engine/task/script.js.map +1 -1
  47. package/dist-server/engine/task/set-domain.js.map +1 -1
  48. package/dist-server/engine/task/sleep.js.map +1 -1
  49. package/dist-server/engine/task/socket-listener.js.map +1 -1
  50. package/dist-server/engine/task/state-read.js.map +1 -1
  51. package/dist-server/engine/task/state-write.js.map +1 -1
  52. package/dist-server/engine/task/stop-scenario.js.map +1 -1
  53. package/dist-server/engine/task/sub-scenario.js.map +1 -1
  54. package/dist-server/engine/task/switch-goto.js.map +1 -1
  55. package/dist-server/engine/task/switch-range-goto.js.map +1 -1
  56. package/dist-server/engine/task/switch-range-scenario.js.map +1 -1
  57. package/dist-server/engine/task/switch-range-set.js.map +1 -1
  58. package/dist-server/engine/task/switch-scenario.js.map +1 -1
  59. package/dist-server/engine/task/switch-set.js.map +1 -1
  60. package/dist-server/engine/task/throw.js.map +1 -1
  61. package/dist-server/engine/task/variables.js.map +1 -1
  62. package/dist-server/engine/types.js.map +1 -1
  63. package/dist-server/service/connection/connection-subscription.js +9 -12
  64. package/dist-server/service/connection/connection-subscription.js.map +1 -1
  65. package/dist-server/service/connection/connection-type.js +34 -5
  66. package/dist-server/service/connection/connection-type.js.map +1 -1
  67. package/dist-server/service/scenario-instance/scenario-instance-subscription.js +8 -9
  68. package/dist-server/service/scenario-instance/scenario-instance-subscription.js.map +1 -1
  69. package/dist-server/service/scenario-queue/scenario-queue-subscription.js +4 -4
  70. package/dist-server/service/scenario-queue/scenario-queue-subscription.js.map +1 -1
  71. package/dist-server/service/step/step-type.js +41 -28
  72. package/dist-server/service/step/step-type.js.map +1 -1
  73. package/dist-server/tsconfig.tsbuildinfo +1 -1
  74. package/package.json +8 -7
  75. package/server/engine/connector/echo-back-connector.ts +4 -3
  76. package/server/engine/connector/echo-back-server.ts +5 -4
  77. package/server/engine/connector/graphql-connector.ts +4 -3
  78. package/server/engine/connector/http-connector.ts +4 -3
  79. package/server/engine/connector/mqtt-connector.ts +4 -3
  80. package/server/engine/connector/mssql-connector.ts +4 -3
  81. package/server/engine/connector/mysql-connector.ts +8 -6
  82. package/server/engine/connector/operato-connector.ts +5 -3
  83. package/server/engine/connector/oracle-connector.ts +6 -3
  84. package/server/engine/connector/postgresql-connector.ts +4 -3
  85. package/server/engine/connector/socket-server.ts +5 -4
  86. package/server/engine/connector/sqlite-connector.ts +5 -3
  87. package/server/engine/task/book-up-scenario.ts +3 -1
  88. package/server/engine/task/csv-readline.ts +4 -1
  89. package/server/engine/task/data-accessor.ts +4 -1
  90. package/server/engine/task/data-mapper.ts +4 -1
  91. package/server/engine/task/database-query.ts +3 -1
  92. package/server/engine/task/echo-receive.ts +4 -1
  93. package/server/engine/task/echo-send.ts +3 -1
  94. package/server/engine/task/empty-check.ts +4 -1
  95. package/server/engine/task/end.ts +4 -1
  96. package/server/engine/task/floating-point.ts +4 -1
  97. package/server/engine/task/goto.ts +4 -1
  98. package/server/engine/task/graphql-mutate.ts +3 -1
  99. package/server/engine/task/graphql-query.ts +3 -1
  100. package/server/engine/task/headless-post.ts +4 -1
  101. package/server/engine/task/headless-scrap.ts +3 -1
  102. package/server/engine/task/http-get.ts +3 -1
  103. package/server/engine/task/http-post.ts +3 -1
  104. package/server/engine/task/jsonata.ts +5 -2
  105. package/server/engine/task/local-graphql-mutate.ts +5 -1
  106. package/server/engine/task/local-graphql-query.ts +3 -1
  107. package/server/engine/task/log.ts +3 -1
  108. package/server/engine/task/mqtt-publish.ts +3 -1
  109. package/server/engine/task/mqtt-subscribe.ts +3 -1
  110. package/server/engine/task/oracle-procedure.ts +3 -1
  111. package/server/engine/task/pick-pending-scenario.ts +3 -1
  112. package/server/engine/task/publish.ts +3 -1
  113. package/server/engine/task/random.ts +4 -1
  114. package/server/engine/task/reset-pending-queue.ts +3 -1
  115. package/server/engine/task/script.ts +4 -1
  116. package/server/engine/task/set-domain.ts +4 -1
  117. package/server/engine/task/sleep.ts +3 -1
  118. package/server/engine/task/socket-listener.ts +3 -1
  119. package/server/engine/task/state-read.ts +3 -1
  120. package/server/engine/task/state-write.ts +3 -1
  121. package/server/engine/task/stop-scenario.ts +3 -1
  122. package/server/engine/task/sub-scenario.ts +3 -1
  123. package/server/engine/task/switch-goto.ts +4 -1
  124. package/server/engine/task/switch-range-goto.ts +3 -1
  125. package/server/engine/task/switch-range-scenario.ts +3 -1
  126. package/server/engine/task/switch-range-set.ts +3 -1
  127. package/server/engine/task/switch-scenario.ts +3 -1
  128. package/server/engine/task/switch-set.ts +3 -1
  129. package/server/engine/task/throw.ts +3 -1
  130. package/server/engine/task/variables.ts +3 -1
  131. package/server/engine/types.ts +81 -4
  132. package/server/service/connection/connection-subscription.ts +16 -22
  133. package/server/service/connection/connection-type.ts +67 -0
  134. package/server/service/scenario-instance/scenario-instance-subscription.ts +16 -23
  135. package/server/service/scenario-queue/scenario-queue-subscription.ts +7 -7
  136. package/server/service/step/step-type.ts +78 -22
@@ -9,6 +9,9 @@ const shell_1 = require("@things-factory/shell");
9
9
  const scenario_1 = require("../scenario/scenario");
10
10
  let Step = class Step {
11
11
  constructor() {
12
+ /**
13
+ * A boolean attribute indicating the inclusion status of an element in the result.
14
+ */
12
15
  this.result = true;
13
16
  }
14
17
  };
@@ -20,30 +23,34 @@ tslib_1.__decorate([
20
23
  tslib_1.__decorate([
21
24
  (0, typeorm_1.ManyToOne)(type => shell_1.Domain),
22
25
  (0, type_graphql_1.Field)({ nullable: true }),
23
- tslib_1.__metadata("design:type", shell_1.Domain)
26
+ tslib_1.__metadata("design:type", shell_1.Domain
27
+ /**
28
+ * The ID of the domain associated with this step.
29
+ */
30
+ )
24
31
  ], Step.prototype, "domain", void 0);
25
32
  tslib_1.__decorate([
26
33
  (0, typeorm_1.RelationId)((step) => step.domain),
27
34
  tslib_1.__metadata("design:type", String)
28
35
  ], Step.prototype, "domainId", void 0);
29
36
  tslib_1.__decorate([
30
- (0, typeorm_1.Column)({
31
- nullable: true
32
- }),
37
+ (0, typeorm_1.Column)({ nullable: true }),
33
38
  (0, type_graphql_1.Field)(),
34
39
  tslib_1.__metadata("design:type", String)
35
40
  ], Step.prototype, "name", void 0);
36
41
  tslib_1.__decorate([
37
- (0, typeorm_1.Column)({
38
- nullable: true
39
- }),
42
+ (0, typeorm_1.Column)({ nullable: true }),
40
43
  (0, type_graphql_1.Field)({ nullable: true }),
41
44
  tslib_1.__metadata("design:type", String)
42
45
  ], Step.prototype, "description", void 0);
43
46
  tslib_1.__decorate([
44
47
  (0, typeorm_1.ManyToOne)(type => scenario_1.Scenario, scenario => scenario.steps, { onDelete: 'CASCADE' }),
45
48
  (0, type_graphql_1.Field)(type => scenario_1.Scenario, { nullable: true }),
46
- tslib_1.__metadata("design:type", scenario_1.Scenario)
49
+ tslib_1.__metadata("design:type", scenario_1.Scenario
50
+ /**
51
+ * The ID of the scenario associated with this step.
52
+ */
53
+ )
47
54
  ], Step.prototype, "scenario", void 0);
48
55
  tslib_1.__decorate([
49
56
  (0, typeorm_1.RelationId)((step) => step.scenario),
@@ -60,55 +67,57 @@ tslib_1.__decorate([
60
67
  tslib_1.__metadata("design:type", String)
61
68
  ], Step.prototype, "task", void 0);
62
69
  tslib_1.__decorate([
63
- (0, typeorm_1.Column)({
64
- nullable: true
65
- }),
70
+ (0, typeorm_1.Column)({ nullable: true }),
66
71
  (0, type_graphql_1.Field)({ nullable: true }),
67
72
  tslib_1.__metadata("design:type", Boolean)
68
73
  ], Step.prototype, "skip", void 0);
69
74
  tslib_1.__decorate([
70
- (0, typeorm_1.Column)({
71
- nullable: true
72
- }),
75
+ (0, typeorm_1.Column)({ nullable: true }),
73
76
  (0, type_graphql_1.Field)({ nullable: true }),
74
77
  tslib_1.__metadata("design:type", Boolean)
75
78
  ], Step.prototype, "log", void 0);
76
79
  tslib_1.__decorate([
77
- (0, typeorm_1.Column)({
78
- nullable: true
79
- }),
80
+ (0, typeorm_1.Column)({ nullable: true }),
80
81
  (0, type_graphql_1.Field)({ nullable: true }),
81
82
  tslib_1.__metadata("design:type", String)
82
83
  ], Step.prototype, "connection", void 0);
83
84
  tslib_1.__decorate([
84
- (0, typeorm_1.Column)({
85
- nullable: true
86
- }),
85
+ (0, typeorm_1.Column)({ nullable: true }),
87
86
  (0, type_graphql_1.Field)({ nullable: true }),
88
87
  tslib_1.__metadata("design:type", String)
89
88
  ], Step.prototype, "params", void 0);
90
89
  tslib_1.__decorate([
91
90
  (0, typeorm_1.Column)({ nullable: true, default: true }),
92
- (0, type_graphql_1.Field)({
93
- nullable: true,
94
- description: 'a boolean attribute indicating the inclusion status of an element in the result'
95
- }),
91
+ (0, type_graphql_1.Field)({ nullable: true, description: 'A boolean attribute indicating the inclusion status of an element in the result' }),
96
92
  tslib_1.__metadata("design:type", Boolean)
97
93
  ], Step.prototype, "result", void 0);
98
94
  tslib_1.__decorate([
99
95
  (0, typeorm_1.CreateDateColumn)(),
100
96
  (0, type_graphql_1.Field)({ nullable: true }),
101
- tslib_1.__metadata("design:type", Date)
97
+ tslib_1.__metadata("design:type", Date
98
+ /**
99
+ * The timestamp when
100
+ the step was last updated.
101
+ */
102
+ )
102
103
  ], Step.prototype, "createdAt", void 0);
103
104
  tslib_1.__decorate([
104
105
  (0, typeorm_1.UpdateDateColumn)(),
105
106
  (0, type_graphql_1.Field)({ nullable: true }),
106
- tslib_1.__metadata("design:type", Date)
107
+ tslib_1.__metadata("design:type", Date
108
+ /**
109
+ * The user who created this step.
110
+ */
111
+ )
107
112
  ], Step.prototype, "updatedAt", void 0);
108
113
  tslib_1.__decorate([
109
114
  (0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
110
115
  (0, type_graphql_1.Field)({ nullable: true }),
111
- tslib_1.__metadata("design:type", auth_base_1.User)
116
+ tslib_1.__metadata("design:type", auth_base_1.User
117
+ /**
118
+ * The ID of the user who created this step.
119
+ */
120
+ )
112
121
  ], Step.prototype, "creator", void 0);
113
122
  tslib_1.__decorate([
114
123
  (0, typeorm_1.RelationId)((step) => step.creator),
@@ -117,7 +126,11 @@ tslib_1.__decorate([
117
126
  tslib_1.__decorate([
118
127
  (0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
119
128
  (0, type_graphql_1.Field)({ nullable: true }),
120
- tslib_1.__metadata("design:type", auth_base_1.User)
129
+ tslib_1.__metadata("design:type", auth_base_1.User
130
+ /**
131
+ * The ID of the user who last updated this step.
132
+ */
133
+ )
121
134
  ], Step.prototype, "updater", void 0);
122
135
  tslib_1.__decorate([
123
136
  (0, typeorm_1.RelationId)((step) => step.updater),
@@ -1 +1 @@
1
- {"version":3,"file":"step-type.js","sourceRoot":"","sources":["../../../server/service/step/step-type.ts"],"names":[],"mappings":";;;;AAAA,+CAAoE;AACpE,qCASgB;AAEhB,yDAAgD;AAChD,iDAA8C;AAE9C,mDAA+C;AAKxC,IAAM,IAAI,GAAV,MAAM,IAAI;IAAV;QAoEL,WAAM,GAAY,IAAI,CAAA;IAuBxB,CAAC;CAAA,CAAA;AA1FC;IAAC,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;gCACC;AAEnB;IAAC,IAAA,mB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EAAE,IAAI,EAAE,CAAC;;yCACV;AAEhB;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACX;AAhCJ,SAAS;IADrB,IAAA,wBAAS,GAAE;GACC,SAAS,CAiCrB;AAjCY,8BAAS;AAoCf,IAAM,QAAQ,GAAd,MAAM,QAAQ;CAMpB,CAAA;AALC;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC;;uCACT;AAEb;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,CAAC;;uCACN;AALF,QAAQ;IADpB,IAAA,yBAAU,GAAE;GACA,QAAQ,CAMpB;AANY,4BAAQ","sourcesContent":["import { Field, ID, InputType, Int, ObjectType } from 'type-graphql'\nimport {\n Column,\n CreateDateColumn,\n Entity,\n Index,\n ManyToOne,\n PrimaryGeneratedColumn,\n RelationId,\n UpdateDateColumn\n} from 'typeorm'\n\nimport { User } from '@things-factory/auth-base'\nimport { Domain } from '@things-factory/shell'\n\nimport { Scenario } from '../scenario/scenario'\n\n@Entity()\n@Index('ix_step_0', (step: Step) => [step.scenario, step.sequence], { unique: true })\n@ObjectType()\nexport class Step {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @ManyToOne(type => Domain)\n @Field({ nullable: true })\n domain: Domain\n\n @RelationId((step: Step) => step.domain)\n domainId: string\n\n @Column({\n nullable: true\n })\n @Field()\n name: string\n\n @Column({\n nullable: true\n })\n @Field({ nullable: true })\n description: string\n\n @ManyToOne(type => Scenario, scenario => scenario.steps, { onDelete: 'CASCADE' })\n @Field(type => Scenario, { nullable: true })\n scenario: Scenario\n\n @RelationId((step: Step) => step.scenario)\n scenarioId: string\n\n @Column()\n @Field({ nullable: true })\n sequence: number\n\n @Column()\n @Field({ nullable: true })\n task: string\n\n @Column({\n nullable: true\n })\n @Field({ nullable: true })\n skip: boolean\n\n @Column({\n nullable: true\n })\n @Field({ nullable: true })\n log: boolean\n\n @Column({\n nullable: true\n })\n @Field({ nullable: true })\n connection: string\n\n @Column({\n nullable: true\n })\n @Field({ nullable: true })\n params: string\n\n @Column({ nullable: true, default: true })\n @Field({\n nullable: true,\n description: 'a boolean attribute indicating the inclusion status of an element in the result'\n })\n result: boolean = true\n\n @CreateDateColumn()\n @Field({ nullable: true })\n createdAt: Date\n\n @UpdateDateColumn()\n @Field({ nullable: true })\n updatedAt: Date\n\n @ManyToOne(type => User, { nullable: true })\n @Field({ nullable: true })\n creator: User\n\n @RelationId((step: Step) => step.creator)\n creatorId: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field({ nullable: true })\n updater: User\n\n @RelationId((step: Step) => step.updater)\n updaterId: string\n}\n\n@InputType()\nexport class StepPatch {\n @Field(type => ID, { nullable: true })\n id: string\n\n @Field({ nullable: true })\n name: string\n\n @Field({ nullable: true })\n description?: string\n\n @Field(type => Int, { nullable: true })\n sequence?: number\n\n @Field({ nullable: true })\n task?: string\n\n @Field({ nullable: true })\n skip?: boolean\n\n @Field({ nullable: true })\n log?: boolean\n\n @Field({ nullable: true })\n connection?: string\n\n @Field({ nullable: true })\n params?: string\n\n @Field({ nullable: true })\n result?: boolean\n\n @Field({ nullable: true })\n cuFlag?: string\n}\n\n@ObjectType()\nexport class StepList {\n @Field(type => [Step])\n items: Step[]\n\n @Field(type => Int)\n total: number\n}\n"]}
1
+ {"version":3,"file":"step-type.js","sourceRoot":"","sources":["../../../server/service/step/step-type.ts"],"names":[],"mappings":";;;;AAAA,+CAAoE;AACpE,qCASgB;AAEhB,yDAAgD;AAChD,iDAA8C;AAE9C,mDAA+C;AAMxC,IAAM,IAAI,GAAV,MAAM,IAAI;IAAV;QA0FL;;YAEI;QAGJ,WAAM,GAAY,IAAI,CAAA;IA0CxB,CAAC;CAAA,CAAA;AArIC;IAAC,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,E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,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACP;AAEnB;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACX;AAEf;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACV;AAEhB;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACX;AAhCJ,SAAS;IADrB,IAAA,wBAAS,GAAE;GACC,SAAS,CAiCrB;AAjCY,8BAAS;AA6Cf,IAAM,QAAQ,GAAd,MAAM,QAAQ;CAMpB,CAAA;AALC;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC;;uCACT;AAEb;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,CAAC;;uCACN;AALF,QAAQ;IADpB,IAAA,yBAAU,GAAE;GACA,QAAQ,CAMpB;AANY,4BAAQ","sourcesContent":["import { Field, ID, InputType, Int, ObjectType } from 'type-graphql'\nimport {\n Column,\n CreateDateColumn,\n Entity,\n Index,\n ManyToOne,\n PrimaryGeneratedColumn,\n RelationId,\n UpdateDateColumn\n} from 'typeorm'\n\nimport { User } from '@things-factory/auth-base'\nimport { Domain } from '@things-factory/shell'\n\nimport { Scenario } from '../scenario/scenario'\n\n\n@Entity()\n@Index('ix_step_0', (step: Step) => [step.scenario, step.sequence], { unique: true })\n@ObjectType()\nexport class Step {\n /** \n * The unique identifier for each step.\n */\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n /** \n * The domain to which this step belongs.\n */\n @ManyToOne(type => Domain)\n @Field({ nullable: true })\n domain: Domain\n\n /** \n * The ID of the domain associated with this step.\n */\n @RelationId((step: Step) => step.domain)\n domainId: string\n\n /** \n * The name of the step.\n */\n @Column({ nullable: true })\n @Field()\n name: string\n\n /** \n * A description of what the step involves.\n */\n @Column({ nullable: true })\n @Field({ nullable: true })\n description: string\n\n /** \n * The scenario that includes this step.\n */\n @ManyToOne(type => Scenario, scenario => scenario.steps, { onDelete: 'CASCADE' })\n @Field(type => Scenario, { nullable: true })\n scenario: Scenario\n\n /** \n * The ID of the scenario associated with this step.\n */\n @RelationId((step: Step) => step.scenario)\n scenarioId: string\n\n /** \n * The sequence number of the step within its scenario.\n */\n @Column()\n @Field({ nullable: true })\n sequence: number\n\n /** \n * The specific task associated with this step.\n */\n @Column()\n @Field({ nullable: true })\n task: string\n\n /** \n * Boolean value to indicate if the step should be skipped.\n */\n @Column({ nullable: true })\n @Field({ nullable: true })\n skip: boolean\n\n /** \n * Boolean value to indicate if the step should be logged.\n */\n @Column({ nullable: true })\n @Field({ nullable: true })\n log: boolean\n\n /** \n * The connection details associated with this step.\n */\n @Column({ nullable: true })\n @Field({ nullable: true })\n connection: string\n\n /** \n * The parameters for the step.\n */\n @Column({ nullable: true })\n @Field({ nullable: true })\n params: string\n\n /** \n * A boolean attribute indicating the inclusion status of an element in the result.\n */\n @Column({ nullable: true, default: true })\n @Field({ nullable: true, description: 'A boolean attribute indicating the inclusion status of an element in the result' })\n result: boolean = true\n\n /** \n * The timestamp when the step was created.\n */\n @CreateDateColumn()\n @Field({ nullable: true })\n createdAt: Date\n\n /** \n * The timestamp when\n the step was last updated.\n */\n @UpdateDateColumn()\n @Field({ nullable: true })\n updatedAt: Date\n\n /**\n * The user who created this step.\n */\n @ManyToOne(type => User, { nullable: true })\n @Field({ nullable: true })\n creator: User\n\n /**\n * The ID of the user who created this step.\n */\n @RelationId((step: Step) => step.creator)\n creatorId: string\n\n /**\n * The user who last updated this step.\n */\n @ManyToOne(type => User, { nullable: true })\n @Field({ nullable: true })\n updater: User\n\n /**\n * The ID of the user who last updated this step.\n */\n @RelationId((step: Step) => step.updater)\n updaterId: string\n}\n\n@InputType()\nexport class StepPatch {\n @Field(type => ID, { nullable: true })\n id: string\n\n @Field({ nullable: true })\n name: string\n\n @Field({ nullable: true })\n description?: string\n\n @Field(type => Int, { nullable: true })\n sequence?: number\n\n @Field({ nullable: true })\n task?: string\n\n @Field({ nullable: true })\n skip?: boolean\n\n @Field({ nullable: true })\n log?: boolean\n\n @Field({ nullable: true })\n connection?: string\n\n @Field({ nullable: true })\n params?: string\n\n @Field({ nullable: true })\n result?: boolean\n\n @Field({ nullable: true })\n cuFlag?: string\n}\n\n/**\n * Step의 params의 원 타입과 사용 시에 타입 불일치로 인해 임시적으로 생성한 타입으로\n * 추후, 타입 일치를 통해서 제거할 예정임.\n * \n */\nexport interface InputStep extends Step {\n params: any\n}\n\n@ObjectType()\nexport class StepList {\n @Field(type => [Step])\n items: Step[]\n\n @Field(type => Int)\n total: number\n}\n"]}