@samsarahq/samsara 13.26.0 → 13.27.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.
@@ -44,8 +44,8 @@ function normalizeClientOptions(options) {
44
44
  const headers = (0, headers_js_1.mergeHeaders)({
45
45
  "X-Fern-Language": "JavaScript",
46
46
  "X-Fern-SDK-Name": "@samsarahq/samsara",
47
- "X-Fern-SDK-Version": "13.26.0",
48
- "User-Agent": "@samsarahq/samsara/13.26.0",
47
+ "X-Fern-SDK-Version": "13.27.0",
48
+ "User-Agent": "@samsarahq/samsara/13.27.0",
49
49
  "X-Fern-Runtime": core.RUNTIME.type,
50
50
  "X-Fern-Runtime-Version": core.RUNTIME.version,
51
51
  "X-Samsara-Version": (_a = options === null || options === void 0 ? void 0 : options.version) !== null && _a !== void 0 ? _a : "2025-06-11",
@@ -5,7 +5,7 @@ export interface PlaceRoutingCapacityServiceTimeInputRequestBody {
5
5
  /** Capacity UUID. */
6
6
  capacityId: string;
7
7
  /** Quantity units per service time chunk. */
8
- quantityUnitPerServiceTime: number;
8
+ quantityPerServiceTime: number;
9
9
  /** Service time in seconds. */
10
10
  serviceTimeSeconds: number;
11
11
  }
@@ -12,8 +12,8 @@ export interface PlaceRoutingInputRequestBody {
12
12
  /** Whether this routing row is a depot. */
13
13
  isDepot?: boolean | undefined;
14
14
  orderServiceTime?: Samsara.PlaceRoutingOrderServiceTimeInputRequestBody | undefined;
15
- /** Stop position preference: unknown, unspecified, any, first, or last. */
16
- position?: string | undefined;
15
+ /** Stop position preference: first or last. Valid values: `first`, `last` */
16
+ position?: PlaceRoutingInputRequestBody.Position | undefined;
17
17
  /** Route priority from 1 (lowest) to 5 (highest). */
18
18
  priority?: number | undefined;
19
19
  /** Required planner skills for this routing row. */
@@ -24,3 +24,11 @@ export interface PlaceRoutingInputRequestBody {
24
24
  /** Recurring local-time service windows for this routing row. */
25
25
  serviceWindows?: Samsara.PlaceRoutingServiceWindowInputRequestBody[] | undefined;
26
26
  }
27
+ export declare namespace PlaceRoutingInputRequestBody {
28
+ /** Stop position preference: first or last. Valid values: `first`, `last` */
29
+ const Position: {
30
+ readonly First: "first";
31
+ readonly Last: "last";
32
+ };
33
+ type Position = (typeof Position)[keyof typeof Position];
34
+ }
@@ -1,3 +1,12 @@
1
1
  "use strict";
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.PlaceRoutingInputRequestBody = void 0;
5
+ var PlaceRoutingInputRequestBody;
6
+ (function (PlaceRoutingInputRequestBody) {
7
+ /** Stop position preference: first or last. Valid values: `first`, `last` */
8
+ PlaceRoutingInputRequestBody.Position = {
9
+ First: "first",
10
+ Last: "last",
11
+ };
12
+ })(PlaceRoutingInputRequestBody || (exports.PlaceRoutingInputRequestBody = PlaceRoutingInputRequestBody = {}));
@@ -4,6 +4,8 @@ import type * as Samsara from "../index.js";
4
4
  */
5
5
  export interface PlaceRoutingOrderServiceTimeInputRequestBody {
6
6
  capacityServiceTime?: Samsara.PlaceRoutingCapacityServiceTimeInputRequestBody | undefined;
7
+ /** Fixed order service time in seconds. Required when modeType is fixed. */
8
+ fixedServiceTimeSeconds?: number | undefined;
7
9
  /** When true, order service time settings apply at this stop; when false, hub/session defaults apply. */
8
10
  isEnabled?: boolean | undefined;
9
11
  /** Mode: fixed or variable. Valid values: `fixed`, `variable` */
@@ -5,7 +5,7 @@ export interface RoutingCapacityServiceTimeResponseResponseBody {
5
5
  /** Capacity UUID. */
6
6
  capacityId: string;
7
7
  /** Quantity units per service time chunk. */
8
- quantityUnitPerServiceTime: number;
8
+ quantityPerServiceTime: number;
9
9
  /** Service time in seconds. */
10
10
  serviceTimeSeconds: number;
11
11
  }
@@ -4,6 +4,8 @@ import type * as Samsara from "../index.js";
4
4
  */
5
5
  export interface RoutingOrderServiceTimeResponseResponseBody {
6
6
  capacityServiceTime?: Samsara.RoutingCapacityServiceTimeResponseResponseBody | undefined;
7
+ /** Fixed order service time in seconds. */
8
+ fixedServiceTimeSeconds?: number | undefined;
7
9
  /** Whether order service time settings apply at this stop. */
8
10
  isEnabled: boolean;
9
11
  /** Mode: unknown, unspecified, fixed, or variable. */
@@ -12,8 +12,8 @@ export interface RoutingResponseResponseBody {
12
12
  /** Whether this routing row is a depot. */
13
13
  isDepot: boolean;
14
14
  orderServiceTime?: Samsara.RoutingOrderServiceTimeResponseResponseBody | undefined;
15
- /** Stop position preference: unknown, unspecified, any, first, or last. */
16
- position: string;
15
+ /** Stop position preference: first or last. */
16
+ position?: string | undefined;
17
17
  /** Route priority from 1 (lowest) to 5 (highest). */
18
18
  priority?: number | undefined;
19
19
  /** Required planner skills. */
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "13.26.0";
1
+ export declare const SDK_VERSION = "13.27.0";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "13.26.0";
4
+ exports.SDK_VERSION = "13.27.0";
@@ -7,8 +7,8 @@ export function normalizeClientOptions(options) {
7
7
  const headers = mergeHeaders({
8
8
  "X-Fern-Language": "JavaScript",
9
9
  "X-Fern-SDK-Name": "@samsarahq/samsara",
10
- "X-Fern-SDK-Version": "13.26.0",
11
- "User-Agent": "@samsarahq/samsara/13.26.0",
10
+ "X-Fern-SDK-Version": "13.27.0",
11
+ "User-Agent": "@samsarahq/samsara/13.27.0",
12
12
  "X-Fern-Runtime": core.RUNTIME.type,
13
13
  "X-Fern-Runtime-Version": core.RUNTIME.version,
14
14
  "X-Samsara-Version": (_a = options === null || options === void 0 ? void 0 : options.version) !== null && _a !== void 0 ? _a : "2025-06-11",
@@ -5,7 +5,7 @@ export interface PlaceRoutingCapacityServiceTimeInputRequestBody {
5
5
  /** Capacity UUID. */
6
6
  capacityId: string;
7
7
  /** Quantity units per service time chunk. */
8
- quantityUnitPerServiceTime: number;
8
+ quantityPerServiceTime: number;
9
9
  /** Service time in seconds. */
10
10
  serviceTimeSeconds: number;
11
11
  }
@@ -12,8 +12,8 @@ export interface PlaceRoutingInputRequestBody {
12
12
  /** Whether this routing row is a depot. */
13
13
  isDepot?: boolean | undefined;
14
14
  orderServiceTime?: Samsara.PlaceRoutingOrderServiceTimeInputRequestBody | undefined;
15
- /** Stop position preference: unknown, unspecified, any, first, or last. */
16
- position?: string | undefined;
15
+ /** Stop position preference: first or last. Valid values: `first`, `last` */
16
+ position?: PlaceRoutingInputRequestBody.Position | undefined;
17
17
  /** Route priority from 1 (lowest) to 5 (highest). */
18
18
  priority?: number | undefined;
19
19
  /** Required planner skills for this routing row. */
@@ -24,3 +24,11 @@ export interface PlaceRoutingInputRequestBody {
24
24
  /** Recurring local-time service windows for this routing row. */
25
25
  serviceWindows?: Samsara.PlaceRoutingServiceWindowInputRequestBody[] | undefined;
26
26
  }
27
+ export declare namespace PlaceRoutingInputRequestBody {
28
+ /** Stop position preference: first or last. Valid values: `first`, `last` */
29
+ const Position: {
30
+ readonly First: "first";
31
+ readonly Last: "last";
32
+ };
33
+ type Position = (typeof Position)[keyof typeof Position];
34
+ }
@@ -1,2 +1,9 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
- export {};
2
+ export var PlaceRoutingInputRequestBody;
3
+ (function (PlaceRoutingInputRequestBody) {
4
+ /** Stop position preference: first or last. Valid values: `first`, `last` */
5
+ PlaceRoutingInputRequestBody.Position = {
6
+ First: "first",
7
+ Last: "last",
8
+ };
9
+ })(PlaceRoutingInputRequestBody || (PlaceRoutingInputRequestBody = {}));
@@ -4,6 +4,8 @@ import type * as Samsara from "../index.mjs";
4
4
  */
5
5
  export interface PlaceRoutingOrderServiceTimeInputRequestBody {
6
6
  capacityServiceTime?: Samsara.PlaceRoutingCapacityServiceTimeInputRequestBody | undefined;
7
+ /** Fixed order service time in seconds. Required when modeType is fixed. */
8
+ fixedServiceTimeSeconds?: number | undefined;
7
9
  /** When true, order service time settings apply at this stop; when false, hub/session defaults apply. */
8
10
  isEnabled?: boolean | undefined;
9
11
  /** Mode: fixed or variable. Valid values: `fixed`, `variable` */
@@ -5,7 +5,7 @@ export interface RoutingCapacityServiceTimeResponseResponseBody {
5
5
  /** Capacity UUID. */
6
6
  capacityId: string;
7
7
  /** Quantity units per service time chunk. */
8
- quantityUnitPerServiceTime: number;
8
+ quantityPerServiceTime: number;
9
9
  /** Service time in seconds. */
10
10
  serviceTimeSeconds: number;
11
11
  }
@@ -4,6 +4,8 @@ import type * as Samsara from "../index.mjs";
4
4
  */
5
5
  export interface RoutingOrderServiceTimeResponseResponseBody {
6
6
  capacityServiceTime?: Samsara.RoutingCapacityServiceTimeResponseResponseBody | undefined;
7
+ /** Fixed order service time in seconds. */
8
+ fixedServiceTimeSeconds?: number | undefined;
7
9
  /** Whether order service time settings apply at this stop. */
8
10
  isEnabled: boolean;
9
11
  /** Mode: unknown, unspecified, fixed, or variable. */
@@ -12,8 +12,8 @@ export interface RoutingResponseResponseBody {
12
12
  /** Whether this routing row is a depot. */
13
13
  isDepot: boolean;
14
14
  orderServiceTime?: Samsara.RoutingOrderServiceTimeResponseResponseBody | undefined;
15
- /** Stop position preference: unknown, unspecified, any, first, or last. */
16
- position: string;
15
+ /** Stop position preference: first or last. */
16
+ position?: string | undefined;
17
17
  /** Route priority from 1 (lowest) to 5 (highest). */
18
18
  priority?: number | undefined;
19
19
  /** Required planner skills. */
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "13.26.0";
1
+ export declare const SDK_VERSION = "13.27.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "13.26.0";
1
+ export const SDK_VERSION = "13.27.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@samsarahq/samsara",
3
- "version": "13.26.0",
3
+ "version": "13.27.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",