@dsptch-work/api-client 0.29.0 → 0.30.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.
@@ -3386,6 +3386,37 @@ export declare const zTimeSessionResponseObject: z.ZodObject<{
3386
3386
  created_at: z.ZodISODateTime;
3387
3387
  updated_at: z.ZodISODateTime;
3388
3388
  }, z.core.$strip>;
3389
+ /**
3390
+ * A worker request for non-working time (R&R, PTO, and the other absence types). Approval produces an Absence; this read surface does not nest that Absence or the request's comments.
3391
+ */
3392
+ export declare const zTimeOffRequestResponseObject: z.ZodObject<{
3393
+ id: z.ZodString;
3394
+ user_id: z.ZodString;
3395
+ status: z.ZodEnum<{
3396
+ pending: "pending";
3397
+ cancelled: "cancelled";
3398
+ denied: "denied";
3399
+ approved: "approved";
3400
+ expired: "expired";
3401
+ }>;
3402
+ absence_type: z.ZodEnum<{
3403
+ rest_and_recovery: "rest_and_recovery";
3404
+ vacation: "vacation";
3405
+ bereavement: "bereavement";
3406
+ ca_covid_19_sick: "ca_covid_19_sick";
3407
+ custom: "custom";
3408
+ jury_duty: "jury_duty";
3409
+ unpaid: "unpaid";
3410
+ training: "training";
3411
+ bench: "bench";
3412
+ }>;
3413
+ start_time: z.ZodISODateTime;
3414
+ end_time: z.ZodISODateTime;
3415
+ reviewed_at: z.ZodNullable<z.ZodISODateTime>;
3416
+ reviewer_user_id: z.ZodNullable<z.ZodString>;
3417
+ created_at: z.ZodISODateTime;
3418
+ updated_at: z.ZodISODateTime;
3419
+ }, z.core.$strip>;
3389
3420
  /**
3390
3421
  * Request body for locking or unlocking a time card.
3391
3422
  */
@@ -3425,11 +3456,11 @@ export declare const zCompensationElementResponseObject: z.ZodObject<{
3425
3456
  savings: "savings";
3426
3457
  }>;
3427
3458
  lcp_employer_contribution_type: z.ZodEnum<{
3459
+ training: "training";
3428
3460
  ignore: "ignore";
3429
3461
  health_and_welfare: "health_and_welfare";
3430
3462
  pension: "pension";
3431
3463
  vacation_and_holiday: "vacation_and_holiday";
3432
- training: "training";
3433
3464
  all_other: "all_other";
3434
3465
  }>;
3435
3466
  lcp_employee_contribution_type: z.ZodEnum<{
@@ -3747,7 +3778,7 @@ export declare const zProjectResponseObject: z.ZodObject<{
3747
3778
  updated_at: z.ZodISODateTime;
3748
3779
  }, z.core.$strip>;
3749
3780
  /**
3750
- * Request body for creating or updating a project. Only `name` is required by the schema; `created_by_user_id` is additionally required on create and must be a member of the owning company. The owning company is inferred from the API key and is not part of the body. Omit relationship fields on PATCH to leave them unchanged.
3781
+ * Request body for creating a project. `name` and `created_by_user_id` are required; the creator must be a member of the owning company. The owning company is inferred from the API key and is not part of the body. Undeclared body keys return 400 before any project or relationship is saved.
3751
3782
  */
3752
3783
  export declare const zProjectParameters: z.ZodObject<{
3753
3784
  external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -3783,7 +3814,7 @@ export declare const zProjectParameters: z.ZodObject<{
3783
3814
  placed_in_service_date: z.ZodOptional<z.ZodNullable<z.ZodISODate>>;
3784
3815
  }, z.core.$strip>;
3785
3816
  /**
3786
- * Request body for updating a project. Every field is optional; omit a field to preserve its current value. The resulting project must still satisfy conditional PWA, regional, and schedule validation rules. `created_by_user_id` is create-only and an update that names it is rejected.
3817
+ * Request body for updating a project. Every field is optional; omit a field to preserve its current value. The resulting project must still satisfy conditional PWA, regional, and schedule validation rules. `created_by_user_id` is create-only; omit it on PATCH. Every update that includes it returns 400, even when unchanged. Undeclared body keys return 400 before any project or relationship changes.
3787
3818
  */
3788
3819
  export declare const zProjectUpdateParameters: z.ZodObject<{
3789
3820
  external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -5882,7 +5913,7 @@ export declare const zUserParameters: z.ZodIntersection<z.ZodUnion<readonly [z.Z
5882
5913
  dol_apprentice_no: z.ZodOptional<z.ZodString>;
5883
5914
  winda_id: z.ZodOptional<z.ZodString>;
5884
5915
  linkedin_url: z.ZodOptional<z.ZodString>;
5885
- roles: z.ZodOptional<z.ZodArray<z.ZodString>>;
5916
+ roles: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
5886
5917
  avatar_signed_id: z.ZodOptional<z.ZodString>;
5887
5918
  created_by_user_id: z.ZodOptional<z.ZodString>;
5888
5919
  last_sent_by_user_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -5910,7 +5941,7 @@ export declare const zUserParameters: z.ZodIntersection<z.ZodUnion<readonly [z.Z
5910
5941
  holiday_annual_minutes: z.ZodOptional<z.ZodString>;
5911
5942
  training_annual_minutes: z.ZodOptional<z.ZodString>;
5912
5943
  hire_date: z.ZodOptional<z.ZodString>;
5913
- group_ids: z.ZodOptional<z.ZodArray<z.ZodInt>>;
5944
+ group_ids: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUUID>>>;
5914
5945
  custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
5915
5946
  custom_field_config_id: z.ZodString;
5916
5947
  value: z.ZodNullable<z.ZodString>;
@@ -6440,6 +6471,50 @@ export declare const zTimeSessionsResponseObject: z.ZodObject<{
6440
6471
  updated_at: z.ZodISODateTime;
6441
6472
  }, z.core.$strip>>;
6442
6473
  }, z.core.$strip>;
6474
+ /**
6475
+ * A page of time-off requests, with pagination metadata and navigation links.
6476
+ */
6477
+ export declare const zTimeOffRequestsResponseObject: z.ZodObject<{
6478
+ meta: z.ZodObject<{
6479
+ page: z.ZodObject<{
6480
+ next_cursor: z.ZodNullable<z.ZodString>;
6481
+ current_cursor: z.ZodNullable<z.ZodString>;
6482
+ }, z.core.$strip>;
6483
+ }, z.core.$strip>;
6484
+ links: z.ZodObject<{
6485
+ self: z.ZodString;
6486
+ first: z.ZodNullable<z.ZodString>;
6487
+ next: z.ZodNullable<z.ZodString>;
6488
+ }, z.core.$strip>;
6489
+ data: z.ZodArray<z.ZodObject<{
6490
+ id: z.ZodString;
6491
+ user_id: z.ZodString;
6492
+ status: z.ZodEnum<{
6493
+ pending: "pending";
6494
+ cancelled: "cancelled";
6495
+ denied: "denied";
6496
+ approved: "approved";
6497
+ expired: "expired";
6498
+ }>;
6499
+ absence_type: z.ZodEnum<{
6500
+ rest_and_recovery: "rest_and_recovery";
6501
+ vacation: "vacation";
6502
+ bereavement: "bereavement";
6503
+ ca_covid_19_sick: "ca_covid_19_sick";
6504
+ custom: "custom";
6505
+ jury_duty: "jury_duty";
6506
+ unpaid: "unpaid";
6507
+ training: "training";
6508
+ bench: "bench";
6509
+ }>;
6510
+ start_time: z.ZodISODateTime;
6511
+ end_time: z.ZodISODateTime;
6512
+ reviewed_at: z.ZodNullable<z.ZodISODateTime>;
6513
+ reviewer_user_id: z.ZodNullable<z.ZodString>;
6514
+ created_at: z.ZodISODateTime;
6515
+ updated_at: z.ZodISODateTime;
6516
+ }, z.core.$strip>>;
6517
+ }, z.core.$strip>;
6443
6518
  /**
6444
6519
  * A page of payroll runs, with pagination metadata and navigation links.
6445
6520
  */
@@ -17708,6 +17783,18 @@ export declare const zListJobsQuery: z.ZodObject<{
17708
17783
  }>>;
17709
17784
  'filter[name]': z.ZodOptional<z.ZodString>;
17710
17785
  'filter[purchase_order_number]': z.ZodOptional<z.ZodString>;
17786
+ 'filter[federal_pwa_mode]': z.ZodOptional<z.ZodArray<z.ZodEnum<{
17787
+ none: "none";
17788
+ all: "all";
17789
+ pw_only: "pw_only";
17790
+ ap_only: "ap_only";
17791
+ }>>>;
17792
+ 'filter[regional_pwa_mode]': z.ZodOptional<z.ZodArray<z.ZodEnum<{
17793
+ none: "none";
17794
+ all: "all";
17795
+ pw_only: "pw_only";
17796
+ ap_only: "ap_only";
17797
+ }>>>;
17711
17798
  'page[cursor]': z.ZodOptional<z.ZodString>;
17712
17799
  'page[limit]': z.ZodDefault<z.ZodOptional<z.ZodInt>>;
17713
17800
  page: z.ZodOptional<z.ZodString>;
@@ -20979,11 +21066,11 @@ export declare const zListCompensationElementsResponse: z.ZodObject<{
20979
21066
  savings: "savings";
20980
21067
  }>;
20981
21068
  lcp_employer_contribution_type: z.ZodEnum<{
21069
+ training: "training";
20982
21070
  ignore: "ignore";
20983
21071
  health_and_welfare: "health_and_welfare";
20984
21072
  pension: "pension";
20985
21073
  vacation_and_holiday: "vacation_and_holiday";
20986
- training: "training";
20987
21074
  all_other: "all_other";
20988
21075
  }>;
20989
21076
  lcp_employee_contribution_type: z.ZodEnum<{
@@ -21031,11 +21118,11 @@ export declare const zGetCompensationElementResponse: z.ZodObject<{
21031
21118
  savings: "savings";
21032
21119
  }>;
21033
21120
  lcp_employer_contribution_type: z.ZodEnum<{
21121
+ training: "training";
21034
21122
  ignore: "ignore";
21035
21123
  health_and_welfare: "health_and_welfare";
21036
21124
  pension: "pension";
21037
21125
  vacation_and_holiday: "vacation_and_holiday";
21038
- training: "training";
21039
21126
  all_other: "all_other";
21040
21127
  }>;
21041
21128
  lcp_employee_contribution_type: z.ZodEnum<{
@@ -21692,6 +21779,7 @@ export declare const zGetWidePaystubImportResponse: z.ZodObject<{
21692
21779
  export declare const zListPayrollRunsQuery: z.ZodObject<{
21693
21780
  'filter[run_type]': z.ZodOptional<z.ZodString>;
21694
21781
  'filter[timekeeping_pay_period_id]': z.ZodOptional<z.ZodString>;
21782
+ 'filter[user_id]': z.ZodOptional<z.ZodString>;
21695
21783
  'filter[run_date][gte]': z.ZodOptional<z.ZodISODate>;
21696
21784
  'filter[run_date][lte]': z.ZodOptional<z.ZodISODate>;
21697
21785
  'filter[created_at][gte]': z.ZodOptional<z.ZodISODateTime>;
@@ -25252,6 +25340,7 @@ export declare const zCreateWorkerTimeCardApprovalResponse: z.ZodObject<{
25252
25340
  export declare const zListTimeCardsQuery: z.ZodObject<{
25253
25341
  'filter[timekeeping_pay_period_id]': z.ZodOptional<z.ZodString>;
25254
25342
  'filter[user_id]': z.ZodOptional<z.ZodString>;
25343
+ 'filter[job_id]': z.ZodOptional<z.ZodString>;
25255
25344
  'filter[start_time][gte]': z.ZodOptional<z.ZodISODateTime>;
25256
25345
  'filter[start_time][lte]': z.ZodOptional<z.ZodISODateTime>;
25257
25346
  filter: z.ZodOptional<z.ZodString>;
@@ -27150,6 +27239,97 @@ export declare const zGetTimeCardActualResponse: z.ZodObject<{
27150
27239
  created_at: z.ZodISODateTime;
27151
27240
  updated_at: z.ZodISODateTime;
27152
27241
  }, z.core.$strip>;
27242
+ export declare const zListTimeOffRequestsQuery: z.ZodObject<{
27243
+ 'filter[user_id]': z.ZodOptional<z.ZodString>;
27244
+ 'filter[status]': z.ZodOptional<z.ZodEnum<{
27245
+ pending: "pending";
27246
+ cancelled: "cancelled";
27247
+ denied: "denied";
27248
+ approved: "approved";
27249
+ expired: "expired";
27250
+ }>>;
27251
+ 'page[cursor]': z.ZodOptional<z.ZodString>;
27252
+ 'page[limit]': z.ZodDefault<z.ZodOptional<z.ZodInt>>;
27253
+ page: z.ZodOptional<z.ZodString>;
27254
+ }, z.core.$strip>;
27255
+ /**
27256
+ * Success
27257
+ */
27258
+ export declare const zListTimeOffRequestsResponse: z.ZodObject<{
27259
+ meta: z.ZodObject<{
27260
+ page: z.ZodObject<{
27261
+ next_cursor: z.ZodNullable<z.ZodString>;
27262
+ current_cursor: z.ZodNullable<z.ZodString>;
27263
+ }, z.core.$strip>;
27264
+ }, z.core.$strip>;
27265
+ links: z.ZodObject<{
27266
+ self: z.ZodString;
27267
+ first: z.ZodNullable<z.ZodString>;
27268
+ next: z.ZodNullable<z.ZodString>;
27269
+ }, z.core.$strip>;
27270
+ data: z.ZodArray<z.ZodObject<{
27271
+ id: z.ZodString;
27272
+ user_id: z.ZodString;
27273
+ status: z.ZodEnum<{
27274
+ pending: "pending";
27275
+ cancelled: "cancelled";
27276
+ denied: "denied";
27277
+ approved: "approved";
27278
+ expired: "expired";
27279
+ }>;
27280
+ absence_type: z.ZodEnum<{
27281
+ rest_and_recovery: "rest_and_recovery";
27282
+ vacation: "vacation";
27283
+ bereavement: "bereavement";
27284
+ ca_covid_19_sick: "ca_covid_19_sick";
27285
+ custom: "custom";
27286
+ jury_duty: "jury_duty";
27287
+ unpaid: "unpaid";
27288
+ training: "training";
27289
+ bench: "bench";
27290
+ }>;
27291
+ start_time: z.ZodISODateTime;
27292
+ end_time: z.ZodISODateTime;
27293
+ reviewed_at: z.ZodNullable<z.ZodISODateTime>;
27294
+ reviewer_user_id: z.ZodNullable<z.ZodString>;
27295
+ created_at: z.ZodISODateTime;
27296
+ updated_at: z.ZodISODateTime;
27297
+ }, z.core.$strip>>;
27298
+ }, z.core.$strip>;
27299
+ export declare const zGetTimeOffRequestPath: z.ZodObject<{
27300
+ id: z.ZodString;
27301
+ }, z.core.$strip>;
27302
+ /**
27303
+ * Success
27304
+ */
27305
+ export declare const zGetTimeOffRequestResponse: z.ZodObject<{
27306
+ id: z.ZodString;
27307
+ user_id: z.ZodString;
27308
+ status: z.ZodEnum<{
27309
+ pending: "pending";
27310
+ cancelled: "cancelled";
27311
+ denied: "denied";
27312
+ approved: "approved";
27313
+ expired: "expired";
27314
+ }>;
27315
+ absence_type: z.ZodEnum<{
27316
+ rest_and_recovery: "rest_and_recovery";
27317
+ vacation: "vacation";
27318
+ bereavement: "bereavement";
27319
+ ca_covid_19_sick: "ca_covid_19_sick";
27320
+ custom: "custom";
27321
+ jury_duty: "jury_duty";
27322
+ unpaid: "unpaid";
27323
+ training: "training";
27324
+ bench: "bench";
27325
+ }>;
27326
+ start_time: z.ZodISODateTime;
27327
+ end_time: z.ZodISODateTime;
27328
+ reviewed_at: z.ZodNullable<z.ZodISODateTime>;
27329
+ reviewer_user_id: z.ZodNullable<z.ZodString>;
27330
+ created_at: z.ZodISODateTime;
27331
+ updated_at: z.ZodISODateTime;
27332
+ }, z.core.$strip>;
27153
27333
  export declare const zListTimeSessionsQuery: z.ZodObject<{
27154
27334
  'filter[user_id]': z.ZodOptional<z.ZodString>;
27155
27335
  'filter[job_id]': z.ZodOptional<z.ZodString>;
@@ -28309,6 +28489,8 @@ export declare const zListUsersQuery: z.ZodObject<{
28309
28489
  terminated: "terminated";
28310
28490
  }>>;
28311
28491
  'filter[name]': z.ZodOptional<z.ZodString>;
28492
+ 'filter[manager_user_id]': z.ZodOptional<z.ZodString>;
28493
+ 'filter[department_id]': z.ZodOptional<z.ZodString>;
28312
28494
  'page[cursor]': z.ZodOptional<z.ZodString>;
28313
28495
  'page[limit]': z.ZodDefault<z.ZodOptional<z.ZodInt>>;
28314
28496
  page: z.ZodOptional<z.ZodString>;
@@ -28485,7 +28667,7 @@ export declare const zCreateUserBody: z.ZodIntersection<z.ZodUnion<readonly [z.Z
28485
28667
  dol_apprentice_no: z.ZodOptional<z.ZodString>;
28486
28668
  winda_id: z.ZodOptional<z.ZodString>;
28487
28669
  linkedin_url: z.ZodOptional<z.ZodString>;
28488
- roles: z.ZodOptional<z.ZodArray<z.ZodString>>;
28670
+ roles: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
28489
28671
  avatar_signed_id: z.ZodOptional<z.ZodString>;
28490
28672
  created_by_user_id: z.ZodOptional<z.ZodString>;
28491
28673
  last_sent_by_user_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -28513,7 +28695,7 @@ export declare const zCreateUserBody: z.ZodIntersection<z.ZodUnion<readonly [z.Z
28513
28695
  holiday_annual_minutes: z.ZodOptional<z.ZodString>;
28514
28696
  training_annual_minutes: z.ZodOptional<z.ZodString>;
28515
28697
  hire_date: z.ZodOptional<z.ZodString>;
28516
- group_ids: z.ZodOptional<z.ZodArray<z.ZodInt>>;
28698
+ group_ids: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUUID>>>;
28517
28699
  custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
28518
28700
  custom_field_config_id: z.ZodString;
28519
28701
  value: z.ZodNullable<z.ZodString>;
@@ -2992,6 +2992,37 @@ export const zTimeSessionResponseObject = z.object({
2992
2992
  created_at: z.iso.datetime(),
2993
2993
  updated_at: z.iso.datetime()
2994
2994
  });
2995
+ /**
2996
+ * A worker request for non-working time (R&R, PTO, and the other absence types). Approval produces an Absence; this read surface does not nest that Absence or the request's comments.
2997
+ */
2998
+ export const zTimeOffRequestResponseObject = z.object({
2999
+ id: z.string(),
3000
+ user_id: z.string(),
3001
+ status: z.enum([
3002
+ 'pending',
3003
+ 'approved',
3004
+ 'denied',
3005
+ 'cancelled',
3006
+ 'expired'
3007
+ ]),
3008
+ absence_type: z.enum([
3009
+ 'rest_and_recovery',
3010
+ 'vacation',
3011
+ 'bereavement',
3012
+ 'ca_covid_19_sick',
3013
+ 'custom',
3014
+ 'jury_duty',
3015
+ 'unpaid',
3016
+ 'training',
3017
+ 'bench'
3018
+ ]),
3019
+ start_time: z.iso.datetime(),
3020
+ end_time: z.iso.datetime(),
3021
+ reviewed_at: z.iso.datetime().nullable(),
3022
+ reviewer_user_id: z.string().nullable(),
3023
+ created_at: z.iso.datetime(),
3024
+ updated_at: z.iso.datetime()
3025
+ });
2995
3026
  /**
2996
3027
  * Request body for locking or unlocking a time card.
2997
3028
  */
@@ -3323,7 +3354,7 @@ export const zProjectResponseObject = z.object({
3323
3354
  updated_at: z.iso.datetime()
3324
3355
  });
3325
3356
  /**
3326
- * Request body for creating or updating a project. Only `name` is required by the schema; `created_by_user_id` is additionally required on create and must be a member of the owning company. The owning company is inferred from the API key and is not part of the body. Omit relationship fields on PATCH to leave them unchanged.
3357
+ * Request body for creating a project. `name` and `created_by_user_id` are required; the creator must be a member of the owning company. The owning company is inferred from the API key and is not part of the body. Undeclared body keys return 400 before any project or relationship is saved.
3327
3358
  */
3328
3359
  export const zProjectParameters = z.object({
3329
3360
  external_id: z.string().nullish(),
@@ -3359,7 +3390,7 @@ export const zProjectParameters = z.object({
3359
3390
  placed_in_service_date: z.iso.date().nullish()
3360
3391
  });
3361
3392
  /**
3362
- * Request body for updating a project. Every field is optional; omit a field to preserve its current value. The resulting project must still satisfy conditional PWA, regional, and schedule validation rules. `created_by_user_id` is create-only and an update that names it is rejected.
3393
+ * Request body for updating a project. Every field is optional; omit a field to preserve its current value. The resulting project must still satisfy conditional PWA, regional, and schedule validation rules. `created_by_user_id` is create-only; omit it on PATCH. Every update that includes it returns 400, even when unchanged. Undeclared body keys return 400 before any project or relationship changes.
3363
3394
  */
3364
3395
  export const zProjectUpdateParameters = z.object({
3365
3396
  external_id: z.string().nullish(),
@@ -5235,7 +5266,7 @@ export const zUserParameters = z.intersection(z.union([
5235
5266
  dol_apprentice_no: z.string().optional(),
5236
5267
  winda_id: z.string().optional(),
5237
5268
  linkedin_url: z.string().optional(),
5238
- roles: z.array(z.string()).optional(),
5269
+ roles: z.array(z.string()).nullish(),
5239
5270
  avatar_signed_id: z.string().optional(),
5240
5271
  created_by_user_id: z.string().optional(),
5241
5272
  last_sent_by_user_id: z.string().nullish(),
@@ -5257,7 +5288,7 @@ export const zUserParameters = z.intersection(z.union([
5257
5288
  holiday_annual_minutes: z.string().optional(),
5258
5289
  training_annual_minutes: z.string().optional(),
5259
5290
  hire_date: z.string().optional(),
5260
- group_ids: z.array(z.int()).optional(),
5291
+ group_ids: z.array(z.uuid()).nullish(),
5261
5292
  custom_fields: z.array(z.object({
5262
5293
  custom_field_config_id: z.string(),
5263
5294
  value: z.string().nullable()
@@ -5498,6 +5529,14 @@ export const zTimeSessionsResponseObject = z.object({
5498
5529
  links: zLinks,
5499
5530
  data: z.array(zTimeSessionResponseObject)
5500
5531
  });
5532
+ /**
5533
+ * A page of time-off requests, with pagination metadata and navigation links.
5534
+ */
5535
+ export const zTimeOffRequestsResponseObject = z.object({
5536
+ meta: zMeta,
5537
+ links: zLinks,
5538
+ data: z.array(zTimeOffRequestResponseObject)
5539
+ });
5501
5540
  /**
5502
5541
  * A page of payroll runs, with pagination metadata and navigation links.
5503
5542
  */
@@ -9392,6 +9431,18 @@ export const zListJobsQuery = z.object({
9392
9431
  ]).optional(),
9393
9432
  'filter[name]': z.string().optional(),
9394
9433
  'filter[purchase_order_number]': z.string().optional(),
9434
+ 'filter[federal_pwa_mode]': z.array(z.enum([
9435
+ 'all',
9436
+ 'pw_only',
9437
+ 'ap_only',
9438
+ 'none'
9439
+ ])).optional(),
9440
+ 'filter[regional_pwa_mode]': z.array(z.enum([
9441
+ 'all',
9442
+ 'pw_only',
9443
+ 'ap_only',
9444
+ 'none'
9445
+ ])).optional(),
9395
9446
  'page[cursor]': z.string().optional(),
9396
9447
  'page[limit]': z.int().gte(1).optional().default(20),
9397
9448
  page: z.string().optional(),
@@ -10248,6 +10299,7 @@ export const zGetWidePaystubImportResponse = zWidePaystubImportResponseObject;
10248
10299
  export const zListPayrollRunsQuery = z.object({
10249
10300
  'filter[run_type]': z.string().optional(),
10250
10301
  'filter[timekeeping_pay_period_id]': z.string().optional(),
10302
+ 'filter[user_id]': z.string().optional(),
10251
10303
  'filter[run_date][gte]': z.iso.date().optional(),
10252
10304
  'filter[run_date][lte]': z.iso.date().optional(),
10253
10305
  'filter[created_at][gte]': z.iso.datetime().optional(),
@@ -11229,6 +11281,7 @@ export const zCreateWorkerTimeCardApprovalResponse = zTimeCardApprovalResponseOb
11229
11281
  export const zListTimeCardsQuery = z.object({
11230
11282
  'filter[timekeeping_pay_period_id]': z.string().optional(),
11231
11283
  'filter[user_id]': z.string().optional(),
11284
+ 'filter[job_id]': z.string().optional(),
11232
11285
  'filter[start_time][gte]': z.iso.datetime().optional(),
11233
11286
  'filter[start_time][lte]': z.iso.datetime().optional(),
11234
11287
  filter: z.string().optional(),
@@ -11635,6 +11688,30 @@ export const zGetTimeCardActualPath = z.object({
11635
11688
  * Success
11636
11689
  */
11637
11690
  export const zGetTimeCardActualResponse = zTimeCardActualsResponseObject;
11691
+ export const zListTimeOffRequestsQuery = z.object({
11692
+ 'filter[user_id]': z.string().optional(),
11693
+ 'filter[status]': z.enum([
11694
+ 'pending',
11695
+ 'approved',
11696
+ 'denied',
11697
+ 'cancelled',
11698
+ 'expired'
11699
+ ]).optional(),
11700
+ 'page[cursor]': z.string().optional(),
11701
+ 'page[limit]': z.int().gte(1).optional().default(20),
11702
+ page: z.string().optional()
11703
+ });
11704
+ /**
11705
+ * Success
11706
+ */
11707
+ export const zListTimeOffRequestsResponse = zTimeOffRequestsResponseObject;
11708
+ export const zGetTimeOffRequestPath = z.object({
11709
+ id: z.string()
11710
+ });
11711
+ /**
11712
+ * Success
11713
+ */
11714
+ export const zGetTimeOffRequestResponse = zTimeOffRequestResponseObject;
11638
11715
  export const zListTimeSessionsQuery = z.object({
11639
11716
  'filter[user_id]': z.string().optional(),
11640
11717
  'filter[job_id]': z.string().optional(),
@@ -11789,6 +11866,8 @@ export const zListUsersQuery = z.object({
11789
11866
  'all'
11790
11867
  ]).optional(),
11791
11868
  'filter[name]': z.string().optional(),
11869
+ 'filter[manager_user_id]': z.string().optional(),
11870
+ 'filter[department_id]': z.string().optional(),
11792
11871
  'page[cursor]': z.string().optional(),
11793
11872
  'page[limit]': z.int().gte(1).optional().default(20),
11794
11873
  page: z.string().optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dsptch-work/api-client",
3
- "version": "0.29.0",
3
+ "version": "0.30.0",
4
4
  "description": "Generated TypeScript client for the DSPTCH REST API.",
5
5
  "keywords": [
6
6
  "dsptch",