icalia-sdk-event-core 0.1.5 → 0.1.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c3fe7225eee33918344740d90c1d140fd876f6fc03e280d491e777d31dfbe43e
4
- data.tar.gz: f98b1c19c1afbbc4ee80660fad4e0bb6d0097360808f014ea7fa064d16cc20e3
3
+ metadata.gz: a9137f619a744b28bbefaf0caf79c5851aa181695bdac2874ecc849fa6acfc22
4
+ data.tar.gz: 0a7e6f5e7b98d4c547b5b8bf913a98b2a33c3500fca51b3b33d65e9c65ecc1fd
5
5
  SHA512:
6
- metadata.gz: d65bda723944c3f09a04eed43bc4c5e8a638e6149d01dd7d5148908dffb33ef4b47d9f259c0853a6623ee2aaf29a248fba7da3c27b9051ecd03b262c8393f9a1
7
- data.tar.gz: ffbd9b7b669b4fa946d14028ac1fd92b7dd707edc66b1a51dcef321a6d3923e222963486e98b8cb7c160a6f900c603a6eb899f64b84ed98405a37e79d7baa5ec
6
+ metadata.gz: 62359f6d78c4340db8e01f48f7920f1d1c1ea803484d4b07e773053fed4357c341663f6816af223407c673b3e4e69babdc4743a67d9a5c2ca4a49ac9212680f2
7
+ data.tar.gz: 6de6adbae67647d2c7a356a79d71a2ba1ed6ace40d718e742f6e81f50004ff96a0b24556cfdf570bd78068b5ef75fe03319a9b98b1b842048be39017049d2f3e
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Icalia::Event
4
+ #= DeserializableOauthAccessToken
5
+ #
6
+ # This class is responsible for converting a JSONAPI.org representation of an
7
+ # Icalia OAuth Access Token
8
+ class DeserializableOauthAccessToken < JSONAPI::Deserializable::Resource
9
+ include DeserializableResourceIdentity
10
+ include DeserializableResourceCreationTimestamp
11
+
12
+ attributes :scopes
13
+
14
+ attribute(:'expires-at') { |value| Hash[expires_at: value] }
15
+ attribute(:'revoked-at') { |value| Hash[revoked_at: value] }
16
+
17
+ has_one :application do |_rel, id, type|
18
+ Hash[application_id: id, application_type: classify_type(type)]
19
+ end
20
+
21
+ has_one :'resource-owner' do |_rel, id, type|
22
+ Hash[resource_owner_id: id, resource_owner_type: classify_type(type)]
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Icalia::Event
4
+ #= DeserializableOauthApplication
5
+ #
6
+ # This class is responsible for converting a JSONAPI.org representation of an
7
+ # Icalia OAuth Application
8
+ class DeserializableOauthApplication < JSONAPI::Deserializable::Resource
9
+ include DeserializableResourceIdentity
10
+ include DeserializableResourceTimestamps
11
+
12
+ attributes :name
13
+ end
14
+ end
@@ -5,7 +5,7 @@ module Icalia::Event
5
5
  extend ActiveSupport::Concern
6
6
 
7
7
  included do
8
- attribute(:'created-at') { |value| Hash[updated_at: value] }
8
+ attribute(:'created-at') { |value| Hash[created_at: value] }
9
9
  end
10
10
  end
11
11
  end
@@ -34,7 +34,13 @@ module Icalia
34
34
  # Deserializable Objects
35
35
 
36
36
  autoload :DeserializableUser,
37
- "#{serialization_path}/deserializable_user"
37
+ "#{serialization_path}/deserializable_user"
38
+
39
+ autoload :DeserializableOauthAccessToken,
40
+ "#{serialization_path}/deserializable_oauth_access_token"
41
+
42
+ autoload :DeserializableOauthApplication,
43
+ "#{serialization_path}/deserializable_oauth_application"
38
44
 
39
45
  autoload :DeserializableOrganization,
40
46
  "#{serialization_path}/deserializable_organization"
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Icalia
4
4
  module Event
5
- CORE_VERSION = '0.1.5'
5
+ CORE_VERSION = '0.1.6'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: icalia-sdk-event-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roberto Quintanilla
@@ -85,7 +85,9 @@ files:
85
85
  - lib/icalia-sdk-event-core/serialization/deserializable_code_repository.rb
86
86
  - lib/icalia-sdk-event-core/serialization/deserializable_code_repository_event.rb
87
87
  - lib/icalia-sdk-event-core/serialization/deserializable_membership_event.rb
88
+ - lib/icalia-sdk-event-core/serialization/deserializable_oauth_access_token.rb
88
89
  - lib/icalia-sdk-event-core/serialization/deserializable_oauth_access_token_event.rb
90
+ - lib/icalia-sdk-event-core/serialization/deserializable_oauth_application.rb
89
91
  - lib/icalia-sdk-event-core/serialization/deserializable_organization.rb
90
92
  - lib/icalia-sdk-event-core/serialization/deserializable_organization_event.rb
91
93
  - lib/icalia-sdk-event-core/serialization/deserializable_property_resource.rb