fastcomments 1.2.0 → 1.2.1

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 (136) hide show
  1. checksums.yaml +4 -4
  2. data/client/README.md +27 -0
  3. data/client/docs/APIComment.md +1 -1
  4. data/client/docs/APICommentBase.md +1 -1
  5. data/client/docs/APICommentBaseMeta.md +20 -0
  6. data/client/docs/APITicket.md +34 -0
  7. data/client/docs/APITicketDetail.md +42 -0
  8. data/client/docs/APITicketFile.md +36 -0
  9. data/client/docs/APIUserSubscription.md +2 -0
  10. data/client/docs/ChangeTicketState200Response.md +34 -0
  11. data/client/docs/ChangeTicketStateBody.md +18 -0
  12. data/client/docs/ChangeTicketStateResponse.md +20 -0
  13. data/client/docs/CommentData.md +3 -1
  14. data/client/docs/CreateAPIUserSubscriptionData.md +2 -0
  15. data/client/docs/CreateCommentParams.md +2 -0
  16. data/client/docs/CreateTenantPackageBody.md +2 -0
  17. data/client/docs/CreateTicket200Response.md +34 -0
  18. data/client/docs/CreateTicketBody.md +18 -0
  19. data/client/docs/CreateTicketResponse.md +20 -0
  20. data/client/docs/CustomConfigParameters.md +21 -1
  21. data/client/docs/DefaultApi.md +384 -0
  22. data/client/docs/FComment.md +3 -1
  23. data/client/docs/FCommentMeta.md +2 -0
  24. data/client/docs/GetTicket200Response.md +36 -0
  25. data/client/docs/GetTicketResponse.md +22 -0
  26. data/client/docs/GetTickets200Response.md +34 -0
  27. data/client/docs/GetTicketsResponse.md +20 -0
  28. data/client/docs/HeaderAccountNotification.md +34 -0
  29. data/client/docs/HeaderState.md +3 -1
  30. data/client/docs/MentionAutoCompleteMode.md +15 -0
  31. data/client/docs/Moderator.md +3 -1
  32. data/client/docs/PublicApi.md +3 -1
  33. data/client/docs/ReplaceTenantPackageBody.md +2 -0
  34. data/client/docs/SearchUsers200Response.md +2 -0
  35. data/client/docs/SearchUsersSectionedResponse.md +20 -0
  36. data/client/docs/TOSConfig.md +22 -0
  37. data/client/docs/TenantPackage.md +4 -0
  38. data/client/docs/UpdatableCommentParams.md +1 -1
  39. data/client/docs/UpdateAPIUserSubscriptionData.md +18 -0
  40. data/client/docs/UpdateSubscriptionAPIResponse.md +24 -0
  41. data/client/docs/UpdateTenantPackageBody.md +2 -0
  42. data/client/docs/User.md +17 -1
  43. data/client/docs/UserBadge.md +3 -1
  44. data/client/docs/UserBadgeProgress.md +3 -1
  45. data/client/docs/UserSearchSection.md +15 -0
  46. data/client/docs/UserSearchSectionResult.md +20 -0
  47. data/client/docs/UserSessionInfo.md +2 -0
  48. data/client/lib/fastcomments-client/api/default_api.rb +383 -0
  49. data/client/lib/fastcomments-client/api/public_api.rb +7 -0
  50. data/client/lib/fastcomments-client/models/api_comment.rb +1 -1
  51. data/client/lib/fastcomments-client/models/api_comment_base.rb +1 -1
  52. data/client/lib/fastcomments-client/models/api_comment_base_meta.rb +156 -0
  53. data/client/lib/fastcomments-client/models/api_ticket.rb +374 -0
  54. data/client/lib/fastcomments-client/models/api_ticket_detail.rb +432 -0
  55. data/client/lib/fastcomments-client/models/api_ticket_file.rb +381 -0
  56. data/client/lib/fastcomments-client/models/api_user_subscription.rb +10 -1
  57. data/client/lib/fastcomments-client/models/change_ticket_state200_response.rb +103 -0
  58. data/client/lib/fastcomments-client/models/change_ticket_state_body.rb +164 -0
  59. data/client/lib/fastcomments-client/models/change_ticket_state_response.rb +212 -0
  60. data/client/lib/fastcomments-client/models/comment_data.rb +13 -4
  61. data/client/lib/fastcomments-client/models/create_api_user_subscription_data.rb +10 -1
  62. data/client/lib/fastcomments-client/models/create_comment_params.rb +10 -1
  63. data/client/lib/fastcomments-client/models/create_tenant_package_body.rb +10 -1
  64. data/client/lib/fastcomments-client/models/create_ticket200_response.rb +103 -0
  65. data/client/lib/fastcomments-client/models/create_ticket_body.rb +164 -0
  66. data/client/lib/fastcomments-client/models/create_ticket_response.rb +212 -0
  67. data/client/lib/fastcomments-client/models/custom_config_parameters.rb +97 -4
  68. data/client/lib/fastcomments-client/models/f_comment.rb +13 -4
  69. data/client/lib/fastcomments-client/models/f_comment_meta.rb +10 -1
  70. data/client/lib/fastcomments-client/models/get_ticket200_response.rb +103 -0
  71. data/client/lib/fastcomments-client/models/get_ticket_response.rb +240 -0
  72. data/client/lib/fastcomments-client/models/get_tickets200_response.rb +103 -0
  73. data/client/lib/fastcomments-client/models/get_tickets_response.rb +214 -0
  74. data/client/lib/fastcomments-client/models/header_account_notification.rb +322 -0
  75. data/client/lib/fastcomments-client/models/header_state.rb +32 -4
  76. data/client/lib/fastcomments-client/models/mention_auto_complete_mode.rb +41 -0
  77. data/client/lib/fastcomments-client/models/moderator.rb +14 -5
  78. data/client/lib/fastcomments-client/models/replace_tenant_package_body.rb +10 -1
  79. data/client/lib/fastcomments-client/models/search_users200_response.rb +2 -1
  80. data/client/lib/fastcomments-client/models/search_users_sectioned_response.rb +214 -0
  81. data/client/lib/fastcomments-client/models/tenant_package.rb +36 -1
  82. data/client/lib/fastcomments-client/models/tos_config.rb +168 -0
  83. data/client/lib/fastcomments-client/models/updatable_comment_params.rb +1 -1
  84. data/client/lib/fastcomments-client/models/update_api_user_subscription_data.rb +147 -0
  85. data/client/lib/fastcomments-client/models/update_subscription_api_response.rb +191 -0
  86. data/client/lib/fastcomments-client/models/update_tenant_package_body.rb +10 -1
  87. data/client/lib/fastcomments-client/models/user.rb +76 -4
  88. data/client/lib/fastcomments-client/models/user_badge.rb +14 -4
  89. data/client/lib/fastcomments-client/models/user_badge_progress.rb +13 -4
  90. data/client/lib/fastcomments-client/models/user_search_section.rb +41 -0
  91. data/client/lib/fastcomments-client/models/user_search_section_result.rb +214 -0
  92. data/client/lib/fastcomments-client/models/user_session_info.rb +10 -1
  93. data/client/lib/fastcomments-client.rb +22 -0
  94. data/client/spec/api/default_api_spec.rb +64 -0
  95. data/client/spec/api/public_api_spec.rb +1 -0
  96. data/client/spec/models/api_comment_base_meta_spec.rb +42 -0
  97. data/client/spec/models/api_ticket_detail_spec.rb +108 -0
  98. data/client/spec/models/api_ticket_file_spec.rb +90 -0
  99. data/client/spec/models/api_ticket_spec.rb +84 -0
  100. data/client/spec/models/api_user_subscription_spec.rb +6 -0
  101. data/client/spec/models/change_ticket_state200_response_spec.rb +21 -0
  102. data/client/spec/models/change_ticket_state_body_spec.rb +36 -0
  103. data/client/spec/models/change_ticket_state_response_spec.rb +42 -0
  104. data/client/spec/models/comment_data_spec.rb +6 -0
  105. data/client/spec/models/create_api_user_subscription_data_spec.rb +6 -0
  106. data/client/spec/models/create_comment_params_spec.rb +6 -0
  107. data/client/spec/models/create_tenant_package_body_spec.rb +6 -0
  108. data/client/spec/models/create_ticket200_response_spec.rb +21 -0
  109. data/client/spec/models/create_ticket_body_spec.rb +36 -0
  110. data/client/spec/models/create_ticket_response_spec.rb +42 -0
  111. data/client/spec/models/custom_config_parameters_spec.rb +60 -0
  112. data/client/spec/models/f_comment_meta_spec.rb +6 -0
  113. data/client/spec/models/f_comment_spec.rb +6 -0
  114. data/client/spec/models/get_ticket200_response_spec.rb +21 -0
  115. data/client/spec/models/get_ticket_response_spec.rb +48 -0
  116. data/client/spec/models/get_tickets200_response_spec.rb +21 -0
  117. data/client/spec/models/get_tickets_response_spec.rb +42 -0
  118. data/client/spec/models/header_account_notification_spec.rb +84 -0
  119. data/client/spec/models/header_state_spec.rb +6 -0
  120. data/client/spec/models/mention_auto_complete_mode_spec.rb +30 -0
  121. data/client/spec/models/moderator_spec.rb +6 -0
  122. data/client/spec/models/replace_tenant_package_body_spec.rb +6 -0
  123. data/client/spec/models/search_users_sectioned_response_spec.rb +42 -0
  124. data/client/spec/models/tenant_package_spec.rb +12 -0
  125. data/client/spec/models/tos_config_spec.rb +48 -0
  126. data/client/spec/models/update_api_user_subscription_data_spec.rb +36 -0
  127. data/client/spec/models/update_subscription_api_response_spec.rb +54 -0
  128. data/client/spec/models/update_tenant_package_body_spec.rb +6 -0
  129. data/client/spec/models/user_badge_progress_spec.rb +6 -0
  130. data/client/spec/models/user_badge_spec.rb +6 -0
  131. data/client/spec/models/user_search_section_result_spec.rb +42 -0
  132. data/client/spec/models/user_search_section_spec.rb +30 -0
  133. data/client/spec/models/user_session_info_spec.rb +6 -0
  134. data/client/spec/models/user_spec.rb +48 -0
  135. data/lib/fastcomments.rb +1 -1
  136. metadata +68 -2
