increase 1.297.0 → 1.298.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 +8 -0
- data/README.md +1 -1
- data/lib/increase/models/event_list_params.rb +56 -1
- data/lib/increase/resources/events.rb +3 -1
- data/lib/increase/version.rb +1 -1
- data/rbi/increase/models/event_list_params.rbi +136 -0
- data/rbi/increase/resources/events.rbi +2 -0
- data/sig/increase/models/event_list_params.rbs +65 -1
- data/sig/increase/resources/events.rbs +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 75a4f8c865be7f33a2c6ae777fe20cab3a6c9f3d1e4ba592af7bd226c680935e
|
|
4
|
+
data.tar.gz: 0311a6e52033daf2c6b858526f8d100d232d109bd30d2835e994caee5aa36d3a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 23b0e1061c6d511a27b4ef0fb3920a5b8f9c8223327f99b322f598709c969d062d78ccd1168c23ec3acb70a7c9f3f77e5059cdc8402d68ca2dc35bd76a29ae46
|
|
7
|
+
data.tar.gz: a43125ba6ad04e7424d332725b39f66bd739dd232a471093d9f77fe277725cdf8ae7022eb858014c3438113b2a09176f9708b5e1887864d9bdbc780577eb2f50
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.298.0 (2026-04-16)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v1.297.0...v1.298.0](https://github.com/Increase/increase-ruby/compare/v1.297.0...v1.298.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([aa1b1c1](https://github.com/Increase/increase-ruby/commit/aa1b1c14ee50f8de67ada9f5a4481c1fe941d89a))
|
|
10
|
+
|
|
3
11
|
## 1.297.0 (2026-04-16)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v1.296.0...v1.297.0](https://github.com/Increase/increase-ruby/compare/v1.296.0...v1.297.0)
|
data/README.md
CHANGED
|
@@ -36,7 +36,12 @@ module Increase
|
|
|
36
36
|
# @return [Integer, nil]
|
|
37
37
|
optional :limit, Integer
|
|
38
38
|
|
|
39
|
-
# @!
|
|
39
|
+
# @!attribute order_by
|
|
40
|
+
#
|
|
41
|
+
# @return [Increase::Models::EventListParams::OrderBy, nil]
|
|
42
|
+
optional :order_by, -> { Increase::EventListParams::OrderBy }
|
|
43
|
+
|
|
44
|
+
# @!method initialize(associated_object_id: nil, category: nil, created_at: nil, cursor: nil, limit: nil, order_by: nil, request_options: {})
|
|
40
45
|
# Some parameter documentations has been truncated, see
|
|
41
46
|
# {Increase::Models::EventListParams} for more details.
|
|
42
47
|
#
|
|
@@ -50,6 +55,8 @@ module Increase
|
|
|
50
55
|
#
|
|
51
56
|
# @param limit [Integer] Limit the size of the list that is returned. The default (and maximum) is 100 ob
|
|
52
57
|
#
|
|
58
|
+
# @param order_by [Increase::Models::EventListParams::OrderBy]
|
|
59
|
+
#
|
|
53
60
|
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
|
|
54
61
|
|
|
55
62
|
class Category < Increase::Internal::Type::BaseModel
|
|
@@ -450,6 +457,54 @@ module Increase
|
|
|
450
457
|
#
|
|
451
458
|
# @param on_or_before [Time] Return results on or before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_86
|
|
452
459
|
end
|
|
460
|
+
|
|
461
|
+
class OrderBy < Increase::Internal::Type::BaseModel
|
|
462
|
+
# @!attribute direction
|
|
463
|
+
# The direction to order in.
|
|
464
|
+
#
|
|
465
|
+
# @return [Symbol, Increase::Models::EventListParams::OrderBy::Direction, nil]
|
|
466
|
+
optional :direction, enum: -> { Increase::EventListParams::OrderBy::Direction }
|
|
467
|
+
|
|
468
|
+
# @!attribute field
|
|
469
|
+
# The field to order by.
|
|
470
|
+
#
|
|
471
|
+
# @return [Symbol, Increase::Models::EventListParams::OrderBy::Field, nil]
|
|
472
|
+
optional :field, enum: -> { Increase::EventListParams::OrderBy::Field }
|
|
473
|
+
|
|
474
|
+
# @!method initialize(direction: nil, field: nil)
|
|
475
|
+
# @param direction [Symbol, Increase::Models::EventListParams::OrderBy::Direction] The direction to order in.
|
|
476
|
+
#
|
|
477
|
+
# @param field [Symbol, Increase::Models::EventListParams::OrderBy::Field] The field to order by.
|
|
478
|
+
|
|
479
|
+
# The direction to order in.
|
|
480
|
+
#
|
|
481
|
+
# @see Increase::Models::EventListParams::OrderBy#direction
|
|
482
|
+
module Direction
|
|
483
|
+
extend Increase::Internal::Type::Enum
|
|
484
|
+
|
|
485
|
+
# Ascending in value.
|
|
486
|
+
ASCENDING = :ascending
|
|
487
|
+
|
|
488
|
+
# Descending in value.
|
|
489
|
+
DESCENDING = :descending
|
|
490
|
+
|
|
491
|
+
# @!method self.values
|
|
492
|
+
# @return [Array<Symbol>]
|
|
493
|
+
end
|
|
494
|
+
|
|
495
|
+
# The field to order by.
|
|
496
|
+
#
|
|
497
|
+
# @see Increase::Models::EventListParams::OrderBy#field
|
|
498
|
+
module Field
|
|
499
|
+
extend Increase::Internal::Type::Enum
|
|
500
|
+
|
|
501
|
+
# The time the Event was created.
|
|
502
|
+
CREATED_AT = :created_at
|
|
503
|
+
|
|
504
|
+
# @!method self.values
|
|
505
|
+
# @return [Array<Symbol>]
|
|
506
|
+
end
|
|
507
|
+
end
|
|
453
508
|
end
|
|
454
509
|
end
|
|
455
510
|
end
|
|
@@ -28,7 +28,7 @@ module Increase
|
|
|
28
28
|
#
|
|
29
29
|
# List Events
|
|
30
30
|
#
|
|
31
|
-
# @overload list(associated_object_id: nil, category: nil, created_at: nil, cursor: nil, limit: nil, request_options: {})
|
|
31
|
+
# @overload list(associated_object_id: nil, category: nil, created_at: nil, cursor: nil, limit: nil, order_by: nil, request_options: {})
|
|
32
32
|
#
|
|
33
33
|
# @param associated_object_id [String] Filter Events to those belonging to the object with the provided identifier.
|
|
34
34
|
#
|
|
@@ -40,6 +40,8 @@ module Increase
|
|
|
40
40
|
#
|
|
41
41
|
# @param limit [Integer] Limit the size of the list that is returned. The default (and maximum) is 100 ob
|
|
42
42
|
#
|
|
43
|
+
# @param order_by [Increase::Models::EventListParams::OrderBy]
|
|
44
|
+
#
|
|
43
45
|
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
44
46
|
#
|
|
45
47
|
# @return [Increase::Internal::Page<Increase::Models::Event>]
|
data/lib/increase/version.rb
CHANGED
|
@@ -47,6 +47,12 @@ module Increase
|
|
|
47
47
|
sig { params(limit: Integer).void }
|
|
48
48
|
attr_writer :limit
|
|
49
49
|
|
|
50
|
+
sig { returns(T.nilable(Increase::EventListParams::OrderBy)) }
|
|
51
|
+
attr_reader :order_by
|
|
52
|
+
|
|
53
|
+
sig { params(order_by: Increase::EventListParams::OrderBy::OrHash).void }
|
|
54
|
+
attr_writer :order_by
|
|
55
|
+
|
|
50
56
|
sig do
|
|
51
57
|
params(
|
|
52
58
|
associated_object_id: String,
|
|
@@ -54,6 +60,7 @@ module Increase
|
|
|
54
60
|
created_at: Increase::EventListParams::CreatedAt::OrHash,
|
|
55
61
|
cursor: String,
|
|
56
62
|
limit: Integer,
|
|
63
|
+
order_by: Increase::EventListParams::OrderBy::OrHash,
|
|
57
64
|
request_options: Increase::RequestOptions::OrHash
|
|
58
65
|
).returns(T.attached_class)
|
|
59
66
|
end
|
|
@@ -67,6 +74,7 @@ module Increase
|
|
|
67
74
|
# Limit the size of the list that is returned. The default (and maximum) is 100
|
|
68
75
|
# objects.
|
|
69
76
|
limit: nil,
|
|
77
|
+
order_by: nil,
|
|
70
78
|
request_options: {}
|
|
71
79
|
)
|
|
72
80
|
end
|
|
@@ -79,6 +87,7 @@ module Increase
|
|
|
79
87
|
created_at: Increase::EventListParams::CreatedAt,
|
|
80
88
|
cursor: String,
|
|
81
89
|
limit: Integer,
|
|
90
|
+
order_by: Increase::EventListParams::OrderBy,
|
|
82
91
|
request_options: Increase::RequestOptions
|
|
83
92
|
}
|
|
84
93
|
)
|
|
@@ -997,6 +1006,133 @@ module Increase
|
|
|
997
1006
|
def to_hash
|
|
998
1007
|
end
|
|
999
1008
|
end
|
|
1009
|
+
|
|
1010
|
+
class OrderBy < Increase::Internal::Type::BaseModel
|
|
1011
|
+
OrHash =
|
|
1012
|
+
T.type_alias do
|
|
1013
|
+
T.any(
|
|
1014
|
+
Increase::EventListParams::OrderBy,
|
|
1015
|
+
Increase::Internal::AnyHash
|
|
1016
|
+
)
|
|
1017
|
+
end
|
|
1018
|
+
|
|
1019
|
+
# The direction to order in.
|
|
1020
|
+
sig do
|
|
1021
|
+
returns(
|
|
1022
|
+
T.nilable(Increase::EventListParams::OrderBy::Direction::OrSymbol)
|
|
1023
|
+
)
|
|
1024
|
+
end
|
|
1025
|
+
attr_reader :direction
|
|
1026
|
+
|
|
1027
|
+
sig do
|
|
1028
|
+
params(
|
|
1029
|
+
direction: Increase::EventListParams::OrderBy::Direction::OrSymbol
|
|
1030
|
+
).void
|
|
1031
|
+
end
|
|
1032
|
+
attr_writer :direction
|
|
1033
|
+
|
|
1034
|
+
# The field to order by.
|
|
1035
|
+
sig do
|
|
1036
|
+
returns(
|
|
1037
|
+
T.nilable(Increase::EventListParams::OrderBy::Field::OrSymbol)
|
|
1038
|
+
)
|
|
1039
|
+
end
|
|
1040
|
+
attr_reader :field
|
|
1041
|
+
|
|
1042
|
+
sig do
|
|
1043
|
+
params(
|
|
1044
|
+
field: Increase::EventListParams::OrderBy::Field::OrSymbol
|
|
1045
|
+
).void
|
|
1046
|
+
end
|
|
1047
|
+
attr_writer :field
|
|
1048
|
+
|
|
1049
|
+
sig do
|
|
1050
|
+
params(
|
|
1051
|
+
direction: Increase::EventListParams::OrderBy::Direction::OrSymbol,
|
|
1052
|
+
field: Increase::EventListParams::OrderBy::Field::OrSymbol
|
|
1053
|
+
).returns(T.attached_class)
|
|
1054
|
+
end
|
|
1055
|
+
def self.new(
|
|
1056
|
+
# The direction to order in.
|
|
1057
|
+
direction: nil,
|
|
1058
|
+
# The field to order by.
|
|
1059
|
+
field: nil
|
|
1060
|
+
)
|
|
1061
|
+
end
|
|
1062
|
+
|
|
1063
|
+
sig do
|
|
1064
|
+
override.returns(
|
|
1065
|
+
{
|
|
1066
|
+
direction:
|
|
1067
|
+
Increase::EventListParams::OrderBy::Direction::OrSymbol,
|
|
1068
|
+
field: Increase::EventListParams::OrderBy::Field::OrSymbol
|
|
1069
|
+
}
|
|
1070
|
+
)
|
|
1071
|
+
end
|
|
1072
|
+
def to_hash
|
|
1073
|
+
end
|
|
1074
|
+
|
|
1075
|
+
# The direction to order in.
|
|
1076
|
+
module Direction
|
|
1077
|
+
extend Increase::Internal::Type::Enum
|
|
1078
|
+
|
|
1079
|
+
TaggedSymbol =
|
|
1080
|
+
T.type_alias do
|
|
1081
|
+
T.all(Symbol, Increase::EventListParams::OrderBy::Direction)
|
|
1082
|
+
end
|
|
1083
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
1084
|
+
|
|
1085
|
+
# Ascending in value.
|
|
1086
|
+
ASCENDING =
|
|
1087
|
+
T.let(
|
|
1088
|
+
:ascending,
|
|
1089
|
+
Increase::EventListParams::OrderBy::Direction::TaggedSymbol
|
|
1090
|
+
)
|
|
1091
|
+
|
|
1092
|
+
# Descending in value.
|
|
1093
|
+
DESCENDING =
|
|
1094
|
+
T.let(
|
|
1095
|
+
:descending,
|
|
1096
|
+
Increase::EventListParams::OrderBy::Direction::TaggedSymbol
|
|
1097
|
+
)
|
|
1098
|
+
|
|
1099
|
+
sig do
|
|
1100
|
+
override.returns(
|
|
1101
|
+
T::Array[
|
|
1102
|
+
Increase::EventListParams::OrderBy::Direction::TaggedSymbol
|
|
1103
|
+
]
|
|
1104
|
+
)
|
|
1105
|
+
end
|
|
1106
|
+
def self.values
|
|
1107
|
+
end
|
|
1108
|
+
end
|
|
1109
|
+
|
|
1110
|
+
# The field to order by.
|
|
1111
|
+
module Field
|
|
1112
|
+
extend Increase::Internal::Type::Enum
|
|
1113
|
+
|
|
1114
|
+
TaggedSymbol =
|
|
1115
|
+
T.type_alias do
|
|
1116
|
+
T.all(Symbol, Increase::EventListParams::OrderBy::Field)
|
|
1117
|
+
end
|
|
1118
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
1119
|
+
|
|
1120
|
+
# The time the Event was created.
|
|
1121
|
+
CREATED_AT =
|
|
1122
|
+
T.let(
|
|
1123
|
+
:created_at,
|
|
1124
|
+
Increase::EventListParams::OrderBy::Field::TaggedSymbol
|
|
1125
|
+
)
|
|
1126
|
+
|
|
1127
|
+
sig do
|
|
1128
|
+
override.returns(
|
|
1129
|
+
T::Array[Increase::EventListParams::OrderBy::Field::TaggedSymbol]
|
|
1130
|
+
)
|
|
1131
|
+
end
|
|
1132
|
+
def self.values
|
|
1133
|
+
end
|
|
1134
|
+
end
|
|
1135
|
+
end
|
|
1000
1136
|
end
|
|
1001
1137
|
end
|
|
1002
1138
|
end
|
|
@@ -25,6 +25,7 @@ module Increase
|
|
|
25
25
|
created_at: Increase::EventListParams::CreatedAt::OrHash,
|
|
26
26
|
cursor: String,
|
|
27
27
|
limit: Integer,
|
|
28
|
+
order_by: Increase::EventListParams::OrderBy::OrHash,
|
|
28
29
|
request_options: Increase::RequestOptions::OrHash
|
|
29
30
|
).returns(Increase::Internal::Page[Increase::Event])
|
|
30
31
|
end
|
|
@@ -38,6 +39,7 @@ module Increase
|
|
|
38
39
|
# Limit the size of the list that is returned. The default (and maximum) is 100
|
|
39
40
|
# objects.
|
|
40
41
|
limit: nil,
|
|
42
|
+
order_by: nil,
|
|
41
43
|
request_options: {}
|
|
42
44
|
)
|
|
43
45
|
end
|
|
@@ -6,7 +6,8 @@ module Increase
|
|
|
6
6
|
category: Increase::EventListParams::Category,
|
|
7
7
|
created_at: Increase::EventListParams::CreatedAt,
|
|
8
8
|
cursor: String,
|
|
9
|
-
limit: Integer
|
|
9
|
+
limit: Integer,
|
|
10
|
+
order_by: Increase::EventListParams::OrderBy
|
|
10
11
|
}
|
|
11
12
|
& Increase::Internal::Type::request_parameters
|
|
12
13
|
|
|
@@ -38,12 +39,19 @@ module Increase
|
|
|
38
39
|
|
|
39
40
|
def limit=: (Integer) -> Integer
|
|
40
41
|
|
|
42
|
+
attr_reader order_by: Increase::EventListParams::OrderBy?
|
|
43
|
+
|
|
44
|
+
def order_by=: (
|
|
45
|
+
Increase::EventListParams::OrderBy
|
|
46
|
+
) -> Increase::EventListParams::OrderBy
|
|
47
|
+
|
|
41
48
|
def initialize: (
|
|
42
49
|
?associated_object_id: String,
|
|
43
50
|
?category: Increase::EventListParams::Category,
|
|
44
51
|
?created_at: Increase::EventListParams::CreatedAt,
|
|
45
52
|
?cursor: String,
|
|
46
53
|
?limit: Integer,
|
|
54
|
+
?order_by: Increase::EventListParams::OrderBy,
|
|
47
55
|
?request_options: Increase::request_opts
|
|
48
56
|
) -> void
|
|
49
57
|
|
|
@@ -53,6 +61,7 @@ module Increase
|
|
|
53
61
|
created_at: Increase::EventListParams::CreatedAt,
|
|
54
62
|
cursor: String,
|
|
55
63
|
limit: Integer,
|
|
64
|
+
order_by: Increase::EventListParams::OrderBy,
|
|
56
65
|
request_options: Increase::RequestOptions
|
|
57
66
|
}
|
|
58
67
|
|
|
@@ -557,6 +566,61 @@ module Increase
|
|
|
557
566
|
on_or_before: Time
|
|
558
567
|
}
|
|
559
568
|
end
|
|
569
|
+
|
|
570
|
+
type order_by =
|
|
571
|
+
{
|
|
572
|
+
direction: Increase::Models::EventListParams::OrderBy::direction,
|
|
573
|
+
field: Increase::Models::EventListParams::OrderBy::field
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
class OrderBy < Increase::Internal::Type::BaseModel
|
|
577
|
+
attr_reader direction: Increase::Models::EventListParams::OrderBy::direction?
|
|
578
|
+
|
|
579
|
+
def direction=: (
|
|
580
|
+
Increase::Models::EventListParams::OrderBy::direction
|
|
581
|
+
) -> Increase::Models::EventListParams::OrderBy::direction
|
|
582
|
+
|
|
583
|
+
attr_reader field: Increase::Models::EventListParams::OrderBy::field?
|
|
584
|
+
|
|
585
|
+
def field=: (
|
|
586
|
+
Increase::Models::EventListParams::OrderBy::field
|
|
587
|
+
) -> Increase::Models::EventListParams::OrderBy::field
|
|
588
|
+
|
|
589
|
+
def initialize: (
|
|
590
|
+
?direction: Increase::Models::EventListParams::OrderBy::direction,
|
|
591
|
+
?field: Increase::Models::EventListParams::OrderBy::field
|
|
592
|
+
) -> void
|
|
593
|
+
|
|
594
|
+
def to_hash: -> {
|
|
595
|
+
direction: Increase::Models::EventListParams::OrderBy::direction,
|
|
596
|
+
field: Increase::Models::EventListParams::OrderBy::field
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
type direction = :ascending | :descending
|
|
600
|
+
|
|
601
|
+
module Direction
|
|
602
|
+
extend Increase::Internal::Type::Enum
|
|
603
|
+
|
|
604
|
+
# Ascending in value.
|
|
605
|
+
ASCENDING: :ascending
|
|
606
|
+
|
|
607
|
+
# Descending in value.
|
|
608
|
+
DESCENDING: :descending
|
|
609
|
+
|
|
610
|
+
def self?.values: -> ::Array[Increase::Models::EventListParams::OrderBy::direction]
|
|
611
|
+
end
|
|
612
|
+
|
|
613
|
+
type field = :created_at
|
|
614
|
+
|
|
615
|
+
module Field
|
|
616
|
+
extend Increase::Internal::Type::Enum
|
|
617
|
+
|
|
618
|
+
# The time the Event was created.
|
|
619
|
+
CREATED_AT: :created_at
|
|
620
|
+
|
|
621
|
+
def self?.values: -> ::Array[Increase::Models::EventListParams::OrderBy::field]
|
|
622
|
+
end
|
|
623
|
+
end
|
|
560
624
|
end
|
|
561
625
|
end
|
|
562
626
|
end
|