diff --git a/dart-v3/.openapi-generator/FILES b/dart-v3/.openapi-generator/FILES index 8f6b568f3..7c0fe44bc 100644 --- a/dart-v3/.openapi-generator/FILES +++ b/dart-v3/.openapi-generator/FILES @@ -2,6 +2,11 @@ .travis.yml README.md analysis_options.yaml +doc/AboutJsonhalRead.md +doc/AgreementJsonhalRead.md +doc/ApplicationApi.md +doc/ApplicationJsonhalRead.md +doc/ApplicationJsonhalReadLinks.md doc/ArchivingJsonhalOrganizationPreferenceRead.md doc/AssetApi.md doc/AssetJsonhalRead.md @@ -31,10 +36,12 @@ doc/CollaboratorJsonhalRead.md doc/CollaboratorJsonhalReadEmbedded.md doc/CollaboratorJsonhalReadLinks.md doc/ConditionJsonhalRead.md +doc/ConfigurationJsonhalRead.md doc/ConnectionJsonhalAuthProfileRead.md doc/ConnectorApi.md doc/ConnectorJsonhalRead.md doc/ContactJsonhalRead.md +doc/ContactPointJsonhalApplicationRead.md doc/ContactPointJsonhalRead.md doc/ContactPointWrite.md doc/ContractApi.md @@ -143,6 +150,7 @@ doc/NodeJsonhalRead.md doc/OccupantApi.md doc/OccupantJsonhalRead.md doc/OccupantJsonhalReadEmbedded.md +doc/OlderThanJsonhalRead.md doc/OrganizationJsonhalRead.md doc/OrganizationJsonhalReadLinks.md doc/PersonJsonhalRead.md @@ -160,6 +168,7 @@ doc/PreferencesJsonhalAssetRead.md doc/PreferencesJsonhalOrganizationRead.md doc/PriceJsonhalRead.md doc/PriceWrite.md +doc/PrivacyPolicyJsonhalRead.md doc/ProfileJsonhalAuthProfileRead.md doc/ProfileProfileInput.md doc/PublicationApi.md @@ -199,6 +208,7 @@ doc/SlaPolicyJsonhalReadEmbedded.md doc/SlaPolicyJsonhalReadLinks.md doc/TargetGroupApi.md doc/TargetGroupJsonhalRead.md +doc/TermsOfServiceJsonhalRead.md doc/TicketApi.md doc/TicketCreateTicketCommandWrite.md doc/TicketEditTicketCommandWrite.md @@ -220,6 +230,7 @@ doc/WorkflowTransitionJsonhalRead.md doc/WorkflowTransitionJsonhalReadEmbedded.md git_push.sh lib/api.dart +lib/api/application_api.dart lib/api/asset_api.dart lib/api/asset_type_api.dart lib/api/auth_api.dart @@ -262,6 +273,10 @@ lib/auth/authentication.dart lib/auth/http_basic_auth.dart lib/auth/http_bearer_auth.dart lib/auth/oauth.dart +lib/model/about_jsonhal_read.dart +lib/model/agreement_jsonhal_read.dart +lib/model/application_jsonhal_read.dart +lib/model/application_jsonhal_read_links.dart lib/model/archiving_jsonhal_organization_preference_read.dart lib/model/asset_jsonhal_read.dart lib/model/asset_jsonhal_read_links.dart @@ -283,9 +298,11 @@ lib/model/collaborator_jsonhal_read.dart lib/model/collaborator_jsonhal_read_embedded.dart lib/model/collaborator_jsonhal_read_links.dart lib/model/condition_jsonhal_read.dart +lib/model/configuration_jsonhal_read.dart lib/model/connection_jsonhal_auth_profile_read.dart lib/model/connector_jsonhal_read.dart lib/model/contact_jsonhal_read.dart +lib/model/contact_point_jsonhal_application_read.dart lib/model/contact_point_jsonhal_read.dart lib/model/contact_point_write.dart lib/model/contract_create_contract_command_write.dart @@ -382,6 +399,7 @@ lib/model/metric_jsonhal_read.dart lib/model/node_jsonhal_read.dart lib/model/occupant_jsonhal_read.dart lib/model/occupant_jsonhal_read_embedded.dart +lib/model/older_than_jsonhal_read.dart lib/model/organization_jsonhal_read.dart lib/model/organization_jsonhal_read_links.dart lib/model/person_jsonhal_read.dart @@ -398,6 +416,7 @@ lib/model/preferences_jsonhal_asset_read.dart lib/model/preferences_jsonhal_organization_read.dart lib/model/price_jsonhal_read.dart lib/model/price_write.dart +lib/model/privacy_policy_jsonhal_read.dart lib/model/profile_jsonhal_auth_profile_read.dart lib/model/profile_profile_input.dart lib/model/publication_jsonhal_read.dart @@ -429,6 +448,7 @@ lib/model/sla_policy_jsonhal_read.dart lib/model/sla_policy_jsonhal_read_embedded.dart lib/model/sla_policy_jsonhal_read_links.dart lib/model/target_group_jsonhal_read.dart +lib/model/terms_of_service_jsonhal_read.dart lib/model/ticket_create_ticket_command_write.dart lib/model/ticket_edit_ticket_command_write.dart lib/model/ticket_jsongeo_read.dart @@ -445,6 +465,11 @@ lib/model/workflow_state_jsonhal_read.dart lib/model/workflow_transition_jsonhal_read.dart lib/model/workflow_transition_jsonhal_read_embedded.dart pubspec.yaml +test/about_jsonhal_read_test.dart +test/agreement_jsonhal_read_test.dart +test/application_api_test.dart +test/application_jsonhal_read_links_test.dart +test/application_jsonhal_read_test.dart test/archiving_jsonhal_organization_preference_read_test.dart test/asset_api_test.dart test/asset_jsonhal_read_links_test.dart @@ -474,10 +499,12 @@ test/collaborator_jsonhal_read_embedded_test.dart test/collaborator_jsonhal_read_links_test.dart test/collaborator_jsonhal_read_test.dart test/condition_jsonhal_read_test.dart +test/configuration_jsonhal_read_test.dart test/connection_jsonhal_auth_profile_read_test.dart test/connector_api_test.dart test/connector_jsonhal_read_test.dart test/contact_jsonhal_read_test.dart +test/contact_point_jsonhal_application_read_test.dart test/contact_point_jsonhal_read_test.dart test/contact_point_write_test.dart test/contract_api_test.dart @@ -586,6 +613,7 @@ test/node_jsonhal_read_test.dart test/occupant_api_test.dart test/occupant_jsonhal_read_embedded_test.dart test/occupant_jsonhal_read_test.dart +test/older_than_jsonhal_read_test.dart test/organization_jsonhal_read_links_test.dart test/organization_jsonhal_read_test.dart test/person_jsonhal_read_test.dart @@ -603,6 +631,7 @@ test/preferences_jsonhal_asset_read_test.dart test/preferences_jsonhal_organization_read_test.dart test/price_jsonhal_read_test.dart test/price_write_test.dart +test/privacy_policy_jsonhal_read_test.dart test/profile_jsonhal_auth_profile_read_test.dart test/profile_profile_input_test.dart test/publication_api_test.dart @@ -642,6 +671,7 @@ test/sla_policy_jsonhal_read_links_test.dart test/sla_policy_jsonhal_read_test.dart test/target_group_api_test.dart test/target_group_jsonhal_read_test.dart +test/terms_of_service_jsonhal_read_test.dart test/ticket_api_test.dart test/ticket_create_ticket_command_write_test.dart test/ticket_edit_ticket_command_write_test.dart diff --git a/dart-v3/README.md b/dart-v3/README.md index 0f6718c05..6acad8b56 100644 --- a/dart-v3/README.md +++ b/dart-v3/README.md @@ -45,20 +45,19 @@ import 'package:keyclic_sdk_api_platform/api.dart'; // uncomment below to setup prefix (e.g. Bearer) for API key, if needed //defaultApiClient.getAuthentication('apiKey').apiKeyPrefix = 'Bearer'; -final api_instance = AssetApi(); -final identifier = identifier_example; // String | Asset identifier +final api_instance = ApplicationApi(); +final identifier = identifier_example; // String | Application identifier final xKeyclicApp = xKeyclicApp_example; // String | -final xOrganizationId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | final acceptLanguage = acceptLanguage_example; // String | final xDateTime = 2013-10-20T19:20:30+01:00; // DateTime | final xKeyclicAppPlatform = xKeyclicAppPlatform_example; // String | final xKeyclicAppVersion = xKeyclicAppVersion_example; // String | try { - final result = api_instance.getAsset(identifier, xKeyclicApp, xOrganizationId, acceptLanguage, xDateTime, xKeyclicAppPlatform, xKeyclicAppVersion); + final result = api_instance.getApplication(identifier, xKeyclicApp, acceptLanguage, xDateTime, xKeyclicAppPlatform, xKeyclicAppVersion); print(result); } catch (e) { - print('Exception when calling AssetApi->getAsset: $e\n'); + print('Exception when calling ApplicationApi->getApplication: $e\n'); } ``` @@ -69,6 +68,7 @@ All URIs are relative to *http://localhost* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- +*ApplicationApi* | [**getApplication**](doc//ApplicationApi.md#getapplication) | **GET** /applications/{identifier} | Retrieves a Application resource. *AssetApi* | [**getAsset**](doc//AssetApi.md#getasset) | **GET** /assets/{identifier} | Retrieves a Asset resource. *AssetApi* | [**getAssetCollection**](doc//AssetApi.md#getassetcollection) | **GET** /assets | Retrieves the collection of Asset resources. *AssetTypeApi* | [**getAssetType**](doc//AssetTypeApi.md#getassettype) | **GET** /asset-types/{identifier} | Retrieves a AssetType resource. @@ -153,6 +153,10 @@ Class | Method | HTTP request | Description ## Documentation For Models + - [AboutJsonhalRead](doc//AboutJsonhalRead.md) + - [AgreementJsonhalRead](doc//AgreementJsonhalRead.md) + - [ApplicationJsonhalRead](doc//ApplicationJsonhalRead.md) + - [ApplicationJsonhalReadLinks](doc//ApplicationJsonhalReadLinks.md) - [ArchivingJsonhalOrganizationPreferenceRead](doc//ArchivingJsonhalOrganizationPreferenceRead.md) - [AssetJsonhalRead](doc//AssetJsonhalRead.md) - [AssetJsonhalReadLinks](doc//AssetJsonhalReadLinks.md) @@ -174,9 +178,11 @@ Class | Method | HTTP request | Description - [CollaboratorJsonhalReadEmbedded](doc//CollaboratorJsonhalReadEmbedded.md) - [CollaboratorJsonhalReadLinks](doc//CollaboratorJsonhalReadLinks.md) - [ConditionJsonhalRead](doc//ConditionJsonhalRead.md) + - [ConfigurationJsonhalRead](doc//ConfigurationJsonhalRead.md) - [ConnectionJsonhalAuthProfileRead](doc//ConnectionJsonhalAuthProfileRead.md) - [ConnectorJsonhalRead](doc//ConnectorJsonhalRead.md) - [ContactJsonhalRead](doc//ContactJsonhalRead.md) + - [ContactPointJsonhalApplicationRead](doc//ContactPointJsonhalApplicationRead.md) - [ContactPointJsonhalRead](doc//ContactPointJsonhalRead.md) - [ContactPointWrite](doc//ContactPointWrite.md) - [ContractCreateContractCommandWrite](doc//ContractCreateContractCommandWrite.md) @@ -273,6 +279,7 @@ Class | Method | HTTP request | Description - [NodeJsonhalRead](doc//NodeJsonhalRead.md) - [OccupantJsonhalRead](doc//OccupantJsonhalRead.md) - [OccupantJsonhalReadEmbedded](doc//OccupantJsonhalReadEmbedded.md) + - [OlderThanJsonhalRead](doc//OlderThanJsonhalRead.md) - [OrganizationJsonhalRead](doc//OrganizationJsonhalRead.md) - [OrganizationJsonhalReadLinks](doc//OrganizationJsonhalReadLinks.md) - [PersonJsonhalRead](doc//PersonJsonhalRead.md) @@ -289,6 +296,7 @@ Class | Method | HTTP request | Description - [PreferencesJsonhalOrganizationRead](doc//PreferencesJsonhalOrganizationRead.md) - [PriceJsonhalRead](doc//PriceJsonhalRead.md) - [PriceWrite](doc//PriceWrite.md) + - [PrivacyPolicyJsonhalRead](doc//PrivacyPolicyJsonhalRead.md) - [ProfileJsonhalAuthProfileRead](doc//ProfileJsonhalAuthProfileRead.md) - [ProfileProfileInput](doc//ProfileProfileInput.md) - [PublicationJsonhalRead](doc//PublicationJsonhalRead.md) @@ -320,6 +328,7 @@ Class | Method | HTTP request | Description - [SlaPolicyJsonhalReadEmbedded](doc//SlaPolicyJsonhalReadEmbedded.md) - [SlaPolicyJsonhalReadLinks](doc//SlaPolicyJsonhalReadLinks.md) - [TargetGroupJsonhalRead](doc//TargetGroupJsonhalRead.md) + - [TermsOfServiceJsonhalRead](doc//TermsOfServiceJsonhalRead.md) - [TicketCreateTicketCommandWrite](doc//TicketCreateTicketCommandWrite.md) - [TicketEditTicketCommandWrite](doc//TicketEditTicketCommandWrite.md) - [TicketJsongeoRead](doc//TicketJsongeoRead.md) diff --git a/dart/doc/ApplicationAbout.md b/dart-v3/doc/AboutJsonhalRead.md similarity index 73% rename from dart/doc/ApplicationAbout.md rename to dart-v3/doc/AboutJsonhalRead.md index 3d6e31f5b..76f19dfcb 100644 --- a/dart/doc/ApplicationAbout.md +++ b/dart-v3/doc/AboutJsonhalRead.md @@ -1,14 +1,14 @@ -# keyclic_sdk_api.model.ApplicationAbout +# keyclic_sdk_api_platform.model.AboutJsonhalRead ## Load the model package ```dart -import 'package:keyclic_sdk_api/api.dart'; +import 'package:keyclic_sdk_api_platform/api.dart'; ``` ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **String** | | [optional] +**name** | **String** | | **text** | **String** | | [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/dart-v3/doc/AgreementJsonhalRead.md b/dart-v3/doc/AgreementJsonhalRead.md new file mode 100644 index 000000000..11506e536 --- /dev/null +++ b/dart-v3/doc/AgreementJsonhalRead.md @@ -0,0 +1,17 @@ +# keyclic_sdk_api_platform.model.AgreementJsonhalRead + +## Load the model package +```dart +import 'package:keyclic_sdk_api_platform/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**olderThan** | [**OlderThanJsonhalRead**](OlderThanJsonhalRead.md) | | [optional] +**privacyPolicy** | [**PrivacyPolicyJsonhalRead**](PrivacyPolicyJsonhalRead.md) | | [optional] +**termsOfService** | [**TermsOfServiceJsonhalRead**](TermsOfServiceJsonhalRead.md) | | [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/dart/doc/ApplicationApi.md b/dart-v3/doc/ApplicationApi.md similarity index 52% rename from dart/doc/ApplicationApi.md rename to dart-v3/doc/ApplicationApi.md index 56c416203..280a4cc39 100644 --- a/dart/doc/ApplicationApi.md +++ b/dart-v3/doc/ApplicationApi.md @@ -1,36 +1,42 @@ -# keyclic_sdk_api.api.ApplicationApi +# keyclic_sdk_api_platform.api.ApplicationApi ## Load the API package ```dart -import 'package:keyclic_sdk_api/api.dart'; +import 'package:keyclic_sdk_api_platform/api.dart'; ``` -All URIs are relative to *https://api.keyclic.com* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**getApplication**](ApplicationApi.md#getapplication) | **GET** /applications/{application} | Retrieve one Application resource. +[**getApplication**](ApplicationApi.md#getapplication) | **GET** /applications/{identifier} | Retrieves a Application resource. # **getApplication** -> Application getApplication(xKeyclicApp, application, acceptLanguage, xDateTime, xKeyclicAppPlatform, xKeyclicAppVersion) +> ApplicationJsonhalRead getApplication(identifier, xKeyclicApp, acceptLanguage, xDateTime, xKeyclicAppPlatform, xKeyclicAppVersion) -Retrieve one Application resource. +Retrieves a Application resource. + +Retrieves a Application resource. ### Example ```dart -import 'package:keyclic_sdk_api/api.dart'; +import 'package:keyclic_sdk_api_platform/api.dart'; +// TODO Configure API key authorization: apiKey +//defaultApiClient.getAuthentication('apiKey').apiKey = 'YOUR_API_KEY'; +// uncomment below to setup prefix (e.g. Bearer) for API key, if needed +//defaultApiClient.getAuthentication('apiKey').apiKeyPrefix = 'Bearer'; final api_instance = ApplicationApi(); +final identifier = identifier_example; // String | Application identifier final xKeyclicApp = xKeyclicApp_example; // String | -final application = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | The identifier of the resource. final acceptLanguage = acceptLanguage_example; // String | final xDateTime = 2013-10-20T19:20:30+01:00; // DateTime | final xKeyclicAppPlatform = xKeyclicAppPlatform_example; // String | final xKeyclicAppVersion = xKeyclicAppVersion_example; // String | try { - final result = api_instance.getApplication(xKeyclicApp, application, acceptLanguage, xDateTime, xKeyclicAppPlatform, xKeyclicAppVersion); + final result = api_instance.getApplication(identifier, xKeyclicApp, acceptLanguage, xDateTime, xKeyclicAppPlatform, xKeyclicAppVersion); print(result); } catch (e) { print('Exception when calling ApplicationApi->getApplication: $e\n'); @@ -41,8 +47,8 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xKeyclicApp** | **String**| | [default to 'com.keyclic.app'] - **application** | **String**| The identifier of the resource. | + **identifier** | **String**| Application identifier | + **xKeyclicApp** | **String**| | **acceptLanguage** | **String**| | [optional] [default to 'en-US'] **xDateTime** | **DateTime**| | [optional] **xKeyclicAppPlatform** | **String**| | [optional] @@ -50,16 +56,16 @@ Name | Type | Description | Notes ### Return type -[**Application**](Application.md) +[**ApplicationJsonhalRead**](ApplicationJsonhalRead.md) ### Authorization -No authorization required +[apiKey](../README.md#apiKey) ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/hal+json;charset=UTF-8 + - **Accept**: application/hal+json [[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) diff --git a/dart-v3/doc/ApplicationJsonhalRead.md b/dart-v3/doc/ApplicationJsonhalRead.md new file mode 100644 index 000000000..450ed9cd9 --- /dev/null +++ b/dart-v3/doc/ApplicationJsonhalRead.md @@ -0,0 +1,26 @@ +# keyclic_sdk_api_platform.model.ApplicationJsonhalRead + +## Load the model package +```dart +import 'package:keyclic_sdk_api_platform/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**ApplicationJsonhalReadLinks**](ApplicationJsonhalReadLinks.md) | | [optional] +**about** | [**AboutJsonhalRead**](AboutJsonhalRead.md) | | [optional] +**agreement** | [**AgreementJsonhalRead**](AgreementJsonhalRead.md) | | [optional] +**configuration** | [**ConfigurationJsonhalRead**](ConfigurationJsonhalRead.md) | | [optional] +**contactPoints** | [**List**](ContactPointJsonhalApplicationRead.md) | | [optional] [default to const []] +**name** | **String** | | +**token** | **String** | The token of the Application, which is used in request application header, to define the context of the current application. | +**version** | **String** | | +**id** | **String** | The resource identifier. | [optional] [readonly] +**createdAt** | [**DateTime**](DateTime.md) | The date and time when the resource was created, in UTC format. | [optional] [readonly] +**updatedAt** | [**DateTime**](DateTime.md) | The date and time when the resource was updated, in UTC format. | [optional] [readonly] +**type** | **String** | | [optional] [readonly] + +[[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/dart-v3/doc/ApplicationJsonhalReadLinks.md b/dart-v3/doc/ApplicationJsonhalReadLinks.md new file mode 100644 index 000000000..39c8649c5 --- /dev/null +++ b/dart-v3/doc/ApplicationJsonhalReadLinks.md @@ -0,0 +1,16 @@ +# keyclic_sdk_api_platform.model.ApplicationJsonhalReadLinks + +## Load the model package +```dart +import 'package:keyclic_sdk_api_platform/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**self** | [**GetPlaceCollection200ResponseLinksSelf**](GetPlaceCollection200ResponseLinksSelf.md) | | [optional] +**knowledgeBase** | [**GetPlaceCollection200ResponseLinksFirst**](GetPlaceCollection200ResponseLinksFirst.md) | | [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/dart-v3/doc/ConfigurationJsonhalRead.md b/dart-v3/doc/ConfigurationJsonhalRead.md new file mode 100644 index 000000000..62144985c --- /dev/null +++ b/dart-v3/doc/ConfigurationJsonhalRead.md @@ -0,0 +1,15 @@ +# keyclic_sdk_api_platform.model.ConfigurationJsonhalRead + +## Load the model package +```dart +import 'package:keyclic_sdk_api_platform/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**public** | **bool** | | [optional] [default to true] + +[[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/dart/doc/ApplicationContactPoint.md b/dart-v3/doc/ContactPointJsonhalApplicationRead.md similarity index 64% rename from dart/doc/ApplicationContactPoint.md rename to dart-v3/doc/ContactPointJsonhalApplicationRead.md index 5f5cb49ca..9a3a610e3 100644 --- a/dart/doc/ApplicationContactPoint.md +++ b/dart-v3/doc/ContactPointJsonhalApplicationRead.md @@ -1,18 +1,18 @@ -# keyclic_sdk_api.model.ApplicationContactPoint +# keyclic_sdk_api_platform.model.ContactPointJsonhalApplicationRead ## Load the model package ```dart -import 'package:keyclic_sdk_api/api.dart'; +import 'package:keyclic_sdk_api_platform/api.dart'; ``` ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**id** | **String** | The resource identifier. | [optional] [readonly] **email** | **String** | | [optional] -**id** | **String** | | [optional] [readonly] -**name** | **String** | | [optional] **telephone** | **String** | | [optional] -**type** | **String** | | [optional] +**name** | **String** | | [optional] +**type** | **String** | | [optional] [readonly] [[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/dart/doc/AgreementOlderThan.md b/dart-v3/doc/OlderThanJsonhalRead.md similarity index 77% rename from dart/doc/AgreementOlderThan.md rename to dart-v3/doc/OlderThanJsonhalRead.md index 575242073..c1341f924 100644 --- a/dart/doc/AgreementOlderThan.md +++ b/dart-v3/doc/OlderThanJsonhalRead.md @@ -1,8 +1,8 @@ -# keyclic_sdk_api.model.AgreementOlderThan +# keyclic_sdk_api_platform.model.OlderThanJsonhalRead ## Load the model package ```dart -import 'package:keyclic_sdk_api/api.dart'; +import 'package:keyclic_sdk_api_platform/api.dart'; ``` ## Properties diff --git a/dart/doc/AgreementPrivacyPolicy.md b/dart-v3/doc/PrivacyPolicyJsonhalRead.md similarity index 76% rename from dart/doc/AgreementPrivacyPolicy.md rename to dart-v3/doc/PrivacyPolicyJsonhalRead.md index 61e6f149e..5f3b4cb74 100644 --- a/dart/doc/AgreementPrivacyPolicy.md +++ b/dart-v3/doc/PrivacyPolicyJsonhalRead.md @@ -1,8 +1,8 @@ -# keyclic_sdk_api.model.AgreementPrivacyPolicy +# keyclic_sdk_api_platform.model.PrivacyPolicyJsonhalRead ## Load the model package ```dart -import 'package:keyclic_sdk_api/api.dart'; +import 'package:keyclic_sdk_api_platform/api.dart'; ``` ## Properties diff --git a/dart/doc/AgreementTermsOfService.md b/dart-v3/doc/TermsOfServiceJsonhalRead.md similarity index 76% rename from dart/doc/AgreementTermsOfService.md rename to dart-v3/doc/TermsOfServiceJsonhalRead.md index c2922248c..fc7658554 100644 --- a/dart/doc/AgreementTermsOfService.md +++ b/dart-v3/doc/TermsOfServiceJsonhalRead.md @@ -1,8 +1,8 @@ -# keyclic_sdk_api.model.AgreementTermsOfService +# keyclic_sdk_api_platform.model.TermsOfServiceJsonhalRead ## Load the model package ```dart -import 'package:keyclic_sdk_api/api.dart'; +import 'package:keyclic_sdk_api_platform/api.dart'; ``` ## Properties diff --git a/dart-v3/lib/api.dart b/dart-v3/lib/api.dart index 8933f521f..5e4c0ad29 100644 --- a/dart-v3/lib/api.dart +++ b/dart-v3/lib/api.dart @@ -19,6 +19,7 @@ part 'auth/oauth.dart'; part 'auth/http_basic_auth.dart'; part 'auth/http_bearer_auth.dart'; +part 'api/application_api.dart'; part 'api/asset_api.dart'; part 'api/asset_type_api.dart'; part 'api/auth_api.dart'; @@ -54,6 +55,10 @@ part 'api/ticket_type_api.dart'; part 'api/workflow_state_api.dart'; part 'api/workflow_transition_api.dart'; +part 'model/about_jsonhal_read.dart'; +part 'model/agreement_jsonhal_read.dart'; +part 'model/application_jsonhal_read.dart'; +part 'model/application_jsonhal_read_links.dart'; part 'model/archiving_jsonhal_organization_preference_read.dart'; part 'model/asset_jsonhal_read.dart'; part 'model/asset_jsonhal_read_links.dart'; @@ -75,9 +80,11 @@ part 'model/collaborator_jsonhal_read.dart'; part 'model/collaborator_jsonhal_read_embedded.dart'; part 'model/collaborator_jsonhal_read_links.dart'; part 'model/condition_jsonhal_read.dart'; +part 'model/configuration_jsonhal_read.dart'; part 'model/connection_jsonhal_auth_profile_read.dart'; part 'model/connector_jsonhal_read.dart'; part 'model/contact_jsonhal_read.dart'; +part 'model/contact_point_jsonhal_application_read.dart'; part 'model/contact_point_jsonhal_read.dart'; part 'model/contact_point_write.dart'; part 'model/contract_create_contract_command_write.dart'; @@ -174,6 +181,7 @@ part 'model/metric_jsonhal_read.dart'; part 'model/node_jsonhal_read.dart'; part 'model/occupant_jsonhal_read.dart'; part 'model/occupant_jsonhal_read_embedded.dart'; +part 'model/older_than_jsonhal_read.dart'; part 'model/organization_jsonhal_read.dart'; part 'model/organization_jsonhal_read_links.dart'; part 'model/person_jsonhal_read.dart'; @@ -190,6 +198,7 @@ part 'model/preferences_jsonhal_asset_read.dart'; part 'model/preferences_jsonhal_organization_read.dart'; part 'model/price_jsonhal_read.dart'; part 'model/price_write.dart'; +part 'model/privacy_policy_jsonhal_read.dart'; part 'model/profile_jsonhal_auth_profile_read.dart'; part 'model/profile_profile_input.dart'; part 'model/publication_jsonhal_read.dart'; @@ -221,6 +230,7 @@ part 'model/sla_policy_jsonhal_read.dart'; part 'model/sla_policy_jsonhal_read_embedded.dart'; part 'model/sla_policy_jsonhal_read_links.dart'; part 'model/target_group_jsonhal_read.dart'; +part 'model/terms_of_service_jsonhal_read.dart'; part 'model/ticket_create_ticket_command_write.dart'; part 'model/ticket_edit_ticket_command_write.dart'; part 'model/ticket_jsongeo_read.dart'; diff --git a/dart/lib/api/application_api.dart b/dart-v3/lib/api/application_api.dart similarity index 66% rename from dart/lib/api/application_api.dart rename to dart-v3/lib/api/application_api.dart index a217cd440..f07dc3016 100644 --- a/dart/lib/api/application_api.dart +++ b/dart-v3/lib/api/application_api.dart @@ -2,23 +2,23 @@ // AUTO-GENERATED FILE, DO NOT MODIFY! // -part of keyclic_sdk_api; +part of keyclic_sdk_api_platform; class ApplicationApi { const ApplicationApi(this._apiClient); - final ApiClient _apiClient; + final ApiPlatformClient _apiClient; - /// Retrieve one Application resource. - /// + /// Retrieves a Application resource. + /// Retrieves a Application resource. /// /// Parameters: - /// * [xKeyclicApp] - /// * [application] - The identifier of the resource. - /// * [acceptLanguage] - /// * [xDateTime] - /// * [xKeyclicAppPlatform] - /// * [xKeyclicAppVersion] + /// * [identifier] - Application identifier + /// * [xKeyclicApp] - + /// * [acceptLanguage] - + /// * [xDateTime] - + /// * [xKeyclicAppPlatform] - + /// * [xKeyclicAppVersion] - /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request /// * [extras] - Can be used to add flags to the request @@ -26,13 +26,11 @@ class ApplicationApi { /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// - /// Returns a [Future] containing a [Response] with a [Application] as data + /// Returns a [Future] containing a [Response] with a [ApplicationJsonhalRead] as data /// Throws [DioException] if API call or serialization fails - /// Keyclic API documentation. - /// Also see [Retrieve one Application resource. Documentation](https://docs.keyclic.com/fr/master/overview.html) - Future> getApplication({ + Future> getApplication({ + required String identifier, required String xKeyclicApp, - required String application, String? acceptLanguage, DateTime? xDateTime, String? xKeyclicAppPlatform, @@ -44,23 +42,30 @@ class ApplicationApi { ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress, }) async { - final String path = r'/applications/{application}' - .replaceAll('{' r'application' '}', application.toString()); + final String path = r'/applications/{identifier}' + .replaceAll('{' r'identifier' '}', identifier.toString()); final options = Options( method: r'GET', headers: { // to string ?? - if (acceptLanguage != null) r'accept-language': acceptLanguage, - if (xDateTime != null) r'x-date-time': xDateTime, - r'x-keyclic-app': xKeyclicApp, + if (acceptLanguage != null) r'Accept-Language': acceptLanguage, + if (xDateTime != null) r'X-Date-Time': xDateTime, + r'X-Keyclic-App': xKeyclicApp, if (xKeyclicAppPlatform != null) - r'x-keyclic-app-platform': xKeyclicAppPlatform, + r'X-Keyclic-App-Platform': xKeyclicAppPlatform, if (xKeyclicAppVersion != null) - r'x-keyclic-app-version': xKeyclicAppVersion, + r'X-Keyclic-App-Version': xKeyclicAppVersion, ...?headers, }, extra: { - 'secure': >[], + 'secure': >[ + { + 'type': 'apiKey', + 'name': 'apiKey', + 'keyName': 'Authorization', + 'where': 'header', + }, + ], ...?extra, }, validateStatus: validateStatus, @@ -74,11 +79,11 @@ class ApplicationApi { onReceiveProgress: onReceiveProgress, ); - Application responseData; + ApplicationJsonhalRead responseData; try { - responseData = await _apiClient.deserializeAsync( - response.data!, 'Application'); + responseData = await _apiClient.deserializeAsync( + response.data!, 'ApplicationJsonhalRead'); } catch (error, stackTrace) { throw DioException( error: error, @@ -89,7 +94,7 @@ class ApplicationApi { ); } - return Response( + return Response( data: responseData, headers: response.headers, isRedirect: response.isRedirect, diff --git a/dart-v3/lib/api_client.dart b/dart-v3/lib/api_client.dart index ad7971c8a..1ca11d846 100644 --- a/dart-v3/lib/api_client.dart +++ b/dart-v3/lib/api_client.dart @@ -64,6 +64,11 @@ class ApiPlatformClient { } } + /// Get ApplicationApi instance + ApplicationApi getApplicationApi() { + return ApplicationApi(this); + } + /// Get AssetApi instance AssetApi getAssetApi() { return AssetApi(this); @@ -289,6 +294,14 @@ class ApiPlatformClient { return valueString == 'true' || valueString == '1'; case 'double': return value is double ? value : double.parse('$value'); + case 'AboutJsonhalRead': + return AboutJsonhalRead.fromJson(value); + case 'AgreementJsonhalRead': + return AgreementJsonhalRead.fromJson(value); + case 'ApplicationJsonhalRead': + return ApplicationJsonhalRead.fromJson(value); + case 'ApplicationJsonhalReadLinks': + return ApplicationJsonhalReadLinks.fromJson(value); case 'ArchivingJsonhalOrganizationPreferenceRead': return ArchivingJsonhalOrganizationPreferenceRead.fromJson(value); case 'AssetJsonhalRead': @@ -331,12 +344,16 @@ class ApiPlatformClient { return CollaboratorJsonhalReadLinks.fromJson(value); case 'ConditionJsonhalRead': return ConditionJsonhalRead.fromJson(value); + case 'ConfigurationJsonhalRead': + return ConfigurationJsonhalRead.fromJson(value); case 'ConnectionJsonhalAuthProfileRead': return ConnectionJsonhalAuthProfileRead.fromJson(value); case 'ConnectorJsonhalRead': return ConnectorJsonhalRead.fromJson(value); case 'ContactJsonhalRead': return ContactJsonhalRead.fromJson(value); + case 'ContactPointJsonhalApplicationRead': + return ContactPointJsonhalApplicationRead.fromJson(value); case 'ContactPointJsonhalRead': return ContactPointJsonhalRead.fromJson(value); case 'ContactPointWrite': @@ -531,6 +548,8 @@ class ApiPlatformClient { return OccupantJsonhalRead.fromJson(value); case 'OccupantJsonhalReadEmbedded': return OccupantJsonhalReadEmbedded.fromJson(value); + case 'OlderThanJsonhalRead': + return OlderThanJsonhalRead.fromJson(value); case 'OrganizationJsonhalRead': return OrganizationJsonhalRead.fromJson(value); case 'OrganizationJsonhalReadLinks': @@ -563,6 +582,8 @@ class ApiPlatformClient { return PriceJsonhalRead.fromJson(value); case 'PriceWrite': return PriceWrite.fromJson(value); + case 'PrivacyPolicyJsonhalRead': + return PrivacyPolicyJsonhalRead.fromJson(value); case 'ProfileJsonhalAuthProfileRead': return ProfileJsonhalAuthProfileRead.fromJson(value); case 'ProfileProfileInput': @@ -625,6 +646,8 @@ class ApiPlatformClient { return SlaPolicyJsonhalReadLinks.fromJson(value); case 'TargetGroupJsonhalRead': return TargetGroupJsonhalRead.fromJson(value); + case 'TermsOfServiceJsonhalRead': + return TermsOfServiceJsonhalRead.fromJson(value); case 'TicketCreateTicketCommandWrite': return TicketCreateTicketCommandWrite.fromJson(value); case 'TicketEditTicketCommandWrite': diff --git a/dart-v3/lib/model/about_jsonhal_read.dart b/dart-v3/lib/model/about_jsonhal_read.dart new file mode 100644 index 000000000..5f8d942dd --- /dev/null +++ b/dart-v3/lib/model/about_jsonhal_read.dart @@ -0,0 +1,100 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +part of keyclic_sdk_api_platform; + +class AboutJsonhalRead { + /// Returns a new [AboutJsonhalRead] instance. + AboutJsonhalRead({ + required this.name, + this.text, + }); + + /// Returns a new [AboutJsonhalRead] instance and imports its values from + /// [json] if it's non-null, null if [json] is null. + static AboutJsonhalRead? fromJson(Object? json) { + if (json is! Map) { + return null; + } + + return AboutJsonhalRead( + name: json[r'name'], + text: json[r'text'], + ); + } + + String name; + + String? text; + + @override + bool operator ==(Object other) { + // Same reference + if (identical(this, other)) { + return true; + } + + return other is AboutJsonhalRead && + other.name == name && + other.text == text; + } + + @override + int get hashCode => name.hashCode + (text == null ? 0 : text.hashCode); + + static List listFromJson(Iterable? json) { + if (json == null) { + return []; + } + + return json.fold([], + (List previousValue, element) { + final AboutJsonhalRead? object = AboutJsonhalRead.fromJson(element); + if (object is AboutJsonhalRead) { + previousValue.add(object); + } + + return previousValue; + }); + } + + static Map mapFromJson(Map? json) { + if (json == null) { + return {}; + } + + return json.entries.fold({}, + (Map previousValue, element) { + final AboutJsonhalRead? object = AboutJsonhalRead.fromJson(element.value); + if (object is AboutJsonhalRead) { + previousValue[element.key] = object; + } + + return previousValue; + }); + } + + // maps a json object with a list of AboutJsonhalRead-objects as value to a dart map + static Map> mapListFromJson( + Map? json) { + if (json == null) { + return >{}; + } + + return json.map((key, value) { + return MapEntry>( + key, AboutJsonhalRead.listFromJson(value)); + }); + } + + @override + String toString() => 'AboutJsonhalRead[name=$name, text=$text]'; + + Map toJson([Iterable? keys]) { + return { + r'name': name, + if (keys == null || keys.contains(r'text')) r'text': text, + }; + } +} diff --git a/dart/lib/model/application_agreement.dart b/dart-v3/lib/model/agreement_jsonhal_read.dart similarity index 60% rename from dart/lib/model/application_agreement.dart rename to dart-v3/lib/model/agreement_jsonhal_read.dart index 8b2fe442d..a124b7e4c 100644 --- a/dart/lib/model/application_agreement.dart +++ b/dart-v3/lib/model/agreement_jsonhal_read.dart @@ -2,35 +2,36 @@ // AUTO-GENERATED FILE, DO NOT MODIFY! // -part of keyclic_sdk_api; +part of keyclic_sdk_api_platform; -class ApplicationAgreement { - /// Returns a new [ApplicationAgreement] instance. - ApplicationAgreement({ +class AgreementJsonhalRead { + /// Returns a new [AgreementJsonhalRead] instance. + AgreementJsonhalRead({ this.olderThan, this.privacyPolicy, this.termsOfService, }); - /// Returns a new [ApplicationAgreement] instance and imports its values from + /// Returns a new [AgreementJsonhalRead] instance and imports its values from /// [json] if it's non-null, null if [json] is null. - static ApplicationAgreement? fromJson(Object? json) { + static AgreementJsonhalRead? fromJson(Object? json) { if (json is! Map) { return null; } - return ApplicationAgreement( - olderThan: AgreementOlderThan.fromJson(json[r'olderThan']), - privacyPolicy: AgreementPrivacyPolicy.fromJson(json[r'privacyPolicy']), - termsOfService: AgreementTermsOfService.fromJson(json[r'termsOfService']), + return AgreementJsonhalRead( + olderThan: OlderThanJsonhalRead.fromJson(json[r'olderThan']), + privacyPolicy: PrivacyPolicyJsonhalRead.fromJson(json[r'privacyPolicy']), + termsOfService: + TermsOfServiceJsonhalRead.fromJson(json[r'termsOfService']), ); } - AgreementOlderThan? olderThan; + OlderThanJsonhalRead? olderThan; - AgreementPrivacyPolicy? privacyPolicy; + PrivacyPolicyJsonhalRead? privacyPolicy; - AgreementTermsOfService? termsOfService; + TermsOfServiceJsonhalRead? termsOfService; @override bool operator ==(Object other) { @@ -39,7 +40,7 @@ class ApplicationAgreement { return true; } - return other is ApplicationAgreement && + return other is AgreementJsonhalRead && other.olderThan == olderThan && other.privacyPolicy == privacyPolicy && other.termsOfService == termsOfService; @@ -51,16 +52,16 @@ class ApplicationAgreement { (privacyPolicy == null ? 0 : privacyPolicy.hashCode) + (termsOfService == null ? 0 : termsOfService.hashCode); - static List listFromJson(Iterable? json) { + static List listFromJson(Iterable? json) { if (json == null) { - return []; + return []; } - return json.fold([], - (List previousValue, element) { - final ApplicationAgreement? object = - ApplicationAgreement.fromJson(element); - if (object is ApplicationAgreement) { + return json.fold([], + (List previousValue, element) { + final AgreementJsonhalRead? object = + AgreementJsonhalRead.fromJson(element); + if (object is AgreementJsonhalRead) { previousValue.add(object); } @@ -68,17 +69,17 @@ class ApplicationAgreement { }); } - static Map mapFromJson( + static Map mapFromJson( Map? json) { if (json == null) { - return {}; + return {}; } - return json.entries.fold({}, - (Map previousValue, element) { - final ApplicationAgreement? object = - ApplicationAgreement.fromJson(element.value); - if (object is ApplicationAgreement) { + return json.entries.fold({}, + (Map previousValue, element) { + final AgreementJsonhalRead? object = + AgreementJsonhalRead.fromJson(element.value); + if (object is AgreementJsonhalRead) { previousValue[element.key] = object; } @@ -86,22 +87,22 @@ class ApplicationAgreement { }); } - // maps a json object with a list of ApplicationAgreement-objects as value to a dart map - static Map> mapListFromJson( + // maps a json object with a list of AgreementJsonhalRead-objects as value to a dart map + static Map> mapListFromJson( Map? json) { if (json == null) { - return >{}; + return >{}; } return json.map((key, value) { - return MapEntry>( - key, ApplicationAgreement.listFromJson(value)); + return MapEntry>( + key, AgreementJsonhalRead.listFromJson(value)); }); } @override String toString() => - 'ApplicationAgreement[olderThan=$olderThan, privacyPolicy=$privacyPolicy, termsOfService=$termsOfService]'; + 'AgreementJsonhalRead[olderThan=$olderThan, privacyPolicy=$privacyPolicy, termsOfService=$termsOfService]'; Map toJson([Iterable? keys]) { return { diff --git a/dart/lib/model/application.dart b/dart-v3/lib/model/application_jsonhal_read.dart similarity index 62% rename from dart/lib/model/application.dart rename to dart-v3/lib/model/application_jsonhal_read.dart index 3e42c6bd1..8d5215d28 100644 --- a/dart/lib/model/application.dart +++ b/dart-v3/lib/model/application_jsonhal_read.dart @@ -2,72 +2,76 @@ // AUTO-GENERATED FILE, DO NOT MODIFY! // -part of keyclic_sdk_api; +part of keyclic_sdk_api_platform; -class Application { - /// Returns a new [Application] instance. - Application({ +class ApplicationJsonhalRead { + /// Returns a new [ApplicationJsonhalRead] instance. + ApplicationJsonhalRead({ this.links, this.about, this.agreement, this.configuration, this.contactPoints, - this.createdAt, - this.id, required this.name, required this.token, - this.type, - this.updatedAt, required this.version, + this.id, + this.createdAt, + this.updatedAt, + this.type, }); - /// Returns a new [Application] instance and imports its values from + /// Returns a new [ApplicationJsonhalRead] instance and imports its values from /// [json] if it's non-null, null if [json] is null. - static Application? fromJson(Object? json) { + static ApplicationJsonhalRead? fromJson(Object? json) { if (json is! Map) { return null; } - return Application( - links: ApplicationLinks.fromJson(json[r'_links']), - about: ApplicationAbout.fromJson(json[r'about']), - agreement: ApplicationAgreement.fromJson(json[r'agreement']), - configuration: ApplicationConfiguration.fromJson(json[r'configuration']), - contactPoints: - ApplicationContactPoint.listFromJson(json[r'contactPoints']), - createdAt: mapToDateTime(json[r'createdAt']), - id: json[r'id'], + return ApplicationJsonhalRead( + links: ApplicationJsonhalReadLinks.fromJson(json[r'_links']), + about: AboutJsonhalRead.fromJson(json[r'about']), + agreement: AgreementJsonhalRead.fromJson(json[r'agreement']), + configuration: ConfigurationJsonhalRead.fromJson(json[r'configuration']), + contactPoints: ContactPointJsonhalApplicationRead.listFromJson( + json[r'contactPoints']), name: json[r'name'], token: json[r'token'], - type: json[r'type'], - updatedAt: mapToDateTime(json[r'updatedAt']), version: json[r'version'], + id: json[r'id'], + createdAt: mapToDateTime(json[r'createdAt']), + updatedAt: mapToDateTime(json[r'updatedAt']), + type: json[r'type'], ); } - ApplicationLinks? links; - - ApplicationAbout? about; + ApplicationJsonhalReadLinks? links; - ApplicationAgreement? agreement; + AboutJsonhalRead? about; - ApplicationConfiguration? configuration; + AgreementJsonhalRead? agreement; - List? contactPoints; + ConfigurationJsonhalRead? configuration; - final DateTime? createdAt; - - final String? id; + List? contactPoints; String name; + /// The token of the Application, which is used in request application header, to define the context of the current application. String token; - String? type; + String version; + + /// The resource identifier. + final String? id; + /// The date and time when the resource was created, in UTC format. + final DateTime? createdAt; + + /// The date and time when the resource was updated, in UTC format. final DateTime? updatedAt; - String version; + final String? type; @override bool operator ==(Object other) { @@ -76,20 +80,20 @@ class Application { return true; } - return other is Application && + return other is ApplicationJsonhalRead && other.links == links && other.about == about && other.agreement == agreement && other.configuration == configuration && DeepCollectionEquality.unordered() .equals(contactPoints, other.contactPoints) && - other.createdAt == createdAt && - other.id == id && other.name == name && other.token == token && - other.type == type && + other.version == version && + other.id == id && + other.createdAt == createdAt && other.updatedAt == updatedAt && - other.version == version; + other.type == type; } @override @@ -99,23 +103,24 @@ class Application { (agreement == null ? 0 : agreement.hashCode) + (configuration == null ? 0 : configuration.hashCode) + (contactPoints == null ? 0 : contactPoints.hashCode) + - (createdAt == null ? 0 : createdAt.hashCode) + - (id == null ? 0 : id.hashCode) + name.hashCode + token.hashCode + - (type == null ? 0 : type.hashCode) + + version.hashCode + + (id == null ? 0 : id.hashCode) + + (createdAt == null ? 0 : createdAt.hashCode) + (updatedAt == null ? 0 : updatedAt.hashCode) + - version.hashCode; + (type == null ? 0 : type.hashCode); - static List listFromJson(Iterable? json) { + static List listFromJson(Iterable? json) { if (json == null) { - return []; + return []; } - return json.fold([], - (List previousValue, element) { - final Application? object = Application.fromJson(element); - if (object is Application) { + return json.fold([], + (List previousValue, element) { + final ApplicationJsonhalRead? object = + ApplicationJsonhalRead.fromJson(element); + if (object is ApplicationJsonhalRead) { previousValue.add(object); } @@ -123,15 +128,17 @@ class Application { }); } - static Map mapFromJson(Map? json) { + static Map mapFromJson( + Map? json) { if (json == null) { - return {}; + return {}; } - return json.entries.fold({}, - (Map previousValue, element) { - final Application? object = Application.fromJson(element.value); - if (object is Application) { + return json.entries.fold({}, + (Map previousValue, element) { + final ApplicationJsonhalRead? object = + ApplicationJsonhalRead.fromJson(element.value); + if (object is ApplicationJsonhalRead) { previousValue[element.key] = object; } @@ -139,22 +146,22 @@ class Application { }); } - // maps a json object with a list of Application-objects as value to a dart map - static Map> mapListFromJson( + // maps a json object with a list of ApplicationJsonhalRead-objects as value to a dart map + static Map> mapListFromJson( Map? json) { if (json == null) { - return >{}; + return >{}; } return json.map((key, value) { - return MapEntry>( - key, Application.listFromJson(value)); + return MapEntry>( + key, ApplicationJsonhalRead.listFromJson(value)); }); } @override String toString() => - 'Application[links=$links, about=$about, agreement=$agreement, configuration=$configuration, contactPoints=$contactPoints, createdAt=$createdAt, id=$id, name=$name, token=$token, type=$type, updatedAt=$updatedAt, version=$version]'; + 'ApplicationJsonhalRead[links=$links, about=$about, agreement=$agreement, configuration=$configuration, contactPoints=$contactPoints, name=$name, token=$token, version=$version, id=$id, createdAt=$createdAt, updatedAt=$updatedAt, type=$type]'; Map toJson([Iterable? keys]) { return { @@ -198,15 +205,15 @@ class Application { })), if (keys == null || keys.contains(r'contactPoints')) r'contactPoints': contactPoints, - if (keys == null || keys.contains(r'createdAt')) - r'createdAt': createdAt?.toUtc().toIso8601String(), - if (keys == null || keys.contains(r'id')) r'id': id, r'name': name, r'token': token, - if (keys == null || keys.contains(r'type')) r'type': type, + r'version': version, + if (keys == null || keys.contains(r'id')) r'id': id, + if (keys == null || keys.contains(r'createdAt')) + r'createdAt': createdAt?.toUtc().toIso8601String(), if (keys == null || keys.contains(r'updatedAt')) r'updatedAt': updatedAt?.toUtc().toIso8601String(), - r'version': version, + if (keys == null || keys.contains(r'type')) r'type': type, }; } } diff --git a/dart-v3/lib/model/application_jsonhal_read_links.dart b/dart-v3/lib/model/application_jsonhal_read_links.dart new file mode 100644 index 000000000..a407509e2 --- /dev/null +++ b/dart-v3/lib/model/application_jsonhal_read_links.dart @@ -0,0 +1,124 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +part of keyclic_sdk_api_platform; + +class ApplicationJsonhalReadLinks { + /// Returns a new [ApplicationJsonhalReadLinks] instance. + ApplicationJsonhalReadLinks({ + this.self, + this.knowledgeBase, + }); + + /// Returns a new [ApplicationJsonhalReadLinks] instance and imports its values from + /// [json] if it's non-null, null if [json] is null. + static ApplicationJsonhalReadLinks? fromJson(Object? json) { + if (json is! Map) { + return null; + } + + return ApplicationJsonhalReadLinks( + self: GetPlaceCollection200ResponseLinksSelf.fromJson(json[r'self']), + knowledgeBase: GetPlaceCollection200ResponseLinksFirst.fromJson( + json[r'knowledgeBase']), + ); + } + + GetPlaceCollection200ResponseLinksSelf? self; + + GetPlaceCollection200ResponseLinksFirst? knowledgeBase; + + @override + bool operator ==(Object other) { + // Same reference + if (identical(this, other)) { + return true; + } + + return other is ApplicationJsonhalReadLinks && + other.self == self && + other.knowledgeBase == knowledgeBase; + } + + @override + int get hashCode => + (self == null ? 0 : self.hashCode) + + (knowledgeBase == null ? 0 : knowledgeBase.hashCode); + + static List listFromJson(Iterable? json) { + if (json == null) { + return []; + } + + return json.fold([], + (List previousValue, element) { + final ApplicationJsonhalReadLinks? object = + ApplicationJsonhalReadLinks.fromJson(element); + if (object is ApplicationJsonhalReadLinks) { + previousValue.add(object); + } + + return previousValue; + }); + } + + static Map mapFromJson( + Map? json) { + if (json == null) { + return {}; + } + + return json.entries.fold({}, + (Map previousValue, element) { + final ApplicationJsonhalReadLinks? object = + ApplicationJsonhalReadLinks.fromJson(element.value); + if (object is ApplicationJsonhalReadLinks) { + previousValue[element.key] = object; + } + + return previousValue; + }); + } + + // maps a json object with a list of ApplicationJsonhalReadLinks-objects as value to a dart map + static Map> mapListFromJson( + Map? json) { + if (json == null) { + return >{}; + } + + return json.map((key, value) { + return MapEntry>( + key, ApplicationJsonhalReadLinks.listFromJson(value)); + }); + } + + @override + String toString() => + 'ApplicationJsonhalReadLinks[self=$self, knowledgeBase=$knowledgeBase]'; + + Map toJson([Iterable? keys]) { + return { + if (keys == null || keys.any((key) => RegExp(r'^self\.').hasMatch(key))) + r'self': self?.toJson(keys?.fold>([], + (List previousValue, String element) { + if (element.contains(RegExp(r'^self\.'))) { + previousValue.add(element.split(RegExp(r'^self\.')).last); + } + + return previousValue; + })), + if (keys == null || + keys.any((key) => RegExp(r'^knowledgeBase\.').hasMatch(key))) + r'knowledgeBase': knowledgeBase?.toJson(keys?.fold>( + [], (List previousValue, String element) { + if (element.contains(RegExp(r'^knowledgeBase\.'))) { + previousValue.add(element.split(RegExp(r'^knowledgeBase\.')).last); + } + + return previousValue; + })), + }; + } +} diff --git a/dart-v3/lib/model/configuration_jsonhal_read.dart b/dart-v3/lib/model/configuration_jsonhal_read.dart new file mode 100644 index 000000000..bcca04c97 --- /dev/null +++ b/dart-v3/lib/model/configuration_jsonhal_read.dart @@ -0,0 +1,96 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +part of keyclic_sdk_api_platform; + +class ConfigurationJsonhalRead { + /// Returns a new [ConfigurationJsonhalRead] instance. + ConfigurationJsonhalRead({ + this.public, + }); + + /// Returns a new [ConfigurationJsonhalRead] instance and imports its values from + /// [json] if it's non-null, null if [json] is null. + static ConfigurationJsonhalRead? fromJson(Object? json) { + if (json is! Map) { + return null; + } + + return ConfigurationJsonhalRead( + public: json[r'public'], + ); + } + + bool? public; + + @override + bool operator ==(Object other) { + // Same reference + if (identical(this, other)) { + return true; + } + + return other is ConfigurationJsonhalRead && other.public == public; + } + + @override + int get hashCode => (public == null ? 0 : public.hashCode); + + static List listFromJson(Iterable? json) { + if (json == null) { + return []; + } + + return json.fold([], + (List previousValue, element) { + final ConfigurationJsonhalRead? object = + ConfigurationJsonhalRead.fromJson(element); + if (object is ConfigurationJsonhalRead) { + previousValue.add(object); + } + + return previousValue; + }); + } + + static Map mapFromJson( + Map? json) { + if (json == null) { + return {}; + } + + return json.entries.fold({}, + (Map previousValue, element) { + final ConfigurationJsonhalRead? object = + ConfigurationJsonhalRead.fromJson(element.value); + if (object is ConfigurationJsonhalRead) { + previousValue[element.key] = object; + } + + return previousValue; + }); + } + + // maps a json object with a list of ConfigurationJsonhalRead-objects as value to a dart map + static Map> mapListFromJson( + Map? json) { + if (json == null) { + return >{}; + } + + return json.map((key, value) { + return MapEntry>( + key, ConfigurationJsonhalRead.listFromJson(value)); + }); + } + + @override + String toString() => 'ConfigurationJsonhalRead[public=$public]'; + + Map toJson([Iterable? keys]) { + return { + if (keys == null || keys.contains(r'public')) r'public': public, + }; + } +} diff --git a/dart-v3/lib/model/contact_point_jsonhal_application_read.dart b/dart-v3/lib/model/contact_point_jsonhal_application_read.dart new file mode 100644 index 000000000..435ae76a4 --- /dev/null +++ b/dart-v3/lib/model/contact_point_jsonhal_application_read.dart @@ -0,0 +1,129 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +part of keyclic_sdk_api_platform; + +class ContactPointJsonhalApplicationRead { + /// Returns a new [ContactPointJsonhalApplicationRead] instance. + ContactPointJsonhalApplicationRead({ + this.id, + this.email, + this.telephone, + this.name, + this.type, + }); + + /// Returns a new [ContactPointJsonhalApplicationRead] instance and imports its values from + /// [json] if it's non-null, null if [json] is null. + static ContactPointJsonhalApplicationRead? fromJson(Object? json) { + if (json is! Map) { + return null; + } + + return ContactPointJsonhalApplicationRead( + id: json[r'id'], + email: json[r'email'], + telephone: json[r'telephone'], + name: json[r'name'], + type: json[r'type'], + ); + } + + /// The resource identifier. + final String? id; + + String? email; + + String? telephone; + + String? name; + + final String? type; + + @override + bool operator ==(Object other) { + // Same reference + if (identical(this, other)) { + return true; + } + + return other is ContactPointJsonhalApplicationRead && + other.id == id && + other.email == email && + other.telephone == telephone && + other.name == name && + other.type == type; + } + + @override + int get hashCode => + (id == null ? 0 : id.hashCode) + + (email == null ? 0 : email.hashCode) + + (telephone == null ? 0 : telephone.hashCode) + + (name == null ? 0 : name.hashCode) + + (type == null ? 0 : type.hashCode); + + static List listFromJson(Iterable? json) { + if (json == null) { + return []; + } + + return json.fold([], + (List previousValue, element) { + final ContactPointJsonhalApplicationRead? object = + ContactPointJsonhalApplicationRead.fromJson(element); + if (object is ContactPointJsonhalApplicationRead) { + previousValue.add(object); + } + + return previousValue; + }); + } + + static Map mapFromJson( + Map? json) { + if (json == null) { + return {}; + } + + return json.entries.fold({}, + (Map previousValue, + element) { + final ContactPointJsonhalApplicationRead? object = + ContactPointJsonhalApplicationRead.fromJson(element.value); + if (object is ContactPointJsonhalApplicationRead) { + previousValue[element.key] = object; + } + + return previousValue; + }); + } + + // maps a json object with a list of ContactPointJsonhalApplicationRead-objects as value to a dart map + static Map> mapListFromJson( + Map? json) { + if (json == null) { + return >{}; + } + + return json.map((key, value) { + return MapEntry>( + key, ContactPointJsonhalApplicationRead.listFromJson(value)); + }); + } + + @override + String toString() => + 'ContactPointJsonhalApplicationRead[id=$id, email=$email, telephone=$telephone, name=$name, type=$type]'; + + Map toJson([Iterable? keys]) { + return { + if (keys == null || keys.contains(r'id')) r'id': id, + if (keys == null || keys.contains(r'email')) r'email': email, + if (keys == null || keys.contains(r'telephone')) r'telephone': telephone, + if (keys == null || keys.contains(r'name')) r'name': name, + if (keys == null || keys.contains(r'type')) r'type': type, + }; + } +} diff --git a/dart-v3/lib/model/older_than_jsonhal_read.dart b/dart-v3/lib/model/older_than_jsonhal_read.dart new file mode 100644 index 000000000..527cc45da --- /dev/null +++ b/dart-v3/lib/model/older_than_jsonhal_read.dart @@ -0,0 +1,96 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +part of keyclic_sdk_api_platform; + +class OlderThanJsonhalRead { + /// Returns a new [OlderThanJsonhalRead] instance. + OlderThanJsonhalRead({ + this.content, + }); + + /// Returns a new [OlderThanJsonhalRead] instance and imports its values from + /// [json] if it's non-null, null if [json] is null. + static OlderThanJsonhalRead? fromJson(Object? json) { + if (json is! Map) { + return null; + } + + return OlderThanJsonhalRead( + content: json[r'content'], + ); + } + + String? content; + + @override + bool operator ==(Object other) { + // Same reference + if (identical(this, other)) { + return true; + } + + return other is OlderThanJsonhalRead && other.content == content; + } + + @override + int get hashCode => (content == null ? 0 : content.hashCode); + + static List listFromJson(Iterable? json) { + if (json == null) { + return []; + } + + return json.fold([], + (List previousValue, element) { + final OlderThanJsonhalRead? object = + OlderThanJsonhalRead.fromJson(element); + if (object is OlderThanJsonhalRead) { + previousValue.add(object); + } + + return previousValue; + }); + } + + static Map mapFromJson( + Map? json) { + if (json == null) { + return {}; + } + + return json.entries.fold({}, + (Map previousValue, element) { + final OlderThanJsonhalRead? object = + OlderThanJsonhalRead.fromJson(element.value); + if (object is OlderThanJsonhalRead) { + previousValue[element.key] = object; + } + + return previousValue; + }); + } + + // maps a json object with a list of OlderThanJsonhalRead-objects as value to a dart map + static Map> mapListFromJson( + Map? json) { + if (json == null) { + return >{}; + } + + return json.map((key, value) { + return MapEntry>( + key, OlderThanJsonhalRead.listFromJson(value)); + }); + } + + @override + String toString() => 'OlderThanJsonhalRead[content=$content]'; + + Map toJson([Iterable? keys]) { + return { + if (keys == null || keys.contains(r'content')) r'content': content, + }; + } +} diff --git a/dart-v3/lib/model/privacy_policy_jsonhal_read.dart b/dart-v3/lib/model/privacy_policy_jsonhal_read.dart new file mode 100644 index 000000000..b6eba7c0c --- /dev/null +++ b/dart-v3/lib/model/privacy_policy_jsonhal_read.dart @@ -0,0 +1,96 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +part of keyclic_sdk_api_platform; + +class PrivacyPolicyJsonhalRead { + /// Returns a new [PrivacyPolicyJsonhalRead] instance. + PrivacyPolicyJsonhalRead({ + this.content, + }); + + /// Returns a new [PrivacyPolicyJsonhalRead] instance and imports its values from + /// [json] if it's non-null, null if [json] is null. + static PrivacyPolicyJsonhalRead? fromJson(Object? json) { + if (json is! Map) { + return null; + } + + return PrivacyPolicyJsonhalRead( + content: json[r'content'], + ); + } + + String? content; + + @override + bool operator ==(Object other) { + // Same reference + if (identical(this, other)) { + return true; + } + + return other is PrivacyPolicyJsonhalRead && other.content == content; + } + + @override + int get hashCode => (content == null ? 0 : content.hashCode); + + static List listFromJson(Iterable? json) { + if (json == null) { + return []; + } + + return json.fold([], + (List previousValue, element) { + final PrivacyPolicyJsonhalRead? object = + PrivacyPolicyJsonhalRead.fromJson(element); + if (object is PrivacyPolicyJsonhalRead) { + previousValue.add(object); + } + + return previousValue; + }); + } + + static Map mapFromJson( + Map? json) { + if (json == null) { + return {}; + } + + return json.entries.fold({}, + (Map previousValue, element) { + final PrivacyPolicyJsonhalRead? object = + PrivacyPolicyJsonhalRead.fromJson(element.value); + if (object is PrivacyPolicyJsonhalRead) { + previousValue[element.key] = object; + } + + return previousValue; + }); + } + + // maps a json object with a list of PrivacyPolicyJsonhalRead-objects as value to a dart map + static Map> mapListFromJson( + Map? json) { + if (json == null) { + return >{}; + } + + return json.map((key, value) { + return MapEntry>( + key, PrivacyPolicyJsonhalRead.listFromJson(value)); + }); + } + + @override + String toString() => 'PrivacyPolicyJsonhalRead[content=$content]'; + + Map toJson([Iterable? keys]) { + return { + if (keys == null || keys.contains(r'content')) r'content': content, + }; + } +} diff --git a/dart-v3/lib/model/terms_of_service_jsonhal_read.dart b/dart-v3/lib/model/terms_of_service_jsonhal_read.dart new file mode 100644 index 000000000..6b7d3fad2 --- /dev/null +++ b/dart-v3/lib/model/terms_of_service_jsonhal_read.dart @@ -0,0 +1,96 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +part of keyclic_sdk_api_platform; + +class TermsOfServiceJsonhalRead { + /// Returns a new [TermsOfServiceJsonhalRead] instance. + TermsOfServiceJsonhalRead({ + this.content, + }); + + /// Returns a new [TermsOfServiceJsonhalRead] instance and imports its values from + /// [json] if it's non-null, null if [json] is null. + static TermsOfServiceJsonhalRead? fromJson(Object? json) { + if (json is! Map) { + return null; + } + + return TermsOfServiceJsonhalRead( + content: json[r'content'], + ); + } + + String? content; + + @override + bool operator ==(Object other) { + // Same reference + if (identical(this, other)) { + return true; + } + + return other is TermsOfServiceJsonhalRead && other.content == content; + } + + @override + int get hashCode => (content == null ? 0 : content.hashCode); + + static List listFromJson(Iterable? json) { + if (json == null) { + return []; + } + + return json.fold([], + (List previousValue, element) { + final TermsOfServiceJsonhalRead? object = + TermsOfServiceJsonhalRead.fromJson(element); + if (object is TermsOfServiceJsonhalRead) { + previousValue.add(object); + } + + return previousValue; + }); + } + + static Map mapFromJson( + Map? json) { + if (json == null) { + return {}; + } + + return json.entries.fold({}, + (Map previousValue, element) { + final TermsOfServiceJsonhalRead? object = + TermsOfServiceJsonhalRead.fromJson(element.value); + if (object is TermsOfServiceJsonhalRead) { + previousValue[element.key] = object; + } + + return previousValue; + }); + } + + // maps a json object with a list of TermsOfServiceJsonhalRead-objects as value to a dart map + static Map> mapListFromJson( + Map? json) { + if (json == null) { + return >{}; + } + + return json.map((key, value) { + return MapEntry>( + key, TermsOfServiceJsonhalRead.listFromJson(value)); + }); + } + + @override + String toString() => 'TermsOfServiceJsonhalRead[content=$content]'; + + Map toJson([Iterable? keys]) { + return { + if (keys == null || keys.contains(r'content')) r'content': content, + }; + } +} diff --git a/dart/test/application_about_test.dart b/dart-v3/test/about_jsonhal_read_test.dart similarity index 60% rename from dart/test/application_about_test.dart rename to dart-v3/test/about_jsonhal_read_test.dart index a7b043205..d486e53d2 100644 --- a/dart/test/application_about_test.dart +++ b/dart-v3/test/about_jsonhal_read_test.dart @@ -2,14 +2,14 @@ // AUTO-GENERATED FILE, DO NOT MODIFY! // -// import 'package:keyclic_sdk_api/api.dart'; +// import 'package:keyclic_sdk_api_platform/api.dart'; import 'package:test/test.dart'; -// tests for ApplicationAbout +// tests for AboutJsonhalRead void main() { - // final instance = ApplicationAbout(); + // final instance = AboutJsonhalRead(); - group('test ApplicationAbout', () { + group('test AboutJsonhalRead', () { // String name test('to test the property `name`', () async {}); diff --git a/dart-v3/test/agreement_jsonhal_read_test.dart b/dart-v3/test/agreement_jsonhal_read_test.dart new file mode 100644 index 000000000..4a47f3094 --- /dev/null +++ b/dart-v3/test/agreement_jsonhal_read_test.dart @@ -0,0 +1,22 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// import 'package:keyclic_sdk_api_platform/api.dart'; +import 'package:test/test.dart'; + +// tests for AgreementJsonhalRead +void main() { + // final instance = AgreementJsonhalRead(); + + group('test AgreementJsonhalRead', () { + // OlderThanJsonhalRead olderThan + test('to test the property `olderThan`', () async {}); + + // PrivacyPolicyJsonhalRead privacyPolicy + test('to test the property `privacyPolicy`', () async {}); + + // TermsOfServiceJsonhalRead termsOfService + test('to test the property `termsOfService`', () async {}); + }); +} diff --git a/dart-v3/test/application_api_test.dart b/dart-v3/test/application_api_test.dart new file mode 100644 index 000000000..d6ccfd5c4 --- /dev/null +++ b/dart-v3/test/application_api_test.dart @@ -0,0 +1,20 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// import 'package:keyclic_sdk_api_platform/api.dart'; +import 'package:test/test.dart'; + +/// tests for ApplicationApi +void main() { + // final instance = ApplicationApi(); + + group('tests for ApplicationApi', () { + // Retrieves a Application resource. + // + // Retrieves a Application resource. + // + //Future getApplication(String identifier, String xKeyclicApp, { String acceptLanguage, DateTime xDateTime, String xKeyclicAppPlatform, String xKeyclicAppVersion }) async + test('test getApplication', () async {}); + }); +} diff --git a/dart-v3/test/application_jsonhal_read_links_test.dart b/dart-v3/test/application_jsonhal_read_links_test.dart new file mode 100644 index 000000000..9381711f2 --- /dev/null +++ b/dart-v3/test/application_jsonhal_read_links_test.dart @@ -0,0 +1,19 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// import 'package:keyclic_sdk_api_platform/api.dart'; +import 'package:test/test.dart'; + +// tests for ApplicationJsonhalReadLinks +void main() { + // final instance = ApplicationJsonhalReadLinks(); + + group('test ApplicationJsonhalReadLinks', () { + // GetPlaceCollection200ResponseLinksSelf self + test('to test the property `self`', () async {}); + + // GetPlaceCollection200ResponseLinksFirst knowledgeBase + test('to test the property `knowledgeBase`', () async {}); + }); +} diff --git a/dart/test/application_test.dart b/dart-v3/test/application_jsonhal_read_test.dart similarity index 56% rename from dart/test/application_test.dart rename to dart-v3/test/application_jsonhal_read_test.dart index be4b65bfd..689eb6a1f 100644 --- a/dart/test/application_test.dart +++ b/dart-v3/test/application_jsonhal_read_test.dart @@ -2,48 +2,52 @@ // AUTO-GENERATED FILE, DO NOT MODIFY! // -// import 'package:keyclic_sdk_api/api.dart'; +// import 'package:keyclic_sdk_api_platform/api.dart'; import 'package:test/test.dart'; -// tests for Application +// tests for ApplicationJsonhalRead void main() { - // final instance = Application(); + // final instance = ApplicationJsonhalRead(); - group('test Application', () { - // ApplicationLinks links + group('test ApplicationJsonhalRead', () { + // ApplicationJsonhalReadLinks links test('to test the property `links`', () async {}); - // ApplicationAbout about + // AboutJsonhalRead about test('to test the property `about`', () async {}); - // ApplicationAgreement agreement + // AgreementJsonhalRead agreement test('to test the property `agreement`', () async {}); - // ApplicationConfiguration configuration + // ConfigurationJsonhalRead configuration test('to test the property `configuration`', () async {}); - // List contactPoints (default value: const []) + // List contactPoints (default value: const []) test('to test the property `contactPoints`', () async {}); - // DateTime createdAt - test('to test the property `createdAt`', () async {}); - - // String id - test('to test the property `id`', () async {}); - // String name test('to test the property `name`', () async {}); + // The token of the Application, which is used in request application header, to define the context of the current application. // String token test('to test the property `token`', () async {}); - // String type - test('to test the property `type`', () async {}); + // String version + test('to test the property `version`', () async {}); + // The resource identifier. + // String id + test('to test the property `id`', () async {}); + + // The date and time when the resource was created, in UTC format. + // DateTime createdAt + test('to test the property `createdAt`', () async {}); + + // The date and time when the resource was updated, in UTC format. // DateTime updatedAt test('to test the property `updatedAt`', () async {}); - // String version - test('to test the property `version`', () async {}); + // String type + test('to test the property `type`', () async {}); }); } diff --git a/dart-v3/test/configuration_jsonhal_read_test.dart b/dart-v3/test/configuration_jsonhal_read_test.dart new file mode 100644 index 000000000..c68557aeb --- /dev/null +++ b/dart-v3/test/configuration_jsonhal_read_test.dart @@ -0,0 +1,16 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// import 'package:keyclic_sdk_api_platform/api.dart'; +import 'package:test/test.dart'; + +// tests for ConfigurationJsonhalRead +void main() { + // final instance = ConfigurationJsonhalRead(); + + group('test ConfigurationJsonhalRead', () { + // bool public (default value: true) + test('to test the property `public`', () async {}); + }); +} diff --git a/dart/test/application_contact_point_test.dart b/dart-v3/test/contact_point_jsonhal_application_read_test.dart similarity index 65% rename from dart/test/application_contact_point_test.dart rename to dart-v3/test/contact_point_jsonhal_application_read_test.dart index 6efd016a5..2989fb622 100644 --- a/dart/test/application_contact_point_test.dart +++ b/dart-v3/test/contact_point_jsonhal_application_read_test.dart @@ -2,26 +2,27 @@ // AUTO-GENERATED FILE, DO NOT MODIFY! // -// import 'package:keyclic_sdk_api/api.dart'; +// import 'package:keyclic_sdk_api_platform/api.dart'; import 'package:test/test.dart'; -// tests for ApplicationContactPoint +// tests for ContactPointJsonhalApplicationRead void main() { - // final instance = ApplicationContactPoint(); - - group('test ApplicationContactPoint', () { - // String email - test('to test the property `email`', () async {}); + // final instance = ContactPointJsonhalApplicationRead(); + group('test ContactPointJsonhalApplicationRead', () { + // The resource identifier. // String id test('to test the property `id`', () async {}); - // String name - test('to test the property `name`', () async {}); + // String email + test('to test the property `email`', () async {}); // String telephone test('to test the property `telephone`', () async {}); + // String name + test('to test the property `name`', () async {}); + // String type test('to test the property `type`', () async {}); }); diff --git a/dart/test/agreement_privacy_policy_test.dart b/dart-v3/test/older_than_jsonhal_read_test.dart similarity index 50% rename from dart/test/agreement_privacy_policy_test.dart rename to dart-v3/test/older_than_jsonhal_read_test.dart index 74d7dbc47..d07e8dded 100644 --- a/dart/test/agreement_privacy_policy_test.dart +++ b/dart-v3/test/older_than_jsonhal_read_test.dart @@ -2,14 +2,14 @@ // AUTO-GENERATED FILE, DO NOT MODIFY! // -// import 'package:keyclic_sdk_api/api.dart'; +// import 'package:keyclic_sdk_api_platform/api.dart'; import 'package:test/test.dart'; -// tests for AgreementPrivacyPolicy +// tests for OlderThanJsonhalRead void main() { - // final instance = AgreementPrivacyPolicy(); + // final instance = OlderThanJsonhalRead(); - group('test AgreementPrivacyPolicy', () { + group('test OlderThanJsonhalRead', () { // String content test('to test the property `content`', () async {}); }); diff --git a/dart-v3/test/privacy_policy_jsonhal_read_test.dart b/dart-v3/test/privacy_policy_jsonhal_read_test.dart new file mode 100644 index 000000000..e1faa4f9e --- /dev/null +++ b/dart-v3/test/privacy_policy_jsonhal_read_test.dart @@ -0,0 +1,16 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// import 'package:keyclic_sdk_api_platform/api.dart'; +import 'package:test/test.dart'; + +// tests for PrivacyPolicyJsonhalRead +void main() { + // final instance = PrivacyPolicyJsonhalRead(); + + group('test PrivacyPolicyJsonhalRead', () { + // String content + test('to test the property `content`', () async {}); + }); +} diff --git a/dart-v3/test/terms_of_service_jsonhal_read_test.dart b/dart-v3/test/terms_of_service_jsonhal_read_test.dart new file mode 100644 index 000000000..d944ac613 --- /dev/null +++ b/dart-v3/test/terms_of_service_jsonhal_read_test.dart @@ -0,0 +1,16 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// import 'package:keyclic_sdk_api_platform/api.dart'; +import 'package:test/test.dart'; + +// tests for TermsOfServiceJsonhalRead +void main() { + // final instance = TermsOfServiceJsonhalRead(); + + group('test TermsOfServiceJsonhalRead', () { + // String content + test('to test the property `content`', () async {}); + }); +} diff --git a/dart/.openapi-generator/FILES b/dart/.openapi-generator/FILES index 086b57dd5..1a6f4374a 100644 --- a/dart/.openapi-generator/FILES +++ b/dart/.openapi-generator/FILES @@ -7,22 +7,6 @@ doc/ActivityAggregatedPagination.md doc/ActivityEntity.md doc/ActivityGroup.md doc/ActivityPagination.md -doc/AgreementOlderThan.md -doc/AgreementPrivacyPolicy.md -doc/AgreementTermsOfService.md -doc/Application.md -doc/ApplicationAbout.md -doc/ApplicationAgreement.md -doc/ApplicationApi.md -doc/ApplicationConfiguration.md -doc/ApplicationContactPoint.md -doc/ApplicationLinks.md -doc/ApplicationLinksKnowledgeBase.md -doc/ApplicationLinksKnowledgeBaseIriTemplate.md -doc/ApplicationLinksKnowledgeBaseIriTemplateMapping.md -doc/ApplicationLinksSelf.md -doc/ApplicationLinksSelfIriTemplate.md -doc/ApplicationLinksSelfIriTemplateMapping.md doc/Article.md doc/ArticleApi.md doc/ArticleCollection.md @@ -264,6 +248,7 @@ doc/KnowledgeBaseApi.md doc/KnowledgeBaseLinks.md doc/KnowledgeBaseLinksSelf.md doc/KnowledgeBaseLinksSelfIriTemplate.md +doc/KnowledgeBaseLinksSelfIriTemplateMapping.md doc/LoginData.md doc/Marker.md doc/MarkerApi.md @@ -353,8 +338,6 @@ doc/Organization.md doc/OrganizationApi.md doc/OrganizationCollection.md doc/OrganizationLinks.md -doc/OrganizationLinksApplication.md -doc/OrganizationLinksApplicationIriTemplate.md doc/OrganizationLinksBusinessActivity.md doc/OrganizationLinksBusinessActivityIriTemplate.md doc/OrganizationLinksConfiguration.md @@ -588,7 +571,6 @@ doc/WorkflowState.md doc/WorkflowTransition.md git_push.sh lib/api.dart -lib/api/application_api.dart lib/api/article_api.dart lib/api/assignment_api.dart lib/api/bookmark_api.dart @@ -642,21 +624,6 @@ lib/model/activity_aggregated_pagination.dart lib/model/activity_entity.dart lib/model/activity_group.dart lib/model/activity_pagination.dart -lib/model/agreement_older_than.dart -lib/model/agreement_privacy_policy.dart -lib/model/agreement_terms_of_service.dart -lib/model/application.dart -lib/model/application_about.dart -lib/model/application_agreement.dart -lib/model/application_configuration.dart -lib/model/application_contact_point.dart -lib/model/application_links.dart -lib/model/application_links_knowledge_base.dart -lib/model/application_links_knowledge_base_iri_template.dart -lib/model/application_links_knowledge_base_iri_template_mapping.dart -lib/model/application_links_self.dart -lib/model/application_links_self_iri_template.dart -lib/model/application_links_self_iri_template_mapping.dart lib/model/article.dart lib/model/article_collection.dart lib/model/article_links.dart @@ -879,6 +846,7 @@ lib/model/knowledge_base.dart lib/model/knowledge_base_links.dart lib/model/knowledge_base_links_self.dart lib/model/knowledge_base_links_self_iri_template.dart +lib/model/knowledge_base_links_self_iri_template_mapping.dart lib/model/login_data.dart lib/model/marker.dart lib/model/marker_data.dart @@ -962,8 +930,6 @@ lib/model/operation_type_workflow.dart lib/model/organization.dart lib/model/organization_collection.dart lib/model/organization_links.dart -lib/model/organization_links_application.dart -lib/model/organization_links_application_iri_template.dart lib/model/organization_links_business_activity.dart lib/model/organization_links_business_activity_iri_template.dart lib/model/organization_links_configuration.dart @@ -1186,22 +1152,6 @@ test/activity_entity_test.dart test/activity_group_test.dart test/activity_pagination_test.dart test/activity_test.dart -test/agreement_older_than_test.dart -test/agreement_privacy_policy_test.dart -test/agreement_terms_of_service_test.dart -test/application_about_test.dart -test/application_agreement_test.dart -test/application_api_test.dart -test/application_configuration_test.dart -test/application_contact_point_test.dart -test/application_links_knowledge_base_iri_template_mapping_test.dart -test/application_links_knowledge_base_iri_template_test.dart -test/application_links_knowledge_base_test.dart -test/application_links_self_iri_template_mapping_test.dart -test/application_links_self_iri_template_test.dart -test/application_links_self_test.dart -test/application_links_test.dart -test/application_test.dart test/article_api_test.dart test/article_collection_test.dart test/article_links_section_iri_template_mapping_test.dart @@ -1439,6 +1389,7 @@ test/invitation_links_test.dart test/invitation_test.dart test/items_choice_test.dart test/knowledge_base_api_test.dart +test/knowledge_base_links_self_iri_template_mapping_test.dart test/knowledge_base_links_self_iri_template_test.dart test/knowledge_base_links_self_test.dart test/knowledge_base_links_test.dart @@ -1530,8 +1481,6 @@ test/operation_test.dart test/operation_type_workflow_test.dart test/organization_api_test.dart test/organization_collection_test.dart -test/organization_links_application_iri_template_test.dart -test/organization_links_application_test.dart test/organization_links_business_activity_iri_template_test.dart test/organization_links_business_activity_test.dart test/organization_links_configuration_iri_template_test.dart diff --git a/dart/README.md b/dart/README.md index 28211c5fd..93d90528e 100644 --- a/dart/README.md +++ b/dart/README.md @@ -40,20 +40,24 @@ Please follow the [installation procedure](#installation--usage) and then run th ```dart import 'package:keyclic_sdk_api/api.dart'; +// TODO Configure API key authorization: bearer +//defaultApiClient.getAuthentication('bearer').apiKey = 'YOUR_API_KEY'; +// uncomment below to setup prefix (e.g. Bearer) for API key, if needed +//defaultApiClient.getAuthentication('bearer').apiKeyPrefix = 'Bearer'; -final api_instance = ApplicationApi(); +final api_instance = ArticleApi(); final xKeyclicApp = xKeyclicApp_example; // String | -final application = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | The identifier of the resource. +final article = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | The identifier of the resource. final acceptLanguage = acceptLanguage_example; // String | final xDateTime = 2013-10-20T19:20:30+01:00; // DateTime | final xKeyclicAppPlatform = xKeyclicAppPlatform_example; // String | final xKeyclicAppVersion = xKeyclicAppVersion_example; // String | try { - final result = api_instance.getApplication(xKeyclicApp, application, acceptLanguage, xDateTime, xKeyclicAppPlatform, xKeyclicAppVersion); + final result = api_instance.getArticle(xKeyclicApp, article, acceptLanguage, xDateTime, xKeyclicAppPlatform, xKeyclicAppVersion); print(result); } catch (e) { - print('Exception when calling ApplicationApi->getApplication: $e\n'); + print('Exception when calling ArticleApi->getArticle: $e\n'); } ``` @@ -64,7 +68,6 @@ All URIs are relative to *https://api.keyclic.com* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- -*ApplicationApi* | [**getApplication**](doc//ApplicationApi.md#getapplication) | **GET** /applications/{application} | Retrieve one Application resource. *ArticleApi* | [**getArticle**](doc//ArticleApi.md#getarticle) | **GET** /articles/{article} | Retrieve one Article resource. *AssignmentApi* | [**getAssignment**](doc//AssignmentApi.md#getassignment) | **GET** /assignments/{assignment} | Retrieve one Assignment resource. *AssignmentApi* | [**postAssignment**](doc//AssignmentApi.md#postassignment) | **POST** /assignments | Create one Assignment resource. @@ -228,21 +231,6 @@ Class | Method | HTTP request | Description - [ActivityEntity](doc//ActivityEntity.md) - [ActivityGroup](doc//ActivityGroup.md) - [ActivityPagination](doc//ActivityPagination.md) - - [AgreementOlderThan](doc//AgreementOlderThan.md) - - [AgreementPrivacyPolicy](doc//AgreementPrivacyPolicy.md) - - [AgreementTermsOfService](doc//AgreementTermsOfService.md) - - [Application](doc//Application.md) - - [ApplicationAbout](doc//ApplicationAbout.md) - - [ApplicationAgreement](doc//ApplicationAgreement.md) - - [ApplicationConfiguration](doc//ApplicationConfiguration.md) - - [ApplicationContactPoint](doc//ApplicationContactPoint.md) - - [ApplicationLinks](doc//ApplicationLinks.md) - - [ApplicationLinksKnowledgeBase](doc//ApplicationLinksKnowledgeBase.md) - - [ApplicationLinksKnowledgeBaseIriTemplate](doc//ApplicationLinksKnowledgeBaseIriTemplate.md) - - [ApplicationLinksKnowledgeBaseIriTemplateMapping](doc//ApplicationLinksKnowledgeBaseIriTemplateMapping.md) - - [ApplicationLinksSelf](doc//ApplicationLinksSelf.md) - - [ApplicationLinksSelfIriTemplate](doc//ApplicationLinksSelfIriTemplate.md) - - [ApplicationLinksSelfIriTemplateMapping](doc//ApplicationLinksSelfIriTemplateMapping.md) - [Article](doc//Article.md) - [ArticleCollection](doc//ArticleCollection.md) - [ArticleLinks](doc//ArticleLinks.md) @@ -465,6 +453,7 @@ Class | Method | HTTP request | Description - [KnowledgeBaseLinks](doc//KnowledgeBaseLinks.md) - [KnowledgeBaseLinksSelf](doc//KnowledgeBaseLinksSelf.md) - [KnowledgeBaseLinksSelfIriTemplate](doc//KnowledgeBaseLinksSelfIriTemplate.md) + - [KnowledgeBaseLinksSelfIriTemplateMapping](doc//KnowledgeBaseLinksSelfIriTemplateMapping.md) - [LoginData](doc//LoginData.md) - [Marker](doc//Marker.md) - [MarkerData](doc//MarkerData.md) @@ -548,8 +537,6 @@ Class | Method | HTTP request | Description - [Organization](doc//Organization.md) - [OrganizationCollection](doc//OrganizationCollection.md) - [OrganizationLinks](doc//OrganizationLinks.md) - - [OrganizationLinksApplication](doc//OrganizationLinksApplication.md) - - [OrganizationLinksApplicationIriTemplate](doc//OrganizationLinksApplicationIriTemplate.md) - [OrganizationLinksBusinessActivity](doc//OrganizationLinksBusinessActivity.md) - [OrganizationLinksBusinessActivityIriTemplate](doc//OrganizationLinksBusinessActivityIriTemplate.md) - [OrganizationLinksConfiguration](doc//OrganizationLinksConfiguration.md) diff --git a/dart/doc/Application.md b/dart/doc/Application.md deleted file mode 100644 index 851ab674e..000000000 --- a/dart/doc/Application.md +++ /dev/null @@ -1,26 +0,0 @@ -# keyclic_sdk_api.model.Application - -## Load the model package -```dart -import 'package:keyclic_sdk_api/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**links** | [**ApplicationLinks**](ApplicationLinks.md) | | [optional] -**about** | [**ApplicationAbout**](ApplicationAbout.md) | | [optional] -**agreement** | [**ApplicationAgreement**](ApplicationAgreement.md) | | [optional] -**configuration** | [**ApplicationConfiguration**](ApplicationConfiguration.md) | | [optional] -**contactPoints** | [**List**](ApplicationContactPoint.md) | | [optional] [default to const []] -**createdAt** | [**DateTime**](DateTime.md) | | [optional] [readonly] -**id** | **String** | | [optional] [readonly] -**name** | **String** | | -**token** | **String** | | -**type** | **String** | | [optional] -**updatedAt** | [**DateTime**](DateTime.md) | | [optional] [readonly] -**version** | **String** | | - -[[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/dart/doc/ApplicationAgreement.md b/dart/doc/ApplicationAgreement.md deleted file mode 100644 index 75ab8c43c..000000000 --- a/dart/doc/ApplicationAgreement.md +++ /dev/null @@ -1,17 +0,0 @@ -# keyclic_sdk_api.model.ApplicationAgreement - -## Load the model package -```dart -import 'package:keyclic_sdk_api/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**olderThan** | [**AgreementOlderThan**](AgreementOlderThan.md) | | [optional] -**privacyPolicy** | [**AgreementPrivacyPolicy**](AgreementPrivacyPolicy.md) | | [optional] -**termsOfService** | [**AgreementTermsOfService**](AgreementTermsOfService.md) | | [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/dart/doc/ApplicationConfiguration.md b/dart/doc/ApplicationConfiguration.md deleted file mode 100644 index 5fc67155a..000000000 --- a/dart/doc/ApplicationConfiguration.md +++ /dev/null @@ -1,15 +0,0 @@ -# keyclic_sdk_api.model.ApplicationConfiguration - -## Load the model package -```dart -import 'package:keyclic_sdk_api/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**public** | **bool** | | [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/dart/doc/ApplicationLinks.md b/dart/doc/ApplicationLinks.md deleted file mode 100644 index 493d42cfe..000000000 --- a/dart/doc/ApplicationLinks.md +++ /dev/null @@ -1,16 +0,0 @@ -# keyclic_sdk_api.model.ApplicationLinks - -## Load the model package -```dart -import 'package:keyclic_sdk_api/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**knowledgeBase** | [**ApplicationLinksKnowledgeBase**](ApplicationLinksKnowledgeBase.md) | | [optional] -**self** | [**ApplicationLinksSelf**](ApplicationLinksSelf.md) | | [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/dart/doc/ApplicationLinksKnowledgeBase.md b/dart/doc/ApplicationLinksKnowledgeBase.md deleted file mode 100644 index 54605dc81..000000000 --- a/dart/doc/ApplicationLinksKnowledgeBase.md +++ /dev/null @@ -1,16 +0,0 @@ -# keyclic_sdk_api.model.ApplicationLinksKnowledgeBase - -## Load the model package -```dart -import 'package:keyclic_sdk_api/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**href** | **String** | The URI of the knowledgeBase associated to the given application. | [optional] -**iriTemplate** | [**ApplicationLinksKnowledgeBaseIriTemplate**](ApplicationLinksKnowledgeBaseIriTemplate.md) | | [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/dart/doc/ApplicationLinksKnowledgeBaseIriTemplate.md b/dart/doc/ApplicationLinksKnowledgeBaseIriTemplate.md deleted file mode 100644 index 25fbef4f5..000000000 --- a/dart/doc/ApplicationLinksKnowledgeBaseIriTemplate.md +++ /dev/null @@ -1,15 +0,0 @@ -# keyclic_sdk_api.model.ApplicationLinksKnowledgeBaseIriTemplate - -## Load the model package -```dart -import 'package:keyclic_sdk_api/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**mapping** | [**ApplicationLinksKnowledgeBaseIriTemplateMapping**](ApplicationLinksKnowledgeBaseIriTemplateMapping.md) | | [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/dart/doc/ApplicationLinksSelf.md b/dart/doc/ApplicationLinksSelf.md deleted file mode 100644 index ab9906bac..000000000 --- a/dart/doc/ApplicationLinksSelf.md +++ /dev/null @@ -1,16 +0,0 @@ -# keyclic_sdk_api.model.ApplicationLinksSelf - -## Load the model package -```dart -import 'package:keyclic_sdk_api/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**href** | **String** | The URI of the self associated to the given application. | [optional] -**iriTemplate** | [**ApplicationLinksSelfIriTemplate**](ApplicationLinksSelfIriTemplate.md) | | [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/dart/doc/ApplicationLinksSelfIriTemplate.md b/dart/doc/ApplicationLinksSelfIriTemplate.md deleted file mode 100644 index 12a3ce84a..000000000 --- a/dart/doc/ApplicationLinksSelfIriTemplate.md +++ /dev/null @@ -1,15 +0,0 @@ -# keyclic_sdk_api.model.ApplicationLinksSelfIriTemplate - -## Load the model package -```dart -import 'package:keyclic_sdk_api/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**mapping** | [**ApplicationLinksSelfIriTemplateMapping**](ApplicationLinksSelfIriTemplateMapping.md) | | [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/dart/doc/ApplicationLinksSelfIriTemplateMapping.md b/dart/doc/ApplicationLinksSelfIriTemplateMapping.md deleted file mode 100644 index 3edc3aa35..000000000 --- a/dart/doc/ApplicationLinksSelfIriTemplateMapping.md +++ /dev/null @@ -1,15 +0,0 @@ -# keyclic_sdk_api.model.ApplicationLinksSelfIriTemplateMapping - -## Load the model package -```dart -import 'package:keyclic_sdk_api/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**application** | **String** | | [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/dart/doc/KnowledgeBaseLinksSelfIriTemplate.md b/dart/doc/KnowledgeBaseLinksSelfIriTemplate.md index 66e26f39d..aa22b272e 100644 --- a/dart/doc/KnowledgeBaseLinksSelfIriTemplate.md +++ b/dart/doc/KnowledgeBaseLinksSelfIriTemplate.md @@ -8,7 +8,7 @@ import 'package:keyclic_sdk_api/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**mapping** | [**ApplicationLinksKnowledgeBaseIriTemplateMapping**](ApplicationLinksKnowledgeBaseIriTemplateMapping.md) | | [optional] +**mapping** | [**KnowledgeBaseLinksSelfIriTemplateMapping**](KnowledgeBaseLinksSelfIriTemplateMapping.md) | | [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/dart/doc/ApplicationLinksKnowledgeBaseIriTemplateMapping.md b/dart/doc/KnowledgeBaseLinksSelfIriTemplateMapping.md similarity index 84% rename from dart/doc/ApplicationLinksKnowledgeBaseIriTemplateMapping.md rename to dart/doc/KnowledgeBaseLinksSelfIriTemplateMapping.md index 06f13d2e8..27f778038 100644 --- a/dart/doc/ApplicationLinksKnowledgeBaseIriTemplateMapping.md +++ b/dart/doc/KnowledgeBaseLinksSelfIriTemplateMapping.md @@ -1,4 +1,4 @@ -# keyclic_sdk_api.model.ApplicationLinksKnowledgeBaseIriTemplateMapping +# keyclic_sdk_api.model.KnowledgeBaseLinksSelfIriTemplateMapping ## Load the model package ```dart diff --git a/dart/doc/OrganizationLinks.md b/dart/doc/OrganizationLinks.md index 25636fa67..6dac36ed0 100644 --- a/dart/doc/OrganizationLinks.md +++ b/dart/doc/OrganizationLinks.md @@ -8,7 +8,6 @@ import 'package:keyclic_sdk_api/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**application** | [**OrganizationLinksApplication**](OrganizationLinksApplication.md) | | [optional] **businessActivity** | [**OrganizationLinksBusinessActivity**](OrganizationLinksBusinessActivity.md) | | [optional] **configuration** | [**OrganizationLinksConfiguration**](OrganizationLinksConfiguration.md) | | [optional] **dispatcher** | [**OrganizationLinksDispatcher**](OrganizationLinksDispatcher.md) | | [optional] diff --git a/dart/doc/OrganizationLinksApplication.md b/dart/doc/OrganizationLinksApplication.md deleted file mode 100644 index a8312ed4f..000000000 --- a/dart/doc/OrganizationLinksApplication.md +++ /dev/null @@ -1,16 +0,0 @@ -# keyclic_sdk_api.model.OrganizationLinksApplication - -## Load the model package -```dart -import 'package:keyclic_sdk_api/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**href** | **String** | The URI of the application associated to the given organization. | [optional] -**iriTemplate** | [**OrganizationLinksApplicationIriTemplate**](OrganizationLinksApplicationIriTemplate.md) | | [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/dart/doc/OrganizationLinksApplicationIriTemplate.md b/dart/doc/OrganizationLinksApplicationIriTemplate.md deleted file mode 100644 index 1e4f323a8..000000000 --- a/dart/doc/OrganizationLinksApplicationIriTemplate.md +++ /dev/null @@ -1,15 +0,0 @@ -# keyclic_sdk_api.model.OrganizationLinksApplicationIriTemplate - -## Load the model package -```dart -import 'package:keyclic_sdk_api/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**mapping** | [**ApplicationLinksSelfIriTemplateMapping**](ApplicationLinksSelfIriTemplateMapping.md) | | [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/dart/lib/api.dart b/dart/lib/api.dart index f8cdc6b0d..6114e2f60 100644 --- a/dart/lib/api.dart +++ b/dart/lib/api.dart @@ -19,7 +19,6 @@ part 'auth/oauth.dart'; part 'auth/http_basic_auth.dart'; part 'auth/http_bearer_auth.dart'; -part 'api/application_api.dart'; part 'api/article_api.dart'; part 'api/assignment_api.dart'; part 'api/bookmark_api.dart'; @@ -66,21 +65,6 @@ part 'model/activity_aggregated_pagination.dart'; part 'model/activity_entity.dart'; part 'model/activity_group.dart'; part 'model/activity_pagination.dart'; -part 'model/agreement_older_than.dart'; -part 'model/agreement_privacy_policy.dart'; -part 'model/agreement_terms_of_service.dart'; -part 'model/application.dart'; -part 'model/application_about.dart'; -part 'model/application_agreement.dart'; -part 'model/application_configuration.dart'; -part 'model/application_contact_point.dart'; -part 'model/application_links.dart'; -part 'model/application_links_knowledge_base.dart'; -part 'model/application_links_knowledge_base_iri_template.dart'; -part 'model/application_links_knowledge_base_iri_template_mapping.dart'; -part 'model/application_links_self.dart'; -part 'model/application_links_self_iri_template.dart'; -part 'model/application_links_self_iri_template_mapping.dart'; part 'model/article.dart'; part 'model/article_collection.dart'; part 'model/article_links.dart'; @@ -303,6 +287,7 @@ part 'model/knowledge_base.dart'; part 'model/knowledge_base_links.dart'; part 'model/knowledge_base_links_self.dart'; part 'model/knowledge_base_links_self_iri_template.dart'; +part 'model/knowledge_base_links_self_iri_template_mapping.dart'; part 'model/login_data.dart'; part 'model/marker.dart'; part 'model/marker_data.dart'; @@ -386,8 +371,6 @@ part 'model/operation_type_workflow.dart'; part 'model/organization.dart'; part 'model/organization_collection.dart'; part 'model/organization_links.dart'; -part 'model/organization_links_application.dart'; -part 'model/organization_links_application_iri_template.dart'; part 'model/organization_links_business_activity.dart'; part 'model/organization_links_business_activity_iri_template.dart'; part 'model/organization_links_configuration.dart'; diff --git a/dart/lib/api_client.dart b/dart/lib/api_client.dart index 33e6ee957..b63b54800 100644 --- a/dart/lib/api_client.dart +++ b/dart/lib/api_client.dart @@ -64,11 +64,6 @@ class ApiClient { } } - /// Get ApplicationApi instance - ApplicationApi getApplicationApi() { - return ApplicationApi(this); - } - /// Get ArticleApi instance ArticleApi getArticleApi() { return ArticleApi(this); @@ -334,37 +329,6 @@ class ApiClient { return ActivityGroup.fromJson(value); case 'ActivityPagination': return ActivityPagination.fromJson(value); - case 'AgreementOlderThan': - return AgreementOlderThan.fromJson(value); - case 'AgreementPrivacyPolicy': - return AgreementPrivacyPolicy.fromJson(value); - case 'AgreementTermsOfService': - return AgreementTermsOfService.fromJson(value); - case 'Application': - return Application.fromJson(value); - case 'ApplicationAbout': - return ApplicationAbout.fromJson(value); - case 'ApplicationAgreement': - return ApplicationAgreement.fromJson(value); - case 'ApplicationConfiguration': - return ApplicationConfiguration.fromJson(value); - case 'ApplicationContactPoint': - return ApplicationContactPoint.fromJson(value); - case 'ApplicationLinks': - return ApplicationLinks.fromJson(value); - case 'ApplicationLinksKnowledgeBase': - return ApplicationLinksKnowledgeBase.fromJson(value); - case 'ApplicationLinksKnowledgeBaseIriTemplate': - return ApplicationLinksKnowledgeBaseIriTemplate.fromJson(value); - case 'ApplicationLinksKnowledgeBaseIriTemplateMapping': - return ApplicationLinksKnowledgeBaseIriTemplateMapping.fromJson( - value); - case 'ApplicationLinksSelf': - return ApplicationLinksSelf.fromJson(value); - case 'ApplicationLinksSelfIriTemplate': - return ApplicationLinksSelfIriTemplate.fromJson(value); - case 'ApplicationLinksSelfIriTemplateMapping': - return ApplicationLinksSelfIriTemplateMapping.fromJson(value); case 'Article': return Article.fromJson(value); case 'ArticleCollection': @@ -809,6 +773,8 @@ class ApiClient { return KnowledgeBaseLinksSelf.fromJson(value); case 'KnowledgeBaseLinksSelfIriTemplate': return KnowledgeBaseLinksSelfIriTemplate.fromJson(value); + case 'KnowledgeBaseLinksSelfIriTemplateMapping': + return KnowledgeBaseLinksSelfIriTemplateMapping.fromJson(value); case 'LoginData': return LoginData.fromJson(value); case 'Marker': @@ -975,10 +941,6 @@ class ApiClient { return OrganizationCollection.fromJson(value); case 'OrganizationLinks': return OrganizationLinks.fromJson(value); - case 'OrganizationLinksApplication': - return OrganizationLinksApplication.fromJson(value); - case 'OrganizationLinksApplicationIriTemplate': - return OrganizationLinksApplicationIriTemplate.fromJson(value); case 'OrganizationLinksBusinessActivity': return OrganizationLinksBusinessActivity.fromJson(value); case 'OrganizationLinksBusinessActivityIriTemplate': diff --git a/dart/lib/model/agreement_older_than.dart b/dart/lib/model/agreement_older_than.dart deleted file mode 100644 index 2ab475b5f..000000000 --- a/dart/lib/model/agreement_older_than.dart +++ /dev/null @@ -1,95 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -part of keyclic_sdk_api; - -class AgreementOlderThan { - /// Returns a new [AgreementOlderThan] instance. - AgreementOlderThan({ - this.content, - }); - - /// Returns a new [AgreementOlderThan] instance and imports its values from - /// [json] if it's non-null, null if [json] is null. - static AgreementOlderThan? fromJson(Object? json) { - if (json is! Map) { - return null; - } - - return AgreementOlderThan( - content: json[r'content'], - ); - } - - String? content; - - @override - bool operator ==(Object other) { - // Same reference - if (identical(this, other)) { - return true; - } - - return other is AgreementOlderThan && other.content == content; - } - - @override - int get hashCode => (content == null ? 0 : content.hashCode); - - static List listFromJson(Iterable? json) { - if (json == null) { - return []; - } - - return json.fold([], - (List previousValue, element) { - final AgreementOlderThan? object = AgreementOlderThan.fromJson(element); - if (object is AgreementOlderThan) { - previousValue.add(object); - } - - return previousValue; - }); - } - - static Map mapFromJson( - Map? json) { - if (json == null) { - return {}; - } - - return json.entries.fold({}, - (Map previousValue, element) { - final AgreementOlderThan? object = - AgreementOlderThan.fromJson(element.value); - if (object is AgreementOlderThan) { - previousValue[element.key] = object; - } - - return previousValue; - }); - } - - // maps a json object with a list of AgreementOlderThan-objects as value to a dart map - static Map> mapListFromJson( - Map? json) { - if (json == null) { - return >{}; - } - - return json.map((key, value) { - return MapEntry>( - key, AgreementOlderThan.listFromJson(value)); - }); - } - - @override - String toString() => 'AgreementOlderThan[content=$content]'; - - Map toJson([Iterable? keys]) { - return { - if (keys == null || keys.contains(r'content')) r'content': content, - }; - } -} diff --git a/dart/lib/model/agreement_privacy_policy.dart b/dart/lib/model/agreement_privacy_policy.dart deleted file mode 100644 index 0afec9275..000000000 --- a/dart/lib/model/agreement_privacy_policy.dart +++ /dev/null @@ -1,96 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -part of keyclic_sdk_api; - -class AgreementPrivacyPolicy { - /// Returns a new [AgreementPrivacyPolicy] instance. - AgreementPrivacyPolicy({ - this.content, - }); - - /// Returns a new [AgreementPrivacyPolicy] instance and imports its values from - /// [json] if it's non-null, null if [json] is null. - static AgreementPrivacyPolicy? fromJson(Object? json) { - if (json is! Map) { - return null; - } - - return AgreementPrivacyPolicy( - content: json[r'content'], - ); - } - - String? content; - - @override - bool operator ==(Object other) { - // Same reference - if (identical(this, other)) { - return true; - } - - return other is AgreementPrivacyPolicy && other.content == content; - } - - @override - int get hashCode => (content == null ? 0 : content.hashCode); - - static List listFromJson(Iterable? json) { - if (json == null) { - return []; - } - - return json.fold([], - (List previousValue, element) { - final AgreementPrivacyPolicy? object = - AgreementPrivacyPolicy.fromJson(element); - if (object is AgreementPrivacyPolicy) { - previousValue.add(object); - } - - return previousValue; - }); - } - - static Map mapFromJson( - Map? json) { - if (json == null) { - return {}; - } - - return json.entries.fold({}, - (Map previousValue, element) { - final AgreementPrivacyPolicy? object = - AgreementPrivacyPolicy.fromJson(element.value); - if (object is AgreementPrivacyPolicy) { - previousValue[element.key] = object; - } - - return previousValue; - }); - } - - // maps a json object with a list of AgreementPrivacyPolicy-objects as value to a dart map - static Map> mapListFromJson( - Map? json) { - if (json == null) { - return >{}; - } - - return json.map((key, value) { - return MapEntry>( - key, AgreementPrivacyPolicy.listFromJson(value)); - }); - } - - @override - String toString() => 'AgreementPrivacyPolicy[content=$content]'; - - Map toJson([Iterable? keys]) { - return { - if (keys == null || keys.contains(r'content')) r'content': content, - }; - } -} diff --git a/dart/lib/model/agreement_terms_of_service.dart b/dart/lib/model/agreement_terms_of_service.dart deleted file mode 100644 index 2d05d8ad1..000000000 --- a/dart/lib/model/agreement_terms_of_service.dart +++ /dev/null @@ -1,96 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -part of keyclic_sdk_api; - -class AgreementTermsOfService { - /// Returns a new [AgreementTermsOfService] instance. - AgreementTermsOfService({ - this.content, - }); - - /// Returns a new [AgreementTermsOfService] instance and imports its values from - /// [json] if it's non-null, null if [json] is null. - static AgreementTermsOfService? fromJson(Object? json) { - if (json is! Map) { - return null; - } - - return AgreementTermsOfService( - content: json[r'content'], - ); - } - - String? content; - - @override - bool operator ==(Object other) { - // Same reference - if (identical(this, other)) { - return true; - } - - return other is AgreementTermsOfService && other.content == content; - } - - @override - int get hashCode => (content == null ? 0 : content.hashCode); - - static List listFromJson(Iterable? json) { - if (json == null) { - return []; - } - - return json.fold([], - (List previousValue, element) { - final AgreementTermsOfService? object = - AgreementTermsOfService.fromJson(element); - if (object is AgreementTermsOfService) { - previousValue.add(object); - } - - return previousValue; - }); - } - - static Map mapFromJson( - Map? json) { - if (json == null) { - return {}; - } - - return json.entries.fold({}, - (Map previousValue, element) { - final AgreementTermsOfService? object = - AgreementTermsOfService.fromJson(element.value); - if (object is AgreementTermsOfService) { - previousValue[element.key] = object; - } - - return previousValue; - }); - } - - // maps a json object with a list of AgreementTermsOfService-objects as value to a dart map - static Map> mapListFromJson( - Map? json) { - if (json == null) { - return >{}; - } - - return json.map((key, value) { - return MapEntry>( - key, AgreementTermsOfService.listFromJson(value)); - }); - } - - @override - String toString() => 'AgreementTermsOfService[content=$content]'; - - Map toJson([Iterable? keys]) { - return { - if (keys == null || keys.contains(r'content')) r'content': content, - }; - } -} diff --git a/dart/lib/model/application_about.dart b/dart/lib/model/application_about.dart deleted file mode 100644 index 2a18e5401..000000000 --- a/dart/lib/model/application_about.dart +++ /dev/null @@ -1,101 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -part of keyclic_sdk_api; - -class ApplicationAbout { - /// Returns a new [ApplicationAbout] instance. - ApplicationAbout({ - this.name, - this.text, - }); - - /// Returns a new [ApplicationAbout] instance and imports its values from - /// [json] if it's non-null, null if [json] is null. - static ApplicationAbout? fromJson(Object? json) { - if (json is! Map) { - return null; - } - - return ApplicationAbout( - name: json[r'name'], - text: json[r'text'], - ); - } - - String? name; - - String? text; - - @override - bool operator ==(Object other) { - // Same reference - if (identical(this, other)) { - return true; - } - - return other is ApplicationAbout && - other.name == name && - other.text == text; - } - - @override - int get hashCode => - (name == null ? 0 : name.hashCode) + (text == null ? 0 : text.hashCode); - - static List listFromJson(Iterable? json) { - if (json == null) { - return []; - } - - return json.fold([], - (List previousValue, element) { - final ApplicationAbout? object = ApplicationAbout.fromJson(element); - if (object is ApplicationAbout) { - previousValue.add(object); - } - - return previousValue; - }); - } - - static Map mapFromJson(Map? json) { - if (json == null) { - return {}; - } - - return json.entries.fold({}, - (Map previousValue, element) { - final ApplicationAbout? object = ApplicationAbout.fromJson(element.value); - if (object is ApplicationAbout) { - previousValue[element.key] = object; - } - - return previousValue; - }); - } - - // maps a json object with a list of ApplicationAbout-objects as value to a dart map - static Map> mapListFromJson( - Map? json) { - if (json == null) { - return >{}; - } - - return json.map((key, value) { - return MapEntry>( - key, ApplicationAbout.listFromJson(value)); - }); - } - - @override - String toString() => 'ApplicationAbout[name=$name, text=$text]'; - - Map toJson([Iterable? keys]) { - return { - if (keys == null || keys.contains(r'name')) r'name': name, - if (keys == null || keys.contains(r'text')) r'text': text, - }; - } -} diff --git a/dart/lib/model/application_configuration.dart b/dart/lib/model/application_configuration.dart deleted file mode 100644 index a234da423..000000000 --- a/dart/lib/model/application_configuration.dart +++ /dev/null @@ -1,96 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -part of keyclic_sdk_api; - -class ApplicationConfiguration { - /// Returns a new [ApplicationConfiguration] instance. - ApplicationConfiguration({ - this.public, - }); - - /// Returns a new [ApplicationConfiguration] instance and imports its values from - /// [json] if it's non-null, null if [json] is null. - static ApplicationConfiguration? fromJson(Object? json) { - if (json is! Map) { - return null; - } - - return ApplicationConfiguration( - public: json[r'public'], - ); - } - - bool? public; - - @override - bool operator ==(Object other) { - // Same reference - if (identical(this, other)) { - return true; - } - - return other is ApplicationConfiguration && other.public == public; - } - - @override - int get hashCode => (public == null ? 0 : public.hashCode); - - static List listFromJson(Iterable? json) { - if (json == null) { - return []; - } - - return json.fold([], - (List previousValue, element) { - final ApplicationConfiguration? object = - ApplicationConfiguration.fromJson(element); - if (object is ApplicationConfiguration) { - previousValue.add(object); - } - - return previousValue; - }); - } - - static Map mapFromJson( - Map? json) { - if (json == null) { - return {}; - } - - return json.entries.fold({}, - (Map previousValue, element) { - final ApplicationConfiguration? object = - ApplicationConfiguration.fromJson(element.value); - if (object is ApplicationConfiguration) { - previousValue[element.key] = object; - } - - return previousValue; - }); - } - - // maps a json object with a list of ApplicationConfiguration-objects as value to a dart map - static Map> mapListFromJson( - Map? json) { - if (json == null) { - return >{}; - } - - return json.map((key, value) { - return MapEntry>( - key, ApplicationConfiguration.listFromJson(value)); - }); - } - - @override - String toString() => 'ApplicationConfiguration[public=$public]'; - - Map toJson([Iterable? keys]) { - return { - if (keys == null || keys.contains(r'public')) r'public': public, - }; - } -} diff --git a/dart/lib/model/application_contact_point.dart b/dart/lib/model/application_contact_point.dart deleted file mode 100644 index 87a9a86e1..000000000 --- a/dart/lib/model/application_contact_point.dart +++ /dev/null @@ -1,127 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -part of keyclic_sdk_api; - -class ApplicationContactPoint { - /// Returns a new [ApplicationContactPoint] instance. - ApplicationContactPoint({ - this.email, - this.id, - this.name, - this.telephone, - this.type, - }); - - /// Returns a new [ApplicationContactPoint] instance and imports its values from - /// [json] if it's non-null, null if [json] is null. - static ApplicationContactPoint? fromJson(Object? json) { - if (json is! Map) { - return null; - } - - return ApplicationContactPoint( - email: json[r'email'], - id: json[r'id'], - name: json[r'name'], - telephone: json[r'telephone'], - type: json[r'type'], - ); - } - - String? email; - - final String? id; - - String? name; - - String? telephone; - - String? type; - - @override - bool operator ==(Object other) { - // Same reference - if (identical(this, other)) { - return true; - } - - return other is ApplicationContactPoint && - other.email == email && - other.id == id && - other.name == name && - other.telephone == telephone && - other.type == type; - } - - @override - int get hashCode => - (email == null ? 0 : email.hashCode) + - (id == null ? 0 : id.hashCode) + - (name == null ? 0 : name.hashCode) + - (telephone == null ? 0 : telephone.hashCode) + - (type == null ? 0 : type.hashCode); - - static List listFromJson(Iterable? json) { - if (json == null) { - return []; - } - - return json.fold([], - (List previousValue, element) { - final ApplicationContactPoint? object = - ApplicationContactPoint.fromJson(element); - if (object is ApplicationContactPoint) { - previousValue.add(object); - } - - return previousValue; - }); - } - - static Map mapFromJson( - Map? json) { - if (json == null) { - return {}; - } - - return json.entries.fold({}, - (Map previousValue, element) { - final ApplicationContactPoint? object = - ApplicationContactPoint.fromJson(element.value); - if (object is ApplicationContactPoint) { - previousValue[element.key] = object; - } - - return previousValue; - }); - } - - // maps a json object with a list of ApplicationContactPoint-objects as value to a dart map - static Map> mapListFromJson( - Map? json) { - if (json == null) { - return >{}; - } - - return json.map((key, value) { - return MapEntry>( - key, ApplicationContactPoint.listFromJson(value)); - }); - } - - @override - String toString() => - 'ApplicationContactPoint[email=$email, id=$id, name=$name, telephone=$telephone, type=$type]'; - - Map toJson([Iterable? keys]) { - return { - if (keys == null || keys.contains(r'email')) r'email': email, - if (keys == null || keys.contains(r'id')) r'id': id, - if (keys == null || keys.contains(r'name')) r'name': name, - if (keys == null || keys.contains(r'telephone')) r'telephone': telephone, - if (keys == null || keys.contains(r'type')) r'type': type, - }; - } -} diff --git a/dart/lib/model/application_links.dart b/dart/lib/model/application_links.dart deleted file mode 100644 index 8b0ec7b13..000000000 --- a/dart/lib/model/application_links.dart +++ /dev/null @@ -1,121 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -part of keyclic_sdk_api; - -class ApplicationLinks { - /// Returns a new [ApplicationLinks] instance. - ApplicationLinks({ - this.knowledgeBase, - this.self, - }); - - /// Returns a new [ApplicationLinks] instance and imports its values from - /// [json] if it's non-null, null if [json] is null. - static ApplicationLinks? fromJson(Object? json) { - if (json is! Map) { - return null; - } - - return ApplicationLinks( - knowledgeBase: - ApplicationLinksKnowledgeBase.fromJson(json[r'knowledgeBase']), - self: ApplicationLinksSelf.fromJson(json[r'self']), - ); - } - - ApplicationLinksKnowledgeBase? knowledgeBase; - - ApplicationLinksSelf? self; - - @override - bool operator ==(Object other) { - // Same reference - if (identical(this, other)) { - return true; - } - - return other is ApplicationLinks && - other.knowledgeBase == knowledgeBase && - other.self == self; - } - - @override - int get hashCode => - (knowledgeBase == null ? 0 : knowledgeBase.hashCode) + - (self == null ? 0 : self.hashCode); - - static List listFromJson(Iterable? json) { - if (json == null) { - return []; - } - - return json.fold([], - (List previousValue, element) { - final ApplicationLinks? object = ApplicationLinks.fromJson(element); - if (object is ApplicationLinks) { - previousValue.add(object); - } - - return previousValue; - }); - } - - static Map mapFromJson(Map? json) { - if (json == null) { - return {}; - } - - return json.entries.fold({}, - (Map previousValue, element) { - final ApplicationLinks? object = ApplicationLinks.fromJson(element.value); - if (object is ApplicationLinks) { - previousValue[element.key] = object; - } - - return previousValue; - }); - } - - // maps a json object with a list of ApplicationLinks-objects as value to a dart map - static Map> mapListFromJson( - Map? json) { - if (json == null) { - return >{}; - } - - return json.map((key, value) { - return MapEntry>( - key, ApplicationLinks.listFromJson(value)); - }); - } - - @override - String toString() => - 'ApplicationLinks[knowledgeBase=$knowledgeBase, self=$self]'; - - Map toJson([Iterable? keys]) { - return { - if (keys == null || - keys.any((key) => RegExp(r'^knowledgeBase\.').hasMatch(key))) - r'knowledgeBase': knowledgeBase?.toJson(keys?.fold>( - [], (List previousValue, String element) { - if (element.contains(RegExp(r'^knowledgeBase\.'))) { - previousValue.add(element.split(RegExp(r'^knowledgeBase\.')).last); - } - - return previousValue; - })), - if (keys == null || keys.any((key) => RegExp(r'^self\.').hasMatch(key))) - r'self': self?.toJson(keys?.fold>([], - (List previousValue, String element) { - if (element.contains(RegExp(r'^self\.'))) { - previousValue.add(element.split(RegExp(r'^self\.')).last); - } - - return previousValue; - })), - }; - } -} diff --git a/dart/lib/model/application_links_knowledge_base.dart b/dart/lib/model/application_links_knowledge_base.dart deleted file mode 100644 index 4ee1e384e..000000000 --- a/dart/lib/model/application_links_knowledge_base.dart +++ /dev/null @@ -1,117 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -part of keyclic_sdk_api; - -class ApplicationLinksKnowledgeBase { - /// Returns a new [ApplicationLinksKnowledgeBase] instance. - ApplicationLinksKnowledgeBase({ - this.href, - this.iriTemplate, - }); - - /// Returns a new [ApplicationLinksKnowledgeBase] instance and imports its values from - /// [json] if it's non-null, null if [json] is null. - static ApplicationLinksKnowledgeBase? fromJson(Object? json) { - if (json is! Map) { - return null; - } - - return ApplicationLinksKnowledgeBase( - href: json[r'href'], - iriTemplate: ApplicationLinksKnowledgeBaseIriTemplate.fromJson( - json[r'iriTemplate']), - ); - } - - /// The URI of the knowledgeBase associated to the given application. - String? href; - - ApplicationLinksKnowledgeBaseIriTemplate? iriTemplate; - - @override - bool operator ==(Object other) { - // Same reference - if (identical(this, other)) { - return true; - } - - return other is ApplicationLinksKnowledgeBase && - other.href == href && - other.iriTemplate == iriTemplate; - } - - @override - int get hashCode => - (href == null ? 0 : href.hashCode) + - (iriTemplate == null ? 0 : iriTemplate.hashCode); - - static List listFromJson(Iterable? json) { - if (json == null) { - return []; - } - - return json.fold([], - (List previousValue, element) { - final ApplicationLinksKnowledgeBase? object = - ApplicationLinksKnowledgeBase.fromJson(element); - if (object is ApplicationLinksKnowledgeBase) { - previousValue.add(object); - } - - return previousValue; - }); - } - - static Map mapFromJson( - Map? json) { - if (json == null) { - return {}; - } - - return json.entries.fold({}, - (Map previousValue, element) { - final ApplicationLinksKnowledgeBase? object = - ApplicationLinksKnowledgeBase.fromJson(element.value); - if (object is ApplicationLinksKnowledgeBase) { - previousValue[element.key] = object; - } - - return previousValue; - }); - } - - // maps a json object with a list of ApplicationLinksKnowledgeBase-objects as value to a dart map - static Map> mapListFromJson( - Map? json) { - if (json == null) { - return >{}; - } - - return json.map((key, value) { - return MapEntry>( - key, ApplicationLinksKnowledgeBase.listFromJson(value)); - }); - } - - @override - String toString() => - 'ApplicationLinksKnowledgeBase[href=$href, iriTemplate=$iriTemplate]'; - - Map toJson([Iterable? keys]) { - return { - if (keys == null || keys.contains(r'href')) r'href': href, - if (keys == null || - keys.any((key) => RegExp(r'^iriTemplate\.').hasMatch(key))) - r'iriTemplate': iriTemplate?.toJson(keys?.fold>([], - (List previousValue, String element) { - if (element.contains(RegExp(r'^iriTemplate\.'))) { - previousValue.add(element.split(RegExp(r'^iriTemplate\.')).last); - } - - return previousValue; - })), - }; - } -} diff --git a/dart/lib/model/application_links_knowledge_base_iri_template.dart b/dart/lib/model/application_links_knowledge_base_iri_template.dart deleted file mode 100644 index 689125ab9..000000000 --- a/dart/lib/model/application_links_knowledge_base_iri_template.dart +++ /dev/null @@ -1,112 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -part of keyclic_sdk_api; - -class ApplicationLinksKnowledgeBaseIriTemplate { - /// Returns a new [ApplicationLinksKnowledgeBaseIriTemplate] instance. - ApplicationLinksKnowledgeBaseIriTemplate({ - this.mapping, - }); - - /// Returns a new [ApplicationLinksKnowledgeBaseIriTemplate] instance and imports its values from - /// [json] if it's non-null, null if [json] is null. - static ApplicationLinksKnowledgeBaseIriTemplate? fromJson(Object? json) { - if (json is! Map) { - return null; - } - - return ApplicationLinksKnowledgeBaseIriTemplate( - mapping: ApplicationLinksKnowledgeBaseIriTemplateMapping.fromJson( - json[r'mapping']), - ); - } - - ApplicationLinksKnowledgeBaseIriTemplateMapping? mapping; - - @override - bool operator ==(Object other) { - // Same reference - if (identical(this, other)) { - return true; - } - - return other is ApplicationLinksKnowledgeBaseIriTemplate && - other.mapping == mapping; - } - - @override - int get hashCode => (mapping == null ? 0 : mapping.hashCode); - - static List listFromJson( - Iterable? json) { - if (json == null) { - return []; - } - - return json.fold([], - (List previousValue, - element) { - final ApplicationLinksKnowledgeBaseIriTemplate? object = - ApplicationLinksKnowledgeBaseIriTemplate.fromJson(element); - if (object is ApplicationLinksKnowledgeBaseIriTemplate) { - previousValue.add(object); - } - - return previousValue; - }); - } - - static Map mapFromJson( - Map? json) { - if (json == null) { - return {}; - } - - return json.entries.fold( - {}, - (Map previousValue, - element) { - final ApplicationLinksKnowledgeBaseIriTemplate? object = - ApplicationLinksKnowledgeBaseIriTemplate.fromJson(element.value); - if (object is ApplicationLinksKnowledgeBaseIriTemplate) { - previousValue[element.key] = object; - } - - return previousValue; - }); - } - - // maps a json object with a list of ApplicationLinksKnowledgeBaseIriTemplate-objects as value to a dart map - static Map> - mapListFromJson(Map? json) { - if (json == null) { - return >{}; - } - - return json.map((key, value) { - return MapEntry>( - key, ApplicationLinksKnowledgeBaseIriTemplate.listFromJson(value)); - }); - } - - @override - String toString() => - 'ApplicationLinksKnowledgeBaseIriTemplate[mapping=$mapping]'; - - Map toJson([Iterable? keys]) { - return { - if (keys == null || - keys.any((key) => RegExp(r'^mapping\.').hasMatch(key))) - r'mapping': mapping?.toJson(keys?.fold>([], - (List previousValue, String element) { - if (element.contains(RegExp(r'^mapping\.'))) { - previousValue.add(element.split(RegExp(r'^mapping\.')).last); - } - - return previousValue; - })), - }; - } -} diff --git a/dart/lib/model/application_links_knowledge_base_iri_template_mapping.dart b/dart/lib/model/application_links_knowledge_base_iri_template_mapping.dart deleted file mode 100644 index 3544d2048..000000000 --- a/dart/lib/model/application_links_knowledge_base_iri_template_mapping.dart +++ /dev/null @@ -1,107 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -part of keyclic_sdk_api; - -class ApplicationLinksKnowledgeBaseIriTemplateMapping { - /// Returns a new [ApplicationLinksKnowledgeBaseIriTemplateMapping] instance. - ApplicationLinksKnowledgeBaseIriTemplateMapping({ - this.knowledgeBase, - }); - - /// Returns a new [ApplicationLinksKnowledgeBaseIriTemplateMapping] instance and imports its values from - /// [json] if it's non-null, null if [json] is null. - static ApplicationLinksKnowledgeBaseIriTemplateMapping? fromJson( - Object? json) { - if (json is! Map) { - return null; - } - - return ApplicationLinksKnowledgeBaseIriTemplateMapping( - knowledgeBase: json[r'knowledgeBase'], - ); - } - - String? knowledgeBase; - - @override - bool operator ==(Object other) { - // Same reference - if (identical(this, other)) { - return true; - } - - return other is ApplicationLinksKnowledgeBaseIriTemplateMapping && - other.knowledgeBase == knowledgeBase; - } - - @override - int get hashCode => (knowledgeBase == null ? 0 : knowledgeBase.hashCode); - - static List listFromJson( - Iterable? json) { - if (json == null) { - return []; - } - - return json.fold([], - (List previousValue, - element) { - final ApplicationLinksKnowledgeBaseIriTemplateMapping? object = - ApplicationLinksKnowledgeBaseIriTemplateMapping.fromJson(element); - if (object is ApplicationLinksKnowledgeBaseIriTemplateMapping) { - previousValue.add(object); - } - - return previousValue; - }); - } - - static Map - mapFromJson(Map? json) { - if (json == null) { - return {}; - } - - return json.entries - .fold({}, - (Map - previousValue, - element) { - final ApplicationLinksKnowledgeBaseIriTemplateMapping? object = - ApplicationLinksKnowledgeBaseIriTemplateMapping.fromJson( - element.value); - if (object is ApplicationLinksKnowledgeBaseIriTemplateMapping) { - previousValue[element.key] = object; - } - - return previousValue; - }); - } - - // maps a json object with a list of ApplicationLinksKnowledgeBaseIriTemplateMapping-objects as value to a dart map - static Map> - mapListFromJson(Map? json) { - if (json == null) { - return >{}; - } - - return json.map((key, value) { - return MapEntry>(key, - ApplicationLinksKnowledgeBaseIriTemplateMapping.listFromJson(value)); - }); - } - - @override - String toString() => - 'ApplicationLinksKnowledgeBaseIriTemplateMapping[knowledgeBase=$knowledgeBase]'; - - Map toJson([Iterable? keys]) { - return { - if (keys == null || keys.contains(r'knowledgeBase')) - r'knowledgeBase': knowledgeBase, - }; - } -} diff --git a/dart/lib/model/application_links_self.dart b/dart/lib/model/application_links_self.dart deleted file mode 100644 index 02af53c3f..000000000 --- a/dart/lib/model/application_links_self.dart +++ /dev/null @@ -1,117 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -part of keyclic_sdk_api; - -class ApplicationLinksSelf { - /// Returns a new [ApplicationLinksSelf] instance. - ApplicationLinksSelf({ - this.href, - this.iriTemplate, - }); - - /// Returns a new [ApplicationLinksSelf] instance and imports its values from - /// [json] if it's non-null, null if [json] is null. - static ApplicationLinksSelf? fromJson(Object? json) { - if (json is! Map) { - return null; - } - - return ApplicationLinksSelf( - href: json[r'href'], - iriTemplate: - ApplicationLinksSelfIriTemplate.fromJson(json[r'iriTemplate']), - ); - } - - /// The URI of the self associated to the given application. - String? href; - - ApplicationLinksSelfIriTemplate? iriTemplate; - - @override - bool operator ==(Object other) { - // Same reference - if (identical(this, other)) { - return true; - } - - return other is ApplicationLinksSelf && - other.href == href && - other.iriTemplate == iriTemplate; - } - - @override - int get hashCode => - (href == null ? 0 : href.hashCode) + - (iriTemplate == null ? 0 : iriTemplate.hashCode); - - static List listFromJson(Iterable? json) { - if (json == null) { - return []; - } - - return json.fold([], - (List previousValue, element) { - final ApplicationLinksSelf? object = - ApplicationLinksSelf.fromJson(element); - if (object is ApplicationLinksSelf) { - previousValue.add(object); - } - - return previousValue; - }); - } - - static Map mapFromJson( - Map? json) { - if (json == null) { - return {}; - } - - return json.entries.fold({}, - (Map previousValue, element) { - final ApplicationLinksSelf? object = - ApplicationLinksSelf.fromJson(element.value); - if (object is ApplicationLinksSelf) { - previousValue[element.key] = object; - } - - return previousValue; - }); - } - - // maps a json object with a list of ApplicationLinksSelf-objects as value to a dart map - static Map> mapListFromJson( - Map? json) { - if (json == null) { - return >{}; - } - - return json.map((key, value) { - return MapEntry>( - key, ApplicationLinksSelf.listFromJson(value)); - }); - } - - @override - String toString() => - 'ApplicationLinksSelf[href=$href, iriTemplate=$iriTemplate]'; - - Map toJson([Iterable? keys]) { - return { - if (keys == null || keys.contains(r'href')) r'href': href, - if (keys == null || - keys.any((key) => RegExp(r'^iriTemplate\.').hasMatch(key))) - r'iriTemplate': iriTemplate?.toJson(keys?.fold>([], - (List previousValue, String element) { - if (element.contains(RegExp(r'^iriTemplate\.'))) { - previousValue.add(element.split(RegExp(r'^iriTemplate\.')).last); - } - - return previousValue; - })), - }; - } -} diff --git a/dart/lib/model/application_links_self_iri_template.dart b/dart/lib/model/application_links_self_iri_template.dart deleted file mode 100644 index 6b6eb304f..000000000 --- a/dart/lib/model/application_links_self_iri_template.dart +++ /dev/null @@ -1,106 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -part of keyclic_sdk_api; - -class ApplicationLinksSelfIriTemplate { - /// Returns a new [ApplicationLinksSelfIriTemplate] instance. - ApplicationLinksSelfIriTemplate({ - this.mapping, - }); - - /// Returns a new [ApplicationLinksSelfIriTemplate] instance and imports its values from - /// [json] if it's non-null, null if [json] is null. - static ApplicationLinksSelfIriTemplate? fromJson(Object? json) { - if (json is! Map) { - return null; - } - - return ApplicationLinksSelfIriTemplate( - mapping: - ApplicationLinksSelfIriTemplateMapping.fromJson(json[r'mapping']), - ); - } - - ApplicationLinksSelfIriTemplateMapping? mapping; - - @override - bool operator ==(Object other) { - // Same reference - if (identical(this, other)) { - return true; - } - - return other is ApplicationLinksSelfIriTemplate && other.mapping == mapping; - } - - @override - int get hashCode => (mapping == null ? 0 : mapping.hashCode); - - static List listFromJson(Iterable? json) { - if (json == null) { - return []; - } - - return json.fold([], - (List previousValue, element) { - final ApplicationLinksSelfIriTemplate? object = - ApplicationLinksSelfIriTemplate.fromJson(element); - if (object is ApplicationLinksSelfIriTemplate) { - previousValue.add(object); - } - - return previousValue; - }); - } - - static Map mapFromJson( - Map? json) { - if (json == null) { - return {}; - } - - return json.entries.fold({}, - (Map previousValue, element) { - final ApplicationLinksSelfIriTemplate? object = - ApplicationLinksSelfIriTemplate.fromJson(element.value); - if (object is ApplicationLinksSelfIriTemplate) { - previousValue[element.key] = object; - } - - return previousValue; - }); - } - - // maps a json object with a list of ApplicationLinksSelfIriTemplate-objects as value to a dart map - static Map> mapListFromJson( - Map? json) { - if (json == null) { - return >{}; - } - - return json.map((key, value) { - return MapEntry>( - key, ApplicationLinksSelfIriTemplate.listFromJson(value)); - }); - } - - @override - String toString() => 'ApplicationLinksSelfIriTemplate[mapping=$mapping]'; - - Map toJson([Iterable? keys]) { - return { - if (keys == null || - keys.any((key) => RegExp(r'^mapping\.').hasMatch(key))) - r'mapping': mapping?.toJson(keys?.fold>([], - (List previousValue, String element) { - if (element.contains(RegExp(r'^mapping\.'))) { - previousValue.add(element.split(RegExp(r'^mapping\.')).last); - } - - return previousValue; - })), - }; - } -} diff --git a/dart/lib/model/application_links_self_iri_template_mapping.dart b/dart/lib/model/application_links_self_iri_template_mapping.dart deleted file mode 100644 index d90d34abe..000000000 --- a/dart/lib/model/application_links_self_iri_template_mapping.dart +++ /dev/null @@ -1,101 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -part of keyclic_sdk_api; - -class ApplicationLinksSelfIriTemplateMapping { - /// Returns a new [ApplicationLinksSelfIriTemplateMapping] instance. - ApplicationLinksSelfIriTemplateMapping({ - this.application, - }); - - /// Returns a new [ApplicationLinksSelfIriTemplateMapping] instance and imports its values from - /// [json] if it's non-null, null if [json] is null. - static ApplicationLinksSelfIriTemplateMapping? fromJson(Object? json) { - if (json is! Map) { - return null; - } - - return ApplicationLinksSelfIriTemplateMapping( - application: json[r'application'], - ); - } - - String? application; - - @override - bool operator ==(Object other) { - // Same reference - if (identical(this, other)) { - return true; - } - - return other is ApplicationLinksSelfIriTemplateMapping && - other.application == application; - } - - @override - int get hashCode => (application == null ? 0 : application.hashCode); - - static List listFromJson( - Iterable? json) { - if (json == null) { - return []; - } - - return json.fold([], - (List previousValue, element) { - final ApplicationLinksSelfIriTemplateMapping? object = - ApplicationLinksSelfIriTemplateMapping.fromJson(element); - if (object is ApplicationLinksSelfIriTemplateMapping) { - previousValue.add(object); - } - - return previousValue; - }); - } - - static Map mapFromJson( - Map? json) { - if (json == null) { - return {}; - } - - return json.entries.fold({}, - (Map previousValue, - element) { - final ApplicationLinksSelfIriTemplateMapping? object = - ApplicationLinksSelfIriTemplateMapping.fromJson(element.value); - if (object is ApplicationLinksSelfIriTemplateMapping) { - previousValue[element.key] = object; - } - - return previousValue; - }); - } - - // maps a json object with a list of ApplicationLinksSelfIriTemplateMapping-objects as value to a dart map - static Map> - mapListFromJson(Map? json) { - if (json == null) { - return >{}; - } - - return json.map((key, value) { - return MapEntry>( - key, ApplicationLinksSelfIriTemplateMapping.listFromJson(value)); - }); - } - - @override - String toString() => - 'ApplicationLinksSelfIriTemplateMapping[application=$application]'; - - Map toJson([Iterable? keys]) { - return { - if (keys == null || keys.contains(r'application')) - r'application': application, - }; - } -} diff --git a/dart/lib/model/knowledge_base_links_self_iri_template.dart b/dart/lib/model/knowledge_base_links_self_iri_template.dart index 3e7e53097..31b1fb179 100644 --- a/dart/lib/model/knowledge_base_links_self_iri_template.dart +++ b/dart/lib/model/knowledge_base_links_self_iri_template.dart @@ -18,12 +18,12 @@ class KnowledgeBaseLinksSelfIriTemplate { } return KnowledgeBaseLinksSelfIriTemplate( - mapping: ApplicationLinksKnowledgeBaseIriTemplateMapping.fromJson( - json[r'mapping']), + mapping: + KnowledgeBaseLinksSelfIriTemplateMapping.fromJson(json[r'mapping']), ); } - ApplicationLinksKnowledgeBaseIriTemplateMapping? mapping; + KnowledgeBaseLinksSelfIriTemplateMapping? mapping; @override bool operator ==(Object other) { diff --git a/dart/lib/model/knowledge_base_links_self_iri_template_mapping.dart b/dart/lib/model/knowledge_base_links_self_iri_template_mapping.dart new file mode 100644 index 000000000..3044d656f --- /dev/null +++ b/dart/lib/model/knowledge_base_links_self_iri_template_mapping.dart @@ -0,0 +1,103 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +part of keyclic_sdk_api; + +class KnowledgeBaseLinksSelfIriTemplateMapping { + /// Returns a new [KnowledgeBaseLinksSelfIriTemplateMapping] instance. + KnowledgeBaseLinksSelfIriTemplateMapping({ + this.knowledgeBase, + }); + + /// Returns a new [KnowledgeBaseLinksSelfIriTemplateMapping] instance and imports its values from + /// [json] if it's non-null, null if [json] is null. + static KnowledgeBaseLinksSelfIriTemplateMapping? fromJson(Object? json) { + if (json is! Map) { + return null; + } + + return KnowledgeBaseLinksSelfIriTemplateMapping( + knowledgeBase: json[r'knowledgeBase'], + ); + } + + String? knowledgeBase; + + @override + bool operator ==(Object other) { + // Same reference + if (identical(this, other)) { + return true; + } + + return other is KnowledgeBaseLinksSelfIriTemplateMapping && + other.knowledgeBase == knowledgeBase; + } + + @override + int get hashCode => (knowledgeBase == null ? 0 : knowledgeBase.hashCode); + + static List listFromJson( + Iterable? json) { + if (json == null) { + return []; + } + + return json.fold([], + (List previousValue, + element) { + final KnowledgeBaseLinksSelfIriTemplateMapping? object = + KnowledgeBaseLinksSelfIriTemplateMapping.fromJson(element); + if (object is KnowledgeBaseLinksSelfIriTemplateMapping) { + previousValue.add(object); + } + + return previousValue; + }); + } + + static Map mapFromJson( + Map? json) { + if (json == null) { + return {}; + } + + return json.entries.fold( + {}, + (Map previousValue, + element) { + final KnowledgeBaseLinksSelfIriTemplateMapping? object = + KnowledgeBaseLinksSelfIriTemplateMapping.fromJson(element.value); + if (object is KnowledgeBaseLinksSelfIriTemplateMapping) { + previousValue[element.key] = object; + } + + return previousValue; + }); + } + + // maps a json object with a list of KnowledgeBaseLinksSelfIriTemplateMapping-objects as value to a dart map + static Map> + mapListFromJson(Map? json) { + if (json == null) { + return >{}; + } + + return json.map((key, value) { + return MapEntry>( + key, KnowledgeBaseLinksSelfIriTemplateMapping.listFromJson(value)); + }); + } + + @override + String toString() => + 'KnowledgeBaseLinksSelfIriTemplateMapping[knowledgeBase=$knowledgeBase]'; + + Map toJson([Iterable? keys]) { + return { + if (keys == null || keys.contains(r'knowledgeBase')) + r'knowledgeBase': knowledgeBase, + }; + } +} diff --git a/dart/lib/model/organization_links.dart b/dart/lib/model/organization_links.dart index 6baf52ef7..326603b12 100644 --- a/dart/lib/model/organization_links.dart +++ b/dart/lib/model/organization_links.dart @@ -7,7 +7,6 @@ part of keyclic_sdk_api; class OrganizationLinks { /// Returns a new [OrganizationLinks] instance. OrganizationLinks({ - this.application, this.businessActivity, this.configuration, this.dispatcher, @@ -23,7 +22,6 @@ class OrganizationLinks { } return OrganizationLinks( - application: OrganizationLinksApplication.fromJson(json[r'application']), businessActivity: OrganizationLinksBusinessActivity.fromJson(json[r'businessActivity']), configuration: @@ -34,8 +32,6 @@ class OrganizationLinks { ); } - OrganizationLinksApplication? application; - OrganizationLinksBusinessActivity? businessActivity; OrganizationLinksConfiguration? configuration; @@ -54,7 +50,6 @@ class OrganizationLinks { } return other is OrganizationLinks && - other.application == application && other.businessActivity == businessActivity && other.configuration == configuration && other.dispatcher == dispatcher && @@ -64,7 +59,6 @@ class OrganizationLinks { @override int get hashCode => - (application == null ? 0 : application.hashCode) + (businessActivity == null ? 0 : businessActivity.hashCode) + (configuration == null ? 0 : configuration.hashCode) + (dispatcher == null ? 0 : dispatcher.hashCode) + @@ -120,20 +114,10 @@ class OrganizationLinks { @override String toString() => - 'OrganizationLinks[application=$application, businessActivity=$businessActivity, configuration=$configuration, dispatcher=$dispatcher, logo=$logo, self=$self]'; + 'OrganizationLinks[businessActivity=$businessActivity, configuration=$configuration, dispatcher=$dispatcher, logo=$logo, self=$self]'; Map toJson([Iterable? keys]) { return { - if (keys == null || - keys.any((key) => RegExp(r'^application\.').hasMatch(key))) - r'application': application?.toJson(keys?.fold>([], - (List previousValue, String element) { - if (element.contains(RegExp(r'^application\.'))) { - previousValue.add(element.split(RegExp(r'^application\.')).last); - } - - return previousValue; - })), if (keys == null || keys.any((key) => RegExp(r'^businessActivity\.').hasMatch(key))) r'businessActivity': businessActivity?.toJson(keys?.fold>( diff --git a/dart/lib/model/organization_links_application.dart b/dart/lib/model/organization_links_application.dart deleted file mode 100644 index 774ea52e7..000000000 --- a/dart/lib/model/organization_links_application.dart +++ /dev/null @@ -1,117 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -part of keyclic_sdk_api; - -class OrganizationLinksApplication { - /// Returns a new [OrganizationLinksApplication] instance. - OrganizationLinksApplication({ - this.href, - this.iriTemplate, - }); - - /// Returns a new [OrganizationLinksApplication] instance and imports its values from - /// [json] if it's non-null, null if [json] is null. - static OrganizationLinksApplication? fromJson(Object? json) { - if (json is! Map) { - return null; - } - - return OrganizationLinksApplication( - href: json[r'href'], - iriTemplate: OrganizationLinksApplicationIriTemplate.fromJson( - json[r'iriTemplate']), - ); - } - - /// The URI of the application associated to the given organization. - String? href; - - OrganizationLinksApplicationIriTemplate? iriTemplate; - - @override - bool operator ==(Object other) { - // Same reference - if (identical(this, other)) { - return true; - } - - return other is OrganizationLinksApplication && - other.href == href && - other.iriTemplate == iriTemplate; - } - - @override - int get hashCode => - (href == null ? 0 : href.hashCode) + - (iriTemplate == null ? 0 : iriTemplate.hashCode); - - static List listFromJson(Iterable? json) { - if (json == null) { - return []; - } - - return json.fold([], - (List previousValue, element) { - final OrganizationLinksApplication? object = - OrganizationLinksApplication.fromJson(element); - if (object is OrganizationLinksApplication) { - previousValue.add(object); - } - - return previousValue; - }); - } - - static Map mapFromJson( - Map? json) { - if (json == null) { - return {}; - } - - return json.entries.fold({}, - (Map previousValue, element) { - final OrganizationLinksApplication? object = - OrganizationLinksApplication.fromJson(element.value); - if (object is OrganizationLinksApplication) { - previousValue[element.key] = object; - } - - return previousValue; - }); - } - - // maps a json object with a list of OrganizationLinksApplication-objects as value to a dart map - static Map> mapListFromJson( - Map? json) { - if (json == null) { - return >{}; - } - - return json.map((key, value) { - return MapEntry>( - key, OrganizationLinksApplication.listFromJson(value)); - }); - } - - @override - String toString() => - 'OrganizationLinksApplication[href=$href, iriTemplate=$iriTemplate]'; - - Map toJson([Iterable? keys]) { - return { - if (keys == null || keys.contains(r'href')) r'href': href, - if (keys == null || - keys.any((key) => RegExp(r'^iriTemplate\.').hasMatch(key))) - r'iriTemplate': iriTemplate?.toJson(keys?.fold>([], - (List previousValue, String element) { - if (element.contains(RegExp(r'^iriTemplate\.'))) { - previousValue.add(element.split(RegExp(r'^iriTemplate\.')).last); - } - - return previousValue; - })), - }; - } -} diff --git a/dart/lib/model/organization_links_application_iri_template.dart b/dart/lib/model/organization_links_application_iri_template.dart deleted file mode 100644 index d51f86fc5..000000000 --- a/dart/lib/model/organization_links_application_iri_template.dart +++ /dev/null @@ -1,111 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -part of keyclic_sdk_api; - -class OrganizationLinksApplicationIriTemplate { - /// Returns a new [OrganizationLinksApplicationIriTemplate] instance. - OrganizationLinksApplicationIriTemplate({ - this.mapping, - }); - - /// Returns a new [OrganizationLinksApplicationIriTemplate] instance and imports its values from - /// [json] if it's non-null, null if [json] is null. - static OrganizationLinksApplicationIriTemplate? fromJson(Object? json) { - if (json is! Map) { - return null; - } - - return OrganizationLinksApplicationIriTemplate( - mapping: - ApplicationLinksSelfIriTemplateMapping.fromJson(json[r'mapping']), - ); - } - - ApplicationLinksSelfIriTemplateMapping? mapping; - - @override - bool operator ==(Object other) { - // Same reference - if (identical(this, other)) { - return true; - } - - return other is OrganizationLinksApplicationIriTemplate && - other.mapping == mapping; - } - - @override - int get hashCode => (mapping == null ? 0 : mapping.hashCode); - - static List listFromJson( - Iterable? json) { - if (json == null) { - return []; - } - - return json.fold([], - (List previousValue, element) { - final OrganizationLinksApplicationIriTemplate? object = - OrganizationLinksApplicationIriTemplate.fromJson(element); - if (object is OrganizationLinksApplicationIriTemplate) { - previousValue.add(object); - } - - return previousValue; - }); - } - - static Map mapFromJson( - Map? json) { - if (json == null) { - return {}; - } - - return json.entries - .fold({}, - (Map previousValue, - element) { - final OrganizationLinksApplicationIriTemplate? object = - OrganizationLinksApplicationIriTemplate.fromJson(element.value); - if (object is OrganizationLinksApplicationIriTemplate) { - previousValue[element.key] = object; - } - - return previousValue; - }); - } - - // maps a json object with a list of OrganizationLinksApplicationIriTemplate-objects as value to a dart map - static Map> - mapListFromJson(Map? json) { - if (json == null) { - return >{}; - } - - return json.map((key, value) { - return MapEntry>( - key, OrganizationLinksApplicationIriTemplate.listFromJson(value)); - }); - } - - @override - String toString() => - 'OrganizationLinksApplicationIriTemplate[mapping=$mapping]'; - - Map toJson([Iterable? keys]) { - return { - if (keys == null || - keys.any((key) => RegExp(r'^mapping\.').hasMatch(key))) - r'mapping': mapping?.toJson(keys?.fold>([], - (List previousValue, String element) { - if (element.contains(RegExp(r'^mapping\.'))) { - previousValue.add(element.split(RegExp(r'^mapping\.')).last); - } - - return previousValue; - })), - }; - } -} diff --git a/dart/test/agreement_older_than_test.dart b/dart/test/agreement_older_than_test.dart deleted file mode 100644 index b58072b25..000000000 --- a/dart/test/agreement_older_than_test.dart +++ /dev/null @@ -1,16 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// import 'package:keyclic_sdk_api/api.dart'; -import 'package:test/test.dart'; - -// tests for AgreementOlderThan -void main() { - // final instance = AgreementOlderThan(); - - group('test AgreementOlderThan', () { - // String content - test('to test the property `content`', () async {}); - }); -} diff --git a/dart/test/agreement_terms_of_service_test.dart b/dart/test/agreement_terms_of_service_test.dart deleted file mode 100644 index 57f5b06b9..000000000 --- a/dart/test/agreement_terms_of_service_test.dart +++ /dev/null @@ -1,16 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// import 'package:keyclic_sdk_api/api.dart'; -import 'package:test/test.dart'; - -// tests for AgreementTermsOfService -void main() { - // final instance = AgreementTermsOfService(); - - group('test AgreementTermsOfService', () { - // String content - test('to test the property `content`', () async {}); - }); -} diff --git a/dart/test/application_agreement_test.dart b/dart/test/application_agreement_test.dart deleted file mode 100644 index e7c23970a..000000000 --- a/dart/test/application_agreement_test.dart +++ /dev/null @@ -1,22 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// import 'package:keyclic_sdk_api/api.dart'; -import 'package:test/test.dart'; - -// tests for ApplicationAgreement -void main() { - // final instance = ApplicationAgreement(); - - group('test ApplicationAgreement', () { - // AgreementOlderThan olderThan - test('to test the property `olderThan`', () async {}); - - // AgreementPrivacyPolicy privacyPolicy - test('to test the property `privacyPolicy`', () async {}); - - // AgreementTermsOfService termsOfService - test('to test the property `termsOfService`', () async {}); - }); -} diff --git a/dart/test/application_api_test.dart b/dart/test/application_api_test.dart deleted file mode 100644 index e9de4692e..000000000 --- a/dart/test/application_api_test.dart +++ /dev/null @@ -1,18 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// import 'package:keyclic_sdk_api/api.dart'; -import 'package:test/test.dart'; - -/// tests for ApplicationApi -void main() { - // final instance = ApplicationApi(); - - group('tests for ApplicationApi', () { - // Retrieve one Application resource. - // - //Future getApplication(String xKeyclicApp, String application, { String acceptLanguage, DateTime xDateTime, String xKeyclicAppPlatform, String xKeyclicAppVersion }) async - test('test getApplication', () async {}); - }); -} diff --git a/dart/test/application_configuration_test.dart b/dart/test/application_configuration_test.dart deleted file mode 100644 index 3b7dbb5d5..000000000 --- a/dart/test/application_configuration_test.dart +++ /dev/null @@ -1,16 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// import 'package:keyclic_sdk_api/api.dart'; -import 'package:test/test.dart'; - -// tests for ApplicationConfiguration -void main() { - // final instance = ApplicationConfiguration(); - - group('test ApplicationConfiguration', () { - // bool public - test('to test the property `public`', () async {}); - }); -} diff --git a/dart/test/application_links_knowledge_base_iri_template_test.dart b/dart/test/application_links_knowledge_base_iri_template_test.dart deleted file mode 100644 index 4384fe671..000000000 --- a/dart/test/application_links_knowledge_base_iri_template_test.dart +++ /dev/null @@ -1,16 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// import 'package:keyclic_sdk_api/api.dart'; -import 'package:test/test.dart'; - -// tests for ApplicationLinksKnowledgeBaseIriTemplate -void main() { - // final instance = ApplicationLinksKnowledgeBaseIriTemplate(); - - group('test ApplicationLinksKnowledgeBaseIriTemplate', () { - // ApplicationLinksKnowledgeBaseIriTemplateMapping mapping - test('to test the property `mapping`', () async {}); - }); -} diff --git a/dart/test/application_links_knowledge_base_test.dart b/dart/test/application_links_knowledge_base_test.dart deleted file mode 100644 index 2eae0dab8..000000000 --- a/dart/test/application_links_knowledge_base_test.dart +++ /dev/null @@ -1,20 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// import 'package:keyclic_sdk_api/api.dart'; -import 'package:test/test.dart'; - -// tests for ApplicationLinksKnowledgeBase -void main() { - // final instance = ApplicationLinksKnowledgeBase(); - - group('test ApplicationLinksKnowledgeBase', () { - // The URI of the knowledgeBase associated to the given application. - // String href - test('to test the property `href`', () async {}); - - // ApplicationLinksKnowledgeBaseIriTemplate iriTemplate - test('to test the property `iriTemplate`', () async {}); - }); -} diff --git a/dart/test/application_links_self_iri_template_mapping_test.dart b/dart/test/application_links_self_iri_template_mapping_test.dart deleted file mode 100644 index b63b5b6e9..000000000 --- a/dart/test/application_links_self_iri_template_mapping_test.dart +++ /dev/null @@ -1,16 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// import 'package:keyclic_sdk_api/api.dart'; -import 'package:test/test.dart'; - -// tests for ApplicationLinksSelfIriTemplateMapping -void main() { - // final instance = ApplicationLinksSelfIriTemplateMapping(); - - group('test ApplicationLinksSelfIriTemplateMapping', () { - // String application - test('to test the property `application`', () async {}); - }); -} diff --git a/dart/test/application_links_self_iri_template_test.dart b/dart/test/application_links_self_iri_template_test.dart deleted file mode 100644 index c95484fde..000000000 --- a/dart/test/application_links_self_iri_template_test.dart +++ /dev/null @@ -1,16 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// import 'package:keyclic_sdk_api/api.dart'; -import 'package:test/test.dart'; - -// tests for ApplicationLinksSelfIriTemplate -void main() { - // final instance = ApplicationLinksSelfIriTemplate(); - - group('test ApplicationLinksSelfIriTemplate', () { - // ApplicationLinksSelfIriTemplateMapping mapping - test('to test the property `mapping`', () async {}); - }); -} diff --git a/dart/test/application_links_self_test.dart b/dart/test/application_links_self_test.dart deleted file mode 100644 index 9469b2562..000000000 --- a/dart/test/application_links_self_test.dart +++ /dev/null @@ -1,20 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// import 'package:keyclic_sdk_api/api.dart'; -import 'package:test/test.dart'; - -// tests for ApplicationLinksSelf -void main() { - // final instance = ApplicationLinksSelf(); - - group('test ApplicationLinksSelf', () { - // The URI of the self associated to the given application. - // String href - test('to test the property `href`', () async {}); - - // ApplicationLinksSelfIriTemplate iriTemplate - test('to test the property `iriTemplate`', () async {}); - }); -} diff --git a/dart/test/application_links_test.dart b/dart/test/application_links_test.dart deleted file mode 100644 index 2fd4e99cc..000000000 --- a/dart/test/application_links_test.dart +++ /dev/null @@ -1,19 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// import 'package:keyclic_sdk_api/api.dart'; -import 'package:test/test.dart'; - -// tests for ApplicationLinks -void main() { - // final instance = ApplicationLinks(); - - group('test ApplicationLinks', () { - // ApplicationLinksKnowledgeBase knowledgeBase - test('to test the property `knowledgeBase`', () async {}); - - // ApplicationLinksSelf self - test('to test the property `self`', () async {}); - }); -} diff --git a/dart/test/application_links_knowledge_base_iri_template_mapping_test.dart b/dart/test/knowledge_base_links_self_iri_template_mapping_test.dart similarity index 54% rename from dart/test/application_links_knowledge_base_iri_template_mapping_test.dart rename to dart/test/knowledge_base_links_self_iri_template_mapping_test.dart index b04cb3a39..5883bb0c4 100644 --- a/dart/test/application_links_knowledge_base_iri_template_mapping_test.dart +++ b/dart/test/knowledge_base_links_self_iri_template_mapping_test.dart @@ -5,11 +5,11 @@ // import 'package:keyclic_sdk_api/api.dart'; import 'package:test/test.dart'; -// tests for ApplicationLinksKnowledgeBaseIriTemplateMapping +// tests for KnowledgeBaseLinksSelfIriTemplateMapping void main() { - // final instance = ApplicationLinksKnowledgeBaseIriTemplateMapping(); + // final instance = KnowledgeBaseLinksSelfIriTemplateMapping(); - group('test ApplicationLinksKnowledgeBaseIriTemplateMapping', () { + group('test KnowledgeBaseLinksSelfIriTemplateMapping', () { // String knowledgeBase test('to test the property `knowledgeBase`', () async {}); }); diff --git a/dart/test/knowledge_base_links_self_iri_template_test.dart b/dart/test/knowledge_base_links_self_iri_template_test.dart index 8c33cae2e..5e0e97cea 100644 --- a/dart/test/knowledge_base_links_self_iri_template_test.dart +++ b/dart/test/knowledge_base_links_self_iri_template_test.dart @@ -10,7 +10,7 @@ void main() { // final instance = KnowledgeBaseLinksSelfIriTemplate(); group('test KnowledgeBaseLinksSelfIriTemplate', () { - // ApplicationLinksKnowledgeBaseIriTemplateMapping mapping + // KnowledgeBaseLinksSelfIriTemplateMapping mapping test('to test the property `mapping`', () async {}); }); } diff --git a/dart/test/organization_links_application_iri_template_test.dart b/dart/test/organization_links_application_iri_template_test.dart deleted file mode 100644 index 0ab218b02..000000000 --- a/dart/test/organization_links_application_iri_template_test.dart +++ /dev/null @@ -1,16 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// import 'package:keyclic_sdk_api/api.dart'; -import 'package:test/test.dart'; - -// tests for OrganizationLinksApplicationIriTemplate -void main() { - // final instance = OrganizationLinksApplicationIriTemplate(); - - group('test OrganizationLinksApplicationIriTemplate', () { - // ApplicationLinksSelfIriTemplateMapping mapping - test('to test the property `mapping`', () async {}); - }); -} diff --git a/dart/test/organization_links_application_test.dart b/dart/test/organization_links_application_test.dart deleted file mode 100644 index 4e7d10f3f..000000000 --- a/dart/test/organization_links_application_test.dart +++ /dev/null @@ -1,20 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// import 'package:keyclic_sdk_api/api.dart'; -import 'package:test/test.dart'; - -// tests for OrganizationLinksApplication -void main() { - // final instance = OrganizationLinksApplication(); - - group('test OrganizationLinksApplication', () { - // The URI of the application associated to the given organization. - // String href - test('to test the property `href`', () async {}); - - // OrganizationLinksApplicationIriTemplate iriTemplate - test('to test the property `iriTemplate`', () async {}); - }); -} diff --git a/dart/test/organization_links_test.dart b/dart/test/organization_links_test.dart index f06a07b5d..f2dfeeeaf 100644 --- a/dart/test/organization_links_test.dart +++ b/dart/test/organization_links_test.dart @@ -10,9 +10,6 @@ void main() { // final instance = OrganizationLinks(); group('test OrganizationLinks', () { - // OrganizationLinksApplication application - test('to test the property `application`', () async {}); - // OrganizationLinksBusinessActivity businessActivity test('to test the property `businessActivity`', () async {}); diff --git a/swagger-v3.json b/swagger-v3.json index 79882cc2a..ce7fa46b9 100644 --- a/swagger-v3.json +++ b/swagger-v3.json @@ -18,6 +18,131 @@ } ], "paths": { + "/applications/{identifier}": { + "get": { + "operationId": "getApplication", + "tags": [ + "Application" + ], + "responses": { + "200": { + "description": "Application resource", + "content": { + "application/hal+json": { + "schema": { + "$ref": "#/components/schemas/Application.jsonhal-Read" + } + } + } + }, + "404": { + "description": "Resource not found" + } + }, + "summary": "Retrieves a Application resource.", + "description": "Retrieves a Application resource.", + "parameters": [ + { + "name": "identifier", + "in": "path", + "description": "Application identifier", + "required": true, + "deprecated": false, + "allowEmptyValue": false, + "schema": { + "type": "string" + }, + "style": "simple", + "explode": false, + "allowReserved": false + }, + { + "name": "Accept-Language", + "in": "header", + "description": "", + "required": false, + "deprecated": false, + "allowEmptyValue": false, + "schema": { + "type": "string", + "format": "string", + "description": "The preferred language of the user, in ISO 639-1 format", + "default": "en-US", + "enum": [ + "en-US", + "es-ES", + "fr-FR" + ] + }, + "style": "simple", + "explode": false, + "allowReserved": false + }, + { + "name": "X-Date-Time", + "in": "header", + "description": "", + "required": false, + "deprecated": false, + "allowEmptyValue": false, + "schema": { + "type": "string", + "format": "date-time" + }, + "style": "simple", + "explode": false, + "allowReserved": false + }, + { + "name": "X-Keyclic-App", + "in": "header", + "description": "", + "required": true, + "deprecated": false, + "allowEmptyValue": false, + "schema": { + "type": "string", + "format": "string" + }, + "style": "simple", + "explode": false, + "allowReserved": false + }, + { + "name": "X-Keyclic-App-Platform", + "in": "header", + "description": "", + "required": false, + "deprecated": false, + "allowEmptyValue": false, + "schema": { + "type": "string", + "format": "string" + }, + "style": "simple", + "explode": false, + "allowReserved": false + }, + { + "name": "X-Keyclic-App-Version", + "in": "header", + "description": "", + "required": false, + "deprecated": false, + "allowEmptyValue": false, + "schema": { + "type": "string", + "format": "string" + }, + "style": "simple", + "explode": false, + "allowReserved": false + } + ], + "deprecated": false + }, + "parameters": [] + }, "/asset-places": { "get": { "operationId": "getPlaceCollection", @@ -20283,6 +20408,130 @@ }, "components": { "schemas": { + "About.jsonhal-Read": { + "type": "object", + "description": "", + "deprecated": false, + "required": [ + "name" + ], + "properties": { + "name": { + "minLength": 1, + "maxLength": 255, + "type": "string", + "nullable": true + }, + "text": { + "type": "string", + "nullable": true + } + } + }, + "Agreement.jsonhal-Read": { + "type": "object", + "description": "", + "deprecated": false, + "properties": { + "olderThan": { + "$ref": "#/components/schemas/OlderThan.jsonhal-Read" + }, + "privacyPolicy": { + "$ref": "#/components/schemas/PrivacyPolicy.jsonhal-Read" + }, + "termsOfService": { + "$ref": "#/components/schemas/TermsOfService.jsonhal-Read" + } + } + }, + "Application.jsonhal-Read": { + "type": "object", + "description": "", + "deprecated": false, + "properties": { + "_links": { + "type": "object", + "properties": { + "self": { + "type": "object", + "properties": { + "href": { + "type": "string", + "format": "iri-reference" + } + } + }, + "knowledgeBase": { + "type": "object", + "properties": { + "href": { + "type": "string", + "format": "iri-reference" + } + }, + "nullable": true + } + } + }, + "about": { + "$ref": "#/components/schemas/About.jsonhal-Read" + }, + "agreement": { + "$ref": "#/components/schemas/Agreement.jsonhal-Read" + }, + "configuration": { + "$ref": "#/components/schemas/Configuration.jsonhal-Read" + }, + "contactPoints": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ContactPoint.jsonhal-Application-Read" + } + }, + "name": { + "minLength": 1, + "maxLength": 255, + "type": "string" + }, + "token": { + "minLength": 1, + "maxLength": 255, + "description": "The token of the Application, which is used in request application header, to define the\ncontext of the current application.", + "type": "string" + }, + "version": { + "pattern": "^(.*(^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-([\\da-zA-Z-]+(\\.[\\da-zA-Z-]+)*))?(?:\\+([\\da-zA-Z-]+(\\.[\\da-zA-Z-]+)*))?$).*)$", + "type": "string" + }, + "id": { + "readOnly": true, + "description": "The resource identifier.", + "type": "string" + }, + "createdAt": { + "readOnly": true, + "description": "The date and time when the resource was created, in UTC format.", + "type": "string", + "format": "date-time" + }, + "updatedAt": { + "readOnly": true, + "description": "The date and time when the resource was updated, in UTC format.", + "type": "string", + "format": "date-time" + }, + "type": { + "readOnly": true, + "type": "string", + "nullable": true + } + }, + "required": [ + "name", + "token", + "version" + ] + }, "Archiving.jsonhal-OrganizationPreference-Read": { "type": "object", "description": "", @@ -20978,6 +21227,18 @@ } } }, + "Configuration.jsonhal-Read": { + "type": "object", + "description": "", + "deprecated": false, + "properties": { + "public": { + "default": true, + "example": true, + "type": "boolean" + } + } + }, "Connection.jsonhal-auth-profile.read": { "type": "object", "description": "", @@ -21135,6 +21396,35 @@ "organization" ] }, + "ContactPoint.jsonhal-Application-Read": { + "type": "object", + "description": "", + "deprecated": false, + "properties": { + "id": { + "readOnly": true, + "description": "The resource identifier.", + "type": "string" + }, + "email": { + "type": "string", + "nullable": true + }, + "telephone": { + "type": "string", + "nullable": true + }, + "name": { + "type": "string", + "nullable": true + }, + "type": { + "readOnly": true, + "type": "string", + "nullable": true + } + } + }, "ContactPoint-Write": { "type": "object", "description": "", @@ -22763,6 +23053,17 @@ } } }, + "OlderThan.jsonhal-Read": { + "type": "object", + "description": "", + "deprecated": false, + "properties": { + "content": { + "type": "string", + "nullable": true + } + } + }, "Organization.jsonhal-Read": { "type": "object", "description": "", @@ -23351,6 +23652,17 @@ } } }, + "PrivacyPolicy.jsonhal-Read": { + "type": "object", + "description": "", + "deprecated": false, + "properties": { + "content": { + "type": "string", + "nullable": true + } + } + }, "Profile.ProfileInput": { "type": "object", "description": "Retrieve authentication profile.", @@ -24558,6 +24870,17 @@ } } }, + "TermsOfService.jsonhal-Read": { + "type": "object", + "description": "", + "deprecated": false, + "properties": { + "content": { + "type": "string", + "nullable": true + } + } + }, "Ticket.CreateTicketCommand-Write": { "type": "object", "description": "", diff --git a/swagger.json b/swagger.json index 85ad003f3..1224420b3 100644 --- a/swagger.json +++ b/swagger.json @@ -23,79 +23,6 @@ "application\/hal+json;charset=UTF-8" ], "paths": { - "\/applications\/{application}": { - "get": { - "tags": [ - "Application" - ], - "summary": "Retrieve one Application resource.", - "externalDocs": { - "description": "Keyclic API documentation.", - "url": "https:\/\/docs.keyclic.com\/fr\/master\/overview.html" - }, - "operationId": "getApplication", - "consumes": [ - "application\/json;charset=UTF-8" - ], - "produces": [ - "application\/hal+json;charset=UTF-8" - ], - "parameters": [ - { - "$ref": "#\/parameters\/accept-language" - }, - { - "$ref": "#\/parameters\/x-date-time" - }, - { - "$ref": "#\/parameters\/x-keyclic-app" - }, - { - "$ref": "#\/parameters\/x-keyclic-app-platform" - }, - { - "$ref": "#\/parameters\/x-keyclic-app-version" - }, - { - "description": "The identifier of the resource.", - "format": "uuid", - "in": "path", - "name": "application", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "", - "schema": { - "$ref": "#\/definitions\/Application" - } - }, - "400": { - "description": "Returned when the request is invalid.", - "schema": { - "$ref": "#\/definitions\/Problem" - } - }, - "404": { - "description": "Returned when the resource is not found", - "schema": { - "$ref": "#\/definitions\/Problem" - } - }, - "500": { - "description": "", - "schema": { - "$ref": "#\/definitions\/Problem" - } - } - }, - "schemes": [ - "https" - ] - } - }, "\/articles\/{article}": { "get": { "tags": [ @@ -15307,223 +15234,6 @@ } } }, - "AgreementOlderThan": { - "type": "object", - "properties": { - "content": { - "format": "string", - "type": "string" - } - } - }, - "AgreementPrivacyPolicy": { - "type": "object", - "properties": { - "content": { - "format": "string", - "type": "string" - } - } - }, - "AgreementTermsOfService": { - "type": "object", - "properties": { - "content": { - "format": "string", - "type": "string" - } - } - }, - "Application": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "knowledgeBase": { - "$ref": "#\/definitions\/ApplicationLinksKnowledgeBase" - }, - "self": { - "$ref": "#\/definitions\/ApplicationLinksSelf" - } - } - }, - "about": { - "$ref": "#\/definitions\/ApplicationAbout" - }, - "agreement": { - "$ref": "#\/definitions\/ApplicationAgreement" - }, - "configuration": { - "$ref": "#\/definitions\/ApplicationConfiguration" - }, - "contactPoints": { - "items": { - "$ref": "#\/definitions\/ApplicationContactPoint" - }, - "type": "array" - }, - "createdAt": { - "format": "date-time", - "readOnly": true, - "type": "string" - }, - "id": { - "format": "uuid", - "pattern": "^\\[0-9A-Fa-f]{8}[-]?[0-9A-Fa-f]{4}[-]?[0-9A-Fa-f]{4}[-]?[0-9A-Fa-f]{4}[-]?[0-9A-Fa-f]{12}", - "readOnly": true, - "type": "string" - }, - "name": { - "format": "string", - "maxLength": 255, - "minLength": 1, - "type": "string" - }, - "token": { - "format": "string", - "maxLength": 255, - "minLength": 1, - "type": "string" - }, - "type": { - "format": "string", - "type": "string" - }, - "updatedAt": { - "format": "date-time", - "readOnly": true, - "type": "string" - }, - "version": { - "format": "string", - "maxLength": 255, - "pattern": "\/^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-([\\da-zA-Z-]+(\\.[\\da-zA-Z-]+)*))?(?:\\+([\\da-zA-Z-]+(\\.[\\da-zA-Z-]+)*))?$\/", - "type": "string" - } - }, - "required": [ - "name", - "token", - "version" - ] - }, - "ApplicationAbout": { - "type": "object", - "properties": { - "name": { - "format": "string", - "maxLength": 255, - "minLength": 1, - "type": "string" - }, - "text": { - "format": "string", - "type": "string" - } - } - }, - "ApplicationAgreement": { - "type": "object", - "properties": { - "olderThan": { - "$ref": "#\/definitions\/AgreementOlderThan" - }, - "privacyPolicy": { - "$ref": "#\/definitions\/AgreementPrivacyPolicy" - }, - "termsOfService": { - "$ref": "#\/definitions\/AgreementTermsOfService" - } - } - }, - "ApplicationConfiguration": { - "type": "object", - "properties": { - "public": { - "type": "boolean" - } - } - }, - "ApplicationContactPoint": { - "type": "object", - "properties": { - "email": { - "format": "string", - "type": "string" - }, - "id": { - "format": "uuid", - "pattern": "^\\[0-9A-Fa-f]{8}[-]?[0-9A-Fa-f]{4}[-]?[0-9A-Fa-f]{4}[-]?[0-9A-Fa-f]{4}[-]?[0-9A-Fa-f]{12}", - "readOnly": true, - "type": "string" - }, - "name": { - "format": "string", - "type": "string" - }, - "telephone": { - "format": "string", - "type": "string" - }, - "type": { - "format": "string", - "type": "string" - } - } - }, - "ApplicationLinksKnowledgeBase": { - "type": "object", - "properties": { - "href": { - "description": "The URI of the knowledgeBase associated to the given application.", - "type": "string", - "format": "string" - }, - "iriTemplate": { - "$ref": "#\/definitions\/ApplicationLinksKnowledgeBaseIriTemplate" - } - } - }, - "ApplicationLinksKnowledgeBaseIriTemplate": { - "type": "object", - "properties": { - "mapping": { - "type": "object", - "properties": { - "knowledgeBase": { - "type": "string" - } - } - } - } - }, - "ApplicationLinksSelf": { - "type": "object", - "properties": { - "href": { - "description": "The URI of the self associated to the given application.", - "type": "string", - "format": "string" - }, - "iriTemplate": { - "$ref": "#\/definitions\/ApplicationLinksSelfIriTemplate" - } - } - }, - "ApplicationLinksSelfIriTemplate": { - "type": "object", - "properties": { - "mapping": { - "type": "object", - "properties": { - "application": { - "type": "string" - } - } - } - } - }, "Article": { "type": "object", "properties": { @@ -20444,9 +20154,6 @@ "_links": { "type": "object", "properties": { - "application": { - "$ref": "#\/definitions\/OrganizationLinksApplication" - }, "businessActivity": { "$ref": "#\/definitions\/OrganizationLinksBusinessActivity" }, @@ -20536,32 +20243,6 @@ } } }, - "OrganizationLinksApplication": { - "type": "object", - "properties": { - "href": { - "description": "The URI of the application associated to the given organization.", - "type": "string", - "format": "string" - }, - "iriTemplate": { - "$ref": "#\/definitions\/OrganizationLinksApplicationIriTemplate" - } - } - }, - "OrganizationLinksApplicationIriTemplate": { - "type": "object", - "properties": { - "mapping": { - "type": "object", - "properties": { - "application": { - "type": "string" - } - } - } - } - }, "OrganizationLinksBusinessActivity": { "type": "object", "properties": {