qismo 0.14.0 → 0.15.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/lib/qismo/api.rb +136 -125
  3. data/lib/qismo/client.rb +5 -4
  4. data/lib/qismo/collection.rb +2 -0
  5. data/lib/qismo/object.rb +2 -0
  6. data/lib/qismo/objectified_hash.rb +5 -0
  7. data/lib/qismo/objects/agent_service.rb +4 -0
  8. data/lib/qismo/objects/broadcast_job.rb +4 -0
  9. data/lib/qismo/objects/broadcast_log.rb +2 -0
  10. data/lib/qismo/objects/custom_channel.rb +35 -0
  11. data/lib/qismo/objects/custom_channel_message_response.rb +2 -0
  12. data/lib/qismo/objects/customer_room.rb +2 -0
  13. data/lib/qismo/objects/fb_channel.rb +31 -0
  14. data/lib/qismo/objects/hsm_template.rb +6 -0
  15. data/lib/qismo/objects/ig_channel.rb +43 -0
  16. data/lib/qismo/objects/line_channel.rb +27 -0
  17. data/lib/qismo/objects/list_channels_response.rb +39 -0
  18. data/lib/qismo/objects/office_hour.rb +4 -0
  19. data/lib/qismo/objects/qiscus_channel.rb +27 -0
  20. data/lib/qismo/objects/room_additional_info.rb +2 -0
  21. data/lib/qismo/objects/tag.rb +4 -2
  22. data/lib/qismo/objects/telegram_channel.rb +31 -0
  23. data/lib/qismo/objects/user.rb +6 -0
  24. data/lib/qismo/objects/wa_channel.rb +111 -0
  25. data/lib/qismo/objects/wa_credit_info.rb +6 -0
  26. data/lib/qismo/objects/waca_channel.rb +55 -0
  27. data/lib/qismo/objects/webhook.rb +2 -0
  28. data/lib/qismo/types.rb +9 -0
  29. data/lib/qismo/version.rb +1 -1
  30. data/lib/qismo/webhook_requests/on_agent_allocation_needed.rb +6 -0
  31. data/lib/qismo/webhook_requests/on_custom_button_clicked.rb +10 -2
  32. data/lib/qismo/webhook_requests/on_custom_channel_message_sent.rb +12 -0
  33. data/lib/qismo/webhook_requests/on_message_for_bot_sent.rb +12 -0
  34. data/lib/qismo/webhook_requests/on_new_session_initiated.rb +20 -0
  35. data/lib/qismo/webhook_requests/on_room_resolved.rb +10 -0
  36. data/lib/qismo.rb +11 -0
  37. metadata +11 -2
@@ -1,8 +1,12 @@
1
1
  module Qismo
2
2
  module WebhookRequests
3
+ # Custom channel webhook object
4
+ #
3
5
  # @!attribute [r] payload
4
6
  # @return [Payload]
5
7
  class OnCustomChannelMessageSent < Qismo::Object
8
+ # Custom channel webhook from object
9
+ #
6
10
  # @!attribute [r] avatar_url
7
11
  # @return [String]
8
12
  # @!attribute [r] email
@@ -18,6 +22,8 @@ module Qismo
18
22
  attribute? :name, Types::String.optional
19
23
  end
20
24
 
25
+ # Custom channel webhook message object
26
+ #
21
27
  # @!attribute [r] comment_before_id
22
28
  # @return [Integer]
23
29
  # @!attribute [r] created_at
@@ -51,12 +57,16 @@ module Qismo
51
57
  attribute? :unix_timestamp, Types::String.optional
52
58
  end
53
59
 
60
+ # Custom channel webhook participant object
61
+ #
54
62
  # @!attribute [r] email
55
63
  # @return [String]
56
64
  class Participant < Qismo::Object
57
65
  attribute? :email, Types::String.optional
58
66
  end
59
67
 
68
+ # Custom channel webhook room object
69
+ #
60
70
  # @!attribute [r] id
61
71
  # @return [String]
62
72
  # @!attribute [r] name
@@ -75,6 +85,8 @@ module Qismo
75
85
  attribute? :room_avatar, Types::String.optional
76
86
  end
77
87
 
88
+ # Custom channel webhook payload object
89
+ #
78
90
  # @!attribute [r] from
79
91
  # @return [From]
80
92
  # @!attribute [r] message
@@ -1,6 +1,10 @@
1
1
  module Qismo
2
2
  module WebhookRequests
3
+ # Chatbot webhook object
4
+ #
3
5
  class OnMessageForBotSent < Qismo::Object
