Skip to content

Commit fe0da94

Browse files
committed
Bump to 0.0.2
1 parent c7ec564 commit fe0da94

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+1433
-130
lines changed

.openapi-generator/FILES

+15
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ docs/CampaignsApi.md
1818
docs/CountriesApi.md
1919
docs/Country.md
2020
docs/CreateNotification.md
21+
docs/CreateNotificationMessage.md
22+
docs/CreateNotificationMessageRequest.md
2123
docs/CreateUser.md
2224
docs/CreateUserRequest.md
2325
docs/Device.md
@@ -32,13 +34,16 @@ docs/FixLocation.md
3234
docs/FixLocationRequest.md
3335
docs/FixRequest.md
3436
docs/FixesApi.md
37+
docs/LocalizedField.md
38+
docs/LocalizedFieldRequest.md
3539
docs/Location.md
3640
docs/LocationPoint.md
3741
docs/LocationRequest.md
3842
docs/MetaNotificationRequest.md
3943
docs/MobileApp.md
4044
docs/MobileAppRequest.md
4145
docs/Notification.md
46+
docs/NotificationMessage.md
4247
docs/NotificationRequest.md
4348
docs/NotificationsApi.md
4449
docs/Observation.md
@@ -105,6 +110,8 @@ mosquito_alert/models/breeding_site_request.py
105110
mosquito_alert/models/campaign.py
106111
mosquito_alert/models/country.py
107112
mosquito_alert/models/create_notification.py
113+
mosquito_alert/models/create_notification_message.py
114+
mosquito_alert/models/create_notification_message_request.py
108115
mosquito_alert/models/create_user.py
109116
mosquito_alert/models/create_user_request.py
110117
mosquito_alert/models/device.py
@@ -117,13 +124,16 @@ mosquito_alert/models/fix.py
117124
mosquito_alert/models/fix_location.py
118125
mosquito_alert/models/fix_location_request.py
119126
mosquito_alert/models/fix_request.py
127+
mosquito_alert/models/localized_field.py
128+
mosquito_alert/models/localized_field_request.py
120129
mosquito_alert/models/location.py
121130
mosquito_alert/models/location_point.py
122131
mosquito_alert/models/location_request.py
123132
mosquito_alert/models/meta_notification_request.py
124133
mosquito_alert/models/mobile_app.py
125134
mosquito_alert/models/mobile_app_request.py
126135
mosquito_alert/models/notification.py
136+
mosquito_alert/models/notification_message.py
127137
mosquito_alert/models/notification_request.py
128138
mosquito_alert/models/observation.py
129139
mosquito_alert/models/observation_prediction.py
@@ -176,6 +186,8 @@ test/test_campaigns_api.py
176186
test/test_countries_api.py
177187
test/test_country.py
178188
test/test_create_notification.py
189+
test/test_create_notification_message.py
190+
test/test_create_notification_message_request.py
179191
test/test_create_user.py
180192
test/test_create_user_request.py
181193
test/test_device.py
@@ -190,13 +202,16 @@ test/test_fix_location.py
190202
test/test_fix_location_request.py
191203
test/test_fix_request.py
192204
test/test_fixes_api.py
205+
test/test_localized_field.py
206+
test/test_localized_field_request.py
193207
test/test_location.py
194208
test/test_location_point.py
195209
test/test_location_request.py
196210
test/test_meta_notification_request.py
197211
test/test_mobile_app.py
198212
test/test_mobile_app_request.py
199213
test/test_notification.py
214+
test/test_notification_message.py
200215
test/test_notification_request.py
201216
test/test_notifications_api.py
202217
test/test_observation.py

README.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Introducing API v1 for Mosquito Alert platform, a project desgined to facilitate
44
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
55

66
- API version: v1
7-
- Package version: 0.0.1
7+
- Package version: 0.0.2
88
- Generator version: 7.10.0-SNAPSHOT
99
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
1010

@@ -160,6 +160,8 @@ Class | Method | HTTP request | Description
160160
- [Campaign](docs/Campaign.md)
161161
- [Country](docs/Country.md)
162162
- [CreateNotification](docs/CreateNotification.md)
163+
- [CreateNotificationMessage](docs/CreateNotificationMessage.md)
164+
- [CreateNotificationMessageRequest](docs/CreateNotificationMessageRequest.md)
163165
- [CreateUser](docs/CreateUser.md)
164166
- [CreateUserRequest](docs/CreateUserRequest.md)
165167
- [Device](docs/Device.md)
@@ -172,13 +174,16 @@ Class | Method | HTTP request | Description
172174
- [FixLocation](docs/FixLocation.md)
173175
- [FixLocationRequest](docs/FixLocationRequest.md)
174176
- [FixRequest](docs/FixRequest.md)
177+
- [LocalizedField](docs/LocalizedField.md)
178+
- [LocalizedFieldRequest](docs/LocalizedFieldRequest.md)
175179
- [Location](docs/Location.md)
176180
- [LocationPoint](docs/LocationPoint.md)
177181
- [LocationRequest](docs/LocationRequest.md)
178182
- [MetaNotificationRequest](docs/MetaNotificationRequest.md)
179183
- [MobileApp](docs/MobileApp.md)
180184
- [MobileAppRequest](docs/MobileAppRequest.md)
181185
- [Notification](docs/Notification.md)
186+
- [NotificationMessage](docs/NotificationMessage.md)
182187
- [NotificationRequest](docs/NotificationRequest.md)
183188
- [Observation](docs/Observation.md)
184189
- [ObservationPrediction](docs/ObservationPrediction.md)

