@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
|
@@ -10,17 +10,6 @@ import { RequestOptions } from '../internal/request-options';
|
|
|
10
10
|
import { path } from '../internal/utils/path';
|
|
11
11
|
|
|
12
12
|
export class LegalEntities extends APIResource {
|
|
13
|
-
/**
|
|
14
|
-
* Retrieve a specific legal entity
|
|
15
|
-
*/
|
|
16
|
-
retrieve(
|
|
17
|
-
id: string,
|
|
18
|
-
query: LegalEntityRetrieveParams | null | undefined = {},
|
|
19
|
-
options?: RequestOptions,
|
|
20
|
-
): APIPromise<LegalEntityRetrieveResponse> {
|
|
21
|
-
return this._client.get(path`/legal-entities/${id}`, { query, ...options });
|
|
22
|
-
}
|
|
23
|
-
|
|
24
13
|
/**
|
|
25
14
|
* A List of legal entities
|
|
26
15
|
*
|
|
@@ -34,6 +23,17 @@ export class LegalEntities extends APIResource {
|
|
|
34
23
|
): PagePromise<LegalEntitiesPageCursorURL, LegalEntity> {
|
|
35
24
|
return this._client.getAPIList('/legal-entities', PageCursorURL<LegalEntity>, { query, ...options });
|
|
36
25
|
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Retrieve a specific legal entity
|
|
29
|
+
*/
|
|
30
|
+
retrieve(
|
|
31
|
+
id: string,
|
|
32
|
+
query: LegalEntityRetrieveParams | null | undefined = {},
|
|
33
|
+
options?: RequestOptions,
|
|
34
|
+
): APIPromise<LegalEntityRetrieveResponse> {
|
|
35
|
+
return this._client.get(path`/legal-entities/${id}`, { query, ...options });
|
|
36
|
+
}
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
export type LegalEntitiesPageCursorURL = PageCursorURL<LegalEntity>;
|
|
@@ -331,6 +331,7 @@ export namespace LegalEntity {
|
|
|
331
331
|
| 'SL'
|
|
332
332
|
| 'SG'
|
|
333
333
|
| 'SX'
|
|
334
|
+
| 'SY'
|
|
334
335
|
| 'SK'
|
|
335
336
|
| 'SI'
|
|
336
337
|
| 'SB'
|
|
@@ -385,22 +386,22 @@ export namespace LegalEntity {
|
|
|
385
386
|
*/
|
|
386
387
|
export interface LegalEntityRetrieveResponse extends BusinessPartnersAPI.Meta, LegalEntity {}
|
|
387
388
|
|
|
388
|
-
export interface LegalEntityRetrieveParams {
|
|
389
|
-
expand?: string;
|
|
390
|
-
}
|
|
391
|
-
|
|
392
389
|
export interface LegalEntityListParams {
|
|
393
390
|
expand?: string;
|
|
394
391
|
|
|
395
392
|
order_by?: string;
|
|
396
393
|
}
|
|
397
394
|
|
|
395
|
+
export interface LegalEntityRetrieveParams {
|
|
396
|
+
expand?: string;
|
|
397
|
+
}
|
|
398
|
+
|
|
398
399
|
export declare namespace LegalEntities {
|
|
399
400
|
export {
|
|
400
401
|
type LegalEntity as LegalEntity,
|
|
401
402
|
type LegalEntityRetrieveResponse as LegalEntityRetrieveResponse,
|
|
402
403
|
type LegalEntitiesPageCursorURL as LegalEntitiesPageCursorURL,
|
|
403
|
-
type LegalEntityRetrieveParams as LegalEntityRetrieveParams,
|
|
404
404
|
type LegalEntityListParams as LegalEntityListParams,
|
|
405
|
+
type LegalEntityRetrieveParams as LegalEntityRetrieveParams,
|
|
405
406
|
};
|
|
406
407
|
}
|
package/src/resources/levels.ts
CHANGED
|
@@ -9,17 +9,6 @@ import { RequestOptions } from '../internal/request-options';
|
|
|
9
9
|
import { path } from '../internal/utils/path';
|
|
10
10
|
|
|
11
11
|
export class Levels extends APIResource {
|
|
12
|
-
/**
|
|
13
|
-
* Retrieve a specific level
|
|
14
|
-
*/
|
|
15
|
-
retrieve(
|
|
16
|
-
id: string,
|
|
17
|
-
query: LevelRetrieveParams | null | undefined = {},
|
|
18
|
-
options?: RequestOptions,
|
|
19
|
-
): APIPromise<LevelRetrieveResponse> {
|
|
20
|
-
return this._client.get(path`/levels/${id}`, { query, ...options });
|
|
21
|
-
}
|
|
22
|
-
|
|
23
12
|
/**
|
|
24
13
|
* A List of levels
|
|
25
14
|
*
|
|
@@ -33,6 +22,17 @@ export class Levels extends APIResource {
|
|
|
33
22
|
): PagePromise<LevelsPageCursorURL, Level> {
|
|
34
23
|
return this._client.getAPIList('/levels', PageCursorURL<Level>, { query, ...options });
|
|
35
24
|
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Retrieve a specific level
|
|
28
|
+
*/
|
|
29
|
+
retrieve(
|
|
30
|
+
id: string,
|
|
31
|
+
query: LevelRetrieveParams | null | undefined = {},
|
|
32
|
+
options?: RequestOptions,
|
|
33
|
+
): APIPromise<LevelRetrieveResponse> {
|
|
34
|
+
return this._client.get(path`/levels/${id}`, { query, ...options });
|
|
35
|
+
}
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
export type LevelsPageCursorURL = PageCursorURL<Level>;
|
|
@@ -107,22 +107,22 @@ export interface Level {
|
|
|
107
107
|
*/
|
|
108
108
|
export interface LevelRetrieveResponse extends BusinessPartnersAPI.Meta, Level {}
|
|
109
109
|
|
|
110
|
-
export interface LevelRetrieveParams {
|
|
111
|
-
expand?: string;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
110
|
export interface LevelListParams {
|
|
115
111
|
expand?: string;
|
|
116
112
|
|
|
117
113
|
order_by?: string;
|
|
118
114
|
}
|
|
119
115
|
|
|
116
|
+
export interface LevelRetrieveParams {
|
|
117
|
+
expand?: string;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
120
|
export declare namespace Levels {
|
|
121
121
|
export {
|
|
122
122
|
type Level as Level,
|
|
123
123
|
type LevelRetrieveResponse as LevelRetrieveResponse,
|
|
124
124
|
type LevelsPageCursorURL as LevelsPageCursorURL,
|
|
125
|
-
type LevelRetrieveParams as LevelRetrieveParams,
|
|
126
125
|
type LevelListParams as LevelListParams,
|
|
126
|
+
type LevelRetrieveParams as LevelRetrieveParams,
|
|
127
127
|
};
|
|
128
128
|
}
|
|
@@ -8,17 +8,10 @@ import { RequestOptions } from '../internal/request-options';
|
|
|
8
8
|
import { path } from '../internal/utils/path';
|
|
9
9
|
|
|
10
10
|
export class LocationFactors extends APIResource {
|
|
11
|
-
/**
|
|
12
|
-
* Retrieve a specific location factor
|
|
13
|
-
*/
|
|
14
|
-
retrieve(id: string, options?: RequestOptions): APIPromise<LocationFactorRetrieveResponse> {
|
|
15
|
-
return this._client.get(path`/location-factors/${id}`, options);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
11
|
/**
|
|
19
12
|
* A List of location factors
|
|
20
13
|
*
|
|
21
|
-
* - Requires: `
|
|
14
|
+
* - Requires: `API Tier 2`
|
|
22
15
|
* - Sortable fields: `id`, `created_at`, `updated_at`
|
|
23
16
|
*/
|
|
24
17
|
list(
|
|
@@ -30,14 +23,18 @@ export class LocationFactors extends APIResource {
|
|
|
30
23
|
...options,
|
|
31
24
|
});
|
|
32
25
|
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Retrieve a specific location factor
|
|
29
|
+
*/
|
|
30
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<LocationFactorRetrieveResponse> {
|
|
31
|
+
return this._client.get(path`/location-factors/${id}`, options);
|
|
32
|
+
}
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
export type LocationFactorListResponsesPageCursorURL = PageCursorURL<LocationFactorListResponse>;
|
|
36
36
|
|
|
37
|
-
|
|
38
|
-
* Meta information for the response.
|
|
39
|
-
*/
|
|
40
|
-
export interface LocationFactorRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
37
|
+
export interface LocationFactorListResponse {
|
|
41
38
|
/**
|
|
42
39
|
* Identifier field
|
|
43
40
|
*/
|
|
@@ -61,7 +58,7 @@ export interface LocationFactorRetrieveResponse extends BusinessPartnersAPI.Meta
|
|
|
61
58
|
/**
|
|
62
59
|
* Country information set to the country code
|
|
63
60
|
*/
|
|
64
|
-
country?:
|
|
61
|
+
country?: LocationFactorListResponse.Country;
|
|
65
62
|
|
|
66
63
|
/**
|
|
67
64
|
* Human-readable name for the location factor
|
|
@@ -74,7 +71,7 @@ export interface LocationFactorRetrieveResponse extends BusinessPartnersAPI.Meta
|
|
|
74
71
|
labour_bucket?: string;
|
|
75
72
|
}
|
|
76
73
|
|
|
77
|
-
export namespace
|
|
74
|
+
export namespace LocationFactorListResponse {
|
|
78
75
|
/**
|
|
79
76
|
* Country information set to the country code
|
|
80
77
|
*/
|
|
@@ -284,6 +281,7 @@ export namespace LocationFactorRetrieveResponse {
|
|
|
284
281
|
| 'SL'
|
|
285
282
|
| 'SG'
|
|
286
283
|
| 'SX'
|
|
284
|
+
| 'SY'
|
|
287
285
|
| 'SK'
|
|
288
286
|
| 'SI'
|
|
289
287
|
| 'SB'
|
|
@@ -333,7 +331,10 @@ export namespace LocationFactorRetrieveResponse {
|
|
|
333
331
|
}
|
|
334
332
|
}
|
|
335
333
|
|
|
336
|
-
|
|
334
|
+
/**
|
|
335
|
+
* Meta information for the response.
|
|
336
|
+
*/
|
|
337
|
+
export interface LocationFactorRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
337
338
|
/**
|
|
338
339
|
* Identifier field
|
|
339
340
|
*/
|
|
@@ -357,7 +358,7 @@ export interface LocationFactorListResponse {
|
|
|
357
358
|
/**
|
|
358
359
|
* Country information set to the country code
|
|
359
360
|
*/
|
|
360
|
-
country?:
|
|
361
|
+
country?: LocationFactorRetrieveResponse.Country;
|
|
361
362
|
|
|
362
363
|
/**
|
|
363
364
|
* Human-readable name for the location factor
|
|
@@ -370,7 +371,7 @@ export interface LocationFactorListResponse {
|
|
|
370
371
|
labour_bucket?: string;
|
|
371
372
|
}
|
|
372
373
|
|
|
373
|
-
export namespace
|
|
374
|
+
export namespace LocationFactorRetrieveResponse {
|
|
374
375
|
/**
|
|
375
376
|
* Country information set to the country code
|
|
376
377
|
*/
|
|
@@ -580,6 +581,7 @@ export namespace LocationFactorListResponse {
|
|
|
580
581
|
| 'SL'
|
|
581
582
|
| 'SG'
|
|
582
583
|
| 'SX'
|
|
584
|
+
| 'SY'
|
|
583
585
|
| 'SK'
|
|
584
586
|
| 'SI'
|
|
585
587
|
| 'SB'
|
|
@@ -635,8 +637,8 @@ export interface LocationFactorListParams {
|
|
|
635
637
|
|
|
636
638
|
export declare namespace LocationFactors {
|
|
637
639
|
export {
|
|
638
|
-
type LocationFactorRetrieveResponse as LocationFactorRetrieveResponse,
|
|
639
640
|
type LocationFactorListResponse as LocationFactorListResponse,
|
|
641
|
+
type LocationFactorRetrieveResponse as LocationFactorRetrieveResponse,
|
|
640
642
|
type LocationFactorListResponsesPageCursorURL as LocationFactorListResponsesPageCursorURL,
|
|
641
643
|
type LocationFactorListParams as LocationFactorListParams,
|
|
642
644
|
};
|
|
@@ -8,6 +8,15 @@ import { RequestOptions } from '../internal/request-options';
|
|
|
8
8
|
import { path } from '../internal/utils/path';
|
|
9
9
|
|
|
10
10
|
export class ObjectCategories extends APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* A List of object categories
|
|
13
|
+
*
|
|
14
|
+
* - Requires: `API Tier 1`
|
|
15
|
+
*/
|
|
16
|
+
list(options?: RequestOptions): PagePromise<ObjectCategoriesPageCursorURL, ObjectCategory> {
|
|
17
|
+
return this._client.getAPIList('/object-categories/', PageCursorURL<ObjectCategory>, options);
|
|
18
|
+
}
|
|
19
|
+
|
|
11
20
|
/**
|
|
12
21
|
* Create a new object category
|
|
13
22
|
*/
|
|
@@ -36,15 +45,6 @@ export class ObjectCategories extends APIResource {
|
|
|
36
45
|
return this._client.patch(path`/object-categories/${id}/`, { body, ...options });
|
|
37
46
|
}
|
|
38
47
|
|
|
39
|
-
/**
|
|
40
|
-
* A List of object categories
|
|
41
|
-
*
|
|
42
|
-
* - Requires: `API Tier 1`
|
|
43
|
-
*/
|
|
44
|
-
list(options?: RequestOptions): PagePromise<ObjectCategoriesPageCursorURL, ObjectCategory> {
|
|
45
|
-
return this._client.getAPIList('/object-categories/', PageCursorURL<ObjectCategory>, options);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
48
|
/**
|
|
49
49
|
* Delete a object category
|
|
50
50
|
*/
|
|
@@ -9,17 +9,6 @@ import { RequestOptions } from '../internal/request-options';
|
|
|
9
9
|
import { path } from '../internal/utils/path';
|
|
10
10
|
|
|
11
11
|
export class Schedules extends APIResource {
|
|
12
|
-
/**
|
|
13
|
-
* Retrieve a specific schedule
|
|
14
|
-
*/
|
|
15
|
-
retrieve(
|
|
16
|
-
id: string,
|
|
17
|
-
query: ScheduleRetrieveParams | null | undefined = {},
|
|
18
|
-
options?: RequestOptions,
|
|
19
|
-
): APIPromise<ScheduleRetrieveResponse> {
|
|
20
|
-
return this._client.get(path`/schedules/${id}`, { query, ...options });
|
|
21
|
-
}
|
|
22
|
-
|
|
23
12
|
/**
|
|
24
13
|
* A List of schedules
|
|
25
14
|
*
|
|
@@ -33,14 +22,22 @@ export class Schedules extends APIResource {
|
|
|
33
22
|
): PagePromise<ScheduleListResponsesPageCursorURL, ScheduleListResponse> {
|
|
34
23
|
return this._client.getAPIList('/schedules', PageCursorURL<ScheduleListResponse>, { query, ...options });
|
|
35
24
|
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Retrieve a specific schedule
|
|
28
|
+
*/
|
|
29
|
+
retrieve(
|
|
30
|
+
id: string,
|
|
31
|
+
query: ScheduleRetrieveParams | null | undefined = {},
|
|
32
|
+
options?: RequestOptions,
|
|
33
|
+
): APIPromise<ScheduleRetrieveResponse> {
|
|
34
|
+
return this._client.get(path`/schedules/${id}`, { query, ...options });
|
|
35
|
+
}
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
export type ScheduleListResponsesPageCursorURL = PageCursorURL<ScheduleListResponse>;
|
|
39
39
|
|
|
40
|
-
|
|
41
|
-
* Meta information for the response.
|
|
42
|
-
*/
|
|
43
|
-
export interface ScheduleRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
40
|
+
export interface ScheduleListResponse {
|
|
44
41
|
/**
|
|
45
42
|
* Identifier field
|
|
46
43
|
*/
|
|
@@ -103,7 +100,10 @@ export interface ScheduleRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
|
103
100
|
observers_id?: Array<string>;
|
|
104
101
|
}
|
|
105
102
|
|
|
106
|
-
|
|
103
|
+
/**
|
|
104
|
+
* Meta information for the response.
|
|
105
|
+
*/
|
|
106
|
+
export interface ScheduleRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
107
107
|
/**
|
|
108
108
|
* Identifier field
|
|
109
109
|
*/
|
|
@@ -166,22 +166,22 @@ export interface ScheduleListResponse {
|
|
|
166
166
|
observers_id?: Array<string>;
|
|
167
167
|
}
|
|
168
168
|
|
|
169
|
-
export interface ScheduleRetrieveParams {
|
|
170
|
-
expand?: string;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
169
|
export interface ScheduleListParams {
|
|
174
170
|
expand?: string;
|
|
175
171
|
|
|
176
172
|
order_by?: string;
|
|
177
173
|
}
|
|
178
174
|
|
|
175
|
+
export interface ScheduleRetrieveParams {
|
|
176
|
+
expand?: string;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
179
|
export declare namespace Schedules {
|
|
180
180
|
export {
|
|
181
|
-
type ScheduleRetrieveResponse as ScheduleRetrieveResponse,
|
|
182
181
|
type ScheduleListResponse as ScheduleListResponse,
|
|
182
|
+
type ScheduleRetrieveResponse as ScheduleRetrieveResponse,
|
|
183
183
|
type ScheduleListResponsesPageCursorURL as ScheduleListResponsesPageCursorURL,
|
|
184
|
-
type ScheduleRetrieveParams as ScheduleRetrieveParams,
|
|
185
184
|
type ScheduleListParams as ScheduleListParams,
|
|
185
|
+
type ScheduleRetrieveParams as ScheduleRetrieveParams,
|
|
186
186
|
};
|
|
187
187
|
}
|
package/src/resources/shared.ts
CHANGED
|
@@ -10,6 +10,24 @@ import { RequestOptions } from '../internal/request-options';
|
|
|
10
10
|
import { path } from '../internal/utils/path';
|
|
11
11
|
|
|
12
12
|
export class ShiftInputs extends APIResource {
|
|
13
|
+
/**
|
|
14
|
+
* A List of shift inputs
|
|
15
|
+
*
|
|
16
|
+
* - Requires: `API Tier 2`
|
|
17
|
+
* - Filterable fields: `name`
|
|
18
|
+
* - Expandable fields: `creator`
|
|
19
|
+
* - Sortable fields: `id`, `created_at`, `updated_at`
|
|
20
|
+
*/
|
|
21
|
+
list(
|
|
22
|
+
query: ShiftInputListParams | null | undefined = {},
|
|
23
|
+
options?: RequestOptions,
|
|
24
|
+
): PagePromise<ShiftInputListResponsesPageCursorURL, ShiftInputListResponse> {
|
|
25
|
+
return this._client.getAPIList('/shift-inputs', PageCursorURL<ShiftInputListResponse>, {
|
|
26
|
+
query,
|
|
27
|
+
...options,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
|
|
13
31
|
/**
|
|
14
32
|
* Create a new shift input
|
|
15
33
|
*/
|
|
@@ -39,24 +57,6 @@ export class ShiftInputs extends APIResource {
|
|
|
39
57
|
return this._client.patch(path`/shift-inputs/${id}`, { body, ...options });
|
|
40
58
|
}
|
|
41
59
|
|
|
42
|
-
/**
|
|
43
|
-
* A List of shift inputs
|
|
44
|
-
*
|
|
45
|
-
* - Requires: `API Tier 2`
|
|
46
|
-
* - Filterable fields: `name`
|
|
47
|
-
* - Expandable fields: `creator`
|
|
48
|
-
* - Sortable fields: `id`, `created_at`, `updated_at`
|
|
49
|
-
*/
|
|
50
|
-
list(
|
|
51
|
-
query: ShiftInputListParams | null | undefined = {},
|
|
52
|
-
options?: RequestOptions,
|
|
53
|
-
): PagePromise<ShiftInputListResponsesPageCursorURL, ShiftInputListResponse> {
|
|
54
|
-
return this._client.getAPIList('/shift-inputs', PageCursorURL<ShiftInputListResponse>, {
|
|
55
|
-
query,
|
|
56
|
-
...options,
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
|
|
60
60
|
/**
|
|
61
61
|
* Delete a shift input
|
|
62
62
|
*/
|
|
@@ -97,7 +97,7 @@ export interface ShiftInput {
|
|
|
97
97
|
creator_id?: string;
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
export interface
|
|
100
|
+
export interface ShiftInputListResponse {
|
|
101
101
|
/**
|
|
102
102
|
* Identifier field
|
|
103
103
|
*/
|
|
@@ -151,10 +151,7 @@ export interface ShiftInputCreateResponse {
|
|
|
151
151
|
managed_by?: string;
|
|
152
152
|
}
|
|
153
153
|
|
|
154
|
-
|
|
155
|
-
* Meta information for the response.
|
|
156
|
-
*/
|
|
157
|
-
export interface ShiftInputRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
154
|
+
export interface ShiftInputCreateResponse {
|
|
158
155
|
/**
|
|
159
156
|
* Identifier field
|
|
160
157
|
*/
|
|
@@ -208,7 +205,10 @@ export interface ShiftInputRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
|
208
205
|
managed_by?: string;
|
|
209
206
|
}
|
|
210
207
|
|
|
211
|
-
|
|
208
|
+
/**
|
|
209
|
+
* Meta information for the response.
|
|
210
|
+
*/
|
|
211
|
+
export interface ShiftInputRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
212
212
|
/**
|
|
213
213
|
* Identifier field
|
|
214
214
|
*/
|
|
@@ -262,7 +262,7 @@ export interface ShiftInputUpdateResponse {
|
|
|
262
262
|
managed_by?: string;
|
|
263
263
|
}
|
|
264
264
|
|
|
265
|
-
export interface
|
|
265
|
+
export interface ShiftInputUpdateResponse {
|
|
266
266
|
/**
|
|
267
267
|
* Identifier field
|
|
268
268
|
*/
|
|
@@ -316,6 +316,14 @@ export interface ShiftInputListResponse {
|
|
|
316
316
|
managed_by?: string;
|
|
317
317
|
}
|
|
318
318
|
|
|
319
|
+
export interface ShiftInputListParams {
|
|
320
|
+
expand?: string;
|
|
321
|
+
|
|
322
|
+
filter?: string;
|
|
323
|
+
|
|
324
|
+
order_by?: string;
|
|
325
|
+
}
|
|
326
|
+
|
|
319
327
|
export interface ShiftInputCreateParams {
|
|
320
328
|
/**
|
|
321
329
|
* Two letter string designating country code which the shift input is associated.
|
|
@@ -374,25 +382,17 @@ export interface ShiftInputUpdateParams {
|
|
|
374
382
|
creator_id?: string;
|
|
375
383
|
}
|
|
376
384
|
|
|
377
|
-
export interface ShiftInputListParams {
|
|
378
|
-
expand?: string;
|
|
379
|
-
|
|
380
|
-
filter?: string;
|
|
381
|
-
|
|
382
|
-
order_by?: string;
|
|
383
|
-
}
|
|
384
|
-
|
|
385
385
|
export declare namespace ShiftInputs {
|
|
386
386
|
export {
|
|
387
387
|
type ShiftInput as ShiftInput,
|
|
388
|
+
type ShiftInputListResponse as ShiftInputListResponse,
|
|
388
389
|
type ShiftInputCreateResponse as ShiftInputCreateResponse,
|
|
389
390
|
type ShiftInputRetrieveResponse as ShiftInputRetrieveResponse,
|
|
390
391
|
type ShiftInputUpdateResponse as ShiftInputUpdateResponse,
|
|
391
|
-
type ShiftInputListResponse as ShiftInputListResponse,
|
|
392
392
|
type ShiftInputListResponsesPageCursorURL as ShiftInputListResponsesPageCursorURL,
|
|
393
|
+
type ShiftInputListParams as ShiftInputListParams,
|
|
393
394
|
type ShiftInputCreateParams as ShiftInputCreateParams,
|
|
394
395
|
type ShiftInputRetrieveParams as ShiftInputRetrieveParams,
|
|
395
396
|
type ShiftInputUpdateParams as ShiftInputUpdateParams,
|
|
396
|
-
type ShiftInputListParams as ShiftInputListParams,
|
|
397
397
|
};
|
|
398
398
|
}
|
|
@@ -9,17 +9,6 @@ import { RequestOptions } from '../internal/request-options';
|
|
|
9
9
|
import { path } from '../internal/utils/path';
|
|
10
10
|
|
|
11
11
|
export class Shiftassignments extends APIResource {
|
|
12
|
-
/**
|
|
13
|
-
* Retrieve a specific shift assignment
|
|
14
|
-
*/
|
|
15
|
-
retrieve(
|
|
16
|
-
id: string,
|
|
17
|
-
query: ShiftassignmentRetrieveParams | null | undefined = {},
|
|
18
|
-
options?: RequestOptions,
|
|
19
|
-
): APIPromise<ShiftassignmentRetrieveResponse> {
|
|
20
|
-
return this._client.get(path`/shiftassignments/${id}`, { query, ...options });
|
|
21
|
-
}
|
|
22
|
-
|
|
23
12
|
/**
|
|
24
13
|
* A List of shift assignments
|
|
25
14
|
*
|
|
@@ -38,14 +27,22 @@ export class Shiftassignments extends APIResource {
|
|
|
38
27
|
...options,
|
|
39
28
|
});
|
|
40
29
|
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Retrieve a specific shift assignment
|
|
33
|
+
*/
|
|
34
|
+
retrieve(
|
|
35
|
+
id: string,
|
|
36
|
+
query: ShiftassignmentRetrieveParams | null | undefined = {},
|
|
37
|
+
options?: RequestOptions,
|
|
38
|
+
): APIPromise<ShiftassignmentRetrieveResponse> {
|
|
39
|
+
return this._client.get(path`/shiftassignments/${id}`, { query, ...options });
|
|
40
|
+
}
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
export type ShiftassignmentListResponsesPageCursorURL = PageCursorURL<ShiftassignmentListResponse>;
|
|
44
44
|
|
|
45
|
-
|
|
46
|
-
* Meta information for the response.
|
|
47
|
-
*/
|
|
48
|
-
export interface ShiftassignmentRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
45
|
+
export interface ShiftassignmentListResponse {
|
|
49
46
|
/**
|
|
50
47
|
* Identifier field
|
|
51
48
|
*/
|
|
@@ -76,14 +73,14 @@ export interface ShiftassignmentRetrieveResponse extends BusinessPartnersAPI.Met
|
|
|
76
73
|
* The published version of the shift assignment, if it exists. If filled but
|
|
77
74
|
* is_published is false, the shift_data is the latest version.
|
|
78
75
|
*/
|
|
79
|
-
published_version?:
|
|
76
|
+
published_version?: ShiftassignmentListResponse.PublishedVersion;
|
|
80
77
|
|
|
81
78
|
/**
|
|
82
79
|
* The schedule
|
|
83
80
|
*
|
|
84
81
|
* Expandable field
|
|
85
82
|
*/
|
|
86
|
-
schedule?:
|
|
83
|
+
schedule?: ShiftassignmentListResponse.Schedule;
|
|
87
84
|
|
|
88
85
|
/**
|
|
89
86
|
* The ID of the schedule
|
|
@@ -93,7 +90,7 @@ export interface ShiftassignmentRetrieveResponse extends BusinessPartnersAPI.Met
|
|
|
93
90
|
/**
|
|
94
91
|
* The data of the shift
|
|
95
92
|
*/
|
|
96
|
-
shift_data?:
|
|
93
|
+
shift_data?: ShiftassignmentListResponse.ShiftData;
|
|
97
94
|
|
|
98
95
|
/**
|
|
99
96
|
* The worker
|
|
@@ -108,7 +105,7 @@ export interface ShiftassignmentRetrieveResponse extends BusinessPartnersAPI.Met
|
|
|
108
105
|
worker_id?: string;
|
|
109
106
|
}
|
|
110
107
|
|
|
111
|
-
export namespace
|
|
108
|
+
export namespace ShiftassignmentListResponse {
|
|
112
109
|
/**
|
|
113
110
|
* The published version of the shift assignment, if it exists. If filled but
|
|
114
111
|
* is_published is false, the shift_data is the latest version.
|
|
@@ -301,7 +298,10 @@ export namespace ShiftassignmentRetrieveResponse {
|
|
|
301
298
|
}
|
|
302
299
|
}
|
|
303
300
|
|
|
304
|
-
|
|
301
|
+
/**
|
|
302
|
+
* Meta information for the response.
|
|
303
|
+
*/
|
|
304
|
+
export interface ShiftassignmentRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
305
305
|
/**
|
|
306
306
|
* Identifier field
|
|
307
307
|
*/
|
|
@@ -332,14 +332,14 @@ export interface ShiftassignmentListResponse {
|
|
|
332
332
|
* The published version of the shift assignment, if it exists. If filled but
|
|
333
333
|
* is_published is false, the shift_data is the latest version.
|
|
334
334
|
*/
|
|
335
|
-
published_version?:
|
|
335
|
+
published_version?: ShiftassignmentRetrieveResponse.PublishedVersion;
|
|
336
336
|
|
|
337
337
|
/**
|
|
338
338
|
* The schedule
|
|
339
339
|
*
|
|
340
340
|
* Expandable field
|
|
341
341
|
*/
|
|
342
|
-
schedule?:
|
|
342
|
+
schedule?: ShiftassignmentRetrieveResponse.Schedule;
|
|
343
343
|
|
|
344
344
|
/**
|
|
345
345
|
* The ID of the schedule
|
|
@@ -349,7 +349,7 @@ export interface ShiftassignmentListResponse {
|
|
|
349
349
|
/**
|
|
350
350
|
* The data of the shift
|
|
351
351
|
*/
|
|
352
|
-
shift_data?:
|
|
352
|
+
shift_data?: ShiftassignmentRetrieveResponse.ShiftData;
|
|
353
353
|
|
|
354
354
|
/**
|
|
355
355
|
* The worker
|
|
@@ -364,7 +364,7 @@ export interface ShiftassignmentListResponse {
|
|
|
364
364
|
worker_id?: string;
|
|
365
365
|
}
|
|
366
366
|
|
|
367
|
-
export namespace
|
|
367
|
+
export namespace ShiftassignmentRetrieveResponse {
|
|
368
368
|
/**
|
|
369
369
|
* The published version of the shift assignment, if it exists. If filled but
|
|
370
370
|
* is_published is false, the shift_data is the latest version.
|
|
@@ -557,10 +557,6 @@ export namespace ShiftassignmentListResponse {
|
|
|
557
557
|
}
|
|
558
558
|
}
|
|
559
559
|
|
|
560
|
-
export interface ShiftassignmentRetrieveParams {
|
|
561
|
-
expand?: string;
|
|
562
|
-
}
|
|
563
|
-
|
|
564
560
|
export interface ShiftassignmentListParams {
|
|
565
561
|
expand?: string;
|
|
566
562
|
|
|
@@ -569,12 +565,16 @@ export interface ShiftassignmentListParams {
|
|
|
569
565
|
order_by?: string;
|
|
570
566
|
}
|
|
571
567
|
|
|
568
|
+
export interface ShiftassignmentRetrieveParams {
|
|
569
|
+
expand?: string;
|
|
570
|
+
}
|
|
571
|
+
|
|
572
572
|
export declare namespace Shiftassignments {
|
|
573
573
|
export {
|
|
574
|
-
type ShiftassignmentRetrieveResponse as ShiftassignmentRetrieveResponse,
|
|
575
574
|
type ShiftassignmentListResponse as ShiftassignmentListResponse,
|
|
575
|
+
type ShiftassignmentRetrieveResponse as ShiftassignmentRetrieveResponse,
|
|
576
576
|
type ShiftassignmentListResponsesPageCursorURL as ShiftassignmentListResponsesPageCursorURL,
|
|
577
|
-
type ShiftassignmentRetrieveParams as ShiftassignmentRetrieveParams,
|
|
578
577
|
type ShiftassignmentListParams as ShiftassignmentListParams,
|
|
578
|
+
type ShiftassignmentRetrieveParams as ShiftassignmentRetrieveParams,
|
|
579
579
|
};
|
|
580
580
|
}
|