From 1648b8309304a2d85a2a6259f7cab975632d9916 Mon Sep 17 00:00:00 2001 From: "Mike P. Sinn" Date: Tue, 26 Mar 2019 13:10:33 -0500 Subject: [PATCH] 5.10.32613 --- composer.json | 2 +- docs/Api/AnalyticsApi.md | 40 +- docs/Api/AppSettingsApi.md | 4 +- docs/Api/AuthenticationApi.md | 12 +- docs/Api/MeasurementsApi.md | 20 +- docs/Api/StudiesApi.md | 142 +++-- docs/Api/VariablesApi.md | 6 +- docs/Model/Card.md | 1 + docs/Model/DataSource.md | 4 +- docs/Model/Measurement.md | 4 +- docs/Model/ParticipantInstruction.md | 4 +- docs/Model/Study.md | 2 +- docs/Model/TrackingReminder.md | 4 +- docs/Model/TrackingReminderNotification.md | 4 +- docs/Model/User.md | 3 +- docs/Model/Variable.md | 12 +- docs/Model/VariableCategory.md | 4 +- lib/Api/ActivitiesApi.php | 7 +- lib/Api/AnalyticsApi.php | 155 +++-- lib/Api/AppSettingsApi.php | 17 +- lib/Api/AuthenticationApi.php | 39 +- lib/Api/ConnectorsApi.php | 13 +- lib/Api/FeedApi.php | 9 +- lib/Api/FriendsApi.php | 7 +- lib/Api/GroupsApi.php | 7 +- lib/Api/MeasurementsApi.php | 87 ++- lib/Api/MessagesApi.php | 7 +- lib/Api/NotificationsApi.php | 9 +- lib/Api/RemindersApi.php | 13 +- lib/Api/SharesApi.php | 11 +- lib/Api/StudiesApi.php | 540 +++++++++++++----- lib/Api/UnitsApi.php | 7 +- lib/Api/UserApi.php | 11 +- lib/Api/VariablesApi.php | 42 +- lib/Api/XprofileApi.php | 7 +- lib/ApiException.php | 2 +- lib/Configuration.php | 2 +- lib/HeaderSelector.php | 3 +- lib/Model/ActivitiesResponse.php | 8 +- lib/Model/Activity.php | 47 +- lib/Model/AppSettings.php | 8 +- lib/Model/AppSettingsResponse.php | 11 +- lib/Model/AuthorizedClients.php | 14 +- lib/Model/Button.php | 11 +- lib/Model/Card.php | 38 +- lib/Model/Chart.php | 5 +- lib/Model/CommonResponse.php | 11 +- lib/Model/ConnectInstructions.php | 8 +- lib/Model/ConversionStep.php | 19 +- lib/Model/Correlation.php | 170 +----- lib/Model/DataSource.php | 48 +- lib/Model/DeviceToken.php | 11 +- lib/Model/Explanation.php | 20 +- lib/Model/ExplanationStartTracking.php | 14 +- lib/Model/FeedResponse.php | 14 +- lib/Model/Friend.php | 23 +- lib/Model/FriendsResponse.php | 8 +- lib/Model/GetConnectorsResponse.php | 11 +- lib/Model/GetCorrelationsDataResponse.php | 11 +- lib/Model/GetCorrelationsResponse.php | 11 +- lib/Model/GetSharesResponse.php | 11 +- lib/Model/GetStudiesResponse.php | 11 +- ...tTrackingReminderNotificationsResponse.php | 11 +- lib/Model/Group.php | 32 +- lib/Model/GroupsMember.php | 41 +- lib/Model/GroupsMembersResponse.php | 8 +- lib/Model/GroupsResponse.php | 8 +- lib/Model/Image.php | 14 +- lib/Model/InputField.php | 19 +- lib/Model/JsonErrorResponse.php | 8 +- lib/Model/Measurement.php | 32 +- lib/Model/MeasurementDelete.php | 8 +- lib/Model/MeasurementItem.php | 11 +- lib/Model/MeasurementSet.php | 33 +- lib/Model/MeasurementUpdate.php | 8 +- lib/Model/MessagesMessage.php | 23 +- lib/Model/MessagesMessagesResponse.php | 8 +- lib/Model/MessagesNotice.php | 20 +- lib/Model/MessagesNoticesResponse.php | 8 +- lib/Model/MessagesRecipient.php | 23 +- lib/Model/MessagesRecipientsResponse.php | 8 +- lib/Model/ModelInterface.php | 2 +- lib/Model/Notification.php | 29 +- lib/Model/NotificationsResponse.php | 8 +- lib/Model/Pair.php | 26 +- lib/Model/ParticipantInstruction.php | 9 +- lib/Model/PostMeasurementsDataResponse.php | 5 +- lib/Model/PostMeasurementsResponse.php | 11 +- lib/Model/PostStudyCreateResponse.php | 5 +- lib/Model/PostStudyPublishResponse.php | 5 +- .../PostTrackingRemindersDataResponse.php | 5 +- lib/Model/PostTrackingRemindersResponse.php | 11 +- lib/Model/PostUserSettingsDataResponse.php | 5 +- lib/Model/PostUserSettingsResponse.php | 11 +- lib/Model/ShareInvitationBody.php | 8 +- lib/Model/Study.php | 34 +- lib/Model/StudyCharts.php | 5 +- lib/Model/StudyCreationBody.php | 22 +- lib/Model/StudyHtml.php | 11 +- lib/Model/StudyImages.php | 14 +- lib/Model/StudyJoinResponse.php | 5 +- lib/Model/StudyLinks.php | 23 +- lib/Model/StudySharing.php | 14 +- lib/Model/StudyText.php | 23 +- lib/Model/StudyVotes.php | 11 +- lib/Model/TrackingReminder.php | 37 +- lib/Model/TrackingReminderDelete.php | 8 +- lib/Model/TrackingReminderNotification.php | 40 +- .../TrackingReminderNotificationAction.php | 17 +- .../TrackingReminderNotificationPost.php | 19 +- ...kingReminderNotificationTrackAllAction.php | 17 +- lib/Model/Unit.php | 31 +- lib/Model/UnitCategory.php | 8 +- lib/Model/User.php | 55 +- lib/Model/UserBlog.php | 14 +- lib/Model/UserBlogsResponse.php | 8 +- lib/Model/UserTag.php | 14 +- lib/Model/UserVariableDelete.php | 8 +- lib/Model/Variable.php | 53 +- lib/Model/VariableCategory.php | 20 +- lib/Model/VariableCharts.php | 5 +- lib/Model/Vote.php | 36 +- lib/Model/VoteDelete.php | 11 +- lib/Model/XprofileDataResponse.php | 8 +- lib/Model/XprofileDatum.php | 20 +- lib/Model/XprofileField.php | 41 +- lib/Model/XprofileFieldsResponse.php | 8 +- lib/Model/XprofileGroup.php | 20 +- lib/Model/XprofileGroupsResponse.php | 8 +- lib/ObjectSerializer.php | 8 +- test/Api/ActivitiesApiTest.php | 2 +- test/Api/AnalyticsApiTest.php | 2 +- test/Api/AppSettingsApiTest.php | 2 +- test/Api/AuthenticationApiTest.php | 2 +- test/Api/ConnectorsApiTest.php | 2 +- test/Api/FeedApiTest.php | 2 +- test/Api/FriendsApiTest.php | 2 +- test/Api/GroupsApiTest.php | 2 +- test/Api/MeasurementsApiTest.php | 2 +- test/Api/MessagesApiTest.php | 2 +- test/Api/NotificationsApiTest.php | 2 +- test/Api/RemindersApiTest.php | 2 +- test/Api/SharesApiTest.php | 2 +- test/Api/StudiesApiTest.php | 2 +- test/Api/UnitsApiTest.php | 2 +- test/Api/UserApiTest.php | 2 +- test/Api/VariablesApiTest.php | 2 +- test/Api/XprofileApiTest.php | 2 +- test/Model/ActivitiesResponseTest.php | 7 +- test/Model/ActivityTest.php | 7 +- test/Model/AppSettingsResponseTest.php | 7 +- test/Model/AppSettingsTest.php | 7 +- test/Model/AuthorizedClientsTest.php | 7 +- test/Model/ButtonTest.php | 7 +- test/Model/CardTest.php | 14 +- test/Model/ChartTest.php | 7 +- test/Model/CommonResponseTest.php | 7 +- test/Model/ConnectInstructionsTest.php | 7 +- test/Model/ConversionStepTest.php | 7 +- test/Model/CorrelationTest.php | 7 +- test/Model/DataSourceTest.php | 7 +- test/Model/DeviceTokenTest.php | 7 +- test/Model/ExplanationStartTrackingTest.php | 7 +- test/Model/ExplanationTest.php | 7 +- test/Model/FeedResponseTest.php | 7 +- test/Model/FriendTest.php | 7 +- test/Model/FriendsResponseTest.php | 7 +- test/Model/GetConnectorsResponseTest.php | 7 +- .../Model/GetCorrelationsDataResponseTest.php | 7 +- test/Model/GetCorrelationsResponseTest.php | 7 +- test/Model/GetSharesResponseTest.php | 7 +- test/Model/GetStudiesResponseTest.php | 7 +- ...ckingReminderNotificationsResponseTest.php | 7 +- test/Model/GroupTest.php | 7 +- test/Model/GroupsMemberTest.php | 7 +- test/Model/GroupsMembersResponseTest.php | 7 +- test/Model/GroupsResponseTest.php | 7 +- test/Model/ImageTest.php | 7 +- test/Model/InputFieldTest.php | 7 +- test/Model/JsonErrorResponseTest.php | 7 +- test/Model/MeasurementDeleteTest.php | 7 +- test/Model/MeasurementItemTest.php | 7 +- test/Model/MeasurementSetTest.php | 7 +- test/Model/MeasurementTest.php | 7 +- test/Model/MeasurementUpdateTest.php | 7 +- test/Model/MessagesMessageTest.php | 7 +- test/Model/MessagesMessagesResponseTest.php | 7 +- test/Model/MessagesNoticeTest.php | 7 +- test/Model/MessagesNoticesResponseTest.php | 7 +- test/Model/MessagesRecipientTest.php | 7 +- test/Model/MessagesRecipientsResponseTest.php | 7 +- test/Model/NotificationTest.php | 7 +- test/Model/NotificationsResponseTest.php | 7 +- test/Model/PairTest.php | 7 +- test/Model/ParticipantInstructionTest.php | 7 +- .../PostMeasurementsDataResponseTest.php | 7 +- test/Model/PostMeasurementsResponseTest.php | 7 +- test/Model/PostStudyCreateResponseTest.php | 7 +- test/Model/PostStudyPublishResponseTest.php | 7 +- .../PostTrackingRemindersDataResponseTest.php | 7 +- .../PostTrackingRemindersResponseTest.php | 7 +- .../PostUserSettingsDataResponseTest.php | 7 +- test/Model/PostUserSettingsResponseTest.php | 7 +- test/Model/ShareInvitationBodyTest.php | 7 +- test/Model/StudyChartsTest.php | 7 +- test/Model/StudyCreationBodyTest.php | 7 +- test/Model/StudyHtmlTest.php | 7 +- test/Model/StudyImagesTest.php | 7 +- test/Model/StudyJoinResponseTest.php | 7 +- test/Model/StudyLinksTest.php | 7 +- test/Model/StudySharingTest.php | 7 +- test/Model/StudyTest.php | 11 +- test/Model/StudyTextTest.php | 7 +- test/Model/StudyVotesTest.php | 7 +- test/Model/TrackingReminderDeleteTest.php | 7 +- ...TrackingReminderNotificationActionTest.php | 7 +- .../TrackingReminderNotificationPostTest.php | 7 +- .../TrackingReminderNotificationTest.php | 7 +- ...ReminderNotificationTrackAllActionTest.php | 7 +- test/Model/TrackingReminderTest.php | 7 +- test/Model/UnitCategoryTest.php | 7 +- test/Model/UnitTest.php | 7 +- test/Model/UserBlogTest.php | 7 +- test/Model/UserBlogsResponseTest.php | 7 +- test/Model/UserTagTest.php | 7 +- test/Model/UserTest.php | 14 +- test/Model/UserVariableDeleteTest.php | 7 +- test/Model/VariableCategoryTest.php | 7 +- test/Model/VariableChartsTest.php | 7 +- test/Model/VariableTest.php | 7 +- test/Model/VoteDeleteTest.php | 7 +- test/Model/VoteTest.php | 7 +- test/Model/XprofileDataResponseTest.php | 7 +- test/Model/XprofileDatumTest.php | 7 +- test/Model/XprofileFieldTest.php | 7 +- test/Model/XprofileFieldsResponseTest.php | 7 +- test/Model/XprofileGroupTest.php | 7 +- test/Model/XprofileGroupsResponseTest.php | 7 +- 238 files changed, 1525 insertions(+), 2104 deletions(-) diff --git a/composer.json b/composer.json index e1e5f38..89ccb1f 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "quantimodo/quantimodo-sdk-php", - "version": "5.9.90517", + "version": "5.10.32613", "description": "", "keywords": [ "swagger", diff --git a/docs/Api/AnalyticsApi.md b/docs/Api/AnalyticsApi.md index fcaaebc..fe39c79 100644 --- a/docs/Api/AnalyticsApi.md +++ b/docs/Api/AnalyticsApi.md @@ -9,7 +9,7 @@ Method | HTTP request | Description # **getCorrelationExplanations** -> \QuantiModo\Client\Model\Correlation[] getCorrelationExplanations($cause_variable_name, $effect_variable_name) +> \QuantiModo\Client\Model\Correlation[] getCorrelationExplanations($cause_variable_name, $effect_variable_name, $cause_variable_id, $effect_variable_id, $predictor_variable_name, $outcome_variable_name) Get correlation explanations @@ -33,11 +33,15 @@ $apiInstance = new QuantiModo\Client\Api\AnalyticsApi( new GuzzleHttp\Client(), $config ); -$cause_variable_name = "cause_variable_name_example"; // string | Name of the hypothetical predictor variable. Ex: Sleep Duration -$effect_variable_name = "effect_variable_name_example"; // string | Name of the hypothetical outcome variable. Ex: Overall Mood +$cause_variable_name = "cause_variable_name_example"; // string | Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration +$effect_variable_name = "effect_variable_name_example"; // string | Deprecated: Name of the outcome variable of interest. Ex: Overall Mood +$cause_variable_id = 56; // int | Variable id of the hypothetical predictor variable. Ex: 1398 +$effect_variable_id = 56; // int | Variable id of the outcome variable of interest. Ex: 1398 +$predictor_variable_name = "predictor_variable_name_example"; // string | Name of the hypothetical predictor variable. Ex: Sleep Duration +$outcome_variable_name = "outcome_variable_name_example"; // string | Name of the outcome variable of interest. Ex: Overall Mood try { - $result = $apiInstance->getCorrelationExplanations($cause_variable_name, $effect_variable_name); + $result = $apiInstance->getCorrelationExplanations($cause_variable_name, $effect_variable_name, $cause_variable_id, $effect_variable_id, $predictor_variable_name, $outcome_variable_name); print_r($result); } catch (Exception $e) { echo 'Exception when calling AnalyticsApi->getCorrelationExplanations: ', $e->getMessage(), PHP_EOL; @@ -49,8 +53,12 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **cause_variable_name** | **string**| Name of the hypothetical predictor variable. Ex: Sleep Duration | [optional] - **effect_variable_name** | **string**| Name of the hypothetical outcome variable. Ex: Overall Mood | [optional] + **cause_variable_name** | **string**| Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration | [optional] + **effect_variable_name** | **string**| Deprecated: Name of the outcome variable of interest. Ex: Overall Mood | [optional] + **cause_variable_id** | **int**| Variable id of the hypothetical predictor variable. Ex: 1398 | [optional] + **effect_variable_id** | **int**| Variable id of the outcome variable of interest. Ex: 1398 | [optional] + **predictor_variable_name** | **string**| Name of the hypothetical predictor variable. Ex: Sleep Duration | [optional] + **outcome_variable_name** | **string**| Name of the outcome variable of interest. Ex: Overall Mood | [optional] ### Return type @@ -68,7 +76,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getCorrelations** -> \QuantiModo\Client\Model\GetCorrelationsResponse getCorrelations($cause_variable_name, $effect_variable_name, $sort, $limit, $offset, $user_id, $correlation_coefficient, $updated_at, $outcomes_of_interest, $client_id, $common_only, $platform) +> \QuantiModo\Client\Model\GetCorrelationsResponse getCorrelations($cause_variable_name, $effect_variable_name, $cause_variable_id, $effect_variable_id, $predictor_variable_name, $outcome_variable_name, $sort, $limit, $offset, $user_id, $correlation_coefficient, $updated_at, $outcomes_of_interest, $client_id, $common_only, $platform) Get correlations @@ -92,8 +100,12 @@ $apiInstance = new QuantiModo\Client\Api\AnalyticsApi( new GuzzleHttp\Client(), $config ); -$cause_variable_name = "cause_variable_name_example"; // string | Name of the hypothetical predictor variable. Ex: Sleep Duration -$effect_variable_name = "effect_variable_name_example"; // string | Name of the hypothetical outcome variable. Ex: Overall Mood +$cause_variable_name = "cause_variable_name_example"; // string | Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration +$effect_variable_name = "effect_variable_name_example"; // string | Deprecated: Name of the outcome variable of interest. Ex: Overall Mood +$cause_variable_id = 56; // int | Variable id of the hypothetical predictor variable. Ex: 1398 +$effect_variable_id = 56; // int | Variable id of the outcome variable of interest. Ex: 1398 +$predictor_variable_name = "predictor_variable_name_example"; // string | Name of the hypothetical predictor variable. Ex: Sleep Duration +$outcome_variable_name = "outcome_variable_name_example"; // string | Name of the outcome variable of interest. Ex: Overall Mood $sort = "sort_example"; // string | Sort by one of the listed field names. If the field name is prefixed with `-`, it will sort in descending order. $limit = 100; // int | The LIMIT is used to limit the number of results returned. So if youhave 1000 results, but only want to the first 10, you would set this to 10 and offset to 0. The maximum limit is 200 records. $offset = 56; // int | OFFSET says to skip that many rows before beginning to return rows to the client. OFFSET 0 is the same as omitting the OFFSET clause.If both OFFSET and LIMIT appear, then OFFSET rows are skipped before starting to count the LIMIT rows that are returned. @@ -106,7 +118,7 @@ $common_only = true; // bool | Return only public, anonymized and aggregated pop $platform = "platform_example"; // string | Ex: chrome, android, ios, web try { - $result = $apiInstance->getCorrelations($cause_variable_name, $effect_variable_name, $sort, $limit, $offset, $user_id, $correlation_coefficient, $updated_at, $outcomes_of_interest, $client_id, $common_only, $platform); + $result = $apiInstance->getCorrelations($cause_variable_name, $effect_variable_name, $cause_variable_id, $effect_variable_id, $predictor_variable_name, $outcome_variable_name, $sort, $limit, $offset, $user_id, $correlation_coefficient, $updated_at, $outcomes_of_interest, $client_id, $common_only, $platform); print_r($result); } catch (Exception $e) { echo 'Exception when calling AnalyticsApi->getCorrelations: ', $e->getMessage(), PHP_EOL; @@ -118,8 +130,12 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **cause_variable_name** | **string**| Name of the hypothetical predictor variable. Ex: Sleep Duration | [optional] - **effect_variable_name** | **string**| Name of the hypothetical outcome variable. Ex: Overall Mood | [optional] + **cause_variable_name** | **string**| Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration | [optional] + **effect_variable_name** | **string**| Deprecated: Name of the outcome variable of interest. Ex: Overall Mood | [optional] + **cause_variable_id** | **int**| Variable id of the hypothetical predictor variable. Ex: 1398 | [optional] + **effect_variable_id** | **int**| Variable id of the outcome variable of interest. Ex: 1398 | [optional] + **predictor_variable_name** | **string**| Name of the hypothetical predictor variable. Ex: Sleep Duration | [optional] + **outcome_variable_name** | **string**| Name of the outcome variable of interest. Ex: Overall Mood | [optional] **sort** | **string**| Sort by one of the listed field names. If the field name is prefixed with `-`, it will sort in descending order. | [optional] **limit** | **int**| The LIMIT is used to limit the number of results returned. So if youhave 1000 results, but only want to the first 10, you would set this to 10 and offset to 0. The maximum limit is 200 records. | [optional] [default to 100] **offset** | **int**| OFFSET says to skip that many rows before beginning to return rows to the client. OFFSET 0 is the same as omitting the OFFSET clause.If both OFFSET and LIMIT appear, then OFFSET rows are skipped before starting to count the LIMIT rows that are returned. | [optional] diff --git a/docs/Api/AppSettingsApi.md b/docs/Api/AppSettingsApi.md index 9e125ac..a93e271 100644 --- a/docs/Api/AppSettingsApi.md +++ b/docs/Api/AppSettingsApi.md @@ -25,7 +25,7 @@ $apiInstance = new QuantiModo\Client\Api\AppSettingsApi( new GuzzleHttp\Client() ); $client_id = "client_id_example"; // string | Your QuantiModo client id can be obtained by creating an app at https://builder.quantimo.do -$client_secret = "client_secret_example"; // string | This is the secret for your obtained clientId. We use this to ensure that only your application uses the clientId. Obtain this by creating a free application at [https://app.quantimo.do/api/v2/apps](https://app.quantimo.do/api/v2/apps). +$client_secret = "client_secret_example"; // string | This is the secret for your obtained clientId. We use this to ensure that only your application uses the clientId. Obtain this by creating a free application at [https://builder.quantimo.do](https://builder.quantimo.do). $platform = "platform_example"; // string | Ex: chrome, android, ios, web try { @@ -42,7 +42,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **client_id** | **string**| Your QuantiModo client id can be obtained by creating an app at https://builder.quantimo.do | [optional] - **client_secret** | **string**| This is the secret for your obtained clientId. We use this to ensure that only your application uses the clientId. Obtain this by creating a free application at [https://app.quantimo.do/api/v2/apps](https://app.quantimo.do/api/v2/apps). | [optional] + **client_secret** | **string**| This is the secret for your obtained clientId. We use this to ensure that only your application uses the clientId. Obtain this by creating a free application at [https://builder.quantimo.do](https://builder.quantimo.do). | [optional] **platform** | **string**| Ex: chrome, android, ios, web | [optional] ### Return type diff --git a/docs/Api/AuthenticationApi.md b/docs/Api/AuthenticationApi.md index 2977f03..cabedae 100644 --- a/docs/Api/AuthenticationApi.md +++ b/docs/Api/AuthenticationApi.md @@ -14,7 +14,7 @@ Method | HTTP request | Description Get a user access token -Client provides authorization token obtained from /api/v3/oauth2/authorize to this endpoint and receives an access token. Access token can then be used to query API endpoints. ### Request Access Token After user approves your access to the given scope form the https:/app.quantimo.do/v2/oauth2/authorize endpoint, you'll receive an authorization code to request an access token. This time make a `POST` request to `/api/v2/oauth/access_token` with parameters including: * `grant_type` Can be `authorization_code` or `refresh_token` since we are getting the `access_token` for the first time we don't have a `refresh_token` so this must be `authorization_code`. * `code` Authorization code you received with the previous request. * `redirect_uri` Your application's redirect url. ### Refreshing Access Token Access tokens expire at some point, to continue using our api you need to refresh them with `refresh_token` you received along with the `access_token`. To do this make a `POST` request to `/api/v2/oauth/access_token` with correct parameters, which are: * `grant_type` This time grant type must be `refresh_token` since we have it. * `clientId` Your application's client id. * `client_secret` Your application's client secret. * `refresh_token` The refresh token you received with the `access_token`. Every request you make to this endpoint will give you a new refresh token and make the old one expired. So you can keep getting new access tokens with new refresh tokens. ### Using Access Token Currently we support 2 ways for this, you can't use both at the same time. * Adding access token to the request header as `Authorization: Bearer {access_token}` * Adding to the url as a query parameter `?access_token={access_token}` You can read more about OAuth2 from [here](http://oauth.net/2/) +Client provides authorization token obtained from /api/v3/oauth2/authorize to this endpoint and receives an access token. Access token can then be used to query API endpoints. ### Request Access Token After user approves your access to the given scope form the https:/app.quantimo.do/v1/oauth2/authorize endpoint, you'll receive an authorization code to request an access token. This time make a `POST` request to `/api/v1/oauth/access_token` with parameters including: * `grant_type` Can be `authorization_code` or `refresh_token` since we are getting the `access_token` for the first time we don't have a `refresh_token` so this must be `authorization_code`. * `code` Authorization code you received with the previous request. * `redirect_uri` Your application's redirect url. ### Refreshing Access Token Access tokens expire at some point, to continue using our api you need to refresh them with `refresh_token` you received along with the `access_token`. To do this make a `POST` request to `/api/v1/oauth/access_token` with correct parameters, which are: * `grant_type` This time grant type must be `refresh_token` since we have it. * `clientId` Your application's client id. * `client_secret` Your application's client secret. * `refresh_token` The refresh token you received with the `access_token`. Every request you make to this endpoint will give you a new refresh token and make the old one expired. So you can keep getting new access tokens with new refresh tokens. ### Using Access Token Currently we support 2 ways for this, you can't use both at the same time. * Adding access token to the request header as `Authorization: Bearer {access_token}` * Adding to the url as a query parameter `?access_token={access_token}` You can read more about OAuth2 from [here](http://oauth.net/2/) ### Example ```php @@ -39,7 +39,7 @@ $code = "code_example"; // string | Authorization code you received with the pre $response_type = "response_type_example"; // string | If the value is code, launches a Basic flow, requiring a POST to the token endpoint to obtain the tokens. If the value is token id_token or id_token token, launches an Implicit flow, requiring the use of Javascript at the redirect URI to retrieve tokens from the URI #fragment. $scope = "scope_example"; // string | Scopes include basic, readmeasurements, and writemeasurements. The `basic` scope allows you to read user info (displayName, email, etc). The `readmeasurements` scope allows one to read a user's data. The `writemeasurements` scope allows you to write user data. Separate multiple scopes by a space. $client_id = "client_id_example"; // string | Your QuantiModo client id can be obtained by creating an app at https://builder.quantimo.do -$client_secret = "client_secret_example"; // string | This is the secret for your obtained clientId. We use this to ensure that only your application uses the clientId. Obtain this by creating a free application at [https://app.quantimo.do/api/v2/apps](https://app.quantimo.do/api/v2/apps). +$client_secret = "client_secret_example"; // string | This is the secret for your obtained clientId. We use this to ensure that only your application uses the clientId. Obtain this by creating a free application at [https://builder.quantimo.do](https://builder.quantimo.do). $redirect_uri = "redirect_uri_example"; // string | The redirect URI is the URL within your client application that will receive the OAuth2 credentials. $state = "state_example"; // string | An opaque string that is round-tripped in the protocol; that is to say, it is returned as a URI parameter in the Basic flow, and in the URI $platform = "platform_example"; // string | Ex: chrome, android, ios, web @@ -61,7 +61,7 @@ Name | Type | Description | Notes **response_type** | **string**| If the value is code, launches a Basic flow, requiring a POST to the token endpoint to obtain the tokens. If the value is token id_token or id_token token, launches an Implicit flow, requiring the use of Javascript at the redirect URI to retrieve tokens from the URI #fragment. | **scope** | **string**| Scopes include basic, readmeasurements, and writemeasurements. The `basic` scope allows you to read user info (displayName, email, etc). The `readmeasurements` scope allows one to read a user's data. The `writemeasurements` scope allows you to write user data. Separate multiple scopes by a space. | **client_id** | **string**| Your QuantiModo client id can be obtained by creating an app at https://builder.quantimo.do | [optional] - **client_secret** | **string**| This is the secret for your obtained clientId. We use this to ensure that only your application uses the clientId. Obtain this by creating a free application at [https://app.quantimo.do/api/v2/apps](https://app.quantimo.do/api/v2/apps). | [optional] + **client_secret** | **string**| This is the secret for your obtained clientId. We use this to ensure that only your application uses the clientId. Obtain this by creating a free application at [https://builder.quantimo.do](https://builder.quantimo.do). | [optional] **redirect_uri** | **string**| The redirect URI is the URL within your client application that will receive the OAuth2 credentials. | [optional] **state** | **string**| An opaque string that is round-tripped in the protocol; that is to say, it is returned as a URI parameter in the Basic flow, and in the URI | [optional] **platform** | **string**| Ex: chrome, android, ios, web | [optional] @@ -86,7 +86,7 @@ void (empty response body) Request Authorization Code -You can implement OAuth2 authentication to your application using our **OAuth2** endpoints. You need to redirect users to `/api/v3/oauth2/authorize` endpoint to get an authorization code and include the parameters below. This page will ask the user if they want to allow a client's application to submit or obtain data from their QM account. It will redirect the user to the url provided by the client application with the code as a query parameter or error in case of an error. See the /api/v2/oauth/access_token endpoint for the next steps. +You can implement OAuth2 authentication to your application using our **OAuth2** endpoints. You need to redirect users to `/api/v3/oauth2/authorize` endpoint to get an authorization code and include the parameters below. This page will ask the user if they want to allow a client's application to submit or obtain data from their QM account. It will redirect the user to the url provided by the client application with the code as a query parameter or error in case of an error. See the /api/v1/oauth/access_token endpoint for the next steps. ### Example ```php @@ -109,7 +109,7 @@ $apiInstance = new QuantiModo\Client\Api\AuthenticationApi( $response_type = "response_type_example"; // string | If the value is code, launches a Basic flow, requiring a POST to the token endpoint to obtain the tokens. If the value is token id_token or id_token token, launches an Implicit flow, requiring the use of Javascript at the redirect URI to retrieve tokens from the URI #fragment. $scope = "scope_example"; // string | Scopes include basic, readmeasurements, and writemeasurements. The `basic` scope allows you to read user info (displayName, email, etc). The `readmeasurements` scope allows one to read a user's data. The `writemeasurements` scope allows you to write user data. Separate multiple scopes by a space. $client_id = "client_id_example"; // string | Your QuantiModo client id can be obtained by creating an app at https://builder.quantimo.do -$client_secret = "client_secret_example"; // string | This is the secret for your obtained clientId. We use this to ensure that only your application uses the clientId. Obtain this by creating a free application at [https://app.quantimo.do/api/v2/apps](https://app.quantimo.do/api/v2/apps). +$client_secret = "client_secret_example"; // string | This is the secret for your obtained clientId. We use this to ensure that only your application uses the clientId. Obtain this by creating a free application at [https://builder.quantimo.do](https://builder.quantimo.do). $redirect_uri = "redirect_uri_example"; // string | The redirect URI is the URL within your client application that will receive the OAuth2 credentials. $state = "state_example"; // string | An opaque string that is round-tripped in the protocol; that is to say, it is returned as a URI parameter in the Basic flow, and in the URI $platform = "platform_example"; // string | Ex: chrome, android, ios, web @@ -129,7 +129,7 @@ Name | Type | Description | Notes **response_type** | **string**| If the value is code, launches a Basic flow, requiring a POST to the token endpoint to obtain the tokens. If the value is token id_token or id_token token, launches an Implicit flow, requiring the use of Javascript at the redirect URI to retrieve tokens from the URI #fragment. | **scope** | **string**| Scopes include basic, readmeasurements, and writemeasurements. The `basic` scope allows you to read user info (displayName, email, etc). The `readmeasurements` scope allows one to read a user's data. The `writemeasurements` scope allows you to write user data. Separate multiple scopes by a space. | **client_id** | **string**| Your QuantiModo client id can be obtained by creating an app at https://builder.quantimo.do | [optional] - **client_secret** | **string**| This is the secret for your obtained clientId. We use this to ensure that only your application uses the clientId. Obtain this by creating a free application at [https://app.quantimo.do/api/v2/apps](https://app.quantimo.do/api/v2/apps). | [optional] + **client_secret** | **string**| This is the secret for your obtained clientId. We use this to ensure that only your application uses the clientId. Obtain this by creating a free application at [https://builder.quantimo.do](https://builder.quantimo.do). | [optional] **redirect_uri** | **string**| The redirect URI is the URL within your client application that will receive the OAuth2 credentials. | [optional] **state** | **string**| An opaque string that is round-tripped in the protocol; that is to say, it is returned as a URI parameter in the Basic flow, and in the URI | [optional] **platform** | **string**| Ex: chrome, android, ios, web | [optional] diff --git a/docs/Api/MeasurementsApi.md b/docs/Api/MeasurementsApi.md index ebe0557..a31b940 100644 --- a/docs/Api/MeasurementsApi.md +++ b/docs/Api/MeasurementsApi.md @@ -169,7 +169,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getPairs** -> \QuantiModo\Client\Model\Pair[] getPairs($cause_variable_name, $effect_variable_name, $effect_unit_name, $user_id, $cause_unit_name, $onset_delay, $duration_of_action, $earliest_measurement_time, $latest_measurement_time, $limit, $offset, $sort) +> \QuantiModo\Client\Model\Pair[] getPairs($cause_variable_name, $effect_variable_name, $cause_variable_id, $effect_variable_id, $predictor_variable_name, $outcome_variable_name, $effect_unit_name, $user_id, $cause_unit_name, $onset_delay, $duration_of_action, $earliest_measurement_time, $latest_measurement_time, $limit, $offset, $sort) Get pairs of measurements for correlational analysis @@ -193,8 +193,12 @@ $apiInstance = new QuantiModo\Client\Api\MeasurementsApi( new GuzzleHttp\Client(), $config ); -$cause_variable_name = "cause_variable_name_example"; // string | Name of the hypothetical predictor variable. Ex: Sleep Duration -$effect_variable_name = "effect_variable_name_example"; // string | Name of the hypothetical outcome variable. Ex: Overall Mood +$cause_variable_name = "cause_variable_name_example"; // string | Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration +$effect_variable_name = "effect_variable_name_example"; // string | Deprecated: Name of the outcome variable of interest. Ex: Overall Mood +$cause_variable_id = 56; // int | Variable id of the hypothetical predictor variable. Ex: 1398 +$effect_variable_id = 56; // int | Variable id of the outcome variable of interest. Ex: 1398 +$predictor_variable_name = "predictor_variable_name_example"; // string | Name of the hypothetical predictor variable. Ex: Sleep Duration +$outcome_variable_name = "outcome_variable_name_example"; // string | Name of the outcome variable of interest. Ex: Overall Mood $effect_unit_name = "effect_unit_name_example"; // string | Name for the unit effect measurements to be returned in $user_id = 8.14; // float | User's id $cause_unit_name = "cause_unit_name_example"; // string | Name for the unit cause measurements to be returned in @@ -207,7 +211,7 @@ $offset = 56; // int | OFFSET says to skip that many rows before beginning to re $sort = "sort_example"; // string | Sort by one of the listed field names. If the field name is prefixed with `-`, it will sort in descending order. try { - $result = $apiInstance->getPairs($cause_variable_name, $effect_variable_name, $effect_unit_name, $user_id, $cause_unit_name, $onset_delay, $duration_of_action, $earliest_measurement_time, $latest_measurement_time, $limit, $offset, $sort); + $result = $apiInstance->getPairs($cause_variable_name, $effect_variable_name, $cause_variable_id, $effect_variable_id, $predictor_variable_name, $outcome_variable_name, $effect_unit_name, $user_id, $cause_unit_name, $onset_delay, $duration_of_action, $earliest_measurement_time, $latest_measurement_time, $limit, $offset, $sort); print_r($result); } catch (Exception $e) { echo 'Exception when calling MeasurementsApi->getPairs: ', $e->getMessage(), PHP_EOL; @@ -219,8 +223,12 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **cause_variable_name** | **string**| Name of the hypothetical predictor variable. Ex: Sleep Duration | [optional] - **effect_variable_name** | **string**| Name of the hypothetical outcome variable. Ex: Overall Mood | [optional] + **cause_variable_name** | **string**| Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration | [optional] + **effect_variable_name** | **string**| Deprecated: Name of the outcome variable of interest. Ex: Overall Mood | [optional] + **cause_variable_id** | **int**| Variable id of the hypothetical predictor variable. Ex: 1398 | [optional] + **effect_variable_id** | **int**| Variable id of the outcome variable of interest. Ex: 1398 | [optional] + **predictor_variable_name** | **string**| Name of the hypothetical predictor variable. Ex: Sleep Duration | [optional] + **outcome_variable_name** | **string**| Name of the outcome variable of interest. Ex: Overall Mood | [optional] **effect_unit_name** | **string**| Name for the unit effect measurements to be returned in | [optional] **user_id** | **float**| User's id | [optional] **cause_unit_name** | **string**| Name for the unit cause measurements to be returned in | [optional] diff --git a/docs/Api/StudiesApi.md b/docs/Api/StudiesApi.md index 521a552..b5ce15b 100644 --- a/docs/Api/StudiesApi.md +++ b/docs/Api/StudiesApi.md @@ -137,7 +137,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getOpenStudies** -> \QuantiModo\Client\Model\GetStudiesResponse getOpenStudies($cause_variable_name, $effect_variable_name, $user_id, $client_id, $include_charts, $platform, $recalculate, $study_id) +> \QuantiModo\Client\Model\GetStudiesResponse getOpenStudies($cause_variable_name, $effect_variable_name, $cause_variable_id, $effect_variable_id, $predictor_variable_name, $outcome_variable_name, $user_id, $client_id, $include_charts, $platform, $recalculate, $study_id) These are open studies that anyone can join @@ -161,8 +161,12 @@ $apiInstance = new QuantiModo\Client\Api\StudiesApi( new GuzzleHttp\Client(), $config ); -$cause_variable_name = "cause_variable_name_example"; // string | Name of the hypothetical predictor variable. Ex: Sleep Duration -$effect_variable_name = "effect_variable_name_example"; // string | Name of the hypothetical outcome variable. Ex: Overall Mood +$cause_variable_name = "cause_variable_name_example"; // string | Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration +$effect_variable_name = "effect_variable_name_example"; // string | Deprecated: Name of the outcome variable of interest. Ex: Overall Mood +$cause_variable_id = 56; // int | Variable id of the hypothetical predictor variable. Ex: 1398 +$effect_variable_id = 56; // int | Variable id of the outcome variable of interest. Ex: 1398 +$predictor_variable_name = "predictor_variable_name_example"; // string | Name of the hypothetical predictor variable. Ex: Sleep Duration +$outcome_variable_name = "outcome_variable_name_example"; // string | Name of the outcome variable of interest. Ex: Overall Mood $user_id = 8.14; // float | User's id $client_id = "client_id_example"; // string | Your QuantiModo client id can be obtained by creating an app at https://builder.quantimo.do $include_charts = true; // bool | Highcharts configs that can be used if you have highcharts.js included on the page. This only works if the id or name query parameter is also provided. @@ -171,7 +175,7 @@ $recalculate = true; // bool | Recalculate instead of using cached analysis $study_id = "study_id_example"; // string | Client id for the study you want try { - $result = $apiInstance->getOpenStudies($cause_variable_name, $effect_variable_name, $user_id, $client_id, $include_charts, $platform, $recalculate, $study_id); + $result = $apiInstance->getOpenStudies($cause_variable_name, $effect_variable_name, $cause_variable_id, $effect_variable_id, $predictor_variable_name, $outcome_variable_name, $user_id, $client_id, $include_charts, $platform, $recalculate, $study_id); print_r($result); } catch (Exception $e) { echo 'Exception when calling StudiesApi->getOpenStudies: ', $e->getMessage(), PHP_EOL; @@ -183,8 +187,12 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **cause_variable_name** | **string**| Name of the hypothetical predictor variable. Ex: Sleep Duration | [optional] - **effect_variable_name** | **string**| Name of the hypothetical outcome variable. Ex: Overall Mood | [optional] + **cause_variable_name** | **string**| Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration | [optional] + **effect_variable_name** | **string**| Deprecated: Name of the outcome variable of interest. Ex: Overall Mood | [optional] + **cause_variable_id** | **int**| Variable id of the hypothetical predictor variable. Ex: 1398 | [optional] + **effect_variable_id** | **int**| Variable id of the outcome variable of interest. Ex: 1398 | [optional] + **predictor_variable_name** | **string**| Name of the hypothetical predictor variable. Ex: Sleep Duration | [optional] + **outcome_variable_name** | **string**| Name of the outcome variable of interest. Ex: Overall Mood | [optional] **user_id** | **float**| User's id | [optional] **client_id** | **string**| Your QuantiModo client id can be obtained by creating an app at https://builder.quantimo.do | [optional] **include_charts** | **bool**| Highcharts configs that can be used if you have highcharts.js included on the page. This only works if the id or name query parameter is also provided. | [optional] @@ -208,7 +216,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getStudies** -> \QuantiModo\Client\Model\GetStudiesResponse getStudies($cause_variable_name, $effect_variable_name, $user_id, $client_id, $include_charts, $platform, $recalculate, $study_id, $sort, $limit, $offset, $correlation_coefficient, $updated_at, $outcomes_of_interest, $principal_investigator_user_id, $open, $joined, $created, $population) +> \QuantiModo\Client\Model\GetStudiesResponse getStudies($cause_variable_name, $effect_variable_name, $cause_variable_id, $effect_variable_id, $predictor_variable_name, $outcome_variable_name, $user_id, $client_id, $include_charts, $platform, $recalculate, $study_id, $sort, $limit, $offset, $correlation_coefficient, $updated_at, $outcomes_of_interest, $principal_investigator_user_id, $open, $joined, $created, $population, $downvoted) Get Personal or Population Studies @@ -232,8 +240,12 @@ $apiInstance = new QuantiModo\Client\Api\StudiesApi( new GuzzleHttp\Client(), $config ); -$cause_variable_name = "cause_variable_name_example"; // string | Name of the hypothetical predictor variable. Ex: Sleep Duration -$effect_variable_name = "effect_variable_name_example"; // string | Name of the hypothetical outcome variable. Ex: Overall Mood +$cause_variable_name = "cause_variable_name_example"; // string | Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration +$effect_variable_name = "effect_variable_name_example"; // string | Deprecated: Name of the outcome variable of interest. Ex: Overall Mood +$cause_variable_id = 56; // int | Variable id of the hypothetical predictor variable. Ex: 1398 +$effect_variable_id = 56; // int | Variable id of the outcome variable of interest. Ex: 1398 +$predictor_variable_name = "predictor_variable_name_example"; // string | Name of the hypothetical predictor variable. Ex: Sleep Duration +$outcome_variable_name = "outcome_variable_name_example"; // string | Name of the outcome variable of interest. Ex: Overall Mood $user_id = 8.14; // float | User's id $client_id = "client_id_example"; // string | Your QuantiModo client id can be obtained by creating an app at https://builder.quantimo.do $include_charts = true; // bool | Highcharts configs that can be used if you have highcharts.js included on the page. This only works if the id or name query parameter is also provided. @@ -251,9 +263,10 @@ $open = true; // bool | These are studies that anyone can join $joined = true; // bool | These are studies that you have joined $created = true; // bool | These are studies that you have created $population = true; // bool | These are studies based on the entire population of users that have shared their data +$downvoted = true; // bool | These are studies that you have down-voted try { - $result = $apiInstance->getStudies($cause_variable_name, $effect_variable_name, $user_id, $client_id, $include_charts, $platform, $recalculate, $study_id, $sort, $limit, $offset, $correlation_coefficient, $updated_at, $outcomes_of_interest, $principal_investigator_user_id, $open, $joined, $created, $population); + $result = $apiInstance->getStudies($cause_variable_name, $effect_variable_name, $cause_variable_id, $effect_variable_id, $predictor_variable_name, $outcome_variable_name, $user_id, $client_id, $include_charts, $platform, $recalculate, $study_id, $sort, $limit, $offset, $correlation_coefficient, $updated_at, $outcomes_of_interest, $principal_investigator_user_id, $open, $joined, $created, $population, $downvoted); print_r($result); } catch (Exception $e) { echo 'Exception when calling StudiesApi->getStudies: ', $e->getMessage(), PHP_EOL; @@ -265,8 +278,12 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **cause_variable_name** | **string**| Name of the hypothetical predictor variable. Ex: Sleep Duration | [optional] - **effect_variable_name** | **string**| Name of the hypothetical outcome variable. Ex: Overall Mood | [optional] + **cause_variable_name** | **string**| Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration | [optional] + **effect_variable_name** | **string**| Deprecated: Name of the outcome variable of interest. Ex: Overall Mood | [optional] + **cause_variable_id** | **int**| Variable id of the hypothetical predictor variable. Ex: 1398 | [optional] + **effect_variable_id** | **int**| Variable id of the outcome variable of interest. Ex: 1398 | [optional] + **predictor_variable_name** | **string**| Name of the hypothetical predictor variable. Ex: Sleep Duration | [optional] + **outcome_variable_name** | **string**| Name of the outcome variable of interest. Ex: Overall Mood | [optional] **user_id** | **float**| User's id | [optional] **client_id** | **string**| Your QuantiModo client id can be obtained by creating an app at https://builder.quantimo.do | [optional] **include_charts** | **bool**| Highcharts configs that can be used if you have highcharts.js included on the page. This only works if the id or name query parameter is also provided. | [optional] @@ -284,6 +301,7 @@ Name | Type | Description | Notes **joined** | **bool**| These are studies that you have joined | [optional] **created** | **bool**| These are studies that you have created | [optional] **population** | **bool**| These are studies based on the entire population of users that have shared their data | [optional] + **downvoted** | **bool**| These are studies that you have down-voted | [optional] ### Return type @@ -301,7 +319,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getStudiesCreated** -> \QuantiModo\Client\Model\GetStudiesResponse getStudiesCreated($cause_variable_name, $effect_variable_name, $sort, $limit, $offset, $user_id, $updated_at, $client_id, $platform) +> \QuantiModo\Client\Model\GetStudiesResponse getStudiesCreated($cause_variable_name, $effect_variable_name, $cause_variable_id, $effect_variable_id, $predictor_variable_name, $outcome_variable_name, $sort, $limit, $offset, $user_id, $updated_at, $client_id, $platform) Get studies you have created @@ -325,8 +343,12 @@ $apiInstance = new QuantiModo\Client\Api\StudiesApi( new GuzzleHttp\Client(), $config ); -$cause_variable_name = "cause_variable_name_example"; // string | Name of the hypothetical predictor variable. Ex: Sleep Duration -$effect_variable_name = "effect_variable_name_example"; // string | Name of the hypothetical outcome variable. Ex: Overall Mood +$cause_variable_name = "cause_variable_name_example"; // string | Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration +$effect_variable_name = "effect_variable_name_example"; // string | Deprecated: Name of the outcome variable of interest. Ex: Overall Mood +$cause_variable_id = 56; // int | Variable id of the hypothetical predictor variable. Ex: 1398 +$effect_variable_id = 56; // int | Variable id of the outcome variable of interest. Ex: 1398 +$predictor_variable_name = "predictor_variable_name_example"; // string | Name of the hypothetical predictor variable. Ex: Sleep Duration +$outcome_variable_name = "outcome_variable_name_example"; // string | Name of the outcome variable of interest. Ex: Overall Mood $sort = "sort_example"; // string | Sort by one of the listed field names. If the field name is prefixed with `-`, it will sort in descending order. $limit = 100; // int | The LIMIT is used to limit the number of results returned. So if youhave 1000 results, but only want to the first 10, you would set this to 10 and offset to 0. The maximum limit is 200 records. $offset = 56; // int | OFFSET says to skip that many rows before beginning to return rows to the client. OFFSET 0 is the same as omitting the OFFSET clause.If both OFFSET and LIMIT appear, then OFFSET rows are skipped before starting to count the LIMIT rows that are returned. @@ -336,7 +358,7 @@ $client_id = "client_id_example"; // string | Your QuantiModo client id can be o $platform = "platform_example"; // string | Ex: chrome, android, ios, web try { - $result = $apiInstance->getStudiesCreated($cause_variable_name, $effect_variable_name, $sort, $limit, $offset, $user_id, $updated_at, $client_id, $platform); + $result = $apiInstance->getStudiesCreated($cause_variable_name, $effect_variable_name, $cause_variable_id, $effect_variable_id, $predictor_variable_name, $outcome_variable_name, $sort, $limit, $offset, $user_id, $updated_at, $client_id, $platform); print_r($result); } catch (Exception $e) { echo 'Exception when calling StudiesApi->getStudiesCreated: ', $e->getMessage(), PHP_EOL; @@ -348,8 +370,12 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **cause_variable_name** | **string**| Name of the hypothetical predictor variable. Ex: Sleep Duration | [optional] - **effect_variable_name** | **string**| Name of the hypothetical outcome variable. Ex: Overall Mood | [optional] + **cause_variable_name** | **string**| Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration | [optional] + **effect_variable_name** | **string**| Deprecated: Name of the outcome variable of interest. Ex: Overall Mood | [optional] + **cause_variable_id** | **int**| Variable id of the hypothetical predictor variable. Ex: 1398 | [optional] + **effect_variable_id** | **int**| Variable id of the outcome variable of interest. Ex: 1398 | [optional] + **predictor_variable_name** | **string**| Name of the hypothetical predictor variable. Ex: Sleep Duration | [optional] + **outcome_variable_name** | **string**| Name of the outcome variable of interest. Ex: Overall Mood | [optional] **sort** | **string**| Sort by one of the listed field names. If the field name is prefixed with `-`, it will sort in descending order. | [optional] **limit** | **int**| The LIMIT is used to limit the number of results returned. So if youhave 1000 results, but only want to the first 10, you would set this to 10 and offset to 0. The maximum limit is 200 records. | [optional] [default to 100] **offset** | **int**| OFFSET says to skip that many rows before beginning to return rows to the client. OFFSET 0 is the same as omitting the OFFSET clause.If both OFFSET and LIMIT appear, then OFFSET rows are skipped before starting to count the LIMIT rows that are returned. | [optional] @@ -374,7 +400,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getStudiesJoined** -> \QuantiModo\Client\Model\GetStudiesResponse getStudiesJoined($cause_variable_name, $effect_variable_name, $sort, $limit, $offset, $user_id, $correlation_coefficient, $updated_at, $outcomes_of_interest, $client_id, $platform) +> \QuantiModo\Client\Model\GetStudiesResponse getStudiesJoined($cause_variable_name, $effect_variable_name, $cause_variable_id, $effect_variable_id, $predictor_variable_name, $outcome_variable_name, $sort, $limit, $offset, $user_id, $correlation_coefficient, $updated_at, $outcomes_of_interest, $client_id, $platform) Studies You Have Joined @@ -398,8 +424,12 @@ $apiInstance = new QuantiModo\Client\Api\StudiesApi( new GuzzleHttp\Client(), $config ); -$cause_variable_name = "cause_variable_name_example"; // string | Name of the hypothetical predictor variable. Ex: Sleep Duration -$effect_variable_name = "effect_variable_name_example"; // string | Name of the hypothetical outcome variable. Ex: Overall Mood +$cause_variable_name = "cause_variable_name_example"; // string | Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration +$effect_variable_name = "effect_variable_name_example"; // string | Deprecated: Name of the outcome variable of interest. Ex: Overall Mood +$cause_variable_id = 56; // int | Variable id of the hypothetical predictor variable. Ex: 1398 +$effect_variable_id = 56; // int | Variable id of the outcome variable of interest. Ex: 1398 +$predictor_variable_name = "predictor_variable_name_example"; // string | Name of the hypothetical predictor variable. Ex: Sleep Duration +$outcome_variable_name = "outcome_variable_name_example"; // string | Name of the outcome variable of interest. Ex: Overall Mood $sort = "sort_example"; // string | Sort by one of the listed field names. If the field name is prefixed with `-`, it will sort in descending order. $limit = 100; // int | The LIMIT is used to limit the number of results returned. So if youhave 1000 results, but only want to the first 10, you would set this to 10 and offset to 0. The maximum limit is 200 records. $offset = 56; // int | OFFSET says to skip that many rows before beginning to return rows to the client. OFFSET 0 is the same as omitting the OFFSET clause.If both OFFSET and LIMIT appear, then OFFSET rows are skipped before starting to count the LIMIT rows that are returned. @@ -411,7 +441,7 @@ $client_id = "client_id_example"; // string | Your QuantiModo client id can be o $platform = "platform_example"; // string | Ex: chrome, android, ios, web try { - $result = $apiInstance->getStudiesJoined($cause_variable_name, $effect_variable_name, $sort, $limit, $offset, $user_id, $correlation_coefficient, $updated_at, $outcomes_of_interest, $client_id, $platform); + $result = $apiInstance->getStudiesJoined($cause_variable_name, $effect_variable_name, $cause_variable_id, $effect_variable_id, $predictor_variable_name, $outcome_variable_name, $sort, $limit, $offset, $user_id, $correlation_coefficient, $updated_at, $outcomes_of_interest, $client_id, $platform); print_r($result); } catch (Exception $e) { echo 'Exception when calling StudiesApi->getStudiesJoined: ', $e->getMessage(), PHP_EOL; @@ -423,8 +453,12 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **cause_variable_name** | **string**| Name of the hypothetical predictor variable. Ex: Sleep Duration | [optional] - **effect_variable_name** | **string**| Name of the hypothetical outcome variable. Ex: Overall Mood | [optional] + **cause_variable_name** | **string**| Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration | [optional] + **effect_variable_name** | **string**| Deprecated: Name of the outcome variable of interest. Ex: Overall Mood | [optional] + **cause_variable_id** | **int**| Variable id of the hypothetical predictor variable. Ex: 1398 | [optional] + **effect_variable_id** | **int**| Variable id of the outcome variable of interest. Ex: 1398 | [optional] + **predictor_variable_name** | **string**| Name of the hypothetical predictor variable. Ex: Sleep Duration | [optional] + **outcome_variable_name** | **string**| Name of the outcome variable of interest. Ex: Overall Mood | [optional] **sort** | **string**| Sort by one of the listed field names. If the field name is prefixed with `-`, it will sort in descending order. | [optional] **limit** | **int**| The LIMIT is used to limit the number of results returned. So if youhave 1000 results, but only want to the first 10, you would set this to 10 and offset to 0. The maximum limit is 200 records. | [optional] [default to 100] **offset** | **int**| OFFSET says to skip that many rows before beginning to return rows to the client. OFFSET 0 is the same as omitting the OFFSET clause.If both OFFSET and LIMIT appear, then OFFSET rows are skipped before starting to count the LIMIT rows that are returned. | [optional] @@ -451,7 +485,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getStudy** -> \QuantiModo\Client\Model\Study getStudy($cause_variable_name, $effect_variable_name, $user_id, $client_id, $include_charts, $platform, $recalculate, $study_id) +> \QuantiModo\Client\Model\Study getStudy($cause_variable_name, $effect_variable_name, $cause_variable_id, $effect_variable_id, $predictor_variable_name, $outcome_variable_name, $user_id, $client_id, $include_charts, $platform, $recalculate, $study_id) Get Study @@ -475,8 +509,12 @@ $apiInstance = new QuantiModo\Client\Api\StudiesApi( new GuzzleHttp\Client(), $config ); -$cause_variable_name = "cause_variable_name_example"; // string | Name of the hypothetical predictor variable. Ex: Sleep Duration -$effect_variable_name = "effect_variable_name_example"; // string | Name of the hypothetical outcome variable. Ex: Overall Mood +$cause_variable_name = "cause_variable_name_example"; // string | Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration +$effect_variable_name = "effect_variable_name_example"; // string | Deprecated: Name of the outcome variable of interest. Ex: Overall Mood +$cause_variable_id = 56; // int | Variable id of the hypothetical predictor variable. Ex: 1398 +$effect_variable_id = 56; // int | Variable id of the outcome variable of interest. Ex: 1398 +$predictor_variable_name = "predictor_variable_name_example"; // string | Name of the hypothetical predictor variable. Ex: Sleep Duration +$outcome_variable_name = "outcome_variable_name_example"; // string | Name of the outcome variable of interest. Ex: Overall Mood $user_id = 8.14; // float | User's id $client_id = "client_id_example"; // string | Your QuantiModo client id can be obtained by creating an app at https://builder.quantimo.do $include_charts = true; // bool | Highcharts configs that can be used if you have highcharts.js included on the page. This only works if the id or name query parameter is also provided. @@ -485,7 +523,7 @@ $recalculate = true; // bool | Recalculate instead of using cached analysis $study_id = "study_id_example"; // string | Client id for the study you want try { - $result = $apiInstance->getStudy($cause_variable_name, $effect_variable_name, $user_id, $client_id, $include_charts, $platform, $recalculate, $study_id); + $result = $apiInstance->getStudy($cause_variable_name, $effect_variable_name, $cause_variable_id, $effect_variable_id, $predictor_variable_name, $outcome_variable_name, $user_id, $client_id, $include_charts, $platform, $recalculate, $study_id); print_r($result); } catch (Exception $e) { echo 'Exception when calling StudiesApi->getStudy: ', $e->getMessage(), PHP_EOL; @@ -497,8 +535,12 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **cause_variable_name** | **string**| Name of the hypothetical predictor variable. Ex: Sleep Duration | [optional] - **effect_variable_name** | **string**| Name of the hypothetical outcome variable. Ex: Overall Mood | [optional] + **cause_variable_name** | **string**| Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration | [optional] + **effect_variable_name** | **string**| Deprecated: Name of the outcome variable of interest. Ex: Overall Mood | [optional] + **cause_variable_id** | **int**| Variable id of the hypothetical predictor variable. Ex: 1398 | [optional] + **effect_variable_id** | **int**| Variable id of the outcome variable of interest. Ex: 1398 | [optional] + **predictor_variable_name** | **string**| Name of the hypothetical predictor variable. Ex: Sleep Duration | [optional] + **outcome_variable_name** | **string**| Name of the outcome variable of interest. Ex: Overall Mood | [optional] **user_id** | **float**| User's id | [optional] **client_id** | **string**| Your QuantiModo client id can be obtained by creating an app at https://builder.quantimo.do | [optional] **include_charts** | **bool**| Highcharts configs that can be used if you have highcharts.js included on the page. This only works if the id or name query parameter is also provided. | [optional] @@ -522,7 +564,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **joinStudy** -> \QuantiModo\Client\Model\StudyJoinResponse joinStudy($study_id, $cause_variable_name, $effect_variable_name, $user_id, $client_id, $platform) +> \QuantiModo\Client\Model\StudyJoinResponse joinStudy($study_id, $cause_variable_name, $effect_variable_name, $cause_variable_id, $effect_variable_id, $predictor_variable_name, $outcome_variable_name, $user_id, $client_id, $platform) Join a Study @@ -547,14 +589,18 @@ $apiInstance = new QuantiModo\Client\Api\StudiesApi( $config ); $study_id = "study_id_example"; // string | Client id for the study you want -$cause_variable_name = "cause_variable_name_example"; // string | Name of the hypothetical predictor variable. Ex: Sleep Duration -$effect_variable_name = "effect_variable_name_example"; // string | Name of the hypothetical outcome variable. Ex: Overall Mood +$cause_variable_name = "cause_variable_name_example"; // string | Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration +$effect_variable_name = "effect_variable_name_example"; // string | Deprecated: Name of the outcome variable of interest. Ex: Overall Mood +$cause_variable_id = 56; // int | Variable id of the hypothetical predictor variable. Ex: 1398 +$effect_variable_id = 56; // int | Variable id of the outcome variable of interest. Ex: 1398 +$predictor_variable_name = "predictor_variable_name_example"; // string | Name of the hypothetical predictor variable. Ex: Sleep Duration +$outcome_variable_name = "outcome_variable_name_example"; // string | Name of the outcome variable of interest. Ex: Overall Mood $user_id = 8.14; // float | User's id $client_id = "client_id_example"; // string | Your QuantiModo client id can be obtained by creating an app at https://builder.quantimo.do $platform = "platform_example"; // string | Ex: chrome, android, ios, web try { - $result = $apiInstance->joinStudy($study_id, $cause_variable_name, $effect_variable_name, $user_id, $client_id, $platform); + $result = $apiInstance->joinStudy($study_id, $cause_variable_name, $effect_variable_name, $cause_variable_id, $effect_variable_id, $predictor_variable_name, $outcome_variable_name, $user_id, $client_id, $platform); print_r($result); } catch (Exception $e) { echo 'Exception when calling StudiesApi->joinStudy: ', $e->getMessage(), PHP_EOL; @@ -567,8 +613,12 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **study_id** | **string**| Client id for the study you want | [optional] - **cause_variable_name** | **string**| Name of the hypothetical predictor variable. Ex: Sleep Duration | [optional] - **effect_variable_name** | **string**| Name of the hypothetical outcome variable. Ex: Overall Mood | [optional] + **cause_variable_name** | **string**| Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration | [optional] + **effect_variable_name** | **string**| Deprecated: Name of the outcome variable of interest. Ex: Overall Mood | [optional] + **cause_variable_id** | **int**| Variable id of the hypothetical predictor variable. Ex: 1398 | [optional] + **effect_variable_id** | **int**| Variable id of the outcome variable of interest. Ex: 1398 | [optional] + **predictor_variable_name** | **string**| Name of the hypothetical predictor variable. Ex: Sleep Duration | [optional] + **outcome_variable_name** | **string**| Name of the outcome variable of interest. Ex: Overall Mood | [optional] **user_id** | **float**| User's id | [optional] **client_id** | **string**| Your QuantiModo client id can be obtained by creating an app at https://builder.quantimo.do | [optional] **platform** | **string**| Ex: chrome, android, ios, web | [optional] @@ -648,7 +698,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **publishStudy** -> \QuantiModo\Client\Model\PostStudyPublishResponse publishStudy($cause_variable_name, $effect_variable_name, $user_id, $client_id, $include_charts, $platform, $recalculate, $study_id) +> \QuantiModo\Client\Model\PostStudyPublishResponse publishStudy($cause_variable_name, $effect_variable_name, $cause_variable_id, $effect_variable_id, $predictor_variable_name, $outcome_variable_name, $user_id, $client_id, $include_charts, $platform, $recalculate, $study_id) Publish Your Study @@ -672,8 +722,12 @@ $apiInstance = new QuantiModo\Client\Api\StudiesApi( new GuzzleHttp\Client(), $config ); -$cause_variable_name = "cause_variable_name_example"; // string | Name of the hypothetical predictor variable. Ex: Sleep Duration -$effect_variable_name = "effect_variable_name_example"; // string | Name of the hypothetical outcome variable. Ex: Overall Mood +$cause_variable_name = "cause_variable_name_example"; // string | Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration +$effect_variable_name = "effect_variable_name_example"; // string | Deprecated: Name of the outcome variable of interest. Ex: Overall Mood +$cause_variable_id = 56; // int | Variable id of the hypothetical predictor variable. Ex: 1398 +$effect_variable_id = 56; // int | Variable id of the outcome variable of interest. Ex: 1398 +$predictor_variable_name = "predictor_variable_name_example"; // string | Name of the hypothetical predictor variable. Ex: Sleep Duration +$outcome_variable_name = "outcome_variable_name_example"; // string | Name of the outcome variable of interest. Ex: Overall Mood $user_id = 8.14; // float | User's id $client_id = "client_id_example"; // string | Your QuantiModo client id can be obtained by creating an app at https://builder.quantimo.do $include_charts = true; // bool | Highcharts configs that can be used if you have highcharts.js included on the page. This only works if the id or name query parameter is also provided. @@ -682,7 +736,7 @@ $recalculate = true; // bool | Recalculate instead of using cached analysis $study_id = "study_id_example"; // string | Client id for the study you want try { - $result = $apiInstance->publishStudy($cause_variable_name, $effect_variable_name, $user_id, $client_id, $include_charts, $platform, $recalculate, $study_id); + $result = $apiInstance->publishStudy($cause_variable_name, $effect_variable_name, $cause_variable_id, $effect_variable_id, $predictor_variable_name, $outcome_variable_name, $user_id, $client_id, $include_charts, $platform, $recalculate, $study_id); print_r($result); } catch (Exception $e) { echo 'Exception when calling StudiesApi->publishStudy: ', $e->getMessage(), PHP_EOL; @@ -694,8 +748,12 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **cause_variable_name** | **string**| Name of the hypothetical predictor variable. Ex: Sleep Duration | [optional] - **effect_variable_name** | **string**| Name of the hypothetical outcome variable. Ex: Overall Mood | [optional] + **cause_variable_name** | **string**| Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration | [optional] + **effect_variable_name** | **string**| Deprecated: Name of the outcome variable of interest. Ex: Overall Mood | [optional] + **cause_variable_id** | **int**| Variable id of the hypothetical predictor variable. Ex: 1398 | [optional] + **effect_variable_id** | **int**| Variable id of the outcome variable of interest. Ex: 1398 | [optional] + **predictor_variable_name** | **string**| Name of the hypothetical predictor variable. Ex: Sleep Duration | [optional] + **outcome_variable_name** | **string**| Name of the outcome variable of interest. Ex: Overall Mood | [optional] **user_id** | **float**| User's id | [optional] **client_id** | **string**| Your QuantiModo client id can be obtained by creating an app at https://builder.quantimo.do | [optional] **include_charts** | **bool**| Highcharts configs that can be used if you have highcharts.js included on the page. This only works if the id or name query parameter is also provided. | [optional] diff --git a/docs/Api/VariablesApi.md b/docs/Api/VariablesApi.md index 525d427..f66a43e 100644 --- a/docs/Api/VariablesApi.md +++ b/docs/Api/VariablesApi.md @@ -182,7 +182,7 @@ This endpoint does not need any parameter. [[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) # **getVariables** -> \QuantiModo\Client\Model\Variable[] getVariables($include_charts, $number_of_raw_measurements, $user_id, $variable_category_name, $name, $updated_at, $source_name, $earliest_measurement_time, $latest_measurement_time, $id, $last_source_name, $limit, $offset, $sort, $include_public, $manual_tracking, $client_id, $upc, $effect_or_cause, $public_effect_or_cause, $exact_match, $variable_category_id, $include_private, $search_phrase, $synonyms, $tagged_variable_id, $tag_variable_id, $join_variable_id, $parent_user_tag_variable_id, $child_user_tag_variable_id, $ingredient_user_tag_variable_id, $ingredient_of_user_tag_variable_id, $common_only, $user_only, $platform, $include_tags, $recalculate, $variable_id, $concise) +> \QuantiModo\Client\Model\Variable[] getVariables($include_charts, $number_of_raw_measurements, $user_id, $variable_category_name, $name, $variable_name, $updated_at, $source_name, $earliest_measurement_time, $latest_measurement_time, $id, $last_source_name, $limit, $offset, $sort, $include_public, $manual_tracking, $client_id, $upc, $effect_or_cause, $public_effect_or_cause, $exact_match, $variable_category_id, $include_private, $search_phrase, $synonyms, $tagged_variable_id, $tag_variable_id, $join_variable_id, $parent_user_tag_variable_id, $child_user_tag_variable_id, $ingredient_user_tag_variable_id, $ingredient_of_user_tag_variable_id, $common_only, $user_only, $platform, $include_tags, $recalculate, $variable_id, $concise) Get variables along with related user-specific analysis settings and statistics @@ -211,6 +211,7 @@ $number_of_raw_measurements = "number_of_raw_measurements_example"; // string | $user_id = 8.14; // float | User's id $variable_category_name = "variable_category_name_example"; // string | Ex: Emotions, Treatments, Symptoms... $name = "name_example"; // string | Name of the variable. To get results matching a substring, add % as a wildcard as the first and/or last character of a query string parameter. In order to get variables that contain `Mood`, the following query should be used: ?variableName=%Mood% +$variable_name = "variable_name_example"; // string | Name of the variable you want measurements for $updated_at = "updated_at_example"; // string | When the record was last updated. Use UTC ISO 8601 YYYY-MM-DDThh:mm:ss datetime format. Time zone should be UTC and not local. $source_name = "source_name_example"; // string | ID of the source you want measurements for (supports exact name match only) $earliest_measurement_time = "earliest_measurement_time_example"; // string | Excluded records with measurement times earlier than this value. Use UTC ISO 8601 YYYY-MM-DDThh:mm:ss datetime format. Time zone should be UTC and not local. @@ -247,7 +248,7 @@ $variable_id = 56; // int | Ex: 13 $concise = true; // bool | Only return field required for variable auto-complete searches. The smaller size allows for storing more variable results locally reducing API requests. try { - $result = $apiInstance->getVariables($include_charts, $number_of_raw_measurements, $user_id, $variable_category_name, $name, $updated_at, $source_name, $earliest_measurement_time, $latest_measurement_time, $id, $last_source_name, $limit, $offset, $sort, $include_public, $manual_tracking, $client_id, $upc, $effect_or_cause, $public_effect_or_cause, $exact_match, $variable_category_id, $include_private, $search_phrase, $synonyms, $tagged_variable_id, $tag_variable_id, $join_variable_id, $parent_user_tag_variable_id, $child_user_tag_variable_id, $ingredient_user_tag_variable_id, $ingredient_of_user_tag_variable_id, $common_only, $user_only, $platform, $include_tags, $recalculate, $variable_id, $concise); + $result = $apiInstance->getVariables($include_charts, $number_of_raw_measurements, $user_id, $variable_category_name, $name, $variable_name, $updated_at, $source_name, $earliest_measurement_time, $latest_measurement_time, $id, $last_source_name, $limit, $offset, $sort, $include_public, $manual_tracking, $client_id, $upc, $effect_or_cause, $public_effect_or_cause, $exact_match, $variable_category_id, $include_private, $search_phrase, $synonyms, $tagged_variable_id, $tag_variable_id, $join_variable_id, $parent_user_tag_variable_id, $child_user_tag_variable_id, $ingredient_user_tag_variable_id, $ingredient_of_user_tag_variable_id, $common_only, $user_only, $platform, $include_tags, $recalculate, $variable_id, $concise); print_r($result); } catch (Exception $e) { echo 'Exception when calling VariablesApi->getVariables: ', $e->getMessage(), PHP_EOL; @@ -264,6 +265,7 @@ Name | Type | Description | Notes **user_id** | **float**| User's id | [optional] **variable_category_name** | **string**| Ex: Emotions, Treatments, Symptoms... | [optional] **name** | **string**| Name of the variable. To get results matching a substring, add % as a wildcard as the first and/or last character of a query string parameter. In order to get variables that contain `Mood`, the following query should be used: ?variableName=%Mood% | [optional] + **variable_name** | **string**| Name of the variable you want measurements for | [optional] **updated_at** | **string**| When the record was last updated. Use UTC ISO 8601 YYYY-MM-DDThh:mm:ss datetime format. Time zone should be UTC and not local. | [optional] **source_name** | **string**| ID of the source you want measurements for (supports exact name match only) | [optional] **earliest_measurement_time** | **string**| Excluded records with measurement times earlier than this value. Use UTC ISO 8601 YYYY-MM-DDThh:mm:ss datetime format. Time zone should be UTC and not local. | [optional] diff --git a/docs/Model/Card.md b/docs/Model/Card.md index d3a178d..f3d39ff 100644 --- a/docs/Model/Card.md +++ b/docs/Model/Card.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **avatar_circular** | **string** | Smaller circular image | [optional] **background_color** | **string** | Ex: #f2f2f2 | [optional] **buttons** | [**\QuantiModo\Client\Model\Button[]**](Button.md) | | [optional] +**buttons_secondary** | [**\QuantiModo\Client\Model\Button[]**](Button.md) | | [optional] **content** | **string** | Ex: Content | [optional] **header_title** | **string** | Ex: Title | [optional] **html** | **string** | HTML for the entire card. | [optional] diff --git a/docs/Model/DataSource.md b/docs/Model/DataSource.md index 20f3e30..9720e50 100644 --- a/docs/Model/DataSource.md +++ b/docs/Model/DataSource.md @@ -21,8 +21,8 @@ Name | Type | Description | Notes **enabled** | **int** | Ex: 0 | **get_it_url** | **string** | Ex: https://quantimo.do | **id** | **int** | Ex: 72 | -**image** | **string** | Ex: https://quantimodo.quantimo.do/ionic/Modo/www/img/logos/quantimodo-logo-qm-rainbow-200-200.png | -**image_html** | **string** | Ex: <a href=\"https://quantimo.do\"><img id=\"quantimodo_image\" title=\"QuantiModo\" src=\"https://quantimodo.quantimo.do/ionic/Modo/www/img/logos/quantimodo-logo-qm-rainbow-200-200.png\" alt=\"QuantiModo\"></a> | +**image** | **string** | Ex: https://web.quantimo.do/img/logos/quantimodo-logo-qm-rainbow-200-200.png | +**image_html** | **string** | Ex: <a href=\"https://quantimo.do\"><img id=\"quantimodo_image\" title=\"QuantiModo\" src=\"https://web.quantimo.do/img/logos/quantimodo-logo-qm-rainbow-200-200.png\" alt=\"QuantiModo\"></a> | **last_successful_updated_at** | **string** | Ex: 2017-07-31 10:10:34 UTC ISO 8601 YYYY-MM-DDThh:mm:ss | [optional] **last_update** | **int** | Epoch timestamp of last sync | [optional] **linked_display_name_html** | **string** | Ex: <a href=\"https://quantimo.do\">QuantiModo</a> | diff --git a/docs/Model/Measurement.md b/docs/Model/Measurement.md index 6dcc52a..64fcf48 100644 --- a/docs/Model/Measurement.md +++ b/docs/Model/Measurement.md @@ -21,13 +21,13 @@ Name | Type | Description | Notes **original_unit_id** | **int** | Ex: 23 | [optional] **original_value** | **double** | Original value submitted. Unit: Originally submitted. | [optional] **png_path** | **string** | Ex: img/variable_categories/treatments.png | [optional] -**png_url** | **string** | Ex: https://quantimodo.quantimo.do/ionic/Modo/www/img/variable_categories/treatments.png | [optional] +**png_url** | **string** | Ex: https://web.quantimo.do/img/variable_categories/treatments.png | [optional] **product_url** | **string** | Link to associated product for purchase | [optional] **source_name** | **string** | Application or device used to record the measurement values | **start_date** | **string** | Ex: 2014-08-27 | [optional] **start_time_epoch** | **int** | Seconds between the start of the event measured and 1970 (Unix timestamp) | [optional] **start_time_string** | **string** | Start Time for the measurement event in UTC ISO 8601 YYYY-MM-DDThh:mm:ss | -**svg_url** | **string** | Ex: https://quantimodo.quantimo.do/ionic/Modo/www/img/variable_categories/treatments.svg | [optional] +**svg_url** | **string** | Ex: https://web.quantimo.do/img/variable_categories/treatments.svg | [optional] **unit_abbreviated_name** | **string** | Abbreviated name for the unit of measurement | **unit_category_id** | **int** | Ex: 6 | [optional] **unit_category_name** | **string** | Ex: Miscellany | [optional] diff --git a/docs/Model/ParticipantInstruction.md b/docs/Model/ParticipantInstruction.md index d700d2a..da539fd 100644 --- a/docs/Model/ParticipantInstruction.md +++ b/docs/Model/ParticipantInstruction.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**instructions_for_cause_variable** | **string** | Ex: <a href=\"https://www.amazon.com/Fitbit-Charge-Heart-Fitness-Wristband/dp/B01K9S260E/ref=as_li_ss_tl?ie=UTF8&qid=1493518902&sr=8-3&keywords=fitbit&th=1&linkCode=ll1&tag=quant08-20&linkId=b357b0833de73b0c4e935fd7c13a079e\">Obtain Fitbit</a> and use it to record your Sleep Duration. Once you have a <a href=\"https://www.amazon.com/Fitbit-Charge-Heart-Fitness-Wristband/dp/B01K9S260E/ref=as_li_ss_tl?ie=UTF8&qid=1493518902&sr=8-3&keywords=fitbit&th=1&linkCode=ll1&tag=quant08-20&linkId=b357b0833de73b0c4e935fd7c13a079e\">Fitbit</a> account, <a href=\"https://quantimodo.quantimo.do/ionic/Modo/www/#/app/import\">connect your Fitbit account at QuantiModo</a> to automatically import and analyze your data. | [optional] -**instructions_for_effect_variable** | **string** | Ex: <a href=\"https://quantimo.do\">Obtain QuantiModo</a> and use it to record your Overall Mood. Once you have a <a href=\"https://quantimo.do\">QuantiModo</a> account, <a href=\"https://quantimodo.quantimo.do/ionic/Modo/www/#/app/import\">connect your QuantiModo account at QuantiModo</a> to automatically import and analyze your data. | [optional] +**instructions_for_cause_variable** | **string** | Ex: <a href=\"https://www.amazon.com/Fitbit-Charge-Heart-Fitness-Wristband/dp/B01K9S260E/ref=as_li_ss_tl?ie=UTF8&qid=1493518902&sr=8-3&keywords=fitbit&th=1&linkCode=ll1&tag=quant08-20&linkId=b357b0833de73b0c4e935fd7c13a079e\">Obtain Fitbit</a> and use it to record your Sleep Duration. Once you have a <a href=\"https://www.amazon.com/Fitbit-Charge-Heart-Fitness-Wristband/dp/B01K9S260E/ref=as_li_ss_tl?ie=UTF8&qid=1493518902&sr=8-3&keywords=fitbit&th=1&linkCode=ll1&tag=quant08-20&linkId=b357b0833de73b0c4e935fd7c13a079e\">Fitbit</a> account, <a href=\"https://web.quantimo.do/#/app/import\">connect your Fitbit account at QuantiModo</a> to automatically import and analyze your data. | [optional] +**instructions_for_effect_variable** | **string** | Ex: <a href=\"https://quantimo.do\">Obtain QuantiModo</a> and use it to record your Overall Mood. Once you have a <a href=\"https://quantimo.do\">QuantiModo</a> account, <a href=\"https://web.quantimo.do/#/app/import\">connect your QuantiModo account at QuantiModo</a> to automatically import and analyze your data. | [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/docs/Model/Study.md b/docs/Model/Study.md index c96eee0..ec767fa 100644 --- a/docs/Model/Study.md +++ b/docs/Model/Study.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **type** | **string** | Ex: population, cohort, or individual | **user_id** | **string** | The user id of the principal investigator or subject if an individual studies | [optional] -**study_id** | **string** | ID of the cohort study which is necessary to allow participants to join | [optional] +**id** | **string** | ID of the cohort study which is necessary to allow participants to join | [optional] **cause_variable** | [**\QuantiModo\Client\Model\Variable**](Variable.md) | | [optional] **cause_variable_name** | **string** | Ex: Sleep Quality | [optional] **study_charts** | [**\QuantiModo\Client\Model\StudyCharts**](StudyCharts.md) | | [optional] diff --git a/docs/Model/TrackingReminder.md b/docs/Model/TrackingReminder.md index 3747586..b81992c 100644 --- a/docs/Model/TrackingReminder.md +++ b/docs/Model/TrackingReminder.md @@ -50,7 +50,7 @@ Name | Type | Description | Notes **number_of_unique_values** | **int** | Ex: 1 | [optional] **outcome** | **bool** | Indicates whether or not the variable is usually an outcome of interest such as a symptom or emotion | [optional] **png_path** | **string** | Ex: img/variable_categories/symptoms.png | [optional] -**png_url** | **string** | Ex: https://quantimodo.quantimo.do/ionic/Modo/www/img/variable_categories/symptoms.png | [optional] +**png_url** | **string** | Ex: https://web.quantimo.do/img/variable_categories/symptoms.png | [optional] **product_url** | **string** | Link to associated product for purchase | [optional] **pop_up** | **bool** | True if the reminders should appear as a popup notification | [optional] **question** | **string** | Ex: How is your overall mood? | [optional] @@ -68,7 +68,7 @@ Name | Type | Description | Notes **sms** | **bool** | True if the reminders should be delivered via SMS | [optional] **start_tracking_date** | **string** | Earliest date on which the user should be reminded to track in YYYY-MM-DD format | [optional] **stop_tracking_date** | **string** | Latest date on which the user should be reminded to track in YYYY-MM-DD format | [optional] -**svg_url** | **string** | Ex: https://quantimodo.quantimo.do/ionic/Modo/www/img/variable_categories/symptoms.svg | [optional] +**svg_url** | **string** | Ex: https://web.quantimo.do/img/variable_categories/symptoms.svg | [optional] **third_daily_reminder_time** | **string** | Ex: 20:00:00 | [optional] **third_to_last_value** | **double** | Ex: 3 | [optional] **tracking_reminder_id** | **int** | Ex: 11841 | [optional] diff --git a/docs/Model/TrackingReminderNotification.md b/docs/Model/TrackingReminderNotification.md index 645ffa5..ce21ae2 100644 --- a/docs/Model/TrackingReminderNotification.md +++ b/docs/Model/TrackingReminderNotification.md @@ -44,7 +44,7 @@ Name | Type | Description | Notes **number_of_unique_values** | **int** | Ex: 5 | [optional] **outcome** | **bool** | Indicates whether or not the variable is usually an outcome of interest such as a symptom or emotion | [optional] **png_path** | **string** | Ex: img/variable_categories/emotions.png | [optional] -**png_url** | **string** | Ex: https://quantimodo.quantimo.do/ionic/Modo/www/img/variable_categories/emotions.png | [optional] +**png_url** | **string** | Ex: https://web.quantimo.do/img/variable_categories/emotions.png | [optional] **pop_up** | **bool** | True if the reminders should appear as a popup notification | [optional] **product_url** | **string** | Link to associated product for purchase | [optional] **question** | **string** | Ex: How is your overall mood? | [optional] @@ -57,7 +57,7 @@ Name | Type | Description | Notes **second_most_common_value** | **double** | Ex: 4 | [optional] **second_to_last_value** | **double** | Ex: 1 | [optional] **sms** | **bool** | True if the reminders should be delivered via SMS | [optional] -**svg_url** | **string** | Ex: https://quantimodo.quantimo.do/ionic/Modo/www/img/variable_categories/emotions.svg | [optional] +**svg_url** | **string** | Ex: https://web.quantimo.do/img/variable_categories/emotions.svg | [optional] **third_most_common_value** | **double** | Ex: 2 | [optional] **third_to_last_value** | **double** | Ex: 2 | [optional] **title** | **string** | Ex: Rate Overall Mood | [optional] diff --git a/docs/Model/User.md b/docs/Model/User.md index b56a29a..10202da 100644 --- a/docs/Model/User.md +++ b/docs/Model/User.md @@ -15,7 +15,8 @@ Name | Type | Description | Notes **client_id** | **string** | Ex: quantimodo | [optional] **client_user_id** | **string** | Ex: 118444693184829555362 | [optional] **combine_notifications** | **bool** | Ex: 1 | [optional] -**created_at** | **string** | When the record was first created. Use UTC ISO 8601 YYYY-MM-DDThh:mm:ss datetime format | [optional] +**created_at** | **string** | When the record was first created. Use UTC ISO 8601 YYYY-MM-DDThh:mm:ss datetime format | [optional] +**description** | **string** | Your bio will be displayed on your published studies | [optional] **display_name** | **string** | User display name | **earliest_reminder_time** | **string** | Earliest time user should get notifications. Ex: 05:00:00 | [optional] **email** | **string** | User email | diff --git a/docs/Model/Variable.md b/docs/Model/Variable.md index 277b6dc..ae2893c 100644 --- a/docs/Model/Variable.md +++ b/docs/Model/Variable.md @@ -50,10 +50,10 @@ Name | Type | Description | Notes **id** | **int** | Ex: 95614 | **image_url** | **string** | What do you expect? | [optional] **informational_url** | **string** | Ex: https://google.com | [optional] -**ingredient_of_common_tag_variables** | [**\QuantiModo\Client\Model\Variable[]**](Variable.md) | Commonly defined for all users. IngredientOf variable measurements will be included in analysis of the ingredient variable. For instance, a ingredient of the variable Lollypop could be Sugar. This way you only have to record Lollypop consumption and we can use this data to see how sugar might be affecting you. | [optional] -**ingredient_common_tag_variables** | [**\QuantiModo\Client\Model\Variable[]**](Variable.md) | Commonly defined for all users. IngredientOf variable measurements will be included in analysis of the ingredient variable. For instance, a ingredient of the variable Lollypop could be Sugar. This way you only have to record Lollypop consumption and we can use this data to see how sugar might be affecting you. | [optional] -**ingredient_of_user_tag_variables** | [**\QuantiModo\Client\Model\Variable[]**](Variable.md) | User-Defined Variable Setting: IngredientOf variable measurements will be included in analysis of the ingredient variable. For instance, a ingredient of the variable Lollypop could be Sugar. This way you only have to record Lollypop consumption and we can use this data to see how sugar might be affecting you. | [optional] -**ingredient_user_tag_variables** | [**\QuantiModo\Client\Model\Variable[]**](Variable.md) | User-Defined Variable Setting: IngredientOf variable measurements will be included in analysis of the ingredient variable. For instance, a ingredient of the variable Lollypop could be Sugar. This way you only have to record Lollypop consumption and we can use this data to see how sugar might be affecting you. | [optional] +**ingredient_of_common_tag_variables** | [**\QuantiModo\Client\Model\Variable[]**](Variable.md) | Commonly defined for all users. IngredientOf variable measurements will be included in analysis of the ingredient variable. For instance, a ingredient of the variable Lollipop could be Sugar. This way you only have to record Lollipop consumption and we can use this data to see how sugar might be affecting you. | [optional] +**ingredient_common_tag_variables** | [**\QuantiModo\Client\Model\Variable[]**](Variable.md) | Commonly defined for all users. IngredientOf variable measurements will be included in analysis of the ingredient variable. For instance, a ingredient of the variable Lollipop could be Sugar. This way you only have to record Lollipop consumption and we can use this data to see how sugar might be affecting you. | [optional] +**ingredient_of_user_tag_variables** | [**\QuantiModo\Client\Model\Variable[]**](Variable.md) | User-Defined Variable Setting: IngredientOf variable measurements will be included in analysis of the ingredient variable. For instance, a ingredient of the variable Lollipop could be Sugar. This way you only have to record Lollipop consumption and we can use this data to see how sugar might be affecting you. | [optional] +**ingredient_user_tag_variables** | [**\QuantiModo\Client\Model\Variable[]**](Variable.md) | User-Defined Variable Setting: IngredientOf variable measurements will be included in analysis of the ingredient variable. For instance, a ingredient of the variable Lollipop could be Sugar. This way you only have to record Lollipop consumption and we can use this data to see how sugar might be affecting you. | [optional] **input_type** | **string** | Type of input field to show for recording measurements | [optional] **ion_icon** | **string** | What do you expect? | [optional] **joined_common_tag_variables** | [**\QuantiModo\Client\Model\Variable[]**](Variable.md) | Commonly defined for all users. Joining can be used used to merge duplicate variables. For instance, if two variables called Apples (Red Delicious) and Red Delicious Apples are joined, when one of them is analyzed, the measurements for the other will be included as well. | [optional] @@ -108,7 +108,7 @@ Name | Type | Description | Notes **parent_common_tag_variables** | [**\QuantiModo\Client\Model\Variable[]**](Variable.md) | Commonly defined for all users. An example of a parent category variable would be Fruit when tagged with the child sub-type variables Apple. Child variable (Apple) measurements will be included when the parent category (Fruit) is analyzed. This allows us to see how Fruit consumption might be affecting without having to record both Fruit and Apple intake. | [optional] **parent_user_tag_variables** | [**\QuantiModo\Client\Model\Variable[]**](Variable.md) | User-defined. An example of a parent category variable would be Fruit when tagged with the child sub-type variables Apple. Child variable (Apple) measurements will be included when the parent category (Fruit) is analyzed. This allows us to see how Fruit consumption might be affecting without having to record both Fruit and Apple intake. | [optional] **png_path** | **string** | Ex: img/variable_categories/treatments.png | [optional] -**png_url** | **string** | Ex: https://quantimodo.quantimo.do/ionic/Modo/www/img/variable_categories/treatments.png | [optional] +**png_url** | **string** | Ex: https://web.quantimo.do/img/variable_categories/treatments.png | [optional] **predictor_of_interest** | **int** | Ex: 0 | [optional] **price** | **double** | Ex: 95.4 | [optional] **product_url** | **string** | Link to associated product for purchase | [optional] @@ -123,7 +123,7 @@ Name | Type | Description | Notes **standard_deviation** | **double** | Standard deviation Ex: 0.46483219855434 | [optional] **status** | **string** | status | [optional] **subtitle** | **string** | Based on sort filter and can be shown beneath variable name on search list | [optional] -**svg_url** | **string** | Ex: https://quantimodo.quantimo.do/ionic/Modo/www/img/variable_categories/treatments.svg | [optional] +**svg_url** | **string** | Ex: https://web.quantimo.do/img/variable_categories/treatments.svg | [optional] **third_most_common_value** | **double** | Calculated Statistic: Ex: 6. Unit: User-specified or common. | [optional] **third_to_last_value** | **double** | Calculated Statistic: Ex: 250. Unit: User-specified or common. | [optional] **tracking_instructions** | **string** | HTML instructions for tracking | [optional] diff --git a/docs/Model/VariableCategory.md b/docs/Model/VariableCategory.md index 1592c0f..9cfcc28 100644 --- a/docs/Model/VariableCategory.md +++ b/docs/Model/VariableCategory.md @@ -24,10 +24,10 @@ Name | Type | Description | Notes **onset_delay** | **int** | Ex: 0 | [optional] **outcome** | **bool** | Ex: true | [optional] **png_path** | **string** | Ex: img/variable_categories/emotions.png | [optional] -**png_url** | **string** | Ex: https://quantimodo.quantimo.do/ionic/Modo/www/img/variable_categories/emotions.png | [optional] +**png_url** | **string** | Ex: https://web.quantimo.do/img/variable_categories/emotions.png | [optional] **public** | **bool** | Ex: true | [optional] **svg_path** | **string** | Ex: img/variable_categories/emotions.svg | [optional] -**svg_url** | **string** | Ex: https://quantimodo.quantimo.do/ionic/Modo/www/img/variable_categories/emotions.svg | [optional] +**svg_url** | **string** | Ex: https://web.quantimo.do/img/variable_categories/emotions.svg | [optional] **updated** | **int** | Ex: 1 | [optional] **updated_time** | **string** | UTC ISO 8601 YYYY-MM-DDThh:mm:ss | [optional] **variable_category_name** | **string** | Ex: Emotions, Treatments, Symptoms... | [optional] diff --git a/lib/Api/ActivitiesApi.php b/lib/Api/ActivitiesApi.php index 4d0a1c9..fd8b05f 100644 --- a/lib/Api/ActivitiesApi.php +++ b/lib/Api/ActivitiesApi.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -59,6 +59,11 @@ class ActivitiesApi */ protected $config; + /** + * @var HeaderSelector + */ + protected $headerSelector; + /** * @param ClientInterface $client * @param Configuration $config diff --git a/lib/Api/AnalyticsApi.php b/lib/Api/AnalyticsApi.php index 507d463..0bafa8a 100644 --- a/lib/Api/AnalyticsApi.php +++ b/lib/Api/AnalyticsApi.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -59,6 +59,11 @@ class AnalyticsApi */ protected $config; + /** + * @var HeaderSelector + */ + protected $headerSelector; + /** * @param ClientInterface $client * @param Configuration $config @@ -87,16 +92,20 @@ public function getConfig() * * Get correlation explanations * - * @param string $cause_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) - * @param string $effect_variable_name Name of the hypothetical outcome variable. Ex: Overall Mood (optional) + * @param string $cause_variable_name Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $effect_variable_name Deprecated: Name of the outcome variable of interest. Ex: Overall Mood (optional) + * @param int $cause_variable_id Variable id of the hypothetical predictor variable. Ex: 1398 (optional) + * @param int $effect_variable_id Variable id of the outcome variable of interest. Ex: 1398 (optional) + * @param string $predictor_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $outcome_variable_name Name of the outcome variable of interest. Ex: Overall Mood (optional) * * @throws \QuantiModo\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \QuantiModo\Client\Model\Correlation[] */ - public function getCorrelationExplanations($cause_variable_name = null, $effect_variable_name = null) + public function getCorrelationExplanations($cause_variable_name = null, $effect_variable_name = null, $cause_variable_id = null, $effect_variable_id = null, $predictor_variable_name = null, $outcome_variable_name = null) { - list($response) = $this->getCorrelationExplanationsWithHttpInfo($cause_variable_name, $effect_variable_name); + list($response) = $this->getCorrelationExplanationsWithHttpInfo($cause_variable_name, $effect_variable_name, $cause_variable_id, $effect_variable_id, $predictor_variable_name, $outcome_variable_name); return $response; } @@ -105,17 +114,21 @@ public function getCorrelationExplanations($cause_variable_name = null, $effect_ * * Get correlation explanations * - * @param string $cause_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) - * @param string $effect_variable_name Name of the hypothetical outcome variable. Ex: Overall Mood (optional) + * @param string $cause_variable_name Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $effect_variable_name Deprecated: Name of the outcome variable of interest. Ex: Overall Mood (optional) + * @param int $cause_variable_id Variable id of the hypothetical predictor variable. Ex: 1398 (optional) + * @param int $effect_variable_id Variable id of the outcome variable of interest. Ex: 1398 (optional) + * @param string $predictor_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $outcome_variable_name Name of the outcome variable of interest. Ex: Overall Mood (optional) * * @throws \QuantiModo\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \QuantiModo\Client\Model\Correlation[], HTTP status code, HTTP response headers (array of strings) */ - public function getCorrelationExplanationsWithHttpInfo($cause_variable_name = null, $effect_variable_name = null) + public function getCorrelationExplanationsWithHttpInfo($cause_variable_name = null, $effect_variable_name = null, $cause_variable_id = null, $effect_variable_id = null, $predictor_variable_name = null, $outcome_variable_name = null) { $returnType = '\QuantiModo\Client\Model\Correlation[]'; - $request = $this->getCorrelationExplanationsRequest($cause_variable_name, $effect_variable_name); + $request = $this->getCorrelationExplanationsRequest($cause_variable_name, $effect_variable_name, $cause_variable_id, $effect_variable_id, $predictor_variable_name, $outcome_variable_name); try { $options = $this->createHttpClientOption(); @@ -181,15 +194,19 @@ public function getCorrelationExplanationsWithHttpInfo($cause_variable_name = nu * * Get correlation explanations * - * @param string $cause_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) - * @param string $effect_variable_name Name of the hypothetical outcome variable. Ex: Overall Mood (optional) + * @param string $cause_variable_name Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $effect_variable_name Deprecated: Name of the outcome variable of interest. Ex: Overall Mood (optional) + * @param int $cause_variable_id Variable id of the hypothetical predictor variable. Ex: 1398 (optional) + * @param int $effect_variable_id Variable id of the outcome variable of interest. Ex: 1398 (optional) + * @param string $predictor_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $outcome_variable_name Name of the outcome variable of interest. Ex: Overall Mood (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getCorrelationExplanationsAsync($cause_variable_name = null, $effect_variable_name = null) + public function getCorrelationExplanationsAsync($cause_variable_name = null, $effect_variable_name = null, $cause_variable_id = null, $effect_variable_id = null, $predictor_variable_name = null, $outcome_variable_name = null) { - return $this->getCorrelationExplanationsAsyncWithHttpInfo($cause_variable_name, $effect_variable_name) + return $this->getCorrelationExplanationsAsyncWithHttpInfo($cause_variable_name, $effect_variable_name, $cause_variable_id, $effect_variable_id, $predictor_variable_name, $outcome_variable_name) ->then( function ($response) { return $response[0]; @@ -202,16 +219,20 @@ function ($response) { * * Get correlation explanations * - * @param string $cause_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) - * @param string $effect_variable_name Name of the hypothetical outcome variable. Ex: Overall Mood (optional) + * @param string $cause_variable_name Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $effect_variable_name Deprecated: Name of the outcome variable of interest. Ex: Overall Mood (optional) + * @param int $cause_variable_id Variable id of the hypothetical predictor variable. Ex: 1398 (optional) + * @param int $effect_variable_id Variable id of the outcome variable of interest. Ex: 1398 (optional) + * @param string $predictor_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $outcome_variable_name Name of the outcome variable of interest. Ex: Overall Mood (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getCorrelationExplanationsAsyncWithHttpInfo($cause_variable_name = null, $effect_variable_name = null) + public function getCorrelationExplanationsAsyncWithHttpInfo($cause_variable_name = null, $effect_variable_name = null, $cause_variable_id = null, $effect_variable_id = null, $predictor_variable_name = null, $outcome_variable_name = null) { $returnType = '\QuantiModo\Client\Model\Correlation[]'; - $request = $this->getCorrelationExplanationsRequest($cause_variable_name, $effect_variable_name); + $request = $this->getCorrelationExplanationsRequest($cause_variable_name, $effect_variable_name, $cause_variable_id, $effect_variable_id, $predictor_variable_name, $outcome_variable_name); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -253,13 +274,17 @@ function ($exception) { /** * Create request for operation 'getCorrelationExplanations' * - * @param string $cause_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) - * @param string $effect_variable_name Name of the hypothetical outcome variable. Ex: Overall Mood (optional) + * @param string $cause_variable_name Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $effect_variable_name Deprecated: Name of the outcome variable of interest. Ex: Overall Mood (optional) + * @param int $cause_variable_id Variable id of the hypothetical predictor variable. Ex: 1398 (optional) + * @param int $effect_variable_id Variable id of the outcome variable of interest. Ex: 1398 (optional) + * @param string $predictor_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $outcome_variable_name Name of the outcome variable of interest. Ex: Overall Mood (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - protected function getCorrelationExplanationsRequest($cause_variable_name = null, $effect_variable_name = null) + protected function getCorrelationExplanationsRequest($cause_variable_name = null, $effect_variable_name = null, $cause_variable_id = null, $effect_variable_id = null, $predictor_variable_name = null, $outcome_variable_name = null) { $resourcePath = '/v3/correlations/explanations'; @@ -277,6 +302,22 @@ protected function getCorrelationExplanationsRequest($cause_variable_name = null if ($effect_variable_name !== null) { $queryParams['effectVariableName'] = ObjectSerializer::toQueryValue($effect_variable_name); } + // query params + if ($cause_variable_id !== null) { + $queryParams['causeVariableId'] = ObjectSerializer::toQueryValue($cause_variable_id); + } + // query params + if ($effect_variable_id !== null) { + $queryParams['effectVariableId'] = ObjectSerializer::toQueryValue($effect_variable_id); + } + // query params + if ($predictor_variable_name !== null) { + $queryParams['predictorVariableName'] = ObjectSerializer::toQueryValue($predictor_variable_name); + } + // query params + if ($outcome_variable_name !== null) { + $queryParams['outcomeVariableName'] = ObjectSerializer::toQueryValue($outcome_variable_name); + } // body params @@ -357,8 +398,12 @@ protected function getCorrelationExplanationsRequest($cause_variable_name = null * * Get correlations * - * @param string $cause_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) - * @param string $effect_variable_name Name of the hypothetical outcome variable. Ex: Overall Mood (optional) + * @param string $cause_variable_name Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $effect_variable_name Deprecated: Name of the outcome variable of interest. Ex: Overall Mood (optional) + * @param int $cause_variable_id Variable id of the hypothetical predictor variable. Ex: 1398 (optional) + * @param int $effect_variable_id Variable id of the outcome variable of interest. Ex: 1398 (optional) + * @param string $predictor_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $outcome_variable_name Name of the outcome variable of interest. Ex: Overall Mood (optional) * @param string $sort Sort by one of the listed field names. If the field name is prefixed with `-`, it will sort in descending order. (optional) * @param int $limit The LIMIT is used to limit the number of results returned. So if youhave 1000 results, but only want to the first 10, you would set this to 10 and offset to 0. The maximum limit is 200 records. (optional, default to 100) * @param int $offset OFFSET says to skip that many rows before beginning to return rows to the client. OFFSET 0 is the same as omitting the OFFSET clause.If both OFFSET and LIMIT appear, then OFFSET rows are skipped before starting to count the LIMIT rows that are returned. (optional) @@ -374,9 +419,9 @@ protected function getCorrelationExplanationsRequest($cause_variable_name = null * @throws \InvalidArgumentException * @return \QuantiModo\Client\Model\GetCorrelationsResponse */ - public function getCorrelations($cause_variable_name = null, $effect_variable_name = null, $sort = null, $limit = '100', $offset = null, $user_id = null, $correlation_coefficient = null, $updated_at = null, $outcomes_of_interest = null, $client_id = null, $common_only = null, $platform = null) + public function getCorrelations($cause_variable_name = null, $effect_variable_name = null, $cause_variable_id = null, $effect_variable_id = null, $predictor_variable_name = null, $outcome_variable_name = null, $sort = null, $limit = '100', $offset = null, $user_id = null, $correlation_coefficient = null, $updated_at = null, $outcomes_of_interest = null, $client_id = null, $common_only = null, $platform = null) { - list($response) = $this->getCorrelationsWithHttpInfo($cause_variable_name, $effect_variable_name, $sort, $limit, $offset, $user_id, $correlation_coefficient, $updated_at, $outcomes_of_interest, $client_id, $common_only, $platform); + list($response) = $this->getCorrelationsWithHttpInfo($cause_variable_name, $effect_variable_name, $cause_variable_id, $effect_variable_id, $predictor_variable_name, $outcome_variable_name, $sort, $limit, $offset, $user_id, $correlation_coefficient, $updated_at, $outcomes_of_interest, $client_id, $common_only, $platform); return $response; } @@ -385,8 +430,12 @@ public function getCorrelations($cause_variable_name = null, $effect_variable_na * * Get correlations * - * @param string $cause_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) - * @param string $effect_variable_name Name of the hypothetical outcome variable. Ex: Overall Mood (optional) + * @param string $cause_variable_name Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $effect_variable_name Deprecated: Name of the outcome variable of interest. Ex: Overall Mood (optional) + * @param int $cause_variable_id Variable id of the hypothetical predictor variable. Ex: 1398 (optional) + * @param int $effect_variable_id Variable id of the outcome variable of interest. Ex: 1398 (optional) + * @param string $predictor_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $outcome_variable_name Name of the outcome variable of interest. Ex: Overall Mood (optional) * @param string $sort Sort by one of the listed field names. If the field name is prefixed with `-`, it will sort in descending order. (optional) * @param int $limit The LIMIT is used to limit the number of results returned. So if youhave 1000 results, but only want to the first 10, you would set this to 10 and offset to 0. The maximum limit is 200 records. (optional, default to 100) * @param int $offset OFFSET says to skip that many rows before beginning to return rows to the client. OFFSET 0 is the same as omitting the OFFSET clause.If both OFFSET and LIMIT appear, then OFFSET rows are skipped before starting to count the LIMIT rows that are returned. (optional) @@ -402,10 +451,10 @@ public function getCorrelations($cause_variable_name = null, $effect_variable_na * @throws \InvalidArgumentException * @return array of \QuantiModo\Client\Model\GetCorrelationsResponse, HTTP status code, HTTP response headers (array of strings) */ - public function getCorrelationsWithHttpInfo($cause_variable_name = null, $effect_variable_name = null, $sort = null, $limit = '100', $offset = null, $user_id = null, $correlation_coefficient = null, $updated_at = null, $outcomes_of_interest = null, $client_id = null, $common_only = null, $platform = null) + public function getCorrelationsWithHttpInfo($cause_variable_name = null, $effect_variable_name = null, $cause_variable_id = null, $effect_variable_id = null, $predictor_variable_name = null, $outcome_variable_name = null, $sort = null, $limit = '100', $offset = null, $user_id = null, $correlation_coefficient = null, $updated_at = null, $outcomes_of_interest = null, $client_id = null, $common_only = null, $platform = null) { $returnType = '\QuantiModo\Client\Model\GetCorrelationsResponse'; - $request = $this->getCorrelationsRequest($cause_variable_name, $effect_variable_name, $sort, $limit, $offset, $user_id, $correlation_coefficient, $updated_at, $outcomes_of_interest, $client_id, $common_only, $platform); + $request = $this->getCorrelationsRequest($cause_variable_name, $effect_variable_name, $cause_variable_id, $effect_variable_id, $predictor_variable_name, $outcome_variable_name, $sort, $limit, $offset, $user_id, $correlation_coefficient, $updated_at, $outcomes_of_interest, $client_id, $common_only, $platform); try { $options = $this->createHttpClientOption(); @@ -471,8 +520,12 @@ public function getCorrelationsWithHttpInfo($cause_variable_name = null, $effect * * Get correlations * - * @param string $cause_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) - * @param string $effect_variable_name Name of the hypothetical outcome variable. Ex: Overall Mood (optional) + * @param string $cause_variable_name Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $effect_variable_name Deprecated: Name of the outcome variable of interest. Ex: Overall Mood (optional) + * @param int $cause_variable_id Variable id of the hypothetical predictor variable. Ex: 1398 (optional) + * @param int $effect_variable_id Variable id of the outcome variable of interest. Ex: 1398 (optional) + * @param string $predictor_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $outcome_variable_name Name of the outcome variable of interest. Ex: Overall Mood (optional) * @param string $sort Sort by one of the listed field names. If the field name is prefixed with `-`, it will sort in descending order. (optional) * @param int $limit The LIMIT is used to limit the number of results returned. So if youhave 1000 results, but only want to the first 10, you would set this to 10 and offset to 0. The maximum limit is 200 records. (optional, default to 100) * @param int $offset OFFSET says to skip that many rows before beginning to return rows to the client. OFFSET 0 is the same as omitting the OFFSET clause.If both OFFSET and LIMIT appear, then OFFSET rows are skipped before starting to count the LIMIT rows that are returned. (optional) @@ -487,9 +540,9 @@ public function getCorrelationsWithHttpInfo($cause_variable_name = null, $effect * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getCorrelationsAsync($cause_variable_name = null, $effect_variable_name = null, $sort = null, $limit = '100', $offset = null, $user_id = null, $correlation_coefficient = null, $updated_at = null, $outcomes_of_interest = null, $client_id = null, $common_only = null, $platform = null) + public function getCorrelationsAsync($cause_variable_name = null, $effect_variable_name = null, $cause_variable_id = null, $effect_variable_id = null, $predictor_variable_name = null, $outcome_variable_name = null, $sort = null, $limit = '100', $offset = null, $user_id = null, $correlation_coefficient = null, $updated_at = null, $outcomes_of_interest = null, $client_id = null, $common_only = null, $platform = null) { - return $this->getCorrelationsAsyncWithHttpInfo($cause_variable_name, $effect_variable_name, $sort, $limit, $offset, $user_id, $correlation_coefficient, $updated_at, $outcomes_of_interest, $client_id, $common_only, $platform) + return $this->getCorrelationsAsyncWithHttpInfo($cause_variable_name, $effect_variable_name, $cause_variable_id, $effect_variable_id, $predictor_variable_name, $outcome_variable_name, $sort, $limit, $offset, $user_id, $correlation_coefficient, $updated_at, $outcomes_of_interest, $client_id, $common_only, $platform) ->then( function ($response) { return $response[0]; @@ -502,8 +555,12 @@ function ($response) { * * Get correlations * - * @param string $cause_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) - * @param string $effect_variable_name Name of the hypothetical outcome variable. Ex: Overall Mood (optional) + * @param string $cause_variable_name Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $effect_variable_name Deprecated: Name of the outcome variable of interest. Ex: Overall Mood (optional) + * @param int $cause_variable_id Variable id of the hypothetical predictor variable. Ex: 1398 (optional) + * @param int $effect_variable_id Variable id of the outcome variable of interest. Ex: 1398 (optional) + * @param string $predictor_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $outcome_variable_name Name of the outcome variable of interest. Ex: Overall Mood (optional) * @param string $sort Sort by one of the listed field names. If the field name is prefixed with `-`, it will sort in descending order. (optional) * @param int $limit The LIMIT is used to limit the number of results returned. So if youhave 1000 results, but only want to the first 10, you would set this to 10 and offset to 0. The maximum limit is 200 records. (optional, default to 100) * @param int $offset OFFSET says to skip that many rows before beginning to return rows to the client. OFFSET 0 is the same as omitting the OFFSET clause.If both OFFSET and LIMIT appear, then OFFSET rows are skipped before starting to count the LIMIT rows that are returned. (optional) @@ -518,10 +575,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getCorrelationsAsyncWithHttpInfo($cause_variable_name = null, $effect_variable_name = null, $sort = null, $limit = '100', $offset = null, $user_id = null, $correlation_coefficient = null, $updated_at = null, $outcomes_of_interest = null, $client_id = null, $common_only = null, $platform = null) + public function getCorrelationsAsyncWithHttpInfo($cause_variable_name = null, $effect_variable_name = null, $cause_variable_id = null, $effect_variable_id = null, $predictor_variable_name = null, $outcome_variable_name = null, $sort = null, $limit = '100', $offset = null, $user_id = null, $correlation_coefficient = null, $updated_at = null, $outcomes_of_interest = null, $client_id = null, $common_only = null, $platform = null) { $returnType = '\QuantiModo\Client\Model\GetCorrelationsResponse'; - $request = $this->getCorrelationsRequest($cause_variable_name, $effect_variable_name, $sort, $limit, $offset, $user_id, $correlation_coefficient, $updated_at, $outcomes_of_interest, $client_id, $common_only, $platform); + $request = $this->getCorrelationsRequest($cause_variable_name, $effect_variable_name, $cause_variable_id, $effect_variable_id, $predictor_variable_name, $outcome_variable_name, $sort, $limit, $offset, $user_id, $correlation_coefficient, $updated_at, $outcomes_of_interest, $client_id, $common_only, $platform); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -563,8 +620,12 @@ function ($exception) { /** * Create request for operation 'getCorrelations' * - * @param string $cause_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) - * @param string $effect_variable_name Name of the hypothetical outcome variable. Ex: Overall Mood (optional) + * @param string $cause_variable_name Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $effect_variable_name Deprecated: Name of the outcome variable of interest. Ex: Overall Mood (optional) + * @param int $cause_variable_id Variable id of the hypothetical predictor variable. Ex: 1398 (optional) + * @param int $effect_variable_id Variable id of the outcome variable of interest. Ex: 1398 (optional) + * @param string $predictor_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $outcome_variable_name Name of the outcome variable of interest. Ex: Overall Mood (optional) * @param string $sort Sort by one of the listed field names. If the field name is prefixed with `-`, it will sort in descending order. (optional) * @param int $limit The LIMIT is used to limit the number of results returned. So if youhave 1000 results, but only want to the first 10, you would set this to 10 and offset to 0. The maximum limit is 200 records. (optional, default to 100) * @param int $offset OFFSET says to skip that many rows before beginning to return rows to the client. OFFSET 0 is the same as omitting the OFFSET clause.If both OFFSET and LIMIT appear, then OFFSET rows are skipped before starting to count the LIMIT rows that are returned. (optional) @@ -579,7 +640,7 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - protected function getCorrelationsRequest($cause_variable_name = null, $effect_variable_name = null, $sort = null, $limit = '100', $offset = null, $user_id = null, $correlation_coefficient = null, $updated_at = null, $outcomes_of_interest = null, $client_id = null, $common_only = null, $platform = null) + protected function getCorrelationsRequest($cause_variable_name = null, $effect_variable_name = null, $cause_variable_id = null, $effect_variable_id = null, $predictor_variable_name = null, $outcome_variable_name = null, $sort = null, $limit = '100', $offset = null, $user_id = null, $correlation_coefficient = null, $updated_at = null, $outcomes_of_interest = null, $client_id = null, $common_only = null, $platform = null) { if ($offset !== null && $offset < 0) { throw new \InvalidArgumentException('invalid value for "$offset" when calling AnalyticsApi.getCorrelations, must be bigger than or equal to 0.'); @@ -602,6 +663,22 @@ protected function getCorrelationsRequest($cause_variable_name = null, $effect_v $queryParams['effectVariableName'] = ObjectSerializer::toQueryValue($effect_variable_name); } // query params + if ($cause_variable_id !== null) { + $queryParams['causeVariableId'] = ObjectSerializer::toQueryValue($cause_variable_id); + } + // query params + if ($effect_variable_id !== null) { + $queryParams['effectVariableId'] = ObjectSerializer::toQueryValue($effect_variable_id); + } + // query params + if ($predictor_variable_name !== null) { + $queryParams['predictorVariableName'] = ObjectSerializer::toQueryValue($predictor_variable_name); + } + // query params + if ($outcome_variable_name !== null) { + $queryParams['outcomeVariableName'] = ObjectSerializer::toQueryValue($outcome_variable_name); + } + // query params if ($sort !== null) { $queryParams['sort'] = ObjectSerializer::toQueryValue($sort); } diff --git a/lib/Api/AppSettingsApi.php b/lib/Api/AppSettingsApi.php index c0bb866..27d5256 100644 --- a/lib/Api/AppSettingsApi.php +++ b/lib/Api/AppSettingsApi.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -59,6 +59,11 @@ class AppSettingsApi */ protected $config; + /** + * @var HeaderSelector + */ + protected $headerSelector; + /** * @param ClientInterface $client * @param Configuration $config @@ -88,7 +93,7 @@ public function getConfig() * Get client app settings * * @param string $client_id Your QuantiModo client id can be obtained by creating an app at https://builder.quantimo.do (optional) - * @param string $client_secret This is the secret for your obtained clientId. We use this to ensure that only your application uses the clientId. Obtain this by creating a free application at [https://app.quantimo.do/api/v2/apps](https://app.quantimo.do/api/v2/apps). (optional) + * @param string $client_secret This is the secret for your obtained clientId. We use this to ensure that only your application uses the clientId. Obtain this by creating a free application at [https://builder.quantimo.do](https://builder.quantimo.do). (optional) * @param string $platform Ex: chrome, android, ios, web (optional) * * @throws \QuantiModo\Client\ApiException on non-2xx response @@ -107,7 +112,7 @@ public function getAppSettings($client_id = null, $client_secret = null, $platfo * Get client app settings * * @param string $client_id Your QuantiModo client id can be obtained by creating an app at https://builder.quantimo.do (optional) - * @param string $client_secret This is the secret for your obtained clientId. We use this to ensure that only your application uses the clientId. Obtain this by creating a free application at [https://app.quantimo.do/api/v2/apps](https://app.quantimo.do/api/v2/apps). (optional) + * @param string $client_secret This is the secret for your obtained clientId. We use this to ensure that only your application uses the clientId. Obtain this by creating a free application at [https://builder.quantimo.do](https://builder.quantimo.do). (optional) * @param string $platform Ex: chrome, android, ios, web (optional) * * @throws \QuantiModo\Client\ApiException on non-2xx response @@ -192,7 +197,7 @@ public function getAppSettingsWithHttpInfo($client_id = null, $client_secret = n * Get client app settings * * @param string $client_id Your QuantiModo client id can be obtained by creating an app at https://builder.quantimo.do (optional) - * @param string $client_secret This is the secret for your obtained clientId. We use this to ensure that only your application uses the clientId. Obtain this by creating a free application at [https://app.quantimo.do/api/v2/apps](https://app.quantimo.do/api/v2/apps). (optional) + * @param string $client_secret This is the secret for your obtained clientId. We use this to ensure that only your application uses the clientId. Obtain this by creating a free application at [https://builder.quantimo.do](https://builder.quantimo.do). (optional) * @param string $platform Ex: chrome, android, ios, web (optional) * * @throws \InvalidArgumentException @@ -214,7 +219,7 @@ function ($response) { * Get client app settings * * @param string $client_id Your QuantiModo client id can be obtained by creating an app at https://builder.quantimo.do (optional) - * @param string $client_secret This is the secret for your obtained clientId. We use this to ensure that only your application uses the clientId. Obtain this by creating a free application at [https://app.quantimo.do/api/v2/apps](https://app.quantimo.do/api/v2/apps). (optional) + * @param string $client_secret This is the secret for your obtained clientId. We use this to ensure that only your application uses the clientId. Obtain this by creating a free application at [https://builder.quantimo.do](https://builder.quantimo.do). (optional) * @param string $platform Ex: chrome, android, ios, web (optional) * * @throws \InvalidArgumentException @@ -266,7 +271,7 @@ function ($exception) { * Create request for operation 'getAppSettings' * * @param string $client_id Your QuantiModo client id can be obtained by creating an app at https://builder.quantimo.do (optional) - * @param string $client_secret This is the secret for your obtained clientId. We use this to ensure that only your application uses the clientId. Obtain this by creating a free application at [https://app.quantimo.do/api/v2/apps](https://app.quantimo.do/api/v2/apps). (optional) + * @param string $client_secret This is the secret for your obtained clientId. We use this to ensure that only your application uses the clientId. Obtain this by creating a free application at [https://builder.quantimo.do](https://builder.quantimo.do). (optional) * @param string $platform Ex: chrome, android, ios, web (optional) * * @throws \InvalidArgumentException diff --git a/lib/Api/AuthenticationApi.php b/lib/Api/AuthenticationApi.php index 3e0af9f..a9a6c3a 100644 --- a/lib/Api/AuthenticationApi.php +++ b/lib/Api/AuthenticationApi.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -59,6 +59,11 @@ class AuthenticationApi */ protected $config; + /** + * @var HeaderSelector + */ + protected $headerSelector; + /** * @param ClientInterface $client * @param Configuration $config @@ -92,7 +97,7 @@ public function getConfig() * @param string $response_type If the value is code, launches a Basic flow, requiring a POST to the token endpoint to obtain the tokens. If the value is token id_token or id_token token, launches an Implicit flow, requiring the use of Javascript at the redirect URI to retrieve tokens from the URI #fragment. (required) * @param string $scope Scopes include basic, readmeasurements, and writemeasurements. The `basic` scope allows you to read user info (displayName, email, etc). The `readmeasurements` scope allows one to read a user's data. The `writemeasurements` scope allows you to write user data. Separate multiple scopes by a space. (required) * @param string $client_id Your QuantiModo client id can be obtained by creating an app at https://builder.quantimo.do (optional) - * @param string $client_secret This is the secret for your obtained clientId. We use this to ensure that only your application uses the clientId. Obtain this by creating a free application at [https://app.quantimo.do/api/v2/apps](https://app.quantimo.do/api/v2/apps). (optional) + * @param string $client_secret This is the secret for your obtained clientId. We use this to ensure that only your application uses the clientId. Obtain this by creating a free application at [https://builder.quantimo.do](https://builder.quantimo.do). (optional) * @param string $redirect_uri The redirect URI is the URL within your client application that will receive the OAuth2 credentials. (optional) * @param string $state An opaque string that is round-tripped in the protocol; that is to say, it is returned as a URI parameter in the Basic flow, and in the URI (optional) * @param string $platform Ex: chrome, android, ios, web (optional) @@ -116,7 +121,7 @@ public function getAccessToken($grant_type, $code, $response_type, $scope, $clie * @param string $response_type If the value is code, launches a Basic flow, requiring a POST to the token endpoint to obtain the tokens. If the value is token id_token or id_token token, launches an Implicit flow, requiring the use of Javascript at the redirect URI to retrieve tokens from the URI #fragment. (required) * @param string $scope Scopes include basic, readmeasurements, and writemeasurements. The `basic` scope allows you to read user info (displayName, email, etc). The `readmeasurements` scope allows one to read a user's data. The `writemeasurements` scope allows you to write user data. Separate multiple scopes by a space. (required) * @param string $client_id Your QuantiModo client id can be obtained by creating an app at https://builder.quantimo.do (optional) - * @param string $client_secret This is the secret for your obtained clientId. We use this to ensure that only your application uses the clientId. Obtain this by creating a free application at [https://app.quantimo.do/api/v2/apps](https://app.quantimo.do/api/v2/apps). (optional) + * @param string $client_secret This is the secret for your obtained clientId. We use this to ensure that only your application uses the clientId. Obtain this by creating a free application at [https://builder.quantimo.do](https://builder.quantimo.do). (optional) * @param string $redirect_uri The redirect URI is the URL within your client application that will receive the OAuth2 credentials. (optional) * @param string $state An opaque string that is round-tripped in the protocol; that is to say, it is returned as a URI parameter in the Basic flow, and in the URI (optional) * @param string $platform Ex: chrome, android, ios, web (optional) @@ -177,7 +182,7 @@ public function getAccessTokenWithHttpInfo($grant_type, $code, $response_type, $ * @param string $response_type If the value is code, launches a Basic flow, requiring a POST to the token endpoint to obtain the tokens. If the value is token id_token or id_token token, launches an Implicit flow, requiring the use of Javascript at the redirect URI to retrieve tokens from the URI #fragment. (required) * @param string $scope Scopes include basic, readmeasurements, and writemeasurements. The `basic` scope allows you to read user info (displayName, email, etc). The `readmeasurements` scope allows one to read a user's data. The `writemeasurements` scope allows you to write user data. Separate multiple scopes by a space. (required) * @param string $client_id Your QuantiModo client id can be obtained by creating an app at https://builder.quantimo.do (optional) - * @param string $client_secret This is the secret for your obtained clientId. We use this to ensure that only your application uses the clientId. Obtain this by creating a free application at [https://app.quantimo.do/api/v2/apps](https://app.quantimo.do/api/v2/apps). (optional) + * @param string $client_secret This is the secret for your obtained clientId. We use this to ensure that only your application uses the clientId. Obtain this by creating a free application at [https://builder.quantimo.do](https://builder.quantimo.do). (optional) * @param string $redirect_uri The redirect URI is the URL within your client application that will receive the OAuth2 credentials. (optional) * @param string $state An opaque string that is round-tripped in the protocol; that is to say, it is returned as a URI parameter in the Basic flow, and in the URI (optional) * @param string $platform Ex: chrome, android, ios, web (optional) @@ -205,7 +210,7 @@ function ($response) { * @param string $response_type If the value is code, launches a Basic flow, requiring a POST to the token endpoint to obtain the tokens. If the value is token id_token or id_token token, launches an Implicit flow, requiring the use of Javascript at the redirect URI to retrieve tokens from the URI #fragment. (required) * @param string $scope Scopes include basic, readmeasurements, and writemeasurements. The `basic` scope allows you to read user info (displayName, email, etc). The `readmeasurements` scope allows one to read a user's data. The `writemeasurements` scope allows you to write user data. Separate multiple scopes by a space. (required) * @param string $client_id Your QuantiModo client id can be obtained by creating an app at https://builder.quantimo.do (optional) - * @param string $client_secret This is the secret for your obtained clientId. We use this to ensure that only your application uses the clientId. Obtain this by creating a free application at [https://app.quantimo.do/api/v2/apps](https://app.quantimo.do/api/v2/apps). (optional) + * @param string $client_secret This is the secret for your obtained clientId. We use this to ensure that only your application uses the clientId. Obtain this by creating a free application at [https://builder.quantimo.do](https://builder.quantimo.do). (optional) * @param string $redirect_uri The redirect URI is the URL within your client application that will receive the OAuth2 credentials. (optional) * @param string $state An opaque string that is round-tripped in the protocol; that is to say, it is returned as a URI parameter in the Basic flow, and in the URI (optional) * @param string $platform Ex: chrome, android, ios, web (optional) @@ -249,7 +254,7 @@ function ($exception) { * @param string $response_type If the value is code, launches a Basic flow, requiring a POST to the token endpoint to obtain the tokens. If the value is token id_token or id_token token, launches an Implicit flow, requiring the use of Javascript at the redirect URI to retrieve tokens from the URI #fragment. (required) * @param string $scope Scopes include basic, readmeasurements, and writemeasurements. The `basic` scope allows you to read user info (displayName, email, etc). The `readmeasurements` scope allows one to read a user's data. The `writemeasurements` scope allows you to write user data. Separate multiple scopes by a space. (required) * @param string $client_id Your QuantiModo client id can be obtained by creating an app at https://builder.quantimo.do (optional) - * @param string $client_secret This is the secret for your obtained clientId. We use this to ensure that only your application uses the clientId. Obtain this by creating a free application at [https://app.quantimo.do/api/v2/apps](https://app.quantimo.do/api/v2/apps). (optional) + * @param string $client_secret This is the secret for your obtained clientId. We use this to ensure that only your application uses the clientId. Obtain this by creating a free application at [https://builder.quantimo.do](https://builder.quantimo.do). (optional) * @param string $redirect_uri The redirect URI is the URL within your client application that will receive the OAuth2 credentials. (optional) * @param string $state An opaque string that is round-tripped in the protocol; that is to say, it is returned as a URI parameter in the Basic flow, and in the URI (optional) * @param string $platform Ex: chrome, android, ios, web (optional) @@ -260,25 +265,25 @@ function ($exception) { protected function getAccessTokenRequest($grant_type, $code, $response_type, $scope, $client_id = null, $client_secret = null, $redirect_uri = null, $state = null, $platform = null) { // verify the required parameter 'grant_type' is set - if ($grant_type === null) { + if ($grant_type === null || (is_array($grant_type) && count($grant_type) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $grant_type when calling getAccessToken' ); } // verify the required parameter 'code' is set - if ($code === null) { + if ($code === null || (is_array($code) && count($code) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $code when calling getAccessToken' ); } // verify the required parameter 'response_type' is set - if ($response_type === null) { + if ($response_type === null || (is_array($response_type) && count($response_type) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $response_type when calling getAccessToken' ); } // verify the required parameter 'scope' is set - if ($scope === null) { + if ($scope === null || (is_array($scope) && count($scope) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $scope when calling getAccessToken' ); @@ -410,7 +415,7 @@ protected function getAccessTokenRequest($grant_type, $code, $response_type, $sc * @param string $response_type If the value is code, launches a Basic flow, requiring a POST to the token endpoint to obtain the tokens. If the value is token id_token or id_token token, launches an Implicit flow, requiring the use of Javascript at the redirect URI to retrieve tokens from the URI #fragment. (required) * @param string $scope Scopes include basic, readmeasurements, and writemeasurements. The `basic` scope allows you to read user info (displayName, email, etc). The `readmeasurements` scope allows one to read a user's data. The `writemeasurements` scope allows you to write user data. Separate multiple scopes by a space. (required) * @param string $client_id Your QuantiModo client id can be obtained by creating an app at https://builder.quantimo.do (optional) - * @param string $client_secret This is the secret for your obtained clientId. We use this to ensure that only your application uses the clientId. Obtain this by creating a free application at [https://app.quantimo.do/api/v2/apps](https://app.quantimo.do/api/v2/apps). (optional) + * @param string $client_secret This is the secret for your obtained clientId. We use this to ensure that only your application uses the clientId. Obtain this by creating a free application at [https://builder.quantimo.do](https://builder.quantimo.do). (optional) * @param string $redirect_uri The redirect URI is the URL within your client application that will receive the OAuth2 credentials. (optional) * @param string $state An opaque string that is round-tripped in the protocol; that is to say, it is returned as a URI parameter in the Basic flow, and in the URI (optional) * @param string $platform Ex: chrome, android, ios, web (optional) @@ -432,7 +437,7 @@ public function getOauthAuthorizationCode($response_type, $scope, $client_id = n * @param string $response_type If the value is code, launches a Basic flow, requiring a POST to the token endpoint to obtain the tokens. If the value is token id_token or id_token token, launches an Implicit flow, requiring the use of Javascript at the redirect URI to retrieve tokens from the URI #fragment. (required) * @param string $scope Scopes include basic, readmeasurements, and writemeasurements. The `basic` scope allows you to read user info (displayName, email, etc). The `readmeasurements` scope allows one to read a user's data. The `writemeasurements` scope allows you to write user data. Separate multiple scopes by a space. (required) * @param string $client_id Your QuantiModo client id can be obtained by creating an app at https://builder.quantimo.do (optional) - * @param string $client_secret This is the secret for your obtained clientId. We use this to ensure that only your application uses the clientId. Obtain this by creating a free application at [https://app.quantimo.do/api/v2/apps](https://app.quantimo.do/api/v2/apps). (optional) + * @param string $client_secret This is the secret for your obtained clientId. We use this to ensure that only your application uses the clientId. Obtain this by creating a free application at [https://builder.quantimo.do](https://builder.quantimo.do). (optional) * @param string $redirect_uri The redirect URI is the URL within your client application that will receive the OAuth2 credentials. (optional) * @param string $state An opaque string that is round-tripped in the protocol; that is to say, it is returned as a URI parameter in the Basic flow, and in the URI (optional) * @param string $platform Ex: chrome, android, ios, web (optional) @@ -491,7 +496,7 @@ public function getOauthAuthorizationCodeWithHttpInfo($response_type, $scope, $c * @param string $response_type If the value is code, launches a Basic flow, requiring a POST to the token endpoint to obtain the tokens. If the value is token id_token or id_token token, launches an Implicit flow, requiring the use of Javascript at the redirect URI to retrieve tokens from the URI #fragment. (required) * @param string $scope Scopes include basic, readmeasurements, and writemeasurements. The `basic` scope allows you to read user info (displayName, email, etc). The `readmeasurements` scope allows one to read a user's data. The `writemeasurements` scope allows you to write user data. Separate multiple scopes by a space. (required) * @param string $client_id Your QuantiModo client id can be obtained by creating an app at https://builder.quantimo.do (optional) - * @param string $client_secret This is the secret for your obtained clientId. We use this to ensure that only your application uses the clientId. Obtain this by creating a free application at [https://app.quantimo.do/api/v2/apps](https://app.quantimo.do/api/v2/apps). (optional) + * @param string $client_secret This is the secret for your obtained clientId. We use this to ensure that only your application uses the clientId. Obtain this by creating a free application at [https://builder.quantimo.do](https://builder.quantimo.do). (optional) * @param string $redirect_uri The redirect URI is the URL within your client application that will receive the OAuth2 credentials. (optional) * @param string $state An opaque string that is round-tripped in the protocol; that is to say, it is returned as a URI parameter in the Basic flow, and in the URI (optional) * @param string $platform Ex: chrome, android, ios, web (optional) @@ -517,7 +522,7 @@ function ($response) { * @param string $response_type If the value is code, launches a Basic flow, requiring a POST to the token endpoint to obtain the tokens. If the value is token id_token or id_token token, launches an Implicit flow, requiring the use of Javascript at the redirect URI to retrieve tokens from the URI #fragment. (required) * @param string $scope Scopes include basic, readmeasurements, and writemeasurements. The `basic` scope allows you to read user info (displayName, email, etc). The `readmeasurements` scope allows one to read a user's data. The `writemeasurements` scope allows you to write user data. Separate multiple scopes by a space. (required) * @param string $client_id Your QuantiModo client id can be obtained by creating an app at https://builder.quantimo.do (optional) - * @param string $client_secret This is the secret for your obtained clientId. We use this to ensure that only your application uses the clientId. Obtain this by creating a free application at [https://app.quantimo.do/api/v2/apps](https://app.quantimo.do/api/v2/apps). (optional) + * @param string $client_secret This is the secret for your obtained clientId. We use this to ensure that only your application uses the clientId. Obtain this by creating a free application at [https://builder.quantimo.do](https://builder.quantimo.do). (optional) * @param string $redirect_uri The redirect URI is the URL within your client application that will receive the OAuth2 credentials. (optional) * @param string $state An opaque string that is round-tripped in the protocol; that is to say, it is returned as a URI parameter in the Basic flow, and in the URI (optional) * @param string $platform Ex: chrome, android, ios, web (optional) @@ -559,7 +564,7 @@ function ($exception) { * @param string $response_type If the value is code, launches a Basic flow, requiring a POST to the token endpoint to obtain the tokens. If the value is token id_token or id_token token, launches an Implicit flow, requiring the use of Javascript at the redirect URI to retrieve tokens from the URI #fragment. (required) * @param string $scope Scopes include basic, readmeasurements, and writemeasurements. The `basic` scope allows you to read user info (displayName, email, etc). The `readmeasurements` scope allows one to read a user's data. The `writemeasurements` scope allows you to write user data. Separate multiple scopes by a space. (required) * @param string $client_id Your QuantiModo client id can be obtained by creating an app at https://builder.quantimo.do (optional) - * @param string $client_secret This is the secret for your obtained clientId. We use this to ensure that only your application uses the clientId. Obtain this by creating a free application at [https://app.quantimo.do/api/v2/apps](https://app.quantimo.do/api/v2/apps). (optional) + * @param string $client_secret This is the secret for your obtained clientId. We use this to ensure that only your application uses the clientId. Obtain this by creating a free application at [https://builder.quantimo.do](https://builder.quantimo.do). (optional) * @param string $redirect_uri The redirect URI is the URL within your client application that will receive the OAuth2 credentials. (optional) * @param string $state An opaque string that is round-tripped in the protocol; that is to say, it is returned as a URI parameter in the Basic flow, and in the URI (optional) * @param string $platform Ex: chrome, android, ios, web (optional) @@ -570,13 +575,13 @@ function ($exception) { protected function getOauthAuthorizationCodeRequest($response_type, $scope, $client_id = null, $client_secret = null, $redirect_uri = null, $state = null, $platform = null) { // verify the required parameter 'response_type' is set - if ($response_type === null) { + if ($response_type === null || (is_array($response_type) && count($response_type) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $response_type when calling getOauthAuthorizationCode' ); } // verify the required parameter 'scope' is set - if ($scope === null) { + if ($scope === null || (is_array($scope) && count($scope) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $scope when calling getOauthAuthorizationCode' ); diff --git a/lib/Api/ConnectorsApi.php b/lib/Api/ConnectorsApi.php index fc1ed93..12e650f 100644 --- a/lib/Api/ConnectorsApi.php +++ b/lib/Api/ConnectorsApi.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -59,6 +59,11 @@ class ConnectorsApi */ protected $config; + /** + * @var HeaderSelector + */ + protected $headerSelector; + /** * @param ClientInterface $client * @param Configuration $config @@ -225,7 +230,7 @@ function ($exception) { protected function connectConnectorRequest($connector_name, $user_id = null) { // verify the required parameter 'connector_name' is set - if ($connector_name === null) { + if ($connector_name === null || (is_array($connector_name) && count($connector_name) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $connector_name when calling connectConnector' ); @@ -463,7 +468,7 @@ function ($exception) { protected function disconnectConnectorRequest($connector_name) { // verify the required parameter 'connector_name' is set - if ($connector_name === null) { + if ($connector_name === null || (is_array($connector_name) && count($connector_name) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $connector_name when calling disconnectConnector' ); @@ -1411,7 +1416,7 @@ function ($exception) { protected function updateConnectorRequest($connector_name, $user_id = null) { // verify the required parameter 'connector_name' is set - if ($connector_name === null) { + if ($connector_name === null || (is_array($connector_name) && count($connector_name) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $connector_name when calling updateConnector' ); diff --git a/lib/Api/FeedApi.php b/lib/Api/FeedApi.php index 2ea9958..f9e3782 100644 --- a/lib/Api/FeedApi.php +++ b/lib/Api/FeedApi.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -59,6 +59,11 @@ class FeedApi */ protected $config; + /** + * @var HeaderSelector + */ + protected $headerSelector; + /** * @param ClientInterface $client * @param Configuration $config @@ -600,7 +605,7 @@ function ($exception) { protected function postFeedRequest($body, $user_id = null, $client_id = null, $platform = null) { // verify the required parameter 'body' is set - if ($body === null) { + if ($body === null || (is_array($body) && count($body) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $body when calling postFeed' ); diff --git a/lib/Api/FriendsApi.php b/lib/Api/FriendsApi.php index ba76955..41c5da1 100644 --- a/lib/Api/FriendsApi.php +++ b/lib/Api/FriendsApi.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -59,6 +59,11 @@ class FriendsApi */ protected $config; + /** + * @var HeaderSelector + */ + protected $headerSelector; + /** * @param ClientInterface $client * @param Configuration $config diff --git a/lib/Api/GroupsApi.php b/lib/Api/GroupsApi.php index d1f59ae..cd90cf7 100644 --- a/lib/Api/GroupsApi.php +++ b/lib/Api/GroupsApi.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -59,6 +59,11 @@ class GroupsApi */ protected $config; + /** + * @var HeaderSelector + */ + protected $headerSelector; + /** * @param ClientInterface $client * @param Configuration $config diff --git a/lib/Api/MeasurementsApi.php b/lib/Api/MeasurementsApi.php index 0b4fbea..756915e 100644 --- a/lib/Api/MeasurementsApi.php +++ b/lib/Api/MeasurementsApi.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -59,6 +59,11 @@ class MeasurementsApi */ protected $config; + /** + * @var HeaderSelector + */ + protected $headerSelector; + /** * @param ClientInterface $client * @param Configuration $config @@ -257,7 +262,7 @@ function ($exception) { protected function deleteMeasurementRequest($body) { // verify the required parameter 'body' is set - if ($body === null) { + if ($body === null || (is_array($body) && count($body) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $body when calling deleteMeasurement' ); @@ -807,8 +812,12 @@ protected function getMeasurementsRequest($variable_name = null, $sort = null, $ * * Get pairs of measurements for correlational analysis * - * @param string $cause_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) - * @param string $effect_variable_name Name of the hypothetical outcome variable. Ex: Overall Mood (optional) + * @param string $cause_variable_name Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $effect_variable_name Deprecated: Name of the outcome variable of interest. Ex: Overall Mood (optional) + * @param int $cause_variable_id Variable id of the hypothetical predictor variable. Ex: 1398 (optional) + * @param int $effect_variable_id Variable id of the outcome variable of interest. Ex: 1398 (optional) + * @param string $predictor_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $outcome_variable_name Name of the outcome variable of interest. Ex: Overall Mood (optional) * @param string $effect_unit_name Name for the unit effect measurements to be returned in (optional) * @param float $user_id User's id (optional) * @param string $cause_unit_name Name for the unit cause measurements to be returned in (optional) @@ -824,9 +833,9 @@ protected function getMeasurementsRequest($variable_name = null, $sort = null, $ * @throws \InvalidArgumentException * @return \QuantiModo\Client\Model\Pair[] */ - public function getPairs($cause_variable_name = null, $effect_variable_name = null, $effect_unit_name = null, $user_id = null, $cause_unit_name = null, $onset_delay = null, $duration_of_action = null, $earliest_measurement_time = null, $latest_measurement_time = null, $limit = '100', $offset = null, $sort = null) + public function getPairs($cause_variable_name = null, $effect_variable_name = null, $cause_variable_id = null, $effect_variable_id = null, $predictor_variable_name = null, $outcome_variable_name = null, $effect_unit_name = null, $user_id = null, $cause_unit_name = null, $onset_delay = null, $duration_of_action = null, $earliest_measurement_time = null, $latest_measurement_time = null, $limit = '100', $offset = null, $sort = null) { - list($response) = $this->getPairsWithHttpInfo($cause_variable_name, $effect_variable_name, $effect_unit_name, $user_id, $cause_unit_name, $onset_delay, $duration_of_action, $earliest_measurement_time, $latest_measurement_time, $limit, $offset, $sort); + list($response) = $this->getPairsWithHttpInfo($cause_variable_name, $effect_variable_name, $cause_variable_id, $effect_variable_id, $predictor_variable_name, $outcome_variable_name, $effect_unit_name, $user_id, $cause_unit_name, $onset_delay, $duration_of_action, $earliest_measurement_time, $latest_measurement_time, $limit, $offset, $sort); return $response; } @@ -835,8 +844,12 @@ public function getPairs($cause_variable_name = null, $effect_variable_name = nu * * Get pairs of measurements for correlational analysis * - * @param string $cause_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) - * @param string $effect_variable_name Name of the hypothetical outcome variable. Ex: Overall Mood (optional) + * @param string $cause_variable_name Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $effect_variable_name Deprecated: Name of the outcome variable of interest. Ex: Overall Mood (optional) + * @param int $cause_variable_id Variable id of the hypothetical predictor variable. Ex: 1398 (optional) + * @param int $effect_variable_id Variable id of the outcome variable of interest. Ex: 1398 (optional) + * @param string $predictor_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $outcome_variable_name Name of the outcome variable of interest. Ex: Overall Mood (optional) * @param string $effect_unit_name Name for the unit effect measurements to be returned in (optional) * @param float $user_id User's id (optional) * @param string $cause_unit_name Name for the unit cause measurements to be returned in (optional) @@ -852,10 +865,10 @@ public function getPairs($cause_variable_name = null, $effect_variable_name = nu * @throws \InvalidArgumentException * @return array of \QuantiModo\Client\Model\Pair[], HTTP status code, HTTP response headers (array of strings) */ - public function getPairsWithHttpInfo($cause_variable_name = null, $effect_variable_name = null, $effect_unit_name = null, $user_id = null, $cause_unit_name = null, $onset_delay = null, $duration_of_action = null, $earliest_measurement_time = null, $latest_measurement_time = null, $limit = '100', $offset = null, $sort = null) + public function getPairsWithHttpInfo($cause_variable_name = null, $effect_variable_name = null, $cause_variable_id = null, $effect_variable_id = null, $predictor_variable_name = null, $outcome_variable_name = null, $effect_unit_name = null, $user_id = null, $cause_unit_name = null, $onset_delay = null, $duration_of_action = null, $earliest_measurement_time = null, $latest_measurement_time = null, $limit = '100', $offset = null, $sort = null) { $returnType = '\QuantiModo\Client\Model\Pair[]'; - $request = $this->getPairsRequest($cause_variable_name, $effect_variable_name, $effect_unit_name, $user_id, $cause_unit_name, $onset_delay, $duration_of_action, $earliest_measurement_time, $latest_measurement_time, $limit, $offset, $sort); + $request = $this->getPairsRequest($cause_variable_name, $effect_variable_name, $cause_variable_id, $effect_variable_id, $predictor_variable_name, $outcome_variable_name, $effect_unit_name, $user_id, $cause_unit_name, $onset_delay, $duration_of_action, $earliest_measurement_time, $latest_measurement_time, $limit, $offset, $sort); try { $options = $this->createHttpClientOption(); @@ -921,8 +934,12 @@ public function getPairsWithHttpInfo($cause_variable_name = null, $effect_variab * * Get pairs of measurements for correlational analysis * - * @param string $cause_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) - * @param string $effect_variable_name Name of the hypothetical outcome variable. Ex: Overall Mood (optional) + * @param string $cause_variable_name Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $effect_variable_name Deprecated: Name of the outcome variable of interest. Ex: Overall Mood (optional) + * @param int $cause_variable_id Variable id of the hypothetical predictor variable. Ex: 1398 (optional) + * @param int $effect_variable_id Variable id of the outcome variable of interest. Ex: 1398 (optional) + * @param string $predictor_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $outcome_variable_name Name of the outcome variable of interest. Ex: Overall Mood (optional) * @param string $effect_unit_name Name for the unit effect measurements to be returned in (optional) * @param float $user_id User's id (optional) * @param string $cause_unit_name Name for the unit cause measurements to be returned in (optional) @@ -937,9 +954,9 @@ public function getPairsWithHttpInfo($cause_variable_name = null, $effect_variab * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getPairsAsync($cause_variable_name = null, $effect_variable_name = null, $effect_unit_name = null, $user_id = null, $cause_unit_name = null, $onset_delay = null, $duration_of_action = null, $earliest_measurement_time = null, $latest_measurement_time = null, $limit = '100', $offset = null, $sort = null) + public function getPairsAsync($cause_variable_name = null, $effect_variable_name = null, $cause_variable_id = null, $effect_variable_id = null, $predictor_variable_name = null, $outcome_variable_name = null, $effect_unit_name = null, $user_id = null, $cause_unit_name = null, $onset_delay = null, $duration_of_action = null, $earliest_measurement_time = null, $latest_measurement_time = null, $limit = '100', $offset = null, $sort = null) { - return $this->getPairsAsyncWithHttpInfo($cause_variable_name, $effect_variable_name, $effect_unit_name, $user_id, $cause_unit_name, $onset_delay, $duration_of_action, $earliest_measurement_time, $latest_measurement_time, $limit, $offset, $sort) + return $this->getPairsAsyncWithHttpInfo($cause_variable_name, $effect_variable_name, $cause_variable_id, $effect_variable_id, $predictor_variable_name, $outcome_variable_name, $effect_unit_name, $user_id, $cause_unit_name, $onset_delay, $duration_of_action, $earliest_measurement_time, $latest_measurement_time, $limit, $offset, $sort) ->then( function ($response) { return $response[0]; @@ -952,8 +969,12 @@ function ($response) { * * Get pairs of measurements for correlational analysis * - * @param string $cause_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) - * @param string $effect_variable_name Name of the hypothetical outcome variable. Ex: Overall Mood (optional) + * @param string $cause_variable_name Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $effect_variable_name Deprecated: Name of the outcome variable of interest. Ex: Overall Mood (optional) + * @param int $cause_variable_id Variable id of the hypothetical predictor variable. Ex: 1398 (optional) + * @param int $effect_variable_id Variable id of the outcome variable of interest. Ex: 1398 (optional) + * @param string $predictor_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $outcome_variable_name Name of the outcome variable of interest. Ex: Overall Mood (optional) * @param string $effect_unit_name Name for the unit effect measurements to be returned in (optional) * @param float $user_id User's id (optional) * @param string $cause_unit_name Name for the unit cause measurements to be returned in (optional) @@ -968,10 +989,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getPairsAsyncWithHttpInfo($cause_variable_name = null, $effect_variable_name = null, $effect_unit_name = null, $user_id = null, $cause_unit_name = null, $onset_delay = null, $duration_of_action = null, $earliest_measurement_time = null, $latest_measurement_time = null, $limit = '100', $offset = null, $sort = null) + public function getPairsAsyncWithHttpInfo($cause_variable_name = null, $effect_variable_name = null, $cause_variable_id = null, $effect_variable_id = null, $predictor_variable_name = null, $outcome_variable_name = null, $effect_unit_name = null, $user_id = null, $cause_unit_name = null, $onset_delay = null, $duration_of_action = null, $earliest_measurement_time = null, $latest_measurement_time = null, $limit = '100', $offset = null, $sort = null) { $returnType = '\QuantiModo\Client\Model\Pair[]'; - $request = $this->getPairsRequest($cause_variable_name, $effect_variable_name, $effect_unit_name, $user_id, $cause_unit_name, $onset_delay, $duration_of_action, $earliest_measurement_time, $latest_measurement_time, $limit, $offset, $sort); + $request = $this->getPairsRequest($cause_variable_name, $effect_variable_name, $cause_variable_id, $effect_variable_id, $predictor_variable_name, $outcome_variable_name, $effect_unit_name, $user_id, $cause_unit_name, $onset_delay, $duration_of_action, $earliest_measurement_time, $latest_measurement_time, $limit, $offset, $sort); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1013,8 +1034,12 @@ function ($exception) { /** * Create request for operation 'getPairs' * - * @param string $cause_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) - * @param string $effect_variable_name Name of the hypothetical outcome variable. Ex: Overall Mood (optional) + * @param string $cause_variable_name Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $effect_variable_name Deprecated: Name of the outcome variable of interest. Ex: Overall Mood (optional) + * @param int $cause_variable_id Variable id of the hypothetical predictor variable. Ex: 1398 (optional) + * @param int $effect_variable_id Variable id of the outcome variable of interest. Ex: 1398 (optional) + * @param string $predictor_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $outcome_variable_name Name of the outcome variable of interest. Ex: Overall Mood (optional) * @param string $effect_unit_name Name for the unit effect measurements to be returned in (optional) * @param float $user_id User's id (optional) * @param string $cause_unit_name Name for the unit cause measurements to be returned in (optional) @@ -1029,7 +1054,7 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - protected function getPairsRequest($cause_variable_name = null, $effect_variable_name = null, $effect_unit_name = null, $user_id = null, $cause_unit_name = null, $onset_delay = null, $duration_of_action = null, $earliest_measurement_time = null, $latest_measurement_time = null, $limit = '100', $offset = null, $sort = null) + protected function getPairsRequest($cause_variable_name = null, $effect_variable_name = null, $cause_variable_id = null, $effect_variable_id = null, $predictor_variable_name = null, $outcome_variable_name = null, $effect_unit_name = null, $user_id = null, $cause_unit_name = null, $onset_delay = null, $duration_of_action = null, $earliest_measurement_time = null, $latest_measurement_time = null, $limit = '100', $offset = null, $sort = null) { if ($offset !== null && $offset < 0) { throw new \InvalidArgumentException('invalid value for "$offset" when calling MeasurementsApi.getPairs, must be bigger than or equal to 0.'); @@ -1052,6 +1077,22 @@ protected function getPairsRequest($cause_variable_name = null, $effect_variable $queryParams['effectVariableName'] = ObjectSerializer::toQueryValue($effect_variable_name); } // query params + if ($cause_variable_id !== null) { + $queryParams['causeVariableId'] = ObjectSerializer::toQueryValue($cause_variable_id); + } + // query params + if ($effect_variable_id !== null) { + $queryParams['effectVariableId'] = ObjectSerializer::toQueryValue($effect_variable_id); + } + // query params + if ($predictor_variable_name !== null) { + $queryParams['predictorVariableName'] = ObjectSerializer::toQueryValue($predictor_variable_name); + } + // query params + if ($outcome_variable_name !== null) { + $queryParams['outcomeVariableName'] = ObjectSerializer::toQueryValue($outcome_variable_name); + } + // query params if ($effect_unit_name !== null) { $queryParams['effectUnitName'] = ObjectSerializer::toQueryValue($effect_unit_name); } @@ -1607,7 +1648,7 @@ function ($exception) { protected function postMeasurementsRequest($body, $user_id = null) { // verify the required parameter 'body' is set - if ($body === null) { + if ($body === null || (is_array($body) && count($body) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $body when calling postMeasurements' ); @@ -1877,7 +1918,7 @@ function ($exception) { protected function updateMeasurementRequest($body) { // verify the required parameter 'body' is set - if ($body === null) { + if ($body === null || (is_array($body) && count($body) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $body when calling updateMeasurement' ); diff --git a/lib/Api/MessagesApi.php b/lib/Api/MessagesApi.php index 6d0e3f9..346641d 100644 --- a/lib/Api/MessagesApi.php +++ b/lib/Api/MessagesApi.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -59,6 +59,11 @@ class MessagesApi */ protected $config; + /** + * @var HeaderSelector + */ + protected $headerSelector; + /** * @param ClientInterface $client * @param Configuration $config diff --git a/lib/Api/NotificationsApi.php b/lib/Api/NotificationsApi.php index e1e1e77..ddf8ece 100644 --- a/lib/Api/NotificationsApi.php +++ b/lib/Api/NotificationsApi.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -59,6 +59,11 @@ class NotificationsApi */ protected $config; + /** + * @var HeaderSelector + */ + protected $headerSelector; + /** * @param ClientInterface $client * @param Configuration $config @@ -763,7 +768,7 @@ function ($exception) { protected function postDeviceTokenRequest($body) { // verify the required parameter 'body' is set - if ($body === null) { + if ($body === null || (is_array($body) && count($body) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $body when calling postDeviceToken' ); diff --git a/lib/Api/RemindersApi.php b/lib/Api/RemindersApi.php index 82c58a1..6ea3599 100644 --- a/lib/Api/RemindersApi.php +++ b/lib/Api/RemindersApi.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -59,6 +59,11 @@ class RemindersApi */ protected $config; + /** + * @var HeaderSelector + */ + protected $headerSelector; + /** * @param ClientInterface $client * @param Configuration $config @@ -262,7 +267,7 @@ function ($exception) { protected function deleteTrackingReminderRequest($body, $user_id = null) { // verify the required parameter 'body' is set - if ($body === null) { + if ($body === null || (is_array($body) && count($body) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $body when calling deleteTrackingReminder' ); @@ -1257,7 +1262,7 @@ function ($exception) { protected function postTrackingReminderNotificationsRequest($body, $user_id = null, $client_id = null, $platform = null) { // verify the required parameter 'body' is set - if ($body === null) { + if ($body === null || (is_array($body) && count($body) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $body when calling postTrackingReminderNotifications' ); @@ -1535,7 +1540,7 @@ function ($exception) { protected function postTrackingRemindersRequest($body) { // verify the required parameter 'body' is set - if ($body === null) { + if ($body === null || (is_array($body) && count($body) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $body when calling postTrackingReminders' ); diff --git a/lib/Api/SharesApi.php b/lib/Api/SharesApi.php index cac0d1d..f5914bb 100644 --- a/lib/Api/SharesApi.php +++ b/lib/Api/SharesApi.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -59,6 +59,11 @@ class SharesApi */ protected $config; + /** + * @var HeaderSelector + */ + protected $headerSelector; + /** * @param ClientInterface $client * @param Configuration $config @@ -267,7 +272,7 @@ function ($exception) { protected function deleteShareRequest($client_id_to_revoke, $reason = null, $platform = null) { // verify the required parameter 'client_id_to_revoke' is set - if ($client_id_to_revoke === null) { + if ($client_id_to_revoke === null || (is_array($client_id_to_revoke) && count($client_id_to_revoke) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $client_id_to_revoke when calling deleteShare' ); @@ -876,7 +881,7 @@ function ($exception) { protected function inviteShareRequest($body, $platform = null, $client_id = null) { // verify the required parameter 'body' is set - if ($body === null) { + if ($body === null || (is_array($body) && count($body) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $body when calling inviteShare' ); diff --git a/lib/Api/StudiesApi.php b/lib/Api/StudiesApi.php index aea2d3a..30087b9 100644 --- a/lib/Api/StudiesApi.php +++ b/lib/Api/StudiesApi.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -59,6 +59,11 @@ class StudiesApi */ protected $config; + /** + * @var HeaderSelector + */ + protected $headerSelector; + /** * @param ClientInterface $client * @param Configuration $config @@ -267,7 +272,7 @@ function ($exception) { protected function createStudyRequest($body, $client_id = null, $platform = null) { // verify the required parameter 'body' is set - if ($body === null) { + if ($body === null || (is_array($body) && count($body) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $body when calling createStudy' ); @@ -546,7 +551,7 @@ function ($exception) { protected function deleteVoteRequest($body, $user_id = null) { // verify the required parameter 'body' is set - if ($body === null) { + if ($body === null || (is_array($body) && count($body) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $body when calling deleteVote' ); @@ -646,8 +651,12 @@ protected function deleteVoteRequest($body, $user_id = null) * * These are open studies that anyone can join * - * @param string $cause_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) - * @param string $effect_variable_name Name of the hypothetical outcome variable. Ex: Overall Mood (optional) + * @param string $cause_variable_name Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $effect_variable_name Deprecated: Name of the outcome variable of interest. Ex: Overall Mood (optional) + * @param int $cause_variable_id Variable id of the hypothetical predictor variable. Ex: 1398 (optional) + * @param int $effect_variable_id Variable id of the outcome variable of interest. Ex: 1398 (optional) + * @param string $predictor_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $outcome_variable_name Name of the outcome variable of interest. Ex: Overall Mood (optional) * @param float $user_id User's id (optional) * @param string $client_id Your QuantiModo client id can be obtained by creating an app at https://builder.quantimo.do (optional) * @param bool $include_charts Highcharts configs that can be used if you have highcharts.js included on the page. This only works if the id or name query parameter is also provided. (optional) @@ -659,9 +668,9 @@ protected function deleteVoteRequest($body, $user_id = null) * @throws \InvalidArgumentException * @return \QuantiModo\Client\Model\GetStudiesResponse */ - public function getOpenStudies($cause_variable_name = null, $effect_variable_name = null, $user_id = null, $client_id = null, $include_charts = null, $platform = null, $recalculate = null, $study_id = null) + public function getOpenStudies($cause_variable_name = null, $effect_variable_name = null, $cause_variable_id = null, $effect_variable_id = null, $predictor_variable_name = null, $outcome_variable_name = null, $user_id = null, $client_id = null, $include_charts = null, $platform = null, $recalculate = null, $study_id = null) { - list($response) = $this->getOpenStudiesWithHttpInfo($cause_variable_name, $effect_variable_name, $user_id, $client_id, $include_charts, $platform, $recalculate, $study_id); + list($response) = $this->getOpenStudiesWithHttpInfo($cause_variable_name, $effect_variable_name, $cause_variable_id, $effect_variable_id, $predictor_variable_name, $outcome_variable_name, $user_id, $client_id, $include_charts, $platform, $recalculate, $study_id); return $response; } @@ -670,8 +679,12 @@ public function getOpenStudies($cause_variable_name = null, $effect_variable_nam * * These are open studies that anyone can join * - * @param string $cause_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) - * @param string $effect_variable_name Name of the hypothetical outcome variable. Ex: Overall Mood (optional) + * @param string $cause_variable_name Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $effect_variable_name Deprecated: Name of the outcome variable of interest. Ex: Overall Mood (optional) + * @param int $cause_variable_id Variable id of the hypothetical predictor variable. Ex: 1398 (optional) + * @param int $effect_variable_id Variable id of the outcome variable of interest. Ex: 1398 (optional) + * @param string $predictor_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $outcome_variable_name Name of the outcome variable of interest. Ex: Overall Mood (optional) * @param float $user_id User's id (optional) * @param string $client_id Your QuantiModo client id can be obtained by creating an app at https://builder.quantimo.do (optional) * @param bool $include_charts Highcharts configs that can be used if you have highcharts.js included on the page. This only works if the id or name query parameter is also provided. (optional) @@ -683,10 +696,10 @@ public function getOpenStudies($cause_variable_name = null, $effect_variable_nam * @throws \InvalidArgumentException * @return array of \QuantiModo\Client\Model\GetStudiesResponse, HTTP status code, HTTP response headers (array of strings) */ - public function getOpenStudiesWithHttpInfo($cause_variable_name = null, $effect_variable_name = null, $user_id = null, $client_id = null, $include_charts = null, $platform = null, $recalculate = null, $study_id = null) + public function getOpenStudiesWithHttpInfo($cause_variable_name = null, $effect_variable_name = null, $cause_variable_id = null, $effect_variable_id = null, $predictor_variable_name = null, $outcome_variable_name = null, $user_id = null, $client_id = null, $include_charts = null, $platform = null, $recalculate = null, $study_id = null) { $returnType = '\QuantiModo\Client\Model\GetStudiesResponse'; - $request = $this->getOpenStudiesRequest($cause_variable_name, $effect_variable_name, $user_id, $client_id, $include_charts, $platform, $recalculate, $study_id); + $request = $this->getOpenStudiesRequest($cause_variable_name, $effect_variable_name, $cause_variable_id, $effect_variable_id, $predictor_variable_name, $outcome_variable_name, $user_id, $client_id, $include_charts, $platform, $recalculate, $study_id); try { $options = $this->createHttpClientOption(); @@ -760,8 +773,12 @@ public function getOpenStudiesWithHttpInfo($cause_variable_name = null, $effect_ * * These are open studies that anyone can join * - * @param string $cause_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) - * @param string $effect_variable_name Name of the hypothetical outcome variable. Ex: Overall Mood (optional) + * @param string $cause_variable_name Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $effect_variable_name Deprecated: Name of the outcome variable of interest. Ex: Overall Mood (optional) + * @param int $cause_variable_id Variable id of the hypothetical predictor variable. Ex: 1398 (optional) + * @param int $effect_variable_id Variable id of the outcome variable of interest. Ex: 1398 (optional) + * @param string $predictor_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $outcome_variable_name Name of the outcome variable of interest. Ex: Overall Mood (optional) * @param float $user_id User's id (optional) * @param string $client_id Your QuantiModo client id can be obtained by creating an app at https://builder.quantimo.do (optional) * @param bool $include_charts Highcharts configs that can be used if you have highcharts.js included on the page. This only works if the id or name query parameter is also provided. (optional) @@ -772,9 +789,9 @@ public function getOpenStudiesWithHttpInfo($cause_variable_name = null, $effect_ * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getOpenStudiesAsync($cause_variable_name = null, $effect_variable_name = null, $user_id = null, $client_id = null, $include_charts = null, $platform = null, $recalculate = null, $study_id = null) + public function getOpenStudiesAsync($cause_variable_name = null, $effect_variable_name = null, $cause_variable_id = null, $effect_variable_id = null, $predictor_variable_name = null, $outcome_variable_name = null, $user_id = null, $client_id = null, $include_charts = null, $platform = null, $recalculate = null, $study_id = null) { - return $this->getOpenStudiesAsyncWithHttpInfo($cause_variable_name, $effect_variable_name, $user_id, $client_id, $include_charts, $platform, $recalculate, $study_id) + return $this->getOpenStudiesAsyncWithHttpInfo($cause_variable_name, $effect_variable_name, $cause_variable_id, $effect_variable_id, $predictor_variable_name, $outcome_variable_name, $user_id, $client_id, $include_charts, $platform, $recalculate, $study_id) ->then( function ($response) { return $response[0]; @@ -787,8 +804,12 @@ function ($response) { * * These are open studies that anyone can join * - * @param string $cause_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) - * @param string $effect_variable_name Name of the hypothetical outcome variable. Ex: Overall Mood (optional) + * @param string $cause_variable_name Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $effect_variable_name Deprecated: Name of the outcome variable of interest. Ex: Overall Mood (optional) + * @param int $cause_variable_id Variable id of the hypothetical predictor variable. Ex: 1398 (optional) + * @param int $effect_variable_id Variable id of the outcome variable of interest. Ex: 1398 (optional) + * @param string $predictor_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $outcome_variable_name Name of the outcome variable of interest. Ex: Overall Mood (optional) * @param float $user_id User's id (optional) * @param string $client_id Your QuantiModo client id can be obtained by creating an app at https://builder.quantimo.do (optional) * @param bool $include_charts Highcharts configs that can be used if you have highcharts.js included on the page. This only works if the id or name query parameter is also provided. (optional) @@ -799,10 +820,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getOpenStudiesAsyncWithHttpInfo($cause_variable_name = null, $effect_variable_name = null, $user_id = null, $client_id = null, $include_charts = null, $platform = null, $recalculate = null, $study_id = null) + public function getOpenStudiesAsyncWithHttpInfo($cause_variable_name = null, $effect_variable_name = null, $cause_variable_id = null, $effect_variable_id = null, $predictor_variable_name = null, $outcome_variable_name = null, $user_id = null, $client_id = null, $include_charts = null, $platform = null, $recalculate = null, $study_id = null) { $returnType = '\QuantiModo\Client\Model\GetStudiesResponse'; - $request = $this->getOpenStudiesRequest($cause_variable_name, $effect_variable_name, $user_id, $client_id, $include_charts, $platform, $recalculate, $study_id); + $request = $this->getOpenStudiesRequest($cause_variable_name, $effect_variable_name, $cause_variable_id, $effect_variable_id, $predictor_variable_name, $outcome_variable_name, $user_id, $client_id, $include_charts, $platform, $recalculate, $study_id); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -844,8 +865,12 @@ function ($exception) { /** * Create request for operation 'getOpenStudies' * - * @param string $cause_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) - * @param string $effect_variable_name Name of the hypothetical outcome variable. Ex: Overall Mood (optional) + * @param string $cause_variable_name Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $effect_variable_name Deprecated: Name of the outcome variable of interest. Ex: Overall Mood (optional) + * @param int $cause_variable_id Variable id of the hypothetical predictor variable. Ex: 1398 (optional) + * @param int $effect_variable_id Variable id of the outcome variable of interest. Ex: 1398 (optional) + * @param string $predictor_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $outcome_variable_name Name of the outcome variable of interest. Ex: Overall Mood (optional) * @param float $user_id User's id (optional) * @param string $client_id Your QuantiModo client id can be obtained by creating an app at https://builder.quantimo.do (optional) * @param bool $include_charts Highcharts configs that can be used if you have highcharts.js included on the page. This only works if the id or name query parameter is also provided. (optional) @@ -856,7 +881,7 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - protected function getOpenStudiesRequest($cause_variable_name = null, $effect_variable_name = null, $user_id = null, $client_id = null, $include_charts = null, $platform = null, $recalculate = null, $study_id = null) + protected function getOpenStudiesRequest($cause_variable_name = null, $effect_variable_name = null, $cause_variable_id = null, $effect_variable_id = null, $predictor_variable_name = null, $outcome_variable_name = null, $user_id = null, $client_id = null, $include_charts = null, $platform = null, $recalculate = null, $study_id = null) { $resourcePath = '/v3/studies/open'; @@ -875,6 +900,22 @@ protected function getOpenStudiesRequest($cause_variable_name = null, $effect_va $queryParams['effectVariableName'] = ObjectSerializer::toQueryValue($effect_variable_name); } // query params + if ($cause_variable_id !== null) { + $queryParams['causeVariableId'] = ObjectSerializer::toQueryValue($cause_variable_id); + } + // query params + if ($effect_variable_id !== null) { + $queryParams['effectVariableId'] = ObjectSerializer::toQueryValue($effect_variable_id); + } + // query params + if ($predictor_variable_name !== null) { + $queryParams['predictorVariableName'] = ObjectSerializer::toQueryValue($predictor_variable_name); + } + // query params + if ($outcome_variable_name !== null) { + $queryParams['outcomeVariableName'] = ObjectSerializer::toQueryValue($outcome_variable_name); + } + // query params if ($user_id !== null) { $queryParams['userId'] = ObjectSerializer::toQueryValue($user_id); } @@ -978,8 +1019,12 @@ protected function getOpenStudiesRequest($cause_variable_name = null, $effect_va * * Get Personal or Population Studies * - * @param string $cause_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) - * @param string $effect_variable_name Name of the hypothetical outcome variable. Ex: Overall Mood (optional) + * @param string $cause_variable_name Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $effect_variable_name Deprecated: Name of the outcome variable of interest. Ex: Overall Mood (optional) + * @param int $cause_variable_id Variable id of the hypothetical predictor variable. Ex: 1398 (optional) + * @param int $effect_variable_id Variable id of the outcome variable of interest. Ex: 1398 (optional) + * @param string $predictor_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $outcome_variable_name Name of the outcome variable of interest. Ex: Overall Mood (optional) * @param float $user_id User's id (optional) * @param string $client_id Your QuantiModo client id can be obtained by creating an app at https://builder.quantimo.do (optional) * @param bool $include_charts Highcharts configs that can be used if you have highcharts.js included on the page. This only works if the id or name query parameter is also provided. (optional) @@ -997,14 +1042,15 @@ protected function getOpenStudiesRequest($cause_variable_name = null, $effect_va * @param bool $joined These are studies that you have joined (optional) * @param bool $created These are studies that you have created (optional) * @param bool $population These are studies based on the entire population of users that have shared their data (optional) + * @param bool $downvoted These are studies that you have down-voted (optional) * * @throws \QuantiModo\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \QuantiModo\Client\Model\GetStudiesResponse */ - public function getStudies($cause_variable_name = null, $effect_variable_name = null, $user_id = null, $client_id = null, $include_charts = null, $platform = null, $recalculate = null, $study_id = null, $sort = null, $limit = '100', $offset = null, $correlation_coefficient = null, $updated_at = null, $outcomes_of_interest = null, $principal_investigator_user_id = null, $open = null, $joined = null, $created = null, $population = null) + public function getStudies($cause_variable_name = null, $effect_variable_name = null, $cause_variable_id = null, $effect_variable_id = null, $predictor_variable_name = null, $outcome_variable_name = null, $user_id = null, $client_id = null, $include_charts = null, $platform = null, $recalculate = null, $study_id = null, $sort = null, $limit = '100', $offset = null, $correlation_coefficient = null, $updated_at = null, $outcomes_of_interest = null, $principal_investigator_user_id = null, $open = null, $joined = null, $created = null, $population = null, $downvoted = null) { - list($response) = $this->getStudiesWithHttpInfo($cause_variable_name, $effect_variable_name, $user_id, $client_id, $include_charts, $platform, $recalculate, $study_id, $sort, $limit, $offset, $correlation_coefficient, $updated_at, $outcomes_of_interest, $principal_investigator_user_id, $open, $joined, $created, $population); + list($response) = $this->getStudiesWithHttpInfo($cause_variable_name, $effect_variable_name, $cause_variable_id, $effect_variable_id, $predictor_variable_name, $outcome_variable_name, $user_id, $client_id, $include_charts, $platform, $recalculate, $study_id, $sort, $limit, $offset, $correlation_coefficient, $updated_at, $outcomes_of_interest, $principal_investigator_user_id, $open, $joined, $created, $population, $downvoted); return $response; } @@ -1013,8 +1059,12 @@ public function getStudies($cause_variable_name = null, $effect_variable_name = * * Get Personal or Population Studies * - * @param string $cause_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) - * @param string $effect_variable_name Name of the hypothetical outcome variable. Ex: Overall Mood (optional) + * @param string $cause_variable_name Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $effect_variable_name Deprecated: Name of the outcome variable of interest. Ex: Overall Mood (optional) + * @param int $cause_variable_id Variable id of the hypothetical predictor variable. Ex: 1398 (optional) + * @param int $effect_variable_id Variable id of the outcome variable of interest. Ex: 1398 (optional) + * @param string $predictor_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $outcome_variable_name Name of the outcome variable of interest. Ex: Overall Mood (optional) * @param float $user_id User's id (optional) * @param string $client_id Your QuantiModo client id can be obtained by creating an app at https://builder.quantimo.do (optional) * @param bool $include_charts Highcharts configs that can be used if you have highcharts.js included on the page. This only works if the id or name query parameter is also provided. (optional) @@ -1032,15 +1082,16 @@ public function getStudies($cause_variable_name = null, $effect_variable_name = * @param bool $joined These are studies that you have joined (optional) * @param bool $created These are studies that you have created (optional) * @param bool $population These are studies based on the entire population of users that have shared their data (optional) + * @param bool $downvoted These are studies that you have down-voted (optional) * * @throws \QuantiModo\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \QuantiModo\Client\Model\GetStudiesResponse, HTTP status code, HTTP response headers (array of strings) */ - public function getStudiesWithHttpInfo($cause_variable_name = null, $effect_variable_name = null, $user_id = null, $client_id = null, $include_charts = null, $platform = null, $recalculate = null, $study_id = null, $sort = null, $limit = '100', $offset = null, $correlation_coefficient = null, $updated_at = null, $outcomes_of_interest = null, $principal_investigator_user_id = null, $open = null, $joined = null, $created = null, $population = null) + public function getStudiesWithHttpInfo($cause_variable_name = null, $effect_variable_name = null, $cause_variable_id = null, $effect_variable_id = null, $predictor_variable_name = null, $outcome_variable_name = null, $user_id = null, $client_id = null, $include_charts = null, $platform = null, $recalculate = null, $study_id = null, $sort = null, $limit = '100', $offset = null, $correlation_coefficient = null, $updated_at = null, $outcomes_of_interest = null, $principal_investigator_user_id = null, $open = null, $joined = null, $created = null, $population = null, $downvoted = null) { $returnType = '\QuantiModo\Client\Model\GetStudiesResponse'; - $request = $this->getStudiesRequest($cause_variable_name, $effect_variable_name, $user_id, $client_id, $include_charts, $platform, $recalculate, $study_id, $sort, $limit, $offset, $correlation_coefficient, $updated_at, $outcomes_of_interest, $principal_investigator_user_id, $open, $joined, $created, $population); + $request = $this->getStudiesRequest($cause_variable_name, $effect_variable_name, $cause_variable_id, $effect_variable_id, $predictor_variable_name, $outcome_variable_name, $user_id, $client_id, $include_charts, $platform, $recalculate, $study_id, $sort, $limit, $offset, $correlation_coefficient, $updated_at, $outcomes_of_interest, $principal_investigator_user_id, $open, $joined, $created, $population, $downvoted); try { $options = $this->createHttpClientOption(); @@ -1114,8 +1165,12 @@ public function getStudiesWithHttpInfo($cause_variable_name = null, $effect_vari * * Get Personal or Population Studies * - * @param string $cause_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) - * @param string $effect_variable_name Name of the hypothetical outcome variable. Ex: Overall Mood (optional) + * @param string $cause_variable_name Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $effect_variable_name Deprecated: Name of the outcome variable of interest. Ex: Overall Mood (optional) + * @param int $cause_variable_id Variable id of the hypothetical predictor variable. Ex: 1398 (optional) + * @param int $effect_variable_id Variable id of the outcome variable of interest. Ex: 1398 (optional) + * @param string $predictor_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $outcome_variable_name Name of the outcome variable of interest. Ex: Overall Mood (optional) * @param float $user_id User's id (optional) * @param string $client_id Your QuantiModo client id can be obtained by creating an app at https://builder.quantimo.do (optional) * @param bool $include_charts Highcharts configs that can be used if you have highcharts.js included on the page. This only works if the id or name query parameter is also provided. (optional) @@ -1133,13 +1188,14 @@ public function getStudiesWithHttpInfo($cause_variable_name = null, $effect_vari * @param bool $joined These are studies that you have joined (optional) * @param bool $created These are studies that you have created (optional) * @param bool $population These are studies based on the entire population of users that have shared their data (optional) + * @param bool $downvoted These are studies that you have down-voted (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getStudiesAsync($cause_variable_name = null, $effect_variable_name = null, $user_id = null, $client_id = null, $include_charts = null, $platform = null, $recalculate = null, $study_id = null, $sort = null, $limit = '100', $offset = null, $correlation_coefficient = null, $updated_at = null, $outcomes_of_interest = null, $principal_investigator_user_id = null, $open = null, $joined = null, $created = null, $population = null) + public function getStudiesAsync($cause_variable_name = null, $effect_variable_name = null, $cause_variable_id = null, $effect_variable_id = null, $predictor_variable_name = null, $outcome_variable_name = null, $user_id = null, $client_id = null, $include_charts = null, $platform = null, $recalculate = null, $study_id = null, $sort = null, $limit = '100', $offset = null, $correlation_coefficient = null, $updated_at = null, $outcomes_of_interest = null, $principal_investigator_user_id = null, $open = null, $joined = null, $created = null, $population = null, $downvoted = null) { - return $this->getStudiesAsyncWithHttpInfo($cause_variable_name, $effect_variable_name, $user_id, $client_id, $include_charts, $platform, $recalculate, $study_id, $sort, $limit, $offset, $correlation_coefficient, $updated_at, $outcomes_of_interest, $principal_investigator_user_id, $open, $joined, $created, $population) + return $this->getStudiesAsyncWithHttpInfo($cause_variable_name, $effect_variable_name, $cause_variable_id, $effect_variable_id, $predictor_variable_name, $outcome_variable_name, $user_id, $client_id, $include_charts, $platform, $recalculate, $study_id, $sort, $limit, $offset, $correlation_coefficient, $updated_at, $outcomes_of_interest, $principal_investigator_user_id, $open, $joined, $created, $population, $downvoted) ->then( function ($response) { return $response[0]; @@ -1152,8 +1208,12 @@ function ($response) { * * Get Personal or Population Studies * - * @param string $cause_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) - * @param string $effect_variable_name Name of the hypothetical outcome variable. Ex: Overall Mood (optional) + * @param string $cause_variable_name Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $effect_variable_name Deprecated: Name of the outcome variable of interest. Ex: Overall Mood (optional) + * @param int $cause_variable_id Variable id of the hypothetical predictor variable. Ex: 1398 (optional) + * @param int $effect_variable_id Variable id of the outcome variable of interest. Ex: 1398 (optional) + * @param string $predictor_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $outcome_variable_name Name of the outcome variable of interest. Ex: Overall Mood (optional) * @param float $user_id User's id (optional) * @param string $client_id Your QuantiModo client id can be obtained by creating an app at https://builder.quantimo.do (optional) * @param bool $include_charts Highcharts configs that can be used if you have highcharts.js included on the page. This only works if the id or name query parameter is also provided. (optional) @@ -1171,14 +1231,15 @@ function ($response) { * @param bool $joined These are studies that you have joined (optional) * @param bool $created These are studies that you have created (optional) * @param bool $population These are studies based on the entire population of users that have shared their data (optional) + * @param bool $downvoted These are studies that you have down-voted (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getStudiesAsyncWithHttpInfo($cause_variable_name = null, $effect_variable_name = null, $user_id = null, $client_id = null, $include_charts = null, $platform = null, $recalculate = null, $study_id = null, $sort = null, $limit = '100', $offset = null, $correlation_coefficient = null, $updated_at = null, $outcomes_of_interest = null, $principal_investigator_user_id = null, $open = null, $joined = null, $created = null, $population = null) + public function getStudiesAsyncWithHttpInfo($cause_variable_name = null, $effect_variable_name = null, $cause_variable_id = null, $effect_variable_id = null, $predictor_variable_name = null, $outcome_variable_name = null, $user_id = null, $client_id = null, $include_charts = null, $platform = null, $recalculate = null, $study_id = null, $sort = null, $limit = '100', $offset = null, $correlation_coefficient = null, $updated_at = null, $outcomes_of_interest = null, $principal_investigator_user_id = null, $open = null, $joined = null, $created = null, $population = null, $downvoted = null) { $returnType = '\QuantiModo\Client\Model\GetStudiesResponse'; - $request = $this->getStudiesRequest($cause_variable_name, $effect_variable_name, $user_id, $client_id, $include_charts, $platform, $recalculate, $study_id, $sort, $limit, $offset, $correlation_coefficient, $updated_at, $outcomes_of_interest, $principal_investigator_user_id, $open, $joined, $created, $population); + $request = $this->getStudiesRequest($cause_variable_name, $effect_variable_name, $cause_variable_id, $effect_variable_id, $predictor_variable_name, $outcome_variable_name, $user_id, $client_id, $include_charts, $platform, $recalculate, $study_id, $sort, $limit, $offset, $correlation_coefficient, $updated_at, $outcomes_of_interest, $principal_investigator_user_id, $open, $joined, $created, $population, $downvoted); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1220,8 +1281,12 @@ function ($exception) { /** * Create request for operation 'getStudies' * - * @param string $cause_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) - * @param string $effect_variable_name Name of the hypothetical outcome variable. Ex: Overall Mood (optional) + * @param string $cause_variable_name Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $effect_variable_name Deprecated: Name of the outcome variable of interest. Ex: Overall Mood (optional) + * @param int $cause_variable_id Variable id of the hypothetical predictor variable. Ex: 1398 (optional) + * @param int $effect_variable_id Variable id of the outcome variable of interest. Ex: 1398 (optional) + * @param string $predictor_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $outcome_variable_name Name of the outcome variable of interest. Ex: Overall Mood (optional) * @param float $user_id User's id (optional) * @param string $client_id Your QuantiModo client id can be obtained by creating an app at https://builder.quantimo.do (optional) * @param bool $include_charts Highcharts configs that can be used if you have highcharts.js included on the page. This only works if the id or name query parameter is also provided. (optional) @@ -1239,11 +1304,12 @@ function ($exception) { * @param bool $joined These are studies that you have joined (optional) * @param bool $created These are studies that you have created (optional) * @param bool $population These are studies based on the entire population of users that have shared their data (optional) + * @param bool $downvoted These are studies that you have down-voted (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - protected function getStudiesRequest($cause_variable_name = null, $effect_variable_name = null, $user_id = null, $client_id = null, $include_charts = null, $platform = null, $recalculate = null, $study_id = null, $sort = null, $limit = '100', $offset = null, $correlation_coefficient = null, $updated_at = null, $outcomes_of_interest = null, $principal_investigator_user_id = null, $open = null, $joined = null, $created = null, $population = null) + protected function getStudiesRequest($cause_variable_name = null, $effect_variable_name = null, $cause_variable_id = null, $effect_variable_id = null, $predictor_variable_name = null, $outcome_variable_name = null, $user_id = null, $client_id = null, $include_charts = null, $platform = null, $recalculate = null, $study_id = null, $sort = null, $limit = '100', $offset = null, $correlation_coefficient = null, $updated_at = null, $outcomes_of_interest = null, $principal_investigator_user_id = null, $open = null, $joined = null, $created = null, $population = null, $downvoted = null) { if ($offset !== null && $offset < 0) { throw new \InvalidArgumentException('invalid value for "$offset" when calling StudiesApi.getStudies, must be bigger than or equal to 0.'); @@ -1266,6 +1332,22 @@ protected function getStudiesRequest($cause_variable_name = null, $effect_variab $queryParams['effectVariableName'] = ObjectSerializer::toQueryValue($effect_variable_name); } // query params + if ($cause_variable_id !== null) { + $queryParams['causeVariableId'] = ObjectSerializer::toQueryValue($cause_variable_id); + } + // query params + if ($effect_variable_id !== null) { + $queryParams['effectVariableId'] = ObjectSerializer::toQueryValue($effect_variable_id); + } + // query params + if ($predictor_variable_name !== null) { + $queryParams['predictorVariableName'] = ObjectSerializer::toQueryValue($predictor_variable_name); + } + // query params + if ($outcome_variable_name !== null) { + $queryParams['outcomeVariableName'] = ObjectSerializer::toQueryValue($outcome_variable_name); + } + // query params if ($user_id !== null) { $queryParams['userId'] = ObjectSerializer::toQueryValue($user_id); } @@ -1333,6 +1415,10 @@ protected function getStudiesRequest($cause_variable_name = null, $effect_variab if ($population !== null) { $queryParams['population'] = ObjectSerializer::toQueryValue($population); } + // query params + if ($downvoted !== null) { + $queryParams['downvoted'] = ObjectSerializer::toQueryValue($downvoted); + } // body params @@ -1413,8 +1499,12 @@ protected function getStudiesRequest($cause_variable_name = null, $effect_variab * * Get studies you have created * - * @param string $cause_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) - * @param string $effect_variable_name Name of the hypothetical outcome variable. Ex: Overall Mood (optional) + * @param string $cause_variable_name Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $effect_variable_name Deprecated: Name of the outcome variable of interest. Ex: Overall Mood (optional) + * @param int $cause_variable_id Variable id of the hypothetical predictor variable. Ex: 1398 (optional) + * @param int $effect_variable_id Variable id of the outcome variable of interest. Ex: 1398 (optional) + * @param string $predictor_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $outcome_variable_name Name of the outcome variable of interest. Ex: Overall Mood (optional) * @param string $sort Sort by one of the listed field names. If the field name is prefixed with `-`, it will sort in descending order. (optional) * @param int $limit The LIMIT is used to limit the number of results returned. So if youhave 1000 results, but only want to the first 10, you would set this to 10 and offset to 0. The maximum limit is 200 records. (optional, default to 100) * @param int $offset OFFSET says to skip that many rows before beginning to return rows to the client. OFFSET 0 is the same as omitting the OFFSET clause.If both OFFSET and LIMIT appear, then OFFSET rows are skipped before starting to count the LIMIT rows that are returned. (optional) @@ -1427,9 +1517,9 @@ protected function getStudiesRequest($cause_variable_name = null, $effect_variab * @throws \InvalidArgumentException * @return \QuantiModo\Client\Model\GetStudiesResponse */ - public function getStudiesCreated($cause_variable_name = null, $effect_variable_name = null, $sort = null, $limit = '100', $offset = null, $user_id = null, $updated_at = null, $client_id = null, $platform = null) + public function getStudiesCreated($cause_variable_name = null, $effect_variable_name = null, $cause_variable_id = null, $effect_variable_id = null, $predictor_variable_name = null, $outcome_variable_name = null, $sort = null, $limit = '100', $offset = null, $user_id = null, $updated_at = null, $client_id = null, $platform = null) { - list($response) = $this->getStudiesCreatedWithHttpInfo($cause_variable_name, $effect_variable_name, $sort, $limit, $offset, $user_id, $updated_at, $client_id, $platform); + list($response) = $this->getStudiesCreatedWithHttpInfo($cause_variable_name, $effect_variable_name, $cause_variable_id, $effect_variable_id, $predictor_variable_name, $outcome_variable_name, $sort, $limit, $offset, $user_id, $updated_at, $client_id, $platform); return $response; } @@ -1438,8 +1528,12 @@ public function getStudiesCreated($cause_variable_name = null, $effect_variable_ * * Get studies you have created * - * @param string $cause_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) - * @param string $effect_variable_name Name of the hypothetical outcome variable. Ex: Overall Mood (optional) + * @param string $cause_variable_name Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $effect_variable_name Deprecated: Name of the outcome variable of interest. Ex: Overall Mood (optional) + * @param int $cause_variable_id Variable id of the hypothetical predictor variable. Ex: 1398 (optional) + * @param int $effect_variable_id Variable id of the outcome variable of interest. Ex: 1398 (optional) + * @param string $predictor_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $outcome_variable_name Name of the outcome variable of interest. Ex: Overall Mood (optional) * @param string $sort Sort by one of the listed field names. If the field name is prefixed with `-`, it will sort in descending order. (optional) * @param int $limit The LIMIT is used to limit the number of results returned. So if youhave 1000 results, but only want to the first 10, you would set this to 10 and offset to 0. The maximum limit is 200 records. (optional, default to 100) * @param int $offset OFFSET says to skip that many rows before beginning to return rows to the client. OFFSET 0 is the same as omitting the OFFSET clause.If both OFFSET and LIMIT appear, then OFFSET rows are skipped before starting to count the LIMIT rows that are returned. (optional) @@ -1452,10 +1546,10 @@ public function getStudiesCreated($cause_variable_name = null, $effect_variable_ * @throws \InvalidArgumentException * @return array of \QuantiModo\Client\Model\GetStudiesResponse, HTTP status code, HTTP response headers (array of strings) */ - public function getStudiesCreatedWithHttpInfo($cause_variable_name = null, $effect_variable_name = null, $sort = null, $limit = '100', $offset = null, $user_id = null, $updated_at = null, $client_id = null, $platform = null) + public function getStudiesCreatedWithHttpInfo($cause_variable_name = null, $effect_variable_name = null, $cause_variable_id = null, $effect_variable_id = null, $predictor_variable_name = null, $outcome_variable_name = null, $sort = null, $limit = '100', $offset = null, $user_id = null, $updated_at = null, $client_id = null, $platform = null) { $returnType = '\QuantiModo\Client\Model\GetStudiesResponse'; - $request = $this->getStudiesCreatedRequest($cause_variable_name, $effect_variable_name, $sort, $limit, $offset, $user_id, $updated_at, $client_id, $platform); + $request = $this->getStudiesCreatedRequest($cause_variable_name, $effect_variable_name, $cause_variable_id, $effect_variable_id, $predictor_variable_name, $outcome_variable_name, $sort, $limit, $offset, $user_id, $updated_at, $client_id, $platform); try { $options = $this->createHttpClientOption(); @@ -1521,8 +1615,12 @@ public function getStudiesCreatedWithHttpInfo($cause_variable_name = null, $effe * * Get studies you have created * - * @param string $cause_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) - * @param string $effect_variable_name Name of the hypothetical outcome variable. Ex: Overall Mood (optional) + * @param string $cause_variable_name Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $effect_variable_name Deprecated: Name of the outcome variable of interest. Ex: Overall Mood (optional) + * @param int $cause_variable_id Variable id of the hypothetical predictor variable. Ex: 1398 (optional) + * @param int $effect_variable_id Variable id of the outcome variable of interest. Ex: 1398 (optional) + * @param string $predictor_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $outcome_variable_name Name of the outcome variable of interest. Ex: Overall Mood (optional) * @param string $sort Sort by one of the listed field names. If the field name is prefixed with `-`, it will sort in descending order. (optional) * @param int $limit The LIMIT is used to limit the number of results returned. So if youhave 1000 results, but only want to the first 10, you would set this to 10 and offset to 0. The maximum limit is 200 records. (optional, default to 100) * @param int $offset OFFSET says to skip that many rows before beginning to return rows to the client. OFFSET 0 is the same as omitting the OFFSET clause.If both OFFSET and LIMIT appear, then OFFSET rows are skipped before starting to count the LIMIT rows that are returned. (optional) @@ -1534,9 +1632,9 @@ public function getStudiesCreatedWithHttpInfo($cause_variable_name = null, $effe * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getStudiesCreatedAsync($cause_variable_name = null, $effect_variable_name = null, $sort = null, $limit = '100', $offset = null, $user_id = null, $updated_at = null, $client_id = null, $platform = null) + public function getStudiesCreatedAsync($cause_variable_name = null, $effect_variable_name = null, $cause_variable_id = null, $effect_variable_id = null, $predictor_variable_name = null, $outcome_variable_name = null, $sort = null, $limit = '100', $offset = null, $user_id = null, $updated_at = null, $client_id = null, $platform = null) { - return $this->getStudiesCreatedAsyncWithHttpInfo($cause_variable_name, $effect_variable_name, $sort, $limit, $offset, $user_id, $updated_at, $client_id, $platform) + return $this->getStudiesCreatedAsyncWithHttpInfo($cause_variable_name, $effect_variable_name, $cause_variable_id, $effect_variable_id, $predictor_variable_name, $outcome_variable_name, $sort, $limit, $offset, $user_id, $updated_at, $client_id, $platform) ->then( function ($response) { return $response[0]; @@ -1549,8 +1647,12 @@ function ($response) { * * Get studies you have created * - * @param string $cause_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) - * @param string $effect_variable_name Name of the hypothetical outcome variable. Ex: Overall Mood (optional) + * @param string $cause_variable_name Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $effect_variable_name Deprecated: Name of the outcome variable of interest. Ex: Overall Mood (optional) + * @param int $cause_variable_id Variable id of the hypothetical predictor variable. Ex: 1398 (optional) + * @param int $effect_variable_id Variable id of the outcome variable of interest. Ex: 1398 (optional) + * @param string $predictor_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $outcome_variable_name Name of the outcome variable of interest. Ex: Overall Mood (optional) * @param string $sort Sort by one of the listed field names. If the field name is prefixed with `-`, it will sort in descending order. (optional) * @param int $limit The LIMIT is used to limit the number of results returned. So if youhave 1000 results, but only want to the first 10, you would set this to 10 and offset to 0. The maximum limit is 200 records. (optional, default to 100) * @param int $offset OFFSET says to skip that many rows before beginning to return rows to the client. OFFSET 0 is the same as omitting the OFFSET clause.If both OFFSET and LIMIT appear, then OFFSET rows are skipped before starting to count the LIMIT rows that are returned. (optional) @@ -1562,10 +1664,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getStudiesCreatedAsyncWithHttpInfo($cause_variable_name = null, $effect_variable_name = null, $sort = null, $limit = '100', $offset = null, $user_id = null, $updated_at = null, $client_id = null, $platform = null) + public function getStudiesCreatedAsyncWithHttpInfo($cause_variable_name = null, $effect_variable_name = null, $cause_variable_id = null, $effect_variable_id = null, $predictor_variable_name = null, $outcome_variable_name = null, $sort = null, $limit = '100', $offset = null, $user_id = null, $updated_at = null, $client_id = null, $platform = null) { $returnType = '\QuantiModo\Client\Model\GetStudiesResponse'; - $request = $this->getStudiesCreatedRequest($cause_variable_name, $effect_variable_name, $sort, $limit, $offset, $user_id, $updated_at, $client_id, $platform); + $request = $this->getStudiesCreatedRequest($cause_variable_name, $effect_variable_name, $cause_variable_id, $effect_variable_id, $predictor_variable_name, $outcome_variable_name, $sort, $limit, $offset, $user_id, $updated_at, $client_id, $platform); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1607,8 +1709,12 @@ function ($exception) { /** * Create request for operation 'getStudiesCreated' * - * @param string $cause_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) - * @param string $effect_variable_name Name of the hypothetical outcome variable. Ex: Overall Mood (optional) + * @param string $cause_variable_name Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $effect_variable_name Deprecated: Name of the outcome variable of interest. Ex: Overall Mood (optional) + * @param int $cause_variable_id Variable id of the hypothetical predictor variable. Ex: 1398 (optional) + * @param int $effect_variable_id Variable id of the outcome variable of interest. Ex: 1398 (optional) + * @param string $predictor_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $outcome_variable_name Name of the outcome variable of interest. Ex: Overall Mood (optional) * @param string $sort Sort by one of the listed field names. If the field name is prefixed with `-`, it will sort in descending order. (optional) * @param int $limit The LIMIT is used to limit the number of results returned. So if youhave 1000 results, but only want to the first 10, you would set this to 10 and offset to 0. The maximum limit is 200 records. (optional, default to 100) * @param int $offset OFFSET says to skip that many rows before beginning to return rows to the client. OFFSET 0 is the same as omitting the OFFSET clause.If both OFFSET and LIMIT appear, then OFFSET rows are skipped before starting to count the LIMIT rows that are returned. (optional) @@ -1620,7 +1726,7 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - protected function getStudiesCreatedRequest($cause_variable_name = null, $effect_variable_name = null, $sort = null, $limit = '100', $offset = null, $user_id = null, $updated_at = null, $client_id = null, $platform = null) + protected function getStudiesCreatedRequest($cause_variable_name = null, $effect_variable_name = null, $cause_variable_id = null, $effect_variable_id = null, $predictor_variable_name = null, $outcome_variable_name = null, $sort = null, $limit = '100', $offset = null, $user_id = null, $updated_at = null, $client_id = null, $platform = null) { if ($offset !== null && $offset < 0) { throw new \InvalidArgumentException('invalid value for "$offset" when calling StudiesApi.getStudiesCreated, must be bigger than or equal to 0.'); @@ -1643,6 +1749,22 @@ protected function getStudiesCreatedRequest($cause_variable_name = null, $effect $queryParams['effectVariableName'] = ObjectSerializer::toQueryValue($effect_variable_name); } // query params + if ($cause_variable_id !== null) { + $queryParams['causeVariableId'] = ObjectSerializer::toQueryValue($cause_variable_id); + } + // query params + if ($effect_variable_id !== null) { + $queryParams['effectVariableId'] = ObjectSerializer::toQueryValue($effect_variable_id); + } + // query params + if ($predictor_variable_name !== null) { + $queryParams['predictorVariableName'] = ObjectSerializer::toQueryValue($predictor_variable_name); + } + // query params + if ($outcome_variable_name !== null) { + $queryParams['outcomeVariableName'] = ObjectSerializer::toQueryValue($outcome_variable_name); + } + // query params if ($sort !== null) { $queryParams['sort'] = ObjectSerializer::toQueryValue($sort); } @@ -1750,8 +1872,12 @@ protected function getStudiesCreatedRequest($cause_variable_name = null, $effect * * Studies You Have Joined * - * @param string $cause_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) - * @param string $effect_variable_name Name of the hypothetical outcome variable. Ex: Overall Mood (optional) + * @param string $cause_variable_name Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $effect_variable_name Deprecated: Name of the outcome variable of interest. Ex: Overall Mood (optional) + * @param int $cause_variable_id Variable id of the hypothetical predictor variable. Ex: 1398 (optional) + * @param int $effect_variable_id Variable id of the outcome variable of interest. Ex: 1398 (optional) + * @param string $predictor_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $outcome_variable_name Name of the outcome variable of interest. Ex: Overall Mood (optional) * @param string $sort Sort by one of the listed field names. If the field name is prefixed with `-`, it will sort in descending order. (optional) * @param int $limit The LIMIT is used to limit the number of results returned. So if youhave 1000 results, but only want to the first 10, you would set this to 10 and offset to 0. The maximum limit is 200 records. (optional, default to 100) * @param int $offset OFFSET says to skip that many rows before beginning to return rows to the client. OFFSET 0 is the same as omitting the OFFSET clause.If both OFFSET and LIMIT appear, then OFFSET rows are skipped before starting to count the LIMIT rows that are returned. (optional) @@ -1766,9 +1892,9 @@ protected function getStudiesCreatedRequest($cause_variable_name = null, $effect * @throws \InvalidArgumentException * @return \QuantiModo\Client\Model\GetStudiesResponse */ - public function getStudiesJoined($cause_variable_name = null, $effect_variable_name = null, $sort = null, $limit = '100', $offset = null, $user_id = null, $correlation_coefficient = null, $updated_at = null, $outcomes_of_interest = null, $client_id = null, $platform = null) + public function getStudiesJoined($cause_variable_name = null, $effect_variable_name = null, $cause_variable_id = null, $effect_variable_id = null, $predictor_variable_name = null, $outcome_variable_name = null, $sort = null, $limit = '100', $offset = null, $user_id = null, $correlation_coefficient = null, $updated_at = null, $outcomes_of_interest = null, $client_id = null, $platform = null) { - list($response) = $this->getStudiesJoinedWithHttpInfo($cause_variable_name, $effect_variable_name, $sort, $limit, $offset, $user_id, $correlation_coefficient, $updated_at, $outcomes_of_interest, $client_id, $platform); + list($response) = $this->getStudiesJoinedWithHttpInfo($cause_variable_name, $effect_variable_name, $cause_variable_id, $effect_variable_id, $predictor_variable_name, $outcome_variable_name, $sort, $limit, $offset, $user_id, $correlation_coefficient, $updated_at, $outcomes_of_interest, $client_id, $platform); return $response; } @@ -1777,8 +1903,12 @@ public function getStudiesJoined($cause_variable_name = null, $effect_variable_n * * Studies You Have Joined * - * @param string $cause_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) - * @param string $effect_variable_name Name of the hypothetical outcome variable. Ex: Overall Mood (optional) + * @param string $cause_variable_name Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $effect_variable_name Deprecated: Name of the outcome variable of interest. Ex: Overall Mood (optional) + * @param int $cause_variable_id Variable id of the hypothetical predictor variable. Ex: 1398 (optional) + * @param int $effect_variable_id Variable id of the outcome variable of interest. Ex: 1398 (optional) + * @param string $predictor_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $outcome_variable_name Name of the outcome variable of interest. Ex: Overall Mood (optional) * @param string $sort Sort by one of the listed field names. If the field name is prefixed with `-`, it will sort in descending order. (optional) * @param int $limit The LIMIT is used to limit the number of results returned. So if youhave 1000 results, but only want to the first 10, you would set this to 10 and offset to 0. The maximum limit is 200 records. (optional, default to 100) * @param int $offset OFFSET says to skip that many rows before beginning to return rows to the client. OFFSET 0 is the same as omitting the OFFSET clause.If both OFFSET and LIMIT appear, then OFFSET rows are skipped before starting to count the LIMIT rows that are returned. (optional) @@ -1793,10 +1923,10 @@ public function getStudiesJoined($cause_variable_name = null, $effect_variable_n * @throws \InvalidArgumentException * @return array of \QuantiModo\Client\Model\GetStudiesResponse, HTTP status code, HTTP response headers (array of strings) */ - public function getStudiesJoinedWithHttpInfo($cause_variable_name = null, $effect_variable_name = null, $sort = null, $limit = '100', $offset = null, $user_id = null, $correlation_coefficient = null, $updated_at = null, $outcomes_of_interest = null, $client_id = null, $platform = null) + public function getStudiesJoinedWithHttpInfo($cause_variable_name = null, $effect_variable_name = null, $cause_variable_id = null, $effect_variable_id = null, $predictor_variable_name = null, $outcome_variable_name = null, $sort = null, $limit = '100', $offset = null, $user_id = null, $correlation_coefficient = null, $updated_at = null, $outcomes_of_interest = null, $client_id = null, $platform = null) { $returnType = '\QuantiModo\Client\Model\GetStudiesResponse'; - $request = $this->getStudiesJoinedRequest($cause_variable_name, $effect_variable_name, $sort, $limit, $offset, $user_id, $correlation_coefficient, $updated_at, $outcomes_of_interest, $client_id, $platform); + $request = $this->getStudiesJoinedRequest($cause_variable_name, $effect_variable_name, $cause_variable_id, $effect_variable_id, $predictor_variable_name, $outcome_variable_name, $sort, $limit, $offset, $user_id, $correlation_coefficient, $updated_at, $outcomes_of_interest, $client_id, $platform); try { $options = $this->createHttpClientOption(); @@ -1862,8 +1992,12 @@ public function getStudiesJoinedWithHttpInfo($cause_variable_name = null, $effec * * Studies You Have Joined * - * @param string $cause_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) - * @param string $effect_variable_name Name of the hypothetical outcome variable. Ex: Overall Mood (optional) + * @param string $cause_variable_name Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $effect_variable_name Deprecated: Name of the outcome variable of interest. Ex: Overall Mood (optional) + * @param int $cause_variable_id Variable id of the hypothetical predictor variable. Ex: 1398 (optional) + * @param int $effect_variable_id Variable id of the outcome variable of interest. Ex: 1398 (optional) + * @param string $predictor_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $outcome_variable_name Name of the outcome variable of interest. Ex: Overall Mood (optional) * @param string $sort Sort by one of the listed field names. If the field name is prefixed with `-`, it will sort in descending order. (optional) * @param int $limit The LIMIT is used to limit the number of results returned. So if youhave 1000 results, but only want to the first 10, you would set this to 10 and offset to 0. The maximum limit is 200 records. (optional, default to 100) * @param int $offset OFFSET says to skip that many rows before beginning to return rows to the client. OFFSET 0 is the same as omitting the OFFSET clause.If both OFFSET and LIMIT appear, then OFFSET rows are skipped before starting to count the LIMIT rows that are returned. (optional) @@ -1877,9 +2011,9 @@ public function getStudiesJoinedWithHttpInfo($cause_variable_name = null, $effec * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getStudiesJoinedAsync($cause_variable_name = null, $effect_variable_name = null, $sort = null, $limit = '100', $offset = null, $user_id = null, $correlation_coefficient = null, $updated_at = null, $outcomes_of_interest = null, $client_id = null, $platform = null) + public function getStudiesJoinedAsync($cause_variable_name = null, $effect_variable_name = null, $cause_variable_id = null, $effect_variable_id = null, $predictor_variable_name = null, $outcome_variable_name = null, $sort = null, $limit = '100', $offset = null, $user_id = null, $correlation_coefficient = null, $updated_at = null, $outcomes_of_interest = null, $client_id = null, $platform = null) { - return $this->getStudiesJoinedAsyncWithHttpInfo($cause_variable_name, $effect_variable_name, $sort, $limit, $offset, $user_id, $correlation_coefficient, $updated_at, $outcomes_of_interest, $client_id, $platform) + return $this->getStudiesJoinedAsyncWithHttpInfo($cause_variable_name, $effect_variable_name, $cause_variable_id, $effect_variable_id, $predictor_variable_name, $outcome_variable_name, $sort, $limit, $offset, $user_id, $correlation_coefficient, $updated_at, $outcomes_of_interest, $client_id, $platform) ->then( function ($response) { return $response[0]; @@ -1892,8 +2026,12 @@ function ($response) { * * Studies You Have Joined * - * @param string $cause_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) - * @param string $effect_variable_name Name of the hypothetical outcome variable. Ex: Overall Mood (optional) + * @param string $cause_variable_name Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $effect_variable_name Deprecated: Name of the outcome variable of interest. Ex: Overall Mood (optional) + * @param int $cause_variable_id Variable id of the hypothetical predictor variable. Ex: 1398 (optional) + * @param int $effect_variable_id Variable id of the outcome variable of interest. Ex: 1398 (optional) + * @param string $predictor_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $outcome_variable_name Name of the outcome variable of interest. Ex: Overall Mood (optional) * @param string $sort Sort by one of the listed field names. If the field name is prefixed with `-`, it will sort in descending order. (optional) * @param int $limit The LIMIT is used to limit the number of results returned. So if youhave 1000 results, but only want to the first 10, you would set this to 10 and offset to 0. The maximum limit is 200 records. (optional, default to 100) * @param int $offset OFFSET says to skip that many rows before beginning to return rows to the client. OFFSET 0 is the same as omitting the OFFSET clause.If both OFFSET and LIMIT appear, then OFFSET rows are skipped before starting to count the LIMIT rows that are returned. (optional) @@ -1907,10 +2045,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getStudiesJoinedAsyncWithHttpInfo($cause_variable_name = null, $effect_variable_name = null, $sort = null, $limit = '100', $offset = null, $user_id = null, $correlation_coefficient = null, $updated_at = null, $outcomes_of_interest = null, $client_id = null, $platform = null) + public function getStudiesJoinedAsyncWithHttpInfo($cause_variable_name = null, $effect_variable_name = null, $cause_variable_id = null, $effect_variable_id = null, $predictor_variable_name = null, $outcome_variable_name = null, $sort = null, $limit = '100', $offset = null, $user_id = null, $correlation_coefficient = null, $updated_at = null, $outcomes_of_interest = null, $client_id = null, $platform = null) { $returnType = '\QuantiModo\Client\Model\GetStudiesResponse'; - $request = $this->getStudiesJoinedRequest($cause_variable_name, $effect_variable_name, $sort, $limit, $offset, $user_id, $correlation_coefficient, $updated_at, $outcomes_of_interest, $client_id, $platform); + $request = $this->getStudiesJoinedRequest($cause_variable_name, $effect_variable_name, $cause_variable_id, $effect_variable_id, $predictor_variable_name, $outcome_variable_name, $sort, $limit, $offset, $user_id, $correlation_coefficient, $updated_at, $outcomes_of_interest, $client_id, $platform); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1952,8 +2090,12 @@ function ($exception) { /** * Create request for operation 'getStudiesJoined' * - * @param string $cause_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) - * @param string $effect_variable_name Name of the hypothetical outcome variable. Ex: Overall Mood (optional) + * @param string $cause_variable_name Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $effect_variable_name Deprecated: Name of the outcome variable of interest. Ex: Overall Mood (optional) + * @param int $cause_variable_id Variable id of the hypothetical predictor variable. Ex: 1398 (optional) + * @param int $effect_variable_id Variable id of the outcome variable of interest. Ex: 1398 (optional) + * @param string $predictor_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $outcome_variable_name Name of the outcome variable of interest. Ex: Overall Mood (optional) * @param string $sort Sort by one of the listed field names. If the field name is prefixed with `-`, it will sort in descending order. (optional) * @param int $limit The LIMIT is used to limit the number of results returned. So if youhave 1000 results, but only want to the first 10, you would set this to 10 and offset to 0. The maximum limit is 200 records. (optional, default to 100) * @param int $offset OFFSET says to skip that many rows before beginning to return rows to the client. OFFSET 0 is the same as omitting the OFFSET clause.If both OFFSET and LIMIT appear, then OFFSET rows are skipped before starting to count the LIMIT rows that are returned. (optional) @@ -1967,7 +2109,7 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - protected function getStudiesJoinedRequest($cause_variable_name = null, $effect_variable_name = null, $sort = null, $limit = '100', $offset = null, $user_id = null, $correlation_coefficient = null, $updated_at = null, $outcomes_of_interest = null, $client_id = null, $platform = null) + protected function getStudiesJoinedRequest($cause_variable_name = null, $effect_variable_name = null, $cause_variable_id = null, $effect_variable_id = null, $predictor_variable_name = null, $outcome_variable_name = null, $sort = null, $limit = '100', $offset = null, $user_id = null, $correlation_coefficient = null, $updated_at = null, $outcomes_of_interest = null, $client_id = null, $platform = null) { if ($offset !== null && $offset < 0) { throw new \InvalidArgumentException('invalid value for "$offset" when calling StudiesApi.getStudiesJoined, must be bigger than or equal to 0.'); @@ -1990,6 +2132,22 @@ protected function getStudiesJoinedRequest($cause_variable_name = null, $effect_ $queryParams['effectVariableName'] = ObjectSerializer::toQueryValue($effect_variable_name); } // query params + if ($cause_variable_id !== null) { + $queryParams['causeVariableId'] = ObjectSerializer::toQueryValue($cause_variable_id); + } + // query params + if ($effect_variable_id !== null) { + $queryParams['effectVariableId'] = ObjectSerializer::toQueryValue($effect_variable_id); + } + // query params + if ($predictor_variable_name !== null) { + $queryParams['predictorVariableName'] = ObjectSerializer::toQueryValue($predictor_variable_name); + } + // query params + if ($outcome_variable_name !== null) { + $queryParams['outcomeVariableName'] = ObjectSerializer::toQueryValue($outcome_variable_name); + } + // query params if ($sort !== null) { $queryParams['sort'] = ObjectSerializer::toQueryValue($sort); } @@ -2105,8 +2263,12 @@ protected function getStudiesJoinedRequest($cause_variable_name = null, $effect_ * * Get Study * - * @param string $cause_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) - * @param string $effect_variable_name Name of the hypothetical outcome variable. Ex: Overall Mood (optional) + * @param string $cause_variable_name Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $effect_variable_name Deprecated: Name of the outcome variable of interest. Ex: Overall Mood (optional) + * @param int $cause_variable_id Variable id of the hypothetical predictor variable. Ex: 1398 (optional) + * @param int $effect_variable_id Variable id of the outcome variable of interest. Ex: 1398 (optional) + * @param string $predictor_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $outcome_variable_name Name of the outcome variable of interest. Ex: Overall Mood (optional) * @param float $user_id User's id (optional) * @param string $client_id Your QuantiModo client id can be obtained by creating an app at https://builder.quantimo.do (optional) * @param bool $include_charts Highcharts configs that can be used if you have highcharts.js included on the page. This only works if the id or name query parameter is also provided. (optional) @@ -2118,9 +2280,9 @@ protected function getStudiesJoinedRequest($cause_variable_name = null, $effect_ * @throws \InvalidArgumentException * @return \QuantiModo\Client\Model\Study */ - public function getStudy($cause_variable_name = null, $effect_variable_name = null, $user_id = null, $client_id = null, $include_charts = null, $platform = null, $recalculate = null, $study_id = null) + public function getStudy($cause_variable_name = null, $effect_variable_name = null, $cause_variable_id = null, $effect_variable_id = null, $predictor_variable_name = null, $outcome_variable_name = null, $user_id = null, $client_id = null, $include_charts = null, $platform = null, $recalculate = null, $study_id = null) { - list($response) = $this->getStudyWithHttpInfo($cause_variable_name, $effect_variable_name, $user_id, $client_id, $include_charts, $platform, $recalculate, $study_id); + list($response) = $this->getStudyWithHttpInfo($cause_variable_name, $effect_variable_name, $cause_variable_id, $effect_variable_id, $predictor_variable_name, $outcome_variable_name, $user_id, $client_id, $include_charts, $platform, $recalculate, $study_id); return $response; } @@ -2129,8 +2291,12 @@ public function getStudy($cause_variable_name = null, $effect_variable_name = nu * * Get Study * - * @param string $cause_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) - * @param string $effect_variable_name Name of the hypothetical outcome variable. Ex: Overall Mood (optional) + * @param string $cause_variable_name Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $effect_variable_name Deprecated: Name of the outcome variable of interest. Ex: Overall Mood (optional) + * @param int $cause_variable_id Variable id of the hypothetical predictor variable. Ex: 1398 (optional) + * @param int $effect_variable_id Variable id of the outcome variable of interest. Ex: 1398 (optional) + * @param string $predictor_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $outcome_variable_name Name of the outcome variable of interest. Ex: Overall Mood (optional) * @param float $user_id User's id (optional) * @param string $client_id Your QuantiModo client id can be obtained by creating an app at https://builder.quantimo.do (optional) * @param bool $include_charts Highcharts configs that can be used if you have highcharts.js included on the page. This only works if the id or name query parameter is also provided. (optional) @@ -2142,10 +2308,10 @@ public function getStudy($cause_variable_name = null, $effect_variable_name = nu * @throws \InvalidArgumentException * @return array of \QuantiModo\Client\Model\Study, HTTP status code, HTTP response headers (array of strings) */ - public function getStudyWithHttpInfo($cause_variable_name = null, $effect_variable_name = null, $user_id = null, $client_id = null, $include_charts = null, $platform = null, $recalculate = null, $study_id = null) + public function getStudyWithHttpInfo($cause_variable_name = null, $effect_variable_name = null, $cause_variable_id = null, $effect_variable_id = null, $predictor_variable_name = null, $outcome_variable_name = null, $user_id = null, $client_id = null, $include_charts = null, $platform = null, $recalculate = null, $study_id = null) { $returnType = '\QuantiModo\Client\Model\Study'; - $request = $this->getStudyRequest($cause_variable_name, $effect_variable_name, $user_id, $client_id, $include_charts, $platform, $recalculate, $study_id); + $request = $this->getStudyRequest($cause_variable_name, $effect_variable_name, $cause_variable_id, $effect_variable_id, $predictor_variable_name, $outcome_variable_name, $user_id, $client_id, $include_charts, $platform, $recalculate, $study_id); try { $options = $this->createHttpClientOption(); @@ -2219,8 +2385,12 @@ public function getStudyWithHttpInfo($cause_variable_name = null, $effect_variab * * Get Study * - * @param string $cause_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) - * @param string $effect_variable_name Name of the hypothetical outcome variable. Ex: Overall Mood (optional) + * @param string $cause_variable_name Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $effect_variable_name Deprecated: Name of the outcome variable of interest. Ex: Overall Mood (optional) + * @param int $cause_variable_id Variable id of the hypothetical predictor variable. Ex: 1398 (optional) + * @param int $effect_variable_id Variable id of the outcome variable of interest. Ex: 1398 (optional) + * @param string $predictor_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $outcome_variable_name Name of the outcome variable of interest. Ex: Overall Mood (optional) * @param float $user_id User's id (optional) * @param string $client_id Your QuantiModo client id can be obtained by creating an app at https://builder.quantimo.do (optional) * @param bool $include_charts Highcharts configs that can be used if you have highcharts.js included on the page. This only works if the id or name query parameter is also provided. (optional) @@ -2231,9 +2401,9 @@ public function getStudyWithHttpInfo($cause_variable_name = null, $effect_variab * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getStudyAsync($cause_variable_name = null, $effect_variable_name = null, $user_id = null, $client_id = null, $include_charts = null, $platform = null, $recalculate = null, $study_id = null) + public function getStudyAsync($cause_variable_name = null, $effect_variable_name = null, $cause_variable_id = null, $effect_variable_id = null, $predictor_variable_name = null, $outcome_variable_name = null, $user_id = null, $client_id = null, $include_charts = null, $platform = null, $recalculate = null, $study_id = null) { - return $this->getStudyAsyncWithHttpInfo($cause_variable_name, $effect_variable_name, $user_id, $client_id, $include_charts, $platform, $recalculate, $study_id) + return $this->getStudyAsyncWithHttpInfo($cause_variable_name, $effect_variable_name, $cause_variable_id, $effect_variable_id, $predictor_variable_name, $outcome_variable_name, $user_id, $client_id, $include_charts, $platform, $recalculate, $study_id) ->then( function ($response) { return $response[0]; @@ -2246,8 +2416,12 @@ function ($response) { * * Get Study * - * @param string $cause_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) - * @param string $effect_variable_name Name of the hypothetical outcome variable. Ex: Overall Mood (optional) + * @param string $cause_variable_name Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $effect_variable_name Deprecated: Name of the outcome variable of interest. Ex: Overall Mood (optional) + * @param int $cause_variable_id Variable id of the hypothetical predictor variable. Ex: 1398 (optional) + * @param int $effect_variable_id Variable id of the outcome variable of interest. Ex: 1398 (optional) + * @param string $predictor_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $outcome_variable_name Name of the outcome variable of interest. Ex: Overall Mood (optional) * @param float $user_id User's id (optional) * @param string $client_id Your QuantiModo client id can be obtained by creating an app at https://builder.quantimo.do (optional) * @param bool $include_charts Highcharts configs that can be used if you have highcharts.js included on the page. This only works if the id or name query parameter is also provided. (optional) @@ -2258,10 +2432,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getStudyAsyncWithHttpInfo($cause_variable_name = null, $effect_variable_name = null, $user_id = null, $client_id = null, $include_charts = null, $platform = null, $recalculate = null, $study_id = null) + public function getStudyAsyncWithHttpInfo($cause_variable_name = null, $effect_variable_name = null, $cause_variable_id = null, $effect_variable_id = null, $predictor_variable_name = null, $outcome_variable_name = null, $user_id = null, $client_id = null, $include_charts = null, $platform = null, $recalculate = null, $study_id = null) { $returnType = '\QuantiModo\Client\Model\Study'; - $request = $this->getStudyRequest($cause_variable_name, $effect_variable_name, $user_id, $client_id, $include_charts, $platform, $recalculate, $study_id); + $request = $this->getStudyRequest($cause_variable_name, $effect_variable_name, $cause_variable_id, $effect_variable_id, $predictor_variable_name, $outcome_variable_name, $user_id, $client_id, $include_charts, $platform, $recalculate, $study_id); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -2303,8 +2477,12 @@ function ($exception) { /** * Create request for operation 'getStudy' * - * @param string $cause_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) - * @param string $effect_variable_name Name of the hypothetical outcome variable. Ex: Overall Mood (optional) + * @param string $cause_variable_name Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $effect_variable_name Deprecated: Name of the outcome variable of interest. Ex: Overall Mood (optional) + * @param int $cause_variable_id Variable id of the hypothetical predictor variable. Ex: 1398 (optional) + * @param int $effect_variable_id Variable id of the outcome variable of interest. Ex: 1398 (optional) + * @param string $predictor_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $outcome_variable_name Name of the outcome variable of interest. Ex: Overall Mood (optional) * @param float $user_id User's id (optional) * @param string $client_id Your QuantiModo client id can be obtained by creating an app at https://builder.quantimo.do (optional) * @param bool $include_charts Highcharts configs that can be used if you have highcharts.js included on the page. This only works if the id or name query parameter is also provided. (optional) @@ -2315,7 +2493,7 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - protected function getStudyRequest($cause_variable_name = null, $effect_variable_name = null, $user_id = null, $client_id = null, $include_charts = null, $platform = null, $recalculate = null, $study_id = null) + protected function getStudyRequest($cause_variable_name = null, $effect_variable_name = null, $cause_variable_id = null, $effect_variable_id = null, $predictor_variable_name = null, $outcome_variable_name = null, $user_id = null, $client_id = null, $include_charts = null, $platform = null, $recalculate = null, $study_id = null) { $resourcePath = '/v4/study'; @@ -2334,6 +2512,22 @@ protected function getStudyRequest($cause_variable_name = null, $effect_variable $queryParams['effectVariableName'] = ObjectSerializer::toQueryValue($effect_variable_name); } // query params + if ($cause_variable_id !== null) { + $queryParams['causeVariableId'] = ObjectSerializer::toQueryValue($cause_variable_id); + } + // query params + if ($effect_variable_id !== null) { + $queryParams['effectVariableId'] = ObjectSerializer::toQueryValue($effect_variable_id); + } + // query params + if ($predictor_variable_name !== null) { + $queryParams['predictorVariableName'] = ObjectSerializer::toQueryValue($predictor_variable_name); + } + // query params + if ($outcome_variable_name !== null) { + $queryParams['outcomeVariableName'] = ObjectSerializer::toQueryValue($outcome_variable_name); + } + // query params if ($user_id !== null) { $queryParams['userId'] = ObjectSerializer::toQueryValue($user_id); } @@ -2438,8 +2632,12 @@ protected function getStudyRequest($cause_variable_name = null, $effect_variable * Join a Study * * @param string $study_id Client id for the study you want (optional) - * @param string $cause_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) - * @param string $effect_variable_name Name of the hypothetical outcome variable. Ex: Overall Mood (optional) + * @param string $cause_variable_name Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $effect_variable_name Deprecated: Name of the outcome variable of interest. Ex: Overall Mood (optional) + * @param int $cause_variable_id Variable id of the hypothetical predictor variable. Ex: 1398 (optional) + * @param int $effect_variable_id Variable id of the outcome variable of interest. Ex: 1398 (optional) + * @param string $predictor_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $outcome_variable_name Name of the outcome variable of interest. Ex: Overall Mood (optional) * @param float $user_id User's id (optional) * @param string $client_id Your QuantiModo client id can be obtained by creating an app at https://builder.quantimo.do (optional) * @param string $platform Ex: chrome, android, ios, web (optional) @@ -2448,9 +2646,9 @@ protected function getStudyRequest($cause_variable_name = null, $effect_variable * @throws \InvalidArgumentException * @return \QuantiModo\Client\Model\StudyJoinResponse */ - public function joinStudy($study_id = null, $cause_variable_name = null, $effect_variable_name = null, $user_id = null, $client_id = null, $platform = null) + public function joinStudy($study_id = null, $cause_variable_name = null, $effect_variable_name = null, $cause_variable_id = null, $effect_variable_id = null, $predictor_variable_name = null, $outcome_variable_name = null, $user_id = null, $client_id = null, $platform = null) { - list($response) = $this->joinStudyWithHttpInfo($study_id, $cause_variable_name, $effect_variable_name, $user_id, $client_id, $platform); + list($response) = $this->joinStudyWithHttpInfo($study_id, $cause_variable_name, $effect_variable_name, $cause_variable_id, $effect_variable_id, $predictor_variable_name, $outcome_variable_name, $user_id, $client_id, $platform); return $response; } @@ -2460,8 +2658,12 @@ public function joinStudy($study_id = null, $cause_variable_name = null, $effect * Join a Study * * @param string $study_id Client id for the study you want (optional) - * @param string $cause_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) - * @param string $effect_variable_name Name of the hypothetical outcome variable. Ex: Overall Mood (optional) + * @param string $cause_variable_name Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $effect_variable_name Deprecated: Name of the outcome variable of interest. Ex: Overall Mood (optional) + * @param int $cause_variable_id Variable id of the hypothetical predictor variable. Ex: 1398 (optional) + * @param int $effect_variable_id Variable id of the outcome variable of interest. Ex: 1398 (optional) + * @param string $predictor_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $outcome_variable_name Name of the outcome variable of interest. Ex: Overall Mood (optional) * @param float $user_id User's id (optional) * @param string $client_id Your QuantiModo client id can be obtained by creating an app at https://builder.quantimo.do (optional) * @param string $platform Ex: chrome, android, ios, web (optional) @@ -2470,10 +2672,10 @@ public function joinStudy($study_id = null, $cause_variable_name = null, $effect * @throws \InvalidArgumentException * @return array of \QuantiModo\Client\Model\StudyJoinResponse, HTTP status code, HTTP response headers (array of strings) */ - public function joinStudyWithHttpInfo($study_id = null, $cause_variable_name = null, $effect_variable_name = null, $user_id = null, $client_id = null, $platform = null) + public function joinStudyWithHttpInfo($study_id = null, $cause_variable_name = null, $effect_variable_name = null, $cause_variable_id = null, $effect_variable_id = null, $predictor_variable_name = null, $outcome_variable_name = null, $user_id = null, $client_id = null, $platform = null) { $returnType = '\QuantiModo\Client\Model\StudyJoinResponse'; - $request = $this->joinStudyRequest($study_id, $cause_variable_name, $effect_variable_name, $user_id, $client_id, $platform); + $request = $this->joinStudyRequest($study_id, $cause_variable_name, $effect_variable_name, $cause_variable_id, $effect_variable_id, $predictor_variable_name, $outcome_variable_name, $user_id, $client_id, $platform); try { $options = $this->createHttpClientOption(); @@ -2540,8 +2742,12 @@ public function joinStudyWithHttpInfo($study_id = null, $cause_variable_name = n * Join a Study * * @param string $study_id Client id for the study you want (optional) - * @param string $cause_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) - * @param string $effect_variable_name Name of the hypothetical outcome variable. Ex: Overall Mood (optional) + * @param string $cause_variable_name Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $effect_variable_name Deprecated: Name of the outcome variable of interest. Ex: Overall Mood (optional) + * @param int $cause_variable_id Variable id of the hypothetical predictor variable. Ex: 1398 (optional) + * @param int $effect_variable_id Variable id of the outcome variable of interest. Ex: 1398 (optional) + * @param string $predictor_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $outcome_variable_name Name of the outcome variable of interest. Ex: Overall Mood (optional) * @param float $user_id User's id (optional) * @param string $client_id Your QuantiModo client id can be obtained by creating an app at https://builder.quantimo.do (optional) * @param string $platform Ex: chrome, android, ios, web (optional) @@ -2549,9 +2755,9 @@ public function joinStudyWithHttpInfo($study_id = null, $cause_variable_name = n * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function joinStudyAsync($study_id = null, $cause_variable_name = null, $effect_variable_name = null, $user_id = null, $client_id = null, $platform = null) + public function joinStudyAsync($study_id = null, $cause_variable_name = null, $effect_variable_name = null, $cause_variable_id = null, $effect_variable_id = null, $predictor_variable_name = null, $outcome_variable_name = null, $user_id = null, $client_id = null, $platform = null) { - return $this->joinStudyAsyncWithHttpInfo($study_id, $cause_variable_name, $effect_variable_name, $user_id, $client_id, $platform) + return $this->joinStudyAsyncWithHttpInfo($study_id, $cause_variable_name, $effect_variable_name, $cause_variable_id, $effect_variable_id, $predictor_variable_name, $outcome_variable_name, $user_id, $client_id, $platform) ->then( function ($response) { return $response[0]; @@ -2565,8 +2771,12 @@ function ($response) { * Join a Study * * @param string $study_id Client id for the study you want (optional) - * @param string $cause_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) - * @param string $effect_variable_name Name of the hypothetical outcome variable. Ex: Overall Mood (optional) + * @param string $cause_variable_name Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $effect_variable_name Deprecated: Name of the outcome variable of interest. Ex: Overall Mood (optional) + * @param int $cause_variable_id Variable id of the hypothetical predictor variable. Ex: 1398 (optional) + * @param int $effect_variable_id Variable id of the outcome variable of interest. Ex: 1398 (optional) + * @param string $predictor_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $outcome_variable_name Name of the outcome variable of interest. Ex: Overall Mood (optional) * @param float $user_id User's id (optional) * @param string $client_id Your QuantiModo client id can be obtained by creating an app at https://builder.quantimo.do (optional) * @param string $platform Ex: chrome, android, ios, web (optional) @@ -2574,10 +2784,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function joinStudyAsyncWithHttpInfo($study_id = null, $cause_variable_name = null, $effect_variable_name = null, $user_id = null, $client_id = null, $platform = null) + public function joinStudyAsyncWithHttpInfo($study_id = null, $cause_variable_name = null, $effect_variable_name = null, $cause_variable_id = null, $effect_variable_id = null, $predictor_variable_name = null, $outcome_variable_name = null, $user_id = null, $client_id = null, $platform = null) { $returnType = '\QuantiModo\Client\Model\StudyJoinResponse'; - $request = $this->joinStudyRequest($study_id, $cause_variable_name, $effect_variable_name, $user_id, $client_id, $platform); + $request = $this->joinStudyRequest($study_id, $cause_variable_name, $effect_variable_name, $cause_variable_id, $effect_variable_id, $predictor_variable_name, $outcome_variable_name, $user_id, $client_id, $platform); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -2620,8 +2830,12 @@ function ($exception) { * Create request for operation 'joinStudy' * * @param string $study_id Client id for the study you want (optional) - * @param string $cause_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) - * @param string $effect_variable_name Name of the hypothetical outcome variable. Ex: Overall Mood (optional) + * @param string $cause_variable_name Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $effect_variable_name Deprecated: Name of the outcome variable of interest. Ex: Overall Mood (optional) + * @param int $cause_variable_id Variable id of the hypothetical predictor variable. Ex: 1398 (optional) + * @param int $effect_variable_id Variable id of the outcome variable of interest. Ex: 1398 (optional) + * @param string $predictor_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $outcome_variable_name Name of the outcome variable of interest. Ex: Overall Mood (optional) * @param float $user_id User's id (optional) * @param string $client_id Your QuantiModo client id can be obtained by creating an app at https://builder.quantimo.do (optional) * @param string $platform Ex: chrome, android, ios, web (optional) @@ -2629,7 +2843,7 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - protected function joinStudyRequest($study_id = null, $cause_variable_name = null, $effect_variable_name = null, $user_id = null, $client_id = null, $platform = null) + protected function joinStudyRequest($study_id = null, $cause_variable_name = null, $effect_variable_name = null, $cause_variable_id = null, $effect_variable_id = null, $predictor_variable_name = null, $outcome_variable_name = null, $user_id = null, $client_id = null, $platform = null) { $resourcePath = '/v3/study/join'; @@ -2652,6 +2866,22 @@ protected function joinStudyRequest($study_id = null, $cause_variable_name = nul $queryParams['effectVariableName'] = ObjectSerializer::toQueryValue($effect_variable_name); } // query params + if ($cause_variable_id !== null) { + $queryParams['causeVariableId'] = ObjectSerializer::toQueryValue($cause_variable_id); + } + // query params + if ($effect_variable_id !== null) { + $queryParams['effectVariableId'] = ObjectSerializer::toQueryValue($effect_variable_id); + } + // query params + if ($predictor_variable_name !== null) { + $queryParams['predictorVariableName'] = ObjectSerializer::toQueryValue($predictor_variable_name); + } + // query params + if ($outcome_variable_name !== null) { + $queryParams['outcomeVariableName'] = ObjectSerializer::toQueryValue($outcome_variable_name); + } + // query params if ($user_id !== null) { $queryParams['userId'] = ObjectSerializer::toQueryValue($user_id); } @@ -2918,7 +3148,7 @@ function ($exception) { protected function postVoteRequest($body, $user_id = null) { // verify the required parameter 'body' is set - if ($body === null) { + if ($body === null || (is_array($body) && count($body) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $body when calling postVote' ); @@ -3018,8 +3248,12 @@ protected function postVoteRequest($body, $user_id = null) * * Publish Your Study * - * @param string $cause_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) - * @param string $effect_variable_name Name of the hypothetical outcome variable. Ex: Overall Mood (optional) + * @param string $cause_variable_name Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $effect_variable_name Deprecated: Name of the outcome variable of interest. Ex: Overall Mood (optional) + * @param int $cause_variable_id Variable id of the hypothetical predictor variable. Ex: 1398 (optional) + * @param int $effect_variable_id Variable id of the outcome variable of interest. Ex: 1398 (optional) + * @param string $predictor_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $outcome_variable_name Name of the outcome variable of interest. Ex: Overall Mood (optional) * @param float $user_id User's id (optional) * @param string $client_id Your QuantiModo client id can be obtained by creating an app at https://builder.quantimo.do (optional) * @param bool $include_charts Highcharts configs that can be used if you have highcharts.js included on the page. This only works if the id or name query parameter is also provided. (optional) @@ -3031,9 +3265,9 @@ protected function postVoteRequest($body, $user_id = null) * @throws \InvalidArgumentException * @return \QuantiModo\Client\Model\PostStudyPublishResponse */ - public function publishStudy($cause_variable_name = null, $effect_variable_name = null, $user_id = null, $client_id = null, $include_charts = null, $platform = null, $recalculate = null, $study_id = null) + public function publishStudy($cause_variable_name = null, $effect_variable_name = null, $cause_variable_id = null, $effect_variable_id = null, $predictor_variable_name = null, $outcome_variable_name = null, $user_id = null, $client_id = null, $include_charts = null, $platform = null, $recalculate = null, $study_id = null) { - list($response) = $this->publishStudyWithHttpInfo($cause_variable_name, $effect_variable_name, $user_id, $client_id, $include_charts, $platform, $recalculate, $study_id); + list($response) = $this->publishStudyWithHttpInfo($cause_variable_name, $effect_variable_name, $cause_variable_id, $effect_variable_id, $predictor_variable_name, $outcome_variable_name, $user_id, $client_id, $include_charts, $platform, $recalculate, $study_id); return $response; } @@ -3042,8 +3276,12 @@ public function publishStudy($cause_variable_name = null, $effect_variable_name * * Publish Your Study * - * @param string $cause_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) - * @param string $effect_variable_name Name of the hypothetical outcome variable. Ex: Overall Mood (optional) + * @param string $cause_variable_name Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $effect_variable_name Deprecated: Name of the outcome variable of interest. Ex: Overall Mood (optional) + * @param int $cause_variable_id Variable id of the hypothetical predictor variable. Ex: 1398 (optional) + * @param int $effect_variable_id Variable id of the outcome variable of interest. Ex: 1398 (optional) + * @param string $predictor_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $outcome_variable_name Name of the outcome variable of interest. Ex: Overall Mood (optional) * @param float $user_id User's id (optional) * @param string $client_id Your QuantiModo client id can be obtained by creating an app at https://builder.quantimo.do (optional) * @param bool $include_charts Highcharts configs that can be used if you have highcharts.js included on the page. This only works if the id or name query parameter is also provided. (optional) @@ -3055,10 +3293,10 @@ public function publishStudy($cause_variable_name = null, $effect_variable_name * @throws \InvalidArgumentException * @return array of \QuantiModo\Client\Model\PostStudyPublishResponse, HTTP status code, HTTP response headers (array of strings) */ - public function publishStudyWithHttpInfo($cause_variable_name = null, $effect_variable_name = null, $user_id = null, $client_id = null, $include_charts = null, $platform = null, $recalculate = null, $study_id = null) + public function publishStudyWithHttpInfo($cause_variable_name = null, $effect_variable_name = null, $cause_variable_id = null, $effect_variable_id = null, $predictor_variable_name = null, $outcome_variable_name = null, $user_id = null, $client_id = null, $include_charts = null, $platform = null, $recalculate = null, $study_id = null) { $returnType = '\QuantiModo\Client\Model\PostStudyPublishResponse'; - $request = $this->publishStudyRequest($cause_variable_name, $effect_variable_name, $user_id, $client_id, $include_charts, $platform, $recalculate, $study_id); + $request = $this->publishStudyRequest($cause_variable_name, $effect_variable_name, $cause_variable_id, $effect_variable_id, $predictor_variable_name, $outcome_variable_name, $user_id, $client_id, $include_charts, $platform, $recalculate, $study_id); try { $options = $this->createHttpClientOption(); @@ -3124,8 +3362,12 @@ public function publishStudyWithHttpInfo($cause_variable_name = null, $effect_va * * Publish Your Study * - * @param string $cause_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) - * @param string $effect_variable_name Name of the hypothetical outcome variable. Ex: Overall Mood (optional) + * @param string $cause_variable_name Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $effect_variable_name Deprecated: Name of the outcome variable of interest. Ex: Overall Mood (optional) + * @param int $cause_variable_id Variable id of the hypothetical predictor variable. Ex: 1398 (optional) + * @param int $effect_variable_id Variable id of the outcome variable of interest. Ex: 1398 (optional) + * @param string $predictor_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $outcome_variable_name Name of the outcome variable of interest. Ex: Overall Mood (optional) * @param float $user_id User's id (optional) * @param string $client_id Your QuantiModo client id can be obtained by creating an app at https://builder.quantimo.do (optional) * @param bool $include_charts Highcharts configs that can be used if you have highcharts.js included on the page. This only works if the id or name query parameter is also provided. (optional) @@ -3136,9 +3378,9 @@ public function publishStudyWithHttpInfo($cause_variable_name = null, $effect_va * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function publishStudyAsync($cause_variable_name = null, $effect_variable_name = null, $user_id = null, $client_id = null, $include_charts = null, $platform = null, $recalculate = null, $study_id = null) + public function publishStudyAsync($cause_variable_name = null, $effect_variable_name = null, $cause_variable_id = null, $effect_variable_id = null, $predictor_variable_name = null, $outcome_variable_name = null, $user_id = null, $client_id = null, $include_charts = null, $platform = null, $recalculate = null, $study_id = null) { - return $this->publishStudyAsyncWithHttpInfo($cause_variable_name, $effect_variable_name, $user_id, $client_id, $include_charts, $platform, $recalculate, $study_id) + return $this->publishStudyAsyncWithHttpInfo($cause_variable_name, $effect_variable_name, $cause_variable_id, $effect_variable_id, $predictor_variable_name, $outcome_variable_name, $user_id, $client_id, $include_charts, $platform, $recalculate, $study_id) ->then( function ($response) { return $response[0]; @@ -3151,8 +3393,12 @@ function ($response) { * * Publish Your Study * - * @param string $cause_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) - * @param string $effect_variable_name Name of the hypothetical outcome variable. Ex: Overall Mood (optional) + * @param string $cause_variable_name Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $effect_variable_name Deprecated: Name of the outcome variable of interest. Ex: Overall Mood (optional) + * @param int $cause_variable_id Variable id of the hypothetical predictor variable. Ex: 1398 (optional) + * @param int $effect_variable_id Variable id of the outcome variable of interest. Ex: 1398 (optional) + * @param string $predictor_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $outcome_variable_name Name of the outcome variable of interest. Ex: Overall Mood (optional) * @param float $user_id User's id (optional) * @param string $client_id Your QuantiModo client id can be obtained by creating an app at https://builder.quantimo.do (optional) * @param bool $include_charts Highcharts configs that can be used if you have highcharts.js included on the page. This only works if the id or name query parameter is also provided. (optional) @@ -3163,10 +3409,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function publishStudyAsyncWithHttpInfo($cause_variable_name = null, $effect_variable_name = null, $user_id = null, $client_id = null, $include_charts = null, $platform = null, $recalculate = null, $study_id = null) + public function publishStudyAsyncWithHttpInfo($cause_variable_name = null, $effect_variable_name = null, $cause_variable_id = null, $effect_variable_id = null, $predictor_variable_name = null, $outcome_variable_name = null, $user_id = null, $client_id = null, $include_charts = null, $platform = null, $recalculate = null, $study_id = null) { $returnType = '\QuantiModo\Client\Model\PostStudyPublishResponse'; - $request = $this->publishStudyRequest($cause_variable_name, $effect_variable_name, $user_id, $client_id, $include_charts, $platform, $recalculate, $study_id); + $request = $this->publishStudyRequest($cause_variable_name, $effect_variable_name, $cause_variable_id, $effect_variable_id, $predictor_variable_name, $outcome_variable_name, $user_id, $client_id, $include_charts, $platform, $recalculate, $study_id); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -3208,8 +3454,12 @@ function ($exception) { /** * Create request for operation 'publishStudy' * - * @param string $cause_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) - * @param string $effect_variable_name Name of the hypothetical outcome variable. Ex: Overall Mood (optional) + * @param string $cause_variable_name Deprecated: Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $effect_variable_name Deprecated: Name of the outcome variable of interest. Ex: Overall Mood (optional) + * @param int $cause_variable_id Variable id of the hypothetical predictor variable. Ex: 1398 (optional) + * @param int $effect_variable_id Variable id of the outcome variable of interest. Ex: 1398 (optional) + * @param string $predictor_variable_name Name of the hypothetical predictor variable. Ex: Sleep Duration (optional) + * @param string $outcome_variable_name Name of the outcome variable of interest. Ex: Overall Mood (optional) * @param float $user_id User's id (optional) * @param string $client_id Your QuantiModo client id can be obtained by creating an app at https://builder.quantimo.do (optional) * @param bool $include_charts Highcharts configs that can be used if you have highcharts.js included on the page. This only works if the id or name query parameter is also provided. (optional) @@ -3220,7 +3470,7 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - protected function publishStudyRequest($cause_variable_name = null, $effect_variable_name = null, $user_id = null, $client_id = null, $include_charts = null, $platform = null, $recalculate = null, $study_id = null) + protected function publishStudyRequest($cause_variable_name = null, $effect_variable_name = null, $cause_variable_id = null, $effect_variable_id = null, $predictor_variable_name = null, $outcome_variable_name = null, $user_id = null, $client_id = null, $include_charts = null, $platform = null, $recalculate = null, $study_id = null) { $resourcePath = '/v3/study/publish'; @@ -3239,6 +3489,22 @@ protected function publishStudyRequest($cause_variable_name = null, $effect_vari $queryParams['effectVariableName'] = ObjectSerializer::toQueryValue($effect_variable_name); } // query params + if ($cause_variable_id !== null) { + $queryParams['causeVariableId'] = ObjectSerializer::toQueryValue($cause_variable_id); + } + // query params + if ($effect_variable_id !== null) { + $queryParams['effectVariableId'] = ObjectSerializer::toQueryValue($effect_variable_id); + } + // query params + if ($predictor_variable_name !== null) { + $queryParams['predictorVariableName'] = ObjectSerializer::toQueryValue($predictor_variable_name); + } + // query params + if ($outcome_variable_name !== null) { + $queryParams['outcomeVariableName'] = ObjectSerializer::toQueryValue($outcome_variable_name); + } + // query params if ($user_id !== null) { $queryParams['userId'] = ObjectSerializer::toQueryValue($user_id); } diff --git a/lib/Api/UnitsApi.php b/lib/Api/UnitsApi.php index 8f26332..a34d8c2 100644 --- a/lib/Api/UnitsApi.php +++ b/lib/Api/UnitsApi.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -59,6 +59,11 @@ class UnitsApi */ protected $config; + /** + * @var HeaderSelector + */ + protected $headerSelector; + /** * @param ClientInterface $client * @param Configuration $config diff --git a/lib/Api/UserApi.php b/lib/Api/UserApi.php index 2ffc609..d79141e 100644 --- a/lib/Api/UserApi.php +++ b/lib/Api/UserApi.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -59,6 +59,11 @@ class UserApi */ protected $config; + /** + * @var HeaderSelector + */ + protected $headerSelector; + /** * @param ClientInterface $client * @param Configuration $config @@ -267,7 +272,7 @@ function ($exception) { protected function deleteUserRequest($reason, $client_id = null, $platform = null) { // verify the required parameter 'reason' is set - if ($reason === null) { + if ($reason === null || (is_array($reason) && count($reason) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $reason when calling deleteUser' ); @@ -1599,7 +1604,7 @@ function ($exception) { protected function postUserSettingsRequest($body, $client_id = null, $platform = null) { // verify the required parameter 'body' is set - if ($body === null) { + if ($body === null || (is_array($body) && count($body) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $body when calling postUserSettings' ); diff --git a/lib/Api/VariablesApi.php b/lib/Api/VariablesApi.php index c76ec3f..a66269d 100644 --- a/lib/Api/VariablesApi.php +++ b/lib/Api/VariablesApi.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -59,6 +59,11 @@ class VariablesApi */ protected $config; + /** + * @var HeaderSelector + */ + protected $headerSelector; + /** * @param ClientInterface $client * @param Configuration $config @@ -490,7 +495,7 @@ function ($exception) { protected function deleteUserVariableRequest($variable_id) { // verify the required parameter 'variable_id' is set - if ($variable_id === null) { + if ($variable_id === null || (is_array($variable_id) && count($variable_id) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $variable_id when calling deleteUserVariable' ); @@ -843,6 +848,7 @@ protected function getVariableCategoriesRequest() * @param float $user_id User's id (optional) * @param string $variable_category_name Ex: Emotions, Treatments, Symptoms... (optional) * @param string $name Name of the variable. To get results matching a substring, add % as a wildcard as the first and/or last character of a query string parameter. In order to get variables that contain `Mood`, the following query should be used: ?variableName=%Mood% (optional) + * @param string $variable_name Name of the variable you want measurements for (optional) * @param string $updated_at When the record was last updated. Use UTC ISO 8601 YYYY-MM-DDThh:mm:ss datetime format. Time zone should be UTC and not local. (optional) * @param string $source_name ID of the source you want measurements for (supports exact name match only) (optional) * @param string $earliest_measurement_time Excluded records with measurement times earlier than this value. Use UTC ISO 8601 YYYY-MM-DDThh:mm:ss datetime format. Time zone should be UTC and not local. (optional) @@ -882,9 +888,9 @@ protected function getVariableCategoriesRequest() * @throws \InvalidArgumentException * @return \QuantiModo\Client\Model\Variable[] */ - public function getVariables($include_charts = null, $number_of_raw_measurements = null, $user_id = null, $variable_category_name = null, $name = null, $updated_at = null, $source_name = null, $earliest_measurement_time = null, $latest_measurement_time = null, $id = null, $last_source_name = null, $limit = '100', $offset = null, $sort = null, $include_public = null, $manual_tracking = null, $client_id = null, $upc = null, $effect_or_cause = null, $public_effect_or_cause = null, $exact_match = null, $variable_category_id = null, $include_private = null, $search_phrase = null, $synonyms = null, $tagged_variable_id = null, $tag_variable_id = null, $join_variable_id = null, $parent_user_tag_variable_id = null, $child_user_tag_variable_id = null, $ingredient_user_tag_variable_id = null, $ingredient_of_user_tag_variable_id = null, $common_only = null, $user_only = null, $platform = null, $include_tags = null, $recalculate = null, $variable_id = null, $concise = null) + public function getVariables($include_charts = null, $number_of_raw_measurements = null, $user_id = null, $variable_category_name = null, $name = null, $variable_name = null, $updated_at = null, $source_name = null, $earliest_measurement_time = null, $latest_measurement_time = null, $id = null, $last_source_name = null, $limit = '100', $offset = null, $sort = null, $include_public = null, $manual_tracking = null, $client_id = null, $upc = null, $effect_or_cause = null, $public_effect_or_cause = null, $exact_match = null, $variable_category_id = null, $include_private = null, $search_phrase = null, $synonyms = null, $tagged_variable_id = null, $tag_variable_id = null, $join_variable_id = null, $parent_user_tag_variable_id = null, $child_user_tag_variable_id = null, $ingredient_user_tag_variable_id = null, $ingredient_of_user_tag_variable_id = null, $common_only = null, $user_only = null, $platform = null, $include_tags = null, $recalculate = null, $variable_id = null, $concise = null) { - list($response) = $this->getVariablesWithHttpInfo($include_charts, $number_of_raw_measurements, $user_id, $variable_category_name, $name, $updated_at, $source_name, $earliest_measurement_time, $latest_measurement_time, $id, $last_source_name, $limit, $offset, $sort, $include_public, $manual_tracking, $client_id, $upc, $effect_or_cause, $public_effect_or_cause, $exact_match, $variable_category_id, $include_private, $search_phrase, $synonyms, $tagged_variable_id, $tag_variable_id, $join_variable_id, $parent_user_tag_variable_id, $child_user_tag_variable_id, $ingredient_user_tag_variable_id, $ingredient_of_user_tag_variable_id, $common_only, $user_only, $platform, $include_tags, $recalculate, $variable_id, $concise); + list($response) = $this->getVariablesWithHttpInfo($include_charts, $number_of_raw_measurements, $user_id, $variable_category_name, $name, $variable_name, $updated_at, $source_name, $earliest_measurement_time, $latest_measurement_time, $id, $last_source_name, $limit, $offset, $sort, $include_public, $manual_tracking, $client_id, $upc, $effect_or_cause, $public_effect_or_cause, $exact_match, $variable_category_id, $include_private, $search_phrase, $synonyms, $tagged_variable_id, $tag_variable_id, $join_variable_id, $parent_user_tag_variable_id, $child_user_tag_variable_id, $ingredient_user_tag_variable_id, $ingredient_of_user_tag_variable_id, $common_only, $user_only, $platform, $include_tags, $recalculate, $variable_id, $concise); return $response; } @@ -898,6 +904,7 @@ public function getVariables($include_charts = null, $number_of_raw_measurements * @param float $user_id User's id (optional) * @param string $variable_category_name Ex: Emotions, Treatments, Symptoms... (optional) * @param string $name Name of the variable. To get results matching a substring, add % as a wildcard as the first and/or last character of a query string parameter. In order to get variables that contain `Mood`, the following query should be used: ?variableName=%Mood% (optional) + * @param string $variable_name Name of the variable you want measurements for (optional) * @param string $updated_at When the record was last updated. Use UTC ISO 8601 YYYY-MM-DDThh:mm:ss datetime format. Time zone should be UTC and not local. (optional) * @param string $source_name ID of the source you want measurements for (supports exact name match only) (optional) * @param string $earliest_measurement_time Excluded records with measurement times earlier than this value. Use UTC ISO 8601 YYYY-MM-DDThh:mm:ss datetime format. Time zone should be UTC and not local. (optional) @@ -937,10 +944,10 @@ public function getVariables($include_charts = null, $number_of_raw_measurements * @throws \InvalidArgumentException * @return array of \QuantiModo\Client\Model\Variable[], HTTP status code, HTTP response headers (array of strings) */ - public function getVariablesWithHttpInfo($include_charts = null, $number_of_raw_measurements = null, $user_id = null, $variable_category_name = null, $name = null, $updated_at = null, $source_name = null, $earliest_measurement_time = null, $latest_measurement_time = null, $id = null, $last_source_name = null, $limit = '100', $offset = null, $sort = null, $include_public = null, $manual_tracking = null, $client_id = null, $upc = null, $effect_or_cause = null, $public_effect_or_cause = null, $exact_match = null, $variable_category_id = null, $include_private = null, $search_phrase = null, $synonyms = null, $tagged_variable_id = null, $tag_variable_id = null, $join_variable_id = null, $parent_user_tag_variable_id = null, $child_user_tag_variable_id = null, $ingredient_user_tag_variable_id = null, $ingredient_of_user_tag_variable_id = null, $common_only = null, $user_only = null, $platform = null, $include_tags = null, $recalculate = null, $variable_id = null, $concise = null) + public function getVariablesWithHttpInfo($include_charts = null, $number_of_raw_measurements = null, $user_id = null, $variable_category_name = null, $name = null, $variable_name = null, $updated_at = null, $source_name = null, $earliest_measurement_time = null, $latest_measurement_time = null, $id = null, $last_source_name = null, $limit = '100', $offset = null, $sort = null, $include_public = null, $manual_tracking = null, $client_id = null, $upc = null, $effect_or_cause = null, $public_effect_or_cause = null, $exact_match = null, $variable_category_id = null, $include_private = null, $search_phrase = null, $synonyms = null, $tagged_variable_id = null, $tag_variable_id = null, $join_variable_id = null, $parent_user_tag_variable_id = null, $child_user_tag_variable_id = null, $ingredient_user_tag_variable_id = null, $ingredient_of_user_tag_variable_id = null, $common_only = null, $user_only = null, $platform = null, $include_tags = null, $recalculate = null, $variable_id = null, $concise = null) { $returnType = '\QuantiModo\Client\Model\Variable[]'; - $request = $this->getVariablesRequest($include_charts, $number_of_raw_measurements, $user_id, $variable_category_name, $name, $updated_at, $source_name, $earliest_measurement_time, $latest_measurement_time, $id, $last_source_name, $limit, $offset, $sort, $include_public, $manual_tracking, $client_id, $upc, $effect_or_cause, $public_effect_or_cause, $exact_match, $variable_category_id, $include_private, $search_phrase, $synonyms, $tagged_variable_id, $tag_variable_id, $join_variable_id, $parent_user_tag_variable_id, $child_user_tag_variable_id, $ingredient_user_tag_variable_id, $ingredient_of_user_tag_variable_id, $common_only, $user_only, $platform, $include_tags, $recalculate, $variable_id, $concise); + $request = $this->getVariablesRequest($include_charts, $number_of_raw_measurements, $user_id, $variable_category_name, $name, $variable_name, $updated_at, $source_name, $earliest_measurement_time, $latest_measurement_time, $id, $last_source_name, $limit, $offset, $sort, $include_public, $manual_tracking, $client_id, $upc, $effect_or_cause, $public_effect_or_cause, $exact_match, $variable_category_id, $include_private, $search_phrase, $synonyms, $tagged_variable_id, $tag_variable_id, $join_variable_id, $parent_user_tag_variable_id, $child_user_tag_variable_id, $ingredient_user_tag_variable_id, $ingredient_of_user_tag_variable_id, $common_only, $user_only, $platform, $include_tags, $recalculate, $variable_id, $concise); try { $options = $this->createHttpClientOption(); @@ -1011,6 +1018,7 @@ public function getVariablesWithHttpInfo($include_charts = null, $number_of_raw_ * @param float $user_id User's id (optional) * @param string $variable_category_name Ex: Emotions, Treatments, Symptoms... (optional) * @param string $name Name of the variable. To get results matching a substring, add % as a wildcard as the first and/or last character of a query string parameter. In order to get variables that contain `Mood`, the following query should be used: ?variableName=%Mood% (optional) + * @param string $variable_name Name of the variable you want measurements for (optional) * @param string $updated_at When the record was last updated. Use UTC ISO 8601 YYYY-MM-DDThh:mm:ss datetime format. Time zone should be UTC and not local. (optional) * @param string $source_name ID of the source you want measurements for (supports exact name match only) (optional) * @param string $earliest_measurement_time Excluded records with measurement times earlier than this value. Use UTC ISO 8601 YYYY-MM-DDThh:mm:ss datetime format. Time zone should be UTC and not local. (optional) @@ -1049,9 +1057,9 @@ public function getVariablesWithHttpInfo($include_charts = null, $number_of_raw_ * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getVariablesAsync($include_charts = null, $number_of_raw_measurements = null, $user_id = null, $variable_category_name = null, $name = null, $updated_at = null, $source_name = null, $earliest_measurement_time = null, $latest_measurement_time = null, $id = null, $last_source_name = null, $limit = '100', $offset = null, $sort = null, $include_public = null, $manual_tracking = null, $client_id = null, $upc = null, $effect_or_cause = null, $public_effect_or_cause = null, $exact_match = null, $variable_category_id = null, $include_private = null, $search_phrase = null, $synonyms = null, $tagged_variable_id = null, $tag_variable_id = null, $join_variable_id = null, $parent_user_tag_variable_id = null, $child_user_tag_variable_id = null, $ingredient_user_tag_variable_id = null, $ingredient_of_user_tag_variable_id = null, $common_only = null, $user_only = null, $platform = null, $include_tags = null, $recalculate = null, $variable_id = null, $concise = null) + public function getVariablesAsync($include_charts = null, $number_of_raw_measurements = null, $user_id = null, $variable_category_name = null, $name = null, $variable_name = null, $updated_at = null, $source_name = null, $earliest_measurement_time = null, $latest_measurement_time = null, $id = null, $last_source_name = null, $limit = '100', $offset = null, $sort = null, $include_public = null, $manual_tracking = null, $client_id = null, $upc = null, $effect_or_cause = null, $public_effect_or_cause = null, $exact_match = null, $variable_category_id = null, $include_private = null, $search_phrase = null, $synonyms = null, $tagged_variable_id = null, $tag_variable_id = null, $join_variable_id = null, $parent_user_tag_variable_id = null, $child_user_tag_variable_id = null, $ingredient_user_tag_variable_id = null, $ingredient_of_user_tag_variable_id = null, $common_only = null, $user_only = null, $platform = null, $include_tags = null, $recalculate = null, $variable_id = null, $concise = null) { - return $this->getVariablesAsyncWithHttpInfo($include_charts, $number_of_raw_measurements, $user_id, $variable_category_name, $name, $updated_at, $source_name, $earliest_measurement_time, $latest_measurement_time, $id, $last_source_name, $limit, $offset, $sort, $include_public, $manual_tracking, $client_id, $upc, $effect_or_cause, $public_effect_or_cause, $exact_match, $variable_category_id, $include_private, $search_phrase, $synonyms, $tagged_variable_id, $tag_variable_id, $join_variable_id, $parent_user_tag_variable_id, $child_user_tag_variable_id, $ingredient_user_tag_variable_id, $ingredient_of_user_tag_variable_id, $common_only, $user_only, $platform, $include_tags, $recalculate, $variable_id, $concise) + return $this->getVariablesAsyncWithHttpInfo($include_charts, $number_of_raw_measurements, $user_id, $variable_category_name, $name, $variable_name, $updated_at, $source_name, $earliest_measurement_time, $latest_measurement_time, $id, $last_source_name, $limit, $offset, $sort, $include_public, $manual_tracking, $client_id, $upc, $effect_or_cause, $public_effect_or_cause, $exact_match, $variable_category_id, $include_private, $search_phrase, $synonyms, $tagged_variable_id, $tag_variable_id, $join_variable_id, $parent_user_tag_variable_id, $child_user_tag_variable_id, $ingredient_user_tag_variable_id, $ingredient_of_user_tag_variable_id, $common_only, $user_only, $platform, $include_tags, $recalculate, $variable_id, $concise) ->then( function ($response) { return $response[0]; @@ -1069,6 +1077,7 @@ function ($response) { * @param float $user_id User's id (optional) * @param string $variable_category_name Ex: Emotions, Treatments, Symptoms... (optional) * @param string $name Name of the variable. To get results matching a substring, add % as a wildcard as the first and/or last character of a query string parameter. In order to get variables that contain `Mood`, the following query should be used: ?variableName=%Mood% (optional) + * @param string $variable_name Name of the variable you want measurements for (optional) * @param string $updated_at When the record was last updated. Use UTC ISO 8601 YYYY-MM-DDThh:mm:ss datetime format. Time zone should be UTC and not local. (optional) * @param string $source_name ID of the source you want measurements for (supports exact name match only) (optional) * @param string $earliest_measurement_time Excluded records with measurement times earlier than this value. Use UTC ISO 8601 YYYY-MM-DDThh:mm:ss datetime format. Time zone should be UTC and not local. (optional) @@ -1107,10 +1116,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getVariablesAsyncWithHttpInfo($include_charts = null, $number_of_raw_measurements = null, $user_id = null, $variable_category_name = null, $name = null, $updated_at = null, $source_name = null, $earliest_measurement_time = null, $latest_measurement_time = null, $id = null, $last_source_name = null, $limit = '100', $offset = null, $sort = null, $include_public = null, $manual_tracking = null, $client_id = null, $upc = null, $effect_or_cause = null, $public_effect_or_cause = null, $exact_match = null, $variable_category_id = null, $include_private = null, $search_phrase = null, $synonyms = null, $tagged_variable_id = null, $tag_variable_id = null, $join_variable_id = null, $parent_user_tag_variable_id = null, $child_user_tag_variable_id = null, $ingredient_user_tag_variable_id = null, $ingredient_of_user_tag_variable_id = null, $common_only = null, $user_only = null, $platform = null, $include_tags = null, $recalculate = null, $variable_id = null, $concise = null) + public function getVariablesAsyncWithHttpInfo($include_charts = null, $number_of_raw_measurements = null, $user_id = null, $variable_category_name = null, $name = null, $variable_name = null, $updated_at = null, $source_name = null, $earliest_measurement_time = null, $latest_measurement_time = null, $id = null, $last_source_name = null, $limit = '100', $offset = null, $sort = null, $include_public = null, $manual_tracking = null, $client_id = null, $upc = null, $effect_or_cause = null, $public_effect_or_cause = null, $exact_match = null, $variable_category_id = null, $include_private = null, $search_phrase = null, $synonyms = null, $tagged_variable_id = null, $tag_variable_id = null, $join_variable_id = null, $parent_user_tag_variable_id = null, $child_user_tag_variable_id = null, $ingredient_user_tag_variable_id = null, $ingredient_of_user_tag_variable_id = null, $common_only = null, $user_only = null, $platform = null, $include_tags = null, $recalculate = null, $variable_id = null, $concise = null) { $returnType = '\QuantiModo\Client\Model\Variable[]'; - $request = $this->getVariablesRequest($include_charts, $number_of_raw_measurements, $user_id, $variable_category_name, $name, $updated_at, $source_name, $earliest_measurement_time, $latest_measurement_time, $id, $last_source_name, $limit, $offset, $sort, $include_public, $manual_tracking, $client_id, $upc, $effect_or_cause, $public_effect_or_cause, $exact_match, $variable_category_id, $include_private, $search_phrase, $synonyms, $tagged_variable_id, $tag_variable_id, $join_variable_id, $parent_user_tag_variable_id, $child_user_tag_variable_id, $ingredient_user_tag_variable_id, $ingredient_of_user_tag_variable_id, $common_only, $user_only, $platform, $include_tags, $recalculate, $variable_id, $concise); + $request = $this->getVariablesRequest($include_charts, $number_of_raw_measurements, $user_id, $variable_category_name, $name, $variable_name, $updated_at, $source_name, $earliest_measurement_time, $latest_measurement_time, $id, $last_source_name, $limit, $offset, $sort, $include_public, $manual_tracking, $client_id, $upc, $effect_or_cause, $public_effect_or_cause, $exact_match, $variable_category_id, $include_private, $search_phrase, $synonyms, $tagged_variable_id, $tag_variable_id, $join_variable_id, $parent_user_tag_variable_id, $child_user_tag_variable_id, $ingredient_user_tag_variable_id, $ingredient_of_user_tag_variable_id, $common_only, $user_only, $platform, $include_tags, $recalculate, $variable_id, $concise); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1157,6 +1166,7 @@ function ($exception) { * @param float $user_id User's id (optional) * @param string $variable_category_name Ex: Emotions, Treatments, Symptoms... (optional) * @param string $name Name of the variable. To get results matching a substring, add % as a wildcard as the first and/or last character of a query string parameter. In order to get variables that contain `Mood`, the following query should be used: ?variableName=%Mood% (optional) + * @param string $variable_name Name of the variable you want measurements for (optional) * @param string $updated_at When the record was last updated. Use UTC ISO 8601 YYYY-MM-DDThh:mm:ss datetime format. Time zone should be UTC and not local. (optional) * @param string $source_name ID of the source you want measurements for (supports exact name match only) (optional) * @param string $earliest_measurement_time Excluded records with measurement times earlier than this value. Use UTC ISO 8601 YYYY-MM-DDThh:mm:ss datetime format. Time zone should be UTC and not local. (optional) @@ -1195,7 +1205,7 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - protected function getVariablesRequest($include_charts = null, $number_of_raw_measurements = null, $user_id = null, $variable_category_name = null, $name = null, $updated_at = null, $source_name = null, $earliest_measurement_time = null, $latest_measurement_time = null, $id = null, $last_source_name = null, $limit = '100', $offset = null, $sort = null, $include_public = null, $manual_tracking = null, $client_id = null, $upc = null, $effect_or_cause = null, $public_effect_or_cause = null, $exact_match = null, $variable_category_id = null, $include_private = null, $search_phrase = null, $synonyms = null, $tagged_variable_id = null, $tag_variable_id = null, $join_variable_id = null, $parent_user_tag_variable_id = null, $child_user_tag_variable_id = null, $ingredient_user_tag_variable_id = null, $ingredient_of_user_tag_variable_id = null, $common_only = null, $user_only = null, $platform = null, $include_tags = null, $recalculate = null, $variable_id = null, $concise = null) + protected function getVariablesRequest($include_charts = null, $number_of_raw_measurements = null, $user_id = null, $variable_category_name = null, $name = null, $variable_name = null, $updated_at = null, $source_name = null, $earliest_measurement_time = null, $latest_measurement_time = null, $id = null, $last_source_name = null, $limit = '100', $offset = null, $sort = null, $include_public = null, $manual_tracking = null, $client_id = null, $upc = null, $effect_or_cause = null, $public_effect_or_cause = null, $exact_match = null, $variable_category_id = null, $include_private = null, $search_phrase = null, $synonyms = null, $tagged_variable_id = null, $tag_variable_id = null, $join_variable_id = null, $parent_user_tag_variable_id = null, $child_user_tag_variable_id = null, $ingredient_user_tag_variable_id = null, $ingredient_of_user_tag_variable_id = null, $common_only = null, $user_only = null, $platform = null, $include_tags = null, $recalculate = null, $variable_id = null, $concise = null) { if ($offset !== null && $offset < 0) { throw new \InvalidArgumentException('invalid value for "$offset" when calling VariablesApi.getVariables, must be bigger than or equal to 0.'); @@ -1230,6 +1240,10 @@ protected function getVariablesRequest($include_charts = null, $number_of_raw_me $queryParams['name'] = ObjectSerializer::toQueryValue($name); } // query params + if ($variable_name !== null) { + $queryParams['variableName'] = ObjectSerializer::toQueryValue($variable_name); + } + // query params if ($updated_at !== null) { $queryParams['updatedAt'] = ObjectSerializer::toQueryValue($updated_at); } @@ -1620,7 +1634,7 @@ function ($exception) { protected function postUserTagsRequest($body, $user_id = null) { // verify the required parameter 'body' is set - if ($body === null) { + if ($body === null || (is_array($body) && count($body) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $body when calling postUserTags' ); @@ -1940,7 +1954,7 @@ function ($exception) { protected function postUserVariablesRequest($user_variables, $include_private = null, $client_id = null, $include_public = null, $search_phrase = null, $exact_match = null, $manual_tracking = null, $variable_category_name = null, $variable_category_id = null, $synonyms = null, $platform = null) { // verify the required parameter 'user_variables' is set - if ($user_variables === null) { + if ($user_variables === null || (is_array($user_variables) && count($user_variables) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $user_variables when calling postUserVariables' ); @@ -2209,7 +2223,7 @@ function ($exception) { protected function resetUserVariableSettingsRequest($variable_id) { // verify the required parameter 'variable_id' is set - if ($variable_id === null) { + if ($variable_id === null || (is_array($variable_id) && count($variable_id) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $variable_id when calling resetUserVariableSettings' ); diff --git a/lib/Api/XprofileApi.php b/lib/Api/XprofileApi.php index 0ba8539..31afd2f 100644 --- a/lib/Api/XprofileApi.php +++ b/lib/Api/XprofileApi.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -59,6 +59,11 @@ class XprofileApi */ protected $config; + /** + * @var HeaderSelector + */ + protected $headerSelector; + /** * @param ClientInterface $client * @param Configuration $config diff --git a/lib/ApiException.php b/lib/ApiException.php index 66b937b..407c939 100644 --- a/lib/ApiException.php +++ b/lib/ApiException.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** diff --git a/lib/Configuration.php b/lib/Configuration.php index 00888a8..74e2572 100644 --- a/lib/Configuration.php +++ b/lib/Configuration.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** diff --git a/lib/HeaderSelector.php b/lib/HeaderSelector.php index 7fbe0bf..87cf6bd 100644 --- a/lib/HeaderSelector.php +++ b/lib/HeaderSelector.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -107,4 +107,3 @@ private function selectContentTypeHeader($contentType) } } } - diff --git a/lib/Model/ActivitiesResponse.php b/lib/Model/ActivitiesResponse.php index bd4702b..784400e 100644 --- a/lib/Model/ActivitiesResponse.php +++ b/lib/Model/ActivitiesResponse.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -239,11 +239,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['activities'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/Activity.php b/lib/Model/Activity.php index 64ad96d..82cf5f3 100644 --- a/lib/Model/Activity.php +++ b/lib/Model/Activity.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -326,50 +326,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['id'] === null) { - return false; - } - if ($this->container['user_id'] === null) { - return false; - } - if ($this->container['component'] === null) { - return false; - } - if ($this->container['type'] === null) { - return false; - } - if ($this->container['action'] === null) { - return false; - } - if ($this->container['content'] === null) { - return false; - } - if ($this->container['primary_link'] === null) { - return false; - } - if ($this->container['item_id'] === null) { - return false; - } - if ($this->container['secondary_item_id'] === null) { - return false; - } - if ($this->container['date_recorded'] === null) { - return false; - } - if ($this->container['hide_sitewide'] === null) { - return false; - } - if ($this->container['mptt_left'] === null) { - return false; - } - if ($this->container['mptt_right'] === null) { - return false; - } - if ($this->container['is_spam'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/AppSettings.php b/lib/Model/AppSettings.php index e11bc3d..8c39698 100644 --- a/lib/Model/AppSettings.php +++ b/lib/Model/AppSettings.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -317,11 +317,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['client_id'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/AppSettingsResponse.php b/lib/Model/AppSettingsResponse.php index 8e45cbd..0b724d7 100644 --- a/lib/Model/AppSettingsResponse.php +++ b/lib/Model/AppSettingsResponse.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -218,14 +218,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['description'] === null) { - return false; - } - if ($this->container['summary'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/AuthorizedClients.php b/lib/Model/AuthorizedClients.php index e57fce1..3ed871b 100644 --- a/lib/Model/AuthorizedClients.php +++ b/lib/Model/AuthorizedClients.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -221,17 +221,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['apps'] === null) { - return false; - } - if ($this->container['individuals'] === null) { - return false; - } - if ($this->container['studies'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/Button.php b/lib/Model/Button.php index d285bd9..68ffbca 100644 --- a/lib/Model/Button.php +++ b/lib/Model/Button.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -320,14 +320,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['link'] === null) { - return false; - } - if ($this->container['text'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/Card.php b/lib/Model/Card.php index fb59f5a..5670689 100644 --- a/lib/Model/Card.php +++ b/lib/Model/Card.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -62,6 +62,7 @@ class Card implements ModelInterface, ArrayAccess 'avatar_circular' => 'string', 'background_color' => 'string', 'buttons' => '\QuantiModo\Client\Model\Button[]', + 'buttons_secondary' => '\QuantiModo\Client\Model\Button[]', 'content' => 'string', 'header_title' => 'string', 'html' => 'string', @@ -93,6 +94,7 @@ class Card implements ModelInterface, ArrayAccess 'avatar_circular' => null, 'background_color' => null, 'buttons' => null, + 'buttons_secondary' => null, 'content' => null, 'header_title' => null, 'html' => null, @@ -145,6 +147,7 @@ public static function swaggerFormats() 'avatar_circular' => 'avatarCircular', 'background_color' => 'backgroundColor', 'buttons' => 'buttons', + 'buttons_secondary' => 'buttonsSecondary', 'content' => 'content', 'header_title' => 'headerTitle', 'html' => 'html', @@ -176,6 +179,7 @@ public static function swaggerFormats() 'avatar_circular' => 'setAvatarCircular', 'background_color' => 'setBackgroundColor', 'buttons' => 'setButtons', + 'buttons_secondary' => 'setButtonsSecondary', 'content' => 'setContent', 'header_title' => 'setHeaderTitle', 'html' => 'setHtml', @@ -207,6 +211,7 @@ public static function swaggerFormats() 'avatar_circular' => 'getAvatarCircular', 'background_color' => 'getBackgroundColor', 'buttons' => 'getButtons', + 'buttons_secondary' => 'getButtonsSecondary', 'content' => 'getContent', 'header_title' => 'getHeaderTitle', 'html' => 'getHtml', @@ -292,6 +297,7 @@ public function __construct(array $data = null) $this->container['avatar_circular'] = isset($data['avatar_circular']) ? $data['avatar_circular'] : null; $this->container['background_color'] = isset($data['background_color']) ? $data['background_color'] : null; $this->container['buttons'] = isset($data['buttons']) ? $data['buttons'] : null; + $this->container['buttons_secondary'] = isset($data['buttons_secondary']) ? $data['buttons_secondary'] : null; $this->container['content'] = isset($data['content']) ? $data['content'] : null; $this->container['header_title'] = isset($data['header_title']) ? $data['header_title'] : null; $this->container['html'] = isset($data['html']) ? $data['html'] : null; @@ -335,11 +341,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['id'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } @@ -463,6 +465,30 @@ public function setButtons($buttons) return $this; } + /** + * Gets buttons_secondary + * + * @return \QuantiModo\Client\Model\Button[] + */ + public function getButtonsSecondary() + { + return $this->container['buttons_secondary']; + } + + /** + * Sets buttons_secondary + * + * @param \QuantiModo\Client\Model\Button[] $buttons_secondary buttons_secondary + * + * @return $this + */ + public function setButtonsSecondary($buttons_secondary) + { + $this->container['buttons_secondary'] = $buttons_secondary; + + return $this; + } + /** * Gets content * diff --git a/lib/Model/Chart.php b/lib/Model/Chart.php index 3c0732b..5779397 100644 --- a/lib/Model/Chart.php +++ b/lib/Model/Chart.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -230,8 +230,7 @@ public function listInvalidProperties() */ public function valid() { - - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/CommonResponse.php b/lib/Model/CommonResponse.php index 6e4b76e..34723ca 100644 --- a/lib/Model/CommonResponse.php +++ b/lib/Model/CommonResponse.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -212,14 +212,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['description'] === null) { - return false; - } - if ($this->container['summary'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/ConnectInstructions.php b/lib/Model/ConnectInstructions.php index d1a66f2..157de57 100644 --- a/lib/Model/ConnectInstructions.php +++ b/lib/Model/ConnectInstructions.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -215,11 +215,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['url'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/ConversionStep.php b/lib/Model/ConversionStep.php index 3833704..bd09aa8 100644 --- a/lib/Model/ConversionStep.php +++ b/lib/Model/ConversionStep.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -214,7 +214,7 @@ public function listInvalidProperties() $invalidProperties[] = "'operation' can't be null"; } $allowedValues = $this->getOperationAllowableValues(); - if (!in_array($this->container['operation'], $allowedValues)) { + if (!is_null($this->container['operation']) && !in_array($this->container['operation'], $allowedValues, true)) { $invalidProperties[] = sprintf( "invalid value for 'operation', must be one of '%s'", implode("', '", $allowedValues) @@ -235,18 +235,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['operation'] === null) { - return false; - } - $allowedValues = $this->getOperationAllowableValues(); - if (!in_array($this->container['operation'], $allowedValues)) { - return false; - } - if ($this->container['value'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } @@ -270,7 +259,7 @@ public function getOperation() public function setOperation($operation) { $allowedValues = $this->getOperationAllowableValues(); - if (!in_array($operation, $allowedValues)) { + if (!in_array($operation, $allowedValues, true)) { throw new \InvalidArgumentException( sprintf( "Invalid value for 'operation', must be one of '%s'", diff --git a/lib/Model/Correlation.php b/lib/Model/Correlation.php index c68a054..deb75ad 100644 --- a/lib/Model/Correlation.php +++ b/lib/Model/Correlation.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -977,173 +977,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['average_daily_high_cause'] === null) { - return false; - } - if ($this->container['average_daily_low_cause'] === null) { - return false; - } - if ($this->container['average_effect'] === null) { - return false; - } - if ($this->container['average_effect_following_high_cause'] === null) { - return false; - } - if ($this->container['average_effect_following_low_cause'] === null) { - return false; - } - if ($this->container['average_forward_pearson_correlation_over_onset_delays'] === null) { - return false; - } - if ($this->container['average_reverse_pearson_correlation_over_onset_delays'] === null) { - return false; - } - if ($this->container['average_vote'] === null) { - return false; - } - if ($this->container['cause_changes'] === null) { - return false; - } - if ($this->container['cause_user_variable_share_user_measurements'] === null) { - return false; - } - if ($this->container['cause_variable_name'] === null) { - return false; - } - if ($this->container['confidence_interval'] === null) { - return false; - } - if ($this->container['confidence_level'] === null) { - return false; - } - if ($this->container['correlation_coefficient'] === null) { - return false; - } - if ($this->container['created_at'] === null) { - return false; - } - if ($this->container['critical_t_value'] === null) { - return false; - } - if ($this->container['direction'] === null) { - return false; - } - if ($this->container['duration_of_action'] === null) { - return false; - } - if ($this->container['duration_of_action_in_hours'] === null) { - return false; - } - if ($this->container['effect_changes'] === null) { - return false; - } - if ($this->container['effect_size'] === null) { - return false; - } - if ($this->container['effect_unit'] === null) { - return false; - } - if ($this->container['effect_variable_name'] === null) { - return false; - } - if ($this->container['experiment_end_time'] === null) { - return false; - } - if ($this->container['experiment_start_time'] === null) { - return false; - } - if ($this->container['forward_spearman_correlation_coefficient'] === null) { - return false; - } - if ($this->container['number_of_pairs'] === null) { - return false; - } - if ($this->container['onset_delay'] === null) { - return false; - } - if ($this->container['onset_delay_in_hours'] === null) { - return false; - } - if ($this->container['onset_delay_with_strongest_pearson_correlation'] === null) { - return false; - } - if ($this->container['onset_delay_with_strongest_pearson_correlation_in_hours'] === null) { - return false; - } - if ($this->container['optimal_pearson_product'] === null) { - return false; - } - if ($this->container['outcome_filling_value'] === null) { - return false; - } - if ($this->container['pearson_correlation_with_no_onset_delay'] === null) { - return false; - } - if ($this->container['predictive_pearson_correlation'] === null) { - return false; - } - if ($this->container['predictive_pearson_correlation_coefficient'] === null) { - return false; - } - if ($this->container['predictor_data_sources'] === null) { - return false; - } - if ($this->container['predictor_filling_value'] === null) { - return false; - } - if ($this->container['predictor_maximum_allowed_value'] === null) { - return false; - } - if ($this->container['predictor_minimum_allowed_value'] === null) { - return false; - } - if ($this->container['predicts_high_effect_change'] === null) { - return false; - } - if ($this->container['predicts_low_effect_change'] === null) { - return false; - } - if ($this->container['qm_score'] === null) { - return false; - } - if ($this->container['reverse_pearson_correlation_coefficient'] === null) { - return false; - } - if ($this->container['share_user_measurements'] === null) { - return false; - } - if ($this->container['significant_difference'] === null) { - return false; - } - if ($this->container['statistical_significance'] === null) { - return false; - } - if ($this->container['strength_level'] === null) { - return false; - } - if ($this->container['strongest_pearson_correlation_coefficient'] === null) { - return false; - } - if ($this->container['t_value'] === null) { - return false; - } - if ($this->container['updated_at'] === null) { - return false; - } - if ($this->container['user_id'] === null) { - return false; - } - if ($this->container['user_vote'] === null) { - return false; - } - if ($this->container['value_predicting_high_outcome'] === null) { - return false; - } - if ($this->container['value_predicting_low_outcome'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/DataSource.php b/lib/Model/DataSource.php index 392f971..2646721 100644 --- a/lib/Model/DataSource.php +++ b/lib/Model/DataSource.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -455,47 +455,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['affiliate'] === null) { - return false; - } - if ($this->container['connector_client_id'] === null) { - return false; - } - if ($this->container['default_variable_category_name'] === null) { - return false; - } - if ($this->container['display_name'] === null) { - return false; - } - if ($this->container['enabled'] === null) { - return false; - } - if ($this->container['get_it_url'] === null) { - return false; - } - if ($this->container['id'] === null) { - return false; - } - if ($this->container['image'] === null) { - return false; - } - if ($this->container['image_html'] === null) { - return false; - } - if ($this->container['linked_display_name_html'] === null) { - return false; - } - if ($this->container['long_description'] === null) { - return false; - } - if ($this->container['name'] === null) { - return false; - } - if ($this->container['short_description'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } @@ -944,7 +904,7 @@ public function getImage() /** * Sets image * - * @param string $image Ex: https://quantimodo.quantimo.do/ionic/Modo/www/img/logos/quantimodo-logo-qm-rainbow-200-200.png + * @param string $image Ex: https://web.quantimo.do/img/logos/quantimodo-logo-qm-rainbow-200-200.png * * @return $this */ @@ -968,7 +928,7 @@ public function getImageHtml() /** * Sets image_html * - * @param string $image_html Ex: \"QuantiModo\" + * @param string $image_html Ex: \"QuantiModo\" * * @return $this */ diff --git a/lib/Model/DeviceToken.php b/lib/Model/DeviceToken.php index ee0a309..2b15248 100644 --- a/lib/Model/DeviceToken.php +++ b/lib/Model/DeviceToken.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -218,14 +218,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['platform'] === null) { - return false; - } - if ($this->container['device_token'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/Explanation.php b/lib/Model/Explanation.php index f22e462..9486508 100644 --- a/lib/Model/Explanation.php +++ b/lib/Model/Explanation.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -245,23 +245,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['description'] === null) { - return false; - } - if ($this->container['image'] === null) { - return false; - } - if ($this->container['ion_icon'] === null) { - return false; - } - if ($this->container['start_tracking'] === null) { - return false; - } - if ($this->container['title'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/ExplanationStartTracking.php b/lib/Model/ExplanationStartTracking.php index afe11d8..cf4dbc0 100644 --- a/lib/Model/ExplanationStartTracking.php +++ b/lib/Model/ExplanationStartTracking.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -221,17 +221,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['button'] === null) { - return false; - } - if ($this->container['description'] === null) { - return false; - } - if ($this->container['title'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/FeedResponse.php b/lib/Model/FeedResponse.php index e0365eb..31d97f3 100644 --- a/lib/Model/FeedResponse.php +++ b/lib/Model/FeedResponse.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -221,17 +221,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['cards'] === null) { - return false; - } - if ($this->container['description'] === null) { - return false; - } - if ($this->container['summary'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/Friend.php b/lib/Model/Friend.php index a4b6db1..8d4be4f 100644 --- a/lib/Model/Friend.php +++ b/lib/Model/Friend.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -254,26 +254,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['id'] === null) { - return false; - } - if ($this->container['initiator_user_id'] === null) { - return false; - } - if ($this->container['friend_user_id'] === null) { - return false; - } - if ($this->container['is_confirmed'] === null) { - return false; - } - if ($this->container['is_limited'] === null) { - return false; - } - if ($this->container['date_created'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/FriendsResponse.php b/lib/Model/FriendsResponse.php index a35f549..7de3f9f 100644 --- a/lib/Model/FriendsResponse.php +++ b/lib/Model/FriendsResponse.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -239,11 +239,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['friends'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/GetConnectorsResponse.php b/lib/Model/GetConnectorsResponse.php index 0773296..a3f8739 100644 --- a/lib/Model/GetConnectorsResponse.php +++ b/lib/Model/GetConnectorsResponse.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -218,14 +218,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['description'] === null) { - return false; - } - if ($this->container['summary'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/GetCorrelationsDataResponse.php b/lib/Model/GetCorrelationsDataResponse.php index 753cb7d..c9428f9 100644 --- a/lib/Model/GetCorrelationsDataResponse.php +++ b/lib/Model/GetCorrelationsDataResponse.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -224,14 +224,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['correlations'] === null) { - return false; - } - if ($this->container['explanation'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/GetCorrelationsResponse.php b/lib/Model/GetCorrelationsResponse.php index b7ce7fc..cec2d59 100644 --- a/lib/Model/GetCorrelationsResponse.php +++ b/lib/Model/GetCorrelationsResponse.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -224,14 +224,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['description'] === null) { - return false; - } - if ($this->container['summary'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/GetSharesResponse.php b/lib/Model/GetSharesResponse.php index fa55f38..fe2efd3 100644 --- a/lib/Model/GetSharesResponse.php +++ b/lib/Model/GetSharesResponse.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -218,14 +218,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['description'] === null) { - return false; - } - if ($this->container['summary'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/GetStudiesResponse.php b/lib/Model/GetStudiesResponse.php index 65e9d25..9bb2a96 100644 --- a/lib/Model/GetStudiesResponse.php +++ b/lib/Model/GetStudiesResponse.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -254,14 +254,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['description'] === null) { - return false; - } - if ($this->container['summary'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/GetTrackingReminderNotificationsResponse.php b/lib/Model/GetTrackingReminderNotificationsResponse.php index 2b9deea..8d7f54f 100644 --- a/lib/Model/GetTrackingReminderNotificationsResponse.php +++ b/lib/Model/GetTrackingReminderNotificationsResponse.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -218,14 +218,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['description'] === null) { - return false; - } - if ($this->container['summary'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/Group.php b/lib/Model/Group.php index 3229dad..9723ef3 100644 --- a/lib/Model/Group.php +++ b/lib/Model/Group.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -281,35 +281,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['id'] === null) { - return false; - } - if ($this->container['creator_id'] === null) { - return false; - } - if ($this->container['name'] === null) { - return false; - } - if ($this->container['slug'] === null) { - return false; - } - if ($this->container['description'] === null) { - return false; - } - if ($this->container['status'] === null) { - return false; - } - if ($this->container['parent_id'] === null) { - return false; - } - if ($this->container['enable_forum'] === null) { - return false; - } - if ($this->container['date_created'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/GroupsMember.php b/lib/Model/GroupsMember.php index 0e6d735..56cd92d 100644 --- a/lib/Model/GroupsMember.php +++ b/lib/Model/GroupsMember.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -308,44 +308,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['id'] === null) { - return false; - } - if ($this->container['group_id'] === null) { - return false; - } - if ($this->container['user_id'] === null) { - return false; - } - if ($this->container['inviter_id'] === null) { - return false; - } - if ($this->container['is_admin'] === null) { - return false; - } - if ($this->container['is_mod'] === null) { - return false; - } - if ($this->container['user_title'] === null) { - return false; - } - if ($this->container['date_modified'] === null) { - return false; - } - if ($this->container['comments'] === null) { - return false; - } - if ($this->container['is_confirmed'] === null) { - return false; - } - if ($this->container['is_banned'] === null) { - return false; - } - if ($this->container['invite_sent'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/GroupsMembersResponse.php b/lib/Model/GroupsMembersResponse.php index 427e787..b43aa8f 100644 --- a/lib/Model/GroupsMembersResponse.php +++ b/lib/Model/GroupsMembersResponse.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -239,11 +239,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['groups_members'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/GroupsResponse.php b/lib/Model/GroupsResponse.php index cb8f730..75bcb41 100644 --- a/lib/Model/GroupsResponse.php +++ b/lib/Model/GroupsResponse.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -239,11 +239,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['groups'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/Image.php b/lib/Model/Image.php index 1a14943..1c57836 100644 --- a/lib/Model/Image.php +++ b/lib/Model/Image.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -221,17 +221,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['height'] === null) { - return false; - } - if ($this->container['image_url'] === null) { - return false; - } - if ($this->container['width'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/InputField.php b/lib/Model/InputField.php index 9df58bb..c9e26ca 100644 --- a/lib/Model/InputField.php +++ b/lib/Model/InputField.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -361,7 +361,7 @@ public function listInvalidProperties() $invalidProperties[] = "'type' can't be null"; } $allowedValues = $this->getTypeAllowableValues(); - if (!in_array($this->container['type'], $allowedValues)) { + if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { $invalidProperties[] = sprintf( "invalid value for 'type', must be one of '%s'", implode("', '", $allowedValues) @@ -379,18 +379,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['display_name'] === null) { - return false; - } - if ($this->container['type'] === null) { - return false; - } - $allowedValues = $this->getTypeAllowableValues(); - if (!in_array($this->container['type'], $allowedValues)) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } @@ -894,7 +883,7 @@ public function getType() public function setType($type) { $allowedValues = $this->getTypeAllowableValues(); - if (!in_array($type, $allowedValues)) { + if (!in_array($type, $allowedValues, true)) { throw new \InvalidArgumentException( sprintf( "Invalid value for 'type', must be one of '%s'", diff --git a/lib/Model/JsonErrorResponse.php b/lib/Model/JsonErrorResponse.php index 545dc48..559d4ca 100644 --- a/lib/Model/JsonErrorResponse.php +++ b/lib/Model/JsonErrorResponse.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -221,11 +221,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['status'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/Measurement.php b/lib/Model/Measurement.php index 65638ed..584dca3 100644 --- a/lib/Model/Measurement.php +++ b/lib/Model/Measurement.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -541,7 +541,7 @@ public function listInvalidProperties() $invalidProperties[] = "'value' can't be null"; } $allowedValues = $this->getVariableCategoryNameAllowableValues(); - if (!in_array($this->container['variable_category_name'], $allowedValues)) { + if (!is_null($this->container['variable_category_name']) && !in_array($this->container['variable_category_name'], $allowedValues, true)) { $invalidProperties[] = sprintf( "invalid value for 'variable_category_name', must be one of '%s'", implode("', '", $allowedValues) @@ -562,27 +562,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['source_name'] === null) { - return false; - } - if ($this->container['start_time_string'] === null) { - return false; - } - if ($this->container['unit_abbreviated_name'] === null) { - return false; - } - if ($this->container['value'] === null) { - return false; - } - $allowedValues = $this->getVariableCategoryNameAllowableValues(); - if (!in_array($this->container['variable_category_name'], $allowedValues)) { - return false; - } - if ($this->container['variable_name'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } @@ -1031,7 +1011,7 @@ public function getPngUrl() /** * Sets png_url * - * @param string $png_url Ex: https://quantimodo.quantimo.do/ionic/Modo/www/img/variable_categories/treatments.png + * @param string $png_url Ex: https://web.quantimo.do/img/variable_categories/treatments.png * * @return $this */ @@ -1175,7 +1155,7 @@ public function getSvgUrl() /** * Sets svg_url * - * @param string $svg_url Ex: https://quantimodo.quantimo.do/ionic/Modo/www/img/variable_categories/treatments.svg + * @param string $svg_url Ex: https://web.quantimo.do/img/variable_categories/treatments.svg * * @return $this */ @@ -1638,7 +1618,7 @@ public function getVariableCategoryName() public function setVariableCategoryName($variable_category_name) { $allowedValues = $this->getVariableCategoryNameAllowableValues(); - if (!is_null($variable_category_name) && !in_array($variable_category_name, $allowedValues)) { + if (!is_null($variable_category_name) && !in_array($variable_category_name, $allowedValues, true)) { throw new \InvalidArgumentException( sprintf( "Invalid value for 'variable_category_name', must be one of '%s'", diff --git a/lib/Model/MeasurementDelete.php b/lib/Model/MeasurementDelete.php index 6d414c4..ebff400 100644 --- a/lib/Model/MeasurementDelete.php +++ b/lib/Model/MeasurementDelete.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -221,11 +221,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['client_id'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/MeasurementItem.php b/lib/Model/MeasurementItem.php index 00de4e7..d8488e5 100644 --- a/lib/Model/MeasurementItem.php +++ b/lib/Model/MeasurementItem.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -218,14 +218,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['timestamp'] === null) { - return false; - } - if ($this->container['value'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/MeasurementSet.php b/lib/Model/MeasurementSet.php index c2815f1..7d20a3e 100644 --- a/lib/Model/MeasurementSet.php +++ b/lib/Model/MeasurementSet.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -298,7 +298,7 @@ public function listInvalidProperties() $invalidProperties = []; $allowedValues = $this->getCombinationOperationAllowableValues(); - if (!in_array($this->container['combination_operation'], $allowedValues)) { + if (!is_null($this->container['combination_operation']) && !in_array($this->container['combination_operation'], $allowedValues, true)) { $invalidProperties[] = sprintf( "invalid value for 'combination_operation', must be one of '%s'", implode("', '", $allowedValues) @@ -315,7 +315,7 @@ public function listInvalidProperties() $invalidProperties[] = "'unit_abbreviated_name' can't be null"; } $allowedValues = $this->getVariableCategoryNameAllowableValues(); - if (!in_array($this->container['variable_category_name'], $allowedValues)) { + if (!is_null($this->container['variable_category_name']) && !in_array($this->container['variable_category_name'], $allowedValues, true)) { $invalidProperties[] = sprintf( "invalid value for 'variable_category_name', must be one of '%s'", implode("', '", $allowedValues) @@ -336,28 +336,7 @@ public function listInvalidProperties() */ public function valid() { - - $allowedValues = $this->getCombinationOperationAllowableValues(); - if (!in_array($this->container['combination_operation'], $allowedValues)) { - return false; - } - if ($this->container['measurement_items'] === null) { - return false; - } - if ($this->container['source_name'] === null) { - return false; - } - if ($this->container['unit_abbreviated_name'] === null) { - return false; - } - $allowedValues = $this->getVariableCategoryNameAllowableValues(); - if (!in_array($this->container['variable_category_name'], $allowedValues)) { - return false; - } - if ($this->container['variable_name'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } @@ -381,7 +360,7 @@ public function getCombinationOperation() public function setCombinationOperation($combination_operation) { $allowedValues = $this->getCombinationOperationAllowableValues(); - if (!is_null($combination_operation) && !in_array($combination_operation, $allowedValues)) { + if (!is_null($combination_operation) && !in_array($combination_operation, $allowedValues, true)) { throw new \InvalidArgumentException( sprintf( "Invalid value for 'combination_operation', must be one of '%s'", @@ -486,7 +465,7 @@ public function getVariableCategoryName() public function setVariableCategoryName($variable_category_name) { $allowedValues = $this->getVariableCategoryNameAllowableValues(); - if (!is_null($variable_category_name) && !in_array($variable_category_name, $allowedValues)) { + if (!is_null($variable_category_name) && !in_array($variable_category_name, $allowedValues, true)) { throw new \InvalidArgumentException( sprintf( "Invalid value for 'variable_category_name', must be one of '%s'", diff --git a/lib/Model/MeasurementUpdate.php b/lib/Model/MeasurementUpdate.php index 9e50ffb..71494d6 100644 --- a/lib/Model/MeasurementUpdate.php +++ b/lib/Model/MeasurementUpdate.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -221,11 +221,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['id'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/MessagesMessage.php b/lib/Model/MessagesMessage.php index 7c7480a..af8168f 100644 --- a/lib/Model/MessagesMessage.php +++ b/lib/Model/MessagesMessage.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -254,26 +254,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['id'] === null) { - return false; - } - if ($this->container['thread_id'] === null) { - return false; - } - if ($this->container['sender_id'] === null) { - return false; - } - if ($this->container['subject'] === null) { - return false; - } - if ($this->container['message'] === null) { - return false; - } - if ($this->container['date_sent'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/MessagesMessagesResponse.php b/lib/Model/MessagesMessagesResponse.php index cc88b9b..6028407 100644 --- a/lib/Model/MessagesMessagesResponse.php +++ b/lib/Model/MessagesMessagesResponse.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -239,11 +239,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['messages_messages'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/MessagesNotice.php b/lib/Model/MessagesNotice.php index dfa26a2..6bfb839 100644 --- a/lib/Model/MessagesNotice.php +++ b/lib/Model/MessagesNotice.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -245,23 +245,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['id'] === null) { - return false; - } - if ($this->container['subject'] === null) { - return false; - } - if ($this->container['message'] === null) { - return false; - } - if ($this->container['date_sent'] === null) { - return false; - } - if ($this->container['is_active'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/MessagesNoticesResponse.php b/lib/Model/MessagesNoticesResponse.php index 0e0e5c9..e4e4ff7 100644 --- a/lib/Model/MessagesNoticesResponse.php +++ b/lib/Model/MessagesNoticesResponse.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -239,11 +239,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['messages_notices'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/MessagesRecipient.php b/lib/Model/MessagesRecipient.php index 29d667e..f382363 100644 --- a/lib/Model/MessagesRecipient.php +++ b/lib/Model/MessagesRecipient.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -254,26 +254,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['id'] === null) { - return false; - } - if ($this->container['user_id'] === null) { - return false; - } - if ($this->container['thread_id'] === null) { - return false; - } - if ($this->container['unread_count'] === null) { - return false; - } - if ($this->container['sender_only'] === null) { - return false; - } - if ($this->container['is_deleted'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/MessagesRecipientsResponse.php b/lib/Model/MessagesRecipientsResponse.php index 7277999..a7e4202 100644 --- a/lib/Model/MessagesRecipientsResponse.php +++ b/lib/Model/MessagesRecipientsResponse.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -239,11 +239,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['messages_recipients'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/ModelInterface.php b/lib/Model/ModelInterface.php index 7c4c136..17e2368 100644 --- a/lib/Model/ModelInterface.php +++ b/lib/Model/ModelInterface.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** diff --git a/lib/Model/Notification.php b/lib/Model/Notification.php index 6e8771e..d122aec 100644 --- a/lib/Model/Notification.php +++ b/lib/Model/Notification.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -272,32 +272,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['id'] === null) { - return false; - } - if ($this->container['user_id'] === null) { - return false; - } - if ($this->container['item_id'] === null) { - return false; - } - if ($this->container['secondary_item_id'] === null) { - return false; - } - if ($this->container['component_name'] === null) { - return false; - } - if ($this->container['component_action'] === null) { - return false; - } - if ($this->container['date_notified'] === null) { - return false; - } - if ($this->container['is_new'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/NotificationsResponse.php b/lib/Model/NotificationsResponse.php index 4e5b6d5..ddd3b2c 100644 --- a/lib/Model/NotificationsResponse.php +++ b/lib/Model/NotificationsResponse.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -239,11 +239,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['notifications'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/Pair.php b/lib/Model/Pair.php index cd542ee..1f262bc 100644 --- a/lib/Model/Pair.php +++ b/lib/Model/Pair.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -275,29 +275,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['cause_measurement'] === null) { - return false; - } - if ($this->container['cause_measurement_value'] === null) { - return false; - } - if ($this->container['cause_variable_unit_abbreviated_name'] === null) { - return false; - } - if ($this->container['effect_measurement'] === null) { - return false; - } - if ($this->container['effect_measurement_value'] === null) { - return false; - } - if ($this->container['effect_variable_unit_abbreviated_name'] === null) { - return false; - } - if ($this->container['timestamp'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/ParticipantInstruction.php b/lib/Model/ParticipantInstruction.php index f8aaf68..d7c442f 100644 --- a/lib/Model/ParticipantInstruction.php +++ b/lib/Model/ParticipantInstruction.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -206,8 +206,7 @@ public function listInvalidProperties() */ public function valid() { - - return true; + return count($this->listInvalidProperties()) === 0; } @@ -224,7 +223,7 @@ public function getInstructionsForCauseVariable() /** * Sets instructions_for_cause_variable * - * @param string $instructions_for_cause_variable Ex: Obtain Fitbit and use it to record your Sleep Duration. Once you have a Fitbit account, connect your Fitbit account at QuantiModo to automatically import and analyze your data. + * @param string $instructions_for_cause_variable Ex: Obtain Fitbit and use it to record your Sleep Duration. Once you have a Fitbit account, connect your Fitbit account at QuantiModo to automatically import and analyze your data. * * @return $this */ @@ -248,7 +247,7 @@ public function getInstructionsForEffectVariable() /** * Sets instructions_for_effect_variable * - * @param string $instructions_for_effect_variable Ex: Obtain QuantiModo and use it to record your Overall Mood. Once you have a QuantiModo account, connect your QuantiModo account at QuantiModo to automatically import and analyze your data. + * @param string $instructions_for_effect_variable Ex: Obtain QuantiModo and use it to record your Overall Mood. Once you have a QuantiModo account, connect your QuantiModo account at QuantiModo to automatically import and analyze your data. * * @return $this */ diff --git a/lib/Model/PostMeasurementsDataResponse.php b/lib/Model/PostMeasurementsDataResponse.php index f563b4e..afa002c 100644 --- a/lib/Model/PostMeasurementsDataResponse.php +++ b/lib/Model/PostMeasurementsDataResponse.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -212,8 +212,7 @@ public function listInvalidProperties() */ public function valid() { - - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/PostMeasurementsResponse.php b/lib/Model/PostMeasurementsResponse.php index e346ac0..de867cc 100644 --- a/lib/Model/PostMeasurementsResponse.php +++ b/lib/Model/PostMeasurementsResponse.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -236,14 +236,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['status'] === null) { - return false; - } - if ($this->container['success'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/PostStudyCreateResponse.php b/lib/Model/PostStudyCreateResponse.php index 29efa73..7f5fb68 100644 --- a/lib/Model/PostStudyCreateResponse.php +++ b/lib/Model/PostStudyCreateResponse.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -224,8 +224,7 @@ public function listInvalidProperties() */ public function valid() { - - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/PostStudyPublishResponse.php b/lib/Model/PostStudyPublishResponse.php index d23b1ab..ab8035f 100644 --- a/lib/Model/PostStudyPublishResponse.php +++ b/lib/Model/PostStudyPublishResponse.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -218,8 +218,7 @@ public function listInvalidProperties() */ public function valid() { - - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/PostTrackingRemindersDataResponse.php b/lib/Model/PostTrackingRemindersDataResponse.php index f75bcdd..69c974d 100644 --- a/lib/Model/PostTrackingRemindersDataResponse.php +++ b/lib/Model/PostTrackingRemindersDataResponse.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -224,8 +224,7 @@ public function listInvalidProperties() */ public function valid() { - - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/PostTrackingRemindersResponse.php b/lib/Model/PostTrackingRemindersResponse.php index f0aa038..25aee21 100644 --- a/lib/Model/PostTrackingRemindersResponse.php +++ b/lib/Model/PostTrackingRemindersResponse.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -236,14 +236,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['status'] === null) { - return false; - } - if ($this->container['success'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/PostUserSettingsDataResponse.php b/lib/Model/PostUserSettingsDataResponse.php index 401da75..98b9f70 100644 --- a/lib/Model/PostUserSettingsDataResponse.php +++ b/lib/Model/PostUserSettingsDataResponse.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -212,8 +212,7 @@ public function listInvalidProperties() */ public function valid() { - - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/PostUserSettingsResponse.php b/lib/Model/PostUserSettingsResponse.php index 0d7161c..802dd08 100644 --- a/lib/Model/PostUserSettingsResponse.php +++ b/lib/Model/PostUserSettingsResponse.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -236,14 +236,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['status'] === null) { - return false; - } - if ($this->container['success'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/ShareInvitationBody.php b/lib/Model/ShareInvitationBody.php index eadeef5..aac0740 100644 --- a/lib/Model/ShareInvitationBody.php +++ b/lib/Model/ShareInvitationBody.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -227,11 +227,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['email_address'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/Study.php b/lib/Model/Study.php index e24de57..d844d19 100644 --- a/lib/Model/Study.php +++ b/lib/Model/Study.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -60,7 +60,7 @@ class Study implements ModelInterface, ArrayAccess protected static $swaggerTypes = [ 'type' => 'string', 'user_id' => 'string', - 'study_id' => 'string', + 'id' => 'string', 'cause_variable' => '\QuantiModo\Client\Model\Variable', 'cause_variable_name' => 'string', 'study_charts' => '\QuantiModo\Client\Model\StudyCharts', @@ -86,7 +86,7 @@ class Study implements ModelInterface, ArrayAccess protected static $swaggerFormats = [ 'type' => null, 'user_id' => null, - 'study_id' => null, + 'id' => null, 'cause_variable' => null, 'cause_variable_name' => null, 'study_charts' => null, @@ -133,7 +133,7 @@ public static function swaggerFormats() protected static $attributeMap = [ 'type' => 'type', 'user_id' => 'userId', - 'study_id' => 'studyId', + 'id' => 'id', 'cause_variable' => 'causeVariable', 'cause_variable_name' => 'causeVariableName', 'study_charts' => 'studyCharts', @@ -159,7 +159,7 @@ public static function swaggerFormats() protected static $setters = [ 'type' => 'setType', 'user_id' => 'setUserId', - 'study_id' => 'setStudyId', + 'id' => 'setId', 'cause_variable' => 'setCauseVariable', 'cause_variable_name' => 'setCauseVariableName', 'study_charts' => 'setStudyCharts', @@ -185,7 +185,7 @@ public static function swaggerFormats() protected static $getters = [ 'type' => 'getType', 'user_id' => 'getUserId', - 'study_id' => 'getStudyId', + 'id' => 'getId', 'cause_variable' => 'getCauseVariable', 'cause_variable_name' => 'getCauseVariableName', 'study_charts' => 'getStudyCharts', @@ -265,7 +265,7 @@ public function __construct(array $data = null) { $this->container['type'] = isset($data['type']) ? $data['type'] : null; $this->container['user_id'] = isset($data['user_id']) ? $data['user_id'] : null; - $this->container['study_id'] = isset($data['study_id']) ? $data['study_id'] : null; + $this->container['id'] = isset($data['id']) ? $data['id'] : null; $this->container['cause_variable'] = isset($data['cause_variable']) ? $data['cause_variable'] : null; $this->container['cause_variable_name'] = isset($data['cause_variable_name']) ? $data['cause_variable_name'] : null; $this->container['study_charts'] = isset($data['study_charts']) ? $data['study_charts'] : null; @@ -306,11 +306,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['type'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } @@ -363,25 +359,25 @@ public function setUserId($user_id) } /** - * Gets study_id + * Gets id * * @return string */ - public function getStudyId() + public function getId() { - return $this->container['study_id']; + return $this->container['id']; } /** - * Sets study_id + * Sets id * - * @param string $study_id ID of the cohort study which is necessary to allow participants to join + * @param string $id ID of the cohort study which is necessary to allow participants to join * * @return $this */ - public function setStudyId($study_id) + public function setId($id) { - $this->container['study_id'] = $study_id; + $this->container['id'] = $id; return $this; } diff --git a/lib/Model/StudyCharts.php b/lib/Model/StudyCharts.php index b8fecaa..0f7977c 100644 --- a/lib/Model/StudyCharts.php +++ b/lib/Model/StudyCharts.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -225,8 +225,7 @@ public function listInvalidProperties() */ public function valid() { - - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/StudyCreationBody.php b/lib/Model/StudyCreationBody.php index e7cbb06..b2e18e7 100644 --- a/lib/Model/StudyCreationBody.php +++ b/lib/Model/StudyCreationBody.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -234,7 +234,7 @@ public function listInvalidProperties() $invalidProperties[] = "'type' can't be null"; } $allowedValues = $this->getTypeAllowableValues(); - if (!in_array($this->container['type'], $allowedValues)) { + if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { $invalidProperties[] = sprintf( "invalid value for 'type', must be one of '%s'", implode("', '", $allowedValues) @@ -252,21 +252,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['cause_variable_name'] === null) { - return false; - } - if ($this->container['effect_variable_name'] === null) { - return false; - } - if ($this->container['type'] === null) { - return false; - } - $allowedValues = $this->getTypeAllowableValues(); - if (!in_array($this->container['type'], $allowedValues)) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } @@ -362,7 +348,7 @@ public function getType() public function setType($type) { $allowedValues = $this->getTypeAllowableValues(); - if (!in_array($type, $allowedValues)) { + if (!in_array($type, $allowedValues, true)) { throw new \InvalidArgumentException( sprintf( "Invalid value for 'type', must be one of '%s'", diff --git a/lib/Model/StudyHtml.php b/lib/Model/StudyHtml.php index eb3f8bd..b5c37a2 100644 --- a/lib/Model/StudyHtml.php +++ b/lib/Model/StudyHtml.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -284,14 +284,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['chart_html'] === null) { - return false; - } - if ($this->container['full_study_html'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/StudyImages.php b/lib/Model/StudyImages.php index 7489d94..db35fbb 100644 --- a/lib/Model/StudyImages.php +++ b/lib/Model/StudyImages.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -263,17 +263,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['gauge_image'] === null) { - return false; - } - if ($this->container['gauge_image_square'] === null) { - return false; - } - if ($this->container['image_url'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/StudyJoinResponse.php b/lib/Model/StudyJoinResponse.php index c4c2bc7..9231110 100644 --- a/lib/Model/StudyJoinResponse.php +++ b/lib/Model/StudyJoinResponse.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -236,8 +236,7 @@ public function listInvalidProperties() */ public function valid() { - - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/StudyLinks.php b/lib/Model/StudyLinks.php index 6c46a27..c02e7c6 100644 --- a/lib/Model/StudyLinks.php +++ b/lib/Model/StudyLinks.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -254,26 +254,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['study_link_email'] === null) { - return false; - } - if ($this->container['study_link_facebook'] === null) { - return false; - } - if ($this->container['study_link_google'] === null) { - return false; - } - if ($this->container['study_link_static'] === null) { - return false; - } - if ($this->container['study_link_dynamic'] === null) { - return false; - } - if ($this->container['study_link_twitter'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/StudySharing.php b/lib/Model/StudySharing.php index 007fe49..6c1e65a 100644 --- a/lib/Model/StudySharing.php +++ b/lib/Model/StudySharing.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -221,17 +221,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['share_user_measurements'] === null) { - return false; - } - if ($this->container['sharing_description'] === null) { - return false; - } - if ($this->container['sharing_title'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/StudyText.php b/lib/Model/StudyText.php index 2c1dbd2..97d7e92 100644 --- a/lib/Model/StudyText.php +++ b/lib/Model/StudyText.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -356,26 +356,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['study_abstract'] === null) { - return false; - } - if ($this->container['study_design'] === null) { - return false; - } - if ($this->container['study_limitations'] === null) { - return false; - } - if ($this->container['study_objective'] === null) { - return false; - } - if ($this->container['study_results'] === null) { - return false; - } - if ($this->container['study_title'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/StudyVotes.php b/lib/Model/StudyVotes.php index 0cd77a2..8d37900 100644 --- a/lib/Model/StudyVotes.php +++ b/lib/Model/StudyVotes.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -212,14 +212,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['average_vote'] === null) { - return false; - } - if ($this->container['user_vote'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/TrackingReminder.php b/lib/Model/TrackingReminder.php index 2695201..15a37aa 100644 --- a/lib/Model/TrackingReminder.php +++ b/lib/Model/TrackingReminder.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -790,7 +790,7 @@ public function listInvalidProperties() $invalidProperties = []; $allowedValues = $this->getCombinationOperationAllowableValues(); - if (!in_array($this->container['combination_operation'], $allowedValues)) { + if (!is_null($this->container['combination_operation']) && !in_array($this->container['combination_operation'], $allowedValues, true)) { $invalidProperties[] = sprintf( "invalid value for 'combination_operation', must be one of '%s'", implode("', '", $allowedValues) @@ -807,7 +807,7 @@ public function listInvalidProperties() $invalidProperties[] = "'variable_category_name' can't be null"; } $allowedValues = $this->getVariableCategoryNameAllowableValues(); - if (!in_array($this->container['variable_category_name'], $allowedValues)) { + if (!is_null($this->container['variable_category_name']) && !in_array($this->container['variable_category_name'], $allowedValues, true)) { $invalidProperties[] = sprintf( "invalid value for 'variable_category_name', must be one of '%s'", implode("', '", $allowedValues) @@ -828,28 +828,7 @@ public function listInvalidProperties() */ public function valid() { - - $allowedValues = $this->getCombinationOperationAllowableValues(); - if (!in_array($this->container['combination_operation'], $allowedValues)) { - return false; - } - if ($this->container['unit_abbreviated_name'] === null) { - return false; - } - if ($this->container['reminder_frequency'] === null) { - return false; - } - if ($this->container['variable_category_name'] === null) { - return false; - } - $allowedValues = $this->getVariableCategoryNameAllowableValues(); - if (!in_array($this->container['variable_category_name'], $allowedValues)) { - return false; - } - if ($this->container['variable_name'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } @@ -1185,7 +1164,7 @@ public function getCombinationOperation() public function setCombinationOperation($combination_operation) { $allowedValues = $this->getCombinationOperationAllowableValues(); - if (!is_null($combination_operation) && !in_array($combination_operation, $allowedValues)) { + if (!is_null($combination_operation) && !in_array($combination_operation, $allowedValues, true)) { throw new \InvalidArgumentException( sprintf( "Invalid value for 'combination_operation', must be one of '%s'", @@ -2003,7 +1982,7 @@ public function getPngUrl() /** * Sets png_url * - * @param string $png_url Ex: https://quantimodo.quantimo.do/ionic/Modo/www/img/variable_categories/symptoms.png + * @param string $png_url Ex: https://web.quantimo.do/img/variable_categories/symptoms.png * * @return $this */ @@ -2435,7 +2414,7 @@ public function getSvgUrl() /** * Sets svg_url * - * @param string $svg_url Ex: https://quantimodo.quantimo.do/ionic/Modo/www/img/variable_categories/symptoms.svg + * @param string $svg_url Ex: https://web.quantimo.do/img/variable_categories/symptoms.svg * * @return $this */ @@ -2922,7 +2901,7 @@ public function getVariableCategoryName() public function setVariableCategoryName($variable_category_name) { $allowedValues = $this->getVariableCategoryNameAllowableValues(); - if (!in_array($variable_category_name, $allowedValues)) { + if (!in_array($variable_category_name, $allowedValues, true)) { throw new \InvalidArgumentException( sprintf( "Invalid value for 'variable_category_name', must be one of '%s'", diff --git a/lib/Model/TrackingReminderDelete.php b/lib/Model/TrackingReminderDelete.php index 74f992f..ffed4cb 100644 --- a/lib/Model/TrackingReminderDelete.php +++ b/lib/Model/TrackingReminderDelete.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -203,11 +203,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['id'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/TrackingReminderNotification.php b/lib/Model/TrackingReminderNotification.php index b1a337c..28d5b21 100644 --- a/lib/Model/TrackingReminderNotification.php +++ b/lib/Model/TrackingReminderNotification.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -760,7 +760,7 @@ public function listInvalidProperties() $invalidProperties[] = "'available_units' can't be null"; } $allowedValues = $this->getCombinationOperationAllowableValues(); - if (!in_array($this->container['combination_operation'], $allowedValues)) { + if (!is_null($this->container['combination_operation']) && !in_array($this->container['combination_operation'], $allowedValues, true)) { $invalidProperties[] = sprintf( "invalid value for 'combination_operation', must be one of '%s'", implode("', '", $allowedValues) @@ -777,7 +777,7 @@ public function listInvalidProperties() $invalidProperties[] = "'track_all_actions' can't be null"; } $allowedValues = $this->getVariableCategoryNameAllowableValues(); - if (!in_array($this->container['variable_category_name'], $allowedValues)) { + if (!is_null($this->container['variable_category_name']) && !in_array($this->container['variable_category_name'], $allowedValues, true)) { $invalidProperties[] = sprintf( "invalid value for 'variable_category_name', must be one of '%s'", implode("', '", $allowedValues) @@ -795,31 +795,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['action_array'] === null) { - return false; - } - if ($this->container['available_units'] === null) { - return false; - } - $allowedValues = $this->getCombinationOperationAllowableValues(); - if (!in_array($this->container['combination_operation'], $allowedValues)) { - return false; - } - if ($this->container['filling_value'] === null) { - return false; - } - if ($this->container['id'] === null) { - return false; - } - if ($this->container['track_all_actions'] === null) { - return false; - } - $allowedValues = $this->getVariableCategoryNameAllowableValues(); - if (!in_array($this->container['variable_category_name'], $allowedValues)) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } @@ -1155,7 +1131,7 @@ public function getCombinationOperation() public function setCombinationOperation($combination_operation) { $allowedValues = $this->getCombinationOperationAllowableValues(); - if (!is_null($combination_operation) && !in_array($combination_operation, $allowedValues)) { + if (!is_null($combination_operation) && !in_array($combination_operation, $allowedValues, true)) { throw new \InvalidArgumentException( sprintf( "Invalid value for 'combination_operation', must be one of '%s'", @@ -1829,7 +1805,7 @@ public function getPngUrl() /** * Sets png_url * - * @param string $png_url Ex: https://quantimodo.quantimo.do/ionic/Modo/www/img/variable_categories/emotions.png + * @param string $png_url Ex: https://web.quantimo.do/img/variable_categories/emotions.png * * @return $this */ @@ -2141,7 +2117,7 @@ public function getSvgUrl() /** * Sets svg_url * - * @param string $svg_url Ex: https://quantimodo.quantimo.do/ionic/Modo/www/img/variable_categories/emotions.svg + * @param string $svg_url Ex: https://web.quantimo.do/img/variable_categories/emotions.svg * * @return $this */ @@ -2748,7 +2724,7 @@ public function getVariableCategoryName() public function setVariableCategoryName($variable_category_name) { $allowedValues = $this->getVariableCategoryNameAllowableValues(); - if (!is_null($variable_category_name) && !in_array($variable_category_name, $allowedValues)) { + if (!is_null($variable_category_name) && !in_array($variable_category_name, $allowedValues, true)) { throw new \InvalidArgumentException( sprintf( "Invalid value for 'variable_category_name', must be one of '%s'", diff --git a/lib/Model/TrackingReminderNotificationAction.php b/lib/Model/TrackingReminderNotificationAction.php index 94809c5..8b5a6cb 100644 --- a/lib/Model/TrackingReminderNotificationAction.php +++ b/lib/Model/TrackingReminderNotificationAction.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -242,20 +242,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['action'] === null) { - return false; - } - if ($this->container['callback'] === null) { - return false; - } - if ($this->container['modified_value'] === null) { - return false; - } - if ($this->container['title'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/TrackingReminderNotificationPost.php b/lib/Model/TrackingReminderNotificationPost.php index 149a47e..dec45e2 100644 --- a/lib/Model/TrackingReminderNotificationPost.php +++ b/lib/Model/TrackingReminderNotificationPost.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -222,7 +222,7 @@ public function listInvalidProperties() $invalidProperties[] = "'action' can't be null"; } $allowedValues = $this->getActionAllowableValues(); - if (!in_array($this->container['action'], $allowedValues)) { + if (!is_null($this->container['action']) && !in_array($this->container['action'], $allowedValues, true)) { $invalidProperties[] = sprintf( "invalid value for 'action', must be one of '%s'", implode("', '", $allowedValues) @@ -243,18 +243,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['action'] === null) { - return false; - } - $allowedValues = $this->getActionAllowableValues(); - if (!in_array($this->container['action'], $allowedValues)) { - return false; - } - if ($this->container['id'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } @@ -278,7 +267,7 @@ public function getAction() public function setAction($action) { $allowedValues = $this->getActionAllowableValues(); - if (!in_array($action, $allowedValues)) { + if (!in_array($action, $allowedValues, true)) { throw new \InvalidArgumentException( sprintf( "Invalid value for 'action', must be one of '%s'", diff --git a/lib/Model/TrackingReminderNotificationTrackAllAction.php b/lib/Model/TrackingReminderNotificationTrackAllAction.php index eddd21d..912b634 100644 --- a/lib/Model/TrackingReminderNotificationTrackAllAction.php +++ b/lib/Model/TrackingReminderNotificationTrackAllAction.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -230,20 +230,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['action'] === null) { - return false; - } - if ($this->container['callback'] === null) { - return false; - } - if ($this->container['modified_value'] === null) { - return false; - } - if ($this->container['title'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/Unit.php b/lib/Model/Unit.php index 3d44e3c..cd8b849 100644 --- a/lib/Model/Unit.php +++ b/lib/Model/Unit.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -309,7 +309,7 @@ public function listInvalidProperties() $invalidProperties[] = "'category' can't be null"; } $allowedValues = $this->getCategoryAllowableValues(); - if (!in_array($this->container['category'], $allowedValues)) { + if (!is_null($this->container['category']) && !in_array($this->container['category'], $allowedValues, true)) { $invalidProperties[] = sprintf( "invalid value for 'category', must be one of '%s'", implode("', '", $allowedValues) @@ -339,30 +339,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['abbreviated_name'] === null) { - return false; - } - if ($this->container['category'] === null) { - return false; - } - $allowedValues = $this->getCategoryAllowableValues(); - if (!in_array($this->container['category'], $allowedValues)) { - return false; - } - if ($this->container['conversion_steps'] === null) { - return false; - } - if ($this->container['maximum_value'] === null) { - return false; - } - if ($this->container['name'] === null) { - return false; - } - if ($this->container['unit_category'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } @@ -434,7 +411,7 @@ public function getCategory() public function setCategory($category) { $allowedValues = $this->getCategoryAllowableValues(); - if (!in_array($category, $allowedValues)) { + if (!in_array($category, $allowedValues, true)) { throw new \InvalidArgumentException( sprintf( "Invalid value for 'category', must be one of '%s'", diff --git a/lib/Model/UnitCategory.php b/lib/Model/UnitCategory.php index f128e4c..24add5d 100644 --- a/lib/Model/UnitCategory.php +++ b/lib/Model/UnitCategory.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -215,11 +215,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['name'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/User.php b/lib/Model/User.php index a031113..ae942c4 100644 --- a/lib/Model/User.php +++ b/lib/Model/User.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -70,6 +70,7 @@ class User implements ModelInterface, ArrayAccess 'client_user_id' => 'string', 'combine_notifications' => 'bool', 'created_at' => 'string', + 'description' => 'string', 'display_name' => 'string', 'earliest_reminder_time' => 'string', 'email' => 'string', @@ -126,6 +127,7 @@ class User implements ModelInterface, ArrayAccess 'client_user_id' => null, 'combine_notifications' => null, 'created_at' => null, + 'description' => null, 'display_name' => null, 'earliest_reminder_time' => null, 'email' => null, @@ -203,6 +205,7 @@ public static function swaggerFormats() 'client_user_id' => 'clientUserId', 'combine_notifications' => 'combineNotifications', 'created_at' => 'createdAt', + 'description' => 'description', 'display_name' => 'displayName', 'earliest_reminder_time' => 'earliestReminderTime', 'email' => 'email', @@ -259,6 +262,7 @@ public static function swaggerFormats() 'client_user_id' => 'setClientUserId', 'combine_notifications' => 'setCombineNotifications', 'created_at' => 'setCreatedAt', + 'description' => 'setDescription', 'display_name' => 'setDisplayName', 'earliest_reminder_time' => 'setEarliestReminderTime', 'email' => 'setEmail', @@ -315,6 +319,7 @@ public static function swaggerFormats() 'client_user_id' => 'getClientUserId', 'combine_notifications' => 'getCombineNotifications', 'created_at' => 'getCreatedAt', + 'description' => 'getDescription', 'display_name' => 'getDisplayName', 'earliest_reminder_time' => 'getEarliestReminderTime', 'email' => 'getEmail', @@ -425,6 +430,7 @@ public function __construct(array $data = null) $this->container['client_user_id'] = isset($data['client_user_id']) ? $data['client_user_id'] : null; $this->container['combine_notifications'] = isset($data['combine_notifications']) ? $data['combine_notifications'] : null; $this->container['created_at'] = isset($data['created_at']) ? $data['created_at'] : null; + $this->container['description'] = isset($data['description']) ? $data['description'] : null; $this->container['display_name'] = isset($data['display_name']) ? $data['display_name'] : null; $this->container['earliest_reminder_time'] = isset($data['earliest_reminder_time']) ? $data['earliest_reminder_time'] : null; $this->container['email'] = isset($data['email']) ? $data['email'] : null; @@ -500,26 +506,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['access_token'] === null) { - return false; - } - if ($this->container['administrator'] === null) { - return false; - } - if ($this->container['display_name'] === null) { - return false; - } - if ($this->container['email'] === null) { - return false; - } - if ($this->container['id'] === null) { - return false; - } - if ($this->container['login_name'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } @@ -824,7 +811,7 @@ public function getCreatedAt() /** * Sets created_at * - * @param string $created_at When the record was first created. Use UTC ISO 8601 YYYY-MM-DDThh:mm:ss datetime format + * @param string $created_at When the record was first created. Use UTC ISO 8601 YYYY-MM-DDThh:mm:ss datetime format * * @return $this */ @@ -835,6 +822,30 @@ public function setCreatedAt($created_at) return $this; } + /** + * Gets description + * + * @return string + */ + public function getDescription() + { + return $this->container['description']; + } + + /** + * Sets description + * + * @param string $description Your bio will be displayed on your published studies + * + * @return $this + */ + public function setDescription($description) + { + $this->container['description'] = $description; + + return $this; + } + /** * Gets display_name * diff --git a/lib/Model/UserBlog.php b/lib/Model/UserBlog.php index 169e20b..da8eda7 100644 --- a/lib/Model/UserBlog.php +++ b/lib/Model/UserBlog.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -227,17 +227,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['id'] === null) { - return false; - } - if ($this->container['user_id'] === null) { - return false; - } - if ($this->container['blog_id'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/UserBlogsResponse.php b/lib/Model/UserBlogsResponse.php index 658a4fa..fe3c837 100644 --- a/lib/Model/UserBlogsResponse.php +++ b/lib/Model/UserBlogsResponse.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -239,11 +239,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['user_blogs'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/UserTag.php b/lib/Model/UserTag.php index 92049e0..bc0ba66 100644 --- a/lib/Model/UserTag.php +++ b/lib/Model/UserTag.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -221,17 +221,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['conversion_factor'] === null) { - return false; - } - if ($this->container['tagged_variable_id'] === null) { - return false; - } - if ($this->container['tag_variable_id'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/UserVariableDelete.php b/lib/Model/UserVariableDelete.php index 100fffa..a1fa030 100644 --- a/lib/Model/UserVariableDelete.php +++ b/lib/Model/UserVariableDelete.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -203,11 +203,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['variable_id'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/Variable.php b/lib/Model/Variable.php index 754996e..0739770 100644 --- a/lib/Model/Variable.php +++ b/lib/Model/Variable.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -1185,7 +1185,7 @@ public function listInvalidProperties() $invalidProperties = []; $allowedValues = $this->getCombinationOperationAllowableValues(); - if (!in_array($this->container['combination_operation'], $allowedValues)) { + if (!is_null($this->container['combination_operation']) && !in_array($this->container['combination_operation'], $allowedValues, true)) { $invalidProperties[] = sprintf( "invalid value for 'combination_operation', must be one of '%s'", implode("', '", $allowedValues) @@ -1193,7 +1193,7 @@ public function listInvalidProperties() } $allowedValues = $this->getFillingTypeAllowableValues(); - if (!in_array($this->container['filling_type'], $allowedValues)) { + if (!is_null($this->container['filling_type']) && !in_array($this->container['filling_type'], $allowedValues, true)) { $invalidProperties[] = sprintf( "invalid value for 'filling_type', must be one of '%s'", implode("', '", $allowedValues) @@ -1210,7 +1210,7 @@ public function listInvalidProperties() $invalidProperties[] = "'user_id' can't be null"; } $allowedValues = $this->getVariableCategoryNameAllowableValues(); - if (!in_array($this->container['variable_category_name'], $allowedValues)) { + if (!is_null($this->container['variable_category_name']) && !in_array($this->container['variable_category_name'], $allowedValues, true)) { $invalidProperties[] = sprintf( "invalid value for 'variable_category_name', must be one of '%s'", implode("', '", $allowedValues) @@ -1231,32 +1231,7 @@ public function listInvalidProperties() */ public function valid() { - - $allowedValues = $this->getCombinationOperationAllowableValues(); - if (!in_array($this->container['combination_operation'], $allowedValues)) { - return false; - } - $allowedValues = $this->getFillingTypeAllowableValues(); - if (!in_array($this->container['filling_type'], $allowedValues)) { - return false; - } - if ($this->container['id'] === null) { - return false; - } - if ($this->container['name'] === null) { - return false; - } - if ($this->container['user_id'] === null) { - return false; - } - $allowedValues = $this->getVariableCategoryNameAllowableValues(); - if (!in_array($this->container['variable_category_name'], $allowedValues)) { - return false; - } - if ($this->container['variable_id'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } @@ -1856,7 +1831,7 @@ public function getCombinationOperation() public function setCombinationOperation($combination_operation) { $allowedValues = $this->getCombinationOperationAllowableValues(); - if (!is_null($combination_operation) && !in_array($combination_operation, $allowedValues)) { + if (!is_null($combination_operation) && !in_array($combination_operation, $allowedValues, true)) { throw new \InvalidArgumentException( sprintf( "Invalid value for 'combination_operation', must be one of '%s'", @@ -2273,7 +2248,7 @@ public function getFillingType() public function setFillingType($filling_type) { $allowedValues = $this->getFillingTypeAllowableValues(); - if (!is_null($filling_type) && !in_array($filling_type, $allowedValues)) { + if (!is_null($filling_type) && !in_array($filling_type, $allowedValues, true)) { throw new \InvalidArgumentException( sprintf( "Invalid value for 'filling_type', must be one of '%s'", @@ -2419,7 +2394,7 @@ public function getIngredientOfCommonTagVariables() /** * Sets ingredient_of_common_tag_variables * - * @param \QuantiModo\Client\Model\Variable[] $ingredient_of_common_tag_variables Commonly defined for all users. IngredientOf variable measurements will be included in analysis of the ingredient variable. For instance, a ingredient of the variable Lollypop could be Sugar. This way you only have to record Lollypop consumption and we can use this data to see how sugar might be affecting you. + * @param \QuantiModo\Client\Model\Variable[] $ingredient_of_common_tag_variables Commonly defined for all users. IngredientOf variable measurements will be included in analysis of the ingredient variable. For instance, a ingredient of the variable Lollipop could be Sugar. This way you only have to record Lollipop consumption and we can use this data to see how sugar might be affecting you. * * @return $this */ @@ -2443,7 +2418,7 @@ public function getIngredientCommonTagVariables() /** * Sets ingredient_common_tag_variables * - * @param \QuantiModo\Client\Model\Variable[] $ingredient_common_tag_variables Commonly defined for all users. IngredientOf variable measurements will be included in analysis of the ingredient variable. For instance, a ingredient of the variable Lollypop could be Sugar. This way you only have to record Lollypop consumption and we can use this data to see how sugar might be affecting you. + * @param \QuantiModo\Client\Model\Variable[] $ingredient_common_tag_variables Commonly defined for all users. IngredientOf variable measurements will be included in analysis of the ingredient variable. For instance, a ingredient of the variable Lollipop could be Sugar. This way you only have to record Lollipop consumption and we can use this data to see how sugar might be affecting you. * * @return $this */ @@ -2467,7 +2442,7 @@ public function getIngredientOfUserTagVariables() /** * Sets ingredient_of_user_tag_variables * - * @param \QuantiModo\Client\Model\Variable[] $ingredient_of_user_tag_variables User-Defined Variable Setting: IngredientOf variable measurements will be included in analysis of the ingredient variable. For instance, a ingredient of the variable Lollypop could be Sugar. This way you only have to record Lollypop consumption and we can use this data to see how sugar might be affecting you. + * @param \QuantiModo\Client\Model\Variable[] $ingredient_of_user_tag_variables User-Defined Variable Setting: IngredientOf variable measurements will be included in analysis of the ingredient variable. For instance, a ingredient of the variable Lollipop could be Sugar. This way you only have to record Lollipop consumption and we can use this data to see how sugar might be affecting you. * * @return $this */ @@ -2491,7 +2466,7 @@ public function getIngredientUserTagVariables() /** * Sets ingredient_user_tag_variables * - * @param \QuantiModo\Client\Model\Variable[] $ingredient_user_tag_variables User-Defined Variable Setting: IngredientOf variable measurements will be included in analysis of the ingredient variable. For instance, a ingredient of the variable Lollypop could be Sugar. This way you only have to record Lollypop consumption and we can use this data to see how sugar might be affecting you. + * @param \QuantiModo\Client\Model\Variable[] $ingredient_user_tag_variables User-Defined Variable Setting: IngredientOf variable measurements will be included in analysis of the ingredient variable. For instance, a ingredient of the variable Lollipop could be Sugar. This way you only have to record Lollipop consumption and we can use this data to see how sugar might be affecting you. * * @return $this */ @@ -3811,7 +3786,7 @@ public function getPngUrl() /** * Sets png_url * - * @param string $png_url Ex: https://quantimodo.quantimo.do/ionic/Modo/www/img/variable_categories/treatments.png + * @param string $png_url Ex: https://web.quantimo.do/img/variable_categories/treatments.png * * @return $this */ @@ -4171,7 +4146,7 @@ public function getSvgUrl() /** * Sets svg_url * - * @param string $svg_url Ex: https://quantimodo.quantimo.do/ionic/Modo/www/img/variable_categories/treatments.svg + * @param string $svg_url Ex: https://web.quantimo.do/img/variable_categories/treatments.svg * * @return $this */ @@ -4826,7 +4801,7 @@ public function getVariableCategoryName() public function setVariableCategoryName($variable_category_name) { $allowedValues = $this->getVariableCategoryNameAllowableValues(); - if (!is_null($variable_category_name) && !in_array($variable_category_name, $allowedValues)) { + if (!is_null($variable_category_name) && !in_array($variable_category_name, $allowedValues, true)) { throw new \InvalidArgumentException( sprintf( "Invalid value for 'variable_category_name', must be one of '%s'", diff --git a/lib/Model/VariableCategory.php b/lib/Model/VariableCategory.php index d505c16..93b7fa4 100644 --- a/lib/Model/VariableCategory.php +++ b/lib/Model/VariableCategory.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -418,7 +418,7 @@ public function listInvalidProperties() $invalidProperties[] = "'name' can't be null"; } $allowedValues = $this->getVariableCategoryNameAllowableValues(); - if (!in_array($this->container['variable_category_name'], $allowedValues)) { + if (!is_null($this->container['variable_category_name']) && !in_array($this->container['variable_category_name'], $allowedValues, true)) { $invalidProperties[] = sprintf( "invalid value for 'variable_category_name', must be one of '%s'", implode("', '", $allowedValues) @@ -436,15 +436,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['name'] === null) { - return false; - } - $allowedValues = $this->getVariableCategoryNameAllowableValues(); - if (!in_array($this->container['variable_category_name'], $allowedValues)) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } @@ -965,7 +957,7 @@ public function getPngUrl() /** * Sets png_url * - * @param string $png_url Ex: https://quantimodo.quantimo.do/ionic/Modo/www/img/variable_categories/emotions.png + * @param string $png_url Ex: https://web.quantimo.do/img/variable_categories/emotions.png * * @return $this */ @@ -1037,7 +1029,7 @@ public function getSvgUrl() /** * Sets svg_url * - * @param string $svg_url Ex: https://quantimodo.quantimo.do/ionic/Modo/www/img/variable_categories/emotions.svg + * @param string $svg_url Ex: https://web.quantimo.do/img/variable_categories/emotions.svg * * @return $this */ @@ -1116,7 +1108,7 @@ public function getVariableCategoryName() public function setVariableCategoryName($variable_category_name) { $allowedValues = $this->getVariableCategoryNameAllowableValues(); - if (!is_null($variable_category_name) && !in_array($variable_category_name, $allowedValues)) { + if (!is_null($variable_category_name) && !in_array($variable_category_name, $allowedValues, true)) { throw new \InvalidArgumentException( sprintf( "Invalid value for 'variable_category_name', must be one of '%s'", diff --git a/lib/Model/VariableCharts.php b/lib/Model/VariableCharts.php index 93a198f..70dfab6 100644 --- a/lib/Model/VariableCharts.php +++ b/lib/Model/VariableCharts.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -231,8 +231,7 @@ public function listInvalidProperties() */ public function valid() { - - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/Vote.php b/lib/Model/Vote.php index e178f38..87d9b25 100644 --- a/lib/Model/Vote.php +++ b/lib/Model/Vote.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -285,7 +285,7 @@ public function listInvalidProperties() $invalidProperties[] = "'value' can't be null"; } $allowedValues = $this->getValueAllowableValues(); - if (!in_array($this->container['value'], $allowedValues)) { + if (!is_null($this->container['value']) && !in_array($this->container['value'], $allowedValues, true)) { $invalidProperties[] = sprintf( "invalid value for 'value', must be one of '%s'", implode("', '", $allowedValues) @@ -293,7 +293,7 @@ public function listInvalidProperties() } $allowedValues = $this->getTypeAllowableValues(); - if (!in_array($this->container['type'], $allowedValues)) { + if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { $invalidProperties[] = sprintf( "invalid value for 'type', must be one of '%s'", implode("', '", $allowedValues) @@ -311,31 +311,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['cause_variable_id'] === null) { - return false; - } - if ($this->container['client_id'] === null) { - return false; - } - if ($this->container['effect_variable_id'] === null) { - return false; - } - if ($this->container['user_id'] === null) { - return false; - } - if ($this->container['value'] === null) { - return false; - } - $allowedValues = $this->getValueAllowableValues(); - if (!in_array($this->container['value'], $allowedValues)) { - return false; - } - $allowedValues = $this->getTypeAllowableValues(); - if (!in_array($this->container['type'], $allowedValues)) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } @@ -527,7 +503,7 @@ public function getValue() public function setValue($value) { $allowedValues = $this->getValueAllowableValues(); - if (!in_array($value, $allowedValues)) { + if (!in_array($value, $allowedValues, true)) { throw new \InvalidArgumentException( sprintf( "Invalid value for 'value', must be one of '%s'", @@ -560,7 +536,7 @@ public function getType() public function setType($type) { $allowedValues = $this->getTypeAllowableValues(); - if (!is_null($type) && !in_array($type, $allowedValues)) { + if (!is_null($type) && !in_array($type, $allowedValues, true)) { throw new \InvalidArgumentException( sprintf( "Invalid value for 'type', must be one of '%s'", diff --git a/lib/Model/VoteDelete.php b/lib/Model/VoteDelete.php index 145782e..cf92e1e 100644 --- a/lib/Model/VoteDelete.php +++ b/lib/Model/VoteDelete.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -212,14 +212,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['cause'] === null) { - return false; - } - if ($this->container['effect'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/XprofileDataResponse.php b/lib/Model/XprofileDataResponse.php index 8c17eaf..ea9d942 100644 --- a/lib/Model/XprofileDataResponse.php +++ b/lib/Model/XprofileDataResponse.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -239,11 +239,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['xprofile_data'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/XprofileDatum.php b/lib/Model/XprofileDatum.php index c979d24..1ea783f 100644 --- a/lib/Model/XprofileDatum.php +++ b/lib/Model/XprofileDatum.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -245,23 +245,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['id'] === null) { - return false; - } - if ($this->container['field_id'] === null) { - return false; - } - if ($this->container['user_id'] === null) { - return false; - } - if ($this->container['value'] === null) { - return false; - } - if ($this->container['last_updated'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/XprofileField.php b/lib/Model/XprofileField.php index 43b4f2d..6bd3a2b 100644 --- a/lib/Model/XprofileField.php +++ b/lib/Model/XprofileField.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -308,44 +308,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['id'] === null) { - return false; - } - if ($this->container['group_id'] === null) { - return false; - } - if ($this->container['parent_id'] === null) { - return false; - } - if ($this->container['type'] === null) { - return false; - } - if ($this->container['name'] === null) { - return false; - } - if ($this->container['description'] === null) { - return false; - } - if ($this->container['is_required'] === null) { - return false; - } - if ($this->container['is_default_option'] === null) { - return false; - } - if ($this->container['field_order'] === null) { - return false; - } - if ($this->container['option_order'] === null) { - return false; - } - if ($this->container['order_by'] === null) { - return false; - } - if ($this->container['can_delete'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/XprofileFieldsResponse.php b/lib/Model/XprofileFieldsResponse.php index a16d52b..8a272b8 100644 --- a/lib/Model/XprofileFieldsResponse.php +++ b/lib/Model/XprofileFieldsResponse.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -239,11 +239,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['xprofile_fields'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/XprofileGroup.php b/lib/Model/XprofileGroup.php index b17afd2..6494b21 100644 --- a/lib/Model/XprofileGroup.php +++ b/lib/Model/XprofileGroup.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -245,23 +245,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['id'] === null) { - return false; - } - if ($this->container['name'] === null) { - return false; - } - if ($this->container['description'] === null) { - return false; - } - if ($this->container['group_order'] === null) { - return false; - } - if ($this->container['can_delete'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/Model/XprofileGroupsResponse.php b/lib/Model/XprofileGroupsResponse.php index 9301d41..fb440c5 100644 --- a/lib/Model/XprofileGroupsResponse.php +++ b/lib/Model/XprofileGroupsResponse.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -239,11 +239,7 @@ public function listInvalidProperties() */ public function valid() { - - if ($this->container['xprofile_groups'] === null) { - return false; - } - return true; + return count($this->listInvalidProperties()) === 0; } diff --git a/lib/ObjectSerializer.php b/lib/ObjectSerializer.php index 3187804..9aadcb4 100644 --- a/lib/ObjectSerializer.php +++ b/lib/ObjectSerializer.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -68,7 +68,7 @@ public static function sanitizeForSerialization($data, $type = null, $format = n if ($value !== null && !in_array($swaggerType, ['DateTime', 'bool', 'boolean', 'byte', 'double', 'float', 'int', 'integer', 'mixed', 'number', 'object', 'string', 'void'], true) && method_exists($swaggerType, 'getAllowableEnumValues') - && !in_array($value, $swaggerType::getAllowableEnumValues())) { + && !in_array($value, $swaggerType::getAllowableEnumValues(), true)) { $imploded = implode("', '", $swaggerType::getAllowableEnumValues()); throw new \InvalidArgumentException("Invalid value for enum '$swaggerType', must be one of: '$imploded'"); } @@ -271,7 +271,7 @@ public static function deserialize($data, $class, $httpHeaders = null) // determine file name if (array_key_exists('Content-Disposition', $httpHeaders) && preg_match('/inline; filename=[\'"]?([^\'"\s]+)[\'"]?$/i', $httpHeaders['Content-Disposition'], $match)) { - $filename = Configuration::getDefaultConfiguration()->getTempFolderPath() . self::sanitizeFilename($match[1]); + $filename = Configuration::getDefaultConfiguration()->getTempFolderPath() . DIRECTORY_SEPARATOR . self::sanitizeFilename($match[1]); } else { $filename = tempnam(Configuration::getDefaultConfiguration()->getTempFolderPath(), ''); } @@ -284,7 +284,7 @@ public static function deserialize($data, $class, $httpHeaders = null) return new \SplFileObject($filename, 'r'); } elseif (method_exists($class, 'getAllowableEnumValues')) { - if (!in_array($data, $class::getAllowableEnumValues())) { + if (!in_array($data, $class::getAllowableEnumValues(), true)) { $imploded = implode("', '", $class::getAllowableEnumValues()); throw new \InvalidArgumentException("Invalid value for enum '$class', must be one of: '$imploded'"); } diff --git a/test/Api/ActivitiesApiTest.php b/test/Api/ActivitiesApiTest.php index cb57b86..fe1aa96 100644 --- a/test/Api/ActivitiesApiTest.php +++ b/test/Api/ActivitiesApiTest.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** diff --git a/test/Api/AnalyticsApiTest.php b/test/Api/AnalyticsApiTest.php index ff6eb61..583d48d 100644 --- a/test/Api/AnalyticsApiTest.php +++ b/test/Api/AnalyticsApiTest.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** diff --git a/test/Api/AppSettingsApiTest.php b/test/Api/AppSettingsApiTest.php index 1d25880..9296445 100644 --- a/test/Api/AppSettingsApiTest.php +++ b/test/Api/AppSettingsApiTest.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** diff --git a/test/Api/AuthenticationApiTest.php b/test/Api/AuthenticationApiTest.php index b98e940..0be7c7b 100644 --- a/test/Api/AuthenticationApiTest.php +++ b/test/Api/AuthenticationApiTest.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** diff --git a/test/Api/ConnectorsApiTest.php b/test/Api/ConnectorsApiTest.php index 02d6df3..c7bffe9 100644 --- a/test/Api/ConnectorsApiTest.php +++ b/test/Api/ConnectorsApiTest.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** diff --git a/test/Api/FeedApiTest.php b/test/Api/FeedApiTest.php index 083c02a..28af196 100644 --- a/test/Api/FeedApiTest.php +++ b/test/Api/FeedApiTest.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** diff --git a/test/Api/FriendsApiTest.php b/test/Api/FriendsApiTest.php index 0996d73..c16886d 100644 --- a/test/Api/FriendsApiTest.php +++ b/test/Api/FriendsApiTest.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** diff --git a/test/Api/GroupsApiTest.php b/test/Api/GroupsApiTest.php index d708a98..b1af546 100644 --- a/test/Api/GroupsApiTest.php +++ b/test/Api/GroupsApiTest.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** diff --git a/test/Api/MeasurementsApiTest.php b/test/Api/MeasurementsApiTest.php index 06c6a01..0c37cc5 100644 --- a/test/Api/MeasurementsApiTest.php +++ b/test/Api/MeasurementsApiTest.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** diff --git a/test/Api/MessagesApiTest.php b/test/Api/MessagesApiTest.php index 7791847..f188af2 100644 --- a/test/Api/MessagesApiTest.php +++ b/test/Api/MessagesApiTest.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** diff --git a/test/Api/NotificationsApiTest.php b/test/Api/NotificationsApiTest.php index 4d47651..57ee167 100644 --- a/test/Api/NotificationsApiTest.php +++ b/test/Api/NotificationsApiTest.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** diff --git a/test/Api/RemindersApiTest.php b/test/Api/RemindersApiTest.php index ce1c243..eb4b210 100644 --- a/test/Api/RemindersApiTest.php +++ b/test/Api/RemindersApiTest.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** diff --git a/test/Api/SharesApiTest.php b/test/Api/SharesApiTest.php index 1d5714b..bcf4574 100644 --- a/test/Api/SharesApiTest.php +++ b/test/Api/SharesApiTest.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** diff --git a/test/Api/StudiesApiTest.php b/test/Api/StudiesApiTest.php index cb95bb0..da9b6df 100644 --- a/test/Api/StudiesApiTest.php +++ b/test/Api/StudiesApiTest.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** diff --git a/test/Api/UnitsApiTest.php b/test/Api/UnitsApiTest.php index c7cc6d7..55f5d96 100644 --- a/test/Api/UnitsApiTest.php +++ b/test/Api/UnitsApiTest.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** diff --git a/test/Api/UserApiTest.php b/test/Api/UserApiTest.php index 5930548..29505d5 100644 --- a/test/Api/UserApiTest.php +++ b/test/Api/UserApiTest.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** diff --git a/test/Api/VariablesApiTest.php b/test/Api/VariablesApiTest.php index 1a7ecbd..85ff301 100644 --- a/test/Api/VariablesApiTest.php +++ b/test/Api/VariablesApiTest.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** diff --git a/test/Api/XprofileApiTest.php b/test/Api/XprofileApiTest.php index 143a60f..1392468 100644 --- a/test/Api/XprofileApiTest.php +++ b/test/Api/XprofileApiTest.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** diff --git a/test/Model/ActivitiesResponseTest.php b/test/Model/ActivitiesResponseTest.php index 3f306ba..7fcd3cb 100644 --- a/test/Model/ActivitiesResponseTest.php +++ b/test/Model/ActivitiesResponseTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * ActivitiesResponseTest Class Doc Comment * - * @category Class */ -// * @description ActivitiesResponse -/** + * @category Class + * @description ActivitiesResponse * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/ActivityTest.php b/test/Model/ActivityTest.php index 23e839b..c2d4586 100644 --- a/test/Model/ActivityTest.php +++ b/test/Model/ActivityTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * ActivityTest Class Doc Comment * - * @category Class */ -// * @description Activity -/** + * @category Class + * @description Activity * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/AppSettingsResponseTest.php b/test/Model/AppSettingsResponseTest.php index 115b442..f9ffafe 100644 --- a/test/Model/AppSettingsResponseTest.php +++ b/test/Model/AppSettingsResponseTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * AppSettingsResponseTest Class Doc Comment * - * @category Class */ -// * @description AppSettingsResponse -/** + * @category Class + * @description AppSettingsResponse * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/AppSettingsTest.php b/test/Model/AppSettingsTest.php index 433d7da..927984f 100644 --- a/test/Model/AppSettingsTest.php +++ b/test/Model/AppSettingsTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * AppSettingsTest Class Doc Comment * - * @category Class */ -// * @description AppSettings -/** + * @category Class + * @description AppSettings * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/AuthorizedClientsTest.php b/test/Model/AuthorizedClientsTest.php index 4b277ca..a6fcd76 100644 --- a/test/Model/AuthorizedClientsTest.php +++ b/test/Model/AuthorizedClientsTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * AuthorizedClientsTest Class Doc Comment * - * @category Class */ -// * @description AuthorizedClients -/** + * @category Class + * @description AuthorizedClients * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/ButtonTest.php b/test/Model/ButtonTest.php index 4f4287f..5efb97b 100644 --- a/test/Model/ButtonTest.php +++ b/test/Model/ButtonTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * ButtonTest Class Doc Comment * - * @category Class */ -// * @description Button -/** + * @category Class + * @description Button * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/CardTest.php b/test/Model/CardTest.php index b10e172..a46a420 100644 --- a/test/Model/CardTest.php +++ b/test/Model/CardTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * CardTest Class Doc Comment * - * @category Class */ -// * @description Card -/** + * @category Class + * @description Card * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen @@ -112,6 +111,13 @@ public function testPropertyButtons() { } + /** + * Test attribute "buttons_secondary" + */ + public function testPropertyButtonsSecondary() + { + } + /** * Test attribute "content" */ diff --git a/test/Model/ChartTest.php b/test/Model/ChartTest.php index f351d77..13fe4ac 100644 --- a/test/Model/ChartTest.php +++ b/test/Model/ChartTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * ChartTest Class Doc Comment * - * @category Class */ -// * @description Chart -/** + * @category Class + * @description Chart * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/CommonResponseTest.php b/test/Model/CommonResponseTest.php index 6ef94f2..9b27406 100644 --- a/test/Model/CommonResponseTest.php +++ b/test/Model/CommonResponseTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * CommonResponseTest Class Doc Comment * - * @category Class */ -// * @description CommonResponse -/** + * @category Class + * @description CommonResponse * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/ConnectInstructionsTest.php b/test/Model/ConnectInstructionsTest.php index de8f0f2..a4213ac 100644 --- a/test/Model/ConnectInstructionsTest.php +++ b/test/Model/ConnectInstructionsTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * ConnectInstructionsTest Class Doc Comment * - * @category Class */ -// * @description ConnectInstructions -/** + * @category Class + * @description ConnectInstructions * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/ConversionStepTest.php b/test/Model/ConversionStepTest.php index 62625d6..bfd8ae1 100644 --- a/test/Model/ConversionStepTest.php +++ b/test/Model/ConversionStepTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * ConversionStepTest Class Doc Comment * - * @category Class */ -// * @description ConversionStep -/** + * @category Class + * @description ConversionStep * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/CorrelationTest.php b/test/Model/CorrelationTest.php index 94314f5..d88244a 100644 --- a/test/Model/CorrelationTest.php +++ b/test/Model/CorrelationTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * CorrelationTest Class Doc Comment * - * @category Class */ -// * @description Correlation -/** + * @category Class + * @description Correlation * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/DataSourceTest.php b/test/Model/DataSourceTest.php index f5f073e..5a97513 100644 --- a/test/Model/DataSourceTest.php +++ b/test/Model/DataSourceTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * DataSourceTest Class Doc Comment * - * @category Class */ -// * @description DataSource -/** + * @category Class + * @description DataSource * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/DeviceTokenTest.php b/test/Model/DeviceTokenTest.php index 5d2378a..1729759 100644 --- a/test/Model/DeviceTokenTest.php +++ b/test/Model/DeviceTokenTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * DeviceTokenTest Class Doc Comment * - * @category Class */ -// * @description DeviceToken -/** + * @category Class + * @description DeviceToken * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/ExplanationStartTrackingTest.php b/test/Model/ExplanationStartTrackingTest.php index 464a5bf..756f51c 100644 --- a/test/Model/ExplanationStartTrackingTest.php +++ b/test/Model/ExplanationStartTrackingTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * ExplanationStartTrackingTest Class Doc Comment * - * @category Class */ -// * @description ExplanationStartTracking -/** + * @category Class + * @description ExplanationStartTracking * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/ExplanationTest.php b/test/Model/ExplanationTest.php index ad8609f..a1aa3fb 100644 --- a/test/Model/ExplanationTest.php +++ b/test/Model/ExplanationTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * ExplanationTest Class Doc Comment * - * @category Class */ -// * @description Explanation -/** + * @category Class + * @description Explanation * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/FeedResponseTest.php b/test/Model/FeedResponseTest.php index 8c471bb..d1eb0f7 100644 --- a/test/Model/FeedResponseTest.php +++ b/test/Model/FeedResponseTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * FeedResponseTest Class Doc Comment * - * @category Class */ -// * @description FeedResponse -/** + * @category Class + * @description FeedResponse * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/FriendTest.php b/test/Model/FriendTest.php index 1e3f072..8dd37ec 100644 --- a/test/Model/FriendTest.php +++ b/test/Model/FriendTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * FriendTest Class Doc Comment * - * @category Class */ -// * @description Friend -/** + * @category Class + * @description Friend * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/FriendsResponseTest.php b/test/Model/FriendsResponseTest.php index b4a7845..3249b03 100644 --- a/test/Model/FriendsResponseTest.php +++ b/test/Model/FriendsResponseTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * FriendsResponseTest Class Doc Comment * - * @category Class */ -// * @description FriendsResponse -/** + * @category Class + * @description FriendsResponse * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/GetConnectorsResponseTest.php b/test/Model/GetConnectorsResponseTest.php index 13b343e..d062b24 100644 --- a/test/Model/GetConnectorsResponseTest.php +++ b/test/Model/GetConnectorsResponseTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * GetConnectorsResponseTest Class Doc Comment * - * @category Class */ -// * @description GetConnectorsResponse -/** + * @category Class + * @description GetConnectorsResponse * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/GetCorrelationsDataResponseTest.php b/test/Model/GetCorrelationsDataResponseTest.php index 74e2fc1..e5be1a5 100644 --- a/test/Model/GetCorrelationsDataResponseTest.php +++ b/test/Model/GetCorrelationsDataResponseTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * GetCorrelationsDataResponseTest Class Doc Comment * - * @category Class */ -// * @description GetCorrelationsDataResponse -/** + * @category Class + * @description GetCorrelationsDataResponse * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/GetCorrelationsResponseTest.php b/test/Model/GetCorrelationsResponseTest.php index 957a3a6..dde09e4 100644 --- a/test/Model/GetCorrelationsResponseTest.php +++ b/test/Model/GetCorrelationsResponseTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * GetCorrelationsResponseTest Class Doc Comment * - * @category Class */ -// * @description GetCorrelationsResponse -/** + * @category Class + * @description GetCorrelationsResponse * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/GetSharesResponseTest.php b/test/Model/GetSharesResponseTest.php index d39fdd3..53666ff 100644 --- a/test/Model/GetSharesResponseTest.php +++ b/test/Model/GetSharesResponseTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * GetSharesResponseTest Class Doc Comment * - * @category Class */ -// * @description GetSharesResponse -/** + * @category Class + * @description GetSharesResponse * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/GetStudiesResponseTest.php b/test/Model/GetStudiesResponseTest.php index 8d3eeec..6ba4c2c 100644 --- a/test/Model/GetStudiesResponseTest.php +++ b/test/Model/GetStudiesResponseTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * GetStudiesResponseTest Class Doc Comment * - * @category Class */ -// * @description GetStudiesResponse -/** + * @category Class + * @description GetStudiesResponse * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/GetTrackingReminderNotificationsResponseTest.php b/test/Model/GetTrackingReminderNotificationsResponseTest.php index e54d8df..053ec14 100644 --- a/test/Model/GetTrackingReminderNotificationsResponseTest.php +++ b/test/Model/GetTrackingReminderNotificationsResponseTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * GetTrackingReminderNotificationsResponseTest Class Doc Comment * - * @category Class */ -// * @description GetTrackingReminderNotificationsResponse -/** + * @category Class + * @description GetTrackingReminderNotificationsResponse * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/GroupTest.php b/test/Model/GroupTest.php index 45f9cb3..8229abe 100644 --- a/test/Model/GroupTest.php +++ b/test/Model/GroupTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * GroupTest Class Doc Comment * - * @category Class */ -// * @description Group -/** + * @category Class + * @description Group * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/GroupsMemberTest.php b/test/Model/GroupsMemberTest.php index b97c329..3a41e94 100644 --- a/test/Model/GroupsMemberTest.php +++ b/test/Model/GroupsMemberTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * GroupsMemberTest Class Doc Comment * - * @category Class */ -// * @description GroupsMember -/** + * @category Class + * @description GroupsMember * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/GroupsMembersResponseTest.php b/test/Model/GroupsMembersResponseTest.php index 9407dc3..ef859f6 100644 --- a/test/Model/GroupsMembersResponseTest.php +++ b/test/Model/GroupsMembersResponseTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * GroupsMembersResponseTest Class Doc Comment * - * @category Class */ -// * @description GroupsMembersResponse -/** + * @category Class + * @description GroupsMembersResponse * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/GroupsResponseTest.php b/test/Model/GroupsResponseTest.php index acac34c..475aff1 100644 --- a/test/Model/GroupsResponseTest.php +++ b/test/Model/GroupsResponseTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * GroupsResponseTest Class Doc Comment * - * @category Class */ -// * @description GroupsResponse -/** + * @category Class + * @description GroupsResponse * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/ImageTest.php b/test/Model/ImageTest.php index a1503a1..3c23eab 100644 --- a/test/Model/ImageTest.php +++ b/test/Model/ImageTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * ImageTest Class Doc Comment * - * @category Class */ -// * @description Image -/** + * @category Class + * @description Image * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/InputFieldTest.php b/test/Model/InputFieldTest.php index 4914e1b..a9f974b 100644 --- a/test/Model/InputFieldTest.php +++ b/test/Model/InputFieldTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * InputFieldTest Class Doc Comment * - * @category Class */ -// * @description InputField -/** + * @category Class + * @description InputField * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/JsonErrorResponseTest.php b/test/Model/JsonErrorResponseTest.php index 87d0fb7..3bb98c1 100644 --- a/test/Model/JsonErrorResponseTest.php +++ b/test/Model/JsonErrorResponseTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * JsonErrorResponseTest Class Doc Comment * - * @category Class */ -// * @description JsonErrorResponse -/** + * @category Class + * @description JsonErrorResponse * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/MeasurementDeleteTest.php b/test/Model/MeasurementDeleteTest.php index ef9880e..22cd291 100644 --- a/test/Model/MeasurementDeleteTest.php +++ b/test/Model/MeasurementDeleteTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * MeasurementDeleteTest Class Doc Comment * - * @category Class */ -// * @description MeasurementDelete -/** + * @category Class + * @description MeasurementDelete * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/MeasurementItemTest.php b/test/Model/MeasurementItemTest.php index e452943..f118fd4 100644 --- a/test/Model/MeasurementItemTest.php +++ b/test/Model/MeasurementItemTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * MeasurementItemTest Class Doc Comment * - * @category Class */ -// * @description MeasurementItem -/** + * @category Class + * @description MeasurementItem * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/MeasurementSetTest.php b/test/Model/MeasurementSetTest.php index 9d907ff..4fea9bf 100644 --- a/test/Model/MeasurementSetTest.php +++ b/test/Model/MeasurementSetTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * MeasurementSetTest Class Doc Comment * - * @category Class */ -// * @description MeasurementSet -/** + * @category Class + * @description MeasurementSet * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/MeasurementTest.php b/test/Model/MeasurementTest.php index 9eb1046..d5bf15c 100644 --- a/test/Model/MeasurementTest.php +++ b/test/Model/MeasurementTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * MeasurementTest Class Doc Comment * - * @category Class */ -// * @description Measurement -/** + * @category Class + * @description Measurement * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/MeasurementUpdateTest.php b/test/Model/MeasurementUpdateTest.php index eecac71..fad6153 100644 --- a/test/Model/MeasurementUpdateTest.php +++ b/test/Model/MeasurementUpdateTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * MeasurementUpdateTest Class Doc Comment * - * @category Class */ -// * @description MeasurementUpdate -/** + * @category Class + * @description MeasurementUpdate * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/MessagesMessageTest.php b/test/Model/MessagesMessageTest.php index 580501c..117c2d0 100644 --- a/test/Model/MessagesMessageTest.php +++ b/test/Model/MessagesMessageTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * MessagesMessageTest Class Doc Comment * - * @category Class */ -// * @description MessagesMessage -/** + * @category Class + * @description MessagesMessage * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/MessagesMessagesResponseTest.php b/test/Model/MessagesMessagesResponseTest.php index b824f17..4b0ab58 100644 --- a/test/Model/MessagesMessagesResponseTest.php +++ b/test/Model/MessagesMessagesResponseTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * MessagesMessagesResponseTest Class Doc Comment * - * @category Class */ -// * @description MessagesMessagesResponse -/** + * @category Class + * @description MessagesMessagesResponse * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/MessagesNoticeTest.php b/test/Model/MessagesNoticeTest.php index 21e7e52..5387292 100644 --- a/test/Model/MessagesNoticeTest.php +++ b/test/Model/MessagesNoticeTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * MessagesNoticeTest Class Doc Comment * - * @category Class */ -// * @description MessagesNotice -/** + * @category Class + * @description MessagesNotice * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/MessagesNoticesResponseTest.php b/test/Model/MessagesNoticesResponseTest.php index 4220403..2e30e31 100644 --- a/test/Model/MessagesNoticesResponseTest.php +++ b/test/Model/MessagesNoticesResponseTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * MessagesNoticesResponseTest Class Doc Comment * - * @category Class */ -// * @description MessagesNoticesResponse -/** + * @category Class + * @description MessagesNoticesResponse * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/MessagesRecipientTest.php b/test/Model/MessagesRecipientTest.php index a47b9b7..2b845ca 100644 --- a/test/Model/MessagesRecipientTest.php +++ b/test/Model/MessagesRecipientTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * MessagesRecipientTest Class Doc Comment * - * @category Class */ -// * @description MessagesRecipient -/** + * @category Class + * @description MessagesRecipient * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/MessagesRecipientsResponseTest.php b/test/Model/MessagesRecipientsResponseTest.php index 2642ceb..e5a17da 100644 --- a/test/Model/MessagesRecipientsResponseTest.php +++ b/test/Model/MessagesRecipientsResponseTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * MessagesRecipientsResponseTest Class Doc Comment * - * @category Class */ -// * @description MessagesRecipientsResponse -/** + * @category Class + * @description MessagesRecipientsResponse * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/NotificationTest.php b/test/Model/NotificationTest.php index aa9f5a0..3abe9e8 100644 --- a/test/Model/NotificationTest.php +++ b/test/Model/NotificationTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * NotificationTest Class Doc Comment * - * @category Class */ -// * @description Notification -/** + * @category Class + * @description Notification * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/NotificationsResponseTest.php b/test/Model/NotificationsResponseTest.php index 383ff54..115ee92 100644 --- a/test/Model/NotificationsResponseTest.php +++ b/test/Model/NotificationsResponseTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * NotificationsResponseTest Class Doc Comment * - * @category Class */ -// * @description NotificationsResponse -/** + * @category Class + * @description NotificationsResponse * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/PairTest.php b/test/Model/PairTest.php index 2897d92..9bbd7fa 100644 --- a/test/Model/PairTest.php +++ b/test/Model/PairTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * PairTest Class Doc Comment * - * @category Class */ -// * @description Pair -/** + * @category Class + * @description Pair * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/ParticipantInstructionTest.php b/test/Model/ParticipantInstructionTest.php index 31752b5..78a75a0 100644 --- a/test/Model/ParticipantInstructionTest.php +++ b/test/Model/ParticipantInstructionTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * ParticipantInstructionTest Class Doc Comment * - * @category Class */ -// * @description ParticipantInstruction -/** + * @category Class + * @description ParticipantInstruction * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/PostMeasurementsDataResponseTest.php b/test/Model/PostMeasurementsDataResponseTest.php index d7222f9..4126b85 100644 --- a/test/Model/PostMeasurementsDataResponseTest.php +++ b/test/Model/PostMeasurementsDataResponseTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * PostMeasurementsDataResponseTest Class Doc Comment * - * @category Class */ -// * @description PostMeasurementsDataResponse -/** + * @category Class + * @description PostMeasurementsDataResponse * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/PostMeasurementsResponseTest.php b/test/Model/PostMeasurementsResponseTest.php index 6e42f2d..ab90774 100644 --- a/test/Model/PostMeasurementsResponseTest.php +++ b/test/Model/PostMeasurementsResponseTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * PostMeasurementsResponseTest Class Doc Comment * - * @category Class */ -// * @description PostMeasurementsResponse -/** + * @category Class + * @description PostMeasurementsResponse * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/PostStudyCreateResponseTest.php b/test/Model/PostStudyCreateResponseTest.php index f0f1f58..5d4d2bc 100644 --- a/test/Model/PostStudyCreateResponseTest.php +++ b/test/Model/PostStudyCreateResponseTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * PostStudyCreateResponseTest Class Doc Comment * - * @category Class */ -// * @description PostStudyCreateResponse -/** + * @category Class + * @description PostStudyCreateResponse * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/PostStudyPublishResponseTest.php b/test/Model/PostStudyPublishResponseTest.php index 6951ebb..ed69c76 100644 --- a/test/Model/PostStudyPublishResponseTest.php +++ b/test/Model/PostStudyPublishResponseTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * PostStudyPublishResponseTest Class Doc Comment * - * @category Class */ -// * @description PostStudyPublishResponse -/** + * @category Class + * @description PostStudyPublishResponse * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/PostTrackingRemindersDataResponseTest.php b/test/Model/PostTrackingRemindersDataResponseTest.php index a74b0ee..b498e1e 100644 --- a/test/Model/PostTrackingRemindersDataResponseTest.php +++ b/test/Model/PostTrackingRemindersDataResponseTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * PostTrackingRemindersDataResponseTest Class Doc Comment * - * @category Class */ -// * @description PostTrackingRemindersDataResponse -/** + * @category Class + * @description PostTrackingRemindersDataResponse * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/PostTrackingRemindersResponseTest.php b/test/Model/PostTrackingRemindersResponseTest.php index 091bb58..f8248df 100644 --- a/test/Model/PostTrackingRemindersResponseTest.php +++ b/test/Model/PostTrackingRemindersResponseTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * PostTrackingRemindersResponseTest Class Doc Comment * - * @category Class */ -// * @description PostTrackingRemindersResponse -/** + * @category Class + * @description PostTrackingRemindersResponse * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/PostUserSettingsDataResponseTest.php b/test/Model/PostUserSettingsDataResponseTest.php index b43392e..9aa5b77 100644 --- a/test/Model/PostUserSettingsDataResponseTest.php +++ b/test/Model/PostUserSettingsDataResponseTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * PostUserSettingsDataResponseTest Class Doc Comment * - * @category Class */ -// * @description PostUserSettingsDataResponse -/** + * @category Class + * @description PostUserSettingsDataResponse * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/PostUserSettingsResponseTest.php b/test/Model/PostUserSettingsResponseTest.php index 47f5e15..bfd1b78 100644 --- a/test/Model/PostUserSettingsResponseTest.php +++ b/test/Model/PostUserSettingsResponseTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * PostUserSettingsResponseTest Class Doc Comment * - * @category Class */ -// * @description PostUserSettingsResponse -/** + * @category Class + * @description PostUserSettingsResponse * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/ShareInvitationBodyTest.php b/test/Model/ShareInvitationBodyTest.php index afabc8f..01b526d 100644 --- a/test/Model/ShareInvitationBodyTest.php +++ b/test/Model/ShareInvitationBodyTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * ShareInvitationBodyTest Class Doc Comment * - * @category Class */ -// * @description ShareInvitationBody -/** + * @category Class + * @description ShareInvitationBody * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/StudyChartsTest.php b/test/Model/StudyChartsTest.php index 5bf5ea7..0b92151 100644 --- a/test/Model/StudyChartsTest.php +++ b/test/Model/StudyChartsTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * StudyChartsTest Class Doc Comment * - * @category Class */ -// * @description An object with various chart properties each property contain and svg and Highcharts configuration -/** + * @category Class + * @description An object with various chart properties each property contain and svg and Highcharts configuration * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/StudyCreationBodyTest.php b/test/Model/StudyCreationBodyTest.php index 5f6a93a..7366174 100644 --- a/test/Model/StudyCreationBodyTest.php +++ b/test/Model/StudyCreationBodyTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * StudyCreationBodyTest Class Doc Comment * - * @category Class */ -// * @description StudyCreationBody -/** + * @category Class + * @description StudyCreationBody * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/StudyHtmlTest.php b/test/Model/StudyHtmlTest.php index 20f5a7f..78ab78f 100644 --- a/test/Model/StudyHtmlTest.php +++ b/test/Model/StudyHtmlTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * StudyHtmlTest Class Doc Comment * - * @category Class */ -// * @description StudyHtml -/** + * @category Class + * @description StudyHtml * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/StudyImagesTest.php b/test/Model/StudyImagesTest.php index d00142c..c67c393 100644 --- a/test/Model/StudyImagesTest.php +++ b/test/Model/StudyImagesTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * StudyImagesTest Class Doc Comment * - * @category Class */ -// * @description StudyImages -/** + * @category Class + * @description StudyImages * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/StudyJoinResponseTest.php b/test/Model/StudyJoinResponseTest.php index 83a2a2a..a142ffa 100644 --- a/test/Model/StudyJoinResponseTest.php +++ b/test/Model/StudyJoinResponseTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * StudyJoinResponseTest Class Doc Comment * - * @category Class */ -// * @description StudyJoinResponse -/** + * @category Class + * @description StudyJoinResponse * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/StudyLinksTest.php b/test/Model/StudyLinksTest.php index 6a8b519..0d2ecfa 100644 --- a/test/Model/StudyLinksTest.php +++ b/test/Model/StudyLinksTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * StudyLinksTest Class Doc Comment * - * @category Class */ -// * @description StudyLinks -/** + * @category Class + * @description StudyLinks * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/StudySharingTest.php b/test/Model/StudySharingTest.php index 70d3da9..f799645 100644 --- a/test/Model/StudySharingTest.php +++ b/test/Model/StudySharingTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * StudySharingTest Class Doc Comment * - * @category Class */ -// * @description StudySharing -/** + * @category Class + * @description StudySharing * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/StudyTest.php b/test/Model/StudyTest.php index 124df07..1766dfb 100644 --- a/test/Model/StudyTest.php +++ b/test/Model/StudyTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * StudyTest Class Doc Comment * - * @category Class */ -// * @description A study analyzes the relationship between a predictor variable like gluten-intake and an outcome of interest such as overall mood. -/** + * @category Class + * @description A study analyzes the relationship between a predictor variable like gluten-intake and an outcome of interest such as overall mood. * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen @@ -92,9 +91,9 @@ public function testPropertyUserId() } /** - * Test attribute "study_id" + * Test attribute "id" */ - public function testPropertyStudyId() + public function testPropertyId() { } diff --git a/test/Model/StudyTextTest.php b/test/Model/StudyTextTest.php index 6306bd1..742d30f 100644 --- a/test/Model/StudyTextTest.php +++ b/test/Model/StudyTextTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * StudyTextTest Class Doc Comment * - * @category Class */ -// * @description StudyText -/** + * @category Class + * @description StudyText * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/StudyVotesTest.php b/test/Model/StudyVotesTest.php index 7e0eb46..0ec8f8b 100644 --- a/test/Model/StudyVotesTest.php +++ b/test/Model/StudyVotesTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * StudyVotesTest Class Doc Comment * - * @category Class */ -// * @description StudyVotes -/** + * @category Class + * @description StudyVotes * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/TrackingReminderDeleteTest.php b/test/Model/TrackingReminderDeleteTest.php index 5201d14..2b6d18c 100644 --- a/test/Model/TrackingReminderDeleteTest.php +++ b/test/Model/TrackingReminderDeleteTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * TrackingReminderDeleteTest Class Doc Comment * - * @category Class */ -// * @description TrackingReminderDelete -/** + * @category Class + * @description TrackingReminderDelete * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/TrackingReminderNotificationActionTest.php b/test/Model/TrackingReminderNotificationActionTest.php index cb7d43c..accf075 100644 --- a/test/Model/TrackingReminderNotificationActionTest.php +++ b/test/Model/TrackingReminderNotificationActionTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * TrackingReminderNotificationActionTest Class Doc Comment * - * @category Class */ -// * @description TrackingReminderNotificationAction -/** + * @category Class + * @description TrackingReminderNotificationAction * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/TrackingReminderNotificationPostTest.php b/test/Model/TrackingReminderNotificationPostTest.php index cee886c..0c6903e 100644 --- a/test/Model/TrackingReminderNotificationPostTest.php +++ b/test/Model/TrackingReminderNotificationPostTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * TrackingReminderNotificationPostTest Class Doc Comment * - * @category Class */ -// * @description TrackingReminderNotificationPost -/** + * @category Class + * @description TrackingReminderNotificationPost * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/TrackingReminderNotificationTest.php b/test/Model/TrackingReminderNotificationTest.php index a1cbe13..e29b90f 100644 --- a/test/Model/TrackingReminderNotificationTest.php +++ b/test/Model/TrackingReminderNotificationTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * TrackingReminderNotificationTest Class Doc Comment * - * @category Class */ -// * @description TrackingReminderNotification -/** + * @category Class + * @description TrackingReminderNotification * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/TrackingReminderNotificationTrackAllActionTest.php b/test/Model/TrackingReminderNotificationTrackAllActionTest.php index 5afc25d..4382d77 100644 --- a/test/Model/TrackingReminderNotificationTrackAllActionTest.php +++ b/test/Model/TrackingReminderNotificationTrackAllActionTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * TrackingReminderNotificationTrackAllActionTest Class Doc Comment * - * @category Class */ -// * @description TrackingReminderNotificationTrackAllAction -/** + * @category Class + * @description TrackingReminderNotificationTrackAllAction * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/TrackingReminderTest.php b/test/Model/TrackingReminderTest.php index 285f22c..fab60d7 100644 --- a/test/Model/TrackingReminderTest.php +++ b/test/Model/TrackingReminderTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * TrackingReminderTest Class Doc Comment * - * @category Class */ -// * @description TrackingReminder -/** + * @category Class + * @description TrackingReminder * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/UnitCategoryTest.php b/test/Model/UnitCategoryTest.php index 9c16fe1..fa73391 100644 --- a/test/Model/UnitCategoryTest.php +++ b/test/Model/UnitCategoryTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * UnitCategoryTest Class Doc Comment * - * @category Class */ -// * @description UnitCategory -/** + * @category Class + * @description UnitCategory * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/UnitTest.php b/test/Model/UnitTest.php index ccaa74a..193b749 100644 --- a/test/Model/UnitTest.php +++ b/test/Model/UnitTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * UnitTest Class Doc Comment * - * @category Class */ -// * @description Unit -/** + * @category Class + * @description Unit * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/UserBlogTest.php b/test/Model/UserBlogTest.php index 5ca5f47..fb2cd77 100644 --- a/test/Model/UserBlogTest.php +++ b/test/Model/UserBlogTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * UserBlogTest Class Doc Comment * - * @category Class */ -// * @description UserBlog -/** + * @category Class + * @description UserBlog * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/UserBlogsResponseTest.php b/test/Model/UserBlogsResponseTest.php index 449288a..94bc8d3 100644 --- a/test/Model/UserBlogsResponseTest.php +++ b/test/Model/UserBlogsResponseTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * UserBlogsResponseTest Class Doc Comment * - * @category Class */ -// * @description UserBlogsResponse -/** + * @category Class + * @description UserBlogsResponse * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/UserTagTest.php b/test/Model/UserTagTest.php index 346c9eb..6ee3638 100644 --- a/test/Model/UserTagTest.php +++ b/test/Model/UserTagTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * UserTagTest Class Doc Comment * - * @category Class */ -// * @description UserTag -/** + * @category Class + * @description UserTag * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/UserTest.php b/test/Model/UserTest.php index 41163cb..bf8825a 100644 --- a/test/Model/UserTest.php +++ b/test/Model/UserTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * UserTest Class Doc Comment * - * @category Class */ -// * @description User -/** + * @category Class + * @description User * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen @@ -168,6 +167,13 @@ public function testPropertyCreatedAt() { } + /** + * Test attribute "description" + */ + public function testPropertyDescription() + { + } + /** * Test attribute "display_name" */ diff --git a/test/Model/UserVariableDeleteTest.php b/test/Model/UserVariableDeleteTest.php index efaf9ac..c89dd69 100644 --- a/test/Model/UserVariableDeleteTest.php +++ b/test/Model/UserVariableDeleteTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * UserVariableDeleteTest Class Doc Comment * - * @category Class */ -// * @description UserVariableDelete -/** + * @category Class + * @description UserVariableDelete * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/VariableCategoryTest.php b/test/Model/VariableCategoryTest.php index 03eb1a5..897865e 100644 --- a/test/Model/VariableCategoryTest.php +++ b/test/Model/VariableCategoryTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * VariableCategoryTest Class Doc Comment * - * @category Class */ -// * @description VariableCategory -/** + * @category Class + * @description VariableCategory * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/VariableChartsTest.php b/test/Model/VariableChartsTest.php index 998907b..05ba220 100644 --- a/test/Model/VariableChartsTest.php +++ b/test/Model/VariableChartsTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * VariableChartsTest Class Doc Comment * - * @category Class */ -// * @description An object with various chart properties each property contain and svg and Highcharts configuration -/** + * @category Class + * @description An object with various chart properties each property contain and svg and Highcharts configuration * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/VariableTest.php b/test/Model/VariableTest.php index 5609e7c..08e40ee 100644 --- a/test/Model/VariableTest.php +++ b/test/Model/VariableTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * VariableTest Class Doc Comment * - * @category Class */ -// * @description Variable -/** + * @category Class + * @description Variable * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/VoteDeleteTest.php b/test/Model/VoteDeleteTest.php index e0ad2f4..5819fce 100644 --- a/test/Model/VoteDeleteTest.php +++ b/test/Model/VoteDeleteTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * VoteDeleteTest Class Doc Comment * - * @category Class */ -// * @description VoteDelete -/** + * @category Class + * @description VoteDelete * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/VoteTest.php b/test/Model/VoteTest.php index 11c7577..8ca8c3b 100644 --- a/test/Model/VoteTest.php +++ b/test/Model/VoteTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * VoteTest Class Doc Comment * - * @category Class */ -// * @description Vote -/** + * @category Class + * @description Vote * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/XprofileDataResponseTest.php b/test/Model/XprofileDataResponseTest.php index adaa026..6d1ef73 100644 --- a/test/Model/XprofileDataResponseTest.php +++ b/test/Model/XprofileDataResponseTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * XprofileDataResponseTest Class Doc Comment * - * @category Class */ -// * @description XprofileDataResponse -/** + * @category Class + * @description XprofileDataResponse * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/XprofileDatumTest.php b/test/Model/XprofileDatumTest.php index 4d5ec7a..a93942f 100644 --- a/test/Model/XprofileDatumTest.php +++ b/test/Model/XprofileDatumTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * XprofileDatumTest Class Doc Comment * - * @category Class */ -// * @description XprofileDatum -/** + * @category Class + * @description XprofileDatum * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/XprofileFieldTest.php b/test/Model/XprofileFieldTest.php index a6a2807..06c9957 100644 --- a/test/Model/XprofileFieldTest.php +++ b/test/Model/XprofileFieldTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * XprofileFieldTest Class Doc Comment * - * @category Class */ -// * @description XprofileField -/** + * @category Class + * @description XprofileField * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/XprofileFieldsResponseTest.php b/test/Model/XprofileFieldsResponseTest.php index 4f365e2..9f9842a 100644 --- a/test/Model/XprofileFieldsResponseTest.php +++ b/test/Model/XprofileFieldsResponseTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * XprofileFieldsResponseTest Class Doc Comment * - * @category Class */ -// * @description XprofileFieldsResponse -/** + * @category Class + * @description XprofileFieldsResponse * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/XprofileGroupTest.php b/test/Model/XprofileGroupTest.php index 7db5b90..cdb7af0 100644 --- a/test/Model/XprofileGroupTest.php +++ b/test/Model/XprofileGroupTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * XprofileGroupTest Class Doc Comment * - * @category Class */ -// * @description XprofileGroup -/** + * @category Class + * @description XprofileGroup * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen diff --git a/test/Model/XprofileGroupsResponseTest.php b/test/Model/XprofileGroupsResponseTest.php index c288d9b..7666e90 100644 --- a/test/Model/XprofileGroupsResponseTest.php +++ b/test/Model/XprofileGroupsResponseTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.4 */ /** @@ -32,9 +32,8 @@ /** * XprofileGroupsResponseTest Class Doc Comment * - * @category Class */ -// * @description XprofileGroupsResponse -/** + * @category Class + * @description XprofileGroupsResponse * @package QuantiModo\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen