@tryfinch/finch-api 5.14.2 → 5.15.0

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 (154) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/LICENSE +1 -1
  3. package/README.md +6 -3
  4. package/_shims/index.d.ts +1 -1
  5. package/_shims/registry.d.ts +1 -1
  6. package/_shims/registry.d.ts.map +1 -1
  7. package/core.d.ts +12 -12
  8. package/core.d.ts.map +1 -1
  9. package/core.js +39 -13
  10. package/core.js.map +1 -1
  11. package/core.mjs +39 -13
  12. package/core.mjs.map +1 -1
  13. package/index.d.mts +15 -0
  14. package/index.d.ts +15 -0
  15. package/index.d.ts.map +1 -1
  16. package/index.js +15 -2
  17. package/index.js.map +1 -1
  18. package/index.mjs +15 -2
  19. package/index.mjs.map +1 -1
  20. package/package.json +1 -1
  21. package/resources/access-tokens.d.ts +23 -0
  22. package/resources/access-tokens.d.ts.map +1 -0
  23. package/resources/access-tokens.js +17 -0
  24. package/resources/access-tokens.js.map +1 -0
  25. package/resources/access-tokens.mjs +13 -0
  26. package/resources/access-tokens.mjs.map +1 -0
  27. package/resources/account.d.ts +14 -0
  28. package/resources/account.d.ts.map +1 -1
  29. package/resources/account.js.map +1 -1
  30. package/resources/account.mjs.map +1 -1
  31. package/resources/auth.d.ts +20 -0
  32. package/resources/auth.d.ts.map +1 -0
  33. package/resources/auth.js +17 -0
  34. package/resources/auth.js.map +1 -0
  35. package/resources/auth.mjs +13 -0
  36. package/resources/auth.mjs.map +1 -0
  37. package/resources/index.d.ts +3 -0
  38. package/resources/index.d.ts.map +1 -1
  39. package/resources/index.js +7 -1
  40. package/resources/index.js.map +1 -1
  41. package/resources/index.mjs +3 -0
  42. package/resources/index.mjs.map +1 -1
  43. package/resources/sandbox/company.d.ts +195 -0
  44. package/resources/sandbox/company.d.ts.map +1 -0
  45. package/resources/sandbox/company.js +17 -0
  46. package/resources/sandbox/company.js.map +1 -0
  47. package/resources/sandbox/company.mjs +13 -0
  48. package/resources/sandbox/company.mjs.map +1 -0
  49. package/resources/sandbox/connections/accounts.d.ts +51 -0
  50. package/resources/sandbox/connections/accounts.d.ts.map +1 -0
  51. package/resources/sandbox/connections/accounts.js +24 -0
  52. package/resources/sandbox/connections/accounts.js.map +1 -0
  53. package/resources/sandbox/connections/accounts.mjs +20 -0
  54. package/resources/sandbox/connections/accounts.mjs.map +1 -0
  55. package/resources/sandbox/connections/connections.d.ts +39 -0
  56. package/resources/sandbox/connections/connections.d.ts.map +1 -0
  57. package/resources/sandbox/connections/connections.js +46 -0
  58. package/resources/sandbox/connections/connections.js.map +1 -0
  59. package/resources/sandbox/connections/connections.mjs +19 -0
  60. package/resources/sandbox/connections/connections.mjs.map +1 -0
  61. package/resources/sandbox/connections/index.d.ts +3 -0
  62. package/resources/sandbox/connections/index.d.ts.map +1 -0
  63. package/resources/sandbox/connections/index.js +9 -0
  64. package/resources/sandbox/connections/index.js.map +1 -0
  65. package/resources/sandbox/connections/index.mjs +4 -0
  66. package/resources/sandbox/connections/index.mjs.map +1 -0
  67. package/resources/sandbox/directory.d.ts +156 -0
  68. package/resources/sandbox/directory.d.ts.map +1 -0
  69. package/resources/sandbox/directory.js +17 -0
  70. package/resources/sandbox/directory.js.map +1 -0
  71. package/resources/sandbox/directory.mjs +13 -0
  72. package/resources/sandbox/directory.mjs.map +1 -0
  73. package/resources/sandbox/employment.d.ts +216 -0
  74. package/resources/sandbox/employment.d.ts.map +1 -0
  75. package/resources/sandbox/employment.js +18 -0
  76. package/resources/sandbox/employment.js.map +1 -0
  77. package/resources/sandbox/employment.mjs +14 -0
  78. package/resources/sandbox/employment.mjs.map +1 -0
  79. package/resources/sandbox/index.d.ts +9 -0
  80. package/resources/sandbox/index.d.ts.map +1 -0
  81. package/resources/sandbox/index.js +21 -0
  82. package/resources/sandbox/index.js.map +1 -0
  83. package/resources/sandbox/index.mjs +10 -0
  84. package/resources/sandbox/index.mjs.map +1 -0
  85. package/resources/sandbox/individual.d.ts +124 -0
  86. package/resources/sandbox/individual.d.ts.map +1 -0
  87. package/resources/sandbox/individual.js +18 -0
  88. package/resources/sandbox/individual.js.map +1 -0
  89. package/resources/sandbox/individual.mjs +14 -0
  90. package/resources/sandbox/individual.mjs.map +1 -0
  91. package/resources/sandbox/jobs/configuration.d.ts +28 -0
  92. package/resources/sandbox/jobs/configuration.d.ts.map +1 -0
  93. package/resources/sandbox/jobs/configuration.js +23 -0
  94. package/resources/sandbox/jobs/configuration.js.map +1 -0
  95. package/resources/sandbox/jobs/configuration.mjs +19 -0
  96. package/resources/sandbox/jobs/configuration.mjs.map +1 -0
  97. package/resources/sandbox/jobs/index.d.ts +3 -0
  98. package/resources/sandbox/jobs/index.d.ts.map +1 -0
  99. package/resources/sandbox/jobs/index.js +9 -0
  100. package/resources/sandbox/jobs/index.js.map +1 -0
  101. package/resources/sandbox/jobs/index.mjs +4 -0
  102. package/resources/sandbox/jobs/index.mjs.map +1 -0
  103. package/resources/sandbox/jobs/jobs.d.ts +12 -0
  104. package/resources/sandbox/jobs/jobs.d.ts.map +1 -0
  105. package/resources/sandbox/jobs/jobs.js +40 -0
  106. package/resources/sandbox/jobs/jobs.js.map +1 -0
  107. package/resources/sandbox/jobs/jobs.mjs +13 -0
  108. package/resources/sandbox/jobs/jobs.mjs.map +1 -0
  109. package/resources/sandbox/payment.d.ts +154 -0
  110. package/resources/sandbox/payment.d.ts.map +1 -0
  111. package/resources/sandbox/payment.js +18 -0
  112. package/resources/sandbox/payment.js.map +1 -0
  113. package/resources/sandbox/payment.mjs +14 -0
  114. package/resources/sandbox/payment.mjs.map +1 -0
  115. package/resources/sandbox/sandbox.d.ts +39 -0
  116. package/resources/sandbox/sandbox.d.ts.map +1 -0
  117. package/resources/sandbox/sandbox.js +58 -0
  118. package/resources/sandbox/sandbox.js.map +1 -0
  119. package/resources/sandbox/sandbox.mjs +31 -0
  120. package/resources/sandbox/sandbox.mjs.map +1 -0
  121. package/resources/shared.d.ts +1 -0
  122. package/resources/shared.d.ts.map +1 -1
  123. package/src/_shims/index.d.ts +1 -1
  124. package/src/_shims/node-runtime.ts +1 -1
  125. package/src/_shims/registry.ts +1 -1
  126. package/src/_shims/web-runtime.ts +1 -1
  127. package/src/core.ts +65 -30
  128. package/src/index.ts +23 -2
  129. package/src/lib/.keep +4 -0
  130. package/src/resources/access-tokens.ts +36 -0
  131. package/src/resources/account.ts +19 -0
  132. package/src/resources/auth.ts +32 -0
  133. package/src/resources/index.ts +3 -0
  134. package/src/resources/sandbox/company.ts +252 -0
  135. package/src/resources/sandbox/connections/accounts.ts +83 -0
  136. package/src/resources/sandbox/connections/connections.ts +58 -0
  137. package/src/resources/sandbox/connections/index.ts +10 -0
  138. package/src/resources/sandbox/directory.ts +210 -0
  139. package/src/resources/sandbox/employment.ts +279 -0
  140. package/src/resources/sandbox/index.ts +10 -0
  141. package/src/resources/sandbox/individual.ts +193 -0
  142. package/src/resources/sandbox/jobs/configuration.ts +44 -0
  143. package/src/resources/sandbox/jobs/index.ts +9 -0
  144. package/src/resources/sandbox/jobs/jobs.ts +15 -0
  145. package/src/resources/sandbox/payment.ts +215 -0
  146. package/src/resources/sandbox/sandbox.ts +42 -0
  147. package/src/resources/shared.ts +8 -0
  148. package/src/uploads.ts +2 -2
  149. package/src/version.ts +1 -1
  150. package/uploads.d.ts +2 -2
  151. package/uploads.d.ts.map +1 -1
  152. package/version.d.ts +1 -1
  153. package/version.js +1 -1
  154. package/version.mjs +1 -1
