trycourier 6.0.0 → 6.2.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.
Files changed (94) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +20 -0
  3. data/README.md +1 -1
  4. data/lib/courier/models/automation_run_list_item.rb +57 -0
  5. data/lib/courier/models/automation_run_list_response.rb +25 -0
  6. data/lib/courier/models/automation_run_step.rb +64 -0
  7. data/lib/courier/models/automation_run_steps_response.rb +17 -0
  8. data/lib/courier/models/automations/run_list_params.rb +71 -0
  9. data/lib/courier/models/automations/run_list_steps_params.rb +22 -0
  10. data/lib/courier/models/create_journey_request.rb +2 -2
  11. data/lib/courier/models/journey_audience_trigger_node.rb +77 -0
  12. data/lib/courier/models/journey_node.rb +8 -2
  13. data/lib/courier/models/journey_response.rb +2 -2
  14. data/lib/courier/models/journey_run.rb +66 -0
  15. data/lib/courier/models/journey_run_list_item.rb +50 -0
  16. data/lib/courier/models/journey_run_list_response.rb +33 -0
  17. data/lib/courier/models/journey_run_response.rb +22 -0
  18. data/lib/courier/models/journey_run_step.rb +65 -0
  19. data/lib/courier/models/journey_run_steps_response.rb +17 -0
  20. data/lib/courier/models/journey_segment_trigger_node.rb +5 -1
  21. data/lib/courier/models/journey_webhook_trigger_node.rb +85 -0
  22. data/lib/courier/models/journeys/run_list_params.rb +71 -0
  23. data/lib/courier/models/journeys/run_list_steps_params.rb +22 -0
  24. data/lib/courier/models/journeys/run_retrieve_params.rb +22 -0
  25. data/lib/courier/models/notification_get_metrics_params.rb +83 -0
  26. data/lib/courier/models/notification_metrics_response.rb +165 -0
  27. data/lib/courier/models/users/topic_preference.rb +21 -1
  28. data/lib/courier/models.rb +28 -0
  29. data/lib/courier/resources/automations/runs.rb +80 -0
  30. data/lib/courier/resources/automations.rb +6 -0
  31. data/lib/courier/resources/journeys/runs.rb +104 -0
  32. data/lib/courier/resources/journeys.rb +8 -2
  33. data/lib/courier/resources/notifications.rb +53 -0
  34. data/lib/courier/version.rb +1 -1
  35. data/lib/courier.rb +21 -0
  36. data/rbi/courier/models/automation_run_list_item.rbi +87 -0
  37. data/rbi/courier/models/automation_run_list_response.rbi +47 -0
  38. data/rbi/courier/models/automation_run_step.rbi +96 -0
  39. data/rbi/courier/models/automation_run_steps_response.rbi +28 -0
  40. data/rbi/courier/models/automations/run_list_params.rbi +114 -0
  41. data/rbi/courier/models/automations/run_list_steps_params.rbi +40 -0
  42. data/rbi/courier/models/create_journey_request.rbi +6 -0
  43. data/rbi/courier/models/journey_audience_trigger_node.rbi +162 -0
  44. data/rbi/courier/models/journey_node.rbi +2 -0
  45. data/rbi/courier/models/journey_response.rbi +2 -0
  46. data/rbi/courier/models/journey_run.rbi +97 -0
  47. data/rbi/courier/models/journey_run_list_item.rbi +79 -0
  48. data/rbi/courier/models/journey_run_list_response.rbi +58 -0
  49. data/rbi/courier/models/journey_run_response.rbi +33 -0
  50. data/rbi/courier/models/journey_run_step.rbi +97 -0
  51. data/rbi/courier/models/journey_run_steps_response.rbi +28 -0
  52. data/rbi/courier/models/journey_segment_trigger_node.rbi +9 -1
  53. data/rbi/courier/models/journey_webhook_trigger_node.rbi +174 -0
  54. data/rbi/courier/models/journeys/run_list_params.rbi +111 -0
  55. data/rbi/courier/models/journeys/run_list_steps_params.rbi +40 -0
  56. data/rbi/courier/models/journeys/run_retrieve_params.rbi +40 -0
  57. data/rbi/courier/models/notification_get_metrics_params.rbi +167 -0
  58. data/rbi/courier/models/notification_metrics_response.rbi +269 -0
  59. data/rbi/courier/models/users/topic_preference.rbi +33 -3
  60. data/rbi/courier/models.rbi +28 -0
  61. data/rbi/courier/resources/automations/runs.rbi +69 -0
  62. data/rbi/courier/resources/automations.rbi +5 -0
  63. data/rbi/courier/resources/journeys/runs.rbi +87 -0
  64. data/rbi/courier/resources/journeys.rbi +9 -0
  65. data/rbi/courier/resources/notifications.rbi +57 -0
  66. data/sig/courier/models/automation_run_list_item.rbs +46 -0
  67. data/sig/courier/models/automation_run_list_response.rbs +24 -0
  68. data/sig/courier/models/automation_run_step.rbs +53 -0
  69. data/sig/courier/models/automation_run_steps_response.rbs +14 -0
  70. data/sig/courier/models/automations/run_list_params.rbs +65 -0
  71. data/sig/courier/models/automations/run_list_steps_params.rbs +22 -0
  72. data/sig/courier/models/journey_audience_trigger_node.rbs +66 -0
  73. data/sig/courier/models/journey_node.rbs +2 -0
  74. data/sig/courier/models/journey_run.rbs +53 -0
  75. data/sig/courier/models/journey_run_list_item.rbs +46 -0
  76. data/sig/courier/models/journey_run_list_response.rbs +34 -0
  77. data/sig/courier/models/journey_run_response.rbs +13 -0
  78. data/sig/courier/models/journey_run_step.rbs +53 -0
  79. data/sig/courier/models/journey_run_steps_response.rbs +14 -0
  80. data/sig/courier/models/journey_segment_trigger_node.rbs +2 -1
  81. data/sig/courier/models/journey_webhook_trigger_node.rbs +73 -0
  82. data/sig/courier/models/journeys/run_list_params.rbs +65 -0
  83. data/sig/courier/models/journeys/run_list_steps_params.rbs +25 -0
  84. data/sig/courier/models/journeys/run_retrieve_params.rbs +25 -0
  85. data/sig/courier/models/notification_get_metrics_params.rbs +69 -0
  86. data/sig/courier/models/notification_metrics_response.rbs +127 -0
  87. data/sig/courier/models/users/topic_preference.rbs +17 -3
  88. data/sig/courier/models.rbs +28 -0
  89. data/sig/courier/resources/automations/runs.rbs +24 -0
  90. data/sig/courier/resources/automations.rbs +2 -0
  91. data/sig/courier/resources/journeys/runs.rbs +29 -0
  92. data/sig/courier/resources/journeys.rbs +2 -0
  93. data/sig/courier/resources/notifications.rbs +9 -0
  94. metadata +65 -2
