@dsptch-work/api-client 0.24.0 → 0.25.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 +24 -0
- package/dist/gen/index.d.ts +1 -1
- package/dist/gen/sdk.gen.d.ts +190 -1
- package/dist/gen/sdk.gen.js +271 -0
- package/dist/gen/types.gen.d.ts +437 -20
- package/dist/gen/zod.gen.d.ts +275 -14
- package/dist/gen/zod.gen.js +125 -10
- package/package.json +1 -1
package/dist/gen/zod.gen.d.ts
CHANGED
|
@@ -417,6 +417,7 @@ export declare const zDirectUploadParameters: z.ZodObject<{
|
|
|
417
417
|
"assets.products": "assets.products";
|
|
418
418
|
"assets.vendors": "assets.vendors";
|
|
419
419
|
"compliance.checks": "compliance.checks";
|
|
420
|
+
"internal.companies": "internal.companies";
|
|
420
421
|
"internal.company_todos": "internal.company_todos";
|
|
421
422
|
"internal.job_todos": "internal.job_todos";
|
|
422
423
|
"internal.project_todos": "internal.project_todos";
|
|
@@ -722,7 +723,7 @@ export declare const zApprenticeshipProgramEmployerParameters: z.ZodObject<{
|
|
|
722
723
|
require_timecard_allocation: z.ZodOptional<z.ZodBoolean>;
|
|
723
724
|
}, z.core.$strip>;
|
|
724
725
|
/**
|
|
725
|
-
* Update an employer authorization in a program. Send only the fields to change; only the program's sponsor may manage this roster.
|
|
726
|
+
* Update an employer authorization in a program. Send only the fields to change; only the program's sponsor may manage this roster, and an API key may change only the row naming its own company.
|
|
726
727
|
*/
|
|
727
728
|
export declare const zApprenticeshipProgramEmployerUpdateParameters: z.ZodObject<{
|
|
728
729
|
company_id: z.ZodOptional<z.ZodString>;
|
|
@@ -4577,6 +4578,13 @@ export declare const zPayRatesRulePackageParameters: z.ZodObject<{
|
|
|
4577
4578
|
name: z.ZodString;
|
|
4578
4579
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4579
4580
|
}, z.core.$strip>;
|
|
4581
|
+
/**
|
|
4582
|
+
* Request body for updating a pay-rate rule package. Send only the fields to change. `default`, `selectable`, and `scoped_to_job_id` are not writable on this operation.
|
|
4583
|
+
*/
|
|
4584
|
+
export declare const zPayRatesRulePackageUpdateParameters: z.ZodObject<{
|
|
4585
|
+
name: z.ZodOptional<z.ZodString>;
|
|
4586
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4587
|
+
}, z.core.$strip>;
|
|
4580
4588
|
/**
|
|
4581
4589
|
* Request body for creating or updating a position on a job. The job is taken from the URL path.
|
|
4582
4590
|
*/
|
|
@@ -5220,14 +5228,17 @@ export declare const zUserResponseObject: z.ZodObject<{
|
|
|
5220
5228
|
}>>>;
|
|
5221
5229
|
}, z.core.$strip>>;
|
|
5222
5230
|
}, z.core.$strip>;
|
|
5223
|
-
|
|
5224
|
-
* Request body for onboarding a worker into your company. In one call it creates the person (if new), their employment record, roles, group memberships, an optional invite, and optional compliance details. company_id, email, first_name, and last_name are required.
|
|
5225
|
-
*/
|
|
5226
|
-
export declare const zUserParameters: z.ZodObject<{
|
|
5227
|
-
company_id: z.ZodString;
|
|
5231
|
+
export declare const zUserParameters: z.ZodIntersection<z.ZodUnion<readonly [z.ZodObject<{
|
|
5228
5232
|
email: z.ZodString;
|
|
5229
|
-
|
|
5230
|
-
phone_number: z.
|
|
5233
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5234
|
+
phone_number: z.ZodString;
|
|
5235
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5236
|
+
skip_invite: z.ZodLiteral<true>;
|
|
5237
|
+
}, z.core.$strip>]>, z.ZodObject<{
|
|
5238
|
+
company_id: z.ZodOptional<z.ZodString>;
|
|
5239
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5240
|
+
personal_email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5241
|
+
phone_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5231
5242
|
first_name: z.ZodString;
|
|
5232
5243
|
last_name: z.ZodString;
|
|
5233
5244
|
preferred_first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -5333,7 +5344,7 @@ export declare const zUserParameters: z.ZodObject<{
|
|
|
5333
5344
|
portuguese_or_brazilian: "portuguese_or_brazilian";
|
|
5334
5345
|
}>>>>;
|
|
5335
5346
|
}, z.core.$strip>>>;
|
|
5336
|
-
}, z.core.$strip
|
|
5347
|
+
}, z.core.$strip>>;
|
|
5337
5348
|
/**
|
|
5338
5349
|
* Request body for updating a worker's employment at your company. Corrects administrative fields (employment type, title, manager, payroll id, hire date, and time-and-attendance enrollment) across the whole employment history. For time-effective pay changes, use the scheduled-changes endpoints instead.
|
|
5339
5350
|
*/
|
|
@@ -8895,6 +8906,14 @@ export declare const zCreateAllocationResponse: z.ZodObject<{
|
|
|
8895
8906
|
created_at: z.ZodISODateTime;
|
|
8896
8907
|
updated_at: z.ZodISODateTime;
|
|
8897
8908
|
}, z.core.$strip>;
|
|
8909
|
+
export declare const zDeleteAllocationPath: z.ZodObject<{
|
|
8910
|
+
apprentice_id: z.ZodString;
|
|
8911
|
+
id: z.ZodString;
|
|
8912
|
+
}, z.core.$strip>;
|
|
8913
|
+
/**
|
|
8914
|
+
* No Content
|
|
8915
|
+
*/
|
|
8916
|
+
export declare const zDeleteAllocationResponse: z.ZodVoid;
|
|
8898
8917
|
export declare const zGetAllocationPath: z.ZodObject<{
|
|
8899
8918
|
apprentice_id: z.ZodString;
|
|
8900
8919
|
id: z.ZodString;
|
|
@@ -9151,6 +9170,40 @@ export declare const zCreateOccupationResponse: z.ZodObject<{
|
|
|
9151
9170
|
created_at: z.ZodISODateTime;
|
|
9152
9171
|
updated_at: z.ZodISODateTime;
|
|
9153
9172
|
}, z.core.$strip>;
|
|
9173
|
+
export declare const zDeleteOccupationPath: z.ZodObject<{
|
|
9174
|
+
program_id: z.ZodString;
|
|
9175
|
+
id: z.ZodString;
|
|
9176
|
+
}, z.core.$strip>;
|
|
9177
|
+
/**
|
|
9178
|
+
* No Content
|
|
9179
|
+
*/
|
|
9180
|
+
export declare const zDeleteOccupationResponse: z.ZodVoid;
|
|
9181
|
+
export declare const zGetOccupationPath: z.ZodObject<{
|
|
9182
|
+
program_id: z.ZodString;
|
|
9183
|
+
id: z.ZodString;
|
|
9184
|
+
}, z.core.$strip>;
|
|
9185
|
+
/**
|
|
9186
|
+
* Success
|
|
9187
|
+
*/
|
|
9188
|
+
export declare const zGetOccupationResponse: z.ZodObject<{
|
|
9189
|
+
id: z.ZodString;
|
|
9190
|
+
apprenticeship_program_id: z.ZodString;
|
|
9191
|
+
rapids_code: z.ZodString;
|
|
9192
|
+
occupation_type: z.ZodEnum<{
|
|
9193
|
+
time_based: "time_based";
|
|
9194
|
+
competency_based: "competency_based";
|
|
9195
|
+
hybrid: "hybrid";
|
|
9196
|
+
}>;
|
|
9197
|
+
title: z.ZodString;
|
|
9198
|
+
description: z.ZodNullable<z.ZodString>;
|
|
9199
|
+
min_minutes: z.ZodInt;
|
|
9200
|
+
max_minutes: z.ZodInt;
|
|
9201
|
+
probation_minutes: z.ZodInt;
|
|
9202
|
+
num_apprentices: z.ZodInt;
|
|
9203
|
+
num_journeyworkers: z.ZodInt;
|
|
9204
|
+
created_at: z.ZodISODateTime;
|
|
9205
|
+
updated_at: z.ZodISODateTime;
|
|
9206
|
+
}, z.core.$strip>;
|
|
9154
9207
|
export declare const zUpdateOccupationBody: z.ZodObject<{
|
|
9155
9208
|
rapids_code: z.ZodOptional<z.ZodString>;
|
|
9156
9209
|
occupation_type: z.ZodOptional<z.ZodEnum<{
|
|
@@ -9350,6 +9403,33 @@ export declare const zCreateProgramResponse: z.ZodObject<{
|
|
|
9350
9403
|
created_at: z.ZodISODateTime;
|
|
9351
9404
|
updated_at: z.ZodISODateTime;
|
|
9352
9405
|
}, z.core.$strip>;
|
|
9406
|
+
export declare const zDeleteProgramPath: z.ZodObject<{
|
|
9407
|
+
id: z.ZodString;
|
|
9408
|
+
}, z.core.$strip>;
|
|
9409
|
+
/**
|
|
9410
|
+
* No Content
|
|
9411
|
+
*/
|
|
9412
|
+
export declare const zDeleteProgramResponse: z.ZodVoid;
|
|
9413
|
+
export declare const zGetProgramPath: z.ZodObject<{
|
|
9414
|
+
id: z.ZodString;
|
|
9415
|
+
}, z.core.$strip>;
|
|
9416
|
+
/**
|
|
9417
|
+
* Success
|
|
9418
|
+
*/
|
|
9419
|
+
export declare const zGetProgramResponse: z.ZodObject<{
|
|
9420
|
+
id: z.ZodString;
|
|
9421
|
+
sponsor_company_id: z.ZodString;
|
|
9422
|
+
program_number: z.ZodString;
|
|
9423
|
+
program_name: z.ZodNullable<z.ZodString>;
|
|
9424
|
+
sponsor_name: z.ZodNullable<z.ZodString>;
|
|
9425
|
+
doing_business_as: z.ZodNullable<z.ZodString>;
|
|
9426
|
+
registration_agency_type: z.ZodNullable<z.ZodEnum<{
|
|
9427
|
+
federal: "federal";
|
|
9428
|
+
regional: "regional";
|
|
9429
|
+
}>>;
|
|
9430
|
+
created_at: z.ZodISODateTime;
|
|
9431
|
+
updated_at: z.ZodISODateTime;
|
|
9432
|
+
}, z.core.$strip>;
|
|
9353
9433
|
export declare const zUpdateProgramBody: z.ZodObject<{
|
|
9354
9434
|
program_number: z.ZodOptional<z.ZodString>;
|
|
9355
9435
|
program_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -9647,6 +9727,58 @@ export declare const zCreateWageScheduleResponse: z.ZodObject<{
|
|
|
9647
9727
|
created_at: z.ZodISODateTime;
|
|
9648
9728
|
updated_at: z.ZodISODateTime;
|
|
9649
9729
|
}, z.core.$strip>;
|
|
9730
|
+
export declare const zDeleteWageSchedulePath: z.ZodObject<{
|
|
9731
|
+
occupation_id: z.ZodString;
|
|
9732
|
+
id: z.ZodString;
|
|
9733
|
+
}, z.core.$strip>;
|
|
9734
|
+
/**
|
|
9735
|
+
* No Content
|
|
9736
|
+
*/
|
|
9737
|
+
export declare const zDeleteWageScheduleResponse: z.ZodVoid;
|
|
9738
|
+
export declare const zGetWageSchedulePath: z.ZodObject<{
|
|
9739
|
+
occupation_id: z.ZodString;
|
|
9740
|
+
id: z.ZodString;
|
|
9741
|
+
}, z.core.$strip>;
|
|
9742
|
+
/**
|
|
9743
|
+
* Success
|
|
9744
|
+
*/
|
|
9745
|
+
export declare const zGetWageScheduleResponse: z.ZodObject<{
|
|
9746
|
+
id: z.ZodString;
|
|
9747
|
+
apprenticeship_occupation_id: z.ZodString;
|
|
9748
|
+
name: z.ZodString;
|
|
9749
|
+
description: z.ZodNullable<z.ZodString>;
|
|
9750
|
+
wage_unit: z.ZodEnum<{
|
|
9751
|
+
hourly: "hourly";
|
|
9752
|
+
weekly: "weekly";
|
|
9753
|
+
monthly: "monthly";
|
|
9754
|
+
quarterly: "quarterly";
|
|
9755
|
+
semi_annually: "semi_annually";
|
|
9756
|
+
annually: "annually";
|
|
9757
|
+
}>;
|
|
9758
|
+
journeyworker_wage_unit: z.ZodEnum<{
|
|
9759
|
+
hourly: "hourly";
|
|
9760
|
+
weekly: "weekly";
|
|
9761
|
+
monthly: "monthly";
|
|
9762
|
+
quarterly: "quarterly";
|
|
9763
|
+
semi_annually: "semi_annually";
|
|
9764
|
+
annually: "annually";
|
|
9765
|
+
}>;
|
|
9766
|
+
period_unit: z.ZodEnum<{
|
|
9767
|
+
hours: "hours";
|
|
9768
|
+
weeks: "weeks";
|
|
9769
|
+
months: "months";
|
|
9770
|
+
quarter: "quarter";
|
|
9771
|
+
semi_annual: "semi_annual";
|
|
9772
|
+
year: "year";
|
|
9773
|
+
}>;
|
|
9774
|
+
end_wage_cents: z.ZodString;
|
|
9775
|
+
end_wage_currency: z.ZodString;
|
|
9776
|
+
journeyworker_wage_cents: z.ZodString;
|
|
9777
|
+
journeyworker_wage_currency: z.ZodString;
|
|
9778
|
+
journeyworker_fringe_cents: z.ZodNullable<z.ZodString>;
|
|
9779
|
+
created_at: z.ZodISODateTime;
|
|
9780
|
+
updated_at: z.ZodISODateTime;
|
|
9781
|
+
}, z.core.$strip>;
|
|
9650
9782
|
export declare const zUpdateWageScheduleBody: z.ZodObject<{
|
|
9651
9783
|
name: z.ZodOptional<z.ZodString>;
|
|
9652
9784
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -14780,6 +14912,7 @@ export declare const zCreateDirectUploadBody: z.ZodObject<{
|
|
|
14780
14912
|
"assets.products": "assets.products";
|
|
14781
14913
|
"assets.vendors": "assets.vendors";
|
|
14782
14914
|
"compliance.checks": "compliance.checks";
|
|
14915
|
+
"internal.companies": "internal.companies";
|
|
14783
14916
|
"internal.company_todos": "internal.company_todos";
|
|
14784
14917
|
"internal.job_todos": "internal.job_todos";
|
|
14785
14918
|
"internal.project_todos": "internal.project_todos";
|
|
@@ -18580,6 +18713,13 @@ export declare const zCreatePayRateRulePackageResponse: z.ZodObject<{
|
|
|
18580
18713
|
created_at: z.ZodISODateTime;
|
|
18581
18714
|
updated_at: z.ZodISODateTime;
|
|
18582
18715
|
}, z.core.$strip>;
|
|
18716
|
+
export declare const zDeletePayRateRulePackagePath: z.ZodObject<{
|
|
18717
|
+
id: z.ZodString;
|
|
18718
|
+
}, z.core.$strip>;
|
|
18719
|
+
/**
|
|
18720
|
+
* No Content
|
|
18721
|
+
*/
|
|
18722
|
+
export declare const zDeletePayRateRulePackageResponse: z.ZodVoid;
|
|
18583
18723
|
export declare const zGetPayRateRulePackagePath: z.ZodObject<{
|
|
18584
18724
|
id: z.ZodString;
|
|
18585
18725
|
}, z.core.$strip>;
|
|
@@ -18596,6 +18736,26 @@ export declare const zGetPayRateRulePackageResponse: z.ZodObject<{
|
|
|
18596
18736
|
created_at: z.ZodISODateTime;
|
|
18597
18737
|
updated_at: z.ZodISODateTime;
|
|
18598
18738
|
}, z.core.$strip>;
|
|
18739
|
+
export declare const zUpdatePayRateRulePackageBody: z.ZodObject<{
|
|
18740
|
+
name: z.ZodOptional<z.ZodString>;
|
|
18741
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18742
|
+
}, z.core.$strip>;
|
|
18743
|
+
export declare const zUpdatePayRateRulePackagePath: z.ZodObject<{
|
|
18744
|
+
id: z.ZodString;
|
|
18745
|
+
}, z.core.$strip>;
|
|
18746
|
+
/**
|
|
18747
|
+
* Success
|
|
18748
|
+
*/
|
|
18749
|
+
export declare const zUpdatePayRateRulePackageResponse: z.ZodObject<{
|
|
18750
|
+
id: z.ZodString;
|
|
18751
|
+
name: z.ZodString;
|
|
18752
|
+
description: z.ZodNullable<z.ZodString>;
|
|
18753
|
+
scoped_to_job_id: z.ZodNullable<z.ZodString>;
|
|
18754
|
+
default: z.ZodBoolean;
|
|
18755
|
+
selectable: z.ZodBoolean;
|
|
18756
|
+
created_at: z.ZodISODateTime;
|
|
18757
|
+
updated_at: z.ZodISODateTime;
|
|
18758
|
+
}, z.core.$strip>;
|
|
18599
18759
|
export declare const zListAggregateTimeImportsPath: z.ZodObject<{
|
|
18600
18760
|
pay_period_id: z.ZodString;
|
|
18601
18761
|
}, z.core.$strip>;
|
|
@@ -21417,6 +21577,7 @@ export declare const zListProjectsQuery: z.ZodObject<{
|
|
|
21417
21577
|
ap_only: "ap_only";
|
|
21418
21578
|
}>>;
|
|
21419
21579
|
'filter[external_id]': z.ZodOptional<z.ZodString>;
|
|
21580
|
+
'filter[name]': z.ZodOptional<z.ZodString>;
|
|
21420
21581
|
'filter[created_at][gte]': z.ZodOptional<z.ZodISODateTime>;
|
|
21421
21582
|
'filter[created_at][lte]': z.ZodOptional<z.ZodISODateTime>;
|
|
21422
21583
|
'filter[updated_at][gte]': z.ZodOptional<z.ZodISODateTime>;
|
|
@@ -21867,6 +22028,13 @@ export declare const zCreateCompanyUserDetailResponse: z.ZodObject<{
|
|
|
21867
22028
|
portuguese_or_brazilian: "portuguese_or_brazilian";
|
|
21868
22029
|
}>>>;
|
|
21869
22030
|
}, z.core.$strip>;
|
|
22031
|
+
export declare const zDeleteCompanyUserDetailPath: z.ZodObject<{
|
|
22032
|
+
id: z.ZodString;
|
|
22033
|
+
}, z.core.$strip>;
|
|
22034
|
+
/**
|
|
22035
|
+
* No Content
|
|
22036
|
+
*/
|
|
22037
|
+
export declare const zDeleteCompanyUserDetailResponse: z.ZodVoid;
|
|
21870
22038
|
export declare const zUpdateCompanyUserDetailBody: z.ZodObject<{
|
|
21871
22039
|
address1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21872
22040
|
address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -22480,6 +22648,52 @@ export declare const zCreatePositionResponse: z.ZodObject<{
|
|
|
22480
22648
|
created_at: z.ZodISODateTime;
|
|
22481
22649
|
updated_at: z.ZodISODateTime;
|
|
22482
22650
|
}, z.core.$strip>;
|
|
22651
|
+
export declare const zDeletePositionPath: z.ZodObject<{
|
|
22652
|
+
job_id: z.ZodString;
|
|
22653
|
+
id: z.ZodString;
|
|
22654
|
+
}, z.core.$strip>;
|
|
22655
|
+
/**
|
|
22656
|
+
* No Content
|
|
22657
|
+
*/
|
|
22658
|
+
export declare const zDeletePositionResponse: z.ZodVoid;
|
|
22659
|
+
export declare const zGetPositionPath: z.ZodObject<{
|
|
22660
|
+
job_id: z.ZodString;
|
|
22661
|
+
id: z.ZodString;
|
|
22662
|
+
}, z.core.$strip>;
|
|
22663
|
+
/**
|
|
22664
|
+
* Success
|
|
22665
|
+
*/
|
|
22666
|
+
export declare const zGetPositionResponse: z.ZodObject<{
|
|
22667
|
+
id: z.ZodString;
|
|
22668
|
+
job_id: z.ZodString;
|
|
22669
|
+
fulfilled_by_user_id: z.ZodNullable<z.ZodString>;
|
|
22670
|
+
pay_rates_rule_package_id: z.ZodNullable<z.ZodString>;
|
|
22671
|
+
position_function: z.ZodNullable<z.ZodObject<{
|
|
22672
|
+
id: z.ZodString;
|
|
22673
|
+
value: z.ZodString;
|
|
22674
|
+
description: z.ZodString;
|
|
22675
|
+
}, z.core.$strip>>;
|
|
22676
|
+
per_diem_name: z.ZodNullable<z.ZodString>;
|
|
22677
|
+
per_diem_currency: z.ZodNullable<z.ZodString>;
|
|
22678
|
+
per_diem_rate_cents: z.ZodNullable<z.ZodString>;
|
|
22679
|
+
hourly_rate_cents: z.ZodNullable<z.ZodString>;
|
|
22680
|
+
hourly_rate_src_type: z.ZodNullable<z.ZodString>;
|
|
22681
|
+
cash_fringe_rate_cents: z.ZodNullable<z.ZodString>;
|
|
22682
|
+
cash_fringe_rate_src_type: z.ZodNullable<z.ZodString>;
|
|
22683
|
+
pwa_wage_pay_rate_cents: z.ZodNullable<z.ZodString>;
|
|
22684
|
+
pwa_wage_pay_rate_src_type: z.ZodNullable<z.ZodString>;
|
|
22685
|
+
wage_adder_rate_cents: z.ZodNullable<z.ZodString>;
|
|
22686
|
+
pwa: z.ZodBoolean;
|
|
22687
|
+
federal_wage_determination_ids: z.ZodArray<z.ZodString>;
|
|
22688
|
+
regional_wage_determination_ids: z.ZodArray<z.ZodString>;
|
|
22689
|
+
pwa_details: z.ZodObject<{
|
|
22690
|
+
skill_level: z.ZodNullable<z.ZodString>;
|
|
22691
|
+
}, z.core.$strip>;
|
|
22692
|
+
start_time: z.ZodNullable<z.ZodISODateTime>;
|
|
22693
|
+
end_time: z.ZodNullable<z.ZodISODateTime>;
|
|
22694
|
+
created_at: z.ZodISODateTime;
|
|
22695
|
+
updated_at: z.ZodISODateTime;
|
|
22696
|
+
}, z.core.$strip>;
|
|
22483
22697
|
export declare const zUpdatePositionBody: z.ZodObject<{
|
|
22484
22698
|
job_id: z.ZodOptional<z.ZodString>;
|
|
22485
22699
|
fulfilled_by_user_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -23323,6 +23537,47 @@ export declare const zDeleteTimeEntryResponse: z.ZodObject<{
|
|
|
23323
23537
|
name: z.ZodString;
|
|
23324
23538
|
}, z.core.$strip>>;
|
|
23325
23539
|
}, z.core.$strip>;
|
|
23540
|
+
export declare const zGetTimeEntryPath: z.ZodObject<{
|
|
23541
|
+
id: z.ZodString;
|
|
23542
|
+
}, z.core.$strip>;
|
|
23543
|
+
/**
|
|
23544
|
+
* Success
|
|
23545
|
+
*/
|
|
23546
|
+
export declare const zGetTimeEntryResponse: z.ZodObject<{
|
|
23547
|
+
id: z.ZodString;
|
|
23548
|
+
user_id: z.ZodString;
|
|
23549
|
+
timekeeping_time_card_id: z.ZodString;
|
|
23550
|
+
job_id: z.ZodNullable<z.ZodString>;
|
|
23551
|
+
timekeeping_timecode_id: z.ZodNullable<z.ZodString>;
|
|
23552
|
+
state: z.ZodNullable<z.ZodString>;
|
|
23553
|
+
description: z.ZodNullable<z.ZodString>;
|
|
23554
|
+
clock_punched: z.ZodBoolean;
|
|
23555
|
+
worker_approved: z.ZodBoolean;
|
|
23556
|
+
manager_approval_status: z.ZodEnum<{
|
|
23557
|
+
PENDING: "PENDING";
|
|
23558
|
+
APPROVED: "APPROVED";
|
|
23559
|
+
DECLINED: "DECLINED";
|
|
23560
|
+
}>;
|
|
23561
|
+
hours_worked: z.ZodNumber;
|
|
23562
|
+
overtime_minutes_worked: z.ZodObject<{
|
|
23563
|
+
1: z.ZodNumber;
|
|
23564
|
+
1.5: z.ZodNumber;
|
|
23565
|
+
2: z.ZodNumber;
|
|
23566
|
+
}, z.core.$strip>;
|
|
23567
|
+
incentive_pay_one_five_x_minutes_worked: z.ZodInt;
|
|
23568
|
+
hourly_rate_cents: z.ZodNullable<z.ZodString>;
|
|
23569
|
+
currency: z.ZodString;
|
|
23570
|
+
hourly_rate_src_type: z.ZodNullable<z.ZodString>;
|
|
23571
|
+
timekeeping_pay_period_id: z.ZodString;
|
|
23572
|
+
start_time: z.ZodISODateTime;
|
|
23573
|
+
end_time: z.ZodISODateTime;
|
|
23574
|
+
created_at: z.ZodISODateTime;
|
|
23575
|
+
updated_at: z.ZodISODateTime;
|
|
23576
|
+
feature_ids: z.ZodArray<z.ZodString>;
|
|
23577
|
+
features: z.ZodArray<z.ZodObject<{
|
|
23578
|
+
name: z.ZodString;
|
|
23579
|
+
}, z.core.$strip>>;
|
|
23580
|
+
}, z.core.$strip>;
|
|
23326
23581
|
export declare const zUpdateTimeEntryBody: z.ZodIntersection<z.ZodObject<{
|
|
23327
23582
|
timekeeping_time_card_id: z.ZodOptional<z.ZodString>;
|
|
23328
23583
|
start_time: z.ZodOptional<z.ZodISODateTime>;
|
|
@@ -26076,11 +26331,17 @@ export declare const zListUsersResponse: z.ZodObject<{
|
|
|
26076
26331
|
/**
|
|
26077
26332
|
* Create a user
|
|
26078
26333
|
*/
|
|
26079
|
-
export declare const zCreateUserBody: z.ZodObject<{
|
|
26080
|
-
company_id: z.ZodString;
|
|
26334
|
+
export declare const zCreateUserBody: z.ZodIntersection<z.ZodUnion<readonly [z.ZodObject<{
|
|
26081
26335
|
email: z.ZodString;
|
|
26082
|
-
|
|
26083
|
-
phone_number: z.
|
|
26336
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
26337
|
+
phone_number: z.ZodString;
|
|
26338
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
26339
|
+
skip_invite: z.ZodLiteral<true>;
|
|
26340
|
+
}, z.core.$strip>]>, z.ZodObject<{
|
|
26341
|
+
company_id: z.ZodOptional<z.ZodString>;
|
|
26342
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26343
|
+
personal_email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26344
|
+
phone_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26084
26345
|
first_name: z.ZodString;
|
|
26085
26346
|
last_name: z.ZodString;
|
|
26086
26347
|
preferred_first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -26186,7 +26447,7 @@ export declare const zCreateUserBody: z.ZodObject<{
|
|
|
26186
26447
|
portuguese_or_brazilian: "portuguese_or_brazilian";
|
|
26187
26448
|
}>>>>;
|
|
26188
26449
|
}, z.core.$strip>>>;
|
|
26189
|
-
}, z.core.$strip
|
|
26450
|
+
}, z.core.$strip>>;
|
|
26190
26451
|
/**
|
|
26191
26452
|
* Created
|
|
26192
26453
|
*/
|
package/dist/gen/zod.gen.js
CHANGED
|
@@ -418,6 +418,7 @@ export const zDirectUploadParameters = z.object({
|
|
|
418
418
|
'assets.products',
|
|
419
419
|
'assets.vendors',
|
|
420
420
|
'compliance.checks',
|
|
421
|
+
'internal.companies',
|
|
421
422
|
'internal.company_todos',
|
|
422
423
|
'internal.job_todos',
|
|
423
424
|
'internal.project_todos',
|
|
@@ -714,7 +715,7 @@ export const zApprenticeshipProgramEmployerParameters = z.object({
|
|
|
714
715
|
require_timecard_allocation: z.boolean().optional()
|
|
715
716
|
});
|
|
716
717
|
/**
|
|
717
|
-
* Update an employer authorization in a program. Send only the fields to change; only the program's sponsor may manage this roster.
|
|
718
|
+
* Update an employer authorization in a program. Send only the fields to change; only the program's sponsor may manage this roster, and an API key may change only the row naming its own company.
|
|
718
719
|
*/
|
|
719
720
|
export const zApprenticeshipProgramEmployerUpdateParameters = z.object({
|
|
720
721
|
company_id: z.string().optional(),
|
|
@@ -4017,6 +4018,13 @@ export const zPayRatesRulePackageParameters = z.object({
|
|
|
4017
4018
|
name: z.string().min(1),
|
|
4018
4019
|
description: z.string().nullish()
|
|
4019
4020
|
});
|
|
4021
|
+
/**
|
|
4022
|
+
* Request body for updating a pay-rate rule package. Send only the fields to change. `default`, `selectable`, and `scoped_to_job_id` are not writable on this operation.
|
|
4023
|
+
*/
|
|
4024
|
+
export const zPayRatesRulePackageUpdateParameters = z.object({
|
|
4025
|
+
name: z.string().min(1).optional(),
|
|
4026
|
+
description: z.string().nullish()
|
|
4027
|
+
});
|
|
4020
4028
|
/**
|
|
4021
4029
|
* Request body for creating or updating a position on a job. The job is taken from the URL path.
|
|
4022
4030
|
*/
|
|
@@ -4563,14 +4571,21 @@ export const zUserResponseObject = z.object({
|
|
|
4563
4571
|
])).nullable()
|
|
4564
4572
|
}).nullable()
|
|
4565
4573
|
});
|
|
4566
|
-
|
|
4567
|
-
|
|
4568
|
-
|
|
4569
|
-
|
|
4570
|
-
|
|
4571
|
-
|
|
4572
|
-
|
|
4573
|
-
|
|
4574
|
+
export const zUserParameters = z.intersection(z.union([
|
|
4575
|
+
z.object({
|
|
4576
|
+
email: z.string().min(1)
|
|
4577
|
+
}),
|
|
4578
|
+
z.object({
|
|
4579
|
+
phone_number: z.string().min(1)
|
|
4580
|
+
}),
|
|
4581
|
+
z.object({
|
|
4582
|
+
skip_invite: z.literal(true)
|
|
4583
|
+
})
|
|
4584
|
+
]), z.object({
|
|
4585
|
+
company_id: z.string().optional(),
|
|
4586
|
+
email: z.string().nullish(),
|
|
4587
|
+
personal_email: z.string().nullish(),
|
|
4588
|
+
phone_number: z.string().nullish(),
|
|
4574
4589
|
first_name: z.string(),
|
|
4575
4590
|
last_name: z.string(),
|
|
4576
4591
|
preferred_first_name: z.string().nullish(),
|
|
@@ -4670,7 +4685,7 @@ export const zUserParameters = z.object({
|
|
|
4670
4685
|
'portuguese_or_brazilian'
|
|
4671
4686
|
])).nullish()
|
|
4672
4687
|
}).nullish()
|
|
4673
|
-
});
|
|
4688
|
+
}));
|
|
4674
4689
|
/**
|
|
4675
4690
|
* Request body for updating a worker's employment at your company. Corrects administrative fields (employment type, title, manager, payroll id, hire date, and time-and-attendance enrollment) across the whole employment history. For time-effective pay changes, use the scheduled-changes endpoints instead.
|
|
4676
4691
|
*/
|
|
@@ -6658,6 +6673,14 @@ export const zCreateAllocationPath = z.object({
|
|
|
6658
6673
|
* Created
|
|
6659
6674
|
*/
|
|
6660
6675
|
export const zCreateAllocationResponse = zApprenticeshipAllocationResponseObject;
|
|
6676
|
+
export const zDeleteAllocationPath = z.object({
|
|
6677
|
+
apprentice_id: z.string(),
|
|
6678
|
+
id: z.string()
|
|
6679
|
+
});
|
|
6680
|
+
/**
|
|
6681
|
+
* No Content
|
|
6682
|
+
*/
|
|
6683
|
+
export const zDeleteAllocationResponse = z.void();
|
|
6661
6684
|
export const zGetAllocationPath = z.object({
|
|
6662
6685
|
apprentice_id: z.string(),
|
|
6663
6686
|
id: z.string()
|
|
@@ -6737,6 +6760,22 @@ export const zCreateOccupationPath = z.object({
|
|
|
6737
6760
|
* Created
|
|
6738
6761
|
*/
|
|
6739
6762
|
export const zCreateOccupationResponse = zApprenticeshipOccupationResponseObject;
|
|
6763
|
+
export const zDeleteOccupationPath = z.object({
|
|
6764
|
+
program_id: z.string(),
|
|
6765
|
+
id: z.string()
|
|
6766
|
+
});
|
|
6767
|
+
/**
|
|
6768
|
+
* No Content
|
|
6769
|
+
*/
|
|
6770
|
+
export const zDeleteOccupationResponse = z.void();
|
|
6771
|
+
export const zGetOccupationPath = z.object({
|
|
6772
|
+
program_id: z.string(),
|
|
6773
|
+
id: z.string()
|
|
6774
|
+
});
|
|
6775
|
+
/**
|
|
6776
|
+
* Success
|
|
6777
|
+
*/
|
|
6778
|
+
export const zGetOccupationResponse = zApprenticeshipOccupationResponseObject;
|
|
6740
6779
|
export const zUpdateOccupationBody = zApprenticeshipOccupationUpdateParameters;
|
|
6741
6780
|
export const zUpdateOccupationPath = z.object({
|
|
6742
6781
|
program_id: z.string(),
|
|
@@ -6817,6 +6856,20 @@ export const zCreateProgramBody = zApprenticeshipProgramParameters;
|
|
|
6817
6856
|
* Created
|
|
6818
6857
|
*/
|
|
6819
6858
|
export const zCreateProgramResponse = zApprenticeshipProgramResponseObject;
|
|
6859
|
+
export const zDeleteProgramPath = z.object({
|
|
6860
|
+
id: z.string()
|
|
6861
|
+
});
|
|
6862
|
+
/**
|
|
6863
|
+
* No Content
|
|
6864
|
+
*/
|
|
6865
|
+
export const zDeleteProgramResponse = z.void();
|
|
6866
|
+
export const zGetProgramPath = z.object({
|
|
6867
|
+
id: z.string()
|
|
6868
|
+
});
|
|
6869
|
+
/**
|
|
6870
|
+
* Success
|
|
6871
|
+
*/
|
|
6872
|
+
export const zGetProgramResponse = zApprenticeshipProgramResponseObject;
|
|
6820
6873
|
export const zUpdateProgramBody = zApprenticeshipProgramUpdateParameters;
|
|
6821
6874
|
export const zUpdateProgramPath = z.object({
|
|
6822
6875
|
id: z.string()
|
|
@@ -6894,6 +6947,22 @@ export const zCreateWageSchedulePath = z.object({
|
|
|
6894
6947
|
* Created
|
|
6895
6948
|
*/
|
|
6896
6949
|
export const zCreateWageScheduleResponse = zApprenticeshipWageScheduleResponseObject;
|
|
6950
|
+
export const zDeleteWageSchedulePath = z.object({
|
|
6951
|
+
occupation_id: z.string(),
|
|
6952
|
+
id: z.string()
|
|
6953
|
+
});
|
|
6954
|
+
/**
|
|
6955
|
+
* No Content
|
|
6956
|
+
*/
|
|
6957
|
+
export const zDeleteWageScheduleResponse = z.void();
|
|
6958
|
+
export const zGetWageSchedulePath = z.object({
|
|
6959
|
+
occupation_id: z.string(),
|
|
6960
|
+
id: z.string()
|
|
6961
|
+
});
|
|
6962
|
+
/**
|
|
6963
|
+
* Success
|
|
6964
|
+
*/
|
|
6965
|
+
export const zGetWageScheduleResponse = zApprenticeshipWageScheduleResponseObject;
|
|
6897
6966
|
export const zUpdateWageScheduleBody = zApprenticeshipWageScheduleUpdateParameters;
|
|
6898
6967
|
export const zUpdateWageSchedulePath = z.object({
|
|
6899
6968
|
occupation_id: z.string(),
|
|
@@ -8920,6 +8989,13 @@ export const zCreatePayRateRulePackageBody = zPayRatesRulePackageParameters;
|
|
|
8920
8989
|
* Created
|
|
8921
8990
|
*/
|
|
8922
8991
|
export const zCreatePayRateRulePackageResponse = zPayRatesRulePackageResponseObject;
|
|
8992
|
+
export const zDeletePayRateRulePackagePath = z.object({
|
|
8993
|
+
id: z.string()
|
|
8994
|
+
});
|
|
8995
|
+
/**
|
|
8996
|
+
* No Content
|
|
8997
|
+
*/
|
|
8998
|
+
export const zDeletePayRateRulePackageResponse = z.void();
|
|
8923
8999
|
export const zGetPayRateRulePackagePath = z.object({
|
|
8924
9000
|
id: z.string()
|
|
8925
9001
|
});
|
|
@@ -8927,6 +9003,14 @@ export const zGetPayRateRulePackagePath = z.object({
|
|
|
8927
9003
|
* Success
|
|
8928
9004
|
*/
|
|
8929
9005
|
export const zGetPayRateRulePackageResponse = zPayRatesRulePackageResponseObject;
|
|
9006
|
+
export const zUpdatePayRateRulePackageBody = zPayRatesRulePackageUpdateParameters;
|
|
9007
|
+
export const zUpdatePayRateRulePackagePath = z.object({
|
|
9008
|
+
id: z.string()
|
|
9009
|
+
});
|
|
9010
|
+
/**
|
|
9011
|
+
* Success
|
|
9012
|
+
*/
|
|
9013
|
+
export const zUpdatePayRateRulePackageResponse = zPayRatesRulePackageResponseObject;
|
|
8930
9014
|
export const zListAggregateTimeImportsPath = z.object({
|
|
8931
9015
|
pay_period_id: z.string()
|
|
8932
9016
|
});
|
|
@@ -9686,6 +9770,7 @@ export const zListProjectsQuery = z.object({
|
|
|
9686
9770
|
'none'
|
|
9687
9771
|
]).optional(),
|
|
9688
9772
|
'filter[external_id]': z.string().optional(),
|
|
9773
|
+
'filter[name]': z.string().optional(),
|
|
9689
9774
|
'filter[created_at][gte]': z.iso.datetime().optional(),
|
|
9690
9775
|
'filter[created_at][lte]': z.iso.datetime().optional(),
|
|
9691
9776
|
'filter[updated_at][gte]': z.iso.datetime().optional(),
|
|
@@ -9729,6 +9814,13 @@ export const zCreateCompanyUserDetailBody = zPwaCompanyUserDetailsParameters;
|
|
|
9729
9814
|
* Created
|
|
9730
9815
|
*/
|
|
9731
9816
|
export const zCreateCompanyUserDetailResponse = zPwaCompanyUserDetailsResponseObject;
|
|
9817
|
+
export const zDeleteCompanyUserDetailPath = z.object({
|
|
9818
|
+
id: z.string()
|
|
9819
|
+
});
|
|
9820
|
+
/**
|
|
9821
|
+
* No Content
|
|
9822
|
+
*/
|
|
9823
|
+
export const zDeleteCompanyUserDetailResponse = z.void();
|
|
9732
9824
|
export const zUpdateCompanyUserDetailBody = zPwaCompanyUserDetailsUpdateParameters;
|
|
9733
9825
|
export const zUpdateCompanyUserDetailPath = z.object({
|
|
9734
9826
|
id: z.string()
|
|
@@ -9929,6 +10021,22 @@ export const zCreatePositionPath = z.object({
|
|
|
9929
10021
|
* Created
|
|
9930
10022
|
*/
|
|
9931
10023
|
export const zCreatePositionResponse = zPositionResponseObject;
|
|
10024
|
+
export const zDeletePositionPath = z.object({
|
|
10025
|
+
job_id: z.string(),
|
|
10026
|
+
id: z.string()
|
|
10027
|
+
});
|
|
10028
|
+
/**
|
|
10029
|
+
* No Content
|
|
10030
|
+
*/
|
|
10031
|
+
export const zDeletePositionResponse = z.void();
|
|
10032
|
+
export const zGetPositionPath = z.object({
|
|
10033
|
+
job_id: z.string(),
|
|
10034
|
+
id: z.string()
|
|
10035
|
+
});
|
|
10036
|
+
/**
|
|
10037
|
+
* Success
|
|
10038
|
+
*/
|
|
10039
|
+
export const zGetPositionResponse = zPositionResponseObject;
|
|
9932
10040
|
export const zUpdatePositionBody = zPositionParameters;
|
|
9933
10041
|
export const zUpdatePositionPath = z.object({
|
|
9934
10042
|
job_id: z.string(),
|
|
@@ -10170,6 +10278,13 @@ export const zDeleteTimeEntryPath = z.object({
|
|
|
10170
10278
|
* Success
|
|
10171
10279
|
*/
|
|
10172
10280
|
export const zDeleteTimeEntryResponse = zTimeEntryResponseObject;
|
|
10281
|
+
export const zGetTimeEntryPath = z.object({
|
|
10282
|
+
id: z.string()
|
|
10283
|
+
});
|
|
10284
|
+
/**
|
|
10285
|
+
* Success
|
|
10286
|
+
*/
|
|
10287
|
+
export const zGetTimeEntryResponse = zTimeEntryResponseObject;
|
|
10173
10288
|
export const zUpdateTimeEntryBody = zTimeEntryUpdateParameters;
|
|
10174
10289
|
export const zUpdateTimeEntryPath = z.object({
|
|
10175
10290
|
id: z.string()
|