Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions activitysmith_openapi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
""" # noqa: E501


__version__ = "1.1.0"
__version__ = "1.2.0"

# import apis into sdk package
from activitysmith_openapi.api.live_activities_api import LiveActivitiesApi
Expand Down Expand Up @@ -56,8 +56,6 @@
from activitysmith_openapi.models.live_activity_update_response import LiveActivityUpdateResponse
from activitysmith_openapi.models.live_activity_webhook_method import LiveActivityWebhookMethod
from activitysmith_openapi.models.metric_error import MetricError
from activitysmith_openapi.models.metric_format import MetricFormat
from activitysmith_openapi.models.metric_unit_spacing import MetricUnitSpacing
from activitysmith_openapi.models.metric_value_update_request import MetricValueUpdateRequest
from activitysmith_openapi.models.metric_value_update_request_value import MetricValueUpdateRequestValue
from activitysmith_openapi.models.metric_value_update_response import MetricValueUpdateResponse
Expand All @@ -71,5 +69,3 @@
from activitysmith_openapi.models.rate_limit_error import RateLimitError
from activitysmith_openapi.models.send_push_notification429_response import SendPushNotification429Response
from activitysmith_openapi.models.stream_content_state import StreamContentState
from activitysmith_openapi.models.widget_metric import WidgetMetric
from activitysmith_openapi.models.widget_metric_latest_value import WidgetMetricLatestValue
6 changes: 3 additions & 3 deletions activitysmith_openapi/api/metrics_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def update_metric_value(
) -> MetricValueUpdateResponse:
"""Update a widget metric value

Updates the latest value for a metric configured in ActivitySmith widgets. Create the metric in the web app first, then write values using its key. Numeric metric formats accept finite numbers. String metrics accept non-empty text up to 64 characters.
Updates the latest value for a metric displayed in ActivitySmith widgets. Create the metric in the web app first, then update its value using the key.

:param key: Metric key configured in the web app. Lowercase letters, numbers, dots, underscores, and dashes are allowed. (required)
:type key: str
Expand Down Expand Up @@ -133,7 +133,7 @@ def update_metric_value_with_http_info(
) -> ApiResponse[MetricValueUpdateResponse]:
"""Update a widget metric value

Updates the latest value for a metric configured in ActivitySmith widgets. Create the metric in the web app first, then write values using its key. Numeric metric formats accept finite numbers. String metrics accept non-empty text up to 64 characters.
Updates the latest value for a metric displayed in ActivitySmith widgets. Create the metric in the web app first, then update its value using the key.

:param key: Metric key configured in the web app. Lowercase letters, numbers, dots, underscores, and dashes are allowed. (required)
:type key: str
Expand Down Expand Up @@ -207,7 +207,7 @@ def update_metric_value_without_preload_content(
) -> RESTResponseType:
"""Update a widget metric value

Updates the latest value for a metric configured in ActivitySmith widgets. Create the metric in the web app first, then write values using its key. Numeric metric formats accept finite numbers. String metrics accept non-empty text up to 64 characters.
Updates the latest value for a metric displayed in ActivitySmith widgets. Create the metric in the web app first, then update its value using the key.

