mno-enterprise-api 3.1.4 → 3.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (139) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/mno_enterprise/config.js.coffee.erb +7 -1
  3. data/app/controllers/mno_enterprise/auth/omniauth_callbacks_controller.rb +3 -27
  4. data/app/controllers/mno_enterprise/auth/sessions_controller.rb +1 -3
  5. data/app/controllers/mno_enterprise/jpi/v1/admin/app_answers_controller.rb +26 -0
  6. data/app/controllers/mno_enterprise/jpi/v1/admin/app_comments_controller.rb +28 -0
  7. data/app/controllers/mno_enterprise/jpi/v1/admin/app_instances_controller.rb +16 -0
  8. data/app/controllers/mno_enterprise/jpi/v1/admin/app_reviews_controller.rb +30 -0
  9. data/app/controllers/mno_enterprise/jpi/v1/admin/invites_controller.rb +1 -1
  10. data/app/controllers/mno_enterprise/jpi/v1/admin/organizations_controller.rb +55 -37
  11. data/app/controllers/mno_enterprise/jpi/v1/app_answers_controller.rb +22 -0
  12. data/app/controllers/mno_enterprise/jpi/v1/app_comments_controller.rb +22 -0
  13. data/app/controllers/mno_enterprise/jpi/v1/app_feedbacks_controller.rb +14 -0
  14. data/app/controllers/mno_enterprise/jpi/v1/app_instances_controller.rb +1 -20
  15. data/app/controllers/mno_enterprise/jpi/v1/app_questions_controller.rb +25 -0
  16. data/app/controllers/mno_enterprise/jpi/v1/app_reviews_controller.rb +94 -0
  17. data/app/controllers/mno_enterprise/jpi/v1/base_resource_controller.rb +12 -0
  18. data/app/controllers/mno_enterprise/jpi/v1/impac/alerts_controller.rb +5 -0
  19. data/app/controllers/mno_enterprise/jpi/v1/impac/kpis_controller.rb +1 -76
  20. data/app/controllers/mno_enterprise/jpi/v1/marketplace_controller.rb +1 -18
  21. data/app/controllers/mno_enterprise/jpi/v1/teams_controller.rb +1 -83
  22. data/app/jobs/mno_enterprise/event_logger_job.rb +10 -0
  23. data/app/views/mno_enterprise/auth/confirmations/new.html.haml +6 -6
  24. data/app/views/mno_enterprise/auth/passwords/new.html.haml +8 -8
  25. data/app/views/mno_enterprise/auth/registrations/new.html.haml +1 -0
  26. data/app/views/mno_enterprise/auth/sessions/new.html.haml +1 -0
  27. data/app/views/mno_enterprise/auth/shared/_links.html.haml +0 -5
  28. data/app/views/mno_enterprise/auth/shared/_omniauth.html.haml +10 -0
  29. data/app/views/mno_enterprise/jpi/v1/admin/app_answers/show.json.jbuilder +15 -0
  30. data/app/views/mno_enterprise/jpi/v1/admin/app_comments/show.json.jbuilder +15 -0
  31. data/app/views/mno_enterprise/jpi/v1/admin/app_reviews/_app_review.json.jbuilder +13 -0
  32. data/app/views/mno_enterprise/jpi/v1/admin/app_reviews/index.json.jbuilder +1 -0
  33. data/app/views/mno_enterprise/jpi/v1/admin/app_reviews/show.json.jbuilder +3 -0
  34. data/app/views/mno_enterprise/jpi/v1/admin/organizations/show.json.jbuilder +1 -0
  35. data/app/views/mno_enterprise/jpi/v1/admin/users/_user.json.jbuilder +1 -1
  36. data/app/views/mno_enterprise/jpi/v1/app_answers/_resource.json.jbuilder +4 -0
  37. data/app/views/mno_enterprise/jpi/v1/app_answers/index.json.jbuilder +5 -0
  38. data/app/views/mno_enterprise/jpi/v1/app_answers/show.json.jbuilder +3 -0
  39. data/app/views/mno_enterprise/jpi/v1/app_comments/_resource.json.jbuilder +3 -0
  40. data/app/views/mno_enterprise/jpi/v1/app_comments/index.json.jbuilder +5 -0
  41. data/app/views/mno_enterprise/jpi/v1/app_comments/show.json.jbuilder +3 -0
  42. data/app/views/mno_enterprise/jpi/v1/app_feedbacks/_comment.json.jbuilder +10 -0
  43. data/app/views/mno_enterprise/jpi/v1/app_feedbacks/_resource.json.jbuilder +7 -0
  44. data/app/views/mno_enterprise/jpi/v1/app_feedbacks/index.json.jbuilder +5 -0
  45. data/app/views/mno_enterprise/jpi/v1/app_feedbacks/show.json.jbuilder +4 -0
  46. data/app/views/mno_enterprise/jpi/v1/app_instances/_resource.json.jbuilder +9 -0
  47. data/app/views/mno_enterprise/jpi/v1/app_questions/_answer.json.jbuilder +3 -0
  48. data/app/views/mno_enterprise/jpi/v1/app_questions/_resource.json.jbuilder +8 -0
  49. data/app/views/mno_enterprise/jpi/v1/app_questions/index.json.jbuilder +5 -0
  50. data/app/views/mno_enterprise/jpi/v1/app_questions/show.json.jbuilder +3 -0
  51. data/app/views/mno_enterprise/jpi/v1/app_reviews/_resource.json.jbuilder +13 -0
  52. data/app/views/mno_enterprise/jpi/v1/app_reviews/index.json.jbuilder +5 -0
  53. data/app/views/mno_enterprise/jpi/v1/app_reviews/show.json.jbuilder +4 -0
  54. data/app/views/mno_enterprise/jpi/v1/base_resource/_app_review.json.jbuilder +17 -0
  55. data/app/views/mno_enterprise/jpi/v1/current_users/show.json.jbuilder +9 -1
  56. data/app/views/mno_enterprise/jpi/v1/impac/alerts/_alert.json.jbuilder +7 -0
  57. data/app/views/mno_enterprise/jpi/v1/impac/alerts/index.json.jbuilder +1 -0
  58. data/app/views/mno_enterprise/jpi/v1/impac/alerts/show.json.jbuilder +1 -0
  59. data/app/views/mno_enterprise/jpi/v1/impac/dashboards/_dashboard.json.jbuilder +8 -3
  60. data/app/views/mno_enterprise/jpi/v1/impac/kpis/_kpi.json.jbuilder +4 -1
  61. data/app/views/mno_enterprise/jpi/v1/impac/widgets/_widget.json.jbuilder +1 -1
  62. data/app/views/mno_enterprise/jpi/v1/impac/widgets/index.json.jbuilder +3 -0
  63. data/app/views/mno_enterprise/jpi/v1/marketplace/_app.json.jbuilder +4 -0
  64. data/app/views/mno_enterprise/jpi/v1/marketplace/index.json.jbuilder +1 -2
  65. data/app/views/mno_enterprise/jpi/v1/marketplace/show.json.jbuilder +1 -1
  66. data/app/views/mno_enterprise/jpi/v1/organizations/_current_user.json.jbuilder +1 -1
  67. data/app/views/mno_enterprise/jpi/v1/organizations/_invoices.json.jbuilder +3 -2
  68. data/app/views/mno_enterprise/jpi/v1/organizations/_member.json.jbuilder +2 -2
  69. data/app/views/mno_enterprise/jpi/v1/organizations/_organization.json.jbuilder +2 -2
  70. data/app/views/mno_enterprise/jpi/v1/teams/_team.json.jbuilder +11 -5
  71. data/app/views/mno_enterprise/pages/terms.html.haml +219 -0
  72. data/app/views/mno_enterprise/provision/_select_organization.html.haml +6 -2
  73. data/config/initializers/devise.rb +31 -9
  74. data/config/initializers/devise_log.rb +4 -4
  75. data/config/routes.rb +41 -6
  76. data/lib/mno_enterprise/api.rb +1 -0
  77. data/lib/mno_enterprise/audit_events_listener.rb +28 -0
  78. data/lib/mno_enterprise/concerns/controllers/jpi/v1/app_instances_controller.rb +45 -0
  79. data/lib/mno_enterprise/concerns/controllers/jpi/v1/current_users_controller.rb +14 -4
  80. data/lib/mno_enterprise/concerns/controllers/jpi/v1/impac/alerts_controller.rb +76 -0
  81. data/lib/mno_enterprise/concerns/controllers/jpi/v1/impac/dashboards_controller.rb +49 -23
  82. data/lib/mno_enterprise/concerns/controllers/jpi/v1/impac/kpis_controller.rb +167 -0
  83. data/lib/mno_enterprise/concerns/controllers/jpi/v1/impac/widgets_controller.rb +33 -17
  84. data/lib/mno_enterprise/concerns/controllers/jpi/v1/marketplace_controller.rb +32 -0
  85. data/lib/mno_enterprise/concerns/controllers/jpi/v1/organizations_controller.rb +68 -28
  86. data/lib/mno_enterprise/concerns/controllers/jpi/v1/teams_controller.rb +92 -0
  87. data/lib/mno_enterprise/concerns/controllers/pages_controller.rb +17 -3
  88. data/lib/mno_enterprise/concerns/controllers/provision_controller.rb +17 -2
  89. data/lib/mno_enterprise/concerns/mailers/system_notification_mailer.rb +27 -3
  90. data/lib/mno_enterprise/event_logger.rb +34 -16
  91. data/lib/mno_enterprise/intercom_events_listener.rb +96 -0
  92. data/spec/controllers/mno_enterprise/auth/confirmation_controller_spec.rb +28 -0
  93. data/spec/controllers/mno_enterprise/auth/omniauth_callback_controller_spec.rb +34 -0
  94. data/spec/controllers/mno_enterprise/jpi/v1/admin/app_answers_controller_spec.rb +45 -0
  95. data/spec/controllers/mno_enterprise/jpi/v1/admin/app_comments_controller_spec.rb +45 -0
  96. data/spec/controllers/mno_enterprise/jpi/v1/admin/app_instances_controller_spec.rb +31 -0
  97. data/spec/controllers/mno_enterprise/jpi/v1/admin/app_reviews_controller_spec.rb +103 -0
  98. data/spec/controllers/mno_enterprise/jpi/v1/admin/audit_events_controller_spec.rb +4 -15
  99. data/spec/controllers/mno_enterprise/jpi/v1/admin/cloud_apps_controller_spec.rb +12 -3
  100. data/spec/controllers/mno_enterprise/jpi/v1/admin/invites_controller_spec.rb +4 -0
  101. data/spec/controllers/mno_enterprise/jpi/v1/admin/invoices_controller_spec.rb +15 -0
  102. data/spec/controllers/mno_enterprise/jpi/v1/admin/organizations_controller_spec.rb +17 -1
  103. data/spec/controllers/mno_enterprise/jpi/v1/admin/tenant_invoices_controller_spec.rb +5 -0
  104. data/spec/controllers/mno_enterprise/jpi/v1/admin/users_controller_spec.rb +30 -16
  105. data/spec/controllers/mno_enterprise/jpi/v1/app_answers_controller_spec.rb +74 -0
  106. data/spec/controllers/mno_enterprise/jpi/v1/app_comments_controller_spec.rb +74 -0
  107. data/spec/controllers/mno_enterprise/jpi/v1/app_feedbacks_controller_spec.rb +84 -0
  108. data/spec/controllers/mno_enterprise/jpi/v1/app_instances_controller_spec.rb +36 -22
  109. data/spec/controllers/mno_enterprise/jpi/v1/app_questions_controller_spec.rb +80 -0
  110. data/spec/controllers/mno_enterprise/jpi/v1/app_reviews_controller_spec.rb +107 -0
  111. data/spec/controllers/mno_enterprise/jpi/v1/current_users_controller_spec.rb +16 -1
  112. data/spec/controllers/mno_enterprise/jpi/v1/impac/alerts_controller_spec.rb +82 -0
  113. data/spec/controllers/mno_enterprise/jpi/v1/impac/kpis_controller_spec.rb +147 -10
  114. data/spec/controllers/mno_enterprise/jpi/v1/impac/widgets_controller_spec.rb +39 -0
  115. data/spec/controllers/mno_enterprise/jpi/v1/marketplace_controller_spec.rb +19 -26
  116. data/spec/controllers/mno_enterprise/jpi/v1/organizations_controller_spec.rb +248 -303
  117. data/spec/controllers/mno_enterprise/jpi/v1/team_controller_spec.rb +4 -1
  118. data/spec/controllers/mno_enterprise/pages_controller_spec.rb +21 -0
  119. data/spec/controllers/mno_enterprise/provision_controller_spec.rb +65 -22
  120. data/spec/controllers/mno_enterprise/webhook/o_auth_controller_spec.rb +1 -1
  121. data/spec/jobs/mno_enterprise/event_logger_job_spec.rb +11 -0
  122. data/spec/lib/mno_enterprise/audit_events_listener_spec.rb +28 -0
  123. data/spec/lib/mno_enterprise/intercom_events_listener_spec.rb +110 -0
  124. data/spec/mailer/mno_enterprise/system_notification_mailer_spec.rb +81 -46
  125. data/spec/routing/mno_enterprise/jpi/v1/admin/app_instances_controller_routing_spec.rb +11 -0
  126. data/spec/routing/mno_enterprise/jpi/v1/admin/app_reviews_controller_routing_spec.rb +19 -0
  127. data/spec/routing/mno_enterprise/jpi/v1/app_instances_controller_routing_spec.rb +9 -2
  128. data/spec/routing/mno_enterprise/jpi/v1/app_reviews_controller_routing_spec.rb +15 -0
  129. data/spec/routing/mno_enterprise/jpi/v1/current_users_controller_routing_spec.rb +5 -0
  130. data/spec/routing/mno_enterprise/jpi/v1/impac/alerts_controller_routing_spec.rb +24 -0
  131. data/spec/routing/mno_enterprise/jpi/v1/impac/dashboards_controller_routing_spec.rb +28 -0
  132. data/spec/routing/mno_enterprise/jpi/v1/impac/kpis_controller_routing_spec.rb +17 -11
  133. data/spec/routing/mno_enterprise/jpi/v1/impac/widgets_controller_routing_spec.rb +24 -0
  134. data/spec/routing/mno_enterprise/jpi/v1/marketplace_controller_routing_spec.rb +2 -2
  135. data/spec/routing/mno_enterprise/pages_controller_routing_spec.rb +4 -0
  136. metadata +178 -9
  137. data/app/controllers/mno_enterprise/jpi/v1/industry_bundle_controller.rb +0 -25
  138. data/app/controllers/mno_enterprise/jpi/v1/shopping_cart_controller.rb +0 -93
  139. data/spec/lib/mno_enterprise/event_logger_spec.rb +0 -28
