knockapi 0.4.11 → 0.4.12

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: 0ddc00df3cb669fa52a54e7e26232a07667b7206b7ebe79b9df585ca23c4ddae
4
- data.tar.gz: 9a96083148d5c5c822782643a8d3e8b86f7baf7ea9e2e38802b6a4c7ad1dcccb
3
+ metadata.gz: '068773528aedcda44f03ce1f2378bf78aef474f64fdaf036c92a2aea5c6e0c72'
4
+ data.tar.gz: 4bcb6204c07762d04460822b7bfb9a60ffc326c939ead527b7477b461a40c8e3
5
5
  SHA512:
6
- metadata.gz: 9759c24b6bb7b3625832e4eb820ab63522dac55c65a42c7e81dc196dd5ccaad2db1ab90013e25d109bc94692c52ee83b3826955bd2a26f21dcb1677f0cff64eb
7
- data.tar.gz: 3c790e4b2cefbb69c5cb7c2b856ad651b0ffe525b4f48cc0b4807537998c643abef5bf74e73491b71df421f21184efd3e20777032a0465d1fefe3bf75ba88e02
6
+ metadata.gz: d2bd60b5658cbce9198b83276dec3e7539ba9e7ce434df0736d6abfe1f5365086cb31bf4803fbc881d27bfd123ac13643001fe07bc8b857b5324930a9be47f5a
7
+ data.tar.gz: 6ea8d6f2669a13f68e14636463ee054a8fab1ecc81dc6260c2831d8c774598ff46743f68f409ed4e0bcc125aad2ac8c955e480ba49e616ea31e663fef4317a02
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- knockapi (0.4.11)
4
+ knockapi (0.4.12)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/lib/knock/objects.rb CHANGED
@@ -333,6 +333,7 @@ module Knock
333
333
  # - page_size: size of page to be returned (max: 50)
334
334
  # - after: after cursor for pagination
335
335
  # - before: before cursor for pagination
336
+ # - recipients: list of recipient identifiers to filter subscribers of the object
336
337
  #
337
338
  # @return [Hash] Paginated subscriptions response
338
339
  def list_subscriptions(collection:, id:, options: {})
data/lib/knock/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Knock
4
- VERSION = '0.4.11'
4
+ VERSION = '0.4.12'
5
5
  end
@@ -18,12 +18,12 @@ module Knock
18
18
  # @param [Hash] data The data to pass to the workflow
19
19
  # @param [String] cancellation_key An optional key to identify this workflow
20
20
  # invocation for cancelling
21
- # @param [String] tenant An optional tenant identifier
21
+ # @param [String, Hash] tenant An optional tenant identifier or a set of tenant attributes
22
22
  # @param [String] idempotency_key An optional idempotency key to prevent
23
23
  # duplicate workflow invocations
24
24
  #
25
25
  # @return [Hash] A workflow trigger result
26
- def trigger(key:, actor:, recipients:, data: {}, cancellation_key: nil, tenant: nil, idempotency_key: nil)
26
+ def trigger(key:, recipients:, data: {}, actor: nil, cancellation_key: nil, tenant: nil, idempotency_key: nil)
27
27
  attrs = {
28
28
  actor: actor,
29
29
  recipients: recipients,
@@ -72,7 +72,7 @@ module Knock
72
72
  # @param [Array<String, Hash>] recipients The recipient identifiers
73
73
  # @param [Array<Hash>] repeats The repeat rules for when to schedule the workflow run
74
74
  # @param [Hash] data Parameters to be used as variables on the workflow run
75
- # @param [String] tenant An optional tenant identifier
75
+ # @param [String, Hash] tenant An optional tenant identifier or a set of tenant attributes
76
76
 
77
77
  def create_schedules(key:, recipients:, repeats:, scheduled_at: nil, data: {}, actor: nil, tenant: nil)
78
78
  attrs = {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knockapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.11
4
+ version: 0.4.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Knock Labs, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-11 00:00:00.000000000 Z
11
+ date: 2024-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -108,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
108
108
  - !ruby/object:Gem::Version
109
109
  version: '0'
110
110
  requirements: []
111
- rubygems_version: 3.4.10
111
+ rubygems_version: 3.5.3
112
112
  signing_key:
113
113
  specification_version: 4
114
114
  summary: API client for Knock