ecoportal-api-graphql 1.3.17 → 2.2.1
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/CHANGELOG.md +763 -11
- data/lib/ecoportal/api/common/graphql/http_client.rb +85 -2
- data/lib/ecoportal/api/common/graphql/model/diffable/leaf_diff_service.rb +97 -0
- data/lib/ecoportal/api/common/graphql/model/diffable.rb +1 -0
- data/lib/ecoportal/api/graphql/base/action.rb +1 -1
- data/lib/ecoportal/api/graphql/base/action_event.rb +23 -0
- data/lib/ecoportal/api/graphql/base/action_event_page.rb +16 -0
- data/lib/ecoportal/api/graphql/base/activity.rb +38 -0
- data/lib/ecoportal/api/graphql/base/activity_log.rb +38 -0
- data/lib/ecoportal/api/graphql/base/ai_summary_version.rb +12 -7
- data/lib/ecoportal/api/graphql/base/auth_log.rb +24 -0
- data/lib/ecoportal/api/graphql/base/authorization_result.rb +20 -0
- data/lib/ecoportal/api/graphql/base/contractor_entity/member_changes.rb +17 -5
- data/lib/ecoportal/api/graphql/base/file_container.rb +12 -4
- data/lib/ecoportal/api/graphql/base/location_classification_type.rb +2 -0
- data/lib/ecoportal/api/graphql/base/location_structure.rb +3 -0
- data/lib/ecoportal/api/graphql/base/minimal_dashboard.rb +25 -0
- data/lib/ecoportal/api/graphql/base/organization.rb +2 -0
- data/lib/ecoportal/api/graphql/base/page/data_field/contractor_entities.rb +25 -2
- data/lib/ecoportal/api/graphql/base/page/data_field/file_field.rb +46 -7
- data/lib/ecoportal/api/graphql/base/page/data_field/image_gallery.rb +5 -2
- data/lib/ecoportal/api/graphql/base/page/data_field/people.rb +50 -12
- data/lib/ecoportal/api/graphql/base/page/data_field.rb +12 -18
- data/lib/ecoportal/api/graphql/base/page/phased/stage.rb +51 -0
- data/lib/ecoportal/api/graphql/base/permissions.rb +15 -0
- data/lib/ecoportal/api/graphql/base/person_member_changelog.rb +23 -0
- data/lib/ecoportal/api/graphql/base/preset_view.rb +135 -0
- data/lib/ecoportal/api/graphql/base/register.rb +5 -0
- data/lib/ecoportal/api/graphql/base/template/change_log_entry.rb +118 -0
- data/lib/ecoportal/api/graphql/base/template.rb +2 -0
- data/lib/ecoportal/api/graphql/base.rb +9 -0
- data/lib/ecoportal/api/graphql/builder/contractor_entity.rb +10 -0
- data/lib/ecoportal/api/graphql/builder/page.rb +0 -16
- data/lib/ecoportal/api/graphql/builder/template.rb +46 -0
- data/lib/ecoportal/api/graphql/builder/template_builder.rb +21 -2
- data/lib/ecoportal/api/graphql/compat/pages.rb +7 -2
- data/lib/ecoportal/api/graphql/compat/response.rb +14 -0
- data/lib/ecoportal/api/graphql/concerns/threadable.rb +58 -0
- data/lib/ecoportal/api/graphql/concerns.rb +1 -0
- data/lib/ecoportal/api/graphql/connection/action.rb +1 -1
- data/lib/ecoportal/api/graphql/connection/action_category.rb +1 -1
- data/lib/ecoportal/api/graphql/connection/activity.rb +11 -0
- data/lib/ecoportal/api/graphql/connection/activity_log.rb +11 -0
- data/lib/ecoportal/api/graphql/connection/auth_log.rb +11 -0
- data/lib/ecoportal/api/graphql/connection/contractor_entity.rb +1 -1
- data/lib/ecoportal/api/graphql/connection/minimal_dashboard.rb +11 -0
- data/lib/ecoportal/api/graphql/connection/page.rb +1 -1
- data/lib/ecoportal/api/graphql/connection/pages_workflow_command.rb +1 -1
- data/lib/ecoportal/api/graphql/connection/person_member.rb +1 -1
- data/lib/ecoportal/api/graphql/connection/person_member_changelog.rb +11 -0
- data/lib/ecoportal/api/graphql/connection/preview_page.rb +1 -1
- data/lib/ecoportal/api/graphql/connection/template_change_log.rb +19 -0
- data/lib/ecoportal/api/graphql/connection.rb +6 -0
- data/lib/ecoportal/api/graphql/diff/change.rb +7 -2
- data/lib/ecoportal/api/graphql/diff/command_synthesizer.rb +19 -1
- data/lib/ecoportal/api/graphql/diff/pairing/signals.rb +21 -1
- data/lib/ecoportal/api/graphql/diff/version_diff.rb +13 -6
- data/lib/ecoportal/api/graphql/file_upload/client.rb +198 -139
- data/lib/ecoportal/api/graphql/fragment/activity.rb +84 -0
- data/lib/ecoportal/api/graphql/fragment/activity_log.rb +75 -0
- data/lib/ecoportal/api/graphql/fragment/auth_log.rb +29 -0
- data/lib/ecoportal/api/graphql/fragment/authorization_result.rb +14 -0
- data/lib/ecoportal/api/graphql/fragment/location_node.rb +1 -0
- data/lib/ecoportal/api/graphql/fragment/minimal_dashboard.rb +31 -0
- data/lib/ecoportal/api/graphql/fragment/page.rb +1 -0
- data/lib/ecoportal/api/graphql/fragment/pages/common_page_union.rb +23 -0
- data/lib/ecoportal/api/graphql/fragment/permissions.rb +96 -0
- data/lib/ecoportal/api/graphql/fragment/person_member_changelog.rb +33 -0
- data/lib/ecoportal/api/graphql/fragment/template_change_log.rb +102 -0
- data/lib/ecoportal/api/graphql/fragment.rb +8 -0
- data/lib/ecoportal/api/graphql/input/action/update.rb +12 -0
- data/lib/ecoportal/api/graphql/input/contractor_entity/manager_settings.rb +20 -0
- data/lib/ecoportal/api/graphql/input/contractor_entity/update.rb +6 -27
- data/lib/ecoportal/api/graphql/input/contractor_entity.rb +1 -0
- data/lib/ecoportal/api/graphql/input/date_range.rb +16 -0
- data/lib/ecoportal/api/graphql/input/location_structure/apply_commands.rb +2 -2
- data/lib/ecoportal/api/graphql/input/location_structure/draft/add_commands.rb +2 -2
- data/lib/ecoportal/api/graphql/input/location_structure/insert_command.rb +8 -0
- data/lib/ecoportal/api/graphql/input/location_structure/update_command.rb +6 -2
- data/lib/ecoportal/api/graphql/input/page/review_task.rb +14 -1
- data/lib/ecoportal/api/graphql/input/preset_view/update.rb +16 -1
- data/lib/ecoportal/api/graphql/input/workflow_command/add_checklist_field_item.rb +19 -0
- data/lib/ecoportal/api/graphql/input/workflow_command/add_field.rb +10 -9
- data/lib/ecoportal/api/graphql/input/workflow_command/add_select_field_option.rb +11 -5
- data/lib/ecoportal/api/graphql/input/workflow_command/add_smart_fill_config.rb +23 -0
- data/lib/ecoportal/api/graphql/input/workflow_command/add_stage.rb +3 -2
- data/lib/ecoportal/api/graphql/input/workflow_command/add_viewable_field.rb +45 -0
- data/lib/ecoportal/api/graphql/input/workflow_command/archive_public_config.rb +19 -0
- data/lib/ecoportal/api/graphql/input/workflow_command/create_public_config.rb +19 -0
- data/lib/ecoportal/api/graphql/input/workflow_command/edit_checklist_field_item.rb +19 -0
- data/lib/ecoportal/api/graphql/input/workflow_command/edit_field_configuration.rb +17 -2
- data/lib/ecoportal/api/graphql/input/workflow_command/edit_force.rb +5 -2
- data/lib/ecoportal/api/graphql/input/workflow_command/edit_public_config.rb +19 -0
- data/lib/ecoportal/api/graphql/input/workflow_command/edit_select_field_option.rb +6 -2
- data/lib/ecoportal/api/graphql/input/workflow_command/edit_smart_fill_config.rb +21 -0
- data/lib/ecoportal/api/graphql/input/workflow_command/edit_template_advanced_settings.rb +19 -0
- data/lib/ecoportal/api/graphql/input/workflow_command/edit_template_basic_settings.rb +32 -0
- data/lib/ecoportal/api/graphql/input/workflow_command/edit_template_container_uid.rb +45 -0
- data/lib/ecoportal/api/graphql/input/workflow_command/{edit_page_creator_permissions.rb → edit_template_creator_permissions.rb} +3 -2
- data/lib/ecoportal/api/graphql/input/workflow_command/edit_template_descriptions.rb +19 -0
- data/lib/ecoportal/api/graphql/input/workflow_command/field_config/action_list.rb +31 -0
- data/lib/ecoportal/api/graphql/input/workflow_command/field_config/contractor_entities.rb +6 -2
- data/lib/ecoportal/api/graphql/input/workflow_command/field_config/cross_reference.rb +9 -1
- data/lib/ecoportal/api/graphql/input/workflow_command/field_config/date.rb +15 -2
- data/lib/ecoportal/api/graphql/input/workflow_command/field_config/file.rb +21 -0
- data/lib/ecoportal/api/graphql/input/workflow_command/field_config/image_gallery.rb +3 -2
- data/lib/ecoportal/api/graphql/input/workflow_command/field_config/people.rb +27 -3
- data/lib/ecoportal/api/graphql/input/workflow_command/field_config/plain_text.rb +9 -2
- data/lib/ecoportal/api/graphql/input/workflow_command/field_config/rich_text.rb +3 -2
- data/lib/ecoportal/api/graphql/input/workflow_command/field_config/select.rb +3 -2
- data/lib/ecoportal/api/graphql/input/workflow_command/manage_copy_page_configuration.rb +47 -0
- data/lib/ecoportal/api/graphql/input/workflow_command/move_field.rb +3 -2
- data/lib/ecoportal/api/graphql/input/workflow_command/move_section_to_stage.rb +33 -0
- data/lib/ecoportal/api/graphql/input/workflow_command/move_viewable_field.rb +33 -0
- data/lib/ecoportal/api/graphql/input/workflow_command/remove_checklist_field_item.rb +19 -0
- data/lib/ecoportal/api/graphql/input/workflow_command/remove_smart_fill_config.rb +19 -0
- data/lib/ecoportal/api/graphql/input/workflow_command/remove_viewable_field.rb +21 -0
- data/lib/ecoportal/api/graphql/input/workflow_command/reorder_forces.rb +3 -2
- data/lib/ecoportal/api/graphql/input/workflow_command/reorder_section.rb +3 -2
- data/lib/ecoportal/api/graphql/input/workflow_command.rb +48 -5
- data/lib/ecoportal/api/graphql/input.rb +1 -0
- data/lib/ecoportal/api/graphql/interface/base_page.rb +50 -3
- data/lib/ecoportal/api/graphql/interface/location_structure/command.rb +2 -1
- data/lib/ecoportal/api/graphql/logic/base_query.rb +72 -5
- data/lib/ecoportal/api/graphql/logic/connection.rb +17 -0
- data/lib/ecoportal/api/graphql/logic/input.rb +127 -0
- data/lib/ecoportal/api/graphql/model/action_event.rb +14 -0
- data/lib/ecoportal/api/graphql/model/action_event_page.rb +10 -0
- data/lib/ecoportal/api/graphql/model/activity.rb +14 -0
- data/lib/ecoportal/api/graphql/model/activity_log.rb +31 -0
- data/lib/ecoportal/api/graphql/model/auth_log.rb +11 -0
- data/lib/ecoportal/api/graphql/model/authorization_result.rb +12 -0
- data/lib/ecoportal/api/graphql/model/minimal_dashboard.rb +14 -0
- data/lib/ecoportal/api/graphql/model/organization.rb +36 -0
- data/lib/ecoportal/api/graphql/model/page/phased.rb +17 -0
- data/lib/ecoportal/api/graphql/model/permissions.rb +185 -0
- data/lib/ecoportal/api/graphql/model/person_member.rb +7 -0
- data/lib/ecoportal/api/graphql/model/person_member_changelog.rb +15 -0
- data/lib/ecoportal/api/graphql/model/template/change_log_entry.rb +19 -0
- data/lib/ecoportal/api/graphql/model/template.rb +4 -1
- data/lib/ecoportal/api/graphql/model.rb +9 -0
- data/lib/ecoportal/api/graphql/mutation/ai_summary/generate.rb +20 -10
- data/lib/ecoportal/api/graphql/mutation/ai_summary/submit_feedback.rb +25 -10
- data/lib/ecoportal/api/graphql/mutation/contractor_entity/update_manager_settings.rb +37 -0
- data/lib/ecoportal/api/graphql/mutation/contractor_entity.rb +1 -0
- data/lib/ecoportal/api/graphql/mutation/file_container/upload.rb +78 -0
- data/lib/ecoportal/api/graphql/mutation/file_container.rb +15 -0
- data/lib/ecoportal/api/graphql/mutation/template/update_related_page.rb +79 -0
- data/lib/ecoportal/api/graphql/mutation/template.rb +1 -0
- data/lib/ecoportal/api/graphql/mutation.rb +1 -1
- data/lib/ecoportal/api/graphql/payload/contractor_entity/manager_settings.rb +20 -0
- data/lib/ecoportal/api/graphql/payload/contractor_entity.rb +1 -0
- data/lib/ecoportal/api/graphql/payload/kickstand/bulk_update_jobs.rb +2 -2
- data/lib/ecoportal/api/graphql/payload/kickstand/bulk_update_workflows.rb +2 -2
- data/lib/ecoportal/api/graphql/payload/template/update_related_page.rb +15 -0
- data/lib/ecoportal/api/graphql/payload/template.rb +1 -0
- data/lib/ecoportal/api/graphql/payload/upload.rb +12 -0
- data/lib/ecoportal/api/graphql/payload.rb +1 -0
- data/lib/ecoportal/api/graphql/query/activity_logs.rb +78 -0
- data/lib/ecoportal/api/graphql/query/auth_logs.rb +51 -0
- data/lib/ecoportal/api/graphql/query/dashboard_search.rb +57 -0
- data/lib/ecoportal/api/graphql/query/location_structure.rb +2 -0
- data/lib/ecoportal/api/graphql/query/location_structures.rb +2 -0
- data/lib/ecoportal/api/graphql/query/page.rb +6 -1
- data/lib/ecoportal/api/graphql/query/page_activities.rb +56 -0
- data/lib/ecoportal/api/graphql/query/permissions.rb +35 -0
- data/lib/ecoportal/api/graphql/query/person_member_changelogs.rb +53 -0
- data/lib/ecoportal/api/graphql/query/person_members.rb +76 -0
- data/lib/ecoportal/api/graphql/query/template_change_log.rb +118 -0
- data/lib/ecoportal/api/graphql/query.rb +8 -0
- data/lib/ecoportal/api/graphql_version.rb +1 -1
- metadata +83 -14
- data/lib/ecoportal/api/graphql/input/workflow_command/edit_page.rb +0 -28
- data/lib/ecoportal/api/graphql/mutation/smart_fill/generate.rb +0 -36
- data/lib/ecoportal/api/graphql/mutation/smart_fill/submit_feedback.rb +0 -40
- data/lib/ecoportal/api/graphql/mutation/smart_fill.rb +0 -13
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
module Ecoportal
|
|
2
|
+
module API
|
|
3
|
+
class GraphQL
|
|
4
|
+
module Query
|
|
5
|
+
# Lists +PersonMember+ nodes for the current organization via the
|
|
6
|
+
# GraphQL-native +organization.personMembers+ connection.
|
|
7
|
+
#
|
|
8
|
+
# This is the GraphQL-native people-directory path. It is INDEPENDENTLY
|
|
9
|
+
# USEFUL (it fills the long-standing gap flagged in
|
|
10
|
+
# +model/organization.rb+) but note: it is NOT the SCIM-sourced People
|
|
11
|
+
# replacement that customer integrations are migrating to before the
|
|
12
|
+
# APIv0 retirement, whose deadline has passed. That port is scoped in
|
|
13
|
+
# the +ecoportal-scim+ gem, project +apiv0-people-adapter+ -- not here.
|
|
14
|
+
#
|
|
15
|
+
# The default node selection intentionally inlines the fields declared on
|
|
16
|
+
# +Base::PersonMember+ rather than a +spread :PersonMember+, because no
|
|
17
|
+
# +PersonMember+ fragment is registered yet (a spread of an unregistered
|
|
18
|
+
# fragment raises at render time).
|
|
19
|
+
class PersonMembers < Logic::QueryConnection
|
|
20
|
+
field_name :personMembers
|
|
21
|
+
|
|
22
|
+
class_resolver :item_class, Model::PersonMember
|
|
23
|
+
class_resolver :connection_class, Connection::PersonMemberConnection
|
|
24
|
+
|
|
25
|
+
private
|
|
26
|
+
|
|
27
|
+
def basic_block(&block)
|
|
28
|
+
connection_block = block || default_connection_block
|
|
29
|
+
proc {
|
|
30
|
+
query(
|
|
31
|
+
searchConf: :Search,
|
|
32
|
+
includeArchived: :boolean,
|
|
33
|
+
after: :string,
|
|
34
|
+
before: :string,
|
|
35
|
+
first: :int,
|
|
36
|
+
last: :int
|
|
37
|
+
) {
|
|
38
|
+
currentOrganization {
|
|
39
|
+
personMembers(
|
|
40
|
+
searchConf: :searchConf,
|
|
41
|
+
includeArchived: :includeArchived,
|
|
42
|
+
after: :after,
|
|
43
|
+
before: :before,
|
|
44
|
+
first: :first,
|
|
45
|
+
last: :last,
|
|
46
|
+
&connection_block
|
|
47
|
+
)
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
def default_connection_block
|
|
54
|
+
proc {
|
|
55
|
+
totalCount
|
|
56
|
+
pageInfo {
|
|
57
|
+
endCursor
|
|
58
|
+
hasNextPage
|
|
59
|
+
}
|
|
60
|
+
nodes {
|
|
61
|
+
id
|
|
62
|
+
name
|
|
63
|
+
email
|
|
64
|
+
personSchemaId
|
|
65
|
+
contractorOrganizationId
|
|
66
|
+
userId
|
|
67
|
+
tagRestrict
|
|
68
|
+
userGroupIds
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
end
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
module Ecoportal
|
|
2
|
+
module API
|
|
3
|
+
class GraphQL
|
|
4
|
+
module Query
|
|
5
|
+
# TEMPLATE CHANGE LOG — "for template X, who changed what, and when", newest first,
|
|
6
|
+
# paginated.
|
|
7
|
+
#
|
|
8
|
+
# Read path (verified in the Rails backend on 2026-08-19):
|
|
9
|
+
# currentOrganization.page(id:) → template → commands
|
|
10
|
+
# There is NO top-level query for the narrow `Template` type. `template` is declared on
|
|
11
|
+
# `app/graphql/types/pages/interfaces/base_page_interface.rb:27`, so it is reachable on
|
|
12
|
+
# any page — and a template IS a page in this platform, so pass the TEMPLATE's page id.
|
|
13
|
+
#
|
|
14
|
+
# `currentOrganization.page(id:)` returns a `PageUnion`, so `template` has to be selected
|
|
15
|
+
# through a type condition on `BasePageInterface` — selecting directly on a union is
|
|
16
|
+
# invalid GraphQL under any schema (this is the class of bug the `validate-queries` CI
|
|
17
|
+
# gate hard-fails on). The type condition does not change the response shape, so `#path`
|
|
18
|
+
# still digs currentOrganization → page → template → commands.
|
|
19
|
+
#
|
|
20
|
+
# ★ Access caveats and the forces watermark blind spot are documented on
|
|
21
|
+
# `Base::Template::ChangeLogEntry`. In short: a nil `commands` connection means the caller
|
|
22
|
+
# lacks `Pages::TemplatePolicy#update_information?`, NOT that nothing changed; and only
|
|
23
|
+
# TEMPLATE_BUILDER-sourced commands appear here (workflow-builder ones live on
|
|
24
|
+
# `Query::PagesWorkflowCommands`).
|
|
25
|
+
#
|
|
26
|
+
# Usage:
|
|
27
|
+
# q = Query::TemplateChangeLog.new(client)
|
|
28
|
+
# conn = q.query(id: template_page_id, first: 50)
|
|
29
|
+
# conn.nodes.each { |e| puts "#{e.createdAt.dateTime} #{e.owner&.name} #{e.commandAction}" }
|
|
30
|
+
#
|
|
31
|
+
# # auto-paginating enumerator (Logic::QueryConnection#each)
|
|
32
|
+
# q.each(id: template_page_id, first: 100) { |entry| ... }
|
|
33
|
+
#
|
|
34
|
+
# Also reachable as `api.template.change_log(id:, first:)` — see `Builder::Template`.
|
|
35
|
+
#
|
|
36
|
+
# ★ For WHAT CHANGED (field/from/to, change messages) pass `detail: true` to the builder,
|
|
37
|
+
# or `&Query::TemplateChangeLog.detail_block` here. The default selection deliberately
|
|
38
|
+
# omits it so the common "who and when" read stays cheap.
|
|
39
|
+
class TemplateChangeLog < Logic::QueryConnection
|
|
40
|
+
SCHEMA_VERSION = '20260819'.freeze
|
|
41
|
+
|
|
42
|
+
field_name :commands
|
|
43
|
+
|
|
44
|
+
accepted_params :id, :after, :before, :first, :last
|
|
45
|
+
|
|
46
|
+
class_resolver :item_class, 'Ecoportal::API::GraphQL::Model::Template::ChangeLogEntry'
|
|
47
|
+
class_resolver :connection_class, 'Ecoportal::API::GraphQL::Connection::TemplateChangeLog'
|
|
48
|
+
|
|
49
|
+
# Absolute — the connection is nested three levels deep, so it is not expressible as
|
|
50
|
+
# `base_path + field_name`.
|
|
51
|
+
def path
|
|
52
|
+
%w[currentOrganization page template commands]
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# Connection block that selects FIELD-LEVEL DETAIL as well -- what changed, not just
|
|
56
|
+
# who/when/which-resource. Opt-in, because it adds three inline fragments and their
|
|
57
|
+
# sub-selections to every node.
|
|
58
|
+
#
|
|
59
|
+
# q = Query::TemplateChangeLog.new(client)
|
|
60
|
+
# conn = q.query(id: template_page_id, first: 50, &described_class.detail_block)
|
|
61
|
+
# conn.nodes.each do |e|
|
|
62
|
+
# case e.detail_kind
|
|
63
|
+
# when :changes then e.changes.each { |c| puts "#{c['field']}: #{c['from']} -> #{c['to']}" }
|
|
64
|
+
# when :change_messages then puts e.changeMessages.join('; ')
|
|
65
|
+
# when :es_changes then puts "filter changed: #{e.changes.map { |c| c['field'] }.join(', ')}"
|
|
66
|
+
# end
|
|
67
|
+
# end
|
|
68
|
+
#
|
|
69
|
+
# Or simply `api.template.change_log(id:, first:, detail: true)`.
|
|
70
|
+
def self.detail_block
|
|
71
|
+
proc {
|
|
72
|
+
totalCount
|
|
73
|
+
pageInfo {
|
|
74
|
+
endCursor
|
|
75
|
+
hasNextPage
|
|
76
|
+
}
|
|
77
|
+
nodes {
|
|
78
|
+
spread :TemplateChangeLogEntryDetail
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
private
|
|
84
|
+
|
|
85
|
+
def basic_block(&block)
|
|
86
|
+
connection_block = block || default_connection_block
|
|
87
|
+
proc {
|
|
88
|
+
query(id: :id!, after: :string, before: :string, first: :int, last: :int) {
|
|
89
|
+
currentOrganization {
|
|
90
|
+
page(id: :id) {
|
|
91
|
+
spread on: :BasePageInterface do
|
|
92
|
+
template {
|
|
93
|
+
commands(after: :after, before: :before, first: :first, last: :last, &connection_block)
|
|
94
|
+
}
|
|
95
|
+
end
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
def default_connection_block
|
|
103
|
+
proc {
|
|
104
|
+
totalCount
|
|
105
|
+
pageInfo {
|
|
106
|
+
endCursor
|
|
107
|
+
hasNextPage
|
|
108
|
+
}
|
|
109
|
+
nodes {
|
|
110
|
+
spread :TemplateChangeLogEntry
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
end
|
|
114
|
+
end
|
|
115
|
+
end
|
|
116
|
+
end
|
|
117
|
+
end
|
|
118
|
+
end
|
|
@@ -14,6 +14,13 @@ require_relative 'query/action_categories'
|
|
|
14
14
|
require_relative 'query/action'
|
|
15
15
|
require_relative 'query/actions'
|
|
16
16
|
require_relative 'query/contractor_entities'
|
|
17
|
+
require_relative 'query/activity_logs'
|
|
18
|
+
require_relative 'query/page_activities'
|
|
19
|
+
require_relative 'query/auth_logs'
|
|
20
|
+
require_relative 'query/permissions'
|
|
21
|
+
require_relative 'query/person_member_changelogs'
|
|
22
|
+
require_relative 'query/person_members'
|
|
23
|
+
require_relative 'query/dashboard_search'
|
|
17
24
|
require_relative 'query/page'
|
|
18
25
|
require_relative 'query/pages'
|
|
19
26
|
require_relative 'query/templates'
|
|
@@ -25,3 +32,4 @@ require_relative 'query/file_upload_signature'
|
|
|
25
32
|
|
|
26
33
|
require_relative 'query/page_with_forces'
|
|
27
34
|
require_relative 'query/pages_workflow_commands'
|
|
35
|
+
require_relative 'query/template_change_log'
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ecoportal-api-graphql
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 2.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Oscar Segura
|
|
@@ -140,7 +140,7 @@ dependencies:
|
|
|
140
140
|
version: '0.10'
|
|
141
141
|
- - ">="
|
|
142
142
|
- !ruby/object:Gem::Version
|
|
143
|
-
version: 0.10.
|
|
143
|
+
version: 0.10.17
|
|
144
144
|
type: :runtime
|
|
145
145
|
prerelease: false
|
|
146
146
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -150,7 +150,7 @@ dependencies:
|
|
|
150
150
|
version: '0.10'
|
|
151
151
|
- - ">="
|
|
152
152
|
- !ruby/object:Gem::Version
|
|
153
|
-
version: 0.10.
|
|
153
|
+
version: 0.10.17
|
|
154
154
|
- !ruby/object:Gem::Dependency
|
|
155
155
|
name: ecoportal-api-v2
|
|
156
156
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -160,7 +160,7 @@ dependencies:
|
|
|
160
160
|
version: '3.3'
|
|
161
161
|
- - ">="
|
|
162
162
|
- !ruby/object:Gem::Version
|
|
163
|
-
version: 3.3.
|
|
163
|
+
version: 3.3.5
|
|
164
164
|
type: :runtime
|
|
165
165
|
prerelease: false
|
|
166
166
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -170,27 +170,27 @@ dependencies:
|
|
|
170
170
|
version: '3.3'
|
|
171
171
|
- - ">="
|
|
172
172
|
- !ruby/object:Gem::Version
|
|
173
|
-
version: 3.3.
|
|
173
|
+
version: 3.3.5
|
|
174
174
|
- !ruby/object:Gem::Dependency
|
|
175
175
|
name: graphlient
|
|
176
176
|
requirement: !ruby/object:Gem::Requirement
|
|
177
177
|
requirements:
|
|
178
178
|
- - ">="
|
|
179
179
|
- !ruby/object:Gem::Version
|
|
180
|
-
version: 0.
|
|
180
|
+
version: 0.9.0
|
|
181
181
|
- - "<"
|
|
182
182
|
- !ruby/object:Gem::Version
|
|
183
|
-
version: '0.
|
|
183
|
+
version: '0.10'
|
|
184
184
|
type: :runtime
|
|
185
185
|
prerelease: false
|
|
186
186
|
version_requirements: !ruby/object:Gem::Requirement
|
|
187
187
|
requirements:
|
|
188
188
|
- - ">="
|
|
189
189
|
- !ruby/object:Gem::Version
|
|
190
|
-
version: 0.
|
|
190
|
+
version: 0.9.0
|
|
191
191
|
- - "<"
|
|
192
192
|
- !ruby/object:Gem::Version
|
|
193
|
-
version: '0.
|
|
193
|
+
version: '0.10'
|
|
194
194
|
email:
|
|
195
195
|
- oscar@ecoportal.co.nz
|
|
196
196
|
executables: []
|
|
@@ -215,13 +215,20 @@ files:
|
|
|
215
215
|
- lib/ecoportal/api/common/graphql/model/diffable/diff_service.rb
|
|
216
216
|
- lib/ecoportal/api/common/graphql/model/diffable/hash_diff.rb
|
|
217
217
|
- lib/ecoportal/api/common/graphql/model/diffable/hash_diff_nesting.rb
|
|
218
|
+
- lib/ecoportal/api/common/graphql/model/diffable/leaf_diff_service.rb
|
|
218
219
|
- lib/ecoportal/api/common/graphql/patches.rb
|
|
219
220
|
- lib/ecoportal/api/common/graphql/query_integration.rb
|
|
220
221
|
- lib/ecoportal/api/graphql.rb
|
|
221
222
|
- lib/ecoportal/api/graphql/base.rb
|
|
222
223
|
- lib/ecoportal/api/graphql/base/action.rb
|
|
223
224
|
- lib/ecoportal/api/graphql/base/action_category.rb
|
|
225
|
+
- lib/ecoportal/api/graphql/base/action_event.rb
|
|
226
|
+
- lib/ecoportal/api/graphql/base/action_event_page.rb
|
|
227
|
+
- lib/ecoportal/api/graphql/base/activity.rb
|
|
228
|
+
- lib/ecoportal/api/graphql/base/activity_log.rb
|
|
224
229
|
- lib/ecoportal/api/graphql/base/ai_summary_version.rb
|
|
230
|
+
- lib/ecoportal/api/graphql/base/auth_log.rb
|
|
231
|
+
- lib/ecoportal/api/graphql/base/authorization_result.rb
|
|
225
232
|
- lib/ecoportal/api/graphql/base/contractor_entity.rb
|
|
226
233
|
- lib/ecoportal/api/graphql/base/contractor_entity/member_changes.rb
|
|
227
234
|
- lib/ecoportal/api/graphql/base/date_time.rb
|
|
@@ -241,6 +248,7 @@ files:
|
|
|
241
248
|
- lib/ecoportal/api/graphql/base/location_structure.rb
|
|
242
249
|
- lib/ecoportal/api/graphql/base/location_structure/draft.rb
|
|
243
250
|
- lib/ecoportal/api/graphql/base/location_structure/draft/structure.rb
|
|
251
|
+
- lib/ecoportal/api/graphql/base/minimal_dashboard.rb
|
|
244
252
|
- lib/ecoportal/api/graphql/base/organization.rb
|
|
245
253
|
- lib/ecoportal/api/graphql/base/page.rb
|
|
246
254
|
- lib/ecoportal/api/graphql/base/page/basic.rb
|
|
@@ -296,12 +304,15 @@ files:
|
|
|
296
304
|
- lib/ecoportal/api/graphql/base/pages_workflow/trigger_interface.rb
|
|
297
305
|
- lib/ecoportal/api/graphql/base/pages_workflow/triggers/conditional_logic.rb
|
|
298
306
|
- lib/ecoportal/api/graphql/base/pages_workflow/user_selection.rb
|
|
307
|
+
- lib/ecoportal/api/graphql/base/permissions.rb
|
|
299
308
|
- lib/ecoportal/api/graphql/base/person_member.rb
|
|
309
|
+
- lib/ecoportal/api/graphql/base/person_member_changelog.rb
|
|
300
310
|
- lib/ecoportal/api/graphql/base/preset_view.rb
|
|
301
311
|
- lib/ecoportal/api/graphql/base/preview_page.rb
|
|
302
312
|
- lib/ecoportal/api/graphql/base/register.rb
|
|
303
313
|
- lib/ecoportal/api/graphql/base/resource.rb
|
|
304
314
|
- lib/ecoportal/api/graphql/base/template.rb
|
|
315
|
+
- lib/ecoportal/api/graphql/base/template/change_log_entry.rb
|
|
305
316
|
- lib/ecoportal/api/graphql/builder.rb
|
|
306
317
|
- lib/ecoportal/api/graphql/builder/action.rb
|
|
307
318
|
- lib/ecoportal/api/graphql/builder/contractor_entity.rb
|
|
@@ -328,15 +339,22 @@ files:
|
|
|
328
339
|
- lib/ecoportal/api/graphql/concerns/fragment_definitions.rb
|
|
329
340
|
- lib/ecoportal/api/graphql/concerns/page_compat.rb
|
|
330
341
|
- lib/ecoportal/api/graphql/concerns/snake_camel_access.rb
|
|
342
|
+
- lib/ecoportal/api/graphql/concerns/threadable.rb
|
|
331
343
|
- lib/ecoportal/api/graphql/connection.rb
|
|
332
344
|
- lib/ecoportal/api/graphql/connection/action.rb
|
|
333
345
|
- lib/ecoportal/api/graphql/connection/action_category.rb
|
|
346
|
+
- lib/ecoportal/api/graphql/connection/activity.rb
|
|
347
|
+
- lib/ecoportal/api/graphql/connection/activity_log.rb
|
|
348
|
+
- lib/ecoportal/api/graphql/connection/auth_log.rb
|
|
334
349
|
- lib/ecoportal/api/graphql/connection/contractor_entity.rb
|
|
350
|
+
- lib/ecoportal/api/graphql/connection/minimal_dashboard.rb
|
|
335
351
|
- lib/ecoportal/api/graphql/connection/page.rb
|
|
336
352
|
- lib/ecoportal/api/graphql/connection/pages_workflow_command.rb
|
|
337
353
|
- lib/ecoportal/api/graphql/connection/person_member.rb
|
|
354
|
+
- lib/ecoportal/api/graphql/connection/person_member_changelog.rb
|
|
338
355
|
- lib/ecoportal/api/graphql/connection/preset_view.rb
|
|
339
356
|
- lib/ecoportal/api/graphql/connection/preview_page.rb
|
|
357
|
+
- lib/ecoportal/api/graphql/connection/template_change_log.rb
|
|
340
358
|
- lib/ecoportal/api/graphql/diff.rb
|
|
341
359
|
- lib/ecoportal/api/graphql/diff/change.rb
|
|
342
360
|
- lib/ecoportal/api/graphql/diff/command_synthesizer.rb
|
|
@@ -359,19 +377,27 @@ files:
|
|
|
359
377
|
- lib/ecoportal/api/graphql/fragment.rb
|
|
360
378
|
- lib/ecoportal/api/graphql/fragment/action.rb
|
|
361
379
|
- lib/ecoportal/api/graphql/fragment/action_category.rb
|
|
380
|
+
- lib/ecoportal/api/graphql/fragment/activity.rb
|
|
381
|
+
- lib/ecoportal/api/graphql/fragment/activity_log.rb
|
|
382
|
+
- lib/ecoportal/api/graphql/fragment/auth_log.rb
|
|
383
|
+
- lib/ecoportal/api/graphql/fragment/authorization_result.rb
|
|
362
384
|
- lib/ecoportal/api/graphql/fragment/contractor_entity.rb
|
|
363
385
|
- lib/ecoportal/api/graphql/fragment/field_configuration.rb
|
|
364
386
|
- lib/ecoportal/api/graphql/fragment/force.rb
|
|
365
387
|
- lib/ecoportal/api/graphql/fragment/location_draft.rb
|
|
366
388
|
- lib/ecoportal/api/graphql/fragment/location_node.rb
|
|
367
389
|
- lib/ecoportal/api/graphql/fragment/locations_error.rb
|
|
390
|
+
- lib/ecoportal/api/graphql/fragment/minimal_dashboard.rb
|
|
368
391
|
- lib/ecoportal/api/graphql/fragment/page.rb
|
|
369
392
|
- lib/ecoportal/api/graphql/fragment/page_task.rb
|
|
370
393
|
- lib/ecoportal/api/graphql/fragment/pages.rb
|
|
371
394
|
- lib/ecoportal/api/graphql/fragment/pages/common_page_union.rb
|
|
372
395
|
- lib/ecoportal/api/graphql/fragment/pages_workflow.rb
|
|
373
396
|
- lib/ecoportal/api/graphql/fragment/pagination.rb
|
|
397
|
+
- lib/ecoportal/api/graphql/fragment/permissions.rb
|
|
398
|
+
- lib/ecoportal/api/graphql/fragment/person_member_changelog.rb
|
|
374
399
|
- lib/ecoportal/api/graphql/fragment/template.rb
|
|
400
|
+
- lib/ecoportal/api/graphql/fragment/template_change_log.rb
|
|
375
401
|
- lib/ecoportal/api/graphql/helpers.rb
|
|
376
402
|
- lib/ecoportal/api/graphql/helpers/locations_tree.rb
|
|
377
403
|
- lib/ecoportal/api/graphql/input.rb
|
|
@@ -382,7 +408,9 @@ files:
|
|
|
382
408
|
- lib/ecoportal/api/graphql/input/contractor_entity.rb
|
|
383
409
|
- lib/ecoportal/api/graphql/input/contractor_entity/create.rb
|
|
384
410
|
- lib/ecoportal/api/graphql/input/contractor_entity/destroy.rb
|
|
411
|
+
- lib/ecoportal/api/graphql/input/contractor_entity/manager_settings.rb
|
|
385
412
|
- lib/ecoportal/api/graphql/input/contractor_entity/update.rb
|
|
413
|
+
- lib/ecoportal/api/graphql/input/date_range.rb
|
|
386
414
|
- lib/ecoportal/api/graphql/input/delta_input.rb
|
|
387
415
|
- lib/ecoportal/api/graphql/input/id_diff.rb
|
|
388
416
|
- lib/ecoportal/api/graphql/input/location_structure.rb
|
|
@@ -426,6 +454,7 @@ files:
|
|
|
426
454
|
- lib/ecoportal/api/graphql/input/workflow_command.rb
|
|
427
455
|
- lib/ecoportal/api/graphql/input/workflow_command/add_action_tag.rb
|
|
428
456
|
- lib/ecoportal/api/graphql/input/workflow_command/add_binding.rb
|
|
457
|
+
- lib/ecoportal/api/graphql/input/workflow_command/add_checklist_field_item.rb
|
|
429
458
|
- lib/ecoportal/api/graphql/input/workflow_command/add_comment_tagging_user_group.rb
|
|
430
459
|
- lib/ecoportal/api/graphql/input/workflow_command/add_default_direct_strategy_user.rb
|
|
431
460
|
- lib/ecoportal/api/graphql/input/workflow_command/add_default_strategy.rb
|
|
@@ -447,15 +476,20 @@ files:
|
|
|
447
476
|
- lib/ecoportal/api/graphql/input/workflow_command/add_scheduled_callback_action.rb
|
|
448
477
|
- lib/ecoportal/api/graphql/input/workflow_command/add_section.rb
|
|
449
478
|
- lib/ecoportal/api/graphql/input/workflow_command/add_select_field_option.rb
|
|
479
|
+
- lib/ecoportal/api/graphql/input/workflow_command/add_smart_fill_config.rb
|
|
450
480
|
- lib/ecoportal/api/graphql/input/workflow_command/add_stage.rb
|
|
451
481
|
- lib/ecoportal/api/graphql/input/workflow_command/add_stage_section.rb
|
|
452
482
|
- lib/ecoportal/api/graphql/input/workflow_command/add_stage_tag.rb
|
|
453
483
|
- lib/ecoportal/api/graphql/input/workflow_command/add_strategy.rb
|
|
454
484
|
- lib/ecoportal/api/graphql/input/workflow_command/add_task.rb
|
|
455
485
|
- lib/ecoportal/api/graphql/input/workflow_command/add_task_assignment_user_group.rb
|
|
486
|
+
- lib/ecoportal/api/graphql/input/workflow_command/add_viewable_field.rb
|
|
456
487
|
- lib/ecoportal/api/graphql/input/workflow_command/add_workflow_callback.rb
|
|
488
|
+
- lib/ecoportal/api/graphql/input/workflow_command/archive_public_config.rb
|
|
457
489
|
- lib/ecoportal/api/graphql/input/workflow_command/collapse_section.rb
|
|
490
|
+
- lib/ecoportal/api/graphql/input/workflow_command/create_public_config.rb
|
|
458
491
|
- lib/ecoportal/api/graphql/input/workflow_command/edit_binding.rb
|
|
492
|
+
- lib/ecoportal/api/graphql/input/workflow_command/edit_checklist_field_item.rb
|
|
459
493
|
- lib/ecoportal/api/graphql/input/workflow_command/edit_creator_permissions.rb
|
|
460
494
|
- lib/ecoportal/api/graphql/input/workflow_command/edit_default_strategy.rb
|
|
461
495
|
- lib/ecoportal/api/graphql/input/workflow_command/edit_field_configuration.rb
|
|
@@ -465,8 +499,7 @@ files:
|
|
|
465
499
|
- lib/ecoportal/api/graphql/input/workflow_command/edit_linked_helper.rb
|
|
466
500
|
- lib/ecoportal/api/graphql/input/workflow_command/edit_operation.rb
|
|
467
501
|
- lib/ecoportal/api/graphql/input/workflow_command/edit_operation_strategy.rb
|
|
468
|
-
- lib/ecoportal/api/graphql/input/workflow_command/
|
|
469
|
-
- lib/ecoportal/api/graphql/input/workflow_command/edit_page_creator_permissions.rb
|
|
502
|
+
- lib/ecoportal/api/graphql/input/workflow_command/edit_public_config.rb
|
|
470
503
|
- lib/ecoportal/api/graphql/input/workflow_command/edit_reminder.rb
|
|
471
504
|
- lib/ecoportal/api/graphql/input/workflow_command/edit_required_sign_offs.rb
|
|
472
505
|
- lib/ecoportal/api/graphql/input/workflow_command/edit_restrict_comment_tagging.rb
|
|
@@ -474,14 +507,22 @@ files:
|
|
|
474
507
|
- lib/ecoportal/api/graphql/input/workflow_command/edit_scheduled_callback.rb
|
|
475
508
|
- lib/ecoportal/api/graphql/input/workflow_command/edit_section_header.rb
|
|
476
509
|
- lib/ecoportal/api/graphql/input/workflow_command/edit_select_field_option.rb
|
|
510
|
+
- lib/ecoportal/api/graphql/input/workflow_command/edit_smart_fill_config.rb
|
|
477
511
|
- lib/ecoportal/api/graphql/input/workflow_command/edit_stage.rb
|
|
478
512
|
- lib/ecoportal/api/graphql/input/workflow_command/edit_strategy.rb
|
|
479
513
|
- lib/ecoportal/api/graphql/input/workflow_command/edit_task_due.rb
|
|
514
|
+
- lib/ecoportal/api/graphql/input/workflow_command/edit_template_advanced_settings.rb
|
|
515
|
+
- lib/ecoportal/api/graphql/input/workflow_command/edit_template_basic_settings.rb
|
|
516
|
+
- lib/ecoportal/api/graphql/input/workflow_command/edit_template_container_uid.rb
|
|
517
|
+
- lib/ecoportal/api/graphql/input/workflow_command/edit_template_creator_permissions.rb
|
|
518
|
+
- lib/ecoportal/api/graphql/input/workflow_command/edit_template_descriptions.rb
|
|
480
519
|
- lib/ecoportal/api/graphql/input/workflow_command/edit_trigger.rb
|
|
481
520
|
- lib/ecoportal/api/graphql/input/workflow_command/expand_section.rb
|
|
521
|
+
- lib/ecoportal/api/graphql/input/workflow_command/field_config/action_list.rb
|
|
482
522
|
- lib/ecoportal/api/graphql/input/workflow_command/field_config/contractor_entities.rb
|
|
483
523
|
- lib/ecoportal/api/graphql/input/workflow_command/field_config/cross_reference.rb
|
|
484
524
|
- lib/ecoportal/api/graphql/input/workflow_command/field_config/date.rb
|
|
525
|
+
- lib/ecoportal/api/graphql/input/workflow_command/field_config/file.rb
|
|
485
526
|
- lib/ecoportal/api/graphql/input/workflow_command/field_config/gauge.rb
|
|
486
527
|
- lib/ecoportal/api/graphql/input/workflow_command/field_config/image_gallery.rb
|
|
487
528
|
- lib/ecoportal/api/graphql/input/workflow_command/field_config/location_field.rb
|
|
@@ -491,11 +532,15 @@ files:
|
|
|
491
532
|
- lib/ecoportal/api/graphql/input/workflow_command/field_config/select.rb
|
|
492
533
|
- lib/ecoportal/api/graphql/input/workflow_command/field_config/signature.rb
|
|
493
534
|
- lib/ecoportal/api/graphql/input/workflow_command/field_config/table.rb
|
|
535
|
+
- lib/ecoportal/api/graphql/input/workflow_command/manage_copy_page_configuration.rb
|
|
494
536
|
- lib/ecoportal/api/graphql/input/workflow_command/move_field.rb
|
|
537
|
+
- lib/ecoportal/api/graphql/input/workflow_command/move_section_to_stage.rb
|
|
495
538
|
- lib/ecoportal/api/graphql/input/workflow_command/move_stage.rb
|
|
539
|
+
- lib/ecoportal/api/graphql/input/workflow_command/move_viewable_field.rb
|
|
496
540
|
- lib/ecoportal/api/graphql/input/workflow_command/remove_action_tag.rb
|
|
497
541
|
- lib/ecoportal/api/graphql/input/workflow_command/remove_binding.rb
|
|
498
542
|
- lib/ecoportal/api/graphql/input/workflow_command/remove_callback.rb
|
|
543
|
+
- lib/ecoportal/api/graphql/input/workflow_command/remove_checklist_field_item.rb
|
|
499
544
|
- lib/ecoportal/api/graphql/input/workflow_command/remove_comment_tagging_user_group.rb
|
|
500
545
|
- lib/ecoportal/api/graphql/input/workflow_command/remove_default_direct_strategy_user.rb
|
|
501
546
|
- lib/ecoportal/api/graphql/input/workflow_command/remove_default_strategy.rb
|
|
@@ -516,6 +561,7 @@ files:
|
|
|
516
561
|
- lib/ecoportal/api/graphql/input/workflow_command/remove_scheduled_callback.rb
|
|
517
562
|
- lib/ecoportal/api/graphql/input/workflow_command/remove_section.rb
|
|
518
563
|
- lib/ecoportal/api/graphql/input/workflow_command/remove_select_field_option.rb
|
|
564
|
+
- lib/ecoportal/api/graphql/input/workflow_command/remove_smart_fill_config.rb
|
|
519
565
|
- lib/ecoportal/api/graphql/input/workflow_command/remove_stage.rb
|
|
520
566
|
- lib/ecoportal/api/graphql/input/workflow_command/remove_stage_section.rb
|
|
521
567
|
- lib/ecoportal/api/graphql/input/workflow_command/remove_stage_tag.rb
|
|
@@ -524,6 +570,7 @@ files:
|
|
|
524
570
|
- lib/ecoportal/api/graphql/input/workflow_command/remove_task_assignment_user_group.rb
|
|
525
571
|
- lib/ecoportal/api/graphql/input/workflow_command/remove_task_due.rb
|
|
526
572
|
- lib/ecoportal/api/graphql/input/workflow_command/remove_task_priority_level.rb
|
|
573
|
+
- lib/ecoportal/api/graphql/input/workflow_command/remove_viewable_field.rb
|
|
527
574
|
- lib/ecoportal/api/graphql/input/workflow_command/reorder_forces.rb
|
|
528
575
|
- lib/ecoportal/api/graphql/input/workflow_command/reorder_section.rb
|
|
529
576
|
- lib/ecoportal/api/graphql/interface.rb
|
|
@@ -545,7 +592,13 @@ files:
|
|
|
545
592
|
- lib/ecoportal/api/graphql/model.rb
|
|
546
593
|
- lib/ecoportal/api/graphql/model/account.rb
|
|
547
594
|
- lib/ecoportal/api/graphql/model/action.rb
|
|
595
|
+
- lib/ecoportal/api/graphql/model/action_event.rb
|
|
596
|
+
- lib/ecoportal/api/graphql/model/action_event_page.rb
|
|
597
|
+
- lib/ecoportal/api/graphql/model/activity.rb
|
|
598
|
+
- lib/ecoportal/api/graphql/model/activity_log.rb
|
|
548
599
|
- lib/ecoportal/api/graphql/model/ai_summary_version.rb
|
|
600
|
+
- lib/ecoportal/api/graphql/model/auth_log.rb
|
|
601
|
+
- lib/ecoportal/api/graphql/model/authorization_result.rb
|
|
549
602
|
- lib/ecoportal/api/graphql/model/contractor_entity.rb
|
|
550
603
|
- lib/ecoportal/api/graphql/model/field.rb
|
|
551
604
|
- lib/ecoportal/api/graphql/model/file_attachment.rb
|
|
@@ -554,6 +607,7 @@ files:
|
|
|
554
607
|
- lib/ecoportal/api/graphql/model/location_structure.rb
|
|
555
608
|
- lib/ecoportal/api/graphql/model/location_structure/draft.rb
|
|
556
609
|
- lib/ecoportal/api/graphql/model/location_structure/draft/structure.rb
|
|
610
|
+
- lib/ecoportal/api/graphql/model/minimal_dashboard.rb
|
|
557
611
|
- lib/ecoportal/api/graphql/model/organization.rb
|
|
558
612
|
- lib/ecoportal/api/graphql/model/page.rb
|
|
559
613
|
- lib/ecoportal/api/graphql/model/page/basic.rb
|
|
@@ -564,12 +618,15 @@ files:
|
|
|
564
618
|
- lib/ecoportal/api/graphql/model/page/task.rb
|
|
565
619
|
- lib/ecoportal/api/graphql/model/page_union.rb
|
|
566
620
|
- lib/ecoportal/api/graphql/model/pages_workflow.rb
|
|
621
|
+
- lib/ecoportal/api/graphql/model/permissions.rb
|
|
567
622
|
- lib/ecoportal/api/graphql/model/person_member.rb
|
|
623
|
+
- lib/ecoportal/api/graphql/model/person_member_changelog.rb
|
|
568
624
|
- lib/ecoportal/api/graphql/model/preset_view.rb
|
|
569
625
|
- lib/ecoportal/api/graphql/model/preview_page.rb
|
|
570
626
|
- lib/ecoportal/api/graphql/model/register.rb
|
|
571
627
|
- lib/ecoportal/api/graphql/model/resource.rb
|
|
572
628
|
- lib/ecoportal/api/graphql/model/template.rb
|
|
629
|
+
- lib/ecoportal/api/graphql/model/template/change_log_entry.rb
|
|
573
630
|
- lib/ecoportal/api/graphql/model/user.rb
|
|
574
631
|
- lib/ecoportal/api/graphql/mutation.rb
|
|
575
632
|
- lib/ecoportal/api/graphql/mutation/action.rb
|
|
@@ -583,6 +640,9 @@ files:
|
|
|
583
640
|
- lib/ecoportal/api/graphql/mutation/contractor_entity/create.rb
|
|
584
641
|
- lib/ecoportal/api/graphql/mutation/contractor_entity/destroy.rb
|
|
585
642
|
- lib/ecoportal/api/graphql/mutation/contractor_entity/update.rb
|
|
643
|
+
- lib/ecoportal/api/graphql/mutation/contractor_entity/update_manager_settings.rb
|
|
644
|
+
- lib/ecoportal/api/graphql/mutation/file_container.rb
|
|
645
|
+
- lib/ecoportal/api/graphql/mutation/file_container/upload.rb
|
|
586
646
|
- lib/ecoportal/api/graphql/mutation/kickstand.rb
|
|
587
647
|
- lib/ecoportal/api/graphql/mutation/kickstand/bulk_update_jobs.rb
|
|
588
648
|
- lib/ecoportal/api/graphql/mutation/kickstand/bulk_update_workflows.rb
|
|
@@ -625,9 +685,6 @@ files:
|
|
|
625
685
|
- lib/ecoportal/api/graphql/mutation/register/create.rb
|
|
626
686
|
- lib/ecoportal/api/graphql/mutation/register/destroy.rb
|
|
627
687
|
- lib/ecoportal/api/graphql/mutation/register/update.rb
|
|
628
|
-
- lib/ecoportal/api/graphql/mutation/smart_fill.rb
|
|
629
|
-
- lib/ecoportal/api/graphql/mutation/smart_fill/generate.rb
|
|
630
|
-
- lib/ecoportal/api/graphql/mutation/smart_fill/submit_feedback.rb
|
|
631
688
|
- lib/ecoportal/api/graphql/mutation/template.rb
|
|
632
689
|
- lib/ecoportal/api/graphql/mutation/template/create.rb
|
|
633
690
|
- lib/ecoportal/api/graphql/mutation/template/create_related_page.rb
|
|
@@ -636,6 +693,7 @@ files:
|
|
|
636
693
|
- lib/ecoportal/api/graphql/mutation/template/unpublish.rb
|
|
637
694
|
- lib/ecoportal/api/graphql/mutation/template/update.rb
|
|
638
695
|
- lib/ecoportal/api/graphql/mutation/template/update_information.rb
|
|
696
|
+
- lib/ecoportal/api/graphql/mutation/template/update_related_page.rb
|
|
639
697
|
- lib/ecoportal/api/graphql/payload.rb
|
|
640
698
|
- lib/ecoportal/api/graphql/payload/action.rb
|
|
641
699
|
- lib/ecoportal/api/graphql/payload/action/archive.rb
|
|
@@ -645,6 +703,7 @@ files:
|
|
|
645
703
|
- lib/ecoportal/api/graphql/payload/contractor_entity.rb
|
|
646
704
|
- lib/ecoportal/api/graphql/payload/contractor_entity/create.rb
|
|
647
705
|
- lib/ecoportal/api/graphql/payload/contractor_entity/destroy.rb
|
|
706
|
+
- lib/ecoportal/api/graphql/payload/contractor_entity/manager_settings.rb
|
|
648
707
|
- lib/ecoportal/api/graphql/payload/contractor_entity/update.rb
|
|
649
708
|
- lib/ecoportal/api/graphql/payload/execute_workflow_commands.rb
|
|
650
709
|
- lib/ecoportal/api/graphql/payload/force_commands.rb
|
|
@@ -683,23 +742,33 @@ files:
|
|
|
683
742
|
- lib/ecoportal/api/graphql/payload/template/unpublish.rb
|
|
684
743
|
- lib/ecoportal/api/graphql/payload/template/update.rb
|
|
685
744
|
- lib/ecoportal/api/graphql/payload/template/update_information.rb
|
|
745
|
+
- lib/ecoportal/api/graphql/payload/template/update_related_page.rb
|
|
746
|
+
- lib/ecoportal/api/graphql/payload/upload.rb
|
|
686
747
|
- lib/ecoportal/api/graphql/query.rb
|
|
687
748
|
- lib/ecoportal/api/graphql/query/action.rb
|
|
688
749
|
- lib/ecoportal/api/graphql/query/action_categories.rb
|
|
689
750
|
- lib/ecoportal/api/graphql/query/actions.rb
|
|
751
|
+
- lib/ecoportal/api/graphql/query/activity_logs.rb
|
|
752
|
+
- lib/ecoportal/api/graphql/query/auth_logs.rb
|
|
690
753
|
- lib/ecoportal/api/graphql/query/contractor_entities.rb
|
|
754
|
+
- lib/ecoportal/api/graphql/query/dashboard_search.rb
|
|
691
755
|
- lib/ecoportal/api/graphql/query/file_upload_signature.rb
|
|
692
756
|
- lib/ecoportal/api/graphql/query/location_classifications.rb
|
|
693
757
|
- lib/ecoportal/api/graphql/query/location_structure.rb
|
|
694
758
|
- lib/ecoportal/api/graphql/query/location_structure/draft.rb
|
|
695
759
|
- lib/ecoportal/api/graphql/query/location_structures.rb
|
|
696
760
|
- lib/ecoportal/api/graphql/query/page.rb
|
|
761
|
+
- lib/ecoportal/api/graphql/query/page_activities.rb
|
|
697
762
|
- lib/ecoportal/api/graphql/query/page_delta.rb
|
|
698
763
|
- lib/ecoportal/api/graphql/query/page_with_forces.rb
|
|
699
764
|
- lib/ecoportal/api/graphql/query/pages.rb
|
|
700
765
|
- lib/ecoportal/api/graphql/query/pages_workflow_commands.rb
|
|
766
|
+
- lib/ecoportal/api/graphql/query/permissions.rb
|
|
767
|
+
- lib/ecoportal/api/graphql/query/person_member_changelogs.rb
|
|
768
|
+
- lib/ecoportal/api/graphql/query/person_members.rb
|
|
701
769
|
- lib/ecoportal/api/graphql/query/register_preset_views.rb
|
|
702
770
|
- lib/ecoportal/api/graphql/query/register_preview_pages.rb
|
|
771
|
+
- lib/ecoportal/api/graphql/query/template_change_log.rb
|
|
703
772
|
- lib/ecoportal/api/graphql/query/templates.rb
|
|
704
773
|
- lib/ecoportal/api/graphql_version.rb
|
|
705
774
|
homepage: https://www.ecoportal.com
|
|
@@ -1,28 +0,0 @@
|
|
|
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,36 +0,0 @@
|
|
|
1
|
-
module Ecoportal
|
|
2
|
-
module API
|
|
3
|
-
class GraphQL
|
|
4
|
-
module Mutation
|
|
5
|
-
module SmartFill
|
|
6
|
-
# Enqueue AI generation for a SmartFill data field on a page.
|
|
7
|
-
# Returns ok: true immediately — generation is asynchronous.
|
|
8
|
-
# Poll the SmartFill field's status on the page to know when done.
|
|
9
|
-
class Generate < Logic::Mutation
|
|
10
|
-
field_name :smartFillGenerate
|
|
11
|
-
|
|
12
|
-
class_resolver :payload_class, 'Ecoportal::API::GraphQL::Payload::OkPayload'
|
|
13
|
-
|
|
14
|
-
private
|
|
15
|
-
|
|
16
|
-
def basic_block(&block)
|
|
17
|
-
payload_block = block || default_payload_block
|
|
18
|
-
proc {
|
|
19
|
-
mutation(pageId: :id!, dataFieldId: :id!) {
|
|
20
|
-
smartFillGenerate(pageId: :pageId, dataFieldId: :dataFieldId, &payload_block)
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
end
|
|
24
|
-
|
|
25
|
-
def default_payload_block
|
|
26
|
-
proc {
|
|
27
|
-
ok
|
|
28
|
-
errors { details fullMessages }
|
|
29
|
-
}
|
|
30
|
-
end
|
|
31
|
-
end
|
|
32
|
-
end
|
|
33
|
-
end
|
|
34
|
-
end
|
|
35
|
-
end
|
|
36
|
-
end
|