amocrm 0.6.1 → 0.6.2

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.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/README.md +1 -1
  4. data/lib/amocrm/models/custom_field_get_by_id_response.rb +4 -4
  5. data/lib/amocrm/models/entity_note_create_params.rb +6 -6
  6. data/lib/amocrm/models/entity_note_get_by_id_response.rb +6 -6
  7. data/lib/amocrm/models/entity_note_list_response.rb +6 -6
  8. data/lib/amocrm/models/entity_note_update_by_id_params.rb +6 -6
  9. data/lib/amocrm/models/entity_note_update_params.rb +6 -6
  10. data/lib/amocrm/models/entity_notes_by_parent_create_by_parent_params.rb +6 -6
  11. data/lib/amocrm/models/entity_notes_by_parent_get_by_parent_id_response.rb +6 -6
  12. data/lib/amocrm/models/entity_notes_by_parent_list_by_parent_response.rb +6 -6
  13. data/lib/amocrm/models/entity_notes_by_parent_update_by_parent_id_params.rb +6 -6
  14. data/lib/amocrm/models/entity_notes_by_parent_update_by_parent_params.rb +6 -6
  15. data/lib/amocrm/models/note_params.rb +243 -0
  16. data/lib/amocrm/models/note_type.rb +24 -0
  17. data/lib/amocrm/models.rb +4 -0
  18. data/lib/amocrm/resources/entity_notes.rb +2 -2
  19. data/lib/amocrm/resources/entity_notes_by_parent.rb +2 -2
  20. data/lib/amocrm/version.rb +1 -1
  21. data/lib/amocrm.rb +2 -0
  22. data/rbi/amocrm/models/custom_field_get_by_id_response.rbi +6 -6
  23. data/rbi/amocrm/models/entity_note_create_params.rbi +38 -7
  24. data/rbi/amocrm/models/entity_note_get_by_id_response.rbi +39 -8
  25. data/rbi/amocrm/models/entity_note_list_response.rbi +39 -8
  26. data/rbi/amocrm/models/entity_note_update_by_id_params.rbi +39 -8
  27. data/rbi/amocrm/models/entity_note_update_params.rbi +39 -8
  28. data/rbi/amocrm/models/entity_notes_by_parent_create_by_parent_params.rbi +38 -7
  29. data/rbi/amocrm/models/entity_notes_by_parent_get_by_parent_id_response.rbi +39 -8
  30. data/rbi/amocrm/models/entity_notes_by_parent_list_by_parent_response.rbi +39 -8
  31. data/rbi/amocrm/models/entity_notes_by_parent_update_by_parent_id_params.rbi +39 -8
  32. data/rbi/amocrm/models/entity_notes_by_parent_update_by_parent_params.rbi +39 -8
  33. data/rbi/amocrm/models/note_params.rbi +374 -0
  34. data/rbi/amocrm/models/note_type.rbi +29 -0
  35. data/rbi/amocrm/models.rbi +4 -0
  36. data/rbi/amocrm/resources/entity_notes.rbi +11 -2
  37. data/rbi/amocrm/resources/entity_notes_by_parent.rbi +11 -2
  38. data/sig/amocrm/models/custom_field_get_by_id_response.rbs +8 -8
  39. data/sig/amocrm/models/entity_note_create_params.rbs +11 -9
  40. data/sig/amocrm/models/entity_note_get_by_id_response.rbs +12 -10
  41. data/sig/amocrm/models/entity_note_list_response.rbs +14 -10
  42. data/sig/amocrm/models/entity_note_update_by_id_params.rbs +10 -10
  43. data/sig/amocrm/models/entity_note_update_params.rbs +12 -10
  44. data/sig/amocrm/models/entity_notes_by_parent_create_by_parent_params.rbs +11 -9
  45. data/sig/amocrm/models/entity_notes_by_parent_get_by_parent_id_response.rbs +12 -10
  46. data/sig/amocrm/models/entity_notes_by_parent_list_by_parent_response.rbs +14 -10
  47. data/sig/amocrm/models/entity_notes_by_parent_update_by_parent_id_params.rbs +10 -10
  48. data/sig/amocrm/models/entity_notes_by_parent_update_by_parent_params.rbs +12 -10
  49. data/sig/amocrm/models/note_params.rbs +188 -0
  50. data/sig/amocrm/models/note_type.rbs +32 -0
  51. data/sig/amocrm/models.rbs +4 -0
  52. data/sig/amocrm/resources/entity_notes.rbs +2 -2
  53. data/sig/amocrm/resources/entity_notes_by_parent.rbs +2 -2
  54. metadata +8 -2
