pingram 1.0.23 → 1.0.24

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: c79d2c7d00bb7415ce85ef3c6ff7a9548fabf87d1586157a21f8585ee0deacd3
4
- data.tar.gz: f45b6dc9e550903fdf53c8a9cb08249b4046416da6c3c9f18d55eb76ada341f1
3
+ metadata.gz: 8342611fb252a9cbd5796951afccee8bb864214fed143b49ac8cd6df1007a424
4
+ data.tar.gz: eff6dd67d22316c77f7286a902128f61951a153d4ed0a6f48de5b46417428cd0
5
5
  SHA512:
6
- metadata.gz: afc6d61c2ea6dc821679aad06311e9cbfa7d351931853a696811dc6c4faaef70b8167ed832618cfc852565cbcbf4838ba0af844ec05b2380ee3263dc76f5ece0
7
- data.tar.gz: a043e1a031ac0004779dcc6ea3caaf9d9a4a98b39fa1f775133c2e3a1ab97d0dec312757dec5f56b9d5480ded5da861b4ec86174c51f2bbc42371904d6b0efb4
6
+ metadata.gz: f556eaf655a35284f1b0a2801d04371077d88c5425a2046e4f1568cdbe528e7ce8c148b9312843459aa693545a3f62fccd26a1fb3016041c057753720c88309f
7
+ data.tar.gz: 5415f73f74026920ff03ad3d92d1f2f9d742f93e7e9c4997d0241a0da85f74b8cf2c295cbb007872d80d2618246b66fdfe93d8b4b0bf40c3a8f2ba86c4efe11e
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pingram (1.0.23)
4
+ pingram (1.0.24)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
@@ -19,78 +19,6 @@ module Pingram
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # Complete Slack OAuth flow and store access token for user
23
- # @param user_id [String] User ID
24
- # @param slack_oauth_request [SlackOauthRequest]
25
- # @param [Hash] opts the optional parameters
26
- # @return [nil]
27
- def user_generate_slack_oauth_path(user_id, slack_oauth_request, opts = {})
28
- user_generate_slack_oauth_path_with_http_info(user_id, slack_oauth_request, opts)
29
- nil
30
- end
31
-
32
- # Complete Slack OAuth flow and store access token for user
33
- # @param user_id [String] User ID
34
- # @param slack_oauth_request [SlackOauthRequest]
35
- # @param [Hash] opts the optional parameters
36
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
37
- def user_generate_slack_oauth_path_with_http_info(user_id, slack_oauth_request, opts = {})
38
- if @api_client.config.debugging
39
- @api_client.config.logger.debug 'Calling API: UserApi.user_generate_slack_oauth_path ...'
40
- end
41
- # verify the required parameter 'user_id' is set
42
- if @api_client.config.client_side_validation && user_id.nil?
43
- fail ArgumentError, "Missing the required parameter 'user_id' when calling UserApi.user_generate_slack_oauth_path"
44
- end
45
- # verify the required parameter 'slack_oauth_request' is set
46
- if @api_client.config.client_side_validation && slack_oauth_request.nil?
47
- fail ArgumentError, "Missing the required parameter 'slack_oauth_request' when calling UserApi.user_generate_slack_oauth_path"
48
- end
49
- # resource path
50
- local_var_path = '/users/{userId}/slack-oauth'.sub('{' + 'userId' + '}', CGI.escape(user_id.to_s))
51
-
52
- # query parameters
53
- query_params = opts[:query_params] || {}
54
-
55
- # header parameters
56
- header_params = opts[:header_params] || {}
57
- # HTTP header 'Accept' (if needed)
58
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
59
- # HTTP header 'Content-Type'
60
- content_type = @api_client.select_header_content_type(['application/json'])
61
- if !content_type.nil?
62
- header_params['Content-Type'] = content_type
63
- end
64
-
65
- # form parameters
66
- form_params = opts[:form_params] || {}
67
-
68
- # http body (model)
69
- post_body = opts[:debug_body] || @api_client.object_to_http_body(slack_oauth_request)
70
-
71
- # return_type
72
- return_type = opts[:debug_return_type]
73
-
74
- # auth_names (apiKey last so Bearer wins when multiple schemes set Authorization)
75
- auth_names = opts[:debug_auth_names] || ['endUserHashed', 'endUser', 'clientCredentials', 'apiKey']
76
-
77
- new_options = opts.merge(
78
- :operation => :"UserApi.user_generate_slack_oauth_path",
79
- :header_params => header_params,
80
- :query_params => query_params,
81
- :form_params => form_params,
82
- :body => post_body,
83
- :auth_names => auth_names,
84
- :return_type => return_type
85
- )
86
-
87
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
88
- if @api_client.config.debugging
89
- @api_client.config.logger.debug "API called: UserApi#user_generate_slack_oauth_path\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
90
- end
91
- return data, status_code, headers
92
- end
93
-
94
22
  # Get account-level metadata including logo, VAPID key, and web push status
