@dsptch-work/api-client 0.21.0 → 0.22.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 +13 -0
- package/dist/gen/index.d.ts +1 -1
- package/dist/gen/sdk.gen.d.ts +115 -1
- package/dist/gen/sdk.gen.js +176 -0
- package/dist/gen/types.gen.d.ts +540 -1
- package/dist/gen/zod.gen.d.ts +421 -0
- package/dist/gen/zod.gen.js +142 -0
- package/package.json +1 -1
package/dist/gen/types.gen.d.ts
CHANGED
|
@@ -383,7 +383,7 @@ export type DirectUploadParameters = {
|
|
|
383
383
|
/**
|
|
384
384
|
* What the file is for, named as the endpoint that will attach it (for example `assets.vendors`). Required. It decides where the file is stored, and the signed ID this call returns is issued for that resource alone — it will not resolve at any other endpoint, so a vendor logo cannot be attached as an avatar, or an avatar as a logo.
|
|
385
385
|
*/
|
|
386
|
-
resource: 'assets.items' | 'assets.items.documents' | 'assets.items.service_events' | 'assets.products' | 'assets.vendors' | 'compliance.checks' | 'pay_periods.imports.aggregate_times' | 'pay_periods.imports.dsptch_cprs' | 'pay_periods.imports.time_entries' | 'payrolls.payroll_runs.imports.paystubs' | 'users';
|
|
386
|
+
resource: 'assets.items' | 'assets.items.documents' | 'assets.items.service_events' | 'assets.products' | 'assets.vendors' | 'compliance.checks' | 'internal.company_todos' | 'internal.job_todos' | 'internal.project_todos' | 'pay_periods.imports.aggregate_times' | 'pay_periods.imports.dsptch_cprs' | 'pay_periods.imports.time_entries' | 'payrolls.payroll_runs.imports.paystubs' | 'users';
|
|
387
387
|
/**
|
|
388
388
|
* Metadata describing the file being registered, before its bytes are uploaded.
|
|
389
389
|
*/
|
|
@@ -1430,6 +1430,203 @@ export type PeopleEmploymentResponseObject = {
|
|
|
1430
1430
|
*/
|
|
1431
1431
|
updated_at: string;
|
|
1432
1432
|
};
|
|
1433
|
+
/**
|
|
1434
|
+
* Create a distinct employment stint for an existing user in the credential company. Only user_id and hire_date are required; omitted optional fields use the defaults or null values described below. This does not create a user, invitation, role, group, or login identity.
|
|
1435
|
+
*/
|
|
1436
|
+
export type PeopleEmploymentCreateParameters = {
|
|
1437
|
+
/**
|
|
1438
|
+
* ID of the existing user to employ. Required; the endpoint returns `404` when the user does not exist.
|
|
1439
|
+
*/
|
|
1440
|
+
user_id: string;
|
|
1441
|
+
/**
|
|
1442
|
+
* First day of the stint, as a calendar date (`YYYY-MM-DD`). Required; interpreted at midnight in the credential company's time zone. A value carrying a time component is refused with `422` rather than truncated.
|
|
1443
|
+
*/
|
|
1444
|
+
hire_date: string;
|
|
1445
|
+
/**
|
|
1446
|
+
* Whether the relationship is `EMPLOYEE` or `CONTRACTOR`. Omit to use `EMPLOYEE`; null is not accepted.
|
|
1447
|
+
*/
|
|
1448
|
+
type?: 'EMPLOYEE' | 'CONTRACTOR';
|
|
1449
|
+
/**
|
|
1450
|
+
* Employment title. Omit or send null to leave it unset; blank text is stored as null.
|
|
1451
|
+
*/
|
|
1452
|
+
title?: string | null;
|
|
1453
|
+
/**
|
|
1454
|
+
* ID of the user's manager. Omit or send null for no manager; a supplied ID must identify an existing user.
|
|
1455
|
+
*/
|
|
1456
|
+
manager_user_id?: string | null;
|
|
1457
|
+
/**
|
|
1458
|
+
* Identifier for this worker in the company's payroll system. Omit or send null to leave it unset; blank text is stored as null.
|
|
1459
|
+
*/
|
|
1460
|
+
payroll_id?: string | null;
|
|
1461
|
+
/**
|
|
1462
|
+
* Whether the employment participates in time and attendance. Omit to use true; null is not accepted.
|
|
1463
|
+
*/
|
|
1464
|
+
enrolled_in_t_and_a?: boolean;
|
|
1465
|
+
/**
|
|
1466
|
+
* How the worker is paid: `hourly` or `salary`. Omit to use `hourly`; null is not accepted.
|
|
1467
|
+
*/
|
|
1468
|
+
compensation_type?: 'hourly' | 'salary';
|
|
1469
|
+
/**
|
|
1470
|
+
* Base hourly pay in cents as a decimal string. Omit or send null to leave it unset.
|
|
1471
|
+
*/
|
|
1472
|
+
hourly_rate_cents?: string | null;
|
|
1473
|
+
/**
|
|
1474
|
+
* Whether the employment is eligible for overtime. Omit to use true; send null to leave eligibility unset. Must be true when overtime_package_id is supplied.
|
|
1475
|
+
*/
|
|
1476
|
+
overtime_eligible?: boolean | null;
|
|
1477
|
+
/**
|
|
1478
|
+
* ID of the overtime package assigned to this employment. Omit or send null for no package; a supplied ID must belong to the credential company and requires overtime_eligible to be true.
|
|
1479
|
+
*/
|
|
1480
|
+
overtime_package_id?: string | null;
|
|
1481
|
+
/**
|
|
1482
|
+
* Annualized worked minutes. Omit or send null to leave it unset; otherwise must be between 0 and the number of minutes in one year.
|
|
1483
|
+
*/
|
|
1484
|
+
worked_annual_minutes?: number | null;
|
|
1485
|
+
/**
|
|
1486
|
+
* Annual paid-time-off minutes. Omit or send null to leave it unset; otherwise must be between 0 and the number of minutes in one year.
|
|
1487
|
+
*/
|
|
1488
|
+
pto_annual_minutes?: number | null;
|
|
1489
|
+
/**
|
|
1490
|
+
* Annual holiday minutes. Omit or send null to leave it unset; otherwise must be between 0 and the number of minutes in one year.
|
|
1491
|
+
*/
|
|
1492
|
+
holiday_annual_minutes?: number | null;
|
|
1493
|
+
/**
|
|
1494
|
+
* Annual paid training minutes. Omit or send null to leave it unset; otherwise must be between 0 and the number of minutes in one year.
|
|
1495
|
+
*/
|
|
1496
|
+
training_annual_minutes?: number | null;
|
|
1497
|
+
/**
|
|
1498
|
+
* Annual training amount in cents as a decimal string. Omit or send null to leave it unset.
|
|
1499
|
+
*/
|
|
1500
|
+
training_annual_amount_cents?: string | null;
|
|
1501
|
+
/**
|
|
1502
|
+
* Annual employer health contribution in cents as a decimal string. Omit or send null to leave it unset.
|
|
1503
|
+
*/
|
|
1504
|
+
employer_combined_health_amount_cents?: string | null;
|
|
1505
|
+
/**
|
|
1506
|
+
* Annual employer savings and retirement contribution in cents as a decimal string. Omit or send null to leave it unset.
|
|
1507
|
+
*/
|
|
1508
|
+
employer_combined_savings_cents?: string | null;
|
|
1509
|
+
};
|
|
1510
|
+
/**
|
|
1511
|
+
* Request body for creating one strictly future employment boundary. effective_date is required and is interpreted at midnight in the credential company's time zone. Send at least one value to change; omitted values carry forward from the version immediately before the new boundary.
|
|
1512
|
+
*/
|
|
1513
|
+
export type PeopleEmploymentScheduledChangeCreateParameters = {
|
|
1514
|
+
/**
|
|
1515
|
+
* How the employment is paid: hourly or salary. Omit to carry forward the preceding version.
|
|
1516
|
+
*/
|
|
1517
|
+
compensation_type?: 'hourly' | 'salary';
|
|
1518
|
+
/**
|
|
1519
|
+
* Hourly pay in cents as a decimal string. Omit to carry forward the preceding version, or send null to clear it.
|
|
1520
|
+
*/
|
|
1521
|
+
hourly_rate_cents?: string | null;
|
|
1522
|
+
/**
|
|
1523
|
+
* Whether the employment is overtime eligible. Omit to carry forward the preceding version, or send null to clear it.
|
|
1524
|
+
*/
|
|
1525
|
+
overtime_eligible?: boolean | null;
|
|
1526
|
+
/**
|
|
1527
|
+
* Overtime package ID. Omit to carry forward the preceding version, or send null to clear it.
|
|
1528
|
+
*/
|
|
1529
|
+
overtime_package_id?: string | null;
|
|
1530
|
+
/**
|
|
1531
|
+
* Annual worked minutes. Omit to carry forward the preceding version, or send null to clear it.
|
|
1532
|
+
*/
|
|
1533
|
+
worked_annual_minutes?: number | null;
|
|
1534
|
+
/**
|
|
1535
|
+
* Annual paid-time-off minutes. Omit to carry forward the preceding version, or send null to clear it.
|
|
1536
|
+
*/
|
|
1537
|
+
pto_annual_minutes?: number | null;
|
|
1538
|
+
/**
|
|
1539
|
+
* Annual holiday minutes. Omit to carry forward the preceding version, or send null to clear it.
|
|
1540
|
+
*/
|
|
1541
|
+
holiday_annual_minutes?: number | null;
|
|
1542
|
+
/**
|
|
1543
|
+
* Annual training minutes. Omit to carry forward the preceding version, or send null to clear it.
|
|
1544
|
+
*/
|
|
1545
|
+
training_annual_minutes?: number | null;
|
|
1546
|
+
/**
|
|
1547
|
+
* Annual training amount in cents as a decimal string. Omit to carry forward the preceding version, or send null to clear it.
|
|
1548
|
+
*/
|
|
1549
|
+
training_annual_amount_cents?: string | null;
|
|
1550
|
+
/**
|
|
1551
|
+
* Annual employer health contribution in cents as a decimal string. Omit to carry forward the preceding version, or send null to clear it.
|
|
1552
|
+
*/
|
|
1553
|
+
employer_combined_health_amount_cents?: string | null;
|
|
1554
|
+
/**
|
|
1555
|
+
* Annual employer savings contribution in cents as a decimal string. Omit to carry forward the preceding version, or send null to clear it.
|
|
1556
|
+
*/
|
|
1557
|
+
employer_combined_savings_cents?: string | null;
|
|
1558
|
+
/**
|
|
1559
|
+
* Company-local date when the new boundary takes effect. Must be strictly in the future. Required.
|
|
1560
|
+
*/
|
|
1561
|
+
effective_date: string;
|
|
1562
|
+
};
|
|
1563
|
+
/**
|
|
1564
|
+
* Request body for changing values at one exact strictly future employment boundary. Send only the fields to change; omitted values remain as recorded at that boundary. The boundary date cannot move.
|
|
1565
|
+
*/
|
|
1566
|
+
export type PeopleEmploymentScheduledChangeUpdateParameters = {
|
|
1567
|
+
/**
|
|
1568
|
+
* How the employment is paid: hourly or salary. Omit to preserve the value at the targeted boundary.
|
|
1569
|
+
*/
|
|
1570
|
+
compensation_type?: 'hourly' | 'salary';
|
|
1571
|
+
/**
|
|
1572
|
+
* Hourly pay in cents as a decimal string. Omit to preserve the value at the targeted boundary, or send null to clear it.
|
|
1573
|
+
*/
|
|
1574
|
+
hourly_rate_cents?: string | null;
|
|
1575
|
+
/**
|
|
1576
|
+
* Whether the employment is overtime eligible. Omit to preserve the value at the targeted boundary, or send null to clear it.
|
|
1577
|
+
*/
|
|
1578
|
+
overtime_eligible?: boolean | null;
|
|
1579
|
+
/**
|
|
1580
|
+
* Overtime package ID. Omit to preserve the value at the targeted boundary, or send null to clear it.
|
|
1581
|
+
*/
|
|
1582
|
+
overtime_package_id?: string | null;
|
|
1583
|
+
/**
|
|
1584
|
+
* Annual worked minutes. Omit to preserve the value at the targeted boundary, or send null to clear it.
|
|
1585
|
+
*/
|
|
1586
|
+
worked_annual_minutes?: number | null;
|
|
1587
|
+
/**
|
|
1588
|
+
* Annual paid-time-off minutes. Omit to preserve the value at the targeted boundary, or send null to clear it.
|
|
1589
|
+
*/
|
|
1590
|
+
pto_annual_minutes?: number | null;
|
|
1591
|
+
/**
|
|
1592
|
+
* Annual holiday minutes. Omit to preserve the value at the targeted boundary, or send null to clear it.
|
|
1593
|
+
*/
|
|
1594
|
+
holiday_annual_minutes?: number | null;
|
|
1595
|
+
/**
|
|
1596
|
+
* Annual training minutes. Omit to preserve the value at the targeted boundary, or send null to clear it.
|
|
1597
|
+
*/
|
|
1598
|
+
training_annual_minutes?: number | null;
|
|
1599
|
+
/**
|
|
1600
|
+
* Annual training amount in cents as a decimal string. Omit to preserve the value at the targeted boundary, or send null to clear it.
|
|
1601
|
+
*/
|
|
1602
|
+
training_annual_amount_cents?: string | null;
|
|
1603
|
+
/**
|
|
1604
|
+
* Annual employer health contribution in cents as a decimal string. Omit to preserve the value at the targeted boundary, or send null to clear it.
|
|
1605
|
+
*/
|
|
1606
|
+
employer_combined_health_amount_cents?: string | null;
|
|
1607
|
+
/**
|
|
1608
|
+
* Annual employer savings contribution in cents as a decimal string. Omit to preserve the value at the targeted boundary, or send null to clear it.
|
|
1609
|
+
*/
|
|
1610
|
+
employer_combined_savings_cents?: string | null;
|
|
1611
|
+
};
|
|
1612
|
+
/**
|
|
1613
|
+
* Parameters for moving where an employment stint's valid-time timeline begins.
|
|
1614
|
+
*/
|
|
1615
|
+
export type PeopleEmploymentGenesisParameters = {
|
|
1616
|
+
/**
|
|
1617
|
+
* The timeline's new start, as a calendar date (`YYYY-MM-DD`). Required; 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 drops every version whose coverage ended at or before it and truncates the one spanning it, so what those versions said stops being readable. Refused with `422` when the employment has no finite start or the new start would fall at or after a scheduled termination.
|
|
1618
|
+
*/
|
|
1619
|
+
effective_date?: string;
|
|
1620
|
+
};
|
|
1621
|
+
/**
|
|
1622
|
+
* Parameters for scheduling when an employment stint stops being valid.
|
|
1623
|
+
*/
|
|
1624
|
+
export type PeopleEmploymentScheduledTerminationParameters = {
|
|
1625
|
+
/**
|
|
1626
|
+
* The exclusive end of the employment's valid-time timeline, as a calendar date (`YYYY-MM-DD`). Required; a value carrying a time component is refused with `422` rather than truncated. Must fall after the employment's genesis. Scheduling removes versions that start on or after the new end and truncates the version spanning it. An employment holds at most one scheduled termination; cancel the standing one before scheduling another. Cancellation reopens the last surviving version and does not restore removed versions.
|
|
1627
|
+
*/
|
|
1628
|
+
effective_date: string;
|
|
1629
|
+
};
|
|
1433
1630
|
export type PeopleEmploymentHistoryCorrectionObject = {
|
|
1434
1631
|
/**
|
|
1435
1632
|
* 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.
|
|
@@ -21001,6 +21198,57 @@ export type UpdatePaystubResponses = {
|
|
|
21001
21198
|
200: PaystubResponseObject;
|
|
21002
21199
|
};
|
|
21003
21200
|
export type UpdatePaystubResponse = UpdatePaystubResponses[keyof UpdatePaystubResponses];
|
|
21201
|
+
export type UpdateGenesisData = {
|
|
21202
|
+
body: PeopleEmploymentGenesisParameters;
|
|
21203
|
+
headers: {
|
|
21204
|
+
/**
|
|
21205
|
+
* Version validator for the whole employment family, or `*` for its current state.
|
|
21206
|
+
*/
|
|
21207
|
+
'If-Match': string;
|
|
21208
|
+
};
|
|
21209
|
+
path: {
|
|
21210
|
+
/**
|
|
21211
|
+
* The employment stint identity returned as `id`.
|
|
21212
|
+
*/
|
|
21213
|
+
employment_id: string;
|
|
21214
|
+
};
|
|
21215
|
+
query?: never;
|
|
21216
|
+
url: '/api/v1/people/employments/{employment_id}/genesis';
|
|
21217
|
+
};
|
|
21218
|
+
export type UpdateGenesisErrors = {
|
|
21219
|
+
/**
|
|
21220
|
+
* Bad Request
|
|
21221
|
+
*/
|
|
21222
|
+
400: Problem;
|
|
21223
|
+
/**
|
|
21224
|
+
* Forbidden
|
|
21225
|
+
*/
|
|
21226
|
+
403: Problem;
|
|
21227
|
+
/**
|
|
21228
|
+
* Not Found
|
|
21229
|
+
*/
|
|
21230
|
+
404: Problem;
|
|
21231
|
+
/**
|
|
21232
|
+
* Precondition Failed
|
|
21233
|
+
*/
|
|
21234
|
+
412: Problem;
|
|
21235
|
+
/**
|
|
21236
|
+
* Unprocessable Content
|
|
21237
|
+
*/
|
|
21238
|
+
422: Problem;
|
|
21239
|
+
/**
|
|
21240
|
+
* Precondition Required
|
|
21241
|
+
*/
|
|
21242
|
+
428: Problem;
|
|
21243
|
+
};
|
|
21244
|
+
export type UpdateGenesisError = UpdateGenesisErrors[keyof UpdateGenesisErrors];
|
|
21245
|
+
export type UpdateGenesisResponses = {
|
|
21246
|
+
/**
|
|
21247
|
+
* Success
|
|
21248
|
+
*/
|
|
21249
|
+
200: PeopleEmploymentResponseObject;
|
|
21250
|
+
};
|
|
21251
|
+
export type UpdateGenesisResponse = UpdateGenesisResponses[keyof UpdateGenesisResponses];
|
|
21004
21252
|
export type ListEmploymentHistoryData = {
|
|
21005
21253
|
body?: never;
|
|
21006
21254
|
path: {
|
|
@@ -21095,6 +21343,265 @@ export type ListEmploymentsHistoryResponses = {
|
|
|
21095
21343
|
};
|
|
21096
21344
|
};
|
|
21097
21345
|
export type ListEmploymentsHistoryResponse = ListEmploymentsHistoryResponses[keyof ListEmploymentsHistoryResponses];
|
|
21346
|
+
export type CreateEmploymentScheduledChangeData = {
|
|
21347
|
+
body: PeopleEmploymentScheduledChangeCreateParameters;
|
|
21348
|
+
headers: {
|
|
21349
|
+
/**
|
|
21350
|
+
* Version validator this write is composed against.
|
|
21351
|
+
*/
|
|
21352
|
+
'If-Match': string;
|
|
21353
|
+
};
|
|
21354
|
+
path: {
|
|
21355
|
+
/**
|
|
21356
|
+
* The employment stint identity returned as `id`.
|
|
21357
|
+
*/
|
|
21358
|
+
employment_id: string;
|
|
21359
|
+
};
|
|
21360
|
+
query?: never;
|
|
21361
|
+
url: '/api/v1/people/employments/{employment_id}/scheduled_changes';
|
|
21362
|
+
};
|
|
21363
|
+
export type CreateEmploymentScheduledChangeErrors = {
|
|
21364
|
+
/**
|
|
21365
|
+
* Bad Request
|
|
21366
|
+
*/
|
|
21367
|
+
400: Problem;
|
|
21368
|
+
/**
|
|
21369
|
+
* Forbidden
|
|
21370
|
+
*/
|
|
21371
|
+
403: Problem;
|
|
21372
|
+
/**
|
|
21373
|
+
* Not Found
|
|
21374
|
+
*/
|
|
21375
|
+
404: Problem;
|
|
21376
|
+
/**
|
|
21377
|
+
* Conflict
|
|
21378
|
+
*/
|
|
21379
|
+
409: Problem;
|
|
21380
|
+
/**
|
|
21381
|
+
* Precondition Failed
|
|
21382
|
+
*/
|
|
21383
|
+
412: Problem;
|
|
21384
|
+
/**
|
|
21385
|
+
* Unprocessable Content
|
|
21386
|
+
*/
|
|
21387
|
+
422: Problem;
|
|
21388
|
+
/**
|
|
21389
|
+
* Precondition Required
|
|
21390
|
+
*/
|
|
21391
|
+
428: Problem;
|
|
21392
|
+
};
|
|
21393
|
+
export type CreateEmploymentScheduledChangeError = CreateEmploymentScheduledChangeErrors[keyof CreateEmploymentScheduledChangeErrors];
|
|
21394
|
+
export type CreateEmploymentScheduledChangeResponses = {
|
|
21395
|
+
/**
|
|
21396
|
+
* Created
|
|
21397
|
+
*/
|
|
21398
|
+
201: PeopleEmploymentResponseObject;
|
|
21399
|
+
};
|
|
21400
|
+
export type CreateEmploymentScheduledChangeResponse = CreateEmploymentScheduledChangeResponses[keyof CreateEmploymentScheduledChangeResponses];
|
|
21401
|
+
export type DeleteEmploymentScheduledChangeData = {
|
|
21402
|
+
body?: never;
|
|
21403
|
+
headers: {
|
|
21404
|
+
/**
|
|
21405
|
+
* Version validator this write is composed against.
|
|
21406
|
+
*/
|
|
21407
|
+
'If-Match': string;
|
|
21408
|
+
};
|
|
21409
|
+
path: {
|
|
21410
|
+
/**
|
|
21411
|
+
* The employment stint identity returned as `id`.
|
|
21412
|
+
*/
|
|
21413
|
+
employment_id: string;
|
|
21414
|
+
/**
|
|
21415
|
+
* The existing strictly future boundary, as a company-local date.
|
|
21416
|
+
*/
|
|
21417
|
+
effective_date: string;
|
|
21418
|
+
};
|
|
21419
|
+
query?: never;
|
|
21420
|
+
url: '/api/v1/people/employments/{employment_id}/scheduled_changes/{effective_date}';
|
|
21421
|
+
};
|
|
21422
|
+
export type DeleteEmploymentScheduledChangeErrors = {
|
|
21423
|
+
/**
|
|
21424
|
+
* Forbidden
|
|
21425
|
+
*/
|
|
21426
|
+
403: Problem;
|
|
21427
|
+
/**
|
|
21428
|
+
* Not Found
|
|
21429
|
+
*/
|
|
21430
|
+
404: Problem;
|
|
21431
|
+
/**
|
|
21432
|
+
* Precondition Failed
|
|
21433
|
+
*/
|
|
21434
|
+
412: Problem;
|
|
21435
|
+
/**
|
|
21436
|
+
* Precondition Required
|
|
21437
|
+
*/
|
|
21438
|
+
428: Problem;
|
|
21439
|
+
};
|
|
21440
|
+
export type DeleteEmploymentScheduledChangeError = DeleteEmploymentScheduledChangeErrors[keyof DeleteEmploymentScheduledChangeErrors];
|
|
21441
|
+
export type DeleteEmploymentScheduledChangeResponses = {
|
|
21442
|
+
/**
|
|
21443
|
+
* No Content
|
|
21444
|
+
*/
|
|
21445
|
+
204: void;
|
|
21446
|
+
};
|
|
21447
|
+
export type DeleteEmploymentScheduledChangeResponse = DeleteEmploymentScheduledChangeResponses[keyof DeleteEmploymentScheduledChangeResponses];
|
|
21448
|
+
export type UpdateEmploymentScheduledChangeData = {
|
|
21449
|
+
body: PeopleEmploymentScheduledChangeUpdateParameters;
|
|
21450
|
+
headers: {
|
|
21451
|
+
/**
|
|
21452
|
+
* Version validator this write is composed against.
|
|
21453
|
+
*/
|
|
21454
|
+
'If-Match': string;
|
|
21455
|
+
};
|
|
21456
|
+
path: {
|
|
21457
|
+
/**
|
|
21458
|
+
* The employment stint identity returned as `id`.
|
|
21459
|
+
*/
|
|
21460
|
+
employment_id: string;
|
|
21461
|
+
/**
|
|
21462
|
+
* The existing strictly future boundary, as a company-local date.
|
|
21463
|
+
*/
|
|
21464
|
+
effective_date: string;
|
|
21465
|
+
};
|
|
21466
|
+
query?: never;
|
|
21467
|
+
url: '/api/v1/people/employments/{employment_id}/scheduled_changes/{effective_date}';
|
|
21468
|
+
};
|
|
21469
|
+
export type UpdateEmploymentScheduledChangeErrors = {
|
|
21470
|
+
/**
|
|
21471
|
+
* Bad Request
|
|
21472
|
+
*/
|
|
21473
|
+
400: Problem;
|
|
21474
|
+
/**
|
|
21475
|
+
* Forbidden
|
|
21476
|
+
*/
|
|
21477
|
+
403: Problem;
|
|
21478
|
+
/**
|
|
21479
|
+
* Not Found
|
|
21480
|
+
*/
|
|
21481
|
+
404: Problem;
|
|
21482
|
+
/**
|
|
21483
|
+
* Precondition Failed
|
|
21484
|
+
*/
|
|
21485
|
+
412: Problem;
|
|
21486
|
+
/**
|
|
21487
|
+
* Unprocessable Content
|
|
21488
|
+
*/
|
|
21489
|
+
422: Problem;
|
|
21490
|
+
/**
|
|
21491
|
+
* Precondition Required
|
|
21492
|
+
*/
|
|
21493
|
+
428: Problem;
|
|
21494
|
+
};
|
|
21495
|
+
export type UpdateEmploymentScheduledChangeError = UpdateEmploymentScheduledChangeErrors[keyof UpdateEmploymentScheduledChangeErrors];
|
|
21496
|
+
export type UpdateEmploymentScheduledChangeResponses = {
|
|
21497
|
+
/**
|
|
21498
|
+
* Success
|
|
21499
|
+
*/
|
|
21500
|
+
200: PeopleEmploymentResponseObject;
|
|
21501
|
+
};
|
|
21502
|
+
export type UpdateEmploymentScheduledChangeResponse = UpdateEmploymentScheduledChangeResponses[keyof UpdateEmploymentScheduledChangeResponses];
|
|
21503
|
+
export type DeleteScheduledTerminationData = {
|
|
21504
|
+
body?: never;
|
|
21505
|
+
headers: {
|
|
21506
|
+
/**
|
|
21507
|
+
* Version validator for the whole employment family, or `*` to write against its current state.
|
|
21508
|
+
*/
|
|
21509
|
+
'If-Match': string;
|
|
21510
|
+
};
|
|
21511
|
+
path: {
|
|
21512
|
+
/**
|
|
21513
|
+
* The employment stint identity returned as `id`.
|
|
21514
|
+
*/
|
|
21515
|
+
employment_id: string;
|
|
21516
|
+
};
|
|
21517
|
+
query?: never;
|
|
21518
|
+
url: '/api/v1/people/employments/{employment_id}/scheduled_termination';
|
|
21519
|
+
};
|
|
21520
|
+
export type DeleteScheduledTerminationErrors = {
|
|
21521
|
+
/**
|
|
21522
|
+
* Forbidden
|
|
21523
|
+
*/
|
|
21524
|
+
403: Problem;
|
|
21525
|
+
/**
|
|
21526
|
+
* Not Found
|
|
21527
|
+
*/
|
|
21528
|
+
404: Problem;
|
|
21529
|
+
/**
|
|
21530
|
+
* Precondition Failed
|
|
21531
|
+
*/
|
|
21532
|
+
412: Problem;
|
|
21533
|
+
/**
|
|
21534
|
+
* Unprocessable Content
|
|
21535
|
+
*/
|
|
21536
|
+
422: Problem;
|
|
21537
|
+
/**
|
|
21538
|
+
* Precondition Required
|
|
21539
|
+
*/
|
|
21540
|
+
428: Problem;
|
|
21541
|
+
};
|
|
21542
|
+
export type DeleteScheduledTerminationError = DeleteScheduledTerminationErrors[keyof DeleteScheduledTerminationErrors];
|
|
21543
|
+
export type DeleteScheduledTerminationResponses = {
|
|
21544
|
+
/**
|
|
21545
|
+
* Success
|
|
21546
|
+
*/
|
|
21547
|
+
200: PeopleEmploymentResponseObject;
|
|
21548
|
+
};
|
|
21549
|
+
export type DeleteScheduledTerminationResponse = DeleteScheduledTerminationResponses[keyof DeleteScheduledTerminationResponses];
|
|
21550
|
+
export type CreateEmploymentScheduledTerminationData = {
|
|
21551
|
+
body: PeopleEmploymentScheduledTerminationParameters;
|
|
21552
|
+
headers: {
|
|
21553
|
+
/**
|
|
21554
|
+
* Version validator for the whole employment family, or `*` to write against its current state.
|
|
21555
|
+
*/
|
|
21556
|
+
'If-Match': string;
|
|
21557
|
+
};
|
|
21558
|
+
path: {
|
|
21559
|
+
/**
|
|
21560
|
+
* The employment stint identity returned as `id`.
|
|
21561
|
+
*/
|
|
21562
|
+
employment_id: string;
|
|
21563
|
+
};
|
|
21564
|
+
query?: never;
|
|
21565
|
+
url: '/api/v1/people/employments/{employment_id}/scheduled_termination';
|
|
21566
|
+
};
|
|
21567
|
+
export type CreateEmploymentScheduledTerminationErrors = {
|
|
21568
|
+
/**
|
|
21569
|
+
* Bad Request
|
|
21570
|
+
*/
|
|
21571
|
+
400: Problem;
|
|
21572
|
+
/**
|
|
21573
|
+
* Forbidden
|
|
21574
|
+
*/
|
|
21575
|
+
403: Problem;
|
|
21576
|
+
/**
|
|
21577
|
+
* Not Found
|
|
21578
|
+
*/
|
|
21579
|
+
404: Problem;
|
|
21580
|
+
/**
|
|
21581
|
+
* Conflict
|
|
21582
|
+
*/
|
|
21583
|
+
409: Problem;
|
|
21584
|
+
/**
|
|
21585
|
+
* Precondition Failed
|
|
21586
|
+
*/
|
|
21587
|
+
412: Problem;
|
|
21588
|
+
/**
|
|
21589
|
+
* Unprocessable Content
|
|
21590
|
+
*/
|
|
21591
|
+
422: Problem;
|
|
21592
|
+
/**
|
|
21593
|
+
* Precondition Required
|
|
21594
|
+
*/
|
|
21595
|
+
428: Problem;
|
|
21596
|
+
};
|
|
21597
|
+
export type CreateEmploymentScheduledTerminationError = CreateEmploymentScheduledTerminationErrors[keyof CreateEmploymentScheduledTerminationErrors];
|
|
21598
|
+
export type CreateEmploymentScheduledTerminationResponses = {
|
|
21599
|
+
/**
|
|
21600
|
+
* Created
|
|
21601
|
+
*/
|
|
21602
|
+
201: PeopleEmploymentResponseObject;
|
|
21603
|
+
};
|
|
21604
|
+
export type CreateEmploymentScheduledTerminationResponse = CreateEmploymentScheduledTerminationResponses[keyof CreateEmploymentScheduledTerminationResponses];
|
|
21098
21605
|
export type ListEmploymentsData = {
|
|
21099
21606
|
body?: never;
|
|
21100
21607
|
path?: never;
|
|
@@ -21152,6 +21659,38 @@ export type ListEmploymentsResponses = {
|
|
|
21152
21659
|
};
|
|
21153
21660
|
};
|
|
21154
21661
|
export type ListEmploymentsResponse = ListEmploymentsResponses[keyof ListEmploymentsResponses];
|
|
21662
|
+
export type CreateEmploymentData = {
|
|
21663
|
+
body: PeopleEmploymentCreateParameters;
|
|
21664
|
+
path?: never;
|
|
21665
|
+
query?: never;
|
|
21666
|
+
url: '/api/v1/people/employments';
|
|
21667
|
+
};
|
|
21668
|
+
export type CreateEmploymentErrors = {
|
|
21669
|
+
/**
|
|
21670
|
+
* Bad Request
|
|
21671
|
+
*/
|
|
21672
|
+
400: Problem;
|
|
21673
|
+
/**
|
|
21674
|
+
* Forbidden
|
|
21675
|
+
*/
|
|
21676
|
+
403: Problem;
|
|
21677
|
+
/**
|
|
21678
|
+
* Not Found
|
|
21679
|
+
*/
|
|
21680
|
+
404: Problem;
|
|
21681
|
+
/**
|
|
21682
|
+
* Unprocessable Content
|
|
21683
|
+
*/
|
|
21684
|
+
422: Problem;
|
|
21685
|
+
};
|
|
21686
|
+
export type CreateEmploymentError = CreateEmploymentErrors[keyof CreateEmploymentErrors];
|
|
21687
|
+
export type CreateEmploymentResponses = {
|
|
21688
|
+
/**
|
|
21689
|
+
* Created
|
|
21690
|
+
*/
|
|
21691
|
+
201: PeopleEmploymentResponseObject;
|
|
21692
|
+
};
|
|
21693
|
+
export type CreateEmploymentResponse = CreateEmploymentResponses[keyof CreateEmploymentResponses];
|
|
21155
21694
|
export type GetEmploymentData = {
|
|
21156
21695
|
body?: never;
|
|
21157
21696
|
path: {
|