@@ -0,0 +1,193 @@
1
+ // File generated from our OpenAPI spec by Stainless.
2
+
3
+ import * as Core from "../../core";
4
+ import { APIResource } from "../../resource";
5
+ import { isRequestOptions } from "../../core";
6
+ import * as IndividualAPI from "./individual";
7
+ import * as HRISAPI from "../hris/hris";
8
+
9
+ export class Individual extends APIResource {
10
+ /**
11
+ * Update sandbox individual
12
+ */
13
+ update(
14
+ individualId: string,
15
+ body?: IndividualUpdateParams,
16
+ options?: Core.RequestOptions,
17
+ ): Core.APIPromise<IndividualUpdateResponse>;
18
+ update(individualId: string, options?: Core.RequestOptions): Core.APIPromise<IndividualUpdateResponse>;
19
+ update(
20
+ individualId: string,
21
+ body: IndividualUpdateParams | Core.RequestOptions = {},
22
+ options?: Core.RequestOptions,
23
+ ): Core.APIPromise<IndividualUpdateResponse> {
24
+ if (isRequestOptions(body)) {
25
+ return this.update(individualId, {}, body);
26
+ }
27
+ return this._client.put(`/sandbox/individual/${individualId}`, { body, ...options });
28
+ }
29
+ }
30
+
31
+ export interface IndividualUpdateResponse {
32
+ /**
33
+ * A stable Finch `id` (UUID v4) for an individual in the company.
34
+ */
35
+ id?: string;
36
+
37
+ dob?: string | null;
38
+
39
+ emails?: Array<IndividualUpdateResponse.Email> | null;
40
+
41
+ /**
42
+ * Social Security Number of the individual in **encrypted** format. This field is
43
+ * only available with the `ssn` scope enabled and the
44
+ * `options: { include: ['ssn'] }` param set in the body.
45
+ */
46
+ encrypted_ssn?: string | null;
47
+
48
+ /**
49
+ * The EEOC-defined ethnicity of the individual.
50
+ */
51
+ ethnicity?:
52
+ | 'asian'
53
+ | 'white'
54
+ | 'black_or_african_american'
55
+ | 'native_hawaiian_or_pacific_islander'
56
+ | 'american_indian_or_alaska_native'
57
+ | 'hispanic_or_latino'
58
+ | 'two_or_more_races'
59
+ | 'decline_to_specify'
60
+ | null;
61
+
62
+ /**
63
+ * The legal first name of the individual.
64
+ */
65
+ first_name?: string | null;
66
+
67
+ /**
68
+ * The gender of the individual.
69
+ */
70
+ gender?: 'female' | 'male' | 'other' | 'decline_to_specify' | null;
71
+
72
+ /**
73
+ * The legal last name of the individual.
74
+ */
75
+ last_name?: string | null;
76
+
77
+ /**
78
+ * The legal middle name of the individual.
79
+ */
80
+ middle_name?: string | null;
81
+
82
+ phone_numbers?: Array<IndividualUpdateResponse.PhoneNumber | null> | null;
83
+
84
+ /**
85
+ * The preferred name of the individual.
86
+ */
87
+ preferred_name?: string | null;
88
+
89
+ residence?: HRISAPI.Location | null;
90
+
91
+ /**
92
+ * Social Security Number of the individual. This field is only available with the
93
+ * `ssn` scope enabled and the `options: { include: ['ssn'] }` param set in the
94
+ * body.
95
+ */
96
+ ssn?: string | null;
97
+ }
98
+
99
+ export namespace IndividualUpdateResponse {
100
+ export interface Email {
101
+ data?: string;
102
+
103
+ type?: 'work' | 'personal';
104
+ }
105
+
106
+ export interface PhoneNumber {
107
+ data?: string;
108
+
109
+ type?: 'work' | 'personal';
110
+ }
111
+ }
112
+
113
+ export interface IndividualUpdateParams {
114
+ dob?: string | null;
115
+
116
+ emails?: Array<IndividualUpdateParams.Email> | null;
117
+
118
+ /**
119
+ * Social Security Number of the individual in **encrypted** format. This field is
120
+ * only available with the `ssn` scope enabled and the
121
+ * `options: { include: ['ssn'] }` param set in the body.
122
+ */
123
+ encrypted_ssn?: string | null;
124
+
125
+ /**
126
+ * The EEOC-defined ethnicity of the individual.
127
+ */
128
+ ethnicity?:
129
+ | 'asian'
130
+ | 'white'
131
+ | 'black_or_african_american'
132
+ | 'native_hawaiian_or_pacific_islander'
133
+ | 'american_indian_or_alaska_native'
134
+ | 'hispanic_or_latino'
135
+ | 'two_or_more_races'
136
+ | 'decline_to_specify'
137
+ | null;
138
+
139
+ /**
140
+ * The legal first name of the individual.
141
+ */
142
+ first_name?: string | null;
143
+
144
+ /**
145
+ * The gender of the individual.
146
+ */
147
+ gender?: 'female' | 'male' | 'other' | 'decline_to_specify' | null;
148
+
149
+ /**
150
+ * The legal last name of the individual.
151
+ */
152
+ last_name?: string | null;
153
+
154
+ /**
155
+ * The legal middle name of the individual.
156
+ */
157
+ middle_name?: string | null;
158
+
159
+ phone_numbers?: Array<IndividualUpdateParams.PhoneNumber | null> | null;
160
+
161
+ /**
162
+ * The preferred name of the individual.
163
+ */
164
+ preferred_name?: string | null;
165
+
166
+ residence?: HRISAPI.Location | null;
167
+
168
+ /**
169
+ * Social Security Number of the individual. This field is only available with the
170
+ * `ssn` scope enabled and the `options: { include: ['ssn'] }` param set in the
171
+ * body.
172
+ */
173
+ ssn?: string | null;
174
+ }
175
+
176
+ export namespace IndividualUpdateParams {
177
+ export interface Email {
178
+ data?: string;
179
+
180
+ type?: 'work' | 'personal';
181
+ }
182
+
183
+ export interface PhoneNumber {
184
+ data?: string;
185
+
186
+ type?: 'work' | 'personal';
187
+ }
188
+ }
189
+
190
+ export namespace Individual {
191
+ export import IndividualUpdateResponse = IndividualAPI.IndividualUpdateResponse;
192
+ export import IndividualUpdateParams = IndividualAPI.IndividualUpdateParams;
193
+ }
@@ -0,0 +1,44 @@
1
+ // File generated from our OpenAPI spec by Stainless.
2
+
3
+ import * as Core from "../../../core";
4
+ import { APIResource } from "../../../resource";
5
+ import * as ConfigurationAPI from "./configuration";
6
+
7
+ export class Configuration extends APIResource {
8
+ /**
9
+ * Get configurations for sandbox jobs
10
+ */
11
+ retrieve(options?: Core.RequestOptions): Core.APIPromise<ConfigurationRetrieveResponse> {
12
+ return this._client.get('/sandbox/jobs/configuration', options);
13
+ }
14
+
15
+ /**
16
+ * Update configurations for sandbox jobs
17
+ */
18
+ update(
19
+ body: ConfigurationUpdateParams,
20
+ options?: Core.RequestOptions,
21
+ ): Core.APIPromise<SandboxJobConfiguration> {
22
+ return this._client.put('/sandbox/jobs/configuration', { body, ...options });
23
+ }
24
+ }
25
+
26
+ export interface SandboxJobConfiguration {
27
+ completion_status: 'complete' | 'reauth_error' | 'permissions_error' | 'error';
28
+
29
+ type: 'data_sync_all';
30
+ }
31
+
32
+ export type ConfigurationRetrieveResponse = Array<SandboxJobConfiguration>;
33
+
34
+ export interface ConfigurationUpdateParams {
35
+ completion_status: 'complete' | 'reauth_error' | 'permissions_error' | 'error';
36
+
37
+ type: 'data_sync_all';
38
+ }
39
+
40
+ export namespace Configuration {
41
+ export import SandboxJobConfiguration = ConfigurationAPI.SandboxJobConfiguration;
42
+ export import ConfigurationRetrieveResponse = ConfigurationAPI.ConfigurationRetrieveResponse;
43
+ export import ConfigurationUpdateParams = ConfigurationAPI.ConfigurationUpdateParams;
44
+ }
@@ -0,0 +1,9 @@
1
+ // File generated from our OpenAPI spec by Stainless.
2
+
3
+ export { Jobs } from './jobs';
4
+ export {
5
+ SandboxJobConfiguration,
6
+ ConfigurationRetrieveResponse,
7
+ ConfigurationUpdateParams,
8
+ Configuration,
9
+ } from './configuration';
@@ -0,0 +1,15 @@
1
+ // File generated from our OpenAPI spec by Stainless.
2
+
3
+ import { APIResource } from "../../../resource";
4
+ import * as ConfigurationAPI from "./configuration";
5
+
6
+ export class Jobs extends APIResource {
7
+ configuration: ConfigurationAPI.Configuration = new ConfigurationAPI.Configuration(this._client);
8
+ }
9
+
10
+ export namespace Jobs {
11
+ export import Configuration = ConfigurationAPI.Configuration;
12
+ export import SandboxJobConfiguration = ConfigurationAPI.SandboxJobConfiguration;
13
+ export import ConfigurationRetrieveResponse = ConfigurationAPI.ConfigurationRetrieveResponse;
14
+ export import ConfigurationUpdateParams = ConfigurationAPI.ConfigurationUpdateParams;
15
+ }
@@ -0,0 +1,215 @@
1
+ // File generated from our OpenAPI spec by Stainless.
2
+
3
+ import * as Core from "../../core";
4
+ import { APIResource } from "../../resource";
5
+ import { isRequestOptions } from "../../core";
6
+ import * as PaymentAPI from "./payment";
7
+ import * as HRISAPI from "../hris/hris";
8
+ import * as BenefitsAPI from "../hris/benefits/benefits";
9
+
10
+ export class Payment extends APIResource {
11
+ /**
12
+ * Add a new sandbox payment
13
+ */
14
+ create(body?: PaymentCreateParams, options?: Core.RequestOptions): Core.APIPromise<PaymentCreateResponse>;
15
+ create(options?: Core.RequestOptions): Core.APIPromise<PaymentCreateResponse>;
16
+ create(
17
+ body: PaymentCreateParams | Core.RequestOptions = {},
18
+ options?: Core.RequestOptions,
19
+ ): Core.APIPromise<PaymentCreateResponse> {
20
+ if (isRequestOptions(body)) {
21
+ return this.create({}, body);
22
+ }
23
+ return this._client.post('/sandbox/payment', { body, ...options });
24
+ }
25
+ }
26
+
27
+ export interface PaymentCreateResponse {
28
+ /**
29
+ * The date of the payment.
30
+ */
31
+ pay_date: string;
32
+
33
+ /**
34
+ * The ID of the payment.
35
+ */
36
+ payment_id: string;
37
+ }
38
+
39
+ export interface PaymentCreateParams {
40
+ end_date?: string;
41
+
42
+ pay_statements?: Array<PaymentCreateParams.PayStatement>;
43
+
44
+ start_date?: string;
45
+ }
46
+
47
+ export namespace PaymentCreateParams {
48
+ export interface PayStatement {
49
+ /**
50
+ * The array of earnings objects associated with this pay statement
51
+ */
52
+ earnings?: Array<PayStatement.Earning | null> | null;
53
+
54
+ /**
55
+ * The array of deductions objects associated with this pay statement.
56
+ */
57
+ employee_deductions?: Array<PayStatement.EmployeeDeduction | null> | null;
58
+
59
+ employer_contributions?: Array<PayStatement.EmployerContribution | null> | null;
60
+
61
+ gross_pay?: HRISAPI.Money | null;
62
+
63
+ /**
64
+ * A stable Finch `id` (UUID v4) for an individual in the company
65
+ */
66
+ individual_id?: string;
67
+
68
+ net_pay?: HRISAPI.Money | null;
69
+
70
+ /**
71
+ * The payment method.
72
+ */
73
+ payment_method?: 'check' | 'direct_deposit' | null;
74
+
75
+ /**
76
+ * The array of taxes objects associated with this pay statement.
77
+ */
78
+ taxes?: Array<PayStatement.Tax | null> | null;
79
+
80
+ /**
81
+ * The number of hours worked for this pay period
82
+ */
83
+ total_hours?: number | null;
84
+
85
+ /**
86
+ * The type of the payment associated with the pay statement.
87
+ */
88
+ type?: 'regular_payroll' | 'off_cycle_payroll' | 'one_time_payment' | null;
89
+ }
90
+
91
+ export namespace PayStatement {
92
+ export interface Earning {
93
+ /**
94
+ * The earnings amount in cents.
95
+ */
96
+ amount?: number | null;
97
+
98
+ /**
99
+ * The earnings currency code.
100
+ */
101
+ currency?: string | null;
102
+
103
+ /**
104
+ * The number of hours associated with this earning. (For salaried employees, this
105
+ * could be hours per pay period, `0` or `null`, depending on the provider).
106
+ */
107
+ hours?: number | null;
108
+
109
+ /**
110
+ * The exact name of the deduction from the pay statement.
111
+ */
112
+ name?: string | null;
113
+
114
+ /**
115
+ * The type of earning.
116
+ */
117
+ type?:
118
+ | 'salary'
119
+ | 'wage'
120
+ | 'reimbursement'
121
+ | 'overtime'
122
+ | 'severance'
123
+ | 'double_overtime'
124
+ | 'pto'
125
+ | 'sick'
126
+ | 'bonus'
127
+ | 'commission'
128
+ | 'tips'
129
+ | '1099'
130
+ | 'other'
131
+ | null;
132
+ }
133
+
134
+ export interface EmployeeDeduction {
135
+ /**
136
+ * The deduction amount in cents.
137
+ */
138
+ amount?: number | null;
139
+
140
+ /**
141
+ * The deduction currency.
142
+ */
143
+ currency?: string | null;
144
+
145
+ /**
146
+ * The deduction name from the pay statement.
147
+ */
148
+ name?: string | null;
149
+
150
+ /**
151
+ * Boolean indicating if the deduction is pre-tax.
152
+ */
153
+ pre_tax?: boolean | null;
154
+
155
+ /**
156
+ * Type of benefit.
157
+ */
158
+ type?: BenefitsAPI.BenefitType | null;
159
+ }
160
+
161
+ export interface EmployerContribution {
162
+ /**
163
+ * The contribution amount in cents.
164
+ */
165
+ amount?: number | null;
166
+
167
+ /**
168
+ * The contribution currency.
169
+ */
170
+ currency?: string | null;
171
+
172
+ /**
173
+ * The contribution name from the pay statement.
174
+ */
175
+ name?: string | null;
176
+
177
+ /**
178
+ * Type of benefit.
179
+ */
180
+ type?: BenefitsAPI.BenefitType | null;
181
+ }
182
+
183
+ export interface Tax {
184
+ /**
185
+ * The tax amount in cents.
186
+ */
187
+ amount?: number | null;
188
+
189
+ /**
190
+ * The currency code.
191
+ */
192
+ currency?: string | null;
193
+
194
+ /**
195
+ * `true` if the amount is paid by the employers.
196
+ */
197
+ employer?: boolean | null;
198
+
199
+ /**
200
+ * The exact name of tax from the pay statement.
201
+ */
202
+ name?: string | null;
203
+
204
+ /**
205
+ * The type of taxes.
206
+ */
207
+ type?: 'state' | 'federal' | 'local' | 'fica' | null;
208
+ }
209
+ }
210
+ }
211
+
212
+ export namespace Payment {
213
+ export import PaymentCreateResponse = PaymentAPI.PaymentCreateResponse;
214
+ export import PaymentCreateParams = PaymentAPI.PaymentCreateParams;
215
+ }
@@ -0,0 +1,42 @@
1
+ // File generated from our OpenAPI spec by Stainless.
2
+
3
+ import { APIResource } from "../../resource";
4
+ import * as CompanyAPI from "./company";
5
+ import * as DirectoryAPI from "./directory";
6
+ import * as EmploymentAPI from "./employment";
7
+ import * as IndividualAPI from "./individual";
8
+ import * as PaymentAPI from "./payment";
9
+ import * as ConnectionsAPI from "./connections/connections";
10
+ import * as JobsAPI from "./jobs/jobs";
11
+
12
+ export class Sandbox extends APIResource {
13
+ connections: ConnectionsAPI.Connections = new ConnectionsAPI.Connections(this._client);
14
+ company: CompanyAPI.Company = new CompanyAPI.Company(this._client);
15
+ directory: DirectoryAPI.Directory = new DirectoryAPI.Directory(this._client);
16
+ individual: IndividualAPI.Individual = new IndividualAPI.Individual(this._client);
17
+ employment: EmploymentAPI.Employment = new EmploymentAPI.Employment(this._client);
18
+ payment: PaymentAPI.Payment = new PaymentAPI.Payment(this._client);
19
+ jobs: JobsAPI.Jobs = new JobsAPI.Jobs(this._client);
20
+ }
21
+
22
+ export namespace Sandbox {
23
+ export import Connections = ConnectionsAPI.Connections;
24
+ export import ConnectionCreateResponse = ConnectionsAPI.ConnectionCreateResponse;
25
+ export import ConnectionCreateParams = ConnectionsAPI.ConnectionCreateParams;
26
+ export import Company = CompanyAPI.Company;
27
+ export import CompanyUpdateResponse = CompanyAPI.CompanyUpdateResponse;
28
+ export import CompanyUpdateParams = CompanyAPI.CompanyUpdateParams;
29
+ export import Directory = DirectoryAPI.Directory;
30
+ export import DirectoryCreateResponse = DirectoryAPI.DirectoryCreateResponse;
31
+ export import DirectoryCreateParams = DirectoryAPI.DirectoryCreateParams;
32
+ export import Individual = IndividualAPI.Individual;
33
+ export import IndividualUpdateResponse = IndividualAPI.IndividualUpdateResponse;
34
+ export import IndividualUpdateParams = IndividualAPI.IndividualUpdateParams;
35
+ export import Employment = EmploymentAPI.Employment;
36
+ export import EmploymentUpdateResponse = EmploymentAPI.EmploymentUpdateResponse;
37
+ export import EmploymentUpdateParams = EmploymentAPI.EmploymentUpdateParams;
38
+ export import Payment = PaymentAPI.Payment;
39
+ export import PaymentCreateResponse = PaymentAPI.PaymentCreateResponse;
40
+ export import PaymentCreateParams = PaymentAPI.PaymentCreateParams;
41
+ export import Jobs = JobsAPI.Jobs;
42
+ }
@@ -1,5 +1,13 @@
1
1
  // File generated from our OpenAPI spec by Stainless.
