@rippling/rippling-sdk 0.2.0-alpha.86 → 0.2.0-alpha.88
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 +15 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +15 -0
- package/client.d.ts.map +1 -1
- package/client.js +15 -0
- package/client.js.map +1 -1
- package/client.mjs +15 -0
- package/client.mjs.map +1 -1
- package/lib/leave-programs/advanced.d.mts +5 -0
- package/lib/leave-programs/advanced.d.mts.map +1 -0
- package/lib/leave-programs/advanced.d.ts +5 -0
- package/lib/leave-programs/advanced.d.ts.map +1 -0
- package/lib/leave-programs/advanced.js +13 -0
- package/lib/leave-programs/advanced.js.map +1 -0
- package/lib/leave-programs/advanced.mjs +4 -0
- package/lib/leave-programs/advanced.mjs.map +1 -0
- package/lib/leave-programs/context.d.mts +3 -0
- package/lib/leave-programs/context.d.mts.map +1 -0
- package/lib/leave-programs/context.d.ts +3 -0
- package/lib/leave-programs/context.d.ts.map +1 -0
- package/lib/leave-programs/context.js +89 -0
- package/lib/leave-programs/context.js.map +1 -0
- package/lib/leave-programs/context.mjs +86 -0
- package/lib/leave-programs/context.mjs.map +1 -0
- package/lib/leave-programs/define-company-leave-program.d.mts +3 -0
- package/lib/leave-programs/define-company-leave-program.d.mts.map +1 -0
- package/lib/leave-programs/define-company-leave-program.d.ts +3 -0
- package/lib/leave-programs/define-company-leave-program.d.ts.map +1 -0
- package/lib/leave-programs/define-company-leave-program.js +47 -0
- package/lib/leave-programs/define-company-leave-program.js.map +1 -0
- package/lib/leave-programs/define-company-leave-program.mjs +44 -0
- package/lib/leave-programs/define-company-leave-program.mjs.map +1 -0
- package/lib/leave-programs/duration.d.mts +5 -0
- package/lib/leave-programs/duration.d.mts.map +1 -0
- package/lib/leave-programs/duration.d.ts +5 -0
- package/lib/leave-programs/duration.d.ts.map +1 -0
- package/lib/leave-programs/duration.js +21 -0
- package/lib/leave-programs/duration.js.map +1 -0
- package/lib/leave-programs/duration.mjs +16 -0
- package/lib/leave-programs/duration.mjs.map +1 -0
- package/lib/leave-programs/pay.d.mts +4 -0
- package/lib/leave-programs/pay.d.mts.map +1 -0
- package/lib/leave-programs/pay.d.ts +4 -0
- package/lib/leave-programs/pay.d.ts.map +1 -0
- package/lib/leave-programs/pay.js +20 -0
- package/lib/leave-programs/pay.js.map +1 -0
- package/lib/leave-programs/pay.mjs +16 -0
- package/lib/leave-programs/pay.mjs.map +1 -0
- package/lib/leave-programs/policy-builder.d.mts +20 -0
- package/lib/leave-programs/policy-builder.d.mts.map +1 -0
- package/lib/leave-programs/policy-builder.d.ts +20 -0
- package/lib/leave-programs/policy-builder.d.ts.map +1 -0
- package/lib/leave-programs/policy-builder.js +89 -0
- package/lib/leave-programs/policy-builder.js.map +1 -0
- package/lib/leave-programs/policy-builder.mjs +85 -0
- package/lib/leave-programs/policy-builder.mjs.map +1 -0
- package/lib/leave-programs/recipes/parental-top-up-policy.d.mts +25 -0
- package/lib/leave-programs/recipes/parental-top-up-policy.d.mts.map +1 -0
- package/lib/leave-programs/recipes/parental-top-up-policy.d.ts +25 -0
- package/lib/leave-programs/recipes/parental-top-up-policy.d.ts.map +1 -0
- package/lib/leave-programs/recipes/parental-top-up-policy.js +56 -0
- package/lib/leave-programs/recipes/parental-top-up-policy.js.map +1 -0
- package/lib/leave-programs/recipes/parental-top-up-policy.mjs +53 -0
- package/lib/leave-programs/recipes/parental-top-up-policy.mjs.map +1 -0
- package/lib/leave-programs/testing.d.mts +8 -0
- package/lib/leave-programs/testing.d.mts.map +1 -0
- package/lib/leave-programs/testing.d.ts +8 -0
- package/lib/leave-programs/testing.d.ts.map +1 -0
- package/lib/leave-programs/testing.js +11 -0
- package/lib/leave-programs/testing.js.map +1 -0
- package/lib/leave-programs/testing.mjs +7 -0
- package/lib/leave-programs/testing.mjs.map +1 -0
- package/lib/leave-programs/types.d.mts +223 -0
- package/lib/leave-programs/types.d.mts.map +1 -0
- package/lib/leave-programs/types.d.ts +223 -0
- package/lib/leave-programs/types.d.ts.map +1 -0
- package/lib/leave-programs/types.js +10 -0
- package/lib/leave-programs/types.js.map +1 -0
- package/lib/leave-programs/types.mjs +7 -0
- package/lib/leave-programs/types.mjs.map +1 -0
- package/lib/leave-programs.d.mts +7 -0
- package/lib/leave-programs.d.mts.map +1 -0
- package/lib/leave-programs.d.ts +7 -0
- package/lib/leave-programs.d.ts.map +1 -0
- package/lib/leave-programs.js +19 -0
- package/lib/leave-programs.js.map +1 -0
- package/lib/leave-programs.mjs +7 -0
- package/lib/leave-programs.mjs.map +1 -0
- package/package.json +1 -1
- package/resources/agents/agents.d.mts +208 -0
- package/resources/agents/agents.d.mts.map +1 -0
- package/resources/agents/agents.d.ts +208 -0
- package/resources/agents/agents.d.ts.map +1 -0
- package/resources/agents/agents.js +64 -0
- package/resources/agents/agents.js.map +1 -0
- package/resources/agents/agents.mjs +59 -0
- package/resources/agents/agents.mjs.map +1 -0
- package/resources/agents/deployments.d.mts +180 -0
- package/resources/agents/deployments.d.mts.map +1 -0
- package/resources/agents/deployments.d.ts +180 -0
- package/resources/agents/deployments.d.ts.map +1 -0
- package/resources/agents/deployments.js +32 -0
- package/resources/agents/deployments.js.map +1 -0
- package/resources/agents/deployments.mjs +28 -0
- package/resources/agents/deployments.mjs.map +1 -0
- package/resources/agents/index.d.mts +5 -0
- package/resources/agents/index.d.mts.map +1 -0
- package/resources/agents/index.d.ts +5 -0
- package/resources/agents/index.d.ts.map +1 -0
- package/resources/agents/index.js +13 -0
- package/resources/agents/index.js.map +1 -0
- package/resources/agents/index.mjs +6 -0
- package/resources/agents/index.mjs.map +1 -0
- package/resources/agents/sessions/events.d.mts +80 -0
- package/resources/agents/sessions/events.d.mts.map +1 -0
- package/resources/agents/sessions/events.d.ts +80 -0
- package/resources/agents/sessions/events.d.ts.map +1 -0
- package/resources/agents/sessions/events.js +19 -0
- package/resources/agents/sessions/events.js.map +1 -0
- package/resources/agents/sessions/events.mjs +15 -0
- package/resources/agents/sessions/events.mjs.map +1 -0
- package/resources/agents/sessions/index.d.mts +4 -0
- package/resources/agents/sessions/index.d.mts.map +1 -0
- package/resources/agents/sessions/index.d.ts +4 -0
- package/resources/agents/sessions/index.d.ts.map +1 -0
- package/resources/agents/sessions/index.js +11 -0
- package/resources/agents/sessions/index.js.map +1 -0
- package/resources/agents/sessions/index.mjs +5 -0
- package/resources/agents/sessions/index.mjs.map +1 -0
- package/resources/agents/sessions/messages.d.mts +60 -0
- package/resources/agents/sessions/messages.d.mts.map +1 -0
- package/resources/agents/sessions/messages.d.ts +60 -0
- package/resources/agents/sessions/messages.d.ts.map +1 -0
- package/resources/agents/sessions/messages.js +19 -0
- package/resources/agents/sessions/messages.js.map +1 -0
- package/resources/agents/sessions/messages.mjs +15 -0
- package/resources/agents/sessions/messages.mjs.map +1 -0
- package/resources/agents/sessions/sessions.d.mts +157 -0
- package/resources/agents/sessions/sessions.d.mts.map +1 -0
- package/resources/agents/sessions/sessions.d.ts +157 -0
- package/resources/agents/sessions/sessions.d.ts.map +1 -0
- package/resources/agents/sessions/sessions.js +48 -0
- package/resources/agents/sessions/sessions.js.map +1 -0
- package/resources/agents/sessions/sessions.mjs +43 -0
- package/resources/agents/sessions/sessions.mjs.map +1 -0
- package/resources/agents/sessions.d.mts +2 -0
- package/resources/agents/sessions.d.mts.map +1 -0
- package/resources/agents/sessions.d.ts +2 -0
- package/resources/agents/sessions.d.ts.map +1 -0
- package/resources/agents/sessions.js +6 -0
- package/resources/agents/sessions.js.map +1 -0
- package/resources/agents/sessions.mjs +3 -0
- package/resources/agents/sessions.mjs.map +1 -0
- package/resources/agents/source-revisions.d.mts +195 -0
- package/resources/agents/source-revisions.d.mts.map +1 -0
- package/resources/agents/source-revisions.d.ts +195 -0
- package/resources/agents/source-revisions.d.ts.map +1 -0
- package/resources/agents/source-revisions.js +32 -0
- package/resources/agents/source-revisions.js.map +1 -0
- package/resources/agents/source-revisions.mjs +28 -0
- package/resources/agents/source-revisions.mjs.map +1 -0
- package/resources/agents.d.mts +2 -0
- package/resources/agents.d.mts.map +1 -0
- package/resources/agents.d.ts +2 -0
- package/resources/agents.d.ts.map +1 -0
- package/resources/agents.js +6 -0
- package/resources/agents.js.map +1 -0
- package/resources/agents.mjs +3 -0
- package/resources/agents.mjs.map +1 -0
- package/resources/break-policies.d.mts +1 -1
- package/resources/break-policies.d.ts +1 -1
- package/resources/break-policies.js +1 -1
- package/resources/break-policies.mjs +1 -1
- package/resources/break-types.d.mts +1 -1
- package/resources/break-types.d.ts +1 -1
- package/resources/break-types.js +1 -1
- package/resources/break-types.mjs +1 -1
- package/resources/business-structure-paths.d.mts +1 -1
- package/resources/business-structure-paths.d.ts +1 -1
- package/resources/business-structure-paths.js +1 -1
- package/resources/business-structure-paths.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/company-legal-entities.d.mts +1 -1
- package/resources/company-legal-entities.d.ts +1 -1
- package/resources/company-legal-entities.js +1 -1
- package/resources/company-legal-entities.mjs +1 -1
- package/resources/company-legal-entity-workers.d.mts +1 -1
- package/resources/company-legal-entity-workers.d.ts +1 -1
- package/resources/company-legal-entity-workers.js +1 -1
- package/resources/company-legal-entity-workers.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/device-orders.d.mts +1 -1
- package/resources/device-orders.d.ts +1 -1
- package/resources/device-orders.js +1 -1
- package/resources/device-orders.mjs +1 -1
- package/resources/devices.d.mts +1 -1
- package/resources/devices.d.ts +1 -1
- package/resources/devices.js +1 -1
- package/resources/devices.mjs +1 -1
- package/resources/functions/deployments.d.mts +2 -2
- package/resources/functions/deployments.d.ts +2 -2
- package/resources/functions/deployments.js +2 -2
- package/resources/functions/deployments.mjs +2 -2
- package/resources/functions/executions.d.mts +2 -2
- package/resources/functions/executions.d.ts +2 -2
- package/resources/functions/executions.js +2 -2
- package/resources/functions/executions.mjs +2 -2
- package/resources/functions/functions.d.mts +1 -1
- package/resources/functions/functions.d.ts +1 -1
- package/resources/functions/functions.js +1 -1
- package/resources/functions/functions.mjs +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 +3 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +8 -2
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -0
- package/resources/index.mjs.map +1 -1
- package/resources/job-assignments.d.mts +2 -2
- package/resources/job-assignments.d.ts +2 -2
- package/resources/job-assignments.js +2 -2
- package/resources/job-assignments.mjs +2 -2
- package/resources/job-codes.d.mts +2 -2
- package/resources/job-codes.d.ts +2 -2
- package/resources/job-codes.js +2 -2
- package/resources/job-codes.mjs +2 -2
- package/resources/job-dimensions.d.mts +1 -1
- package/resources/job-dimensions.d.ts +1 -1
- package/resources/job-dimensions.js +1 -1
- package/resources/job-dimensions.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 +1 -1
- package/resources/kiosk-badges.d.ts +1 -1
- package/resources/kiosk-badges.js +1 -1
- package/resources/kiosk-badges.mjs +1 -1
- 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-program-evaluations.d.mts +5 -0
- package/resources/leave-program-evaluations.d.mts.map +1 -1
- package/resources/leave-program-evaluations.d.ts +5 -0
- package/resources/leave-program-evaluations.d.ts.map +1 -1
- package/resources/leave-requests.d.mts +1 -1
- package/resources/leave-requests.d.ts +1 -1
- package/resources/leave-requests.js +1 -1
- package/resources/leave-requests.mjs +1 -1
- 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/packages/index.d.mts +3 -0
- package/resources/packages/index.d.mts.map +1 -0
- package/resources/packages/index.d.ts +3 -0
- package/resources/packages/index.d.ts.map +1 -0
- package/resources/packages/index.js +9 -0
- package/resources/packages/index.js.map +1 -0
- package/resources/packages/index.mjs +4 -0
- package/resources/packages/index.mjs.map +1 -0
- package/resources/packages/packages.d.mts +239 -0
- package/resources/packages/packages.d.mts.map +1 -0
- package/resources/packages/packages.d.ts +239 -0
- package/resources/packages/packages.d.ts.map +1 -0
- package/resources/packages/packages.js +60 -0
- package/resources/packages/packages.js.map +1 -0
- package/resources/packages/packages.mjs +55 -0
- package/resources/packages/packages.mjs.map +1 -0
- package/resources/packages/versions.d.mts +72 -0
- package/resources/packages/versions.d.mts.map +1 -0
- package/resources/packages/versions.d.ts +72 -0
- package/resources/packages/versions.d.ts.map +1 -0
- package/resources/packages/versions.js +19 -0
- package/resources/packages/versions.js.map +1 -0
- package/resources/packages/versions.mjs +15 -0
- package/resources/packages/versions.mjs.map +1 -0
- package/resources/packages.d.mts +2 -0
- package/resources/packages.d.mts.map +1 -0
- package/resources/packages.d.ts +2 -0
- package/resources/packages.d.ts.map +1 -0
- package/resources/packages.js +6 -0
- package/resources/packages.js.map +1 -0
- package/resources/packages.mjs +3 -0
- package/resources/packages.mjs.map +1 -0
- package/resources/scheduled-job-assignments.d.mts +1 -1
- package/resources/scheduled-job-assignments.d.ts +1 -1
- package/resources/scheduled-job-assignments.js +1 -1
- package/resources/scheduled-job-assignments.mjs +1 -1
- package/resources/schedules.d.mts +1 -1
- package/resources/schedules.d.ts +1 -1
- package/resources/schedules.js +1 -1
- package/resources/schedules.mjs +1 -1
- package/resources/shift-assignments.d.mts +1 -1
- package/resources/shift-assignments.d.ts +1 -1
- package/resources/shift-assignments.js +1 -1
- package/resources/shift-assignments.mjs +1 -1
- package/resources/shift-inputs.d.mts +1 -1
- package/resources/shift-inputs.d.ts +1 -1
- package/resources/shift-inputs.js +1 -1
- package/resources/shift-inputs.mjs +1 -1
- package/resources/shiftassignments.d.mts +1 -1
- package/resources/shiftassignments.d.ts +1 -1
- package/resources/shiftassignments.js +1 -1
- package/resources/shiftassignments.mjs +1 -1
- package/resources/sites.d.mts +571 -0
- package/resources/sites.d.mts.map +1 -0
- package/resources/sites.d.ts +571 -0
- package/resources/sites.d.ts.map +1 -0
- package/resources/sites.js +151 -0
- package/resources/sites.js.map +1 -0
- package/resources/sites.mjs +147 -0
- package/resources/sites.mjs.map +1 -0
- package/resources/software-deployments.d.mts +1 -1
- package/resources/software-deployments.d.ts +1 -1
- package/resources/software-deployments.js +1 -1
- package/resources/software-deployments.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 +1 -1
- package/resources/time-entries.d.ts +1 -1
- package/resources/time-entries.js +1 -1
- package/resources/time-entries.mjs +1 -1
- 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/unassigned-shifts.d.mts +2 -2
- package/resources/unassigned-shifts.d.ts +2 -2
- package/resources/unassigned-shifts.js +2 -2
- package/resources/unassigned-shifts.mjs +2 -2
- package/resources/unassignedshifts.d.mts +1 -1
- package/resources/unassignedshifts.d.ts +1 -1
- package/resources/unassignedshifts.js +1 -1
- package/resources/unassignedshifts.mjs +1 -1
- package/resources/worker-time-splits.d.mts +1 -1
- package/resources/worker-time-splits.d.ts +1 -1
- package/resources/worker-time-splits.js +1 -1
- package/resources/worker-time-splits.mjs +1 -1
- package/src/client.ts +91 -0
- package/src/lib/leave-programs/README.md +160 -0
- package/src/lib/leave-programs/advanced.ts +11 -0
- package/src/lib/leave-programs/context.ts +101 -0
- package/src/lib/leave-programs/define-company-leave-program.ts +58 -0
- package/src/lib/leave-programs/duration.ts +20 -0
- package/src/lib/leave-programs/pay.ts +18 -0
- package/src/lib/leave-programs/policy-builder.ts +113 -0
- package/src/lib/leave-programs/recipes/parental-top-up-policy.ts +85 -0
- package/src/lib/leave-programs/testing.ts +16 -0
- package/src/lib/leave-programs/types.ts +274 -0
- package/src/lib/leave-programs.ts +35 -0
- package/src/resources/agents/agents.ts +340 -0
- package/src/resources/agents/deployments.ts +249 -0
- package/src/resources/agents/index.ts +40 -0
- package/src/resources/agents/sessions/events.ts +107 -0
- package/src/resources/agents/sessions/index.ts +13 -0
- package/src/resources/agents/sessions/messages.ts +83 -0
- package/src/resources/agents/sessions/sessions.ts +226 -0
- package/src/resources/agents/sessions.ts +3 -0
- package/src/resources/agents/source-revisions.ts +267 -0
- package/src/resources/agents.ts +3 -0
- package/src/resources/break-policies.ts +1 -1
- package/src/resources/break-types.ts +1 -1
- package/src/resources/business-structure-paths.ts +1 -1
- package/src/resources/candidate-applications.ts +1 -1
- package/src/resources/candidates.ts +1 -1
- package/src/resources/company-legal-entities.ts +1 -1
- package/src/resources/company-legal-entity-workers.ts +1 -1
- package/src/resources/compensation-bands-details.ts +1 -1
- package/src/resources/compensations.ts +1 -1
- package/src/resources/device-orders.ts +1 -1
- package/src/resources/devices.ts +1 -1
- package/src/resources/functions/deployments.ts +2 -2
- package/src/resources/functions/executions.ts +2 -2
- package/src/resources/functions/functions.ts +1 -1
- package/src/resources/headcount-positions.ts +1 -1
- package/src/resources/headcount-priorities.ts +1 -1
- package/src/resources/index.ts +38 -0
- package/src/resources/job-assignments.ts +2 -2
- package/src/resources/job-codes.ts +2 -2
- package/src/resources/job-dimensions.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 +1 -1
- package/src/resources/leave-accruals.ts +1 -1
- package/src/resources/leave-balances.ts +1 -1
- package/src/resources/leave-program-evaluations.ts +6 -0
- package/src/resources/leave-requests.ts +1 -1
- 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/packages/index.ts +14 -0
- package/src/resources/packages/packages.ts +329 -0
- package/src/resources/packages/versions.ts +98 -0
- package/src/resources/packages.ts +3 -0
- package/src/resources/scheduled-job-assignments.ts +1 -1
- package/src/resources/schedules.ts +1 -1
- package/src/resources/shift-assignments.ts +1 -1
- package/src/resources/shift-inputs.ts +1 -1
- package/src/resources/shiftassignments.ts +1 -1
- package/src/resources/sites.ts +725 -0
- package/src/resources/software-deployments.ts +1 -1
- package/src/resources/time-cards.ts +1 -1
- package/src/resources/time-entries.ts +1 -1
- package/src/resources/tracks.ts +1 -1
- package/src/resources/unassigned-shifts.ts +2 -2
- package/src/resources/unassignedshifts.ts +1 -1
- package/src/resources/worker-time-splits.ts +1 -1
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,329 @@
|
|
|
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 VersionsAPI from './versions';
|
|
6
|
+
import { VersionCreateParams, VersionCreateResponse, Versions } from './versions';
|
|
7
|
+
import { APIPromise } from '../../core/api-promise';
|
|
8
|
+
import { PageCursorURL, PagePromise } from '../../core/pagination';
|
|
9
|
+
import { buildHeaders } from '../../internal/headers';
|
|
10
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
11
|
+
import { path } from '../../internal/utils/path';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Author, publish, and install Unity Packages V2 packages
|
|
15
|
+
*/
|
|
16
|
+
export class Packages extends APIResource {
|
|
17
|
+
versions: VersionsAPI.Versions = new VersionsAPI.Versions(this._client);
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* A list of packages.
|
|
21
|
+
*
|
|
22
|
+
* - Requires: `Unity Packages V2 Platform API`
|
|
23
|
+
* - Filterable fields: `package_key`
|
|
24
|
+
* - Sortable fields: `id`, `created_at`, `updated_at`
|
|
25
|
+
*/
|
|
26
|
+
list(
|
|
27
|
+
query: PackageListParams | null | undefined = {},
|
|
28
|
+
options?: RequestOptions,
|
|
29
|
+
): PagePromise<PackageListResponsesPageCursorURL, PackageListResponse> {
|
|
30
|
+
return this._client.getAPIList('/packages/', PageCursorURL<PackageListResponse>, { query, ...options });
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Create a new package
|
|
35
|
+
*/
|
|
36
|
+
create(body: PackageCreateParams, options?: RequestOptions): APIPromise<PackageCreateResponse> {
|
|
37
|
+
return this._client.post('/packages/', { body, ...options });
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Retrieve a specific package
|
|
42
|
+
*/
|
|
43
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<PackageRetrieveResponse> {
|
|
44
|
+
return this._client.get(path`/packages/${id}/`, options);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Update a specific package.
|
|
49
|
+
*/
|
|
50
|
+
update(id: string, body: PackageUpdateParams, options?: RequestOptions): APIPromise<PackageUpdateResponse> {
|
|
51
|
+
return this._client.patch(path`/packages/${id}/`, { body, ...options });
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Delete a package
|
|
56
|
+
*/
|
|
57
|
+
delete(id: string, options?: RequestOptions): APIPromise<void> {
|
|
58
|
+
return this._client.delete(path`/packages/${id}/`, {
|
|
59
|
+
...options,
|
|
60
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export type PackageListResponsesPageCursorURL = PageCursorURL<PackageListResponse>;
|
|
66
|
+
|
|
67
|
+
export interface PackageListResponse {
|
|
68
|
+
/**
|
|
69
|
+
* Identifier field
|
|
70
|
+
*/
|
|
71
|
+
id: string;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Record creation date
|
|
75
|
+
*/
|
|
76
|
+
created_at: string;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* The display name of the package
|
|
80
|
+
*/
|
|
81
|
+
package_display_name: string;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* The unique package key within the publisher company
|
|
85
|
+
*/
|
|
86
|
+
package_key: string;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* The package type (for example MANAGED or UNMANAGED)
|
|
90
|
+
*/
|
|
91
|
+
package_type: string;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Record update date
|
|
95
|
+
*/
|
|
96
|
+
updated_at: string;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* The description of the package
|
|
100
|
+
*/
|
|
101
|
+
description?: string;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* The ID of the latest package version, if any
|
|
105
|
+
*/
|
|
106
|
+
latest_version_id?: string;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* The version number of the latest package version, if any
|
|
110
|
+
*/
|
|
111
|
+
latest_version_number?: string;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export interface PackageCreateResponse {
|
|
115
|
+
/**
|
|
116
|
+
* Identifier field
|
|
117
|
+
*/
|
|
118
|
+
id: string;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Record creation date
|
|
122
|
+
*/
|
|
123
|
+
created_at: string;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* The display name of the package
|
|
127
|
+
*/
|
|
128
|
+
package_display_name: string;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* The unique package key within the publisher company
|
|
132
|
+
*/
|
|
133
|
+
package_key: string;
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* The package type (for example MANAGED or UNMANAGED)
|
|
137
|
+
*/
|
|
138
|
+
package_type: string;
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Record update date
|
|
142
|
+
*/
|
|
143
|
+
updated_at: string;
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* The description of the package
|
|
147
|
+
*/
|
|
148
|
+
description?: string;
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* The ID of the latest package version, if any
|
|
152
|
+
*/
|
|
153
|
+
latest_version_id?: string;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* The version number of the latest package version, if any
|
|
157
|
+
*/
|
|
158
|
+
latest_version_number?: string;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* Meta information for the response.
|
|
163
|
+
*/
|
|
164
|
+
export interface PackageRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
165
|
+
/**
|
|
166
|
+
* Identifier field
|
|
167
|
+
*/
|
|
168
|
+
id: string;
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* Record creation date
|
|
172
|
+
*/
|
|
173
|
+
created_at: string;
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* The display name of the package
|
|
177
|
+
*/
|
|
178
|
+
package_display_name: string;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* The unique package key within the publisher company
|
|
182
|
+
*/
|
|
183
|
+
package_key: string;
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* The package type (for example MANAGED or UNMANAGED)
|
|
187
|
+
*/
|
|
188
|
+
package_type: string;
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* Record update date
|
|
192
|
+
*/
|
|
193
|
+
updated_at: string;
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* The description of the package
|
|
197
|
+
*/
|
|
198
|
+
description?: string;
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* The ID of the latest package version, if any
|
|
202
|
+
*/
|
|
203
|
+
latest_version_id?: string;
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* The version number of the latest package version, if any
|
|
207
|
+
*/
|
|
208
|
+
latest_version_number?: string;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
export interface PackageUpdateResponse {
|
|
212
|
+
/**
|
|
213
|
+
* Identifier field
|
|
214
|
+
*/
|
|
215
|
+
id: string;
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* Record creation date
|
|
219
|
+
*/
|
|
220
|
+
created_at: string;
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* The display name of the package
|
|
224
|
+
*/
|
|
225
|
+
package_display_name: string;
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* The unique package key within the publisher company
|
|
229
|
+
*/
|
|
230
|
+
package_key: string;
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* The package type (for example MANAGED or UNMANAGED)
|
|
234
|
+
*/
|
|
235
|
+
package_type: string;
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* Record update date
|
|
239
|
+
*/
|
|
240
|
+
updated_at: string;
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* The description of the package
|
|
244
|
+
*/
|
|
245
|
+
description?: string;
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* The ID of the latest package version, if any
|
|
249
|
+
*/
|
|
250
|
+
latest_version_id?: string;
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* The version number of the latest package version, if any
|
|
254
|
+
*/
|
|
255
|
+
latest_version_number?: string;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
export interface PackageListParams {
|
|
259
|
+
cursor?: string;
|
|
260
|
+
|
|
261
|
+
filter?: string;
|
|
262
|
+
|
|
263
|
+
order_by?: string;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
export interface PackageCreateParams {
|
|
267
|
+
/**
|
|
268
|
+
* The display name of the package
|
|
269
|
+
*/
|
|
270
|
+
package_display_name: string;
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* The unique package key within the publisher company
|
|
274
|
+
*/
|
|
275
|
+
package_key: string;
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* The package type (for example MANAGED or UNMANAGED)
|
|
279
|
+
*/
|
|
280
|
+
package_type: string;
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* The description of the package
|
|
284
|
+
*/
|
|
285
|
+
description?: string;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
export interface PackageUpdateParams {
|
|
289
|
+
/**
|
|
290
|
+
* The display name of the package
|
|
291
|
+
*/
|
|
292
|
+
package_display_name: string;
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* The unique package key within the publisher company
|
|
296
|
+
*/
|
|
297
|
+
package_key: string;
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* The package type (for example MANAGED or UNMANAGED)
|
|
301
|
+
*/
|
|
302
|
+
package_type: string;
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* The description of the package
|
|
306
|
+
*/
|
|
307
|
+
description?: string;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
Packages.Versions = Versions;
|
|
311
|
+
|
|
312
|
+
export declare namespace Packages {
|
|
313
|
+
export {
|
|
314
|
+
type PackageListResponse as PackageListResponse,
|
|
315
|
+
type PackageCreateResponse as PackageCreateResponse,
|
|
316
|
+
type PackageRetrieveResponse as PackageRetrieveResponse,
|
|
317
|
+
type PackageUpdateResponse as PackageUpdateResponse,
|
|
318
|
+
type PackageListResponsesPageCursorURL as PackageListResponsesPageCursorURL,
|
|
319
|
+
type PackageListParams as PackageListParams,
|
|
320
|
+
type PackageCreateParams as PackageCreateParams,
|
|
321
|
+
type PackageUpdateParams as PackageUpdateParams,
|
|
322
|
+
};
|
|
323
|
+
|
|
324
|
+
export {
|
|
325
|
+
Versions as Versions,
|
|
326
|
+
type VersionCreateResponse as VersionCreateResponse,
|
|
327
|
+
type VersionCreateParams as VersionCreateParams,
|
|
328
|
+
};
|
|
329
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
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
|
+
* Author, publish, and install Unity Packages V2 packages
|
|
10
|
+
*/
|
|
11
|
+
export class Versions extends APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* Create a new package version.
|
|
14
|
+
*/
|
|
15
|
+
create(
|
|
16
|
+
packageKey: string,
|
|
17
|
+
body: VersionCreateParams,
|
|
18
|
+
options?: RequestOptions,
|
|
19
|
+
): APIPromise<VersionCreateResponse> {
|
|
20
|
+
return this._client.post(path`/packages/${packageKey}/versions/`, { body, ...options });
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface VersionCreateResponse {
|
|
25
|
+
/**
|
|
26
|
+
* The semantic version number for this package version
|
|
27
|
+
*/
|
|
28
|
+
version_number: string;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* The unique identifier of the package version
|
|
32
|
+
*/
|
|
33
|
+
id?: string;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Components included in this package version
|
|
37
|
+
*/
|
|
38
|
+
components?: Array<unknown>;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Record creation date
|
|
42
|
+
*/
|
|
43
|
+
created_at?: string;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* The description of the package version
|
|
47
|
+
*/
|
|
48
|
+
description?: string;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Whether this package version has been published
|
|
52
|
+
*/
|
|
53
|
+
is_published?: boolean;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* The display name of the parent package
|
|
57
|
+
*/
|
|
58
|
+
package_display_name?: string;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* The ID of the parent package
|
|
62
|
+
*/
|
|
63
|
+
package_id?: string;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* The package key of the parent package
|
|
67
|
+
*/
|
|
68
|
+
package_key?: string;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Record update date
|
|
72
|
+
*/
|
|
73
|
+
updated_at?: string;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export interface VersionCreateParams {
|
|
77
|
+
/**
|
|
78
|
+
* The semantic version number for this package version
|
|
79
|
+
*/
|
|
80
|
+
version_number: string;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Components included in this package version
|
|
84
|
+
*/
|
|
85
|
+
components?: Array<unknown>;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* The description of the package version
|
|
89
|
+
*/
|
|
90
|
+
description?: string;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export declare namespace Versions {
|
|
94
|
+
export {
|
|
95
|
+
type VersionCreateResponse as VersionCreateResponse,
|
|
96
|
+
type VersionCreateParams as VersionCreateParams,
|
|
97
|
+
};
|
|
98
|
+
}
|
|
@@ -15,7 +15,7 @@ export class ScheduledJobAssignments extends APIResource {
|
|
|
15
15
|
/**
|
|
16
16
|
* A list of scheduled job assignments.
|
|
17
17
|
*
|
|
18
|
-
* - Requires: `API Tier
|
|
18
|
+
* - Requires: `API Tier 1`
|
|
19
19
|
* - Sortable fields: `id`, `created_at`, `updated_at`, `effective_from`
|
|
20
20
|
*/
|
|
21
21
|
list(
|
|
@@ -15,7 +15,7 @@ export class Schedules extends APIResource {
|
|
|
15
15
|
/**
|
|
16
16
|
* A list of schedules.
|
|
17
17
|
*
|
|
18
|
-
* - Requires: `API Tier
|
|
18
|
+
* - Requires: `API Tier 1`
|
|
19
19
|
* - Expandable fields: `managers`, `observers`, `members`
|
|
20
20
|
* - Sortable fields: `id`, `created_at`, `updated_at`
|
|
21
21
|
*/
|
|
@@ -15,7 +15,7 @@ export class ShiftAssignments extends APIResource {
|
|
|
15
15
|
* Update custom fields for a shift assignment. The request body should contain a
|
|
16
16
|
* dictionary mapping custom field names to their values.
|
|
17
17
|
*
|
|
18
|
-
* - Requires: `API Tier
|
|
18
|
+
* - Requires: `API Tier 1`
|
|
19
19
|
*
|
|
20
20
|
* @example
|
|
21
21
|
* ```ts
|
|
@@ -16,7 +16,7 @@ export class ShiftInputs extends APIResource {
|
|
|
16
16
|
/**
|
|
17
17
|
* A list of shift inputs.
|
|
18
18
|
*
|
|
19
|
-
* - Requires: `API Tier
|
|
19
|
+
* - Requires: `API Tier 1`
|
|
20
20
|
* - Filterable fields: `name`
|
|
21
21
|
* - Expandable fields: `creator`
|
|
22
22
|
* - Sortable fields: `id`, `created_at`, `updated_at`
|
|
@@ -15,7 +15,7 @@ export class Shiftassignments extends APIResource {
|
|
|
15
15
|
/**
|
|
16
16
|
* A list of shift assignments.
|
|
17
17
|
*
|
|
18
|
-
* - Requires: `API Tier
|
|
18
|
+
* - Requires: `API Tier 1`
|
|
19
19
|
* - Filterable fields: `worker_id`, `schedule_id`, `shift_data.start_time`,
|
|
20
20
|
* `shift_data.end_time`
|
|
21
21
|
* - Expandable fields: `worker`, `schedule`
|