@dsptch-work/api-client 0.20.0 → 0.21.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.
@@ -8,7 +8,7 @@ export const zProblem = z.object({
8
8
  title: z.string(),
9
9
  status: z.int(),
10
10
  detail: z.string(),
11
- instance: z.url().optional(),
11
+ instance: z.url(),
12
12
  errors: z.array(z.object({
13
13
  detail: z.string(),
14
14
  pointer: z.string().optional()
@@ -863,7 +863,7 @@ export const zTimecodeResponseObject = z.object({
863
863
  updated_at: z.iso.datetime()
864
864
  });
865
865
  /**
866
- * An employment stint in the credential company. Its id is stable across valid-time versions; a rehire is a separate stint with a new id. A read returns only a version covering now or as_of[valid].
866
+ * An employment stint in the credential company. Its id is stable across valid-time versions; a rehire is a separate stint with a new id. A read returns only a version covering now or as_of[valid]. Company keys, company administrators, and the employed person receive direct monetary fields; those fields are omitted for company managers reading coworkers.
867
867
  */
868
868
  export const zPeopleEmploymentResponseObject = z.object({
869
869
  id: z.string(),
@@ -884,10 +884,10 @@ export const zPeopleEmploymentResponseObject = z.object({
884
884
  pto_annual_minutes: z.int().nullable(),
885
885
  holiday_annual_minutes: z.int().nullable(),
886
886
  training_annual_minutes: z.int().nullable(),
887
- hourly_rate_cents: z.string().nullable(),
888
- training_annual_amount_cents: z.string().nullable(),
889
- employer_combined_health_amount_cents: z.string().nullable(),
890
- employer_combined_savings_cents: z.string().nullable(),
887
+ hourly_rate_cents: z.string().nullish(),
888
+ training_annual_amount_cents: z.string().nullish(),
889
+ employer_combined_health_amount_cents: z.string().nullish(),
890
+ employer_combined_savings_cents: z.string().nullish(),
891
891
  currency: z.string(),
892
892
  valid_from: z.iso.datetime().nullable(),
893
893
  valid_to: z.iso.datetime().nullable(),
@@ -913,10 +913,10 @@ export const zPeopleEmploymentHistoryCorrectionObject = z.object({
913
913
  pto_annual_minutes: z.int().nullable(),
914
914
  holiday_annual_minutes: z.int().nullable(),
915
915
  training_annual_minutes: z.int().nullable(),
916
- hourly_rate_cents: z.string().nullable(),
917
- training_annual_amount_cents: z.string().nullable(),
918
- employer_combined_health_amount_cents: z.string().nullable(),
919
- employer_combined_savings_cents: z.string().nullable(),
916
+ hourly_rate_cents: z.string().nullish(),
917
+ training_annual_amount_cents: z.string().nullish(),
918
+ employer_combined_health_amount_cents: z.string().nullish(),
919
+ employer_combined_savings_cents: z.string().nullish(),
920
920
  currency: z.string(),
921
921
  valid_from: z.iso.datetime().nullable(),
922
922
  valid_to: z.iso.datetime().nullable(),
@@ -942,10 +942,10 @@ export const zPeopleEmploymentHistoryVersionObject = z.object({
942
942
  pto_annual_minutes: z.int().nullable(),
943
943
  holiday_annual_minutes: z.int().nullable(),
944
944
  training_annual_minutes: z.int().nullable(),
945
- hourly_rate_cents: z.string().nullable(),
946
- training_annual_amount_cents: z.string().nullable(),
947
- employer_combined_health_amount_cents: z.string().nullable(),
948
- employer_combined_savings_cents: z.string().nullable(),
945
+ hourly_rate_cents: z.string().nullish(),
946
+ training_annual_amount_cents: z.string().nullish(),
947
+ employer_combined_health_amount_cents: z.string().nullish(),
948
+ employer_combined_savings_cents: z.string().nullish(),
949
949
  currency: z.string(),
950
950
  valid_from: z.iso.datetime().nullable(),
951
951
  valid_to: z.iso.datetime().nullable(),
@@ -3059,6 +3059,7 @@ export const zProjectResponseObject = z.object({
3059
3059
  owned_by_company_id: z.string(),
3060
3060
  created_by_user_id: z.string().nullable(),
3061
3061
  parent_id: z.string().nullable(),
3062
+ participating_company_ids: z.array(z.string()),
3062
3063
  federal_pwa_mode: z.enum([
3063
3064
  'all',
3064
3065
  'pw_only',
@@ -3087,13 +3088,15 @@ export const zProjectResponseObject = z.object({
3087
3088
  updated_at: z.iso.datetime()
3088
3089
  });
3089
3090
  /**
3090
- * Request body for creating a project. `name` is required by the schema; `created_by_user_id` is additionally required on create and must be a member of the owning company. The owning company is inferred from the API key and is not part of the body.
3091
+ * Request body for creating or updating a project. Only `name` is required by the schema; `created_by_user_id` is additionally required on create and must be a member of the owning company. The owning company is inferred from the API key and is not part of the body. Omit relationship fields on PATCH to leave them unchanged.
3091
3092
  */
3092
3093
  export const zProjectParameters = z.object({
3093
3094
  external_id: z.string().nullish(),
3094
3095
  name: z.string(),
3095
3096
  description: z.string().nullish(),
3096
3097
  created_by_user_id: z.string(),
3098
+ parent_id: z.string().nullish(),
3099
+ participating_company_ids: z.array(z.string()).optional(),
3097
3100
  start_date: z.iso.date().nullish(),
3098
3101
  end_date: z.iso.date().nullish(),
3099
3102
  tz_name: z.string().nullish(),
@@ -3128,6 +3131,8 @@ export const zProjectUpdateParameters = z.object({
3128
3131
  name: z.string().optional(),
3129
3132
  description: z.string().nullish(),
3130
3133
  created_by_user_id: z.string().nullish(),
3134
+ parent_id: z.string().nullish(),
3135
+ participating_company_ids: z.array(z.string()).optional(),
3131
3136
  start_date: z.iso.date().nullish(),
3132
3137
  end_date: z.iso.date().nullish(),
3133
3138
  tz_name: z.string().nullish(),
@@ -3862,6 +3867,26 @@ export const zPaystubLineItemUpdateParameters = z.object({
3862
3867
  contributor: z.enum(['employee', 'employer']).optional(),
3863
3868
  payrolls_external_map_id: z.string().optional()
3864
3869
  });
3870
+ /**
3871
+ * A company-owned collection of conditional wage and fringe adjustments, optionally scoped to a job.
3872
+ */
3873
+ export const zPayRatesRulePackageResponseObject = z.object({
3874
+ id: z.string(),
3875
+ name: z.string(),
3876
+ description: z.string().nullable(),
3877
+ scoped_to_job_id: z.string().nullable(),
3878
+ default: z.boolean(),
3879
+ selectable: z.boolean(),
3880
+ created_at: z.iso.datetime(),
3881
+ updated_at: z.iso.datetime()
3882
+ });
3883
+ /**
3884
+ * Parameters for creating a company-wide pay-rate rule package.
3885
+ */
3886
+ export const zPayRatesRulePackageParameters = z.object({
3887
+ name: z.string().min(1),
3888
+ description: z.string().nullish()
3889
+ });
3865
3890
  /**
3866
3891
  * Request body for creating or updating a position on a job. The job is taken from the URL path.
3867
3892
  */
@@ -4233,6 +4258,7 @@ export const zPositionResponseObject = z.object({
4233
4258
  id: z.string(),
4234
4259
  job_id: z.string(),
4235
4260
  fulfilled_by_user_id: z.string().nullable(),
4261
+ pay_rates_rule_package_id: z.string().nullable(),
4236
4262
  position_function: zPositionFunction,
4237
4263
  per_diem_name: z.string().nullable(),
4238
4264
  per_diem_currency: z.string().nullable(),
@@ -4914,6 +4940,7 @@ export const zFederalJobWageDeterminationResponseObject = z.object({
4914
4940
  job_id: z.string(),
4915
4941
  pwa_trade_id: z.string(),
4916
4942
  overtime_package_id: z.string().nullable(),
4943
+ pay_rates_rule_package_id: z.string().nullable(),
4917
4944
  type: z.enum(['Pwa::JobWageDeterminations::Federal']),
4918
4945
  labor_classification: z.string(),
4919
4946
  hourly_rate_cents: z.string(),
@@ -4936,6 +4963,7 @@ export const zFederalJobWageDeterminationHistoryCorrectionObject = z.object({
4936
4963
  job_id: z.string(),
4937
4964
  pwa_trade_id: z.string(),
4938
4965
  overtime_package_id: z.string().nullable(),
4966
+ pay_rates_rule_package_id: z.string().nullable(),
4939
4967
  type: z.enum(['Pwa::JobWageDeterminations::Federal']),
4940
4968
  labor_classification: z.string(),
4941
4969
  hourly_rate_cents: z.string(),
@@ -5007,6 +5035,7 @@ export const zRegionalJobWageDeterminationResponseObject = z.object({
5007
5035
  job_id: z.string(),
5008
5036
  pwa_trade_id: z.string(),
5009
5037
  overtime_package_id: z.string().nullable(),
5038
+ pay_rates_rule_package_id: z.string().nullable(),
5010
5039
  type: z.enum(['Pwa::JobWageDeterminations::Regional']),
5011
5040
  labor_classification: z.string(),
5012
5041
  hourly_rate_cents: z.string(),
@@ -5030,6 +5059,7 @@ export const zRegionalJobWageDeterminationHistoryCorrectionObject = z.object({
5030
5059
  job_id: z.string(),
5031
5060
  pwa_trade_id: z.string(),
5032
5061
  overtime_package_id: z.string().nullable(),
5062
+ pay_rates_rule_package_id: z.string().nullable(),
5033
5063
  type: z.enum(['Pwa::JobWageDeterminations::Regional']),
5034
5064
  labor_classification: z.string(),
5035
5065
  hourly_rate_cents: z.string(),
@@ -5050,6 +5080,7 @@ export const zFederalJobWageDeterminationHistoryVersionObject = z.object({
5050
5080
  job_id: z.string(),
5051
5081
  pwa_trade_id: z.string(),
5052
5082
  overtime_package_id: z.string().nullable(),
5083
+ pay_rates_rule_package_id: z.string().nullable(),
5053
5084
  type: z.enum(['Pwa::JobWageDeterminations::Federal']),
5054
5085
  labor_classification: z.string(),
5055
5086
  hourly_rate_cents: z.string(),
@@ -5078,6 +5109,7 @@ export const zRegionalJobWageDeterminationHistoryVersionObject = z.object({
5078
5109
  job_id: z.string(),
5079
5110
  pwa_trade_id: z.string(),
5080
5111
  overtime_package_id: z.string().nullable(),
5112
+ pay_rates_rule_package_id: z.string().nullable(),
5081
5113
  type: z.enum(['Pwa::JobWageDeterminations::Regional']),
5082
5114
  labor_classification: z.string(),
5083
5115
  hourly_rate_cents: z.string(),
@@ -5115,7 +5147,8 @@ export const zFederalJobWageDeterminationParameters = z.object({
5115
5147
  'highway',
5116
5148
  'residential'
5117
5149
  ]).nullish(),
5118
- general_wage_determination: z.string().nullish()
5150
+ general_wage_determination: z.string().nullish(),
5151
+ pay_rates_rule_package_id: z.string().nullish()
5119
5152
  });
5120
5153
  /**
5121
5154
  * Parameters for creating a Regional (state prevailing-wage) wage determination on a job.
@@ -5128,6 +5161,7 @@ export const zRegionalJobWageDeterminationParameters = z.object({
5128
5161
  fringe_rate_cents: z.string().optional(),
5129
5162
  general_wage_determination: z.string().nullish(),
5130
5163
  overtime_package_id: z.string().nullish(),
5164
+ pay_rates_rule_package_id: z.string().nullish(),
5131
5165
  regional_fields: zRegionalWageDeterminationFields.optional()
5132
5166
  });
5133
5167
  /**
@@ -5143,6 +5177,7 @@ export const zJobWageDeterminationParameters = z.discriminatedUnion('type', [
5143
5177
  export const zJobWageDeterminationUpdateParameters = z.object({
5144
5178
  effective_from: z.iso.date().optional(),
5145
5179
  overtime_package_id: z.string().nullish(),
5180
+ pay_rates_rule_package_id: z.string().nullish(),
5146
5181
  labor_classification: z.string().optional(),
5147
5182
  pwa_trade_id: z.string().optional(),
5148
5183
  hourly_rate_cents: z.string().optional(),
@@ -5291,6 +5326,84 @@ export const zRateRuleHistoryVersionObject = z.object({
5291
5326
  ]),
5292
5327
  corrections: z.array(zRateRuleHistoryCorrectionObject)
5293
5328
  });
5329
+ /**
5330
+ * A conditional wage or fringe adjustment owned by a pay-rate rule package, with the selected version's valid-time window.
5331
+ */
5332
+ export const zPayRatesRuleResponseObject = z.object({
5333
+ id: z.string(),
5334
+ pay_rates_rule_package_id: z.string(),
5335
+ currency: z.string(),
5336
+ effect: zRateRuleEffect,
5337
+ conditions: z.array(zRateRuleCondition),
5338
+ valid_from: z.iso.datetime().nullable(),
5339
+ valid_to: z.iso.datetime().nullable(),
5340
+ created_at: z.iso.datetime(),
5341
+ updated_at: z.iso.datetime()
5342
+ });
5343
+ /**
5344
+ * Parameters for creating a conditional wage or fringe adjustment in a pay-rate rule package.
5345
+ */
5346
+ export const zPayRatesRuleParameters = z.object({
5347
+ effect: zRateRuleEffect,
5348
+ conditions: z.array(zRateRuleCondition).optional(),
5349
+ effective_date: z.iso.date().optional()
5350
+ });
5351
+ /**
5352
+ * Change a rule from an effective date forward. Omitted effect or conditions keep that part of the targeted version. When the targeted recipe changes, the resulting complete recipe applies from that coordinate across later scheduled versions; an unchanged recipe does not alter later scheduled versions. An empty conditions list makes the rule unconditional. Omit effective_from to correct the selected version from its exact existing start. A rule with an unbounded lower limit requires effective_from.
5353
+ */
5354
+ export const zPayRatesRuleUpdateParameters = z.object({
5355
+ effect: zRateRuleEffect.optional(),
5356
+ conditions: z.array(zRateRuleCondition).optional(),
5357
+ effective_from: z.iso.date().optional()
5358
+ });
5359
+ /**
5360
+ * Parameters for moving where a pay-rate rule family's valid-time timeline begins.
5361
+ */
5362
+ export const zPayRatesRuleGenesisParameters = z.object({
5363
+ effective_date: z.iso.date()
5364
+ });
5365
+ /**
5366
+ * Parameters for scheduling when a pay-rate rule family stops being valid.
5367
+ */
5368
+ export const zPayRatesRuleScheduledTerminationParameters = z.object({
5369
+ effective_date: z.iso.date()
5370
+ });
5371
+ /**
5372
+ * Schedule a rule recipe change from a company-local effective date.
5373
+ */
5374
+ export const zPayRatesRuleScheduledChangeParameters = z.object({
5375
+ effective_date: z.iso.date(),
5376
+ effect: zRateRuleEffect.optional(),
5377
+ conditions: z.array(zRateRuleCondition).optional()
5378
+ });
5379
+ export const zPayRatesRuleHistoryCorrectionObject = z.object({
5380
+ pay_rates_rule_id: z.string(),
5381
+ pay_rates_rule_package_id: z.string(),
5382
+ currency: z.string(),
5383
+ effect: zRateRuleEffect,
5384
+ conditions: z.array(zRateRuleCondition),
5385
+ valid_from: z.iso.datetime().nullable(),
5386
+ valid_to: z.iso.datetime().nullable(),
5387
+ created_at: z.iso.datetime(),
5388
+ updated_at: z.iso.datetime()
5389
+ });
5390
+ export const zPayRatesRuleHistoryVersionObject = z.object({
5391
+ pay_rates_rule_id: z.string(),
5392
+ pay_rates_rule_package_id: z.string(),
5393
+ currency: z.string(),
5394
+ effect: zRateRuleEffect,
5395
+ conditions: z.array(zRateRuleCondition),
5396
+ valid_from: z.iso.datetime().nullable(),
5397
+ valid_to: z.iso.datetime().nullable(),
5398
+ created_at: z.iso.datetime(),
5399
+ updated_at: z.iso.datetime(),
5400
+ version_status: z.enum([
5401
+ 'scheduled',
5402
+ 'current',
5403
+ 'historical'
5404
+ ]),
5405
+ corrections: z.array(zPayRatesRuleHistoryCorrectionObject)
5406
+ });
5294
5407
  /**
5295
5408
  * An overtime rule (daily or weekly) belonging to an overtime package. It sets a pay multiplier that applies once a worked-hours threshold — and any day or date qualifier — is met. `valid_from`/`valid_to` bound the window this version is in effect.
5296
5409
  */
@@ -8465,6 +8578,202 @@ export const zUpdateOvertimeRulePath = z.object({
8465
8578
  * Success
8466
8579
  */
8467
8580
  export const zUpdateOvertimeRuleResponse = zOvertimeRuleResponseObject;
8581
+ export const zShiftPayRateRuleGenesisBody = zPayRatesRuleGenesisParameters;
8582
+ export const zShiftPayRateRuleGenesisHeaders = z.object({
8583
+ 'If-Match': z.string()
8584
+ });
8585
+ export const zShiftPayRateRuleGenesisPath = z.object({
8586
+ rule_package_id: z.string(),
8587
+ rule_id: z.string()
8588
+ });
8589
+ /**
8590
+ * Success
8591
+ */
8592
+ export const zShiftPayRateRuleGenesisResponse = zPayRatesRuleResponseObject;
8593
+ export const zListPayRateRuleHistoryPath = z.object({
8594
+ rule_package_id: z.string(),
8595
+ rule_id: z.string()
8596
+ });
8597
+ export const zListPayRateRuleHistoryQuery = z.object({
8598
+ 'as_of[valid]': z.string().optional(),
8599
+ 'as_of[transaction]': z.string().optional(),
8600
+ 'page[cursor]': z.string().optional(),
8601
+ 'page[limit]': z.int().gte(1).optional().default(20),
8602
+ page: z.string().optional()
8603
+ });
8604
+ /**
8605
+ * Success
8606
+ */
8607
+ export const zListPayRateRuleHistoryResponse = z.object({
8608
+ meta: zMeta,
8609
+ links: zLinks,
8610
+ data: z.array(zPayRatesRuleHistoryVersionObject)
8611
+ });
8612
+ export const zCancelPayRateRuleScheduledChangesHeaders = z.object({
8613
+ 'If-Match': z.string()
8614
+ });
8615
+ export const zCancelPayRateRuleScheduledChangesPath = z.object({
8616
+ rule_package_id: z.string(),
8617
+ rule_id: z.string()
8618
+ });
8619
+ /**
8620
+ * Success
8621
+ */
8622
+ export const zCancelPayRateRuleScheduledChangesResponse = zPayRatesRuleResponseObject;
8623
+ export const zListPayRateRuleScheduledChangesPath = z.object({
8624
+ rule_package_id: z.string(),
8625
+ rule_id: z.string()
8626
+ });
8627
+ export const zListPayRateRuleScheduledChangesQuery = z.object({
8628
+ 'as_of[valid]': z.string().optional(),
8629
+ 'as_of[transaction]': z.string().optional(),
8630
+ 'page[cursor]': z.string().optional(),
8631
+ 'page[limit]': z.int().gte(1).optional().default(20),
8632
+ page: z.string().optional()
8633
+ });
8634
+ /**
8635
+ * Success
8636
+ */
8637
+ export const zListPayRateRuleScheduledChangesResponse = z.object({
8638
+ meta: zMeta,
8639
+ links: zLinks,
8640
+ data: z.array(zPayRatesRuleHistoryVersionObject)
8641
+ });
8642
+ export const zSchedulePayRateRuleChangeBody = zPayRatesRuleScheduledChangeParameters;
8643
+ export const zSchedulePayRateRuleChangeHeaders = z.object({
8644
+ 'If-Match': z.string()
8645
+ });
8646
+ export const zSchedulePayRateRuleChangePath = z.object({
8647
+ rule_package_id: z.string(),
8648
+ rule_id: z.string()
8649
+ });
8650
+ /**
8651
+ * Success without a new segment
8652
+ */
8653
+ export const zSchedulePayRateRuleChangeResponse = zPayRatesRuleResponseObject;
8654
+ export const zCancelPayRateRuleScheduledTerminationHeaders = z.object({
8655
+ 'If-Match': z.string()
8656
+ });
8657
+ export const zCancelPayRateRuleScheduledTerminationPath = z.object({
8658
+ rule_package_id: z.string(),
8659
+ rule_id: z.string()
8660
+ });
8661
+ /**
8662
+ * Success
8663
+ */
8664
+ export const zCancelPayRateRuleScheduledTerminationResponse = zPayRatesRuleResponseObject;
8665
+ export const zSchedulePayRateRuleTerminationBody = zPayRatesRuleScheduledTerminationParameters;
8666
+ export const zSchedulePayRateRuleTerminationHeaders = z.object({
8667
+ 'If-Match': z.string()
8668
+ });
8669
+ export const zSchedulePayRateRuleTerminationPath = z.object({
8670
+ rule_package_id: z.string(),
8671
+ rule_id: z.string()
8672
+ });
8673
+ /**
8674
+ * Created
8675
+ */
8676
+ export const zSchedulePayRateRuleTerminationResponse = zPayRatesRuleResponseObject;
8677
+ export const zListPayRateRulesPath = z.object({
8678
+ rule_package_id: z.string()
8679
+ });
8680
+ export const zListPayRateRulesQuery = z.object({
8681
+ 'as_of[valid]': z.iso.datetime().optional(),
8682
+ as_of: z.string().optional(),
8683
+ 'as_of[bogus_axis]': z.string().optional(),
8684
+ 'as_of[valid][gte]': z.string().optional(),
8685
+ 'as_of[transaction]': z.string().optional(),
8686
+ filter: z.string().optional(),
8687
+ 'filter[unexpected]': z.string().optional(),
8688
+ 'page[cursor]': z.string().optional(),
8689
+ 'page[limit]': z.int().gte(1).optional().default(20),
8690
+ page: z.string().optional()
8691
+ });
8692
+ /**
8693
+ * Success
8694
+ */
8695
+ export const zListPayRateRulesResponse = z.object({
8696
+ meta: zMeta,
8697
+ links: zLinks,
8698
+ data: z.array(zPayRatesRuleResponseObject)
8699
+ });
8700
+ export const zCreatePayRateRuleBody = zPayRatesRuleParameters;
8701
+ export const zCreatePayRateRulePath = z.object({
8702
+ rule_package_id: z.string()
8703
+ });
8704
+ /**
8705
+ * Created
8706
+ */
8707
+ export const zCreatePayRateRuleResponse = zPayRatesRuleResponseObject;
8708
+ export const zDeletePayRateRuleHeaders = z.object({
8709
+ 'If-Match': z.string()
8710
+ });
8711
+ export const zDeletePayRateRulePath = z.object({
8712
+ rule_package_id: z.string(),
8713
+ id: z.string()
8714
+ });
8715
+ /**
8716
+ * Success
8717
+ */
8718
+ export const zDeletePayRateRuleResponse = zPayRatesRuleResponseObject;
8719
+ export const zGetPayRateRulePath = z.object({
8720
+ rule_package_id: z.string(),
8721
+ id: z.string()
8722
+ });
8723
+ export const zGetPayRateRuleQuery = z.object({
8724
+ 'as_of[valid]': z.iso.datetime().optional()
8725
+ });
8726
+ /**
8727
+ * Success
8728
+ */
8729
+ export const zGetPayRateRuleResponse = zPayRatesRuleResponseObject;
8730
+ export const zUpdatePayRateRuleBody = zPayRatesRuleUpdateParameters;
8731
+ export const zUpdatePayRateRuleHeaders = z.object({
8732
+ 'If-Match': z.string()
8733
+ });
8734
+ export const zUpdatePayRateRulePath = z.object({
8735
+ rule_package_id: z.string(),
8736
+ id: z.string()
8737
+ });
8738
+ /**
8739
+ * Success
8740
+ */
8741
+ export const zUpdatePayRateRuleResponse = zPayRatesRuleResponseObject;
8742
+ export const zListPayRateRulePackagesQuery = z.object({
8743
+ 'filter[scoped_to_job_id]': z.string().optional(),
8744
+ 'filter[scoped_to_job_id][null]': z.boolean().optional(),
8745
+ 'filter[default]': z.boolean().optional(),
8746
+ 'filter[selectable]': z.boolean().optional(),
8747
+ 'filter[created_at][gte]': z.iso.datetime().optional(),
8748
+ 'filter[created_at][lte]': z.iso.datetime().optional(),
8749
+ 'filter[updated_at][gte]': z.iso.datetime().optional(),
8750
+ 'filter[updated_at][lte]': z.iso.datetime().optional(),
8751
+ filter: z.string().optional(),
8752
+ 'filter[unexpected]': z.string().optional(),
8753
+ 'page[cursor]': z.string().optional(),
8754
+ 'page[limit]': z.int().gte(1).optional().default(20),
8755
+ page: z.string().optional()
8756
+ });
8757
+ /**
8758
+ * Success
8759
+ */
8760
+ export const zListPayRateRulePackagesResponse = z.object({
8761
+ meta: zMeta,
8762
+ links: zLinks,
8763
+ data: z.array(zPayRatesRulePackageResponseObject)
8764
+ });
8765
+ export const zCreatePayRateRulePackageBody = zPayRatesRulePackageParameters;
8766
+ /**
8767
+ * Created
8768
+ */
8769
+ export const zCreatePayRateRulePackageResponse = zPayRatesRulePackageResponseObject;
8770
+ export const zGetPayRateRulePackagePath = z.object({
8771
+ id: z.string()
8772
+ });
8773
+ /**
8774
+ * Success
8775
+ */
8776
+ export const zGetPayRateRulePackageResponse = zPayRatesRulePackageResponseObject;
8468
8777
  export const zListAggregateTimeImportsPath = z.object({
8469
8778
  pay_period_id: z.string()
8470
8779
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dsptch-work/api-client",
3
- "version": "0.20.0",
3
+ "version": "0.21.0",
4
4
  "description": "Generated TypeScript client for the DSPTCH REST API.",
5
5
  "keywords": [
6
6
  "dsptch",