trycourier 4.6.0 → 4.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +25 -0
  3. data/README.md +9 -9
  4. data/lib/trycourier/models/audience.rb +33 -9
  5. data/lib/trycourier/models/audience_filter_config.rb +18 -0
  6. data/lib/trycourier/models/audience_update_params.rb +27 -5
  7. data/lib/trycourier/models/elemental_channel_node.rb +3 -3
  8. data/lib/trycourier/models/filter_config.rb +42 -9
  9. data/lib/trycourier/models/inbound_track_event_params.rb +2 -2
  10. data/lib/trycourier/models/subscription_topic_new.rb +1 -1
  11. data/lib/trycourier/models.rb +2 -6
  12. data/lib/trycourier/resources/audiences.rb +7 -2
  13. data/lib/trycourier/resources/inbound.rb +1 -1
  14. data/lib/trycourier/resources/lists/subscriptions.rb +1 -1
  15. data/lib/trycourier/resources/notifications/checks.rb +3 -3
  16. data/lib/trycourier/resources/tenants/preferences/items.rb +3 -3
  17. data/lib/trycourier/resources/translations.rb +1 -1
  18. data/lib/trycourier/resources/users/preferences.rb +1 -1
  19. data/lib/trycourier/resources/users/tenants.rb +1 -1
  20. data/lib/trycourier/resources/users/tokens.rb +2 -2
  21. data/lib/trycourier/version.rb +1 -1
  22. data/lib/trycourier.rb +1 -3
  23. data/rbi/trycourier/models/audience.rbi +47 -15
  24. data/rbi/trycourier/models/audience_filter_config.rbi +32 -0
  25. data/rbi/trycourier/models/audience_update_params.rbi +45 -25
  26. data/rbi/trycourier/models/elemental_channel_node.rbi +6 -3
  27. data/rbi/trycourier/models/filter_config.rbi +72 -8
  28. data/rbi/trycourier/models/inbound_track_event_params.rbi +2 -2
  29. data/rbi/trycourier/models/subscription_topic_new.rbi +2 -2
  30. data/rbi/trycourier/models.rbi +2 -6
  31. data/rbi/trycourier/resources/audiences.rbi +6 -8
  32. data/rbi/trycourier/resources/inbound.rbi +1 -1
  33. data/rbi/trycourier/resources/lists/subscriptions.rbi +1 -1
  34. data/rbi/trycourier/resources/notifications/checks.rbi +3 -3
  35. data/rbi/trycourier/resources/tenants/preferences/items.rbi +4 -4
  36. data/rbi/trycourier/resources/translations.rbi +1 -1
  37. data/rbi/trycourier/resources/users/preferences.rbi +1 -1
  38. data/rbi/trycourier/resources/users/tenants.rbi +1 -1
  39. data/rbi/trycourier/resources/users/tokens.rbi +2 -2
  40. data/sig/trycourier/models/audience.rbs +28 -8
  41. data/sig/trycourier/models/audience_filter_config.rbs +13 -0
  42. data/sig/trycourier/models/audience_update_params.rbs +21 -5
  43. data/sig/trycourier/models/elemental_channel_node.rbs +2 -2
  44. data/sig/trycourier/models/filter_config.rbs +35 -4
  45. data/sig/trycourier/models.rbs +3 -7
  46. data/sig/trycourier/resources/audiences.rbs +2 -1
  47. metadata +19 -11
  48. data/lib/trycourier/models/filter.rb +0 -19
  49. data/lib/trycourier/models/nested_filter_config.rb +0 -49
  50. data/lib/trycourier/models/single_filter_config.rb +0 -62
  51. data/rbi/trycourier/models/filter.rbi +0 -19
  52. data/rbi/trycourier/models/nested_filter_config.rbi +0 -104
  53. data/rbi/trycourier/models/single_filter_config.rbi +0 -116
  54. data/sig/trycourier/models/filter.rbs +0 -12
  55. data/sig/trycourier/models/nested_filter_config.rbs +0 -64
  56. data/sig/trycourier/models/single_filter_config.rbs +0 -69
@@ -1,69 +0,0 @@
1
- module Trycourier
2
- module Models
3
- type single_filter_config =
4
- {
5
- operator: Trycourier::Models::SingleFilterConfig::operator,
6
- path: String,
7
- value: String
8
- }
9
-
10
- class SingleFilterConfig < Trycourier::Internal::Type::BaseModel
11
- attr_accessor operator: Trycourier::Models::SingleFilterConfig::operator
12
-
13
- attr_accessor path: String
14
-
15
- attr_accessor value: String
16
-
17
- def initialize: (
18
- operator: Trycourier::Models::SingleFilterConfig::operator,
19
- path: String,
20
- value: String
21
- ) -> void
22
-
23
- def to_hash: -> {
24
- operator: Trycourier::Models::SingleFilterConfig::operator,
25
- path: String,
26
- value: String
27
- }
28
-
29
- type operator =
30
- :ENDS_WITH
31
- | :EQ
32
- | :EXISTS
33
- | :GT
34
- | :GTE
35
- | :INCLUDES
36
- | :IS_AFTER
37
- | :IS_BEFORE
38
- | :LT
39
- | :LTE
40
- | :NEQ
41
- | :OMIT
42
- | :STARTS_WITH
43
- | :AND
44
- | :OR
45
-
46
- module Operator
47
- extend Trycourier::Internal::Type::Enum
48
-
49
- ENDS_WITH: :ENDS_WITH
50
- EQ: :EQ
51
- EXISTS: :EXISTS
52
- GT: :GT
53
- GTE: :GTE
54
- INCLUDES: :INCLUDES
55
- IS_AFTER: :IS_AFTER
56
- IS_BEFORE: :IS_BEFORE
57
- LT: :LT
58
- LTE: :LTE
59
- NEQ: :NEQ
60
- OMIT: :OMIT
61
- STARTS_WITH: :STARTS_WITH
62
- AND: :AND
63
- OR: :OR
64
-
65
- def self?.values: -> ::Array[Trycourier::Models::SingleFilterConfig::operator]
66
- end
67
- end
68
- end
69
- end