@rippling/rippling-sdk 0.2.0-alpha.21 → 0.2.0-alpha.22
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 +41 -37
- package/client.d.mts.map +1 -1
- package/client.d.ts +41 -37
- 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/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 +427 -0
- package/resources/draft-hires.d.mts.map +1 -0
- package/resources/draft-hires.d.ts +427 -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 +13 -13
- package/resources/schedules.d.mts.map +1 -1
- package/resources/schedules.d.ts +13 -13
- package/resources/schedules.d.ts.map +1 -1
- package/resources/schedules.js +6 -6
- package/resources/schedules.js.map +1 -1
- package/resources/schedules.mjs +6 -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 +21 -21
- package/resources/shiftassignments.d.mts.map +1 -1
- package/resources/shiftassignments.d.ts +21 -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 +10 -10
- package/resources/workers.d.mts.map +1 -1
- package/resources/workers.d.ts +10 -10
- 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 +108 -90
- 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 +519 -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 +40 -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 +22 -22
- package/src/resources/shared.ts +1 -0
- package/src/resources/shift-inputs.ts +35 -35
- package/src/resources/shiftassignments.ts +30 -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 +18 -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
|
@@ -10,6 +10,24 @@ import { RequestOptions } from '../internal/request-options';
|
|
|
10
10
|
import { path } from '../internal/utils/path';
|
|
11
11
|
|
|
12
12
|
export class KioskBadges extends APIResource {
|
|
13
|
+
/**
|
|
14
|
+
* A List of kiosk badges
|
|
15
|
+
*
|
|
16
|
+
* - Requires: `API Tier 2`
|
|
17
|
+
* - Filterable fields: `badge_id`
|
|
18
|
+
* - Expandable fields: `worker`
|
|
19
|
+
* - Sortable fields: `id`, `created_at`, `updated_at`
|
|
20
|
+
*/
|
|
21
|
+
list(
|
|
22
|
+
query: KioskBadgeListParams | null | undefined = {},
|
|
23
|
+
options?: RequestOptions,
|
|
24
|
+
): PagePromise<KioskBadgeListResponsesPageCursorURL, KioskBadgeListResponse> {
|
|
25
|
+
return this._client.getAPIList('/kiosk-badges', PageCursorURL<KioskBadgeListResponse>, {
|
|
26
|
+
query,
|
|
27
|
+
...options,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
|
|
13
31
|
/**
|
|
14
32
|
* Create a new kiosk badge
|
|
15
33
|
*/
|
|
@@ -39,24 +57,6 @@ export class KioskBadges extends APIResource {
|
|
|
39
57
|
return this._client.patch(path`/kiosk-badges/${id}`, { body, ...options });
|
|
40
58
|
}
|
|
41
59
|
|
|
42
|
-
/**
|
|
43
|
-
* A List of kiosk badges
|
|
44
|
-
*
|
|
45
|
-
* - Requires: `API Tier 2`
|
|
46
|
-
* - Filterable fields: `badge_id`
|
|
47
|
-
* - Expandable fields: `worker`
|
|
48
|
-
* - Sortable fields: `id`, `created_at`, `updated_at`
|
|
49
|
-
*/
|
|
50
|
-
list(
|
|
51
|
-
query: KioskBadgeListParams | null | undefined = {},
|
|
52
|
-
options?: RequestOptions,
|
|
53
|
-
): PagePromise<KioskBadgeListResponsesPageCursorURL, KioskBadgeListResponse> {
|
|
54
|
-
return this._client.getAPIList('/kiosk-badges', PageCursorURL<KioskBadgeListResponse>, {
|
|
55
|
-
query,
|
|
56
|
-
...options,
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
|
|
60
60
|
/**
|
|
61
61
|
* Delete a kiosk badge
|
|
62
62
|
*/
|
|
@@ -92,7 +92,7 @@ export interface TimeKioskBadge {
|
|
|
92
92
|
worker_number?: number;
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
export interface
|
|
95
|
+
export interface KioskBadgeListResponse {
|
|
96
96
|
/**
|
|
97
97
|
* Identifier field
|
|
98
98
|
*/
|
|
@@ -136,10 +136,7 @@ export interface KioskBadgeCreateResponse {
|
|
|
136
136
|
worker_number?: number;
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
|
|
140
|
-
* Meta information for the response.
|
|
141
|
-
*/
|
|
142
|
-
export interface KioskBadgeRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
139
|
+
export interface KioskBadgeCreateResponse {
|
|
143
140
|
/**
|
|
144
141
|
* Identifier field
|
|
145
142
|
*/
|
|
@@ -183,7 +180,10 @@ export interface KioskBadgeRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
|
183
180
|
worker_number?: number;
|
|
184
181
|
}
|
|
185
182
|
|
|
186
|
-
|
|
183
|
+
/**
|
|
184
|
+
* Meta information for the response.
|
|
185
|
+
*/
|
|
186
|
+
export interface KioskBadgeRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
187
187
|
/**
|
|
188
188
|
* Identifier field
|
|
189
189
|
*/
|
|
@@ -227,7 +227,7 @@ export interface KioskBadgeUpdateResponse {
|
|
|
227
227
|
worker_number?: number;
|
|
228
228
|
}
|
|
229
229
|
|
|
230
|
-
export interface
|
|
230
|
+
export interface KioskBadgeUpdateResponse {
|
|
231
231
|
/**
|
|
232
232
|
* Identifier field
|
|
233
233
|
*/
|
|
@@ -271,6 +271,14 @@ export interface KioskBadgeListResponse {
|
|
|
271
271
|
worker_number?: number;
|
|
272
272
|
}
|
|
273
273
|
|
|
274
|
+
export interface KioskBadgeListParams {
|
|
275
|
+
expand?: string;
|
|
276
|
+
|
|
277
|
+
filter?: string;
|
|
278
|
+
|
|
279
|
+
order_by?: string;
|
|
280
|
+
}
|
|
281
|
+
|
|
274
282
|
export interface KioskBadgeCreateParams {
|
|
275
283
|
/**
|
|
276
284
|
* The ID associated with the badge. Not to be confused with the record's ID.
|
|
@@ -319,25 +327,17 @@ export interface KioskBadgeUpdateParams {
|
|
|
319
327
|
worker_number?: number;
|
|
320
328
|
}
|
|
321
329
|
|
|
322
|
-
export interface KioskBadgeListParams {
|
|
323
|
-
expand?: string;
|
|
324
|
-
|
|
325
|
-
filter?: string;
|
|
326
|
-
|
|
327
|
-
order_by?: string;
|
|
328
|
-
}
|
|
329
|
-
|
|
330
330
|
export declare namespace KioskBadges {
|
|
331
331
|
export {
|
|
332
332
|
type TimeKioskBadge as TimeKioskBadge,
|
|
333
|
+
type KioskBadgeListResponse as KioskBadgeListResponse,
|
|
333
334
|
type KioskBadgeCreateResponse as KioskBadgeCreateResponse,
|
|
334
335
|
type KioskBadgeRetrieveResponse as KioskBadgeRetrieveResponse,
|
|
335
336
|
type KioskBadgeUpdateResponse as KioskBadgeUpdateResponse,
|
|
336
|
-
type KioskBadgeListResponse as KioskBadgeListResponse,
|
|
337
337
|
type KioskBadgeListResponsesPageCursorURL as KioskBadgeListResponsesPageCursorURL,
|
|
338
|
+
type KioskBadgeListParams as KioskBadgeListParams,
|
|
338
339
|
type KioskBadgeCreateParams as KioskBadgeCreateParams,
|
|
339
340
|
type KioskBadgeRetrieveParams as KioskBadgeRetrieveParams,
|
|
340
341
|
type KioskBadgeUpdateParams as KioskBadgeUpdateParams,
|
|
341
|
-
type KioskBadgeListParams as KioskBadgeListParams,
|
|
342
342
|
};
|
|
343
343
|
}
|
|
@@ -0,0 +1,261 @@
|
|
|
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 WorkersAPI from './workers';
|
|
6
|
+
import { APIPromise } from '../core/api-promise';
|
|
7
|
+
import { RequestOptions } from '../internal/request-options';
|
|
8
|
+
import { path } from '../internal/utils/path';
|
|
9
|
+
|
|
10
|
+
export class LeaveAccruals extends APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* Retrieve a specific leave accrual
|
|
13
|
+
*/
|
|
14
|
+
retrieve(
|
|
15
|
+
id: string,
|
|
16
|
+
query: LeaveAccrualRetrieveParams | null | undefined = {},
|
|
17
|
+
options?: RequestOptions,
|
|
18
|
+
): APIPromise<LeaveAccrualRetrieveResponse> {
|
|
19
|
+
return this._client.get(path`/leave-accruals/${id}`, { query, ...options });
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Create a new leave accrual
|
|
24
|
+
*/
|
|
25
|
+
create(body: LeaveAccrualCreateParams, options?: RequestOptions): APIPromise<LeaveAccrualCreateResponse> {
|
|
26
|
+
return this._client.post('/leave-accruals', { body, ...options });
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Meta information for the response.
|
|
32
|
+
*/
|
|
33
|
+
export interface LeaveAccrualRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
34
|
+
/**
|
|
35
|
+
* Identifier field
|
|
36
|
+
*/
|
|
37
|
+
id: string;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* The date when this accrual becomes effective
|
|
41
|
+
*/
|
|
42
|
+
accrual_date: string;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Record creation date
|
|
46
|
+
*/
|
|
47
|
+
created_at: string;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* The ID of the worker who granted this accrual. This is typically the Time Off
|
|
51
|
+
* admin.
|
|
52
|
+
*/
|
|
53
|
+
grantor_id: string;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* The company leave type ID associated with this accrual
|
|
57
|
+
*/
|
|
58
|
+
leave_type_id: string;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Record update date
|
|
62
|
+
*/
|
|
63
|
+
updated_at: string;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* The ID of the worker for whom the accrual is for
|
|
67
|
+
*/
|
|
68
|
+
worker_id: string;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* The comment for this accrual. This is required if the leave policy requires a
|
|
72
|
+
* comment on accruals.
|
|
73
|
+
*/
|
|
74
|
+
comment?: string;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* The date when this accrual expires (if applicable)
|
|
78
|
+
*/
|
|
79
|
+
expiration_date?: string;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* The worker who granted this accrual. This is typically the Time Off admin.
|
|
83
|
+
*
|
|
84
|
+
* Expandable field
|
|
85
|
+
*/
|
|
86
|
+
grantor?: WorkersAPI.Worker;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* The monetary value of this accrual (for policies with monetary tracking)
|
|
90
|
+
*/
|
|
91
|
+
monetary_amount_accrued?: number;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* The number of days accrued. It can be negative for deductions. This is
|
|
95
|
+
* applicable if the policy tracks in days.
|
|
96
|
+
*/
|
|
97
|
+
num_days?: number;
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* The number of hours accrued. It can be negative for deductions. This is
|
|
101
|
+
* applicable if the policy tracks in hours.
|
|
102
|
+
*/
|
|
103
|
+
num_hours?: number;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* The worker for whom the accrual is for
|
|
107
|
+
*
|
|
108
|
+
* Expandable field
|
|
109
|
+
*/
|
|
110
|
+
worker?: WorkersAPI.Worker;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Leave accrual resource representing time off credits granted to employees.
|
|
115
|
+
*
|
|
116
|
+
* Leave accruals track the allocation of paid time off (vacation, sick days, etc.)
|
|
117
|
+
* to employees based on company policies, manual grants, or other accrual sources.
|
|
118
|
+
*/
|
|
119
|
+
export interface LeaveAccrualCreateResponse {
|
|
120
|
+
/**
|
|
121
|
+
* Identifier field
|
|
122
|
+
*/
|
|
123
|
+
id: string;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* The date when this accrual becomes effective
|
|
127
|
+
*/
|
|
128
|
+
accrual_date: string;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Record creation date
|
|
132
|
+
*/
|
|
133
|
+
created_at: string;
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* The ID of the worker who granted this accrual. This is typically the Time Off
|
|
137
|
+
* admin.
|
|
138
|
+
*/
|
|
139
|
+
grantor_id: string;
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* The company leave type ID associated with this accrual
|
|
143
|
+
*/
|
|
144
|
+
leave_type_id: string;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Record update date
|
|
148
|
+
*/
|
|
149
|
+
updated_at: string;
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* The ID of the worker for whom the accrual is for
|
|
153
|
+
*/
|
|
154
|
+
worker_id: string;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* The comment for this accrual. This is required if the leave policy requires a
|
|
158
|
+
* comment on accruals.
|
|
159
|
+
*/
|
|
160
|
+
comment?: string;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* The date when this accrual expires (if applicable)
|
|
164
|
+
*/
|
|
165
|
+
expiration_date?: string;
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* The worker who granted this accrual. This is typically the Time Off admin.
|
|
169
|
+
*
|
|
170
|
+
* Expandable field
|
|
171
|
+
*/
|
|
172
|
+
grantor?: WorkersAPI.Worker;
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* The monetary value of this accrual (for policies with monetary tracking)
|
|
176
|
+
*/
|
|
177
|
+
monetary_amount_accrued?: number;
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* The number of days accrued. It can be negative for deductions. This is
|
|
181
|
+
* applicable if the policy tracks in days.
|
|
182
|
+
*/
|
|
183
|
+
num_days?: number;
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* The number of hours accrued. It can be negative for deductions. This is
|
|
187
|
+
* applicable if the policy tracks in hours.
|
|
188
|
+
*/
|
|
189
|
+
num_hours?: number;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* The worker for whom the accrual is for
|
|
193
|
+
*
|
|
194
|
+
* Expandable field
|
|
195
|
+
*/
|
|
196
|
+
worker?: WorkersAPI.Worker;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
export interface LeaveAccrualRetrieveParams {
|
|
200
|
+
expand?: string;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
export interface LeaveAccrualCreateParams {
|
|
204
|
+
/**
|
|
205
|
+
* The date when this accrual becomes effective
|
|
206
|
+
*/
|
|
207
|
+
accrual_date: string;
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* The ID of the worker who granted this accrual. This is typically the Time Off
|
|
211
|
+
* admin.
|
|
212
|
+
*/
|
|
213
|
+
grantor_id: string;
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* The company leave type ID associated with this accrual
|
|
217
|
+
*/
|
|
218
|
+
leave_type_id: string;
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* The ID of the worker for whom the accrual is for
|
|
222
|
+
*/
|
|
223
|
+
worker_id: string;
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* The comment for this accrual. This is required if the leave policy requires a
|
|
227
|
+
* comment on accruals.
|
|
228
|
+
*/
|
|
229
|
+
comment?: string;
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* The date when this accrual expires (if applicable)
|
|
233
|
+
*/
|
|
234
|
+
expiration_date?: string;
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* The monetary value of this accrual (for policies with monetary tracking)
|
|
238
|
+
*/
|
|
239
|
+
monetary_amount_accrued?: number;
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* The number of days accrued. It can be negative for deductions. This is
|
|
243
|
+
* applicable if the policy tracks in days.
|
|
244
|
+
*/
|
|
245
|
+
num_days?: number;
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* The number of hours accrued. It can be negative for deductions. This is
|
|
249
|
+
* applicable if the policy tracks in hours.
|
|
250
|
+
*/
|
|
251
|
+
num_hours?: number;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
export declare namespace LeaveAccruals {
|
|
255
|
+
export {
|
|
256
|
+
type LeaveAccrualRetrieveResponse as LeaveAccrualRetrieveResponse,
|
|
257
|
+
type LeaveAccrualCreateResponse as LeaveAccrualCreateResponse,
|
|
258
|
+
type LeaveAccrualRetrieveParams as LeaveAccrualRetrieveParams,
|
|
259
|
+
type LeaveAccrualCreateParams as LeaveAccrualCreateParams,
|
|
260
|
+
};
|
|
261
|
+
}
|
|
@@ -10,17 +10,6 @@ import { RequestOptions } from '../internal/request-options';
|
|
|
10
10
|
import { path } from '../internal/utils/path';
|
|
11
11
|
|
|
12
12
|
export class LeaveBalances extends APIResource {
|
|
13
|
-
/**
|
|
14
|
-
* Retrieve a specific leave balance
|
|
15
|
-
*/
|
|
16
|
-
retrieve(
|
|
17
|
-
id: string,
|
|
18
|
-
query: LeaveBalanceRetrieveParams | null | undefined = {},
|
|
19
|
-
options?: RequestOptions,
|
|
20
|
-
): APIPromise<LeaveBalanceRetrieveResponse> {
|
|
21
|
-
return this._client.get(path`/leave-balances/${id}`, { query, ...options });
|
|
22
|
-
}
|
|
23
|
-
|
|
24
13
|
/**
|
|
25
14
|
* A List of leave balances
|
|
26
15
|
*
|
|
@@ -35,6 +24,17 @@ export class LeaveBalances extends APIResource {
|
|
|
35
24
|
): PagePromise<LeaveBalancesPageCursorURL, LeaveBalance> {
|
|
36
25
|
return this._client.getAPIList('/leave-balances', PageCursorURL<LeaveBalance>, { query, ...options });
|
|
37
26
|
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Retrieve a specific leave balance
|
|
30
|
+
*/
|
|
31
|
+
retrieve(
|
|
32
|
+
id: string,
|
|
33
|
+
query: LeaveBalanceRetrieveParams | null | undefined = {},
|
|
34
|
+
options?: RequestOptions,
|
|
35
|
+
): APIPromise<LeaveBalanceRetrieveResponse> {
|
|
36
|
+
return this._client.get(path`/leave-balances/${id}`, { query, ...options });
|
|
37
|
+
}
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
export type LeaveBalancesPageCursorURL = PageCursorURL<LeaveBalance>;
|
|
@@ -102,10 +102,6 @@ export interface LeaveBalance {
|
|
|
102
102
|
*/
|
|
103
103
|
export interface LeaveBalanceRetrieveResponse extends BusinessPartnersAPI.Meta, LeaveBalance {}
|
|
104
104
|
|
|
105
|
-
export interface LeaveBalanceRetrieveParams {
|
|
106
|
-
expand?: string;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
105
|
export interface LeaveBalanceListParams {
|
|
110
106
|
expand?: string;
|
|
111
107
|
|
|
@@ -114,12 +110,16 @@ export interface LeaveBalanceListParams {
|
|
|
114
110
|
order_by?: string;
|
|
115
111
|
}
|
|
116
112
|
|
|
113
|
+
export interface LeaveBalanceRetrieveParams {
|
|
114
|
+
expand?: string;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
117
|
export declare namespace LeaveBalances {
|
|
118
118
|
export {
|
|
119
119
|
type LeaveBalance as LeaveBalance,
|
|
120
120
|
type LeaveBalanceRetrieveResponse as LeaveBalanceRetrieveResponse,
|
|
121
121
|
type LeaveBalancesPageCursorURL as LeaveBalancesPageCursorURL,
|
|
122
|
-
type LeaveBalanceRetrieveParams as LeaveBalanceRetrieveParams,
|
|
123
122
|
type LeaveBalanceListParams as LeaveBalanceListParams,
|
|
123
|
+
type LeaveBalanceRetrieveParams as LeaveBalanceRetrieveParams,
|
|
124
124
|
};
|
|
125
125
|
}
|
|
@@ -10,6 +10,25 @@ import { RequestOptions } from '../internal/request-options';
|
|
|
10
10
|
import { path } from '../internal/utils/path';
|
|
11
11
|
|
|
12
12
|
export class LeaveRequests extends APIResource {
|
|
13
|
+
/**
|
|
14
|
+
* A List of leave requests
|
|
15
|
+
*
|
|
16
|
+
* - Requires: `API Tier 2`
|
|
17
|
+
* - Filterable fields: `worker_id`, `requester_id`, `reviewer_id`, `status`,
|
|
18
|
+
* `leave_policy_id`, `leave_type_id`, `start_date`, `end_date`
|
|
19
|
+
* - Expandable fields: `worker`, `requester`, `leave_type`, `reviewer`
|
|
20
|
+
* - Sortable fields: `id`, `created_at`, `updated_at`
|
|
21
|
+
*/
|
|
22
|
+
list(
|
|
23
|
+
query: LeaveRequestListParams | null | undefined = {},
|
|
24
|
+
options?: RequestOptions,
|
|
25
|
+
): PagePromise<LeaveRequestListResponsesPageCursorURL, LeaveRequestListResponse> {
|
|
26
|
+
return this._client.getAPIList('/leave-requests', PageCursorURL<LeaveRequestListResponse>, {
|
|
27
|
+
query,
|
|
28
|
+
...options,
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
|
|
13
32
|
/**
|
|
14
33
|
* Create a new leave request
|
|
15
34
|
*/
|
|
@@ -38,25 +57,6 @@ export class LeaveRequests extends APIResource {
|
|
|
38
57
|
): APIPromise<LeaveRequestUpdateResponse> {
|
|
39
58
|
return this._client.patch(path`/leave-requests/${id}`, { body, ...options });
|
|
40
59
|
}
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* A List of leave requests
|
|
44
|
-
*
|
|
45
|
-
* - Requires: `API Tier 2`
|
|
46
|
-
* - Filterable fields: `worker_id`, `requester_id`, `reviewer_id`, `status`,
|
|
47
|
-
* `leave_policy_id`, `leave_type_id`, `start_date`, `end_date`
|
|
48
|
-
* - Expandable fields: `worker`, `requester`, `leave_type`, `reviewer`
|
|
49
|
-
* - Sortable fields: `id`, `created_at`, `updated_at`
|
|
50
|
-
*/
|
|
51
|
-
list(
|
|
52
|
-
query: LeaveRequestListParams | null | undefined = {},
|
|
53
|
-
options?: RequestOptions,
|
|
54
|
-
): PagePromise<LeaveRequestListResponsesPageCursorURL, LeaveRequestListResponse> {
|
|
55
|
-
return this._client.getAPIList('/leave-requests', PageCursorURL<LeaveRequestListResponse>, {
|
|
56
|
-
query,
|
|
57
|
-
...options,
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
export type LeaveRequestListResponsesPageCursorURL = PageCursorURL<LeaveRequestListResponse>;
|
|
@@ -145,7 +145,7 @@ export interface LeaveRequest {
|
|
|
145
145
|
start_time?: string;
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
-
export interface
|
|
148
|
+
export interface LeaveRequestListResponse {
|
|
149
149
|
/**
|
|
150
150
|
* Identifier field
|
|
151
151
|
*/
|
|
@@ -189,7 +189,7 @@ export interface LeaveRequestCreateResponse {
|
|
|
189
189
|
/**
|
|
190
190
|
* The specific dates taken off and the amount of time taken off for each one.
|
|
191
191
|
*/
|
|
192
|
-
days_take_off?: Array<
|
|
192
|
+
days_take_off?: Array<LeaveRequestListResponse.DaysTakeOff>;
|
|
193
193
|
|
|
194
194
|
/**
|
|
195
195
|
* The end time of the leave request.
|
|
@@ -277,7 +277,7 @@ export interface LeaveRequestCreateResponse {
|
|
|
277
277
|
worker?: WorkersAPI.Worker;
|
|
278
278
|
}
|
|
279
279
|
|
|
280
|
-
export namespace
|
|
280
|
+
export namespace LeaveRequestListResponse {
|
|
281
281
|
export interface DaysTakeOff {
|
|
282
282
|
/**
|
|
283
283
|
* The date of the day off.
|
|
@@ -291,10 +291,7 @@ export namespace LeaveRequestCreateResponse {
|
|
|
291
291
|
}
|
|
292
292
|
}
|
|
293
293
|
|
|
294
|
-
|
|
295
|
-
* Meta information for the response.
|
|
296
|
-
*/
|
|
297
|
-
export interface LeaveRequestRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
294
|
+
export interface LeaveRequestCreateResponse {
|
|
298
295
|
/**
|
|
299
296
|
* Identifier field
|
|
300
297
|
*/
|
|
@@ -338,7 +335,7 @@ export interface LeaveRequestRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
|
338
335
|
/**
|
|
339
336
|
* The specific dates taken off and the amount of time taken off for each one.
|
|
340
337
|
*/
|
|
341
|
-
days_take_off?: Array<
|
|
338
|
+
days_take_off?: Array<LeaveRequestCreateResponse.DaysTakeOff>;
|
|
342
339
|
|
|
343
340
|
/**
|
|
344
341
|
* The end time of the leave request.
|
|
@@ -426,7 +423,7 @@ export interface LeaveRequestRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
|
426
423
|
worker?: WorkersAPI.Worker;
|
|
427
424
|
}
|
|
428
425
|
|
|
429
|
-
export namespace
|
|
426
|
+
export namespace LeaveRequestCreateResponse {
|
|
430
427
|
export interface DaysTakeOff {
|
|
431
428
|
/**
|
|
432
429
|
* The date of the day off.
|
|
@@ -440,7 +437,10 @@ export namespace LeaveRequestRetrieveResponse {
|
|
|
440
437
|
}
|
|
441
438
|
}
|
|
442
439
|
|
|
443
|
-
|
|
440
|
+
/**
|
|
441
|
+
* Meta information for the response.
|
|
442
|
+
*/
|
|
443
|
+
export interface LeaveRequestRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
444
444
|
/**
|
|
445
445
|
* Identifier field
|
|
446
446
|
*/
|
|
@@ -484,7 +484,7 @@ export interface LeaveRequestUpdateResponse {
|
|
|
484
484
|
/**
|
|
485
485
|
* The specific dates taken off and the amount of time taken off for each one.
|
|
486
486
|
*/
|
|
487
|
-
days_take_off?: Array<
|
|
487
|
+
days_take_off?: Array<LeaveRequestRetrieveResponse.DaysTakeOff>;
|
|
488
488
|
|
|
489
489
|
/**
|
|
490
490
|
* The end time of the leave request.
|
|
@@ -572,7 +572,7 @@ export interface LeaveRequestUpdateResponse {
|
|
|
572
572
|
worker?: WorkersAPI.Worker;
|
|
573
573
|
}
|
|
574
574
|
|
|
575
|
-
export namespace
|
|
575
|
+
export namespace LeaveRequestRetrieveResponse {
|
|
576
576
|
export interface DaysTakeOff {
|
|
577
577
|
/**
|
|
578
578
|
* The date of the day off.
|
|
@@ -586,7 +586,7 @@ export namespace LeaveRequestUpdateResponse {
|
|
|
586
586
|
}
|
|
587
587
|
}
|
|
588
588
|
|
|
589
|
-
export interface
|
|
589
|
+
export interface LeaveRequestUpdateResponse {
|
|
590
590
|
/**
|
|
591
591
|
* Identifier field
|
|
592
592
|
*/
|
|
@@ -630,7 +630,7 @@ export interface LeaveRequestListResponse {
|
|
|
630
630
|
/**
|
|
631
631
|
* The specific dates taken off and the amount of time taken off for each one.
|
|
632
632
|
*/
|
|
633
|
-
days_take_off?: Array<
|
|
633
|
+
days_take_off?: Array<LeaveRequestUpdateResponse.DaysTakeOff>;
|
|
634
634
|
|
|
635
635
|
/**
|
|
636
636
|
* The end time of the leave request.
|
|
@@ -718,7 +718,7 @@ export interface LeaveRequestListResponse {
|
|
|
718
718
|
worker?: WorkersAPI.Worker;
|
|
719
719
|
}
|
|
720
720
|
|
|
721
|
-
export namespace
|
|
721
|
+
export namespace LeaveRequestUpdateResponse {
|
|
722
722
|
export interface DaysTakeOff {
|
|
723
723
|
/**
|
|
724
724
|
* The date of the day off.
|
|
@@ -732,6 +732,14 @@ export namespace LeaveRequestListResponse {
|
|
|
732
732
|
}
|
|
733
733
|
}
|
|
734
734
|
|
|
735
|
+
export interface LeaveRequestListParams {
|
|
736
|
+
expand?: string;
|
|
737
|
+
|
|
738
|
+
filter?: string;
|
|
739
|
+
|
|
740
|
+
order_by?: string;
|
|
741
|
+
}
|
|
742
|
+
|
|
735
743
|
export interface LeaveRequestCreateParams {
|
|
736
744
|
/**
|
|
737
745
|
* The end date of the leave request.
|
|
@@ -904,25 +912,17 @@ export interface LeaveRequestUpdateParams {
|
|
|
904
912
|
start_time?: string;
|
|
905
913
|
}
|
|
906
914
|
|
|
907
|
-
export interface LeaveRequestListParams {
|
|
908
|
-
expand?: string;
|
|
909
|
-
|
|
910
|
-
filter?: string;
|
|
911
|
-
|
|
912
|
-
order_by?: string;
|
|
913
|
-
}
|
|
914
|
-
|
|
915
915
|
export declare namespace LeaveRequests {
|
|
916
916
|
export {
|
|
917
917
|
type LeaveRequest as LeaveRequest,
|
|
918
|
+
type LeaveRequestListResponse as LeaveRequestListResponse,
|
|
918
919
|
type LeaveRequestCreateResponse as LeaveRequestCreateResponse,
|
|
919
920
|
type LeaveRequestRetrieveResponse as LeaveRequestRetrieveResponse,
|
|
920
921
|
type LeaveRequestUpdateResponse as LeaveRequestUpdateResponse,
|
|
921
|
-
type LeaveRequestListResponse as LeaveRequestListResponse,
|
|
922
922
|
type LeaveRequestListResponsesPageCursorURL as LeaveRequestListResponsesPageCursorURL,
|
|
923
|
+
type LeaveRequestListParams as LeaveRequestListParams,
|
|
923
924
|
type LeaveRequestCreateParams as LeaveRequestCreateParams,
|
|
924
925
|
type LeaveRequestRetrieveParams as LeaveRequestRetrieveParams,
|
|
925
926
|
type LeaveRequestUpdateParams as LeaveRequestUpdateParams,
|
|
926
|
-
type LeaveRequestListParams as LeaveRequestListParams,
|
|
927
927
|
};
|
|
928
928
|
}
|
|
@@ -8,13 +8,6 @@ import { RequestOptions } from '../internal/request-options';
|
|
|
8
8
|
import { path } from '../internal/utils/path';
|
|
9
9
|
|
|
10
10
|
export class LeaveTypes extends APIResource {
|
|
11
|
-
/**
|
|
12
|
-
* Retrieve a specific leave type
|
|
13
|
-
*/
|
|
14
|
-
retrieve(id: string, options?: RequestOptions): APIPromise<LeaveTypeRetrieveResponse> {
|
|
15
|
-
return this._client.get(path`/leave-types/${id}`, options);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
11
|
/**
|
|
19
12
|
* A List of leave types
|
|
20
13
|
*
|
|
@@ -28,6 +21,13 @@ export class LeaveTypes extends APIResource {
|
|
|
28
21
|
): PagePromise<LeaveTypesPageCursorURL, LeaveType> {
|
|
29
22
|
return this._client.getAPIList('/leave-types', PageCursorURL<LeaveType>, { query, ...options });
|
|
30
23
|
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Retrieve a specific leave type
|
|
27
|
+
*/
|
|
28
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<LeaveTypeRetrieveResponse> {
|
|
29
|
+
return this._client.get(path`/leave-types/${id}`, options);
|
|
30
|
+
}
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
export type LeaveTypesPageCursorURL = PageCursorURL<LeaveType>;
|