trycourier 4.17.0 → 4.18.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 +31 -0
- data/lib/courier/client.rb +3 -3
- data/lib/courier/models/cancel_journey_request.rb +39 -0
- data/lib/courier/models/cancel_journey_response.rb +55 -0
- data/lib/courier/models/{preference_section_list_params.rb → journey_cancel_params.rb} +2 -2
- data/lib/courier/models/journey_experiment.rb +49 -0
- data/lib/courier/models/journey_experiment_variant.rb +44 -0
- data/lib/courier/models/journey_node.rb +1 -1
- data/lib/courier/models/journey_send_node.rb +23 -10
- data/lib/courier/models/publish_preferences_response.rb +1 -1
- data/lib/courier/models/{preference_section_archive_params.rb → workspace_preference_archive_params.rb} +2 -2
- data/lib/courier/models/workspace_preference_create_params.rb +14 -0
- data/lib/courier/models/{preference_section_create_request.rb → workspace_preference_create_request.rb} +8 -8
- data/lib/courier/models/{preference_section_get_response.rb → workspace_preference_get_response.rb} +15 -15
- data/lib/courier/models/{preference_section_publish_params.rb → workspace_preference_list_params.rb} +2 -2
- data/lib/courier/models/workspace_preference_list_response.rb +18 -0
- data/lib/courier/models/{preference_section_create_params.rb → workspace_preference_publish_params.rb} +2 -2
- data/lib/courier/models/{preference_section_replace_params.rb → workspace_preference_replace_params.rb} +2 -2
- data/lib/courier/models/{preference_section_replace_request.rb → workspace_preference_replace_request.rb} +8 -8
- data/lib/courier/models/{preference_section_retrieve_params.rb → workspace_preference_retrieve_params.rb} +2 -2
- data/lib/courier/models/{preference_topic_create_request.rb → workspace_preference_topic_create_request.rb} +9 -9
- data/lib/courier/models/{preference_topic_get_response.rb → workspace_preference_topic_get_response.rb} +8 -8
- data/lib/courier/models/workspace_preference_topic_list_response.rb +17 -0
- data/lib/courier/models/{preference_topic_replace_request.rb → workspace_preference_topic_replace_request.rb} +8 -8
- data/lib/courier/models/{preference_sections → workspace_preferences}/topic_archive_params.rb +2 -2
- data/lib/courier/models/{preference_sections → workspace_preferences}/topic_create_params.rb +3 -3
- data/lib/courier/models/{preference_sections → workspace_preferences}/topic_list_params.rb +2 -2
- data/lib/courier/models/{preference_sections → workspace_preferences}/topic_replace_params.rb +3 -3
- data/lib/courier/models/{preference_sections → workspace_preferences}/topic_retrieve_params.rb +2 -2
- data/lib/courier/models.rb +40 -30
- data/lib/courier/resources/journeys.rb +30 -0
- data/lib/courier/resources/notifications/checks.rb +3 -3
- data/lib/courier/resources/{preference_sections → workspace_preferences}/topics.rb +40 -37
- data/lib/courier/resources/{preference_sections.rb → workspace_preferences.rb} +40 -40
- data/lib/courier/version.rb +1 -1
- data/lib/courier.rb +26 -21
- data/rbi/courier/client.rbi +2 -2
- data/rbi/courier/models/cancel_journey_request.rbi +68 -0
- data/rbi/courier/models/cancel_journey_response.rbi +81 -0
- data/rbi/courier/models/journey_cancel_params.rbi +27 -0
- data/rbi/courier/models/journey_experiment.rbi +74 -0
- data/rbi/courier/models/journey_experiment_variant.rbi +61 -0
- data/rbi/courier/models/journey_send_node.rbi +32 -11
- data/rbi/courier/models/{preference_section_retrieve_params.rbi → workspace_preference_archive_params.rbi} +2 -2
- data/rbi/courier/models/{preference_section_create_params.rbi → workspace_preference_create_params.rbi} +2 -2
- data/rbi/courier/models/{preference_section_create_request.rbi → workspace_preference_create_request.rbi} +9 -9
- data/rbi/courier/models/{preference_section_get_response.rbi → workspace_preference_get_response.rbi} +17 -16
- data/rbi/courier/models/{preference_section_list_params.rbi → workspace_preference_list_params.rbi} +2 -2
- data/rbi/courier/models/{preference_topic_list_response.rbi → workspace_preference_list_response.rbi} +6 -6
- data/rbi/courier/models/{preference_section_publish_params.rbi → workspace_preference_publish_params.rbi} +2 -2
- data/rbi/courier/models/{preference_section_replace_params.rbi → workspace_preference_replace_params.rbi} +2 -2
- data/rbi/courier/models/{preference_section_replace_request.rbi → workspace_preference_replace_request.rbi} +9 -9
- data/rbi/courier/models/{preference_section_archive_params.rbi → workspace_preference_retrieve_params.rbi} +2 -2
- data/rbi/courier/models/{preference_topic_create_request.rbi → workspace_preference_topic_create_request.rbi} +22 -17
- data/rbi/courier/models/{preference_topic_get_response.rbi → workspace_preference_topic_get_response.rbi} +23 -17
- data/rbi/courier/models/workspace_preference_topic_list_response.rbi +36 -0
- data/rbi/courier/models/{preference_topic_replace_request.rbi → workspace_preference_topic_replace_request.rbi} +22 -17
- data/rbi/courier/models/{preference_sections → workspace_preferences}/topic_archive_params.rbi +2 -2
- data/rbi/courier/models/{preference_sections → workspace_preferences}/topic_create_params.rbi +3 -3
- data/rbi/courier/models/{preference_sections → workspace_preferences}/topic_list_params.rbi +2 -2
- data/rbi/courier/models/{preference_sections → workspace_preferences}/topic_replace_params.rbi +3 -3
- data/rbi/courier/models/{preference_sections → workspace_preferences}/topic_retrieve_params.rbi +2 -2
- data/rbi/courier/models.rbi +53 -36
- data/rbi/courier/resources/journeys.rbi +25 -0
- data/rbi/courier/resources/notifications/checks.rbi +3 -3
- data/rbi/courier/resources/{preference_sections → workspace_preferences}/topics.rbi +25 -22
- data/rbi/courier/resources/{preference_sections.rbi → workspace_preferences.rbi} +27 -27
- data/sig/courier/client.rbs +1 -1
- data/sig/courier/models/cancel_journey_request.rbs +33 -0
- data/sig/courier/models/cancel_journey_response.rbs +35 -0
- data/sig/courier/models/{preference_section_list_params.rbs → journey_cancel_params.rbs} +2 -2
- data/sig/courier/models/journey_experiment.rbs +39 -0
- data/sig/courier/models/journey_experiment_variant.rbs +32 -0
- data/sig/courier/models/journey_send_node.rbs +19 -8
- data/sig/courier/models/{preference_section_retrieve_params.rbs → workspace_preference_archive_params.rbs} +2 -2
- data/sig/courier/models/workspace_preference_create_params.rbs +15 -0
- data/sig/courier/models/{preference_section_replace_request.rbs → workspace_preference_create_request.rbs} +2 -2
- data/sig/courier/models/{preference_section_get_response.rbs → workspace_preference_get_response.rbs} +6 -6
- data/sig/courier/models/{preference_section_publish_params.rbs → workspace_preference_list_params.rbs} +2 -2
- data/sig/courier/models/workspace_preference_list_response.rbs +18 -0
- data/sig/courier/models/{preference_section_create_params.rbs → workspace_preference_publish_params.rbs} +2 -2
- data/sig/courier/models/{preference_section_replace_params.rbs → workspace_preference_replace_params.rbs} +2 -2
- data/sig/courier/models/{preference_section_create_request.rbs → workspace_preference_replace_request.rbs} +2 -2
- data/sig/courier/models/{preference_section_archive_params.rbs → workspace_preference_retrieve_params.rbs} +2 -2
- data/sig/courier/models/{preference_topic_create_request.rbs → workspace_preference_topic_create_request.rbs} +12 -12
- data/sig/courier/models/{preference_topic_get_response.rbs → workspace_preference_topic_get_response.rbs} +12 -12
- data/sig/courier/models/workspace_preference_topic_list_response.rbs +18 -0
- data/sig/courier/models/{preference_topic_replace_request.rbs → workspace_preference_topic_replace_request.rbs} +12 -12
- data/sig/courier/models/{preference_sections → workspace_preferences}/topic_archive_params.rbs +1 -1
- data/sig/courier/models/{preference_sections → workspace_preferences}/topic_create_params.rbs +2 -2
- data/sig/courier/models/{preference_sections → workspace_preferences}/topic_list_params.rbs +1 -1
- data/sig/courier/models/{preference_sections → workspace_preferences}/topic_replace_params.rbs +2 -2
- data/sig/courier/models/{preference_sections → workspace_preferences}/topic_retrieve_params.rbs +1 -1
- data/sig/courier/models.rbs +40 -30
- data/sig/courier/resources/journeys.rbs +5 -0
- data/sig/courier/resources/{preference_sections → workspace_preferences}/topics.rbs +9 -9
- data/sig/courier/resources/{preference_sections.rbs → workspace_preferences.rbs} +6 -6
- metadata +80 -65
- data/lib/courier/models/preference_section_list_response.rb +0 -18
- data/lib/courier/models/preference_topic_list_response.rb +0 -17
- data/rbi/courier/models/preference_section_list_response.rbi +0 -35
- data/sig/courier/models/preference_section_list_response.rbs +0 -18
- data/sig/courier/models/preference_topic_list_response.rbs +0 -16
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
module Courier
|
|
2
2
|
module Models
|
|
3
|
-
type
|
|
3
|
+
type workspace_preference_replace_request =
|
|
4
4
|
{
|
|
5
5
|
name: String,
|
|
6
6
|
has_custom_routing: bool?,
|
|
7
7
|
routing_options: ::Array[Courier::Models::channel_classification]?
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
class
|
|
10
|
+
class WorkspacePreferenceReplaceRequest < Courier::Internal::Type::BaseModel
|
|
11
11
|
attr_accessor name: String
|
|
12
12
|
|
|
13
13
|
attr_accessor has_custom_routing: bool?
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
module Courier
|
|
2
2
|
module Models
|
|
3
|
-
type
|
|
3
|
+
type workspace_preference_retrieve_params =
|
|
4
4
|
{ section_id: String } & Courier::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
|
-
class
|
|
6
|
+
class WorkspacePreferenceRetrieveParams < Courier::Internal::Type::BaseModel
|
|
7
7
|
extend Courier::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Courier::Internal::Type::RequestParameters
|
|
9
9
|
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
module Courier
|
|
2
2
|
module Models
|
|
3
|
-
type
|
|
3
|
+
type workspace_preference_topic_create_request =
|
|
4
4
|
{
|
|
5
|
-
default_status: Courier::Models::
|
|
5
|
+
default_status: Courier::Models::WorkspacePreferenceTopicCreateRequest::default_status,
|
|
6
6
|
name: String,
|
|
7
|
-
allowed_preferences: ::Array[Courier::Models::
|
|
7
|
+
allowed_preferences: ::Array[Courier::Models::WorkspacePreferenceTopicCreateRequest::allowed_preference]?,
|
|
8
8
|
include_unsubscribe_header: bool?,
|
|
9
9
|
routing_options: ::Array[Courier::Models::channel_classification]?,
|
|
10
10
|
topic_data: ::Hash[Symbol, top]?
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
class
|
|
14
|
-
attr_accessor default_status: Courier::Models::
|
|
13
|
+
class WorkspacePreferenceTopicCreateRequest < Courier::Internal::Type::BaseModel
|
|
14
|
+
attr_accessor default_status: Courier::Models::WorkspacePreferenceTopicCreateRequest::default_status
|
|
15
15
|
|
|
16
16
|
attr_accessor name: String
|
|
17
17
|
|
|
18
|
-
attr_accessor allowed_preferences: ::Array[Courier::Models::
|
|
18
|
+
attr_accessor allowed_preferences: ::Array[Courier::Models::WorkspacePreferenceTopicCreateRequest::allowed_preference]?
|
|
19
19
|
|
|
20
20
|
attr_accessor include_unsubscribe_header: bool?
|
|
21
21
|
|
|
@@ -24,18 +24,18 @@ module Courier
|
|
|
24
24
|
attr_accessor topic_data: ::Hash[Symbol, top]?
|
|
25
25
|
|
|
26
26
|
def initialize: (
|
|
27
|
-
default_status: Courier::Models::
|
|
27
|
+
default_status: Courier::Models::WorkspacePreferenceTopicCreateRequest::default_status,
|
|
28
28
|
name: String,
|
|
29
|
-
?allowed_preferences: ::Array[Courier::Models::
|
|
29
|
+
?allowed_preferences: ::Array[Courier::Models::WorkspacePreferenceTopicCreateRequest::allowed_preference]?,
|
|
30
30
|
?include_unsubscribe_header: bool?,
|
|
31
31
|
?routing_options: ::Array[Courier::Models::channel_classification]?,
|
|
32
32
|
?topic_data: ::Hash[Symbol, top]?
|
|
33
33
|
) -> void
|
|
34
34
|
|
|
35
35
|
def to_hash: -> {
|
|
36
|
-
default_status: Courier::Models::
|
|
36
|
+
default_status: Courier::Models::WorkspacePreferenceTopicCreateRequest::default_status,
|
|
37
37
|
name: String,
|
|
38
|
-
allowed_preferences: ::Array[Courier::Models::
|
|
38
|
+
allowed_preferences: ::Array[Courier::Models::WorkspacePreferenceTopicCreateRequest::allowed_preference]?,
|
|
39
39
|
include_unsubscribe_header: bool?,
|
|
40
40
|
routing_options: ::Array[Courier::Models::channel_classification]?,
|
|
41
41
|
topic_data: ::Hash[Symbol, top]?
|
|
@@ -50,7 +50,7 @@ module Courier
|
|
|
50
50
|
OPTED_IN: :OPTED_IN
|
|
51
51
|
REQUIRED: :REQUIRED
|
|
52
52
|
|
|
53
|
-
def self?.values: -> ::Array[Courier::Models::
|
|
53
|
+
def self?.values: -> ::Array[Courier::Models::WorkspacePreferenceTopicCreateRequest::default_status]
|
|
54
54
|
end
|
|
55
55
|
|
|
56
56
|
type allowed_preference = :snooze | :channel_preferences
|
|
@@ -61,7 +61,7 @@ module Courier
|
|
|
61
61
|
SNOOZE: :snooze
|
|
62
62
|
CHANNEL_PREFERENCES: :channel_preferences
|
|
63
63
|
|
|
64
|
-
def self?.values: -> ::Array[Courier::Models::
|
|
64
|
+
def self?.values: -> ::Array[Courier::Models::WorkspacePreferenceTopicCreateRequest::allowed_preference]
|
|
65
65
|
end
|
|
66
66
|
end
|
|
67
67
|
end
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
module Courier
|
|
2
2
|
module Models
|
|
3
|
-
type
|
|
3
|
+
type workspace_preference_topic_get_response =
|
|
4
4
|
{
|
|
5
5
|
id: String,
|
|
6
|
-
allowed_preferences: ::Array[Courier::Models::
|
|
6
|
+
allowed_preferences: ::Array[Courier::Models::WorkspacePreferenceTopicGetResponse::allowed_preference],
|
|
7
7
|
created: String,
|
|
8
|
-
default_status: Courier::Models::
|
|
8
|
+
default_status: Courier::Models::WorkspacePreferenceTopicGetResponse::default_status,
|
|
9
9
|
include_unsubscribe_header: bool,
|
|
10
10
|
name: String,
|
|
11
11
|
routing_options: ::Array[Courier::Models::channel_classification],
|
|
@@ -15,14 +15,14 @@ module Courier
|
|
|
15
15
|
updater: String?
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
class
|
|
18
|
+
class WorkspacePreferenceTopicGetResponse < Courier::Internal::Type::BaseModel
|
|
19
19
|
attr_accessor id: String
|
|
20
20
|
|
|
21
|
-
attr_accessor allowed_preferences: ::Array[Courier::Models::
|
|
21
|
+
attr_accessor allowed_preferences: ::Array[Courier::Models::WorkspacePreferenceTopicGetResponse::allowed_preference]
|
|
22
22
|
|
|
23
23
|
attr_accessor created: String
|
|
24
24
|
|
|
25
|
-
attr_accessor default_status: Courier::Models::
|
|
25
|
+
attr_accessor default_status: Courier::Models::WorkspacePreferenceTopicGetResponse::default_status
|
|
26
26
|
|
|
27
27
|
attr_accessor include_unsubscribe_header: bool
|
|
28
28
|
|
|
@@ -40,9 +40,9 @@ module Courier
|
|
|
40
40
|
|
|
41
41
|
def initialize: (
|
|
42
42
|
id: String,
|
|
43
|
-
allowed_preferences: ::Array[Courier::Models::
|
|
43
|
+
allowed_preferences: ::Array[Courier::Models::WorkspacePreferenceTopicGetResponse::allowed_preference],
|
|
44
44
|
created: String,
|
|
45
|
-
default_status: Courier::Models::
|
|
45
|
+
default_status: Courier::Models::WorkspacePreferenceTopicGetResponse::default_status,
|
|
46
46
|
include_unsubscribe_header: bool,
|
|
47
47
|
name: String,
|
|
48
48
|
routing_options: ::Array[Courier::Models::channel_classification],
|
|
@@ -54,9 +54,9 @@ module Courier
|
|
|
54
54
|
|
|
55
55
|
def to_hash: -> {
|
|
56
56
|
id: String,
|
|
57
|
-
allowed_preferences: ::Array[Courier::Models::
|
|
57
|
+
allowed_preferences: ::Array[Courier::Models::WorkspacePreferenceTopicGetResponse::allowed_preference],
|
|
58
58
|
created: String,
|
|
59
|
-
default_status: Courier::Models::
|
|
59
|
+
default_status: Courier::Models::WorkspacePreferenceTopicGetResponse::default_status,
|
|
60
60
|
include_unsubscribe_header: bool,
|
|
61
61
|
name: String,
|
|
62
62
|
routing_options: ::Array[Courier::Models::channel_classification],
|
|
@@ -74,7 +74,7 @@ module Courier
|
|
|
74
74
|
SNOOZE: :snooze
|
|
75
75
|
CHANNEL_PREFERENCES: :channel_preferences
|
|
76
76
|
|
|
77
|
-
def self?.values: -> ::Array[Courier::Models::
|
|
77
|
+
def self?.values: -> ::Array[Courier::Models::WorkspacePreferenceTopicGetResponse::allowed_preference]
|
|
78
78
|
end
|
|
79
79
|
|
|
80
80
|
type default_status = :OPTED_OUT | :OPTED_IN | :REQUIRED
|
|
@@ -86,7 +86,7 @@ module Courier
|
|
|
86
86
|
OPTED_IN: :OPTED_IN
|
|
87
87
|
REQUIRED: :REQUIRED
|
|
88
88
|
|
|
89
|
-
def self?.values: -> ::Array[Courier::Models::
|
|
89
|
+
def self?.values: -> ::Array[Courier::Models::WorkspacePreferenceTopicGetResponse::default_status]
|
|
90
90
|
end
|
|
91
91
|
end
|
|
92
92
|
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
module Courier
|
|
2
|
+
module Models
|
|
3
|
+
type workspace_preference_topic_list_response =
|
|
4
|
+
{ results: ::Array[Courier::WorkspacePreferenceTopicGetResponse] }
|
|
5
|
+
|
|
6
|
+
class WorkspacePreferenceTopicListResponse < Courier::Internal::Type::BaseModel
|
|
7
|
+
attr_accessor results: ::Array[Courier::WorkspacePreferenceTopicGetResponse]
|
|
8
|
+
|
|
9
|
+
def initialize: (
|
|
10
|
+
results: ::Array[Courier::WorkspacePreferenceTopicGetResponse]
|
|
11
|
+
) -> void
|
|
12
|
+
|
|
13
|
+
def to_hash: -> {
|
|
14
|
+
results: ::Array[Courier::WorkspacePreferenceTopicGetResponse]
|
|
15
|
+
}
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
module Courier
|
|
2
2
|
module Models
|
|
3
|
-
type
|
|
3
|
+
type workspace_preference_topic_replace_request =
|
|
4
4
|
{
|
|
5
|
-
default_status: Courier::Models::
|
|
5
|
+
default_status: Courier::Models::WorkspacePreferenceTopicReplaceRequest::default_status,
|
|
6
6
|
name: String,
|
|
7
|
-
allowed_preferences: ::Array[Courier::Models::
|
|
7
|
+
allowed_preferences: ::Array[Courier::Models::WorkspacePreferenceTopicReplaceRequest::allowed_preference]?,
|
|
8
8
|
include_unsubscribe_header: bool?,
|
|
9
9
|
routing_options: ::Array[Courier::Models::channel_classification]?,
|
|
10
10
|
topic_data: ::Hash[Symbol, top]?
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
class
|
|
14
|
-
attr_accessor default_status: Courier::Models::
|
|
13
|
+
class WorkspacePreferenceTopicReplaceRequest < Courier::Internal::Type::BaseModel
|
|
14
|
+
attr_accessor default_status: Courier::Models::WorkspacePreferenceTopicReplaceRequest::default_status
|
|
15
15
|
|
|
16
16
|
attr_accessor name: String
|
|
17
17
|
|
|
18
|
-
attr_accessor allowed_preferences: ::Array[Courier::Models::
|
|
18
|
+
attr_accessor allowed_preferences: ::Array[Courier::Models::WorkspacePreferenceTopicReplaceRequest::allowed_preference]?
|
|
19
19
|
|
|
20
20
|
attr_accessor include_unsubscribe_header: bool?
|
|
21
21
|
|
|
@@ -24,18 +24,18 @@ module Courier
|
|
|
24
24
|
attr_accessor topic_data: ::Hash[Symbol, top]?
|
|
25
25
|
|
|
26
26
|
def initialize: (
|
|
27
|
-
default_status: Courier::Models::
|
|
27
|
+
default_status: Courier::Models::WorkspacePreferenceTopicReplaceRequest::default_status,
|
|
28
28
|
name: String,
|
|
29
|
-
?allowed_preferences: ::Array[Courier::Models::
|
|
29
|
+
?allowed_preferences: ::Array[Courier::Models::WorkspacePreferenceTopicReplaceRequest::allowed_preference]?,
|
|
30
30
|
?include_unsubscribe_header: bool?,
|
|
31
31
|
?routing_options: ::Array[Courier::Models::channel_classification]?,
|
|
32
32
|
?topic_data: ::Hash[Symbol, top]?
|
|
33
33
|
) -> void
|
|
34
34
|
|
|
35
35
|
def to_hash: -> {
|
|
36
|
-
default_status: Courier::Models::
|
|
36
|
+
default_status: Courier::Models::WorkspacePreferenceTopicReplaceRequest::default_status,
|
|
37
37
|
name: String,
|
|
38
|
-
allowed_preferences: ::Array[Courier::Models::
|
|
38
|
+
allowed_preferences: ::Array[Courier::Models::WorkspacePreferenceTopicReplaceRequest::allowed_preference]?,
|
|
39
39
|
include_unsubscribe_header: bool?,
|
|
40
40
|
routing_options: ::Array[Courier::Models::channel_classification]?,
|
|
41
41
|
topic_data: ::Hash[Symbol, top]?
|
|
@@ -50,7 +50,7 @@ module Courier
|
|
|
50
50
|
OPTED_IN: :OPTED_IN
|
|
51
51
|
REQUIRED: :REQUIRED
|
|
52
52
|
|
|
53
|
-
def self?.values: -> ::Array[Courier::Models::
|
|
53
|
+
def self?.values: -> ::Array[Courier::Models::WorkspacePreferenceTopicReplaceRequest::default_status]
|
|
54
54
|
end
|
|
55
55
|
|
|
56
56
|
type allowed_preference = :snooze | :channel_preferences
|
|
@@ -61,7 +61,7 @@ module Courier
|
|
|
61
61
|
SNOOZE: :snooze
|
|
62
62
|
CHANNEL_PREFERENCES: :channel_preferences
|
|
63
63
|
|
|
64
|
-
def self?.values: -> ::Array[Courier::Models::
|
|
64
|
+
def self?.values: -> ::Array[Courier::Models::WorkspacePreferenceTopicReplaceRequest::allowed_preference]
|
|
65
65
|
end
|
|
66
66
|
end
|
|
67
67
|
end
|
data/sig/courier/models/{preference_sections → workspace_preferences}/topic_create_params.rbs
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
module Courier
|
|
2
2
|
module Models
|
|
3
|
-
module
|
|
3
|
+
module WorkspacePreferences
|
|
4
4
|
type topic_create_params =
|
|
5
5
|
{ section_id: String } & Courier::Internal::Type::request_parameters
|
|
6
6
|
|
|
7
|
-
class TopicCreateParams < Courier::Models::
|
|
7
|
+
class TopicCreateParams < Courier::Models::WorkspacePreferenceTopicCreateRequest
|
|
8
8
|
extend Courier::Internal::Type::RequestParameters::Converter
|
|
9
9
|
include Courier::Internal::Type::RequestParameters
|
|
10
10
|
|
data/sig/courier/models/{preference_sections → workspace_preferences}/topic_replace_params.rbs
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
module Courier
|
|
2
2
|
module Models
|
|
3
|
-
module
|
|
3
|
+
module WorkspacePreferences
|
|
4
4
|
type topic_replace_params =
|
|
5
5
|
{ section_id: String, topic_id: String }
|
|
6
6
|
& Courier::Internal::Type::request_parameters
|
|
7
7
|
|
|
8
|
-
class TopicReplaceParams < Courier::Models::
|
|
8
|
+
class TopicReplaceParams < Courier::Models::WorkspacePreferenceTopicReplaceRequest
|
|
9
9
|
extend Courier::Internal::Type::RequestParameters::Converter
|
|
10
10
|
include Courier::Internal::Type::RequestParameters
|
|
11
11
|
|
data/sig/courier/models.rbs
CHANGED
|
@@ -83,6 +83,10 @@ module Courier
|
|
|
83
83
|
|
|
84
84
|
class BulkRunJobParams = Courier::Models::BulkRunJobParams
|
|
85
85
|
|
|
86
|
+
module CancelJourneyRequest = Courier::Models::CancelJourneyRequest
|
|
87
|
+
|
|
88
|
+
module CancelJourneyResponse = Courier::Models::CancelJourneyResponse
|
|
89
|
+
|
|
86
90
|
class Channel = Courier::Models::Channel
|
|
87
91
|
|
|
88
92
|
module ChannelClassification = Courier::Models::ChannelClassification
|
|
@@ -167,6 +171,8 @@ module Courier
|
|
|
167
171
|
|
|
168
172
|
class JourneyArchiveParams = Courier::Models::JourneyArchiveParams
|
|
169
173
|
|
|
174
|
+
class JourneyCancelParams = Courier::Models::JourneyCancelParams
|
|
175
|
+
|
|
170
176
|
JourneyConditionAtom: Courier::Internal::Type::Converter
|
|
171
177
|
|
|
172
178
|
class JourneyConditionGroup = Courier::Models::JourneyConditionGroup
|
|
@@ -183,6 +189,10 @@ module Courier
|
|
|
183
189
|
|
|
184
190
|
class JourneyExitNode = Courier::Models::JourneyExitNode
|
|
185
191
|
|
|
192
|
+
class JourneyExperiment = Courier::Models::JourneyExperiment
|
|
193
|
+
|
|
194
|
+
class JourneyExperimentVariant = Courier::Models::JourneyExperimentVariant
|
|
195
|
+
|
|
186
196
|
class JourneyFetchGetDeleteNode = Courier::Models::JourneyFetchGetDeleteNode
|
|
187
197
|
|
|
188
198
|
class JourneyFetchPostPutNode = Courier::Models::JourneyFetchPostPutNode
|
|
@@ -361,38 +371,8 @@ module Courier
|
|
|
361
371
|
|
|
362
372
|
class Preference = Courier::Models::Preference
|
|
363
373
|
|
|
364
|
-
class PreferenceSectionArchiveParams = Courier::Models::PreferenceSectionArchiveParams
|
|
365
|
-
|
|
366
|
-
class PreferenceSectionCreateParams = Courier::Models::PreferenceSectionCreateParams
|
|
367
|
-
|
|
368
|
-
class PreferenceSectionCreateRequest = Courier::Models::PreferenceSectionCreateRequest
|
|
369
|
-
|
|
370
|
-
class PreferenceSectionGetResponse = Courier::Models::PreferenceSectionGetResponse
|
|
371
|
-
|
|
372
|
-
class PreferenceSectionListParams = Courier::Models::PreferenceSectionListParams
|
|
373
|
-
|
|
374
|
-
class PreferenceSectionListResponse = Courier::Models::PreferenceSectionListResponse
|
|
375
|
-
|
|
376
|
-
class PreferenceSectionPublishParams = Courier::Models::PreferenceSectionPublishParams
|
|
377
|
-
|
|
378
|
-
class PreferenceSectionReplaceParams = Courier::Models::PreferenceSectionReplaceParams
|
|
379
|
-
|
|
380
|
-
class PreferenceSectionReplaceRequest = Courier::Models::PreferenceSectionReplaceRequest
|
|
381
|
-
|
|
382
|
-
class PreferenceSectionRetrieveParams = Courier::Models::PreferenceSectionRetrieveParams
|
|
383
|
-
|
|
384
|
-
module PreferenceSections = Courier::Models::PreferenceSections
|
|
385
|
-
|
|
386
374
|
module PreferenceStatus = Courier::Models::PreferenceStatus
|
|
387
375
|
|
|
388
|
-
class PreferenceTopicCreateRequest = Courier::Models::PreferenceTopicCreateRequest
|
|
389
|
-
|
|
390
|
-
class PreferenceTopicGetResponse = Courier::Models::PreferenceTopicGetResponse
|
|
391
|
-
|
|
392
|
-
class PreferenceTopicListResponse = Courier::Models::PreferenceTopicListResponse
|
|
393
|
-
|
|
394
|
-
class PreferenceTopicReplaceRequest = Courier::Models::PreferenceTopicReplaceRequest
|
|
395
|
-
|
|
396
376
|
class ProfileCreateParams = Courier::Models::ProfileCreateParams
|
|
397
377
|
|
|
398
378
|
class ProfileDeleteParams = Courier::Models::ProfileDeleteParams
|
|
@@ -544,4 +524,34 @@ module Courier
|
|
|
544
524
|
class WebhookRecipient = Courier::Models::WebhookRecipient
|
|
545
525
|
|
|
546
526
|
class WidgetBackground = Courier::Models::WidgetBackground
|
|
527
|
+
|
|
528
|
+
class WorkspacePreferenceArchiveParams = Courier::Models::WorkspacePreferenceArchiveParams
|
|
529
|
+
|
|
530
|
+
class WorkspacePreferenceCreateParams = Courier::Models::WorkspacePreferenceCreateParams
|
|
531
|
+
|
|
532
|
+
class WorkspacePreferenceCreateRequest = Courier::Models::WorkspacePreferenceCreateRequest
|
|
533
|
+
|
|
534
|
+
class WorkspacePreferenceGetResponse = Courier::Models::WorkspacePreferenceGetResponse
|
|
535
|
+
|
|
536
|
+
class WorkspacePreferenceListParams = Courier::Models::WorkspacePreferenceListParams
|
|
537
|
+
|
|
538
|
+
class WorkspacePreferenceListResponse = Courier::Models::WorkspacePreferenceListResponse
|
|
539
|
+
|
|
540
|
+
class WorkspacePreferencePublishParams = Courier::Models::WorkspacePreferencePublishParams
|
|
541
|
+
|
|
542
|
+
class WorkspacePreferenceReplaceParams = Courier::Models::WorkspacePreferenceReplaceParams
|
|
543
|
+
|
|
544
|
+
class WorkspacePreferenceReplaceRequest = Courier::Models::WorkspacePreferenceReplaceRequest
|
|
545
|
+
|
|
546
|
+
class WorkspacePreferenceRetrieveParams = Courier::Models::WorkspacePreferenceRetrieveParams
|
|
547
|
+
|
|
548
|
+
module WorkspacePreferences = Courier::Models::WorkspacePreferences
|
|
549
|
+
|
|
550
|
+
class WorkspacePreferenceTopicCreateRequest = Courier::Models::WorkspacePreferenceTopicCreateRequest
|
|
551
|
+
|
|
552
|
+
class WorkspacePreferenceTopicGetResponse = Courier::Models::WorkspacePreferenceTopicGetResponse
|
|
553
|
+
|
|
554
|
+
class WorkspacePreferenceTopicListResponse = Courier::Models::WorkspacePreferenceTopicListResponse
|
|
555
|
+
|
|
556
|
+
class WorkspacePreferenceTopicReplaceRequest = Courier::Models::WorkspacePreferenceTopicReplaceRequest
|
|
547
557
|
end
|
|
@@ -28,6 +28,11 @@ module Courier
|
|
|
28
28
|
?request_options: Courier::request_opts
|
|
29
29
|
) -> nil
|
|
30
30
|
|
|
31
|
+
def cancel: (
|
|
32
|
+
cancel_journey_request: Courier::Models::cancel_journey_request,
|
|
33
|
+
?request_options: Courier::request_opts
|
|
34
|
+
) -> Courier::Models::cancel_journey_response
|
|
35
|
+
|
|
31
36
|
def invoke: (
|
|
32
37
|
String template_id,
|
|
33
38
|
?data: ::Hash[Symbol, top],
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
module Courier
|
|
2
2
|
module Resources
|
|
3
|
-
class
|
|
3
|
+
class WorkspacePreferences
|
|
4
4
|
class Topics
|
|
5
5
|
def create: (
|
|
6
6
|
String section_id,
|
|
7
|
-
default_status: Courier::Models::
|
|
7
|
+
default_status: Courier::Models::WorkspacePreferenceTopicCreateRequest::default_status,
|
|
8
8
|
name: String,
|
|
9
|
-
?allowed_preferences: ::Array[Courier::Models::
|
|
9
|
+
?allowed_preferences: ::Array[Courier::Models::WorkspacePreferenceTopicCreateRequest::allowed_preference]?,
|
|
10
10
|
?include_unsubscribe_header: bool?,
|
|
11
11
|
?routing_options: ::Array[Courier::Models::channel_classification]?,
|
|
12
12
|
?topic_data: ::Hash[Symbol, top]?,
|
|
13
13
|
?request_options: Courier::request_opts
|
|
14
|
-
) -> Courier::
|
|
14
|
+
) -> Courier::WorkspacePreferenceTopicGetResponse
|
|
15
15
|
|
|
16
16
|
def retrieve: (
|
|
17
17
|
String topic_id,
|
|
18
18
|
section_id: String,
|
|
19
19
|
?request_options: Courier::request_opts
|
|
20
|
-
) -> Courier::
|
|
20
|
+
) -> Courier::WorkspacePreferenceTopicGetResponse
|
|
21
21
|
|
|
22
22
|
def list: (
|
|
23
23
|
String section_id,
|
|
24
24
|
?request_options: Courier::request_opts
|
|
25
|
-
) -> Courier::
|
|
25
|
+
) -> Courier::WorkspacePreferenceTopicListResponse
|
|
26
26
|
|
|
27
27
|
def archive: (
|
|
28
28
|
String topic_id,
|
|
@@ -33,14 +33,14 @@ module Courier
|
|
|
33
33
|
def replace: (
|
|
34
34
|
String topic_id,
|
|
35
35
|
section_id: String,
|
|
36
|
-
default_status: Courier::Models::
|
|
36
|
+
default_status: Courier::Models::WorkspacePreferenceTopicReplaceRequest::default_status,
|
|
37
37
|
name: String,
|
|
38
|
-
?allowed_preferences: ::Array[Courier::Models::
|
|
38
|
+
?allowed_preferences: ::Array[Courier::Models::WorkspacePreferenceTopicReplaceRequest::allowed_preference]?,
|
|
39
39
|
?include_unsubscribe_header: bool?,
|
|
40
40
|
?routing_options: ::Array[Courier::Models::channel_classification]?,
|
|
41
41
|
?topic_data: ::Hash[Symbol, top]?,
|
|
42
42
|
?request_options: Courier::request_opts
|
|
43
|
-
) -> Courier::
|
|
43
|
+
) -> Courier::WorkspacePreferenceTopicGetResponse
|
|
44
44
|
|
|
45
45
|
def initialize: (client: Courier::Client) -> void
|
|
46
46
|
end
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
module Courier
|
|
2
2
|
module Resources
|
|
3
|
-
class
|
|
4
|
-
attr_reader topics: Courier::Resources::
|
|
3
|
+
class WorkspacePreferences
|
|
4
|
+
attr_reader topics: Courier::Resources::WorkspacePreferences::Topics
|
|
5
5
|
|
|
6
6
|
def create: (
|
|
7
7
|
name: String,
|
|
8
8
|
?has_custom_routing: bool?,
|
|
9
9
|
?routing_options: ::Array[Courier::Models::channel_classification]?,
|
|
10
10
|
?request_options: Courier::request_opts
|
|
11
|
-
) -> Courier::
|
|
11
|
+
) -> Courier::WorkspacePreferenceGetResponse
|
|
12
12
|
|
|
13
13
|
def retrieve: (
|
|
14
14
|
String section_id,
|
|
15
15
|
?request_options: Courier::request_opts
|
|
16
|
-
) -> Courier::
|
|
16
|
+
) -> Courier::WorkspacePreferenceGetResponse
|
|
17
17
|
|
|
18
18
|
def list: (
|
|
19
19
|
?request_options: Courier::request_opts
|
|
20
|
-
) -> Courier::
|
|
20
|
+
) -> Courier::WorkspacePreferenceListResponse
|
|
21
21
|
|
|
22
22
|
def archive: (
|
|
23
23
|
String section_id,
|
|
@@ -34,7 +34,7 @@ module Courier
|
|
|
34
34
|
?has_custom_routing: bool?,
|
|
35
35
|
?routing_options: ::Array[Courier::Models::channel_classification]?,
|
|
36
36
|
?request_options: Courier::request_opts
|
|
37
|
-
) -> Courier::
|
|
37
|
+
) -> Courier::WorkspacePreferenceGetResponse
|
|
38
38
|
|
|
39
39
|
def initialize: (client: Courier::Client) -> void
|
|
40
40
|
end
|