@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,725 @@
|
|
|
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 { buildHeaders } from '../internal/headers';
|
|
8
|
+
import { RequestOptions } from '../internal/request-options';
|
|
9
|
+
import { path } from '../internal/utils/path';
|
|
10
|
+
|
|
11
|
+
export class Sites extends APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* Retrieves sites that the user has view or edit access on. Optional query param
|
|
14
|
+
* name filters by case-insensitive substring on display name. Use GET
|
|
15
|
+
* /sites/{api_name}/ for an exact api_name lookup.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* // Automatically fetches more pages as needed.
|
|
20
|
+
* for await (const siteListResponse of client.sites.list()) {
|
|
21
|
+
* // ...
|
|
22
|
+
* }
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
list(options?: RequestOptions): PagePromise<SiteListResponsesPageCursorURL, SiteListResponse> {
|
|
26
|
+
return this._client.getAPIList('/sites/', PageCursorURL<SiteListResponse>, options);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Create a new site from a staged upload.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```ts
|
|
34
|
+
* const site = await client.sites.create({
|
|
35
|
+
* api_name: 'my_portal',
|
|
36
|
+
* file_id: 'file_id_1',
|
|
37
|
+
* name: 'My Portal',
|
|
38
|
+
* entry_path: 'index.html',
|
|
39
|
+
* });
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
create(body: SiteCreateParams, options?: RequestOptions): APIPromise<SiteCreateResponse> {
|
|
43
|
+
return this._client.post('/sites/', { body, ...options });
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Retrieve a specific site.
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* ```ts
|
|
51
|
+
* const site = await client.sites.retrieve('employee_portal');
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
retrieve(apiName: string, options?: RequestOptions): APIPromise<SiteRetrieveResponse> {
|
|
55
|
+
return this._client.get(path`/sites/${apiName}/`, options);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Update a site. To replace the bundle, pass a file_id from
|
|
60
|
+
* upload-batches/presign.
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* ```ts
|
|
64
|
+
* const site = await client.sites.update('employee_portal', {
|
|
65
|
+
* entry_path: 'index.html',
|
|
66
|
+
* file_id: 'file_id_1',
|
|
67
|
+
* name: 'My Portal',
|
|
68
|
+
* });
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
71
|
+
update(
|
|
72
|
+
apiName: string,
|
|
73
|
+
body: SiteUpdateParams | null | undefined = {},
|
|
74
|
+
options?: RequestOptions,
|
|
75
|
+
): APIPromise<SiteUpdateResponse> {
|
|
76
|
+
return this._client.patch(path`/sites/${apiName}/`, { body, ...options });
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Delete a site.
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* ```ts
|
|
84
|
+
* await client.sites.delete('employee_portal');
|
|
85
|
+
* ```
|
|
86
|
+
*/
|
|
87
|
+
delete(apiName: string, options?: RequestOptions): APIPromise<void> {
|
|
88
|
+
return this._client.delete(path`/sites/${apiName}/`, {
|
|
89
|
+
...options,
|
|
90
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Create staged upload records and return presigned S3 POST credentials.
|
|
96
|
+
*
|
|
97
|
+
* @example
|
|
98
|
+
* ```ts
|
|
99
|
+
* const response = await client.sites.uploadBatchesPresign({
|
|
100
|
+
* file_intents: [
|
|
101
|
+
* { client_ref: 'index', file_name: 'index.html' },
|
|
102
|
+
* ],
|
|
103
|
+
* });
|
|
104
|
+
* ```
|
|
105
|
+
*/
|
|
106
|
+
uploadBatchesPresign(
|
|
107
|
+
body: SiteUploadBatchesPresignParams,
|
|
108
|
+
options?: RequestOptions,
|
|
109
|
+
): APIPromise<SiteUploadBatchesPresignResponse> {
|
|
110
|
+
return this._client.post('/sites/upload-batches/presign/', { body, ...options });
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* List files and persisted directories from the active bundle manifest.
|
|
115
|
+
*
|
|
116
|
+
* @example
|
|
117
|
+
* ```ts
|
|
118
|
+
* const response = await client.sites.files(
|
|
119
|
+
* 'employee_portal',
|
|
120
|
+
* );
|
|
121
|
+
* ```
|
|
122
|
+
*/
|
|
123
|
+
files(
|
|
124
|
+
apiName: string,
|
|
125
|
+
query: SiteFilesParams | null | undefined = {},
|
|
126
|
+
options?: RequestOptions,
|
|
127
|
+
): APIPromise<SiteFilesResponse> {
|
|
128
|
+
return this._client.get(path`/sites/${apiName}/files/`, { query, ...options });
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Apply file and directory operations atomically against the active bundle.
|
|
133
|
+
*
|
|
134
|
+
* @example
|
|
135
|
+
* ```ts
|
|
136
|
+
* const response = await client.sites.fileOperations('employee_portal', {
|
|
137
|
+
* base_bundle_id: 'bundle_id',
|
|
138
|
+
* operations: [
|
|
139
|
+
* {
|
|
140
|
+
* op: 'put',
|
|
141
|
+
* kind: 'file',
|
|
142
|
+
* path: 'assets/logo.png',
|
|
143
|
+
* file_id: 'file_id_1',
|
|
144
|
+
* },
|
|
145
|
+
* {
|
|
146
|
+
* op: 'put',
|
|
147
|
+
* kind: 'directory',
|
|
148
|
+
* path: 'assets/images',
|
|
149
|
+
* },
|
|
150
|
+
* {
|
|
151
|
+
* op: 'rename',
|
|
152
|
+
* kind: 'file',
|
|
153
|
+
* from_path: 'home.html',
|
|
154
|
+
* to_path: 'index.html',
|
|
155
|
+
* },
|
|
156
|
+
* {
|
|
157
|
+
* op: 'delete',
|
|
158
|
+
* kind: 'file',
|
|
159
|
+
* path: 'old.js',
|
|
160
|
+
* },
|
|
161
|
+
* ],
|
|
162
|
+
* entry_path: 'index.html',
|
|
163
|
+
* });
|
|
164
|
+
* ```
|
|
165
|
+
*/
|
|
166
|
+
fileOperations(
|
|
167
|
+
apiName: string,
|
|
168
|
+
body: SiteFileOperationsParams,
|
|
169
|
+
options?: RequestOptions,
|
|
170
|
+
): APIPromise<SiteFileOperationsResponse> {
|
|
171
|
+
return this._client.post(path`/sites/${apiName}/file-operations/`, { body, ...options });
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
export type SiteListResponsesPageCursorURL = PageCursorURL<SiteListResponse>;
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Response/resource shape for a custom site.
|
|
179
|
+
*/
|
|
180
|
+
export interface SiteListResponse {
|
|
181
|
+
/**
|
|
182
|
+
* Identifier field
|
|
183
|
+
*/
|
|
184
|
+
id?: string;
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* The admin group id for the custom site
|
|
188
|
+
*/
|
|
189
|
+
admin_group_id?: string;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* The unique api name of the custom site
|
|
193
|
+
*/
|
|
194
|
+
api_name?: string;
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* Record creation date
|
|
198
|
+
*/
|
|
199
|
+
created_at?: string;
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* The ID of the role that created the custom site
|
|
203
|
+
*/
|
|
204
|
+
created_by?: string;
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* The active bundle id for the custom site
|
|
208
|
+
*/
|
|
209
|
+
current_bundle_id?: string;
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* A Rippling-owned logo URL for the custom site
|
|
213
|
+
*/
|
|
214
|
+
logo?: string;
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* The display name of the custom site
|
|
218
|
+
*/
|
|
219
|
+
name?: string;
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* The viewer group id for the custom site
|
|
223
|
+
*/
|
|
224
|
+
viewer_group_id?: string;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* Response/resource shape for a custom site.
|
|
229
|
+
*/
|
|
230
|
+
export interface SiteCreateResponse {
|
|
231
|
+
/**
|
|
232
|
+
* Identifier field
|
|
233
|
+
*/
|
|
234
|
+
id?: string;
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* The admin group id for the custom site
|
|
238
|
+
*/
|
|
239
|
+
admin_group_id?: string;
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* The unique api name of the custom site
|
|
243
|
+
*/
|
|
244
|
+
api_name?: string;
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* Record creation date
|
|
248
|
+
*/
|
|
249
|
+
created_at?: string;
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* The ID of the role that created the custom site
|
|
253
|
+
*/
|
|
254
|
+
created_by?: string;
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* The active bundle id for the custom site
|
|
258
|
+
*/
|
|
259
|
+
current_bundle_id?: string;
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* A Rippling-owned logo URL for the custom site
|
|
263
|
+
*/
|
|
264
|
+
logo?: string;
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* The display name of the custom site
|
|
268
|
+
*/
|
|
269
|
+
name?: string;
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* The viewer group id for the custom site
|
|
273
|
+
*/
|
|
274
|
+
viewer_group_id?: string;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* Meta information for the response.
|
|
279
|
+
*/
|
|
280
|
+
export interface SiteRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
281
|
+
/**
|
|
282
|
+
* Identifier field
|
|
283
|
+
*/
|
|
284
|
+
id?: string;
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* The admin group id for the custom site
|
|
288
|
+
*/
|
|
289
|
+
admin_group_id?: string;
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* The unique api name of the custom site
|
|
293
|
+
*/
|
|
294
|
+
api_name?: string;
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* Record creation date
|
|
298
|
+
*/
|
|
299
|
+
created_at?: string;
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* The ID of the role that created the custom site
|
|
303
|
+
*/
|
|
304
|
+
created_by?: string;
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* The active bundle id for the custom site
|
|
308
|
+
*/
|
|
309
|
+
current_bundle_id?: string;
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* A Rippling-owned logo URL for the custom site
|
|
313
|
+
*/
|
|
314
|
+
logo?: string;
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* The display name of the custom site
|
|
318
|
+
*/
|
|
319
|
+
name?: string;
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
* The viewer group id for the custom site
|
|
323
|
+
*/
|
|
324
|
+
viewer_group_id?: string;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* Response/resource shape for a custom site.
|
|
329
|
+
*/
|
|
330
|
+
export interface SiteUpdateResponse {
|
|
331
|
+
/**
|
|
332
|
+
* Identifier field
|
|
333
|
+
*/
|
|
334
|
+
id?: string;
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
* The admin group id for the custom site
|
|
338
|
+
*/
|
|
339
|
+
admin_group_id?: string;
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* The unique api name of the custom site
|
|
343
|
+
*/
|
|
344
|
+
api_name?: string;
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* Record creation date
|
|
348
|
+
*/
|
|
349
|
+
created_at?: string;
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* The ID of the role that created the custom site
|
|
353
|
+
*/
|
|
354
|
+
created_by?: string;
|
|
355
|
+
|
|
356
|
+
/**
|
|
357
|
+
* The active bundle id for the custom site
|
|
358
|
+
*/
|
|
359
|
+
current_bundle_id?: string;
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* A Rippling-owned logo URL for the custom site
|
|
363
|
+
*/
|
|
364
|
+
logo?: string;
|
|
365
|
+
|
|
366
|
+
/**
|
|
367
|
+
* The display name of the custom site
|
|
368
|
+
*/
|
|
369
|
+
name?: string;
|
|
370
|
+
|
|
371
|
+
/**
|
|
372
|
+
* The viewer group id for the custom site
|
|
373
|
+
*/
|
|
374
|
+
viewer_group_id?: string;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
export interface SiteUploadBatchesPresignResponse {
|
|
378
|
+
/**
|
|
379
|
+
* Staged files created by the upload batch.
|
|
380
|
+
*/
|
|
381
|
+
files?: Array<SiteUploadBatchesPresignResponse.File>;
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* Identifier for the staged upload batch.
|
|
385
|
+
*/
|
|
386
|
+
upload_batch_id?: string;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
export namespace SiteUploadBatchesPresignResponse {
|
|
390
|
+
export interface File {
|
|
391
|
+
/**
|
|
392
|
+
* Any unique client-chosen id echoed with the staged file_id for correlation. Not
|
|
393
|
+
* used server-side beyond the response.
|
|
394
|
+
*/
|
|
395
|
+
client_ref?: string;
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* Staged upload identifier for use in create, update, or file operations.
|
|
399
|
+
*/
|
|
400
|
+
file_id?: string;
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
* Staged file name from the presign file_name intent.
|
|
404
|
+
*/
|
|
405
|
+
file_name?: string;
|
|
406
|
+
|
|
407
|
+
/**
|
|
408
|
+
* Upload status. Presigned uploads return awaiting_upload until the file is
|
|
409
|
+
* uploaded to S3 and consumed.
|
|
410
|
+
*/
|
|
411
|
+
status?: string;
|
|
412
|
+
|
|
413
|
+
/**
|
|
414
|
+
* Form fields required for the S3 POST (send these before the file part).
|
|
415
|
+
*/
|
|
416
|
+
upload_fields?: unknown;
|
|
417
|
+
|
|
418
|
+
/**
|
|
419
|
+
* Presigned S3 POST URL for uploading the file bytes.
|
|
420
|
+
*/
|
|
421
|
+
upload_url?: string;
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
export interface SiteFilesResponse {
|
|
426
|
+
/**
|
|
427
|
+
* Active bundle identifier.
|
|
428
|
+
*/
|
|
429
|
+
bundle_id?: string;
|
|
430
|
+
|
|
431
|
+
/**
|
|
432
|
+
* Directories in the listing scope.
|
|
433
|
+
*/
|
|
434
|
+
directories?: Array<SiteFilesResponse.Directory>;
|
|
435
|
+
|
|
436
|
+
/**
|
|
437
|
+
* Entry path for the active bundle.
|
|
438
|
+
*/
|
|
439
|
+
entry_path?: string;
|
|
440
|
+
|
|
441
|
+
/**
|
|
442
|
+
* Files in the listing scope.
|
|
443
|
+
*/
|
|
444
|
+
files?: Array<SiteFilesResponse.File>;
|
|
445
|
+
|
|
446
|
+
/**
|
|
447
|
+
* Directory path used for the listing.
|
|
448
|
+
*/
|
|
449
|
+
parent_path?: string;
|
|
450
|
+
|
|
451
|
+
/**
|
|
452
|
+
* Whether the listing was recursive.
|
|
453
|
+
*/
|
|
454
|
+
recursive?: boolean;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
export namespace SiteFilesResponse {
|
|
458
|
+
export interface Directory {
|
|
459
|
+
/**
|
|
460
|
+
* Directory name.
|
|
461
|
+
*/
|
|
462
|
+
name?: string;
|
|
463
|
+
|
|
464
|
+
/**
|
|
465
|
+
* Parent directory path.
|
|
466
|
+
*/
|
|
467
|
+
parent_path?: string;
|
|
468
|
+
|
|
469
|
+
/**
|
|
470
|
+
* Normalized directory path inside the active bundle.
|
|
471
|
+
*/
|
|
472
|
+
path?: string;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
export interface File {
|
|
476
|
+
/**
|
|
477
|
+
* MIME content type.
|
|
478
|
+
*/
|
|
479
|
+
content_type?: string;
|
|
480
|
+
|
|
481
|
+
/**
|
|
482
|
+
* File name.
|
|
483
|
+
*/
|
|
484
|
+
name?: string;
|
|
485
|
+
|
|
486
|
+
/**
|
|
487
|
+
* Parent directory path.
|
|
488
|
+
*/
|
|
489
|
+
parent_path?: string;
|
|
490
|
+
|
|
491
|
+
/**
|
|
492
|
+
* Normalized file path inside the active bundle.
|
|
493
|
+
*/
|
|
494
|
+
path?: string;
|
|
495
|
+
|
|
496
|
+
/**
|
|
497
|
+
* SHA-256 hash of the file contents.
|
|
498
|
+
*/
|
|
499
|
+
sha256?: string;
|
|
500
|
+
|
|
501
|
+
/**
|
|
502
|
+
* File size in bytes.
|
|
503
|
+
*/
|
|
504
|
+
size_bytes?: number;
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
/**
|
|
509
|
+
* Response/resource shape for a custom site.
|
|
510
|
+
*/
|
|
511
|
+
export interface SiteFileOperationsResponse {
|
|
512
|
+
/**
|
|
513
|
+
* Identifier field
|
|
514
|
+
*/
|
|
515
|
+
id?: string;
|
|
516
|
+
|
|
517
|
+
/**
|
|
518
|
+
* The admin group id for the custom site
|
|
519
|
+
*/
|
|
520
|
+
admin_group_id?: string;
|
|
521
|
+
|
|
522
|
+
/**
|
|
523
|
+
* The unique api name of the custom site
|
|
524
|
+
*/
|
|
525
|
+
api_name?: string;
|
|
526
|
+
|
|
527
|
+
/**
|
|
528
|
+
* Record creation date
|
|
529
|
+
*/
|
|
530
|
+
created_at?: string;
|
|
531
|
+
|
|
532
|
+
/**
|
|
533
|
+
* The ID of the role that created the custom site
|
|
534
|
+
*/
|
|
535
|
+
created_by?: string;
|
|
536
|
+
|
|
537
|
+
/**
|
|
538
|
+
* The active bundle id for the custom site
|
|
539
|
+
*/
|
|
540
|
+
current_bundle_id?: string;
|
|
541
|
+
|
|
542
|
+
/**
|
|
543
|
+
* A Rippling-owned logo URL for the custom site
|
|
544
|
+
*/
|
|
545
|
+
logo?: string;
|
|
546
|
+
|
|
547
|
+
/**
|
|
548
|
+
* The display name of the custom site
|
|
549
|
+
*/
|
|
550
|
+
name?: string;
|
|
551
|
+
|
|
552
|
+
/**
|
|
553
|
+
* The viewer group id for the custom site
|
|
554
|
+
*/
|
|
555
|
+
viewer_group_id?: string;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
export interface SiteCreateParams {
|
|
559
|
+
/**
|
|
560
|
+
* The unique api name of the custom site
|
|
561
|
+
*/
|
|
562
|
+
api_name: string;
|
|
563
|
+
|
|
564
|
+
/**
|
|
565
|
+
* Staged upload id from POST /sites/upload-batches/presign/ after uploading bytes
|
|
566
|
+
* to S3. Required to create a site or replace the bundle.
|
|
567
|
+
*/
|
|
568
|
+
file_id: string;
|
|
569
|
+
|
|
570
|
+
/**
|
|
571
|
+
* The display name of the custom site
|
|
572
|
+
*/
|
|
573
|
+
name: string;
|
|
574
|
+
|
|
575
|
+
/**
|
|
576
|
+
* Entry path inside the uploaded asset (for example index.html). Required with
|
|
577
|
+
* file_id when the zip has no index.html.
|
|
578
|
+
*/
|
|
579
|
+
entry_path?: string;
|
|
580
|
+
|
|
581
|
+
/**
|
|
582
|
+
* A Rippling-owned logo URL for the custom site
|
|
583
|
+
*/
|
|
584
|
+
logo?: string;
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
export interface SiteUpdateParams {
|
|
588
|
+
/**
|
|
589
|
+
* The unique api name of the custom site
|
|
590
|
+
*/
|
|
591
|
+
api_name?: string;
|
|
592
|
+
|
|
593
|
+
/**
|
|
594
|
+
* Entry path inside the uploaded asset (for example index.html). Required with
|
|
595
|
+
* file_id when the zip has no index.html.
|
|
596
|
+
*/
|
|
597
|
+
entry_path?: string;
|
|
598
|
+
|
|
599
|
+
/**
|
|
600
|
+
* Staged upload id from POST /sites/upload-batches/presign/ after uploading bytes
|
|
601
|
+
* to S3. Required to create a site or replace the bundle.
|
|
602
|
+
*/
|
|
603
|
+
file_id?: string;
|
|
604
|
+
|
|
605
|
+
/**
|
|
606
|
+
* A Rippling-owned logo URL for the custom site
|
|
607
|
+
*/
|
|
608
|
+
logo?: string;
|
|
609
|
+
|
|
610
|
+
/**
|
|
611
|
+
* The display name of the custom site
|
|
612
|
+
*/
|
|
613
|
+
name?: string;
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
export interface SiteUploadBatchesPresignParams {
|
|
617
|
+
/**
|
|
618
|
+
* Non-empty array of file upload intents to stage with presigned S3 upload URLs.
|
|
619
|
+
*/
|
|
620
|
+
file_intents: Array<SiteUploadBatchesPresignParams.FileIntent>;
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
export namespace SiteUploadBatchesPresignParams {
|
|
624
|
+
export interface FileIntent {
|
|
625
|
+
/**
|
|
626
|
+
* Any unique client-chosen id echoed with the staged file_id for correlation. Not
|
|
627
|
+
* used server-side beyond the response.
|
|
628
|
+
*/
|
|
629
|
+
client_ref: string;
|
|
630
|
+
|
|
631
|
+
/**
|
|
632
|
+
* File name with extension (e.g. site.zip). Used to derive Content-Type and
|
|
633
|
+
* create/PATCH asset type.
|
|
634
|
+
*/
|
|
635
|
+
file_name: string;
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
export interface SiteFilesParams {
|
|
640
|
+
/**
|
|
641
|
+
* Directory path to list. Defaults to the bundle root.
|
|
642
|
+
*/
|
|
643
|
+
parent_path?: string;
|
|
644
|
+
|
|
645
|
+
/**
|
|
646
|
+
* Whether to list files recursively. Defaults to false.
|
|
647
|
+
*/
|
|
648
|
+
recursive?: boolean;
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
export interface SiteFileOperationsParams {
|
|
652
|
+
/**
|
|
653
|
+
* Must match the site's current active bundle. Returns 409 when stale.
|
|
654
|
+
*/
|
|
655
|
+
base_bundle_id: string;
|
|
656
|
+
|
|
657
|
+
/**
|
|
658
|
+
* Non-empty array of file or directory operations.
|
|
659
|
+
*/
|
|
660
|
+
operations: Array<SiteFileOperationsParams.Operation>;
|
|
661
|
+
|
|
662
|
+
/**
|
|
663
|
+
* Optional bundle entry path. When omitted, the current entry path is kept.
|
|
664
|
+
*/
|
|
665
|
+
entry_path?: string;
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
export namespace SiteFileOperationsParams {
|
|
669
|
+
export interface Operation {
|
|
670
|
+
/**
|
|
671
|
+
* Target kind. Supported values are file and directory.
|
|
672
|
+
*/
|
|
673
|
+
kind: string;
|
|
674
|
+
|
|
675
|
+
/**
|
|
676
|
+
* Operation type. Supported values are put, rename, move, and delete.
|
|
677
|
+
*/
|
|
678
|
+
op: string;
|
|
679
|
+
|
|
680
|
+
/**
|
|
681
|
+
* Staged upload id from POST /sites/upload-batches/presign/ after uploading bytes
|
|
682
|
+
* to S3. Required for put operations on files.
|
|
683
|
+
*/
|
|
684
|
+
file_id?: string;
|
|
685
|
+
|
|
686
|
+
/**
|
|
687
|
+
* Source path for rename and move operations.
|
|
688
|
+
*/
|
|
689
|
+
from_path?: string;
|
|
690
|
+
|
|
691
|
+
/**
|
|
692
|
+
* Target path for put and delete operations.
|
|
693
|
+
*/
|
|
694
|
+
path?: string;
|
|
695
|
+
|
|
696
|
+
/**
|
|
697
|
+
* When true, delete directory removes nested files. Used by delete directory
|
|
698
|
+
* operations.
|
|
699
|
+
*/
|
|
700
|
+
recursive?: boolean;
|
|
701
|
+
|
|
702
|
+
/**
|
|
703
|
+
* Destination path for rename and move operations.
|
|
704
|
+
*/
|
|
705
|
+
to_path?: string;
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
export declare namespace Sites {
|
|
710
|
+
export {
|
|
711
|
+
type SiteListResponse as SiteListResponse,
|
|
712
|
+
type SiteCreateResponse as SiteCreateResponse,
|
|
713
|
+
type SiteRetrieveResponse as SiteRetrieveResponse,
|
|
714
|
+
type SiteUpdateResponse as SiteUpdateResponse,
|
|
715
|
+
type SiteUploadBatchesPresignResponse as SiteUploadBatchesPresignResponse,
|
|
716
|
+
type SiteFilesResponse as SiteFilesResponse,
|
|
717
|
+
type SiteFileOperationsResponse as SiteFileOperationsResponse,
|
|
718
|
+
type SiteListResponsesPageCursorURL as SiteListResponsesPageCursorURL,
|
|
719
|
+
type SiteCreateParams as SiteCreateParams,
|
|
720
|
+
type SiteUpdateParams as SiteUpdateParams,
|
|
721
|
+
type SiteUploadBatchesPresignParams as SiteUploadBatchesPresignParams,
|
|
722
|
+
type SiteFilesParams as SiteFilesParams,
|
|
723
|
+
type SiteFileOperationsParams as SiteFileOperationsParams,
|
|
724
|
+
};
|
|
725
|
+
}
|
|
@@ -15,7 +15,7 @@ export class SoftwareDeployments extends APIResource {
|
|
|
15
15
|
/**
|
|
16
16
|
* A list of software deployments.
|
|
17
17
|
*
|
|
18
|
-
* - Requires: `API Tier
|
|
18
|
+
* - Requires: `API Tier 1`
|
|
19
19
|
* - Filterable fields: `software_id`, `active_group_type`
|
|
20
20
|
* - Expandable fields: `software`
|
|
21
21
|
* - Sortable fields: `id`, `created_at`, `updated_at`
|