@cuby-ui/api 0.0.487 → 0.0.488

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 (252) hide show
  1. package/constants/api-url.d.ts +10 -0
  2. package/constants/index.d.ts +10 -0
  3. package/constants/shared-construction-http-options.d.ts +4 -0
  4. package/constants/shared-factory-http-options.d.ts +4 -0
  5. package/constants/shared-instruction-http-options.d.ts +4 -0
  6. package/constants/shared-learning-http-option.d.ts +4 -0
  7. package/constants/shared-platform-http-options.d.ts +4 -0
  8. package/constants/shared-project-http-options.d.ts +4 -0
  9. package/constants/shared-schedule-http-options.d.ts +4 -0
  10. package/constants/storage-object-type.d.ts +6 -0
  11. package/constants/x-ndjson-config-options.d.ts +8 -0
  12. package/construction/index.d.ts +2 -0
  13. package/construction/models/action-job.d.ts +36 -0
  14. package/construction/models/approval.api.d.ts +14 -0
  15. package/construction/models/criterion-api.options.d.ts +32 -0
  16. package/construction/models/holder-acceptance-criterion-wrapper.d.ts +8 -0
  17. package/construction/models/index.d.ts +18 -0
  18. package/construction/models/job-action-type.d.ts +6 -0
  19. package/construction/models/job-api.options.d.ts +97 -0
  20. package/construction/models/main-job.d.ts +21 -0
  21. package/construction/models/modal-header.option.d.ts +8 -0
  22. package/construction/models/operation.model.d.ts +16 -0
  23. package/construction/models/quantum-group-resources-structure-api.options.d.ts +25 -0
  24. package/construction/models/resource.d.ts +27 -0
  25. package/construction/models/skill.model.d.ts +6 -0
  26. package/construction/models/stage-job-information.d.ts +10 -0
  27. package/construction/models/technology.api.options.d.ts +38 -0
  28. package/construction/models/technology.d.ts +46 -0
  29. package/construction/models/utility-api.options.d.ts +3 -0
  30. package/construction/models/utility-component-instruction-structure-api.options.d.ts +20 -0
  31. package/construction/models/utility.d.ts +40 -0
  32. package/construction/services/criterion-api.service.d.ts +25 -0
  33. package/construction/services/index.d.ts +6 -0
  34. package/construction/services/job-api.service.d.ts +32 -0
  35. package/construction/services/quantum-group-resources-structure-api.service.d.ts +15 -0
  36. package/construction/services/utility-api.service.d.ts +21 -0
  37. package/construction/services/utility-component-instruction-structure-api.service.d.ts +17 -0
  38. package/construction/services/utility-instructions-api.service.d.ts +10 -0
  39. package/esm2022/constants/api-url.mjs +2 -0
  40. package/esm2022/constants/index.mjs +10 -0
  41. package/esm2022/constants/shared-construction-http-options.mjs +6 -0
  42. package/esm2022/constants/shared-factory-http-options.mjs +6 -0
  43. package/esm2022/constants/shared-instruction-http-options.mjs +6 -0
  44. package/esm2022/constants/shared-learning-http-option.mjs +6 -0
  45. package/esm2022/constants/shared-platform-http-options.mjs +6 -0
  46. package/esm2022/constants/shared-project-http-options.mjs +6 -0
  47. package/esm2022/constants/shared-schedule-http-options.mjs +6 -0
  48. package/esm2022/constants/storage-object-type.mjs +5 -0
  49. package/esm2022/constants/x-ndjson-config-options.mjs +7 -0
  50. package/esm2022/construction/index.mjs +3 -0
  51. package/esm2022/construction/models/action-job.mjs +2 -0
  52. package/esm2022/construction/models/approval.api.mjs +2 -0
  53. package/esm2022/construction/models/criterion-api.options.mjs +2 -0
  54. package/esm2022/construction/models/holder-acceptance-criterion-wrapper.mjs +2 -0
  55. package/esm2022/construction/models/index.mjs +19 -0
  56. package/esm2022/construction/models/job-action-type.mjs +5 -0
  57. package/esm2022/construction/models/job-api.options.mjs +2 -0
  58. package/esm2022/construction/models/main-job.mjs +2 -0
  59. package/esm2022/construction/models/modal-header.option.mjs +2 -0
  60. package/esm2022/construction/models/operation.model.mjs +2 -0
  61. package/esm2022/construction/models/quantum-group-resources-structure-api.options.mjs +7 -0
  62. package/esm2022/construction/models/resource.mjs +7 -0
  63. package/esm2022/construction/models/skill.model.mjs +2 -0
  64. package/esm2022/construction/models/stage-job-information.mjs +2 -0
  65. package/esm2022/construction/models/technology.api.options.mjs +11 -0
  66. package/esm2022/construction/models/technology.mjs +2 -0
  67. package/esm2022/construction/models/utility-api.options.mjs +2 -0
  68. package/esm2022/construction/models/utility-component-instruction-structure-api.options.mjs +2 -0
  69. package/esm2022/construction/models/utility.mjs +2 -0
  70. package/esm2022/construction/services/criterion-api.service.mjs +93 -0
  71. package/esm2022/construction/services/index.mjs +7 -0
  72. package/esm2022/construction/services/job-api.service.mjs +128 -0
  73. package/esm2022/construction/services/quantum-group-resources-structure-api.service.mjs +30 -0
  74. package/esm2022/construction/services/utility-api.service.mjs +49 -0
  75. package/esm2022/construction/services/utility-component-instruction-structure-api.service.mjs +56 -0
  76. package/esm2022/construction/services/utility-instructions-api.service.mjs +25 -0
  77. package/esm2022/cuby-ui-api.mjs +5 -0
  78. package/esm2022/factory/index.mjs +3 -0
  79. package/esm2022/factory/models/arrow-work-flow-component-controller-api.options.mjs +6 -0
  80. package/esm2022/factory/models/arrow-work-flow-component-structure-api.options.mjs +2 -0
  81. package/esm2022/factory/models/arrow-work-flow-controller-api.options.mjs +2 -0
  82. package/esm2022/factory/models/arrow-work-flow-readiness-checklist-api.options.mjs +2 -0
  83. package/esm2022/factory/models/arrow-work-flow-trasnfer-controller-api.options.mjs +2 -0
  84. package/esm2022/factory/models/consumable.mjs +2 -0
  85. package/esm2022/factory/models/factory-api.options.mjs +2 -0
  86. package/esm2022/factory/models/index.mjs +14 -0
  87. package/esm2022/factory/models/intra-logistic.mjs +6 -0
  88. package/esm2022/factory/models/maintenance.mjs +2 -0
  89. package/esm2022/factory/models/manufacturer.mjs +2 -0
  90. package/esm2022/factory/models/measurment.mjs +2 -0
  91. package/esm2022/factory/models/specification.mjs +2 -0
  92. package/esm2022/factory/models/specifications.mjs +2 -0
  93. package/esm2022/factory/services/arrow-work-flow-actions-api.service.mjs +22 -0
  94. package/esm2022/factory/services/arrow-work-flow-component-controller-api.service.mjs +25 -0
  95. package/esm2022/factory/services/arrow-work-flow-component-structure-api.service.mjs +28 -0
  96. package/esm2022/factory/services/arrow-work-flow-readiness-checklist-api.service.mjs +25 -0
  97. package/esm2022/factory/services/arrow-work-flow-trasnfer-controller-api.service.mjs +61 -0
  98. package/esm2022/factory/services/factory-api.service.mjs +52 -0
  99. package/esm2022/factory/services/index.mjs +8 -0
  100. package/esm2022/factory/services/instructions-api.service.mjs +28 -0
  101. package/esm2022/index.mjs +9 -0
  102. package/esm2022/instruction/index.mjs +3 -0
  103. package/esm2022/instruction/models/index.mjs +2 -0
  104. package/esm2022/instruction/models/instruction-assessment-config.mjs +17 -0
  105. package/esm2022/instruction/services/index.mjs +2 -0
  106. package/esm2022/instruction/services/instruction-assessment-config-api.service.mjs +65 -0
  107. package/esm2022/platform/index.mjs +3 -0
  108. package/esm2022/platform/models/exchange-context-api.options.mjs +2 -0
  109. package/esm2022/platform/models/index.mjs +2 -0
  110. package/esm2022/platform/models/user-company-api.options.mjs +2 -0
  111. package/esm2022/platform/services/exchange-context-api.service.mjs +32 -0
  112. package/esm2022/platform/services/index.mjs +3 -0
  113. package/esm2022/platform/services/user-company-api.service.mjs +19 -0
  114. package/esm2022/project/index.mjs +3 -0
  115. package/esm2022/project/models/design-job-main-api.options.mjs +2 -0
  116. package/esm2022/project/models/design-job-main-group-api.options.mjs +2 -0
  117. package/esm2022/project/models/index.mjs +10 -0
  118. package/esm2022/project/models/project-api.options.mjs +2 -0
  119. package/esm2022/project/models/project-details-phase-init-api.options.mjs +2 -0
  120. package/esm2022/project/models/project-init-phase-api.options.mjs +2 -0
  121. package/esm2022/project/models/project-phase-design-technology-api.options.mjs +2 -0
  122. package/esm2022/project/models/project-resource-phase-init-api.options.mjs +2 -0
  123. package/esm2022/project/models/project-schedule-phase-init-api.options.mjs +2 -0
  124. package/esm2022/project/models/technology-phase-init-api.options.mjs +2 -0
  125. package/esm2022/project/services/crew-template-api.service.mjs +32 -0
  126. package/esm2022/project/services/design-job-main-api.service.mjs +22 -0
  127. package/esm2022/project/services/design-job-main-group-api.service.mjs +61 -0
  128. package/esm2022/project/services/index.mjs +11 -0
  129. package/esm2022/project/services/project-api.service.mjs +46 -0
  130. package/esm2022/project/services/project-details-phase-init-api.service.mjs +22 -0
  131. package/esm2022/project/services/project-init-phase-api.service.mjs +22 -0
  132. package/esm2022/project/services/project-phase-design-technology-api.service.mjs +34 -0
  133. package/esm2022/project/services/project-resource-phase-init-api.service.mjs +49 -0
  134. package/esm2022/project/services/project-schedule-phase-init-api.service.mjs +22 -0
  135. package/esm2022/project/services/technology-phase-init-api.service.mjs +38 -0
  136. package/esm2022/shared/index.mjs +3 -0
  137. package/esm2022/shared/models/criterion-type-operations.mjs +2 -0
  138. package/esm2022/shared/models/criterion.mjs +2 -0
  139. package/esm2022/shared/models/frame-api.options.mjs +2 -0
  140. package/esm2022/shared/models/index.mjs +19 -0
  141. package/esm2022/shared/models/instruction-type-operations.mjs +2 -0
  142. package/esm2022/shared/models/instruction.mjs +8 -0
  143. package/esm2022/shared/models/job.options.mjs +8 -0
  144. package/esm2022/shared/models/jtext-api.options.mjs +2 -0
  145. package/esm2022/shared/models/list-object-instruction.mjs +2 -0
  146. package/esm2022/shared/models/node-checklist-api.options.mjs +2 -0
  147. package/esm2022/shared/models/node-checklist.options.mjs +2 -0
  148. package/esm2022/shared/models/review-type.mjs +7 -0
  149. package/esm2022/shared/models/storage-object-criterion.mjs +2 -0
  150. package/esm2022/shared/models/storage-object-instruction.mjs +2 -0
  151. package/esm2022/shared/models/storage-object.mjs +2 -0
  152. package/esm2022/shared/models/subject.mjs +9 -0
  153. package/esm2022/shared/models/tree-struct-navigator-api.options.mjs +2 -0
  154. package/esm2022/shared/models/tree-struct-type.options.mjs +2 -0
  155. package/esm2022/shared/models/tree-struct.options.mjs +2 -0
  156. package/esm2022/shared/services/frame-api.service.mjs +45 -0
  157. package/esm2022/shared/services/index.mjs +6 -0
  158. package/esm2022/shared/services/jtext-api.service.mjs +53 -0
  159. package/esm2022/shared/services/node-checklist-api.service.mjs +61 -0
  160. package/esm2022/shared/services/tree-struct-api.service.mjs +31 -0
  161. package/esm2022/shared/services/tree-struct-navigator-api.service.mjs +54 -0
  162. package/esm2022/tokens/api-url-context.mjs +3 -0
  163. package/esm2022/tokens/index.mjs +2 -0
  164. package/factory/index.d.ts +2 -0
  165. package/factory/models/arrow-work-flow-component-controller-api.options.d.ts +56 -0
  166. package/factory/models/arrow-work-flow-component-structure-api.options.d.ts +7 -0
  167. package/factory/models/arrow-work-flow-controller-api.options.d.ts +56 -0
  168. package/factory/models/arrow-work-flow-readiness-checklist-api.options.d.ts +4 -0
  169. package/factory/models/arrow-work-flow-trasnfer-controller-api.options.d.ts +65 -0
  170. package/factory/models/consumable.d.ts +25 -0
  171. package/factory/models/factory-api.options.d.ts +26 -0
  172. package/factory/models/index.d.ts +13 -0
  173. package/factory/models/intra-logistic.d.ts +46 -0
  174. package/factory/models/maintenance.d.ts +12 -0
  175. package/factory/models/manufacturer.d.ts +5 -0
  176. package/factory/models/measurment.d.ts +6 -0
  177. package/factory/models/specification.d.ts +4 -0
  178. package/factory/models/specifications.d.ts +8 -0
  179. package/factory/services/arrow-work-flow-actions-api.service.d.ts +10 -0
  180. package/factory/services/arrow-work-flow-component-controller-api.service.d.ts +11 -0
  181. package/factory/services/arrow-work-flow-component-structure-api.service.d.ts +12 -0
  182. package/factory/services/arrow-work-flow-readiness-checklist-api.service.d.ts +11 -0
  183. package/factory/services/arrow-work-flow-trasnfer-controller-api.service.d.ts +20 -0
  184. package/factory/services/factory-api.service.d.ts +17 -0
  185. package/factory/services/index.d.ts +7 -0
  186. package/factory/services/instructions-api.service.d.ts +11 -0
  187. package/fesm2022/cuby-ui-api.mjs +1347 -0
  188. package/fesm2022/cuby-ui-api.mjs.map +1 -0
  189. package/index.d.ts +8 -0
  190. package/instruction/index.d.ts +2 -0
  191. package/instruction/models/index.d.ts +1 -0
  192. package/instruction/models/instruction-assessment-config.d.ts +43 -0
  193. package/instruction/services/index.d.ts +1 -0
  194. package/instruction/services/instruction-assessment-config-api.service.d.ts +25 -0
  195. package/package.json +1 -4
  196. package/platform/index.d.ts +2 -0
  197. package/platform/models/exchange-context-api.options.d.ts +19 -0
  198. package/platform/models/index.d.ts +2 -0
  199. package/platform/models/user-company-api.options.d.ts +20 -0
  200. package/platform/services/exchange-context-api.service.d.ts +10 -0
  201. package/platform/services/index.d.ts +2 -0
  202. package/platform/services/user-company-api.service.d.ts +9 -0
  203. package/project/index.d.ts +2 -0
  204. package/project/models/design-job-main-api.options.d.ts +12 -0
  205. package/project/models/design-job-main-group-api.options.d.ts +71 -0
  206. package/project/models/index.d.ts +9 -0
  207. package/project/models/project-api.options.d.ts +75 -0
  208. package/project/models/project-details-phase-init-api.options.d.ts +7 -0
  209. package/project/models/project-init-phase-api.options.d.ts +29 -0
  210. package/project/models/project-phase-design-technology-api.options.d.ts +33 -0
  211. package/project/models/project-resource-phase-init-api.options.d.ts +31 -0
  212. package/project/models/project-schedule-phase-init-api.options.d.ts +10 -0
  213. package/project/models/technology-phase-init-api.options.d.ts +4 -0
  214. package/project/services/crew-template-api.service.d.ts +12 -0
  215. package/project/services/design-job-main-api.service.d.ts +11 -0
  216. package/project/services/design-job-main-group-api.service.d.ts +20 -0
  217. package/project/services/index.d.ts +10 -0
  218. package/project/services/project-api.service.d.ts +15 -0
  219. package/project/services/project-details-phase-init-api.service.d.ts +10 -0
  220. package/project/services/project-init-phase-api.service.d.ts +10 -0
  221. package/project/services/project-phase-design-technology-api.service.d.ts +13 -0
  222. package/project/services/project-resource-phase-init-api.service.d.ts +14 -0
  223. package/project/services/project-schedule-phase-init-api.service.d.ts +10 -0
  224. package/project/services/technology-phase-init-api.service.d.ts +13 -0
  225. package/shared/index.d.ts +2 -0
  226. package/shared/models/criterion-type-operations.d.ts +7 -0
  227. package/shared/models/criterion.d.ts +7 -0
  228. package/shared/models/frame-api.options.d.ts +22 -0
  229. package/shared/models/index.d.ts +18 -0
  230. package/shared/models/instruction-type-operations.d.ts +7 -0
  231. package/shared/models/instruction.d.ts +15 -0
  232. package/shared/models/job.options.d.ts +64 -0
  233. package/shared/models/jtext-api.options.d.ts +20 -0
  234. package/shared/models/list-object-instruction.d.ts +6 -0
  235. package/shared/models/node-checklist-api.options.d.ts +29 -0
  236. package/shared/models/node-checklist.options.d.ts +46 -0
  237. package/shared/models/review-type.d.ts +5 -0
  238. package/shared/models/storage-object-criterion.d.ts +3 -0
  239. package/shared/models/storage-object-instruction.d.ts +3 -0
  240. package/shared/models/storage-object.d.ts +6 -0
  241. package/shared/models/subject.d.ts +9 -0
  242. package/shared/models/tree-struct-navigator-api.options.d.ts +21 -0
  243. package/shared/models/tree-struct-type.options.d.ts +10 -0
  244. package/shared/models/tree-struct.options.d.ts +15 -0
  245. package/shared/services/frame-api.service.d.ts +19 -0
  246. package/shared/services/index.d.ts +5 -0
  247. package/shared/services/jtext-api.service.d.ts +23 -0
  248. package/shared/services/node-checklist-api.service.d.ts +18 -0
  249. package/shared/services/tree-struct-api.service.d.ts +13 -0
  250. package/shared/services/tree-struct-navigator-api.service.d.ts +19 -0
  251. package/tokens/api-url-context.d.ts +6 -0
  252. package/tokens/index.d.ts +1 -0
