@dsptch-work/api-client 0.21.0 → 0.22.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.
@@ -417,6 +417,9 @@ 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.company_todos": "internal.company_todos";
421
+ "internal.job_todos": "internal.job_todos";
422
+ "internal.project_todos": "internal.project_todos";
420
423
  "pay_periods.imports.aggregate_times": "pay_periods.imports.aggregate_times";
421
424
  "pay_periods.imports.dsptch_cprs": "pay_periods.imports.dsptch_cprs";
422
425
  "pay_periods.imports.time_entries": "pay_periods.imports.time_entries";
@@ -900,6 +903,86 @@ export declare const zPeopleEmploymentResponseObject: z.ZodObject<{
900
903
  created_at: z.ZodISODateTime;
901
904
  updated_at: z.ZodISODateTime;
902
905
  }, z.core.$strip>;
906
+ /**
907
+ * Create a distinct employment stint for an existing user in the credential company. Only user_id and hire_date are required; omitted optional fields use the defaults or null values described below. This does not create a user, invitation, role, group, or login identity.
908
+ */
909
+ export declare const zPeopleEmploymentCreateParameters: z.ZodObject<{
910
+ user_id: z.ZodString;
911
+ hire_date: z.ZodISODate;
912
+ type: z.ZodOptional<z.ZodEnum<{
913
+ EMPLOYEE: "EMPLOYEE";
914
+ CONTRACTOR: "CONTRACTOR";
915
+ }>>;
916
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
917
+ manager_user_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
918
+ payroll_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
919
+ enrolled_in_t_and_a: z.ZodOptional<z.ZodBoolean>;
920
+ compensation_type: z.ZodOptional<z.ZodEnum<{
921
+ hourly: "hourly";
922
+ salary: "salary";
923
+ }>>;
924
+ hourly_rate_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
925
+ overtime_eligible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
926
+ overtime_package_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
927
+ worked_annual_minutes: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
928
+ pto_annual_minutes: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
929
+ holiday_annual_minutes: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
930
+ training_annual_minutes: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
931
+ training_annual_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
932
+ employer_combined_health_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
933
+ employer_combined_savings_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
934
+ }, z.core.$strip>;
935
+ /**
936
+ * Request body for creating one strictly future employment boundary. effective_date is required and is interpreted at midnight in the credential company's time zone. Send at least one value to change; omitted values carry forward from the version immediately before the new boundary.
937
+ */
938
+ export declare const zPeopleEmploymentScheduledChangeCreateParameters: z.ZodObject<{
939
+ compensation_type: z.ZodOptional<z.ZodEnum<{
940
+ hourly: "hourly";
941
+ salary: "salary";
942
+ }>>;
943
+ hourly_rate_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
944
+ overtime_eligible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
945
+ overtime_package_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
946
+ worked_annual_minutes: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
947
+ pto_annual_minutes: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
948
+ holiday_annual_minutes: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
949
+ training_annual_minutes: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
950
+ training_annual_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
951
+ employer_combined_health_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
952
+ employer_combined_savings_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
953
+ effective_date: z.ZodISODate;
954
+ }, z.core.$strip>;
955
+ /**
956
+ * Request body for changing values at one exact strictly future employment boundary. Send only the fields to change; omitted values remain as recorded at that boundary. The boundary date cannot move.
957
+ */
958
+ export declare const zPeopleEmploymentScheduledChangeUpdateParameters: z.ZodObject<{
959
+ compensation_type: z.ZodOptional<z.ZodEnum<{
960
+ hourly: "hourly";
961
+ salary: "salary";
962
+ }>>;
963
+ hourly_rate_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
964
+ overtime_eligible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
965
+ overtime_package_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
966
+ worked_annual_minutes: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
967
+ pto_annual_minutes: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
968
+ holiday_annual_minutes: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
969
+ training_annual_minutes: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
970
+ training_annual_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
971
+ employer_combined_health_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
972
+ employer_combined_savings_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
973
+ }, z.core.$strip>;
974
+ /**
975
+ * Parameters for moving where an employment stint's valid-time timeline begins.
976
+ */
977
+ export declare const zPeopleEmploymentGenesisParameters: z.ZodObject<{
978
+ effective_date: z.ZodOptional<z.ZodISODate>;
979
+ }, z.core.$strip>;
980
+ /**
981
+ * Parameters for scheduling when an employment stint stops being valid.
982
+ */
983
+ export declare const zPeopleEmploymentScheduledTerminationParameters: z.ZodObject<{
984
+ effective_date: z.ZodISODate;
985
+ }, z.core.$strip>;
903
986
  export declare const zPeopleEmploymentHistoryCorrectionObject: z.ZodObject<{
904
987
  people_employment_id: z.ZodString;
905
988
  user_id: z.ZodString;
@@ -14567,6 +14650,9 @@ export declare const zCreateDirectUploadBody: z.ZodObject<{
14567
14650
  "assets.products": "assets.products";
14568
14651
  "assets.vendors": "assets.vendors";
14569
14652
  "compliance.checks": "compliance.checks";
14653
+ "internal.company_todos": "internal.company_todos";
14654
+ "internal.job_todos": "internal.job_todos";
14655
+ "internal.project_todos": "internal.project_todos";
14570
14656
  "pay_periods.imports.aggregate_times": "pay_periods.imports.aggregate_times";
14571
14657
  "pay_periods.imports.dsptch_cprs": "pay_periods.imports.dsptch_cprs";
14572
14658
  "pay_periods.imports.time_entries": "pay_periods.imports.time_entries";
@@ -19877,6 +19963,53 @@ export declare const zUpdatePaystubResponse: z.ZodObject<{
19877
19963
  created_at: z.ZodISODateTime;
19878
19964
  updated_at: z.ZodISODateTime;
19879
19965
  }, z.core.$strip>;
19966
+ export declare const zUpdateGenesisBody: z.ZodObject<{
19967
+ effective_date: z.ZodOptional<z.ZodISODate>;
19968
+ }, z.core.$strip>;
19969
+ export declare const zUpdateGenesisHeaders: z.ZodObject<{
19970
+ 'If-Match': z.ZodString;
19971
+ }, z.core.$strip>;
19972
+ export declare const zUpdateGenesisPath: z.ZodObject<{
19973
+ employment_id: z.ZodString;
19974
+ }, z.core.$strip>;
19975
+ /**
19976
+ * Success
19977
+ */
19978
+ export declare const zUpdateGenesisResponse: z.ZodObject<{
19979
+ id: z.ZodString;
19980
+ user_id: z.ZodString;
19981
+ company_id: z.ZodString;
19982
+ type: z.ZodEnum<{
19983
+ EMPLOYEE: "EMPLOYEE";
19984
+ CONTRACTOR: "CONTRACTOR";
19985
+ }>;
19986
+ title: z.ZodNullable<z.ZodString>;
19987
+ compensation_type: z.ZodEnum<{
19988
+ hourly: "hourly";
19989
+ salary: "salary";
19990
+ }>;
19991
+ payroll_id: z.ZodNullable<z.ZodString>;
19992
+ manager_user_id: z.ZodNullable<z.ZodString>;
19993
+ companies_department_id: z.ZodNullable<z.ZodString>;
19994
+ enrolled_in_t_and_a: z.ZodBoolean;
19995
+ overtime_eligible: z.ZodNullable<z.ZodBoolean>;
19996
+ overtime_package_id: z.ZodNullable<z.ZodString>;
19997
+ pay_rates_rule_package_id: z.ZodNullable<z.ZodString>;
19998
+ pay_rates_package_id: z.ZodNullable<z.ZodString>;
19999
+ worked_annual_minutes: z.ZodNullable<z.ZodInt>;
20000
+ pto_annual_minutes: z.ZodNullable<z.ZodInt>;
20001
+ holiday_annual_minutes: z.ZodNullable<z.ZodInt>;
20002
+ training_annual_minutes: z.ZodNullable<z.ZodInt>;
20003
+ hourly_rate_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20004
+ training_annual_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20005
+ employer_combined_health_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20006
+ employer_combined_savings_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20007
+ currency: z.ZodString;
20008
+ valid_from: z.ZodNullable<z.ZodISODateTime>;
20009
+ valid_to: z.ZodNullable<z.ZodISODateTime>;
20010
+ created_at: z.ZodISODateTime;
20011
+ updated_at: z.ZodISODateTime;
20012
+ }, z.core.$strip>;
19880
20013
  export declare const zListEmploymentHistoryPath: z.ZodObject<{
19881
20014
  employment_id: z.ZodString;
19882
20015
  }, z.core.$strip>;
@@ -20079,6 +20212,230 @@ export declare const zListEmploymentsHistoryResponse: z.ZodObject<{
20079
20212
  }, z.core.$strip>>;
20080
20213
  }, z.core.$strip>>;
20081
20214
  }, z.core.$strip>;
