roqua-core-api 0.1.1 → 0.2.0
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.
- checksums.yaml +4 -4
- data/ChangeLog.md +8 -0
- data/Gemfile +1 -1
- data/core_api.gemspec +1 -1
- data/lib/roqua/core_api/create_dossier.rb +3 -3
- data/lib/roqua/core_api/create_dossier_group.rb +1 -1
- data/lib/roqua/core_api/create_dossier_group_export_synchronously.rb +1 -1
- data/lib/roqua/core_api/create_professional.rb +2 -2
- data/lib/roqua/core_api/delete_dossier_group_right.rb +1 -1
- data/lib/roqua/core_api/destroy_token_session.rb +1 -1
- data/lib/roqua/core_api/dossier_groups.rb +1 -1
- data/lib/roqua/core_api/dossiers.rb +1 -1
- data/lib/roqua/core_api/list_dossier_group_rights.rb +1 -1
- data/lib/roqua/core_api/people.rb +1 -1
- data/lib/roqua/core_api/person.rb +1 -1
- data/lib/roqua/core_api/send_invite_email.rb +1 -1
- data/lib/roqua/core_api/update_dossier.rb +2 -2
- data/lib/roqua/core_api/update_person.rb +2 -2
- data/lib/roqua/core_api/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aac3ceb72c90b7a84b630bff828aae009bcb05f8
|
4
|
+
data.tar.gz: be357478b0c60d82552a9bd250dbf39a95655cc6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 607a42369fdcdd4d543b707a0c7f83ab34f412824333b6c7327e31c6703a3e93b778d421593da9daf2253e4bf6effa9ff9cc0a418cc3480b2adcc69a90d3d542
|
7
|
+
data.tar.gz: 9d590a27852e4818192b1e05a6e5ba835c61fc55ac1a308cb5a93d62fd329d4cfcc9f83eabae7aea0fd363ae1c567a51187310b13d588e02ecf6f35f8756ae38
|
data/ChangeLog.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
* Added TokenSession model and CreateTokenSession, DestroyTokenSession usecases.
|
2
2
|
|
3
|
+
### 0.2.0
|
4
|
+
|
5
|
+
Active interaction to v2.
|
6
|
+
|
7
|
+
### 0.1.1
|
8
|
+
|
9
|
+
* Add token session.
|
10
|
+
|
3
11
|
### 0.1.0
|
4
12
|
|
5
13
|
* BACKWARD INCOMPATIBLE: CreateDossier now needs a dossier and a person object.
|
data/Gemfile
CHANGED
data/core_api.gemspec
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |gem|
|
|
18
18
|
gem.require_paths = ['lib']
|
19
19
|
|
20
20
|
gem.add_dependency 'httparty', '~> 0.12.0'
|
21
|
-
gem.add_dependency 'active_interaction', '~>
|
21
|
+
gem.add_dependency 'active_interaction', '~> 2.1'
|
22
22
|
gem.add_dependency 'omniauth-oauth2', '~> 1.1'
|
23
23
|
gem.add_dependency 'virtus', '~> 1.0'
|
24
24
|
|
@@ -2,10 +2,10 @@ module Roqua
|
|
2
2
|
module CoreApi
|
3
3
|
# @api private
|
4
4
|
class CreateDossier < Base
|
5
|
-
|
5
|
+
object :session, class: Sessions::AuthSession
|
6
6
|
string :dossier_group_id
|
7
|
-
|
8
|
-
|
7
|
+
object :dossier, class: Models::Dossier, default: nil
|
8
|
+
object :person, class: Models::Person, default: nil
|
9
9
|
|
10
10
|
def execute
|
11
11
|
response = session.post "/dossier_groups/#{dossier_group_id}/dossiers",
|
@@ -2,9 +2,9 @@ module Roqua
|
|
2
2
|
module CoreApi
|
3
3
|
# @api private
|
4
4
|
class CreateProfessional < Base
|
5
|
-
|
5
|
+
object :session, class: Sessions::AuthSession
|
6
6
|
string :dossier_group_id
|
7
|
-
|
7
|
+
object :person, class: Models::Person
|
8
8
|
string :email_subject, default: nil
|
9
9
|
string :email_body, default: nil
|
10
10
|
|
@@ -2,7 +2,7 @@ module Roqua
|
|
2
2
|
module CoreApi
|
3
3
|
# @api private
|
4
4
|
class Dossiers < Base
|
5
|
-
|
5
|
+
object :session, class: Sessions::AuthSession
|
6
6
|
string :dossier_group_id, default: nil
|
7
7
|
string :with_name, default: nil
|
8
8
|
string :with_external_identifier, default: nil
|
@@ -2,7 +2,7 @@ module Roqua
|
|
2
2
|
module CoreApi
|
3
3
|
# @api private
|
4
4
|
class SendInviteEmail < ActiveInteraction::Base
|
5
|
-
|
5
|
+
object :session, class: Sessions::AuthSession
|
6
6
|
string :dossier_id
|
7
7
|
string :email_subject, default: nil
|
8
8
|
string :email_body, default: nil
|
@@ -2,8 +2,8 @@ module Roqua
|
|
2
2
|
module CoreApi
|
3
3
|
# @api private
|
4
4
|
class UpdateDossier < Base
|
5
|
-
|
6
|
-
|
5
|
+
object :session, class: Sessions::AuthSession
|
6
|
+
object :dossier, class: Models::Dossier
|
7
7
|
|
8
8
|
# Saves the dossier attributes to server.
|
9
9
|
# Returns true on success, false on validation errors.
|
@@ -2,8 +2,8 @@ module Roqua
|
|
2
2
|
module CoreApi
|
3
3
|
# @api private
|
4
4
|
class UpdatePerson < Base
|
5
|
-
|
6
|
-
|
5
|
+
object :session, class: Sessions::AuthSession
|
6
|
+
object :person, class: Models::Person
|
7
7
|
|
8
8
|
# Saves the person attributes to server.
|
9
9
|
# Returns true on success, false on validation errors.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: roqua-core-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marten Veldthuis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '2.1'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '2.1'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: omniauth-oauth2
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|