@@ -0,0 +1,46 @@
1
+ module Courier
2
+ module Models
3
+ type automation_run_list_item =
4
+ {
5
+ run_id: String,
6
+ source: ::Array[String],
7
+ created_at: String,
8
+ status: String,
9
+ template_id: String
10
+ }
11
+
12
+ class AutomationRunListItem < Courier::Internal::Type::BaseModel
13
+ attr_accessor run_id: String
14
+
15
+ attr_accessor source: ::Array[String]
16
+
17
+ attr_reader created_at: String?
18
+
19
+ def created_at=: (String) -> String
20
+
21
+ attr_reader status: String?
22
+
23
+ def status=: (String) -> String
24
+
25
+ attr_reader template_id: String?
26
+
27
+ def template_id=: (String) -> String
28
+
29
+ def initialize: (
30
+ run_id: String,
31
+ source: ::Array[String],
32
+ ?created_at: String,
33
+ ?status: String,
34
+ ?template_id: String
35
+ ) -> void
36
+
37
+ def to_hash: -> {
38
+ run_id: String,
39
+ source: ::Array[String],
40
+ created_at: String,
41
+ status: String,
42
+ template_id: String
43
+ }
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,24 @@
1
+ module Courier
2
+ module Models
3
+ type automation_run_list_response =
4
+ { runs: ::Array[Courier::AutomationRunListItem], next_cursor: String }
5
+
6
+ class AutomationRunListResponse < Courier::Internal::Type::BaseModel
7
+ attr_accessor runs: ::Array[Courier::AutomationRunListItem]
8
+
9
+ attr_reader next_cursor: String?
10
+
11
+ def next_cursor=: (String) -> String
12
+
13
+ def initialize: (
14
+ runs: ::Array[Courier::AutomationRunListItem],
15
+ ?next_cursor: String
16
+ ) -> void
17
+
18
+ def to_hash: -> {
19
+ runs: ::Array[Courier::AutomationRunListItem],
20
+ next_cursor: String
21
+ }
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,53 @@
1
+ module Courier
2
+ module Models
3
+ type automation_run_step =
4
+ {
5
+ action: String,
6
+ status: String,
7
+ created_at: String,
8
+ message_id: String,
9
+ step_id: String,
10
+ updated_at: String
11
+ }
12
+
13
+ class AutomationRunStep < Courier::Internal::Type::BaseModel
14
+ attr_accessor action: String
15
+
16
+ attr_accessor status: String
17
+
18
+ attr_reader created_at: String?
19
+
20
+ def created_at=: (String) -> String
21
+
22
+ attr_reader message_id: String?
23
+
24
+ def message_id=: (String) -> String
25
+
26
+ attr_reader step_id: String?
27
+
28
+ def step_id=: (String) -> String
29
+
30
+ attr_reader updated_at: String?
31
+
32
+ def updated_at=: (String) -> String
33
+
34
+ def initialize: (
35
+ action: String,
36
+ status: String,
37
+ ?created_at: String,
38
+ ?message_id: String,
39
+ ?step_id: String,
40
+ ?updated_at: String
41
+ ) -> void
42
+
43
+ def to_hash: -> {
44
+ action: String,
45
+ status: String,
46
+ created_at: String,
47
+ message_id: String,
48
+ step_id: String,
49
+ updated_at: String
50
+ }
51
+ end
52
+ end
53
+ end
@@ -0,0 +1,14 @@
1
+ module Courier
2
+ module Models
3
+ type automation_run_steps_response =
4
+ { steps: ::Array[Courier::AutomationRunStep] }
5
+
6
+ class AutomationRunStepsResponse < Courier::Internal::Type::BaseModel
7
+ attr_accessor steps: ::Array[Courier::AutomationRunStep]
8
+
9
+ def initialize: (steps: ::Array[Courier::AutomationRunStep]) -> void
10
+
11
+ def to_hash: -> { steps: ::Array[Courier::AutomationRunStep] }
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,65 @@
1
+ module Courier
2
+ module Models
3
+ module Automations
4
+ type run_list_params =
5
+ {
6
+ cursor: String,
7
+ end_date: String,
8
+ limit: String,
9
+ start_date: String,
10
+ status: String,
11
+ template_id: String
12
+ }
13
+ & Courier::Internal::Type::request_parameters
14
+
15
+ class RunListParams < Courier::Internal::Type::BaseModel
16
+ extend Courier::Internal::Type::RequestParameters::Converter
17
+ include Courier::Internal::Type::RequestParameters
18
+
19
+ attr_reader cursor: String?
20
+
21
+ def cursor=: (String) -> String
22
+
23
+ attr_reader end_date: String?
24
+
25
+ def end_date=: (String) -> String
26
+
27
+ attr_reader limit: String?
28
+
29
+ def limit=: (String) -> String
30
+
31
+ attr_reader start_date: String?
32
+
33
+ def start_date=: (String) -> String
34
+
35
+ attr_reader status: String?
36
+
37
+ def status=: (String) -> String
38
+
39
+ attr_reader template_id: String?
40
+
41
+ def template_id=: (String) -> String
42
+
43
+ def initialize: (
44
+ ?cursor: String,
45
+ ?end_date: String,
46
+ ?limit: String,
47
+ ?start_date: String,
48
+ ?status: String,
49
+ ?template_id: String,
50
+ ?request_options: Courier::request_opts
51
+ ) -> void
52
+
53
+ def to_hash: -> {
54
+ cursor: String,
55
+ end_date: String,
56
+ limit: String,
57
+ start_date: String,
58
+ status: String,
59
+ template_id: String,
60
+ request_options: Courier::RequestOptions
61
+ }
62
+ end
63
+ end
64
+ end
65
+ end
@@ -0,0 +1,22 @@
1
+ module Courier
2
+ module Models
3
+ module Automations
4
+ type run_list_steps_params =
5
+ { id: String } & Courier::Internal::Type::request_parameters
6
+
7
+ class RunListStepsParams < Courier::Internal::Type::BaseModel
8
+ extend Courier::Internal::Type::RequestParameters::Converter
9
+ include Courier::Internal::Type::RequestParameters
10
+
11
+ attr_accessor id: String
12
+
13
+ def initialize: (
14
+ id: String,
15
+ ?request_options: Courier::request_opts
16
+ ) -> void
17
+
18
+ def to_hash: -> { id: String, request_options: Courier::RequestOptions }
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,66 @@
1
+ module Courier
2
+ module Models
3
+ type journey_audience_trigger_node =
4
+ {
5
+ audience_id: String,
6
+ trigger_type: Courier::Models::JourneyAudienceTriggerNode::trigger_type,
7
+ type: Courier::Models::JourneyAudienceTriggerNode::type_,
8
+ id: String,
9
+ conditions: Courier::Models::journey_conditions_field
10
+ }
11
+
12
+ class JourneyAudienceTriggerNode < Courier::Internal::Type::BaseModel
13
+ attr_accessor audience_id: String
14
+
15
+ attr_accessor trigger_type: Courier::Models::JourneyAudienceTriggerNode::trigger_type
16
+
17
+ attr_accessor type: Courier::Models::JourneyAudienceTriggerNode::type_
18
+
19
+ attr_reader id: String?
20
+
21
+ def id=: (String) -> String
22
+
23
+ attr_reader conditions: Courier::Models::journey_conditions_field?
24
+
25
+ def conditions=: (
26
+ Courier::Models::journey_conditions_field
27
+ ) -> Courier::Models::journey_conditions_field
28
+
29
+ def initialize: (
30
+ audience_id: String,
31
+ trigger_type: Courier::Models::JourneyAudienceTriggerNode::trigger_type,
32
+ type: Courier::Models::JourneyAudienceTriggerNode::type_,
33
+ ?id: String,
34
+ ?conditions: Courier::Models::journey_conditions_field
35
+ ) -> void
36
+
37
+ def to_hash: -> {
38
+ audience_id: String,
39
+ trigger_type: Courier::Models::JourneyAudienceTriggerNode::trigger_type,
40
+ type: Courier::Models::JourneyAudienceTriggerNode::type_,
41
+ id: String,
42
+ conditions: Courier::Models::journey_conditions_field
43
+ }
44
+
45
+ type trigger_type = :audience
46
+
47
+ module TriggerType
48
+ extend Courier::Internal::Type::Enum
49
+
50
+ AUDIENCE: :audience
51
+
52
+ def self?.values: -> ::Array[Courier::Models::JourneyAudienceTriggerNode::trigger_type]
53
+ end
54
+
55
+ type type_ = :trigger
56
+
57
+ module Type
58
+ extend Courier::Internal::Type::Enum
59
+
60
+ TRIGGER: :trigger
61
+
62
+ def self?.values: -> ::Array[Courier::Models::JourneyAudienceTriggerNode::type_]
63
+ end
64
+ end
65
+ end
66
+ end
@@ -3,6 +3,8 @@ module Courier
3
3
  type journey_node =
