trycourier 4.2.0 → 4.4.0
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/CHANGELOG.md +17 -0
- data/README.md +1 -1
- data/lib/trycourier/models/bulk_create_job_params.rb +12 -3
- data/lib/trycourier/models/bulk_retrieve_job_response.rb +15 -3
- data/lib/trycourier/models/inbound_bulk_message.rb +79 -113
- data/lib/trycourier/models/inbound_bulk_message_user.rb +21 -6
- data/lib/trycourier/models/recipient.rb +26 -3
- data/lib/trycourier/models/send_message_params.rb +14 -1
- data/lib/trycourier/models/user_recipient.rb +26 -3
- data/lib/trycourier/models/users/token_list_response.rb +12 -2
- data/lib/trycourier/models.rb +0 -2
- data/lib/trycourier/resources/bulk.rb +17 -3
- data/lib/trycourier/resources/users/tokens.rb +2 -2
- data/lib/trycourier/version.rb +1 -1
- data/lib/trycourier.rb +0 -1
- data/rbi/trycourier/models/bulk_create_job_params.rbi +21 -20
- data/rbi/trycourier/models/bulk_retrieve_job_response.rbi +24 -9
- data/rbi/trycourier/models/inbound_bulk_message.rbi +97 -153
- data/rbi/trycourier/models/inbound_bulk_message_user.rbi +20 -7
- data/rbi/trycourier/models/recipient.rbi +46 -4
- data/rbi/trycourier/models/send_message_params.rbi +16 -1
- data/rbi/trycourier/models/user_recipient.rbi +47 -4
- data/rbi/trycourier/models/users/token_list_response.rbi +27 -5
- data/rbi/trycourier/models.rbi +0 -2
- data/rbi/trycourier/resources/bulk.rbi +22 -8
- data/rbi/trycourier/resources/users/tokens.rbi +1 -1
- data/sig/trycourier/models/bulk_create_job_params.rbs +4 -4
- data/sig/trycourier/models/bulk_retrieve_job_response.rbs +4 -4
- data/sig/trycourier/models/inbound_bulk_message.rbs +52 -99
- data/sig/trycourier/models/inbound_bulk_message_user.rbs +4 -6
- data/sig/trycourier/models/recipient.rbs +31 -4
- data/sig/trycourier/models/send_message_params.rbs +13 -3
- data/sig/trycourier/models/user_recipient.rbs +31 -4
- data/sig/trycourier/models/users/token_list_response.rbs +9 -2
- data/sig/trycourier/models.rbs +1 -3
- data/sig/trycourier/resources/bulk.rbs +1 -1
- data/sig/trycourier/resources/users/tokens.rbs +1 -1
- metadata +2 -5
- data/lib/trycourier/models/profile_preferences.rb +0 -27
- data/rbi/trycourier/models/profile_preferences.rbi +0 -44
- data/sig/trycourier/models/profile_preferences.rbs +0 -30
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Trycourier
|
|
4
|
-
module Models
|
|
5
|
-
class ProfilePreferences < Trycourier::Internal::Type::BaseModel
|
|
6
|
-
OrHash =
|
|
7
|
-
T.type_alias do
|
|
8
|
-
T.any(Trycourier::ProfilePreferences, Trycourier::Internal::AnyHash)
|
|
9
|
-
end
|
|
10
|
-
|
|
11
|
-
sig { returns(T::Hash[Symbol, Trycourier::Preference]) }
|
|
12
|
-
attr_accessor :notifications
|
|
13
|
-
|
|
14
|
-
sig { returns(T.nilable(T::Hash[Symbol, Trycourier::Preference])) }
|
|
15
|
-
attr_accessor :categories
|
|
16
|
-
|
|
17
|
-
sig { returns(T.nilable(String)) }
|
|
18
|
-
attr_accessor :template_id
|
|
19
|
-
|
|
20
|
-
sig do
|
|
21
|
-
params(
|
|
22
|
-
notifications: T::Hash[Symbol, Trycourier::Preference::OrHash],
|
|
23
|
-
categories:
|
|
24
|
-
T.nilable(T::Hash[Symbol, Trycourier::Preference::OrHash]),
|
|
25
|
-
template_id: T.nilable(String)
|
|
26
|
-
).returns(T.attached_class)
|
|
27
|
-
end
|
|
28
|
-
def self.new(notifications:, categories: nil, template_id: nil)
|
|
29
|
-
end
|
|
30
|
-
|
|
31
|
-
sig do
|
|
32
|
-
override.returns(
|
|
33
|
-
{
|
|
34
|
-
notifications: T::Hash[Symbol, Trycourier::Preference],
|
|
35
|
-
categories: T.nilable(T::Hash[Symbol, Trycourier::Preference]),
|
|
36
|
-
template_id: T.nilable(String)
|
|
37
|
-
}
|
|
38
|
-
)
|
|
39
|
-
end
|
|
40
|
-
def to_hash
|
|
41
|
-
end
|
|
42
|
-
end
|
|
43
|
-
end
|
|
44
|
-
end
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
module Trycourier
|
|
2
|
-
module Models
|
|
3
|
-
type profile_preferences =
|
|
4
|
-
{
|
|
5
|
-
notifications: ::Hash[Symbol, Trycourier::Preference],
|
|
6
|
-
categories: ::Hash[Symbol, Trycourier::Preference]?,
|
|
7
|
-
template_id: String?
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
class ProfilePreferences < Trycourier::Internal::Type::BaseModel
|
|
11
|
-
attr_accessor notifications: ::Hash[Symbol, Trycourier::Preference]
|
|
12
|
-
|
|
13
|
-
attr_accessor categories: ::Hash[Symbol, Trycourier::Preference]?
|
|
14
|
-
|
|
15
|
-
attr_accessor template_id: String?
|
|
16
|
-
|
|
17
|
-
def initialize: (
|
|
18
|
-
notifications: ::Hash[Symbol, Trycourier::Preference],
|
|
19
|
-
?categories: ::Hash[Symbol, Trycourier::Preference]?,
|
|
20
|
-
?template_id: String?
|
|
21
|
-
) -> void
|
|
22
|
-
|
|
23
|
-
def to_hash: -> {
|
|
24
|
-
notifications: ::Hash[Symbol, Trycourier::Preference],
|
|
25
|
-
categories: ::Hash[Symbol, Trycourier::Preference]?,
|
|
26
|
-
template_id: String?
|
|
27
|
-
}
|
|
28
|
-
end
|
|
29
|
-
end
|
|
30
|
-
end
|