@tryfinch/finch-api 8.2.1 → 9.8.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 (267) hide show
  1. package/CHANGELOG.md +237 -0
  2. package/README.md +2 -2
  3. package/client.d.mts +8 -4
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +8 -4
  6. package/client.d.ts.map +1 -1
  7. package/client.js +43 -13
  8. package/client.js.map +1 -1
  9. package/client.mjs +43 -13
  10. package/client.mjs.map +1 -1
  11. package/internal/parse.d.mts.map +1 -1
  12. package/internal/parse.d.ts.map +1 -1
  13. package/internal/parse.js +5 -0
  14. package/internal/parse.js.map +1 -1
  15. package/internal/parse.mjs +5 -0
  16. package/internal/parse.mjs.map +1 -1
  17. package/internal/request-options.d.mts +4 -0
  18. package/internal/request-options.d.mts.map +1 -1
  19. package/internal/request-options.d.ts +4 -0
  20. package/internal/request-options.d.ts.map +1 -1
  21. package/internal/request-options.js.map +1 -1
  22. package/internal/request-options.mjs.map +1 -1
  23. package/internal/tslib.js +17 -17
  24. package/internal/types.d.mts +6 -6
  25. package/internal/types.d.mts.map +1 -1
  26. package/internal/types.d.ts +6 -6
  27. package/internal/types.d.ts.map +1 -1
  28. package/internal/utils/env.js +2 -2
  29. package/internal/utils/env.js.map +1 -1
  30. package/internal/utils/env.mjs +2 -2
  31. package/internal/utils/env.mjs.map +1 -1
  32. package/internal/utils/log.d.mts.map +1 -1
  33. package/internal/utils/log.d.ts.map +1 -1
  34. package/internal/utils/log.js +2 -0
  35. package/internal/utils/log.js.map +1 -1
  36. package/internal/utils/log.mjs +2 -0
  37. package/internal/utils/log.mjs.map +1 -1
  38. package/internal/utils/query.d.mts +2 -0
  39. package/internal/utils/query.d.mts.map +1 -0
  40. package/internal/utils/query.d.ts +2 -0
  41. package/internal/utils/query.d.ts.map +1 -0
  42. package/internal/utils/query.js +10 -0
  43. package/internal/utils/query.js.map +1 -0
  44. package/internal/utils/query.mjs +6 -0
  45. package/internal/utils/query.mjs.map +1 -0
  46. package/internal/utils.d.mts +1 -0
  47. package/internal/utils.d.ts +1 -0
  48. package/internal/utils.js +1 -0
  49. package/internal/utils.js.map +1 -1
  50. package/internal/utils.mjs +1 -0
  51. package/package.json +12 -1
  52. package/resources/access-tokens.d.mts +5 -0
  53. package/resources/access-tokens.d.mts.map +1 -1
  54. package/resources/access-tokens.d.ts +5 -0
  55. package/resources/access-tokens.d.ts.map +1 -1
  56. package/resources/access-tokens.js +1 -0
  57. package/resources/access-tokens.js.map +1 -1
  58. package/resources/access-tokens.mjs +1 -0
  59. package/resources/access-tokens.mjs.map +1 -1
  60. package/resources/account.d.mts +4 -0
  61. package/resources/account.d.mts.map +1 -1
  62. package/resources/account.d.ts +4 -0
  63. package/resources/account.d.ts.map +1 -1
  64. package/resources/account.js +2 -2
  65. package/resources/account.js.map +1 -1
  66. package/resources/account.mjs +2 -2
  67. package/resources/account.mjs.map +1 -1
  68. package/resources/connect/sessions.d.mts +6 -2
  69. package/resources/connect/sessions.d.mts.map +1 -1
  70. package/resources/connect/sessions.d.ts +6 -2
  71. package/resources/connect/sessions.d.ts.map +1 -1
  72. package/resources/connect/sessions.js +6 -2
  73. package/resources/connect/sessions.js.map +1 -1
  74. package/resources/connect/sessions.mjs +6 -2
  75. package/resources/connect/sessions.mjs.map +1 -1
  76. package/resources/hris/benefits/benefits.d.mts +6 -6
  77. package/resources/hris/benefits/benefits.d.mts.map +1 -1
  78. package/resources/hris/benefits/benefits.d.ts +6 -6
  79. package/resources/hris/benefits/benefits.d.ts.map +1 -1
  80. package/resources/hris/benefits/benefits.js +18 -3
  81. package/resources/hris/benefits/benefits.js.map +1 -1
  82. package/resources/hris/benefits/benefits.mjs +18 -3
  83. package/resources/hris/benefits/benefits.mjs.map +1 -1
  84. package/resources/hris/benefits/individuals.d.mts +12 -12
  85. package/resources/hris/benefits/individuals.d.mts.map +1 -1
  86. package/resources/hris/benefits/individuals.d.ts +12 -12
  87. package/resources/hris/benefits/individuals.d.ts.map +1 -1
  88. package/resources/hris/benefits/individuals.js +8 -2
  89. package/resources/hris/benefits/individuals.js.map +1 -1
  90. package/resources/hris/benefits/individuals.mjs +8 -2
  91. package/resources/hris/benefits/individuals.mjs.map +1 -1
  92. package/resources/hris/company/company.js +1 -1
  93. package/resources/hris/company/company.js.map +1 -1
  94. package/resources/hris/company/company.mjs +1 -1
  95. package/resources/hris/company/company.mjs.map +1 -1
  96. package/resources/hris/company/pay-statement-item/pay-statement-item.js +1 -1
  97. package/resources/hris/company/pay-statement-item/pay-statement-item.js.map +1 -1
  98. package/resources/hris/company/pay-statement-item/pay-statement-item.mjs +1 -1
  99. package/resources/hris/company/pay-statement-item/pay-statement-item.mjs.map +1 -1
  100. package/resources/hris/company/pay-statement-item/rules.d.mts.map +1 -1
  101. package/resources/hris/company/pay-statement-item/rules.d.ts.map +1 -1
  102. package/resources/hris/company/pay-statement-item/rules.js +4 -0
  103. package/resources/hris/company/pay-statement-item/rules.js.map +1 -1
  104. package/resources/hris/company/pay-statement-item/rules.mjs +4 -0
  105. package/resources/hris/company/pay-statement-item/rules.mjs.map +1 -1
  106. package/resources/hris/directory.d.mts +9 -1
  107. package/resources/hris/directory.d.mts.map +1 -1
  108. package/resources/hris/directory.d.ts +9 -1
  109. package/resources/hris/directory.d.ts.map +1 -1
  110. package/resources/hris/directory.js +1 -0
  111. package/resources/hris/directory.js.map +1 -1
  112. package/resources/hris/directory.mjs +1 -0
  113. package/resources/hris/directory.mjs.map +1 -1
  114. package/resources/hris/documents.d.mts.map +1 -1
  115. package/resources/hris/documents.d.ts.map +1 -1
  116. package/resources/hris/documents.js +6 -2
  117. package/resources/hris/documents.js.map +1 -1
  118. package/resources/hris/documents.mjs +6 -2
  119. package/resources/hris/documents.mjs.map +1 -1
  120. package/resources/hris/employments.d.mts +12 -7
  121. package/resources/hris/employments.d.mts.map +1 -1
  122. package/resources/hris/employments.d.ts +12 -7
  123. package/resources/hris/employments.d.ts.map +1 -1
  124. package/resources/hris/employments.js +1 -0
  125. package/resources/hris/employments.js.map +1 -1
  126. package/resources/hris/employments.mjs +1 -0
  127. package/resources/hris/employments.mjs.map +1 -1
  128. package/resources/hris/individuals.d.mts +5 -5
  129. package/resources/hris/individuals.d.mts.map +1 -1
  130. package/resources/hris/individuals.d.ts +5 -5
  131. package/resources/hris/individuals.d.ts.map +1 -1
  132. package/resources/hris/individuals.js +1 -0
  133. package/resources/hris/individuals.js.map +1 -1
  134. package/resources/hris/individuals.mjs +1 -0
  135. package/resources/hris/individuals.mjs.map +1 -1
  136. package/resources/hris/pay-statements.d.mts.map +1 -1
  137. package/resources/hris/pay-statements.d.ts.map +1 -1
  138. package/resources/hris/pay-statements.js +1 -0
  139. package/resources/hris/pay-statements.js.map +1 -1
  140. package/resources/hris/pay-statements.mjs +1 -0
  141. package/resources/hris/pay-statements.mjs.map +1 -1
  142. package/resources/hris/payments.d.mts.map +1 -1
  143. package/resources/hris/payments.d.ts.map +1 -1
  144. package/resources/hris/payments.js +5 -1
  145. package/resources/hris/payments.js.map +1 -1
  146. package/resources/hris/payments.mjs +5 -1
  147. package/resources/hris/payments.mjs.map +1 -1
  148. package/resources/jobs/automated.js +3 -3
  149. package/resources/jobs/automated.js.map +1 -1
  150. package/resources/jobs/automated.mjs +3 -3
  151. package/resources/jobs/automated.mjs.map +1 -1
  152. package/resources/jobs/manual.js +1 -1
  153. package/resources/jobs/manual.js.map +1 -1
  154. package/resources/jobs/manual.mjs +1 -1
  155. package/resources/jobs/manual.mjs.map +1 -1
  156. package/resources/payroll/pay-groups.d.mts.map +1 -1
  157. package/resources/payroll/pay-groups.d.ts.map +1 -1
  158. package/resources/payroll/pay-groups.js +6 -1
  159. package/resources/payroll/pay-groups.js.map +1 -1
  160. package/resources/payroll/pay-groups.mjs +6 -1
  161. package/resources/payroll/pay-groups.mjs.map +1 -1
  162. package/resources/providers.d.mts.map +1 -1
  163. package/resources/providers.d.ts.map +1 -1
  164. package/resources/providers.js +4 -1
  165. package/resources/providers.js.map +1 -1
  166. package/resources/providers.mjs +4 -1
  167. package/resources/providers.mjs.map +1 -1
  168. package/resources/request-forwarding.js +1 -1
  169. package/resources/request-forwarding.js.map +1 -1
  170. package/resources/request-forwarding.mjs +1 -1
  171. package/resources/request-forwarding.mjs.map +1 -1
  172. package/resources/sandbox/company.js +1 -1
  173. package/resources/sandbox/company.js.map +1 -1
  174. package/resources/sandbox/company.mjs +1 -1
  175. package/resources/sandbox/company.mjs.map +1 -1
  176. package/resources/sandbox/connections/accounts.d.mts.map +1 -1
  177. package/resources/sandbox/connections/accounts.d.ts.map +1 -1
  178. package/resources/sandbox/connections/accounts.js +10 -2
  179. package/resources/sandbox/connections/accounts.js.map +1 -1
  180. package/resources/sandbox/connections/accounts.mjs +10 -2
  181. package/resources/sandbox/connections/accounts.mjs.map +1 -1
  182. package/resources/sandbox/connections/connections.js +1 -1
  183. package/resources/sandbox/connections/connections.js.map +1 -1
  184. package/resources/sandbox/connections/connections.mjs +1 -1
  185. package/resources/sandbox/connections/connections.mjs.map +1 -1
  186. package/resources/sandbox/directory.d.mts +5 -0
  187. package/resources/sandbox/directory.d.mts.map +1 -1
  188. package/resources/sandbox/directory.d.ts +5 -0
  189. package/resources/sandbox/directory.d.ts.map +1 -1
  190. package/resources/sandbox/directory.js +5 -1
  191. package/resources/sandbox/directory.js.map +1 -1
  192. package/resources/sandbox/directory.mjs +5 -1
  193. package/resources/sandbox/directory.mjs.map +1 -1
  194. package/resources/sandbox/employment.d.mts +10 -0
  195. package/resources/sandbox/employment.d.mts.map +1 -1
  196. package/resources/sandbox/employment.d.ts +10 -0
  197. package/resources/sandbox/employment.d.ts.map +1 -1
  198. package/resources/sandbox/employment.js +5 -1
  199. package/resources/sandbox/employment.js.map +1 -1
  200. package/resources/sandbox/employment.mjs +5 -1
  201. package/resources/sandbox/employment.mjs.map +1 -1
  202. package/resources/sandbox/individual.d.mts.map +1 -1
  203. package/resources/sandbox/individual.d.ts.map +1 -1
  204. package/resources/sandbox/individual.js +5 -1
  205. package/resources/sandbox/individual.js.map +1 -1
  206. package/resources/sandbox/individual.mjs +5 -1
  207. package/resources/sandbox/individual.mjs.map +1 -1
  208. package/resources/sandbox/jobs/configuration.d.mts.map +1 -1
  209. package/resources/sandbox/jobs/configuration.d.ts.map +1 -1
  210. package/resources/sandbox/jobs/configuration.js +6 -2
  211. package/resources/sandbox/jobs/configuration.js.map +1 -1
  212. package/resources/sandbox/jobs/configuration.mjs +6 -2
  213. package/resources/sandbox/jobs/configuration.mjs.map +1 -1
  214. package/resources/sandbox/jobs/jobs.js +1 -1
  215. package/resources/sandbox/jobs/jobs.js.map +1 -1
  216. package/resources/sandbox/jobs/jobs.mjs +1 -1
  217. package/resources/sandbox/jobs/jobs.mjs.map +1 -1
  218. package/resources/sandbox/payment.js +1 -1
  219. package/resources/sandbox/payment.js.map +1 -1
  220. package/resources/sandbox/payment.mjs +1 -1
  221. package/resources/sandbox/payment.mjs.map +1 -1
  222. package/resources/webhooks.d.mts +5 -1
  223. package/resources/webhooks.d.mts.map +1 -1
  224. package/resources/webhooks.d.ts +5 -1
  225. package/resources/webhooks.d.ts.map +1 -1
  226. package/src/client.ts +57 -18
  227. package/src/internal/parse.ts +6 -0
  228. package/src/internal/request-options.ts +2 -0
  229. package/src/internal/types.ts +6 -8
  230. package/src/internal/utils/env.ts +2 -2
  231. package/src/internal/utils/log.ts +2 -0
  232. package/src/internal/utils/query.ts +7 -0
  233. package/src/internal/utils.ts +1 -0
  234. package/src/resources/access-tokens.ts +7 -0
  235. package/src/resources/account.ts +14 -2
  236. package/src/resources/connect/sessions.ts +12 -4
  237. package/src/resources/hris/benefits/benefits.ts +26 -11
  238. package/src/resources/hris/benefits/individuals.ts +25 -16
  239. package/src/resources/hris/company/company.ts +1 -1
  240. package/src/resources/hris/company/pay-statement-item/pay-statement-item.ts +1 -1
  241. package/src/resources/hris/company/pay-statement-item/rules.ts +4 -0
  242. package/src/resources/hris/directory.ts +12 -1
  243. package/src/resources/hris/documents.ts +6 -2
  244. package/src/resources/hris/employments.ts +14 -7
  245. package/src/resources/hris/individuals.ts +6 -5
  246. package/src/resources/hris/pay-statements.ts +1 -0
  247. package/src/resources/hris/payments.ts +5 -1
  248. package/src/resources/jobs/automated.ts +3 -3
  249. package/src/resources/jobs/manual.ts +1 -1
  250. package/src/resources/payroll/pay-groups.ts +6 -1
  251. package/src/resources/providers.ts +4 -1
  252. package/src/resources/request-forwarding.ts +1 -1
  253. package/src/resources/sandbox/company.ts +1 -1
  254. package/src/resources/sandbox/connections/accounts.ts +10 -2
  255. package/src/resources/sandbox/connections/connections.ts +1 -1
  256. package/src/resources/sandbox/directory.ts +11 -1
  257. package/src/resources/sandbox/employment.ts +17 -1
  258. package/src/resources/sandbox/individual.ts +5 -1
  259. package/src/resources/sandbox/jobs/configuration.ts +6 -2
  260. package/src/resources/sandbox/jobs/jobs.ts +1 -1
  261. package/src/resources/sandbox/payment.ts +1 -1
  262. package/src/resources/webhooks.ts +9 -1
  263. package/src/version.ts +1 -1
  264. package/version.d.mts +1 -1
  265. package/version.d.ts +1 -1
  266. package/version.js +1 -1
  267. package/version.mjs +1 -1
