@@ -28,11 +28,11 @@ export class IngestionStatusModelFactory {
28
28
return this . create (
29
29
ingestionStatusResponse . jobName ,
30
30
ingestionStatusResponse . jobType ,
31
- ingestionStatusResponse ?. topic
31
+ ingestionStatusResponse ?. topicStatus
32
32
? TopicModelFactory . create (
33
- ingestionStatusResponse . topic . topic ,
34
- Object . keys ( ingestionStatusResponse . topic . messagesToIngest )
35
- . map ( ( key ) => ingestionStatusResponse . topic . messagesToIngest [ key ] )
33
+ ingestionStatusResponse . topicStatus . topic ,
34
+ Object . keys ( ingestionStatusResponse . topicStatus . messagesToIngest )
35
+ . map ( ( key ) => ingestionStatusResponse . topicStatus . messagesToIngest [ key ] )
36
36
. reduce ( ( acc , cur ) => acc + Number ( cur ) , 0 ) ,
37
37
)
38
38
: null ,
@@ -54,12 +54,12 @@ export class TopicModelFactory {
54
54
export type IngestionStatusResponseModel = {
55
55
jobName : string ;
56
56
jobType : string ;
57
- topic ?: TopicResponseModel ;
57
+ topicStatus ?: TopicResponseModel ;
58
58
} ;
59
59
60
60
export class IngestionStatusResponseModelFactory {
61
- static create ( jobName : string , jobType : string , topic ?: TopicResponseModel ) : IngestionStatusResponseModel {
62
- return { jobName : jobName , jobType : jobType , topic : topic } ;
61
+ static create ( jobName : string , jobType : string , topicStatus ?: TopicResponseModel ) : IngestionStatusResponseModel {
62
+ return { jobName : jobName , jobType : jobType , topicStatus : topicStatus } ;
63
63
}
64
64
}
65
65
0 commit comments