mints 0.0.27 → 0.0.28

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +2 -1
  3. data/lib/client.rb +4 -4
  4. data/lib/contact.rb +60 -61
  5. data/lib/errors.rb +1 -1
  6. data/lib/generators/mints_config.yml.erb +0 -2
  7. data/lib/generators/mints_link.rb +3 -3
  8. data/lib/mints/helpers/mints_helper.rb +2 -2
  9. data/lib/pub.rb +55 -55
  10. data/lib/user/config/api_keys.rb +7 -7
  11. data/lib/user/config/appointments.rb +16 -16
  12. data/lib/user/config/attribute_groups.rb +10 -10
  13. data/lib/user/config/attributes.rb +10 -10
  14. data/lib/user/config/calendars.rb +9 -9
  15. data/lib/user/config/config.rb +7 -7
  16. data/lib/user/config/importers.rb +15 -15
  17. data/lib/user/config/public_folders.rb +11 -11
  18. data/lib/user/config/relationships.rb +11 -11
  19. data/lib/user/config/roles.rb +9 -9
  20. data/lib/user/config/seeds.rb +5 -5
  21. data/lib/user/config/system_settings.rb +5 -5
  22. data/lib/user/config/tags.rb +5 -5
  23. data/lib/user/config/taxonomies.rb +15 -15
  24. data/lib/user/config/teams.rb +67 -68
  25. data/lib/user/config/users.rb +70 -71
  26. data/lib/user/contacts/contacts.rb +19 -20
  27. data/lib/user/content/assets.rb +273 -278
  28. data/lib/user/content/content.rb +48 -48
  29. data/lib/user/content/content_instances.rb +136 -138
  30. data/lib/user/content/content_templates.rb +103 -103
  31. data/lib/user/content/conversations.rb +193 -193
  32. data/lib/user/content/dam.rb +83 -80
  33. data/lib/user/content/forms.rb +229 -233
  34. data/lib/user/content/message_templates.rb +152 -151
  35. data/lib/user/content/messages.rb +87 -87
  36. data/lib/user/content/pages.rb +82 -82
  37. data/lib/user/content/stories.rb +101 -101
  38. data/lib/user/content/story_templates.rb +88 -88
  39. data/lib/user/content/story_versions.rb +115 -117
  40. data/lib/user/crm/companies.rb +103 -105
  41. data/lib/user/crm/contacts.rb +285 -292
  42. data/lib/user/crm/crm.rb +19 -19
  43. data/lib/user/crm/deals.rb +103 -103
  44. data/lib/user/crm/favorites.rb +14 -13
  45. data/lib/user/crm/segments.rb +121 -123
  46. data/lib/user/crm/users.rb +20 -20
  47. data/lib/user/crm/workflow_step_objects.rb +84 -84
  48. data/lib/user/crm/workflow_steps.rb +45 -45
  49. data/lib/user/crm/workflows.rb +65 -65
  50. data/lib/user/ecommerce/ecommerce.rb +27 -27
  51. data/lib/user/ecommerce/item_prices.rb +82 -81
  52. data/lib/user/ecommerce/locations.rb +160 -160
  53. data/lib/user/ecommerce/order_items_groups.rb +107 -106
  54. data/lib/user/ecommerce/order_statuses.rb +24 -24
  55. data/lib/user/ecommerce/orders.rb +250 -246
  56. data/lib/user/ecommerce/price_lists.rb +68 -68
  57. data/lib/user/ecommerce/product_templates.rb +99 -99
  58. data/lib/user/ecommerce/product_variations.rb +122 -120
  59. data/lib/user/ecommerce/products.rb +160 -159
  60. data/lib/user/ecommerce/skus.rb +85 -85
  61. data/lib/user/ecommerce/taxes.rb +79 -79
  62. data/lib/user/ecommerce/variant_options.rb +66 -66
  63. data/lib/user/ecommerce/variant_values.rb +69 -69
  64. data/lib/user/helpers/helpers.rb +102 -101
  65. data/lib/user/helpers/object_activities.rb +78 -78
  66. data/lib/user/helpers/object_folders.rb +76 -76
  67. data/lib/user/helpers/user_folders.rb +77 -77
  68. data/lib/user/marketing/marketing.rb +114 -113
  69. data/lib/user/profile/profile.rb +94 -103
  70. data/lib/user.rb +3 -3
  71. metadata +33 -33
@@ -1,88 +1,91 @@
1
1
  module DAM
