ecoportal-api-graphql 1.3.13 → 1.3.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/.ai-assistance/bridge/archive/oscar-a1b2c3d-gitlab-mcp-doc-update.inbox.md +29 -29
  3. data/.ai-assistance/bridge/archive/oscar-c912c25-gemini-design-review.inbox.md +42 -42
  4. data/.gitignore +37 -37
  5. data/CHANGELOG.md +17 -0
  6. data/docs/worklog.md +0 -18
  7. data/lib/ecoportal/api/common/graphql/client.rb +0 -2
  8. data/lib/ecoportal/api/graphql/base/location_classification_type.rb +15 -15
  9. data/lib/ecoportal/api/graphql/base/location_structure.rb +27 -27
  10. data/lib/ecoportal/api/graphql/base/organization.rb +15 -15
  11. data/lib/ecoportal/api/graphql/base.rb +35 -35
  12. data/lib/ecoportal/api/graphql/builder/contractor_entity.rb +41 -41
  13. data/lib/ecoportal/api/graphql/connection/action.rb +11 -11
  14. data/lib/ecoportal/api/graphql/connection/action_category.rb +11 -11
  15. data/lib/ecoportal/api/graphql/connection/contractor_entity.rb +11 -11
  16. data/lib/ecoportal/api/graphql/connection/page.rb +11 -11
  17. data/lib/ecoportal/api/graphql/connection/person_member.rb +11 -11
  18. data/lib/ecoportal/api/graphql/connection/preview_page.rb +11 -11
  19. data/lib/ecoportal/api/graphql/connection.rb +17 -17
  20. data/lib/ecoportal/api/graphql/fragment/location_node.rb +26 -26
  21. data/lib/ecoportal/api/graphql/input/contractor_entity.rb +14 -14
  22. data/lib/ecoportal/api/graphql/input/workflow_command/add_stage.rb +18 -18
  23. data/lib/ecoportal/api/graphql/input/workflow_command/edit_field_configuration.rb +21 -21
  24. data/lib/ecoportal/api/graphql/input/workflow_command/edit_page.rb +28 -28
  25. data/lib/ecoportal/api/graphql/input/workflow_command/edit_page_creator_permissions.rb +18 -18
  26. data/lib/ecoportal/api/graphql/input/workflow_command/field_config/cross_reference.rb +23 -23
  27. data/lib/ecoportal/api/graphql/input/workflow_command/field_config/date.rb +20 -20
  28. data/lib/ecoportal/api/graphql/input/workflow_command/field_config/image_gallery.rb +20 -20
  29. data/lib/ecoportal/api/graphql/input/workflow_command/field_config/plain_text.rb +20 -20
  30. data/lib/ecoportal/api/graphql/input/workflow_command/field_config/rich_text.rb +20 -20
  31. data/lib/ecoportal/api/graphql/input/workflow_command/field_config/select.rb +20 -20
  32. data/lib/ecoportal/api/graphql/input/workflow_command/move_field.rb +18 -18
  33. data/lib/ecoportal/api/graphql/input/workflow_command/reorder_forces.rb +18 -18
  34. data/lib/ecoportal/api/graphql/input/workflow_command/reorder_section.rb +18 -18
  35. data/lib/ecoportal/api/graphql/input/workflow_command.rb +251 -251
  36. data/lib/ecoportal/api/graphql/input.rb +24 -24
  37. data/lib/ecoportal/api/graphql/logic/connection.rb +34 -34
  38. data/lib/ecoportal/api/graphql/model/person_member.rb +15 -15
  39. data/lib/ecoportal/api/graphql/model.rb +30 -30
  40. data/lib/ecoportal/api/graphql/mutation/contractor_entity.rb +14 -14
  41. data/lib/ecoportal/api/graphql/payload/contractor_entity.rb +14 -14
  42. data/lib/ecoportal/api/graphql/query/location_structures.rb +57 -57
  43. data/lib/ecoportal/api/graphql/query.rb +27 -27
  44. data/lib/ecoportal/api/graphql_version.rb +1 -1
  45. metadata +1 -1
@@ -1,11 +1,11 @@
1
- module Ecoportal
2
- module API
3
- class GraphQL
4
- module Connection
5
- class PersonMemberConnection < Logic::Connection
6
- class_resolver :node_class, Model::PersonMember
7
- end
8
- end
9
- end
10
- end
11
- end
1
+ module Ecoportal
2
+ module API
3
+ class GraphQL
4
+ module Connection
5
+ class PersonMemberConnection < Logic::Connection
6
+ class_resolver :node_class, Model::PersonMember
7
+ end
8
+ end
9
+ end
10
+ end
11
+ end
@@ -1,11 +1,11 @@
1
- module Ecoportal
2
- module API
3
- class GraphQL
4
- module Connection
5
- class PreviewPage < Logic::Connection
6
- class_resolver :node_class, 'Ecoportal::API::GraphQL::Model::PreviewPage'
7
- end
8
- end
9
- end
10
- end
11
- end
1
+ module Ecoportal
2
+ module API
3
+ class GraphQL
4
+ module Connection
5
+ class PreviewPage < Logic::Connection
6
+ class_resolver :node_class, 'Ecoportal::API::GraphQL::Model::PreviewPage'
7
+ end
8
+ end
9
+ end
10
+ end
11
+ end
@@ -1,17 +1,17 @@
1
- module Ecoportal
2
- module API
3
- class GraphQL
4
- module Connection
5
- end
6
- end
7
- end
8
- end
9
-
10
- require_relative 'connection/person_member'
11
- require_relative 'connection/contractor_entity'
12
- require_relative 'connection/action_category'
13
- require_relative 'connection/action'
14
- require_relative 'connection/page'
15
- require_relative 'connection/preview_page'
16
- require_relative 'connection/preset_view'
17
- require_relative 'connection/pages_workflow_command'
1
+ module Ecoportal
2
+ module API
3
+ class GraphQL
4
+ module Connection
5
+ end
6
+ end
7
+ end
8
+ end
9
+
10
+ require_relative 'connection/person_member'
11
+ require_relative 'connection/contractor_entity'
12
+ require_relative 'connection/action_category'
13
+ require_relative 'connection/action'
14
+ require_relative 'connection/page'
15
+ require_relative 'connection/preview_page'
16
+ require_relative 'connection/preset_view'
17
+ require_relative 'connection/pages_workflow_command'
@@ -1,26 +1,26 @@
1
- module Ecoportal
2
- module API
3
- class GraphQL
4
- class Fragment
5
- fragment :LocationNode, <<~GRAPHQL
6
- fragment LocationNode on LocationNodeInterface {
7
- id
8
- name
9
- weight
10
- archived
11
- archivedToken
12
- parent {
13
- id
14
- name
15
- }
16
- classifications {
17
- active
18
- id
19
- name
20
- }
21
- }
22
- GRAPHQL
23
- end
24
- end
25
- end
26
- end
1
+ module Ecoportal
2
+ module API
3
+ class GraphQL
4
+ class Fragment
5
+ fragment :LocationNode, <<~GRAPHQL
6
+ fragment LocationNode on LocationNodeInterface {
7
+ id
8
+ name
9
+ weight
10
+ archived
11
+ archivedToken
12
+ parent {
13
+ id
14
+ name
15
+ }
16
+ classifications {
17
+ active
18
+ id
19
+ name
20
+ }
21
+ }
22
+ GRAPHQL
23
+ end
24
+ end
25
+ end
26
+ end
@@ -1,14 +1,14 @@
1
- module Ecoportal
2
- module API
3
- class GraphQL
4
- module Input
5
- module ContractorEntity
6
- end
7
- end
8
- end
9
- end
10
- end
11
-
12
- require_relative 'contractor_entity/create'
13
- require_relative 'contractor_entity/destroy'
14
- require_relative 'contractor_entity/update'
1
+ module Ecoportal
2
+ module API
3
+ class GraphQL
4
+ module Input
5
+ module ContractorEntity
6
+ end
7
+ end
8
+ end
9
+ end
10
+ end
11
+
12
+ require_relative 'contractor_entity/create'
13
+ require_relative 'contractor_entity/destroy'
14
+ require_relative 'contractor_entity/update'
@@ -1,18 +1,18 @@
1
- module Ecoportal
2
- module API
3
- class GraphQL
4
- module Input
5
- class WorkflowCommand
6
- module AddStage
7
- SCHEMA_VERSION = '20260605'.freeze
8
- VALID_KEYS = %i[placeholderId name ordering].freeze
9
-
10
- def self.build(**kwargs)
11
- kwargs.slice(*VALID_KEYS).compact
12
- end
13
- end
14
- end
15
- end
16
- end
17
- end
18
- end
1
+ module Ecoportal
2
+ module API
3
+ class GraphQL
4
+ module Input
5
+ class WorkflowCommand
6
+ module AddStage
7
+ SCHEMA_VERSION = '20260605'.freeze
8
+ VALID_KEYS = %i[placeholderId name ordering].freeze
9
+
10
+ def self.build(**kwargs)
11
+ kwargs.slice(*VALID_KEYS).compact
12
+ end
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
18
+ end
@@ -1,21 +1,21 @@
1
- module Ecoportal
2
- module API
3
- class GraphQL
4
- module Input
5
- class WorkflowCommand
6
- module EditFieldConfiguration
7
- SCHEMA_VERSION = '20260605'.freeze
8
-
9
- BASE_KEYS = %i[dataFieldId label tooltip description hideView hiddenOnMobile enableActions globalBinding].freeze
10
-
11
- def self.build(data_field_id:, **kwargs)
12
- { dataFieldId: data_field_id }.
13
- merge(kwargs.slice(*(BASE_KEYS - [:dataFieldId])).compact).
14
- tap { |h| h[:byType] = kwargs[:byType] if kwargs.key?(:byType) }
15
- end
16
- end
17
- end
18
- end
19
- end
20
- end
21
- end
1
+ module Ecoportal
2
+ module API
3
+ class GraphQL
4
+ module Input
5
+ class WorkflowCommand
6
+ module EditFieldConfiguration
7
+ SCHEMA_VERSION = '20260605'.freeze
8
+
9
+ BASE_KEYS = %i[dataFieldId label tooltip description hideView hiddenOnMobile enableActions globalBinding].freeze
10
+
11
+ def self.build(data_field_id:, **kwargs)
12
+ { dataFieldId: data_field_id }.
13
+ merge(kwargs.slice(*(BASE_KEYS - [:dataFieldId])).compact).
14
+ tap { |h| h[:byType] = kwargs[:byType] if kwargs.key?(:byType) }
15
+ end
16
+ end
17
+ end
18
+ end
19
+ end
20
+ end
21
+ end
@@ -1,28 +1,28 @@
1
- module Ecoportal
2
- module API
3
- class GraphQL
4
- module Input
5
- class WorkflowCommand
6
- module EditPage
7
- SCHEMA_VERSION = '20260605'.freeze
8
- VALID_KEYS = %i[
9
- name icon themeId timeZone disableDirectPermissions mobileEnabled useSectionsOnMobile
10
- showStrategyForRestrictedStages showAssigneeNamesForRestrictedStages showTaskDueDateForRestrictedStages
11
- hideActivityStream disableComments enableDashboardImport enableActionsOnFields showCreator active
12
- counterPrefix counterPostfix counterEnabled counter
13
- addLocationIds removeLocationIds
14
- addBaseTags removeBaseTags
15
- addOtherTags removeOtherTags
16
- addFolders removeFolders
17
- creatorEnabled creatorEditable creatorFlags
18
- ].freeze
19
-
20
- def self.build(**kwargs)
21
- kwargs.slice(*VALID_KEYS).compact
22
- end
23
- end
24
- end
25
- end
26
- end
27
- end
28
- end
1
+ module Ecoportal
2
+ module API
3
+ class GraphQL
4
+ module Input
5
+ class WorkflowCommand
6
+ module EditPage
7
+ SCHEMA_VERSION = '20260605'.freeze
8
+ VALID_KEYS = %i[
9
+ name icon themeId timeZone disableDirectPermissions mobileEnabled useSectionsOnMobile
10
+ showStrategyForRestrictedStages showAssigneeNamesForRestrictedStages showTaskDueDateForRestrictedStages
11
+ hideActivityStream disableComments enableDashboardImport enableActionsOnFields showCreator active
12
+ counterPrefix counterPostfix counterEnabled counter
13
+ addLocationIds removeLocationIds
14
+ addBaseTags removeBaseTags
15
+ addOtherTags removeOtherTags
16
+ addFolders removeFolders
17
+ creatorEnabled creatorEditable creatorFlags
18
+ ].freeze
19
+
20
+ def self.build(**kwargs)
21
+ kwargs.slice(*VALID_KEYS).compact
22
+ end
23
+ end
24
+ end
25
+ end
26
+ end
27
+ end
28
+ end
@@ -1,18 +1,18 @@
1
- module Ecoportal
2
- module API
3
- class GraphQL
4
- module Input
5
- class WorkflowCommand
6
- module EditPageCreatorPermissions
7
- SCHEMA_VERSION = '20260605'.freeze
8
- VALID_KEYS = %i[creatorEnabled creatorEditable creatorFlags].freeze
9
-
10
- def self.build(**kwargs)
11
- kwargs.slice(*VALID_KEYS).compact
12
- end
13
- end
14
- end
15
- end
16
- end
17
- end
18
- end
1
+ module Ecoportal
2
+ module API
3
+ class GraphQL
4
+ module Input
5
+ class WorkflowCommand
6
+ module EditPageCreatorPermissions
7
+ SCHEMA_VERSION = '20260605'.freeze
8
+ VALID_KEYS = %i[creatorEnabled creatorEditable creatorFlags].freeze
9
+
10
+ def self.build(**kwargs)
11
+ kwargs.slice(*VALID_KEYS).compact
12
+ end
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
18
+ end
@@ -1,23 +1,23 @@
1
- module Ecoportal
2
- module API
3
- class GraphQL
4
- module Input
5
- class WorkflowCommand
6
- module EditFieldConfiguration
7
- module CrossReference
8
- SCHEMA_VERSION = '20260605'.freeze
9
- VALID_KEYS = %i[
10
- displayFields displayFieldsInLookup hideCreate hideAttach hideMetadata
11
- registerId attachSourcePage hideDashboards singleSelectMode
12
- ].freeze
13
-
14
- def self.build(**kwargs)
15
- { crossReference: kwargs.slice(*VALID_KEYS).compact }
16
- end
17
- end
18
- end
19
- end
20
- end
21
- end
22
- end
23
- end
1
+ module Ecoportal
2
+ module API
3
+ class GraphQL
4
+ module Input
5
+ class WorkflowCommand
6
+ module EditFieldConfiguration
7
+ module CrossReference
8
+ SCHEMA_VERSION = '20260605'.freeze
9
+ VALID_KEYS = %i[
10
+ displayFields displayFieldsInLookup hideCreate hideAttach hideMetadata
11
+ registerId attachSourcePage hideDashboards singleSelectMode
12
+ ].freeze
13
+
14
+ def self.build(**kwargs)
15
+ { crossReference: kwargs.slice(*VALID_KEYS).compact }
16
+ end
17
+ end
18
+ end
19
+ end
20
+ end
21
+ end
22
+ end
23
+ end
@@ -1,20 +1,20 @@
1
- module Ecoportal
2
- module API
3
- class GraphQL
4
- module Input
5
- class WorkflowCommand
6
- module EditFieldConfiguration
7
- module Date
8
- SCHEMA_VERSION = '20260605'.freeze
9
- VALID_KEYS = %i[showTime pastOnly todayButton smartFillConfiguration removeSmartFillConfiguration].freeze
10
-
11
- def self.build(**kwargs)
12
- { date: kwargs.slice(*VALID_KEYS).compact }
13
- end
14
- end
15
- end
16
- end
17
- end
18
- end
19
- end
20
- end
1
+ module Ecoportal
2
+ module API
3
+ class GraphQL
4
+ module Input
5
+ class WorkflowCommand
6
+ module EditFieldConfiguration
7
+ module Date
8
+ SCHEMA_VERSION = '20260605'.freeze
9
+ VALID_KEYS = %i[showTime pastOnly todayButton smartFillConfiguration removeSmartFillConfiguration].freeze
10
+
11
+ def self.build(**kwargs)
12
+ { date: kwargs.slice(*VALID_KEYS).compact }
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
18
+ end
19
+ end
20
+ end
@@ -1,20 +1,20 @@
1
- module Ecoportal
2
- module API
3
- class GraphQL
4
- module Input
5
- class WorkflowCommand
6
- module EditFieldConfiguration
7
- module ImageGallery
8
- SCHEMA_VERSION = '20260605'.freeze
9
- VALID_KEYS = %i[layout stretch noPopup hideOptions].freeze
10
-
11
- def self.build(**kwargs)
12
- { imageGallery: kwargs.slice(*VALID_KEYS).compact }
13
- end
14
- end
15
- end
16
- end
17
- end
18
- end
19
- end
20
- end
1
+ module Ecoportal
2
+ module API
3
+ class GraphQL
4
+ module Input
5
+ class WorkflowCommand
6
+ module EditFieldConfiguration
7
+ module ImageGallery
8
+ SCHEMA_VERSION = '20260605'.freeze
9
+ VALID_KEYS = %i[layout stretch noPopup hideOptions].freeze
10
+
11
+ def self.build(**kwargs)
12
+ { imageGallery: kwargs.slice(*VALID_KEYS).compact }
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
18
+ end
19
+ end
20
+ end
@@ -1,20 +1,20 @@
1
- module Ecoportal
2
- module API
3
- class GraphQL
4
- module Input
5
- class WorkflowCommand
6
- module EditFieldConfiguration
7
- module PlainText
8
- SCHEMA_VERSION = '20260605'.freeze
9
- VALID_KEYS = %i[value maxLength embeddingEnabled smartFillConfiguration removeSmartFillConfiguration].freeze
10
-
11
- def self.build(**kwargs)
12
- { plainText: kwargs.slice(*VALID_KEYS).compact }
13
- end
14
- end
15
- end
16
- end
17
- end
18
- end
19
- end
20
- end
1
+ module Ecoportal
2
+ module API
3
+ class GraphQL
4
+ module Input
5
+ class WorkflowCommand
6
+ module EditFieldConfiguration
7
+ module PlainText
8
+ SCHEMA_VERSION = '20260605'.freeze
9
+ VALID_KEYS = %i[value maxLength embeddingEnabled smartFillConfiguration removeSmartFillConfiguration].freeze
10
+
11
+ def self.build(**kwargs)
12
+ { plainText: kwargs.slice(*VALID_KEYS).compact }
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
18
+ end
19
+ end
20
+ end
@@ -1,20 +1,20 @@
1
- module Ecoportal
2
- module API
3
- class GraphQL
4
- module Input
5
- class WorkflowCommand
6
- module EditFieldConfiguration
7
- module RichText
8
- SCHEMA_VERSION = '20260605'.freeze
9
- VALID_KEYS = %i[content markdown embeddingEnabled smartFillConfiguration removeSmartFillConfiguration].freeze
10
-
11
- def self.build(**kwargs)
12
- { richText: kwargs.slice(*VALID_KEYS).compact }
13
- end
14
- end
15
- end
16
- end
17
- end
18
- end
19
- end
20
- end
1
+ module Ecoportal
2
+ module API
3
+ class GraphQL
4
+ module Input
5
+ class WorkflowCommand
6
+ module EditFieldConfiguration
7
+ module RichText
8
+ SCHEMA_VERSION = '20260605'.freeze
9
+ VALID_KEYS = %i[content markdown embeddingEnabled smartFillConfiguration removeSmartFillConfiguration].freeze
10
+
11
+ def self.build(**kwargs)
12
+ { richText: kwargs.slice(*VALID_KEYS).compact }
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
18
+ end
19
+ end
20
+ end
@@ -1,20 +1,20 @@
1
- module Ecoportal
2
- module API
3
- class GraphQL
4
- module Input
5
- class WorkflowCommand
6
- module EditFieldConfiguration
7
- module Select
8
- SCHEMA_VERSION = '20260605'.freeze
9
- VALID_KEYS = %i[dataType multiple flat other otherDesc smartFillConfiguration removeSmartFillConfiguration].freeze
10
-
11
- def self.build(**kwargs)
12
- { select: kwargs.slice(*VALID_KEYS).compact }
13
- end
14
- end
15
- end
16
- end
17
- end
18
- end
19
- end
20
- end
1
+ module Ecoportal
2
+ module API
3
+ class GraphQL
4
+ module Input
5
+ class WorkflowCommand
6
+ module EditFieldConfiguration
7
+ module Select
8
+ SCHEMA_VERSION = '20260605'.freeze
9
+ VALID_KEYS = %i[dataType multiple flat other otherDesc smartFillConfiguration removeSmartFillConfiguration].freeze
10
+
11
+ def self.build(**kwargs)
12
+ { select: kwargs.slice(*VALID_KEYS).compact }
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
18
+ end
19
+ end
20
+ end
@@ -1,18 +1,18 @@
1
- module Ecoportal
2
- module API
3
- class GraphQL
4
- module Input
5
- class WorkflowCommand
6
- module MoveField
7
- SCHEMA_VERSION = '20260605'.freeze
8
- VALID_KEYS = %i[id sectionId column].freeze
9
-
10
- def self.build(**kwargs)
11
- kwargs.slice(*VALID_KEYS).compact
12
- end
13
- end
14
- end
15
- end
16
- end
17
- end
18
- end
1
+ module Ecoportal
2
+ module API
3
+ class GraphQL
4
+ module Input
5
+ class WorkflowCommand
6
+ module MoveField
7
+ SCHEMA_VERSION = '20260605'.freeze
8
+ VALID_KEYS = %i[id sectionId column].freeze
9
+
10
+ def self.build(**kwargs)
11
+ kwargs.slice(*VALID_KEYS).compact
12
+ end
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
18
+ end
@@ -1,18 +1,18 @@
1
- module Ecoportal
2
- module API
3
- class GraphQL
4
- module Input
5
- class WorkflowCommand
6
- module ReorderForces
7
- SCHEMA_VERSION = '20260605'.freeze
8
- VALID_KEYS = %i[forceId after before].freeze
9
-
10
- def self.build(**kwargs)
11
- kwargs.slice(*VALID_KEYS).compact
12
- end
13
- end
14
- end
15
- end
16
- end
17
- end
18
- end
1
+ module Ecoportal
2
+ module API
3
+ class GraphQL
4
+ module Input
5
+ class WorkflowCommand
6
+ module ReorderForces
7
+ SCHEMA_VERSION = '20260605'.freeze
8
+ VALID_KEYS = %i[forceId after before].freeze
9
+
10
+ def self.build(**kwargs)
11
+ kwargs.slice(*VALID_KEYS).compact
12
+ end
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
18
+ end