@cuby-ui/api 0.0.249 → 0.0.251

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/constants/index.d.ts +1 -0
  2. package/constants/shared-factory-http-options.d.ts +4 -0
  3. package/esm2022/constants/index.mjs +2 -1
  4. package/esm2022/constants/shared-factory-http-options.mjs +6 -0
  5. package/esm2022/factory/index.mjs +2 -1
  6. package/esm2022/factory/models/arrow-work-flow-component-controller-api.options.mjs +6 -0
  7. package/esm2022/factory/models/arrow-work-flow-component-structure-api.options.mjs +2 -0
  8. package/esm2022/factory/models/arrow-work-flow-controller-api.options.mjs +2 -0
  9. package/esm2022/factory/models/arrow-work-flow-readiness-checklist-api.options.mjs +2 -0
  10. package/esm2022/factory/models/arrow-work-flow-trasnfer-controller-api.options.mjs +2 -0
  11. package/esm2022/factory/models/consumable.mjs +2 -0
  12. package/esm2022/factory/models/index.mjs +14 -0
  13. package/esm2022/factory/models/intra-logistic.mjs +6 -0
  14. package/esm2022/factory/models/maintenance.mjs +2 -0
  15. package/esm2022/factory/models/manufacturer.mjs +2 -0
  16. package/esm2022/factory/models/measurment.mjs +2 -0
  17. package/esm2022/factory/models/specification.mjs +2 -0
  18. package/esm2022/factory/models/specifications.mjs +2 -0
  19. package/esm2022/factory/services/arrow-work-flow-actions-api.service.mjs +22 -0
  20. package/esm2022/factory/services/arrow-work-flow-component-controller-api.service.mjs +28 -0
  21. package/esm2022/factory/services/arrow-work-flow-component-structure-api.service.mjs +25 -0
  22. package/esm2022/factory/services/arrow-work-flow-readiness-checklist-api.service.mjs +25 -0
  23. package/esm2022/factory/services/arrow-work-flow-trasnfer-controller-api.service.mjs +54 -0
  24. package/esm2022/factory/services/index.mjs +6 -1
  25. package/esm2022/factory/services/instructions-api.service.mjs +5 -4
  26. package/esm2022/shared/models/index.mjs +3 -1
  27. package/esm2022/shared/models/instruction-type-operations.mjs +2 -0
  28. package/esm2022/shared/models/subject.mjs +8 -0
  29. package/factory/index.d.ts +1 -0
  30. package/factory/models/arrow-work-flow-component-controller-api.options.d.ts +56 -0
  31. package/factory/models/arrow-work-flow-component-structure-api.options.d.ts +7 -0
  32. package/factory/models/arrow-work-flow-controller-api.options.d.ts +53 -0
  33. package/factory/models/arrow-work-flow-readiness-checklist-api.options.d.ts +4 -0
  34. package/factory/models/arrow-work-flow-trasnfer-controller-api.options.d.ts +55 -0
  35. package/factory/models/consumable.d.ts +15 -0
  36. package/factory/models/index.d.ts +13 -0
  37. package/factory/models/intra-logistic.d.ts +44 -0
  38. package/factory/models/maintenance.d.ts +12 -0
  39. package/factory/models/manufacturer.d.ts +5 -0
  40. package/factory/models/measurment.d.ts +5 -0
  41. package/factory/models/specification.d.ts +4 -0
  42. package/factory/models/specifications.d.ts +8 -0
  43. package/factory/services/arrow-work-flow-actions-api.service.d.ts +10 -0
  44. package/factory/services/arrow-work-flow-component-controller-api.service.d.ts +12 -0
  45. package/factory/services/arrow-work-flow-component-structure-api.service.d.ts +11 -0
  46. package/factory/services/arrow-work-flow-readiness-checklist-api.service.d.ts +11 -0
  47. package/factory/services/arrow-work-flow-trasnfer-controller-api.service.d.ts +18 -0
  48. package/factory/services/index.d.ts +5 -0
  49. package/fesm2022/cuby-ui-api.mjs +162 -4
  50. package/fesm2022/cuby-ui-api.mjs.map +1 -1
  51. package/package.json +1 -1
  52. package/shared/models/index.d.ts +2 -0
  53. package/shared/models/instruction-type-operations.d.ts +6 -0
  54. package/shared/models/subject.d.ts +8 -0
