@cuby-ui/api 0.0.539 → 0.0.541

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cuby-ui/api",
3
- "version": "0.0.539",
3
+ "version": "0.0.541",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=18.0.0",
6
6
  "@angular/core": ">=18.0.0",
@@ -7,3 +7,4 @@ export * from './project-phase-design-technology-api.options';
7
7
  export * from './project-resource-phase-init-api.options';
8
8
  export * from './project-schedule-phase-init-api.options';
9
9
  export * from './technology-phase-init-api.options';
10
+ export * from './node-check-list-formalization-api.options';
@@ -0,0 +1,102 @@
1
+ import type { CuiNullable } from '@cuby-ui/cdk';
2
+ export interface ChecklistFormalizationDto {
3
+ readonly id: string;
4
+ readonly nodeCheckListFormalizations: NodeCheckListFormalizationDto[];
5
+ }
6
+ export interface NodeCheckListFormalizationDto {
7
+ readonly id: string;
8
+ readonly title: string;
9
+ readonly textContainerId: string;
10
+ readonly personalActions: NodeCheckListPersonalActionDto;
11
+ readonly checkListType: ChecklistType;
12
+ }
13
+ export interface NodeCheckListPersonalActionDto {
14
+ readonly ASSIGN: CuiNullable<ActionsAssigneeDto>;
15
+ readonly APPROVE: CuiNullable<ActionsApproveDto>;
16
+ }
17
+ export interface ActionsAssigneeDto {
18
+ readonly contents: ActionContentDto[];
19
+ readonly answer: CuiNullable<ChecklistAnswerDto>;
20
+ }
21
+ export interface ActionsApproveDto {
22
+ readonly contents: ButtonActionContentDto[];
23
+ readonly answer: CuiNullable<ChecklistAnswerDto>;
24
+ }
25
+ export type ActionContentDto = ListEvaluationActionContentDto | ButtonActionContentDto;
26
+ export interface ActionContentBaseDto {
27
+ readonly id: string;
28
+ readonly actions: ActionDto[];
29
+ readonly actionType: ChecklistActionType;
30
+ }
31
+ export interface ListEvaluationActionContentDto extends ActionContentBaseDto {
32
+ readonly actionType: ChecklistActionType.ListEvaluation;
33
+ readonly acceptanceCriteriaEvaluations: AcceptanceCriteriaEvaluationDto[];
34
+ }
35
+ export interface ButtonActionContentDto extends ActionContentBaseDto {
36
+ readonly title: string;
37
+ readonly considerCorrect: boolean;
38
+ readonly actionType: ChecklistActionType.Button;
39
+ }
40
+ export interface ActionDto {
41
+ readonly id: string;
42
+ readonly isRequired: boolean;
43
+ readonly isEnable: boolean;
44
+ readonly contentActionType: ChecklistContentActionType;
45
+ }
46
+ export interface AcceptanceCriteriaEvaluationDto {
47
+ readonly id: string;
48
+ readonly criteria: string;
49
+ readonly evaluation: number;
50
+ }
51
+ export interface ChecklistAnswerDto {
52
+ readonly id: string;
53
+ readonly containerId: string;
54
+ readonly nodeCheckListId: string;
55
+ readonly contentId: string;
56
+ readonly assigneeActionType: ChecklistNodeAssigneeType;
57
+ readonly contentAnswer: ChecklistNodeAnswerActionContentDto;
58
+ readonly createdAt: string;
59
+ }
60
+ export type ChecklistNodeAnswerActionContentDto = ChecklistEvaluationActionContentDto | ChecklistButtonActionContentDto;
61
+ export interface ChecklistEvaluationActionContentDto {
62
+ readonly contentType: ChecklistActionType.ListEvaluation;
63
+ readonly acceptanceCriteriaEvaluationId: string;
64
+ readonly actions: ChecklistNodeAnswerActionDto[];
65
+ }
66
+ export interface ChecklistButtonActionContentDto {
67
+ readonly contentType: ChecklistActionType.Button;
68
+ readonly actions: ChecklistNodeAnswerActionDto[];
69
+ }
70
+ export type ChecklistNodeAnswerActionDto = ChecklistNodeAnswerActionTextAreaDto | ChecklistNodeAnswerActionAttachmentPhotoDto;
71
+ export interface ChecklistNodeAnswerActionBaseDto {
72
+ readonly actionId: string;
73
+ readonly type: ChecklistContentActionType;
74
+ }
75
+ export interface ChecklistNodeAnswerActionTextAreaDto extends ChecklistNodeAnswerActionBaseDto {
76
+ readonly type: ChecklistContentActionType.TextArea;
77
+ readonly text: string;
78
+ }
79
+ export interface ChecklistNodeAnswerActionAttachmentPhotoDto extends ChecklistNodeAnswerActionBaseDto {
80
+ readonly type: ChecklistContentActionType.AttachmentPhoto;
81
+ readonly resources?: ChecklistResource[];
82
+ }
83
+ export interface ChecklistResource {
84
+ readonly id: string;
85
+ readonly filename?: string;
86
+ }
87
+ export declare enum ChecklistType {
88
+ ChecklistEvaluation = "CHECKLIST_EVALUATION",
89
+ ChecklistButton = "CHECKLIST_BUTTON"
90
+ }
91
+ export declare enum ChecklistActionType {
92
+ Button = "BUTTON",
93
+ ListEvaluation = "LIST_EVALUATION"
94
+ }
95
+ export declare enum ChecklistContentActionType {
96
+ AttachmentPhoto = "ATTACHMENT_PHOTO",
97
+ TextArea = "TEXT_AREA"
98
+ }
99
+ export declare enum ChecklistNodeAssigneeType {
100
+ Assign = "ASSIGN",
101
+ Approve = "APPROVE"
102
+ }
@@ -8,3 +8,4 @@ export { CuiProjectPhaseDesignTechnologyService } from './project-phase-design-t
8
8
  export { CuiProjectResoursePhaseInitApiService } from './project-resource-phase-init-api.service';
9
9
  export { CuiProjectSchedulePhaseInitApiService } from './project-schedule-phase-init-api.service';
10
10
  export { CuiTechnologyPhaseInitApiService } from './technology-phase-init-api.service';
11
+ export { CuiNodeCheckListFormalizationApiService } from './node-check-list-formalization-api.service';
@@ -0,0 +1,11 @@
1
+ import type { Observable } from 'rxjs';
2
+ import { ChecklistFormalizationDto } from '../models';
3
+ import { CuiApiContext } from '../../tokens';
4
+ import * as i0 from "@angular/core";
5
+ export declare class CuiNodeCheckListFormalizationApiService {
6
+ private readonly http;
7
+ private readonly NODE_CHECK_LIST_FORMALIZATION_URL;
8
+ getNodeCheckListFormalization(containerId: string, context?: CuiApiContext): Observable<ChecklistFormalizationDto>;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<CuiNodeCheckListFormalizationApiService, never>;
10
+ static ɵprov: i0.ɵɵInjectableDeclaration<CuiNodeCheckListFormalizationApiService>;
11
+ }