finapps 6.12.0 → 6.13.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6ce7c7f8fc34e608321adfbbd46536d067f7d50ad907ae0990623b840431f4c7
4
- data.tar.gz: 73b85fc49cee872b9c1f0f5e3d9f39493a23bd0f46aeea8f6ef1e0c19979c5e8
3
+ metadata.gz: d750e401b5d936b5b67144236c47a9969d1007e2777232171b4831b4bebe2b08
4
+ data.tar.gz: 3120e93e8acbd4a3b40e946788ab93e86ce064e9530c378d6cf49a91c8826461
5
5
  SHA512:
6
- metadata.gz: a48f06dc8cba7910743355dcd41e93d0835cb5c270b04e94ac11177994ab9397f023504b910b5ae08d00f492db8f7a07b1d586ba0990103fd78493b8aaee5b8c
7
- data.tar.gz: f42a6c18258a88072d36a46d91c2071c648aba643f9a433b762589133d089a7d71839a9feb2a62796f31a019890e64cefca5071056671a1b44f8be6cf4a5e9be
6
+ metadata.gz: 800464206ab8c445fa2fe12c7bd2c2a12d74a7fbc8cf384a0fc0573807deb3d4c70115f4eb0f6f930f66cb3c0f777251510903859885c6087cc46cae7501dd59
7
+ data.tar.gz: de98785d634e7846cc32dc1fa36f5fdca31443cb379b8cc09d15c780e7a53a8dab9e84ebc0cd7a8458a8afac43cc0309d8c89e3d275d1401efd61298d100e1eb
@@ -67,7 +67,7 @@ module FinApps
67
67
  end
68
68
  end
69
69
 
70
- QUERY_RESOURCES = [:query_screenings].freeze
70
+ QUERY_RESOURCES = %i(query_screenings query_users).freeze
71
71
 
72
72
  QUERY_RESOURCES.each do |method|
73
73
  define_method(method) do
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ module FinApps
4
+ module REST
5
+ module Query
6
+ class Users < FinApps::REST::Query::Base
7
+ end
8
+ end
9
+ end
10
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FinApps
4
- VERSION = '6.12.0'
4
+ VERSION = '6.13.0'
5
5
  end
data/lib/finapps.rb CHANGED
@@ -59,6 +59,7 @@ require 'finapps/rest/verix/verix_documents'
59
59
 
60
60
  require 'finapps/rest/query/base'
61
61
  require 'finapps/rest/query/screenings'
62
+ require 'finapps/rest/query/users'
62
63
 
63
64
  require 'finapps/utils/query_builder'
64
65
  require 'finapps/version' unless defined?(FinApps::VERSION)
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'spec_helpers/client'
4
+ require 'spec_helpers/api_request'
5
+
6
+ RSpec.describe FinApps::REST::Query::Users do
7
+ include SpecHelpers::Client
8
+
9
+ subject(:create) { described_class.new(client).create('string') }
10
+
11
+ describe '#create' do
12
+ context 'when valid tenant token is provided' do
13
+ it_behaves_like 'an API request'
14
+ it_behaves_like 'a successful request'
15
+ it 'sends the params in the body of the request' do
16
+ create
17
+ url = "#{versioned_api_path}/query/users"
18
+
19
+ expect(WebMock).to have_requested(:post, url).with(body: 'string')
20
+ end
21
+ end
22
+ end
23
+ end
@@ -9,6 +9,7 @@ require_relative 'routes/edm_transmissions'
9
9
  require_relative 'routes/locations'
10
10
  require_relative 'routes/screening_metadatas'
11
11
  require_relative 'routes/query_screenings'
12
+ require_relative 'routes/query_users'
12
13
  require_relative 'routes/states'
13
14
 
14
15
  module Fake
@@ -30,6 +31,7 @@ module Fake
30
31
  include DocumentsUploadsRoutes
31
32
  include LocationsRoutes
32
33
  include QueryScreeningRoutes
34
+ include QueryUserRoutes
33
35
  include ScreeningsRoutes
34
36
  include ScreeningMetadatasRoutes
35
37
  include StateRoutes
@@ -0,0 +1,21 @@
1
+ [
2
+ {
3
+ "auth0_id": "string",
4
+ "date_created": "2022-06-20T21:02:25Z",
5
+ "date_modified": "2022-06-20T21:02:25Z",
6
+ "email": "string",
7
+ "external_id": "string",
8
+ "first_name": "string",
9
+ "language": "string",
10
+ "last_name": "string",
11
+ "locations": [],
12
+ "memo": "string",
13
+ "metadata": {},
14
+ "phone": [],
15
+ "postal_code": "string",
16
+ "public_id": "string",
17
+ "role": 0,
18
+ "tenant_id": "string",
19
+ "type": "string"
20
+ }
21
+ ]
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Fake
4
+ module QueryUserRoutes
5
+ class << self
6
+ def included(base)
7
+ base.post("/#{base.version}/query/users") do
8
+ json_response 200, 'query/users.json'
9
+ end
10
+ super
11
+ end
12
+ end
13
+ end
14
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: finapps
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.12.0
4
+ version: 6.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erich Quintero
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-08 00:00:00.000000000 Z
11
+ date: 2022-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: finapps_core
@@ -298,6 +298,7 @@ files:
298
298
  - lib/finapps/rest/products.rb
299
299
  - lib/finapps/rest/query/base.rb
300
300
  - lib/finapps/rest/query/screenings.rb
301
+ - lib/finapps/rest/query/users.rb
301
302
  - lib/finapps/rest/screening_metadatas.rb
302
303
  - lib/finapps/rest/screenings.rb
303
304
  - lib/finapps/rest/sessions.rb
@@ -351,6 +352,7 @@ files:
351
352
  - spec/rest/products_spec.rb
352
353
  - spec/rest/query/base_spec.rb
353
354
  - spec/rest/query/screenings_spec.rb
355
+ - spec/rest/query/users_spec.rb
354
356
  - spec/rest/screening_metadatas_spec.rb
355
357
  - spec/rest/screenings_spec.rb
356
358
  - spec/rest/sessions_spec.rb
@@ -421,6 +423,7 @@ files:
421
423
  - spec/support/fixtures/portfolios_consumers.json
422
424
  - spec/support/fixtures/products.json
423
425
  - spec/support/fixtures/query/screenings.json
426
+ - spec/support/fixtures/query/users.json
424
427
  - spec/support/fixtures/resource.json
425
428
  - spec/support/fixtures/resource_not_found.json
426
429
  - spec/support/fixtures/resources.json
@@ -453,6 +456,7 @@ files:
453
456
  - spec/support/routes/edm_transmissions.rb
454
457
  - spec/support/routes/locations.rb
455
458
  - spec/support/routes/query_screenings.rb
459
+ - spec/support/routes/query_users.rb
456
460
  - spec/support/routes/screening_metadatas.rb
457
461
  - spec/support/routes/states.rb
458
462
  - spec/support/screenings_routes.rb