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