@@ -23,6 +23,7 @@ export class Directory extends APIResource {
23
23
  return this._client.getAPIList('/employer/directory', IndividualsPage, {
24
24
  query,
25
25
  ...options,
26
+ __security: { bearerAuth: true },
26
27
  });
27
28
  }
28
29
 
@@ -98,11 +99,21 @@ export interface DirectoryListParams extends IndividualsPageParams {
98
99
  entity_ids?: Array<string>;
99
100
  }
100
101
 
101
- export interface DirectoryListIndividualsParams extends IndividualsPageParams {
102
+ export interface DirectoryListIndividualsParams {
102
103
  /**
103
104
  * The entity IDs to specify which entities' data to access.
104
105
  */
105
106
  entity_ids?: Array<string>;
107
+
108
+ /**
109
+ * Number of employees to return (defaults to all)
110
+ */
111
+ limit?: number;
112
+
113
+ /**
114
+ * Index to start from (defaults to 0)
115
+ */
116
+ offset?: number;
106
117
  }
107
118
 
108
119
  export declare namespace Directory {
@@ -20,7 +20,7 @@ export class Documents extends APIResource {
20
20
  query: DocumentListParams | null | undefined = {},
21
21
  options?: RequestOptions,
22
22
  ): APIPromise<DocumentListResponse> {
23
- return this._client.get('/employer/documents', { query, ...options });
23
+ return this._client.get('/employer/documents', { query, ...options, __security: { bearerAuth: true } });
24
24
  }
25
25
 
26
26
  /**
@@ -39,7 +39,11 @@ export class Documents extends APIResource {
39
39
  query: DocumentRetreiveParams | null | undefined = {},
40
40
  options?: RequestOptions,
41
41
  ): APIPromise<DocumentRetreiveResponse> {
42
- return this._client.get(path`/employer/documents/${documentID}`, { query, ...options });
42
+ return this._client.get(path`/employer/documents/${documentID}`, {
43
+ query,
44
+ ...options,
45
+ __security: { bearerAuth: true },
46
+ });
43
47
  }
44
48
  }
45
49
 
@@ -29,16 +29,17 @@ export class Employments extends APIResource {
29
29
  body,
30
30
  method: 'post',
31
31
  ...options,
32
+ __security: { bearerAuth: true },
32
33
  });
33
34
  }
34
35
  }
35
36
 
36
37
  export type EmploymentDataResponsesPage = ResponsesPage<EmploymentDataResponse>;
37
38
 
38
- export type EmploymentData = EmploymentData.UnionMember0 | EmploymentData.BatchError;
39
+ export type EmploymentData = EmploymentData.EmploymentData | EmploymentData.BatchError;
39
40
 
40
41
  export namespace EmploymentData {
41
- export interface UnionMember0 {
42
+ export interface EmploymentData {
42
43
  /**
43
44
  * A stable Finch `id` (UUID v4) for an individual in the company.
44
45
  */
@@ -52,12 +53,12 @@ export namespace EmploymentData {
52
53
  /**
53
54
  * The department object.
54
55
  */
55
- department: UnionMember0.Department | null;
56
+ department: EmploymentData.Department | null;
56
57
 
57
58
  /**
58
59
  * The employment object.
59
60
  */
60
- employment: UnionMember0.Employment | null;
61
+ employment: EmploymentData.Employment | null;
61
62
 
62
63
  /**
63
64
  * The detailed employment status of the individual.
@@ -79,6 +80,12 @@ export namespace EmploymentData {
79
80
  */
80
81
  first_name: string | null;
81
82
 
83
+ /**
84
+ * The FLSA status of the individual. Available options: `exempt`, `non_exempt`,
85
+ * `unknown`.
86
+ */
87
+ flsa_status: 'exempt' | 'non_exempt' | 'unknown' | null;
88
+
82
89
  /**
83
90
  * `true` if the individual an an active employee or contractor at the company.
84
91
  */
@@ -96,7 +103,7 @@ export namespace EmploymentData {
96
103
  /**
97
104
  * The manager object representing the manager of the individual within the org.
98
105
  */
99
- manager: UnionMember0.Manager | null;
106
+ manager: EmploymentData.Manager | null;
100
107
 
101
108
  /**
102
109
  * The legal middle name of the individual.
@@ -115,7 +122,7 @@ export namespace EmploymentData {
115
122
  * employer in the system. Custom fields are not currently supported for assisted
116
123
  * connections.
117
124
  */
118
- custom_fields?: Array<UnionMember0.CustomField> | null;
125
+ custom_fields?: Array<EmploymentData.CustomField> | null;
119
126
 
120
127
  /**
121
128
  * The employee's income as reported by the provider. This may not always be
@@ -140,7 +147,7 @@ export namespace EmploymentData {
140
147
  work_id?: string | null;
141
148
  }
142
149
 
143
- export namespace UnionMember0 {
150
+ export namespace EmploymentData {
144
151
  /**
145
152
  * The department object.
146
153
  */
@@ -27,16 +27,17 @@ export class Individuals extends APIResource {
27
27
  body,
28
28
  method: 'post',
29
29
  ...options,
30
+ __security: { bearerAuth: true },
30
31
  });
31
32
  }
32
33
  }
33
34
 
34
35
  export type IndividualResponsesPage = ResponsesPage<IndividualResponse>;
35
36
 
36
- export type Individual = Individual.UnionMember0 | Individual.BatchError;
37
+ export type Individual = Individual.Individual | Individual.BatchError;
37
38
 
38
39
  export namespace Individual {
39
- export interface UnionMember0 {
40
+ export interface Individual {
40
41
  /**
41
42
  * A stable Finch `id` (UUID v4) for an individual in the company.
42
43
  */
@@ -78,7 +79,7 @@ export namespace Individual {
78
79
  */
79
80
  middle_name: string | null;
80
81
 
81
- phone_numbers: Array<UnionMember0.PhoneNumber | null> | null;
82
+ phone_numbers: Array<Individual.PhoneNumber | null> | null;
82
83
 
83
84
  /**
84
85
  * The preferred name of the individual.
@@ -87,7 +88,7 @@ export namespace Individual {
87
88
 
88
89
  residence: HRISAPI.Location | null;
89
90
 
90
- emails?: Array<UnionMember0.Email> | null;
91
+ emails?: Array<Individual.Email> | null;
91
92
 
92
93
  /**
93
94
  * Social Security Number of the individual in **encrypted** format. This field is
@@ -105,7 +106,7 @@ export namespace Individual {
105
106
  ssn?: string | null;
106
107
  }
107
108
 
108
- export namespace UnionMember0 {
109
+ export namespace Individual {
109
110
  export interface PhoneNumber {
110
111
  data: string | null;
111
112
 
@@ -39,6 +39,7 @@ export class PayStatements extends APIResource {
39
39
  body,
40
40
  method: 'post',
41
41
  ...options,
42
+ __security: { bearerAuth: true },
42
43
  });
43
44
  }
44
45
  }
@@ -21,7 +21,11 @@ export class Payments extends APIResource {
21
21
  * ```
22
22
  */
23
23
  list(query: PaymentListParams, options?: RequestOptions): PagePromise<PaymentsSinglePage, Payment> {
24
- return this._client.getAPIList('/employer/payment', SinglePage<Payment>, { query, ...options });
24
+ return this._client.getAPIList('/employer/payment', SinglePage<Payment>, {
25
+ query,
26
+ ...options,
27
+ __security: { bearerAuth: true },
28
+ });
25
29
  }
26
30
  }
27
31
 
@@ -23,14 +23,14 @@ export class Automated extends APIResource {
23
23
  * access to this endpoint, please contact your Finch account manager.
24
24
  */
25
25
  create(body: AutomatedCreateParams, options?: RequestOptions): APIPromise<AutomatedCreateResponse> {
26
- return this._client.post('/jobs/automated', { body, ...options });
26
+ return this._client.post('/jobs/automated', { body, ...options, __security: { bearerAuth: true } });
27
27
  }
28
28
 
29
29
  /**
30
30
  * Get an automated job by `job_id`.
31
31
  */
32
32
  retrieve(jobID: string, options?: RequestOptions): APIPromise<AutomatedAsyncJob> {
33
- return this._client.get(path`/jobs/automated/${jobID}`, options);
33
+ return this._client.get(path`/jobs/automated/${jobID}`, { ...options, __security: { bearerAuth: true } });
34
34
  }
35
35
 
36
36
  /**
@@ -42,7 +42,7 @@ export class Automated extends APIResource {
42
42
  query: AutomatedListParams | null | undefined = {},
43
43
  options?: RequestOptions,
44
44
  ): APIPromise<AutomatedListResponse> {
45
- return this._client.get('/jobs/automated', { query, ...options });
45
+ return this._client.get('/jobs/automated', { query, ...options, __security: { bearerAuth: true } });
46
46
  }
47
47
  }
48
48
 
@@ -11,7 +11,7 @@ export class Manual extends APIResource {
11
11
  * jobs including those for both automated and assisted integrations.
12
12
  */
13
13
  retrieve(jobID: string, options?: RequestOptions): APIPromise<ManualAsyncJob> {
14
- return this._client.get(path`/jobs/manual/${jobID}`, options);
14
+ return this._client.get(path`/jobs/manual/${jobID}`, { ...options, __security: { bearerAuth: true } });
15
15
  }
16
16
  }
17
17
 
@@ -15,7 +15,11 @@ export class PayGroups extends APIResource {
15
15
  query: PayGroupRetrieveParams | null | undefined = {},
16
16
  options?: RequestOptions,
17
17
  ): APIPromise<PayGroupRetrieveResponse> {
18
- return this._client.get(path`/employer/pay-groups/${payGroupID}`, { query, ...options });
18
+ return this._client.get(path`/employer/pay-groups/${payGroupID}`, {
19
+ query,
20
+ ...options,
21
+ __security: { bearerAuth: true },
22
+ });
19
23
  }
20
24
 
21
25
  /**
@@ -28,6 +32,7 @@ export class PayGroups extends APIResource {
28
32
  return this._client.getAPIList('/employer/pay-groups', SinglePage<PayGroupListResponse>, {
29
33
  query,
30
34
  ...options,
35
+ __security: { bearerAuth: true },
31
36
  });
32
37
  }
33
38
  }
@@ -9,7 +9,10 @@ export class Providers extends APIResource {
9
9
  * Return details on all available payroll and HR systems.
10
10
  */
11
11
  list(options?: RequestOptions): PagePromise<ProviderListResponsesSinglePage, ProviderListResponse> {
12
- return this._client.getAPIList('/providers', SinglePage<ProviderListResponse>, options);
12
+ return this._client.getAPIList('/providers', SinglePage<ProviderListResponse>, {
13
+ ...options,
14
+ __security: { bearerAuth: true },
15
+ });
13
16
  }
14
17
  }
15
18
 
@@ -15,7 +15,7 @@ export class RequestForwarding extends APIResource {
15
15
  body: RequestForwardingForwardParams,
16
16
  options?: RequestOptions,
17
17
  ): APIPromise<RequestForwardingForwardResponse> {
18
- return this._client.post('/forward', { body, ...options });
18
+ return this._client.post('/forward', { body, ...options, __security: { bearerAuth: true } });
19
19
  }
20
20
  }
21
21
 
@@ -33,7 +33,7 @@ export class Company extends APIResource {
33
33
  * ```
34
34
  */
35
35
  update(body: CompanyUpdateParams, options?: RequestOptions): APIPromise<CompanyUpdateResponse> {
36
- return this._client.put('/sandbox/company', { body, ...options });
36
+ return this._client.put('/sandbox/company', { body, ...options, __security: { bearerAuth: true } });
37
37
  }
38
38
  }
39
39
 
@@ -19,7 +19,11 @@ export class Accounts extends APIResource {
19
19
  * ```
20
20
  */
21
21
  create(body: AccountCreateParams, options?: RequestOptions): APIPromise<AccountCreateResponse> {
22
- return this._client.post('/sandbox/connections/accounts', { body, ...options });
22
+ return this._client.post('/sandbox/connections/accounts', {
23
+ body,
24
+ ...options,
25
+ __security: { basicAuth: true },
26
+ });
23
27
  }
24
28
 
25
29
  /**
@@ -38,7 +42,11 @@ export class Accounts extends APIResource {
38
42
  body: AccountUpdateParams | null | undefined = {},
39
43
  options?: RequestOptions,
40
44
  ): APIPromise<AccountUpdateResponse> {
41
- return this._client.put('/sandbox/connections/accounts', { body, ...options });
45
+ return this._client.put('/sandbox/connections/accounts', {
46
+ body,
47
+ ...options,
48
+ __security: { bearerAuth: true },
49
+ });
42
50
  }
43
51
  }
44
52
 
@@ -26,7 +26,7 @@ export class Connections extends APIResource {
26
26
  * ```
27
27
  */
28
28
  create(body: ConnectionCreateParams, options?: RequestOptions): APIPromise<ConnectionCreateResponse> {
29
- return this._client.post('/sandbox/connections', { body, ...options });
29
+ return this._client.post('/sandbox/connections', { body, ...options, __security: { basicAuth: true } });
30
30
  }
31
31
  }
32
32
 
@@ -19,7 +19,11 @@ export class Directory extends APIResource {
19
19
  options?: RequestOptions,
20
20
  ): APIPromise<DirectoryCreateResponse> {
21
21
  const { body } = params ?? {};
22
- return this._client.post('/sandbox/directory', { body: body, ...options });
22
+ return this._client.post('/sandbox/directory', {
23
+ body: body,
24
+ ...options,
25
+ __security: { bearerAuth: true },
26
+ });
23
27
  }
24
28
  }
25
29
 
@@ -105,6 +109,12 @@ export namespace DirectoryCreateParams {
105
109
  */
106
110
  first_name?: string | null;
107
111
 
112
+ /**
113
+ * The FLSA status of the individual. Available options: `exempt`, `non_exempt`,
114
+ * `unknown`.
115
+ */
116
+ flsa_status?: 'exempt' | 'non_exempt' | 'unknown' | null;
117
+
108
118
  /**
109
119
  * The gender of the individual.
110
120
  */
@@ -22,7 +22,11 @@ export class Employment extends APIResource {
22
22
  body: EmploymentUpdateParams | null | undefined = {},
23
23
  options?: RequestOptions,
24
24
  ): APIPromise<EmploymentUpdateResponse> {
25
- return this._client.put(path`/sandbox/employment/${individualID}`, { body, ...options });
25
+ return this._client.put(path`/sandbox/employment/${individualID}`, {
26
+ body,
27
+ ...options,
28
+ __security: { bearerAuth: true },
29
+ });
26
30
  }
27
31
  }
28
32
 
@@ -74,6 +78,12 @@ export interface EmploymentUpdateResponse {
74
78
  */
75
79
  first_name?: string | null;
76
80
 
81
+ /**
82
+ * The FLSA status of the individual. Available options: `exempt`, `non_exempt`,
83
+ * `unknown`.
84
+ */
85
+ flsa_status?: 'exempt' | 'non_exempt' | 'unknown' | null;
86
+
77
87
  /**
78
88
  * The employee's income as reported by the provider. This may not always be
79
89
  * annualized income, but may be in units of bi-weekly, semi-monthly, daily, etc,
@@ -210,6 +220,12 @@ export interface EmploymentUpdateParams {
210
220
  */
211
221
  first_name?: string | null;
212
222
 
223
+ /**
224
+ * The FLSA status of the individual. Available options: `exempt`, `non_exempt`,
225
+ * `unknown`.
226
+ */
227
+ flsa_status?: 'exempt' | 'non_exempt' | 'unknown' | null;
228
+
213
229
  /**
214
230
  * The employee's income as reported by the provider. This may not always be
215
231
  * annualized income, but may be in units of bi-weekly, semi-monthly, daily, etc,
@@ -22,7 +22,11 @@ export class Individual extends APIResource {
22
22
  body: IndividualUpdateParams | null | undefined = {},
23
23
  options?: RequestOptions,
24
24
  ): APIPromise<IndividualUpdateResponse> {
25
- return this._client.put(path`/sandbox/individual/${individualID}`, { body, ...options });
25
+ return this._client.put(path`/sandbox/individual/${individualID}`, {
26
+ body,
27
+ ...options,
28
+ __security: { bearerAuth: true },
29
+ });
26
30
  }
27
31
  }
28
32
 
@@ -15,7 +15,7 @@ export class Configuration extends APIResource {
15
15
  * ```
16
16
  */
17
17
  retrieve(options?: RequestOptions): APIPromise<ConfigurationRetrieveResponse> {
18
- return this._client.get('/sandbox/jobs/configuration', options);
18
+ return this._client.get('/sandbox/jobs/configuration', { ...options, __security: { bearerAuth: true } });
19
19
  }
20
20
 
21
21
  /**
@@ -31,7 +31,11 @@ export class Configuration extends APIResource {
31
31
  * ```
32
32
  */
33
33
  update(body: ConfigurationUpdateParams, options?: RequestOptions): APIPromise<SandboxJobConfiguration> {
34
- return this._client.put('/sandbox/jobs/configuration', { body, ...options });
34
+ return this._client.put('/sandbox/jobs/configuration', {
35
+ body,
36
+ ...options,
37
+ __security: { bearerAuth: true },
38
+ });
35
39
  }
36
40
  }
37
41
 
@@ -25,7 +25,7 @@ export class Jobs extends APIResource {
25
25
  * ```
26
26
  */
27
27
  create(body: JobCreateParams, options?: RequestOptions): APIPromise<JobCreateResponse> {
28
- return this._client.post('/sandbox/jobs', { body, ...options });
28
+ return this._client.post('/sandbox/jobs', { body, ...options, __security: { bearerAuth: true } });
29
29
  }
30
30
  }
31
31
 
@@ -17,7 +17,7 @@ export class Payment extends APIResource {
17
17
  body: PaymentCreateParams | null | undefined = {},
18
18
  options?: RequestOptions,
19
19
  ): APIPromise<PaymentCreateResponse> {
20
- return this._client.post('/sandbox/payment', { body, ...options });
20
+ return this._client.post('/sandbox/payment', { body, ...options, __security: { bearerAuth: true } });
21
21
  }
22
22
  }
23
23
 
@@ -576,6 +576,11 @@ export interface BaseWebhookEvent {
576
576
  * Unique Finch ID of the connection associated with the webhook event.
577
577
  */
578
578
  connection_id?: string;
579
+
580
+ /**
581
+ * Unique Finch id of the entity for which data has been updated.
582
+ */
583
+ entity_id?: string;
579
584
  }
580
585
 
581
586
  export interface CompanyEvent extends BaseWebhookEvent {
@@ -638,7 +643,10 @@ export interface JobCompletionEvent extends BaseWebhookEvent {
638
643
  | 'job.benefit_register.completed'
639
644
  | 'job.benefit_unenroll.completed'
640
645
  | 'job.benefit_update.completed'
641
- | 'job.data_sync_all.completed';
646
+ | 'job.data_sync_all.completed'
647
+ | 'job.w4_form_employee_sync.completed'
648
+ | 'job.initial_data_sync_org.succeeded'
649
+ | 'job.initial_data_sync_payroll.succeeded';
642
650
  }
643
651
 
644
652
  export namespace JobCompletionEvent {
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '8.2.1'; // x-release-please-version
1
+ export const VERSION = '9.8.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "8.2.1";
1
+ export declare const VERSION = "9.8.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "8.2.1";
1
+ export declare const VERSION = "9.8.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 = '8.2.1'; // x-release-please-version
4
+ exports.VERSION = '9.8.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '8.2.1'; // x-release-please-version
1
+ export const VERSION = '9.8.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map