mailslurp_client 12.2.0 → 12.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3a427bb5e49835296ad621a84d617d327449fe99c38aa75413dd030973b5fb5d
4
- data.tar.gz: 7c7d311d0f3cce375656e224c7e1bffc0a196ae654a08b6ef34994cc995471f3
3
+ metadata.gz: cedf655ad57b8f3a567ec5ee89707998e4ccec13a907595b45eec3380615b16a
4
+ data.tar.gz: 976d2acfbe552d9f7ece214e3cfc62531a298c8545b7d527fbf6c34854b5a4a7
5
5
  SHA512:
6
- metadata.gz: 2ce2d37cd2a1fdcf6c1eb971269e8ba0e192cb11e352e9c7fcccc0524d61dfc5dac6e9a29118408e9024046b88b07c24672b3ace6c81223ab321f8495cb68836
7
- data.tar.gz: acd8e736eedf69e94eb3d1323fa7fd32a187a9846db01bc3c3cc7418e9dd5468af2a13cca58f0160ea55a4752980d0a9fa461ba77a14a9c5755a4df9b0bea5db
6
+ metadata.gz: 7b82024c9486047471bd4b217ff3ecbef303bc1b023b4de4f2d6b7909446112acbe461307f257c860c57bf956c2f2c6c3b59635538d0ba5d2774b015432f2701
7
+ data.tar.gz: 52dd65dec093e4fce0902bb3b0172476e4e844f7fb1f6e43bae8f447a8c62cea3b0a5f7f2fcacf8f9768bcdfcc714921ec377f76655e1f2eb2103bfb9d1b14b5
@@ -648,6 +648,7 @@ module MailSlurpClient
648
648
  # @param inbox_id [String] inboxId
649
649
  # @param [Hash] opts the optional parameters
650
650
  # @option opts [Integer] :page Optional page index in inbox sent email list pagination (default to 0)
651
+ # @option opts [String] :search_filter Optional sent email search
651
652
  # @option opts [Integer] :size Optional page size in inbox sent email list pagination (default to 20)
652
653
  # @option opts [String] :sort Optional createdAt sort direction ASC or DESC (default to 'ASC')
653
654
  # @return [PageSentEmailProjection]
@@ -661,6 +662,7 @@ module MailSlurpClient
661
662
  # @param inbox_id [String] inboxId
662
663
  # @param [Hash] opts the optional parameters
663
664
  # @option opts [Integer] :page Optional page index in inbox sent email list pagination
665
+ # @option opts [String] :search_filter Optional sent email search
664
666
  # @option opts [Integer] :size Optional page size in inbox sent email list pagination
665
667
  # @option opts [String] :sort Optional createdAt sort direction ASC or DESC
666
668
  # @return [Array<(PageSentEmailProjection, Integer, Hash)>] PageSentEmailProjection data, response status code and response headers
@@ -682,6 +684,7 @@ module MailSlurpClient
682
684
  # query parameters
683
685
  query_params = opts[:query_params] || {}
684
686
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
687
+ query_params[:'searchFilter'] = opts[:'search_filter'] if !opts[:'search_filter'].nil?
685
688
  query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
686
689
  query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
687
690
 
@@ -844,6 +847,7 @@ module MailSlurpClient
844
847
  # List organization inboxes in paginated form. These are inboxes created with `allowTeamAccess` flag enabled. Organization inboxes are `readOnly` for non-admin users. The results are available on the `content` property of the returned object. This method allows for page index (zero based), page size (how many results to return), and a sort direction (based on createdAt time).
845
848
  # @param [Hash] opts the optional parameters
846
849
  # @option opts [Integer] :page Optional page index in inbox list pagination (default to 0)
850
+ # @option opts [String] :search_filter Optional search filter
847
851
  # @option opts [Integer] :size Optional page size in inbox list pagination (default to 20)
848
852
  # @option opts [String] :sort Optional createdAt sort direction ASC or DESC (default to 'ASC')
849
853
  # @return [PageOrganizationInboxProjection]
