qismo 0.18.2 → 0.18.3

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: 5a49672ff24211ad4828574e849c42e85022b9f316e149a6a20e13514e86d512
4
- data.tar.gz: 854c58aea3339b1f9766eb4465861ecbced5a0f6ec6a05c73fde4404a1109b0f
3
+ metadata.gz: 745aafb7cada257951b74afc2672a6614b2d672737e3719bd8c973b3669507ac
4
+ data.tar.gz: 9dd6795f224d03ddab0ab443e60897bb6ecf723a7bc02766ed914beef7cd5ccb
5
5
  SHA512:
6
- metadata.gz: 2f525de18bd21459e091056bd3c19053bc3fbad5597b59b78824f2f55c322e195106d3ef4e06916e43831321fad6842c937d3852d25ad3fe61a179ad90c3d316
7
- data.tar.gz: d1be120b5b9643e094ce0fb94d2dd27ca25dacd9a6f60ba30cb179d34d6a55e5cc09e14764bef4bd7d8240989f8c4992424bae7feccdcaae231c9205ba74ab5b
6
+ metadata.gz: 52bfc30dfb7eb45a9a8fea5ffe5c6dff67e9b568165725b3a8b3684b18b5804e5d17397d7153ae07bc889520b2c48485fb429149ddff290e02436e395e38762a
7
+ data.tar.gz: a89160c07e9ff1100a387315f98267a41fc92cbe763f526553e3398e92a387c51fedb12587e31f8937da65c75596732a1f9e3772f2e12b1f73c981007723dfa1
data/lib/qismo/api.rb CHANGED
@@ -6,6 +6,11 @@ module Qismo
6
6
  module Api
7
7
  # @!parse include Qismo::Client
8
8
 
9
+ def get_profile
10
+ body = get("/api/v1/admin/get_profile")
11
+ Qismo::Objects::AdminProfile.new(body.data)
12
+ end
13
+
9
14
  # List customer rooms
10
15
  #
11
16
  # @see https://documenter.getpostman.com/view/8259884/TVsuCSeT#704a0c40-56b2-4a94-9c1d-e1529923cbb6
@@ -0,0 +1,37 @@
1
+ module Qismo
2
+ module Objects
3
+ class AdminProfile < Qismo::Object
4
+ # @!attribute [r] name
5
+ # @return [String]
6
+ attribute? :name, Types::String.optional
7
+
8
+ # @!attribute [r] avatar_url
9
+ # @return [String]
10
+ attribute? :avatar_url, Types::String.optional
11
+
12
+ # @!attribute [r] company_name
13
+ # @return [String]
14
+ attribute? :company_name, Types::String.optional
15
+
16
+ # @!attribute [r] address
17
+ # @return [String]
18
+ attribute? :address, Types::String.optional
19
+
20
+ # @!attribute [r] phone_number
21
+ # @return [String]
22
+ attribute? :phone_number, Types::String.optional
23
+
24
+ # @!attribute [r] industry
25
+ # @return [String]
26
+ attribute? :industry, Types::String.optional
27
+
28
+ # @!attribute [r] email_address
29
+ # @return [String]
30
+ attribute? :email_address, Types::String.optional
31
+
32
+ # @!attribute [r] type
33
+ # @return [Integer]
34
+ attribute? :type, Types::Int.optional
35
+ end
36
+ end
37
+ end
data/lib/qismo/version.rb CHANGED
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Qismo
4
4
  # @return [String]
5
- VERSION = "0.18.2"
5
+ VERSION = "0.18.3"
6
6
  end
data/lib/qismo.rb CHANGED
@@ -13,6 +13,7 @@ require "qismo/object"
13
13
  require "qismo/objectified_hash"
14
14
  require "qismo/collection"
15
15
 
16
+ require "qismo/objects/admin_profile"
16
17
  require "qismo/objects/customer_room"
17
18
  require "qismo/objects/tag"
18
19
  require "qismo/objects/room_additional_info"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qismo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.2
4
+ version: 0.18.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Qiscus Integration
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-06 00:00:00.000000000 Z
11
+ date: 2023-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -69,6 +69,7 @@ files:
69
69
  - lib/qismo/error.rb
70
70
  - lib/qismo/object.rb
71
71
  - lib/qismo/objectified_hash.rb
72
+ - lib/qismo/objects/admin_profile.rb
72
73
  - lib/qismo/objects/agent_service.rb
73
74
  - lib/qismo/objects/broadcast_job.rb
74
75
  - lib/qismo/objects/broadcast_log.rb
@@ -106,7 +107,7 @@ homepage: https://bitbucket.org/qiscus/qismo-rb
106
107
  licenses:
107
108
  - MIT
108
109
  metadata:
109
- source_code_uri: https://bitbucket.org/qiscus/qismo-rb/src/v0.18.2
110
+ source_code_uri: https://bitbucket.org/qiscus/qismo-rb/src/v0.18.3
110
111
  documentation_uri: https://www.rubydoc.info/gems/qismo
111
112
  homepage_uri: https://bitbucket.org/qiscus/qismo-rb
112
113
  rubygems_mfa_required: 'true'