finapps 5.4.1 → 6.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yaml +1 -1
- data/.github/workflows/release.yml +1 -1
- data/.github/workflows/verify-pr-labeled.yml +1 -1
- data/finapps.gemspec +2 -3
- data/lib/finapps/rest/consumers.rb +1 -1
- data/lib/finapps/rest/documents_orders.rb +8 -8
- data/lib/finapps/rest/operators.rb +1 -1
- data/lib/finapps/rest/orders.rb +14 -14
- data/lib/finapps/rest/screenings.rb +3 -3
- data/lib/finapps/version.rb +1 -1
- metadata +45 -65
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2d1efcc9b8c7dcdc6a5e5e109059824df6e96a236b96f5005c740243dc452568
|
4
|
+
data.tar.gz: cc1c19c9d4eaab2d374234a2c68eef27dfe6b315338f80a9adb69c5f3b58f805
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6195fe1d05f38bb505ff9ff87789ea39737a41558482cc9bed279afe4f7299361a1909705bb9f70166af8e7b86d58889d0ee70f4287d0f82da18b321f7d1c724
|
7
|
+
data.tar.gz: dadddb249e1e3b386832994ef92146622f06c29085823756a1f90010e690e60e712009a5ba787abd4a7a12f1d2e552d9020020362a03de636a438804c383d0b6
|
data/.github/workflows/ci.yaml
CHANGED
data/finapps.gemspec
CHANGED
@@ -20,15 +20,14 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.test_files = Dir['spec/**/*.rb']
|
21
21
|
spec.require_paths = ['lib']
|
22
22
|
|
23
|
-
spec.add_runtime_dependency 'finapps_core', '~>
|
23
|
+
spec.add_runtime_dependency 'finapps_core', '~> 6.0', '>= 6.0.0'
|
24
24
|
|
25
25
|
spec.add_development_dependency 'bundler', '~> 2.2', '>= 2.2.16'
|
26
26
|
spec.add_development_dependency 'rake', '~> 13.0', '>= 13.0.1'
|
27
27
|
spec.add_development_dependency 'rspec', '~> 3.10', '>= 3.10.0'
|
28
|
-
spec.add_development_dependency 'rubocop', '~> 1.9', '>= 1.9.1'
|
29
28
|
spec.add_development_dependency 'rubocop-performance', '~> 1.9', '>= 1.9.2'
|
30
29
|
spec.add_development_dependency 'rubocop-rake', '~> 0.5', '>= 0.5.1'
|
31
|
-
spec.add_development_dependency 'rubocop-rspec', '~> 2.
|
30
|
+
spec.add_development_dependency 'rubocop-rspec', '~> 2.4', '>= 2.4.0'
|
32
31
|
spec.add_development_dependency 'simplecov', '~> 0.21', '>= 0.21.2'
|
33
32
|
spec.add_development_dependency 'simplecov-console', '~> 0.9'
|
34
33
|
spec.add_development_dependency 'sinatra', '~> 2.1', '>= 2.1.0'
|
@@ -75,28 +75,28 @@ module FinApps
|
|
75
75
|
return {} unless term
|
76
76
|
|
77
77
|
query = with_space_search(term).concat(name_search(term))
|
78
|
-
{
|
78
|
+
{'$or': query}
|
79
79
|
end
|
80
80
|
|
81
81
|
def name_search(term)
|
82
82
|
search_arr = []
|
83
83
|
if /\s/.match?(term)
|
84
84
|
term.split.each do |t|
|
85
|
-
search_arr.append(
|
86
|
-
search_arr.append(
|
85
|
+
search_arr.append('applicant.first_name': t)
|
86
|
+
search_arr.append('applicant.last_name': t)
|
87
87
|
end
|
88
88
|
end
|
89
89
|
search_arr
|
90
90
|
end
|
91
91
|
|
92
92
|
def with_space_search(term)
|
93
|
-
[{
|
94
|
-
{
|
95
|
-
{
|
96
|
-
{
|
93
|
+
[{'applicant.email': term},
|
94
|
+
{'applicant.first_name': term},
|
95
|
+
{'applicant.last_name': term},
|
96
|
+
{'applicant.external_id': term},
|
97
97
|
{
|
98
98
|
reference_no: {
|
99
|
-
|
99
|
+
'$regex': "^#{term}", '$options': 'i'
|
100
100
|
}
|
101
101
|
}]
|
102
102
|
end
|
data/lib/finapps/rest/orders.rb
CHANGED
@@ -66,28 +66,28 @@ module FinApps
|
|
66
66
|
return {} unless term
|
67
67
|
|
68
68
|
query = search_query_object(term).concat(consumer_name_query(term))
|
69
|
-
{
|
69
|
+
{'$or': query}
|
70
70
|
end
|
71
71
|
|
72
72
|
def consumer_name_query(term)
|
73
73
|
search_arr = []
|
74
74
|
if /\s/.match?(term)
|
75
75
|
term.split.each do |t|
|
76
|
-
search_arr.append(
|
77
|
-
search_arr.append(
|
76
|
+
search_arr.append('applicant.first_name': t)
|
77
|
+
search_arr.append('applicant.last_name': t)
|
78
78
|
end
|
79
79
|
end
|
80
80
|
search_arr
|
81
81
|
end
|
82
82
|
|
83
83
|
def search_query_object(term)
|
84
|
-
[{public_id: {
|
85
|
-
{
|
86
|
-
{
|
87
|
-
{
|
84
|
+
[{public_id: {'$regex': "^#{term}", '$options': 'i'}},
|
85
|
+
{'assignment.last_name': term},
|
86
|
+
{'applicant.first_name': term},
|
87
|
+
{'applicant.last_name': term},
|
88
88
|
{
|
89
|
-
|
90
|
-
|
89
|
+
'requestor.reference_no': {
|
90
|
+
'$regex': "^#{term}", '$options': 'i'
|
91
91
|
}
|
92
92
|
}]
|
93
93
|
end
|
@@ -95,7 +95,7 @@ module FinApps
|
|
95
95
|
def status_query(status)
|
96
96
|
if status
|
97
97
|
if status.is_a?(Array)
|
98
|
-
{status: {
|
98
|
+
{status: {'$in': status.map(&:to_i)}}
|
99
99
|
else
|
100
100
|
{status: status.to_i}
|
101
101
|
end
|
@@ -107,7 +107,7 @@ module FinApps
|
|
107
107
|
def assignment_query(assignment)
|
108
108
|
# translate "" to null assignment
|
109
109
|
if assignment
|
110
|
-
{
|
110
|
+
{'assignment.operator_id': assignment.empty? ? nil : assignment}
|
111
111
|
else
|
112
112
|
{}
|
113
113
|
end
|
@@ -124,9 +124,9 @@ module FinApps
|
|
124
124
|
def relation_query(relation, search_term)
|
125
125
|
if !search_term && !nil_or_empty?(relation)
|
126
126
|
{
|
127
|
-
|
128
|
-
{public_id: {
|
129
|
-
{original_order_id: {
|
127
|
+
'$or': [
|
128
|
+
{public_id: {'$in': relation}},
|
129
|
+
{original_order_id: {'$in': relation}}
|
130
130
|
]
|
131
131
|
}
|
132
132
|
else
|
@@ -62,13 +62,13 @@ module FinApps
|
|
62
62
|
return {} unless term
|
63
63
|
|
64
64
|
query = search_query_object(term)
|
65
|
-
{
|
65
|
+
{'$or': query}
|
66
66
|
end
|
67
67
|
|
68
68
|
def search_query_object(term)
|
69
69
|
[
|
70
|
-
{
|
71
|
-
{
|
70
|
+
{'consumer.public_id': term},
|
71
|
+
{'consumer.email': term}
|
72
72
|
]
|
73
73
|
end
|
74
74
|
end
|
data/lib/finapps/version.rb
CHANGED
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:
|
4
|
+
version: 6.0.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: 2021-
|
11
|
+
date: 2021-06-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: finapps_core
|
@@ -16,20 +16,20 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '6.0'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version:
|
22
|
+
version: 6.0.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - "~>"
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '
|
29
|
+
version: '6.0'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version:
|
32
|
+
version: 6.0.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: bundler
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -90,26 +90,6 @@ dependencies:
|
|
90
90
|
- - ">="
|
91
91
|
- !ruby/object:Gem::Version
|
92
92
|
version: 3.10.0
|
93
|
-
- !ruby/object:Gem::Dependency
|
94
|
-
name: rubocop
|
95
|
-
requirement: !ruby/object:Gem::Requirement
|
96
|
-
requirements:
|
97
|
-
- - "~>"
|
98
|
-
- !ruby/object:Gem::Version
|
99
|
-
version: '1.9'
|
100
|
-
- - ">="
|
101
|
-
- !ruby/object:Gem::Version
|
102
|
-
version: 1.9.1
|
103
|
-
type: :development
|
104
|
-
prerelease: false
|
105
|
-
version_requirements: !ruby/object:Gem::Requirement
|
106
|
-
requirements:
|
107
|
-
- - "~>"
|
108
|
-
- !ruby/object:Gem::Version
|
109
|
-
version: '1.9'
|
110
|
-
- - ">="
|
111
|
-
- !ruby/object:Gem::Version
|
112
|
-
version: 1.9.1
|
113
93
|
- !ruby/object:Gem::Dependency
|
114
94
|
name: rubocop-performance
|
115
95
|
requirement: !ruby/object:Gem::Requirement
|
@@ -156,20 +136,20 @@ dependencies:
|
|
156
136
|
requirements:
|
157
137
|
- - "~>"
|
158
138
|
- !ruby/object:Gem::Version
|
159
|
-
version: '2.
|
139
|
+
version: '2.4'
|
160
140
|
- - ">="
|
161
141
|
- !ruby/object:Gem::Version
|
162
|
-
version: 2.
|
142
|
+
version: 2.4.0
|
163
143
|
type: :development
|
164
144
|
prerelease: false
|
165
145
|
version_requirements: !ruby/object:Gem::Requirement
|
166
146
|
requirements:
|
167
147
|
- - "~>"
|
168
148
|
- !ruby/object:Gem::Version
|
169
|
-
version: '2.
|
149
|
+
version: '2.4'
|
170
150
|
- - ">="
|
171
151
|
- !ruby/object:Gem::Version
|
172
|
-
version: 2.
|
152
|
+
version: 2.4.0
|
173
153
|
- !ruby/object:Gem::Dependency
|
174
154
|
name: simplecov
|
175
155
|
requirement: !ruby/object:Gem::Requirement
|
@@ -471,51 +451,51 @@ signing_key:
|
|
471
451
|
specification_version: 4
|
472
452
|
summary: FinApps REST API ruby client.
|
473
453
|
test_files:
|
474
|
-
- spec/utils/query_builder_spec.rb
|
475
|
-
- spec/spec_helper.rb
|
476
|
-
- spec/support/documents_uploads_routes.rb
|
477
|
-
- spec/support/screenings_routes.rb
|
478
454
|
- spec/support/fake_api.rb
|
455
|
+
- spec/support/screenings_routes.rb
|
456
|
+
- spec/support/documents_uploads_routes.rb
|
457
|
+
- spec/spec_helper.rb
|
479
458
|
- spec/spec_helpers/client.rb
|
480
|
-
- spec/
|
459
|
+
- spec/utils/query_builder_spec.rb
|
460
|
+
- spec/rest/operators_password_resets_spec.rb
|
461
|
+
- spec/rest/esign_templates_spec.rb
|
462
|
+
- spec/rest/consumers_spec.rb
|
481
463
|
- spec/rest/order_reports_spec.rb
|
464
|
+
- spec/rest/products_spec.rb
|
465
|
+
- spec/rest/order_tokens_spec.rb
|
482
466
|
- spec/rest/order_statuses_spec.rb
|
483
|
-
- spec/rest/
|
484
|
-
- spec/rest/
|
485
|
-
- spec/rest/
|
486
|
-
- spec/rest/
|
487
|
-
- spec/rest/
|
488
|
-
- spec/rest/api_request.rb
|
489
|
-
- spec/rest/orders_spec.rb
|
467
|
+
- spec/rest/operators_spec.rb
|
468
|
+
- spec/rest/order_refreshes_spec.rb
|
469
|
+
- spec/rest/client_spec.rb
|
470
|
+
- spec/rest/signed_documents_downloads_spec.rb
|
471
|
+
- spec/rest/documents_orders_spec.rb
|
490
472
|
- spec/rest/screenings_spec.rb
|
491
|
-
- spec/rest/
|
492
|
-
- spec/rest/documents_upload_types_spec.rb
|
493
|
-
- spec/rest/consumers_portfolios_spec.rb
|
494
|
-
- spec/rest/consumers_spec.rb
|
495
|
-
- spec/rest/documents_uploads_spec.rb
|
473
|
+
- spec/rest/portfolios_consumers_spec.rb
|
496
474
|
- spec/rest/tenant_app_settings_spec.rb
|
497
|
-
- spec/rest/
|
475
|
+
- spec/rest/alert_definitions_spec.rb
|
476
|
+
- spec/rest/documents_uploads_spec.rb
|
498
477
|
- spec/rest/order_assignments_spec.rb
|
499
|
-
- spec/rest/operators_spec.rb
|
500
|
-
- spec/rest/documents_orders_spec.rb
|
501
|
-
- spec/rest/tenant_settings_spec.rb
|
502
|
-
- spec/rest/operators_password_resets_spec.rb
|
503
|
-
- spec/rest/portfolios_spec.rb
|
504
|
-
- spec/rest/order_tokens_spec.rb
|
505
|
-
- spec/rest/order_notifications_spec.rb
|
506
|
-
- spec/rest/sessions_spec.rb
|
507
478
|
- spec/rest/verix/verix_documents_spec.rb
|
479
|
+
- spec/rest/verix/verix_records_spec.rb
|
508
480
|
- spec/rest/verix/verix_metadata_spec.rb
|
509
481
|
- spec/rest/verix/verix_pdf_documents_spec.rb
|
510
|
-
- spec/rest/
|
482
|
+
- spec/rest/portfolios_alerts_spec.rb
|
483
|
+
- spec/rest/api_request.rb
|
484
|
+
- spec/rest/plaid/plaid_accounts_spec.rb
|
485
|
+
- spec/rest/plaid/plaid_institution_logos_spec.rb
|
486
|
+
- spec/rest/plaid/plaid_consumer_institutions_spec.rb
|
487
|
+
- spec/rest/plaid/plaid_webhooks_spec.rb
|
488
|
+
- spec/rest/plaid/plaid_account_permissions_spec.rb
|
511
489
|
- spec/rest/alert_occurrences_spec.rb
|
512
490
|
- spec/rest/version_spec.rb
|
513
|
-
- spec/rest/
|
514
|
-
- spec/rest/
|
515
|
-
- spec/rest/
|
516
|
-
- spec/rest/products_spec.rb
|
517
|
-
- spec/rest/client_spec.rb
|
518
|
-
- spec/rest/portfolios_alerts_spec.rb
|
519
|
-
- spec/rest/esign_templates_spec.rb
|
491
|
+
- spec/rest/documents_orders_notifications_spec.rb
|
492
|
+
- spec/rest/order_notifications_spec.rb
|
493
|
+
- spec/rest/orders_spec.rb
|
520
494
|
- spec/rest/portfolio_reports_spec.rb
|
521
|
-
- spec/rest/
|
495
|
+
- spec/rest/documents_upload_types_spec.rb
|
496
|
+
- spec/rest/portfolios_available_consumers_spec.rb
|
497
|
+
- spec/rest/sessions_spec.rb
|
498
|
+
- spec/rest/password_resets_spec.rb
|
499
|
+
- spec/rest/tenant_settings_spec.rb
|
500
|
+
- spec/rest/consumers_portfolios_spec.rb
|
501
|
+
- spec/rest/portfolios_spec.rb
|