trycourier 4.10.1 → 4.11.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 +30 -0
- data/lib/courier/client.rb +15 -1
- data/lib/courier/internal/transport/base_client.rb +2 -0
- data/lib/courier/models/create_journey_request.rb +39 -0
- data/lib/courier/models/journey_ai_node.rb +77 -0
- data/lib/courier/models/journey_api_invoke_trigger_node.rb +73 -0
- data/lib/courier/models/journey_archive_params.rb +20 -0
- data/lib/courier/models/journey_condition_atom.rb +8 -0
- data/lib/courier/models/journey_condition_group.rb +26 -0
- data/lib/courier/models/journey_condition_nested_group.rb +24 -0
- data/lib/courier/models/journey_conditions_field.rb +37 -0
- data/lib/courier/models/journey_create_params.rb +14 -0
- data/lib/courier/models/journey_delay_duration_node.rb +71 -0
- data/lib/courier/models/journey_delay_until_node.rb +71 -0
- data/lib/courier/models/journey_exit_node.rb +33 -0
- data/lib/courier/models/journey_fetch_get_delete_node.rb +103 -0
- data/lib/courier/models/journey_fetch_post_put_node.rb +110 -0
- data/lib/courier/models/journey_list_versions_params.rb +20 -0
- data/lib/courier/models/journey_merge_strategy.rb +18 -0
- data/lib/courier/models/journey_node.rb +139 -0
- data/lib/courier/models/journey_publish_params.rb +20 -0
- data/lib/courier/models/journey_publish_request.rb +18 -0
- data/lib/courier/models/journey_replace_params.rb +20 -0
- data/lib/courier/models/journey_response.rb +82 -0
- data/lib/courier/models/journey_retrieve_params.rb +29 -0
- data/lib/courier/models/journey_segment_trigger_node.rb +90 -0
- data/lib/courier/models/journey_send_node.rb +124 -0
- data/lib/courier/models/journey_state.rb +16 -0
- data/lib/courier/models/journey_template_create_request.rb +138 -0
- data/lib/courier/models/journey_template_get_response.rb +154 -0
- data/lib/courier/models/journey_template_list_response.rb +23 -0
- data/lib/courier/models/journey_template_publish_request.rb +18 -0
- data/lib/courier/models/journey_template_replace_request.rb +126 -0
- data/lib/courier/models/journey_template_summary.rb +60 -0
- data/lib/courier/models/journey_throttle_dynamic_node.rb +86 -0
- data/lib/courier/models/journey_throttle_static_node.rb +80 -0
- data/lib/courier/models/journey_version_item.rb +41 -0
- data/lib/courier/models/journey_versions_list_response.rb +24 -0
- data/lib/courier/models/journeys/template_archive_params.rb +28 -0
- data/lib/courier/models/journeys/template_create_params.rb +22 -0
- data/lib/courier/models/journeys/template_list_params.rb +39 -0
- data/lib/courier/models/journeys/template_list_versions_params.rb +28 -0
- data/lib/courier/models/journeys/template_publish_params.rb +28 -0
- data/lib/courier/models/journeys/template_replace_params.rb +28 -0
- data/lib/courier/models/journeys/template_retrieve_params.rb +28 -0
- 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/tenants/template_delete_params.rb +28 -0
- data/lib/courier/models.rb +75 -2
- data/lib/courier/resources/journeys/templates.rb +224 -0
- data/lib/courier/resources/journeys.rb +167 -2
- data/lib/courier/resources/notifications/checks.rb +16 -6
- data/lib/courier/resources/notifications.rb +8 -8
- data/lib/courier/resources/tenants/templates.rb +32 -0
- data/lib/courier/version.rb +1 -1
- data/lib/courier.rb +45 -1
- data/rbi/courier/models/create_journey_request.rbi +113 -0
- data/rbi/courier/models/journey_ai_node.rbi +141 -0
- data/rbi/courier/models/journey_api_invoke_trigger_node.rbi +164 -0
- data/rbi/courier/models/journey_archive_params.rbi +35 -0
- data/rbi/courier/models/journey_condition_atom.rbi +11 -0
- data/rbi/courier/models/journey_condition_group.rbi +43 -0
- data/rbi/courier/models/journey_condition_nested_group.rbi +51 -0
- data/rbi/courier/models/journey_conditions_field.rbi +27 -0
- data/rbi/courier/models/journey_create_params.rbi +27 -0
- data/rbi/courier/models/journey_delay_duration_node.rbi +146 -0
- data/rbi/courier/models/journey_delay_until_node.rbi +139 -0
- data/rbi/courier/models/journey_exit_node.rbi +57 -0
- data/rbi/courier/models/journey_fetch_get_delete_node.rbi +186 -0
- data/rbi/courier/models/journey_fetch_post_put_node.rbi +190 -0
- data/rbi/courier/models/journey_list_versions_params.rbi +35 -0
- data/rbi/courier/models/journey_merge_strategy.rbi +26 -0
- data/rbi/courier/models/journey_node.rbi +227 -0
- data/rbi/courier/models/journey_publish_params.rbi +35 -0
- data/rbi/courier/models/journey_publish_request.rbi +28 -0
- data/rbi/courier/models/journey_replace_params.rbi +35 -0
- data/rbi/courier/models/journey_response.rbi +108 -0
- data/rbi/courier/models/journey_retrieve_params.rbi +52 -0
- data/rbi/courier/models/journey_segment_trigger_node.rbi +200 -0
- data/rbi/courier/models/journey_send_node.rbi +254 -0
- data/rbi/courier/models/journey_state.rbi +20 -0
- data/rbi/courier/models/journey_template_create_request.rbi +381 -0
- data/rbi/courier/models/journey_template_get_response.rbi +334 -0
- data/rbi/courier/models/journey_template_list_response.rbi +45 -0
- data/rbi/courier/models/journey_template_publish_request.rbi +31 -0
- data/rbi/courier/models/journey_template_replace_request.rbi +368 -0
- data/rbi/courier/models/journey_template_summary.rbi +85 -0
- data/rbi/courier/models/journey_throttle_dynamic_node.rbi +162 -0
- data/rbi/courier/models/journey_throttle_static_node.rbi +158 -0
- data/rbi/courier/models/journey_version_item.rbi +54 -0
- data/rbi/courier/models/journey_versions_list_response.rbi +45 -0
- data/rbi/courier/models/journeys/template_archive_params.rbi +48 -0
- data/rbi/courier/models/journeys/template_create_params.rbi +40 -0
- data/rbi/courier/models/journeys/template_list_params.rbi +68 -0
- data/rbi/courier/models/journeys/template_list_versions_params.rbi +48 -0
- data/rbi/courier/models/journeys/template_publish_params.rbi +48 -0
- data/rbi/courier/models/journeys/template_replace_params.rbi +48 -0
- data/rbi/courier/models/journeys/template_retrieve_params.rbi +48 -0
- 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/tenants/template_delete_params.rbi +48 -0
- data/rbi/courier/models.rbi +78 -3
- data/rbi/courier/resources/journeys/templates.rbi +160 -0
- data/rbi/courier/resources/journeys.rbi +156 -3
- data/rbi/courier/resources/notifications/checks.rbi +19 -4
- data/rbi/courier/resources/notifications.rbi +7 -7
- data/rbi/courier/resources/tenants/templates.rbi +22 -0
- data/sig/courier/models/create_journey_request.rbs +41 -0
- data/sig/courier/models/journey_ai_node.rbs +72 -0
- data/sig/courier/models/journey_api_invoke_trigger_node.rbs +68 -0
- data/sig/courier/models/journey_archive_params.rbs +23 -0
- data/sig/courier/models/journey_condition_atom.rbs +7 -0
- data/sig/courier/models/journey_condition_group.rbs +33 -0
- data/sig/courier/models/journey_condition_nested_group.rbs +33 -0
- data/sig/courier/models/journey_conditions_field.rbs +14 -0
- data/sig/courier/models/journey_create_params.rbs +15 -0
- data/sig/courier/models/journey_delay_duration_node.rbs +66 -0
- data/sig/courier/models/journey_delay_until_node.rbs +66 -0
- data/sig/courier/models/journey_exit_node.rbs +34 -0
- data/sig/courier/models/journey_fetch_get_delete_node.rbs +93 -0
- data/sig/courier/models/journey_fetch_post_put_node.rbs +100 -0
- data/sig/courier/models/journey_list_versions_params.rbs +23 -0
- data/sig/courier/models/journey_merge_strategy.rbs +16 -0
- data/sig/courier/models/journey_node.rbs +117 -0
- data/sig/courier/models/journey_publish_params.rbs +25 -0
- data/sig/courier/models/journey_publish_request.rbs +15 -0
- data/sig/courier/models/journey_replace_params.rbs +25 -0
- data/sig/courier/models/journey_response.rbs +65 -0
- data/sig/courier/models/journey_retrieve_params.rbs +30 -0
- data/sig/courier/models/journey_segment_trigger_node.rbs +85 -0
- data/sig/courier/models/journey_send_node.rbs +140 -0
- data/sig/courier/models/journey_state.rbs +14 -0
- data/sig/courier/models/journey_template_create_request.rbs +148 -0
- data/sig/courier/models/journey_template_get_response.rbs +157 -0
- data/sig/courier/models/journey_template_list_response.rbs +25 -0
- data/sig/courier/models/journey_template_publish_request.rbs +15 -0
- data/sig/courier/models/journey_template_replace_request.rbs +136 -0
- data/sig/courier/models/journey_template_summary.rbs +59 -0
- data/sig/courier/models/journey_throttle_dynamic_node.rbs +76 -0
- data/sig/courier/models/journey_throttle_static_node.rbs +72 -0
- data/sig/courier/models/journey_version_item.rbs +40 -0
- data/sig/courier/models/journey_versions_list_response.rbs +22 -0
- data/sig/courier/models/journeys/template_archive_params.rbs +30 -0
- data/sig/courier/models/journeys/template_create_params.rbs +27 -0
- data/sig/courier/models/journeys/template_list_params.rbs +38 -0
- data/sig/courier/models/journeys/template_list_versions_params.rbs +30 -0
- data/sig/courier/models/journeys/template_publish_params.rbs +34 -0
- data/sig/courier/models/journeys/template_replace_params.rbs +34 -0
- data/sig/courier/models/journeys/template_retrieve_params.rbs +30 -0
- data/sig/courier/models/notification_list_response.rbs +7 -5
- data/sig/courier/models/notification_template_response.rbs +70 -0
- data/sig/courier/models/tenants/template_delete_params.rbs +30 -0
- data/sig/courier/models.rbs +74 -2
- data/sig/courier/resources/journeys/templates.rbs +58 -0
- data/sig/courier/resources/journeys.rbs +41 -0
- data/sig/courier/resources/notifications.rbs +3 -3
- data/sig/courier/resources/tenants/templates.rbs +6 -0
- metadata +137 -5
- data/lib/courier/models/notification_template_get_response.rb +0 -92
- data/rbi/courier/models/notification_template_get_response.rbi +0 -162
- data/sig/courier/models/notification_template_get_response.rbs +0 -72
data/sig/courier/models.rbs
CHANGED
|
@@ -93,6 +93,8 @@ module Courier
|
|
|
93
93
|
|
|
94
94
|
class Check = Courier::Models::Check
|
|
95
95
|
|
|
96
|
+
class CreateJourneyRequest = Courier::Models::CreateJourneyRequest
|
|
97
|
+
|
|
96
98
|
class DefaultPreferences = Courier::Models::DefaultPreferences
|
|
97
99
|
|
|
98
100
|
class DeviceType = Courier::Models::DeviceType
|
|
@@ -151,16 +153,86 @@ module Courier
|
|
|
151
153
|
|
|
152
154
|
class Journey = Courier::Models::Journey
|
|
153
155
|
|
|
156
|
+
class JourneyAINode = Courier::Models::JourneyAINode
|
|
157
|
+
|
|
158
|
+
class JourneyAPIInvokeTriggerNode = Courier::Models::JourneyAPIInvokeTriggerNode
|
|
159
|
+
|
|
160
|
+
class JourneyArchiveParams = Courier::Models::JourneyArchiveParams
|
|
161
|
+
|
|
162
|
+
JourneyConditionAtom: Courier::Internal::Type::Converter
|
|
163
|
+
|
|
164
|
+
class JourneyConditionGroup = Courier::Models::JourneyConditionGroup
|
|
165
|
+
|
|
166
|
+
class JourneyConditionNestedGroup = Courier::Models::JourneyConditionNestedGroup
|
|
167
|
+
|
|
168
|
+
module JourneyConditionsField = Courier::Models::JourneyConditionsField
|
|
169
|
+
|
|
170
|
+
class JourneyCreateParams = Courier::Models::JourneyCreateParams
|
|
171
|
+
|
|
172
|
+
class JourneyDelayDurationNode = Courier::Models::JourneyDelayDurationNode
|
|
173
|
+
|
|
174
|
+
class JourneyDelayUntilNode = Courier::Models::JourneyDelayUntilNode
|
|
175
|
+
|
|
176
|
+
class JourneyExitNode = Courier::Models::JourneyExitNode
|
|
177
|
+
|
|
178
|
+
class JourneyFetchGetDeleteNode = Courier::Models::JourneyFetchGetDeleteNode
|
|
179
|
+
|
|
180
|
+
class JourneyFetchPostPutNode = Courier::Models::JourneyFetchPostPutNode
|
|
181
|
+
|
|
154
182
|
class JourneyInvokeParams = Courier::Models::JourneyInvokeParams
|
|
155
183
|
|
|
156
184
|
class JourneyListParams = Courier::Models::JourneyListParams
|
|
157
185
|
|
|
186
|
+
class JourneyListVersionsParams = Courier::Models::JourneyListVersionsParams
|
|
187
|
+
|
|
188
|
+
module JourneyMergeStrategy = Courier::Models::JourneyMergeStrategy
|
|
189
|
+
|
|
190
|
+
module JourneyNode = Courier::Models::JourneyNode
|
|
191
|
+
|
|
192
|
+
class JourneyPublishParams = Courier::Models::JourneyPublishParams
|
|
193
|
+
|
|
194
|
+
class JourneyPublishRequest = Courier::Models::JourneyPublishRequest
|
|
195
|
+
|
|
196
|
+
class JourneyReplaceParams = Courier::Models::JourneyReplaceParams
|
|
197
|
+
|
|
198
|
+
class JourneyResponse = Courier::Models::JourneyResponse
|
|
199
|
+
|
|
200
|
+
class JourneyRetrieveParams = Courier::Models::JourneyRetrieveParams
|
|
201
|
+
|
|
202
|
+
module Journeys = Courier::Models::Journeys
|
|
203
|
+
|
|
204
|
+
class JourneySegmentTriggerNode = Courier::Models::JourneySegmentTriggerNode
|
|
205
|
+
|
|
206
|
+
class JourneySendNode = Courier::Models::JourneySendNode
|
|
207
|
+
|
|
158
208
|
class JourneysInvokeRequest = Courier::Models::JourneysInvokeRequest
|
|
159
209
|
|
|
160
210
|
class JourneysInvokeResponse = Courier::Models::JourneysInvokeResponse
|
|
161
211
|
|
|
162
212
|
class JourneysListResponse = Courier::Models::JourneysListResponse
|
|
163
213
|
|
|
214
|
+
module JourneyState = Courier::Models::JourneyState
|
|
215
|
+
|
|
216
|
+
class JourneyTemplateCreateRequest = Courier::Models::JourneyTemplateCreateRequest
|
|
217
|
+
|
|
218
|
+
class JourneyTemplateGetResponse = Courier::Models::JourneyTemplateGetResponse
|
|
219
|
+
|
|
220
|
+
class JourneyTemplateListResponse = Courier::Models::JourneyTemplateListResponse
|
|
221
|
+
|
|
222
|
+
class JourneyTemplatePublishRequest = Courier::Models::JourneyTemplatePublishRequest
|
|
223
|
+
|
|
224
|
+
class JourneyTemplateReplaceRequest = Courier::Models::JourneyTemplateReplaceRequest
|
|
225
|
+
|
|
226
|
+
class JourneyTemplateSummary = Courier::Models::JourneyTemplateSummary
|
|
227
|
+
|
|
228
|
+
class JourneyThrottleDynamicNode = Courier::Models::JourneyThrottleDynamicNode
|
|
229
|
+
|
|
230
|
+
class JourneyThrottleStaticNode = Courier::Models::JourneyThrottleStaticNode
|
|
231
|
+
|
|
232
|
+
class JourneyVersionItem = Courier::Models::JourneyVersionItem
|
|
233
|
+
|
|
234
|
+
class JourneyVersionsListResponse = Courier::Models::JourneyVersionsListResponse
|
|
235
|
+
|
|
164
236
|
class ListDeleteParams = Courier::Models::ListDeleteParams
|
|
165
237
|
|
|
166
238
|
class ListFilter = Courier::Models::ListFilter
|
|
@@ -255,12 +327,12 @@ module Courier
|
|
|
255
327
|
|
|
256
328
|
class NotificationTemplateCreateRequest = Courier::Models::NotificationTemplateCreateRequest
|
|
257
329
|
|
|
258
|
-
class NotificationTemplateGetResponse = Courier::Models::NotificationTemplateGetResponse
|
|
259
|
-
|
|
260
330
|
class NotificationTemplatePayload = Courier::Models::NotificationTemplatePayload
|
|
261
331
|
|
|
262
332
|
class NotificationTemplatePublishRequest = Courier::Models::NotificationTemplatePublishRequest
|
|
263
333
|
|
|
334
|
+
class NotificationTemplateResponse = Courier::Models::NotificationTemplateResponse
|
|
335
|
+
|
|
264
336
|
module NotificationTemplateState = Courier::Models::NotificationTemplateState
|
|
265
337
|
|
|
266
338
|
class NotificationTemplateSummary = Courier::Models::NotificationTemplateSummary
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
module Courier
|
|
2
|
+
module Resources
|
|
3
|
+
class Journeys
|
|
4
|
+
class Templates
|
|
5
|
+
def create: (
|
|
6
|
+
String template_id,
|
|
7
|
+
channel: String,
|
|
8
|
+
notification: Courier::JourneyTemplateCreateRequest::Notification,
|
|
9
|
+
?provider_key: String,
|
|
10
|
+
?state: String,
|
|
11
|
+
?request_options: Courier::request_opts
|
|
12
|
+
) -> Courier::JourneyTemplateGetResponse
|
|
13
|
+
|
|
14
|
+
def retrieve: (
|
|
15
|
+
String notification_id,
|
|
16
|
+
template_id: String,
|
|
17
|
+
?request_options: Courier::request_opts
|
|
18
|
+
) -> Courier::JourneyTemplateGetResponse
|
|
19
|
+
|
|
20
|
+
def list: (
|
|
21
|
+
String template_id,
|
|
22
|
+
?cursor: String,
|
|
23
|
+
?limit: Integer,
|
|
24
|
+
?request_options: Courier::request_opts
|
|
25
|
+
) -> Courier::JourneyTemplateListResponse
|
|
26
|
+
|
|
27
|
+
def archive: (
|
|
28
|
+
String notification_id,
|
|
29
|
+
template_id: String,
|
|
30
|
+
?request_options: Courier::request_opts
|
|
31
|
+
) -> nil
|
|
32
|
+
|
|
33
|
+
def list_versions: (
|
|
34
|
+
String notification_id,
|
|
35
|
+
template_id: String,
|
|
36
|
+
?request_options: Courier::request_opts
|
|
37
|
+
) -> Courier::NotificationTemplateVersionListResponse
|
|
38
|
+
|
|
39
|
+
def publish: (
|
|
40
|
+
String notification_id,
|
|
41
|
+
template_id: String,
|
|
42
|
+
?version: String,
|
|
43
|
+
?request_options: Courier::request_opts
|
|
44
|
+
) -> nil
|
|
45
|
+
|
|
46
|
+
def replace: (
|
|
47
|
+
String notification_id,
|
|
48
|
+
template_id: String,
|
|
49
|
+
notification: Courier::JourneyTemplateReplaceRequest::Notification,
|
|
50
|
+
?state: String,
|
|
51
|
+
?request_options: Courier::request_opts
|
|
52
|
+
) -> Courier::JourneyTemplateGetResponse
|
|
53
|
+
|
|
54
|
+
def initialize: (client: Courier::Client) -> void
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
end
|
|
@@ -1,12 +1,33 @@
|
|
|
1
1
|
module Courier
|
|
2
2
|
module Resources
|
|
3
3
|
class Journeys
|
|
4
|
+
attr_reader templates: Courier::Resources::Journeys::Templates
|
|
5
|
+
|
|
6
|
+
def create: (
|
|
7
|
+
name: String,
|
|
8
|
+
nodes: ::Array[Courier::Models::journey_node],
|
|
9
|
+
?enabled: bool,
|
|
10
|
+
?state: Courier::Models::journey_state,
|
|
11
|
+
?request_options: Courier::request_opts
|
|
12
|
+
) -> Courier::JourneyResponse
|
|
13
|
+
|
|
14
|
+
def retrieve: (
|
|
15
|
+
String template_id,
|
|
16
|
+
?version: String,
|
|
17
|
+
?request_options: Courier::request_opts
|
|
18
|
+
) -> Courier::JourneyResponse
|
|
19
|
+
|
|
4
20
|
def list: (
|
|
5
21
|
?cursor: String,
|
|
6
22
|
?version: Courier::Models::JourneyListParams::version,
|
|
7
23
|
?request_options: Courier::request_opts
|
|
8
24
|
) -> Courier::JourneysListResponse
|
|
9
25
|
|
|
26
|
+
def archive: (
|
|
27
|
+
String template_id,
|
|
28
|
+
?request_options: Courier::request_opts
|
|
29
|
+
) -> nil
|
|
30
|
+
|
|
10
31
|
def invoke: (
|
|
11
32
|
String template_id,
|
|
12
33
|
?data: ::Hash[Symbol, top],
|
|
@@ -15,6 +36,26 @@ module Courier
|
|
|
15
36
|
?request_options: Courier::request_opts
|
|
16
37
|
) -> Courier::JourneysInvokeResponse
|
|
17
38
|
|
|
39
|
+
def list_versions: (
|
|
40
|
+
String template_id,
|
|
41
|
+
?request_options: Courier::request_opts
|
|
42
|
+
) -> Courier::JourneyVersionsListResponse
|
|
43
|
+
|
|
44
|
+
def publish: (
|
|
45
|
+
String template_id,
|
|
46
|
+
?version: String,
|
|
47
|
+
?request_options: Courier::request_opts
|
|
48
|
+
) -> Courier::JourneyResponse
|
|
49
|
+
|
|
50
|
+
def replace: (
|
|
51
|
+
String template_id,
|
|
52
|
+
name: String,
|
|
53
|
+
nodes: ::Array[Courier::Models::journey_node],
|
|
54
|
+
?enabled: bool,
|
|
55
|
+
?state: Courier::Models::journey_state,
|
|
56
|
+
?request_options: Courier::request_opts
|
|
57
|
+
) -> Courier::JourneyResponse
|
|
58
|
+
|
|
18
59
|
def initialize: (client: Courier::Client) -> void
|
|
19
60
|
end
|
|
20
61
|
end
|
|
@@ -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,
|
|
@@ -17,6 +17,12 @@ module Courier
|
|
|
17
17
|
?request_options: Courier::request_opts
|
|
18
18
|
) -> Courier::Models::Tenants::TemplateListResponse
|
|
19
19
|
|
|
20
|
+
def delete: (
|
|
21
|
+
String template_id,
|
|
22
|
+
tenant_id: String,
|
|
23
|
+
?request_options: Courier::request_opts
|
|
24
|
+
) -> nil
|
|
25
|
+
|
|
20
26
|
def publish: (
|
|
21
27
|
String template_id,
|
|
22
28
|
tenant_id: String,
|
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.
|
|
4
|
+
version: 4.11.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Courier
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-05-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|
|
@@ -126,6 +126,7 @@ files:
|
|
|
126
126
|
- lib/courier/models/channel_metadata.rb
|
|
127
127
|
- lib/courier/models/channel_preference.rb
|
|
128
128
|
- lib/courier/models/check.rb
|
|
129
|
+
- lib/courier/models/create_journey_request.rb
|
|
129
130
|
- lib/courier/models/default_preferences.rb
|
|
130
131
|
- lib/courier/models/device_type.rb
|
|
131
132
|
- lib/courier/models/discord.rb
|
|
@@ -156,8 +157,49 @@ files:
|
|
|
156
157
|
- lib/courier/models/intercom.rb
|
|
157
158
|
- lib/courier/models/intercom_recipient.rb
|
|
158
159
|
- lib/courier/models/journey.rb
|
|
160
|
+
- lib/courier/models/journey_ai_node.rb
|
|
161
|
+
- lib/courier/models/journey_api_invoke_trigger_node.rb
|
|
162
|
+
- lib/courier/models/journey_archive_params.rb
|
|
163
|
+
- lib/courier/models/journey_condition_atom.rb
|
|
164
|
+
- lib/courier/models/journey_condition_group.rb
|
|
165
|
+
- lib/courier/models/journey_condition_nested_group.rb
|
|
166
|
+
- lib/courier/models/journey_conditions_field.rb
|
|
167
|
+
- lib/courier/models/journey_create_params.rb
|
|
168
|
+
- lib/courier/models/journey_delay_duration_node.rb
|
|
169
|
+
- lib/courier/models/journey_delay_until_node.rb
|
|
170
|
+
- lib/courier/models/journey_exit_node.rb
|
|
171
|
+
- lib/courier/models/journey_fetch_get_delete_node.rb
|
|
172
|
+
- lib/courier/models/journey_fetch_post_put_node.rb
|
|
159
173
|
- lib/courier/models/journey_invoke_params.rb
|
|
160
174
|
- lib/courier/models/journey_list_params.rb
|
|
175
|
+
- lib/courier/models/journey_list_versions_params.rb
|
|
176
|
+
- lib/courier/models/journey_merge_strategy.rb
|
|
177
|
+
- lib/courier/models/journey_node.rb
|
|
178
|
+
- lib/courier/models/journey_publish_params.rb
|
|
179
|
+
- lib/courier/models/journey_publish_request.rb
|
|
180
|
+
- lib/courier/models/journey_replace_params.rb
|
|
181
|
+
- lib/courier/models/journey_response.rb
|
|
182
|
+
- lib/courier/models/journey_retrieve_params.rb
|
|
183
|
+
- lib/courier/models/journey_segment_trigger_node.rb
|
|
184
|
+
- lib/courier/models/journey_send_node.rb
|
|
185
|
+
- lib/courier/models/journey_state.rb
|
|
186
|
+
- lib/courier/models/journey_template_create_request.rb
|
|
187
|
+
- lib/courier/models/journey_template_get_response.rb
|
|
188
|
+
- lib/courier/models/journey_template_list_response.rb
|
|
189
|
+
- lib/courier/models/journey_template_publish_request.rb
|
|
190
|
+
- lib/courier/models/journey_template_replace_request.rb
|
|
191
|
+
- lib/courier/models/journey_template_summary.rb
|
|
192
|
+
- lib/courier/models/journey_throttle_dynamic_node.rb
|
|
193
|
+
- lib/courier/models/journey_throttle_static_node.rb
|
|
194
|
+
- lib/courier/models/journey_version_item.rb
|
|
195
|
+
- lib/courier/models/journey_versions_list_response.rb
|
|
196
|
+
- lib/courier/models/journeys/template_archive_params.rb
|
|
197
|
+
- lib/courier/models/journeys/template_create_params.rb
|
|
198
|
+
- lib/courier/models/journeys/template_list_params.rb
|
|
199
|
+
- lib/courier/models/journeys/template_list_versions_params.rb
|
|
200
|
+
- lib/courier/models/journeys/template_publish_params.rb
|
|
201
|
+
- lib/courier/models/journeys/template_replace_params.rb
|
|
202
|
+
- lib/courier/models/journeys/template_retrieve_params.rb
|
|
161
203
|
- lib/courier/models/journeys_invoke_request.rb
|
|
162
204
|
- lib/courier/models/journeys_invoke_response.rb
|
|
163
205
|
- lib/courier/models/journeys_list_response.rb
|
|
@@ -219,9 +261,9 @@ files:
|
|
|
219
261
|
- lib/courier/models/notification_retrieve_content_response.rb
|
|
220
262
|
- lib/courier/models/notification_retrieve_params.rb
|
|
221
263
|
- lib/courier/models/notification_template_create_request.rb
|
|
222
|
-
- lib/courier/models/notification_template_get_response.rb
|
|
223
264
|
- lib/courier/models/notification_template_payload.rb
|
|
224
265
|
- lib/courier/models/notification_template_publish_request.rb
|
|
266
|
+
- lib/courier/models/notification_template_response.rb
|
|
225
267
|
- lib/courier/models/notification_template_state.rb
|
|
226
268
|
- lib/courier/models/notification_template_summary.rb
|
|
227
269
|
- lib/courier/models/notification_template_update_request.rb
|
|
@@ -309,6 +351,7 @@ files:
|
|
|
309
351
|
- lib/courier/models/tenant_update_params.rb
|
|
310
352
|
- lib/courier/models/tenants/preferences/item_delete_params.rb
|
|
311
353
|
- lib/courier/models/tenants/preferences/item_update_params.rb
|
|
354
|
+
- lib/courier/models/tenants/template_delete_params.rb
|
|
312
355
|
- lib/courier/models/tenants/template_list_params.rb
|
|
313
356
|
- lib/courier/models/tenants/template_list_response.rb
|
|
314
357
|
- lib/courier/models/tenants/template_publish_params.rb
|
|
@@ -365,6 +408,7 @@ files:
|
|
|
365
408
|
- lib/courier/resources/bulk.rb
|
|
366
409
|
- lib/courier/resources/inbound.rb
|
|
367
410
|
- lib/courier/resources/journeys.rb
|
|
411
|
+
- lib/courier/resources/journeys/templates.rb
|
|
368
412
|
- lib/courier/resources/lists.rb
|
|
369
413
|
- lib/courier/resources/lists/subscriptions.rb
|
|
370
414
|
- lib/courier/resources/messages.rb
|
|
@@ -465,6 +509,7 @@ files:
|
|
|
465
509
|
- rbi/courier/models/channel_metadata.rbi
|
|
466
510
|
- rbi/courier/models/channel_preference.rbi
|
|
467
511
|
- rbi/courier/models/check.rbi
|
|
512
|
+
- rbi/courier/models/create_journey_request.rbi
|
|
468
513
|
- rbi/courier/models/default_preferences.rbi
|
|
469
514
|
- rbi/courier/models/device_type.rbi
|
|
470
515
|
- rbi/courier/models/discord.rbi
|
|
@@ -495,8 +540,49 @@ files:
|
|
|
495
540
|
- rbi/courier/models/intercom.rbi
|
|
496
541
|
- rbi/courier/models/intercom_recipient.rbi
|
|
497
542
|
- rbi/courier/models/journey.rbi
|
|
543
|
+
- rbi/courier/models/journey_ai_node.rbi
|
|
544
|
+
- rbi/courier/models/journey_api_invoke_trigger_node.rbi
|
|
545
|
+
- rbi/courier/models/journey_archive_params.rbi
|
|
546
|
+
- rbi/courier/models/journey_condition_atom.rbi
|
|
547
|
+
- rbi/courier/models/journey_condition_group.rbi
|
|
548
|
+
- rbi/courier/models/journey_condition_nested_group.rbi
|
|
549
|
+
- rbi/courier/models/journey_conditions_field.rbi
|
|
550
|
+
- rbi/courier/models/journey_create_params.rbi
|
|
551
|
+
- rbi/courier/models/journey_delay_duration_node.rbi
|
|
552
|
+
- rbi/courier/models/journey_delay_until_node.rbi
|
|
553
|
+
- rbi/courier/models/journey_exit_node.rbi
|
|
554
|
+
- rbi/courier/models/journey_fetch_get_delete_node.rbi
|
|
555
|
+
- rbi/courier/models/journey_fetch_post_put_node.rbi
|
|
498
556
|
- rbi/courier/models/journey_invoke_params.rbi
|
|
499
557
|
- rbi/courier/models/journey_list_params.rbi
|
|
558
|
+
- rbi/courier/models/journey_list_versions_params.rbi
|
|
559
|
+
- rbi/courier/models/journey_merge_strategy.rbi
|
|
560
|
+
- rbi/courier/models/journey_node.rbi
|
|
561
|
+
- rbi/courier/models/journey_publish_params.rbi
|
|
562
|
+
- rbi/courier/models/journey_publish_request.rbi
|
|
563
|
+
- rbi/courier/models/journey_replace_params.rbi
|
|
564
|
+
- rbi/courier/models/journey_response.rbi
|
|
565
|
+
- rbi/courier/models/journey_retrieve_params.rbi
|
|
566
|
+
- rbi/courier/models/journey_segment_trigger_node.rbi
|
|
567
|
+
- rbi/courier/models/journey_send_node.rbi
|
|
568
|
+
- rbi/courier/models/journey_state.rbi
|
|
569
|
+
- rbi/courier/models/journey_template_create_request.rbi
|
|
570
|
+
- rbi/courier/models/journey_template_get_response.rbi
|
|
571
|
+
- rbi/courier/models/journey_template_list_response.rbi
|
|
572
|
+
- rbi/courier/models/journey_template_publish_request.rbi
|
|
573
|
+
- rbi/courier/models/journey_template_replace_request.rbi
|
|
574
|
+
- rbi/courier/models/journey_template_summary.rbi
|
|
575
|
+
- rbi/courier/models/journey_throttle_dynamic_node.rbi
|
|
576
|
+
- rbi/courier/models/journey_throttle_static_node.rbi
|
|
577
|
+
- rbi/courier/models/journey_version_item.rbi
|
|
578
|
+
- rbi/courier/models/journey_versions_list_response.rbi
|
|
579
|
+
- rbi/courier/models/journeys/template_archive_params.rbi
|
|
580
|
+
- rbi/courier/models/journeys/template_create_params.rbi
|
|
581
|
+
- rbi/courier/models/journeys/template_list_params.rbi
|
|
582
|
+
- rbi/courier/models/journeys/template_list_versions_params.rbi
|
|
583
|
+
- rbi/courier/models/journeys/template_publish_params.rbi
|
|
584
|
+
- rbi/courier/models/journeys/template_replace_params.rbi
|
|
585
|
+
- rbi/courier/models/journeys/template_retrieve_params.rbi
|
|
500
586
|
- rbi/courier/models/journeys_invoke_request.rbi
|
|
501
587
|
- rbi/courier/models/journeys_invoke_response.rbi
|
|
502
588
|
- rbi/courier/models/journeys_list_response.rbi
|
|
@@ -558,9 +644,9 @@ files:
|
|
|
558
644
|
- rbi/courier/models/notification_retrieve_content_response.rbi
|
|
559
645
|
- rbi/courier/models/notification_retrieve_params.rbi
|
|
560
646
|
- rbi/courier/models/notification_template_create_request.rbi
|
|
561
|
-
- rbi/courier/models/notification_template_get_response.rbi
|
|
562
647
|
- rbi/courier/models/notification_template_payload.rbi
|
|
563
648
|
- rbi/courier/models/notification_template_publish_request.rbi
|
|
649
|
+
- rbi/courier/models/notification_template_response.rbi
|
|
564
650
|
- rbi/courier/models/notification_template_state.rbi
|
|
565
651
|
- rbi/courier/models/notification_template_summary.rbi
|
|
566
652
|
- rbi/courier/models/notification_template_update_request.rbi
|
|
@@ -648,6 +734,7 @@ files:
|
|
|
648
734
|
- rbi/courier/models/tenant_update_params.rbi
|
|
649
735
|
- rbi/courier/models/tenants/preferences/item_delete_params.rbi
|
|
650
736
|
- rbi/courier/models/tenants/preferences/item_update_params.rbi
|
|
737
|
+
- rbi/courier/models/tenants/template_delete_params.rbi
|
|
651
738
|
- rbi/courier/models/tenants/template_list_params.rbi
|
|
652
739
|
- rbi/courier/models/tenants/template_list_response.rbi
|
|
653
740
|
- rbi/courier/models/tenants/template_publish_params.rbi
|
|
@@ -704,6 +791,7 @@ files:
|
|
|
704
791
|
- rbi/courier/resources/bulk.rbi
|
|
705
792
|
- rbi/courier/resources/inbound.rbi
|
|
706
793
|
- rbi/courier/resources/journeys.rbi
|
|
794
|
+
- rbi/courier/resources/journeys/templates.rbi
|
|
707
795
|
- rbi/courier/resources/lists.rbi
|
|
708
796
|
- rbi/courier/resources/lists/subscriptions.rbi
|
|
709
797
|
- rbi/courier/resources/messages.rbi
|
|
@@ -803,6 +891,7 @@ files:
|
|
|
803
891
|
- sig/courier/models/channel_metadata.rbs
|
|
804
892
|
- sig/courier/models/channel_preference.rbs
|
|
805
893
|
- sig/courier/models/check.rbs
|
|
894
|
+
- sig/courier/models/create_journey_request.rbs
|
|
806
895
|
- sig/courier/models/default_preferences.rbs
|
|
807
896
|
- sig/courier/models/device_type.rbs
|
|
808
897
|
- sig/courier/models/discord.rbs
|
|
@@ -833,8 +922,49 @@ files:
|
|
|
833
922
|
- sig/courier/models/intercom.rbs
|
|
834
923
|
- sig/courier/models/intercom_recipient.rbs
|
|
835
924
|
- sig/courier/models/journey.rbs
|
|
925
|
+
- sig/courier/models/journey_ai_node.rbs
|
|
926
|
+
- sig/courier/models/journey_api_invoke_trigger_node.rbs
|
|
927
|
+
- sig/courier/models/journey_archive_params.rbs
|
|
928
|
+
- sig/courier/models/journey_condition_atom.rbs
|
|
929
|
+
- sig/courier/models/journey_condition_group.rbs
|
|
930
|
+
- sig/courier/models/journey_condition_nested_group.rbs
|
|
931
|
+
- sig/courier/models/journey_conditions_field.rbs
|
|
932
|
+
- sig/courier/models/journey_create_params.rbs
|
|
933
|
+
- sig/courier/models/journey_delay_duration_node.rbs
|
|
934
|
+
- sig/courier/models/journey_delay_until_node.rbs
|
|
935
|
+
- sig/courier/models/journey_exit_node.rbs
|
|
936
|
+
- sig/courier/models/journey_fetch_get_delete_node.rbs
|
|
937
|
+
- sig/courier/models/journey_fetch_post_put_node.rbs
|
|
836
938
|
- sig/courier/models/journey_invoke_params.rbs
|
|
837
939
|
- sig/courier/models/journey_list_params.rbs
|
|
940
|
+
- sig/courier/models/journey_list_versions_params.rbs
|
|
941
|
+
- sig/courier/models/journey_merge_strategy.rbs
|
|
942
|
+
- sig/courier/models/journey_node.rbs
|
|
943
|
+
- sig/courier/models/journey_publish_params.rbs
|
|
944
|
+
- sig/courier/models/journey_publish_request.rbs
|
|
945
|
+
- sig/courier/models/journey_replace_params.rbs
|
|
946
|
+
- sig/courier/models/journey_response.rbs
|
|
947
|
+
- sig/courier/models/journey_retrieve_params.rbs
|
|
948
|
+
- sig/courier/models/journey_segment_trigger_node.rbs
|
|
949
|
+
- sig/courier/models/journey_send_node.rbs
|
|
950
|
+
- sig/courier/models/journey_state.rbs
|
|
951
|
+
- sig/courier/models/journey_template_create_request.rbs
|
|
952
|
+
- sig/courier/models/journey_template_get_response.rbs
|
|
953
|
+
- sig/courier/models/journey_template_list_response.rbs
|
|
954
|
+
- sig/courier/models/journey_template_publish_request.rbs
|
|
955
|
+
- sig/courier/models/journey_template_replace_request.rbs
|
|
956
|
+
- sig/courier/models/journey_template_summary.rbs
|
|
957
|
+
- sig/courier/models/journey_throttle_dynamic_node.rbs
|
|
958
|
+
- sig/courier/models/journey_throttle_static_node.rbs
|
|
959
|
+
- sig/courier/models/journey_version_item.rbs
|
|
960
|
+
- sig/courier/models/journey_versions_list_response.rbs
|
|
961
|
+
- sig/courier/models/journeys/template_archive_params.rbs
|
|
962
|
+
- sig/courier/models/journeys/template_create_params.rbs
|
|
963
|
+
- sig/courier/models/journeys/template_list_params.rbs
|
|
964
|
+
- sig/courier/models/journeys/template_list_versions_params.rbs
|
|
965
|
+
- sig/courier/models/journeys/template_publish_params.rbs
|
|
966
|
+
- sig/courier/models/journeys/template_replace_params.rbs
|
|
967
|
+
- sig/courier/models/journeys/template_retrieve_params.rbs
|
|
838
968
|
- sig/courier/models/journeys_invoke_request.rbs
|
|
839
969
|
- sig/courier/models/journeys_invoke_response.rbs
|
|
840
970
|
- sig/courier/models/journeys_list_response.rbs
|
|
@@ -896,9 +1026,9 @@ files:
|
|
|
896
1026
|
- sig/courier/models/notification_retrieve_content_response.rbs
|
|
897
1027
|
- sig/courier/models/notification_retrieve_params.rbs
|
|
898
1028
|
- sig/courier/models/notification_template_create_request.rbs
|
|
899
|
-
- sig/courier/models/notification_template_get_response.rbs
|
|
900
1029
|
- sig/courier/models/notification_template_payload.rbs
|
|
901
1030
|
- sig/courier/models/notification_template_publish_request.rbs
|
|
1031
|
+
- sig/courier/models/notification_template_response.rbs
|
|
902
1032
|
- sig/courier/models/notification_template_state.rbs
|
|
903
1033
|
- sig/courier/models/notification_template_summary.rbs
|
|
904
1034
|
- sig/courier/models/notification_template_update_request.rbs
|
|
@@ -986,6 +1116,7 @@ files:
|
|
|
986
1116
|
- sig/courier/models/tenant_update_params.rbs
|
|
987
1117
|
- sig/courier/models/tenants/preferences/item_delete_params.rbs
|
|
988
1118
|
- sig/courier/models/tenants/preferences/item_update_params.rbs
|
|
1119
|
+
- sig/courier/models/tenants/template_delete_params.rbs
|
|
989
1120
|
- sig/courier/models/tenants/template_list_params.rbs
|
|
990
1121
|
- sig/courier/models/tenants/template_list_response.rbs
|
|
991
1122
|
- sig/courier/models/tenants/template_publish_params.rbs
|
|
@@ -1042,6 +1173,7 @@ files:
|
|
|
1042
1173
|
- sig/courier/resources/bulk.rbs
|
|
1043
1174
|
- sig/courier/resources/inbound.rbs
|
|
1044
1175
|
- sig/courier/resources/journeys.rbs
|
|
1176
|
+
- sig/courier/resources/journeys/templates.rbs
|
|
1045
1177
|
- sig/courier/resources/lists.rbs
|
|
1046
1178
|
- sig/courier/resources/lists/subscriptions.rbs
|
|
1047
1179
|
- sig/courier/resources/messages.rbs
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Courier
|
|
4
|
-
module Models
|
|
5
|
-
# @see Courier::Resources::Notifications#create
|
|
6
|
-
class NotificationTemplateGetResponse < Courier::Internal::Type::BaseModel
|
|
7
|
-
# @!attribute created
|
|
8
|
-
# Epoch milliseconds when the template was created.
|
|
9
|
-
#
|
|
10
|
-
# @return [Integer]
|
|
11
|
-
required :created, Integer
|
|
12
|
-
|
|
13
|
-
# @!attribute creator
|
|
14
|
-
# User ID of the creator.
|
|
15
|
-
#
|
|
16
|
-
# @return [String]
|
|
17
|
-
required :creator, String
|
|
18
|
-
|
|
19
|
-
# @!attribute notification
|
|
20
|
-
# Full document shape used in POST and PUT request bodies, and returned inside the
|
|
21
|
-
# GET response envelope.
|
|
22
|
-
#
|
|
23
|
-
# @return [Courier::Models::NotificationTemplateGetResponse::Notification]
|
|
24
|
-
required :notification, -> { Courier::NotificationTemplateGetResponse::Notification }
|
|
25
|
-
|
|
26
|
-
# @!attribute state
|
|
27
|
-
# The template state. Always uppercase.
|
|
28
|
-
#
|
|
29
|
-
# @return [Symbol, Courier::Models::NotificationTemplateGetResponse::State]
|
|
30
|
-
required :state, enum: -> { Courier::NotificationTemplateGetResponse::State }
|
|
31
|
-
|
|
32
|
-
# @!attribute updated
|
|
33
|
-
# Epoch milliseconds of last update.
|
|
34
|
-
#
|
|
35
|
-
# @return [Integer, nil]
|
|
36
|
-
optional :updated, Integer
|
|
37
|
-
|
|
38
|
-
# @!attribute updater
|
|
39
|
-
# User ID of the last updater.
|
|
40
|
-
#
|
|
41
|
-
# @return [String, nil]
|
|
42
|
-
optional :updater, String
|
|
43
|
-
|
|
44
|
-
# @!method initialize(created:, creator:, notification:, state:, updated: nil, updater: nil)
|
|
45
|
-
# Some parameter documentations has been truncated, see
|
|
46
|
-
# {Courier::Models::NotificationTemplateGetResponse} for more details.
|
|
47
|
-
#
|
|
48
|
-
# Envelope response for GET /notifications/{id}. The notification object mirrors
|
|
49
|
-
# the POST/PUT input shape. Nullable fields return null when unset.
|
|
50
|
-
#
|
|
51
|
-
# @param created [Integer] Epoch milliseconds when the template was created.
|
|
52
|
-
#
|
|
53
|
-
# @param creator [String] User ID of the creator.
|
|
54
|
-
#
|
|
55
|
-
# @param notification [Courier::Models::NotificationTemplateGetResponse::Notification] Full document shape used in POST and PUT request bodies, and returned inside the
|
|
56
|
-
#
|
|
57
|
-
# @param state [Symbol, Courier::Models::NotificationTemplateGetResponse::State] The template state. Always uppercase.
|
|
58
|
-
#
|
|
59
|
-
# @param updated [Integer] Epoch milliseconds of last update.
|
|
60
|
-
#
|
|
61
|
-
# @param updater [String] User ID of the last updater.
|
|
62
|
-
|
|
63
|
-
# @see Courier::Models::NotificationTemplateGetResponse#notification
|
|
64
|
-
class Notification < Courier::Models::NotificationTemplatePayload
|
|
65
|
-
# @!attribute id
|
|
66
|
-
# The template ID.
|
|
67
|
-
#
|
|
68
|
-
# @return [String]
|
|
69
|
-
required :id, String
|
|
70
|
-
|
|
71
|
-
# @!method initialize(id:)
|
|
72
|
-
# Full document shape used in POST and PUT request bodies, and returned inside the
|
|
73
|
-
# GET response envelope.
|
|
74
|
-
#
|
|
75
|
-
# @param id [String] The template ID.
|
|
76
|
-
end
|
|
77
|
-
|
|
78
|
-
# The template state. Always uppercase.
|
|
79
|
-
#
|
|
80
|
-
# @see Courier::Models::NotificationTemplateGetResponse#state
|
|
81
|
-
module State
|
|
82
|
-
extend Courier::Internal::Type::Enum
|
|
83
|
-
|
|
84
|
-
DRAFT = :DRAFT
|
|
85
|
-
PUBLISHED = :PUBLISHED
|
|
86
|
-
|
|
87
|
-
# @!method self.values
|
|
88
|
-
# @return [Array<Symbol>]
|
|
89
|
-
end
|
|
90
|
-
end
|
|
91
|
-
end
|
|
92
|
-
end
|