@@ -0,0 +1,55 @@
1
+ export declare const enum TransferType {
2
+ Manual = "MANUAL_HANDLING",
3
+ LogisticVehicle = "LOGISTIC_VEHICLE"
4
+ }
5
+ export type TransferTypeValues = 'MANUAL_HANDLING' | 'LOGISTIC_VEHICLE';
6
+ export declare const enum ArrowWorkFlowTrasferChangeType {
7
+ InterLogistic = "CHANGE_INTER_LOGISTIC",
8
+ Optional = "CHANGE_OPTIONAL"
9
+ }
10
+ export interface CreateWorkflowInstructionRequestBody {
11
+ readonly arrowActionWorkFlowId: string;
12
+ readonly storageNodeId: string;
13
+ readonly transferActionWorkFlowId: string;
14
+ }
15
+ export interface CopyWorkflowInstructionRequestBody {
16
+ readonly arrowActionWorkFlowId: string;
17
+ readonly transferActionWorkFlowId: string;
18
+ readonly selectInstructionId: string;
19
+ }
20
+ export interface InsertWorkflowInstructionRequestBody {
21
+ readonly arrowActionWorkFlowId: string;
22
+ readonly transferActionWorkFlowId: string;
23
+ readonly selectInstructionId: string;
24
+ }
25
+ export interface UnbindWorkflowInstructionRequestBody {
26
+ readonly arrowActionWorkFlowId: string;
27
+ readonly transferActionWorkFlowId: string;
28
+ readonly selectInstructionId: string;
29
+ }
30
+ export interface AddArrowWorkFlowTransferBase {
31
+ readonly type: TransferType;
32
+ readonly arrowActionWorkFlowId: string;
33
+ }
34
+ export type AddArrowWorkFlowTransferRequestBody = AddArrowWorkFlowVehicleTransferRequestBody | AddArrowWorkFlowManualTransferRequestBody;
35
+ export interface AddArrowWorkFlowVehicleTransferRequestBody extends AddArrowWorkFlowTransferBase {
36
+ readonly interLogisticsId: string;
37
+ }
38
+ export interface AddArrowWorkFlowManualTransferRequestBody extends AddArrowWorkFlowTransferBase {
39
+ readonly name: string;
40
+ readonly numberPeople: number;
41
+ }
42
+ export type UpdateArrowWorkFlowTransferRequestBody = UpdateArrowWorkFlowManualTransfer | UpdateArrowWorkFlowVehicleTransfer;
43
+ export interface UpdateArrowWorkFlowTransderBase {
44
+ readonly arrowActionWorkFlowId: string;
45
+ readonly change_type: ArrowWorkFlowTrasferChangeType;
46
+ readonly oldTransferActionWorkFlowId: string;
47
+ readonly optionalTransferActionWorkFlowId?: string;
48
+ }
49
+ export interface UpdateArrowWorkFlowVehicleTransfer extends UpdateArrowWorkFlowTransderBase {
50
+ readonly type: TransferType.LogisticVehicle;
51
+ readonly interLogisticsId?: string;
52
+ }
53
+ export interface UpdateArrowWorkFlowManualTransfer extends UpdateArrowWorkFlowTransderBase {
54
+ readonly type: TransferType.Manual;
55
+ }
@@ -0,0 +1,15 @@
1
+ import { Measurement } from "./measurment";
2
+ export interface Consumable {
3
+ readonly id?: string;
4
+ readonly materialId?: string;
5
+ readonly amountMaterial?: string;
6
+ readonly period?: ConsumablePeriod;
7
+ readonly consumableWrapper: any;
8
+ readonly type?: string;
9
+ readonly measurement?: Measurement;
10
+ readonly wearPercentage?: string;
11
+ }
12
+ export interface ConsumablePeriod {
13
+ readonly unitPeriod: 'MONTHS' | 'YEARS' | 'WEEKS' | 'DAYS';
14
+ readonly value: number;
15
+ }
@@ -0,0 +1,13 @@
1
+ export * from './arrow-work-flow-controller-api.options';
2
+ export * from './arrow-work-flow-component-controller-api.options';
3
+ export * from './arrow-work-flow-component-structure-api.options';
4
+ export * from './arrow-work-flow-controller-api.options';
5
+ export * from './arrow-work-flow-readiness-checklist-api.options';
6
+ export * from './arrow-work-flow-trasnfer-controller-api.options';
7
+ export * from './consumable';
8
+ export * from './intra-logistic';
9
+ export * from './maintenance';
10
+ export * from './manufacturer';
11
+ export * from './measurment';
12
+ export * from './specification';
13
+ export * from './specifications';
@@ -0,0 +1,44 @@
1
+ import type { CuiNullable } from '@cuby-ui/cdk';
2
+ import { Consumable } from './consumable';
3
+ import { Maintenance } from './maintenance';
4
+ import { Manufacturer } from './manufacturer';
5
+ import { Specification } from './specification';
6
+ import { Specifications } from './specifications';
7
+ export interface IntraLogistic {
8
+ readonly id: string;
9
+ readonly type: string;
10
+ readonly name: string;
11
+ readonly shortName: string;
12
+ readonly descriptionId?: CuiNullable<string>;
13
+ readonly pdmNumber: string;
14
+ readonly transportSpecifications: TransportSpecifications;
15
+ readonly manufacturers: Manufacturer[];
16
+ readonly analogues: string[];
17
+ readonly isDelete?: boolean;
18
+ readonly maintainability?: MaintainabilityContent;
19
+ }
20
+ export declare enum MaintainableContentType {
21
+ MAINTAINABLE = "MAINTAINABLE",
22
+ UNMAINTAINABLE = "NOT_MAINTAINABLE"
23
+ }
24
+ export interface TransportSpecifications extends Specifications {
25
+ readonly loadingCapacity: CuiNullable<Specification>;
26
+ }
27
+ export type MaintainabilityContent = MaintainableContent | UnmaintainableContent;
28
+ export interface UnmaintainableContent {
29
+ readonly id: string;
30
+ readonly type: MaintainableContentType.UNMAINTAINABLE;
31
+ readonly isDelete: boolean;
32
+ readonly resource: null | string;
33
+ }
34
+ export interface MaintainableContent {
35
+ readonly id: string;
36
+ readonly type: MaintainableContentType.MAINTAINABLE;
37
+ readonly isDelete: boolean;
38
+ readonly maintenances: Maintenance[];
39
+ readonly spareParts: null | SpareParts;
40
+ }
41
+ export interface SpareParts {
42
+ readonly servicePeriod: string;
43
+ readonly consumables: Consumable[];
44
+ }
@@ -0,0 +1,12 @@
1
+ import { CuiNullable } from "@cuby-ui/cdk";
2
+ import { Consumable } from "./consumable";
3
+ export interface Maintenance {
4
+ readonly id: string;
5
+ readonly interval: {
6
+ readonly unit: 'HOURS';
7
+ readonly value: CuiNullable<number>;
8
+ };
9
+ readonly duration: string;
10
+ readonly consumables: Consumable[];
11
+ readonly holderInstructionStorageId?: string;
12
+ }
@@ -0,0 +1,5 @@
1
+ export interface Manufacturer {
2
+ readonly id?: string;
3
+ readonly name: string;
4
+ readonly link: string;
5
+ }
@@ -0,0 +1,5 @@
1
+ export interface Measurement {
2
+ readonly measure: string;
3
+ readonly unit: string;
4
+ readonly value: number;
5
+ }
@@ -0,0 +1,4 @@
1
+ export interface Specification {
2
+ readonly value: number;
3
+ readonly unit: string;
4
+ }
@@ -0,0 +1,8 @@
1
+ import { CuiNullable } from "@cuby-ui/cdk";
2
+ import { Specification } from "./specification";
3
+ export interface Specifications {
4
+ readonly width: CuiNullable<Specification>;
5
+ readonly height: CuiNullable<Specification>;
6
+ readonly length: CuiNullable<Specification>;
7
+ readonly weight: CuiNullable<Specification>;
8
+ }
@@ -0,0 +1,10 @@
1
+ import type { Observable } from 'rxjs';
2
+ import { WorkflowChecklistInformation } from '../models';
3
+ import * as i0 from "@angular/core";
4
+ export declare class CuiArrowWorkFlowActionsApiService {
5
+ private readonly httpClient;
6
+ private readonly WORKFLOW_ACTION_URL;
7
+ changeInformation(actionId: string, body: WorkflowChecklistInformation): Observable<void>;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<CuiArrowWorkFlowActionsApiService, never>;
9
+ static ɵprov: i0.ɵɵInjectableDeclaration<CuiArrowWorkFlowActionsApiService>;
10
+ }
@@ -0,0 +1,12 @@
1
+ import type { Observable } from 'rxjs';
2
+ import { WorkflowActionComponent, WorkflowComponentType, WorkflowSuitableAction } from '../models';
3
+ import * as i0 from "@angular/core";
4
+ export declare class CuiArrowWorkFlowComponentControllerApiService {
5
+ private readonly httpClient;
6
+ private readonly WORKFLOW_URL;
7
+ createComponent(arrowActionWorkFlowId: string, type: WorkflowComponentType): Observable<WorkflowActionComponent>;
8
+ getSuitable(arrowActionWorkFlowId: string, type: WorkflowComponentType): Observable<WorkflowSuitableAction[]>;
9
+ deleteComponent(arrowActionWorkFlowId: string, componentId: string): Observable<void>;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<CuiArrowWorkFlowComponentControllerApiService, never>;
11
+ static ɵprov: i0.ɵɵInjectableDeclaration<CuiArrowWorkFlowComponentControllerApiService>;
12
+ }
@@ -0,0 +1,11 @@
1
+ import type { Observable } from 'rxjs';
2
+ import { MoveArrowWorkFlowStructureParams, WorkflowComponentType } from '../models';
3
+ import * as i0 from "@angular/core";
4
+ export declare class CuiArrowWorkFlowComponentStructureApiService {
5
+ private readonly httpClient;
6
+ private readonly WORKFLOW_URL;
7
+ moveStructure(arrowActionWorkFlowId: string, params: MoveArrowWorkFlowStructureParams): Observable<void>;
8
+ deleteStructure(arrowActionWorkFlowId: string, type: WorkflowComponentType, structureId: string): Observable<void>;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<CuiArrowWorkFlowComponentStructureApiService, never>;
10
+ static ɵprov: i0.ɵɵInjectableDeclaration<CuiArrowWorkFlowComponentStructureApiService>;
11
+ }
@@ -0,0 +1,11 @@
1
+ import type { Observable } from 'rxjs';
2
+ import { WorkflowChecklistStructure } from '../models';
3
+ import * as i0 from "@angular/core";
4
+ export declare class CuiArrowWorkFlowReadinessChecklistApiService {
5
+ private readonly httpClient;
6
+ private readonly WORKFLOW_URL;
7
+ createChecklist(arrowId: string): Observable<WorkflowChecklistStructure>;
8
+ injectChecklist(arrowId: string, checklistId: string): Observable<WorkflowChecklistStructure>;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<CuiArrowWorkFlowReadinessChecklistApiService, never>;
10
+ static ɵprov: i0.ɵɵInjectableDeclaration<CuiArrowWorkFlowReadinessChecklistApiService>;
11
+ }
@@ -0,0 +1,18 @@
1
+ import type { Observable } from 'rxjs';
2
+ import { AddArrowWorkFlowTransferRequestBody, CopyWorkflowInstructionRequestBody, CreateWorkflowInstructionRequestBody, InsertWorkflowInstructionRequestBody, TransferType, UnbindWorkflowInstructionRequestBody, UpdateArrowWorkFlowTransferRequestBody, WorkflowTransferStructure } from '../models';
3
+ import { StorageObjectInstruction } from '../../shared';
4
+ import * as i0 from "@angular/core";
5
+ export declare class CuiArrowWorkFlowTransferControllerApiService {
6
+ private readonly httpClient;
7
+ private readonly WORKFLOW_URL;
8
+ private readonly TRANSFER_URL;
9
+ createInstruction(body: CreateWorkflowInstructionRequestBody): Observable<StorageObjectInstruction>;
10
+ copyInstruction(body: CopyWorkflowInstructionRequestBody): Observable<StorageObjectInstruction>;
11
+ insertInstruction(body: InsertWorkflowInstructionRequestBody): Observable<StorageObjectInstruction>;
12
+ unbindInstruction(body: UnbindWorkflowInstructionRequestBody): Observable<StorageObjectInstruction>;
13
+ addTransfer(body: AddArrowWorkFlowTransferRequestBody): Observable<WorkflowTransferStructure>;
14
+ updateTransfer(body: UpdateArrowWorkFlowTransferRequestBody): Observable<WorkflowTransferStructure>;
15
+ insertTransfer(arrowActionWorkFlowId: string, id: string, transferType: TransferType): Observable<WorkflowTransferStructure>;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<CuiArrowWorkFlowTransferControllerApiService, never>;
17
+ static ɵprov: i0.ɵɵInjectableDeclaration<CuiArrowWorkFlowTransferControllerApiService>;
18
+ }
@@ -1 +1,6 @@
1
1
  export { CuiInstructionsApiService } from './instructions-api.service';
