« get me outta code hell

data: Artist.artistContributions, Artist.contributorContributions - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/composite/wiki-properties
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-03-07 12:22:02 -0400
committer(quasar) nebula <qznebula@protonmail.com>2024-06-18 22:56:03 -0300
commitd64a0503bfdd577fb161fc917ac7302e94710e53 (patch)
tree2d0e969b26fa2124374652c353a7d3151892e2cd /src/data/composite/wiki-properties
parentb3cb1ebf85ffdf884b699fbd035bef85f89f5cbd (diff)
data: Artist.artistContributions, Artist.contributorContributions
Diffstat (limited to 'src/data/composite/wiki-properties')
-rw-r--r--src/data/composite/wiki-properties/reverseContributionList.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/data/composite/wiki-properties/reverseContributionList.js b/src/data/composite/wiki-properties/reverseContributionList.js
index 7f3f9c81..ce219377 100644
--- a/src/data/composite/wiki-properties/reverseContributionList.js
+++ b/src/data/composite/wiki-properties/reverseContributionList.js
@@ -1,4 +1,5 @@
 import {input, templateCompositeFrom} from '#composite';
+import {is} from '#validators';
 
 import {exposeDependency} from '#composite/control-flow';
 import {inputWikiData, withReverseContributionList} from '#composite/wiki-data';
@@ -11,12 +12,18 @@ export default templateCompositeFrom({
   inputs: {
     data: inputWikiData({allowMixedTypes: false}),
     list: input({type: 'string'}),
+
+    mode: input({
+      validate: is('things', 'contributions'),
+      defaultValue: 'things',
+    }),
   },
 
   steps: () => [
     withReverseContributionList({
       data: input('data'),
       list: input('list'),
+      mode: input('mode'),
     }),
 
     exposeDependency({dependency: '#reverseContributionList'}),