zf

zenflows testing
git clone https://s.sonu.ch/~srfsh/zf.git
Log | Files | Refs | Submodules | README | LICENSE

type.ex (2179B)


      1 # Zenflows is designed to implement the Valueflows vocabulary,
      2 # written and maintained by srfsh <info@dyne.org>.
      3 # Copyright (C) 2021-2023 Dyne.org foundation <foundation@dyne.org>.
      4 #
      5 # This program is free software: you can redistribute it and/or modify
      6 # it under the terms of the GNU Affero General Public License as published by
      7 # the Free Software Foundation, either version 3 of the License, or
      8 # (at your option) any later version.
      9 #
     10 # This program is distributed in the hope that it will be useful,
     11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 # GNU Affero General Public License for more details.
     14 #
     15 # You should have received a copy of the GNU Affero General Public License
     16 # along with this program.  If not, see <https://www.gnu.org/licenses/>.
     17 
     18 defmodule Zenflows.VF.Action.Type do
     19 @moduledoc false
     20 
     21 use Absinthe.Schema.Notation
     22 
     23 @desc """
     24 An action verb defining the kind of event, commitment, or intent.
     25 It is recommended that the lowercase action verb should be used as the
     26 record ID in order that references to `Action`s elsewhere in the system
     27 are easily readable.
     28 """
     29 object :action do
     30 	field :id, non_null(:string)
     31 
     32 	@desc "A unique verb which defines the action."
     33 	field :label, non_null(:string)
     34 
     35 	@desc """
     36 	The accounting effect of an economic event on a resource,
     37 	increment, decrement, no effect, or decrement resource and
     38 	increment "to" resource.
     39 	"""
     40 	field :resource_effect, non_null(:string) # "increment", "decrement", "noEffect", "decrementIncrement"
     41 
     42 	@desc """
     43 	The onhand effect of an economic event on a resource, increment,
     44 	decrement, no effect, or decrement resource and increment "to"
     45 	resource.
     46 	"""
     47 	field :onhand_effect, non_null(:string) # "increment", "decrement", "noEffect", "decrementIncrement"
     48 
     49 	@desc "Denotes if a process input or output, or not related to a process."
     50 	field :input_output, :string # "input", "output", "notApplicable"
     51 
     52 	@desc """
     53 	The action that should be included on the other direction of
     54 	the process, for example accept with modify.
     55 	"""
     56 	field :pairs_with, :string # "notApplicable", (any of the action labels)
     57 end
     58 end