@@ -0,0 +1,11 @@
1
+ require 'rails_helper'
2
+
3
+ module MnoEnterprise
4
+ RSpec.describe Jpi::V1::Admin::AppInstancesController, type: :routing do
5
+ routes { MnoEnterprise::Engine.routes }
6
+
7
+ it 'routes to #destroy' do
8
+ expect(delete('/jpi/v1/admin/app_instances/1')).to route_to("mno_enterprise/jpi/v1/admin/app_instances#destroy", id: '1', format: "json" )
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,19 @@
1
+ require 'rails_helper'
2
+
3
+ module MnoEnterprise
4
+ RSpec.describe Jpi::V1::Admin::UsersController, type: :routing do
5
+ routes { MnoEnterprise::Engine.routes }
6
+
7
+ it 'routes to #index' do
8
+ expect(get('/jpi/v1/admin/app_reviews')).to route_to('mno_enterprise/jpi/v1/admin/app_reviews#index', format: 'json')
9
+ end
10
+
11
+ it 'routes to #show' do
12
+ expect(get('/jpi/v1/admin/app_reviews/1')).to route_to('mno_enterprise/jpi/v1/admin/app_reviews#show', format: 'json', id: '1')
13
+ end
14
+
15
+ it 'routes to #update' do
16
+ expect(put('/jpi/v1/admin/app_reviews/1')).to route_to('mno_enterprise/jpi/v1/admin/app_reviews#update', id: '1', format: 'json')
17
+ end
18
+ end
19
+ end
@@ -3,10 +3,17 @@ require 'rails_helper'
3
3
  module MnoEnterprise
