@dsptch-work/api-client 0.8.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 +55 -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 -83
- package/dist/gen/zod.gen.d.ts +194 -141
- package/dist/gen/zod.gen.js +73 -46
- 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([
|
|
@@ -2087,7 +2087,7 @@ export const zCompensationElementResponseObject = z.object({
|
|
|
2087
2087
|
*/
|
|
2088
2088
|
export const zPayrollFringeBenefitPlanResponseObject = z.object({
|
|
2089
2089
|
id: z.string(),
|
|
2090
|
-
|
|
2090
|
+
timekeeping_pay_period_config_id: z.string(),
|
|
2091
2091
|
name: z.string(),
|
|
2092
2092
|
plan_number: z.string(),
|
|
2093
2093
|
funded: z.boolean(),
|
|
@@ -2111,10 +2111,10 @@ export const zPayrollFringeBenefitPlanResponseObject = z.object({
|
|
|
2111
2111
|
updated_at: z.iso.datetime()
|
|
2112
2112
|
});
|
|
2113
2113
|
/**
|
|
2114
|
-
* 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.
|
|
2115
2115
|
*/
|
|
2116
2116
|
export const zPayrollFringeBenefitPlanParameters = z.object({
|
|
2117
|
-
|
|
2117
|
+
timekeeping_pay_period_config_id: z.string(),
|
|
2118
2118
|
name: z.string(),
|
|
2119
2119
|
plan_number: z.string(),
|
|
2120
2120
|
funded: z.boolean().optional(),
|
|
@@ -2140,7 +2140,6 @@ export const zPayrollFringeBenefitPlanParameters = z.object({
|
|
|
2140
2140
|
*/
|
|
2141
2141
|
export const zPayrollExternalMapResponseObject = z.object({
|
|
2142
2142
|
id: z.string(),
|
|
2143
|
-
bitemporal_id: z.string(),
|
|
2144
2143
|
name: z.string(),
|
|
2145
2144
|
payrolls_compensation_element_id: z.string(),
|
|
2146
2145
|
compensation_element_name: z.string(),
|
|
@@ -2153,7 +2152,7 @@ export const zPayrollExternalMapResponseObject = z.object({
|
|
|
2153
2152
|
'garnishment',
|
|
2154
2153
|
'other'
|
|
2155
2154
|
]),
|
|
2156
|
-
|
|
2155
|
+
timekeeping_pay_period_config_id: z.string().nullable(),
|
|
2157
2156
|
payrolls_fringe_benefit_plan_id: z.string().nullable(),
|
|
2158
2157
|
contributor: z.enum([
|
|
2159
2158
|
'any',
|
|
@@ -2163,7 +2162,7 @@ export const zPayrollExternalMapResponseObject = z.object({
|
|
|
2163
2162
|
annual_periods: z.int(),
|
|
2164
2163
|
created_by_user_id: z.string().nullable(),
|
|
2165
2164
|
global: z.boolean(),
|
|
2166
|
-
valid_from: z.iso.datetime(),
|
|
2165
|
+
valid_from: z.iso.datetime().nullable(),
|
|
2167
2166
|
valid_to: z.iso.datetime().nullable(),
|
|
2168
2167
|
transaction_from: z.iso.datetime(),
|
|
2169
2168
|
transaction_to: z.iso.datetime().nullable(),
|
|
@@ -2172,7 +2171,6 @@ export const zPayrollExternalMapResponseObject = z.object({
|
|
|
2172
2171
|
});
|
|
2173
2172
|
export const zPayrollExternalMapHistoryVersionObject = z.object({
|
|
2174
2173
|
id: z.string(),
|
|
2175
|
-
bitemporal_id: z.string(),
|
|
2176
2174
|
name: z.string(),
|
|
2177
2175
|
payrolls_compensation_element_id: z.string(),
|
|
2178
2176
|
compensation_element_name: z.string(),
|
|
@@ -2185,7 +2183,7 @@ export const zPayrollExternalMapHistoryVersionObject = z.object({
|
|
|
2185
2183
|
'garnishment',
|
|
2186
2184
|
'other'
|
|
2187
2185
|
]),
|
|
2188
|
-
|
|
2186
|
+
timekeeping_pay_period_config_id: z.string().nullable(),
|
|
2189
2187
|
payrolls_fringe_benefit_plan_id: z.string().nullable(),
|
|
2190
2188
|
contributor: z.enum([
|
|
2191
2189
|
'any',
|
|
@@ -2195,7 +2193,7 @@ export const zPayrollExternalMapHistoryVersionObject = z.object({
|
|
|
2195
2193
|
annual_periods: z.int(),
|
|
2196
2194
|
created_by_user_id: z.string().nullable(),
|
|
2197
2195
|
global: z.boolean(),
|
|
2198
|
-
valid_from: z.iso.datetime(),
|
|
2196
|
+
valid_from: z.iso.datetime().nullable(),
|
|
2199
2197
|
valid_to: z.iso.datetime().nullable(),
|
|
2200
2198
|
transaction_from: z.iso.datetime(),
|
|
2201
2199
|
transaction_to: z.iso.datetime().nullable(),
|
|
@@ -3149,7 +3147,7 @@ export const zUserResponseObject = z.object({
|
|
|
3149
3147
|
hire_date: z.string().nullable(),
|
|
3150
3148
|
termination_date: z.string().nullable(),
|
|
3151
3149
|
employment_window: z.object({
|
|
3152
|
-
valid_from: z.iso.datetime(),
|
|
3150
|
+
valid_from: z.iso.datetime().nullable(),
|
|
3153
3151
|
valid_to: z.iso.datetime().nullable()
|
|
3154
3152
|
}),
|
|
3155
3153
|
manager_user_id: z.string().nullable(),
|
|
@@ -3436,6 +3434,18 @@ export const zFormSubmissionIndexObject = z.object({
|
|
|
3436
3434
|
updated_at: z.iso.datetime().optional()
|
|
3437
3435
|
})).optional()
|
|
3438
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
|
+
});
|
|
3439
3449
|
/**
|
|
3440
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.
|
|
3441
3451
|
*/
|
|
@@ -3461,7 +3471,6 @@ export const zPayPeriodsResponseObject = z.object({
|
|
|
3461
3471
|
data: z.array(z.object({
|
|
3462
3472
|
id: z.string().optional(),
|
|
3463
3473
|
timekeeping_pay_period_config_id: z.string().optional(),
|
|
3464
|
-
pay_period_config_uid: z.string().optional(),
|
|
3465
3474
|
pay_date: z.iso.date().optional(),
|
|
3466
3475
|
start_time: z.iso.datetime().optional(),
|
|
3467
3476
|
end_time: z.iso.datetime().optional(),
|
|
@@ -3610,7 +3619,7 @@ export const zFederalJobWageDeterminationResponseObject = z.object({
|
|
|
3610
3619
|
'residential'
|
|
3611
3620
|
]),
|
|
3612
3621
|
general_wage_determination: z.string().nullable(),
|
|
3613
|
-
valid_from: z.iso.datetime(),
|
|
3622
|
+
valid_from: z.iso.datetime().nullable(),
|
|
3614
3623
|
valid_to: z.iso.datetime().nullable(),
|
|
3615
3624
|
created_at: z.iso.datetime(),
|
|
3616
3625
|
updated_at: z.iso.datetime()
|
|
@@ -3648,7 +3657,7 @@ export const zRegionalJobWageDeterminationResponseObject = z.object({
|
|
|
3648
3657
|
fringe_rate_cents: z.string(),
|
|
3649
3658
|
general_wage_determination: z.string().nullable(),
|
|
3650
3659
|
regional_fields: zRegionalWageDeterminationFields,
|
|
3651
|
-
valid_from: z.iso.datetime(),
|
|
3660
|
+
valid_from: z.iso.datetime().nullable(),
|
|
3652
3661
|
valid_to: z.iso.datetime().nullable(),
|
|
3653
3662
|
created_at: z.iso.datetime(),
|
|
3654
3663
|
updated_at: z.iso.datetime()
|
|
@@ -3677,7 +3686,7 @@ export const zFederalJobWageDeterminationHistoryVersionObject = z.object({
|
|
|
3677
3686
|
'residential'
|
|
3678
3687
|
]),
|
|
3679
3688
|
general_wage_determination: z.string().nullable(),
|
|
3680
|
-
valid_from: z.iso.datetime(),
|
|
3689
|
+
valid_from: z.iso.datetime().nullable(),
|
|
3681
3690
|
valid_to: z.iso.datetime().nullable(),
|
|
3682
3691
|
created_at: z.iso.datetime(),
|
|
3683
3692
|
updated_at: z.iso.datetime(),
|
|
@@ -3699,7 +3708,7 @@ export const zRegionalJobWageDeterminationHistoryVersionObject = z.object({
|
|
|
3699
3708
|
fringe_rate_cents: z.string(),
|
|
3700
3709
|
general_wage_determination: z.string().nullable(),
|
|
3701
3710
|
regional_fields: zRegionalWageDeterminationFields,
|
|
3702
|
-
valid_from: z.iso.datetime(),
|
|
3711
|
+
valid_from: z.iso.datetime().nullable(),
|
|
3703
3712
|
valid_to: z.iso.datetime().nullable(),
|
|
3704
3713
|
created_at: z.iso.datetime(),
|
|
3705
3714
|
updated_at: z.iso.datetime(),
|
|
@@ -3823,7 +3832,7 @@ export const zRateRuleResponseObject = z.object({
|
|
|
3823
3832
|
pay_rates_rule_package_id: z.string(),
|
|
3824
3833
|
effect: zRateRuleEffect,
|
|
3825
3834
|
conditions: z.array(zRateRuleCondition),
|
|
3826
|
-
valid_from: z.iso.datetime(),
|
|
3835
|
+
valid_from: z.iso.datetime().nullable(),
|
|
3827
3836
|
valid_to: z.iso.datetime().nullable(),
|
|
3828
3837
|
created_at: z.iso.datetime(),
|
|
3829
3838
|
updated_at: z.iso.datetime()
|
|
@@ -3835,7 +3844,7 @@ export const zRateRuleHistoryVersionObject = z.object({
|
|
|
3835
3844
|
pay_rates_rule_package_id: z.string(),
|
|
3836
3845
|
effect: zRateRuleEffect,
|
|
3837
3846
|
conditions: z.array(zRateRuleCondition),
|
|
3838
|
-
valid_from: z.iso.datetime(),
|
|
3847
|
+
valid_from: z.iso.datetime().nullable(),
|
|
3839
3848
|
valid_to: z.iso.datetime().nullable(),
|
|
3840
3849
|
created_at: z.iso.datetime(),
|
|
3841
3850
|
updated_at: z.iso.datetime(),
|
|
@@ -5859,6 +5868,24 @@ export const zListFormDefinitionsQuery = z.object({
|
|
|
5859
5868
|
* Success
|
|
5860
5869
|
*/
|
|
5861
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;
|
|
5862
5889
|
export const zListFormSubmissionsQuery = z.object({
|
|
5863
5890
|
'filter[form_definition_id]': z.string().optional(),
|
|
5864
5891
|
'filter[created_at][gte]': z.iso.datetime().optional(),
|
|
@@ -6257,7 +6284,7 @@ export const zListExternalMapHistoryResponse = z.object({
|
|
|
6257
6284
|
});
|
|
6258
6285
|
export const zListExternalMapsQuery = z.object({
|
|
6259
6286
|
'filter[name]': z.string().optional(),
|
|
6260
|
-
'filter[
|
|
6287
|
+
'filter[timekeeping_pay_period_config_id]': z.string().optional(),
|
|
6261
6288
|
'filter[global]': z.boolean().optional(),
|
|
6262
6289
|
filter: z.string().optional(),
|
|
6263
6290
|
'filter[unexpected]': z.string().optional(),
|
|
@@ -6291,7 +6318,7 @@ export const zGetExternalMapQuery = z.object({
|
|
|
6291
6318
|
export const zGetExternalMapResponse = zPayrollExternalMapResponseObject;
|
|
6292
6319
|
export const zListFringeBenefitPlansQuery = z.object({
|
|
6293
6320
|
'filter[name]': z.string().optional(),
|
|
6294
|
-
'filter[
|
|
6321
|
+
'filter[timekeeping_pay_period_config_id]': z.string().optional(),
|
|
6295
6322
|
filter: z.string().optional(),
|
|
6296
6323
|
'filter[unexpected]': z.string().optional(),
|
|
6297
6324
|
'page[cursor]': z.string().optional(),
|
|
@@ -7155,7 +7182,7 @@ export const zCreateManagerTimeEntryApprovalPath = z.object({
|
|
|
7155
7182
|
*/
|
|
7156
7183
|
export const zCreateManagerTimeEntryApprovalResponse = zTimeEntryApprovalResponseObject;
|
|
7157
7184
|
export const zListAttestationConfigsPath = z.object({
|
|
7158
|
-
|
|
7185
|
+
pay_period_config_id: z.string()
|
|
7159
7186
|
});
|
|
7160
7187
|
/**
|
|
7161
7188
|
* Success
|
|
@@ -7167,14 +7194,14 @@ export const zListAttestationConfigsResponse = z.object({
|
|
|
7167
7194
|
});
|
|
7168
7195
|
export const zCreateAttestationConfigBody = zAttestationConfigParameters;
|
|
7169
7196
|
export const zCreateAttestationConfigPath = z.object({
|
|
7170
|
-
|
|
7197
|
+
pay_period_config_id: z.string()
|
|
7171
7198
|
});
|
|
7172
7199
|
/**
|
|
7173
7200
|
* Created
|
|
7174
7201
|
*/
|
|
7175
7202
|
export const zCreateAttestationConfigResponse = zAttestationConfigResponseObject;
|
|
7176
7203
|
export const zDeleteAttestationConfigPath = z.object({
|
|
7177
|
-
|
|
7204
|
+
pay_period_config_id: z.string(),
|
|
7178
7205
|
id: z.string()
|
|
7179
7206
|
});
|
|
7180
7207
|
/**
|
|
@@ -7182,7 +7209,7 @@ export const zDeleteAttestationConfigPath = z.object({
|
|
|
7182
7209
|
*/
|
|
7183
7210
|
export const zDeleteAttestationConfigResponse = zAttestationConfigResponseObject;
|
|
7184
7211
|
export const zGetAttestationConfigPath = z.object({
|
|
7185
|
-
|
|
7212
|
+
pay_period_config_id: z.string(),
|
|
7186
7213
|
id: z.string()
|
|
7187
7214
|
});
|
|
7188
7215
|
/**
|
|
@@ -7190,7 +7217,7 @@ export const zGetAttestationConfigPath = z.object({
|
|
|
7190
7217
|
*/
|
|
7191
7218
|
export const zGetAttestationConfigResponse = zAttestationConfigResponseObject;
|
|
7192
7219
|
export const zListPayPeriodConfigHistoryPath = z.object({
|
|
7193
|
-
|
|
7220
|
+
pay_period_config_id: z.string()
|
|
7194
7221
|
});
|
|
7195
7222
|
export const zListPayPeriodConfigHistoryQuery = z.object({
|
|
7196
7223
|
'as_of[valid]': z.string().optional()
|
|
@@ -7204,7 +7231,7 @@ export const zListPayPeriodConfigHistoryResponse = z.object({
|
|
|
7204
7231
|
data: z.array(zPayPeriodConfigHistoryVersionObject).optional()
|
|
7205
7232
|
});
|
|
7206
7233
|
export const zListHolidaysPath = z.object({
|
|
7207
|
-
|
|
7234
|
+
pay_period_config_id: z.string()
|
|
7208
7235
|
});
|
|
7209
7236
|
export const zListHolidaysQuery = z.object({
|
|
7210
7237
|
'filter[overtime]': z.boolean().optional(),
|
|
@@ -7229,14 +7256,14 @@ export const zListHolidaysResponse = z.object({
|
|
|
7229
7256
|
});
|
|
7230
7257
|
export const zCreateHolidayBody = zHolidayParameters;
|
|
7231
7258
|
export const zCreateHolidayPath = z.object({
|
|
7232
|
-
|
|
7259
|
+
pay_period_config_id: z.string()
|
|
7233
7260
|
});
|
|
7234
7261
|
/**
|
|
7235
7262
|
* Created
|
|
7236
7263
|
*/
|
|
7237
7264
|
export const zCreateHolidayResponse = zHolidayResponseObject;
|
|
7238
7265
|
export const zDeleteHolidayPath = z.object({
|
|
7239
|
-
|
|
7266
|
+
pay_period_config_id: z.string(),
|
|
7240
7267
|
id: z.string()
|
|
7241
7268
|
});
|
|
7242
7269
|
/**
|
|
@@ -7245,7 +7272,7 @@ export const zDeleteHolidayPath = z.object({
|
|
|
7245
7272
|
export const zDeleteHolidayResponse = zHolidayResponseObject;
|
|
7246
7273
|
export const zUpdateHolidayBody = zHolidayParameters;
|
|
7247
7274
|
export const zUpdateHolidayPath = z.object({
|
|
7248
|
-
|
|
7275
|
+
pay_period_config_id: z.string(),
|
|
7249
7276
|
id: z.string()
|
|
7250
7277
|
});
|
|
7251
7278
|
/**
|
|
@@ -7271,7 +7298,7 @@ export const zListPayPeriodConfigsResponse = z.object({
|
|
|
7271
7298
|
data: z.array(zPayPeriodConfigResponseObject).optional()
|
|
7272
7299
|
});
|
|
7273
7300
|
export const zGetPayPeriodConfigPath = z.object({
|
|
7274
|
-
|
|
7301
|
+
id: z.string()
|
|
7275
7302
|
});
|
|
7276
7303
|
export const zGetPayPeriodConfigQuery = z.object({
|
|
7277
7304
|
'as_of[valid]': z.iso.datetime().optional()
|