Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
CristiCanizales committed Jan 6, 2025
1 parent 1f4d0cc commit 1eeb1e1
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,19 +142,19 @@ export class ApexActionController {
const updatedContent = existingContent
? existingContent.replace(/<schema>([\s\S]*?)<\/schema>/, `<schema>${oasSpec.replaceAll('"', '&apos;')}</schema>`)
: [
`<?xml version="1.0" encoding="UTF-8"?>`,
`<ExternalServiceRegistration xmlns="http://soap.sforce.com/2006/04/metadata">`,
'<?xml version="1.0" encoding="UTF-8"?>',
'<ExternalServiceRegistration xmlns="http://soap.sforce.com/2006/04/metadata">',
`\t<description>${path.basename(fullPath).split('.')[0]} External Service</description>`,
`\t<label>${path.basename(fullPath).split('.')[0]}</label>`,
`\t<namedCredentialReference>${namedCredential}</namedCredentialReference>`,
`\t<registrationProviderType>Custom</registrationProviderType>`,
'\t<registrationProviderType>Custom</registrationProviderType>',
`\t<schema>${oasSpec.replaceAll('"', '&apos;')}</schema>`,
`\t<schemaType>OpenApi3</schemaType>`,
`\t<schemaUploadFileExtension>yaml</schemaUploadFileExtension>`,
'\t<schemaType>OpenApi3</schemaType>',
'\t<schemaUploadFileExtension>yaml</schemaUploadFileExtension>',
`\t<schemaUploadFileName>${path.basename(fullPath).split('.')[0].toLowerCase()}_openapi</schemaUploadFileName>`,
`\t<status>Complete</status>`,
`\t<systemVersion>5</systemVersion>`,
`</ExternalServiceRegistration>`
'\t<status>Complete</status>',
'\t<systemVersion>5</systemVersion>',
'</ExternalServiceRegistration>'
].join('\n');
try {
// Step 3: Write File
Expand Down

0 comments on commit 1eeb1e1

Please sign in to comment.