lingutest_client 0.2.3 → 0.2.5

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: a0c93a77d5086cadaeb4f824d5896e60309f083b0671ca7c48029fd0fe003b6f
4
- data.tar.gz: 510c3cb33addcb4cf46294fd13c2bf21a700a2c090f6fa6b8e7d469189a979ad
3
+ metadata.gz: 6eb2319892145efa64cff3f1d7dbeb1a489313deb4cb50ac6bbf36331e56000a
4
+ data.tar.gz: 50aa31db07590bd69f582feb3b8dd817c2e9aafd360eeeb81b0e748f2a95d28b
5
5
  SHA512:
6
- metadata.gz: ca771706d78940363a386aac7acfa08f954b709c7a59f61941266b41ab82c97d4f1b687256e8d9989282fb6d6624eb4bec3eff30483af826c2e5ff9def05be5d
7
- data.tar.gz: d51fe1a6f8e21b15c0147d41b7e2f9fcda5606e2b0ebfc3acc9f3deb4dad4d3a72a4ef60ac4f140d4781ecc8c41ce8b2060f3c2e5e6e54e298310b6fd3f7cc74
6
+ metadata.gz: e8998a0b294a52371c3554851705df23b0f044ac85900ecdf2eae2190ce49fd52e893f954f3896cef524975818bddf4645c5b2ab8c35d9381e50f20394031a54
7
+ data.tar.gz: 78e5e042bcc734b28a9a4b7e8713ce95a986fd82085c359b81bd46192548d5cc3bb7950e75b542d5890b18c319b8cdd6f6aff66b168dd45620df6feb8ebf4e51
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lingutest_client (0.2.3)
4
+ lingutest_client (0.2.4)
5
5
  dry-configurable (~> 0.13.0)
6
6
  dry-schema (~> 1.10.0)
7
7
  dry-struct (~> 1.5.0)
@@ -7,10 +7,21 @@ module LingutestClient
7
7
  include Api::Resource
8
8
  include Api::Operations::List.module(ExamList)
9
9
 
10
- attribute :id, Types::Coercible::Integer.optional.default(0)
11
- attribute :name, Types::Coercible::String.optional.default('')
10
+ FilterSchema = Dry::Schema.Params do
11
+ config.validate_keys = true
12
+ optional(:page).filled(Types::Coercible::Integer)
13
+ optional(:per_page).filled(Types::Coercible::Integer)
14
+
15
+ optional(:locale_eq).filled(Types::Coercible::String)
16
+ optional(:price_gt).filled(Types::Coercible::Integer)
17
+ end
18
+
19
+ attribute :id, Types::Coercible::Integer.optional.default(0)
20
+ attribute :name, Types::Coercible::String.optional.default('')
21
+ attribute :locale, Types::Coercible::String.optional.default('')
12
22
  attribute :description, Types::Coercible::String.optional.default('')
13
- attribute :price, Types::Coercible::Decimal.optional.default(0)
14
- attribute :updated_at, Types::DateTime.optional.default(nil)
23
+ attribute :price, Types::Coercible::Decimal.optional.default(0)
24
+ attribute :updated_at, Types::DateTime.optional.default(nil)
25
+ attribute :created_at, Types::DateTime.optional.default(nil)
15
26
  end
16
27
  end
@@ -31,6 +31,10 @@ module LingutestClient
31
31
  optional(:team_id_eq).filled(Types::Coercible::String)
32
32
  optional(:team_group_id_eq).filled(Types::Coercible::String)
33
33
  optional(:student_id_eq).filled(Types::Coercible::String)
34
+
35
+ optional(:price_gteq).filled(Types::Coercible::Integer)
36
+ optional(:created_at_gteq).filled(Types::DateTime)
37
+ optional(:created_at_lteq).filled(Types::DateTime)
34
38
  end
35
39
 
36
40
  include Api::Resource
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LingutestClient
4
- VERSION = '0.2.3'
4
+ VERSION = '0.2.5'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lingutest_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anatolii Didukh
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-08-15 00:00:00.000000000 Z
11
+ date: 2023-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-configurable