20215
+ export declare const zCreateEmploymentScheduledChangeBody: z.ZodObject<{
20216
+ compensation_type: z.ZodOptional<z.ZodEnum<{
20217
+ hourly: "hourly";
20218
+ salary: "salary";
20219
+ }>>;
20220
+ hourly_rate_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20221
+ overtime_eligible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
20222
+ overtime_package_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20223
+ worked_annual_minutes: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
20224
+ pto_annual_minutes: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
20225
+ holiday_annual_minutes: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
20226
+ training_annual_minutes: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
20227
+ training_annual_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20228
+ employer_combined_health_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20229
+ employer_combined_savings_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20230
+ effective_date: z.ZodISODate;
20231
+ }, z.core.$strip>;
20232
+ export declare const zCreateEmploymentScheduledChangeHeaders: z.ZodObject<{
20233
+ 'If-Match': z.ZodString;
20234
+ }, z.core.$strip>;
20235
+ export declare const zCreateEmploymentScheduledChangePath: z.ZodObject<{
20236
+ employment_id: z.ZodString;
20237
+ }, z.core.$strip>;
20238
+ /**
20239
+ * Created
20240
+ */
20241
+ export declare const zCreateEmploymentScheduledChangeResponse: z.ZodObject<{
20242
+ id: z.ZodString;
20243
+ user_id: z.ZodString;
20244
+ company_id: z.ZodString;
20245
+ type: z.ZodEnum<{
20246
+ EMPLOYEE: "EMPLOYEE";
20247
+ CONTRACTOR: "CONTRACTOR";
20248
+ }>;
20249
+ title: z.ZodNullable<z.ZodString>;
20250
+ compensation_type: z.ZodEnum<{
20251
+ hourly: "hourly";
20252
+ salary: "salary";
20253
+ }>;
20254
+ payroll_id: z.ZodNullable<z.ZodString>;
20255
+ manager_user_id: z.ZodNullable<z.ZodString>;
20256
+ companies_department_id: z.ZodNullable<z.ZodString>;
20257
+ enrolled_in_t_and_a: z.ZodBoolean;
20258
+ overtime_eligible: z.ZodNullable<z.ZodBoolean>;
20259
+ overtime_package_id: z.ZodNullable<z.ZodString>;
20260
+ pay_rates_rule_package_id: z.ZodNullable<z.ZodString>;
20261
+ pay_rates_package_id: z.ZodNullable<z.ZodString>;
20262
+ worked_annual_minutes: z.ZodNullable<z.ZodInt>;
20263
+ pto_annual_minutes: z.ZodNullable<z.ZodInt>;
20264
+ holiday_annual_minutes: z.ZodNullable<z.ZodInt>;
20265
+ training_annual_minutes: z.ZodNullable<z.ZodInt>;
20266
+ hourly_rate_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20267
+ training_annual_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20268
+ employer_combined_health_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20269
+ employer_combined_savings_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20270
+ currency: z.ZodString;
20271
+ valid_from: z.ZodNullable<z.ZodISODateTime>;
20272
+ valid_to: z.ZodNullable<z.ZodISODateTime>;
20273
+ created_at: z.ZodISODateTime;
20274
+ updated_at: z.ZodISODateTime;
20275
+ }, z.core.$strip>;
20276
+ export declare const zDeleteEmploymentScheduledChangeHeaders: z.ZodObject<{
20277
+ 'If-Match': z.ZodString;
20278
+ }, z.core.$strip>;
20279
+ export declare const zDeleteEmploymentScheduledChangePath: z.ZodObject<{
20280
+ employment_id: z.ZodString;
20281
+ effective_date: z.ZodISODate;
20282
+ }, z.core.$strip>;
20283
+ /**
20284
+ * No Content
20285
+ */
20286
+ export declare const zDeleteEmploymentScheduledChangeResponse: z.ZodVoid;
20287
+ export declare const zUpdateEmploymentScheduledChangeBody: z.ZodObject<{
20288
+ compensation_type: z.ZodOptional<z.ZodEnum<{
20289
+ hourly: "hourly";
20290
+ salary: "salary";
20291
+ }>>;
20292
+ hourly_rate_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20293
+ overtime_eligible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
20294
+ overtime_package_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20295
+ worked_annual_minutes: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
20296
+ pto_annual_minutes: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
20297
+ holiday_annual_minutes: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
20298
+ training_annual_minutes: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
20299
+ training_annual_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20300
+ employer_combined_health_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20301
+ employer_combined_savings_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20302
+ }, z.core.$strip>;
20303
+ export declare const zUpdateEmploymentScheduledChangeHeaders: z.ZodObject<{
20304
+ 'If-Match': z.ZodString;
20305
+ }, z.core.$strip>;
20306
+ export declare const zUpdateEmploymentScheduledChangePath: z.ZodObject<{
20307
+ employment_id: z.ZodString;
20308
+ effective_date: z.ZodISODate;
20309
+ }, z.core.$strip>;
20310
+ /**
20311
+ * Success
20312
+ */
20313
+ export declare const zUpdateEmploymentScheduledChangeResponse: z.ZodObject<{
20314
+ id: z.ZodString;
20315
+ user_id: z.ZodString;
20316
+ company_id: z.ZodString;
20317
+ type: z.ZodEnum<{
20318
+ EMPLOYEE: "EMPLOYEE";
20319
+ CONTRACTOR: "CONTRACTOR";
20320
+ }>;
20321
+ title: z.ZodNullable<z.ZodString>;
20322
+ compensation_type: z.ZodEnum<{
20323
+ hourly: "hourly";
20324
+ salary: "salary";
20325
+ }>;
20326
+ payroll_id: z.ZodNullable<z.ZodString>;
20327
+ manager_user_id: z.ZodNullable<z.ZodString>;
20328
+ companies_department_id: z.ZodNullable<z.ZodString>;
20329
+ enrolled_in_t_and_a: z.ZodBoolean;
20330
+ overtime_eligible: z.ZodNullable<z.ZodBoolean>;
20331
+ overtime_package_id: z.ZodNullable<z.ZodString>;
20332
+ pay_rates_rule_package_id: z.ZodNullable<z.ZodString>;
20333
+ pay_rates_package_id: z.ZodNullable<z.ZodString>;
20334
+ worked_annual_minutes: z.ZodNullable<z.ZodInt>;
20335
+ pto_annual_minutes: z.ZodNullable<z.ZodInt>;
20336
+ holiday_annual_minutes: z.ZodNullable<z.ZodInt>;
20337
+ training_annual_minutes: z.ZodNullable<z.ZodInt>;
20338
+ hourly_rate_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20339
+ training_annual_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20340
+ employer_combined_health_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20341
+ employer_combined_savings_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20342
+ currency: z.ZodString;
20343
+ valid_from: z.ZodNullable<z.ZodISODateTime>;
20344
+ valid_to: z.ZodNullable<z.ZodISODateTime>;
20345
+ created_at: z.ZodISODateTime;
20346
+ updated_at: z.ZodISODateTime;
20347
+ }, z.core.$strip>;
20348
+ export declare const zDeleteScheduledTerminationHeaders: z.ZodObject<{
20349
+ 'If-Match': z.ZodString;
20350
+ }, z.core.$strip>;
20351
+ export declare const zDeleteScheduledTerminationPath: z.ZodObject<{
20352
+ employment_id: z.ZodString;
20353
+ }, z.core.$strip>;
20354
+ /**
20355
+ * Success
20356
+ */
20357
+ export declare const zDeleteScheduledTerminationResponse: z.ZodObject<{
20358
+ id: z.ZodString;
20359
+ user_id: z.ZodString;
20360
+ company_id: z.ZodString;
20361
+ type: z.ZodEnum<{
20362
+ EMPLOYEE: "EMPLOYEE";
20363
+ CONTRACTOR: "CONTRACTOR";
20364
+ }>;
20365
+ title: z.ZodNullable<z.ZodString>;
20366
+ compensation_type: z.ZodEnum<{
20367
+ hourly: "hourly";
20368
+ salary: "salary";
20369
+ }>;
20370
+ payroll_id: z.ZodNullable<z.ZodString>;
20371
+ manager_user_id: z.ZodNullable<z.ZodString>;
20372
+ companies_department_id: z.ZodNullable<z.ZodString>;
20373
+ enrolled_in_t_and_a: z.ZodBoolean;
20374
+ overtime_eligible: z.ZodNullable<z.ZodBoolean>;
20375
+ overtime_package_id: z.ZodNullable<z.ZodString>;
20376
+ pay_rates_rule_package_id: z.ZodNullable<z.ZodString>;
20377
+ pay_rates_package_id: z.ZodNullable<z.ZodString>;
20378
+ worked_annual_minutes: z.ZodNullable<z.ZodInt>;
20379
+ pto_annual_minutes: z.ZodNullable<z.ZodInt>;
20380
+ holiday_annual_minutes: z.ZodNullable<z.ZodInt>;
20381
+ training_annual_minutes: z.ZodNullable<z.ZodInt>;
20382
+ hourly_rate_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20383
+ training_annual_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20384
+ employer_combined_health_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20385
+ employer_combined_savings_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20386
+ currency: z.ZodString;
20387
+ valid_from: z.ZodNullable<z.ZodISODateTime>;
20388
+ valid_to: z.ZodNullable<z.ZodISODateTime>;
20389
+ created_at: z.ZodISODateTime;
20390
+ updated_at: z.ZodISODateTime;
20391
+ }, z.core.$strip>;
20392
+ export declare const zCreateEmploymentScheduledTerminationBody: z.ZodObject<{
20393
+ effective_date: z.ZodISODate;
20394
+ }, z.core.$strip>;
20395
+ export declare const zCreateEmploymentScheduledTerminationHeaders: z.ZodObject<{
20396
+ 'If-Match': z.ZodString;
20397
+ }, z.core.$strip>;
20398
+ export declare const zCreateEmploymentScheduledTerminationPath: z.ZodObject<{
20399
+ employment_id: z.ZodString;
20400
+ }, z.core.$strip>;
20401
+ /**
20402
+ * Created
20403
+ */
20404
+ export declare const zCreateEmploymentScheduledTerminationResponse: z.ZodObject<{
20405
+ id: z.ZodString;
20406
+ user_id: z.ZodString;
20407
+ company_id: z.ZodString;
20408
+ type: z.ZodEnum<{
20409
+ EMPLOYEE: "EMPLOYEE";
20410
+ CONTRACTOR: "CONTRACTOR";
20411
+ }>;
20412
+ title: z.ZodNullable<z.ZodString>;
20413
+ compensation_type: z.ZodEnum<{
20414
+ hourly: "hourly";
20415
+ salary: "salary";
20416
+ }>;
20417
+ payroll_id: z.ZodNullable<z.ZodString>;
20418
+ manager_user_id: z.ZodNullable<z.ZodString>;
20419
+ companies_department_id: z.ZodNullable<z.ZodString>;
20420
+ enrolled_in_t_and_a: z.ZodBoolean;
20421
+ overtime_eligible: z.ZodNullable<z.ZodBoolean>;
20422
+ overtime_package_id: z.ZodNullable<z.ZodString>;
20423
+ pay_rates_rule_package_id: z.ZodNullable<z.ZodString>;
20424
+ pay_rates_package_id: z.ZodNullable<z.ZodString>;
20425
+ worked_annual_minutes: z.ZodNullable<z.ZodInt>;
20426
+ pto_annual_minutes: z.ZodNullable<z.ZodInt>;
20427
+ holiday_annual_minutes: z.ZodNullable<z.ZodInt>;
20428
+ training_annual_minutes: z.ZodNullable<z.ZodInt>;
20429
+ hourly_rate_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20430
+ training_annual_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20431
+ employer_combined_health_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20432
+ employer_combined_savings_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20433
+ currency: z.ZodString;
20434
+ valid_from: z.ZodNullable<z.ZodISODateTime>;
20435
+ valid_to: z.ZodNullable<z.ZodISODateTime>;
20436
+ created_at: z.ZodISODateTime;
20437
+ updated_at: z.ZodISODateTime;
20438
+ }, z.core.$strip>;
20082
20439
  export declare const zListEmploymentsQuery: z.ZodObject<{
20083
20440
  'filter[user_id]': z.ZodOptional<z.ZodString>;
20084
20441
  filter: z.ZodOptional<z.ZodString>;
@@ -20143,6 +20500,70 @@ export declare const zListEmploymentsResponse: z.ZodObject<{
20143
20500
  updated_at: z.ZodISODateTime;
20144
20501
  }, z.core.$strip>>;
20145
20502
  }, z.core.$strip>;
