@dsptch-work/api-client 0.47.0 → 0.48.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.
@@ -211,12 +211,6 @@ export declare const zProblem: z.ZodObject<{
211
211
  *
212
212
  * 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.
213
213
  *
214
- * ### recorded_since_termination
215
- *
216
- * **Timecode Changed Since Termination**
217
- *
218
- * Cancelling this timecode's scheduled termination would silently discard changes recorded since it was terminated. Re-read the timecode and reconcile before retrying.
219
- *
220
214
  * ### span_beyond_timeline_end
221
215
  *
222
216
  * **Span Beyond Timeline End**
@@ -429,7 +423,6 @@ export declare const zProblemTypeCatalog: z.ZodEnum<{
429
423
  pay_schedule_deletion_in_progress: "pay_schedule_deletion_in_progress";
430
424
  pay_schedule_deletion_refused: "pay_schedule_deletion_refused";
431
425
  product_archived: "product_archived";
432
- recorded_since_termination: "recorded_since_termination";
433
426
  span_beyond_timeline_end: "span_beyond_timeline_end";
434
427
  version_overlap: "version_overlap";
435
428
  precondition_failed: "precondition_failed";
@@ -2066,6 +2059,42 @@ export declare const zPayPeriodConfigParameters: z.ZodObject<{
2066
2059
  approvals_deadline_clock_time: z.ZodString;
2067
2060
  time_card_auto_lock_days: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2068
2061
  }, z.core.$strip>;
2062
+ /**
2063
+ * Schedule a change to an existing pay schedule. effective_date is required; other fields are optional. tz_name, time_mode, and payroll_mode are refused.
2064
+ */
2065
+ export declare const zPayPeriodConfigUpdateParameters: z.ZodObject<{
2066
+ effective_date: z.ZodISODate;
2067
+ frequency: z.ZodOptional<z.ZodEnum<{
2068
+ weekly: "weekly";
2069
+ biweekly: "biweekly";
2070
+ }>>;
2071
+ start_day_of_week: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>, z.ZodLiteral<6>]>>;
2072
+ tz_name: z.ZodOptional<z.ZodString>;
2073
+ rounding_interval: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<15>]>>;
2074
+ payroll_system: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2075
+ rippling: "rippling";
2076
+ quickbooks_online: "quickbooks_online";
2077
+ paychex: "paychex";
2078
+ gusto: "gusto";
2079
+ }>>>;
2080
+ paid_after_holiday: z.ZodOptional<z.ZodBoolean>;
2081
+ arrear_days: z.ZodOptional<z.ZodInt>;
2082
+ pay_run_deadline_days: z.ZodOptional<z.ZodInt>;
2083
+ pay_run_deadline_clock_time: z.ZodOptional<z.ZodString>;
2084
+ approvals_deadline_days: z.ZodOptional<z.ZodInt>;
2085
+ approvals_deadline_clock_time: z.ZodOptional<z.ZodString>;
2086
+ time_card_auto_lock_days: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2087
+ time_mode: z.ZodOptional<z.ZodEnum<{
2088
+ none: "none";
2089
+ base: "base";
2090
+ aggregate: "aggregate";
2091
+ }>>;
2092
+ payroll_mode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2093
+ none: "none";
2094
+ base: "base";
2095
+ aggregate: "aggregate";
2096
+ }>>>;
2097
+ }, z.core.$strip>;
2069
2098
  /**
2070
2099
  * A pay schedule (PayPeriodConfig) — the top-level timekeeping unit that sets a company's payroll cadence and tracking modes and generates its stream of pay periods. Reads return the version valid at the requested time; create returns the new schedule, keyed by its stable id.
2071
2100
  */
