@tryfinch/finch-api 6.21.0 → 6.22.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 (92) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/core.d.ts +11 -0
  3. package/core.d.ts.map +1 -1
  4. package/core.js +1 -1
  5. package/core.js.map +1 -1
  6. package/core.mjs +1 -1
  7. package/core.mjs.map +1 -1
  8. package/package.json +1 -1
  9. package/resources/hris/benefits/benefits.d.ts +18 -0
  10. package/resources/hris/benefits/benefits.d.ts.map +1 -1
  11. package/resources/hris/benefits/benefits.js.map +1 -1
  12. package/resources/hris/benefits/benefits.mjs.map +1 -1
  13. package/resources/hris/benefits/individuals.d.ts +8 -1
  14. package/resources/hris/benefits/individuals.d.ts.map +1 -1
  15. package/resources/hris/benefits/individuals.js.map +1 -1
  16. package/resources/hris/benefits/individuals.mjs.map +1 -1
  17. package/resources/hris/company/company.d.ts +111 -0
  18. package/resources/hris/company/company.d.ts.map +1 -0
  19. package/resources/hris/company/company.js +46 -0
  20. package/resources/hris/company/company.js.map +1 -0
  21. package/resources/hris/company/company.mjs +19 -0
  22. package/resources/hris/company/company.mjs.map +1 -0
  23. package/resources/hris/company/index.d.ts +3 -0
  24. package/resources/hris/company/index.d.ts.map +1 -0
  25. package/resources/hris/company/index.js +10 -0
  26. package/resources/hris/company/index.js.map +1 -0
  27. package/resources/hris/company/index.mjs +4 -0
  28. package/resources/hris/company/index.mjs.map +1 -0
  29. package/resources/hris/company/pay-statement-item/index.d.ts +3 -0
  30. package/resources/hris/company/pay-statement-item/index.d.ts.map +1 -0
  31. package/resources/hris/company/pay-statement-item/index.js +11 -0
  32. package/resources/hris/company/pay-statement-item/index.js.map +1 -0
  33. package/resources/hris/company/pay-statement-item/index.mjs +4 -0
  34. package/resources/hris/company/pay-statement-item/index.mjs.map +1 -0
  35. package/resources/hris/company/pay-statement-item/pay-statement-item.d.ts +87 -0
  36. package/resources/hris/company/pay-statement-item/pay-statement-item.d.ts.map +1 -0
  37. package/resources/hris/company/pay-statement-item/pay-statement-item.js +55 -0
  38. package/resources/hris/company/pay-statement-item/pay-statement-item.js.map +1 -0
  39. package/resources/hris/company/pay-statement-item/pay-statement-item.mjs +27 -0
  40. package/resources/hris/company/pay-statement-item/pay-statement-item.mjs.map +1 -0
  41. package/resources/hris/company/pay-statement-item/rules.d.ts +333 -0
  42. package/resources/hris/company/pay-statement-item/rules.d.ts.map +1 -0
  43. package/resources/hris/company/pay-statement-item/rules.js +41 -0
  44. package/resources/hris/company/pay-statement-item/rules.js.map +1 -0
  45. package/resources/hris/company/pay-statement-item/rules.mjs +36 -0
  46. package/resources/hris/company/pay-statement-item/rules.mjs.map +1 -0
  47. package/resources/hris/company/pay-statement-item.d.ts +2 -0
  48. package/resources/hris/company/pay-statement-item.d.ts.map +1 -0
  49. package/resources/hris/company/pay-statement-item.js +19 -0
  50. package/resources/hris/company/pay-statement-item.js.map +1 -0
  51. package/resources/hris/company/pay-statement-item.mjs +3 -0
  52. package/resources/hris/company/pay-statement-item.mjs.map +1 -0
  53. package/resources/hris/company.d.ts +1 -106
  54. package/resources/hris/company.d.ts.map +1 -1
  55. package/resources/hris/company.js +15 -11
  56. package/resources/hris/company.js.map +1 -1
  57. package/resources/hris/company.mjs +1 -9
  58. package/resources/hris/company.mjs.map +1 -1
  59. package/resources/hris/directory.d.ts +1 -1
  60. package/resources/hris/employments.d.ts +8 -3
  61. package/resources/hris/employments.d.ts.map +1 -1
  62. package/resources/hris/employments.js.map +1 -1
  63. package/resources/hris/employments.mjs.map +1 -1
  64. package/resources/hris/hris.d.ts +2 -2
  65. package/resources/hris/hris.d.ts.map +1 -1
  66. package/resources/hris/hris.js +2 -2
  67. package/resources/hris/hris.js.map +1 -1
  68. package/resources/hris/hris.mjs +2 -2
  69. package/resources/hris/hris.mjs.map +1 -1
  70. package/resources/hris/index.d.ts +1 -1
  71. package/resources/hris/index.d.ts.map +1 -1
  72. package/resources/hris/index.js +2 -2
  73. package/resources/hris/index.js.map +1 -1
  74. package/resources/hris/index.mjs +1 -1
  75. package/src/core.ts +15 -1
  76. package/src/resources/hris/benefits/benefits.ts +18 -0
  77. package/src/resources/hris/benefits/individuals.ts +9 -1
  78. package/src/resources/hris/company/company.ts +160 -0
  79. package/src/resources/hris/company/index.ts +9 -0
  80. package/src/resources/hris/company/pay-statement-item/index.ts +18 -0
  81. package/src/resources/hris/company/pay-statement-item/pay-statement-item.ts +148 -0
  82. package/src/resources/hris/company/pay-statement-item/rules.ts +440 -0
  83. package/src/resources/hris/company/pay-statement-item.ts +3 -0
  84. package/src/resources/hris/company.ts +1 -137
  85. package/src/resources/hris/directory.ts +1 -1
  86. package/src/resources/hris/employments.ts +8 -3
  87. package/src/resources/hris/hris.ts +2 -2
  88. package/src/resources/hris/index.ts +1 -1
  89. package/src/version.ts +1 -1
  90. package/version.d.ts +1 -1
  91. package/version.js +1 -1
  92. package/version.mjs +1 -1
