growsurf-ruby 1.5.1 → 1.6.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: 28212ccf1fefd2b64f24e1a6a0414f1e01d6de7d1e762101fe4e9abf954aee34
4
- data.tar.gz: 69696a4baede734098665f363a142d9b88490394a5dc18e75119e8957c4b184f
3
+ metadata.gz: 30767eaf7fe9df6cf0d79676d5d398e9f05fcabaaab4fe397589a4e21b4e81d5
4
+ data.tar.gz: 2565e6b7e6a9c36e189dfe6d118f94893ccdba2e2c168b9364ebcd447d95698b
5
5
  SHA512:
6
- metadata.gz: '01253998f166bc0f84d0e4cca47b172b31899bd590dbd35852a86f1057c81371fd54a9368e280ae05849414bd52382f4e4d8fc0acbed362604a683e69b259712'
7
- data.tar.gz: 9a5fb80db22e8cf3cbcab8d42f740328152b68d90ac56a0c57cbbec2a962f585ac392f7f6430e1d41f1ae4ab81def7c10d5673450e8d6ead28f8b9ba88b0a843
6
+ metadata.gz: e00037e4aa5f320e67e261d2a812c473972f198a2afc7b005894a8b87cc936fc973ad2d256bc72295dce87204aeed9238080d68ba255ea55a089907b802b7791
7
+ data.tar.gz: b346f82c3569cf54bb3d317d3eace7e362afa4066774eb943a660ca07e4400bfe8da7a128102fbedf3556be380ccf6bf016b31e3cdf54466f83b238bc915b6a0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.6.0](https://github.com/growsurf/growsurf-ruby/compare/v1.5.1...v1.6.0) (2026-09-14)
4
+
5
+
6
+ ### Features
7
+
8
+ * **api:** add pending analyticsErasure to participant delete responses ([43ea40d](https://github.com/growsurf/growsurf-ruby/commit/43ea40d0b1aef235b6bd11e3bbda0c6ac092a60c))
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **types:** correct analyticsErasure param ordering and RBI style ([44b0dc1](https://github.com/growsurf/growsurf-ruby/commit/44b0dc1852633775a99227951aaf9b7b51d13d46))
14
+
15
+
16
+ ### Chores
17
+
18
+ * merge dev into main ([9855d24](https://github.com/growsurf/growsurf-ruby/commit/9855d240457ad9ae95d4946d0574787390177e2d))
19
+
3
20
  ## [1.5.1](https://github.com/growsurf/growsurf-ruby/compare/v1.5.0...v1.5.1) (2026-09-10)
4
21
 
5
22
 
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.5.1"
20
+ gem "growsurf-ruby", "~> 1.6.0"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -5,26 +5,39 @@ module GrowsurfRuby
5
5
  module Campaign
6
6
  # @see GrowsurfRuby::Resources::Campaign::Participant#bulk_delete
7
7
  class ParticipantBulkDeleteResponse < GrowsurfRuby::Internal::Type::BaseModel
8
+ # @!attribute analytics_erasure
9
+ # Analytics erasure is pending. Do not repeat successful deletions.
10
+ #
11
+ # @return [GrowsurfRuby::Models::Campaign::PendingAnalyticsErasure, nil]
12
+ optional :analytics_erasure,
13
+ -> { GrowsurfRuby::Models::Campaign::PendingAnalyticsErasure },
14
+ api_name: :analyticsErasure
15
+
8
16
  # @!attribute results
9
17
  # One entry per submitted identifier, in the same order as the request.
10
18
  #
11
19
  # @return [Array<GrowsurfRuby::Models::Campaign::ParticipantBulkDeleteResponse::Result>]
12
20
  required :results,
13
- -> {
21
+ -> do
14
22
  GrowsurfRuby::Internal::Type::ArrayOf[
15
23
  GrowsurfRuby::Campaign::ParticipantBulkDeleteResponse::Result
16
24
  ]
17
- }
25
+ end
18
26
 
19
27
  # @!attribute summary
20
28
  #
21
29
  # @return [GrowsurfRuby::Models::Campaign::ParticipantBulkDeleteResponse::Summary]
22
- required :summary, -> { GrowsurfRuby::Campaign::ParticipantBulkDeleteResponse::Summary }
30
+ required :summary,
31
+ -> do
32
+ GrowsurfRuby::Campaign::ParticipantBulkDeleteResponse::Summary
33
+ end
23
34
 
24
- # @!method initialize(results:, summary:)
35
+ # @!method initialize(results:, summary:, analytics_erasure: nil)
25
36
  # @param results [Array<GrowsurfRuby::Models::Campaign::ParticipantBulkDeleteResponse::Result>] One entry per submitted identifier, in the same order as the request.
26
37
  #
27
38
  # @param summary [GrowsurfRuby::Models::Campaign::ParticipantBulkDeleteResponse::Summary]
39
+ #
40
+ # @param analytics_erasure [GrowsurfRuby::Models::Campaign::PendingAnalyticsErasure, nil] Analytics erasure is pending. Do not repeat successful deletions.
28
41
 
29
42
  class Result < GrowsurfRuby::Internal::Type::BaseModel
30
43
  # @!attribute identifier
@@ -46,7 +59,10 @@ module GrowsurfRuby
46
59
  # `ERROR` — the lookup or deletion failed for this row.
47
60
  #
48
61
  # @return [Symbol, GrowsurfRuby::Models::Campaign::ParticipantBulkDeleteResponse::Result::Status]
49
- required :status, enum: -> { GrowsurfRuby::Campaign::ParticipantBulkDeleteResponse::Result::Status }
62
+ required :status,
63
+ enum: -> do
64
+ GrowsurfRuby::Campaign::ParticipantBulkDeleteResponse::Result::Status
65
+ end
50
66
 
51
67
  # @!attribute email
52
68
  # The resolved participant's email address. Present on `DELETED` rows.
@@ -5,13 +5,23 @@ module GrowsurfRuby
5
5
  module Campaign
6
6
  # @see GrowsurfRuby::Resources::Campaign::Participant#delete
7
7
  class ParticipantDeleteResponse < GrowsurfRuby::Internal::Type::BaseModel
8
+ # @!attribute analytics_erasure
9
+ # Analytics erasure is pending. Do not repeat successful deletions.
10
+ #
11
+ # @return [GrowsurfRuby::Models::Campaign::PendingAnalyticsErasure, nil]
12
+ optional :analytics_erasure,
13
+ -> { GrowsurfRuby::Models::Campaign::PendingAnalyticsErasure },
14
+ api_name: :analyticsErasure
15
+
8
16
  # @!attribute success
9
17
  #
10
18
  # @return [Boolean]
11
19
  required :success, GrowsurfRuby::Internal::Type::Boolean
12
20
 
13
- # @!method initialize(success:)
21
+ # @!method initialize(success:, analytics_erasure: nil)
14
22
  # @param success [Boolean]
23
+ #
24
+ # @param analytics_erasure [GrowsurfRuby::Models::Campaign::PendingAnalyticsErasure, nil] Analytics erasure is pending. Do not repeat successful deletions.
15
25
  end
16
26
  end
17
27
  end
@@ -0,0 +1,26 @@
1
+ # frozen_string_literal: true
2
+
3
+ module GrowsurfRuby
4
+ module Models
5
+ module Campaign
6
+ class PendingAnalyticsErasure < GrowsurfRuby::Internal::Type::BaseModel
7
+ # @!attribute status
8
+ # Analytics erasure has been accepted but is not confirmed complete.
9
+ #
10
+ # @return [String]
11
+ required :status, String
12
+
13
+ # @!attribute operation_id
14
+ # Opaque reference for support inquiries about this analytics erasure.
15
+ #
16
+ # @return [String]
17
+ required :operation_id, String, api_name: :operationId
18
+
19
+ # @!method initialize(status:, operation_id:)
20
+ # @param status [String] Analytics erasure has been accepted but is not confirmed complete.
21
+ #
22
+ # @param operation_id [String] Opaque reference for support inquiries about this analytics erasure.
23
+ end
24
+ end
25
+ end
26
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GrowsurfRuby
4
- VERSION = "1.5.1"
4
+ VERSION = "1.6.0"
5
5
  end
data/lib/growsurf_ruby.rb CHANGED
@@ -75,6 +75,7 @@ require_relative "growsurf_ruby/models/campaign/participant_bulk_delete_response
75
75
  require_relative "growsurf_ruby/models/campaign/participant_cancel_delayed_referral_params"
76
76
  require_relative "growsurf_ruby/models/campaign/participant_cancel_delayed_referral_response"
77
77
  require_relative "growsurf_ruby/models/campaign/participant_delete_params"
78
+ require_relative "growsurf_ruby/models/campaign/pending_analytics_erasure"
78
79
  require_relative "growsurf_ruby/models/campaign/participant_delete_response"
79
80
  require_relative "growsurf_ruby/models/campaign/participant_email_params"
80
81
  require_relative "growsurf_ruby/models/campaign/participant_email_response"
@@ -12,6 +12,24 @@ module GrowsurfRuby
12
12
  )
13
13
  end
14
14
 
15
+ # Analytics erasure is pending. Do not repeat successful deletions.
16
+ sig do
17
+ returns(
18
+ T.nilable(GrowsurfRuby::Models::Campaign::PendingAnalyticsErasure)
19
+ )
20
+ end
21
+ attr_reader :analytics_erasure
22
+
23
+ sig do
24
+ params(
25
+ analytics_erasure:
26
+ T.nilable(
27
+ GrowsurfRuby::Models::Campaign::PendingAnalyticsErasure::OrHash
28
+ )
29
+ ).void
30
+ end
31
+ attr_writer :analytics_erasure
32
+
15
33
  # One entry per submitted identifier, in the same order as the request.
16
34
  sig do
17
35
  returns(
@@ -44,19 +62,29 @@ module GrowsurfRuby
44
62
  GrowsurfRuby::Campaign::ParticipantBulkDeleteResponse::Result::OrHash
45
63
  ],
46
64
  summary:
47
- GrowsurfRuby::Campaign::ParticipantBulkDeleteResponse::Summary::OrHash
65
+ GrowsurfRuby::Campaign::ParticipantBulkDeleteResponse::Summary::OrHash,
66
+ analytics_erasure:
67
+ T.nilable(
68
+ GrowsurfRuby::Models::Campaign::PendingAnalyticsErasure::OrHash
69
+ )
48
70
  ).returns(T.attached_class)
49
71
  end
50
72
  def self.new(
51
73
  # One entry per submitted identifier, in the same order as the request.
52
74
  results:,
53
- summary:
75
+ summary:,
76
+ # Analytics erasure is pending. Do not repeat successful deletions.
77
+ analytics_erasure: nil
54
78
  )
55
79
  end
56
80
 
57
81
  sig do
58
82
  override.returns(
59
83
  {
84
+ analytics_erasure:
85
+ T.nilable(
86
+ GrowsurfRuby::Models::Campaign::PendingAnalyticsErasure
87
+ ),
60
88
  results:
61
89
  T::Array[
62
90
  GrowsurfRuby::Campaign::ParticipantBulkDeleteResponse::Result
@@ -12,14 +12,54 @@ module GrowsurfRuby
12
12
  )
13
13
  end
14
14
 
15
+ # Analytics erasure is pending. Do not repeat successful deletions.
16
+ sig do
17
+ returns(
18
+ T.nilable(GrowsurfRuby::Models::Campaign::PendingAnalyticsErasure)
19
+ )
20
+ end
21
+ attr_reader :analytics_erasure
22
+
23
+ sig do
24
+ params(
25
+ analytics_erasure:
26
+ T.nilable(
27
+ GrowsurfRuby::Models::Campaign::PendingAnalyticsErasure::OrHash
28
+ )
29
+ ).void
30
+ end
31
+ attr_writer :analytics_erasure
32
+
15
33
  sig { returns(T::Boolean) }
16
34
  attr_accessor :success
17
35
 
18
- sig { params(success: T::Boolean).returns(T.attached_class) }
19
- def self.new(success:)
36
+ sig do
37
+ params(
38
+ success: T::Boolean,
39
+ analytics_erasure:
40
+ T.nilable(
41
+ GrowsurfRuby::Models::Campaign::PendingAnalyticsErasure::OrHash
42
+ )
43
+ ).returns(T.attached_class)
44
+ end
45
+ def self.new(
46
+ success:,
47
+ # Analytics erasure is pending. Do not repeat successful deletions.
48
+ analytics_erasure: nil
49
+ )
20
50
  end
21
51
 
22
- sig { override.returns({ success: T::Boolean }) }
52
+ sig do
53
+ override.returns(
54
+ {
55
+ success: T::Boolean,
56
+ analytics_erasure:
57
+ T.nilable(
58
+ GrowsurfRuby::Models::Campaign::PendingAnalyticsErasure
59
+ )
60
+ }
61
+ )
62
+ end
23
63
  def to_hash
24
64
  end
25
65
  end
@@ -0,0 +1,40 @@
1
+ # typed: strong
2
+
3
+ module GrowsurfRuby
4
+ module Models
5
+ module Campaign
6
+ class PendingAnalyticsErasure < GrowsurfRuby::Internal::Type::BaseModel
7
+ OrHash =
8
+ T.type_alias do
9
+ T.any(
10
+ GrowsurfRuby::Models::Campaign::PendingAnalyticsErasure,
11
+ GrowsurfRuby::Internal::AnyHash
12
+ )
13
+ end
14
+
15
+ # Analytics erasure has been accepted but is not confirmed complete.
16
+ sig { returns(String) }
17
+ attr_accessor :status
18
+
19
+ # Opaque reference for support inquiries about this analytics erasure.
20
+ sig { returns(String) }
21
+ attr_accessor :operation_id
22
+
23
+ sig do
24
+ params(status: String, operation_id: String).returns(T.attached_class)
25
+ end
26
+ def self.new(
27
+ # Analytics erasure has been accepted but is not confirmed complete.
28
+ status:,
29
+ # Opaque reference for support inquiries about this analytics erasure.
30
+ operation_id:
31
+ )
32
+ end
33
+
34
+ sig { override.returns({ status: String, operation_id: String }) }
35
+ def to_hash
36
+ end
37
+ end
38
+ end
39
+ end
40
+ end
@@ -4,22 +4,27 @@ module GrowsurfRuby
4
4
  type participant_bulk_delete_response =
5
5
  {
6
6
  results: ::Array[GrowsurfRuby::Models::Campaign::ParticipantBulkDeleteResponse::Result],
7
- summary: GrowsurfRuby::Models::Campaign::ParticipantBulkDeleteResponse::Summary
7
+ summary: GrowsurfRuby::Models::Campaign::ParticipantBulkDeleteResponse::Summary,
8
+ ?analytics_erasure: GrowsurfRuby::Models::Campaign::PendingAnalyticsErasure?
8
9
  }
9
10
 
10
11
  class ParticipantBulkDeleteResponse < GrowsurfRuby::Internal::Type::BaseModel
12
+ attr_accessor analytics_erasure: GrowsurfRuby::Models::Campaign::PendingAnalyticsErasure?
13
+
11
14
  attr_accessor results: ::Array[GrowsurfRuby::Models::Campaign::ParticipantBulkDeleteResponse::Result]
12
15
 
13
16
  attr_accessor summary: GrowsurfRuby::Models::Campaign::ParticipantBulkDeleteResponse::Summary
14
17
 
15
18
  def initialize: (
16
19
  results: ::Array[GrowsurfRuby::Models::Campaign::ParticipantBulkDeleteResponse::Result],
17
- summary: GrowsurfRuby::Models::Campaign::ParticipantBulkDeleteResponse::Summary
20
+ summary: GrowsurfRuby::Models::Campaign::ParticipantBulkDeleteResponse::Summary,
21
+ ?analytics_erasure: GrowsurfRuby::Models::Campaign::PendingAnalyticsErasure?
18
22
  ) -> void
19
23
 
20
24
  def to_hash: -> {
21
25
  results: ::Array[GrowsurfRuby::Models::Campaign::ParticipantBulkDeleteResponse::Result],
22
- summary: GrowsurfRuby::Models::Campaign::ParticipantBulkDeleteResponse::Summary
26
+ summary: GrowsurfRuby::Models::Campaign::ParticipantBulkDeleteResponse::Summary,
27
+ ?analytics_erasure: GrowsurfRuby::Models::Campaign::PendingAnalyticsErasure?
23
28
  }
24
29
 
25
30
  type result =
@@ -1,14 +1,16 @@
1
1
  module GrowsurfRuby
2
2
  module Models
3
3
  module Campaign
4
- type participant_delete_response = { success: bool }
4
+ type participant_delete_response = { success: bool, ?analytics_erasure: GrowsurfRuby::Models::Campaign::PendingAnalyticsErasure? }
5
5
 
6
6
  class ParticipantDeleteResponse < GrowsurfRuby::Internal::Type::BaseModel
7
+ attr_accessor analytics_erasure: GrowsurfRuby::Models::Campaign::PendingAnalyticsErasure?
8
+
7
9
  attr_accessor success: bool
8
10
 
9
- def initialize: (success: bool) -> void
11
+ def initialize: (success: bool, ?analytics_erasure: GrowsurfRuby::Models::Campaign::PendingAnalyticsErasure?) -> void
10
12
 
11
- def to_hash: -> { success: bool }
13
+ def to_hash: -> { success: bool, ?analytics_erasure: GrowsurfRuby::Models::Campaign::PendingAnalyticsErasure? }
12
14
  end
13
15
  end
14
16
  end
@@ -0,0 +1,17 @@
1
+ module GrowsurfRuby
2
+ module Models
3
+ module Campaign
4
+ type pending_analytics_erasure = { status: String, operation_id: String }
5
+
6
+ class PendingAnalyticsErasure < GrowsurfRuby::Internal::Type::BaseModel
7
+ attr_accessor status: String
8
+
9
+ attr_accessor operation_id: String
10
+
11
+ def initialize: (status: String, operation_id: String) -> void
12
+
13
+ def to_hash: -> { status: String, operation_id: String }
14
+ end
15
+ end
16
+ end
17
+ end
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.5.1
4
+ version: 1.6.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-09-10 00:00:00.000000000 Z
11
+ date: 2026-09-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi
@@ -126,6 +126,7 @@ files:
126
126
  - lib/growsurf_ruby/models/campaign/participant_trigger_referral_params.rb
127
127
  - lib/growsurf_ruby/models/campaign/participant_trigger_referral_response.rb
128
128
  - lib/growsurf_ruby/models/campaign/participant_update_params.rb
129
+ - lib/growsurf_ruby/models/campaign/pending_analytics_erasure.rb
129
130
  - lib/growsurf_ruby/models/campaign/program_resource.rb
130
131
  - lib/growsurf_ruby/models/campaign/program_resource_create_params.rb
131
132
  - lib/growsurf_ruby/models/campaign/program_resource_delete_params.rb
@@ -280,6 +281,7 @@ files:
280
281
  - rbi/growsurf_ruby/models/campaign/participant_trigger_referral_params.rbi
281
282
  - rbi/growsurf_ruby/models/campaign/participant_trigger_referral_response.rbi
282
283
  - rbi/growsurf_ruby/models/campaign/participant_update_params.rbi
284
+ - rbi/growsurf_ruby/models/campaign/pending_analytics_erasure.rbi
283
285
  - rbi/growsurf_ruby/models/campaign/program_resource.rbi
284
286
  - rbi/growsurf_ruby/models/campaign/program_resource_create_params.rbi
285
287
  - rbi/growsurf_ruby/models/campaign/program_resource_delete_params.rbi
@@ -433,6 +435,7 @@ files:
433
435
  - sig/growsurf_ruby/models/campaign/participant_trigger_referral_params.rbs
434
436
  - sig/growsurf_ruby/models/campaign/participant_trigger_referral_response.rbs
435
437
  - sig/growsurf_ruby/models/campaign/participant_update_params.rbs
438
+ - sig/growsurf_ruby/models/campaign/pending_analytics_erasure.rbs
436
439
  - sig/growsurf_ruby/models/campaign/program_resource.rbs
437
440
  - sig/growsurf_ruby/models/campaign/program_resource_create_params.rbs
438
441
  - sig/growsurf_ruby/models/campaign/program_resource_delete_params.rbs