@tryfinch/finch-api 6.20.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 (95) hide show
  1. package/CHANGELOG.md +31 -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/account.d.ts +4 -0
  10. package/resources/account.d.ts.map +1 -1
  11. package/resources/hris/benefits/benefits.d.ts +18 -0
  12. package/resources/hris/benefits/benefits.d.ts.map +1 -1
  13. package/resources/hris/benefits/benefits.js.map +1 -1
  14. package/resources/hris/benefits/benefits.mjs.map +1 -1
  15. package/resources/hris/benefits/individuals.d.ts +8 -1
  16. package/resources/hris/benefits/individuals.d.ts.map +1 -1
  17. package/resources/hris/benefits/individuals.js.map +1 -1
  18. package/resources/hris/benefits/individuals.mjs.map +1 -1
  19. package/resources/hris/company/company.d.ts +111 -0
  20. package/resources/hris/company/company.d.ts.map +1 -0
  21. package/resources/hris/company/company.js +46 -0
  22. package/resources/hris/company/company.js.map +1 -0
  23. package/resources/hris/company/company.mjs +19 -0
  24. package/resources/hris/company/company.mjs.map +1 -0
  25. package/resources/hris/company/index.d.ts +3 -0
  26. package/resources/hris/company/index.d.ts.map +1 -0
  27. package/resources/hris/company/index.js +10 -0
  28. package/resources/hris/company/index.js.map +1 -0
  29. package/resources/hris/company/index.mjs +4 -0
  30. package/resources/hris/company/index.mjs.map +1 -0
  31. package/resources/hris/company/pay-statement-item/index.d.ts +3 -0
  32. package/resources/hris/company/pay-statement-item/index.d.ts.map +1 -0
  33. package/resources/hris/company/pay-statement-item/index.js +11 -0
  34. package/resources/hris/company/pay-statement-item/index.js.map +1 -0
  35. package/resources/hris/company/pay-statement-item/index.mjs +4 -0
  36. package/resources/hris/company/pay-statement-item/index.mjs.map +1 -0
  37. package/resources/hris/company/pay-statement-item/pay-statement-item.d.ts +87 -0
  38. package/resources/hris/company/pay-statement-item/pay-statement-item.d.ts.map +1 -0
  39. package/resources/hris/company/pay-statement-item/pay-statement-item.js +55 -0
  40. package/resources/hris/company/pay-statement-item/pay-statement-item.js.map +1 -0
  41. package/resources/hris/company/pay-statement-item/pay-statement-item.mjs +27 -0
  42. package/resources/hris/company/pay-statement-item/pay-statement-item.mjs.map +1 -0
  43. package/resources/hris/company/pay-statement-item/rules.d.ts +333 -0
  44. package/resources/hris/company/pay-statement-item/rules.d.ts.map +1 -0
  45. package/resources/hris/company/pay-statement-item/rules.js +41 -0
  46. package/resources/hris/company/pay-statement-item/rules.js.map +1 -0
  47. package/resources/hris/company/pay-statement-item/rules.mjs +36 -0
  48. package/resources/hris/company/pay-statement-item/rules.mjs.map +1 -0
  49. package/resources/hris/company/pay-statement-item.d.ts +2 -0
  50. package/resources/hris/company/pay-statement-item.d.ts.map +1 -0
  51. package/resources/hris/company/pay-statement-item.js +19 -0
  52. package/resources/hris/company/pay-statement-item.js.map +1 -0
  53. package/resources/hris/company/pay-statement-item.mjs +3 -0
  54. package/resources/hris/company/pay-statement-item.mjs.map +1 -0
  55. package/resources/hris/company.d.ts +1 -106
  56. package/resources/hris/company.d.ts.map +1 -1
  57. package/resources/hris/company.js +15 -11
  58. package/resources/hris/company.js.map +1 -1
  59. package/resources/hris/company.mjs +1 -9
  60. package/resources/hris/company.mjs.map +1 -1
  61. package/resources/hris/directory.d.ts +1 -1
  62. package/resources/hris/employments.d.ts +8 -3
  63. package/resources/hris/employments.d.ts.map +1 -1
  64. package/resources/hris/employments.js.map +1 -1
  65. package/resources/hris/employments.mjs.map +1 -1
  66. package/resources/hris/hris.d.ts +2 -2
  67. package/resources/hris/hris.d.ts.map +1 -1
  68. package/resources/hris/hris.js +2 -2
  69. package/resources/hris/hris.js.map +1 -1
  70. package/resources/hris/hris.mjs +2 -2
  71. package/resources/hris/hris.mjs.map +1 -1
  72. package/resources/hris/index.d.ts +1 -1
  73. package/resources/hris/index.d.ts.map +1 -1
  74. package/resources/hris/index.js +2 -2
  75. package/resources/hris/index.js.map +1 -1
  76. package/resources/hris/index.mjs +1 -1
  77. package/src/core.ts +15 -1
  78. package/src/resources/account.ts +5 -0
  79. package/src/resources/hris/benefits/benefits.ts +18 -0
  80. package/src/resources/hris/benefits/individuals.ts +9 -1
  81. package/src/resources/hris/company/company.ts +160 -0
  82. package/src/resources/hris/company/index.ts +9 -0
  83. package/src/resources/hris/company/pay-statement-item/index.ts +18 -0
  84. package/src/resources/hris/company/pay-statement-item/pay-statement-item.ts +148 -0
  85. package/src/resources/hris/company/pay-statement-item/rules.ts +440 -0
  86. package/src/resources/hris/company/pay-statement-item.ts +3 -0
  87. package/src/resources/hris/company.ts +1 -137
  88. package/src/resources/hris/directory.ts +1 -1
  89. package/src/resources/hris/employments.ts +8 -3
  90. package/src/resources/hris/hris.ts +2 -2
  91. package/src/resources/hris/index.ts +1 -1
  92. package/src/version.ts +1 -1
  93. package/version.d.ts +1 -1
  94. package/version.js +1 -1
  95. package/version.mjs +1 -1