4
4
  Courier::JourneyAPIInvokeTriggerNode
5
5
  | Courier::JourneySegmentTriggerNode
6
+ | Courier::JourneyAudienceTriggerNode
7
+ | Courier::JourneyWebhookTriggerNode
6
8
  | Courier::JourneySendNode
7
9
  | Courier::JourneyDelayDurationNode
8
10
  | Courier::JourneyDelayUntilNode
@@ -0,0 +1,53 @@
1
+ module Courier
2
+ module Models
3
+ type journey_run =
4
+ {
5
+ run_id: String,
6
+ source: ::Array[String],
7
+ created_at: String,
8
+ status: String,
9
+ template_id: String,
10
+ updated_at: String
11
+ }
12
+
13
+ class JourneyRun < Courier::Internal::Type::BaseModel
14
+ attr_accessor run_id: String
15
+
16
+ attr_accessor source: ::Array[String]
17
+
18
+ attr_reader created_at: String?
19
+
20
+ def created_at=: (String) -> String
21
+
22
+ attr_reader status: String?
23
+
24
+ def status=: (String) -> String
25
+
26
+ attr_reader template_id: String?
27
+
28
+ def template_id=: (String) -> String
29
+
30
+ attr_reader updated_at: String?
31
+
32
+ def updated_at=: (String) -> String
33
+
34
+ def initialize: (
35
+ run_id: String,
36
+ source: ::Array[String],
37
+ ?created_at: String,
38
+ ?status: String,
39
+ ?template_id: String,
40
+ ?updated_at: String
41
+ ) -> void
42
+
43
+ def to_hash: -> {
44
+ run_id: String,
45
+ source: ::Array[String],
46
+ created_at: String,
47
+ status: String,
48
+ template_id: String,
49
+ updated_at: String
50
+ }
51
+ end
52
+ end
53
+ end
@@ -0,0 +1,46 @@
1
+ module Courier
2
+ module Models
3
+ type journey_run_list_item =
4
+ {
5
+ run_id: String,
6
+ source: ::Array[String],
7
+ created_at: String,
8
+ status: String,
9
+ template_id: String
10
+ }
11
+
12
+ class JourneyRunListItem < Courier::Internal::Type::BaseModel
13
+ attr_accessor run_id: String
14
+
15
+ attr_accessor source: ::Array[String]
16
+
17
+ attr_reader created_at: String?
18
+
19
+ def created_at=: (String) -> String
20
+
21
+ attr_reader status: String?
22
+
23
+ def status=: (String) -> String
24
+
25
+ attr_reader template_id: String?
26
+
27
+ def template_id=: (String) -> String
28
+
29
+ def initialize: (
30
+ run_id: String,
31
+ source: ::Array[String],
32
+ ?created_at: String,
33
+ ?status: String,
34
+ ?template_id: String
35
+ ) -> void
36
+
37
+ def to_hash: -> {
38
+ run_id: String,
39
+ source: ::Array[String],
40
+ created_at: String,
41
+ status: String,
42
+ template_id: String
43
+ }
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,34 @@
1
+ module Courier
2
+ module Models
3
+ type journey_run_list_response =
4
+ {
5
+ runs: ::Array[Courier::JourneyRunListItem],
6
+ next_cursor: String,
7
+ prev_cursor: String
8
+ }
9
+
10
+ class JourneyRunListResponse < Courier::Internal::Type::BaseModel
11
+ attr_accessor runs: ::Array[Courier::JourneyRunListItem]
12
+
13
+ attr_reader next_cursor: String?
14
+
15
+ def next_cursor=: (String) -> String
16
+
17
+ attr_reader prev_cursor: String?
18
+
19
+ def prev_cursor=: (String) -> String
20
+
21
+ def initialize: (
22
+ runs: ::Array[Courier::JourneyRunListItem],
23
+ ?next_cursor: String,
24
+ ?prev_cursor: String
25
+ ) -> void
26
+
27
+ def to_hash: -> {
28
+ runs: ::Array[Courier::JourneyRunListItem],
29
+ next_cursor: String,
30
+ prev_cursor: String
31
+ }
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,13 @@
1
+ module Courier
2
+ module Models
3
+ type journey_run_response = { run: Courier::JourneyRun }
4
+
5
+ class JourneyRunResponse < Courier::Internal::Type::BaseModel
6
+ attr_accessor run: Courier::JourneyRun
7
+
8
+ def initialize: (run: Courier::JourneyRun) -> void
9
+
10
+ def to_hash: -> { run: Courier::JourneyRun }
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,53 @@
1
+ module Courier
2
+ module Models
3
+ type journey_run_step =
4
+ {
5
+ action: String,
6
+ status: String,
7
+ created_at: String,
8
+ message_id: String,
9
+ node_id: String,
10
+ updated_at: String
11
+ }
12
+
13
+ class JourneyRunStep < Courier::Internal::Type::BaseModel
14
+ attr_accessor action: String
15
+
16
+ attr_accessor status: String
17
+
18
+ attr_reader created_at: String?
19
+
20
+ def created_at=: (String) -> String
21
+
22
+ attr_reader message_id: String?
23
+
24
+ def message_id=: (String) -> String
25
+
26
+ attr_reader node_id: String?
27
+
28
+ def node_id=: (String) -> String
29
+
30
+ attr_reader updated_at: String?
31
+
32
+ def updated_at=: (String) -> String
33
+
34
+ def initialize: (
35
+ action: String,
36
+ status: String,
37
+ ?created_at: String,
38
+ ?message_id: String,
39
+ ?node_id: String,
40
+ ?updated_at: String
41
+ ) -> void
42
+
43
+ def to_hash: -> {
44
+ action: String,
45
+ status: String,
46
+ created_at: String,
47
+ message_id: String,
48
+ node_id: String,
49
+ updated_at: String
50
+ }
51
+ end
52
+ end
53
+ end
@@ -0,0 +1,14 @@
1
+ module Courier
2
+ module Models
3
+ type journey_run_steps_response =
4
+ { steps: ::Array[Courier::JourneyRunStep] }
5
+
6
+ class JourneyRunStepsResponse < Courier::Internal::Type::BaseModel
7
+ attr_accessor steps: ::Array[Courier::JourneyRunStep]
8
+
9
+ def initialize: (steps: ::Array[Courier::JourneyRunStep]) -> void
10
+
11
+ def to_hash: -> { steps: ::Array[Courier::JourneyRunStep] }
12
+ end
13
+ end
14
+ end
@@ -49,7 +49,7 @@ module Courier
49
49
  event_id: String
