strongmind-platform-sdk 3.6.0 → 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: b1180ae4d7fffaa434e061d60776dd3a6f422ffca61e1fda0eb3aaad557a078e
4
- data.tar.gz: 0cf58e43f933a8fdb77e2f89d906e71bf62260fa7aee34807d59bfd6758d225f
3
+ metadata.gz: bbbc5e89407050107a7f93fda4da5973285678206ed02d0df347ea771e37ca52
4
+ data.tar.gz: 75d975de13fae4b6d3c39eb35c060015ce677210e9e050ef9e1ab750d7eb24d8
5
5
  SHA512:
6
- metadata.gz: 3db1289c8403879c69ec758f704b9f0bf326f67e18c9fb00a096188b57f3b277bf384b8c6f8ddcc7961f60c32be297d93c192fdff8002676be59daded7493596
7
- data.tar.gz: '048bf2def9fcb389790ad39def860225c0787673d7df4b154181536d604966a9e132299f21b5d9957c5a83041b9ab2e36cdd30d0876c20ad9d9f0abecc67d549'
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.0)
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,10 +141,27 @@ 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
- response = get("/analytics/sessions/#{session_id}", {}.to_json)
147
+ response = get("/analytics/sessions/#{session_id}")
148
+ response.body
149
+ end
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)
148
165
  response.body
149
166
  end
150
167
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PlatformSdk
4
- VERSION = "3.6.0"
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.0
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-21 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