ecoportal-api-graphql 1.2.1 → 1.3.2
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.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -1
- data/CHANGELOG.md +52 -6
- data/ecoportal-api-graphql.gemspec +2 -2
- data/lib/ecoportal/api/common/graphql/client.rb +2 -1
- data/lib/ecoportal/api/common/graphql/query_integration.rb +5 -5
- data/lib/ecoportal/api/common.graphql.rb +1 -1
- data/lib/ecoportal/api/graphql/base/action.rb +1 -1
- data/lib/ecoportal/api/graphql/base/action_category.rb +1 -1
- data/lib/ecoportal/api/graphql/base/contractor_entity.rb +1 -1
- data/lib/ecoportal/api/graphql/base/date_time.rb +1 -1
- data/lib/ecoportal/api/graphql/base/field.rb +1 -1
- data/lib/ecoportal/api/graphql/base/file_attachment.rb +1 -1
- data/lib/ecoportal/api/graphql/base/file_container.rb +1 -1
- data/lib/ecoportal/api/graphql/base/location_classification_type.rb +1 -1
- data/lib/ecoportal/api/graphql/base/location_node.rb +4 -13
- data/lib/ecoportal/api/graphql/base/location_structure/draft/structure.rb +37 -0
- data/lib/ecoportal/api/graphql/base/location_structure/draft.rb +88 -0
- data/lib/ecoportal/api/graphql/base/location_structure.rb +9 -5
- data/lib/ecoportal/api/graphql/base/organization.rb +1 -1
- data/lib/ecoportal/api/graphql/base/page.rb +1 -5
- data/lib/ecoportal/api/graphql/base/page_info.rb +1 -1
- data/lib/ecoportal/api/graphql/base/person_member.rb +1 -1
- data/lib/ecoportal/api/graphql/base/resource.rb +1 -1
- data/lib/ecoportal/api/graphql/base.rb +0 -1
- data/lib/ecoportal/api/graphql/builder/action.rb +3 -3
- data/lib/ecoportal/api/graphql/builder/contractor_entity.rb +3 -3
- data/lib/ecoportal/api/graphql/builder/location_structure/draft.rb +64 -0
- data/lib/ecoportal/api/graphql/builder/location_structure.rb +9 -3
- data/lib/ecoportal/api/graphql/connection/action.rb +2 -2
- data/lib/ecoportal/api/graphql/connection/action_category.rb +2 -2
- data/lib/ecoportal/api/graphql/connection/contractor_entity.rb +2 -2
- data/lib/ecoportal/api/graphql/connection/person_member.rb +2 -2
- data/lib/ecoportal/api/graphql/error/locations_error/fetch_nested.rb +49 -0
- data/lib/ecoportal/api/graphql/error/locations_error.rb +15 -4
- data/lib/ecoportal/api/graphql/error/locations_validation_error.rb +5 -1
- data/lib/ecoportal/api/graphql/error/validation_errors.rb +5 -1
- data/lib/ecoportal/api/graphql/fragment/action.rb +5 -3
- data/lib/ecoportal/api/graphql/fragment/location_draft.rb +39 -0
- data/lib/ecoportal/api/graphql/fragment/locations_error.rb +18 -0
- data/lib/ecoportal/api/graphql/fragment.rb +8 -3
- data/lib/ecoportal/api/graphql/input/action/archive.rb +1 -2
- data/lib/ecoportal/api/graphql/input/action/create.rb +1 -1
- data/lib/ecoportal/api/graphql/input/contractor_entity/create.rb +1 -1
- data/lib/ecoportal/api/graphql/input/contractor_entity/destroy.rb +1 -2
- data/lib/ecoportal/api/graphql/input/contractor_entity/update.rb +1 -1
- data/lib/ecoportal/api/graphql/input/id_diff.rb +1 -1
- data/lib/ecoportal/api/graphql/input/location_structure/apply_commands.rb +2 -3
- data/lib/ecoportal/api/graphql/input/location_structure/archive_command.rb +1 -1
- data/lib/ecoportal/api/graphql/input/location_structure/delete_command.rb +1 -1
- data/lib/ecoportal/api/graphql/input/location_structure/draft/add_commands.rb +49 -0
- data/lib/ecoportal/api/graphql/input/location_structure/draft/create.rb +15 -0
- data/lib/ecoportal/api/graphql/input/location_structure/draft/delete.rb +15 -0
- data/lib/ecoportal/api/graphql/input/location_structure/draft/drop_bad_commands.rb +16 -0
- data/lib/ecoportal/api/graphql/input/location_structure/draft/publish.rb +16 -0
- data/lib/ecoportal/api/graphql/input/location_structure/draft.rb +19 -0
- data/lib/ecoportal/api/graphql/input/location_structure/insert_command.rb +1 -1
- data/lib/ecoportal/api/graphql/input/location_structure/move_command.rb +1 -1
- data/lib/ecoportal/api/graphql/input/location_structure/reorder_command.rb +1 -1
- data/lib/ecoportal/api/graphql/input/location_structure/unarchive_command.rb +1 -1
- data/lib/ecoportal/api/graphql/input/location_structure/update_command.rb +1 -1
- data/lib/ecoportal/api/graphql/input/location_structure.rb +1 -1
- data/lib/ecoportal/api/graphql/input/search.rb +1 -1
- data/lib/ecoportal/api/graphql/input/search_filter.rb +1 -1
- data/lib/ecoportal/api/graphql/input/search_sorter.rb +1 -1
- data/lib/ecoportal/api/graphql/interface/base_page.rb +58 -0
- data/lib/ecoportal/api/graphql/{input/location_structure/command_interface.rb → interface/location_structure/command.rb} +9 -5
- data/lib/ecoportal/api/graphql/interface/location_structure/node.rb +43 -0
- data/lib/ecoportal/api/graphql/interface/location_structure/nodes.rb +28 -0
- data/lib/ecoportal/api/graphql/interface/location_structure.rb +14 -0
- data/lib/ecoportal/api/graphql/interface.rb +11 -0
- data/lib/ecoportal/api/graphql/{base/model.rb → logic/base_model.rb} +2 -2
- data/lib/ecoportal/api/graphql/logic/base_query.rb +23 -9
- data/lib/ecoportal/api/graphql/logic/connection.rb +2 -2
- data/lib/ecoportal/api/graphql/logic/input.rb +11 -0
- data/lib/ecoportal/api/graphql/logic/mutation.rb +6 -11
- data/lib/ecoportal/api/graphql/logic/payload.rb +16 -3
- data/lib/ecoportal/api/graphql/logic/query.rb +1 -1
- data/lib/ecoportal/api/graphql/logic/query_array.rb +1 -1
- data/lib/ecoportal/api/graphql/logic/query_connection.rb +6 -6
- data/lib/ecoportal/api/graphql/logic.rb +2 -0
- data/lib/ecoportal/api/graphql/model/account.rb +1 -1
- data/lib/ecoportal/api/graphql/model/action.rb +1 -1
- data/lib/ecoportal/api/graphql/model/contractor_entity.rb +1 -1
- data/lib/ecoportal/api/graphql/model/field.rb +1 -1
- data/lib/ecoportal/api/graphql/model/file_attachment.rb +1 -1
- data/lib/ecoportal/api/graphql/model/file_container.rb +2 -2
- data/lib/ecoportal/api/graphql/model/location_node.rb +4 -11
- data/lib/ecoportal/api/graphql/model/location_structure/draft/structure.rb +15 -0
- data/lib/ecoportal/api/graphql/model/location_structure/draft.rb +15 -0
- data/lib/ecoportal/api/graphql/model/location_structure.rb +5 -1
- data/lib/ecoportal/api/graphql/model/organization.rb +26 -9
- data/lib/ecoportal/api/graphql/model/page.rb +7 -1
- data/lib/ecoportal/api/graphql/model/person_member.rb +2 -2
- data/lib/ecoportal/api/graphql/model/resource.rb +4 -3
- data/lib/ecoportal/api/graphql/model/user.rb +1 -1
- data/lib/ecoportal/api/graphql/mutation/action/archive.rb +3 -3
- data/lib/ecoportal/api/graphql/mutation/action/create.rb +3 -3
- data/lib/ecoportal/api/graphql/mutation/action/update.rb +3 -3
- data/lib/ecoportal/api/graphql/mutation/contractor_entity/create.rb +3 -3
- data/lib/ecoportal/api/graphql/mutation/contractor_entity/destroy.rb +3 -3
- data/lib/ecoportal/api/graphql/mutation/location_structure/apply_commands.rb +9 -16
- data/lib/ecoportal/api/graphql/mutation/location_structure/draft/add_commands.rb +57 -0
- data/lib/ecoportal/api/graphql/mutation/location_structure/draft/create.rb +57 -0
- data/lib/ecoportal/api/graphql/mutation/location_structure/draft/delete.rb +43 -0
- data/lib/ecoportal/api/graphql/mutation/location_structure/draft/drop_bad_commands.rb +59 -0
- data/lib/ecoportal/api/graphql/mutation/location_structure/draft/publish.rb +69 -0
- data/lib/ecoportal/api/graphql/mutation/location_structure/draft.rb +18 -0
- data/lib/ecoportal/api/graphql/mutation/location_structure.rb +1 -0
- data/lib/ecoportal/api/graphql/payload/action/archive.rb +1 -1
- data/lib/ecoportal/api/graphql/payload/action/create.rb +1 -1
- data/lib/ecoportal/api/graphql/payload/action/update.rb +1 -1
- data/lib/ecoportal/api/graphql/payload/contractor_entity/create.rb +1 -1
- data/lib/ecoportal/api/graphql/payload/contractor_entity/destroy.rb +1 -1
- data/lib/ecoportal/api/graphql/payload/contractor_entity/update.rb +1 -1
- data/lib/ecoportal/api/graphql/payload/location_structure/apply_commands.rb +32 -9
- data/lib/ecoportal/api/graphql/payload/location_structure/command_execution_result.rb +26 -3
- data/lib/ecoportal/api/graphql/payload/location_structure/draft/add_commands.rb +27 -0
- data/lib/ecoportal/api/graphql/payload/location_structure/draft/create.rb +34 -0
- data/lib/ecoportal/api/graphql/payload/location_structure/draft/delete.rb +27 -0
- data/lib/ecoportal/api/graphql/payload/location_structure/draft/drop_bad_commands.rb +41 -0
- data/lib/ecoportal/api/graphql/payload/location_structure/draft/publish.rb +56 -0
- data/lib/ecoportal/api/graphql/payload/location_structure/draft.rb +18 -0
- data/lib/ecoportal/api/graphql/payload/location_structure.rb +1 -1
- data/lib/ecoportal/api/graphql/query/action.rb +2 -2
- data/lib/ecoportal/api/graphql/query/action_categories.rb +3 -3
- data/lib/ecoportal/api/graphql/query/actions.rb +3 -3
- data/lib/ecoportal/api/graphql/query/contractor_entities.rb +3 -3
- data/lib/ecoportal/api/graphql/query/location_classifications.rb +2 -2
- data/lib/ecoportal/api/graphql/query/location_structure/draft.rb +62 -0
- data/lib/ecoportal/api/graphql/query/location_structure.rb +17 -4
- data/lib/ecoportal/api/graphql/query/location_structures.rb +5 -3
- data/lib/ecoportal/api/graphql.rb +14 -12
- data/lib/ecoportal/api/graphql_version.rb +1 -1
- metadata +43 -11
- data/lib/ecoportal/api/graphql/payload/location_structure/command_interface.rb +0 -14
@@ -0,0 +1,41 @@
|
|
1
|
+
module Ecoportal
|
2
|
+
module API
|
3
|
+
class GraphQL
|
4
|
+
module Payload
|
5
|
+
module LocationStructure
|
6
|
+
module Draft
|
7
|
+
class DropBadCommands < AddCommands
|
8
|
+
passboolean :ok
|
9
|
+
alias_method :ok?, :ok
|
10
|
+
|
11
|
+
embeds_one :error, klass: Error::LocationsError, nullable: true
|
12
|
+
|
13
|
+
include Error::LocationsError::FetchNested
|
14
|
+
|
15
|
+
def error?
|
16
|
+
super ||
|
17
|
+
!ok? ||
|
18
|
+
locations_error?
|
19
|
+
end
|
20
|
+
|
21
|
+
def error_doc
|
22
|
+
err_doc = super
|
23
|
+
return err_doc if err_doc
|
24
|
+
|
25
|
+
if locations_error?
|
26
|
+
{
|
27
|
+
locationsError: locations_error_doc
|
28
|
+
}
|
29
|
+
elsif !ok?
|
30
|
+
{
|
31
|
+
ok: false
|
32
|
+
}
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
@@ -0,0 +1,56 @@
|
|
1
|
+
module Ecoportal
|
2
|
+
module API
|
3
|
+
class GraphQL
|
4
|
+
module Payload
|
5
|
+
module LocationStructure
|
6
|
+
module Draft
|
7
|
+
class Publish < Logic::Payload
|
8
|
+
class_resolver :item_class, "Ecoportal::API::GraphQL::Model::LocationStructure::Draft::Structure"
|
9
|
+
|
10
|
+
embeds_one :structure, klass: :item_class
|
11
|
+
alias_method :item, :structure
|
12
|
+
|
13
|
+
passboolean :ok
|
14
|
+
alias_method :ok?, :ok
|
15
|
+
|
16
|
+
embeds_one :error, klass: Error::LocationsError, nullable: true
|
17
|
+
embeds_many :results, read_only: true, klass: Payload::LocationStructure::CommandExecutionResult
|
18
|
+
|
19
|
+
include Error::LocationsError::FetchNested
|
20
|
+
|
21
|
+
def error?
|
22
|
+
super ||
|
23
|
+
!ok? ||
|
24
|
+
locations_error? ||
|
25
|
+
result_errors?
|
26
|
+
end
|
27
|
+
|
28
|
+
def error_doc
|
29
|
+
err_doc = super
|
30
|
+
return err_doc if err_doc
|
31
|
+
|
32
|
+
if locations_error?
|
33
|
+
{
|
34
|
+
locationsError: locations_error_doc
|
35
|
+
}
|
36
|
+
elsif result_errors?
|
37
|
+
{
|
38
|
+
results: [result_errors.first&.error_doc]
|
39
|
+
}
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
def result_errors?
|
44
|
+
result_errors.any?
|
45
|
+
end
|
46
|
+
|
47
|
+
def result_errors
|
48
|
+
results.select(&:error?)
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module Ecoportal
|
2
|
+
module API
|
3
|
+
class GraphQL
|
4
|
+
module Payload
|
5
|
+
module LocationStructure
|
6
|
+
module Draft
|
7
|
+
end
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
require_relative 'draft/create'
|
15
|
+
require_relative 'draft/publish'
|
16
|
+
require_relative 'draft/delete'
|
17
|
+
require_relative 'draft/add_commands'
|
18
|
+
require_relative 'draft/drop_bad_commands'
|
@@ -2,11 +2,11 @@ module Ecoportal
|
|
2
2
|
module API
|
3
3
|
class GraphQL
|
4
4
|
module Query
|
5
|
-
class Action <
|
5
|
+
class Action < Logic::Query
|
6
6
|
field_name :action
|
7
7
|
|
8
8
|
accepted_params :id
|
9
|
-
class_resolver :item_class,
|
9
|
+
class_resolver :item_class, Model::Action
|
10
10
|
|
11
11
|
private
|
12
12
|
|
@@ -2,11 +2,11 @@ module Ecoportal
|
|
2
2
|
module API
|
3
3
|
class GraphQL
|
4
4
|
module Query
|
5
|
-
class ActionCategories <
|
5
|
+
class ActionCategories < Logic::QueryConnection
|
6
6
|
field_name :actionCategories
|
7
7
|
|
8
|
-
class_resolver :item_class,
|
9
|
-
class_resolver :connection_class,
|
8
|
+
class_resolver :item_class, Base::ActionCategory
|
9
|
+
class_resolver :connection_class, Connection::ActionCategory
|
10
10
|
|
11
11
|
private
|
12
12
|
|
@@ -2,11 +2,11 @@ module Ecoportal
|
|
2
2
|
module API
|
3
3
|
class GraphQL
|
4
4
|
module Query
|
5
|
-
class Actions <
|
5
|
+
class Actions < Logic::QueryConnection
|
6
6
|
field_name :actions
|
7
7
|
|
8
|
-
class_resolver :item_class,
|
9
|
-
class_resolver :connection_class,
|
8
|
+
class_resolver :item_class, Model::Action
|
9
|
+
class_resolver :connection_class, Connection::Action
|
10
10
|
|
11
11
|
private
|
12
12
|
|
@@ -2,11 +2,11 @@ module Ecoportal
|
|
2
2
|
module API
|
3
3
|
class GraphQL
|
4
4
|
module Query
|
5
|
-
class ContractorEntities <
|
5
|
+
class ContractorEntities < Logic::QueryConnection
|
6
6
|
field_name :contractorEntities
|
7
7
|
|
8
|
-
class_resolver :item_class,
|
9
|
-
class_resolver :connection_class,
|
8
|
+
class_resolver :item_class, Model::ContractorEntity
|
9
|
+
class_resolver :connection_class, Connection::ContractorEntity
|
10
10
|
|
11
11
|
private
|
12
12
|
|
@@ -2,13 +2,13 @@ module Ecoportal
|
|
2
2
|
module API
|
3
3
|
class GraphQL
|
4
4
|
module Query
|
5
|
-
class LocationClassifications <
|
5
|
+
class LocationClassifications < Logic::QueryArray
|
6
6
|
accepted_params :active, default: true
|
7
7
|
|
8
8
|
base_path 'currentOrganization.locations'
|
9
9
|
field_name :classifications
|
10
10
|
|
11
|
-
class_resolver :item_class,
|
11
|
+
class_resolver :item_class, Base::LocationClassificationType
|
12
12
|
|
13
13
|
private
|
14
14
|
|
@@ -0,0 +1,62 @@
|
|
1
|
+
module Ecoportal
|
2
|
+
module API
|
3
|
+
class GraphQL
|
4
|
+
module Query
|
5
|
+
class LocationStructure
|
6
|
+
class Draft < Logic::Query
|
7
|
+
accepted_params :id
|
8
|
+
accepted_params :structureId
|
9
|
+
accepted_params :includeArchivedNodes, default: true
|
10
|
+
|
11
|
+
field_name :draft
|
12
|
+
|
13
|
+
class_resolver :item_class, Model::LocationStructure::Draft
|
14
|
+
|
15
|
+
private
|
16
|
+
|
17
|
+
def basic_block(&block)
|
18
|
+
final_block = block || default_query_block
|
19
|
+
proc {
|
20
|
+
query(
|
21
|
+
id: :id!,
|
22
|
+
structureId: :id!,
|
23
|
+
includeArchivedNodes: :boolean
|
24
|
+
) {
|
25
|
+
currentOrganization {
|
26
|
+
locations {
|
27
|
+
structure(
|
28
|
+
id: :structureId
|
29
|
+
) {
|
30
|
+
id
|
31
|
+
name
|
32
|
+
archived
|
33
|
+
updatedAt
|
34
|
+
draft(
|
35
|
+
id: :id,
|
36
|
+
&final_block
|
37
|
+
)
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
43
|
+
end
|
44
|
+
|
45
|
+
def default_query_block
|
46
|
+
proc {
|
47
|
+
___Ecoportal__API__GraphQL__Fragment__LocationDraft
|
48
|
+
structure {
|
49
|
+
nodes(
|
50
|
+
includeArchived: :includeArchivedNodes
|
51
|
+
) {
|
52
|
+
___Ecoportal__API__GraphQL__Fragment__LocationNode
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end # Query
|
60
|
+
end # GraphQL
|
61
|
+
end # API
|
62
|
+
end # Ecoportal
|
@@ -2,20 +2,23 @@ module Ecoportal
|
|
2
2
|
module API
|
3
3
|
class GraphQL
|
4
4
|
module Query
|
5
|
-
class LocationStructure <
|
5
|
+
class LocationStructure < Logic::Query
|
6
6
|
accepted_params :id
|
7
7
|
accepted_params :includeArchivedNodes, default: true
|
8
8
|
|
9
9
|
field_name :structure
|
10
10
|
|
11
|
-
class_resolver :item_class,
|
11
|
+
class_resolver :item_class, Model::LocationStructure
|
12
12
|
|
13
13
|
private
|
14
14
|
|
15
15
|
def basic_block(&block)
|
16
16
|
final_block = block || default_query_block
|
17
17
|
proc {
|
18
|
-
query(
|
18
|
+
query(
|
19
|
+
id: :id!,
|
20
|
+
includeArchivedNodes: :boolean
|
21
|
+
) {
|
19
22
|
currentOrganization {
|
20
23
|
locations {
|
21
24
|
structure(id: :id, &final_block)
|
@@ -36,9 +39,17 @@ module Ecoportal
|
|
36
39
|
weight
|
37
40
|
updatedAt
|
38
41
|
visitorManagementEnabled
|
39
|
-
nodes(
|
42
|
+
nodes(
|
43
|
+
includeArchived: :includeArchivedNodes
|
44
|
+
) {
|
40
45
|
___Ecoportal__API__GraphQL__Fragment__LocationNode
|
41
46
|
}
|
47
|
+
drafts {
|
48
|
+
id
|
49
|
+
createdAt
|
50
|
+
name
|
51
|
+
notes
|
52
|
+
}
|
42
53
|
}
|
43
54
|
end
|
44
55
|
end
|
@@ -46,3 +57,5 @@ module Ecoportal
|
|
46
57
|
end
|
47
58
|
end
|
48
59
|
end
|
60
|
+
|
61
|
+
require_relative 'location_structure/draft'
|
@@ -2,13 +2,13 @@ module Ecoportal
|
|
2
2
|
module API
|
3
3
|
class GraphQL
|
4
4
|
module Query
|
5
|
-
class LocationStructures <
|
5
|
+
class LocationStructures < Logic::QueryArray
|
6
6
|
accepted_params :includeArchived, :includeUnpublished, default: false
|
7
7
|
accepted_params :includeArchivedNodes, default: true
|
8
8
|
|
9
9
|
field_name :structures
|
10
10
|
|
11
|
-
class_resolver :item_class,
|
11
|
+
class_resolver :item_class, Model::LocationStructure
|
12
12
|
|
13
13
|
private
|
14
14
|
|
@@ -43,7 +43,9 @@ module Ecoportal
|
|
43
43
|
archived
|
44
44
|
weight
|
45
45
|
visitorManagementEnabled
|
46
|
-
nodes(
|
46
|
+
nodes(
|
47
|
+
includeArchived: :includeArchivedNodes
|
48
|
+
) {
|
47
49
|
___Ecoportal__API__GraphQL__Fragment__LocationNode
|
48
50
|
}
|
49
51
|
}
|
@@ -54,15 +54,17 @@ module Ecoportal
|
|
54
54
|
end
|
55
55
|
end
|
56
56
|
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
57
|
+
require_relative 'graphql/helpers'
|
58
|
+
require_relative 'graphql/logic/base_model'
|
59
|
+
require_relative 'graphql/error'
|
60
|
+
require_relative 'graphql/interface'
|
61
|
+
require_relative 'graphql/base'
|
62
|
+
require_relative 'graphql/model'
|
63
|
+
require_relative 'graphql/logic'
|
64
|
+
require_relative 'graphql/connection'
|
65
|
+
require_relative 'graphql/payload'
|
66
|
+
require_relative 'graphql/input'
|
67
|
+
require_relative 'graphql/fragment'
|
68
|
+
require_relative 'graphql/query'
|
69
|
+
require_relative 'graphql/mutation'
|
70
|
+
require_relative 'graphql/builder'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ecoportal-api-graphql
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2
|
4
|
+
version: 1.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Oscar Segura
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-08-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|
@@ -141,7 +141,7 @@ dependencies:
|
|
141
141
|
version: '0.10'
|
142
142
|
- - ">="
|
143
143
|
- !ruby/object:Gem::Version
|
144
|
-
version: 0.10.
|
144
|
+
version: 0.10.14
|
145
145
|
type: :runtime
|
146
146
|
prerelease: false
|
147
147
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -151,27 +151,27 @@ dependencies:
|
|
151
151
|
version: '0.10'
|
152
152
|
- - ">="
|
153
153
|
- !ruby/object:Gem::Version
|
154
|
-
version: 0.10.
|
154
|
+
version: 0.10.14
|
155
155
|
- !ruby/object:Gem::Dependency
|
156
156
|
name: ecoportal-api-v2
|
157
157
|
requirement: !ruby/object:Gem::Requirement
|
158
158
|
requirements:
|
159
159
|
- - "~>"
|
160
160
|
- !ruby/object:Gem::Version
|
161
|
-
version: '3.
|
161
|
+
version: '3.3'
|
162
162
|
- - ">="
|
163
163
|
- !ruby/object:Gem::Version
|
164
|
-
version: 3.
|
164
|
+
version: 3.3.1
|
165
165
|
type: :runtime
|
166
166
|
prerelease: false
|
167
167
|
version_requirements: !ruby/object:Gem::Requirement
|
168
168
|
requirements:
|
169
169
|
- - "~>"
|
170
170
|
- !ruby/object:Gem::Version
|
171
|
-
version: '3.
|
171
|
+
version: '3.3'
|
172
172
|
- - ">="
|
173
173
|
- !ruby/object:Gem::Version
|
174
|
-
version: 3.
|
174
|
+
version: 3.3.1
|
175
175
|
- !ruby/object:Gem::Dependency
|
176
176
|
name: graphlient
|
177
177
|
requirement: !ruby/object:Gem::Requirement
|
@@ -244,7 +244,8 @@ files:
|
|
244
244
|
- lib/ecoportal/api/graphql/base/location_classification_type.rb
|
245
245
|
- lib/ecoportal/api/graphql/base/location_node.rb
|
246
246
|
- lib/ecoportal/api/graphql/base/location_structure.rb
|
247
|
-
- lib/ecoportal/api/graphql/base/
|
247
|
+
- lib/ecoportal/api/graphql/base/location_structure/draft.rb
|
248
|
+
- lib/ecoportal/api/graphql/base/location_structure/draft/structure.rb
|
248
249
|
- lib/ecoportal/api/graphql/base/organization.rb
|
249
250
|
- lib/ecoportal/api/graphql/base/page.rb
|
250
251
|
- lib/ecoportal/api/graphql/base/page_info.rb
|
@@ -254,6 +255,7 @@ files:
|
|
254
255
|
- lib/ecoportal/api/graphql/builder/action.rb
|
255
256
|
- lib/ecoportal/api/graphql/builder/contractor_entity.rb
|
256
257
|
- lib/ecoportal/api/graphql/builder/location_structure.rb
|
258
|
+
- lib/ecoportal/api/graphql/builder/location_structure/draft.rb
|
257
259
|
- lib/ecoportal/api/graphql/connection.rb
|
258
260
|
- lib/ecoportal/api/graphql/connection/action.rb
|
259
261
|
- lib/ecoportal/api/graphql/connection/action_category.rb
|
@@ -261,13 +263,16 @@ files:
|
|
261
263
|
- lib/ecoportal/api/graphql/connection/person_member.rb
|
262
264
|
- lib/ecoportal/api/graphql/error.rb
|
263
265
|
- lib/ecoportal/api/graphql/error/locations_error.rb
|
266
|
+
- lib/ecoportal/api/graphql/error/locations_error/fetch_nested.rb
|
264
267
|
- lib/ecoportal/api/graphql/error/locations_validation_error.rb
|
265
268
|
- lib/ecoportal/api/graphql/error/validation_errors.rb
|
266
269
|
- lib/ecoportal/api/graphql/fragment.rb
|
267
270
|
- lib/ecoportal/api/graphql/fragment/action.rb
|
268
271
|
- lib/ecoportal/api/graphql/fragment/action_category.rb
|
269
272
|
- lib/ecoportal/api/graphql/fragment/contractor_entity.rb
|
273
|
+
- lib/ecoportal/api/graphql/fragment/location_draft.rb
|
270
274
|
- lib/ecoportal/api/graphql/fragment/location_node.rb
|
275
|
+
- lib/ecoportal/api/graphql/fragment/locations_error.rb
|
271
276
|
- lib/ecoportal/api/graphql/fragment/pagination.rb
|
272
277
|
- lib/ecoportal/api/graphql/helpers.rb
|
273
278
|
- lib/ecoportal/api/graphql/helpers/locations_tree.rb
|
@@ -284,8 +289,13 @@ files:
|
|
284
289
|
- lib/ecoportal/api/graphql/input/location_structure.rb
|
285
290
|
- lib/ecoportal/api/graphql/input/location_structure/apply_commands.rb
|
286
291
|
- lib/ecoportal/api/graphql/input/location_structure/archive_command.rb
|
287
|
-
- lib/ecoportal/api/graphql/input/location_structure/command_interface.rb
|
288
292
|
- lib/ecoportal/api/graphql/input/location_structure/delete_command.rb
|
293
|
+
- lib/ecoportal/api/graphql/input/location_structure/draft.rb
|
294
|
+
- lib/ecoportal/api/graphql/input/location_structure/draft/add_commands.rb
|
295
|
+
- lib/ecoportal/api/graphql/input/location_structure/draft/create.rb
|
296
|
+
- lib/ecoportal/api/graphql/input/location_structure/draft/delete.rb
|
297
|
+
- lib/ecoportal/api/graphql/input/location_structure/draft/drop_bad_commands.rb
|
298
|
+
- lib/ecoportal/api/graphql/input/location_structure/draft/publish.rb
|
289
299
|
- lib/ecoportal/api/graphql/input/location_structure/insert_command.rb
|
290
300
|
- lib/ecoportal/api/graphql/input/location_structure/move_command.rb
|
291
301
|
- lib/ecoportal/api/graphql/input/location_structure/reorder_command.rb
|
@@ -294,9 +304,17 @@ files:
|
|
294
304
|
- lib/ecoportal/api/graphql/input/search.rb
|
295
305
|
- lib/ecoportal/api/graphql/input/search_filter.rb
|
296
306
|
- lib/ecoportal/api/graphql/input/search_sorter.rb
|
307
|
+
- lib/ecoportal/api/graphql/interface.rb
|
308
|
+
- lib/ecoportal/api/graphql/interface/base_page.rb
|
309
|
+
- lib/ecoportal/api/graphql/interface/location_structure.rb
|
310
|
+
- lib/ecoportal/api/graphql/interface/location_structure/command.rb
|
311
|
+
- lib/ecoportal/api/graphql/interface/location_structure/node.rb
|
312
|
+
- lib/ecoportal/api/graphql/interface/location_structure/nodes.rb
|
297
313
|
- lib/ecoportal/api/graphql/logic.rb
|
314
|
+
- lib/ecoportal/api/graphql/logic/base_model.rb
|
298
315
|
- lib/ecoportal/api/graphql/logic/base_query.rb
|
299
316
|
- lib/ecoportal/api/graphql/logic/connection.rb
|
317
|
+
- lib/ecoportal/api/graphql/logic/input.rb
|
300
318
|
- lib/ecoportal/api/graphql/logic/mutation.rb
|
301
319
|
- lib/ecoportal/api/graphql/logic/payload.rb
|
302
320
|
- lib/ecoportal/api/graphql/logic/query.rb
|
@@ -311,6 +329,8 @@ files:
|
|
311
329
|
- lib/ecoportal/api/graphql/model/file_container.rb
|
312
330
|
- lib/ecoportal/api/graphql/model/location_node.rb
|
313
331
|
- lib/ecoportal/api/graphql/model/location_structure.rb
|
332
|
+
- lib/ecoportal/api/graphql/model/location_structure/draft.rb
|
333
|
+
- lib/ecoportal/api/graphql/model/location_structure/draft/structure.rb
|
314
334
|
- lib/ecoportal/api/graphql/model/organization.rb
|
315
335
|
- lib/ecoportal/api/graphql/model/page.rb
|
316
336
|
- lib/ecoportal/api/graphql/model/person_member.rb
|
@@ -327,6 +347,12 @@ files:
|
|
327
347
|
- lib/ecoportal/api/graphql/mutation/contractor_entity/update.rb
|
328
348
|
- lib/ecoportal/api/graphql/mutation/location_structure.rb
|
329
349
|
- lib/ecoportal/api/graphql/mutation/location_structure/apply_commands.rb
|
350
|
+
- lib/ecoportal/api/graphql/mutation/location_structure/draft.rb
|
351
|
+
- lib/ecoportal/api/graphql/mutation/location_structure/draft/add_commands.rb
|
352
|
+
- lib/ecoportal/api/graphql/mutation/location_structure/draft/create.rb
|
353
|
+
- lib/ecoportal/api/graphql/mutation/location_structure/draft/delete.rb
|
354
|
+
- lib/ecoportal/api/graphql/mutation/location_structure/draft/drop_bad_commands.rb
|
355
|
+
- lib/ecoportal/api/graphql/mutation/location_structure/draft/publish.rb
|
330
356
|
- lib/ecoportal/api/graphql/payload.rb
|
331
357
|
- lib/ecoportal/api/graphql/payload/action.rb
|
332
358
|
- lib/ecoportal/api/graphql/payload/action/archive.rb
|
@@ -339,7 +365,12 @@ files:
|
|
339
365
|
- lib/ecoportal/api/graphql/payload/location_structure.rb
|
340
366
|
- lib/ecoportal/api/graphql/payload/location_structure/apply_commands.rb
|
341
367
|
- lib/ecoportal/api/graphql/payload/location_structure/command_execution_result.rb
|
342
|
-
- lib/ecoportal/api/graphql/payload/location_structure/
|
368
|
+
- lib/ecoportal/api/graphql/payload/location_structure/draft.rb
|
369
|
+
- lib/ecoportal/api/graphql/payload/location_structure/draft/add_commands.rb
|
370
|
+
- lib/ecoportal/api/graphql/payload/location_structure/draft/create.rb
|
371
|
+
- lib/ecoportal/api/graphql/payload/location_structure/draft/delete.rb
|
372
|
+
- lib/ecoportal/api/graphql/payload/location_structure/draft/drop_bad_commands.rb
|
373
|
+
- lib/ecoportal/api/graphql/payload/location_structure/draft/publish.rb
|
343
374
|
- lib/ecoportal/api/graphql/query.rb
|
344
375
|
- lib/ecoportal/api/graphql/query/action.rb
|
345
376
|
- lib/ecoportal/api/graphql/query/action_categories.rb
|
@@ -347,6 +378,7 @@ files:
|
|
347
378
|
- lib/ecoportal/api/graphql/query/contractor_entities.rb
|
348
379
|
- lib/ecoportal/api/graphql/query/location_classifications.rb
|
349
380
|
- lib/ecoportal/api/graphql/query/location_structure.rb
|
381
|
+
- lib/ecoportal/api/graphql/query/location_structure/draft.rb
|
350
382
|
- lib/ecoportal/api/graphql/query/location_structures.rb
|
351
383
|
- lib/ecoportal/api/graphql_version.rb
|
352
384
|
- tests/actions_get.rb
|