notifo-io 1.0.0.pre

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (161) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +163 -0
  4. data/Rakefile +10 -0
  5. data/docs/AddAllowedTopicRequest.md +18 -0
  6. data/docs/AddContributorDto.md +20 -0
  7. data/docs/AppContributorDto.md +22 -0
  8. data/docs/AppDetailsDto.md +48 -0
  9. data/docs/AppDto.md +28 -0
  10. data/docs/AppsApi.md +646 -0
  11. data/docs/ConfigsApi.md +127 -0
  12. data/docs/ConfirmMode.md +15 -0
  13. data/docs/CreateEmailTemplateDto.md +18 -0
  14. data/docs/EmailTemplateDto.md +22 -0
  15. data/docs/EmailVerificationStatus.md +15 -0
  16. data/docs/ErrorDto.md +26 -0
  17. data/docs/EventDto.md +40 -0
  18. data/docs/EventsApi.md +142 -0
  19. data/docs/InlineObject.md +18 -0
  20. data/docs/IsoDayOfWeek.md +15 -0
  21. data/docs/ListResponseDtoOfEventDto.md +20 -0
  22. data/docs/ListResponseDtoOfLogEntryDto.md +20 -0
  23. data/docs/ListResponseDtoOfMediaDto.md +20 -0
  24. data/docs/ListResponseDtoOfSubscriptionDto.md +20 -0
  25. data/docs/ListResponseDtoOfTemplateDto.md +20 -0
  26. data/docs/ListResponseDtoOfTopicDto.md +20 -0
  27. data/docs/ListResponseDtoOfUserDto.md +20 -0
  28. data/docs/LogEntryDto.md +24 -0
  29. data/docs/LogsApi.md +78 -0
  30. data/docs/MediaApi.md +295 -0
  31. data/docs/MediaDto.md +28 -0
  32. data/docs/MediaType.md +15 -0
  33. data/docs/NotificationFormattingDto.md +32 -0
  34. data/docs/NotificationSettingDto.md +20 -0
  35. data/docs/PublishManyRequestDto.md +18 -0
  36. data/docs/PublishRequestDto.md +36 -0
  37. data/docs/ResizeMode.md +15 -0
  38. data/docs/SchedulingDto.md +24 -0
  39. data/docs/SchedulingType.md +15 -0
  40. data/docs/SubscribeDto.md +20 -0
  41. data/docs/SubscriptionDto.md +20 -0
  42. data/docs/TemplateDto.md +22 -0
  43. data/docs/TemplatesApi.md +208 -0
  44. data/docs/TopicDto.md +22 -0
  45. data/docs/TopicsApi.md +270 -0
  46. data/docs/UpsertAppDto.md +36 -0
  47. data/docs/UpsertTemplateDto.md +22 -0
  48. data/docs/UpsertTemplatesDto.md +18 -0
  49. data/docs/UpsertUserDto.md +32 -0
  50. data/docs/UpsertUsersDto.md +18 -0
  51. data/docs/UserDto.md +36 -0
  52. data/docs/UsersApi.md +610 -0
  53. data/git_push.sh +58 -0
  54. data/lib/notifo.rb +87 -0
  55. data/lib/notifo/api/apps_api.rb +678 -0
  56. data/lib/notifo/api/configs_api.rb +132 -0
  57. data/lib/notifo/api/events_api.rb +161 -0
  58. data/lib/notifo/api/logs_api.rb +92 -0
  59. data/lib/notifo/api/media_api.rb +322 -0
  60. data/lib/notifo/api/templates_api.rb +228 -0
  61. data/lib/notifo/api/topics_api.rb +281 -0
  62. data/lib/notifo/api/users_api.rb +667 -0
  63. data/lib/notifo/api_client.rb +389 -0
  64. data/lib/notifo/api_error.rb +57 -0
  65. data/lib/notifo/configuration.rb +268 -0
  66. data/lib/notifo/models/add_allowed_topic_request.rb +219 -0
  67. data/lib/notifo/models/add_contributor_dto.rb +229 -0
  68. data/lib/notifo/models/app_contributor_dto.rb +239 -0
  69. data/lib/notifo/models/app_details_dto.rb +381 -0
  70. data/lib/notifo/models/app_dto.rb +273 -0
  71. data/lib/notifo/models/confirm_mode.rb +38 -0
  72. data/lib/notifo/models/create_email_template_dto.rb +219 -0
  73. data/lib/notifo/models/email_template_dto.rb +240 -0
  74. data/lib/notifo/models/email_verification_status.rb +39 -0
  75. data/lib/notifo/models/error_dto.rb +265 -0
  76. data/lib/notifo/models/event_dto.rb +333 -0
  77. data/lib/notifo/models/inline_object.rb +219 -0
  78. data/lib/notifo/models/iso_day_of_week.rb +43 -0
  79. data/lib/notifo/models/list_response_dto_of_event_dto.rb +231 -0
  80. data/lib/notifo/models/list_response_dto_of_log_entry_dto.rb +231 -0
  81. data/lib/notifo/models/list_response_dto_of_media_dto.rb +231 -0
  82. data/lib/notifo/models/list_response_dto_of_subscription_dto.rb +231 -0
  83. data/lib/notifo/models/list_response_dto_of_template_dto.rb +231 -0
  84. data/lib/notifo/models/list_response_dto_of_topic_dto.rb +231 -0
  85. data/lib/notifo/models/list_response_dto_of_user_dto.rb +231 -0
  86. data/lib/notifo/models/log_entry_dto.rb +249 -0
  87. data/lib/notifo/models/media_dto.rb +269 -0
  88. data/lib/notifo/models/media_type.rb +39 -0
  89. data/lib/notifo/models/notification_formatting_dto.rb +295 -0
  90. data/lib/notifo/models/notification_setting_dto.rb +231 -0
  91. data/lib/notifo/models/publish_many_request_dto.rb +221 -0
  92. data/lib/notifo/models/publish_request_dto.rb +315 -0
  93. data/lib/notifo/models/resize_mode.rb +42 -0
  94. data/lib/notifo/models/scheduling_dto.rb +251 -0
  95. data/lib/notifo/models/scheduling_type.rb +37 -0
  96. data/lib/notifo/models/subscribe_dto.rb +229 -0
  97. data/lib/notifo/models/subscription_dto.rb +229 -0
  98. data/lib/notifo/models/template_dto.rb +239 -0
  99. data/lib/notifo/models/topic_dto.rb +239 -0
  100. data/lib/notifo/models/upsert_app_dto.rb +321 -0
  101. data/lib/notifo/models/upsert_template_dto.rb +240 -0
  102. data/lib/notifo/models/upsert_templates_dto.rb +221 -0
  103. data/lib/notifo/models/upsert_user_dto.rb +297 -0
  104. data/lib/notifo/models/upsert_users_dto.rb +221 -0
  105. data/lib/notifo/models/user_dto.rb +309 -0
  106. data/lib/notifo/version.rb +15 -0
  107. data/notifo-io-1.0.0.gem +0 -0
  108. data/notifo-io-1.0.0.pre.beta.gem +0 -0
  109. data/notifo.gemspec +38 -0
  110. data/spec/api/apps_api_spec.rb +151 -0
  111. data/spec/api/configs_api_spec.rb +55 -0
  112. data/spec/api/events_api_spec.rb +61 -0
  113. data/spec/api/logs_api_spec.rb +49 -0
  114. data/spec/api/media_api_spec.rb +95 -0
  115. data/spec/api/templates_api_spec.rb +73 -0
  116. data/spec/api/topics_api_spec.rb +85 -0
  117. data/spec/api/users_api_spec.rb +152 -0
  118. data/spec/api_client_spec.rb +226 -0
  119. data/spec/configuration_spec.rb +42 -0
  120. data/spec/models/add_allowed_topic_request_spec.rb +34 -0
  121. data/spec/models/add_contributor_dto_spec.rb +40 -0
  122. data/spec/models/app_contributor_dto_spec.rb +46 -0
  123. data/spec/models/app_details_dto_spec.rb +124 -0
  124. data/spec/models/app_dto_spec.rb +64 -0
  125. data/spec/models/confirm_mode_spec.rb +28 -0
  126. data/spec/models/create_email_template_dto_spec.rb +34 -0
  127. data/spec/models/email_template_dto_spec.rb +46 -0
  128. data/spec/models/email_verification_status_spec.rb +28 -0
  129. data/spec/models/error_dto_spec.rb +58 -0
  130. data/spec/models/event_dto_spec.rb +100 -0
  131. data/spec/models/inline_object_spec.rb +34 -0
  132. data/spec/models/iso_day_of_week_spec.rb +28 -0
  133. data/spec/models/list_response_dto_of_event_dto_spec.rb +40 -0
  134. data/spec/models/list_response_dto_of_log_entry_dto_spec.rb +40 -0
  135. data/spec/models/list_response_dto_of_media_dto_spec.rb +40 -0
  136. data/spec/models/list_response_dto_of_subscription_dto_spec.rb +40 -0
  137. data/spec/models/list_response_dto_of_template_dto_spec.rb +40 -0
  138. data/spec/models/list_response_dto_of_topic_dto_spec.rb +40 -0
  139. data/spec/models/list_response_dto_of_user_dto_spec.rb +40 -0
  140. data/spec/models/log_entry_dto_spec.rb +52 -0
  141. data/spec/models/media_dto_spec.rb +64 -0
  142. data/spec/models/media_type_spec.rb +28 -0
  143. data/spec/models/notification_formatting_dto_spec.rb +76 -0
  144. data/spec/models/notification_setting_dto_spec.rb +40 -0
  145. data/spec/models/publish_many_request_dto_spec.rb +34 -0
  146. data/spec/models/publish_request_dto_spec.rb +88 -0
  147. data/spec/models/resize_mode_spec.rb +28 -0
  148. data/spec/models/scheduling_dto_spec.rb +52 -0
  149. data/spec/models/scheduling_type_spec.rb +28 -0
  150. data/spec/models/subscribe_dto_spec.rb +40 -0
  151. data/spec/models/subscription_dto_spec.rb +40 -0
  152. data/spec/models/template_dto_spec.rb +46 -0
  153. data/spec/models/topic_dto_spec.rb +46 -0
  154. data/spec/models/upsert_app_dto_spec.rb +88 -0
  155. data/spec/models/upsert_template_dto_spec.rb +46 -0
  156. data/spec/models/upsert_templates_dto_spec.rb +34 -0
  157. data/spec/models/upsert_user_dto_spec.rb +76 -0
  158. data/spec/models/upsert_users_dto_spec.rb +34 -0
  159. data/spec/models/user_dto_spec.rb +88 -0
  160. data/spec/spec_helper.rb +111 -0
  161. metadata +294 -0
