strongmind-platform-sdk 3.26.4 → 3.26.6
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 +4 -4
- data/lib/platform_sdk/identity/clients.rb +45 -2
- data/lib/platform_sdk/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f48486c5b5425d16fcfdfa05e23f6ad72733f27bce78203e70784cc991043d07
|
4
|
+
data.tar.gz: 76cbe1c8e4e278c45b6464eea4a94f9b4a3446dacdd82988424cf77b6e08adf4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bbb8ec06e31a1b552824a5e036050d03e324d17e072f2749d268db985abce36d3f06c698e924c899906edeb3d2ec8afb7df85848ea15b855271bfb8ec069abbc
|
7
|
+
data.tar.gz: 3d610c4b5501e1b4f0d09af91debe314e2e9a9bf5353d3cabc32219f88a5cd9e216943bbaf96d61e435d75791e754a669ab066dc800dd8dec24030a286b2d613
|
@@ -23,9 +23,52 @@ module PlatformSdk
|
|
23
23
|
post_payload('/api/accounts/WithProfile', user_params)
|
24
24
|
end
|
25
25
|
|
26
|
-
def
|
26
|
+
def terms_and_conditions
|
27
|
+
get_payload('/api/TermsAndConditions')
|
28
|
+
end
|
29
|
+
|
30
|
+
def accept_terms_and_conditions(terms_and_conditions_id, account_id)
|
31
|
+
put_payload("/api/TermsAndConditions/#{terms_and_conditions_id}/Accounts/#{account_id}", {})
|
32
|
+
end
|
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 get_payload(path)
|
27
53
|
with_rescue do
|
28
|
-
response = @conn.
|
54
|
+
response = @conn.get(path)
|
55
|
+
response.body
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
def post_payload(path, body, query_params = {})
|
60
|
+
with_rescue do
|
61
|
+
response = @conn.post(path) do |req|
|
62
|
+
req.params = query_params unless query_params.empty?
|
63
|
+
req.body = body
|
64
|
+
end
|
65
|
+
response.body
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
def put_payload(path, body)
|
70
|
+
with_rescue do
|
71
|
+
response = @conn.put(path, body)
|
29
72
|
response.body
|
30
73
|
end
|
31
74
|
end
|
data/lib/platform_sdk/version.rb
CHANGED
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.
|
4
|
+
version: 3.26.6
|
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-
|
11
|
+
date: 2025-04-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|