4
4
  RSpec.describe Jpi::V1::AppInstancesController, type: :routing do
5
5
  routes { MnoEnterprise::Engine.routes }
6
-
6
+
7
7
  it 'routes to #index' do
8
8
  expect(get('/jpi/v1/organizations/1/app_instances')).to route_to("mno_enterprise/jpi/v1/app_instances#index", organization_id: '1')
9
9
  end
10
+
11
+ it 'routes to #create' do
12
+ expect(post('/jpi/v1/organizations/1/app_instances')).to route_to("mno_enterprise/jpi/v1/app_instances#create", organization_id: '1' )
13
+ end
14
+
15
+ it 'routes to #destroy' do
16
+ expect(delete('/jpi/v1/app_instances/1')).to route_to("mno_enterprise/jpi/v1/app_instances#destroy", id: '1' )
17
+ end
10
18
  end
11
19
  end
12
-
@@ -0,0 +1,15 @@
1
+ require 'rails_helper'
2
+
3
+ module MnoEnterprise
4
+ RSpec.describe Jpi::V1::AppReviewsController, type: :routing do
5
+ routes { MnoEnterprise::Engine.routes }
6
+
7
+ it 'routes to #index' do
8
+ expect(get('/jpi/v1/marketplace/1/app_reviews')).to route_to("mno_enterprise/jpi/v1/app_reviews#index", id: '1')
9
+ end
10
+ it 'routes to #create' do
11
+ expect(post('/jpi/v1/marketplace/1/app_reviews')).to route_to("mno_enterprise/jpi/v1/app_reviews#create", id: '1')
12
+ end
13
+ end
14
+ end
15
+
@@ -2,6 +2,7 @@ require 'rails_helper'
2
2
 
3
3
  module MnoEnterprise
4
4
  RSpec.describe Jpi::V1::CurrentUsersController, type: :routing do
5
+ let!(:user) { build(:user, :with_deletion_request, :with_organizations) }
5
6
  routes { MnoEnterprise::Engine.routes }
6
7
 
7
8
  it 'routes to #show' do
@@ -12,6 +13,10 @@ module MnoEnterprise
12
13
  expect(put('/jpi/v1/current_user')).to route_to("mno_enterprise/jpi/v1/current_users#update")
13
14
  end
14
15
 
16
+ it 'routes to #register_developer' do
17
+ expect(put('/jpi/v1/current_user/register_developer')).to route_to("mno_enterprise/jpi/v1/current_users#register_developer")
18
+ end
19
+
15
20
  it 'routes to #update_password' do
16
21
  expect(put('/jpi/v1/current_user/update_password')).to route_to("mno_enterprise/jpi/v1/current_users#update_password")
17
22
  end
@@ -0,0 +1,24 @@
1
+ require 'rails_helper'
2
+
3
+ module MnoEnterprise
4
+ RSpec.describe Jpi::V1::Impac::AlertsController, type: :routing do
5
+ routes { MnoEnterprise::Engine.routes }
6
+
7
+ it 'routes to #index' do
8
+ expect(get('/jpi/v1/impac/alerts')).to route_to('mno_enterprise/jpi/v1/impac/alerts#index')
9
+ end
10
+
11
+ it 'routes to #update' do
12
+ expect(put('/jpi/v1/impac/alerts/2')).to route_to('mno_enterprise/jpi/v1/impac/alerts#update', id: '2')
13
+ expect(patch('/jpi/v1/impac/alerts/2')).to route_to('mno_enterprise/jpi/v1/impac/alerts#update', id: '2')
14
+ end
15
+
16
+ it 'routes to #destroy' do
17
+ expect(delete('/jpi/v1/impac/alerts/2')).to route_to('mno_enterprise/jpi/v1/impac/alerts#destroy', id: '2')
18
+ end
19
+
20
+ it 'routes to #create (kpi nested)' do
21
+ expect(post('/jpi/v1/impac/kpis/2/alerts')).to route_to('mno_enterprise/jpi/v1/impac/alerts#create', kpi_id: '2')
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,28 @@
1
+ require 'rails_helper'
2
+
3
+ module MnoEnterprise
4
+ RSpec.describe Jpi::V1::Impac::DashboardsController, type: :routing do
5
+ routes { MnoEnterprise::Engine.routes }
6
+
7
+ it 'routes to #index' do
8
+ expect(get('/jpi/v1/impac/dashboards')).to route_to('mno_enterprise/jpi/v1/impac/dashboards#index')
9
+ end
10
+
11
+ it 'routes to #create' do
12
+ expect(post('/jpi/v1/impac/dashboards')).to route_to('mno_enterprise/jpi/v1/impac/dashboards#create')
13
+ end
14
+
15
+ it 'routes to #show' do
16
+ expect(get('/jpi/v1/impac/dashboards/2')).to route_to('mno_enterprise/jpi/v1/impac/dashboards#show', id: '2')
17
+ end
18
+
19
+ it 'routes to #update' do
20
+ expect(put('/jpi/v1/impac/dashboards/2')).to route_to('mno_enterprise/jpi/v1/impac/dashboards#update', id: '2')
21
+ expect(patch('/jpi/v1/impac/dashboards/2')).to route_to('mno_enterprise/jpi/v1/impac/dashboards#update', id: '2')
22
+ end
23
+
24
+ it 'routes to #destroy' do
25
+ expect(delete('/jpi/v1/impac/dashboards/2')).to route_to('mno_enterprise/jpi/v1/impac/dashboards#destroy', id: '2')
26
+ end
27
+ end
28
+ end
@@ -3,20 +3,26 @@ require 'rails_helper'
3
3
  module MnoEnterprise