20503
+ export declare const zCreateEmploymentBody: z.ZodObject<{
20504
+ user_id: z.ZodString;
20505
+ hire_date: z.ZodISODate;
20506
+ type: z.ZodOptional<z.ZodEnum<{
20507
+ EMPLOYEE: "EMPLOYEE";
20508
+ CONTRACTOR: "CONTRACTOR";
20509
+ }>>;
20510
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20511
+ manager_user_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20512
+ payroll_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20513
+ enrolled_in_t_and_a: z.ZodOptional<z.ZodBoolean>;
20514
+ compensation_type: z.ZodOptional<z.ZodEnum<{
20515
+ hourly: "hourly";
20516
+ salary: "salary";
20517
+ }>>;
20518
+ hourly_rate_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20519
+ overtime_eligible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
20520
+ overtime_package_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20521
+ worked_annual_minutes: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
20522
+ pto_annual_minutes: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
20523
+ holiday_annual_minutes: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
20524
+ training_annual_minutes: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
20525
+ training_annual_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20526
+ employer_combined_health_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20527
+ employer_combined_savings_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20528
+ }, z.core.$strip>;
20529
+ /**
20530
+ * Created
20531
+ */
20532
+ export declare const zCreateEmploymentResponse: z.ZodObject<{
20533
+ id: z.ZodString;
20534
+ user_id: z.ZodString;
20535
+ company_id: z.ZodString;
20536
+ type: z.ZodEnum<{
20537
+ EMPLOYEE: "EMPLOYEE";
20538
+ CONTRACTOR: "CONTRACTOR";
20539
+ }>;
20540
+ title: z.ZodNullable<z.ZodString>;
20541
+ compensation_type: z.ZodEnum<{
20542
+ hourly: "hourly";
20543
+ salary: "salary";
20544
+ }>;
20545
+ payroll_id: z.ZodNullable<z.ZodString>;
20546
+ manager_user_id: z.ZodNullable<z.ZodString>;
20547
+ companies_department_id: z.ZodNullable<z.ZodString>;
20548
+ enrolled_in_t_and_a: z.ZodBoolean;
20549
+ overtime_eligible: z.ZodNullable<z.ZodBoolean>;
20550
+ overtime_package_id: z.ZodNullable<z.ZodString>;
20551
+ pay_rates_rule_package_id: z.ZodNullable<z.ZodString>;
20552
+ pay_rates_package_id: z.ZodNullable<z.ZodString>;
20553
+ worked_annual_minutes: z.ZodNullable<z.ZodInt>;
20554
+ pto_annual_minutes: z.ZodNullable<z.ZodInt>;
20555
+ holiday_annual_minutes: z.ZodNullable<z.ZodInt>;
20556
+ training_annual_minutes: z.ZodNullable<z.ZodInt>;
20557
+ hourly_rate_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20558
+ training_annual_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20559
+ employer_combined_health_amount_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20560
+ employer_combined_savings_cents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20561
+ currency: z.ZodString;
20562
+ valid_from: z.ZodNullable<z.ZodISODateTime>;
20563
+ valid_to: z.ZodNullable<z.ZodISODateTime>;
20564
+ created_at: z.ZodISODateTime;
20565
+ updated_at: z.ZodISODateTime;
20566
+ }, z.core.$strip>;
20146
20567
  export declare const zGetEmploymentPath: z.ZodObject<{
20147
20568
  id: z.ZodString;
20148
20569
  }, z.core.$strip>;
