@dsptch-work/api-client 0.11.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.
- package/CHANGELOG.md +54 -0
- package/dist/gen/index.d.ts +2 -2
- package/dist/gen/index.js +1 -1
- package/dist/gen/sdk.gen.d.ts +198 -1
- package/dist/gen/sdk.gen.js +333 -0
- package/dist/gen/types.gen.d.ts +912 -27
- package/dist/gen/zod.gen.d.ts +1154 -176
- package/dist/gen/zod.gen.js +309 -6
- package/package.json +1 -1
package/dist/gen/zod.gen.js
CHANGED
|
@@ -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
|
-
* **
|
|
247
|
+
* **Attachment Upload Not Found**
|
|
242
248
|
*
|
|
243
|
-
* An attachment signed id
|
|
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(),
|
|
@@ -1001,8 +1016,7 @@ export const zTimeCardPerDiemResponseObject = z.object({
|
|
|
1001
1016
|
export const zTimeCardPerDiemParameters = z.object({
|
|
1002
1017
|
date: z.iso.date(),
|
|
1003
1018
|
approver_user_id: z.string(),
|
|
1004
|
-
per_diem_id: z.string()
|
|
1005
|
-
taxable: z.boolean().optional()
|
|
1019
|
+
per_diem_id: z.string()
|
|
1006
1020
|
});
|
|
1007
1021
|
/**
|
|
1008
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.
|
|
@@ -3708,6 +3722,7 @@ export const zFederalJobWageDeterminationResponseObject = z.object({
|
|
|
3708
3722
|
id: z.string(),
|
|
3709
3723
|
job_id: z.string(),
|
|
3710
3724
|
pwa_trade_id: z.string(),
|
|
3725
|
+
overtime_package_id: z.string().nullable(),
|
|
3711
3726
|
type: z.enum(['Pwa::JobWageDeterminations::Federal']),
|
|
3712
3727
|
labor_classification: z.string(),
|
|
3713
3728
|
hourly_rate_cents: z.string(),
|
|
@@ -3729,6 +3744,7 @@ export const zFederalJobWageDeterminationHistoryCorrectionObject = z.object({
|
|
|
3729
3744
|
job_wage_determination_id: z.string(),
|
|
3730
3745
|
job_id: z.string(),
|
|
3731
3746
|
pwa_trade_id: z.string(),
|
|
3747
|
+
overtime_package_id: z.string().nullable(),
|
|
3732
3748
|
type: z.enum(['Pwa::JobWageDeterminations::Federal']),
|
|
3733
3749
|
labor_classification: z.string(),
|
|
3734
3750
|
hourly_rate_cents: z.string(),
|
|
@@ -3799,6 +3815,7 @@ export const zRegionalJobWageDeterminationResponseObject = z.object({
|
|
|
3799
3815
|
id: z.string(),
|
|
3800
3816
|
job_id: z.string(),
|
|
3801
3817
|
pwa_trade_id: z.string(),
|
|
3818
|
+
overtime_package_id: z.string().nullable(),
|
|
3802
3819
|
type: z.enum(['Pwa::JobWageDeterminations::Regional']),
|
|
3803
3820
|
labor_classification: z.string(),
|
|
3804
3821
|
hourly_rate_cents: z.string(),
|
|
@@ -3821,6 +3838,7 @@ export const zRegionalJobWageDeterminationHistoryCorrectionObject = z.object({
|
|
|
3821
3838
|
job_wage_determination_id: z.string(),
|
|
3822
3839
|
job_id: z.string(),
|
|
3823
3840
|
pwa_trade_id: z.string(),
|
|
3841
|
+
overtime_package_id: z.string().nullable(),
|
|
3824
3842
|
type: z.enum(['Pwa::JobWageDeterminations::Regional']),
|
|
3825
3843
|
labor_classification: z.string(),
|
|
3826
3844
|
hourly_rate_cents: z.string(),
|
|
@@ -3840,6 +3858,7 @@ export const zFederalJobWageDeterminationHistoryVersionObject = z.object({
|
|
|
3840
3858
|
job_wage_determination_id: z.string(),
|
|
3841
3859
|
job_id: z.string(),
|
|
3842
3860
|
pwa_trade_id: z.string(),
|
|
3861
|
+
overtime_package_id: z.string().nullable(),
|
|
3843
3862
|
type: z.enum(['Pwa::JobWageDeterminations::Federal']),
|
|
3844
3863
|
labor_classification: z.string(),
|
|
3845
3864
|
hourly_rate_cents: z.string(),
|
|
@@ -3867,6 +3886,7 @@ export const zRegionalJobWageDeterminationHistoryVersionObject = z.object({
|
|
|
3867
3886
|
job_wage_determination_id: z.string(),
|
|
3868
3887
|
job_id: z.string(),
|
|
3869
3888
|
pwa_trade_id: z.string(),
|
|
3889
|
+
overtime_package_id: z.string().nullable(),
|
|
3870
3890
|
type: z.enum(['Pwa::JobWageDeterminations::Regional']),
|
|
3871
3891
|
labor_classification: z.string(),
|
|
3872
3892
|
hourly_rate_cents: z.string(),
|
|
@@ -3919,12 +3939,62 @@ export const zRegionalJobWageDeterminationParameters = z.object({
|
|
|
3919
3939
|
regional_fields: zRegionalWageDeterminationFields.optional()
|
|
3920
3940
|
});
|
|
3921
3941
|
/**
|
|
3922
|
-
* Parameters for creating a job wage determination. Provide the Federal or Regional shape; the type discriminator selects which.
|
|
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.
|
|
3923
3943
|
*/
|
|
3924
3944
|
export const zJobWageDeterminationParameters = z.discriminatedUnion('type', [
|
|
3925
3945
|
zFederalJobWageDeterminationParameters.extend({ type: z.literal('Pwa::JobWageDeterminations::Federal') }),
|
|
3926
3946
|
zRegionalJobWageDeterminationParameters.extend({ type: z.literal('Pwa::JobWageDeterminations::Regional') })
|
|
3927
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
|
+
});
|
|
3928
3998
|
/**
|
|
3929
3999
|
* The adjustment applied when a rule matches — an addition to the wage or fringe rate.
|
|
3930
4000
|
*/
|
|
@@ -4303,6 +4373,7 @@ export const zAssetsItemParameters = z.object({
|
|
|
4303
4373
|
assets_site_id: z.string().optional(),
|
|
4304
4374
|
user_id: z.string().optional(),
|
|
4305
4375
|
container_item_id: z.string().optional(),
|
|
4376
|
+
assets_sub_location_id: z.string().optional(),
|
|
4306
4377
|
performed_by_user_id: z.string()
|
|
4307
4378
|
});
|
|
4308
4379
|
/**
|
|
@@ -4441,12 +4512,13 @@ export const zAssetsItemFormAssignmentParameters = z.object({
|
|
|
4441
4512
|
})
|
|
4442
4513
|
});
|
|
4443
4514
|
/**
|
|
4444
|
-
* On-hand stock of an item at a site — one row per item and
|
|
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.
|
|
4445
4516
|
*/
|
|
4446
4517
|
export const zAssetsInventoryResponseObject = z.object({
|
|
4447
4518
|
id: z.string(),
|
|
4448
4519
|
assets_item_id: z.string(),
|
|
4449
4520
|
assets_site_id: z.string(),
|
|
4521
|
+
assets_sub_location_id: z.string().nullable(),
|
|
4450
4522
|
company_id: z.string(),
|
|
4451
4523
|
quantity_on_hand: z.int(),
|
|
4452
4524
|
created_at: z.iso.datetime(),
|
|
@@ -4478,6 +4550,7 @@ export const zAssetsTransactionEventResponseObject = z.object({
|
|
|
4478
4550
|
assets_site_id: z.string().nullable(),
|
|
4479
4551
|
assignee_id: z.string().nullable(),
|
|
4480
4552
|
container_item_id: z.string().nullable(),
|
|
4553
|
+
assets_sub_location_id: z.string().nullable(),
|
|
4481
4554
|
assets_transfer_id: z.string().nullable(),
|
|
4482
4555
|
performed_by_user_id: z.string(),
|
|
4483
4556
|
direction: z.enum(['inbound', 'outbound']),
|
|
@@ -4628,6 +4701,65 @@ export const zAssetsServiceScheduleTemplateParameters = z.object({
|
|
|
4628
4701
|
interval_count: z.int().gte(1),
|
|
4629
4702
|
performed_by_user_id: z.string()
|
|
4630
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
|
+
});
|
|
4631
4763
|
/**
|
|
4632
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.
|
|
4633
4765
|
*/
|
|
@@ -4646,6 +4778,8 @@ export const zAssetsTransferResponseObject = z.object({
|
|
|
4646
4778
|
to_assets_site_id: z.string().nullable(),
|
|
4647
4779
|
to_user_id: z.string().nullable(),
|
|
4648
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(),
|
|
4649
4783
|
initiated_by_user_id: z.string(),
|
|
4650
4784
|
completed_at: z.iso.datetime().nullable(),
|
|
4651
4785
|
transfer_lines: z.array(z.object({
|
|
@@ -4666,6 +4800,8 @@ export const zAssetsTransferParameters = z.object({
|
|
|
4666
4800
|
to_assets_site_id: z.string().optional(),
|
|
4667
4801
|
to_user_id: z.string().optional(),
|
|
4668
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(),
|
|
4669
4805
|
performed_by_user_id: z.string(),
|
|
4670
4806
|
line_items: z.array(z.object({
|
|
4671
4807
|
assets_item_id: z.string(),
|
|
@@ -4677,6 +4813,7 @@ export const zAssetsTransferParameters = z.object({
|
|
|
4677
4813
|
*/
|
|
4678
4814
|
export const zAssetsRestockParameters = z.object({
|
|
4679
4815
|
assets_site_id: z.string(),
|
|
4816
|
+
assets_sub_location_id: z.string().optional(),
|
|
4680
4817
|
quantity: z.int().gte(1),
|
|
4681
4818
|
performed_by_user_id: z.string()
|
|
4682
4819
|
});
|
|
@@ -4685,9 +4822,16 @@ export const zAssetsRestockParameters = z.object({
|
|
|
4685
4822
|
*/
|
|
4686
4823
|
export const zAssetsAdjustmentParameters = z.object({
|
|
4687
4824
|
assets_site_id: z.string(),
|
|
4825
|
+
assets_sub_location_id: z.string().optional(),
|
|
4688
4826
|
new_quantity: z.int().gte(0),
|
|
4689
4827
|
performed_by_user_id: z.string()
|
|
4690
4828
|
});
|
|
4829
|
+
/**
|
|
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.
|
|
4831
|
+
*/
|
|
4832
|
+
export const zAssetsArchiveParameters = z.object({
|
|
4833
|
+
performed_by_user_id: z.string()
|
|
4834
|
+
});
|
|
4691
4835
|
/**
|
|
4692
4836
|
* Success
|
|
4693
4837
|
*/
|
|
@@ -5169,6 +5313,22 @@ export const zUpdateItemPath = z.object({
|
|
|
5169
5313
|
* Removes an image
|
|
5170
5314
|
*/
|
|
5171
5315
|
export const zUpdateItemResponse = zAssetsItemResponseObject;
|
|
5316
|
+
export const zUnarchiveItemBody = zAssetsArchiveParameters;
|
|
5317
|
+
export const zUnarchiveItemPath = z.object({
|
|
5318
|
+
item_id: z.string()
|
|
5319
|
+
});
|
|
5320
|
+
/**
|
|
5321
|
+
* Success
|
|
5322
|
+
*/
|
|
5323
|
+
export const zUnarchiveItemResponse = zAssetsItemResponseObject;
|
|
5324
|
+
export const zArchiveItemBody = zAssetsArchiveParameters;
|
|
5325
|
+
export const zArchiveItemPath = z.object({
|
|
5326
|
+
item_id: z.string()
|
|
5327
|
+
});
|
|
5328
|
+
/**
|
|
5329
|
+
* Created
|
|
5330
|
+
*/
|
|
5331
|
+
export const zArchiveItemResponse = zAssetsItemResponseObject;
|
|
5172
5332
|
export const zListServiceSchedulesPath = z.object({
|
|
5173
5333
|
item_id: z.string()
|
|
5174
5334
|
});
|
|
@@ -5433,6 +5593,22 @@ export const zUpdateProductPath = z.object({
|
|
|
5433
5593
|
* Success (upsert attribute values)
|
|
5434
5594
|
*/
|
|
5435
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;
|
|
5436
5612
|
export const zAdjustProductInventoryBody = zAssetsAdjustmentParameters;
|
|
5437
5613
|
export const zAdjustProductInventoryPath = z.object({
|
|
5438
5614
|
product_id: z.string()
|
|
@@ -5577,6 +5753,55 @@ export const zUpdateSitePath = z.object({
|
|
|
5577
5753
|
* Success
|
|
5578
5754
|
*/
|
|
5579
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;
|
|
5580
5805
|
export const zListTransfersQuery = z.object({
|
|
5581
5806
|
'filter[status]': z.string().optional(),
|
|
5582
5807
|
filter: z.string().optional(),
|
|
@@ -6250,6 +6475,18 @@ export const zGetRateRuleQuery = z.object({
|
|
|
6250
6475
|
* Success
|
|
6251
6476
|
*/
|
|
6252
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;
|
|
6253
6490
|
export const zListJobWageDeterminationHistoryPath = z.object({
|
|
6254
6491
|
job_id: z.string(),
|
|
6255
6492
|
wage_determination_id: z.string()
|
|
@@ -6265,6 +6502,60 @@ export const zListJobWageDeterminationHistoryResponse = z.object({
|
|
|
6265
6502
|
links: zLinks,
|
|
6266
6503
|
data: z.array(zJobWageDeterminationHistoryVersionObject)
|
|
6267
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()
|
|
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;
|
|
6268
6559
|
export const zListJobWageDeterminationsPath = z.object({
|
|
6269
6560
|
job_id: z.string()
|
|
6270
6561
|
});
|
|
@@ -6313,6 +6604,18 @@ export const zGetJobWageDeterminationQuery = z.object({
|
|
|
6313
6604
|
* Success
|
|
6314
6605
|
*/
|
|
6315
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;
|
|
6316
6619
|
export const zListJobsQuery = z.object({
|
|
6317
6620
|
'filter[updated_at][gte]': z.iso.datetime().optional(),
|
|
6318
6621
|
'filter[updated_at][lte]': z.iso.datetime().optional(),
|