2
2
 
3
+ export type IntrospectResponseConnectionStatus =
4
+ | 'pending'
5
+ | 'processing'
6
+ | 'connected'
7
+ | 'error_no_account_setup'
8
+ | 'error_permissions'
9
+ | 'reauth';
10
+
3
11
  /**
4
12
  * - `supported`: This operation is supported by both the provider and Finch
5
13
  *
package/src/uploads.ts CHANGED
@@ -184,7 +184,7 @@ export const isMultipartBody = (body: any): body is MultipartBody =>
184
184
  * Returns a multipart/form-data request if any part of the given request body contains a File / Blob value.
185
185
  * Otherwise returns the request as is.
186
186
  */
187
- export const maybeMultipartFormRequestOptions = async <T extends {} = Record<string, unknown>>(
187
+ export const maybeMultipartFormRequestOptions = async <T = Record<string, unknown>>(
188
188
  opts: RequestOptions<T>,
189
189
  ): Promise<RequestOptions<T | MultipartBody>> => {
190
190
  if (!hasUploadableValue(opts.body)) return opts;
@@ -193,7 +193,7 @@ export const maybeMultipartFormRequestOptions = async <T extends {} = Record<str
193
193
  return getMultipartRequestOptions(form, opts);
194
194
  };
195
195
 
196
- export const multipartFormRequestOptions = async <T extends {} = Record<string, unknown>>(
196
+ export const multipartFormRequestOptions = async <T = Record<string, unknown>>(
197
197
  opts: RequestOptions<T>,
198
198
  ): Promise<RequestOptions<T | MultipartBody>> => {
199
199
  const form = await createForm(opts.body);
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '5.14.2'; // x-release-please-version
1
+ export const VERSION = '5.15.0'; // x-release-please-version
package/uploads.d.ts CHANGED
@@ -69,7 +69,7 @@ export declare const isMultipartBody: (body: any) => body is MultipartBody;
69
69
  * Returns a multipart/form-data request if any part of the given request body contains a File / Blob value.
70
70
  * Otherwise returns the request as is.
71
71
  */
72
- export declare const maybeMultipartFormRequestOptions: <T extends {} = Record<string, unknown>>(opts: RequestOptions<T>) => Promise<RequestOptions<MultipartBody | T>>;
73
- export declare const multipartFormRequestOptions: <T extends {} = Record<string, unknown>>(opts: RequestOptions<T>) => Promise<RequestOptions<MultipartBody | T>>;
72
+ export declare const maybeMultipartFormRequestOptions: <T = Record<string, unknown>>(opts: RequestOptions<T>) => Promise<RequestOptions<MultipartBody | T>>;
73
+ export declare const multipartFormRequestOptions: <T = Record<string, unknown>>(opts: RequestOptions<T>) => Promise<RequestOptions<MultipartBody | T>>;
74
74
  export declare const createForm: <T = Record<string, unknown>>(body: T | undefined) => Promise<FormData>;
75
75
  //# sourceMappingURL=uploads.d.ts.map
package/uploads.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"uploads.d.ts","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,QAAQ,CAAC;AAC7C,OAAO,EACL,QAAQ,EAER,KAAK,IAAI,EACT,KAAK,eAAe,EAEpB,KAAK,YAAY,EAElB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,KAAK,YAAY,GAAG,MAAM,GAAG,WAAW,GAAG,eAAe,GAAG,QAAQ,GAAG,UAAU,GAAG,QAAQ,CAAC;AAC9F,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,WAAW,GAAG,eAAe,GAAG,IAAI,GAAG,UAAU,GAAG,QAAQ,CAAC;AAE7F;;;;;;;;GAQG;AACH,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,YAAY,GAAG,YAAY,CAAC;AAEhE;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,4EAA4E;IAC5E,QAAQ,CAAC,IAAI,EAAE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CACvB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,IAAI,OAAO,CAAC,QAAQ,CAAC,CAAC;CAC3B;AAED,eAAO,MAAM,cAAc,UAAW,GAAG,0BAIP,CAAC;AAEnC,eAAO,MAAM,UAAU,UAAW,GAAG,sBAKlB,CAAC;AAEpB;;;GAGG;AACH,eAAO,MAAM,UAAU,UAAW,GAAG;mBAAwC,QAAQ,WAAW,CAAC;CAOxD,CAAC;AAE1C,eAAO,MAAM,YAAY,UAAW,GAAG,wBAEtC,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,UAAU,GAAG,OAAO,CAAC,YAAY,EAAE,MAAM,CAAC,GAAG,aAAa,CAAC,YAAY,CAAC,CAAC;AAEnG;;;;;;;;GAQG;AACH,wBAAsB,MAAM,CAC1B,KAAK,EAAE,WAAW,GAAG,WAAW,CAAC,WAAW,CAAC,EAC7C,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAChC,OAAO,GAAE,eAAe,GAAG,SAAc,GACxC,OAAO,CAAC,QAAQ,CAAC,CAuBnB;AAmDD,eAAO,MAAM,eAAe,SAAU,GAAG,0BACsD,CAAC;AAEhG;;;GAGG;AACH,eAAO,MAAM,gCAAgC,sGAO5C,CAAC;AAEF,eAAO,MAAM,2BAA2B,sGAKvC,CAAC;AAEF,eAAO,MAAM,UAAU,wDAA6D,QAAQ,QAAQ,CAInG,CAAC"}
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "5.14.2";
1
+ export declare const VERSION = "5.15.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '5.14.2'; // x-release-please-version
4
+ exports.VERSION = '5.15.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '5.14.2'; // x-release-please-version
1
+ export const VERSION = '5.15.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map