2
- ##
3
- # == dam
4
- #
2
+ ##
3
+ # == dam
4
+ #
5
5
 
6
- # === Get dam loadtree.
7
- # Get dam loadtree.
8
- #
9
- # ==== Example
10
- # @data = @mints_user.get_dam_loadtree
11
- def get_dam_loadtree
12
- @client.raw("get", "/content/dam/loadtree")
13
- end
6
+ # === Get dam load_tree.
7
+ # Get dam load_tree.
8
+ #
9
+ # ==== Example
10
+ # @data = @mints_user.get_dam_load_tree
11
+ def get_dam_load_tree
12
+ @client.raw('get', '/content/dam/loadtree')
13
+ end
14
14
 
15
- # === Get dam asset locations.
16
- # Get an asset locations in dam.
17
- #
18
- # ==== Parameters
19
- # options:: (Hash) -- List of Resource Collection Options shown above can be used as parameter.
20
- #
21
- # ==== Example
22
- # @data = @mints_user.get_dam_asset_locations(options)
23
- def get_dam_asset_locations(options)
24
- @client.raw("get", "/content/dam/asset-locations", options)
25
- end
26
-
27
- def paste_dam(data) #FIXME: Controller detect object array like a single array.
28
- @client.raw("post", "/content/dam/paste", nil, data)
29
- end
15
+ # === Get dam asset locations.
16
+ # Get an asset locations in dam.
17
+ #
18
+ # ==== Parameters
19
+ # options:: (Hash) -- List of Resource Collection Options shown above can be used as parameter.
20
+ #
21
+ # ==== Example
22
+ # @data = @mints_user.get_dam_asset_locations(options)
23
+ def get_dam_asset_locations(options)
24
+ @client.raw('get', '/content/dam/asset-locations', options)
25
+ end
30
26
 
31
- # === Rename dam.
32
- # Rename folder or asset in dam.
33
- #
34
- # ==== Parameters
35
- # data:: (Hash) -- Data to be submitted.
36
- #
37
- # ==== Example
38
- # data = {
39
- # "itemType": "asset",
40
- # "id": 21,
41
- # "title": "accusantium",
42
- # "description": "Ea cupiditate",
43
- # "slug": "accusantium"
44
- # }
45
- # @data = @mints_user.rename_dam(data.to_json)
46
- def rename_dam(data)
47
- @client.raw("post", "/content/dam/rename", nil, data)
48
- end
27
+ def paste_dam(data)
28
+ # FIXME: Controller detect object array like a single array.
29
+ @client.raw('post', '/content/dam/paste', nil, data)
30
+ end
49
31
 
50
- # === Search dam.
51
- # Search folder or asset in dam.
52
- #
53
- # ==== Parameters
54
- # data:: (Hash) -- Data to be submitted.
55
- #
56
- # ==== Example
57
- # data = {
58
- # "searchFor": "accusantium"
59
- # }
60
- # @data = @mints_user.search_dam(data.to_json)
61
- def search_dam(data)
62
- @client.raw("post", "/content/dam/search", nil, data)
63
- end
32
+ # === Rename dam.
33
+ # Rename folder or asset in dam.
34
+ #
35
+ # ==== Parameters
36
+ # data:: (Hash) -- Data to be submitted.
37
+ #
38
+ # ==== Example
39
+ # data = {
40
+ # itemType: 'asset',
41
+ # id: 21,
42
+ # title: 'New folder title',
43
+ # description: 'New folder description',
44
+ # slug: 'new-folder-title'
45
+ # }
46
+ # @data = @mints_user.rename_dam(data.to_json)
47
+ def rename_dam(data)
48
+ @client.raw('post', '/content/dam/rename', nil, data)
49
+ end
64
50
 
65
- def send_to_trash_dam(data) #FIXME: Invalid argument supplied for foreach()
66
- @client.raw("post", "/content/dam/sendToTrash", nil, data)
67
- end
51
+ # === Search dam.
52
+ # Search folder or asset in dam.
53
+ #
54
+ # ==== Parameters
55
+ # data:: (Hash) -- Data to be submitted.
56
+ #
57
+ # ==== Example
58
+ # data = {
59
+ # searchFor: 'Folder name'
60
+ # }
61
+ # @data = @mints_user.search_dam(data.to_json)
62
+ def search_dam(data)
63
+ @client.raw('post', '/content/dam/search', nil, data)
64
+ end
68
65
 