@@ -0,0 +1,214 @@
1
+ =begin
2
+ #fastcomments
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: 0.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.19.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module FastCommentsClient
17
+ class UserSearchSectionResult < ApiModelBase
18
+ attr_accessor :section
19
+
20
+ attr_accessor :users
21
+
22
+ class EnumAttributeValidator
23
+ attr_reader :datatype
24
+ attr_reader :allowable_values
25
+
26
+ def initialize(datatype, allowable_values)
27
+ @allowable_values = allowable_values.map do |value|
28
+ case datatype.to_s
29
+ when /Integer/i
30
+ value.to_i
31
+ when /Float/i
32
+ value.to_f
33
+ else
34
+ value
35
+ end
36
+ end
37
+ end
38
+
39
+ def valid?(value)
40
+ !value || allowable_values.include?(value)
41
+ end
42
+ end
43
+
44
+ # Attribute mapping from ruby-style variable name to JSON key.
45
+ def self.attribute_map
46
+ {
47
+ :'section' => :'section',
48
+ :'users' => :'users'
49
+ }
50
+ end
51
+
52
+ # Returns attribute mapping this model knows about
53
+ def self.acceptable_attribute_map
54
+ attribute_map
55
+ end
56
+
57
+ # Returns all the JSON keys this model knows about
58
+ def self.acceptable_attributes
59
+ acceptable_attribute_map.values
60
+ end
61
+
62
+ # Attribute type mapping.
63
+ def self.openapi_types
64
+ {
65
+ :'section' => :'UserSearchSection',
66
+ :'users' => :'Array<UserSearchResult>'
67
+ }
68
+ end
69
+
70
+ # List of attributes with nullable: true
71
+ def self.openapi_nullable
72
+ Set.new([
73
+ ])
74
+ end
75
+
76
+ # Initializes the object
77
+ # @param [Hash] attributes Model attributes in the form of hash
78
+ def initialize(attributes = {})
79
+ if (!attributes.is_a?(Hash))
80
+ fail ArgumentError, "The input argument (attributes) must be a hash in `FastCommentsClient::UserSearchSectionResult` initialize method"
81
+ end
82
+
83
+ # check to see if the attribute exists and convert string to symbol for hash key
84
+ acceptable_attribute_map = self.class.acceptable_attribute_map
85
+ attributes = attributes.each_with_object({}) { |(k, v), h|
86
+ if (!acceptable_attribute_map.key?(k.to_sym))
87
+ fail ArgumentError, "`#{k}` is not a valid attribute in `FastCommentsClient::UserSearchSectionResult`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
88
+ end
89
+ h[k.to_sym] = v
90
+ }
91
+
92
+ if attributes.key?(:'section')
93
+ self.section = attributes[:'section']
94
+ else
95
+ self.section = nil
96
+ end
97
+
98
+ if attributes.key?(:'users')
99
+ if (value = attributes[:'users']).is_a?(Array)
100
+ self.users = value
101
+ end
102
+ else
103
+ self.users = nil
104
+ end
105
+ end
106
+
107
+ # Show invalid properties with the reasons. Usually used together with valid?
108
+ # @return Array for valid properties with the reasons
109
+ def list_invalid_properties
110
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
111
+ invalid_properties = Array.new
112
+ if @section.nil?
113
+ invalid_properties.push('invalid value for "section", section cannot be nil.')
114
+ end
115
+
116
+ if @users.nil?
117
+ invalid_properties.push('invalid value for "users", users cannot be nil.')
118
+ end
119
+
120
+ invalid_properties
121
+ end
122
+
123
+ # Check to see if the all the properties in the model are valid
124
+ # @return true if the model is valid
125
+ def valid?
126
+ warn '[DEPRECATED] the `valid?` method is obsolete'
127
+ return false if @section.nil?
128
+ return false if @users.nil?
129
+ true
130
+ end
131
+
132
+ # Custom attribute writer method with validation
133
+ # @param [Object] section Value to be assigned
134
+ def section=(section)
135
+ if section.nil?
136
+ fail ArgumentError, 'section cannot be nil'
137
+ end
138
+
139
+ @section = section
140
+ end
141
+
142
+ # Custom attribute writer method with validation
143
+ # @param [Object] users Value to be assigned
144
+ def users=(users)
145
+ if users.nil?
146
+ fail ArgumentError, 'users cannot be nil'
147
+ end
148
+
149
+ @users = users
150
+ end
151
+
152
+ # Checks equality by comparing each attribute.
153
+ # @param [Object] Object to be compared
154
+ def ==(o)
155
+ return true if self.equal?(o)
156
+ self.class == o.class &&
157
+ section == o.section &&
158
+ users == o.users
159
+ end
160
+
161
+ # @see the `==` method
162
+ # @param [Object] Object to be compared
163
+ def eql?(o)
164
+ self == o
165
+ end
166
+
167
+ # Calculates hash code according to all attributes.
168
+ # @return [Integer] Hash code
169
+ def hash
170
+ [section, users].hash
171
+ end
172
+
173
+ # Builds the object from hash
174
+ # @param [Hash] attributes Model attributes in the form of hash
175
+ # @return [Object] Returns the model itself
176
+ def self.build_from_hash(attributes)
177
+ return nil unless attributes.is_a?(Hash)
178
+ attributes = attributes.transform_keys(&:to_sym)
179
+ transformed_hash = {}
180
+ openapi_types.each_pair do |key, type|
181
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
182
+ transformed_hash["#{key}"] = nil
183
+ elsif type =~ /\AArray<(.*)>/i
184
+ # check to ensure the input is an array given that the attribute
185
+ # is documented as an array but the input is not
186
+ if attributes[attribute_map[key]].is_a?(Array)
187
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
188
+ end
189
+ elsif !attributes[attribute_map[key]].nil?
190
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
191
+ end
192
+ end
193
+ new(transformed_hash)
194
+ end
195
+
196
+ # Returns the object in the form of hash
197
+ # @return [Hash] Returns the object in the form of hash
198
+ def to_hash
199
+ hash = {}
200
+ self.class.attribute_map.each_pair do |attr, param|
201
+ value = self.send(attr)
202
+ if value.nil?
203
+ is_nullable = self.class.openapi_nullable.include?(attr)
204
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
205
+ end
206
+
207
+ hash[param] = _to_hash(value)
208
+ end
209
+ hash
210
+ end
211
+
212
+ end
213
+
214
+ end
@@ -35,6 +35,8 @@ module FastCommentsClient
35
35
 
