@rippling/rippling-sdk 0.2.0-alpha.36 → 0.2.0-alpha.38
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/client.d.mts +7 -1
- package/client.d.mts.map +1 -1
- package/client.d.ts +7 -1
- package/client.d.ts.map +1 -1
- package/client.js +7 -1
- package/client.js.map +1 -1
- package/client.mjs +7 -1
- package/client.mjs.map +1 -1
- package/examples/manifest/dental-practice-management/dental-practice-management.ts +21 -34
- package/examples/manifest/gym-membership-management/gym-membership-management.ts +27 -38
- package/examples/manifest/gym-membership-management/manifest.json +1 -1
- package/examples/sdui/sdui-crud-todo/sdui-crud-todo.ts +3 -3
- package/examples/sdui/sdui-showcase/sdui-showcase.ts +6 -11
- package/examples/sdui/sdui-tab-multi-view/sdui-tab-multi-view.ts +14 -24
- package/examples/sdui/vote/vote.ts +7 -11
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +2 -0
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +2 -0
- package/internal/utils/log.mjs.map +1 -1
- package/lib/manifest/category.d.mts +4 -2
- package/lib/manifest/category.d.mts.map +1 -1
- package/lib/manifest/category.d.ts +4 -2
- package/lib/manifest/category.d.ts.map +1 -1
- package/lib/manifest/category.js +2 -2
- package/lib/manifest/category.js.map +1 -1
- package/lib/manifest/category.mjs +2 -2
- package/lib/manifest/category.mjs.map +1 -1
- package/lib/manifest/custom-object-field-section.d.mts +4 -0
- package/lib/manifest/custom-object-field-section.d.mts.map +1 -1
- package/lib/manifest/custom-object-field-section.d.ts +4 -0
- package/lib/manifest/custom-object-field-section.d.ts.map +1 -1
- package/lib/manifest/custom-object-field-section.js +6 -0
- package/lib/manifest/custom-object-field-section.js.map +1 -1
- package/lib/manifest/custom-object-field-section.mjs +6 -0
- package/lib/manifest/custom-object-field-section.mjs.map +1 -1
- package/lib/manifest/custom-object-page-layout.d.mts +23 -13
- package/lib/manifest/custom-object-page-layout.d.mts.map +1 -1
- package/lib/manifest/custom-object-page-layout.d.ts +23 -13
- package/lib/manifest/custom-object-page-layout.d.ts.map +1 -1
- package/lib/manifest/custom-object-page-layout.js +122 -9
- package/lib/manifest/custom-object-page-layout.js.map +1 -1
- package/lib/manifest/custom-object-page-layout.mjs +122 -9
- package/lib/manifest/custom-object-page-layout.mjs.map +1 -1
- package/lib/manifest/custom-object.d.mts +30 -1
- package/lib/manifest/custom-object.d.mts.map +1 -1
- package/lib/manifest/custom-object.d.ts +30 -1
- package/lib/manifest/custom-object.d.ts.map +1 -1
- package/lib/manifest/custom-object.js +15 -1
- package/lib/manifest/custom-object.js.map +1 -1
- package/lib/manifest/custom-object.mjs +15 -1
- package/lib/manifest/custom-object.mjs.map +1 -1
- package/lib/manifest/field.d.mts +25 -3
- package/lib/manifest/field.d.mts.map +1 -1
- package/lib/manifest/field.d.ts +25 -3
- package/lib/manifest/field.d.ts.map +1 -1
- package/lib/manifest/field.js +28 -2
- package/lib/manifest/field.js.map +1 -1
- package/lib/manifest/field.mjs +28 -2
- package/lib/manifest/field.mjs.map +1 -1
- package/lib/manifest/index.d.mts +1 -1
- package/lib/manifest/index.d.mts.map +1 -1
- package/lib/manifest/index.d.ts +1 -1
- package/lib/manifest/index.d.ts.map +1 -1
- package/lib/manifest/index.js.map +1 -1
- package/lib/manifest/index.mjs.map +1 -1
- package/lib/manifest/manifest-builder.d.mts +1 -1
- package/lib/manifest/manifest-builder.d.ts +1 -1
- package/lib/manifest/manifest-builder.js +1 -1
- package/lib/manifest/manifest-builder.mjs +1 -1
- package/lib/manifest/manifest-function.d.mts +8 -2
- package/lib/manifest/manifest-function.d.mts.map +1 -1
- package/lib/manifest/manifest-function.d.ts +8 -2
- package/lib/manifest/manifest-function.d.ts.map +1 -1
- package/lib/manifest/manifest-function.js +8 -2
- package/lib/manifest/manifest-function.js.map +1 -1
- package/lib/manifest/manifest-function.mjs +8 -2
- package/lib/manifest/manifest-function.mjs.map +1 -1
- package/lib/sdui/actions.d.mts.map +1 -1
- package/lib/sdui/actions.d.ts.map +1 -1
- package/lib/sdui/actions.js +23 -13
- package/lib/sdui/actions.js.map +1 -1
- package/lib/sdui/actions.mjs +23 -13
- package/lib/sdui/actions.mjs.map +1 -1
- package/lib/sdui/component.d.mts +28 -11
- package/lib/sdui/component.d.mts.map +1 -1
- package/lib/sdui/component.d.ts +28 -11
- package/lib/sdui/component.d.ts.map +1 -1
- package/lib/sdui/component.js +69 -36
- package/lib/sdui/component.js.map +1 -1
- package/lib/sdui/component.mjs +69 -36
- package/lib/sdui/component.mjs.map +1 -1
- package/lib/sdui/components.d.mts +1141 -132
- package/lib/sdui/components.d.mts.map +1 -1
- package/lib/sdui/components.d.ts +1141 -132
- package/lib/sdui/components.d.ts.map +1 -1
- package/lib/sdui/components.js +834 -206
- package/lib/sdui/components.js.map +1 -1
- package/lib/sdui/components.mjs +830 -203
- package/lib/sdui/components.mjs.map +1 -1
- package/lib/sdui/directives.d.mts.map +1 -1
- package/lib/sdui/directives.d.ts.map +1 -1
- package/lib/sdui/directives.js +4 -1
- package/lib/sdui/directives.js.map +1 -1
- package/lib/sdui/directives.mjs +4 -1
- package/lib/sdui/directives.mjs.map +1 -1
- package/lib/sdui/index.d.mts +314 -261
- package/lib/sdui/index.d.mts.map +1 -1
- package/lib/sdui/index.d.ts +314 -261
- package/lib/sdui/index.d.ts.map +1 -1
- package/lib/sdui/index.js +255 -204
- package/lib/sdui/index.js.map +1 -1
- package/lib/sdui/index.mjs +128 -103
- package/lib/sdui/index.mjs.map +1 -1
- package/lib/sdui/propTypes.d.mts +6330 -0
- package/lib/sdui/propTypes.d.mts.map +1 -0
- package/lib/sdui/propTypes.d.ts +6330 -0
- package/lib/sdui/propTypes.d.ts.map +1 -0
- package/lib/sdui/propTypes.js +14 -0
- package/lib/sdui/propTypes.js.map +1 -0
- package/lib/sdui/propTypes.mjs +13 -0
- package/lib/sdui/propTypes.mjs.map +1 -0
- package/lib/sdui/render.d.mts +1 -1
- package/lib/sdui/render.d.mts.map +1 -1
- package/lib/sdui/render.d.ts +1 -1
- package/lib/sdui/render.d.ts.map +1 -1
- package/lib/sdui/render.js +11 -3
- package/lib/sdui/render.js.map +1 -1
- package/lib/sdui/render.mjs +11 -3
- package/lib/sdui/render.mjs.map +1 -1
- package/lib/sdui/state.d.mts.map +1 -1
- package/lib/sdui/state.d.ts.map +1 -1
- package/lib/sdui/state.js +3 -1
- package/lib/sdui/state.js.map +1 -1
- package/lib/sdui/state.mjs +3 -1
- package/lib/sdui/state.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/company-legal-entities.d.mts +180 -0
- package/resources/company-legal-entities.d.mts.map +1 -0
- package/resources/company-legal-entities.d.ts +180 -0
- package/resources/company-legal-entities.d.ts.map +1 -0
- package/resources/company-legal-entities.js +30 -0
- package/resources/company-legal-entities.js.map +1 -0
- package/resources/company-legal-entities.mjs +26 -0
- package/resources/company-legal-entities.mjs.map +1 -0
- package/resources/earning-types.d.mts +1 -6
- package/resources/earning-types.d.mts.map +1 -1
- package/resources/earning-types.d.ts +1 -6
- package/resources/earning-types.d.ts.map +1 -1
- package/resources/earning-types.js +1 -1
- package/resources/earning-types.mjs +1 -1
- package/resources/earnings-inputs.d.mts +1 -1
- package/resources/earnings-inputs.d.ts +1 -1
- package/resources/earnings-inputs.js +1 -1
- package/resources/earnings-inputs.mjs +1 -1
- package/resources/index.d.mts +2 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -1
- package/resources/index.mjs.map +1 -1
- package/resources/legal-entities.d.mts +1 -1
- package/resources/legal-entities.d.mts.map +1 -1
- package/resources/legal-entities.d.ts +1 -1
- package/resources/legal-entities.d.ts.map +1 -1
- package/resources/payroll-runs/index.d.mts +3 -0
- package/resources/payroll-runs/index.d.mts.map +1 -0
- package/resources/payroll-runs/index.d.ts +3 -0
- package/resources/payroll-runs/index.d.ts.map +1 -0
- package/resources/payroll-runs/index.js +9 -0
- package/resources/payroll-runs/index.js.map +1 -0
- package/resources/payroll-runs/index.mjs +4 -0
- package/resources/payroll-runs/index.mjs.map +1 -0
- package/resources/payroll-runs/payroll-runs.d.mts +199 -0
- package/resources/payroll-runs/payroll-runs.d.mts.map +1 -0
- package/resources/payroll-runs/payroll-runs.d.ts +199 -0
- package/resources/payroll-runs/payroll-runs.d.ts.map +1 -0
- package/resources/payroll-runs/payroll-runs.js +40 -0
- package/resources/payroll-runs/payroll-runs.js.map +1 -0
- package/resources/payroll-runs/payroll-runs.mjs +35 -0
- package/resources/payroll-runs/payroll-runs.mjs.map +1 -0
- package/resources/payroll-runs/worker-payroll-records.d.mts +200 -0
- package/resources/payroll-runs/worker-payroll-records.d.mts.map +1 -0
- package/resources/payroll-runs/worker-payroll-records.d.ts +200 -0
- package/resources/payroll-runs/worker-payroll-records.d.ts.map +1 -0
- package/resources/payroll-runs/worker-payroll-records.js +23 -0
- package/resources/payroll-runs/worker-payroll-records.js.map +1 -0
- package/resources/payroll-runs/worker-payroll-records.mjs +19 -0
- package/resources/payroll-runs/worker-payroll-records.mjs.map +1 -0
- package/resources/payroll-runs.d.mts +1 -194
- package/resources/payroll-runs.d.mts.map +1 -1
- package/resources/payroll-runs.d.ts +1 -194
- package/resources/payroll-runs.d.ts.map +1 -1
- package/resources/payroll-runs.js +2 -28
- package/resources/payroll-runs.js.map +1 -1
- package/resources/payroll-runs.mjs +1 -26
- package/resources/payroll-runs.mjs.map +1 -1
- package/src/client.ts +27 -7
- package/src/internal/utils/log.ts +2 -0
- package/src/lib/manifest/category.ts +7 -5
- package/src/lib/manifest/custom-object-field-section.ts +7 -0
- package/src/lib/manifest/custom-object-page-layout.ts +225 -18
- package/src/lib/manifest/custom-object.ts +30 -1
- package/src/lib/manifest/field.ts +29 -3
- package/src/lib/manifest/index.ts +2 -0
- package/src/lib/manifest/manifest-builder.ts +1 -1
- package/src/lib/manifest/manifest-function.ts +8 -2
- package/src/lib/sdui/actions.ts +23 -10
- package/src/lib/sdui/component.ts +84 -44
- package/src/lib/sdui/components.ts +1627 -212
- package/src/lib/sdui/directives.ts +4 -1
- package/src/lib/sdui/index.ts +565 -200
- package/src/lib/sdui/propTypes.ts +8470 -0
- package/src/lib/sdui/render.ts +13 -5
- package/src/lib/sdui/state.ts +8 -2
- package/src/resources/company-legal-entities.ts +237 -0
- package/src/resources/earning-types.ts +1 -7
- package/src/resources/earnings-inputs.ts +1 -1
- package/src/resources/index.ts +8 -1
- package/src/resources/legal-entities.ts +1 -1
- package/src/resources/payroll-runs/index.ts +15 -0
- package/src/resources/payroll-runs/payroll-runs.ts +270 -0
- package/src/resources/payroll-runs/worker-payroll-records.ts +255 -0
- package/src/resources/payroll-runs.ts +1 -249
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,40 @@
|
|
|
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.PayrollRuns = void 0;
|
|
5
|
+
const tslib_1 = require("../../internal/tslib.js");
|
|
6
|
+
const resource_1 = require("../../core/resource.js");
|
|
7
|
+
const WorkerPayrollRecordsAPI = tslib_1.__importStar(require("./worker-payroll-records.js"));
|
|
8
|
+
const worker_payroll_records_1 = require("./worker-payroll-records.js");
|
|
9
|
+
const pagination_1 = require("../../core/pagination.js");
|
|
10
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
11
|
+
/**
|
|
12
|
+
* Payroll runs for the company
|
|
13
|
+
*/
|
|
14
|
+
class PayrollRuns extends resource_1.APIResource {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments);
|
|
17
|
+
this.workerPayrollRecords = new WorkerPayrollRecordsAPI.WorkerPayrollRecords(this._client);
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* A list of payroll-runs.
|
|
21
|
+
*
|
|
22
|
+
* - Requires: `Global Payroll`
|
|
23
|
+
* - Sortable fields: `check_date`
|
|
24
|
+
*/
|
|
25
|
+
list(query = {}, options) {
|
|
26
|
+
return this._client.getAPIList('/payroll-runs/', (pagination_1.PageCursorURL), {
|
|
27
|
+
query,
|
|
28
|
+
...options,
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Retrieve a specific payroll-run
|
|
33
|
+
*/
|
|
34
|
+
retrieve(id, options) {
|
|
35
|
+
return this._client.get((0, path_1.path) `/payroll-runs/${id}/`, options);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
exports.PayrollRuns = PayrollRuns;
|
|
39
|
+
PayrollRuns.WorkerPayrollRecords = worker_payroll_records_1.WorkerPayrollRecords;
|
|
40
|
+
//# sourceMappingURL=payroll-runs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payroll-runs.js","sourceRoot":"","sources":["../../src/resources/payroll-runs/payroll-runs.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAElD,6FAAoE;AACpE,wEAKkC;AAElC,yDAAmE;AAEnE,uDAAiD;AAEjD;;GAEG;AACH,MAAa,WAAY,SAAQ,sBAAW;IAA5C;;QACE,yBAAoB,GAClB,IAAI,uBAAuB,CAAC,oBAAoB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAwBnE,CAAC;IAtBC;;;;;OAKG;IACH,IAAI,CACF,QAAiD,EAAE,EACnD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,gBAAgB,EAAE,CAAA,0BAAqC,CAAA,EAAE;YACtF,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,iBAAiB,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;CACF;AA1BD,kCA0BC;AAgND,WAAW,CAAC,oBAAoB,GAAG,6CAAoB,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import * as WorkerPayrollRecordsAPI from "./worker-payroll-records.mjs";
|
|
4
|
+
import { WorkerPayrollRecords, } from "./worker-payroll-records.mjs";
|
|
5
|
+
import { PageCursorURL } from "../../core/pagination.mjs";
|
|
6
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
7
|
+
/**
|
|
8
|
+
* Payroll runs for the company
|
|
9
|
+
*/
|
|
10
|
+
export class PayrollRuns extends APIResource {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments);
|
|
13
|
+
this.workerPayrollRecords = new WorkerPayrollRecordsAPI.WorkerPayrollRecords(this._client);
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* A list of payroll-runs.
|
|
17
|
+
*
|
|
18
|
+
* - Requires: `Global Payroll`
|
|
19
|
+
* - Sortable fields: `check_date`
|
|
20
|
+
*/
|
|
21
|
+
list(query = {}, options) {
|
|
22
|
+
return this._client.getAPIList('/payroll-runs/', (PageCursorURL), {
|
|
23
|
+
query,
|
|
24
|
+
...options,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Retrieve a specific payroll-run
|
|
29
|
+
*/
|
|
30
|
+
retrieve(id, options) {
|
|
31
|
+
return this._client.get(path `/payroll-runs/${id}/`, options);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
PayrollRuns.WorkerPayrollRecords = WorkerPayrollRecords;
|
|
35
|
+
//# sourceMappingURL=payroll-runs.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payroll-runs.mjs","sourceRoot":"","sources":["../../src/resources/payroll-runs/payroll-runs.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,KAAK,uBAAuB;OAC5B,EAIL,oBAAoB,GACrB;OAEM,EAAE,aAAa,EAAe;OAE9B,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,WAAY,SAAQ,WAAW;IAA5C;;QACE,yBAAoB,GAClB,IAAI,uBAAuB,CAAC,oBAAoB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAwBnE,CAAC;IAtBC;;;;;OAKG;IACH,IAAI,CACF,QAAiD,EAAE,EACnD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,gBAAgB,EAAE,CAAA,aAAqC,CAAA,EAAE;YACtF,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,iBAAiB,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;CACF;AAgND,WAAW,CAAC,oBAAoB,GAAG,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import { PageCursorURL, PagePromise } from "../../core/pagination.mjs";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* Payroll runs for the company
|
|
6
|
+
*/
|
|
7
|
+
export declare class WorkerPayrollRecords extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* A list of worker-payroll-records for a payroll run. Supports filtering by worker
|
|
10
|
+
* via `filter=worker_id in ('<id1>', '<id2>')`.
|
|
11
|
+
*
|
|
12
|
+
* - Requires: `Global Payroll`
|
|
13
|
+
*/
|
|
14
|
+
list(runID: string, query?: WorkerPayrollRecordListParams | null | undefined, options?: RequestOptions): PagePromise<WorkerPayrollRecordListResponsesPageCursorURL, WorkerPayrollRecordListResponse>;
|
|
15
|
+
}
|
|
16
|
+
export type WorkerPayrollRecordListResponsesPageCursorURL = PageCursorURL<WorkerPayrollRecordListResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* V2 DTO representing earnings, deductions, taxes, and garnishments
|
|
19
|
+
* for a single worker in a payroll run.
|
|
20
|
+
*
|
|
21
|
+
* Used by:
|
|
22
|
+
* - GET /payroll-runs/{run_id}/worker-payroll-records/ (list)
|
|
23
|
+
* - GET /payroll-runs/{run_id}/worker-payroll-records/{id} (retrieve)
|
|
24
|
+
*/
|
|
25
|
+
export interface WorkerPayrollRecordListResponse {
|
|
26
|
+
/**
|
|
27
|
+
* Unique identifier for this payroll record (PRE version ID).
|
|
28
|
+
*/
|
|
29
|
+
id?: string;
|
|
30
|
+
/**
|
|
31
|
+
* ISO country code where this payroll record applies.
|
|
32
|
+
*/
|
|
33
|
+
country_code?: string;
|
|
34
|
+
/**
|
|
35
|
+
* ISO currency code for monetary amounts in this record.
|
|
36
|
+
*/
|
|
37
|
+
currency?: string;
|
|
38
|
+
/**
|
|
39
|
+
* List of deduction line items.
|
|
40
|
+
*/
|
|
41
|
+
deductions?: Array<WorkerPayrollRecordListResponse.Deduction>;
|
|
42
|
+
/**
|
|
43
|
+
* List of earning line items.
|
|
44
|
+
*/
|
|
45
|
+
earnings?: Array<WorkerPayrollRecordListResponse.Earning>;
|
|
46
|
+
/**
|
|
47
|
+
* List of garnishment line items.
|
|
48
|
+
*/
|
|
49
|
+
garnishments?: Array<WorkerPayrollRecordListResponse.Garnishment>;
|
|
50
|
+
/**
|
|
51
|
+
* Gross pay amount for the current period.
|
|
52
|
+
*/
|
|
53
|
+
gross_pay?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Net pay amount for the current period.
|
|
56
|
+
*/
|
|
57
|
+
net_pay?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Identifier of the payroll run this record belongs to.
|
|
60
|
+
*/
|
|
61
|
+
run_id?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Aggregate totals for taxes, deductions, and garnishments.
|
|
64
|
+
*/
|
|
65
|
+
summary?: WorkerPayrollRecordListResponse.Summary;
|
|
66
|
+
/**
|
|
67
|
+
* List of tax line items.
|
|
68
|
+
*/
|
|
69
|
+
taxes?: Array<WorkerPayrollRecordListResponse.Tax>;
|
|
70
|
+
/**
|
|
71
|
+
* Identifier of the worker (role ID).
|
|
72
|
+
*/
|
|
73
|
+
worker_id?: string;
|
|
74
|
+
}
|
|
75
|
+
export declare namespace WorkerPayrollRecordListResponse {
|
|
76
|
+
/**
|
|
77
|
+
* A single deduction line item on a worker's payroll record.
|
|
78
|
+
*/
|
|
79
|
+
interface Deduction {
|
|
80
|
+
/**
|
|
81
|
+
* Code identifying the deduction type.
|
|
82
|
+
*/
|
|
83
|
+
deduction_code?: string;
|
|
84
|
+
/**
|
|
85
|
+
* Human-readable name of the deduction.
|
|
86
|
+
*/
|
|
87
|
+
display_name?: string;
|
|
88
|
+
/**
|
|
89
|
+
* Employee contribution amount for the current period.
|
|
90
|
+
*/
|
|
91
|
+
employee_amount?: string;
|
|
92
|
+
/**
|
|
93
|
+
* Employer contribution amount for the current period.
|
|
94
|
+
*/
|
|
95
|
+
employer_amount?: string;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* A single earning line item on a worker's payroll record.
|
|
99
|
+
*/
|
|
100
|
+
interface Earning {
|
|
101
|
+
/**
|
|
102
|
+
* Earning amount for the current period.
|
|
103
|
+
*/
|
|
104
|
+
amount?: string;
|
|
105
|
+
/**
|
|
106
|
+
* Human-readable name of the earning.
|
|
107
|
+
*/
|
|
108
|
+
display_name?: string;
|
|
109
|
+
/**
|
|
110
|
+
* Category of the earning (e.g. SALARY, HOURLY).
|
|
111
|
+
*/
|
|
112
|
+
earning_category?: string;
|
|
113
|
+
/**
|
|
114
|
+
* Code identifying the earning type (e.g. regular_salary).
|
|
115
|
+
*/
|
|
116
|
+
earning_code?: string;
|
|
117
|
+
/**
|
|
118
|
+
* Hours worked for this earning in the current period.
|
|
119
|
+
*/
|
|
120
|
+
hours?: string;
|
|
121
|
+
/**
|
|
122
|
+
* Hourly rate applied to this earning.
|
|
123
|
+
*/
|
|
124
|
+
rate?: string;
|
|
125
|
+
/**
|
|
126
|
+
* Time tracking labels associated with this earning.
|
|
127
|
+
*/
|
|
128
|
+
time_labels?: Array<string>;
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* A single garnishment line item on a worker's payroll record.
|
|
132
|
+
*/
|
|
133
|
+
interface Garnishment {
|
|
134
|
+
/**
|
|
135
|
+
* Garnishment amount for the current period.
|
|
136
|
+
*/
|
|
137
|
+
amount?: string;
|
|
138
|
+
/**
|
|
139
|
+
* Code identifying the garnishment.
|
|
140
|
+
*/
|
|
141
|
+
garnishment_code?: string;
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Aggregate totals for taxes, deductions, and garnishments.
|
|
145
|
+
*/
|
|
146
|
+
interface Summary {
|
|
147
|
+
/**
|
|
148
|
+
* Total employee deductions.
|
|
149
|
+
*/
|
|
150
|
+
employee_deductions?: string;
|
|
151
|
+
/**
|
|
152
|
+
* Total employee-paid taxes.
|
|
153
|
+
*/
|
|
154
|
+
employee_taxes?: string;
|
|
155
|
+
/**
|
|
156
|
+
* Total employer contributions (e.g. retirement matching).
|
|
157
|
+
*/
|
|
158
|
+
employer_contributions?: string;
|
|
159
|
+
/**
|
|
160
|
+
* Total employer-paid taxes.
|
|
161
|
+
*/
|
|
162
|
+
employer_taxes?: string;
|
|
163
|
+
/**
|
|
164
|
+
* Total garnishments withheld.
|
|
165
|
+
*/
|
|
166
|
+
total_garnishments?: string;
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* A single tax line item on a worker's payroll record.
|
|
170
|
+
*/
|
|
171
|
+
interface Tax {
|
|
172
|
+
/**
|
|
173
|
+
* Tax amount for the current period.
|
|
174
|
+
*/
|
|
175
|
+
amount?: string;
|
|
176
|
+
/**
|
|
177
|
+
* Human-readable name of the tax.
|
|
178
|
+
*/
|
|
179
|
+
display_name?: string;
|
|
180
|
+
/**
|
|
181
|
+
* Who pays this tax: EMPLOYER or EMPLOYEE.
|
|
182
|
+
*/
|
|
183
|
+
paid_by?: string;
|
|
184
|
+
/**
|
|
185
|
+
* Unique code identifying the tax.
|
|
186
|
+
*/
|
|
187
|
+
tax_code?: string;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
export interface WorkerPayrollRecordListParams {
|
|
191
|
+
cursor?: string;
|
|
192
|
+
/**
|
|
193
|
+
* OData-style filter. Only `worker_id in ('<id1>', '<id2>', ...)` is supported.
|
|
194
|
+
*/
|
|
195
|
+
filter?: string;
|
|
196
|
+
}
|
|
197
|
+
export declare namespace WorkerPayrollRecords {
|
|
198
|
+
export { type WorkerPayrollRecordListResponse as WorkerPayrollRecordListResponse, type WorkerPayrollRecordListResponsesPageCursorURL as WorkerPayrollRecordListResponsesPageCursorURL, type WorkerPayrollRecordListParams as WorkerPayrollRecordListParams, };
|
|
199
|
+
}
|
|
200
|
+
//# sourceMappingURL=worker-payroll-records.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"worker-payroll-records.d.mts","sourceRoot":"","sources":["../../src/resources/payroll-runs/worker-payroll-records.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,aAAa,EAAE,WAAW,EAAE;OAC9B,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,oBAAqB,SAAQ,WAAW;IACnD;;;;;OAKG;IACH,IAAI,CACF,KAAK,EAAE,MAAM,EACb,KAAK,GAAE,6BAA6B,GAAG,IAAI,GAAG,SAAc,EAC5D,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,6CAA6C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A6B,IAAI,6BAA6B,GACpE,CAAC;CACH"}
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import { PageCursorURL, PagePromise } from "../../core/pagination.js";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
|
+
/**
|
|
5
|
+
* Payroll runs for the company
|
|
6
|
+
*/
|
|
7
|
+
export declare class WorkerPayrollRecords extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* A list of worker-payroll-records for a payroll run. Supports filtering by worker
|
|
10
|
+
* via `filter=worker_id in ('<id1>', '<id2>')`.
|
|
11
|
+
*
|
|
12
|
+
* - Requires: `Global Payroll`
|
|
13
|
+
*/
|
|
14
|
+
list(runID: string, query?: WorkerPayrollRecordListParams | null | undefined, options?: RequestOptions): PagePromise<WorkerPayrollRecordListResponsesPageCursorURL, WorkerPayrollRecordListResponse>;
|
|
15
|
+
}
|
|
16
|
+
export type WorkerPayrollRecordListResponsesPageCursorURL = PageCursorURL<WorkerPayrollRecordListResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* V2 DTO representing earnings, deductions, taxes, and garnishments
|
|
19
|
+
* for a single worker in a payroll run.
|
|
20
|
+
*
|
|
21
|
+
* Used by:
|
|
22
|
+
* - GET /payroll-runs/{run_id}/worker-payroll-records/ (list)
|
|
23
|
+
* - GET /payroll-runs/{run_id}/worker-payroll-records/{id} (retrieve)
|
|
24
|
+
*/
|
|
25
|
+
export interface WorkerPayrollRecordListResponse {
|
|
26
|
+
/**
|
|
27
|
+
* Unique identifier for this payroll record (PRE version ID).
|
|
28
|
+
*/
|
|
29
|
+
id?: string;
|
|
30
|
+
/**
|
|
31
|
+
* ISO country code where this payroll record applies.
|
|
32
|
+
*/
|
|
33
|
+
country_code?: string;
|
|
34
|
+
/**
|
|
35
|
+
* ISO currency code for monetary amounts in this record.
|
|
36
|
+
*/
|
|
37
|
+
currency?: string;
|
|
38
|
+
/**
|
|
39
|
+
* List of deduction line items.
|
|
40
|
+
*/
|
|
41
|
+
deductions?: Array<WorkerPayrollRecordListResponse.Deduction>;
|
|
42
|
+
/**
|
|
43
|
+
* List of earning line items.
|
|
44
|
+
*/
|
|
45
|
+
earnings?: Array<WorkerPayrollRecordListResponse.Earning>;
|
|
46
|
+
/**
|
|
47
|
+
* List of garnishment line items.
|
|
48
|
+
*/
|
|
49
|
+
garnishments?: Array<WorkerPayrollRecordListResponse.Garnishment>;
|
|
50
|
+
/**
|
|
51
|
+
* Gross pay amount for the current period.
|
|
52
|
+
*/
|
|
53
|
+
gross_pay?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Net pay amount for the current period.
|
|
56
|
+
*/
|
|
57
|
+
net_pay?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Identifier of the payroll run this record belongs to.
|
|
60
|
+
*/
|
|
61
|
+
run_id?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Aggregate totals for taxes, deductions, and garnishments.
|
|
64
|
+
*/
|
|
65
|
+
summary?: WorkerPayrollRecordListResponse.Summary;
|
|
66
|
+
/**
|
|
67
|
+
* List of tax line items.
|
|
68
|
+
*/
|
|
69
|
+
taxes?: Array<WorkerPayrollRecordListResponse.Tax>;
|
|
70
|
+
/**
|
|
71
|
+
* Identifier of the worker (role ID).
|
|
72
|
+
*/
|
|
73
|
+
worker_id?: string;
|
|
74
|
+
}
|
|
75
|
+
export declare namespace WorkerPayrollRecordListResponse {
|
|
76
|
+
/**
|
|
77
|
+
* A single deduction line item on a worker's payroll record.
|
|
78
|
+
*/
|
|
79
|
+
interface Deduction {
|
|
80
|
+
/**
|
|
81
|
+
* Code identifying the deduction type.
|
|
82
|
+
*/
|
|
83
|
+
deduction_code?: string;
|
|
84
|
+
/**
|
|
85
|
+
* Human-readable name of the deduction.
|
|
86
|
+
*/
|
|
87
|
+
display_name?: string;
|
|
88
|
+
/**
|
|
89
|
+
* Employee contribution amount for the current period.
|
|
90
|
+
*/
|
|
91
|
+
employee_amount?: string;
|
|
92
|
+
/**
|
|
93
|
+
* Employer contribution amount for the current period.
|
|
94
|
+
*/
|
|
95
|
+
employer_amount?: string;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* A single earning line item on a worker's payroll record.
|
|
99
|
+
*/
|
|
100
|
+
interface Earning {
|
|
101
|
+
/**
|
|
102
|
+
* Earning amount for the current period.
|
|
103
|
+
*/
|
|
104
|
+
amount?: string;
|
|
105
|
+
/**
|
|
106
|
+
* Human-readable name of the earning.
|
|
107
|
+
*/
|
|
108
|
+
display_name?: string;
|
|
109
|
+
/**
|
|
110
|
+
* Category of the earning (e.g. SALARY, HOURLY).
|
|
111
|
+
*/
|
|
112
|
+
earning_category?: string;
|
|
113
|
+
/**
|
|
114
|
+
* Code identifying the earning type (e.g. regular_salary).
|
|
115
|
+
*/
|
|
116
|
+
earning_code?: string;
|
|
117
|
+
/**
|
|
118
|
+
* Hours worked for this earning in the current period.
|
|
119
|
+
*/
|
|
120
|
+
hours?: string;
|
|
121
|
+
/**
|
|
122
|
+
* Hourly rate applied to this earning.
|
|
123
|
+
*/
|
|
124
|
+
rate?: string;
|
|
125
|
+
/**
|
|
126
|
+
* Time tracking labels associated with this earning.
|
|
127
|
+
*/
|
|
128
|
+
time_labels?: Array<string>;
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* A single garnishment line item on a worker's payroll record.
|
|
132
|
+
*/
|
|
133
|
+
interface Garnishment {
|
|
134
|
+
/**
|
|
135
|
+
* Garnishment amount for the current period.
|
|
136
|
+
*/
|
|
137
|
+
amount?: string;
|
|
138
|
+
/**
|
|
139
|
+
* Code identifying the garnishment.
|
|
140
|
+
*/
|
|
141
|
+
garnishment_code?: string;
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Aggregate totals for taxes, deductions, and garnishments.
|
|
145
|
+
*/
|
|
146
|
+
interface Summary {
|
|
147
|
+
/**
|
|
148
|
+
* Total employee deductions.
|
|
149
|
+
*/
|
|
150
|
+
employee_deductions?: string;
|
|
151
|
+
/**
|
|
152
|
+
* Total employee-paid taxes.
|
|
153
|
+
*/
|
|
154
|
+
employee_taxes?: string;
|
|
155
|
+
/**
|
|
156
|
+
* Total employer contributions (e.g. retirement matching).
|
|
157
|
+
*/
|
|
158
|
+
employer_contributions?: string;
|
|
159
|
+
/**
|
|
160
|
+
* Total employer-paid taxes.
|
|
161
|
+
*/
|
|
162
|
+
employer_taxes?: string;
|
|
163
|
+
/**
|
|
164
|
+
* Total garnishments withheld.
|
|
165
|
+
*/
|
|
166
|
+
total_garnishments?: string;
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* A single tax line item on a worker's payroll record.
|
|
170
|
+
*/
|
|
171
|
+
interface Tax {
|
|
172
|
+
/**
|
|
173
|
+
* Tax amount for the current period.
|
|
174
|
+
*/
|
|
175
|
+
amount?: string;
|
|
176
|
+
/**
|
|
177
|
+
* Human-readable name of the tax.
|
|
178
|
+
*/
|
|
179
|
+
display_name?: string;
|
|
180
|
+
/**
|
|
181
|
+
* Who pays this tax: EMPLOYER or EMPLOYEE.
|
|
182
|
+
*/
|
|
183
|
+
paid_by?: string;
|
|
184
|
+
/**
|
|
185
|
+
* Unique code identifying the tax.
|
|
186
|
+
*/
|
|
187
|
+
tax_code?: string;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
export interface WorkerPayrollRecordListParams {
|
|
191
|
+
cursor?: string;
|
|
192
|
+
/**
|
|
193
|
+
* OData-style filter. Only `worker_id in ('<id1>', '<id2>', ...)` is supported.
|
|
194
|
+
*/
|
|
195
|
+
filter?: string;
|
|
196
|
+
}
|
|
197
|
+
export declare namespace WorkerPayrollRecords {
|
|
198
|
+
export { type WorkerPayrollRecordListResponse as WorkerPayrollRecordListResponse, type WorkerPayrollRecordListResponsesPageCursorURL as WorkerPayrollRecordListResponsesPageCursorURL, type WorkerPayrollRecordListParams as WorkerPayrollRecordListParams, };
|
|
199
|
+
}
|
|
200
|
+
//# sourceMappingURL=worker-payroll-records.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"worker-payroll-records.d.ts","sourceRoot":"","sources":["../../src/resources/payroll-runs/worker-payroll-records.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,aAAa,EAAE,WAAW,EAAE;OAC9B,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,oBAAqB,SAAQ,WAAW;IACnD;;;;;OAKG;IACH,IAAI,CACF,KAAK,EAAE,MAAM,EACb,KAAK,GAAE,6BAA6B,GAAG,IAAI,GAAG,SAAc,EAC5D,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,6CAA6C,EAAE,+BAA+B,CAAC;CAO/F;AAED,MAAM,MAAM,6CAA6C,GAAG,aAAa,CAAC,+BAA+B,CAAC,CAAC;AAE3G;;;;;;;GAOG;AACH,MAAM,WAAW,+BAA+B;IAC9C;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,+BAA+B,CAAC,SAAS,CAAC,CAAC;IAE9D;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,+BAA+B,CAAC,OAAO,CAAC,CAAC;IAE1D;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,+BAA+B,CAAC,WAAW,CAAC,CAAC;IAElE;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,OAAO,CAAC,EAAE,+BAA+B,CAAC,OAAO,CAAC;IAElD;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,+BAA+B,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,MAAM,CAAC;QAEhB;;WAEG;QACH,YAAY,CAAC,EAAE,MAAM,CAAC;QAEtB;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB;CACF;AAED,MAAM,WAAW,6BAA6B;IAC5C,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,oBAAoB,CAAC;IAC5C,OAAO,EACL,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,6CAA6C,IAAI,6CAA6C,EACnG,KAAK,6BAA6B,IAAI,6BAA6B,GACpE,CAAC;CACH"}
|
|
@@ -0,0 +1,23 @@
|
|
|
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.WorkerPayrollRecords = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const pagination_1 = require("../../core/pagination.js");
|
|
7
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
8
|
+
/**
|
|
9
|
+
* Payroll runs for the company
|
|
10
|
+
*/
|
|
11
|
+
class WorkerPayrollRecords extends resource_1.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(runID, query = {}, options) {
|
|
19
|
+
return this._client.getAPIList((0, path_1.path) `/payroll-runs/${runID}/worker-payroll-records/`, (pagination_1.PageCursorURL), { query, ...options });
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.WorkerPayrollRecords = WorkerPayrollRecords;
|
|
23
|
+
//# sourceMappingURL=worker-payroll-records.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"worker-payroll-records.js","sourceRoot":"","sources":["../../src/resources/payroll-runs/worker-payroll-records.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAClD,yDAAmE;AAEnE,uDAAiD;AAEjD;;GAEG;AACH,MAAa,oBAAqB,SAAQ,sBAAW;IACnD;;;;;OAKG;IACH,IAAI,CACF,KAAa,EACb,QAA0D,EAAE,EAC5D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAA,WAAI,EAAA,iBAAiB,KAAK,0BAA0B,EACpD,CAAA,0BAA8C,CAAA,EAC9C,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;CACF;AAlBD,oDAkBC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { PageCursorURL } from "../../core/pagination.mjs";
|
|
4
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* Payroll runs for the company
|
|
7
|
+
*/
|
|
8
|
+
export class WorkerPayrollRecords extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* A list of worker-payroll-records for a payroll run. Supports filtering by worker
|
|
11
|
+
* via `filter=worker_id in ('<id1>', '<id2>')`.
|
|
12
|
+
*
|
|
13
|
+
* - Requires: `Global Payroll`
|
|
14
|
+
*/
|
|
15
|
+
list(runID, query = {}, options) {
|
|
16
|
+
return this._client.getAPIList(path `/payroll-runs/${runID}/worker-payroll-records/`, (PageCursorURL), { query, ...options });
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=worker-payroll-records.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"worker-payroll-records.mjs","sourceRoot":"","sources":["../../src/resources/payroll-runs/worker-payroll-records.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,aAAa,EAAe;OAE9B,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,oBAAqB,SAAQ,WAAW;IACnD;;;;;OAKG;IACH,IAAI,CACF,KAAa,EACb,QAA0D,EAAE,EAC5D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAI,CAAA,iBAAiB,KAAK,0BAA0B,EACpD,CAAA,aAA8C,CAAA,EAC9C,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;CACF"}
|