trycourier 4.20.0 → 4.21.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 +8 -0
- data/lib/courier/client.rb +0 -4
- data/lib/courier/models.rb +0 -14
- data/lib/courier/version.rb +1 -1
- data/lib/courier.rb +0 -11
- data/rbi/courier/client.rbi +0 -3
- data/rbi/courier/models.rbi +0 -14
- data/sig/courier/client.rbs +0 -2
- data/sig/courier/models.rbs +0 -14
- metadata +2 -35
- data/lib/courier/models/bulk_add_users_params.rb +0 -26
- data/lib/courier/models/bulk_create_job_params.rb +0 -29
- data/lib/courier/models/bulk_create_job_response.rb +0 -16
- data/lib/courier/models/bulk_list_users_params.rb +0 -33
- data/lib/courier/models/bulk_list_users_response.rb +0 -49
- data/lib/courier/models/bulk_retrieve_job_params.rb +0 -20
- data/lib/courier/models/bulk_retrieve_job_response.rb +0 -76
- data/lib/courier/models/bulk_run_job_params.rb +0 -20
- data/lib/courier/models/inbound_bulk_message.rb +0 -91
- data/lib/courier/models/inbound_bulk_message_user.rb +0 -54
- data/lib/courier/resources/bulk.rb +0 -141
- data/rbi/courier/models/bulk_add_users_params.rbi +0 -43
- data/rbi/courier/models/bulk_create_job_params.rbi +0 -54
- data/rbi/courier/models/bulk_create_job_response.rbi +0 -26
- data/rbi/courier/models/bulk_list_users_params.rbi +0 -51
- data/rbi/courier/models/bulk_list_users_response.rbi +0 -125
- data/rbi/courier/models/bulk_retrieve_job_params.rbi +0 -35
- data/rbi/courier/models/bulk_retrieve_job_response.rbi +0 -157
- data/rbi/courier/models/bulk_run_job_params.rbi +0 -35
- data/rbi/courier/models/inbound_bulk_message.rbi +0 -124
- data/rbi/courier/models/inbound_bulk_message_user.rbi +0 -88
- data/rbi/courier/resources/bulk.rbi +0 -102
- data/sig/courier/models/bulk_add_users_params.rbs +0 -28
- data/sig/courier/models/bulk_create_job_params.rbs +0 -24
- data/sig/courier/models/bulk_create_job_response.rbs +0 -13
- data/sig/courier/models/bulk_list_users_params.rbs +0 -28
- data/sig/courier/models/bulk_list_users_response.rbs +0 -65
- data/sig/courier/models/bulk_retrieve_job_params.rbs +0 -23
- data/sig/courier/models/bulk_retrieve_job_response.rbs +0 -66
- data/sig/courier/models/bulk_run_job_params.rbs +0 -23
- data/sig/courier/models/inbound_bulk_message.rbs +0 -58
- data/sig/courier/models/inbound_bulk_message_user.rbs +0 -42
- data/sig/courier/resources/bulk.rbs +0 -34
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
module Courier
|
|
2
|
-
module Models
|
|
3
|
-
type bulk_retrieve_job_response =
|
|
4
|
-
{ job: Courier::Models::BulkRetrieveJobResponse::Job }
|
|
5
|
-
|
|
6
|
-
class BulkRetrieveJobResponse < Courier::Internal::Type::BaseModel
|
|
7
|
-
attr_accessor job: Courier::Models::BulkRetrieveJobResponse::Job
|
|
8
|
-
|
|
9
|
-
def initialize: (
|
|
10
|
-
job: Courier::Models::BulkRetrieveJobResponse::Job
|
|
11
|
-
) -> void
|
|
12
|
-
|
|
13
|
-
def to_hash: -> { job: Courier::Models::BulkRetrieveJobResponse::Job }
|
|
14
|
-
|
|
15
|
-
type job =
|
|
16
|
-
{
|
|
17
|
-
definition: Courier::InboundBulkMessage,
|
|
18
|
-
enqueued: Integer,
|
|
19
|
-
failures: Integer,
|
|
20
|
-
received: Integer,
|
|
21
|
-
status: Courier::Models::BulkRetrieveJobResponse::Job::status
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
class Job < Courier::Internal::Type::BaseModel
|
|
25
|
-
attr_accessor definition: Courier::InboundBulkMessage
|
|
26
|
-
|
|
27
|
-
attr_accessor enqueued: Integer
|
|
28
|
-
|
|
29
|
-
attr_accessor failures: Integer
|
|
30
|
-
|
|
31
|
-
attr_accessor received: Integer
|
|
32
|
-
|
|
33
|
-
attr_accessor status: Courier::Models::BulkRetrieveJobResponse::Job::status
|
|
34
|
-
|
|
35
|
-
def initialize: (
|
|
36
|
-
definition: Courier::InboundBulkMessage,
|
|
37
|
-
enqueued: Integer,
|
|
38
|
-
failures: Integer,
|
|
39
|
-
received: Integer,
|
|
40
|
-
status: Courier::Models::BulkRetrieveJobResponse::Job::status
|
|
41
|
-
) -> void
|
|
42
|
-
|
|
43
|
-
def to_hash: -> {
|
|
44
|
-
definition: Courier::InboundBulkMessage,
|
|
45
|
-
enqueued: Integer,
|
|
46
|
-
failures: Integer,
|
|
47
|
-
received: Integer,
|
|
48
|
-
status: Courier::Models::BulkRetrieveJobResponse::Job::status
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
type status = :CREATED | :PROCESSING | :COMPLETED | :ERROR
|
|
52
|
-
|
|
53
|
-
module Status
|
|
54
|
-
extend Courier::Internal::Type::Enum
|
|
55
|
-
|
|
56
|
-
CREATED: :CREATED
|
|
57
|
-
PROCESSING: :PROCESSING
|
|
58
|
-
COMPLETED: :COMPLETED
|
|
59
|
-
ERROR: :ERROR
|
|
60
|
-
|
|
61
|
-
def self?.values: -> ::Array[Courier::Models::BulkRetrieveJobResponse::Job::status]
|
|
62
|
-
end
|
|
63
|
-
end
|
|
64
|
-
end
|
|
65
|
-
end
|
|
66
|
-
end
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
module Courier
|
|
2
|
-
module Models
|
|
3
|
-
type bulk_run_job_params =
|
|
4
|
-
{ job_id: String } & Courier::Internal::Type::request_parameters
|
|
5
|
-
|
|
6
|
-
class BulkRunJobParams < Courier::Internal::Type::BaseModel
|
|
7
|
-
extend Courier::Internal::Type::RequestParameters::Converter
|
|
8
|
-
include Courier::Internal::Type::RequestParameters
|
|
9
|
-
|
|
10
|
-
attr_accessor job_id: String
|
|
11
|
-
|
|
12
|
-
def initialize: (
|
|
13
|
-
job_id: String,
|
|
14
|
-
?request_options: Courier::request_opts
|
|
15
|
-
) -> void
|
|
16
|
-
|
|
17
|
-
def to_hash: -> {
|
|
18
|
-
job_id: String,
|
|
19
|
-
request_options: Courier::RequestOptions
|
|
20
|
-
}
|
|
21
|
-
end
|
|
22
|
-
end
|
|
23
|
-
end
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
module Courier
|
|
2
|
-
module Models
|
|
3
|
-
type inbound_bulk_message =
|
|
4
|
-
{
|
|
5
|
-
event: String,
|
|
6
|
-
brand: String?,
|
|
7
|
-
content: Courier::Models::InboundBulkMessage::content?,
|
|
8
|
-
data: ::Hash[Symbol, top]?,
|
|
9
|
-
locale: ::Hash[Symbol, ::Hash[Symbol, top]]?,
|
|
10
|
-
override: ::Hash[Symbol, top]?,
|
|
11
|
-
template: String?
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
class InboundBulkMessage < Courier::Internal::Type::BaseModel
|
|
15
|
-
attr_accessor event: String
|
|
16
|
-
|
|
17
|
-
attr_accessor brand: String?
|
|
18
|
-
|
|
19
|
-
attr_accessor content: Courier::Models::InboundBulkMessage::content?
|
|
20
|
-
|
|
21
|
-
attr_accessor data: ::Hash[Symbol, top]?
|
|
22
|
-
|
|
23
|
-
attr_accessor locale: ::Hash[Symbol, ::Hash[Symbol, top]]?
|
|
24
|
-
|
|
25
|
-
attr_accessor override: ::Hash[Symbol, top]?
|
|
26
|
-
|
|
27
|
-
attr_accessor template: String?
|
|
28
|
-
|
|
29
|
-
def initialize: (
|
|
30
|
-
event: String,
|
|
31
|
-
?brand: String?,
|
|
32
|
-
?content: Courier::Models::InboundBulkMessage::content?,
|
|
33
|
-
?data: ::Hash[Symbol, top]?,
|
|
34
|
-
?locale: ::Hash[Symbol, ::Hash[Symbol, top]]?,
|
|
35
|
-
?override: ::Hash[Symbol, top]?,
|
|
36
|
-
?template: String?
|
|
37
|
-
) -> void
|
|
38
|
-
|
|
39
|
-
def to_hash: -> {
|
|
40
|
-
event: String,
|
|
41
|
-
brand: String?,
|
|
42
|
-
content: Courier::Models::InboundBulkMessage::content?,
|
|
43
|
-
data: ::Hash[Symbol, top]?,
|
|
44
|
-
locale: ::Hash[Symbol, ::Hash[Symbol, top]]?,
|
|
45
|
-
override: ::Hash[Symbol, top]?,
|
|
46
|
-
template: String?
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
type content = Courier::ElementalContentSugar | Courier::ElementalContent
|
|
50
|
-
|
|
51
|
-
module Content
|
|
52
|
-
extend Courier::Internal::Type::Union
|
|
53
|
-
|
|
54
|
-
def self?.variants: -> ::Array[Courier::Models::InboundBulkMessage::content]
|
|
55
|
-
end
|
|
56
|
-
end
|
|
57
|
-
end
|
|
58
|
-
end
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
module Courier
|
|
2
|
-
module Models
|
|
3
|
-
type inbound_bulk_message_user =
|
|
4
|
-
{
|
|
5
|
-
data: top,
|
|
6
|
-
preferences: Courier::RecipientPreferences?,
|
|
7
|
-
profile: ::Hash[Symbol, top]?,
|
|
8
|
-
recipient: String?,
|
|
9
|
-
to: Courier::UserRecipient?
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
class InboundBulkMessageUser < Courier::Internal::Type::BaseModel
|
|
13
|
-
attr_reader data: top?
|
|
14
|
-
|
|
15
|
-
def data=: (top) -> top
|
|
16
|
-
|
|
17
|
-
attr_accessor preferences: Courier::RecipientPreferences?
|
|
18
|
-
|
|
19
|
-
attr_accessor profile: ::Hash[Symbol, top]?
|
|
20
|
-
|
|
21
|
-
attr_accessor recipient: String?
|
|
22
|
-
|
|
23
|
-
attr_accessor to: Courier::UserRecipient?
|
|
24
|
-
|
|
25
|
-
def initialize: (
|
|
26
|
-
?data: top,
|
|
27
|
-
?preferences: Courier::RecipientPreferences?,
|
|
28
|
-
?profile: ::Hash[Symbol, top]?,
|
|
29
|
-
?recipient: String?,
|
|
30
|
-
?to: Courier::UserRecipient?
|
|
31
|
-
) -> void
|
|
32
|
-
|
|
33
|
-
def to_hash: -> {
|
|
34
|
-
data: top,
|
|
35
|
-
preferences: Courier::RecipientPreferences?,
|
|
36
|
-
profile: ::Hash[Symbol, top]?,
|
|
37
|
-
recipient: String?,
|
|
38
|
-
to: Courier::UserRecipient?
|
|
39
|
-
}
|
|
40
|
-
end
|
|
41
|
-
end
|
|
42
|
-
end
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
module Courier
|
|
2
|
-
module Resources
|
|
3
|
-
class Bulk
|
|
4
|
-
def add_users: (
|
|
5
|
-
String job_id,
|
|
6
|
-
users: ::Array[Courier::InboundBulkMessageUser],
|
|
7
|
-
?request_options: Courier::request_opts
|
|
8
|
-
) -> nil
|
|
9
|
-
|
|
10
|
-
def create_job: (
|
|
11
|
-
message: Courier::InboundBulkMessage,
|
|
12
|
-
?request_options: Courier::request_opts
|
|
13
|
-
) -> Courier::Models::BulkCreateJobResponse
|
|
14
|
-
|
|
15
|
-
def list_users: (
|
|
16
|
-
String job_id,
|
|
17
|
-
?cursor: String?,
|
|
18
|
-
?request_options: Courier::request_opts
|
|
19
|
-
) -> Courier::Models::BulkListUsersResponse
|
|
20
|
-
|
|
21
|
-
def retrieve_job: (
|
|
22
|
-
String job_id,
|
|
23
|
-
?request_options: Courier::request_opts
|
|
24
|
-
) -> Courier::Models::BulkRetrieveJobResponse
|
|
25
|
-
|
|
26
|
-
def run_job: (
|
|
27
|
-
String job_id,
|
|
28
|
-
?request_options: Courier::request_opts
|
|
29
|
-
) -> nil
|
|
30
|
-
|
|
31
|
-
def initialize: (client: Courier::Client) -> void
|
|
32
|
-
end
|
|
33
|
-
end
|
|
34
|
-
end
|