forest_admin_datasource_toolkit 1.24.10 → 1.25.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: f4faa550050113a14d6d3e2036e81f9896f60e392bbf1f479312e940293904ae
4
- data.tar.gz: 4525d8510332094833b641555c4cc381a2d2b71b1c1306c7f346fd49ba35bb23
3
+ metadata.gz: b3c069c6873fd588e58e2bb1fcf213d9dc4cdfa3bbfddcbd1096e16959985d9c
4
+ data.tar.gz: ebfd0f9010638249dce029335c06479d358355c371a44e5011dde46e92161e6f
5
5
  SHA512:
6
- metadata.gz: 822c0b9d825076ccc532817f064da6d3f67239ce6690983215d0b2f91a96f690a5fdb24ff36b767b75ff8a39948c1982631af6af6917e76bfad5a61a57c4174a
7
- data.tar.gz: 422016c7a760c3420b15a74746a2911c8533b527fab8c1158749607fca5cf684957ef263ae34db82b6d2c5a25f1ee471c3fff20852c2860a8c1a75286d887bd0
6
+ metadata.gz: 36335cfefad342d63986453d8ea597f9d694e9f53cbc47c3409e7cd1c427f0c5eacf592935cdc3b75256b35f66ec533c28d9a6724815e44fdfa02021316ea630
7
+ data.tar.gz: 3764f1072724339b00f4e606dbf42d9840b3a3e9f91c0692274e090e30a63e1aeee934149d757a63b07366acb927adb912ae15ad0aae4c005dde9d94a627afc3
@@ -17,7 +17,11 @@ module ForestAdminDatasourceToolkit
17
17
  searchable: false,
18
18
  charts: [],
19
19
  segments: [],
20
- actions: {}
20
+ actions: {},
21
+ aggregation_capabilities: {
22
+ support_groups: true,
23
+ supported_date_operations: %w[Year Quarter Month Week Day]
24
+ }
21
25
  }
22
26
  end
23
27
 
@@ -5,6 +5,7 @@ module ForestAdminDatasourceToolkit
5
5
 
6
6
  attr_accessor :is_read_only,
7
7
  :is_sortable,
8
+ :is_groupable,
8
9
  :validation,
9
10
  :filter_operators,
10
11
  :column_type
@@ -15,6 +16,7 @@ module ForestAdminDatasourceToolkit
15
16
  is_primary_key: false,
16
17
  is_read_only: false,
17
18
  is_sortable: false,
19
+ is_groupable: true,
18
20
  default_value: nil,
19
21
  enum_values: [],
20
22
  validation: []
@@ -24,6 +26,7 @@ module ForestAdminDatasourceToolkit
24
26
  @is_primary_key = is_primary_key
25
27
  @is_read_only = is_read_only
26
28
  @is_sortable = is_sortable
29
+ @is_groupable = is_groupable
27
30
  @default_value = default_value
28
31
  @enum_values = enum_values
29
32
  @validation = validation
@@ -1,3 +1,3 @@
1
1
  module ForestAdminDatasourceToolkit
2
- VERSION = "1.24.10"
2
+ VERSION = "1.25.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: forest_admin_datasource_toolkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.24.10
4
+ version: 1.25.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthieu
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2026-03-02 00:00:00.000000000 Z
12
+ date: 2026-03-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -230,11 +230,9 @@ files:
230
230
  - lib/forest_admin_datasource_toolkit/validations/type_getter.rb
231
231
  - lib/forest_admin_datasource_toolkit/version.rb
232
232
  - sig/forest_admin_datasource_toolkit.rbs
233
- - sig/forest_admin_datasource_toolkit/collection.rbs
234
233
  - sig/forest_admin_datasource_toolkit/components/contracts/collection_contract.rbs
235
234
  - sig/forest_admin_datasource_toolkit/components/contracts/datasource_contract.rbs
236
235
  - sig/forest_admin_datasource_toolkit/datasource.rbs
237
- - sig/forest_admin_datasource_toolkit/schema/column_schema.rbs
238
236
  - sig/forest_admin_datasource_toolkit/schema/relation_schema.rbs
239
237
  - sig/forest_admin_datasource_toolkit/schema/relations/many_relation_schema.rbs
240
238
  - sig/forest_admin_datasource_toolkit/schema/relations/many_to_many_schema.rbs
@@ -1,26 +0,0 @@
1
- module ForestAdminDatasourceToolkit
2
- class Collection
3
- attr_reader actions: Hash[string, string]
4
- attr_reader charts: Hash[string, string]
5
- attr_writer countable: bool
6
- attr_reader datasource: Components::Contracts::DatasourceContract
7
- attr_reader fields: Hash[string, string]
8
- attr_writer fields: void
9
- attr_reader name: string
10
- attr_reader native_driver: untyped | nil
11
- attr_reader schema: Hash[string, string]
12
- attr_writer searchable: bool
13
- attr_reader segments: Hash[string, string]
14
- attr_writer segments: void
15
-
16
- # replace untyped by ColumnSchema|RelationSchema
17
- def add_field: (string, untyped) -> void
18
-
19
- # replace untyped by ColumnSchema|RelationSchema
20
- def add_fields:(Hash[string, untyped]) -> void
21
-
22
- def is_countable?: -> bool
23
-
24
- def is_searchable?: -> bool
25
- end
26
- end
@@ -1,15 +0,0 @@
1
- module ForestAdminDatasourceToolkit
2
- module Schema
3
- class ColumnSchema
4
- attr_accessor column_type: Array[String] | String
5
- attr_reader default_value: untyped
6
- attr_reader enum_values: Array[String]
7
- attr_accessor filter_operators: Array[String]
8
- attr_reader is_primary_key: bool
9
- attr_accessor is_read_only: bool
10
- attr_accessor is_sortable: bool
11
- attr_reader type: String
12
- attr_accessor validations: Array[String]
13
- end
14
- end
15
- end