@dsptch-work/api-client 0.16.0 → 0.18.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.
@@ -413,6 +413,7 @@ export const zDirectUploadParameters = z.object({
413
413
  'assets.items.service_events',
414
414
  'assets.products',
415
415
  'assets.vendors',
416
+ 'compliance.checks',
416
417
  'pay_periods.imports.aggregate_times',
417
418
  'pay_periods.imports.dsptch_cprs',
418
419
  'pay_periods.imports.time_entries',
@@ -1930,6 +1931,11 @@ export const zJobParameters = z.object({
1930
1931
  tracks_feature_allocations: z.boolean().nullish(),
1931
1932
  requires_feature_allocation: z.boolean().nullish(),
1932
1933
  max_one_feature_allocation: z.boolean().nullish(),
1934
+ production_tracking_kind: z.enum([
1935
+ 'none',
1936
+ 'feature',
1937
+ 'quantity'
1938
+ ]).optional(),
1933
1939
  job_work_types_attributes: z.array(z.object({
1934
1940
  primary: z.boolean().optional(),
1935
1941
  work_type_id: z.string().optional()
@@ -2302,6 +2308,19 @@ export const zManagerTimeCardApprovalParameters = z.object({
2302
2308
  export const zWorkerTimeCardApprovalParameters = z.object({
2303
2309
  status: z.enum(['pending', 'approved'])
2304
2310
  });
2311
+ /**
2312
+ * One clock-in by a worker — open (`active`) from clock-in until clock-out, and retained afterwards as the record that the session happened. A worker holds at most one active session at a time.
2313
+ */
2314
+ export const zTimeSessionResponseObject = z.object({
2315
+ id: z.string(),
2316
+ user_id: z.string(),
2317
+ job_id: z.string().nullable(),
2318
+ timekeeping_timecode_id: z.string().nullable(),
2319
+ active: z.boolean(),
2320
+ start_time: z.iso.datetime(),
2321
+ created_at: z.iso.datetime(),
2322
+ updated_at: z.iso.datetime()
2323
+ });
2305
2324
  /**
2306
2325
  * Request body for locking or unlocking a time card.
2307
2326
  */
@@ -2842,6 +2861,7 @@ export const zComplianceCheckResponseObject = z.object({
2842
2861
  timekeeping_pay_period_id: z.string().nullable(),
2843
2862
  user_id: z.string().nullable(),
2844
2863
  employment_id: z.string().nullable(),
2864
+ assignee_user_ids: z.array(z.string()),
2845
2865
  title: z.string(),
2846
2866
  description: z.string(),
2847
2867
  category: z.enum([
@@ -2877,12 +2897,187 @@ export const zComplianceCheckResponseObject = z.object({
2877
2897
  updated_at: z.iso.datetime()
2878
2898
  });
2879
2899
  /**
2880
- * Update a compliance check. Both fields are optional.
2900
+ * A document attached to a compliance check.
2901
+ */
2902
+ export const zComplianceCheckDocumentObject = z.object({
2903
+ id: z.string(),
2904
+ filename: z.string(),
2905
+ content_type: z.string().nullable(),
2906
+ byte_size: z.int(),
2907
+ url: z.string(),
2908
+ created_by_user_id: z.string(),
2909
+ created_at: z.iso.datetime()
2910
+ });
2911
+ /**
2912
+ * A single compliance check, with the documents attached to it. Same fields as compliance_check_response_object plus `documents`.
2913
+ */
2914
+ export const zComplianceCheckDetailResponseObject = z.object({
2915
+ id: z.string(),
2916
+ type: z.enum([
2917
+ 'Compliances::CompanyCheck',
2918
+ 'Compliances::JobCheck',
2919
+ 'Compliances::ProjectCheck',
2920
+ 'Compliances::TimeCardCheck',
2921
+ 'Compliances::PayPeriodCheck',
2922
+ 'Compliances::UserCheck',
2923
+ 'Compliances::UserCompanyCheck'
2924
+ ]),
2925
+ status: z.enum([
2926
+ 'passed',
2927
+ 'failed',
2928
+ 'not_applicable',
2929
+ 'dismissed',
2930
+ 'pending'
2931
+ ]),
2932
+ compliances_requirement_id: z.string(),
2933
+ company_id: z.string().nullable(),
2934
+ job_id: z.string().nullable(),
2935
+ project_id: z.string().nullable(),
2936
+ timekeeping_time_card_id: z.string().nullable(),
2937
+ timekeeping_pay_period_id: z.string().nullable(),
2938
+ user_id: z.string().nullable(),
2939
+ employment_id: z.string().nullable(),
2940
+ assignee_user_ids: z.array(z.string()),
2941
+ title: z.string(),
2942
+ description: z.string(),
2943
+ category: z.enum([
2944
+ 'apprenticeship',
2945
+ 'certified_payroll',
2946
+ 'company',
2947
+ 'job',
2948
+ 'payroll',
2949
+ 'project',
2950
+ 'regional',
2951
+ 'tax_credit',
2952
+ 'timekeeping',
2953
+ 'worker'
2954
+ ]),
2955
+ phase: z.enum([
2956
+ 'after_pay_date',
2957
+ 'before_approval_deadline',
2958
+ 'close_out',
2959
+ 'maintenance',
2960
+ 'onboarding',
2961
+ 'setup'
2962
+ ]),
2963
+ priority: z.enum([
2964
+ 'critical',
2965
+ 'high',
2966
+ 'medium',
2967
+ 'low'
2968
+ ]).nullable(),
2969
+ checked_at: z.iso.datetime().nullable(),
2970
+ passed_at: z.iso.datetime().nullable(),
2971
+ time_due: z.iso.datetime().nullable(),
2972
+ created_at: z.iso.datetime(),
2973
+ updated_at: z.iso.datetime(),
2974
+ documents: z.array(zComplianceCheckDocumentObject)
2975
+ });
2976
+ /**
2977
+ * Update a compliance check. Every field is optional.
2881
2978
  */
2882
2979
  export const zComplianceCheckParameters = z.object({
2883
2980
  status: z.enum(['dismissed', 'pending']).optional(),
2884
- time_due: z.iso.datetime().nullish()
2981
+ time_due: z.iso.datetime().nullish(),
2982
+ assignee_user_ids: z.array(z.string()).optional(),
2983
+ file_signed_id: z.string().optional()
2984
+ });
2985
+ export const zRichTextObject = z.object({
2986
+ text: z.string(),
2987
+ attachments: z.array(z.object({
2988
+ filename: z.string(),
2989
+ content_type: z.string().nullish(),
2990
+ byte_size: z.int(),
2991
+ url: z.string()
2992
+ }))
2885
2993
  });
2994
+ export const zTodoInboxTodoResponseObject = z.object({
2995
+ kind: z.enum(['todo']),
2996
+ id: z.string(),
2997
+ type: z.enum([
2998
+ 'company',
2999
+ 'job',
3000
+ 'project'
3001
+ ]),
3002
+ company_id: z.string().nullable(),
3003
+ job_id: z.string().nullable(),
3004
+ project_id: z.string().nullable(),
3005
+ name: z.string(),
3006
+ created_by_user_id: z.string(),
3007
+ updated_by_user_id: z.string(),
3008
+ completed: z.boolean(),
3009
+ task_assignee_user_ids: z.array(z.string()),
3010
+ description: zRichTextObject,
3011
+ time_due: z.iso.datetime().nullable(),
3012
+ created_at: z.iso.datetime(),
3013
+ updated_at: z.iso.datetime()
3014
+ });
3015
+ export const zTodoInboxComplianceCheckResponseObject = z.object({
3016
+ kind: z.enum(['compliance_check']),
3017
+ id: z.string(),
3018
+ type: z.enum([
3019
+ 'Compliances::CompanyCheck',
3020
+ 'Compliances::JobCheck',
3021
+ 'Compliances::ProjectCheck',
3022
+ 'Compliances::TimeCardCheck',
3023
+ 'Compliances::PayPeriodCheck',
3024
+ 'Compliances::UserCheck',
3025
+ 'Compliances::UserCompanyCheck'
3026
+ ]),
3027
+ status: z.enum([
3028
+ 'passed',
3029
+ 'failed',
3030
+ 'not_applicable',
3031
+ 'dismissed',
3032
+ 'pending'
3033
+ ]),
3034
+ compliances_requirement_id: z.string(),
3035
+ company_id: z.string().nullable(),
3036
+ job_id: z.string().nullable(),
3037
+ project_id: z.string().nullable(),
3038
+ timekeeping_time_card_id: z.string().nullable(),
3039
+ timekeeping_pay_period_id: z.string().nullable(),
3040
+ user_id: z.string().nullable(),
3041
+ employment_id: z.string().nullable(),
3042
+ assignee_user_ids: z.array(z.string()),
3043
+ title: z.string(),
3044
+ description: z.string(),
3045
+ category: z.enum([
3046
+ 'apprenticeship',
3047
+ 'certified_payroll',
3048
+ 'company',
3049
+ 'job',
3050
+ 'payroll',
3051
+ 'project',
3052
+ 'regional',
3053
+ 'tax_credit',
3054
+ 'timekeeping',
3055
+ 'worker'
3056
+ ]),
3057
+ phase: z.enum([
3058
+ 'after_pay_date',
3059
+ 'before_approval_deadline',
3060
+ 'close_out',
3061
+ 'maintenance',
3062
+ 'onboarding',
3063
+ 'setup'
3064
+ ]),
3065
+ priority: z.enum([
3066
+ 'critical',
3067
+ 'high',
3068
+ 'medium',
3069
+ 'low'
3070
+ ]).nullable(),
3071
+ checked_at: z.iso.datetime().nullable(),
3072
+ passed_at: z.iso.datetime().nullable(),
3073
+ time_due: z.iso.datetime().nullable(),
3074
+ created_at: z.iso.datetime(),
3075
+ updated_at: z.iso.datetime()
3076
+ });
3077
+ export const zTodoInboxEntryResponseObject = z.discriminatedUnion('kind', [
3078
+ zTodoInboxTodoResponseObject.extend({ kind: z.literal('todo') }),
3079
+ zTodoInboxComplianceCheckResponseObject.extend({ kind: z.literal('compliance_check') })
3080
+ ]);
2886
3081
  /**
2887
3082
  * One compliance requirement from the catalog. Requirements ship with the application, so the catalog reads the same for every company.
2888
3083
  */
@@ -3149,10 +3344,7 @@ export const zPositionParameters = z.object({
3149
3344
  hourly_rate_cents: z.number().nullish(),
3150
3345
  pwa_wage_pay_rate_cents: z.number().nullish(),
3151
3346
  wage_adder_rate_cents: z.number().nullish(),
3152
- job_wage_determinations_positions_attributes: z.array(z.object({
3153
- id: z.int().nullish(),
3154
- job_wage_determination_id: z.string().nullish()
3155
- })).optional(),
3347
+ job_wage_determination_ids: z.array(z.string()).optional(),
3156
3348
  pwa_details_attributes: z.object({
3157
3349
  skill_level: z.string().nullish()
3158
3350
  }).optional()
@@ -3447,7 +3639,12 @@ export const zJobResponseObject = z.object({
3447
3639
  timekeeping_timecode_ids: z.array(z.string()),
3448
3640
  tracks_feature_allocations: z.boolean(),
3449
3641
  requires_feature_allocation: z.boolean(),
3450
- max_one_feature_allocation: z.boolean()
3642
+ max_one_feature_allocation: z.boolean(),
3643
+ production_tracking_kind: z.enum([
3644
+ 'none',
3645
+ 'feature',
3646
+ 'quantity'
3647
+ ])
3451
3648
  });
3452
3649
  /**
3453
3650
  * A spot to be filled on a job — one worker's assignment and the unit against which they track time, carrying the schedule window, assigned worker, function, and the planned pay and fringe rates (including PWA prevailing-wage compliance rates). Always accessed nested under a job.
@@ -3512,7 +3709,7 @@ export const zUserRoleResponse = z.object({
3512
3709
  */
3513
3710
  export const zUserCompanyType = z.enum(['EMPLOYEE', 'CONTRACTOR']).nullable();
3514
3711
  /**
3515
- * A worker as your company sees them: the cross-company person merged with their employment record at your company (title, pay, benefits, and accruals), their roles at your company, and optional prevailing-wage compliance details. There is no delete — removing a worker terminates their employment at the company (see the user-company endpoints), which sets termination_date and drops them from the default list.
3712
+ * A worker as your company sees them: the cross-company person merged with their employment record at your company (title, pay, benefits, and accruals), their roles at your company, and optional prevailing-wage compliance details. Your company sees everyone it employs, everyone it has granted a role, and everyone it has invited, which is the same set the web app shows. A role holder or an invitee your company does not employ has no employment record to merge, so the employment fields (employment_id through employment_window, plus manager_user_id) are null for them, no employment custom fields are published for them, and employment_state reads none. There is no delete — removing a worker terminates their employment at the company (see the user-company endpoints), which sets termination_date and drops them from the default list.
3516
3713
  */
3517
3714
  export const zUserResponseObject = z.object({
3518
3715
  id: z.string(),
@@ -3533,13 +3730,19 @@ export const zUserResponseObject = z.object({
3533
3730
  updated_at: z.iso.datetime(),
3534
3731
  winda_id: z.string().nullable(),
3535
3732
  linkedin_url: z.string().nullable(),
3536
- employment_id: z.string(),
3733
+ employment_state: z.enum([
3734
+ 'active',
3735
+ 'scheduled',
3736
+ 'terminated',
3737
+ 'none'
3738
+ ]),
3739
+ employment_id: z.string().nullable(),
3537
3740
  type: zUserCompanyType,
3538
3741
  title: z.string().nullable(),
3539
- overtime_eligible: z.boolean(),
3540
- enrolled_in_t_and_a: z.boolean(),
3742
+ overtime_eligible: z.boolean().nullable(),
3743
+ enrolled_in_t_and_a: z.boolean().nullable(),
3541
3744
  payroll_id: z.string().nullable(),
3542
- compensation_type: z.string(),
3745
+ compensation_type: z.string().nullable(),
3543
3746
  hourly_rate: z.string().nullable(),
3544
3747
  training_annual_amount: z.string().nullable(),
3545
3748
  employer_combined_health_amount: z.string().nullable(),
@@ -3553,7 +3756,7 @@ export const zUserResponseObject = z.object({
3553
3756
  employment_window: z.object({
3554
3757
  valid_from: z.iso.datetime().nullable(),
3555
3758
  valid_to: z.iso.datetime().nullable()
3556
- }),
3759
+ }).nullable(),
3557
3760
  manager_user_id: z.string().nullable(),
3558
3761
  roles: z.array(z.string()),
3559
3762
  company_user_pwa_info: z.object({
@@ -3900,6 +4103,14 @@ export const zTimeCardsResponseObject = z.object({
3900
4103
  links: zLinks,
3901
4104
  data: z.array(zTimeCardResponseObject)
3902
4105
  });
4106
+ /**
4107
+ * A page of time sessions, with pagination metadata and navigation links.
4108
+ */
4109
+ export const zTimeSessionsResponseObject = z.object({
4110
+ meta: zMeta,
4111
+ links: zLinks,
4112
+ data: z.array(zTimeSessionResponseObject)
4113
+ });
3903
4114
  /**
3904
4115
  * A page of payroll runs, with pagination metadata and navigation links.
3905
4116
  */
@@ -3991,6 +4202,7 @@ export const zLaborRateResponseObject = z.object({
3991
4202
  fringe_percentage_rate: z.string().nullable(),
3992
4203
  fringe_benefit_weekly_rate_cents: z.string().nullable(),
3993
4204
  fringe_benefit_monthly_rate_cents: z.string().nullable(),
4205
+ reference_item_ids: z.array(z.string()),
3994
4206
  created_at: z.iso.datetime(),
3995
4207
  updated_at: z.iso.datetime()
3996
4208
  });
@@ -4002,6 +4214,118 @@ export const zLaborRatesResponseObject = z.object({
4002
4214
  links: zLinks,
4003
4215
  data: z.array(zLaborRateResponseObject)
4004
4216
  });
4217
+ /**
4218
+ * A DOL labor-classification schedule within one wage determination; its labor rates and reference items share this schedule boundary.
4219
+ */
4220
+ export const zWageClassificationResponseObject = z.object({
4221
+ id: z.string(),
4222
+ wage_determination_id: z.string(),
4223
+ identifier: z.string(),
4224
+ date: z.iso.date(),
4225
+ footnote: z.string().nullable(),
4226
+ subheader: z.string().nullable(),
4227
+ created_at: z.iso.datetime(),
4228
+ updated_at: z.iso.datetime()
4229
+ });
4230
+ /**
4231
+ * A page of a wage determination's classification schedules, with pagination metadata and navigation links.
4232
+ */
4233
+ export const zWageClassificationsResponseObject = z.object({
4234
+ meta: zMeta,
4235
+ links: zLinks,
4236
+ data: z.array(zWageClassificationResponseObject)
4237
+ });
4238
+ /**
4239
+ * A Davis-Bacon construction category assigned to one wage determination.
4240
+ */
4241
+ export const zConstructionTypeResponseObject = z.object({
4242
+ id: z.string(),
4243
+ wage_determination_id: z.string(),
4244
+ construction_type: z.enum([
4245
+ 'BUILDING',
4246
+ 'HEAVY',
4247
+ 'HIGHWAY',
4248
+ 'RESIDENTIAL'
4249
+ ]),
4250
+ created_at: z.iso.datetime(),
4251
+ updated_at: z.iso.datetime()
4252
+ });
4253
+ /**
4254
+ * A page of a wage determination's construction categories, with pagination metadata and navigation links.
4255
+ */
4256
+ export const zConstructionTypesResponseObject = z.object({
4257
+ meta: zMeta,
4258
+ links: zLinks,
4259
+ data: z.array(zConstructionTypeResponseObject)
4260
+ });
4261
+ /**
4262
+ * A DOL project-type tag attached directly to one wage determination.
4263
+ */
4264
+ export const zProjectTypeResponseObject = z.object({
4265
+ id: z.string(),
4266
+ wage_determination_id: z.string(),
4267
+ project_type: z.string(),
4268
+ project_type_subtext: z.string().nullable(),
4269
+ created_at: z.iso.datetime(),
4270
+ updated_at: z.iso.datetime()
4271
+ });
4272
+ /**
4273
+ * A page of project-type tags attached directly to a wage determination, with pagination metadata and navigation links.
4274
+ */
4275
+ export const zProjectTypesResponseObject = z.object({
4276
+ meta: zMeta,
4277
+ links: zLinks,
4278
+ data: z.array(zProjectTypeResponseObject)
4279
+ });
4280
+ /**
4281
+ * A link between a wage determination and one geographic boundary where it applies. Includes stable boundary identity metadata but never geometry.
4282
+ */
4283
+ export const zWageDeterminationBoundaryResponseObject = z.object({
4284
+ id: z.string(),
4285
+ wage_determination_id: z.string(),
4286
+ boundary_id: z.string(),
4287
+ boundary_type: z.string(),
4288
+ name: z.string(),
4289
+ source_boundary_id: z.string().nullable(),
4290
+ source_geo_id: z.string().nullable(),
4291
+ source_unique_id: z.string().nullable(),
4292
+ created_at: z.iso.datetime(),
4293
+ updated_at: z.iso.datetime()
4294
+ });
4295
+ /**
4296
+ * A page of a wage determination's geographic applicability links, with pagination metadata and navigation links.
4297
+ */
4298
+ export const zWageDeterminationBoundariesResponseObject = z.object({
4299
+ meta: zMeta,
4300
+ links: zLinks,
4301
+ data: z.array(zWageDeterminationBoundaryResponseObject)
4302
+ });
4303
+ /**
4304
+ * One ordered, lettered item of verbatim fringe-reference prose within a wage-classification schedule.
4305
+ */
4306
+ export const zReferenceItemResponseObject = z.object({
4307
+ id: z.string(),
4308
+ wage_classification_id: z.string(),
4309
+ position: z.int(),
4310
+ letter: z.string(),
4311
+ container_type: z.enum([
4312
+ 'footnote',
4313
+ 'premium_pay',
4314
+ 'holidays',
4315
+ 'zone_pay'
4316
+ ]),
4317
+ text: z.string(),
4318
+ created_at: z.iso.datetime(),
4319
+ updated_at: z.iso.datetime()
4320
+ });
4321
+ /**
4322
+ * A page of reference items flattened across every classification schedule in a wage determination, with pagination metadata and navigation links.
4323
+ */
4324
+ export const zReferenceItemsResponseObject = z.object({
4325
+ meta: zMeta,
4326
+ links: zLinks,
4327
+ data: z.array(zReferenceItemResponseObject)
4328
+ });
4005
4329
  /**
4006
4330
  * A Federal (Davis-Bacon) wage determination on a job.
4007
4331
  */
@@ -6605,6 +6929,7 @@ export const zListChecksQuery = z.object({
6605
6929
  'filter[job_id][null]': z.boolean().optional(),
6606
6930
  'filter[project_id]': z.string().optional(),
6607
6931
  'filter[compliances_requirement_id]': z.string().optional(),
6932
+ 'filter[assignee_user_id]': z.string().optional(),
6608
6933
  'filter[time_due][gte]': z.iso.datetime().optional(),
6609
6934
  'filter[time_due][lte]': z.iso.datetime().optional(),
6610
6935
  filter: z.string().optional(),
@@ -6627,7 +6952,7 @@ export const zGetCheckPath = z.object({
6627
6952
  /**
6628
6953
  * Success
6629
6954
  */
6630
- export const zGetCheckResponse = zComplianceCheckResponseObject;
6955
+ export const zGetCheckResponse = zComplianceCheckDetailResponseObject;
6631
6956
  export const zUpdateCheckBody = zComplianceCheckParameters;
6632
6957
  export const zUpdateCheckPath = z.object({
6633
6958
  id: z.string()
@@ -6635,7 +6960,7 @@ export const zUpdateCheckPath = z.object({
6635
6960
  /**
6636
6961
  * Success
6637
6962
  */
6638
- export const zUpdateCheckResponse = zComplianceCheckResponseObject;
6963
+ export const zUpdateCheckResponse = zComplianceCheckDetailResponseObject;
6639
6964
  export const zListRequirementsQuery = z.object({
6640
6965
  'filter[search]': z.string().optional(),
6641
6966
  'filter[type]': z.string().optional(),
@@ -7102,6 +7427,11 @@ export const zListJobsQuery = z.object({
7102
7427
  'filter[updated_at][lte]': z.iso.datetime().optional(),
7103
7428
  'filter[project_id]': z.string().optional(),
7104
7429
  'filter[status]': z.string().optional(),
7430
+ 'filter[production_tracking_kind]': z.enum([
7431
+ 'none',
7432
+ 'feature',
7433
+ 'quantity'
7434
+ ]).optional(),
7105
7435
  'page[cursor]': z.string().optional(),
7106
7436
  'page[limit]': z.int().gte(1).optional().default(20),
7107
7437
  page: z.string().optional(),
@@ -8715,6 +9045,40 @@ export const zGetTimeCardActualPath = z.object({
8715
9045
  * Success
8716
9046
  */
8717
9047
  export const zGetTimeCardActualResponse = zTimeCardActualsResponseObject;
9048
+ export const zListTimeSessionsQuery = z.object({
9049
+ 'filter[user_id]': z.string().optional(),
9050
+ 'filter[job_id]': z.string().optional(),
9051
+ 'filter[job_id][null]': z.boolean().optional(),
9052
+ 'filter[active]': z.boolean().optional(),
9053
+ 'filter[start_time][gte]': z.iso.datetime().optional(),
9054
+ 'filter[start_time][lte]': z.iso.datetime().optional(),
9055
+ 'filter[created_at][gte]': z.iso.datetime().optional(),
9056
+ 'filter[created_at][lte]': z.iso.datetime().optional(),
9057
+ 'filter[updated_at][gte]': z.iso.datetime().optional(),
9058
+ 'filter[updated_at][lte]': z.iso.datetime().optional(),
9059
+ filter: z.string().optional(),
9060
+ 'filter[unexpected]': z.string().optional(),
9061
+ 'page[cursor]': z.string().optional(),
9062
+ 'page[limit]': z.int().gte(1).optional().default(20),
9063
+ page: z.string().optional()
9064
+ });
9065
+ /**
9066
+ * Success
9067
+ */
9068
+ export const zListTimeSessionsResponse = zTimeSessionsResponseObject;
9069
+ export const zGetTimeSessionPath = z.object({
9070
+ id: z.string()
9071
+ });
9072
+ /**
9073
+ * Success
9074
+ */
9075
+ export const zGetTimeSessionResponse = zTimeSessionResponseObject;
9076
+ /**
9077
+ * Success
9078
+ */
9079
+ export const zListTodoInboxResponse = z.object({
9080
+ data: z.array(zTodoInboxEntryResponseObject)
9081
+ });
8718
9082
  export const zListUserRolesQuery = z.object({
8719
9083
  'filter[user_id]': z.string().optional(),
8720
9084
  'filter[role]': z.string().optional(),
@@ -8829,7 +9193,9 @@ export const zUpdateCompanyResponse = zUserResponseObject;
8829
9193
  export const zListUsersQuery = z.object({
8830
9194
  'filter[state]': z.enum([
8831
9195
  'active',
9196
+ 'scheduled',
8832
9197
  'terminated',
9198
+ 'none',
8833
9199
  'all'
8834
9200
  ]).optional(),
8835
9201
  'page[cursor]': z.string().optional(),
@@ -8873,6 +9239,43 @@ export const zUpdateUserPath = z.object({
8873
9239
  * Success
8874
9240
  */
8875
9241
  export const zUpdateUserResponse = zUserResponseObject;
9242
+ export const zListBoundariesPath = z.object({
9243
+ wage_determination_id: z.string()
9244
+ });
9245
+ export const zListBoundariesQuery = z.object({
9246
+ 'filter[id]': z.string().optional(),
9247
+ 'filter[boundary_id]': z.string().optional(),
9248
+ 'filter[name]': z.string().optional(),
9249
+ 'filter[boundary_type]': z.string().optional(),
9250
+ 'filter[source_boundary_id]': z.string().optional(),
9251
+ 'filter[source_geo_id]': z.string().optional(),
9252
+ 'filter[source_unique_id]': z.string().optional(),
9253
+ filter: z.string().optional(),
9254
+ 'filter[unexpected]': z.string().optional(),
9255
+ 'page[cursor]': z.string().optional(),
9256
+ 'page[limit]': z.int().gte(1).optional().default(20),
9257
+ page: z.string().optional()
9258
+ });
9259
+ /**
9260
+ * Success
9261
+ */
9262
+ export const zListBoundariesResponse = zWageDeterminationBoundariesResponseObject;
9263
+ export const zListConstructionTypesPath = z.object({
9264
+ wage_determination_id: z.string()
9265
+ });
9266
+ export const zListConstructionTypesQuery = z.object({
9267
+ 'filter[id]': z.string().optional(),
9268
+ 'filter[construction_type]': z.string().optional(),
9269
+ filter: z.string().optional(),
9270
+ 'filter[unexpected]': z.string().optional(),
9271
+ 'page[cursor]': z.string().optional(),
9272
+ 'page[limit]': z.int().gte(1).optional().default(20),
9273
+ page: z.string().optional()
9274
+ });
9275
+ /**
9276
+ * Success
9277
+ */
9278
+ export const zListConstructionTypesResponse = zConstructionTypesResponseObject;
8876
9279
  export const zListLaborRatesPath = z.object({
8877
9280
  wage_determination_id: z.string()
8878
9281
  });
@@ -8888,6 +9291,59 @@ export const zListLaborRatesQuery = z.object({
8888
9291
  * Success
8889
9292
  */
8890
9293
  export const zListLaborRatesResponse = zLaborRatesResponseObject;
9294
+ export const zListProjectTypesPath = z.object({
9295
+ wage_determination_id: z.string()
9296
+ });
9297
+ export const zListProjectTypesQuery = z.object({
9298
+ 'filter[id]': z.string().optional(),
9299
+ 'filter[project_type]': z.string().optional(),
9300
+ 'filter[project_type_subtext]': z.string().optional(),
9301
+ filter: z.string().optional(),
9302
+ 'filter[unexpected]': z.string().optional(),
9303
+ 'page[cursor]': z.string().optional(),
9304
+ 'page[limit]': z.int().gte(1).optional().default(20),
9305
+ page: z.string().optional()
9306
+ });
9307
+ /**
9308
+ * Success
9309
+ */
9310
+ export const zListProjectTypesResponse = zProjectTypesResponseObject;
9311
+ export const zListReferenceItemsPath = z.object({
9312
+ wage_determination_id: z.string()
9313
+ });
9314
+ export const zListReferenceItemsQuery = z.object({
9315
+ 'filter[id]': z.string().optional(),
9316
+ 'filter[wage_classification_id]': z.string().optional(),
9317
+ 'filter[position]': z.int().optional(),
9318
+ 'filter[letter]': z.string().optional(),
9319
+ 'filter[container_type]': z.string().optional(),
9320
+ filter: z.string().optional(),
9321
+ 'filter[unexpected]': z.string().optional(),
9322
+ 'page[cursor]': z.string().optional(),
9323
+ 'page[limit]': z.int().gte(1).optional().default(20),
9324
+ page: z.string().optional()
9325
+ });
9326
+ /**
9327
+ * Success
9328
+ */
9329
+ export const zListReferenceItemsResponse = zReferenceItemsResponseObject;
9330
+ export const zListWageClassificationsPath = z.object({
9331
+ wage_determination_id: z.string()
9332
+ });
9333
+ export const zListWageClassificationsQuery = z.object({
9334
+ 'filter[id]': z.string().optional(),
9335
+ 'filter[identifier]': z.string().optional(),
9336
+ 'filter[date]': z.iso.date().optional(),
9337
+ filter: z.string().optional(),
9338
+ 'filter[unexpected]': z.string().optional(),
9339
+ 'page[cursor]': z.string().optional(),
9340
+ 'page[limit]': z.int().gte(1).optional().default(20),
9341
+ page: z.string().optional()
9342
+ });
9343
+ /**
9344
+ * Success
9345
+ */
9346
+ export const zListWageClassificationsResponse = zWageClassificationsResponseObject;
8891
9347
  export const zListWageDeterminationsQuery = z.object({
8892
9348
  'filter[valid_from][gte]': z.iso.datetime().optional(),
8893
9349
  'filter[valid_from][lte]': z.iso.datetime().optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dsptch-work/api-client",
3
- "version": "0.16.0",
3
+ "version": "0.18.0",
4
4
  "description": "Generated TypeScript client for the DSPTCH REST API.",
5
5
  "keywords": [
6
6
  "dsptch",