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
@@ -0,0 +1,188 @@
1
+ module Amocrm
2
+ module Models
3
+ type note_params =
4
+ Amocrm::NoteParams::Call
5
+ | Amocrm::NoteParams::Geolocation
6
+ | Amocrm::NoteParams::Attachment
7
+ | Amocrm::NoteParams::MessageCashier
8
+ | Amocrm::NoteParams::ServiceMessage
9
+ | Amocrm::NoteParams::Sms
10
+ | Amocrm::NoteParams::Common
11
+
12
+ module NoteParams
13
+ extend Amocrm::Internal::Type::Union
14
+
15
+ type call =
16
+ {
17
+ uniq: String,
18
+ duration: Integer,
19
+ source: String,
20
+ link: String,
21
+ phone: String,
22
+ call_responsible: Amocrm::Models::NoteParams::Call::call_responsible
23
+ }
24
+
25
+ class Call < Amocrm::Internal::Type::BaseModel
26
+ attr_accessor uniq: String
27
+
28
+ attr_accessor duration: Integer
29
+
30
+ attr_accessor source: String
31
+
32
+ attr_accessor link: String
33
+
34
+ attr_accessor phone: String
35
+
36
+ attr_accessor call_responsible: Amocrm::Models::NoteParams::Call::call_responsible
37
+
38
+ def initialize: (
39
+ uniq: String,
40
+ duration: Integer,
41
+ source: String,
42
+ link: String,
43
+ phone: String,
44
+ call_responsible: Amocrm::Models::NoteParams::Call::call_responsible
45
+ ) -> void
46
+
47
+ def to_hash: -> {
48
+ uniq: String,
49
+ duration: Integer,
50
+ source: String,
51
+ link: String,
52
+ phone: String,
53
+ call_responsible: Amocrm::Models::NoteParams::Call::call_responsible
54
+ }
55
+
56
+ type call_responsible = String | Integer
57
+
58
+ module CallResponsible
59
+ extend Amocrm::Internal::Type::Union
60
+
61
+ def self?.variants: -> ::Array[Amocrm::Models::NoteParams::Call::call_responsible]
62
+ end
63
+ end
64
+
65
+ type geolocation =
66
+ { text: String, address: String, longitude: String, latitude: String }
67
+
68
+ class Geolocation < Amocrm::Internal::Type::BaseModel
69
+ attr_accessor text: String
70
+
71
+ attr_accessor address: String
72
+
73
+ attr_accessor longitude: String
74
+
75
+ attr_accessor latitude: String
76
+
77
+ def initialize: (
78
+ text: String,
79
+ address: String,
80
+ longitude: String,
81
+ latitude: String
82
+ ) -> void
83
+
84
+ def to_hash: -> {
85
+ text: String,
86
+ address: String,
87
+ longitude: String,
88
+ latitude: String
89
+ }
90
+ end
91
+
92
+ type attachment =
93
+ { file_uuid: String, file_name: String, version_uuid: String }
94
+
95
+ class Attachment < Amocrm::Internal::Type::BaseModel
96
+ attr_accessor file_uuid: String
97
+
98
+ attr_accessor file_name: String
99
+
100
+ attr_reader version_uuid: String?
101
+
102
+ def version_uuid=: (String) -> String
103
+
104
+ def initialize: (
105
+ file_uuid: String,
106
+ file_name: String,
107
+ ?version_uuid: String
108
+ ) -> void
109
+
110
+ def to_hash: -> {
111
+ file_uuid: String,
112
+ file_name: String,
113
+ version_uuid: String
114
+ }
115
+ end
116
+
117
+ type message_cashier =
118
+ {
119
+ status: Amocrm::Models::NoteParams::MessageCashier::status,
120
+ text: String
121
+ }
122
+
123
+ class MessageCashier < Amocrm::Internal::Type::BaseModel
124
+ attr_accessor status: Amocrm::Models::NoteParams::MessageCashier::status
125
+
126
+ attr_accessor text: String
127
+
128
+ def initialize: (
129
+ status: Amocrm::Models::NoteParams::MessageCashier::status,
130
+ text: String
131
+ ) -> void
132
+
133
+ def to_hash: -> {
134
+ status: Amocrm::Models::NoteParams::MessageCashier::status,
135
+ text: String
136
+ }
137
+
138
+ type status = :created | :shown | :canceled
139
+
140
+ module Status
141
+ extend Amocrm::Internal::Type::Enum
142
+
143
+ CREATED: :created
144
+ SHOWN: :shown
145
+ CANCELED: :canceled
146
+
147
+ def self?.values: -> ::Array[Amocrm::Models::NoteParams::MessageCashier::status]
148
+ end
149
+ end
150
+
151
+ type service_message = { service: String, text: String }
152
+
153
+ class ServiceMessage < Amocrm::Internal::Type::BaseModel
154
+ attr_accessor service: String
155
+
156
+ attr_accessor text: String
157
+
158
+ def initialize: (service: String, text: String) -> void
159
+
160
+ def to_hash: -> { service: String, text: String }
161
+ end
162
+
163
+ type sms = { text: String, phone: String }
164
+
165
+ class Sms < Amocrm::Internal::Type::BaseModel
166
+ attr_accessor text: String
167
+
168
+ attr_accessor phone: String
169
+
170
+ def initialize: (text: String, phone: String) -> void
171
+
172
+ def to_hash: -> { text: String, phone: String }
173
+ end
174
+
175
+ type common = { text: String }
176
+
177
+ class Common < Amocrm::Internal::Type::BaseModel
178
+ attr_accessor text: String
179
+
180
+ def initialize: (text: String) -> void
181
+
182
+ def to_hash: -> { text: String }
183
+ end
184
+
185
+ def self?.variants: -> ::Array[Amocrm::Models::note_params]
186
+ end
187
+ end
188
+ end
@@ -0,0 +1,32 @@
1
+ module Amocrm
2
+ module Models
3
+ type note_type =
4
+ :common
5
+ | :call_in
6
+ | :call_out
7
+ | :service_message
8
+ | :message_cashier
9
+ | :geolocation
10
+ | :sms_in
11
+ | :sms_out
12
+ | :extended_service_message
13
+ | :attachment
14
+
15
+ module NoteType
16
+ extend Amocrm::Internal::Type::Enum
17
+
18
+ COMMON: :common
19
+ CALL_IN: :call_in
20
+ CALL_OUT: :call_out
21
+ SERVICE_MESSAGE: :service_message
22
+ MESSAGE_CASHIER: :message_cashier
23
+ GEOLOCATION: :geolocation
24
+ SMS_IN: :sms_in
25
+ SMS_OUT: :sms_out
26
+ EXTENDED_SERVICE_MESSAGE: :extended_service_message
27
+ ATTACHMENT: :attachment
28
+
29
+ def self?.values: -> ::Array[Amocrm::Models::note_type]
30
+ end
31
+ end
32
+ end
@@ -171,6 +171,10 @@ module Amocrm
171
171
 
