@tryfinch/finch-api 6.15.0 → 6.15.1

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## 6.15.1 (2025-01-21)
4
+
5
+ Full Changelog: [v6.15.0...v6.15.1](https://github.com/Finch-API/finch-api-node/compare/v6.15.0...v6.15.1)
6
+
7
+ ### Chores
8
+
9
+ * **internal:** add test ([#535](https://github.com/Finch-API/finch-api-node/issues/535)) ([dbff05c](https://github.com/Finch-API/finch-api-node/commit/dbff05c0f375a75906a8ee472de6579fab40db24))
10
+ * **types:** add `| undefined` to client options properties ([#533](https://github.com/Finch-API/finch-api-node/issues/533)) ([4ceb638](https://github.com/Finch-API/finch-api-node/commit/4ceb638bbae80e7d91bc67d3262772c5db4ab7ad))
11
+
12
+
13
+ ### Documentation
14
+
15
+ * update deprecation messages ([#536](https://github.com/Finch-API/finch-api-node/issues/536)) ([6fd8f63](https://github.com/Finch-API/finch-api-node/commit/6fd8f63479a70f2d36d28d29abca22f1e87615d0))
16
+
3
17
  ## 6.15.0 (2025-01-09)
4
18
 
5
19
  Full Changelog: [v6.14.0...v6.15.0](https://github.com/Finch-API/finch-api-node/compare/v6.14.0...v6.15.0)
package/index.d.mts CHANGED
@@ -42,14 +42,14 @@ export interface ClientOptions {
42
42
  * Note that request timeouts are retried by default, so in a worst-case scenario you may wait
43
43
  * much longer than this timeout before the promise succeeds or fails.
44
44
  */
45
- timeout?: number;
45
+ timeout?: number | undefined;
46
46
  /**
47
47
  * An HTTP agent used to manage HTTP(S) connections.
48
48
  *
49
49
  * If not provided, an agent will be constructed by default in the Node.js environment,
50
50
  * otherwise no agent is used.
51
51
  */
52
- httpAgent?: Agent;
52
+ httpAgent?: Agent | undefined;
53
53
  /**
54
54
  * Specify a custom `fetch` function implementation.
55
55
  *
@@ -63,26 +63,26 @@ export interface ClientOptions {
63
63
  *
64
64
  * @default 2
65
65
  */
66
- maxRetries?: number;
66
+ maxRetries?: number | undefined;
67
67
  /**
68
68
  * Default headers to include with every request to the API.
69
69
  *
70
70
  * These can be removed in individual requests by explicitly setting the
71
71
  * header to `undefined` or `null` in request options.
72
72
  */
73
- defaultHeaders?: Core.Headers;
73
+ defaultHeaders?: Core.Headers | undefined;
74
74
  /**
75
75
  * Default query parameters to include with every request to the API.
76
76
  *
77
77
  * These can be removed in individual requests by explicitly setting the
78
78
  * param to `undefined` in request options.
79
79
  */
80
- defaultQuery?: Core.DefaultQuery;
80
+ defaultQuery?: Core.DefaultQuery | undefined;
81
81
  /**
82
82
  * By default, client-side use of this library is not allowed, as it risks exposing your secret API credentials to attackers.
83
83
  * Only set this option to `true` if you understand the risks and have appropriate mitigations in place.
84
84
  */
85
- dangerouslyAllowBrowser?: boolean;
85
+ dangerouslyAllowBrowser?: boolean | undefined;
86
86
  }
87
87
  /**
88
88
  * API Client for interfacing with the Finch API.
package/index.d.ts CHANGED
@@ -42,14 +42,14 @@ export interface ClientOptions {
42
42
  * Note that request timeouts are retried by default, so in a worst-case scenario you may wait
43
43
  * much longer than this timeout before the promise succeeds or fails.
44
44
  */
45
- timeout?: number;
45
+ timeout?: number | undefined;
46
46
  /**
47
47
  * An HTTP agent used to manage HTTP(S) connections.
48
48
  *
49
49
  * If not provided, an agent will be constructed by default in the Node.js environment,
50
50
  * otherwise no agent is used.
51
51
  */
52
- httpAgent?: Agent;
52
+ httpAgent?: Agent | undefined;
53
53
  /**
54
54
  * Specify a custom `fetch` function implementation.
55
55
  *
@@ -63,26 +63,26 @@ export interface ClientOptions {
63
63
  *
64
64
  * @default 2
65
65
  */
66
- maxRetries?: number;
66
+ maxRetries?: number | undefined;
67
67
  /**
68
68
  * Default headers to include with every request to the API.
69
69
  *
70
70
  * These can be removed in individual requests by explicitly setting the
71
71
  * header to `undefined` or `null` in request options.
72
72
  */
73
- defaultHeaders?: Core.Headers;
73
+ defaultHeaders?: Core.Headers | undefined;
74
74
  /**
75
75
  * Default query parameters to include with every request to the API.
76
76
  *
77
77
  * These can be removed in individual requests by explicitly setting the
78
78
  * param to `undefined` in request options.
79
79
  */
80
- defaultQuery?: Core.DefaultQuery;
80
+ defaultQuery?: Core.DefaultQuery | undefined;
81
81
  /**
82
82
  * By default, client-side use of this library is not allowed, as it risks exposing your secret API credentials to attackers.
83
83
  * Only set this option to `true` if you understand the risks and have appropriate mitigations in place.
84
84
  */
85
- dangerouslyAllowBrowser?: boolean;
85
+ dangerouslyAllowBrowser?: boolean | undefined;
86
86
  }
87
87
  /**
88
88
  * API Client for interfacing with the Finch API.
package/index.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAE5C,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAC/B,OAAO,KAAK,MAAM,MAAM,SAAS,CAAC;AAClC,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,OAAO,EACL,KAAK,qBAAqB,EAC1B,uBAAuB,EACvB,KAAK,UAAU,EACf,YAAY,EACZ,qBAAqB,EACrB,kBAAkB,EACnB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,GAAG,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,uBAAuB,EAAE,YAAY,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AAC7G,OAAO,EAAE,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACjF,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjF,OAAO,EACL,iBAAiB,EACjB,8BAA8B,EAC9B,gCAAgC,EACjC,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,kBAAkB,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GAAG,CAAC,gBAAgB,CAAC;IACpD,MAAM,MAAM,sBAAsB,GAAG,GAAG,CAAC,sBAAsB,CAAC;IAChE,MAAM,MAAM,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC;CACjC;AAED,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,EACL,UAAU,EACV,QAAQ,EACR,kBAAkB,EAClB,yBAAyB,EACzB,iBAAiB,EACjB,aAAa,EACb,aAAa,EACb,cAAc,EACd,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,wBAAwB,GACzB,MAAM,SAAS,CAAC;AAEjB,eAAe,KAAK,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryfinch/finch-api",
3
- "version": "6.15.0",
3
+ "version": "6.15.1",
4
4
  "description": "The official TypeScript library for the Finch API",
5
5
  "author": "Finch <founders@tryfinch.com>",
6
6
  "types": "./index.d.ts",
@@ -12,7 +12,7 @@ export interface CreateAccessTokenResponse {
12
12
  */
13
13
  access_token: string;
14
14
  /**
15
- * @deprecated: [DEPRECATED] Use `connection_id` to identify the connection instead
15
+ * @deprecated [DEPRECATED] Use `connection_id` to identify the connection instead
16
16
  * of this account ID.
17
17
  */
18
18
  account_id: string;
@@ -21,7 +21,7 @@ export interface CreateAccessTokenResponse {
21
21
  */
22
22
  client_type: 'production' | 'development' | 'sandbox';
23
23
  /**
24
- * @deprecated: [DEPRECATED] Use `connection_id` to identify the connection instead
24
+ * @deprecated [DEPRECATED] Use `connection_id` to identify the connection instead
25
25
  * of this company ID.
26
26
  */
27
27
  company_id: string;
@@ -19,7 +19,7 @@ export interface DisconnectResponse {
19
19
  }
20
20
  export interface Introspection {
21
21
  /**
22
- * @deprecated: [DEPRECATED] Use `connection_id` to associate tokens with a Finch
22
+ * @deprecated [DEPRECATED] Use `connection_id` to associate tokens with a Finch
23
23
  * connection instead of this account ID.
24
24
  */
25
25
  account_id: string;
@@ -33,7 +33,7 @@ export interface Introspection {
33
33
  */
34
34
  client_type: 'production' | 'development' | 'sandbox';
35
35
  /**
36
- * @deprecated: [DEPRECATED] Use `connection_id` to associate tokens with a Finch
36
+ * @deprecated [DEPRECATED] Use `connection_id` to associate tokens with a Finch
37
37
  * connection instead of this company ID.
38
38
  */
39
39
  company_id: string;
@@ -71,7 +71,7 @@ export interface Introspection {
71
71
  */
72
72
  manual: boolean;
73
73
  /**
74
- * @deprecated: [DEPRECATED] Use `provider_id` to identify the provider instead of
74
+ * @deprecated [DEPRECATED] Use `provider_id` to identify the provider instead of
75
75
  * this payroll provider ID.
76
76
  */
77
77
  payroll_provider_id: string;
@@ -79,7 +79,7 @@ export interface EmploymentData {
79
79
  */
80
80
  title?: string | null;
81
81
  /**
82
- * @deprecated: This field is deprecated in favour of `source_id`
82
+ * @deprecated This field is deprecated in favour of `source_id`
83
83
  */
84
84
  work_id?: string | null;
85
85
  }
@@ -16,13 +16,13 @@ export declare class Accounts extends APIResource {
16
16
  export interface AccountCreateResponse {
17
17
  access_token: string;
18
18
  /**
19
- * @deprecated: [DEPRECATED] Use `connection_id` to associate a connection with an
19
+ * @deprecated [DEPRECATED] Use `connection_id` to associate a connection with an
20
20
  * access token
21
21
  */
22
22
  account_id: string;
23
23
  authentication_type: 'credential' | 'api_token' | 'oauth' | 'assisted';
24
24
  /**
25
- * @deprecated: [DEPRECATED] Use `connection_id` to associate a connection with an
25
+ * @deprecated [DEPRECATED] Use `connection_id` to associate a connection with an
26
26
  * access token
27
27
  */
28
28
  company_id: string;
@@ -38,13 +38,13 @@ export interface AccountCreateResponse {
38
38
  }
39
39
  export interface AccountUpdateResponse {
40
40
  /**
41
- * @deprecated: [DEPRECATED] Use `connection_id` to associate a connection with an
41
+ * @deprecated [DEPRECATED] Use `connection_id` to associate a connection with an
42
42
  * access token
43
43
  */
44
44
  account_id: string;
45
45
  authentication_type: 'credential' | 'api_token' | 'oauth' | 'assisted';
46
46
  /**
47
- * @deprecated: [DEPRECATED] Use `connection_id` to associate a connection with an
47
+ * @deprecated [DEPRECATED] Use `connection_id` to associate a connection with an
48
48
  * access token
49
49
  */
50
50
  company_id: string;
@@ -12,13 +12,13 @@ export declare class Connections extends APIResource {
12
12
  export interface ConnectionCreateResponse {
13
13
  access_token: string;
14
14
  /**
15
- * @deprecated: [DEPRECATED] Use `connection_id` to associate a connection with an
15
+ * @deprecated [DEPRECATED] Use `connection_id` to associate a connection with an
16
16
  * access token
17
17
  */
18
18
  account_id: string;
19
19
  authentication_type: 'credential' | 'api_token' | 'oauth' | 'assisted';
20
20
  /**
21
- * @deprecated: [DEPRECATED] Use `connection_id` to associate a connection with an
21
+ * @deprecated [DEPRECATED] Use `connection_id` to associate a connection with an
22
22
  * access token
23
23
  */
24
24
  company_id: string;
@@ -283,13 +283,13 @@ export declare namespace AccountUpdateEvent {
283
283
  }
284
284
  export interface BaseWebhookEvent {
285
285
  /**
286
- * @deprecated: [DEPRECATED] Unique Finch ID of the employer account used to make
286
+ * @deprecated [DEPRECATED] Unique Finch ID of the employer account used to make
287
287
  * this connection. Use `connection_id` instead to identify the connection
288
288
  * associated with this event.
289
289
  */
290
290
  account_id: string;
291
291
  /**
292
- * @deprecated: [DEPRECATED] Unique Finch ID of the company for which data has been
292
+ * @deprecated [DEPRECATED] Unique Finch ID of the company for which data has been
293
293
  * updated. Use `connection_id` instead to identify the connection associated with
294
294
  * this event.
295
295
  */
package/src/index.ts CHANGED
@@ -74,7 +74,7 @@ export interface ClientOptions {
74
74
  * Note that request timeouts are retried by default, so in a worst-case scenario you may wait
75
75
  * much longer than this timeout before the promise succeeds or fails.
76
76
  */
77
- timeout?: number;
77
+ timeout?: number | undefined;
78
78
 
79
79
  /**
80
80
  * An HTTP agent used to manage HTTP(S) connections.
@@ -82,7 +82,7 @@ export interface ClientOptions {
82
82
  * If not provided, an agent will be constructed by default in the Node.js environment,
83
83
  * otherwise no agent is used.
84
84
  */
85
- httpAgent?: Agent;
85
+ httpAgent?: Agent | undefined;
86
86
 
87
87
  /**
88
88
  * Specify a custom `fetch` function implementation.
@@ -98,7 +98,7 @@ export interface ClientOptions {
98
98
  *
99
99
  * @default 2
100
100
  */
101
- maxRetries?: number;
101
+ maxRetries?: number | undefined;
102
102
 
103
103
  /**
104
104
  * Default headers to include with every request to the API.
@@ -106,7 +106,7 @@ export interface ClientOptions {
106
106
  * These can be removed in individual requests by explicitly setting the
107
107
  * header to `undefined` or `null` in request options.
108
108
  */
109
- defaultHeaders?: Core.Headers;
109
+ defaultHeaders?: Core.Headers | undefined;
110
110
 
111
111
  /**
112
112
  * Default query parameters to include with every request to the API.
@@ -114,13 +114,13 @@ export interface ClientOptions {
114
114
  * These can be removed in individual requests by explicitly setting the
115
115
  * param to `undefined` in request options.
116
116
  */
117
- defaultQuery?: Core.DefaultQuery;
117
+ defaultQuery?: Core.DefaultQuery | undefined;
118
118
 
119
119
  /**
120
120
  * By default, client-side use of this library is not allowed, as it risks exposing your secret API credentials to attackers.
121
121
  * Only set this option to `true` if you understand the risks and have appropriate mitigations in place.
122
122
  */
123
- dangerouslyAllowBrowser?: boolean;
123
+ dangerouslyAllowBrowser?: boolean | undefined;
124
124
  }
125
125
 
126
126
  /**
@@ -45,7 +45,7 @@ export interface CreateAccessTokenResponse {
45
45
  access_token: string;
46
46
 
47
47
  /**
48
- * @deprecated: [DEPRECATED] Use `connection_id` to identify the connection instead
48
+ * @deprecated [DEPRECATED] Use `connection_id` to identify the connection instead
49
49
  * of this account ID.
50
50
  */
51
51
  account_id: string;
@@ -56,7 +56,7 @@ export interface CreateAccessTokenResponse {
56
56
  client_type: 'production' | 'development' | 'sandbox';
57
57
 
58
58
  /**
59
- * @deprecated: [DEPRECATED] Use `connection_id` to identify the connection instead
59
+ * @deprecated [DEPRECATED] Use `connection_id` to identify the connection instead
60
60
  * of this company ID.
61
61
  */
62
62
  company_id: string;
@@ -29,7 +29,7 @@ export interface DisconnectResponse {
29
29
 
30
30
  export interface Introspection {
31
31
  /**
32
- * @deprecated: [DEPRECATED] Use `connection_id` to associate tokens with a Finch
32
+ * @deprecated [DEPRECATED] Use `connection_id` to associate tokens with a Finch
33
33
  * connection instead of this account ID.
34
34
  */
35
35
  account_id: string;
@@ -47,7 +47,7 @@ export interface Introspection {
47
47
  client_type: 'production' | 'development' | 'sandbox';
48
48
 
49
49
  /**
50
- * @deprecated: [DEPRECATED] Use `connection_id` to associate tokens with a Finch
50
+ * @deprecated [DEPRECATED] Use `connection_id` to associate tokens with a Finch
51
51
  * connection instead of this company ID.
52
52
  */
53
53
  company_id: string;
@@ -93,7 +93,7 @@ export interface Introspection {
93
93
  manual: boolean;
94
94
 
95
95
  /**
96
- * @deprecated: [DEPRECATED] Use `provider_id` to identify the provider instead of
96
+ * @deprecated [DEPRECATED] Use `provider_id` to identify the provider instead of
97
97
  * this payroll provider ID.
98
98
  */
99
99
  payroll_provider_id: string;
@@ -119,7 +119,7 @@ export interface EmploymentData {
119
119
  title?: string | null;
120
120
 
121
121
  /**
122
- * @deprecated: This field is deprecated in favour of `source_id`
122
+ * @deprecated This field is deprecated in favour of `source_id`
123
123
  */
124
124
  work_id?: string | null;
125
125
  }
@@ -34,7 +34,7 @@ export interface AccountCreateResponse {
34
34
  access_token: string;
35
35
 
36
36
  /**
37
- * @deprecated: [DEPRECATED] Use `connection_id` to associate a connection with an
37
+ * @deprecated [DEPRECATED] Use `connection_id` to associate a connection with an
38
38
  * access token
39
39
  */
40
40
  account_id: string;
@@ -42,7 +42,7 @@ export interface AccountCreateResponse {
42
42
  authentication_type: 'credential' | 'api_token' | 'oauth' | 'assisted';
43
43
 
44
44
  /**
45
- * @deprecated: [DEPRECATED] Use `connection_id` to associate a connection with an
45
+ * @deprecated [DEPRECATED] Use `connection_id` to associate a connection with an
46
46
  * access token
47
47
  */
48
48
  company_id: string;
@@ -62,7 +62,7 @@ export interface AccountCreateResponse {
62
62
 
63
63
  export interface AccountUpdateResponse {
64
64
  /**
65
- * @deprecated: [DEPRECATED] Use `connection_id` to associate a connection with an
65
+ * @deprecated [DEPRECATED] Use `connection_id` to associate a connection with an
66
66
  * access token
67
67
  */
68
68
  account_id: string;
@@ -70,7 +70,7 @@ export interface AccountUpdateResponse {
70
70
  authentication_type: 'credential' | 'api_token' | 'oauth' | 'assisted';
71
71
 
72
72
  /**
73
- * @deprecated: [DEPRECATED] Use `connection_id` to associate a connection with an
73
+ * @deprecated [DEPRECATED] Use `connection_id` to associate a connection with an
74
74
  * access token
75
75
  */
76
76
  company_id: string;
@@ -29,7 +29,7 @@ export interface ConnectionCreateResponse {
29
29
  access_token: string;
30
30
 
31
31
  /**
32
- * @deprecated: [DEPRECATED] Use `connection_id` to associate a connection with an
32
+ * @deprecated [DEPRECATED] Use `connection_id` to associate a connection with an
33
33
  * access token
34
34
  */
35
35
  account_id: string;
@@ -37,7 +37,7 @@ export interface ConnectionCreateResponse {
37
37
  authentication_type: 'credential' | 'api_token' | 'oauth' | 'assisted';
38
38
 
39
39
  /**
40
- * @deprecated: [DEPRECATED] Use `connection_id` to associate a connection with an
40
+ * @deprecated [DEPRECATED] Use `connection_id` to associate a connection with an
41
41
  * access token
42
42
  */
43
43
  company_id: string;
@@ -557,14 +557,14 @@ export namespace AccountUpdateEvent {
557
557
 
558
558
  export interface BaseWebhookEvent {
559
559
  /**
560
- * @deprecated: [DEPRECATED] Unique Finch ID of the employer account used to make
560
+ * @deprecated [DEPRECATED] Unique Finch ID of the employer account used to make
561
561
  * this connection. Use `connection_id` instead to identify the connection
562
562
  * associated with this event.
563
563
  */
564
564
  account_id: string;
565
565
 
566
566
  /**
567
- * @deprecated: [DEPRECATED] Unique Finch ID of the company for which data has been
567
+ * @deprecated [DEPRECATED] Unique Finch ID of the company for which data has been
568
568
  * updated. Use `connection_id` instead to identify the connection associated with
569
569
  * this event.
570
570
  */
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '6.15.0'; // x-release-please-version
1
+ export const VERSION = '6.15.1'; // x-release-please-version
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "6.15.0";
1
+ export declare const VERSION = "6.15.1";
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 = '6.15.0'; // x-release-please-version
4
+ exports.VERSION = '6.15.1'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '6.15.0'; // x-release-please-version
1
+ export const VERSION = '6.15.1'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map