happyco_json 2.0.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +201 -0
- data/README.md +20 -12
- data/docs/AssetServiceApi.md +45 -0
- data/docs/ReportServiceApi.md +54 -0
- data/docs/ReportsCreatedEventReportCreated.md +9 -0
- data/docs/V1AddAssetPhotoRequest.md +12 -0
- data/docs/V1AddAssetPhotoResponse.md +8 -0
- data/docs/V1Asset.md +1 -0
- data/docs/V1Date.md +10 -0
- data/docs/V1Inspection.md +1 -0
- data/docs/V1InspectionData.md +1 -1
- data/docs/V1ListInspectionsRequest.md +2 -0
- data/docs/V1ListReportsRequest.md +14 -0
- data/docs/V1ListReportsResponse.md +10 -0
- data/docs/V1RatingGroup.md +12 -0
- data/docs/V1Report.md +22 -0
- data/docs/V1ReportsCreatedEvent.md +9 -0
- data/docs/{V1EventHandlerOptions.md → V1ReportsCreatedEventAckResponse.md} +1 -2
- data/docs/V1Signatory.md +12 -0
- data/docs/V1Template.md +1 -1
- data/git_push.sh +12 -0
- data/happyco_json.gemspec +14 -4
- data/lib/happyco_json/api/account_provisioning_service_api.rb +25 -5
- data/lib/happyco_json/api/account_service_api.rb +25 -5
- data/lib/happyco_json/api/account_users_service_api.rb +37 -9
- data/lib/happyco_json/api/asset_service_api.rb +100 -11
- data/lib/happyco_json/api/folder_service_api.rb +37 -9
- data/lib/happyco_json/api/inspection_service_api.rb +55 -15
- data/lib/happyco_json/api/report_service_api.rb +91 -0
- data/lib/happyco_json/api/template_service_api.rb +43 -11
- data/lib/happyco_json/api_client.rb +20 -17
- data/lib/happyco_json/api_error.rb +18 -8
- data/lib/happyco_json/configuration.rb +13 -1
- data/lib/happyco_json/helpers.rb +7 -4
- data/lib/happyco_json/models/create_accounts_request_account_with_admin.rb +16 -4
- data/lib/happyco_json/models/create_accounts_response_account_id_with_admin_id.rb +16 -4
- data/lib/happyco_json/models/inspection_status_change_status.rb +13 -1
- data/lib/happyco_json/models/inspection_status_changes_event_inspection_status_change.rb +16 -4
- data/lib/happyco_json/models/{v1_event_ack.rb → reports_created_event_report_created.rb} +30 -29
- data/lib/happyco_json/models/update_accounts_request_account_with_admin_id.rb +16 -4
- data/lib/happyco_json/models/v1_account.rb +16 -4
- data/lib/happyco_json/models/v1_add_asset_photo_request.rb +237 -0
- data/lib/happyco_json/models/{v1_inspection_status_changes_event_ack.rb → v1_add_asset_photo_response.rb} +25 -14
- data/lib/happyco_json/models/v1_add_inspection_photo_request.rb +16 -4
- data/lib/happyco_json/models/v1_add_inspection_photo_response.rb +16 -4
- data/lib/happyco_json/models/v1_add_inspection_photos_request.rb +16 -4
- data/lib/happyco_json/models/v1_add_inspection_photos_response.rb +16 -4
- data/lib/happyco_json/models/v1_add_users_request.rb +16 -4
- data/lib/happyco_json/models/v1_add_users_response.rb +16 -4
- data/lib/happyco_json/models/v1_asset.rb +29 -8
- data/lib/happyco_json/models/v1_create_accounts_request.rb +16 -4
- data/lib/happyco_json/models/v1_create_accounts_response.rb +16 -4
- data/lib/happyco_json/models/v1_create_assets_request.rb +16 -4
- data/lib/happyco_json/models/v1_create_assets_response.rb +16 -4
- data/lib/happyco_json/models/v1_create_delegated_inspection_link_request.rb +16 -4
- data/lib/happyco_json/models/v1_create_delegated_inspection_link_response.rb +16 -4
- data/lib/happyco_json/models/v1_create_delegated_inspection_links_request.rb +16 -4
- data/lib/happyco_json/models/v1_create_delegated_inspection_links_response.rb +16 -4
- data/lib/happyco_json/models/v1_create_folders_request.rb +16 -4
- data/lib/happyco_json/models/v1_create_folders_response.rb +16 -4
- data/lib/happyco_json/models/v1_create_inspections_request.rb +16 -4
- data/lib/happyco_json/models/v1_create_inspections_response.rb +16 -4
- data/lib/happyco_json/models/v1_create_templates_request.rb +16 -4
- data/lib/happyco_json/models/v1_create_templates_response.rb +16 -4
- data/lib/happyco_json/models/{v1_inspection_status_changes_event_request.rb → v1_date.rb} +39 -20
- data/lib/happyco_json/models/v1_date_time.rb +16 -4
- data/lib/happyco_json/models/v1_event.rb +16 -4
- data/lib/happyco_json/models/v1_float_array.rb +16 -4
- data/lib/happyco_json/models/v1_folder.rb +16 -4
- data/lib/happyco_json/models/v1_folder_type.rb +13 -1
- data/lib/happyco_json/models/v1_footer_field.rb +16 -4
- data/lib/happyco_json/models/v1_header_field.rb +16 -4
- data/lib/happyco_json/models/v1_inspection.rb +29 -8
- data/lib/happyco_json/models/v1_inspection_data.rb +17 -5
- data/lib/happyco_json/models/v1_inspection_status_changes_event.rb +16 -4
- data/lib/happyco_json/models/v1_inspection_status_changes_event_ack_response.rb +16 -4
- data/lib/happyco_json/models/v1_integration_id.rb +16 -4
- data/lib/happyco_json/models/v1_item.rb +16 -4
- data/lib/happyco_json/models/v1_list_accounts_request.rb +16 -4
- data/lib/happyco_json/models/v1_list_accounts_response.rb +16 -4
- data/lib/happyco_json/models/v1_list_assets_request.rb +16 -4
- data/lib/happyco_json/models/v1_list_assets_response.rb +16 -4
- data/lib/happyco_json/models/v1_list_folders_request.rb +16 -4
- data/lib/happyco_json/models/v1_list_folders_response.rb +16 -4
- data/lib/happyco_json/models/v1_list_inspections_request.rb +38 -8
- data/lib/happyco_json/models/v1_list_inspections_response.rb +16 -4
- data/lib/happyco_json/models/v1_list_reports_request.rb +268 -0
- data/lib/happyco_json/models/v1_list_reports_response.rb +222 -0
- data/lib/happyco_json/models/v1_list_templates_request.rb +16 -4
- data/lib/happyco_json/models/v1_list_templates_response.rb +16 -4
- data/lib/happyco_json/models/v1_list_users_request.rb +16 -4
- data/lib/happyco_json/models/v1_list_users_response.rb +16 -4
- data/lib/happyco_json/models/v1_paging.rb +16 -4
- data/lib/happyco_json/models/v1_paging_response.rb +16 -4
- data/lib/happyco_json/models/v1_photo.rb +16 -4
- data/lib/happyco_json/models/v1_property.rb +16 -4
- data/lib/happyco_json/models/v1_rating_checkbox.rb +16 -4
- data/lib/happyco_json/models/v1_rating_control.rb +17 -5
- data/lib/happyco_json/models/v1_rating_drop_down.rb +16 -4
- data/lib/happyco_json/models/v1_rating_drop_down_option.rb +16 -4
- data/lib/happyco_json/models/v1_rating_group.rb +246 -0
- data/lib/happyco_json/models/v1_rating_groups.rb +1 -0
- data/lib/happyco_json/models/v1_rating_image.rb +13 -1
- data/lib/happyco_json/models/v1_rating_radio_group.rb +16 -4
- data/lib/happyco_json/models/v1_rating_radio_group_option.rb +16 -4
- data/lib/happyco_json/models/v1_rating_values.rb +16 -4
- data/lib/happyco_json/models/v1_report.rb +341 -0
- data/lib/happyco_json/models/v1_reports_created_event.rb +210 -0
- data/lib/happyco_json/models/{v1_event_handler_options.rb → v1_reports_created_event_ack_response.rb} +20 -17
- data/lib/happyco_json/models/v1_scheduled_inspection.rb +16 -4
- data/lib/happyco_json/models/v1_section.rb +16 -4
- data/lib/happyco_json/models/v1_set_assets_archived_request.rb +16 -4
- data/lib/happyco_json/models/v1_set_assets_archived_response.rb +16 -4
- data/lib/happyco_json/models/v1_set_inspections_archived_request.rb +16 -4
- data/lib/happyco_json/models/v1_set_inspections_archived_response.rb +16 -4
- data/lib/happyco_json/models/v1_set_templates_archived_request.rb +16 -4
- data/lib/happyco_json/models/v1_set_templates_archived_response.rb +16 -4
- data/lib/happyco_json/models/v1_signatory.rb +240 -0
- data/lib/happyco_json/models/v1_string_array.rb +16 -4
- data/lib/happyco_json/models/v1_template.rb +17 -5
- data/lib/happyco_json/models/v1_unit.rb +16 -4
- data/lib/happyco_json/models/v1_update_account_statuses_request.rb +16 -4
- data/lib/happyco_json/models/v1_update_account_statuses_response.rb +16 -4
- data/lib/happyco_json/models/v1_update_accounts_request.rb +16 -4
- data/lib/happyco_json/models/v1_update_accounts_response.rb +16 -4
- data/lib/happyco_json/models/v1_update_assets_request.rb +16 -4
- data/lib/happyco_json/models/v1_update_assets_response.rb +16 -4
- data/lib/happyco_json/models/v1_update_folder_statuses_request.rb +16 -4
- data/lib/happyco_json/models/v1_update_folder_statuses_response.rb +16 -4
- data/lib/happyco_json/models/v1_update_folders_request.rb +16 -4
- data/lib/happyco_json/models/v1_update_folders_response.rb +16 -4
- data/lib/happyco_json/models/v1_update_inspections_request.rb +16 -4
- data/lib/happyco_json/models/v1_update_inspections_response.rb +16 -4
- data/lib/happyco_json/models/v1_update_templates_request.rb +16 -4
- data/lib/happyco_json/models/v1_update_templates_response.rb +16 -4
- data/lib/happyco_json/models/v1_update_user_statuses_request.rb +16 -4
- data/lib/happyco_json/models/v1_update_user_statuses_response.rb +16 -4
- data/lib/happyco_json/models/v1_update_users_request.rb +16 -4
- data/lib/happyco_json/models/v1_update_users_response.rb +16 -4
- data/lib/happyco_json/models/v1_user.rb +16 -4
- data/lib/happyco_json/version.rb +14 -2
- data/lib/happyco_json.rb +27 -7
- data/spec/api/account_provisioning_service_api_spec.rb +13 -1
- data/spec/api/account_service_api_spec.rb +13 -1
- data/spec/api/account_users_service_api_spec.rb +13 -1
- data/spec/api/asset_service_api_spec.rb +25 -1
- data/spec/api/folder_service_api_spec.rb +13 -1
- data/spec/api/inspection_service_api_spec.rb +13 -1
- data/spec/api/report_service_api_spec.rb +58 -0
- data/spec/api/template_service_api_spec.rb +13 -1
- data/spec/api_client_spec.rb +13 -1
- data/spec/configuration_spec.rb +13 -1
- data/spec/models/create_accounts_request_account_with_admin_spec.rb +13 -1
- data/spec/models/create_accounts_response_account_id_with_admin_id_spec.rb +13 -1
- data/spec/models/inspection_status_change_status_spec.rb +13 -1
- data/spec/models/inspection_status_changes_event_inspection_status_change_spec.rb +13 -1
- data/spec/models/reports_created_event_report_created_spec.rb +59 -0
- data/spec/models/update_accounts_request_account_with_admin_id_spec.rb +13 -1
- data/spec/models/v1_account_spec.rb +13 -1
- data/spec/models/v1_add_asset_photo_request_spec.rb +77 -0
- data/spec/models/v1_add_asset_photo_response_spec.rb +53 -0
- data/spec/models/v1_add_inspection_photo_request_spec.rb +13 -1
- data/spec/models/v1_add_inspection_photo_response_spec.rb +13 -1
- data/spec/models/v1_add_inspection_photos_request_spec.rb +13 -1
- data/spec/models/v1_add_inspection_photos_response_spec.rb +13 -1
- data/spec/models/v1_add_users_request_spec.rb +13 -1
- data/spec/models/v1_add_users_response_spec.rb +13 -1
- data/spec/models/v1_asset_spec.rb +19 -1
- data/spec/models/v1_create_accounts_request_spec.rb +13 -1
- data/spec/models/v1_create_accounts_response_spec.rb +13 -1
- data/spec/models/v1_create_assets_request_spec.rb +13 -1
- data/spec/models/v1_create_assets_response_spec.rb +13 -1
- data/spec/models/v1_create_delegated_inspection_link_request_spec.rb +13 -1
- data/spec/models/v1_create_delegated_inspection_link_response_spec.rb +13 -1
- data/spec/models/v1_create_delegated_inspection_links_request_spec.rb +13 -1
- data/spec/models/v1_create_delegated_inspection_links_response_spec.rb +13 -1
- data/spec/models/v1_create_folders_request_spec.rb +13 -1
- data/spec/models/v1_create_folders_response_spec.rb +13 -1
- data/spec/models/v1_create_inspections_request_spec.rb +13 -1
- data/spec/models/v1_create_inspections_response_spec.rb +13 -1
- data/spec/models/v1_create_templates_request_spec.rb +13 -1
- data/spec/models/v1_create_templates_response_spec.rb +13 -1
- data/spec/models/v1_date_spec.rb +65 -0
- data/spec/models/v1_date_time_spec.rb +13 -1
- data/spec/models/v1_event_spec.rb +13 -1
- data/spec/models/v1_float_array_spec.rb +13 -1
- data/spec/models/v1_folder_spec.rb +13 -1
- data/spec/models/v1_folder_type_spec.rb +13 -1
- data/spec/models/v1_footer_field_spec.rb +13 -1
- data/spec/models/v1_header_field_spec.rb +13 -1
- data/spec/models/v1_inspection_data_spec.rb +13 -1
- data/spec/models/v1_inspection_spec.rb +19 -1
- data/spec/models/v1_inspection_status_changes_event_ack_response_spec.rb +13 -1
- data/spec/models/v1_inspection_status_changes_event_spec.rb +13 -1
- data/spec/models/v1_integration_id_spec.rb +13 -1
- data/spec/models/v1_item_spec.rb +13 -1
- data/spec/models/v1_list_accounts_request_spec.rb +13 -1
- data/spec/models/v1_list_accounts_response_spec.rb +13 -1
- data/spec/models/v1_list_assets_request_spec.rb +13 -1
- data/spec/models/v1_list_assets_response_spec.rb +13 -1
- data/spec/models/v1_list_folders_request_spec.rb +13 -1
- data/spec/models/v1_list_folders_response_spec.rb +13 -1
- data/spec/models/v1_list_inspections_request_spec.rb +25 -1
- data/spec/models/v1_list_inspections_response_spec.rb +13 -1
- data/spec/models/v1_list_reports_request_spec.rb +89 -0
- data/spec/models/v1_list_reports_response_spec.rb +65 -0
- data/spec/models/v1_list_templates_request_spec.rb +13 -1
- data/spec/models/v1_list_templates_response_spec.rb +13 -1
- data/spec/models/v1_list_users_request_spec.rb +13 -1
- data/spec/models/v1_list_users_response_spec.rb +13 -1
- data/spec/models/v1_paging_response_spec.rb +13 -1
- data/spec/models/v1_paging_spec.rb +13 -1
- data/spec/models/v1_photo_spec.rb +13 -1
- data/spec/models/v1_property_spec.rb +13 -1
- data/spec/models/v1_rating_checkbox_spec.rb +13 -1
- data/spec/models/v1_rating_control_spec.rb +13 -1
- data/spec/models/v1_rating_drop_down_option_spec.rb +13 -1
- data/spec/models/v1_rating_drop_down_spec.rb +13 -1
- data/spec/models/v1_rating_group_spec.rb +77 -0
- data/spec/models/v1_rating_image_spec.rb +13 -1
- data/spec/models/v1_rating_radio_group_option_spec.rb +13 -1
- data/spec/models/v1_rating_radio_group_spec.rb +13 -1
- data/spec/models/v1_rating_values_spec.rb +13 -1
- data/spec/models/v1_report_spec.rb +137 -0
- data/spec/models/v1_reports_created_event_ack_response_spec.rb +47 -0
- data/spec/models/v1_reports_created_event_spec.rb +59 -0
- data/spec/models/v1_scheduled_inspection_spec.rb +13 -1
- data/spec/models/v1_section_spec.rb +13 -1
- data/spec/models/v1_set_assets_archived_request_spec.rb +13 -1
- data/spec/models/v1_set_assets_archived_response_spec.rb +13 -1
- data/spec/models/v1_set_inspections_archived_request_spec.rb +13 -1
- data/spec/models/v1_set_inspections_archived_response_spec.rb +13 -1
- data/spec/models/v1_set_templates_archived_request_spec.rb +13 -1
- data/spec/models/v1_set_templates_archived_response_spec.rb +13 -1
- data/spec/models/v1_signatory_spec.rb +77 -0
- data/spec/models/v1_string_array_spec.rb +13 -1
- data/spec/models/v1_template_spec.rb +13 -1
- data/spec/models/v1_unit_spec.rb +13 -1
- data/spec/models/v1_update_account_statuses_request_spec.rb +13 -1
- data/spec/models/v1_update_account_statuses_response_spec.rb +13 -1
- data/spec/models/v1_update_accounts_request_spec.rb +13 -1
- data/spec/models/v1_update_accounts_response_spec.rb +13 -1
- data/spec/models/v1_update_assets_request_spec.rb +13 -1
- data/spec/models/v1_update_assets_response_spec.rb +13 -1
- data/spec/models/v1_update_folder_statuses_request_spec.rb +13 -1
- data/spec/models/v1_update_folder_statuses_response_spec.rb +13 -1
- data/spec/models/v1_update_folders_request_spec.rb +13 -1
- data/spec/models/v1_update_folders_response_spec.rb +13 -1
- data/spec/models/v1_update_inspections_request_spec.rb +13 -1
- data/spec/models/v1_update_inspections_response_spec.rb +13 -1
- data/spec/models/v1_update_templates_request_spec.rb +13 -1
- data/spec/models/v1_update_templates_response_spec.rb +13 -1
- data/spec/models/v1_update_user_statuses_request_spec.rb +13 -1
- data/spec/models/v1_update_user_statuses_response_spec.rb +13 -1
- data/spec/models/v1_update_users_request_spec.rb +13 -1
- data/spec/models/v1_update_users_response_spec.rb +13 -1
- data/spec/models/v1_user_spec.rb +13 -1
- data/spec/spec_helper.rb +13 -1
- metadata +153 -124
- data/Gemfile +0 -7
- data/Rakefile +0 -8
- data/docs/V1EventAck.md +0 -10
- data/docs/V1InspectionStatusChangesEventAck.md +0 -8
- data/docs/V1InspectionStatusChangesEventRequest.md +0 -9
- data/docs/V1RatingGroups.md +0 -9
- data/lib/happyco_json/models/v1_rating_groups.rb +0 -200
- data/spec/models/v1_event_ack_spec.rb +0 -53
- data/spec/models/v1_event_handler_options_spec.rb +0 -41
- data/spec/models/v1_inspection_status_changes_event_ack_spec.rb +0 -41
- data/spec/models/v1_inspection_status_changes_event_request_spec.rb +0 -47
- data/spec/models/v1_rating_groups_spec.rb +0 -47
@@ -3,10 +3,22 @@
|
|
3
3
|
|
4
4
|
#All happy services merged together
|
5
5
|
|
6
|
-
OpenAPI spec version:
|
6
|
+
OpenAPI spec version: 2.1.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
|
10
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
+
you may not use this file except in compliance with the License.
|
12
|
+
You may obtain a copy of the License at
|
13
|
+
|
14
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
15
|
+
|
16
|
+
Unless required by applicable law or agreed to in writing, software
|
17
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
+
See the License for the specific language governing permissions and
|
20
|
+
limitations under the License.
|
21
|
+
|
10
22
|
=end
|
11
23
|
|
12
24
|
require 'date'
|
@@ -129,7 +141,7 @@ module HappyCo
|
|
129
141
|
def build_from_hash(attributes)
|
130
142
|
return nil unless attributes.is_a?(Hash)
|
131
143
|
self.class.swagger_types.each_pair do |key, type|
|
132
|
-
if type =~
|
144
|
+
if type =~ /^Array<(.*)>/i
|
133
145
|
# check to ensure the input is an array given that the the attribute
|
134
146
|
# is documented as an array but the input is not
|
135
147
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -160,7 +172,7 @@ module HappyCo
|
|
160
172
|
when :Float
|
161
173
|
value.to_f
|
162
174
|
when :BOOLEAN
|
163
|
-
if value.to_s =~
|
175
|
+
if value.to_s =~ /^(true|t|yes|y|1)$/i
|
164
176
|
true
|
165
177
|
else
|
166
178
|
false
|
@@ -171,7 +183,7 @@ module HappyCo
|
|
171
183
|
when /\AArray<(?<inner_type>.+)>\z/
|
172
184
|
inner_type = Regexp.last_match[:inner_type]
|
173
185
|
value.map { |v| _deserialize(inner_type, v) }
|
174
|
-
when /\AHash<(?<k_type
|
186
|
+
when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
|
175
187
|
k_type = Regexp.last_match[:k_type]
|
176
188
|
v_type = Regexp.last_match[:v_type]
|
177
189
|
{}.tap do |hash|
|
data/lib/happyco_json/version.rb
CHANGED
@@ -3,12 +3,24 @@
|
|
3
3
|
|
4
4
|
#All happy services merged together
|
5
5
|
|
6
|
-
OpenAPI spec version:
|
6
|
+
OpenAPI spec version: 2.1.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
|
10
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
+
you may not use this file except in compliance with the License.
|
12
|
+
You may obtain a copy of the License at
|
13
|
+
|
14
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
15
|
+
|
16
|
+
Unless required by applicable law or agreed to in writing, software
|
17
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
+
See the License for the specific language governing permissions and
|
20
|
+
limitations under the License.
|
21
|
+
|
10
22
|
=end
|
11
23
|
|
12
24
|
module HappyCo
|
13
|
-
VERSION = "2.
|
25
|
+
VERSION = "2.1.0"
|
14
26
|
end
|
data/lib/happyco_json.rb
CHANGED
@@ -3,10 +3,22 @@
|
|
3
3
|
|
4
4
|
#All happy services merged together
|
5
5
|
|
6
|
-
OpenAPI spec version:
|
6
|
+
OpenAPI spec version: 2.1.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
|
10
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
+
you may not use this file except in compliance with the License.
|
12
|
+
You may obtain a copy of the License at
|
13
|
+
|
14
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
15
|
+
|
16
|
+
Unless required by applicable law or agreed to in writing, software
|
17
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
+
See the License for the specific language governing permissions and
|
20
|
+
limitations under the License.
|
21
|
+
|
10
22
|
=end
|
11
23
|
|
12
24
|
# Common files
|
@@ -20,8 +32,11 @@ require 'happyco_json/models/create_accounts_request_account_with_admin'
|
|
20
32
|
require 'happyco_json/models/create_accounts_response_account_id_with_admin_id'
|
21
33
|
require 'happyco_json/models/inspection_status_change_status'
|
22
34
|
require 'happyco_json/models/inspection_status_changes_event_inspection_status_change'
|
35
|
+
require 'happyco_json/models/reports_created_event_report_created'
|
23
36
|
require 'happyco_json/models/update_accounts_request_account_with_admin_id'
|
24
37
|
require 'happyco_json/models/v1_account'
|
38
|
+
require 'happyco_json/models/v1_add_asset_photo_request'
|
39
|
+
require 'happyco_json/models/v1_add_asset_photo_response'
|
25
40
|
require 'happyco_json/models/v1_add_inspection_photo_request'
|
26
41
|
require 'happyco_json/models/v1_add_inspection_photo_response'
|
27
42
|
require 'happyco_json/models/v1_add_inspection_photos_request'
|
@@ -43,10 +58,9 @@ require 'happyco_json/models/v1_create_inspections_request'
|
|
43
58
|
require 'happyco_json/models/v1_create_inspections_response'
|
44
59
|
require 'happyco_json/models/v1_create_templates_request'
|
45
60
|
require 'happyco_json/models/v1_create_templates_response'
|
61
|
+
require 'happyco_json/models/v1_date'
|
46
62
|
require 'happyco_json/models/v1_date_time'
|
47
63
|
require 'happyco_json/models/v1_event'
|
48
|
-
require 'happyco_json/models/v1_event_ack'
|
49
|
-
require 'happyco_json/models/v1_event_handler_options'
|
50
64
|
require 'happyco_json/models/v1_float_array'
|
51
65
|
require 'happyco_json/models/v1_folder'
|
52
66
|
require 'happyco_json/models/v1_folder_type'
|
@@ -55,9 +69,7 @@ require 'happyco_json/models/v1_header_field'
|
|
55
69
|
require 'happyco_json/models/v1_inspection'
|
56
70
|
require 'happyco_json/models/v1_inspection_data'
|
57
71
|
require 'happyco_json/models/v1_inspection_status_changes_event'
|
58
|
-
require 'happyco_json/models/v1_inspection_status_changes_event_ack'
|
59
72
|
require 'happyco_json/models/v1_inspection_status_changes_event_ack_response'
|
60
|
-
require 'happyco_json/models/v1_inspection_status_changes_event_request'
|
61
73
|
require 'happyco_json/models/v1_integration_id'
|
62
74
|
require 'happyco_json/models/v1_item'
|
63
75
|
require 'happyco_json/models/v1_list_accounts_request'
|
@@ -68,6 +80,8 @@ require 'happyco_json/models/v1_list_folders_request'
|
|
68
80
|
require 'happyco_json/models/v1_list_folders_response'
|
69
81
|
require 'happyco_json/models/v1_list_inspections_request'
|
70
82
|
require 'happyco_json/models/v1_list_inspections_response'
|
83
|
+
require 'happyco_json/models/v1_list_reports_request'
|
84
|
+
require 'happyco_json/models/v1_list_reports_response'
|
71
85
|
require 'happyco_json/models/v1_list_templates_request'
|
72
86
|
require 'happyco_json/models/v1_list_templates_response'
|
73
87
|
require 'happyco_json/models/v1_list_users_request'
|
@@ -80,11 +94,14 @@ require 'happyco_json/models/v1_rating_checkbox'
|
|
80
94
|
require 'happyco_json/models/v1_rating_control'
|
81
95
|
require 'happyco_json/models/v1_rating_drop_down'
|
82
96
|
require 'happyco_json/models/v1_rating_drop_down_option'
|
83
|
-
require 'happyco_json/models/
|
97
|
+
require 'happyco_json/models/v1_rating_group'
|
84
98
|
require 'happyco_json/models/v1_rating_image'
|
85
99
|
require 'happyco_json/models/v1_rating_radio_group'
|
86
100
|
require 'happyco_json/models/v1_rating_radio_group_option'
|
87
101
|
require 'happyco_json/models/v1_rating_values'
|
102
|
+
require 'happyco_json/models/v1_report'
|
103
|
+
require 'happyco_json/models/v1_reports_created_event'
|
104
|
+
require 'happyco_json/models/v1_reports_created_event_ack_response'
|
88
105
|
require 'happyco_json/models/v1_scheduled_inspection'
|
89
106
|
require 'happyco_json/models/v1_section'
|
90
107
|
require 'happyco_json/models/v1_set_assets_archived_request'
|
@@ -93,6 +110,7 @@ require 'happyco_json/models/v1_set_inspections_archived_request'
|
|
93
110
|
require 'happyco_json/models/v1_set_inspections_archived_response'
|
94
111
|
require 'happyco_json/models/v1_set_templates_archived_request'
|
95
112
|
require 'happyco_json/models/v1_set_templates_archived_response'
|
113
|
+
require 'happyco_json/models/v1_signatory'
|
96
114
|
require 'happyco_json/models/v1_string_array'
|
97
115
|
require 'happyco_json/models/v1_template'
|
98
116
|
require 'happyco_json/models/v1_unit'
|
@@ -123,6 +141,7 @@ require 'happyco_json/api/account_users_service_api'
|
|
123
141
|
require 'happyco_json/api/asset_service_api'
|
124
142
|
require 'happyco_json/api/folder_service_api'
|
125
143
|
require 'happyco_json/api/inspection_service_api'
|
144
|
+
require 'happyco_json/api/report_service_api'
|
126
145
|
require 'happyco_json/api/template_service_api'
|
127
146
|
|
128
147
|
module HappyCo
|
@@ -142,4 +161,5 @@ module HappyCo
|
|
142
161
|
end
|
143
162
|
end
|
144
163
|
end
|
145
|
-
require
|
164
|
+
require 'happyco_json/models/v1_rating_groups'
|
165
|
+
require 'happyco_json/helpers'
|
@@ -3,10 +3,22 @@
|
|
3
3
|
|
4
4
|
#All happy services merged together
|
5
5
|
|
6
|
-
OpenAPI spec version:
|
6
|
+
OpenAPI spec version: 2.1.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
|
10
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
+
you may not use this file except in compliance with the License.
|
12
|
+
You may obtain a copy of the License at
|
13
|
+
|
14
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
15
|
+
|
16
|
+
Unless required by applicable law or agreed to in writing, software
|
17
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
+
See the License for the specific language governing permissions and
|
20
|
+
limitations under the License.
|
21
|
+
|
10
22
|
=end
|
11
23
|
|
12
24
|
require 'spec_helper'
|
@@ -3,10 +3,22 @@
|
|
3
3
|
|
4
4
|
#All happy services merged together
|
5
5
|
|
6
|
-
OpenAPI spec version:
|
6
|
+
OpenAPI spec version: 2.1.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
|
10
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
+
you may not use this file except in compliance with the License.
|
12
|
+
You may obtain a copy of the License at
|
13
|
+
|
14
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
15
|
+
|
16
|
+
Unless required by applicable law or agreed to in writing, software
|
17
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
+
See the License for the specific language governing permissions and
|
20
|
+
limitations under the License.
|
21
|
+
|
10
22
|
=end
|
11
23
|
|
12
24
|
require 'spec_helper'
|
@@ -3,10 +3,22 @@
|
|
3
3
|
|
4
4
|
#All happy services merged together
|
5
5
|
|
6
|
-
OpenAPI spec version:
|
6
|
+
OpenAPI spec version: 2.1.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
|
10
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
+
you may not use this file except in compliance with the License.
|
12
|
+
You may obtain a copy of the License at
|
13
|
+
|
14
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
15
|
+
|
16
|
+
Unless required by applicable law or agreed to in writing, software
|
17
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
+
See the License for the specific language governing permissions and
|
20
|
+
limitations under the License.
|
21
|
+
|
10
22
|
=end
|
11
23
|
|
12
24
|
require 'spec_helper'
|
@@ -3,10 +3,22 @@
|
|
3
3
|
|
4
4
|
#All happy services merged together
|
5
5
|
|
6
|
-
OpenAPI spec version:
|
6
|
+
OpenAPI spec version: 2.1.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
|
10
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
+
you may not use this file except in compliance with the License.
|
12
|
+
You may obtain a copy of the License at
|
13
|
+
|
14
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
15
|
+
|
16
|
+
Unless required by applicable law or agreed to in writing, software
|
17
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
+
See the License for the specific language governing permissions and
|
20
|
+
limitations under the License.
|
21
|
+
|
10
22
|
=end
|
11
23
|
|
12
24
|
require 'spec_helper'
|
@@ -31,6 +43,18 @@ describe 'AssetServiceApi' do
|
|
31
43
|
end
|
32
44
|
end
|
33
45
|
|
46
|
+
# unit tests for add_asset_photo
|
47
|
+
#
|
48
|
+
#
|
49
|
+
# @param body
|
50
|
+
# @param [Hash] opts the optional parameters
|
51
|
+
# @return [V1AddAssetPhotoResponse]
|
52
|
+
describe 'add_asset_photo test' do
|
53
|
+
it "should work" do
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
34
58
|
# unit tests for archive_assets
|
35
59
|
#
|
36
60
|
#
|
@@ -3,10 +3,22 @@
|
|
3
3
|
|
4
4
|
#All happy services merged together
|
5
5
|
|
6
|
-
OpenAPI spec version:
|
6
|
+
OpenAPI spec version: 2.1.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
|
10
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
+
you may not use this file except in compliance with the License.
|
12
|
+
You may obtain a copy of the License at
|
13
|
+
|
14
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
15
|
+
|
16
|
+
Unless required by applicable law or agreed to in writing, software
|
17
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
+
See the License for the specific language governing permissions and
|
20
|
+
limitations under the License.
|
21
|
+
|
10
22
|
=end
|
11
23
|
|
12
24
|
require 'spec_helper'
|
@@ -3,10 +3,22 @@
|
|
3
3
|
|
4
4
|
#All happy services merged together
|
5
5
|
|
6
|
-
OpenAPI spec version:
|
6
|
+
OpenAPI spec version: 2.1.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
|
10
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
+
you may not use this file except in compliance with the License.
|
12
|
+
You may obtain a copy of the License at
|
13
|
+
|
14
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
15
|
+
|
16
|
+
Unless required by applicable law or agreed to in writing, software
|
17
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
+
See the License for the specific language governing permissions and
|
20
|
+
limitations under the License.
|
21
|
+
|
10
22
|
=end
|
11
23
|
|
12
24
|
require 'spec_helper'
|
@@ -0,0 +1,58 @@
|
|
1
|
+
=begin
|
2
|
+
#Merged swaggers
|
3
|
+
|
4
|
+
#All happy services merged together
|
5
|
+
|
6
|
+
OpenAPI spec version: 2.1.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
|
10
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
+
you may not use this file except in compliance with the License.
|
12
|
+
You may obtain a copy of the License at
|
13
|
+
|
14
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
15
|
+
|
16
|
+
Unless required by applicable law or agreed to in writing, software
|
17
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
+
See the License for the specific language governing permissions and
|
20
|
+
limitations under the License.
|
21
|
+
|
22
|
+
=end
|
23
|
+
|
24
|
+
require 'spec_helper'
|
25
|
+
require 'json'
|
26
|
+
|
27
|
+
# Unit tests for HappyCo::ReportServiceApi
|
28
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
29
|
+
# Please update as you see appropriate
|
30
|
+
describe 'ReportServiceApi' do
|
31
|
+
before do
|
32
|
+
# run before each test
|
33
|
+
@instance = HappyCo::ReportServiceApi.new
|
34
|
+
end
|
35
|
+
|
36
|
+
after do
|
37
|
+
# run after each test
|
38
|
+
end
|
39
|
+
|
40
|
+
describe 'test an instance of ReportServiceApi' do
|
41
|
+
it 'should create an instact of ReportServiceApi' do
|
42
|
+
expect(@instance).to be_instance_of(HappyCo::ReportServiceApi)
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
# unit tests for list_reports
|
47
|
+
# * List reports gets a paginated and optionally filtered list of reports from one or more folders.
|
48
|
+
#
|
49
|
+
# @param body
|
50
|
+
# @param [Hash] opts the optional parameters
|
51
|
+
# @return [V1ListReportsResponse]
|
52
|
+
describe 'list_reports test' do
|
53
|
+
it "should work" do
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
end
|
@@ -3,10 +3,22 @@
|
|
3
3
|
|
4
4
|
#All happy services merged together
|
5
5
|
|
6
|
-
OpenAPI spec version:
|
6
|
+
OpenAPI spec version: 2.1.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
|
10
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
+
you may not use this file except in compliance with the License.
|
12
|
+
You may obtain a copy of the License at
|
13
|
+
|
14
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
15
|
+
|
16
|
+
Unless required by applicable law or agreed to in writing, software
|
17
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
+
See the License for the specific language governing permissions and
|
20
|
+
limitations under the License.
|
21
|
+
|
10
22
|
=end
|
11
23
|
|
12
24
|
require 'spec_helper'
|
data/spec/api_client_spec.rb
CHANGED
@@ -3,10 +3,22 @@
|
|
3
3
|
|
4
4
|
#All happy services merged together
|
5
5
|
|
6
|
-
OpenAPI spec version:
|
6
|
+
OpenAPI spec version: 2.1.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
|
10
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
+
you may not use this file except in compliance with the License.
|
12
|
+
You may obtain a copy of the License at
|
13
|
+
|
14
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
15
|
+
|
16
|
+
Unless required by applicable law or agreed to in writing, software
|
17
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
+
See the License for the specific language governing permissions and
|
20
|
+
limitations under the License.
|
21
|
+
|
10
22
|
=end
|
11
23
|
|
12
24
|
require 'spec_helper'
|