@@ -1,139 +1,3 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import { APIResource } from '../../resource';
4
- import * as Core from '../../core';
5
- import * as HRISAPI from './hris';
6
-
7
- export class CompanyResource extends APIResource {
8
- /**
9
- * Read basic company data
10
- */
11
- retrieve(options?: Core.RequestOptions): Core.APIPromise<Company> {
12
- return this._client.get('/employer/company', options);
13
- }
14
- }
15
-
16
- export interface Company {
17
- /**
18
- * A stable Finch `id` (UUID v4) for the company.
19
- */
20
- id: string;
21
-
22
- /**
23
- * An array of bank account objects associated with the payroll/HRIS system.
24
- */
25
- accounts: Array<Company.Account> | null;
26
-
27
- /**
28
- * The array of company departments.
29
- */
30
- departments: Array<Company.Department | null> | null;
31
-
32
- /**
33
- * The employer identification number.
34
- */
35
- ein: string | null;
36
-
37
- /**
38
- * The entity type object.
39
- */
40
- entity: Company.Entity | null;
41
-
42
- /**
43
- * The legal name of the company.
44
- */
45
- legal_name: string | null;
46
-
47
- locations: Array<HRISAPI.Location | null> | null;
48
-
49
- /**
50
- * The email of the main administrator on the account.
51
- */
52
- primary_email: string | null;
53
-
54
- /**
55
- * The phone number of the main administrator on the account. Format: `XXXXXXXXXX`
56
- */
57
- primary_phone_number: string | null;
58
- }
59
-
60
- export namespace Company {
61
- export interface Account {
62
- /**
63
- * The name of the bank associated in the payroll/HRIS system.
64
- */
65
- account_name?: string | null;
66
-
67
- /**
68
- * 10-12 digit number to specify the bank account
69
- */
70
- account_number?: string | null;
71
-
72
- /**
73
- * The type of bank account.
74
- */
75
- account_type?: 'checking' | 'savings' | null;
76
-
77
- /**
78
- * Name of the banking institution.
79
- */
80
- institution_name?: string | null;
81
-
82
- /**
83
- * A nine-digit code that's based on the U.S. Bank location where your account was
84
- * opened.
85
- */
86
- routing_number?: string | null;
87
- }
88
-
89
- export interface Department {
90
- /**
91
- * The department name.
92
- */
93
- name?: string | null;
94
-
95
- /**
96
- * The parent department, if present.
97
- */
98
- parent?: Department.Parent | null;
99
- }
100
-
101
- export namespace Department {
102
- /**
103
- * The parent department, if present.
104
- */
105
- export interface Parent {
106
- /**
107
- * The parent department's name.
108
- */
109
- name?: string | null;
110
- }
111
- }
112
-
113
- /**
114
- * The entity type object.
115
- */
116
- export interface Entity {
117
- /**
118
- * The tax payer subtype of the company.
119
- */
120
- subtype?: 's_corporation' | 'c_corporation' | 'b_corporation' | null;
121
-
122
- /**
123
- * The tax payer type of the company.
124
- */
125
- type?:
126
- | 'llc'
127
- | 'lp'
128
- | 'corporation'
129
- | 'sole_proprietor'
130
- | 'non_profit'
131
- | 'partnership'
132
- | 'cooperative'
133
- | null;
134
- }
135
- }
136
-
137
- export declare namespace CompanyResource {
138
- export { type Company as Company };
139
- }
3
+ export * from './company/index';
@@ -32,7 +32,7 @@ export class Directory extends APIResource {
32
32
 
33
33
  export interface IndividualInDirectory {
34
34
  /**
35
- * A stable Finch id (UUID v4) for an individual in the company.
35
+ * A stable Finch `id` (UUID v4) for an individual in the company.
36
36
  */
37
37
  id?: string;
38
38
 
@@ -25,7 +25,7 @@ export class EmploymentDataResponsesPage extends ResponsesPage<EmploymentDataRes
25
25
 
26
26
  export interface EmploymentData {
27
27
  /**
28
- * string A stable Finch `id` (UUID v4) for an individual in the company.
28
+ * A stable Finch `id` (UUID v4) for an individual in the company.
29
29
  */
30
30
  id?: string;
31
31
 
@@ -51,7 +51,8 @@ export interface EmploymentData {
51
51
  employment?: EmploymentData.Employment | null;
52
52
 
53
53
  /**
54
- * The detailed employment status of the individual. Available options: `active`, `deceased`, `leave`, `onboarding`, `prehire`, `retired`, `terminated`.
54
+ * The detailed employment status of the individual. Available options: `active`,
55
+ * `deceased`, `leave`, `onboarding`, `prehire`, `retired`, `terminated`.
55
56
  */
56
57
  employment_status?:
57
58
  | 'active'
@@ -146,7 +147,8 @@ export namespace EmploymentData {
146
147
  */
147
148
  export interface Employment {
148
149
  /**
149
- * The secondary employment type of the individual. Options: `full_time`, `part_time`, `intern`, `temp`, `seasonal` and `individual_contractor`.
150
+ * The secondary employment type of the individual. Options: `full_time`,
151
+ * `part_time`, `intern`, `temp`, `seasonal` and `individual_contractor`.
150
152
  */
151
153
  subtype?: 'full_time' | 'intern' | 'part_time' | 'temp' | 'seasonal' | 'individual_contractor' | null;
152
154
 
@@ -172,6 +174,9 @@ export interface EmploymentDataResponse {
172
174
 
173
175
  code?: number;
174
176
 
177
+ /**
178
+ * A stable Finch `id` (UUID v4) for an individual in the company.
179
+ */
175
180
  individual_id?: string;
176
181
  }
177
182
 
@@ -1,8 +1,6 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import { APIResource } from '../../resource';
4
- import * as CompanyAPI from './company';
5
- import { Company, CompanyResource } from './company';
6
4
  import * as DirectoryAPI from './directory';
7
5
  import {
8
6
  Directory,
@@ -66,6 +64,8 @@ import {
66
64
  SupportedBenefitsSinglePage,
67
65
  UpdateCompanyBenefitResponse,
68
66
  } from './benefits/benefits';
67
+ import * as CompanyAPI from './company/company';
68
+ import { Company, CompanyResource } from './company/company';
69
69
 
70
70
  export class HRIS extends APIResource {
71
71
  company: CompanyAPI.CompanyResource = new CompanyAPI.CompanyResource(this._client);
@@ -18,7 +18,7 @@ export {
18
18
  type BenefitCreateParams,
19
19
  type BenefitUpdateParams,
20
20
  } from './benefits/index';
21
- export { CompanyResource, type Company } from './company';
21
+ export { CompanyResource, type Company } from './company/index';
22
22
  export {
23
23
  Directory,
24
24
  type IndividualInDirectory,
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '6.21.0'; // x-release-please-version
1
+ export const VERSION = '6.22.0'; // x-release-please-version
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "6.21.0";
1
+ export declare const VERSION = "6.22.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 = '6.21.0'; // x-release-please-version
4
+ exports.VERSION = '6.22.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '6.21.0'; // x-release-please-version
1
+ export const VERSION = '6.22.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map