2
+ export { CuiArrowWorkFlowActionsApiService } from './arrow-work-flow-actions-api.service';
3
+ export { CuiArrowWorkFlowComponentControllerApiService } from './arrow-work-flow-component-controller-api.service';
4
+ export { CuiArrowWorkFlowReadinessChecklistApiService } from './arrow-work-flow-readiness-checklist-api.service';
5
+ export { CuiArrowWorkFlowComponentStructureApiService } from './arrow-work-flow-component-structure-api.service';
6
+ export { CuiArrowWorkFlowTransferControllerApiService } from './arrow-work-flow-trasnfer-controller-api.service';
@@ -5,6 +5,14 @@ import { map } from 'rxjs';
5
5
 
6
6
  const CUI_API_URL_CONTEXT = new HttpContextToken(() => null);
7
7
 
8
+ var SubjectType;
9
+ (function (SubjectType) {
10
+ SubjectType["Material"] = "MATERIAL";
11
+ SubjectType["Part"] = "PART";
12
+ SubjectType["Tool"] = "TOOL";
13
+ SubjectType["Equipment"] = "EQUIPMENT";
14
+ })(SubjectType || (SubjectType = {}));
15
+
8
16
  class CuiSharedApiService {
9
17
  constructor() {
10
18
  this.CONTEXT_URL = "cuby-construction" /* CuiApiUrl.Construction */;
@@ -83,6 +91,10 @@ const SHARED_PROJECT_HTTP_OPTIONS = {
83
91
  context: new HttpContext().set(CUI_API_URL_CONTEXT, "cuby-project" /* CuiApiUrl.Project */)
84
92
  };
85
93
 
94
+ const SHARED_FACTORY_HTTP_OPTIONS = {
95
+ context: new HttpContext().set(CUI_API_URL_CONTEXT, "cuby-factory" /* CuiApiUrl.Factory */)
96
+ };
97
+
86
98
  const CuiStorageObjectType = {
87
99
  CREATED: 'CREATED',
88
100
  INSERTED: 'INSERTED'
@@ -526,19 +538,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
526
538
  }]
527
539
  }] });
528
540
 
541
+ var WorkflowStructureType;
542
+ (function (WorkflowStructureType) {
543
+ WorkflowStructureType["Mutable"] = "MUTABLE";
544
+ WorkflowStructureType["Imutable"] = "IMMUTABLE";
545
+ })(WorkflowStructureType || (WorkflowStructureType = {}));
546
+
547
+ var MaintainableContentType;
548
+ (function (MaintainableContentType) {
549
+ MaintainableContentType["MAINTAINABLE"] = "MAINTAINABLE";
550
+ MaintainableContentType["UNMAINTAINABLE"] = "NOT_MAINTAINABLE";
551
+ })(MaintainableContentType || (MaintainableContentType = {}));
552
+
529
553
  class CuiInstructionsApiService {
530
554
  constructor() {
531
555
  this.httpClient = inject(HttpClient);
532
556
  this.INSTRUCTION_URL = 'instruction';
533
557
  }
534
558
  changeTitle(instructionId, title) {
535
- return this.httpClient.patch(`${this.INSTRUCTION_URL}/${instructionId}/title`, {}, { params: { title } });
559
+ return this.httpClient.patch(`${this.INSTRUCTION_URL}/${instructionId}/title`, {}, { ...SHARED_FACTORY_HTTP_OPTIONS, params: { title } });
536
560
  }
537
561
  changeDescription(instructionId, shortDescription) {
538
- return this.httpClient.patch(`${this.INSTRUCTION_URL}/${instructionId}/short_description`, {}, { params: { shortDescription } });
562
+ return this.httpClient.patch(`${this.INSTRUCTION_URL}/${instructionId}/short_description`, {}, { ...SHARED_FACTORY_HTTP_OPTIONS, params: { shortDescription } });
539
563
  }
540
564
  deleteInstruction(listingInstructionId, instructionStorageId) {
541
- return this.httpClient.delete(`${this.INSTRUCTION_URL}/${listingInstructionId}/${instructionStorageId}`);
565
+ return this.httpClient.delete(`${this.INSTRUCTION_URL}/${listingInstructionId}/${instructionStorageId}`, SHARED_FACTORY_HTTP_OPTIONS);
542
566
  }
543
567
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CuiInstructionsApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
544
568
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CuiInstructionsApiService, providedIn: 'root' }); }
@@ -550,9 +574,143 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
550
574
  }]