50
50
  }
51
51
 
52
- type request_type = :identify | :group | :track
52
+ type request_type = :identify | :group | :track | :page
53
53
 
54
54
  module RequestType
55
55
  extend Courier::Internal::Type::Enum
@@ -57,6 +57,7 @@ module Courier
57
57
  IDENTIFY: :identify
58
58
  GROUP: :group
59
59
  TRACK: :track
60
+ PAGE: :page
60
61
 
61
62
  def self?.values: -> ::Array[Courier::Models::JourneySegmentTriggerNode::request_type]
62
63
  end
@@ -0,0 +1,73 @@
1
+ module Courier
2
+ module Models
3
+ type journey_webhook_trigger_node =
4
+ {
5
+ event_source: String,
6
+ trigger_type: Courier::Models::JourneyWebhookTriggerNode::trigger_type,
7
+ type: Courier::Models::JourneyWebhookTriggerNode::type_,
8
+ id: String,
9
+ conditions: Courier::Models::journey_conditions_field,
10
+ event_id: String
11
+ }
12
+
13
+ class JourneyWebhookTriggerNode < Courier::Internal::Type::BaseModel
14
+ attr_accessor event_source: String
15
+
16
+ attr_accessor trigger_type: Courier::Models::JourneyWebhookTriggerNode::trigger_type
17
+
18
+ attr_accessor type: Courier::Models::JourneyWebhookTriggerNode::type_
19
+
20
+ attr_reader id: String?
21
+
22
+ def id=: (String) -> String
23
+
24
+ attr_reader conditions: Courier::Models::journey_conditions_field?
25
+
26
+ def conditions=: (
27
+ Courier::Models::journey_conditions_field
28
+ ) -> Courier::Models::journey_conditions_field
29
+
30
+ attr_reader event_id: String?
31
+
32
+ def event_id=: (String) -> String
33
+
34
+ def initialize: (
35
+ event_source: String,
36
+ trigger_type: Courier::Models::JourneyWebhookTriggerNode::trigger_type,
37
+ type: Courier::Models::JourneyWebhookTriggerNode::type_,
38
+ ?id: String,
39
+ ?conditions: Courier::Models::journey_conditions_field,
40
+ ?event_id: String
41
+ ) -> void
42
+
43
+ def to_hash: -> {
44
+ event_source: String,
45
+ trigger_type: Courier::Models::JourneyWebhookTriggerNode::trigger_type,
46
+ type: Courier::Models::JourneyWebhookTriggerNode::type_,
47
+ id: String,
48
+ conditions: Courier::Models::journey_conditions_field,
49
+ event_id: String
50
+ }
51
+
52
+ type trigger_type = :webhook
53
+
54
+ module TriggerType
55
+ extend Courier::Internal::Type::Enum
56
+
57
+ WEBHOOK: :webhook
58
+
59
+ def self?.values: -> ::Array[Courier::Models::JourneyWebhookTriggerNode::trigger_type]
60
+ end
61
+
62
+ type type_ = :trigger
63
+
64
+ module Type
65
+ extend Courier::Internal::Type::Enum
66
+
67
+ TRIGGER: :trigger
68
+
69
+ def self?.values: -> ::Array[Courier::Models::JourneyWebhookTriggerNode::type_]
70
+ end
71
+ end
72
+ end
73
+ end
@@ -0,0 +1,65 @@
1
+ module Courier
2
+ module Models
3
+ module Journeys
4
+ type run_list_params =
5
+ {
6
+ cursor: String,
7
+ end_date: String,
8
+ limit: String,
9
+ start_date: String,
10
+ status: String,
11
+ template_id: String
12
+ }
13
+ & Courier::Internal::Type::request_parameters
14
+
15
+ class RunListParams < Courier::Internal::Type::BaseModel
16
+ extend Courier::Internal::Type::RequestParameters::Converter
17
+ include Courier::Internal::Type::RequestParameters
18
+
19
+ attr_reader cursor: String?
20
+
21
+ def cursor=: (String) -> String
22
+
23
+ attr_reader end_date: String?
24
+
25
+ def end_date=: (String) -> String
26
+
27
+ attr_reader limit: String?
28
+
29
+ def limit=: (String) -> String
30
+
31
+ attr_reader start_date: String?
32
+
33
+ def start_date=: (String) -> String
34
+
35
+ attr_reader status: String?
36
+
37
+ def status=: (String) -> String
38
+
39
+ attr_reader template_id: String?
40
+
41
+ def template_id=: (String) -> String
42
+
43
+ def initialize: (
44
+ ?cursor: String,
45
+ ?end_date: String,
46
+ ?limit: String,
47
+ ?start_date: String,
48
+ ?status: String,
49
+ ?template_id: String,
50
+ ?request_options: Courier::request_opts
51
+ ) -> void
52
+
53
+ def to_hash: -> {
54
+ cursor: String,
55
+ end_date: String,
56
+ limit: String,
57
+ start_date: String,
58
+ status: String,
59
+ template_id: String,
60
+ request_options: Courier::RequestOptions
61
+ }
62
+ end
63
+ end
64
+ end
65
+ end