@dsptch-work/api-client 0.17.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.
@@ -1931,6 +1931,11 @@ export const zJobParameters = z.object({
1931
1931
  tracks_feature_allocations: z.boolean().nullish(),
1932
1932
  requires_feature_allocation: z.boolean().nullish(),
1933
1933
  max_one_feature_allocation: z.boolean().nullish(),
1934
+ production_tracking_kind: z.enum([
1935
+ 'none',
1936
+ 'feature',
1937
+ 'quantity'
1938
+ ]).optional(),
1934
1939
  job_work_types_attributes: z.array(z.object({
1935
1940
  primary: z.boolean().optional(),
1936
1941
  work_type_id: z.string().optional()
@@ -2303,6 +2308,19 @@ export const zManagerTimeCardApprovalParameters = z.object({
2303
2308
  export const zWorkerTimeCardApprovalParameters = z.object({
2304
2309
  status: z.enum(['pending', 'approved'])
2305
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
+ });
2306
2324
  /**
2307
2325
  * Request body for locking or unlocking a time card.
2308
2326
  */
@@ -3621,7 +3639,12 @@ export const zJobResponseObject = z.object({
3621
3639
  timekeeping_timecode_ids: z.array(z.string()),
3622
3640
  tracks_feature_allocations: z.boolean(),
3623
3641
  requires_feature_allocation: z.boolean(),
3624
- 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
+ ])
3625
3648
  });
3626
3649
  /**
3627
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.
@@ -4080,6 +4103,14 @@ export const zTimeCardsResponseObject = z.object({
4080
4103
  links: zLinks,
4081
4104
  data: z.array(zTimeCardResponseObject)
4082
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
+ });
4083
4114
  /**
4084
4115
  * A page of payroll runs, with pagination metadata and navigation links.
4085
4116
  */
@@ -4171,6 +4202,7 @@ export const zLaborRateResponseObject = z.object({
4171
4202
  fringe_percentage_rate: z.string().nullable(),
4172
4203
  fringe_benefit_weekly_rate_cents: z.string().nullable(),
4173
4204
  fringe_benefit_monthly_rate_cents: z.string().nullable(),
4205
+ reference_item_ids: z.array(z.string()),
4174
4206
  created_at: z.iso.datetime(),
4175
4207
  updated_at: z.iso.datetime()
4176
4208
  });
@@ -4182,6 +4214,118 @@ export const zLaborRatesResponseObject = z.object({
4182
4214
  links: zLinks,
4183
4215
  data: z.array(zLaborRateResponseObject)
4184
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
+ });
4185
4329
  /**
4186
4330
  * A Federal (Davis-Bacon) wage determination on a job.
4187
4331
  */
@@ -7283,6 +7427,11 @@ export const zListJobsQuery = z.object({
7283
7427
  'filter[updated_at][lte]': z.iso.datetime().optional(),
7284
7428
  'filter[project_id]': z.string().optional(),
7285
7429
  'filter[status]': z.string().optional(),
7430
+ 'filter[production_tracking_kind]': z.enum([
7431
+ 'none',
7432
+ 'feature',
7433
+ 'quantity'
7434
+ ]).optional(),
7286
7435
  'page[cursor]': z.string().optional(),
7287
7436
  'page[limit]': z.int().gte(1).optional().default(20),
7288
7437
  page: z.string().optional(),
@@ -8896,6 +9045,34 @@ export const zGetTimeCardActualPath = z.object({
8896
9045
  * Success
8897
9046
  */
8898
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;
8899
9076
  /**
8900
9077
  * Success
8901
9078
  */
@@ -9062,6 +9239,43 @@ export const zUpdateUserPath = z.object({
9062
9239
  * Success
9063
9240
  */
9064
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;
9065
9279
  export const zListLaborRatesPath = z.object({
9066
9280
  wage_determination_id: z.string()
9067
9281
  });
@@ -9077,6 +9291,59 @@ export const zListLaborRatesQuery = z.object({
9077
9291
  * Success
9078
9292
  */
9079
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;
9080
9347
  export const zListWageDeterminationsQuery = z.object({
9081
9348
  'filter[valid_from][gte]': z.iso.datetime().optional(),
9082
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.17.0",
3
+ "version": "0.18.0",
4
4
  "description": "Generated TypeScript client for the DSPTCH REST API.",
5
5
  "keywords": [
6
6
  "dsptch",