@theromans/convex-dobty 0.1.0
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/dist/client/index.d.ts +287 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +215 -0
- package/dist/client/index.js.map +1 -0
- package/dist/component/_generated/api.d.ts +23 -0
- package/dist/component/_generated/api.d.ts.map +1 -0
- package/dist/component/_generated/api.js +15 -0
- package/dist/component/_generated/api.js.map +1 -0
- package/dist/component/_generated/dataModel.d.ts +28 -0
- package/dist/component/_generated/dataModel.d.ts.map +1 -0
- package/dist/component/_generated/dataModel.js +11 -0
- package/dist/component/_generated/dataModel.js.map +1 -0
- package/dist/component/_generated/server.d.ts +23 -0
- package/dist/component/_generated/server.d.ts.map +1 -0
- package/dist/component/_generated/server.js +18 -0
- package/dist/component/_generated/server.js.map +1 -0
- package/dist/component/assessment.d.ts +141 -0
- package/dist/component/assessment.d.ts.map +1 -0
- package/dist/component/assessment.js +498 -0
- package/dist/component/assessment.js.map +1 -0
- package/dist/component/convex.config.d.ts +3 -0
- package/dist/component/convex.config.d.ts.map +1 -0
- package/dist/component/convex.config.js +3 -0
- package/dist/component/convex.config.js.map +1 -0
- package/dist/component/metrics.d.ts +145 -0
- package/dist/component/metrics.d.ts.map +1 -0
- package/dist/component/metrics.js +425 -0
- package/dist/component/metrics.js.map +1 -0
- package/dist/component/potentialAnalysis.d.ts +510 -0
- package/dist/component/potentialAnalysis.d.ts.map +1 -0
- package/dist/component/potentialAnalysis.js +1035 -0
- package/dist/component/potentialAnalysis.js.map +1 -0
- package/dist/component/schema.d.ts +342 -0
- package/dist/component/schema.d.ts.map +1 -0
- package/dist/component/schema.js +194 -0
- package/dist/component/schema.js.map +1 -0
- package/dist/component/scoring.d.ts +6 -0
- package/dist/component/scoring.d.ts.map +1 -0
- package/dist/component/scoring.js +394 -0
- package/dist/component/scoring.js.map +1 -0
- package/dist/data/dm/cvr.d.ts +12 -0
- package/dist/data/dm/cvr.d.ts.map +1 -0
- package/dist/data/dm/cvr.js +71 -0
- package/dist/data/dm/cvr.js.map +1 -0
- package/dist/data/dm/guidelines.d.ts +9 -0
- package/dist/data/dm/guidelines.d.ts.map +1 -0
- package/dist/data/dm/guidelines.js +22 -0
- package/dist/data/dm/guidelines.js.map +1 -0
- package/dist/data/dm/methods.d.ts +10 -0
- package/dist/data/dm/methods.d.ts.map +1 -0
- package/dist/data/dm/methods.js +50 -0
- package/dist/data/dm/methods.js.map +1 -0
- package/dist/data/dm/systems.d.ts +10 -0
- package/dist/data/dm/systems.d.ts.map +1 -0
- package/dist/data/dm/systems.js +52 -0
- package/dist/data/dm/systems.js.map +1 -0
- package/dist/data/domains.d.ts +20 -0
- package/dist/data/domains.d.ts.map +1 -0
- package/dist/data/domains.js +264 -0
- package/dist/data/domains.js.map +1 -0
- package/dist/data/ek/cvr.d.ts +12 -0
- package/dist/data/ek/cvr.d.ts.map +1 -0
- package/dist/data/ek/cvr.js +58 -0
- package/dist/data/ek/cvr.js.map +1 -0
- package/dist/data/ek/guidelines.d.ts +9 -0
- package/dist/data/ek/guidelines.d.ts.map +1 -0
- package/dist/data/ek/guidelines.js +26 -0
- package/dist/data/ek/guidelines.js.map +1 -0
- package/dist/data/ek/methods.d.ts +9 -0
- package/dist/data/ek/methods.d.ts.map +1 -0
- package/dist/data/ek/methods.js +35 -0
- package/dist/data/ek/methods.js.map +1 -0
- package/dist/data/ek/systems.d.ts +9 -0
- package/dist/data/ek/systems.d.ts.map +1 -0
- package/dist/data/ek/systems.js +23 -0
- package/dist/data/ek/systems.js.map +1 -0
- package/dist/data/influence-areas.d.ts +26 -0
- package/dist/data/influence-areas.d.ts.map +1 -0
- package/dist/data/influence-areas.js +143 -0
- package/dist/data/influence-areas.js.map +1 -0
- package/dist/data/km/cvr.d.ts +13 -0
- package/dist/data/km/cvr.d.ts.map +1 -0
- package/dist/data/km/cvr.js +65 -0
- package/dist/data/km/cvr.js.map +1 -0
- package/dist/data/km/guidelines.d.ts +9 -0
- package/dist/data/km/guidelines.d.ts.map +1 -0
- package/dist/data/km/guidelines.js +20 -0
- package/dist/data/km/guidelines.js.map +1 -0
- package/dist/data/km/methods.d.ts +9 -0
- package/dist/data/km/methods.d.ts.map +1 -0
- package/dist/data/km/methods.js +28 -0
- package/dist/data/km/methods.js.map +1 -0
- package/dist/data/km/systems.d.ts +9 -0
- package/dist/data/km/systems.d.ts.map +1 -0
- package/dist/data/km/systems.js +18 -0
- package/dist/data/km/systems.js.map +1 -0
- package/dist/data/stammdaten.d.ts +7 -0
- package/dist/data/stammdaten.d.ts.map +1 -0
- package/dist/data/stammdaten.js +94 -0
- package/dist/data/stammdaten.js.map +1 -0
- package/dist/data/types.d.ts +113 -0
- package/dist/data/types.d.ts.map +1 -0
- package/dist/data/types.js +23 -0
- package/dist/data/types.js.map +1 -0
- package/package.json +38 -0
- package/src/client/index.ts +442 -0
- package/src/component/_generated/api.ts +35 -0
- package/src/component/_generated/component.ts +50 -0
- package/src/component/_generated/dataModel.ts +42 -0
- package/src/component/_generated/server.ts +48 -0
- package/src/component/assessment.ts +536 -0
- package/src/component/convex.config.ts +3 -0
- package/src/component/metrics.ts +479 -0
- package/src/component/potentialAnalysis.ts +1118 -0
- package/src/component/schema.ts +209 -0
- package/src/component/scoring.ts +485 -0
- package/src/data/dm/cvr.ts +75 -0
- package/src/data/dm/guidelines.ts +24 -0
- package/src/data/dm/methods.ts +53 -0
- package/src/data/dm/systems.ts +55 -0
- package/src/data/domains.ts +275 -0
- package/src/data/ek/cvr.ts +62 -0
- package/src/data/ek/guidelines.ts +28 -0
- package/src/data/ek/methods.ts +39 -0
- package/src/data/ek/systems.ts +25 -0
- package/src/data/influence-areas.ts +162 -0
- package/src/data/km/cvr.ts +69 -0
- package/src/data/km/guidelines.ts +22 -0
- package/src/data/km/methods.ts +30 -0
- package/src/data/km/systems.ts +20 -0
- package/src/data/stammdaten.ts +96 -0
- package/src/data/types.ts +183 -0
|
@@ -0,0 +1,510 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 5DoBT Potential Value Analysis — CRUD + Compute functions.
|
|
3
|
+
* Implements the 7-step process (FR-D-PA.1 through FR-D-PA.7).
|
|
4
|
+
*/
|
|
5
|
+
/** Create a new 5DoBT Potential Analysis */
|
|
6
|
+
export declare const createAnalysis: import("convex/server").RegisteredMutation<"public", {
|
|
7
|
+
name?: string | undefined;
|
|
8
|
+
workspaceId: string;
|
|
9
|
+
userId: string;
|
|
10
|
+
}, Promise<{
|
|
11
|
+
analysisId: import("convex/values").GenericId<"potentialAnalyses">;
|
|
12
|
+
}>>;
|
|
13
|
+
/** Get a full analysis with all step data */
|
|
14
|
+
export declare const getAnalysis: import("convex/server").RegisteredQuery<"public", {
|
|
15
|
+
analysisId: import("convex/values").GenericId<"potentialAnalyses">;
|
|
16
|
+
}, Promise<{
|
|
17
|
+
charter: {
|
|
18
|
+
_id: import("convex/values").GenericId<"paProjectCharters">;
|
|
19
|
+
_creationTime: number;
|
|
20
|
+
conditions?: string | undefined;
|
|
21
|
+
risks?: any;
|
|
22
|
+
costs?: string | undefined;
|
|
23
|
+
milestones?: any;
|
|
24
|
+
project_team?: any;
|
|
25
|
+
analysisId: import("convex/values").GenericId<"potentialAnalyses">;
|
|
26
|
+
name: string;
|
|
27
|
+
date: string;
|
|
28
|
+
business_case: string;
|
|
29
|
+
problem_statement: string;
|
|
30
|
+
goal: string;
|
|
31
|
+
scope_in: string;
|
|
32
|
+
scope_out: string;
|
|
33
|
+
objectives: any;
|
|
34
|
+
} | null;
|
|
35
|
+
definitionsOfDone: {
|
|
36
|
+
_id: import("convex/values").GenericId<"paDefinitionsOfDone">;
|
|
37
|
+
_creationTime: number;
|
|
38
|
+
number: number;
|
|
39
|
+
analysisId: import("convex/values").GenericId<"potentialAnalyses">;
|
|
40
|
+
definition: string;
|
|
41
|
+
description: string;
|
|
42
|
+
effect_type: string;
|
|
43
|
+
}[];
|
|
44
|
+
influenceAreas: {
|
|
45
|
+
_id: import("convex/values").GenericId<"paInfluenceAreas">;
|
|
46
|
+
_creationTime: number;
|
|
47
|
+
analysisId: import("convex/values").GenericId<"potentialAnalyses">;
|
|
48
|
+
dobt_dimension: string;
|
|
49
|
+
sub_area_key: string;
|
|
50
|
+
potential_description: string;
|
|
51
|
+
}[];
|
|
52
|
+
pointsOfChanges: {
|
|
53
|
+
_id: import("convex/values").GenericId<"paPointsOfChanges">;
|
|
54
|
+
_creationTime: number;
|
|
55
|
+
analysisId: import("convex/values").GenericId<"potentialAnalyses">;
|
|
56
|
+
influence_area_ref: import("convex/values").GenericId<"paInfluenceAreas">;
|
|
57
|
+
poc_description: string;
|
|
58
|
+
definition_of_done_refs: any;
|
|
59
|
+
}[];
|
|
60
|
+
fieldsOfAction: {
|
|
61
|
+
_id: import("convex/values").GenericId<"paFieldsOfAction">;
|
|
62
|
+
_creationTime: number;
|
|
63
|
+
analysisId: import("convex/values").GenericId<"potentialAnalyses">;
|
|
64
|
+
dobt_dimension: string;
|
|
65
|
+
potential_description: string;
|
|
66
|
+
poc_ref: import("convex/values").GenericId<"paPointsOfChanges">;
|
|
67
|
+
influence_type: string;
|
|
68
|
+
foa_description: string;
|
|
69
|
+
kpi_influence: string;
|
|
70
|
+
}[];
|
|
71
|
+
potentialStatuses: {
|
|
72
|
+
_id: import("convex/values").GenericId<"paPotentialStatuses">;
|
|
73
|
+
_creationTime: number;
|
|
74
|
+
validation_level?: string | undefined;
|
|
75
|
+
estimation_value?: number | undefined;
|
|
76
|
+
estimation_risk?: number | undefined;
|
|
77
|
+
estimation_explanation?: string | undefined;
|
|
78
|
+
estimation_result?: number | undefined;
|
|
79
|
+
calculation_ref?: import("convex/values").GenericId<"paCalculations"> | undefined;
|
|
80
|
+
calculation_result?: number | undefined;
|
|
81
|
+
committed_value_result?: number | undefined;
|
|
82
|
+
committed_responsible_business_owner?: string | undefined;
|
|
83
|
+
measured_potential_value?: number | undefined;
|
|
84
|
+
analysisId: import("convex/values").GenericId<"potentialAnalyses">;
|
|
85
|
+
status: string;
|
|
86
|
+
foa_ref: import("convex/values").GenericId<"paFieldsOfAction">;
|
|
87
|
+
}[];
|
|
88
|
+
factsFigures: {
|
|
89
|
+
_id: import("convex/values").GenericId<"paFactsFigures">;
|
|
90
|
+
_creationTime: number;
|
|
91
|
+
analysisId: import("convex/values").GenericId<"potentialAnalyses">;
|
|
92
|
+
value: number;
|
|
93
|
+
name: string;
|
|
94
|
+
unit: string;
|
|
95
|
+
}[];
|
|
96
|
+
calculations: {
|
|
97
|
+
_id: import("convex/values").GenericId<"paCalculations">;
|
|
98
|
+
_creationTime: number;
|
|
99
|
+
analysisId: import("convex/values").GenericId<"potentialAnalyses">;
|
|
100
|
+
dobt_dimension: string;
|
|
101
|
+
potential_description: string;
|
|
102
|
+
assumptions: any;
|
|
103
|
+
formula: string;
|
|
104
|
+
result: number;
|
|
105
|
+
}[];
|
|
106
|
+
summary: {
|
|
107
|
+
_id: import("convex/values").GenericId<"paCalculationSummaries">;
|
|
108
|
+
_creationTime: number;
|
|
109
|
+
analysisId: import("convex/values").GenericId<"potentialAnalyses">;
|
|
110
|
+
sensitivity: any;
|
|
111
|
+
lifetime: any;
|
|
112
|
+
dimension_totals: any;
|
|
113
|
+
grand_total_sp: number;
|
|
114
|
+
grand_total_nsp: number;
|
|
115
|
+
grand_total: number;
|
|
116
|
+
margin_effects: any;
|
|
117
|
+
total_margin_effect: number;
|
|
118
|
+
projection: any;
|
|
119
|
+
validated_potentials: any;
|
|
120
|
+
calculatedAt: number;
|
|
121
|
+
} | null;
|
|
122
|
+
_id: import("convex/values").GenericId<"potentialAnalyses">;
|
|
123
|
+
_creationTime: number;
|
|
124
|
+
name?: string | undefined;
|
|
125
|
+
workspaceId: string;
|
|
126
|
+
createdAt: number;
|
|
127
|
+
updatedAt: number;
|
|
128
|
+
currentStep: number;
|
|
129
|
+
status: string;
|
|
130
|
+
createdBy: string;
|
|
131
|
+
} | null>>;
|
|
132
|
+
/** Get analysis status summary */
|
|
133
|
+
export declare const getAnalysisStatus: import("convex/server").RegisteredQuery<"public", {
|
|
134
|
+
analysisId: import("convex/values").GenericId<"potentialAnalyses">;
|
|
135
|
+
}, Promise<{
|
|
136
|
+
currentStep: number;
|
|
137
|
+
status: string;
|
|
138
|
+
name: string | undefined;
|
|
139
|
+
steps: {
|
|
140
|
+
1: {
|
|
141
|
+
complete: boolean;
|
|
142
|
+
label: string;
|
|
143
|
+
};
|
|
144
|
+
2: {
|
|
145
|
+
complete: boolean;
|
|
146
|
+
count: number;
|
|
147
|
+
label: string;
|
|
148
|
+
};
|
|
149
|
+
3: {
|
|
150
|
+
complete: boolean;
|
|
151
|
+
count: number;
|
|
152
|
+
label: string;
|
|
153
|
+
};
|
|
154
|
+
4: {
|
|
155
|
+
complete: boolean;
|
|
156
|
+
count: number;
|
|
157
|
+
label: string;
|
|
158
|
+
};
|
|
159
|
+
5: {
|
|
160
|
+
complete: boolean;
|
|
161
|
+
count: number;
|
|
162
|
+
label: string;
|
|
163
|
+
};
|
|
164
|
+
6: {
|
|
165
|
+
complete: boolean;
|
|
166
|
+
count: number;
|
|
167
|
+
label: string;
|
|
168
|
+
};
|
|
169
|
+
7: {
|
|
170
|
+
complete: boolean;
|
|
171
|
+
label: string;
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
dimensionCounts: Record<string, {
|
|
175
|
+
foas: number;
|
|
176
|
+
sp: number;
|
|
177
|
+
nsp: number;
|
|
178
|
+
}>;
|
|
179
|
+
statusCounts: Record<string, number>;
|
|
180
|
+
totals: {
|
|
181
|
+
sp: number;
|
|
182
|
+
nsp: number;
|
|
183
|
+
};
|
|
184
|
+
} | null>>;
|
|
185
|
+
/** Create or update Project Charter */
|
|
186
|
+
export declare const updateProjectCharter: import("convex/server").RegisteredMutation<"public", {
|
|
187
|
+
conditions?: string | undefined;
|
|
188
|
+
risks?: any;
|
|
189
|
+
costs?: string | undefined;
|
|
190
|
+
milestones?: any;
|
|
191
|
+
project_team?: any;
|
|
192
|
+
analysisId: import("convex/values").GenericId<"potentialAnalyses">;
|
|
193
|
+
name: string;
|
|
194
|
+
date: string;
|
|
195
|
+
business_case: string;
|
|
196
|
+
problem_statement: string;
|
|
197
|
+
goal: string;
|
|
198
|
+
scope_in: string;
|
|
199
|
+
scope_out: string;
|
|
200
|
+
objectives: any;
|
|
201
|
+
}, Promise<{
|
|
202
|
+
charterId: import("convex/values").GenericId<"paProjectCharters">;
|
|
203
|
+
updated: boolean;
|
|
204
|
+
}>>;
|
|
205
|
+
/** Add a Definition of Done item */
|
|
206
|
+
export declare const addDefinitionOfDone: import("convex/server").RegisteredMutation<"public", {
|
|
207
|
+
analysisId: import("convex/values").GenericId<"potentialAnalyses">;
|
|
208
|
+
definition: string;
|
|
209
|
+
description: string;
|
|
210
|
+
effect_type: string;
|
|
211
|
+
}, Promise<{
|
|
212
|
+
dodId: import("convex/values").GenericId<"paDefinitionsOfDone">;
|
|
213
|
+
number: number;
|
|
214
|
+
}>>;
|
|
215
|
+
/** Update a Definition of Done item */
|
|
216
|
+
export declare const updateDefinitionOfDone: import("convex/server").RegisteredMutation<"public", {
|
|
217
|
+
definition?: string | undefined;
|
|
218
|
+
description?: string | undefined;
|
|
219
|
+
effect_type?: string | undefined;
|
|
220
|
+
dodId: import("convex/values").GenericId<"paDefinitionsOfDone">;
|
|
221
|
+
}, Promise<void>>;
|
|
222
|
+
/** Delete a Definition of Done item */
|
|
223
|
+
export declare const deleteDefinitionOfDone: import("convex/server").RegisteredMutation<"public", {
|
|
224
|
+
dodId: import("convex/values").GenericId<"paDefinitionsOfDone">;
|
|
225
|
+
}, Promise<void>>;
|
|
226
|
+
/** Select an influence area */
|
|
227
|
+
export declare const selectInfluenceArea: import("convex/server").RegisteredMutation<"public", {
|
|
228
|
+
analysisId: import("convex/values").GenericId<"potentialAnalyses">;
|
|
229
|
+
dobt_dimension: string;
|
|
230
|
+
sub_area_key: string;
|
|
231
|
+
potential_description: string;
|
|
232
|
+
}, Promise<{
|
|
233
|
+
areaId: import("convex/values").GenericId<"paInfluenceAreas">;
|
|
234
|
+
updated: boolean;
|
|
235
|
+
}>>;
|
|
236
|
+
/** Deselect an influence area */
|
|
237
|
+
export declare const deselectInfluenceArea: import("convex/server").RegisteredMutation<"public", {
|
|
238
|
+
areaId: import("convex/values").GenericId<"paInfluenceAreas">;
|
|
239
|
+
}, Promise<void>>;
|
|
240
|
+
/** Add a Point of Change */
|
|
241
|
+
export declare const addPointOfChange: import("convex/server").RegisteredMutation<"public", {
|
|
242
|
+
analysisId: import("convex/values").GenericId<"potentialAnalyses">;
|
|
243
|
+
influence_area_ref: import("convex/values").GenericId<"paInfluenceAreas">;
|
|
244
|
+
poc_description: string;
|
|
245
|
+
definition_of_done_refs: any;
|
|
246
|
+
}, Promise<{
|
|
247
|
+
pocId: import("convex/values").GenericId<"paPointsOfChanges">;
|
|
248
|
+
}>>;
|
|
249
|
+
/** Delete a Point of Change */
|
|
250
|
+
export declare const deletePointOfChange: import("convex/server").RegisteredMutation<"public", {
|
|
251
|
+
pocId: import("convex/values").GenericId<"paPointsOfChanges">;
|
|
252
|
+
}, Promise<void>>;
|
|
253
|
+
/** Add a Field of Action */
|
|
254
|
+
export declare const addFieldOfAction: import("convex/server").RegisteredMutation<"public", {
|
|
255
|
+
analysisId: import("convex/values").GenericId<"potentialAnalyses">;
|
|
256
|
+
dobt_dimension: string;
|
|
257
|
+
potential_description: string;
|
|
258
|
+
poc_ref: import("convex/values").GenericId<"paPointsOfChanges">;
|
|
259
|
+
influence_type: string;
|
|
260
|
+
foa_description: string;
|
|
261
|
+
kpi_influence: string;
|
|
262
|
+
}, Promise<{
|
|
263
|
+
foaId: import("convex/values").GenericId<"paFieldsOfAction">;
|
|
264
|
+
}>>;
|
|
265
|
+
/** Delete a Field of Action */
|
|
266
|
+
export declare const deleteFieldOfAction: import("convex/server").RegisteredMutation<"public", {
|
|
267
|
+
foaId: import("convex/values").GenericId<"paFieldsOfAction">;
|
|
268
|
+
}, Promise<void>>;
|
|
269
|
+
/** Set or update potential status for an FOA */
|
|
270
|
+
export declare const setPotentialStatus: import("convex/server").RegisteredMutation<"public", {
|
|
271
|
+
validation_level?: string | undefined;
|
|
272
|
+
estimation_value?: number | undefined;
|
|
273
|
+
estimation_risk?: number | undefined;
|
|
274
|
+
estimation_explanation?: string | undefined;
|
|
275
|
+
calculation_ref?: import("convex/values").GenericId<"paCalculations"> | undefined;
|
|
276
|
+
calculation_result?: number | undefined;
|
|
277
|
+
committed_value_result?: number | undefined;
|
|
278
|
+
committed_responsible_business_owner?: string | undefined;
|
|
279
|
+
measured_potential_value?: number | undefined;
|
|
280
|
+
analysisId: import("convex/values").GenericId<"potentialAnalyses">;
|
|
281
|
+
status: string;
|
|
282
|
+
foa_ref: import("convex/values").GenericId<"paFieldsOfAction">;
|
|
283
|
+
}, Promise<{
|
|
284
|
+
statusId: import("convex/values").GenericId<"paPotentialStatuses">;
|
|
285
|
+
estimation_result: number | undefined;
|
|
286
|
+
}>>;
|
|
287
|
+
/** Add a Facts & Figures entry */
|
|
288
|
+
export declare const addFactFigure: import("convex/server").RegisteredMutation<"public", {
|
|
289
|
+
analysisId: import("convex/values").GenericId<"potentialAnalyses">;
|
|
290
|
+
value: number;
|
|
291
|
+
name: string;
|
|
292
|
+
unit: string;
|
|
293
|
+
}, Promise<{
|
|
294
|
+
factId: import("convex/values").GenericId<"paFactsFigures">;
|
|
295
|
+
}>>;
|
|
296
|
+
/** Delete a Facts & Figures entry */
|
|
297
|
+
export declare const deleteFactFigure: import("convex/server").RegisteredMutation<"public", {
|
|
298
|
+
factId: import("convex/values").GenericId<"paFactsFigures">;
|
|
299
|
+
}, Promise<void>>;
|
|
300
|
+
/** Add a calculation entry */
|
|
301
|
+
export declare const addCalculation: import("convex/server").RegisteredMutation<"public", {
|
|
302
|
+
analysisId: import("convex/values").GenericId<"potentialAnalyses">;
|
|
303
|
+
dobt_dimension: string;
|
|
304
|
+
potential_description: string;
|
|
305
|
+
assumptions: any;
|
|
306
|
+
formula: string;
|
|
307
|
+
result: number;
|
|
308
|
+
}, Promise<{
|
|
309
|
+
calculationId: import("convex/values").GenericId<"paCalculations">;
|
|
310
|
+
}>>;
|
|
311
|
+
/** Delete a calculation entry */
|
|
312
|
+
export declare const deleteCalculation: import("convex/server").RegisteredMutation<"public", {
|
|
313
|
+
calcId: import("convex/values").GenericId<"paCalculations">;
|
|
314
|
+
}, Promise<void>>;
|
|
315
|
+
/** Compute and cache the Calculation Summary */
|
|
316
|
+
export declare const computeCalculationSummary: import("convex/server").RegisteredMutation<"public", {
|
|
317
|
+
sensitivity?: any;
|
|
318
|
+
lifetime?: any;
|
|
319
|
+
analysisId: import("convex/values").GenericId<"potentialAnalyses">;
|
|
320
|
+
}, Promise<{
|
|
321
|
+
summaryId: import("convex/values").GenericId<"paCalculationSummaries">;
|
|
322
|
+
}>>;
|
|
323
|
+
/** Advance to the next step with validation */
|
|
324
|
+
export declare const advanceStep: import("convex/server").RegisteredMutation<"public", {
|
|
325
|
+
analysisId: import("convex/values").GenericId<"potentialAnalyses">;
|
|
326
|
+
targetStep: number;
|
|
327
|
+
}, Promise<{
|
|
328
|
+
currentStep: number;
|
|
329
|
+
}>>;
|
|
330
|
+
/** List analyses for a workspace */
|
|
331
|
+
export declare const listAnalyses: import("convex/server").RegisteredQuery<"public", {
|
|
332
|
+
workspaceId: string;
|
|
333
|
+
}, Promise<{
|
|
334
|
+
_id: import("convex/values").GenericId<"potentialAnalyses">;
|
|
335
|
+
_creationTime: number;
|
|
336
|
+
name?: string | undefined;
|
|
337
|
+
workspaceId: string;
|
|
338
|
+
createdAt: number;
|
|
339
|
+
updatedAt: number;
|
|
340
|
+
currentStep: number;
|
|
341
|
+
status: string;
|
|
342
|
+
createdBy: string;
|
|
343
|
+
}[]>>;
|
|
344
|
+
/** Suggest influence areas based on analysis context (AI tool data provider) */
|
|
345
|
+
export declare const suggestInfluenceAreas: import("convex/server").RegisteredQuery<"public", {
|
|
346
|
+
analysisId: import("convex/values").GenericId<"potentialAnalyses">;
|
|
347
|
+
}, Promise<{
|
|
348
|
+
charter: {
|
|
349
|
+
name: string;
|
|
350
|
+
business_case: string;
|
|
351
|
+
problem_statement: string;
|
|
352
|
+
goal: string;
|
|
353
|
+
scope_in: string;
|
|
354
|
+
} | null;
|
|
355
|
+
definitionsOfDone: {
|
|
356
|
+
definition: string;
|
|
357
|
+
description: string;
|
|
358
|
+
effect_type: string;
|
|
359
|
+
}[];
|
|
360
|
+
availableAreas: {
|
|
361
|
+
dimension: import("../data/influence-areas.js").DobtDimension;
|
|
362
|
+
dimensionLabel: string;
|
|
363
|
+
subAreaKey: string;
|
|
364
|
+
subAreaLabel: string;
|
|
365
|
+
alreadySelected: boolean;
|
|
366
|
+
}[];
|
|
367
|
+
selectedCount: number;
|
|
368
|
+
} | null>>;
|
|
369
|
+
/** Provide estimation context for a Field of Action (AI tool data provider) */
|
|
370
|
+
export declare const estimatePotential: import("convex/server").RegisteredQuery<"public", {
|
|
371
|
+
foaId?: import("convex/values").GenericId<"paFieldsOfAction"> | undefined;
|
|
372
|
+
analysisId: import("convex/values").GenericId<"potentialAnalyses">;
|
|
373
|
+
}, Promise<{
|
|
374
|
+
targetFoa: {
|
|
375
|
+
currentStatus: {
|
|
376
|
+
_id: import("convex/values").GenericId<"paPotentialStatuses">;
|
|
377
|
+
_creationTime: number;
|
|
378
|
+
validation_level?: string | undefined;
|
|
379
|
+
estimation_value?: number | undefined;
|
|
380
|
+
estimation_risk?: number | undefined;
|
|
381
|
+
estimation_explanation?: string | undefined;
|
|
382
|
+
estimation_result?: number | undefined;
|
|
383
|
+
calculation_ref?: import("convex/values").GenericId<"paCalculations"> | undefined;
|
|
384
|
+
calculation_result?: number | undefined;
|
|
385
|
+
committed_value_result?: number | undefined;
|
|
386
|
+
committed_responsible_business_owner?: string | undefined;
|
|
387
|
+
measured_potential_value?: number | undefined;
|
|
388
|
+
analysisId: import("convex/values").GenericId<"potentialAnalyses">;
|
|
389
|
+
status: string;
|
|
390
|
+
foa_ref: import("convex/values").GenericId<"paFieldsOfAction">;
|
|
391
|
+
} | null;
|
|
392
|
+
_id: import("convex/values").GenericId<"paFieldsOfAction">;
|
|
393
|
+
_creationTime: number;
|
|
394
|
+
analysisId: import("convex/values").GenericId<"potentialAnalyses">;
|
|
395
|
+
dobt_dimension: string;
|
|
396
|
+
potential_description: string;
|
|
397
|
+
poc_ref: import("convex/values").GenericId<"paPointsOfChanges">;
|
|
398
|
+
influence_type: string;
|
|
399
|
+
foa_description: string;
|
|
400
|
+
kpi_influence: string;
|
|
401
|
+
} | null;
|
|
402
|
+
existingEstimations: {
|
|
403
|
+
dimension: string;
|
|
404
|
+
influence_type: string;
|
|
405
|
+
description: string;
|
|
406
|
+
value: number;
|
|
407
|
+
}[];
|
|
408
|
+
factsFigures: {
|
|
409
|
+
_id: import("convex/values").GenericId<"paFactsFigures">;
|
|
410
|
+
_creationTime: number;
|
|
411
|
+
analysisId: import("convex/values").GenericId<"potentialAnalyses">;
|
|
412
|
+
value: number;
|
|
413
|
+
name: string;
|
|
414
|
+
unit: string;
|
|
415
|
+
}[];
|
|
416
|
+
totalFoas: number;
|
|
417
|
+
estimatedCount: number;
|
|
418
|
+
} | null>>;
|
|
419
|
+
/** Get full calculation summary (AI tool data provider) */
|
|
420
|
+
export declare const getCalculationSummary: import("convex/server").RegisteredQuery<"public", {
|
|
421
|
+
analysisId: import("convex/values").GenericId<"potentialAnalyses">;
|
|
422
|
+
}, Promise<{
|
|
423
|
+
foasByDimension: Record<string, {
|
|
424
|
+
sp: number;
|
|
425
|
+
nsp: number;
|
|
426
|
+
}>;
|
|
427
|
+
_id: import("convex/values").GenericId<"paCalculationSummaries">;
|
|
428
|
+
_creationTime: number;
|
|
429
|
+
analysisId: import("convex/values").GenericId<"potentialAnalyses">;
|
|
430
|
+
sensitivity: any;
|
|
431
|
+
lifetime: any;
|
|
432
|
+
dimension_totals: any;
|
|
433
|
+
grand_total_sp: number;
|
|
434
|
+
grand_total_nsp: number;
|
|
435
|
+
grand_total: number;
|
|
436
|
+
margin_effects: any;
|
|
437
|
+
total_margin_effect: number;
|
|
438
|
+
projection: any;
|
|
439
|
+
validated_potentials: any;
|
|
440
|
+
calculatedAt: number;
|
|
441
|
+
} | null>>;
|
|
442
|
+
/** Get 5DoBT Potential Analysis dashboard data */
|
|
443
|
+
export declare const getPotentialAnalysisDashboard: import("convex/server").RegisteredQuery<"public", {
|
|
444
|
+
analysisId?: import("convex/values").GenericId<"potentialAnalyses"> | undefined;
|
|
445
|
+
workspaceId: string;
|
|
446
|
+
}, Promise<{
|
|
447
|
+
analysis: {
|
|
448
|
+
_id: import("convex/values").GenericId<"potentialAnalyses">;
|
|
449
|
+
name: string | undefined;
|
|
450
|
+
currentStep: number;
|
|
451
|
+
status: string;
|
|
452
|
+
createdAt: number;
|
|
453
|
+
updatedAt: number;
|
|
454
|
+
};
|
|
455
|
+
stepProgress: {
|
|
456
|
+
1: {
|
|
457
|
+
complete: boolean;
|
|
458
|
+
label: string;
|
|
459
|
+
};
|
|
460
|
+
2: {
|
|
461
|
+
complete: boolean;
|
|
462
|
+
count: number;
|
|
463
|
+
label: string;
|
|
464
|
+
};
|
|
465
|
+
3: {
|
|
466
|
+
complete: boolean;
|
|
467
|
+
count: number;
|
|
468
|
+
label: string;
|
|
469
|
+
};
|
|
470
|
+
4: {
|
|
471
|
+
complete: boolean;
|
|
472
|
+
count: number;
|
|
473
|
+
label: string;
|
|
474
|
+
};
|
|
475
|
+
5: {
|
|
476
|
+
complete: boolean;
|
|
477
|
+
count: number;
|
|
478
|
+
label: string;
|
|
479
|
+
};
|
|
480
|
+
6: {
|
|
481
|
+
complete: boolean;
|
|
482
|
+
count: number;
|
|
483
|
+
label: string;
|
|
484
|
+
};
|
|
485
|
+
7: {
|
|
486
|
+
complete: boolean;
|
|
487
|
+
label: string;
|
|
488
|
+
};
|
|
489
|
+
};
|
|
490
|
+
dimensionDistribution: Record<string, {
|
|
491
|
+
sp: number;
|
|
492
|
+
nsp: number;
|
|
493
|
+
total: number;
|
|
494
|
+
}>;
|
|
495
|
+
statusLifecycle: Record<string, number>;
|
|
496
|
+
totals: {
|
|
497
|
+
sp: number;
|
|
498
|
+
nsp: number;
|
|
499
|
+
};
|
|
500
|
+
calculationSummary: {
|
|
501
|
+
dimension_totals: any;
|
|
502
|
+
grand_total_sp: number;
|
|
503
|
+
grand_total_nsp: number;
|
|
504
|
+
grand_total: number;
|
|
505
|
+
margin_effects: any;
|
|
506
|
+
total_margin_effect: number;
|
|
507
|
+
projection: any;
|
|
508
|
+
} | null;
|
|
509
|
+
} | null>>;
|
|
510
|
+
//# sourceMappingURL=potentialAnalysis.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"potentialAnalysis.d.ts","sourceRoot":"","sources":["../../src/component/potentialAnalysis.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAUH,4CAA4C;AAC5C,eAAO,MAAM,cAAc;;;;;;GAmBzB,CAAC;AAEH,6CAA6C;AAC7C,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAgEtB,CAAC;AAEH,kCAAkC;AAClC,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAqCoB,MAAM;YAAM,MAAM;aAAO,MAAM;;;;;;;UAqC/E,CAAC;AAIH,uCAAuC;AACvC,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;GA0C/B,CAAC;AAIH,oCAAoC;AACpC,eAAO,MAAM,mBAAmB;;;;;;;;GAoC9B,CAAC;AAEH,uCAAuC;AACvC,eAAO,MAAM,sBAAsB;;;;;iBAyBjC,CAAC;AAEH,uCAAuC;AACvC,eAAO,MAAM,sBAAsB;;iBAQjC,CAAC;AAIH,+BAA+B;AAC/B,eAAO,MAAM,mBAAmB;;;;;;;;GAuC9B,CAAC;AAEH,iCAAiC;AACjC,eAAO,MAAM,qBAAqB;;iBAQhC,CAAC;AAIH,4BAA4B;AAC5B,eAAO,MAAM,gBAAgB;;;;;;;GAwB3B,CAAC;AAEH,+BAA+B;AAC/B,eAAO,MAAM,mBAAmB;;iBAQ9B,CAAC;AAIH,4BAA4B;AAC5B,eAAO,MAAM,gBAAgB;;;;;;;;;;GAsC3B,CAAC;AAEH,+BAA+B;AAC/B,eAAO,MAAM,mBAAmB;;iBAc9B,CAAC;AAIH,gDAAgD;AAChD,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;GA2D7B,CAAC;AAIH,kCAAkC;AAClC,eAAO,MAAM,aAAa;;;;;;;GAiBxB,CAAC;AAEH,qCAAqC;AACrC,eAAO,MAAM,gBAAgB;;iBAQ3B,CAAC;AAEH,8BAA8B;AAC9B,eAAO,MAAM,cAAc;;;;;;;;;GAqBzB,CAAC;AAEH,iCAAiC;AACjC,eAAO,MAAM,iBAAiB;;iBAQ5B,CAAC;AAIH,gDAAgD;AAChD,eAAO,MAAM,yBAAyB;;;;;;GAkKpC,CAAC;AAIH,+CAA+C;AAC/C,eAAO,MAAM,WAAW;;;;;GAoEtB,CAAC;AAEH,oCAAoC;AACpC,eAAO,MAAM,YAAY;;;;;;;;;;;;KAQvB,CAAC;AAIH,gFAAgF;AAChF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;UAwDhC,CAAC;AAEH,+EAA+E;AAC/E,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAgE5B,CAAC;AAEH,2DAA2D;AAC3D,eAAO,MAAM,qBAAqB;;;;YAkBc,MAAM;aAAO,MAAM;;;;;;;;;;;;;;;;UAcjE,CAAC;AAIH,kDAAkD;AAClD,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAsDY,MAAM;aAAO,MAAM;eAAS,MAAM;;;;;;;;;;;;;;;;UAqDtF,CAAC"}
|