freeclimb 3.0.3 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (186) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/Gemfile.lock +2 -4
  4. data/README.md +7 -6
  5. data/docs/DefaultApi.md +9 -101
  6. data/docs/MakeCallRequest.md +1 -1
  7. data/docs/PerclCommand.md +1 -1
  8. data/docs/QueueRequest.md +1 -1
  9. data/freeclimb.gemspec +1 -1
  10. data/lib/freeclimb/api/default_api.rb +11 -7
  11. data/lib/freeclimb/api_client.rb +1 -1
  12. data/lib/freeclimb/api_error.rb +1 -1
  13. data/lib/freeclimb/configuration.rb +1 -1
  14. data/lib/freeclimb/models/account_request.rb +1 -1
  15. data/lib/freeclimb/models/account_result.rb +20 -1
  16. data/lib/freeclimb/models/account_result_all_of.rb +20 -1
  17. data/lib/freeclimb/models/add_to_conference.rb +2 -1
  18. data/lib/freeclimb/models/add_to_conference_all_of.rb +1 -1
  19. data/lib/freeclimb/models/application_list.rb +9 -1
  20. data/lib/freeclimb/models/application_list_all_of.rb +2 -1
  21. data/lib/freeclimb/models/application_request.rb +1 -1
  22. data/lib/freeclimb/models/application_result.rb +10 -1
  23. data/lib/freeclimb/models/application_result_all_of.rb +10 -1
  24. data/lib/freeclimb/models/available_number.rb +6 -1
  25. data/lib/freeclimb/models/available_number_list.rb +9 -1
  26. data/lib/freeclimb/models/available_number_list_all_of.rb +2 -1
  27. data/lib/freeclimb/models/buy_incoming_number_request.rb +1 -1
  28. data/lib/freeclimb/models/call_list.rb +9 -1
  29. data/lib/freeclimb/models/call_list_all_of.rb +2 -1
  30. data/lib/freeclimb/models/call_result.rb +16 -1
  31. data/lib/freeclimb/models/call_result_all_of.rb +16 -1
  32. data/lib/freeclimb/models/capabilities.rb +6 -26
  33. data/lib/freeclimb/models/conference_list.rb +9 -1
  34. data/lib/freeclimb/models/conference_list_all_of.rb +2 -1
  35. data/lib/freeclimb/models/conference_participant_list.rb +9 -1
  36. data/lib/freeclimb/models/conference_participant_list_all_of.rb +2 -1
  37. data/lib/freeclimb/models/conference_participant_result.rb +7 -1
  38. data/lib/freeclimb/models/conference_participant_result_all_of.rb +7 -1
  39. data/lib/freeclimb/models/conference_result.rb +11 -1
  40. data/lib/freeclimb/models/conference_result_all_of.rb +11 -1
  41. data/lib/freeclimb/models/create_conference.rb +2 -1
  42. data/lib/freeclimb/models/create_conference_all_of.rb +1 -1
  43. data/lib/freeclimb/models/create_conference_request.rb +1 -1
  44. data/lib/freeclimb/models/dequeue.rb +2 -1
  45. data/lib/freeclimb/models/enqueue.rb +2 -1
  46. data/lib/freeclimb/models/enqueue_all_of.rb +1 -1
  47. data/lib/freeclimb/models/filter_logs_request.rb +1 -1
  48. data/lib/freeclimb/models/get_digits.rb +2 -1
  49. data/lib/freeclimb/models/get_digits_all_of.rb +1 -1
  50. data/lib/freeclimb/models/get_speech.rb +2 -1
  51. data/lib/freeclimb/models/get_speech_all_of.rb +1 -1
  52. data/lib/freeclimb/models/hangup.rb +2 -1
  53. data/lib/freeclimb/models/hangup_all_of.rb +1 -1
  54. data/lib/freeclimb/models/incoming_number_list.rb +9 -1
  55. data/lib/freeclimb/models/incoming_number_list_all_of.rb +2 -1
  56. data/lib/freeclimb/models/incoming_number_request.rb +1 -1
  57. data/lib/freeclimb/models/incoming_number_result.rb +10 -1
  58. data/lib/freeclimb/models/incoming_number_result_all_of.rb +10 -1
  59. data/lib/freeclimb/models/log_list.rb +9 -1
  60. data/lib/freeclimb/models/log_list_all_of.rb +2 -1
  61. data/lib/freeclimb/models/log_result.rb +8 -1
  62. data/lib/freeclimb/models/make_call_request.rb +3 -1
  63. data/lib/freeclimb/models/message_request.rb +1 -1
  64. data/lib/freeclimb/models/message_request_all_of.rb +1 -1
  65. data/lib/freeclimb/models/message_result.rb +9 -1
  66. data/lib/freeclimb/models/message_result_all_of.rb +9 -1
  67. data/lib/freeclimb/models/messages_list.rb +9 -1
  68. data/lib/freeclimb/models/messages_list_all_of.rb +2 -1
  69. data/lib/freeclimb/models/mutable_resource_model.rb +1 -1
  70. data/lib/freeclimb/models/out_dial.rb +2 -1
  71. data/lib/freeclimb/models/out_dial_all_of.rb +1 -1
  72. data/lib/freeclimb/models/pagination_model.rb +8 -1
  73. data/lib/freeclimb/models/pause.rb +2 -1
  74. data/lib/freeclimb/models/pause_all_of.rb +1 -1
  75. data/lib/freeclimb/models/percl_command.rb +19 -1
  76. data/lib/freeclimb/models/percl_script.rb +5 -1
  77. data/lib/freeclimb/models/play.rb +2 -1
  78. data/lib/freeclimb/models/play_all_of.rb +1 -1
  79. data/lib/freeclimb/models/play_early_media.rb +2 -1
  80. data/lib/freeclimb/models/play_early_media_all_of.rb +1 -1
  81. data/lib/freeclimb/models/queue_list.rb +9 -1
  82. data/lib/freeclimb/models/queue_list_all_of.rb +2 -1
  83. data/lib/freeclimb/models/queue_member.rb +6 -1
  84. data/lib/freeclimb/models/queue_member_list.rb +9 -1
  85. data/lib/freeclimb/models/queue_member_list_all_of.rb +2 -1
  86. data/lib/freeclimb/models/queue_request.rb +3 -1
  87. data/lib/freeclimb/models/queue_result.rb +8 -1
  88. data/lib/freeclimb/models/queue_result_all_of.rb +8 -1
  89. data/lib/freeclimb/models/record_utterance.rb +2 -1
  90. data/lib/freeclimb/models/record_utterance_all_of.rb +1 -1
  91. data/lib/freeclimb/models/recording_list.rb +9 -1
  92. data/lib/freeclimb/models/recording_list_all_of.rb +2 -1
  93. data/lib/freeclimb/models/recording_result.rb +6 -1
  94. data/lib/freeclimb/models/recording_result_all_of.rb +6 -1
  95. data/lib/freeclimb/models/redirect.rb +2 -1
  96. data/lib/freeclimb/models/redirect_all_of.rb +1 -1
  97. data/lib/freeclimb/models/reject.rb +2 -1
  98. data/lib/freeclimb/models/reject_all_of.rb +1 -1
  99. data/lib/freeclimb/models/remove_from_conference.rb +2 -1
  100. data/lib/freeclimb/models/remove_from_conference_all_of.rb +1 -1
  101. data/lib/freeclimb/models/say.rb +2 -1
  102. data/lib/freeclimb/models/say_all_of.rb +1 -1
  103. data/lib/freeclimb/models/send_digits.rb +2 -1
  104. data/lib/freeclimb/models/send_digits_all_of.rb +1 -1
  105. data/lib/freeclimb/models/set_listen.rb +2 -1
  106. data/lib/freeclimb/models/set_listen_all_of.rb +1 -1
  107. data/lib/freeclimb/models/set_talk.rb +2 -1
  108. data/lib/freeclimb/models/set_talk_all_of.rb +1 -1
  109. data/lib/freeclimb/models/sms.rb +2 -1
  110. data/lib/freeclimb/models/sms_all_of.rb +1 -1
  111. data/lib/freeclimb/models/start_record_call.rb +2 -1
  112. data/lib/freeclimb/models/terminate_conference.rb +2 -1
  113. data/lib/freeclimb/models/terminate_conference_all_of.rb +1 -1
  114. data/lib/freeclimb/models/update_call_request.rb +1 -1
  115. data/lib/freeclimb/models/update_conference_participant_request.rb +1 -1
  116. data/lib/freeclimb/models/update_conference_request.rb +1 -1
  117. data/lib/freeclimb/version.rb +2 -2
  118. data/lib/freeclimb.rb +1 -28
  119. data/spec/api/default_api_spec.rb +102 -102
  120. data/spec/api_client_spec.rb +1 -1
  121. data/spec/configuration_spec.rb +1 -1
  122. data/spec/models/account_request_spec.rb +1 -1
  123. data/spec/models/account_result_spec.rb +5 -1
  124. data/spec/models/add_to_conference_spec.rb +1 -1
  125. data/spec/models/application_list_spec.rb +1 -1
  126. data/spec/models/application_request_spec.rb +1 -1
  127. data/spec/models/application_result_spec.rb +1 -1
  128. data/spec/models/available_number_list_spec.rb +1 -1
  129. data/spec/models/available_number_spec.rb +1 -1
  130. data/spec/models/buy_incoming_number_request_spec.rb +1 -1
  131. data/spec/models/call_list_spec.rb +1 -1
  132. data/spec/models/call_result_spec.rb +1 -1
  133. data/spec/models/capabilities_spec.rb +1 -1
  134. data/spec/models/conference_list_spec.rb +1 -1
  135. data/spec/models/conference_participant_list_spec.rb +1 -1
  136. data/spec/models/conference_participant_result_spec.rb +1 -1
  137. data/spec/models/conference_result_spec.rb +1 -1
  138. data/spec/models/create_conference_request_spec.rb +1 -1
  139. data/spec/models/create_conference_spec.rb +1 -1
  140. data/spec/models/dequeue_spec.rb +1 -1
  141. data/spec/models/enqueue_spec.rb +1 -1
  142. data/spec/models/filter_logs_request_spec.rb +1 -1
  143. data/spec/models/get_digits_spec.rb +1 -1
  144. data/spec/models/get_speech_spec.rb +1 -1
  145. data/spec/models/hangup_spec.rb +1 -1
  146. data/spec/models/incoming_number_list_spec.rb +1 -1
  147. data/spec/models/incoming_number_request_spec.rb +1 -1
  148. data/spec/models/incoming_number_result_spec.rb +1 -1
  149. data/spec/models/log_list_spec.rb +1 -1
  150. data/spec/models/log_result_spec.rb +1 -1
  151. data/spec/models/make_call_request_spec.rb +1 -1
  152. data/spec/models/message_request_spec.rb +1 -1
  153. data/spec/models/message_result_spec.rb +1 -1
  154. data/spec/models/messages_list_spec.rb +1 -1
  155. data/spec/models/mutable_resource_model_spec.rb +1 -1
  156. data/spec/models/out_dial_spec.rb +1 -1
  157. data/spec/models/pagination_model_spec.rb +1 -1
  158. data/spec/models/pause_spec.rb +1 -1
  159. data/spec/models/percl_command_spec.rb +1 -1
  160. data/spec/models/percl_script_spec.rb +1 -1
  161. data/spec/models/play_early_media_spec.rb +1 -1
  162. data/spec/models/play_spec.rb +1 -1
  163. data/spec/models/queue_list_spec.rb +1 -1
  164. data/spec/models/queue_member_list_spec.rb +1 -1
  165. data/spec/models/queue_member_spec.rb +1 -1
  166. data/spec/models/queue_request_spec.rb +1 -1
  167. data/spec/models/queue_result_spec.rb +1 -1
  168. data/spec/models/record_utterance_spec.rb +1 -1
  169. data/spec/models/recording_list_spec.rb +1 -1
  170. data/spec/models/recording_result_spec.rb +1 -1
  171. data/spec/models/redirect_spec.rb +1 -1
  172. data/spec/models/reject_spec.rb +1 -1
  173. data/spec/models/remove_from_conference_spec.rb +1 -1
  174. data/spec/models/say_spec.rb +1 -1
  175. data/spec/models/send_digits_spec.rb +1 -1
  176. data/spec/models/set_listen_spec.rb +1 -1
  177. data/spec/models/set_talk_spec.rb +1 -1
  178. data/spec/models/sms_spec.rb +1 -1
  179. data/spec/models/start_record_call_spec.rb +1 -1
  180. data/spec/models/terminate_conference_spec.rb +1 -1
  181. data/spec/models/update_call_request_spec.rb +1 -1
  182. data/spec/models/update_conference_participant_request_spec.rb +1 -1
  183. data/spec/models/update_conference_request_spec.rb +1 -1
  184. data/spec/quickstart_spec.rb +1 -1
  185. data/spec/spec_helper.rb +6 -2
  186. metadata +3 -3
