trycourier 6.4.4 → 6.6.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 +20 -0
- data/README.md +1 -1
- data/lib/courier/models/digest_day_of_week.rb +21 -0
- data/lib/courier/models/digest_frequency.rb +21 -0
- data/lib/courier/models/email_footer.rb +114 -7
- data/lib/courier/models/journey_conditions_field.rb +11 -1
- data/lib/courier/models/journey_node.rb +17 -2
- data/lib/courier/models/topic_digest_category.rb +71 -0
- data/lib/courier/models/topic_digest_release_request.rb +35 -0
- data/lib/courier/models/topic_digest_request.rb +63 -0
- data/lib/courier/models/topic_digest_response.rb +66 -0
- data/lib/courier/models/topic_digest_schedule_request.rb +93 -0
- data/lib/courier/models/topic_digest_schedule_response.rb +103 -0
- data/lib/courier/models/users/preference_update_or_create_topic_params.rb +13 -1
- data/lib/courier/models/users/token_add_single_params.rb +13 -5
- data/lib/courier/models/users/token_update_params.rb +30 -4
- data/lib/courier/models/users/topic_preference.rb +12 -1
- data/lib/courier/models/users/user_token.rb +13 -5
- data/lib/courier/models/workspace_preference_topic_create_request.rb +15 -1
- data/lib/courier/models/workspace_preference_topic_get_response.rb +9 -1
- data/lib/courier/models/workspace_preference_topic_replace_request.rb +15 -1
- data/lib/courier/models/workspace_preferences/topic_delete_digest_params.rb +28 -0
- data/lib/courier/models/workspace_preferences/topic_release_digest_params.rb +28 -0
- data/lib/courier/models.rb +16 -0
- data/lib/courier/resources/digests/schedules.rb +1 -1
- data/lib/courier/resources/users/tokens.rb +1 -1
- data/lib/courier/resources/workspace_preferences/topics.rb +77 -4
- data/lib/courier/resources/workspace_preferences.rb +0 -2
- data/lib/courier/version.rb +1 -1
- data/lib/courier.rb +10 -0
- data/rbi/courier/models/digest_day_of_week.rbi +25 -0
- data/rbi/courier/models/digest_frequency.rbi +25 -0
- data/rbi/courier/models/email_footer.rbi +229 -7
- data/rbi/courier/models/journey_node.rbi +12 -1
- data/rbi/courier/models/topic_digest_category.rbi +116 -0
- data/rbi/courier/models/topic_digest_release_request.rbi +51 -0
- data/rbi/courier/models/topic_digest_request.rbi +95 -0
- data/rbi/courier/models/topic_digest_response.rbi +98 -0
- data/rbi/courier/models/topic_digest_schedule_request.rbi +141 -0
- data/rbi/courier/models/topic_digest_schedule_response.rbi +159 -0
- data/rbi/courier/models/users/preference_update_or_create_topic_params.rbi +16 -0
- data/rbi/courier/models/users/token_add_single_params.rbi +18 -6
- data/rbi/courier/models/users/token_update_params.rbi +59 -7
- data/rbi/courier/models/users/topic_preference.rbi +17 -0
- data/rbi/courier/models/users/user_token.rbi +18 -6
- data/rbi/courier/models/workspace_preference_topic_create_request.rbi +25 -0
- data/rbi/courier/models/workspace_preference_topic_get_response.rbi +13 -0
- data/rbi/courier/models/workspace_preference_topic_replace_request.rbi +25 -0
- data/rbi/courier/models/workspace_preferences/topic_delete_digest_params.rbi +48 -0
- data/rbi/courier/models/workspace_preferences/topic_release_digest_params.rbi +48 -0
- data/rbi/courier/models.rbi +16 -0
- data/rbi/courier/resources/digests/schedules.rbi +5 -2
- data/rbi/courier/resources/users/tokens.rbi +6 -2
- data/rbi/courier/resources/workspace_preferences/topics.rbi +72 -2
- data/rbi/courier/resources/workspace_preferences.rbi +0 -2
- data/sig/courier/models/digest_day_of_week.rbs +26 -0
- data/sig/courier/models/digest_frequency.rbs +19 -0
- data/sig/courier/models/email_footer.rbs +107 -5
- data/sig/courier/models/topic_digest_category.rbs +57 -0
- data/sig/courier/models/topic_digest_release_request.rbs +17 -0
- data/sig/courier/models/topic_digest_request.rbs +48 -0
- data/sig/courier/models/topic_digest_response.rbs +58 -0
- data/sig/courier/models/topic_digest_schedule_request.rbs +80 -0
- data/sig/courier/models/topic_digest_schedule_response.rbs +96 -0
- data/sig/courier/models/users/preference_update_or_create_topic_params.rbs +5 -0
- data/sig/courier/models/users/token_update_params.rbs +27 -4
- data/sig/courier/models/users/topic_preference.rbs +7 -0
- data/sig/courier/models/workspace_preference_topic_create_request.rbs +5 -0
- data/sig/courier/models/workspace_preference_topic_get_response.rbs +5 -0
- data/sig/courier/models/workspace_preference_topic_replace_request.rbs +5 -0
- data/sig/courier/models/workspace_preferences/topic_delete_digest_params.rbs +30 -0
- data/sig/courier/models/workspace_preferences/topic_release_digest_params.rbs +34 -0
- data/sig/courier/models.rbs +16 -0
- data/sig/courier/resources/workspace_preferences/topics.rbs +16 -0
- metadata +32 -2
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
module Courier
|
|
2
|
+
module Models
|
|
3
|
+
type topic_digest_request =
|
|
4
|
+
{
|
|
5
|
+
schedules: ::Array[Courier::TopicDigestScheduleRequest],
|
|
6
|
+
template_id: String,
|
|
7
|
+
audience_id: String,
|
|
8
|
+
categories: ::Array[Courier::TopicDigestCategory],
|
|
9
|
+
trigger_empty: bool
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
class TopicDigestRequest < Courier::Internal::Type::BaseModel
|
|
13
|
+
attr_accessor schedules: ::Array[Courier::TopicDigestScheduleRequest]
|
|
14
|
+
|
|
15
|
+
attr_accessor template_id: String
|
|
16
|
+
|
|
17
|
+
attr_reader audience_id: String?
|
|
18
|
+
|
|
19
|
+
def audience_id=: (String) -> String
|
|
20
|
+
|
|
21
|
+
attr_reader categories: ::Array[Courier::TopicDigestCategory]?
|
|
22
|
+
|
|
23
|
+
def categories=: (
|
|
24
|
+
::Array[Courier::TopicDigestCategory]
|
|
25
|
+
) -> ::Array[Courier::TopicDigestCategory]
|
|
26
|
+
|
|
27
|
+
attr_reader trigger_empty: bool?
|
|
28
|
+
|
|
29
|
+
def trigger_empty=: (bool) -> bool
|
|
30
|
+
|
|
31
|
+
def initialize: (
|
|
32
|
+
schedules: ::Array[Courier::TopicDigestScheduleRequest],
|
|
33
|
+
template_id: String,
|
|
34
|
+
?audience_id: String,
|
|
35
|
+
?categories: ::Array[Courier::TopicDigestCategory],
|
|
36
|
+
?trigger_empty: bool
|
|
37
|
+
) -> void
|
|
38
|
+
|
|
39
|
+
def to_hash: -> {
|
|
40
|
+
schedules: ::Array[Courier::TopicDigestScheduleRequest],
|
|
41
|
+
template_id: String,
|
|
42
|
+
audience_id: String,
|
|
43
|
+
categories: ::Array[Courier::TopicDigestCategory],
|
|
44
|
+
trigger_empty: bool
|
|
45
|
+
}
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
module Courier
|
|
2
|
+
module Models
|
|
3
|
+
type topic_digest_response =
|
|
4
|
+
{
|
|
5
|
+
categories: ::Array[Courier::TopicDigestCategory],
|
|
6
|
+
schedules: ::Array[Courier::TopicDigestScheduleResponse],
|
|
7
|
+
template_id: String,
|
|
8
|
+
audience_id: String,
|
|
9
|
+
created: String,
|
|
10
|
+
trigger_empty: bool,
|
|
11
|
+
updated: String
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
class TopicDigestResponse < Courier::Internal::Type::BaseModel
|
|
15
|
+
attr_accessor categories: ::Array[Courier::TopicDigestCategory]
|
|
16
|
+
|
|
17
|
+
attr_accessor schedules: ::Array[Courier::TopicDigestScheduleResponse]
|
|
18
|
+
|
|
19
|
+
attr_accessor template_id: String
|
|
20
|
+
|
|
21
|
+
attr_reader audience_id: String?
|
|
22
|
+
|
|
23
|
+
def audience_id=: (String) -> String
|
|
24
|
+
|
|
25
|
+
attr_reader created: String?
|
|
26
|
+
|
|
27
|
+
def created=: (String) -> String
|
|
28
|
+
|
|
29
|
+
attr_reader trigger_empty: bool?
|
|
30
|
+
|
|
31
|
+
def trigger_empty=: (bool) -> bool
|
|
32
|
+
|
|
33
|
+
attr_reader updated: String?
|
|
34
|
+
|
|
35
|
+
def updated=: (String) -> String
|
|
36
|
+
|
|
37
|
+
def initialize: (
|
|
38
|
+
categories: ::Array[Courier::TopicDigestCategory],
|
|
39
|
+
schedules: ::Array[Courier::TopicDigestScheduleResponse],
|
|
40
|
+
template_id: String,
|
|
41
|
+
?audience_id: String,
|
|
42
|
+
?created: String,
|
|
43
|
+
?trigger_empty: bool,
|
|
44
|
+
?updated: String
|
|
45
|
+
) -> void
|
|
46
|
+
|
|
47
|
+
def to_hash: -> {
|
|
48
|
+
categories: ::Array[Courier::TopicDigestCategory],
|
|
49
|
+
schedules: ::Array[Courier::TopicDigestScheduleResponse],
|
|
50
|
+
template_id: String,
|
|
51
|
+
audience_id: String,
|
|
52
|
+
created: String,
|
|
53
|
+
trigger_empty: bool,
|
|
54
|
+
updated: String
|
|
55
|
+
}
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
end
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
module Courier
|
|
2
|
+
module Models
|
|
3
|
+
type topic_digest_schedule_request =
|
|
4
|
+
{
|
|
5
|
+
frequency: Courier::Models::digest_frequency,
|
|
6
|
+
day_of_month: Integer,
|
|
7
|
+
day_of_week: Courier::Models::digest_day_of_week,
|
|
8
|
+
days_of_week: ::Array[Courier::Models::digest_day_of_week],
|
|
9
|
+
disabled: bool,
|
|
10
|
+
is_default: bool,
|
|
11
|
+
schedule_id: String,
|
|
12
|
+
time: String,
|
|
13
|
+
timezone: String
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
class TopicDigestScheduleRequest < Courier::Internal::Type::BaseModel
|
|
17
|
+
attr_accessor frequency: Courier::Models::digest_frequency
|
|
18
|
+
|
|
19
|
+
attr_reader day_of_month: Integer?
|
|
20
|
+
|
|
21
|
+
def day_of_month=: (Integer) -> Integer
|
|
22
|
+
|
|
23
|
+
attr_reader day_of_week: Courier::Models::digest_day_of_week?
|
|
24
|
+
|
|
25
|
+
def day_of_week=: (
|
|
26
|
+
Courier::Models::digest_day_of_week
|
|
27
|
+
) -> Courier::Models::digest_day_of_week
|
|
28
|
+
|
|
29
|
+
attr_reader days_of_week: ::Array[Courier::Models::digest_day_of_week]?
|
|
30
|
+
|
|
31
|
+
def days_of_week=: (
|
|
32
|
+
::Array[Courier::Models::digest_day_of_week]
|
|
33
|
+
) -> ::Array[Courier::Models::digest_day_of_week]
|
|
34
|
+
|
|
35
|
+
attr_reader disabled: bool?
|
|
36
|
+
|
|
37
|
+
def disabled=: (bool) -> bool
|
|
38
|
+
|
|
39
|
+
attr_reader is_default: bool?
|
|
40
|
+
|
|
41
|
+
def is_default=: (bool) -> bool
|
|
42
|
+
|
|
43
|
+
attr_reader schedule_id: String?
|
|
44
|
+
|
|
45
|
+
def schedule_id=: (String) -> String
|
|
46
|
+
|
|
47
|
+
attr_reader time: String?
|
|
48
|
+
|
|
49
|
+
def time=: (String) -> String
|
|
50
|
+
|
|
51
|
+
attr_reader timezone: String?
|
|
52
|
+
|
|
53
|
+
def timezone=: (String) -> String
|
|
54
|
+
|
|
55
|
+
def initialize: (
|
|
56
|
+
frequency: Courier::Models::digest_frequency,
|
|
57
|
+
?day_of_month: Integer,
|
|
58
|
+
?day_of_week: Courier::Models::digest_day_of_week,
|
|
59
|
+
?days_of_week: ::Array[Courier::Models::digest_day_of_week],
|
|
60
|
+
?disabled: bool,
|
|
61
|
+
?is_default: bool,
|
|
62
|
+
?schedule_id: String,
|
|
63
|
+
?time: String,
|
|
64
|
+
?timezone: String
|
|
65
|
+
) -> void
|
|
66
|
+
|
|
67
|
+
def to_hash: -> {
|
|
68
|
+
frequency: Courier::Models::digest_frequency,
|
|
69
|
+
day_of_month: Integer,
|
|
70
|
+
day_of_week: Courier::Models::digest_day_of_week,
|
|
71
|
+
days_of_week: ::Array[Courier::Models::digest_day_of_week],
|
|
72
|
+
disabled: bool,
|
|
73
|
+
is_default: bool,
|
|
74
|
+
schedule_id: String,
|
|
75
|
+
time: String,
|
|
76
|
+
timezone: String
|
|
77
|
+
}
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
end
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
module Courier
|
|
2
|
+
module Models
|
|
3
|
+
type topic_digest_schedule_response =
|
|
4
|
+
{
|
|
5
|
+
schedule_id: String,
|
|
6
|
+
created: String,
|
|
7
|
+
day_of_month: Integer,
|
|
8
|
+
day_of_week: Courier::Models::digest_day_of_week,
|
|
9
|
+
days_of_week: ::Array[Courier::Models::digest_day_of_week],
|
|
10
|
+
disabled: bool,
|
|
11
|
+
frequency: Courier::Models::digest_frequency,
|
|
12
|
+
is_default: bool,
|
|
13
|
+
time: String,
|
|
14
|
+
timezone: String,
|
|
15
|
+
updated: String
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
class TopicDigestScheduleResponse < Courier::Internal::Type::BaseModel
|
|
19
|
+
attr_accessor schedule_id: String
|
|
20
|
+
|
|
21
|
+
attr_reader created: String?
|
|
22
|
+
|
|
23
|
+
def created=: (String) -> String
|
|
24
|
+
|
|
25
|
+
attr_reader day_of_month: Integer?
|
|
26
|
+
|
|
27
|
+
def day_of_month=: (Integer) -> Integer
|
|
28
|
+
|
|
29
|
+
attr_reader day_of_week: Courier::Models::digest_day_of_week?
|
|
30
|
+
|
|
31
|
+
def day_of_week=: (
|
|
32
|
+
Courier::Models::digest_day_of_week
|
|
33
|
+
) -> Courier::Models::digest_day_of_week
|
|
34
|
+
|
|
35
|
+
attr_reader days_of_week: ::Array[Courier::Models::digest_day_of_week]?
|
|
36
|
+
|
|
37
|
+
def days_of_week=: (
|
|
38
|
+
::Array[Courier::Models::digest_day_of_week]
|
|
39
|
+
) -> ::Array[Courier::Models::digest_day_of_week]
|
|
40
|
+
|
|
41
|
+
attr_reader disabled: bool?
|
|
42
|
+
|
|
43
|
+
def disabled=: (bool) -> bool
|
|
44
|
+
|
|
45
|
+
attr_reader frequency: Courier::Models::digest_frequency?
|
|
46
|
+
|
|
47
|
+
def frequency=: (
|
|
48
|
+
Courier::Models::digest_frequency
|
|
49
|
+
) -> Courier::Models::digest_frequency
|
|
50
|
+
|
|
51
|
+
attr_reader is_default: bool?
|
|
52
|
+
|
|
53
|
+
def is_default=: (bool) -> bool
|
|
54
|
+
|
|
55
|
+
attr_reader time: String?
|
|
56
|
+
|
|
57
|
+
def time=: (String) -> String
|
|
58
|
+
|
|
59
|
+
attr_reader timezone: String?
|
|
60
|
+
|
|
61
|
+
def timezone=: (String) -> String
|
|
62
|
+
|
|
63
|
+
attr_reader updated: String?
|
|
64
|
+
|
|
65
|
+
def updated=: (String) -> String
|
|
66
|
+
|
|
67
|
+
def initialize: (
|
|
68
|
+
schedule_id: String,
|
|
69
|
+
?created: String,
|
|
70
|
+
?day_of_month: Integer,
|
|
71
|
+
?day_of_week: Courier::Models::digest_day_of_week,
|
|
72
|
+
?days_of_week: ::Array[Courier::Models::digest_day_of_week],
|
|
73
|
+
?disabled: bool,
|
|
74
|
+
?frequency: Courier::Models::digest_frequency,
|
|
75
|
+
?is_default: bool,
|
|
76
|
+
?time: String,
|
|
77
|
+
?timezone: String,
|
|
78
|
+
?updated: String
|
|
79
|
+
) -> void
|
|
80
|
+
|
|
81
|
+
def to_hash: -> {
|
|
82
|
+
schedule_id: String,
|
|
83
|
+
created: String,
|
|
84
|
+
day_of_month: Integer,
|
|
85
|
+
day_of_week: Courier::Models::digest_day_of_week,
|
|
86
|
+
days_of_week: ::Array[Courier::Models::digest_day_of_week],
|
|
87
|
+
disabled: bool,
|
|
88
|
+
frequency: Courier::Models::digest_frequency,
|
|
89
|
+
is_default: bool,
|
|
90
|
+
time: String,
|
|
91
|
+
timezone: String,
|
|
92
|
+
updated: String
|
|
93
|
+
}
|
|
94
|
+
end
|
|
95
|
+
end
|
|
96
|
+
end
|
|
@@ -42,6 +42,7 @@ module Courier
|
|
|
42
42
|
{
|
|
43
43
|
status: Courier::Models::preference_status,
|
|
44
44
|
custom_routing: ::Array[Courier::Models::channel_classification]?,
|
|
45
|
+
digest_schedule_id: String?,
|
|
45
46
|
has_custom_routing: bool?
|
|
46
47
|
}
|
|
47
48
|
|
|
@@ -50,17 +51,21 @@ module Courier
|
|
|
50
51
|
|
|
51
52
|
attr_accessor custom_routing: ::Array[Courier::Models::channel_classification]?
|
|
52
53
|
|
|
54
|
+
attr_accessor digest_schedule_id: String?
|
|
55
|
+
|
|
53
56
|
attr_accessor has_custom_routing: bool?
|
|
54
57
|
|
|
55
58
|
def initialize: (
|
|
56
59
|
status: Courier::Models::preference_status,
|
|
57
60
|
?custom_routing: ::Array[Courier::Models::channel_classification]?,
|
|
61
|
+
?digest_schedule_id: String?,
|
|
58
62
|
?has_custom_routing: bool?
|
|
59
63
|
) -> void
|
|
60
64
|
|
|
61
65
|
def to_hash: -> {
|
|
62
66
|
status: Courier::Models::preference_status,
|
|
63
67
|
custom_routing: ::Array[Courier::Models::channel_classification]?,
|
|
68
|
+
digest_schedule_id: String?,
|
|
64
69
|
has_custom_routing: bool?
|
|
65
70
|
}
|
|
66
71
|
end
|
|
@@ -33,18 +33,41 @@ module Courier
|
|
|
33
33
|
request_options: Courier::RequestOptions
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
type patch =
|
|
36
|
+
type patch =
|
|
37
|
+
{
|
|
38
|
+
op: String,
|
|
39
|
+
path: String,
|
|
40
|
+
value: Courier::Models::Users::TokenUpdateParams::Patch::value?
|
|
41
|
+
}
|
|
37
42
|
|
|
38
43
|
class Patch < Courier::Internal::Type::BaseModel
|
|
39
44
|
attr_accessor op: String
|
|
40
45
|
|
|
41
46
|
attr_accessor path: String
|
|
42
47
|
|
|
43
|
-
attr_accessor value:
|
|
48
|
+
attr_accessor value: Courier::Models::Users::TokenUpdateParams::Patch::value?
|
|
44
49
|
|
|
45
|
-
def initialize: (
|
|
50
|
+
def initialize: (
|
|
51
|
+
op: String,
|
|
52
|
+
path: String,
|
|
53
|
+
?value: Courier::Models::Users::TokenUpdateParams::Patch::value?
|
|
54
|
+
) -> void
|
|
46
55
|
|
|
47
|
-
def to_hash: -> {
|
|
56
|
+
def to_hash: -> {
|
|
57
|
+
op: String,
|
|
58
|
+
path: String,
|
|
59
|
+
value: Courier::Models::Users::TokenUpdateParams::Patch::value?
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
type value = String | bool | ::Hash[Symbol, top]
|
|
63
|
+
|
|
64
|
+
module Value
|
|
65
|
+
extend Courier::Internal::Type::Union
|
|
66
|
+
|
|
67
|
+
def self?.variants: -> ::Array[Courier::Models::Users::TokenUpdateParams::Patch::value]
|
|
68
|
+
|
|
69
|
+
UnionMember2Map: Courier::Internal::Type::Converter
|
|
70
|
+
end
|
|
48
71
|
end
|
|
49
72
|
end
|
|
50
73
|
end
|
|
@@ -8,6 +8,7 @@ module Courier
|
|
|
8
8
|
topic_id: String,
|
|
9
9
|
topic_name: String,
|
|
10
10
|
custom_routing: ::Array[Courier::Models::channel_classification]?,
|
|
11
|
+
digest_schedule_id: String,
|
|
11
12
|
has_custom_routing: bool?,
|
|
12
13
|
section_id: String,
|
|
13
14
|
section_name: String
|
|
@@ -24,6 +25,10 @@ module Courier
|
|
|
24
25
|
|
|
25
26
|
attr_accessor custom_routing: ::Array[Courier::Models::channel_classification]?
|
|
26
27
|
|
|
28
|
+
attr_reader digest_schedule_id: String?
|
|
29
|
+
|
|
30
|
+
def digest_schedule_id=: (String) -> String
|
|
31
|
+
|
|
27
32
|
attr_accessor has_custom_routing: bool?
|
|
28
33
|
|
|
29
34
|
attr_reader section_id: String?
|
|
@@ -40,6 +45,7 @@ module Courier
|
|
|
40
45
|
topic_id: String,
|
|
41
46
|
topic_name: String,
|
|
42
47
|
?custom_routing: ::Array[Courier::Models::channel_classification]?,
|
|
48
|
+
?digest_schedule_id: String,
|
|
43
49
|
?has_custom_routing: bool?,
|
|
44
50
|
?section_id: String,
|
|
45
51
|
?section_name: String
|
|
@@ -51,6 +57,7 @@ module Courier
|
|
|
51
57
|
topic_id: String,
|
|
52
58
|
topic_name: String,
|
|
53
59
|
custom_routing: ::Array[Courier::Models::channel_classification]?,
|
|
60
|
+
digest_schedule_id: String,
|
|
54
61
|
has_custom_routing: bool?,
|
|
55
62
|
section_id: String,
|
|
56
63
|
section_name: String
|
|
@@ -6,6 +6,7 @@ module Courier
|
|
|
6
6
|
name: String,
|
|
7
7
|
allowed_preferences: ::Array[Courier::Models::WorkspacePreferenceTopicCreateRequest::allowed_preference]?,
|
|
8
8
|
description: String?,
|
|
9
|
+
digest: Courier::TopicDigestRequest?,
|
|
9
10
|
include_unsubscribe_header: bool?,
|
|
10
11
|
routing_options: ::Array[Courier::Models::channel_classification]?,
|
|
11
12
|
topic_data: ::Hash[Symbol, top]?
|
|
@@ -20,6 +21,8 @@ module Courier
|
|
|
20
21
|
|
|
21
22
|
attr_accessor description: String?
|
|
22
23
|
|
|
24
|
+
attr_accessor digest: Courier::TopicDigestRequest?
|
|
25
|
+
|
|
23
26
|
attr_accessor include_unsubscribe_header: bool?
|
|
24
27
|
|
|
25
28
|
attr_accessor routing_options: ::Array[Courier::Models::channel_classification]?
|
|
@@ -31,6 +34,7 @@ module Courier
|
|
|
31
34
|
name: String,
|
|
32
35
|
?allowed_preferences: ::Array[Courier::Models::WorkspacePreferenceTopicCreateRequest::allowed_preference]?,
|
|
33
36
|
?description: String?,
|
|
37
|
+
?digest: Courier::TopicDigestRequest?,
|
|
34
38
|
?include_unsubscribe_header: bool?,
|
|
35
39
|
?routing_options: ::Array[Courier::Models::channel_classification]?,
|
|
36
40
|
?topic_data: ::Hash[Symbol, top]?
|
|
@@ -41,6 +45,7 @@ module Courier
|
|
|
41
45
|
name: String,
|
|
42
46
|
allowed_preferences: ::Array[Courier::Models::WorkspacePreferenceTopicCreateRequest::allowed_preference]?,
|
|
43
47
|
description: String?,
|
|
48
|
+
digest: Courier::TopicDigestRequest?,
|
|
44
49
|
include_unsubscribe_header: bool?,
|
|
45
50
|
routing_options: ::Array[Courier::Models::channel_classification]?,
|
|
46
51
|
topic_data: ::Hash[Symbol, top]?
|
|
@@ -13,6 +13,7 @@ module Courier
|
|
|
13
13
|
updated: String,
|
|
14
14
|
creator: String?,
|
|
15
15
|
description: String?,
|
|
16
|
+
digest: Courier::TopicDigestResponse?,
|
|
16
17
|
updater: String?
|
|
17
18
|
}
|
|
18
19
|
|
|
@@ -39,6 +40,8 @@ module Courier
|
|
|
39
40
|
|
|
40
41
|
attr_accessor description: String?
|
|
41
42
|
|
|
43
|
+
attr_accessor digest: Courier::TopicDigestResponse?
|
|
44
|
+
|
|
42
45
|
attr_accessor updater: String?
|
|
43
46
|
|
|
44
47
|
def initialize: (
|
|
@@ -53,6 +56,7 @@ module Courier
|
|
|
53
56
|
updated: String,
|
|
54
57
|
?creator: String?,
|
|
55
58
|
?description: String?,
|
|
59
|
+
?digest: Courier::TopicDigestResponse?,
|
|
56
60
|
?updater: String?
|
|
57
61
|
) -> void
|
|
58
62
|
|
|
@@ -68,6 +72,7 @@ module Courier
|
|
|
68
72
|
updated: String,
|
|
69
73
|
creator: String?,
|
|
70
74
|
description: String?,
|
|
75
|
+
digest: Courier::TopicDigestResponse?,
|
|
71
76
|
updater: String?
|
|
72
77
|
}
|
|
73
78
|
|
|
@@ -6,6 +6,7 @@ module Courier
|
|
|
6
6
|
name: String,
|
|
7
7
|
allowed_preferences: ::Array[Courier::Models::WorkspacePreferenceTopicReplaceRequest::allowed_preference]?,
|
|
8
8
|
description: String?,
|
|
9
|
+
digest: Courier::TopicDigestRequest?,
|
|
9
10
|
include_unsubscribe_header: bool?,
|
|
10
11
|
routing_options: ::Array[Courier::Models::channel_classification]?,
|
|
11
12
|
topic_data: ::Hash[Symbol, top]?
|
|
@@ -20,6 +21,8 @@ module Courier
|
|
|
20
21
|
|
|
21
22
|
attr_accessor description: String?
|
|
22
23
|
|
|
24
|
+
attr_accessor digest: Courier::TopicDigestRequest?
|
|
25
|
+
|
|
23
26
|
attr_accessor include_unsubscribe_header: bool?
|
|
24
27
|
|
|
25
28
|
attr_accessor routing_options: ::Array[Courier::Models::channel_classification]?
|
|
@@ -31,6 +34,7 @@ module Courier
|
|
|
31
34
|
name: String,
|
|
32
35
|
?allowed_preferences: ::Array[Courier::Models::WorkspacePreferenceTopicReplaceRequest::allowed_preference]?,
|
|
33
36
|
?description: String?,
|
|
37
|
+
?digest: Courier::TopicDigestRequest?,
|
|
34
38
|
?include_unsubscribe_header: bool?,
|
|
35
39
|
?routing_options: ::Array[Courier::Models::channel_classification]?,
|
|
36
40
|
?topic_data: ::Hash[Symbol, top]?
|
|
@@ -41,6 +45,7 @@ module Courier
|
|
|
41
45
|
name: String,
|
|
42
46
|
allowed_preferences: ::Array[Courier::Models::WorkspacePreferenceTopicReplaceRequest::allowed_preference]?,
|
|
43
47
|
description: String?,
|
|
48
|
+
digest: Courier::TopicDigestRequest?,
|
|
44
49
|
include_unsubscribe_header: bool?,
|
|
45
50
|
routing_options: ::Array[Courier::Models::channel_classification]?,
|
|
46
51
|
topic_data: ::Hash[Symbol, top]?
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
module Courier
|
|
2
|
+
module Models
|
|
3
|
+
module WorkspacePreferences
|
|
4
|
+
type topic_delete_digest_params =
|
|
5
|
+
{ section_id: String, topic_id: String }
|
|
6
|
+
& Courier::Internal::Type::request_parameters
|
|
7
|
+
|
|
8
|
+
class TopicDeleteDigestParams < Courier::Internal::Type::BaseModel
|
|
9
|
+
extend Courier::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include Courier::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
attr_accessor section_id: String
|
|
13
|
+
|
|
14
|
+
attr_accessor topic_id: String
|
|
15
|
+
|
|
16
|
+
def initialize: (
|
|
17
|
+
section_id: String,
|
|
18
|
+
topic_id: String,
|
|
19
|
+
?request_options: Courier::request_opts
|
|
20
|
+
) -> void
|
|
21
|
+
|
|
22
|
+
def to_hash: -> {
|
|
23
|
+
section_id: String,
|
|
24
|
+
topic_id: String,
|
|
25
|
+
request_options: Courier::RequestOptions
|
|
26
|
+
}
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
module Courier
|
|
2
|
+
module Models
|
|
3
|
+
module WorkspacePreferences
|
|
4
|
+
type topic_release_digest_params =
|
|
5
|
+
{ section_id: String, topic_id: String }
|
|
6
|
+
& Courier::Internal::Type::request_parameters
|
|
7
|
+
|
|
8
|
+
class TopicReleaseDigestParams < Courier::Models::TopicDigestReleaseRequest
|
|
9
|
+
extend Courier::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include Courier::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
def section_id: -> String
|
|
13
|
+
|
|
14
|
+
def section_id=: (String _) -> String
|
|
15
|
+
|
|
16
|
+
def topic_id: -> String
|
|
17
|
+
|
|
18
|
+
def topic_id=: (String _) -> String
|
|
19
|
+
|
|
20
|
+
def initialize: (
|
|
21
|
+
section_id: String,
|
|
22
|
+
topic_id: String,
|
|
23
|
+
?request_options: Courier::request_opts
|
|
24
|
+
) -> void
|
|
25
|
+
|
|
26
|
+
def to_hash: -> {
|
|
27
|
+
section_id: String,
|
|
28
|
+
topic_id: String,
|
|
29
|
+
request_options: Courier::RequestOptions
|
|
30
|
+
}
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
data/sig/courier/models.rbs
CHANGED
|
@@ -147,6 +147,10 @@ module Courier
|
|
|
147
147
|
|
|
148
148
|
class DigestCategory = Courier::Models::DigestCategory
|
|
149
149
|
|
|
150
|
+
module DigestDayOfWeek = Courier::Models::DigestDayOfWeek
|
|
151
|
+
|
|
152
|
+
module DigestFrequency = Courier::Models::DigestFrequency
|
|
153
|
+
|
|
150
154
|
class DigestInstance = Courier::Models::DigestInstance
|
|
151
155
|
|
|
152
156
|
class DigestInstanceListResponse = Courier::Models::DigestInstanceListResponse
|
|
@@ -599,6 +603,18 @@ module Courier
|
|
|
599
603
|
|
|
600
604
|
class Token = Courier::Models::Token
|
|
601
605
|
|
|
606
|
+
class TopicDigestCategory = Courier::Models::TopicDigestCategory
|
|
607
|
+
|
|
608
|
+
class TopicDigestReleaseRequest = Courier::Models::TopicDigestReleaseRequest
|
|
609
|
+
|
|
610
|
+
class TopicDigestRequest = Courier::Models::TopicDigestRequest
|
|
611
|
+
|
|
612
|
+
class TopicDigestResponse = Courier::Models::TopicDigestResponse
|
|
613
|
+
|
|
614
|
+
class TopicDigestScheduleRequest = Courier::Models::TopicDigestScheduleRequest
|
|
615
|
+
|
|
616
|
+
class TopicDigestScheduleResponse = Courier::Models::TopicDigestScheduleResponse
|
|
617
|
+
|
|
602
618
|
class TranslationRetrieveParams = Courier::Models::TranslationRetrieveParams
|
|
603
619
|
|
|
604
620
|
class TranslationUpdateParams = Courier::Models::TranslationUpdateParams
|
|
@@ -8,6 +8,7 @@ module Courier
|
|
|
8
8
|
name: String,
|
|
9
9
|
?allowed_preferences: ::Array[Courier::Models::WorkspacePreferenceTopicCreateRequest::allowed_preference]?,
|
|
10
10
|
?description: String?,
|
|
11
|
+
?digest: Courier::TopicDigestRequest?,
|
|
11
12
|
?include_unsubscribe_header: bool?,
|
|
12
13
|
?routing_options: ::Array[Courier::Models::channel_classification]?,
|
|
13
14
|
?topic_data: ::Hash[Symbol, top]?,
|
|
@@ -33,6 +34,20 @@ module Courier
|
|
|
33
34
|
?request_options: Courier::request_opts
|
|
34
35
|
) -> nil
|
|
35
36
|
|
|
37
|
+
def delete_digest: (
|
|
38
|
+
String topic_id,
|
|
39
|
+
section_id: String,
|
|
40
|
+
?request_options: Courier::request_opts
|
|
41
|
+
) -> nil
|
|
42
|
+
|
|
43
|
+
def release_digest: (
|
|
44
|
+
String topic_id,
|
|
45
|
+
section_id: String,
|
|
46
|
+
user_id: String,
|
|
47
|
+
?tenant_id: String,
|
|
48
|
+
?request_options: Courier::request_opts
|
|
49
|
+
) -> nil
|
|
50
|
+
|
|
36
51
|
def replace: (
|
|
37
52
|
String topic_id,
|
|
38
53
|
section_id: String,
|
|
@@ -40,6 +55,7 @@ module Courier
|
|
|
40
55
|
name: String,
|
|
41
56
|
?allowed_preferences: ::Array[Courier::Models::WorkspacePreferenceTopicReplaceRequest::allowed_preference]?,
|
|
42
57
|
?description: String?,
|
|
58
|
+
?digest: Courier::TopicDigestRequest?,
|
|
43
59
|
?include_unsubscribe_header: bool?,
|
|
44
60
|
?routing_options: ::Array[Courier::Models::channel_classification]?,
|
|
45
61
|
?topic_data: ::Hash[Symbol, top]?,
|