@@ -418,6 +418,9 @@ export const zDirectUploadParameters = z.object({
418
418
  'assets.products',
419
419
  'assets.vendors',
420
420
  'compliance.checks',
421
+ 'internal.company_todos',
422
+ 'internal.job_todos',
423
+ 'internal.project_todos',
421
424
  'pay_periods.imports.aggregate_times',
422
425
  'pay_periods.imports.dsptch_cprs',
423
426
  'pay_periods.imports.time_entries',
@@ -894,6 +897,74 @@ export const zPeopleEmploymentResponseObject = z.object({
894
897
  created_at: z.iso.datetime(),
895
898
  updated_at: z.iso.datetime()
896
899
  });
900
+ /**
901
+ * Create a distinct employment stint for an existing user in the credential company. Only user_id and hire_date are required; omitted optional fields use the defaults or null values described below. This does not create a user, invitation, role, group, or login identity.
902
+ */
903
+ export const zPeopleEmploymentCreateParameters = z.object({
904
+ user_id: z.string(),
905
+ hire_date: z.iso.date(),
906
+ type: z.enum(['EMPLOYEE', 'CONTRACTOR']).optional(),
907
+ title: z.string().nullish(),
908
+ manager_user_id: z.string().nullish(),
909
+ payroll_id: z.string().nullish(),
910
+ enrolled_in_t_and_a: z.boolean().optional(),
911
+ compensation_type: z.enum(['hourly', 'salary']).optional(),
912
+ hourly_rate_cents: z.string().nullish(),
913
+ overtime_eligible: z.boolean().nullish(),
914
+ overtime_package_id: z.string().nullish(),
915
+ worked_annual_minutes: z.int().nullish(),
916
+ pto_annual_minutes: z.int().nullish(),
917
+ holiday_annual_minutes: z.int().nullish(),
918
+ training_annual_minutes: z.int().nullish(),
919
+ training_annual_amount_cents: z.string().nullish(),
920
+ employer_combined_health_amount_cents: z.string().nullish(),
921
+ employer_combined_savings_cents: z.string().nullish()
922
+ });
923
+ /**
924
+ * Request body for creating one strictly future employment boundary. effective_date is required and is interpreted at midnight in the credential company's time zone. Send at least one value to change; omitted values carry forward from the version immediately before the new boundary.
925
+ */
926
+ export const zPeopleEmploymentScheduledChangeCreateParameters = z.object({
927
+ compensation_type: z.enum(['hourly', 'salary']).optional(),
928
+ hourly_rate_cents: z.string().nullish(),
929
+ overtime_eligible: z.boolean().nullish(),
930
+ overtime_package_id: z.string().nullish(),
931
+ worked_annual_minutes: z.int().nullish(),
932
+ pto_annual_minutes: z.int().nullish(),
933
+ holiday_annual_minutes: z.int().nullish(),
934
+ training_annual_minutes: z.int().nullish(),
935
+ training_annual_amount_cents: z.string().nullish(),
936
+ employer_combined_health_amount_cents: z.string().nullish(),
937
+ employer_combined_savings_cents: z.string().nullish(),
938
+ effective_date: z.iso.date()
939
+ });
940
+ /**
941
+ * Request body for changing values at one exact strictly future employment boundary. Send only the fields to change; omitted values remain as recorded at that boundary. The boundary date cannot move.
942
+ */
943
+ export const zPeopleEmploymentScheduledChangeUpdateParameters = z.object({
944
+ compensation_type: z.enum(['hourly', 'salary']).optional(),
945
+ hourly_rate_cents: z.string().nullish(),
946
+ overtime_eligible: z.boolean().nullish(),
947
+ overtime_package_id: z.string().nullish(),
948
+ worked_annual_minutes: z.int().nullish(),
949
+ pto_annual_minutes: z.int().nullish(),
950
+ holiday_annual_minutes: z.int().nullish(),
951
+ training_annual_minutes: z.int().nullish(),
952
+ training_annual_amount_cents: z.string().nullish(),
953
+ employer_combined_health_amount_cents: z.string().nullish(),
954
+ employer_combined_savings_cents: z.string().nullish()
955
+ });
956
+ /**
957
+ * Parameters for moving where an employment stint's valid-time timeline begins.
958
+ */
959
+ export const zPeopleEmploymentGenesisParameters = z.object({
960
+ effective_date: z.iso.date().optional()
961
+ });
962
+ /**
963
+ * Parameters for scheduling when an employment stint stops being valid.
964
+ */
965
+ export const zPeopleEmploymentScheduledTerminationParameters = z.object({
966
+ effective_date: z.iso.date()
967
+ });
897
968
  export const zPeopleEmploymentHistoryCorrectionObject = z.object({
898
969
  people_employment_id: z.string(),
899
970
  user_id: z.string(),
@@ -9185,6 +9256,17 @@ export const zUpdatePaystubPath = z.object({
9185
9256
  * Success
9186
9257
  */
9187
9258
  export const zUpdatePaystubResponse = zPaystubResponseObject;
9259
+ export const zUpdateGenesisBody = zPeopleEmploymentGenesisParameters;
9260
+ export const zUpdateGenesisHeaders = z.object({
9261
+ 'If-Match': z.string()
9262
+ });
9263
+ export const zUpdateGenesisPath = z.object({
9264
+ employment_id: z.string()
9265
+ });
9266
+ /**
9267
+ * Success
9268
+ */
9269
+ export const zUpdateGenesisResponse = zPeopleEmploymentResponseObject;
9188
9270
  export const zListEmploymentHistoryPath = z.object({
9189
9271
  employment_id: z.string()
9190
9272
  });
@@ -9221,6 +9303,61 @@ export const zListEmploymentsHistoryResponse = z.object({
9221
9303
  links: zLinks,
9222
9304
  data: z.array(zPeopleEmploymentHistoryVersionObject)
9223
9305
  });
9306
+ export const zCreateEmploymentScheduledChangeBody = zPeopleEmploymentScheduledChangeCreateParameters;
9307
+ export const zCreateEmploymentScheduledChangeHeaders = z.object({
9308
+ 'If-Match': z.string()
9309
+ });
9310
+ export const zCreateEmploymentScheduledChangePath = z.object({
9311
+ employment_id: z.string()
9312
+ });
9313
+ /**
9314
+ * Created
9315
+ */
9316
+ export const zCreateEmploymentScheduledChangeResponse = zPeopleEmploymentResponseObject;
9317
+ export const zDeleteEmploymentScheduledChangeHeaders = z.object({
9318
+ 'If-Match': z.string()
9319
+ });
9320
+ export const zDeleteEmploymentScheduledChangePath = z.object({
9321
+ employment_id: z.string(),
9322
+ effective_date: z.iso.date()
9323
+ });
9324
+ /**
9325
+ * No Content
9326
+ */
9327
+ export const zDeleteEmploymentScheduledChangeResponse = z.void();
9328
+ export const zUpdateEmploymentScheduledChangeBody = zPeopleEmploymentScheduledChangeUpdateParameters;
9329
+ export const zUpdateEmploymentScheduledChangeHeaders = z.object({
9330
+ 'If-Match': z.string()
9331
+ });
9332
+ export const zUpdateEmploymentScheduledChangePath = z.object({
9333
+ employment_id: z.string(),
9334
+ effective_date: z.iso.date()
9335
+ });
9336
+ /**
9337
+ * Success
9338
+ */
9339
+ export const zUpdateEmploymentScheduledChangeResponse = zPeopleEmploymentResponseObject;
9340
+ export const zDeleteScheduledTerminationHeaders = z.object({
9341
+ 'If-Match': z.string()
9342
+ });
9343
+ export const zDeleteScheduledTerminationPath = z.object({
9344
+ employment_id: z.string()
9345
+ });
9346
+ /**
9347
+ * Success
9348
+ */
9349
+ export const zDeleteScheduledTerminationResponse = zPeopleEmploymentResponseObject;
9350
+ export const zCreateEmploymentScheduledTerminationBody = zPeopleEmploymentScheduledTerminationParameters;
9351
+ export const zCreateEmploymentScheduledTerminationHeaders = z.object({
9352
+ 'If-Match': z.string()
9353
+ });
9354
+ export const zCreateEmploymentScheduledTerminationPath = z.object({
9355
+ employment_id: z.string()
9356
+ });
9357
+ /**
9358
+ * Created
9359
+ */
9360
+ export const zCreateEmploymentScheduledTerminationResponse = zPeopleEmploymentResponseObject;
9224
9361
  export const zListEmploymentsQuery = z.object({
9225
9362
  'filter[user_id]': z.string().optional(),
9226
9363
  filter: z.string().optional(),
@@ -9242,6 +9379,11 @@ export const zListEmploymentsResponse = z.object({
9242
9379
  links: zLinks,
9243
9380
  data: z.array(zPeopleEmploymentResponseObject)
9244
9381
  });
9382
+ export const zCreateEmploymentBody = zPeopleEmploymentCreateParameters;
9383
+ /**
9384
+ * Created
9385
+ */
9386
+ export const zCreateEmploymentResponse = zPeopleEmploymentResponseObject;
9245
9387
  export const zGetEmploymentPath = z.object({
9246
9388
  id: z.string()
9247
9389
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dsptch-work/api-client",
3
- "version": "0.21.0",
3
+ "version": "0.22.0",
4
4
  "description": "Generated TypeScript client for the DSPTCH REST API.",
5
5
  "keywords": [
6
6
  "dsptch",