@@ -0,0 +1,1347 @@
1
+ import { HttpContextToken, HttpContext, HttpClient, HttpParams, HttpHeaders } from '@angular/common/http';
2
+ import * as i0 from '@angular/core';
3
+ import { inject, Injectable } from '@angular/core';
4
+ import { map, concatMap } from 'rxjs';
5
+ import { CuiIdService } from '@cuby-ui/cdk';
6
+
7
+ const X_NDJSON_CONFIG_OPTIONS = {
8
+ headers: {
9
+ 'Content-Type': 'application/x-ndjson'
10
+ },
11
+ observe: 'events'
12
+ };
13
+
14
+ const CUI_API_URL_CONTEXT = new HttpContextToken(() => null);
15
+
16
+ const SHARED_PROJECT_HTTP_OPTIONS = {
17
+ context: new HttpContext().set(CUI_API_URL_CONTEXT, "cuby-project" /* CuiApiUrl.Project */)
18
+ };
19
+
20
+ const SHARED_FACTORY_HTTP_OPTIONS = {
21
+ context: new HttpContext().set(CUI_API_URL_CONTEXT, "cuby-factory" /* CuiApiUrl.Factory */)
22
+ };
23
+
24
+ const SHARED_PLATFORM_HTTP_OPTIONS = {
25
+ context: new HttpContext().set(CUI_API_URL_CONTEXT, "cuby-platform" /* CuiApiUrl.Platform */)
26
+ };
27
+
28
+ const SHARED_LEARNING_HTTP_OPTIONS = {
29
+ context: new HttpContext().set(CUI_API_URL_CONTEXT, "cuby-learning" /* CuiApiUrl.Learning */)
30
+ };
31
+
32
+ const SHARED_SCHEDULE_HTTP_OPTIONS = {
33
+ context: new HttpContext().set(CUI_API_URL_CONTEXT, "cuby-schedule" /* CuiApiUrl.Schedule */)
34
+ };
35
+
36
+ const SHARED_INSTRUCTION_HTTP_OPTIONS = {
37
+ context: new HttpContext().set(CUI_API_URL_CONTEXT, "cuby-instruction" /* CuiApiUrl.Instruction */)
38
+ };
39
+
40
+ const SHARED_CONSTRUCTION_HTTP_OPTIONS = {
41
+ context: new HttpContext().set(CUI_API_URL_CONTEXT, "cuby-construction" /* CuiApiUrl.Construction */)
42
+ };
43
+
44
+ const CuiStorageObjectType = {
45
+ CREATED: 'CREATED',
46
+ INSERTED: 'INSERTED'
47
+ };
48
+
49
+ const JobType = {
50
+ JobAction: 'JOB_ACTION',
51
+ JobMain: 'JOB_MAIN',
52
+ JobApproval: 'JOB_APPROVAL',
53
+ JobEvaluation: 'JOB_EVALUATION',
54
+ JobCorrective: 'JOB_CORRECTIVE_MAIN_TASK'
55
+ };
56
+
57
+ var InstructionStatus;
58
+ (function (InstructionStatus) {
59
+ InstructionStatus["Draft"] = "DRAFT";
60
+ InstructionStatus["Publishing"] = "PUBLISHING";
61
+ InstructionStatus["Published"] = "PUBLISHED";
62
+ InstructionStatus["PublishFailed"] = "PUBLISH_FAILED";
63
+ })(InstructionStatus || (InstructionStatus = {}));
64
+
65
+ var SubjectType;
66
+ (function (SubjectType) {
67
+ SubjectType["Material"] = "MATERIAL";
68
+ SubjectType["Part"] = "PART";
69
+ SubjectType["Modifier"] = "MODIFIER";
70
+ SubjectType["Tool"] = "TOOL";
71
+ SubjectType["Equipment"] = "EQUIPMENT";
72
+ })(SubjectType || (SubjectType = {}));
73
+
74
+ var CuiReviewType;
75
+ (function (CuiReviewType) {
76
+ CuiReviewType["Linear"] = "DIRECT";
77
+ CuiReviewType["Reversed"] = "REVERSE";
78
+ CuiReviewType["Manual"] = "MANUAL";
79
+ })(CuiReviewType || (CuiReviewType = {}));
80
+
81
+ class CuiFrameApiService {
82
+ constructor() {
83
+ this.http = inject(HttpClient);
84
+ this.FRAMER_URL = 'framer';
85
+ this.FRAGMENT_URL = 'fragment';
86
+ }
87
+ getFrame(frameId, context) {
88
+ return this.http.get(`${this.FRAMER_URL}/${frameId}`, context);
89
+ }
90
+ createFrame(context) {
91
+ return this.http.post(this.FRAMER_URL, {}, context);
92
+ }
93
+ createFragment(frameId, type, context) {
94
+ return this.http.post(`${this.FRAMER_URL}/${frameId}/${this.FRAGMENT_URL}`, {
95
+ type_operations: type
96
+ }, context);
97
+ }
98
+ deleteFragment(frameId, fragmentId, context) {
99
+ return this.http.delete(`${this.FRAMER_URL}/${frameId}/${this.FRAGMENT_URL}/${fragmentId}`, context);
100
+ }
101
+ uploadResource(body, frameId, fragmentId, context) {
102
+ return this.http.post(`${this.FRAMER_URL}/data_resource`, body, {
103
+ ...context,
104
+ params: { frameContainerId: frameId, dataResourceContainerId: fragmentId }
105
+ });
106
+ }
107
+ deleteResource(frameId, fragmentId, context) {
108
+ return this.http.delete(`${this.FRAMER_URL}/data_resource/content`, {
109
+ ...context,
110
+ params: { frameContainerId: frameId, dataResourceContainerId: fragmentId }
111
+ });
112
+ }
113
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiFrameApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
114
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiFrameApiService, providedIn: 'root' }); }
115
+ }
116
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiFrameApiService, decorators: [{
117
+ type: Injectable,
118
+ args: [{
119
+ providedIn: 'root'
120
+ }]
121
+ }] });
122
+
123
+ class CuiTreeStructApiService {
124
+ constructor() {
125
+ this.httpClient = inject(HttpClient);
126
+ this.TREE_STRUCT_URL = 'tree_struct';
127
+ }
128
+ getById(id, context) {
129
+ return this.httpClient.get(`${this.TREE_STRUCT_URL}/${id}`, context);
130
+ }
131
+ getStageStoragesByParent(parentId, context) {
132
+ return this.httpClient.get(`${this.TREE_STRUCT_URL}/${parentId}/children`, {
133
+ ...X_NDJSON_CONFIG_OPTIONS,
134
+ ...context
135
+ });
136
+ }
137
+ deleteTreeStructElement(treeStructId, elementId, context) {
138
+ return this.httpClient.delete(`${this.TREE_STRUCT_URL}/${treeStructId}/element/${elementId}`, context);
139
+ }
140
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiTreeStructApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
141
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiTreeStructApiService, providedIn: 'root' }); }
142
+ }
143
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiTreeStructApiService, decorators: [{
144
+ type: Injectable,
145
+ args: [{
146
+ providedIn: 'root'
147
+ }]
148
+ }] });
149
+
150
+ class CuiNodeChecklistApiService {
151
+ constructor() {
152
+ this.httpClient = inject(HttpClient);
153
+ this.MAIN_URL = 'checklist/node';
154
+ }
155
+ addNodeCheckListItem(data, context) {
156
+ return this.httpClient.post(`${this.MAIN_URL}`, data, context);
157
+ }
158
+ updateNodeCheckListItemTitle(id, title, context) {
159
+ return this.httpClient.post(`${this.MAIN_URL}/${id}/title`, {}, { ...context, params: { title } });
160
+ }
161
+ updateNodeCheckListItemActionContent(data, context) {
162
+ return this.httpClient.patch(`${this.MAIN_URL}/content_action`, data, context);
163
+ }
164
+ updateNodeCheckListItemIsConsideredCorrect(data, context) {
165
+ return this.httpClient.patch(`${this.MAIN_URL}/content/button/consider_correct`, data, context);
166
+ }
167
+ updateNodeCheckListItemSwitchContent({ nodeCheckListId, listEvaluationId, movingElementId, targetItemId, pointer }, context) {
168
+ return this.httpClient.patch(`${this.MAIN_URL}/${nodeCheckListId}/content/list_evaluation/${listEvaluationId}/moving`, {}, {
169
+ ...context,
170
+ params: {
171
+ movingElementId,
172
+ targetItemId,
173
+ pointer
174
+ }
175
+ });
176
+ }
177
+ addEvaluationCriteriaItem(id, listId, criteria, evaluation, context) {
178
+ return this.httpClient.post(`${this.MAIN_URL}/${id}/content/list_evaluation/${listId}`, {}, {
179
+ ...context,
180
+ params: {
181
+ criteria,
182
+ evaluation
183
+ }
184
+ });
185
+ }
186
+ updateEvaluationCriteriaItem(id, listId, criteriaId, criteria, evaluation, context) {
187
+ return this.httpClient.patch(`${this.MAIN_URL}/${id}/content/list_evaluation/${listId}/${criteriaId}`, {}, {
188
+ ...context,
189
+ params: {
190
+ criteria,
191
+ evaluation
192
+ }
193
+ });
194
+ }
195
+ deleteEvaluationCriteriaItem(id, listId, criteriaId, context) {
196
+ return this.httpClient.delete(`${this.MAIN_URL}/${id}/content/list_evaluation/${criteriaId}/${listId}`, context);
197
+ }
198
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiNodeChecklistApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
199
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiNodeChecklistApiService, providedIn: 'root' }); }
200
+ }
201
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiNodeChecklistApiService, decorators: [{
202
+ type: Injectable,
203
+ args: [{
204
+ providedIn: 'root'
205
+ }]
206
+ }] });
207
+
208
+ class CuiTreeStructNavigatorApiService {
209
+ constructor() {
210
+ this.httpClient = inject(HttpClient);
211
+ this.TREE_STRUCT_NAVIGATOR_URL = 'tree_struct';
212
+ this.CONSTRUCTION_TECHNOLOGY_URL = 'construction_technology';
213
+ }
214
+ createStageStorage(title, type, context) {
215
+ return this.httpClient.post(this.TREE_STRUCT_NAVIGATOR_URL, {}, { ...context, params: { type, title } });
216
+ }
217
+ createStageStorageToParent(parentId, title, context) {
218
+ return this.httpClient.put(`${this.TREE_STRUCT_NAVIGATOR_URL}/children`, {}, { ...context, params: { parentId, title } });
219
+ }
220
+ getStageStorages(type, context) {
221
+ return this.httpClient.get(this.TREE_STRUCT_NAVIGATOR_URL, {
222
+ ...X_NDJSON_CONFIG_OPTIONS,
223
+ ...context,
224
+ params: { type }
225
+ });
226
+ }
227
+ getStageStoragesByParent(parentId, context) {
228
+ return this.httpClient.get(`${this.TREE_STRUCT_NAVIGATOR_URL}/${parentId}/children`, {
229
+ ...X_NDJSON_CONFIG_OPTIONS,
230
+ ...context
231
+ });
232
+ }
233
+ updateTitle(treeStructId, title, context) {
234
+ return this.httpClient.patch(`${this.TREE_STRUCT_NAVIGATOR_URL}/${treeStructId}/title`, { title }, { ...context });
235
+ }
236
+ move(body, context) {
237
+ return this.httpClient.patch(`${this.CONSTRUCTION_TECHNOLOGY_URL}/stage/moving`, body, context);
238
+ }
239
+ moveElement(body, context) {
240
+ return this.httpClient.patch(`${this.TREE_STRUCT_NAVIGATOR_URL}/moving/element`, body, context);
241
+ }
242
+ getCategory(id, type, context) {
243
+ return this.httpClient.get(`${this.TREE_STRUCT_NAVIGATOR_URL}/base/element/${id}`, {
244
+ ...context,
245
+ params: { type }
246
+ });
247
+ }
248
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiTreeStructNavigatorApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
249
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiTreeStructNavigatorApiService, providedIn: 'root' }); }
250
+ }
251
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiTreeStructNavigatorApiService, decorators: [{
252
+ type: Injectable,
253
+ args: [{
254
+ providedIn: 'root'
255
+ }]
256
+ }] });
257
+
258
+ class CuiJTextApiService {
259
+ constructor() {
260
+ this.httpClient = inject(HttpClient);
261
+ this.GET_BLOCK_DEFAULT_SIZE = 40;
262
+ this.JTEXT_URL = 'framer/jtext';
263
+ this.BLOCK_URL = 'block';
264
+ this.BLOCKS_URL = 'blocks';
265
+ this.JTEXT_BLOCK_URL = this.JTEXT_URL + '/' + this.BLOCK_URL;
266
+ this.JTEXT_BLOCKS_URL = this.JTEXT_URL + '/' + this.BLOCKS_URL;
267
+ this.options = {};
268
+ }
269
+ addOptions(options) {
270
+ this.options = options ?? {};
271
+ }
272
+ createBlock(body, context) {
273
+ return this.httpClient.post(this.JTEXT_BLOCK_URL, body, context ?? this.options);
274
+ }
275
+ updateBlock(body, context) {
276
+ return this.httpClient.patch(this.JTEXT_BLOCK_URL, body, context ?? this.options);
277
+ }
278
+ getBlocks(fragmentId, page = 0, sizeBlock = this.GET_BLOCK_DEFAULT_SIZE, context) {
279
+ return this.httpClient.get(`${this.JTEXT_URL}/${fragmentId}`, {
280
+ params: { page, sizeBlock },
281
+ headers: { 'Content-Type': 'application/x-ndjson' },
282
+ observe: 'events',
283
+ ...(context ?? this.options)
284
+ });
285
+ }
286
+ createBlocks(body, context) {
287
+ return this.httpClient.post(this.JTEXT_BLOCKS_URL, body, context ?? this.options);
288
+ }
289
+ deleteBlock(containerId, blockId, context) {
290
+ return this.httpClient.delete(`${this.JTEXT_URL}/${containerId}/${this.BLOCK_URL}/${blockId}`, context ?? this.options);
291
+ }
292
+ deleteBlocks(containerId, blocksIds, context) {
293
+ return this.httpClient.delete(`${this.JTEXT_URL}/${containerId}/${this.BLOCKS_URL}`, {
294
+ params: { blocksIds },
295
+ ...(context ?? this.options)
296
+ });
297
+ }
298
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiJTextApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
299
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiJTextApiService, providedIn: 'root' }); }
300
+ }
301
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiJTextApiService, decorators: [{
302
+ type: Injectable,
303
+ args: [{
304
+ providedIn: 'root'
305
+ }]
306
+ }] });
307
+
308
+ class CuiCrewTemplateApiService {
309
+ constructor() {
310
+ this.httpClient = inject(HttpClient);
311
+ this.CREW_TEMPLATE_URL = 'project/crew/template';
312
+ }
313
+ getCrewTemplates(crewId) {
314
+ return this.httpClient.post(`${this.CREW_TEMPLATE_URL}/search`, {}, {
315
+ ...X_NDJSON_CONFIG_OPTIONS,
316
+ ...SHARED_PROJECT_HTTP_OPTIONS,
317
+ params: { crewId }
318
+ });
319
+ }
320
+ createTemplate(body) {
321
+ return this.httpClient.post(this.CREW_TEMPLATE_URL, body, SHARED_PROJECT_HTTP_OPTIONS);
322
+ }
323
+ getTemplateById(templateId) {
324
+ return this.httpClient.get(`${this.CREW_TEMPLATE_URL}/${templateId}`, SHARED_PROJECT_HTTP_OPTIONS);
325
+ }
326
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiCrewTemplateApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
327
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiCrewTemplateApiService, providedIn: 'root' }); }
328
+ }
329
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiCrewTemplateApiService, decorators: [{
330
+ type: Injectable,
331
+ args: [{
332
+ providedIn: 'root'
333
+ }]
334
+ }] });
335
+
336
+ class CuiDesignJobMainApiService {
337
+ constructor() {
338
+ this.httpClient = inject(HttpClient);
339
+ this.PROJECT_STAGE_URL = 'project/phase/design';
340
+ }
341
+ getTask(phaseId, activityId, taskId) {
342
+ return this.httpClient.get(`${this.PROJECT_STAGE_URL}/${phaseId}/construction_technology/stage/${activityId}/job/main/${taskId}`, SHARED_PROJECT_HTTP_OPTIONS);
343
+ }
344
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiDesignJobMainApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
345
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiDesignJobMainApiService, providedIn: 'root' }); }
346
+ }
347
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiDesignJobMainApiService, decorators: [{
348
+ type: Injectable,
349
+ args: [{
350
+ providedIn: 'root'
351
+ }]
352
+ }] });
353
+
354
+ class CuiDesignJobMainGroupApiService {
355
+ constructor() {
356
+ this.httpClient = inject(HttpClient);
357
+ this.DESIGN_URL = 'project/phase/design';
358
+ this.JOB_GROUP_URL = 'construction_technology/stage/job/main';
359
+ }
360
+ changeName(jobId, groupId, name) {
361
+ return this.httpClient.patch(`${this.JOB_GROUP_URL}/${jobId}/group/${groupId}/quantum/name`, {}, { ...SHARED_PROJECT_HTTP_OPTIONS, params: { name } });
362
+ }
363
+ getGroup(phaseId, jobId, groupId) {
364
+ return this.httpClient.get(`${this.DESIGN_URL}/${phaseId}/${this.JOB_GROUP_URL}/${jobId}/group/${groupId}/quantum`, SHARED_PROJECT_HTTP_OPTIONS);
365
+ }
366
+ createGroup(phaseId, jobId) {
367
+ return this.httpClient.post(`${this.DESIGN_URL}/${phaseId}/${this.JOB_GROUP_URL}/${jobId}/group/quantum`, {}, { ...SHARED_PROJECT_HTTP_OPTIONS, params: { name: 'New Group' } });
368
+ }
369
+ deleteGroup(phaseId, jobId, groupId) {
370
+ return this.httpClient.delete(`${this.DESIGN_URL}/${phaseId}/${this.JOB_GROUP_URL}/${jobId}/group/${groupId}`, SHARED_PROJECT_HTTP_OPTIONS);
371
+ }
372
+ addGroupBox(phaseId, jobId, groupId, body) {
373
+ return this.httpClient.patch(`${this.DESIGN_URL}/${phaseId}/${this.JOB_GROUP_URL}/${jobId}/group/${groupId}/quantum/box`, body, SHARED_PROJECT_HTTP_OPTIONS);
374
+ }
375
+ addFormalization(params) {
376
+ return this.httpClient.post(`${this.DESIGN_URL}/${params.phaseId}/${this.JOB_GROUP_URL}/${params.jobId}/group/${params.groupId}` +
377
+ `/quantum/box/${params.boxId}/formalization/${params.quantumId}`, this.getFormalizationFormData(params.body), SHARED_PROJECT_HTTP_OPTIONS);
378
+ }
379
+ updateFormalization(params) {
380
+ return this.httpClient.patch(`${this.DESIGN_URL}/${params.phaseId}/${this.JOB_GROUP_URL}/${params.jobId}/group/${params.groupId}` +
381
+ `/quantum/box/${params.boxId}/formalization/${params.formalizationId}`, this.getFormalizationFormData(params.body), SHARED_PROJECT_HTTP_OPTIONS);
382
+ }
383
+ deleteFormalization(params) {
384
+ return this.httpClient.delete(`${this.DESIGN_URL}/${params.phaseId}/${this.JOB_GROUP_URL}/${params.jobId}/group/${params.groupId}` +
385
+ `/quantum/box/${params.boxId}/formalization/${params.formalizationId}`, SHARED_PROJECT_HTTP_OPTIONS);
386
+ }
387
+ deleteGroupBox(phaseId, jobId, groupId, boxId) {
388
+ return this.httpClient.delete(`${this.DESIGN_URL}/${phaseId}/${this.JOB_GROUP_URL}/${jobId}/group/${groupId}/quantum/box/${boxId}`, SHARED_PROJECT_HTTP_OPTIONS);
389
+ }
390
+ getFormalizationFormData(params) {
391
+ const formData = new FormData();
392
+ if (params.fileDXF) {
393
+ formData.append('fileDXF', params.fileDXF);
394
+ }
395
+ if (params.parameter) {
396
+ const parameter = new Blob([JSON.stringify(params.parameter)], { type: `application/json` });
397
+ formData.append('parameter', parameter);
398
+ }
399
+ return formData;
400
+ }
401
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiDesignJobMainGroupApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
402
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiDesignJobMainGroupApiService, providedIn: 'root' }); }
403
+ }
404
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiDesignJobMainGroupApiService, decorators: [{
405
+ type: Injectable,
406
+ args: [{
407
+ providedIn: 'root'
408
+ }]
409
+ }] });
410
+
411
+ class CuiProjectApiService {
412
+ constructor() {
413
+ this.httpClient = inject(HttpClient);
414
+ this.PROJECT_URL = 'project';
415
+ }
416
+ getProject(id) {
417
+ return this.httpClient.get(`${this.PROJECT_URL}/${id}`, SHARED_PROJECT_HTTP_OPTIONS);
418
+ }
419
+ getProjects() {
420
+ return this.httpClient.get(`tree_struct`, {
421
+ ...X_NDJSON_CONFIG_OPTIONS,
422
+ ...SHARED_PROJECT_HTTP_OPTIONS,
423
+ params: { type: "PROJECT_STORAGE" /* TreeStructType.Project */ }
424
+ }).pipe(map((storage) => storage.elements));
425
+ }
426
+ changePhase(projectId, type) {
427
+ return this.httpClient.patch(`${this.PROJECT_URL}/${projectId}/transition`, {}, { ...SHARED_PROJECT_HTTP_OPTIONS, params: { type } });
428
+ }
429
+ getProjectPhase(phaseId) {
430
+ return this.httpClient.get(`${this.PROJECT_URL}/phase/${phaseId}`, SHARED_PROJECT_HTTP_OPTIONS);
431
+ }
432
+ updateTitle(id, title) {
433
+ return this.httpClient.patch(`${this.PROJECT_URL}/${id}`, {}, { ...SHARED_PROJECT_HTTP_OPTIONS, params: { title } });
434
+ }
435
+ createProject(body) {
436
+ return this.httpClient.post(this.PROJECT_URL, {
437
+ ...SHARED_PROJECT_HTTP_OPTIONS,
438
+ type_operations: "CREATE_PROJECT" /* ProjectTypeOperations.create */,
439
+ ...body
440
+ });
441
+ }
442
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiProjectApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
443
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiProjectApiService, providedIn: 'root' }); }
444
+ }
445
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiProjectApiService, decorators: [{
446
+ type: Injectable,
447
+ args: [{
448
+ providedIn: 'root'
449
+ }]
450
+ }] });
451
+
452
+ class CuiProjectDetailsPhaseInitApiService {
453
+ constructor() {
454
+ this.httpClient = inject(HttpClient);
455
+ this.PROJECT_INIT_PHASE_URL = 'project/phase/init';
456
+ }
457
+ setAddress(phaseId, body) {
458
+ return this.httpClient.patch(`${this.PROJECT_INIT_PHASE_URL}/${phaseId}/details/address`, body, SHARED_PROJECT_HTTP_OPTIONS);
459
+ }
460
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiProjectDetailsPhaseInitApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
461
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiProjectDetailsPhaseInitApiService, providedIn: 'root' }); }
462
+ }
463
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiProjectDetailsPhaseInitApiService, decorators: [{
464
+ type: Injectable,
465
+ args: [{
466
+ providedIn: 'root'
467
+ }]
468
+ }] });
469
+
470
+ class CuiProjectInitPhaseApiService {
471
+ constructor() {
472
+ this.httpClient = inject(HttpClient);
473
+ this.PROJECT_INIT_PHASE_URL = 'project/phase/init';
474
+ }
475
+ changePhase(initPhaseId, type) {
476
+ return this.httpClient.patch(`${this.PROJECT_INIT_PHASE_URL}/${initPhaseId}/transition`, {}, { ...SHARED_PROJECT_HTTP_OPTIONS, params: { type } });
477
+ }
478
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiProjectInitPhaseApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
479
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiProjectInitPhaseApiService, providedIn: 'root' }); }
480
+ }
481
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiProjectInitPhaseApiService, decorators: [{
482
+ type: Injectable,
483
+ args: [{
484
+ providedIn: 'root'
485
+ }]
486
+ }] });
487
+
488
+ class CuiProjectPhaseDesignTechnologyService {
489
+ constructor() {
490
+ this.httpClient = inject(HttpClient);
491
+ this.DESIGN_PAHASE_URL = 'project/phase/design';
492
+ }
493
+ getTechnologyStages(phaseId) {
494
+ return this.httpClient.get(`${this.DESIGN_PAHASE_URL}/${phaseId}/construction_technology`, {
495
+ ...X_NDJSON_CONFIG_OPTIONS,
496
+ ...SHARED_PROJECT_HTTP_OPTIONS
497
+ });
498
+ }
499
+ getStage(phaseId, stageActivityId) {
500
+ return this.httpClient.get(`${this.DESIGN_PAHASE_URL}/${phaseId}/stage/${stageActivityId}`, SHARED_PROJECT_HTTP_OPTIONS);
501
+ }
502
+ getStageChildren(phaseId, stageId) {
503
+ return this.httpClient.get(`${this.DESIGN_PAHASE_URL}/${phaseId}/stage/${stageId}/sub`, {
504
+ ...X_NDJSON_CONFIG_OPTIONS,
505
+ ...SHARED_PROJECT_HTTP_OPTIONS
506
+ });
507
+ }
508
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiProjectPhaseDesignTechnologyService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
509
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiProjectPhaseDesignTechnologyService, providedIn: 'root' }); }
510
+ }
511
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiProjectPhaseDesignTechnologyService, decorators: [{
512
+ type: Injectable,
513
+ args: [{
514
+ providedIn: 'root'
515
+ }]
516
+ }] });
517
+
518
+ class CuiProjectResoursePhaseInitApiService {
519
+ constructor() {
520
+ this.httpClient = inject(HttpClient);
521
+ this.PROJECT_RESOURCE_URL = 'project/phase/init/resource';
522
+ }
523
+ createCrewTemplate(body) {
524
+ return this.httpClient
525
+ .patch(`${this.PROJECT_RESOURCE_URL}/builder-crew`, {
526
+ type_operations: "CONSTRUCTION_RESOURCE_CREW_OPERATION_CREATE" /* ProjectResourceTypeOperations.Create */,
527
+ ...body
528
+ }, SHARED_PROJECT_HTTP_OPTIONS)
529
+ .pipe(map(({ builderCrews }) => builderCrews[0]));
530
+ }
531
+ replaceCrewTemplate(phaseInitId, crewTemplateId) {
532
+ return this.httpClient
533
+ .patch(`${this.PROJECT_RESOURCE_URL}/builder-crew`, {
534
+ type_operations: "CONSTRUCTION_RESOURCE_CREW_OPERATION_TEMPLATE" /* ProjectResourceTypeOperations.Update */,
535
+ phaseInitId,
536
+ crewTemplateId
537
+ }, SHARED_PROJECT_HTTP_OPTIONS)
538
+ .pipe(map(({ builderCrews }) => builderCrews[0]));
539
+ }
540
+ updateCrewTemplate(phaseId, builderId, body) {
541
+ return this.httpClient.patch(`${this.PROJECT_RESOURCE_URL}/${phaseId}/builder-crew/${builderId}/participant`, body, SHARED_PROJECT_HTTP_OPTIONS);
542
+ }
543
+ getCrewTemplates(phaseId) {
544
+ return this.httpClient.get(`${this.PROJECT_RESOURCE_URL}/${phaseId}/builder-crew`, SHARED_PROJECT_HTTP_OPTIONS);
545
+ }
546
+ deleteCrewTemplate(phaseId, builderCrewId) {
547
+ return this.httpClient.delete(`${this.PROJECT_RESOURCE_URL}/${phaseId}/crew`, {
548
+ ...SHARED_PROJECT_HTTP_OPTIONS,
549
+ params: { builderCrewId }
550
+ });
551
+ }
552
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiProjectResoursePhaseInitApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
553
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiProjectResoursePhaseInitApiService, providedIn: 'root' }); }
554
+ }
555
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiProjectResoursePhaseInitApiService, decorators: [{
556
+ type: Injectable,
557
+ args: [{
558
+ providedIn: 'root'
559
+ }]
560
+ }] });
561
+
562
+ class CuiProjectSchedulePhaseInitApiService {
563
+ constructor() {
564
+ this.httpClient = inject(HttpClient);
565
+ this.PROJECT_INIT_URL = 'project/phase/init';
566
+ }
567
+ applySchedule(phaseId, body) {
568
+ return this.httpClient.patch(`${this.PROJECT_INIT_URL}/${phaseId}/schedule/builder-crew/${body.builderCrewId}`, body, SHARED_PROJECT_HTTP_OPTIONS);
569
+ }
570
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiProjectSchedulePhaseInitApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
571
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiProjectSchedulePhaseInitApiService, providedIn: 'root' }); }
572
+ }
573
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiProjectSchedulePhaseInitApiService, decorators: [{
574
+ type: Injectable,
575
+ args: [{
576
+ providedIn: 'root'
577
+ }]
578
+ }] });
579
+
580
+ class CuiTechnologyPhaseInitApiService {
581
+ constructor() {
582
+ this.httpClient = inject(HttpClient);
583
+ this.PROJECT_INIT_PHASE_URL = 'project/phase/init';
584
+ }
585
+ setTechnology(id, technologyId) {
586
+ return this.httpClient.patch(`${this.PROJECT_INIT_PHASE_URL}/${id}/technology`, {}, { ...SHARED_PROJECT_HTTP_OPTIONS, params: { technologyId } });
587
+ }
588
+ addStageRule(phaseId, stageId) {
589
+ return this.httpClient.post(`${this.PROJECT_INIT_PHASE_URL}/${phaseId}/technology/stage_rules`, {
590
+ stageId,
591
+ type: "STAGE_EXCLUDE" /* TechnologyPhaseRules.Stage */
592
+ }, SHARED_PROJECT_HTTP_OPTIONS);
593
+ }
594
+ addTaskRule(phaseId, stageId, taskId) {
595
+ return this.httpClient.post(`${this.PROJECT_INIT_PHASE_URL}/${phaseId}/technology/stage_rules`, {
596
+ taskId,
597
+ stageId,
598
+ type: "STAGE_TASK_EXCLUDE" /* TechnologyPhaseRules.Task */
599
+ }, SHARED_PROJECT_HTTP_OPTIONS);
600
+ }
601
+ deleteRule(phaseId, technologyId, stageRulesId) {
602
+ return this.httpClient.patch(`${this.PROJECT_INIT_PHASE_URL}/${phaseId}/technology`, {}, { ...SHARED_PROJECT_HTTP_OPTIONS, params: { stageRulesId, technologyId } });
603
+ }
604
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiTechnologyPhaseInitApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
605
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiTechnologyPhaseInitApiService, providedIn: 'root' }); }
606
+ }
607
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiTechnologyPhaseInitApiService, decorators: [{
608
+ type: Injectable,
609
+ args: [{
610
+ providedIn: 'root'
611
+ }]
612
+ }] });
613
+
614
+ var WorkflowStructureType;
615
+ (function (WorkflowStructureType) {
616
+ WorkflowStructureType["Mutable"] = "MUTABLE";
617
+ WorkflowStructureType["Imutable"] = "IMMUTABLE";
618
+ })(WorkflowStructureType || (WorkflowStructureType = {}));
619
+
620
+ var MaintainableContentType;
621
+ (function (MaintainableContentType) {
622
+ MaintainableContentType["MAINTAINABLE"] = "MAINTAINABLE";
623
+ MaintainableContentType["UNMAINTAINABLE"] = "NOT_MAINTAINABLE";
624
+ })(MaintainableContentType || (MaintainableContentType = {}));
625
+
626
+ class CuiInstructionsApiService {
627
+ constructor() {
628
+ this.httpClient = inject(HttpClient);
629
+ this.INSTRUCTION_URL = 'instruction';
630
+ }
631
+ changeTitle(instructionId, title) {
632
+ return this.httpClient.patch(`${this.INSTRUCTION_URL}/${instructionId}/title`, {}, { ...SHARED_INSTRUCTION_HTTP_OPTIONS, params: { title } });
633
+ }
634
+ changeDescription(instructionId, shortDescription) {
635
+ return this.httpClient.patch(`${this.INSTRUCTION_URL}/${instructionId}/short_description`, {}, { ...SHARED_INSTRUCTION_HTTP_OPTIONS, params: { shortDescription } });
636
+ }
637
+ deleteInstruction(listingInstructionId, instructionStorageId) {
638
+ return this.httpClient.delete(`${this.INSTRUCTION_URL}/${listingInstructionId}/${instructionStorageId}`, SHARED_INSTRUCTION_HTTP_OPTIONS);
639
+ }
640
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiInstructionsApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
641
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiInstructionsApiService, providedIn: 'root' }); }
642
+ }
643
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiInstructionsApiService, decorators: [{
644
+ type: Injectable,
645
+ args: [{
646
+ providedIn: 'root'
647
+ }]
648
+ }] });
649
+
650
+ class CuiArrowWorkFlowActionsApiService {
651
+ constructor() {
652
+ this.httpClient = inject(HttpClient);
653
+ this.WORKFLOW_ACTION_URL = 'production_technology/arrow/workflow/action';
654
+ }
655
+ changeInformation(actionId, body) {
656
+ return this.httpClient.patch(`${this.WORKFLOW_ACTION_URL}/${actionId}`, body, SHARED_FACTORY_HTTP_OPTIONS);
657
+ }
658
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiArrowWorkFlowActionsApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
659
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiArrowWorkFlowActionsApiService, providedIn: 'root' }); }
660
+ }
661
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiArrowWorkFlowActionsApiService, decorators: [{
662
+ type: Injectable,
663
+ args: [{
664
+ providedIn: 'root'
665
+ }]
666
+ }] });
667
+
668
+ class CuiArrowWorkFlowComponentControllerApiService {
669
+ constructor() {
670
+ this.httpClient = inject(HttpClient);
671
+ this.WORKFLOW_URL = 'production_technology/arrow/workflow';
672
+ }
673
+ createComponent(arrowActionWorkFlowId, type) {
674
+ return this.httpClient.post(`${this.WORKFLOW_URL}/${arrowActionWorkFlowId}/action/${type.toLowerCase()}`, {}, SHARED_FACTORY_HTTP_OPTIONS);
675
+ }
676
+ deleteComponent(arrowActionWorkFlowId, componentId) {
677
+ return this.httpClient.delete(`${this.WORKFLOW_URL}/${arrowActionWorkFlowId}/action/${componentId}`, SHARED_FACTORY_HTTP_OPTIONS);
678
+ }
679
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiArrowWorkFlowComponentControllerApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
680
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiArrowWorkFlowComponentControllerApiService, providedIn: 'root' }); }
681
+ }
682
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiArrowWorkFlowComponentControllerApiService, decorators: [{
683
+ type: Injectable,
684
+ args: [{
685
+ providedIn: 'root'
686
+ }]
687
+ }] });
688
+
689
+ class CuiArrowWorkFlowReadinessChecklistApiService {
690
+ constructor() {
691
+ this.httpClient = inject(HttpClient);
692
+ this.WORKFLOW_URL = 'production_technology/arrow/workflow';
693
+ }
694
+ createChecklist(arrowId) {
695
+ return this.httpClient.post(`${this.WORKFLOW_URL}/${arrowId}/action/checklist_readiness`, { name: 'New Checklist', shortDescription: 'Description' }, SHARED_FACTORY_HTTP_OPTIONS);
696
+ }
697
+ injectChecklist(arrowId, checklistId) {
698
+ return this.httpClient.post(`${this.WORKFLOW_URL}/${arrowId}/action/checklist_readiness/insert/${checklistId}`, {}, SHARED_FACTORY_HTTP_OPTIONS);
699
+ }
700
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiArrowWorkFlowReadinessChecklistApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
701
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiArrowWorkFlowReadinessChecklistApiService, providedIn: 'root' }); }
702
+ }
703
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiArrowWorkFlowReadinessChecklistApiService, decorators: [{
704
+ type: Injectable,
705
+ args: [{
706
+ providedIn: 'root'
707
+ }]
708
+ }] });
709
+
710
+ class CuiArrowWorkFlowComponentStructureApiService {
711
+ constructor() {
712
+ this.httpClient = inject(HttpClient);
713
+ this.WORKFLOW_URL = 'production_technology/arrow/workflow';
714
+ }
715
+ moveStructure(arrowActionWorkFlowId, params) {
716
+ return this.httpClient.patch(`${this.WORKFLOW_URL}/${arrowActionWorkFlowId}/action/structure/move`, {}, { ...SHARED_FACTORY_HTTP_OPTIONS, params: { ...params } });
717
+ }
718
+ getStructureOptions(arrowActionWorkFlowId, type) {
719
+ return this.httpClient.get(`${this.WORKFLOW_URL}/${arrowActionWorkFlowId}/action/${type.toLocaleLowerCase()}/structure/options`, SHARED_FACTORY_HTTP_OPTIONS);
720
+ }
721
+ deleteStructure(arrowActionWorkFlowId, type, structureId) {
722
+ return this.httpClient.delete(`${this.WORKFLOW_URL}/${arrowActionWorkFlowId}/action/${type}/structure/${structureId}`, SHARED_FACTORY_HTTP_OPTIONS);
723
+ }
724
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiArrowWorkFlowComponentStructureApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
725
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiArrowWorkFlowComponentStructureApiService, providedIn: 'root' }); }
726
+ }
727
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiArrowWorkFlowComponentStructureApiService, decorators: [{
728
+ type: Injectable,
729
+ args: [{
730
+ providedIn: 'root'
731
+ }]
732
+ }] });
733
+
734
+ class CuiArrowWorkFlowTransferControllerApiService {
735
+ constructor() {
736
+ this.httpClient = inject(HttpClient);
737
+ this.WORKFLOW_URL = 'production_technology/arrow/workflow';
738
+ this.TRANSFER_URL = 'action/transfer';
739
+ }
740
+ createInstruction(body) {
741
+ return this.httpClient.post(`${this.WORKFLOW_URL}/${body.arrowActionWorkFlowId}/${this.TRANSFER_URL}/instruction`, {
742
+ type_operations: "CREATE_INSTRUCTION" /* InstructionTypeOperation.Create */,
743
+ title: 'New instruction',
744
+ shortDescription: 'Short description',
745
+ ...body
746
+ }, SHARED_FACTORY_HTTP_OPTIONS);
747
+ }
748
+ copyInstruction(body) {
749
+ return this.httpClient.post(`${this.WORKFLOW_URL}/${body.arrowActionWorkFlowId}/${this.TRANSFER_URL}/instruction`, {
750
+ type_operations: "COPY_SELECT_INSTRUCTION" /* InstructionTypeOperation.Copy */,
751
+ ...body
752
+ }, SHARED_FACTORY_HTTP_OPTIONS);
753
+ }
754
+ insertInstruction(body) {
755
+ return this.httpClient.post(`${this.WORKFLOW_URL}/${body.arrowActionWorkFlowId}/${this.TRANSFER_URL}/instruction`, {
756
+ type_operations: "INSERT_SELECT_INSTRUCTION" /* InstructionTypeOperation.Insert */,
757
+ ...body
758
+ }, SHARED_FACTORY_HTTP_OPTIONS);
759
+ }
760
+ unbindInstruction(body) {
761
+ return this.httpClient.post(`${this.WORKFLOW_URL}/${body.arrowActionWorkFlowId}/${this.TRANSFER_URL}/instruction`, {
762
+ type_operations: "UNBIND_SELECT_INSTRUCTION" /* InstructionTypeOperation.Unbind */,
763
+ ...body
764
+ }, SHARED_FACTORY_HTTP_OPTIONS);
765
+ }
766
+ addTransfer(body) {
767
+ return this.httpClient.patch(`${this.WORKFLOW_URL}/${this.TRANSFER_URL}`, body, SHARED_FACTORY_HTTP_OPTIONS);
768
+ }
769
+ updateTransfer(body) {
770
+ return this.httpClient.put(`${this.WORKFLOW_URL}/${this.TRANSFER_URL}/change`, body, SHARED_FACTORY_HTTP_OPTIONS);
771
+ }
772
+ insertTransfer(arrowActionWorkFlowId, id, transferType) {
773
+ return this.httpClient.patch(`${this.WORKFLOW_URL}/${arrowActionWorkFlowId}/${this.TRANSFER_URL}/insert/${id}`, {}, { ...SHARED_FACTORY_HTTP_OPTIONS, params: { transferType } });
774
+ }
775
+ getAvailableTransferTypes(arrowActionWorkFlowId) {
776
+ return this.httpClient.get(`${this.WORKFLOW_URL}/${arrowActionWorkFlowId}/${this.TRANSFER_URL}/available_type`, SHARED_FACTORY_HTTP_OPTIONS);
777
+ }
778
+ getAvailableAll(arrowActionWorkFlowId, type) {
779
+ return this.httpClient.get(`${this.WORKFLOW_URL}/${arrowActionWorkFlowId}/${this.TRANSFER_URL}/available_all`, { ...SHARED_FACTORY_HTTP_OPTIONS, params: { type } });
780
+ }
781
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiArrowWorkFlowTransferControllerApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
782
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiArrowWorkFlowTransferControllerApiService, providedIn: 'root' }); }
783
+ }
784
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiArrowWorkFlowTransferControllerApiService, decorators: [{
785
+ type: Injectable,
786
+ args: [{
787
+ providedIn: 'root'
788
+ }]
789
+ }] });
790
+
791
+ class CuiFactoryApiService {
792
+ constructor() {
793
+ this.httpClient = inject(HttpClient);
794
+ this.FACTORY_MATERIAL_URL = 'material/searches';
795
+ this.FACTORY_TOOL_URL = 'tool/searches';
796
+ this.FACTORY_PART_URL = 'part/searches';
797
+ this.SHARED_HTTP_OPTIONS = SHARED_FACTORY_HTTP_OPTIONS;
798
+ }
799
+ getMaterialsByIds(ids) {
800
+ return this.httpClient.post(`${this.FACTORY_MATERIAL_URL}`, { ids, size: ids.length }, {
801
+ ...X_NDJSON_CONFIG_OPTIONS,
802
+ ...this.SHARED_HTTP_OPTIONS
803
+ });
804
+ }
805
+ getPartsByIds(ids) {
806
+ return this.httpClient.post(`${this.FACTORY_PART_URL}`, { ids, size: ids.length }, {
807
+ ...X_NDJSON_CONFIG_OPTIONS,
808
+ ...this.SHARED_HTTP_OPTIONS
809
+ });
810
+ }
811
+ getPartsByIdsStream(ids) {
812
+ return this.httpClient.post(`${this.FACTORY_PART_URL}`, { ids, size: ids.length }, {
813
+ ...X_NDJSON_CONFIG_OPTIONS,
814
+ ...this.SHARED_HTTP_OPTIONS
815
+ });
816
+ }
817
+ getToolsByIdsStream(ids) {
818
+ return this.httpClient.post(`${this.FACTORY_TOOL_URL}`, { ids, size: ids.length }, {
819
+ ...X_NDJSON_CONFIG_OPTIONS,
820
+ ...this.SHARED_HTTP_OPTIONS
821
+ });
822
+ }
823
+ getToolsByIds(ids) {
824
+ return this.httpClient.post(`${this.FACTORY_TOOL_URL}`, { ids, size: ids.length }, {
825
+ ...X_NDJSON_CONFIG_OPTIONS,
826
+ ...this.SHARED_HTTP_OPTIONS
827
+ });
828
+ }
829
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiFactoryApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
830
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiFactoryApiService, providedIn: 'root' }); }
831
+ }
832
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiFactoryApiService, decorators: [{
833
+ type: Injectable,
834
+ args: [{
835
+ providedIn: 'root'
836
+ }]
837
+ }] });
838
+
839
+ class CuiExchangeContextApiService {
840
+ constructor() {
841
+ this.httpClient = inject(HttpClient);
842
+ }
843
+ // TODO: it's only available from platform for now
844
+ refresh(token) {
845
+ const body = new HttpParams().set('refresh_token', token);
846
+ const headers = new HttpHeaders().set('Content-Type', 'application/x-www-form-urlencoded');
847
+ return this.httpClient.post(`platform/token-refresh`, body.toString(), {
848
+ headers,
849
+ ...SHARED_PLATFORM_HTTP_OPTIONS
850
+ });
851
+ }
852
+ exchange(body) {
853
+ return this.httpClient.post(`platform/token-exchange`, body, {
854
+ ...SHARED_PLATFORM_HTTP_OPTIONS
855
+ });
856
+ }
857
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiExchangeContextApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
858
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiExchangeContextApiService, providedIn: 'root' }); }
859
+ }
860
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiExchangeContextApiService, decorators: [{
861
+ type: Injectable,
862
+ args: [{
863
+ providedIn: 'root'
864
+ }]
865
+ }] });
866
+
867
+ class UserCompanyApiService {
868
+ constructor() {
869
+ this.httpClient = inject(HttpClient);
870
+ }
871
+ getMyCompanies() {
872
+ return this.httpClient.get(`platform/company/my-companies`, SHARED_PLATFORM_HTTP_OPTIONS);
873
+ }
874
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: UserCompanyApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
875
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: UserCompanyApiService, providedIn: 'root' }); }
876
+ }
877
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: UserCompanyApiService, decorators: [{
878
+ type: Injectable,
879
+ args: [{ providedIn: 'root' }]
880
+ }] });
881
+
882
+ class CuiCriterionApiService {
883
+ constructor() {
884
+ this.httpClient = inject(HttpClient);
885
+ this.cuiIdService = inject(CuiIdService);
886
+ this.CRITERION_URL = 'acceptance_criteria';
887
+ this.CRITERION_ITEM_URL = 'acceptance_criteria/criterion';
888
+ }
889
+ getAll(id) {
890
+ return this.httpClient.get(`${this.CRITERION_URL}/${id}`, SHARED_CONSTRUCTION_HTTP_OPTIONS);
891
+ }
892
+ getSelection(criterionIds) {
893
+ return this.httpClient.get(`${this.CRITERION_URL}/criteria`, {
894
+ ...SHARED_CONSTRUCTION_HTTP_OPTIONS,
895
+ params: { criterionIds }
896
+ });
897
+ }
898
+ create(body) {
899
+ return this.httpClient.post(`${this.CRITERION_URL}`, {
900
+ ...body,
901
+ title: `New criterion ${this.cuiIdService.generate().replace('cui_', '')}`,
902
+ type_operations: "CREATE" /* CriteriaTypeOperation.Create */
903
+ }, SHARED_CONSTRUCTION_HTTP_OPTIONS);
904
+ }
905
+ copy(body) {
906
+ return this.httpClient.post(`${this.CRITERION_URL}`, {
907
+ ...body,
908
+ type_operations: "COPY_SELECT" /* CriteriaTypeOperation.Copy */
909
+ }, SHARED_CONSTRUCTION_HTTP_OPTIONS);
910
+ }
911
+ insert(body) {
912
+ return this.httpClient.post(`${this.CRITERION_URL}`, {
913
+ ...body,
914
+ type_operations: "INSERT_SELECT" /* CriteriaTypeOperation.Insert */
915
+ }, SHARED_CONSTRUCTION_HTTP_OPTIONS);
916
+ }
917
+ insertQuantum(body) {
918
+ return this.httpClient.patch(`quantum_container/quantum/${body.quantumId}`, {
919
+ containerId: body.containerId,
920
+ selectObjectId: body.selectObjectId,
921
+ type_operations: "INSERT_SELECT" /* CriteriaTypeOperation.Insert */,
922
+ quantumId: body.quantumId
923
+ }, SHARED_CONSTRUCTION_HTTP_OPTIONS);
924
+ }
925
+ insertOperation(body) {
926
+ return this.httpClient.patch(`quantum_container/quantum/${body.quantumId}/operations/${body.operationId}`, {
927
+ containerId: body.containerId,
928
+ selectObjectId: body.selectObjectId,
929
+ type_operations: "INSERT_SELECT" /* CriteriaTypeOperation.Insert */,
930
+ quantumId: body.quantumId
931
+ }, SHARED_CONSTRUCTION_HTTP_OPTIONS);
932
+ }
933
+ unbind(body) {
934
+ return this.httpClient.post(`${this.CRITERION_URL}`, {
935
+ ...body,
936
+ type_operations: "UNBIND_SELECT" /* CriteriaTypeOperation.Unbind */
937
+ }, SHARED_CONSTRUCTION_HTTP_OPTIONS);
938
+ }
939
+ delete(body) {
940
+ return this.httpClient.post(`${this.CRITERION_URL}`, {
941
+ ...body,
942
+ type_operations: "DELETE_SELECT" /* CriteriaTypeOperation.Delete */
943
+ }, SHARED_CONSTRUCTION_HTTP_OPTIONS);
944
+ }
945
+ deleteGlobal(criterionId) {
946
+ return this.httpClient.delete(`${this.CRITERION_URL}`, {
947
+ ...SHARED_CONSTRUCTION_HTTP_OPTIONS,
948
+ body: { criterionId, type_operations: 'DELETE_OPERATION' }
949
+ });
950
+ }
951
+ updateTitle(id, title) {
952
+ return this.httpClient.patch(`${this.CRITERION_ITEM_URL}/${id}/title`, { title }, SHARED_CONSTRUCTION_HTTP_OPTIONS);
953
+ }
954
+ changeTitle(criterionId, title) {
955
+ return this.httpClient.patch(`${this.CRITERION_ITEM_URL}/${criterionId}/title`, {}, { ...SHARED_CONSTRUCTION_HTTP_OPTIONS, params: { title } });
956
+ }
957
+ updateShortDescription(criterionId, shortDescription) {
958
+ return this.httpClient.patch(`${this.CRITERION_ITEM_URL}/${criterionId}/short_description`, {}, { ...SHARED_CONSTRUCTION_HTTP_OPTIONS, params: { shortDescription } });
959
+ }
960
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiCriterionApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
961
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiCriterionApiService, providedIn: 'root' }); }
962
+ }
963
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiCriterionApiService, decorators: [{
964
+ type: Injectable,
965
+ args: [{
966
+ providedIn: 'root'
967
+ }]
968
+ }] });
969
+
970
+ class CuiInstructionApiService {
971
+ constructor() {
972
+ this.httpClient = inject(HttpClient);
973
+ this.UTILITY_INSTRUCTION_URL = 'utility/component/instructions/structure';
974
+ }
975
+ changeTitle(instructionId, title) {
976
+ return this.httpClient.patch(`${this.UTILITY_INSTRUCTION_URL}/${instructionId}/title`, {}, { ...SHARED_FACTORY_HTTP_OPTIONS, params: { title } });
977
+ }
978
+ changeDescription(instructionId, shortDescription) {
979
+ return this.httpClient.patch(`${this.UTILITY_INSTRUCTION_URL}/${instructionId}/short_description`, {}, { ...SHARED_FACTORY_HTTP_OPTIONS, params: { shortDescription } });
980
+ }
981
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiInstructionApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
982
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiInstructionApiService, providedIn: 'root' }); }
983
+ }
984
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiInstructionApiService, decorators: [{
985
+ type: Injectable,
986
+ args: [{
987
+ providedIn: 'root'
988
+ }]
989
+ }] });
990
+
991
+ class CuiJobApiService {
992
+ constructor() {
993
+ this.httpClient = inject(HttpClient);
994
+ this.cuiIdService = inject(CuiIdService);
995
+ this.JOB_URL = 'construction_technology/job';
996
+ this.OPERATIONS_URL = 'construction_technology/job/options/operation';
997
+ }
998
+ getBySelection(objectIds) {
999
+ return this.httpClient.get(`${this.JOB_URL}`, {
1000
+ ...X_NDJSON_CONFIG_OPTIONS,
1001
+ ...SHARED_CONSTRUCTION_HTTP_OPTIONS,
1002
+ params: { objectIds }
1003
+ });
1004
+ }
1005
+ getById(id) {
1006
+ return this.httpClient.get(`${this.JOB_URL}/${id}`, SHARED_CONSTRUCTION_HTTP_OPTIONS);
1007
+ }
1008
+ getJobsByTeamIds(ids) {
1009
+ return this.httpClient.get(`${this.JOB_URL}/team`, {
1010
+ ...SHARED_CONSTRUCTION_HTTP_OPTIONS,
1011
+ params: { teamElementIds: ids }
1012
+ });
1013
+ }
1014
+ deleteQuantumContainer(jobId, quantumId) {
1015
+ return this.httpClient.delete(`${this.JOB_URL}/main/${jobId}/container_quantum/${quantumId}`, SHARED_CONSTRUCTION_HTTP_OPTIONS);
1016
+ }
1017
+ deleteTask(worksId, jobId) {
1018
+ return this.httpClient.delete(`construction_technology/stage/works/${worksId}/jobs/${jobId}`, SHARED_CONSTRUCTION_HTTP_OPTIONS);
1019
+ }
1020
+ deleteJobFromLibrary(jobId, type_operations) {
1021
+ return this.httpClient.delete(this.JOB_URL, {
1022
+ ...SHARED_CONSTRUCTION_HTTP_OPTIONS,
1023
+ body: { jobId, type_operations }
1024
+ });
1025
+ }
1026
+ createShiftTask(body) {
1027
+ return this.httpClient.post(this.JOB_URL, {
1028
+ ...body,
1029
+ supplementOperation: {
1030
+ ...body.supplementOperation,
1031
+ type_operations: "CREATE_JOB" /* JobOperationType.Create */
1032
+ }
1033
+ }, SHARED_CONSTRUCTION_HTTP_OPTIONS);
1034
+ }
1035
+ insertShiftTask(body) {
1036
+ return this.httpClient.post(this.JOB_URL, {
1037
+ ...body,
1038
+ supplementOperation: {
1039
+ ...body.supplementOperation,
1040
+ type_operations: "INSERT_SELECT_JOB" /* JobOperationType.Insert */
1041
+ }
1042
+ }, SHARED_CONSTRUCTION_HTTP_OPTIONS);
1043
+ }
1044
+ copyShiftTask(body) {
1045
+ return this.httpClient.post(this.JOB_URL, {
1046
+ ...body,
1047
+ supplementOperation: {
1048
+ ...body.supplementOperation,
1049
+ type_operations: "COPY_SELECT_JOB" /* JobOperationType.Copy */
1050
+ }
1051
+ }, SHARED_CONSTRUCTION_HTTP_OPTIONS);
1052
+ }
1053
+ create(body) {
1054
+ return this.httpClient.post(this.JOB_URL, {
1055
+ ...body,
1056
+ title: `New task ${this.cuiIdService.generate().replace('cui_', '')}`
1057
+ }, SHARED_CONSTRUCTION_HTTP_OPTIONS);
1058
+ }
1059
+ interact(body) {
1060
+ return this.httpClient.patch(`${this.JOB_URL}/interaction`, body, SHARED_CONSTRUCTION_HTTP_OPTIONS);
1061
+ }
1062
+ updateTitle(id, value) {
1063
+ return this.httpClient.patch(`${this.JOB_URL}/title/${id}`, { title: value }, SHARED_CONSTRUCTION_HTTP_OPTIONS);
1064
+ }
1065
+ createJTextContainer(id) {
1066
+ return this.httpClient.patch(`${this.JOB_URL}/${id}/jtext`, {}, SHARED_CONSTRUCTION_HTTP_OPTIONS);
1067
+ }
1068
+ updateEstimatedTime(params) {
1069
+ return this.httpClient.put(`${this.JOB_URL}/${params.jobType}/${params.id}/estimated_time`, {}, {
1070
+ ...SHARED_CONSTRUCTION_HTTP_OPTIONS,
1071
+ params: { newEstimatedTime: params.estimatedTime }
1072
+ });
1073
+ }
1074
+ createOperation(body) {
1075
+ return this.httpClient.post(this.OPERATIONS_URL, {
1076
+ type_operations: "CREATE_OPERATION" /* OperationTypeOperation.Create */,
1077
+ ...body
1078
+ }, SHARED_CONSTRUCTION_HTTP_OPTIONS);
1079
+ }
1080
+ insertOperation(body) {
1081
+ return this.httpClient.post(this.OPERATIONS_URL, {
1082
+ type_operations: "INSERT_SELECT_OPERATION" /* OperationTypeOperation.Insert */,
1083
+ ...body
1084
+ }, SHARED_CONSTRUCTION_HTTP_OPTIONS);
1085
+ }
1086
+ copyOperation(body) {
1087
+ return this.httpClient.post(this.OPERATIONS_URL, {
1088
+ type_operations: "COPY_SELECT_OPERATION" /* OperationTypeOperation.Copy */,
1089
+ ...body
1090
+ }, SHARED_CONSTRUCTION_HTTP_OPTIONS);
1091
+ }
1092
+ unbindOperation(body) {
1093
+ return this.httpClient.post(this.OPERATIONS_URL, {
1094
+ type_operations: "UNBIND_SELECT_OPERATION" /* OperationTypeOperation.Unbind */,
1095
+ ...body
1096
+ }, SHARED_CONSTRUCTION_HTTP_OPTIONS);
1097
+ }
1098
+ delete(body) {
1099
+ return this.httpClient.delete(this.JOB_URL, {
1100
+ ...SHARED_CONSTRUCTION_HTTP_OPTIONS,
1101
+ body
1102
+ });
1103
+ }
1104
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiJobApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1105
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiJobApiService, providedIn: 'root' }); }
1106
+ }
1107
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiJobApiService, decorators: [{
1108
+ type: Injectable,
1109
+ args: [{
1110
+ providedIn: 'root'
1111
+ }]
1112
+ }] });
1113
+
1114
+ class CuiUtilityComponentInstructionStructureApiService {
1115
+ constructor() {
1116
+ this.httpClient = inject(HttpClient);
1117
+ this.cuiIdService = inject(CuiIdService);
1118
+ this.INSTRUCTION_URL = 'utility/component/instructions/structure';
1119
+ }
1120
+ create(body) {
1121
+ return this.httpClient.post(this.INSTRUCTION_URL, {
1122
+ ...body,
1123
+ type_operations: "CREATE_INSTRUCTION" /* InstructionTypeOperation.Create */,
1124
+ title: `New instruction ${this.cuiIdService.generate().replace('cui_', '')}`,
1125
+ shortDescription: 'Default short description'
1126
+ }, SHARED_CONSTRUCTION_HTTP_OPTIONS);
1127
+ }
1128
+ copy(body) {
1129
+ return this.httpClient.post(this.INSTRUCTION_URL, {
1130
+ ...body,
1131
+ type_operations: "COPY_SELECT_INSTRUCTION" /* InstructionTypeOperation.Copy */
1132
+ }, SHARED_CONSTRUCTION_HTTP_OPTIONS);
1133
+ }
1134
+ insert(body) {
1135
+ return this.httpClient.post(this.INSTRUCTION_URL, {
1136
+ ...body,
1137
+ type_operations: "INSERT_SELECT_INSTRUCTION" /* InstructionTypeOperation.Insert */
1138
+ }, SHARED_CONSTRUCTION_HTTP_OPTIONS);
1139
+ }
1140
+ unbind(body) {
1141
+ return this.httpClient.post(this.INSTRUCTION_URL, {
1142
+ ...body,
1143
+ type_operations: "UNBIND_SELECT_INSTRUCTION" /* InstructionTypeOperation.Unbind */
1144
+ }, SHARED_CONSTRUCTION_HTTP_OPTIONS);
1145
+ }
1146
+ delete(body) {
1147
+ return this.httpClient.post(this.INSTRUCTION_URL, {
1148
+ ...body,
1149
+ type_operations: "DELETE_INSTRUCTION" /* InstructionTypeOperation.Delete */
1150
+ }, SHARED_CONSTRUCTION_HTTP_OPTIONS);
1151
+ }
1152
+ updateTitle(instructionId, title) {
1153
+ return this.httpClient.patch(`${this.INSTRUCTION_URL}/${instructionId}/title`, { title }, SHARED_CONSTRUCTION_HTTP_OPTIONS);
1154
+ }
1155
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiUtilityComponentInstructionStructureApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1156
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiUtilityComponentInstructionStructureApiService, providedIn: 'root' }); }
1157
+ }
1158
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiUtilityComponentInstructionStructureApiService, decorators: [{
1159
+ type: Injectable,
1160
+ args: [{
1161
+ providedIn: 'root'
1162
+ }]
1163
+ }] });
1164
+
1165
+ class UtilityApiService {
1166
+ constructor() {
1167
+ this.httpClient = inject(HttpClient);
1168
+ this.utilityComponentInstructionStructureApiService = inject(CuiUtilityComponentInstructionStructureApiService);
1169
+ this.UTILITY_URL = 'utility';
1170
+ }
1171
+ getById(id) {
1172
+ return this.httpClient.get(`${this.UTILITY_URL}/${id}`, SHARED_CONSTRUCTION_HTTP_OPTIONS);
1173
+ }
1174
+ updateShortDescription({ instructionId, shortDescription }) {
1175
+ const params = { shortDescription };
1176
+ return this.httpClient.patch(`${this.UTILITY_URL}/component/instructions/structure/${instructionId}/short_description`, {}, { ...SHARED_CONSTRUCTION_HTTP_OPTIONS, params });
1177
+ }
1178
+ addComponent(utilityId, type) {
1179
+ return this.httpClient.post(`${this.UTILITY_URL}/${utilityId}/component/${type}`, {}, SHARED_CONSTRUCTION_HTTP_OPTIONS);
1180
+ }
1181
+ delete(containerId, groupType, id) {
1182
+ return this.httpClient.delete(`utility/${containerId}/component/${groupType}/structure/${id}`, SHARED_CONSTRUCTION_HTTP_OPTIONS);
1183
+ }
1184
+ deleteCancel(containerId, groupType, id) {
1185
+ return this.httpClient
1186
+ .delete(`utility/${containerId}/component/${groupType}/structure/${id}`, SHARED_CONSTRUCTION_HTTP_OPTIONS)
1187
+ .pipe(concatMap(() => this.utilityComponentInstructionStructureApiService.delete({
1188
+ utilityId: containerId,
1189
+ selectInstructionId: id
1190
+ })));
1191
+ }
1192
+ deleteStructure(id, type, contentId) {
1193
+ return this.httpClient.delete(`${this.UTILITY_URL}/${id}/component/${type}/structure/${contentId}`, SHARED_CONSTRUCTION_HTTP_OPTIONS);
1194
+ }
1195
+ deleteComponent(utilityId, componentId) {
1196
+ return this.httpClient.delete(`${this.UTILITY_URL}/${utilityId}/component/${componentId}`, SHARED_CONSTRUCTION_HTTP_OPTIONS);
1197
+ }
1198
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: UtilityApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1199
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: UtilityApiService, providedIn: 'root' }); }
1200
+ }
1201
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: UtilityApiService, decorators: [{
1202
+ type: Injectable,
1203
+ args: [{
1204
+ providedIn: 'root'
1205
+ }]
1206
+ }] });
1207
+
1208
+ class CuiQuantumGroupResourcesStructureApiService {
1209
+ constructor() {
1210
+ this.httpClient = inject(HttpClient);
1211
+ this.UTILITY_URL = 'utility';
1212
+ this.STRUCTURE_URL = 'component/resources/structure';
1213
+ }
1214
+ addElementForStructure(utilityId, type) {
1215
+ return this.httpClient.post(`${this.UTILITY_URL}/${utilityId}/${this.STRUCTURE_URL}/${type}`, {}, SHARED_CONSTRUCTION_HTTP_OPTIONS);
1216
+ }
1217
+ addElementInStructure(utilityId, type, body) {
1218
+ return this.httpClient.put(`utility/${utilityId}/${this.STRUCTURE_URL}/${type}/elements`, body, SHARED_CONSTRUCTION_HTTP_OPTIONS);
1219
+ }
1220
+ updateElementInStructure(utilityId, type, body) {
1221
+ return this.httpClient.patch(`utility/${utilityId}/${this.STRUCTURE_URL}/${type}/element`, body, SHARED_CONSTRUCTION_HTTP_OPTIONS);
1222
+ }
1223
+ deleteElementInStructure(utilityId, type, elementId) {
1224
+ return this.httpClient.delete(`utility/${utilityId}/${this.STRUCTURE_URL}/${type}/element/${elementId}`, SHARED_CONSTRUCTION_HTTP_OPTIONS);
1225
+ }
1226
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiQuantumGroupResourcesStructureApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1227
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiQuantumGroupResourcesStructureApiService, providedIn: 'root' }); }
1228
+ }
1229
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiQuantumGroupResourcesStructureApiService, decorators: [{
1230
+ type: Injectable,
1231
+ args: [{ providedIn: 'root' }]
1232
+ }] });
1233
+
1234
+ const JobActionType = {
1235
+ TaskStartShiftNode: 'TASK_START_SHIFT_NODE',
1236
+ TaskEndShiftNode: 'TASK_END_SHIFT_NODE'
1237
+ };
1238
+
1239
+ var ResourceContentType;
1240
+ (function (ResourceContentType) {
1241
+ ResourceContentType["Toolbox"] = "TOOLBOX";
1242
+ ResourceContentType["Consumables"] = "CONSUMABLES";
1243
+ ResourceContentType["Part"] = "PART";
1244
+ })(ResourceContentType || (ResourceContentType = {}));
1245
+
1246
+ var TechnologyState;
1247
+ (function (TechnologyState) {
1248
+ TechnologyState["Release"] = "RELEASE";
1249
+ TechnologyState["Draft"] = "DRAFT";
1250
+ })(TechnologyState || (TechnologyState = {}));
1251
+ var TechnologyDeleteType;
1252
+ (function (TechnologyDeleteType) {
1253
+ TechnologyDeleteType["Global"] = "GLOBAL";
1254
+ TechnologyDeleteType["GlobalWithStages"] = "GLOBAL_WITH_STAGES";
1255
+ })(TechnologyDeleteType || (TechnologyDeleteType = {}));
1256
+
1257
+ const SeasonType = {
1258
+ Summer: 'SUMMER',
1259
+ Autumn: 'AUTUMN',
1260
+ Winter: 'WINTER',
1261
+ Spring: 'SPRING'
1262
+ };
1263
+
1264
+ class CuiInstructionAssessmentConfigApiService {
1265
+ constructor() {
1266
+ this.httpClient = inject(HttpClient);
1267
+ this.INSTRUCTION_URL = 'instruction';
1268
+ this.ASSESSMENT_CONFIG_URL = 'assessment/config';
1269
+ }
1270
+ getDefaultInstructionAssessmentConfig(instructionId) {
1271
+ return this.httpClient.get(`${this.INSTRUCTION_URL}/${instructionId}/${this.ASSESSMENT_CONFIG_URL}/resolve`, SHARED_INSTRUCTION_HTTP_OPTIONS);
1272
+ }
1273
+ createInstructionAssessmentConfig(instructionId, body) {
1274
+ return this.httpClient.post(`${this.INSTRUCTION_URL}/${instructionId}/${this.ASSESSMENT_CONFIG_URL}`, body, SHARED_INSTRUCTION_HTTP_OPTIONS);
1275
+ }
1276
+ getInstructionAssessmentConfig(instructionId) {
1277
+ return this.httpClient.get(`${this.INSTRUCTION_URL}/${instructionId}/${this.ASSESSMENT_CONFIG_URL}`, SHARED_INSTRUCTION_HTTP_OPTIONS);
1278
+ }
1279
+ updateAssessmentMode(instructionId, assessmentMode) {
1280
+ return this.httpClient.patch(`${this.INSTRUCTION_URL}/${instructionId}/${this.ASSESSMENT_CONFIG_URL}/assessment-mode`, {}, { ...SHARED_INSTRUCTION_HTTP_OPTIONS, params: { assessmentMode } });
1281
+ }
1282
+ updateAssessmentRequirement(instructionId, assessmentRequirement) {
1283
+ return this.httpClient.patch(`${this.INSTRUCTION_URL}/${instructionId}/${this.ASSESSMENT_CONFIG_URL}/assessment-requirement`, {}, { ...SHARED_INSTRUCTION_HTTP_OPTIONS, params: { assessmentRequirement } });
1284
+ }
1285
+ updateQuizSize(instructionId, quizSize) {
1286
+ return this.httpClient.patch(`${this.INSTRUCTION_URL}/${instructionId}/${this.ASSESSMENT_CONFIG_URL}/quiz-size`, {}, { ...SHARED_INSTRUCTION_HTTP_OPTIONS, params: { quizSize } });
1287
+ }
1288
+ updateQuizPassThreshold(instructionId, quizPassThreshold) {
1289
+ return this.httpClient.patch(`${this.INSTRUCTION_URL}/${instructionId}/${this.ASSESSMENT_CONFIG_URL}/quiz-pass-threshold`, {}, { ...SHARED_INSTRUCTION_HTTP_OPTIONS, params: { quizPassThreshold } });
1290
+ }
1291
+ updateQuestionTypes(instructionId, questionTypes) {
1292
+ return this.httpClient.patch(`${this.INSTRUCTION_URL}/${instructionId}/${this.ASSESSMENT_CONFIG_URL}/question-types`, questionTypes, SHARED_INSTRUCTION_HTTP_OPTIONS);
1293
+ }
1294
+ updateInteractiveMinTurns(instructionId, interactiveMinTurns) {
1295
+ return this.httpClient.patch(`${this.INSTRUCTION_URL}/${instructionId}/${this.ASSESSMENT_CONFIG_URL}/interactive-min-turns`, {}, { ...SHARED_INSTRUCTION_HTTP_OPTIONS, params: { interactiveMinTurns } });
1296
+ }
1297
+ updateInteractiveMaxTurns(instructionId, interactiveMaxTurns) {
1298
+ return this.httpClient.patch(`${this.INSTRUCTION_URL}/${instructionId}/${this.ASSESSMENT_CONFIG_URL}/interactive-max-turns`, {}, { ...SHARED_INSTRUCTION_HTTP_OPTIONS, params: { interactiveMaxTurns } });
1299
+ }
1300
+ updateInteractivePassThreshold(instructionId, interactivePassThreshold) {
1301
+ return this.httpClient.patch(`${this.INSTRUCTION_URL}/${instructionId}/${this.ASSESSMENT_CONFIG_URL}/interactive-pass-threshold`, {}, { ...SHARED_INSTRUCTION_HTTP_OPTIONS, params: { interactivePassThreshold } });
1302
+ }
1303
+ updateAssistantPrompt(instructionId, assistantPrompt) {
1304
+ return this.httpClient.patch(`${this.INSTRUCTION_URL}/${instructionId}/${this.ASSESSMENT_CONFIG_URL}/assistant-prompt`, assistantPrompt, SHARED_INSTRUCTION_HTTP_OPTIONS);
1305
+ }
1306
+ updateAttemptsLimit(instructionId, attemptsLimit) {
1307
+ return this.httpClient.patch(`${this.INSTRUCTION_URL}/${instructionId}/${this.ASSESSMENT_CONFIG_URL}/attempts-limit`, {}, { ...SHARED_INSTRUCTION_HTTP_OPTIONS, params: { attemptsLimit } });
1308
+ }
1309
+ updateAttemptsResetPeriod(instructionId, attemptsResetPeriod) {
1310
+ return this.httpClient.patch(`${this.INSTRUCTION_URL}/${instructionId}/${this.ASSESSMENT_CONFIG_URL}/attempts-reset-period`, {}, { ...SHARED_INSTRUCTION_HTTP_OPTIONS, params: { attemptsResetPeriod } });
1311
+ }
1312
+ updateTtlHours(instructionId, ttlHours) {
1313
+ return this.httpClient.patch(`${this.INSTRUCTION_URL}/${instructionId}/${this.ASSESSMENT_CONFIG_URL}/ttl-hours`, {}, { ...SHARED_INSTRUCTION_HTTP_OPTIONS, params: { ttlHours } });
1314
+ }
1315
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiInstructionAssessmentConfigApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1316
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiInstructionAssessmentConfigApiService, providedIn: 'root' }); }
1317
+ }
1318
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiInstructionAssessmentConfigApiService, decorators: [{
1319
+ type: Injectable,
1320
+ args: [{
1321
+ providedIn: 'root'
1322
+ }]
1323
+ }] });
1324
+
1325
+ var AssessmentMode;
1326
+ (function (AssessmentMode) {
1327
+ AssessmentMode["Quiz"] = "QUIZ";
1328
+ AssessmentMode["Interactive"] = "INTERACTIVE";
1329
+ })(AssessmentMode || (AssessmentMode = {}));
1330
+ var AssessmentRequirement;
1331
+ (function (AssessmentRequirement) {
1332
+ AssessmentRequirement["Mandatory"] = "MANDATORY";
1333
+ AssessmentRequirement["Optional"] = "OPTIONAL";
1334
+ })(AssessmentRequirement || (AssessmentRequirement = {}));
1335
+ var QuestionType;
1336
+ (function (QuestionType) {
1337
+ QuestionType["SingleChoice"] = "SINGLE_CHOICE";
1338
+ QuestionType["MultipleChoice"] = "MULTIPLE_CHOICE";
1339
+ QuestionType["TrueFalse"] = "TRUE_FALSE";
1340
+ })(QuestionType || (QuestionType = {}));
1341
+
1342
+ /**
1343
+ * Generated bundle index. Do not edit.
1344
+ */
1345
+
1346
+ export { AssessmentMode, AssessmentRequirement, CUI_API_URL_CONTEXT, CuiArrowWorkFlowActionsApiService, CuiArrowWorkFlowComponentControllerApiService, CuiArrowWorkFlowComponentStructureApiService, CuiArrowWorkFlowReadinessChecklistApiService, CuiArrowWorkFlowTransferControllerApiService, CuiCrewTemplateApiService, CuiCriterionApiService, CuiDesignJobMainApiService, CuiDesignJobMainGroupApiService, CuiExchangeContextApiService, CuiFactoryApiService, CuiFrameApiService, CuiInstructionApiService, CuiInstructionAssessmentConfigApiService, CuiInstructionsApiService, CuiJTextApiService, CuiJobApiService, CuiNodeChecklistApiService, CuiProjectApiService, CuiProjectDetailsPhaseInitApiService, CuiProjectInitPhaseApiService, CuiProjectPhaseDesignTechnologyService, CuiProjectResoursePhaseInitApiService, CuiProjectSchedulePhaseInitApiService, CuiQuantumGroupResourcesStructureApiService, CuiReviewType, CuiStorageObjectType, CuiTechnologyPhaseInitApiService, CuiTreeStructApiService, CuiTreeStructNavigatorApiService, CuiUtilityComponentInstructionStructureApiService, InstructionStatus, JobActionType, JobType, MaintainableContentType, QuestionType, ResourceContentType, SHARED_CONSTRUCTION_HTTP_OPTIONS, SHARED_FACTORY_HTTP_OPTIONS, SHARED_INSTRUCTION_HTTP_OPTIONS, SHARED_LEARNING_HTTP_OPTIONS, SHARED_PLATFORM_HTTP_OPTIONS, SHARED_PROJECT_HTTP_OPTIONS, SHARED_SCHEDULE_HTTP_OPTIONS, SeasonType, SubjectType, TechnologyDeleteType, TechnologyState, UserCompanyApiService, UtilityApiService, WorkflowStructureType, X_NDJSON_CONFIG_OPTIONS };
1347
+ //# sourceMappingURL=cuby-ui-api.mjs.map