@rippling/rippling-sdk 0.2.0-alpha.21 → 0.2.0-alpha.23
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 +42 -38
- package/client.d.mts.map +1 -1
- package/client.d.ts +42 -38
- package/client.d.ts.map +1 -1
- package/client.js +18 -18
- package/client.js.map +1 -1
- package/client.mjs +18 -18
- package/client.mjs.map +1 -1
- package/internal/to-file.d.mts +1 -1
- package/internal/to-file.d.ts +1 -1
- package/internal/to-file.js +1 -1
- package/internal/to-file.mjs +1 -1
- package/internal/utils/values.js +3 -3
- package/internal/utils/values.js.map +1 -1
- package/internal/utils/values.mjs +3 -3
- package/internal/utils/values.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/business-partner-groups.d.mts +13 -13
- package/resources/business-partner-groups.d.mts.map +1 -1
- package/resources/business-partner-groups.d.ts +13 -13
- package/resources/business-partner-groups.d.ts.map +1 -1
- package/resources/business-partner-groups.js +12 -12
- package/resources/business-partner-groups.js.map +1 -1
- package/resources/business-partner-groups.mjs +12 -12
- package/resources/business-partner-groups.mjs.map +1 -1
- package/resources/business-partners.d.mts +14 -14
- package/resources/business-partners.d.mts.map +1 -1
- package/resources/business-partners.d.ts +14 -14
- package/resources/business-partners.d.ts.map +1 -1
- package/resources/business-partners.js +12 -12
- package/resources/business-partners.js.map +1 -1
- package/resources/business-partners.mjs +12 -12
- package/resources/business-partners.mjs.map +1 -1
- package/resources/compensations.d.mts +8 -8
- package/resources/compensations.d.mts.map +1 -1
- package/resources/compensations.d.ts +8 -8
- package/resources/compensations.d.ts.map +1 -1
- package/resources/compensations.js +6 -6
- package/resources/compensations.js.map +1 -1
- package/resources/compensations.mjs +6 -6
- package/resources/compensations.mjs.map +1 -1
- package/resources/custom-objects/custom-objects.d.mts +7 -7
- package/resources/custom-objects/custom-objects.d.mts.map +1 -1
- package/resources/custom-objects/custom-objects.d.ts +7 -7
- package/resources/custom-objects/custom-objects.d.ts.map +1 -1
- package/resources/custom-objects/custom-objects.js +8 -8
- package/resources/custom-objects/custom-objects.js.map +1 -1
- package/resources/custom-objects/custom-objects.mjs +8 -8
- package/resources/custom-objects/custom-objects.mjs.map +1 -1
- package/resources/custom-objects/fields.d.mts +6 -6
- package/resources/custom-objects/fields.d.mts.map +1 -1
- package/resources/custom-objects/fields.d.ts +6 -6
- package/resources/custom-objects/fields.d.ts.map +1 -1
- package/resources/custom-objects/fields.js +8 -8
- package/resources/custom-objects/fields.js.map +1 -1
- package/resources/custom-objects/fields.mjs +8 -8
- package/resources/custom-objects/fields.mjs.map +1 -1
- package/resources/custom-objects/index.d.mts +1 -1
- package/resources/custom-objects/index.d.mts.map +1 -1
- package/resources/custom-objects/index.d.ts +1 -1
- package/resources/custom-objects/index.d.ts.map +1 -1
- package/resources/custom-objects/records.d.mts +32 -32
- package/resources/custom-objects/records.d.mts.map +1 -1
- package/resources/custom-objects/records.d.ts +32 -32
- package/resources/custom-objects/records.d.ts.map +1 -1
- package/resources/custom-objects/records.js +27 -27
- package/resources/custom-objects/records.js.map +1 -1
- package/resources/custom-objects/records.mjs +27 -27
- package/resources/custom-objects/records.mjs.map +1 -1
- package/resources/departments.d.mts +8 -8
- package/resources/departments.d.mts.map +1 -1
- package/resources/departments.d.ts +8 -8
- package/resources/departments.d.ts.map +1 -1
- package/resources/departments.js +6 -6
- package/resources/departments.js.map +1 -1
- package/resources/departments.mjs +6 -6
- package/resources/departments.mjs.map +1 -1
- package/resources/draft-hires.d.mts +415 -0
- package/resources/draft-hires.d.mts.map +1 -0
- package/resources/draft-hires.d.ts +415 -0
- package/resources/draft-hires.d.ts.map +1 -0
- package/resources/draft-hires.js +15 -0
- package/resources/draft-hires.js.map +1 -0
- package/resources/draft-hires.mjs +11 -0
- package/resources/draft-hires.mjs.map +1 -0
- package/resources/employment-types.d.mts +4 -4
- package/resources/employment-types.d.mts.map +1 -1
- package/resources/employment-types.d.ts +4 -4
- package/resources/employment-types.d.ts.map +1 -1
- package/resources/employment-types.js +6 -6
- package/resources/employment-types.js.map +1 -1
- package/resources/employment-types.mjs +6 -6
- package/resources/employment-types.mjs.map +1 -1
- package/resources/functions/deployments.d.mts +7 -7
- package/resources/functions/deployments.d.mts.map +1 -1
- package/resources/functions/deployments.d.ts +7 -7
- package/resources/functions/deployments.d.ts.map +1 -1
- package/resources/functions/deployments.js +9 -9
- package/resources/functions/deployments.js.map +1 -1
- package/resources/functions/deployments.mjs +9 -9
- package/resources/functions/deployments.mjs.map +1 -1
- package/resources/functions/executions.d.mts +15 -15
- package/resources/functions/executions.d.mts.map +1 -1
- package/resources/functions/executions.d.ts +15 -15
- package/resources/functions/executions.d.ts.map +1 -1
- package/resources/functions/executions.js +10 -10
- package/resources/functions/executions.js.map +1 -1
- package/resources/functions/executions.mjs +10 -10
- package/resources/functions/executions.mjs.map +1 -1
- package/resources/functions/functions.d.mts +12 -12
- package/resources/functions/functions.d.mts.map +1 -1
- package/resources/functions/functions.d.ts +12 -12
- package/resources/functions/functions.d.ts.map +1 -1
- package/resources/functions/functions.js +9 -9
- package/resources/functions/functions.js.map +1 -1
- package/resources/functions/functions.mjs +9 -9
- package/resources/functions/functions.mjs.map +1 -1
- package/resources/functions/index.d.mts +2 -2
- package/resources/functions/index.d.mts.map +1 -1
- package/resources/functions/index.d.ts +2 -2
- package/resources/functions/index.d.ts.map +1 -1
- package/resources/headcount-positions.d.mts +74 -44
- package/resources/headcount-positions.d.mts.map +1 -1
- package/resources/headcount-positions.d.ts +74 -44
- package/resources/headcount-positions.d.ts.map +1 -1
- package/resources/headcount-positions.js +7 -7
- package/resources/headcount-positions.js.map +1 -1
- package/resources/headcount-positions.mjs +7 -7
- package/resources/headcount-positions.mjs.map +1 -1
- package/resources/headcount-priorities.d.mts +11 -11
- package/resources/headcount-priorities.d.mts.map +1 -1
- package/resources/headcount-priorities.d.ts +11 -11
- package/resources/headcount-priorities.d.ts.map +1 -1
- package/resources/headcount-priorities.js +7 -7
- package/resources/headcount-priorities.js.map +1 -1
- package/resources/headcount-priorities.mjs +7 -7
- package/resources/headcount-priorities.mjs.map +1 -1
- package/resources/index.d.mts +27 -25
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +27 -25
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/job-assignments.d.mts +8 -8
- package/resources/job-assignments.d.mts.map +1 -1
- package/resources/job-assignments.d.ts +8 -8
- package/resources/job-assignments.d.ts.map +1 -1
- package/resources/job-assignments.js +6 -6
- package/resources/job-assignments.js.map +1 -1
- package/resources/job-assignments.mjs +6 -6
- package/resources/job-assignments.mjs.map +1 -1
- package/resources/job-codes.d.mts +16 -16
- package/resources/job-codes.d.mts.map +1 -1
- package/resources/job-codes.d.ts +16 -16
- package/resources/job-codes.d.ts.map +1 -1
- package/resources/job-codes.js +12 -12
- package/resources/job-codes.js.map +1 -1
- package/resources/job-codes.mjs +12 -12
- package/resources/job-codes.mjs.map +1 -1
- package/resources/job-dimensions.d.mts +13 -13
- package/resources/job-dimensions.d.mts.map +1 -1
- package/resources/job-dimensions.d.ts +13 -13
- package/resources/job-dimensions.d.ts.map +1 -1
- package/resources/job-dimensions.js +10 -10
- package/resources/job-dimensions.js.map +1 -1
- package/resources/job-dimensions.mjs +10 -10
- package/resources/job-dimensions.mjs.map +1 -1
- package/resources/job-functions.d.mts +11 -11
- package/resources/job-functions.d.mts.map +1 -1
- package/resources/job-functions.d.ts +11 -11
- package/resources/job-functions.d.ts.map +1 -1
- package/resources/job-functions.js +7 -7
- package/resources/job-functions.js.map +1 -1
- package/resources/job-functions.mjs +7 -7
- package/resources/job-functions.mjs.map +1 -1
- package/resources/job-pay-rate-exceptions.d.mts +8 -8
- package/resources/job-pay-rate-exceptions.d.mts.map +1 -1
- package/resources/job-pay-rate-exceptions.d.ts +8 -8
- package/resources/job-pay-rate-exceptions.d.ts.map +1 -1
- package/resources/job-pay-rate-exceptions.js +6 -6
- package/resources/job-pay-rate-exceptions.js.map +1 -1
- package/resources/job-pay-rate-exceptions.mjs +6 -6
- package/resources/job-pay-rate-exceptions.mjs.map +1 -1
- package/resources/kiosk-badges.d.mts +22 -22
- package/resources/kiosk-badges.d.mts.map +1 -1
- package/resources/kiosk-badges.d.ts +22 -22
- package/resources/kiosk-badges.d.ts.map +1 -1
- package/resources/kiosk-badges.js +14 -14
- package/resources/kiosk-badges.js.map +1 -1
- package/resources/kiosk-badges.mjs +14 -14
- package/resources/kiosk-badges.mjs.map +1 -1
- package/resources/leave-accruals.d.mts +205 -0
- package/resources/leave-accruals.d.mts.map +1 -0
- package/resources/leave-accruals.d.ts +205 -0
- package/resources/leave-accruals.d.ts.map +1 -0
- package/resources/leave-accruals.js +22 -0
- package/resources/leave-accruals.js.map +1 -0
- package/resources/leave-accruals.mjs +18 -0
- package/resources/leave-accruals.mjs.map +1 -0
- package/resources/leave-balances.d.mts +8 -8
- package/resources/leave-balances.d.mts.map +1 -1
- package/resources/leave-balances.d.ts +8 -8
- package/resources/leave-balances.d.ts.map +1 -1
- package/resources/leave-balances.js +6 -6
- package/resources/leave-balances.js.map +1 -1
- package/resources/leave-balances.mjs +6 -6
- package/resources/leave-balances.mjs.map +1 -1
- package/resources/leave-requests.d.mts +31 -31
- package/resources/leave-requests.d.mts.map +1 -1
- package/resources/leave-requests.d.ts +31 -31
- package/resources/leave-requests.d.ts.map +1 -1
- package/resources/leave-requests.js +15 -15
- package/resources/leave-requests.js.map +1 -1
- package/resources/leave-requests.mjs +15 -15
- package/resources/leave-requests.mjs.map +1 -1
- package/resources/leave-types.d.mts +4 -4
- package/resources/leave-types.d.mts.map +1 -1
- package/resources/leave-types.d.ts +4 -4
- package/resources/leave-types.d.ts.map +1 -1
- package/resources/leave-types.js +6 -6
- package/resources/leave-types.js.map +1 -1
- package/resources/leave-types.mjs +6 -6
- package/resources/leave-types.mjs.map +1 -1
- package/resources/legal-entities.d.mts +9 -9
- package/resources/legal-entities.d.mts.map +1 -1
- package/resources/legal-entities.d.ts +9 -9
- package/resources/legal-entities.d.ts.map +1 -1
- package/resources/legal-entities.js +6 -6
- package/resources/legal-entities.js.map +1 -1
- package/resources/legal-entities.mjs +6 -6
- package/resources/legal-entities.mjs.map +1 -1
- package/resources/levels.d.mts +8 -8
- package/resources/levels.d.mts.map +1 -1
- package/resources/levels.d.ts +8 -8
- package/resources/levels.d.ts.map +1 -1
- package/resources/levels.js +6 -6
- package/resources/levels.js.map +1 -1
- package/resources/levels.mjs +6 -6
- package/resources/levels.mjs.map +1 -1
- package/resources/location-factors.d.mts +17 -17
- package/resources/location-factors.d.mts.map +1 -1
- package/resources/location-factors.d.ts +17 -17
- package/resources/location-factors.d.ts.map +1 -1
- package/resources/location-factors.js +7 -7
- package/resources/location-factors.js.map +1 -1
- package/resources/location-factors.mjs +7 -7
- package/resources/location-factors.mjs.map +1 -1
- package/resources/object-categories.d.mts +6 -6
- package/resources/object-categories.d.mts.map +1 -1
- package/resources/object-categories.d.ts +6 -6
- package/resources/object-categories.d.ts.map +1 -1
- package/resources/object-categories.js +8 -8
- package/resources/object-categories.js.map +1 -1
- package/resources/object-categories.mjs +8 -8
- package/resources/object-categories.mjs.map +1 -1
- package/resources/schedules.d.mts +154 -12
- package/resources/schedules.d.mts.map +1 -1
- package/resources/schedules.d.ts +154 -12
- package/resources/schedules.d.ts.map +1 -1
- package/resources/schedules.js +12 -6
- package/resources/schedules.js.map +1 -1
- package/resources/schedules.mjs +12 -6
- package/resources/schedules.mjs.map +1 -1
- package/resources/shared.d.mts +1 -1
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +1 -1
- package/resources/shared.d.ts.map +1 -1
- package/resources/shift-inputs.d.mts +22 -22
- package/resources/shift-inputs.d.mts.map +1 -1
- package/resources/shift-inputs.d.ts +22 -22
- package/resources/shift-inputs.d.ts.map +1 -1
- package/resources/shift-inputs.js +14 -14
- package/resources/shift-inputs.js.map +1 -1
- package/resources/shift-inputs.mjs +14 -14
- package/resources/shift-inputs.mjs.map +1 -1
- package/resources/shiftassignments.d.mts +55 -21
- package/resources/shiftassignments.d.mts.map +1 -1
- package/resources/shiftassignments.d.ts +55 -21
- package/resources/shiftassignments.d.ts.map +1 -1
- package/resources/shiftassignments.js +6 -6
- package/resources/shiftassignments.js.map +1 -1
- package/resources/shiftassignments.mjs +6 -6
- package/resources/shiftassignments.mjs.map +1 -1
- package/resources/supergroups/exclusion-members.d.mts +8 -8
- package/resources/supergroups/exclusion-members.d.mts.map +1 -1
- package/resources/supergroups/exclusion-members.d.ts +8 -8
- package/resources/supergroups/exclusion-members.d.ts.map +1 -1
- package/resources/supergroups/exclusion-members.js +6 -6
- package/resources/supergroups/exclusion-members.js.map +1 -1
- package/resources/supergroups/exclusion-members.mjs +6 -6
- package/resources/supergroups/exclusion-members.mjs.map +1 -1
- package/resources/supergroups/inclusion-members.d.mts +8 -8
- package/resources/supergroups/inclusion-members.d.mts.map +1 -1
- package/resources/supergroups/inclusion-members.d.ts +8 -8
- package/resources/supergroups/inclusion-members.d.ts.map +1 -1
- package/resources/supergroups/inclusion-members.js +6 -6
- package/resources/supergroups/inclusion-members.js.map +1 -1
- package/resources/supergroups/inclusion-members.mjs +6 -6
- package/resources/supergroups/inclusion-members.mjs.map +1 -1
- package/resources/supergroups/index.d.mts +2 -2
- package/resources/supergroups/index.d.mts.map +1 -1
- package/resources/supergroups/index.d.ts +2 -2
- package/resources/supergroups/index.d.ts.map +1 -1
- package/resources/supergroups/supergroups.d.mts +6 -6
- package/resources/supergroups/supergroups.d.mts.map +1 -1
- package/resources/supergroups/supergroups.d.ts +6 -6
- package/resources/supergroups/supergroups.d.ts.map +1 -1
- package/resources/supergroups/supergroups.js +6 -6
- package/resources/supergroups/supergroups.js.map +1 -1
- package/resources/supergroups/supergroups.mjs +6 -6
- package/resources/supergroups/supergroups.mjs.map +1 -1
- package/resources/teams.d.mts +8 -8
- package/resources/teams.d.mts.map +1 -1
- package/resources/teams.d.ts +8 -8
- package/resources/teams.d.ts.map +1 -1
- package/resources/teams.js +6 -6
- package/resources/teams.js.map +1 -1
- package/resources/teams.mjs +6 -6
- package/resources/teams.mjs.map +1 -1
- package/resources/time-cards.d.mts +8 -8
- package/resources/time-cards.d.mts.map +1 -1
- package/resources/time-cards.d.ts +8 -8
- package/resources/time-cards.d.ts.map +1 -1
- package/resources/time-cards.js +6 -6
- package/resources/time-cards.js.map +1 -1
- package/resources/time-cards.mjs +6 -6
- package/resources/time-cards.mjs.map +1 -1
- package/resources/time-entries.d.mts +58 -58
- package/resources/time-entries.d.mts.map +1 -1
- package/resources/time-entries.d.ts +58 -58
- package/resources/time-entries.d.ts.map +1 -1
- package/resources/time-entries.js +14 -14
- package/resources/time-entries.js.map +1 -1
- package/resources/time-entries.mjs +14 -14
- package/resources/time-entries.mjs.map +1 -1
- package/resources/tracks.d.mts +4 -4
- package/resources/tracks.d.mts.map +1 -1
- package/resources/tracks.d.ts +4 -4
- package/resources/tracks.d.ts.map +1 -1
- package/resources/tracks.js +6 -6
- package/resources/tracks.js.map +1 -1
- package/resources/tracks.mjs +6 -6
- package/resources/tracks.mjs.map +1 -1
- package/resources/users.d.mts +4 -4
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +4 -4
- package/resources/users.d.ts.map +1 -1
- package/resources/users.js +6 -6
- package/resources/users.js.map +1 -1
- package/resources/users.mjs +6 -6
- package/resources/users.mjs.map +1 -1
- package/resources/work-locations.d.mts +4 -4
- package/resources/work-locations.d.mts.map +1 -1
- package/resources/work-locations.d.ts +4 -4
- package/resources/work-locations.d.ts.map +1 -1
- package/resources/work-locations.js +6 -6
- package/resources/work-locations.js.map +1 -1
- package/resources/work-locations.mjs +6 -6
- package/resources/work-locations.mjs.map +1 -1
- package/resources/workers.d.mts +11 -11
- package/resources/workers.d.mts.map +1 -1
- package/resources/workers.d.ts +11 -11
- package/resources/workers.d.ts.map +1 -1
- package/resources/workers.js +6 -6
- package/resources/workers.js.map +1 -1
- package/resources/workers.mjs +6 -6
- package/resources/workers.mjs.map +1 -1
- package/src/client.ts +112 -90
- package/src/internal/to-file.ts +1 -1
- package/src/internal/utils/values.ts +3 -3
- package/src/resources/business-partner-groups.ts +24 -24
- package/src/resources/business-partners.ts +27 -27
- package/src/resources/compensations.ts +16 -16
- package/src/resources/custom-objects/custom-objects.ts +12 -12
- package/src/resources/custom-objects/fields.ts +16 -16
- package/src/resources/custom-objects/index.ts +3 -3
- package/src/resources/custom-objects/records.ts +70 -70
- package/src/resources/departments.ts +16 -16
- package/src/resources/draft-hires.ts +504 -0
- package/src/resources/employment-types.ts +7 -7
- package/src/resources/functions/deployments.ts +10 -10
- package/src/resources/functions/executions.ts +28 -28
- package/src/resources/functions/functions.ts +20 -20
- package/src/resources/functions/index.ts +3 -3
- package/src/resources/headcount-positions.ts +103 -53
- package/src/resources/headcount-priorities.ts +14 -14
- package/src/resources/index.ts +42 -32
- package/src/resources/job-assignments.ts +16 -16
- package/src/resources/job-codes.ts +25 -25
- package/src/resources/job-dimensions.ts +21 -21
- package/src/resources/job-functions.ts +14 -14
- package/src/resources/job-pay-rate-exceptions.ts +16 -16
- package/src/resources/kiosk-badges.ts +35 -35
- package/src/resources/leave-accruals.ts +261 -0
- package/src/resources/leave-balances.ts +16 -16
- package/src/resources/leave-requests.ts +44 -44
- package/src/resources/leave-types.ts +7 -7
- package/src/resources/legal-entities.ts +17 -16
- package/src/resources/levels.ts +16 -16
- package/src/resources/location-factors.ts +20 -18
- package/src/resources/object-categories.ts +9 -9
- package/src/resources/schedules.ts +193 -20
- package/src/resources/shared.ts +1 -0
- package/src/resources/shift-inputs.ts +35 -35
- package/src/resources/shiftassignments.ts +68 -30
- package/src/resources/supergroups/exclusion-members.ts +16 -16
- package/src/resources/supergroups/inclusion-members.ts +16 -16
- package/src/resources/supergroups/index.ts +2 -2
- package/src/resources/supergroups/supergroups.ts +9 -9
- package/src/resources/teams.ts +16 -16
- package/src/resources/time-cards.ts +16 -16
- package/src/resources/time-entries.ts +71 -71
- package/src/resources/tracks.ts +7 -7
- package/src/resources/users.ts +7 -7
- package/src/resources/work-locations.ts +7 -7
- package/src/resources/workers.ts +19 -16
- 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,205 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import * as BusinessPartnersAPI from "./business-partners.mjs";
|
|
3
|
+
import * as WorkersAPI from "./workers.mjs";
|
|
4
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
5
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
6
|
+
export declare class LeaveAccruals extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Retrieve a specific leave accrual
|
|
9
|
+
*/
|
|
10
|
+
retrieve(id: string, query?: LeaveAccrualRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<LeaveAccrualRetrieveResponse>;
|
|
11
|
+
/**
|
|
12
|
+
* Create a new leave accrual
|
|
13
|
+
*/
|
|
14
|
+
create(body: LeaveAccrualCreateParams, options?: RequestOptions): APIPromise<LeaveAccrualCreateResponse>;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Meta information for the response.
|
|
18
|
+
*/
|
|
19
|
+
export interface LeaveAccrualRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
20
|
+
/**
|
|
21
|
+
* Identifier field
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* The date when this accrual becomes effective
|
|
26
|
+
*/
|
|
27
|
+
accrual_date: string;
|
|
28
|
+
/**
|
|
29
|
+
* Record creation date
|
|
30
|
+
*/
|
|
31
|
+
created_at: string;
|
|
32
|
+
/**
|
|
33
|
+
* The ID of the worker who granted this accrual. This is typically the Time Off
|
|
34
|
+
* admin.
|
|
35
|
+
*/
|
|
36
|
+
grantor_id: string;
|
|
37
|
+
/**
|
|
38
|
+
* The company leave type ID associated with this accrual
|
|
39
|
+
*/
|
|
40
|
+
leave_type_id: string;
|
|
41
|
+
/**
|
|
42
|
+
* Record update date
|
|
43
|
+
*/
|
|
44
|
+
updated_at: string;
|
|
45
|
+
/**
|
|
46
|
+
* The ID of the worker for whom the accrual is for
|
|
47
|
+
*/
|
|
48
|
+
worker_id: string;
|
|
49
|
+
/**
|
|
50
|
+
* The comment for this accrual. This is required if the leave policy requires a
|
|
51
|
+
* comment on accruals.
|
|
52
|
+
*/
|
|
53
|
+
comment?: string;
|
|
54
|
+
/**
|
|
55
|
+
* The date when this accrual expires (if applicable)
|
|
56
|
+
*/
|
|
57
|
+
expiration_date?: string;
|
|
58
|
+
/**
|
|
59
|
+
* The worker who granted this accrual. This is typically the Time Off admin.
|
|
60
|
+
*
|
|
61
|
+
* Expandable field
|
|
62
|
+
*/
|
|
63
|
+
grantor?: WorkersAPI.Worker;
|
|
64
|
+
/**
|
|
65
|
+
* The monetary value of this accrual (for policies with monetary tracking)
|
|
66
|
+
*/
|
|
67
|
+
monetary_amount_accrued?: number;
|
|
68
|
+
/**
|
|
69
|
+
* The number of days accrued. It can be negative for deductions. This is
|
|
70
|
+
* applicable if the policy tracks in days.
|
|
71
|
+
*/
|
|
72
|
+
num_days?: number;
|
|
73
|
+
/**
|
|
74
|
+
* The number of hours accrued. It can be negative for deductions. This is
|
|
75
|
+
* applicable if the policy tracks in hours.
|
|
76
|
+
*/
|
|
77
|
+
num_hours?: number;
|
|
78
|
+
/**
|
|
79
|
+
* The worker for whom the accrual is for
|
|
80
|
+
*
|
|
81
|
+
* Expandable field
|
|
82
|
+
*/
|
|
83
|
+
worker?: WorkersAPI.Worker;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Leave accrual resource representing time off credits granted to employees.
|
|
87
|
+
*
|
|
88
|
+
* Leave accruals track the allocation of paid time off (vacation, sick days, etc.)
|
|
89
|
+
* to employees based on company policies, manual grants, or other accrual sources.
|
|
90
|
+
*/
|
|
91
|
+
export interface LeaveAccrualCreateResponse {
|
|
92
|
+
/**
|
|
93
|
+
* Identifier field
|
|
94
|
+
*/
|
|
95
|
+
id: string;
|
|
96
|
+
/**
|
|
97
|
+
* The date when this accrual becomes effective
|
|
98
|
+
*/
|
|
99
|
+
accrual_date: string;
|
|
100
|
+
/**
|
|
101
|
+
* Record creation date
|
|
102
|
+
*/
|
|
103
|
+
created_at: string;
|
|
104
|
+
/**
|
|
105
|
+
* The ID of the worker who granted this accrual. This is typically the Time Off
|
|
106
|
+
* admin.
|
|
107
|
+
*/
|
|
108
|
+
grantor_id: string;
|
|
109
|
+
/**
|
|
110
|
+
* The company leave type ID associated with this accrual
|
|
111
|
+
*/
|
|
112
|
+
leave_type_id: string;
|
|
113
|
+
/**
|
|
114
|
+
* Record update date
|
|
115
|
+
*/
|
|
116
|
+
updated_at: string;
|
|
117
|
+
/**
|
|
118
|
+
* The ID of the worker for whom the accrual is for
|
|
119
|
+
*/
|
|
120
|
+
worker_id: string;
|
|
121
|
+
/**
|
|
122
|
+
* The comment for this accrual. This is required if the leave policy requires a
|
|
123
|
+
* comment on accruals.
|
|
124
|
+
*/
|
|
125
|
+
comment?: string;
|
|
126
|
+
/**
|
|
127
|
+
* The date when this accrual expires (if applicable)
|
|
128
|
+
*/
|
|
129
|
+
expiration_date?: string;
|
|
130
|
+
/**
|
|
131
|
+
* The worker who granted this accrual. This is typically the Time Off admin.
|
|
132
|
+
*
|
|
133
|
+
* Expandable field
|
|
134
|
+
*/
|
|
135
|
+
grantor?: WorkersAPI.Worker;
|
|
136
|
+
/**
|
|
137
|
+
* The monetary value of this accrual (for policies with monetary tracking)
|
|
138
|
+
*/
|
|
139
|
+
monetary_amount_accrued?: number;
|
|
140
|
+
/**
|
|
141
|
+
* The number of days accrued. It can be negative for deductions. This is
|
|
142
|
+
* applicable if the policy tracks in days.
|
|
143
|
+
*/
|
|
144
|
+
num_days?: number;
|
|
145
|
+
/**
|
|
146
|
+
* The number of hours accrued. It can be negative for deductions. This is
|
|
147
|
+
* applicable if the policy tracks in hours.
|
|
148
|
+
*/
|
|
149
|
+
num_hours?: number;
|
|
150
|
+
/**
|
|
151
|
+
* The worker for whom the accrual is for
|
|
152
|
+
*
|
|
153
|
+
* Expandable field
|
|
154
|
+
*/
|
|
155
|
+
worker?: WorkersAPI.Worker;
|
|
156
|
+
}
|
|
157
|
+
export interface LeaveAccrualRetrieveParams {
|
|
158
|
+
expand?: string;
|
|
159
|
+
}
|
|
160
|
+
export interface LeaveAccrualCreateParams {
|
|
161
|
+
/**
|
|
162
|
+
* The date when this accrual becomes effective
|
|
163
|
+
*/
|
|
164
|
+
accrual_date: string;
|
|
165
|
+
/**
|
|
166
|
+
* The ID of the worker who granted this accrual. This is typically the Time Off
|
|
167
|
+
* admin.
|
|
168
|
+
*/
|
|
169
|
+
grantor_id: string;
|
|
170
|
+
/**
|
|
171
|
+
* The company leave type ID associated with this accrual
|
|
172
|
+
*/
|
|
173
|
+
leave_type_id: string;
|
|
174
|
+
/**
|
|
175
|
+
* The ID of the worker for whom the accrual is for
|
|
176
|
+
*/
|
|
177
|
+
worker_id: string;
|
|
178
|
+
/**
|
|
179
|
+
* The comment for this accrual. This is required if the leave policy requires a
|
|
180
|
+
* comment on accruals.
|
|
181
|
+
*/
|
|
182
|
+
comment?: string;
|
|
183
|
+
/**
|
|
184
|
+
* The date when this accrual expires (if applicable)
|
|
185
|
+
*/
|
|
186
|
+
expiration_date?: string;
|
|
187
|
+
/**
|
|
188
|
+
* The monetary value of this accrual (for policies with monetary tracking)
|
|
189
|
+
*/
|
|
190
|
+
monetary_amount_accrued?: number;
|
|
191
|
+
/**
|
|
192
|
+
* The number of days accrued. It can be negative for deductions. This is
|
|
193
|
+
* applicable if the policy tracks in days.
|
|
194
|
+
*/
|
|
195
|
+
num_days?: number;
|
|
196
|
+
/**
|
|
197
|
+
* The number of hours accrued. It can be negative for deductions. This is
|
|
198
|
+
* applicable if the policy tracks in hours.
|
|
199
|
+
*/
|
|
200
|
+
num_hours?: number;
|
|
201
|
+
}
|
|
202
|
+
export declare namespace LeaveAccruals {
|
|
203
|
+
export { type LeaveAccrualRetrieveResponse as LeaveAccrualRetrieveResponse, type LeaveAccrualCreateResponse as LeaveAccrualCreateResponse, type LeaveAccrualRetrieveParams as LeaveAccrualRetrieveParams, type LeaveAccrualCreateParams as LeaveAccrualCreateParams, };
|
|
204
|
+
}
|
|
205
|
+
//# sourceMappingURL=leave-accruals.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"leave-accruals.d.mts","sourceRoot":"","sources":["../src/resources/leave-accruals.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import * as BusinessPartnersAPI from "./business-partners.js";
|
|
3
|
+
import * as WorkersAPI from "./workers.js";
|
|
4
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
5
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
6
|
+
export declare class LeaveAccruals extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Retrieve a specific leave accrual
|
|
9
|
+
*/
|
|
10
|
+
retrieve(id: string, query?: LeaveAccrualRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<LeaveAccrualRetrieveResponse>;
|
|
11
|
+
/**
|
|
12
|
+
* Create a new leave accrual
|
|
13
|
+
*/
|
|
14
|
+
create(body: LeaveAccrualCreateParams, options?: RequestOptions): APIPromise<LeaveAccrualCreateResponse>;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Meta information for the response.
|
|
18
|
+
*/
|
|
19
|
+
export interface LeaveAccrualRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
20
|
+
/**
|
|
21
|
+
* Identifier field
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* The date when this accrual becomes effective
|
|
26
|
+
*/
|
|
27
|
+
accrual_date: string;
|
|
28
|
+
/**
|
|
29
|
+
* Record creation date
|
|
30
|
+
*/
|
|
31
|
+
created_at: string;
|
|
32
|
+
/**
|
|
33
|
+
* The ID of the worker who granted this accrual. This is typically the Time Off
|
|
34
|
+
* admin.
|
|
35
|
+
*/
|
|
36
|
+
grantor_id: string;
|
|
37
|
+
/**
|
|
38
|
+
* The company leave type ID associated with this accrual
|
|
39
|
+
*/
|
|
40
|
+
leave_type_id: string;
|
|
41
|
+
/**
|
|
42
|
+
* Record update date
|
|
43
|
+
*/
|
|
44
|
+
updated_at: string;
|
|
45
|
+
/**
|
|
46
|
+
* The ID of the worker for whom the accrual is for
|
|
47
|
+
*/
|
|
48
|
+
worker_id: string;
|
|
49
|
+
/**
|
|
50
|
+
* The comment for this accrual. This is required if the leave policy requires a
|
|
51
|
+
* comment on accruals.
|
|
52
|
+
*/
|
|
53
|
+
comment?: string;
|
|
54
|
+
/**
|
|
55
|
+
* The date when this accrual expires (if applicable)
|
|
56
|
+
*/
|
|
57
|
+
expiration_date?: string;
|
|
58
|
+
/**
|
|
59
|
+
* The worker who granted this accrual. This is typically the Time Off admin.
|
|
60
|
+
*
|
|
61
|
+
* Expandable field
|
|
62
|
+
*/
|
|
63
|
+
grantor?: WorkersAPI.Worker;
|
|
64
|
+
/**
|
|
65
|
+
* The monetary value of this accrual (for policies with monetary tracking)
|
|
66
|
+
*/
|
|
67
|
+
monetary_amount_accrued?: number;
|
|
68
|
+
/**
|
|
69
|
+
* The number of days accrued. It can be negative for deductions. This is
|
|
70
|
+
* applicable if the policy tracks in days.
|
|
71
|
+
*/
|
|
72
|
+
num_days?: number;
|
|
73
|
+
/**
|
|
74
|
+
* The number of hours accrued. It can be negative for deductions. This is
|
|
75
|
+
* applicable if the policy tracks in hours.
|
|
76
|
+
*/
|
|
77
|
+
num_hours?: number;
|
|
78
|
+
/**
|
|
79
|
+
* The worker for whom the accrual is for
|
|
80
|
+
*
|
|
81
|
+
* Expandable field
|
|
82
|
+
*/
|
|
83
|
+
worker?: WorkersAPI.Worker;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Leave accrual resource representing time off credits granted to employees.
|
|
87
|
+
*
|
|
88
|
+
* Leave accruals track the allocation of paid time off (vacation, sick days, etc.)
|
|
89
|
+
* to employees based on company policies, manual grants, or other accrual sources.
|
|
90
|
+
*/
|
|
91
|
+
export interface LeaveAccrualCreateResponse {
|
|
92
|
+
/**
|
|
93
|
+
* Identifier field
|
|
94
|
+
*/
|
|
95
|
+
id: string;
|
|
96
|
+
/**
|
|
97
|
+
* The date when this accrual becomes effective
|
|
98
|
+
*/
|
|
99
|
+
accrual_date: string;
|
|
100
|
+
/**
|
|
101
|
+
* Record creation date
|
|
102
|
+
*/
|
|
103
|
+
created_at: string;
|
|
104
|
+
/**
|
|
105
|
+
* The ID of the worker who granted this accrual. This is typically the Time Off
|
|
106
|
+
* admin.
|
|
107
|
+
*/
|
|
108
|
+
grantor_id: string;
|
|
109
|
+
/**
|
|
110
|
+
* The company leave type ID associated with this accrual
|
|
111
|
+
*/
|
|
112
|
+
leave_type_id: string;
|
|
113
|
+
/**
|
|
114
|
+
* Record update date
|
|
115
|
+
*/
|
|
116
|
+
updated_at: string;
|
|
117
|
+
/**
|
|
118
|
+
* The ID of the worker for whom the accrual is for
|
|
119
|
+
*/
|
|
120
|
+
worker_id: string;
|
|
121
|
+
/**
|
|
122
|
+
* The comment for this accrual. This is required if the leave policy requires a
|
|
123
|
+
* comment on accruals.
|
|
124
|
+
*/
|
|
125
|
+
comment?: string;
|
|
126
|
+
/**
|
|
127
|
+
* The date when this accrual expires (if applicable)
|
|
128
|
+
*/
|
|
129
|
+
expiration_date?: string;
|
|
130
|
+
/**
|
|
131
|
+
* The worker who granted this accrual. This is typically the Time Off admin.
|
|
132
|
+
*
|
|
133
|
+
* Expandable field
|
|
134
|
+
*/
|
|
135
|
+
grantor?: WorkersAPI.Worker;
|
|
136
|
+
/**
|
|
137
|
+
* The monetary value of this accrual (for policies with monetary tracking)
|
|
138
|
+
*/
|
|
139
|
+
monetary_amount_accrued?: number;
|
|
140
|
+
/**
|
|
141
|
+
* The number of days accrued. It can be negative for deductions. This is
|
|
142
|
+
* applicable if the policy tracks in days.
|
|
143
|
+
*/
|
|
144
|
+
num_days?: number;
|
|
145
|
+
/**
|
|
146
|
+
* The number of hours accrued. It can be negative for deductions. This is
|
|
147
|
+
* applicable if the policy tracks in hours.
|
|
148
|
+
*/
|
|
149
|
+
num_hours?: number;
|
|
150
|
+
/**
|
|
151
|
+
* The worker for whom the accrual is for
|
|
152
|
+
*
|
|
153
|
+
* Expandable field
|
|
154
|
+
*/
|
|
155
|
+
worker?: WorkersAPI.Worker;
|
|
156
|
+
}
|
|
157
|
+
export interface LeaveAccrualRetrieveParams {
|
|
158
|
+
expand?: string;
|
|
159
|
+
}
|
|
160
|
+
export interface LeaveAccrualCreateParams {
|
|
161
|
+
/**
|
|
162
|
+
* The date when this accrual becomes effective
|
|
163
|
+
*/
|
|
164
|
+
accrual_date: string;
|
|
165
|
+
/**
|
|
166
|
+
* The ID of the worker who granted this accrual. This is typically the Time Off
|
|
167
|
+
* admin.
|
|
168
|
+
*/
|
|
169
|
+
grantor_id: string;
|
|
170
|
+
/**
|
|
171
|
+
* The company leave type ID associated with this accrual
|
|
172
|
+
*/
|
|
173
|
+
leave_type_id: string;
|
|
174
|
+
/**
|
|
175
|
+
* The ID of the worker for whom the accrual is for
|
|
176
|
+
*/
|
|
177
|
+
worker_id: string;
|
|
178
|
+
/**
|
|
179
|
+
* The comment for this accrual. This is required if the leave policy requires a
|
|
180
|
+
* comment on accruals.
|
|
181
|
+
*/
|
|
182
|
+
comment?: string;
|
|
183
|
+
/**
|
|
184
|
+
* The date when this accrual expires (if applicable)
|
|
185
|
+
*/
|
|
186
|
+
expiration_date?: string;
|
|
187
|
+
/**
|
|
188
|
+
* The monetary value of this accrual (for policies with monetary tracking)
|
|
189
|
+
*/
|
|
190
|
+
monetary_amount_accrued?: number;
|
|
191
|
+
/**
|
|
192
|
+
* The number of days accrued. It can be negative for deductions. This is
|
|
193
|
+
* applicable if the policy tracks in days.
|
|
194
|
+
*/
|
|
195
|
+
num_days?: number;
|
|
196
|
+
/**
|
|
197
|
+
* The number of hours accrued. It can be negative for deductions. This is
|
|
198
|
+
* applicable if the policy tracks in hours.
|
|
199
|
+
*/
|
|
200
|
+
num_hours?: number;
|
|
201
|
+
}
|
|
202
|
+
export declare namespace LeaveAccruals {
|
|
203
|
+
export { type LeaveAccrualRetrieveResponse as LeaveAccrualRetrieveResponse, type LeaveAccrualCreateResponse as LeaveAccrualCreateResponse, type LeaveAccrualRetrieveParams as LeaveAccrualRetrieveParams, type LeaveAccrualCreateParams as LeaveAccrualCreateParams, };
|
|
204
|
+
}
|
|
205
|
+
//# sourceMappingURL=leave-accruals.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"leave-accruals.d.ts","sourceRoot":"","sources":["../src/resources/leave-accruals.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,22 @@
|
|
|
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.LeaveAccruals = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const path_1 = require("../internal/utils/path.js");
|
|
7
|
+
class LeaveAccruals extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Retrieve a specific leave accrual
|
|
10
|
+
*/
|
|
11
|
+
retrieve(id, query = {}, options) {
|
|
12
|
+
return this._client.get((0, path_1.path) `/leave-accruals/${id}`, { query, ...options });
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Create a new leave accrual
|
|
16
|
+
*/
|
|
17
|
+
create(body, options) {
|
|
18
|
+
return this._client.post('/leave-accruals', { body, ...options });
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.LeaveAccruals = LeaveAccruals;
|
|
22
|
+
//# sourceMappingURL=leave-accruals.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"leave-accruals.js","sourceRoot":"","sources":["../src/resources/leave-accruals.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAK/C,oDAA8C;AAE9C,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;OAEG;IACH,QAAQ,CACN,EAAU,EACV,QAAuD,EAAE,EACzD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,mBAAmB,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,IAA8B,EAAE,OAAwB;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpE,CAAC;CACF;AAlBD,sCAkBC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
import { path } from "../internal/utils/path.mjs";
|
|
4
|
+
export class LeaveAccruals extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Retrieve a specific leave accrual
|
|
7
|
+
*/
|
|
8
|
+
retrieve(id, query = {}, options) {
|
|
9
|
+
return this._client.get(path `/leave-accruals/${id}`, { query, ...options });
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Create a new leave accrual
|
|
13
|
+
*/
|
|
14
|
+
create(body, options) {
|
|
15
|
+
return this._client.post('/leave-accruals', { body, ...options });
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=leave-accruals.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"leave-accruals.mjs","sourceRoot":"","sources":["../src/resources/leave-accruals.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAKf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;OAEG;IACH,QAAQ,CACN,EAAU,EACV,QAAuD,EAAE,EACzD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,mBAAmB,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,IAA8B,EAAE,OAAwB;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpE,CAAC;CACF"}
|
|
@@ -6,10 +6,6 @@ import { APIPromise } from "../core/api-promise.mjs";
|
|
|
6
6
|
import { PageCursorURL, PagePromise } from "../core/pagination.mjs";
|
|
7
7
|
import { RequestOptions } from "../internal/request-options.mjs";
|
|
8
8
|
export declare class LeaveBalances extends APIResource {
|
|
9
|
-
/**
|
|
10
|
-
* Retrieve a specific leave balance
|
|
11
|
-
*/
|
|
12
|
-
retrieve(id: string, query?: LeaveBalanceRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<LeaveBalanceRetrieveResponse>;
|
|
13
9
|
/**
|
|
14
10
|
* A List of leave balances
|
|
15
11
|
*
|
|
@@ -19,6 +15,10 @@ export declare class LeaveBalances extends APIResource {
|
|
|
19
15
|
* - Sortable fields: `id`, `created_at`, `updated_at`
|
|
20
16
|
*/
|
|
21
17
|
list(query?: LeaveBalanceListParams | null | undefined, options?: RequestOptions): PagePromise<LeaveBalancesPageCursorURL, LeaveBalance>;
|
|
18
|
+
/**
|
|
19
|
+
* Retrieve a specific leave balance
|
|
20
|
+
*/
|
|
21
|
+
retrieve(id: string, query?: LeaveBalanceRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<LeaveBalanceRetrieveResponse>;
|
|
22
22
|
}
|
|
23
23
|
export type LeaveBalancesPageCursorURL = PageCursorURL<LeaveBalance>;
|
|
24
24
|
export interface LeaveBalance {
|
|
@@ -74,15 +74,15 @@ export interface LeaveBalance {
|
|
|
74
74
|
*/
|
|
75
75
|
export interface LeaveBalanceRetrieveResponse extends BusinessPartnersAPI.Meta, LeaveBalance {
|
|
76
76
|
}
|
|
77
|
-
export interface LeaveBalanceRetrieveParams {
|
|
78
|
-
expand?: string;
|
|
79
|
-
}
|
|
80
77
|
export interface LeaveBalanceListParams {
|
|
81
78
|
expand?: string;
|
|
82
79
|
filter?: string;
|
|
83
80
|
order_by?: string;
|
|
84
81
|
}
|
|
82
|
+
export interface LeaveBalanceRetrieveParams {
|
|
83
|
+
expand?: string;
|
|
84
|
+
}
|
|
85
85
|
export declare namespace LeaveBalances {
|
|
86
|
-
export { type LeaveBalance as LeaveBalance, type LeaveBalanceRetrieveResponse as LeaveBalanceRetrieveResponse, type LeaveBalancesPageCursorURL as LeaveBalancesPageCursorURL, type
|
|
86
|
+
export { type LeaveBalance as LeaveBalance, type LeaveBalanceRetrieveResponse as LeaveBalanceRetrieveResponse, type LeaveBalancesPageCursorURL as LeaveBalancesPageCursorURL, type LeaveBalanceListParams as LeaveBalanceListParams, type LeaveBalanceRetrieveParams as LeaveBalanceRetrieveParams, };
|
|
87
87
|
}
|
|
88
88
|
//# sourceMappingURL=leave-balances.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"leave-balances.d.mts","sourceRoot":"","sources":["../src/resources/leave-balances.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,mBAAmB;OACxB,KAAK,aAAa;OAClB,KAAK,UAAU;OACf,EAAE,UAAU,EAAE;OACd,EAAE,aAAa,EAAE,WAAW,EAAE;OAC9B,EAAE,cAAc,EAAE;AAGzB,qBAAa,aAAc,SAAQ,WAAW;IAC5C
|
|
1
|
+
{"version":3,"file":"leave-balances.d.mts","sourceRoot":"","sources":["../src/resources/leave-balances.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,mBAAmB;OACxB,KAAK,aAAa;OAClB,KAAK,UAAU;OACf,EAAE,UAAU,EAAE;OACd,EAAE,aAAa,EAAE,WAAW,EAAE;OAC9B,EAAE,cAAc,EAAE;AAGzB,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;;OAOG;IACH,IAAI,CACF,KAAK,GAAE,sBAAsB,GAAG,IAAI,GAAG,SAAc,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,0BAA0B,EAAE,YAAY,CAAC;IAIxD;;OAEG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,KAAK,GAAE,0BAA0B,GAAG,IAAI,GAAG,SAAc,EACzD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,4BAA4B,CAAC;CAG5C;AAED,MAAM,MAAM,0BAA0B,GAAG,aAAa,CAAC,YAAY,CAAC,CAAC;AAErE,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,iCAAiC,CAAC,EAAE,MAAM,CAAC;IAE3C;;;OAGG;IACH,iCAAiC,CAAC,EAAE,MAAM,CAAC;IAE3C;;OAEG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAE/B;;;;OAIG;IACH,UAAU,CAAC,EAAE,aAAa,CAAC,SAAS,CAAC;IAErC;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;;OAIG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC,MAAM,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,WAAW,4BAA6B,SAAQ,mBAAmB,CAAC,IAAI,EAAE,YAAY;CAAG;AAE/F,MAAM,WAAW,sBAAsB;IACrC,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,0BAA0B;IACzC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -6,10 +6,6 @@ import { APIPromise } from "../core/api-promise.js";
|
|
|
6
6
|
import { PageCursorURL, PagePromise } from "../core/pagination.js";
|
|
7
7
|
import { RequestOptions } from "../internal/request-options.js";
|
|
8
8
|
export declare class LeaveBalances extends APIResource {
|
|
9
|
-
/**
|
|
10
|
-
* Retrieve a specific leave balance
|
|
11
|
-
*/
|
|
12
|
-
retrieve(id: string, query?: LeaveBalanceRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<LeaveBalanceRetrieveResponse>;
|
|
13
9
|
/**
|
|
14
10
|
* A List of leave balances
|
|
15
11
|
*
|
|
@@ -19,6 +15,10 @@ export declare class LeaveBalances extends APIResource {
|
|
|
19
15
|
* - Sortable fields: `id`, `created_at`, `updated_at`
|
|
20
16
|
*/
|
|
21
17
|
list(query?: LeaveBalanceListParams | null | undefined, options?: RequestOptions): PagePromise<LeaveBalancesPageCursorURL, LeaveBalance>;
|
|
18
|
+
/**
|
|
19
|
+
* Retrieve a specific leave balance
|
|
20
|
+
*/
|
|
21
|
+
retrieve(id: string, query?: LeaveBalanceRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<LeaveBalanceRetrieveResponse>;
|
|
22
22
|
}
|
|
23
23
|
export type LeaveBalancesPageCursorURL = PageCursorURL<LeaveBalance>;
|
|
24
24
|
export interface LeaveBalance {
|
|
@@ -74,15 +74,15 @@ export interface LeaveBalance {
|
|
|
74
74
|
*/
|
|
75
75
|
export interface LeaveBalanceRetrieveResponse extends BusinessPartnersAPI.Meta, LeaveBalance {
|
|
76
76
|
}
|
|
77
|
-
export interface LeaveBalanceRetrieveParams {
|
|
78
|
-
expand?: string;
|
|
79
|
-
}
|
|
80
77
|
export interface LeaveBalanceListParams {
|
|
81
78
|
expand?: string;
|
|
82
79
|
filter?: string;
|
|
83
80
|
order_by?: string;
|
|
84
81
|
}
|
|
82
|
+
export interface LeaveBalanceRetrieveParams {
|
|
83
|
+
expand?: string;
|
|
84
|
+
}
|
|
85
85
|
export declare namespace LeaveBalances {
|
|
86
|
-
export { type LeaveBalance as LeaveBalance, type LeaveBalanceRetrieveResponse as LeaveBalanceRetrieveResponse, type LeaveBalancesPageCursorURL as LeaveBalancesPageCursorURL, type
|
|
86
|
+
export { type LeaveBalance as LeaveBalance, type LeaveBalanceRetrieveResponse as LeaveBalanceRetrieveResponse, type LeaveBalancesPageCursorURL as LeaveBalancesPageCursorURL, type LeaveBalanceListParams as LeaveBalanceListParams, type LeaveBalanceRetrieveParams as LeaveBalanceRetrieveParams, };
|
|
87
87
|
}
|
|
88
88
|
//# sourceMappingURL=leave-balances.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"leave-balances.d.ts","sourceRoot":"","sources":["../src/resources/leave-balances.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,mBAAmB;OACxB,KAAK,aAAa;OAClB,KAAK,UAAU;OACf,EAAE,UAAU,EAAE;OACd,EAAE,aAAa,EAAE,WAAW,EAAE;OAC9B,EAAE,cAAc,EAAE;AAGzB,qBAAa,aAAc,SAAQ,WAAW;IAC5C
|
|
1
|
+
{"version":3,"file":"leave-balances.d.ts","sourceRoot":"","sources":["../src/resources/leave-balances.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,mBAAmB;OACxB,KAAK,aAAa;OAClB,KAAK,UAAU;OACf,EAAE,UAAU,EAAE;OACd,EAAE,aAAa,EAAE,WAAW,EAAE;OAC9B,EAAE,cAAc,EAAE;AAGzB,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;;OAOG;IACH,IAAI,CACF,KAAK,GAAE,sBAAsB,GAAG,IAAI,GAAG,SAAc,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,0BAA0B,EAAE,YAAY,CAAC;IAIxD;;OAEG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,KAAK,GAAE,0BAA0B,GAAG,IAAI,GAAG,SAAc,EACzD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,4BAA4B,CAAC;CAG5C;AAED,MAAM,MAAM,0BAA0B,GAAG,aAAa,CAAC,YAAY,CAAC,CAAC;AAErE,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,iCAAiC,CAAC,EAAE,MAAM,CAAC;IAE3C;;;OAGG;IACH,iCAAiC,CAAC,EAAE,MAAM,CAAC;IAE3C;;OAEG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAE/B;;;;OAIG;IACH,UAAU,CAAC,EAAE,aAAa,CAAC,SAAS,CAAC;IAErC;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;;OAIG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC,MAAM,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,WAAW,4BAA6B,SAAQ,mBAAmB,CAAC,IAAI,EAAE,YAAY;CAAG;AAE/F,MAAM,WAAW,sBAAsB;IACrC,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,0BAA0B;IACzC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -6,12 +6,6 @@ const resource_1 = require("../core/resource.js");
|
|
|
6
6
|
const pagination_1 = require("../core/pagination.js");
|
|
7
7
|
const path_1 = require("../internal/utils/path.js");
|
|
8
8
|
class LeaveBalances extends resource_1.APIResource {
|
|
9
|
-
/**
|
|
10
|
-
* Retrieve a specific leave balance
|
|
11
|
-
*/
|
|
12
|
-
retrieve(id, query = {}, options) {
|
|
13
|
-
return this._client.get((0, path_1.path) `/leave-balances/${id}`, { query, ...options });
|
|
14
|
-
}
|
|
15
9
|
/**
|
|
16
10
|
* A List of leave balances
|
|
17
11
|
*
|
|
@@ -23,6 +17,12 @@ class LeaveBalances extends resource_1.APIResource {
|
|
|
23
17
|
list(query = {}, options) {
|
|
24
18
|
return this._client.getAPIList('/leave-balances', (pagination_1.PageCursorURL), { query, ...options });
|
|
25
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* Retrieve a specific leave balance
|
|
22
|
+
*/
|
|
23
|
+
retrieve(id, query = {}, options) {
|
|
24
|
+
return this._client.get((0, path_1.path) `/leave-balances/${id}`, { query, ...options });
|
|
25
|
+
}
|
|
26
26
|
}
|
|
27
27
|
exports.LeaveBalances = LeaveBalances;
|
|
28
28
|
//# sourceMappingURL=leave-balances.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"leave-balances.js","sourceRoot":"","sources":["../src/resources/leave-balances.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAK/C,sDAAgE;AAEhE,oDAA8C;AAE9C,MAAa,aAAc,SAAQ,sBAAW;IAC5C
|
|
1
|
+
{"version":3,"file":"leave-balances.js","sourceRoot":"","sources":["../src/resources/leave-balances.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAK/C,sDAAgE;AAEhE,oDAA8C;AAE9C,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;;;;;;OAOG;IACH,IAAI,CACF,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,iBAAiB,EAAE,CAAA,0BAA2B,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxG,CAAC;IAED;;OAEG;IACH,QAAQ,CACN,EAAU,EACV,QAAuD,EAAE,EACzD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,mBAAmB,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;CACF;AA1BD,sCA0BC"}
|
|
@@ -3,12 +3,6 @@ import { APIResource } from "../core/resource.mjs";
|
|
|
3
3
|
import { PageCursorURL } from "../core/pagination.mjs";
|
|
4
4
|
import { path } from "../internal/utils/path.mjs";
|
|
5
5
|
export class LeaveBalances extends APIResource {
|
|
6
|
-
/**
|
|
7
|
-
* Retrieve a specific leave balance
|
|
8
|
-
*/
|
|
9
|
-
retrieve(id, query = {}, options) {
|
|
10
|
-
return this._client.get(path `/leave-balances/${id}`, { query, ...options });
|
|
11
|
-
}
|
|
12
6
|
/**
|
|
13
7
|
* A List of leave balances
|
|
14
8
|
*
|
|
@@ -20,5 +14,11 @@ export class LeaveBalances extends APIResource {
|
|
|
20
14
|
list(query = {}, options) {
|
|
21
15
|
return this._client.getAPIList('/leave-balances', (PageCursorURL), { query, ...options });
|
|
22
16
|
}
|
|
17
|
+
/**
|
|
18
|
+
* Retrieve a specific leave balance
|
|
19
|
+
*/
|
|
20
|
+
retrieve(id, query = {}, options) {
|
|
21
|
+
return this._client.get(path `/leave-balances/${id}`, { query, ...options });
|
|
22
|
+
}
|
|
23
23
|
}
|
|
24
24
|
//# sourceMappingURL=leave-balances.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"leave-balances.mjs","sourceRoot":"","sources":["../src/resources/leave-balances.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAKf,EAAE,aAAa,EAAe;OAE9B,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C
|
|
1
|
+
{"version":3,"file":"leave-balances.mjs","sourceRoot":"","sources":["../src/resources/leave-balances.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAKf,EAAE,aAAa,EAAe;OAE9B,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;;;;;;OAOG;IACH,IAAI,CACF,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,iBAAiB,EAAE,CAAA,aAA2B,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxG,CAAC;IAED;;OAEG;IACH,QAAQ,CACN,EAAU,EACV,QAAuD,EAAE,EACzD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,mBAAmB,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;CACF"}
|