@@ -856,6 +860,7 @@ module MailSlurpClient
856
860
  # List organization inboxes in paginated form. These are inboxes created with &#x60;allowTeamAccess&#x60; flag enabled. Organization inboxes are &#x60;readOnly&#x60; for non-admin users. The results are available on the &#x60;content&#x60; property of the returned object. This method allows for page index (zero based), page size (how many results to return), and a sort direction (based on createdAt time).
857
861
  # @param [Hash] opts the optional parameters
858
862
  # @option opts [Integer] :page Optional page index in inbox list pagination
863
+ # @option opts [String] :search_filter Optional search filter
859
864
  # @option opts [Integer] :size Optional page size in inbox list pagination
860
865
  # @option opts [String] :sort Optional createdAt sort direction ASC or DESC
861
866
  # @return [Array<(PageOrganizationInboxProjection, Integer, Hash)>] PageOrganizationInboxProjection data, response status code and response headers
@@ -873,6 +878,7 @@ module MailSlurpClient
873
878
  # query parameters
874
879
  query_params = opts[:query_params] || {}
875
880
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
881
+ query_params[:'searchFilter'] = opts[:'search_filter'] if !opts[:'search_filter'].nil?
876
882
  query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
877
883
  query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
878
884
 
@@ -22,6 +22,7 @@ module MailSlurpClient
22
22
  # Get all MissedEmails in paginated format
23
23
  # @param [Hash] opts the optional parameters
24
24
  # @option opts [Integer] :page Optional page index in inbox list pagination (default to 0)
25
+ # @option opts [String] :search_filter Optional search filter
25
26
  # @option opts [Integer] :size Optional page size in inbox list pagination (default to 20)
26
27
  # @option opts [String] :sort Optional createdAt sort direction ASC or DESC (default to 'ASC')
27
28
  # @return [PageMissedEmailProjection]
@@ -33,6 +34,7 @@ module MailSlurpClient
33
34
  # Get all MissedEmails in paginated format
34
35
  # @param [Hash] opts the optional parameters
35
36
  # @option opts [Integer] :page Optional page index in inbox list pagination
37
+ # @option opts [String] :search_filter Optional search filter
36
38
  # @option opts [Integer] :size Optional page size in inbox list pagination
37
39
  # @option opts [String] :sort Optional createdAt sort direction ASC or DESC
38
40
  # @return [Array<(PageMissedEmailProjection, Integer, Hash)>] PageMissedEmailProjection data, response status code and response headers
@@ -50,6 +52,7 @@ module MailSlurpClient
50
52
  # query parameters
51
53
  query_params = opts[:query_params] || {}
52
54
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
55
+ query_params[:'searchFilter'] = opts[:'search_filter'] if !opts[:'search_filter'].nil?
53
56
  query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
54
57
  query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
55
58
 
@@ -83,6 +83,7 @@ module MailSlurpClient
83
83
  # @param [Hash] opts the optional parameters
84
84
  # @option opts [String] :inbox_id Optional inboxId to filter sender of sent emails by
85
85
  # @option opts [Integer] :page Optional page index in inbox sent email list pagination (default to 0)
86
+ # @option opts [String] :search_filter Optional search filter
86
87
  # @option opts [Integer] :size Optional page size in inbox sent email list pagination (default to 20)
87
88
  # @option opts [String] :sort Optional createdAt sort direction ASC or DESC (default to 'ASC')
88
89
  # @return [PageSentEmailProjection]
@@ -95,6 +96,7 @@ module MailSlurpClient
95
96
  # @param [Hash] opts the optional parameters
96
97
  # @option opts [String] :inbox_id Optional inboxId to filter sender of sent emails by
97
98
  # @option opts [Integer] :page Optional page index in inbox sent email list pagination
99
+ # @option opts [String] :search_filter Optional search filter
98
100
  # @option opts [Integer] :size Optional page size in inbox sent email list pagination
99
101
  # @option opts [String] :sort Optional createdAt sort direction ASC or DESC
100
102
  # @return [Array<(PageSentEmailProjection, Integer, Hash)>] PageSentEmailProjection data, response status code and response headers
@@ -113,6 +115,7 @@ module MailSlurpClient
113
115
  query_params = opts[:query_params] || {}
