ding_sdk 0.8.6 → 0.8.8
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b90c26b179d2e3fcf40acb3f36844609181d1649cea3ee72e6805a50177d213
|
4
|
+
data.tar.gz: 6fe8df0393b4dfc230e6e7d1a08c9e44ce0ef91ab3f2f91c9a67d7e4b5901241
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6dd2ca72b64d5388bb8cd5490bd2108d9e7858e4f8751119407e25382ebfabba99d87bcdfacf7b8974fa9178daab7f08aa0d3f8f7eb2405231105e85fe64803a
|
7
|
+
data.tar.gz: 5e5832f38c398c9766df5d8e304d397990aa7b11d38c94d64f02929a0c382db0197fb5039d6a5f23abd2ee1a49161ebac1d0b6ff0dce133f4ea2066df438011a
|
@@ -25,6 +25,7 @@ module DingSDK
|
|
25
25
|
# * `duplicated_feedback_status` - Duplicated feedback status has found.
|
26
26
|
# * `invalid_feedback_status` - The provided feedback status is invalid.
|
27
27
|
# * `invalid_template_id` - The provided template ID is invalid.
|
28
|
+
# * `suspended_account` - Your account has been suspended.
|
28
29
|
#
|
29
30
|
class Code < T::Enum
|
30
31
|
enums do
|
@@ -48,6 +49,7 @@ module DingSDK
|
|
48
49
|
DUPLICATED_FEEDBACK_STATUS = new('duplicated_feedback_status')
|
49
50
|
INVALID_FEEDBACK_STATUS = new('invalid_feedback_status')
|
50
51
|
INVALID_TEMPLATE_ID = new('invalid_template_id')
|
52
|
+
SUSPENDED_ACCOUNT = new('suspended_account')
|
51
53
|
end
|
52
54
|
end
|
53
55
|
|
@@ -29,6 +29,7 @@ module DingSDK
|
|
29
29
|
# * `duplicated_feedback_status` - Duplicated feedback status has found.
|
30
30
|
# * `invalid_feedback_status` - The provided feedback status is invalid.
|
31
31
|
# * `invalid_template_id` - The provided template ID is invalid.
|
32
|
+
# * `suspended_account` - Your account has been suspended.
|
32
33
|
#
|
33
34
|
field :code, T.nilable(::DingSDK::Shared::Code), { 'format_json': { 'letter_case': ::DingSDK::Utils.field_name('code'), 'decoder': Utils.enum_from_string(::DingSDK::Shared::Code, true) } }
|
34
35
|
# A link to the documentation that describes the error.
|
@@ -38,9 +38,9 @@ module DingSDK
|
|
38
38
|
@security = security
|
39
39
|
@language = 'ruby'
|
40
40
|
@openapi_doc_version = '1.0.0'
|
41
|
-
@sdk_version = '0.8.
|
42
|
-
@gen_version = '2.
|
43
|
-
@user_agent = 'speakeasy-sdk/ruby 0.8.
|
41
|
+
@sdk_version = '0.8.8'
|
42
|
+
@gen_version = '2.326.0'
|
43
|
+
@user_agent = 'speakeasy-sdk/ruby 0.8.8 2.326.0 1.0.0 ding_sdk'
|
44
44
|
end
|
45
45
|
|
46
46
|
sig { returns([String, T::Hash[Symbol, String]]) }
|
data/lib/ding_sdk/utils/utils.rb
CHANGED
@@ -29,8 +29,8 @@ module DingSDK
|
|
29
29
|
end
|
30
30
|
end
|
31
31
|
|
32
|
-
sig { params(headers_params: FieldAugmented).returns(T::Hash[Symbol, String]) }
|
33
|
-
def self.get_headers(headers_params)
|
32
|
+
sig { params(headers_params: FieldAugmented, gbls: T.nilable(T::Hash[Symbol, T::Hash[Symbol, T::Hash[Symbol, Object]]])).returns(T::Hash[Symbol, String]) }
|
33
|
+
def self.get_headers(headers_params, gbls = nil)
|
34
34
|
return {} if headers_params.nil?
|
35
35
|
|
36
36
|
headers = {}
|
@@ -39,7 +39,8 @@ module DingSDK
|
|
39
39
|
metadata = f.metadata[:header]
|
40
40
|
next if metadata.nil?
|
41
41
|
|
42
|
-
value =
|
42
|
+
value = _populate_from_globals(f.name, headers_params&.send(f.name), 'header', gbls)
|
43
|
+
value = _serialize_header(metadata.fetch(:explode, false), value)
|
43
44
|
headers[metadata.fetch(:field_name, f.name)] = value if !value.empty?
|
44
45
|
end
|
45
46
|
headers
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ding_sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ding
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|