@dsptch-work/api-client 0.47.0 → 0.48.0
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/CHANGELOG.md +39 -0
- package/dist/gen/index.d.ts +1 -1
- package/dist/gen/sdk.gen.d.ts +68 -24
- package/dist/gen/sdk.gen.js +77 -23
- package/dist/gen/types.gen.d.ts +194 -16
- package/dist/gen/zod.gen.d.ts +264 -51
- package/dist/gen/zod.gen.js +82 -7
- package/package.json +1 -1
package/dist/gen/types.gen.d.ts
CHANGED
|
@@ -237,12 +237,6 @@ export type Problem = {
|
|
|
237
237
|
*
|
|
238
238
|
* The item cannot be unarchived while its product is still archived — an item never lives active inside an archived product. Unarchive the product instead, which restores the item along with the rest of the product's holdings.
|
|
239
239
|
*
|
|
240
|
-
* ### recorded_since_termination
|
|
241
|
-
*
|
|
242
|
-
* **Timecode Changed Since Termination**
|
|
243
|
-
*
|
|
244
|
-
* Cancelling this timecode's scheduled termination would silently discard changes recorded since it was terminated. Re-read the timecode and reconcile before retrying.
|
|
245
|
-
*
|
|
246
240
|
* ### span_beyond_timeline_end
|
|
247
241
|
*
|
|
248
242
|
* **Span Beyond Timeline End**
|
|
@@ -424,7 +418,7 @@ export type Problem = {
|
|
|
424
418
|
* Another write to the same resource held it for longer than this request was willing to wait, or collided with it, so nothing was applied. The request itself is fine — resend it unchanged after the `Retry-After` window.
|
|
425
419
|
*
|
|
426
420
|
*/
|
|
427
|
-
export type ProblemTypeCatalog = 'blank_axis' | 'invalid_cursor' | 'invalid_filter_key' | 'invalid_limit' | 'invalid_signature' | 'malformed_body' | 'non_range_filter_value' | 'non_scalar_axis' | 'non_scalar_filter_value' | 'parameter_missing' | 'parameter_not_object' | 'unknown_axis' | 'unknown_key' | 'unsupported_axis' | 'valid_axis_on_timeline' | 'unauthorized' | 'company_scoped_key_required' | 'forbidden' | 'forbidden_key' | 'insufficient_api_key_scope' | 'user_scoped_key_required' | 'not_found' | 'already_subscribed' | 'already_terminated' | 'authorization_revoked' | 'import_in_progress' | 'pay_schedule_already_exists' | 'pay_schedule_deletion_in_progress' | 'pay_schedule_deletion_refused' | 'product_archived' | '
|
|
421
|
+
export type ProblemTypeCatalog = 'blank_axis' | 'invalid_cursor' | 'invalid_filter_key' | 'invalid_limit' | 'invalid_signature' | 'malformed_body' | 'non_range_filter_value' | 'non_scalar_axis' | 'non_scalar_filter_value' | 'parameter_missing' | 'parameter_not_object' | 'unknown_axis' | 'unknown_key' | 'unsupported_axis' | 'valid_axis_on_timeline' | 'unauthorized' | 'company_scoped_key_required' | 'forbidden' | 'forbidden_key' | 'insufficient_api_key_scope' | 'user_scoped_key_required' | 'not_found' | 'already_subscribed' | 'already_terminated' | 'authorization_revoked' | 'import_in_progress' | 'pay_schedule_already_exists' | 'pay_schedule_deletion_in_progress' | 'pay_schedule_deletion_refused' | 'product_archived' | 'span_beyond_timeline_end' | 'version_overlap' | 'precondition_failed' | 'attachment_not_image' | 'certified_payroll_format_unavailable' | 'company_not_employer' | 'confirm_apprenticeship_conflict' | 'destroy_restricted' | 'interval_too_wide' | 'invalid_date' | 'invalid_filter_value' | 'invalid_iso8601_duration' | 'invalid_placement_move' | 'invalid_signed_id' | 'not_incomplete_permanent_copy' | 'nothing_exportable' | 'nothing_to_cancel' | 'pagination_failed' | 'subtype_foreign_keys' | 'synced_determination' | 'user_not_company_member' | 'validation_failed' | 'wage_schedule_outside_program' | 'precondition_required' | 'too_many_requests' | 'internal_error' | 'database_timeout' | 'write_contended';
|
|
428
422
|
export type ApiKeyScopeResponseObject = {
|
|
429
423
|
resource: string;
|
|
430
424
|
action: 'read' | 'create' | 'update' | 'delete';
|
|
@@ -3796,6 +3790,71 @@ export type PayPeriodConfigParameters = {
|
|
|
3796
3790
|
*/
|
|
3797
3791
|
time_card_auto_lock_days?: number | null;
|
|
3798
3792
|
};
|
|
3793
|
+
/**
|
|
3794
|
+
* Schedule a change to an existing pay schedule. effective_date is required; other fields are optional. tz_name, time_mode, and payroll_mode are refused.
|
|
3795
|
+
*/
|
|
3796
|
+
export type PayPeriodConfigUpdateParameters = {
|
|
3797
|
+
/**
|
|
3798
|
+
* Date the submitted attributes take effect (YYYY-MM-DD), at midnight in the schedule's time zone. Its weekday must match start_day_of_week; the API never snaps to another day.
|
|
3799
|
+
*/
|
|
3800
|
+
effective_date: string;
|
|
3801
|
+
/**
|
|
3802
|
+
* Pay frequency: weekly (7 days) or biweekly (14 days).
|
|
3803
|
+
*/
|
|
3804
|
+
frequency?: 'weekly' | 'biweekly';
|
|
3805
|
+
/**
|
|
3806
|
+
* Day the pay period begins, 0 (Sunday) through 6 (Saturday). Must match the effective date's weekday.
|
|
3807
|
+
*/
|
|
3808
|
+
start_day_of_week?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
3809
|
+
/**
|
|
3810
|
+
* Refused. A pay schedule's time zone cannot be changed after creation.
|
|
3811
|
+
*/
|
|
3812
|
+
tz_name?: string;
|
|
3813
|
+
/**
|
|
3814
|
+
* Time rounding in minutes, 1 or 15.
|
|
3815
|
+
*/
|
|
3816
|
+
rounding_interval?: 1 | 15;
|
|
3817
|
+
/**
|
|
3818
|
+
* Payroll provider; send null to clear.
|
|
3819
|
+
*/
|
|
3820
|
+
payroll_system?: 'rippling' | 'quickbooks_online' | 'paychex' | 'gusto' | null;
|
|
3821
|
+
/**
|
|
3822
|
+
* Move pay dates after banking holidays rather than before.
|
|
3823
|
+
*/
|
|
3824
|
+
paid_after_holiday?: boolean;
|
|
3825
|
+
/**
|
|
3826
|
+
* Whole days from the pay period's end to payday; must cover both deadline intervals.
|
|
3827
|
+
*/
|
|
3828
|
+
arrear_days?: number;
|
|
3829
|
+
/**
|
|
3830
|
+
* Calendar-day lead for the pay-run deadline. Send together with pay_run_deadline_clock_time.
|
|
3831
|
+
*/
|
|
3832
|
+
pay_run_deadline_days?: number;
|
|
3833
|
+
/**
|
|
3834
|
+
* Pay-run deadline's local clock time (HH:MM). Send together with pay_run_deadline_days.
|
|
3835
|
+
*/
|
|
3836
|
+
pay_run_deadline_clock_time?: string;
|
|
3837
|
+
/**
|
|
3838
|
+
* Whole calendar days before the pay-run deadline's date when approvals are due. Send together with approvals_deadline_clock_time.
|
|
3839
|
+
*/
|
|
3840
|
+
approvals_deadline_days?: number;
|
|
3841
|
+
/**
|
|
3842
|
+
* Approvals deadline's local clock time (HH:MM). Send together with approvals_deadline_days.
|
|
3843
|
+
*/
|
|
3844
|
+
approvals_deadline_clock_time?: string;
|
|
3845
|
+
/**
|
|
3846
|
+
* Signed days from the pay-run deadline until time cards lock; negative values lock earlier, 0 locks at the deadline, null disables locking.
|
|
3847
|
+
*/
|
|
3848
|
+
time_card_auto_lock_days?: number | null;
|
|
3849
|
+
/**
|
|
3850
|
+
* Refused. Delete the pay schedule and create it again to change time_mode.
|
|
3851
|
+
*/
|
|
3852
|
+
time_mode?: 'none' | 'base' | 'aggregate';
|
|
3853
|
+
/**
|
|
3854
|
+
* Refused. Delete the pay schedule and create it again to change payroll_mode.
|
|
3855
|
+
*/
|
|
3856
|
+
payroll_mode?: 'none' | 'base' | 'aggregate' | null;
|
|
3857
|
+
};
|
|
3799
3858
|
/**
|
|
3800
3859
|
* A pay schedule (PayPeriodConfig) — the top-level timekeeping unit that sets a company's payroll cadence and tracking modes and generates its stream of pay periods. Reads return the version valid at the requested time; create returns the new schedule, keyed by its stable id.
|
|
3801
3860
|
*/
|
|
@@ -12190,7 +12249,7 @@ export type ProductionJobScopePriceResponseObject = {
|
|
|
12190
12249
|
*/
|
|
12191
12250
|
unit_of_measure: string;
|
|
12192
12251
|
/**
|
|
12193
|
-
* Billing rate per unit in cents, as a decimal string (e.g. "120000.0" is $1,200.00 and "3.5" is $0.035); a fraction of a cent is kept exactly. Null means the current price is unknown; "0.0" is a known zero price. Present for company keys and for administrators, managers, safety managers
|
|
12252
|
+
* Billing rate per unit in cents, as a decimal string (e.g. "120000.0" is $1,200.00 and "3.5" is $0.035); a fraction of a cent is kept exactly. Null means the current price is unknown; "0.0" is a known zero price. Present for company keys and for administrators, managers, and safety managers of the company that owns the job; omitted for other user keys, including field leads.
|
|
12194
12253
|
*/
|
|
12195
12254
|
unit_price_cents?: string | null;
|
|
12196
12255
|
/**
|
|
@@ -13255,21 +13314,88 @@ export type LaborRateResponseObject = {
|
|
|
13255
13314
|
*/
|
|
13256
13315
|
wage_pay_base_rate_cents: string;
|
|
13257
13316
|
/**
|
|
13258
|
-
* Hourly
|
|
13317
|
+
* Hourly amount printed in the rate cell, in cents as a decimal string (e.g. "1200.0" is $12.00); null when absent. This source component may coexist with other benefits. Use fringe_calculation to determine whether a complete hourly projection is available.
|
|
13259
13318
|
*/
|
|
13260
13319
|
fringe_rate_cents: string | null;
|
|
13261
13320
|
/**
|
|
13262
|
-
*
|
|
13321
|
+
* Percentage printed in the fringe cell as a decimal string (e.g. "15.00" is 15%); null when absent. It may coexist with an hourly component and requires evaluation before automatic calculation.
|
|
13263
13322
|
*/
|
|
13264
13323
|
fringe_percentage_rate: string | null;
|
|
13265
13324
|
/**
|
|
13266
|
-
*
|
|
13325
|
+
* Weekly amount printed in the rate cell, in cents as a decimal string; null when absent. Additional prose benefits appear in fringe_benefit_components.
|
|
13267
13326
|
*/
|
|
13268
13327
|
fringe_benefit_weekly_rate_cents: string | null;
|
|
13269
13328
|
/**
|
|
13270
|
-
*
|
|
13329
|
+
* Monthly amount printed in the rate cell, in cents as a decimal string; null when absent. Additional prose benefits appear in fringe_benefit_components.
|
|
13271
13330
|
*/
|
|
13272
13331
|
fringe_benefit_monthly_rate_cents: string | null;
|
|
13332
|
+
fringe_calculation: {
|
|
13333
|
+
/**
|
|
13334
|
+
* Whether all stated fringe benefits have a supported complete hourly projection.
|
|
13335
|
+
*/
|
|
13336
|
+
available: boolean;
|
|
13337
|
+
/**
|
|
13338
|
+
* Complete hourly fringe in decimal cents, or null when calculation is unavailable. Never substitute a partial hourly amount or zero for null.
|
|
13339
|
+
*/
|
|
13340
|
+
hourly_cents: string | null;
|
|
13341
|
+
/**
|
|
13342
|
+
* Machine-readable reasons preventing automatic calculation.
|
|
13343
|
+
*/
|
|
13344
|
+
reasons: Array<string>;
|
|
13345
|
+
/**
|
|
13346
|
+
* Source evidence considered when determining calculation readiness for this classification.
|
|
13347
|
+
*/
|
|
13348
|
+
component_ids: Array<string>;
|
|
13349
|
+
};
|
|
13350
|
+
/**
|
|
13351
|
+
* Monetary source occurrences attached to this rate, plus unresolved occurrences from its schedule, preserved individually without adding repeated or conflicting amounts. Each occurrence states its attachment status.
|
|
13352
|
+
*/
|
|
13353
|
+
fringe_benefit_components: Array<{
|
|
13354
|
+
/**
|
|
13355
|
+
* Identifier of this captured source occurrence.
|
|
13356
|
+
*/
|
|
13357
|
+
id: string;
|
|
13358
|
+
/**
|
|
13359
|
+
* Zero-based printed order within the schedule.
|
|
13360
|
+
*/
|
|
13361
|
+
position: number;
|
|
13362
|
+
/**
|
|
13363
|
+
* Exact stated monetary amount as decimal cents; not an hourly conversion.
|
|
13364
|
+
*/
|
|
13365
|
+
amount_cents: string;
|
|
13366
|
+
/**
|
|
13367
|
+
* Period printed with the monetary amount.
|
|
13368
|
+
*/
|
|
13369
|
+
period: 'hour' | 'day' | 'week' | 'month' | 'year' | 'shift';
|
|
13370
|
+
/**
|
|
13371
|
+
* Whether the clause describes a fringe contribution, a wage premium, or an unresolved monetary term.
|
|
13372
|
+
*/
|
|
13373
|
+
kind: 'fringe' | 'wage_premium' | 'unresolved';
|
|
13374
|
+
/**
|
|
13375
|
+
* Verbatim surrounding source paragraph, including stated qualifications.
|
|
13376
|
+
*/
|
|
13377
|
+
text: string;
|
|
13378
|
+
/**
|
|
13379
|
+
* Rate means the source establishes the attached classification; unresolved means applicability has not been established and must not be assumed schedule-wide.
|
|
13380
|
+
*/
|
|
13381
|
+
attachment_status: 'rate' | 'unresolved';
|
|
13382
|
+
/**
|
|
13383
|
+
* Attached labor rate identifier, or null when applicability is unresolved.
|
|
13384
|
+
*/
|
|
13385
|
+
labor_rate_id: string | null;
|
|
13386
|
+
/**
|
|
13387
|
+
* SHA256 of the normalized source document addressed by the character offsets.
|
|
13388
|
+
*/
|
|
13389
|
+
source_sha256: string;
|
|
13390
|
+
/**
|
|
13391
|
+
* Inclusive character offset of the monetary occurrence within the normalized source document.
|
|
13392
|
+
*/
|
|
13393
|
+
start_offset: number;
|
|
13394
|
+
/**
|
|
13395
|
+
* Exclusive character offset of the monetary occurrence within the normalized source document.
|
|
13396
|
+
*/
|
|
13397
|
+
end_offset: number;
|
|
13398
|
+
}>;
|
|
13273
13399
|
/**
|
|
13274
13400
|
* IDs of the reference items this rate cites, in the order their letter tokens appear in the source fringe expression.
|
|
13275
13401
|
*/
|
|
@@ -25089,6 +25215,10 @@ export type DeleteGroupErrors = {
|
|
|
25089
25215
|
* Not Found
|
|
25090
25216
|
*/
|
|
25091
25217
|
404: Problem;
|
|
25218
|
+
/**
|
|
25219
|
+
* Unprocessable Content (group is followed)
|
|
25220
|
+
*/
|
|
25221
|
+
422: Problem;
|
|
25092
25222
|
};
|
|
25093
25223
|
export type DeleteGroupError = DeleteGroupErrors[keyof DeleteGroupErrors];
|
|
25094
25224
|
export type DeleteGroupResponses = {
|
|
@@ -34959,6 +35089,10 @@ export type UpdateApprenticeshipOccupationErrors = {
|
|
|
34959
35089
|
* Forbidden
|
|
34960
35090
|
*/
|
|
34961
35091
|
403: Problem;
|
|
35092
|
+
/**
|
|
35093
|
+
* Not Found
|
|
35094
|
+
*/
|
|
35095
|
+
404: Problem;
|
|
34962
35096
|
/**
|
|
34963
35097
|
* Unprocessable Content
|
|
34964
35098
|
*/
|
|
@@ -36530,10 +36664,6 @@ export type CancelTimecodeScheduledTerminationErrors = {
|
|
|
36530
36664
|
* Not Found
|
|
36531
36665
|
*/
|
|
36532
36666
|
404: Problem;
|
|
36533
|
-
/**
|
|
36534
|
-
* Conflict
|
|
36535
|
-
*/
|
|
36536
|
-
409: Problem;
|
|
36537
36667
|
/**
|
|
36538
36668
|
* Precondition Failed
|
|
36539
36669
|
*/
|
|
@@ -37375,6 +37505,54 @@ export type GetPayPeriodConfigResponses = {
|
|
|
37375
37505
|
200: PayPeriodConfigResponseObject;
|
|
37376
37506
|
};
|
|
37377
37507
|
export type GetPayPeriodConfigResponse = GetPayPeriodConfigResponses[keyof GetPayPeriodConfigResponses];
|
|
37508
|
+
export type UpdatePayPeriodConfigData = {
|
|
37509
|
+
body: PayPeriodConfigUpdateParameters;
|
|
37510
|
+
headers: {
|
|
37511
|
+
/**
|
|
37512
|
+
* Version validator this write is composed against — the `ETag` from a read of this schedule, or `*` to write against whatever exists. See "Version validators" in the API overview.
|
|
37513
|
+
*/
|
|
37514
|
+
'If-Match': string;
|
|
37515
|
+
};
|
|
37516
|
+
path: {
|
|
37517
|
+
id: string;
|
|
37518
|
+
};
|
|
37519
|
+
query?: never;
|
|
37520
|
+
url: '/api/v1/timekeeping/pay_period_configs/{id}';
|
|
37521
|
+
};
|
|
37522
|
+
export type UpdatePayPeriodConfigErrors = {
|
|
37523
|
+
/**
|
|
37524
|
+
* Bad Request
|
|
37525
|
+
*/
|
|
37526
|
+
400: Problem;
|
|
37527
|
+
/**
|
|
37528
|
+
* Forbidden
|
|
37529
|
+
*/
|
|
37530
|
+
403: Problem;
|
|
37531
|
+
/**
|
|
37532
|
+
* Not Found
|
|
37533
|
+
*/
|
|
37534
|
+
404: Problem;
|
|
37535
|
+
/**
|
|
37536
|
+
* Precondition Failed
|
|
37537
|
+
*/
|
|
37538
|
+
412: Problem;
|
|
37539
|
+
/**
|
|
37540
|
+
* Invalid configuration
|
|
37541
|
+
*/
|
|
37542
|
+
422: Problem;
|
|
37543
|
+
/**
|
|
37544
|
+
* Precondition Required
|
|
37545
|
+
*/
|
|
37546
|
+
428: Problem;
|
|
37547
|
+
};
|
|
37548
|
+
export type UpdatePayPeriodConfigError = UpdatePayPeriodConfigErrors[keyof UpdatePayPeriodConfigErrors];
|
|
37549
|
+
export type UpdatePayPeriodConfigResponses = {
|
|
37550
|
+
/**
|
|
37551
|
+
* Accepted
|
|
37552
|
+
*/
|
|
37553
|
+
202: PayPeriodConfigResponseObject;
|
|
37554
|
+
};
|
|
37555
|
+
export type UpdatePayPeriodConfigResponse = UpdatePayPeriodConfigResponses[keyof UpdatePayPeriodConfigResponses];
|
|
37378
37556
|
export type ListTimeCardActualsData = {
|
|
37379
37557
|
body?: never;
|
|
37380
37558
|
path?: never;
|