114
116
  query_params[:'inboxId'] = opts[:'inbox_id'] if !opts[:'inbox_id'].nil?
115
117
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
118
+ query_params[:'searchFilter'] = opts[:'search_filter'] if !opts[:'search_filter'].nil?
116
119
  query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
117
120
  query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
118
121
 
@@ -153,6 +156,7 @@ module MailSlurpClient
153
156
  # @param [Hash] opts the optional parameters
154
157
  # @option opts [String] :inbox_id Optional inboxId to filter sender of sent emails by
155
158
  # @option opts [Integer] :page Optional page index in inbox sent email list pagination (default to 0)
159
+ # @option opts [String] :search_filter Optional search filter
156
160
  # @option opts [Integer] :size Optional page size in inbox sent email list pagination (default to 20)
157
161
  # @option opts [String] :sort Optional createdAt sort direction ASC or DESC (default to 'ASC')
158
162
  # @return [PageSentEmailProjection]
@@ -165,6 +169,7 @@ module MailSlurpClient
165
169
  # @param [Hash] opts the optional parameters
166
170
  # @option opts [String] :inbox_id Optional inboxId to filter sender of sent emails by
167
171
  # @option opts [Integer] :page Optional page index in inbox sent email list pagination
172
+ # @option opts [String] :search_filter Optional search filter
168
173
  # @option opts [Integer] :size Optional page size in inbox sent email list pagination
169
174
  # @option opts [String] :sort Optional createdAt sort direction ASC or DESC
170
175
  # @return [Array<(PageSentEmailProjection, Integer, Hash)>] PageSentEmailProjection data, response status code and response headers
@@ -183,6 +188,7 @@ module MailSlurpClient
183
188
  query_params = opts[:query_params] || {}
184
189
  query_params[:'inboxId'] = opts[:'inbox_id'] if !opts[:'inbox_id'].nil?
185
190
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
191
+ query_params[:'searchFilter'] = opts[:'search_filter'] if !opts[:'search_filter'].nil?
186
192
  query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
187
193
  query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
188
194
 
@@ -156,6 +156,7 @@ module MailSlurpClient
156
156
  # Get results for all webhooks
157
157
  # @param [Hash] opts the optional parameters
158
158
  # @option opts [Integer] :page Optional page index in list pagination (default to 0)
159
+ # @option opts [String] :search_filter Optional search filter
159
160
  # @option opts [Integer] :size Optional page size in list pagination (default to 20)
160
161
  # @option opts [String] :sort Optional createdAt sort direction ASC or DESC (default to 'ASC')
161
162
  # @return [PageWebhookResult]
@@ -167,6 +168,7 @@ module MailSlurpClient
167
168
  # Get results for all webhooks
168
169
  # @param [Hash] opts the optional parameters
169
170
  # @option opts [Integer] :page Optional page index in list pagination
171
+ # @option opts [String] :search_filter Optional search filter
170
172
  # @option opts [Integer] :size Optional page size in list pagination
171
173
  # @option opts [String] :sort Optional createdAt sort direction ASC or DESC
172
174
  # @return [Array<(PageWebhookResult, Integer, Hash)>] PageWebhookResult data, response status code and response headers
@@ -184,6 +186,7 @@ module MailSlurpClient
184
186
  # query parameters
185
187
  query_params = opts[:query_params] || {}
186
188
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
189
+ query_params[:'searchFilter'] = opts[:'search_filter'] if !opts[:'search_filter'].nil?
187
190
  query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
188
191
  query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
189
192
 
@@ -224,6 +227,7 @@ module MailSlurpClient
224
227
  # List webhooks in paginated form. Allows for page index, page size, and sort direction.
225
228
  # @param [Hash] opts the optional parameters
226
229
  # @option opts [Integer] :page Optional page index in list pagination (default to 0)
230
+ # @option opts [String] :search_filter Optional search filter
227
231
  # @option opts [Integer] :size Optional page size in list pagination (default to 20)
228
232
  # @option opts [String] :sort Optional createdAt sort direction ASC or DESC (default to 'ASC')