docs/CreateNotificationMessage.md

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# CreateNotificationMessage
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**title** | [**LocalizedField**](LocalizedField.md) | Provide the message's title in all supported languages |
9+
**body** | [**LocalizedField**](LocalizedField.md) | Provide the message's body in all supported languages |
10+
11+
## Example
12+
13+
```python
14+
from mosquito_alert.models.create_notification_message import CreateNotificationMessage
15+
16+
# TODO update the JSON string below
17+
json = "{}"
18+
# create an instance of CreateNotificationMessage from a JSON string
19+
create_notification_message_instance = CreateNotificationMessage.from_json(json)
20+
# print the JSON string representation of the object
21+
print(CreateNotificationMessage.to_json())
22+
23+
# convert the object into a dict
24+
create_notification_message_dict = create_notification_message_instance.to_dict()
25+
# create an instance of CreateNotificationMessage from a dict
26+
create_notification_message_from_dict = CreateNotificationMessage.from_dict(create_notification_message_dict)
27+
```
28+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
29+
30+
+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# CreateNotificationMessageRequest
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**title** | [**LocalizedFieldRequest**](LocalizedFieldRequest.md) | Provide the message's title in all supported languages |
9+
**body** | [**LocalizedFieldRequest**](LocalizedFieldRequest.md) | Provide the message's body in all supported languages |
10+
11+
## Example
12+
13+
```python
14+
from mosquito_alert.models.create_notification_message_request import CreateNotificationMessageRequest
15+
16+
# TODO update the JSON string below
17+
json = "{}"
18+
# create an instance of CreateNotificationMessageRequest from a JSON string
19+
create_notification_message_request_instance = CreateNotificationMessageRequest.from_json(json)
20+
# print the JSON string representation of the object
21+
print(CreateNotificationMessageRequest.to_json())
22+
23+
# convert the object into a dict
24+
create_notification_message_request_dict = create_notification_message_request_instance.to_dict()
25+
# create an instance of CreateNotificationMessageRequest from a dict
26+
create_notification_message_request_from_dict = CreateNotificationMessageRequest.from_dict(create_notification_message_request_dict)
27+
```
28+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
29+
30+

docs/LocalizedField.md

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# LocalizedField
2+
3+
A custom serializer field that supports localization for a dynamic field name. Allows calling with arguments such as 'title', 'message', max_length, help_text, etc.
4+
5+
## Properties
6+
7+
Name | Type | Description | Notes
8+
------------ | ------------- | ------------- | -------------
9+
**bg** | **str** | Български | [optional]
10+
**bn** | **str** | বাংলা | [optional]
11+
**ca** | **str** | Català | [optional]
12+
**de** | **str** | Deutsch | [optional]
13+
**el** | **str** | Ελληνικά | [optional]
14+
**en** | **str** | English |
15+
**es** | **str** | Español | [optional]
16+
**eu** | **str** | Euskara | [optional]
17+
**fr** | **str** | Français | [optional]
18+
**gl** | **str** | Galego | [optional]
19+
**hr** | **str** | Hrvatski | [optional]
20+
**hu** | **str** | Magyar | [optional]
21+
**it** | **str** | Italiano | [optional]
22+
**lb** | **str** | Lëtzebuergesch | [optional]
23+
**mk** | **str** | Македонски | [optional]
24+
**nl** | **str** | Nederlands | [optional]
25+
**pt** | **str** | Português | [optional]
26+
**ro** | **str** | Română | [optional]
27+
**sl** | **str** | Slovenščina | [optional]
28+
**sq** | **str** | Shqip | [optional]
29+
**sr** | **str** | Српски | [optional]
30+
**sv** | **str** | Svenska | [optional]
31+
**tr** | **str** | Türkçe | [optional]
32+
**zh_cn** | **str** | 中文(中国) | [optional]
33+
34+
## Example
35+
36+
```python
37+
from mosquito_alert.models.localized_field import LocalizedField
38+
39+
# TODO update the JSON string below
40+
json = "{}"
41+
# create an instance of LocalizedField from a JSON string
42+
localized_field_instance = LocalizedField.from_json(json)
43+
# print the JSON string representation of the object
44+
print(LocalizedField.to_json())
45+
46+
# convert the object into a dict
47+
localized_field_dict = localized_field_instance.to_dict()
48+
# create an instance of LocalizedField from a dict
49+
localized_field_from_dict = LocalizedField.from_dict(localized_field_dict)
50+
```
51+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
52+
53+