@@ -4,7 +4,7 @@
4
4
  #FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request.
5
5
 
6
6
  The version of the OpenAPI document: 1.0.0
7
-
7
+ Contact: support@freeclimb.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.4.0
10
10
 
@@ -4,7 +4,7 @@
4
4
  #FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request.
5
5
 
6
6
  The version of the OpenAPI document: 1.0.0
7
-
7
+ Contact: support@freeclimb.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.4.0
10
10
 
@@ -63,6 +63,7 @@ module Freeclimb
63
63
 
64
64
  # call parent's initialize
65
65
  super(attributes)
66
+ self.command = "StartRecordCall"
66
67
  end
67
68
 
68
69
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -4,7 +4,7 @@
4
4
  #FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request.
5
5
 
6
6
  The version of the OpenAPI document: 1.0.0
7
-
7
+ Contact: support@freeclimb.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.4.0
10
10
 
@@ -73,6 +73,7 @@ module Freeclimb
73
73
  if attributes.key?(:'conference_id')
74
74
  self.conference_id = attributes[:'conference_id']
75
75
  end
76
+ self.command = "TerminateConference"
76
77
  end
77
78
 
78
79
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -4,7 +4,7 @@
4
4
  #FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request.
5
5
 
6
6
  The version of the OpenAPI document: 1.0.0
