@dsptch-work/api-client 0.20.0 → 0.21.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 +51 -0
- package/dist/gen/index.d.ts +2 -2
- package/dist/gen/index.js +1 -1
- package/dist/gen/sdk.gen.d.ts +257 -16
- package/dist/gen/sdk.gen.js +370 -15
- package/dist/gen/types.gen.d.ts +987 -52
- package/dist/gen/zod.gen.d.ts +2285 -977
- package/dist/gen/zod.gen.js +325 -16
- package/package.json +1 -1
package/dist/gen/types.gen.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ export type Problem = {
|
|
|
24
24
|
/**
|
|
25
25
|
* An opaque URN identifying this one occurrence of the failure, carrying the request's id. Quote it when correlating a failure with support or your logs.
|
|
26
26
|
*/
|
|
27
|
-
instance
|
|
27
|
+
instance: string;
|
|
28
28
|
/**
|
|
29
29
|
* Optional nonempty validation entries. Each item gives a readable detail and, when the server can prove a public body location, a pointer to it. Clients must accept entries without a pointer.
|
|
30
30
|
*/
|
|
@@ -1318,7 +1318,7 @@ export type TimecodeResponseObject = {
|
|
|
1318
1318
|
updated_at: string;
|
|
1319
1319
|
};
|
|
1320
1320
|
/**
|
|
1321
|
-
* An employment stint in the credential company. Its id is stable across valid-time versions; a rehire is a separate stint with a new id. A read returns only a version covering now or as_of[valid].
|
|
1321
|
+
* An employment stint in the credential company. Its id is stable across valid-time versions; a rehire is a separate stint with a new id. A read returns only a version covering now or as_of[valid]. Company keys, company administrators, and the employed person receive direct monetary fields; those fields are omitted for company managers reading coworkers.
|
|
1322
1322
|
*/
|
|
1323
1323
|
export type PeopleEmploymentResponseObject = {
|
|
1324
1324
|
/**
|
|
@@ -1394,21 +1394,21 @@ export type PeopleEmploymentResponseObject = {
|
|
|
1394
1394
|
*/
|
|
1395
1395
|
training_annual_minutes: number | null;
|
|
1396
1396
|
/**
|
|
1397
|
-
* Hourly pay in cents as a decimal string; null when unset.
|
|
1397
|
+
* Hourly pay in cents as a decimal string; present for company keys, company administrators, and the employed person, and null when authorized but unset.
|
|
1398
1398
|
*/
|
|
1399
|
-
hourly_rate_cents
|
|
1399
|
+
hourly_rate_cents?: string | null;
|
|
1400
1400
|
/**
|
|
1401
|
-
* Annual training amount in cents as a decimal string; null when unset.
|
|
1401
|
+
* Annual training amount in cents as a decimal string; present for company keys, company administrators, and the employed person, and null when authorized but unset.
|
|
1402
1402
|
*/
|
|
1403
|
-
training_annual_amount_cents
|
|
1403
|
+
training_annual_amount_cents?: string | null;
|
|
1404
1404
|
/**
|
|
1405
|
-
* Employer health amount in cents as a decimal string; null when unset.
|
|
1405
|
+
* Employer health amount in cents as a decimal string; present for company keys, company administrators, and the employed person, and null when authorized but unset.
|
|
1406
1406
|
*/
|
|
1407
|
-
employer_combined_health_amount_cents
|
|
1407
|
+
employer_combined_health_amount_cents?: string | null;
|
|
1408
1408
|
/**
|
|
1409
|
-
* Employer savings amount in cents as a decimal string; null when unset.
|
|
1409
|
+
* Employer savings amount in cents as a decimal string; present for company keys, company administrators, and the employed person, and null when authorized but unset.
|
|
1410
1410
|
*/
|
|
1411
|
-
employer_combined_savings_cents
|
|
1411
|
+
employer_combined_savings_cents?: string | null;
|
|
1412
1412
|
/**
|
|
1413
1413
|
* Currency from the company's current pay schedule, or the system default when it has none. It is company configuration context rather than historical employment data.
|
|
1414
1414
|
*/
|
|
@@ -1452,10 +1452,10 @@ export type PeopleEmploymentHistoryCorrectionObject = {
|
|
|
1452
1452
|
pto_annual_minutes: number | null;
|
|
1453
1453
|
holiday_annual_minutes: number | null;
|
|
1454
1454
|
training_annual_minutes: number | null;
|
|
1455
|
-
hourly_rate_cents
|
|
1456
|
-
training_annual_amount_cents
|
|
1457
|
-
employer_combined_health_amount_cents
|
|
1458
|
-
employer_combined_savings_cents
|
|
1455
|
+
hourly_rate_cents?: string | null;
|
|
1456
|
+
training_annual_amount_cents?: string | null;
|
|
1457
|
+
employer_combined_health_amount_cents?: string | null;
|
|
1458
|
+
employer_combined_savings_cents?: string | null;
|
|
1459
1459
|
currency: string;
|
|
1460
1460
|
valid_from: string | null;
|
|
1461
1461
|
valid_to: string | null;
|
|
@@ -1484,10 +1484,10 @@ export type PeopleEmploymentHistoryVersionObject = {
|
|
|
1484
1484
|
pto_annual_minutes: number | null;
|
|
1485
1485
|
holiday_annual_minutes: number | null;
|
|
1486
1486
|
training_annual_minutes: number | null;
|
|
1487
|
-
hourly_rate_cents
|
|
1488
|
-
training_annual_amount_cents
|
|
1489
|
-
employer_combined_health_amount_cents
|
|
1490
|
-
employer_combined_savings_cents
|
|
1487
|
+
hourly_rate_cents?: string | null;
|
|
1488
|
+
training_annual_amount_cents?: string | null;
|
|
1489
|
+
employer_combined_health_amount_cents?: string | null;
|
|
1490
|
+
employer_combined_savings_cents?: string | null;
|
|
1491
1491
|
currency: string;
|
|
1492
1492
|
valid_from: string | null;
|
|
1493
1493
|
valid_to: string | null;
|
|
@@ -6705,6 +6705,10 @@ export type ProjectResponseObject = {
|
|
|
6705
6705
|
* Identifier of the immediate parent project in the ancestry hierarchy, or null for a top-level project.
|
|
6706
6706
|
*/
|
|
6707
6707
|
parent_id: string | null;
|
|
6708
|
+
/**
|
|
6709
|
+
* Identifiers of companies participating in this project.
|
|
6710
|
+
*/
|
|
6711
|
+
participating_company_ids: Array<string>;
|
|
6708
6712
|
/**
|
|
6709
6713
|
* Federal PWA tracking mode: `all` (prevailing wage + apprenticeship), `pw_only` (prevailing wage), `ap_only` (apprenticeship), or `none`.
|
|
6710
6714
|
*/
|
|
@@ -6771,7 +6775,7 @@ export type ProjectResponseObject = {
|
|
|
6771
6775
|
updated_at: string;
|
|
6772
6776
|
};
|
|
6773
6777
|
/**
|
|
6774
|
-
* Request body for creating a project. `name` is required by the schema; `created_by_user_id` is additionally required on create and must be a member of the owning company. The owning company is inferred from the API key and is not part of the body.
|
|
6778
|
+
* Request body for creating or updating a project. Only `name` is required by the schema; `created_by_user_id` is additionally required on create and must be a member of the owning company. The owning company is inferred from the API key and is not part of the body. Omit relationship fields on PATCH to leave them unchanged.
|
|
6775
6779
|
*/
|
|
6776
6780
|
export type ProjectParameters = {
|
|
6777
6781
|
/**
|
|
@@ -6790,6 +6794,14 @@ export type ProjectParameters = {
|
|
|
6790
6794
|
* User recorded as the project's creator; must be a member of the owning company. Required on create and immutable thereafter — an update that sets, changes, or clears it is rejected.
|
|
6791
6795
|
*/
|
|
6792
6796
|
created_by_user_id: string;
|
|
6797
|
+
/**
|
|
6798
|
+
* ID of a project visible to the API key's policy. Send null to make the project a root; the child schedule must fit within the parent's schedule.
|
|
6799
|
+
*/
|
|
6800
|
+
parent_id?: string | null;
|
|
6801
|
+
/**
|
|
6802
|
+
* Complete desired set of participating company IDs. Send an empty array to clear the set. Remove a participant's jobs before removing it from this set.
|
|
6803
|
+
*/
|
|
6804
|
+
participating_company_ids?: Array<string>;
|
|
6793
6805
|
/**
|
|
6794
6806
|
* Schedule start date as an ISO8601 date (YYYY-MM-DD), or null; requires tz_name to be set.
|
|
6795
6807
|
*/
|
|
@@ -6871,6 +6883,14 @@ export type ProjectUpdateParameters = {
|
|
|
6871
6883
|
* User recorded as the project's creator; must be a member of the owning company. Required on create and immutable thereafter — an update that sets, changes, or clears it is rejected.
|
|
6872
6884
|
*/
|
|
6873
6885
|
created_by_user_id?: string | null;
|
|
6886
|
+
/**
|
|
6887
|
+
* ID of a project visible to the API key's policy. Send null to make the project a root; the child schedule must fit within the parent's schedule.
|
|
6888
|
+
*/
|
|
6889
|
+
parent_id?: string | null;
|
|
6890
|
+
/**
|
|
6891
|
+
* Complete desired set of participating company IDs. Send an empty array to clear the set. Remove a participant's jobs before removing it from this set.
|
|
6892
|
+
*/
|
|
6893
|
+
participating_company_ids?: Array<string>;
|
|
6874
6894
|
/**
|
|
6875
6895
|
* Schedule start date as an ISO8601 date (YYYY-MM-DD), or null; requires tz_name to be set.
|
|
6876
6896
|
*/
|
|
@@ -8129,6 +8149,10 @@ export type PositionResponseObject = {
|
|
|
8129
8149
|
* ID of the worker assigned to fill this position; null when the position is unfilled.
|
|
8130
8150
|
*/
|
|
8131
8151
|
fulfilled_by_user_id: string | null;
|
|
8152
|
+
/**
|
|
8153
|
+
* ID of the pay-rate rule package applied to this position, or null when none is set.
|
|
8154
|
+
*/
|
|
8155
|
+
pay_rates_rule_package_id: string | null;
|
|
8132
8156
|
position_function: PositionFunction;
|
|
8133
8157
|
/**
|
|
8134
8158
|
* Name of the per diem applied to this position; null when none is set.
|
|
@@ -8208,6 +8232,56 @@ export type PositionResponseObject = {
|
|
|
8208
8232
|
*/
|
|
8209
8233
|
updated_at: string;
|
|
8210
8234
|
};
|
|
8235
|
+
/**
|
|
8236
|
+
* A company-owned collection of conditional wage and fringe adjustments, optionally scoped to a job.
|
|
8237
|
+
*/
|
|
8238
|
+
export type PayRatesRulePackageResponseObject = {
|
|
8239
|
+
/**
|
|
8240
|
+
* Unique identifier of the rule package.
|
|
8241
|
+
*/
|
|
8242
|
+
id: string;
|
|
8243
|
+
/**
|
|
8244
|
+
* Human-readable package name.
|
|
8245
|
+
*/
|
|
8246
|
+
name: string;
|
|
8247
|
+
/**
|
|
8248
|
+
* Free-form package description, or null.
|
|
8249
|
+
*/
|
|
8250
|
+
description: string | null;
|
|
8251
|
+
/**
|
|
8252
|
+
* ID of the job this package is scoped to, or null for a company-wide package.
|
|
8253
|
+
*/
|
|
8254
|
+
scoped_to_job_id: string | null;
|
|
8255
|
+
/**
|
|
8256
|
+
* Whether this is the default package within its company-wide or job scope.
|
|
8257
|
+
*/
|
|
8258
|
+
default: boolean;
|
|
8259
|
+
/**
|
|
8260
|
+
* Whether users may select this package directly in configuration workflows.
|
|
8261
|
+
*/
|
|
8262
|
+
selectable: boolean;
|
|
8263
|
+
/**
|
|
8264
|
+
* When the record was created (ISO 8601).
|
|
8265
|
+
*/
|
|
8266
|
+
created_at: string;
|
|
8267
|
+
/**
|
|
8268
|
+
* When the record was last updated (ISO 8601).
|
|
8269
|
+
*/
|
|
8270
|
+
updated_at: string;
|
|
8271
|
+
};
|
|
8272
|
+
/**
|
|
8273
|
+
* Parameters for creating a company-wide pay-rate rule package.
|
|
8274
|
+
*/
|
|
8275
|
+
export type PayRatesRulePackageParameters = {
|
|
8276
|
+
/**
|
|
8277
|
+
* Human-readable package name.
|
|
8278
|
+
*/
|
|
8279
|
+
name: string;
|
|
8280
|
+
/**
|
|
8281
|
+
* Free-form package description; send null or omit it when no description is needed.
|
|
8282
|
+
*/
|
|
8283
|
+
description?: string | null;
|
|
8284
|
+
};
|
|
8211
8285
|
/**
|
|
8212
8286
|
* A page of a job's positions, with pagination metadata and navigation links.
|
|
8213
8287
|
*/
|
|
@@ -9458,6 +9532,10 @@ export type FederalJobWageDeterminationResponseObject = {
|
|
|
9458
9532
|
* ID of the overtime package whose rules apply to this determination, or null when none is set. Not a versioned attribute: every version of the determination carries the same package, so this reads the same whatever point in time you ask for. The rules inside the package carry their own valid times.
|
|
9459
9533
|
*/
|
|
9460
9534
|
overtime_package_id: string | null;
|
|
9535
|
+
/**
|
|
9536
|
+
* ID of the pay-rate rule package attached to this determination family, or null when none is set. The attachment is shared by every temporal version of the determination.
|
|
9537
|
+
*/
|
|
9538
|
+
pay_rates_rule_package_id: string | null;
|
|
9461
9539
|
/**
|
|
9462
9540
|
* Determination type — the Federal or Regional subtype (an STI class name). Federal carries a DOL class code and construction category; Regional carries the nested regional_fields object.
|
|
9463
9541
|
*/
|
|
@@ -9523,6 +9601,10 @@ export type RegionalJobWageDeterminationResponseObject = {
|
|
|
9523
9601
|
* ID of the overtime package whose rules apply to this determination, or null when none is set. Not a versioned attribute: every version of the determination carries the same package, so this reads the same whatever point in time you ask for. The rules inside the package carry their own valid times.
|
|
9524
9602
|
*/
|
|
9525
9603
|
overtime_package_id: string | null;
|
|
9604
|
+
/**
|
|
9605
|
+
* ID of the pay-rate rule package attached to this determination family, or null when none is set. The attachment is shared by every temporal version of the determination.
|
|
9606
|
+
*/
|
|
9607
|
+
pay_rates_rule_package_id: string | null;
|
|
9526
9608
|
/**
|
|
9527
9609
|
* Determination type — the Federal or Regional subtype (an STI class name). Federal carries a DOL class code and construction category; Regional carries the nested regional_fields object.
|
|
9528
9610
|
*/
|
|
@@ -9574,6 +9656,7 @@ export type FederalJobWageDeterminationHistoryVersionObject = {
|
|
|
9574
9656
|
job_id: string;
|
|
9575
9657
|
pwa_trade_id: string;
|
|
9576
9658
|
overtime_package_id: string | null;
|
|
9659
|
+
pay_rates_rule_package_id: string | null;
|
|
9577
9660
|
type: 'Pwa::JobWageDeterminations::Federal';
|
|
9578
9661
|
labor_classification: string;
|
|
9579
9662
|
hourly_rate_cents: string;
|
|
@@ -9596,6 +9679,7 @@ export type RegionalJobWageDeterminationHistoryVersionObject = {
|
|
|
9596
9679
|
job_id: string;
|
|
9597
9680
|
pwa_trade_id: string;
|
|
9598
9681
|
overtime_package_id: string | null;
|
|
9682
|
+
pay_rates_rule_package_id: string | null;
|
|
9599
9683
|
type: 'Pwa::JobWageDeterminations::Regional';
|
|
9600
9684
|
labor_classification: string;
|
|
9601
9685
|
hourly_rate_cents: string;
|
|
@@ -9622,6 +9706,7 @@ export type FederalJobWageDeterminationHistoryCorrectionObject = {
|
|
|
9622
9706
|
job_id: string;
|
|
9623
9707
|
pwa_trade_id: string;
|
|
9624
9708
|
overtime_package_id: string | null;
|
|
9709
|
+
pay_rates_rule_package_id: string | null;
|
|
9625
9710
|
type: 'Pwa::JobWageDeterminations::Federal';
|
|
9626
9711
|
labor_classification: string;
|
|
9627
9712
|
hourly_rate_cents: string;
|
|
@@ -9642,6 +9727,7 @@ export type RegionalJobWageDeterminationHistoryCorrectionObject = {
|
|
|
9642
9727
|
job_id: string;
|
|
9643
9728
|
pwa_trade_id: string;
|
|
9644
9729
|
overtime_package_id: string | null;
|
|
9730
|
+
pay_rates_rule_package_id: string | null;
|
|
9645
9731
|
type: 'Pwa::JobWageDeterminations::Regional';
|
|
9646
9732
|
labor_classification: string;
|
|
9647
9733
|
hourly_rate_cents: string;
|
|
@@ -9772,6 +9858,10 @@ export type FederalJobWageDeterminationParameters = {
|
|
|
9772
9858
|
* The DOL general wage determination the rates are drawn from — the general decision number plus its revision (e.g. "CA20230001/5"); null when not recorded.
|
|
9773
9859
|
*/
|
|
9774
9860
|
general_wage_determination?: string | null;
|
|
9861
|
+
/**
|
|
9862
|
+
* Pay-rate rule package attached to the whole determination family. On create, omit it or send null to leave the family unattached. On update, send null to detach it or omit the key to keep the current attachment. A package belonging to another company is refused.
|
|
9863
|
+
*/
|
|
9864
|
+
pay_rates_rule_package_id?: string | null;
|
|
9775
9865
|
};
|
|
9776
9866
|
/**
|
|
9777
9867
|
* Parameters for creating a Regional (state prevailing-wage) wage determination on a job.
|
|
@@ -9805,6 +9895,10 @@ export type RegionalJobWageDeterminationParameters = {
|
|
|
9805
9895
|
* Overtime package whose rules govern overtime on work under this determination. This is not a versioned attribute: setting it points every version at that package, not only the one this request writes, and `effective_from` does not date it. Send null to detach, leaving the determination with no overtime package of its own. Omit the key to leave the current attachment alone. A package belonging to another company is refused, and a Federal determination refuses one outright — only a Regional determination carries overtime rules.
|
|
9806
9896
|
*/
|
|
9807
9897
|
overtime_package_id?: string | null;
|
|
9898
|
+
/**
|
|
9899
|
+
* Pay-rate rule package attached to the whole determination family. On create, omit it or send null to leave the family unattached. On update, send null to detach it or omit the key to keep the current attachment. A package belonging to another company is refused.
|
|
9900
|
+
*/
|
|
9901
|
+
pay_rates_rule_package_id?: string | null;
|
|
9808
9902
|
regional_fields?: RegionalWageDeterminationFields;
|
|
9809
9903
|
};
|
|
9810
9904
|
/**
|
|
@@ -9819,6 +9913,10 @@ export type JobWageDeterminationUpdateParameters = {
|
|
|
9819
9913
|
* Overtime package whose rules govern overtime on work under this determination. This is not a versioned attribute: setting it points every version at that package, not only the one this request writes, and `effective_from` does not date it. Send null to detach, leaving the determination with no overtime package of its own. Omit the key to leave the current attachment alone. A package belonging to another company is refused, and a Federal determination refuses one outright — only a Regional determination carries overtime rules.
|
|
9820
9914
|
*/
|
|
9821
9915
|
overtime_package_id?: string | null;
|
|
9916
|
+
/**
|
|
9917
|
+
* Pay-rate rule package attached to the whole determination family. On create, omit it or send null to leave the family unattached. On update, send null to detach it or omit the key to keep the current attachment. A package belonging to another company is refused.
|
|
9918
|
+
*/
|
|
9919
|
+
pay_rates_rule_package_id?: string | null;
|
|
9822
9920
|
/**
|
|
9823
9921
|
* Human-readable labor classification — the craft or trade this determination sets rates for; the display label, distinct from the machine class code.
|
|
9824
9922
|
*/
|
|
@@ -10084,6 +10182,134 @@ export type RateRuleHistoryVersionObject = {
|
|
|
10084
10182
|
version_status: 'scheduled' | 'current' | 'historical';
|
|
10085
10183
|
corrections: Array<RateRuleHistoryCorrectionObject>;
|
|
10086
10184
|
};
|
|
10185
|
+
/**
|
|
10186
|
+
* A conditional wage or fringe adjustment owned by a pay-rate rule package, with the selected version's valid-time window.
|
|
10187
|
+
*/
|
|
10188
|
+
export type PayRatesRuleResponseObject = {
|
|
10189
|
+
/**
|
|
10190
|
+
* Identity shared by every valid-time version of the rule; the member and history paths address the family with this value.
|
|
10191
|
+
*/
|
|
10192
|
+
id: string;
|
|
10193
|
+
/**
|
|
10194
|
+
* ID of the pay-rate rule package that owns this rule.
|
|
10195
|
+
*/
|
|
10196
|
+
pay_rates_rule_package_id: string;
|
|
10197
|
+
/**
|
|
10198
|
+
* ISO 4217 currency code for effect.amount_cents, inherited from the package's company.
|
|
10199
|
+
*/
|
|
10200
|
+
currency: string;
|
|
10201
|
+
effect: RateRuleEffect;
|
|
10202
|
+
/**
|
|
10203
|
+
* Conditions that decide when the effect applies. An empty list means the rule always applies.
|
|
10204
|
+
*/
|
|
10205
|
+
conditions: Array<RateRuleCondition>;
|
|
10206
|
+
/**
|
|
10207
|
+
* Valid time — when this version begins applying (ISO 8601); null for an unbounded lower bound.
|
|
10208
|
+
*/
|
|
10209
|
+
valid_from: string | null;
|
|
10210
|
+
/**
|
|
10211
|
+
* Valid time — the exclusive end when this version stops applying (ISO 8601); null for an open-ended upper bound.
|
|
10212
|
+
*/
|
|
10213
|
+
valid_to: string | null;
|
|
10214
|
+
/**
|
|
10215
|
+
* When the record was created (ISO 8601).
|
|
10216
|
+
*/
|
|
10217
|
+
created_at: string;
|
|
10218
|
+
/**
|
|
10219
|
+
* When the record was last updated (ISO 8601).
|
|
10220
|
+
*/
|
|
10221
|
+
updated_at: string;
|
|
10222
|
+
};
|
|
10223
|
+
/**
|
|
10224
|
+
* Parameters for creating a conditional wage or fringe adjustment in a pay-rate rule package.
|
|
10225
|
+
*/
|
|
10226
|
+
export type PayRatesRuleParameters = {
|
|
10227
|
+
effect: RateRuleEffect;
|
|
10228
|
+
/**
|
|
10229
|
+
* Match conditions for the rule. Omit or send an empty list for an unconditional rule.
|
|
10230
|
+
*/
|
|
10231
|
+
conditions?: Array<RateRuleCondition>;
|
|
10232
|
+
/**
|
|
10233
|
+
* Calendar date when the rule begins in the package company's timezone; defaults to today there.
|
|
10234
|
+
*/
|
|
10235
|
+
effective_date?: string;
|
|
10236
|
+
};
|
|
10237
|
+
/**
|
|
10238
|
+
* Change a rule from an effective date forward. Omitted effect or conditions keep that part of the targeted version. When the targeted recipe changes, the resulting complete recipe applies from that coordinate across later scheduled versions; an unchanged recipe does not alter later scheduled versions. An empty conditions list makes the rule unconditional. Omit effective_from to correct the selected version from its exact existing start. A rule with an unbounded lower limit requires effective_from.
|
|
10239
|
+
*/
|
|
10240
|
+
export type PayRatesRuleUpdateParameters = {
|
|
10241
|
+
effect?: RateRuleEffect;
|
|
10242
|
+
/**
|
|
10243
|
+
* Replacement match conditions. Omit this field to keep the targeted version's conditions; send an empty list to make the rule unconditional.
|
|
10244
|
+
*/
|
|
10245
|
+
conditions?: Array<RateRuleCondition>;
|
|
10246
|
+
/**
|
|
10247
|
+
* Date the change begins, YYYY-MM-DD. Omit it to correct the selected version from its exact existing start. Required when that version has no lower bound.
|
|
10248
|
+
*/
|
|
10249
|
+
effective_from?: string;
|
|
10250
|
+
};
|
|
10251
|
+
/**
|
|
10252
|
+
* Parameters for moving where a pay-rate rule family's valid-time timeline begins.
|
|
10253
|
+
*/
|
|
10254
|
+
export type PayRatesRuleGenesisParameters = {
|
|
10255
|
+
/**
|
|
10256
|
+
* The timeline's new start as a calendar date (`YYYY-MM-DD`); a value carrying a time component is refused with `422` rather than truncated. Moving it earlier extends the first version back to it. Moving it later removes coverage before it. Refused with `422` when the new start would fall at or after a standing termination.
|
|
10257
|
+
*/
|
|
10258
|
+
effective_date: string;
|
|
10259
|
+
};
|
|
10260
|
+
/**
|
|
10261
|
+
* Parameters for scheduling when a pay-rate rule family stops being valid.
|
|
10262
|
+
*/
|
|
10263
|
+
export type PayRatesRuleScheduledTerminationParameters = {
|
|
10264
|
+
/**
|
|
10265
|
+
* The exclusive end of the family's valid-time timeline as a calendar date (`YYYY-MM-DD`); a value carrying a time component is refused with `422` rather than truncated. Must fall after genesis. Scheduling removes versions that start after the new end and truncates the version spanning it. A family holds at most one standing termination; cancel it before scheduling another. Cancellation reopens the last surviving version with its existing recipe and does not restore removed versions.
|
|
10266
|
+
*/
|
|
10267
|
+
effective_date: string;
|
|
10268
|
+
};
|
|
10269
|
+
/**
|
|
10270
|
+
* Schedule a rule recipe change from a company-local effective date.
|
|
10271
|
+
*/
|
|
10272
|
+
export type PayRatesRuleScheduledChangeParameters = {
|
|
10273
|
+
/**
|
|
10274
|
+
* Date the change begins, YYYY-MM-DD.
|
|
10275
|
+
*/
|
|
10276
|
+
effective_date: string;
|
|
10277
|
+
effect?: RateRuleEffect;
|
|
10278
|
+
/**
|
|
10279
|
+
* Replacement match conditions. Omit this field to keep the targeted version's conditions; send an empty list to make the rule unconditional.
|
|
10280
|
+
*/
|
|
10281
|
+
conditions?: Array<RateRuleCondition>;
|
|
10282
|
+
};
|
|
10283
|
+
export type PayRatesRuleHistoryCorrectionObject = {
|
|
10284
|
+
/**
|
|
10285
|
+
* Family key shared by every entry on this timeline — the same identity the member route addresses. An entry carries no identifier of its own; versions are distinguished by their window coordinates.
|
|
10286
|
+
*/
|
|
10287
|
+
pay_rates_rule_id: string;
|
|
10288
|
+
pay_rates_rule_package_id: string;
|
|
10289
|
+
currency: string;
|
|
10290
|
+
effect: RateRuleEffect;
|
|
10291
|
+
conditions: Array<RateRuleCondition>;
|
|
10292
|
+
valid_from: string | null;
|
|
10293
|
+
valid_to: string | null;
|
|
10294
|
+
created_at: string;
|
|
10295
|
+
updated_at: string;
|
|
10296
|
+
};
|
|
10297
|
+
export type PayRatesRuleHistoryVersionObject = {
|
|
10298
|
+
/**
|
|
10299
|
+
* Family key shared by every entry on this timeline — the same identity the member route addresses. An entry carries no identifier of its own; versions are distinguished by their window coordinates.
|
|
10300
|
+
*/
|
|
10301
|
+
pay_rates_rule_id: string;
|
|
10302
|
+
pay_rates_rule_package_id: string;
|
|
10303
|
+
currency: string;
|
|
10304
|
+
effect: RateRuleEffect;
|
|
10305
|
+
conditions: Array<RateRuleCondition>;
|
|
10306
|
+
valid_from: string | null;
|
|
10307
|
+
valid_to: string | null;
|
|
10308
|
+
created_at: string;
|
|
10309
|
+
updated_at: string;
|
|
10310
|
+
version_status: 'scheduled' | 'current' | 'historical';
|
|
10311
|
+
corrections: Array<PayRatesRuleHistoryCorrectionObject>;
|
|
10312
|
+
};
|
|
10087
10313
|
/**
|
|
10088
10314
|
* An overtime rule (daily or weekly) belonging to an overtime package. It sets a pay multiplier that applies once a worked-hours threshold — and any day or date qualifier — is met. `valid_from`/`valid_to` bound the window this version is in effect.
|
|
10089
10315
|
*/
|
|
@@ -17701,6 +17927,10 @@ export type CreateWageDeterminationData = {
|
|
|
17701
17927
|
url: '/api/v1/jobs/{job_id}/wage_determinations';
|
|
17702
17928
|
};
|
|
17703
17929
|
export type CreateWageDeterminationErrors = {
|
|
17930
|
+
/**
|
|
17931
|
+
* Bad Request
|
|
17932
|
+
*/
|
|
17933
|
+
400: Problem;
|
|
17704
17934
|
/**
|
|
17705
17935
|
* Forbidden
|
|
17706
17936
|
*/
|
|
@@ -18663,30 +18893,70 @@ export type UpdateOvertimeRuleResponses = {
|
|
|
18663
18893
|
200: OvertimeRuleResponseObject;
|
|
18664
18894
|
};
|
|
18665
18895
|
export type UpdateOvertimeRuleResponse = UpdateOvertimeRuleResponses[keyof UpdateOvertimeRuleResponses];
|
|
18666
|
-
export type
|
|
18667
|
-
body
|
|
18896
|
+
export type ShiftPayRateRuleGenesisData = {
|
|
18897
|
+
body: PayRatesRuleGenesisParameters;
|
|
18898
|
+
headers: {
|
|
18899
|
+
/**
|
|
18900
|
+
* Version validator this write is composed against — the `ETag` from a read of this rule, or `*` to write against whatever exists.
|
|
18901
|
+
*/
|
|
18902
|
+
'If-Match': string;
|
|
18903
|
+
};
|
|
18668
18904
|
path: {
|
|
18669
|
-
|
|
18905
|
+
rule_package_id: string;
|
|
18906
|
+
/**
|
|
18907
|
+
* The rule's version-stable identity.
|
|
18908
|
+
*/
|
|
18909
|
+
rule_id: string;
|
|
18670
18910
|
};
|
|
18671
|
-
query?:
|
|
18911
|
+
query?: never;
|
|
18912
|
+
url: '/api/v1/pay/rates/rule_packages/{rule_package_id}/rules/{rule_id}/genesis';
|
|
18913
|
+
};
|
|
18914
|
+
export type ShiftPayRateRuleGenesisErrors = {
|
|
18915
|
+
/**
|
|
18916
|
+
* Bad Request
|
|
18917
|
+
*/
|
|
18918
|
+
400: Problem;
|
|
18919
|
+
/**
|
|
18920
|
+
* Forbidden
|
|
18921
|
+
*/
|
|
18922
|
+
403: Problem;
|
|
18923
|
+
/**
|
|
18924
|
+
* Not Found
|
|
18925
|
+
*/
|
|
18926
|
+
404: Problem;
|
|
18927
|
+
/**
|
|
18928
|
+
* Precondition Failed
|
|
18929
|
+
*/
|
|
18930
|
+
412: Problem;
|
|
18931
|
+
/**
|
|
18932
|
+
* Unprocessable Content
|
|
18933
|
+
*/
|
|
18934
|
+
422: Problem;
|
|
18935
|
+
/**
|
|
18936
|
+
* Precondition Required
|
|
18937
|
+
*/
|
|
18938
|
+
428: Problem;
|
|
18939
|
+
};
|
|
18940
|
+
export type ShiftPayRateRuleGenesisError = ShiftPayRateRuleGenesisErrors[keyof ShiftPayRateRuleGenesisErrors];
|
|
18941
|
+
export type ShiftPayRateRuleGenesisResponses = {
|
|
18942
|
+
/**
|
|
18943
|
+
* Success
|
|
18944
|
+
*/
|
|
18945
|
+
200: PayRatesRuleResponseObject;
|
|
18946
|
+
};
|
|
18947
|
+
export type ShiftPayRateRuleGenesisResponse = ShiftPayRateRuleGenesisResponses[keyof ShiftPayRateRuleGenesisResponses];
|
|
18948
|
+
export type ListPayRateRuleHistoryData = {
|
|
18949
|
+
body?: never;
|
|
18950
|
+
path: {
|
|
18951
|
+
rule_package_id: string;
|
|
18672
18952
|
/**
|
|
18673
|
-
*
|
|
18674
|
-
* * `pending`
|
|
18675
|
-
* * `processing`
|
|
18676
|
-
* * `processed`
|
|
18677
|
-
* * `success`
|
|
18678
|
-
* * `failed`
|
|
18679
|
-
*
|
|
18953
|
+
* The rule's version-stable identity, as returned in `id`.
|
|
18680
18954
|
*/
|
|
18681
|
-
|
|
18682
|
-
|
|
18683
|
-
|
|
18684
|
-
'
|
|
18685
|
-
'
|
|
18686
|
-
'filter[created_at][gte]'?: string;
|
|
18687
|
-
'filter[created_at][lte]'?: string;
|
|
18688
|
-
'filter[updated_at][gte]'?: string;
|
|
18689
|
-
'filter[updated_at][lte]'?: string;
|
|
18955
|
+
rule_id: string;
|
|
18956
|
+
};
|
|
18957
|
+
query?: {
|
|
18958
|
+
'as_of[valid]'?: string;
|
|
18959
|
+
'as_of[transaction]'?: string;
|
|
18690
18960
|
/**
|
|
18691
18961
|
* This pagination cursor corresponds to the cursor value found in the response in
|
|
18692
18962
|
* `meta.page.next_cursor`.
|
|
@@ -18698,9 +18968,9 @@ export type ListAggregateTimeImportsData = {
|
|
|
18698
18968
|
'page[limit]'?: number;
|
|
18699
18969
|
page?: string;
|
|
18700
18970
|
};
|
|
18701
|
-
url: '/api/v1/
|
|
18971
|
+
url: '/api/v1/pay/rates/rule_packages/{rule_package_id}/rules/{rule_id}/history';
|
|
18702
18972
|
};
|
|
18703
|
-
export type
|
|
18973
|
+
export type ListPayRateRuleHistoryErrors = {
|
|
18704
18974
|
/**
|
|
18705
18975
|
* Bad Request
|
|
18706
18976
|
*/
|
|
@@ -18710,27 +18980,688 @@ export type ListAggregateTimeImportsErrors = {
|
|
|
18710
18980
|
*/
|
|
18711
18981
|
403: Problem;
|
|
18712
18982
|
/**
|
|
18713
|
-
*
|
|
18983
|
+
* Not Found
|
|
18714
18984
|
*/
|
|
18715
|
-
|
|
18985
|
+
404: Problem;
|
|
18716
18986
|
};
|
|
18717
|
-
export type
|
|
18718
|
-
export type
|
|
18987
|
+
export type ListPayRateRuleHistoryError = ListPayRateRuleHistoryErrors[keyof ListPayRateRuleHistoryErrors];
|
|
18988
|
+
export type ListPayRateRuleHistoryResponses = {
|
|
18719
18989
|
/**
|
|
18720
18990
|
* Success
|
|
18721
18991
|
*/
|
|
18722
18992
|
200: {
|
|
18723
18993
|
meta: Meta;
|
|
18724
18994
|
links: Links;
|
|
18725
|
-
data: Array<
|
|
18995
|
+
data: Array<PayRatesRuleHistoryVersionObject>;
|
|
18726
18996
|
};
|
|
18727
18997
|
};
|
|
18728
|
-
export type
|
|
18729
|
-
export type
|
|
18730
|
-
body
|
|
18731
|
-
|
|
18732
|
-
|
|
18733
|
-
|
|
18998
|
+
export type ListPayRateRuleHistoryResponse = ListPayRateRuleHistoryResponses[keyof ListPayRateRuleHistoryResponses];
|
|
18999
|
+
export type CancelPayRateRuleScheduledChangesData = {
|
|
19000
|
+
body?: never;
|
|
19001
|
+
headers: {
|
|
19002
|
+
/**
|
|
19003
|
+
* Version validator this write is composed against.
|
|
19004
|
+
*/
|
|
19005
|
+
'If-Match': string;
|
|
19006
|
+
};
|
|
19007
|
+
path: {
|
|
19008
|
+
rule_package_id: string;
|
|
19009
|
+
/**
|
|
19010
|
+
* The rule's version-stable identity.
|
|
19011
|
+
*/
|
|
19012
|
+
rule_id: string;
|
|
19013
|
+
};
|
|
19014
|
+
query?: never;
|
|
19015
|
+
url: '/api/v1/pay/rates/rule_packages/{rule_package_id}/rules/{rule_id}/scheduled_changes';
|
|
19016
|
+
};
|
|
19017
|
+
export type CancelPayRateRuleScheduledChangesErrors = {
|
|
19018
|
+
/**
|
|
19019
|
+
* Forbidden
|
|
19020
|
+
*/
|
|
19021
|
+
403: Problem;
|
|
19022
|
+
/**
|
|
19023
|
+
* Precondition Failed
|
|
19024
|
+
*/
|
|
19025
|
+
412: Problem;
|
|
19026
|
+
/**
|
|
19027
|
+
* Unprocessable Content
|
|
19028
|
+
*/
|
|
19029
|
+
422: Problem;
|
|
19030
|
+
/**
|
|
19031
|
+
* Precondition Required
|
|
19032
|
+
*/
|
|
19033
|
+
428: Problem;
|
|
19034
|
+
};
|
|
19035
|
+
export type CancelPayRateRuleScheduledChangesError = CancelPayRateRuleScheduledChangesErrors[keyof CancelPayRateRuleScheduledChangesErrors];
|
|
19036
|
+
export type CancelPayRateRuleScheduledChangesResponses = {
|
|
19037
|
+
/**
|
|
19038
|
+
* Success
|
|
19039
|
+
*/
|
|
19040
|
+
200: PayRatesRuleResponseObject;
|
|
19041
|
+
};
|
|
19042
|
+
export type CancelPayRateRuleScheduledChangesResponse = CancelPayRateRuleScheduledChangesResponses[keyof CancelPayRateRuleScheduledChangesResponses];
|
|
19043
|
+
export type ListPayRateRuleScheduledChangesData = {
|
|
19044
|
+
body?: never;
|
|
19045
|
+
path: {
|
|
19046
|
+
rule_package_id: string;
|
|
19047
|
+
/**
|
|
19048
|
+
* The rule's version-stable identity.
|
|
19049
|
+
*/
|
|
19050
|
+
rule_id: string;
|
|
19051
|
+
};
|
|
19052
|
+
query?: {
|
|
19053
|
+
'as_of[valid]'?: string;
|
|
19054
|
+
'as_of[transaction]'?: string;
|
|
19055
|
+
/**
|
|
19056
|
+
* This pagination cursor corresponds to the cursor value found in the response in
|
|
19057
|
+
* `meta.page.next_cursor`.
|
|
19058
|
+
*/
|
|
19059
|
+
'page[cursor]'?: string;
|
|
19060
|
+
/**
|
|
19061
|
+
* Maximum number of records to return per page. Defaults to 20. A value above 100 is capped to 100 rather than rejected; a value that is zero, negative, or not an integer is rejected with a `400`.
|
|
19062
|
+
*/
|
|
19063
|
+
'page[limit]'?: number;
|
|
19064
|
+
page?: string;
|
|
19065
|
+
};
|
|
19066
|
+
url: '/api/v1/pay/rates/rule_packages/{rule_package_id}/rules/{rule_id}/scheduled_changes';
|
|
19067
|
+
};
|
|
19068
|
+
export type ListPayRateRuleScheduledChangesErrors = {
|
|
19069
|
+
/**
|
|
19070
|
+
* Bad Request
|
|
19071
|
+
*/
|
|
19072
|
+
400: Problem;
|
|
19073
|
+
/**
|
|
19074
|
+
* Forbidden
|
|
19075
|
+
*/
|
|
19076
|
+
403: Problem;
|
|
19077
|
+
/**
|
|
19078
|
+
* Not Found
|
|
19079
|
+
*/
|
|
19080
|
+
404: Problem;
|
|
19081
|
+
};
|
|
19082
|
+
export type ListPayRateRuleScheduledChangesError = ListPayRateRuleScheduledChangesErrors[keyof ListPayRateRuleScheduledChangesErrors];
|
|
19083
|
+
export type ListPayRateRuleScheduledChangesResponses = {
|
|
19084
|
+
/**
|
|
19085
|
+
* Success
|
|
19086
|
+
*/
|
|
19087
|
+
200: {
|
|
19088
|
+
meta: Meta;
|
|
19089
|
+
links: Links;
|
|
19090
|
+
data: Array<PayRatesRuleHistoryVersionObject>;
|
|
19091
|
+
};
|
|
19092
|
+
};
|
|
19093
|
+
export type ListPayRateRuleScheduledChangesResponse = ListPayRateRuleScheduledChangesResponses[keyof ListPayRateRuleScheduledChangesResponses];
|
|
19094
|
+
export type SchedulePayRateRuleChangeData = {
|
|
19095
|
+
body: PayRatesRuleScheduledChangeParameters;
|
|
19096
|
+
headers: {
|
|
19097
|
+
/**
|
|
19098
|
+
* Version validator this write is composed against.
|
|
19099
|
+
*/
|
|
19100
|
+
'If-Match': string;
|
|
19101
|
+
};
|
|
19102
|
+
path: {
|
|
19103
|
+
rule_package_id: string;
|
|
19104
|
+
/**
|
|
19105
|
+
* The rule's version-stable identity.
|
|
19106
|
+
*/
|
|
19107
|
+
rule_id: string;
|
|
19108
|
+
};
|
|
19109
|
+
query?: never;
|
|
19110
|
+
url: '/api/v1/pay/rates/rule_packages/{rule_package_id}/rules/{rule_id}/scheduled_changes';
|
|
19111
|
+
};
|
|
19112
|
+
export type SchedulePayRateRuleChangeErrors = {
|
|
19113
|
+
/**
|
|
19114
|
+
* Bad Request
|
|
19115
|
+
*/
|
|
19116
|
+
400: Problem;
|
|
19117
|
+
/**
|
|
19118
|
+
* Forbidden
|
|
19119
|
+
*/
|
|
19120
|
+
403: Problem;
|
|
19121
|
+
/**
|
|
19122
|
+
* Precondition Failed
|
|
19123
|
+
*/
|
|
19124
|
+
412: Problem;
|
|
19125
|
+
/**
|
|
19126
|
+
* Unprocessable Content
|
|
19127
|
+
*/
|
|
19128
|
+
422: Problem;
|
|
19129
|
+
/**
|
|
19130
|
+
* Precondition Required
|
|
19131
|
+
*/
|
|
19132
|
+
428: Problem;
|
|
19133
|
+
};
|
|
19134
|
+
export type SchedulePayRateRuleChangeError = SchedulePayRateRuleChangeErrors[keyof SchedulePayRateRuleChangeErrors];
|
|
19135
|
+
export type SchedulePayRateRuleChangeResponses = {
|
|
19136
|
+
/**
|
|
19137
|
+
* Success without a new segment
|
|
19138
|
+
*/
|
|
19139
|
+
200: PayRatesRuleResponseObject;
|
|
19140
|
+
/**
|
|
19141
|
+
* Created
|
|
19142
|
+
*/
|
|
19143
|
+
201: PayRatesRuleResponseObject;
|
|
19144
|
+
};
|
|
19145
|
+
export type SchedulePayRateRuleChangeResponse = SchedulePayRateRuleChangeResponses[keyof SchedulePayRateRuleChangeResponses];
|
|
19146
|
+
export type CancelPayRateRuleScheduledTerminationData = {
|
|
19147
|
+
body?: never;
|
|
19148
|
+
headers: {
|
|
19149
|
+
/**
|
|
19150
|
+
* Version validator this write is composed against — the `ETag` from a read of this rule, or `*` to write against whatever exists.
|
|
19151
|
+
*/
|
|
19152
|
+
'If-Match': string;
|
|
19153
|
+
};
|
|
19154
|
+
path: {
|
|
19155
|
+
rule_package_id: string;
|
|
19156
|
+
/**
|
|
19157
|
+
* The rule's version-stable identity.
|
|
19158
|
+
*/
|
|
19159
|
+
rule_id: string;
|
|
19160
|
+
};
|
|
19161
|
+
query?: never;
|
|
19162
|
+
url: '/api/v1/pay/rates/rule_packages/{rule_package_id}/rules/{rule_id}/scheduled_termination';
|
|
19163
|
+
};
|
|
19164
|
+
export type CancelPayRateRuleScheduledTerminationErrors = {
|
|
19165
|
+
/**
|
|
19166
|
+
* Forbidden
|
|
19167
|
+
*/
|
|
19168
|
+
403: Problem;
|
|
19169
|
+
/**
|
|
19170
|
+
* Not Found
|
|
19171
|
+
*/
|
|
19172
|
+
404: Problem;
|
|
19173
|
+
/**
|
|
19174
|
+
* Precondition Failed
|
|
19175
|
+
*/
|
|
19176
|
+
412: Problem;
|
|
19177
|
+
/**
|
|
19178
|
+
* Unprocessable Content
|
|
19179
|
+
*/
|
|
19180
|
+
422: Problem;
|
|
19181
|
+
/**
|
|
19182
|
+
* Precondition Required
|
|
19183
|
+
*/
|
|
19184
|
+
428: Problem;
|
|
19185
|
+
};
|
|
19186
|
+
export type CancelPayRateRuleScheduledTerminationError = CancelPayRateRuleScheduledTerminationErrors[keyof CancelPayRateRuleScheduledTerminationErrors];
|
|
19187
|
+
export type CancelPayRateRuleScheduledTerminationResponses = {
|
|
19188
|
+
/**
|
|
19189
|
+
* Success
|
|
19190
|
+
*/
|
|
19191
|
+
200: PayRatesRuleResponseObject;
|
|
19192
|
+
};
|
|
19193
|
+
export type CancelPayRateRuleScheduledTerminationResponse = CancelPayRateRuleScheduledTerminationResponses[keyof CancelPayRateRuleScheduledTerminationResponses];
|
|
19194
|
+
export type SchedulePayRateRuleTerminationData = {
|
|
19195
|
+
body: PayRatesRuleScheduledTerminationParameters;
|
|
19196
|
+
headers: {
|
|
19197
|
+
/**
|
|
19198
|
+
* Version validator this write is composed against — the `ETag` from a read of this rule, or `*` to write against whatever exists.
|
|
19199
|
+
*/
|
|
19200
|
+
'If-Match': string;
|
|
19201
|
+
};
|
|
19202
|
+
path: {
|
|
19203
|
+
rule_package_id: string;
|
|
19204
|
+
/**
|
|
19205
|
+
* The rule's version-stable identity.
|
|
19206
|
+
*/
|
|
19207
|
+
rule_id: string;
|
|
19208
|
+
};
|
|
19209
|
+
query?: never;
|
|
19210
|
+
url: '/api/v1/pay/rates/rule_packages/{rule_package_id}/rules/{rule_id}/scheduled_termination';
|
|
19211
|
+
};
|
|
19212
|
+
export type SchedulePayRateRuleTerminationErrors = {
|
|
19213
|
+
/**
|
|
19214
|
+
* Bad Request
|
|
19215
|
+
*/
|
|
19216
|
+
400: Problem;
|
|
19217
|
+
/**
|
|
19218
|
+
* Forbidden
|
|
19219
|
+
*/
|
|
19220
|
+
403: Problem;
|
|
19221
|
+
/**
|
|
19222
|
+
* Not Found
|
|
19223
|
+
*/
|
|
19224
|
+
404: Problem;
|
|
19225
|
+
/**
|
|
19226
|
+
* Conflict
|
|
19227
|
+
*/
|
|
19228
|
+
409: Problem;
|
|
19229
|
+
/**
|
|
19230
|
+
* Precondition Failed
|
|
19231
|
+
*/
|
|
19232
|
+
412: Problem;
|
|
19233
|
+
/**
|
|
19234
|
+
* Unprocessable Content
|
|
19235
|
+
*/
|
|
19236
|
+
422: Problem;
|
|
19237
|
+
/**
|
|
19238
|
+
* Precondition Required
|
|
19239
|
+
*/
|
|
19240
|
+
428: Problem;
|
|
19241
|
+
};
|
|
19242
|
+
export type SchedulePayRateRuleTerminationError = SchedulePayRateRuleTerminationErrors[keyof SchedulePayRateRuleTerminationErrors];
|
|
19243
|
+
export type SchedulePayRateRuleTerminationResponses = {
|
|
19244
|
+
/**
|
|
19245
|
+
* Created
|
|
19246
|
+
*/
|
|
19247
|
+
201: PayRatesRuleResponseObject;
|
|
19248
|
+
};
|
|
19249
|
+
export type SchedulePayRateRuleTerminationResponse = SchedulePayRateRuleTerminationResponses[keyof SchedulePayRateRuleTerminationResponses];
|
|
19250
|
+
export type ListPayRateRulesData = {
|
|
19251
|
+
body?: never;
|
|
19252
|
+
path: {
|
|
19253
|
+
rule_package_id: string;
|
|
19254
|
+
};
|
|
19255
|
+
query?: {
|
|
19256
|
+
/**
|
|
19257
|
+
* Read the version valid at this point in time. Defaults to now.
|
|
19258
|
+
*/
|
|
19259
|
+
'as_of[valid]'?: string;
|
|
19260
|
+
as_of?: string;
|
|
19261
|
+
'as_of[bogus_axis]'?: string;
|
|
19262
|
+
'as_of[valid][gte]'?: string;
|
|
19263
|
+
'as_of[transaction]'?: string;
|
|
19264
|
+
filter?: string;
|
|
19265
|
+
'filter[unexpected]'?: string;
|
|
19266
|
+
/**
|
|
19267
|
+
* This pagination cursor corresponds to the cursor value found in the response in
|
|
19268
|
+
* `meta.page.next_cursor`.
|
|
19269
|
+
*/
|
|
19270
|
+
'page[cursor]'?: string;
|
|
19271
|
+
/**
|
|
19272
|
+
* Maximum number of records to return per page. Defaults to 20. A value above 100 is capped to 100 rather than rejected; a value that is zero, negative, or not an integer is rejected with a `400`.
|
|
19273
|
+
*/
|
|
19274
|
+
'page[limit]'?: number;
|
|
19275
|
+
page?: string;
|
|
19276
|
+
};
|
|
19277
|
+
url: '/api/v1/pay/rates/rule_packages/{rule_package_id}/rules';
|
|
19278
|
+
};
|
|
19279
|
+
export type ListPayRateRulesErrors = {
|
|
19280
|
+
/**
|
|
19281
|
+
* Bad Request
|
|
19282
|
+
*/
|
|
19283
|
+
400: Problem;
|
|
19284
|
+
/**
|
|
19285
|
+
* Forbidden
|
|
19286
|
+
*/
|
|
19287
|
+
403: Problem;
|
|
19288
|
+
/**
|
|
19289
|
+
* Unprocessable Content
|
|
19290
|
+
*/
|
|
19291
|
+
422: Problem;
|
|
19292
|
+
};
|
|
19293
|
+
export type ListPayRateRulesError = ListPayRateRulesErrors[keyof ListPayRateRulesErrors];
|
|
19294
|
+
export type ListPayRateRulesResponses = {
|
|
19295
|
+
/**
|
|
19296
|
+
* Success
|
|
19297
|
+
*/
|
|
19298
|
+
200: {
|
|
19299
|
+
meta: Meta;
|
|
19300
|
+
links: Links;
|
|
19301
|
+
data: Array<PayRatesRuleResponseObject>;
|
|
19302
|
+
};
|
|
19303
|
+
};
|
|
19304
|
+
export type ListPayRateRulesResponse = ListPayRateRulesResponses[keyof ListPayRateRulesResponses];
|
|
19305
|
+
export type CreatePayRateRuleData = {
|
|
19306
|
+
body: PayRatesRuleParameters;
|
|
19307
|
+
path: {
|
|
19308
|
+
rule_package_id: string;
|
|
19309
|
+
};
|
|
19310
|
+
query?: never;
|
|
19311
|
+
url: '/api/v1/pay/rates/rule_packages/{rule_package_id}/rules';
|
|
19312
|
+
};
|
|
19313
|
+
export type CreatePayRateRuleErrors = {
|
|
19314
|
+
/**
|
|
19315
|
+
* Bad Request
|
|
19316
|
+
*/
|
|
19317
|
+
400: Problem;
|
|
19318
|
+
/**
|
|
19319
|
+
* Forbidden
|
|
19320
|
+
*/
|
|
19321
|
+
403: Problem;
|
|
19322
|
+
/**
|
|
19323
|
+
* Not Found
|
|
19324
|
+
*/
|
|
19325
|
+
404: Problem;
|
|
19326
|
+
/**
|
|
19327
|
+
* Unprocessable Content
|
|
19328
|
+
*/
|
|
19329
|
+
422: Problem;
|
|
19330
|
+
};
|
|
19331
|
+
export type CreatePayRateRuleError = CreatePayRateRuleErrors[keyof CreatePayRateRuleErrors];
|
|
19332
|
+
export type CreatePayRateRuleResponses = {
|
|
19333
|
+
/**
|
|
19334
|
+
* Created
|
|
19335
|
+
*/
|
|
19336
|
+
201: PayRatesRuleResponseObject;
|
|
19337
|
+
};
|
|
19338
|
+
export type CreatePayRateRuleResponse = CreatePayRateRuleResponses[keyof CreatePayRateRuleResponses];
|
|
19339
|
+
export type DeletePayRateRuleData = {
|
|
19340
|
+
body?: never;
|
|
19341
|
+
headers: {
|
|
19342
|
+
/**
|
|
19343
|
+
* Version validator this write is composed against — the `ETag` from a read of this rule, or `*` to write against whatever exists.
|
|
19344
|
+
*/
|
|
19345
|
+
'If-Match': string;
|
|
19346
|
+
};
|
|
19347
|
+
path: {
|
|
19348
|
+
rule_package_id: string;
|
|
19349
|
+
/**
|
|
19350
|
+
* The rule's version-stable identity.
|
|
19351
|
+
*/
|
|
19352
|
+
id: string;
|
|
19353
|
+
};
|
|
19354
|
+
query?: never;
|
|
19355
|
+
url: '/api/v1/pay/rates/rule_packages/{rule_package_id}/rules/{id}';
|
|
19356
|
+
};
|
|
19357
|
+
export type DeletePayRateRuleErrors = {
|
|
19358
|
+
/**
|
|
19359
|
+
* Forbidden
|
|
19360
|
+
*/
|
|
19361
|
+
403: Problem;
|
|
19362
|
+
/**
|
|
19363
|
+
* Not Found
|
|
19364
|
+
*/
|
|
19365
|
+
404: Problem;
|
|
19366
|
+
/**
|
|
19367
|
+
* Precondition Failed
|
|
19368
|
+
*/
|
|
19369
|
+
412: Problem;
|
|
19370
|
+
/**
|
|
19371
|
+
* Precondition Required
|
|
19372
|
+
*/
|
|
19373
|
+
428: Problem;
|
|
19374
|
+
};
|
|
19375
|
+
export type DeletePayRateRuleError = DeletePayRateRuleErrors[keyof DeletePayRateRuleErrors];
|
|
19376
|
+
export type DeletePayRateRuleResponses = {
|
|
19377
|
+
/**
|
|
19378
|
+
* Success
|
|
19379
|
+
*/
|
|
19380
|
+
200: PayRatesRuleResponseObject;
|
|
19381
|
+
};
|
|
19382
|
+
export type DeletePayRateRuleResponse = DeletePayRateRuleResponses[keyof DeletePayRateRuleResponses];
|
|
19383
|
+
export type GetPayRateRuleData = {
|
|
19384
|
+
body?: never;
|
|
19385
|
+
path: {
|
|
19386
|
+
rule_package_id: string;
|
|
19387
|
+
/**
|
|
19388
|
+
* The rule's version-stable identity.
|
|
19389
|
+
*/
|
|
19390
|
+
id: string;
|
|
19391
|
+
};
|
|
19392
|
+
query?: {
|
|
19393
|
+
/**
|
|
19394
|
+
* Read the version valid at this point in time. Defaults to now.
|
|
19395
|
+
*/
|
|
19396
|
+
'as_of[valid]'?: string;
|
|
19397
|
+
};
|
|
19398
|
+
url: '/api/v1/pay/rates/rule_packages/{rule_package_id}/rules/{id}';
|
|
19399
|
+
};
|
|
19400
|
+
export type GetPayRateRuleErrors = {
|
|
19401
|
+
/**
|
|
19402
|
+
* Bad Request
|
|
19403
|
+
*/
|
|
19404
|
+
400: Problem;
|
|
19405
|
+
/**
|
|
19406
|
+
* Forbidden
|
|
19407
|
+
*/
|
|
19408
|
+
403: Problem;
|
|
19409
|
+
/**
|
|
19410
|
+
* Not Found
|
|
19411
|
+
*/
|
|
19412
|
+
404: Problem;
|
|
19413
|
+
/**
|
|
19414
|
+
* Unprocessable Content
|
|
19415
|
+
*/
|
|
19416
|
+
422: Problem;
|
|
19417
|
+
};
|
|
19418
|
+
export type GetPayRateRuleError = GetPayRateRuleErrors[keyof GetPayRateRuleErrors];
|
|
19419
|
+
export type GetPayRateRuleResponses = {
|
|
19420
|
+
/**
|
|
19421
|
+
* Success
|
|
19422
|
+
*/
|
|
19423
|
+
200: PayRatesRuleResponseObject;
|
|
19424
|
+
};
|
|
19425
|
+
export type GetPayRateRuleResponse = GetPayRateRuleResponses[keyof GetPayRateRuleResponses];
|
|
19426
|
+
export type UpdatePayRateRuleData = {
|
|
19427
|
+
body: PayRatesRuleUpdateParameters;
|
|
19428
|
+
headers: {
|
|
19429
|
+
/**
|
|
19430
|
+
* Version validator this write is composed against — the `ETag` from a read of this rule, or `*` to write against whatever exists.
|
|
19431
|
+
*/
|
|
19432
|
+
'If-Match': string;
|
|
19433
|
+
};
|
|
19434
|
+
path: {
|
|
19435
|
+
rule_package_id: string;
|
|
19436
|
+
/**
|
|
19437
|
+
* The rule's version-stable identity.
|
|
19438
|
+
*/
|
|
19439
|
+
id: string;
|
|
19440
|
+
};
|
|
19441
|
+
query?: never;
|
|
19442
|
+
url: '/api/v1/pay/rates/rule_packages/{rule_package_id}/rules/{id}';
|
|
19443
|
+
};
|
|
19444
|
+
export type UpdatePayRateRuleErrors = {
|
|
19445
|
+
/**
|
|
19446
|
+
* Bad Request
|
|
19447
|
+
*/
|
|
19448
|
+
400: Problem;
|
|
19449
|
+
/**
|
|
19450
|
+
* Forbidden
|
|
19451
|
+
*/
|
|
19452
|
+
403: Problem;
|
|
19453
|
+
/**
|
|
19454
|
+
* Not Found
|
|
19455
|
+
*/
|
|
19456
|
+
404: Problem;
|
|
19457
|
+
/**
|
|
19458
|
+
* Precondition Failed
|
|
19459
|
+
*/
|
|
19460
|
+
412: Problem;
|
|
19461
|
+
/**
|
|
19462
|
+
* Unprocessable Content
|
|
19463
|
+
*/
|
|
19464
|
+
422: Problem;
|
|
19465
|
+
/**
|
|
19466
|
+
* Precondition Required
|
|
19467
|
+
*/
|
|
19468
|
+
428: Problem;
|
|
19469
|
+
};
|
|
19470
|
+
export type UpdatePayRateRuleError = UpdatePayRateRuleErrors[keyof UpdatePayRateRuleErrors];
|
|
19471
|
+
export type UpdatePayRateRuleResponses = {
|
|
19472
|
+
/**
|
|
19473
|
+
* Success
|
|
19474
|
+
*/
|
|
19475
|
+
200: PayRatesRuleResponseObject;
|
|
19476
|
+
};
|
|
19477
|
+
export type UpdatePayRateRuleResponse = UpdatePayRateRuleResponses[keyof UpdatePayRateRuleResponses];
|
|
19478
|
+
export type ListPayRateRulePackagesData = {
|
|
19479
|
+
body?: never;
|
|
19480
|
+
path?: never;
|
|
19481
|
+
query?: {
|
|
19482
|
+
/**
|
|
19483
|
+
* Return packages scoped to this job.
|
|
19484
|
+
*/
|
|
19485
|
+
'filter[scoped_to_job_id]'?: string;
|
|
19486
|
+
/**
|
|
19487
|
+
* Set to `true` to return company-wide packages without a job scope.
|
|
19488
|
+
*/
|
|
19489
|
+
'filter[scoped_to_job_id][null]'?: boolean;
|
|
19490
|
+
/**
|
|
19491
|
+
* Filter by whether the package is the default for its scope.
|
|
19492
|
+
*/
|
|
19493
|
+
'filter[default]'?: boolean;
|
|
19494
|
+
/**
|
|
19495
|
+
* Filter by whether users can select the package.
|
|
19496
|
+
*/
|
|
19497
|
+
'filter[selectable]'?: boolean;
|
|
19498
|
+
'filter[created_at][gte]'?: string;
|
|
19499
|
+
'filter[created_at][lte]'?: string;
|
|
19500
|
+
'filter[updated_at][gte]'?: string;
|
|
19501
|
+
'filter[updated_at][lte]'?: string;
|
|
19502
|
+
filter?: string;
|
|
19503
|
+
'filter[unexpected]'?: string;
|
|
19504
|
+
/**
|
|
19505
|
+
* This pagination cursor corresponds to the cursor value found in the response in
|
|
19506
|
+
* `meta.page.next_cursor`.
|
|
19507
|
+
*/
|
|
19508
|
+
'page[cursor]'?: string;
|
|
19509
|
+
/**
|
|
19510
|
+
* Maximum number of records to return per page. Defaults to 20. A value above 100 is capped to 100 rather than rejected; a value that is zero, negative, or not an integer is rejected with a `400`.
|
|
19511
|
+
*/
|
|
19512
|
+
'page[limit]'?: number;
|
|
19513
|
+
page?: string;
|
|
19514
|
+
};
|
|
19515
|
+
url: '/api/v1/pay/rates/rule_packages';
|
|
19516
|
+
};
|
|
19517
|
+
export type ListPayRateRulePackagesErrors = {
|
|
19518
|
+
/**
|
|
19519
|
+
* Bad Request
|
|
19520
|
+
*/
|
|
19521
|
+
400: Problem;
|
|
19522
|
+
/**
|
|
19523
|
+
* Forbidden
|
|
19524
|
+
*/
|
|
19525
|
+
403: Problem;
|
|
19526
|
+
/**
|
|
19527
|
+
* Unprocessable Content
|
|
19528
|
+
*/
|
|
19529
|
+
422: Problem;
|
|
19530
|
+
};
|
|
19531
|
+
export type ListPayRateRulePackagesError = ListPayRateRulePackagesErrors[keyof ListPayRateRulePackagesErrors];
|
|
19532
|
+
export type ListPayRateRulePackagesResponses = {
|
|
19533
|
+
/**
|
|
19534
|
+
* Success
|
|
19535
|
+
*/
|
|
19536
|
+
200: {
|
|
19537
|
+
meta: Meta;
|
|
19538
|
+
links: Links;
|
|
19539
|
+
data: Array<PayRatesRulePackageResponseObject>;
|
|
19540
|
+
};
|
|
19541
|
+
};
|
|
19542
|
+
export type ListPayRateRulePackagesResponse = ListPayRateRulePackagesResponses[keyof ListPayRateRulePackagesResponses];
|
|
19543
|
+
export type CreatePayRateRulePackageData = {
|
|
19544
|
+
body: PayRatesRulePackageParameters;
|
|
19545
|
+
path?: never;
|
|
19546
|
+
query?: never;
|
|
19547
|
+
url: '/api/v1/pay/rates/rule_packages';
|
|
19548
|
+
};
|
|
19549
|
+
export type CreatePayRateRulePackageErrors = {
|
|
19550
|
+
/**
|
|
19551
|
+
* Bad Request
|
|
19552
|
+
*/
|
|
19553
|
+
400: Problem;
|
|
19554
|
+
/**
|
|
19555
|
+
* Forbidden
|
|
19556
|
+
*/
|
|
19557
|
+
403: Problem;
|
|
19558
|
+
/**
|
|
19559
|
+
* Unprocessable Content
|
|
19560
|
+
*/
|
|
19561
|
+
422: Problem;
|
|
19562
|
+
};
|
|
19563
|
+
export type CreatePayRateRulePackageError = CreatePayRateRulePackageErrors[keyof CreatePayRateRulePackageErrors];
|
|
19564
|
+
export type CreatePayRateRulePackageResponses = {
|
|
19565
|
+
/**
|
|
19566
|
+
* Created
|
|
19567
|
+
*/
|
|
19568
|
+
201: PayRatesRulePackageResponseObject;
|
|
19569
|
+
};
|
|
19570
|
+
export type CreatePayRateRulePackageResponse = CreatePayRateRulePackageResponses[keyof CreatePayRateRulePackageResponses];
|
|
19571
|
+
export type GetPayRateRulePackageData = {
|
|
19572
|
+
body?: never;
|
|
19573
|
+
path: {
|
|
19574
|
+
id: string;
|
|
19575
|
+
};
|
|
19576
|
+
query?: never;
|
|
19577
|
+
url: '/api/v1/pay/rates/rule_packages/{id}';
|
|
19578
|
+
};
|
|
19579
|
+
export type GetPayRateRulePackageErrors = {
|
|
19580
|
+
/**
|
|
19581
|
+
* Forbidden
|
|
19582
|
+
*/
|
|
19583
|
+
403: Problem;
|
|
19584
|
+
/**
|
|
19585
|
+
* Not Found
|
|
19586
|
+
*/
|
|
19587
|
+
404: Problem;
|
|
19588
|
+
};
|
|
19589
|
+
export type GetPayRateRulePackageError = GetPayRateRulePackageErrors[keyof GetPayRateRulePackageErrors];
|
|
19590
|
+
export type GetPayRateRulePackageResponses = {
|
|
19591
|
+
/**
|
|
19592
|
+
* Success
|
|
19593
|
+
*/
|
|
19594
|
+
200: PayRatesRulePackageResponseObject;
|
|
19595
|
+
};
|
|
19596
|
+
export type GetPayRateRulePackageResponse = GetPayRateRulePackageResponses[keyof GetPayRateRulePackageResponses];
|
|
19597
|
+
export type ListAggregateTimeImportsData = {
|
|
19598
|
+
body?: never;
|
|
19599
|
+
path: {
|
|
19600
|
+
pay_period_id: string;
|
|
19601
|
+
};
|
|
19602
|
+
query?: {
|
|
19603
|
+
/**
|
|
19604
|
+
* Filter by import status:
|
|
19605
|
+
* * `pending`
|
|
19606
|
+
* * `processing`
|
|
19607
|
+
* * `processed`
|
|
19608
|
+
* * `success`
|
|
19609
|
+
* * `failed`
|
|
19610
|
+
*
|
|
19611
|
+
*/
|
|
19612
|
+
'filter[status]'?: string;
|
|
19613
|
+
filter?: string;
|
|
19614
|
+
'filter[unexpected]'?: string;
|
|
19615
|
+
'filter[completed_at][gte]'?: string;
|
|
19616
|
+
'filter[completed_at][lte]'?: string;
|
|
19617
|
+
'filter[created_at][gte]'?: string;
|
|
19618
|
+
'filter[created_at][lte]'?: string;
|
|
19619
|
+
'filter[updated_at][gte]'?: string;
|
|
19620
|
+
'filter[updated_at][lte]'?: string;
|
|
19621
|
+
/**
|
|
19622
|
+
* This pagination cursor corresponds to the cursor value found in the response in
|
|
19623
|
+
* `meta.page.next_cursor`.
|
|
19624
|
+
*/
|
|
19625
|
+
'page[cursor]'?: string;
|
|
19626
|
+
/**
|
|
19627
|
+
* Maximum number of records to return per page. Defaults to 20. A value above 100 is capped to 100 rather than rejected; a value that is zero, negative, or not an integer is rejected with a `400`.
|
|
19628
|
+
*/
|
|
19629
|
+
'page[limit]'?: number;
|
|
19630
|
+
page?: string;
|
|
19631
|
+
};
|
|
19632
|
+
url: '/api/v1/pay_periods/{pay_period_id}/imports/aggregate_times';
|
|
19633
|
+
};
|
|
19634
|
+
export type ListAggregateTimeImportsErrors = {
|
|
19635
|
+
/**
|
|
19636
|
+
* Bad Request
|
|
19637
|
+
*/
|
|
19638
|
+
400: Problem;
|
|
19639
|
+
/**
|
|
19640
|
+
* Forbidden
|
|
19641
|
+
*/
|
|
19642
|
+
403: Problem;
|
|
19643
|
+
/**
|
|
19644
|
+
* Unprocessable Content
|
|
19645
|
+
*/
|
|
19646
|
+
422: Problem;
|
|
19647
|
+
};
|
|
19648
|
+
export type ListAggregateTimeImportsError = ListAggregateTimeImportsErrors[keyof ListAggregateTimeImportsErrors];
|
|
19649
|
+
export type ListAggregateTimeImportsResponses = {
|
|
19650
|
+
/**
|
|
19651
|
+
* Success
|
|
19652
|
+
*/
|
|
19653
|
+
200: {
|
|
19654
|
+
meta: Meta;
|
|
19655
|
+
links: Links;
|
|
19656
|
+
data: Array<AggregateTimeImportResponseObject>;
|
|
19657
|
+
};
|
|
19658
|
+
};
|
|
19659
|
+
export type ListAggregateTimeImportsResponse = ListAggregateTimeImportsResponses[keyof ListAggregateTimeImportsResponses];
|
|
19660
|
+
export type CreateAggregateTimeImportData = {
|
|
19661
|
+
body: AggregateTimeImportParameters;
|
|
19662
|
+
path: {
|
|
19663
|
+
pay_period_id: string;
|
|
19664
|
+
};
|
|
18734
19665
|
query?: never;
|
|
18735
19666
|
url: '/api/v1/pay_periods/{pay_period_id}/imports/aggregate_times';
|
|
18736
19667
|
};
|
|
@@ -20867,6 +21798,10 @@ export type CreateProjectErrors = {
|
|
|
20867
21798
|
* Forbidden
|
|
20868
21799
|
*/
|
|
20869
21800
|
403: Problem;
|
|
21801
|
+
/**
|
|
21802
|
+
* Not Found
|
|
21803
|
+
*/
|
|
21804
|
+
404: Problem;
|
|
20870
21805
|
/**
|
|
20871
21806
|
* Unprocessable Content
|
|
20872
21807
|
*/
|