docs/LocalizedFieldRequest.md

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# LocalizedFieldRequest
2+
3+
A custom serializer field that supports localization for a dynamic field name. Allows calling with arguments such as 'title', 'message', max_length, help_text, etc.
4+
5+
## Properties
6+
7+
Name | Type | Description | Notes
8+
------------ | ------------- | ------------- | -------------
9+
**bg** | **str** | Български | [optional]
10+
**bn** | **str** | বাংলা | [optional]
11+
**ca** | **str** | Català | [optional]
12+
**de** | **str** | Deutsch | [optional]
13+
**el** | **str** | Ελληνικά | [optional]
14+
**en** | **str** | English |
15+
**es** | **str** | Español | [optional]
16+
**eu** | **str** | Euskara | [optional]
17+
**fr** | **str** | Français | [optional]
18+
**gl** | **str** | Galego | [optional]
19+
**hr** | **str** | Hrvatski | [optional]
20+
**hu** | **str** | Magyar | [optional]
21+
**it** | **str** | Italiano | [optional]
22+
**lb** | **str** | Lëtzebuergesch | [optional]
23+
**mk** | **str** | Македонски | [optional]
24+
**nl** | **str** | Nederlands | [optional]
25+
**pt** | **str** | Português | [optional]
26+
**ro** | **str** | Română | [optional]
27+
**sl** | **str** | Slovenščina | [optional]
28+
**sq** | **str** | Shqip | [optional]
29+
**sr** | **str** | Српски | [optional]
30+
**sv** | **str** | Svenska | [optional]
31+
**tr** | **str** | Türkçe | [optional]
32+
**zh_cn** | **str** | 中文(中国) | [optional]
33+
34+
## Example
35+
36+
```python
37+
from mosquito_alert.models.localized_field_request import LocalizedFieldRequest
38+
39+
# TODO update the JSON string below
40+
json = "{}"
41+
# create an instance of LocalizedFieldRequest from a JSON string
42+
localized_field_request_instance = LocalizedFieldRequest.from_json(json)
43+
# print the JSON string representation of the object
44+
print(LocalizedFieldRequest.to_json())
45+
46+
# convert the object into a dict
47+
localized_field_request_dict = localized_field_request_instance.to_dict()
48+
# create an instance of LocalizedFieldRequest from a dict
49+
localized_field_request_from_dict = LocalizedFieldRequest.from_dict(localized_field_request_dict)
50+
```
51+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
52+
53+

docs/MetaNotificationRequest.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@
66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
88
**receiver_type** | **str** | |
9-
**title_en** | **str** | |
10-
**body_en** | **str** | |
11-
**user_uuid** | **str** | |
12-
**topic_code** | **str** | |
9+
**message** | [**CreateNotificationMessageRequest**](CreateNotificationMessageRequest.md) | The message of the notification |
10+
**user_uuids** | **List[str]** | |
11+
**topic_codes** | **List[str]** | |
1312

1413
## Example
1514

docs/Notification.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@
66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
88
**id** | **int** | | [readonly]
9-
**expert_id** | **int** | Expert sending the notification | [readonly]
9+
**message** | [**NotificationMessage**](NotificationMessage.md) | | [readonly]
10+
**is_read** | **bool** | | [readonly]
1011
**created_at** | **datetime** | | [readonly]
11-
**title** | **str** | | [readonly]
12-
**body** | **str** | | [readonly]
13-
**seen** | **bool** | | [readonly]
1412

1513
## Example
1614

docs/NotificationMessage.md

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# NotificationMessage
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**title** | **str** | | [readonly]
9+
**body** | **str** | | [readonly]
10+
11+
## Example
12+
13+
```python
14+
from mosquito_alert.models.notification_message import NotificationMessage
15+
16+
# TODO update the JSON string below
17+
json = "{}"
18+
# create an instance of NotificationMessage from a JSON string
19+
notification_message_instance = NotificationMessage.from_json(json)
20+
# print the JSON string representation of the object
21+
print(NotificationMessage.to_json())
22+
23+
# convert the object into a dict
24+
notification_message_dict = notification_message_instance.to_dict()
25+
# create an instance of NotificationMessage from a dict
26+
notification_message_from_dict = NotificationMessage.from_dict(notification_message_dict)
27+
```
28+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
29+
30+

docs/NotificationRequest.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
8-
**seen** | **bool** | |
8+
**is_read** | **bool** | |
99

1010
## Example
1111

0 commit comments

Comments
 (0)