@dsptch-work/api-client 0.2.0 → 0.3.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.
@@ -438,8 +438,8 @@ export const zPerDiemResponseObject = z.object({
438
438
  rate_cents: z.string().nullable(),
439
439
  currency: z.string(),
440
440
  taxable: z.boolean(),
441
- is_default: z.boolean().nullable(),
442
- is_active: z.boolean().nullable(),
441
+ default: z.boolean().nullable(),
442
+ active: z.boolean().nullable(),
443
443
  work_type_ids: z.array(z.string()),
444
444
  timecode_ids: z.array(z.string()),
445
445
  created_at: z.iso.datetime(),
@@ -454,8 +454,8 @@ export const zPerDiemParameters = z.object({
454
454
  rate_cents: z.string().nullable(),
455
455
  currency: z.string(),
456
456
  taxable: z.boolean().optional(),
457
- is_default: z.boolean().nullish(),
458
- is_active: z.boolean().nullish(),
457
+ default: z.boolean().nullish(),
458
+ active: z.boolean().nullish(),
459
459
  work_type_ids: z.array(z.string()).optional(),
460
460
  timecode_ids: z.array(z.string()).optional()
461
461
  });
@@ -463,9 +463,9 @@ export const zPerDiemParameters = z.object({
463
463
  * The product's filled attribute values — one entry per attribute assigned to its category.
464
464
  */
465
465
  export const zAssetsAttributeValueObjects = z.array(z.object({
466
- attribute_id: z.string(),
466
+ assets_attribute_id: z.string(),
467
467
  value: z.string().nullable(),
468
- attribute_option_id: z.string().nullable()
468
+ assets_attribute_option_id: z.string().nullable()
469
469
  }));
470
470
  /**
471
471
  * A reusable custom-field definition (for example "Color" or "Voltage") that categories assign and products or items fill in.
@@ -519,7 +519,7 @@ export const zAssetsCategoryResponseObject = z.object({
519
519
  full_name: z.string(),
520
520
  attributes: z.array(z.object({
521
521
  id: z.string(),
522
- attribute_id: z.string(),
522
+ assets_attribute_id: z.string(),
523
523
  fillable_on: z.enum(['product', 'item']),
524
524
  required: z.boolean(),
525
525
  position: z.int()
@@ -535,7 +535,7 @@ export const zAssetsCategoryParameters = z.object({
535
535
  parent_id: z.string().nullish(),
536
536
  category_attributes: z.array(z.object({
537
537
  id: z.string().optional(),
538
- attribute_id: z.string(),
538
+ assets_attribute_id: z.string(),
539
539
  fillable_on: z.enum(['product', 'item']),
540
540
  required: z.boolean().optional(),
541
541
  position: z.int().optional(),
@@ -660,8 +660,8 @@ export const zPayPeriodConfigResponseObject = z.object({
660
660
  ]),
661
661
  actuals_enabled: z.boolean().nullable(),
662
662
  requires_external_map_contributor: z.boolean(),
663
- is_paid_after_holiday: z.boolean(),
664
- is_demo: z.boolean().nullable(),
663
+ paid_after_holiday: z.boolean(),
664
+ demo: z.boolean().nullable(),
665
665
  valid_from: z.iso.datetime(),
666
666
  valid_to: z.iso.datetime().nullable(),
667
667
  created_at: z.iso.datetime()
@@ -697,8 +697,8 @@ export const zPayPeriodConfigHistoryVersionObject = z.object({
697
697
  ]),
698
698
  actuals_enabled: z.boolean().nullable(),
699
699
  requires_external_map_contributor: z.boolean(),
700
- is_paid_after_holiday: z.boolean(),
701
- is_demo: z.boolean().nullable(),
700
+ paid_after_holiday: z.boolean(),
701
+ demo: z.boolean().nullable(),
702
702
  valid_from: z.iso.datetime(),
703
703
  valid_to: z.iso.datetime().nullable(),
704
704
  created_at: z.iso.datetime(),
@@ -1122,7 +1122,7 @@ export const zUserCompanyScheduledChangesParameters = z.object({
1122
1122
  export const zWorkTypeResponseObject = z.object({
1123
1123
  id: z.string(),
1124
1124
  value: z.string(),
1125
- is_verified: z.boolean(),
1125
+ verified: z.boolean(),
1126
1126
  scoped_to_company_id: z.string().nullable(),
1127
1127
  specific_to_site_type: z.string().nullable(),
1128
1128
  created_at: z.iso.datetime(),
@@ -1164,7 +1164,7 @@ export const zCompanyResponseObject = z.object({
1164
1164
  'partnership',
1165
1165
  'sole_proprietorship',
1166
1166
  's_corporation'
1167
- ]),
1167
+ ]).nullable(),
1168
1168
  employee_count_range: z.enum([
1169
1169
  'one_to_ten',
1170
1170
  'eleven_to_fifty',
@@ -1174,7 +1174,7 @@ export const zCompanyResponseObject = z.object({
1174
1174
  'one_thousand_one_to_five_thousand',
1175
1175
  'five_thousand_one_to_ten_thousand',
1176
1176
  'ten_thousand_one_plus'
1177
- ]),
1177
+ ]).nullable(),
1178
1178
  revenue_range: z.enum([
1179
1179
  'zero_to_one_million',
1180
1180
  'one_to_ten_million',
@@ -1186,12 +1186,127 @@ export const zCompanyResponseObject = z.object({
1186
1186
  'five_hundred_to_one_billion',
1187
1187
  'one_billion_to_ten_billion',
1188
1188
  'ten_billion_plus'
1189
- ]),
1189
+ ]).nullable(),
1190
1190
  naics_code: z.string().nullable(),
1191
1191
  linkedin_url: z.string().nullable(),
1192
1192
  created_at: z.iso.datetime(),
1193
1193
  updated_at: z.iso.datetime()
1194
1194
  });
1195
+ export const zCompanyParameters = z.intersection(z.union([
1196
+ z.object({
1197
+ name: z.string()
1198
+ }),
1199
+ z.object({
1200
+ legal_name: z.string().nullable()
1201
+ }),
1202
+ z.object({
1203
+ description: z.string().nullable()
1204
+ }),
1205
+ z.object({
1206
+ address: z.string().nullable()
1207
+ }),
1208
+ z.object({
1209
+ website: z.string().nullable()
1210
+ }),
1211
+ z.object({
1212
+ phone_number: z.string().nullable()
1213
+ }),
1214
+ z.object({
1215
+ email: z.string().nullable()
1216
+ }),
1217
+ z.object({
1218
+ color_hex: z.string()
1219
+ }),
1220
+ z.object({
1221
+ tagline: z.string().nullable()
1222
+ }),
1223
+ z.object({
1224
+ founding_year: z.int().nullable()
1225
+ }),
1226
+ z.object({
1227
+ corporate_structure: z.enum([
1228
+ 'corporation',
1229
+ 'llc',
1230
+ 'partnership',
1231
+ 'sole_proprietorship',
1232
+ 's_corporation'
1233
+ ]).nullable()
1234
+ }),
1235
+ z.object({
1236
+ employee_count_range: z.enum([
1237
+ 'one_to_ten',
1238
+ 'eleven_to_fifty',
1239
+ 'fifty_one_to_two_hundred',
1240
+ 'two_hundred_one_to_five_hundred',
1241
+ 'five_hundred_one_to_one_thousand',
1242
+ 'one_thousand_one_to_five_thousand',
1243
+ 'five_thousand_one_to_ten_thousand',
1244
+ 'ten_thousand_one_plus'
1245
+ ]).nullable()
1246
+ }),
1247
+ z.object({
1248
+ revenue_range: z.enum([
1249
+ 'zero_to_one_million',
1250
+ 'one_to_ten_million',
1251
+ 'ten_to_twenty_five_million',
1252
+ 'twenty_five_to_fifty_million',
1253
+ 'fifty_to_one_hundred_million',
1254
+ 'one_hundred_to_two_fifty_million',
1255
+ 'two_fifty_to_five_hundred_million',
1256
+ 'five_hundred_to_one_billion',
1257
+ 'one_billion_to_ten_billion',
1258
+ 'ten_billion_plus'
1259
+ ]).nullable()
1260
+ }),
1261
+ z.object({
1262
+ naics_code: z.string().nullable()
1263
+ }),
1264
+ z.object({
1265
+ linkedin_url: z.string().nullable()
1266
+ })
1267
+ ]), z.object({
1268
+ name: z.string().optional(),
1269
+ legal_name: z.string().nullish(),
1270
+ description: z.string().nullish(),
1271
+ address: z.string().nullish(),
1272
+ website: z.string().nullish(),
1273
+ phone_number: z.string().nullish(),
1274
+ email: z.string().nullish(),
1275
+ color_hex: z.string().optional(),
1276
+ tagline: z.string().nullish(),
1277
+ founding_year: z.int().nullish(),
1278
+ corporate_structure: z.enum([
1279
+ 'corporation',
1280
+ 'llc',
1281
+ 'partnership',
1282
+ 'sole_proprietorship',
1283
+ 's_corporation'
1284
+ ]).nullish(),
1285
+ employee_count_range: z.enum([
1286
+ 'one_to_ten',
1287
+ 'eleven_to_fifty',
1288
+ 'fifty_one_to_two_hundred',
1289
+ 'two_hundred_one_to_five_hundred',
1290
+ 'five_hundred_one_to_one_thousand',
1291
+ 'one_thousand_one_to_five_thousand',
1292
+ 'five_thousand_one_to_ten_thousand',
1293
+ 'ten_thousand_one_plus'
1294
+ ]).nullish(),
1295
+ revenue_range: z.enum([
1296
+ 'zero_to_one_million',
1297
+ 'one_to_ten_million',
1298
+ 'ten_to_twenty_five_million',
1299
+ 'twenty_five_to_fifty_million',
1300
+ 'fifty_to_one_hundred_million',
1301
+ 'one_hundred_to_two_fifty_million',
1302
+ 'two_fifty_to_five_hundred_million',
1303
+ 'five_hundred_to_one_billion',
1304
+ 'one_billion_to_ten_billion',
1305
+ 'ten_billion_plus'
1306
+ ]).nullish(),
1307
+ naics_code: z.string().nullish(),
1308
+ linkedin_url: z.string().nullish()
1309
+ }));
1195
1310
  /**
1196
1311
  * A custom field definition — a company-defined attribute attached to one kind of record (jobs, workers, apprentices, or the company itself). Deleting one is blocked while any record still holds a value for it.
1197
1312
  */
@@ -1200,7 +1315,7 @@ export const zCustomFieldConfigsResponseObject = z.object({
1200
1315
  name: z.string(),
1201
1316
  description: z.string().nullable(),
1202
1317
  model_type: z.string(),
1203
- is_visible: z.boolean(),
1318
+ visible: z.boolean(),
1204
1319
  company_id: z.string(),
1205
1320
  created_at: z.iso.datetime(),
1206
1321
  updated_at: z.iso.datetime()
@@ -1217,7 +1332,7 @@ export const zCustomFieldConfigParameters = z.object({
1217
1332
  'job',
1218
1333
  'user_company'
1219
1334
  ]),
1220
- is_visible: z.boolean().optional()
1335
+ visible: z.boolean().optional()
1221
1336
  });
1222
1337
  /**
1223
1338
  * A user's membership in a group.
@@ -1281,7 +1396,7 @@ export const zJobParameters = z.object({
1281
1396
  requires_feature_allocation: z.boolean().nullish(),
1282
1397
  max_one_feature_allocation: z.boolean().nullish(),
1283
1398
  job_work_types_attributes: z.array(z.object({
1284
- is_primary: z.boolean().optional(),
1399
+ primary: z.boolean().optional(),
1285
1400
  work_type_id: z.string().optional()
1286
1401
  })).nullish(),
1287
1402
  job_address_attributes: z.object({
@@ -1818,6 +1933,30 @@ export const zProjectParameters = z.object({
1818
1933
  beginning_of_construction_date: z.iso.date().nullish(),
1819
1934
  placed_in_service_date: z.iso.date().nullish()
1820
1935
  });
1936
+ export const zSiteCheckInResponseObject = z.object({
1937
+ id: z.string(),
1938
+ site_id: z.string(),
1939
+ user_id: z.string().nullable(),
1940
+ first_name: z.string().nullable(),
1941
+ last_name: z.string().nullable(),
1942
+ site_contact_id: z.string().nullable(),
1943
+ site_contact_first_name: z.string().nullable(),
1944
+ site_contact_last_name: z.string().nullable(),
1945
+ employer_name: z.string().nullable(),
1946
+ description: z.string().nullable(),
1947
+ rationale: z.string().nullable(),
1948
+ source: z.enum(['manual', 'auto']),
1949
+ nerc_check_in: z.boolean(),
1950
+ cip_exceptional: z.boolean(),
1951
+ created_by_user_id: z.string().nullable(),
1952
+ latitude: z.number().nullable(),
1953
+ longitude: z.number().nullable(),
1954
+ start_time: z.iso.datetime(),
1955
+ end_time: z.iso.datetime().nullable(),
1956
+ verified_at: z.iso.datetime().nullable(),
1957
+ created_at: z.iso.datetime(),
1958
+ updated_at: z.iso.datetime()
1959
+ });
1821
1960
  /**
1822
1961
  * A geographic location where work is performed — a site on the Atlas map. Read-only through the API; sites are drawn on the map or imported from external sources, not created here.
1823
1962
  */
@@ -1962,7 +2101,7 @@ export const zFeatureResponseObject = z.object({
1962
2101
  ext_source: z.string(),
1963
2102
  scoped_to_company_id: z.string().nullable(),
1964
2103
  created_by_company_id: z.string().nullable(),
1965
- is_scoped_to_user: z.boolean(),
2104
+ scoped_to_user: z.boolean(),
1966
2105
  address_id: z.string().nullable(),
1967
2106
  created_by_user_id: z.string().nullable(),
1968
2107
  updated_by_user_id: z.string().nullable(),
@@ -2204,7 +2343,7 @@ export const zPositionParameters = z.object({
2204
2343
  position_function_id: z.string().nullish(),
2205
2344
  per_diem_id: z.string().nullish(),
2206
2345
  per_diem_rate_cents: z.number().nullish(),
2207
- is_pwa: z.boolean().optional(),
2346
+ pwa: z.boolean().optional(),
2208
2347
  cash_fringe_rate_cents: z.number().nullish(),
2209
2348
  hourly_rate_cents: z.number().nullish(),
2210
2349
  pwa_wage_pay_rate_cents: z.number().nullish(),
@@ -2395,12 +2534,12 @@ export const zCertificationResponseObject = z.object({
2395
2534
  export const zUserCertificationParameters = z.object({
2396
2535
  user_id: z.string(),
2397
2536
  certification_id: z.string(),
2398
- date_received: z.iso.datetime(),
2537
+ received_at: z.iso.datetime(),
2399
2538
  file: z.object({
2400
2539
  name: z.string().optional(),
2401
2540
  content: z.string().optional()
2402
2541
  }).nullish(),
2403
- is_verified: z.boolean().nullish(),
2542
+ verified: z.boolean().nullish(),
2404
2543
  expiration_date: z.iso.date().nullish(),
2405
2544
  credential_id: z.string().nullish(),
2406
2545
  approved_by_user_id: z.string().nullish(),
@@ -2414,8 +2553,8 @@ export const zUserCertificationResponseObject = z.object({
2414
2553
  id: z.string(),
2415
2554
  user_id: z.string(),
2416
2555
  certification_id: z.string(),
2417
- date_received: z.iso.datetime(),
2418
- is_verified: z.boolean(),
2556
+ received_at: z.iso.datetime(),
2557
+ verified: z.boolean(),
2419
2558
  issuer_company_id: z.string().nullable(),
2420
2559
  expiration_date: z.iso.date().nullable(),
2421
2560
  credential_id: z.string().nullable(),
@@ -2535,7 +2674,7 @@ export const zPositionResponseObject = z.object({
2535
2674
  pwa_wage_pay_rate_cents: z.string().nullable(),
2536
2675
  pwa_wage_pay_rate_src_type: z.string().nullable(),
2537
2676
  wage_adder_rate_cents: z.string().nullable(),
2538
- is_pwa: z.boolean(),
2677
+ pwa: z.boolean(),
2539
2678
  federal_wage_determination_uids: z.array(z.string()),
2540
2679
  regional_wage_determination_uids: z.array(z.string()),
2541
2680
  pwa_details: z.object({
@@ -3475,7 +3614,7 @@ export const zAssetsProductResponseObject = z.object({
3475
3614
  'pack'
3476
3615
  ]),
3477
3616
  serialized: z.boolean(),
3478
- category_id: z.string().nullable(),
3617
+ assets_category_id: z.string().nullable(),
3479
3618
  attributes: zAssetsAttributeValueObjects,
3480
3619
  images: z.array(zAssetsAttachmentResponseObject),
3481
3620
  created_at: z.iso.datetime(),
@@ -3495,8 +3634,6 @@ export const zAssetsItemResponseObject = z.object({
3495
3634
  status: z.enum([
3496
3635
  'available',
3497
3636
  'assigned',
3498
- 'transit',
3499
- 'maintenance',
3500
3637
  'retired'
3501
3638
  ]),
3502
3639
  purchase_date: z.iso.datetime().nullable(),
@@ -3523,7 +3660,7 @@ export const zAssetsProductParameters = z.object({
3523
3660
  type: z.enum(['serial', 'bulk']),
3524
3661
  name: z.string(),
3525
3662
  description: z.string().nullish(),
3526
- category_id: z.string().nullish(),
3663
+ assets_category_id: z.string().nullish(),
3527
3664
  upc: z.string().nullish(),
3528
3665
  internal_sku: z.string().nullish(),
3529
3666
  default_minimum_quantity: z.int().nullish(),
@@ -3535,9 +3672,9 @@ export const zAssetsProductParameters = z.object({
3535
3672
  'pack'
3536
3673
  ]).optional(),
3537
3674
  attribute_values: z.array(z.object({
3538
- attribute_id: z.string(),
3675
+ assets_attribute_id: z.string(),
3539
3676
  value: z.string().nullish(),
3540
- attribute_option_id: z.string().nullish()
3677
+ assets_attribute_option_id: z.string().nullish()
3541
3678
  })).optional(),
3542
3679
  images_attributes: z.array(zAssetsAttachmentParameters).optional(),
3543
3680
  performed_by_user_id: z.string()
@@ -3548,7 +3685,7 @@ export const zAssetsProductParameters = z.object({
3548
3685
  export const zAssetsProductUpdateParameters = z.object({
3549
3686
  name: z.string().optional(),
3550
3687
  description: z.string().nullish(),
3551
- category_id: z.string().nullish(),
3688
+ assets_category_id: z.string().nullish(),
3552
3689
  upc: z.string().nullish(),
3553
3690
  internal_sku: z.string().nullish(),
3554
3691
  default_minimum_quantity: z.int().nullish(),
@@ -3560,9 +3697,9 @@ export const zAssetsProductUpdateParameters = z.object({
3560
3697
  'pack'
3561
3698
  ]).optional(),
3562
3699
  attribute_values: z.array(z.object({
3563
- attribute_id: z.string(),
3700
+ assets_attribute_id: z.string(),
3564
3701
  value: z.string().nullish(),
3565
- attribute_option_id: z.string().nullish()
3702
+ assets_attribute_option_id: z.string().nullish()
3566
3703
  })).optional(),
3567
3704
  images_attributes: z.array(zAssetsAttachmentParameters).optional()
3568
3705
  });
@@ -3577,8 +3714,6 @@ export const zAssetsItemParameters = z.object({
3577
3714
  status: z.enum([
3578
3715
  'available',
3579
3716
  'assigned',
3580
- 'transit',
3581
- 'maintenance',
3582
3717
  'retired'
3583
3718
  ]).optional(),
3584
3719
  purchase_date: z.iso.datetime().optional(),
@@ -3595,7 +3730,7 @@ export const zAssetsItemParameters = z.object({
3595
3730
  */
3596
3731
  export const zAssetsDocumentResponseObject = z.object({
3597
3732
  id: z.string(),
3598
- item_id: z.string(),
3733
+ assets_item_id: z.string(),
3599
3734
  name: z.string(),
3600
3735
  filename: z.string().nullable(),
3601
3736
  description: z.string().nullable(),
@@ -3637,7 +3772,7 @@ export const zAssetsDocumentVersionResponseObject = z.object({
3637
3772
  */
3638
3773
  export const zAssetsItemFormAssignmentResponseObject = z.object({
3639
3774
  id: z.string(),
3640
- item_id: z.string(),
3775
+ assets_item_id: z.string(),
3641
3776
  form_definition_id: z.string(),
3642
3777
  name: z.string(),
3643
3778
  description: z.string().nullable(),
@@ -3660,11 +3795,11 @@ export const zAssetsItemFormAssignmentResponseObject = z.object({
3660
3795
  }))
3661
3796
  });
3662
3797
  /**
3663
- * Create or update an item form assignment. form_definition_id and task_attributes are required, and task_attributes.created_by_user_id is required (a missing value returns 400). is_recurring gates the recurrence fields.
3798
+ * Create or update an item form assignment. form_definition_id and task_attributes are required, and task_attributes.created_by_user_id is required (a missing value returns 400). recurring gates the recurrence fields.
3664
3799
  */
3665
3800
  export const zAssetsItemFormAssignmentParameters = z.object({
3666
3801
  form_definition_id: z.string(),
3667
- is_recurring: z.boolean().optional(),
3802
+ recurring: z.boolean().optional(),
3668
3803
  task_attributes: z.object({
3669
3804
  name: z.string().nullish(),
3670
3805
  description: z.string().nullish(),
@@ -3693,7 +3828,7 @@ export const zAssetsItemFormAssignmentParameters = z.object({
3693
3828
  */
3694
3829
  export const zAssetsInventoryResponseObject = z.object({
3695
3830
  id: z.string(),
3696
- item_id: z.string(),
3831
+ assets_item_id: z.string(),
3697
3832
  assets_site_id: z.string(),
3698
3833
  company_id: z.string(),
3699
3834
  quantity_on_hand: z.int(),
@@ -3705,7 +3840,7 @@ export const zAssetsInventoryResponseObject = z.object({
3705
3840
  */
3706
3841
  export const zAssetsCustodyResponseObject = z.object({
3707
3842
  id: z.string(),
3708
- item_id: z.string(),
3843
+ assets_item_id: z.string(),
3709
3844
  user_id: z.string(),
3710
3845
  company_id: z.string(),
3711
3846
  quantity: z.int(),
@@ -3717,7 +3852,7 @@ export const zAssetsCustodyResponseObject = z.object({
3717
3852
  */
3718
3853
  export const zAssetsTransactionEventResponseObject = z.object({
3719
3854
  id: z.string(),
3720
- item_id: z.string(),
3855
+ assets_item_id: z.string(),
3721
3856
  company_id: z.string(),
3722
3857
  event_type: z.enum(['Assets::Transaction']),
3723
3858
  performed_at: z.iso.datetime(),
@@ -3743,7 +3878,7 @@ export const zAssetsTransactionEventResponseObject = z.object({
3743
3878
  */
3744
3879
  export const zAssetsServiceEventResponseObject = z.object({
3745
3880
  id: z.string(),
3746
- item_id: z.string(),
3881
+ assets_item_id: z.string(),
3747
3882
  company_id: z.string(),
3748
3883
  event_type: z.enum(['Assets::ServiceEvent']),
3749
3884
  performed_at: z.iso.datetime(),
@@ -3773,7 +3908,7 @@ export const zAssetsItemEventResponseObject = z.discriminatedUnion('event_type',
3773
3908
  */
3774
3909
  export const zAssetsServiceScheduleResponseObject = z.object({
3775
3910
  id: z.string(),
3776
- item_id: z.string(),
3911
+ assets_item_id: z.string(),
3777
3912
  company_id: z.string(),
3778
3913
  assets_service_schedule_template_id: z.string().nullable(),
3779
3914
  kind: z.enum(['calibration', 'maintenance']),
@@ -3811,7 +3946,7 @@ export const zAssetsServiceScheduleParameters = z.object({
3811
3946
  */
3812
3947
  export const zAssetsServiceEventFullResponseObject = z.object({
3813
3948
  id: z.string(),
3814
- item_id: z.string(),
3949
+ assets_item_id: z.string(),
3815
3950
  company_id: z.string(),
3816
3951
  assets_service_schedule_id: z.string().nullable(),
3817
3952
  performed_by_user_id: z.string(),
@@ -3895,7 +4030,7 @@ export const zAssetsTransferResponseObject = z.object({
3895
4030
  completed_at: z.iso.datetime().nullable(),
3896
4031
  transfer_lines: z.array(z.object({
3897
4032
  id: z.string(),
3898
- item_id: z.string(),
4033
+ assets_item_id: z.string(),
3899
4034
  quantity: z.int()
3900
4035
  })),
3901
4036
  created_at: z.iso.datetime(),
@@ -3911,7 +4046,7 @@ export const zAssetsTransferParameters = z.object({
3911
4046
  to_user_id: z.string().optional(),
3912
4047
  performed_by_user_id: z.string(),
3913
4048
  line_items: z.array(z.object({
3914
- item_id: z.string(),
4049
+ assets_item_id: z.string(),
3915
4050
  quantity: z.int().gte(1)
3916
4051
  }))
3917
4052
  });
@@ -4265,7 +4400,7 @@ export const zUpdateCategoryPath = z.object({
4265
4400
  */
4266
4401
  export const zUpdateCategoryResponse = zAssetsCategoryResponseObject;
4267
4402
  export const zListCustodiesQuery = z.object({
4268
- 'filter[item_id]': z.string().optional(),
4403
+ 'filter[assets_item_id]': z.string().optional(),
4269
4404
  'filter[user_id]': z.string().optional(),
4270
4405
  filter: z.string().optional(),
4271
4406
  'filter[unexpected]': z.string().optional()
@@ -4286,7 +4421,7 @@ export const zGetCustodyPath = z.object({
4286
4421
  */
4287
4422
  export const zGetCustodyResponse = zAssetsCustodyResponseObject;
4288
4423
  export const zListEventsQuery = z.object({
4289
- 'filter[item_id]': z.string().optional(),
4424
+ 'filter[assets_item_id]': z.string().optional(),
4290
4425
  'filter[eventable_type]': z.string().optional(),
4291
4426
  filter: z.string().optional(),
4292
4427
  'filter[unexpected]': z.string().optional()
@@ -4350,7 +4485,7 @@ export const zUpdateFormAssignmentTriggerPath = z.object({
4350
4485
  */
4351
4486
  export const zUpdateFormAssignmentTriggerResponse = zAssetsFormAssignmentTriggerResponseObject;
4352
4487
  export const zListInventoriesQuery = z.object({
4353
- 'filter[item_id]': z.string().optional(),
4488
+ 'filter[assets_item_id]': z.string().optional(),
4354
4489
  'filter[assets_site_id]': z.string().optional(),
4355
4490
  filter: z.string().optional(),
4356
4491
  'filter[unexpected]': z.string().optional()
@@ -4643,7 +4778,7 @@ export const zListVersionsResponse = z.object({
4643
4778
  data: z.array(zAssetsDocumentVersionResponseObject).optional()
4644
4779
  });
4645
4780
  export const zListProductsQuery = z.object({
4646
- 'filter[category_id]': z.string().optional(),
4781
+ 'filter[assets_category_id]': z.string().optional(),
4647
4782
  'filter[created_at][gte]': z.iso.datetime().optional(),
4648
4783
  'filter[created_at][lte]': z.iso.datetime().optional(),
4649
4784
  'filter[updated_at][gte]': z.iso.datetime().optional(),
@@ -4758,7 +4893,7 @@ export const zUpdateServiceScheduleTemplatePath = z.object({
4758
4893
  */
4759
4894
  export const zUpdateServiceScheduleTemplateResponse = zAssetsServiceScheduleTemplateResponseObject;
4760
4895
  export const zSeedServiceScheduleTemplateBody = z.object({
4761
- item_ids: z.array(z.string()).optional(),
4896
+ assets_item_ids: z.array(z.string()).optional(),
4762
4897
  performed_by_user_id: z.string()
4763
4898
  });
4764
4899
  export const zSeedServiceScheduleTemplatePath = z.object({
@@ -5156,6 +5291,14 @@ export const zGetCompanyPath = z.object({
5156
5291
  * Success
5157
5292
  */
5158
5293
  export const zGetCompanyResponse = zCompanyResponseObject;
5294
+ export const zUpdateCompanyProfileBody = zCompanyParameters;
5295
+ export const zUpdateCompanyProfilePath = z.object({
5296
+ id: z.string()
5297
+ });
5298
+ /**
5299
+ * Success
5300
+ */
5301
+ export const zUpdateCompanyProfileResponse = zCompanyResponseObject;
5159
5302
  export const zListChecksQuery = z.object({
5160
5303
  'filter[status]': z.enum([
5161
5304
  'passed',
@@ -5582,6 +5725,39 @@ export const zUpdateJobPath = z.object({
5582
5725
  * Success
5583
5726
  */
5584
5727
  export const zUpdateJobResponse = zJobResponseObject;
5728
+ export const zListSiteCheckInsPath = z.object({
5729
+ site_id: z.string()
5730
+ });
5731
+ export const zListSiteCheckInsQuery = z.object({
5732
+ 'filter[user_id]': z.string().optional(),
5733
+ 'filter[created_at][gte]': z.iso.datetime().optional(),
5734
+ 'filter[created_at][lte]': z.iso.datetime().optional(),
5735
+ 'filter[updated_at][gte]': z.iso.datetime().optional(),
5736
+ 'filter[updated_at][lte]': z.iso.datetime().optional(),
5737
+ 'filter[start_time][gte]': z.iso.datetime().optional(),
5738
+ 'filter[start_time][lte]': z.iso.datetime().optional(),
5739
+ filter: z.string().optional(),
5740
+ 'filter[unexpected]': z.string().optional(),
5741
+ 'page[cursor]': z.string().optional(),
5742
+ 'page[limit]': z.int().gte(1).optional().default(20),
5743
+ page: z.string().optional()
5744
+ });
5745
+ /**
5746
+ * Success
5747
+ */
5748
+ export const zListSiteCheckInsResponse = z.object({
5749
+ meta: zMeta,
5750
+ links: zLinks,
5751
+ data: z.array(zSiteCheckInResponseObject)
5752
+ });
5753
+ export const zGetSiteCheckInPath = z.object({
5754
+ site_id: z.string(),
5755
+ id: z.string()
5756
+ });
5757
+ /**
5758
+ * Success
5759
+ */
5760
+ export const zGetSiteCheckInResponse = zSiteCheckInResponseObject;
5585
5761
  export const zListPayPeriodsQuery = z.object({
5586
5762
  'filter[start_time][gte]': z.iso.datetime().optional(),
5587
5763
  'filter[start_time][lte]': z.iso.datetime().optional(),
@@ -5830,7 +6006,7 @@ export const zUpdatePaystubPath = z.object({
5830
6006
  */
5831
6007
  export const zUpdatePaystubResponse = zPaystubResponseObject;
5832
6008
  export const zListPerDiemsQuery = z.object({
5833
- 'filter[is_default]': z.boolean().optional(),
6009
+ 'filter[default]': z.boolean().optional(),
5834
6010
  'filter[taxable]': z.boolean().optional(),
5835
6011
  'filter[created_at][gte]': z.iso.datetime().optional(),
5836
6012
  'filter[created_at][lte]': z.iso.datetime().optional(),
@@ -6078,7 +6254,7 @@ export const zGetTradeResponse = zPwaTradeResponseObject;
6078
6254
  export const zCreateFormAssignmentTaskBody = z.object({
6079
6255
  form_definition_id: z.string(),
6080
6256
  spread_assignees: z.boolean().optional(),
6081
- is_recurring: z.boolean().optional(),
6257
+ recurring: z.boolean().optional(),
6082
6258
  task_attributes: z.object({
6083
6259
  name: z.string(),
6084
6260
  description: z.string().optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dsptch-work/api-client",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "Generated TypeScript client for the DSPTCH REST API.",
5
5
  "keywords": [
6
6
  "dsptch",
@@ -51,11 +51,11 @@
51
51
  "access": "public"
52
52
  },
53
53
  "dependencies": {
54
- "zod": "^4.3.6"
54
+ "zod": "^4.4.3"
55
55
  },
56
56
  "devDependencies": {
57
- "@hey-api/openapi-ts": "^0.97.3",
58
- "publint": "^0.3.21",
57
+ "@hey-api/openapi-ts": "^0.99.0",
58
+ "publint": "^0.3.22",
59
59
  "typescript": "^6.0.3",
60
60
  "vitest": "^4.1.10"
61
61
  },