36
36
  attr_accessor :is_anon_session
37
37
 
38
+ attr_accessor :needs_tos
39
+
38
40
  attr_accessor :session_id
39
41
 
40
42
  attr_accessor :username
@@ -54,6 +56,7 @@ module FastCommentsClient
54
56
  :'group_ids' => :'groupIds',
55
57
  :'has_blocked_users' => :'hasBlockedUsers',
56
58
  :'is_anon_session' => :'isAnonSession',
59
+ :'needs_tos' => :'needsTOS',
57
60
  :'session_id' => :'sessionId',
58
61
  :'username' => :'username',
59
62
  :'website_url' => :'websiteUrl'
@@ -83,6 +86,7 @@ module FastCommentsClient
83
86
  :'group_ids' => :'Array<String>',
84
87
  :'has_blocked_users' => :'Boolean',
85
88
  :'is_anon_session' => :'Boolean',
89
+ :'needs_tos' => :'Boolean',
86
90
  :'session_id' => :'String',
87
91
  :'username' => :'String',
88
92
  :'website_url' => :'String'
@@ -158,6 +162,10 @@ module FastCommentsClient
158
162
  self.is_anon_session = attributes[:'is_anon_session']
159
163
  end
160
164
 
165
+ if attributes.key?(:'needs_tos')
166
+ self.needs_tos = attributes[:'needs_tos']
167
+ end
168
+
161
169
  if attributes.key?(:'session_id')
