growsurf-ruby 1.1.0 → 1.1.1
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 +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +1 -1
- data/lib/growsurf_ruby/models.rb +0 -2
- data/lib/growsurf_ruby/resources/campaign.rb +0 -19
- data/lib/growsurf_ruby/version.rb +1 -1
- data/lib/growsurf_ruby.rb +0 -1
- data/rbi/growsurf_ruby/models.rbi +0 -3
- data/rbi/growsurf_ruby/resources/campaign.rbi +0 -15
- data/sig/growsurf_ruby/models.rbs +0 -2
- data/sig/growsurf_ruby/resources/campaign.rbs +0 -5
- metadata +2 -5
- data/lib/growsurf_ruby/models/referral_flow_screenshots_response.rb +0 -72
- data/rbi/growsurf_ruby/models/referral_flow_screenshots_response.rbi +0 -94
- data/sig/growsurf_ruby/models/referral_flow_screenshots_response.rbs +0 -54
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 29876fdbf502b86b0f96ce35e6c28d81f4e225b37a214306595c344e7552a5cb
|
|
4
|
+
data.tar.gz: 036aea5854c54da9166b77ca1a3e9c8437f4551332856f730d05387dc44759f6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8653bef46e7cca5d928f99fbff808dd91d2ce46eabf7381c407e63b13c0c6009306587d1162bd6c0c22a7eb00eb62f570be1d5eebc776b2e8adf3046c53160a4
|
|
7
|
+
data.tar.gz: a7280a0256a42be4a2577f9070d2fc1132edc376b98d3131f8fc35172221e1ef3acc5934eb18d13c16492c7a6a25f54cdbc88c27fcd3fc579873a3569261b9b6
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.1.1](https://github.com/growsurf/growsurf-ruby/compare/v1.1.0...v1.1.1) (2026-07-09)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* remove referral screenshot REST surface ([7d543f7](https://github.com/growsurf/growsurf-ruby/commit/7d543f7a3dfa1db1f3d0ce5c556d897945d844b1))
|
|
9
|
+
|
|
3
10
|
## [1.1.0](https://github.com/growsurf/growsurf-ruby/compare/v1.0.0...v1.1.0) (2026-07-08)
|
|
4
11
|
|
|
5
12
|
|
data/README.md
CHANGED
data/lib/growsurf_ruby/models.rb
CHANGED
|
@@ -163,25 +163,6 @@ module GrowsurfRuby
|
|
|
163
163
|
)
|
|
164
164
|
end
|
|
165
165
|
|
|
166
|
-
# Captures two preview screenshots for the program: the authenticated referrer
|
|
167
|
-
# view and the referred-friend view.
|
|
168
|
-
#
|
|
169
|
-
# @overload get_referral_flow_screenshots(id, request_options: {})
|
|
170
|
-
#
|
|
171
|
-
# @param id [String] GrowSurf program ID.
|
|
172
|
-
#
|
|
173
|
-
# @param request_options [GrowsurfRuby::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
174
|
-
#
|
|
175
|
-
# @return [GrowsurfRuby::Models::ReferralFlowScreenshotsResponse]
|
|
176
|
-
def get_referral_flow_screenshots(id, params = {})
|
|
177
|
-
@client.request(
|
|
178
|
-
method: :get,
|
|
179
|
-
path: ["campaign/%1$s/referral-flow-screenshots", id],
|
|
180
|
-
model: GrowsurfRuby::Models::ReferralFlowScreenshotsResponse,
|
|
181
|
-
options: params[:request_options]
|
|
182
|
-
)
|
|
183
|
-
end
|
|
184
|
-
|
|
185
166
|
# Some parameter documentations has been truncated, see
|
|
186
167
|
# {GrowsurfRuby::Models::CampaignCreateMobileParticipantTokenParams} for more
|
|
187
168
|
# details.
|
data/lib/growsurf_ruby.rb
CHANGED
|
@@ -136,7 +136,6 @@ require_relative "growsurf_ruby/models/participant_commission_list"
|
|
|
136
136
|
require_relative "growsurf_ruby/models/participant_list"
|
|
137
137
|
require_relative "growsurf_ruby/models/participant_payout_list"
|
|
138
138
|
require_relative "growsurf_ruby/models/referral_list"
|
|
139
|
-
require_relative "growsurf_ruby/models/referral_flow_screenshots_response"
|
|
140
139
|
require_relative "growsurf_ruby/models/reward_tax_valuation"
|
|
141
140
|
require_relative "growsurf_ruby/models"
|
|
142
141
|
require_relative "growsurf_ruby/resources/account"
|
|
@@ -135,21 +135,6 @@ module GrowsurfRuby
|
|
|
135
135
|
)
|
|
136
136
|
end
|
|
137
137
|
|
|
138
|
-
# Captures two preview screenshots for the program: the authenticated referrer
|
|
139
|
-
# view and the referred-friend view.
|
|
140
|
-
sig do
|
|
141
|
-
params(
|
|
142
|
-
id: String,
|
|
143
|
-
request_options: GrowsurfRuby::RequestOptions::OrHash
|
|
144
|
-
).returns(GrowsurfRuby::Models::ReferralFlowScreenshotsResponse)
|
|
145
|
-
end
|
|
146
|
-
def get_referral_flow_screenshots(
|
|
147
|
-
# GrowSurf program ID.
|
|
148
|
-
id,
|
|
149
|
-
request_options: {}
|
|
150
|
-
)
|
|
151
|
-
end
|
|
152
|
-
|
|
153
138
|
# Creates or returns a participant using the same input behavior as Add
|
|
154
139
|
# Participant, then returns a participant-scoped token for GrowSurf mobile SDK
|
|
155
140
|
# participant endpoints. Use this endpoint from your backend after your mobile app
|
|
@@ -52,11 +52,6 @@ module GrowsurfRuby
|
|
|
52
52
|
?request_options: GrowsurfRuby::request_opts
|
|
53
53
|
) -> GrowsurfRuby::CampaignAPI
|
|
54
54
|
|
|
55
|
-
def get_referral_flow_screenshots: (
|
|
56
|
-
String id,
|
|
57
|
-
?request_options: GrowsurfRuby::request_opts
|
|
58
|
-
) -> GrowsurfRuby::Models::ReferralFlowScreenshotsResponse
|
|
59
|
-
|
|
60
55
|
def create_mobile_participant_token: (
|
|
61
56
|
String id,
|
|
62
57
|
email: String,
|
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.1.
|
|
4
|
+
version: 1.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Growsurf
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-07-
|
|
11
|
+
date: 2026-07-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|
|
@@ -152,7 +152,6 @@ files:
|
|
|
152
152
|
- lib/growsurf_ruby/models/participant_commission_list.rb
|
|
153
153
|
- lib/growsurf_ruby/models/participant_list.rb
|
|
154
154
|
- lib/growsurf_ruby/models/participant_payout_list.rb
|
|
155
|
-
- lib/growsurf_ruby/models/referral_flow_screenshots_response.rb
|
|
156
155
|
- lib/growsurf_ruby/models/referral_list.rb
|
|
157
156
|
- lib/growsurf_ruby/models/reward_tax_valuation.rb
|
|
158
157
|
- lib/growsurf_ruby/request_options.rb
|
|
@@ -271,7 +270,6 @@ files:
|
|
|
271
270
|
- rbi/growsurf_ruby/models/participant_commission_list.rbi
|
|
272
271
|
- rbi/growsurf_ruby/models/participant_list.rbi
|
|
273
272
|
- rbi/growsurf_ruby/models/participant_payout_list.rbi
|
|
274
|
-
- rbi/growsurf_ruby/models/referral_flow_screenshots_response.rbi
|
|
275
273
|
- rbi/growsurf_ruby/models/referral_list.rbi
|
|
276
274
|
- rbi/growsurf_ruby/models/reward_tax_valuation.rbi
|
|
277
275
|
- rbi/growsurf_ruby/request_options.rbi
|
|
@@ -389,7 +387,6 @@ files:
|
|
|
389
387
|
- sig/growsurf_ruby/models/participant_commission_list.rbs
|
|
390
388
|
- sig/growsurf_ruby/models/participant_list.rbs
|
|
391
389
|
- sig/growsurf_ruby/models/participant_payout_list.rbs
|
|
392
|
-
- sig/growsurf_ruby/models/referral_flow_screenshots_response.rbs
|
|
393
390
|
- sig/growsurf_ruby/models/referral_list.rbs
|
|
394
391
|
- sig/growsurf_ruby/models/reward_tax_valuation.rbs
|
|
395
392
|
- sig/growsurf_ruby/request_options.rbs
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module GrowsurfRuby
|
|
4
|
-
module Models
|
|
5
|
-
# @see GrowsurfRuby::Resources::Campaign#get_referral_flow_screenshots
|
|
6
|
-
class ReferralFlowScreenshotsResponse < GrowsurfRuby::Internal::Type::BaseModel
|
|
7
|
-
# @!attribute referrer
|
|
8
|
-
# Screenshot of the referral flow as a signed-in referrer sees it.
|
|
9
|
-
#
|
|
10
|
-
# @return [GrowsurfRuby::Models::ReferralFlowScreenshotsResponse::ReferralFlowScreenshot]
|
|
11
|
-
required :referrer, -> { GrowsurfRuby::Models::ReferralFlowScreenshotsResponse::ReferralFlowScreenshot }
|
|
12
|
-
|
|
13
|
-
# @!attribute referred_friend
|
|
14
|
-
# Screenshot of the referral flow as the referred friend sees it.
|
|
15
|
-
#
|
|
16
|
-
# @return [GrowsurfRuby::Models::ReferralFlowScreenshotsResponse::ReferralFlowScreenshot]
|
|
17
|
-
required :referred_friend,
|
|
18
|
-
-> { GrowsurfRuby::Models::ReferralFlowScreenshotsResponse::ReferralFlowScreenshot },
|
|
19
|
-
api_name: :referredFriend
|
|
20
|
-
|
|
21
|
-
# @!attribute generated_at
|
|
22
|
-
# When the screenshots were generated, as a Unix timestamp in milliseconds.
|
|
23
|
-
#
|
|
24
|
-
# @return [Integer]
|
|
25
|
-
required :generated_at, Integer, api_name: :generatedAt
|
|
26
|
-
|
|
27
|
-
# @!method initialize(referrer:, referred_friend:, generated_at:)
|
|
28
|
-
#
|
|
29
|
-
# @param referrer [GrowsurfRuby::Models::ReferralFlowScreenshotsResponse::ReferralFlowScreenshot] Screenshot of the referral flow as a signed-in referrer sees it.
|
|
30
|
-
#
|
|
31
|
-
# @param referred_friend [GrowsurfRuby::Models::ReferralFlowScreenshotsResponse::ReferralFlowScreenshot] Screenshot of the referral flow as the referred friend sees it.
|
|
32
|
-
#
|
|
33
|
-
# @param generated_at [Integer] When the screenshots were generated, as a Unix timestamp in milliseconds.
|
|
34
|
-
|
|
35
|
-
class ReferralFlowScreenshot < GrowsurfRuby::Internal::Type::BaseModel
|
|
36
|
-
# @!attribute view
|
|
37
|
-
# The referral-flow view captured in this screenshot.
|
|
38
|
-
#
|
|
39
|
-
# @return [String]
|
|
40
|
-
required :view, String
|
|
41
|
-
|
|
42
|
-
# @!attribute url
|
|
43
|
-
# Image URL for the generated screenshot.
|
|
44
|
-
#
|
|
45
|
-
# @return [String]
|
|
46
|
-
required :url, String
|
|
47
|
-
|
|
48
|
-
# @!attribute width
|
|
49
|
-
# Screenshot viewport width in CSS pixels.
|
|
50
|
-
#
|
|
51
|
-
# @return [Integer]
|
|
52
|
-
required :width, Integer
|
|
53
|
-
|
|
54
|
-
# @!attribute height
|
|
55
|
-
# Screenshot viewport height in CSS pixels.
|
|
56
|
-
#
|
|
57
|
-
# @return [Integer]
|
|
58
|
-
required :height, Integer
|
|
59
|
-
|
|
60
|
-
# @!method initialize(view:, url:, width:, height:)
|
|
61
|
-
#
|
|
62
|
-
# @param view [String] The referral-flow view captured in this screenshot.
|
|
63
|
-
#
|
|
64
|
-
# @param url [String] Image URL for the generated screenshot.
|
|
65
|
-
#
|
|
66
|
-
# @param width [Integer] Screenshot viewport width in CSS pixels.
|
|
67
|
-
#
|
|
68
|
-
# @param height [Integer] Screenshot viewport height in CSS pixels.
|
|
69
|
-
end
|
|
70
|
-
end
|
|
71
|
-
end
|
|
72
|
-
end
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module GrowsurfRuby
|
|
4
|
-
module Models
|
|
5
|
-
class ReferralFlowScreenshotsResponse < GrowsurfRuby::Internal::Type::BaseModel
|
|
6
|
-
OrHash =
|
|
7
|
-
T.type_alias do
|
|
8
|
-
T.any(
|
|
9
|
-
GrowsurfRuby::Models::ReferralFlowScreenshotsResponse,
|
|
10
|
-
GrowsurfRuby::Internal::AnyHash
|
|
11
|
-
)
|
|
12
|
-
end
|
|
13
|
-
|
|
14
|
-
sig { returns(GrowsurfRuby::Models::ReferralFlowScreenshotsResponse::ReferralFlowScreenshot) }
|
|
15
|
-
attr_reader :referrer
|
|
16
|
-
|
|
17
|
-
sig do
|
|
18
|
-
params(
|
|
19
|
-
referrer: GrowsurfRuby::Models::ReferralFlowScreenshotsResponse::ReferralFlowScreenshot::OrHash
|
|
20
|
-
).void
|
|
21
|
-
end
|
|
22
|
-
attr_writer :referrer
|
|
23
|
-
|
|
24
|
-
sig { returns(GrowsurfRuby::Models::ReferralFlowScreenshotsResponse::ReferralFlowScreenshot) }
|
|
25
|
-
attr_reader :referred_friend
|
|
26
|
-
|
|
27
|
-
sig do
|
|
28
|
-
params(
|
|
29
|
-
referred_friend: GrowsurfRuby::Models::ReferralFlowScreenshotsResponse::ReferralFlowScreenshot::OrHash
|
|
30
|
-
).void
|
|
31
|
-
end
|
|
32
|
-
attr_writer :referred_friend
|
|
33
|
-
|
|
34
|
-
sig { returns(Integer) }
|
|
35
|
-
attr_accessor :generated_at
|
|
36
|
-
|
|
37
|
-
sig do
|
|
38
|
-
params(
|
|
39
|
-
referrer: GrowsurfRuby::Models::ReferralFlowScreenshotsResponse::ReferralFlowScreenshot::OrHash,
|
|
40
|
-
referred_friend: GrowsurfRuby::Models::ReferralFlowScreenshotsResponse::ReferralFlowScreenshot::OrHash,
|
|
41
|
-
generated_at: Integer
|
|
42
|
-
).returns(T.attached_class)
|
|
43
|
-
end
|
|
44
|
-
def self.new(referrer:, referred_friend:, generated_at:)
|
|
45
|
-
end
|
|
46
|
-
|
|
47
|
-
sig do
|
|
48
|
-
override.returns(
|
|
49
|
-
{
|
|
50
|
-
referrer: GrowsurfRuby::Models::ReferralFlowScreenshotsResponse::ReferralFlowScreenshot,
|
|
51
|
-
referred_friend: GrowsurfRuby::Models::ReferralFlowScreenshotsResponse::ReferralFlowScreenshot,
|
|
52
|
-
generated_at: Integer
|
|
53
|
-
}
|
|
54
|
-
)
|
|
55
|
-
end
|
|
56
|
-
def to_hash
|
|
57
|
-
end
|
|
58
|
-
|
|
59
|
-
class ReferralFlowScreenshot < GrowsurfRuby::Internal::Type::BaseModel
|
|
60
|
-
OrHash =
|
|
61
|
-
T.type_alias do
|
|
62
|
-
T.any(
|
|
63
|
-
GrowsurfRuby::Models::ReferralFlowScreenshotsResponse::ReferralFlowScreenshot,
|
|
64
|
-
GrowsurfRuby::Internal::AnyHash
|
|
65
|
-
)
|
|
66
|
-
end
|
|
67
|
-
|
|
68
|
-
sig { returns(String) }
|
|
69
|
-
attr_accessor :view
|
|
70
|
-
|
|
71
|
-
sig { returns(String) }
|
|
72
|
-
attr_accessor :url
|
|
73
|
-
|
|
74
|
-
sig { returns(Integer) }
|
|
75
|
-
attr_accessor :width
|
|
76
|
-
|
|
77
|
-
sig { returns(Integer) }
|
|
78
|
-
attr_accessor :height
|
|
79
|
-
|
|
80
|
-
sig do
|
|
81
|
-
params(view: String, url: String, width: Integer, height: Integer).returns(T.attached_class)
|
|
82
|
-
end
|
|
83
|
-
def self.new(view:, url:, width:, height:)
|
|
84
|
-
end
|
|
85
|
-
|
|
86
|
-
sig do
|
|
87
|
-
override.returns({view: String, url: String, width: Integer, height: Integer})
|
|
88
|
-
end
|
|
89
|
-
def to_hash
|
|
90
|
-
end
|
|
91
|
-
end
|
|
92
|
-
end
|
|
93
|
-
end
|
|
94
|
-
end
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
module GrowsurfRuby
|
|
2
|
-
module Models
|
|
3
|
-
type referral_flow_screenshots_response =
|
|
4
|
-
{
|
|
5
|
-
referrer: GrowsurfRuby::Models::ReferralFlowScreenshotsResponse::ReferralFlowScreenshot,
|
|
6
|
-
referred_friend: GrowsurfRuby::Models::ReferralFlowScreenshotsResponse::ReferralFlowScreenshot,
|
|
7
|
-
generated_at: Integer
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
class ReferralFlowScreenshotsResponse < GrowsurfRuby::Internal::Type::BaseModel
|
|
11
|
-
attr_accessor referrer: GrowsurfRuby::Models::ReferralFlowScreenshotsResponse::ReferralFlowScreenshot
|
|
12
|
-
|
|
13
|
-
attr_accessor referred_friend: GrowsurfRuby::Models::ReferralFlowScreenshotsResponse::ReferralFlowScreenshot
|
|
14
|
-
|
|
15
|
-
attr_accessor generated_at: Integer
|
|
16
|
-
|
|
17
|
-
def initialize: (
|
|
18
|
-
referrer: GrowsurfRuby::Models::ReferralFlowScreenshotsResponse::ReferralFlowScreenshot,
|
|
19
|
-
referred_friend: GrowsurfRuby::Models::ReferralFlowScreenshotsResponse::ReferralFlowScreenshot,
|
|
20
|
-
generated_at: Integer
|
|
21
|
-
) -> void
|
|
22
|
-
|
|
23
|
-
def to_hash: -> {
|
|
24
|
-
referrer: GrowsurfRuby::Models::ReferralFlowScreenshotsResponse::ReferralFlowScreenshot,
|
|
25
|
-
referred_friend: GrowsurfRuby::Models::ReferralFlowScreenshotsResponse::ReferralFlowScreenshot,
|
|
26
|
-
generated_at: Integer
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
class ReferralFlowScreenshot < GrowsurfRuby::Internal::Type::BaseModel
|
|
30
|
-
attr_accessor view: String
|
|
31
|
-
|
|
32
|
-
attr_accessor url: String
|
|
33
|
-
|
|
34
|
-
attr_accessor width: Integer
|
|
35
|
-
|
|
36
|
-
attr_accessor height: Integer
|
|
37
|
-
|
|
38
|
-
def initialize: (
|
|
39
|
-
view: String,
|
|
40
|
-
url: String,
|
|
41
|
-
width: Integer,
|
|
42
|
-
height: Integer
|
|
43
|
-
) -> void
|
|
44
|
-
|
|
45
|
-
def to_hash: -> {
|
|
46
|
-
view: String,
|
|
47
|
-
url: String,
|
|
48
|
-
width: Integer,
|
|
49
|
-
height: Integer
|
|
50
|
-
}
|
|
51
|
-
end
|
|
52
|
-
end
|
|
53
|
-
end
|
|
54
|
-
end
|