finch-api 0.1.0.pre.alpha.24 → 0.1.0.pre.alpha.26
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +35 -0
- data/README.md +1 -1
- data/lib/finch_api/client.rb +3 -1
- data/lib/finch_api/internal/transport/base_client.rb +1 -1
- data/lib/finch_api/internal/type/array_of.rb +1 -0
- data/lib/finch_api/internal/type/base_model.rb +3 -1
- data/lib/finch_api/internal/type/converter.rb +27 -0
- data/lib/finch_api/internal/type/hash_of.rb +1 -0
- data/lib/finch_api/internal/type/union.rb +9 -7
- data/lib/finch_api/models/disconnect_response.rb +2 -2
- data/lib/finch_api/models/jobs/automated_async_job.rb +1 -1
- data/lib/finch_api/models/jobs/automated_list_params.rb +14 -1
- data/lib/finch_api/models/jobs/automated_retrieve_params.rb +14 -1
- data/lib/finch_api/models/jobs/manual_async_job.rb +5 -3
- data/lib/finch_api/models/jobs/manual_retrieve_params.rb +14 -1
- data/lib/finch_api/models/request_forwarding_forward_response.rb +10 -10
- data/lib/finch_api/resources/jobs/automated.rb +16 -3
- data/lib/finch_api/resources/jobs/manual.rb +10 -2
- data/lib/finch_api/resources/request_forwarding.rb +2 -2
- data/lib/finch_api/version.rb +1 -1
- data/rbi/finch_api/internal/transport/base_client.rbi +1 -1
- data/rbi/finch_api/internal/type/converter.rbi +54 -0
- data/rbi/finch_api/internal/type/union.rbi +9 -2
- data/rbi/finch_api/models/disconnect_response.rbi +2 -2
- data/rbi/finch_api/models/jobs/automated_async_job.rbi +2 -2
- data/rbi/finch_api/models/jobs/automated_list_params.rbi +15 -0
- data/rbi/finch_api/models/jobs/automated_retrieve_params.rbi +25 -5
- data/rbi/finch_api/models/jobs/manual_async_job.rbi +3 -3
- data/rbi/finch_api/models/jobs/manual_retrieve_params.rbi +25 -5
- data/rbi/finch_api/models/request_forwarding_forward_response.rbi +14 -14
- data/rbi/finch_api/resources/jobs/automated.rbi +14 -1
- data/rbi/finch_api/resources/jobs/manual.rbi +9 -1
- data/rbi/finch_api/resources/request_forwarding.rbi +2 -2
- data/sig/finch_api/internal/transport/base_client.rbs +1 -1
- data/sig/finch_api/internal/type/converter.rbs +17 -0
- data/sig/finch_api/internal/type/union.rbs +2 -2
- data/sig/finch_api/models/jobs/automated_list_params.rbs +7 -1
- data/sig/finch_api/models/jobs/automated_retrieve_params.rbs +13 -3
- data/sig/finch_api/models/jobs/manual_async_job.rbs +4 -4
- data/sig/finch_api/models/jobs/manual_retrieve_params.rbs +13 -3
- data/sig/finch_api/resources/jobs/automated.rbs +2 -0
- data/sig/finch_api/resources/jobs/manual.rbs +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 001b17120032e3a9858cbe7ec392b2a1f88335e016c832300173ab9a131fb295
|
4
|
+
data.tar.gz: e2da9d326d10fb9c2713261f8201dfb20370685804dc4a4440aea588ac66b156
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0fea639f345b1c5fafd5e21b65e3e94ed2ae2908194857534d3126f9dc5ee1efac374d3a9f6d7b9b97d3d248097ced859c046a00186fa9de64323bc095adf77
|
7
|
+
data.tar.gz: 65bb77a74431a281b7e14317852362278f082ff73ca91f1dc34035140c9eb56b2852b50b80229fa491525464360f3288c24c7ad64f41f3942c43b73c6cf06574
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,40 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 0.1.0-alpha.26 (2025-08-14)
|
4
|
+
|
5
|
+
Full Changelog: [v0.1.0-alpha.25...v0.1.0-alpha.26](https://github.com/Finch-API/finch-api-ruby/compare/v0.1.0-alpha.25...v0.1.0-alpha.26)
|
6
|
+
|
7
|
+
### Features
|
8
|
+
|
9
|
+
* **api:** api update ([80b711b](https://github.com/Finch-API/finch-api-ruby/commit/80b711bc0c917ce1f1f4daaac3301b5c8e5bd1e7))
|
10
|
+
* **api:** api update ([5b2d8f2](https://github.com/Finch-API/finch-api-ruby/commit/5b2d8f2d1c30039ca4d4c5acfa055b5c60acefb9))
|
11
|
+
|
12
|
+
|
13
|
+
### Bug Fixes
|
14
|
+
|
15
|
+
* **client:** prioritise bearer auth ([d8817a5](https://github.com/Finch-API/finch-api-ruby/commit/d8817a5e6c6f289dc1dd1a5a5ad35c43049d1f0e))
|
16
|
+
|
17
|
+
|
18
|
+
### Chores
|
19
|
+
|
20
|
+
* collect metadata from type DSL ([e919ec0](https://github.com/Finch-API/finch-api-ruby/commit/e919ec0b110aa3a5ba703bf9dd317b2ea4091a28))
|
21
|
+
* **internal:** update comment in script ([5969020](https://github.com/Finch-API/finch-api-ruby/commit/59690202144cf2295b6edc7542f10cd6932b0da2))
|
22
|
+
* update @stainless-api/prism-cli to v5.15.0 ([2953337](https://github.com/Finch-API/finch-api-ruby/commit/29533376815ef4be96be5fde8de45fcf3f48a232))
|
23
|
+
|
24
|
+
## 0.1.0-alpha.25 (2025-07-31)
|
25
|
+
|
26
|
+
Full Changelog: [v0.1.0-alpha.24...v0.1.0-alpha.25](https://github.com/Finch-API/finch-api-ruby/compare/v0.1.0-alpha.24...v0.1.0-alpha.25)
|
27
|
+
|
28
|
+
### Bug Fixes
|
29
|
+
|
30
|
+
* **internal:** ensure sorbet test always runs serially ([007501f](https://github.com/Finch-API/finch-api-ruby/commit/007501f8faade4e909775c5c2de7f99b3e344bb7))
|
31
|
+
|
32
|
+
|
33
|
+
### Chores
|
34
|
+
|
35
|
+
* **internal:** increase visibility of internal helper method ([66d0f39](https://github.com/Finch-API/finch-api-ruby/commit/66d0f3947c6724659efbd8d23890a5e5519be22c))
|
36
|
+
* update contribute.md ([7d83851](https://github.com/Finch-API/finch-api-ruby/commit/7d8385183a2e4d9919780cd73a350431b27f4312))
|
37
|
+
|
3
38
|
## 0.1.0-alpha.24 (2025-07-23)
|
4
39
|
|
5
40
|
Full Changelog: [v0.1.0-alpha.23...v0.1.0-alpha.24](https://github.com/Finch-API/finch-api-ruby/compare/v0.1.0-alpha.23...v0.1.0-alpha.24)
|
data/README.md
CHANGED
@@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application
|
|
17
17
|
<!-- x-release-please-start-version -->
|
18
18
|
|
19
19
|
```ruby
|
20
|
-
gem "finch-api", "~> 0.1.0.pre.alpha.
|
20
|
+
gem "finch-api", "~> 0.1.0.pre.alpha.26"
|
21
21
|
```
|
22
22
|
|
23
23
|
<!-- x-release-please-end -->
|
data/lib/finch_api/client.rb
CHANGED
@@ -365,7 +365,7 @@ module FinchAPI
|
|
365
365
|
#
|
366
366
|
# @raise [FinchAPI::Errors::APIError]
|
367
367
|
# @return [Array(Integer, Net::HTTPResponse, Enumerable<String>)]
|
368
|
-
|
368
|
+
def send_request(request, redirect_count:, retry_count:, send_retry_header:)
|
369
369
|
url, headers, max_retries, timeout = request.fetch_values(:url, :headers, :max_retries, :timeout)
|
370
370
|
input = {**request.except(:timeout), deadline: FinchAPI::Internal::Util.monotonic_secs + timeout}
|
371
371
|
|
@@ -148,6 +148,7 @@ module FinchAPI
|
|
148
148
|
# @option spec [Boolean] :"nil?"
|
149
149
|
def initialize(type_info, spec = {})
|
150
150
|
@item_type_fn = FinchAPI::Internal::Type::Converter.type_info(type_info || spec)
|
151
|
+
@meta = FinchAPI::Internal::Type::Converter.meta_info(type_info, spec)
|
151
152
|
@nilable = spec.fetch(:nil?, false)
|
152
153
|
end
|
153
154
|
|
@@ -52,6 +52,7 @@ module FinchAPI
|
|
52
52
|
#
|
53
53
|
# @option spec [Boolean] :"nil?"
|
54
54
|
private def add_field(name_sym, required:, type_info:, spec:)
|
55
|
+
meta = FinchAPI::Internal::Type::Converter.meta_info(type_info, spec)
|
55
56
|
type_fn, info =
|
56
57
|
case type_info
|
57
58
|
in Proc | FinchAPI::Internal::Type::Converter | Class
|
@@ -81,7 +82,8 @@ module FinchAPI
|
|
81
82
|
required: required,
|
82
83
|
nilable: nilable,
|
83
84
|
const: const,
|
84
|
-
type_fn: type_fn
|
85
|
+
type_fn: type_fn,
|
86
|
+
meta: meta
|
85
87
|
}
|
86
88
|
|
87
89
|
define_method(setter) do |value|
|
@@ -98,6 +98,33 @@ module FinchAPI
|
|
98
98
|
end
|
99
99
|
end
|
100
100
|
|
101
|
+
# @api private
|
102
|
+
#
|
103
|
+
# @param type_info [Hash{Symbol=>Object}, Proc, FinchAPI::Internal::Type::Converter, Class] .
|
104
|
+
#
|
105
|
+
# @option type_info [NilClass, TrueClass, FalseClass, Integer, Float, Symbol] :const
|
106
|
+
#
|
107
|
+
# @option type_info [Proc] :enum
|
108
|
+
#
|
109
|
+
# @option type_info [Proc] :union
|
110
|
+
#
|
111
|
+
# @option type_info [Boolean] :"nil?"
|
112
|
+
#
|
113
|
+
# @param spec [Hash{Symbol=>Object}, Proc, FinchAPI::Internal::Type::Converter, Class] .
|
114
|
+
#
|
115
|
+
# @option spec [NilClass, TrueClass, FalseClass, Integer, Float, Symbol] :const
|
116
|
+
#
|
117
|
+
# @option spec [Proc] :enum
|
118
|
+
#
|
119
|
+
# @option spec [Proc] :union
|
120
|
+
#
|
121
|
+
# @option spec [Boolean] :"nil?"
|
122
|
+
#
|
123
|
+
# @return [Hash{Symbol=>Object}]
|
124
|
+
def meta_info(type_info, spec)
|
125
|
+
[spec, type_info].grep(Hash).first.to_h.except(:const, :enum, :union, :nil?)
|
126
|
+
end
|
127
|
+
|
101
128
|
# @api private
|
102
129
|
#
|
103
130
|
# @param translate_names [Boolean]
|
@@ -168,6 +168,7 @@ module FinchAPI
|
|
168
168
|
# @option spec [Boolean] :"nil?"
|
169
169
|
def initialize(type_info, spec = {})
|
170
170
|
@item_type_fn = FinchAPI::Internal::Type::Converter.type_info(type_info || spec)
|
171
|
+
@meta = FinchAPI::Internal::Type::Converter.meta_info(type_info, spec)
|
171
172
|
@nilable = spec.fetch(:nil?, false)
|
172
173
|
end
|
173
174
|
|
@@ -33,20 +33,20 @@ module FinchAPI
|
|
33
33
|
#
|
34
34
|
# All of the specified variant info for this union.
|
35
35
|
#
|
36
|
-
# @return [Array<Array(Symbol, Proc)>]
|
36
|
+
# @return [Array<Array(Symbol, Proc, Hash{Symbol=>Object})>]
|
37
37
|
private def known_variants = (@known_variants ||= [])
|
38
38
|
|
39
39
|
# @api private
|
40
40
|
#
|
41
|
-
# @return [Array<Array(Symbol, Object)>]
|
41
|
+
# @return [Array<Array(Symbol, Object, Hash{Symbol=>Object})>]
|
42
42
|
protected def derefed_variants
|
43
|
-
known_variants.map { |key, variant_fn| [key, variant_fn.call] }
|
43
|
+
known_variants.map { |key, variant_fn, meta| [key, variant_fn.call, meta] }
|
44
44
|
end
|
45
45
|
|
46
46
|
# All of the specified variants for this union.
|
47
47
|
#
|
48
48
|
# @return [Array<Object>]
|
49
|
-
def variants = derefed_variants.map
|
49
|
+
def variants = derefed_variants.map { _2 }
|
50
50
|
|
51
51
|
# @api private
|
52
52
|
#
|
@@ -72,12 +72,13 @@ module FinchAPI
|
|
72
72
|
#
|
73
73
|
# @option spec [Boolean] :"nil?"
|
74
74
|
private def variant(key, spec = nil)
|
75
|
+
meta = FinchAPI::Internal::Type::Converter.meta_info(nil, spec)
|
75
76
|
variant_info =
|
76
77
|
case key
|
77
78
|
in Symbol
|
78
|
-
[key, FinchAPI::Internal::Type::Converter.type_info(spec)]
|
79
|
+
[key, FinchAPI::Internal::Type::Converter.type_info(spec), meta]
|
79
80
|
in Proc | FinchAPI::Internal::Type::Converter | Class | Hash
|
80
|
-
[nil, FinchAPI::Internal::Type::Converter.type_info(key)]
|
81
|
+
[nil, FinchAPI::Internal::Type::Converter.type_info(key), meta]
|
81
82
|
end
|
82
83
|
|
83
84
|
known_variants << variant_info
|
@@ -100,7 +101,8 @@ module FinchAPI
|
|
100
101
|
return nil if key == FinchAPI::Internal::OMIT
|
101
102
|
|
102
103
|
key = key.to_sym if key.is_a?(String)
|
103
|
-
known_variants.find { |k,| k == key }
|
104
|
+
_, found = known_variants.find { |k,| k == key }
|
105
|
+
found&.call
|
104
106
|
else
|
105
107
|
nil
|
106
108
|
end
|
@@ -5,13 +5,13 @@ module FinchAPI
|
|
5
5
|
# @see FinchAPI::Resources::Account#disconnect
|
6
6
|
class DisconnectResponse < FinchAPI::Internal::Type::BaseModel
|
7
7
|
# @!attribute status
|
8
|
-
# If the request is successful, Finch will return
|
8
|
+
# If the request is successful, Finch will return "success" (HTTP 200 status).
|
9
9
|
#
|
10
10
|
# @return [String]
|
11
11
|
required :status, String
|
12
12
|
|
13
13
|
# @!method initialize(status:)
|
14
|
-
# @param status [String] If the request is successful, Finch will return
|
14
|
+
# @param status [String] If the request is successful, Finch will return "success" (HTTP 200 status).
|
15
15
|
end
|
16
16
|
end
|
17
17
|
end
|
@@ -40,7 +40,7 @@ module FinchAPI
|
|
40
40
|
# @!attribute scheduled_at
|
41
41
|
# The datetime a job is scheduled to be run. For scheduled jobs, this datetime can
|
42
42
|
# be in the future if the job has not yet been enqueued. For ad-hoc jobs, this
|
43
|
-
# field will be
|
43
|
+
# field will be null.
|
44
44
|
#
|
45
45
|
# @return [Time, nil]
|
46
46
|
required :scheduled_at, Time, nil?: true
|
@@ -8,6 +8,14 @@ module FinchAPI
|
|
8
8
|
extend FinchAPI::Internal::Type::RequestParameters::Converter
|
9
9
|
include FinchAPI::Internal::Type::RequestParameters
|
10
10
|
|
11
|
+
# @!attribute entity_id
|
12
|
+
# The entity ID to use when authenticating with a multi-account token. Required
|
13
|
+
# when using a multi-account token to specify which entity's data to access.
|
14
|
+
# Example: `123e4567-e89b-12d3-a456-426614174000`
|
15
|
+
#
|
16
|
+
# @return [String, nil]
|
17
|
+
optional :entity_id, String
|
18
|
+
|
11
19
|
# @!attribute limit
|
12
20
|
# Number of items to return
|
13
21
|
#
|
@@ -20,7 +28,12 @@ module FinchAPI
|
|
20
28
|
# @return [Integer, nil]
|
21
29
|
optional :offset, Integer
|
22
30
|
|
23
|
-
# @!method initialize(limit: nil, offset: nil, request_options: {})
|
31
|
+
# @!method initialize(entity_id: nil, limit: nil, offset: nil, request_options: {})
|
32
|
+
# Some parameter documentations has been truncated, see
|
33
|
+
# {FinchAPI::Models::Jobs::AutomatedListParams} for more details.
|
34
|
+
#
|
35
|
+
# @param entity_id [String] The entity ID to use when authenticating with a multi-account token. Required wh
|
36
|
+
#
|
24
37
|
# @param limit [Integer] Number of items to return
|
25
38
|
#
|
26
39
|
# @param offset [Integer] Index to start from (defaults to 0)
|
@@ -8,7 +8,20 @@ module FinchAPI
|
|
8
8
|
extend FinchAPI::Internal::Type::RequestParameters::Converter
|
9
9
|
include FinchAPI::Internal::Type::RequestParameters
|
10
10
|
|
11
|
-
# @!
|
11
|
+
# @!attribute entity_id
|
12
|
+
# The entity ID to use when authenticating with a multi-account token. Required
|
13
|
+
# when using a multi-account token to specify which entity's data to access.
|
14
|
+
# Example: `123e4567-e89b-12d3-a456-426614174000`
|
15
|
+
#
|
16
|
+
# @return [String, nil]
|
17
|
+
optional :entity_id, String
|
18
|
+
|
19
|
+
# @!method initialize(entity_id: nil, request_options: {})
|
20
|
+
# Some parameter documentations has been truncated, see
|
21
|
+
# {FinchAPI::Models::Jobs::AutomatedRetrieveParams} for more details.
|
22
|
+
#
|
23
|
+
# @param entity_id [String] The entity ID to use when authenticating with a multi-account token. Required wh
|
24
|
+
#
|
12
25
|
# @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}]
|
13
26
|
end
|
14
27
|
end
|
@@ -8,8 +8,10 @@ module FinchAPI
|
|
8
8
|
# @!attribute body
|
9
9
|
# Specific information about the job, such as individual statuses for batch jobs.
|
10
10
|
#
|
11
|
-
# @return [Array<Object>, nil]
|
12
|
-
required :body,
|
11
|
+
# @return [Array<Object, nil>, nil]
|
12
|
+
required :body,
|
13
|
+
FinchAPI::Internal::Type::ArrayOf[FinchAPI::Internal::Type::Unknown, nil?: true],
|
14
|
+
nil?: true
|
13
15
|
|
14
16
|
# @!attribute job_id
|
15
17
|
#
|
@@ -22,7 +24,7 @@ module FinchAPI
|
|
22
24
|
required :status, enum: -> { FinchAPI::Jobs::ManualAsyncJob::Status }
|
23
25
|
|
24
26
|
# @!method initialize(body:, job_id:, status:)
|
25
|
-
# @param body [Array<Object>, nil] Specific information about the job, such as individual statuses for batch jobs.
|
27
|
+
# @param body [Array<Object, nil>, nil] Specific information about the job, such as individual statuses for batch jobs.
|
26
28
|
#
|
27
29
|
# @param job_id [String]
|
28
30
|
#
|
@@ -8,7 +8,20 @@ module FinchAPI
|
|
8
8
|
extend FinchAPI::Internal::Type::RequestParameters::Converter
|
9
9
|
include FinchAPI::Internal::Type::RequestParameters
|
10
10
|
|
11
|
-
# @!
|
11
|
+
# @!attribute entity_id
|
12
|
+
# The entity ID to use when authenticating with a multi-account token. Required
|
13
|
+
# when using a multi-account token to specify which entity's data to access.
|
14
|
+
# Example: `123e4567-e89b-12d3-a456-426614174000`
|
15
|
+
#
|
16
|
+
# @return [String, nil]
|
17
|
+
optional :entity_id, String
|
18
|
+
|
19
|
+
# @!method initialize(entity_id: nil, request_options: {})
|
20
|
+
# Some parameter documentations has been truncated, see
|
21
|
+
# {FinchAPI::Models::Jobs::ManualRetrieveParams} for more details.
|
22
|
+
#
|
23
|
+
# @param entity_id [String] The entity ID to use when authenticating with a multi-account token. Required wh
|
24
|
+
#
|
12
25
|
# @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}]
|
13
26
|
end
|
14
27
|
end
|
@@ -5,16 +5,16 @@ module FinchAPI
|
|
5
5
|
# @see FinchAPI::Resources::RequestForwarding#forward
|
6
6
|
class RequestForwardingForwardResponse < FinchAPI::Internal::Type::BaseModel
|
7
7
|
# @!attribute data
|
8
|
-
# A string representation of the HTTP response body of the forwarded request
|
9
|
-
# response received from the underlying integration
|
10
|
-
# in the case where the upstream system
|
8
|
+
# A string representation of the HTTP response body of the forwarded request's
|
9
|
+
# response received from the underlying integration's API. This field may be null
|
10
|
+
# in the case where the upstream system's response is empty.
|
11
11
|
#
|
12
12
|
# @return [String, nil]
|
13
13
|
required :data, String, nil?: true
|
14
14
|
|
15
15
|
# @!attribute headers
|
16
|
-
# The HTTP headers of the forwarded request
|
17
|
-
# the underlying integration
|
16
|
+
# The HTTP headers of the forwarded request's response, exactly as received from
|
17
|
+
# the underlying integration's API.
|
18
18
|
#
|
19
19
|
# @return [Object, nil]
|
20
20
|
required :headers, FinchAPI::Internal::Type::Unknown, nil?: true
|
@@ -27,8 +27,8 @@ module FinchAPI
|
|
27
27
|
required :request, -> { FinchAPI::Models::RequestForwardingForwardResponse::Request }
|
28
28
|
|
29
29
|
# @!attribute status_code
|
30
|
-
# The HTTP status code of the forwarded request
|
31
|
-
# the underlying integration
|
30
|
+
# The HTTP status code of the forwarded request's response, exactly received from
|
31
|
+
# the underlying integration's API. This value will be returned as an integer.
|
32
32
|
#
|
33
33
|
# @return [Integer]
|
34
34
|
required :status_code, Integer, api_name: :statusCode
|
@@ -37,13 +37,13 @@ module FinchAPI
|
|
37
37
|
# Some parameter documentations has been truncated, see
|
38
38
|
# {FinchAPI::Models::RequestForwardingForwardResponse} for more details.
|
39
39
|
#
|
40
|
-
# @param data [String, nil] A string representation of the HTTP response body of the forwarded request
|
40
|
+
# @param data [String, nil] A string representation of the HTTP response body of the forwarded request's res
|
41
41
|
#
|
42
|
-
# @param headers [Object, nil] The HTTP headers of the forwarded request
|
42
|
+
# @param headers [Object, nil] The HTTP headers of the forwarded request's response, exactly as received from t
|
43
43
|
#
|
44
44
|
# @param request [FinchAPI::Models::RequestForwardingForwardResponse::Request] An object containing details of your original forwarded request, for your ease o
|
45
45
|
#
|
46
|
-
# @param status_code [Integer] The HTTP status code of the forwarded request
|
46
|
+
# @param status_code [Integer] The HTTP status code of the forwarded request's response, exactly received from
|
47
47
|
|
48
48
|
# @see FinchAPI::Models::RequestForwardingForwardResponse#request
|
49
49
|
class Request < FinchAPI::Internal::Type::BaseModel
|
@@ -41,30 +41,43 @@ module FinchAPI
|
|
41
41
|
)
|
42
42
|
end
|
43
43
|
|
44
|
+
# Some parameter documentations has been truncated, see
|
45
|
+
# {FinchAPI::Models::Jobs::AutomatedRetrieveParams} for more details.
|
46
|
+
#
|
44
47
|
# Get an automated job by `job_id`.
|
45
48
|
#
|
46
|
-
# @overload retrieve(job_id, request_options: {})
|
49
|
+
# @overload retrieve(job_id, entity_id: nil, request_options: {})
|
47
50
|
#
|
48
51
|
# @param job_id [String]
|
52
|
+
#
|
53
|
+
# @param entity_id [String] The entity ID to use when authenticating with a multi-account token. Required wh
|
54
|
+
#
|
49
55
|
# @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}, nil]
|
50
56
|
#
|
51
57
|
# @return [FinchAPI::Models::Jobs::AutomatedAsyncJob]
|
52
58
|
#
|
53
59
|
# @see FinchAPI::Models::Jobs::AutomatedRetrieveParams
|
54
60
|
def retrieve(job_id, params = {})
|
61
|
+
parsed, options = FinchAPI::Jobs::AutomatedRetrieveParams.dump_request(params)
|
55
62
|
@client.request(
|
56
63
|
method: :get,
|
57
64
|
path: ["jobs/automated/%1$s", job_id],
|
65
|
+
query: parsed,
|
58
66
|
model: FinchAPI::Jobs::AutomatedAsyncJob,
|
59
|
-
options:
|
67
|
+
options: options
|
60
68
|
)
|
61
69
|
end
|
62
70
|
|
71
|
+
# Some parameter documentations has been truncated, see
|
72
|
+
# {FinchAPI::Models::Jobs::AutomatedListParams} for more details.
|
73
|
+
#
|
63
74
|
# Get all automated jobs. Automated jobs are completed by a machine. By default,
|
64
75
|
# jobs are sorted in descending order by submission time. For scheduled jobs such
|
65
76
|
# as data syncs, only the next scheduled job is shown.
|
66
77
|
#
|
67
|
-
# @overload list(limit: nil, offset: nil, request_options: {})
|
78
|
+
# @overload list(entity_id: nil, limit: nil, offset: nil, request_options: {})
|
79
|
+
#
|
80
|
+
# @param entity_id [String] The entity ID to use when authenticating with a multi-account token. Required wh
|
68
81
|
#
|
69
82
|
# @param limit [Integer] Number of items to return
|
70
83
|
#
|
@@ -4,23 +4,31 @@ module FinchAPI
|
|
4
4
|
module Resources
|
5
5
|
class Jobs
|
6
6
|
class Manual
|
7
|
+
# Some parameter documentations has been truncated, see
|
8
|
+
# {FinchAPI::Models::Jobs::ManualRetrieveParams} for more details.
|
9
|
+
#
|
7
10
|
# Get a manual job by `job_id`. Manual jobs are completed by a human and include
|
8
11
|
# Assisted Benefits jobs.
|
9
12
|
#
|
10
|
-
# @overload retrieve(job_id, request_options: {})
|
13
|
+
# @overload retrieve(job_id, entity_id: nil, request_options: {})
|
11
14
|
#
|
12
15
|
# @param job_id [String]
|
16
|
+
#
|
17
|
+
# @param entity_id [String] The entity ID to use when authenticating with a multi-account token. Required wh
|
18
|
+
#
|
13
19
|
# @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}, nil]
|
14
20
|
#
|
15
21
|
# @return [FinchAPI::Models::Jobs::ManualAsyncJob]
|
16
22
|
#
|
17
23
|
# @see FinchAPI::Models::Jobs::ManualRetrieveParams
|
18
24
|
def retrieve(job_id, params = {})
|
25
|
+
parsed, options = FinchAPI::Jobs::ManualRetrieveParams.dump_request(params)
|
19
26
|
@client.request(
|
20
27
|
method: :get,
|
21
28
|
path: ["jobs/manual/%1$s", job_id],
|
29
|
+
query: parsed,
|
22
30
|
model: FinchAPI::Jobs::ManualAsyncJob,
|
23
|
-
options:
|
31
|
+
options: options
|
24
32
|
)
|
25
33
|
end
|
26
34
|
|
@@ -7,8 +7,8 @@ module FinchAPI
|
|
7
7
|
# {FinchAPI::Models::RequestForwardingForwardParams} for more details.
|
8
8
|
#
|
9
9
|
# The Forward API allows you to make direct requests to an employment system. If
|
10
|
-
# Finch
|
11
|
-
# Forward allows you to push or pull data models directly against an integration
|
10
|
+
# Finch's unified API doesn't have a data model that cleanly fits your needs, then
|
11
|
+
# Forward allows you to push or pull data models directly against an integration's
|
12
12
|
# API.
|
13
13
|
#
|
14
14
|
# @overload forward(method_:, route:, data: nil, headers: nil, params: nil, request_options: {})
|
data/lib/finch_api/version.rb
CHANGED
@@ -90,6 +90,60 @@ module FinchAPI
|
|
90
90
|
def self.type_info(spec)
|
91
91
|
end
|
92
92
|
|
93
|
+
# @api private
|
94
|
+
sig do
|
95
|
+
params(
|
96
|
+
type_info:
|
97
|
+
T.any(
|
98
|
+
{
|
99
|
+
const:
|
100
|
+
T.nilable(
|
101
|
+
T.any(NilClass, T::Boolean, Integer, Float, Symbol)
|
102
|
+
),
|
103
|
+
enum:
|
104
|
+
T.nilable(
|
105
|
+
T.proc.returns(
|
106
|
+
FinchAPI::Internal::Type::Converter::Input
|
107
|
+
)
|
108
|
+
),
|
109
|
+
union:
|
110
|
+
T.nilable(
|
111
|
+
T.proc.returns(
|
112
|
+
FinchAPI::Internal::Type::Converter::Input
|
113
|
+
)
|
114
|
+
)
|
115
|
+
},
|
116
|
+
T.proc.returns(FinchAPI::Internal::Type::Converter::Input),
|
117
|
+
FinchAPI::Internal::Type::Converter::Input
|
118
|
+
),
|
119
|
+
spec:
|
120
|
+
T.any(
|
121
|
+
{
|
122
|
+
const:
|
123
|
+
T.nilable(
|
124
|
+
T.any(NilClass, T::Boolean, Integer, Float, Symbol)
|
125
|
+
),
|
126
|
+
enum:
|
127
|
+
T.nilable(
|
128
|
+
T.proc.returns(
|
129
|
+
FinchAPI::Internal::Type::Converter::Input
|
130
|
+
)
|
131
|
+
),
|
132
|
+
union:
|
133
|
+
T.nilable(
|
134
|
+
T.proc.returns(
|
135
|
+
FinchAPI::Internal::Type::Converter::Input
|
136
|
+
)
|
137
|
+
)
|
138
|
+
},
|
139
|
+
T.proc.returns(FinchAPI::Internal::Type::Converter::Input),
|
140
|
+
FinchAPI::Internal::Type::Converter::Input
|
141
|
+
)
|
142
|
+
).returns(FinchAPI::Internal::AnyHash)
|
143
|
+
end
|
144
|
+
def self.meta_info(type_info, spec)
|
145
|
+
end
|
146
|
+
|
93
147
|
# @api private
|
94
148
|
sig do
|
95
149
|
params(translate_names: T::Boolean).returns(
|
@@ -16,7 +16,8 @@ module FinchAPI
|
|
16
16
|
T::Array[
|
17
17
|
[
|
18
18
|
T.nilable(Symbol),
|
19
|
-
T.proc.returns(FinchAPI::Internal::Type::Converter::Input)
|
19
|
+
T.proc.returns(FinchAPI::Internal::Type::Converter::Input),
|
20
|
+
FinchAPI::Internal::AnyHash
|
20
21
|
]
|
21
22
|
]
|
22
23
|
)
|
@@ -25,7 +26,13 @@ module FinchAPI
|
|
25
26
|
end
|
26
27
|
|
27
28
|
# @api private
|
28
|
-
sig
|
29
|
+
sig do
|
30
|
+
returns(
|
31
|
+
T::Array[
|
32
|
+
[T.nilable(Symbol), T.anything, FinchAPI::Internal::AnyHash]
|
33
|
+
]
|
34
|
+
)
|
35
|
+
end
|
29
36
|
protected def derefed_variants
|
30
37
|
end
|
31
38
|
|
@@ -8,13 +8,13 @@ module FinchAPI
|
|
8
8
|
T.any(FinchAPI::DisconnectResponse, FinchAPI::Internal::AnyHash)
|
9
9
|
end
|
10
10
|
|
11
|
-
# If the request is successful, Finch will return
|
11
|
+
# If the request is successful, Finch will return "success" (HTTP 200 status).
|
12
12
|
sig { returns(String) }
|
13
13
|
attr_accessor :status
|
14
14
|
|
15
15
|
sig { params(status: String).returns(T.attached_class) }
|
16
16
|
def self.new(
|
17
|
-
# If the request is successful, Finch will return
|
17
|
+
# If the request is successful, Finch will return "success" (HTTP 200 status).
|
18
18
|
status:
|
19
19
|
)
|
20
20
|
end
|
@@ -43,7 +43,7 @@ module FinchAPI
|
|
43
43
|
|
44
44
|
# The datetime a job is scheduled to be run. For scheduled jobs, this datetime can
|
45
45
|
# be in the future if the job has not yet been enqueued. For ad-hoc jobs, this
|
46
|
-
# field will be
|
46
|
+
# field will be null.
|
47
47
|
sig { returns(T.nilable(Time)) }
|
48
48
|
attr_accessor :scheduled_at
|
49
49
|
|
@@ -87,7 +87,7 @@ module FinchAPI
|
|
87
87
|
params:,
|
88
88
|
# The datetime a job is scheduled to be run. For scheduled jobs, this datetime can
|
89
89
|
# be in the future if the job has not yet been enqueued. For ad-hoc jobs, this
|
90
|
-
# field will be
|
90
|
+
# field will be null.
|
91
91
|
scheduled_at:,
|
92
92
|
# The datetime a job entered into the job queue.
|
93
93
|
started_at:,
|
@@ -15,6 +15,15 @@ module FinchAPI
|
|
15
15
|
)
|
16
16
|
end
|
17
17
|
|
18
|
+
# The entity ID to use when authenticating with a multi-account token. Required
|
19
|
+
# when using a multi-account token to specify which entity's data to access.
|
20
|
+
# Example: `123e4567-e89b-12d3-a456-426614174000`
|
21
|
+
sig { returns(T.nilable(String)) }
|
22
|
+
attr_reader :entity_id
|
23
|
+
|
24
|
+
sig { params(entity_id: String).void }
|
25
|
+
attr_writer :entity_id
|
26
|
+
|
18
27
|
# Number of items to return
|
19
28
|
sig { returns(T.nilable(Integer)) }
|
20
29
|
attr_reader :limit
|
@@ -31,12 +40,17 @@ module FinchAPI
|
|
31
40
|
|
32
41
|
sig do
|
33
42
|
params(
|
43
|
+
entity_id: String,
|
34
44
|
limit: Integer,
|
35
45
|
offset: Integer,
|
36
46
|
request_options: FinchAPI::RequestOptions::OrHash
|
37
47
|
).returns(T.attached_class)
|
38
48
|
end
|
39
49
|
def self.new(
|
50
|
+
# The entity ID to use when authenticating with a multi-account token. Required
|
51
|
+
# when using a multi-account token to specify which entity's data to access.
|
52
|
+
# Example: `123e4567-e89b-12d3-a456-426614174000`
|
53
|
+
entity_id: nil,
|
40
54
|
# Number of items to return
|
41
55
|
limit: nil,
|
42
56
|
# Index to start from (defaults to 0)
|
@@ -48,6 +62,7 @@ module FinchAPI
|
|
48
62
|
sig do
|
49
63
|
override.returns(
|
50
64
|
{
|
65
|
+
entity_id: String,
|
51
66
|
limit: Integer,
|
52
67
|
offset: Integer,
|
53
68
|
request_options: FinchAPI::RequestOptions
|
@@ -15,15 +15,35 @@ module FinchAPI
|
|
15
15
|
)
|
16
16
|
end
|
17
17
|
|
18
|
+
# The entity ID to use when authenticating with a multi-account token. Required
|
19
|
+
# when using a multi-account token to specify which entity's data to access.
|
20
|
+
# Example: `123e4567-e89b-12d3-a456-426614174000`
|
21
|
+
sig { returns(T.nilable(String)) }
|
22
|
+
attr_reader :entity_id
|
23
|
+
|
24
|
+
sig { params(entity_id: String).void }
|
25
|
+
attr_writer :entity_id
|
26
|
+
|
18
27
|
sig do
|
19
|
-
params(
|
20
|
-
|
21
|
-
|
28
|
+
params(
|
29
|
+
entity_id: String,
|
30
|
+
request_options: FinchAPI::RequestOptions::OrHash
|
31
|
+
).returns(T.attached_class)
|
22
32
|
end
|
23
|
-
def self.new(
|
33
|
+
def self.new(
|
34
|
+
# The entity ID to use when authenticating with a multi-account token. Required
|
35
|
+
# when using a multi-account token to specify which entity's data to access.
|
36
|
+
# Example: `123e4567-e89b-12d3-a456-426614174000`
|
37
|
+
entity_id: nil,
|
38
|
+
request_options: {}
|
39
|
+
)
|
24
40
|
end
|
25
41
|
|
26
|
-
sig
|
42
|
+
sig do
|
43
|
+
override.returns(
|
44
|
+
{ entity_id: String, request_options: FinchAPI::RequestOptions }
|
45
|
+
)
|
46
|
+
end
|
27
47
|
def to_hash
|
28
48
|
end
|
29
49
|
end
|
@@ -10,7 +10,7 @@ module FinchAPI
|
|
10
10
|
end
|
11
11
|
|
12
12
|
# Specific information about the job, such as individual statuses for batch jobs.
|
13
|
-
sig { returns(T.nilable(T::Array[T.anything])) }
|
13
|
+
sig { returns(T.nilable(T::Array[T.nilable(T.anything)])) }
|
14
14
|
attr_accessor :body
|
15
15
|
|
16
16
|
sig { returns(String) }
|
@@ -21,7 +21,7 @@ module FinchAPI
|
|
21
21
|
|
22
22
|
sig do
|
23
23
|
params(
|
24
|
-
body: T.nilable(T::Array[T.anything]),
|
24
|
+
body: T.nilable(T::Array[T.nilable(T.anything)]),
|
25
25
|
job_id: String,
|
26
26
|
status: FinchAPI::Jobs::ManualAsyncJob::Status::OrSymbol
|
27
27
|
).returns(T.attached_class)
|
@@ -37,7 +37,7 @@ module FinchAPI
|
|
37
37
|
sig do
|
38
38
|
override.returns(
|
39
39
|
{
|
40
|
-
body: T.nilable(T::Array[T.anything]),
|
40
|
+
body: T.nilable(T::Array[T.nilable(T.anything)]),
|
41
41
|
job_id: String,
|
42
42
|
status: FinchAPI::Jobs::ManualAsyncJob::Status::TaggedSymbol
|
43
43
|
}
|
@@ -15,15 +15,35 @@ module FinchAPI
|
|
15
15
|
)
|
16
16
|
end
|
17
17
|
|
18
|
+
# The entity ID to use when authenticating with a multi-account token. Required
|
19
|
+
# when using a multi-account token to specify which entity's data to access.
|
20
|
+
# Example: `123e4567-e89b-12d3-a456-426614174000`
|
21
|
+
sig { returns(T.nilable(String)) }
|
22
|
+
attr_reader :entity_id
|
23
|
+
|
24
|
+
sig { params(entity_id: String).void }
|
25
|
+
attr_writer :entity_id
|
26
|
+
|
18
27
|
sig do
|
19
|
-
params(
|
20
|
-
|
21
|
-
|
28
|
+
params(
|
29
|
+
entity_id: String,
|
30
|
+
request_options: FinchAPI::RequestOptions::OrHash
|
31
|
+
).returns(T.attached_class)
|
22
32
|
end
|
23
|
-
def self.new(
|
33
|
+
def self.new(
|
34
|
+
# The entity ID to use when authenticating with a multi-account token. Required
|
35
|
+
# when using a multi-account token to specify which entity's data to access.
|
36
|
+
# Example: `123e4567-e89b-12d3-a456-426614174000`
|
37
|
+
entity_id: nil,
|
38
|
+
request_options: {}
|
39
|
+
)
|
24
40
|
end
|
25
41
|
|
26
|
-
sig
|
42
|
+
sig do
|
43
|
+
override.returns(
|
44
|
+
{ entity_id: String, request_options: FinchAPI::RequestOptions }
|
45
|
+
)
|
46
|
+
end
|
27
47
|
def to_hash
|
28
48
|
end
|
29
49
|
end
|
@@ -11,14 +11,14 @@ module FinchAPI
|
|
11
11
|
)
|
12
12
|
end
|
13
13
|
|
14
|
-
# A string representation of the HTTP response body of the forwarded request
|
15
|
-
# response received from the underlying integration
|
16
|
-
# in the case where the upstream system
|
14
|
+
# A string representation of the HTTP response body of the forwarded request's
|
15
|
+
# response received from the underlying integration's API. This field may be null
|
16
|
+
# in the case where the upstream system's response is empty.
|
17
17
|
sig { returns(T.nilable(String)) }
|
18
18
|
attr_accessor :data
|
19
19
|
|
20
|
-
# The HTTP headers of the forwarded request
|
21
|
-
# the underlying integration
|
20
|
+
# The HTTP headers of the forwarded request's response, exactly as received from
|
21
|
+
# the underlying integration's API.
|
22
22
|
sig { returns(T.nilable(T.anything)) }
|
23
23
|
attr_accessor :headers
|
24
24
|
|
@@ -37,8 +37,8 @@ module FinchAPI
|
|
37
37
|
end
|
38
38
|
attr_writer :request
|
39
39
|
|
40
|
-
# The HTTP status code of the forwarded request
|
41
|
-
# the underlying integration
|
40
|
+
# The HTTP status code of the forwarded request's response, exactly received from
|
41
|
+
# the underlying integration's API. This value will be returned as an integer.
|
42
42
|
sig { returns(Integer) }
|
43
43
|
attr_accessor :status_code
|
44
44
|
|
@@ -52,18 +52,18 @@ module FinchAPI
|
|
52
52
|
).returns(T.attached_class)
|
53
53
|
end
|
54
54
|
def self.new(
|
55
|
-
# A string representation of the HTTP response body of the forwarded request
|
56
|
-
# response received from the underlying integration
|
57
|
-
# in the case where the upstream system
|
55
|
+
# A string representation of the HTTP response body of the forwarded request's
|
56
|
+
# response received from the underlying integration's API. This field may be null
|
57
|
+
# in the case where the upstream system's response is empty.
|
58
58
|
data:,
|
59
|
-
# The HTTP headers of the forwarded request
|
60
|
-
# the underlying integration
|
59
|
+
# The HTTP headers of the forwarded request's response, exactly as received from
|
60
|
+
# the underlying integration's API.
|
61
61
|
headers:,
|
62
62
|
# An object containing details of your original forwarded request, for your ease
|
63
63
|
# of reference.
|
64
64
|
request:,
|
65
|
-
# The HTTP status code of the forwarded request
|
66
|
-
# the underlying integration
|
65
|
+
# The HTTP status code of the forwarded request's response, exactly received from
|
66
|
+
# the underlying integration's API. This value will be returned as an integer.
|
67
67
|
status_code:
|
68
68
|
)
|
69
69
|
end
|
@@ -37,10 +37,18 @@ module FinchAPI
|
|
37
37
|
sig do
|
38
38
|
params(
|
39
39
|
job_id: String,
|
40
|
+
entity_id: String,
|
40
41
|
request_options: FinchAPI::RequestOptions::OrHash
|
41
42
|
).returns(FinchAPI::Jobs::AutomatedAsyncJob)
|
42
43
|
end
|
43
|
-
def retrieve(
|
44
|
+
def retrieve(
|
45
|
+
job_id,
|
46
|
+
# The entity ID to use when authenticating with a multi-account token. Required
|
47
|
+
# when using a multi-account token to specify which entity's data to access.
|
48
|
+
# Example: `123e4567-e89b-12d3-a456-426614174000`
|
49
|
+
entity_id: nil,
|
50
|
+
request_options: {}
|
51
|
+
)
|
44
52
|
end
|
45
53
|
|
46
54
|
# Get all automated jobs. Automated jobs are completed by a machine. By default,
|
@@ -48,12 +56,17 @@ module FinchAPI
|
|
48
56
|
# as data syncs, only the next scheduled job is shown.
|
49
57
|
sig do
|
50
58
|
params(
|
59
|
+
entity_id: String,
|
51
60
|
limit: Integer,
|
52
61
|
offset: Integer,
|
53
62
|
request_options: FinchAPI::RequestOptions::OrHash
|
54
63
|
).returns(FinchAPI::Models::Jobs::AutomatedListResponse)
|
55
64
|
end
|
56
65
|
def list(
|
66
|
+
# The entity ID to use when authenticating with a multi-account token. Required
|
67
|
+
# when using a multi-account token to specify which entity's data to access.
|
68
|
+
# Example: `123e4567-e89b-12d3-a456-426614174000`
|
69
|
+
entity_id: nil,
|
57
70
|
# Number of items to return
|
58
71
|
limit: nil,
|
59
72
|
# Index to start from (defaults to 0)
|
@@ -9,10 +9,18 @@ module FinchAPI
|
|
9
9
|
sig do
|
10
10
|
params(
|
11
11
|
job_id: String,
|
12
|
+
entity_id: String,
|
12
13
|
request_options: FinchAPI::RequestOptions::OrHash
|
13
14
|
).returns(FinchAPI::Jobs::ManualAsyncJob)
|
14
15
|
end
|
15
|
-
def retrieve(
|
16
|
+
def retrieve(
|
17
|
+
job_id,
|
18
|
+
# The entity ID to use when authenticating with a multi-account token. Required
|
19
|
+
# when using a multi-account token to specify which entity's data to access.
|
20
|
+
# Example: `123e4567-e89b-12d3-a456-426614174000`
|
21
|
+
entity_id: nil,
|
22
|
+
request_options: {}
|
23
|
+
)
|
16
24
|
end
|
17
25
|
|
18
26
|
# @api private
|
@@ -4,8 +4,8 @@ module FinchAPI
|
|
4
4
|
module Resources
|
5
5
|
class RequestForwarding
|
6
6
|
# The Forward API allows you to make direct requests to an employment system. If
|
7
|
-
# Finch
|
8
|
-
# Forward allows you to push or pull data models directly against an integration
|
7
|
+
# Finch's unified API doesn't have a data model that cleanly fits your needs, then
|
8
|
+
# Forward allows you to push or pull data models directly against an integration's
|
9
9
|
# API.
|
10
10
|
sig do
|
11
11
|
params(
|
@@ -39,6 +39,23 @@ module FinchAPI
|
|
39
39
|
| FinchAPI::Internal::Type::Converter::input spec
|
40
40
|
) -> (^-> top)
|
41
41
|
|
42
|
+
def self.meta_info: (
|
43
|
+
{
|
44
|
+
const: (nil | bool | Integer | Float | Symbol)?,
|
45
|
+
enum: ^-> FinchAPI::Internal::Type::Converter::input?,
|
46
|
+
union: ^-> FinchAPI::Internal::Type::Converter::input?
|
47
|
+
}
|
48
|
+
| ^-> FinchAPI::Internal::Type::Converter::input
|
49
|
+
| FinchAPI::Internal::Type::Converter::input type_info,
|
50
|
+
{
|
51
|
+
const: (nil | bool | Integer | Float | Symbol)?,
|
52
|
+
enum: ^-> FinchAPI::Internal::Type::Converter::input?,
|
53
|
+
union: ^-> FinchAPI::Internal::Type::Converter::input?
|
54
|
+
}
|
55
|
+
| ^-> FinchAPI::Internal::Type::Converter::input
|
56
|
+
| FinchAPI::Internal::Type::Converter::input spec
|
57
|
+
) -> ::Hash[Symbol, top]
|
58
|
+
|
42
59
|
def self.new_coerce_state: (
|
43
60
|
?translate_names: bool
|
44
61
|
) -> FinchAPI::Internal::Type::Converter::coerce_state
|
@@ -5,9 +5,9 @@ module FinchAPI
|
|
5
5
|
include FinchAPI::Internal::Type::Converter
|
6
6
|
include FinchAPI::Internal::Util::SorbetRuntimeSupport
|
7
7
|
|
8
|
-
private def self.known_variants: -> ::Array[[Symbol?, (^-> FinchAPI::Internal::Type::Converter::input)]]
|
8
|
+
private def self.known_variants: -> ::Array[[Symbol?, (^-> FinchAPI::Internal::Type::Converter::input), ::Hash[Symbol, top]]]
|
9
9
|
|
10
|
-
def self.derefed_variants: -> ::Array[[Symbol?, top]]
|
10
|
+
def self.derefed_variants: -> ::Array[[Symbol?, top, ::Hash[Symbol, top]]]
|
11
11
|
|
12
12
|
def self.variants: -> ::Array[top]
|
13
13
|
|
@@ -2,13 +2,17 @@ module FinchAPI
|
|
2
2
|
module Models
|
3
3
|
module Jobs
|
4
4
|
type automated_list_params =
|
5
|
-
{ limit: Integer, offset: Integer }
|
5
|
+
{ entity_id: String, limit: Integer, offset: Integer }
|
6
6
|
& FinchAPI::Internal::Type::request_parameters
|
7
7
|
|
8
8
|
class AutomatedListParams < FinchAPI::Internal::Type::BaseModel
|
9
9
|
extend FinchAPI::Internal::Type::RequestParameters::Converter
|
10
10
|
include FinchAPI::Internal::Type::RequestParameters
|
11
11
|
|
12
|
+
attr_reader entity_id: String?
|
13
|
+
|
14
|
+
def entity_id=: (String) -> String
|
15
|
+
|
12
16
|
attr_reader limit: Integer?
|
13
17
|
|
14
18
|
def limit=: (Integer) -> Integer
|
@@ -18,12 +22,14 @@ module FinchAPI
|
|
18
22
|
def offset=: (Integer) -> Integer
|
19
23
|
|
20
24
|
def initialize: (
|
25
|
+
?entity_id: String,
|
21
26
|
?limit: Integer,
|
22
27
|
?offset: Integer,
|
23
28
|
?request_options: FinchAPI::request_opts
|
24
29
|
) -> void
|
25
30
|
|
26
31
|
def to_hash: -> {
|
32
|
+
entity_id: String,
|
27
33
|
limit: Integer,
|
28
34
|
offset: Integer,
|
29
35
|
request_options: FinchAPI::RequestOptions
|
@@ -2,15 +2,25 @@ module FinchAPI
|
|
2
2
|
module Models
|
3
3
|
module Jobs
|
4
4
|
type automated_retrieve_params =
|
5
|
-
{
|
5
|
+
{ entity_id: String } & FinchAPI::Internal::Type::request_parameters
|
6
6
|
|
7
7
|
class AutomatedRetrieveParams < FinchAPI::Internal::Type::BaseModel
|
8
8
|
extend FinchAPI::Internal::Type::RequestParameters::Converter
|
9
9
|
include FinchAPI::Internal::Type::RequestParameters
|
10
10
|
|
11
|
-
|
11
|
+
attr_reader entity_id: String?
|
12
12
|
|
13
|
-
def
|
13
|
+
def entity_id=: (String) -> String
|
14
|
+
|
15
|
+
def initialize: (
|
16
|
+
?entity_id: String,
|
17
|
+
?request_options: FinchAPI::request_opts
|
18
|
+
) -> void
|
19
|
+
|
20
|
+
def to_hash: -> {
|
21
|
+
entity_id: String,
|
22
|
+
request_options: FinchAPI::RequestOptions
|
23
|
+
}
|
14
24
|
end
|
15
25
|
end
|
16
26
|
end
|
@@ -3,26 +3,26 @@ module FinchAPI
|
|
3
3
|
module Jobs
|
4
4
|
type manual_async_job =
|
5
5
|
{
|
6
|
-
body: ::Array[top]?,
|
6
|
+
body: ::Array[top?]?,
|
7
7
|
job_id: String,
|
8
8
|
status: FinchAPI::Models::Jobs::ManualAsyncJob::status
|
9
9
|
}
|
10
10
|
|
11
11
|
class ManualAsyncJob < FinchAPI::Internal::Type::BaseModel
|
12
|
-
attr_accessor body: ::Array[top]?
|
12
|
+
attr_accessor body: ::Array[top?]?
|
13
13
|
|
14
14
|
attr_accessor job_id: String
|
15
15
|
|
16
16
|
attr_accessor status: FinchAPI::Models::Jobs::ManualAsyncJob::status
|
17
17
|
|
18
18
|
def initialize: (
|
19
|
-
body: ::Array[top]?,
|
19
|
+
body: ::Array[top?]?,
|
20
20
|
job_id: String,
|
21
21
|
status: FinchAPI::Models::Jobs::ManualAsyncJob::status
|
22
22
|
) -> void
|
23
23
|
|
24
24
|
def to_hash: -> {
|
25
|
-
body: ::Array[top]?,
|
25
|
+
body: ::Array[top?]?,
|
26
26
|
job_id: String,
|
27
27
|
status: FinchAPI::Models::Jobs::ManualAsyncJob::status
|
28
28
|
}
|
@@ -2,15 +2,25 @@ module FinchAPI
|
|
2
2
|
module Models
|
3
3
|
module Jobs
|
4
4
|
type manual_retrieve_params =
|
5
|
-
{
|
5
|
+
{ entity_id: String } & FinchAPI::Internal::Type::request_parameters
|
6
6
|
|
7
7
|
class ManualRetrieveParams < FinchAPI::Internal::Type::BaseModel
|
8
8
|
extend FinchAPI::Internal::Type::RequestParameters::Converter
|
9
9
|
include FinchAPI::Internal::Type::RequestParameters
|
10
10
|
|
11
|
-
|
11
|
+
attr_reader entity_id: String?
|
12
12
|
|
13
|
-
def
|
13
|
+
def entity_id=: (String) -> String
|
14
|
+
|
15
|
+
def initialize: (
|
16
|
+
?entity_id: String,
|
17
|
+
?request_options: FinchAPI::request_opts
|
18
|
+
) -> void
|
19
|
+
|
20
|
+
def to_hash: -> {
|
21
|
+
entity_id: String,
|
22
|
+
request_options: FinchAPI::RequestOptions
|
23
|
+
}
|
14
24
|
end
|
15
25
|
end
|
16
26
|
end
|
@@ -10,10 +10,12 @@ module FinchAPI
|
|
10
10
|
|
11
11
|
def retrieve: (
|
12
12
|
String job_id,
|
13
|
+
?entity_id: String,
|
13
14
|
?request_options: FinchAPI::request_opts
|
14
15
|
) -> FinchAPI::Jobs::AutomatedAsyncJob
|
15
16
|
|
16
17
|
def list: (
|
18
|
+
?entity_id: String,
|
17
19
|
?limit: Integer,
|
18
20
|
?offset: Integer,
|
19
21
|
?request_options: FinchAPI::request_opts
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: finch-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0.pre.alpha.
|
4
|
+
version: 0.1.0.pre.alpha.26
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Finch
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-08-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: connection_pool
|