notifo-io 1.0.0.2 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/docs/AddAllowedTopicDto.md +1 -1
- data/docs/AddContributorDto.md +2 -2
- data/docs/AppContributorDto.md +3 -3
- data/docs/AppDetailsDto.md +10 -10
- data/docs/AppDto.md +6 -6
- data/docs/AppsApi.md +8 -8
- data/docs/ConfigsApi.md +1 -1
- data/docs/CreateEmailTemplateDto.md +1 -1
- data/docs/EmailTemplateDto.md +2 -2
- data/docs/EventDto.md +9 -9
- data/docs/EventsApi.md +2 -2
- data/docs/ListResponseDtoOfEventDto.md +2 -2
- data/docs/ListResponseDtoOfLogEntryDto.md +2 -2
- data/docs/ListResponseDtoOfMediaDto.md +2 -2
- data/docs/ListResponseDtoOfSubscriptionDto.md +2 -2
- data/docs/ListResponseDtoOfTemplateDto.md +2 -2
- data/docs/ListResponseDtoOfTopicDto.md +2 -2
- data/docs/ListResponseDtoOfUserDto.md +2 -2
- data/docs/LogEntryDto.md +4 -4
- data/docs/LogsApi.md +1 -1
- data/docs/MediaApi.md +89 -2
- data/docs/MediaDto.md +8 -6
- data/docs/NotificationFormattingDto.md +2 -2
- data/docs/NotificationSettingDto.md +1 -1
- data/docs/ProfileDto.md +5 -5
- data/docs/PublishDto.md +1 -1
- data/docs/PublishManyDto.md +1 -1
- data/docs/SubscriptionDto.md +1 -1
- data/docs/TemplateDto.md +3 -3
- data/docs/TemplatesApi.md +2 -2
- data/docs/TopicDto.md +3 -3
- data/docs/TopicsApi.md +1 -1
- data/docs/UpsertTemplateDto.md +2 -2
- data/docs/UpsertTemplatesDto.md +1 -1
- data/docs/UpsertUsersDto.md +1 -1
- data/docs/UserApi.md +2 -2
- data/docs/UserDto.md +5 -5
- data/docs/UsersApi.md +4 -4
- data/lib/notifo.rb +1 -2
- data/lib/notifo/api/apps_api.rb +4 -4
- data/lib/notifo/api/configs_api.rb +1 -1
- data/lib/notifo/api/events_api.rb +1 -1
- data/lib/notifo/api/logs_api.rb +1 -1
- data/lib/notifo/api/media_api.rb +99 -2
- data/lib/notifo/api/templates_api.rb +1 -1
- data/lib/notifo/api/topics_api.rb +1 -1
- data/lib/notifo/api/user_api.rb +1 -1
- data/lib/notifo/api/users_api.rb +1 -1
- data/lib/notifo/api_client.rb +2 -2
- data/lib/notifo/api_error.rb +1 -1
- data/lib/notifo/configuration.rb +9 -7
- data/lib/notifo/models/add_allowed_topic_dto.rb +25 -1
- data/lib/notifo/models/add_contributor_dto.rb +49 -1
- data/lib/notifo/models/app_contributor_dto.rb +73 -1
- data/lib/notifo/models/app_details_dto.rb +108 -1
- data/lib/notifo/models/app_dto.rb +88 -1
- data/lib/notifo/models/confirm_mode.rb +1 -1
- data/lib/notifo/models/create_email_template_dto.rb +25 -1
- data/lib/notifo/models/email_template_dto.rb +49 -1
- data/lib/notifo/models/email_verification_status.rb +1 -1
- data/lib/notifo/models/error_dto.rb +1 -1
- data/lib/notifo/models/event_dto.rb +122 -2
- data/lib/notifo/models/iso_day_of_week.rb +1 -1
- data/lib/notifo/models/list_response_dto_of_event_dto.rb +11 -1
- data/lib/notifo/models/list_response_dto_of_log_entry_dto.rb +11 -1
- data/lib/notifo/models/list_response_dto_of_media_dto.rb +11 -1
- data/lib/notifo/models/list_response_dto_of_subscription_dto.rb +11 -1
- data/lib/notifo/models/list_response_dto_of_template_dto.rb +11 -1
- data/lib/notifo/models/list_response_dto_of_topic_dto.rb +11 -1
- data/lib/notifo/models/list_response_dto_of_user_dto.rb +11 -1
- data/lib/notifo/models/log_entry_dto.rb +78 -1
- data/lib/notifo/models/media_dto.rb +123 -2
- data/lib/notifo/models/media_type.rb +1 -1
- data/lib/notifo/models/notification_formatting_dto.rb +11 -1
- data/lib/notifo/models/notification_send.rb +1 -1
- data/lib/notifo/models/notification_setting_dto.rb +6 -1
- data/lib/notifo/models/profile_dto.rb +67 -1
- data/lib/notifo/models/publish_dto.rb +25 -1
- data/lib/notifo/models/publish_many_dto.rb +6 -1
- data/lib/notifo/models/resize_mode.rb +1 -1
- data/lib/notifo/models/scheduling_dto.rb +1 -1
- data/lib/notifo/models/scheduling_type.rb +1 -1
- data/lib/notifo/models/subscription_dto.rb +25 -1
- data/lib/notifo/models/template_dto.rb +35 -1
- data/lib/notifo/models/topic_dto.rb +54 -1
- data/lib/notifo/models/update_profile_dto.rb +1 -1
- data/lib/notifo/models/upsert_app_dto.rb +1 -1
- data/lib/notifo/models/upsert_template_dto.rb +30 -1
- data/lib/notifo/models/upsert_templates_dto.rb +6 -1
- data/lib/notifo/models/upsert_user_dto.rb +1 -1
- data/lib/notifo/models/upsert_users_dto.rb +6 -1
- data/lib/notifo/models/user_dto.rb +69 -1
- data/lib/notifo/version.rb +1 -1
- data/notifo-io-1.0.0.2.gem +0 -0
- data/notifo.gemspec +4 -4
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +4 -4
- data/spec/spec_helper.rb +1 -1
- metadata +7 -5
data/docs/MediaDto.md
CHANGED
@@ -4,12 +4,13 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **mime_type** | **String** | The mime type. |
|
8
|
-
| **file_name** | **String** | The file name. |
|
9
|
-
| **file_info** | **String** | Generated information about the file. |
|
10
|
-
| **file_size** | **Integer** | The size of the media file. |
|
11
|
-
| **
|
12
|
-
| **
|
7
|
+
| **mime_type** | **String** | The mime type. | |
|
8
|
+
| **file_name** | **String** | The file name. | |
|
9
|
+
| **file_info** | **String** | Generated information about the file. | |
|
10
|
+
| **file_size** | **Integer** | The size of the media file. | |
|
11
|
+
| **url** | **String** | The url to the media item. | |
|
12
|
+
| **type** | [**MediaType**](MediaType.md) | | |
|
13
|
+
| **metadata** | **Hash<String, String>** | | |
|
13
14
|
|
14
15
|
## Example
|
15
16
|
|
@@ -21,6 +22,7 @@ instance = Notifo::MediaDto.new(
|
|
21
22
|
file_name: null,
|
22
23
|
file_info: null,
|
23
24
|
file_size: null,
|
25
|
+
url: null,
|
24
26
|
type: null,
|
25
27
|
metadata: null
|
26
28
|
)
|
@@ -4,14 +4,14 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **subject** | **Hash<String, String>** | |
|
7
|
+
| **subject** | **Hash<String, String>** | | |
|
8
8
|
| **body** | **Hash<String, String>** | | [optional] |
|
9
9
|
| **confirm_text** | **Hash<String, String>** | | [optional] |
|
10
10
|
| **image_small** | **Hash<String, String>** | | [optional] |
|
11
11
|
| **image_large** | **Hash<String, String>** | | [optional] |
|
12
12
|
| **link_url** | **Hash<String, String>** | | [optional] |
|
13
13
|
| **link_text** | **Hash<String, String>** | | [optional] |
|
14
|
-
| **confirm_mode** | [**ConfirmMode**](ConfirmMode.md) | |
|
14
|
+
| **confirm_mode** | [**ConfirmMode**](ConfirmMode.md) | | |
|
15
15
|
|
16
16
|
## Example
|
17
17
|
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **_send** | [**NotificationSend**](NotificationSend.md) | |
|
7
|
+
| **_send** | [**NotificationSend**](NotificationSend.md) | | |
|
8
8
|
| **delay_in_seconds** | **Integer** | The delay in seconds. | [optional] |
|
9
9
|
|
10
10
|
## Example
|
data/docs/ProfileDto.md
CHANGED
@@ -4,14 +4,14 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **full_name** | **String** | The full name of the user. |
|
8
|
-
| **email_address** | **String** | The email of the user. |
|
7
|
+
| **full_name** | **String** | The full name of the user. | |
|
8
|
+
| **email_address** | **String** | The email of the user. | |
|
9
9
|
| **phone_number** | **String** | The phone number. | [optional] |
|
10
10
|
| **preferred_language** | **String** | The preferred language of the user. | [optional] |
|
11
11
|
| **preferred_timezone** | **String** | The timezone of the user. | [optional] |
|
12
|
-
| **supported_languages** | **Array<String>** | The supported languages. |
|
13
|
-
| **supported_timezones** | **Array<String>** | The supported timezones. |
|
14
|
-
| **settings** | [**Hash<String, NotificationSettingDto>**](NotificationSettingDto.md) | Notification settings per channel. |
|
12
|
+
| **supported_languages** | **Array<String>** | The supported languages. | |
|
13
|
+
| **supported_timezones** | **Array<String>** | The supported timezones. | |
|
14
|
+
| **settings** | [**Hash<String, NotificationSettingDto>**](NotificationSettingDto.md) | Notification settings per channel. | |
|
15
15
|
|
16
16
|
## Example
|
17
17
|
|
data/docs/PublishDto.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **topic** | **String** | The topic path. |
|
7
|
+
| **topic** | **String** | The topic path. | |
|
8
8
|
| **creator_id** | **String** | A custom id to identity the creator. | [optional] |
|
9
9
|
| **template_code** | **String** | The template code. | [optional] |
|
10
10
|
| **data** | **String** | Additional user defined data. | [optional] |
|
data/docs/PublishManyDto.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **requests** | [**Array<PublishDto>**](PublishDto.md) | The publish requests. |
|
7
|
+
| **requests** | [**Array<PublishDto>**](PublishDto.md) | The publish requests. | |
|
8
8
|
|
9
9
|
## Example
|
10
10
|
|
data/docs/SubscriptionDto.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **topic_prefix** | **String** | The topic to add. |
|
7
|
+
| **topic_prefix** | **String** | The topic to add. | |
|
8
8
|
| **topic_settings** | [**Hash<String, NotificationSettingDto>**](NotificationSettingDto.md) | Notification settings per channel. | [optional] |
|
9
9
|
|
10
10
|
## Example
|
data/docs/TemplateDto.md
CHANGED
@@ -4,9 +4,9 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **code** | **String** | The code of the template. |
|
8
|
-
| **formatting** | [**NotificationFormattingDto**](NotificationFormattingDto.md) | |
|
9
|
-
| **settings** | [**Hash<String, NotificationSettingDto>**](NotificationSettingDto.md) | Notification settings per channel. |
|
7
|
+
| **code** | **String** | The code of the template. | |
|
8
|
+
| **formatting** | [**NotificationFormattingDto**](NotificationFormattingDto.md) | | |
|
9
|
+
| **settings** | [**Hash<String, NotificationSettingDto>**](NotificationSettingDto.md) | Notification settings per channel. | |
|
10
10
|
|
11
11
|
## Example
|
12
12
|
|
data/docs/TemplatesApi.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Notifo::TemplatesApi
|
2
2
|
|
3
|
-
All URIs are relative to *
|
3
|
+
All URIs are relative to *http://localhost*
|
4
4
|
|
5
5
|
| Method | HTTP request | Description |
|
6
6
|
| ------ | ------------ | ----------- |
|
@@ -157,7 +157,7 @@ require 'notifo'
|
|
157
157
|
|
158
158
|
api_instance = Notifo::TemplatesApi.new
|
159
159
|
app_id = 'app_id_example' # String | The app where the templates belong to.
|
160
|
-
upsert_templates_dto = Notifo::UpsertTemplatesDto.new # UpsertTemplatesDto | The upsert request.
|
160
|
+
upsert_templates_dto = Notifo::UpsertTemplatesDto.new({requests: [Notifo::UpsertTemplateDto.new({code: 'code_example', formatting: Notifo::NotificationFormattingDto.new({subject: { key: 'inner_example'}, confirm_mode: Notifo::ConfirmMode::SEEN})})]}) # UpsertTemplatesDto | The upsert request.
|
161
161
|
|
162
162
|
begin
|
163
163
|
# Upsert templates.
|
data/docs/TopicDto.md
CHANGED
@@ -4,9 +4,9 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **path** | **String** | The topic path. |
|
8
|
-
| **last_update** | **Time** | THe last update to the topic. |
|
9
|
-
| **counters** | **Hash<String, Integer>** | The statistics counters. |
|
7
|
+
| **path** | **String** | The topic path. | |
|
8
|
+
| **last_update** | **Time** | THe last update to the topic. | |
|
9
|
+
| **counters** | **Hash<String, Integer>** | The statistics counters. | |
|
10
10
|
|
11
11
|
## Example
|
12
12
|
|
data/docs/TopicsApi.md
CHANGED
data/docs/UpsertTemplateDto.md
CHANGED
@@ -4,8 +4,8 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **code** | **String** | The code of the template. |
|
8
|
-
| **formatting** | [**NotificationFormattingDto**](NotificationFormattingDto.md) | |
|
7
|
+
| **code** | **String** | The code of the template. | |
|
8
|
+
| **formatting** | [**NotificationFormattingDto**](NotificationFormattingDto.md) | | |
|
9
9
|
| **settings** | [**Hash<String, NotificationSettingDto>**](NotificationSettingDto.md) | Notification settings per channel. | [optional] |
|
10
10
|
|
11
11
|
## Example
|
data/docs/UpsertTemplatesDto.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **requests** | [**Array<UpsertTemplateDto>**](UpsertTemplateDto.md) | The templates to update. |
|
7
|
+
| **requests** | [**Array<UpsertTemplateDto>**](UpsertTemplateDto.md) | The templates to update. | |
|
8
8
|
|
9
9
|
## Example
|
10
10
|
|
data/docs/UpsertUsersDto.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **requests** | [**Array<UpsertUserDto>**](UpsertUserDto.md) | The users to update. |
|
7
|
+
| **requests** | [**Array<UpsertUserDto>**](UpsertUserDto.md) | The users to update. | |
|
8
8
|
|
9
9
|
## Example
|
10
10
|
|
data/docs/UserApi.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Notifo::UserApi
|
2
2
|
|
3
|
-
All URIs are relative to *
|
3
|
+
All URIs are relative to *http://localhost*
|
4
4
|
|
5
5
|
| Method | HTTP request | Description |
|
6
6
|
| ------ | ------------ | ----------- |
|
@@ -212,7 +212,7 @@ require 'time'
|
|
212
212
|
require 'notifo'
|
213
213
|
|
214
214
|
api_instance = Notifo::UserApi.new
|
215
|
-
subscription_dto = Notifo::SubscriptionDto.new # SubscriptionDto | The subscription settings.
|
215
|
+
subscription_dto = Notifo::SubscriptionDto.new({topic_prefix: 'topic_prefix_example'}) # SubscriptionDto | The subscription settings.
|
216
216
|
|
217
217
|
begin
|
218
218
|
# Creates a user subscription.
|
data/docs/UserDto.md
CHANGED
@@ -4,16 +4,16 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **id** | **String** | The id of the user. |
|
8
|
-
| **api_key** | **String** | The unique api key for the user. |
|
7
|
+
| **id** | **String** | The id of the user. | |
|
8
|
+
| **api_key** | **String** | The unique api key for the user. | |
|
9
9
|
| **full_name** | **String** | The full name of the user. | [optional] |
|
10
10
|
| **email_address** | **String** | The email of the user. | [optional] |
|
11
11
|
| **phone_number** | **String** | The phone number. | [optional] |
|
12
12
|
| **preferred_language** | **String** | The preferred language of the user. | [optional] |
|
13
13
|
| **preferred_timezone** | **String** | The timezone of the user. | [optional] |
|
14
|
-
| **requires_whitelisted_topics** | **Boolean** | True when only whitelisted topic are allowed. |
|
15
|
-
| **settings** | [**Hash<String, NotificationSettingDto>**](NotificationSettingDto.md) | Notification settings per channel. |
|
16
|
-
| **counters** | **Hash<String, Integer>** | The statistics counters. |
|
14
|
+
| **requires_whitelisted_topics** | **Boolean** | True when only whitelisted topic are allowed. | |
|
15
|
+
| **settings** | [**Hash<String, NotificationSettingDto>**](NotificationSettingDto.md) | Notification settings per channel. | |
|
16
|
+
| **counters** | **Hash<String, Integer>** | The statistics counters. | |
|
17
17
|
|
18
18
|
## Example
|
19
19
|
|
data/docs/UsersApi.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Notifo::UsersApi
|
2
2
|
|
3
|
-
All URIs are relative to *
|
3
|
+
All URIs are relative to *http://localhost*
|
4
4
|
|
5
5
|
| Method | HTTP request | Description |
|
6
6
|
| ------ | ------------ | ----------- |
|
@@ -430,7 +430,7 @@ require 'notifo'
|
|
430
430
|
api_instance = Notifo::UsersApi.new
|
431
431
|
app_id = 'app_id_example' # String | The app where the users belong to.
|
432
432
|
id = 'id_example' # String | The user id.
|
433
|
-
add_allowed_topic_dto = Notifo::AddAllowedTopicDto.new # AddAllowedTopicDto | The upsert request.
|
433
|
+
add_allowed_topic_dto = Notifo::AddAllowedTopicDto.new({prefix: 'prefix_example'}) # AddAllowedTopicDto | The upsert request.
|
434
434
|
|
435
435
|
begin
|
436
436
|
# Add an allowed topic.
|
@@ -495,7 +495,7 @@ require 'notifo'
|
|
495
495
|
api_instance = Notifo::UsersApi.new
|
496
496
|
app_id = 'app_id_example' # String | The app where the user belongs to.
|
497
497
|
id = 'id_example' # String | The user id.
|
498
|
-
subscription_dto = Notifo::SubscriptionDto.new # SubscriptionDto | The subscription object.
|
498
|
+
subscription_dto = Notifo::SubscriptionDto.new({topic_prefix: 'topic_prefix_example'}) # SubscriptionDto | The subscription object.
|
499
499
|
|
500
500
|
begin
|
501
501
|
# Upsert a user subscriptions.
|
@@ -559,7 +559,7 @@ require 'notifo'
|
|
559
559
|
|
560
560
|
api_instance = Notifo::UsersApi.new
|
561
561
|
app_id = 'app_id_example' # String | The app where the users belong to.
|
562
|
-
upsert_users_dto = Notifo::UpsertUsersDto.new # UpsertUsersDto | The upsert request.
|
562
|
+
upsert_users_dto = Notifo::UpsertUsersDto.new({requests: [Notifo::UpsertUserDto.new]}) # UpsertUsersDto | The upsert request.
|
563
563
|
|
564
564
|
begin
|
565
565
|
# Upsert users.
|
data/lib/notifo.rb
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.1.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -28,7 +28,6 @@ require 'notifo/models/email_template_dto'
|
|
28
28
|
require 'notifo/models/email_verification_status'
|
29
29
|
require 'notifo/models/error_dto'
|
30
30
|
require 'notifo/models/event_dto'
|
31
|
-
require 'notifo/models/inline_object'
|
32
31
|
require 'notifo/models/iso_day_of_week'
|
33
32
|
require 'notifo/models/list_response_dto_of_event_dto'
|
34
33
|
require 'notifo/models/list_response_dto_of_log_entry_dto'
|
data/lib/notifo/api/apps_api.rb
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.1.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -466,7 +466,7 @@ module Notifo
|
|
466
466
|
# @param app_id [String] The id of the app where the email templates belong to.
|
467
467
|
# @param create_email_template_dto [CreateEmailTemplateDto] The request object.
|
468
468
|
# @param [Hash] opts the optional parameters
|
469
|
-
# @return [
|
469
|
+
# @return [EmailTemplateDto]
|
470
470
|
def apps_post_email_template(app_id, create_email_template_dto, opts = {})
|
471
471
|
data, _status_code, _headers = apps_post_email_template_with_http_info(app_id, create_email_template_dto, opts)
|
472
472
|
data
|
@@ -476,7 +476,7 @@ module Notifo
|
|
476
476
|
# @param app_id [String] The id of the app where the email templates belong to.
|
477
477
|
# @param create_email_template_dto [CreateEmailTemplateDto] The request object.
|
478
478
|
# @param [Hash] opts the optional parameters
|
479
|
-
# @return [Array<(
|
479
|
+
# @return [Array<(EmailTemplateDto, Integer, Hash)>] EmailTemplateDto data, response status code and response headers
|
480
480
|
def apps_post_email_template_with_http_info(app_id, create_email_template_dto, opts = {})
|
481
481
|
if @api_client.config.debugging
|
482
482
|
@api_client.config.logger.debug 'Calling API: AppsApi.apps_post_email_template ...'
|
@@ -509,7 +509,7 @@ module Notifo
|
|
509
509
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_email_template_dto)
|
510
510
|
|
511
511
|
# return_type
|
512
|
-
return_type = opts[:debug_return_type] || '
|
512
|
+
return_type = opts[:debug_return_type] || 'EmailTemplateDto'
|
513
513
|
|
514
514
|
# auth_names
|
515
515
|
auth_names = opts[:debug_auth_names] || []
|
data/lib/notifo/api/logs_api.rb
CHANGED
data/lib/notifo/api/media_api.rb
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.1.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -134,7 +134,7 @@ module Notifo
|
|
134
134
|
fail ArgumentError, "Missing the required parameter 'file_name' when calling MediaApi.media_download"
|
135
135
|
end
|
136
136
|
# resource path
|
137
|
-
local_var_path = '/api/
|
137
|
+
local_var_path = '/api/apps/{appId}/media/{fileName}'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s)).sub('{' + 'fileName' + '}', CGI.escape(file_name.to_s))
|
138
138
|
|
139
139
|
# query parameters
|
140
140
|
query_params = opts[:query_params] || {}
|
@@ -183,6 +183,103 @@ module Notifo
|
|
183
183
|
return data, status_code, headers
|
184
184
|
end
|
185
185
|
|
186
|
+
# Download a media object.
|
187
|
+
# @param app_id [String] The app id where the media belongs to.
|
188
|
+
# @param file_name [String] The name of the media to download.
|
189
|
+
# @param [Hash] opts the optional parameters
|
190
|
+
# @option opts [Integer] :cache The cache duration.
|
191
|
+
# @option opts [Integer] :download Set it to 1 to create a download response.
|
192
|
+
# @option opts [Integer] :width The target width when an image.
|
193
|
+
# @option opts [Integer] :height The target height when an image.
|
194
|
+
# @option opts [Integer] :quality The target quality when an image.
|
195
|
+
# @option opts [String] :preset A preset dimension.
|
196
|
+
# @option opts [ResizeMode] :mode The resize mode.
|
197
|
+
# @option opts [Float] :focus_x The x position of the focues point.
|
198
|
+
# @option opts [Float] :focus_y The y position of the focues point.
|
199
|
+
# @option opts [Boolean] :force True to resize it and clear the cache.
|
200
|
+
# @return [File]
|
201
|
+
def media_download2(app_id, file_name, opts = {})
|
202
|
+
data, _status_code, _headers = media_download2_with_http_info(app_id, file_name, opts)
|
203
|
+
data
|
204
|
+
end
|
205
|
+
|
206
|
+
# Download a media object.
|
207
|
+
# @param app_id [String] The app id where the media belongs to.
|
208
|
+
# @param file_name [String] The name of the media to download.
|
209
|
+
# @param [Hash] opts the optional parameters
|
210
|
+
# @option opts [Integer] :cache The cache duration.
|
211
|
+
# @option opts [Integer] :download Set it to 1 to create a download response.
|
212
|
+
# @option opts [Integer] :width The target width when an image.
|
213
|
+
# @option opts [Integer] :height The target height when an image.
|
214
|
+
# @option opts [Integer] :quality The target quality when an image.
|
215
|
+
# @option opts [String] :preset A preset dimension.
|
216
|
+
# @option opts [ResizeMode] :mode The resize mode.
|
217
|
+
# @option opts [Float] :focus_x The x position of the focues point.
|
218
|
+
# @option opts [Float] :focus_y The y position of the focues point.
|
219
|
+
# @option opts [Boolean] :force True to resize it and clear the cache.
|
220
|
+
# @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
|
221
|
+
def media_download2_with_http_info(app_id, file_name, opts = {})
|
222
|
+
if @api_client.config.debugging
|
223
|
+
@api_client.config.logger.debug 'Calling API: MediaApi.media_download2 ...'
|
224
|
+
end
|
225
|
+
# verify the required parameter 'app_id' is set
|
226
|
+
if @api_client.config.client_side_validation && app_id.nil?
|
227
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling MediaApi.media_download2"
|
228
|
+
end
|
229
|
+
# verify the required parameter 'file_name' is set
|
230
|
+
if @api_client.config.client_side_validation && file_name.nil?
|
231
|
+
fail ArgumentError, "Missing the required parameter 'file_name' when calling MediaApi.media_download2"
|
232
|
+
end
|
233
|
+
# resource path
|
234
|
+
local_var_path = '/api/assets/{appId}/{fileName}'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s)).sub('{' + 'fileName' + '}', CGI.escape(file_name.to_s))
|
235
|
+
|
236
|
+
# query parameters
|
237
|
+
query_params = opts[:query_params] || {}
|
238
|
+
query_params[:'cache'] = opts[:'cache'] if !opts[:'cache'].nil?
|
239
|
+
query_params[:'download'] = opts[:'download'] if !opts[:'download'].nil?
|
240
|
+
query_params[:'width'] = opts[:'width'] if !opts[:'width'].nil?
|
241
|
+
query_params[:'height'] = opts[:'height'] if !opts[:'height'].nil?
|
242
|
+
query_params[:'quality'] = opts[:'quality'] if !opts[:'quality'].nil?
|
243
|
+
query_params[:'preset'] = opts[:'preset'] if !opts[:'preset'].nil?
|
244
|
+
query_params[:'mode'] = opts[:'mode'] if !opts[:'mode'].nil?
|
245
|
+
query_params[:'focusX'] = opts[:'focus_x'] if !opts[:'focus_x'].nil?
|
246
|
+
query_params[:'focusY'] = opts[:'focus_y'] if !opts[:'focus_y'].nil?
|
247
|
+
query_params[:'force'] = opts[:'force'] if !opts[:'force'].nil?
|
248
|
+
|
249
|
+
# header parameters
|
250
|
+
header_params = opts[:header_params] || {}
|
251
|
+
# HTTP header 'Accept' (if needed)
|
252
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream', 'application/json'])
|
253
|
+
|
254
|
+
# form parameters
|
255
|
+
form_params = opts[:form_params] || {}
|
256
|
+
|
257
|
+
# http body (model)
|
258
|
+
post_body = opts[:debug_body]
|
259
|
+
|
260
|
+
# return_type
|
261
|
+
return_type = opts[:debug_return_type] || 'File'
|
262
|
+
|
263
|
+
# auth_names
|
264
|
+
auth_names = opts[:debug_auth_names] || []
|
265
|
+
|
266
|
+
new_options = opts.merge(
|
267
|
+
:operation => :"MediaApi.media_download2",
|
268
|
+
:header_params => header_params,
|
269
|
+
:query_params => query_params,
|
270
|
+
:form_params => form_params,
|
271
|
+
:body => post_body,
|
272
|
+
:auth_names => auth_names,
|
273
|
+
:return_type => return_type
|
274
|
+
)
|
275
|
+
|
276
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
277
|
+
if @api_client.config.debugging
|
278
|
+
@api_client.config.logger.debug "API called: MediaApi#media_download2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
279
|
+
end
|
280
|
+
return data, status_code, headers
|
281
|
+
end
|
282
|
+
|
186
283
|
# Query media items.
|
187
284
|
# @param app_id [String] The app where the media belongs to.
|
188
285
|
# @param [Hash] opts the optional parameters
|