@@ -0,0 +1,333 @@
1
+ import { APIResource } from "../../../../resource.js";
2
+ import * as Core from "../../../../core.js";
3
+ import { ResponsesPage } from "../../../../pagination.js";
4
+ export declare class Rules extends APIResource {
5
+ /**
6
+ * **Beta:** this endpoint currently serves employers onboarded after March 4th and
7
+ * historical support will be added soon Custom rules can be created to associate
8
+ * specific attributes to pay statement items depending on the use case. For
9
+ * example, pay statement items that meet certain conditions can be labeled as a
10
+ * pre-tax 401k. This metadata can be retrieved where pay statement item
11
+ * information is available.
12
+ */
13
+ create(body?: RuleCreateParams, options?: Core.RequestOptions): Core.APIPromise<RuleCreateResponse>;
14
+ create(options?: Core.RequestOptions): Core.APIPromise<RuleCreateResponse>;
15
+ /**
16
+ * **Beta:** this endpoint currently serves employers onboarded after March 4th and
17
+ * historical support will be added soon Update a rule for a pay statement item.
18
+ */
19
+ update(ruleId: string, body?: RuleUpdateParams, options?: Core.RequestOptions): Core.APIPromise<RuleUpdateResponse>;
20
+ update(ruleId: string, options?: Core.RequestOptions): Core.APIPromise<RuleUpdateResponse>;
21
+ /**
22
+ * **Beta:** this endpoint currently serves employers onboarded after March 4th and
23
+ * historical support will be added soon List all rules of a connection account.
24
+ */
25
+ list(options?: Core.RequestOptions): Core.PagePromise<RuleListResponsesPage, RuleListResponse>;
26
+ /**
27
+ * **Beta:** this endpoint currently serves employers onboarded after March 4th and
28
+ * historical support will be added soon Delete a rule for a pay statement item.
29
+ */
30
+ delete(ruleId: string, options?: Core.RequestOptions): Core.APIPromise<RuleDeleteResponse>;
31
+ }
32
+ export declare class RuleListResponsesPage extends ResponsesPage<RuleListResponse> {
33
+ }
34
+ export interface RuleCreateResponse {
35
+ /**
36
+ * Finch id (uuidv4) for the rule.
37
+ */
38
+ id?: string;
39
+ /**
40
+ * Specifies the fields to be applied when the condition is met.
41
+ */
42
+ attributes?: RuleCreateResponse.Attributes;
43
+ conditions?: Array<RuleCreateResponse.Condition>;
44
+ /**
45
+ * The datetime when the rule was created.
46
+ */
47
+ created_at?: string;
48
+ /**
49
+ * Specifies when the rules should stop applying rules based on the date.
50
+ */
51
+ effective_end_date?: string | null;
52
+ /**
53
+ * Specifies when the rule should begin applying based on the date.
54
+ */
55
+ effective_start_date?: string | null;
56
+ /**
57
+ * The entity type to which the rule is applied.
58
+ */
59
+ entity_type?: 'pay_statement_item';
60
+ /**
61
+ * The priority of the rule.
62
+ */
63
+ priority?: number;
64
+ /**
65
+ * The datetime when the rule was last updated.
66
+ */
67
+ updated_at?: string;
68
+ }
69
+ export declare namespace RuleCreateResponse {
70
+ /**
71
+ * Specifies the fields to be applied when the condition is met.
72
+ */
73
+ interface Attributes {
74
+ /**
75
+ * The metadata to be attached in the entity. It is a key-value pairs where the
76
+ * values can be of any type (string, number, boolean, object, array, etc.).
77
+ */
78
+ metadata?: Record<string, unknown>;
79
+ }
80
+ interface Condition {
81
+ /**
82
+ * The field to be checked in the rule.
83
+ */
84
+ field?: string;
85
+ /**
86
+ * The operator to be used in the rule.
87
+ */
88
+ operator?: 'equals';
89
+ /**
90
+ * The value of the field to be checked in the rule.
91
+ */
92
+ value?: string;
93
+ }
94
+ }
95
+ export interface RuleUpdateResponse {
96
+ /**
97
+ * Finch id (uuidv4) for the rule.
98
+ */
99
+ id?: string;
100
+ /**
101
+ * Specifies the fields to be applied when the condition is met.
102
+ */
103
+ attributes?: RuleUpdateResponse.Attributes;
104
+ conditions?: Array<RuleUpdateResponse.Condition>;
105
+ /**
106
+ * The datetime when the rule was created.
107
+ */
108
+ created_at?: string;
109
+ /**
110
+ * Specifies when the rules should stop applying rules based on the date.
111
+ */
112
+ effective_end_date?: string | null;
113
+ /**
114
+ * Specifies when the rule should begin applying based on the date.
115
+ */
116
+ effective_start_date?: string | null;
117
+ /**
118
+ * The entity type to which the rule is applied.
119
+ */
120
+ entity_type?: 'pay_statement_item';
121
+ /**
122
+ * The priority of the rule.
123
+ */
124
+ priority?: number;
125
+ /**
126
+ * The datetime when the rule was last updated.
127
+ */
128
+ updated_at?: string;
129
+ }
130
+ export declare namespace RuleUpdateResponse {
131
+ /**
132
+ * Specifies the fields to be applied when the condition is met.
133
+ */
134
+ interface Attributes {
135
+ /**
136
+ * The metadata to be attached in the entity. It is a key-value pairs where the
137
+ * values can be of any type (string, number, boolean, object, array, etc.).
138
+ */
139
+ metadata?: Record<string, unknown>;
140
+ }
141
+ interface Condition {
142
+ /**
143
+ * The field to be checked in the rule.
144
+ */
145
+ field?: string;
146
+ /**
147
+ * The operator to be used in the rule.
148
+ */
149
+ operator?: 'equals';
150
+ /**
151
+ * The value of the field to be checked in the rule.
152
+ */
153
+ value?: string;
154
+ }
155
+ }
156
+ export interface RuleListResponse {
157
+ /**
158
+ * Finch id (uuidv4) for the rule.
159
+ */
160
+ id?: string;
161
+ /**
162
+ * Specifies the fields to be applied when the condition is met.
163
+ */
164
+ attributes?: RuleListResponse.Attributes;
165
+ conditions?: Array<RuleListResponse.Condition>;
166
+ /**
167
+ * The datetime when the rule was created.
168
+ */
169
+ created_at?: string;
170
+ /**
171
+ * Specifies when the rules should stop applying rules based on the date.
172
+ */
173
+ effective_end_date?: string | null;
174
+ /**
175
+ * Specifies when the rule should begin applying based on the date.
176
+ */
177
+ effective_start_date?: string | null;
178
+ /**
179
+ * The entity type to which the rule is applied.
180
+ */
181
+ entity_type?: 'pay_statement_item';
182
+ /**
183
+ * The priority of the rule.
184
+ */
185
+ priority?: number;
186
+ /**
187
+ * The datetime when the rule was last updated.
188
+ */
189
+ updated_at?: string;
190
+ }
191
+ export declare namespace RuleListResponse {
192
+ /**
193
+ * Specifies the fields to be applied when the condition is met.
194
+ */
195
+ interface Attributes {
196
+ /**
197
+ * The metadata to be attached in the entity. It is a key-value pairs where the
198
+ * values can be of any type (string, number, boolean, object, array, etc.).
199
+ */
200
+ metadata?: Record<string, unknown>;
201
+ }
202
+ interface Condition {
203
+ /**
204
+ * The field to be checked in the rule.
205
+ */
206
+ field?: string;
207
+ /**
208
+ * The operator to be used in the rule.
209
+ */
210
+ operator?: 'equals';
211
+ /**
212
+ * The value of the field to be checked in the rule.
213
+ */
214
+ value?: string;
215
+ }
216
+ }
217
+ export interface RuleDeleteResponse {
218
+ /**
219
+ * Finch id (uuidv4) for the rule.
220
+ */
221
+ id?: string;
222
+ /**
223
+ * Specifies the fields to be applied when the condition is met.
224
+ */
225
+ attributes?: RuleDeleteResponse.Attributes;
226
+ conditions?: Array<RuleDeleteResponse.Condition>;
227
+ /**
228
+ * The datetime when the rule was created.
229
+ */
230
+ created_at?: string;
231
+ /**
232
+ * The datetime when the rule was deleted.
233
+ */
234
+ deleted_at?: string;
235
+ /**
236
+ * Specifies when the rules should stop applying rules based on the date.
237
+ */
238
+ effective_end_date?: string | null;
239
+ /**
240
+ * Specifies when the rule should begin applying based on the date.
241
+ */
242
+ effective_start_date?: string | null;
243
+ /**
244
+ * The entity type to which the rule is applied.
245
+ */
246
+ entity_type?: 'pay_statement_item';
247
+ /**
248
+ * The priority of the rule.
249
+ */
250
+ priority?: number;
251
+ /**
252
+ * The datetime when the rule was last updated.
253
+ */
254
+ updated_at?: string;
255
+ }
256
+ export declare namespace RuleDeleteResponse {
257
+ /**
258
+ * Specifies the fields to be applied when the condition is met.
259
+ */
260
+ interface Attributes {
261
+ /**
262
+ * The metadata to be attached in the entity. It is a key-value pairs where the
263
+ * values can be of any type (string, number, boolean, object, array, etc.).
264
+ */
265
+ metadata?: Record<string, unknown>;
266
+ }
267
+ interface Condition {
268
+ /**
269
+ * The field to be checked in the rule.
270
+ */
271
+ field?: string;
272
+ /**
273
+ * The operator to be used in the rule.
274
+ */
275
+ operator?: 'equals';
276
+ /**
277
+ * The value of the field to be checked in the rule.
278
+ */
279
+ value?: string;
280
+ }
281
+ }
282
+ export interface RuleCreateParams {
283
+ /**
284
+ * Specifies the fields to be applied when the condition is met.
285
+ */
286
+ attributes?: RuleCreateParams.Attributes;
287
+ conditions?: Array<RuleCreateParams.Condition>;
288
+ /**
289
+ * Specifies when the rules should stop applying rules based on the date.
290
+ */
291
+ effective_end_date?: string | null;
292
+ /**
293
+ * Specifies when the rule should begin applying based on the date.
294
+ */
295
+ effective_start_date?: string | null;
296
+ /**
297
+ * The entity type to which the rule is applied.
298
+ */
299
+ entity_type?: 'pay_statement_item';
300
+ }
301
+ export declare namespace RuleCreateParams {
302
+ /**
303
+ * Specifies the fields to be applied when the condition is met.
304
+ */
305
+ interface Attributes {
306
+ /**
307
+ * The metadata to be attached in the entity. It is a key-value pairs where the
308
+ * values can be of any type (string, number, boolean, object, array, etc.).
309
+ */
310
+ metadata?: Record<string, unknown>;
311
+ }
312
+ interface Condition {
313
+ /**
314
+ * The field to be checked in the rule.
315
+ */
316
+ field?: string;
317
+ /**
318
+ * The operator to be used in the rule.
319
+ */
320
+ operator?: 'equals';
321
+ /**
322
+ * The value of the field to be checked in the rule.
323
+ */
324
+ value?: string;
325
+ }
326
+ }
327
+ export interface RuleUpdateParams {
328
+ optionalProperty?: unknown;
329
+ }
330
+ export declare namespace Rules {
331
+ export { type RuleCreateResponse as RuleCreateResponse, type RuleUpdateResponse as RuleUpdateResponse, type RuleListResponse as RuleListResponse, type RuleDeleteResponse as RuleDeleteResponse, RuleListResponsesPage as RuleListResponsesPage, type RuleCreateParams as RuleCreateParams, type RuleUpdateParams as RuleUpdateParams, };
332
+ }
333
+ //# sourceMappingURL=rules.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rules.d.ts","sourceRoot":"","sources":["../../../../src/resources/hris/company/pay-statement-item/rules.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEnD,OAAO,KAAK,IAAI,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEvD,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;OAOG;IACH,MAAM,CAAC,IAAI,CAAC,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,kBAAkB,CAAC;IACnG,MAAM,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,kBAAkB,CAAC;IAW1E;;;OAGG;IACH,MAAM,CACJ,MAAM,EAAE,MAAM,EACd,IAAI,CAAC,EAAE,gBAAgB,EACvB,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,kBAAkB,CAAC;IACtC,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,kBAAkB,CAAC;IAY1F;;;OAGG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,WAAW,CAAC,qBAAqB,EAAE,gBAAgB,CAAC;IAI9F;;;OAGG;IACH,MAA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gBAAgB;IAC/B;;OAEG;IACH,UAAU,CAAC,EAAE,gBAAgB,CAAC,UAAU,CAAC;IAEzC,UAAU,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC;IAE/C;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEnC;;OAEG;IACH,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAErC;;OAEG;IACH,WAAW,CAAC,EAAE,oBAAoB,CAAC;CACpC;AAED,yBAAiB,gBAAgB,CAAC;IAChC;;OAEG;IACH,UAAiB,UAAU;QACzB;;;WAGG;QACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACpC;IAED,UAAiB,SAAS;QACxB;;WAEG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;QAEf;;WAEG;QACH,QAAQ,CAAC,EAAE,QAAQ,CAAC;QAEpB;;WAEG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB;CACF;AAED,MAAM,WAAW,gBAAgB;IAC/B,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAID,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,qBAAqB,IAAI,qBAAqB,EAC9C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.RuleListResponsesPage = exports.Rules = void 0;
5
+ const resource_1 = require("../../../../resource.js");
6
+ const core_1 = require("../../../../core.js");
7
+ const pagination_1 = require("../../../../pagination.js");
8
+ class Rules extends resource_1.APIResource {
9
+ create(body = {}, options) {
10
+ if ((0, core_1.isRequestOptions)(body)) {
11
+ return this.create({}, body);
12
+ }
13
+ return this._client.post('/employer/pay-statement-item/rule', { body, ...options });
14
+ }
15
+ update(ruleId, body = {}, options) {
16
+ if ((0, core_1.isRequestOptions)(body)) {
17
+ return this.update(ruleId, {}, body);
18
+ }
19
+ return this._client.put(`/employer/pay-statement-item/rule/${ruleId}`, { body, ...options });
20
+ }
21
+ /**
22
+ * **Beta:** this endpoint currently serves employers onboarded after March 4th and
23
+ * historical support will be added soon List all rules of a connection account.
24
+ */
25
+ list(options) {
26
+ return this._client.getAPIList('/employer/pay-statement-item/rule', RuleListResponsesPage, options);
27
+ }
28
+ /**
29
+ * **Beta:** this endpoint currently serves employers onboarded after March 4th and
30
+ * historical support will be added soon Delete a rule for a pay statement item.
31
+ */
32
+ delete(ruleId, options) {
33
+ return this._client.delete(`/employer/pay-statement-item/rule/${ruleId}`, options);
34
+ }
35
+ }
36
+ exports.Rules = Rules;
37
+ class RuleListResponsesPage extends pagination_1.ResponsesPage {
38
+ }
39
+ exports.RuleListResponsesPage = RuleListResponsesPage;
40
+ Rules.RuleListResponsesPage = RuleListResponsesPage;
41
+ //# sourceMappingURL=rules.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rules.js","sourceRoot":"","sources":["../../../../src/resources/hris/company/pay-statement-item/rules.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sDAAmD;AACnD,8CAAoD;AAEpD,0DAAuD;AAEvD,MAAa,KAAM,SAAQ,sBAAW;IAWpC,MAAM,CACJ,OAA+C,EAAE,EACjD,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,IAAI,CAAC,EAAE;YAC1B,OAAO,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;SAC9B;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mCAAmC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtF,CAAC;IAYD,MAAM,CACJ,MAAc,EACd,OAA+C,EAAE,EACjD,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,IAAI,CAAC,EAAE;YAC1B,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;SACtC;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qCAAqC,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/F,CAAC;IAED;;;OAGG;IACH,IAAI,CAAC,OAA6B;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,mCAAmC,EAAE,qBAAqB,EAAE,OAAO,CAAC,CAAC;IACtG,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,MAAc,EAAE,OAA6B;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,qCAAqC,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IACrF,CAAC;CACF;AAzDD,sBAyDC;AAED,MAAa,qBAAsB,SAAQ,0BAA+B;CAAG;AAA7E,sDAA6E;AAyW7E,KAAK,CAAC,qBAAqB,GAAG,qBAAqB,CAAC"}
@@ -0,0 +1,36 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../../../resource.mjs";
3
+ import { isRequestOptions } from "../../../../core.mjs";
4
+ import { ResponsesPage } from "../../../../pagination.mjs";
5
+ export class Rules extends APIResource {
6
+ create(body = {}, options) {
7
+ if (isRequestOptions(body)) {
8
+ return this.create({}, body);
9
+ }
10
+ return this._client.post('/employer/pay-statement-item/rule', { body, ...options });
11
+ }
12
+ update(ruleId, body = {}, options) {
13
+ if (isRequestOptions(body)) {
14
+ return this.update(ruleId, {}, body);
15
+ }
16
+ return this._client.put(`/employer/pay-statement-item/rule/${ruleId}`, { body, ...options });
17
+ }
18
+ /**
19
+ * **Beta:** this endpoint currently serves employers onboarded after March 4th and
20
+ * historical support will be added soon List all rules of a connection account.
21
+ */
22
+ list(options) {
23
+ return this._client.getAPIList('/employer/pay-statement-item/rule', RuleListResponsesPage, options);
24
+ }
25
+ /**
26
+ * **Beta:** this endpoint currently serves employers onboarded after March 4th and
27
+ * historical support will be added soon Delete a rule for a pay statement item.
28
+ */
29
+ delete(ruleId, options) {
30
+ return this._client.delete(`/employer/pay-statement-item/rule/${ruleId}`, options);
31
+ }
32
+ }
33
+ export class RuleListResponsesPage extends ResponsesPage {
34
+ }
35
+ Rules.RuleListResponsesPage = RuleListResponsesPage;
36
+ //# sourceMappingURL=rules.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rules.mjs","sourceRoot":"","sources":["../../../../src/resources/hris/company/pay-statement-item/rules.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;OAEpB,EAAE,aAAa,EAAE;AAExB,MAAM,OAAO,KAAM,SAAQ,WAAW;IAWpC,MAAM,CACJ,OAA+C,EAAE,EACjD,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,IAAI,CAAC,EAAE;YAC1B,OAAO,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;SAC9B;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mCAAmC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtF,CAAC;IAYD,MAAM,CACJ,MAAc,EACd,OAA+C,EAAE,EACjD,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,IAAI,CAAC,EAAE;YAC1B,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;SACtC;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qCAAqC,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/F,CAAC;IAED;;;OAGG;IACH,IAAI,CAAC,OAA6B;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,mCAAmC,EAAE,qBAAqB,EAAE,OAAO,CAAC,CAAC;IACtG,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,MAAc,EAAE,OAA6B;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,qCAAqC,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IACrF,CAAC;CACF;AAED,MAAM,OAAO,qBAAsB,SAAQ,aAA+B;CAAG;AAyW7E,KAAK,CAAC,qBAAqB,GAAG,qBAAqB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./pay-statement-item/index.js";
2
+ //# sourceMappingURL=pay-statement-item.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pay-statement-item.d.ts","sourceRoot":"","sources":["../../../src/resources/hris/company/pay-statement-item.ts"],"names":[],"mappings":"AAEA,cAAc,4BAA4B,CAAC"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16
+ };
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ __exportStar(require("./pay-statement-item/index.js"), exports);
19
+ //# sourceMappingURL=pay-statement-item.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pay-statement-item.js","sourceRoot":"","sources":["../../../src/resources/hris/company/pay-statement-item.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;AAEtF,gEAA2C"}
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export * from "./pay-statement-item/index.mjs";
3
+ //# sourceMappingURL=pay-statement-item.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pay-statement-item.mjs","sourceRoot":"","sources":["../../../src/resources/hris/company/pay-statement-item.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
@@ -1,107 +1,2 @@
1
- import { APIResource } from "../../resource.js";
2
- import * as Core from "../../core.js";
3
- import * as HRISAPI from "./hris.js";
4
- export declare class CompanyResource extends APIResource {
5
- /**
6
- * Read basic company data
7
- */
8
- retrieve(options?: Core.RequestOptions): Core.APIPromise<Company>;
9
- }
10
- export interface Company {
11
- /**
12
- * A stable Finch `id` (UUID v4) for the company.
13
- */
14
- id: string;
15
- /**
16
- * An array of bank account objects associated with the payroll/HRIS system.
17
- */
18
- accounts: Array<Company.Account> | null;
19
- /**
20
- * The array of company departments.
21
- */
22
- departments: Array<Company.Department | null> | null;
23
- /**
24
- * The employer identification number.
25
- */
26
- ein: string | null;
27
- /**
28
- * The entity type object.
29
- */
30
- entity: Company.Entity | null;
31
- /**
32
- * The legal name of the company.
33
- */
34
- legal_name: string | null;
35
- locations: Array<HRISAPI.Location | null> | null;
36
- /**
37
- * The email of the main administrator on the account.
38
- */
39
- primary_email: string | null;
40
- /**
41
- * The phone number of the main administrator on the account. Format: `XXXXXXXXXX`
42
- */
43
- primary_phone_number: string | null;
44
- }
45
- export declare namespace Company {
46
- interface Account {
47
- /**
48
- * The name of the bank associated in the payroll/HRIS system.
49
- */
50
- account_name?: string | null;
51
- /**
52
- * 10-12 digit number to specify the bank account
53
- */
54
- account_number?: string | null;
55
- /**
56
- * The type of bank account.
57
- */
58
- account_type?: 'checking' | 'savings' | null;
59
- /**
60
- * Name of the banking institution.
61
- */
62
- institution_name?: string | null;
63
- /**
64
- * A nine-digit code that's based on the U.S. Bank location where your account was
65
- * opened.
66
- */
67
- routing_number?: string | null;
68
- }
69
- interface Department {
70
- /**
71
- * The department name.
72
- */
73
- name?: string | null;
74
- /**
75
- * The parent department, if present.
76
- */
77
- parent?: Department.Parent | null;
78
- }
79
- namespace Department {
80
- /**
81
- * The parent department, if present.
82
- */
83
- interface Parent {
84
- /**
85
- * The parent department's name.
86
- */
87
- name?: string | null;
88
- }
89
- }
90
- /**
91
- * The entity type object.
92
- */
93
- interface Entity {
94
- /**
95
- * The tax payer subtype of the company.
96
- */
97
- subtype?: 's_corporation' | 'c_corporation' | 'b_corporation' | null;
98
- /**
99
- * The tax payer type of the company.
100
- */
101
- type?: 'llc' | 'lp' | 'corporation' | 'sole_proprietor' | 'non_profit' | 'partnership' | 'cooperative' | null;
102
- }
103
- }
104
- export declare namespace CompanyResource {
105
- export { type Company as Company };
106
- }
1
+ export * from "./company/index.js";
107
2
  //# sourceMappingURL=company.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"company.d.ts","sourceRoot":"","sources":["../../src/resources/hris/company.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,OAAO,MAAM,QAAQ,CAAC;AAElC,qBAAa,eAAgB,SAAQ,WAAW;IAC9C;;OAEG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC;CAGlE;AAED,MAAM,WAAW,OAAO;IACtB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;O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iB,MAAM;QACrB;;WAEG;QACH,OAAO,CAAC,EAAE,eAAe,GAAG,eAAe,GAAG,eAAe,GAAG,IAAI,CAAC;QAErE;;WAEG;QACH,IAAI,CAAC,EACD,KAAK,GACL,IAAI,GACJ,aAAa,GACb,iBAAiB,GACjB,YAAY,GACZ,aAAa,GACb,aAAa,GACb,IAAI,CAAC;KACV;CACF;AAED,MAAM,CAAC,OAAO,WAAW,eAAe,CAAC;IACvC,OAAO,EAAE,KAAK,OAAO,IAAI,OAAO,EAAE,CAAC;CACpC"}