551
575
  }] });
552
576
 
577
+ class CuiArrowWorkFlowActionsApiService {
578
+ constructor() {
579
+ this.httpClient = inject(HttpClient);
580
+ this.WORKFLOW_ACTION_URL = 'production_technology/arrow/workflow/action';
581
+ }
582
+ changeInformation(actionId, body) {
583
+ return this.httpClient.patch(`${this.WORKFLOW_ACTION_URL}/${actionId}`, body, SHARED_FACTORY_HTTP_OPTIONS);
584
+ }
585
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CuiArrowWorkFlowActionsApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
586
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CuiArrowWorkFlowActionsApiService, providedIn: 'root' }); }
587
+ }
588
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CuiArrowWorkFlowActionsApiService, decorators: [{
589
+ type: Injectable,
590
+ args: [{
591
+ providedIn: 'root'
592
+ }]
593
+ }] });
594
+
595
+ class CuiArrowWorkFlowComponentControllerApiService {
596
+ constructor() {
597
+ this.httpClient = inject(HttpClient);
598
+ this.WORKFLOW_URL = 'production_technology/arrow/workflow';
599
+ }
600
+ createComponent(arrowActionWorkFlowId, type) {
601
+ return this.httpClient.post(`${this.WORKFLOW_URL}/${arrowActionWorkFlowId}/action/${type.toLowerCase()}`, {}, SHARED_FACTORY_HTTP_OPTIONS);
602
+ }
603
+ getSuitable(arrowActionWorkFlowId, type) {
604
+ return this.httpClient.get(`${this.WORKFLOW_URL}/${arrowActionWorkFlowId}/action/${type.toLowerCase()}/suitable`, SHARED_FACTORY_HTTP_OPTIONS);
605
+ }
606
+ deleteComponent(arrowActionWorkFlowId, componentId) {
607
+ return this.httpClient.delete(`${this.WORKFLOW_URL}/${arrowActionWorkFlowId}/action/${componentId}`, SHARED_FACTORY_HTTP_OPTIONS);
608
+ }
609
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CuiArrowWorkFlowComponentControllerApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
610
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CuiArrowWorkFlowComponentControllerApiService, providedIn: 'root' }); }
611
+ }
612
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CuiArrowWorkFlowComponentControllerApiService, decorators: [{
613
+ type: Injectable,
614
+ args: [{
615
+ providedIn: 'root'
616
+ }]
617
+ }] });
618
+
619
+ class CuiArrowWorkFlowReadinessChecklistApiService {
620
+ constructor() {
621
+ this.httpClient = inject(HttpClient);
622
+ this.WORKFLOW_URL = 'production_technology/arrow/workflow';
623
+ }
624
+ createChecklist(arrowId) {
625
+ return this.httpClient.post(`${this.WORKFLOW_URL}/${arrowId}/action/checklist_readiness`, { name: 'New Checklist', shortDescription: 'Description' }, SHARED_FACTORY_HTTP_OPTIONS);
626
+ }
627
+ injectChecklist(arrowId, checklistId) {
628
+ return this.httpClient.post(`${this.WORKFLOW_URL}/${arrowId}/action/checklist_readiness/insert/${checklistId}`, {}, SHARED_FACTORY_HTTP_OPTIONS);
629
+ }
630
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CuiArrowWorkFlowReadinessChecklistApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
631
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CuiArrowWorkFlowReadinessChecklistApiService, providedIn: 'root' }); }
632
+ }
633
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CuiArrowWorkFlowReadinessChecklistApiService, decorators: [{
634
+ type: Injectable,
635
+ args: [{
636
+ providedIn: 'root'
637
+ }]
638
+ }] });
639
+
640
+ class CuiArrowWorkFlowComponentStructureApiService {
641
+ constructor() {
642
+ this.httpClient = inject(HttpClient);
643
+ this.WORKFLOW_URL = 'production_technology/arrow/workflow';
644
+ }
645
+ moveStructure(arrowActionWorkFlowId, params) {
646
+ return this.httpClient.patch(`${this.WORKFLOW_URL}/${arrowActionWorkFlowId}/action/structure/move`, {}, { ...SHARED_FACTORY_HTTP_OPTIONS, params: { ...params } });
647
+ }
648
+ deleteStructure(arrowActionWorkFlowId, type, structureId) {
649
+ return this.httpClient.delete(`${this.WORKFLOW_URL}/${arrowActionWorkFlowId}/action/${type}/structure/${structureId}`, SHARED_FACTORY_HTTP_OPTIONS);
650
+ }
651
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CuiArrowWorkFlowComponentStructureApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
652
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CuiArrowWorkFlowComponentStructureApiService, providedIn: 'root' }); }
653
+ }
654
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CuiArrowWorkFlowComponentStructureApiService, decorators: [{
655
+ type: Injectable,
656
+ args: [{
657
+ providedIn: 'root'
658
+ }]
659
+ }] });
660
+
661
+ class CuiArrowWorkFlowTransferControllerApiService {
662
+ constructor() {
663
+ this.httpClient = inject(HttpClient);
664
+ this.WORKFLOW_URL = 'production_technology/arrow/workflow';
665
+ this.TRANSFER_URL = 'action/transfer';
666
+ }
667
+ createInstruction(body) {
668
+ return this.httpClient.post(`${this.WORKFLOW_URL}/${body.arrowActionWorkFlowId}/${this.TRANSFER_URL}/instruction`, {
669
+ type_operations: "CREATE_INSTRUCTION" /* InstructionTypeOperation.Create */,
670
+ title: 'New instruction',
671
+ ...body
672
+ }, SHARED_FACTORY_HTTP_OPTIONS);
673
+ }
674
+ copyInstruction(body) {
675
+ return this.httpClient.post(`${this.WORKFLOW_URL}/${body.arrowActionWorkFlowId}/${this.TRANSFER_URL}/instruction`, {
676
+ type_operations: "COPY_SELECT_INSTRUCTION" /* InstructionTypeOperation.Copy */,
677
+ ...body
678
+ }, SHARED_FACTORY_HTTP_OPTIONS);
679
+ }
680
+ insertInstruction(body) {
681
+ return this.httpClient.post(`${this.WORKFLOW_URL}/${body.arrowActionWorkFlowId}/${this.TRANSFER_URL}/instruction`, {
682
+ type_operations: "INSERT_SELECT_INSTRUCTION" /* InstructionTypeOperation.Insert */,
683
+ ...body
684
+ }, SHARED_FACTORY_HTTP_OPTIONS);
685
+ }
686
+ unbindInstruction(body) {
687
+ return this.httpClient.post(`${this.WORKFLOW_URL}/${body.arrowActionWorkFlowId}/${this.TRANSFER_URL}/instruction`, {
688
+ type_operations: "UNBIND_SELECT_INSTRUCTION" /* InstructionTypeOperation.Unbind */,
689
+ ...body
690
+ }, SHARED_FACTORY_HTTP_OPTIONS);
691
+ }
692
+ addTransfer(body) {
693
+ return this.httpClient.patch(`${this.WORKFLOW_URL}/${this.TRANSFER_URL}`, body, SHARED_FACTORY_HTTP_OPTIONS);
694
+ }
695
+ updateTransfer(body) {
696
+ return this.httpClient.put(`${this.WORKFLOW_URL}/${this.TRANSFER_URL}/change`, body, SHARED_FACTORY_HTTP_OPTIONS);
697
+ }
698
+ insertTransfer(arrowActionWorkFlowId, id, transferType) {
699
+ return this.httpClient.patch(`${this.WORKFLOW_URL}/${arrowActionWorkFlowId}/${this.TRANSFER_URL}/insert/${id}`, {}, { ...SHARED_FACTORY_HTTP_OPTIONS, params: { transferType } });
700
+ }
701
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CuiArrowWorkFlowTransferControllerApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
702
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CuiArrowWorkFlowTransferControllerApiService, providedIn: 'root' }); }
703
+ }
704
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CuiArrowWorkFlowTransferControllerApiService, decorators: [{
705
+ type: Injectable,
706
+ args: [{
707
+ providedIn: 'root'
708
+ }]
709
+ }] });
710
+
553
711
  /**
554
712
  * Generated bundle index. Do not edit.
555
713
  */
