@rippling/rippling-sdk 0.2.0-alpha.35 → 0.2.0-alpha.37

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 (149) hide show
  1. package/client.d.mts +13 -1
  2. package/client.d.mts.map +1 -1
  3. package/client.d.ts +13 -1
  4. package/client.d.ts.map +1 -1
  5. package/client.js +13 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs +13 -1
  8. package/client.mjs.map +1 -1
  9. package/examples/.keep +4 -0
  10. package/examples/manifest/dental-practice-management/dental-practice-management.ts +638 -0
  11. package/examples/manifest/dental-practice-management/manifest.json +1870 -0
  12. package/examples/manifest/gym-membership-management/gym-membership-management.ts +746 -0
  13. package/examples/manifest/gym-membership-management/manifest.json +1975 -0
  14. package/examples/sdui/sdui-crud-todo/rippling-function.ts +367 -0
  15. package/examples/sdui/sdui-crud-todo/sdui-crud-todo.ts +282 -0
  16. package/examples/sdui/sdui-showcase/rippling-function.ts +381 -0
  17. package/examples/sdui/sdui-showcase/sdui-showcase.ts +351 -0
  18. package/examples/sdui/sdui-tab-multi-view/rippling-function.ts +1061 -0
  19. package/examples/sdui/sdui-tab-multi-view/sdui-tab-multi-view.ts +924 -0
  20. package/examples/sdui/vote/rippling-function.ts +330 -0
  21. package/examples/sdui/vote/vote.ts +298 -0
  22. package/internal/utils/log.d.mts.map +1 -1
  23. package/internal/utils/log.d.ts.map +1 -1
  24. package/internal/utils/log.js +2 -0
  25. package/internal/utils/log.js.map +1 -1
  26. package/internal/utils/log.mjs +2 -0
  27. package/internal/utils/log.mjs.map +1 -1
  28. package/lib/manifest/custom-object-field-section.d.mts +4 -0
  29. package/lib/manifest/custom-object-field-section.d.mts.map +1 -1
  30. package/lib/manifest/custom-object-field-section.d.ts +4 -0
  31. package/lib/manifest/custom-object-field-section.d.ts.map +1 -1
  32. package/lib/manifest/custom-object-field-section.js +6 -0
  33. package/lib/manifest/custom-object-field-section.js.map +1 -1
  34. package/lib/manifest/custom-object-field-section.mjs +6 -0
  35. package/lib/manifest/custom-object-field-section.mjs.map +1 -1
  36. package/lib/manifest/custom-object-page-layout.d.mts +21 -13
  37. package/lib/manifest/custom-object-page-layout.d.mts.map +1 -1
  38. package/lib/manifest/custom-object-page-layout.d.ts +21 -13
  39. package/lib/manifest/custom-object-page-layout.d.ts.map +1 -1
  40. package/lib/manifest/custom-object-page-layout.js +119 -9
  41. package/lib/manifest/custom-object-page-layout.js.map +1 -1
  42. package/lib/manifest/custom-object-page-layout.mjs +119 -9
  43. package/lib/manifest/custom-object-page-layout.mjs.map +1 -1
  44. package/lib/manifest/field.d.mts +5 -1
  45. package/lib/manifest/field.d.mts.map +1 -1
  46. package/lib/manifest/field.d.ts +5 -1
  47. package/lib/manifest/field.d.ts.map +1 -1
  48. package/lib/manifest/field.js +8 -0
  49. package/lib/manifest/field.js.map +1 -1
  50. package/lib/manifest/field.mjs +8 -0
  51. package/lib/manifest/field.mjs.map +1 -1
  52. package/lib/manifest/index.d.mts +1 -1
  53. package/lib/manifest/index.d.mts.map +1 -1
  54. package/lib/manifest/index.d.ts +1 -1
  55. package/lib/manifest/index.d.ts.map +1 -1
  56. package/lib/manifest/index.js.map +1 -1
  57. package/lib/manifest/index.mjs.map +1 -1
  58. package/package.json +11 -1
  59. package/resources/company-legal-entities.d.mts +180 -0
  60. package/resources/company-legal-entities.d.mts.map +1 -0
  61. package/resources/company-legal-entities.d.ts +180 -0
  62. package/resources/company-legal-entities.d.ts.map +1 -0
  63. package/resources/company-legal-entities.js +30 -0
  64. package/resources/company-legal-entities.js.map +1 -0
  65. package/resources/company-legal-entities.mjs +26 -0
  66. package/resources/company-legal-entities.mjs.map +1 -0
  67. package/resources/company-legal-entity-workers.d.mts +79 -0
  68. package/resources/company-legal-entity-workers.d.mts.map +1 -0
  69. package/resources/company-legal-entity-workers.d.ts +79 -0
  70. package/resources/company-legal-entity-workers.d.ts.map +1 -0
  71. package/resources/company-legal-entity-workers.js +30 -0
  72. package/resources/company-legal-entity-workers.js.map +1 -0
  73. package/resources/company-legal-entity-workers.mjs +26 -0
  74. package/resources/company-legal-entity-workers.mjs.map +1 -0
  75. package/resources/earning-types.d.mts +1 -6
  76. package/resources/earning-types.d.mts.map +1 -1
  77. package/resources/earning-types.d.ts +1 -6
  78. package/resources/earning-types.d.ts.map +1 -1
  79. package/resources/earning-types.js +1 -1
  80. package/resources/earning-types.mjs +1 -1
  81. package/resources/earnings-inputs.d.mts +1 -1
  82. package/resources/earnings-inputs.d.ts +1 -1
  83. package/resources/earnings-inputs.js +1 -1
  84. package/resources/earnings-inputs.mjs +1 -1
  85. package/resources/index.d.mts +3 -1
  86. package/resources/index.d.mts.map +1 -1
  87. package/resources/index.d.ts +3 -1
  88. package/resources/index.d.ts.map +1 -1
  89. package/resources/index.js +7 -3
  90. package/resources/index.js.map +1 -1
  91. package/resources/index.mjs +3 -1
  92. package/resources/index.mjs.map +1 -1
  93. package/resources/legal-entities.d.mts +1 -1
  94. package/resources/legal-entities.d.mts.map +1 -1
  95. package/resources/legal-entities.d.ts +1 -1
  96. package/resources/legal-entities.d.ts.map +1 -1
  97. package/resources/payroll-runs/index.d.mts +3 -0
  98. package/resources/payroll-runs/index.d.mts.map +1 -0
  99. package/resources/payroll-runs/index.d.ts +3 -0
  100. package/resources/payroll-runs/index.d.ts.map +1 -0
  101. package/resources/payroll-runs/index.js +9 -0
  102. package/resources/payroll-runs/index.js.map +1 -0
  103. package/resources/payroll-runs/index.mjs +4 -0
  104. package/resources/payroll-runs/index.mjs.map +1 -0
  105. package/resources/payroll-runs/payroll-runs.d.mts +199 -0
  106. package/resources/payroll-runs/payroll-runs.d.mts.map +1 -0
  107. package/resources/payroll-runs/payroll-runs.d.ts +199 -0
  108. package/resources/payroll-runs/payroll-runs.d.ts.map +1 -0
  109. package/resources/payroll-runs/payroll-runs.js +40 -0
  110. package/resources/payroll-runs/payroll-runs.js.map +1 -0
  111. package/resources/payroll-runs/payroll-runs.mjs +35 -0
  112. package/resources/payroll-runs/payroll-runs.mjs.map +1 -0
  113. package/resources/payroll-runs/worker-payroll-records.d.mts +200 -0
  114. package/resources/payroll-runs/worker-payroll-records.d.mts.map +1 -0
  115. package/resources/payroll-runs/worker-payroll-records.d.ts +200 -0
  116. package/resources/payroll-runs/worker-payroll-records.d.ts.map +1 -0
  117. package/resources/payroll-runs/worker-payroll-records.js +23 -0
  118. package/resources/payroll-runs/worker-payroll-records.js.map +1 -0
  119. package/resources/payroll-runs/worker-payroll-records.mjs +19 -0
  120. package/resources/payroll-runs/worker-payroll-records.mjs.map +1 -0
  121. package/resources/payroll-runs.d.mts +1 -194
  122. package/resources/payroll-runs.d.mts.map +1 -1
  123. package/resources/payroll-runs.d.ts +1 -194
  124. package/resources/payroll-runs.d.ts.map +1 -1
  125. package/resources/payroll-runs.js +2 -28
  126. package/resources/payroll-runs.js.map +1 -1
  127. package/resources/payroll-runs.mjs +1 -26
  128. package/resources/payroll-runs.mjs.map +1 -1
  129. package/src/client.ts +47 -7
  130. package/src/internal/utils/log.ts +2 -0
  131. package/src/lib/manifest/custom-object-field-section.ts +7 -0
  132. package/src/lib/manifest/custom-object-page-layout.ts +220 -18
  133. package/src/lib/manifest/field.ts +9 -1
  134. package/src/lib/manifest/index.ts +2 -0
  135. package/src/resources/company-legal-entities.ts +237 -0
  136. package/src/resources/company-legal-entity-workers.ts +115 -0
  137. package/src/resources/earning-types.ts +1 -7
  138. package/src/resources/earnings-inputs.ts +1 -1
  139. package/src/resources/index.ts +15 -1
  140. package/src/resources/legal-entities.ts +1 -1
  141. package/src/resources/payroll-runs/index.ts +15 -0
  142. package/src/resources/payroll-runs/payroll-runs.ts +270 -0
  143. package/src/resources/payroll-runs/worker-payroll-records.ts +255 -0
  144. package/src/resources/payroll-runs.ts +1 -249
  145. package/src/version.ts +1 -1
  146. package/version.d.mts +1 -1
  147. package/version.d.ts +1 -1
  148. package/version.js +1 -1
  149. package/version.mjs +1 -1
