strongmind-platform-sdk 3.6.1 → 3.6.2

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: 1a5924d25efa3fb9a024f928a2147f7daeab883b9b949dc53c7d6fcc2719bc84
4
- data.tar.gz: 547168e174f5fbe3298de82ef484785cd78a54b357f5a33ad0edd331efd1b075
3
+ metadata.gz: bbbc5e89407050107a7f93fda4da5973285678206ed02d0df347ea771e37ca52
4
+ data.tar.gz: 75d975de13fae4b6d3c39eb35c060015ce677210e9e050ef9e1ab750d7eb24d8
5
5
  SHA512:
6
- metadata.gz: 05df864319e1353e68574592db3c34cce5ac856e1e855babc402512a192fa1094eb8be962bc40f81adb760e215953280f99bed2ddbca436e95848c9e83727e84
7
- data.tar.gz: 7bca6c93b9fcac1bc840c4ffe9199bbb39cc11267463893a1b53c57665be5fbdf058bb1b7efb82216dbfa7f08be3e4dae2bffbd76273173c6b8cb82c96df0e85
6
+ metadata.gz: 7a7a06283c00ab7c030948ed2ed6e8b0e3ad79144d5ed0642059b12516381a7a98967999d895b471547ca1ef3773655d576acae3e2a80bca988acfb101bf154b
7
+ data.tar.gz: 5091d096ba70556ec293f36931295f001394df2a19e9c5659564c561aafd6224307567e177e93f0dbe3fab23d96c6e516e321326f8251d244ceb298b1680edbf
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- strongmind-platform-sdk (3.6.1)
4
+ strongmind-platform-sdk (3.6.2)
5
5
  aws-sdk-secretsmanager (~> 1.66)
6
6
  devise
7
7
  faraday (~> 2.5, >= 2.5.2)
@@ -40,8 +40,8 @@ GEM
40
40
  ast (2.4.2)
41
41
  attr_required (1.0.1)
42
42
  aws-eventstream (1.2.0)
43
- aws-partitions (1.847.0)
44
- aws-sdk-core (3.186.0)
43
+ aws-partitions (1.853.0)
44
+ aws-sdk-core (3.187.0)
45
45
  aws-eventstream (~> 1, >= 1.0.2)
46
46
  aws-partitions (~> 1, >= 1.651.0)
47
47
  aws-sigv4 (~> 1.5)
@@ -141,13 +141,30 @@ module PlatformSdk
141
141
  response.body
142
142
  end
143
143
 
144
- def analytics_sessions(session_id)
144
+ def analytics_session(session_id)
145
145
  raise ArgumentError, "session_id must have a value" if session_id.nil?
146
146
 
147
147
  response = get("/analytics/sessions/#{session_id}")
148
148
  response.body
149
149
  end
150
150
 
151
+ # Get a list of Session Analytics accessible by the account associated with your API key
152
+ # @param [Hash] opts the optional parameters
153
+ # @option opts [Integer] :page_number **(Optional)** - The page number of the items to return. The number of items in a page is controlled by the `pageSize` parameter.
154
+ # @option opts [Integer] :page_size **(Optional)** - The max number of items to return. Setting a larger `pageSize` may result in a longer querying times
155
+ # @option opts [String] :filters **(Optional)** - A base64 encoded string of the filters you wish to apply to the query. See `sessionsFilterSchema` for details on all the filters applicable to your query
156
+ # @return [JSON] A list of Pencil Spaces users
157
+ def analytics_sessions(opts = {})
158
+ # query parameters
159
+ query_params = opts[:query_params] || {}
160
+ query_params[:pageNumber] = opts[:page_number] unless opts[:page_number].nil?
161
+ query_params[:pageSize] = opts[:page_size] unless opts[:page_size].nil?
162
+ query_params[:filters] = Base64.strict_encode64(opts[:filters].to_json) unless opts[:filters].nil?
163
+
164
+ response = get("/analytics/sessions", query_params)
165
+ response.body
166
+ end
167
+
151
168
  private
152
169
 
153
170
  def build_connection
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PlatformSdk
4
- VERSION = "3.6.1"
4
+ VERSION = "3.6.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: strongmind-platform-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.6.1
4
+ version: 3.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Platform Team
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-11-22 00:00:00.000000000 Z
11
+ date: 2023-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday