kickflow 0.2.1 → 0.3.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 +4 -0
- data/README.md +5 -6
- data/Rakefile +22 -6
- data/docs/DefaultApi.md +6 -4
- data/docs/MemberUser.md +1 -1
- data/docs/PatchTeamsTeamIdMembershipsUserIdRequest.md +1 -1
- data/docs/PatchTicketsTicketIdRequest.md +3 -1
- data/docs/PostTeamsTeamIdMembersRequestUsersInner.md +1 -1
- data/docs/PostTicketsIdViewersRequest.md +3 -1
- data/docs/PostTicketsRequest.md +3 -1
- data/docs/PostTicketsRequestApproversInner.md +20 -0
- data/docs/RoleUpdateBody.md +1 -1
- data/docs/RouteStep.md +2 -0
- data/docs/RouteStepConditionField.md +0 -2
- data/docs/RouteStepTarget.md +3 -1
- data/docs/TicketAssignee.md +2 -0
- data/docs/TicketViewer.md +3 -1
- data/docs/TicketWorkflow.md +0 -12
- data/docs/Workflow.md +0 -8
- data/docs/WorkflowDetail.md +0 -12
- data/docs/WorkflowInTicket.md +0 -12
- data/lib/kickflow/api/_api.rb +13 -6
- data/lib/kickflow/models/member_user.rb +1 -1
- data/lib/kickflow/models/patch_teams_team_id_memberships_user_id_request.rb +1 -1
- data/lib/kickflow/models/patch_tickets_ticket_id_request.rb +17 -4
- data/lib/kickflow/models/post_general_masters_request.rb +2 -0
- data/lib/kickflow/models/post_teams_team_id_members_request_users_inner.rb +1 -1
- data/lib/kickflow/models/post_tickets_id_viewers_request.rb +16 -5
- data/lib/kickflow/models/post_tickets_request.rb +17 -4
- data/lib/kickflow/models/post_tickets_request_approvers_inner.rb +241 -0
- data/lib/kickflow/models/role_create_body_permission_list_inner.rb +2 -2
- data/lib/kickflow/models/role_detail_all_of_permission_list.rb +2 -2
- data/lib/kickflow/models/role_update_body.rb +1 -1
- data/lib/kickflow/models/route_step.rb +16 -3
- data/lib/kickflow/models/route_step_condition_field.rb +1 -11
- data/lib/kickflow/models/route_step_target.rb +14 -4
- data/lib/kickflow/models/ticket_assignee.rb +18 -1
- data/lib/kickflow/models/ticket_viewer.rb +22 -5
- data/lib/kickflow/models/workflow.rb +1 -73
- data/lib/kickflow/models/workflow_detail.rb +1 -111
- data/lib/kickflow/models/workflow_in_ticket.rb +1 -104
- data/lib/kickflow/version.rb +1 -1
- data/lib/kickflow.rb +1 -2
- data/spec/models/post_tickets_request_approvers_inner_spec.rb +42 -0
- data/vendor/schema.yaml +88 -109
- metadata +6 -6
- data/Rakefile~ +0 -48
- data/manifest.scm~ +0 -1
- data/pkg/kickflow-0.1.0.gem +0 -0
- data/pkg/kickflow-0.2.0.gem +0 -0
@@ -35,6 +35,9 @@ module Kickflow
|
|
35
35
|
|
36
36
|
attr_accessor :cloud_sign_document
|
37
37
|
|
38
|
+
# 承認タイプが「申請者が指名」の経路ステップの承認者を指定する配列。
|
39
|
+
attr_accessor :approvers
|
40
|
+
|
38
41
|
class EnumAttributeValidator
|
39
42
|
attr_reader :datatype
|
40
43
|
attr_reader :allowable_values
|
@@ -66,7 +69,8 @@ module Kickflow
|
|
66
69
|
:'title' => :'title',
|
67
70
|
:'slip_items' => :'slipItems',
|
68
71
|
:'inputs' => :'inputs',
|
69
|
-
:'cloud_sign_document' => :'cloudSignDocument'
|
72
|
+
:'cloud_sign_document' => :'cloudSignDocument',
|
73
|
+
:'approvers' => :'approvers'
|
70
74
|
}
|
71
75
|
end
|
72
76
|
|
@@ -84,13 +88,15 @@ module Kickflow
|
|
84
88
|
:'title' => :'String',
|
85
89
|
:'slip_items' => :'Array<PatchTicketsTicketIdRequestSlipItemsInner>',
|
86
90
|
:'inputs' => :'Array<PatchTicketsTicketIdRequestInputsInner>',
|
87
|
-
:'cloud_sign_document' => :'PatchTicketsTicketIdRequestCloudSignDocument'
|
91
|
+
:'cloud_sign_document' => :'PatchTicketsTicketIdRequestCloudSignDocument',
|
92
|
+
:'approvers' => :'Array<PostTicketsRequestApproversInner>'
|
88
93
|
}
|
89
94
|
end
|
90
95
|
|
91
96
|
# List of attributes with nullable: true
|
92
97
|
def self.openapi_nullable
|
93
98
|
Set.new([
|
99
|
+
:'approvers'
|
94
100
|
])
|
95
101
|
end
|
96
102
|
|
@@ -140,6 +146,12 @@ module Kickflow
|
|
140
146
|
if attributes.key?(:'cloud_sign_document')
|
141
147
|
self.cloud_sign_document = attributes[:'cloud_sign_document']
|
142
148
|
end
|
149
|
+
|
150
|
+
if attributes.key?(:'approvers')
|
151
|
+
if (value = attributes[:'approvers']).is_a?(Array)
|
152
|
+
self.approvers = value
|
153
|
+
end
|
154
|
+
end
|
143
155
|
end
|
144
156
|
|
145
157
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -180,7 +192,8 @@ module Kickflow
|
|
180
192
|
title == o.title &&
|
181
193
|
slip_items == o.slip_items &&
|
182
194
|
inputs == o.inputs &&
|
183
|
-
cloud_sign_document == o.cloud_sign_document
|
195
|
+
cloud_sign_document == o.cloud_sign_document &&
|
196
|
+
approvers == o.approvers
|
184
197
|
end
|
185
198
|
|
186
199
|
# @see the `==` method
|
@@ -192,7 +205,7 @@ module Kickflow
|
|
192
205
|
# Calculates hash code according to all attributes.
|
193
206
|
# @return [Integer] Hash code
|
194
207
|
def hash
|
195
|
-
[status, author_team_id, proxy_client_user_id, title, slip_items, inputs, cloud_sign_document].hash
|
208
|
+
[status, author_team_id, proxy_client_user_id, title, slip_items, inputs, cloud_sign_document, approvers].hash
|
196
209
|
end
|
197
210
|
|
198
211
|
# Builds the object from hash
|
@@ -22,12 +22,16 @@ module Kickflow
|
|
22
22
|
# 役職のUUID。teamId指定時のみ、任意で指定できます。
|
23
23
|
attr_accessor :grade_id
|
24
24
|
|
25
|
+
# 下位のチームを含めるかどうかをteamId指定時のみ指定できます。未指定時はfalse扱いです。
|
26
|
+
attr_accessor :descendants
|
27
|
+
|
25
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
26
29
|
def self.attribute_map
|
27
30
|
{
|
28
31
|
:'user_id' => :'userId',
|
29
32
|
:'team_id' => :'teamId',
|
30
|
-
:'grade_id' => :'gradeId'
|
33
|
+
:'grade_id' => :'gradeId',
|
34
|
+
:'descendants' => :'descendants'
|
31
35
|
}
|
32
36
|
end
|
33
37
|
|
@@ -41,7 +45,8 @@ module Kickflow
|
|
41
45
|
{
|
42
46
|
:'user_id' => :'PostTicketsIdViewersRequestUserId',
|
43
47
|
:'team_id' => :'PostTicketsIdViewersRequestTeamId',
|
44
|
-
:'grade_id' => :'String'
|
48
|
+
:'grade_id' => :'String',
|
49
|
+
:'descendants' => :'Boolean'
|
45
50
|
}
|
46
51
|
end
|
47
52
|
|
@@ -50,7 +55,8 @@ module Kickflow
|
|
50
55
|
Set.new([
|
51
56
|
:'user_id',
|
52
57
|
:'team_id',
|
53
|
-
:'grade_id'
|
58
|
+
:'grade_id',
|
59
|
+
:'descendants'
|
54
60
|
])
|
55
61
|
end
|
56
62
|
|
@@ -80,6 +86,10 @@ module Kickflow
|
|
80
86
|
if attributes.key?(:'grade_id')
|
81
87
|
self.grade_id = attributes[:'grade_id']
|
82
88
|
end
|
89
|
+
|
90
|
+
if attributes.key?(:'descendants')
|
91
|
+
self.descendants = attributes[:'descendants']
|
92
|
+
end
|
83
93
|
end
|
84
94
|
|
85
95
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -104,7 +114,8 @@ module Kickflow
|
|
104
114
|
self.class == o.class &&
|
105
115
|
user_id == o.user_id &&
|
106
116
|
team_id == o.team_id &&
|
107
|
-
grade_id == o.grade_id
|
117
|
+
grade_id == o.grade_id &&
|
118
|
+
descendants == o.descendants
|
108
119
|
end
|
109
120
|
|
110
121
|
# @see the `==` method
|
@@ -116,7 +127,7 @@ module Kickflow
|
|
116
127
|
# Calculates hash code according to all attributes.
|
117
128
|
# @return [Integer] Hash code
|
118
129
|
def hash
|
119
|
-
[user_id, team_id, grade_id].hash
|
130
|
+
[user_id, team_id, grade_id, descendants].hash
|
120
131
|
end
|
121
132
|
|
122
133
|
# Builds the object from hash
|
@@ -38,6 +38,9 @@ module Kickflow
|
|
38
38
|
|
39
39
|
attr_accessor :cloud_sign_document
|
40
40
|
|
41
|
+
# 承認タイプが「申請者が指名」の経路ステップの承認者を指定する配列。
|
42
|
+
attr_accessor :approvers
|
43
|
+
|
41
44
|
class EnumAttributeValidator
|
42
45
|
attr_reader :datatype
|
43
46
|
attr_reader :allowable_values
|
@@ -70,7 +73,8 @@ module Kickflow
|
|
70
73
|
:'title' => :'title',
|
71
74
|
:'slip_items' => :'slipItems',
|
72
75
|
:'inputs' => :'inputs',
|
73
|
-
:'cloud_sign_document' => :'cloudSignDocument'
|
76
|
+
:'cloud_sign_document' => :'cloudSignDocument',
|
77
|
+
:'approvers' => :'approvers'
|
74
78
|
}
|
75
79
|
end
|
76
80
|
|
@@ -89,7 +93,8 @@ module Kickflow
|
|
89
93
|
:'title' => :'String',
|
90
94
|
:'slip_items' => :'Array<PostTicketsRequestSlipItemsInner>',
|
91
95
|
:'inputs' => :'Array<PostTicketsRequestInputsInner>',
|
92
|
-
:'cloud_sign_document' => :'PostTicketsRequestCloudSignDocument'
|
96
|
+
:'cloud_sign_document' => :'PostTicketsRequestCloudSignDocument',
|
97
|
+
:'approvers' => :'Array<PostTicketsRequestApproversInner>'
|
93
98
|
}
|
94
99
|
end
|
95
100
|
|
@@ -98,6 +103,7 @@ module Kickflow
|
|
98
103
|
Set.new([
|
99
104
|
:'proxy_client_user_id',
|
100
105
|
:'title',
|
106
|
+
:'approvers'
|
101
107
|
])
|
102
108
|
end
|
103
109
|
|
@@ -159,6 +165,12 @@ module Kickflow
|
|
159
165
|
if attributes.key?(:'cloud_sign_document')
|
160
166
|
self.cloud_sign_document = attributes[:'cloud_sign_document']
|
161
167
|
end
|
168
|
+
|
169
|
+
if attributes.key?(:'approvers')
|
170
|
+
if (value = attributes[:'approvers']).is_a?(Array)
|
171
|
+
self.approvers = value
|
172
|
+
end
|
173
|
+
end
|
162
174
|
end
|
163
175
|
|
164
176
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -220,7 +232,8 @@ module Kickflow
|
|
220
232
|
title == o.title &&
|
221
233
|
slip_items == o.slip_items &&
|
222
234
|
inputs == o.inputs &&
|
223
|
-
cloud_sign_document == o.cloud_sign_document
|
235
|
+
cloud_sign_document == o.cloud_sign_document &&
|
236
|
+
approvers == o.approvers
|
224
237
|
end
|
225
238
|
|
226
239
|
# @see the `==` method
|
@@ -232,7 +245,7 @@ module Kickflow
|
|
232
245
|
# Calculates hash code according to all attributes.
|
233
246
|
# @return [Integer] Hash code
|
234
247
|
def hash
|
235
|
-
[status, workflow_id, author_team_id, proxy_client_user_id, title, slip_items, inputs, cloud_sign_document].hash
|
248
|
+
[status, workflow_id, author_team_id, proxy_client_user_id, title, slip_items, inputs, cloud_sign_document, approvers].hash
|
236
249
|
end
|
237
250
|
|
238
251
|
# Builds the object from hash
|
@@ -0,0 +1,241 @@
|
|
1
|
+
=begin
|
2
|
+
#kickflow REST API v1
|
3
|
+
|
4
|
+
#kickflowの開発者用REST API (v1)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.7.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module Kickflow
|
17
|
+
class PostTicketsRequestApproversInner
|
18
|
+
# 承認者を指定する経路ステップのコード
|
19
|
+
attr_accessor :route_step_code
|
20
|
+
|
21
|
+
# 承認者として指定するユーザーのUUID
|
22
|
+
attr_accessor :user_id
|
23
|
+
|
24
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
25
|
+
def self.attribute_map
|
26
|
+
{
|
27
|
+
:'route_step_code' => :'routeStepCode',
|
28
|
+
:'user_id' => :'userId'
|
29
|
+
}
|
30
|
+
end
|
31
|
+
|
32
|
+
# Returns all the JSON keys this model knows about
|
33
|
+
def self.acceptable_attributes
|
34
|
+
attribute_map.values
|
35
|
+
end
|
36
|
+
|
37
|
+
# Attribute type mapping.
|
38
|
+
def self.openapi_types
|
39
|
+
{
|
40
|
+
:'route_step_code' => :'String',
|
41
|
+
:'user_id' => :'Array<String>'
|
42
|
+
}
|
43
|
+
end
|
44
|
+
|
45
|
+
# List of attributes with nullable: true
|
46
|
+
def self.openapi_nullable
|
47
|
+
Set.new([
|
48
|
+
])
|
49
|
+
end
|
50
|
+
|
51
|
+
# Initializes the object
|
52
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
53
|
+
def initialize(attributes = {})
|
54
|
+
if (!attributes.is_a?(Hash))
|
55
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Kickflow::PostTicketsRequestApproversInner` initialize method"
|
56
|
+
end
|
57
|
+
|
58
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
59
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
60
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
61
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Kickflow::PostTicketsRequestApproversInner`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
62
|
+
end
|
63
|
+
h[k.to_sym] = v
|
64
|
+
}
|
65
|
+
|
66
|
+
if attributes.key?(:'route_step_code')
|
67
|
+
self.route_step_code = attributes[:'route_step_code']
|
68
|
+
else
|
69
|
+
self.route_step_code = nil
|
70
|
+
end
|
71
|
+
|
72
|
+
if attributes.key?(:'user_id')
|
73
|
+
if (value = attributes[:'user_id']).is_a?(Array)
|
74
|
+
self.user_id = value
|
75
|
+
end
|
76
|
+
else
|
77
|
+
self.user_id = nil
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
82
|
+
# @return Array for valid properties with the reasons
|
83
|
+
def list_invalid_properties
|
84
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
85
|
+
invalid_properties = Array.new
|
86
|
+
if @route_step_code.nil?
|
87
|
+
invalid_properties.push('invalid value for "route_step_code", route_step_code cannot be nil.')
|
88
|
+
end
|
89
|
+
|
90
|
+
if @user_id.nil?
|
91
|
+
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
92
|
+
end
|
93
|
+
|
94
|
+
invalid_properties
|
95
|
+
end
|
96
|
+
|
97
|
+
# Check to see if the all the properties in the model are valid
|
98
|
+
# @return true if the model is valid
|
99
|
+
def valid?
|
100
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
101
|
+
return false if @route_step_code.nil?
|
102
|
+
return false if @user_id.nil?
|
103
|
+
true
|
104
|
+
end
|
105
|
+
|
106
|
+
# Checks equality by comparing each attribute.
|
107
|
+
# @param [Object] Object to be compared
|
108
|
+
def ==(o)
|
109
|
+
return true if self.equal?(o)
|
110
|
+
self.class == o.class &&
|
111
|
+
route_step_code == o.route_step_code &&
|
112
|
+
user_id == o.user_id
|
113
|
+
end
|
114
|
+
|
115
|
+
# @see the `==` method
|
116
|
+
# @param [Object] Object to be compared
|
117
|
+
def eql?(o)
|
118
|
+
self == o
|
119
|
+
end
|
120
|
+
|
121
|
+
# Calculates hash code according to all attributes.
|
122
|
+
# @return [Integer] Hash code
|
123
|
+
def hash
|
124
|
+
[route_step_code, user_id].hash
|
125
|
+
end
|
126
|
+
|
127
|
+
# Builds the object from hash
|
128
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
129
|
+
# @return [Object] Returns the model itself
|
130
|
+
def self.build_from_hash(attributes)
|
131
|
+
return nil unless attributes.is_a?(Hash)
|
132
|
+
attributes = attributes.transform_keys(&:to_sym)
|
133
|
+
transformed_hash = {}
|
134
|
+
openapi_types.each_pair do |key, type|
|
135
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
136
|
+
transformed_hash["#{key}"] = nil
|
137
|
+
elsif type =~ /\AArray<(.*)>/i
|
138
|
+
# check to ensure the input is an array given that the attribute
|
139
|
+
# is documented as an array but the input is not
|
140
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
141
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
142
|
+
end
|
143
|
+
elsif !attributes[attribute_map[key]].nil?
|
144
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
145
|
+
end
|
146
|
+
end
|
147
|
+
new(transformed_hash)
|
148
|
+
end
|
149
|
+
|
150
|
+
# Deserializes the data based on type
|
151
|
+
# @param string type Data type
|
152
|
+
# @param string value Value to be deserialized
|
153
|
+
# @return [Object] Deserialized data
|
154
|
+
def self._deserialize(type, value)
|
155
|
+
case type.to_sym
|
156
|
+
when :Time
|
157
|
+
Time.parse(value)
|
158
|
+
when :Date
|
159
|
+
Date.parse(value)
|
160
|
+
when :String
|
161
|
+
value.to_s
|
162
|
+
when :Integer
|
163
|
+
value.to_i
|
164
|
+
when :Float
|
165
|
+
value.to_f
|
166
|
+
when :Boolean
|
167
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
168
|
+
true
|
169
|
+
else
|
170
|
+
false
|
171
|
+
end
|
172
|
+
when :Object
|
173
|
+
# generic object (usually a Hash), return directly
|
174
|
+
value
|
175
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
176
|
+
inner_type = Regexp.last_match[:inner_type]
|
177
|
+
value.map { |v| _deserialize(inner_type, v) }
|
178
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
179
|
+
k_type = Regexp.last_match[:k_type]
|
180
|
+
v_type = Regexp.last_match[:v_type]
|
181
|
+
{}.tap do |hash|
|
182
|
+
value.each do |k, v|
|
183
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
184
|
+
end
|
185
|
+
end
|
186
|
+
else # model
|
187
|
+
# models (e.g. Pet) or oneOf
|
188
|
+
klass = Kickflow.const_get(type)
|
189
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
190
|
+
end
|
191
|
+
end
|
192
|
+
|
193
|
+
# Returns the string representation of the object
|
194
|
+
# @return [String] String presentation of the object
|
195
|
+
def to_s
|
196
|
+
to_hash.to_s
|
197
|
+
end
|
198
|
+
|
199
|
+
# to_body is an alias to to_hash (backward compatibility)
|
200
|
+
# @return [Hash] Returns the object in the form of hash
|
201
|
+
def to_body
|
202
|
+
to_hash
|
203
|
+
end
|
204
|
+
|
205
|
+
# Returns the object in the form of hash
|
206
|
+
# @return [Hash] Returns the object in the form of hash
|
207
|
+
def to_hash
|
208
|
+
hash = {}
|
209
|
+
self.class.attribute_map.each_pair do |attr, param|
|
210
|
+
value = self.send(attr)
|
211
|
+
if value.nil?
|
212
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
213
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
214
|
+
end
|
215
|
+
|
216
|
+
hash[param] = _to_hash(value)
|
217
|
+
end
|
218
|
+
hash
|
219
|
+
end
|
220
|
+
|
221
|
+
# Outputs non-array value in the form of hash
|
222
|
+
# For object, use to_hash. Otherwise, just return the value
|
223
|
+
# @param [Object] value Any valid value
|
224
|
+
# @return [Hash] Returns the value in the form of hash
|
225
|
+
def _to_hash(value)
|
226
|
+
if value.is_a?(Array)
|
227
|
+
value.compact.map { |v| _to_hash(v) }
|
228
|
+
elsif value.is_a?(Hash)
|
229
|
+
{}.tap do |hash|
|
230
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
231
|
+
end
|
232
|
+
elsif value.respond_to? :to_hash
|
233
|
+
value.to_hash
|
234
|
+
else
|
235
|
+
value
|
236
|
+
end
|
237
|
+
end
|
238
|
+
|
239
|
+
end
|
240
|
+
|
241
|
+
end
|
@@ -152,7 +152,7 @@ module Kickflow
|
|
152
152
|
def valid?
|
153
153
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
154
154
|
return false if @permission.nil?
|
155
|
-
permission_validator = EnumAttributeValidator.new('String', ["tenant", "billing", "integration", "security", "audit", "stats", "workflow", "user", "team", "role", "master", "ticket_read", "ticket_write", "label", "automation"])
|
155
|
+
permission_validator = EnumAttributeValidator.new('String', ["tenant", "billing", "integration", "security", "audit", "stats", "workflow", "route", "pipeline", "workflow_misc", "user", "team", "role", "master", "ticket_read", "ticket_write", "label", "automation"])
|
156
156
|
return false unless permission_validator.valid?(@permission)
|
157
157
|
return false if @restricted.nil?
|
158
158
|
true
|
@@ -161,7 +161,7 @@ module Kickflow
|
|
161
161
|
# Custom attribute writer method checking allowed values (enum).
|
162
162
|
# @param [Object] permission Object to be assigned
|
163
163
|
def permission=(permission)
|
164
|
-
validator = EnumAttributeValidator.new('String', ["tenant", "billing", "integration", "security", "audit", "stats", "workflow", "user", "team", "role", "master", "ticket_read", "ticket_write", "label", "automation"])
|
164
|
+
validator = EnumAttributeValidator.new('String', ["tenant", "billing", "integration", "security", "audit", "stats", "workflow", "route", "pipeline", "workflow_misc", "user", "team", "role", "master", "ticket_read", "ticket_write", "label", "automation"])
|
165
165
|
unless validator.valid?(permission)
|
166
166
|
fail ArgumentError, "invalid value for \"permission\", must be one of #{validator.allowable_values}."
|
167
167
|
end
|
@@ -170,7 +170,7 @@ module Kickflow
|
|
170
170
|
def valid?
|
171
171
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
172
172
|
return false if @permission.nil?
|
173
|
-
permission_validator = EnumAttributeValidator.new('String', ["tenant", "billing", "integration", "security", "audit", "stats", "workflow", "user", "team", "role", "master", "ticket_read", "ticket_write", "label", "automation"])
|
173
|
+
permission_validator = EnumAttributeValidator.new('String', ["tenant", "billing", "integration", "security", "audit", "stats", "workflow", "route", "pipeline", "workflow_misc", "user", "team", "role", "master", "ticket_read", "ticket_write", "label", "automation"])
|
174
174
|
return false unless permission_validator.valid?(@permission)
|
175
175
|
return false if @restricted.nil?
|
176
176
|
return false if @folders.nil?
|
@@ -182,7 +182,7 @@ module Kickflow
|
|
182
182
|
# Custom attribute writer method checking allowed values (enum).
|
183
183
|
# @param [Object] permission Object to be assigned
|
184
184
|
def permission=(permission)
|
185
|
-
validator = EnumAttributeValidator.new('String', ["tenant", "billing", "integration", "security", "audit", "stats", "workflow", "user", "team", "role", "master", "ticket_read", "ticket_write", "label", "automation"])
|
185
|
+
validator = EnumAttributeValidator.new('String', ["tenant", "billing", "integration", "security", "audit", "stats", "workflow", "route", "pipeline", "workflow_misc", "user", "team", "role", "master", "ticket_read", "ticket_write", "label", "automation"])
|
186
186
|
unless validator.valid?(permission)
|
187
187
|
fail ArgumentError, "invalid value for \"permission\", must be one of #{validator.allowable_values}."
|
188
188
|
end
|
@@ -49,6 +49,9 @@ module Kickflow
|
|
49
49
|
# 最小指名人数。「申請者が指名」ステップのみ設定可能。
|
50
50
|
attr_accessor :min_custom_assignees
|
51
51
|
|
52
|
+
# 承認者の選び方
|
53
|
+
attr_accessor :approver_assignment_instruction
|
54
|
+
|
52
55
|
# 承認者の指定に使うユーザーの配列
|
53
56
|
attr_accessor :users
|
54
57
|
|
@@ -96,6 +99,7 @@ module Kickflow
|
|
96
99
|
:'fallback_type' => :'fallbackType',
|
97
100
|
:'allow_self_approval' => :'allowSelfApproval',
|
98
101
|
:'min_custom_assignees' => :'minCustomAssignees',
|
102
|
+
:'approver_assignment_instruction' => :'approverAssignmentInstruction',
|
99
103
|
:'users' => :'users',
|
100
104
|
:'targets' => :'targets',
|
101
105
|
:'route_step_condition' => :'routeStepCondition',
|
@@ -122,6 +126,7 @@ module Kickflow
|
|
122
126
|
:'fallback_type' => :'String',
|
123
127
|
:'allow_self_approval' => :'Boolean',
|
124
128
|
:'min_custom_assignees' => :'Integer',
|
129
|
+
:'approver_assignment_instruction' => :'String',
|
125
130
|
:'users' => :'Array<User>',
|
126
131
|
:'targets' => :'Array<RouteStepTarget>',
|
127
132
|
:'route_step_condition' => :'RouteStepCondition',
|
@@ -135,6 +140,7 @@ module Kickflow
|
|
135
140
|
:'instruction',
|
136
141
|
:'fallback_type',
|
137
142
|
:'min_custom_assignees',
|
143
|
+
:'approver_assignment_instruction',
|
138
144
|
:'route_step_condition',
|
139
145
|
])
|
140
146
|
end
|
@@ -220,6 +226,12 @@ module Kickflow
|
|
220
226
|
self.min_custom_assignees = nil
|
221
227
|
end
|
222
228
|
|
229
|
+
if attributes.key?(:'approver_assignment_instruction')
|
230
|
+
self.approver_assignment_instruction = attributes[:'approver_assignment_instruction']
|
231
|
+
else
|
232
|
+
self.approver_assignment_instruction = nil
|
233
|
+
end
|
234
|
+
|
223
235
|
if attributes.key?(:'users')
|
224
236
|
if (value = attributes[:'users']).is_a?(Array)
|
225
237
|
self.users = value
|
@@ -304,7 +316,7 @@ module Kickflow
|
|
304
316
|
return false if @id.nil?
|
305
317
|
return false if @step_order.nil?
|
306
318
|
return false if @step_type.nil?
|
307
|
-
step_type_validator = EnumAttributeValidator.new('String', ["author", "manager", "team", "user", "author_customizable", "assignee_customizable"])
|
319
|
+
step_type_validator = EnumAttributeValidator.new('String', ["author", "manager", "team", "user", "author_customizable", "assignee_customizable", "dynamic_team"])
|
308
320
|
return false unless step_type_validator.valid?(@step_type)
|
309
321
|
return false if @title.nil?
|
310
322
|
return false if @action_type.nil?
|
@@ -324,7 +336,7 @@ module Kickflow
|
|
324
336
|
# Custom attribute writer method checking allowed values (enum).
|
325
337
|
# @param [Object] step_type Object to be assigned
|
326
338
|
def step_type=(step_type)
|
327
|
-
validator = EnumAttributeValidator.new('String', ["author", "manager", "team", "user", "author_customizable", "assignee_customizable"])
|
339
|
+
validator = EnumAttributeValidator.new('String', ["author", "manager", "team", "user", "author_customizable", "assignee_customizable", "dynamic_team"])
|
328
340
|
unless validator.valid?(step_type)
|
329
341
|
fail ArgumentError, "invalid value for \"step_type\", must be one of #{validator.allowable_values}."
|
330
342
|
end
|
@@ -377,6 +389,7 @@ module Kickflow
|
|
377
389
|
fallback_type == o.fallback_type &&
|
378
390
|
allow_self_approval == o.allow_self_approval &&
|
379
391
|
min_custom_assignees == o.min_custom_assignees &&
|
392
|
+
approver_assignment_instruction == o.approver_assignment_instruction &&
|
380
393
|
users == o.users &&
|
381
394
|
targets == o.targets &&
|
382
395
|
route_step_condition == o.route_step_condition &&
|
@@ -392,7 +405,7 @@ module Kickflow
|
|
392
405
|
# Calculates hash code according to all attributes.
|
393
406
|
# @return [Integer] Hash code
|
394
407
|
def hash
|
395
|
-
[id, step_order, step_type, title, action_type, instruction, required_approvals_number, required_approvals_percent, fallback_type, allow_self_approval, min_custom_assignees, users, targets, route_step_condition, code].hash
|
408
|
+
[id, step_order, step_type, title, action_type, instruction, required_approvals_number, required_approvals_percent, fallback_type, allow_self_approval, min_custom_assignees, approver_assignment_instruction, users, targets, route_step_condition, code].hash
|
396
409
|
end
|
397
410
|
|
398
411
|
# Builds the object from hash
|
@@ -19,9 +19,6 @@ module Kickflow
|
|
19
19
|
# UUID
|
20
20
|
attr_accessor :id
|
21
21
|
|
22
|
-
# 変数
|
23
|
-
attr_accessor :display_order
|
24
|
-
|
25
22
|
# 変数
|
26
23
|
attr_accessor :variable
|
27
24
|
|
@@ -66,7 +63,6 @@ module Kickflow
|
|
66
63
|
def self.attribute_map
|
67
64
|
{
|
68
65
|
:'id' => :'id',
|
69
|
-
:'display_order' => :'displayOrder',
|
70
66
|
:'variable' => :'variable',
|
71
67
|
:'field_key' => :'fieldKey',
|
72
68
|
:'symbol' => :'symbol',
|
@@ -86,7 +82,6 @@ module Kickflow
|
|
86
82
|
def self.openapi_types
|
87
83
|
{
|
88
84
|
:'id' => :'String',
|
89
|
-
:'display_order' => :'Float',
|
90
85
|
:'variable' => :'String',
|
91
86
|
:'field_key' => :'String',
|
92
87
|
:'symbol' => :'String',
|
@@ -122,10 +117,6 @@ module Kickflow
|
|
122
117
|
self.id = attributes[:'id']
|
123
118
|
end
|
124
119
|
|
125
|
-
if attributes.key?(:'display_order')
|
126
|
-
self.display_order = attributes[:'display_order']
|
127
|
-
end
|
128
|
-
|
129
120
|
if attributes.key?(:'variable')
|
130
121
|
self.variable = attributes[:'variable']
|
131
122
|
end
|
@@ -188,7 +179,6 @@ module Kickflow
|
|
188
179
|
return true if self.equal?(o)
|
189
180
|
self.class == o.class &&
|
190
181
|
id == o.id &&
|
191
|
-
display_order == o.display_order &&
|
192
182
|
variable == o.variable &&
|
193
183
|
field_key == o.field_key &&
|
194
184
|
symbol == o.symbol &&
|
@@ -207,7 +197,7 @@ module Kickflow
|
|
207
197
|
# Calculates hash code according to all attributes.
|
208
198
|
# @return [Integer] Hash code
|
209
199
|
def hash
|
210
|
-
[id,
|
200
|
+
[id, variable, field_key, symbol, value, grade, team, general_master_item].hash
|
211
201
|
end
|
212
202
|
|
213
203
|
# Builds the object from hash
|