95
23
  # @param [Hash] opts the optional parameters
96
24
  # @return [GetAccountMetadataResponse]
@@ -146,67 +74,6 @@ module Pingram
146
74
  return data, status_code, headers
147
75
  end
148
76
 
149
- # Get list of Slack channels and users for the authenticated user
150
- # @param user_id [String] User ID
151
- # @param [Hash] opts the optional parameters
152
- # @return [nil]
153
- def user_get_available_slack_channels(user_id, opts = {})
154
- user_get_available_slack_channels_with_http_info(user_id, opts)
155
- nil
156
- end
157
-
158
- # Get list of Slack channels and users for the authenticated user
159
- # @param user_id [String] User ID
160
- # @param [Hash] opts the optional parameters
161
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
162
- def user_get_available_slack_channels_with_http_info(user_id, opts = {})
163
- if @api_client.config.debugging
164
- @api_client.config.logger.debug 'Calling API: UserApi.user_get_available_slack_channels ...'
165
- end
166
- # verify the required parameter 'user_id' is set
167
- if @api_client.config.client_side_validation && user_id.nil?
168
- fail ArgumentError, "Missing the required parameter 'user_id' when calling UserApi.user_get_available_slack_channels"
169
- end
170
- # resource path
171
- local_var_path = '/users/{userId}/slack-channels'.sub('{' + 'userId' + '}', CGI.escape(user_id.to_s))
172
-
173
- # query parameters
174
- query_params = opts[:query_params] || {}
175
-
176
- # header parameters
177
- header_params = opts[:header_params] || {}
178
- # HTTP header 'Accept' (if needed)
179
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
180
-
181
- # form parameters
182
- form_params = opts[:form_params] || {}
183
-
184
- # http body (model)
185
- post_body = opts[:debug_body]
186
-
187
- # return_type
188
- return_type = opts[:debug_return_type]
189
-
190
- # auth_names (apiKey last so Bearer wins when multiple schemes set Authorization)
191
- auth_names = opts[:debug_auth_names] || ['endUserHashed', 'endUser', 'clientCredentials', 'apiKey']
192
-
193
- new_options = opts.merge(
194
- :operation => :"UserApi.user_get_available_slack_channels",
195
- :header_params => header_params,
196
- :query_params => query_params,
197
- :form_params => form_params,
198
- :body => post_body,
199
- :auth_names => auth_names,
200
- :return_type => return_type
201
- )
202
-
203
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
204
- if @api_client.config.debugging
205
- @api_client.config.logger.debug "API called: UserApi#user_get_available_slack_channels\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
206
- end
207
- return data, status_code, headers
208
- end
209
-
210
77
  # Get in-app notifications for a user
211
78
  # @param [Hash] opts the optional parameters
212
79
  # @option opts [String] :before Timestamp or ISO date to fetch notifications before