162
170
  self.session_id = attributes[:'session_id']
163
171
  end
@@ -201,6 +209,7 @@ module FastCommentsClient
201
209
  group_ids == o.group_ids &&
202
210
  has_blocked_users == o.has_blocked_users &&
203
211
  is_anon_session == o.is_anon_session &&
212
+ needs_tos == o.needs_tos &&
204
213
  session_id == o.session_id &&
205
214
  username == o.username &&
206
215
  website_url == o.website_url
@@ -215,7 +224,7 @@ module FastCommentsClient
215
224
  # Calculates hash code according to all attributes.
216
225
  # @return [Integer] Hash code
217
226
  def hash
218
- [id, authorized, avatar_src, badges, display_label, display_name, email, group_ids, has_blocked_users, is_anon_session, session_id, username, website_url].hash
227
+ [id, authorized, avatar_src, badges, display_label, display_name, email, group_ids, has_blocked_users, is_anon_session, needs_tos, session_id, username, website_url].hash
219
228
  end
220
229
 
221
230
  # Builds the object from hash
@@ -21,6 +21,7 @@ require 'fastcomments-client/configuration'
21
21
  require 'fastcomments-client/models/api_audit_log'
22
22
  require 'fastcomments-client/models/api_comment'
23
23
  require 'fastcomments-client/models/api_comment_base'
