trycourier 4.10.0 → 4.10.2
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 +18 -0
- data/lib/courier/internal/util.rb +3 -1
- data/lib/courier/models/notification_list_response.rb +8 -8
- data/lib/courier/models/notification_template_create_request.rb +3 -3
- data/lib/courier/models/notification_template_payload.rb +2 -2
- data/lib/courier/models/notification_template_response.rb +71 -0
- data/lib/courier/models/notification_template_update_request.rb +3 -3
- data/lib/courier/models/provider_update_params.rb +3 -2
- data/lib/courier/models/routing_strategy_get_response.rb +1 -1
- data/lib/courier/models.rb +2 -6
- data/lib/courier/resources/notifications/checks.rb +16 -6
- data/lib/courier/resources/notifications.rb +8 -8
- data/lib/courier/resources/providers.rb +7 -5
- data/lib/courier/resources/routing_strategies.rb +4 -4
- data/lib/courier/version.rb +1 -1
- data/lib/courier.rb +1 -3
- data/rbi/courier/models/notification_list_response.rbi +9 -6
- data/rbi/courier/models/notification_template_create_request.rbi +4 -4
- data/rbi/courier/models/notification_template_payload.rbi +2 -2
- data/rbi/courier/models/notification_template_response.rbi +120 -0
- data/rbi/courier/models/notification_template_update_request.rbi +4 -4
- data/rbi/courier/models/provider_update_params.rbi +4 -2
- data/rbi/courier/models.rbi +2 -9
- data/rbi/courier/resources/notifications/checks.rbi +19 -4
- data/rbi/courier/resources/notifications.rbi +7 -7
- data/rbi/courier/resources/providers.rbi +7 -4
- data/rbi/courier/resources/routing_strategies.rbi +2 -2
- data/sig/courier/models/notification_list_response.rbs +7 -5
- data/sig/courier/models/notification_template_response.rbs +70 -0
- data/sig/courier/models.rbs +2 -6
- data/sig/courier/resources/notifications.rbs +3 -3
- data/sig/courier/resources/routing_strategies.rbs +2 -2
- metadata +5 -11
- data/lib/courier/models/notification_template_get_response.rb +0 -92
- data/lib/courier/models/notification_template_mutation_response.rb +0 -51
- data/lib/courier/models/routing_strategy_mutation_response.rb +0 -19
- data/rbi/courier/models/notification_template_get_response.rbi +0 -162
- data/rbi/courier/models/notification_template_mutation_response.rbi +0 -121
- data/rbi/courier/models/routing_strategy_mutation_response.rbi +0 -31
- data/sig/courier/models/notification_template_get_response.rbs +0 -72
- data/sig/courier/models/notification_template_mutation_response.rbs +0 -46
- data/sig/courier/models/routing_strategy_mutation_response.rbs +0 -13
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Courier
|
|
4
|
+
module Models
|
|
5
|
+
class NotificationTemplateResponse < Courier::Models::NotificationTemplatePayload
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(
|
|
9
|
+
Courier::NotificationTemplateResponse,
|
|
10
|
+
Courier::Internal::AnyHash
|
|
11
|
+
)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# The template ID.
|
|
15
|
+
sig { returns(String) }
|
|
16
|
+
attr_accessor :id
|
|
17
|
+
|
|
18
|
+
# Epoch milliseconds when the template was created.
|
|
19
|
+
sig { returns(Integer) }
|
|
20
|
+
attr_accessor :created
|
|
21
|
+
|
|
22
|
+
# User ID of the creator.
|
|
23
|
+
sig { returns(String) }
|
|
24
|
+
attr_accessor :creator
|
|
25
|
+
|
|
26
|
+
# The template state. Always uppercase.
|
|
27
|
+
sig do
|
|
28
|
+
returns(Courier::NotificationTemplateResponse::State::TaggedSymbol)
|
|
29
|
+
end
|
|
30
|
+
attr_accessor :state
|
|
31
|
+
|
|
32
|
+
# Epoch milliseconds of last update.
|
|
33
|
+
sig { returns(T.nilable(Integer)) }
|
|
34
|
+
attr_reader :updated
|
|
35
|
+
|
|
36
|
+
sig { params(updated: Integer).void }
|
|
37
|
+
attr_writer :updated
|
|
38
|
+
|
|
39
|
+
# User ID of the last updater.
|
|
40
|
+
sig { returns(T.nilable(String)) }
|
|
41
|
+
attr_reader :updater
|
|
42
|
+
|
|
43
|
+
sig { params(updater: String).void }
|
|
44
|
+
attr_writer :updater
|
|
45
|
+
|
|
46
|
+
# Response for GET /notifications/{id}, POST /notifications, and PUT
|
|
47
|
+
# /notifications/{id}. Returns all template fields at the top level.
|
|
48
|
+
sig do
|
|
49
|
+
params(
|
|
50
|
+
id: String,
|
|
51
|
+
created: Integer,
|
|
52
|
+
creator: String,
|
|
53
|
+
state: Courier::NotificationTemplateResponse::State::OrSymbol,
|
|
54
|
+
updated: Integer,
|
|
55
|
+
updater: String
|
|
56
|
+
).returns(T.attached_class)
|
|
57
|
+
end
|
|
58
|
+
def self.new(
|
|
59
|
+
# The template ID.
|
|
60
|
+
id:,
|
|
61
|
+
# Epoch milliseconds when the template was created.
|
|
62
|
+
created:,
|
|
63
|
+
# User ID of the creator.
|
|
64
|
+
creator:,
|
|
65
|
+
# The template state. Always uppercase.
|
|
66
|
+
state:,
|
|
67
|
+
# Epoch milliseconds of last update.
|
|
68
|
+
updated: nil,
|
|
69
|
+
# User ID of the last updater.
|
|
70
|
+
updater: nil
|
|
71
|
+
)
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
sig do
|
|
75
|
+
override.returns(
|
|
76
|
+
{
|
|
77
|
+
id: String,
|
|
78
|
+
created: Integer,
|
|
79
|
+
creator: String,
|
|
80
|
+
state: Courier::NotificationTemplateResponse::State::TaggedSymbol,
|
|
81
|
+
updated: Integer,
|
|
82
|
+
updater: String
|
|
83
|
+
}
|
|
84
|
+
)
|
|
85
|
+
end
|
|
86
|
+
def to_hash
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
# The template state. Always uppercase.
|
|
90
|
+
module State
|
|
91
|
+
extend Courier::Internal::Type::Enum
|
|
92
|
+
|
|
93
|
+
TaggedSymbol =
|
|
94
|
+
T.type_alias do
|
|
95
|
+
T.all(Symbol, Courier::NotificationTemplateResponse::State)
|
|
96
|
+
end
|
|
97
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
98
|
+
|
|
99
|
+
DRAFT =
|
|
100
|
+
T.let(
|
|
101
|
+
:DRAFT,
|
|
102
|
+
Courier::NotificationTemplateResponse::State::TaggedSymbol
|
|
103
|
+
)
|
|
104
|
+
PUBLISHED =
|
|
105
|
+
T.let(
|
|
106
|
+
:PUBLISHED,
|
|
107
|
+
Courier::NotificationTemplateResponse::State::TaggedSymbol
|
|
108
|
+
)
|
|
109
|
+
|
|
110
|
+
sig do
|
|
111
|
+
override.returns(
|
|
112
|
+
T::Array[Courier::NotificationTemplateResponse::State::TaggedSymbol]
|
|
113
|
+
)
|
|
114
|
+
end
|
|
115
|
+
def self.values
|
|
116
|
+
end
|
|
117
|
+
end
|
|
118
|
+
end
|
|
119
|
+
end
|
|
120
|
+
end
|
|
@@ -11,8 +11,8 @@ module Courier
|
|
|
11
11
|
)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
-
#
|
|
15
|
-
#
|
|
14
|
+
# Core template fields used in POST and PUT request bodies (nested under a
|
|
15
|
+
# `notification` key) and returned at the top level in responses.
|
|
16
16
|
sig { returns(Courier::NotificationTemplatePayload) }
|
|
17
17
|
attr_reader :notification
|
|
18
18
|
|
|
@@ -46,8 +46,8 @@ module Courier
|
|
|
46
46
|
).returns(T.attached_class)
|
|
47
47
|
end
|
|
48
48
|
def self.new(
|
|
49
|
-
#
|
|
50
|
-
#
|
|
49
|
+
# Core template fields used in POST and PUT request bodies (nested under a
|
|
50
|
+
# `notification` key) and returned at the top level in responses.
|
|
51
51
|
notification:,
|
|
52
52
|
# Template state after update. Case-insensitive input, normalized to uppercase in
|
|
53
53
|
# the response. Defaults to "DRAFT".
|
|
@@ -14,7 +14,8 @@ module Courier
|
|
|
14
14
|
sig { returns(String) }
|
|
15
15
|
attr_accessor :id
|
|
16
16
|
|
|
17
|
-
# The provider key identifying the type.
|
|
17
|
+
# The provider key identifying the type. Required on every request because it
|
|
18
|
+
# selects the provider-specific settings schema for validation.
|
|
18
19
|
sig { returns(String) }
|
|
19
20
|
attr_accessor :provider
|
|
20
21
|
|
|
@@ -53,7 +54,8 @@ module Courier
|
|
|
53
54
|
end
|
|
54
55
|
def self.new(
|
|
55
56
|
id:,
|
|
56
|
-
# The provider key identifying the type.
|
|
57
|
+
# The provider key identifying the type. Required on every request because it
|
|
58
|
+
# selects the provider-specific settings schema for validation.
|
|
57
59
|
provider:,
|
|
58
60
|
# Updated alias. Omit to clear.
|
|
59
61
|
alias_: nil,
|
data/rbi/courier/models.rbi
CHANGED
|
@@ -266,17 +266,13 @@ module Courier
|
|
|
266
266
|
NotificationTemplateCreateRequest =
|
|
267
267
|
Courier::Models::NotificationTemplateCreateRequest
|
|
268
268
|
|
|
269
|
-
NotificationTemplateGetResponse =
|
|
270
|
-
Courier::Models::NotificationTemplateGetResponse
|
|
271
|
-
|
|
272
|
-
NotificationTemplateMutationResponse =
|
|
273
|
-
Courier::Models::NotificationTemplateMutationResponse
|
|
274
|
-
|
|
275
269
|
NotificationTemplatePayload = Courier::Models::NotificationTemplatePayload
|
|
276
270
|
|
|
277
271
|
NotificationTemplatePublishRequest =
|
|
278
272
|
Courier::Models::NotificationTemplatePublishRequest
|
|
279
273
|
|
|
274
|
+
NotificationTemplateResponse = Courier::Models::NotificationTemplateResponse
|
|
275
|
+
|
|
280
276
|
NotificationTemplateState = Courier::Models::NotificationTemplateState
|
|
281
277
|
|
|
282
278
|
NotificationTemplateSummary = Courier::Models::NotificationTemplateSummary
|
|
@@ -356,9 +352,6 @@ module Courier
|
|
|
356
352
|
|
|
357
353
|
RoutingStrategyListResponse = Courier::Models::RoutingStrategyListResponse
|
|
358
354
|
|
|
359
|
-
RoutingStrategyMutationResponse =
|
|
360
|
-
Courier::Models::RoutingStrategyMutationResponse
|
|
361
|
-
|
|
362
355
|
RoutingStrategyReplaceParams = Courier::Models::RoutingStrategyReplaceParams
|
|
363
356
|
|
|
364
357
|
RoutingStrategyReplaceRequest = Courier::Models::RoutingStrategyReplaceRequest
|
|
@@ -4,6 +4,7 @@ module Courier
|
|
|
4
4
|
module Resources
|
|
5
5
|
class Notifications
|
|
6
6
|
class Checks
|
|
7
|
+
# Replace the checks for a notification template submission.
|
|
7
8
|
sig do
|
|
8
9
|
params(
|
|
9
10
|
submission_id: String,
|
|
@@ -13,9 +14,9 @@ module Courier
|
|
|
13
14
|
).returns(Courier::Models::Notifications::CheckUpdateResponse)
|
|
14
15
|
end
|
|
15
16
|
def update(
|
|
16
|
-
# Path param
|
|
17
|
+
# Path param: Submission ID.
|
|
17
18
|
submission_id,
|
|
18
|
-
# Path param
|
|
19
|
+
# Path param: Notification template ID.
|
|
19
20
|
id:,
|
|
20
21
|
# Body param
|
|
21
22
|
checks:,
|
|
@@ -23,6 +24,7 @@ module Courier
|
|
|
23
24
|
)
|
|
24
25
|
end
|
|
25
26
|
|
|
27
|
+
# Retrieve the checks for a notification template submission.
|
|
26
28
|
sig do
|
|
27
29
|
params(
|
|
28
30
|
submission_id: String,
|
|
@@ -30,9 +32,16 @@ module Courier
|
|
|
30
32
|
request_options: Courier::RequestOptions::OrHash
|
|
31
33
|
).returns(Courier::Models::Notifications::CheckListResponse)
|
|
32
34
|
end
|
|
33
|
-
def list(
|
|
35
|
+
def list(
|
|
36
|
+
# Submission ID.
|
|
37
|
+
submission_id,
|
|
38
|
+
# Notification template ID.
|
|
39
|
+
id:,
|
|
40
|
+
request_options: {}
|
|
41
|
+
)
|
|
34
42
|
end
|
|
35
43
|
|
|
44
|
+
# Cancel a notification template submission.
|
|
36
45
|
sig do
|
|
37
46
|
params(
|
|
38
47
|
submission_id: String,
|
|
@@ -40,7 +49,13 @@ module Courier
|
|
|
40
49
|
request_options: Courier::RequestOptions::OrHash
|
|
41
50
|
).void
|
|
42
51
|
end
|
|
43
|
-
def delete(
|
|
52
|
+
def delete(
|
|
53
|
+
# Submission ID.
|
|
54
|
+
submission_id,
|
|
55
|
+
# Notification template ID.
|
|
56
|
+
id:,
|
|
57
|
+
request_options: {}
|
|
58
|
+
)
|
|
44
59
|
end
|
|
45
60
|
|
|
46
61
|
# @api private
|
|
@@ -13,11 +13,11 @@ module Courier
|
|
|
13
13
|
notification: Courier::NotificationTemplatePayload::OrHash,
|
|
14
14
|
state: Courier::NotificationTemplateCreateRequest::State::OrSymbol,
|
|
15
15
|
request_options: Courier::RequestOptions::OrHash
|
|
16
|
-
).returns(Courier::
|
|
16
|
+
).returns(Courier::NotificationTemplateResponse)
|
|
17
17
|
end
|
|
18
18
|
def create(
|
|
19
|
-
#
|
|
20
|
-
#
|
|
19
|
+
# Core template fields used in POST and PUT request bodies (nested under a
|
|
20
|
+
# `notification` key) and returned at the top level in responses.
|
|
21
21
|
notification:,
|
|
22
22
|
# Template state after creation. Case-insensitive input, normalized to uppercase
|
|
23
23
|
# in the response. Defaults to "DRAFT".
|
|
@@ -33,7 +33,7 @@ module Courier
|
|
|
33
33
|
id: String,
|
|
34
34
|
version: String,
|
|
35
35
|
request_options: Courier::RequestOptions::OrHash
|
|
36
|
-
).returns(Courier::
|
|
36
|
+
).returns(Courier::NotificationTemplateResponse)
|
|
37
37
|
end
|
|
38
38
|
def retrieve(
|
|
39
39
|
# Template ID (nt\_ prefix).
|
|
@@ -211,13 +211,13 @@ module Courier
|
|
|
211
211
|
notification: Courier::NotificationTemplatePayload::OrHash,
|
|
212
212
|
state: Courier::NotificationTemplateUpdateRequest::State::OrSymbol,
|
|
213
213
|
request_options: Courier::RequestOptions::OrHash
|
|
214
|
-
).returns(Courier::
|
|
214
|
+
).returns(Courier::NotificationTemplateResponse)
|
|
215
215
|
end
|
|
216
216
|
def replace(
|
|
217
217
|
# Template ID (nt\_ prefix).
|
|
218
218
|
id,
|
|
219
|
-
#
|
|
220
|
-
#
|
|
219
|
+
# Core template fields used in POST and PUT request bodies (nested under a
|
|
220
|
+
# `notification` key) and returned at the top level in responses.
|
|
221
221
|
notification:,
|
|
222
222
|
# Template state after update. Case-insensitive input, normalized to uppercase in
|
|
223
223
|
# the response. Defaults to "DRAFT".
|
|
@@ -47,9 +47,11 @@ module Courier
|
|
|
47
47
|
)
|
|
48
48
|
end
|
|
49
49
|
|
|
50
|
-
#
|
|
51
|
-
#
|
|
52
|
-
#
|
|
50
|
+
# Replace an existing provider configuration. The `provider` key is required and
|
|
51
|
+
# determines which provider-specific settings schema is applied. All other fields
|
|
52
|
+
# are optional — omitted fields are cleared from the stored configuration (this is
|
|
53
|
+
# a full replacement, not a partial merge). Changing the provider type for an
|
|
54
|
+
# existing configuration is not supported.
|
|
53
55
|
sig do
|
|
54
56
|
params(
|
|
55
57
|
id: String,
|
|
@@ -63,7 +65,8 @@ module Courier
|
|
|
63
65
|
def update(
|
|
64
66
|
# A unique identifier of the provider configuration to update.
|
|
65
67
|
id,
|
|
66
|
-
# The provider key identifying the type.
|
|
68
|
+
# The provider key identifying the type. Required on every request because it
|
|
69
|
+
# selects the provider-specific settings schema for validation.
|
|
67
70
|
provider:,
|
|
68
71
|
# Updated alias. Omit to clear.
|
|
69
72
|
alias_: nil,
|
|
@@ -15,7 +15,7 @@ module Courier
|
|
|
15
15
|
T.nilable(T::Hash[Symbol, Courier::MessageProvidersType::OrHash]),
|
|
16
16
|
tags: T.nilable(T::Array[String]),
|
|
17
17
|
request_options: Courier::RequestOptions::OrHash
|
|
18
|
-
).returns(Courier::
|
|
18
|
+
).returns(Courier::RoutingStrategyGetResponse)
|
|
19
19
|
end
|
|
20
20
|
def create(
|
|
21
21
|
# Human-readable name for the routing strategy.
|
|
@@ -117,7 +117,7 @@ module Courier
|
|
|
117
117
|
T.nilable(T::Hash[Symbol, Courier::MessageProvidersType::OrHash]),
|
|
118
118
|
tags: T.nilable(T::Array[String]),
|
|
119
119
|
request_options: Courier::RequestOptions::OrHash
|
|
120
|
-
).returns(Courier::
|
|
120
|
+
).returns(Courier::RoutingStrategyGetResponse)
|
|
121
121
|
end
|
|
122
122
|
def replace(
|
|
123
123
|
# Routing strategy ID (rs\_ prefix).
|
|
@@ -33,10 +33,10 @@ module Courier
|
|
|
33
33
|
id: String,
|
|
34
34
|
created_at: Integer,
|
|
35
35
|
event_ids: ::Array[String],
|
|
36
|
-
note: String,
|
|
37
36
|
routing: Courier::MessageRouting,
|
|
38
37
|
topic_id: String,
|
|
39
38
|
updated_at: Integer,
|
|
39
|
+
note: String,
|
|
40
40
|
tags: Courier::Models::NotificationListResponse::Result::Notification::Tags?,
|
|
41
41
|
title: String?
|
|
42
42
|
}
|
|
@@ -48,14 +48,16 @@ module Courier
|
|
|
48
48
|
|
|
49
49
|
attr_accessor event_ids: ::Array[String]
|
|
50
50
|
|
|
51
|
-
attr_accessor note: String
|
|
52
|
-
|
|
53
51
|
attr_accessor routing: Courier::MessageRouting
|
|
54
52
|
|
|
55
53
|
attr_accessor topic_id: String
|
|
56
54
|
|
|
57
55
|
attr_accessor updated_at: Integer
|
|
58
56
|
|
|
57
|
+
attr_reader note: String?
|
|
58
|
+
|
|
59
|
+
def note=: (String) -> String
|
|
60
|
+
|
|
59
61
|
attr_accessor tags: Courier::Models::NotificationListResponse::Result::Notification::Tags?
|
|
60
62
|
|
|
61
63
|
attr_accessor title: String?
|
|
@@ -64,10 +66,10 @@ module Courier
|
|
|
64
66
|
id: String,
|
|
65
67
|
created_at: Integer,
|
|
66
68
|
event_ids: ::Array[String],
|
|
67
|
-
note: String,
|
|
68
69
|
routing: Courier::MessageRouting,
|
|
69
70
|
topic_id: String,
|
|
70
71
|
updated_at: Integer,
|
|
72
|
+
?note: String,
|
|
71
73
|
?tags: Courier::Models::NotificationListResponse::Result::Notification::Tags?,
|
|
72
74
|
?title: String?
|
|
73
75
|
) -> void
|
|
@@ -76,10 +78,10 @@ module Courier
|
|
|
76
78
|
id: String,
|
|
77
79
|
created_at: Integer,
|
|
78
80
|
event_ids: ::Array[String],
|
|
79
|
-
note: String,
|
|
80
81
|
routing: Courier::MessageRouting,
|
|
81
82
|
topic_id: String,
|
|
82
83
|
updated_at: Integer,
|
|
84
|
+
note: String,
|
|
83
85
|
tags: Courier::Models::NotificationListResponse::Result::Notification::Tags?,
|
|
84
86
|
title: String?
|
|
85
87
|
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
module Courier
|
|
2
|
+
module Models
|
|
3
|
+
type notification_template_response =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
created: Integer,
|
|
7
|
+
creator: String,
|
|
8
|
+
state: Courier::Models::NotificationTemplateResponse::state,
|
|
9
|
+
updated: Integer,
|
|
10
|
+
updater: String
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
class NotificationTemplateResponse < Courier::Models::NotificationTemplatePayload
|
|
14
|
+
def id: -> String
|
|
15
|
+
|
|
16
|
+
def id=: (String _) -> String
|
|
17
|
+
|
|
18
|
+
def created: -> Integer
|
|
19
|
+
|
|
20
|
+
def created=: (Integer _) -> Integer
|
|
21
|
+
|
|
22
|
+
def creator: -> String
|
|
23
|
+
|
|
24
|
+
def creator=: (String _) -> String
|
|
25
|
+
|
|
26
|
+
def state: -> Courier::Models::NotificationTemplateResponse::state
|
|
27
|
+
|
|
28
|
+
def state=: (
|
|
29
|
+
Courier::Models::NotificationTemplateResponse::state _
|
|
30
|
+
) -> Courier::Models::NotificationTemplateResponse::state
|
|
31
|
+
|
|
32
|
+
def updated: -> Integer?
|
|
33
|
+
|
|
34
|
+
def updated=: (Integer _) -> Integer
|
|
35
|
+
|
|
36
|
+
def updater: -> String?
|
|
37
|
+
|
|
38
|
+
def updater=: (String _) -> String
|
|
39
|
+
|
|
40
|
+
def initialize: (
|
|
41
|
+
id: String,
|
|
42
|
+
created: Integer,
|
|
43
|
+
creator: String,
|
|
44
|
+
state: Courier::Models::NotificationTemplateResponse::state,
|
|
45
|
+
?updated: Integer,
|
|
46
|
+
?updater: String
|
|
47
|
+
) -> void
|
|
48
|
+
|
|
49
|
+
def to_hash: -> {
|
|
50
|
+
id: String,
|
|
51
|
+
created: Integer,
|
|
52
|
+
creator: String,
|
|
53
|
+
state: Courier::Models::NotificationTemplateResponse::state,
|
|
54
|
+
updated: Integer,
|
|
55
|
+
updater: String
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
type state = :DRAFT | :PUBLISHED
|
|
59
|
+
|
|
60
|
+
module State
|
|
61
|
+
extend Courier::Internal::Type::Enum
|
|
62
|
+
|
|
63
|
+
DRAFT: :DRAFT
|
|
64
|
+
PUBLISHED: :PUBLISHED
|
|
65
|
+
|
|
66
|
+
def self?.values: -> ::Array[Courier::Models::NotificationTemplateResponse::state]
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
end
|
data/sig/courier/models.rbs
CHANGED
|
@@ -255,14 +255,12 @@ module Courier
|
|
|
255
255
|
|
|
256
256
|
class NotificationTemplateCreateRequest = Courier::Models::NotificationTemplateCreateRequest
|
|
257
257
|
|
|
258
|
-
class NotificationTemplateGetResponse = Courier::Models::NotificationTemplateGetResponse
|
|
259
|
-
|
|
260
|
-
class NotificationTemplateMutationResponse = Courier::Models::NotificationTemplateMutationResponse
|
|
261
|
-
|
|
262
258
|
class NotificationTemplatePayload = Courier::Models::NotificationTemplatePayload
|
|
263
259
|
|
|
264
260
|
class NotificationTemplatePublishRequest = Courier::Models::NotificationTemplatePublishRequest
|
|
265
261
|
|
|
262
|
+
class NotificationTemplateResponse = Courier::Models::NotificationTemplateResponse
|
|
263
|
+
|
|
266
264
|
module NotificationTemplateState = Courier::Models::NotificationTemplateState
|
|
267
265
|
|
|
268
266
|
class NotificationTemplateSummary = Courier::Models::NotificationTemplateSummary
|
|
@@ -337,8 +335,6 @@ module Courier
|
|
|
337
335
|
|
|
338
336
|
class RoutingStrategyListResponse = Courier::Models::RoutingStrategyListResponse
|
|
339
337
|
|
|
340
|
-
class RoutingStrategyMutationResponse = Courier::Models::RoutingStrategyMutationResponse
|
|
341
|
-
|
|
342
338
|
class RoutingStrategyReplaceParams = Courier::Models::RoutingStrategyReplaceParams
|
|
343
339
|
|
|
344
340
|
class RoutingStrategyReplaceRequest = Courier::Models::RoutingStrategyReplaceRequest
|
|
@@ -7,13 +7,13 @@ module Courier
|
|
|
7
7
|
notification: Courier::NotificationTemplatePayload,
|
|
8
8
|
?state: Courier::Models::NotificationTemplateCreateRequest::state,
|
|
9
9
|
?request_options: Courier::request_opts
|
|
10
|
-
) -> Courier::
|
|
10
|
+
) -> Courier::NotificationTemplateResponse
|
|
11
11
|
|
|
12
12
|
def retrieve: (
|
|
13
13
|
String id,
|
|
14
14
|
?version: String,
|
|
15
15
|
?request_options: Courier::request_opts
|
|
16
|
-
) -> Courier::
|
|
16
|
+
) -> Courier::NotificationTemplateResponse
|
|
17
17
|
|
|
18
18
|
def list: (
|
|
19
19
|
?cursor: String?,
|
|
@@ -70,7 +70,7 @@ module Courier
|
|
|
70
70
|
notification: Courier::NotificationTemplatePayload,
|
|
71
71
|
?state: Courier::Models::NotificationTemplateUpdateRequest::state,
|
|
72
72
|
?request_options: Courier::request_opts
|
|
73
|
-
) -> Courier::
|
|
73
|
+
) -> Courier::NotificationTemplateResponse
|
|
74
74
|
|
|
75
75
|
def retrieve_content: (
|
|
76
76
|
String id,
|
|
@@ -9,7 +9,7 @@ module Courier
|
|
|
9
9
|
?providers: Courier::Models::message_providers?,
|
|
10
10
|
?tags: ::Array[String]?,
|
|
11
11
|
?request_options: Courier::request_opts
|
|
12
|
-
) -> Courier::
|
|
12
|
+
) -> Courier::RoutingStrategyGetResponse
|
|
13
13
|
|
|
14
14
|
def retrieve: (
|
|
15
15
|
String id,
|
|
@@ -40,7 +40,7 @@ module Courier
|
|
|
40
40
|
?providers: Courier::Models::message_providers?,
|
|
41
41
|
?tags: ::Array[String]?,
|
|
42
42
|
?request_options: Courier::request_opts
|
|
43
|
-
) -> Courier::
|
|
43
|
+
) -> Courier::RoutingStrategyGetResponse
|
|
44
44
|
|
|
45
45
|
def initialize: (client: Courier::Client) -> void
|
|
46
46
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: trycourier
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.10.
|
|
4
|
+
version: 4.10.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Courier
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-04-
|
|
11
|
+
date: 2026-04-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|
|
@@ -219,10 +219,9 @@ files:
|
|
|
219
219
|
- lib/courier/models/notification_retrieve_content_response.rb
|
|
220
220
|
- lib/courier/models/notification_retrieve_params.rb
|
|
221
221
|
- lib/courier/models/notification_template_create_request.rb
|
|
222
|
-
- lib/courier/models/notification_template_get_response.rb
|
|
223
|
-
- lib/courier/models/notification_template_mutation_response.rb
|
|
224
222
|
- lib/courier/models/notification_template_payload.rb
|
|
225
223
|
- lib/courier/models/notification_template_publish_request.rb
|
|
224
|
+
- lib/courier/models/notification_template_response.rb
|
|
226
225
|
- lib/courier/models/notification_template_state.rb
|
|
227
226
|
- lib/courier/models/notification_template_summary.rb
|
|
228
227
|
- lib/courier/models/notification_template_update_request.rb
|
|
@@ -275,7 +274,6 @@ files:
|
|
|
275
274
|
- lib/courier/models/routing_strategy_list_notifications_params.rb
|
|
276
275
|
- lib/courier/models/routing_strategy_list_params.rb
|
|
277
276
|
- lib/courier/models/routing_strategy_list_response.rb
|
|
278
|
-
- lib/courier/models/routing_strategy_mutation_response.rb
|
|
279
277
|
- lib/courier/models/routing_strategy_replace_params.rb
|
|
280
278
|
- lib/courier/models/routing_strategy_replace_request.rb
|
|
281
279
|
- lib/courier/models/routing_strategy_retrieve_params.rb
|
|
@@ -560,10 +558,9 @@ files:
|
|
|
560
558
|
- rbi/courier/models/notification_retrieve_content_response.rbi
|
|
561
559
|
- rbi/courier/models/notification_retrieve_params.rbi
|
|
562
560
|
- rbi/courier/models/notification_template_create_request.rbi
|
|
563
|
-
- rbi/courier/models/notification_template_get_response.rbi
|
|
564
|
-
- rbi/courier/models/notification_template_mutation_response.rbi
|
|
565
561
|
- rbi/courier/models/notification_template_payload.rbi
|
|
566
562
|
- rbi/courier/models/notification_template_publish_request.rbi
|
|
563
|
+
- rbi/courier/models/notification_template_response.rbi
|
|
567
564
|
- rbi/courier/models/notification_template_state.rbi
|
|
568
565
|
- rbi/courier/models/notification_template_summary.rbi
|
|
569
566
|
- rbi/courier/models/notification_template_update_request.rbi
|
|
@@ -616,7 +613,6 @@ files:
|
|
|
616
613
|
- rbi/courier/models/routing_strategy_list_notifications_params.rbi
|
|
617
614
|
- rbi/courier/models/routing_strategy_list_params.rbi
|
|
618
615
|
- rbi/courier/models/routing_strategy_list_response.rbi
|
|
619
|
-
- rbi/courier/models/routing_strategy_mutation_response.rbi
|
|
620
616
|
- rbi/courier/models/routing_strategy_replace_params.rbi
|
|
621
617
|
- rbi/courier/models/routing_strategy_replace_request.rbi
|
|
622
618
|
- rbi/courier/models/routing_strategy_retrieve_params.rbi
|
|
@@ -900,10 +896,9 @@ files:
|
|
|
900
896
|
- sig/courier/models/notification_retrieve_content_response.rbs
|
|
901
897
|
- sig/courier/models/notification_retrieve_params.rbs
|
|
902
898
|
- sig/courier/models/notification_template_create_request.rbs
|
|
903
|
-
- sig/courier/models/notification_template_get_response.rbs
|
|
904
|
-
- sig/courier/models/notification_template_mutation_response.rbs
|
|
905
899
|
- sig/courier/models/notification_template_payload.rbs
|
|
906
900
|
- sig/courier/models/notification_template_publish_request.rbs
|
|
901
|
+
- sig/courier/models/notification_template_response.rbs
|
|
907
902
|
- sig/courier/models/notification_template_state.rbs
|
|
908
903
|
- sig/courier/models/notification_template_summary.rbs
|
|
909
904
|
- sig/courier/models/notification_template_update_request.rbs
|
|
@@ -956,7 +951,6 @@ files:
|
|
|
956
951
|
- sig/courier/models/routing_strategy_list_notifications_params.rbs
|
|
957
952
|
- sig/courier/models/routing_strategy_list_params.rbs
|
|
958
953
|
- sig/courier/models/routing_strategy_list_response.rbs
|
|
959
|
-
- sig/courier/models/routing_strategy_mutation_response.rbs
|
|
960
954
|
- sig/courier/models/routing_strategy_replace_params.rbs
|
|
961
955
|
- sig/courier/models/routing_strategy_replace_request.rbs
|
|
962
956
|
- sig/courier/models/routing_strategy_retrieve_params.rbs
|