@rippling/rippling-sdk 0.2.0-alpha.28 → 0.2.0-alpha.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client.d.mts +25 -25
- package/client.d.mts.map +1 -1
- package/client.d.ts +25 -25
- package/client.d.ts.map +1 -1
- package/client.js +23 -23
- package/client.js.map +1 -1
- package/client.mjs +23 -23
- package/client.mjs.map +1 -1
- package/internal/utils/env.js +2 -2
- package/internal/utils/env.js.map +1 -1
- package/internal/utils/env.mjs +2 -2
- package/internal/utils/env.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/business-partner-groups.d.mts +1 -1
- package/resources/business-partner-groups.d.ts +1 -1
- package/resources/business-partner-groups.js +1 -1
- package/resources/business-partner-groups.mjs +1 -1
- package/resources/business-partners.d.mts +1 -1
- package/resources/business-partners.d.ts +1 -1
- package/resources/business-partners.js +1 -1
- package/resources/business-partners.mjs +1 -1
- package/resources/candidate-applications.d.mts +1 -1
- package/resources/candidate-applications.d.ts +1 -1
- package/resources/candidate-applications.js +1 -1
- package/resources/candidate-applications.mjs +1 -1
- package/resources/candidates.d.mts +1 -1
- package/resources/candidates.d.ts +1 -1
- package/resources/candidates.js +1 -1
- package/resources/candidates.mjs +1 -1
- package/resources/companies.d.mts +1 -1
- package/resources/companies.d.ts +1 -1
- package/resources/companies.js +1 -1
- package/resources/companies.mjs +1 -1
- package/resources/compensation-bands-details.d.mts +1 -1
- package/resources/compensation-bands-details.d.ts +1 -1
- package/resources/compensation-bands-details.js +1 -1
- package/resources/compensation-bands-details.mjs +1 -1
- package/resources/compensations.d.mts +1 -1
- package/resources/compensations.d.ts +1 -1
- package/resources/compensations.js +1 -1
- package/resources/compensations.mjs +1 -1
- package/resources/custom-apps.d.mts +3 -3
- package/resources/custom-apps.d.ts +3 -3
- package/resources/custom-apps.js +3 -3
- package/resources/custom-apps.mjs +3 -3
- package/resources/custom-fields.d.mts +1 -1
- package/resources/custom-fields.d.ts +1 -1
- package/resources/custom-fields.js +1 -1
- package/resources/custom-fields.mjs +1 -1
- package/resources/custom-objects/custom-objects.d.mts +29 -5
- package/resources/custom-objects/custom-objects.d.mts.map +1 -1
- package/resources/custom-objects/custom-objects.d.ts +29 -5
- package/resources/custom-objects/custom-objects.d.ts.map +1 -1
- package/resources/custom-objects/custom-objects.js +5 -5
- package/resources/custom-objects/custom-objects.js.map +1 -1
- package/resources/custom-objects/custom-objects.mjs +5 -5
- package/resources/custom-objects/custom-objects.mjs.map +1 -1
- package/resources/custom-objects/fields.d.mts +71 -5
- package/resources/custom-objects/fields.d.mts.map +1 -1
- package/resources/custom-objects/fields.d.ts +71 -5
- package/resources/custom-objects/fields.d.ts.map +1 -1
- package/resources/custom-objects/fields.js +5 -5
- package/resources/custom-objects/fields.mjs +5 -5
- package/resources/custom-objects/records.d.mts +68 -11
- package/resources/custom-objects/records.d.mts.map +1 -1
- package/resources/custom-objects/records.d.ts +68 -11
- package/resources/custom-objects/records.d.ts.map +1 -1
- package/resources/custom-objects/records.js +10 -10
- package/resources/custom-objects/records.mjs +10 -10
- package/resources/custom-pages.d.mts +3 -3
- package/resources/custom-pages.d.ts +3 -3
- package/resources/custom-pages.js +3 -3
- package/resources/custom-pages.mjs +3 -3
- package/resources/custom-settings.d.mts +2 -2
- package/resources/custom-settings.d.ts +2 -2
- package/resources/custom-settings.js +2 -2
- package/resources/custom-settings.mjs +2 -2
- package/resources/departments.d.mts +2 -2
- package/resources/departments.d.ts +2 -2
- package/resources/departments.js +2 -2
- package/resources/departments.mjs +2 -2
- package/resources/draft-hires.d.mts +8 -0
- package/resources/draft-hires.d.mts.map +1 -1
- package/resources/draft-hires.d.ts +8 -0
- package/resources/draft-hires.d.ts.map +1 -1
- package/resources/earning-types.d.mts +48 -0
- package/resources/earning-types.d.mts.map +1 -0
- package/resources/earning-types.d.ts +48 -0
- package/resources/earning-types.d.ts.map +1 -0
- package/resources/earning-types.js +21 -0
- package/resources/earning-types.js.map +1 -0
- package/resources/earning-types.mjs +17 -0
- package/resources/earning-types.mjs.map +1 -0
- package/resources/employment-types.d.mts +1 -1
- package/resources/employment-types.d.ts +1 -1
- package/resources/employment-types.js +1 -1
- package/resources/employment-types.mjs +1 -1
- package/resources/entitlements.d.mts +1 -1
- package/resources/entitlements.d.ts +1 -1
- package/resources/entitlements.js +1 -1
- package/resources/entitlements.mjs +1 -1
- package/resources/functions/deployments.d.mts +10 -4
- package/resources/functions/deployments.d.mts.map +1 -1
- package/resources/functions/deployments.d.ts +10 -4
- package/resources/functions/deployments.d.ts.map +1 -1
- package/resources/functions/deployments.js +4 -4
- package/resources/functions/deployments.mjs +4 -4
- package/resources/functions/executions.d.mts +10 -4
- package/resources/functions/executions.d.mts.map +1 -1
- package/resources/functions/executions.d.ts +10 -4
- package/resources/functions/executions.d.ts.map +1 -1
- package/resources/functions/executions.js +4 -4
- package/resources/functions/executions.mjs +4 -4
- package/resources/functions/functions.d.mts +8 -14
- package/resources/functions/functions.d.mts.map +1 -1
- package/resources/functions/functions.d.ts +8 -14
- package/resources/functions/functions.d.ts.map +1 -1
- package/resources/functions/functions.js +6 -6
- package/resources/functions/functions.js.map +1 -1
- package/resources/functions/functions.mjs +6 -6
- package/resources/functions/functions.mjs.map +1 -1
- package/resources/functions/index.d.mts +1 -1
- package/resources/functions/index.d.mts.map +1 -1
- package/resources/functions/index.d.ts +1 -1
- package/resources/functions/index.d.ts.map +1 -1
- package/resources/functions/index.js.map +1 -1
- package/resources/functions/index.mjs.map +1 -1
- package/resources/headcount-positions.d.mts +1 -1
- package/resources/headcount-positions.d.ts +1 -1
- package/resources/headcount-positions.js +1 -1
- package/resources/headcount-positions.mjs +1 -1
- package/resources/headcount-priorities.d.mts +1 -1
- package/resources/headcount-priorities.d.ts +1 -1
- package/resources/headcount-priorities.js +1 -1
- package/resources/headcount-priorities.mjs +1 -1
- package/resources/index.d.mts +5 -5
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +5 -5
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +10 -10
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +4 -4
- package/resources/index.mjs.map +1 -1
- package/resources/job-assignments.d.mts +3 -3
- package/resources/job-assignments.d.ts +3 -3
- package/resources/job-assignments.js +3 -3
- package/resources/job-assignments.mjs +3 -3
- package/resources/job-codes.d.mts +3 -3
- package/resources/job-codes.d.ts +3 -3
- package/resources/job-codes.js +3 -3
- package/resources/job-codes.mjs +3 -3
- package/resources/job-dimensions.d.mts +2 -2
- package/resources/job-dimensions.d.ts +2 -2
- package/resources/job-dimensions.js +2 -2
- package/resources/job-dimensions.mjs +2 -2
- package/resources/job-functions.d.mts +1 -1
- package/resources/job-functions.d.ts +1 -1
- package/resources/job-functions.js +1 -1
- package/resources/job-functions.mjs +1 -1
- package/resources/job-pay-rate-exceptions.d.mts +2 -2
- package/resources/job-pay-rate-exceptions.d.ts +2 -2
- package/resources/job-pay-rate-exceptions.js +2 -2
- package/resources/job-pay-rate-exceptions.mjs +2 -2
- package/resources/job-requisitions.d.mts +1 -1
- package/resources/job-requisitions.d.ts +1 -1
- package/resources/job-requisitions.js +1 -1
- package/resources/job-requisitions.mjs +1 -1
- package/resources/kiosk-badges.d.mts +2 -2
- package/resources/kiosk-badges.d.ts +2 -2
- package/resources/kiosk-badges.js +2 -2
- package/resources/kiosk-badges.mjs +2 -2
- package/resources/leave-accruals.d.mts +1 -1
- package/resources/leave-accruals.d.ts +1 -1
- package/resources/leave-accruals.js +1 -1
- package/resources/leave-accruals.mjs +1 -1
- package/resources/leave-balances.d.mts +1 -1
- package/resources/leave-balances.d.ts +1 -1
- package/resources/leave-balances.js +1 -1
- package/resources/leave-balances.mjs +1 -1
- package/resources/leave-requests.d.mts +2 -2
- package/resources/leave-requests.d.ts +2 -2
- package/resources/leave-requests.js +2 -2
- package/resources/leave-requests.mjs +2 -2
- package/resources/leave-types.d.mts +1 -1
- package/resources/leave-types.d.ts +1 -1
- package/resources/leave-types.js +1 -1
- package/resources/leave-types.mjs +1 -1
- package/resources/legal-entities.d.mts +1 -1
- package/resources/legal-entities.d.ts +1 -1
- package/resources/legal-entities.js +1 -1
- package/resources/legal-entities.mjs +1 -1
- package/resources/levels.d.mts +1 -1
- package/resources/levels.d.ts +1 -1
- package/resources/levels.js +1 -1
- package/resources/levels.mjs +1 -1
- package/resources/location-factors.d.mts +1 -1
- package/resources/location-factors.d.ts +1 -1
- package/resources/location-factors.js +1 -1
- package/resources/location-factors.mjs +1 -1
- package/resources/metadata/components.d.mts +2 -2
- package/resources/metadata/components.d.ts +2 -2
- package/resources/metadata/components.js +2 -2
- package/resources/metadata/components.mjs +2 -2
- package/resources/metadata/metadata.d.mts +2 -2
- package/resources/metadata/metadata.d.ts +2 -2
- package/resources/metadata/metadata.js +2 -2
- package/resources/metadata/metadata.mjs +2 -2
- package/resources/metadata/summary.d.mts +2 -2
- package/resources/metadata/summary.d.ts +2 -2
- package/resources/metadata/summary.js +2 -2
- package/resources/metadata/summary.mjs +2 -2
- package/resources/metadata/types.d.mts +2 -2
- package/resources/metadata/types.d.ts +2 -2
- package/resources/metadata/types.js +2 -2
- package/resources/metadata/types.mjs +2 -2
- package/resources/object-categories.d.mts +17 -5
- package/resources/object-categories.d.mts.map +1 -1
- package/resources/object-categories.d.ts +17 -5
- package/resources/object-categories.d.ts.map +1 -1
- package/resources/object-categories.js +5 -5
- package/resources/object-categories.mjs +5 -5
- package/resources/payroll-runs.d.mts +195 -0
- package/resources/payroll-runs.d.mts.map +1 -0
- package/resources/payroll-runs.d.ts +195 -0
- package/resources/payroll-runs.d.ts.map +1 -0
- package/resources/payroll-runs.js +32 -0
- package/resources/payroll-runs.js.map +1 -0
- package/resources/payroll-runs.mjs +28 -0
- package/resources/payroll-runs.mjs.map +1 -0
- package/resources/platform-capabilities.d.mts +2 -2
- package/resources/platform-capabilities.d.ts +2 -2
- package/resources/platform-capabilities.js +2 -2
- package/resources/platform-capabilities.mjs +2 -2
- package/resources/report-runs.d.mts +60 -0
- package/resources/report-runs.d.mts.map +1 -1
- package/resources/report-runs.d.ts +60 -0
- package/resources/report-runs.d.ts.map +1 -1
- package/resources/reports/available-filters.d.mts +49 -0
- package/resources/reports/available-filters.d.mts.map +1 -0
- package/resources/reports/available-filters.d.ts +49 -0
- package/resources/reports/available-filters.d.ts.map +1 -0
- package/resources/reports/available-filters.js +20 -0
- package/resources/reports/available-filters.js.map +1 -0
- package/resources/reports/available-filters.mjs +16 -0
- package/resources/reports/available-filters.mjs.map +1 -0
- package/resources/reports/index.d.mts +3 -0
- package/resources/reports/index.d.mts.map +1 -0
- package/resources/reports/index.d.ts +3 -0
- package/resources/reports/index.d.ts.map +1 -0
- package/resources/reports/index.js +9 -0
- package/resources/reports/index.js.map +1 -0
- package/resources/reports/index.mjs +4 -0
- package/resources/reports/index.mjs.map +1 -0
- package/resources/reports/reports.d.mts +85 -0
- package/resources/reports/reports.d.mts.map +1 -0
- package/resources/reports/reports.d.ts +85 -0
- package/resources/reports/reports.d.ts.map +1 -0
- package/resources/reports/reports.js +27 -0
- package/resources/reports/reports.js.map +1 -0
- package/resources/reports/reports.mjs +22 -0
- package/resources/reports/reports.mjs.map +1 -0
- package/resources/reports.d.mts +2 -0
- package/resources/reports.d.mts.map +1 -0
- package/resources/reports.d.ts +2 -0
- package/resources/reports.d.ts.map +1 -0
- package/resources/reports.js +6 -0
- package/resources/reports.js.map +1 -0
- package/resources/reports.mjs +3 -0
- package/resources/reports.mjs.map +1 -0
- package/resources/schedules.d.mts +2 -2
- package/resources/schedules.d.ts +2 -2
- package/resources/schedules.js +2 -2
- package/resources/schedules.mjs +2 -2
- package/resources/shift-inputs.d.mts +2 -2
- package/resources/shift-inputs.d.ts +2 -2
- package/resources/shift-inputs.js +2 -2
- package/resources/shift-inputs.mjs +2 -2
- package/resources/shiftassignments.d.mts +2 -2
- package/resources/shiftassignments.d.ts +2 -2
- package/resources/shiftassignments.js +2 -2
- package/resources/shiftassignments.mjs +2 -2
- package/resources/teams.d.mts +1 -1
- package/resources/teams.d.ts +1 -1
- package/resources/teams.js +1 -1
- package/resources/teams.mjs +1 -1
- package/resources/time-cards.d.mts +1 -1
- package/resources/time-cards.d.ts +1 -1
- package/resources/time-cards.js +1 -1
- package/resources/time-cards.mjs +1 -1
- package/resources/time-entries.d.mts +2 -2
- package/resources/time-entries.d.ts +2 -2
- package/resources/time-entries.js +2 -2
- package/resources/time-entries.mjs +2 -2
- package/resources/titles.d.mts +2 -2
- package/resources/titles.d.ts +2 -2
- package/resources/titles.js +2 -2
- package/resources/titles.mjs +2 -2
- package/resources/tracks.d.mts +1 -1
- package/resources/tracks.d.ts +1 -1
- package/resources/tracks.js +1 -1
- package/resources/tracks.mjs +1 -1
- package/resources/unassignedshifts.d.mts +2 -2
- package/resources/unassignedshifts.d.ts +2 -2
- package/resources/unassignedshifts.js +2 -2
- package/resources/unassignedshifts.mjs +2 -2
- package/resources/users.d.mts +1 -1
- package/resources/users.d.ts +1 -1
- package/resources/users.js +1 -1
- package/resources/users.mjs +1 -1
- package/resources/work-locations.d.mts +2 -2
- package/resources/work-locations.d.ts +2 -2
- package/resources/work-locations.js +2 -2
- package/resources/work-locations.mjs +2 -2
- package/resources/workers.d.mts +1 -1
- package/resources/workers.d.ts +1 -1
- package/resources/workers.js +1 -1
- package/resources/workers.mjs +1 -1
- package/resources/workflow-action-executions.d.mts +572 -0
- package/resources/workflow-action-executions.d.mts.map +1 -0
- package/resources/workflow-action-executions.d.ts +572 -0
- package/resources/workflow-action-executions.d.ts.map +1 -0
- package/resources/{send-email.js → workflow-action-executions.js} +6 -6
- package/resources/workflow-action-executions.js.map +1 -0
- package/resources/{send-slack.mjs → workflow-action-executions.mjs} +4 -4
- package/resources/workflow-action-executions.mjs.map +1 -0
- package/src/client.ts +61 -51
- package/src/internal/utils/env.ts +2 -2
- package/src/resources/business-partner-groups.ts +1 -1
- package/src/resources/business-partners.ts +1 -1
- package/src/resources/candidate-applications.ts +1 -1
- package/src/resources/candidates.ts +1 -1
- package/src/resources/companies.ts +1 -1
- package/src/resources/compensation-bands-details.ts +1 -1
- package/src/resources/compensations.ts +1 -1
- package/src/resources/custom-apps.ts +3 -3
- package/src/resources/custom-fields.ts +1 -1
- package/src/resources/custom-objects/custom-objects.ts +29 -5
- package/src/resources/custom-objects/fields.ts +71 -5
- package/src/resources/custom-objects/records.ts +68 -11
- package/src/resources/custom-pages.ts +3 -3
- package/src/resources/custom-settings.ts +2 -2
- package/src/resources/departments.ts +2 -2
- package/src/resources/draft-hires.ts +10 -0
- package/src/resources/earning-types.ts +64 -0
- package/src/resources/employment-types.ts +1 -1
- package/src/resources/entitlements.ts +1 -1
- package/src/resources/functions/deployments.ts +10 -4
- package/src/resources/functions/executions.ts +10 -4
- package/src/resources/functions/functions.ts +9 -15
- package/src/resources/functions/index.ts +1 -0
- package/src/resources/headcount-positions.ts +1 -1
- package/src/resources/headcount-priorities.ts +1 -1
- package/src/resources/index.ts +19 -8
- package/src/resources/job-assignments.ts +3 -3
- package/src/resources/job-codes.ts +3 -3
- package/src/resources/job-dimensions.ts +2 -2
- package/src/resources/job-functions.ts +1 -1
- package/src/resources/job-pay-rate-exceptions.ts +2 -2
- package/src/resources/job-requisitions.ts +1 -1
- package/src/resources/kiosk-badges.ts +2 -2
- package/src/resources/leave-accruals.ts +1 -1
- package/src/resources/leave-balances.ts +1 -1
- package/src/resources/leave-requests.ts +2 -2
- package/src/resources/leave-types.ts +1 -1
- package/src/resources/legal-entities.ts +1 -1
- package/src/resources/levels.ts +1 -1
- package/src/resources/location-factors.ts +1 -1
- package/src/resources/metadata/components.ts +2 -2
- package/src/resources/metadata/metadata.ts +2 -2
- package/src/resources/metadata/summary.ts +2 -2
- package/src/resources/metadata/types.ts +2 -2
- package/src/resources/object-categories.ts +17 -5
- package/src/resources/payroll-runs.ts +251 -0
- package/src/resources/platform-capabilities.ts +2 -2
- package/src/resources/report-runs.ts +90 -0
- package/src/resources/reports/available-filters.ts +60 -0
- package/src/resources/reports/index.ts +4 -0
- package/src/resources/reports/reports.ts +112 -0
- package/src/resources/reports.ts +3 -0
- package/src/resources/schedules.ts +2 -2
- package/src/resources/shift-inputs.ts +2 -2
- package/src/resources/shiftassignments.ts +2 -2
- package/src/resources/teams.ts +1 -1
- package/src/resources/time-cards.ts +1 -1
- package/src/resources/time-entries.ts +2 -2
- package/src/resources/titles.ts +2 -2
- package/src/resources/tracks.ts +1 -1
- package/src/resources/unassignedshifts.ts +2 -2
- package/src/resources/users.ts +1 -1
- package/src/resources/work-locations.ts +2 -2
- package/src/resources/workers.ts +1 -1
- package/src/resources/workflow-action-executions.ts +925 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/create-app-notification.d.mts +0 -29
- package/resources/create-app-notification.d.mts.map +0 -1
- package/resources/create-app-notification.d.ts +0 -29
- package/resources/create-app-notification.d.ts.map +0 -1
- package/resources/create-app-notification.js +0 -18
- package/resources/create-app-notification.js.map +0 -1
- package/resources/create-app-notification.mjs +0 -14
- package/resources/create-app-notification.mjs.map +0 -1
- package/resources/run-query.d.mts +0 -39
- package/resources/run-query.d.mts.map +0 -1
- package/resources/run-query.d.ts +0 -39
- package/resources/run-query.d.ts.map +0 -1
- package/resources/run-query.js +0 -21
- package/resources/run-query.js.map +0 -1
- package/resources/run-query.mjs +0 -17
- package/resources/run-query.mjs.map +0 -1
- package/resources/send-email.d.mts +0 -33
- package/resources/send-email.d.mts.map +0 -1
- package/resources/send-email.d.ts +0 -33
- package/resources/send-email.d.ts.map +0 -1
- package/resources/send-email.js.map +0 -1
- package/resources/send-email.mjs +0 -14
- package/resources/send-email.mjs.map +0 -1
- package/resources/send-slack.d.mts +0 -30
- package/resources/send-slack.d.mts.map +0 -1
- package/resources/send-slack.d.ts +0 -30
- package/resources/send-slack.d.ts.map +0 -1
- package/resources/send-slack.js +0 -18
- package/resources/send-slack.js.map +0 -1
- package/resources/send-slack.mjs.map +0 -1
- package/src/resources/create-app-notification.ts +0 -46
- package/src/resources/run-query.ts +0 -51
- package/src/resources/send-email.ts +0 -48
- package/src/resources/send-slack.ts +0 -42
|
@@ -3,12 +3,12 @@ import { APIResource } from "../core/resource.mjs";
|
|
|
3
3
|
/**
|
|
4
4
|
* Execute workflow actions like sending emails, Slack messages, and notifications
|
|
5
5
|
*/
|
|
6
|
-
export class
|
|
6
|
+
export class WorkflowActionExecutions extends APIResource {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Execute a workflow action
|
|
9
9
|
*/
|
|
10
10
|
create(body, options) {
|
|
11
|
-
return this._client.post('/
|
|
11
|
+
return this._client.post('/workflow-action-executions/', { body, ...options });
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
//# sourceMappingURL=
|
|
14
|
+
//# sourceMappingURL=workflow-action-executions.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow-action-executions.mjs","sourceRoot":"","sources":["../src/resources/workflow-action-executions.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB;;GAEG;AACH,MAAM,OAAO,wBAAyB,SAAQ,WAAW;IACvD;;OAEG;IACH,MAAM,CACJ,IAAyC,EACzC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,8BAA8B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;CACF"}
|
package/src/client.ts
CHANGED
|
@@ -67,11 +67,6 @@ import {
|
|
|
67
67
|
Compensations,
|
|
68
68
|
CompensationsPageCursorURL,
|
|
69
69
|
} from './resources/compensations';
|
|
70
|
-
import {
|
|
71
|
-
CreateAppNotification,
|
|
72
|
-
CreateAppNotificationCreateParams,
|
|
73
|
-
CreateAppNotificationCreateResponse,
|
|
74
|
-
} from './resources/create-app-notification';
|
|
75
70
|
import {
|
|
76
71
|
CustomAppCreateParams,
|
|
77
72
|
CustomAppCreateResponse,
|
|
@@ -120,6 +115,11 @@ import {
|
|
|
120
115
|
DepartmentsPageCursorURL,
|
|
121
116
|
} from './resources/departments';
|
|
122
117
|
import { DraftHireCreateParams, DraftHireCreateResponse, DraftHires } from './resources/draft-hires';
|
|
118
|
+
import {
|
|
119
|
+
EarningTypeListResponse,
|
|
120
|
+
EarningTypeListResponsesPageCursorURL,
|
|
121
|
+
EarningTypes,
|
|
122
|
+
} from './resources/earning-types';
|
|
123
123
|
import {
|
|
124
124
|
CompanyEmploymentType,
|
|
125
125
|
CompanyEmploymentTypesPageCursorURL,
|
|
@@ -290,6 +290,13 @@ import {
|
|
|
290
290
|
ObjectCategoryCreateParams,
|
|
291
291
|
ObjectCategoryUpdateParams,
|
|
292
292
|
} from './resources/object-categories';
|
|
293
|
+
import {
|
|
294
|
+
PayrollRunListParams,
|
|
295
|
+
PayrollRunListResponse,
|
|
296
|
+
PayrollRunListResponsesPageCursorURL,
|
|
297
|
+
PayrollRunRetrieveResponse,
|
|
298
|
+
PayrollRuns,
|
|
299
|
+
} from './resources/payroll-runs';
|
|
293
300
|
import {
|
|
294
301
|
PlatformCapabilities,
|
|
295
302
|
PlatformCapabilityListResponse,
|
|
@@ -301,7 +308,6 @@ import {
|
|
|
301
308
|
ReportRunRetrieveResponse,
|
|
302
309
|
ReportRuns,
|
|
303
310
|
} from './resources/report-runs';
|
|
304
|
-
import { RunQuery, RunQueryCreateParams, RunQueryCreateResponse } from './resources/run-query';
|
|
305
311
|
import {
|
|
306
312
|
ScheduleCreateParams,
|
|
307
313
|
ScheduleCreateResponse,
|
|
@@ -314,8 +320,6 @@ import {
|
|
|
314
320
|
ScheduleUpdateResponse,
|
|
315
321
|
Schedules,
|
|
316
322
|
} from './resources/schedules';
|
|
317
|
-
import { SendEmail, SendEmailCreateParams, SendEmailCreateResponse } from './resources/send-email';
|
|
318
|
-
import { SendSlack, SendSlackCreateParams, SendSlackCreateResponse } from './resources/send-slack';
|
|
319
323
|
import {
|
|
320
324
|
ShiftAssignmentUpdateCustomfieldsParams,
|
|
321
325
|
ShiftAssignmentUpdateCustomfieldsResponse,
|
|
@@ -432,6 +436,11 @@ import {
|
|
|
432
436
|
Workers,
|
|
433
437
|
WorkersPageCursorURL,
|
|
434
438
|
} from './resources/workers';
|
|
439
|
+
import {
|
|
440
|
+
WorkflowActionExecutionCreateParams,
|
|
441
|
+
WorkflowActionExecutionCreateResponse,
|
|
442
|
+
WorkflowActionExecutions,
|
|
443
|
+
} from './resources/workflow-action-executions';
|
|
435
444
|
import {
|
|
436
445
|
CustomObject,
|
|
437
446
|
CustomObjectCreateParams,
|
|
@@ -441,6 +450,7 @@ import {
|
|
|
441
450
|
} from './resources/custom-objects/custom-objects';
|
|
442
451
|
import {
|
|
443
452
|
Function,
|
|
453
|
+
FunctionCreateDevBundleParams,
|
|
444
454
|
FunctionCreateDevBundleResponse,
|
|
445
455
|
FunctionCreateParams,
|
|
446
456
|
FunctionListParams,
|
|
@@ -453,6 +463,7 @@ import {
|
|
|
453
463
|
MetadataListResponse,
|
|
454
464
|
MetadataListResponsesPageCursorURL,
|
|
455
465
|
} from './resources/metadata/metadata';
|
|
466
|
+
import { ReportRetrieveResponse, Reports } from './resources/reports/reports';
|
|
456
467
|
import {
|
|
457
468
|
Supergroup,
|
|
458
469
|
SupergroupListParams,
|
|
@@ -1317,10 +1328,6 @@ export class RipplingSDK {
|
|
|
1317
1328
|
* Compensation bands details associated with workers
|
|
1318
1329
|
*/
|
|
1319
1330
|
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
1331
|
customApps: API.CustomApps = new API.CustomApps(this);
|
|
1325
1332
|
/**
|
|
1326
1333
|
* Custom fields defined by the company
|
|
@@ -1332,6 +1339,10 @@ export class RipplingSDK {
|
|
|
1332
1339
|
* Candidates who have not yet started work at the company
|
|
1333
1340
|
*/
|
|
1334
1341
|
draftHires: API.DraftHires = new API.DraftHires(this);
|
|
1342
|
+
/**
|
|
1343
|
+
* Earning types configured for the company
|
|
1344
|
+
*/
|
|
1345
|
+
earningTypes: API.EarningTypes = new API.EarningTypes(this);
|
|
1335
1346
|
/**
|
|
1336
1347
|
* Availability of API features to the company or Partners.
|
|
1337
1348
|
*/
|
|
@@ -1364,6 +1375,10 @@ export class RipplingSDK {
|
|
|
1364
1375
|
* Custom objects defined by the company
|
|
1365
1376
|
*/
|
|
1366
1377
|
metadata: API.Metadata = new API.Metadata(this);
|
|
1378
|
+
/**
|
|
1379
|
+
* Payroll runs for the company
|
|
1380
|
+
*/
|
|
1381
|
+
payrollRuns: API.PayrollRuns = new API.PayrollRuns(this);
|
|
1367
1382
|
/**
|
|
1368
1383
|
* Custom objects defined by the company
|
|
1369
1384
|
*/
|
|
@@ -1371,23 +1386,15 @@ export class RipplingSDK {
|
|
|
1371
1386
|
/**
|
|
1372
1387
|
* Report data for company
|
|
1373
1388
|
*/
|
|
1374
|
-
|
|
1389
|
+
reports: API.Reports = new API.Reports(this);
|
|
1375
1390
|
/**
|
|
1376
|
-
*
|
|
1391
|
+
* Report data for company
|
|
1377
1392
|
*/
|
|
1378
|
-
|
|
1393
|
+
reportRuns: API.ReportRuns = new API.ReportRuns(this);
|
|
1379
1394
|
/**
|
|
1380
1395
|
* Schedules used by the company
|
|
1381
1396
|
*/
|
|
1382
1397
|
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
1398
|
/**
|
|
1392
1399
|
* Shift assignments assigned to workers
|
|
1393
1400
|
*/
|
|
@@ -1400,6 +1407,10 @@ export class RipplingSDK {
|
|
|
1400
1407
|
* Unassigned shifts that are part of a schedule
|
|
1401
1408
|
*/
|
|
1402
1409
|
unassignedshifts: API.Unassignedshifts = new API.Unassignedshifts(this);
|
|
1410
|
+
/**
|
|
1411
|
+
* Execute workflow actions like sending emails, Slack messages, and notifications
|
|
1412
|
+
*/
|
|
1413
|
+
workflowActionExecutions: API.WorkflowActionExecutions = new API.WorkflowActionExecutions(this);
|
|
1403
1414
|
/**
|
|
1404
1415
|
* Shift assignments assigned to workers
|
|
1405
1416
|
*/
|
|
@@ -1443,12 +1454,12 @@ RipplingSDK.JobPayRateExceptions = JobPayRateExceptions;
|
|
|
1443
1454
|
RipplingSDK.Candidates = Candidates;
|
|
1444
1455
|
RipplingSDK.CandidateApplications = CandidateApplications;
|
|
1445
1456
|
RipplingSDK.CompensationBandsDetails = CompensationBandsDetails;
|
|
1446
|
-
RipplingSDK.CreateAppNotification = CreateAppNotification;
|
|
1447
1457
|
RipplingSDK.CustomApps = CustomApps;
|
|
1448
1458
|
RipplingSDK.CustomFields = CustomFields;
|
|
1449
1459
|
RipplingSDK.CustomPages = CustomPages;
|
|
1450
1460
|
RipplingSDK.CustomSettings = CustomSettings;
|
|
1451
1461
|
RipplingSDK.DraftHires = DraftHires;
|
|
1462
|
+
RipplingSDK.EarningTypes = EarningTypes;
|
|
1452
1463
|
RipplingSDK.Entitlements = Entitlements;
|
|
1453
1464
|
RipplingSDK.HeadcountPositions = HeadcountPositions;
|
|
1454
1465
|
RipplingSDK.HeadcountPriorities = HeadcountPriorities;
|
|
@@ -1457,15 +1468,15 @@ RipplingSDK.JobRequisitionsWrite = JobRequisitionsWrite;
|
|
|
1457
1468
|
RipplingSDK.LeaveAccruals = LeaveAccruals;
|
|
1458
1469
|
RipplingSDK.LocationFactors = LocationFactors;
|
|
1459
1470
|
RipplingSDK.Metadata = Metadata;
|
|
1471
|
+
RipplingSDK.PayrollRuns = PayrollRuns;
|
|
1460
1472
|
RipplingSDK.PlatformCapabilities = PlatformCapabilities;
|
|
1473
|
+
RipplingSDK.Reports = Reports;
|
|
1461
1474
|
RipplingSDK.ReportRuns = ReportRuns;
|
|
1462
|
-
RipplingSDK.RunQuery = RunQuery;
|
|
1463
1475
|
RipplingSDK.Schedules = Schedules;
|
|
1464
|
-
RipplingSDK.SendEmail = SendEmail;
|
|
1465
|
-
RipplingSDK.SendSlack = SendSlack;
|
|
1466
1476
|
RipplingSDK.Shiftassignments = Shiftassignments;
|
|
1467
1477
|
RipplingSDK.Titles = Titles;
|
|
1468
1478
|
RipplingSDK.Unassignedshifts = Unassignedshifts;
|
|
1479
|
+
RipplingSDK.WorkflowActionExecutions = WorkflowActionExecutions;
|
|
1469
1480
|
RipplingSDK.ShiftAssignments = ShiftAssignments;
|
|
1470
1481
|
RipplingSDK.UnassignedShifts = UnassignedShifts;
|
|
1471
1482
|
|
|
@@ -1741,6 +1752,7 @@ export declare namespace RipplingSDK {
|
|
|
1741
1752
|
type FunctionListParams as FunctionListParams,
|
|
1742
1753
|
type FunctionCreateParams as FunctionCreateParams,
|
|
1743
1754
|
type FunctionUpdateParams as FunctionUpdateParams,
|
|
1755
|
+
type FunctionCreateDevBundleParams as FunctionCreateDevBundleParams,
|
|
1744
1756
|
};
|
|
1745
1757
|
|
|
1746
1758
|
export {
|
|
@@ -1790,12 +1802,6 @@ export declare namespace RipplingSDK {
|
|
|
1790
1802
|
type CompensationBandsDetailRetrieveParams as CompensationBandsDetailRetrieveParams,
|
|
1791
1803
|
};
|
|
1792
1804
|
|
|
1793
|
-
export {
|
|
1794
|
-
CreateAppNotification as CreateAppNotification,
|
|
1795
|
-
type CreateAppNotificationCreateResponse as CreateAppNotificationCreateResponse,
|
|
1796
|
-
type CreateAppNotificationCreateParams as CreateAppNotificationCreateParams,
|
|
1797
|
-
};
|
|
1798
|
-
|
|
1799
1805
|
export {
|
|
1800
1806
|
CustomApps as CustomApps,
|
|
1801
1807
|
type CustomAppListResponse as CustomAppListResponse,
|
|
@@ -1843,6 +1849,12 @@ export declare namespace RipplingSDK {
|
|
|
1843
1849
|
type DraftHireCreateParams as DraftHireCreateParams,
|
|
1844
1850
|
};
|
|
1845
1851
|
|
|
1852
|
+
export {
|
|
1853
|
+
EarningTypes as EarningTypes,
|
|
1854
|
+
type EarningTypeListResponse as EarningTypeListResponse,
|
|
1855
|
+
type EarningTypeListResponsesPageCursorURL as EarningTypeListResponsesPageCursorURL,
|
|
1856
|
+
};
|
|
1857
|
+
|
|
1846
1858
|
export {
|
|
1847
1859
|
Entitlements as Entitlements,
|
|
1848
1860
|
type EntitlementListResponse as EntitlementListResponse,
|
|
@@ -1905,12 +1917,22 @@ export declare namespace RipplingSDK {
|
|
|
1905
1917
|
type MetadataListResponsesPageCursorURL as MetadataListResponsesPageCursorURL,
|
|
1906
1918
|
};
|
|
1907
1919
|
|
|
1920
|
+
export {
|
|
1921
|
+
PayrollRuns as PayrollRuns,
|
|
1922
|
+
type PayrollRunListResponse as PayrollRunListResponse,
|
|
1923
|
+
type PayrollRunRetrieveResponse as PayrollRunRetrieveResponse,
|
|
1924
|
+
type PayrollRunListResponsesPageCursorURL as PayrollRunListResponsesPageCursorURL,
|
|
1925
|
+
type PayrollRunListParams as PayrollRunListParams,
|
|
1926
|
+
};
|
|
1927
|
+
|
|
1908
1928
|
export {
|
|
1909
1929
|
PlatformCapabilities as PlatformCapabilities,
|
|
1910
1930
|
type PlatformCapabilityListResponse as PlatformCapabilityListResponse,
|
|
1911
1931
|
type PlatformCapabilityListResponsesPageCursorURL as PlatformCapabilityListResponsesPageCursorURL,
|
|
1912
1932
|
};
|
|
1913
1933
|
|
|
1934
|
+
export { Reports as Reports, type ReportRetrieveResponse as ReportRetrieveResponse };
|
|
1935
|
+
|
|
1914
1936
|
export {
|
|
1915
1937
|
ReportRuns as ReportRuns,
|
|
1916
1938
|
type ReportRunCreateResponse as ReportRunCreateResponse,
|
|
@@ -1918,12 +1940,6 @@ export declare namespace RipplingSDK {
|
|
|
1918
1940
|
type ReportRunCreateParams as ReportRunCreateParams,
|
|
1919
1941
|
};
|
|
1920
1942
|
|
|
1921
|
-
export {
|
|
1922
|
-
RunQuery as RunQuery,
|
|
1923
|
-
type RunQueryCreateResponse as RunQueryCreateResponse,
|
|
1924
|
-
type RunQueryCreateParams as RunQueryCreateParams,
|
|
1925
|
-
};
|
|
1926
|
-
|
|
1927
1943
|
export {
|
|
1928
1944
|
Schedules as Schedules,
|
|
1929
1945
|
type ScheduleListResponse as ScheduleListResponse,
|
|
@@ -1937,18 +1953,6 @@ export declare namespace RipplingSDK {
|
|
|
1937
1953
|
type ScheduleUpdateParams as ScheduleUpdateParams,
|
|
1938
1954
|
};
|
|
1939
1955
|
|
|
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
|
-
|
|
1952
1956
|
export {
|
|
1953
1957
|
Shiftassignments as Shiftassignments,
|
|
1954
1958
|
type ShiftassignmentListResponse as ShiftassignmentListResponse,
|
|
@@ -1987,6 +1991,12 @@ export declare namespace RipplingSDK {
|
|
|
1987
1991
|
type UnassignedshiftUpdateParams as UnassignedshiftUpdateParams,
|
|
1988
1992
|
};
|
|
1989
1993
|
|
|
1994
|
+
export {
|
|
1995
|
+
WorkflowActionExecutions as WorkflowActionExecutions,
|
|
1996
|
+
type WorkflowActionExecutionCreateResponse as WorkflowActionExecutionCreateResponse,
|
|
1997
|
+
type WorkflowActionExecutionCreateParams as WorkflowActionExecutionCreateParams,
|
|
1998
|
+
};
|
|
1999
|
+
|
|
1990
2000
|
export {
|
|
1991
2001
|
ShiftAssignments as ShiftAssignments,
|
|
1992
2002
|
type ShiftAssignmentUpdateCustomfieldsResponse as ShiftAssignmentUpdateCustomfieldsResponse,
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
*/
|
|
10
10
|
export const readEnv = (env: string): string | undefined => {
|
|
11
11
|
if (typeof (globalThis as any).process !== 'undefined') {
|
|
12
|
-
return (globalThis as any).process.env?.[env]?.trim()
|
|
12
|
+
return (globalThis as any).process.env?.[env]?.trim() || undefined;
|
|
13
13
|
}
|
|
14
14
|
if (typeof (globalThis as any).Deno !== 'undefined') {
|
|
15
|
-
return (globalThis as any).Deno.env?.get?.(env)?.trim();
|
|
15
|
+
return (globalThis as any).Deno.env?.get?.(env)?.trim() || undefined;
|
|
16
16
|
}
|
|
17
17
|
return undefined;
|
|
18
18
|
};
|
|
@@ -14,7 +14,7 @@ import { path } from '../internal/utils/path';
|
|
|
14
14
|
*/
|
|
15
15
|
export class BusinessPartnerGroups extends APIResource {
|
|
16
16
|
/**
|
|
17
|
-
* A
|
|
17
|
+
* A list of business partner groups.
|
|
18
18
|
*
|
|
19
19
|
* - Requires: `API Tier 1`
|
|
20
20
|
* - Expandable fields: `default_business_partner`
|
|
@@ -15,7 +15,7 @@ import { path } from '../internal/utils/path';
|
|
|
15
15
|
*/
|
|
16
16
|
export class BusinessPartners extends APIResource {
|
|
17
17
|
/**
|
|
18
|
-
* A
|
|
18
|
+
* A list of business partners.
|
|
19
19
|
*
|
|
20
20
|
* - Requires: `API Tier 1`
|
|
21
21
|
* - Filterable fields: `worker_id`, `business_partner_group_id`
|
|
@@ -10,7 +10,7 @@ import { RequestOptions } from '../internal/request-options';
|
|
|
10
10
|
*/
|
|
11
11
|
export class CandidateApplications extends APIResource {
|
|
12
12
|
/**
|
|
13
|
-
* A
|
|
13
|
+
* A list of candidate applications.
|
|
14
14
|
*
|
|
15
15
|
* - Requires: `API Tier 2`
|
|
16
16
|
* - Expandable fields: `job`
|
|
@@ -9,7 +9,7 @@ import { RequestOptions } from '../internal/request-options';
|
|
|
9
9
|
*/
|
|
10
10
|
export class Candidates extends APIResource {
|
|
11
11
|
/**
|
|
12
|
-
* A
|
|
12
|
+
* A list of candidates.
|
|
13
13
|
*
|
|
14
14
|
* - Requires: `API Tier 2`
|
|
15
15
|
* - Sortable fields: `id`, `created_at`, `updated_at`
|
|
@@ -11,7 +11,7 @@ import { RequestOptions } from '../internal/request-options';
|
|
|
11
11
|
*/
|
|
12
12
|
export class Companies extends APIResource {
|
|
13
13
|
/**
|
|
14
|
-
* A
|
|
14
|
+
* A list of companies.
|
|
15
15
|
*
|
|
16
16
|
* - Requires: `API Tier 1`
|
|
17
17
|
* - Expandable fields: `parent_legal_entity`, `legal_entities`
|
|
@@ -13,7 +13,7 @@ import { path } from '../internal/utils/path';
|
|
|
13
13
|
*/
|
|
14
14
|
export class CompensationBandsDetails extends APIResource {
|
|
15
15
|
/**
|
|
16
|
-
* A
|
|
16
|
+
* A list of compensation bands details.
|
|
17
17
|
*
|
|
18
18
|
* - Requires: `API Tier 2`
|
|
19
19
|
* - Filterable fields: `created_at`, `updated_at`, `internal_job_code`,
|
|
@@ -10,9 +10,9 @@ import { path } from '../internal/utils/path';
|
|
|
10
10
|
|
|
11
11
|
export class CustomApps extends APIResource {
|
|
12
12
|
/**
|
|
13
|
-
* A
|
|
13
|
+
* A list of CustomApp.
|
|
14
14
|
*
|
|
15
|
-
* - Requires: `
|
|
15
|
+
* - Requires: `Custom Apps Platform API`
|
|
16
16
|
*/
|
|
17
17
|
list(options?: RequestOptions): PagePromise<CustomAppListResponsesPageCursorURL, CustomAppListResponse> {
|
|
18
18
|
return this._client.getAPIList('/custom-apps/', PageCursorURL<CustomAppListResponse>, options);
|
|
@@ -33,7 +33,7 @@ export class CustomApps extends APIResource {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* Update a specific CustomApp.
|
|
37
37
|
*/
|
|
38
38
|
update(
|
|
39
39
|
id: string,
|
|
@@ -9,7 +9,7 @@ import { RequestOptions } from '../internal/request-options';
|
|
|
9
9
|
*/
|
|
10
10
|
export class CustomFields extends APIResource {
|
|
11
11
|
/**
|
|
12
|
-
* A
|
|
12
|
+
* A list of custom fields.
|
|
13
13
|
*
|
|
14
14
|
* - Requires: `API Tier 1`
|
|
15
15
|
* - Sortable fields: `id`, `created_at`, `updated_at`
|
|
@@ -40,7 +40,7 @@ export class CustomObjects extends APIResource {
|
|
|
40
40
|
records: RecordsAPI.Records = new RecordsAPI.Records(this._client);
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
|
-
* A
|
|
43
|
+
* A list of custom objects.
|
|
44
44
|
*
|
|
45
45
|
* - Requires: `API Tier 1`
|
|
46
46
|
*/
|
|
@@ -49,7 +49,7 @@ export class CustomObjects extends APIResource {
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
/**
|
|
52
|
-
* Create a new custom object
|
|
52
|
+
* Create a new custom object.
|
|
53
53
|
*/
|
|
54
54
|
create(
|
|
55
55
|
body: CustomObjectCreateParams | null | undefined = {},
|
|
@@ -59,14 +59,14 @@ export class CustomObjects extends APIResource {
|
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
/**
|
|
62
|
-
* Retrieve a specific custom object
|
|
62
|
+
* Retrieve a specific custom object.
|
|
63
63
|
*/
|
|
64
64
|
retrieve(customObjectAPIName: string, options?: RequestOptions): APIPromise<CustomObject> {
|
|
65
65
|
return this._client.get(path`/custom-objects/${customObjectAPIName}/`, options);
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
|
-
*
|
|
69
|
+
* Update a specific custom object.
|
|
70
70
|
*/
|
|
71
71
|
update(
|
|
72
72
|
customObjectAPIName: string,
|
|
@@ -77,7 +77,7 @@ export class CustomObjects extends APIResource {
|
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
/**
|
|
80
|
-
* Delete a custom object
|
|
80
|
+
* Delete a custom object.
|
|
81
81
|
*/
|
|
82
82
|
delete(customObjectAPIName: string, options?: RequestOptions): APIPromise<void> {
|
|
83
83
|
return this._client.delete(path`/custom-objects/${customObjectAPIName}/`, {
|
|
@@ -152,22 +152,46 @@ export interface CustomObject {
|
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
export interface CustomObjectCreateParams {
|
|
155
|
+
/**
|
|
156
|
+
* The category that this custom object belongs to.
|
|
157
|
+
*/
|
|
155
158
|
category?: string;
|
|
156
159
|
|
|
160
|
+
/**
|
|
161
|
+
* A description of the custom object.
|
|
162
|
+
*/
|
|
157
163
|
description?: string;
|
|
158
164
|
|
|
165
|
+
/**
|
|
166
|
+
* The name of the custom object.
|
|
167
|
+
*/
|
|
159
168
|
name?: string;
|
|
160
169
|
}
|
|
161
170
|
|
|
162
171
|
export interface CustomObjectUpdateParams {
|
|
172
|
+
/**
|
|
173
|
+
* The category that this custom object belongs to.
|
|
174
|
+
*/
|
|
163
175
|
category?: string;
|
|
164
176
|
|
|
177
|
+
/**
|
|
178
|
+
* A description of the custom object.
|
|
179
|
+
*/
|
|
165
180
|
description?: string;
|
|
166
181
|
|
|
182
|
+
/**
|
|
183
|
+
* The name of the custom object.
|
|
184
|
+
*/
|
|
167
185
|
name?: string;
|
|
168
186
|
|
|
187
|
+
/**
|
|
188
|
+
* The role that owns this custom object.
|
|
189
|
+
*/
|
|
169
190
|
owner_role?: string;
|
|
170
191
|
|
|
192
|
+
/**
|
|
193
|
+
* The plural label for the custom object.
|
|
194
|
+
*/
|
|
171
195
|
plural_label?: string;
|
|
172
196
|
}
|
|
173
197
|
|
|
@@ -12,7 +12,7 @@ import { path } from '../../internal/utils/path';
|
|
|
12
12
|
*/
|
|
13
13
|
export class Fields extends APIResource {
|
|
14
14
|
/**
|
|
15
|
-
* A
|
|
15
|
+
* A list of custom object fields.
|
|
16
16
|
*
|
|
17
17
|
* - Requires: `API Tier 1`
|
|
18
18
|
*/
|
|
@@ -28,7 +28,7 @@ export class Fields extends APIResource {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
|
-
* Create a new custom object field
|
|
31
|
+
* Create a new custom object field.
|
|
32
32
|
*/
|
|
33
33
|
create(
|
|
34
34
|
customObjectAPIName: string,
|
|
@@ -39,7 +39,7 @@ export class Fields extends APIResource {
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
|
-
* Retrieve a specific custom object field
|
|
42
|
+
* Retrieve a specific custom object field.
|
|
43
43
|
*/
|
|
44
44
|
retrieve(
|
|
45
45
|
customObjectAPIName: string,
|
|
@@ -50,7 +50,7 @@ export class Fields extends APIResource {
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
|
-
*
|
|
53
|
+
* Update a specific custom object field.
|
|
54
54
|
*/
|
|
55
55
|
update(
|
|
56
56
|
customObjectAPIName: string,
|
|
@@ -65,7 +65,7 @@ export class Fields extends APIResource {
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
/**
|
|
68
|
-
* Delete a custom object field
|
|
68
|
+
* Delete a custom object field.
|
|
69
69
|
*/
|
|
70
70
|
delete(customObjectAPIName: string, fieldAPIName: string, options?: RequestOptions): APIPromise<void> {
|
|
71
71
|
return this._client.delete(path`/custom-objects/${customObjectAPIName}/fields/${fieldAPIName}/`, {
|
|
@@ -145,50 +145,116 @@ export interface CustomObjectField {
|
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
export interface FieldCreateParams {
|
|
148
|
+
/**
|
|
149
|
+
* The data type configuration for the field.
|
|
150
|
+
*/
|
|
148
151
|
data_type?: unknown;
|
|
149
152
|
|
|
153
|
+
/**
|
|
154
|
+
* Configuration for derived aggregated fields.
|
|
155
|
+
*/
|
|
150
156
|
derived_aggregated_field?: unknown;
|
|
151
157
|
|
|
158
|
+
/**
|
|
159
|
+
* The formula for derived fields.
|
|
160
|
+
*/
|
|
152
161
|
derived_field_formula?: string;
|
|
153
162
|
|
|
163
|
+
/**
|
|
164
|
+
* A description of the field.
|
|
165
|
+
*/
|
|
154
166
|
description?: string;
|
|
155
167
|
|
|
168
|
+
/**
|
|
169
|
+
* Whether to track history for this field.
|
|
170
|
+
*/
|
|
156
171
|
enable_history?: boolean;
|
|
157
172
|
|
|
173
|
+
/**
|
|
174
|
+
* Metadata for formula attributes.
|
|
175
|
+
*/
|
|
158
176
|
formula_attr_metas?: unknown;
|
|
159
177
|
|
|
178
|
+
/**
|
|
179
|
+
* Whether field values must be unique.
|
|
180
|
+
*/
|
|
160
181
|
is_unique?: boolean;
|
|
161
182
|
|
|
183
|
+
/**
|
|
184
|
+
* The name of the field.
|
|
185
|
+
*/
|
|
162
186
|
name?: string;
|
|
163
187
|
|
|
188
|
+
/**
|
|
189
|
+
* Whether this field is required.
|
|
190
|
+
*/
|
|
164
191
|
required?: boolean;
|
|
165
192
|
|
|
193
|
+
/**
|
|
194
|
+
* The RQL definition for computed fields.
|
|
195
|
+
*/
|
|
166
196
|
rql_definition?: unknown;
|
|
167
197
|
|
|
198
|
+
/**
|
|
199
|
+
* The section configuration for the field.
|
|
200
|
+
*/
|
|
168
201
|
section?: unknown;
|
|
169
202
|
}
|
|
170
203
|
|
|
171
204
|
export interface FieldUpdateParams {
|
|
205
|
+
/**
|
|
206
|
+
* The data type configuration for the field.
|
|
207
|
+
*/
|
|
172
208
|
data_type?: unknown;
|
|
173
209
|
|
|
210
|
+
/**
|
|
211
|
+
* The formula for derived fields.
|
|
212
|
+
*/
|
|
174
213
|
derived_field_formula?: string;
|
|
175
214
|
|
|
215
|
+
/**
|
|
216
|
+
* A description of the field.
|
|
217
|
+
*/
|
|
176
218
|
description?: string;
|
|
177
219
|
|
|
220
|
+
/**
|
|
221
|
+
* Whether to track history for this field.
|
|
222
|
+
*/
|
|
178
223
|
enable_history?: boolean;
|
|
179
224
|
|
|
225
|
+
/**
|
|
226
|
+
* Metadata for formula attributes.
|
|
227
|
+
*/
|
|
180
228
|
formula_attr_metas?: unknown;
|
|
181
229
|
|
|
230
|
+
/**
|
|
231
|
+
* Whether field values must be unique.
|
|
232
|
+
*/
|
|
182
233
|
is_unique?: boolean;
|
|
183
234
|
|
|
235
|
+
/**
|
|
236
|
+
* The name of the field.
|
|
237
|
+
*/
|
|
184
238
|
name?: string;
|
|
185
239
|
|
|
240
|
+
/**
|
|
241
|
+
* Configuration for name field display.
|
|
242
|
+
*/
|
|
186
243
|
name_field_details?: unknown;
|
|
187
244
|
|
|
245
|
+
/**
|
|
246
|
+
* Whether this field is required.
|
|
247
|
+
*/
|
|
188
248
|
required?: boolean;
|
|
189
249
|
|
|
250
|
+
/**
|
|
251
|
+
* The RQL definition for computed fields.
|
|
252
|
+
*/
|
|
190
253
|
rql_definition?: unknown;
|
|
191
254
|
|
|
255
|
+
/**
|
|
256
|
+
* The section configuration for the field.
|
|
257
|
+
*/
|
|
192
258
|
section?: unknown;
|
|
193
259
|
}
|
|
194
260
|
|