@@ -0,0 +1,55 @@
1
+ =begin
2
+ #Notifo API
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.0.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for Notifo::ConfigsApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'ConfigsApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = Notifo::ConfigsApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of ConfigsApi' do
30
+ it 'should create an instance of ConfigsApi' do
31
+ expect(@api_instance).to be_instance_of(Notifo::ConfigsApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for configs_get_languages
36
+ # Get all supported languages.
37
+ # @param [Hash] opts the optional parameters
38
+ # @return [Array<String>]
39
+ describe 'configs_get_languages test' do
40
+ it 'should work' do
41
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
42
+ end
43
+ end
44
+
45
+ # unit tests for configs_get_timezones
46
+ # Get all supported timezones.
47
+ # @param [Hash] opts the optional parameters
48
+ # @return [Array<String>]
49
+ describe 'configs_get_timezones test' do
50
+ it 'should work' do
51
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
52
+ end
53
+ end
54
+
55
+ end
@@ -0,0 +1,61 @@
1
+ =begin
2
+ #Notifo API
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.0.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for Notifo::EventsApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'EventsApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = Notifo::EventsApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of EventsApi' do
30
+ it 'should create an instance of EventsApi' do
31
+ expect(@api_instance).to be_instance_of(Notifo::EventsApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for events_get_events
36
+ # Query events.
37
+ # @param app_id The app where the events belongs to.
38
+ # @param [Hash] opts the optional parameters
39
+ # @option opts [String] :query The optional query to search for items.
40
+ # @option opts [Integer] :take The number of items to return.
41
+ # @option opts [Integer] :skip The number of items to skip.
42
+ # @return [ListResponseDtoOfEventDto]
43
+ describe 'events_get_events test' do
44
+ it 'should work' do
45
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
46
+ end
47
+ end
48
+
49
+ # unit tests for events_post_events
50
+ # Publish events.
51
+ # @param app_id The app where the events belongs to.
52
+ # @param publish_many_request_dto The publish request.
53
+ # @param [Hash] opts the optional parameters
54
+ # @return [nil]
55
+ describe 'events_post_events test' do
56
+ it 'should work' do
57
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
58
+ end
59
+ end
60
+
61
+ end
@@ -0,0 +1,49 @@
1
+ =begin
2
+ #Notifo API
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.0.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for Notifo::LogsApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'LogsApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = Notifo::LogsApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of LogsApi' do
30
+ it 'should create an instance of LogsApi' do
31
+ expect(@api_instance).to be_instance_of(Notifo::LogsApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for logs_get_logs
36
+ # Query log entries.
37
+ # @param app_id The app where the log entries belongs to.
38
+ # @param [Hash] opts the optional parameters
39
+ # @option opts [String] :query The optional query to search for items.
40
+ # @option opts [Integer] :take The number of items to return.
41
+ # @option opts [Integer] :skip The number of items to skip.
42
+ # @return [ListResponseDtoOfLogEntryDto]
43
+ describe 'logs_get_logs test' do
44
+ it 'should work' do
45
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
46
+ end
47
+ end
48
+
49
+ end
@@ -0,0 +1,95 @@
1
+ =begin
2
+ #Notifo API
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.0.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for Notifo::MediaApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'MediaApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = Notifo::MediaApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of MediaApi' do
30
+ it 'should create an instance of MediaApi' do
31
+ expect(@api_instance).to be_instance_of(Notifo::MediaApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for media_delete
36
+ # Delete a media.
37
+ # @param app_id The app id where the media belongs to.
38
+ # @param file_name The file name of the media.
39
+ # @param [Hash] opts the optional parameters
40
+ # @return [nil]
41
+ describe 'media_delete test' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ # unit tests for media_download
48
+ # Download a media object.
49
+ # @param app_id The app id where the media belongs to.
50
+ # @param file_name The name of the media to download.
51
+ # @param [Hash] opts the optional parameters
52
+ # @option opts [Integer] :cache The cache duration.
53
+ # @option opts [Integer] :download Set it to 1 to create a download response.
54
+ # @option opts [Integer] :width The target width when an image.
55
+ # @option opts [Integer] :height The target height when an image.
56
+ # @option opts [Integer] :quality The target quality when an image.
57
+ # @option opts [String] :preset A preset dimension.
58
+ # @option opts [OneOfResizeMode] :mode The resize mode.
59
+ # @option opts [Float] :focus_x The x position of the focues point.
60
+ # @option opts [Float] :focus_y The y position of the focues point.
61
+ # @option opts [Boolean] :force True to resize it and clear the cache.
62
+ # @return [File]
63
+ describe 'media_download test' do
64
+ it 'should work' do
65
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
66
+ end
67
+ end
68
+
69
+ # unit tests for media_get_medias
70
+ # Query media items.
71
+ # @param app_id The app where the media belongs to.
72
+ # @param [Hash] opts the optional parameters
73
+ # @option opts [String] :query The optional query to search for items.
74
+ # @option opts [Integer] :take The number of items to return.
75
+ # @option opts [Integer] :skip The number of items to skip.
76
+ # @return [ListResponseDtoOfMediaDto]
77
+ describe 'media_get_medias test' do
78
+ it 'should work' do
79
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
80
+ end
81
+ end
82
+
83
+ # unit tests for media_upload
84
+ # Upload a media object.
85
+ # @param app_id The app id where the media belongs to.
86
+ # @param [Hash] opts the optional parameters
87
+ # @option opts [File] :file
88
+ # @return [nil]
89
+ describe 'media_upload test' do
90
+ it 'should work' do
91
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
92
+ end
93
+ end
94
+
95
+ end
@@ -0,0 +1,73 @@
1
+ =begin
2
+ #Notifo API
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.0.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for Notifo::TemplatesApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'TemplatesApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = Notifo::TemplatesApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of TemplatesApi' do
30
+ it 'should create an instance of TemplatesApi' do
31
+ expect(@api_instance).to be_instance_of(Notifo::TemplatesApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for templates_delete_template
36
+ # Delete a template.
37
+ # @param app_id The app where the templates belong to.
38
+ # @param code The template code to delete.
39
+ # @param [Hash] opts the optional parameters
40
+ # @return [ListResponseDtoOfTemplateDto]
41
+ describe 'templates_delete_template test' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ # unit tests for templates_get_templates
48
+ # Query templates.
49
+ # @param app_id The app where the templates belongs to.
50
+ # @param [Hash] opts the optional parameters
51
+ # @option opts [String] :query The optional query to search for items.
52
+ # @option opts [Integer] :take The number of items to return.
53
+ # @option opts [Integer] :skip The number of items to skip.
54
+ # @return [ListResponseDtoOfTemplateDto]
55
+ describe 'templates_get_templates test' do
56
+ it 'should work' do
57
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
58
+ end
59
+ end
60
+
61
+ # unit tests for templates_post_templates
62
+ # Upsert templates.
63
+ # @param app_id The app where the templates belong to.
64
+ # @param upsert_templates_dto The upsert request.
65
+ # @param [Hash] opts the optional parameters
66
+ # @return [Array<TemplateDto>]
67
+ describe 'templates_post_templates test' do
68
+ it 'should work' do
69
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
70
+ end
71
+ end
72
+
73
+ end
@@ -0,0 +1,85 @@
1
+ =begin
2
+ #Notifo API
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.0.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for Notifo::TopicsApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'TopicsApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = Notifo::TopicsApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of TopicsApi' do
30
+ it 'should create an instance of TopicsApi' do
31
+ expect(@api_instance).to be_instance_of(Notifo::TopicsApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for topics_get_subscription
36
+ # Gets a user subscription.
37
+ # User Id and App Id are resolved using the API token.
38
+ # @param topic The topic path.
39
+ # @param [Hash] opts the optional parameters
40
+ # @return [nil]
41
+ describe 'topics_get_subscription test' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ # unit tests for topics_get_topics
48
+ # Query topics.
49
+ # @param app_id The app where the topics belongs to.
50
+ # @param [Hash] opts the optional parameters
51
+ # @option opts [String] :query The optional query to search for items.
52
+ # @option opts [Integer] :take The number of items to return.
53
+ # @option opts [Integer] :skip The number of items to skip.
54
+ # @return [ListResponseDtoOfTopicDto]
55
+ describe 'topics_get_topics test' do
56
+ it 'should work' do
57
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
58
+ end
59
+ end
60
+
61
+ # unit tests for topics_subscribe
62
+ # Creates a user subscription.
63
+ # User Id and App Id are resolved using the API token.
64
+ # @param topic The topic path.
65
+ # @param [Hash] opts the optional parameters
66
+ # @return [nil]
67
+ describe 'topics_subscribe test' do
68
+ it 'should work' do
69
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
70
+ end
71
+ end
72
+
73
+ # unit tests for topics_unsubscribe
74
+ # Deletes a user subscription.
75
+ # User Id and App Id are resolved using the API token.
76
+ # @param topic The topic path.
77
+ # @param [Hash] opts the optional parameters
78
+ # @return [nil]
79
+ describe 'topics_unsubscribe test' do
80
+ it 'should work' do
81
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
82
+ end
83
+ end
84
+
85
+ end
@@ -0,0 +1,152 @@
1
+ =begin
2
+ #Notifo API
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.0.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for Notifo::UsersApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'UsersApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = Notifo::UsersApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of UsersApi' do
30
+ it 'should create an instance of UsersApi' do
31
+ expect(@api_instance).to be_instance_of(Notifo::UsersApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for users_delete_allowed_topic
36
+ # Remove an allowed topic.
37
+ # @param app_id The app where the users belong to.
38
+ # @param id The user id.
39
+ # @param prefix The topic prefix.
40
+ # @param [Hash] opts the optional parameters
41
+ # @return [nil]
42
+ describe 'users_delete_allowed_topic test' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
45
+ end
46
+ end
47
+
48
+ # unit tests for users_delete_subscription
49
+ # Remove a user subscriptions.
50
+ # @param app_id The app where the user belongs to.
51
+ # @param id The user id.
52
+ # @param prefix The topic prefix.
53
+ # @param [Hash] opts the optional parameters
54
+ # @return [nil]
55
+ describe 'users_delete_subscription test' do
56
+ it 'should work' do
57
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
58
+ end
59
+ end
60
+
61
+ # unit tests for users_delete_user
62
+ # Delete a user.
63
+ # @param app_id The app where the users belongs to.
64
+ # @param id The user id to delete.
65
+ # @param [Hash] opts the optional parameters
66
+ # @return [ListResponseDtoOfUserDto]
67
+ describe 'users_delete_user test' do
68
+ it 'should work' do
69
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
70
+ end
71
+ end
72
+
73
+ # unit tests for users_get_subscriptions
74
+ # Query user subscriptions.
75
+ # @param app_id The app where the user belongs to.
76
+ # @param id The user id.
77
+ # @param [Hash] opts the optional parameters
78
+ # @option opts [String] :query The optional query to search for items.
79
+ # @option opts [Integer] :take The number of items to return.
80
+ # @option opts [Integer] :skip The number of items to skip.
81
+ # @return [ListResponseDtoOfSubscriptionDto]
82
+ describe 'users_get_subscriptions test' do
83
+ it 'should work' do
84
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
85
+ end
86
+ end
87
+
88
+ # unit tests for users_get_user
89
+ # Get a user.
90
+ # @param app_id The app where the user belongs to.
91
+ # @param id The user id.
92
+ # @param [Hash] opts the optional parameters
93
+ # @return [ListResponseDtoOfUserDto]
94
+ describe 'users_get_user test' do
95
+ it 'should work' do
96
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
97
+ end
98
+ end
99
+
100
+ # unit tests for users_get_users
101
+ # Query users.
102
+ # @param app_id The app where the users belongs to.
103
+ # @param [Hash] opts the optional parameters
104
+ # @option opts [String] :query The optional query to search for items.
105
+ # @option opts [Integer] :take The number of items to return.
106
+ # @option opts [Integer] :skip The number of items to skip.
107
+ # @return [ListResponseDtoOfUserDto]
108
+ describe 'users_get_users test' do
109
+ it 'should work' do
110
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
111
+ end
112
+ end
113
+
114
+ # unit tests for users_post_allowed_topic
115
+ # Add an allowed topic.
116
+ # @param app_id The app where the users belong to.
117
+ # @param id The user id.
118
+ # @param add_allowed_topic_request The upsert request.
119
+ # @param [Hash] opts the optional parameters
120
+ # @return [nil]
121
+ describe 'users_post_allowed_topic test' do
122
+ it 'should work' do
123
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
124
+ end
125
+ end
126
+
127
+ # unit tests for users_post_subscription
128
+ # Upsert a user subscriptions.
129
+ # @param app_id The app where the user belongs to.
130
+ # @param id The user id.
131
+ # @param subscribe_dto The subscription object.
132
+ # @param [Hash] opts the optional parameters
133
+ # @return [nil]
134
+ describe 'users_post_subscription test' do
135
+ it 'should work' do
136
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
137
+ end
138
+ end
139
+
140
+ # unit tests for users_post_users
141
+ # Upsert users.
142
+ # @param app_id The app where the users belong to.
143
+ # @param upsert_users_dto The upsert request.
144
+ # @param [Hash] opts the optional parameters
145
+ # @return [Array<UserDto>]
146
+ describe 'users_post_users test' do
147
+ it 'should work' do
148
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
149
+ end
150
+ end
151
+
152
+ end