6
+ # Chatbot webhook from object
7
+ #
4
8
  # @!attribute [r] avatar_url
5
9
  # @return [String]
6
10
  # @!attribute [r] email
@@ -16,6 +20,8 @@ module Qismo
16
20
  attribute? :name, Types::String.optional
17
21
  end
18
22
 
23
+ # Chatbot webhook message object
24
+ #
19
25
  # @!attribute [r] comment_before_id
20
26
  # @return [Integer]
21
27
  # @!attribute [r] created_at
@@ -49,12 +55,16 @@ module Qismo
49
55
  attribute? :unix_timestamp, Types::String.optional
50
56
  end
51
57
 
58
+ # Chatbot webhook participant object
59
+ #
52
60
  # @!attribute [r] email
53
61
  # @return [String]
54
62
  class Participant < Qismo::Object
55
63
  attribute? :email, Types::String.optional
56
64
  end
57
65
 
66
+ # Chatbot webhook room object
67
+ #
58
68
  # @!attribute [r] id
59
69
  # @return [String]
60
70
  # @!attribute [r] name
@@ -73,6 +83,8 @@ module Qismo
73
83
  attribute? :room_avatar, Types::String.optional
74
84
  end
75
85
 
86
+ # Chatbot webhook payload object
87
+ #
76
88
  # @!attribute [r] from
77
89
  # @return [From]
78
90
  # @!attribute [r] message
@@ -1,5 +1,7 @@
1
1
  module Qismo
2
2
  module WebhookRequests
3
+ # New session webhook object
4
+ #
3
5
  # @!attribute [r] is_new_session
4
6
  # @return [TrueClass,FalseClass]
5
7
  # @!attribute [r] payload
@@ -7,6 +9,8 @@ module Qismo
7
9
  # @!attribute [r] room_log
8
10
  # @return [RoomLog]
9
11
  class OnNewSessionInitiated < Qismo::Object
12
+ # New session webhook from object
13
+ #
10
14
  # @!attribute [r] avatar_url
11
15
  # @return [String]
12
16
  # @!attribute [r] email
@@ -22,6 +26,8 @@ module Qismo
22
26
  attribute? :name, Types::String.optional
23
27
  end
24
28
 
29
+ # New session webhook message object
30
+ #
25
31
  # @!attribute [r] comment_before_id
26
32
  # @return [Integer]
27
33
  # @!attribute [r] created_at
@@ -55,12 +61,16 @@ module Qismo
55
61
  attribute? :unix_timestamp, Types::String.optional
56
62
  end
57
63
 
64
+ # New session webhook participant object
65
+ #
58
66
  # @!attribute [r] email
59
67
  # @return [String]
60
68
  class Participant < Qismo::Object
61
69
  attribute? :email, Types::String.optional
62
70
  end
63
71
 
72
+ # New session webhook room object
73
+ #
64
74
  # @!attribute [r] id
65
75
  # @return [String]
66
76
  # @!attribute [r] name
@@ -79,6 +89,8 @@ module Qismo
79
89
  attribute? :room_avatar, Types::String.optional
80
90
  end
81
91
 
92
+ # New session webhook message payload object
93
+ #
82
94
  # @!attribute [r] from
83
95
  # @return [From]
84
96
  # @!attribute [r] message
@@ -93,6 +105,8 @@ module Qismo
93
105
  attribute? :room, Room.optional
94
106
  end
95
107
 
108
+ # New session webhook user property object
109
+ #
96
110
  # @!attribute [r] key
97
111
  # @return [String]
98
112
  # @!attribute [r] value
@@ -102,12 +116,16 @@ module Qismo
102
116
  attribute? :value, (Types::String.optional | Types::Int.optional | Types::Params::Bool.optional)
103
117
  end
104
118
 
119
+ # New session webhook additional extras object
120
+ #
105
121
  # @!attribute [r] timezone_offset
106
122
  # @return [String]
107
123
  class AdditionalExtras < Qismo::Object
108
124
  attribute? :timezone_offset, Types::String
109
125
  end
110
126
 
127
+ # New session webhook extras object
128
+ #
111
129
  # @!attribute [r] additional_extras
112
130
  # @return [AdditionalExtras]
113
131
  # @!attribute [r] notes
@@ -123,6 +141,8 @@ module Qismo
123
141
  attribute? :user_properties, Types.Array(UserProperty.optional).optional
124
142
  end
125
143
 
144
+ # New session webhook room log object
145
+ #
126
146
  # @!attribute [r] channel_id
