@dsptch-work/api-client 0.52.1 → 0.53.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 +24 -0
- package/dist/gen/index.d.ts +2 -2
- package/dist/gen/index.js +1 -1
- package/dist/gen/sdk.gen.d.ts +386 -65
- package/dist/gen/sdk.gen.js +587 -98
- package/dist/gen/types.gen.d.ts +1454 -439
- package/dist/gen/zod.gen.d.ts +834 -316
- package/dist/gen/zod.gen.js +416 -82
- package/package.json +1 -1
package/dist/gen/zod.gen.js
CHANGED
|
@@ -488,6 +488,7 @@ export const zDirectUploadParameters = z.object({
|
|
|
488
488
|
'assets.products',
|
|
489
489
|
'assets.products.documents',
|
|
490
490
|
'assets.vendors',
|
|
491
|
+
'company_documents',
|
|
491
492
|
'compliance.checks',
|
|
492
493
|
'form_submissions',
|
|
493
494
|
'internal.companies',
|
|
@@ -855,6 +856,19 @@ export const zApprenticeshipOccupationResponseObject = z.object({
|
|
|
855
856
|
created_at: z.iso.datetime(),
|
|
856
857
|
updated_at: z.iso.datetime()
|
|
857
858
|
});
|
|
859
|
+
/**
|
|
860
|
+
* A skill-specific hour bucket within an occupation (for example, rough-in wiring within an electrician occupation). Allocations may optionally name a category. Minutes are stored and published directly.
|
|
861
|
+
*/
|
|
862
|
+
export const zApprenticeshipWorkProcessCategoryResponseObject = z.object({
|
|
863
|
+
id: z.string(),
|
|
864
|
+
apprenticeship_occupation_id: z.string(),
|
|
865
|
+
name: z.string(),
|
|
866
|
+
description: z.string().nullable(),
|
|
867
|
+
min_minutes: z.int(),
|
|
868
|
+
max_minutes: z.int(),
|
|
869
|
+
created_at: z.iso.datetime(),
|
|
870
|
+
updated_at: z.iso.datetime()
|
|
871
|
+
});
|
|
858
872
|
/**
|
|
859
873
|
* A company authorized to employ apprentices in a program; the program's sponsor manages this roster.
|
|
860
874
|
*/
|
|
@@ -1070,6 +1084,24 @@ export const zApprenticeshipOccupationUpdateParameters = z.object({
|
|
|
1070
1084
|
num_apprentices: z.int().optional(),
|
|
1071
1085
|
num_journeyworkers: z.int().optional()
|
|
1072
1086
|
});
|
|
1087
|
+
/**
|
|
1088
|
+
* Create a work process category on an occupation; the occupation is taken from the URL path. Minutes are sent as integers. Omitting name, min_minutes, or max_minutes, or sending max_minutes less than or equal to min_minutes, answers 422. A null for a non-nullable field or a wrong JSON type answers 422. An unknown key answers 400.
|
|
1089
|
+
*/
|
|
1090
|
+
export const zApprenticeshipWorkProcessCategoryParameters = z.object({
|
|
1091
|
+
name: z.string().optional(),
|
|
1092
|
+
description: z.string().nullish(),
|
|
1093
|
+
min_minutes: z.int().optional(),
|
|
1094
|
+
max_minutes: z.int().optional()
|
|
1095
|
+
});
|
|
1096
|
+
/**
|
|
1097
|
+
* Update a work process category on an occupation. Send only the fields to change; the occupation is taken from the URL path. Minutes are sent as integers. A null for a non-nullable field, a wrong JSON type, or max_minutes less than or equal to min_minutes answers 422. An unknown key answers 400.
|
|
1098
|
+
*/
|
|
1099
|
+
export const zApprenticeshipWorkProcessCategoryUpdateParameters = z.object({
|
|
1100
|
+
name: z.string().optional(),
|
|
1101
|
+
description: z.string().nullish(),
|
|
1102
|
+
min_minutes: z.int().optional(),
|
|
1103
|
+
max_minutes: z.int().optional()
|
|
1104
|
+
});
|
|
1073
1105
|
/**
|
|
1074
1106
|
* Create an authorization for an employer to employ apprentices in a program; only the program's sponsor may manage this roster.
|
|
1075
1107
|
*/
|
|
@@ -1840,6 +1872,51 @@ export const zDepartmentUpdateParameters = z.object({
|
|
|
1840
1872
|
name: z.string().optional(),
|
|
1841
1873
|
description: z.string().nullish()
|
|
1842
1874
|
});
|
|
1875
|
+
/**
|
|
1876
|
+
* A company-level document — either an uploaded file or an external URL, never both.
|
|
1877
|
+
*/
|
|
1878
|
+
export const zCompanyDocumentResponseObject = z.object({
|
|
1879
|
+
id: z.string(),
|
|
1880
|
+
company_id: z.string(),
|
|
1881
|
+
name: z.string(),
|
|
1882
|
+
description: z.string().nullable(),
|
|
1883
|
+
url: z.string().nullable(),
|
|
1884
|
+
tags: z.array(z.string()),
|
|
1885
|
+
always_download: z.boolean().nullable(),
|
|
1886
|
+
uploaded_by_user_id: z.string(),
|
|
1887
|
+
file: z.object({
|
|
1888
|
+
filename: z.string(),
|
|
1889
|
+
content_type: z.string().nullable(),
|
|
1890
|
+
byte_size: z.int(),
|
|
1891
|
+
url: z.string()
|
|
1892
|
+
}).nullable(),
|
|
1893
|
+
created_at: z.iso.datetime(),
|
|
1894
|
+
updated_at: z.iso.datetime()
|
|
1895
|
+
});
|
|
1896
|
+
/**
|
|
1897
|
+
* Request body for creating a company document. The company is taken from the API key and is not part of the body. Supply exactly one of `url` or `file`. Company keys must send `performed_by_user_id`; user keys act as themselves.
|
|
1898
|
+
*/
|
|
1899
|
+
export const zCompanyDocumentParameters = z.object({
|
|
1900
|
+
name: z.string().optional(),
|
|
1901
|
+
description: z.string().nullish(),
|
|
1902
|
+
url: z.string().nullish(),
|
|
1903
|
+
tags: z.array(z.string()).optional(),
|
|
1904
|
+
always_download: z.boolean().optional(),
|
|
1905
|
+
file: z.string().regex(/[^\x09-\x0D\x20
- ‧- ]|[‧]/).optional(),
|
|
1906
|
+
performed_by_user_id: z.string().regex(/[^\x09-\x0D\x20
- ‧- ]|[‧]/).optional()
|
|
1907
|
+
});
|
|
1908
|
+
/**
|
|
1909
|
+
* Request body for updating a company document. Every field is optional; omit a field to preserve its current value. The resulting document must still be exactly one of `url` or `file`.
|
|
1910
|
+
*/
|
|
1911
|
+
export const zCompanyDocumentUpdateParameters = z.object({
|
|
1912
|
+
name: z.string().optional(),
|
|
1913
|
+
description: z.string().nullish(),
|
|
1914
|
+
url: z.string().nullish(),
|
|
1915
|
+
tags: z.array(z.string()).optional(),
|
|
1916
|
+
always_download: z.boolean().optional(),
|
|
1917
|
+
file: z.string().regex(/[^\x09-\x0D\x20
- ‧- ]|[‧]/).nullish(),
|
|
1918
|
+
performed_by_user_id: z.string().regex(/[^\x09-\x0D\x20
- ‧- ]|[‧]/).optional()
|
|
1919
|
+
});
|
|
1843
1920
|
/**
|
|
1844
1921
|
* A per-diem allowance recorded on a time card for a specific date. Its rate, currency, and taxable flag are snapshotted from the referenced catalog per diem when saved.
|
|
1845
1922
|
*/
|
|
@@ -2843,12 +2920,30 @@ export const zJobUpdateParameters = z.object({
|
|
|
2843
2920
|
]).optional()
|
|
2844
2921
|
});
|
|
2845
2922
|
/**
|
|
2846
|
-
* A reusable job template — a saved job pattern for quickly creating new jobs with the same setup.
|
|
2923
|
+
* A reusable job template — a saved job pattern for quickly creating new jobs with the same setup.
|
|
2847
2924
|
*/
|
|
2848
2925
|
export const zJobTemplateResponseObject = z.object({
|
|
2849
2926
|
id: z.string(),
|
|
2850
2927
|
name: z.string(),
|
|
2851
|
-
description: z.string().nullable()
|
|
2928
|
+
description: z.string().nullable(),
|
|
2929
|
+
job_id: z.string()
|
|
2930
|
+
});
|
|
2931
|
+
/**
|
|
2932
|
+
* Request body for creating a job template. Send fields in JSON; the template belongs to the company that owns the API key. Omit job_id for an empty template job; send it to copy a visible job. Company keys must send performed_by_user_id; user keys act as themselves.
|
|
2933
|
+
*/
|
|
2934
|
+
export const zJobTemplateParameters = z.object({
|
|
2935
|
+
name: z.string(),
|
|
2936
|
+
description: z.string().nullish(),
|
|
2937
|
+
job_id: z.string().regex(/[^\x09-\x0D\x20
- ‧- ]|[‧]/).nullish(),
|
|
2938
|
+
position_option: z.enum(['empty', 'assigned']).nullish(),
|
|
2939
|
+
performed_by_user_id: z.string().regex(/[^\x09-\x0D\x20
- ‧- ]|[‧]/).optional()
|
|
2940
|
+
});
|
|
2941
|
+
/**
|
|
2942
|
+
* Request body for updating a job template. Send only fields to change in JSON; omitted fields remain unchanged. job_id, position_option, and performed_by_user_id are create-only and answer 400.
|
|
2943
|
+
*/
|
|
2944
|
+
export const zJobTemplateUpdateParameters = z.object({
|
|
2945
|
+
name: z.string().optional(),
|
|
2946
|
+
description: z.string().nullish()
|
|
2852
2947
|
});
|
|
2853
2948
|
/**
|
|
2854
2949
|
* A named collection of a company's users, used to organize people for assignment, filtering, and company workflows. Membership is managed through the nested group-users endpoints.
|
|
@@ -3227,23 +3322,6 @@ export const zUserCompanyCreateParameters = z.object({
|
|
|
3227
3322
|
value: z.string().nullable()
|
|
3228
3323
|
})).optional()
|
|
3229
3324
|
});
|
|
3230
|
-
/**
|
|
3231
|
-
* Request body for scheduling a future-dated compensation change. effective_date sets when the new values take effect; earlier history is preserved as its own version. Covers the pay, benefit, accrual, and department fields.
|
|
3232
|
-
*/
|
|
3233
|
-
export const zUserCompanyScheduledChangesParameters = z.object({
|
|
3234
|
-
effective_date: z.iso.date(),
|
|
3235
|
-
hourly_rate_cents: z.string().regex(/^[0-9]+(\.[0-9]+)?$/).nullish(),
|
|
3236
|
-
training_annual_amount_cents: z.string().regex(/^[0-9]+(\.[0-9]+)?$/).nullish(),
|
|
3237
|
-
employer_combined_health_amount_cents: z.string().regex(/^[0-9]+(\.[0-9]+)?$/).nullish(),
|
|
3238
|
-
employer_combined_savings_cents: z.string().regex(/^[0-9]+(\.[0-9]+)?$/).nullish(),
|
|
3239
|
-
compensation_type: z.enum(['hourly', 'salary']).optional(),
|
|
3240
|
-
overtime_eligible: z.boolean().optional(),
|
|
3241
|
-
worked_annual_minutes: z.int().nullish(),
|
|
3242
|
-
pto_annual_minutes: z.int().nullish(),
|
|
3243
|
-
holiday_annual_minutes: z.int().nullish(),
|
|
3244
|
-
training_annual_minutes: z.int().nullish(),
|
|
3245
|
-
companies_department_id: z.string().regex(/[^\x09-\x0D\x20
- ‧- ]|[‧]/).nullish()
|
|
3246
|
-
});
|
|
3247
3325
|
/**
|
|
3248
3326
|
* A work type: a named category of job activity, either a shared global default (no owning company) or an entry scoped to a specific company.
|
|
3249
3327
|
*/
|
|
@@ -3256,6 +3334,18 @@ export const zWorkTypeResponseObject = z.object({
|
|
|
3256
3334
|
created_at: z.iso.datetime(),
|
|
3257
3335
|
updated_at: z.iso.datetime()
|
|
3258
3336
|
});
|
|
3337
|
+
/**
|
|
3338
|
+
* Request body for creating a work type. Send fields in JSON; the work type belongs to the company that owns the API key. `verified`, `specific_to_site_type`, and `scoped_to_company_id` are refused.
|
|
3339
|
+
*/
|
|
3340
|
+
export const zWorkTypeParameters = z.object({
|
|
3341
|
+
value: z.string()
|
|
3342
|
+
});
|
|
3343
|
+
/**
|
|
3344
|
+
* Request body for updating a work type. Send only fields to change in JSON; omitted fields remain unchanged. `verified`, `specific_to_site_type`, and `scoped_to_company_id` are refused.
|
|
3345
|
+
*/
|
|
3346
|
+
export const zWorkTypeUpdateParameters = z.object({
|
|
3347
|
+
value: z.string().optional()
|
|
3348
|
+
});
|
|
3259
3349
|
/**
|
|
3260
3350
|
* A function a worker can fulfill in a position — an entry in the company's job-title taxonomy (e.g. "Electrician", "Foreman"), either company-owned or a shared global default.
|
|
3261
3351
|
*/
|
|
@@ -3449,32 +3539,6 @@ export const zTimeCardStartDay = z.union([
|
|
|
3449
3539
|
z.literal(5),
|
|
3450
3540
|
z.literal(6)
|
|
3451
3541
|
]);
|
|
3452
|
-
/**
|
|
3453
|
-
* One version of a worker's compensation at your company, effective from its start date until the next version begins.
|
|
3454
|
-
*/
|
|
3455
|
-
export const zUserCompanyScheduledChange = z.object({
|
|
3456
|
-
id: z.string(),
|
|
3457
|
-
start_date: z.string(),
|
|
3458
|
-
hourly_rate_cents: z.string().nullable(),
|
|
3459
|
-
compensation_type: z.enum(['hourly', 'salary']),
|
|
3460
|
-
overtime_eligible: z.boolean(),
|
|
3461
|
-
training_annual_amount_cents: z.string().nullable(),
|
|
3462
|
-
employer_combined_health_amount_cents: z.string().nullable(),
|
|
3463
|
-
employer_combined_savings_cents: z.string().nullable(),
|
|
3464
|
-
worked_annual_minutes: z.int().nullable(),
|
|
3465
|
-
pto_annual_minutes: z.int().nullable(),
|
|
3466
|
-
holiday_annual_minutes: z.int().nullable(),
|
|
3467
|
-
training_annual_minutes: z.int().nullable(),
|
|
3468
|
-
companies_department_id: z.string().nullable()
|
|
3469
|
-
});
|
|
3470
|
-
/**
|
|
3471
|
-
* A worker's scheduled compensation timeline at your company — the version currently in effect plus any future-dated versions.
|
|
3472
|
-
*/
|
|
3473
|
-
export const zUserCompanyScheduledChangesResponse = z.object({
|
|
3474
|
-
user_id: z.string(),
|
|
3475
|
-
current_version: zUserCompanyScheduledChange,
|
|
3476
|
-
scheduled_changes: z.array(zUserCompanyScheduledChange)
|
|
3477
|
-
});
|
|
3478
3542
|
/**
|
|
3479
3543
|
* Request body for scheduling the end of a worker's employment at your company. Sets the employment's end date; cancel the scheduled termination to restore open-ended employment. Deleting the employment record instead (DELETE on the membership) removes it entirely and is not reversible.
|
|
3480
3544
|
*/
|
|
@@ -5438,6 +5502,44 @@ export const zJobCaEcprXmlExportCreateParameters = z.object({
|
|
|
5438
5502
|
start_date: z.iso.date(),
|
|
5439
5503
|
end_date: z.iso.date()
|
|
5440
5504
|
});
|
|
5505
|
+
/**
|
|
5506
|
+
* A job-scoped NY DOL XML certified-payroll export. The generation handle is polled through this same document; `file` is null until an XML or ZIP is attached. Signing fields are not published. This format has no form version.
|
|
5507
|
+
*/
|
|
5508
|
+
export const zJobNyDolXmlExportResponseObject = z.object({
|
|
5509
|
+
id: z.string(),
|
|
5510
|
+
job_id: z.string(),
|
|
5511
|
+
start_date: z.iso.date(),
|
|
5512
|
+
end_date: z.iso.date(),
|
|
5513
|
+
status: z.enum([
|
|
5514
|
+
'pending',
|
|
5515
|
+
'processing',
|
|
5516
|
+
'signing',
|
|
5517
|
+
'signed',
|
|
5518
|
+
'certifying',
|
|
5519
|
+
'success',
|
|
5520
|
+
'failed'
|
|
5521
|
+
]),
|
|
5522
|
+
file: z.object({
|
|
5523
|
+
filename: z.string(),
|
|
5524
|
+
content_type: z.string().nullable(),
|
|
5525
|
+
byte_size: z.int(),
|
|
5526
|
+
url: z.string()
|
|
5527
|
+
}).nullable(),
|
|
5528
|
+
invalidated_at: z.iso.datetime().nullable(),
|
|
5529
|
+
invalidation_reason: z.enum([
|
|
5530
|
+
'source_data_changed',
|
|
5531
|
+
'source_records_deleted',
|
|
5532
|
+
'ratio_status_changed'
|
|
5533
|
+
]).nullable(),
|
|
5534
|
+
created_at: z.iso.datetime()
|
|
5535
|
+
});
|
|
5536
|
+
/**
|
|
5537
|
+
* Start a job-scoped NY DOL XML certified-payroll export over a calendar window. Creation requires a user-scoped API key, because the generation handle attributes the export to a person. The response is the pending export; poll the member GET for status and the file URL. Filename is server-owned. A job that does not offer NY DOL XML answers 422 certified_payroll_format_unavailable. Failing compliance checks that block the export answer 422 certified_payroll_export_blocked. A window with no reportable pay periods answers 422 nothing_exportable.
|
|
5538
|
+
*/
|
|
5539
|
+
export const zJobNyDolXmlExportCreateParameters = z.object({
|
|
5540
|
+
start_date: z.iso.date(),
|
|
5541
|
+
end_date: z.iso.date()
|
|
5542
|
+
});
|
|
5441
5543
|
/**
|
|
5442
5544
|
* A job-scoped WH-347 certified-payroll export. The generation handle is polled through this same document; `file` is null until a ZIP is attached. Signing fields are not published.
|
|
5443
5545
|
*/
|
|
@@ -6752,6 +6854,14 @@ export const zLinks = z.object({
|
|
|
6752
6854
|
first: z.string().nullable(),
|
|
6753
6855
|
next: z.string().nullable()
|
|
6754
6856
|
});
|
|
6857
|
+
/**
|
|
6858
|
+
* A page of the company's documents, with pagination metadata and navigation links.
|
|
6859
|
+
*/
|
|
6860
|
+
export const zCompanyDocumentsResponseObject = z.object({
|
|
6861
|
+
meta: zMeta,
|
|
6862
|
+
links: zLinks,
|
|
6863
|
+
data: z.array(zCompanyDocumentResponseObject)
|
|
6864
|
+
});
|
|
6755
6865
|
/**
|
|
6756
6866
|
* A page of time entries, with pagination metadata and navigation links.
|
|
6757
6867
|
*/
|
|
@@ -6906,6 +7016,14 @@ export const zJobCaEcprXmlExportsResponseObject = z.object({
|
|
|
6906
7016
|
links: zLinks,
|
|
6907
7017
|
data: z.array(zJobCaEcprXmlExportResponseObject)
|
|
6908
7018
|
});
|
|
7019
|
+
/**
|
|
7020
|
+
* A page of a job's NY DOL XML certified-payroll exports, with pagination metadata and navigation links.
|
|
7021
|
+
*/
|
|
7022
|
+
export const zJobNyDolXmlExportsResponseObject = z.object({
|
|
7023
|
+
meta: zMeta,
|
|
7024
|
+
links: zLinks,
|
|
7025
|
+
data: z.array(zJobNyDolXmlExportResponseObject)
|
|
7026
|
+
});
|
|
6909
7027
|
/**
|
|
6910
7028
|
* A page of a job's WH-347 certified-payroll exports, with pagination metadata and navigation links.
|
|
6911
7029
|
*/
|
|
@@ -7944,6 +8062,31 @@ export const zPayRatesRuleHistoryVersionObject = z.object({
|
|
|
7944
8062
|
]),
|
|
7945
8063
|
corrections: z.array(zPayRatesRuleHistoryCorrectionObject)
|
|
7946
8064
|
});
|
|
8065
|
+
/**
|
|
8066
|
+
* A company-owned collection of overtime rules, used as an employment and wage-determination fallback.
|
|
8067
|
+
*/
|
|
8068
|
+
export const zOvertimePackageResponseObject = z.object({
|
|
8069
|
+
id: z.string(),
|
|
8070
|
+
name: z.string(),
|
|
8071
|
+
description: z.string(),
|
|
8072
|
+
default: z.boolean()
|
|
8073
|
+
});
|
|
8074
|
+
/**
|
|
8075
|
+
* Parameters for creating a company overtime package. `name` and `description` are required by the model; omitting either answers 422. The company and selectability are stamped by the server.
|
|
8076
|
+
*/
|
|
8077
|
+
export const zOvertimePackageParameters = z.object({
|
|
8078
|
+
name: z.string().optional(),
|
|
8079
|
+
description: z.string().optional(),
|
|
8080
|
+
default: z.boolean().optional()
|
|
8081
|
+
});
|
|
8082
|
+
/**
|
|
8083
|
+
* Request body for updating a company overtime package. Send only the fields to change. Setting `default` to true demotes the previous default and migrates eligible employments onto this package.
|
|
8084
|
+
*/
|
|
8085
|
+
export const zOvertimePackageUpdateParameters = z.object({
|
|
8086
|
+
name: z.string().optional(),
|
|
8087
|
+
description: z.string().optional(),
|
|
8088
|
+
default: z.boolean().optional()
|
|
8089
|
+
});
|
|
7947
8090
|
/**
|
|
7948
8091
|
* 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.
|
|
7949
8092
|
*/
|
|
@@ -9593,6 +9736,61 @@ export const zUpdateWageSchedulePath = z.object({
|
|
|
9593
9736
|
* Success
|
|
9594
9737
|
*/
|
|
9595
9738
|
export const zUpdateWageScheduleResponse = zApprenticeshipWageScheduleResponseObject;
|
|
9739
|
+
export const zListWorkProcessCategoriesPath = z.object({
|
|
9740
|
+
occupation_id: z.string()
|
|
9741
|
+
});
|
|
9742
|
+
export const zListWorkProcessCategoriesQuery = z.object({
|
|
9743
|
+
'filter[created_at][gte]': z.iso.datetime().optional(),
|
|
9744
|
+
'filter[created_at][lte]': z.iso.datetime().optional(),
|
|
9745
|
+
'filter[updated_at][gte]': z.iso.datetime().optional(),
|
|
9746
|
+
'filter[updated_at][lte]': z.iso.datetime().optional(),
|
|
9747
|
+
filter: z.string().optional(),
|
|
9748
|
+
'filter[unexpected]': z.string().optional(),
|
|
9749
|
+
'page[cursor]': z.string().optional(),
|
|
9750
|
+
'page[limit]': z.int().gte(1).optional().default(20),
|
|
9751
|
+
page: z.string().optional()
|
|
9752
|
+
});
|
|
9753
|
+
/**
|
|
9754
|
+
* Success
|
|
9755
|
+
*/
|
|
9756
|
+
export const zListWorkProcessCategoriesResponse = z.object({
|
|
9757
|
+
meta: zMeta,
|
|
9758
|
+
links: zLinks,
|
|
9759
|
+
data: z.array(zApprenticeshipWorkProcessCategoryResponseObject)
|
|
9760
|
+
});
|
|
9761
|
+
export const zCreateWorkProcessCategoryBody = zApprenticeshipWorkProcessCategoryParameters;
|
|
9762
|
+
export const zCreateWorkProcessCategoryPath = z.object({
|
|
9763
|
+
occupation_id: z.string()
|
|
9764
|
+
});
|
|
9765
|
+
/**
|
|
9766
|
+
* Created
|
|
9767
|
+
*/
|
|
9768
|
+
export const zCreateWorkProcessCategoryResponse = zApprenticeshipWorkProcessCategoryResponseObject;
|
|
9769
|
+
export const zDeleteWorkProcessCategoryPath = z.object({
|
|
9770
|
+
occupation_id: z.string(),
|
|
9771
|
+
id: z.string()
|
|
9772
|
+
});
|
|
9773
|
+
/**
|
|
9774
|
+
* No Content
|
|
9775
|
+
*/
|
|
9776
|
+
export const zDeleteWorkProcessCategoryResponse = z.void();
|
|
9777
|
+
export const zGetWorkProcessCategoryPath = z.object({
|
|
9778
|
+
occupation_id: z.string(),
|
|
9779
|
+
id: z.string()
|
|
9780
|
+
});
|
|
9781
|
+
/**
|
|
9782
|
+
* Success
|
|
9783
|
+
*/
|
|
9784
|
+
export const zGetWorkProcessCategoryResponse = zApprenticeshipWorkProcessCategoryResponseObject;
|
|
9785
|
+
export const zUpdateWorkProcessCategoryBody = zApprenticeshipWorkProcessCategoryUpdateParameters;
|
|
9786
|
+
export const zUpdateWorkProcessCategoryPath = z.object({
|
|
9787
|
+
occupation_id: z.string(),
|
|
9788
|
+
id: z.string()
|
|
9789
|
+
});
|
|
9790
|
+
/**
|
|
9791
|
+
* Success
|
|
9792
|
+
*/
|
|
9793
|
+
export const zUpdateWorkProcessCategoryResponse = zApprenticeshipWorkProcessCategoryResponseObject;
|
|
9596
9794
|
export const zListAttributesQuery = z.object({
|
|
9597
9795
|
'filter[data_type]': z.string().optional(),
|
|
9598
9796
|
'filter[created_at][gte]': z.iso.datetime().optional(),
|
|
@@ -10871,6 +11069,48 @@ export const zUpdateCompanyProfilePath = z.object({
|
|
|
10871
11069
|
* Success
|
|
10872
11070
|
*/
|
|
10873
11071
|
export const zUpdateCompanyProfileResponse = zCompanyResponseObject;
|
|
11072
|
+
export const zListCompanyDocumentsQuery = z.object({
|
|
11073
|
+
'filter[created_at][gte]': z.iso.datetime().optional(),
|
|
11074
|
+
'filter[created_at][lte]': z.iso.datetime().optional(),
|
|
11075
|
+
'filter[updated_at][gte]': z.iso.datetime().optional(),
|
|
11076
|
+
'filter[updated_at][lte]': z.iso.datetime().optional(),
|
|
11077
|
+
filter: z.string().optional(),
|
|
11078
|
+
'filter[unexpected]': z.string().optional(),
|
|
11079
|
+
'page[cursor]': z.string().optional(),
|
|
11080
|
+
'page[limit]': z.int().gte(1).optional().default(20),
|
|
11081
|
+
page: z.string().optional()
|
|
11082
|
+
});
|
|
11083
|
+
/**
|
|
11084
|
+
* Success
|
|
11085
|
+
*/
|
|
11086
|
+
export const zListCompanyDocumentsResponse = zCompanyDocumentsResponseObject;
|
|
11087
|
+
export const zCreateCompanyDocumentBody = zCompanyDocumentParameters;
|
|
11088
|
+
/**
|
|
11089
|
+
* Created
|
|
11090
|
+
*/
|
|
11091
|
+
export const zCreateCompanyDocumentResponse = zCompanyDocumentResponseObject;
|
|
11092
|
+
export const zDeleteCompanyDocumentPath = z.object({
|
|
11093
|
+
id: z.string()
|
|
11094
|
+
});
|
|
11095
|
+
/**
|
|
11096
|
+
* No Content
|
|
11097
|
+
*/
|
|
11098
|
+
export const zDeleteCompanyDocumentResponse = z.void();
|
|
11099
|
+
export const zGetCompanyDocumentPath = z.object({
|
|
11100
|
+
id: z.string()
|
|
11101
|
+
});
|
|
11102
|
+
/**
|
|
11103
|
+
* Success
|
|
11104
|
+
*/
|
|
11105
|
+
export const zGetCompanyDocumentResponse = zCompanyDocumentResponseObject;
|
|
11106
|
+
export const zUpdateCompanyDocumentBody = zCompanyDocumentUpdateParameters;
|
|
11107
|
+
export const zUpdateCompanyDocumentPath = z.object({
|
|
11108
|
+
id: z.string()
|
|
11109
|
+
});
|
|
11110
|
+
/**
|
|
11111
|
+
* Success
|
|
11112
|
+
*/
|
|
11113
|
+
export const zUpdateCompanyDocumentResponse = zCompanyDocumentResponseObject;
|
|
10874
11114
|
export const zListAssessmentsQuery = z.object({
|
|
10875
11115
|
'filter[candidate_user_id]': z.string().optional(),
|
|
10876
11116
|
'filter[competencies_level_id]': z.string().optional(),
|
|
@@ -12095,6 +12335,37 @@ export const zGetCaEcprXmlExportPath = z.object({
|
|
|
12095
12335
|
* Success
|
|
12096
12336
|
*/
|
|
12097
12337
|
export const zGetCaEcprXmlExportResponse = zJobCaEcprXmlExportResponseObject;
|
|
12338
|
+
export const zListNyDolXmlExportsPath = z.object({
|
|
12339
|
+
job_id: z.string()
|
|
12340
|
+
});
|
|
12341
|
+
export const zListNyDolXmlExportsQuery = z.object({
|
|
12342
|
+
'filter[status]': z.string().optional(),
|
|
12343
|
+
filter: z.string().optional(),
|
|
12344
|
+
'filter[unexpected]': z.string().optional(),
|
|
12345
|
+
'page[cursor]': z.string().optional(),
|
|
12346
|
+
'page[limit]': z.int().gte(1).optional().default(20),
|
|
12347
|
+
page: z.string().optional()
|
|
12348
|
+
});
|
|
12349
|
+
/**
|
|
12350
|
+
* Success
|
|
12351
|
+
*/
|
|
12352
|
+
export const zListNyDolXmlExportsResponse = zJobNyDolXmlExportsResponseObject;
|
|
12353
|
+
export const zCreateNyDolXmlExportBody = zJobNyDolXmlExportCreateParameters;
|
|
12354
|
+
export const zCreateNyDolXmlExportPath = z.object({
|
|
12355
|
+
job_id: z.string()
|
|
12356
|
+
});
|
|
12357
|
+
/**
|
|
12358
|
+
* Created
|
|
12359
|
+
*/
|
|
12360
|
+
export const zCreateNyDolXmlExportResponse = zJobNyDolXmlExportResponseObject;
|
|
12361
|
+
export const zGetNyDolXmlExportPath = z.object({
|
|
12362
|
+
job_id: z.string(),
|
|
12363
|
+
id: z.string()
|
|
12364
|
+
});
|
|
12365
|
+
/**
|
|
12366
|
+
* Success
|
|
12367
|
+
*/
|
|
12368
|
+
export const zGetNyDolXmlExportResponse = zJobNyDolXmlExportResponseObject;
|
|
12098
12369
|
export const zListWh347ExportsPath = z.object({
|
|
12099
12370
|
job_id: z.string()
|
|
12100
12371
|
});
|
|
@@ -12896,6 +13167,48 @@ export const zUpdateOvertimeRulePath = z.object({
|
|
|
12896
13167
|
* Success
|
|
12897
13168
|
*/
|
|
12898
13169
|
export const zUpdateOvertimeRuleResponse = zOvertimeRuleResponseObject;
|
|
13170
|
+
export const zListOvertimePackagesQuery = z.object({
|
|
13171
|
+
filter: z.string().optional(),
|
|
13172
|
+
'filter[unexpected]': z.string().optional(),
|
|
13173
|
+
'page[cursor]': z.string().optional(),
|
|
13174
|
+
'page[limit]': z.int().gte(1).optional().default(20),
|
|
13175
|
+
page: z.string().optional()
|
|
13176
|
+
});
|
|
13177
|
+
/**
|
|
13178
|
+
* Success
|
|
13179
|
+
*/
|
|
13180
|
+
export const zListOvertimePackagesResponse = z.object({
|
|
13181
|
+
meta: zMeta,
|
|
13182
|
+
links: zLinks,
|
|
13183
|
+
data: z.array(zOvertimePackageResponseObject)
|
|
13184
|
+
});
|
|
13185
|
+
export const zCreateOvertimePackageBody = zOvertimePackageParameters;
|
|
13186
|
+
/**
|
|
13187
|
+
* Created
|
|
13188
|
+
*/
|
|
13189
|
+
export const zCreateOvertimePackageResponse = zOvertimePackageResponseObject;
|
|
13190
|
+
export const zDeleteOvertimePackagePath = z.object({
|
|
13191
|
+
id: z.string()
|
|
13192
|
+
});
|
|
13193
|
+
/**
|
|
13194
|
+
* No Content
|
|
13195
|
+
*/
|
|
13196
|
+
export const zDeleteOvertimePackageResponse = z.void();
|
|
13197
|
+
export const zGetOvertimePackagePath = z.object({
|
|
13198
|
+
id: z.string()
|
|
13199
|
+
});
|
|
13200
|
+
/**
|
|
13201
|
+
* Success
|
|
13202
|
+
*/
|
|
13203
|
+
export const zGetOvertimePackageResponse = zOvertimePackageResponseObject;
|
|
13204
|
+
export const zUpdateOvertimePackageBody = zOvertimePackageUpdateParameters;
|
|
13205
|
+
export const zUpdateOvertimePackagePath = z.object({
|
|
13206
|
+
id: z.string()
|
|
13207
|
+
});
|
|
13208
|
+
/**
|
|
13209
|
+
* Success
|
|
13210
|
+
*/
|
|
13211
|
+
export const zUpdateOvertimePackageResponse = zOvertimePackageResponseObject;
|
|
12899
13212
|
export const zShiftPayRateRuleGenesisBody = zPayRatesRuleGenesisParameters;
|
|
12900
13213
|
export const zShiftPayRateRuleGenesisHeaders = z.object({
|
|
12901
13214
|
'If-Match': z.string()
|
|
@@ -14774,6 +15087,33 @@ export const zListTemplatesResponse = z.object({
|
|
|
14774
15087
|
links: zLinks,
|
|
14775
15088
|
data: z.array(zJobTemplateResponseObject)
|
|
14776
15089
|
});
|
|
15090
|
+
export const zCreateTemplateBody = zJobTemplateParameters;
|
|
15091
|
+
/**
|
|
15092
|
+
* Created
|
|
15093
|
+
*/
|
|
15094
|
+
export const zCreateTemplateResponse = zJobTemplateResponseObject;
|
|
15095
|
+
export const zDeleteTemplatePath = z.object({
|
|
15096
|
+
id: z.string()
|
|
15097
|
+
});
|
|
15098
|
+
/**
|
|
15099
|
+
* No Content
|
|
15100
|
+
*/
|
|
15101
|
+
export const zDeleteTemplateResponse = z.void();
|
|
15102
|
+
export const zGetTemplatePath = z.object({
|
|
15103
|
+
id: z.string()
|
|
15104
|
+
});
|
|
15105
|
+
/**
|
|
15106
|
+
* Success
|
|
15107
|
+
*/
|
|
15108
|
+
export const zGetTemplateResponse = zJobTemplateResponseObject;
|
|
15109
|
+
export const zUpdateTemplateBody = zJobTemplateUpdateParameters;
|
|
15110
|
+
export const zUpdateTemplatePath = z.object({
|
|
15111
|
+
id: z.string()
|
|
15112
|
+
});
|
|
15113
|
+
/**
|
|
15114
|
+
* Success
|
|
15115
|
+
*/
|
|
15116
|
+
export const zUpdateTemplateResponse = zJobTemplateResponseObject;
|
|
14777
15117
|
export const zListAdjustableLineItemsPath = z.object({
|
|
14778
15118
|
time_card_id: z.string()
|
|
14779
15119
|
});
|
|
@@ -15478,42 +15818,6 @@ export const zDeleteUserRolePath = z.object({
|
|
|
15478
15818
|
* Success
|
|
15479
15819
|
*/
|
|
15480
15820
|
export const zDeleteUserRoleResponse = zUserRoleResponse;
|
|
15481
|
-
export const zListUserCompanyScheduledChangesPath = z.object({
|
|
15482
|
-
user_id: z.string(),
|
|
15483
|
-
company_id: z.string()
|
|
15484
|
-
});
|
|
15485
|
-
/**
|
|
15486
|
-
* Success
|
|
15487
|
-
*/
|
|
15488
|
-
export const zListUserCompanyScheduledChangesResponse = zUserCompanyScheduledChangesResponse;
|
|
15489
|
-
export const zCreateUserCompanyScheduledChangeBody = zUserCompanyScheduledChangesParameters;
|
|
15490
|
-
export const zCreateUserCompanyScheduledChangePath = z.object({
|
|
15491
|
-
user_id: z.string(),
|
|
15492
|
-
company_id: z.string()
|
|
15493
|
-
});
|
|
15494
|
-
/**
|
|
15495
|
-
* Success
|
|
15496
|
-
*/
|
|
15497
|
-
export const zCreateUserCompanyScheduledChangeResponse = zUserCompanyScheduledChangesResponse;
|
|
15498
|
-
export const zCancelUserCompanyScheduledChangePath = z.object({
|
|
15499
|
-
user_id: z.string(),
|
|
15500
|
-
company_id: z.string(),
|
|
15501
|
-
id: z.string()
|
|
15502
|
-
});
|
|
15503
|
-
/**
|
|
15504
|
-
* Success
|
|
15505
|
-
*/
|
|
15506
|
-
export const zCancelUserCompanyScheduledChangeResponse = zUserCompanyScheduledChangesResponse;
|
|
15507
|
-
export const zUpdateScheduledChangeBody = zUserCompanyScheduledChangesParameters;
|
|
15508
|
-
export const zUpdateScheduledChangePath = z.object({
|
|
15509
|
-
user_id: z.string(),
|
|
15510
|
-
company_id: z.string(),
|
|
15511
|
-
id: z.string()
|
|
15512
|
-
});
|
|
15513
|
-
/**
|
|
15514
|
-
* Success
|
|
15515
|
-
*/
|
|
15516
|
-
export const zUpdateScheduledChangeResponse = zUserCompanyScheduledChangesResponse;
|
|
15517
15821
|
export const zCreateScheduledTerminationBody = zUserCompanyScheduledTerminationParameters;
|
|
15518
15822
|
export const zCreateScheduledTerminationPath = z.object({
|
|
15519
15823
|
user_id: z.string(),
|
|
@@ -15749,9 +16053,12 @@ export const zGetWageDeterminationPath = z.object({
|
|
|
15749
16053
|
*/
|
|
15750
16054
|
export const zGetWageDeterminationResponse = zWageDeterminationResponseObject;
|
|
15751
16055
|
export const zListWorkTypesQuery = z.object({
|
|
16056
|
+
'filter[value]': z.string().optional(),
|
|
15752
16057
|
'page[cursor]': z.string().optional(),
|
|
15753
16058
|
'page[limit]': z.int().gte(1).optional().default(20),
|
|
15754
|
-
page: z.string().optional()
|
|
16059
|
+
page: z.string().optional(),
|
|
16060
|
+
filter: z.string().optional(),
|
|
16061
|
+
'filter[unexpected]': z.string().optional()
|
|
15755
16062
|
});
|
|
15756
16063
|
/**
|
|
15757
16064
|
* Success
|
|
@@ -15761,3 +16068,30 @@ export const zListWorkTypesResponse = z.object({
|
|
|
15761
16068
|
links: zLinks,
|
|
15762
16069
|
data: z.array(zWorkTypeResponseObject)
|
|
15763
16070
|
});
|
|
16071
|
+
export const zCreateWorkTypeBody = zWorkTypeParameters;
|
|
16072
|
+
/**
|
|
16073
|
+
* Created
|
|
16074
|
+
*/
|
|
16075
|
+
export const zCreateWorkTypeResponse = zWorkTypeResponseObject;
|
|
16076
|
+
export const zDeleteWorkTypePath = z.object({
|
|
16077
|
+
id: z.string()
|
|
16078
|
+
});
|
|
16079
|
+
/**
|
|
16080
|
+
* No Content
|
|
16081
|
+
*/
|
|
16082
|
+
export const zDeleteWorkTypeResponse = z.void();
|
|
16083
|
+
export const zGetWorkTypePath = z.object({
|
|
16084
|
+
id: z.string()
|
|
16085
|
+
});
|
|
16086
|
+
/**
|
|
16087
|
+
* Success
|
|
16088
|
+
*/
|
|
16089
|
+
export const zGetWorkTypeResponse = zWorkTypeResponseObject;
|
|
16090
|
+
export const zUpdateWorkTypeBody = zWorkTypeUpdateParameters;
|
|
16091
|
+
export const zUpdateWorkTypePath = z.object({
|
|
16092
|
+
id: z.string()
|
|
16093
|
+
});
|
|
16094
|
+
/**
|
|
16095
|
+
* Success
|
|
16096
|
+
*/
|
|
16097
|
+
export const zUpdateWorkTypeResponse = zWorkTypeResponseObject;
|