:param key: Metric key configured in the web app. Lowercase letters, numbers, dots, underscores, and dashes are allowed. (required)
:type key: str
Expand Down
2 changes: 1 addition & 1 deletion activitysmith_openapi/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def __init__(
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = 'OpenAPI-Generator/1.1.0/python'
self.user_agent = 'OpenAPI-Generator/1.2.0/python'
self.client_side_validation = configuration.client_side_validation

def __enter__(self):
Expand Down
2 changes: 1 addition & 1 deletion activitysmith_openapi/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ def to_debug_report(self):
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: 1.0.0\n"\
"SDK Package Version: 1.1.0".\
"SDK Package Version: 1.2.0".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self):
Expand Down
18 changes: 0 additions & 18 deletions activitysmith_openapi/docs/MetricFormat.md

This file was deleted.

12 changes: 0 additions & 12 deletions activitysmith_openapi/docs/MetricUnitSpacing.md

This file was deleted.

2 changes: 1 addition & 1 deletion activitysmith_openapi/docs/MetricValueUpdateResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**metric** | [**WidgetMetric**](WidgetMetric.md) | |
**success** | **bool** | |

## Example

Expand Down
2 changes: 1 addition & 1 deletion activitysmith_openapi/docs/MetricsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Method | HTTP request | Description

Update a widget metric value

Updates the latest value for a metric configured in ActivitySmith widgets. Create the metric in the web app first, then write values using its key. Numeric metric formats accept finite numbers. String metrics accept non-empty text up to 64 characters.
Updates the latest value for a metric displayed in ActivitySmith widgets. Create the metric in the web app first, then update its value using the key.

### Example

Expand Down
40 changes: 0 additions & 40 deletions activitysmith_openapi/docs/WidgetMetric.md

This file was deleted.

29 changes: 0 additions & 29 deletions activitysmith_openapi/docs/WidgetMetricLatestValue.md

This file was deleted.

4 changes: 0 additions & 4 deletions activitysmith_openapi/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@
from activitysmith_openapi.models.live_activity_update_response import LiveActivityUpdateResponse
from activitysmith_openapi.models.live_activity_webhook_method import LiveActivityWebhookMethod
from activitysmith_openapi.models.metric_error import MetricError
from activitysmith_openapi.models.metric_format import MetricFormat
from activitysmith_openapi.models.metric_unit_spacing import MetricUnitSpacing
from activitysmith_openapi.models.metric_value_update_request import MetricValueUpdateRequest
from activitysmith_openapi.models.metric_value_update_request_value import MetricValueUpdateRequestValue
from activitysmith_openapi.models.metric_value_update_response import MetricValueUpdateResponse
Expand All @@ -52,5 +50,3 @@
from activitysmith_openapi.models.rate_limit_error import RateLimitError
from activitysmith_openapi.models.send_push_notification429_response import SendPushNotification429Response
from activitysmith_openapi.models.stream_content_state import StreamContentState
from activitysmith_openapi.models.widget_metric import WidgetMetric
from activitysmith_openapi.models.widget_metric_latest_value import WidgetMetricLatestValue
40 changes: 0 additions & 40 deletions activitysmith_openapi/models/metric_format.py

This file was deleted.

37 changes: 0 additions & 37 deletions activitysmith_openapi/models/metric_unit_spacing.py

This file was deleted.

12 changes: 4 additions & 8 deletions activitysmith_openapi/models/metric_value_update_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,18 @@
import re # noqa: F401
import json

from pydantic import BaseModel, ConfigDict
from pydantic import BaseModel, ConfigDict, StrictBool
from typing import Any, ClassVar, Dict, List
from activitysmith_openapi.models.widget_metric import WidgetMetric
from typing import Optional, Set
from typing_extensions import Self

class MetricValueUpdateResponse(BaseModel):
"""
MetricValueUpdateResponse
""" # noqa: E501
metric: WidgetMetric
success: StrictBool
additional_properties: Dict[str, Any] = {}
__properties: ClassVar[List[str]] = ["metric"]
__properties: ClassVar[List[str]] = ["success"]

model_config = ConfigDict(
populate_by_name=True,
Expand Down Expand Up @@ -72,9 +71,6 @@ def to_dict(self) -> Dict[str, Any]:
exclude=excluded_fields,
exclude_none=True,
)
# override the default output from pydantic by calling `to_dict()` of metric
if self.metric:
_dict['metric'] = self.metric.to_dict()
# puts key-value pairs in additional_properties in the top level
if self.additional_properties is not None:
for _key, _value in self.additional_properties.items():
Expand All @@ -92,7 +88,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return cls.model_validate(obj)

_obj = cls.model_validate({
"metric": WidgetMetric.from_dict(obj["metric"]) if obj.get("metric") is not None else None
"success": obj.get("success")
})
# store additional fields in additional_properties
for _key in obj.keys():
Expand Down
Loading