@@ -14,7 +14,7 @@ export class EarningsInputs extends APIResource {
14
14
  /**
15
15
  * A list of earnings-inputs.
16
16
  *
17
- * - Requires: `Payroll API`
17
+ * - Requires: `Global Payroll`
18
18
  */
19
19
  list(
20
20
  options?: RequestOptions,
@@ -33,6 +33,20 @@ export {
33
33
  type CandidateListResponsesPageCursorURL,
34
34
  } from './candidates';
35
35
  export { Companies, type Company, type CompanyListParams, type CompaniesPageCursorURL } from './companies';
36
+ export {
37
+ CompanyLegalEntities,
38
+ type CompanyLegalEntityListResponse,
39
+ type CompanyLegalEntityRetrieveResponse,
40
+ type CompanyLegalEntityListParams,
41
+ type CompanyLegalEntityListResponsesPageCursorURL,
42
+ } from './company-legal-entities';
43
+ export {
44
+ CompanyLegalEntityWorkers,
45
+ type CompanyLegalEntityWorkerListResponse,
46
+ type CompanyLegalEntityWorkerRetrieveResponse,
47
+ type CompanyLegalEntityWorkerListParams,
48
+ type CompanyLegalEntityWorkerListResponsesPageCursorURL,
49
+ } from './company-legal-entity-workers';
36
50
  export {
37
51
  CompensationBandsDetails,
38
52
  type CompensationBandsDetailListResponse,
@@ -308,7 +322,7 @@ export {
308
322
  type PayrollRunRetrieveResponse,
309
323
  type PayrollRunListParams,
310
324
  type PayrollRunListResponsesPageCursorURL,
311
- } from './payroll-runs';
325
+ } from './payroll-runs/payroll-runs';
312
326
  export {
313
327
  PlatformCapabilities,
314
328
  type PlatformCapabilityListResponse,
@@ -98,7 +98,7 @@ export interface LegalEntity {
98
98
  * considered a Professional Employment Organization (PEO). _ `EOR`: The legal
99
99
  * entity is considered an Employer of Record (EOR).
100
100
  */
101
- management_type?: 'PEO' | 'EOR';
101
+ management_type?: 'PEO' | 'EOR' | 'COR';
102
102
 
103
103
  parent?: unknown;
104
104
 
@@ -0,0 +1,15 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ export {
4
+ PayrollRuns,
5
+ type PayrollRunListResponse,
6
+ type PayrollRunRetrieveResponse,
7
+ type PayrollRunListParams,
8
+ type PayrollRunListResponsesPageCursorURL,
9
+ } from './payroll-runs';
10
+ export {
11
+ WorkerPayrollRecords,
12
+ type WorkerPayrollRecordListResponse,
13
+ type WorkerPayrollRecordListParams,
14
+ type WorkerPayrollRecordListResponsesPageCursorURL,
15
+ } from './worker-payroll-records';
@@ -0,0 +1,270 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../core/resource';
4
+ import * as BusinessPartnersAPI from '../business-partners';
5
+ import * as WorkerPayrollRecordsAPI from './worker-payroll-records';
6
+ import {
7
+ WorkerPayrollRecordListParams,
8
+ WorkerPayrollRecordListResponse,
9
+ WorkerPayrollRecordListResponsesPageCursorURL,
10
+ WorkerPayrollRecords,
11
+ } from './worker-payroll-records';
12
+ import { APIPromise } from '../../core/api-promise';
13
+ import { PageCursorURL, PagePromise } from '../../core/pagination';
14
+ import { RequestOptions } from '../../internal/request-options';
15
+ import { path } from '../../internal/utils/path';
16
+
17
+ /**
18
+ * Payroll runs for the company
19
+ */
20
+ export class PayrollRuns extends APIResource {
21
+ workerPayrollRecords: WorkerPayrollRecordsAPI.WorkerPayrollRecords =
22
+ new WorkerPayrollRecordsAPI.WorkerPayrollRecords(this._client);
23
+
24
+ /**
25
+ * A list of payroll-runs.
26
+ *
27
+ * - Requires: `Global Payroll`
28
+ * - Sortable fields: `check_date`
29
+ */
30
+ list(
31
+ query: PayrollRunListParams | null | undefined = {},
32
+ options?: RequestOptions,
33
+ ): PagePromise<PayrollRunListResponsesPageCursorURL, PayrollRunListResponse> {
34
+ return this._client.getAPIList('/payroll-runs/', PageCursorURL<PayrollRunListResponse>, {
35
+ query,
36
+ ...options,
37
+ });
38
+ }
39
+
40
+ /**
41
+ * Retrieve a specific payroll-run
42
+ */
43
+ retrieve(id: string, options?: RequestOptions): APIPromise<PayrollRunRetrieveResponse> {
44
+ return this._client.get(path`/payroll-runs/${id}/`, options);
45
+ }
46
+ }
47
+
48
+ export type PayrollRunListResponsesPageCursorURL = PageCursorURL<PayrollRunListResponse>;
49
+
50
+ /**
51
+ * V2 DTO representing a single payroll run.
52
+ *
53
+ * Used by:
54
+ * - GET /payroll-runs/ (list)
55
+ * - GET /payroll-runs/{id} (retrieve)
56
+ */
57
+ export interface PayrollRunListResponse {
58
+ /**
59
+ * Unique identifier for the payroll run.
60
+ */
61
+ id?: string;
62
+
63
+ /**
64
+ * Deadline for approving the payroll run.
65
+ */
66
+ approval_deadline?: string;
67
+
68
+ /**
69
+ * Timestamp when the run was approved.
70
+ */
71
+ approved_at?: string;
72
+
73
+ /**
74
+ * Date the paycheck is issued.
75
+ */
76
+ check_date?: string;
77
+
78
+ /**
79
+ * Identifier linking this payroll run to the company's legal entity in the HRIS
80
+ * system.
81
+ */
82
+ company_entity_id?: string;
83
+
84
+ /**
85
+ * ISO country code where the payroll run applies.
86
+ */
87
+ country_code?: string;
88
+
89
+ /**
90
+ * Date funds are debited from the company's account.
91
+ */
92
+ debit_date?: string;
93
+
94
+ /**
95
+ * Deadline after which the run is locked for changes.
96
+ */
97
+ lock_deadline?: string;
98
+
99
+ /**
100
+ * Timestamp when the run was marked as paid.
101
+ */
102
+ paid_at?: string;
103
+
104
+ /**
105
+ * Pay period details for this run.
106
+ */
107
+ pay_period?: PayrollRunListResponse.PayPeriod;
108
+
109
+ /**
110
+ * Payment method used (e.g. WIRE, ACH).
111
+ */
112
+ payment_type?: string;
113
+
114
+ /**
115
+ * Current state of the run (e.g. DRAFT, PAID, APPROVED).
116
+ */
117
+ run_state?: string;
118
+
119
+ /**
120
+ * Type of the run (e.g. REGULAR, OFF_CYCLE, CORRECTION).
121
+ */
122
+ run_type?: string;
123
+
124
+ /**
125
+ * Human-readable title of the payroll run.
126
+ */
127
+ title?: string;
128
+ }
129
+
130
+ export namespace PayrollRunListResponse {
131
+ /**
132
+ * Pay period details for this run.
133
+ */
134
+ export interface PayPeriod {
135
+ /**
136
+ * End date of the pay period.
137
+ */
138
+ end_date?: string;
139
+
140
+ /**
141
+ * Pay frequency for this period (e.g. BI_WEEKLY, SEMI_MONTHLY, MONTHLY, WEEKLY).
142
+ */
143
+ pay_frequency?: string;
144
+
145
+ /**
146
+ * Start date of the pay period.
147
+ */
148
+ start_date?: string;
149
+ }
150
+ }
151
+
152
+ /**
153
+ * Meta information for the response.
154
+ */
155
+ export interface PayrollRunRetrieveResponse extends BusinessPartnersAPI.Meta {
156
+ /**
157
+ * Unique identifier for the payroll run.
158
+ */
159
+ id?: string;
160
+
161
+ /**
162
+ * Deadline for approving the payroll run.
163
+ */
164
+ approval_deadline?: string;
165
+
166
+ /**
167
+ * Timestamp when the run was approved.
168
+ */
169
+ approved_at?: string;
170
+
171
+ /**
172
+ * Date the paycheck is issued.
173
+ */
174
+ check_date?: string;
175
+
176
+ /**
177
+ * Identifier linking this payroll run to the company's legal entity in the HRIS
178
+ * system.
179
+ */
180
+ company_entity_id?: string;
181
+
182
+ /**
183
+ * ISO country code where the payroll run applies.
184
+ */
185
+ country_code?: string;
186
+
187
+ /**
188
+ * Date funds are debited from the company's account.
189
+ */
190
+ debit_date?: string;
191
+
192
+ /**
193
+ * Deadline after which the run is locked for changes.
194
+ */
195
+ lock_deadline?: string;
196
+
197
+ /**
198
+ * Timestamp when the run was marked as paid.
199
+ */
200
+ paid_at?: string;
201
+
202
+ /**
203
+ * Pay period details for this run.
204
+ */
205
+ pay_period?: PayrollRunRetrieveResponse.PayPeriod;
206
+
207
+ /**
208
+ * Payment method used (e.g. WIRE, ACH).
209
+ */
210
+ payment_type?: string;
211
+
212
+ /**
213
+ * Current state of the run (e.g. DRAFT, PAID, APPROVED).
214
+ */
215
+ run_state?: string;
216
+
217
+ /**
218
+ * Type of the run (e.g. REGULAR, OFF_CYCLE, CORRECTION).
219
+ */
220
+ run_type?: string;
221
+
222
+ /**
223
+ * Human-readable title of the payroll run.
224
+ */
225
+ title?: string;
226
+ }
227
+
228
+ export namespace PayrollRunRetrieveResponse {
229
+ /**
230
+ * Pay period details for this run.
231
+ */
232
+ export interface PayPeriod {
233
+ /**
234
+ * End date of the pay period.
235
+ */
236
+ end_date?: string;
237
+
238
+ /**
239
+ * Pay frequency for this period (e.g. BI_WEEKLY, SEMI_MONTHLY, MONTHLY, WEEKLY).
240
+ */
241
+ pay_frequency?: string;
242
+
243
+ /**
244
+ * Start date of the pay period.
245
+ */
246
+ start_date?: string;
247
+ }
248
+ }
249
+
250
+ export interface PayrollRunListParams {
251
+ order_by?: string;
252
+ }
253
+
254
+ PayrollRuns.WorkerPayrollRecords = WorkerPayrollRecords;
255
+
256
+ export declare namespace PayrollRuns {
257
+ export {
258
+ type PayrollRunListResponse as PayrollRunListResponse,
259
+ type PayrollRunRetrieveResponse as PayrollRunRetrieveResponse,
260
+ type PayrollRunListResponsesPageCursorURL as PayrollRunListResponsesPageCursorURL,
261
+ type PayrollRunListParams as PayrollRunListParams,
262
+ };
263
+
264
+ export {
265
+ WorkerPayrollRecords as WorkerPayrollRecords,
266
+ type WorkerPayrollRecordListResponse as WorkerPayrollRecordListResponse,
267
+ type WorkerPayrollRecordListResponsesPageCursorURL as WorkerPayrollRecordListResponsesPageCursorURL,
268
+ type WorkerPayrollRecordListParams as WorkerPayrollRecordListParams,
269
+ };
270
+ }
@@ -0,0 +1,255 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../core/resource';
4
+ import { PageCursorURL, PagePromise } from '../../core/pagination';
5
+ import { RequestOptions } from '../../internal/request-options';
6
+ import { path } from '../../internal/utils/path';
7
+
8
+ /**
9
+ * Payroll runs for the company
10
+ */
11
+ export class WorkerPayrollRecords extends APIResource {
12
+ /**
13
+ * A list of worker-payroll-records for a payroll run. Supports filtering by worker
14
+ * via `filter=worker_id in ('<id1>', '<id2>')`.
15
+ *
16
+ * - Requires: `Global Payroll`
17
+ */
18
+ list(
19
+ runID: string,
20
+ query: WorkerPayrollRecordListParams | null | undefined = {},
21
+ options?: RequestOptions,
22
+ ): PagePromise<WorkerPayrollRecordListResponsesPageCursorURL, WorkerPayrollRecordListResponse> {
23
+ return this._client.getAPIList(
24
+ path`/payroll-runs/${runID}/worker-payroll-records/`,
25
+ PageCursorURL<WorkerPayrollRecordListResponse>,
26
+ { query, ...options },
27
+ );
28
+ }
29
+ }
30
+
31
+ export type WorkerPayrollRecordListResponsesPageCursorURL = PageCursorURL<WorkerPayrollRecordListResponse>;
32
+
33
+ /**
34
+ * V2 DTO representing earnings, deductions, taxes, and garnishments
35
+ * for a single worker in a payroll run.
36
+ *
37
+ * Used by:
38
+ * - GET /payroll-runs/{run_id}/worker-payroll-records/ (list)
39
+ * - GET /payroll-runs/{run_id}/worker-payroll-records/{id} (retrieve)
40
+ */
41
+ export interface WorkerPayrollRecordListResponse {
42
+ /**
43
+ * Unique identifier for this payroll record (PRE version ID).
44
+ */
45
+ id?: string;
46
+
47
+ /**
48
+ * ISO country code where this payroll record applies.
49
+ */
50
+ country_code?: string;
51
+
52
+ /**
53
+ * ISO currency code for monetary amounts in this record.
54
+ */
55
+ currency?: string;
56
+
57
+ /**
58
+ * List of deduction line items.
59
+ */
60
+ deductions?: Array<WorkerPayrollRecordListResponse.Deduction>;
61
+
62
+ /**
63
+ * List of earning line items.
64
+ */
65
+ earnings?: Array<WorkerPayrollRecordListResponse.Earning>;
66
+
67
+ /**
68
+ * List of garnishment line items.
69
+ */
70
+ garnishments?: Array<WorkerPayrollRecordListResponse.Garnishment>;
71
+
72
+ /**
73
+ * Gross pay amount for the current period.
74
+ */
75
+ gross_pay?: string;
76
+
77
+ /**
78
+ * Net pay amount for the current period.
79
+ */
80
+ net_pay?: string;
81
+
82
+ /**
83
+ * Identifier of the payroll run this record belongs to.
84
+ */
85
+ run_id?: string;
86
+
87
+ /**
88
+ * Aggregate totals for taxes, deductions, and garnishments.
89
+ */
90
+ summary?: WorkerPayrollRecordListResponse.Summary;
91
+
92
+ /**
93
+ * List of tax line items.
94
+ */
95
+ taxes?: Array<WorkerPayrollRecordListResponse.Tax>;
96
+
97
+ /**
98
+ * Identifier of the worker (role ID).
99
+ */
100
+ worker_id?: string;
101
+ }
102
+
103
+ export namespace WorkerPayrollRecordListResponse {
104
+ /**
105
+ * A single deduction line item on a worker's payroll record.
106
+ */
107
+ export interface Deduction {
108
+ /**
109
+ * Code identifying the deduction type.
110
+ */
111
+ deduction_code?: string;
112
+
113
+ /**
114
+ * Human-readable name of the deduction.
115
+ */
116
+ display_name?: string;
117
+
118
+ /**
119
+ * Employee contribution amount for the current period.
120
+ */
121
+ employee_amount?: string;
122
+
123
+ /**
124
+ * Employer contribution amount for the current period.
125
+ */
126
+ employer_amount?: string;
127
+ }
128
+
129
+ /**
130
+ * A single earning line item on a worker's payroll record.
131
+ */
132
+ export interface Earning {
133
+ /**
134
+ * Earning amount for the current period.
135
+ */
136
+ amount?: string;
137
+
138
+ /**
139
+ * Human-readable name of the earning.
140
+ */
141
+ display_name?: string;
142
+
143
+ /**
144
+ * Category of the earning (e.g. SALARY, HOURLY).
145
+ */
146
+ earning_category?: string;
147
+
148
+ /**
149
+ * Code identifying the earning type (e.g. regular_salary).
150
+ */
151
+ earning_code?: string;
152
+
153
+ /**
154
+ * Hours worked for this earning in the current period.
155
+ */
156
+ hours?: string;
157
+
158
+ /**
159
+ * Hourly rate applied to this earning.
160
+ */
161
+ rate?: string;
162
+
163
+ /**
164
+ * Time tracking labels associated with this earning.
165
+ */
166
+ time_labels?: Array<string>;
167
+ }
168
+
169
+ /**
170
+ * A single garnishment line item on a worker's payroll record.
171
+ */
172
+ export interface Garnishment {
173
+ /**
174
+ * Garnishment amount for the current period.
175
+ */
176
+ amount?: string;
177
+
178
+ /**
179
+ * Code identifying the garnishment.
180
+ */
181
+ garnishment_code?: string;
182
+ }
183
+
184
+ /**
185
+ * Aggregate totals for taxes, deductions, and garnishments.
186
+ */
187
+ export interface Summary {
188
+ /**
189
+ * Total employee deductions.
190
+ */
191
+ employee_deductions?: string;
192
+
193
+ /**
194
+ * Total employee-paid taxes.
195
+ */
196
+ employee_taxes?: string;
197
+
198
+ /**
199
+ * Total employer contributions (e.g. retirement matching).
200
+ */
201
+ employer_contributions?: string;
202
+
203
+ /**
204
+ * Total employer-paid taxes.
205
+ */
206
+ employer_taxes?: string;
207
+
208
+ /**
209
+ * Total garnishments withheld.
210
+ */
211
+ total_garnishments?: string;
212
+ }
213
+
214
+ /**
215
+ * A single tax line item on a worker's payroll record.
216
+ */
217
+ export interface Tax {
218
+ /**
219
+ * Tax amount for the current period.
220
+ */
221
+ amount?: string;
222
+
223
+ /**
224
+ * Human-readable name of the tax.
225
+ */
226
+ display_name?: string;
227
+
228
+ /**
229
+ * Who pays this tax: EMPLOYER or EMPLOYEE.
230
+ */
231
+ paid_by?: string;
232
+
233
+ /**
234
+ * Unique code identifying the tax.
235
+ */
236
+ tax_code?: string;
237
+ }
238
+ }
239
+
240
+ export interface WorkerPayrollRecordListParams {
241
+ cursor?: string;
242
+
243
+ /**
244
+ * OData-style filter. Only `worker_id in ('<id1>', '<id2>', ...)` is supported.
245
+ */
246
+ filter?: string;
247
+ }
248
+
249
+ export declare namespace WorkerPayrollRecords {
250
+ export {
251
+ type WorkerPayrollRecordListResponse as WorkerPayrollRecordListResponse,
252
+ type WorkerPayrollRecordListResponsesPageCursorURL as WorkerPayrollRecordListResponsesPageCursorURL,
253
+ type WorkerPayrollRecordListParams as WorkerPayrollRecordListParams,
254
+ };
255
+ }