@rippling/rippling-sdk 0.2.0-alpha.26 → 0.2.0-alpha.28
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 +195 -5
- package/client.d.mts.map +1 -1
- package/client.d.ts +195 -5
- package/client.d.ts.map +1 -1
- package/client.js +215 -20
- package/client.js.map +1 -1
- package/client.mjs +215 -20
- package/client.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +5 -0
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +5 -0
- package/internal/parse.mjs.map +1 -1
- package/internal/utils/query.d.mts +5 -0
- package/internal/utils/query.d.mts.map +1 -0
- package/internal/utils/query.d.ts +5 -0
- package/internal/utils/query.d.ts.map +1 -0
- package/internal/utils/query.js +23 -0
- package/internal/utils/query.js.map +1 -0
- package/internal/utils/query.mjs +20 -0
- package/internal/utils/query.mjs.map +1 -0
- package/internal/utils.d.mts +1 -0
- package/internal/utils.d.ts +1 -0
- package/internal/utils.js +1 -0
- package/internal/utils.js.map +1 -1
- package/internal/utils.mjs +1 -0
- package/package.json +12 -1
- package/resources/business-partner-groups.d.mts +3 -0
- package/resources/business-partner-groups.d.mts.map +1 -1
- package/resources/business-partner-groups.d.ts +3 -0
- package/resources/business-partner-groups.d.ts.map +1 -1
- package/resources/business-partner-groups.js +7 -4
- package/resources/business-partner-groups.js.map +1 -1
- package/resources/business-partner-groups.mjs +7 -4
- package/resources/business-partner-groups.mjs.map +1 -1
- package/resources/business-partners.d.mts +3 -0
- package/resources/business-partners.d.mts.map +1 -1
- package/resources/business-partners.d.ts +3 -0
- package/resources/business-partners.d.ts.map +1 -1
- package/resources/business-partners.js +7 -4
- package/resources/business-partners.js.map +1 -1
- package/resources/business-partners.mjs +7 -4
- package/resources/business-partners.mjs.map +1 -1
- package/resources/candidate-applications.d.mts +3 -0
- package/resources/candidate-applications.d.mts.map +1 -1
- package/resources/candidate-applications.d.ts +3 -0
- package/resources/candidate-applications.d.ts.map +1 -1
- package/resources/candidate-applications.js +4 -1
- package/resources/candidate-applications.js.map +1 -1
- package/resources/candidate-applications.mjs +4 -1
- package/resources/candidate-applications.mjs.map +1 -1
- package/resources/candidates.d.mts +3 -0
- package/resources/candidates.d.mts.map +1 -1
- package/resources/candidates.d.ts +3 -0
- package/resources/candidates.d.ts.map +1 -1
- package/resources/candidates.js +4 -1
- package/resources/candidates.js.map +1 -1
- package/resources/candidates.mjs +4 -1
- package/resources/candidates.mjs.map +1 -1
- package/resources/companies.d.mts +3 -0
- package/resources/companies.d.mts.map +1 -1
- package/resources/companies.d.ts +3 -0
- package/resources/companies.d.ts.map +1 -1
- package/resources/companies.js +4 -1
- package/resources/companies.js.map +1 -1
- package/resources/companies.mjs +4 -1
- package/resources/companies.mjs.map +1 -1
- package/resources/compensation-bands-details.d.mts +3 -0
- package/resources/compensation-bands-details.d.mts.map +1 -1
- package/resources/compensation-bands-details.d.ts +3 -0
- package/resources/compensation-bands-details.d.ts.map +1 -1
- package/resources/compensation-bands-details.js +5 -2
- package/resources/compensation-bands-details.js.map +1 -1
- package/resources/compensation-bands-details.mjs +5 -2
- package/resources/compensation-bands-details.mjs.map +1 -1
- package/resources/compensations.d.mts +3 -0
- package/resources/compensations.d.mts.map +1 -1
- package/resources/compensations.d.ts +3 -0
- package/resources/compensations.d.ts.map +1 -1
- package/resources/compensations.js +5 -2
- package/resources/compensations.js.map +1 -1
- package/resources/compensations.mjs +5 -2
- package/resources/compensations.mjs.map +1 -1
- package/resources/create-app-notification.d.mts +29 -0
- package/resources/create-app-notification.d.mts.map +1 -0
- package/resources/create-app-notification.d.ts +29 -0
- package/resources/create-app-notification.d.ts.map +1 -0
- package/resources/create-app-notification.js +18 -0
- package/resources/create-app-notification.js.map +1 -0
- package/resources/create-app-notification.mjs +14 -0
- package/resources/create-app-notification.mjs.map +1 -0
- package/resources/custom-apps.d.mts +341 -0
- package/resources/custom-apps.d.mts.map +1 -0
- package/resources/custom-apps.d.ts +341 -0
- package/resources/custom-apps.d.ts.map +1 -0
- package/resources/custom-apps.js +47 -0
- package/resources/custom-apps.js.map +1 -0
- package/resources/custom-apps.mjs +43 -0
- package/resources/custom-apps.mjs.map +1 -0
- package/resources/custom-fields.d.mts +3 -0
- package/resources/custom-fields.d.mts.map +1 -1
- package/resources/custom-fields.d.ts +3 -0
- package/resources/custom-fields.d.ts.map +1 -1
- package/resources/custom-fields.js +4 -1
- package/resources/custom-fields.js.map +1 -1
- package/resources/custom-fields.mjs +4 -1
- package/resources/custom-fields.mjs.map +1 -1
- package/resources/custom-objects/custom-objects.d.mts +3 -0
- package/resources/custom-objects/custom-objects.d.mts.map +1 -1
- package/resources/custom-objects/custom-objects.d.ts +3 -0
- package/resources/custom-objects/custom-objects.d.ts.map +1 -1
- package/resources/custom-objects/custom-objects.js +3 -0
- package/resources/custom-objects/custom-objects.js.map +1 -1
- package/resources/custom-objects/custom-objects.mjs +3 -0
- package/resources/custom-objects/custom-objects.mjs.map +1 -1
- package/resources/custom-objects/fields.d.mts +3 -0
- package/resources/custom-objects/fields.d.mts.map +1 -1
- package/resources/custom-objects/fields.d.ts +3 -0
- package/resources/custom-objects/fields.d.ts.map +1 -1
- package/resources/custom-objects/fields.js +3 -0
- package/resources/custom-objects/fields.js.map +1 -1
- package/resources/custom-objects/fields.mjs +3 -0
- package/resources/custom-objects/fields.mjs.map +1 -1
- package/resources/custom-objects/records.d.mts +3 -0
- package/resources/custom-objects/records.d.mts.map +1 -1
- package/resources/custom-objects/records.d.ts +3 -0
- package/resources/custom-objects/records.d.ts.map +1 -1
- package/resources/custom-objects/records.js +3 -0
- package/resources/custom-objects/records.js.map +1 -1
- package/resources/custom-objects/records.mjs +3 -0
- package/resources/custom-objects/records.mjs.map +1 -1
- package/resources/custom-pages.d.mts +177 -0
- package/resources/custom-pages.d.mts.map +1 -0
- package/resources/custom-pages.d.ts +177 -0
- package/resources/custom-pages.d.ts.map +1 -0
- package/resources/custom-pages.js +47 -0
- package/resources/custom-pages.js.map +1 -0
- package/resources/custom-pages.mjs +43 -0
- package/resources/custom-pages.mjs.map +1 -0
- package/resources/custom-settings.js +5 -5
- package/resources/custom-settings.js.map +1 -1
- package/resources/custom-settings.mjs +5 -5
- package/resources/custom-settings.mjs.map +1 -1
- package/resources/departments.d.mts +3 -0
- package/resources/departments.d.mts.map +1 -1
- package/resources/departments.d.ts +3 -0
- package/resources/departments.d.ts.map +1 -1
- package/resources/departments.js +7 -4
- package/resources/departments.js.map +1 -1
- package/resources/departments.mjs +7 -4
- package/resources/departments.mjs.map +1 -1
- package/resources/draft-hires.d.mts +3 -0
- package/resources/draft-hires.d.mts.map +1 -1
- package/resources/draft-hires.d.ts +3 -0
- package/resources/draft-hires.d.ts.map +1 -1
- package/resources/draft-hires.js +3 -0
- package/resources/draft-hires.js.map +1 -1
- package/resources/draft-hires.mjs +3 -0
- package/resources/draft-hires.mjs.map +1 -1
- package/resources/employment-types.d.mts +3 -0
- package/resources/employment-types.d.mts.map +1 -1
- package/resources/employment-types.d.ts +3 -0
- package/resources/employment-types.d.ts.map +1 -1
- package/resources/employment-types.js +5 -2
- package/resources/employment-types.js.map +1 -1
- package/resources/employment-types.mjs +5 -2
- package/resources/employment-types.mjs.map +1 -1
- package/resources/entitlements.d.mts +3 -0
- package/resources/entitlements.d.mts.map +1 -1
- package/resources/entitlements.d.ts +3 -0
- package/resources/entitlements.d.ts.map +1 -1
- package/resources/entitlements.js +4 -1
- package/resources/entitlements.js.map +1 -1
- package/resources/entitlements.mjs +4 -1
- package/resources/entitlements.mjs.map +1 -1
- package/resources/functions/deployments.d.mts +3 -0
- package/resources/functions/deployments.d.mts.map +1 -1
- package/resources/functions/deployments.d.ts +3 -0
- package/resources/functions/deployments.d.ts.map +1 -1
- package/resources/functions/deployments.js +3 -0
- package/resources/functions/deployments.js.map +1 -1
- package/resources/functions/deployments.mjs +3 -0
- package/resources/functions/deployments.mjs.map +1 -1
- package/resources/functions/executions.d.mts +3 -0
- package/resources/functions/executions.d.mts.map +1 -1
- package/resources/functions/executions.d.ts +3 -0
- package/resources/functions/executions.d.ts.map +1 -1
- package/resources/functions/executions.js +3 -0
- package/resources/functions/executions.js.map +1 -1
- package/resources/functions/executions.mjs +3 -0
- package/resources/functions/executions.mjs.map +1 -1
- package/resources/functions/functions.d.mts +15 -0
- package/resources/functions/functions.d.mts.map +1 -1
- package/resources/functions/functions.d.ts +15 -0
- package/resources/functions/functions.d.ts.map +1 -1
- package/resources/functions/functions.js +3 -0
- package/resources/functions/functions.js.map +1 -1
- package/resources/functions/functions.mjs +3 -0
- package/resources/functions/functions.mjs.map +1 -1
- package/resources/headcount-positions.d.mts +3 -0
- package/resources/headcount-positions.d.mts.map +1 -1
- package/resources/headcount-positions.d.ts +3 -0
- package/resources/headcount-positions.d.ts.map +1 -1
- package/resources/headcount-positions.js +5 -2
- package/resources/headcount-positions.js.map +1 -1
- package/resources/headcount-positions.mjs +5 -2
- package/resources/headcount-positions.mjs.map +1 -1
- package/resources/headcount-priorities.d.mts +3 -0
- package/resources/headcount-priorities.d.mts.map +1 -1
- package/resources/headcount-priorities.d.ts +3 -0
- package/resources/headcount-priorities.d.ts.map +1 -1
- package/resources/headcount-priorities.js +5 -2
- package/resources/headcount-priorities.js.map +1 -1
- package/resources/headcount-priorities.mjs +5 -2
- package/resources/headcount-priorities.mjs.map +1 -1
- package/resources/index.d.mts +9 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +9 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +18 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +8 -0
- package/resources/index.mjs.map +1 -1
- package/resources/job-assignments.d.mts +3 -0
- package/resources/job-assignments.d.mts.map +1 -1
- package/resources/job-assignments.d.ts +3 -0
- package/resources/job-assignments.d.ts.map +1 -1
- package/resources/job-assignments.js +9 -6
- package/resources/job-assignments.js.map +1 -1
- package/resources/job-assignments.mjs +9 -6
- package/resources/job-assignments.mjs.map +1 -1
- package/resources/job-codes.d.mts +3 -0
- package/resources/job-codes.d.mts.map +1 -1
- package/resources/job-codes.d.ts +3 -0
- package/resources/job-codes.d.ts.map +1 -1
- package/resources/job-codes.js +9 -6
- package/resources/job-codes.js.map +1 -1
- package/resources/job-codes.mjs +9 -6
- package/resources/job-codes.mjs.map +1 -1
- package/resources/job-dimensions.d.mts +3 -0
- package/resources/job-dimensions.d.mts.map +1 -1
- package/resources/job-dimensions.d.ts +3 -0
- package/resources/job-dimensions.d.ts.map +1 -1
- package/resources/job-dimensions.js +8 -5
- package/resources/job-dimensions.js.map +1 -1
- package/resources/job-dimensions.mjs +8 -5
- package/resources/job-dimensions.mjs.map +1 -1
- package/resources/job-functions.d.mts +3 -0
- package/resources/job-functions.d.mts.map +1 -1
- package/resources/job-functions.d.ts +3 -0
- package/resources/job-functions.d.ts.map +1 -1
- package/resources/job-functions.js +5 -2
- package/resources/job-functions.js.map +1 -1
- package/resources/job-functions.mjs +5 -2
- package/resources/job-functions.mjs.map +1 -1
- package/resources/job-pay-rate-exceptions.d.mts +3 -0
- package/resources/job-pay-rate-exceptions.d.mts.map +1 -1
- package/resources/job-pay-rate-exceptions.d.ts +3 -0
- package/resources/job-pay-rate-exceptions.d.ts.map +1 -1
- package/resources/job-pay-rate-exceptions.js +6 -3
- package/resources/job-pay-rate-exceptions.js.map +1 -1
- package/resources/job-pay-rate-exceptions.mjs +6 -3
- package/resources/job-pay-rate-exceptions.mjs.map +1 -1
- package/resources/job-requisitions-write.d.mts +3 -0
- package/resources/job-requisitions-write.d.mts.map +1 -1
- package/resources/job-requisitions-write.d.ts +3 -0
- package/resources/job-requisitions-write.d.ts.map +1 -1
- package/resources/job-requisitions-write.js +4 -1
- package/resources/job-requisitions-write.js.map +1 -1
- package/resources/job-requisitions-write.mjs +4 -1
- package/resources/job-requisitions-write.mjs.map +1 -1
- package/resources/job-requisitions.d.mts +3 -0
- package/resources/job-requisitions.d.mts.map +1 -1
- package/resources/job-requisitions.d.ts +3 -0
- package/resources/job-requisitions.d.ts.map +1 -1
- package/resources/job-requisitions.js +7 -1
- package/resources/job-requisitions.js.map +1 -1
- package/resources/job-requisitions.mjs +7 -1
- package/resources/job-requisitions.mjs.map +1 -1
- package/resources/kiosk-badges.d.mts +3 -0
- package/resources/kiosk-badges.d.mts.map +1 -1
- package/resources/kiosk-badges.d.ts +3 -0
- package/resources/kiosk-badges.d.ts.map +1 -1
- package/resources/kiosk-badges.js +8 -5
- package/resources/kiosk-badges.js.map +1 -1
- package/resources/kiosk-badges.mjs +8 -5
- package/resources/kiosk-badges.mjs.map +1 -1
- package/resources/leave-accruals.d.mts +7 -4
- package/resources/leave-accruals.d.mts.map +1 -1
- package/resources/leave-accruals.d.ts +7 -4
- package/resources/leave-accruals.d.ts.map +1 -1
- package/resources/leave-accruals.js +6 -3
- package/resources/leave-accruals.js.map +1 -1
- package/resources/leave-accruals.mjs +6 -3
- package/resources/leave-accruals.mjs.map +1 -1
- package/resources/leave-balances.d.mts +3 -0
- package/resources/leave-balances.d.mts.map +1 -1
- package/resources/leave-balances.d.ts +3 -0
- package/resources/leave-balances.d.ts.map +1 -1
- package/resources/leave-balances.js +5 -2
- package/resources/leave-balances.js.map +1 -1
- package/resources/leave-balances.mjs +5 -2
- package/resources/leave-balances.mjs.map +1 -1
- package/resources/leave-requests.d.mts +3 -0
- package/resources/leave-requests.d.mts.map +1 -1
- package/resources/leave-requests.d.ts +3 -0
- package/resources/leave-requests.d.ts.map +1 -1
- package/resources/leave-requests.js +7 -4
- package/resources/leave-requests.js.map +1 -1
- package/resources/leave-requests.mjs +7 -4
- package/resources/leave-requests.mjs.map +1 -1
- package/resources/leave-types.d.mts +3 -0
- package/resources/leave-types.d.mts.map +1 -1
- package/resources/leave-types.d.ts +3 -0
- package/resources/leave-types.d.ts.map +1 -1
- package/resources/leave-types.js +5 -2
- package/resources/leave-types.js.map +1 -1
- package/resources/leave-types.mjs +5 -2
- package/resources/leave-types.mjs.map +1 -1
- package/resources/legal-entities.d.mts +3 -0
- package/resources/legal-entities.d.mts.map +1 -1
- package/resources/legal-entities.d.ts +3 -0
- package/resources/legal-entities.d.ts.map +1 -1
- package/resources/legal-entities.js +5 -2
- package/resources/legal-entities.js.map +1 -1
- package/resources/legal-entities.mjs +5 -2
- package/resources/legal-entities.mjs.map +1 -1
- package/resources/levels.d.mts +3 -0
- package/resources/levels.d.mts.map +1 -1
- package/resources/levels.d.ts +3 -0
- package/resources/levels.d.ts.map +1 -1
- package/resources/levels.js +5 -2
- package/resources/levels.js.map +1 -1
- package/resources/levels.mjs +5 -2
- package/resources/levels.mjs.map +1 -1
- package/resources/location-factors.d.mts +3 -0
- package/resources/location-factors.d.mts.map +1 -1
- package/resources/location-factors.d.ts +3 -0
- package/resources/location-factors.d.ts.map +1 -1
- package/resources/location-factors.js +5 -2
- package/resources/location-factors.js.map +1 -1
- package/resources/location-factors.mjs +5 -2
- package/resources/location-factors.mjs.map +1 -1
- package/resources/metadata/components.d.mts +28 -0
- package/resources/metadata/components.d.mts.map +1 -0
- package/resources/metadata/components.d.ts +28 -0
- package/resources/metadata/components.d.ts.map +1 -0
- package/resources/metadata/components.js +21 -0
- package/resources/metadata/components.js.map +1 -0
- package/resources/metadata/components.mjs +17 -0
- package/resources/metadata/components.mjs.map +1 -0
- package/resources/metadata/index.d.mts +5 -0
- package/resources/metadata/index.d.mts.map +1 -0
- package/resources/metadata/index.d.ts +5 -0
- package/resources/metadata/index.d.ts.map +1 -0
- package/resources/metadata/index.js +13 -0
- package/resources/metadata/index.js.map +1 -0
- package/resources/metadata/index.mjs +6 -0
- package/resources/metadata/index.mjs.map +1 -0
- package/resources/metadata/metadata.d.mts +40 -0
- package/resources/metadata/metadata.d.mts.map +1 -0
- package/resources/metadata/metadata.d.ts +40 -0
- package/resources/metadata/metadata.d.ts.map +1 -0
- package/resources/metadata/metadata.js +37 -0
- package/resources/metadata/metadata.js.map +1 -0
- package/resources/metadata/metadata.mjs +32 -0
- package/resources/metadata/metadata.mjs.map +1 -0
- package/resources/metadata/summary.d.mts +28 -0
- package/resources/metadata/summary.d.mts.map +1 -0
- package/resources/metadata/summary.d.ts +28 -0
- package/resources/metadata/summary.d.ts.map +1 -0
- package/resources/metadata/summary.js +21 -0
- package/resources/metadata/summary.js.map +1 -0
- package/resources/metadata/summary.mjs +17 -0
- package/resources/metadata/summary.mjs.map +1 -0
- package/resources/metadata/types.d.mts +28 -0
- package/resources/metadata/types.d.mts.map +1 -0
- package/resources/metadata/types.d.ts +28 -0
- package/resources/metadata/types.d.ts.map +1 -0
- package/resources/metadata/types.js +21 -0
- package/resources/metadata/types.js.map +1 -0
- package/resources/metadata/types.mjs +17 -0
- package/resources/metadata/types.mjs.map +1 -0
- package/resources/metadata.d.mts +2 -0
- package/resources/metadata.d.mts.map +1 -0
- package/resources/metadata.d.ts +2 -0
- package/resources/metadata.d.ts.map +1 -0
- package/resources/metadata.js +6 -0
- package/resources/metadata.js.map +1 -0
- package/resources/metadata.mjs +3 -0
- package/resources/metadata.mjs.map +1 -0
- package/resources/object-categories.d.mts +3 -0
- package/resources/object-categories.d.mts.map +1 -1
- package/resources/object-categories.d.ts +3 -0
- package/resources/object-categories.d.ts.map +1 -1
- package/resources/object-categories.js +3 -0
- package/resources/object-categories.js.map +1 -1
- package/resources/object-categories.mjs +3 -0
- package/resources/object-categories.mjs.map +1 -1
- package/resources/platform-capabilities.d.mts +25 -0
- package/resources/platform-capabilities.d.mts.map +1 -0
- package/resources/platform-capabilities.d.ts +25 -0
- package/resources/platform-capabilities.d.ts.map +1 -0
- package/resources/platform-capabilities.js +21 -0
- package/resources/platform-capabilities.js.map +1 -0
- package/resources/platform-capabilities.mjs +17 -0
- package/resources/platform-capabilities.mjs.map +1 -0
- package/resources/report-runs.d.mts +21 -12
- package/resources/report-runs.d.mts.map +1 -1
- package/resources/report-runs.d.ts +21 -12
- package/resources/report-runs.d.ts.map +1 -1
- package/resources/report-runs.js +5 -2
- package/resources/report-runs.js.map +1 -1
- package/resources/report-runs.mjs +5 -2
- package/resources/report-runs.mjs.map +1 -1
- package/resources/run-query.d.mts +39 -0
- package/resources/run-query.d.mts.map +1 -0
- package/resources/run-query.d.ts +39 -0
- package/resources/run-query.d.ts.map +1 -0
- package/resources/run-query.js +21 -0
- package/resources/run-query.js.map +1 -0
- package/resources/run-query.mjs +17 -0
- package/resources/run-query.mjs.map +1 -0
- package/resources/schedules.d.mts +3 -0
- package/resources/schedules.d.mts.map +1 -1
- package/resources/schedules.d.ts +3 -0
- package/resources/schedules.d.ts.map +1 -1
- package/resources/schedules.js +7 -4
- package/resources/schedules.js.map +1 -1
- package/resources/schedules.mjs +7 -4
- package/resources/schedules.mjs.map +1 -1
- package/resources/send-email.d.mts +33 -0
- package/resources/send-email.d.mts.map +1 -0
- package/resources/send-email.d.ts +33 -0
- package/resources/send-email.d.ts.map +1 -0
- package/resources/send-email.js +18 -0
- package/resources/send-email.js.map +1 -0
- package/resources/send-email.mjs +14 -0
- package/resources/send-email.mjs.map +1 -0
- package/resources/send-slack.d.mts +30 -0
- package/resources/send-slack.d.mts.map +1 -0
- package/resources/send-slack.d.ts +30 -0
- package/resources/send-slack.d.ts.map +1 -0
- package/resources/send-slack.js +18 -0
- package/resources/send-slack.js.map +1 -0
- package/resources/send-slack.mjs +14 -0
- package/resources/send-slack.mjs.map +1 -0
- package/resources/shift-assignments.d.mts +3 -0
- package/resources/shift-assignments.d.mts.map +1 -1
- package/resources/shift-assignments.d.ts +3 -0
- package/resources/shift-assignments.d.ts.map +1 -1
- package/resources/shift-assignments.js +4 -1
- package/resources/shift-assignments.js.map +1 -1
- package/resources/shift-assignments.mjs +4 -1
- package/resources/shift-assignments.mjs.map +1 -1
- package/resources/shift-inputs.d.mts +3 -0
- package/resources/shift-inputs.d.mts.map +1 -1
- package/resources/shift-inputs.d.ts +3 -0
- package/resources/shift-inputs.d.ts.map +1 -1
- package/resources/shift-inputs.js +8 -5
- package/resources/shift-inputs.js.map +1 -1
- package/resources/shift-inputs.mjs +8 -5
- package/resources/shift-inputs.mjs.map +1 -1
- package/resources/shiftassignments.d.mts +3 -0
- package/resources/shiftassignments.d.mts.map +1 -1
- package/resources/shiftassignments.d.ts +3 -0
- package/resources/shiftassignments.d.ts.map +1 -1
- package/resources/shiftassignments.js +7 -4
- package/resources/shiftassignments.js.map +1 -1
- package/resources/shiftassignments.mjs +7 -4
- package/resources/shiftassignments.mjs.map +1 -1
- package/resources/sso-me.d.mts +6 -3
- package/resources/sso-me.d.mts.map +1 -1
- package/resources/sso-me.d.ts +6 -3
- package/resources/sso-me.d.ts.map +1 -1
- package/resources/sso-me.js +5 -2
- package/resources/sso-me.js.map +1 -1
- package/resources/sso-me.mjs +5 -2
- package/resources/sso-me.mjs.map +1 -1
- package/resources/supergroups/exclusion-members.d.mts +3 -0
- package/resources/supergroups/exclusion-members.d.mts.map +1 -1
- package/resources/supergroups/exclusion-members.d.ts +3 -0
- package/resources/supergroups/exclusion-members.d.ts.map +1 -1
- package/resources/supergroups/exclusion-members.js +5 -2
- package/resources/supergroups/exclusion-members.js.map +1 -1
- package/resources/supergroups/exclusion-members.mjs +5 -2
- package/resources/supergroups/exclusion-members.mjs.map +1 -1
- package/resources/supergroups/inclusion-members.d.mts +3 -0
- package/resources/supergroups/inclusion-members.d.mts.map +1 -1
- package/resources/supergroups/inclusion-members.d.ts +3 -0
- package/resources/supergroups/inclusion-members.d.ts.map +1 -1
- package/resources/supergroups/inclusion-members.js +5 -2
- package/resources/supergroups/inclusion-members.js.map +1 -1
- package/resources/supergroups/inclusion-members.mjs +5 -2
- package/resources/supergroups/inclusion-members.mjs.map +1 -1
- package/resources/supergroups/members.d.mts +3 -0
- package/resources/supergroups/members.d.mts.map +1 -1
- package/resources/supergroups/members.d.ts +3 -0
- package/resources/supergroups/members.d.ts.map +1 -1
- package/resources/supergroups/members.js +4 -4
- package/resources/supergroups/members.js.map +1 -1
- package/resources/supergroups/members.mjs +4 -4
- package/resources/supergroups/members.mjs.map +1 -1
- package/resources/supergroups/supergroups.d.mts +3 -0
- package/resources/supergroups/supergroups.d.mts.map +1 -1
- package/resources/supergroups/supergroups.d.ts +3 -0
- package/resources/supergroups/supergroups.d.ts.map +1 -1
- package/resources/supergroups/supergroups.js +5 -2
- package/resources/supergroups/supergroups.js.map +1 -1
- package/resources/supergroups/supergroups.mjs +5 -2
- package/resources/supergroups/supergroups.mjs.map +1 -1
- package/resources/teams.d.mts +3 -0
- package/resources/teams.d.mts.map +1 -1
- package/resources/teams.d.ts +3 -0
- package/resources/teams.d.ts.map +1 -1
- package/resources/teams.js +5 -2
- package/resources/teams.js.map +1 -1
- package/resources/teams.mjs +5 -2
- package/resources/teams.mjs.map +1 -1
- package/resources/time-cards.d.mts +3 -0
- package/resources/time-cards.d.mts.map +1 -1
- package/resources/time-cards.d.ts +3 -0
- package/resources/time-cards.d.ts.map +1 -1
- package/resources/time-cards.js +5 -2
- package/resources/time-cards.js.map +1 -1
- package/resources/time-cards.mjs +5 -2
- package/resources/time-cards.mjs.map +1 -1
- package/resources/time-entries.d.mts +5 -1
- package/resources/time-entries.d.mts.map +1 -1
- package/resources/time-entries.d.ts +5 -1
- package/resources/time-entries.d.ts.map +1 -1
- package/resources/time-entries.js +10 -6
- package/resources/time-entries.js.map +1 -1
- package/resources/time-entries.mjs +10 -6
- package/resources/time-entries.mjs.map +1 -1
- package/resources/titles.d.mts +3 -0
- package/resources/titles.d.mts.map +1 -1
- package/resources/titles.d.ts +3 -0
- package/resources/titles.d.ts.map +1 -1
- package/resources/titles.js +8 -5
- package/resources/titles.js.map +1 -1
- package/resources/titles.mjs +8 -5
- package/resources/titles.mjs.map +1 -1
- package/resources/tracks.d.mts +3 -0
- package/resources/tracks.d.mts.map +1 -1
- package/resources/tracks.d.ts +3 -0
- package/resources/tracks.d.ts.map +1 -1
- package/resources/tracks.js +5 -2
- package/resources/tracks.js.map +1 -1
- package/resources/tracks.mjs +5 -2
- package/resources/tracks.mjs.map +1 -1
- package/resources/unassigned-shifts.d.mts +3 -0
- package/resources/unassigned-shifts.d.mts.map +1 -1
- package/resources/unassigned-shifts.d.ts +3 -0
- package/resources/unassigned-shifts.d.ts.map +1 -1
- package/resources/unassigned-shifts.js +5 -2
- package/resources/unassigned-shifts.js.map +1 -1
- package/resources/unassigned-shifts.mjs +5 -2
- package/resources/unassigned-shifts.mjs.map +1 -1
- package/resources/unassignedshifts.d.mts +3 -0
- package/resources/unassignedshifts.d.mts.map +1 -1
- package/resources/unassignedshifts.d.ts +3 -0
- package/resources/unassignedshifts.d.ts.map +1 -1
- package/resources/unassignedshifts.js +7 -4
- package/resources/unassignedshifts.js.map +1 -1
- package/resources/unassignedshifts.mjs +7 -4
- package/resources/unassignedshifts.mjs.map +1 -1
- package/resources/users.d.mts +3 -0
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +3 -0
- package/resources/users.d.ts.map +1 -1
- package/resources/users.js +5 -2
- package/resources/users.js.map +1 -1
- package/resources/users.mjs +5 -2
- package/resources/users.mjs.map +1 -1
- package/resources/work-locations.d.mts +7 -0
- package/resources/work-locations.d.mts.map +1 -1
- package/resources/work-locations.d.ts +7 -0
- package/resources/work-locations.d.ts.map +1 -1
- package/resources/work-locations.js +17 -4
- package/resources/work-locations.js.map +1 -1
- package/resources/work-locations.mjs +17 -4
- package/resources/work-locations.mjs.map +1 -1
- package/resources/workers.d.mts +11 -4
- package/resources/workers.d.mts.map +1 -1
- package/resources/workers.d.ts +11 -4
- package/resources/workers.d.ts.map +1 -1
- package/resources/workers.js +5 -2
- package/resources/workers.js.map +1 -1
- package/resources/workers.mjs +5 -2
- package/resources/workers.mjs.map +1 -1
- package/src/client.ts +315 -33
- package/src/internal/parse.ts +6 -0
- package/src/internal/utils/query.ts +23 -0
- package/src/internal/utils.ts +1 -0
- package/src/resources/business-partner-groups.ts +7 -4
- package/src/resources/business-partners.ts +7 -4
- package/src/resources/candidate-applications.ts +4 -1
- package/src/resources/candidates.ts +4 -1
- package/src/resources/companies.ts +4 -1
- package/src/resources/compensation-bands-details.ts +5 -2
- package/src/resources/compensations.ts +5 -2
- package/src/resources/create-app-notification.ts +46 -0
- package/src/resources/custom-apps.ts +442 -0
- package/src/resources/custom-fields.ts +4 -1
- package/src/resources/custom-objects/custom-objects.ts +3 -0
- package/src/resources/custom-objects/fields.ts +3 -0
- package/src/resources/custom-objects/records.ts +3 -0
- package/src/resources/custom-pages.ts +247 -0
- package/src/resources/custom-settings.ts +5 -5
- package/src/resources/departments.ts +7 -4
- package/src/resources/draft-hires.ts +3 -0
- package/src/resources/employment-types.ts +5 -2
- package/src/resources/entitlements.ts +4 -1
- package/src/resources/functions/deployments.ts +3 -0
- package/src/resources/functions/executions.ts +3 -0
- package/src/resources/functions/functions.ts +18 -0
- package/src/resources/headcount-positions.ts +5 -2
- package/src/resources/headcount-priorities.ts +5 -2
- package/src/resources/index.ts +39 -1
- package/src/resources/job-assignments.ts +9 -6
- package/src/resources/job-codes.ts +9 -6
- package/src/resources/job-dimensions.ts +8 -5
- package/src/resources/job-functions.ts +5 -2
- package/src/resources/job-pay-rate-exceptions.ts +6 -3
- package/src/resources/job-requisitions-write.ts +4 -1
- package/src/resources/job-requisitions.ts +7 -1
- package/src/resources/kiosk-badges.ts +8 -5
- package/src/resources/leave-accruals.ts +14 -7
- package/src/resources/leave-balances.ts +5 -2
- package/src/resources/leave-requests.ts +7 -4
- package/src/resources/leave-types.ts +5 -2
- package/src/resources/legal-entities.ts +5 -2
- package/src/resources/levels.ts +5 -2
- package/src/resources/location-factors.ts +5 -2
- package/src/resources/metadata/components.ts +38 -0
- package/src/resources/metadata/index.ts +10 -0
- package/src/resources/metadata/metadata.ts +70 -0
- package/src/resources/metadata/summary.ts +38 -0
- package/src/resources/metadata/types.ts +38 -0
- package/src/resources/metadata.ts +3 -0
- package/src/resources/object-categories.ts +3 -0
- package/src/resources/platform-capabilities.ts +41 -0
- package/src/resources/report-runs.ts +24 -14
- package/src/resources/run-query.ts +51 -0
- package/src/resources/schedules.ts +7 -4
- package/src/resources/send-email.ts +48 -0
- package/src/resources/send-slack.ts +42 -0
- package/src/resources/shift-assignments.ts +4 -1
- package/src/resources/shift-inputs.ts +8 -5
- package/src/resources/shiftassignments.ts +7 -4
- package/src/resources/sso-me.ts +7 -4
- package/src/resources/supergroups/exclusion-members.ts +5 -2
- package/src/resources/supergroups/inclusion-members.ts +5 -2
- package/src/resources/supergroups/members.ts +8 -4
- package/src/resources/supergroups/supergroups.ts +5 -2
- package/src/resources/teams.ts +5 -2
- package/src/resources/time-cards.ts +5 -2
- package/src/resources/time-entries.ts +10 -6
- package/src/resources/titles.ts +8 -5
- package/src/resources/tracks.ts +5 -2
- package/src/resources/unassigned-shifts.ts +5 -2
- package/src/resources/unassignedshifts.ts +7 -4
- package/src/resources/users.ts +5 -2
- package/src/resources/work-locations.ts +18 -4
- package/src/resources/workers.ts +13 -5
- 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/src/client.ts
CHANGED
|
@@ -11,6 +11,7 @@ import type { APIResponseProps } from './internal/parse';
|
|
|
11
11
|
import { getPlatformHeaders } from './internal/detect-platform';
|
|
12
12
|
import * as Shims from './internal/shims';
|
|
13
13
|
import * as Opts from './internal/request-options';
|
|
14
|
+
import { stringifyQuery } from './internal/utils/query';
|
|
14
15
|
import { VERSION } from './version';
|
|
15
16
|
import * as Errors from './core/error';
|
|
16
17
|
import * as Pagination from './core/pagination';
|
|
@@ -66,12 +67,37 @@ import {
|
|
|
66
67
|
Compensations,
|
|
67
68
|
CompensationsPageCursorURL,
|
|
68
69
|
} from './resources/compensations';
|
|
70
|
+
import {
|
|
71
|
+
CreateAppNotification,
|
|
72
|
+
CreateAppNotificationCreateParams,
|
|
73
|
+
CreateAppNotificationCreateResponse,
|
|
74
|
+
} from './resources/create-app-notification';
|
|
75
|
+
import {
|
|
76
|
+
CustomAppCreateParams,
|
|
77
|
+
CustomAppCreateResponse,
|
|
78
|
+
CustomAppListResponse,
|
|
79
|
+
CustomAppListResponsesPageCursorURL,
|
|
80
|
+
CustomAppRetrieveResponse,
|
|
81
|
+
CustomAppUpdateParams,
|
|
82
|
+
CustomAppUpdateResponse,
|
|
83
|
+
CustomApps,
|
|
84
|
+
} from './resources/custom-apps';
|
|
69
85
|
import {
|
|
70
86
|
CustomFieldListParams,
|
|
71
87
|
CustomFieldListResponse,
|
|
72
88
|
CustomFieldListResponsesPageCursorURL,
|
|
73
89
|
CustomFields,
|
|
74
90
|
} from './resources/custom-fields';
|
|
91
|
+
import {
|
|
92
|
+
CustomPageCreateParams,
|
|
93
|
+
CustomPageCreateResponse,
|
|
94
|
+
CustomPageListResponse,
|
|
95
|
+
CustomPageListResponsesPageCursorURL,
|
|
96
|
+
CustomPageRetrieveResponse,
|
|
97
|
+
CustomPageUpdateParams,
|
|
98
|
+
CustomPageUpdateResponse,
|
|
99
|
+
CustomPages,
|
|
100
|
+
} from './resources/custom-pages';
|
|
75
101
|
import {
|
|
76
102
|
CustomSettingCreateParams,
|
|
77
103
|
CustomSettingCreateResponse,
|
|
@@ -264,12 +290,18 @@ import {
|
|
|
264
290
|
ObjectCategoryCreateParams,
|
|
265
291
|
ObjectCategoryUpdateParams,
|
|
266
292
|
} from './resources/object-categories';
|
|
293
|
+
import {
|
|
294
|
+
PlatformCapabilities,
|
|
295
|
+
PlatformCapabilityListResponse,
|
|
296
|
+
PlatformCapabilityListResponsesPageCursorURL,
|
|
297
|
+
} from './resources/platform-capabilities';
|
|
267
298
|
import {
|
|
268
299
|
ReportRunCreateParams,
|
|
269
300
|
ReportRunCreateResponse,
|
|
270
301
|
ReportRunRetrieveResponse,
|
|
271
302
|
ReportRuns,
|
|
272
303
|
} from './resources/report-runs';
|
|
304
|
+
import { RunQuery, RunQueryCreateParams, RunQueryCreateResponse } from './resources/run-query';
|
|
273
305
|
import {
|
|
274
306
|
ScheduleCreateParams,
|
|
275
307
|
ScheduleCreateResponse,
|
|
@@ -282,6 +314,8 @@ import {
|
|
|
282
314
|
ScheduleUpdateResponse,
|
|
283
315
|
Schedules,
|
|
284
316
|
} from './resources/schedules';
|
|
317
|
+
import { SendEmail, SendEmailCreateParams, SendEmailCreateResponse } from './resources/send-email';
|
|
318
|
+
import { SendSlack, SendSlackCreateParams, SendSlackCreateResponse } from './resources/send-slack';
|
|
285
319
|
import {
|
|
286
320
|
ShiftAssignmentUpdateCustomfieldsParams,
|
|
287
321
|
ShiftAssignmentUpdateCustomfieldsResponse,
|
|
@@ -312,7 +346,7 @@ import {
|
|
|
312
346
|
ShiftassignmentUpdateResponse,
|
|
313
347
|
Shiftassignments,
|
|
314
348
|
} from './resources/shiftassignments';
|
|
315
|
-
import { SSOMe,
|
|
349
|
+
import { SSOMe, SSOMeListParams, SSOMeResource } from './resources/sso-me';
|
|
316
350
|
import {
|
|
317
351
|
Team,
|
|
318
352
|
TeamListParams,
|
|
@@ -414,6 +448,11 @@ import {
|
|
|
414
448
|
Functions,
|
|
415
449
|
FunctionsPageCursorURL,
|
|
416
450
|
} from './resources/functions/functions';
|
|
451
|
+
import {
|
|
452
|
+
Metadata,
|
|
453
|
+
MetadataListResponse,
|
|
454
|
+
MetadataListResponsesPageCursorURL,
|
|
455
|
+
} from './resources/metadata/metadata';
|
|
417
456
|
import {
|
|
418
457
|
Supergroup,
|
|
419
458
|
SupergroupListParams,
|
|
@@ -617,21 +656,8 @@ export class RipplingSDK {
|
|
|
617
656
|
/**
|
|
618
657
|
* Basic re-implementation of `qs.stringify` for primitive types.
|
|
619
658
|
*/
|
|
620
|
-
protected stringifyQuery(query: Record<string, unknown>): string {
|
|
621
|
-
return
|
|
622
|
-
.filter(([_, value]) => typeof value !== 'undefined')
|
|
623
|
-
.map(([key, value]) => {
|
|
624
|
-
if (typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean') {
|
|
625
|
-
return `${encodeURIComponent(key)}=${encodeURIComponent(value)}`;
|
|
626
|
-
}
|
|
627
|
-
if (value === null) {
|
|
628
|
-
return `${encodeURIComponent(key)}=`;
|
|
629
|
-
}
|
|
630
|
-
throw new Errors.RipplingSDKError(
|
|
631
|
-
`Cannot stringify type ${typeof value}; Expected string, number, boolean, or null. If you need to pass nested query parameters, you can manually encode them, e.g. { query: { 'foo[key1]': value1, 'foo[key2]': value2 } }, and please open a GitHub issue requesting better support for your use case.`,
|
|
632
|
-
);
|
|
633
|
-
})
|
|
634
|
-
.join('&');
|
|
659
|
+
protected stringifyQuery(query: object | Record<string, unknown>): string {
|
|
660
|
+
return stringifyQuery(query);
|
|
635
661
|
}
|
|
636
662
|
|
|
637
663
|
private getUserAgent(): string {
|
|
@@ -663,12 +689,13 @@ export class RipplingSDK {
|
|
|
663
689
|
: new URL(baseURL + (baseURL.endsWith('/') && path.startsWith('/') ? path.slice(1) : path));
|
|
664
690
|
|
|
665
691
|
const defaultQuery = this.defaultQuery();
|
|
666
|
-
|
|
667
|
-
|
|
692
|
+
const pathQuery = Object.fromEntries(url.searchParams);
|
|
693
|
+
if (!isEmptyObj(defaultQuery) || !isEmptyObj(pathQuery)) {
|
|
694
|
+
query = { ...pathQuery, ...defaultQuery, ...query };
|
|
668
695
|
}
|
|
669
696
|
|
|
670
697
|
if (typeof query === 'object' && query && !Array.isArray(query)) {
|
|
671
|
-
url.search = this.stringifyQuery(query
|
|
698
|
+
url.search = this.stringifyQuery(query);
|
|
672
699
|
}
|
|
673
700
|
|
|
674
701
|
return url.toString();
|
|
@@ -852,7 +879,7 @@ export class RipplingSDK {
|
|
|
852
879
|
loggerFor(this).info(`${responseInfo} - ${retryMessage}`);
|
|
853
880
|
|
|
854
881
|
const errText = await response.text().catch((err: any) => castToError(err).message);
|
|
855
|
-
const errJSON = safeJSON(errText);
|
|
882
|
+
const errJSON = safeJSON(errText) as any;
|
|
856
883
|
const errMessage = errJSON ? undefined : errText;
|
|
857
884
|
|
|
858
885
|
loggerFor(this).debug(
|
|
@@ -889,9 +916,14 @@ export class RipplingSDK {
|
|
|
889
916
|
getAPIList<Item, PageClass extends Pagination.AbstractPage<Item> = Pagination.AbstractPage<Item>>(
|
|
890
917
|
path: string,
|
|
891
918
|
Page: new (...args: any[]) => PageClass,
|
|
892
|
-
opts?: RequestOptions
|
|
919
|
+
opts?: PromiseOrValue<RequestOptions>,
|
|
893
920
|
): Pagination.PagePromise<PageClass, Item> {
|
|
894
|
-
return this.requestAPIList(
|
|
921
|
+
return this.requestAPIList(
|
|
922
|
+
Page,
|
|
923
|
+
opts && 'then' in opts ?
|
|
924
|
+
opts.then((opts) => ({ method: 'get', path, ...opts }))
|
|
925
|
+
: { method: 'get', path, ...opts },
|
|
926
|
+
);
|
|
895
927
|
}
|
|
896
928
|
|
|
897
929
|
requestAPIList<
|
|
@@ -899,7 +931,7 @@ export class RipplingSDK {
|
|
|
899
931
|
PageClass extends Pagination.AbstractPage<Item> = Pagination.AbstractPage<Item>,
|
|
900
932
|
>(
|
|
901
933
|
Page: new (...args: ConstructorParameters<typeof Pagination.AbstractPage>) => PageClass,
|
|
902
|
-
options: FinalRequestOptions
|
|
934
|
+
options: PromiseOrValue<FinalRequestOptions>,
|
|
903
935
|
): Pagination.PagePromise<PageClass, Item> {
|
|
904
936
|
const request = this.makeRequest(options, null, undefined);
|
|
905
937
|
return new Pagination.PagePromise<PageClass, Item>(this as any as RipplingSDK, request, Page);
|
|
@@ -912,9 +944,10 @@ export class RipplingSDK {
|
|
|
912
944
|
controller: AbortController,
|
|
913
945
|
): Promise<Response> {
|
|
914
946
|
const { signal, method, ...options } = init || {};
|
|
915
|
-
|
|
947
|
+
const abort = this._makeAbort(controller);
|
|
948
|
+
if (signal) signal.addEventListener('abort', abort, { once: true });
|
|
916
949
|
|
|
917
|
-
const timeout = setTimeout(
|
|
950
|
+
const timeout = setTimeout(abort, ms);
|
|
918
951
|
|
|
919
952
|
const isReadableBody =
|
|
920
953
|
((globalThis as any).ReadableStream && options.body instanceof (globalThis as any).ReadableStream) ||
|
|
@@ -991,9 +1024,9 @@ export class RipplingSDK {
|
|
|
991
1024
|
}
|
|
992
1025
|
}
|
|
993
1026
|
|
|
994
|
-
// If the API asks us to wait a certain amount of time
|
|
995
|
-
//
|
|
996
|
-
if (
|
|
1027
|
+
// If the API asks us to wait a certain amount of time, just do what it
|
|
1028
|
+
// says, but otherwise calculate a default
|
|
1029
|
+
if (timeoutMillis === undefined) {
|
|
997
1030
|
const maxRetries = options.maxRetries ?? this.maxRetries;
|
|
998
1031
|
timeoutMillis = this.calculateDefaultRetryTimeoutMillis(retriesRemaining, maxRetries);
|
|
999
1032
|
}
|
|
@@ -1082,6 +1115,12 @@ export class RipplingSDK {
|
|
|
1082
1115
|
return headers.values;
|
|
1083
1116
|
}
|
|
1084
1117
|
|
|
1118
|
+
private _makeAbort(controller: AbortController) {
|
|
1119
|
+
// note: we can't just inline this method inside `fetchWithTimeout()` because then the closure
|
|
1120
|
+
// would capture all request options, and cause a memory leak.
|
|
1121
|
+
return () => controller.abort();
|
|
1122
|
+
}
|
|
1123
|
+
|
|
1085
1124
|
private buildBody({ options: { body, headers: rawHeaders } }: { options: FinalRequestOptions }): {
|
|
1086
1125
|
bodyHeaders: HeadersLike;
|
|
1087
1126
|
body: BodyInit | undefined;
|
|
@@ -1114,6 +1153,14 @@ export class RipplingSDK {
|
|
|
1114
1153
|
(Symbol.iterator in body && 'next' in body && typeof body.next === 'function'))
|
|
1115
1154
|
) {
|
|
1116
1155
|
return { bodyHeaders: undefined, body: Shims.ReadableStreamFrom(body as AsyncIterable<Uint8Array>) };
|
|
1156
|
+
} else if (
|
|
1157
|
+
typeof body === 'object' &&
|
|
1158
|
+
headers.values.get('content-type') === 'application/x-www-form-urlencoded'
|
|
1159
|
+
) {
|
|
1160
|
+
return {
|
|
1161
|
+
bodyHeaders: { 'content-type': 'application/x-www-form-urlencoded' },
|
|
1162
|
+
body: this.stringifyQuery(body),
|
|
1163
|
+
};
|
|
1117
1164
|
} else {
|
|
1118
1165
|
return this.#encoder({ body, headers });
|
|
1119
1166
|
}
|
|
@@ -1138,55 +1185,228 @@ export class RipplingSDK {
|
|
|
1138
1185
|
|
|
1139
1186
|
static toFile = Uploads.toFile;
|
|
1140
1187
|
|
|
1188
|
+
/**
|
|
1189
|
+
* Companies on Rippling
|
|
1190
|
+
*/
|
|
1141
1191
|
companies: API.Companies = new API.Companies(this);
|
|
1192
|
+
/**
|
|
1193
|
+
* Compensation associated with workers
|
|
1194
|
+
*/
|
|
1142
1195
|
compensations: API.Compensations = new API.Compensations(this);
|
|
1196
|
+
/**
|
|
1197
|
+
* Custom objects defined by the company
|
|
1198
|
+
*/
|
|
1143
1199
|
customObjects: API.CustomObjects = new API.CustomObjects(this);
|
|
1200
|
+
/**
|
|
1201
|
+
* Departments used by the company
|
|
1202
|
+
*/
|
|
1144
1203
|
departments: API.Departments = new API.Departments(this);
|
|
1204
|
+
/**
|
|
1205
|
+
* Employment types used by the company
|
|
1206
|
+
*/
|
|
1145
1207
|
employmentTypes: API.EmploymentTypes = new API.EmploymentTypes(this);
|
|
1208
|
+
/**
|
|
1209
|
+
* Job related information for the company
|
|
1210
|
+
*/
|
|
1146
1211
|
jobCodes: API.JobCodes = new API.JobCodes(this);
|
|
1212
|
+
/**
|
|
1213
|
+
* Job related information for the company
|
|
1214
|
+
*/
|
|
1147
1215
|
jobDimensions: API.JobDimensions = new API.JobDimensions(this);
|
|
1216
|
+
/**
|
|
1217
|
+
* A request for a job to be filled by a candidate
|
|
1218
|
+
*/
|
|
1148
1219
|
jobRequisitions: API.JobRequisitions = new API.JobRequisitions(this);
|
|
1220
|
+
/**
|
|
1221
|
+
* Badge information used with Timeclock Kiosk
|
|
1222
|
+
*/
|
|
1149
1223
|
kioskBadges: API.KioskBadges = new API.KioskBadges(this);
|
|
1224
|
+
/**
|
|
1225
|
+
* Leave balances for workers
|
|
1226
|
+
*/
|
|
1150
1227
|
leaveBalances: API.LeaveBalances = new API.LeaveBalances(this);
|
|
1228
|
+
/**
|
|
1229
|
+
* Leave requests submitted by workers
|
|
1230
|
+
*/
|
|
1151
1231
|
leaveRequests: API.LeaveRequests = new API.LeaveRequests(this);
|
|
1232
|
+
/**
|
|
1233
|
+
* Leave types used by the company
|
|
1234
|
+
*/
|
|
1152
1235
|
leaveTypes: API.LeaveTypes = new API.LeaveTypes(this);
|
|
1236
|
+
/**
|
|
1237
|
+
* Legal entities registered by the company
|
|
1238
|
+
*/
|
|
1153
1239
|
legalEntities: API.LegalEntities = new API.LegalEntities(this);
|
|
1240
|
+
/**
|
|
1241
|
+
* Levels and tracks used by the company for workers
|
|
1242
|
+
*/
|
|
1154
1243
|
levels: API.Levels = new API.Levels(this);
|
|
1244
|
+
/**
|
|
1245
|
+
* Object Categories defined by the company
|
|
1246
|
+
*/
|
|
1155
1247
|
objectCategories: API.ObjectCategories = new API.ObjectCategories(this);
|
|
1248
|
+
/**
|
|
1249
|
+
* Shift inputs used by the company
|
|
1250
|
+
*/
|
|
1156
1251
|
shiftInputs: API.ShiftInputs = new API.ShiftInputs(this);
|
|
1252
|
+
/**
|
|
1253
|
+
* Provides the user's SSO information
|
|
1254
|
+
*/
|
|
1157
1255
|
ssoMe: API.SSOMeResource = new API.SSOMeResource(this);
|
|
1256
|
+
/**
|
|
1257
|
+
* Supergroups used by the company
|
|
1258
|
+
*/
|
|
1158
1259
|
supergroups: API.Supergroups = new API.Supergroups(this);
|
|
1260
|
+
/**
|
|
1261
|
+
* Teams at the company
|
|
1262
|
+
*/
|
|
1159
1263
|
teams: API.Teams = new API.Teams(this);
|
|
1264
|
+
/**
|
|
1265
|
+
* Time entries submitted by workers
|
|
1266
|
+
*/
|
|
1160
1267
|
timeCards: API.TimeCards = new API.TimeCards(this);
|
|
1268
|
+
/**
|
|
1269
|
+
* Time entries submitted by workers
|
|
1270
|
+
*/
|
|
1161
1271
|
timeEntries: API.TimeEntries = new API.TimeEntries(this);
|
|
1272
|
+
/**
|
|
1273
|
+
* Levels and tracks used by the company for workers
|
|
1274
|
+
*/
|
|
1162
1275
|
tracks: API.Tracks = new API.Tracks(this);
|
|
1276
|
+
/**
|
|
1277
|
+
* Users of the company
|
|
1278
|
+
*/
|
|
1163
1279
|
users: API.Users = new API.Users(this);
|
|
1280
|
+
/**
|
|
1281
|
+
* Work locations used by the company
|
|
1282
|
+
*/
|
|
1164
1283
|
workLocations: API.WorkLocations = new API.WorkLocations(this);
|
|
1284
|
+
/**
|
|
1285
|
+
* Workers who work or have worked at the company
|
|
1286
|
+
*/
|
|
1165
1287
|
workers: API.Workers = new API.Workers(this);
|
|
1288
|
+
/**
|
|
1289
|
+
* Business partners of the company
|
|
1290
|
+
*/
|
|
1166
1291
|
businessPartners: API.BusinessPartners = new API.BusinessPartners(this);
|
|
1292
|
+
/**
|
|
1293
|
+
* Business partners of the company
|
|
1294
|
+
*/
|
|
1167
1295
|
businessPartnerGroups: API.BusinessPartnerGroups = new API.BusinessPartnerGroups(this);
|
|
1296
|
+
/**
|
|
1297
|
+
* Functions defined by the company
|
|
1298
|
+
*/
|
|
1168
1299
|
functions: API.Functions = new API.Functions(this);
|
|
1300
|
+
/**
|
|
1301
|
+
* Job related information for the company
|
|
1302
|
+
*/
|
|
1169
1303
|
jobAssignments: API.JobAssignments = new API.JobAssignments(this);
|
|
1304
|
+
/**
|
|
1305
|
+
* Job related information for the company
|
|
1306
|
+
*/
|
|
1170
1307
|
jobPayRateExceptions: API.JobPayRateExceptions = new API.JobPayRateExceptions(this);
|
|
1308
|
+
/**
|
|
1309
|
+
* Someone who applies to a job requisition opened by the company
|
|
1310
|
+
*/
|
|
1171
1311
|
candidates: API.Candidates = new API.Candidates(this);
|
|
1312
|
+
/**
|
|
1313
|
+
* An application by a candidate to a specific job requisition
|
|
1314
|
+
*/
|
|
1172
1315
|
candidateApplications: API.CandidateApplications = new API.CandidateApplications(this);
|
|
1316
|
+
/**
|
|
1317
|
+
* Compensation bands details associated with workers
|
|
1318
|
+
*/
|
|
1173
1319
|
compensationBandsDetails: API.CompensationBandsDetails = new API.CompensationBandsDetails(this);
|
|
1320
|
+
/**
|
|
1321
|
+
* Execute workflow actions like sending emails, Slack messages, and notifications
|
|
1322
|
+
*/
|
|
1323
|
+
createAppNotification: API.CreateAppNotification = new API.CreateAppNotification(this);
|
|
1324
|
+
customApps: API.CustomApps = new API.CustomApps(this);
|
|
1325
|
+
/**
|
|
1326
|
+
* Custom fields defined by the company
|
|
1327
|
+
*/
|
|
1174
1328
|
customFields: API.CustomFields = new API.CustomFields(this);
|
|
1329
|
+
customPages: API.CustomPages = new API.CustomPages(this);
|
|
1175
1330
|
customSettings: API.CustomSettings = new API.CustomSettings(this);
|
|
1331
|
+
/**
|
|
1332
|
+
* Candidates who have not yet started work at the company
|
|
1333
|
+
*/
|
|
1176
1334
|
draftHires: API.DraftHires = new API.DraftHires(this);
|
|
1335
|
+
/**
|
|
1336
|
+
* Availability of API features to the company or Partners.
|
|
1337
|
+
*/
|
|
1177
1338
|
entitlements: API.Entitlements = new API.Entitlements(this);
|
|
1339
|
+
/**
|
|
1340
|
+
* Headcount allocations for the company
|
|
1341
|
+
*/
|
|
1178
1342
|
headcountPositions: API.HeadcountPositions = new API.HeadcountPositions(this);
|
|
1343
|
+
/**
|
|
1344
|
+
* Organizational classifications used to categorize hiring needs based on business urgency and strategic importance
|
|
1345
|
+
*/
|
|
1179
1346
|
headcountPriorities: API.HeadcountPriorities = new API.HeadcountPriorities(this);
|
|
1347
|
+
/**
|
|
1348
|
+
* Organizational job categories that group similar roles and responsibilities within a company
|
|
1349
|
+
*/
|
|
1180
1350
|
jobFunctions: API.JobFunctions = new API.JobFunctions(this);
|
|
1351
|
+
/**
|
|
1352
|
+
* A request for a job to be filled by a candidate
|
|
1353
|
+
*/
|
|
1181
1354
|
jobRequisitionsWrite: API.JobRequisitionsWrite = new API.JobRequisitionsWrite(this);
|
|
1355
|
+
/**
|
|
1356
|
+
* Leave accruals for workers
|
|
1357
|
+
*/
|
|
1182
1358
|
leaveAccruals: API.LeaveAccruals = new API.LeaveAccruals(this);
|
|
1359
|
+
/**
|
|
1360
|
+
* Geographic compensation adjustment factors that modify base compensation based on location-specific market conditions and cost of living
|
|
1361
|
+
*/
|
|
1183
1362
|
locationFactors: API.LocationFactors = new API.LocationFactors(this);
|
|
1363
|
+
/**
|
|
1364
|
+
* Custom objects defined by the company
|
|
1365
|
+
*/
|
|
1366
|
+
metadata: API.Metadata = new API.Metadata(this);
|
|
1367
|
+
/**
|
|
1368
|
+
* Custom objects defined by the company
|
|
1369
|
+
*/
|
|
1370
|
+
platformCapabilities: API.PlatformCapabilities = new API.PlatformCapabilities(this);
|
|
1371
|
+
/**
|
|
1372
|
+
* Report data for company
|
|
1373
|
+
*/
|
|
1184
1374
|
reportRuns: API.ReportRuns = new API.ReportRuns(this);
|
|
1375
|
+
/**
|
|
1376
|
+
* Execute SQL queries and manage transformations
|
|
1377
|
+
*/
|
|
1378
|
+
runQuery: API.RunQuery = new API.RunQuery(this);
|
|
1379
|
+
/**
|
|
1380
|
+
* Schedules used by the company
|
|
1381
|
+
*/
|
|
1185
1382
|
schedules: API.Schedules = new API.Schedules(this);
|
|
1383
|
+
/**
|
|
1384
|
+
* Execute workflow actions like sending emails, Slack messages, and notifications
|
|
1385
|
+
*/
|
|
1386
|
+
sendEmail: API.SendEmail = new API.SendEmail(this);
|
|
1387
|
+
/**
|
|
1388
|
+
* Execute workflow actions like sending emails, Slack messages, and notifications
|
|
1389
|
+
*/
|
|
1390
|
+
sendSlack: API.SendSlack = new API.SendSlack(this);
|
|
1391
|
+
/**
|
|
1392
|
+
* Shift assignments assigned to workers
|
|
1393
|
+
*/
|
|
1186
1394
|
shiftassignments: API.Shiftassignments = new API.Shiftassignments(this);
|
|
1395
|
+
/**
|
|
1396
|
+
* Job titles used by the company
|
|
1397
|
+
*/
|
|
1187
1398
|
titles: API.Titles = new API.Titles(this);
|
|
1399
|
+
/**
|
|
1400
|
+
* Unassigned shifts that are part of a schedule
|
|
1401
|
+
*/
|
|
1188
1402
|
unassignedshifts: API.Unassignedshifts = new API.Unassignedshifts(this);
|
|
1403
|
+
/**
|
|
1404
|
+
* Shift assignments assigned to workers
|
|
1405
|
+
*/
|
|
1189
1406
|
shiftAssignments: API.ShiftAssignments = new API.ShiftAssignments(this);
|
|
1407
|
+
/**
|
|
1408
|
+
* Unassigned shifts that are part of a schedule
|
|
1409
|
+
*/
|
|
1190
1410
|
unassignedShifts: API.UnassignedShifts = new API.UnassignedShifts(this);
|
|
1191
1411
|
}
|
|
1192
1412
|
|
|
@@ -1223,7 +1443,10 @@ RipplingSDK.JobPayRateExceptions = JobPayRateExceptions;
|
|
|
1223
1443
|
RipplingSDK.Candidates = Candidates;
|
|
1224
1444
|
RipplingSDK.CandidateApplications = CandidateApplications;
|
|
1225
1445
|
RipplingSDK.CompensationBandsDetails = CompensationBandsDetails;
|
|
1446
|
+
RipplingSDK.CreateAppNotification = CreateAppNotification;
|
|
1447
|
+
RipplingSDK.CustomApps = CustomApps;
|
|
1226
1448
|
RipplingSDK.CustomFields = CustomFields;
|
|
1449
|
+
RipplingSDK.CustomPages = CustomPages;
|
|
1227
1450
|
RipplingSDK.CustomSettings = CustomSettings;
|
|
1228
1451
|
RipplingSDK.DraftHires = DraftHires;
|
|
1229
1452
|
RipplingSDK.Entitlements = Entitlements;
|
|
@@ -1233,8 +1456,13 @@ RipplingSDK.JobFunctions = JobFunctions;
|
|
|
1233
1456
|
RipplingSDK.JobRequisitionsWrite = JobRequisitionsWrite;
|
|
1234
1457
|
RipplingSDK.LeaveAccruals = LeaveAccruals;
|
|
1235
1458
|
RipplingSDK.LocationFactors = LocationFactors;
|
|
1459
|
+
RipplingSDK.Metadata = Metadata;
|
|
1460
|
+
RipplingSDK.PlatformCapabilities = PlatformCapabilities;
|
|
1236
1461
|
RipplingSDK.ReportRuns = ReportRuns;
|
|
1462
|
+
RipplingSDK.RunQuery = RunQuery;
|
|
1237
1463
|
RipplingSDK.Schedules = Schedules;
|
|
1464
|
+
RipplingSDK.SendEmail = SendEmail;
|
|
1465
|
+
RipplingSDK.SendSlack = SendSlack;
|
|
1238
1466
|
RipplingSDK.Shiftassignments = Shiftassignments;
|
|
1239
1467
|
RipplingSDK.Titles = Titles;
|
|
1240
1468
|
RipplingSDK.Unassignedshifts = Unassignedshifts;
|
|
@@ -1406,11 +1634,7 @@ export declare namespace RipplingSDK {
|
|
|
1406
1634
|
type ShiftInputUpdateParams as ShiftInputUpdateParams,
|
|
1407
1635
|
};
|
|
1408
1636
|
|
|
1409
|
-
export {
|
|
1410
|
-
SSOMeResource as SSOMeResource,
|
|
1411
|
-
type SSOMe as SSOMe,
|
|
1412
|
-
type SSOMeRetrieveParams as SSOMeRetrieveParams,
|
|
1413
|
-
};
|
|
1637
|
+
export { SSOMeResource as SSOMeResource, type SSOMe as SSOMe, type SSOMeListParams as SSOMeListParams };
|
|
1414
1638
|
|
|
1415
1639
|
export {
|
|
1416
1640
|
Supergroups as Supergroups,
|
|
@@ -1566,6 +1790,23 @@ export declare namespace RipplingSDK {
|
|
|
1566
1790
|
type CompensationBandsDetailRetrieveParams as CompensationBandsDetailRetrieveParams,
|
|
1567
1791
|
};
|
|
1568
1792
|
|
|
1793
|
+
export {
|
|
1794
|
+
CreateAppNotification as CreateAppNotification,
|
|
1795
|
+
type CreateAppNotificationCreateResponse as CreateAppNotificationCreateResponse,
|
|
1796
|
+
type CreateAppNotificationCreateParams as CreateAppNotificationCreateParams,
|
|
1797
|
+
};
|
|
1798
|
+
|
|
1799
|
+
export {
|
|
1800
|
+
CustomApps as CustomApps,
|
|
1801
|
+
type CustomAppListResponse as CustomAppListResponse,
|
|
1802
|
+
type CustomAppCreateResponse as CustomAppCreateResponse,
|
|
1803
|
+
type CustomAppRetrieveResponse as CustomAppRetrieveResponse,
|
|
1804
|
+
type CustomAppUpdateResponse as CustomAppUpdateResponse,
|
|
1805
|
+
type CustomAppListResponsesPageCursorURL as CustomAppListResponsesPageCursorURL,
|
|
1806
|
+
type CustomAppCreateParams as CustomAppCreateParams,
|
|
1807
|
+
type CustomAppUpdateParams as CustomAppUpdateParams,
|
|
1808
|
+
};
|
|
1809
|
+
|
|
1569
1810
|
export {
|
|
1570
1811
|
CustomFields as CustomFields,
|
|
1571
1812
|
type CustomFieldListResponse as CustomFieldListResponse,
|
|
@@ -1573,6 +1814,17 @@ export declare namespace RipplingSDK {
|
|
|
1573
1814
|
type CustomFieldListParams as CustomFieldListParams,
|
|
1574
1815
|
};
|
|
1575
1816
|
|
|
1817
|
+
export {
|
|
1818
|
+
CustomPages as CustomPages,
|
|
1819
|
+
type CustomPageListResponse as CustomPageListResponse,
|
|
1820
|
+
type CustomPageCreateResponse as CustomPageCreateResponse,
|
|
1821
|
+
type CustomPageRetrieveResponse as CustomPageRetrieveResponse,
|
|
1822
|
+
type CustomPageUpdateResponse as CustomPageUpdateResponse,
|
|
1823
|
+
type CustomPageListResponsesPageCursorURL as CustomPageListResponsesPageCursorURL,
|
|
1824
|
+
type CustomPageCreateParams as CustomPageCreateParams,
|
|
1825
|
+
type CustomPageUpdateParams as CustomPageUpdateParams,
|
|
1826
|
+
};
|
|
1827
|
+
|
|
1576
1828
|
export {
|
|
1577
1829
|
CustomSettings as CustomSettings,
|
|
1578
1830
|
type CustomSettingListResponse as CustomSettingListResponse,
|
|
@@ -1647,6 +1899,18 @@ export declare namespace RipplingSDK {
|
|
|
1647
1899
|
type LocationFactorListParams as LocationFactorListParams,
|
|
1648
1900
|
};
|
|
1649
1901
|
|
|
1902
|
+
export {
|
|
1903
|
+
Metadata as Metadata,
|
|
1904
|
+
type MetadataListResponse as MetadataListResponse,
|
|
1905
|
+
type MetadataListResponsesPageCursorURL as MetadataListResponsesPageCursorURL,
|
|
1906
|
+
};
|
|
1907
|
+
|
|
1908
|
+
export {
|
|
1909
|
+
PlatformCapabilities as PlatformCapabilities,
|
|
1910
|
+
type PlatformCapabilityListResponse as PlatformCapabilityListResponse,
|
|
1911
|
+
type PlatformCapabilityListResponsesPageCursorURL as PlatformCapabilityListResponsesPageCursorURL,
|
|
1912
|
+
};
|
|
1913
|
+
|
|
1650
1914
|
export {
|
|
1651
1915
|
ReportRuns as ReportRuns,
|
|
1652
1916
|
type ReportRunCreateResponse as ReportRunCreateResponse,
|
|
@@ -1654,6 +1918,12 @@ export declare namespace RipplingSDK {
|
|
|
1654
1918
|
type ReportRunCreateParams as ReportRunCreateParams,
|
|
1655
1919
|
};
|
|
1656
1920
|
|
|
1921
|
+
export {
|
|
1922
|
+
RunQuery as RunQuery,
|
|
1923
|
+
type RunQueryCreateResponse as RunQueryCreateResponse,
|
|
1924
|
+
type RunQueryCreateParams as RunQueryCreateParams,
|
|
1925
|
+
};
|
|
1926
|
+
|
|
1657
1927
|
export {
|
|
1658
1928
|
Schedules as Schedules,
|
|
1659
1929
|
type ScheduleListResponse as ScheduleListResponse,
|
|
@@ -1667,6 +1937,18 @@ export declare namespace RipplingSDK {
|
|
|
1667
1937
|
type ScheduleUpdateParams as ScheduleUpdateParams,
|
|
1668
1938
|
};
|
|
1669
1939
|
|
|
1940
|
+
export {
|
|
1941
|
+
SendEmail as SendEmail,
|
|
1942
|
+
type SendEmailCreateResponse as SendEmailCreateResponse,
|
|
1943
|
+
type SendEmailCreateParams as SendEmailCreateParams,
|
|
1944
|
+
};
|
|
1945
|
+
|
|
1946
|
+
export {
|
|
1947
|
+
SendSlack as SendSlack,
|
|
1948
|
+
type SendSlackCreateResponse as SendSlackCreateResponse,
|
|
1949
|
+
type SendSlackCreateParams as SendSlackCreateParams,
|
|
1950
|
+
};
|
|
1951
|
+
|
|
1670
1952
|
export {
|
|
1671
1953
|
Shiftassignments as Shiftassignments,
|
|
1672
1954
|
type ShiftassignmentListResponse as ShiftassignmentListResponse,
|
package/src/internal/parse.ts
CHANGED
|
@@ -29,6 +29,12 @@ export async function defaultParseResponse<T>(client: RipplingSDK, props: APIRes
|
|
|
29
29
|
const mediaType = contentType?.split(';')[0]?.trim();
|
|
30
30
|
const isJSON = mediaType?.includes('application/json') || mediaType?.endsWith('+json');
|
|
31
31
|
if (isJSON) {
|
|
32
|
+
const contentLength = response.headers.get('content-length');
|
|
33
|
+
if (contentLength === '0') {
|
|
34
|
+
// if there is no content we can't do anything
|
|
35
|
+
return undefined as T;
|
|
36
|
+
}
|
|
37
|
+
|
|
32
38
|
const json = await response.json();
|
|
33
39
|
return json as T;
|
|
34
40
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { RipplingSDKError } from '../../core/error';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Basic re-implementation of `qs.stringify` for primitive types.
|
|
7
|
+
*/
|
|
8
|
+
export function stringifyQuery(query: object | Record<string, unknown>) {
|
|
9
|
+
return Object.entries(query)
|
|
10
|
+
.filter(([_, value]) => typeof value !== 'undefined')
|
|
11
|
+
.map(([key, value]) => {
|
|
12
|
+
if (typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean') {
|
|
13
|
+
return `${encodeURIComponent(key)}=${encodeURIComponent(value)}`;
|
|
14
|
+
}
|
|
15
|
+
if (value === null) {
|
|
16
|
+
return `${encodeURIComponent(key)}=`;
|
|
17
|
+
}
|
|
18
|
+
throw new RipplingSDKError(
|
|
19
|
+
`Cannot stringify type ${typeof value}; Expected string, number, boolean, or null. If you need to pass nested query parameters, you can manually encode them, e.g. { query: { 'foo[key1]': value1, 'foo[key2]': value2 } }, and please open a GitHub issue requesting better support for your use case.`,
|
|
20
|
+
);
|
|
21
|
+
})
|
|
22
|
+
.join('&');
|
|
23
|
+
}
|
package/src/internal/utils.ts
CHANGED
|
@@ -9,6 +9,9 @@ import { buildHeaders } from '../internal/headers';
|
|
|
9
9
|
import { RequestOptions } from '../internal/request-options';
|
|
10
10
|
import { path } from '../internal/utils/path';
|
|
11
11
|
|
|
12
|
+
/**
|
|
13
|
+
* Business partners of the company
|
|
14
|
+
*/
|
|
12
15
|
export class BusinessPartnerGroups extends APIResource {
|
|
13
16
|
/**
|
|
14
17
|
* A List of business partner groups
|
|
@@ -21,7 +24,7 @@ export class BusinessPartnerGroups extends APIResource {
|
|
|
21
24
|
query: BusinessPartnerGroupListParams | null | undefined = {},
|
|
22
25
|
options?: RequestOptions,
|
|
23
26
|
): PagePromise<BusinessPartnerGroupsPageCursorURL, BusinessPartnerGroup> {
|
|
24
|
-
return this._client.getAPIList('/business-partner-groups', PageCursorURL<BusinessPartnerGroup>, {
|
|
27
|
+
return this._client.getAPIList('/business-partner-groups/', PageCursorURL<BusinessPartnerGroup>, {
|
|
25
28
|
query,
|
|
26
29
|
...options,
|
|
27
30
|
});
|
|
@@ -31,7 +34,7 @@ export class BusinessPartnerGroups extends APIResource {
|
|
|
31
34
|
* Create a new business partner group
|
|
32
35
|
*/
|
|
33
36
|
create(body: BusinessPartnerGroupCreateParams, options?: RequestOptions): APIPromise<BusinessPartnerGroup> {
|
|
34
|
-
return this._client.post('/business-partner-groups', { body, ...options });
|
|
37
|
+
return this._client.post('/business-partner-groups/', { body, ...options });
|
|
35
38
|
}
|
|
36
39
|
|
|
37
40
|
/**
|
|
@@ -42,14 +45,14 @@ export class BusinessPartnerGroups extends APIResource {
|
|
|
42
45
|
query: BusinessPartnerGroupRetrieveParams | null | undefined = {},
|
|
43
46
|
options?: RequestOptions,
|
|
44
47
|
): APIPromise<BusinessPartnerGroupRetrieveResponse> {
|
|
45
|
-
return this._client.get(path`/business-partner-groups/${id}
|
|
48
|
+
return this._client.get(path`/business-partner-groups/${id}/`, { query, ...options });
|
|
46
49
|
}
|
|
47
50
|
|
|
48
51
|
/**
|
|
49
52
|
* Delete a business partner group
|
|
50
53
|
*/
|
|
51
54
|
delete(id: string, options?: RequestOptions): APIPromise<void> {
|
|
52
|
-
return this._client.delete(path`/business-partner-groups/${id}
|
|
55
|
+
return this._client.delete(path`/business-partner-groups/${id}/`, {
|
|
53
56
|
...options,
|
|
54
57
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
55
58
|
});
|