1
+ {"version":3,"file":"company.d.ts","sourceRoot":"","sources":["../../src/resources/hris/company.ts"],"names":[],"mappings":"AAEA,cAAc,iBAAiB,CAAC"}
@@ -1,15 +1,19 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.CompanyResource = void 0;
5
- const resource_1 = require("../../resource.js");
6
- class CompanyResource extends resource_1.APIResource {
7
- /**
8
- * Read basic company data
9
- */
10
- retrieve(options) {
11
- return this._client.get('/employer/company', options);
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
12
8
  }
13
- }
14
- exports.CompanyResource = CompanyResource;
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16
+ };
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ __exportStar(require("./company/index.js"), exports);
15
19
  //# sourceMappingURL=company.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"company.js","sourceRoot":"","sources":["../../src/resources/hris/company.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAI7C,MAAa,eAAgB,SAAQ,sBAAW;IAC9C;;OAEG;IACH,QAAQ,CAAC,OAA6B;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC;IACxD,CAAC;CACF;AAPD,0CAOC"}
1
+ {"version":3,"file":"company.js","sourceRoot":"","sources":["../../src/resources/hris/company.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;AAEtF,qDAAgC"}
@@ -1,11 +1,3 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../../resource.mjs";
3
- export class CompanyResource extends APIResource {
4
- /**
5
- * Read basic company data
6
- */
7
- retrieve(options) {
8
- return this._client.get('/employer/company', options);
9
- }
10
- }
2
+ export * from "./company/index.mjs";
11
3
  //# sourceMappingURL=company.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"company.mjs","sourceRoot":"","sources":["../../src/resources/hris/company.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,eAAgB,SAAQ,WAAW;IAC9C;;OAEG;IACH,QAAQ,CAAC,OAA6B;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC;IACxD,CAAC;CACF"}
1
+ {"version":3,"file":"company.mjs","sourceRoot":"","sources":["../../src/resources/hris/company.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
@@ -17,7 +17,7 @@ export declare class Directory extends APIResource {
17
17
  }
18
18
  export interface IndividualInDirectory {
19
19
  /**
20
- * A stable Finch id (UUID v4) for an individual in the company.
20
+ * A stable Finch `id` (UUID v4) for an individual in the company.
21
21
  */
22
22
  id?: string;
23
23
  /**