24
+ require 'fastcomments-client/models/api_comment_base_meta'
24
25
  require 'fastcomments-client/models/api_create_user_badge_response'
25
26
  require 'fastcomments-client/models/api_domain_configuration'
26
27
  require 'fastcomments-client/models/api_empty_response'
@@ -37,6 +38,9 @@ require 'fastcomments-client/models/apisso_user'
37
38
  require 'fastcomments-client/models/api_status'
38
39
  require 'fastcomments-client/models/api_tenant'
39
40
  require 'fastcomments-client/models/api_tenant_daily_usage'
41
+ require 'fastcomments-client/models/api_ticket'
42
+ require 'fastcomments-client/models/api_ticket_detail'
43
+ require 'fastcomments-client/models/api_ticket_file'
40
44
  require 'fastcomments-client/models/api_user_subscription'
41
45
  require 'fastcomments-client/models/add_domain_config200_response'
42
46
  require 'fastcomments-client/models/add_domain_config200_response_any_of'
@@ -68,6 +72,9 @@ require 'fastcomments-client/models/bulk_create_hash_tags_body'
68
72
  require 'fastcomments-client/models/bulk_create_hash_tags_body_tags_inner'
69
73
  require 'fastcomments-client/models/bulk_create_hash_tags_response'
70
74
  require 'fastcomments-client/models/change_comment_pin_status_response'
