@resolveio/server-lib 22.3.192 → 22.3.193
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/package.json
CHANGED
|
@@ -1513,6 +1513,41 @@ function supportDiagnosisBeforeRepairGate(diagnosisGate, repairEvidence, now) {
|
|
|
1513
1513
|
}
|
|
1514
1514
|
};
|
|
1515
1515
|
}
|
|
1516
|
+
function supportOwnerFileScopeGate(diagnosisGate, repairEvidence, now) {
|
|
1517
|
+
if (!repairEvidence.attempted) {
|
|
1518
|
+
return undefined;
|
|
1519
|
+
}
|
|
1520
|
+
var validation = (0, support_runner_v5_1.validateResolveIOSupportDiagnosisGate)(diagnosisGate);
|
|
1521
|
+
if (!validation.valid || !validation.normalized) {
|
|
1522
|
+
return undefined;
|
|
1523
|
+
}
|
|
1524
|
+
var outsideOwnerFiles = (0, support_runner_v5_1.changedFilesOutsideResolveIOSupportDiagnosisOwnerFiles)(validation.normalized, repairEvidence.changedFiles, { allowTests: true });
|
|
1525
|
+
var status = outsideOwnerFiles.length ? 'blocked' : 'pass';
|
|
1526
|
+
return {
|
|
1527
|
+
key: 'support_owner_file_scope',
|
|
1528
|
+
label: 'Support owner-file scope',
|
|
1529
|
+
status: status,
|
|
1530
|
+
reason: outsideOwnerFiles.length
|
|
1531
|
+
? "Support repair changed files outside diagnosis owner_files; revise diagnosis with new evidence before broadening edits: ".concat(outsideOwnerFiles.join(', '))
|
|
1532
|
+
: 'Support repair stayed within diagnosis owner_files; test-only changes are allowed as supporting evidence.',
|
|
1533
|
+
evidenceRefs: outsideOwnerFiles.length ? outsideOwnerFiles : repairEvidence.changedFiles,
|
|
1534
|
+
recordedAt: isoNow(now),
|
|
1535
|
+
metadata: {
|
|
1536
|
+
repairAttempted: true,
|
|
1537
|
+
diagnosisValid: true,
|
|
1538
|
+
issueClass: validation.normalized.issue_class,
|
|
1539
|
+
ownerFiles: validation.normalized.owner_files,
|
|
1540
|
+
changedFiles: repairEvidence.changedFiles,
|
|
1541
|
+
outsideOwnerFiles: outsideOwnerFiles,
|
|
1542
|
+
allowedTestFilesOutsideOwnerScope: true,
|
|
1543
|
+
productRepairAllowed: outsideOwnerFiles.length === 0,
|
|
1544
|
+
allowedDispatchAction: outsideOwnerFiles.length ? 'run_read_only_diagnosis' : 'run_business_proof_qa',
|
|
1545
|
+
requiredEvidence: outsideOwnerFiles.length
|
|
1546
|
+
? ['revised SupportDiagnosisGate with evidence for each new owner file', 'updated failing_path and proof_plan matching broadened scope']
|
|
1547
|
+
: ['compile/unit proof', 'AIQaBusinessAssertion mapped to diagnosis proof_plan']
|
|
1548
|
+
}
|
|
1549
|
+
};
|
|
1550
|
+
}
|
|
1516
1551
|
function evidenceObject() {
|
|
1517
1552
|
var e_27, _a;
|
|
1518
1553
|
var values = [];
|
|
@@ -3086,7 +3121,7 @@ function applyAssistantAnswerQualityGate(qa, decision, now) {
|
|
|
3086
3121
|
}
|
|
3087
3122
|
function buildSupportAIRunFromEvidence(input) {
|
|
3088
3123
|
var e_32, _a, e_33, _b;
|
|
3089
|
-
var _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42, _43, _44;
|
|
3124
|
+
var _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42, _43, _44, _45, _46, _47, _48, _49, _50, _51;
|
|
3090
3125
|
var ticket = input.ticket || {};
|
|
3091
3126
|
var job = input.job || {};
|
|
3092
3127
|
var evidence = buildSupportQaEvidence(input);
|
|
@@ -3098,8 +3133,8 @@ function buildSupportAIRunFromEvidence(input) {
|
|
|
3098
3133
|
addSourceId(sourceIds, 'jobId', job._id || job.id || job.jobId);
|
|
3099
3134
|
addSourceId(sourceIds, 'buildPlanId', job.buildPlanId || ticket.buildPlanId);
|
|
3100
3135
|
try {
|
|
3101
|
-
for (var
|
|
3102
|
-
var event_1 =
|
|
3136
|
+
for (var _52 = __values(asArray(input.taskEvents)), _53 = _52.next(); !_53.done; _53 = _52.next()) {
|
|
3137
|
+
var event_1 = _53.value;
|
|
3103
3138
|
pushEvent(events, {
|
|
3104
3139
|
type: event_1.type === 'human_intervention' ? 'human_intervention' : 'log',
|
|
3105
3140
|
category: cleanText(event_1.category || event_1.phase || event_1.type, 160),
|
|
@@ -3116,13 +3151,13 @@ function buildSupportAIRunFromEvidence(input) {
|
|
|
3116
3151
|
catch (e_32_1) { e_32 = { error: e_32_1 }; }
|
|
3117
3152
|
finally {
|
|
3118
3153
|
try {
|
|
3119
|
-
if (
|
|
3154
|
+
if (_53 && !_53.done && (_a = _52.return)) _a.call(_52);
|
|
3120
3155
|
}
|
|
3121
3156
|
finally { if (e_32) throw e_32.error; }
|
|
3122
3157
|
}
|
|
3123
3158
|
try {
|
|
3124
|
-
for (var
|
|
3125
|
-
var aiJob =
|
|
3159
|
+
for (var _54 = __values(asArray(input.aiJobs)), _55 = _54.next(); !_55.done; _55 = _54.next()) {
|
|
3160
|
+
var aiJob = _55.value;
|
|
3126
3161
|
pushEvent(events, {
|
|
3127
3162
|
type: aiJob.model ? 'model_call' : 'log',
|
|
3128
3163
|
category: cleanText(aiJob.category || aiJob.phase || aiJob.runner, 160),
|
|
@@ -3140,7 +3175,7 @@ function buildSupportAIRunFromEvidence(input) {
|
|
|
3140
3175
|
catch (e_33_1) { e_33 = { error: e_33_1 }; }
|
|
3141
3176
|
finally {
|
|
3142
3177
|
try {
|
|
3143
|
-
if (
|
|
3178
|
+
if (_55 && !_55.done && (_b = _54.return)) _b.call(_54);
|
|
3144
3179
|
}
|
|
3145
3180
|
finally { if (e_33) throw e_33.error; }
|
|
3146
3181
|
}
|
|
@@ -3292,6 +3327,18 @@ function buildSupportAIRunFromEvidence(input) {
|
|
|
3292
3327
|
metadata: diagnosisBeforeRepairGate.metadata
|
|
3293
3328
|
});
|
|
3294
3329
|
}
|
|
3330
|
+
var ownerFileScopeGate = supportOwnerFileScopeGate(diagnosisGate, productRepairEvidence, input.now);
|
|
3331
|
+
if (ownerFileScopeGate) {
|
|
3332
|
+
gates.push(ownerFileScopeGate);
|
|
3333
|
+
pushEvent(events, {
|
|
3334
|
+
type: 'log',
|
|
3335
|
+
category: 'support_owner_file_scope',
|
|
3336
|
+
message: ownerFileScopeGate.reason,
|
|
3337
|
+
artifactPaths: ownerFileScopeGate.evidenceRefs,
|
|
3338
|
+
recordedAt: ownerFileScopeGate.recordedAt,
|
|
3339
|
+
metadata: ownerFileScopeGate.metadata
|
|
3340
|
+
});
|
|
3341
|
+
}
|
|
3295
3342
|
var qa = applySupportDiagnosisProofGate(buildQaFromEvidence(evidence, input.now), diagnosisGate, input.now);
|
|
3296
3343
|
var diagnosisOwnerFiles = asArray(diagnosisGate.owner_files || diagnosisGate.ownerFiles);
|
|
3297
3344
|
var diagnosisIssueClass = cleanText(diagnosisGate.issue_class || diagnosisGate.issueClass, 120);
|
|
@@ -3344,51 +3391,61 @@ function buildSupportAIRunFromEvidence(input) {
|
|
|
3344
3391
|
productRepairAllowed: ((_l = diagnosisBeforeRepairGate.metadata) === null || _l === void 0 ? void 0 : _l.productRepairAllowed) === true,
|
|
3345
3392
|
blockers: cleanStringList((_m = diagnosisBeforeRepairGate.metadata) === null || _m === void 0 ? void 0 : _m.blockers, 20, 500)
|
|
3346
3393
|
} : undefined,
|
|
3394
|
+
ownerFileScope: ownerFileScopeGate ? {
|
|
3395
|
+
status: ownerFileScopeGate.status,
|
|
3396
|
+
productRepairAllowed: ((_o = ownerFileScopeGate.metadata) === null || _o === void 0 ? void 0 : _o.productRepairAllowed) === true,
|
|
3397
|
+
allowedDispatchAction: cleanText((_p = ownerFileScopeGate.metadata) === null || _p === void 0 ? void 0 : _p.allowedDispatchAction, 160),
|
|
3398
|
+
ownerFiles: cleanStringList((_q = ownerFileScopeGate.metadata) === null || _q === void 0 ? void 0 : _q.ownerFiles, 40, 500),
|
|
3399
|
+
changedFiles: cleanStringList((_r = ownerFileScopeGate.metadata) === null || _r === void 0 ? void 0 : _r.changedFiles, 60, 500),
|
|
3400
|
+
outsideOwnerFiles: cleanStringList((_s = ownerFileScopeGate.metadata) === null || _s === void 0 ? void 0 : _s.outsideOwnerFiles, 40, 500),
|
|
3401
|
+
allowedTestFilesOutsideOwnerScope: ((_t = ownerFileScopeGate.metadata) === null || _t === void 0 ? void 0 : _t.allowedTestFilesOutsideOwnerScope) === true,
|
|
3402
|
+
requiredEvidence: cleanStringList((_u = ownerFileScopeGate.metadata) === null || _u === void 0 ? void 0 : _u.requiredEvidence, 20, 500)
|
|
3403
|
+
} : undefined,
|
|
3347
3404
|
rootCauseEntryContract: Object.keys(rootCauseEntryContract).length ? {
|
|
3348
3405
|
contractId: cleanText(rootCauseEntryContract.contract_id || rootCauseEntryContract.contractId, 160),
|
|
3349
3406
|
version: cleanText(rootCauseEntryContract.version, 120),
|
|
3350
3407
|
status: cleanText(rootCauseEntryContract.status, 120),
|
|
3351
3408
|
issueClassProbeCount: asArray(rootCauseEntryContract.issue_class_probes || rootCauseEntryContract.issueClassProbes).length,
|
|
3352
|
-
ownerFileMax: Number(((
|
|
3353
|
-
requiresBusinessAssertion: ((
|
|
3354
|
-
|| ((
|
|
3409
|
+
ownerFileMax: Number(((_v = rootCauseEntryContract.owner_file_policy) === null || _v === void 0 ? void 0 : _v.max_files) || ((_w = rootCauseEntryContract.ownerFilePolicy) === null || _w === void 0 ? void 0 : _w.maxFiles) || 0) || 0,
|
|
3410
|
+
requiresBusinessAssertion: ((_x = rootCauseEntryContract.business_proof_policy) === null || _x === void 0 ? void 0 : _x.requires_aiqa_business_assertion) === true
|
|
3411
|
+
|| ((_y = rootCauseEntryContract.businessProofPolicy) === null || _y === void 0 ? void 0 : _y.requiresAiqaBusinessAssertion) === true
|
|
3355
3412
|
} : undefined,
|
|
3356
3413
|
diagnosis: Object.keys(diagnosisGate).length ? {
|
|
3357
3414
|
status: cleanText(diagnosisGate.status, 80),
|
|
3358
3415
|
issueClass: diagnosisIssueClass,
|
|
3359
3416
|
ownerFiles: diagnosisOwnerFiles,
|
|
3360
|
-
acceptedHypothesis: cleanText(((
|
|
3417
|
+
acceptedHypothesis: cleanText(((_z = diagnosisGate.accepted_hypothesis) === null || _z === void 0 ? void 0 : _z.statement) || ((_0 = diagnosisGate.acceptedHypothesis) === null || _0 === void 0 ? void 0 : _0.statement), 1000),
|
|
3361
3418
|
proofPlan: diagnosisGate.proof_plan || diagnosisGate.proofPlan
|
|
3362
3419
|
} : undefined,
|
|
3363
3420
|
diagnosisEvidencePack: diagnosisEvidencePackGate ? {
|
|
3364
|
-
status: cleanText((
|
|
3421
|
+
status: cleanText((_1 = diagnosisEvidencePackGate.metadata) === null || _1 === void 0 ? void 0 : _1.status, 120),
|
|
3365
3422
|
gateStatus: diagnosisEvidencePackGate.status,
|
|
3366
|
-
packId: cleanText((
|
|
3367
|
-
readOnly: ((
|
|
3368
|
-
sourceEditsAllowed: ((
|
|
3369
|
-
requiredOutputKey: cleanText((
|
|
3370
|
-
diagnosisValid: ((
|
|
3371
|
-
issueClassHint: cleanText((
|
|
3372
|
-
ownerFileHints: cleanStringList((
|
|
3373
|
-
similarHintCount: Number(((
|
|
3374
|
-
similarHintsAdvisoryOnly: ((
|
|
3375
|
-
issueClassProbeCount: Number(((
|
|
3376
|
-
validationBlockers: cleanStringList((
|
|
3423
|
+
packId: cleanText((_2 = diagnosisEvidencePackGate.metadata) === null || _2 === void 0 ? void 0 : _2.packId, 180),
|
|
3424
|
+
readOnly: ((_3 = diagnosisEvidencePackGate.metadata) === null || _3 === void 0 ? void 0 : _3.readOnly) !== false,
|
|
3425
|
+
sourceEditsAllowed: ((_4 = diagnosisEvidencePackGate.metadata) === null || _4 === void 0 ? void 0 : _4.sourceEditsAllowed) === true,
|
|
3426
|
+
requiredOutputKey: cleanText((_5 = diagnosisEvidencePackGate.metadata) === null || _5 === void 0 ? void 0 : _5.requiredOutputKey, 120),
|
|
3427
|
+
diagnosisValid: ((_6 = diagnosisEvidencePackGate.metadata) === null || _6 === void 0 ? void 0 : _6.diagnosisValid) === true,
|
|
3428
|
+
issueClassHint: cleanText((_7 = diagnosisEvidencePackGate.metadata) === null || _7 === void 0 ? void 0 : _7.issueClassHint, 120),
|
|
3429
|
+
ownerFileHints: cleanStringList((_8 = diagnosisEvidencePackGate.metadata) === null || _8 === void 0 ? void 0 : _8.ownerFileHints, 20, 500),
|
|
3430
|
+
similarHintCount: Number(((_9 = diagnosisEvidencePackGate.metadata) === null || _9 === void 0 ? void 0 : _9.similarHintCount) || 0),
|
|
3431
|
+
similarHintsAdvisoryOnly: ((_10 = diagnosisEvidencePackGate.metadata) === null || _10 === void 0 ? void 0 : _10.similarHintsAdvisoryOnly) === true,
|
|
3432
|
+
issueClassProbeCount: Number(((_11 = diagnosisEvidencePackGate.metadata) === null || _11 === void 0 ? void 0 : _11.issueClassProbeCount) || 0),
|
|
3433
|
+
validationBlockers: cleanStringList((_12 = diagnosisEvidencePackGate.metadata) === null || _12 === void 0 ? void 0 : _12.validationBlockers, 20, 500)
|
|
3377
3434
|
} : undefined,
|
|
3378
3435
|
issueClassProbePlan: issueClassProbePlanGate ? {
|
|
3379
|
-
status: cleanText((
|
|
3436
|
+
status: cleanText((_13 = issueClassProbePlanGate.metadata) === null || _13 === void 0 ? void 0 : _13.status, 120),
|
|
3380
3437
|
gateStatus: issueClassProbePlanGate.status,
|
|
3381
|
-
planId: cleanText((
|
|
3382
|
-
issueClass: cleanText((
|
|
3383
|
-
diagnosisValid: ((
|
|
3384
|
-
issueClassProbePlanReady: ((
|
|
3385
|
-
activeRoute: cleanText((
|
|
3386
|
-
action: cleanText((
|
|
3387
|
-
expectedBusinessProof: cleanText((
|
|
3388
|
-
acceptanceGate: cleanText((
|
|
3389
|
-
requiredArtifacts: cleanStringList((
|
|
3390
|
-
falsePassBlockers: cleanStringList((
|
|
3391
|
-
blockers: cleanStringList((
|
|
3438
|
+
planId: cleanText((_14 = issueClassProbePlanGate.metadata) === null || _14 === void 0 ? void 0 : _14.planId, 180),
|
|
3439
|
+
issueClass: cleanText((_15 = issueClassProbePlanGate.metadata) === null || _15 === void 0 ? void 0 : _15.issueClass, 120),
|
|
3440
|
+
diagnosisValid: ((_16 = issueClassProbePlanGate.metadata) === null || _16 === void 0 ? void 0 : _16.diagnosisValid) === true,
|
|
3441
|
+
issueClassProbePlanReady: ((_17 = issueClassProbePlanGate.metadata) === null || _17 === void 0 ? void 0 : _17.issueClassProbePlanReady) === true,
|
|
3442
|
+
activeRoute: cleanText((_18 = issueClassProbePlanGate.metadata) === null || _18 === void 0 ? void 0 : _18.activeRoute, 500),
|
|
3443
|
+
action: cleanText((_19 = issueClassProbePlanGate.metadata) === null || _19 === void 0 ? void 0 : _19.action, 1000),
|
|
3444
|
+
expectedBusinessProof: cleanText((_20 = issueClassProbePlanGate.metadata) === null || _20 === void 0 ? void 0 : _20.expectedBusinessProof, 1200),
|
|
3445
|
+
acceptanceGate: cleanText((_21 = issueClassProbePlanGate.metadata) === null || _21 === void 0 ? void 0 : _21.acceptanceGate, 120),
|
|
3446
|
+
requiredArtifacts: cleanStringList((_22 = issueClassProbePlanGate.metadata) === null || _22 === void 0 ? void 0 : _22.requiredArtifacts, 20, 500),
|
|
3447
|
+
falsePassBlockers: cleanStringList((_23 = issueClassProbePlanGate.metadata) === null || _23 === void 0 ? void 0 : _23.falsePassBlockers, 20, 500),
|
|
3448
|
+
blockers: cleanStringList((_24 = issueClassProbePlanGate.metadata) === null || _24 === void 0 ? void 0 : _24.blockers, 20, 500)
|
|
3392
3449
|
} : undefined,
|
|
3393
3450
|
businessProofReadiness: Object.keys(businessProofReadiness).length ? {
|
|
3394
3451
|
ready: businessProofReadiness.ready === true,
|
|
@@ -3398,19 +3455,19 @@ function buildSupportAIRunFromEvidence(input) {
|
|
|
3398
3455
|
} : undefined,
|
|
3399
3456
|
nextActionContract: nextActionContractGate ? {
|
|
3400
3457
|
status: nextActionContractGate.status,
|
|
3401
|
-
action: cleanText((
|
|
3402
|
-
primaryCommand: cleanText((
|
|
3403
|
-
safeToAutoRun: ((
|
|
3404
|
-
canRunWithoutCodexMonitor: ((
|
|
3405
|
-
codexFallbackRequired: ((
|
|
3406
|
-
requiresHumanApproval: ((
|
|
3407
|
-
rootCauseFirstSatisfied: ((
|
|
3408
|
-
hotfixCommitRequired: ((
|
|
3409
|
-
liveHotfixBlockedUntilCommit: ((
|
|
3410
|
-
failureClass: cleanText((
|
|
3411
|
-
evidenceFreshnessStatus: cleanText((
|
|
3412
|
-
sameFailureCount: Number(((
|
|
3413
|
-
blockers: cleanStringList((
|
|
3458
|
+
action: cleanText((_25 = nextActionContractGate.metadata) === null || _25 === void 0 ? void 0 : _25.action, 160),
|
|
3459
|
+
primaryCommand: cleanText((_26 = nextActionContractGate.metadata) === null || _26 === void 0 ? void 0 : _26.primaryCommand, 240),
|
|
3460
|
+
safeToAutoRun: ((_27 = nextActionContractGate.metadata) === null || _27 === void 0 ? void 0 : _27.safeToAutoRun) === true,
|
|
3461
|
+
canRunWithoutCodexMonitor: ((_28 = nextActionContractGate.metadata) === null || _28 === void 0 ? void 0 : _28.canRunWithoutCodexMonitor) === true,
|
|
3462
|
+
codexFallbackRequired: ((_29 = nextActionContractGate.metadata) === null || _29 === void 0 ? void 0 : _29.codexFallbackRequired) === true,
|
|
3463
|
+
requiresHumanApproval: ((_30 = nextActionContractGate.metadata) === null || _30 === void 0 ? void 0 : _30.requiresHumanApproval) === true,
|
|
3464
|
+
rootCauseFirstSatisfied: ((_31 = nextActionContractGate.metadata) === null || _31 === void 0 ? void 0 : _31.rootCauseFirstSatisfied) === true,
|
|
3465
|
+
hotfixCommitRequired: ((_32 = nextActionContractGate.metadata) === null || _32 === void 0 ? void 0 : _32.hotfixCommitRequired) === true,
|
|
3466
|
+
liveHotfixBlockedUntilCommit: ((_33 = nextActionContractGate.metadata) === null || _33 === void 0 ? void 0 : _33.liveHotfixBlockedUntilCommit) === true,
|
|
3467
|
+
failureClass: cleanText((_34 = nextActionContractGate.metadata) === null || _34 === void 0 ? void 0 : _34.failureClass, 120),
|
|
3468
|
+
evidenceFreshnessStatus: cleanText((_35 = nextActionContractGate.metadata) === null || _35 === void 0 ? void 0 : _35.evidenceFreshnessStatus, 120),
|
|
3469
|
+
sameFailureCount: Number(((_36 = nextActionContractGate.metadata) === null || _36 === void 0 ? void 0 : _36.sameFailureCount) || 0),
|
|
3470
|
+
blockers: cleanStringList((_37 = nextActionContractGate.metadata) === null || _37 === void 0 ? void 0 : _37.blockers, 20, 500)
|
|
3414
3471
|
} : undefined,
|
|
3415
3472
|
customerReplyPolicy: Object.keys(customerReplyPolicy).length ? {
|
|
3416
3473
|
action: cleanText(customerReplyPolicy.action, 120),
|
|
@@ -3418,17 +3475,17 @@ function buildSupportAIRunFromEvidence(input) {
|
|
|
3418
3475
|
canDraftCustomerReply: customerReplyPolicy.canDraftCustomerReply === true || customerReplyPolicy.can_draft_customer_reply === true,
|
|
3419
3476
|
canSendCustomerReply: customerReplyPolicy.canSendCustomerReply === true || customerReplyPolicy.can_send_customer_reply === true,
|
|
3420
3477
|
reason: cleanText(customerReplyPolicy.reason, 1000),
|
|
3421
|
-
reviewType: cleanText(((
|
|
3422
|
-
|| ((
|
|
3423
|
-
|| ((
|
|
3424
|
-
primaryAction: cleanText(((
|
|
3425
|
-
|| ((
|
|
3426
|
-
|| ((
|
|
3478
|
+
reviewType: cleanText(((_38 = customerReplyPolicy.humanReviewPacket) === null || _38 === void 0 ? void 0 : _38.reviewType)
|
|
3479
|
+
|| ((_39 = customerReplyPolicy.human_review_packet) === null || _39 === void 0 ? void 0 : _39.review_type)
|
|
3480
|
+
|| ((_40 = customerReplyPolicy.human_review_packet) === null || _40 === void 0 ? void 0 : _40.reviewType), 160),
|
|
3481
|
+
primaryAction: cleanText(((_41 = customerReplyPolicy.humanReviewPacket) === null || _41 === void 0 ? void 0 : _41.primaryAction)
|
|
3482
|
+
|| ((_42 = customerReplyPolicy.human_review_packet) === null || _42 === void 0 ? void 0 : _42.primary_action)
|
|
3483
|
+
|| ((_43 = customerReplyPolicy.human_review_packet) === null || _43 === void 0 ? void 0 : _43.primaryAction), 160),
|
|
3427
3484
|
clarificationContract: customerReplyPolicy.clarificationContract || customerReplyPolicy.clarification_contract ? {
|
|
3428
|
-
status: cleanText(((
|
|
3429
|
-
missingField: cleanText(((
|
|
3430
|
-
oneQuestionOnly: ((
|
|
3431
|
-
parksTicketUntilCustomerReply: ((
|
|
3485
|
+
status: cleanText(((_44 = customerReplyPolicy.clarificationContract) === null || _44 === void 0 ? void 0 : _44.status) || ((_45 = customerReplyPolicy.clarification_contract) === null || _45 === void 0 ? void 0 : _45.status), 120),
|
|
3486
|
+
missingField: cleanText(((_46 = customerReplyPolicy.clarificationContract) === null || _46 === void 0 ? void 0 : _46.missingField) || ((_47 = customerReplyPolicy.clarification_contract) === null || _47 === void 0 ? void 0 : _47.missing_field), 120),
|
|
3487
|
+
oneQuestionOnly: ((_48 = customerReplyPolicy.clarificationContract) === null || _48 === void 0 ? void 0 : _48.oneQuestionOnly) === true || ((_49 = customerReplyPolicy.clarification_contract) === null || _49 === void 0 ? void 0 : _49.one_question_only) === true,
|
|
3488
|
+
parksTicketUntilCustomerReply: ((_50 = customerReplyPolicy.clarificationContract) === null || _50 === void 0 ? void 0 : _50.parksTicketUntilCustomerReply) === true || ((_51 = customerReplyPolicy.clarification_contract) === null || _51 === void 0 ? void 0 : _51.parks_ticket_until_customer_reply) === true
|
|
3432
3489
|
} : undefined
|
|
3433
3490
|
} : undefined
|
|
3434
3491
|
}
|