@rippling/rippling-sdk 0.2.0-alpha.29 → 0.2.0-alpha.30
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 +22 -94
- package/client.d.mts.map +1 -1
- package/client.d.ts +22 -94
- package/client.d.ts.map +1 -1
- package/client.js +20 -92
- package/client.js.map +1 -1
- package/client.mjs +20 -92
- package/client.mjs.map +1 -1
- package/internal/utils/env.js +2 -2
- package/internal/utils/env.js.map +1 -1
- package/internal/utils/env.mjs +2 -2
- package/internal/utils/env.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/business-partner-groups.d.mts +1 -1
- package/resources/business-partner-groups.d.ts +1 -1
- package/resources/business-partner-groups.js +1 -1
- package/resources/business-partner-groups.mjs +1 -1
- package/resources/business-partners.d.mts +1 -1
- package/resources/business-partners.d.ts +1 -1
- package/resources/business-partners.js +1 -1
- package/resources/business-partners.mjs +1 -1
- package/resources/candidate-applications.d.mts +1 -1
- package/resources/candidate-applications.d.ts +1 -1
- package/resources/candidate-applications.js +1 -1
- package/resources/candidate-applications.mjs +1 -1
- package/resources/candidates.d.mts +1 -1
- package/resources/candidates.d.ts +1 -1
- package/resources/candidates.js +1 -1
- package/resources/candidates.mjs +1 -1
- package/resources/companies.d.mts +1 -1
- package/resources/companies.d.ts +1 -1
- package/resources/companies.js +1 -1
- package/resources/companies.mjs +1 -1
- package/resources/compensation-bands-details.d.mts +1 -1
- package/resources/compensation-bands-details.d.ts +1 -1
- package/resources/compensation-bands-details.js +1 -1
- package/resources/compensation-bands-details.mjs +1 -1
- package/resources/compensations.d.mts +1 -1
- package/resources/compensations.d.ts +1 -1
- package/resources/compensations.js +1 -1
- package/resources/compensations.mjs +1 -1
- package/resources/custom-apps.d.mts +3 -3
- package/resources/custom-apps.d.ts +3 -3
- package/resources/custom-apps.js +3 -3
- package/resources/custom-apps.mjs +3 -3
- package/resources/custom-fields.d.mts +1 -1
- package/resources/custom-fields.d.ts +1 -1
- package/resources/custom-fields.js +1 -1
- package/resources/custom-fields.mjs +1 -1
- package/resources/custom-objects/custom-objects.d.mts +29 -5
- package/resources/custom-objects/custom-objects.d.mts.map +1 -1
- package/resources/custom-objects/custom-objects.d.ts +29 -5
- package/resources/custom-objects/custom-objects.d.ts.map +1 -1
- package/resources/custom-objects/custom-objects.js +5 -5
- package/resources/custom-objects/custom-objects.js.map +1 -1
- package/resources/custom-objects/custom-objects.mjs +5 -5
- package/resources/custom-objects/custom-objects.mjs.map +1 -1
- package/resources/custom-objects/fields.d.mts +71 -5
- package/resources/custom-objects/fields.d.mts.map +1 -1
- package/resources/custom-objects/fields.d.ts +71 -5
- package/resources/custom-objects/fields.d.ts.map +1 -1
- package/resources/custom-objects/fields.js +5 -5
- package/resources/custom-objects/fields.mjs +5 -5
- package/resources/custom-objects/records.d.mts +68 -11
- package/resources/custom-objects/records.d.mts.map +1 -1
- package/resources/custom-objects/records.d.ts +68 -11
- package/resources/custom-objects/records.d.ts.map +1 -1
- package/resources/custom-objects/records.js +10 -10
- package/resources/custom-objects/records.mjs +10 -10
- package/resources/custom-pages.d.mts +3 -3
- package/resources/custom-pages.d.ts +3 -3
- package/resources/custom-pages.js +3 -3
- package/resources/custom-pages.mjs +3 -3
- package/resources/custom-settings.d.mts +2 -2
- package/resources/custom-settings.d.ts +2 -2
- package/resources/custom-settings.js +2 -2
- package/resources/custom-settings.mjs +2 -2
- package/resources/departments.d.mts +2 -2
- package/resources/departments.d.ts +2 -2
- package/resources/departments.js +2 -2
- package/resources/departments.mjs +2 -2
- package/resources/earning-types.d.mts +48 -0
- package/resources/earning-types.d.mts.map +1 -0
- package/resources/earning-types.d.ts +48 -0
- package/resources/earning-types.d.ts.map +1 -0
- package/resources/earning-types.js +21 -0
- package/resources/earning-types.js.map +1 -0
- package/resources/earning-types.mjs +17 -0
- package/resources/earning-types.mjs.map +1 -0
- package/resources/employment-types.d.mts +1 -1
- package/resources/employment-types.d.ts +1 -1
- package/resources/employment-types.js +1 -1
- package/resources/employment-types.mjs +1 -1
- package/resources/entitlements.d.mts +1 -1
- package/resources/entitlements.d.ts +1 -1
- package/resources/entitlements.js +1 -1
- package/resources/entitlements.mjs +1 -1
- package/resources/functions/deployments.d.mts +10 -4
- package/resources/functions/deployments.d.mts.map +1 -1
- package/resources/functions/deployments.d.ts +10 -4
- package/resources/functions/deployments.d.ts.map +1 -1
- package/resources/functions/deployments.js +4 -4
- package/resources/functions/deployments.mjs +4 -4
- package/resources/functions/executions.d.mts +10 -4
- package/resources/functions/executions.d.mts.map +1 -1
- package/resources/functions/executions.d.ts +10 -4
- package/resources/functions/executions.d.ts.map +1 -1
- package/resources/functions/executions.js +4 -4
- package/resources/functions/executions.mjs +4 -4
- package/resources/functions/functions.d.mts +8 -14
- package/resources/functions/functions.d.mts.map +1 -1
- package/resources/functions/functions.d.ts +8 -14
- package/resources/functions/functions.d.ts.map +1 -1
- package/resources/functions/functions.js +6 -6
- package/resources/functions/functions.js.map +1 -1
- package/resources/functions/functions.mjs +6 -6
- package/resources/functions/functions.mjs.map +1 -1
- package/resources/functions/index.d.mts +1 -1
- package/resources/functions/index.d.mts.map +1 -1
- package/resources/functions/index.d.ts +1 -1
- package/resources/functions/index.d.ts.map +1 -1
- package/resources/functions/index.js.map +1 -1
- package/resources/functions/index.mjs.map +1 -1
- package/resources/headcount-positions.d.mts +1 -1
- package/resources/headcount-positions.d.ts +1 -1
- package/resources/headcount-positions.js +1 -1
- package/resources/headcount-positions.mjs +1 -1
- package/resources/headcount-priorities.d.mts +1 -1
- package/resources/headcount-priorities.d.ts +1 -1
- package/resources/headcount-priorities.js +1 -1
- package/resources/headcount-priorities.mjs +1 -1
- package/resources/index.d.mts +5 -17
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +5 -17
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +10 -34
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +4 -16
- package/resources/index.mjs.map +1 -1
- package/resources/job-assignments.d.mts +3 -3
- package/resources/job-assignments.d.ts +3 -3
- package/resources/job-assignments.js +3 -3
- package/resources/job-assignments.mjs +3 -3
- package/resources/job-codes.d.mts +3 -3
- package/resources/job-codes.d.ts +3 -3
- package/resources/job-codes.js +3 -3
- package/resources/job-codes.mjs +3 -3
- package/resources/job-dimensions.d.mts +2 -2
- package/resources/job-dimensions.d.ts +2 -2
- package/resources/job-dimensions.js +2 -2
- package/resources/job-dimensions.mjs +2 -2
- package/resources/job-functions.d.mts +1 -1
- package/resources/job-functions.d.ts +1 -1
- package/resources/job-functions.js +1 -1
- package/resources/job-functions.mjs +1 -1
- package/resources/job-pay-rate-exceptions.d.mts +2 -2
- package/resources/job-pay-rate-exceptions.d.ts +2 -2
- package/resources/job-pay-rate-exceptions.js +2 -2
- package/resources/job-pay-rate-exceptions.mjs +2 -2
- package/resources/job-requisitions.d.mts +1 -1
- package/resources/job-requisitions.d.ts +1 -1
- package/resources/job-requisitions.js +1 -1
- package/resources/job-requisitions.mjs +1 -1
- package/resources/kiosk-badges.d.mts +2 -2
- package/resources/kiosk-badges.d.ts +2 -2
- package/resources/kiosk-badges.js +2 -2
- package/resources/kiosk-badges.mjs +2 -2
- package/resources/leave-accruals.d.mts +1 -1
- package/resources/leave-accruals.d.ts +1 -1
- package/resources/leave-accruals.js +1 -1
- package/resources/leave-accruals.mjs +1 -1
- package/resources/leave-balances.d.mts +1 -1
- package/resources/leave-balances.d.ts +1 -1
- package/resources/leave-balances.js +1 -1
- package/resources/leave-balances.mjs +1 -1
- package/resources/leave-requests.d.mts +2 -2
- package/resources/leave-requests.d.ts +2 -2
- package/resources/leave-requests.js +2 -2
- package/resources/leave-requests.mjs +2 -2
- package/resources/leave-types.d.mts +1 -1
- package/resources/leave-types.d.ts +1 -1
- package/resources/leave-types.js +1 -1
- package/resources/leave-types.mjs +1 -1
- package/resources/legal-entities.d.mts +1 -1
- package/resources/legal-entities.d.ts +1 -1
- package/resources/legal-entities.js +1 -1
- package/resources/legal-entities.mjs +1 -1
- package/resources/levels.d.mts +1 -1
- package/resources/levels.d.ts +1 -1
- package/resources/levels.js +1 -1
- package/resources/levels.mjs +1 -1
- package/resources/location-factors.d.mts +1 -1
- package/resources/location-factors.d.ts +1 -1
- package/resources/location-factors.js +1 -1
- package/resources/location-factors.mjs +1 -1
- package/resources/metadata/components.d.mts +2 -2
- package/resources/metadata/components.d.ts +2 -2
- package/resources/metadata/components.js +2 -2
- package/resources/metadata/components.mjs +2 -2
- package/resources/metadata/metadata.d.mts +2 -2
- package/resources/metadata/metadata.d.ts +2 -2
- package/resources/metadata/metadata.js +2 -2
- package/resources/metadata/metadata.mjs +2 -2
- package/resources/metadata/summary.d.mts +2 -2
- package/resources/metadata/summary.d.ts +2 -2
- package/resources/metadata/summary.js +2 -2
- package/resources/metadata/summary.mjs +2 -2
- package/resources/metadata/types.d.mts +2 -2
- package/resources/metadata/types.d.ts +2 -2
- package/resources/metadata/types.js +2 -2
- package/resources/metadata/types.mjs +2 -2
- package/resources/object-categories.d.mts +17 -5
- package/resources/object-categories.d.mts.map +1 -1
- package/resources/object-categories.d.ts +17 -5
- package/resources/object-categories.d.ts.map +1 -1
- package/resources/object-categories.js +5 -5
- package/resources/object-categories.mjs +5 -5
- package/resources/payroll-runs.d.mts +195 -0
- package/resources/payroll-runs.d.mts.map +1 -0
- package/resources/payroll-runs.d.ts +195 -0
- package/resources/payroll-runs.d.ts.map +1 -0
- package/resources/payroll-runs.js +32 -0
- package/resources/payroll-runs.js.map +1 -0
- package/resources/payroll-runs.mjs +28 -0
- package/resources/payroll-runs.mjs.map +1 -0
- package/resources/platform-capabilities.d.mts +2 -2
- package/resources/platform-capabilities.d.ts +2 -2
- package/resources/platform-capabilities.js +2 -2
- package/resources/platform-capabilities.mjs +2 -2
- package/resources/report-runs.d.mts +60 -0
- package/resources/report-runs.d.mts.map +1 -1
- package/resources/report-runs.d.ts +60 -0
- package/resources/report-runs.d.ts.map +1 -1
- package/resources/reports/available-filters.d.mts +49 -0
- package/resources/reports/available-filters.d.mts.map +1 -0
- package/resources/reports/available-filters.d.ts +49 -0
- package/resources/reports/available-filters.d.ts.map +1 -0
- package/resources/reports/available-filters.js +20 -0
- package/resources/reports/available-filters.js.map +1 -0
- package/resources/reports/available-filters.mjs +16 -0
- package/resources/reports/available-filters.mjs.map +1 -0
- package/resources/reports/index.d.mts +3 -0
- package/resources/reports/index.d.mts.map +1 -0
- package/resources/reports/index.d.ts +3 -0
- package/resources/reports/index.d.ts.map +1 -0
- package/resources/reports/index.js +9 -0
- package/resources/reports/index.js.map +1 -0
- package/resources/reports/index.mjs +4 -0
- package/resources/reports/index.mjs.map +1 -0
- package/resources/reports/reports.d.mts +85 -0
- package/resources/reports/reports.d.mts.map +1 -0
- package/resources/reports/reports.d.ts +85 -0
- package/resources/reports/reports.d.ts.map +1 -0
- package/resources/reports/reports.js +27 -0
- package/resources/reports/reports.js.map +1 -0
- package/resources/reports/reports.mjs +22 -0
- package/resources/reports/reports.mjs.map +1 -0
- package/resources/reports.d.mts +2 -0
- package/resources/reports.d.mts.map +1 -0
- package/resources/reports.d.ts +2 -0
- package/resources/reports.d.ts.map +1 -0
- package/resources/reports.js +6 -0
- package/resources/reports.js.map +1 -0
- package/resources/reports.mjs +3 -0
- package/resources/reports.mjs.map +1 -0
- package/resources/schedules.d.mts +2 -2
- package/resources/schedules.d.ts +2 -2
- package/resources/schedules.js +2 -2
- package/resources/schedules.mjs +2 -2
- package/resources/shift-inputs.d.mts +2 -2
- package/resources/shift-inputs.d.ts +2 -2
- package/resources/shift-inputs.js +2 -2
- package/resources/shift-inputs.mjs +2 -2
- package/resources/shiftassignments.d.mts +2 -2
- package/resources/shiftassignments.d.ts +2 -2
- package/resources/shiftassignments.js +2 -2
- package/resources/shiftassignments.mjs +2 -2
- package/resources/teams.d.mts +1 -1
- package/resources/teams.d.ts +1 -1
- package/resources/teams.js +1 -1
- package/resources/teams.mjs +1 -1
- package/resources/time-cards.d.mts +1 -1
- package/resources/time-cards.d.ts +1 -1
- package/resources/time-cards.js +1 -1
- package/resources/time-cards.mjs +1 -1
- package/resources/time-entries.d.mts +2 -2
- package/resources/time-entries.d.ts +2 -2
- package/resources/time-entries.js +2 -2
- package/resources/time-entries.mjs +2 -2
- package/resources/titles.d.mts +2 -2
- package/resources/titles.d.ts +2 -2
- package/resources/titles.js +2 -2
- package/resources/titles.mjs +2 -2
- package/resources/tracks.d.mts +1 -1
- package/resources/tracks.d.ts +1 -1
- package/resources/tracks.js +1 -1
- package/resources/tracks.mjs +1 -1
- package/resources/unassignedshifts.d.mts +2 -2
- package/resources/unassignedshifts.d.ts +2 -2
- package/resources/unassignedshifts.js +2 -2
- package/resources/unassignedshifts.mjs +2 -2
- package/resources/users.d.mts +1 -1
- package/resources/users.d.ts +1 -1
- package/resources/users.js +1 -1
- package/resources/users.mjs +1 -1
- package/resources/work-locations.d.mts +2 -2
- package/resources/work-locations.d.ts +2 -2
- package/resources/work-locations.js +2 -2
- package/resources/work-locations.mjs +2 -2
- package/resources/workers.d.mts +1 -1
- package/resources/workers.d.ts +1 -1
- package/resources/workers.js +1 -1
- package/resources/workers.mjs +1 -1
- package/resources/workflow-action-executions.d.mts +572 -0
- package/resources/workflow-action-executions.d.mts.map +1 -0
- package/resources/workflow-action-executions.d.ts +572 -0
- package/resources/workflow-action-executions.d.ts.map +1 -0
- package/resources/{create-app-notification.js → workflow-action-executions.js} +6 -6
- package/resources/workflow-action-executions.js.map +1 -0
- package/resources/{evaluate-rql.mjs → workflow-action-executions.mjs} +4 -4
- package/resources/workflow-action-executions.mjs.map +1 -0
- package/src/client.ts +55 -221
- package/src/internal/utils/env.ts +2 -2
- package/src/resources/business-partner-groups.ts +1 -1
- package/src/resources/business-partners.ts +1 -1
- package/src/resources/candidate-applications.ts +1 -1
- package/src/resources/candidates.ts +1 -1
- package/src/resources/companies.ts +1 -1
- package/src/resources/compensation-bands-details.ts +1 -1
- package/src/resources/compensations.ts +1 -1
- package/src/resources/custom-apps.ts +3 -3
- package/src/resources/custom-fields.ts +1 -1
- package/src/resources/custom-objects/custom-objects.ts +29 -5
- package/src/resources/custom-objects/fields.ts +71 -5
- package/src/resources/custom-objects/records.ts +68 -11
- package/src/resources/custom-pages.ts +3 -3
- package/src/resources/custom-settings.ts +2 -2
- package/src/resources/departments.ts +2 -2
- package/src/resources/earning-types.ts +64 -0
- package/src/resources/employment-types.ts +1 -1
- package/src/resources/entitlements.ts +1 -1
- package/src/resources/functions/deployments.ts +10 -4
- package/src/resources/functions/executions.ts +10 -4
- package/src/resources/functions/functions.ts +9 -15
- package/src/resources/functions/index.ts +1 -0
- package/src/resources/headcount-positions.ts +1 -1
- package/src/resources/headcount-priorities.ts +1 -1
- package/src/resources/index.ts +19 -52
- package/src/resources/job-assignments.ts +3 -3
- package/src/resources/job-codes.ts +3 -3
- package/src/resources/job-dimensions.ts +2 -2
- package/src/resources/job-functions.ts +1 -1
- package/src/resources/job-pay-rate-exceptions.ts +2 -2
- package/src/resources/job-requisitions.ts +1 -1
- package/src/resources/kiosk-badges.ts +2 -2
- package/src/resources/leave-accruals.ts +1 -1
- package/src/resources/leave-balances.ts +1 -1
- package/src/resources/leave-requests.ts +2 -2
- package/src/resources/leave-types.ts +1 -1
- package/src/resources/legal-entities.ts +1 -1
- package/src/resources/levels.ts +1 -1
- package/src/resources/location-factors.ts +1 -1
- package/src/resources/metadata/components.ts +2 -2
- package/src/resources/metadata/metadata.ts +2 -2
- package/src/resources/metadata/summary.ts +2 -2
- package/src/resources/metadata/types.ts +2 -2
- package/src/resources/object-categories.ts +17 -5
- package/src/resources/payroll-runs.ts +251 -0
- package/src/resources/platform-capabilities.ts +2 -2
- package/src/resources/report-runs.ts +90 -0
- package/src/resources/reports/available-filters.ts +60 -0
- package/src/resources/reports/index.ts +4 -0
- package/src/resources/reports/reports.ts +112 -0
- package/src/resources/reports.ts +3 -0
- package/src/resources/schedules.ts +2 -2
- package/src/resources/shift-inputs.ts +2 -2
- package/src/resources/shiftassignments.ts +2 -2
- package/src/resources/teams.ts +1 -1
- package/src/resources/time-cards.ts +1 -1
- package/src/resources/time-entries.ts +2 -2
- package/src/resources/titles.ts +2 -2
- package/src/resources/tracks.ts +1 -1
- package/src/resources/unassignedshifts.ts +2 -2
- package/src/resources/users.ts +1 -1
- package/src/resources/work-locations.ts +2 -2
- package/src/resources/workers.ts +1 -1
- package/src/resources/workflow-action-executions.ts +925 -0
- 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
- package/resources/assign-review.d.mts +0 -31
- package/resources/assign-review.d.mts.map +0 -1
- package/resources/assign-review.d.ts +0 -31
- package/resources/assign-review.d.ts.map +0 -1
- package/resources/assign-review.js +0 -18
- package/resources/assign-review.js.map +0 -1
- package/resources/assign-review.mjs +0 -14
- package/resources/assign-review.mjs.map +0 -1
- package/resources/create-app-notification.d.mts +0 -29
- package/resources/create-app-notification.d.mts.map +0 -1
- package/resources/create-app-notification.d.ts +0 -29
- package/resources/create-app-notification.d.ts.map +0 -1
- package/resources/create-app-notification.js.map +0 -1
- package/resources/create-app-notification.mjs +0 -14
- package/resources/create-app-notification.mjs.map +0 -1
- package/resources/create-gcal-event.d.mts +0 -55
- package/resources/create-gcal-event.d.mts.map +0 -1
- package/resources/create-gcal-event.d.ts +0 -55
- package/resources/create-gcal-event.d.ts.map +0 -1
- package/resources/create-gcal-event.js +0 -18
- package/resources/create-gcal-event.js.map +0 -1
- package/resources/create-gcal-event.mjs +0 -14
- package/resources/create-gcal-event.mjs.map +0 -1
- package/resources/delete-custom-object-record.d.mts +0 -26
- package/resources/delete-custom-object-record.d.mts.map +0 -1
- package/resources/delete-custom-object-record.d.ts +0 -26
- package/resources/delete-custom-object-record.d.ts.map +0 -1
- package/resources/delete-custom-object-record.js +0 -18
- package/resources/delete-custom-object-record.js.map +0 -1
- package/resources/delete-custom-object-record.mjs +0 -14
- package/resources/delete-custom-object-record.mjs.map +0 -1
- package/resources/evaluate-rql.d.mts +0 -31
- package/resources/evaluate-rql.d.mts.map +0 -1
- package/resources/evaluate-rql.d.ts +0 -31
- package/resources/evaluate-rql.d.ts.map +0 -1
- package/resources/evaluate-rql.js +0 -18
- package/resources/evaluate-rql.js.map +0 -1
- package/resources/evaluate-rql.mjs.map +0 -1
- package/resources/run-query.d.mts +0 -39
- package/resources/run-query.d.mts.map +0 -1
- package/resources/run-query.d.ts +0 -39
- package/resources/run-query.d.ts.map +0 -1
- package/resources/run-query.js +0 -21
- package/resources/run-query.js.map +0 -1
- package/resources/run-query.mjs +0 -17
- package/resources/run-query.mjs.map +0 -1
- package/resources/send-email.d.mts +0 -33
- package/resources/send-email.d.mts.map +0 -1
- package/resources/send-email.d.ts +0 -33
- package/resources/send-email.d.ts.map +0 -1
- package/resources/send-email.js +0 -18
- package/resources/send-email.js.map +0 -1
- package/resources/send-email.mjs +0 -14
- package/resources/send-email.mjs.map +0 -1
- package/resources/send-http-request.d.mts +0 -32
- package/resources/send-http-request.d.mts.map +0 -1
- package/resources/send-http-request.d.ts +0 -32
- package/resources/send-http-request.d.ts.map +0 -1
- package/resources/send-http-request.js +0 -18
- package/resources/send-http-request.js.map +0 -1
- package/resources/send-http-request.mjs +0 -14
- package/resources/send-http-request.mjs.map +0 -1
- package/resources/send-push-notification.d.mts +0 -27
- package/resources/send-push-notification.d.mts.map +0 -1
- package/resources/send-push-notification.d.ts +0 -27
- package/resources/send-push-notification.d.ts.map +0 -1
- package/resources/send-push-notification.js +0 -18
- package/resources/send-push-notification.js.map +0 -1
- package/resources/send-push-notification.mjs +0 -14
- package/resources/send-push-notification.mjs.map +0 -1
- package/resources/send-report-sftp.d.mts +0 -42
- package/resources/send-report-sftp.d.mts.map +0 -1
- package/resources/send-report-sftp.d.ts +0 -42
- package/resources/send-report-sftp.d.ts.map +0 -1
- package/resources/send-report-sftp.js +0 -18
- package/resources/send-report-sftp.js.map +0 -1
- package/resources/send-report-sftp.mjs +0 -14
- package/resources/send-report-sftp.mjs.map +0 -1
- package/resources/send-slack.d.mts +0 -30
- package/resources/send-slack.d.mts.map +0 -1
- package/resources/send-slack.d.ts +0 -30
- package/resources/send-slack.d.ts.map +0 -1
- package/resources/send-slack.js +0 -18
- package/resources/send-slack.js.map +0 -1
- package/resources/send-slack.mjs +0 -14
- package/resources/send-slack.mjs.map +0 -1
- package/resources/send-sms.d.mts +0 -26
- package/resources/send-sms.d.mts.map +0 -1
- package/resources/send-sms.d.ts +0 -26
- package/resources/send-sms.d.ts.map +0 -1
- package/resources/send-sms.js +0 -18
- package/resources/send-sms.js.map +0 -1
- package/resources/send-sms.mjs +0 -14
- package/resources/send-sms.mjs.map +0 -1
- package/resources/send-survey.d.mts +0 -29
- package/resources/send-survey.d.mts.map +0 -1
- package/resources/send-survey.d.ts +0 -29
- package/resources/send-survey.d.ts.map +0 -1
- package/resources/send-survey.js +0 -18
- package/resources/send-survey.js.map +0 -1
- package/resources/send-survey.mjs +0 -14
- package/resources/send-survey.mjs.map +0 -1
- package/resources/send-teams.d.mts +0 -30
- package/resources/send-teams.d.mts.map +0 -1
- package/resources/send-teams.d.ts +0 -30
- package/resources/send-teams.d.ts.map +0 -1
- package/resources/send-teams.js +0 -18
- package/resources/send-teams.js.map +0 -1
- package/resources/send-teams.mjs +0 -14
- package/resources/send-teams.mjs.map +0 -1
- package/resources/update-custom-object-record.d.mts +0 -27
- package/resources/update-custom-object-record.d.mts.map +0 -1
- package/resources/update-custom-object-record.d.ts +0 -27
- package/resources/update-custom-object-record.d.ts.map +0 -1
- package/resources/update-custom-object-record.js +0 -18
- package/resources/update-custom-object-record.js.map +0 -1
- package/resources/update-custom-object-record.mjs +0 -14
- package/resources/update-custom-object-record.mjs.map +0 -1
- package/resources/upsert-custom-object.d.mts +0 -26
- package/resources/upsert-custom-object.d.mts.map +0 -1
- package/resources/upsert-custom-object.d.ts +0 -26
- package/resources/upsert-custom-object.d.ts.map +0 -1
- package/resources/upsert-custom-object.js +0 -18
- package/resources/upsert-custom-object.js.map +0 -1
- package/resources/upsert-custom-object.mjs +0 -14
- package/resources/upsert-custom-object.mjs.map +0 -1
- package/src/resources/assign-review.ts +0 -44
- package/src/resources/create-app-notification.ts +0 -46
- package/src/resources/create-gcal-event.ts +0 -86
- package/src/resources/delete-custom-object-record.ts +0 -40
- package/src/resources/evaluate-rql.ts +0 -44
- package/src/resources/run-query.ts +0 -51
- package/src/resources/send-email.ts +0 -48
- package/src/resources/send-http-request.ts +0 -49
- package/src/resources/send-push-notification.ts +0 -42
- package/src/resources/send-report-sftp.ts +0 -66
- package/src/resources/send-slack.ts +0 -42
- package/src/resources/send-sms.ts +0 -37
- package/src/resources/send-survey.ts +0 -43
- package/src/resources/send-teams.ts +0 -42
- package/src/resources/update-custom-object-record.ts +0 -42
- package/src/resources/upsert-custom-object.ts +0 -40
|
@@ -0,0 +1,251 @@
|
|
|
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 { APIPromise } from '../core/api-promise';
|
|
6
|
+
import { PageCursorURL, PagePromise } from '../core/pagination';
|
|
7
|
+
import { RequestOptions } from '../internal/request-options';
|
|
8
|
+
import { path } from '../internal/utils/path';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Payroll runs for the company
|
|
12
|
+
*/
|
|
13
|
+
export class PayrollRuns extends APIResource {
|
|
14
|
+
/**
|
|
15
|
+
* A list of payroll-runs.
|
|
16
|
+
*
|
|
17
|
+
* - Requires: `Payroll API`
|
|
18
|
+
* - Sortable fields: `check_date`
|
|
19
|
+
*/
|
|
20
|
+
list(
|
|
21
|
+
query: PayrollRunListParams | null | undefined = {},
|
|
22
|
+
options?: RequestOptions,
|
|
23
|
+
): PagePromise<PayrollRunListResponsesPageCursorURL, PayrollRunListResponse> {
|
|
24
|
+
return this._client.getAPIList('/payroll-runs/', PageCursorURL<PayrollRunListResponse>, {
|
|
25
|
+
query,
|
|
26
|
+
...options,
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Retrieve a specific payroll-run
|
|
32
|
+
*/
|
|
33
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<PayrollRunRetrieveResponse> {
|
|
34
|
+
return this._client.get(path`/payroll-runs/${id}/`, options);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export type PayrollRunListResponsesPageCursorURL = PageCursorURL<PayrollRunListResponse>;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* V2 DTO representing a single payroll run.
|
|
42
|
+
*
|
|
43
|
+
* Used by:
|
|
44
|
+
* - GET /payroll-runs/ (list)
|
|
45
|
+
* - GET /payroll-runs/{id} (retrieve)
|
|
46
|
+
*/
|
|
47
|
+
export interface PayrollRunListResponse {
|
|
48
|
+
/**
|
|
49
|
+
* Unique identifier for the payroll run.
|
|
50
|
+
*/
|
|
51
|
+
id?: string;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Deadline for approving the payroll run.
|
|
55
|
+
*/
|
|
56
|
+
approval_deadline?: string;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Timestamp when the run was approved.
|
|
60
|
+
*/
|
|
61
|
+
approved_at?: string;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Date the paycheck is issued.
|
|
65
|
+
*/
|
|
66
|
+
check_date?: string;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Identifier linking this payroll run to the company's legal entity in the HRIS
|
|
70
|
+
* system.
|
|
71
|
+
*/
|
|
72
|
+
company_entity_id?: string;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* ISO country code where the payroll run applies.
|
|
76
|
+
*/
|
|
77
|
+
country_code?: string;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Date funds are debited from the company's account.
|
|
81
|
+
*/
|
|
82
|
+
debit_date?: string;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Deadline after which the run is locked for changes.
|
|
86
|
+
*/
|
|
87
|
+
lock_deadline?: string;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Timestamp when the run was marked as paid.
|
|
91
|
+
*/
|
|
92
|
+
paid_at?: string;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Pay period details for this run.
|
|
96
|
+
*/
|
|
97
|
+
pay_period?: PayrollRunListResponse.PayPeriod;
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Payment method used (e.g. WIRE, ACH).
|
|
101
|
+
*/
|
|
102
|
+
payment_type?: string;
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Current state of the run (e.g. DRAFT, PAID, APPROVED).
|
|
106
|
+
*/
|
|
107
|
+
run_state?: string;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Type of the run (e.g. REGULAR, OFF_CYCLE, CORRECTION).
|
|
111
|
+
*/
|
|
112
|
+
run_type?: string;
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Human-readable title of the payroll run.
|
|
116
|
+
*/
|
|
117
|
+
title?: string;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export namespace PayrollRunListResponse {
|
|
121
|
+
/**
|
|
122
|
+
* Pay period details for this run.
|
|
123
|
+
*/
|
|
124
|
+
export interface PayPeriod {
|
|
125
|
+
/**
|
|
126
|
+
* End date of the pay period.
|
|
127
|
+
*/
|
|
128
|
+
end_date?: string;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Pay frequency for this period (e.g. BI_WEEKLY, SEMI_MONTHLY, MONTHLY, WEEKLY).
|
|
132
|
+
*/
|
|
133
|
+
pay_frequency?: string;
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Start date of the pay period.
|
|
137
|
+
*/
|
|
138
|
+
start_date?: string;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Meta information for the response.
|
|
144
|
+
*/
|
|
145
|
+
export interface PayrollRunRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
146
|
+
/**
|
|
147
|
+
* Unique identifier for the payroll run.
|
|
148
|
+
*/
|
|
149
|
+
id?: string;
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Deadline for approving the payroll run.
|
|
153
|
+
*/
|
|
154
|
+
approval_deadline?: string;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Timestamp when the run was approved.
|
|
158
|
+
*/
|
|
159
|
+
approved_at?: string;
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* Date the paycheck is issued.
|
|
163
|
+
*/
|
|
164
|
+
check_date?: string;
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Identifier linking this payroll run to the company's legal entity in the HRIS
|
|
168
|
+
* system.
|
|
169
|
+
*/
|
|
170
|
+
company_entity_id?: string;
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* ISO country code where the payroll run applies.
|
|
174
|
+
*/
|
|
175
|
+
country_code?: string;
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Date funds are debited from the company's account.
|
|
179
|
+
*/
|
|
180
|
+
debit_date?: string;
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Deadline after which the run is locked for changes.
|
|
184
|
+
*/
|
|
185
|
+
lock_deadline?: string;
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* Timestamp when the run was marked as paid.
|
|
189
|
+
*/
|
|
190
|
+
paid_at?: string;
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* Pay period details for this run.
|
|
194
|
+
*/
|
|
195
|
+
pay_period?: PayrollRunRetrieveResponse.PayPeriod;
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* Payment method used (e.g. WIRE, ACH).
|
|
199
|
+
*/
|
|
200
|
+
payment_type?: string;
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* Current state of the run (e.g. DRAFT, PAID, APPROVED).
|
|
204
|
+
*/
|
|
205
|
+
run_state?: string;
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* Type of the run (e.g. REGULAR, OFF_CYCLE, CORRECTION).
|
|
209
|
+
*/
|
|
210
|
+
run_type?: string;
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* Human-readable title of the payroll run.
|
|
214
|
+
*/
|
|
215
|
+
title?: string;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
export namespace PayrollRunRetrieveResponse {
|
|
219
|
+
/**
|
|
220
|
+
* Pay period details for this run.
|
|
221
|
+
*/
|
|
222
|
+
export interface PayPeriod {
|
|
223
|
+
/**
|
|
224
|
+
* End date of the pay period.
|
|
225
|
+
*/
|
|
226
|
+
end_date?: string;
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* Pay frequency for this period (e.g. BI_WEEKLY, SEMI_MONTHLY, MONTHLY, WEEKLY).
|
|
230
|
+
*/
|
|
231
|
+
pay_frequency?: string;
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* Start date of the pay period.
|
|
235
|
+
*/
|
|
236
|
+
start_date?: string;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
export interface PayrollRunListParams {
|
|
241
|
+
order_by?: string;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
export declare namespace PayrollRuns {
|
|
245
|
+
export {
|
|
246
|
+
type PayrollRunListResponse as PayrollRunListResponse,
|
|
247
|
+
type PayrollRunRetrieveResponse as PayrollRunRetrieveResponse,
|
|
248
|
+
type PayrollRunListResponsesPageCursorURL as PayrollRunListResponsesPageCursorURL,
|
|
249
|
+
type PayrollRunListParams as PayrollRunListParams,
|
|
250
|
+
};
|
|
251
|
+
}
|
|
@@ -9,9 +9,9 @@ import { RequestOptions } from '../internal/request-options';
|
|
|
9
9
|
*/
|
|
10
10
|
export class PlatformCapabilities extends APIResource {
|
|
11
11
|
/**
|
|
12
|
-
* A
|
|
12
|
+
* A list of platform capabilities.
|
|
13
13
|
*
|
|
14
|
-
* - Requires: `
|
|
14
|
+
* - Requires: `Platform Capabilities API`
|
|
15
15
|
*/
|
|
16
16
|
list(
|
|
17
17
|
options?: RequestOptions,
|
|
@@ -122,6 +122,11 @@ export interface ReportRunCreateParams {
|
|
|
122
122
|
*/
|
|
123
123
|
report_id: string;
|
|
124
124
|
|
|
125
|
+
/**
|
|
126
|
+
* Optional list of filters to apply when running the report
|
|
127
|
+
*/
|
|
128
|
+
filters?: Array<ReportRunCreateParams.Filter> | null;
|
|
129
|
+
|
|
125
130
|
/**
|
|
126
131
|
* Formatting options for currency fields
|
|
127
132
|
*/
|
|
@@ -156,6 +161,91 @@ export interface ReportRunCreateParams {
|
|
|
156
161
|
}
|
|
157
162
|
|
|
158
163
|
export namespace ReportRunCreateParams {
|
|
164
|
+
/**
|
|
165
|
+
* A single filter to apply when running a report. The expected shape of 'value'
|
|
166
|
+
* depends on the operator — see the FilterOperator description for details.
|
|
167
|
+
*/
|
|
168
|
+
export interface Filter {
|
|
169
|
+
/**
|
|
170
|
+
* The ID of the report field to filter on
|
|
171
|
+
*/
|
|
172
|
+
field_id: string;
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* Comparison operator for the filter. Single-value operators (eq, ne, gt, gte, lt,
|
|
176
|
+
* lte, starts_with, ends_with, contains, not_contains, before, after) require a
|
|
177
|
+
* scalar value. List operators (in, not_in) require a non-empty array. Range
|
|
178
|
+
* operators (between, not_between) require an object with 'from' and 'to' keys.
|
|
179
|
+
* No-value operators (is_empty, is_not_empty) do not require a value. Rolling-date
|
|
180
|
+
* operators (last_n, next_n) require an object with 'unit' (day, week, month,
|
|
181
|
+
* year) and 'n' (integer). Calendar-date operators (current_calendar,
|
|
182
|
+
* previous_calendar) require a unit string (day, week, month, quarter, year).
|
|
183
|
+
*/
|
|
184
|
+
operator:
|
|
185
|
+
| 'eq'
|
|
186
|
+
| 'ne'
|
|
187
|
+
| 'in'
|
|
188
|
+
| 'not_in'
|
|
189
|
+
| 'starts_with'
|
|
190
|
+
| 'ends_with'
|
|
191
|
+
| 'contains'
|
|
192
|
+
| 'not_contains'
|
|
193
|
+
| 'gt'
|
|
194
|
+
| 'gte'
|
|
195
|
+
| 'lt'
|
|
196
|
+
| 'lte'
|
|
197
|
+
| 'between'
|
|
198
|
+
| 'not_between'
|
|
199
|
+
| 'is_empty'
|
|
200
|
+
| 'is_not_empty'
|
|
201
|
+
| 'before'
|
|
202
|
+
| 'after'
|
|
203
|
+
| 'last_n'
|
|
204
|
+
| 'next_n'
|
|
205
|
+
| 'current_calendar'
|
|
206
|
+
| 'previous_calendar';
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* The filter value. Shape depends on the operator: scalar for single-value
|
|
210
|
+
* operators; array for list operators; RangeValue object ({from, to}) for range
|
|
211
|
+
* operators; RollingDateValue object ({unit, n}) for rolling-date operators; unit
|
|
212
|
+
* string for calendar-date operators; omitted or null for is_empty/is_not_empty.
|
|
213
|
+
*/
|
|
214
|
+
value?: string | number | boolean | Array<unknown> | Filter.RangeValue | Filter.RollingDateValue | null;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
export namespace Filter {
|
|
218
|
+
/**
|
|
219
|
+
* Range bounds for 'between' and 'not_between' operators
|
|
220
|
+
*/
|
|
221
|
+
export interface RangeValue {
|
|
222
|
+
/**
|
|
223
|
+
* Lower bound of the range (inclusive)
|
|
224
|
+
*/
|
|
225
|
+
from: number | string;
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* Upper bound of the range (inclusive)
|
|
229
|
+
*/
|
|
230
|
+
to: number | string;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* Rolling date window for 'last_n' and 'next_n' operators
|
|
235
|
+
*/
|
|
236
|
+
export interface RollingDateValue {
|
|
237
|
+
/**
|
|
238
|
+
* Number of units
|
|
239
|
+
*/
|
|
240
|
+
n: number;
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* Unit of time for rolling/calendar date filters
|
|
244
|
+
*/
|
|
245
|
+
unit: 'day' | 'week' | 'month' | 'quarter' | 'year';
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
|
|
159
249
|
/**
|
|
160
250
|
* Formatting options for currency fields
|
|
161
251
|
*/
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
6
|
+
import { path } from '../../internal/utils/path';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Report data for company
|
|
10
|
+
*/
|
|
11
|
+
export class AvailableFilters extends APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* Returns the list of fields that can be used to filter a report run, along with
|
|
14
|
+
* the operators each field supports.
|
|
15
|
+
*/
|
|
16
|
+
retrieve(reportID: string, options?: RequestOptions): APIPromise<AvailableFilterRetrieveResponse> {
|
|
17
|
+
return this._client.get(path`/reports/${reportID}/available-filters/`, options);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Response for GET /reports/{report_id}/available-filters
|
|
23
|
+
*/
|
|
24
|
+
export interface AvailableFilterRetrieveResponse {
|
|
25
|
+
/**
|
|
26
|
+
* List of filterable fields with their supported operators
|
|
27
|
+
*/
|
|
28
|
+
data: Array<AvailableFilterRetrieveResponse.Data>;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export namespace AvailableFilterRetrieveResponse {
|
|
32
|
+
/**
|
|
33
|
+
* Describes a field the client can filter on when running a report
|
|
34
|
+
*/
|
|
35
|
+
export interface Data {
|
|
36
|
+
/**
|
|
37
|
+
* Stable field identifier used when applying filters
|
|
38
|
+
*/
|
|
39
|
+
field_id: string;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Human-readable display name of the field
|
|
43
|
+
*/
|
|
44
|
+
field_name: string;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Operators supported by this field
|
|
48
|
+
*/
|
|
49
|
+
operators: Array<string>;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Data type of a filterable field
|
|
53
|
+
*/
|
|
54
|
+
type: 'string' | 'number' | 'date' | 'datetime' | 'enum' | 'boolean';
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export declare namespace AvailableFilters {
|
|
59
|
+
export { type AvailableFilterRetrieveResponse as AvailableFilterRetrieveResponse };
|
|
60
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as AvailableFiltersAPI from './available-filters';
|
|
5
|
+
import { AvailableFilterRetrieveResponse, AvailableFilters } from './available-filters';
|
|
6
|
+
import { APIPromise } from '../../core/api-promise';
|
|
7
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
8
|
+
import { path } from '../../internal/utils/path';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Report data for company
|
|
12
|
+
*/
|
|
13
|
+
export class Reports extends APIResource {
|
|
14
|
+
availableFilters: AvailableFiltersAPI.AvailableFilters = new AvailableFiltersAPI.AvailableFilters(
|
|
15
|
+
this._client,
|
|
16
|
+
);
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Retrieve a specific report by its ID
|
|
20
|
+
*/
|
|
21
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<ReportRetrieveResponse> {
|
|
22
|
+
return this._client.get(path`/reports/${id}/`, options);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* A report definition including its output fields and saved filters
|
|
28
|
+
*/
|
|
29
|
+
export interface ReportRetrieveResponse {
|
|
30
|
+
/**
|
|
31
|
+
* Unique identifier of the report
|
|
32
|
+
*/
|
|
33
|
+
id: string;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Record creation date
|
|
37
|
+
*/
|
|
38
|
+
created_at: string;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Display name of the report
|
|
42
|
+
*/
|
|
43
|
+
name: string;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Attributes (columns) in the report output, with field_id and field_name
|
|
47
|
+
*/
|
|
48
|
+
output_fields: Array<ReportRetrieveResponse.OutputField>;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Filters currently saved on the report
|
|
52
|
+
*/
|
|
53
|
+
saved_filters: Array<ReportRetrieveResponse.SavedFilter>;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Record update date
|
|
57
|
+
*/
|
|
58
|
+
updated_at: string;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export namespace ReportRetrieveResponse {
|
|
62
|
+
/**
|
|
63
|
+
* An attribute (column) in the report output
|
|
64
|
+
*/
|
|
65
|
+
export interface OutputField {
|
|
66
|
+
/**
|
|
67
|
+
* Stable field identifier
|
|
68
|
+
*/
|
|
69
|
+
field_id: string;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Human-readable display name of the output field
|
|
73
|
+
*/
|
|
74
|
+
field_name: string;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* A filter currently saved on the report
|
|
79
|
+
*/
|
|
80
|
+
export interface SavedFilter {
|
|
81
|
+
/**
|
|
82
|
+
* Stable field identifier the filter applies to
|
|
83
|
+
*/
|
|
84
|
+
field_id: string;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Human-readable display name of the filtered field
|
|
88
|
+
*/
|
|
89
|
+
field_name: string;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Filter operator applied to the field
|
|
93
|
+
*/
|
|
94
|
+
operator: string;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Filter value; shape depends on the operator
|
|
98
|
+
*/
|
|
99
|
+
value?: unknown;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
Reports.AvailableFilters = AvailableFilters;
|
|
104
|
+
|
|
105
|
+
export declare namespace Reports {
|
|
106
|
+
export { type ReportRetrieveResponse as ReportRetrieveResponse };
|
|
107
|
+
|
|
108
|
+
export {
|
|
109
|
+
AvailableFilters as AvailableFilters,
|
|
110
|
+
type AvailableFilterRetrieveResponse as AvailableFilterRetrieveResponse,
|
|
111
|
+
};
|
|
112
|
+
}
|
|
@@ -13,7 +13,7 @@ import { path } from '../internal/utils/path';
|
|
|
13
13
|
*/
|
|
14
14
|
export class Schedules extends APIResource {
|
|
15
15
|
/**
|
|
16
|
-
* A
|
|
16
|
+
* A list of schedules.
|
|
17
17
|
*
|
|
18
18
|
* - Requires: `API Tier 2`
|
|
19
19
|
* - Expandable fields: `managers`, `observers`, `members`
|
|
@@ -48,7 +48,7 @@ export class Schedules extends APIResource {
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
/**
|
|
51
|
-
*
|
|
51
|
+
* Update a specific schedule.
|
|
52
52
|
*/
|
|
53
53
|
update(
|
|
54
54
|
id: string,
|
|
@@ -14,7 +14,7 @@ import { path } from '../internal/utils/path';
|
|
|
14
14
|
*/
|
|
15
15
|
export class ShiftInputs extends APIResource {
|
|
16
16
|
/**
|
|
17
|
-
* A
|
|
17
|
+
* A list of shift inputs.
|
|
18
18
|
*
|
|
19
19
|
* - Requires: `API Tier 2`
|
|
20
20
|
* - Filterable fields: `name`
|
|
@@ -50,7 +50,7 @@ export class ShiftInputs extends APIResource {
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
|
-
*
|
|
53
|
+
* Update a specific shift input.
|
|
54
54
|
*/
|
|
55
55
|
update(
|
|
56
56
|
id: string,
|
|
@@ -13,7 +13,7 @@ import { path } from '../internal/utils/path';
|
|
|
13
13
|
*/
|
|
14
14
|
export class Shiftassignments extends APIResource {
|
|
15
15
|
/**
|
|
16
|
-
* A
|
|
16
|
+
* A list of shift assignments.
|
|
17
17
|
*
|
|
18
18
|
* - Requires: `API Tier 2`
|
|
19
19
|
* - Filterable fields: `worker_id`, `schedule_id`, `shift_data.start_time`,
|
|
@@ -53,7 +53,7 @@ export class Shiftassignments extends APIResource {
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
/**
|
|
56
|
-
*
|
|
56
|
+
* Update a specific shift assignment.
|
|
57
57
|
*/
|
|
58
58
|
update(
|
|
59
59
|
id: string,
|
package/src/resources/teams.ts
CHANGED
|
@@ -15,7 +15,7 @@ import { path } from '../internal/utils/path';
|
|
|
15
15
|
*/
|
|
16
16
|
export class TimeEntries extends APIResource {
|
|
17
17
|
/**
|
|
18
|
-
* A
|
|
18
|
+
* A list of time entries.
|
|
19
19
|
*
|
|
20
20
|
* - Requires: `API Tier 2`
|
|
21
21
|
* - Filterable fields: `worker_id`, `start_time`, `pay_period.start_date`,
|
|
@@ -52,7 +52,7 @@ export class TimeEntries extends APIResource {
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
55
|
+
* Update a specific time entry.
|
|
56
56
|
*/
|
|
57
57
|
update(
|
|
58
58
|
id: string,
|
package/src/resources/titles.ts
CHANGED
|
@@ -13,7 +13,7 @@ import { path } from '../internal/utils/path';
|
|
|
13
13
|
*/
|
|
14
14
|
export class Titles extends APIResource {
|
|
15
15
|
/**
|
|
16
|
-
* A
|
|
16
|
+
* A list of titles.
|
|
17
17
|
*
|
|
18
18
|
* - Requires: `API Tier 1`
|
|
19
19
|
* - Sortable fields: `id`, `created_at`, `updated_at`
|
|
@@ -40,7 +40,7 @@ export class Titles extends APIResource {
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* Update a specific title.
|
|
44
44
|
*/
|
|
45
45
|
update(id: string, body: TitleUpdateParams, options?: RequestOptions): APIPromise<TitleUpdateResponse> {
|
|
46
46
|
return this._client.patch(path`/titles/${id}/`, { body, ...options });
|
package/src/resources/tracks.ts
CHANGED
|
@@ -13,7 +13,7 @@ import { path } from '../internal/utils/path';
|
|
|
13
13
|
*/
|
|
14
14
|
export class Unassignedshifts extends APIResource {
|
|
15
15
|
/**
|
|
16
|
-
* A
|
|
16
|
+
* A list of unassigned shifts.
|
|
17
17
|
*
|
|
18
18
|
* - Requires: `API Tier 2`
|
|
19
19
|
* - Filterable fields: `schedule_id`, `shift_data.start_time`,
|
|
@@ -53,7 +53,7 @@ export class Unassignedshifts extends APIResource {
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
/**
|
|
56
|
-
*
|
|
56
|
+
* Update a specific unassigned shift.
|
|
57
57
|
*/
|
|
58
58
|
update(
|
|
59
59
|
id: string,
|
package/src/resources/users.ts
CHANGED