75
+ require 'fastcomments-client/models/change_ticket_state200_response'
76
+ require 'fastcomments-client/models/change_ticket_state_body'
77
+ require 'fastcomments-client/models/change_ticket_state_response'
71
78
  require 'fastcomments-client/models/check_blocked_comments_response'
72
79
  require 'fastcomments-client/models/checked_comments_for_blocked200_response'
73
80
  require 'fastcomments-client/models/combine_comments_with_question_results200_response'
@@ -119,6 +126,9 @@ require 'fastcomments-client/models/create_tenant_response'
119
126
  require 'fastcomments-client/models/create_tenant_user200_response'
120
127
  require 'fastcomments-client/models/create_tenant_user_body'
121
128
  require 'fastcomments-client/models/create_tenant_user_response'
129
+ require 'fastcomments-client/models/create_ticket200_response'
130
+ require 'fastcomments-client/models/create_ticket_body'
131
+ require 'fastcomments-client/models/create_ticket_response'
122
132
  require 'fastcomments-client/models/create_user_badge200_response'
123
133
  require 'fastcomments-client/models/create_user_badge_params'
124
134
  require 'fastcomments-client/models/custom_config_parameters'
@@ -227,6 +237,10 @@ require 'fastcomments-client/models/get_tenant_users200_response'
227
237
  require 'fastcomments-client/models/get_tenant_users_response'
228
238
  require 'fastcomments-client/models/get_tenants200_response'
229
239
  require 'fastcomments-client/models/get_tenants_response'
240
+ require 'fastcomments-client/models/get_ticket200_response'
241
+ require 'fastcomments-client/models/get_ticket_response'
242
+ require 'fastcomments-client/models/get_tickets200_response'
243
+ require 'fastcomments-client/models/get_tickets_response'
230
244
  require 'fastcomments-client/models/get_user200_response'
231
245
  require 'fastcomments-client/models/get_user_badge200_response'
232
246
  require 'fastcomments-client/models/get_user_badge_progress_by_id200_response'
@@ -244,6 +258,7 @@ require 'fastcomments-client/models/get_votes_for_user200_response'
244
258
  require 'fastcomments-client/models/get_votes_for_user_response'
245
259
  require 'fastcomments-client/models/get_votes_response'
246
260
  require 'fastcomments-client/models/gif_rating'
261
+ require 'fastcomments-client/models/header_account_notification'
247
262
  require 'fastcomments-client/models/header_state'
248
263
  require 'fastcomments-client/models/ignored_response'
249
264
  require 'fastcomments-client/models/image_content_profanity_level'
@@ -253,6 +268,7 @@ require 'fastcomments-client/models/live_event_extra_info'
253
268
  require 'fastcomments-client/models/live_event_type'
254
269
  require 'fastcomments-client/models/lock_comment200_response'
255
270
  require 'fastcomments-client/models/media_asset'
271
+ require 'fastcomments-client/models/mention_auto_complete_mode'
256
272
  require 'fastcomments-client/models/meta_item'
257
273
  require 'fastcomments-client/models/moderator'
258
274
  require 'fastcomments-client/models/notification_and_count'
@@ -309,11 +325,13 @@ require 'fastcomments-client/models/save_comment_response_optimized'
309
325
  require 'fastcomments-client/models/save_comments_response_with_presence'
310
326
  require 'fastcomments-client/models/search_users200_response'
311
327
  require 'fastcomments-client/models/search_users_response'
328
+ require 'fastcomments-client/models/search_users_sectioned_response'
312
329
  require 'fastcomments-client/models/set_comment_text200_response'
313
330
  require 'fastcomments-client/models/set_comment_text_result'
314
331
  require 'fastcomments-client/models/size_preset'
315
332
  require 'fastcomments-client/models/sort_directions'
316
333
  require 'fastcomments-client/models/spam_rule'
