@cuby-ui/api 0.0.228
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/README.md +24 -0
- package/constants/api-url.d.ts +7 -0
- package/constants/index.d.ts +4 -0
- package/constants/shared-construction-http-options.d.ts +4 -0
- package/constants/shared-project-http-options.d.ts +4 -0
- package/constants/x-ndjson-config-options.d.ts +8 -0
- package/esm2022/constants/api-url.mjs +3 -0
- package/esm2022/constants/index.mjs +4 -0
- package/esm2022/constants/shared-construction-http-options.mjs +6 -0
- package/esm2022/constants/shared-project-http-options.mjs +6 -0
- package/esm2022/constants/x-ndjson-config-options.mjs +7 -0
- package/esm2022/cuby-ui-api.mjs +5 -0
- package/esm2022/index.mjs +4 -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 +28 -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/frame-api.options.mjs +2 -0
- package/esm2022/shared/models/index.mjs +6 -0
- package/esm2022/shared/models/job.options.mjs +2 -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 +47 -0
- package/esm2022/shared/services/index.mjs +4 -0
- package/esm2022/shared/services/shared-api.service.mjs +24 -0
- package/esm2022/shared/services/tree-struct-api.service.mjs +33 -0
- package/esm2022/shared/services/tree-struct-navigator-api.service.mjs +56 -0
- package/esm2022/tokens/api-url-context.mjs +3 -0
- package/esm2022/tokens/index.mjs +2 -0
- package/fesm2022/cuby-ui-api.mjs +470 -0
- package/fesm2022/cuby-ui-api.mjs.map +1 -0
- package/index.d.ts +4 -0
- package/package.json +27 -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/frame-api.options.d.ts +22 -0
- package/shared/models/index.d.ts +5 -0
- package/shared/models/job.options.d.ts +62 -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 +14 -0
- package/shared/services/frame-api.service.d.ts +19 -0
- package/shared/services/index.d.ts +3 -0
- package/shared/services/shared-api.service.d.ts +12 -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 +2 -0
- package/tokens/index.d.ts +1 -0
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import type { CuiNullable } from '@cuby-ui/cdk';
|
|
2
|
+
export interface Group extends SimpleGroup {
|
|
3
|
+
readonly jtext: string;
|
|
4
|
+
readonly structure: GroupBox[];
|
|
5
|
+
}
|
|
6
|
+
export interface GroupPart extends SimpleGroup {
|
|
7
|
+
readonly sizeStructure?: number;
|
|
8
|
+
}
|
|
9
|
+
export interface SimpleGroup {
|
|
10
|
+
readonly id: string;
|
|
11
|
+
readonly name: string;
|
|
12
|
+
readonly attributes: Record<string, string>;
|
|
13
|
+
readonly componentType: string;
|
|
14
|
+
}
|
|
15
|
+
export interface GroupBox extends GroupBoxPart {
|
|
16
|
+
readonly id: string;
|
|
17
|
+
readonly contentType: string;
|
|
18
|
+
readonly quantumFormalizations: GroupBoxFormalization[];
|
|
19
|
+
}
|
|
20
|
+
export interface GroupBoxPart {
|
|
21
|
+
readonly subjectElement: GroupBoxSubject;
|
|
22
|
+
readonly contentQuantumId: string;
|
|
23
|
+
}
|
|
24
|
+
export type GroupSubjectType = 'MATERIAL' | 'PART';
|
|
25
|
+
export interface GroupBoxSubject {
|
|
26
|
+
readonly itemId: string;
|
|
27
|
+
readonly contentType: GroupSubjectType;
|
|
28
|
+
}
|
|
29
|
+
export interface GroupBoxFormalization {
|
|
30
|
+
readonly id?: string;
|
|
31
|
+
readonly quantumId: string;
|
|
32
|
+
readonly specification?: GroupBoxSpecification;
|
|
33
|
+
}
|
|
34
|
+
export interface GroupBoxSpecification {
|
|
35
|
+
readonly parameter: GroupBoxSpecificationParameter;
|
|
36
|
+
}
|
|
37
|
+
export interface GroupBoxSpecificationParameter {
|
|
38
|
+
readonly fileDXF: CuiNullable<File>;
|
|
39
|
+
readonly size: CuiNullable<number>;
|
|
40
|
+
readonly quantity: CuiNullable<number>;
|
|
41
|
+
}
|
|
42
|
+
export interface AddGroupBoxFormalizationRequestParams extends FormalizationRequestIds {
|
|
43
|
+
readonly quantumId: string;
|
|
44
|
+
readonly body: GroupBoxRequestSpecification;
|
|
45
|
+
}
|
|
46
|
+
export interface UpdateGroupBoxFormalizationRequestParams extends FormalizationRequestIds {
|
|
47
|
+
readonly formalizationId: string;
|
|
48
|
+
readonly body: GroupBoxRequestSpecification;
|
|
49
|
+
}
|
|
50
|
+
export interface DeleteGroupBoxFormalizationRequestParams extends FormalizationRequestIds {
|
|
51
|
+
readonly formalizationId: string;
|
|
52
|
+
}
|
|
53
|
+
export interface FormalizationRequestIds {
|
|
54
|
+
readonly phaseId: string;
|
|
55
|
+
readonly jobId: string;
|
|
56
|
+
readonly groupId: string;
|
|
57
|
+
readonly boxId: string;
|
|
58
|
+
}
|
|
59
|
+
export interface GroupBoxRequestSpecification {
|
|
60
|
+
readonly parameter: GroupBoxRequestSpecificationParameter;
|
|
61
|
+
readonly fileDXF: CuiNullable<File>;
|
|
62
|
+
}
|
|
63
|
+
export interface GroupBoxRequestSpecificationParameter {
|
|
64
|
+
readonly size: CuiNullable<number>;
|
|
65
|
+
readonly quantity: number;
|
|
66
|
+
readonly type_operations: FormalizationTypeOperations;
|
|
67
|
+
}
|
|
68
|
+
export declare const enum FormalizationTypeOperations {
|
|
69
|
+
PART = "PART_QUANTUM_FORMALIZATION",
|
|
70
|
+
MATERIAL = "MATERIAL_QUANTUM_FORMALIZATION"
|
|
71
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './design-job-main-api.options';
|
|
2
|
+
export * from './design-job-main-group-api.options';
|
|
3
|
+
export * from './project-api.options';
|
|
4
|
+
export * from './project-details-phase-init-api.options';
|
|
5
|
+
export * from './project-init-phase-api.options';
|
|
6
|
+
export * from './project-phase-design-technology-api.options';
|
|
7
|
+
export * from './project-resource-phase-init-api.options';
|
|
8
|
+
export * from './project-schedule-phase-init-api.options';
|
|
9
|
+
export * from './technology-phase-init-api.options';
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import type { ProjectDetailsPhase, ProjectInitPhases } from './project-init-phase-api.options';
|
|
2
|
+
import type { TechnologyPhaseRules } from './technology-phase-init-api.options';
|
|
3
|
+
export declare const enum ProjectTypeOperations {
|
|
4
|
+
create = "CREATE_PROJECT"
|
|
5
|
+
}
|
|
6
|
+
export declare const enum ProjectPhases {
|
|
7
|
+
Init = "INIT",
|
|
8
|
+
Design = "DESIGN",
|
|
9
|
+
Preparation = "PREPARATION_FOR_CONSTRUCTION",
|
|
10
|
+
Construction = "CONSTRUCTION"
|
|
11
|
+
}
|
|
12
|
+
export interface CreateProjectRequestBody {
|
|
13
|
+
readonly title: string;
|
|
14
|
+
readonly storageNodeId: string;
|
|
15
|
+
}
|
|
16
|
+
export interface Project {
|
|
17
|
+
readonly id: string;
|
|
18
|
+
readonly title: string;
|
|
19
|
+
readonly currentPhase: SimpleProjectPhase;
|
|
20
|
+
}
|
|
21
|
+
export interface SimpleProjectPhase<T = ProjectPhases> {
|
|
22
|
+
readonly id: string;
|
|
23
|
+
readonly type: T;
|
|
24
|
+
}
|
|
25
|
+
export interface ProjectPhase<T = ProjectPhaseContent> {
|
|
26
|
+
readonly id: string;
|
|
27
|
+
readonly projectId: string;
|
|
28
|
+
readonly type: ProjectPhases;
|
|
29
|
+
readonly content: T;
|
|
30
|
+
}
|
|
31
|
+
export interface ProjectPhaseContent {
|
|
32
|
+
readonly timeCreated: string;
|
|
33
|
+
readonly isCompleted: boolean;
|
|
34
|
+
}
|
|
35
|
+
export interface ProjectInitPhase {
|
|
36
|
+
readonly id: string;
|
|
37
|
+
readonly projectId: string;
|
|
38
|
+
readonly type: ProjectPhases.Init;
|
|
39
|
+
readonly content: ProjectInitPhaseContent;
|
|
40
|
+
}
|
|
41
|
+
export interface ProjectDesignPhase {
|
|
42
|
+
readonly id: string;
|
|
43
|
+
readonly projectId: string;
|
|
44
|
+
readonly type: ProjectPhases.Design;
|
|
45
|
+
readonly content: ProjectDesignPhaseContent;
|
|
46
|
+
}
|
|
47
|
+
export interface ProjectInitPhaseContent extends ProjectPhaseContent {
|
|
48
|
+
readonly components: ProjectInitComponents[];
|
|
49
|
+
}
|
|
50
|
+
export interface ProjectDesignPhaseContent extends ProjectPhaseContent {
|
|
51
|
+
readonly phaseInitializationId: string;
|
|
52
|
+
}
|
|
53
|
+
export type ProjectInitComponents = ProjectDetailsPhase | ProjectLinkTechnologyPhase | ProjectHomeProduserPhase | ProjectResourceManagmentPhase;
|
|
54
|
+
export interface ProjectLinkTechnologyPhase {
|
|
55
|
+
readonly id: string;
|
|
56
|
+
readonly type: ProjectInitPhases.LinkTechnology;
|
|
57
|
+
readonly constructionTechnologyId: string;
|
|
58
|
+
readonly stageRules: TechnologyRule[];
|
|
59
|
+
}
|
|
60
|
+
export interface TechnologyRule {
|
|
61
|
+
readonly id: string;
|
|
62
|
+
readonly key: string;
|
|
63
|
+
readonly rulesType: TechnologyPhaseRules;
|
|
64
|
+
readonly stageId: string;
|
|
65
|
+
readonly taskId: string;
|
|
66
|
+
}
|
|
67
|
+
export interface ProjectHomeProduserPhase {
|
|
68
|
+
readonly id: string;
|
|
69
|
+
readonly type: ProjectInitPhases.HomeProducer;
|
|
70
|
+
readonly homeProviderId: string;
|
|
71
|
+
}
|
|
72
|
+
export interface ProjectResourceManagmentPhase {
|
|
73
|
+
readonly id: string;
|
|
74
|
+
readonly type: ProjectInitPhases.ConstructionResourseManagment;
|
|
75
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ProjectCoordinates } from './project-init-phase-api.options';
|
|
2
|
+
export interface ProjectAddressDetailsRequestBody {
|
|
3
|
+
readonly address: string;
|
|
4
|
+
readonly mapsLink: string;
|
|
5
|
+
readonly addressGps: ProjectCoordinates;
|
|
6
|
+
readonly polygonGPSCoordinate: ProjectCoordinates[];
|
|
7
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export declare const enum ProjectInitPhases {
|
|
2
|
+
Details = "PROJECT_DETAILS",
|
|
3
|
+
LinkTechnology = "LINK_TECHNOLOGY",
|
|
4
|
+
HomeProducer = "HOME_PRODUCER",
|
|
5
|
+
ConstructionResourseManagment = "CONSTRUCTION_RESOURCE_MANAGEMENT",
|
|
6
|
+
Schedule = "SCHEDULE"
|
|
7
|
+
}
|
|
8
|
+
export declare const enum ProjectInitPhaseIndex {
|
|
9
|
+
Details = 0,
|
|
10
|
+
LinkTechnology = 1,
|
|
11
|
+
HomeProducer = 2,
|
|
12
|
+
ConstructionResourseManagment = 3
|
|
13
|
+
}
|
|
14
|
+
export interface ProjectDetailsPhase {
|
|
15
|
+
readonly id: string;
|
|
16
|
+
readonly type: ProjectInitPhases.Details;
|
|
17
|
+
readonly address: ProjectDetailsAddress;
|
|
18
|
+
readonly jdescription: string;
|
|
19
|
+
}
|
|
20
|
+
export interface ProjectDetailsAddress {
|
|
21
|
+
readonly address: string;
|
|
22
|
+
readonly mapsLink: string;
|
|
23
|
+
readonly addressGps: ProjectCoordinates;
|
|
24
|
+
readonly polygonGPSCoordinate: ProjectCoordinates[];
|
|
25
|
+
}
|
|
26
|
+
export interface ProjectCoordinates {
|
|
27
|
+
readonly x: number;
|
|
28
|
+
readonly y: number;
|
|
29
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { CuiNullable } from '@cuby-ui/cdk';
|
|
2
|
+
import { FrameActivity, Job, JobContent, JobContentStructureType, SimpleMainJob, TreeStruct } from '../../shared';
|
|
3
|
+
export type ProjectStageStruct = TreeStruct<SimpleMainJob<ProjectStageActivity>>;
|
|
4
|
+
export interface ProjectStageExtendedActivity extends FrameActivity<ProjectStageExtendedActivityWorks> {
|
|
5
|
+
readonly constructionTechnologyId: string;
|
|
6
|
+
readonly phaseDesignId: string;
|
|
7
|
+
readonly projectId: string;
|
|
8
|
+
}
|
|
9
|
+
export interface ProjectStageExtendedActivityWorks {
|
|
10
|
+
readonly MAIN_WORKS: Job<ProjectStageMainJobContent>[];
|
|
11
|
+
}
|
|
12
|
+
export interface ProjectStageActivity {
|
|
13
|
+
readonly stageDesignContext: ProjectDesignContent;
|
|
14
|
+
readonly contentStage: ProjectStageContent;
|
|
15
|
+
}
|
|
16
|
+
export interface ProjectDesignContent {
|
|
17
|
+
readonly stageDesignContextType: DesignContextType;
|
|
18
|
+
readonly isDesignComplete: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface ProjectStageContent extends FrameActivity {
|
|
21
|
+
readonly utilityId: CuiNullable<string>;
|
|
22
|
+
}
|
|
23
|
+
export interface ProjectStageMainJobContent extends JobContentStructureType {
|
|
24
|
+
readonly stageDesignContext: ProjectDesignContent;
|
|
25
|
+
readonly contentJob: ProjectStageMainJobContentJob;
|
|
26
|
+
}
|
|
27
|
+
export interface ProjectStageMainJobContentJob extends JobContent {
|
|
28
|
+
readonly correctionTasks: string[];
|
|
29
|
+
}
|
|
30
|
+
export declare const enum DesignContextType {
|
|
31
|
+
Complete = "DESIGN_COMPLETE",
|
|
32
|
+
Exclude = "DESIGN_EXCLUDE"
|
|
33
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export interface ProjectResourceRequestBody {
|
|
2
|
+
readonly phaseInitId: string;
|
|
3
|
+
readonly crewTemplate: ProjectResourceTemplateRequestBody;
|
|
4
|
+
}
|
|
5
|
+
export type ProjectResourceTemplateRequestBody = Omit<ProjectResourceTemplatePart, 'id'>;
|
|
6
|
+
export interface ProjectResourceTemplatePart {
|
|
7
|
+
readonly id: string;
|
|
8
|
+
readonly crewId: string;
|
|
9
|
+
readonly crewRoleParticipants: ProjectCrewRoleParticipant[];
|
|
10
|
+
readonly schedule?: ProjectResourceSchedule;
|
|
11
|
+
}
|
|
12
|
+
export interface ProjectResourceSchedule {
|
|
13
|
+
readonly builderCrewId: string;
|
|
14
|
+
readonly scheduleId: string;
|
|
15
|
+
readonly scheduleType: string;
|
|
16
|
+
}
|
|
17
|
+
export interface ProjectResourceTemplate extends ProjectResourceTemplatePart {
|
|
18
|
+
readonly projectId: string;
|
|
19
|
+
readonly phaseInitId: string;
|
|
20
|
+
}
|
|
21
|
+
export interface CreateProjectResourceResponse {
|
|
22
|
+
readonly builderCrews: [string];
|
|
23
|
+
}
|
|
24
|
+
export interface ProjectCrewRoleParticipant {
|
|
25
|
+
readonly roleCrewId: string;
|
|
26
|
+
readonly workerUserId: string;
|
|
27
|
+
}
|
|
28
|
+
export declare const enum ProjectResourceTypeOperations {
|
|
29
|
+
Create = "CONSTRUCTION_RESOURCE_CREW_OPERATION_CREATE",
|
|
30
|
+
Update = "CONSTRUCTION_RESOURCE_CREW_OPERATION_TEMPLATE"
|
|
31
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface ApplyCrewScheduleRequestBody {
|
|
2
|
+
readonly builderCrewId: string;
|
|
3
|
+
readonly scheduleId: string;
|
|
4
|
+
readonly startingFromData: string;
|
|
5
|
+
readonly type_operations: CrewScheduleTypeOperations;
|
|
6
|
+
}
|
|
7
|
+
export declare const enum CrewScheduleTypeOperations {
|
|
8
|
+
Weekly = "WEEKLY_SCHEDULE",
|
|
9
|
+
Rotating = "ROTATING_SCHEDULE"
|
|
10
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Observable } from 'rxjs';
|
|
2
|
+
import type { ProjectResourceTemplate, ProjectResourceTemplateRequestBody } from '../models';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CuiCrewTemplateApiService {
|
|
5
|
+
private readonly httpClient;
|
|
6
|
+
private readonly CREW_TEMPLATE_URL;
|
|
7
|
+
getCrewTemplates(crewId: string): Observable<ProjectResourceTemplate>;
|
|
8
|
+
createTemplate(body: ProjectResourceTemplateRequestBody): Observable<ProjectResourceTemplate[]>;
|
|
9
|
+
getTemplateById(templateId: string): Observable<ProjectResourceTemplate>;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CuiCrewTemplateApiService, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CuiCrewTemplateApiService>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Observable } from 'rxjs';
|
|
2
|
+
import type { ProjectMainJobContent } from '../models';
|
|
3
|
+
import type { Job } from '../../shared';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class CuiDesignJobMainApiService {
|
|
6
|
+
private readonly httpClient;
|
|
7
|
+
private readonly PROJECT_STAGE_URL;
|
|
8
|
+
getTask(phaseId: string, activityId: string, taskId: string): Observable<Job<ProjectMainJobContent>>;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CuiDesignJobMainApiService, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CuiDesignJobMainApiService>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { Observable } from 'rxjs';
|
|
2
|
+
import type { AddGroupBoxFormalizationRequestParams, DeleteGroupBoxFormalizationRequestParams, Group, GroupBox, GroupBoxFormalization, GroupBoxPart, UpdateGroupBoxFormalizationRequestParams } from '../models';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CuiDesignJobMainGroupApiService {
|
|
5
|
+
private readonly httpClient;
|
|
6
|
+
private readonly DESIGN_URL;
|
|
7
|
+
private readonly JOB_GROUP_URL;
|
|
8
|
+
changeName(jobId: string, groupId: string, name: string): Observable<void>;
|
|
9
|
+
getGroup(phaseId: string, jobId: string, groupId: string): Observable<Group>;
|
|
10
|
+
createGroup(phaseId: string, jobId: string): Observable<Group>;
|
|
11
|
+
deleteGroup(phaseId: string, jobId: string, groupId: string): Observable<void>;
|
|
12
|
+
addGroupBox(phaseId: string, jobId: string, groupId: string, body: GroupBoxPart): Observable<GroupBox>;
|
|
13
|
+
addFormalization(params: AddGroupBoxFormalizationRequestParams): Observable<GroupBoxFormalization>;
|
|
14
|
+
updateFormalization(params: UpdateGroupBoxFormalizationRequestParams): Observable<GroupBoxFormalization>;
|
|
15
|
+
deleteFormalization(params: DeleteGroupBoxFormalizationRequestParams): Observable<void>;
|
|
16
|
+
deleteGroupBox(phaseId: string, jobId: string, groupId: string, boxId: string): Observable<void>;
|
|
17
|
+
private getFormalizationFormData;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CuiDesignJobMainGroupApiService, never>;
|
|
19
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CuiDesignJobMainGroupApiService>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { CuiCrewTemplateApiService } from './crew-template-api.service';
|
|
2
|
+
export { CuiDesignJobMainApiService } from './design-job-main-api.service';
|
|
3
|
+
export { CuiDesignJobMainGroupApiService } from './design-job-main-group-api.service';
|
|
4
|
+
export { CuiProjectApiService } from './project-api.service';
|
|
5
|
+
export { CuiProjectDetailsPhaseInitApiService } from './project-details-phase-init-api.service';
|
|
6
|
+
export { CuiProjectInitPhaseApiService } from './project-init-phase-api.service';
|
|
7
|
+
export { CuiProjectPhaseDesignTechnologyService } from './project-phase-design-technology-api.service';
|
|
8
|
+
export { CuiProjectResoursePhaseInitApiService } from './project-resource-phase-init-api.service';
|
|
9
|
+
export { CuiProjectSchedulePhaseInitApiService } from './project-schedule-phase-init-api.service';
|
|
10
|
+
export { CuiTechnologyPhaseInitApiService } from './technology-phase-init-api.service';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type Observable } from 'rxjs';
|
|
2
|
+
import { CreateProjectRequestBody, Project, ProjectPhase, ProjectPhaseContent, ProjectPhases } from '../models';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CuiProjectApiService {
|
|
5
|
+
private readonly httpClient;
|
|
6
|
+
private readonly PROJECT_URL;
|
|
7
|
+
getProject(id: string): Observable<Project>;
|
|
8
|
+
getProjects(): Observable<Project[]>;
|
|
9
|
+
changePhase(projectId: string, type: ProjectPhases): Observable<ProjectPhase>;
|
|
10
|
+
getProjectPhase<T = ProjectPhaseContent>(phaseId: string): Observable<ProjectPhase<T>>;
|
|
11
|
+
updateTitle(id: string, title: string): Observable<void>;
|
|
12
|
+
createProject(body: CreateProjectRequestBody): Observable<Project>;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CuiProjectApiService, never>;
|
|
14
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CuiProjectApiService>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Observable } from 'rxjs';
|
|
2
|
+
import type { ProjectAddressDetailsRequestBody } from '../models';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CuiProjectDetailsPhaseInitApiService {
|
|
5
|
+
private readonly httpClient;
|
|
6
|
+
private readonly PROJECT_INIT_PHASE_URL;
|
|
7
|
+
setAddress(phaseId: string, body: ProjectAddressDetailsRequestBody): Observable<void>;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CuiProjectDetailsPhaseInitApiService, never>;
|
|
9
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CuiProjectDetailsPhaseInitApiService>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Observable } from 'rxjs';
|
|
2
|
+
import type { ProjectInitComponents, ProjectInitPhases } from '../models';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CuiProjectInitPhaseApiService {
|
|
5
|
+
private readonly httpClient;
|
|
6
|
+
private readonly PROJECT_INIT_PHASE_URL;
|
|
7
|
+
changePhase(initPhaseId: string, type: ProjectInitPhases): Observable<ProjectInitComponents>;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CuiProjectInitPhaseApiService, never>;
|
|
9
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CuiProjectInitPhaseApiService>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Observable } from 'rxjs';
|
|
2
|
+
import type { ProjectStageExtendedActivity, ProjectStageStruct } from '../models';
|
|
3
|
+
import { SimpleMainJob } from '../../shared';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class CuiProjectPhaseDesignTechnologyService {
|
|
6
|
+
private readonly httpClient;
|
|
7
|
+
private readonly DESIGN_PAHASE_URL;
|
|
8
|
+
getTechnologyStages(phaseId: string): Observable<ProjectStageStruct>;
|
|
9
|
+
getStage(phaseId: string, stageActivityId: string): Observable<SimpleMainJob<ProjectStageExtendedActivity>>;
|
|
10
|
+
getStageChildren(phaseId: string, stageId: string): Observable<ProjectStageStruct>;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CuiProjectPhaseDesignTechnologyService, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CuiProjectPhaseDesignTechnologyService>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type Observable } from 'rxjs';
|
|
2
|
+
import { ProjectCrewRoleParticipant, ProjectResourceRequestBody, ProjectResourceTemplate } from '../models';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CuiProjectResoursePhaseInitApiService {
|
|
5
|
+
private readonly httpClient;
|
|
6
|
+
private readonly PROJECT_RESOURCE_URL;
|
|
7
|
+
createCrewTemplate(body: ProjectResourceRequestBody): Observable<string>;
|
|
8
|
+
replaceCrewTemplate(phaseInitId: string, crewTemplateId: string): Observable<string>;
|
|
9
|
+
updateCrewTemplate(phaseId: string, builderId: string, body: ProjectCrewRoleParticipant): Observable<void>;
|
|
10
|
+
getCrewTemplates(phaseId: string): Observable<ProjectResourceTemplate[]>;
|
|
11
|
+
deleteCrewTemplate(phaseId: string, builderCrewId: string): Observable<void>;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CuiProjectResoursePhaseInitApiService, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CuiProjectResoursePhaseInitApiService>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Observable } from 'rxjs';
|
|
2
|
+
import type { ProjectResourceTemplate, ApplyCrewScheduleRequestBody } from '../models';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CuiProjectSchedulePhaseInitApiService {
|
|
5
|
+
private readonly httpClient;
|
|
6
|
+
private readonly PROJECT_INIT_URL;
|
|
7
|
+
applySchedule(phaseId: string, body: ApplyCrewScheduleRequestBody): Observable<ProjectResourceTemplate>;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CuiProjectSchedulePhaseInitApiService, never>;
|
|
9
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CuiProjectSchedulePhaseInitApiService>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Observable } from 'rxjs';
|
|
2
|
+
import { TechnologyRule } from '../models';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CuiTechnologyPhaseInitApiService {
|
|
5
|
+
private readonly httpClient;
|
|
6
|
+
private readonly PROJECT_INIT_PHASE_URL;
|
|
7
|
+
setTechnology(id: string, technologyId: string): Observable<void>;
|
|
8
|
+
addStageRule(phaseId: string, stageId: string): Observable<TechnologyRule>;
|
|
9
|
+
addTaskRule(phaseId: string, stageId: string, taskId: string): Observable<TechnologyRule>;
|
|
10
|
+
deleteRule(phaseId: string, technologyId: string, stageRulesId: string): Observable<void>;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CuiTechnologyPhaseInitApiService, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CuiTechnologyPhaseInitApiService>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { CuiNullable } from '@cuby-ui/cdk';
|
|
2
|
+
export interface Frame {
|
|
3
|
+
id: string;
|
|
4
|
+
fragments: Fragment[];
|
|
5
|
+
}
|
|
6
|
+
export type Fragment = JTextFragment | ResourceFragment;
|
|
7
|
+
export declare const enum FragmentType {
|
|
8
|
+
jText = "J_TEXT",
|
|
9
|
+
resourceFile = "RESOURCE_FILE"
|
|
10
|
+
}
|
|
11
|
+
export interface JTextFragment {
|
|
12
|
+
readonly id: string;
|
|
13
|
+
readonly type: FragmentType.jText;
|
|
14
|
+
readonly notEmpty: boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface ResourceFragment {
|
|
17
|
+
readonly id: string;
|
|
18
|
+
readonly type: FragmentType.resourceFile;
|
|
19
|
+
readonly name: CuiNullable<string>;
|
|
20
|
+
readonly fileId: CuiNullable<string>;
|
|
21
|
+
readonly resource: CuiNullable<string>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import type { CuiNullable } from '@cuby-ui/cdk';
|
|
2
|
+
export declare const enum JobStructureType {
|
|
3
|
+
Simple = "SIMPLE",
|
|
4
|
+
Parallel = "PARALLEL"
|
|
5
|
+
}
|
|
6
|
+
export declare const enum JobType {
|
|
7
|
+
JobAction = "JOB_ACTION",
|
|
8
|
+
JobMain = "JOB_MAIN",
|
|
9
|
+
JobApproval = "JOB_APPROVAL",
|
|
10
|
+
JobEvaluation = "JOB_EVALUATION",
|
|
11
|
+
JobCorrective = "JOB_CORRECTIVE_MAIN_TASK"
|
|
12
|
+
}
|
|
13
|
+
export interface Job<T extends JobContentStructureType = JobContentStructureType> {
|
|
14
|
+
readonly id: string;
|
|
15
|
+
readonly title: string;
|
|
16
|
+
readonly type: JobType;
|
|
17
|
+
readonly textContainerId: string;
|
|
18
|
+
readonly content: T;
|
|
19
|
+
}
|
|
20
|
+
export interface SimpleMainJob<T = FrameActivity> {
|
|
21
|
+
readonly frameActivity: T;
|
|
22
|
+
readonly id: string;
|
|
23
|
+
readonly textContainerId: CuiNullable<string>;
|
|
24
|
+
readonly typeHandler: string;
|
|
25
|
+
}
|
|
26
|
+
export interface WorkTypes {
|
|
27
|
+
readonly APPROVAL_WORKS: string;
|
|
28
|
+
readonly MAIN_WORKS: string;
|
|
29
|
+
readonly PREPARATORY_WORKS: string;
|
|
30
|
+
}
|
|
31
|
+
export interface FrameActivity<T = WorkTypes> {
|
|
32
|
+
readonly works: T;
|
|
33
|
+
readonly carrierStageTreeStructId: string;
|
|
34
|
+
readonly expansionShiftJobId: string;
|
|
35
|
+
}
|
|
36
|
+
export interface JobContentStructureType {
|
|
37
|
+
readonly structureType: JobStructureType;
|
|
38
|
+
readonly jobs?: Job[];
|
|
39
|
+
}
|
|
40
|
+
export interface JobContent {
|
|
41
|
+
readonly components: JobContentComponents;
|
|
42
|
+
readonly containersQuantum: string[];
|
|
43
|
+
readonly divideTask: string;
|
|
44
|
+
readonly isGenerateSegmentWithOneQuantum: boolean;
|
|
45
|
+
readonly structureType: string;
|
|
46
|
+
readonly estimatedTime: string;
|
|
47
|
+
readonly type: string;
|
|
48
|
+
readonly treeStructId: string;
|
|
49
|
+
}
|
|
50
|
+
export interface JobContentComponents {
|
|
51
|
+
readonly TASK_EVALUATION_COMPONENT: JobContentPart;
|
|
52
|
+
readonly CHECKLIST_ACTIONS_STRUCT_NAVIGATION: JobContentPart;
|
|
53
|
+
readonly CHECKLIST_ACTIONS: JobContentPart;
|
|
54
|
+
readonly TEAM_COMPONENT: JobContentPart;
|
|
55
|
+
readonly PREPARATORY_STEPS: JobContentPart;
|
|
56
|
+
readonly QUANTUM: JobContentPart;
|
|
57
|
+
readonly CHECKLIST_EVALUATION: JobContentPart;
|
|
58
|
+
}
|
|
59
|
+
export interface JobContentPart {
|
|
60
|
+
readonly id: string;
|
|
61
|
+
readonly componentId: string;
|
|
62
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const enum MovingType {
|
|
2
|
+
TARGET_TREE_STRUCT = "MOVING_TARGET_TREE_STRUCT",
|
|
3
|
+
TARGET_NODE = "MOVING_TARGET_ITEM",
|
|
4
|
+
SINGLE_TARGET_TREE_STRUCT = "MOVING_SINGLE_TARGET_TREE_STRUCT"
|
|
5
|
+
}
|
|
6
|
+
export type MovingRequestBody = MovingTargetTreeStructRequestBody | MovingTargetNodeRequestBody;
|
|
7
|
+
export interface MovingTargetTreeStructRequestBody {
|
|
8
|
+
readonly type: MovingType.TARGET_TREE_STRUCT;
|
|
9
|
+
readonly movableItemId: string;
|
|
10
|
+
readonly treeStructMovableItemId: string;
|
|
11
|
+
readonly treeStructTargetItemId: string;
|
|
12
|
+
}
|
|
13
|
+
export interface MovingTargetNodeRequestBody {
|
|
14
|
+
readonly type: MovingType.TARGET_NODE;
|
|
15
|
+
readonly movableItemId: string;
|
|
16
|
+
readonly treeStructMovableItemId: string;
|
|
17
|
+
readonly targetItemId: string;
|
|
18
|
+
readonly treeStructTargetItemId: string;
|
|
19
|
+
readonly pointer: MovingTargetNodePointer;
|
|
20
|
+
}
|
|
21
|
+
export type MovingTargetNodePointer = 'BEFORE' | 'AFTER';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const enum TreeStructType {
|
|
2
|
+
Stage = "STAGE_STORAGE",
|
|
3
|
+
Quant = "QUANTUM_STORAGE",
|
|
4
|
+
Operation = "OPERATION_STORAGE",
|
|
5
|
+
Criteria = "CRITERION_STORAGE",
|
|
6
|
+
Instruction = "INSTRUCTION_STORAGE",
|
|
7
|
+
Evaluation = "JOB_STORAGE_EVALUATION",
|
|
8
|
+
Shift = "JOB_STORAGE_ACTION",
|
|
9
|
+
Project = "PROJECT_STORAGE"
|
|
10
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Job } from './job.options';
|
|
2
|
+
export interface TreeStructBase {
|
|
3
|
+
readonly id: string;
|
|
4
|
+
readonly title: string;
|
|
5
|
+
readonly description?: string;
|
|
6
|
+
readonly ancestors: [TreeStructAncestor, ...TreeStructAncestor[]];
|
|
7
|
+
}
|
|
8
|
+
export interface TreeStruct<T = Job> extends TreeStructBase {
|
|
9
|
+
readonly elements: T[];
|
|
10
|
+
readonly children: TreeStruct<T>[] | string[];
|
|
11
|
+
}
|
|
12
|
+
export interface TreeStructAncestor {
|
|
13
|
+
readonly id: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Observable } from 'rxjs';
|
|
2
|
+
import type { Fragment, Frame, FragmentType } from '../models/frame-api.options';
|
|
3
|
+
import { CuiSharedApiService } from './shared-api.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class CuiFrameApiService extends CuiSharedApiService {
|
|
6
|
+
private readonly http;
|
|
7
|
+
private readonly FRAMER_URL;
|
|
8
|
+
private readonly FRAGMENT_URL;
|
|
9
|
+
getFrame(frameId: string): Observable<Frame>;
|
|
10
|
+
createFrame(): Observable<string>;
|
|
11
|
+
createFragment(frameId: string, type: FragmentType): Observable<Fragment>;
|
|
12
|
+
deleteFragment(frameId: string, fragmentId: string): Observable<void>;
|
|
13
|
+
uploadResource(body: FormData, frameId: string, fragmentId: string): Observable<{
|
|
14
|
+
resource: string;
|
|
15
|
+
}>;
|
|
16
|
+
deleteResource(frameId: string, fragmentId: string): Observable<void>;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CuiFrameApiService, never>;
|
|
18
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CuiFrameApiService>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { HttpContext } from '@angular/common/http';
|
|
2
|
+
import { CuiApiUrl } from '../../constants';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CuiSharedApiService {
|
|
5
|
+
private CONTEXT_URL;
|
|
6
|
+
protected readonly SHARED_HTTP_OPTIONS: {
|
|
7
|
+
context: HttpContext;
|
|
8
|
+
};
|
|
9
|
+
setContextUrl(context: CuiApiUrl): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CuiSharedApiService, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CuiSharedApiService>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Observable } from 'rxjs';
|
|
2
|
+
import { Job, TreeStruct } from '../models';
|
|
3
|
+
import { CuiSharedApiService } from './shared-api.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class CuiTreeStructApiService extends CuiSharedApiService {
|
|
6
|
+
private readonly httpClient;
|
|
7
|
+
private readonly TREE_STRUCT_URL;
|
|
8
|
+
getById<T = Job>(id: string): Observable<TreeStruct<T>>;
|
|
9
|
+
getStageStoragesByParent<T = Job>(parentId: string): Observable<TreeStruct<T>>;
|
|
10
|
+
deleteTreeStructElement(treeStructId: string, elementId: string): Observable<void>;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CuiTreeStructApiService, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CuiTreeStructApiService>;
|
|
13
|
+
}
|