@dsptch-work/api-client 0.46.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 +65 -0
- package/dist/gen/index.d.ts +1 -1
- package/dist/gen/sdk.gen.d.ts +165 -24
- package/dist/gen/sdk.gen.js +230 -23
- package/dist/gen/types.gen.d.ts +911 -22
- package/dist/gen/zod.gen.d.ts +749 -54
- package/dist/gen/zod.gen.js +347 -11
- package/package.json +1 -1
package/dist/gen/zod.gen.js
CHANGED
|
@@ -194,17 +194,23 @@ export const zProblem = z.object({
|
|
|
194
194
|
*
|
|
195
195
|
* The company already has a pay schedule, including one starting in the future or ending in the past. Use the existing schedule instead of creating another.
|
|
196
196
|
*
|
|
197
|
-
* ###
|
|
197
|
+
* ### pay_schedule_deletion_in_progress
|
|
198
198
|
*
|
|
199
|
-
* **
|
|
199
|
+
* **Pay Schedule Deletion In Progress**
|
|
200
200
|
*
|
|
201
|
-
*
|
|
201
|
+
* A reset or deletion is already running for this pay schedule. Wait until it finishes, then retry if the schedule is still present.
|
|
202
|
+
*
|
|
203
|
+
* ### pay_schedule_deletion_refused
|
|
202
204
|
*
|
|
203
|
-
*
|
|
205
|
+
* **Pay Schedule Deletion Refused**
|
|
204
206
|
*
|
|
205
|
-
*
|
|
207
|
+
* This pay schedule cannot be deleted because it holds recorded time, payroll data, approvals, comments, exports, or payroll mappings that must be retained.
|
|
208
|
+
*
|
|
209
|
+
* ### product_archived
|
|
210
|
+
*
|
|
211
|
+
* **Product Archived**
|
|
206
212
|
*
|
|
207
|
-
*
|
|
213
|
+
* 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.
|
|
208
214
|
*
|
|
209
215
|
* ### span_beyond_timeline_end
|
|
210
216
|
*
|
|
@@ -415,8 +421,9 @@ export const zProblemTypeCatalog = z.enum([
|
|
|
415
421
|
'authorization_revoked',
|
|
416
422
|
'import_in_progress',
|
|
417
423
|
'pay_schedule_already_exists',
|
|
424
|
+
'pay_schedule_deletion_in_progress',
|
|
425
|
+
'pay_schedule_deletion_refused',
|
|
418
426
|
'product_archived',
|
|
419
|
-
'recorded_since_termination',
|
|
420
427
|
'span_beyond_timeline_end',
|
|
421
428
|
'version_overlap',
|
|
422
429
|
'precondition_failed',
|
|
@@ -465,6 +472,7 @@ export const zDirectUploadParameters = z.object({
|
|
|
465
472
|
'assets.items.documents',
|
|
466
473
|
'assets.items.service_events',
|
|
467
474
|
'assets.products',
|
|
475
|
+
'assets.products.documents',
|
|
468
476
|
'assets.vendors',
|
|
469
477
|
'compliance.checks',
|
|
470
478
|
'form_submissions',
|
|
@@ -472,6 +480,7 @@ export const zDirectUploadParameters = z.object({
|
|
|
472
480
|
'internal.company_todos',
|
|
473
481
|
'internal.job_todos',
|
|
474
482
|
'internal.project_todos',
|
|
483
|
+
'jobs',
|
|
475
484
|
'jobs.documents',
|
|
476
485
|
'jobs.pwa.apprenticeship.good_faith_effort_exceptions',
|
|
477
486
|
'jobs.pwa.cure_payments',
|
|
@@ -1919,6 +1928,47 @@ export const zPayPeriodConfigParameters = z.object({
|
|
|
1919
1928
|
approvals_deadline_clock_time: z.string().regex(/^([01][0-9]|2[0-3]):[0-5][0-9]$/),
|
|
1920
1929
|
time_card_auto_lock_days: z.int().nullish()
|
|
1921
1930
|
});
|
|
1931
|
+
/**
|
|
1932
|
+
* 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.
|
|
1933
|
+
*/
|
|
1934
|
+
export const zPayPeriodConfigUpdateParameters = z.object({
|
|
1935
|
+
effective_date: z.iso.date(),
|
|
1936
|
+
frequency: z.enum(['weekly', 'biweekly']).optional(),
|
|
1937
|
+
start_day_of_week: z.union([
|
|
1938
|
+
z.literal(0),
|
|
1939
|
+
z.literal(1),
|
|
1940
|
+
z.literal(2),
|
|
1941
|
+
z.literal(3),
|
|
1942
|
+
z.literal(4),
|
|
1943
|
+
z.literal(5),
|
|
1944
|
+
z.literal(6)
|
|
1945
|
+
]).optional(),
|
|
1946
|
+
tz_name: z.string().optional(),
|
|
1947
|
+
rounding_interval: z.union([z.literal(1), z.literal(15)]).optional(),
|
|
1948
|
+
payroll_system: z.enum([
|
|
1949
|
+
'rippling',
|
|
1950
|
+
'quickbooks_online',
|
|
1951
|
+
'paychex',
|
|
1952
|
+
'gusto'
|
|
1953
|
+
]).nullish(),
|
|
1954
|
+
paid_after_holiday: z.boolean().optional(),
|
|
1955
|
+
arrear_days: z.int().gte(0).optional(),
|
|
1956
|
+
pay_run_deadline_days: z.int().gte(1).optional(),
|
|
1957
|
+
pay_run_deadline_clock_time: z.string().regex(/^([01][0-9]|2[0-3]):[0-5][0-9]$/).optional(),
|
|
1958
|
+
approvals_deadline_days: z.int().gte(0).optional(),
|
|
1959
|
+
approvals_deadline_clock_time: z.string().regex(/^([01][0-9]|2[0-3]):[0-5][0-9]$/).optional(),
|
|
1960
|
+
time_card_auto_lock_days: z.int().nullish(),
|
|
1961
|
+
time_mode: z.enum([
|
|
1962
|
+
'none',
|
|
1963
|
+
'base',
|
|
1964
|
+
'aggregate'
|
|
1965
|
+
]).optional(),
|
|
1966
|
+
payroll_mode: z.enum([
|
|
1967
|
+
'none',
|
|
1968
|
+
'base',
|
|
1969
|
+
'aggregate'
|
|
1970
|
+
]).nullish()
|
|
1971
|
+
});
|
|
1922
1972
|
/**
|
|
1923
1973
|
* 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.
|
|
1924
1974
|
*/
|
|
@@ -2554,6 +2604,7 @@ export const zPwaTradeApprenticeshipOccupationUpdateParameters = z.object({
|
|
|
2554
2604
|
* Prevailing-wage / apprenticeship (PWA) compliance details for a job, used in certified-payroll reporting. Common fields are always present when this object exists; regional fields appear only when applicable to the job's region and regional PWA mode. The property is null when no PWA details have been configured; PWA tracking modes alone do not materialize it.
|
|
2555
2605
|
*/
|
|
2556
2606
|
export const zPwaJobDetailsResponseObject = z.object({
|
|
2607
|
+
lock_in_date: z.iso.date().nullable(),
|
|
2557
2608
|
contractor_type: z.enum(['prime_contractor', 'sub_contractor']).nullable(),
|
|
2558
2609
|
pay_full_cash_fringe_by_default: z.boolean(),
|
|
2559
2610
|
dir_awarding_body_id: z.string().nullish(),
|
|
@@ -2569,7 +2620,15 @@ export const zPwaJobDetailsResponseObject = z.object({
|
|
|
2569
2620
|
il_dol_public_body_address_id: z.string().nullish(),
|
|
2570
2621
|
il_dol_contract_number: z.string().nullish(),
|
|
2571
2622
|
il_shines_project_id: z.string().nullish(),
|
|
2572
|
-
ny_dol_prc_number: z.string().nullish()
|
|
2623
|
+
ny_dol_prc_number: z.string().nullish(),
|
|
2624
|
+
effective_lock_in_date: z.iso.date().readonly().nullable(),
|
|
2625
|
+
lock_in_date_doc: z.object({
|
|
2626
|
+
id: z.string(),
|
|
2627
|
+
filename: z.string(),
|
|
2628
|
+
content_type: z.string(),
|
|
2629
|
+
byte_size: z.int(),
|
|
2630
|
+
url: z.string()
|
|
2631
|
+
}).readonly().nullable()
|
|
2573
2632
|
}).nullable();
|
|
2574
2633
|
/**
|
|
2575
2634
|
* Parameters for creating a job. Sets the job's schedule, work types, address, custom-field values, and optional Prevailing Wage / Apprenticeship (PWA) compliance. `requested_by_company_id` and `created_by_user_id` are required unless `template_id` names a template, whose copy keeps both. Undeclared body keys return 400, and a null for a field that is not nullable or a wrongly typed value returns 422 at its pointer, before any job or relationship is saved.
|
|
@@ -2577,6 +2636,8 @@ export const zPwaJobDetailsResponseObject = z.object({
|
|
|
2577
2636
|
export const zJobCreateParameters = z.object({
|
|
2578
2637
|
created_by_user_id: z.string().regex(/[^\x09-\x0D\x20
- ‧- ]|[‧]/).optional(),
|
|
2579
2638
|
template_id: z.string().regex(/[^\x09-\x0D\x20
- ‧- ]|[‧]/).nullish(),
|
|
2639
|
+
lock_in_date_doc_signed_id: z.string().regex(/[^\x09-\x0D\x20
- ‧- ]|[‧]/).optional(),
|
|
2640
|
+
performed_by_user_id: z.string().regex(/[^\x09-\x0D\x20
- ‧- ]|[‧]/).optional(),
|
|
2580
2641
|
name: z.string().nullish(),
|
|
2581
2642
|
description: z.string().optional(),
|
|
2582
2643
|
requested_by_company_id: z.string().regex(/[^\x09-\x0D\x20
- ‧- ]|[‧]/).optional(),
|
|
@@ -2615,6 +2676,12 @@ export const zJobCreateParameters = z.object({
|
|
|
2615
2676
|
'feature',
|
|
2616
2677
|
'quantity'
|
|
2617
2678
|
]).optional(),
|
|
2679
|
+
work_classification: z.enum([
|
|
2680
|
+
'unspecified',
|
|
2681
|
+
'construction',
|
|
2682
|
+
'long_term_service',
|
|
2683
|
+
'one_time_service'
|
|
2684
|
+
]).optional(),
|
|
2618
2685
|
manager_user_ids: z.array(z.string().regex(/[^\x09-\x0D\x20
- ‧- ]|[‧]/)).optional(),
|
|
2619
2686
|
timekeeping_timecode_ids: z.array(z.string().regex(/[^\x09-\x0D\x20
- ‧- ]|[‧]/)).optional(),
|
|
2620
2687
|
job_work_types_attributes: z.array(z.object({
|
|
@@ -2640,6 +2707,7 @@ export const zJobCreateParameters = z.object({
|
|
|
2640
2707
|
value: z.string().nullable()
|
|
2641
2708
|
})).optional(),
|
|
2642
2709
|
pwa_details: z.object({
|
|
2710
|
+
lock_in_date: z.iso.date().nullish(),
|
|
2643
2711
|
contractor_type: z.enum(['prime_contractor', 'sub_contractor']).nullish(),
|
|
2644
2712
|
pay_full_cash_fringe_by_default: z.boolean().optional(),
|
|
2645
2713
|
dir_awarding_body_id: z.string().nullish(),
|
|
@@ -2662,6 +2730,8 @@ export const zJobCreateParameters = z.object({
|
|
|
2662
2730
|
* Parameters for updating an existing job. Every field is optional; omit a field to preserve its current value. The resulting job must still satisfy schedule and PWA validation rules. Accepts every shared job field plus a directly settable status and custom-field changes. Sending `created_by_user_id` returns 400 unknown_key, including when it matches the existing creator or is null. Undeclared body keys return 400, and a null for a field that is not nullable or a wrongly typed value returns 422 at its pointer, before any job or relationship changes.
|
|
2663
2731
|
*/
|
|
2664
2732
|
export const zJobUpdateParameters = z.object({
|
|
2733
|
+
lock_in_date_doc_signed_id: z.string().regex(/[^\x09-\x0D\x20
- ‧- ]|[‧]/).optional(),
|
|
2734
|
+
performed_by_user_id: z.string().regex(/[^\x09-\x0D\x20
- ‧- ]|[‧]/).optional(),
|
|
2665
2735
|
name: z.string().nullish(),
|
|
2666
2736
|
description: z.string().optional(),
|
|
2667
2737
|
requested_by_company_id: z.string().regex(/[^\x09-\x0D\x20
- ‧- ]|[‧]/).optional(),
|
|
@@ -2700,6 +2770,12 @@ export const zJobUpdateParameters = z.object({
|
|
|
2700
2770
|
'feature',
|
|
2701
2771
|
'quantity'
|
|
2702
2772
|
]).optional(),
|
|
2773
|
+
work_classification: z.enum([
|
|
2774
|
+
'unspecified',
|
|
2775
|
+
'construction',
|
|
2776
|
+
'long_term_service',
|
|
2777
|
+
'one_time_service'
|
|
2778
|
+
]).optional(),
|
|
2703
2779
|
manager_user_ids: z.array(z.string().regex(/[^\x09-\x0D\x20
- ‧- ]|[‧]/)).optional(),
|
|
2704
2780
|
timekeeping_timecode_ids: z.array(z.string().regex(/[^\x09-\x0D\x20
- ‧- ]|[‧]/)).optional(),
|
|
2705
2781
|
job_work_types_attributes: z.array(z.object({
|
|
@@ -2725,6 +2801,7 @@ export const zJobUpdateParameters = z.object({
|
|
|
2725
2801
|
value: z.string().nullable()
|
|
2726
2802
|
})).optional(),
|
|
2727
2803
|
pwa_details: z.object({
|
|
2804
|
+
lock_in_date: z.iso.date().nullish(),
|
|
2728
2805
|
contractor_type: z.enum(['prime_contractor', 'sub_contractor']).nullish(),
|
|
2729
2806
|
pay_full_cash_fringe_by_default: z.boolean().optional(),
|
|
2730
2807
|
dir_awarding_body_id: z.string().nullish(),
|
|
@@ -6321,6 +6398,12 @@ export const zJobResponseObject = z.object({
|
|
|
6321
6398
|
tracks_feature_allocations: z.boolean(),
|
|
6322
6399
|
requires_feature_allocation: z.boolean(),
|
|
6323
6400
|
max_one_feature_allocation: z.boolean(),
|
|
6401
|
+
work_classification: z.enum([
|
|
6402
|
+
'unspecified',
|
|
6403
|
+
'construction',
|
|
6404
|
+
'long_term_service',
|
|
6405
|
+
'one_time_service'
|
|
6406
|
+
]),
|
|
6324
6407
|
production_tracking_kind: z.enum([
|
|
6325
6408
|
'none',
|
|
6326
6409
|
'feature',
|
|
@@ -6778,6 +6861,36 @@ export const zLaborRateResponseObject = z.object({
|
|
|
6778
6861
|
fringe_percentage_rate: z.string().nullable(),
|
|
6779
6862
|
fringe_benefit_weekly_rate_cents: z.string().nullable(),
|
|
6780
6863
|
fringe_benefit_monthly_rate_cents: z.string().nullable(),
|
|
6864
|
+
fringe_calculation: z.object({
|
|
6865
|
+
available: z.boolean(),
|
|
6866
|
+
hourly_cents: z.string().nullable(),
|
|
6867
|
+
reasons: z.array(z.string()),
|
|
6868
|
+
component_ids: z.array(z.string())
|
|
6869
|
+
}),
|
|
6870
|
+
fringe_benefit_components: z.array(z.object({
|
|
6871
|
+
id: z.string(),
|
|
6872
|
+
position: z.int(),
|
|
6873
|
+
amount_cents: z.string(),
|
|
6874
|
+
period: z.enum([
|
|
6875
|
+
'hour',
|
|
6876
|
+
'day',
|
|
6877
|
+
'week',
|
|
6878
|
+
'month',
|
|
6879
|
+
'year',
|
|
6880
|
+
'shift'
|
|
6881
|
+
]),
|
|
6882
|
+
kind: z.enum([
|
|
6883
|
+
'fringe',
|
|
6884
|
+
'wage_premium',
|
|
6885
|
+
'unresolved'
|
|
6886
|
+
]),
|
|
6887
|
+
text: z.string(),
|
|
6888
|
+
attachment_status: z.enum(['rate', 'unresolved']),
|
|
6889
|
+
labor_rate_id: z.string().nullable(),
|
|
6890
|
+
source_sha256: z.string(),
|
|
6891
|
+
start_offset: z.int(),
|
|
6892
|
+
end_offset: z.int()
|
|
6893
|
+
})),
|
|
6781
6894
|
reference_item_ids: z.array(z.string()),
|
|
6782
6895
|
created_at: z.iso.datetime(),
|
|
6783
6896
|
updated_at: z.iso.datetime()
|
|
@@ -8196,7 +8309,27 @@ export const zAssetsDocumentResponseObject = z.object({
|
|
|
8196
8309
|
updated_at: z.iso.datetime()
|
|
8197
8310
|
});
|
|
8198
8311
|
/**
|
|
8199
|
-
*
|
|
8312
|
+
* A file attached to an asset product — a document such as a manual, warranty, or certificate. Uploaded through the direct-upload flow and optionally marked as a certified copy.
|
|
8313
|
+
*/
|
|
8314
|
+
export const zAssetsProductDocumentResponseObject = z.object({
|
|
8315
|
+
id: z.string(),
|
|
8316
|
+
assets_product_id: z.string(),
|
|
8317
|
+
name: z.string(),
|
|
8318
|
+
filename: z.string().nullable(),
|
|
8319
|
+
description: z.string().nullable(),
|
|
8320
|
+
certified: z.boolean(),
|
|
8321
|
+
created_by_user_id: z.string(),
|
|
8322
|
+
file: z.object({
|
|
8323
|
+
filename: z.string(),
|
|
8324
|
+
content_type: z.string().nullable(),
|
|
8325
|
+
byte_size: z.int(),
|
|
8326
|
+
url: z.string()
|
|
8327
|
+
}).nullable(),
|
|
8328
|
+
created_at: z.iso.datetime(),
|
|
8329
|
+
updated_at: z.iso.datetime()
|
|
8330
|
+
});
|
|
8331
|
+
/**
|
|
8332
|
+
* Attach a file to an asset item or product as a document. file is required and takes a signed_id from the direct-upload endpoint.
|
|
8200
8333
|
*/
|
|
8201
8334
|
export const zAssetsDocumentParameters = z.object({
|
|
8202
8335
|
file: z.string().regex(/[^\x09-\x0D\x20
- ‧- ]|[‧]/),
|
|
@@ -8205,7 +8338,7 @@ export const zAssetsDocumentParameters = z.object({
|
|
|
8205
8338
|
performed_by_user_id: z.string().regex(/[^\x09-\x0D\x20
- ‧- ]|[‧]/)
|
|
8206
8339
|
});
|
|
8207
8340
|
/**
|
|
8208
|
-
* Update an asset
|
|
8341
|
+
* Update an asset item or product document. All fields are optional — send only what changes. Omit file to retain the existing attachment, or supply a new signed_id to replace it. A document always holds a file, so null answers 422, as does a blank string.
|
|
8209
8342
|
*/
|
|
8210
8343
|
export const zAssetsDocumentUpdateParameters = z.object({
|
|
8211
8344
|
file: z.string().regex(/[^\x09-\x0D\x20
- ‧- ]|[‧]/).optional(),
|
|
@@ -8213,7 +8346,7 @@ export const zAssetsDocumentUpdateParameters = z.object({
|
|
|
8213
8346
|
description: z.string().nullish()
|
|
8214
8347
|
});
|
|
8215
8348
|
/**
|
|
8216
|
-
* One entry in an
|
|
8349
|
+
* One entry in an asset document's change history, recorded whenever the document is created, updated, or deleted — including when only its attached file is replaced.
|
|
8217
8350
|
*/
|
|
8218
8351
|
export const zAssetsDocumentVersionResponseObject = z.object({
|
|
8219
8352
|
id: z.int(),
|
|
@@ -8781,6 +8914,115 @@ export const zCompetencyStandardArchiveParametersWritable = z.record(z.string(),
|
|
|
8781
8914
|
* Revoke an active grant. The body takes no fields; send an empty object or no body. Revocation sets revoked_at and keeps the row; revoking it again answers 409 authorization_revoked.
|
|
8782
8915
|
*/
|
|
8783
8916
|
export const zCompetencyAssessorAuthorizationRevocationParametersWritable = z.record(z.string(), z.never());
|
|
8917
|
+
/**
|
|
8918
|
+
* Prevailing-wage / apprenticeship (PWA) compliance details for a job, used in certified-payroll reporting. Common fields are always present when this object exists; regional fields appear only when applicable to the job's region and regional PWA mode. The property is null when no PWA details have been configured; PWA tracking modes alone do not materialize it.
|
|
8919
|
+
*/
|
|
8920
|
+
export const zPwaJobDetailsResponseObjectWritable = z.object({
|
|
8921
|
+
lock_in_date: z.iso.date().nullable(),
|
|
8922
|
+
contractor_type: z.enum(['prime_contractor', 'sub_contractor']).nullable(),
|
|
8923
|
+
pay_full_cash_fringe_by_default: z.boolean(),
|
|
8924
|
+
dir_awarding_body_id: z.string().nullish(),
|
|
8925
|
+
dir_project_id: z.string().nullish(),
|
|
8926
|
+
dir_project_name: z.string().nullish(),
|
|
8927
|
+
dir_contract_id: z.string().nullish(),
|
|
8928
|
+
dir_project_awarding_body_name: z.string().nullish(),
|
|
8929
|
+
dir_project_number: z.string().nullish(),
|
|
8930
|
+
il_dol_project_id: z.string().nullish(),
|
|
8931
|
+
il_dol_state_capital_funds: z.boolean().nullish(),
|
|
8932
|
+
il_dol_public_body_name: z.string().nullish(),
|
|
8933
|
+
il_dol_public_body_contact_id: z.string().nullish(),
|
|
8934
|
+
il_dol_public_body_address_id: z.string().nullish(),
|
|
8935
|
+
il_dol_contract_number: z.string().nullish(),
|
|
8936
|
+
il_shines_project_id: z.string().nullish(),
|
|
8937
|
+
ny_dol_prc_number: z.string().nullish()
|
|
8938
|
+
}).nullable();
|
|
8939
|
+
/**
|
|
8940
|
+
* A job — the primary unit of work in DSPTCH. Workers fill its positions and track time against it; it optionally tracks Prevailing Wage / Apprenticeship (PWA) compliance and optionally belongs to a project. There is no delete endpoint — cancel or complete a job through its status instead.
|
|
8941
|
+
*/
|
|
8942
|
+
export const zJobResponseObjectWritable = z.object({
|
|
8943
|
+
id: z.string(),
|
|
8944
|
+
display_id: z.int(),
|
|
8945
|
+
description: z.string(),
|
|
8946
|
+
scheduled_time: z.string().nullable(),
|
|
8947
|
+
created_at: z.iso.datetime(),
|
|
8948
|
+
updated_at: z.iso.datetime(),
|
|
8949
|
+
status: z.string(),
|
|
8950
|
+
start_time: z.iso.date().nullable(),
|
|
8951
|
+
end_time: z.iso.date().nullable(),
|
|
8952
|
+
purchase_order_number: z.string().nullable(),
|
|
8953
|
+
time_card_start_day: zTimeCardStartDay,
|
|
8954
|
+
tz_name: z.string(),
|
|
8955
|
+
require_clock_in: z.boolean(),
|
|
8956
|
+
clock_in_requirement: z.enum([
|
|
8957
|
+
'none',
|
|
8958
|
+
'warning',
|
|
8959
|
+
'required'
|
|
8960
|
+
]),
|
|
8961
|
+
name: z.string().nullable(),
|
|
8962
|
+
federal_pwa_mode: z.enum([
|
|
8963
|
+
'all',
|
|
8964
|
+
'pw_only',
|
|
8965
|
+
'ap_only',
|
|
8966
|
+
'none'
|
|
8967
|
+
]),
|
|
8968
|
+
regional_pwa_mode: z.enum([
|
|
8969
|
+
'all',
|
|
8970
|
+
'pw_only',
|
|
8971
|
+
'ap_only',
|
|
8972
|
+
'none'
|
|
8973
|
+
]),
|
|
8974
|
+
region: z.string().nullable(),
|
|
8975
|
+
send_geofence_reminders: z.boolean().nullable(),
|
|
8976
|
+
allow_customer_access: z.boolean(),
|
|
8977
|
+
created_by_company_id: z.string(),
|
|
8978
|
+
requested_by_company_id: z.string().nullable(),
|
|
8979
|
+
project_id: z.string().nullable(),
|
|
8980
|
+
companies_department_id: z.string().nullable(),
|
|
8981
|
+
manager_users: z.array(z.object({
|
|
8982
|
+
id: z.string(),
|
|
8983
|
+
name: z.string()
|
|
8984
|
+
})),
|
|
8985
|
+
created_by_user: z.object({
|
|
8986
|
+
id: z.string(),
|
|
8987
|
+
name: z.string()
|
|
8988
|
+
}),
|
|
8989
|
+
sites: z.array(z.object({
|
|
8990
|
+
name: z.string(),
|
|
8991
|
+
features: z.array(z.object({
|
|
8992
|
+
name: z.string()
|
|
8993
|
+
}))
|
|
8994
|
+
})),
|
|
8995
|
+
job_address: z.object({
|
|
8996
|
+
label: z.string()
|
|
8997
|
+
}).nullable(),
|
|
8998
|
+
positions: z.array(z.object({
|
|
8999
|
+
position_function: zPositionFunction,
|
|
9000
|
+
fulfilled_by_user_id: z.string().nullable()
|
|
9001
|
+
})),
|
|
9002
|
+
project: z.object({
|
|
9003
|
+
name: z.string()
|
|
9004
|
+
}).nullable(),
|
|
9005
|
+
pwa_details: zPwaJobDetailsResponseObjectWritable,
|
|
9006
|
+
work_types: z.array(z.object({
|
|
9007
|
+
value: z.string()
|
|
9008
|
+
})),
|
|
9009
|
+
timekeeping_timecode_ids: z.array(z.string()),
|
|
9010
|
+
tracks_feature_allocations: z.boolean(),
|
|
9011
|
+
requires_feature_allocation: z.boolean(),
|
|
9012
|
+
max_one_feature_allocation: z.boolean(),
|
|
9013
|
+
work_classification: z.enum([
|
|
9014
|
+
'unspecified',
|
|
9015
|
+
'construction',
|
|
9016
|
+
'long_term_service',
|
|
9017
|
+
'one_time_service'
|
|
9018
|
+
]),
|
|
9019
|
+
production_tracking_kind: z.enum([
|
|
9020
|
+
'none',
|
|
9021
|
+
'feature',
|
|
9022
|
+
'quantity'
|
|
9023
|
+
]),
|
|
9024
|
+
custom_fields: z.array(zCustomFieldResponseObject)
|
|
9025
|
+
});
|
|
8784
9026
|
/**
|
|
8785
9027
|
* A certification held by a worker — the record that a worker earned a certification, with its receipt date, optional expiry, and verification state.
|
|
8786
9028
|
*/
|
|
@@ -9831,6 +10073,76 @@ export const zSyncServiceScheduleTemplateResponse = z.object({
|
|
|
9831
10073
|
count: z.int(),
|
|
9832
10074
|
data: z.array(zAssetsServiceScheduleResponseObject)
|
|
9833
10075
|
});
|
|
10076
|
+
export const zListProductDocumentsPath = z.object({
|
|
10077
|
+
product_id: z.string()
|
|
10078
|
+
});
|
|
10079
|
+
export const zListProductDocumentsQuery = z.object({
|
|
10080
|
+
filter: z.string().optional(),
|
|
10081
|
+
'filter[unexpected]': z.string().optional(),
|
|
10082
|
+
'page[cursor]': z.string().optional(),
|
|
10083
|
+
'page[limit]': z.int().gte(1).optional().default(20),
|
|
10084
|
+
page: z.string().optional()
|
|
10085
|
+
});
|
|
10086
|
+
/**
|
|
10087
|
+
* Success
|
|
10088
|
+
*/
|
|
10089
|
+
export const zListProductDocumentsResponse = z.object({
|
|
10090
|
+
meta: zMeta,
|
|
10091
|
+
links: zLinks,
|
|
10092
|
+
data: z.array(zAssetsProductDocumentResponseObject)
|
|
10093
|
+
});
|
|
10094
|
+
export const zCreateProductDocumentBody = zAssetsDocumentParameters;
|
|
10095
|
+
export const zCreateProductDocumentPath = z.object({
|
|
10096
|
+
product_id: z.string()
|
|
10097
|
+
});
|
|
10098
|
+
/**
|
|
10099
|
+
* Created
|
|
10100
|
+
*/
|
|
10101
|
+
export const zCreateProductDocumentResponse = zAssetsProductDocumentResponseObject;
|
|
10102
|
+
export const zDeleteProductDocumentPath = z.object({
|
|
10103
|
+
product_id: z.string(),
|
|
10104
|
+
id: z.string()
|
|
10105
|
+
});
|
|
10106
|
+
/**
|
|
10107
|
+
* No Content
|
|
10108
|
+
*/
|
|
10109
|
+
export const zDeleteProductDocumentResponse = z.void();
|
|
10110
|
+
export const zGetProductDocumentPath = z.object({
|
|
10111
|
+
product_id: z.string(),
|
|
10112
|
+
id: z.string()
|
|
10113
|
+
});
|
|
10114
|
+
/**
|
|
10115
|
+
* Success
|
|
10116
|
+
*/
|
|
10117
|
+
export const zGetProductDocumentResponse = zAssetsProductDocumentResponseObject;
|
|
10118
|
+
export const zUpdateProductDocumentBody = zAssetsDocumentUpdateParameters;
|
|
10119
|
+
export const zUpdateProductDocumentPath = z.object({
|
|
10120
|
+
product_id: z.string(),
|
|
10121
|
+
id: z.string()
|
|
10122
|
+
});
|
|
10123
|
+
/**
|
|
10124
|
+
* Success
|
|
10125
|
+
*/
|
|
10126
|
+
export const zUpdateProductDocumentResponse = zAssetsProductDocumentResponseObject;
|
|
10127
|
+
export const zListProductDocumentVersionsPath = z.object({
|
|
10128
|
+
product_id: z.string(),
|
|
10129
|
+
document_id: z.string()
|
|
10130
|
+
});
|
|
10131
|
+
export const zListProductDocumentVersionsQuery = z.object({
|
|
10132
|
+
'page[cursor]': z.string().optional(),
|
|
10133
|
+
'page[limit]': z.int().gte(1).optional().default(20),
|
|
10134
|
+
page: z.string().optional(),
|
|
10135
|
+
filter: z.string().optional(),
|
|
10136
|
+
'filter[unexpected]': z.string().optional()
|
|
10137
|
+
});
|
|
10138
|
+
/**
|
|
10139
|
+
* Success
|
|
10140
|
+
*/
|
|
10141
|
+
export const zListProductDocumentVersionsResponse = z.object({
|
|
10142
|
+
meta: zMeta,
|
|
10143
|
+
links: zLinks,
|
|
10144
|
+
data: z.array(zAssetsDocumentVersionResponseObject)
|
|
10145
|
+
});
|
|
9834
10146
|
export const zListAssetsSitesQuery = z.object({
|
|
9835
10147
|
'filter[created_at][gte]': z.iso.datetime().optional(),
|
|
9836
10148
|
'filter[created_at][lte]': z.iso.datetime().optional(),
|
|
@@ -11950,6 +12262,13 @@ export const zCreateJobBody = zJobCreateParameters;
|
|
|
11950
12262
|
* Created
|
|
11951
12263
|
*/
|
|
11952
12264
|
export const zCreateJobResponse = zJobResponseObject;
|
|
12265
|
+
export const zDeleteJobPath = z.object({
|
|
12266
|
+
id: z.string()
|
|
12267
|
+
});
|
|
12268
|
+
/**
|
|
12269
|
+
* No Content
|
|
12270
|
+
*/
|
|
12271
|
+
export const zDeleteJobResponse = z.void();
|
|
11953
12272
|
export const zGetJobPath = z.object({
|
|
11954
12273
|
id: z.string()
|
|
11955
12274
|
});
|
|
@@ -14680,6 +14999,12 @@ export const zCreatePayPeriodConfigBody = zPayPeriodConfigParameters;
|
|
|
14680
14999
|
* Created
|
|
14681
15000
|
*/
|
|
14682
15001
|
export const zCreatePayPeriodConfigResponse = zPayPeriodConfigResponseObject;
|
|
15002
|
+
export const zDeletePayPeriodConfigHeaders = z.object({
|
|
15003
|
+
'If-Match': z.string()
|
|
15004
|
+
});
|
|
15005
|
+
export const zDeletePayPeriodConfigPath = z.object({
|
|
15006
|
+
id: z.string()
|
|
15007
|
+
});
|
|
14683
15008
|
export const zGetPayPeriodConfigPath = z.object({
|
|
14684
15009
|
id: z.string()
|
|
14685
15010
|
});
|
|
@@ -14690,6 +15015,17 @@ export const zGetPayPeriodConfigQuery = z.object({
|
|
|
14690
15015
|
* Success
|
|
14691
15016
|
*/
|
|
14692
15017
|
export const zGetPayPeriodConfigResponse = zPayPeriodConfigResponseObject;
|
|
15018
|
+
export const zUpdatePayPeriodConfigBody = zPayPeriodConfigUpdateParameters;
|
|
15019
|
+
export const zUpdatePayPeriodConfigHeaders = z.object({
|
|
15020
|
+
'If-Match': z.string()
|
|
15021
|
+
});
|
|
15022
|
+
export const zUpdatePayPeriodConfigPath = z.object({
|
|
15023
|
+
id: z.string()
|
|
15024
|
+
});
|
|
15025
|
+
/**
|
|
15026
|
+
* Accepted
|
|
15027
|
+
*/
|
|
15028
|
+
export const zUpdatePayPeriodConfigResponse = zPayPeriodConfigResponseObject;
|
|
14693
15029
|
export const zListTimeCardActualsQuery = z.object({
|
|
14694
15030
|
'filter[timekeeping_time_card_id]': z.string().optional(),
|
|
14695
15031
|
'filter[created_at][gte]': z.iso.datetime().optional(),
|