Skip to content

Commit 4c4bfd0

Browse files
Bill LeoutsakosBill Leoutsakos
authored andcommitted
style(oracle-hcm): finish source declaration formatting
1 parent fe9e10c commit 4c4bfd0

3 files changed

Lines changed: 141 additions & 92 deletions

File tree

apps/sim/blocks/blocks/oracle_fusion_hcm.ts

Lines changed: 29 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2008,7 +2008,10 @@ export const OracleFusionHcmBlock: BlockConfig = {
20082008
type: 'boolean',
20092009
description: 'Explicitly clear the element input value',
20102010
},
2011-
objectActionId: { type: 'string', description: 'Object action ID, as a positive decimal string' },
2011+
objectActionId: {
2012+
type: 'string',
2013+
description: 'Object action ID, as a positive decimal string',
2014+
},
20122015
salaryId: { type: 'string', description: 'Salary ID, as a positive decimal string' },
20132016
salaryBasisId: { type: 'string', description: 'Salary basis ID, as a positive decimal string' },
20142017
salaryAmount: {
@@ -2023,7 +2026,10 @@ export const OracleFusionHcmBlock: BlockConfig = {
20232026
description: 'Component family: standard, simple, or rate; each is independently paginated',
20242027
},
20252028
gradeRateId: { type: 'string', description: 'Grade rate ID, as a positive decimal string' },
2026-
reviewPeriodId: { type: 'string', description: 'Review period ID, as a positive decimal string' },
2029+
reviewPeriodId: {
2030+
type: 'string',
2031+
description: 'Review period ID, as a positive decimal string',
2032+
},
20272033
goalPlanId: { type: 'string', description: 'Goal plan ID, as a positive decimal string' },
20282034
goalId: { type: 'string', description: 'Goal ID, as a positive decimal string' },
20292035
evaluationId: { type: 'string', description: 'Evaluation ID, as a positive decimal string' },
@@ -2054,7 +2060,10 @@ export const OracleFusionHcmBlock: BlockConfig = {
20542060
type: 'string',
20552061
description: 'Time record group ID, as a positive decimal string',
20562062
},
2057-
timeAttributeId: { type: 'string', description: 'Time attribute ID, as a positive decimal string' },
2063+
timeAttributeId: {
2064+
type: 'string',
2065+
description: 'Time attribute ID, as a positive decimal string',
2066+
},
20582067
dataSourceUsageId: {
20592068
type: 'string',
20602069
description: 'Data source usage ID, as a positive decimal string',
@@ -2078,7 +2087,8 @@ export const OracleFusionHcmBlock: BlockConfig = {
20782087
},
20792088
payrollTimeType: {
20802089
type: 'string',
2081-
description: 'PayrollTimeType attribute value discovered for the assignment and effective date',
2090+
description:
2091+
'PayrollTimeType attribute value discovered for the assignment and effective date',
20822092
},
20832093
timeAttributes: {
20842094
type: 'json',
@@ -2093,7 +2103,8 @@ export const OracleFusionHcmBlock: BlockConfig = {
20932103
changeReason: { type: 'string', description: 'Tenant-configured audit change reason code' },
20942104
timeRecordVersion: {
20952105
type: 'number',
2096-
description: 'Current time-record version from get_time_record; required for update and delete',
2106+
description:
2107+
'Current time-record version from get_time_record; required for update and delete',
20972108
},
20982109
timeRecordEventRequestId: {
20992110
type: 'string',
@@ -2154,7 +2165,10 @@ export const OracleFusionHcmBlock: BlockConfig = {
21542165
type: 'json',
21552166
description:
21562167
'Assigned Payroll: assignedPayrollId, payrollId, payrollName, startDate, endDate, effectiveStartDate, effectiveEndDate, lsed, overridingPeriodId, and documented resource details',
2157-
condition: { field: 'operation', value: ['get_assigned_payroll', 'create_assigned_payroll', 'update_assigned_payroll'] },
2168+
condition: {
2169+
field: 'operation',
2170+
value: ['get_assigned_payroll', 'create_assigned_payroll', 'update_assigned_payroll'],
2171+
},
21582172
},
21592173
payrollDefinitions: {
21602174
type: 'json',
@@ -2420,7 +2434,15 @@ export const OracleFusionHcmBlock: BlockConfig = {
24202434
timeRecordRequest: {
24212435
type: 'json',
24222436
description: 'Time Record Request: timeRecordEventRequestId, processInline, processMode',
2423-
condition: { field: 'operation', value: ['create_time_entry', 'update_time_entry', 'delete_time_entry', 'get_time_record_request'] },
2437+
condition: {
2438+
field: 'operation',
2439+
value: [
2440+
'create_time_entry',
2441+
'update_time_entry',
2442+
'delete_time_entry',
2443+
'get_time_record_request',
2444+
],
2445+
},
24242446
},
24252447
timeRecordRequestEvents: {
24262448
type: 'json',

apps/sim/lib/internal/oracle-fusion-hcm/operations.ts

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1794,7 +1794,10 @@ export async function executeOracleFusionHcmListTalentProfiles(
17941794
},
17951795
signal
17961796
)
1797-
return { success: true as const, output: { talentProfiles: result.items, ...withoutItems(result) } }
1797+
return {
1798+
success: true as const,
1799+
output: { talentProfiles: result.items, ...withoutItems(result) },
1800+
}
17981801
}
17991802

18001803
/** Oracle contract: https://docs.oracle.com/en/cloud/saas/human-resources/farws/op-talentpersonprofiles-get.html */
@@ -1983,7 +1986,10 @@ export async function executeOracleFusionHcmListTimeAttributes(
19831986
},
19841987
signal
19851988
)
1986-
return { success: true as const, output: { timeAttributes: result.items, ...withoutItems(result) } }
1989+
return {
1990+
success: true as const,
1991+
output: { timeAttributes: result.items, ...withoutItems(result) },
1992+
}
19871993
}
19881994

19891995
/** Oracle contract: https://docs.oracle.com/en/cloud/saas/human-resources/farws/op-timeattributes-timeattributesuniqid-child-datasourceusages-get.html */
@@ -2308,7 +2314,11 @@ async function requireUserEnteredSalaryBasis(
23082314
},
23092315
signal
23102316
)
2311-
if (result.items.length !== 1 || result.hasMore || result.items[0].salaryBasisId !== salaryBasisId) {
2317+
if (
2318+
result.items.length !== 1 ||
2319+
result.hasMore ||
2320+
result.items[0].salaryBasisId !== salaryBasisId
2321+
) {
23122322
throw new OracleFusionProviderError(
23132323
'Oracle Fusion HCM salary basis could not be uniquely resolved',
23142324
422
@@ -2407,11 +2417,14 @@ async function submitTimeEntry(
24072417
operationType !== 'ADD' && 'timeRecordVersion' in input
24082418
? input.timeRecordVersion
24092419
: undefined,
2410-
startTime: operationType !== 'DELETE' && 'startTime' in input ? input.startTime : undefined,
2420+
startTime:
2421+
operationType !== 'DELETE' && 'startTime' in input ? input.startTime : undefined,
24112422
stopTime: operationType !== 'DELETE' && 'stopTime' in input ? input.stopTime : undefined,
24122423
measure: operationType !== 'DELETE' && 'measure' in input ? input.measure : undefined,
24132424
referenceDate:
2414-
operationType !== 'DELETE' && 'referenceDate' in input ? input.referenceDate : undefined,
2425+
operationType !== 'DELETE' && 'referenceDate' in input
2426+
? input.referenceDate
2427+
: undefined,
24152428
timeRecordEventAttribute: attributes.length ? attributes : undefined,
24162429
}),
24172430
],

0 commit comments

Comments
 (0)