@rippling/rippling-sdk 0.2.0-alpha.21 → 0.2.0-alpha.22
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 +41 -37
- package/client.d.mts.map +1 -1
- package/client.d.ts +41 -37
- package/client.d.ts.map +1 -1
- package/client.js +18 -18
- package/client.js.map +1 -1
- package/client.mjs +18 -18
- package/client.mjs.map +1 -1
- package/internal/utils/values.js +3 -3
- package/internal/utils/values.js.map +1 -1
- package/internal/utils/values.mjs +3 -3
- package/internal/utils/values.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/business-partner-groups.d.mts +13 -13
- package/resources/business-partner-groups.d.mts.map +1 -1
- package/resources/business-partner-groups.d.ts +13 -13
- package/resources/business-partner-groups.d.ts.map +1 -1
- package/resources/business-partner-groups.js +12 -12
- package/resources/business-partner-groups.js.map +1 -1
- package/resources/business-partner-groups.mjs +12 -12
- package/resources/business-partner-groups.mjs.map +1 -1
- package/resources/business-partners.d.mts +14 -14
- package/resources/business-partners.d.mts.map +1 -1
- package/resources/business-partners.d.ts +14 -14
- package/resources/business-partners.d.ts.map +1 -1
- package/resources/business-partners.js +12 -12
- package/resources/business-partners.js.map +1 -1
- package/resources/business-partners.mjs +12 -12
- package/resources/business-partners.mjs.map +1 -1
- package/resources/compensations.d.mts +8 -8
- package/resources/compensations.d.mts.map +1 -1
- package/resources/compensations.d.ts +8 -8
- package/resources/compensations.d.ts.map +1 -1
- package/resources/compensations.js +6 -6
- package/resources/compensations.js.map +1 -1
- package/resources/compensations.mjs +6 -6
- package/resources/compensations.mjs.map +1 -1
- package/resources/custom-objects/custom-objects.d.mts +7 -7
- package/resources/custom-objects/custom-objects.d.mts.map +1 -1
- package/resources/custom-objects/custom-objects.d.ts +7 -7
- package/resources/custom-objects/custom-objects.d.ts.map +1 -1
- package/resources/custom-objects/custom-objects.js +8 -8
- package/resources/custom-objects/custom-objects.js.map +1 -1
- package/resources/custom-objects/custom-objects.mjs +8 -8
- package/resources/custom-objects/custom-objects.mjs.map +1 -1
- package/resources/custom-objects/fields.d.mts +6 -6
- package/resources/custom-objects/fields.d.mts.map +1 -1
- package/resources/custom-objects/fields.d.ts +6 -6
- package/resources/custom-objects/fields.d.ts.map +1 -1
- package/resources/custom-objects/fields.js +8 -8
- package/resources/custom-objects/fields.js.map +1 -1
- package/resources/custom-objects/fields.mjs +8 -8
- package/resources/custom-objects/fields.mjs.map +1 -1
- package/resources/custom-objects/index.d.mts +1 -1
- package/resources/custom-objects/index.d.mts.map +1 -1
- package/resources/custom-objects/index.d.ts +1 -1
- package/resources/custom-objects/index.d.ts.map +1 -1
- package/resources/custom-objects/records.d.mts +32 -32
- package/resources/custom-objects/records.d.mts.map +1 -1
- package/resources/custom-objects/records.d.ts +32 -32
- package/resources/custom-objects/records.d.ts.map +1 -1
- package/resources/custom-objects/records.js +27 -27
- package/resources/custom-objects/records.js.map +1 -1
- package/resources/custom-objects/records.mjs +27 -27
- package/resources/custom-objects/records.mjs.map +1 -1
- package/resources/departments.d.mts +8 -8
- package/resources/departments.d.mts.map +1 -1
- package/resources/departments.d.ts +8 -8
- package/resources/departments.d.ts.map +1 -1
- package/resources/departments.js +6 -6
- package/resources/departments.js.map +1 -1
- package/resources/departments.mjs +6 -6
- package/resources/departments.mjs.map +1 -1
- package/resources/draft-hires.d.mts +427 -0
- package/resources/draft-hires.d.mts.map +1 -0
- package/resources/draft-hires.d.ts +427 -0
- package/resources/draft-hires.d.ts.map +1 -0
- package/resources/draft-hires.js +15 -0
- package/resources/draft-hires.js.map +1 -0
- package/resources/draft-hires.mjs +11 -0
- package/resources/draft-hires.mjs.map +1 -0
- package/resources/employment-types.d.mts +4 -4
- package/resources/employment-types.d.mts.map +1 -1
- package/resources/employment-types.d.ts +4 -4
- package/resources/employment-types.d.ts.map +1 -1
- package/resources/employment-types.js +6 -6
- package/resources/employment-types.js.map +1 -1
- package/resources/employment-types.mjs +6 -6
- package/resources/employment-types.mjs.map +1 -1
- package/resources/functions/deployments.d.mts +7 -7
- package/resources/functions/deployments.d.mts.map +1 -1
- package/resources/functions/deployments.d.ts +7 -7
- package/resources/functions/deployments.d.ts.map +1 -1
- package/resources/functions/deployments.js +9 -9
- package/resources/functions/deployments.js.map +1 -1
- package/resources/functions/deployments.mjs +9 -9
- package/resources/functions/deployments.mjs.map +1 -1
- package/resources/functions/executions.d.mts +15 -15
- package/resources/functions/executions.d.mts.map +1 -1
- package/resources/functions/executions.d.ts +15 -15
- package/resources/functions/executions.d.ts.map +1 -1
- package/resources/functions/executions.js +10 -10
- package/resources/functions/executions.js.map +1 -1
- package/resources/functions/executions.mjs +10 -10
- package/resources/functions/executions.mjs.map +1 -1
- package/resources/functions/functions.d.mts +12 -12
- package/resources/functions/functions.d.mts.map +1 -1
- package/resources/functions/functions.d.ts +12 -12
- package/resources/functions/functions.d.ts.map +1 -1
- package/resources/functions/functions.js +9 -9
- package/resources/functions/functions.js.map +1 -1
- package/resources/functions/functions.mjs +9 -9
- package/resources/functions/functions.mjs.map +1 -1
- package/resources/functions/index.d.mts +2 -2
- package/resources/functions/index.d.mts.map +1 -1
- package/resources/functions/index.d.ts +2 -2
- package/resources/functions/index.d.ts.map +1 -1
- package/resources/headcount-positions.d.mts +74 -44
- package/resources/headcount-positions.d.mts.map +1 -1
- package/resources/headcount-positions.d.ts +74 -44
- package/resources/headcount-positions.d.ts.map +1 -1
- package/resources/headcount-positions.js +7 -7
- package/resources/headcount-positions.js.map +1 -1
- package/resources/headcount-positions.mjs +7 -7
- package/resources/headcount-positions.mjs.map +1 -1
- package/resources/headcount-priorities.d.mts +11 -11
- package/resources/headcount-priorities.d.mts.map +1 -1
- package/resources/headcount-priorities.d.ts +11 -11
- package/resources/headcount-priorities.d.ts.map +1 -1
- package/resources/headcount-priorities.js +7 -7
- package/resources/headcount-priorities.js.map +1 -1
- package/resources/headcount-priorities.mjs +7 -7
- package/resources/headcount-priorities.mjs.map +1 -1
- package/resources/index.d.mts +27 -25
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +27 -25
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/job-assignments.d.mts +8 -8
- package/resources/job-assignments.d.mts.map +1 -1
- package/resources/job-assignments.d.ts +8 -8
- package/resources/job-assignments.d.ts.map +1 -1
- package/resources/job-assignments.js +6 -6
- package/resources/job-assignments.js.map +1 -1
- package/resources/job-assignments.mjs +6 -6
- package/resources/job-assignments.mjs.map +1 -1
- package/resources/job-codes.d.mts +16 -16
- package/resources/job-codes.d.mts.map +1 -1
- package/resources/job-codes.d.ts +16 -16
- package/resources/job-codes.d.ts.map +1 -1
- package/resources/job-codes.js +12 -12
- package/resources/job-codes.js.map +1 -1
- package/resources/job-codes.mjs +12 -12
- package/resources/job-codes.mjs.map +1 -1
- package/resources/job-dimensions.d.mts +13 -13
- package/resources/job-dimensions.d.mts.map +1 -1
- package/resources/job-dimensions.d.ts +13 -13
- package/resources/job-dimensions.d.ts.map +1 -1
- package/resources/job-dimensions.js +10 -10
- package/resources/job-dimensions.js.map +1 -1
- package/resources/job-dimensions.mjs +10 -10
- package/resources/job-dimensions.mjs.map +1 -1
- package/resources/job-functions.d.mts +11 -11
- package/resources/job-functions.d.mts.map +1 -1
- package/resources/job-functions.d.ts +11 -11
- package/resources/job-functions.d.ts.map +1 -1
- package/resources/job-functions.js +7 -7
- package/resources/job-functions.js.map +1 -1
- package/resources/job-functions.mjs +7 -7
- package/resources/job-functions.mjs.map +1 -1
- package/resources/job-pay-rate-exceptions.d.mts +8 -8
- package/resources/job-pay-rate-exceptions.d.mts.map +1 -1
- package/resources/job-pay-rate-exceptions.d.ts +8 -8
- package/resources/job-pay-rate-exceptions.d.ts.map +1 -1
- package/resources/job-pay-rate-exceptions.js +6 -6
- package/resources/job-pay-rate-exceptions.js.map +1 -1
- package/resources/job-pay-rate-exceptions.mjs +6 -6
- package/resources/job-pay-rate-exceptions.mjs.map +1 -1
- package/resources/kiosk-badges.d.mts +22 -22
- package/resources/kiosk-badges.d.mts.map +1 -1
- package/resources/kiosk-badges.d.ts +22 -22
- package/resources/kiosk-badges.d.ts.map +1 -1
- package/resources/kiosk-badges.js +14 -14
- package/resources/kiosk-badges.js.map +1 -1
- package/resources/kiosk-badges.mjs +14 -14
- package/resources/kiosk-badges.mjs.map +1 -1
- package/resources/leave-accruals.d.mts +205 -0
- package/resources/leave-accruals.d.mts.map +1 -0
- package/resources/leave-accruals.d.ts +205 -0
- package/resources/leave-accruals.d.ts.map +1 -0
- package/resources/leave-accruals.js +22 -0
- package/resources/leave-accruals.js.map +1 -0
- package/resources/leave-accruals.mjs +18 -0
- package/resources/leave-accruals.mjs.map +1 -0
- package/resources/leave-balances.d.mts +8 -8
- package/resources/leave-balances.d.mts.map +1 -1
- package/resources/leave-balances.d.ts +8 -8
- package/resources/leave-balances.d.ts.map +1 -1
- package/resources/leave-balances.js +6 -6
- package/resources/leave-balances.js.map +1 -1
- package/resources/leave-balances.mjs +6 -6
- package/resources/leave-balances.mjs.map +1 -1
- package/resources/leave-requests.d.mts +31 -31
- package/resources/leave-requests.d.mts.map +1 -1
- package/resources/leave-requests.d.ts +31 -31
- package/resources/leave-requests.d.ts.map +1 -1
- package/resources/leave-requests.js +15 -15
- package/resources/leave-requests.js.map +1 -1
- package/resources/leave-requests.mjs +15 -15
- package/resources/leave-requests.mjs.map +1 -1
- package/resources/leave-types.d.mts +4 -4
- package/resources/leave-types.d.mts.map +1 -1
- package/resources/leave-types.d.ts +4 -4
- package/resources/leave-types.d.ts.map +1 -1
- package/resources/leave-types.js +6 -6
- package/resources/leave-types.js.map +1 -1
- package/resources/leave-types.mjs +6 -6
- package/resources/leave-types.mjs.map +1 -1
- package/resources/legal-entities.d.mts +9 -9
- package/resources/legal-entities.d.mts.map +1 -1
- package/resources/legal-entities.d.ts +9 -9
- package/resources/legal-entities.d.ts.map +1 -1
- package/resources/legal-entities.js +6 -6
- package/resources/legal-entities.js.map +1 -1
- package/resources/legal-entities.mjs +6 -6
- package/resources/legal-entities.mjs.map +1 -1
- package/resources/levels.d.mts +8 -8
- package/resources/levels.d.mts.map +1 -1
- package/resources/levels.d.ts +8 -8
- package/resources/levels.d.ts.map +1 -1
- package/resources/levels.js +6 -6
- package/resources/levels.js.map +1 -1
- package/resources/levels.mjs +6 -6
- package/resources/levels.mjs.map +1 -1
- package/resources/location-factors.d.mts +17 -17
- package/resources/location-factors.d.mts.map +1 -1
- package/resources/location-factors.d.ts +17 -17
- package/resources/location-factors.d.ts.map +1 -1
- package/resources/location-factors.js +7 -7
- package/resources/location-factors.js.map +1 -1
- package/resources/location-factors.mjs +7 -7
- package/resources/location-factors.mjs.map +1 -1
- package/resources/object-categories.d.mts +6 -6
- package/resources/object-categories.d.mts.map +1 -1
- package/resources/object-categories.d.ts +6 -6
- package/resources/object-categories.d.ts.map +1 -1
- package/resources/object-categories.js +8 -8
- package/resources/object-categories.js.map +1 -1
- package/resources/object-categories.mjs +8 -8
- package/resources/object-categories.mjs.map +1 -1
- package/resources/schedules.d.mts +13 -13
- package/resources/schedules.d.mts.map +1 -1
- package/resources/schedules.d.ts +13 -13
- package/resources/schedules.d.ts.map +1 -1
- package/resources/schedules.js +6 -6
- package/resources/schedules.js.map +1 -1
- package/resources/schedules.mjs +6 -6
- package/resources/schedules.mjs.map +1 -1
- package/resources/shared.d.mts +1 -1
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +1 -1
- package/resources/shared.d.ts.map +1 -1
- package/resources/shift-inputs.d.mts +22 -22
- package/resources/shift-inputs.d.mts.map +1 -1
- package/resources/shift-inputs.d.ts +22 -22
- package/resources/shift-inputs.d.ts.map +1 -1
- package/resources/shift-inputs.js +14 -14
- package/resources/shift-inputs.js.map +1 -1
- package/resources/shift-inputs.mjs +14 -14
- package/resources/shift-inputs.mjs.map +1 -1
- package/resources/shiftassignments.d.mts +21 -21
- package/resources/shiftassignments.d.mts.map +1 -1
- package/resources/shiftassignments.d.ts +21 -21
- package/resources/shiftassignments.d.ts.map +1 -1
- package/resources/shiftassignments.js +6 -6
- package/resources/shiftassignments.js.map +1 -1
- package/resources/shiftassignments.mjs +6 -6
- package/resources/shiftassignments.mjs.map +1 -1
- package/resources/supergroups/exclusion-members.d.mts +8 -8
- package/resources/supergroups/exclusion-members.d.mts.map +1 -1
- package/resources/supergroups/exclusion-members.d.ts +8 -8
- package/resources/supergroups/exclusion-members.d.ts.map +1 -1
- package/resources/supergroups/exclusion-members.js +6 -6
- package/resources/supergroups/exclusion-members.js.map +1 -1
- package/resources/supergroups/exclusion-members.mjs +6 -6
- package/resources/supergroups/exclusion-members.mjs.map +1 -1
- package/resources/supergroups/inclusion-members.d.mts +8 -8
- package/resources/supergroups/inclusion-members.d.mts.map +1 -1
- package/resources/supergroups/inclusion-members.d.ts +8 -8
- package/resources/supergroups/inclusion-members.d.ts.map +1 -1
- package/resources/supergroups/inclusion-members.js +6 -6
- package/resources/supergroups/inclusion-members.js.map +1 -1
- package/resources/supergroups/inclusion-members.mjs +6 -6
- package/resources/supergroups/inclusion-members.mjs.map +1 -1
- package/resources/supergroups/index.d.mts +2 -2
- package/resources/supergroups/index.d.mts.map +1 -1
- package/resources/supergroups/index.d.ts +2 -2
- package/resources/supergroups/index.d.ts.map +1 -1
- package/resources/supergroups/supergroups.d.mts +6 -6
- package/resources/supergroups/supergroups.d.mts.map +1 -1
- package/resources/supergroups/supergroups.d.ts +6 -6
- package/resources/supergroups/supergroups.d.ts.map +1 -1
- package/resources/supergroups/supergroups.js +6 -6
- package/resources/supergroups/supergroups.js.map +1 -1
- package/resources/supergroups/supergroups.mjs +6 -6
- package/resources/supergroups/supergroups.mjs.map +1 -1
- package/resources/teams.d.mts +8 -8
- package/resources/teams.d.mts.map +1 -1
- package/resources/teams.d.ts +8 -8
- package/resources/teams.d.ts.map +1 -1
- package/resources/teams.js +6 -6
- package/resources/teams.js.map +1 -1
- package/resources/teams.mjs +6 -6
- package/resources/teams.mjs.map +1 -1
- package/resources/time-cards.d.mts +8 -8
- package/resources/time-cards.d.mts.map +1 -1
- package/resources/time-cards.d.ts +8 -8
- package/resources/time-cards.d.ts.map +1 -1
- package/resources/time-cards.js +6 -6
- package/resources/time-cards.js.map +1 -1
- package/resources/time-cards.mjs +6 -6
- package/resources/time-cards.mjs.map +1 -1
- package/resources/time-entries.d.mts +58 -58
- package/resources/time-entries.d.mts.map +1 -1
- package/resources/time-entries.d.ts +58 -58
- package/resources/time-entries.d.ts.map +1 -1
- package/resources/time-entries.js +14 -14
- package/resources/time-entries.js.map +1 -1
- package/resources/time-entries.mjs +14 -14
- package/resources/time-entries.mjs.map +1 -1
- package/resources/tracks.d.mts +4 -4
- package/resources/tracks.d.mts.map +1 -1
- package/resources/tracks.d.ts +4 -4
- package/resources/tracks.d.ts.map +1 -1
- package/resources/tracks.js +6 -6
- package/resources/tracks.js.map +1 -1
- package/resources/tracks.mjs +6 -6
- package/resources/tracks.mjs.map +1 -1
- package/resources/users.d.mts +4 -4
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +4 -4
- package/resources/users.d.ts.map +1 -1
- package/resources/users.js +6 -6
- package/resources/users.js.map +1 -1
- package/resources/users.mjs +6 -6
- package/resources/users.mjs.map +1 -1
- package/resources/work-locations.d.mts +4 -4
- package/resources/work-locations.d.mts.map +1 -1
- package/resources/work-locations.d.ts +4 -4
- package/resources/work-locations.d.ts.map +1 -1
- package/resources/work-locations.js +6 -6
- package/resources/work-locations.js.map +1 -1
- package/resources/work-locations.mjs +6 -6
- package/resources/work-locations.mjs.map +1 -1
- package/resources/workers.d.mts +10 -10
- package/resources/workers.d.mts.map +1 -1
- package/resources/workers.d.ts +10 -10
- package/resources/workers.d.ts.map +1 -1
- package/resources/workers.js +6 -6
- package/resources/workers.js.map +1 -1
- package/resources/workers.mjs +6 -6
- package/resources/workers.mjs.map +1 -1
- package/src/client.ts +108 -90
- package/src/internal/utils/values.ts +3 -3
- package/src/resources/business-partner-groups.ts +24 -24
- package/src/resources/business-partners.ts +27 -27
- package/src/resources/compensations.ts +16 -16
- package/src/resources/custom-objects/custom-objects.ts +12 -12
- package/src/resources/custom-objects/fields.ts +16 -16
- package/src/resources/custom-objects/index.ts +3 -3
- package/src/resources/custom-objects/records.ts +70 -70
- package/src/resources/departments.ts +16 -16
- package/src/resources/draft-hires.ts +519 -0
- package/src/resources/employment-types.ts +7 -7
- package/src/resources/functions/deployments.ts +10 -10
- package/src/resources/functions/executions.ts +28 -28
- package/src/resources/functions/functions.ts +20 -20
- package/src/resources/functions/index.ts +3 -3
- package/src/resources/headcount-positions.ts +103 -53
- package/src/resources/headcount-priorities.ts +14 -14
- package/src/resources/index.ts +40 -32
- package/src/resources/job-assignments.ts +16 -16
- package/src/resources/job-codes.ts +25 -25
- package/src/resources/job-dimensions.ts +21 -21
- package/src/resources/job-functions.ts +14 -14
- package/src/resources/job-pay-rate-exceptions.ts +16 -16
- package/src/resources/kiosk-badges.ts +35 -35
- package/src/resources/leave-accruals.ts +261 -0
- package/src/resources/leave-balances.ts +16 -16
- package/src/resources/leave-requests.ts +44 -44
- package/src/resources/leave-types.ts +7 -7
- package/src/resources/legal-entities.ts +17 -16
- package/src/resources/levels.ts +16 -16
- package/src/resources/location-factors.ts +20 -18
- package/src/resources/object-categories.ts +9 -9
- package/src/resources/schedules.ts +22 -22
- package/src/resources/shared.ts +1 -0
- package/src/resources/shift-inputs.ts +35 -35
- package/src/resources/shiftassignments.ts +30 -30
- package/src/resources/supergroups/exclusion-members.ts +16 -16
- package/src/resources/supergroups/inclusion-members.ts +16 -16
- package/src/resources/supergroups/index.ts +2 -2
- package/src/resources/supergroups/supergroups.ts +9 -9
- package/src/resources/teams.ts +16 -16
- package/src/resources/time-cards.ts +16 -16
- package/src/resources/time-entries.ts +71 -71
- package/src/resources/tracks.ts +7 -7
- package/src/resources/users.ts +7 -7
- package/src/resources/work-locations.ts +7 -7
- package/src/resources/workers.ts +18 -16
- 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
|
@@ -11,24 +11,6 @@ import { RequestOptions } from '../internal/request-options';
|
|
|
11
11
|
import { path } from '../internal/utils/path';
|
|
12
12
|
|
|
13
13
|
export class BusinessPartners extends APIResource {
|
|
14
|
-
/**
|
|
15
|
-
* Create a new business partner
|
|
16
|
-
*/
|
|
17
|
-
create(body: BusinessPartnerCreateParams, options?: RequestOptions): APIPromise<BusinessPartner> {
|
|
18
|
-
return this._client.post('/business-partners', { body, ...options });
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Retrieve a specific business partner
|
|
23
|
-
*/
|
|
24
|
-
retrieve(
|
|
25
|
-
id: string,
|
|
26
|
-
query: BusinessPartnerRetrieveParams | null | undefined = {},
|
|
27
|
-
options?: RequestOptions,
|
|
28
|
-
): APIPromise<BusinessPartnerRetrieveResponse> {
|
|
29
|
-
return this._client.get(path`/business-partners/${id}`, { query, ...options });
|
|
30
|
-
}
|
|
31
|
-
|
|
32
14
|
/**
|
|
33
15
|
* A List of business partners
|
|
34
16
|
*
|
|
@@ -47,6 +29,24 @@ export class BusinessPartners extends APIResource {
|
|
|
47
29
|
});
|
|
48
30
|
}
|
|
49
31
|
|
|
32
|
+
/**
|
|
33
|
+
* Create a new business partner
|
|
34
|
+
*/
|
|
35
|
+
create(body: BusinessPartnerCreateParams, options?: RequestOptions): APIPromise<BusinessPartner> {
|
|
36
|
+
return this._client.post('/business-partners', { body, ...options });
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Retrieve a specific business partner
|
|
41
|
+
*/
|
|
42
|
+
retrieve(
|
|
43
|
+
id: string,
|
|
44
|
+
query: BusinessPartnerRetrieveParams | null | undefined = {},
|
|
45
|
+
options?: RequestOptions,
|
|
46
|
+
): APIPromise<BusinessPartnerRetrieveResponse> {
|
|
47
|
+
return this._client.get(path`/business-partners/${id}`, { query, ...options });
|
|
48
|
+
}
|
|
49
|
+
|
|
50
50
|
/**
|
|
51
51
|
* Delete a business partner
|
|
52
52
|
*/
|
|
@@ -153,6 +153,14 @@ export namespace Meta {
|
|
|
153
153
|
*/
|
|
154
154
|
export interface BusinessPartnerRetrieveResponse extends Meta, BusinessPartner {}
|
|
155
155
|
|
|
156
|
+
export interface BusinessPartnerListParams {
|
|
157
|
+
expand?: string;
|
|
158
|
+
|
|
159
|
+
filter?: string;
|
|
160
|
+
|
|
161
|
+
order_by?: string;
|
|
162
|
+
}
|
|
163
|
+
|
|
156
164
|
export interface BusinessPartnerCreateParams {
|
|
157
165
|
/**
|
|
158
166
|
* Identifier of business partner group the business parter is a part of
|
|
@@ -169,22 +177,14 @@ export interface BusinessPartnerRetrieveParams {
|
|
|
169
177
|
expand?: string;
|
|
170
178
|
}
|
|
171
179
|
|
|
172
|
-
export interface BusinessPartnerListParams {
|
|
173
|
-
expand?: string;
|
|
174
|
-
|
|
175
|
-
filter?: string;
|
|
176
|
-
|
|
177
|
-
order_by?: string;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
180
|
export declare namespace BusinessPartners {
|
|
181
181
|
export {
|
|
182
182
|
type BusinessPartner as BusinessPartner,
|
|
183
183
|
type Meta as Meta,
|
|
184
184
|
type BusinessPartnerRetrieveResponse as BusinessPartnerRetrieveResponse,
|
|
185
185
|
type BusinessPartnersPageCursorURL as BusinessPartnersPageCursorURL,
|
|
186
|
+
type BusinessPartnerListParams as BusinessPartnerListParams,
|
|
186
187
|
type BusinessPartnerCreateParams as BusinessPartnerCreateParams,
|
|
187
188
|
type BusinessPartnerRetrieveParams as BusinessPartnerRetrieveParams,
|
|
188
|
-
type BusinessPartnerListParams as BusinessPartnerListParams,
|
|
189
189
|
};
|
|
190
190
|
}
|
|
@@ -9,17 +9,6 @@ import { RequestOptions } from '../internal/request-options';
|
|
|
9
9
|
import { path } from '../internal/utils/path';
|
|
10
10
|
|
|
11
11
|
export class Compensations extends APIResource {
|
|
12
|
-
/**
|
|
13
|
-
* Retrieves the Compensation for the Worker with the ID provided in the URL path.
|
|
14
|
-
*/
|
|
15
|
-
retrieve(
|
|
16
|
-
id: string,
|
|
17
|
-
query: CompensationRetrieveParams | null | undefined = {},
|
|
18
|
-
options?: RequestOptions,
|
|
19
|
-
): APIPromise<CompensationRetrieveResponse> {
|
|
20
|
-
return this._client.get(path`/compensations/${id}`, { query, ...options });
|
|
21
|
-
}
|
|
22
|
-
|
|
23
12
|
/**
|
|
24
13
|
* A List of compensations
|
|
25
14
|
*
|
|
@@ -33,6 +22,17 @@ export class Compensations extends APIResource {
|
|
|
33
22
|
): PagePromise<CompensationsPageCursorURL, Compensation> {
|
|
34
23
|
return this._client.getAPIList('/compensations', PageCursorURL<Compensation>, { query, ...options });
|
|
35
24
|
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Retrieves the Compensation for the Worker with the ID provided in the URL path.
|
|
28
|
+
*/
|
|
29
|
+
retrieve(
|
|
30
|
+
id: string,
|
|
31
|
+
query: CompensationRetrieveParams | null | undefined = {},
|
|
32
|
+
options?: RequestOptions,
|
|
33
|
+
): APIPromise<CompensationRetrieveResponse> {
|
|
34
|
+
return this._client.get(path`/compensations/${id}`, { query, ...options });
|
|
35
|
+
}
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
export type CompensationsPageCursorURL = PageCursorURL<Compensation>;
|
|
@@ -292,22 +292,22 @@ export namespace Compensation {
|
|
|
292
292
|
*/
|
|
293
293
|
export interface CompensationRetrieveResponse extends BusinessPartnersAPI.Meta, Compensation {}
|
|
294
294
|
|
|
295
|
-
export interface CompensationRetrieveParams {
|
|
296
|
-
expand?: string;
|
|
297
|
-
}
|
|
298
|
-
|
|
299
295
|
export interface CompensationListParams {
|
|
300
296
|
expand?: string;
|
|
301
297
|
|
|
302
298
|
order_by?: string;
|
|
303
299
|
}
|
|
304
300
|
|
|
301
|
+
export interface CompensationRetrieveParams {
|
|
302
|
+
expand?: string;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
305
|
export declare namespace Compensations {
|
|
306
306
|
export {
|
|
307
307
|
type Compensation as Compensation,
|
|
308
308
|
type CompensationRetrieveResponse as CompensationRetrieveResponse,
|
|
309
309
|
type CompensationsPageCursorURL as CompensationsPageCursorURL,
|
|
310
|
-
type CompensationRetrieveParams as CompensationRetrieveParams,
|
|
311
310
|
type CompensationListParams as CompensationListParams,
|
|
311
|
+
type CompensationRetrieveParams as CompensationRetrieveParams,
|
|
312
312
|
};
|
|
313
313
|
}
|
|
@@ -36,6 +36,15 @@ export class CustomObjects extends APIResource {
|
|
|
36
36
|
fields: FieldsAPI.Fields = new FieldsAPI.Fields(this._client);
|
|
37
37
|
records: RecordsAPI.Records = new RecordsAPI.Records(this._client);
|
|
38
38
|
|
|
39
|
+
/**
|
|
40
|
+
* A List of custom objects
|
|
41
|
+
*
|
|
42
|
+
* - Requires: `API Tier 1`
|
|
43
|
+
*/
|
|
44
|
+
list(options?: RequestOptions): PagePromise<CustomObjectsPageCursorURL, CustomObject> {
|
|
45
|
+
return this._client.getAPIList('/custom-objects/', PageCursorURL<CustomObject>, options);
|
|
46
|
+
}
|
|
47
|
+
|
|
39
48
|
/**
|
|
40
49
|
* Create a new custom object
|
|
41
50
|
*/
|
|
@@ -64,15 +73,6 @@ export class CustomObjects extends APIResource {
|
|
|
64
73
|
return this._client.patch(path`/custom-objects/${customObjectAPIName}/`, { body, ...options });
|
|
65
74
|
}
|
|
66
75
|
|
|
67
|
-
/**
|
|
68
|
-
* A List of custom objects
|
|
69
|
-
*
|
|
70
|
-
* - Requires: `API Tier 1`
|
|
71
|
-
*/
|
|
72
|
-
list(options?: RequestOptions): PagePromise<CustomObjectsPageCursorURL, CustomObject> {
|
|
73
|
-
return this._client.getAPIList('/custom-objects/', PageCursorURL<CustomObject>, options);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
76
|
/**
|
|
77
77
|
* Delete a custom object
|
|
78
78
|
*/
|
|
@@ -191,16 +191,16 @@ export declare namespace CustomObjects {
|
|
|
191
191
|
Records as Records,
|
|
192
192
|
type CustomObjectDataRow as CustomObjectDataRow,
|
|
193
193
|
type RecordCreateResponse as RecordCreateResponse,
|
|
194
|
+
type RecordQueryResponse as RecordQueryResponse,
|
|
194
195
|
type RecordUpdateResponse as RecordUpdateResponse,
|
|
195
196
|
type RecordBulkCreateResponse as RecordBulkCreateResponse,
|
|
196
197
|
type RecordBulkUpdateResponse as RecordBulkUpdateResponse,
|
|
197
|
-
type RecordQueryResponse as RecordQueryResponse,
|
|
198
198
|
type CustomObjectDataRowsPageCursorURL as CustomObjectDataRowsPageCursorURL,
|
|
199
199
|
type RecordCreateParams as RecordCreateParams,
|
|
200
|
+
type RecordQueryParams as RecordQueryParams,
|
|
200
201
|
type RecordUpdateParams as RecordUpdateParams,
|
|
201
202
|
type RecordBulkCreateParams as RecordBulkCreateParams,
|
|
202
|
-
type RecordBulkDeleteParams as RecordBulkDeleteParams,
|
|
203
203
|
type RecordBulkUpdateParams as RecordBulkUpdateParams,
|
|
204
|
-
type
|
|
204
|
+
type RecordBulkDeleteParams as RecordBulkDeleteParams,
|
|
205
205
|
};
|
|
206
206
|
}
|
|
@@ -8,6 +8,22 @@ import { RequestOptions } from '../../internal/request-options';
|
|
|
8
8
|
import { path } from '../../internal/utils/path';
|
|
9
9
|
|
|
10
10
|
export class Fields extends APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* A List of custom object fields
|
|
13
|
+
*
|
|
14
|
+
* - Requires: `API Tier 1`
|
|
15
|
+
*/
|
|
16
|
+
list(
|
|
17
|
+
customObjectAPIName: string,
|
|
18
|
+
options?: RequestOptions,
|
|
19
|
+
): PagePromise<CustomObjectFieldsPageCursorURL, CustomObjectField> {
|
|
20
|
+
return this._client.getAPIList(
|
|
21
|
+
path`/custom-objects/${customObjectAPIName}/fields/`,
|
|
22
|
+
PageCursorURL<CustomObjectField>,
|
|
23
|
+
options,
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
|
|
11
27
|
/**
|
|
12
28
|
* Create a new custom object field
|
|
13
29
|
*/
|
|
@@ -45,22 +61,6 @@ export class Fields extends APIResource {
|
|
|
45
61
|
});
|
|
46
62
|
}
|
|
47
63
|
|
|
48
|
-
/**
|
|
49
|
-
* A List of custom object fields
|
|
50
|
-
*
|
|
51
|
-
* - Requires: `API Tier 1`
|
|
52
|
-
*/
|
|
53
|
-
list(
|
|
54
|
-
customObjectAPIName: string,
|
|
55
|
-
options?: RequestOptions,
|
|
56
|
-
): PagePromise<CustomObjectFieldsPageCursorURL, CustomObjectField> {
|
|
57
|
-
return this._client.getAPIList(
|
|
58
|
-
path`/custom-objects/${customObjectAPIName}/fields/`,
|
|
59
|
-
PageCursorURL<CustomObjectField>,
|
|
60
|
-
options,
|
|
61
|
-
);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
64
|
/**
|
|
65
65
|
* Delete a custom object field
|
|
66
66
|
*/
|
|
@@ -18,15 +18,15 @@ export {
|
|
|
18
18
|
Records,
|
|
19
19
|
type CustomObjectDataRow,
|
|
20
20
|
type RecordCreateResponse,
|
|
21
|
+
type RecordQueryResponse,
|
|
21
22
|
type RecordUpdateResponse,
|
|
22
23
|
type RecordBulkCreateResponse,
|
|
23
24
|
type RecordBulkUpdateResponse,
|
|
24
|
-
type RecordQueryResponse,
|
|
25
25
|
type RecordCreateParams,
|
|
26
|
+
type RecordQueryParams,
|
|
26
27
|
type RecordUpdateParams,
|
|
27
28
|
type RecordBulkCreateParams,
|
|
28
|
-
type RecordBulkDeleteParams,
|
|
29
29
|
type RecordBulkUpdateParams,
|
|
30
|
-
type
|
|
30
|
+
type RecordBulkDeleteParams,
|
|
31
31
|
type CustomObjectDataRowsPageCursorURL,
|
|
32
32
|
} from './records';
|
|
@@ -8,6 +8,22 @@ import { RequestOptions } from '../../internal/request-options';
|
|
|
8
8
|
import { path } from '../../internal/utils/path';
|
|
9
9
|
|
|
10
10
|
export class Records extends APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* A List of custom object records
|
|
13
|
+
*
|
|
14
|
+
* - Requires: `API Tier 1`
|
|
15
|
+
*/
|
|
16
|
+
list(
|
|
17
|
+
customObjectAPIName: string,
|
|
18
|
+
options?: RequestOptions,
|
|
19
|
+
): PagePromise<CustomObjectDataRowsPageCursorURL, CustomObjectDataRow> {
|
|
20
|
+
return this._client.getAPIList(
|
|
21
|
+
path`/custom-objects/${customObjectAPIName}/records/`,
|
|
22
|
+
PageCursorURL<CustomObjectDataRow>,
|
|
23
|
+
options,
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
|
|
11
27
|
/**
|
|
12
28
|
* Create a new custom object record
|
|
13
29
|
*/
|
|
@@ -19,6 +35,20 @@ export class Records extends APIResource {
|
|
|
19
35
|
return this._client.post(path`/custom-objects/${customObjectAPIName}/records/`, { body, ...options });
|
|
20
36
|
}
|
|
21
37
|
|
|
38
|
+
/**
|
|
39
|
+
* A List of custom object records filtered by querying
|
|
40
|
+
*/
|
|
41
|
+
query(
|
|
42
|
+
customObjectAPIName: string,
|
|
43
|
+
body: RecordQueryParams | null | undefined = {},
|
|
44
|
+
options?: RequestOptions,
|
|
45
|
+
): APIPromise<RecordQueryResponse> {
|
|
46
|
+
return this._client.post(path`/custom-objects/${customObjectAPIName}/records/query/`, {
|
|
47
|
+
body,
|
|
48
|
+
...options,
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
|
|
22
52
|
/**
|
|
23
53
|
* Retrieve a specific custom object record
|
|
24
54
|
*/
|
|
@@ -45,22 +75,6 @@ export class Records extends APIResource {
|
|
|
45
75
|
});
|
|
46
76
|
}
|
|
47
77
|
|
|
48
|
-
/**
|
|
49
|
-
* A List of custom object records
|
|
50
|
-
*
|
|
51
|
-
* - Requires: `API Tier 1`
|
|
52
|
-
*/
|
|
53
|
-
list(
|
|
54
|
-
customObjectAPIName: string,
|
|
55
|
-
options?: RequestOptions,
|
|
56
|
-
): PagePromise<CustomObjectDataRowsPageCursorURL, CustomObjectDataRow> {
|
|
57
|
-
return this._client.getAPIList(
|
|
58
|
-
path`/custom-objects/${customObjectAPIName}/records/`,
|
|
59
|
-
PageCursorURL<CustomObjectDataRow>,
|
|
60
|
-
options,
|
|
61
|
-
);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
78
|
/**
|
|
65
79
|
* Delete a custom object record
|
|
66
80
|
*/
|
|
@@ -72,31 +86,30 @@ export class Records extends APIResource {
|
|
|
72
86
|
}
|
|
73
87
|
|
|
74
88
|
/**
|
|
75
|
-
*
|
|
89
|
+
* Retrieve a specific custom object record by its external_id
|
|
76
90
|
*/
|
|
77
|
-
|
|
91
|
+
retrieveByExternalID(
|
|
78
92
|
customObjectAPIName: string,
|
|
79
|
-
|
|
93
|
+
externalID: string,
|
|
80
94
|
options?: RequestOptions,
|
|
81
|
-
): APIPromise<
|
|
82
|
-
return this._client.
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
95
|
+
): APIPromise<CustomObjectDataRow> {
|
|
96
|
+
return this._client.get(
|
|
97
|
+
path`/custom-objects/${customObjectAPIName}/records/external_id/${externalID}/`,
|
|
98
|
+
options,
|
|
99
|
+
);
|
|
86
100
|
}
|
|
87
101
|
|
|
88
102
|
/**
|
|
89
|
-
*
|
|
103
|
+
* bulk create new custom object records
|
|
90
104
|
*/
|
|
91
|
-
|
|
105
|
+
bulkCreate(
|
|
92
106
|
customObjectAPIName: string,
|
|
93
|
-
body:
|
|
107
|
+
body: RecordBulkCreateParams | null | undefined = {},
|
|
94
108
|
options?: RequestOptions,
|
|
95
|
-
): APIPromise<
|
|
96
|
-
return this._client.post(path`/custom-objects/${customObjectAPIName}/records/bulk
|
|
109
|
+
): APIPromise<RecordBulkCreateResponse> {
|
|
110
|
+
return this._client.post(path`/custom-objects/${customObjectAPIName}/records/bulk/`, {
|
|
97
111
|
body,
|
|
98
112
|
...options,
|
|
99
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
100
113
|
});
|
|
101
114
|
}
|
|
102
115
|
|
|
@@ -115,32 +128,19 @@ export class Records extends APIResource {
|
|
|
115
128
|
}
|
|
116
129
|
|
|
117
130
|
/**
|
|
118
|
-
*
|
|
131
|
+
* Bulk Delete custom object records
|
|
119
132
|
*/
|
|
120
|
-
|
|
133
|
+
bulkDelete(
|
|
121
134
|
customObjectAPIName: string,
|
|
122
|
-
body:
|
|
135
|
+
body: RecordBulkDeleteParams | null | undefined = {},
|
|
123
136
|
options?: RequestOptions,
|
|
124
|
-
): APIPromise<
|
|
125
|
-
return this._client.post(path`/custom-objects/${customObjectAPIName}/records/
|
|
137
|
+
): APIPromise<void> {
|
|
138
|
+
return this._client.post(path`/custom-objects/${customObjectAPIName}/records/bulk-delete/`, {
|
|
126
139
|
body,
|
|
127
140
|
...options,
|
|
141
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
128
142
|
});
|
|
129
143
|
}
|
|
130
|
-
|
|
131
|
-
/**
|
|
132
|
-
* Retrieve a specific custom object record by its external_id
|
|
133
|
-
*/
|
|
134
|
-
retrieveByExternalID(
|
|
135
|
-
customObjectAPIName: string,
|
|
136
|
-
externalID: string,
|
|
137
|
-
options?: RequestOptions,
|
|
138
|
-
): APIPromise<CustomObjectDataRow> {
|
|
139
|
-
return this._client.get(
|
|
140
|
-
path`/custom-objects/${customObjectAPIName}/records/external_id/${externalID}/`,
|
|
141
|
-
options,
|
|
142
|
-
);
|
|
143
|
-
}
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
export type CustomObjectDataRowsPageCursorURL = PageCursorURL<CustomObjectDataRow>;
|
|
@@ -212,6 +212,12 @@ export interface RecordCreateResponse {
|
|
|
212
212
|
data?: CustomObjectDataRow;
|
|
213
213
|
}
|
|
214
214
|
|
|
215
|
+
export interface RecordQueryResponse {
|
|
216
|
+
cursor?: string;
|
|
217
|
+
|
|
218
|
+
results?: Array<CustomObjectDataRow>;
|
|
219
|
+
}
|
|
220
|
+
|
|
215
221
|
export interface RecordUpdateResponse {
|
|
216
222
|
data?: CustomObjectDataRow;
|
|
217
223
|
}
|
|
@@ -224,13 +230,15 @@ export interface RecordBulkUpdateResponse {
|
|
|
224
230
|
data?: Array<CustomObjectDataRow>;
|
|
225
231
|
}
|
|
226
232
|
|
|
227
|
-
export
|
|
233
|
+
export type RecordCreateParams = { [key: string]: unknown };
|
|
234
|
+
|
|
235
|
+
export interface RecordQueryParams {
|
|
228
236
|
cursor?: string;
|
|
229
237
|
|
|
230
|
-
|
|
231
|
-
}
|
|
238
|
+
limit?: number;
|
|
232
239
|
|
|
233
|
-
|
|
240
|
+
query?: string;
|
|
241
|
+
}
|
|
234
242
|
|
|
235
243
|
export type RecordUpdateParams = { [key: string]: unknown };
|
|
236
244
|
|
|
@@ -240,43 +248,35 @@ export interface RecordBulkCreateParams {
|
|
|
240
248
|
rows_to_write?: Array<{ [key: string]: unknown }>;
|
|
241
249
|
}
|
|
242
250
|
|
|
243
|
-
export interface RecordBulkDeleteParams {
|
|
244
|
-
all_or_nothing?: boolean;
|
|
245
|
-
|
|
246
|
-
/**
|
|
247
|
-
* a list of ids, e.g. [id_1, id_2].
|
|
248
|
-
*/
|
|
249
|
-
rows_to_delete?: Array<string>;
|
|
250
|
-
}
|
|
251
|
-
|
|
252
251
|
export interface RecordBulkUpdateParams {
|
|
253
252
|
all_or_nothing?: boolean;
|
|
254
253
|
|
|
255
254
|
rows_to_update?: Array<{ [key: string]: unknown }>;
|
|
256
255
|
}
|
|
257
256
|
|
|
258
|
-
export interface
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
limit?: number;
|
|
257
|
+
export interface RecordBulkDeleteParams {
|
|
258
|
+
all_or_nothing?: boolean;
|
|
262
259
|
|
|
263
|
-
|
|
260
|
+
/**
|
|
261
|
+
* a list of ids, e.g. [id_1, id_2].
|
|
262
|
+
*/
|
|
263
|
+
rows_to_delete?: Array<string>;
|
|
264
264
|
}
|
|
265
265
|
|
|
266
266
|
export declare namespace Records {
|
|
267
267
|
export {
|
|
268
268
|
type CustomObjectDataRow as CustomObjectDataRow,
|
|
269
269
|
type RecordCreateResponse as RecordCreateResponse,
|
|
270
|
+
type RecordQueryResponse as RecordQueryResponse,
|
|
270
271
|
type RecordUpdateResponse as RecordUpdateResponse,
|
|
271
272
|
type RecordBulkCreateResponse as RecordBulkCreateResponse,
|
|
272
273
|
type RecordBulkUpdateResponse as RecordBulkUpdateResponse,
|
|
273
|
-
type RecordQueryResponse as RecordQueryResponse,
|
|
274
274
|
type CustomObjectDataRowsPageCursorURL as CustomObjectDataRowsPageCursorURL,
|
|
275
275
|
type RecordCreateParams as RecordCreateParams,
|
|
276
|
+
type RecordQueryParams as RecordQueryParams,
|
|
276
277
|
type RecordUpdateParams as RecordUpdateParams,
|
|
277
278
|
type RecordBulkCreateParams as RecordBulkCreateParams,
|
|
278
|
-
type RecordBulkDeleteParams as RecordBulkDeleteParams,
|
|
279
279
|
type RecordBulkUpdateParams as RecordBulkUpdateParams,
|
|
280
|
-
type
|
|
280
|
+
type RecordBulkDeleteParams as RecordBulkDeleteParams,
|
|
281
281
|
};
|
|
282
282
|
}
|
|
@@ -8,17 +8,6 @@ import { RequestOptions } from '../internal/request-options';
|
|
|
8
8
|
import { path } from '../internal/utils/path';
|
|
9
9
|
|
|
10
10
|
export class Departments extends APIResource {
|
|
11
|
-
/**
|
|
12
|
-
* Retrieve a specific department
|
|
13
|
-
*/
|
|
14
|
-
retrieve(
|
|
15
|
-
id: string,
|
|
16
|
-
query: DepartmentRetrieveParams | null | undefined = {},
|
|
17
|
-
options?: RequestOptions,
|
|
18
|
-
): APIPromise<DepartmentRetrieveResponse> {
|
|
19
|
-
return this._client.get(path`/departments/${id}`, { query, ...options });
|
|
20
|
-
}
|
|
21
|
-
|
|
22
11
|
/**
|
|
23
12
|
* A List of departments
|
|
24
13
|
*
|
|
@@ -32,6 +21,17 @@ export class Departments extends APIResource {
|
|
|
32
21
|
): PagePromise<DepartmentsPageCursorURL, Department> {
|
|
33
22
|
return this._client.getAPIList('/departments', PageCursorURL<Department>, { query, ...options });
|
|
34
23
|
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Retrieve a specific department
|
|
27
|
+
*/
|
|
28
|
+
retrieve(
|
|
29
|
+
id: string,
|
|
30
|
+
query: DepartmentRetrieveParams | null | undefined = {},
|
|
31
|
+
options?: RequestOptions,
|
|
32
|
+
): APIPromise<DepartmentRetrieveResponse> {
|
|
33
|
+
return this._client.get(path`/departments/${id}`, { query, ...options });
|
|
34
|
+
}
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
export type DepartmentsPageCursorURL = PageCursorURL<Department>;
|
|
@@ -94,22 +94,22 @@ export interface Department {
|
|
|
94
94
|
*/
|
|
95
95
|
export interface DepartmentRetrieveResponse extends BusinessPartnersAPI.Meta, Department {}
|
|
96
96
|
|
|
97
|
-
export interface DepartmentRetrieveParams {
|
|
98
|
-
expand?: string;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
97
|
export interface DepartmentListParams {
|
|
102
98
|
expand?: string;
|
|
103
99
|
|
|
104
100
|
order_by?: string;
|
|
105
101
|
}
|
|
106
102
|
|
|
103
|
+
export interface DepartmentRetrieveParams {
|
|
104
|
+
expand?: string;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
107
|
export declare namespace Departments {
|
|
108
108
|
export {
|
|
109
109
|
type Department as Department,
|
|
110
110
|
type DepartmentRetrieveResponse as DepartmentRetrieveResponse,
|
|
111
111
|
type DepartmentsPageCursorURL as DepartmentsPageCursorURL,
|
|
112
|
-
type DepartmentRetrieveParams as DepartmentRetrieveParams,
|
|
113
112
|
type DepartmentListParams as DepartmentListParams,
|
|
113
|
+
type DepartmentRetrieveParams as DepartmentRetrieveParams,
|
|
114
114
|
};
|
|
115
115
|
}
|