@@ -133,8 +133,13 @@ private static MutationRequest CreatePendingApprovalRequest(
133133 with
134134 {
135135 RequestId = requestId ,
136- CreatedAt = createdAt ,
137- UpdatedAt = createdAt ,
136+ Lifecycle = new MutationRequestLifecycleDetails
137+ {
138+ Status = MutationRequestStatus . Pending ,
139+ PendingReason = PendingMutationReason . Approval ,
140+ CreatedAt = createdAt ,
141+ UpdatedAt = createdAt
142+ } ,
138143 Metadata = new Dictionary < string , object >
139144 {
140145 [ "ticket" ] = category == "Security" ? "INC-42" : "BILL-7"
@@ -176,8 +181,13 @@ private static MutationRequest CreateExternalCheckRequest(
176181 with
177182 {
178183 RequestId = requestId ,
179- CreatedAt = createdAt ,
180- UpdatedAt = createdAt ,
184+ Lifecycle = new MutationRequestLifecycleDetails
185+ {
186+ Status = MutationRequestStatus . Pending ,
187+ PendingReason = PendingMutationReason . ExternalCheck ,
188+ CreatedAt = createdAt ,
189+ UpdatedAt = createdAt
190+ } ,
181191 Metadata = new Dictionary < string , object >
182192 {
183193 [ "ticket" ] = "REL-99"
@@ -214,10 +224,13 @@ private static MutationRequest CreateRecentlyApprovedRequest(
214224 with
215225 {
216226 RequestId = requestId ,
217- Status = MutationRequestStatus . Approved ,
218- PendingReason = null ,
219- CreatedAt = approvedAt . AddMinutes ( - 20 ) ,
220- UpdatedAt = approvedAt ,
227+ Lifecycle = new MutationRequestLifecycleDetails
228+ {
229+ Status = MutationRequestStatus . Approved ,
230+ PendingReason = null ,
231+ CreatedAt = approvedAt . AddMinutes ( - 20 ) ,
232+ UpdatedAt = approvedAt
233+ } ,
221234 Metadata = new Dictionary < string , object >
222235 {
223236 [ "ticket" ] = category == "Security" ? "INC-77" : "BILL-9"
@@ -297,9 +310,12 @@ private static MutationRequest CreateResolvedRequest(
297310 with
298311 {
299312 RequestId = requestId ,
300- Status = MutationRequestStatus . Approved ,
301- CreatedAt = decisionTimestamp . AddMinutes ( - 30 ) ,
302- UpdatedAt = decisionTimestamp ,
313+ Lifecycle = new MutationRequestLifecycleDetails
314+ {
315+ Status = MutationRequestStatus . Approved ,
316+ CreatedAt = decisionTimestamp . AddMinutes ( - 30 ) ,
317+ UpdatedAt = decisionTimestamp
318+ } ,
303319 Metadata = new Dictionary < string , object >
304320 {
305321 [ "ticket" ] = "CFG-5"
@@ -348,10 +364,16 @@ private static MutationRequest CreateExecutedRequest(
348364 with
349365 {
350366 RequestId = requestId ,
351- Status = MutationRequestStatus . Executed ,
352- CreatedAt = executedAt . AddMinutes ( - 15 ) ,
353- UpdatedAt = executedAt ,
354- ExecutedAt = executedAt ,
367+ Lifecycle = new MutationRequestLifecycleDetails
368+ {
369+ Status = MutationRequestStatus . Executed ,
370+ CreatedAt = executedAt . AddMinutes ( - 15 ) ,
371+ UpdatedAt = executedAt
372+ } ,
373+ Versioning = new MutationRequestVersioningDetails
374+ {
375+ ExecutedAt = executedAt
376+ } ,
355377 SideEffects =
356378 [
357379 SideEffect . Critical (
0 commit comments