@dsptch-work/api-client 0.10.0 → 0.12.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.
@@ -154,6 +154,12 @@ export const zProblem = z.object({
154
154
  *
155
155
  * The resource's timeline already ends at a scheduled termination, and scheduling a second one would silently move it. Moving an end is two steps on purpose: cancel the standing termination, then schedule the one you want.
156
156
  *
157
+ * ### product_archived
158
+ *
159
+ * **Product Archived**
160
+ *
161
+ * The item cannot be unarchived while its product is still archived — an item never lives active inside an archived product. Unarchive the product instead, which restores the item along with the rest of the product's holdings.
162
+ *
157
163
  * ### recorded_since_termination
158
164
  *
159
165
  * **Timecode Changed Since Termination**
@@ -238,9 +244,9 @@ export const zProblem = z.object({
238
244
  *
239
245
  * ### invalid_signed_id
240
246
  *
241
- * **Invalid Attachment Signed Id**
247
+ * **Attachment Upload Not Found**
242
248
  *
243
- * An attachment signed id an avatar's, a logo's is not a string or fails signature verification. Obtain a fresh signed id from the direct-uploads endpoint and retry.
249
+ * An attachment signed id names no upload this endpoint can read. A signed id is issued for one `resource` and verifies only there, so an id for a different resource is indistinguishable from one that is malformed, expired, or tampered with, and all of them answer alike. The message names the resource the upload needed; upload the file again to the direct-uploads endpoint naming it, and pass the signed id that call returns.
244
250
  *
245
251
  * ### non_numeric_cents
246
252
  *
@@ -345,6 +351,7 @@ export const zProblemTypeCatalog = z.enum([
345
351
  'insufficient_api_key_scope',
346
352
  'not_found',
347
353
  'already_terminated',
354
+ 'product_archived',
348
355
  'recorded_since_termination',
349
356
  'span_beyond_timeline_end',
350
357
  'version_overlap',
@@ -386,6 +393,14 @@ export const zApiKeyScopeResponseObject = z.object({
386
393
  * Register a file for direct upload — send its metadata to receive a blob plus a one-time URL for uploading the file's bytes to storage.
387
394
  */
388
395
  export const zDirectUploadParameters = z.object({
396
+ resource: z.enum([
397
+ 'assets.items',
398
+ 'assets.items.documents',
399
+ 'assets.items.service_events',
400
+ 'assets.products',
401
+ 'assets.vendors',
402
+ 'users'
403
+ ]),
389
404
  blob: z.object({
390
405
  filename: z.string(),
391
406
  byte_size: z.int(),
@@ -816,6 +831,9 @@ export const zTimecodeCorrectionParameters = z.object({
816
831
  export const zTimecodeGenesisParameters = z.object({
817
832
  effective_date: z.iso.datetime()
818
833
  });
834
+ /**
835
+ * Request body for scheduling a timecode's termination: the date from which it stops being valid. The body is required — the endpoint reads effective_date with `params.expect`, so a request omitting it is refused with `400`.
836
+ */
819
837
  export const zTimecodeScheduledTerminationParameters = z.object({
820
838
  effective_date: z.iso.datetime()
821
839
  });
@@ -868,7 +886,7 @@ export const zPerDiemResponseObject = z.object({
868
886
  export const zPerDiemParameters = z.object({
869
887
  name: z.string(),
870
888
  description: z.string().nullish(),
871
- rate_cents: z.string().nullable(),
889
+ rate_cents: z.string(),
872
890
  currency: z.string(),
873
891
  taxable: z.boolean().optional(),
874
892
  default: z.boolean().nullish(),
@@ -998,8 +1016,7 @@ export const zTimeCardPerDiemResponseObject = z.object({
998
1016
  export const zTimeCardPerDiemParameters = z.object({
999
1017
  date: z.iso.date(),
1000
1018
  approver_user_id: z.string(),
1001
- per_diem_id: z.string(),
1002
- taxable: z.boolean().optional()
1019
+ per_diem_id: z.string()
1003
1020
  });
1004
1021
  /**
1005
1022
  * A holiday on a pay schedule's holiday calendar — a fixed (month + day) or floating (nth weekday of a month) date that gets holiday-pay treatment when a time entry's timecode opts into holiday handling.
@@ -1513,20 +1530,31 @@ export const zManagerTimeEntryApprovalParameters = z.object({
1513
1530
  approver_user_id: z.string()
1514
1531
  });
1515
1532
  /**
1516
- * Request body for creating or updating a time entry; on create, timekeeping_time_card_id, start_time, and end_time are required.
1533
+ * The time-entry body fields shared by the create and update bodies; each of those declares its own requiredness.
1517
1534
  */
1518
1535
  export const zTimeEntryParameters = z.object({
1519
- timekeeping_time_card_id: z.string(),
1520
- start_time: z.iso.datetime(),
1521
- end_time: z.iso.datetime(),
1536
+ timekeeping_time_card_id: z.string().optional(),
1537
+ start_time: z.iso.datetime().optional(),
1538
+ end_time: z.iso.datetime().optional(),
1522
1539
  job_id: z.string().nullish(),
1523
1540
  timekeeping_timecode_id: z.string().nullish(),
1524
1541
  state: z.string().nullish(),
1525
1542
  description: z.string().nullish(),
1526
1543
  hourly_rate_cents: z.string().nullish(),
1527
- feature_ids: z.array(z.string()).nullish(),
1528
- feature_allocation_acknowledged: z.boolean().nullish()
1544
+ feature_ids: z.array(z.string()).nullish()
1529
1545
  });
1546
+ /**
1547
+ * Request body for creating a time entry — the time_entry_parameters fields, of which timekeeping_time_card_id, start_time, and end_time are required, plus the explicit "no feature" acknowledgement.
1548
+ */
1549
+ export const zTimeEntryCreateParameters = zTimeEntryParameters.and(z.object({
1550
+ feature_allocation_acknowledged: z.boolean().nullish()
1551
+ }));
1552
+ /**
1553
+ * Request body for updating a time entry — the time_entry_parameters fields, every one optional, plus the acknowledgement that clears an apprenticeship allocation conflict.
1554
+ */
1555
+ export const zTimeEntryUpdateParameters = zTimeEntryParameters.and(z.object({
1556
+ confirm_allocation_conflict: z.boolean().nullish()
1557
+ }));
1530
1558
  /**
1531
1559
  * A single form submission — a user's completed SurveyJS form with the resolved answers (the fuller show representation). Read-only; submissions are created in the app.
1532
1560
  */
@@ -1550,7 +1578,7 @@ export const zFormSubmissionResponseObject = z.object({
1550
1578
  export const zUserCompanyScheduledChangesParameters = z.object({
1551
1579
  effective_date: z.string(),
1552
1580
  hourly_rate: z.string().nullish(),
1553
- compensation_type: z.string().optional(),
1581
+ compensation_type: z.enum(['hourly', 'salary']).optional(),
1554
1582
  overtime_eligible: z.boolean().optional(),
1555
1583
  training_annual_amount: z.string().nullish(),
1556
1584
  employer_combined_health_amount: z.string().nullish(),
@@ -1866,6 +1894,10 @@ export const zJobParameters = z.object({
1866
1894
  verified: z.boolean().nullish(),
1867
1895
  label: z.string().nullish()
1868
1896
  }).nullish(),
1897
+ custom_fields_attributes: z.array(z.object({
1898
+ custom_field_config_id: z.string(),
1899
+ value: z.string().nullish()
1900
+ })).nullish(),
1869
1901
  pwa_details: z.object({
1870
1902
  contractor_type: z.string().nullish(),
1871
1903
  pay_full_cash_fringe_by_default: z.boolean().nullish(),
@@ -2971,7 +3003,7 @@ export const zCertificationParameters = z.object({
2971
3003
  company_id: z.string(),
2972
3004
  name: z.string(),
2973
3005
  description: z.string().nullish(),
2974
- verified: z.boolean().nullish(),
3006
+ verified: z.boolean().optional(),
2975
3007
  duration: z.string().nullish()
2976
3008
  });
2977
3009
  /**
@@ -3021,7 +3053,7 @@ export const zUserCertificationParameters = z.object({
3021
3053
  name: z.string().max(255).regex(/^[\w\s.-]*\.[A-Za-z0-9]+$/),
3022
3054
  content: z.string()
3023
3055
  }).nullish(),
3024
- verified: z.boolean().nullish(),
3056
+ verified: z.boolean().optional(),
3025
3057
  expiration_date: z.iso.date().nullish(),
3026
3058
  credential_id: z.string().nullish(),
3027
3059
  approved_by_user_id: z.string().nullish(),
@@ -3433,7 +3465,7 @@ export const zUserCompanyCreateParameters = z.object({
3433
3465
  type: zUserCompanyType.optional(),
3434
3466
  title: z.string().nullish(),
3435
3467
  manager_user_id: z.string().nullish(),
3436
- compensation_type: z.string().nullish(),
3468
+ compensation_type: z.enum(['hourly', 'salary']).optional(),
3437
3469
  enrolled_in_t_and_a: z.boolean().optional(),
3438
3470
  payroll_id: z.string().nullish(),
3439
3471
  hourly_rate: z.string().nullish(),
@@ -3690,6 +3722,7 @@ export const zFederalJobWageDeterminationResponseObject = z.object({
3690
3722
  id: z.string(),
3691
3723
  job_id: z.string(),
3692
3724
  pwa_trade_id: z.string(),
3725
+ overtime_package_id: z.string().nullable(),
3693
3726
  type: z.enum(['Pwa::JobWageDeterminations::Federal']),
3694
3727
  labor_classification: z.string(),
3695
3728
  hourly_rate_cents: z.string(),
@@ -3711,6 +3744,7 @@ export const zFederalJobWageDeterminationHistoryCorrectionObject = z.object({
3711
3744
  job_wage_determination_id: z.string(),
3712
3745
  job_id: z.string(),
3713
3746
  pwa_trade_id: z.string(),
3747
+ overtime_package_id: z.string().nullable(),
3714
3748
  type: z.enum(['Pwa::JobWageDeterminations::Federal']),
3715
3749
  labor_classification: z.string(),
3716
3750
  hourly_rate_cents: z.string(),
@@ -3781,6 +3815,7 @@ export const zRegionalJobWageDeterminationResponseObject = z.object({
3781
3815
  id: z.string(),
3782
3816
  job_id: z.string(),
3783
3817
  pwa_trade_id: z.string(),
3818
+ overtime_package_id: z.string().nullable(),
3784
3819
  type: z.enum(['Pwa::JobWageDeterminations::Regional']),
3785
3820
  labor_classification: z.string(),
3786
3821
  hourly_rate_cents: z.string(),
@@ -3803,6 +3838,7 @@ export const zRegionalJobWageDeterminationHistoryCorrectionObject = z.object({
3803
3838
  job_wage_determination_id: z.string(),
3804
3839
  job_id: z.string(),
3805
3840
  pwa_trade_id: z.string(),
3841
+ overtime_package_id: z.string().nullable(),
3806
3842
  type: z.enum(['Pwa::JobWageDeterminations::Regional']),
3807
3843
  labor_classification: z.string(),
3808
3844
  hourly_rate_cents: z.string(),
@@ -3822,6 +3858,7 @@ export const zFederalJobWageDeterminationHistoryVersionObject = z.object({
3822
3858
  job_wage_determination_id: z.string(),
3823
3859
  job_id: z.string(),
3824
3860
  pwa_trade_id: z.string(),
3861
+ overtime_package_id: z.string().nullable(),
3825
3862
  type: z.enum(['Pwa::JobWageDeterminations::Federal']),
3826
3863
  labor_classification: z.string(),
3827
3864
  hourly_rate_cents: z.string(),
@@ -3849,6 +3886,7 @@ export const zRegionalJobWageDeterminationHistoryVersionObject = z.object({
3849
3886
  job_wage_determination_id: z.string(),
3850
3887
  job_id: z.string(),
3851
3888
  pwa_trade_id: z.string(),
3889
+ overtime_package_id: z.string().nullable(),
3852
3890
  type: z.enum(['Pwa::JobWageDeterminations::Regional']),
3853
3891
  labor_classification: z.string(),
3854
3892
  hourly_rate_cents: z.string(),
@@ -3901,12 +3939,62 @@ export const zRegionalJobWageDeterminationParameters = z.object({
3901
3939
  regional_fields: zRegionalWageDeterminationFields.optional()
3902
3940
  });
3903
3941
  /**
3904
- * Parameters for creating a job wage determination. Provide the Federal or Regional shape; the type discriminator selects which. There is no update endpoint.
3942
+ * Parameters for creating a job wage determination. Provide the Federal or Regional shape; the type discriminator selects which. Editing an existing determination uses the update parameters, which take an `effective_from` instead of a type.
3905
3943
  */
3906
3944
  export const zJobWageDeterminationParameters = z.discriminatedUnion('type', [
3907
3945
  zFederalJobWageDeterminationParameters.extend({ type: z.literal('Pwa::JobWageDeterminations::Federal') }),
3908
3946
  zRegionalJobWageDeterminationParameters.extend({ type: z.literal('Pwa::JobWageDeterminations::Regional') })
3909
3947
  ]);
3948
+ /**
3949
+ * Parameters for editing a job wage determination from a point in valid time forward. The type is fixed by the determination the id names and is not sent.
3950
+ */
3951
+ export const zJobWageDeterminationUpdateParameters = z.object({
3952
+ effective_from: z.iso.date().optional(),
3953
+ labor_classification: z.string().optional(),
3954
+ pwa_trade_id: z.string().optional(),
3955
+ hourly_rate_cents: z.string().optional(),
3956
+ fringe_rate_cents: z.string().optional(),
3957
+ class_code: z.string().nullish(),
3958
+ construction_category: z.enum([
3959
+ 'building',
3960
+ 'heavy',
3961
+ 'highway',
3962
+ 'residential'
3963
+ ]).nullish(),
3964
+ general_wage_determination: z.string().nullish(),
3965
+ regional_fields: zRegionalWageDeterminationFields.optional()
3966
+ });
3967
+ /**
3968
+ * Parameters for an effective-dated change to a job wage determination, applying from a calendar date forward. The type is fixed by the determination the id names and is not sent.
3969
+ */
3970
+ export const zJobWageDeterminationScheduledChangeParameters = z.object({
3971
+ effective_date: z.iso.date(),
3972
+ labor_classification: z.string().optional(),
3973
+ pwa_trade_id: z.string().optional(),
3974
+ hourly_rate_cents: z.string().optional(),
3975
+ fringe_rate_cents: z.string().optional(),
3976
+ class_code: z.string().nullish(),
3977
+ construction_category: z.enum([
3978
+ 'building',
3979
+ 'heavy',
3980
+ 'highway',
3981
+ 'residential'
3982
+ ]).nullish(),
3983
+ general_wage_determination: z.string().nullish(),
3984
+ regional_fields: zRegionalWageDeterminationFields.optional()
3985
+ });
3986
+ /**
3987
+ * Parameters for moving where a job wage determination's timeline begins.
3988
+ */
3989
+ export const zJobWageDeterminationGenesisParameters = z.object({
3990
+ effective_date: z.iso.date()
3991
+ });
3992
+ /**
3993
+ * Parameters for scheduling when a job wage determination stops being valid.
3994
+ */
3995
+ export const zJobWageDeterminationScheduledTerminationParameters = z.object({
3996
+ effective_date: z.iso.date()
3997
+ });
3910
3998
  /**
3911
3999
  * The adjustment applied when a rule matches — an addition to the wage or fringe rate.
3912
4000
  */
@@ -4173,6 +4261,7 @@ export const zAssetsProductResponseObject = z.object({
4173
4261
  assets_category_id: z.string().nullable(),
4174
4262
  attributes: zAssetsAttributeValueObjects,
4175
4263
  images: z.array(zAssetsAttachmentResponseObject),
4264
+ archived_at: z.iso.datetime().nullable(),
4176
4265
  created_at: z.iso.datetime(),
4177
4266
  updated_at: z.iso.datetime()
4178
4267
  });
@@ -4187,11 +4276,7 @@ export const zAssetsItemResponseObject = z.object({
4187
4276
  company_id: z.string(),
4188
4277
  type: z.enum(['serial', 'bulk']),
4189
4278
  serial_number: z.string().nullable(),
4190
- status: z.enum([
4191
- 'available',
4192
- 'assigned',
4193
- 'retired'
4194
- ]).nullable(),
4279
+ status: z.enum(['available', 'assigned']).nullable(),
4195
4280
  purchase_date: z.iso.datetime().nullable(),
4196
4281
  purchase_price_cents: z.string().nullable(),
4197
4282
  currency: z.string().nullable(),
@@ -4207,6 +4292,7 @@ export const zAssetsItemResponseObject = z.object({
4207
4292
  quantity: z.int()
4208
4293
  })),
4209
4294
  images: z.array(zAssetsAttachmentResponseObject),
4295
+ archived_at: z.iso.datetime().nullable(),
4210
4296
  created_at: z.iso.datetime(),
4211
4297
  updated_at: z.iso.datetime()
4212
4298
  });
@@ -4278,11 +4364,7 @@ export const zAssetsItemParameters = z.object({
4278
4364
  description: z.string().optional(),
4279
4365
  assets_product_id: z.string(),
4280
4366
  serial_number: z.string(),
4281
- status: z.enum([
4282
- 'available',
4283
- 'assigned',
4284
- 'retired'
4285
- ]).optional(),
4367
+ status: z.enum(['available', 'assigned']).optional(),
4286
4368
  purchase_date: z.iso.datetime().optional(),
4287
4369
  purchase_price_cents: z.int().optional(),
4288
4370
  external_id: z.string().optional(),
@@ -4291,6 +4373,7 @@ export const zAssetsItemParameters = z.object({
4291
4373
  assets_site_id: z.string().optional(),
4292
4374
  user_id: z.string().optional(),
4293
4375
  container_item_id: z.string().optional(),
4376
+ assets_sub_location_id: z.string().optional(),
4294
4377
  performed_by_user_id: z.string()
4295
4378
  });
4296
4379
  /**
@@ -4429,12 +4512,13 @@ export const zAssetsItemFormAssignmentParameters = z.object({
4429
4512
  })
4430
4513
  });
4431
4514
  /**
4432
- * On-hand stock of an item at a site — one row per item and site. Read-only. A site with none of the item has no row at all, since a row is removed once its count reaches zero.
4515
+ * On-hand stock of an item at a site — one row per item, site, and storage location. Read-only. A site with none of the item has no row at all, since a row is removed once its count reaches zero.
4433
4516
  */
4434
4517
  export const zAssetsInventoryResponseObject = z.object({
4435
4518
  id: z.string(),
4436
4519
  assets_item_id: z.string(),
4437
4520
  assets_site_id: z.string(),
4521
+ assets_sub_location_id: z.string().nullable(),
4438
4522
  company_id: z.string(),
4439
4523
  quantity_on_hand: z.int(),
4440
4524
  created_at: z.iso.datetime(),
@@ -4466,6 +4550,7 @@ export const zAssetsTransactionEventResponseObject = z.object({
4466
4550
  assets_site_id: z.string().nullable(),
4467
4551
  assignee_id: z.string().nullable(),
4468
4552
  container_item_id: z.string().nullable(),
4553
+ assets_sub_location_id: z.string().nullable(),
4469
4554
  assets_transfer_id: z.string().nullable(),
4470
4555
  performed_by_user_id: z.string(),
4471
4556
  direction: z.enum(['inbound', 'outbound']),
@@ -4616,6 +4701,65 @@ export const zAssetsServiceScheduleTemplateParameters = z.object({
4616
4701
  interval_count: z.int().gte(1),
4617
4702
  performed_by_user_id: z.string()
4618
4703
  });
4704
+ /**
4705
+ * A node of fixed storage structure inside a site or a container item — a zone, aisle, rack, shelf, bin, or drawer. Nodes form a tree per holder, and each carries a scannable path_code composed from its ancestors' codes.
4706
+ */
4707
+ export const zAssetsSubLocationResponseObject = z.object({
4708
+ id: z.string(),
4709
+ company_id: z.string(),
4710
+ assets_site_id: z.string().nullable(),
4711
+ container_item_id: z.string().nullable(),
4712
+ parent_id: z.string().nullable(),
4713
+ kind: z.enum([
4714
+ 'zone',
4715
+ 'aisle',
4716
+ 'rack',
4717
+ 'shelf',
4718
+ 'bin',
4719
+ 'drawer'
4720
+ ]).nullable(),
4721
+ name: z.string(),
4722
+ code: z.string(),
4723
+ path_code: z.string(),
4724
+ created_at: z.iso.datetime(),
4725
+ updated_at: z.iso.datetime()
4726
+ });
4727
+ /**
4728
+ * Create a storage location. name and code are required. A top-level node names its holder (assets_site_id or container_item_id, exactly one); a nested node names parent_id and inherits the parent's holder. The holder cannot change after creation.
4729
+ */
4730
+ export const zAssetsSubLocationParameters = z.object({
4731
+ assets_site_id: z.string().optional(),
4732
+ container_item_id: z.string().optional(),
4733
+ parent_id: z.string().nullish(),
4734
+ kind: z.enum([
4735
+ 'zone',
4736
+ 'aisle',
4737
+ 'rack',
4738
+ 'shelf',
4739
+ 'bin',
4740
+ 'drawer'
4741
+ ]).optional(),
4742
+ name: z.string(),
4743
+ code: z.string()
4744
+ });
4745
+ /**
4746
+ * Update a storage location. All fields are optional — send only what changes. The holder fields cannot change after creation; renaming code cascades new path codes through the node's subtree.
4747
+ */
4748
+ export const zAssetsSubLocationUpdateParameters = z.object({
4749
+ assets_site_id: z.string().optional(),
4750
+ container_item_id: z.string().optional(),
4751
+ parent_id: z.string().nullish(),
4752
+ kind: z.enum([
4753
+ 'zone',
4754
+ 'aisle',
4755
+ 'rack',
4756
+ 'shelf',
4757
+ 'bin',
4758
+ 'drawer'
4759
+ ]).optional(),
4760
+ name: z.string().optional(),
4761
+ code: z.string().optional()
4762
+ });
4619
4763
  /**
4620
4764
  * A completed movement of item stock between two holders, each a site, a user, or a container. Each line moves one item; applying the transfer records paired outbound and inbound transactions and updates the on-hand, custody, and containment counts. Transfers created through this API are always completed. One-sided moves (placing or removing an item with only one endpoint) record transactions but no transfer, and so are not represented by this resource.
4621
4765
  */
@@ -4634,6 +4778,8 @@ export const zAssetsTransferResponseObject = z.object({
4634
4778
  to_assets_site_id: z.string().nullable(),
4635
4779
  to_user_id: z.string().nullable(),
4636
4780
  to_container_item_id: z.string().nullable(),
4781
+ from_assets_sub_location_id: z.string().nullable(),
4782
+ to_assets_sub_location_id: z.string().nullable(),
4637
4783
  initiated_by_user_id: z.string(),
4638
4784
  completed_at: z.iso.datetime().nullable(),
4639
4785
  transfer_lines: z.array(z.object({
@@ -4654,6 +4800,8 @@ export const zAssetsTransferParameters = z.object({
4654
4800
  to_assets_site_id: z.string().optional(),
4655
4801
  to_user_id: z.string().optional(),
4656
4802
  to_container_item_id: z.string().optional(),
4803
+ from_assets_sub_location_id: z.string().optional(),
4804
+ to_assets_sub_location_id: z.string().optional(),
4657
4805
  performed_by_user_id: z.string(),
4658
4806
  line_items: z.array(z.object({
4659
4807
  assets_item_id: z.string(),
@@ -4665,6 +4813,7 @@ export const zAssetsTransferParameters = z.object({
4665
4813
  */
4666
4814
  export const zAssetsRestockParameters = z.object({
4667
4815
  assets_site_id: z.string(),
4816
+ assets_sub_location_id: z.string().optional(),
4668
4817
  quantity: z.int().gte(1),
4669
4818
  performed_by_user_id: z.string()
4670
4819
  });
@@ -4673,20 +4822,21 @@ export const zAssetsRestockParameters = z.object({
4673
4822
  */
4674
4823
  export const zAssetsAdjustmentParameters = z.object({
4675
4824
  assets_site_id: z.string(),
4825
+ assets_sub_location_id: z.string().optional(),
4676
4826
  new_quantity: z.int().gte(0),
4677
4827
  performed_by_user_id: z.string()
4678
4828
  });
4679
4829
  /**
4680
- * Retire an item, taking it out of service. A serial item is removed from its site or user (recording the removal) and marked retired; a bulk item is flagged retired without changing its stock. Delete this resource to un-retire.
4830
+ * Archive or unarchive a product or item. Archiving takes it out of circulation without deleting it — history is preserved and it is hidden from listings unless requested with filter[state]. Archiving a product cascades to its items; item operations apply to serial items only.
4681
4831
  */
4682
- export const zAssetsRetirementParameters = z.object({
4832
+ export const zAssetsArchiveParameters = z.object({
4683
4833
  performed_by_user_id: z.string()
4684
4834
  });
4685
4835
  /**
4686
4836
  * Success
4687
4837
  */
4688
4838
  export const zListApiKeyScopesResponse = z.object({
4689
- data: z.array(zApiKeyScopeResponseObject).optional()
4839
+ data: z.array(zApiKeyScopeResponseObject)
4690
4840
  });
4691
4841
  export const zListApprenticesPath = z.object({
4692
4842
  program_id: z.string()
@@ -4708,9 +4858,9 @@ export const zListApprenticesQuery = z.object({
4708
4858
  * Success
4709
4859
  */
4710
4860
  export const zListApprenticesResponse = z.object({
4711
- meta: zMeta.optional(),
4712
- links: zLinks.optional(),
4713
- data: z.array(zApprenticeshipApprenticeResponseObject).optional()
4861
+ meta: zMeta,
4862
+ links: zLinks,
4863
+ data: z.array(zApprenticeshipApprenticeResponseObject)
4714
4864
  });
4715
4865
  export const zCreateApprenticeBody = zApprenticeshipApprenticeParameters;
4716
4866
  export const zCreateApprenticePath = z.object({
@@ -4738,9 +4888,9 @@ export const zListOccupationsQuery = z.object({
4738
4888
  * Success
4739
4889
  */
4740
4890
  export const zListOccupationsResponse = z.object({
4741
- meta: zMeta.optional(),
4742
- links: zLinks.optional(),
4743
- data: z.array(zApprenticeshipOccupationResponseObject).optional()
4891
+ meta: zMeta,
4892
+ links: zLinks,
4893
+ data: z.array(zApprenticeshipOccupationResponseObject)
4744
4894
  });
4745
4895
  export const zCreateOccupationBody = zApprenticeshipOccupationParameters;
4746
4896
  export const zCreateOccupationPath = z.object({
@@ -4777,9 +4927,9 @@ export const zListEmployersQuery = z.object({
4777
4927
  * Success
4778
4928
  */
4779
4929
  export const zListEmployersResponse = z.object({
4780
- meta: zMeta.optional(),
4781
- links: zLinks.optional(),
4782
- data: z.array(zApprenticeshipProgramEmployerResponseObject).optional()
4930
+ meta: zMeta,
4931
+ links: zLinks,
4932
+ data: z.array(zApprenticeshipProgramEmployerResponseObject)
4783
4933
  });
4784
4934
  export const zCreateEmployerBody = zApprenticeshipProgramEmployerParameters;
4785
4935
  export const zCreateEmployerPath = z.object({
@@ -4821,9 +4971,9 @@ export const zListProgramsQuery = z.object({
4821
4971
  * Success
4822
4972
  */
4823
4973
  export const zListProgramsResponse = z.object({
4824
- meta: zMeta.optional(),
4825
- links: zLinks.optional(),
4826
- data: z.array(zApprenticeshipProgramResponseObject).optional()
4974
+ meta: zMeta,
4975
+ links: zLinks,
4976
+ data: z.array(zApprenticeshipProgramResponseObject)
4827
4977
  });
4828
4978
  export const zCreateProgramBody = zApprenticeshipProgramParameters;
4829
4979
  /**
@@ -4856,9 +5006,9 @@ export const zListPeriodsQuery = z.object({
4856
5006
  * Success
4857
5007
  */
4858
5008
  export const zListPeriodsResponse = z.object({
4859
- meta: zMeta.optional(),
4860
- links: zLinks.optional(),
4861
- data: z.array(zApprenticeshipWageSchedulePeriodResponseObject).optional()
5009
+ meta: zMeta,
5010
+ links: zLinks,
5011
+ data: z.array(zApprenticeshipWageSchedulePeriodResponseObject)
4862
5012
  });
4863
5013
  export const zCreatePeriodBody = zApprenticeshipWageSchedulePeriodParameters;
4864
5014
  export const zCreatePeriodPath = z.object({
@@ -4895,9 +5045,9 @@ export const zListWageSchedulesQuery = z.object({
4895
5045
  * Success
4896
5046
  */
4897
5047
  export const zListWageSchedulesResponse = z.object({
4898
- meta: zMeta.optional(),
4899
- links: zLinks.optional(),
4900
- data: z.array(zApprenticeshipWageScheduleResponseObject).optional()
5048
+ meta: zMeta,
5049
+ links: zLinks,
5050
+ data: z.array(zApprenticeshipWageScheduleResponseObject)
4901
5051
  });
4902
5052
  export const zCreateWageScheduleBody = zApprenticeshipWageScheduleParameters;
4903
5053
  export const zCreateWageSchedulePath = z.object({
@@ -4932,9 +5082,9 @@ export const zListAttributesQuery = z.object({
4932
5082
  * Success
4933
5083
  */
4934
5084
  export const zListAttributesResponse = z.object({
4935
- meta: zMeta.optional(),
4936
- links: zLinks.optional(),
4937
- data: z.array(zAssetsAttributeResponseObject).optional()
5085
+ meta: zMeta,
5086
+ links: zLinks,
5087
+ data: z.array(zAssetsAttributeResponseObject)
4938
5088
  });
4939
5089
  export const zCreateAttributeBody = zAssetsAttributeParameters;
4940
5090
  /**
@@ -4978,9 +5128,9 @@ export const zListCategoriesQuery = z.object({
4978
5128
  * Success
4979
5129
  */
4980
5130
  export const zListCategoriesResponse = z.object({
4981
- meta: zMeta.optional(),
4982
- links: zLinks.optional(),
4983
- data: z.array(zAssetsCategoryResponseObject).optional()
5131
+ meta: zMeta,
5132
+ links: zLinks,
5133
+ data: z.array(zAssetsCategoryResponseObject)
4984
5134
  });
4985
5135
  export const zCreateCategoryBody = zAssetsCategoryParameters;
4986
5136
  /**
@@ -5019,9 +5169,9 @@ export const zListCustodiesQuery = z.object({
5019
5169
  * Success
5020
5170
  */
5021
5171
  export const zListCustodiesResponse = z.object({
5022
- meta: zMeta.optional(),
5023
- links: zLinks.optional(),
5024
- data: z.array(zAssetsCustodyResponseObject).optional()
5172
+ meta: zMeta,
5173
+ links: zLinks,
5174
+ data: z.array(zAssetsCustodyResponseObject)
5025
5175
  });
5026
5176
  export const zGetCustodyPath = z.object({
5027
5177
  id: z.string()
@@ -5040,9 +5190,9 @@ export const zListEventsQuery = z.object({
5040
5190
  * Success
5041
5191
  */
5042
5192
  export const zListEventsResponse = z.object({
5043
- meta: zMeta.optional(),
5044
- links: zLinks.optional(),
5045
- data: z.array(zAssetsItemEventResponseObject).optional()
5193
+ meta: zMeta,
5194
+ links: zLinks,
5195
+ data: z.array(zAssetsItemEventResponseObject)
5046
5196
  });
5047
5197
  export const zGetEventPath = z.object({
5048
5198
  id: z.string()
@@ -5063,9 +5213,9 @@ export const zListFormAssignmentTriggersQuery = z.object({
5063
5213
  * Success
5064
5214
  */
5065
5215
  export const zListFormAssignmentTriggersResponse = z.object({
5066
- meta: zMeta.optional(),
5067
- links: zLinks.optional(),
5068
- data: z.array(zAssetsFormAssignmentTriggerResponseObject).optional()
5216
+ meta: zMeta,
5217
+ links: zLinks,
5218
+ data: z.array(zAssetsFormAssignmentTriggerResponseObject)
5069
5219
  });
5070
5220
  export const zCreateFormAssignmentTriggerBody = zAssetsFormAssignmentTriggerParameters;
5071
5221
  /**
@@ -5104,9 +5254,9 @@ export const zListInventoriesQuery = z.object({
5104
5254
  * Success
5105
5255
  */
5106
5256
  export const zListInventoriesResponse = z.object({
5107
- meta: zMeta.optional(),
5108
- links: zLinks.optional(),
5109
- data: z.array(zAssetsInventoryResponseObject).optional()
5257
+ meta: zMeta,
5258
+ links: zLinks,
5259
+ data: z.array(zAssetsInventoryResponseObject)
5110
5260
  });
5111
5261
  export const zGetInventoryPath = z.object({
5112
5262
  id: z.string()
@@ -5124,6 +5274,7 @@ export const zListItemsQuery = z.object({
5124
5274
  'filter[container_item_id]': z.string().optional(),
5125
5275
  'filter[status]': z.string().optional(),
5126
5276
  'filter[service]': z.string().optional(),
5277
+ 'filter[state]': z.string().optional(),
5127
5278
  filter: z.string().optional(),
5128
5279
  'filter[unexpected]': z.string().optional()
5129
5280
  });
@@ -5131,9 +5282,9 @@ export const zListItemsQuery = z.object({
5131
5282
  * Success
5132
5283
  */
5133
5284
  export const zListItemsResponse = z.object({
5134
- meta: zMeta.optional(),
5135
- links: zLinks.optional(),
5136
- data: z.array(zAssetsItemResponseObject).optional()
5285
+ meta: zMeta,
5286
+ links: zLinks,
5287
+ data: z.array(zAssetsItemResponseObject)
5137
5288
  });
5138
5289
  export const zCreateItemBody = zAssetsItemParameters;
5139
5290
  /**
@@ -5162,21 +5313,22 @@ export const zUpdateItemPath = z.object({
5162
5313
  * Removes an image
5163
5314
  */
5164
5315
  export const zUpdateItemResponse = zAssetsItemResponseObject;
5165
- export const zUnretireItemPath = z.object({
5316
+ export const zUnarchiveItemBody = zAssetsArchiveParameters;
5317
+ export const zUnarchiveItemPath = z.object({
5166
5318
  item_id: z.string()
5167
5319
  });
5168
5320
  /**
5169
5321
  * Success
5170
5322
  */
5171
- export const zUnretireItemResponse = zAssetsItemResponseObject;
5172
- export const zRetireItemBody = zAssetsRetirementParameters;
5173
- export const zRetireItemPath = z.object({
5323
+ export const zUnarchiveItemResponse = zAssetsItemResponseObject;
5324
+ export const zArchiveItemBody = zAssetsArchiveParameters;
5325
+ export const zArchiveItemPath = z.object({
5174
5326
  item_id: z.string()
5175
5327
  });
5176
5328
  /**
5177
5329
  * Created
5178
5330
  */
5179
- export const zRetireItemResponse = zAssetsItemResponseObject;
5331
+ export const zArchiveItemResponse = zAssetsItemResponseObject;
5180
5332
  export const zListServiceSchedulesPath = z.object({
5181
5333
  item_id: z.string()
5182
5334
  });
@@ -5196,9 +5348,9 @@ export const zListServiceSchedulesQuery = z.object({
5196
5348
  * Success
5197
5349
  */
5198
5350
  export const zListServiceSchedulesResponse = z.object({
5199
- meta: zMeta.optional(),
5200
- links: zLinks.optional(),
5201
- data: z.array(zAssetsServiceScheduleResponseObject).optional()
5351
+ meta: zMeta,
5352
+ links: zLinks,
5353
+ data: z.array(zAssetsServiceScheduleResponseObject)
5202
5354
  });
5203
5355
  export const zCreateServiceScheduleBody = zAssetsServiceScheduleParameters;
5204
5356
  export const zCreateServiceSchedulePath = z.object({
@@ -5252,9 +5404,9 @@ export const zListServiceEventsQuery = z.object({
5252
5404
  * Success
5253
5405
  */
5254
5406
  export const zListServiceEventsResponse = z.object({
5255
- meta: zMeta.optional(),
5256
- links: zLinks.optional(),
5257
- data: z.array(zAssetsServiceEventFullResponseObject).optional()
5407
+ meta: zMeta,
5408
+ links: zLinks,
5409
+ data: z.array(zAssetsServiceEventFullResponseObject)
5258
5410
  });
5259
5411
  export const zCreateServiceEventBody = zAssetsServiceEventParameters;
5260
5412
  export const zCreateServiceEventPath = z.object({
@@ -5301,9 +5453,9 @@ export const zListFormAssignmentTasksQuery = z.object({
5301
5453
  * Success
5302
5454
  */
5303
5455
  export const zListFormAssignmentTasksResponse = z.object({
5304
- meta: zMeta.optional(),
5305
- links: zLinks.optional(),
5306
- data: z.array(zAssetsItemFormAssignmentResponseObject).optional()
5456
+ meta: zMeta,
5457
+ links: zLinks,
5458
+ data: z.array(zAssetsItemFormAssignmentResponseObject)
5307
5459
  });
5308
5460
  export const zCreateItemFormAssignmentTaskBody = zAssetsItemFormAssignmentParameters;
5309
5461
  export const zCreateItemFormAssignmentTaskPath = z.object({
@@ -5344,9 +5496,9 @@ export const zListDocumentsQuery = z.object({
5344
5496
  * Success
5345
5497
  */
5346
5498
  export const zListDocumentsResponse = z.object({
5347
- meta: zMeta.optional(),
5348
- links: zLinks.optional(),
5349
- data: z.array(zAssetsDocumentResponseObject).optional()
5499
+ meta: zMeta,
5500
+ links: zLinks,
5501
+ data: z.array(zAssetsDocumentResponseObject)
5350
5502
  });
5351
5503
  export const zCreateDocumentBody = zAssetsDocumentParameters;
5352
5504
  export const zCreateDocumentPath = z.object({
@@ -5389,12 +5541,13 @@ export const zListVersionsPath = z.object({
5389
5541
  * Success
5390
5542
  */
5391
5543
  export const zListVersionsResponse = z.object({
5392
- meta: zMeta.optional(),
5393
- links: zLinks.optional(),
5394
- data: z.array(zAssetsDocumentVersionResponseObject).optional()
5544
+ meta: zMeta,
5545
+ links: zLinks,
5546
+ data: z.array(zAssetsDocumentVersionResponseObject)
5395
5547
  });
5396
5548
  export const zListProductsQuery = z.object({
5397
5549
  'filter[assets_category_id]': z.string().optional(),
5550
+ 'filter[state]': z.string().optional(),
5398
5551
  'filter[created_at][gte]': z.iso.datetime().optional(),
5399
5552
  'filter[created_at][lte]': z.iso.datetime().optional(),
5400
5553
  'filter[updated_at][gte]': z.iso.datetime().optional(),
@@ -5409,9 +5562,9 @@ export const zListProductsQuery = z.object({
5409
5562
  * Success
5410
5563
  */
5411
5564
  export const zListProductsResponse = z.object({
5412
- meta: zMeta.optional(),
5413
- links: zLinks.optional(),
5414
- data: z.array(zAssetsProductResponseObject).optional()
5565
+ meta: zMeta,
5566
+ links: zLinks,
5567
+ data: z.array(zAssetsProductResponseObject)
5415
5568
  });
5416
5569
  export const zCreateProductBody = zAssetsProductParameters;
5417
5570
  /**
@@ -5440,6 +5593,22 @@ export const zUpdateProductPath = z.object({
5440
5593
  * Success (upsert attribute values)
5441
5594
  */
5442
5595
  export const zUpdateProductResponse = zAssetsProductResponseObject;
5596
+ export const zUnarchiveProductBody = zAssetsArchiveParameters;
5597
+ export const zUnarchiveProductPath = z.object({
5598
+ product_id: z.string()
5599
+ });
5600
+ /**
5601
+ * Success
5602
+ */
5603
+ export const zUnarchiveProductResponse = zAssetsProductResponseObject;
5604
+ export const zArchiveProductBody = zAssetsArchiveParameters;
5605
+ export const zArchiveProductPath = z.object({
5606
+ product_id: z.string()
5607
+ });
5608
+ /**
5609
+ * Created
5610
+ */
5611
+ export const zArchiveProductResponse = zAssetsProductResponseObject;
5443
5612
  export const zAdjustProductInventoryBody = zAssetsAdjustmentParameters;
5444
5613
  export const zAdjustProductInventoryPath = z.object({
5445
5614
  product_id: z.string()
@@ -5471,9 +5640,9 @@ export const zListServiceScheduleTemplatesQuery = z.object({
5471
5640
  * Success
5472
5641
  */
5473
5642
  export const zListServiceScheduleTemplatesResponse = z.object({
5474
- meta: zMeta.optional(),
5475
- links: zLinks.optional(),
5476
- data: z.array(zAssetsServiceScheduleTemplateResponseObject).optional()
5643
+ meta: zMeta,
5644
+ links: zLinks,
5645
+ data: z.array(zAssetsServiceScheduleTemplateResponseObject)
5477
5646
  });
5478
5647
  export const zCreateServiceScheduleTemplateBody = zAssetsServiceScheduleTemplateParameters;
5479
5648
  export const zCreateServiceScheduleTemplatePath = z.object({
@@ -5553,9 +5722,9 @@ export const zListAssetsSitesQuery = z.object({
5553
5722
  * Success
5554
5723
  */
5555
5724
  export const zListAssetsSitesResponse = z.object({
5556
- meta: zMeta.optional(),
5557
- links: zLinks.optional(),
5558
- data: z.array(zAssetsSiteResponseObject).optional()
5725
+ meta: zMeta,
5726
+ links: zLinks,
5727
+ data: z.array(zAssetsSiteResponseObject)
5559
5728
  });
5560
5729
  export const zCreateSiteBody = zAssetsSiteParameters;
5561
5730
  /**
@@ -5584,6 +5753,55 @@ export const zUpdateSitePath = z.object({
5584
5753
  * Success
5585
5754
  */
5586
5755
  export const zUpdateSiteResponse = zAssetsSiteResponseObject;
5756
+ export const zListSubLocationsQuery = z.object({
5757
+ 'filter[assets_site_id]': z.string().optional(),
5758
+ 'filter[container_item_id]': z.string().optional(),
5759
+ 'filter[kind]': z.string().optional(),
5760
+ 'filter[created_at][gte]': z.iso.datetime().optional(),
5761
+ 'filter[created_at][lte]': z.iso.datetime().optional(),
5762
+ 'filter[updated_at][gte]': z.iso.datetime().optional(),
5763
+ 'filter[updated_at][lte]': z.iso.datetime().optional(),
5764
+ filter: z.string().optional(),
5765
+ 'filter[unexpected]': z.string().optional(),
5766
+ 'page[cursor]': z.string().optional(),
5767
+ 'page[limit]': z.int().gte(1).optional().default(20),
5768
+ page: z.string().optional()
5769
+ });
5770
+ /**
5771
+ * Success
5772
+ */
5773
+ export const zListSubLocationsResponse = z.object({
5774
+ meta: zMeta,
5775
+ links: zLinks,
5776
+ data: z.array(zAssetsSubLocationResponseObject)
5777
+ });
5778
+ export const zCreateSubLocationBody = zAssetsSubLocationParameters;
5779
+ /**
5780
+ * Created
5781
+ */
5782
+ export const zCreateSubLocationResponse = zAssetsSubLocationResponseObject;
5783
+ export const zDeleteSubLocationPath = z.object({
5784
+ id: z.string()
5785
+ });
5786
+ /**
5787
+ * Success
5788
+ */
5789
+ export const zDeleteSubLocationResponse = zAssetsSubLocationResponseObject;
5790
+ export const zGetSubLocationPath = z.object({
5791
+ id: z.string()
5792
+ });
5793
+ /**
5794
+ * Success
5795
+ */
5796
+ export const zGetSubLocationResponse = zAssetsSubLocationResponseObject;
5797
+ export const zUpdateSubLocationBody = zAssetsSubLocationUpdateParameters;
5798
+ export const zUpdateSubLocationPath = z.object({
5799
+ id: z.string()
5800
+ });
5801
+ /**
5802
+ * Success
5803
+ */
5804
+ export const zUpdateSubLocationResponse = zAssetsSubLocationResponseObject;
5587
5805
  export const zListTransfersQuery = z.object({
5588
5806
  'filter[status]': z.string().optional(),
5589
5807
  filter: z.string().optional(),
@@ -5593,9 +5811,9 @@ export const zListTransfersQuery = z.object({
5593
5811
  * Success
5594
5812
  */
5595
5813
  export const zListTransfersResponse = z.object({
5596
- meta: zMeta.optional(),
5597
- links: zLinks.optional(),
5598
- data: z.array(zAssetsTransferResponseObject).optional()
5814
+ meta: zMeta,
5815
+ links: zLinks,
5816
+ data: z.array(zAssetsTransferResponseObject)
5599
5817
  });
5600
5818
  export const zCreateTransferBody = zAssetsTransferParameters;
5601
5819
  export const zCreateTransferResponse = z.union([
@@ -5620,9 +5838,9 @@ export const zListVendorsQuery = z.object({
5620
5838
  * Success
5621
5839
  */
5622
5840
  export const zListVendorsResponse = z.object({
5623
- meta: zMeta.optional(),
5624
- links: zLinks.optional(),
5625
- data: z.array(zAssetsVendorResponseObject).optional()
5841
+ meta: zMeta,
5842
+ links: zLinks,
5843
+ data: z.array(zAssetsVendorResponseObject)
5626
5844
  });
5627
5845
  export const zCreateVendorBody = zAssetsVendorParameters;
5628
5846
  /**
@@ -5673,9 +5891,9 @@ export const zListFeaturesQuery = z.object({
5673
5891
  * Success
5674
5892
  */
5675
5893
  export const zListFeaturesResponse = z.object({
5676
- meta: zMeta.optional(),
5677
- links: zLinks.optional(),
5678
- data: z.array(zFeatureResponseObject).optional()
5894
+ meta: zMeta,
5895
+ links: zLinks,
5896
+ data: z.array(zFeatureResponseObject)
5679
5897
  });
5680
5898
  export const zGetFeaturePath = z.object({
5681
5899
  id: z.string()
@@ -5705,9 +5923,9 @@ export const zListAtlasSitesQuery = z.object({
5705
5923
  * Success
5706
5924
  */
5707
5925
  export const zListAtlasSitesResponse = z.object({
5708
- meta: zMeta.optional(),
5709
- links: zLinks.optional(),
5710
- data: z.array(zSiteResponseObject).optional()
5926
+ meta: zMeta,
5927
+ links: zLinks,
5928
+ data: z.array(zSiteResponseObject)
5711
5929
  });
5712
5930
  export const zGetAtlasSitePath = z.object({
5713
5931
  id: z.string()
@@ -5742,9 +5960,9 @@ export const zListPackagesQuery = z.object({
5742
5960
  * Success
5743
5961
  */
5744
5962
  export const zListPackagesResponse = z.object({
5745
- meta: zMeta.optional(),
5746
- links: zLinks.optional(),
5747
- data: z.array(zCertificationPackageResponseObject).optional()
5963
+ meta: zMeta,
5964
+ links: zLinks,
5965
+ data: z.array(zCertificationPackageResponseObject)
5748
5966
  });
5749
5967
  export const zCreatePackageBody = zCertificationPackageParameters;
5750
5968
  /**
@@ -5867,9 +6085,9 @@ export const zListDepartmentsQuery = z.object({
5867
6085
  * Success
5868
6086
  */
5869
6087
  export const zListDepartmentsResponse = z.object({
5870
- meta: zMeta.optional(),
5871
- links: zLinks.optional(),
5872
- data: z.array(zDepartmentResponseObject).optional()
6088
+ meta: zMeta,
6089
+ links: zLinks,
6090
+ data: z.array(zDepartmentResponseObject)
5873
6091
  });
5874
6092
  export const zCreateDepartmentBody = zDepartmentParameters;
5875
6093
  /**
@@ -5896,9 +6114,9 @@ export const zListCompaniesQuery = z.object({
5896
6114
  * Success
5897
6115
  */
5898
6116
  export const zListCompaniesResponse = z.object({
5899
- meta: zMeta.optional(),
5900
- links: zLinks.optional(),
5901
- data: z.array(zCompanyResponseObject).optional()
6117
+ meta: zMeta,
6118
+ links: zLinks,
6119
+ data: z.array(zCompanyResponseObject)
5902
6120
  });
5903
6121
  export const zGetCompanyPath = z.object({
5904
6122
  id: z.string()
@@ -5940,9 +6158,9 @@ export const zListChecksQuery = z.object({
5940
6158
  * Success
5941
6159
  */
5942
6160
  export const zListChecksResponse = z.object({
5943
- meta: zMeta.optional(),
5944
- links: zLinks.optional(),
5945
- data: z.array(zComplianceCheckResponseObject).optional()
6161
+ meta: zMeta,
6162
+ links: zLinks,
6163
+ data: z.array(zComplianceCheckResponseObject)
5946
6164
  });
5947
6165
  export const zGetCheckPath = z.object({
5948
6166
  id: z.string()
@@ -5968,9 +6186,9 @@ export const zListCustomFieldConfigsQuery = z.object({
5968
6186
  * Success
5969
6187
  */
5970
6188
  export const zListCustomFieldConfigsResponse = z.object({
5971
- meta: zMeta.optional(),
5972
- links: zLinks.optional(),
5973
- data: z.array(zCustomFieldConfigsResponseObject).optional()
6189
+ meta: zMeta,
6190
+ links: zLinks,
6191
+ data: z.array(zCustomFieldConfigsResponseObject)
5974
6192
  });
5975
6193
  export const zCreateCustomFieldConfigBody = zCustomFieldConfigParameters;
5976
6194
  /**
@@ -6077,9 +6295,9 @@ export const zListGroupUsersQuery = z.object({
6077
6295
  * Success
6078
6296
  */
6079
6297
  export const zListGroupUsersResponse = z.object({
6080
- meta: zMeta.optional(),
6081
- links: zLinks.optional(),
6082
- data: z.array(zUserGroupResponse).optional()
6298
+ meta: zMeta,
6299
+ links: zLinks,
6300
+ data: z.array(zUserGroupResponse)
6083
6301
  });
6084
6302
  export const zAddUsersToGroupBody = zUserGroupParameters;
6085
6303
  export const zAddUsersToGroupPath = z.object({
@@ -6106,9 +6324,9 @@ export const zListGroupsQuery = z.object({
6106
6324
  * Success
6107
6325
  */
6108
6326
  export const zListGroupsResponse = z.object({
6109
- meta: zMeta.optional(),
6110
- links: zLinks.optional(),
6111
- data: z.array(zGroupResponseObject).optional()
6327
+ meta: zMeta,
6328
+ links: zLinks,
6329
+ data: z.array(zGroupResponseObject)
6112
6330
  });
6113
6331
  export const zCreateGroupBody = zGroupParameters;
6114
6332
  /**
@@ -6156,9 +6374,9 @@ export const zListJobScopePricesQuery = z.object({
6156
6374
  * Success
6157
6375
  */
6158
6376
  export const zListJobScopePricesResponse = z.object({
6159
- meta: zMeta.optional(),
6160
- links: zLinks.optional(),
6161
- data: z.array(zProductionJobScopePriceResponseObject).optional()
6377
+ meta: zMeta,
6378
+ links: zLinks,
6379
+ data: z.array(zProductionJobScopePriceResponseObject)
6162
6380
  });
6163
6381
  export const zCreateJobScopePriceBody = zProductionJobScopePriceParameters;
6164
6382
  export const zCreateJobScopePricePath = z.object({
@@ -6213,9 +6431,9 @@ export const zListRateRuleHistoryQuery = z.object({
6213
6431
  * Success
6214
6432
  */
6215
6433
  export const zListRateRuleHistoryResponse = z.object({
6216
- meta: zMeta.optional(),
6217
- links: zLinks.optional(),
6218
- data: z.array(zRateRuleHistoryVersionObject).optional()
6434
+ meta: zMeta,
6435
+ links: zLinks,
6436
+ data: z.array(zRateRuleHistoryVersionObject)
6219
6437
  });
6220
6438
  export const zListRateRulesPath = z.object({
6221
6439
  job_id: z.string(),
@@ -6232,9 +6450,9 @@ export const zListRateRulesQuery = z.object({
6232
6450
  * Success
6233
6451
  */
6234
6452
  export const zListRateRulesResponse = z.object({
6235
- meta: zMeta.optional(),
6236
- links: zLinks.optional(),
6237
- data: z.array(zRateRuleResponseObject).optional()
6453
+ meta: zMeta,
6454
+ links: zLinks,
6455
+ data: z.array(zRateRuleResponseObject)
6238
6456
  });
6239
6457
  export const zCreateRateRuleBody = zRateRuleParameters;
6240
6458
  export const zCreateRateRulePath = z.object({
@@ -6257,6 +6475,18 @@ export const zGetRateRuleQuery = z.object({
6257
6475
  * Success
6258
6476
  */
6259
6477
  export const zGetRateRuleResponse = zRateRuleResponseObject;
6478
+ export const zShiftJobWageDeterminationGenesisBody = zJobWageDeterminationGenesisParameters;
6479
+ export const zShiftJobWageDeterminationGenesisHeaders = z.object({
6480
+ 'If-Match': z.string()
6481
+ });
6482
+ export const zShiftJobWageDeterminationGenesisPath = z.object({
6483
+ job_id: z.string(),
6484
+ wage_determination_id: z.string()
6485
+ });
6486
+ /**
6487
+ * Success
6488
+ */
6489
+ export const zShiftJobWageDeterminationGenesisResponse = zJobWageDeterminationResponseObject;
6260
6490
  export const zListJobWageDeterminationHistoryPath = z.object({
6261
6491
  job_id: z.string(),
6262
6492
  wage_determination_id: z.string()
@@ -6268,10 +6498,64 @@ export const zListJobWageDeterminationHistoryQuery = z.object({
6268
6498
  * Success
6269
6499
  */
6270
6500
  export const zListJobWageDeterminationHistoryResponse = z.object({
6271
- meta: zMeta.optional(),
6272
- links: zLinks.optional(),
6273
- data: z.array(zJobWageDeterminationHistoryVersionObject).optional()
6501
+ meta: zMeta,
6502
+ links: zLinks,
6503
+ data: z.array(zJobWageDeterminationHistoryVersionObject)
6504
+ });
6505
+ export const zCancelJobWageDeterminationScheduledChangesHeaders = z.object({
6506
+ 'If-Match': z.string()
6507
+ });
6508
+ export const zCancelJobWageDeterminationScheduledChangesPath = z.object({
6509
+ job_id: z.string(),
6510
+ wage_determination_id: z.string()
6511
+ });
6512
+ /**
6513
+ * Success
6514
+ */
6515
+ export const zCancelJobWageDeterminationScheduledChangesResponse = zJobWageDeterminationResponseObject;
6516
+ export const zListJobWageDeterminationScheduledChangesPath = z.object({
6517
+ job_id: z.string(),
6518
+ wage_determination_id: z.string()
6519
+ });
6520
+ /**
6521
+ * Success with scheduled changes
6522
+ */
6523
+ export const zListJobWageDeterminationScheduledChangesResponse = z.array(zJobWageDeterminationResponseObject);
6524
+ export const zScheduleJobWageDeterminationChangeBody = zJobWageDeterminationScheduledChangeParameters;
6525
+ export const zScheduleJobWageDeterminationChangeHeaders = z.object({
6526
+ 'If-Match': z.string()
6527
+ });
6528
+ export const zScheduleJobWageDeterminationChangePath = z.object({
6529
+ job_id: z.string(),
6530
+ wage_determination_id: z.string()
6531
+ });
6532
+ /**
6533
+ * Created
6534
+ */
6535
+ export const zScheduleJobWageDeterminationChangeResponse = zJobWageDeterminationResponseObject;
6536
+ export const zCancelJobWageDeterminationScheduledTerminationHeaders = z.object({
6537
+ 'If-Match': z.string()
6538
+ });
6539
+ export const zCancelJobWageDeterminationScheduledTerminationPath = z.object({
6540
+ job_id: z.string(),
6541
+ wage_determination_id: z.string()
6274
6542
  });
6543
+ /**
6544
+ * Success
6545
+ */
6546
+ export const zCancelJobWageDeterminationScheduledTerminationResponse = zJobWageDeterminationResponseObject;
6547
+ export const zScheduleJobWageDeterminationTerminationBody = zJobWageDeterminationScheduledTerminationParameters;
6548
+ export const zScheduleJobWageDeterminationTerminationHeaders = z.object({
6549
+ 'If-Match': z.string()
6550
+ });
6551
+ export const zScheduleJobWageDeterminationTerminationPath = z.object({
6552
+ job_id: z.string(),
6553
+ wage_determination_id: z.string()
6554
+ });
6555
+ /**
6556
+ * Created
6557
+ */
6558
+ export const zScheduleJobWageDeterminationTerminationResponse = zJobWageDeterminationResponseObject;
6275
6559
  export const zListJobWageDeterminationsPath = z.object({
6276
6560
  job_id: z.string()
6277
6561
  });
@@ -6286,9 +6570,9 @@ export const zListJobWageDeterminationsQuery = z.object({
6286
6570
  * Success
6287
6571
  */
6288
6572
  export const zListJobWageDeterminationsResponse = z.object({
6289
- meta: zMeta.optional(),
6290
- links: zLinks.optional(),
6291
- data: z.array(zJobWageDeterminationResponseObject).optional()
6573
+ meta: zMeta,
6574
+ links: zLinks,
6575
+ data: z.array(zJobWageDeterminationResponseObject)
6292
6576
  });
6293
6577
  export const zCreateWageDeterminationBody = zJobWageDeterminationParameters;
6294
6578
  export const zCreateWageDeterminationPath = z.object({
@@ -6320,6 +6604,18 @@ export const zGetJobWageDeterminationQuery = z.object({
6320
6604
  * Success
6321
6605
  */
6322
6606
  export const zGetJobWageDeterminationResponse = zJobWageDeterminationResponseObject;
6607
+ export const zUpdateJobWageDeterminationBody = zJobWageDeterminationUpdateParameters;
6608
+ export const zUpdateJobWageDeterminationHeaders = z.object({
6609
+ 'If-Match': z.string()
6610
+ });
6611
+ export const zUpdateJobWageDeterminationPath = z.object({
6612
+ job_id: z.string(),
6613
+ id: z.string()
6614
+ });
6615
+ /**
6616
+ * Success
6617
+ */
6618
+ export const zUpdateJobWageDeterminationResponse = zJobWageDeterminationResponseObject;
6323
6619
  export const zListJobsQuery = z.object({
6324
6620
  'filter[updated_at][gte]': z.iso.datetime().optional(),
6325
6621
  'filter[updated_at][lte]': z.iso.datetime().optional(),
@@ -6335,9 +6631,9 @@ export const zListJobsQuery = z.object({
6335
6631
  * Success
6336
6632
  */
6337
6633
  export const zListJobsResponse = z.object({
6338
- meta: zMeta.optional(),
6339
- links: zLinks.optional(),
6340
- data: z.array(zJobResponseObject).optional()
6634
+ meta: zMeta,
6635
+ links: zLinks,
6636
+ data: z.array(zJobResponseObject)
6341
6637
  });
6342
6638
  /**
6343
6639
  * Create a job
@@ -6412,9 +6708,9 @@ export const zListPayPeriodsResponse = zPayPeriodsResponseObject;
6412
6708
  * Success
6413
6709
  */
6414
6710
  export const zListCompensationElementsResponse = z.object({
6415
- meta: zMeta.optional(),
6416
- links: zLinks.optional(),
6417
- data: z.array(zCompensationElementResponseObject).optional()
6711
+ meta: zMeta,
6712
+ links: zLinks,
6713
+ data: z.array(zCompensationElementResponseObject)
6418
6714
  });
6419
6715
  export const zGetCompensationElementPath = z.object({
6420
6716
  id: z.string()
@@ -6434,9 +6730,9 @@ export const zListExternalMapHistoryQuery = z.object({
6434
6730
  * Success
6435
6731
  */
6436
6732
  export const zListExternalMapHistoryResponse = z.object({
6437
- meta: zMeta.optional(),
6438
- links: zLinks.optional(),
6439
- data: z.array(zPayrollExternalMapHistoryVersionObject).optional()
6733
+ meta: zMeta,
6734
+ links: zLinks,
6735
+ data: z.array(zPayrollExternalMapHistoryVersionObject)
6440
6736
  });
6441
6737
  export const zListExternalMapsQuery = z.object({
6442
6738
  'filter[name]': z.string().optional(),
@@ -6457,9 +6753,9 @@ export const zListExternalMapsQuery = z.object({
6457
6753
  * Success
6458
6754
  */
6459
6755
  export const zListExternalMapsResponse = z.object({
6460
- meta: zMeta.optional(),
6461
- links: zLinks.optional(),
6462
- data: z.array(zPayrollExternalMapResponseObject).optional()
6756
+ meta: zMeta,
6757
+ links: zLinks,
6758
+ data: z.array(zPayrollExternalMapResponseObject)
6463
6759
  });
6464
6760
  export const zGetExternalMapPath = z.object({
6465
6761
  id: z.string()
@@ -6485,9 +6781,9 @@ export const zListFringeBenefitPlansQuery = z.object({
6485
6781
  * Success
6486
6782
  */
6487
6783
  export const zListFringeBenefitPlansResponse = z.object({
6488
- meta: zMeta.optional(),
6489
- links: zLinks.optional(),
6490
- data: z.array(zPayrollFringeBenefitPlanResponseObject).optional()
6784
+ meta: zMeta,
6785
+ links: zLinks,
6786
+ data: z.array(zPayrollFringeBenefitPlanResponseObject)
6491
6787
  });
6492
6788
  export const zCreateFringeBenefitPlanBody = zPayrollFringeBenefitPlanParameters;
6493
6789
  /**
@@ -6664,9 +6960,9 @@ export const zListPerDiemsQuery = z.object({
6664
6960
  * Success
6665
6961
  */
6666
6962
  export const zListPerDiemsResponse = z.object({
6667
- meta: zMeta.optional(),
6668
- links: zLinks.optional(),
6669
- data: z.array(zPerDiemResponseObject).optional()
6963
+ meta: zMeta,
6964
+ links: zLinks,
6965
+ data: z.array(zPerDiemResponseObject)
6670
6966
  });
6671
6967
  export const zCreatePerDiemBody = zPerDiemParameters;
6672
6968
  /**
@@ -6704,9 +7000,9 @@ export const zListPositionFunctionsQuery = z.object({
6704
7000
  * Success
6705
7001
  */
6706
7002
  export const zListPositionFunctionsResponse = z.object({
6707
- meta: zMeta.optional(),
6708
- links: zLinks.optional(),
6709
- data: z.array(zPositionFunctionResponseObject).optional()
7003
+ meta: zMeta,
7004
+ links: zLinks,
7005
+ data: z.array(zPositionFunctionResponseObject)
6710
7006
  });
6711
7007
  export const zCreatePositionFunctionBody = zPositionFunctionParameters;
6712
7008
  /**
@@ -6756,9 +7052,9 @@ export const zListCompletionsQuery = z.object({
6756
7052
  * Success
6757
7053
  */
6758
7054
  export const zListCompletionsResponse = z.object({
6759
- meta: zMeta.optional(),
6760
- links: zLinks.optional(),
6761
- data: z.array(zProductionCompletionResponseObject).optional()
7055
+ meta: zMeta,
7056
+ links: zLinks,
7057
+ data: z.array(zProductionCompletionResponseObject)
6762
7058
  });
6763
7059
  export const zCreateCompletionBody = zProductionCompletionParameters;
6764
7060
  /**
@@ -6823,9 +7119,9 @@ export const zListProjectsQuery = z.object({
6823
7119
  * Success
6824
7120
  */
6825
7121
  export const zListProjectsResponse = z.object({
6826
- meta: zMeta.optional(),
6827
- links: zLinks.optional(),
6828
- data: z.array(zProjectResponseObject).optional()
7122
+ meta: zMeta,
7123
+ links: zLinks,
7124
+ data: z.array(zProjectResponseObject)
6829
7125
  });
6830
7126
  export const zCreateProjectBody = zProjectParameters;
6831
7127
  /**
@@ -6877,9 +7173,9 @@ export const zListTradesQuery = z.object({
6877
7173
  * Success
6878
7174
  */
6879
7175
  export const zListTradesResponse = z.object({
6880
- meta: zMeta.optional(),
6881
- links: zLinks.optional(),
6882
- data: z.array(zPwaTradeResponseObject).optional()
7176
+ meta: zMeta,
7177
+ links: zLinks,
7178
+ data: z.array(zPwaTradeResponseObject)
6883
7179
  });
6884
7180
  export const zGetTradePath = z.object({
6885
7181
  id: z.string()
@@ -6999,9 +7295,9 @@ export const zListTemplatesQuery = z.object({
6999
7295
  * Success
7000
7296
  */
7001
7297
  export const zListTemplatesResponse = z.object({
7002
- meta: zMeta.optional(),
7003
- links: zLinks.optional(),
7004
- data: z.array(zJobTemplateResponseObject).optional()
7298
+ meta: zMeta,
7299
+ links: zLinks,
7300
+ data: z.array(zJobTemplateResponseObject)
7005
7301
  });
7006
7302
  export const zSetTimeCardLockBody = zTimeCardLockParameters;
7007
7303
  export const zSetTimeCardLockPath = z.object({
@@ -7031,9 +7327,9 @@ export const zListTimeCardPerDiemsQuery = z.object({
7031
7327
  * Success
7032
7328
  */
7033
7329
  export const zListTimeCardPerDiemsResponse = z.object({
7034
- meta: zMeta.optional(),
7035
- links: zLinks.optional(),
7036
- data: z.array(zTimeCardPerDiemResponseObject).optional()
7330
+ meta: zMeta,
7331
+ links: zLinks,
7332
+ data: z.array(zTimeCardPerDiemResponseObject)
7037
7333
  });
7038
7334
  export const zCreateTimeCardPerDiemBody = zTimeCardPerDiemParameters;
7039
7335
  export const zCreateTimeCardPerDiemPath = z.object({
@@ -7073,9 +7369,9 @@ export const zListPriorPeriodAdjustmentsQuery = z.object({
7073
7369
  * Success
7074
7370
  */
7075
7371
  export const zListPriorPeriodAdjustmentsResponse = z.object({
7076
- meta: zMeta.optional(),
7077
- links: zLinks.optional(),
7078
- data: z.array(zPriorPeriodAdjustmentResponseObject).optional()
7372
+ meta: zMeta,
7373
+ links: zLinks,
7374
+ data: z.array(zPriorPeriodAdjustmentResponseObject)
7079
7375
  });
7080
7376
  export const zGetPriorPeriodAdjustmentPath = z.object({
7081
7377
  time_card_id: z.string(),
@@ -7156,7 +7452,7 @@ export const zListTimeEntriesQuery = z.object({
7156
7452
  * Success
7157
7453
  */
7158
7454
  export const zListTimeEntriesResponse = zTimeEntryIndexObject;
7159
- export const zCreateTimeEntryBody = zTimeEntryParameters;
7455
+ export const zCreateTimeEntryBody = zTimeEntryCreateParameters;
7160
7456
  /**
7161
7457
  * Created
7162
7458
  */
@@ -7168,7 +7464,7 @@ export const zDeleteTimeEntryPath = z.object({
7168
7464
  * Success
7169
7465
  */
7170
7466
  export const zDeleteTimeEntryResponse = zTimeEntryResponseObject;
7171
- export const zUpdateTimeEntryBody = zTimeEntryParameters;
7467
+ export const zUpdateTimeEntryBody = zTimeEntryUpdateParameters;
7172
7468
  export const zUpdateTimeEntryPath = z.object({
7173
7469
  id: z.string()
7174
7470
  });
@@ -7198,9 +7494,9 @@ export const zListTimecodeHistoryQuery = z.object({
7198
7494
  * Success
7199
7495
  */
7200
7496
  export const zListTimecodeHistoryResponse = z.object({
7201
- meta: zMeta.optional(),
7202
- links: zLinks.optional(),
7203
- data: z.array(zTimecodeHistoryVersionObject).optional()
7497
+ meta: zMeta,
7498
+ links: zLinks,
7499
+ data: z.array(zTimecodeHistoryVersionObject)
7204
7500
  });
7205
7501
  export const zCancelTimecodeScheduledChangesHeaders = z.object({
7206
7502
  'If-Match': z.string()
@@ -7271,9 +7567,9 @@ export const zListTimecodesQuery = z.object({
7271
7567
  * Success
7272
7568
  */
7273
7569
  export const zListTimecodesResponse = z.object({
7274
- meta: zMeta.optional(),
7275
- links: zLinks.optional(),
7276
- data: z.array(zTimecodeResponseObject).optional()
7570
+ meta: zMeta,
7571
+ links: zLinks,
7572
+ data: z.array(zTimecodeResponseObject)
7277
7573
  });
7278
7574
  export const zCreateTimecodeBody = zTimecodeParameters;
7279
7575
  /**
@@ -7344,9 +7640,9 @@ export const zListAttestationConfigsPath = z.object({
7344
7640
  * Success
7345
7641
  */
7346
7642
  export const zListAttestationConfigsResponse = z.object({
7347
- meta: zMeta.optional(),
7348
- links: zLinks.optional(),
7349
- data: z.array(zAttestationConfigResponseObject).optional()
7643
+ meta: zMeta,
7644
+ links: zLinks,
7645
+ data: z.array(zAttestationConfigResponseObject)
7350
7646
  });
7351
7647
  export const zCreateAttestationConfigBody = zAttestationConfigParameters;
7352
7648
  export const zCreateAttestationConfigPath = z.object({
@@ -7382,9 +7678,9 @@ export const zListPayPeriodConfigHistoryQuery = z.object({
7382
7678
  * Success
7383
7679
  */
7384
7680
  export const zListPayPeriodConfigHistoryResponse = z.object({
7385
- meta: zMeta.optional(),
7386
- links: zLinks.optional(),
7387
- data: z.array(zPayPeriodConfigHistoryVersionObject).optional()
7681
+ meta: zMeta,
7682
+ links: zLinks,
7683
+ data: z.array(zPayPeriodConfigHistoryVersionObject)
7388
7684
  });
7389
7685
  export const zListHolidaysPath = z.object({
7390
7686
  pay_period_config_id: z.string()
@@ -7406,9 +7702,9 @@ export const zListHolidaysQuery = z.object({
7406
7702
  * Success
7407
7703
  */
7408
7704
  export const zListHolidaysResponse = z.object({
7409
- meta: zMeta.optional(),
7410
- links: zLinks.optional(),
7411
- data: z.array(zHolidayResponseObject).optional()
7705
+ meta: zMeta,
7706
+ links: zLinks,
7707
+ data: z.array(zHolidayResponseObject)
7412
7708
  });
7413
7709
  export const zCreateHolidayBody = zHolidayParameters;
7414
7710
  export const zCreateHolidayPath = z.object({
@@ -7449,9 +7745,9 @@ export const zListPayPeriodConfigsQuery = z.object({
7449
7745
  * Success
7450
7746
  */
7451
7747
  export const zListPayPeriodConfigsResponse = z.object({
7452
- meta: zMeta.optional(),
7453
- links: zLinks.optional(),
7454
- data: z.array(zPayPeriodConfigResponseObject).optional()
7748
+ meta: zMeta,
7749
+ links: zLinks,
7750
+ data: z.array(zPayPeriodConfigResponseObject)
7455
7751
  });
7456
7752
  export const zGetPayPeriodConfigPath = z.object({
7457
7753
  id: z.string()
@@ -7479,9 +7775,9 @@ export const zListTimeCardActualsQuery = z.object({
7479
7775
  * Success
7480
7776
  */
7481
7777
  export const zListTimeCardActualsResponse = z.object({
7482
- meta: zMeta.optional(),
7483
- links: zLinks.optional(),
7484
- data: z.array(zTimeCardActualsResponseObject).optional()
7778
+ meta: zMeta,
7779
+ links: zLinks,
7780
+ data: z.array(zTimeCardActualsResponseObject)
7485
7781
  });
7486
7782
  export const zGetTimeCardActualPath = z.object({
7487
7783
  id: z.string()
@@ -7503,9 +7799,9 @@ export const zListUserRolesQuery = z.object({
7503
7799
  * Success
7504
7800
  */
7505
7801
  export const zListUserRolesResponse = z.object({
7506
- meta: zMeta.optional(),
7507
- links: zLinks.optional(),
7508
- data: z.array(zUserRoleResponse).optional()
7802
+ meta: zMeta,
7803
+ links: zLinks,
7804
+ data: z.array(zUserRoleResponse)
7509
7805
  });
7510
7806
  export const zAddUserRolesBody = zUserRoleRequest;
7511
7807
  /**
@@ -7621,9 +7917,9 @@ export const zListUsersQuery = z.object({
7621
7917
  * Success
7622
7918
  */
7623
7919
  export const zListUsersResponse = z.object({
7624
- meta: zMeta.optional(),
7625
- links: zLinks.optional(),
7626
- data: z.array(zUserResponseObject).optional()
7920
+ meta: zMeta,
7921
+ links: zLinks,
7922
+ data: z.array(zUserResponseObject)
7627
7923
  });
7628
7924
  /**
7629
7925
  * Create a user
@@ -7694,7 +7990,7 @@ export const zListWorkTypesQuery = z.object({
7694
7990
  * Success
7695
7991
  */
7696
7992
  export const zListWorkTypesResponse = z.object({
7697
- meta: zMeta.optional(),
7698
- links: zLinks.optional(),
7699
- data: z.array(zWorkTypeResponseObject).optional()
7993
+ meta: zMeta,
7994
+ links: zLinks,
7995
+ data: z.array(zWorkTypeResponseObject)
7700
7996
  });