strongmind-platform-sdk 3.26.8 → 3.26.10

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: 306f65cd609b20e89bae206aad8ef3ce71d62a074cf5a89c2c7372024e8b1029
4
- data.tar.gz: eaf8b537d146fb66daa777c830ad81af145bc2ddc01c0d4622ddd5dcf2e0b295
3
+ metadata.gz: 02eb1e427b7b709dc30e9c62ad349dcee2b29820cecd3b726ea5728291cbfb34
4
+ data.tar.gz: 7029a2b17345e78567bd4c582ac2934f530da0c17747671abf32b536085f82e1
5
5
  SHA512:
6
- metadata.gz: d7d04c865f4d562f2214efa52a0e06e4ca6aeaab863b0cb4b6b096d5f6ba13e037741663aaf4b21c9a487ad3dd4f60fb804daa05d1d3a6dd42104ee3df34b2ba
7
- data.tar.gz: 50dcfbf5ff1752a3186e90153468710a730f750b57ec9cd6567fba77d76cda9474fb77053fe700408e6c7a92d25c01b280f22a9f0c2f2eef328ab02154e524bc
6
+ metadata.gz: '07896551e2abdc9fe69991484ce13ef7856316ead62487d619f8699f434e74fe3e44d473c4b485c9160df5f15b6ffa4cecaac4e40b4178a43c9858f8c52b65f8'
7
+ data.tar.gz: 226e664b672c51fa5c69439abb05ce22b42f471751112d3bccb48820ef743f3fa8d0b29cd0a0b1766375c40039a256f697f38eda61615b36ab9b778376c2a28d
@@ -35,6 +35,10 @@ module PlatformSdk
35
35
  get_payload("/api/Accounts/#{account_id}/PasswordStatus")
36
36
  end
37
37
 
38
+ def get_account_by_id(account_id)
39
+ get_payload("/api/Accounts/#{account_id}")
40
+ end
41
+
38
42
  def password_reset(account_id, return_url = nil, send_email: true, include_username: true)
39
43
  query_params = {
40
44
  sendEmail: send_email,
@@ -53,6 +57,10 @@ module PlatformSdk
53
57
  get_payload("/api/Accounts/?username=#{username}")
54
58
  end
55
59
 
60
+ def update_profile(account_id, profile_params)
61
+ patch_payload("/api/accounts/#{account_id}/profile", profile_params)
62
+ end
63
+
56
64
  def get_payload(path)
57
65
  with_rescue do
58
66
  response = @conn.get(path)
@@ -77,6 +85,13 @@ module PlatformSdk
77
85
  end
78
86
  end
79
87
 
88
+ def patch_payload(path, body)
89
+ with_rescue do
90
+ response = @conn.patch(path, body)
91
+ response.body
92
+ end
93
+ end
94
+
80
95
  def deactivate_account(account_id)
81
96
  with_rescue do
82
97
  response = @conn.patch("/api/Accounts/#{account_id}", { isActive: false })
@@ -3,7 +3,7 @@
3
3
  module PlatformSdk
4
4
  MAJOR = 3
5
5
  MINOR = 26
6
- PATCH = 8
6
+ PATCH = 10
7
7
 
8
8
  VERSION = "#{PlatformSdk::MAJOR}.#{PlatformSdk::MINOR}.#{PlatformSdk::PATCH}"
9
9
  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.26.8
4
+ version: 3.26.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Platform Team
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-05-29 00:00:00.000000000 Z
11
+ date: 2025-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday