Skip to content

Commit

Permalink
Feat/dat 27 add treatment to create workbook (#564)
Browse files Browse the repository at this point in the history
* Updated Flatfile API packages. Added workbook.treatment for extractors

* Updated Flatfile API packages. Added workbook.treatment for extractors

* added changeset

* updated from minor to patch version
  • Loading branch information
damonbanks authored Jul 16, 2024
1 parent 021b609 commit 57bf814
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 17 deletions.
5 changes: 5 additions & 0 deletions .changeset/tidy-owls-fly.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@flatfile/util-extractor': patch
---

Added Treatments to extracted files. Used internally for identification.
28 changes: 14 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions utils/extractor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@flatfile/util-file-buffer": "^0.3.2"
},
"peerDependencies": {
"@flatfile/api": "^1.8.10",
"@flatfile/listener": "^1.0.1"
"@flatfile/api": "^1.9.5",
"@flatfile/listener": "^1.0.5"
}
}
3 changes: 2 additions & 1 deletion utils/extractor/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,11 @@ function getWorkbookConfig(

return {
name: `[file] ${name}`,
labels: ['file'],
labels: ['file'], // we use this on the backend to add the EXTRACTED_FROM_SOURCE treatment to the workbook on previous versions of the plugin
spaceId,
environmentId,
sheets,
treatments: [Flatfile.WorkbookTreatments.ExtractedFromSource],
}
}

Expand Down

0 comments on commit 57bf814

Please sign in to comment.