strongmind-platform-sdk 3.26.6 → 3.26.8

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: f48486c5b5425d16fcfdfa05e23f6ad72733f27bce78203e70784cc991043d07
4
- data.tar.gz: 76cbe1c8e4e278c45b6464eea4a94f9b4a3446dacdd82988424cf77b6e08adf4
3
+ metadata.gz: 306f65cd609b20e89bae206aad8ef3ce71d62a074cf5a89c2c7372024e8b1029
4
+ data.tar.gz: eaf8b537d146fb66daa777c830ad81af145bc2ddc01c0d4622ddd5dcf2e0b295
5
5
  SHA512:
6
- metadata.gz: bbb8ec06e31a1b552824a5e036050d03e324d17e072f2749d268db985abce36d3f06c698e924c899906edeb3d2ec8afb7df85848ea15b855271bfb8ec069abbc
7
- data.tar.gz: 3d610c4b5501e1b4f0d09af91debe314e2e9a9bf5353d3cabc32219f88a5cd9e216943bbaf96d61e435d75791e754a669ab066dc800dd8dec24030a286b2d613
6
+ metadata.gz: d7d04c865f4d562f2214efa52a0e06e4ca6aeaab863b0cb4b6b096d5f6ba13e037741663aaf4b21c9a487ad3dd4f60fb804daa05d1d3a6dd42104ee3df34b2ba
7
+ data.tar.gz: 50dcfbf5ff1752a3186e90153468710a730f750b57ec9cd6567fba77d76cda9474fb77053fe700408e6c7a92d25c01b280f22a9f0c2f2eef328ab02154e524bc
@@ -49,6 +49,10 @@ module PlatformSdk
49
49
  post_payload('/api/Accounts/SendReminderEmail', JSON.dump(account_id))
50
50
  end
51
51
 
52
+ def find_account_by_username(username)
53
+ get_payload("/api/Accounts/?username=#{username}")
54
+ end
55
+
52
56
  def get_payload(path)
53
57
  with_rescue do
54
58
  response = @conn.get(path)
@@ -72,6 +76,13 @@ module PlatformSdk
72
76
  response.body
73
77
  end
74
78
  end
79
+
80
+ def deactivate_account(account_id)
81
+ with_rescue do
82
+ response = @conn.patch("/api/Accounts/#{account_id}", { isActive: false })
83
+ response.body
84
+ end
85
+ end
75
86
  end
76
87
 
77
88
  # 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 = 6
6
+ PATCH = 8
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.6
4
+ version: 3.26.8
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-04-25 00:00:00.000000000 Z
11
+ date: 2025-05-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday