foobara-typescript-react-command-form-generator 1.1.1 → 1.2.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 903e593f005e51408a6d87cee35611d5eb47e7ad99a74edbc736e53a34d5face
4
- data.tar.gz: 2f5729c0ab7631a6f505da2a3b8db1d7208668b558dc3206a15a1874460c3b3a
3
+ metadata.gz: 2b3a0eee91dbe6d598135887380acf13b23b16a7cd419d2ca6bcd46b969ec662
4
+ data.tar.gz: '088203fc6af7cf3e6739d3a3d5e99f75971e143ef07670ca0ea7842114d24a0f'
5
5
  SHA512:
6
- metadata.gz: 6a18843bbca13d23425bb3d4f502356d5690542f0643a2f83d33ca21101c143c0e8015372948f1d1c4b559a8d89bbd137f07627d5f71a9ddd417410b1dd5faf2
7
- data.tar.gz: 83f5381a9e8e275cf852ad12885d6dcd5c3fc0d1ac1da29f8e2fde7336b23043ce5e0fbeccce62af9d2532f822d017063b043f439f1cdc7913aa16533166ab47
6
+ metadata.gz: 2ac56dec6029a5cf14fe94230a04603f40daec90969df75455eb58f591aa50121ab5a6b59f1b9ffb6565463f4333271ba9231910e1869c879209ffe6e2f060d5
7
+ data.tar.gz: 8c89184cc31cb2a277a15e248006f6319ab8ca15e0dd9c98837be6c3e20c5d49ecdc6889f60badf5295fe6e4c89709a1d4dd270c09c8bae34a9d037e6230dfb3
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [1.2.0] - 2026-02-26
2
+
3
+ - Handle recent changes in foobara-typescript-remote-command-generator
4
+
1
5
  ## [1.1.1] - 2025-10-05
2
6
 
3
7
  - Allow using non-absolute command names
@@ -74,6 +74,10 @@ module Foobara
74
74
  def add_command_manifest_to_set_of_elements_to_generate
75
75
  elements_to_generate << command_manifest
76
76
  end
77
+
78
+ # We don't need this behavior from WriteTypescriptToDisk so we removed its input,
79
+ # but it will explode if we don't provide it to inherited code
80
+ def auto_dirty_queries = nil
77
81
  end
78
82
  end
79
83
  end
@@ -2,7 +2,7 @@ module Foobara
2
2
  module Generators
3
3
  module TypescriptReactCommandFormGenerator
4
4
  module Generators
5
- class TypescriptReactCommandFormGenerator < RemoteGenerator::Services::TypescriptFromManifestBaseGenerator
5
+ class TypescriptReactCommandFormGenerator < RemoteGenerator::Generators::TypescriptFromManifestBaseGenerator
6
6
  class << self
7
7
  def manifest_to_generator_classes(manifest)
8
8
  case manifest
@@ -29,7 +29,7 @@ module Foobara
29
29
  end
30
30
 
31
31
  def command_generator
32
- @command_generator ||= RemoteGenerator::Services::CommandGenerator.new(command_manifest)
32
+ @command_generator ||= RemoteGenerator::Generators::CommandGenerator.new(command_manifest)
33
33
  end
34
34
 
35
35
  def type_generators(type_declaration = inputs_type, initial = true)
@@ -43,11 +43,11 @@ module Foobara
43
43
  # :nocov:
44
44
  type_generators(type_declaration.to_type.primary_key_type, false)
45
45
  # :nocov:
46
- # generator_class = RemoteGenerator::Services::UnloadedEntityGenerator
46
+ # generator_class = RemoteGenerator::Generators::UnloadedEntityGenerator
47
47
  # [generator_class.new(type_declaration.to_entity)]
48
48
  elsif type_declaration.model?
49
49
  type_generators(type_declaration.to_type.attributes_type, false)
50
- # generator_class = RemoteGenerator::Services::AtomModelGenerator
50
+ # generator_class = RemoteGenerator::Generators::AtomModelGenerator
51
51
  # [generator_class.new(type_declaration.to_model)]
52
52
  elsif type_declaration.type.to_sym == :attributes
53
53
  type_declaration.attribute_declarations.values.map do |attribute_declaration|
@@ -22,7 +22,8 @@ module Foobara
22
22
  raw_manifest :associative_array, :allow_nil
23
23
  manifest_url :string, :allow_nil
24
24
  command_name :string, :required
25
- output_directory :string
25
+ output_directory :string, default: "src/domains"
26
+ fail_if_does_not_pass_linter :boolean, default: false
26
27
  end
27
28
 
28
29
  depends_on GenerateTypescriptReactCommandForm
@@ -59,16 +60,6 @@ module Foobara
59
60
  end
60
61
  end
61
62
 
62
- def output_directory
63
- inputs[:output_directory] || default_output_directory
64
- end
65
-
66
- def default_output_directory
67
- # :nocov:
68
- "src/domains"
69
- # :nocov:
70
- end
71
-
72
63
  def generate_typescript
73
64
  # TODO: we need a way to allow values to be nil in type declarations
74
65
  inputs = raw_manifest ? { raw_manifest: } : { manifest_url: }
@@ -80,6 +71,10 @@ module Foobara
80
71
  def run_post_generation_tasks
81
72
  eslint_fix
82
73
  end
74
+
75
+ # We don't need this behavior from WriteTypescriptToDisk so we removed its input,
76
+ # but it will explode if we don't provide it to inherited code
77
+ def auto_dirty_queries = nil
83
78
  end
84
79
  end
85
80
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foobara-typescript-react-command-form-generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Georgi