4
4
  RSpec.describe Jpi::V1::Impac::KpisController, type: :routing do
5
5
  routes { MnoEnterprise::Engine.routes }
6
-
7
- describe 'collection routes (dashboard nested)' do
8
- it 'routes to #update' do
9
- expect(put('/jpi/v1/impac/kpis/2')).to route_to('mno_enterprise/jpi/v1/impac/kpis#update', id: '2')
10
- end
11
6
 
12
- it 'routes to #destroy' do
13
- expect(delete('/jpi/v1/impac/kpis/2')).to route_to('mno_enterprise/jpi/v1/impac/kpis#destroy', id: '2')
14
- end
7
+ it 'routes to #index' do
8
+ expect(get('/jpi/v1/impac/kpis')).to route_to('mno_enterprise/jpi/v1/impac/kpis#index')
9
+ end
10
+
11
+ it 'routes to #show' do
12
+ expect(get('/jpi/v1/impac/kpis/2')).to route_to('mno_enterprise/jpi/v1/impac/kpis#show', id: '2')
13
+ end
15
14
 
16
- it 'routes to #create' do
17
- expect(post('/jpi/v1/impac/dashboards/1/kpis')).to route_to('mno_enterprise/jpi/v1/impac/kpis#create', dashboard_id: '1')
18
- end
15
+ it 'routes to #update' do
16
+ expect(put('/jpi/v1/impac/kpis/2')).to route_to('mno_enterprise/jpi/v1/impac/kpis#update', id: '2')
17
+ expect(patch('/jpi/v1/impac/kpis/2')).to route_to('mno_enterprise/jpi/v1/impac/kpis#update', id: '2')
19
18
  end
20
19
 
20
+ it 'routes to #destroy' do
21
+ expect(delete('/jpi/v1/impac/kpis/2')).to route_to('mno_enterprise/jpi/v1/impac/kpis#destroy', id: '2')
22
+ end
23
+
24
+ it 'routes to #create (dashboard nested)' do
25
+ expect(post('/jpi/v1/impac/dashboards/1/kpis')).to route_to('mno_enterprise/jpi/v1/impac/kpis#create', dashboard_id: '1')
26
+ end
21
27
  end
22
28
  end
@@ -0,0 +1,24 @@
1
+ require 'rails_helper'
2
+
3
+ module MnoEnterprise
4
+ RSpec.describe Jpi::V1::Impac::WidgetsController, type: :routing do
5
+ routes { MnoEnterprise::Engine.routes }
6
+
7
+ it 'routes to #create (dashboard nested)' do
8
+ expect(post('/jpi/v1/impac/dashboards/2/widgets')).to route_to('mno_enterprise/jpi/v1/impac/widgets#create', dashboard_id: '2')
9
+ end
10
+
11
+ it 'routes to #update' do
12
+ expect(put('/jpi/v1/impac/widgets/2')).to route_to('mno_enterprise/jpi/v1/impac/widgets#update', id: '2')
13
+ expect(patch('/jpi/v1/impac/widgets/2')).to route_to('mno_enterprise/jpi/v1/impac/widgets#update', id: '2')
14
+ end
15
+
16
+ it 'routes to #destroy' do
17
+ expect(delete('/jpi/v1/impac/widgets/2')).to route_to('mno_enterprise/jpi/v1/impac/widgets#destroy', id: '2')
18
+ end
19
+
20
+ it 'routes to #index' do
21
+ expect(get('/jpi/v1/impac/organizations/1/widgets')).to route_to('mno_enterprise/jpi/v1/impac/widgets#index', organization_id: '1')
22
+ end
23
+ end
24
+ end
@@ -3,11 +3,11 @@ require 'rails_helper'
3
3
  module MnoEnterprise
4
4
  RSpec.describe Jpi::V1::MarketplaceController, type: :routing do
5
5
  routes { MnoEnterprise::Engine.routes }
6
-
6
+
7
7
  it 'routes to #index' do
8
8
  expect(get('/jpi/v1/marketplace')).to route_to("mno_enterprise/jpi/v1/marketplace#index")
9
9
  end
10
-
10
+
11
11
  it 'routes to #show' do
12
12
  expect(get('/jpi/v1/marketplace/1')).to route_to("mno_enterprise/jpi/v1/marketplace#show", id: '1')
13
13
  end
@@ -25,5 +25,9 @@ module MnoEnterprise
25
25
  it 'routes to #app_logout' do
26
26
  expect(get("/app_logout")).to route_to("mno_enterprise/pages#app_logout")
27
27
  end
28
+
29
+ it 'routes to #terms' do
30
+ expect(get("/terms")).to route_to("mno_enterprise/pages#terms")
31
+ end
28
32
  end
29
33
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mno-enterprise-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.4
4
+ version: 3.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arnaud Lachaume
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-06-05 00:00:00.000000000 Z
12
+ date: 2017-06-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mno-enterprise-core
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - '='
19
19
  - !ruby/object:Gem::Version
20
- version: 3.1.4
20
+ version: 3.2.0
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - '='
26
26
  - !ruby/object:Gem::Version
27
- version: 3.1.4
27
+ version: 3.2.0
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: jbuilder
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -95,6 +95,20 @@ dependencies:
95
95
  - - "~>"
96
96
  - !ruby/object:Gem::Version
97
97
  version: 0.13.7
98
+ - !ruby/object:Gem::Dependency
99
+ name: credit_card_validations
100
+ requirement: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - "~>"
103
+ - !ruby/object:Gem::Version
104
+ version: 3.4.0
105
+ type: :runtime
106
+ prerelease: false
107
+ version_requirements: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - "~>"
110
+ - !ruby/object:Gem::Version
111
+ version: 3.4.0
98
112
  - !ruby/object:Gem::Dependency
99
113
  name: sprockets-rails
100
114
  requirement: !ruby/object:Gem::Requirement
@@ -109,6 +123,76 @@ dependencies:
109
123
  - - "~>"
110
124
  - !ruby/object:Gem::Version
111
125
  version: '2.3'
126
+ - !ruby/object:Gem::Dependency
127
+ name: intercom
128
+ requirement: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - "~>"
131
+ - !ruby/object:Gem::Version
132
+ version: 3.5.4
133
+ type: :development
134
+ prerelease: false
135
+ version_requirements: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - "~>"
138
+ - !ruby/object:Gem::Version
139
+ version: 3.5.4
140
+ - !ruby/object:Gem::Dependency
141
+ name: omniauth-openid
142
+ requirement: !ruby/object:Gem::Requirement
143
+ requirements:
144
+ - - "~>"
145
+ - !ruby/object:Gem::Version
146
+ version: '1.0'
147
+ type: :development
148
+ prerelease: false
149
+ version_requirements: !ruby/object:Gem::Requirement
150
+ requirements:
151
+ - - "~>"
152
+ - !ruby/object:Gem::Version
153
+ version: '1.0'
154
+ - !ruby/object:Gem::Dependency
155
+ name: omniauth-linkedin-oauth2
156
+ requirement: !ruby/object:Gem::Requirement
157
+ requirements:
158
+ - - "~>"
159
+ - !ruby/object:Gem::Version
160
+ version: 0.1.5
161
+ type: :development
162
+ prerelease: false
163
+ version_requirements: !ruby/object:Gem::Requirement
164
+ requirements:
165
+ - - "~>"
166
+ - !ruby/object:Gem::Version
167
+ version: 0.1.5
168
+ - !ruby/object:Gem::Dependency
169
+ name: omniauth-google-oauth2
170
+ requirement: !ruby/object:Gem::Requirement
171
+ requirements:
172
+ - - "~>"
173
+ - !ruby/object:Gem::Version
174
+ version: 0.2.6
175
+ type: :development
176
+ prerelease: false
177
+ version_requirements: !ruby/object:Gem::Requirement
178
+ requirements:
179
+ - - "~>"
180
+ - !ruby/object:Gem::Version
181
+ version: 0.2.6
182
+ - !ruby/object:Gem::Dependency
183
+ name: omniauth-facebook
184
+ requirement: !ruby/object:Gem::Requirement
185
+ requirements:
186
+ - - "~>"
187
+ - !ruby/object:Gem::Version
188
+ version: 2.0.1
189
+ type: :development
190
+ prerelease: false
191
+ version_requirements: !ruby/object:Gem::Requirement
192
+ requirements:
193
+ - - "~>"
194
+ - !ruby/object:Gem::Version
195
+ version: 2.0.1
112
196
  description: Maestrano Enterprise - essentials API
113
197
  email:
114
198
  - developers@maestrano.com
@@ -130,6 +214,10 @@ files:
130
214
  - app/controllers/mno_enterprise/auth/unlocks_controller.rb
131
215
  - app/controllers/mno_enterprise/deletion_requests_controller.rb
132
216
  - app/controllers/mno_enterprise/impersonate_controller.rb
217
+ - app/controllers/mno_enterprise/jpi/v1/admin/app_answers_controller.rb
218
+ - app/controllers/mno_enterprise/jpi/v1/admin/app_comments_controller.rb
219
+ - app/controllers/mno_enterprise/jpi/v1/admin/app_instances_controller.rb
220
+ - app/controllers/mno_enterprise/jpi/v1/admin/app_reviews_controller.rb
133
221
  - app/controllers/mno_enterprise/jpi/v1/admin/audit_events_controller.rb
134
222
  - app/controllers/mno_enterprise/jpi/v1/admin/base_resource_controller.rb
135
223
  - app/controllers/mno_enterprise/jpi/v1/admin/cloud_apps_controller.rb
@@ -139,24 +227,29 @@ files:
139
227
  - app/controllers/mno_enterprise/jpi/v1/admin/tenant_invoices_controller.rb
140
228
  - app/controllers/mno_enterprise/jpi/v1/admin/theme_controller.rb
141
229
  - app/controllers/mno_enterprise/jpi/v1/admin/users_controller.rb
230
+ - app/controllers/mno_enterprise/jpi/v1/app_answers_controller.rb
231
+ - app/controllers/mno_enterprise/jpi/v1/app_comments_controller.rb
232
+ - app/controllers/mno_enterprise/jpi/v1/app_feedbacks_controller.rb
142
233
  - app/controllers/mno_enterprise/jpi/v1/app_instances_controller.rb
143
234
  - app/controllers/mno_enterprise/jpi/v1/app_instances_sync_controller.rb
235
+ - app/controllers/mno_enterprise/jpi/v1/app_questions_controller.rb
236
+ - app/controllers/mno_enterprise/jpi/v1/app_reviews_controller.rb
144
237
  - app/controllers/mno_enterprise/jpi/v1/base_resource_controller.rb
145
238
  - app/controllers/mno_enterprise/jpi/v1/current_users_controller.rb
146
239
  - app/controllers/mno_enterprise/jpi/v1/deletion_requests_controller.rb
240
+ - app/controllers/mno_enterprise/jpi/v1/impac/alerts_controller.rb
147
241
  - app/controllers/mno_enterprise/jpi/v1/impac/dashboards_controller.rb
148
242
  - app/controllers/mno_enterprise/jpi/v1/impac/kpis_controller.rb
149
243
  - app/controllers/mno_enterprise/jpi/v1/impac/widgets_controller.rb
150
- - app/controllers/mno_enterprise/jpi/v1/industry_bundle_controller.rb
151
244
  - app/controllers/mno_enterprise/jpi/v1/marketplace_controller.rb
152
245
  - app/controllers/mno_enterprise/jpi/v1/organizations_controller.rb
153
- - app/controllers/mno_enterprise/jpi/v1/shopping_cart_controller.rb
154
246
  - app/controllers/mno_enterprise/jpi/v1/teams_controller.rb
155
247
  - app/controllers/mno_enterprise/org_invites_controller.rb
156
248
  - app/controllers/mno_enterprise/pages_controller.rb
157
249
  - app/controllers/mno_enterprise/provision_controller.rb
158
250
  - app/controllers/mno_enterprise/status_controller.rb
159
251
  - app/controllers/mno_enterprise/webhook/o_auth_controller.rb
252
+ - app/jobs/mno_enterprise/event_logger_job.rb
160
253
  - app/mailers/mno_enterprise/system_notification_mailer.rb
161
254
  - app/models/mno_enterprise/health_check.rb
162
255
  - app/views/devise/password_expired/show.html.haml
@@ -174,9 +267,15 @@ files:
174
267
  - app/views/mno_enterprise/auth/sessions/_form.html.haml
175
268
  - app/views/mno_enterprise/auth/sessions/new.html.haml
176
269
  - app/views/mno_enterprise/auth/shared/_links.html.haml
270
+ - app/views/mno_enterprise/auth/shared/_omniauth.html.haml
177
271
  - app/views/mno_enterprise/auth/unlocks/_form.html.haml
178
272
  - app/views/mno_enterprise/auth/unlocks/new.html.haml
179
273
  - app/views/mno_enterprise/deletion_requests/show.html.haml
274
+ - app/views/mno_enterprise/jpi/v1/admin/app_answers/show.json.jbuilder
275
+ - app/views/mno_enterprise/jpi/v1/admin/app_comments/show.json.jbuilder
276
+ - app/views/mno_enterprise/jpi/v1/admin/app_reviews/_app_review.json.jbuilder
277
+ - app/views/mno_enterprise/jpi/v1/admin/app_reviews/index.json.jbuilder
278
+ - app/views/mno_enterprise/jpi/v1/admin/app_reviews/show.json.jbuilder
180
279
  - app/views/mno_enterprise/jpi/v1/admin/audit_events/_audit_event.json.jbuilder
181
280
  - app/views/mno_enterprise/jpi/v1/admin/audit_events/index.json.jbuilder
182
281
  - app/views/mno_enterprise/jpi/v1/admin/base_resource/_member.json.jbuilder
@@ -199,17 +298,39 @@ files:
199
298
  - app/views/mno_enterprise/jpi/v1/admin/users/_user.json.jbuilder
200
299
  - app/views/mno_enterprise/jpi/v1/admin/users/index.json.jbuilder
201
300
  - app/views/mno_enterprise/jpi/v1/admin/users/show.json.jbuilder
301
+ - app/views/mno_enterprise/jpi/v1/app_answers/_resource.json.jbuilder
302
+ - app/views/mno_enterprise/jpi/v1/app_answers/index.json.jbuilder
303
+ - app/views/mno_enterprise/jpi/v1/app_answers/show.json.jbuilder
304
+ - app/views/mno_enterprise/jpi/v1/app_comments/_resource.json.jbuilder
305
+ - app/views/mno_enterprise/jpi/v1/app_comments/index.json.jbuilder
306
+ - app/views/mno_enterprise/jpi/v1/app_comments/show.json.jbuilder
307
+ - app/views/mno_enterprise/jpi/v1/app_feedbacks/_comment.json.jbuilder
308
+ - app/views/mno_enterprise/jpi/v1/app_feedbacks/_resource.json.jbuilder
309
+ - app/views/mno_enterprise/jpi/v1/app_feedbacks/index.json.jbuilder
310
+ - app/views/mno_enterprise/jpi/v1/app_feedbacks/show.json.jbuilder
202
311
  - app/views/mno_enterprise/jpi/v1/app_instances/_resource.json.jbuilder
203
312
  - app/views/mno_enterprise/jpi/v1/app_instances/index.json.jbuilder
204
313
  - app/views/mno_enterprise/jpi/v1/app_instances/show.json.jbuilder
314
+ - app/views/mno_enterprise/jpi/v1/app_questions/_answer.json.jbuilder
315
+ - app/views/mno_enterprise/jpi/v1/app_questions/_resource.json.jbuilder
316
+ - app/views/mno_enterprise/jpi/v1/app_questions/index.json.jbuilder
317
+ - app/views/mno_enterprise/jpi/v1/app_questions/show.json.jbuilder
318
+ - app/views/mno_enterprise/jpi/v1/app_reviews/_resource.json.jbuilder
319
+ - app/views/mno_enterprise/jpi/v1/app_reviews/index.json.jbuilder
320
+ - app/views/mno_enterprise/jpi/v1/app_reviews/show.json.jbuilder
321
+ - app/views/mno_enterprise/jpi/v1/base_resource/_app_review.json.jbuilder
205
322
  - app/views/mno_enterprise/jpi/v1/billing/index.json.jbuilder
206
323
  - app/views/mno_enterprise/jpi/v1/current_users/show.json.jbuilder
324
+ - app/views/mno_enterprise/jpi/v1/impac/alerts/_alert.json.jbuilder
325
+ - app/views/mno_enterprise/jpi/v1/impac/alerts/index.json.jbuilder
326
+ - app/views/mno_enterprise/jpi/v1/impac/alerts/show.json.jbuilder
207
327
  - app/views/mno_enterprise/jpi/v1/impac/dashboards/_dashboard.json.jbuilder
208
328
  - app/views/mno_enterprise/jpi/v1/impac/dashboards/index.json.jbuilder
209
329
  - app/views/mno_enterprise/jpi/v1/impac/dashboards/show.json.jbuilder
210
330
  - app/views/mno_enterprise/jpi/v1/impac/kpis/_kpi.json.jbuilder
211
331
  - app/views/mno_enterprise/jpi/v1/impac/kpis/show.json.jbuilder
212
332
  - app/views/mno_enterprise/jpi/v1/impac/widgets/_widget.json.jbuilder
333
+ - app/views/mno_enterprise/jpi/v1/impac/widgets/index.json.jbuilder
213
334
  - app/views/mno_enterprise/jpi/v1/impac/widgets/show.json.jbuilder
214
335
  - app/views/mno_enterprise/jpi/v1/marketplace/_app.json.jbuilder
215
336
  - app/views/mno_enterprise/jpi/v1/marketplace/index.json.jbuilder
@@ -236,6 +357,7 @@ files:
236
357
  - app/views/mno_enterprise/pages/app_logout.html.haml
237
358
  - app/views/mno_enterprise/pages/billing_details_required.html.haml
238
359
  - app/views/mno_enterprise/pages/loading.html.erb
360
+ - app/views/mno_enterprise/pages/terms.html.haml
239
361
  - app/views/mno_enterprise/provision/_provision_apps.html.haml
240
362
  - app/views/mno_enterprise/provision/_select_organization.html.haml
241
363
  - app/views/mno_enterprise/provision/new.html.haml
@@ -252,23 +374,35 @@ files:
252
374
  - lib/mno-enterprise-api.rb
253
375
  - lib/mno_enterprise/api.rb
254
376
  - lib/mno_enterprise/api/engine.rb
377
+ - lib/mno_enterprise/audit_events_listener.rb
255
378
  - lib/mno_enterprise/concerns/controllers/deletion_requests_controller.rb
256
379
  - lib/mno_enterprise/concerns/controllers/jpi/v1/admin/base_resource_controller.rb
380
+ - lib/mno_enterprise/concerns/controllers/jpi/v1/app_instances_controller.rb
257
381
  - lib/mno_enterprise/concerns/controllers/jpi/v1/current_users_controller.rb
258
382
  - lib/mno_enterprise/concerns/controllers/jpi/v1/deletion_requests_controller.rb
383
+ - lib/mno_enterprise/concerns/controllers/jpi/v1/impac/alerts_controller.rb
259
384
  - lib/mno_enterprise/concerns/controllers/jpi/v1/impac/dashboards_controller.rb
385
+ - lib/mno_enterprise/concerns/controllers/jpi/v1/impac/kpis_controller.rb
260
386
  - lib/mno_enterprise/concerns/controllers/jpi/v1/impac/widgets_controller.rb
387
+ - lib/mno_enterprise/concerns/controllers/jpi/v1/marketplace_controller.rb
261
388
  - lib/mno_enterprise/concerns/controllers/jpi/v1/organizations_controller.rb
389
+ - lib/mno_enterprise/concerns/controllers/jpi/v1/teams_controller.rb
262
390
  - lib/mno_enterprise/concerns/controllers/org_invites_controller.rb
263
391
  - lib/mno_enterprise/concerns/controllers/pages_controller.rb
