strongmind-platform-sdk 3.26.5 → 3.26.7

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: 981fc3aeb31c85b382bbc533ec08f2714cf3c9030debdab1b6ec4b4e04516141
4
- data.tar.gz: ea72d8ba79746035c04efd151dc0aeabacceec4dd9bb9f5cee39cd7811063896
3
+ metadata.gz: 63955cfe92e5bc10c280fb00c1c3b2582785e99e58c0a8159735a7ee51ed25b3
4
+ data.tar.gz: d9cb8046bf58fad2543aa5cc399fda3ed8e4e10c7d2c98baf04b5c4e586b2ed6
5
5
  SHA512:
6
- metadata.gz: c1e9642e308fb94841cab96eb1bb41b99f287cd387fcdab643f3345781f1483a4b9214a8e4e84cb1304ad10ea345f4762f82b712276c250d717807fbcd0fdce2
7
- data.tar.gz: fdb159ef55312ce4bd3302f6372f4cd41758a8ea7bb1bf6ff3393f85a25b659652844e5ee1857cae5d01e423948bdd9941813d3ab64d1d11ff774af525c2a004
6
+ metadata.gz: a29bd4200320efb5f78e6a7f797fb86d00ade9a2c0d6f53482ca99b1323f4e82a19004865d460a154bb386a9c45c96bd457751f1d475284314df6b157812dc16
7
+ data.tar.gz: 0234207fc5234a566038342c93d9617c76b85e22d568e4ef943a32eb597101b7b6be0bcd8adfe4519c6456e9a9a1d12506780661be034de9bca37429c1fa964a
@@ -31,6 +31,28 @@ module PlatformSdk
31
31
  put_payload("/api/TermsAndConditions/#{terms_and_conditions_id}/Accounts/#{account_id}", {})
32
32
  end
33
33
 
34
+ def password_status(account_id)
35
+ get_payload("/api/Accounts/#{account_id}/PasswordStatus")
36
+ end
37
+
38
+ def password_reset(account_id, return_url = nil, send_email: true, include_username: true)
39
+ query_params = {
40
+ sendEmail: send_email,
41
+ includeUsername: include_username
42
+ }
43
+ query_params[:returnUrl] = return_url if return_url
44
+
45
+ post_payload("/api/Accounts/#{account_id}/PasswordReset", {}, query_params)
46
+ end
47
+
48
+ def send_reminder_email(account_id)
49
+ post_payload('/api/Accounts/SendReminderEmail', JSON.dump(account_id))
50
+ end
51
+
52
+ def find_account_by_username(username)
53
+ get_payload("/api/Accounts/?username=#{username}")
54
+ end
55
+
34
56
  def get_payload(path)
35
57
  with_rescue do
36
58
  response = @conn.get(path)
@@ -38,9 +60,12 @@ module PlatformSdk
38
60
  end
39
61
  end
40
62
 
41
- def post_payload(path, body)
63
+ def post_payload(path, body, query_params = {})
42
64
  with_rescue do
43
- response = @conn.post(path, body)
65
+ response = @conn.post(path) do |req|
66
+ req.params = query_params unless query_params.empty?
67
+ req.body = body
68
+ end
44
69
  response.body
45
70
  end
46
71
  end
@@ -3,7 +3,7 @@
3
3
  module PlatformSdk
4
4
  MAJOR = 3
5
5
  MINOR = 26
6
- PATCH = 5
6
+ PATCH = 7
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.5
4
+ version: 3.26.7
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-21 00:00:00.000000000 Z
11
+ date: 2025-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday