@dsptch-work/api-client 0.52.0 → 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.
@@ -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',
@@ -787,6 +788,7 @@ export const zCompetencyAssessmentCriterionResponseObject = z.object({
787
788
  assessed_at: z.iso.datetime().nullable(),
788
789
  carried_from_id: z.string().nullable(),
789
790
  decided_at: z.iso.datetime().nullable(),
791
+ not_applicable: z.boolean(),
790
792
  decision: z.enum([
791
793
  'pending',
792
794
  'competent',
@@ -854,6 +856,19 @@ export const zApprenticeshipOccupationResponseObject = z.object({
854
856
  created_at: z.iso.datetime(),
855
857
  updated_at: z.iso.datetime()
856
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
+ });
857
872
  /**
858
873
  * A company authorized to employ apprentices in a program; the program's sponsor manages this roster.
859
874
  */
@@ -1069,6 +1084,24 @@ export const zApprenticeshipOccupationUpdateParameters = z.object({
1069
1084
  num_apprentices: z.int().optional(),
1070
1085
  num_journeyworkers: z.int().optional()
1071
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
+ });
1072
1105
  /**
1073
1106
  * Create an authorization for an employer to employ apprentices in a program; only the program's sponsor may manage this roster.
1074
1107
  */
@@ -1839,6 +1872,51 @@ export const zDepartmentUpdateParameters = z.object({
1839
1872
  name: z.string().optional(),
1840
1873
  description: z.string().nullish()
1841
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
+ });
1842
1920
  /**
1843
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.
1844
1922
  */
@@ -2842,12 +2920,30 @@ export const zJobUpdateParameters = z.object({
2842
2920
  ]).optional()
2843
2921
  });
2844
2922
  /**
2845
- * A reusable job template — a saved job pattern for quickly creating new jobs with the same setup. Read-only through the API (listing only).
2923
+ * A reusable job template — a saved job pattern for quickly creating new jobs with the same setup.
2846
2924
  */
2847
2925
  export const zJobTemplateResponseObject = z.object({
2848
2926
  id: z.string(),
2849
2927
  name: z.string(),
2850
- 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()
2851
2947
  });
2852
2948
  /**
2853
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.
@@ -3226,23 +3322,6 @@ export const zUserCompanyCreateParameters = z.object({
3226
3322
  value: z.string().nullable()
3227
3323
  })).optional()
3228
3324
  });
3229
- /**
3230
- * 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.
3231
- */
3232
- export const zUserCompanyScheduledChangesParameters = z.object({
3233
- effective_date: z.iso.date(),
3234
- hourly_rate_cents: z.string().regex(/^[0-9]+(\.[0-9]+)?$/).nullish(),
3235
- training_annual_amount_cents: z.string().regex(/^[0-9]+(\.[0-9]+)?$/).nullish(),
3236
- employer_combined_health_amount_cents: z.string().regex(/^[0-9]+(\.[0-9]+)?$/).nullish(),
3237
- employer_combined_savings_cents: z.string().regex(/^[0-9]+(\.[0-9]+)?$/).nullish(),
3238
- compensation_type: z.enum(['hourly', 'salary']).optional(),
3239
- overtime_eligible: z.boolean().optional(),
3240
- worked_annual_minutes: z.int().nullish(),
3241
- pto_annual_minutes: z.int().nullish(),
3242
- holiday_annual_minutes: z.int().nullish(),
3243
- training_annual_minutes: z.int().nullish(),
3244
- companies_department_id: z.string().regex(/[^\x09-\x0D\x20…   - ‧-‪   ]|[‧‪]/).nullish()
3245
- });
3246
3325
  /**
3247
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.
3248
3327
  */
@@ -3255,6 +3334,18 @@ export const zWorkTypeResponseObject = z.object({
3255
3334
  created_at: z.iso.datetime(),
3256
3335
  updated_at: z.iso.datetime()
3257
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
+ });
3258
3349
  /**
3259
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.
3260
3351
  */
@@ -3448,32 +3539,6 @@ export const zTimeCardStartDay = z.union([
3448
3539
  z.literal(5),
3449
3540
  z.literal(6)
3450
3541
  ]);
3451
- /**
3452
- * One version of a worker's compensation at your company, effective from its start date until the next version begins.
3453
- */
3454
- export const zUserCompanyScheduledChange = z.object({
3455
- id: z.string(),
3456
- start_date: z.string(),
3457
- hourly_rate_cents: z.string().nullable(),
3458
- compensation_type: z.enum(['hourly', 'salary']),
3459
- overtime_eligible: z.boolean(),
3460
- training_annual_amount_cents: z.string().nullable(),
3461
- employer_combined_health_amount_cents: z.string().nullable(),
3462
- employer_combined_savings_cents: z.string().nullable(),
3463
- worked_annual_minutes: z.int().nullable(),
3464
- pto_annual_minutes: z.int().nullable(),
3465
- holiday_annual_minutes: z.int().nullable(),
3466
- training_annual_minutes: z.int().nullable(),
3467
- companies_department_id: z.string().nullable()
3468
- });
3469
- /**
3470
- * A worker's scheduled compensation timeline at your company — the version currently in effect plus any future-dated versions.
3471
- */
3472
- export const zUserCompanyScheduledChangesResponse = z.object({
3473
- user_id: z.string(),
3474
- current_version: zUserCompanyScheduledChange,
3475
- scheduled_changes: z.array(zUserCompanyScheduledChange)
3476
- });
3477
3542
  /**
3478
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.
3479
3544
  */
@@ -4477,6 +4542,16 @@ export const zSiteCheckInResponseObject = z.object({
4477
4542
  site_contact_last_name: z.string().nullable(),
4478
4543
  employer_name: z.string().nullable(),
4479
4544
  description: z.string().nullable(),
4545
+ visit_reason: z.enum([
4546
+ 'om_team',
4547
+ 'oem_service_tickets',
4548
+ 'owners_visit',
4549
+ 'warranty_service',
4550
+ 'audit_inspections',
4551
+ 'regulatory_compliance',
4552
+ 'third_party_vendor_support',
4553
+ 'other'
4554
+ ]).nullable(),
4480
4555
  rationale: z.string().nullable(),
4481
4556
  source: z.enum([
4482
4557
  'manual',
@@ -5427,6 +5502,44 @@ export const zJobCaEcprXmlExportCreateParameters = z.object({
5427
5502
  start_date: z.iso.date(),
5428
5503
  end_date: z.iso.date()
5429
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
+ });
5430
5543
  /**
5431
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.
5432
5545
  */
@@ -6741,6 +6854,14 @@ export const zLinks = z.object({
6741
6854
  first: z.string().nullable(),
6742
6855
  next: z.string().nullable()
6743
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
+ });
6744
6865
  /**
6745
6866
  * A page of time entries, with pagination metadata and navigation links.
6746
6867
  */
@@ -6895,6 +7016,14 @@ export const zJobCaEcprXmlExportsResponseObject = z.object({
6895
7016
  links: zLinks,
6896
7017
  data: z.array(zJobCaEcprXmlExportResponseObject)
6897
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
+ });
6898
7027
  /**
6899
7028
  * A page of a job's WH-347 certified-payroll exports, with pagination metadata and navigation links.
6900
7029
  */
@@ -7933,6 +8062,31 @@ export const zPayRatesRuleHistoryVersionObject = z.object({
7933
8062
  ]),
7934
8063
  corrections: z.array(zPayRatesRuleHistoryCorrectionObject)
7935
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
+ });
7936
8090
  /**
7937
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.
7938
8092
  */
@@ -8212,6 +8366,7 @@ export const zAssetsSiteResponseObject = z.object({
8212
8366
  name: z.string(),
8213
8367
  site_type: z.string().nullable(),
8214
8368
  responsible_user_ids: z.array(z.string()),
8369
+ archived_at: z.iso.datetime().nullable(),
8215
8370
  created_at: z.iso.datetime(),
8216
8371
  updated_at: z.iso.datetime()
8217
8372
  });
@@ -8224,6 +8379,10 @@ export const zAssetsSiteParameters = z.object({
8224
8379
  name: z.string().regex(/[^\x09-\x0D\x20…   - ‧-‪   ]|[‧‪]/).nullish(),
8225
8380
  responsible_user_ids: z.array(z.string().regex(/[^\x09-\x0D\x20…   - ‧-‪   ]|[‧‪]/)).optional()
8226
8381
  });
8382
+ /**
8383
+ * Archive a site. The body takes no fields; send an empty object or no body. Archiving an archived site returns it unchanged.
8384
+ */
8385
+ export const zAssetsSiteArchiveParameters = z.record(z.string(), z.never());
8227
8386
  /**
8228
8387
  * Request body for updating an asset location. Every field is optional; send only the fields to change. The saved location must still have a name or a backing `site_id`.
8229
8388
  */
@@ -9211,6 +9370,10 @@ export const zUserCertificationsResponseObjWritable = z.object({
9211
9370
  links: zLinks,
9212
9371
  data: z.array(zUserCertificationResponseObjectWritable)
9213
9372
  });
9373
+ /**
9374
+ * Archive a site. The body takes no fields; send an empty object or no body. Archiving an archived site returns it unchanged.
9375
+ */
9376
+ export const zAssetsSiteArchiveParametersWritable = z.record(z.string(), z.never());
9214
9377
  /**
9215
9378
  * Success
9216
9379
  */
@@ -9573,6 +9736,61 @@ export const zUpdateWageSchedulePath = z.object({
9573
9736
  * Success
9574
9737
  */
9575
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;
9576
9794
  export const zListAttributesQuery = z.object({
9577
9795
  'filter[data_type]': z.string().optional(),
9578
9796
  'filter[created_at][gte]': z.iso.datetime().optional(),
@@ -10305,6 +10523,7 @@ export const zListProductDocumentVersionsResponse = z.object({
10305
10523
  data: z.array(zAssetsDocumentVersionResponseObject)
10306
10524
  });
10307
10525
  export const zListAssetsSitesQuery = z.object({
10526
+ 'filter[state]': z.string().optional(),
10308
10527
  'filter[created_at][gte]': z.iso.datetime().optional(),
10309
10528
  'filter[created_at][lte]': z.iso.datetime().optional(),
10310
10529
  'filter[updated_at][gte]': z.iso.datetime().optional(),
@@ -10350,6 +10569,21 @@ export const zUpdateSitePath = z.object({
10350
10569
  * Success
10351
10570
  */
10352
10571
  export const zUpdateSiteResponse = zAssetsSiteResponseObject;
10572
+ export const zUnarchiveAssetsSitePath = z.object({
10573
+ site_id: z.string()
10574
+ });
10575
+ /**
10576
+ * Success
10577
+ */
10578
+ export const zUnarchiveAssetsSiteResponse = zAssetsSiteResponseObject;
10579
+ export const zArchiveAssetsSiteBody = zAssetsSiteArchiveParametersWritable;
10580
+ export const zArchiveAssetsSitePath = z.object({
10581
+ site_id: z.string()
10582
+ });
10583
+ /**
10584
+ * Created
10585
+ */
10586
+ export const zArchiveAssetsSiteResponse = zAssetsSiteResponseObject;
10353
10587
  export const zListSubLocationsQuery = z.object({
10354
10588
  'filter[assets_site_id]': z.string().optional(),
10355
10589
  'filter[container_item_id]': z.string().optional(),
@@ -10835,6 +11069,48 @@ export const zUpdateCompanyProfilePath = z.object({
10835
11069
  * Success
10836
11070
  */
10837
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;
10838
11114
  export const zListAssessmentsQuery = z.object({
10839
11115
  'filter[candidate_user_id]': z.string().optional(),
10840
11116
  'filter[competencies_level_id]': z.string().optional(),
@@ -12059,6 +12335,37 @@ export const zGetCaEcprXmlExportPath = z.object({
12059
12335
  * Success
12060
12336
  */
12061
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;
12062
12369
  export const zListWh347ExportsPath = z.object({
12063
12370
  job_id: z.string()
12064
12371
  });
@@ -12860,6 +13167,48 @@ export const zUpdateOvertimeRulePath = z.object({
12860
13167
  * Success
12861
13168
  */
12862
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;
12863
13212
  export const zShiftPayRateRuleGenesisBody = zPayRatesRuleGenesisParameters;
12864
13213
  export const zShiftPayRateRuleGenesisHeaders = z.object({
12865
13214
  'If-Match': z.string()
@@ -14738,6 +15087,33 @@ export const zListTemplatesResponse = z.object({
14738
15087
  links: zLinks,
14739
15088
  data: z.array(zJobTemplateResponseObject)
14740
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;
14741
15117
  export const zListAdjustableLineItemsPath = z.object({
14742
15118
  time_card_id: z.string()
14743
15119
  });
@@ -15442,42 +15818,6 @@ export const zDeleteUserRolePath = z.object({
15442
15818
  * Success
15443
15819
  */
15444
15820
  export const zDeleteUserRoleResponse = zUserRoleResponse;
15445
- export const zListUserCompanyScheduledChangesPath = z.object({
15446
- user_id: z.string(),
15447
- company_id: z.string()
15448
- });
15449
- /**
15450
- * Success
15451
- */
15452
- export const zListUserCompanyScheduledChangesResponse = zUserCompanyScheduledChangesResponse;
15453
- export const zCreateUserCompanyScheduledChangeBody = zUserCompanyScheduledChangesParameters;
15454
- export const zCreateUserCompanyScheduledChangePath = z.object({
15455
- user_id: z.string(),
15456
- company_id: z.string()
15457
- });
15458
- /**
15459
- * Success
15460
- */
15461
- export const zCreateUserCompanyScheduledChangeResponse = zUserCompanyScheduledChangesResponse;
15462
- export const zCancelUserCompanyScheduledChangePath = z.object({
15463
- user_id: z.string(),
15464
- company_id: z.string(),
15465
- id: z.string()
15466
- });
15467
- /**
15468
- * Success
15469
- */
15470
- export const zCancelUserCompanyScheduledChangeResponse = zUserCompanyScheduledChangesResponse;
15471
- export const zUpdateScheduledChangeBody = zUserCompanyScheduledChangesParameters;
15472
- export const zUpdateScheduledChangePath = z.object({
15473
- user_id: z.string(),
15474
- company_id: z.string(),
15475
- id: z.string()
15476
- });
15477
- /**
15478
- * Success
15479
- */
15480
- export const zUpdateScheduledChangeResponse = zUserCompanyScheduledChangesResponse;
15481
15821
  export const zCreateScheduledTerminationBody = zUserCompanyScheduledTerminationParameters;
15482
15822
  export const zCreateScheduledTerminationPath = z.object({
15483
15823
  user_id: z.string(),
@@ -15713,9 +16053,12 @@ export const zGetWageDeterminationPath = z.object({
15713
16053
  */
15714
16054
  export const zGetWageDeterminationResponse = zWageDeterminationResponseObject;
15715
16055
  export const zListWorkTypesQuery = z.object({
16056
+ 'filter[value]': z.string().optional(),
15716
16057
  'page[cursor]': z.string().optional(),
15717
16058
  'page[limit]': z.int().gte(1).optional().default(20),
15718
- page: z.string().optional()
16059
+ page: z.string().optional(),
16060
+ filter: z.string().optional(),
16061
+ 'filter[unexpected]': z.string().optional()
15719
16062
  });
15720
16063
  /**
15721
16064
  * Success
@@ -15725,3 +16068,30 @@ export const zListWorkTypesResponse = z.object({
15725
16068
  links: zLinks,
15726
16069
  data: z.array(zWorkTypeResponseObject)
15727
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;