@@ -8148,6 +8177,39 @@ export declare const zLaborRateResponseObject: z.ZodObject<{
8148
8177
  fringe_percentage_rate: z.ZodNullable<z.ZodString>;
8149
8178
  fringe_benefit_weekly_rate_cents: z.ZodNullable<z.ZodString>;
8150
8179
  fringe_benefit_monthly_rate_cents: z.ZodNullable<z.ZodString>;
8180
+ fringe_calculation: z.ZodObject<{
8181
+ available: z.ZodBoolean;
8182
+ hourly_cents: z.ZodNullable<z.ZodString>;
8183
+ reasons: z.ZodArray<z.ZodString>;
8184
+ component_ids: z.ZodArray<z.ZodString>;
8185
+ }, z.core.$strip>;
8186
+ fringe_benefit_components: z.ZodArray<z.ZodObject<{
8187
+ id: z.ZodString;
8188
+ position: z.ZodInt;
8189
+ amount_cents: z.ZodString;
8190
+ period: z.ZodEnum<{
8191
+ shift: "shift";
8192
+ year: "year";
8193
+ hour: "hour";
8194
+ day: "day";
8195
+ week: "week";
8196
+ month: "month";
8197
+ }>;
8198
+ kind: z.ZodEnum<{
8199
+ fringe: "fringe";
8200
+ wage_premium: "wage_premium";
8201
+ unresolved: "unresolved";
8202
+ }>;
8203
+ text: z.ZodString;
8204
+ attachment_status: z.ZodEnum<{
8205
+ unresolved: "unresolved";
8206
+ rate: "rate";
8207
+ }>;
8208
+ labor_rate_id: z.ZodNullable<z.ZodString>;
8209
+ source_sha256: z.ZodString;
8210
+ start_offset: z.ZodInt;
8211
+ end_offset: z.ZodInt;
8212
+ }, z.core.$strip>>;
8151
8213
  reference_item_ids: z.ZodArray<z.ZodString>;
8152
8214
  created_at: z.ZodISODateTime;
8153
8215
  updated_at: z.ZodISODateTime;
@@ -8177,6 +8239,39 @@ export declare const zLaborRatesResponseObject: z.ZodObject<{
8177
8239
  fringe_percentage_rate: z.ZodNullable<z.ZodString>;
8178
8240
  fringe_benefit_weekly_rate_cents: z.ZodNullable<z.ZodString>;
8179
8241
  fringe_benefit_monthly_rate_cents: z.ZodNullable<z.ZodString>;
8242
+ fringe_calculation: z.ZodObject<{
8243
+ available: z.ZodBoolean;
8244
+ hourly_cents: z.ZodNullable<z.ZodString>;
8245
+ reasons: z.ZodArray<z.ZodString>;
8246
+ component_ids: z.ZodArray<z.ZodString>;
8247
+ }, z.core.$strip>;
8248
+ fringe_benefit_components: z.ZodArray<z.ZodObject<{
8249
+ id: z.ZodString;
8250
+ position: z.ZodInt;
8251
+ amount_cents: z.ZodString;
8252
+ period: z.ZodEnum<{
8253
+ shift: "shift";
8254
+ year: "year";
8255
+ hour: "hour";
8256
+ day: "day";
8257
+ week: "week";
8258
+ month: "month";
8259
+ }>;
8260
+ kind: z.ZodEnum<{
8261
+ fringe: "fringe";
8262
+ wage_premium: "wage_premium";
8263
+ unresolved: "unresolved";
8264
+ }>;
8265
+ text: z.ZodString;
8266
+ attachment_status: z.ZodEnum<{
8267
+ unresolved: "unresolved";
8268
+ rate: "rate";
8269
+ }>;
8270
+ labor_rate_id: z.ZodNullable<z.ZodString>;
8271
+ source_sha256: z.ZodString;
8272
+ start_offset: z.ZodInt;
8273
+ end_offset: z.ZodInt;
8274
+ }, z.core.$strip>>;
8180
8275
  reference_item_ids: z.ZodArray<z.ZodString>;
8181
8276
  created_at: z.ZodISODateTime;
8182
8277
  updated_at: z.ZodISODateTime;
@@ -11317,9 +11412,9 @@ export declare const zAssetsServiceScheduleResponseObject: z.ZodObject<{
11317
11412
  name: z.ZodNullable<z.ZodString>;
11318
11413
  interval_unit: z.ZodEnum<{
11319
11414
  year: "year";
11320
- month: "month";
11321
- week: "week";
11322
11415
  day: "day";
11416
+ week: "week";
11417
+ month: "month";
11323
11418
  }>;
11324
11419
  interval_count: z.ZodInt;
11325
11420
  last_serviced_on: z.ZodNullable<z.ZodISODate>;
@@ -11338,9 +11433,9 @@ export declare const zAssetsServiceScheduleParameters: z.ZodObject<{
11338
11433
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11339
11434
  interval_unit: z.ZodEnum<{
11340
11435
  year: "year";
11341
- month: "month";
11342
- week: "week";
11343
11436
  day: "day";
11437
+ week: "week";
11438
+ month: "month";
11344
11439
  }>;
11345
11440
  interval_count: z.ZodInt;
11346
11441
  last_serviced_on: z.ZodOptional<z.ZodNullable<z.ZodISODate>>;
@@ -11357,9 +11452,9 @@ export declare const zAssetsServiceScheduleUpdateParameters: z.ZodObject<{
11357
11452
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11358
11453
  interval_unit: z.ZodOptional<z.ZodEnum<{
11359
11454
  year: "year";
11360
- month: "month";
11361
- week: "week";
11362
11455
  day: "day";
11456
+ week: "week";
11457
+ month: "month";
11363
11458
  }>>;
11364
11459
  interval_count: z.ZodOptional<z.ZodInt>;
11365
11460
  last_serviced_on: z.ZodOptional<z.ZodNullable<z.ZodISODate>>;
@@ -11447,9 +11542,9 @@ export declare const zAssetsServiceScheduleTemplateResponseObject: z.ZodObject<{
11447
11542
  name: z.ZodNullable<z.ZodString>;
11448
11543
  interval_unit: z.ZodEnum<{
11449
11544
  year: "year";
11450
- month: "month";
11451
- week: "week";
11452
11545
  day: "day";
11546
+ week: "week";
11547
+ month: "month";
11453
11548
  }>;
11454
11549
  interval_count: z.ZodInt;
11455
11550
  created_at: z.ZodISODateTime;
@@ -11466,9 +11561,9 @@ export declare const zAssetsServiceScheduleTemplateParameters: z.ZodObject<{
11466
11561
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11467
11562
  interval_unit: z.ZodEnum<{
11468
11563
  year: "year";
11469
- month: "month";
11470
- week: "week";
11471
11564
  day: "day";
11565
+ week: "week";
11566
+ month: "month";
11472
11567
  }>;
11473
11568
  interval_count: z.ZodInt;
11474
11569
  performed_by_user_id: z.ZodString;
@@ -11484,9 +11579,9 @@ export declare const zAssetsServiceScheduleTemplateUpdateParameters: z.ZodObject
11484
11579
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11485
11580
  interval_unit: z.ZodOptional<z.ZodEnum<{
11486
11581
  year: "year";
11487
- month: "month";
11488
- week: "week";
11489
11582
  day: "day";
11583
+ week: "week";
11584
+ month: "month";
11490
11585
  }>>;
11491
11586
  interval_count: z.ZodOptional<z.ZodInt>;
11492
11587
  performed_by_user_id: z.ZodString;
@@ -14315,9 +14410,9 @@ export declare const zListServiceSchedulesResponse: z.ZodObject<{
14315
14410
  name: z.ZodNullable<z.ZodString>;
14316
14411
  interval_unit: z.ZodEnum<{
14317
14412
  year: "year";
14318
- month: "month";
14319
- week: "week";
14320
14413
  day: "day";
14414
+ week: "week";
14415
+ month: "month";
14321
14416
  }>;
14322
14417
  interval_count: z.ZodInt;
14323
14418
  last_serviced_on: z.ZodNullable<z.ZodISODate>;
@@ -14334,9 +14429,9 @@ export declare const zCreateServiceScheduleBody: z.ZodObject<{
14334
14429
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14335
14430
  interval_unit: z.ZodEnum<{
14336
14431
  year: "year";
14337
- month: "month";
14338
- week: "week";
14339
14432
  day: "day";
14433
+ week: "week";
14434
+ month: "month";
14340
14435
  }>;
14341
14436
  interval_count: z.ZodInt;
14342
14437
  last_serviced_on: z.ZodOptional<z.ZodNullable<z.ZodISODate>>;
@@ -14360,9 +14455,9 @@ export declare const zCreateServiceScheduleResponse: z.ZodObject<{
14360
14455
  name: z.ZodNullable<z.ZodString>;
14361
14456
  interval_unit: z.ZodEnum<{
14362
14457
  year: "year";
14363
- month: "month";
14364
- week: "week";
14365
14458
  day: "day";
14459
+ week: "week";
14460
+ month: "month";
14366
14461
  }>;
14367
14462
  interval_count: z.ZodInt;
14368
14463
  last_serviced_on: z.ZodNullable<z.ZodISODate>;
@@ -14389,9 +14484,9 @@ export declare const zDeleteServiceScheduleResponse: z.ZodObject<{
14389
14484
  name: z.ZodNullable<z.ZodString>;
14390
14485
  interval_unit: z.ZodEnum<{
14391
14486
  year: "year";
14392
- month: "month";
14393
- week: "week";
14394
14487
  day: "day";
14488
+ week: "week";
14489
+ month: "month";
14395
14490
  }>;
14396
14491
  interval_count: z.ZodInt;
14397
14492
  last_serviced_on: z.ZodNullable<z.ZodISODate>;
@@ -14418,9 +14513,9 @@ export declare const zGetServiceScheduleResponse: z.ZodObject<{
14418
14513
  name: z.ZodNullable<z.ZodString>;
14419
14514
  interval_unit: z.ZodEnum<{
14420
14515
  year: "year";
14421
- month: "month";
14422
- week: "week";
14423
14516
  day: "day";
14517
+ week: "week";
14518
+ month: "month";
14424
14519
  }>;
14425
14520
  interval_count: z.ZodInt;
14426
14521
  last_serviced_on: z.ZodNullable<z.ZodISODate>;
@@ -14436,9 +14531,9 @@ export declare const zUpdateServiceScheduleBody: z.ZodObject<{
14436
14531
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14437
14532
  interval_unit: z.ZodOptional<z.ZodEnum<{
14438
14533
  year: "year";
14439
- month: "month";
14440
- week: "week";
14441
14534
  day: "day";
14535
+ week: "week";
14536
+ month: "month";
14442
14537
  }>>;
14443
14538
  interval_count: z.ZodOptional<z.ZodInt>;
14444
14539
  last_serviced_on: z.ZodOptional<z.ZodNullable<z.ZodISODate>>;
@@ -14463,9 +14558,9 @@ export declare const zUpdateServiceScheduleResponse: z.ZodObject<{
14463
14558
  name: z.ZodNullable<z.ZodString>;
14464
14559
  interval_unit: z.ZodEnum<{
14465
14560
  year: "year";
14466
- month: "month";
14467
- week: "week";
14468
14561
  day: "day";
14562
+ week: "week";
14563
+ month: "month";
14469
14564
  }>;
14470
14565
  interval_count: z.ZodInt;
14471
14566
  last_serviced_on: z.ZodNullable<z.ZodISODate>;
@@ -15669,9 +15764,9 @@ export declare const zListServiceScheduleTemplatesResponse: z.ZodObject<{
15669
15764
  name: z.ZodNullable<z.ZodString>;
15670
15765
  interval_unit: z.ZodEnum<{
15671
15766
  year: "year";
15672
- month: "month";
15673
- week: "week";
15674
15767
  day: "day";
15768
+ week: "week";
15769
+ month: "month";
15675
15770
  }>;
15676
15771
  interval_count: z.ZodInt;
15677
15772
  created_at: z.ZodISODateTime;
@@ -15686,9 +15781,9 @@ export declare const zCreateServiceScheduleTemplateBody: z.ZodObject<{
15686
15781
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15687
15782
  interval_unit: z.ZodEnum<{
15688
15783
  year: "year";
15689
- month: "month";
15690
- week: "week";
15691
15784
  day: "day";
15785
+ week: "week";
15786
+ month: "month";
15692
15787
  }>;
15693
15788
  interval_count: z.ZodInt;
15694
15789
  performed_by_user_id: z.ZodString;
@@ -15710,9 +15805,9 @@ export declare const zCreateServiceScheduleTemplateResponse: z.ZodObject<{
15710
15805
  name: z.ZodNullable<z.ZodString>;
15711
15806
  interval_unit: z.ZodEnum<{
15712
15807
  year: "year";
15713
- month: "month";
15714
- week: "week";
15715
15808
  day: "day";
15809
+ week: "week";
15810
+ month: "month";
15716
15811
  }>;
15717
15812
  interval_count: z.ZodInt;
15718
15813
  created_at: z.ZodISODateTime;
@@ -15736,9 +15831,9 @@ export declare const zDeleteServiceScheduleTemplateResponse: z.ZodObject<{
15736
15831
  name: z.ZodNullable<z.ZodString>;
15737
15832
  interval_unit: z.ZodEnum<{
15738
15833
  year: "year";
15739
- month: "month";
15740
- week: "week";
15741
15834
  day: "day";
15835
+ week: "week";
15836
+ month: "month";
15742
15837
  }>;
15743
15838
  interval_count: z.ZodInt;
15744
15839
  created_at: z.ZodISODateTime;
@@ -15762,9 +15857,9 @@ export declare const zGetServiceScheduleTemplateResponse: z.ZodObject<{
15762
15857
  name: z.ZodNullable<z.ZodString>;
15763
15858
  interval_unit: z.ZodEnum<{
15764
15859
  year: "year";
15765
- month: "month";
15766
- week: "week";
15767
15860
  day: "day";
15861
+ week: "week";
15862
+ month: "month";
15768
15863
  }>;
15769
15864
  interval_count: z.ZodInt;
15770
15865
  created_at: z.ZodISODateTime;
@@ -15778,9 +15873,9 @@ export declare const zUpdateServiceScheduleTemplateBody: z.ZodObject<{
15778
15873
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15779
15874
  interval_unit: z.ZodOptional<z.ZodEnum<{
15780
15875
  year: "year";
15781
- month: "month";
15782
- week: "week";
15783
15876
  day: "day";
15877
+ week: "week";
15878
+ month: "month";
15784
15879
  }>>;
15785
15880
  interval_count: z.ZodOptional<z.ZodInt>;
15786
15881
  performed_by_user_id: z.ZodString;
@@ -15803,9 +15898,9 @@ export declare const zUpdateServiceScheduleTemplateResponse: z.ZodObject<{
15803
15898
  name: z.ZodNullable<z.ZodString>;
15804
15899
  interval_unit: z.ZodEnum<{
15805
15900
  year: "year";
15806
- month: "month";
15807
- week: "week";
15808
15901
  day: "day";
15902
+ week: "week";
15903
+ month: "month";
15809
15904
  }>;
15810
15905
  interval_count: z.ZodInt;
15811
15906
  created_at: z.ZodISODateTime;
@@ -15836,9 +15931,9 @@ export declare const zSeedServiceScheduleTemplateResponse: z.ZodObject<{
15836
15931
  name: z.ZodNullable<z.ZodString>;
15837
15932
  interval_unit: z.ZodEnum<{
15838
15933
  year: "year";
15839
- month: "month";
15840
- week: "week";
15841
15934
  day: "day";
15935
+ week: "week";
15936
+ month: "month";
15842
15937
  }>;
15843
15938
  interval_count: z.ZodInt;
15844
15939
  last_serviced_on: z.ZodNullable<z.ZodISODate>;
@@ -15872,9 +15967,9 @@ export declare const zSyncServiceScheduleTemplateResponse: z.ZodObject<{
15872
15967
  name: z.ZodNullable<z.ZodString>;
15873
15968
  interval_unit: z.ZodEnum<{
15874
15969
  year: "year";
15875
- month: "month";
15876
- week: "week";
15877
15970
  day: "day";
15971
+ week: "week";
15972
+ month: "month";
15878
15973
  }>;
15879
15974
  interval_count: z.ZodInt;
15880
15975
  last_serviced_on: z.ZodNullable<z.ZodISODate>;
@@ -35457,6 +35552,91 @@ export declare const zGetPayPeriodConfigResponse: z.ZodObject<{
35457
35552
  valid_to: z.ZodNullable<z.ZodISODateTime>;
35458
35553
  created_at: z.ZodISODateTime;
35459
35554
  }, z.core.$strip>;
35555
+ export declare const zUpdatePayPeriodConfigBody: z.ZodObject<{
35556
+ effective_date: z.ZodISODate;
35557
+ frequency: z.ZodOptional<z.ZodEnum<{
35558
+ weekly: "weekly";
35559
+ biweekly: "biweekly";
35560
+ }>>;
35561
+ start_day_of_week: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>, z.ZodLiteral<6>]>>;
35562
+ tz_name: z.ZodOptional<z.ZodString>;
35563
+ rounding_interval: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<15>]>>;
35564
+ payroll_system: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
35565
+ rippling: "rippling";
35566
+ quickbooks_online: "quickbooks_online";
35567
+ paychex: "paychex";
35568
+ gusto: "gusto";
35569
+ }>>>;
35570
+ paid_after_holiday: z.ZodOptional<z.ZodBoolean>;
35571
+ arrear_days: z.ZodOptional<z.ZodInt>;
35572
+ pay_run_deadline_days: z.ZodOptional<z.ZodInt>;
35573
+ pay_run_deadline_clock_time: z.ZodOptional<z.ZodString>;
35574
+ approvals_deadline_days: z.ZodOptional<z.ZodInt>;
35575
+ approvals_deadline_clock_time: z.ZodOptional<z.ZodString>;
35576
+ time_card_auto_lock_days: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
35577
+ time_mode: z.ZodOptional<z.ZodEnum<{
35578
+ none: "none";
35579
+ base: "base";
35580
+ aggregate: "aggregate";
35581
+ }>>;
35582
+ payroll_mode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
35583
+ none: "none";
35584
+ base: "base";
35585
+ aggregate: "aggregate";
35586
+ }>>>;
35587
+ }, z.core.$strip>;
35588
+ export declare const zUpdatePayPeriodConfigHeaders: z.ZodObject<{
35589
+ 'If-Match': z.ZodString;
35590
+ }, z.core.$strip>;
35591
+ export declare const zUpdatePayPeriodConfigPath: z.ZodObject<{
35592
+ id: z.ZodString;
35593
+ }, z.core.$strip>;
35594
+ /**
35595
+ * Accepted
35596
+ */
35597
+ export declare const zUpdatePayPeriodConfigResponse: z.ZodObject<{
35598
+ id: z.ZodString;
35599
+ company_id: z.ZodString;
35600
+ name: z.ZodString;
35601
+ frequency: z.ZodEnum<{
35602
+ weekly: "weekly";
35603
+ biweekly: "biweekly";
35604
+ }>;
35605
+ start_day_of_week: z.ZodInt;
35606
+ tz_name: z.ZodString;
35607
+ currency: z.ZodString;
35608
+ status: z.ZodEnum<{
35609
+ pending: "pending";
35610
+ failed: "failed";
35611
+ synced: "synced";
35612
+ }>;
35613
+ payroll_mode: z.ZodNullable<z.ZodEnum<{
35614
+ none: "none";
35615
+ base: "base";
35616
+ aggregate: "aggregate";
35617
+ }>>;
35618
+ time_mode: z.ZodEnum<{
35619
+ none: "none";
35620
+ base: "base";
35621
+ aggregate: "aggregate";
35622
+ }>;
35623
+ payroll_system: z.ZodNullable<z.ZodEnum<{
35624
+ rippling: "rippling";
35625
+ quickbooks_online: "quickbooks_online";
35626
+ paychex: "paychex";
35627
+ gusto: "gusto";
35628
+ }>>;
35629
+ actuals_enabled: z.ZodNullable<z.ZodBoolean>;
35630
+ requires_external_map_contributor: z.ZodBoolean;
35631
+ paid_after_holiday: z.ZodBoolean;
35632
+ arrear_days: z.ZodInt;
35633
+ time_card_auto_lock_days: z.ZodNullable<z.ZodInt>;
35634
+ rounding_interval: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<15>]>;
35635
+ demo: z.ZodNullable<z.ZodBoolean>;
35636
+ valid_from: z.ZodNullable<z.ZodISODateTime>;
35637
+ valid_to: z.ZodNullable<z.ZodISODateTime>;
35638
+ created_at: z.ZodISODateTime;
35639
+ }, z.core.$strip>;
35460
35640
  export declare const zListTimeCardActualsQuery: z.ZodObject<{
35461
35641
  'filter[timekeeping_time_card_id]': z.ZodOptional<z.ZodString>;
35462
35642
  'filter[created_at][gte]': z.ZodOptional<z.ZodISODateTime>;
@@ -37847,6 +38027,39 @@ export declare const zListLaborRatesResponse: z.ZodObject<{
37847
38027
  fringe_percentage_rate: z.ZodNullable<z.ZodString>;
37848
38028
  fringe_benefit_weekly_rate_cents: z.ZodNullable<z.ZodString>;
37849
38029
  fringe_benefit_monthly_rate_cents: z.ZodNullable<z.ZodString>;
38030
+ fringe_calculation: z.ZodObject<{
38031
+ available: z.ZodBoolean;
38032
+ hourly_cents: z.ZodNullable<z.ZodString>;
38033
+ reasons: z.ZodArray<z.ZodString>;
38034
+ component_ids: z.ZodArray<z.ZodString>;
38035
+ }, z.core.$strip>;
38036
+ fringe_benefit_components: z.ZodArray<z.ZodObject<{
38037
+ id: z.ZodString;
38038
+ position: z.ZodInt;
38039
+ amount_cents: z.ZodString;
38040
+ period: z.ZodEnum<{
38041
+ shift: "shift";
38042
+ year: "year";
38043
+ hour: "hour";
38044
+ day: "day";
38045
+ week: "week";
38046
+ month: "month";
38047
+ }>;
38048
+ kind: z.ZodEnum<{
38049
+ fringe: "fringe";
38050
+ wage_premium: "wage_premium";
38051
+ unresolved: "unresolved";
38052
+ }>;
38053
+ text: z.ZodString;
38054
+ attachment_status: z.ZodEnum<{
38055
+ unresolved: "unresolved";
38056
+ rate: "rate";
38057
+ }>;
38058
+ labor_rate_id: z.ZodNullable<z.ZodString>;
38059
+ source_sha256: z.ZodString;
38060
+ start_offset: z.ZodInt;
38061
+ end_offset: z.ZodInt;
38062
+ }, z.core.$strip>>;
37850
38063
  reference_item_ids: z.ZodArray<z.ZodString>;
37851
38064
  created_at: z.ZodISODateTime;
37852
38065
  updated_at: z.ZodISODateTime;
@@ -212,12 +212,6 @@ export const zProblem = z.object({
212
212
  *
213
213
  * 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.
214
214
  *
215
- * ### recorded_since_termination
216
- *
217
- * **Timecode Changed Since Termination**
218
- *
219
- * Cancelling this timecode's scheduled termination would silently discard changes recorded since it was terminated. Re-read the timecode and reconcile before retrying.
220
- *
221
215
  * ### span_beyond_timeline_end
222
216
  *
223
217
  * **Span Beyond Timeline End**
@@ -430,7 +424,6 @@ export const zProblemTypeCatalog = z.enum([
430
424
  'pay_schedule_deletion_in_progress',
431
425
  'pay_schedule_deletion_refused',
432
426
  'product_archived',
433
- 'recorded_since_termination',
434
427
  'span_beyond_timeline_end',
435
428
  'version_overlap',
436
429
  'precondition_failed',
@@ -1935,6 +1928,47 @@ export const zPayPeriodConfigParameters = z.object({
1935
1928
  approvals_deadline_clock_time: z.string().regex(/^([01][0-9]|2[0-3]):[0-5][0-9]$/),
1936
1929
  time_card_auto_lock_days: z.int().nullish()
1937
1930
  });
1931
+ /**
1932
+ * Schedule a change to an existing pay schedule. effective_date is required; other fields are optional. tz_name, time_mode, and payroll_mode are refused.
1933
+ */
1934
+ export const zPayPeriodConfigUpdateParameters = z.object({
1935
+ effective_date: z.iso.date(),
1936
+ frequency: z.enum(['weekly', 'biweekly']).optional(),
1937
+ start_day_of_week: z.union([
1938
+ z.literal(0),
1939
+ z.literal(1),
1940
+ z.literal(2),
1941
+ z.literal(3),
1942
+ z.literal(4),
1943
+ z.literal(5),
1944
+ z.literal(6)
1945
+ ]).optional(),
1946
+ tz_name: z.string().optional(),
1947
+ rounding_interval: z.union([z.literal(1), z.literal(15)]).optional(),
1948
+ payroll_system: z.enum([
1949
+ 'rippling',
1950
+ 'quickbooks_online',
1951
+ 'paychex',
1952
+ 'gusto'
1953
+ ]).nullish(),
1954
+ paid_after_holiday: z.boolean().optional(),
1955
+ arrear_days: z.int().gte(0).optional(),
1956
+ pay_run_deadline_days: z.int().gte(1).optional(),
1957
+ pay_run_deadline_clock_time: z.string().regex(/^([01][0-9]|2[0-3]):[0-5][0-9]$/).optional(),
1958
+ approvals_deadline_days: z.int().gte(0).optional(),
1959
+ approvals_deadline_clock_time: z.string().regex(/^([01][0-9]|2[0-3]):[0-5][0-9]$/).optional(),
1960
+ time_card_auto_lock_days: z.int().nullish(),
1961
+ time_mode: z.enum([
1962
+ 'none',
1963
+ 'base',
1964
+ 'aggregate'
1965
+ ]).optional(),
1966
+ payroll_mode: z.enum([
1967
+ 'none',
1968
+ 'base',
1969
+ 'aggregate'
1970
+ ]).nullish()
1971
+ });
1938
1972
  /**
1939
1973
  * A pay schedule (PayPeriodConfig) — the top-level timekeeping unit that sets a company's payroll cadence and tracking modes and generates its stream of pay periods. Reads return the version valid at the requested time; create returns the new schedule, keyed by its stable id.
1940
1974
  */
@@ -6827,6 +6861,36 @@ export const zLaborRateResponseObject = z.object({
6827
6861
  fringe_percentage_rate: z.string().nullable(),
6828
6862
  fringe_benefit_weekly_rate_cents: z.string().nullable(),
6829
6863
  fringe_benefit_monthly_rate_cents: z.string().nullable(),
6864
+ fringe_calculation: z.object({
6865
+ available: z.boolean(),
6866
+ hourly_cents: z.string().nullable(),
6867
+ reasons: z.array(z.string()),
6868
+ component_ids: z.array(z.string())
6869
+ }),
6870
+ fringe_benefit_components: z.array(z.object({
6871
+ id: z.string(),
6872
+ position: z.int(),
6873
+ amount_cents: z.string(),
6874
+ period: z.enum([
6875
+ 'hour',
6876
+ 'day',
6877
+ 'week',
6878
+ 'month',
6879
+ 'year',
6880
+ 'shift'
6881
+ ]),
6882
+ kind: z.enum([
6883
+ 'fringe',
6884
+ 'wage_premium',
6885
+ 'unresolved'
6886
+ ]),
6887
+ text: z.string(),
6888
+ attachment_status: z.enum(['rate', 'unresolved']),
6889
+ labor_rate_id: z.string().nullable(),
6890
+ source_sha256: z.string(),
6891
+ start_offset: z.int(),
6892
+ end_offset: z.int()
6893
+ })),
6830
6894
  reference_item_ids: z.array(z.string()),
6831
6895
  created_at: z.iso.datetime(),
6832
6896
  updated_at: z.iso.datetime()
@@ -14951,6 +15015,17 @@ export const zGetPayPeriodConfigQuery = z.object({
14951
15015
  * Success
14952
15016
  */
14953
15017
  export const zGetPayPeriodConfigResponse = zPayPeriodConfigResponseObject;
15018
+ export const zUpdatePayPeriodConfigBody = zPayPeriodConfigUpdateParameters;
15019
+ export const zUpdatePayPeriodConfigHeaders = z.object({
15020
+ 'If-Match': z.string()
15021
+ });
15022
+ export const zUpdatePayPeriodConfigPath = z.object({
15023
+ id: z.string()
15024
+ });
15025
+ /**
15026
+ * Accepted
15027
+ */
15028
+ export const zUpdatePayPeriodConfigResponse = zPayPeriodConfigResponseObject;
14954
15029
  export const zListTimeCardActualsQuery = z.object({
14955
15030
  'filter[timekeeping_time_card_id]': z.string().optional(),
14956
15031
  'filter[created_at][gte]': z.iso.datetime().optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dsptch-work/api-client",
3
- "version": "0.47.0",
3
+ "version": "0.48.0",
4
4
  "description": "Generated TypeScript client for the DSPTCH REST API.",
5
5
  "keywords": [
6
6
  "dsptch",