127
147
  # @return [Integer]
128
148
  # @!attribute [r] created_at
@@ -1,5 +1,7 @@
1
1
  module Qismo
2
2
  module WebhookRequests
3
+ # Room resolve webhook object
4
+ #
3
5
  # @!attribute [r] customer
4
6
  # @return [Customer]
5
7
  # @!attribute [r] resolved_by
@@ -7,6 +9,8 @@ module Qismo
7
9
  # @!attribute [r] service
8
10
  # @return [Service]
9
11
  class OnRoomResolved < Qismo::Object
12
+ # Room resolve webhook additional info object
13
+ #
10
14
  # @!attribute [r] key
11
15
  # @return [String]
12
16
  # @!attribute [r] value
@@ -16,6 +20,8 @@ module Qismo
16
20
  attribute? :value, (Types::String.optional | Types::Int.optional | Types::Params::Bool.optional)
17
21
  end
18
22
 
23
+ # Room resolve webhook customer object
24
+ #
19
25
  # @!attribute [r] additional_info
20
26
  # @return [Array<AdditionalInfo>]
21
27
  # @!attribute [r] avatar
@@ -31,6 +37,8 @@ module Qismo
31
37
  attribute? :user_id, Types::String.optional
32
38
  end
33
39
 
40
+ # Room resolve webhook resolved by object
41
+ #
34
42
  # @!attribute [r] email
35
43
  # @return [String]
36
44
  # @!attribute [r] id
@@ -49,6 +57,8 @@ module Qismo
49
57
  attribute? :type, Types::String.optional
50
58
  end
51
59
 
60
+ # Room resolve webhook service object
61
+ #
52
62
  # @!attribute [r] first_comment_id
53
63
  # @return [String]
54
64
  # @!attribute [r] last_comment_id
data/lib/qismo.rb CHANGED
@@ -24,6 +24,15 @@ require "qismo/objects/hsm_template"
24
24
  require "qismo/objects/wa_credit_info"
25
25
  require "qismo/objects/broadcast_job"
26
26
  require "qismo/objects/custom_channel_message_response"
27
+ require "qismo/objects/custom_channel"
28
+ require "qismo/objects/fb_channel"
29
+ require "qismo/objects/ig_channel"
30
+ require "qismo/objects/line_channel"
31
+ require "qismo/objects/qiscus_channel"
32
+ require "qismo/objects/telegram_channel"
33
+ require "qismo/objects/wa_channel"
34
+ require "qismo/objects/waca_channel"
35
+ require "qismo/objects/list_channels_response"
27
36
 
28
37
  require "qismo/webhook_requests/on_agent_allocation_needed"
29
38
  require "qismo/webhook_requests/on_custom_button_clicked"
@@ -35,5 +44,7 @@ require "qismo/webhook_requests/on_room_resolved"
35
44
  require "qismo/api"
36
45
  require "qismo/client"
37
46
 
47
+ # Qismo ruby root module
48
+ #
38
49
  module Qismo
39
50
  end
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.14.0
4
+ version: 0.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Qiscus Integration
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-12 00:00:00.000000000 Z
11
+ date: 2022-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -86,14 +86,23 @@ files:
86
86
  - lib/qismo/objects/agent_service.rb
87
87
  - lib/qismo/objects/broadcast_job.rb
88
88
  - lib/qismo/objects/broadcast_log.rb
89
+ - lib/qismo/objects/custom_channel.rb
89
90
  - lib/qismo/objects/custom_channel_message_response.rb
90
91
  - lib/qismo/objects/customer_room.rb
92
+ - lib/qismo/objects/fb_channel.rb
91
93
  - lib/qismo/objects/hsm_template.rb
94
+ - lib/qismo/objects/ig_channel.rb
95
+ - lib/qismo/objects/line_channel.rb
96
+ - lib/qismo/objects/list_channels_response.rb
92
97
  - lib/qismo/objects/office_hour.rb
98
+ - lib/qismo/objects/qiscus_channel.rb
93
99
  - lib/qismo/objects/room_additional_info.rb
94
100
  - lib/qismo/objects/tag.rb
101
+ - lib/qismo/objects/telegram_channel.rb
95
102
  - lib/qismo/objects/user.rb
103
+ - lib/qismo/objects/wa_channel.rb
96
104
  - lib/qismo/objects/wa_credit_info.rb
105
+ - lib/qismo/objects/waca_channel.rb
97
106
  - lib/qismo/objects/webhook.rb
98
107
  - lib/qismo/types.rb
99
108
  - lib/qismo/version.rb