69
- def delete_dam(data) #FIXME: Invalid argument supplied for foreach()
70
- @client.raw("post", "/content/dam/delete", nil, data)
71
- end
66
+ def send_to_trash_dam(data)
67
+ # FIXME: Invalid argument supplied for foreach()
68
+ @client.raw('post', '/content/dam/sendToTrash', nil, data)
69
+ end
72
70
 
73
- # === Create dam folder.
74
- # Create a folder in dam.
75
- #
76
- # ==== Parameters
77
- # data:: (Hash) -- Data to be submitted.
78
- #
79
- # ==== Example
80
- # data = {
81
- # "folder_name": "New Dam Folder",
82
- # "slug": "new-dam-folder"
83
- # }
84
- # @data = @mints_user.create_dam_folder(data.to_json)
85
- def create_dam_folder(data)
86
- @client.raw("post", "/content/folders/create", nil, data)
87
- end
88
- end
71
+ def delete_dam(data)
72
+ # FIXME: Invalid argument supplied for foreach()
73
+ @client.raw('post', '/content/dam/delete', nil, data)
74
+ end
75
+
76
+ # === Create dam folder.
77
+ # Create a folder in dam.
78
+ #
79
+ # ==== Parameters
80
+ # data:: (Hash) -- Data to be submitted.
81
+ #
82
+ # ==== Example
83
+ # data = {
84
+ # folder_name: 'New Dam Folder',
85
+ # slug: 'new-dam-folder'
86
+ # }
87
+ # @data = @mints_user.create_dam_folder(data.to_json)
88
+ def create_dam_folder(data)
89
+ @client.raw('post', '/content/folders/create', nil, data)
90
+ end
91
+ end
@@ -1,234 +1,230 @@
1
1
  module Forms