229
233
  # @return [PageWebhookProjection]
@@ -236,6 +240,7 @@ module MailSlurpClient
236
240
  # List webhooks in paginated form. Allows for page index, page size, and sort direction.
237
241
  # @param [Hash] opts the optional parameters
238
242
  # @option opts [Integer] :page Optional page index in list pagination
243
+ # @option opts [String] :search_filter Optional search filter
239
244
  # @option opts [Integer] :size Optional page size in list pagination
240
245
  # @option opts [String] :sort Optional createdAt sort direction ASC or DESC
241
246
  # @return [Array<(PageWebhookProjection, Integer, Hash)>] PageWebhookProjection data, response status code and response headers
@@ -253,6 +258,7 @@ module MailSlurpClient
253
258
  # query parameters
254
259
  query_params = opts[:query_params] || {}
255
260
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
261
+ query_params[:'searchFilter'] = opts[:'search_filter'] if !opts[:'search_filter'].nil?
256
262
  query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
257
263
  query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
258
264
 
@@ -289,6 +295,82 @@ module MailSlurpClient
289
295
  return data, status_code, headers
290
296
  end
291
297
 
298
+ # Get paginated webhooks for an Inbox
299
+ # @param inbox_id [String] inboxId
300
+ # @param [Hash] opts the optional parameters
301
+ # @option opts [Integer] :page Optional page index in list pagination (default to 0)
302
+ # @option opts [String] :search_filter Optional search filter
303
+ # @option opts [Integer] :size Optional page size in list pagination (default to 20)
304
+ # @option opts [String] :sort Optional createdAt sort direction ASC or DESC (default to 'ASC')
305
+ # @return [PageWebhookProjection]
306
+ def get_inbox_webhooks_paginated(inbox_id, opts = {})
307
+ data, _status_code, _headers = get_inbox_webhooks_paginated_with_http_info(inbox_id, opts)
308
+ data
309
+ end
310
+
311
+ # Get paginated webhooks for an Inbox
312
+ # @param inbox_id [String] inboxId
313
+ # @param [Hash] opts the optional parameters
314
+ # @option opts [Integer] :page Optional page index in list pagination
315
+ # @option opts [String] :search_filter Optional search filter
316
+ # @option opts [Integer] :size Optional page size in list pagination
317
+ # @option opts [String] :sort Optional createdAt sort direction ASC or DESC
318
+ # @return [Array<(PageWebhookProjection, Integer, Hash)>] PageWebhookProjection data, response status code and response headers
319
+ def get_inbox_webhooks_paginated_with_http_info(inbox_id, opts = {})
320
+ if @api_client.config.debugging
321
+ @api_client.config.logger.debug 'Calling API: WebhookControllerApi.get_inbox_webhooks_paginated ...'
322
+ end
323
+ # verify the required parameter 'inbox_id' is set
324
+ if @api_client.config.client_side_validation && inbox_id.nil?
325
+ fail ArgumentError, "Missing the required parameter 'inbox_id' when calling WebhookControllerApi.get_inbox_webhooks_paginated"
326
+ end
327
+ allowable_values = ["ASC", "DESC"]
328
+ if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
329
+ fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
330
+ end
331
+ # resource path
332
+ local_var_path = '/inboxes/{inboxId}/webhooks/paginated'.sub('{' + 'inboxId' + '}', CGI.escape(inbox_id.to_s))
333
+
334
+ # query parameters
335
+ query_params = opts[:query_params] || {}
336
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
337
+ query_params[:'searchFilter'] = opts[:'search_filter'] if !opts[:'search_filter'].nil?
338
+ query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
339
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
340
+
341
+ # header parameters
342
+ header_params = opts[:header_params] || {}
343
+ # HTTP header 'Accept' (if needed)
344
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
345
+
346
+ # form parameters
347
+ form_params = opts[:form_params] || {}
348
+
349
+ # http body (model)
350
+ post_body = opts[:body]
351
+
352
+ # return_type
353
+ return_type = opts[:return_type] || 'PageWebhookProjection'
354
+
355
+ # auth_names
356
+ auth_names = opts[:auth_names] || ['API_KEY']
357
+
358
+ new_options = opts.merge(
359
+ :header_params => header_params,
360
+ :query_params => query_params,
361
+ :form_params => form_params,
362
+ :body => post_body,
363
+ :auth_names => auth_names,
364
+ :return_type => return_type
365
+ )
366
+
367
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
368
+ if @api_client.config.debugging
369
+ @api_client.config.logger.debug "API called: WebhookControllerApi#get_inbox_webhooks_paginated\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
370
+ end
371
+ return data, status_code, headers
372
+ end
373
+
292
374
  # Get test webhook payload example. Response content depends on eventName passed. Uses `EMAIL_RECEIVED` as default.
293
375
  # @param [Hash] opts the optional parameters
294
376
  # @option opts [String] :event_name eventName
@@ -636,6 +718,7 @@ module MailSlurpClient
636
718
  # @param webhook_id [String] ID of webhook to get results for
637
719
  # @param [Hash] opts the optional parameters
638
720
  # @option opts [Integer] :page Optional page index in list pagination (default to 0)
721
+ # @option opts [String] :search_filter Optional search filter
639
722
  # @option opts [Integer] :size Optional page size in list pagination (default to 20)
640
723
  # @option opts [String] :sort Optional createdAt sort direction ASC or DESC (default to 'ASC')
641
724
  # @return [PageWebhookResult]
@@ -648,6 +731,7 @@ module MailSlurpClient
648
731
  # @param webhook_id [String] ID of webhook to get results for
649
732
  # @param [Hash] opts the optional parameters
650
733
  # @option opts [Integer] :page Optional page index in list pagination
734
+ # @option opts [String] :search_filter Optional search filter
651
735
  # @option opts [Integer] :size Optional page size in list pagination
652
736
  # @option opts [String] :sort Optional createdAt sort direction ASC or DESC
653
737
  # @return [Array<(PageWebhookResult, Integer, Hash)>] PageWebhookResult data, response status code and response headers
@@ -669,6 +753,7 @@ module MailSlurpClient
669
753
  # query parameters
670
754
  query_params = opts[:query_params] || {}
671
755
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
756
+ query_params[:'searchFilter'] = opts[:'search_filter'] if !opts[:'search_filter'].nil?
672
757
  query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
673
758
  query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
674
759
 
@@ -13,7 +13,6 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
- # Paginated webhook entity. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full entity use the projection ID with individual method calls.
17
16
  class PageWebhookProjection
18
17
  attr_accessor :content
19
18
 
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
- # NEW_ATTACHMENT webhook payload
16
+ # NEW_ATTACHMENT webhook payload. Sent to your webhook url endpoint via HTTP POST when an email is received by the inbox that your webhook is attached to that contains an attachment. You can use the attachmentId to download the attachment.
17
17
  class WebhookNewAttachmentPayload
18
18
  # ID of attachment. Use the `AttachmentController` to
19
19
  attr_accessor :attachment_id
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
- # NEW_CONTACT webhook payload
16
+ # NEW_CONTACT webhook payload. Sent to your webhook url endpoint via HTTP POST when an email is received by the inbox that your webhook is attached to that contains a recipient that has not been saved as a contact.
17
17
  class WebhookNewContactPayload
18
18
  attr_accessor :company
19
19
 
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
- # NEW_EMAIL webhook payload
16
+ # NEW_EMAIL webhook payload. Sent to your webhook url endpoint via HTTP POST when an email is received by the inbox that your webhook is attached to. Use the email ID to fetch the full email body or attachments.
17
17
  class WebhookNewEmailPayload
18
18
  # List of attachment meta data objects if attachments present
19
19
  attr_accessor :attachment_meta_datas
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module MailSlurpClient
14
- VERSION = '12.2.0'
14
+ VERSION = '12.3.2'
15
15
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mailslurp_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 12.2.0
4
+ version: 12.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - mailslurp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-18 00:00:00.000000000 Z
11
+ date: 2021-06-22 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Create emails addresses in Ruby then send and receive real emails and
14
14
  attachments. See https://www.mailslurp.com/docs/ruby/ for full Ruby documentation.