7
-
7
+ Contact: support@freeclimb.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.4.0
10
10
 
@@ -4,7 +4,7 @@
4
4
  #FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request.
5
5
 
6
6
  The version of the OpenAPI document: 1.0.0
7
-
7
+ Contact: support@freeclimb.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.4.0
10
10
 
@@ -4,7 +4,7 @@
4
4
  #FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request.
5
5
 
6
6
  The version of the OpenAPI document: 1.0.0
7
-
7
+ Contact: support@freeclimb.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.4.0
10
10
 
@@ -4,7 +4,7 @@
4
4
  #FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request.
5
5
 
6
6
  The version of the OpenAPI document: 1.0.0
7
-
7
+ Contact: support@freeclimb.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.4.0
10
10
 
@@ -4,12 +4,12 @@
4
4
  #FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request.
5
5
 
6
6
  The version of the OpenAPI document: 1.0.0
7
-
7
+ Contact: support@freeclimb.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
13
13
  module Freeclimb
14
- VERSION = '3.0.3'
14
+ VERSION = '4.0.0'
15
15
  end
data/lib/freeclimb.rb CHANGED
@@ -4,7 +4,7 @@
4
4
  #FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request.
5
5
 
6
6
  The version of the OpenAPI document: 1.0.0
7
-
7
+ Contact: support@freeclimb.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.4.0
10
10
 
@@ -139,32 +139,5 @@ module Freeclimb
139
139
  Configuration.default
140
140
  end
141
141
  end
142
-
143
- def percl_list_to_hash(percl_list)
144
- percl_list_hash = []
145
- percl_list.each_with_index do | command, index |
146
- class_name = command.class.name.split('::').last
147
- percl_hash = Hash.new
148
- if command.respond_to?(:prompts) && command.prompts != nil && command.prompts.any?
149
- percl_hash[class_name] = to_hash_with_prompts(command)
150
- else
151
- percl_hash[class_name] = command.to_hash
152
- end
153
- percl_list_hash.push(percl_hash)
154
- end
155
- percl_list_hash
156
- end
157
-
158
- def to_hash_with_prompts(command)
159
- prompts_hash = percl_list_to_hash(command.prompts)
160
- command.prompts = nil
161
- hash = command.to_hash
162
- hash[:prompts] = prompts_hash
163
- hash
164
- end
165
-
166
- def percl_to_json(percl_script)
167
- percl_list_to_hash(percl_script.commands).to_json
168
- end
169
142
  end
170
143
  end