Untitled

mail@pastecode.io avatar
unknown
typescript
a year ago
1.0 kB
1
Indexable
Never
import { fromPipeDream } from '@automation/components/pipedream';
import { typeFor } from '@automation/helpers/value';

const path = 'bitbucket/actions/get-file-from-repository/get-file-from-repository.js';

export const definition = fromPipeDream(path, {
	id: 'action.bitbucket.get-file-from-repository',
	icon: 'https://i.hizliresim.com/5cg3sym.png',
	auth: 'oauth',
	apiAction: 'noScope',
	desc: "Gets the actual file contents of a download artifact and not the artifact's metadata. [See docs here](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-downloads/#api-repositories-workspace-repo-slug-downloads-filename-get)",
	keywords: ['get file', 'get file from', 'get file from repository', 'repository', 'get'],
	inputs: [
		{
			name: 'filename',
			showOnDiagram: false,
		},
		{
			name: 'repositoryId',
			desc: 'Select a repository.',
		},
		{
			name: 'workspaceId',
			desc: 'Select a workspace.',
		},
	],
	outputs: [
		{
			name: 'file',
			type: typeFor('Empty'),
		},
	],
});