diff --git a/lib/api/swagger.yaml b/lib/api/swagger.yaml index 7e0cc80..aa2ebe6 100644 --- a/lib/api/swagger.yaml +++ b/lib/api/swagger.yaml @@ -1217,13 +1217,18 @@ paths: - Section operationId: Section_GetAllBeaconsForInstance parameters: + - name: instanceId + in: query + schema: + type: string + nullable: true + x-position: 1 - name: id in: path required: true schema: type: string - nullable: true - x-position: 1 + x-position: 2 responses: '200': description: '' @@ -1786,7 +1791,8 @@ components: isBeacon: type: boolean beaconId: - type: string + type: integer + format: int32 nullable: true SectionType: type: integer diff --git a/manager_api/doc/SectionApi.md b/manager_api/doc/SectionApi.md index e036212..de90d81 100644 --- a/manager_api/doc/SectionApi.md +++ b/manager_api/doc/SectionApi.md @@ -202,7 +202,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **sectionGetAllBeaconsForInstance** -> List sectionGetAllBeaconsForInstance(id) +> List sectionGetAllBeaconsForInstance(id, instanceId) @@ -214,9 +214,10 @@ import 'package:manager_api/api.dart'; final api_instance = SectionApi(); final id = id_example; // String | +final instanceId = instanceId_example; // String | try { - final result = api_instance.sectionGetAllBeaconsForInstance(id); + final result = api_instance.sectionGetAllBeaconsForInstance(id, instanceId); print(result); } catch (e) { print('Exception when calling SectionApi->sectionGetAllBeaconsForInstance: $e\n'); @@ -228,6 +229,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **String**| | + **instanceId** | **String**| | [optional] ### Return type diff --git a/manager_api/doc/SectionDTO.md b/manager_api/doc/SectionDTO.md index 0349cd4..484d474 100644 --- a/manager_api/doc/SectionDTO.md +++ b/manager_api/doc/SectionDTO.md @@ -26,7 +26,7 @@ Name | Type | Description | Notes **longitude** | **String** | | [optional] **meterZoneGPS** | **int** | | [optional] **isBeacon** | **bool** | | [optional] -**beaconId** | **String** | | [optional] +**beaconId** | **int** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/manager_api/lib/api/section_api.dart b/manager_api/lib/api/section_api.dart index f6a2a87..b7f2241 100644 --- a/manager_api/lib/api/section_api.dart +++ b/manager_api/lib/api/section_api.dart @@ -217,7 +217,9 @@ class SectionApi { /// Parameters: /// /// * [String] id (required): - Future sectionGetAllBeaconsForInstanceWithHttpInfo(String id,) async { + /// + /// * [String] instanceId: + Future sectionGetAllBeaconsForInstanceWithHttpInfo(String id, { String? instanceId, }) async { // ignore: prefer_const_declarations final path = r'/api/Section/beacons/{id}' .replaceAll('{id}', id); @@ -229,6 +231,10 @@ class SectionApi { final headerParams = {}; final formParams = {}; + if (instanceId != null) { + queryParams.addAll(_queryParams('', 'instanceId', instanceId)); + } + const contentTypes = []; @@ -246,8 +252,10 @@ class SectionApi { /// Parameters: /// /// * [String] id (required): - Future?> sectionGetAllBeaconsForInstance(String id,) async { - final response = await sectionGetAllBeaconsForInstanceWithHttpInfo(id,); + /// + /// * [String] instanceId: + Future?> sectionGetAllBeaconsForInstance(String id, { String? instanceId, }) async { + final response = await sectionGetAllBeaconsForInstanceWithHttpInfo(id, instanceId: instanceId, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } diff --git a/manager_api/lib/model/section_dto.dart b/manager_api/lib/model/section_dto.dart index eea0ebf..a25824e 100644 --- a/manager_api/lib/model/section_dto.dart +++ b/manager_api/lib/model/section_dto.dart @@ -100,7 +100,7 @@ class SectionDTO { /// bool? isBeacon; - String? beaconId; + int? beaconId; @override bool operator ==(Object other) => identical(this, other) || other is SectionDTO && @@ -249,7 +249,7 @@ class SectionDTO { longitude: mapValueOfType(json, r'longitude'), meterZoneGPS: mapValueOfType(json, r'meterZoneGPS'), isBeacon: mapValueOfType(json, r'isBeacon'), - beaconId: mapValueOfType(json, r'beaconId'), + beaconId: mapValueOfType(json, r'beaconId'), ); } return null; diff --git a/pubspec.yaml b/pubspec.yaml index faf9ba0..8835d26 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. # Read more about iOS versioning at # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html -version: 1.0.1+6 +version: 1.0.1+7 environment: sdk: ">=2.16.2 <3.0.0"