growsurf-ruby 1.15.0 → 1.17.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: a92bc11a3304bcfbf0a6b3e304698b4e3fd522a0e170f08bdbe96a3a83a3f8fa
4
- data.tar.gz: f2e96dfde9474b90a5437e55840d3ffc1bfa005c321dbb8f4c18fb0aee3f05cf
3
+ metadata.gz: 8c19241add154dd27fd50a7935077d33d32b0f000bb48d8505d1abaea32704d5
4
+ data.tar.gz: 19091c342c57f803479d6a7505adabb7b8797cab8ad2a60e292d0404286e2491
5
5
  SHA512:
6
- metadata.gz: bfede3fbe36f45a13f78d0b064634fafab928da30fc4315c09541fc0eaab59ad91f95af462953ca842959eca0ed06dbce9a33f0b1d566fd590f94203c24009a7
7
- data.tar.gz: f8801a4c1c5eb935b89e0df6e736f4fc8effbf28a6965b2d7147e2b12a70b25e16df9c209814b1bf3c7966b450785072b73d6fd61005e9befffb08a337de64ff
6
+ metadata.gz: c6a2a8e04186f65e6acea39be2a9349ed47d60dd8b5b1fea6d8940a94c9b47d653cd5f4c291975cb9ab5eaee625efc30f3f1bb2d9d2bd234e5c464e6ee163582
7
+ data.tar.gz: ff03cf3d6a305c38b36efc7c517f5d092f7bc1a8a1e819814246bc39afdfa4f1c73690fb905ac31fc7127141189b4dec898a32f2198fd09ce996be317ae82747
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.17.0](https://github.com/growsurf/growsurf-ruby/compare/v1.16.0...v1.17.0) (2026-10-20)
4
+
5
+
6
+ ### Features
7
+
8
+ * add PER_YEAR reward limit duration ([c3b68aa](https://github.com/growsurf/growsurf-ruby/commit/c3b68aa7131f5882b2a8f820ae9d87c53786edc7))
9
+ * add PER_YEAR reward limit duration ([42fbf20](https://github.com/growsurf/growsurf-ruby/commit/42fbf20d8568de9b5ac00c3eeafdb456f60a995b))
10
+
11
+ ## [1.16.0](https://github.com/growsurf/growsurf-ruby/compare/v1.15.0...v1.16.0) (2026-10-19)
12
+
13
+
14
+ ### Features
15
+
16
+ * support resource empty-state graphics ([70dfd1e](https://github.com/growsurf/growsurf-ruby/commit/70dfd1ebbc88e76936108b844acb4e36e88082f1))
17
+ * support resource empty-state graphics ([7ea20b0](https://github.com/growsurf/growsurf-ruby/commit/7ea20b04e735a4c82aba685041ac44512828eeb4))
18
+
3
19
  ## [1.15.0](https://github.com/growsurf/growsurf-ruby/compare/v1.14.1...v1.15.0) (2026-10-19)
4
20
 
5
21
 
data/README.md CHANGED
@@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application
17
17
  <!-- x-release-please-start-version -->
18
18
 
19
19
  ```ruby
20
- gem "growsurf-ruby", "~> 1.15.0"
20
+ gem "growsurf-ruby", "~> 1.17.0"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -294,6 +294,7 @@ module GrowsurfRuby
294
294
 
295
295
  IN_TOTAL = :IN_TOTAL
296
296
  PER_MONTH = :PER_MONTH
297
+ PER_YEAR = :PER_YEAR
297
298
 
298
299
  # @!method self.values
299
300
  # @return [Array<Symbol>]
@@ -56,7 +56,8 @@ module GrowsurfRuby
56
56
  # @param body [Hash{Symbol=>Object}] Partial design configuration to merge. `resources`
57
57
  # accepts `isPublicDisplayed`, `title`, `viewResourcesLinkText`, `backLinkText`,
58
58
  # `copyButtonText`, `copiedText`, `emptyState`, and `icon` (`type`: `DEFAULT`, `IMAGE`, or `NONE`, plus
59
- # `imageUrl` for `IMAGE`). Resource items use the Program Resources operations.
59
+ # `imageUrl` for `IMAGE`). `emptyStateGraphic` accepts `type` (`DEFAULT`, `IMAGE`, `NONE`),
60
+ # a starter `key`, and `imageUrl`. Resource items use the Program Resources operations.
60
61
  #
61
62
  # @param request_options [GrowsurfRuby::RequestOptions, Hash{Symbol=>Object}, nil]
62
63
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GrowsurfRuby
4
- VERSION = "1.15.0"
4
+ VERSION = "1.17.0"
5
5
  end
@@ -442,6 +442,11 @@ module GrowsurfRuby
442
442
  :PER_MONTH,
443
443
  GrowsurfRuby::CampaignAPI::Reward::LimitDuration::TaggedSymbol
444
444
  )
445
+ PER_YEAR =
446
+ T.let(
447
+ :PER_YEAR,
448
+ GrowsurfRuby::CampaignAPI::Reward::LimitDuration::TaggedSymbol
449
+ )
445
450
 
446
451
  sig do
447
452
  override.returns(
@@ -23,7 +23,8 @@ module GrowsurfRuby
23
23
  copyButtonText: T.nilable(String),
24
24
  copiedText: T.nilable(String),
25
25
  emptyState: T.nilable(String),
26
- icon: T.nilable(ResourcesIcon)
26
+ icon: T.nilable(ResourcesIcon),
27
+ emptyStateGraphic: T.nilable(T::Hash[Symbol, T.untyped])
27
28
  }
28
29
  end
29
30
 
@@ -217,13 +217,14 @@ module GrowsurfRuby
217
217
  def self?.values: -> ::Array[GrowsurfRuby::Models::CampaignAPI::Reward::event]
218
218
  end
219
219
 
220
- type limit_duration = :IN_TOTAL | :PER_MONTH
220
+ type limit_duration = :IN_TOTAL | :PER_MONTH | :PER_YEAR
221
221
 
222
222
  module LimitDuration
223
223
  extend GrowsurfRuby::Internal::Type::Enum
224
224
 
225
225
  IN_TOTAL: :IN_TOTAL
226
226
  PER_MONTH: :PER_MONTH
227
+ PER_YEAR: :PER_YEAR
227
228
 
228
229
  def self?.values: -> ::Array[GrowsurfRuby::Models::CampaignAPI::Reward::limit_duration]
229
230
  end
@@ -18,7 +18,8 @@ module GrowsurfRuby
18
18
  copyButtonText?: String,
19
19
  copiedText?: String,
20
20
  emptyState?: String,
21
- icon?: resources_icon
21
+ icon?: resources_icon,
22
+ emptyStateGraphic?: ::Hash[Symbol, top]
22
23
  }
23
24
 
24
25
  def retrieve: (
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: growsurf-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.15.0
4
+ version: 1.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Growsurf
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-10-19 00:00:00.000000000 Z
11
+ date: 2026-10-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi