@kapeta/local-cluster-service 0.58.5 → 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 +7 -0
- package/dist/cjs/src/storm/event-parser.js +3 -3
- package/dist/cjs/src/storm/events.d.ts +8 -3
- package/dist/esm/src/storm/event-parser.js +3 -3
- package/dist/esm/src/storm/events.d.ts +8 -3
- package/package.json +1 -1
- package/src/storm/event-parser.ts +3 -3
- package/src/storm/events.ts +9 -3
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
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
|
+
|
1
8
|
## [0.58.5](https://github.com/kapetacom/local-cluster-service/compare/v0.58.4...v0.58.5) (2024-07-29)
|
2
9
|
|
3
10
|
|
@@ -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';
|
@@ -301,3 +305,4 @@ export interface StormEventUserJourney {
|
|
301
305
|
payload: UserJourney;
|
302
306
|
}
|
303
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';
|
@@ -301,3 +305,4 @@ export interface StormEventUserJourney {
|
|
301
305
|
payload: UserJourney;
|
302
306
|
}
|
303
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 {
|