2
- ##
3
- # == Forms
4
- #
5
-
6
- # === Get forms.
7
- # Get a collection of forms.
8
- #
9
- # ==== Parameters
10
- # options:: (Hash) -- List of Resource Collection Options shown above can be used as parameter.
11
- #
12
- # ==== First Example
13
- # @data = @mints_user.get_forms
14
- #
15
- # ==== Second Example
16
- # options = { "sort": "id", "fields": "title" }
17
- # @data = @mints_user.get_forms(options)
18
- def get_forms(options = nil)
19
- @client.raw("get", "/content/forms", options)
20
- end
21
-
22
- # === Publish form.
23
- # Publish a form.
24
- #
25
- # ==== Parameters
26
- # id:: (Integer) -- Form id.
27
- # data:: (Hash) -- Data to be submitted.
28
- #
29
- # ==== Example
30
- # data = {
31
- # "data": {
32
- # "slug": "new-publish"
33
- # }
34
- # }
35
- # @data = @mints_user.publish_form(1, data.to_json)
36
- def publish_form(id, data) #FIXME: Output cannot be processed. response cannot be converted to json.
37
- @client.raw("put", "/content/forms/#{id}/publish", nil, data)
38
- end
39
-
40
- # === Schedule form.
41
- # Schedule a form in a specified date.
42
- #
43
- # ==== Parameters
44
- # id:: (Integer) -- Form id.
45
- # data:: (Hash) -- Data to be submitted.
46
- #
47
- # ==== Example
48
- # data = {
49
- # "data": {
50
- # "scheduled_at": "2021-09-06T20:29:16+00:00"
51
- # }
52
- # }
53
- # @data = @mints_user.schedule_form(1, data.to_json)
54
- def schedule_form(id, data) #FIXME: Output cannot be processed. response cannot be converted to json.
55
- @client.raw("put", "/content/forms/#{id}/schedule", nil, data)
56
- end
57
-
58
- # === Revert published form.
59
- # Revert a published form.
60
- #
61
- # ==== Parameters
62
- # id:: (Integer) -- Form id.
63
- #
64
- # ==== Example
65
- # @data = @mints_user.revert_published_form(1)
66
- def revert_published_form(id)
67
- @client.raw("get", "/content/forms/#{id}/revert-published-data")
68
- end
69
-
70
- # === Duplicate form.
71
- # Duplicate a form.
72
- #
73
- # ==== Parameters
74
- # id:: (Integer) -- Form id.
75
- #
76
- # ==== Example
77
- # @data = @mints_user.duplicate_form(3)
78
- def duplicate_form(id)
79
- @client.raw("post", "/content/forms/#{id}/duplicate")
80
- end
81
-
82
- # === Get activation words form.
83
- # Get activation words a form.
84
- #
85
- # ==== Parameters
86
- # id:: (Integer) -- Form id.
87
- #
88
- # ==== Example
89
- # @data = @mints_user.get_form_activation_words(3)
90
- def get_form_activation_words(id)
91
- @client.raw("post", "/content/forms/#{id}/activation-words")
92
- end
93
-
94
- # === Get form support data.
95
- # Get form support data.
96
- #
97
- # ==== Example
98
- # @data = @mints_user.get_form_support_data
99
- def get_form_support_data
100
- @client.raw("get", "/content/forms/support-data")
101
- end
102
-
103
- # === Get form submissions.
104
- # Get form submissions.
105
- #
106
- # ==== Parameters
107
- # options:: (Hash) -- List of Resource Collection Options shown above can be used as parameter.
108
- #
109
- # ==== First Example
110
- # @data = @mints_user.get_form_submissions
111
- #
112
- # ==== Second Example
113
- # options = { "fields": "id" }
114
- # @data = @mints_user.get_form_submissions(options)
115
- def get_form_submissions(options = nil)
116
- @client.raw("get", "/content/forms/submissions", options)
117
- end
118
-
119
- # === Get form submission.
120
- # Get form submission.
121
- #
122
- # ==== Parameters
123
- # options:: (Hash) -- List of Resource Collection Options shown above can be used as parameter.
124
- #
125
- # ==== First Example
126
- # @data = @mints_user.get_form_submissions
127
- #
128
- # ==== Second Example
129
- # options = { "fields": "id" }
130
- # @data = @mints_user.get_form_submissions(options)
131
- def get_form_submission(id, options)
132
- @client.raw("get", "/content/forms/submissions/#{id}", options)
133
- end
134
-
135
- # === Delete form submission.
136
- # Delete a form submission.
137
- #
138
- # ==== Parameters
139
- # id:: (Integer) -- Form submission id.
140
- #
141
- # ==== Example
142
- # @data = @mints_user.delete_form_submission(1)
143
- def delete_form_submission(id)
144
- @client.raw("delete", "/content/forms/submissions/#{id}")
145
- end
146
-
147
- # === Get form.
148
- # Get a form info.
149
- #
150
- # ==== Parameters
151
- # id:: (Integer) -- Form id.
152
- # options:: (Hash) -- List of Resource Collection Options shown above can be used as parameter.
153
- #
154
- # ==== First Example
155
- # @data = @mints_user.get_form(9)
156
- #
157
- # ==== Second Example
158
- # options = { "sort": "id", "fields": "title" }
159
- # @data = @mints_user.get_form(2, options)
160
- def get_form(id, options = nil)
161
- @client.raw("get", "/content/forms/#{id}", options)
162
- end
163
-
164
- # === Create form.
165
- # Create a form with data.
166
- #
167
- # ==== Parameters
168
- # data:: (Hash) -- Data to be submitted.
169
- #
170
- # ==== Example
171
- # data = {
172
- # "title": "New Form",
173
- # "slug": "new-form-slug"
174
- # }
175
- # @data = @mints_user.create_form(data)
176
- def create_form(data)
177
- @client.raw("post", "/content/forms", nil, data_transform(data))
178
- end
179
-
180
- # === Update form.
181
- # Update a form info.
182
- #
183
- # ==== Parameters
184
- # id:: (Integer) -- Form id.
185
- # data:: (Hash) -- Data to be submitted.
186
- #
187
- # ==== Example
188
- # data = {
189
- # "title": "New Form Modified",
190
- # "slug": "new-form-slug"
191
- # }
192
- # @data = @mints_user.update_form(3, data)
193
- def update_form(id, data)
194
- @client.raw("put", "/content/forms/#{id}", nil, data_transform(data))
195
- end
196
-
197
- # === Delete form.
198
- # Delete a form.
199
- #
200
- # ==== Parameters
201
- # id:: (Integer) -- Form id.
202
- #
203
- # ==== Example
204
- # @data = @mints_user.delete_form(9)
205
- def delete_form(id)
206
- @client.raw("delete", "/content/forms/#{id}")
207
- end
208
-
209
- # === Get form aggregates.
210
- # Get a form aggregates info.
211
- #
212
- # ==== Parameters
213
- # id:: (Integer) -- Form id.
214
- # object_id:: (Integer) -- Object id.
215
- # ==== First Example
216
- # @data = @mints_user.get_form_aggregates(1)
217
- def get_form_aggregates(id, object_id)
218
- @client.raw("get", "/content/forms/#{id}/aggregates?object_id=#{object_id}", options)
219
- end
220
-
221
- # === Reset aggregates.
222
- #
223
- # ==== Parameters
224
- # data:: (Hash) -- Data to be submitted.
225
- #
226
- # ==== Example
227
- # data = {
228
- # "object_id": 1
229
- # }
230
- # @data = @mints_user.reset_form_aggregates(data)
231
- def reset_form_aggregates(data)
232
- @client.raw("post", "/content/forms/#{id}/aggregates", nil, data_transform(data))
233
- end
234
- end
2
+ ##
3
+ # == Forms
4
+ #
5
+
6
+ # === Get forms.
7
+ # Get a collection of forms.
8
+ #
9
+ # ==== Parameters
10
+ # options:: (Hash) -- List of Resource Collection Options shown above can be used as parameter.
11
+ #
12
+ # ==== First Example
13
+ # @data = @mints_user.get_forms
14
+ #
15
+ # ==== Second Example
16
+ # options = { sort: 'id', fields: 'title' }
17
+ # @data = @mints_user.get_forms(options)
18
+ def get_forms(options = nil)
19
+ @client.raw('get', '/content/forms', options)
20
+ end
21
+
22
+ # === Publish form.
23
+ # Publish a form.
24
+ #
25
+ # ==== Parameters
26
+ # id:: (Integer) -- Form id.
27
+ # data:: (Hash) -- Data to be submitted.
28
+ #
29
+ # ==== Example
30
+ # data = {
31
+ # slug: "new-publish"
32
+ # }
33
+ # @data = @mints_user.publish_form(1, data)
34
+ def publish_form(id, data)
35
+ # FIXME: Output cannot be processed. response cannot be converted to json.
36
+ @client.raw('put', "/content/forms/#{id}/publish", nil, data_transform(data))
37
+ end
38
+
39
+ # === Schedule form.
40
+ # Schedule a form in a specified date.
41
+ #
42
+ # ==== Parameters
43
+ # id:: (Integer) -- Form id.
44
+ # data:: (Hash) -- Data to be submitted.
45
+ #
46
+ # ==== Example
47
+ # data = {
48
+ # scheduled_at: '2021-09-06T20:29:16+00:00'
49
+ # }
50
+ # @data = @mints_user.schedule_form(1, data.to_json)
51
+ def schedule_form(id, data)
52
+ # FIXME: Output cannot be processed. response cannot be converted to json.
53
+ @client.raw('put', "/content/forms/#{id}/schedule", nil, data_transform(data))
54
+ end
55
+
56
+ # === Revert published form.
57
+ # Revert a published form.
58
+ #
59
+ # ==== Parameters
60
+ # id:: (Integer) -- Form id.
61
+ #
62
+ # ==== Example
63
+ # @data = @mints_user.revert_published_form(1)
64
+ def revert_published_form(id)
65
+ @client.raw('get', "/content/forms/#{id}/revert-published-data")
66
+ end
67
+
68
+ # === Duplicate form.
69
+ # Duplicate a form.
70
+ #
71
+ # ==== Parameters
72
+ # id:: (Integer) -- Form id.
73
+ #
74
+ # ==== Example
75
+ # @data = @mints_user.duplicate_form(3)
76
+ def duplicate_form(id)
77
+ @client.raw('post', "/content/forms/#{id}/duplicate")
78
+ end
79
+
80
+ # === Get activation words form.
81
+ # Get activation words a form.
82
+ #
83
+ # ==== Parameters
84
+ # id:: (Integer) -- Form id.
85
+ #
86
+ # ==== Example
87
+ # @data = @mints_user.get_form_activation_words(3)
88
+ def get_form_activation_words(id)
89
+ @client.raw('post', "/content/forms/#{id}/activation-words")
90
+ end
91
+
92
+ # === Get form support data.
93
+ # Get form support data.
94
+ #
95
+ # ==== Example
96
+ # @data = @mints_user.get_form_support_data
97
+ def get_form_support_data
98
+ @client.raw('get', '/content/forms/support-data')
99
+ end
100
+
101
+ # === Get form submissions.
102
+ # Get form submissions.
103
+ #
104
+ # ==== Parameters
105
+ # options:: (Hash) -- List of Resource Collection Options shown above can be used as parameter.
106
+ #
107
+ # ==== First Example
108
+ # @data = @mints_user.get_form_submissions
109
+ #
110
+ # ==== Second Example
111
+ # options = { fields: 'id' }
112
+ # @data = @mints_user.get_form_submissions(options)
113
+ def get_form_submissions(options = nil)
114
+ @client.raw('get', '/content/forms/submissions', options)
115
+ end
116
+
117
+ # === Get form submission.
118
+ # Get form submission.
119
+ #
120
+ # ==== Parameters
121
+ # options:: (Hash) -- List of Resource Collection Options shown above can be used as parameter.
122
+ #
123
+ # ==== First Example
124
+ # @data = @mints_user.get_form_submissions
125
+ #
126
+ # ==== Second Example
127
+ # options = { fields: 'id' }
128
+ # @data = @mints_user.get_form_submissions(options)
129
+ def get_form_submission(id, options)
130
+ @client.raw('get', "/content/forms/submissions/#{id}", options)
131
+ end
132
+
133
+ # === Delete form submission.
134
+ # Delete a form submission.
135
+ #
136
+ # ==== Parameters
137
+ # id:: (Integer) -- Form submission id.
138
+ #
139
+ # ==== Example
140
+ # @data = @mints_user.delete_form_submission(1)
141
+ def delete_form_submission(id)
142
+ @client.raw('delete', "/content/forms/submissions/#{id}")
143
+ end
144
+
145
+ # === Get form.
146
+ # Get a form info.
147
+ #
148
+ # ==== Parameters
149
+ # id:: (Integer) -- Form id.
150
+ # options:: (Hash) -- List of Resource Collection Options shown above can be used as parameter.
151
+ #
152
+ # ==== First Example
153
+ # @data = @mints_user.get_form(9)
154
+ #
155
+ # ==== Second Example
156
+ # options = { sort: 'id', fields: 'title' }
157
+ # @data = @mints_user.get_form(2, options)
158
+ def get_form(id, options = nil)
159
+ @client.raw('get', "/content/forms/#{id}", options)
160
+ end
161
+
162
+ # === Create form.
163
+ # Create a form with data.
164
+ #
165
+ # ==== Parameters
166
+ # data:: (Hash) -- Data to be submitted.
167
+ #
168
+ # ==== Example
169
+ # data = {
170
+ # title: 'New Form',
171
+ # slug: 'new-form-slug'
172
+ # }
173
+ # @data = @mints_user.create_form(data)
174
+ def create_form(data)
175
+ @client.raw('post', '/content/forms', nil, data_transform(data))
176
+ end
177
+
178
+ # === Update form.
179
+ # Update a form info.
180
+ #
181
+ # ==== Parameters
182
+ # id:: (Integer) -- Form id.
183
+ # data:: (Hash) -- Data to be submitted.
184
+ #
185
+ # ==== Example
186
+ # data = {
187
+ # title: 'New Form Modified',
188
+ # slug: 'new-form-slug'
189
+ # }
190
+ # @data = @mints_user.update_form(3, data)
191
+ def update_form(id, data)
192
+ @client.raw('put', "/content/forms/#{id}", nil, data_transform(data))
193
+ end
194
+
195
+ # === Delete form.
196
+ # Delete a form.
197
+ #
198
+ # ==== Parameters
199
+ # id:: (Integer) -- Form id.
200
+ #
201
+ # ==== Example
202
+ # @data = @mints_user.delete_form(9)
203
+ def delete_form(id)
204
+ @client.raw('delete', "/content/forms/#{id}")
205
+ end
206
+
207
+ # === Get form aggregates.
208
+ # Get a form aggregates info.
209
+ #
210
+ # ==== Parameters
211
+ # id:: (Integer) -- Form id.
212
+ # object_id:: (Integer) -- Object id.
213
+ # ==== First Example
214
+ # @data = @mints_user.get_form_aggregates(1)
215
+ def get_form_aggregates(id, object_id)
216
+ @client.raw('get', "/content/forms/#{id}/aggregates?object_id=#{object_id}", options)
217
+ end
218
+
219
+ # === Reset aggregates.
220
+ #
221
+ # ==== Parameters
222
+ # data:: (Hash) -- Data to be submitted.
223
+ #
224
+ # ==== Example
225
+ # data = { object_id: 1 }
226
+ # @data = @mints_user.reset_form_aggregates(data)
227
+ def reset_form_aggregates(data)
228
+ @client.raw('post', "/content/forms/#{id}/aggregates", nil, data_transform(data))
229
+ end
230
+ end