@dsptch-work/api-client 0.7.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -7,6 +7,21 @@ minor bump until `1.0.0`. See [RELEASING.md](./RELEASING.md) for the release and
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.8.0] - 2026-08-14
11
+
12
+ ### Removed
13
+
14
+ - **Breaking:** `JobParameters` drops `require_clock_in`, and `JobUpdateParameters` drops it through
15
+ the shared base — so it is gone from both `Jobs.createJob()` and `Jobs.updateJob()` bodies, and
16
+ from `zJobParameters` and `zJobUpdateParameters`. Passing it in a body object literal now fails
17
+ excess-property checking; delete the field and set `clock_in_requirement` instead, which has
18
+ accepted the same three levels since `0.6.0`. Runtime behavior does not change — the server
19
+ already ignored the key. `JobResponseObject.require_clock_in` is untouched and still returned as
20
+ a required `boolean`.
21
+
22
+ See the [API changelog](https://dsptch.app/support/docs/developers/api-changelog) for the complete
23
+ REST contract details.
24
+
10
25
  ## [0.7.0] - 2026-08-13
11
26
 
12
27
  ### Added
@@ -2751,10 +2751,6 @@ export type JobParameters = {
2751
2751
  */
2752
2752
  tz_name?: string;
2753
2753
  time_card_start_day?: TimeCardStartDay;
2754
- /**
2755
- * Compatibility alias — true ensures at least warning (never downgrades required); false or null clears to none; omit to leave unchanged. Prefer clock_in_requirement.
2756
- */
2757
- require_clock_in?: boolean | null;
2758
2754
  /**
2759
2755
  * Clock-in enforcement level: one of none (no guidance), warning (compliance warning on manual entries), or required (hard stop for technician web CUD and GraphQL owner CUD, including client-claimed punches, until a server-verified punch path exists; company-authed API v1 is intentionally ungated). Omit the field to leave the current value unchanged.
2760
2756
  */
@@ -1845,7 +1845,6 @@ export declare const zJobParameters: z.ZodObject<{
1845
1845
  end_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1846
1846
  tz_name: z.ZodOptional<z.ZodString>;
1847
1847
  time_card_start_day: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>, z.ZodLiteral<6>]>>;
1848
- require_clock_in: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1849
1848
  clock_in_requirement: z.ZodOptional<z.ZodEnum<{
1850
1849
  none: "none";
1851
1850
  warning: "warning";
@@ -1923,7 +1922,6 @@ export declare const zJobUpdateParameters: z.ZodIntersection<z.ZodObject<{
1923
1922
  end_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1924
1923
  tz_name: z.ZodOptional<z.ZodString>;
1925
1924
  time_card_start_day: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>, z.ZodLiteral<6>]>>;
1926
- require_clock_in: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1927
1925
  clock_in_requirement: z.ZodOptional<z.ZodEnum<{
1928
1926
  none: "none";
1929
1927
  warning: "warning";
@@ -12463,7 +12461,6 @@ export declare const zCreateJobBody: z.ZodObject<{
12463
12461
  end_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12464
12462
  tz_name: z.ZodOptional<z.ZodString>;
12465
12463
  time_card_start_day: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>, z.ZodLiteral<6>]>>;
12466
- require_clock_in: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
12467
12464
  clock_in_requirement: z.ZodOptional<z.ZodEnum<{
12468
12465
  none: "none";
12469
12466
  warning: "warning";
@@ -12755,7 +12752,6 @@ export declare const zUpdateJobBody: z.ZodIntersection<z.ZodObject<{
12755
12752
  end_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12756
12753
  tz_name: z.ZodOptional<z.ZodString>;
12757
12754
  time_card_start_day: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>, z.ZodLiteral<6>]>>;
12758
- require_clock_in: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
12759
12755
  clock_in_requirement: z.ZodOptional<z.ZodEnum<{
12760
12756
  none: "none";
12761
12757
  warning: "warning";
@@ -1772,7 +1772,6 @@ export const zJobParameters = z.object({
1772
1772
  end_time: z.string().nullish(),
1773
1773
  tz_name: z.string().optional(),
1774
1774
  time_card_start_day: zTimeCardStartDay.optional(),
1775
- require_clock_in: z.boolean().nullish(),
1776
1775
  clock_in_requirement: z.enum([
1777
1776
  'none',
1778
1777
  'warning',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dsptch-work/api-client",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "description": "Generated TypeScript client for the DSPTCH REST API.",
5
5
  "keywords": [
6
6
  "dsptch",