264
392
  - lib/mno_enterprise/concerns/controllers/provision_controller.rb
265
393
  - lib/mno_enterprise/concerns/controllers/webhook/o_auth_controller.rb
266
394
  - lib/mno_enterprise/concerns/mailers/system_notification_mailer.rb
267
395
  - lib/mno_enterprise/event_logger.rb
396
+ - lib/mno_enterprise/intercom_events_listener.rb
268
397
  - lib/tasks/non_digested_assets.rake
269
398
  - spec/controllers/mno_enterprise/auth/confirmation_controller_spec.rb
399
+ - spec/controllers/mno_enterprise/auth/omniauth_callback_controller_spec.rb
270
400
  - spec/controllers/mno_enterprise/deletion_requests_controller_spec.rb
271
401
  - spec/controllers/mno_enterprise/impersonate_controller_spec.rb
402
+ - spec/controllers/mno_enterprise/jpi/v1/admin/app_answers_controller_spec.rb
403
+ - spec/controllers/mno_enterprise/jpi/v1/admin/app_comments_controller_spec.rb
404
+ - spec/controllers/mno_enterprise/jpi/v1/admin/app_instances_controller_spec.rb
405
+ - spec/controllers/mno_enterprise/jpi/v1/admin/app_reviews_controller_spec.rb
272
406
  - spec/controllers/mno_enterprise/jpi/v1/admin/audit_events_controller_spec.rb
273
407
  - spec/controllers/mno_enterprise/jpi/v1/admin/cloud_apps_controller_spec.rb
274
408
  - spec/controllers/mno_enterprise/jpi/v1/admin/invites_controller_spec.rb
@@ -276,11 +410,18 @@ files:
276
410
  - spec/controllers/mno_enterprise/jpi/v1/admin/organizations_controller_spec.rb
277
411
  - spec/controllers/mno_enterprise/jpi/v1/admin/tenant_invoices_controller_spec.rb
278
412
  - spec/controllers/mno_enterprise/jpi/v1/admin/users_controller_spec.rb
413
+ - spec/controllers/mno_enterprise/jpi/v1/app_answers_controller_spec.rb
414
+ - spec/controllers/mno_enterprise/jpi/v1/app_comments_controller_spec.rb
415
+ - spec/controllers/mno_enterprise/jpi/v1/app_feedbacks_controller_spec.rb
279
416
  - spec/controllers/mno_enterprise/jpi/v1/app_instances_controller_spec.rb
280
417
  - spec/controllers/mno_enterprise/jpi/v1/app_instances_sync_controller_spec.rb
418
+ - spec/controllers/mno_enterprise/jpi/v1/app_questions_controller_spec.rb
419
+ - spec/controllers/mno_enterprise/jpi/v1/app_reviews_controller_spec.rb
281
420
  - spec/controllers/mno_enterprise/jpi/v1/current_users_controller_spec.rb
282
421
  - spec/controllers/mno_enterprise/jpi/v1/deletion_requests_controller_spec.rb
422
+ - spec/controllers/mno_enterprise/jpi/v1/impac/alerts_controller_spec.rb
283
423
  - spec/controllers/mno_enterprise/jpi/v1/impac/kpis_controller_spec.rb
424
+ - spec/controllers/mno_enterprise/jpi/v1/impac/widgets_controller_spec.rb
284
425
  - spec/controllers/mno_enterprise/jpi/v1/marketplace_controller_spec.rb
285
426
  - spec/controllers/mno_enterprise/jpi/v1/organizations_controller_spec.rb
286
427
  - spec/controllers/mno_enterprise/jpi/v1/team_controller_spec.rb
@@ -289,7 +430,9 @@ files:
289
430
  - spec/controllers/mno_enterprise/provision_controller_spec.rb
290
431
  - spec/controllers/mno_enterprise/status_controller_spec.rb
291
432
  - spec/controllers/mno_enterprise/webhook/o_auth_controller_spec.rb
292
- - spec/lib/mno_enterprise/event_logger_spec.rb
433
+ - spec/jobs/mno_enterprise/event_logger_job_spec.rb
434
+ - spec/lib/mno_enterprise/audit_events_listener_spec.rb
435
+ - spec/lib/mno_enterprise/intercom_events_listener_spec.rb
293
436
  - spec/mailer/mno_enterprise/system_notification_mailer_spec.rb
294
437
  - spec/rails_helper.rb
295
438
  - spec/requests/devise/authentication_spec.rb
@@ -300,6 +443,8 @@ files:
300
443
  - spec/routing/devise/sessions_routing_spec.rb
301
444
  - spec/routing/mno_enterprise/deletion_requests_controller_routing_spec.rb
302
445
  - spec/routing/mno_enterprise/impersonate_controller_routing_spec.rb
446
+ - spec/routing/mno_enterprise/jpi/v1/admin/app_instances_controller_routing_spec.rb
447
+ - spec/routing/mno_enterprise/jpi/v1/admin/app_reviews_controller_routing_spec.rb
303
448
  - spec/routing/mno_enterprise/jpi/v1/admin/audit_events_controller_routing_spec.rb
304
449
  - spec/routing/mno_enterprise/jpi/v1/admin/cloud_apps_controller_routing_spec.rb
305
450
  - spec/routing/mno_enterprise/jpi/v1/admin/invites_controller_routing_spec.rb
@@ -310,9 +455,13 @@ files:
310
455
  - spec/routing/mno_enterprise/jpi/v1/admin/users_controller_routing_spec.rb
311
456
  - spec/routing/mno_enterprise/jpi/v1/app_instances_controller_routing_spec.rb
312
457
  - spec/routing/mno_enterprise/jpi/v1/app_instances_sync_controller_routing_spec.rb
458
+ - spec/routing/mno_enterprise/jpi/v1/app_reviews_controller_routing_spec.rb
313
459
  - spec/routing/mno_enterprise/jpi/v1/current_users_controller_routing_spec.rb
314
460
  - spec/routing/mno_enterprise/jpi/v1/deletion_requests_controller_routing_spec.rb
461
+ - spec/routing/mno_enterprise/jpi/v1/impac/alerts_controller_routing_spec.rb
462
+ - spec/routing/mno_enterprise/jpi/v1/impac/dashboards_controller_routing_spec.rb
315
463
  - spec/routing/mno_enterprise/jpi/v1/impac/kpis_controller_routing_spec.rb
464
+ - spec/routing/mno_enterprise/jpi/v1/impac/widgets_controller_routing_spec.rb
316
465
  - spec/routing/mno_enterprise/jpi/v1/marketplace_controller_routing_spec.rb
317
466
  - spec/routing/mno_enterprise/jpi/v1/organizations_controller_routing_spec.rb
318
467
  - spec/routing/mno_enterprise/jpi/v1/teams_controller_routing_spec.rb
@@ -342,7 +491,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
342
491
  version: '0'
343
492
  requirements: []
344
493
  rubyforge_project:
345
- rubygems_version: 2.4.8
494
+ rubygems_version: 2.6.8
346
495
  signing_key:
347
496
  specification_version: 4
