@dsptch-work/api-client 0.7.0 → 0.9.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 +70 -0
- package/dist/gen/index.d.ts +1 -1
- package/dist/gen/sdk.gen.d.ts +83 -9
- package/dist/gen/sdk.gen.js +98 -18
- package/dist/gen/types.gen.d.ts +146 -87
- package/dist/gen/zod.gen.d.ts +194 -145
- package/dist/gen/zod.gen.js +73 -47
- package/package.json +1 -1
package/dist/gen/zod.gen.js
CHANGED
|
@@ -200,6 +200,12 @@ export const zProblem = z.object({
|
|
|
200
200
|
*
|
|
201
201
|
* A deletion is refused by the record's guards — dependent records restrict removal. The message carries the specifics; remove or reassign the dependents first.
|
|
202
202
|
*
|
|
203
|
+
* ### interval_too_wide
|
|
204
|
+
*
|
|
205
|
+
* **Interval Too Wide**
|
|
206
|
+
*
|
|
207
|
+
* A change feed was asked for a span of event time wider than one request may cover. Split it into consecutive windows no wider than the maximum stated in the feed's operation and read them in order; their pages concatenate without gaps. Both bounds are inclusive, so an event stamped exactly on a shared bound appears in both pages — deduplicate as usual.
|
|
208
|
+
*
|
|
203
209
|
* ### invalid_date
|
|
204
210
|
*
|
|
205
211
|
* **Unparseable Date Value**
|
|
@@ -210,7 +216,7 @@ export const zProblem = z.object({
|
|
|
210
216
|
*
|
|
211
217
|
* **Invalid Filter Value**
|
|
212
218
|
*
|
|
213
|
-
* A declared filter key carries a value outside its accepted set — a non-boolean on a boolean key,
|
|
219
|
+
* A declared filter key carries a value outside its accepted set — a non-boolean on a boolean key, a token outside an enum key's vocabulary, or a range whose upper bound precedes its lower bound. Send an accepted value.
|
|
214
220
|
*
|
|
215
221
|
* ### invalid_iso8601_duration
|
|
216
222
|
*
|
|
@@ -278,12 +284,6 @@ export const zProblem = z.object({
|
|
|
278
284
|
*
|
|
279
285
|
* The apprentice's wage schedule does not belong to the program in the URL. Use a schedule from that program.
|
|
280
286
|
*
|
|
281
|
-
* ### watermark_outside_retention
|
|
282
|
-
*
|
|
283
|
-
* **Watermark Outside Retention Window**
|
|
284
|
-
*
|
|
285
|
-
* A change feed was polled from a watermark older than the window it covers, so no page it could return would be complete. Resync instead: re-crawl the live index, diff it against your replica, and resume polling from the `meta.complete_through` of the first page you then read.
|
|
286
|
-
*
|
|
287
287
|
* ## 428
|
|
288
288
|
*
|
|
289
289
|
* ### precondition_required
|
|
@@ -346,6 +346,7 @@ export const zProblemTypeCatalog = z.enum([
|
|
|
346
346
|
'company_not_employer',
|
|
347
347
|
'confirm_apprenticeship_conflict',
|
|
348
348
|
'destroy_restricted',
|
|
349
|
+
'interval_too_wide',
|
|
349
350
|
'invalid_date',
|
|
350
351
|
'invalid_filter_value',
|
|
351
352
|
'invalid_iso8601_duration',
|
|
@@ -359,7 +360,6 @@ export const zProblemTypeCatalog = z.enum([
|
|
|
359
360
|
'user_not_company_member',
|
|
360
361
|
'validation_failed',
|
|
361
362
|
'wage_schedule_outside_program',
|
|
362
|
-
'watermark_outside_retention',
|
|
363
363
|
'precondition_required',
|
|
364
364
|
'too_many_requests',
|
|
365
365
|
'internal_error',
|
|
@@ -683,7 +683,7 @@ export const zTimecodeResponseObject = z.object({
|
|
|
683
683
|
'job_with_timecode'
|
|
684
684
|
]),
|
|
685
685
|
default_for_company_id: z.string().nullable(),
|
|
686
|
-
valid_from: z.iso.datetime(),
|
|
686
|
+
valid_from: z.iso.datetime().nullable(),
|
|
687
687
|
valid_to: z.iso.datetime().nullable(),
|
|
688
688
|
transaction_from: z.iso.datetime(),
|
|
689
689
|
transaction_to: z.iso.datetime().nullable(),
|
|
@@ -713,7 +713,7 @@ export const zTimecodeHistoryVersionObject = z.object({
|
|
|
713
713
|
'job_with_timecode'
|
|
714
714
|
]),
|
|
715
715
|
default_for_company_id: z.string().nullable(),
|
|
716
|
-
valid_from: z.iso.datetime(),
|
|
716
|
+
valid_from: z.iso.datetime().nullable(),
|
|
717
717
|
valid_to: z.iso.datetime().nullable(),
|
|
718
718
|
transaction_from: z.iso.datetime(),
|
|
719
719
|
transaction_to: z.iso.datetime().nullable(),
|
|
@@ -969,7 +969,7 @@ export const zTimeCardPerDiemParameters = z.object({
|
|
|
969
969
|
*/
|
|
970
970
|
export const zHolidayResponseObject = z.object({
|
|
971
971
|
id: z.string(),
|
|
972
|
-
|
|
972
|
+
timekeeping_pay_period_config_id: z.string(),
|
|
973
973
|
date: z.iso.date(),
|
|
974
974
|
name: z.string(),
|
|
975
975
|
holiday_type: z.enum(['fixed', 'floating']),
|
|
@@ -990,7 +990,7 @@ export const zHolidayResponseObject = z.object({
|
|
|
990
990
|
*/
|
|
991
991
|
export const zAttestationConfigResponseObject = z.object({
|
|
992
992
|
id: z.string(),
|
|
993
|
-
|
|
993
|
+
timekeeping_pay_period_config_id: z.string(),
|
|
994
994
|
content: z.string().nullable(),
|
|
995
995
|
expected_response: z.boolean(),
|
|
996
996
|
us_state_id: z.string().nullable(),
|
|
@@ -1007,10 +1007,10 @@ export const zAttestationConfigParameters = z.object({
|
|
|
1007
1007
|
us_state_id: z.string().nullish()
|
|
1008
1008
|
});
|
|
1009
1009
|
/**
|
|
1010
|
-
* 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. Read-only; only the currently-valid version is returned, keyed by its stable
|
|
1010
|
+
* 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. Read-only; only the currently-valid version is returned, keyed by its stable id.
|
|
1011
1011
|
*/
|
|
1012
1012
|
export const zPayPeriodConfigResponseObject = z.object({
|
|
1013
|
-
|
|
1013
|
+
id: z.string(),
|
|
1014
1014
|
company_id: z.string(),
|
|
1015
1015
|
name: z.string(),
|
|
1016
1016
|
frequency: z.enum(['weekly', 'biweekly']),
|
|
@@ -1042,12 +1042,12 @@ export const zPayPeriodConfigResponseObject = z.object({
|
|
|
1042
1042
|
requires_external_map_contributor: z.boolean(),
|
|
1043
1043
|
paid_after_holiday: z.boolean(),
|
|
1044
1044
|
demo: z.boolean().nullable(),
|
|
1045
|
-
valid_from: z.iso.datetime(),
|
|
1045
|
+
valid_from: z.iso.datetime().nullable(),
|
|
1046
1046
|
valid_to: z.iso.datetime().nullable(),
|
|
1047
1047
|
created_at: z.iso.datetime()
|
|
1048
1048
|
});
|
|
1049
1049
|
export const zPayPeriodConfigHistoryVersionObject = z.object({
|
|
1050
|
-
|
|
1050
|
+
id: z.string(),
|
|
1051
1051
|
company_id: z.string(),
|
|
1052
1052
|
name: z.string(),
|
|
1053
1053
|
frequency: z.enum(['weekly', 'biweekly']),
|
|
@@ -1079,7 +1079,7 @@ export const zPayPeriodConfigHistoryVersionObject = z.object({
|
|
|
1079
1079
|
requires_external_map_contributor: z.boolean(),
|
|
1080
1080
|
paid_after_holiday: z.boolean(),
|
|
1081
1081
|
demo: z.boolean().nullable(),
|
|
1082
|
-
valid_from: z.iso.datetime(),
|
|
1082
|
+
valid_from: z.iso.datetime().nullable(),
|
|
1083
1083
|
valid_to: z.iso.datetime().nullable(),
|
|
1084
1084
|
created_at: z.iso.datetime(),
|
|
1085
1085
|
version_status: z.enum([
|
|
@@ -1772,7 +1772,6 @@ export const zJobParameters = z.object({
|
|
|
1772
1772
|
end_time: z.string().nullish(),
|
|
1773
1773
|
tz_name: z.string().optional(),
|
|
1774
1774
|
time_card_start_day: zTimeCardStartDay.optional(),
|
|
1775
|
-
require_clock_in: z.boolean().nullish(),
|
|
1776
1775
|
clock_in_requirement: z.enum([
|
|
1777
1776
|
'none',
|
|
1778
1777
|
'warning',
|
|
@@ -2088,7 +2087,7 @@ export const zCompensationElementResponseObject = z.object({
|
|
|
2088
2087
|
*/
|
|
2089
2088
|
export const zPayrollFringeBenefitPlanResponseObject = z.object({
|
|
2090
2089
|
id: z.string(),
|
|
2091
|
-
|
|
2090
|
+
timekeeping_pay_period_config_id: z.string(),
|
|
2092
2091
|
name: z.string(),
|
|
2093
2092
|
plan_number: z.string(),
|
|
2094
2093
|
funded: z.boolean(),
|
|
@@ -2112,10 +2111,10 @@ export const zPayrollFringeBenefitPlanResponseObject = z.object({
|
|
|
2112
2111
|
updated_at: z.iso.datetime()
|
|
2113
2112
|
});
|
|
2114
2113
|
/**
|
|
2115
|
-
* Request body for creating or updating a fringe-benefit plan.
|
|
2114
|
+
* Request body for creating or updating a fringe-benefit plan. timekeeping_pay_period_config_id, name, plan_number, and benefit_category are required.
|
|
2116
2115
|
*/
|
|
2117
2116
|
export const zPayrollFringeBenefitPlanParameters = z.object({
|
|
2118
|
-
|
|
2117
|
+
timekeeping_pay_period_config_id: z.string(),
|
|
2119
2118
|
name: z.string(),
|
|
2120
2119
|
plan_number: z.string(),
|
|
2121
2120
|
funded: z.boolean().optional(),
|
|
@@ -2141,7 +2140,6 @@ export const zPayrollFringeBenefitPlanParameters = z.object({
|
|
|
2141
2140
|
*/
|
|
2142
2141
|
export const zPayrollExternalMapResponseObject = z.object({
|
|
2143
2142
|
id: z.string(),
|
|
2144
|
-
bitemporal_id: z.string(),
|
|
2145
2143
|
name: z.string(),
|
|
2146
2144
|
payrolls_compensation_element_id: z.string(),
|
|
2147
2145
|
compensation_element_name: z.string(),
|
|
@@ -2154,7 +2152,7 @@ export const zPayrollExternalMapResponseObject = z.object({
|
|
|
2154
2152
|
'garnishment',
|
|
2155
2153
|
'other'
|
|
2156
2154
|
]),
|
|
2157
|
-
|
|
2155
|
+
timekeeping_pay_period_config_id: z.string().nullable(),
|
|
2158
2156
|
payrolls_fringe_benefit_plan_id: z.string().nullable(),
|
|
2159
2157
|
contributor: z.enum([
|
|
2160
2158
|
'any',
|
|
@@ -2164,7 +2162,7 @@ export const zPayrollExternalMapResponseObject = z.object({
|
|
|
2164
2162
|
annual_periods: z.int(),
|
|
2165
2163
|
created_by_user_id: z.string().nullable(),
|
|
2166
2164
|
global: z.boolean(),
|
|
2167
|
-
valid_from: z.iso.datetime(),
|
|
2165
|
+
valid_from: z.iso.datetime().nullable(),
|
|
2168
2166
|
valid_to: z.iso.datetime().nullable(),
|
|
2169
2167
|
transaction_from: z.iso.datetime(),
|
|
2170
2168
|
transaction_to: z.iso.datetime().nullable(),
|
|
@@ -2173,7 +2171,6 @@ export const zPayrollExternalMapResponseObject = z.object({
|
|
|
2173
2171
|
});
|
|
2174
2172
|
export const zPayrollExternalMapHistoryVersionObject = z.object({
|
|
2175
2173
|
id: z.string(),
|
|
2176
|
-
bitemporal_id: z.string(),
|
|
2177
2174
|
name: z.string(),
|
|
2178
2175
|
payrolls_compensation_element_id: z.string(),
|
|
2179
2176
|
compensation_element_name: z.string(),
|
|
@@ -2186,7 +2183,7 @@ export const zPayrollExternalMapHistoryVersionObject = z.object({
|
|
|
2186
2183
|
'garnishment',
|
|
2187
2184
|
'other'
|
|
2188
2185
|
]),
|
|
2189
|
-
|
|
2186
|
+
timekeeping_pay_period_config_id: z.string().nullable(),
|
|
2190
2187
|
payrolls_fringe_benefit_plan_id: z.string().nullable(),
|
|
2191
2188
|
contributor: z.enum([
|
|
2192
2189
|
'any',
|
|
@@ -2196,7 +2193,7 @@ export const zPayrollExternalMapHistoryVersionObject = z.object({
|
|
|
2196
2193
|
annual_periods: z.int(),
|
|
2197
2194
|
created_by_user_id: z.string().nullable(),
|
|
2198
2195
|
global: z.boolean(),
|
|
2199
|
-
valid_from: z.iso.datetime(),
|
|
2196
|
+
valid_from: z.iso.datetime().nullable(),
|
|
2200
2197
|
valid_to: z.iso.datetime().nullable(),
|
|
2201
2198
|
transaction_from: z.iso.datetime(),
|
|
2202
2199
|
transaction_to: z.iso.datetime().nullable(),
|
|
@@ -3150,7 +3147,7 @@ export const zUserResponseObject = z.object({
|
|
|
3150
3147
|
hire_date: z.string().nullable(),
|
|
3151
3148
|
termination_date: z.string().nullable(),
|
|
3152
3149
|
employment_window: z.object({
|
|
3153
|
-
valid_from: z.iso.datetime(),
|
|
3150
|
+
valid_from: z.iso.datetime().nullable(),
|
|
3154
3151
|
valid_to: z.iso.datetime().nullable()
|
|
3155
3152
|
}),
|
|
3156
3153
|
manager_user_id: z.string().nullable(),
|
|
@@ -3437,6 +3434,18 @@ export const zFormSubmissionIndexObject = z.object({
|
|
|
3437
3434
|
updated_at: z.iso.datetime().optional()
|
|
3438
3435
|
})).optional()
|
|
3439
3436
|
});
|
|
3437
|
+
/**
|
|
3438
|
+
* A page of change events for form submissions, written at archival time; archiving hard-deletes the live row, so this feed is the deletion signal the main index cannot give. Visibility derives from metadata retained at archival time — a subset of the live submission index, never a superset.
|
|
3439
|
+
*/
|
|
3440
|
+
export const zFormSubmissionDeltasResponse = z.object({
|
|
3441
|
+
meta: zDeltaMeta,
|
|
3442
|
+
links: zLinks,
|
|
3443
|
+
data: z.array(z.object({
|
|
3444
|
+
event: z.enum(['destroy']),
|
|
3445
|
+
id: z.uuid(),
|
|
3446
|
+
timestamp: z.iso.datetime()
|
|
3447
|
+
}))
|
|
3448
|
+
});
|
|
3440
3449
|
/**
|
|
3441
3450
|
* A page of change events (create, update, destroy) for time entries, drawn from version history; scoped by the surviving parent time card, so a destroyed entry's history stays visible.
|
|
3442
3451
|
*/
|
|
@@ -3462,7 +3471,6 @@ export const zPayPeriodsResponseObject = z.object({
|
|
|
3462
3471
|
data: z.array(z.object({
|
|
3463
3472
|
id: z.string().optional(),
|
|
3464
3473
|
timekeeping_pay_period_config_id: z.string().optional(),
|
|
3465
|
-
pay_period_config_uid: z.string().optional(),
|
|
3466
3474
|
pay_date: z.iso.date().optional(),
|
|
3467
3475
|
start_time: z.iso.datetime().optional(),
|
|
3468
3476
|
end_time: z.iso.datetime().optional(),
|
|
@@ -3611,7 +3619,7 @@ export const zFederalJobWageDeterminationResponseObject = z.object({
|
|
|
3611
3619
|
'residential'
|
|
3612
3620
|
]),
|
|
3613
3621
|
general_wage_determination: z.string().nullable(),
|
|
3614
|
-
valid_from: z.iso.datetime(),
|
|
3622
|
+
valid_from: z.iso.datetime().nullable(),
|
|
3615
3623
|
valid_to: z.iso.datetime().nullable(),
|
|
3616
3624
|
created_at: z.iso.datetime(),
|
|
3617
3625
|
updated_at: z.iso.datetime()
|
|
@@ -3649,7 +3657,7 @@ export const zRegionalJobWageDeterminationResponseObject = z.object({
|
|
|
3649
3657
|
fringe_rate_cents: z.string(),
|
|
3650
3658
|
general_wage_determination: z.string().nullable(),
|
|
3651
3659
|
regional_fields: zRegionalWageDeterminationFields,
|
|
3652
|
-
valid_from: z.iso.datetime(),
|
|
3660
|
+
valid_from: z.iso.datetime().nullable(),
|
|
3653
3661
|
valid_to: z.iso.datetime().nullable(),
|
|
3654
3662
|
created_at: z.iso.datetime(),
|
|
3655
3663
|
updated_at: z.iso.datetime()
|
|
@@ -3678,7 +3686,7 @@ export const zFederalJobWageDeterminationHistoryVersionObject = z.object({
|
|
|
3678
3686
|
'residential'
|
|
3679
3687
|
]),
|
|
3680
3688
|
general_wage_determination: z.string().nullable(),
|
|
3681
|
-
valid_from: z.iso.datetime(),
|
|
3689
|
+
valid_from: z.iso.datetime().nullable(),
|
|
3682
3690
|
valid_to: z.iso.datetime().nullable(),
|
|
3683
3691
|
created_at: z.iso.datetime(),
|
|
3684
3692
|
updated_at: z.iso.datetime(),
|
|
@@ -3700,7 +3708,7 @@ export const zRegionalJobWageDeterminationHistoryVersionObject = z.object({
|
|
|
3700
3708
|
fringe_rate_cents: z.string(),
|
|
3701
3709
|
general_wage_determination: z.string().nullable(),
|
|
3702
3710
|
regional_fields: zRegionalWageDeterminationFields,
|
|
3703
|
-
valid_from: z.iso.datetime(),
|
|
3711
|
+
valid_from: z.iso.datetime().nullable(),
|
|
3704
3712
|
valid_to: z.iso.datetime().nullable(),
|
|
3705
3713
|
created_at: z.iso.datetime(),
|
|
3706
3714
|
updated_at: z.iso.datetime(),
|
|
@@ -3824,7 +3832,7 @@ export const zRateRuleResponseObject = z.object({
|
|
|
3824
3832
|
pay_rates_rule_package_id: z.string(),
|
|
3825
3833
|
effect: zRateRuleEffect,
|
|
3826
3834
|
conditions: z.array(zRateRuleCondition),
|
|
3827
|
-
valid_from: z.iso.datetime(),
|
|
3835
|
+
valid_from: z.iso.datetime().nullable(),
|
|
3828
3836
|
valid_to: z.iso.datetime().nullable(),
|
|
3829
3837
|
created_at: z.iso.datetime(),
|
|
3830
3838
|
updated_at: z.iso.datetime()
|
|
@@ -3836,7 +3844,7 @@ export const zRateRuleHistoryVersionObject = z.object({
|
|
|
3836
3844
|
pay_rates_rule_package_id: z.string(),
|
|
3837
3845
|
effect: zRateRuleEffect,
|
|
3838
3846
|
conditions: z.array(zRateRuleCondition),
|
|
3839
|
-
valid_from: z.iso.datetime(),
|
|
3847
|
+
valid_from: z.iso.datetime().nullable(),
|
|
3840
3848
|
valid_to: z.iso.datetime().nullable(),
|
|
3841
3849
|
created_at: z.iso.datetime(),
|
|
3842
3850
|
updated_at: z.iso.datetime(),
|
|
@@ -5860,6 +5868,24 @@ export const zListFormDefinitionsQuery = z.object({
|
|
|
5860
5868
|
* Success
|
|
5861
5869
|
*/
|
|
5862
5870
|
export const zListFormDefinitionsResponse = zFormDefinitionResponseObject;
|
|
5871
|
+
export const zListFormSubmissionDeltasQuery = z.object({
|
|
5872
|
+
'filter[event]': z.enum([
|
|
5873
|
+
'create',
|
|
5874
|
+
'update',
|
|
5875
|
+
'destroy'
|
|
5876
|
+
]).optional(),
|
|
5877
|
+
'filter[created_at][gte]': z.iso.datetime().optional(),
|
|
5878
|
+
'filter[created_at][lte]': z.iso.datetime().optional(),
|
|
5879
|
+
filter: z.string().optional(),
|
|
5880
|
+
'filter[unexpected]': z.string().optional(),
|
|
5881
|
+
'page[cursor]': z.string().optional(),
|
|
5882
|
+
'page[limit]': z.int().gte(1).optional().default(20),
|
|
5883
|
+
page: z.string().optional()
|
|
5884
|
+
});
|
|
5885
|
+
/**
|
|
5886
|
+
* Success
|
|
5887
|
+
*/
|
|
5888
|
+
export const zListFormSubmissionDeltasResponse = zFormSubmissionDeltasResponse;
|
|
5863
5889
|
export const zListFormSubmissionsQuery = z.object({
|
|
5864
5890
|
'filter[form_definition_id]': z.string().optional(),
|
|
5865
5891
|
'filter[created_at][gte]': z.iso.datetime().optional(),
|
|
@@ -6258,7 +6284,7 @@ export const zListExternalMapHistoryResponse = z.object({
|
|
|
6258
6284
|
});
|
|
6259
6285
|
export const zListExternalMapsQuery = z.object({
|
|
6260
6286
|
'filter[name]': z.string().optional(),
|
|
6261
|
-
'filter[
|
|
6287
|
+
'filter[timekeeping_pay_period_config_id]': z.string().optional(),
|
|
6262
6288
|
'filter[global]': z.boolean().optional(),
|
|
6263
6289
|
filter: z.string().optional(),
|
|
6264
6290
|
'filter[unexpected]': z.string().optional(),
|
|
@@ -6292,7 +6318,7 @@ export const zGetExternalMapQuery = z.object({
|
|
|
6292
6318
|
export const zGetExternalMapResponse = zPayrollExternalMapResponseObject;
|
|
6293
6319
|
export const zListFringeBenefitPlansQuery = z.object({
|
|
6294
6320
|
'filter[name]': z.string().optional(),
|
|
6295
|
-
'filter[
|
|
6321
|
+
'filter[timekeeping_pay_period_config_id]': z.string().optional(),
|
|
6296
6322
|
filter: z.string().optional(),
|
|
6297
6323
|
'filter[unexpected]': z.string().optional(),
|
|
6298
6324
|
'page[cursor]': z.string().optional(),
|
|
@@ -7156,7 +7182,7 @@ export const zCreateManagerTimeEntryApprovalPath = z.object({
|
|
|
7156
7182
|
*/
|
|
7157
7183
|
export const zCreateManagerTimeEntryApprovalResponse = zTimeEntryApprovalResponseObject;
|
|
7158
7184
|
export const zListAttestationConfigsPath = z.object({
|
|
7159
|
-
|
|
7185
|
+
pay_period_config_id: z.string()
|
|
7160
7186
|
});
|
|
7161
7187
|
/**
|
|
7162
7188
|
* Success
|
|
@@ -7168,14 +7194,14 @@ export const zListAttestationConfigsResponse = z.object({
|
|
|
7168
7194
|
});
|
|
7169
7195
|
export const zCreateAttestationConfigBody = zAttestationConfigParameters;
|
|
7170
7196
|
export const zCreateAttestationConfigPath = z.object({
|
|
7171
|
-
|
|
7197
|
+
pay_period_config_id: z.string()
|
|
7172
7198
|
});
|
|
7173
7199
|
/**
|
|
7174
7200
|
* Created
|
|
7175
7201
|
*/
|
|
7176
7202
|
export const zCreateAttestationConfigResponse = zAttestationConfigResponseObject;
|
|
7177
7203
|
export const zDeleteAttestationConfigPath = z.object({
|
|
7178
|
-
|
|
7204
|
+
pay_period_config_id: z.string(),
|
|
7179
7205
|
id: z.string()
|
|
7180
7206
|
});
|
|
7181
7207
|
/**
|
|
@@ -7183,7 +7209,7 @@ export const zDeleteAttestationConfigPath = z.object({
|
|
|
7183
7209
|
*/
|
|
7184
7210
|
export const zDeleteAttestationConfigResponse = zAttestationConfigResponseObject;
|
|
7185
7211
|
export const zGetAttestationConfigPath = z.object({
|
|
7186
|
-
|
|
7212
|
+
pay_period_config_id: z.string(),
|
|
7187
7213
|
id: z.string()
|
|
7188
7214
|
});
|
|
7189
7215
|
/**
|
|
@@ -7191,7 +7217,7 @@ export const zGetAttestationConfigPath = z.object({
|
|
|
7191
7217
|
*/
|
|
7192
7218
|
export const zGetAttestationConfigResponse = zAttestationConfigResponseObject;
|
|
7193
7219
|
export const zListPayPeriodConfigHistoryPath = z.object({
|
|
7194
|
-
|
|
7220
|
+
pay_period_config_id: z.string()
|
|
7195
7221
|
});
|
|
7196
7222
|
export const zListPayPeriodConfigHistoryQuery = z.object({
|
|
7197
7223
|
'as_of[valid]': z.string().optional()
|
|
@@ -7205,7 +7231,7 @@ export const zListPayPeriodConfigHistoryResponse = z.object({
|
|
|
7205
7231
|
data: z.array(zPayPeriodConfigHistoryVersionObject).optional()
|
|
7206
7232
|
});
|
|
7207
7233
|
export const zListHolidaysPath = z.object({
|
|
7208
|
-
|
|
7234
|
+
pay_period_config_id: z.string()
|
|
7209
7235
|
});
|
|
7210
7236
|
export const zListHolidaysQuery = z.object({
|
|
7211
7237
|
'filter[overtime]': z.boolean().optional(),
|
|
@@ -7230,14 +7256,14 @@ export const zListHolidaysResponse = z.object({
|
|
|
7230
7256
|
});
|
|
7231
7257
|
export const zCreateHolidayBody = zHolidayParameters;
|
|
7232
7258
|
export const zCreateHolidayPath = z.object({
|
|
7233
|
-
|
|
7259
|
+
pay_period_config_id: z.string()
|
|
7234
7260
|
});
|
|
7235
7261
|
/**
|
|
7236
7262
|
* Created
|
|
7237
7263
|
*/
|
|
7238
7264
|
export const zCreateHolidayResponse = zHolidayResponseObject;
|
|
7239
7265
|
export const zDeleteHolidayPath = z.object({
|
|
7240
|
-
|
|
7266
|
+
pay_period_config_id: z.string(),
|
|
7241
7267
|
id: z.string()
|
|
7242
7268
|
});
|
|
7243
7269
|
/**
|
|
@@ -7246,7 +7272,7 @@ export const zDeleteHolidayPath = z.object({
|
|
|
7246
7272
|
export const zDeleteHolidayResponse = zHolidayResponseObject;
|
|
7247
7273
|
export const zUpdateHolidayBody = zHolidayParameters;
|
|
7248
7274
|
export const zUpdateHolidayPath = z.object({
|
|
7249
|
-
|
|
7275
|
+
pay_period_config_id: z.string(),
|
|
7250
7276
|
id: z.string()
|
|
7251
7277
|
});
|
|
7252
7278
|
/**
|
|
@@ -7272,7 +7298,7 @@ export const zListPayPeriodConfigsResponse = z.object({
|
|
|
7272
7298
|
data: z.array(zPayPeriodConfigResponseObject).optional()
|
|
7273
7299
|
});
|
|
7274
7300
|
export const zGetPayPeriodConfigPath = z.object({
|
|
7275
|
-
|
|
7301
|
+
id: z.string()
|
|
7276
7302
|
});
|
|
7277
7303
|
export const zGetPayPeriodConfigQuery = z.object({
|
|
7278
7304
|
'as_of[valid]': z.iso.datetime().optional()
|