@tryfinch/finch-api 4.2.1 → 5.1.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 (204) hide show
  1. package/CHANGELOG.md +57 -0
  2. package/README.md +33 -0
  3. package/_shims/{ReadableStream.node.d.ts → ReadableStream-node.d.ts} +1 -1
  4. package/_shims/ReadableStream-node.d.ts.map +1 -0
  5. package/_shims/{ReadableStream.node.js → ReadableStream-node.js} +1 -1
  6. package/_shims/ReadableStream-node.js.map +1 -0
  7. package/_shims/{ReadableStream.node.mjs → ReadableStream-node.mjs} +1 -1
  8. package/_shims/ReadableStream-node.mjs.map +1 -0
  9. package/_shims/{agent.node.d.ts → agent-node.d.ts} +1 -1
  10. package/_shims/agent-node.d.ts.map +1 -0
  11. package/_shims/{agent.node.js → agent-node.js} +1 -1
  12. package/_shims/{agent.node.js.map → agent-node.js.map} +1 -1
  13. package/_shims/{agent.node.mjs → agent-node.mjs} +1 -1
  14. package/_shims/{agent.node.mjs.map → agent-node.mjs.map} +1 -1
  15. package/_shims/agent.d.ts +1 -1
  16. package/_shims/agent.js +1 -1
  17. package/_shims/agent.mjs +1 -1
  18. package/_shims/{fileFromPath.node.d.ts → fileFromPath-node.d.ts} +2 -2
  19. package/_shims/{fileFromPath.node.d.ts.map → fileFromPath-node.d.ts.map} +1 -1
  20. package/_shims/{fileFromPath.node.js → fileFromPath-node.js} +1 -1
  21. package/_shims/{fileFromPath.node.js.map → fileFromPath-node.js.map} +1 -1
  22. package/_shims/{fileFromPath.node.mjs → fileFromPath-node.mjs} +1 -1
  23. package/_shims/{fileFromPath.node.mjs.map → fileFromPath-node.mjs.map} +1 -1
  24. package/_shims/fileFromPath.d.ts +2 -2
  25. package/_shims/fileFromPath.d.ts.map +1 -1
  26. package/_shims/fileFromPath.js +1 -1
  27. package/_shims/fileFromPath.mjs +1 -1
  28. package/_shims/{getMultipartRequestOptions.node.d.ts → getMultipartRequestOptions-node.d.ts} +2 -2
  29. package/_shims/getMultipartRequestOptions-node.d.ts.map +1 -0
  30. package/_shims/{getMultipartRequestOptions.node.js → getMultipartRequestOptions-node.js} +1 -1
  31. package/_shims/{getMultipartRequestOptions.node.js.map → getMultipartRequestOptions-node.js.map} +1 -1
  32. package/_shims/{getMultipartRequestOptions.node.mjs → getMultipartRequestOptions-node.mjs} +1 -1
  33. package/_shims/{getMultipartRequestOptions.node.mjs.map → getMultipartRequestOptions-node.mjs.map} +1 -1
  34. package/_shims/getMultipartRequestOptions.d.ts +1 -1
  35. package/_shims/getMultipartRequestOptions.d.ts.map +1 -1
  36. package/_shims/{node-readable.node.d.ts → node-readable-node.d.ts} +1 -1
  37. package/_shims/{node-readable.node.d.ts.map → node-readable-node.d.ts.map} +1 -1
  38. package/_shims/{node-readable.node.js → node-readable-node.js} +1 -1
  39. package/_shims/node-readable-node.js.map +1 -0
  40. package/_shims/{node-readable.node.mjs → node-readable-node.mjs} +1 -1
  41. package/_shims/node-readable-node.mjs.map +1 -0
  42. package/core.d.ts +3 -2
  43. package/core.d.ts.map +1 -1
  44. package/core.js +3 -1
  45. package/core.js.map +1 -1
  46. package/core.mjs +1 -1
  47. package/core.mjs.map +1 -1
  48. package/error.d.ts +1 -1
  49. package/error.d.ts.map +1 -1
  50. package/error.js +2 -2
  51. package/error.js.map +1 -1
  52. package/error.mjs +2 -2
  53. package/error.mjs.map +1 -1
  54. package/index.d.mts +8 -3
  55. package/index.d.ts +8 -3
  56. package/index.d.ts.map +1 -1
  57. package/index.js +11 -5
  58. package/index.js.map +1 -1
  59. package/index.mjs +11 -5
  60. package/index.mjs.map +1 -1
  61. package/package.json +9 -4
  62. package/resources/hris/benefits/benefits.d.ts +1 -1
  63. package/resources/hris/benefits/benefits.d.ts.map +1 -1
  64. package/resources/hris/benefits/index.d.ts +1 -1
  65. package/resources/hris/benefits/index.d.ts.map +1 -1
  66. package/resources/hris/benefits/individuals.d.ts +5 -5
  67. package/resources/hris/benefits/individuals.d.ts.map +1 -1
  68. package/resources/hris/benefits/individuals.js +2 -2
  69. package/resources/hris/benefits/individuals.js.map +1 -1
  70. package/resources/hris/benefits/individuals.mjs +2 -2
  71. package/resources/hris/benefits/individuals.mjs.map +1 -1
  72. package/resources/hris/{individuals/employment-data.d.ts → employments.d.ts} +12 -12
  73. package/resources/hris/employments.d.ts.map +1 -0
  74. package/resources/hris/employments.js +27 -0
  75. package/resources/hris/employments.js.map +1 -0
  76. package/resources/hris/{individuals/employment-data.mjs → employments.mjs} +5 -8
  77. package/resources/hris/employments.mjs.map +1 -0
  78. package/resources/hris/hris.d.ts +20 -13
  79. package/resources/hris/hris.d.ts.map +1 -1
  80. package/resources/hris/hris.js +12 -8
  81. package/resources/hris/hris.js.map +1 -1
  82. package/resources/hris/hris.mjs +12 -8
  83. package/resources/hris/hris.mjs.map +1 -1
  84. package/resources/hris/index.d.ts +10 -3
  85. package/resources/hris/index.d.ts.map +1 -1
  86. package/resources/hris/index.js +23 -8
  87. package/resources/hris/index.js.map +1 -1
  88. package/resources/hris/index.mjs +3 -2
  89. package/resources/hris/index.mjs.map +1 -1
  90. package/resources/hris/{individuals/individuals.d.ts → individuals.d.ts} +5 -13
  91. package/resources/hris/individuals.d.ts.map +1 -0
  92. package/resources/hris/individuals.js +24 -0
  93. package/resources/hris/individuals.js.map +1 -0
  94. package/resources/hris/{individuals/individuals.mjs → individuals.mjs} +3 -12
  95. package/resources/hris/individuals.mjs.map +1 -0
  96. package/resources/hris/pay-statements.d.ts +4 -4
  97. package/resources/hris/pay-statements.d.ts.map +1 -1
  98. package/resources/hris/pay-statements.js +4 -4
  99. package/resources/hris/pay-statements.js.map +1 -1
  100. package/resources/hris/pay-statements.mjs +2 -2
  101. package/resources/hris/pay-statements.mjs.map +1 -1
  102. package/resources/index.d.ts +1 -0
  103. package/resources/index.d.ts.map +1 -1
  104. package/resources/index.js +14 -1
  105. package/resources/index.js.map +1 -1
  106. package/resources/index.mjs +1 -0
  107. package/resources/index.mjs.map +1 -1
  108. package/resources/webhooks.d.ts +22 -0
  109. package/resources/webhooks.d.ts.map +1 -0
  110. package/resources/webhooks.js +118 -0
  111. package/resources/webhooks.js.map +1 -0
  112. package/resources/webhooks.mjs +114 -0
  113. package/resources/webhooks.mjs.map +1 -0
  114. package/src/_shims/ReadableStream.d.ts +5 -5
  115. package/src/_shims/agent.ts +1 -1
  116. package/src/_shims/{fetch.node.d.ts → fetch-node.d.ts} +8 -8
  117. package/src/_shims/fetch.d.ts +10 -10
  118. package/src/_shims/{fileFromPath.node.ts → fileFromPath-node.ts} +1 -1
  119. package/src/_shims/fileFromPath.ts +2 -2
  120. package/src/_shims/{formdata.node.d.ts → form-data-node.d.ts} +4 -4
  121. package/src/_shims/{formdata.d.ts → form-data.d.ts} +4 -4
  122. package/src/_shims/{getMultipartRequestOptions.node.ts → getMultipartRequestOptions-node.ts} +3 -3
  123. package/src/_shims/getMultipartRequestOptions.ts +3 -3
  124. package/src/core.ts +12 -11
  125. package/src/error.ts +3 -3
  126. package/src/index.ts +20 -10
  127. package/src/pagination.ts +3 -3
  128. package/src/resource.ts +1 -1
  129. package/src/resources/account.ts +3 -3
  130. package/src/resources/ats/applications.ts +6 -6
  131. package/src/resources/ats/ats.ts +7 -7
  132. package/src/resources/ats/candidates.ts +5 -5
  133. package/src/resources/ats/index.ts +6 -6
  134. package/src/resources/ats/jobs.ts +5 -5
  135. package/src/resources/ats/offers.ts +5 -5
  136. package/src/resources/ats/stages.ts +4 -4
  137. package/src/resources/hris/benefits/benefits.ts +7 -7
  138. package/src/resources/hris/benefits/index.ts +3 -3
  139. package/src/resources/hris/benefits/individuals.ts +14 -14
  140. package/src/resources/hris/company.ts +4 -4
  141. package/src/resources/hris/directory.ts +5 -5
  142. package/src/resources/hris/{individuals/employment-data.ts → employments.ts} +17 -17
  143. package/src/resources/hris/hris.ts +29 -21
  144. package/src/resources/hris/index.ts +16 -9
  145. package/src/resources/hris/{individuals/individuals.ts → individuals.ts} +13 -23
  146. package/src/resources/hris/pay-statements.ts +11 -11
  147. package/src/resources/hris/payments.ts +5 -5
  148. package/src/resources/index.ts +6 -5
  149. package/src/resources/providers.ts +4 -4
  150. package/src/resources/webhooks.ts +151 -0
  151. package/src/tsconfig.json +11 -0
  152. package/src/uploads.ts +6 -6
  153. package/src/version.ts +1 -1
  154. package/uploads.d.ts +1 -1
  155. package/uploads.d.ts.map +1 -1
  156. package/uploads.js +4 -4
  157. package/uploads.js.map +1 -1
  158. package/uploads.mjs +1 -1
  159. package/uploads.mjs.map +1 -1
  160. package/version.d.ts +1 -1
  161. package/version.js +1 -1
  162. package/version.mjs +1 -1
  163. package/_shims/ReadableStream.node.d.ts.map +0 -1
  164. package/_shims/ReadableStream.node.js.map +0 -1
  165. package/_shims/ReadableStream.node.mjs.map +0 -1
  166. package/_shims/agent.node.d.ts.map +0 -1
  167. package/_shims/getMultipartRequestOptions.node.d.ts.map +0 -1
  168. package/_shims/node-readable.node.js.map +0 -1
  169. package/_shims/node-readable.node.mjs.map +0 -1
  170. package/resources/hris/individuals/employment-data.d.ts.map +0 -1
  171. package/resources/hris/individuals/employment-data.js +0 -70
  172. package/resources/hris/individuals/employment-data.js.map +0 -1
  173. package/resources/hris/individuals/employment-data.mjs.map +0 -1
  174. package/resources/hris/individuals/index.d.ts +0 -14
  175. package/resources/hris/individuals/index.d.ts.map +0 -1
  176. package/resources/hris/individuals/index.js +0 -35
  177. package/resources/hris/individuals/index.js.map +0 -1
  178. package/resources/hris/individuals/index.mjs +0 -4
  179. package/resources/hris/individuals/index.mjs.map +0 -1
  180. package/resources/hris/individuals/individuals.d.ts.map +0 -1
  181. package/resources/hris/individuals/individuals.js +0 -73
  182. package/resources/hris/individuals/individuals.js.map +0 -1
  183. package/resources/hris/individuals/individuals.mjs.map +0 -1
  184. package/src/_shims/fetch.deno.ts +0 -23
  185. package/src/_shims/formdata.deno.ts +0 -16
  186. package/src/resources/hris/individuals/index.ts +0 -15
  187. /package/_shims/{fetch.node.d.ts → fetch-node.d.ts} +0 -0
  188. /package/_shims/{fetch.node.js → fetch-node.js} +0 -0
  189. /package/_shims/{fetch.node.mjs → fetch-node.mjs} +0 -0
  190. /package/_shims/{formdata.node.d.ts → form-data-node.d.ts} +0 -0
  191. /package/_shims/{formdata.node.js → form-data-node.js} +0 -0
  192. /package/_shims/{formdata.node.mjs → form-data-node.mjs} +0 -0
  193. /package/_shims/{formdata.d.ts → form-data.d.ts} +0 -0
  194. /package/_shims/{formdata.js → form-data.js} +0 -0
  195. /package/_shims/{formdata.mjs → form-data.mjs} +0 -0
  196. /package/src/_shims/{ReadableStream.node.ts → ReadableStream-node.ts} +0 -0
  197. /package/src/_shims/{agent.node.ts → agent-node.ts} +0 -0
  198. /package/src/_shims/{fetch.node.js → fetch-node.js} +0 -0
  199. /package/src/_shims/{fetch.node.mjs → fetch-node.mjs} +0 -0
  200. /package/src/_shims/{formdata.node.js → form-data-node.js} +0 -0
  201. /package/src/_shims/{formdata.node.mjs → form-data-node.mjs} +0 -0
  202. /package/src/_shims/{formdata.js → form-data.js} +0 -0
  203. /package/src/_shims/{formdata.mjs → form-data.mjs} +0 -0
  204. /package/src/_shims/{node-readable.node.ts → node-readable-node.ts} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webhooks.mjs","sourceRoot":"","sources":["../src/resources/webhooks.ts"],"names":[],"mappings":"AAAA,qDAAqD;OAE9C,EAAE,WAAW,EAAE,MAAM,8BAA8B;OACnD,EAAE,UAAU,EAAE,MAAM,QAAQ;OAC5B,EAAE,SAAS,EAAe,MAAM,0BAA0B;AAEjE,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,MAAM,CACJ,OAAe,EACf,OAAoB,EACpB,SAAoC,IAAI,CAAC,MAAM,CAAC,aAAa;QAE7D,IAAI,CAAC,eAAe,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;QAC/C,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAC7B,CAAC;IAEO,WAAW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K,MAAM,kBAAkB,IAAI,gBAAgB,EAAE;YACjD,MAAM,CAAC,OAAO,EAAE,SAAS,CAAC,GAAG,kBAAkB,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YAC3D,IAAI,OAAO,KAAK,IAAI,EAAE;gBACpB,SAAS;aACV;YAED,IAAI,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,EAAE;gBACtF,SAAS;gBACT,OAAO;aACR;SACF;QAED,MAAM,IAAI,KAAK,CAAC,mEAAmE,CAAC,CAAC;IACvF,CAAC;CACF"}