172
172
  class LeadUpdateParams = Amocrm::Models::LeadUpdateParams
173
173
 
174
+ module NoteParams = Amocrm::Models::NoteParams
175
+
176
+ module NoteType = Amocrm::Models::NoteType
177
+
174
178
  class PipelineCreateParams = Amocrm::Models::PipelineCreateParams
175
179
 
176
180
  class PipelineDeleteByIDParams = Amocrm::Models::PipelineDeleteByIDParams
@@ -44,8 +44,8 @@ module Amocrm
44
44
  Integer id,
45
45
  entity_type: Amocrm::Models::EntityNoteUpdateByIDParams::entity_type,
46
46
  ?entity_id: Integer,
47
- ?note_type: String,
48
- ?params: top,
47
+ ?note_type: Amocrm::Models::note_type,
48
+ ?params: Amocrm::Models::note_params,
49
49
  ?updated_at: Integer,
50
50
  ?updated_by: Integer,
51
51
  ?request_options: Amocrm::request_opts
@@ -36,8 +36,8 @@ module Amocrm
36
36
  Integer note_id,
37
37
  entity_type: Amocrm::Models::EntityNotesByParentUpdateByParentIDParams::entity_type,
38
38
  ?body_entity_id: Integer,
39
- ?note_type: String,
40
- ?params: top,
39
+ ?note_type: Amocrm::Models::note_type,
40
+ ?params: Amocrm::Models::note_params,
41
41
  ?updated_at: Integer,
42
42
  ?updated_by: Integer,
43
43
  ?request_options: Amocrm::request_opts
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amocrm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amocrm
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-06-19 00:00:00.000000000 Z
11
+ date: 2026-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi
@@ -241,6 +241,8 @@ files:
241
241
  - lib/amocrm/models/lead_update_by_id_response.rb
242
242
  - lib/amocrm/models/lead_update_params.rb
243
243
  - lib/amocrm/models/lead_update_response.rb
244
+ - lib/amocrm/models/note_params.rb
245
+ - lib/amocrm/models/note_type.rb
244
246
  - lib/amocrm/models/pipeline_create_params.rb
245
247
  - lib/amocrm/models/pipeline_create_response.rb
246
248
  - lib/amocrm/models/pipeline_delete_by_id_params.rb
@@ -579,6 +581,8 @@ files:
579
581
  - rbi/amocrm/models/lead_update_by_id_response.rbi
580
582
  - rbi/amocrm/models/lead_update_params.rbi
581
583
  - rbi/amocrm/models/lead_update_response.rbi
584
+ - rbi/amocrm/models/note_params.rbi
585
+ - rbi/amocrm/models/note_type.rbi
582
586
  - rbi/amocrm/models/pipeline_create_params.rbi
583
587
  - rbi/amocrm/models/pipeline_create_response.rbi
584
588
  - rbi/amocrm/models/pipeline_delete_by_id_params.rbi
@@ -916,6 +920,8 @@ files:
916
920
  - sig/amocrm/models/lead_update_by_id_response.rbs
917
921
  - sig/amocrm/models/lead_update_params.rbs
918
922
  - sig/amocrm/models/lead_update_response.rbs
923
+ - sig/amocrm/models/note_params.rbs
924
+ - sig/amocrm/models/note_type.rbs
919
925
  - sig/amocrm/models/pipeline_create_params.rbs
920
926
  - sig/amocrm/models/pipeline_create_response.rbs
921
927
  - sig/amocrm/models/pipeline_delete_by_id_params.rbs