stigg 0.1.0.pre.beta.36 → 0.1.0.pre.beta.37
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/stigg/models/v1_beta/customers/assignment_list_params.rb +18 -5
- data/lib/stigg/resources/v1_beta/customers/assignments.rb +10 -4
- data/lib/stigg/version.rb +1 -1
- data/rbi/stigg/models/v1_beta/customers/assignment_list_params.rbi +23 -8
- data/rbi/stigg/resources/v1_beta/customers/assignments.rbi +8 -3
- data/sig/stigg/models/v1_beta/customers/assignment_list_params.rbs +12 -5
- data/sig/stigg/resources/v1_beta/customers/assignments.rbs +2 -1
- 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: c9942e1a0c1e0fa2c858bebcb7687081c9c1fade72666df98bce4a2aa3a38ca2
|
|
4
|
+
data.tar.gz: 0e37ef3906b5e9da14c039671c879de0eb815e293ea31a8736540f4636f62c96
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2c3809da68f100c7f903c8be54409203394487b54fdcc97e3ddfd21a7846bb67660443a432fb55030243a7647a309b3eb0388aa25ba3a155189ae137c6c25139
|
|
7
|
+
data.tar.gz: 666a9924b5a06cc593464ec1d66a16ebdbe4a16ec39fb56148084c2082659a313ef405a691987df97a6287bc41dec4db57046b8f3e4c8a5546e9ee997cb78288
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.0-beta.37 (2026-07-05)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.1.0-beta.36...v0.1.0-beta.37](https://github.com/stiggio/stigg-ruby/compare/v0.1.0-beta.36...v0.1.0-beta.37)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** add feature_id, rename capability_id to currency_id in assignments list ([9304b33](https://github.com/stiggio/stigg-ruby/commit/9304b33beeee4bddc6feb37f62448ddc9ef57ad4))
|
|
10
|
+
|
|
3
11
|
## 0.1.0-beta.36 (2026-07-05)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v0.1.0-beta.35...v0.1.0-beta.36](https://github.com/stiggio/stigg-ruby/compare/v0.1.0-beta.35...v0.1.0-beta.36)
|
data/README.md
CHANGED
|
@@ -26,11 +26,12 @@ module Stigg
|
|
|
26
26
|
# @return [String, nil]
|
|
27
27
|
optional :before, String
|
|
28
28
|
|
|
29
|
-
# @!attribute
|
|
30
|
-
# Filter assignments to a specific
|
|
29
|
+
# @!attribute currency_id
|
|
30
|
+
# Filter assignments to a specific currency, by its ID. Mutually exclusive with
|
|
31
|
+
# `featureId`.
|
|
31
32
|
#
|
|
32
33
|
# @return [String, nil]
|
|
33
|
-
optional :
|
|
34
|
+
optional :currency_id, String
|
|
34
35
|
|
|
35
36
|
# @!attribute entity_id
|
|
36
37
|
# Filter assignments to a specific entity ID
|
|
@@ -38,6 +39,13 @@ module Stigg
|
|
|
38
39
|
# @return [String, nil]
|
|
39
40
|
optional :entity_id, String
|
|
40
41
|
|
|
42
|
+
# @!attribute feature_id
|
|
43
|
+
# Filter assignments to a specific feature, by its ID. Mutually exclusive with
|
|
44
|
+
# `currencyId`.
|
|
45
|
+
#
|
|
46
|
+
# @return [String, nil]
|
|
47
|
+
optional :feature_id, String
|
|
48
|
+
|
|
41
49
|
# @!attribute limit
|
|
42
50
|
# Maximum number of items to return
|
|
43
51
|
#
|
|
@@ -54,17 +62,22 @@ module Stigg
|
|
|
54
62
|
# @return [String, nil]
|
|
55
63
|
optional :x_environment_id, String
|
|
56
64
|
|
|
57
|
-
# @!method initialize(id:, after: nil, before: nil,
|
|
65
|
+
# @!method initialize(id:, after: nil, before: nil, currency_id: nil, entity_id: nil, feature_id: nil, limit: nil, x_account_id: nil, x_environment_id: nil, request_options: {})
|
|
66
|
+
# Some parameter documentations has been truncated, see
|
|
67
|
+
# {Stigg::Models::V1Beta::Customers::AssignmentListParams} for more details.
|
|
68
|
+
#
|
|
58
69
|
# @param id [String]
|
|
59
70
|
#
|
|
60
71
|
# @param after [String] Return items that come after this cursor
|
|
61
72
|
#
|
|
62
73
|
# @param before [String] Return items that come before this cursor
|
|
63
74
|
#
|
|
64
|
-
# @param
|
|
75
|
+
# @param currency_id [String] Filter assignments to a specific currency, by its ID. Mutually exclusive with `f
|
|
65
76
|
#
|
|
66
77
|
# @param entity_id [String] Filter assignments to a specific entity ID
|
|
67
78
|
#
|
|
79
|
+
# @param feature_id [String] Filter assignments to a specific feature, by its ID. Mutually exclusive with `cu
|
|
80
|
+
#
|
|
68
81
|
# @param limit [Integer] Maximum number of items to return
|
|
69
82
|
#
|
|
70
83
|
# @param x_account_id [String]
|
|
@@ -12,7 +12,7 @@ module Stigg
|
|
|
12
12
|
# customer. An assignment ties an entity to a capability with a usage limit and
|
|
13
13
|
# reset cadence.
|
|
14
14
|
#
|
|
15
|
-
# @overload list(id, after: nil, before: nil,
|
|
15
|
+
# @overload list(id, after: nil, before: nil, currency_id: nil, entity_id: nil, feature_id: nil, limit: nil, x_account_id: nil, x_environment_id: nil, request_options: {})
|
|
16
16
|
#
|
|
17
17
|
# @param id [String] Path param: The customer identifier (owner) the assignments belong to
|
|
18
18
|
#
|
|
@@ -20,10 +20,12 @@ module Stigg
|
|
|
20
20
|
#
|
|
21
21
|
# @param before [String] Query param: Return items that come before this cursor
|
|
22
22
|
#
|
|
23
|
-
# @param
|
|
23
|
+
# @param currency_id [String] Query param: Filter assignments to a specific currency, by its ID. Mutually excl
|
|
24
24
|
#
|
|
25
25
|
# @param entity_id [String] Query param: Filter assignments to a specific entity ID
|
|
26
26
|
#
|
|
27
|
+
# @param feature_id [String] Query param: Filter assignments to a specific feature, by its ID. Mutually exclu
|
|
28
|
+
#
|
|
27
29
|
# @param limit [Integer] Query param: Maximum number of items to return
|
|
28
30
|
#
|
|
29
31
|
# @param x_account_id [String] Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
@@ -36,13 +38,17 @@ module Stigg
|
|
|
36
38
|
#
|
|
37
39
|
# @see Stigg::Models::V1Beta::Customers::AssignmentListParams
|
|
38
40
|
def list(id, params = {})
|
|
39
|
-
query_params = [:after, :before, :
|
|
41
|
+
query_params = [:after, :before, :currency_id, :entity_id, :feature_id, :limit]
|
|
40
42
|
parsed, options = Stigg::V1Beta::Customers::AssignmentListParams.dump_request(params)
|
|
41
43
|
query = Stigg::Internal::Util.encode_query_params(parsed.slice(*query_params))
|
|
42
44
|
@client.request(
|
|
43
45
|
method: :get,
|
|
44
46
|
path: ["api/v1-beta/customers/%1$s/assignments", id],
|
|
45
|
-
query: query.transform_keys(
|
|
47
|
+
query: query.transform_keys(
|
|
48
|
+
currency_id: "currencyId",
|
|
49
|
+
entity_id: "entityId",
|
|
50
|
+
feature_id: "featureId"
|
|
51
|
+
),
|
|
46
52
|
headers: parsed.except(*query_params).transform_keys(
|
|
47
53
|
x_account_id: "x-account-id",
|
|
48
54
|
x_environment_id: "x-environment-id"
|
data/lib/stigg/version.rb
CHANGED
|
@@ -33,12 +33,13 @@ module Stigg
|
|
|
33
33
|
sig { params(before: String).void }
|
|
34
34
|
attr_writer :before
|
|
35
35
|
|
|
36
|
-
# Filter assignments to a specific
|
|
36
|
+
# Filter assignments to a specific currency, by its ID. Mutually exclusive with
|
|
37
|
+
# `featureId`.
|
|
37
38
|
sig { returns(T.nilable(String)) }
|
|
38
|
-
attr_reader :
|
|
39
|
+
attr_reader :currency_id
|
|
39
40
|
|
|
40
|
-
sig { params(
|
|
41
|
-
attr_writer :
|
|
41
|
+
sig { params(currency_id: String).void }
|
|
42
|
+
attr_writer :currency_id
|
|
42
43
|
|
|
43
44
|
# Filter assignments to a specific entity ID
|
|
44
45
|
sig { returns(T.nilable(String)) }
|
|
@@ -47,6 +48,14 @@ module Stigg
|
|
|
47
48
|
sig { params(entity_id: String).void }
|
|
48
49
|
attr_writer :entity_id
|
|
49
50
|
|
|
51
|
+
# Filter assignments to a specific feature, by its ID. Mutually exclusive with
|
|
52
|
+
# `currencyId`.
|
|
53
|
+
sig { returns(T.nilable(String)) }
|
|
54
|
+
attr_reader :feature_id
|
|
55
|
+
|
|
56
|
+
sig { params(feature_id: String).void }
|
|
57
|
+
attr_writer :feature_id
|
|
58
|
+
|
|
50
59
|
# Maximum number of items to return
|
|
51
60
|
sig { returns(T.nilable(Integer)) }
|
|
52
61
|
attr_reader :limit
|
|
@@ -71,8 +80,9 @@ module Stigg
|
|
|
71
80
|
id: String,
|
|
72
81
|
after: String,
|
|
73
82
|
before: String,
|
|
74
|
-
|
|
83
|
+
currency_id: String,
|
|
75
84
|
entity_id: String,
|
|
85
|
+
feature_id: String,
|
|
76
86
|
limit: Integer,
|
|
77
87
|
x_account_id: String,
|
|
78
88
|
x_environment_id: String,
|
|
@@ -85,10 +95,14 @@ module Stigg
|
|
|
85
95
|
after: nil,
|
|
86
96
|
# Return items that come before this cursor
|
|
87
97
|
before: nil,
|
|
88
|
-
# Filter assignments to a specific
|
|
89
|
-
|
|
98
|
+
# Filter assignments to a specific currency, by its ID. Mutually exclusive with
|
|
99
|
+
# `featureId`.
|
|
100
|
+
currency_id: nil,
|
|
90
101
|
# Filter assignments to a specific entity ID
|
|
91
102
|
entity_id: nil,
|
|
103
|
+
# Filter assignments to a specific feature, by its ID. Mutually exclusive with
|
|
104
|
+
# `currencyId`.
|
|
105
|
+
feature_id: nil,
|
|
92
106
|
# Maximum number of items to return
|
|
93
107
|
limit: nil,
|
|
94
108
|
x_account_id: nil,
|
|
@@ -103,8 +117,9 @@ module Stigg
|
|
|
103
117
|
id: String,
|
|
104
118
|
after: String,
|
|
105
119
|
before: String,
|
|
106
|
-
|
|
120
|
+
currency_id: String,
|
|
107
121
|
entity_id: String,
|
|
122
|
+
feature_id: String,
|
|
108
123
|
limit: Integer,
|
|
109
124
|
x_account_id: String,
|
|
110
125
|
x_environment_id: String,
|
|
@@ -13,8 +13,9 @@ module Stigg
|
|
|
13
13
|
id: String,
|
|
14
14
|
after: String,
|
|
15
15
|
before: String,
|
|
16
|
-
|
|
16
|
+
currency_id: String,
|
|
17
17
|
entity_id: String,
|
|
18
|
+
feature_id: String,
|
|
18
19
|
limit: Integer,
|
|
19
20
|
x_account_id: String,
|
|
20
21
|
x_environment_id: String,
|
|
@@ -32,10 +33,14 @@ module Stigg
|
|
|
32
33
|
after: nil,
|
|
33
34
|
# Query param: Return items that come before this cursor
|
|
34
35
|
before: nil,
|
|
35
|
-
# Query param: Filter assignments to a specific
|
|
36
|
-
|
|
36
|
+
# Query param: Filter assignments to a specific currency, by its ID. Mutually
|
|
37
|
+
# exclusive with `featureId`.
|
|
38
|
+
currency_id: nil,
|
|
37
39
|
# Query param: Filter assignments to a specific entity ID
|
|
38
40
|
entity_id: nil,
|
|
41
|
+
# Query param: Filter assignments to a specific feature, by its ID. Mutually
|
|
42
|
+
# exclusive with `currencyId`.
|
|
43
|
+
feature_id: nil,
|
|
39
44
|
# Query param: Maximum number of items to return
|
|
40
45
|
limit: nil,
|
|
41
46
|
# Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
@@ -7,8 +7,9 @@ module Stigg
|
|
|
7
7
|
id: String,
|
|
8
8
|
after: String,
|
|
9
9
|
before: String,
|
|
10
|
-
|
|
10
|
+
currency_id: String,
|
|
11
11
|
entity_id: String,
|
|
12
|
+
feature_id: String,
|
|
12
13
|
limit: Integer,
|
|
13
14
|
x_account_id: String,
|
|
14
15
|
x_environment_id: String
|
|
@@ -29,14 +30,18 @@ module Stigg
|
|
|
29
30
|
|
|
30
31
|
def before=: (String) -> String
|
|
31
32
|
|
|
32
|
-
attr_reader
|
|
33
|
+
attr_reader currency_id: String?
|
|
33
34
|
|
|
34
|
-
def
|
|
35
|
+
def currency_id=: (String) -> String
|
|
35
36
|
|
|
36
37
|
attr_reader entity_id: String?
|
|
37
38
|
|
|
38
39
|
def entity_id=: (String) -> String
|
|
39
40
|
|
|
41
|
+
attr_reader feature_id: String?
|
|
42
|
+
|
|
43
|
+
def feature_id=: (String) -> String
|
|
44
|
+
|
|
40
45
|
attr_reader limit: Integer?
|
|
41
46
|
|
|
42
47
|
def limit=: (Integer) -> Integer
|
|
@@ -53,8 +58,9 @@ module Stigg
|
|
|
53
58
|
id: String,
|
|
54
59
|
?after: String,
|
|
55
60
|
?before: String,
|
|
56
|
-
?
|
|
61
|
+
?currency_id: String,
|
|
57
62
|
?entity_id: String,
|
|
63
|
+
?feature_id: String,
|
|
58
64
|
?limit: Integer,
|
|
59
65
|
?x_account_id: String,
|
|
60
66
|
?x_environment_id: String,
|
|
@@ -65,8 +71,9 @@ module Stigg
|
|
|
65
71
|
id: String,
|
|
66
72
|
after: String,
|
|
67
73
|
before: String,
|
|
68
|
-
|
|
74
|
+
currency_id: String,
|
|
69
75
|
entity_id: String,
|
|
76
|
+
feature_id: String,
|
|
70
77
|
limit: Integer,
|
|
71
78
|
x_account_id: String,
|
|
72
79
|
x_environment_id: String,
|