556
714
 
557
- export { CUI_API_URL_CONTEXT, CuiCrewTemplateApiService, CuiDesignJobMainApiService, CuiDesignJobMainGroupApiService, CuiFrameApiService, CuiInstructionsApiService, CuiNodeChecklistApiService, CuiProjectApiService, CuiProjectDetailsPhaseInitApiService, CuiProjectInitPhaseApiService, CuiProjectPhaseDesignTechnologyService, CuiProjectResoursePhaseInitApiService, CuiProjectSchedulePhaseInitApiService, CuiTechnologyPhaseInitApiService, CuiTreeStructApiService, CuiTreeStructNavigatorApiService };
715
+ export { CUI_API_URL_CONTEXT, CuiArrowWorkFlowActionsApiService, CuiArrowWorkFlowComponentControllerApiService, CuiArrowWorkFlowComponentStructureApiService, CuiArrowWorkFlowReadinessChecklistApiService, CuiArrowWorkFlowTransferControllerApiService, CuiCrewTemplateApiService, CuiDesignJobMainApiService, CuiDesignJobMainGroupApiService, CuiFrameApiService, CuiInstructionsApiService, CuiNodeChecklistApiService, CuiProjectApiService, CuiProjectDetailsPhaseInitApiService, CuiProjectInitPhaseApiService, CuiProjectPhaseDesignTechnologyService, CuiProjectResoursePhaseInitApiService, CuiProjectSchedulePhaseInitApiService, CuiTechnologyPhaseInitApiService, CuiTreeStructApiService, CuiTreeStructNavigatorApiService, MaintainableContentType, SubjectType, WorkflowStructureType };
558
716
  //# sourceMappingURL=cuby-ui-api.mjs.map