334
+ require 'fastcomments-client/models/tos_config'
317
335
  require 'fastcomments-client/models/tenant_hash_tag'
318
336
  require 'fastcomments-client/models/tenant_package'
319
337
  require 'fastcomments-client/models/un_block_comment_public200_response'
@@ -322,6 +340,7 @@ require 'fastcomments-client/models/unblock_success'
322
340
  require 'fastcomments-client/models/updatable_comment_params'
323
341
  require 'fastcomments-client/models/update_api_page_data'
324
342
  require 'fastcomments-client/models/update_apisso_user_data'
343
+ require 'fastcomments-client/models/update_api_user_subscription_data'
325
344
  require 'fastcomments-client/models/update_domain_config_params'
326
345
  require 'fastcomments-client/models/update_email_template_body'
327
346
  require 'fastcomments-client/models/update_feed_post_params'
@@ -331,6 +350,7 @@ require 'fastcomments-client/models/update_moderator_body'
331
350
  require 'fastcomments-client/models/update_notification_body'
332
351
  require 'fastcomments-client/models/update_question_config_body'
333
352
  require 'fastcomments-client/models/update_question_result_body'
353
+ require 'fastcomments-client/models/update_subscription_api_response'
334
354
  require 'fastcomments-client/models/update_tenant_body'
335
355
  require 'fastcomments-client/models/update_tenant_package_body'
336
356
  require 'fastcomments-client/models/update_tenant_user_body'
@@ -347,6 +367,8 @@ require 'fastcomments-client/models/user_notification_write_response'
347
367
  require 'fastcomments-client/models/user_presence_data'
348
368
  require 'fastcomments-client/models/user_reacts_response'
349
369
  require 'fastcomments-client/models/user_search_result'
370
+ require 'fastcomments-client/models/user_search_section'
371
+ require 'fastcomments-client/models/user_search_section_result'
350
372
  require 'fastcomments-client/models/user_session_info'
351
373
  require 'fastcomments-client/models/vote_body_params'
352
374
  require 'fastcomments-client/models/vote_comment200_response'
@@ -143,6 +143,19 @@ describe 'DefaultApi' do
143
143
  end
144
144
  end
145
145
 
146
+ # unit tests for change_ticket_state
147
+ # @param tenant_id
148
+ # @param user_id
149
+ # @param id
150
+ # @param change_ticket_state_body
151
+ # @param [Hash] opts the optional parameters
152
+ # @return [ChangeTicketState200Response]
153
+ describe 'change_ticket_state test' do
154
+ it 'should work' do
155
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
156
+ end
157
+ end
158
+
146
159
  # unit tests for combine_comments_with_question_results
147
160
  # @param tenant_id
148
161
  # @param [Hash] opts the optional parameters
@@ -264,6 +277,18 @@ describe 'DefaultApi' do
264
277
  end
265
278
  end
266
279
 
280
+ # unit tests for create_ticket
281
+ # @param tenant_id
282
+ # @param user_id
283
+ # @param create_ticket_body
284
+ # @param [Hash] opts the optional parameters
285
+ # @return [CreateTicket200Response]
286
+ describe 'create_ticket test' do
287
+ it 'should work' do
288
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
289
+ end
290
+ end
291
+
267
292
  # unit tests for create_user_badge
268
293
  # @param tenant_id
269
294
  # @param create_user_badge_params
@@ -944,6 +969,32 @@ describe 'DefaultApi' do
944
969
  end
945
970
  end
946
971
 
972
+ # unit tests for get_ticket
973
+ # @param tenant_id
974
+ # @param id
975
+ # @param [Hash] opts the optional parameters
976
+ # @option opts [String] :user_id
977
+ # @return [GetTicket200Response]
978
+ describe 'get_ticket test' do
979
+ it 'should work' do
980
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
981
+ end
982
+ end
983
+
984
+ # unit tests for get_tickets
985
+ # @param tenant_id
986
+ # @param [Hash] opts the optional parameters
987
+ # @option opts [String] :user_id
988
+ # @option opts [Float] :state
989
+ # @option opts [Float] :skip
990
+ # @option opts [Float] :limit
991
+ # @return [GetTickets200Response]
992
+ describe 'get_tickets test' do
993
+ it 'should work' do
994
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
995
+ end
996
+ end
997
+
947
998
  # unit tests for get_user