@@ -163,9 +163,9 @@ module Amocrm
163
163
  #
164
164
  # @param entity_id [Integer] Body param
165
165
  #
166
- # @param note_type [String] Body param
166
+ # @param note_type [Symbol, Amocrm::Models::NoteType] Body param
167
167
  #
168
- # @param params [Object] Body param
168
+ # @param params [Amocrm::Models::NoteParams::Common, Amocrm::Models::NoteParams::Call, Amocrm::Models::NoteParams::ServiceMessage, Amocrm::Models::NoteParams::MessageCashier, Amocrm::Models::NoteParams::Geolocation, Amocrm::Models::NoteParams::Sms, Amocrm::Models::NoteParams::Attachment] Body param
169
169
  #
170
170
  # @param updated_at [Integer] Body param
171
171
  #
@@ -145,9 +145,9 @@ module Amocrm
145
145
  #
146
146
  # @param body_entity_id [Integer] Body param
147
147
  #
148
- # @param note_type [String] Body param
148
+ # @param note_type [Symbol, Amocrm::Models::NoteType] Body param
149
149
  #
150
- # @param params [Object] Body param
150
+ # @param params [Amocrm::Models::NoteParams::Common, Amocrm::Models::NoteParams::Call, Amocrm::Models::NoteParams::ServiceMessage, Amocrm::Models::NoteParams::MessageCashier, Amocrm::Models::NoteParams::Geolocation, Amocrm::Models::NoteParams::Sms, Amocrm::Models::NoteParams::Attachment] Body param
151
151
  #
152
152
  # @param updated_at [Integer] Body param
153
153
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Amocrm
4
- VERSION = "0.6.1"
4
+ VERSION = "0.6.2"
5
5
  end
data/lib/amocrm.rb CHANGED
@@ -224,6 +224,8 @@ require_relative "amocrm/models/lead_update_by_id_params"
224
224
  require_relative "amocrm/models/lead_update_by_id_response"
225
225
  require_relative "amocrm/models/lead_update_params"
226
226
  require_relative "amocrm/models/lead_update_response"
227
+ require_relative "amocrm/models/note_params"
228
+ require_relative "amocrm/models/note_type"
227
229
  require_relative "amocrm/models/pipeline_create_params"
228
230
  require_relative "amocrm/models/pipeline_create_response"
229
231
  require_relative "amocrm/models/pipeline_delete_by_id_params"
@@ -31,7 +31,7 @@ module Amocrm
31
31
  sig { returns(T.nilable(String)) }
32
32
  attr_reader :code
33
33
 
34
- sig { params(code: String).void }
34
+ sig { params(code: T.nilable(String)).void }
35
35
  attr_writer :code
36
36
 
37
37
  sig { returns(T.nilable(String)) }
@@ -49,7 +49,7 @@ module Amocrm
49
49
  sig { returns(T.nilable(Integer)) }
50
50
  attr_reader :group_id
51
51
 
52
- sig { params(group_id: Integer).void }
52
+ sig { params(group_id: T.nilable(Integer)).void }
53
53
  attr_writer :group_id
54
54
 
55
55
  sig { returns(T.nilable(T::Boolean)) }
@@ -103,10 +103,10 @@ module Amocrm
103
103
  sig do