@@ -11,7 +11,7 @@
11
11
  */
12
12
 
13
13
  // @ts-ignore
14
- type _ReadableStream<R = any> = unknown extends ReadableStream ? never : ReadableStream<R>;
14
+ type _ReadableStream<R = any> = ReadableStream<R>;
15
15
  declare const _ReadableStream: {
16
16
  prototype: _ReadableStream;
17
17
  new (
@@ -26,13 +26,13 @@ declare const _ReadableStream: {
26
26
  };
27
27
 
28
28
  // @ts-ignore
29
- type _UnderlyingSource<R = any> = unknown extends UnderlyingSource ? never : UnderlyingSource<R>;
29
+ type _UnderlyingSource<R = any> = UnderlyingSource<R>;
30
30
  // @ts-ignore
31
- type _UnderlyingByteSource = unknown extends UnderlyingByteSource ? never : UnderlyingByteSource;
31
+ type _UnderlyingByteSource = UnderlyingByteSource;
32
32
  type _UnderlyingDefaultSource<R = any> =
33
33
  // @ts-ignore
34
- unknown extends UnderlyingDefaultSource ? never : UnderlyingDefaultSource<R>;
34
+ UnderlyingDefaultSource<R>;
35
35
  // @ts-ignore
36
- type _QueuingStrategy<R = any> = unknown extends QueuingStrategy ? never : QueuingStrategy<R>;
36
+ type _QueuingStrategy<R = any> = QueuingStrategy<R>;
37
37
 
38
38
  export { _ReadableStream as ReadableStream };
@@ -2,7 +2,7 @@
2
2
  * Disclaimer: modules in _shims aren't intended to be imported by SDK users.
3
3
  *
4
4
  * This is a stub for non-node environments.
5
- * In node environments, it gets replaced agent.node.ts by the package export map
5
+ * In node environments, it gets replaced agent-node.ts by the package export map
6
6
  */
7
7
 
8
8
  export type Agent = any;
@@ -17,26 +17,26 @@ import * as nf from 'node-fetch';
17
17
  // @ts-ignore
18
18
  type _fetch = unknown extends typeof fetch ? typeof nf.default : typeof fetch;
19
19
  // @ts-ignore
20
- type _Request = unknown extends Request ? nf.Request : Request;
20
+ type _Request = Request;
21
21
  // @ts-ignore
22
- type _RequestInfo = unknown extends RequestInfo ? nf.RequestInfo : RequestInfo;
22
+ type _RequestInfo = RequestInfo;
23
23
  // @ts-ignore
24
- type _RequestInit = unknown extends RequestInit ? nf.RequestInit : RequestInit;
24
+ type _RequestInit = RequestInit;
25
25
  // @ts-ignore
26
- type _Response = unknown extends Response ? nf.Response : Response;
26
+ type _Response = Response;
27
27
  // @ts-ignore
28
- type _ResponseInit = unknown extends ResponseInit ? nf.ResponseInit : ResponseInit;
28
+ type _ResponseInit = ResponseInit;
29
29
  type _ResponseType =
30
30
  // @ts-ignore
31
31
  unknown extends ResponseType ? 'basic' | 'cors' | 'default' | 'error' | 'opaque' | 'opaqueredirect'
32
32
  : // @ts-ignore
33
33
  ResponseType;
34
34
  // @ts-ignore
35
- type _BodyInit = unknown extends BodyInit ? nf.BodyInit : BodyInit;
35
+ type _BodyInit = BodyInit;
36
36
  // @ts-ignore
37
- type _Headers = unknown extends Headers ? nf.Headers : Headers;
37
+ type _Headers = Headers;
38
38
  // @ts-ignore
39
- type _HeadersInit = unknown extends HeadersInit ? nf.HeadersInit : HeadersInit;
39
+ type _HeadersInit = HeadersInit;
40
40
 
41
41
  declare const _fetch: _fetch;
42
42
  declare const _Request: {
@@ -14,25 +14,25 @@
14
14
  */
15
15
 
16
16
  // @ts-ignore
17
- type _fetch = unknown extends typeof fetch ? never : typeof fetch;
17
+ type _fetch = typeof fetch;
18
18
  // @ts-ignore
19
- type _Request = unknown extends Request ? never : Request;
19
+ type _Request = Request;
20
20
  // @ts-ignore
21
- type _RequestInfo = unknown extends RequestInfo ? never : RequestInfo;
21
+ type _RequestInfo = RequestInfo;
22
22
  // @ts-ignore
23
- type _RequestInit = unknown extends RequestInit ? never : RequestInit;
23
+ type _RequestInit = RequestInit;
24
24
  // @ts-ignore
25
- type _Response = unknown extends Response ? never : Response;
25
+ type _Response = Response;
26
26
  // @ts-ignore
27
- type _ResponseInit = unknown extends ResponseInit ? never : ResponseInit;
27
+ type _ResponseInit = ResponseInit;
28
28
  // @ts-ignore
29
- type _ResponseType = unknown extends ResponseType ? never : ResponseType;
29
+ type _ResponseType = ResponseType;
30
30
  // @ts-ignore
31
- type _BodyInit = unknown extends BodyInit ? never : BodyInit;
31
+ type _BodyInit = BodyInit;
32
32
  // @ts-ignore
33
- type _Headers = unknown extends Headers ? never : Headers;
33
+ type _Headers = Headers;
34
34
  // @ts-ignore
35
- type _HeadersInit = unknown extends HeadersInit ? never : HeadersInit;
35
+ type _HeadersInit = HeadersInit;
36
36
 
37
37
  declare const _fetch: _fetch;
38
38
  declare const _Request: {
@@ -3,7 +3,7 @@
3
3
  */
4
4
 
5
5
  import { fileFromPath as _fileFromPath } from 'formdata-node/file-from-path';
6
- import type { File, FilePropertyBag } from './formdata.node.js';
6
+ import type { File, FilePropertyBag } from './form-data-node.js';
7
7
 
8
8
  export type FileFromPathOptions = Omit<FilePropertyBag, 'lastModified'>;
9
9
 
@@ -1,11 +1,11 @@
1
1
  /**
2
2
  * Disclaimer: modules in _shims aren't intended to be imported by SDK users.
3
3
  *
4
- * This is a stub that gets replaced by fileFromPath.node.js for node environments
4
+ * This is a stub that gets replaced by fileFromPath-node.js for node environments
5
5
  * in the package export map
6
6
  */
7
7
 
8
- import type { FilePropertyBag, File } from './formdata.js';
8
+ import type { FilePropertyBag, File } from './form-data.js';
9
9
 
10
10
  export type FileFromPathOptions = Omit<FilePropertyBag, 'lastModified'>;
11
11
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  import * as fd from 'formdata-node';
6
6
 
7
- import type { BlobPart } from '../uploads';
7
+ import type { BlobPart } from '../uploads.js';
8
8
 
9
9
  type EndingType = 'native' | 'transparent';
10
10
 
@@ -21,11 +21,11 @@ export interface FilePropertyBag extends BlobPropertyBag {
21
21
  // Use builtin web types if present; else formdata-node types
22
22
 
23
23
  // @ts-ignore
24
- type _FormData = unknown extends FormData ? fd.FormData : FormData;
24
+ type _FormData = FormData;
25
25
  // @ts-ignore
26
- type _File = unknown extends File ? fd.File : File;
26
+ type _File = File;
27
27
  // @ts-ignore
28
- type _Blob = unknown extends Blob ? fd.Blob : Blob;
28
+ type _Blob = Blob;
29
29
 
30
30
  declare const _FormData: {
31
31
  new (form?: any): _FormData;
@@ -2,7 +2,7 @@
2
2
  * Disclaimer: modules in _shims aren't intended to be imported by SDK users.
3
3
  */
4
4
 
5
- import type { BlobPart } from '../uploads';
5
+ import type { BlobPart } from '../uploads.js';
6
6
 
7
7
  type EndingType = 'native' | 'transparent';
8
8
 
@@ -19,11 +19,11 @@ export interface FilePropertyBag extends BlobPropertyBag {
19
19
  // add appropriate lib or types to tsconfig)
20
20
 
21
21
  // @ts-ignore
22
- type _FormData = unknown extends FormData ? never : FormData;
22
+ type _FormData = FormData;
23
23
  // @ts-ignore
24
- type _File = unknown extends File ? never : File;
24
+ type _File = File;
25
25
  // @ts-ignore
26
- type _Blob = unknown extends Blob ? never : Blob;
26
+ type _Blob = Blob;
27
27
 
28
28
  declare const _FormData: {
29
29
  new (form?: any): _FormData;
@@ -2,11 +2,11 @@
2
2
  * Disclaimer: modules in _shims aren't intended to be imported by SDK users.
3
3
  */
4
4
 
5
- import { FormData } from './formdata.node.js';
6
- import type { RequestOptions } from '../core';
5
+ import { FormData } from './form-data-node.js';
6
+ import type { RequestOptions } from '../core.js';
7
7
  import { Readable } from 'node:stream';
8
8
  import { FormDataEncoder } from 'form-data-encoder';
9
- import { MultipartBody } from '../uploads';
9
+ import { MultipartBody } from '../uploads.js';
10
10
 
11
11
  export async function getMultipartRequestOptions<T extends {} = Record<string, unknown>>(
12
12
  form: FormData,
@@ -2,9 +2,9 @@
2
2
  * Disclaimer: modules in _shims aren't intended to be imported by SDK users.
3
3
  */
4
4
 
5
- import { FormData } from './formdata.js';
6
- import type { RequestOptions } from '../core';
7
- import { MultipartBody } from '../uploads';
5
+ import { FormData } from './form-data.js';
6
+ import type { RequestOptions } from '../core.js';
7
+ import { MultipartBody } from '../uploads.js';
8
8
 
9
9
  export async function getMultipartRequestOptions<T extends {} = Record<string, unknown>>(
10
10
  form: FormData,
package/src/core.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { VERSION } from './version';
2
- import { APIError, APIConnectionError, APIConnectionTimeoutError, APIUserAbortError } from './error';
3
- import type { Readable } from './_shims/node-readable';
4
- import { getDefaultAgent, type Agent } from './_shims/agent';
1
+ import { VERSION } from './version.js';
2
+ import { APIError, APIConnectionError, APIConnectionTimeoutError, APIUserAbortError } from './error.js';
3
+ import type { Readable } from './_shims/node-readable.js';
4
+ import { getDefaultAgent, type Agent } from './_shims/agent.js';
5
5
  import {
6
6
  fetch,
7
7
  isPolyfilled as fetchIsPolyfilled,
@@ -11,13 +11,13 @@ import {
11
11
  type HeadersInit,
12
12
  } from './_shims/fetch.js';
13
13
  export { type Response };
14
- import { isMultipartBody } from './uploads';
14
+ import { isMultipartBody } from './uploads.js';
15
15
  export {
16
16
  maybeMultipartFormRequestOptions,
17
17
  multipartFormRequestOptions,
18
18
  createForm,
19
19
  type Uploadable,
20
- } from './uploads';
20
+ } from './uploads.js';
21
21
 
22
22
  const MAX_RETRIES = 2;
23
23
 
@@ -45,7 +45,7 @@ async function defaultParseResponse<T>(props: APIResponseProps): Promise<T> {
45
45
  // TODO handle blob, arraybuffer, other content types, etc.
46
46
  const text = await response.text();
47
47
  debug('response', response.status, response.url, response.headers, text);
48
- return text as T;
48
+ return text as any as T;
49
49
  }
50
50
 
51
51
  /**
@@ -306,7 +306,8 @@ export abstract class APIClient {
306
306
  protected parseHeaders(headers: HeadersInit | null | undefined): Record<string, string> {
307
307
  return (
308
308
  !headers ? {}
309
- : Symbol.iterator in headers ? Object.fromEntries(Array.from(headers).map((header) => [...header]))
309
+ : Symbol.iterator in headers ?
310
+ Object.fromEntries(Array.from(headers as Iterable<string[]>).map((header) => [...header]))
310
311
  : { ...headers }
311
312
  );
312
313
  }
@@ -390,7 +391,7 @@ export abstract class APIClient {
390
391
  return new PagePromise<PageClass, Item>(this, request, Page);
391
392
  }
392
393
 
393
- buildURL<Req>(path: string, query: Req | undefined): string {
394
+ buildURL<Req extends Record<string, unknown>>(path: string, query: Req | null | undefined): string {
394
395
  const url =
395
396
  isAbsoluteURL(path) ?
396
397
  new URL(path)
@@ -568,7 +569,7 @@ export abstract class AbstractPage<Item> implements AsyncIterable<Item> {
568
569
  return this.nextPageInfo() != null;
569
570
  }
570
571
 
571
- async getNextPage(): Promise<AbstractPage<Item>> {
572
+ async getNextPage(): Promise<this> {
572
573
  const nextInfo = this.nextPageInfo();
573
574
  if (!nextInfo) {
574
575
  throw new Error(
@@ -893,7 +894,7 @@ const isAbsoluteURL = (url: string): boolean => {
893
894
  return startsWithSchemeRegexp.test(url);
894
895
  };
895
896
 
896
- const sleep = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms));
897
+ export const sleep = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms));
897
898
 
898
899
  const validatePositiveInteger = (name: string, n: unknown): number => {
899
900
  if (typeof n !== 'number' || !Number.isInteger(n)) {
package/src/error.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  // File generated from our OpenAPI spec by Stainless.
2
2
 
3
- import { castToError, Headers } from './core';
3
+ import { castToError, Headers } from './core.js';
4
4
 
5
5
  export class APIError extends Error {
6
6
  readonly status: number | undefined;
@@ -97,8 +97,8 @@ export class APIConnectionError extends APIError {
97
97
  }
98
98
 
99
99
  export class APIConnectionTimeoutError extends APIConnectionError {
100
- constructor() {
101
- super({ message: 'Request timed out.' });
100
+ constructor({ message }: { message?: string } = {}) {
101
+ super({ message: message ?? 'Request timed out.' });
102
102
  }
103
103
  }
104
104
 
package/src/index.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  // File generated from our OpenAPI spec by Stainless.
2
2
 
3
- import * as Core from './core';
4
- import * as Pagination from './pagination';
5
- import * as API from './resources/index';
6
- import * as Errors from './error';
7
- import type { Agent } from './_shims/agent';
8
- import * as Uploads from './uploads';
3
+ import * as Core from './core.js';
4
+ import * as Pagination from './pagination.js';
5
+ import * as API from './resources/index.js';
6
+ import * as Errors from './error.js';
7
+ import type { Agent } from './_shims/agent.js';
8
+ import * as Uploads from './uploads.js';
9
9
 
10
10
  export interface ClientOptions {
11
11
  /**
@@ -70,6 +70,8 @@ export interface ClientOptions {
70
70
  clientId?: string | null;
71
71
 
72
72
  clientSecret?: string | null;
73
+
74
+ webhookSecret?: string | null;
73
75
  }
74
76
 
75
77
  /** API Client for interfacing with the Finch API. */
@@ -77,6 +79,7 @@ export class Finch extends Core.APIClient {
77
79
  accessToken: string | null;
78
80
  clientId?: string | null;
79
81
  clientSecret?: string | null;
82
+ webhookSecret?: string | null;
80
83
 
81
84
  private _options: ClientOptions;
82
85
 
@@ -93,19 +96,22 @@ export class Finch extends Core.APIClient {
93
96
  * @param {Core.DefaultQuery} opts.defaultQuery - Default query parameters to include with every request to the API.
94
97
  * @param {string | null} [opts.clientId]
95
98
  * @param {string | null} [opts.clientSecret]
99
+ * @param {string | null} [opts.webhookSecret]
96
100
  */
97
101
  constructor({
98
102
  accessToken = null,
99
103
  clientId = Core.readEnv('FINCH_CLIENT_ID') ?? null,
100
104
  clientSecret = Core.readEnv('FINCH_CLIENT_SECRET') ?? null,
105
+ webhookSecret = Core.readEnv('FINCH_WEBHOOK_SECRET') ?? null,
101
106
  ...opts
102
107
  }: ClientOptions = {}) {
103
108
  const options: ClientOptions = {
104
109
  accessToken,
105
110
  clientId,
106
111
  clientSecret,
107
- baseURL: `https://api.tryfinch.com`,
112
+ webhookSecret,
108
113
  ...opts,
114
+ baseURL: opts.baseURL ?? `https://api.tryfinch.com`,
109
115
  };
110
116
 
111
117
  super({
@@ -120,12 +126,14 @@ export class Finch extends Core.APIClient {
120
126
  this.accessToken = accessToken;
121
127
  this.clientId = clientId;
122
128
  this.clientSecret = clientSecret;
129
+ this.webhookSecret = webhookSecret;
123
130
  }
124
131
 
125
- ats: API.ATS = new API.ATS(this);
126
132
  hris: API.HRIS = new API.HRIS(this);
133
+ ats: API.ATS = new API.ATS(this);
127
134
  providers: API.Providers = new API.Providers(this);
128
135
  account: API.Account = new API.Account(this);
136
+ webhooks: API.Webhooks = new API.Webhooks(this);
129
137
 
130
138
  /**
131
139
  * Returns an access token for the Finch API given an authorization code. An
@@ -278,14 +286,14 @@ export namespace Finch {
278
286
  export import OffersPageParams = Pagination.OffersPageParams;
279
287
  export import OffersPageResponse = Pagination.OffersPageResponse;
280
288
 
281
- export import ATS = API.ATS;
282
-
283
289
  export import HRIS = API.HRIS;
284
290
  export import Income = API.Income;
285
291
  export import Location = API.Location;
286
292
  export import Money = API.Money;
287
293
  export import Paging = API.Paging;
288
294
 
295
+ export import ATS = API.ATS;
296
+
289
297
  export import Providers = API.Providers;
290
298
  export import Provider = API.Provider;
291
299
  export import ProvidersSinglePage = API.ProvidersSinglePage;
@@ -293,6 +301,8 @@ export namespace Finch {
293
301
  export import Account = API.Account;
294
302
  export import DisconnectResponse = API.DisconnectResponse;
295
303
  export import Introspection = API.Introspection;
304
+
305
+ export import Webhooks = API.Webhooks;
296
306
  }
297
307
 
298
308
  export default Finch;
package/src/pagination.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  // File generated from our OpenAPI spec by Stainless.
2
2
 
3
- import { AbstractPage, Response, APIClient, FinalRequestOptions, PageInfo } from './core';
4
- import * as HRIS from './resources/hris/index';
5
- import * as ATS from './resources/ats/index';
3
+ import { AbstractPage, Response, APIClient, FinalRequestOptions, PageInfo } from './core.js';
4
+ import * as HRIS from './resources/hris/index.js';
5
+ import * as ATS from './resources/ats/index.js';
6
6
 
7
7
  export type SinglePageResponse<Item> = Item[];
8
8
 
package/src/resource.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  // File generated from our OpenAPI spec by Stainless.
2
2
 
3
- import type { Finch } from './index';
3
+ import type { Finch } from './index.js';
4
4
 
5
5
  export class APIResource {
6
6
  protected client: Finch;
@@ -1,8 +1,8 @@
1
1
  // File generated from our OpenAPI spec by Stainless.
2
2
 
3
- import * as Core from '../core';
4
- import { APIResource } from '../resource';
5
- import * as API from './index';
3
+ import * as Core from '../core.js';
4
+ import { APIResource } from '../resource.js';
5
+ import * as API from './index.js';
6
6
 
7
7
  export class Account extends APIResource {
8
8
  /**
@@ -1,11 +1,11 @@
1
1
  // File generated from our OpenAPI spec by Stainless.
2
2
 
3
- import * as Core from '../../core';
4
- import { APIResource } from '../../resource';
5
- import { isRequestOptions } from '../../core';
6
- import * as Stages from './stages';
7
- import * as API from './index';
8
- import { ApplicationsPage, ApplicationsPageParams } from '../../pagination';
3
+ import * as Core from '../../core.js';
4
+ import { APIResource } from '../../resource.js';
5
+ import { isRequestOptions } from '../../core.js';
6
+ import * as Stages from './stages.js';
7
+ import * as API from './index.js';
8
+ import { ApplicationsPage, ApplicationsPageParams } from '../../pagination.js';
9
9
 
10
10
  export class Applications extends APIResource {
11
11
  /**
@@ -1,12 +1,12 @@
1
1
  // File generated from our OpenAPI spec by Stainless.
2
2
 
3
- import { APIResource } from '../../resource';
4
- import { Candidates } from './candidates';
5
- import { Applications } from './applications';
6
- import { Stages } from './stages';
7
- import { Jobs } from './jobs';
8
- import { Offers } from './offers';
9
- import * as API from './index';
3
+ import { APIResource } from '../../resource.js';
4
+ import { Candidates } from './candidates.js';
5
+ import { Applications } from './applications.js';
6
+ import { Stages } from './stages.js';
7
+ import { Jobs } from './jobs.js';
8
+ import { Offers } from './offers.js';
9
+ import * as API from './index.js';
10
10
 
11
11
  export class ATS extends APIResource {
12
12
  candidates: Candidates = new Candidates(this.client);
@@ -1,10 +1,10 @@
1
1
  // File generated from our OpenAPI spec by Stainless.
2
2
 
3
- import * as Core from '../../core';
4
- import { APIResource } from '../../resource';
5
- import { isRequestOptions } from '../../core';
6
- import * as API from './index';
7
- import { CandidatesPage, CandidatesPageParams } from '../../pagination';
3
+ import * as Core from '../../core.js';
4
+ import { APIResource } from '../../resource.js';
5
+ import { isRequestOptions } from '../../core.js';
6
+ import * as API from './index.js';
7
+ import { CandidatesPage, CandidatesPageParams } from '../../pagination.js';
8
8
 
9
9
  export class Candidates extends APIResource {
10
10
  /**
@@ -1,8 +1,8 @@
1
1
  // File generated from our OpenAPI spec by Stainless.
2
2
 
3
- export { ATS } from './ats';
4
- export { Application, ApplicationListParams, Applications } from './applications';
5
- export { Candidate, CandidateListParams, Candidates } from './candidates';
6
- export { Job, JobListParams, Jobs } from './jobs';
7
- export { Offer, OfferListParams, Offers } from './offers';
8
- export { Stage, StagesSinglePage, Stages } from './stages';
3
+ export { ATS } from './ats.js';
4
+ export { Application, ApplicationListParams, Applications } from './applications.js';
5
+ export { Candidate, CandidateListParams, Candidates } from './candidates.js';
6
+ export { Job, JobListParams, Jobs } from './jobs.js';
7
+ export { Offer, OfferListParams, Offers } from './offers.js';
8
+ export { Stage, StagesSinglePage, Stages } from './stages.js';
@@ -1,10 +1,10 @@
1
1
  // File generated from our OpenAPI spec by Stainless.
2
2
 
3
- import * as Core from '../../core';
4
- import { APIResource } from '../../resource';
5
- import { isRequestOptions } from '../../core';
6
- import * as API from './index';
7
- import { JobsPage, JobsPageParams } from '../../pagination';
3
+ import * as Core from '../../core.js';
4
+ import { APIResource } from '../../resource.js';
5
+ import { isRequestOptions } from '../../core.js';
6
+ import * as API from './index.js';
7
+ import { JobsPage, JobsPageParams } from '../../pagination.js';
8
8
 
9
9
  export class Jobs extends APIResource {
10
10
  /**
@@ -1,10 +1,10 @@
1
1
  // File generated from our OpenAPI spec by Stainless.
2
2
 
3
- import * as Core from '../../core';
4
- import { APIResource } from '../../resource';
5
- import { isRequestOptions } from '../../core';
6
- import * as API from './index';
7
- import { OffersPage, OffersPageParams } from '../../pagination';
3
+ import * as Core from '../../core.js';
4
+ import { APIResource } from '../../resource.js';
5
+ import { isRequestOptions } from '../../core.js';
6
+ import * as API from './index.js';
7
+ import { OffersPage, OffersPageParams } from '../../pagination.js';
8
8
 
9
9
  export class Offers extends APIResource {
10
10
  /**
@@ -1,9 +1,9 @@
1
1
  // File generated from our OpenAPI spec by Stainless.
2
2
 
3
- import * as Core from '../../core';
4
- import { APIResource } from '../../resource';
5
- import * as API from './index';
6
- import { SinglePage } from '../../pagination';
3
+ import * as Core from '../../core.js';
4
+ import { APIResource } from '../../resource.js';
5
+ import * as API from './index.js';
6
+ import { SinglePage } from '../../pagination.js';
7
7
 
8
8
  export class Stages extends APIResource {
9
9
  /**
@@ -1,11 +1,11 @@
1
1
  // File generated from our OpenAPI spec by Stainless.
2
2
 
3
- import * as Core from '../../../core';
4
- import { APIResource } from '../../../resource';
5
- import { isRequestOptions } from '../../../core';
6
- import { Individuals } from './individuals';
7
- import * as API from './index';
8
- import { SinglePage } from '../../../pagination';
3
+ import * as Core from '../../../core.js';
4
+ import { APIResource } from '../../../resource.js';
5
+ import { isRequestOptions } from '../../../core.js';
6
+ import { Individuals } from './individuals.js';
7
+ import * as API from './index.js';
8
+ import { SinglePage } from '../../../pagination.js';
9
9
 
10
10
  export class Benefits extends APIResource {
11
11
  individuals: Individuals = new Individuals(this.client);
@@ -240,5 +240,5 @@ export namespace Benefits {
240
240
  export import UnenrolledIndividualsSinglePage = API.UnenrolledIndividualsSinglePage;
241
241
  export import IndividualEnrollManyParams = API.IndividualEnrollManyParams;
242
242
  export import IndividualRetrieveManyBenefitsParams = API.IndividualRetrieveManyBenefitsParams;
243
- export import IndividualUnenrollParams = API.IndividualUnenrollParams;
243
+ export import IndividualUnenrollManyParams = API.IndividualUnenrollManyParams;
244
244
  }
@@ -13,7 +13,7 @@ export {
13
13
  CompanyBenefitsSinglePage,
14
14
  SupportedBenefitsSinglePage,
15
15
  Benefits,
16
- } from './benefits';
16
+ } from './benefits.js';
17
17
  export {
18
18
  EnrolledIndividual,
19
19
  IndividualBenefit,
@@ -21,9 +21,9 @@ export {
21
21
  IndividualEnrolledIDsResponse,
22
22
  IndividualEnrollManyParams,
23
23
  IndividualRetrieveManyBenefitsParams,
24
- IndividualUnenrollParams,
24
+ IndividualUnenrollManyParams,
25
25
  EnrolledIndividualsSinglePage,
26
26
  IndividualBenefitsSinglePage,
27
27
  UnenrolledIndividualsSinglePage,
28
28
  Individuals,
29
- } from './individuals';
29
+ } from './individuals.js';