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.
- checksums.yaml +4 -4
- data/.ai-assistance/bridge/archive/oscar-a1b2c3d-gitlab-mcp-doc-update.inbox.md +29 -29
- data/.ai-assistance/bridge/archive/oscar-c912c25-gemini-design-review.inbox.md +42 -42
- data/.gitignore +37 -37
- data/CHANGELOG.md +17 -0
- data/docs/worklog.md +0 -18
- data/lib/ecoportal/api/common/graphql/client.rb +0 -2
- data/lib/ecoportal/api/graphql/base/location_classification_type.rb +15 -15
- data/lib/ecoportal/api/graphql/base/location_structure.rb +27 -27
- data/lib/ecoportal/api/graphql/base/organization.rb +15 -15
- data/lib/ecoportal/api/graphql/base.rb +35 -35
- data/lib/ecoportal/api/graphql/builder/contractor_entity.rb +41 -41
- data/lib/ecoportal/api/graphql/connection/action.rb +11 -11
- data/lib/ecoportal/api/graphql/connection/action_category.rb +11 -11
- data/lib/ecoportal/api/graphql/connection/contractor_entity.rb +11 -11
- data/lib/ecoportal/api/graphql/connection/page.rb +11 -11
- data/lib/ecoportal/api/graphql/connection/person_member.rb +11 -11
- data/lib/ecoportal/api/graphql/connection/preview_page.rb +11 -11
- data/lib/ecoportal/api/graphql/connection.rb +17 -17
- data/lib/ecoportal/api/graphql/fragment/location_node.rb +26 -26
- data/lib/ecoportal/api/graphql/input/contractor_entity.rb +14 -14
- data/lib/ecoportal/api/graphql/input/workflow_command/add_stage.rb +18 -18
- data/lib/ecoportal/api/graphql/input/workflow_command/edit_field_configuration.rb +21 -21
- data/lib/ecoportal/api/graphql/input/workflow_command/edit_page.rb +28 -28
- data/lib/ecoportal/api/graphql/input/workflow_command/edit_page_creator_permissions.rb +18 -18
- data/lib/ecoportal/api/graphql/input/workflow_command/field_config/cross_reference.rb +23 -23
- data/lib/ecoportal/api/graphql/input/workflow_command/field_config/date.rb +20 -20
- data/lib/ecoportal/api/graphql/input/workflow_command/field_config/image_gallery.rb +20 -20
- data/lib/ecoportal/api/graphql/input/workflow_command/field_config/plain_text.rb +20 -20
- data/lib/ecoportal/api/graphql/input/workflow_command/field_config/rich_text.rb +20 -20
- data/lib/ecoportal/api/graphql/input/workflow_command/field_config/select.rb +20 -20
- data/lib/ecoportal/api/graphql/input/workflow_command/move_field.rb +18 -18
- data/lib/ecoportal/api/graphql/input/workflow_command/reorder_forces.rb +18 -18
- data/lib/ecoportal/api/graphql/input/workflow_command/reorder_section.rb +18 -18
- data/lib/ecoportal/api/graphql/input/workflow_command.rb +251 -251
- data/lib/ecoportal/api/graphql/input.rb +24 -24
- data/lib/ecoportal/api/graphql/logic/connection.rb +34 -34
- data/lib/ecoportal/api/graphql/model/person_member.rb +15 -15
- data/lib/ecoportal/api/graphql/model.rb +30 -30
- data/lib/ecoportal/api/graphql/mutation/contractor_entity.rb +14 -14
- data/lib/ecoportal/api/graphql/payload/contractor_entity.rb +14 -14
- data/lib/ecoportal/api/graphql/query/location_structures.rb +57 -57
- data/lib/ecoportal/api/graphql/query.rb +27 -27
- data/lib/ecoportal/api/graphql_version.rb +1 -1
- metadata +1 -1
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
module Ecoportal
|
|
2
|
-
module API
|
|
3
|
-
class GraphQL
|
|
4
|
-
module Logic
|
|
5
|
-
class Connection < Logic::BaseModel
|
|
6
|
-
class GenericNode
|
|
7
|
-
def initialize(*_args, **_kargs)
|
|
8
|
-
raise "Missuse error. You should define a node_class for a class that inherits from GraphqlConnection class."
|
|
9
|
-
end
|
|
10
|
-
end
|
|
11
|
-
|
|
12
|
-
include Enumerable
|
|
13
|
-
|
|
14
|
-
class_resolver :node_class, GenericNode
|
|
15
|
-
|
|
16
|
-
passthrough :edges
|
|
17
|
-
passthrough :totalCount
|
|
18
|
-
embeds_many :nodes, klass: :node_class
|
|
19
|
-
embeds_one :pageInfo, klass: Base::PageInfo
|
|
20
|
-
|
|
21
|
-
def empty?
|
|
22
|
-
count < 1
|
|
23
|
-
end
|
|
24
|
-
|
|
25
|
-
def each(&block)
|
|
26
|
-
return to_enum(:each) unless block
|
|
27
|
-
|
|
28
|
-
nodes.each(&block)
|
|
29
|
-
end
|
|
30
|
-
end
|
|
31
|
-
end
|
|
32
|
-
end
|
|
33
|
-
end
|
|
34
|
-
end
|
|
1
|
+
module Ecoportal
|
|
2
|
+
module API
|
|
3
|
+
class GraphQL
|
|
4
|
+
module Logic
|
|
5
|
+
class Connection < Logic::BaseModel
|
|
6
|
+
class GenericNode
|
|
7
|
+
def initialize(*_args, **_kargs)
|
|
8
|
+
raise "Missuse error. You should define a node_class for a class that inherits from GraphqlConnection class."
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
include Enumerable
|
|
13
|
+
|
|
14
|
+
class_resolver :node_class, GenericNode
|
|
15
|
+
|
|
16
|
+
passthrough :edges
|
|
17
|
+
passthrough :totalCount
|
|
18
|
+
embeds_many :nodes, klass: :node_class
|
|
19
|
+
embeds_one :pageInfo, klass: Base::PageInfo
|
|
20
|
+
|
|
21
|
+
def empty?
|
|
22
|
+
count < 1
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
def each(&block)
|
|
26
|
+
return to_enum(:each) unless block
|
|
27
|
+
|
|
28
|
+
nodes.each(&block)
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
module Ecoportal
|
|
2
|
-
module API
|
|
3
|
-
class GraphQL
|
|
4
|
-
module Model
|
|
5
|
-
class PersonMember < Base::PersonMember
|
|
6
|
-
embeds_one :contractorOrganization, klass: "Ecoportal::API::GraphQL::Model::ContractorEntity"
|
|
7
|
-
embeds_one :account, klass: Model::Account
|
|
8
|
-
|
|
9
|
-
# embeds_many :privateFields, enum_class: Ecoportal::API::GraphQL::Model::MemberSchemaFields
|
|
10
|
-
# embeds_many :publicFields, enum_class: Ecoportal::API::GraphQL::Model::MemberSchemaFields
|
|
11
|
-
end
|
|
12
|
-
end
|
|
13
|
-
end
|
|
14
|
-
end
|
|
15
|
-
end
|
|
1
|
+
module Ecoportal
|
|
2
|
+
module API
|
|
3
|
+
class GraphQL
|
|
4
|
+
module Model
|
|
5
|
+
class PersonMember < Base::PersonMember
|
|
6
|
+
embeds_one :contractorOrganization, klass: "Ecoportal::API::GraphQL::Model::ContractorEntity"
|
|
7
|
+
embeds_one :account, klass: Model::Account
|
|
8
|
+
|
|
9
|
+
# embeds_many :privateFields, enum_class: Ecoportal::API::GraphQL::Model::MemberSchemaFields
|
|
10
|
+
# embeds_many :publicFields, enum_class: Ecoportal::API::GraphQL::Model::MemberSchemaFields
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
module Ecoportal
|
|
2
|
-
module API
|
|
3
|
-
class GraphQL
|
|
4
|
-
module Model
|
|
5
|
-
end
|
|
6
|
-
end
|
|
7
|
-
end
|
|
8
|
-
end
|
|
9
|
-
|
|
10
|
-
require_relative 'model/location_node'
|
|
11
|
-
require_relative 'model/location_structure'
|
|
12
|
-
require_relative 'model/account'
|
|
13
|
-
require_relative 'model/user'
|
|
14
|
-
require_relative 'model/person_member'
|
|
15
|
-
require_relative 'model/file_attachment'
|
|
16
|
-
require_relative 'model/file_container'
|
|
17
|
-
require_relative 'model/field'
|
|
18
|
-
require_relative 'model/page'
|
|
19
|
-
require_relative 'model/page_union'
|
|
20
|
-
require_relative 'model/preview_page'
|
|
21
|
-
require_relative 'model/resource'
|
|
22
|
-
require_relative 'model/action'
|
|
23
|
-
require_relative 'model/contractor_entity'
|
|
24
|
-
require_relative 'model/organization'
|
|
25
|
-
|
|
26
|
-
require_relative 'model/register'
|
|
27
|
-
require_relative 'model/preset_view'
|
|
28
|
-
|
|
29
|
-
require_relative 'model/ai_summary_version'
|
|
30
|
-
require_relative 'model/pages_workflow'
|
|
1
|
+
module Ecoportal
|
|
2
|
+
module API
|
|
3
|
+
class GraphQL
|
|
4
|
+
module Model
|
|
5
|
+
end
|
|
6
|
+
end
|
|
7
|
+
end
|
|
8
|
+
end
|
|
9
|
+
|
|
10
|
+
require_relative 'model/location_node'
|
|
11
|
+
require_relative 'model/location_structure'
|
|
12
|
+
require_relative 'model/account'
|
|
13
|
+
require_relative 'model/user'
|
|
14
|
+
require_relative 'model/person_member'
|
|
15
|
+
require_relative 'model/file_attachment'
|
|
16
|
+
require_relative 'model/file_container'
|
|
17
|
+
require_relative 'model/field'
|
|
18
|
+
require_relative 'model/page'
|
|
19
|
+
require_relative 'model/page_union'
|
|
20
|
+
require_relative 'model/preview_page'
|
|
21
|
+
require_relative 'model/resource'
|
|
22
|
+
require_relative 'model/action'
|
|
23
|
+
require_relative 'model/contractor_entity'
|
|
24
|
+
require_relative 'model/organization'
|
|
25
|
+
|
|
26
|
+
require_relative 'model/register'
|
|
27
|
+
require_relative 'model/preset_view'
|
|
28
|
+
|
|
29
|
+
require_relative 'model/ai_summary_version'
|
|
30
|
+
require_relative 'model/pages_workflow'
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
module Ecoportal
|
|
2
|
-
module API
|
|
3
|
-
class GraphQL
|
|
4
|
-
module Mutation
|
|
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 Mutation
|
|
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,14 +1,14 @@
|
|
|
1
|
-
module Ecoportal
|
|
2
|
-
module API
|
|
3
|
-
class GraphQL
|
|
4
|
-
module Payload
|
|
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 Payload
|
|
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,57 +1,57 @@
|
|
|
1
|
-
module Ecoportal
|
|
2
|
-
module API
|
|
3
|
-
class GraphQL
|
|
4
|
-
module Query
|
|
5
|
-
class LocationStructures < Logic::QueryArray
|
|
6
|
-
accepted_params :includeArchived, :includeUnpublished, default: false
|
|
7
|
-
accepted_params :includeArchivedNodes, default: true
|
|
8
|
-
|
|
9
|
-
field_name :structures
|
|
10
|
-
|
|
11
|
-
class_resolver :item_class, Model::LocationStructure
|
|
12
|
-
|
|
13
|
-
private
|
|
14
|
-
|
|
15
|
-
def basic_block(&block)
|
|
16
|
-
final_block = block || default_query_block
|
|
17
|
-
proc {
|
|
18
|
-
query(
|
|
19
|
-
includeArchived: :boolean,
|
|
20
|
-
includeUnpublished: :boolean,
|
|
21
|
-
includeArchivedNodes: :boolean
|
|
22
|
-
) {
|
|
23
|
-
currentOrganization {
|
|
24
|
-
locations {
|
|
25
|
-
structures(
|
|
26
|
-
includeArchived: :includeArchived,
|
|
27
|
-
includeUnpublished: :includeUnpublished,
|
|
28
|
-
&final_block
|
|
29
|
-
)
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
end
|
|
35
|
-
|
|
36
|
-
# At the moment it always retrieves archived nodes!!
|
|
37
|
-
# @note this is on purpose, as via API
|
|
38
|
-
# there isn't much sense in not including archived nodes.
|
|
39
|
-
def default_query_block
|
|
40
|
-
proc {
|
|
41
|
-
id
|
|
42
|
-
name
|
|
43
|
-
archived
|
|
44
|
-
weight
|
|
45
|
-
visitorManagementEnabled
|
|
46
|
-
nodes(
|
|
47
|
-
includeArchived: :includeArchivedNodes
|
|
48
|
-
) {
|
|
49
|
-
spread :LocationNode
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
end
|
|
53
|
-
end
|
|
54
|
-
end
|
|
55
|
-
end
|
|
56
|
-
end
|
|
57
|
-
end
|
|
1
|
+
module Ecoportal
|
|
2
|
+
module API
|
|
3
|
+
class GraphQL
|
|
4
|
+
module Query
|
|
5
|
+
class LocationStructures < Logic::QueryArray
|
|
6
|
+
accepted_params :includeArchived, :includeUnpublished, default: false
|
|
7
|
+
accepted_params :includeArchivedNodes, default: true
|
|
8
|
+
|
|
9
|
+
field_name :structures
|
|
10
|
+
|
|
11
|
+
class_resolver :item_class, Model::LocationStructure
|
|
12
|
+
|
|
13
|
+
private
|
|
14
|
+
|
|
15
|
+
def basic_block(&block)
|
|
16
|
+
final_block = block || default_query_block
|
|
17
|
+
proc {
|
|
18
|
+
query(
|
|
19
|
+
includeArchived: :boolean,
|
|
20
|
+
includeUnpublished: :boolean,
|
|
21
|
+
includeArchivedNodes: :boolean
|
|
22
|
+
) {
|
|
23
|
+
currentOrganization {
|
|
24
|
+
locations {
|
|
25
|
+
structures(
|
|
26
|
+
includeArchived: :includeArchived,
|
|
27
|
+
includeUnpublished: :includeUnpublished,
|
|
28
|
+
&final_block
|
|
29
|
+
)
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# At the moment it always retrieves archived nodes!!
|
|
37
|
+
# @note this is on purpose, as via API
|
|
38
|
+
# there isn't much sense in not including archived nodes.
|
|
39
|
+
def default_query_block
|
|
40
|
+
proc {
|
|
41
|
+
id
|
|
42
|
+
name
|
|
43
|
+
archived
|
|
44
|
+
weight
|
|
45
|
+
visitorManagementEnabled
|
|
46
|
+
nodes(
|
|
47
|
+
includeArchived: :includeArchivedNodes
|
|
48
|
+
) {
|
|
49
|
+
spread :LocationNode
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
module Ecoportal
|
|
2
|
-
module API
|
|
3
|
-
class GraphQL
|
|
4
|
-
module Query
|
|
5
|
-
end
|
|
6
|
-
end
|
|
7
|
-
end
|
|
8
|
-
end
|
|
9
|
-
|
|
10
|
-
require_relative 'query/location_classifications'
|
|
11
|
-
require_relative 'query/location_structure'
|
|
12
|
-
require_relative 'query/location_structures'
|
|
13
|
-
require_relative 'query/action_categories'
|
|
14
|
-
require_relative 'query/action'
|
|
15
|
-
require_relative 'query/actions'
|
|
16
|
-
require_relative 'query/contractor_entities'
|
|
17
|
-
require_relative 'query/page'
|
|
18
|
-
require_relative 'query/pages'
|
|
19
|
-
require_relative 'query/templates'
|
|
20
|
-
require_relative 'query/register_preview_pages'
|
|
21
|
-
require_relative 'query/page_delta'
|
|
22
|
-
require_relative 'query/register_preset_views'
|
|
23
|
-
|
|
24
|
-
require_relative 'query/file_upload_signature'
|
|
25
|
-
|
|
26
|
-
require_relative 'query/page_with_forces'
|
|
27
|
-
require_relative 'query/pages_workflow_commands'
|
|
1
|
+
module Ecoportal
|
|
2
|
+
module API
|
|
3
|
+
class GraphQL
|
|
4
|
+
module Query
|
|
5
|
+
end
|
|
6
|
+
end
|
|
7
|
+
end
|
|
8
|
+
end
|
|
9
|
+
|
|
10
|
+
require_relative 'query/location_classifications'
|
|
11
|
+
require_relative 'query/location_structure'
|
|
12
|
+
require_relative 'query/location_structures'
|
|
13
|
+
require_relative 'query/action_categories'
|
|
14
|
+
require_relative 'query/action'
|
|
15
|
+
require_relative 'query/actions'
|
|
16
|
+
require_relative 'query/contractor_entities'
|
|
17
|
+
require_relative 'query/page'
|
|
18
|
+
require_relative 'query/pages'
|
|
19
|
+
require_relative 'query/templates'
|
|
20
|
+
require_relative 'query/register_preview_pages'
|
|
21
|
+
require_relative 'query/page_delta'
|
|
22
|
+
require_relative 'query/register_preset_views'
|
|
23
|
+
|
|
24
|
+
require_relative 'query/file_upload_signature'
|
|
25
|
+
|
|
26
|
+
require_relative 'query/page_with_forces'
|
|
27
|
+
require_relative 'query/pages_workflow_commands'
|