104
104
  params(
105
105
  id: Integer,
106
- code: String,
106
+ code: T.nilable(String),
107
107
  entity_type: String,
108
108
  enums: T::Array[T.anything],
109
- group_id: Integer,
109
+ group_id: T.nilable(Integer),
110
110
  is_deletable: T::Boolean,
111
111
  is_multiple: T::Boolean,
112
112
  is_required: T::Boolean,
@@ -138,10 +138,10 @@ module Amocrm
138
138
  override.returns(
139
139
  {
140
140
  id: Integer,
141
- code: String,
141
+ code: T.nilable(String),
142
142
  entity_type: String,
143
143
  enums: T::Array[T.anything],
144
- group_id: Integer,
144
+ group_id: T.nilable(Integer),
145
145
  is_deletable: T::Boolean,
146
146
  is_multiple: T::Boolean,
147
147
  is_required: T::Boolean,
@@ -87,7 +87,7 @@ module Amocrm
87
87
  )
88
88
  end
89
89
 
90
- sig { returns(String) }
90
+ sig { returns(Amocrm::NoteType::OrSymbol) }
91
91
  attr_accessor :note_type
92
92
 
93
93
  sig { returns(T.nilable(Integer)) }
@@ -114,10 +114,23 @@ module Amocrm
114
114
  sig { params(is_need_to_trigger_digital_pipeline: T::Boolean).void }
115
115
  attr_writer :is_need_to_trigger_digital_pipeline
116
116
 
117
- sig { returns(T.nilable(T.anything)) }
117
+ sig { returns(T.nilable(Amocrm::NoteParams::Variants)) }
118
118
  attr_reader :params
119
119
 
120
- sig { params(params: T.anything).void }
120
+ sig do
121
+ params(
122
+ params:
123
+ T.any(
124
+ Amocrm::NoteParams::Common::OrHash,
125
+ Amocrm::NoteParams::Call::OrHash,
126
+ Amocrm::NoteParams::ServiceMessage::OrHash,
127
+ Amocrm::NoteParams::MessageCashier::OrHash,
128
+ Amocrm::NoteParams::Geolocation::OrHash,
129
+ Amocrm::NoteParams::Sms::OrHash,
130
+ Amocrm::NoteParams::Attachment::OrHash
131
+ )
132
+ ).void
133
+ end
121
134
  attr_writer :params
122
135
 
123
136
  # Client-side request id
@@ -141,12 +154,21 @@ module Amocrm
141
154
 
142
155
  sig do
143
156
  params(
144
- note_type: String,
157
+ note_type: Amocrm::NoteType::OrSymbol,
145
158
  created_at: Integer,
146
159
  created_by: Integer,
147
160
  entity_id: Integer,
148
161
  is_need_to_trigger_digital_pipeline: T::Boolean,
149
- params: T.anything,
162
+ params:
163
+ T.any(
164
+ Amocrm::NoteParams::Common::OrHash,
165
+ Amocrm::NoteParams::Call::OrHash,
166
+ Amocrm::NoteParams::ServiceMessage::OrHash,
167
+ Amocrm::NoteParams::MessageCashier::OrHash,
168
+ Amocrm::NoteParams::Geolocation::OrHash,
169
+ Amocrm::NoteParams::Sms::OrHash,
170
+ Amocrm::NoteParams::Attachment::OrHash
171
+ ),
150
172
  request_id: String,
151
173
  responsible_user_id: Integer,
152
174
  updated_by: Integer
@@ -169,12 +191,21 @@ module Amocrm
169
191
  sig do
170
192
  override.returns(
171
193
  {
172
- note_type: String,
194
+ note_type: Amocrm::NoteType::OrSymbol,
173
195
  created_at: Integer,
174
196
  created_by: Integer,
175
197
  entity_id: Integer,
176
198
  is_need_to_trigger_digital_pipeline: T::Boolean,
177
- params: T.anything,
199
+ params:
200
+ T.any(
201
+ Amocrm::NoteParams::Common::OrHash,
202
+ Amocrm::NoteParams::Call::OrHash,
203
+ Amocrm::NoteParams::ServiceMessage::OrHash,
204
+ Amocrm::NoteParams::MessageCashier::OrHash,
205
+ Amocrm::NoteParams::Geolocation::OrHash,
206
+ Amocrm::NoteParams::Sms::OrHash,
207
+ Amocrm::NoteParams::Attachment::OrHash
208
+ ),
178
209
  request_id: String,
179
210
  responsible_user_id: Integer,
180
211
  updated_by: Integer
@@ -70,16 +70,29 @@ module Amocrm
70
70
  sig { params(is_pinned: T::Boolean).void }
71
71
  attr_writer :is_pinned
72
72
 
73
- sig { returns(T.nilable(String)) }
73
+ sig { returns(T.nilable(Amocrm::NoteType::TaggedSymbol)) }
74
74
  attr_reader :note_type
75
75
 
76
- sig { params(note_type: String).void }
76
+ sig { params(note_type: Amocrm::NoteType::OrSymbol).void }
77
77
  attr_writer :note_type
78
78
 
79
- sig { returns(T.nilable(T.anything)) }
79
+ sig { returns(T.nilable(Amocrm::NoteParams::Variants)) }
80
80
  attr_reader :params
81
81
 
82
- sig { params(params: T.anything).void }
82
+ sig do
83
+ params(
84
+ params:
85
+ T.any(
86
+ Amocrm::NoteParams::Common::OrHash,
87
+ Amocrm::NoteParams::Call::OrHash,
88
+ Amocrm::NoteParams::ServiceMessage::OrHash,
89
+ Amocrm::NoteParams::MessageCashier::OrHash,
90
+ Amocrm::NoteParams::Geolocation::OrHash,
91
+ Amocrm::NoteParams::Sms::OrHash,
92
+ Amocrm::NoteParams::Attachment::OrHash
93
+ )
94
+ ).void
95
+ end
83
96
  attr_writer :params
84
97
 
85
98
  sig { returns(T.nilable(Integer)) }
@@ -110,8 +123,17 @@ module Amocrm
110
123
  entity_id: Integer,
111
124
  group_id: Integer,
112
125
  is_pinned: T::Boolean,
113
- note_type: String,
114
- params: T.anything,
126
+ note_type: Amocrm::NoteType::OrSymbol,
127
+ params:
128
+ T.any(
129
+ Amocrm::NoteParams::Common::OrHash,
130
+ Amocrm::NoteParams::Call::OrHash,
131
+ Amocrm::NoteParams::ServiceMessage::OrHash,
132
+ Amocrm::NoteParams::MessageCashier::OrHash,
133
+ Amocrm::NoteParams::Geolocation::OrHash,
134
+ Amocrm::NoteParams::Sms::OrHash,
135
+ Amocrm::NoteParams::Attachment::OrHash
136
+ ),
115
137
  responsible_user_id: Integer,
116
138
  updated_at: Integer,
117
139
  updated_by: Integer
@@ -145,8 +167,17 @@ module Amocrm
145
167
  entity_id: Integer,
146
168
  group_id: Integer,
147
169
  is_pinned: T::Boolean,
148
- note_type: String,
149
- params: T.anything,
170
+ note_type: Amocrm::NoteType::OrSymbol,
171
+ params:
172
+ T.any(
173
+ Amocrm::NoteParams::Common::OrHash,
174
+ Amocrm::NoteParams::Call::OrHash,
175
+ Amocrm::NoteParams::ServiceMessage::OrHash,
176
+ Amocrm::NoteParams::MessageCashier::OrHash,
177
+ Amocrm::NoteParams::Geolocation::OrHash,
178
+ Amocrm::NoteParams::Sms::OrHash,
179
+ Amocrm::NoteParams::Attachment::OrHash
180
+ ),
150
181
  responsible_user_id: Integer,
151
182
  updated_at: Integer,
152
183
  updated_by: Integer
@@ -186,16 +186,29 @@ module Amocrm
186
186
  sig { params(is_pinned: T::Boolean).void }
187
187
  attr_writer :is_pinned
188
188
 
189
- sig { returns(T.nilable(String)) }
189
+ sig { returns(T.nilable(Amocrm::NoteType::TaggedSymbol)) }
190
190
  attr_reader :note_type
191
191
 
192
- sig { params(note_type: String).void }
192
+ sig { params(note_type: Amocrm::NoteType::OrSymbol).void }
193
193
  attr_writer :note_type
194
194
 
195
- sig { returns(T.nilable(T.anything)) }
195
+ sig { returns(T.nilable(Amocrm::NoteParams::Variants)) }
196
196
  attr_reader :params
197
197
 
198
- sig { params(params: T.anything).void }
198
+ sig do
199
+ params(
200
+ params:
201
+ T.any(
202
+ Amocrm::NoteParams::Common::OrHash,
203
+ Amocrm::NoteParams::Call::OrHash,
204
+ Amocrm::NoteParams::ServiceMessage::OrHash,
205
+ Amocrm::NoteParams::MessageCashier::OrHash,
206
+ Amocrm::NoteParams::Geolocation::OrHash,
207
+ Amocrm::NoteParams::Sms::OrHash,
208
+ Amocrm::NoteParams::Attachment::OrHash
209
+ )
210
+ ).void
211
+ end
199
212
  attr_writer :params
200
213
 
201
214
  sig { returns(T.nilable(Integer)) }
@@ -226,8 +239,17 @@ module Amocrm
226
239
  entity_id: Integer,
227
240
  group_id: Integer,
228
241
  is_pinned: T::Boolean,
229
- note_type: String,
230
- params: T.anything,
242
+ note_type: Amocrm::NoteType::OrSymbol,
243
+ params:
244
+ T.any(
245
+ Amocrm::NoteParams::Common::OrHash,
246
+ Amocrm::NoteParams::Call::OrHash,
247
+ Amocrm::NoteParams::ServiceMessage::OrHash,
248
+ Amocrm::NoteParams::MessageCashier::OrHash,
249
+ Amocrm::NoteParams::Geolocation::OrHash,
250
+ Amocrm::NoteParams::Sms::OrHash,
251
+ Amocrm::NoteParams::Attachment::OrHash
252
+ ),
231
253
  responsible_user_id: Integer,
232
254
  updated_at: Integer,
233
255
  updated_by: Integer
@@ -261,8 +283,17 @@ module Amocrm
261
283
  entity_id: Integer,
262
284
  group_id: Integer,
263
285
  is_pinned: T::Boolean,
264
- note_type: String,
265
- params: T.anything,
286
+ note_type: Amocrm::NoteType::OrSymbol,
287
+ params:
288
+ T.any(
289
+ Amocrm::NoteParams::Common::OrHash,
290
+ Amocrm::NoteParams::Call::OrHash,
291
+ Amocrm::NoteParams::ServiceMessage::OrHash,
292
+ Amocrm::NoteParams::MessageCashier::OrHash,
293
+ Amocrm::NoteParams::Geolocation::OrHash,
294
+ Amocrm::NoteParams::Sms::OrHash,
295
+ Amocrm::NoteParams::Attachment::OrHash
296
+ ),
266
297
  responsible_user_id: Integer,
267
298
  updated_at: Integer,
268
299
  updated_by: Integer
@@ -23,16 +23,29 @@ module Amocrm
23
23
  sig { params(entity_id: Integer).void }
24
24
  attr_writer :entity_id
25
25
 
26
- sig { returns(T.nilable(String)) }
26
+ sig { returns(T.nilable(Amocrm::NoteType::OrSymbol)) }
27
27
  attr_reader :note_type
28
28
 
29
- sig { params(note_type: String).void }
29
+ sig { params(note_type: Amocrm::NoteType::OrSymbol).void }
30
30
  attr_writer :note_type
31
31
 
32
- sig { returns(T.nilable(T.anything)) }
32
+ sig { returns(T.nilable(Amocrm::NoteParams::Variants)) }
33
33
  attr_reader :params
34
34
 
35
- sig { params(params: T.anything).void }
35
+ sig do
36
+ params(
37
+ params:
38
+ T.any(
39
+ Amocrm::NoteParams::Common::OrHash,
40
+ Amocrm::NoteParams::Call::OrHash,
41
+ Amocrm::NoteParams::ServiceMessage::OrHash,
42
+ Amocrm::NoteParams::MessageCashier::OrHash,
43
+ Amocrm::NoteParams::Geolocation::OrHash,
44
+ Amocrm::NoteParams::Sms::OrHash,
45
+ Amocrm::NoteParams::Attachment::OrHash
46
+ )
47
+ ).void
48
+ end
36
49
  attr_writer :params
37
50
 
38
51
  sig { returns(T.nilable(Integer)) }
@@ -52,8 +65,17 @@ module Amocrm
52
65
  entity_type: Amocrm::EntityNoteUpdateByIDParams::EntityType::OrSymbol,
53
66
  id: Integer,
54
67
  entity_id: Integer,
55
- note_type: String,
56
- params: T.anything,
68
+ note_type: Amocrm::NoteType::OrSymbol,
69
+ params:
70
+ T.any(
71
+ Amocrm::NoteParams::Common::OrHash,
72
+ Amocrm::NoteParams::Call::OrHash,
73
+ Amocrm::NoteParams::ServiceMessage::OrHash,
74
+ Amocrm::NoteParams::MessageCashier::OrHash,
75
+ Amocrm::NoteParams::Geolocation::OrHash,
76
+ Amocrm::NoteParams::Sms::OrHash,
77
+ Amocrm::NoteParams::Attachment::OrHash
78
+ ),
57
79
  updated_at: Integer,
58
80
  updated_by: Integer,
59
81
  request_options: Amocrm::RequestOptions::OrHash
@@ -78,8 +100,17 @@ module Amocrm
78
100
  Amocrm::EntityNoteUpdateByIDParams::EntityType::OrSymbol,
79
101
  id: Integer,
80
102
  entity_id: Integer,
81
- note_type: String,
82
- params: T.anything,
103
+ note_type: Amocrm::NoteType::OrSymbol,
104
+ params:
105
+ T.any(
106
+ Amocrm::NoteParams::Common::OrHash,
107
+ Amocrm::NoteParams::Call::OrHash,
108
+ Amocrm::NoteParams::ServiceMessage::OrHash,
109
+ Amocrm::NoteParams::MessageCashier::OrHash,
110
+ Amocrm::NoteParams::Geolocation::OrHash,
111
+ Amocrm::NoteParams::Sms::OrHash,
112
+ Amocrm::NoteParams::Attachment::OrHash
113
+ ),
83
114
  updated_at: Integer,
84
115
  updated_by: Integer,
85
116
  request_options: Amocrm::RequestOptions
@@ -97,16 +97,29 @@ module Amocrm
97
97
  sig { params(entity_id: Integer).void }
98
98
  attr_writer :entity_id
99
99
 
100
- sig { returns(T.nilable(String)) }
100
+ sig { returns(T.nilable(Amocrm::NoteType::OrSymbol)) }
101
101
  attr_reader :note_type
102
102
 
103
- sig { params(note_type: String).void }
103
+ sig { params(note_type: Amocrm::NoteType::OrSymbol).void }
104
104
  attr_writer :note_type
105
105
 
106
- sig { returns(T.nilable(T.anything)) }
106
+ sig { returns(T.nilable(Amocrm::NoteParams::Variants)) }
107
107
  attr_reader :params
108
108
 
109
- sig { params(params: T.anything).void }
109
+ sig do
110
+ params(
111
+ params:
112
+ T.any(
113
+ Amocrm::NoteParams::Common::OrHash,
114
+ Amocrm::NoteParams::Call::OrHash,
115
+ Amocrm::NoteParams::ServiceMessage::OrHash,
116
+ Amocrm::NoteParams::MessageCashier::OrHash,
117
+ Amocrm::NoteParams::Geolocation::OrHash,
118
+ Amocrm::NoteParams::Sms::OrHash,
119
+ Amocrm::NoteParams::Attachment::OrHash
120
+ )
121
+ ).void
122
+ end
110
123
  attr_writer :params
111
124
 
112
125
  sig { returns(T.nilable(Integer)) }
@@ -125,8 +138,17 @@ module Amocrm
125
138
  params(
126
139
  id: Integer,
127
140
  entity_id: Integer,
128
- note_type: String,
129
- params: T.anything,
141
+ note_type: Amocrm::NoteType::OrSymbol,
142
+ params:
143
+ T.any(
144
+ Amocrm::NoteParams::Common::OrHash,
145
+ Amocrm::NoteParams::Call::OrHash,
146
+ Amocrm::NoteParams::ServiceMessage::OrHash,
147
+ Amocrm::NoteParams::MessageCashier::OrHash,
148
+ Amocrm::NoteParams::Geolocation::OrHash,
149
+ Amocrm::NoteParams::Sms::OrHash,
150
+ Amocrm::NoteParams::Attachment::OrHash
151
+ ),
130
152
  updated_at: Integer,
131
153
  updated_by: Integer
132
154
  ).returns(T.attached_class)
@@ -147,8 +169,17 @@ module Amocrm
147
169
  {
148
170
  id: Integer,
149
171
  entity_id: Integer,
150
- note_type: String,
151
- params: T.anything,
172
+ note_type: Amocrm::NoteType::OrSymbol,
173
+ params:
174
+ T.any(
175
+ Amocrm::NoteParams::Common::OrHash,
176
+ Amocrm::NoteParams::Call::OrHash,
177
+ Amocrm::NoteParams::ServiceMessage::OrHash,
178
+ Amocrm::NoteParams::MessageCashier::OrHash,
179
+ Amocrm::NoteParams::Geolocation::OrHash,
180
+ Amocrm::NoteParams::Sms::OrHash,
181
+ Amocrm::NoteParams::Attachment::OrHash
182
+ ),
152
183
  updated_at: Integer,
153
184
  updated_by: Integer
154
185
  }
@@ -112,7 +112,7 @@ module Amocrm
112
112
  )
113
113
  end
114
114
 
115
- sig { returns(String) }
115
+ sig { returns(Amocrm::NoteType::OrSymbol) }
116
116
  attr_accessor :note_type
117
117
 
118
118
  sig { returns(T.nilable(Integer)) }
@@ -139,10 +139,23 @@ module Amocrm
139
139
  sig { params(is_need_to_trigger_digital_pipeline: T::Boolean).void }
140
140
  attr_writer :is_need_to_trigger_digital_pipeline
141
141
 
142
- sig { returns(T.nilable(T.anything)) }
142
+ sig { returns(T.nilable(Amocrm::NoteParams::Variants)) }
143
143
  attr_reader :params
144
144
 
145
- sig { params(params: T.anything).void }
145
+ sig do
146
+ params(
147
+ params:
148
+ T.any(
149
+ Amocrm::NoteParams::Common::OrHash,
150
+ Amocrm::NoteParams::Call::OrHash,
151
+ Amocrm::NoteParams::ServiceMessage::OrHash,
152
+ Amocrm::NoteParams::MessageCashier::OrHash,
153
+ Amocrm::NoteParams::Geolocation::OrHash,
154
+ Amocrm::NoteParams::Sms::OrHash,
155
+ Amocrm::NoteParams::Attachment::OrHash
156
+ )
157
+ ).void
158
+ end
146
159
  attr_writer :params
147
160
 
148
161
  # Client-side request id
@@ -166,12 +179,21 @@ module Amocrm
166
179
 
167
180
  sig do
168
181
  params(
169
- note_type: String,
182
+ note_type: Amocrm::NoteType::OrSymbol,
170
183
  created_at: Integer,
171
184
  created_by: Integer,
172
185
  entity_id: Integer,
173
186
  is_need_to_trigger_digital_pipeline: T::Boolean,
174
- params: T.anything,
187
+ params:
188
+ T.any(
189
+ Amocrm::NoteParams::Common::OrHash,
190
+ Amocrm::NoteParams::Call::OrHash,
191
+ Amocrm::NoteParams::ServiceMessage::OrHash,
192
+ Amocrm::NoteParams::MessageCashier::OrHash,
193
+ Amocrm::NoteParams::Geolocation::OrHash,
194
+ Amocrm::NoteParams::Sms::OrHash,
195
+ Amocrm::NoteParams::Attachment::OrHash
196
+ ),
175
197
  request_id: String,
176
198
  responsible_user_id: Integer,
177
199
  updated_by: Integer
@@ -194,12 +216,21 @@ module Amocrm
194
216
  sig do
195
217
  override.returns(
196
218
  {
197
- note_type: String,
219
+ note_type: Amocrm::NoteType::OrSymbol,
198
220
  created_at: Integer,
199
221
  created_by: Integer,
200
222
  entity_id: Integer,
201
223
  is_need_to_trigger_digital_pipeline: T::Boolean,
202
- params: T.anything,
224
+ params:
225
+ T.any(
226
+ Amocrm::NoteParams::Common::OrHash,
227
+ Amocrm::NoteParams::Call::OrHash,
228
+ Amocrm::NoteParams::ServiceMessage::OrHash,
229
+ Amocrm::NoteParams::MessageCashier::OrHash,
230
+ Amocrm::NoteParams::Geolocation::OrHash,
231
+ Amocrm::NoteParams::Sms::OrHash,
232
+ Amocrm::NoteParams::Attachment::OrHash
233
+ ),
203
234
  request_id: String,
204
235
  responsible_user_id: Integer,
205
236
  updated_by: Integer
@@ -70,16 +70,29 @@ module Amocrm
70
70
  sig { params(is_pinned: T::Boolean).void }
71
71
  attr_writer :is_pinned
72
72
 
73
- sig { returns(T.nilable(String)) }
73
+ sig { returns(T.nilable(Amocrm::NoteType::TaggedSymbol)) }
74
74
  attr_reader :note_type
75
75
 
76
- sig { params(note_type: String).void }
76
+ sig { params(note_type: Amocrm::NoteType::OrSymbol).void }
77
77
  attr_writer :note_type
78
78
 
79
- sig { returns(T.nilable(T.anything)) }
79
+ sig { returns(T.nilable(Amocrm::NoteParams::Variants)) }
80
80
  attr_reader :params
81
81
 
82
- sig { params(params: T.anything).void }
82
+ sig do
83
+ params(
84
+ params:
85
+ T.any(
86
+ Amocrm::NoteParams::Common::OrHash,
87
+ Amocrm::NoteParams::Call::OrHash,
88
+ Amocrm::NoteParams::ServiceMessage::OrHash,
89
+ Amocrm::NoteParams::MessageCashier::OrHash,
90
+ Amocrm::NoteParams::Geolocation::OrHash,
91
+ Amocrm::NoteParams::Sms::OrHash,
92
+ Amocrm::NoteParams::Attachment::OrHash
93
+ )
94
+ ).void
95
+ end
83
96
  attr_writer :params
84
97
 
85
98
  sig { returns(T.nilable(Integer)) }
@@ -110,8 +123,17 @@ module Amocrm
110
123
  entity_id: Integer,
111
124
  group_id: Integer,
112
125
  is_pinned: T::Boolean,
113
- note_type: String,
114
- params: T.anything,
126
+ note_type: Amocrm::NoteType::OrSymbol,
127
+ params:
128
+ T.any(
129
+ Amocrm::NoteParams::Common::OrHash,
130
+ Amocrm::NoteParams::Call::OrHash,
131
+ Amocrm::NoteParams::ServiceMessage::OrHash,
132
+ Amocrm::NoteParams::MessageCashier::OrHash,
133
+ Amocrm::NoteParams::Geolocation::OrHash,
134
+ Amocrm::NoteParams::Sms::OrHash,
135
+ Amocrm::NoteParams::Attachment::OrHash
136
+ ),
115
137
  responsible_user_id: Integer,
116
138
  updated_at: Integer,
117
139
  updated_by: Integer
@@ -145,8 +167,17 @@ module Amocrm
145
167
  entity_id: Integer,
146
168
  group_id: Integer,
147
169
  is_pinned: T::Boolean,
148
- note_type: String,
149
- params: T.anything,
170
+ note_type: Amocrm::NoteType::OrSymbol,
171
+ params:
172
+ T.any(
173
+ Amocrm::NoteParams::Common::OrHash,
174
+ Amocrm::NoteParams::Call::OrHash,
175
+ Amocrm::NoteParams::ServiceMessage::OrHash,
176
+ Amocrm::NoteParams::MessageCashier::OrHash,
177
+ Amocrm::NoteParams::Geolocation::OrHash,
178
+ Amocrm::NoteParams::Sms::OrHash,
179
+ Amocrm::NoteParams::Attachment::OrHash
180
+ ),
150
181
  responsible_user_id: Integer,
151
182
  updated_at: Integer,
152
183
  updated_by: Integer