@dsptch-work/api-client 0.52.1 → 0.54.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',
@@ -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. 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.
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
  */
@@ -6300,9 +6402,9 @@ export const zProductionCompletionResponseObject = z.discriminatedUnion('complet
6300
6402
  zProductionQuantityCompletionResponseObject.extend({ completable_type: z.literal('Production::QuantityCompletion') })
6301
6403
  ]);
6302
6404
  /**
6303
- * The form-assignment tasks created by one request — assigning a form to one or more users, each with a due time and optional recurrence and reminders. Returned as an array because a request can spread the assignment into one task per assignee.
6405
+ * A shared form-completion task — a SurveyJS form assigned to users with a due time, optional recurrence, and reminders. Path `{id}` is the `Tasks::FormAssignmentTask` id, not the web show `Task#uid`. Nested job, site, feature, and asset-item assignments are not this resource.
6304
6406
  */
6305
- export const zFormAssignmentTaskResponseObject = z.array(z.object({
6407
+ export const zFormAssignmentTaskItemObject = z.object({
6306
6408
  id: z.string(),
6307
6409
  form_definition_id: z.string(),
6308
6410
  frequency: z.enum([
@@ -6315,8 +6417,8 @@ export const zFormAssignmentTaskResponseObject = z.array(z.object({
6315
6417
  'QUARTERLY'
6316
6418
  ]).nullable(),
6317
6419
  recurrence_end_time: z.iso.datetime().nullable(),
6318
- time_due: z.iso.datetime(),
6319
- tz_name: z.string(),
6420
+ time_due: z.iso.datetime().nullable(),
6421
+ tz_name: z.string().nullable(),
6320
6422
  name: z.string(),
6321
6423
  description: z.string().nullable(),
6322
6424
  task_assignee_user_ids: z.array(z.string()),
@@ -6324,7 +6426,75 @@ export const zFormAssignmentTaskResponseObject = z.array(z.object({
6324
6426
  offset: z.string(),
6325
6427
  remind_at: z.iso.datetime()
6326
6428
  }))
6327
- }));
6429
+ });
6430
+ /**
6431
+ * The form-assignment tasks created by one request — assigning a form to one or more users, each with a due time and optional recurrence and reminders. Returned as an array because a request can spread the assignment into one task per assignee.
6432
+ */
6433
+ export const zFormAssignmentTaskResponseObject = z.array(zFormAssignmentTaskItemObject);
6434
+ /**
6435
+ * Update a shared form assignment. All fields are optional — send only what changes. recurring gates the recurrence fields, and task_attributes.reminders_attributes replaces the existing reminder set when supplied. A newly added assignee outside the credential company returns 422. The creator is set at creation and cannot be sent. Nested job, site, feature, and asset-item assignments are not this resource.
6436
+ */
6437
+ export const zFormAssignmentTaskUpdateParameters = z.object({
6438
+ form_definition_id: z.string().optional(),
6439
+ recurring: z.boolean().optional(),
6440
+ task_attributes: z.object({
6441
+ name: z.string().nullish(),
6442
+ description: z.string().nullish(),
6443
+ time_due: z.iso.datetime().nullish(),
6444
+ tz_name: z.string().nullish(),
6445
+ frequency: z.enum([
6446
+ 'DAILY',
6447
+ 'WORKDAILY',
6448
+ 'WORKDAILYSIX',
6449
+ 'WEEKLY',
6450
+ 'BIWEEKLY',
6451
+ 'MONTHLY',
6452
+ 'QUARTERLY'
6453
+ ]).nullish(),
6454
+ recurrence_end_time: z.iso.datetime().nullish(),
6455
+ task_assignee_user_ids: z.array(z.string().regex(/[^\x09-\x0D\x20…   - ‧-‪   ]|[‧‪]/)).optional(),
6456
+ reminders_attributes: z.array(z.object({
6457
+ offset: z.enum([
6458
+ 'PT0S',
6459
+ 'PT-1M',
6460
+ 'PT-5M',
6461
+ 'PT-10M',
6462
+ 'PT-15M',
6463
+ 'PT-30M',
6464
+ 'PT-1H',
6465
+ 'PT-2H',
6466
+ 'P-1D',
6467
+ 'P-2D',
6468
+ 'P-3D',
6469
+ 'P-4D',
6470
+ 'P-5D',
6471
+ 'P-6D',
6472
+ 'P-1W',
6473
+ 'P-2W',
6474
+ 'P-1M',
6475
+ 'P-2M',
6476
+ 'P-3M',
6477
+ 'P-6M',
6478
+ 'P-1Y',
6479
+ 'PT5M',
6480
+ 'PT15M',
6481
+ 'PT30M',
6482
+ 'PT1H',
6483
+ 'PT6H',
6484
+ 'PT12H',
6485
+ 'P1D',
6486
+ 'P2D',
6487
+ 'P3D',
6488
+ 'P4D',
6489
+ 'P5D',
6490
+ 'P6D',
6491
+ 'P1W',
6492
+ 'P2W',
6493
+ 'P3W'
6494
+ ])
6495
+ })).optional()
6496
+ }).optional()
6497
+ });
6328
6498
  /**
6329
6499
  * Request body for creating a certification — a named qualification a worker can hold. You can only manage your own company's certifications; global (platform) certifications are read-only. Omitting company_id or name answers 400, and a null or blank one, or any wrong-typed value, answers 422.
6330
6500
  */
@@ -6752,6 +6922,14 @@ export const zLinks = z.object({
6752
6922
  first: z.string().nullable(),
6753
6923
  next: z.string().nullable()
6754
6924
  });
6925
+ /**
6926
+ * A page of the company's documents, with pagination metadata and navigation links.
6927
+ */
6928
+ export const zCompanyDocumentsResponseObject = z.object({
6929
+ meta: zMeta,
6930
+ links: zLinks,
6931
+ data: z.array(zCompanyDocumentResponseObject)
6932
+ });
6755
6933
  /**
6756
6934
  * A page of time entries, with pagination metadata and navigation links.
6757
6935
  */
@@ -6906,6 +7084,14 @@ export const zJobCaEcprXmlExportsResponseObject = z.object({
6906
7084
  links: zLinks,
6907
7085
  data: z.array(zJobCaEcprXmlExportResponseObject)
6908
7086
  });
7087
+ /**
7088
+ * A page of a job's NY DOL XML certified-payroll exports, with pagination metadata and navigation links.
7089
+ */
7090
+ export const zJobNyDolXmlExportsResponseObject = z.object({
7091
+ meta: zMeta,
7092
+ links: zLinks,
7093
+ data: z.array(zJobNyDolXmlExportResponseObject)
7094
+ });
6909
7095
  /**
6910
7096
  * A page of a job's WH-347 certified-payroll exports, with pagination metadata and navigation links.
6911
7097
  */
@@ -7944,6 +8130,31 @@ export const zPayRatesRuleHistoryVersionObject = z.object({
7944
8130
  ]),
7945
8131
  corrections: z.array(zPayRatesRuleHistoryCorrectionObject)
7946
8132
  });
8133
+ /**
8134
+ * A company-owned collection of overtime rules, used as an employment and wage-determination fallback.
8135
+ */
8136
+ export const zOvertimePackageResponseObject = z.object({
8137
+ id: z.string(),
8138
+ name: z.string(),
8139
+ description: z.string(),
8140
+ default: z.boolean()
8141
+ });
8142
+ /**
8143
+ * 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.
8144
+ */
8145
+ export const zOvertimePackageParameters = z.object({
8146
+ name: z.string().optional(),
8147
+ description: z.string().optional(),
8148
+ default: z.boolean().optional()
8149
+ });
8150
+ /**
8151
+ * 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.
8152
+ */
8153
+ export const zOvertimePackageUpdateParameters = z.object({
8154
+ name: z.string().optional(),
8155
+ description: z.string().optional(),
8156
+ default: z.boolean().optional()
8157
+ });
7947
8158
  /**
7948
8159
  * 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
8160
  */
@@ -9593,6 +9804,61 @@ export const zUpdateWageSchedulePath = z.object({
9593
9804
  * Success
9594
9805
  */
9595
9806
  export const zUpdateWageScheduleResponse = zApprenticeshipWageScheduleResponseObject;
9807
+ export const zListWorkProcessCategoriesPath = z.object({
9808
+ occupation_id: z.string()
9809
+ });
9810
+ export const zListWorkProcessCategoriesQuery = z.object({
9811
+ 'filter[created_at][gte]': z.iso.datetime().optional(),
9812
+ 'filter[created_at][lte]': z.iso.datetime().optional(),
9813
+ 'filter[updated_at][gte]': z.iso.datetime().optional(),
9814
+ 'filter[updated_at][lte]': z.iso.datetime().optional(),
9815
+ filter: z.string().optional(),
9816
+ 'filter[unexpected]': z.string().optional(),
9817
+ 'page[cursor]': z.string().optional(),
9818
+ 'page[limit]': z.int().gte(1).optional().default(20),
9819
+ page: z.string().optional()
9820
+ });
9821
+ /**
9822
+ * Success
9823
+ */
9824
+ export const zListWorkProcessCategoriesResponse = z.object({
9825
+ meta: zMeta,
9826
+ links: zLinks,
9827
+ data: z.array(zApprenticeshipWorkProcessCategoryResponseObject)
9828
+ });
9829
+ export const zCreateWorkProcessCategoryBody = zApprenticeshipWorkProcessCategoryParameters;
9830
+ export const zCreateWorkProcessCategoryPath = z.object({
9831
+ occupation_id: z.string()
9832
+ });
9833
+ /**
9834
+ * Created
9835
+ */
9836
+ export const zCreateWorkProcessCategoryResponse = zApprenticeshipWorkProcessCategoryResponseObject;
9837
+ export const zDeleteWorkProcessCategoryPath = z.object({
9838
+ occupation_id: z.string(),
9839
+ id: z.string()
9840
+ });
9841
+ /**
9842
+ * No Content
9843
+ */
9844
+ export const zDeleteWorkProcessCategoryResponse = z.void();
9845
+ export const zGetWorkProcessCategoryPath = z.object({
9846
+ occupation_id: z.string(),
9847
+ id: z.string()
9848
+ });
9849
+ /**
9850
+ * Success
9851
+ */
9852
+ export const zGetWorkProcessCategoryResponse = zApprenticeshipWorkProcessCategoryResponseObject;
9853
+ export const zUpdateWorkProcessCategoryBody = zApprenticeshipWorkProcessCategoryUpdateParameters;
9854
+ export const zUpdateWorkProcessCategoryPath = z.object({
9855
+ occupation_id: z.string(),
9856
+ id: z.string()
9857
+ });
9858
+ /**
9859
+ * Success
9860
+ */
9861
+ export const zUpdateWorkProcessCategoryResponse = zApprenticeshipWorkProcessCategoryResponseObject;
9596
9862
  export const zListAttributesQuery = z.object({
9597
9863
  'filter[data_type]': z.string().optional(),
9598
9864
  'filter[created_at][gte]': z.iso.datetime().optional(),
@@ -10871,6 +11137,48 @@ export const zUpdateCompanyProfilePath = z.object({
10871
11137
  * Success
10872
11138
  */
10873
11139
  export const zUpdateCompanyProfileResponse = zCompanyResponseObject;
11140
+ export const zListCompanyDocumentsQuery = z.object({
11141
+ 'filter[created_at][gte]': z.iso.datetime().optional(),
11142
+ 'filter[created_at][lte]': z.iso.datetime().optional(),
11143
+ 'filter[updated_at][gte]': z.iso.datetime().optional(),
11144
+ 'filter[updated_at][lte]': z.iso.datetime().optional(),
11145
+ filter: z.string().optional(),
11146
+ 'filter[unexpected]': z.string().optional(),
11147
+ 'page[cursor]': z.string().optional(),
11148
+ 'page[limit]': z.int().gte(1).optional().default(20),
11149
+ page: z.string().optional()
11150
+ });
11151
+ /**
11152
+ * Success
11153
+ */
11154
+ export const zListCompanyDocumentsResponse = zCompanyDocumentsResponseObject;
11155
+ export const zCreateCompanyDocumentBody = zCompanyDocumentParameters;
11156
+ /**
11157
+ * Created
11158
+ */
11159
+ export const zCreateCompanyDocumentResponse = zCompanyDocumentResponseObject;
11160
+ export const zDeleteCompanyDocumentPath = z.object({
11161
+ id: z.string()
11162
+ });
11163
+ /**
11164
+ * No Content
11165
+ */
11166
+ export const zDeleteCompanyDocumentResponse = z.void();
11167
+ export const zGetCompanyDocumentPath = z.object({
11168
+ id: z.string()
11169
+ });
11170
+ /**
11171
+ * Success
11172
+ */
11173
+ export const zGetCompanyDocumentResponse = zCompanyDocumentResponseObject;
11174
+ export const zUpdateCompanyDocumentBody = zCompanyDocumentUpdateParameters;
11175
+ export const zUpdateCompanyDocumentPath = z.object({
11176
+ id: z.string()
11177
+ });
11178
+ /**
11179
+ * Success
11180
+ */
11181
+ export const zUpdateCompanyDocumentResponse = zCompanyDocumentResponseObject;
10874
11182
  export const zListAssessmentsQuery = z.object({
10875
11183
  'filter[candidate_user_id]': z.string().optional(),
10876
11184
  'filter[competencies_level_id]': z.string().optional(),
@@ -12095,6 +12403,37 @@ export const zGetCaEcprXmlExportPath = z.object({
12095
12403
  * Success
12096
12404
  */
12097
12405
  export const zGetCaEcprXmlExportResponse = zJobCaEcprXmlExportResponseObject;
12406
+ export const zListNyDolXmlExportsPath = z.object({
12407
+ job_id: z.string()
12408
+ });
12409
+ export const zListNyDolXmlExportsQuery = z.object({
12410
+ 'filter[status]': z.string().optional(),
12411
+ filter: z.string().optional(),
12412
+ 'filter[unexpected]': z.string().optional(),
12413
+ 'page[cursor]': z.string().optional(),
12414
+ 'page[limit]': z.int().gte(1).optional().default(20),
12415
+ page: z.string().optional()
12416
+ });
12417
+ /**
12418
+ * Success
12419
+ */
12420
+ export const zListNyDolXmlExportsResponse = zJobNyDolXmlExportsResponseObject;
12421
+ export const zCreateNyDolXmlExportBody = zJobNyDolXmlExportCreateParameters;
12422
+ export const zCreateNyDolXmlExportPath = z.object({
12423
+ job_id: z.string()
12424
+ });
12425
+ /**
12426
+ * Created
12427
+ */
12428
+ export const zCreateNyDolXmlExportResponse = zJobNyDolXmlExportResponseObject;
12429
+ export const zGetNyDolXmlExportPath = z.object({
12430
+ job_id: z.string(),
12431
+ id: z.string()
12432
+ });
12433
+ /**
12434
+ * Success
12435
+ */
12436
+ export const zGetNyDolXmlExportResponse = zJobNyDolXmlExportResponseObject;
12098
12437
  export const zListWh347ExportsPath = z.object({
12099
12438
  job_id: z.string()
12100
12439
  });
@@ -12478,7 +12817,9 @@ export const zListJobWageDeterminationsQuery = z.object({
12478
12817
  as_of: z.string().optional(),
12479
12818
  'as_of[bogus_axis]': z.string().optional(),
12480
12819
  'as_of[valid][gte]': z.string().optional(),
12481
- 'as_of[transaction]': z.string().optional()
12820
+ 'as_of[transaction]': z.string().optional(),
12821
+ filter: z.string().optional(),
12822
+ 'filter[unexpected]': z.string().optional()
12482
12823
  });
12483
12824
  /**
12484
12825
  * Success
@@ -12896,6 +13237,48 @@ export const zUpdateOvertimeRulePath = z.object({
12896
13237
  * Success
12897
13238
  */
12898
13239
  export const zUpdateOvertimeRuleResponse = zOvertimeRuleResponseObject;
13240
+ export const zListOvertimePackagesQuery = z.object({
13241
+ filter: z.string().optional(),
13242
+ 'filter[unexpected]': z.string().optional(),
13243
+ 'page[cursor]': z.string().optional(),
13244
+ 'page[limit]': z.int().gte(1).optional().default(20),
13245
+ page: z.string().optional()
13246
+ });
13247
+ /**
13248
+ * Success
13249
+ */
13250
+ export const zListOvertimePackagesResponse = z.object({
13251
+ meta: zMeta,
13252
+ links: zLinks,
13253
+ data: z.array(zOvertimePackageResponseObject)
13254
+ });
13255
+ export const zCreateOvertimePackageBody = zOvertimePackageParameters;
13256
+ /**
13257
+ * Created
13258
+ */
13259
+ export const zCreateOvertimePackageResponse = zOvertimePackageResponseObject;
13260
+ export const zDeleteOvertimePackagePath = z.object({
13261
+ id: z.string()
13262
+ });
13263
+ /**
13264
+ * No Content
13265
+ */
13266
+ export const zDeleteOvertimePackageResponse = z.void();
13267
+ export const zGetOvertimePackagePath = z.object({
13268
+ id: z.string()
13269
+ });
13270
+ /**
13271
+ * Success
13272
+ */
13273
+ export const zGetOvertimePackageResponse = zOvertimePackageResponseObject;
13274
+ export const zUpdateOvertimePackageBody = zOvertimePackageUpdateParameters;
13275
+ export const zUpdateOvertimePackagePath = z.object({
13276
+ id: z.string()
13277
+ });
13278
+ /**
13279
+ * Success
13280
+ */
13281
+ export const zUpdateOvertimePackageResponse = zOvertimePackageResponseObject;
12899
13282
  export const zShiftPayRateRuleGenesisBody = zPayRatesRuleGenesisParameters;
12900
13283
  export const zShiftPayRateRuleGenesisHeaders = z.object({
12901
13284
  'If-Match': z.string()
@@ -14640,6 +15023,22 @@ export const zUpdateTradePath = z.object({
14640
15023
  * Success
14641
15024
  */
14642
15025
  export const zUpdateTradeResponse = zPwaTradeResponseObject;
15026
+ export const zListTasksFormAssignmentTasksQuery = z.object({
15027
+ 'filter[form_definition_id]': z.string().optional(),
15028
+ 'page[cursor]': z.string().optional(),
15029
+ 'page[limit]': z.int().gte(1).optional().default(20),
15030
+ page: z.string().optional(),
15031
+ filter: z.string().optional(),
15032
+ 'filter[unexpected]': z.string().optional()
15033
+ });
15034
+ /**
15035
+ * Success
15036
+ */
15037
+ export const zListTasksFormAssignmentTasksResponse = z.object({
15038
+ meta: zMeta,
15039
+ links: zLinks,
15040
+ data: z.array(zFormAssignmentTaskItemObject)
15041
+ });
14643
15042
  export const zCreateFormAssignmentTaskBody = z.object({
14644
15043
  form_definition_id: z.string(),
14645
15044
  spread_assignees: z.boolean().optional(),
@@ -14707,6 +15106,28 @@ export const zCreateFormAssignmentTaskBody = z.object({
14707
15106
  * Created
14708
15107
  */
14709
15108
  export const zCreateFormAssignmentTaskResponse = zFormAssignmentTaskResponseObject;
15109
+ export const zDeleteTasksFormAssignmentTaskPath = z.object({
15110
+ id: z.string()
15111
+ });
15112
+ /**
15113
+ * No Content
15114
+ */
15115
+ export const zDeleteTasksFormAssignmentTaskResponse = z.void();
15116
+ export const zGetTasksFormAssignmentTaskPath = z.object({
15117
+ id: z.string()
15118
+ });
15119
+ /**
15120
+ * Success
15121
+ */
15122
+ export const zGetTasksFormAssignmentTaskResponse = zFormAssignmentTaskItemObject;
15123
+ export const zUpdateTasksFormAssignmentTaskBody = zFormAssignmentTaskUpdateParameters;
15124
+ export const zUpdateTasksFormAssignmentTaskPath = z.object({
15125
+ id: z.string()
15126
+ });
15127
+ /**
15128
+ * Success
15129
+ */
15130
+ export const zUpdateTasksFormAssignmentTaskResponse = zFormAssignmentTaskItemObject;
14710
15131
  export const zListPositionsPath = z.object({
14711
15132
  job_id: z.string()
14712
15133
  });
@@ -14774,6 +15195,33 @@ export const zListTemplatesResponse = z.object({
14774
15195
  links: zLinks,
14775
15196
  data: z.array(zJobTemplateResponseObject)
14776
15197
  });
15198
+ export const zCreateTemplateBody = zJobTemplateParameters;
15199
+ /**
15200
+ * Created
15201
+ */
15202
+ export const zCreateTemplateResponse = zJobTemplateResponseObject;
15203
+ export const zDeleteTemplatePath = z.object({
15204
+ id: z.string()
15205
+ });
15206
+ /**
15207
+ * No Content
15208
+ */
15209
+ export const zDeleteTemplateResponse = z.void();
15210
+ export const zGetTemplatePath = z.object({
15211
+ id: z.string()
15212
+ });
15213
+ /**
15214
+ * Success
15215
+ */
15216
+ export const zGetTemplateResponse = zJobTemplateResponseObject;
15217
+ export const zUpdateTemplateBody = zJobTemplateUpdateParameters;
15218
+ export const zUpdateTemplatePath = z.object({
15219
+ id: z.string()
15220
+ });
15221
+ /**
15222
+ * Success
15223
+ */
15224
+ export const zUpdateTemplateResponse = zJobTemplateResponseObject;
14777
15225
  export const zListAdjustableLineItemsPath = z.object({
14778
15226
  time_card_id: z.string()
14779
15227
  });
@@ -15478,42 +15926,6 @@ export const zDeleteUserRolePath = z.object({
15478
15926
  * Success
15479
15927
  */
15480
15928
  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
15929
  export const zCreateScheduledTerminationBody = zUserCompanyScheduledTerminationParameters;
15518
15930
  export const zCreateScheduledTerminationPath = z.object({
15519
15931
  user_id: z.string(),
@@ -15749,9 +16161,12 @@ export const zGetWageDeterminationPath = z.object({
15749
16161
  */
15750
16162
  export const zGetWageDeterminationResponse = zWageDeterminationResponseObject;
15751
16163
  export const zListWorkTypesQuery = z.object({
16164
+ 'filter[value]': z.string().optional(),
15752
16165
  'page[cursor]': z.string().optional(),
15753
16166
  'page[limit]': z.int().gte(1).optional().default(20),
15754
- page: z.string().optional()
16167
+ page: z.string().optional(),
16168
+ filter: z.string().optional(),
16169
+ 'filter[unexpected]': z.string().optional()
15755
16170
  });
15756
16171
  /**
15757
16172
  * Success
@@ -15761,3 +16176,30 @@ export const zListWorkTypesResponse = z.object({
15761
16176
  links: zLinks,
15762
16177
  data: z.array(zWorkTypeResponseObject)
15763
16178
  });
16179
+ export const zCreateWorkTypeBody = zWorkTypeParameters;
16180
+ /**
16181
+ * Created
16182
+ */
16183
+ export const zCreateWorkTypeResponse = zWorkTypeResponseObject;
16184
+ export const zDeleteWorkTypePath = z.object({
16185
+ id: z.string()
16186
+ });
16187
+ /**
16188
+ * No Content
16189
+ */
16190
+ export const zDeleteWorkTypeResponse = z.void();
16191
+ export const zGetWorkTypePath = z.object({
16192
+ id: z.string()
16193
+ });
16194
+ /**
16195
+ * Success
16196
+ */
16197
+ export const zGetWorkTypeResponse = zWorkTypeResponseObject;
16198
+ export const zUpdateWorkTypeBody = zWorkTypeUpdateParameters;
16199
+ export const zUpdateWorkTypePath = z.object({
16200
+ id: z.string()
16201
+ });
16202
+ /**
16203
+ * Success
16204
+ */
16205
+ export const zUpdateWorkTypeResponse = zWorkTypeResponseObject;