@@ -32,7 +32,7 @@ module Pingram
32
32
  # @option config [Configuration] Configuration for initializing the object, default to Configuration.default
33
33
  def initialize(config = Configuration.default)
34
34
  @config = config
35
- @user_agent = "pingram-ruby/1.0.23"
35
+ @user_agent = "pingram-ruby/1.0.24"
36
36
  @default_headers = {
37
37
  'Content-Type' => 'application/json',
38
38
  'User-Agent' => @user_agent
@@ -11,5 +11,5 @@ Generator version: 7.19.0
11
11
  =end
12
12
 
13
13
  module Pingram
14
- VERSION = '1.0.23'
14
+ VERSION = '1.0.24'
15
15
  end
data/lib/pingram.rb CHANGED
@@ -258,7 +258,6 @@ require 'pingram/models/sender_post_body_web_push'
258
258
  require 'pingram/models/sender_post_response'
259
259
  require 'pingram/models/set_default_template_request'
260
260
  require 'pingram/models/slack_interactivity_response'
261
- require 'pingram/models/slack_oauth_request'
262
261
  require 'pingram/models/success_response'
263
262
  require 'pingram/models/supabase_configure_request'
264
263
  require 'pingram/models/supabase_configure_response'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pingram
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.23
4
+ version: 1.0.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pingram
@@ -330,7 +330,6 @@ files:
330
330
  - lib/pingram/models/sender_post_response.rb
331
331
  - lib/pingram/models/set_default_template_request.rb
332
332
  - lib/pingram/models/slack_interactivity_response.rb
333
- - lib/pingram/models/slack_oauth_request.rb
334
333
  - lib/pingram/models/success_response.rb
335
334
  - lib/pingram/models/supabase_configure_request.rb
336
335
  - lib/pingram/models/supabase_configure_response.rb
@@ -1,190 +0,0 @@
1
- =begin
2
- #Pingram
3
-
4
- #Internal API for notification delivery and management
5
-
6
- The version of the OpenAPI document: 1.0.0
7
-
8
- Generated by: https://openapi-generator.tech
9
- Generator version: 7.19.0
10
-
11
- =end
12
-
13
- require 'date'
14
- require 'time'
15
-
16
- module Pingram
17
- class SlackOauthRequest < ApiModelBase
18
- attr_accessor :code
19
-
20
- attr_accessor :redirect_uri
21
-
22
- # Attribute mapping from ruby-style variable name to JSON key.
23
- def self.attribute_map
24
- {
25
- :'code' => :'code',
26
- :'redirect_uri' => :'redirect_uri'
27
- }
28
- end
29
-
30
- # Returns attribute mapping this model knows about
31
- def self.acceptable_attribute_map
32
- attribute_map
33
- end
34
-
35
- # Returns all the JSON keys this model knows about
36
- def self.acceptable_attributes
37
- acceptable_attribute_map.values
38
- end
39
-
40
- # Attribute type mapping.
41
- def self.openapi_types
42
- {
43
- :'code' => :'String',
44
- :'redirect_uri' => :'String'
45
- }
46
- end
47
-
48
- # List of attributes with nullable: true
49
- def self.openapi_nullable
50
- Set.new([
51
- ])
52
- end
53
-
54
- # Initializes the object
55
- # @param [Hash] attributes Model attributes in the form of hash
56
- def initialize(attributes = {})
57
- if (!attributes.is_a?(Hash))
58
- fail ArgumentError, "The input argument (attributes) must be a hash in `Pingram::SlackOauthRequest` initialize method"
59
- end
60
-
61
- # check to see if the attribute exists and convert string to symbol for hash key
62
- acceptable_attribute_map = self.class.acceptable_attribute_map
63
- attributes = attributes.each_with_object({}) { |(k, v), h|
64
- if (!acceptable_attribute_map.key?(k.to_sym))
65
- fail ArgumentError, "`#{k}` is not a valid attribute in `Pingram::SlackOauthRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
66
- end
67
- h[k.to_sym] = v
68
- }
69
-
70
- if attributes.key?(:'code')
71
- self.code = attributes[:'code']
72
- else
73
- self.code = nil
74
- end
75
-
76
- if attributes.key?(:'redirect_uri')
77
- self.redirect_uri = attributes[:'redirect_uri']
78
- else
79
- self.redirect_uri = nil
80
- end
81
- end
82
-
83
- # Show invalid properties with the reasons. Usually used together with valid?
84
- # @return Array for valid properties with the reasons
85
- def list_invalid_properties
86
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
87
- invalid_properties = Array.new
88
- if @code.nil?
89
- invalid_properties.push('invalid value for "code", code cannot be nil.')
90
- end
91
-
92
- if @redirect_uri.nil?
93
- invalid_properties.push('invalid value for "redirect_uri", redirect_uri cannot be nil.')
94
- end
95
-
96
- invalid_properties
97
- end
98
-
99
- # Check to see if the all the properties in the model are valid
100
- # @return true if the model is valid
101
- def valid?
102
- warn '[DEPRECATED] the `valid?` method is obsolete'
103
- return false if @code.nil?
104
- return false if @redirect_uri.nil?
105
- true
106
- end
107
-
108
- # Custom attribute writer method with validation
109
- # @param [Object] code Value to be assigned
110
- def code=(code)
111
- if code.nil?
112
- fail ArgumentError, 'code cannot be nil'
113
- end
114
-
115
- @code = code
116
- end
117
-
118
- # Custom attribute writer method with validation
119
- # @param [Object] redirect_uri Value to be assigned
120
- def redirect_uri=(redirect_uri)
121
- if redirect_uri.nil?
122
- fail ArgumentError, 'redirect_uri cannot be nil'
123
- end
124
-
125
- @redirect_uri = redirect_uri
126
- end
127
-
128
- # Checks equality by comparing each attribute.
129
- # @param [Object] Object to be compared
130
- def ==(o)
131
- return true if self.equal?(o)
132
- self.class == o.class &&
133
- code == o.code &&
134
- redirect_uri == o.redirect_uri
135
- end
136
-
137
- # @see the `==` method
138
- # @param [Object] Object to be compared
139
- def eql?(o)
140
- self == o
141
- end
142
-
143
- # Calculates hash code according to all attributes.
144
- # @return [Integer] Hash code
145
- def hash
146
- [code, redirect_uri].hash
147
- end
148
-
149
- # Builds the object from hash
150
- # @param [Hash] attributes Model attributes in the form of hash
151
- # @return [Object] Returns the model itself
152
- def self.build_from_hash(attributes)
153
- return nil unless attributes.is_a?(Hash)
154
- attributes = attributes.transform_keys(&:to_sym)
155
- transformed_hash = {}
156
- openapi_types.each_pair do |key, type|
157
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
158
- transformed_hash["#{key}"] = nil
159
- elsif type =~ /\AArray<(.*)>/i
160
- # check to ensure the input is an array given that the attribute
161
- # is documented as an array but the input is not
162
- if attributes[attribute_map[key]].is_a?(Array)
163
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
164
- end
165
- elsif !attributes[attribute_map[key]].nil?
166
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
167
- end
168
- end
169
- new(transformed_hash)
170
- end
171
-
172
- # Returns the object in the form of hash
173
- # @return [Hash] Returns the object in the form of hash
174
- def to_hash
175
- hash = {}
176
- self.class.attribute_map.each_pair do |attr, param|
177
- value = self.send(attr)
178
- if value.nil?
179
- is_nullable = self.class.openapi_nullable.include?(attr)
180
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
181
- end
182
-
183
- hash[param] = _to_hash(value)
184
- end
185
- hash
186
- end
187
-
188
- end
189
-
190
- end