ecoportal-api-graphql 1.3.11 → 1.3.12

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 (41) hide show
  1. checksums.yaml +4 -4
  2. data/.ai-assistance/code/filter_contract_matrix.md +177 -0
  3. data/.ai-assistance/projects/template-automatic-build-maintenance/INTENT.md +10 -0
  4. data/.ai-assistance/projects/template-automatic-build-maintenance/TODO.md +11 -0
  5. data/.ai-assistance/skills/procedural-memory/SKILL.md +319 -0
  6. data/.ai-assistance/standards-version.json +21 -20
  7. data/CHANGELOG.md +32 -0
  8. data/CLAUDE.md +10 -0
  9. data/docs/self-docs/ARCHITECTURE.md +88 -0
  10. data/docs/self-docs/CHANGES.jsonl +7 -0
  11. data/docs/self-docs/CONVENTIONS.md +74 -0
  12. data/docs/self-docs/INTEGRATIONS.md +63 -0
  13. data/docs/self-docs/OVERVIEW.md +51 -0
  14. data/docs/self-docs/STATUS.md +69 -0
  15. data/docs/self-docs/self-docs-index.json +39 -0
  16. data/docs/worklog.md +0 -23
  17. data/lib/ecoportal/api/common/graphql/model/diffable.rb +54 -54
  18. data/lib/ecoportal/api/graphql/base/action.rb +43 -43
  19. data/lib/ecoportal/api/graphql/base/contractor_entity/member_changes.rb +67 -67
  20. data/lib/ecoportal/api/graphql/base/page/data_field/collection.rb +7 -0
  21. data/lib/ecoportal/api/graphql/base/page/data_field/contractor_entities.rb +28 -28
  22. data/lib/ecoportal/api/graphql/base/page/data_field/file_field.rb +25 -25
  23. data/lib/ecoportal/api/graphql/base/page/data_field/image_gallery.rb +24 -24
  24. data/lib/ecoportal/api/graphql/base/page/section_collection.rb +85 -79
  25. data/lib/ecoportal/api/graphql/base/preset_view.rb +17 -17
  26. data/lib/ecoportal/api/graphql/base/register.rb +18 -18
  27. data/lib/ecoportal/api/graphql/compat/filter_translator.rb +63 -28
  28. data/lib/ecoportal/api/graphql/concerns/page_compat.rb +51 -51
  29. data/lib/ecoportal/api/graphql/concerns.rb +14 -14
  30. data/lib/ecoportal/api/graphql/file_upload/client.rb +181 -181
  31. data/lib/ecoportal/api/graphql/fragment/page.rb +85 -85
  32. data/lib/ecoportal/api/graphql/input/action/update.rb +14 -14
  33. data/lib/ecoportal/api/graphql/input/contractor_entity/update.rb +41 -41
  34. data/lib/ecoportal/api/graphql/input/location_structure/apply_commands.rb +47 -47
  35. data/lib/ecoportal/api/graphql/input/location_structure/draft/add_commands.rb +49 -49
  36. data/lib/ecoportal/api/graphql/input/location_structure/update_command.rb +27 -27
  37. data/lib/ecoportal/api/graphql/input/search_conf.rb +436 -367
  38. data/lib/ecoportal/api/graphql/interface/location_structure/command.rb +30 -30
  39. data/lib/ecoportal/api/graphql/logic/input.rb +26 -26
  40. data/lib/ecoportal/api/graphql_version.rb +1 -1
  41. metadata +10 -1