348
497
  summary: Maestrano Enterprise - API
@@ -356,20 +505,26 @@ test_files:
356
505
  - spec/routing/mno_enterprise/org_invites_controller_routing_spec.rb
357
506
  - spec/routing/mno_enterprise/jpi/v1/admin/organizations_controller_routing_spec.rb
358
507
  - spec/routing/mno_enterprise/jpi/v1/admin/tenant_invoices_controller_routing_spec.rb
508
+ - spec/routing/mno_enterprise/jpi/v1/admin/app_instances_controller_routing_spec.rb
359
509
  - spec/routing/mno_enterprise/jpi/v1/admin/audit_events_controller_routing_spec.rb
360
510
  - spec/routing/mno_enterprise/jpi/v1/admin/theme_controller_routing_spec.rb
361
511
  - spec/routing/mno_enterprise/jpi/v1/admin/invoices_controller_routing_spec.rb
362
512
  - spec/routing/mno_enterprise/jpi/v1/admin/invites_controller_routing_spec.rb
363
513
  - spec/routing/mno_enterprise/jpi/v1/admin/users_controller_routing_spec.rb
514
+ - spec/routing/mno_enterprise/jpi/v1/admin/app_reviews_controller_routing_spec.rb
364
515
  - spec/routing/mno_enterprise/jpi/v1/admin/cloud_apps_controller_routing_spec.rb
365
516
  - spec/routing/mno_enterprise/jpi/v1/current_users_controller_routing_spec.rb
366
517
  - spec/routing/mno_enterprise/jpi/v1/deletion_requests_controller_routing_spec.rb
367
518
  - spec/routing/mno_enterprise/jpi/v1/organizations_controller_routing_spec.rb
368
519
  - spec/routing/mno_enterprise/jpi/v1/app_instances_sync_controller_routing_spec.rb
369
520
  - spec/routing/mno_enterprise/jpi/v1/app_instances_controller_routing_spec.rb
521
+ - spec/routing/mno_enterprise/jpi/v1/impac/widgets_controller_routing_spec.rb
370
522
  - spec/routing/mno_enterprise/jpi/v1/impac/kpis_controller_routing_spec.rb
523
+ - spec/routing/mno_enterprise/jpi/v1/impac/alerts_controller_routing_spec.rb
524
+ - spec/routing/mno_enterprise/jpi/v1/impac/dashboards_controller_routing_spec.rb
371
525
  - spec/routing/mno_enterprise/jpi/v1/marketplace_controller_routing_spec.rb
372
526
  - spec/routing/mno_enterprise/jpi/v1/teams_controller_routing_spec.rb
527
+ - spec/routing/mno_enterprise/jpi/v1/app_reviews_controller_routing_spec.rb
373
528
  - spec/routing/devise/confirmation_routing_spec.rb
374
529
  - spec/routing/devise/registrations_routing_spec.rb
375
530
  - spec/routing/devise/sessions_routing_spec.rb
@@ -378,7 +533,8 @@ test_files:
378
533
  - spec/requests/devise/authentication_spec.rb
379
534
  - spec/requests/devise/registration_spec.rb
380
535
  - spec/mailer/mno_enterprise/system_notification_mailer_spec.rb
381
- - spec/lib/mno_enterprise/event_logger_spec.rb
536
+ - spec/lib/mno_enterprise/audit_events_listener_spec.rb
537
+ - spec/lib/mno_enterprise/intercom_events_listener_spec.rb
382
538
  - spec/rails_helper.rb
383
539
  - spec/controllers/mno_enterprise/pages_controller_spec.rb
384
540
  - spec/controllers/mno_enterprise/deletion_requests_controller_spec.rb
@@ -386,20 +542,33 @@ test_files:
386
542
  - spec/controllers/mno_enterprise/provision_controller_spec.rb
387
543
  - spec/controllers/mno_enterprise/org_invites_controller_spec.rb
388
544
  - spec/controllers/mno_enterprise/webhook/o_auth_controller_spec.rb
545
+ - spec/controllers/mno_enterprise/auth/omniauth_callback_controller_spec.rb
389
546
  - spec/controllers/mno_enterprise/auth/confirmation_controller_spec.rb
390
547
  - spec/controllers/mno_enterprise/jpi/v1/admin/audit_events_controller_spec.rb
391
548
  - spec/controllers/mno_enterprise/jpi/v1/admin/cloud_apps_controller_spec.rb
392
549
  - spec/controllers/mno_enterprise/jpi/v1/admin/organizations_controller_spec.rb
393
550
  - spec/controllers/mno_enterprise/jpi/v1/admin/invites_controller_spec.rb
551
+ - spec/controllers/mno_enterprise/jpi/v1/admin/app_instances_controller_spec.rb
552
+ - spec/controllers/mno_enterprise/jpi/v1/admin/app_answers_controller_spec.rb
394
553
  - spec/controllers/mno_enterprise/jpi/v1/admin/invoices_controller_spec.rb
395
554
  - spec/controllers/mno_enterprise/jpi/v1/admin/tenant_invoices_controller_spec.rb
396
555
  - spec/controllers/mno_enterprise/jpi/v1/admin/users_controller_spec.rb
556
+ - spec/controllers/mno_enterprise/jpi/v1/admin/app_reviews_controller_spec.rb
557
+ - spec/controllers/mno_enterprise/jpi/v1/admin/app_comments_controller_spec.rb
558
+ - spec/controllers/mno_enterprise/jpi/v1/app_questions_controller_spec.rb
397
559
  - spec/controllers/mno_enterprise/jpi/v1/current_users_controller_spec.rb
398
560
  - spec/controllers/mno_enterprise/jpi/v1/deletion_requests_controller_spec.rb
399
561
  - spec/controllers/mno_enterprise/jpi/v1/organizations_controller_spec.rb
562
+ - spec/controllers/mno_enterprise/jpi/v1/app_feedbacks_controller_spec.rb
400
563
  - spec/controllers/mno_enterprise/jpi/v1/app_instances_controller_spec.rb
401
564
  - spec/controllers/mno_enterprise/jpi/v1/impac/kpis_controller_spec.rb
565
+ - spec/controllers/mno_enterprise/jpi/v1/impac/widgets_controller_spec.rb
566
+ - spec/controllers/mno_enterprise/jpi/v1/impac/alerts_controller_spec.rb
567
+ - spec/controllers/mno_enterprise/jpi/v1/app_answers_controller_spec.rb
402
568
  - spec/controllers/mno_enterprise/jpi/v1/team_controller_spec.rb
403
569
  - spec/controllers/mno_enterprise/jpi/v1/app_instances_sync_controller_spec.rb
404
570
  - spec/controllers/mno_enterprise/jpi/v1/marketplace_controller_spec.rb
571
+ - spec/controllers/mno_enterprise/jpi/v1/app_reviews_controller_spec.rb
572
+ - spec/controllers/mno_enterprise/jpi/v1/app_comments_controller_spec.rb
405
573
  - spec/controllers/mno_enterprise/status_controller_spec.rb
574
+ - spec/jobs/mno_enterprise/event_logger_job_spec.rb