948
999
  # @param tenant_id
949
1000
  # @param id
@@ -1321,6 +1372,19 @@ describe 'DefaultApi' do
1321
1372
  end
1322
1373
  end
1323
1374
 
1375
+ # unit tests for update_subscription
1376
+ # @param tenant_id
1377
+ # @param id
1378
+ # @param update_api_user_subscription_data
1379
+ # @param [Hash] opts the optional parameters
1380
+ # @option opts [String] :user_id
1381
+ # @return [UpdateSubscriptionAPIResponse]
1382
+ describe 'update_subscription test' do
1383
+ it 'should work' do
1384
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
1385
+ end
1386
+ end
1387
+
1324
1388
  # unit tests for update_tenant
1325
1389
  # @param tenant_id
1326
1390
  # @param id
@@ -393,6 +393,7 @@ describe 'PublicApi' do
393
393
  # @option opts [String] :username_starts_with
394
394
  # @option opts [Array<String>] :mention_group_ids
395
395
  # @option opts [String] :sso
396
+ # @option opts [String] :search_section
396
397
  # @return [SearchUsers200Response]
397
398
  describe 'search_users test' do
398
399
  it 'should work' do
@@ -0,0 +1,42 @@
1
+ =begin
2
+ #fastcomments
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: 0.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.19.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for FastCommentsClient::APICommentBaseMeta
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe FastCommentsClient::APICommentBaseMeta do
21
+ #let(:instance) { FastCommentsClient::APICommentBaseMeta.new }
22
+
23
+ describe 'test an instance of APICommentBaseMeta' do
24
+ it 'should create an instance of APICommentBaseMeta' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(FastCommentsClient::APICommentBaseMeta)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "wp_user_id"' do
31
+ it 'should work' do
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
+ end
34
+ end
35
+
36
+ describe 'test attribute "wp_post_id"' do
37
+ it 'should work' do
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
+ end
40
+ end
41
+
42
+ end
@@ -0,0 +1,108 @@
1
+ =begin
2
+ #fastcomments
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: 0.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.19.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for FastCommentsClient::APITicketDetail
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe FastCommentsClient::APITicketDetail do
21
+ #let(:instance) { FastCommentsClient::APITicketDetail.new }
22
+
23
+ describe 'test an instance of APITicketDetail' do
24
+ it 'should create an instance of APITicketDetail' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(FastCommentsClient::APITicketDetail)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "_id"' do
31
+ it 'should work' do
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
+ end
34
+ end
35
+
36
+ describe 'test attribute "url_id"' do
37
+ it 'should work' do
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
+ end
40
+ end
41
+
42
+ describe 'test attribute "user_id"' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
+ end
46
+ end
47
+
48
+ describe 'test attribute "managed_by_tenant_id"' do
49
+ it 'should work' do
50
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
51
+ end
52
+ end
53
+
54
+ describe 'test attribute "assigned_user_ids"' do
55
+ it 'should work' do
56
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
57
+ end
58
+ end
59
+
60
+ describe 'test attribute "subject"' do
61
+ it 'should work' do
62
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
63
+ end
64
+ end
65
+
66
+ describe 'test attribute "created_at"' do
67
+ it 'should work' do
68
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
69
+ end
70
+ end
71
+
72
+ describe 'test attribute "state"' do
73
+ it 'should work' do
74
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
75
+ end
76
+ end
77
+
78
+ describe 'test attribute "file_count"' do
79
+ it 'should work' do
80
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
81
+ end
82
+ end
83
+
84
+ describe 'test attribute "files"' do
85
+ it 'should work' do
86
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
87
+ end
88
+ end
89
+
90
+ describe 'test attribute "reopened_at"' do
91
+ it 'should work' do
92
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
93
+ end
94
+ end
95
+
96
+ describe 'test attribute "resolved_at"' do
97
+ it 'should work' do
98
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
99
+ end
100
+ end
101
+
102
+ describe 'test attribute "ack_at"' do
103
+ it 'should work' do
104
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
105
+ end
106
+ end
107
+
108
+ end