@kapeta/local-cluster-service 0.58.4 → 0.58.6
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/CHANGELOG.md +14 -0
- package/dist/cjs/src/storm/event-parser.js +3 -3
- package/dist/cjs/src/storm/events.d.ts +9 -3
- package/dist/esm/src/storm/event-parser.js +3 -3
- package/dist/esm/src/storm/events.d.ts +9 -3
- package/package.json +1 -1
- package/src/storm/event-parser.ts +3 -3
- package/src/storm/events.ts +10 -3
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,17 @@
|
|
1
|
+
## [0.58.6](https://github.com/kapetacom/local-cluster-service/compare/v0.58.5...v0.58.6) (2024-08-01)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* handle 'blockName' on model retry event ([8fd0f69](https://github.com/kapetacom/local-cluster-service/commit/8fd0f69f21919b698acf4e270a0988c0df3f45a9))
|
7
|
+
|
8
|
+
## [0.58.5](https://github.com/kapetacom/local-cluster-service/compare/v0.58.4...v0.58.5) (2024-07-29)
|
9
|
+
|
10
|
+
|
11
|
+
### Bug Fixes
|
12
|
+
|
13
|
+
* Add title to UserJourney interface ([a8688f3](https://github.com/kapetacom/local-cluster-service/commit/a8688f39a099e619eaecb5888cddda3c96e68549))
|
14
|
+
|
1
15
|
## [0.58.4](https://github.com/kapetacom/local-cluster-service/compare/v0.58.3...v0.58.4) (2024-07-29)
|
2
16
|
|
3
17
|
|
@@ -225,9 +225,9 @@ class StormEventParser {
|
|
225
225
|
});
|
226
226
|
break;
|
227
227
|
case 'MODELS_RETRY':
|
228
|
-
|
229
|
-
|
230
|
-
}
|
228
|
+
if ('blockName' in evt.payload) {
|
229
|
+
this.blocks[evt.payload.blockName].models = [];
|
230
|
+
}
|
231
231
|
break;
|
232
232
|
}
|
233
233
|
return await this.toResult(handle);
|
@@ -97,9 +97,13 @@ export interface StormEventCreateDSLRetry {
|
|
97
97
|
type: 'API_RETRY' | 'MODELS_RETRY';
|
98
98
|
reason: string;
|
99
99
|
created: number;
|
100
|
-
payload:
|
101
|
-
|
102
|
-
|
100
|
+
payload: ApiRetryPayload | ModelsRetryPayload;
|
101
|
+
}
|
102
|
+
interface ApiRetryPayload {
|
103
|
+
error: string[];
|
104
|
+
}
|
105
|
+
interface ModelsRetryPayload extends ApiRetryPayload {
|
106
|
+
blockName: string;
|
103
107
|
}
|
104
108
|
export interface StormEventError {
|
105
109
|
type: 'INVALID_RESPONSE' | 'ERROR_INTERNAL';
|
@@ -291,6 +295,7 @@ export interface UserJourneyScreen {
|
|
291
295
|
nextScreens: string[];
|
292
296
|
}
|
293
297
|
export interface UserJourney {
|
298
|
+
title: string;
|
294
299
|
screens: UserJourneyScreen[];
|
295
300
|
}
|
296
301
|
export interface StormEventUserJourney {
|
@@ -300,3 +305,4 @@ export interface StormEventUserJourney {
|
|
300
305
|
payload: UserJourney;
|
301
306
|
}
|
302
307
|
export type StormEvent = StormEventCreateBlock | StormEventCreateConnection | StormEventCreatePlanProperties | StormEventInvalidResponse | StormEventPlanRetry | StormEventCreateDSL | StormEventCreateDSLResource | StormEventError | StormEventScreen | StormEventScreenCandidate | StormEventFileLogical | StormEventFileState | StormEventFileDone | StormEventFileFailed | StormEventFileChunk | StormEventDone | StormEventDefinitionChange | StormEventErrorClassifier | StormEventCodeFix | StormEventErrorDetails | StormEventBlockReady | StormEventPhases | StormEventBlockStatus | StormEventCreateDSLRetry | StormEventUserJourney | StormEventPage;
|
308
|
+
export {};
|
@@ -225,9 +225,9 @@ class StormEventParser {
|
|
225
225
|
});
|
226
226
|
break;
|
227
227
|
case 'MODELS_RETRY':
|
228
|
-
|
229
|
-
|
230
|
-
}
|
228
|
+
if ('blockName' in evt.payload) {
|
229
|
+
this.blocks[evt.payload.blockName].models = [];
|
230
|
+
}
|
231
231
|
break;
|
232
232
|
}
|
233
233
|
return await this.toResult(handle);
|
@@ -97,9 +97,13 @@ export interface StormEventCreateDSLRetry {
|
|
97
97
|
type: 'API_RETRY' | 'MODELS_RETRY';
|
98
98
|
reason: string;
|
99
99
|
created: number;
|
100
|
-
payload:
|
101
|
-
|
102
|
-
|
100
|
+
payload: ApiRetryPayload | ModelsRetryPayload;
|
101
|
+
}
|
102
|
+
interface ApiRetryPayload {
|
103
|
+
error: string[];
|
104
|
+
}
|
105
|
+
interface ModelsRetryPayload extends ApiRetryPayload {
|
106
|
+
blockName: string;
|
103
107
|
}
|
104
108
|
export interface StormEventError {
|
105
109
|
type: 'INVALID_RESPONSE' | 'ERROR_INTERNAL';
|
@@ -291,6 +295,7 @@ export interface UserJourneyScreen {
|
|
291
295
|
nextScreens: string[];
|
292
296
|
}
|
293
297
|
export interface UserJourney {
|
298
|
+
title: string;
|
294
299
|
screens: UserJourneyScreen[];
|
295
300
|
}
|
296
301
|
export interface StormEventUserJourney {
|
@@ -300,3 +305,4 @@ export interface StormEventUserJourney {
|
|
300
305
|
payload: UserJourney;
|
301
306
|
}
|
302
307
|
export type StormEvent = StormEventCreateBlock | StormEventCreateConnection | StormEventCreatePlanProperties | StormEventInvalidResponse | StormEventPlanRetry | StormEventCreateDSL | StormEventCreateDSLResource | StormEventError | StormEventScreen | StormEventScreenCandidate | StormEventFileLogical | StormEventFileState | StormEventFileDone | StormEventFileFailed | StormEventFileChunk | StormEventDone | StormEventDefinitionChange | StormEventErrorClassifier | StormEventCodeFix | StormEventErrorDetails | StormEventBlockReady | StormEventPhases | StormEventBlockStatus | StormEventCreateDSLRetry | StormEventUserJourney | StormEventPage;
|
308
|
+
export {};
|
package/package.json
CHANGED
@@ -341,9 +341,9 @@ export class StormEventParser {
|
|
341
341
|
});
|
342
342
|
break;
|
343
343
|
case 'MODELS_RETRY':
|
344
|
-
|
345
|
-
|
346
|
-
}
|
344
|
+
if ('blockName' in evt.payload) {
|
345
|
+
this.blocks[evt.payload.blockName].models = [];
|
346
|
+
}
|
347
347
|
break;
|
348
348
|
}
|
349
349
|
|
package/src/storm/events.ts
CHANGED
@@ -123,9 +123,15 @@ export interface StormEventCreateDSLRetry {
|
|
123
123
|
type: 'API_RETRY' | 'MODELS_RETRY';
|
124
124
|
reason: string;
|
125
125
|
created: number;
|
126
|
-
payload:
|
127
|
-
|
128
|
-
|
126
|
+
payload: ApiRetryPayload | ModelsRetryPayload;
|
127
|
+
}
|
128
|
+
|
129
|
+
interface ApiRetryPayload {
|
130
|
+
error: string[];
|
131
|
+
}
|
132
|
+
|
133
|
+
interface ModelsRetryPayload extends ApiRetryPayload {
|
134
|
+
blockName: string;
|
129
135
|
}
|
130
136
|
|
131
137
|
export interface StormEventError {
|
@@ -345,6 +351,7 @@ export interface UserJourneyScreen {
|
|
345
351
|
}
|
346
352
|
|
347
353
|
export interface UserJourney {
|
354
|
+
title: string;
|
348
355
|
screens: UserJourneyScreen[];
|
349
356
|
}
|
350
357
|
|