strongmind-platform-sdk 3.26.7 → 3.26.9

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: 63955cfe92e5bc10c280fb00c1c3b2582785e99e58c0a8159735a7ee51ed25b3
4
- data.tar.gz: d9cb8046bf58fad2543aa5cc399fda3ed8e4e10c7d2c98baf04b5c4e586b2ed6
3
+ metadata.gz: 6eda5712735defbfe2be9106cb54045862303db53f26c0372a4b9fbd661617d8
4
+ data.tar.gz: ade026965cf2941f11d113b1528b65b99ed6e41e473089b927c94c1e9c6c9c91
5
5
  SHA512:
6
- metadata.gz: a29bd4200320efb5f78e6a7f797fb86d00ade9a2c0d6f53482ca99b1323f4e82a19004865d460a154bb386a9c45c96bd457751f1d475284314df6b157812dc16
7
- data.tar.gz: 0234207fc5234a566038342c93d9617c76b85e22d568e4ef943a32eb597101b7b6be0bcd8adfe4519c6456e9a9a1d12506780661be034de9bca37429c1fa964a
6
+ metadata.gz: cf24d50ece3268b3adcf203ae77ec53c47517b2f33ca0e727932116aff40d586ad1f57140b526b2f46147f1bffc6b75c8a7590c40ac754a3492a1d33003167a5
7
+ data.tar.gz: 8f6ba3baa1401cee21086b76a64ec19e21c668276622d2a469adf8de86a3abae662ee3d0e17477d35f243b30e19fce7f57c7e4674cb20498acbbd7315e290ad9
@@ -53,6 +53,10 @@ module PlatformSdk
53
53
  get_payload("/api/Accounts/?username=#{username}")
54
54
  end
55
55
 
56
+ def update_profile(account_id, profile_params)
57
+ patch_payload("/api/accounts/#{account_id}/profile", profile_params)
58
+ end
59
+
56
60
  def get_payload(path)
57
61
  with_rescue do
58
62
  response = @conn.get(path)
@@ -76,6 +80,20 @@ module PlatformSdk
76
80
  response.body
77
81
  end
78
82
  end
83
+
84
+ def patch_payload(path, body)
85
+ with_rescue do
86
+ response = @conn.patch(path, body)
87
+ response.body
88
+ end
89
+ end
90
+
91
+ def deactivate_account(account_id)
92
+ with_rescue do
93
+ response = @conn.patch("/api/Accounts/#{account_id}", { isActive: false })
94
+ response.body
95
+ end
96
+ end
79
97
  end
80
98
 
81
99
  # Client for getting auth tokens from identity server
@@ -3,7 +3,7 @@
3
3
  module PlatformSdk
4
4
  MAJOR = 3
5
5
  MINOR = 26
6
- PATCH = 7
6
+ PATCH = 9
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.7
4
+ version: 3.26.9
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-16 00:00:00.000000000 Z
11
+ date: 2025-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday