@rippling/rippling-sdk 0.2.0-alpha.21 → 0.2.0-alpha.23
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 +42 -38
- package/client.d.mts.map +1 -1
- package/client.d.ts +42 -38
- 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/to-file.d.mts +1 -1
- package/internal/to-file.d.ts +1 -1
- package/internal/to-file.js +1 -1
- package/internal/to-file.mjs +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 +415 -0
- package/resources/draft-hires.d.mts.map +1 -0
- package/resources/draft-hires.d.ts +415 -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 +154 -12
- package/resources/schedules.d.mts.map +1 -1
- package/resources/schedules.d.ts +154 -12
- package/resources/schedules.d.ts.map +1 -1
- package/resources/schedules.js +12 -6
- package/resources/schedules.js.map +1 -1
- package/resources/schedules.mjs +12 -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 +55 -21
- package/resources/shiftassignments.d.mts.map +1 -1
- package/resources/shiftassignments.d.ts +55 -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 +11 -11
- package/resources/workers.d.mts.map +1 -1
- package/resources/workers.d.ts +11 -11
- 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 +112 -90
- package/src/internal/to-file.ts +1 -1
- 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 +504 -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 +42 -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 +193 -20
- package/src/resources/shared.ts +1 -0
- package/src/resources/shift-inputs.ts +35 -35
- package/src/resources/shiftassignments.ts +68 -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 +19 -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,32 @@ 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
|
+
* Create a new schedule
|
|
28
|
+
*/
|
|
29
|
+
create(
|
|
30
|
+
body: ScheduleCreateParams | null | undefined = {},
|
|
31
|
+
options?: RequestOptions,
|
|
32
|
+
): APIPromise<ScheduleCreateResponse> {
|
|
33
|
+
return this._client.post('/schedules', { body, ...options });
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Retrieve a specific schedule
|
|
38
|
+
*/
|
|
39
|
+
retrieve(
|
|
40
|
+
id: string,
|
|
41
|
+
query: ScheduleRetrieveParams | null | undefined = {},
|
|
42
|
+
options?: RequestOptions,
|
|
43
|
+
): APIPromise<ScheduleRetrieveResponse> {
|
|
44
|
+
return this._client.get(path`/schedules/${id}`, { query, ...options });
|
|
45
|
+
}
|
|
36
46
|
}
|
|
37
47
|
|
|
38
48
|
export type ScheduleListResponsesPageCursorURL = PageCursorURL<ScheduleListResponse>;
|
|
39
49
|
|
|
40
|
-
|
|
41
|
-
* Meta information for the response.
|
|
42
|
-
*/
|
|
43
|
-
export interface ScheduleRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
50
|
+
export interface ScheduleListResponse {
|
|
44
51
|
/**
|
|
45
52
|
* Identifier field
|
|
46
53
|
*/
|
|
@@ -101,9 +108,28 @@ export interface ScheduleRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
|
101
108
|
* The IDs of the observers of the schedule.
|
|
102
109
|
*/
|
|
103
110
|
observers_id?: Array<string>;
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* The settings of the schedule.
|
|
114
|
+
*/
|
|
115
|
+
settings?: ScheduleListResponse.Settings;
|
|
104
116
|
}
|
|
105
117
|
|
|
106
|
-
export
|
|
118
|
+
export namespace ScheduleListResponse {
|
|
119
|
+
/**
|
|
120
|
+
* The settings of the schedule.
|
|
121
|
+
*/
|
|
122
|
+
export interface Settings {
|
|
123
|
+
/**
|
|
124
|
+
* The IANA timezone identifier for the schedule (e.g., 'America/New_York').
|
|
125
|
+
* Accepted values are defined by the tz database, listed here:
|
|
126
|
+
* https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
|
|
127
|
+
*/
|
|
128
|
+
timezone?: string;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export interface ScheduleCreateResponse {
|
|
107
133
|
/**
|
|
108
134
|
* Identifier field
|
|
109
135
|
*/
|
|
@@ -164,10 +190,110 @@ export interface ScheduleListResponse {
|
|
|
164
190
|
* The IDs of the observers of the schedule.
|
|
165
191
|
*/
|
|
166
192
|
observers_id?: Array<string>;
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* The settings of the schedule.
|
|
196
|
+
*/
|
|
197
|
+
settings?: ScheduleCreateResponse.Settings;
|
|
167
198
|
}
|
|
168
199
|
|
|
169
|
-
export
|
|
170
|
-
|
|
200
|
+
export namespace ScheduleCreateResponse {
|
|
201
|
+
/**
|
|
202
|
+
* The settings of the schedule.
|
|
203
|
+
*/
|
|
204
|
+
export interface Settings {
|
|
205
|
+
/**
|
|
206
|
+
* The IANA timezone identifier for the schedule (e.g., 'America/New_York').
|
|
207
|
+
* Accepted values are defined by the tz database, listed here:
|
|
208
|
+
* https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
|
|
209
|
+
*/
|
|
210
|
+
timezone?: string;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* Meta information for the response.
|
|
216
|
+
*/
|
|
217
|
+
export interface ScheduleRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
218
|
+
/**
|
|
219
|
+
* Identifier field
|
|
220
|
+
*/
|
|
221
|
+
id: string;
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* Record creation date
|
|
225
|
+
*/
|
|
226
|
+
created_at: string;
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* Record update date
|
|
230
|
+
*/
|
|
231
|
+
updated_at: string;
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* Whether the requesting role can edit the schedule.
|
|
235
|
+
*/
|
|
236
|
+
can_edit?: boolean;
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* The managers of the schedule.
|
|
240
|
+
*
|
|
241
|
+
* Expandable field
|
|
242
|
+
*/
|
|
243
|
+
managers?: Array<WorkersAPI.Worker>;
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* The IDs of the managers of the schedule.
|
|
247
|
+
*/
|
|
248
|
+
managers_id?: Array<string>;
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* The members of the schedule.
|
|
252
|
+
*
|
|
253
|
+
* Expandable field
|
|
254
|
+
*/
|
|
255
|
+
members?: Array<WorkersAPI.Worker>;
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* The IDs of the members of the schedule.
|
|
259
|
+
*/
|
|
260
|
+
members_id?: Array<string>;
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* The name of the schedule.
|
|
264
|
+
*/
|
|
265
|
+
name?: string;
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* The observers of the schedule.
|
|
269
|
+
*
|
|
270
|
+
* Expandable field
|
|
271
|
+
*/
|
|
272
|
+
observers?: Array<WorkersAPI.Worker>;
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* The IDs of the observers of the schedule.
|
|
276
|
+
*/
|
|
277
|
+
observers_id?: Array<string>;
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* The settings of the schedule.
|
|
281
|
+
*/
|
|
282
|
+
settings?: ScheduleRetrieveResponse.Settings;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
export namespace ScheduleRetrieveResponse {
|
|
286
|
+
/**
|
|
287
|
+
* The settings of the schedule.
|
|
288
|
+
*/
|
|
289
|
+
export interface Settings {
|
|
290
|
+
/**
|
|
291
|
+
* The IANA timezone identifier for the schedule (e.g., 'America/New_York').
|
|
292
|
+
* Accepted values are defined by the tz database, listed here:
|
|
293
|
+
* https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
|
|
294
|
+
*/
|
|
295
|
+
timezone?: string;
|
|
296
|
+
}
|
|
171
297
|
}
|
|
172
298
|
|
|
173
299
|
export interface ScheduleListParams {
|
|
@@ -176,12 +302,59 @@ export interface ScheduleListParams {
|
|
|
176
302
|
order_by?: string;
|
|
177
303
|
}
|
|
178
304
|
|
|
305
|
+
export interface ScheduleCreateParams {
|
|
306
|
+
/**
|
|
307
|
+
* The IDs of the managers of the schedule.
|
|
308
|
+
*/
|
|
309
|
+
managers_id?: Array<string>;
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* The IDs of the members of the schedule.
|
|
313
|
+
*/
|
|
314
|
+
members_id?: Array<string>;
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* The name of the schedule.
|
|
318
|
+
*/
|
|
319
|
+
name?: string;
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
* The IDs of the observers of the schedule.
|
|
323
|
+
*/
|
|
324
|
+
observers_id?: Array<string>;
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* The settings of the schedule.
|
|
328
|
+
*/
|
|
329
|
+
settings?: ScheduleCreateParams.Settings;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
export namespace ScheduleCreateParams {
|
|
333
|
+
/**
|
|
334
|
+
* The settings of the schedule.
|
|
335
|
+
*/
|
|
336
|
+
export interface Settings {
|
|
337
|
+
/**
|
|
338
|
+
* The IANA timezone identifier for the schedule (e.g., 'America/New_York').
|
|
339
|
+
* Accepted values are defined by the tz database, listed here:
|
|
340
|
+
* https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
|
|
341
|
+
*/
|
|
342
|
+
timezone?: string;
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
export interface ScheduleRetrieveParams {
|
|
347
|
+
expand?: string;
|
|
348
|
+
}
|
|
349
|
+
|
|
179
350
|
export declare namespace Schedules {
|
|
180
351
|
export {
|
|
181
|
-
type ScheduleRetrieveResponse as ScheduleRetrieveResponse,
|
|
182
352
|
type ScheduleListResponse as ScheduleListResponse,
|
|
353
|
+
type ScheduleCreateResponse as ScheduleCreateResponse,
|
|
354
|
+
type ScheduleRetrieveResponse as ScheduleRetrieveResponse,
|
|
183
355
|
type ScheduleListResponsesPageCursorURL as ScheduleListResponsesPageCursorURL,
|
|
184
|
-
type ScheduleRetrieveParams as ScheduleRetrieveParams,
|
|
185
356
|
type ScheduleListParams as ScheduleListParams,
|
|
357
|
+
type ScheduleCreateParams as ScheduleCreateParams,
|
|
358
|
+
type ScheduleRetrieveParams as ScheduleRetrieveParams,
|
|
186
359
|
};
|
|
187
360
|
}
|
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
|
}
|