@@ -1,30 +1,30 @@
1
- module Ecoportal
2
- module API
3
- class GraphQL
4
- module Interface
5
- module LocationStructure
6
- class Command < Logic::BaseModel
7
- passkey :id
8
- passthrough :state
9
-
10
- def target_ids
11
- (doc || {}).values_at(:nodeId, :newId, :id)
12
- end
13
-
14
- def keys
15
- (doc || {}).keys
16
- end
17
-
18
- def set_values(**kargs)
19
- kargs.each do |key, value|
20
- send(key, value) if respond_to?(key, true)
21
- end
22
-
23
- self
24
- end
25
- end
26
- end
27
- end
28
- end
29
- end
30
- end
1
+ module Ecoportal
2
+ module API
3
+ class GraphQL
4
+ module Interface
5
+ module LocationStructure
6
+ class Command < Logic::BaseModel
7
+ passkey :id
8
+ passthrough :state
9
+
10
+ def target_ids
11
+ (doc || {}).values_at(:nodeId, :newId, :id)
12
+ end
13
+
14
+ def keys
15
+ (doc || {}).keys
16
+ end
17
+
18
+ def set_values(**kargs)
19
+ kargs.each do |key, value|
20
+ send(key, value) if respond_to?(key, true)
21
+ end
22
+
23
+ self
24
+ end
25
+ end
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end
@@ -1,26 +1,26 @@
1
- module Ecoportal
2
- module API
3
- class GraphQL
4
- module Logic
5
- class Input < Logic::BaseModel
6
- passthrough :clientMutationId
7
-
8
- class << self
9
- # Builds a mutation input hash from a model's diff.
10
- # Subclasses override this to reshape fields (e.g. array → IdDiffInput).
11
- # @param model [Common::GraphQL::Model] the subject model.
12
- # @return [Hash, nil] the mutation input hash, or nil when there are no changes.
13
- def from_model(model, client_mutation_id: '')
14
- diff = model.as_update
15
- return nil if diff.nil?
16
-
17
- diff[:patchVer] = model.patchVer if model.respond_to?(:patchVer) && !model.patchVer.nil?
18
- diff[:clientMutationId] = client_mutation_id unless client_mutation_id.to_s.empty?
19
- diff
20
- end
21
- end
22
- end
23
- end
24
- end
25
- end
26
- end
1
+ module Ecoportal
2
+ module API
3
+ class GraphQL
4
+ module Logic
5
+ class Input < Logic::BaseModel
6
+ passthrough :clientMutationId
7
+
8
+ class << self
9
+ # Builds a mutation input hash from a model's diff.
10
+ # Subclasses override this to reshape fields (e.g. array → IdDiffInput).
11
+ # @param model [Common::GraphQL::Model] the subject model.
12
+ # @return [Hash, nil] the mutation input hash, or nil when there are no changes.
13
+ def from_model(model, client_mutation_id: '')
14
+ diff = model.as_update
15
+ return nil if diff.nil?
16
+
17
+ diff[:patchVer] = model.patchVer if model.respond_to?(:patchVer) && !model.patchVer.nil?
18
+ diff[:clientMutationId] = client_mutation_id unless client_mutation_id.to_s.empty?
19
+ diff
20
+ end
21
+ end
22
+ end
23
+ end
24
+ end
25
+ end
26
+ end
@@ -1,5 +1,5 @@
1
1
  module Ecoportal
2
2
  module API
3
- GRAPQL_VERSION = '1.3.11'.freeze
3
+ GRAPQL_VERSION = '1.3.12'.freeze
4
4
  end
5
5
  end
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: 1.3.11
4
+ version: 1.3.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oscar Segura
@@ -236,6 +236,7 @@ files:
236
236
  - ".ai-assistance/code/ecoPortal_architecture/12_ai_documentation_sources_gaps.md"
237
237
  - ".ai-assistance/code/ecoPortal_architecture/13_ai_infrastructure.md"
238
238
  - ".ai-assistance/code/ecoportal_schema_reference.md"
239
+ - ".ai-assistance/code/filter_contract_matrix.md"
239
240
  - ".ai-assistance/code/graphql_domain_knowledge.md"
240
241
  - ".ai-assistance/code/refactoring/datafield-readwrite-shape-asymmetry.md"
241
242
  - ".ai-assistance/code/refactoring/opportunities.md"
@@ -320,6 +321,7 @@ files:
320
321
  - ".ai-assistance/skills/gemini-assist/gemini_ask.rb"
321
322
  - ".ai-assistance/skills/gemini-assist/prompts/cycle_end_review.txt"
322
323
  - ".ai-assistance/skills/graphql-schema-analysis/SKILL.md"
324
+ - ".ai-assistance/skills/procedural-memory/SKILL.md"
323
325
  - ".ai-assistance/skills/project-cycle/SKILL.md"
324
326
  - ".ai-assistance/skills/refactor/SKILL.md"
325
327
  - ".ai-assistance/skills/rubocop/SKILL.md"
@@ -346,6 +348,13 @@ files:
346
348
  - bin/console
347
349
  - bin/setup
348
350
  - bin/setup.ps1
351
+ - docs/self-docs/ARCHITECTURE.md
352
+ - docs/self-docs/CHANGES.jsonl
353
+ - docs/self-docs/CONVENTIONS.md
354
+ - docs/self-docs/INTEGRATIONS.md
355
+ - docs/self-docs/OVERVIEW.md
356
+ - docs/self-docs/STATUS.md
357
+ - docs/self-docs/self-docs-index.json
349
358
  - docs/worklog.md
350
359
  - ecoportal-api-graphql.gemspec
351
360
  - lib/ecoportal/api-graphql.rb