@cuby-ui/api 0.0.436 → 0.0.437
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/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/holder-acceptance-criterion-wrapper.d.ts +8 -0
- package/construction/models/index.d.ts +16 -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/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 +9 -0
- package/construction/services/frame-api.service.d.ts +18 -0
- package/construction/services/index.d.ts +6 -0
- package/construction/services/job-api.service.d.ts +32 -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/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/holder-acceptance-criterion-wrapper.mjs +2 -0
- package/esm2022/construction/models/index.mjs +17 -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/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 +22 -0
- package/esm2022/construction/services/frame-api.service.mjs +44 -0
- package/esm2022/construction/services/index.mjs +7 -0
- package/esm2022/construction/services/job-api.service.mjs +128 -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/index.mjs +2 -1
- package/esm2022/shared/models/instruction-type-operations.mjs +1 -1
- package/esm2022/shared/models/job.options.mjs +1 -1
- package/fesm2022/cuby-ui-api.mjs +322 -2
- package/fesm2022/cuby-ui-api.mjs.map +1 -1
- package/index.d.ts +1 -0
- package/package.json +1 -1
- package/shared/models/instruction-type-operations.d.ts +2 -1
- package/shared/models/job.options.d.ts +9 -8
package/fesm2022/cuby-ui-api.mjs
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { HttpContextToken, HttpContext, HttpClient, HttpParams, HttpHeaders } from '@angular/common/http';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
3
|
import { inject, Injectable } from '@angular/core';
|
|
4
|
-
import { map } from 'rxjs';
|
|
4
|
+
import { map, concatMap } from 'rxjs';
|
|
5
|
+
import { CuiIdService } from '@cuby-ui/cdk';
|
|
5
6
|
|
|
6
7
|
const X_NDJSON_CONFIG_OPTIONS = {
|
|
7
8
|
headers: {
|
|
@@ -863,9 +864,328 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
863
864
|
args: [{ providedIn: 'root' }]
|
|
864
865
|
}] });
|
|
865
866
|
|
|
867
|
+
class CuiCriterionApiService {
|
|
868
|
+
constructor() {
|
|
869
|
+
this.httpClient = inject(HttpClient);
|
|
870
|
+
this.CRITERION_URL = 'acceptance_criteria/criterion';
|
|
871
|
+
}
|
|
872
|
+
changeTitle(criterionId, title) {
|
|
873
|
+
return this.httpClient.patch(`${this.CRITERION_URL}/${criterionId}/title`, {}, { ...SHARED_FACTORY_HTTP_OPTIONS, params: { title } });
|
|
874
|
+
}
|
|
875
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiCriterionApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
876
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiCriterionApiService, providedIn: 'root' }); }
|
|
877
|
+
}
|
|
878
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiCriterionApiService, decorators: [{
|
|
879
|
+
type: Injectable,
|
|
880
|
+
args: [{
|
|
881
|
+
providedIn: 'root'
|
|
882
|
+
}]
|
|
883
|
+
}] });
|
|
884
|
+
|
|
885
|
+
class CuiInstructionApiService {
|
|
886
|
+
constructor() {
|
|
887
|
+
this.httpClient = inject(HttpClient);
|
|
888
|
+
this.UTILITY_INSTRUCTION_URL = 'utility/component/instructions/structure';
|
|
889
|
+
}
|
|
890
|
+
changeTitle(instructionId, title) {
|
|
891
|
+
return this.httpClient.patch(`${this.UTILITY_INSTRUCTION_URL}/${instructionId}/title`, {}, { ...SHARED_FACTORY_HTTP_OPTIONS, params: { title } });
|
|
892
|
+
}
|
|
893
|
+
changeDescription(instructionId, shortDescription) {
|
|
894
|
+
return this.httpClient.patch(`${this.UTILITY_INSTRUCTION_URL}/${instructionId}/short_description`, {}, { ...SHARED_FACTORY_HTTP_OPTIONS, params: { shortDescription } });
|
|
895
|
+
}
|
|
896
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiInstructionApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
897
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiInstructionApiService, providedIn: 'root' }); }
|
|
898
|
+
}
|
|
899
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiInstructionApiService, decorators: [{
|
|
900
|
+
type: Injectable,
|
|
901
|
+
args: [{
|
|
902
|
+
providedIn: 'root'
|
|
903
|
+
}]
|
|
904
|
+
}] });
|
|
905
|
+
|
|
906
|
+
class FrameApiService {
|
|
907
|
+
constructor() {
|
|
908
|
+
this.http = inject(HttpClient);
|
|
909
|
+
this.FRAMER_URL = 'framer';
|
|
910
|
+
this.FRAGMENT_URL = 'fragment';
|
|
911
|
+
}
|
|
912
|
+
getFrame(frameId) {
|
|
913
|
+
return this.http.get(`${this.FRAMER_URL}/${frameId}`, SHARED_CONSTRUCTION_HTTP_OPTIONS);
|
|
914
|
+
}
|
|
915
|
+
createFrame() {
|
|
916
|
+
return this.http.post(this.FRAMER_URL, {}, SHARED_CONSTRUCTION_HTTP_OPTIONS);
|
|
917
|
+
}
|
|
918
|
+
createFragment(frameId, type) {
|
|
919
|
+
return this.http.post(`${this.FRAMER_URL}/${frameId}/${this.FRAGMENT_URL}`, { type_operations: type }, SHARED_CONSTRUCTION_HTTP_OPTIONS);
|
|
920
|
+
}
|
|
921
|
+
deleteFragment(frameId, fragmentId) {
|
|
922
|
+
return this.http.delete(`${this.FRAMER_URL}/${frameId}/${this.FRAGMENT_URL}/${fragmentId}`, SHARED_CONSTRUCTION_HTTP_OPTIONS);
|
|
923
|
+
}
|
|
924
|
+
uploadResource(body, frameId, fragmentId) {
|
|
925
|
+
return this.http.post(`${this.FRAMER_URL}/data_resource`, body, {
|
|
926
|
+
...SHARED_CONSTRUCTION_HTTP_OPTIONS,
|
|
927
|
+
params: { frameContainerId: frameId, dataResourceContainerId: fragmentId }
|
|
928
|
+
});
|
|
929
|
+
}
|
|
930
|
+
deleteResource(frameId, fragmentId) {
|
|
931
|
+
return this.http.delete(`${this.FRAMER_URL}/data_resource/content`, {
|
|
932
|
+
...SHARED_CONSTRUCTION_HTTP_OPTIONS,
|
|
933
|
+
params: { frameContainerId: frameId, dataResourceContainerId: fragmentId }
|
|
934
|
+
});
|
|
935
|
+
}
|
|
936
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FrameApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
937
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FrameApiService, providedIn: 'root' }); }
|
|
938
|
+
}
|
|
939
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FrameApiService, decorators: [{
|
|
940
|
+
type: Injectable,
|
|
941
|
+
args: [{
|
|
942
|
+
providedIn: 'root'
|
|
943
|
+
}]
|
|
944
|
+
}] });
|
|
945
|
+
|
|
946
|
+
class CuiJobApiService {
|
|
947
|
+
constructor() {
|
|
948
|
+
this.httpClient = inject(HttpClient);
|
|
949
|
+
this.cuiIdService = inject(CuiIdService);
|
|
950
|
+
this.JOB_URL = 'construction_technology/job';
|
|
951
|
+
this.OPERATIONS_URL = 'construction_technology/job/options/operation';
|
|
952
|
+
}
|
|
953
|
+
getBySelection(objectIds) {
|
|
954
|
+
return this.httpClient.get(`${this.JOB_URL}`, {
|
|
955
|
+
...X_NDJSON_CONFIG_OPTIONS,
|
|
956
|
+
...SHARED_CONSTRUCTION_HTTP_OPTIONS,
|
|
957
|
+
params: { objectIds }
|
|
958
|
+
});
|
|
959
|
+
}
|
|
960
|
+
getById(id) {
|
|
961
|
+
return this.httpClient.get(`${this.JOB_URL}/${id}`, SHARED_CONSTRUCTION_HTTP_OPTIONS);
|
|
962
|
+
}
|
|
963
|
+
getJobsByTeamIds(ids) {
|
|
964
|
+
return this.httpClient.get(`${this.JOB_URL}/team`, {
|
|
965
|
+
...SHARED_CONSTRUCTION_HTTP_OPTIONS,
|
|
966
|
+
params: { teamElementIds: ids }
|
|
967
|
+
});
|
|
968
|
+
}
|
|
969
|
+
deleteQuantumContainer(jobId, quantumId) {
|
|
970
|
+
return this.httpClient.delete(`${this.JOB_URL}/main/${jobId}/container_quantum/${quantumId}`, SHARED_CONSTRUCTION_HTTP_OPTIONS);
|
|
971
|
+
}
|
|
972
|
+
deleteTask(worksId, jobId) {
|
|
973
|
+
return this.httpClient.delete(`construction_technology/stage/works/${worksId}/jobs/${jobId}`, SHARED_CONSTRUCTION_HTTP_OPTIONS);
|
|
974
|
+
}
|
|
975
|
+
deleteJobFromLibrary(jobId, type_operations) {
|
|
976
|
+
return this.httpClient.delete(this.JOB_URL, {
|
|
977
|
+
...SHARED_CONSTRUCTION_HTTP_OPTIONS,
|
|
978
|
+
body: { jobId, type_operations }
|
|
979
|
+
});
|
|
980
|
+
}
|
|
981
|
+
createShiftTask(body) {
|
|
982
|
+
return this.httpClient.post(this.JOB_URL, {
|
|
983
|
+
...body,
|
|
984
|
+
supplementOperation: {
|
|
985
|
+
...body.supplementOperation,
|
|
986
|
+
type_operations: "CREATE_JOB" /* JobOperationType.Create */
|
|
987
|
+
}
|
|
988
|
+
}, SHARED_CONSTRUCTION_HTTP_OPTIONS);
|
|
989
|
+
}
|
|
990
|
+
insertShiftTask(body) {
|
|
991
|
+
return this.httpClient.post(this.JOB_URL, {
|
|
992
|
+
...body,
|
|
993
|
+
supplementOperation: {
|
|
994
|
+
...body.supplementOperation,
|
|
995
|
+
type_operations: "INSERT_SELECT_JOB" /* JobOperationType.Insert */
|
|
996
|
+
}
|
|
997
|
+
}, SHARED_CONSTRUCTION_HTTP_OPTIONS);
|
|
998
|
+
}
|
|
999
|
+
copyShiftTask(body) {
|
|
1000
|
+
return this.httpClient.post(this.JOB_URL, {
|
|
1001
|
+
...body,
|
|
1002
|
+
supplementOperation: {
|
|
1003
|
+
...body.supplementOperation,
|
|
1004
|
+
type_operations: "COPY_SELECT_JOB" /* JobOperationType.Copy */
|
|
1005
|
+
}
|
|
1006
|
+
}, SHARED_CONSTRUCTION_HTTP_OPTIONS);
|
|
1007
|
+
}
|
|
1008
|
+
create(body) {
|
|
1009
|
+
return this.httpClient.post(this.JOB_URL, {
|
|
1010
|
+
...body,
|
|
1011
|
+
title: `New task ${this.cuiIdService.generate().replace('cui_', '')}`
|
|
1012
|
+
}, SHARED_CONSTRUCTION_HTTP_OPTIONS);
|
|
1013
|
+
}
|
|
1014
|
+
interact(body) {
|
|
1015
|
+
return this.httpClient.patch(`${this.JOB_URL}/interaction`, body, SHARED_CONSTRUCTION_HTTP_OPTIONS);
|
|
1016
|
+
}
|
|
1017
|
+
updateTitle(id, value) {
|
|
1018
|
+
return this.httpClient.patch(`${this.JOB_URL}/title/${id}`, { title: value }, SHARED_CONSTRUCTION_HTTP_OPTIONS);
|
|
1019
|
+
}
|
|
1020
|
+
createJTextContainer(id) {
|
|
1021
|
+
return this.httpClient.patch(`${this.JOB_URL}/${id}/jtext`, {}, SHARED_CONSTRUCTION_HTTP_OPTIONS);
|
|
1022
|
+
}
|
|
1023
|
+
updateEstimatedTime(params) {
|
|
1024
|
+
return this.httpClient.put(`${this.JOB_URL}/${params.jobType}/${params.id}/estimated_time`, {}, {
|
|
1025
|
+
...SHARED_CONSTRUCTION_HTTP_OPTIONS,
|
|
1026
|
+
params: { newEstimatedTime: params.estimatedTime }
|
|
1027
|
+
});
|
|
1028
|
+
}
|
|
1029
|
+
createOperation(body) {
|
|
1030
|
+
return this.httpClient.post(this.OPERATIONS_URL, {
|
|
1031
|
+
type_operations: "CREATE_OPERATION" /* OperationTypeOperation.Create */,
|
|
1032
|
+
...body
|
|
1033
|
+
}, SHARED_CONSTRUCTION_HTTP_OPTIONS);
|
|
1034
|
+
}
|
|
1035
|
+
insertOperation(body) {
|
|
1036
|
+
return this.httpClient.post(this.OPERATIONS_URL, {
|
|
1037
|
+
type_operations: "INSERT_SELECT_OPERATION" /* OperationTypeOperation.Insert */,
|
|
1038
|
+
...body
|
|
1039
|
+
}, SHARED_CONSTRUCTION_HTTP_OPTIONS);
|
|
1040
|
+
}
|
|
1041
|
+
copyOperation(body) {
|
|
1042
|
+
return this.httpClient.post(this.OPERATIONS_URL, {
|
|
1043
|
+
type_operations: "COPY_SELECT_OPERATION" /* OperationTypeOperation.Copy */,
|
|
1044
|
+
...body
|
|
1045
|
+
}, SHARED_CONSTRUCTION_HTTP_OPTIONS);
|
|
1046
|
+
}
|
|
1047
|
+
unbindOperation(body) {
|
|
1048
|
+
return this.httpClient.post(this.OPERATIONS_URL, {
|
|
1049
|
+
type_operations: "UNBIND_SELECT_OPERATION" /* OperationTypeOperation.Unbind */,
|
|
1050
|
+
...body
|
|
1051
|
+
}, SHARED_CONSTRUCTION_HTTP_OPTIONS);
|
|
1052
|
+
}
|
|
1053
|
+
delete(body) {
|
|
1054
|
+
return this.httpClient.delete(this.JOB_URL, {
|
|
1055
|
+
...SHARED_CONSTRUCTION_HTTP_OPTIONS,
|
|
1056
|
+
body
|
|
1057
|
+
});
|
|
1058
|
+
}
|
|
1059
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiJobApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1060
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiJobApiService, providedIn: 'root' }); }
|
|
1061
|
+
}
|
|
1062
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiJobApiService, decorators: [{
|
|
1063
|
+
type: Injectable,
|
|
1064
|
+
args: [{
|
|
1065
|
+
providedIn: 'root'
|
|
1066
|
+
}]
|
|
1067
|
+
}] });
|
|
1068
|
+
|
|
1069
|
+
class CuiUtilityComponentInstructionStructureApiService {
|
|
1070
|
+
constructor() {
|
|
1071
|
+
this.httpClient = inject(HttpClient);
|
|
1072
|
+
this.cuiIdService = inject(CuiIdService);
|
|
1073
|
+
this.INSTRUCTION_URL = 'utility/component/instructions/structure';
|
|
1074
|
+
}
|
|
1075
|
+
create(body) {
|
|
1076
|
+
return this.httpClient.post(this.INSTRUCTION_URL, {
|
|
1077
|
+
...body,
|
|
1078
|
+
type_operations: "CREATE_INSTRUCTION" /* InstructionTypeOperation.Create */,
|
|
1079
|
+
title: `New instruction ${this.cuiIdService.generate().replace('cui_', '')}`,
|
|
1080
|
+
shortDescription: 'Default short description'
|
|
1081
|
+
}, SHARED_CONSTRUCTION_HTTP_OPTIONS);
|
|
1082
|
+
}
|
|
1083
|
+
copy(body) {
|
|
1084
|
+
return this.httpClient.post(this.INSTRUCTION_URL, {
|
|
1085
|
+
...body,
|
|
1086
|
+
type_operations: "COPY_SELECT_INSTRUCTION" /* InstructionTypeOperation.Copy */
|
|
1087
|
+
}, SHARED_CONSTRUCTION_HTTP_OPTIONS);
|
|
1088
|
+
}
|
|
1089
|
+
insert(body) {
|
|
1090
|
+
return this.httpClient.post(this.INSTRUCTION_URL, {
|
|
1091
|
+
...body,
|
|
1092
|
+
type_operations: "INSERT_SELECT_INSTRUCTION" /* InstructionTypeOperation.Insert */
|
|
1093
|
+
}, SHARED_CONSTRUCTION_HTTP_OPTIONS);
|
|
1094
|
+
}
|
|
1095
|
+
unbind(body) {
|
|
1096
|
+
return this.httpClient.post(this.INSTRUCTION_URL, {
|
|
1097
|
+
...body,
|
|
1098
|
+
type_operations: "UNBIND_SELECT_INSTRUCTION" /* InstructionTypeOperation.Unbind */
|
|
1099
|
+
}, SHARED_CONSTRUCTION_HTTP_OPTIONS);
|
|
1100
|
+
}
|
|
1101
|
+
delete(body) {
|
|
1102
|
+
return this.httpClient.post(this.INSTRUCTION_URL, {
|
|
1103
|
+
...body,
|
|
1104
|
+
type_operations: "DELETE_INSTRUCTION" /* InstructionTypeOperation.Delete */
|
|
1105
|
+
}, SHARED_CONSTRUCTION_HTTP_OPTIONS);
|
|
1106
|
+
}
|
|
1107
|
+
updateTitle(instructionId, title) {
|
|
1108
|
+
return this.httpClient.patch(`${this.INSTRUCTION_URL}/${instructionId}/title`, { title }, SHARED_CONSTRUCTION_HTTP_OPTIONS);
|
|
1109
|
+
}
|
|
1110
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiUtilityComponentInstructionStructureApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1111
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiUtilityComponentInstructionStructureApiService, providedIn: 'root' }); }
|
|
1112
|
+
}
|
|
1113
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiUtilityComponentInstructionStructureApiService, decorators: [{
|
|
1114
|
+
type: Injectable,
|
|
1115
|
+
args: [{
|
|
1116
|
+
providedIn: 'root'
|
|
1117
|
+
}]
|
|
1118
|
+
}] });
|
|
1119
|
+
|
|
1120
|
+
class UtilityApiService {
|
|
1121
|
+
constructor() {
|
|
1122
|
+
this.httpClient = inject(HttpClient);
|
|
1123
|
+
this.utilityComponentInstructionStructureApiService = inject(CuiUtilityComponentInstructionStructureApiService);
|
|
1124
|
+
this.UTILITY_URL = 'utility';
|
|
1125
|
+
}
|
|
1126
|
+
getById(id) {
|
|
1127
|
+
return this.httpClient.get(`${this.UTILITY_URL}/${id}`, SHARED_CONSTRUCTION_HTTP_OPTIONS);
|
|
1128
|
+
}
|
|
1129
|
+
updateShortDescription({ instructionId, shortDescription }) {
|
|
1130
|
+
const params = { shortDescription };
|
|
1131
|
+
return this.httpClient.patch(`${this.UTILITY_URL}/component/instructions/structure/${instructionId}/short_description`, {}, { ...SHARED_CONSTRUCTION_HTTP_OPTIONS, params });
|
|
1132
|
+
}
|
|
1133
|
+
addComponent(utilityId, type) {
|
|
1134
|
+
return this.httpClient.post(`${this.UTILITY_URL}/${utilityId}/component/${type}`, {}, SHARED_CONSTRUCTION_HTTP_OPTIONS);
|
|
1135
|
+
}
|
|
1136
|
+
delete(containerId, groupType, id) {
|
|
1137
|
+
return this.httpClient.delete(`utility/${containerId}/component/${groupType}/structure/${id}`, SHARED_CONSTRUCTION_HTTP_OPTIONS);
|
|
1138
|
+
}
|
|
1139
|
+
deleteCancel(containerId, groupType, id) {
|
|
1140
|
+
return this.httpClient
|
|
1141
|
+
.delete(`utility/${containerId}/component/${groupType}/structure/${id}`, SHARED_CONSTRUCTION_HTTP_OPTIONS)
|
|
1142
|
+
.pipe(concatMap(() => this.utilityComponentInstructionStructureApiService.delete({
|
|
1143
|
+
utilityId: containerId,
|
|
1144
|
+
selectInstructionId: id
|
|
1145
|
+
})));
|
|
1146
|
+
}
|
|
1147
|
+
deleteStructure(id, type, contentId) {
|
|
1148
|
+
return this.httpClient.delete(`${this.UTILITY_URL}/${id}/component/${type}/structure/${contentId}`, SHARED_CONSTRUCTION_HTTP_OPTIONS);
|
|
1149
|
+
}
|
|
1150
|
+
deleteComponent(utilityId, componentId) {
|
|
1151
|
+
return this.httpClient.delete(`${this.UTILITY_URL}/${utilityId}/component/${componentId}`, SHARED_CONSTRUCTION_HTTP_OPTIONS);
|
|
1152
|
+
}
|
|
1153
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: UtilityApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1154
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: UtilityApiService, providedIn: 'root' }); }
|
|
1155
|
+
}
|
|
1156
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: UtilityApiService, decorators: [{
|
|
1157
|
+
type: Injectable,
|
|
1158
|
+
args: [{
|
|
1159
|
+
providedIn: 'root'
|
|
1160
|
+
}]
|
|
1161
|
+
}] });
|
|
1162
|
+
|
|
1163
|
+
const JobActionType = {
|
|
1164
|
+
TaskStartShiftNode: 'TASK_START_SHIFT_NODE',
|
|
1165
|
+
TaskEndShiftNode: 'TASK_END_SHIFT_NODE'
|
|
1166
|
+
};
|
|
1167
|
+
|
|
1168
|
+
var ResourceContentType;
|
|
1169
|
+
(function (ResourceContentType) {
|
|
1170
|
+
ResourceContentType["Toolbox"] = "TOOLBOX";
|
|
1171
|
+
ResourceContentType["Consumables"] = "CONSUMABLES";
|
|
1172
|
+
ResourceContentType["Part"] = "PART";
|
|
1173
|
+
})(ResourceContentType || (ResourceContentType = {}));
|
|
1174
|
+
|
|
1175
|
+
var TechnologyState;
|
|
1176
|
+
(function (TechnologyState) {
|
|
1177
|
+
TechnologyState["Release"] = "RELEASE";
|
|
1178
|
+
TechnologyState["Draft"] = "DRAFT";
|
|
1179
|
+
})(TechnologyState || (TechnologyState = {}));
|
|
1180
|
+
var TechnologyDeleteType;
|
|
1181
|
+
(function (TechnologyDeleteType) {
|
|
1182
|
+
TechnologyDeleteType["Global"] = "GLOBAL";
|
|
1183
|
+
TechnologyDeleteType["GlobalWithStages"] = "GLOBAL_WITH_STAGES";
|
|
1184
|
+
})(TechnologyDeleteType || (TechnologyDeleteType = {}));
|
|
1185
|
+
|
|
866
1186
|
/**
|
|
867
1187
|
* Generated bundle index. Do not edit.
|
|
868
1188
|
*/
|
|
869
1189
|
|
|
870
|
-
export { CUI_API_URL_CONTEXT, CuiArrowWorkFlowActionsApiService, CuiArrowWorkFlowComponentControllerApiService, CuiArrowWorkFlowComponentStructureApiService, CuiArrowWorkFlowReadinessChecklistApiService, CuiArrowWorkFlowTransferControllerApiService, CuiCrewTemplateApiService, CuiDesignJobMainApiService, CuiDesignJobMainGroupApiService, CuiExchangeContextApiService, CuiFactoryApiService, CuiFrameApiService, CuiInstructionsApiService, CuiJTextApiService, CuiNodeChecklistApiService, CuiProjectApiService, CuiProjectDetailsPhaseInitApiService, CuiProjectInitPhaseApiService, CuiProjectPhaseDesignTechnologyService, CuiProjectResoursePhaseInitApiService, CuiProjectSchedulePhaseInitApiService, CuiStorageObjectType, CuiTechnologyPhaseInitApiService, CuiTreeStructApiService, CuiTreeStructNavigatorApiService, JobType, MaintainableContentType, 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, SubjectType, UserCompanyApiService, WorkflowStructureType, X_NDJSON_CONFIG_OPTIONS };
|
|
1190
|
+
export { CUI_API_URL_CONTEXT, CuiArrowWorkFlowActionsApiService, CuiArrowWorkFlowComponentControllerApiService, CuiArrowWorkFlowComponentStructureApiService, CuiArrowWorkFlowReadinessChecklistApiService, CuiArrowWorkFlowTransferControllerApiService, CuiCrewTemplateApiService, CuiCriterionApiService, CuiDesignJobMainApiService, CuiDesignJobMainGroupApiService, CuiExchangeContextApiService, CuiFactoryApiService, CuiFrameApiService, CuiInstructionApiService, CuiInstructionsApiService, CuiJTextApiService, CuiJobApiService, CuiNodeChecklistApiService, CuiProjectApiService, CuiProjectDetailsPhaseInitApiService, CuiProjectInitPhaseApiService, CuiProjectPhaseDesignTechnologyService, CuiProjectResoursePhaseInitApiService, CuiProjectSchedulePhaseInitApiService, CuiStorageObjectType, CuiTechnologyPhaseInitApiService, CuiTreeStructApiService, CuiTreeStructNavigatorApiService, CuiUtilityComponentInstructionStructureApiService, FrameApiService, JobActionType, JobType, MaintainableContentType, 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, SubjectType, TechnologyDeleteType, TechnologyState, UserCompanyApiService, UtilityApiService, WorkflowStructureType, X_NDJSON_CONFIG_OPTIONS };
|
|
871
1191
|
//# sourceMappingURL=cuby-ui-api.mjs.map
|