{"size": 1291, "ext": "js", "max_stars_repo_path": "searches/find_invoice_draft.js", "max_stars_repo_name": "nortero-code/zapier-fiken", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "searches/find_invoice_draft.js", "max_issues_repo_name": "nortero-code/zapier-fiken", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "searches/find_invoice_draft.js", "max_forks_repo_name": "nortero-code/zapier-fiken", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 26.3469387755, "max_line_length": 90, "alphanum_fraction": 0.5592563904}
module.exports = {
  operation: {
    perform: {
      url:
        'https://api.fiken.no/api/v2/companies/{{bundle.inputData.slug}}/invoices/drafts',
      method: 'GET',
      params: {
        slug: '{{bundle.inputData.slug}}',
        orderReference: '{{bundle.inputData.orderReference}}',
      },
      headers: {
        'Content-Type': 'application/json',
        Accept: 'application/json',
        Authorization: 'Bearer {{bundle.authData.access_token}}',
        'X-ORDER-REFERENCE': '{{bundle.inputData.orderReference}}',
      },
      body: { orderReference: '{{bundle.inputData.orderReference}}' },
      removeMissingValuesFrom: {},
    },
    inputFields: [
      {
        key: 'slug',
        label: 'Fiken Company',
        type: 'string',
        dynamic: 'get_companies.slug.slug',
        required: true,
        list: false,
        altersDynamicFields: false,
      },
      {
        key: 'orderReference',
        label: 'Order Reference',
        type: 'string',
        required: false,
        list: false,
        altersDynamicFields: false,
      },
    ],
  },
  key: 'find_invoice_draft',
  noun: 'Invoice Draft',
  display: {
    label: 'Find Invoice Draft',
    description: 'Finds a Fiken Invoice Draft',
    hidden: false,
    important: false,
  },
};
